/drivers/pci/pcie/ |
H A D | portdrv_bus.c | 18 static int pcie_port_bus_match(struct device *dev, struct device_driver *drv); 26 static int pcie_port_bus_match(struct device *dev, struct device_driver *drv) argument 31 if (drv->bus != &pcie_port_bus_type || dev->bus != &pcie_port_bus_type) 34 pciedev = to_pcie_device(dev);
|
/drivers/pci/ |
H A D | syscall.c | 19 struct pci_dev *dev; local 30 dev = pci_get_bus_and_slot(bus, dfn); 31 if (!dev) 36 cfg_ret = pci_user_read_config_byte(dev, off, &byte); 39 cfg_ret = pci_user_read_config_word(dev, off, &word); 42 cfg_ret = pci_user_read_config_dword(dev, off, &dword); 64 pci_dev_put(dev); 82 pci_dev_put(dev); 89 struct pci_dev *dev; local 98 dev [all...] |
/drivers/pcmcia/ |
H A D | sa1100_generic.c | 44 int __init pcmcia_collie_init(struct device *dev); 46 static int (*sa11x0_pcmcia_hw_init[])(struct device *dev) = { 70 static int sa11x0_drv_pcmcia_probe(struct platform_device *dev) argument 78 ret = sa11x0_pcmcia_hw_init[i](&dev->dev); 86 static int sa11x0_drv_pcmcia_remove(struct platform_device *dev) argument 88 struct skt_dev_info *sinfo = platform_get_drvdata(dev); 91 platform_set_drvdata(dev, NULL);
|
H A D | sa1100_shannon.c | 95 int pcmcia_shannon_init(struct device *dev) argument 100 ret = sa11xx_drv_pcmcia_probe(dev, &shannon_pcmcia_ops, 0, 2);
|
/drivers/pwm/ |
H A D | pwm-tipwmss.h | 31 extern u16 pwmss_submodule_state_change(struct device *dev, int set); 33 static inline u16 pwmss_submodule_state_change(struct device *dev, int set) argument
|
/drivers/rtc/ |
H A D | rtc-generic.c | 14 static int generic_get_time(struct device *dev, struct rtc_time *tm) argument 24 static int generic_set_time(struct device *dev, struct rtc_time *tm) argument 37 static int __init generic_rtc_probe(struct platform_device *dev) argument 41 rtc = devm_rtc_device_register(&dev->dev, "rtc-generic", 46 platform_set_drvdata(dev, rtc);
|
/drivers/scsi/aacraid/ |
H A D | rkt.c | 42 * @dev: Adapter 46 static int aac_rkt_select_comm(struct aac_dev *dev, int comm) argument 49 retval = aac_rx_select_comm(dev, comm); 62 if (dev->scsi_host_ptr->can_queue > AAC_NUM_IO_FIB_RKT) { 63 dev->init->MaxIoCommands = 65 dev->scsi_host_ptr->can_queue = AAC_NUM_IO_FIB_RKT; 76 static int aac_rkt_ioremap(struct aac_dev * dev, u32 size) argument 79 iounmap(dev->regs.rkt); 82 dev->base = dev 98 aac_rkt_init(struct aac_dev *dev) argument [all...] |
/drivers/scsi/fnic/ |
H A D | fnic_attrs.c | 23 static ssize_t fnic_show_state(struct device *dev, argument 26 struct fc_lport *lp = shost_priv(class_to_shost(dev)); 32 static ssize_t fnic_show_drv_version(struct device *dev, argument 38 static ssize_t fnic_show_link_state(struct device *dev, argument 41 struct fc_lport *lp = shost_priv(class_to_shost(dev));
|
/drivers/sh/ |
H A D | pm_runtime.c | 24 static int sh_pm_runtime_suspend(struct device *dev) argument 28 ret = pm_generic_runtime_suspend(dev); 30 dev_err(dev, "failed to suspend device\n"); 34 ret = pm_clk_suspend(dev); 36 dev_err(dev, "failed to suspend clock\n"); 37 pm_generic_runtime_resume(dev); 44 static int sh_pm_runtime_resume(struct device *dev) argument 48 ret = pm_clk_resume(dev); 50 dev_err(dev, "failed to resume clock\n"); 54 return pm_generic_runtime_resume(dev); [all...] |
/drivers/staging/android/ |
H A D | timed_output.h | 29 struct device *dev; member in struct:timed_output_dev 34 int timed_output_dev_register(struct timed_output_dev *dev); 35 void timed_output_dev_unregister(struct timed_output_dev *dev);
|
/drivers/staging/comedi/drivers/ |
H A D | addi_apci_035.c | 40 static int apci035_auto_attach(struct comedi_device *dev, argument 43 dev->board_ptr = &apci035_boardtypes[0]; 45 return addi_auto_attach(dev, context); 55 static int apci035_pci_probe(struct pci_dev *dev, argument 58 return comedi_pci_auto_config(dev, &apci035_driver, id->driver_data);
|
H A D | addi_apci_1500.c | 39 static int apci1500_auto_attach(struct comedi_device *dev, argument 42 dev->board_ptr = &apci1500_boardtypes[0]; 44 return addi_auto_attach(dev, context); 54 static int apci1500_pci_probe(struct pci_dev *dev, argument 57 return comedi_pci_auto_config(dev, &apci1500_driver, id->driver_data);
|
H A D | das08_isa.c | 174 static int das08_isa_attach(struct comedi_device *dev, argument 177 const struct das08_board_struct *thisboard = dev->board_ptr; 181 devpriv = comedi_alloc_devpriv(dev, sizeof(*devpriv)); 185 ret = comedi_request_region(dev, it->options[0], thisboard->iosize); 189 return das08_common_attach(dev, dev->iobase);
|
H A D | ni_daq_dio24.c | 43 static int dio24_auto_attach(struct comedi_device *dev, argument 46 struct pcmcia_device *link = comedi_to_pcmcia_dev(dev); 51 ret = comedi_pcmcia_enable(dev, NULL); 54 dev->iobase = link->resource[0]->start; 56 ret = comedi_alloc_subdevices(dev, 1); 61 s = &dev->subdevices[0]; 62 ret = subdev_8255_init(dev, s, NULL, 0x00);
|
H A D | ni_labpc.c | 86 static int labpc_attach(struct comedi_device *dev, struct comedi_devconfig *it) argument 93 devpriv = comedi_alloc_devpriv(dev, sizeof(*devpriv)); 97 ret = comedi_request_region(dev, it->options[0], 0x20); 101 ret = labpc_common_attach(dev, irq, 0); 105 if (dev->irq) 106 labpc_init_dma_chan(dev, dma_chan); 111 static void labpc_detach(struct comedi_device *dev) argument 113 struct labpc_private *devpriv = dev->private; 116 labpc_free_dma_chan(dev); 118 comedi_legacy_detach(dev); [all...] |
/drivers/staging/rts5208/ |
H A D | rtsx_sys.h | 35 struct rtsx_dev *dev = chip->rtsx; local 37 spin_lock(&(dev->reg_lock)); 39 spin_unlock(&(dev->reg_lock));
|
/drivers/tty/serial/8250/ |
H A D | 8250_gsc.c | 27 static int __init serial_init_chip(struct parisc_device *dev) argument 34 if (!dev->irq && (dev->id.sversion == 0xad)) 35 dev->irq = iosapic_serial_irq(dev); 38 if (!dev->irq) { 44 if (parisc_parent(dev)->id.hw_type != HPHW_IOA) 48 (unsigned long long)dev->hpa.start); 52 address = dev->hpa.start; 53 if (dev [all...] |
/drivers/usb/host/ |
H A D | pci-quirks.h | 16 void sb800_prefetch(struct device *dev, int on); 23 static inline void sb800_prefetch(struct device *dev, int on) {} argument
|
/drivers/usb/phy/ |
H A D | phy-generic.h | 8 struct device *dev; member in struct:usb_phy_generic 18 int usb_phy_gen_create_phy(struct device *dev, struct usb_phy_generic *nop,
|
/drivers/usb/wusbcore/ |
H A D | wa-hc.c | 40 struct device *dev = &iface->dev; local 57 dev_err(dev, "WA-CDS: can't initialize notif endpoint: %d\n",
|
/drivers/uwb/ |
H A D | umc-dev.c | 13 static void umc_device_release(struct device *dev) argument 15 struct umc_dev *umc = to_umc_dev(dev); 34 dev_set_name(&umc->dev, "%s-%d", dev_name(parent), n); 35 umc->dev.parent = parent; 36 umc->dev.bus = &umc_bus_type; 37 umc->dev.release = umc_device_release; 39 umc->dev.dma_mask = parent->dma_mask; 58 dev_err(&umc->dev, "can't allocate resource range %pR: %d\n", 63 err = device_register(&umc->dev); 69 put_device(&umc->dev); 87 struct device *dev; local [all...] |
/drivers/acpi/ |
H A D | container.c | 48 struct acpi_device *adev = ACPI_COMPANION(&cdev->dev); 59 static void acpi_container_release(struct device *dev) argument 61 kfree(to_container_dev(dev)); 68 struct device *dev; local 79 dev = &cdev->dev; 80 dev->bus = &container_subsys; 81 dev_set_name(dev, "%s", dev_name(&adev->dev)); 82 ACPI_COMPANION_SET(dev, ade 95 struct device *dev = acpi_driver_data(adev); local 104 struct device *dev = acpi_driver_data(adev); local [all...] |
/drivers/ata/ |
H A D | pata_palmld.c | 59 host = ata_host_alloc(&pdev->dev, 1); 66 mem = devm_ioremap(&pdev->dev, PALMLD_IDE_PHYS, 0x1000); 112 static int palmld_pata_remove(struct platform_device *dev) argument 114 ata_platform_remove_one(dev);
|
/drivers/char/hw_random/ |
H A D | nomadik-rng.c | 41 static int nmk_rng_probe(struct amba_device *dev, const struct amba_id *id) argument 46 rng_clk = devm_clk_get(&dev->dev, NULL); 48 dev_err(&dev->dev, "could not get rng clock\n"); 55 ret = amba_request_regions(dev, dev->dev.init_name); 59 base = devm_ioremap(&dev->dev, de 76 nmk_rng_remove(struct amba_device *dev) argument [all...] |
/drivers/clk/ |
H A D | clk-devres.c | 12 static void devm_clk_release(struct device *dev, void *res) argument 17 struct clk *devm_clk_get(struct device *dev, const char *id) argument 25 clk = clk_get(dev, id); 28 devres_add(dev, ptr); 37 static int devm_clk_match(struct device *dev, void *res, void *data) argument 47 void devm_clk_put(struct device *dev, struct clk *clk) argument 51 ret = devres_release(dev, devm_clk_release, devm_clk_match, clk);
|