/linux/drivers/pci/pcie/ |
A D | err.c | 52 struct pci_driver *pdrv; in report_error_detected() local 57 pdrv = dev->driver; in report_error_detected() 59 !pdrv || in report_error_detected() 60 !pdrv->err_handler || in report_error_detected() 101 pdrv = dev->driver; in report_mmio_enabled() 102 if (!pdrv || in report_mmio_enabled() 103 !pdrv->err_handler || in report_mmio_enabled() 122 pdrv = dev->driver; in report_slot_reset() 123 if (!pdrv || in report_slot_reset() 142 pdrv = dev->driver; in report_resume() [all …]
|
/linux/drivers/hwtracing/stm/ |
A D | policy.c | 227 const struct stm_protocol_driver *pdrv; in stp_policy_node_make() local 241 pdrv = policy->stm->pdrv; in stp_policy_node_make() 248 if (pdrv->policy_node_init) in stp_policy_node_make() 249 pdrv->policy_node_init((void *)policy_node->priv); in stp_policy_node_make() 312 policy->stm->pdrv->name : in stp_policy_protocol_show() 346 stm_put_protocol(stm->pdrv); in stp_policy_unbind() 347 stm->pdrv = NULL; in stp_policy_unbind() 386 const struct stm_protocol_driver *pdrv; in stp_policy_make() local 426 err = stm_lookup_protocol(proto, &pdrv, &pdrv_node_type); in stp_policy_make() 449 stm->pdrv = pdrv; in stp_policy_make() [all …]
|
A D | core.c | 314 if (stm->pdrv->output_open) { in stm_output_assign() 346 if (stm->pdrv && stm->pdrv->output_close) in stm_output_free() 347 stm->pdrv->output_close(output); in stm_output_free() 390 if (!strcmp(name, pe->pdrv->name)) in __stm_lookup_protocol() 413 if (pdrv->policy_attr) { in stm_register_protocol() 420 pe->pdrv = pdrv; in stm_register_protocol() 440 if (pe->pdrv == pdrv) { in stm_unregister_protocol() 463 module_put(pdrv->owner); in stm_put_protocol() 475 if (pe && pe->pdrv && stm_get_protocol(pe->pdrv)) { in stm_lookup_protocol() 476 *pdrv = pe->pdrv; in stm_lookup_protocol() [all …]
|
A D | stm.h | 41 const struct stm_protocol_driver *pdrv; member 107 int stm_register_protocol(const struct stm_protocol_driver *pdrv); 108 void stm_unregister_protocol(const struct stm_protocol_driver *pdrv); 110 const struct stm_protocol_driver **pdrv, 112 void stm_put_protocol(const struct stm_protocol_driver *pdrv);
|
/linux/arch/sh/drivers/ |
A D | platform_early.c | 27 struct platform_driver *pdrv = to_platform_driver(drv); in platform_match() local 34 if (pdrv->id_table) in platform_match() 35 return platform_match_id(pdrv->id_table, pdev) != NULL; in platform_match() 85 n = strlen(epdrv->pdrv->driver.name); in sh_early_platform_driver_register() 86 if (buf && !strncmp(buf, epdrv->pdrv->driver.name, n)) { in sh_early_platform_driver_register() 180 if (platform_match(&pd->dev, &epdrv->pdrv->driver)) in sh_early_platform_match() 198 if (platform_match(&pd->dev, &epdrv->pdrv->driver)) in sh_early_platform_left() 248 class_str, epdrv->pdrv->driver.name); in sh_early_platform_driver_probe_id() 278 if (epdrv->pdrv->probe(match)) in sh_early_platform_driver_probe_id()
|
/linux/arch/sh/include/asm/ |
A D | platform_early.h | 13 struct platform_driver *pdrv; member 45 .pdrv = platdrv, \
|
/linux/drivers/base/ |
A D | platform.c | 1084 struct platform_driver *pdrv = to_platform_driver(dev->driver); in platform_legacy_suspend() local 1088 if (dev->driver && pdrv->suspend) in platform_legacy_suspend() 1089 ret = pdrv->suspend(pdev, mesg); in platform_legacy_suspend() 1096 struct platform_driver *pdrv = to_platform_driver(dev->driver); in platform_legacy_resume() local 1100 if (dev->driver && pdrv->resume) in platform_legacy_resume() 1101 ret = pdrv->resume(pdev); in platform_legacy_resume() 1345 struct platform_driver *pdrv = to_platform_driver(drv); in platform_match() local 1360 if (pdrv->id_table) in platform_match() 1361 return platform_match_id(pdrv->id_table, pdev) != NULL; in platform_match()
|
/linux/drivers/pci/ |
A D | xen-pcifront.c | 591 struct pci_driver *pdrv; in pcifront_common_process() local 607 pdrv = to_pci_driver(pcidev->dev.driver); in pcifront_common_process() 609 if (pdrv->err_handler && pdrv->err_handler->error_detected) { in pcifront_common_process() 613 return pdrv->err_handler->error_detected(pcidev, state); in pcifront_common_process() 615 return pdrv->err_handler->mmio_enabled(pcidev); in pcifront_common_process() 617 return pdrv->err_handler->slot_reset(pcidev); in pcifront_common_process() 619 pdrv->err_handler->resume(pcidev); in pcifront_common_process()
|
A D | pci-driver.c | 190 struct pci_driver *pdrv = to_pci_driver(driver); in new_id_store() local 191 const struct pci_device_id *ids = pdrv->id_table; in new_id_store() 215 if (pci_match_device(pdrv, pdev)) in new_id_store() 239 retval = pci_add_dynid(pdrv, vendor, device, subvendor, subdevice, in new_id_store() 259 struct pci_driver *pdrv = to_pci_driver(driver); in remove_id_store() local 271 spin_lock(&pdrv->dynids.lock); in remove_id_store() 272 list_for_each_entry_safe(dynid, n, &pdrv->dynids.list, node) { in remove_id_store() 285 spin_unlock(&pdrv->dynids.lock); in remove_id_store()
|
/linux/drivers/scsi/megaraid/ |
A D | mbox_defs.h | 707 phys_drive_t pdrv[MBOX_MAX_PHYSICAL_DRIVES]; member 724 phys_drive_t pdrv[MBOX_MAX_PHYSICAL_DRIVES]; member 741 phys_drive_t pdrv[MBOX_MAX_PHYSICAL_DRIVES]; member
|
/linux/drivers/pinctrl/renesas/ |
A D | core.c | 1066 static void __init sh_pfc_check_driver(const struct platform_driver *pdrv) in sh_pfc_check_driver() argument 1071 !of_find_matching_node(NULL, pdrv->driver.of_match_table)) in sh_pfc_check_driver() 1086 for (i = 0; pdrv->id_table[i].name[0]; i++) in sh_pfc_check_driver() 1087 sh_pfc_check_info((void *)pdrv->id_table[i].driver_data); in sh_pfc_check_driver() 1090 for (i = 0; pdrv->driver.of_match_table[i].compatible[0]; i++) in sh_pfc_check_driver() 1091 sh_pfc_check_info(pdrv->driver.of_match_table[i].data); in sh_pfc_check_driver() 1103 static inline void sh_pfc_check_driver(struct platform_driver *pdrv) {} in sh_pfc_check_driver() argument
|
/linux/drivers/pcmcia/ |
A D | ds.c | 98 struct pcmcia_driver *pdrv = to_pcmcia_drv(driver); in new_id_store() local 123 mutex_lock(&pdrv->dynids.lock); in new_id_store() 124 list_add_tail(&dynid->node, &pdrv->dynids.list); in new_id_store() 125 mutex_unlock(&pdrv->dynids.lock); in new_id_store() 127 retval = driver_attach(&pdrv->drv); in new_id_store()
|
/linux/drivers/scsi/ |
A D | megaraid.h | 447 phys_drv pdrv[MAX_PHYSICAL_DRIVES]; member 454 phys_drv pdrv[MAX_PHYSICAL_DRIVES]; member
|
/linux/drivers/platform/x86/ |
A D | asus-wmi.c | 54 #define to_asus_wmi_driver(pdrv) \ argument 55 (container_of((pdrv), struct asus_wmi_driver, platform_driver)) 2974 struct platform_driver *pdrv = to_platform_driver(pdev->dev.driver); in asus_wmi_add() local 2975 struct asus_wmi_driver *wdrv = to_asus_wmi_driver(pdrv); in asus_wmi_add() 3232 struct platform_driver *pdrv = to_platform_driver(pdev->dev.driver); in asus_wmi_probe() local 3233 struct asus_wmi_driver *wdrv = to_asus_wmi_driver(pdrv); in asus_wmi_probe()
|
/linux/include/linux/ |
A D | hid.h | 787 #define to_hid_driver(pdrv) \ argument 788 container_of(pdrv, struct hid_driver, driver)
|
/linux/arch/powerpc/boot/dts/ |
A D | ac14xx.dts | 85 compatible = "ifm,ac14xx-fram", "linux,uio-pdrv-genirq";
|