/drivers/ipack/ |
H A D | ipack.c | 18 #define to_ipack_dev(device) container_of(device, struct ipack_device, dev) 23 static void ipack_device_release(struct device *dev) 25 struct ipack_device *device = to_ipack_dev(dev); local 26 kfree(device->id); 27 device->release(device); 32 const struct ipack_device *device) 35 id->format == device->id_format) && 36 (id->vendor == IPACK_ANY_ID || id->vendor == device 31 ipack_match_one_device(const struct ipack_device_id *id, const struct ipack_device *device) argument 65 ipack_bus_probe(struct device *device) argument 76 ipack_bus_remove(struct device *device) argument [all...] |
/drivers/media/dvb-core/ |
H A D | dvbdev.c | 31 #include <linux/device.h> 41 MODULE_PARM_DESC(dvbdev_debug, "Turn on/off device debugging (default:off)."); 189 struct device *clsdev; 198 printk(KERN_ERR "%s: couldn't find free device id\n", __func__); 253 clsdev = device_create(dvb_class, adap->device, 257 printk(KERN_ERR "%s: failed to create device dvb%d.%s%d (%ld)\n", 314 struct module *module, struct device *device, 347 adap->device = device; 313 dvb_register_adapter(struct dvb_adapter *adap, const char *name, struct module *module, struct device *device, short *adapter_nums) argument [all...] |
/drivers/media/pci/cx23885/ |
H A D | cx23885-alsa.c | 22 #include <linux/device.h> 330 printk(KERN_ERR "BUG: cx23885 can't find device struct." 522 * create a PCM device 524 static int snd_cx23885_pcm(struct cx23885_audio_dev *chip, int device, argument 530 err = snd_pcm_new(chip->card, name, device, 0, 1, &pcm); 587 dprintk(0, "registered ALSA audio device\n");
|
H A D | cx23885-cards.c | 1677 static int netup_jtag_io(void *device, int tms, int tdi, int read_tdo) argument 1681 struct cx23885_dev *dev = (struct cx23885_dev *)device;
|
/drivers/media/usb/go7007/ |
H A D | snd-go7007.c | 213 static int go7007_snd_free(struct snd_device *device) argument 215 struct go7007 *go = device->device_data;
|
/drivers/media/usb/tm6000/ |
H A D | tm6000-input.c | 73 /* IR device properties */ 168 u8 device, command; local 176 device = (len > 1 ? buf[1] : 0x0); 180 scancode = RC_SCANCODE_RC5(device, command); 184 scancode = RC_SCANCODE_NEC(device, command); 188 scancode = RC_SCANCODE_OTHER(device << 8 | command);
|
/drivers/misc/cxl/ |
H A D | sysfs.c | 11 #include <linux/device.h> 20 static ssize_t caia_version_show(struct device *device, argument 24 struct cxl *adapter = to_cxl_adapter(device); 30 static ssize_t psl_revision_show(struct device *device, argument 34 struct cxl *adapter = to_cxl_adapter(device); 39 static ssize_t base_image_show(struct device *device, argument 43 struct cxl *adapter = to_cxl_adapter(device); 48 image_loaded_show(struct device *device, struct device_attribute *attr, char *buf) argument 69 mmio_size_show_master(struct device *device, struct device_attribute *attr, char *buf) argument 78 pp_mmio_off_show(struct device *device, struct device_attribute *attr, char *buf) argument 87 pp_mmio_len_show(struct device *device, struct device_attribute *attr, char *buf) argument 105 mmio_size_show(struct device *device, struct device_attribute *attr, char *buf) argument 116 reset_store_afu(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument 139 irqs_min_show(struct device *device, struct device_attribute *attr, char *buf) argument 148 irqs_max_show(struct device *device, struct device_attribute *attr, char *buf) argument 157 irqs_max_store(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument 179 modes_supported_show(struct device *device, struct device_attribute *attr, char *buf) argument 192 prefault_mode_show(struct device *device, struct device_attribute *attr, char *buf) argument 208 prefault_mode_store(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument 229 mode_show(struct device *device, struct device_attribute *attr, char *buf) argument 242 mode_store(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument 287 api_version_show(struct device *device, struct device_attribute *attr, char *buf) argument 294 api_version_compatible_show(struct device *device, struct device_attribute *attr, char *buf) argument [all...] |
/drivers/misc/mei/ |
H A D | bus.c | 17 #include <linux/device.h> 33 static int mei_cl_device_match(struct device *dev, struct device_driver *drv) 35 struct mei_cl_device *device = to_mei_cl_device(dev); local 39 if (!device) 57 static int mei_cl_device_probe(struct device *dev) 59 struct mei_cl_device *device = to_mei_cl_device(dev); local 63 if (!device) 74 return driver->probe(device, &id); 77 static int mei_cl_device_remove(struct device *dev) 79 struct mei_cl_device *device local 159 struct mei_cl_device *device; local 195 mei_cl_remove_device(struct mei_cl_device *device) argument 344 mei_cl_send(struct mei_cl_device *device, u8 *buf, size_t length) argument 358 mei_cl_recv(struct mei_cl_device *device, u8 *buf, size_t length) argument 374 struct mei_cl_device *device; local 387 mei_cl_register_event_cb(struct mei_cl_device *device, mei_cl_event_cb_t event_cb, void *context) argument 404 mei_cl_get_drvdata(const struct mei_cl_device *device) argument 410 mei_cl_set_drvdata(struct mei_cl_device *device, void *data) argument 416 mei_cl_enable_device(struct mei_cl_device *device) argument 449 mei_cl_disable_device(struct mei_cl_device *device) argument 513 struct mei_cl_device *device = cl->device; local [all...] |
/drivers/misc/ |
H A D | vexpress-syscfg.c | 42 struct device *dev; 145 static struct regmap *vexpress_syscfg_regmap_init(struct device *dev, 187 * by its first device only, now it requires both 208 u32 function, device; local 212 device = be32_to_cpup(val++); 215 device = pdev->id; 220 function, device); 226 func->template[i] |= SYS_CFGCTRL_DEVICE(device); 269 static struct device *vexpress_syscfg_bridge; 283 struct device *bridg [all...] |
/drivers/mmc/core/ |
H A D | sdio_cis.c | 77 unsigned int vendor, device; local 83 device = buf[2] | (buf[3] << 8); 87 func->device = device; 90 card->cis.device = device; 381 * Vendor/device id is optional for function CIS, so 386 func->device = func->card->cis.device;
|
/drivers/mmc/host/ |
H A D | sdhci-acpi.c | 24 #include <linux/device.h> 254 struct device *dev = &pdev->dev; 256 struct acpi_device *device; local 265 if (acpi_bus_get_device(handle, &device)) 268 if (acpi_bus_get_status(device) || !device->status.present) 271 hid = acpi_device_hid(device); 272 uid = device->pnp.unique_id; 377 struct device *dev = &pdev->dev; 398 static int sdhci_acpi_suspend(struct device *de [all...] |
/drivers/mtd/maps/ |
H A D | pismo.c | 29 char device[32]; member in struct:pismo_cs_block 161 struct device *dev = &pismo->client->dev; 182 i, cs->device, region.type, region.access, region.size / 1024);
|
/drivers/net/arcnet/ |
H A D | arc-rimi.c | 195 /* initialize the rest of the device structure. */ 224 BUGMSG(D_NORMAL, "Can't remap device memory!\n"); 326 static char device[9]; /* use eg. device=arc1 to change name */ variable 331 module_param_string(device, device, sizeof(device), 0); 340 dev = alloc_arcdev(device); 391 snprintf(device, sizeof(device), " [all...] |
H A D | com90io.c | 361 static char device[9]; /* use eg. device=arc1 to change name */ variable 365 module_param_string(device, device, sizeof(device), 0); 384 snprintf(device, sizeof(device), "%s", s); 397 dev = alloc_arcdev(device);
|
/drivers/net/wireless/p54/ |
H A D | p54pci.c | 3 * Linux device driver for PCI based Prism54 523 struct device *parent = pdev->dev.parent; 553 dev_err(&pdev->dev, "Cannot enable new PCI device\n"); 601 dev_err(&pdev->dev, "Cannot map device memory\n"); 664 static int p54p_suspend(struct device *device) argument 666 struct pci_dev *pdev = to_pci_dev(device); 674 static int p54p_resume(struct device *device) argument 676 struct pci_dev *pdev = to_pci_dev(device); [all...] |
/drivers/net/wireless/prism54/ |
H A D | islpci_dev.c | 86 /* wait a while for the device to reboot */ 156 /* now reset the device 167 * into the device for operation when the reset bit is reset */ 194 void __iomem *device = priv->device_base; local 201 * first check whether the device is in sleep mode */ 202 reg = readl(device + ISL38XX_CTRL_STAT_REG); 204 /* device is in sleep mode, IRQ was generated by someone else */ 214 /* check whether there is any source of interrupt on the device */ 215 reg = readl(device + ISL38XX_INT_IDENT_REG); 219 reg &= readl(device [all...] |
/drivers/of/ |
H A D | irq.c | 17 * device tree to actual irq numbers on an interrupt controller 31 * @dev: Device node of the device whose interrupt is to be mapped 49 * of_irq_find_parent - Given a device node, find its interrupt parent node 50 * @child: pointer to device node 82 * @parent: the device interrupt parent 83 * @addr: address specifier (start of "reg" property of the device) in be32 format 90 * properties, for example when resolving PCI interrupts when no device 135 * trick of looking for the parent here as some device-trees rely on it 279 * of_irq_parse_one - Resolve an interrupt for a device 280 * @device 288 of_irq_parse_one(struct device_node *device, int index, struct of_phandle_args *out_irq) argument [all...] |
/drivers/parisc/ |
H A D | eisa_enumerator.c | 63 int device; local 67 device = id & 0xff; 77 sprintf(s, "%s%02X%02X", vendor, device, rev);
|
/drivers/parport/ |
H A D | procfs.c | 520 int parport_device_proc_register(struct pardevice *device) argument 523 struct parport * port = device->port; 535 t->device_dir[0].procname = device->name; 537 t->vars[0].data = &device->timeslice; 544 device->sysctl_table = t; 548 int parport_device_proc_unregister(struct pardevice *device) argument 550 if (device->sysctl_table) { 551 struct parport_device_sysctl_table *t = device->sysctl_table; 552 device->sysctl_table = NULL; 587 int parport_device_proc_register(struct pardevice *device) argument 592 parport_device_proc_unregister(struct pardevice *device) argument [all...] |
H A D | share.c | 130 * parport_register_driver - register a parallel port device driver 133 * This can be called by a parallel port device driver in order 171 * parport_unregister_driver - deregister a parallel port device driver 175 * This should be called by a parallel port device driver that 255 * should be made available to parallel port device drivers, it 264 * If there are parallel port device drivers in the system that 282 int device; local 337 for (device = 0; device < 5; device [all...] |
/drivers/pci/hotplug/ |
H A D | acpiphp.h | 64 * for each bridge device in ACPI namespace 78 /* PCI-to-PCI bridge device */ 97 u8 device; /* pci device# */ member in struct:acpiphp_slot 156 * struct acpiphp_attention_info - device specific attention registration 159 * this allows for device specific driver registration
|
/drivers/pci/pcie/ |
H A D | portdrv_core.c | 34 * release_pcie_device - free PCI Express port service device structure 35 * @dev: Port service device to release 37 * Invoked automatically when device is being removed in response to 40 static void release_pcie_device(struct device *dev) 319 * pcie_device_init - allocate and initialize PCI Express port service device 320 * @pdev: PCI Express port to associate the service device with 321 * @service: Type of service to associate with the service device 322 * @irq: Interrupt vector to associate with the service device 328 struct device *device; local [all...] |
H A D | portdrv_pci.c | 82 static int pcie_port_resume_noirq(struct device *dev) 115 * @dev: PCI-Express port device being probed 118 * this port device. 150 static int error_detected_iter(struct device *device, void *data) argument 159 if (device->bus == &pcie_port_bus_type && device->driver) { 160 driver = to_service_driver(device->driver); 166 pcie_device = to_pcie_device(device); 189 static int mmio_enabled_iter(struct device *devic argument 223 slot_reset_iter(struct device *device, void *data) argument 265 resume_iter(struct device *device, void *data) argument [all...] |
/drivers/pcmcia/ |
H A D | electra_cf.c | 188 struct device *device = &ofdev->dev; local 225 dev_set_drvdata(device, cf); 230 dev_err(device, "can't ioremap ranges\n"); 247 dev_err(device, "request_irq failed\n"); 278 dev_err(device, "Can't claim memory region\n"); 284 dev_err(device, "Can't claim I/O region\n"); 298 dev_err(device, "pcmcia_register_socket failed\n"); 302 dev_info(device, "at mem 0x%lx io 0x%llx irq %d\n", 331 struct device *devic local [all...] |
/drivers/phy/ |
H A D | phy-core.c | 18 #include <linux/device.h> 31 static void devm_phy_release(struct device *dev, void *res) 38 static void devm_phy_provider_release(struct device *dev, void *res) 45 static void devm_phy_consume(struct device *dev, void *res) 52 static int devm_phy_match(struct device *dev, void *res, void *match_data) 57 static struct phy *phy_lookup(struct device *device, const char *port) argument 61 struct device *dev; 74 if (!strcmp(consumers->dev_name, dev_name(device)) && 303 * -EPROBE_DEFER if there is a phandle to the phy, but the device i [all...] |