Lines Matching refs:device
86 * new_id_store() - 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 void pcmcia_device_remove(struct device *dev)
362 dev_dbg(dev, "removing device\n");
396 * pcmcia_device_query -- determine information about a pcmcia device
427 * common memory device geometry information, are
439 "mem device geometry probably means "
489 pr_debug("adding device to %d, function %d\n", s->sock, function);
540 "IRQ setup failed -- device might not work\n");
568 dev_notice(&p_dev->dev, "pcmcia: registering new device %s (IRQ: %d)\n",
635 Note: some cards have just a device entry, it may be
663 static int pcmcia_requery_callback(struct device *dev, void *_data)
667 dev_dbg(dev, "update device information\n");
687 /* some device information might have changed because of a CIS
714 /* If the PCMCIA device consists of two pseudo devices,
733 * pcmcia_load_firmware - load CIS from userspace if device-provided is broken
734 * @dev: the pcmcia device which needs a CIS override
847 dev_dbg(&dev->dev, "this is a pseudo-multi-function device\n");
861 /* if this is a pseudo-multi-function device,
884 dev_dbg(&dev->dev, "device needs a fake CIS\n");
903 static int pcmcia_bus_match(struct device *dev, struct device_driver *drv)
934 static int pcmcia_bus_uevent(const struct device *dev, struct kobj_uevent_env *env)
976 static int pcmcia_dev_suspend(struct device *dev);
977 static int pcmcia_dev_resume(struct device *dev);
979 static int runtime_suspend(struct device *dev)
989 static int runtime_resume(struct device *dev)
999 /************************ per-device sysfs output ***************************/
1002 static ssize_t field##_show (struct device *dev, struct device_attribute *attr, char *buf) \
1010 static ssize_t name##_show (struct device *dev, struct device_attribute *attr, char *buf) \
1025 static ssize_t function_show(struct device *dev, struct device_attribute *attr,
1033 static ssize_t resources_show(struct device *dev,
1046 static ssize_t pm_state_show(struct device *dev, struct device_attribute *attr, char *buf)
1056 static ssize_t pm_state_store(struct device *dev, struct device_attribute *attr,
1074 static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, char *buf)
1096 static ssize_t allow_func_id_match_store(struct device *dev,
1132 static int pcmcia_dev_suspend(struct device *dev)
1158 "pcmcia: device %s (driver %s) did not want to go to sleep (%d)\n",
1177 static int pcmcia_dev_resume(struct device *dev)
1214 static int pcmcia_bus_suspend_callback(struct device *dev, void *_data)
1225 static int pcmcia_bus_resume_callback(struct device *dev, void *_data)
1309 * non-NULL. Furthermore, the device driver most likely is unbound
1342 static int pcmcia_bus_add_socket(struct device *dev)
1375 static void pcmcia_bus_remove_socket(struct device *dev)