/drivers/base/ |
D | class.c | 34 ret = class_attr->show(cp->class, class_attr, buf); in class_attr_show() 46 ret = class_attr->store(cp->class, class_attr, buf, count); in class_attr_store() 53 struct class *class = cp->class; in class_release() local 55 pr_debug("class '%s': release.\n", class->name); in class_release() 57 if (class->class_release) in class_release() 58 class->class_release(class); in class_release() 61 "be careful\n", class->name); in class_release() 69 struct class *class = cp->class; in class_child_ns_type() local 71 return class->ns_type; in class_child_ns_type() 89 int class_create_file_ns(struct class *cls, const struct class_attribute *attr, in class_create_file_ns() [all …]
|
D | core.c | 106 (dev->class ? dev->class->name : "")); in dev_driver_string() 245 else if (dev->class && dev->class->dev_release) in device_release() 246 dev->class->dev_release(dev); in device_release() 259 if (dev->class && dev->class->ns_type) in device_namespace() 260 ns = dev->class->namespace(dev); in device_namespace() 280 if (dev->class) in dev_uevent_filter() 292 if (dev->class) in dev_uevent_name() 293 return dev->class->name; in dev_uevent_name() 344 if (dev->class && dev->class->dev_uevent) { in dev_uevent() 345 retval = dev->class->dev_uevent(dev, env); in dev_uevent() [all …]
|
D | transport_class.c | 50 return class_register(&tclass->class); in transport_class_register() 64 class_unregister(&tclass->class); in transport_class_unregister() 91 atc->container.class = &atc->tclass.class; in anon_transport_class_register() 121 struct transport_class *tclass = class_to_transport_class(cont->class); in transport_setup_classdev() 187 struct transport_class *tclass = class_to_transport_class(cont->class); in transport_configure() 220 struct transport_class *tclass = class_to_transport_class(cont->class); in transport_remove_classdev() 257 struct transport_class *tclass = class_to_transport_class(cont->class); in transport_destroy_classdev()
|
/drivers/char/agp/ |
D | sis-agp.c | 242 .class = (PCI_CLASS_BRIDGE_HOST << 8), 250 .class = (PCI_CLASS_BRIDGE_HOST << 8), 258 .class = (PCI_CLASS_BRIDGE_HOST << 8), 266 .class = (PCI_CLASS_BRIDGE_HOST << 8), 274 .class = (PCI_CLASS_BRIDGE_HOST << 8), 282 .class = (PCI_CLASS_BRIDGE_HOST << 8), 290 .class = (PCI_CLASS_BRIDGE_HOST << 8), 298 .class = (PCI_CLASS_BRIDGE_HOST << 8), 306 .class = (PCI_CLASS_BRIDGE_HOST << 8), 314 .class = (PCI_CLASS_BRIDGE_HOST << 8), [all …]
|
D | amd64-agp.c | 615 .class = (PCI_CLASS_BRIDGE_HOST << 8), 624 .class = (PCI_CLASS_BRIDGE_HOST << 8), 633 .class = (PCI_CLASS_BRIDGE_HOST << 8), 642 .class = (PCI_CLASS_BRIDGE_HOST << 8), 651 .class = (PCI_CLASS_BRIDGE_HOST << 8), 660 .class = (PCI_CLASS_BRIDGE_HOST << 8), 669 .class = (PCI_CLASS_BRIDGE_HOST << 8), 678 .class = (PCI_CLASS_BRIDGE_HOST << 8), 687 .class = (PCI_CLASS_BRIDGE_HOST << 8), 695 .class = (PCI_CLASS_BRIDGE_HOST << 8), [all …]
|
/drivers/net/fddi/skfp/ |
D | queue.c | 42 void queue_event(struct s_smc *smc, int class, int event) in queue_event() argument 44 PRINTF("queue class %d event %d\n",class,event) ; in queue_event() 45 smc->q.ev_put->class = class ; in queue_event() 76 int class ; in ev_dispatcher() local 81 PRINTF("dispatch class %d event %d\n",ev->class,ev->event) ; in ev_dispatcher() 82 switch(class = ev->class) { in ev_dispatcher() 103 if (class >= EVENT_PCMA && in ev_dispatcher() 104 class < EVENT_PCMA + NUMPHYS) { in ev_dispatcher() 105 pcm(smc,class - EVENT_PCMA,(int)ev->event) ; in ev_dispatcher()
|
/drivers/usb/core/ |
D | file.c | 59 struct class *class; member 88 usb_class->class = class_create(THIS_MODULE, "usbmisc"); in init_usb_class() 89 if (IS_ERR(usb_class->class)) { in init_usb_class() 90 result = PTR_ERR(usb_class->class); in init_usb_class() 96 usb_class->class->devnode = usb_devnode; in init_usb_class() 105 class_destroy(usb_class->class); in release_usb_class() 205 intf->usb_dev = device_create(usb_class->class, &intf->dev, in usb_register_dev() 245 device_destroy(usb_class->class, MKDEV(USB_MAJOR, intf->minor)); in usb_deregister_dev()
|
D | hcd-pci.c | 53 return pdev->class == CL_OHCI || pdev->class == CL_UHCI; in is_ohci_or_uhci() 82 if (companion->class != CL_UHCI && companion->class != CL_OHCI && in for_each_companion() 83 companion->class != CL_EHCI) in for_each_companion() 140 if (is_ohci_or_uhci(pdev) && companion->class == CL_EHCI) { in non_ehci_add() 271 if (dev->class == CL_EHCI) { in usb_hcd_pci_probe() 350 if (dev->class == CL_EHCI) { in usb_hcd_pci_remove() 525 if (pci_dev->class == CL_EHCI && event != PM_EVENT_AUTO_RESUME) in resume_common()
|
/drivers/isdn/sc/ |
D | message.c | 70 rspmsg->class, in receivemessage() 86 unsigned int class, in sendmessage() argument 120 sndmsg.class = class; in sendmessage() 161 sndmsg.class, in sendmessage() 171 unsigned char class, in send_and_receive() argument 188 retval = sendmessage(card, procid, type, class, code, link, in send_and_receive() 209 (sc_adapter[card]->async_msg.class == class) && in send_and_receive()
|
/drivers/gpu/drm/ |
D | drm_sysfs.c | 125 struct class *drm_sysfs_create(struct module *owner, char *name) in drm_sysfs_create() 127 struct class *class; in drm_sysfs_create() local 130 class = class_create(owner, name); in drm_sysfs_create() 131 if (IS_ERR(class)) { in drm_sysfs_create() 132 err = PTR_ERR(class); in drm_sysfs_create() 136 class->pm = &drm_class_dev_pm_ops; in drm_sysfs_create() 138 err = class_create_file(class, &class_attr_version.attr); in drm_sysfs_create() 142 class->devnode = drm_devnode; in drm_sysfs_create() 144 return class; in drm_sysfs_create() 147 class_destroy(class); in drm_sysfs_create() [all …]
|
/drivers/i2c/ |
D | i2c-mux.c | 93 unsigned int class = 0; in i2c_mux_parent_classes() local 96 class |= parent->class; in i2c_mux_parent_classes() 100 return class; in i2c_mux_parent_classes() 106 unsigned int class, in i2c_add_mux_adapter() argument 146 if (i2c_mux_parent_classes(parent) & class) in i2c_add_mux_adapter() 151 priv->adap.class = class; in i2c_add_mux_adapter()
|
/drivers/uwb/ |
D | driver.c | 77 ssize_t beacon_timeout_ms_show(struct class *class, in beacon_timeout_ms_show() argument 85 ssize_t beacon_timeout_ms_store(struct class *class, in beacon_timeout_ms_store() argument 105 struct class uwb_rc_class = {
|
/drivers/hwmon/pmbus/ |
D | pmbus_core.c | 63 enum pmbus_sensor_classes class; /* sensor class */ member 414 if (sensor->class == PSC_VOLTAGE_OUT) { /* LINEAR16 */ in pmbus_reg2data_linear() 425 if (sensor->class != PSC_FAN) in pmbus_reg2data_linear() 429 if (sensor->class == PSC_POWER) in pmbus_reg2data_linear() 450 m = data->info->m[sensor->class]; in pmbus_reg2data_direct() 451 b = data->info->b[sensor->class]; in pmbus_reg2data_direct() 452 R = data->info->R[sensor->class]; in pmbus_reg2data_direct() 460 if (sensor->class != PSC_FAN) { in pmbus_reg2data_direct() 466 if (sensor->class == PSC_POWER) { in pmbus_reg2data_direct() 503 switch (data->info->format[sensor->class]) { in pmbus_reg2data() [all …]
|
/drivers/base/power/ |
D | main.c | 497 } else if (dev->class && dev->class->pm) { in device_resume_noirq() 499 callback = pm_noirq_op(dev->class->pm, state); in device_resume_noirq() 626 } else if (dev->class && dev->class->pm) { in device_resume_early() 628 callback = pm_late_early_op(dev->class->pm, state); in device_resume_early() 775 if (dev->class) { in device_resume() 776 if (dev->class->pm) { in device_resume() 778 callback = pm_op(dev->class->pm, state); in device_resume() 780 } else if (dev->class->resume) { in device_resume() 782 callback = dev->class->resume; in device_resume() 909 } else if (dev->class && dev->class->pm) { in device_complete() [all …]
|
/drivers/pci/ |
D | pci-stub.c | 58 subdevice = PCI_ANY_ID, class = 0, class_mask = 0; in pci_stub_init() local 66 &class, &class_mask); in pci_stub_init() 76 vendor, device, subvendor, subdevice, class, class_mask); in pci_stub_init() 79 subvendor, subdevice, class, class_mask, 0); in pci_stub_init()
|
D | pci-driver.c | 54 unsigned int class, unsigned int class_mask, in pci_add_dynid() argument 67 dynid->id.class = class; in pci_add_dynid() 105 subdevice = PCI_ANY_ID, class = 0, class_mask = 0; in store_new_id() local 112 &class, &class_mask, &driver_data); in store_new_id() 125 pdev->class = class; in store_new_id() 152 class, class_mask, driver_data); in store_new_id() 173 subdevice = PCI_ANY_ID, class = 0, class_mask = 0; in store_remove_id() local 179 &class, &class_mask); in store_remove_id() 190 !((id->class ^ class) & class_mask)) { in store_remove_id() 775 if (pci_dev->class == PCI_CLASS_SERIAL_USB_EHCI) in pci_pm_suspend_noirq() [all …]
|
/drivers/mmc/core/ |
D | sdio_bus.c | 47 sdio_config_attr(class, "0x%02x\n"); 56 func->class, func->vendor, func->device); in modalias_show() 72 if (id->class != (__u8)SDIO_ANY_ID && id->class != func->class) in sdio_match_one() 89 while (ids->class || ids->vendor || ids->device) { in sdio_match_device() 116 "SDIO_CLASS=%02X", func->class)) in sdio_bus_uevent() 125 func->class, func->vendor, func->device)) in sdio_bus_uevent()
|
/drivers/video/adf/ |
D | adf_sysfs.c | 21 static struct class *adf_class; 119 obj->dev.class = adf_class; in adf_obj_sysfs_init() 267 struct class *class; in adf_sysfs_init() local 270 class = class_create(THIS_MODULE, "adf"); in adf_sysfs_init() 271 if (IS_ERR(class)) { in adf_sysfs_init() 272 ret = PTR_ERR(class); in adf_sysfs_init() 283 adf_class = class; in adf_sysfs_init()
|
/drivers/pci/hotplug/ |
D | ibmphp_pci.c | 84 u32 class; in ibmphp_configure_card() local 130 pci_bus_read_config_dword (ibmphp_pci_bus, devfn, PCI_CLASS_REVISION, &class); in ibmphp_configure_card() 132 class_code = class >> 24; in ibmphp_configure_card() 133 debug ("hrd_type = %x, class = %x, class_code %x\n", hdr_type, class, class_code); in ibmphp_configure_card() 134 class >>= 8; /* to take revision out, class = class.subclass.prog i/f */ in ibmphp_configure_card() 135 if (class == PCI_CLASS_NOT_DEFINED_VGA) { in ibmphp_configure_card() 139 } else if (class == PCI_CLASS_DISPLAY_VGA) { in ibmphp_configure_card() 146 …("single device case.... vendor id = %x, hdr_type = %x, class = %x\n", vendor_id, hdr_type, class); in ibmphp_configure_card() 182 class >>= 8; in ibmphp_configure_card() 183 if (class != PCI_CLASS_BRIDGE_PCI) { in ibmphp_configure_card() [all …]
|
/drivers/usb/ |
D | Makefile | 37 obj-$(CONFIG_USB_ACM) += class/ 38 obj-$(CONFIG_USB_PRINTER) += class/ 39 obj-$(CONFIG_USB_WDM) += class/ 40 obj-$(CONFIG_USB_TMC) += class/
|
/drivers/acpi/acpica/ |
D | exresolv.c | 154 ref_type = stack_desc->reference.class; in acpi_ex_resolve_object_to_value() 390 switch (obj_desc->reference.class) { in acpi_ex_resolve_multiple() 396 if (obj_desc->reference.class == ACPI_REFCLASS_REFOF) { in acpi_ex_resolve_multiple() 470 class, in acpi_ex_resolve_multiple() 484 class, in acpi_ex_resolve_multiple() 513 obj_desc->reference.class)); in acpi_ex_resolve_multiple()
|
/drivers/ata/ |
D | libata-transport.c | 148 ata_bitfield_name_search(class, ata_class_names) 464 ata_dev_attr(class, class); 527 if (ata_dev->class == ATA_DEV_PMP) in show_ata_dev_id() 546 if (ata_dev->class != ATA_DEV_PMP) in show_ata_dev_gscr() 718 i->t.host_attrs.ac.class = &ata_port_class.class; in ata_attach_transport() 722 i->link_attr_cont.ac.class = &ata_link_class.class; in ata_attach_transport() 727 i->dev_attr_cont.ac.class = &ata_dev_class.class; in ata_attach_transport() 747 SETUP_DEV_ATTRIBUTE(class); in ata_attach_transport()
|
/drivers/parport/ |
D | probe.c | 45 printk (": %s", classes[info->class].descr); in pretty_print() 46 if (info->class) in pretty_print() 96 info->class = i; in parse_data() 101 info->class = PARPORT_CLASS_OTHER; in parse_data() 124 if (info->class == PARPORT_CLASS_UNSPEC) in parse_data() 125 info->class = guessed_class; in parse_data()
|
/drivers/s390/char/ |
D | vmur.c | 48 static struct class *vmur_class; 647 switch (urd->class) { in verify_device() 680 switch (urd->class) { in get_file_reclen() 732 if (((accmode == O_RDONLY) && (urd->class != DEV_CLASS_UR_I)) || in ur_open() 733 ((accmode == O_WRONLY) && (urd->class != DEV_CLASS_UR_O))) { in ur_open() 734 TRACE("ur_open: unsupported dev class (%d)\n", urd->class); in ur_open() 850 urd->class = get_urd_class(urd); in ur_probe() 851 if (urd->class < 0) { in ur_probe() 852 rc = urd->class; in ur_probe() 855 if ((urd->class != DEV_CLASS_UR_I) && (urd->class != DEV_CLASS_UR_O)) { in ur_probe() [all …]
|
/drivers/platform/x86/ |
D | xo15-ebook.c | 93 char *name, *class; in ebook_switch_add() local 109 class = acpi_device_class(device); in ebook_switch_add() 118 sprintf(class, "%s/%s", XO15_EBOOK_CLASS, XO15_EBOOK_SUBCLASS); in ebook_switch_add() 163 .class = XO15_EBOOK_CLASS,
|