Lines Matching refs:device
86 * pcmcia_store_new_id - add a new PCMCIA device ID to this driver and re-probe devices
87 * @driver: target device driver
88 * @buf: buffer for scanning device ID data
91 * Adds a new dynamic PCMCIA device ID to this driver,
217 struct device *tmp_dev;
237 static void pcmcia_release_dev(struct device *dev)
241 dev_dbg(dev, "releasing device\n");
251 static int pcmcia_device_probe(struct device *dev)
275 /* set up some more device information */
319 * Removes a PCMCIA card from the device tree and socket list.
346 dev_dbg(&p_dev->dev, "unregistering device\n");
353 static int pcmcia_device_remove(struct device *dev)
362 dev_dbg(dev, "removing device\n");
401 * pcmcia_device_query -- determine information about a pcmcia device
432 * common memory device geometry information, are
444 "mem device geometry probably means "
494 pr_debug("adding device to %d, function %d\n", s->sock, function);
545 "IRQ setup failed -- device might not work\n");
573 dev_notice(&p_dev->dev, "pcmcia: registering new device %s (IRQ: %d)\n",
640 Note: some cards have just a device entry, it may be
668 static int pcmcia_requery_callback(struct device *dev, void *_data)
672 dev_dbg(dev, "update device information\n");
692 /* some device information might have changed because of a CIS
719 /* If the PCMCIA device consists of two pseudo devices,
738 * pcmcia_load_firmware - load CIS from userspace if device-provided is broken
739 * @dev: the pcmcia device which needs a CIS override
852 dev_dbg(&dev->dev, "this is a pseudo-multi-function device\n");
866 /* if this is a pseudo-multi-function device,
889 dev_dbg(&dev->dev, "device needs a fake CIS\n");
908 static int pcmcia_bus_match(struct device *dev, struct device_driver *drv)
939 static int pcmcia_bus_uevent(struct device *dev, struct kobj_uevent_env *env)
981 static int pcmcia_dev_suspend(struct device *dev);
982 static int pcmcia_dev_resume(struct device *dev);
984 static int runtime_suspend(struct device *dev)
994 static int runtime_resume(struct device *dev)
1004 /************************ per-device sysfs output ***************************/
1007 static ssize_t field##_show (struct device *dev, struct device_attribute *attr, char *buf) \
1015 static ssize_t name##_show (struct device *dev, struct device_attribute *attr, char *buf) \
1030 static ssize_t function_show(struct device *dev, struct device_attribute *attr,
1038 static ssize_t resources_show(struct device *dev,
1052 static ssize_t pm_state_show(struct device *dev, struct device_attribute *attr, char *buf)
1062 static ssize_t pm_state_store(struct device *dev, struct device_attribute *attr,
1080 static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, char *buf)
1103 static ssize_t allow_func_id_match_store(struct device *dev,
1139 static int pcmcia_dev_suspend(struct device *dev)
1165 "pcmcia: device %s (driver %s) did not want to go to sleep (%d)\n",
1184 static int pcmcia_dev_resume(struct device *dev)
1221 static int pcmcia_bus_suspend_callback(struct device *dev, void *_data)
1232 static int pcmcia_bus_resume_callback(struct device *dev, void *_data)
1316 * non-NULL. Furthermore, the device driver most likely is unbound
1349 static int pcmcia_bus_add_socket(struct device *dev,
1383 static void pcmcia_bus_remove_socket(struct device *dev,