/openbmc/linux/drivers/pci/pcie/ |
H A D | err.c | 53 struct pci_driver *pdrv; in report_error_detected() local 58 pdrv = dev->driver; in report_error_detected() 65 } else if (!pdrv || !pdrv->err_handler || in report_error_detected() 66 !pdrv->err_handler->error_detected) { in report_error_detected() 80 err_handler = pdrv->err_handler; in report_error_detected() 113 struct pci_driver *pdrv; in report_mmio_enabled() local 118 pdrv = dev->driver; in report_mmio_enabled() 119 if (!pdrv || in report_mmio_enabled() 120 !pdrv->err_handler || in report_mmio_enabled() 121 !pdrv->err_handler->mmio_enabled) in report_mmio_enabled() [all …]
|
H A D | aer.c | 962 struct pci_driver *pdrv = dev->driver; in handle_error_source() local 964 if (pdrv && pdrv->err_handler && in handle_error_source() 965 pdrv->err_handler->cor_error_detected) in handle_error_source() 966 pdrv->err_handler->cor_error_detected(dev); in handle_error_source()
|
/openbmc/linux/arch/sh/drivers/ |
H 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()
|
/openbmc/linux/drivers/hwtracing/stm/ |
H 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() 243 kzalloc(offsetof(struct stp_policy_node, priv[pdrv->priv_sz]), 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() [all …]
|
H 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);
|
H A D | core.c | 314 if (stm->pdrv->output_open) { in stm_output_assign() 321 ret = stm->pdrv->output_open(priv, output); 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() 374 const struct stm_protocol_driver *pdrv; member 390 if (!strcmp(name, pe->pdrv->name)) in __stm_lookup_protocol() 397 int stm_register_protocol(const struct stm_protocol_driver *pdrv) in stm_register_protocol() argument 404 if (__stm_lookup_protocol(pdrv->name)) { in stm_register_protocol() 413 if (pdrv->policy_attr) { in stm_register_protocol() 414 pe->node_type = get_policy_node_type(pdrv->policy_attr); in stm_register_protocol() [all …]
|
/openbmc/linux/arch/sh/include/asm/ |
H A D | platform_early.h | 13 struct platform_driver *pdrv; member 45 .pdrv = platdrv, \
|
/openbmc/linux/drivers/pci/ |
H A D | xen-pcifront.c | 578 struct pci_driver *pdrv; in pcifront_common_process() local 594 pdrv = to_pci_driver(pcidev->dev.driver); in pcifront_common_process() 596 if (pdrv->err_handler && pdrv->err_handler->error_detected) { in pcifront_common_process() 600 return pdrv->err_handler->error_detected(pcidev, state); in pcifront_common_process() 602 return pdrv->err_handler->mmio_enabled(pcidev); in pcifront_common_process() 604 return pdrv->err_handler->slot_reset(pcidev); in pcifront_common_process() 606 pdrv->err_handler->resume(pcidev); in pcifront_common_process()
|
H A D | pci-driver.c | 191 struct pci_driver *pdrv = to_pci_driver(driver); in new_id_store() local 192 const struct pci_device_id *ids = pdrv->id_table; in new_id_store() 216 if (pci_match_device(pdrv, pdev)) in new_id_store() 240 retval = pci_add_dynid(pdrv, vendor, device, subvendor, subdevice, in new_id_store() 260 struct pci_driver *pdrv = to_pci_driver(driver); in remove_id_store() local 272 spin_lock(&pdrv->dynids.lock); in remove_id_store() 273 list_for_each_entry_safe(dynid, n, &pdrv->dynids.list, node) { in remove_id_store() 286 spin_unlock(&pdrv->dynids.lock); in remove_id_store()
|
/openbmc/linux/drivers/base/ |
H A D | platform.c | 1097 struct platform_driver *pdrv = to_platform_driver(dev->driver); in platform_legacy_suspend() local 1101 if (dev->driver && pdrv->suspend) in platform_legacy_suspend() 1102 ret = pdrv->suspend(pdev, mesg); in platform_legacy_suspend() 1109 struct platform_driver *pdrv = to_platform_driver(dev->driver); in platform_legacy_resume() local 1113 if (dev->driver && pdrv->resume) in platform_legacy_resume() 1114 ret = pdrv->resume(pdev); in platform_legacy_resume() 1338 struct platform_driver *pdrv = to_platform_driver(drv); in platform_match() local 1353 if (pdrv->id_table) in platform_match() 1354 return platform_match_id(pdrv->id_table, pdev) != NULL; in platform_match()
|
/openbmc/qemu/block/ |
H A D | file-win32.c | 776 char drives[256], *pdrv = drives; in find_cdrom() local 781 while(pdrv[0] != '\0') { in find_cdrom() 782 type = GetDriveType(pdrv); in find_cdrom() 785 snprintf(cdrom_name, cdrom_name_size, "\\\\.\\%c:", pdrv[0]); in find_cdrom() 789 pdrv += lstrlen(pdrv) + 1; in find_cdrom()
|
/openbmc/linux/drivers/scsi/megaraid/ |
H 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
|
/openbmc/linux/drivers/pinctrl/renesas/ |
H A D | core.c | 1262 static void __init sh_pfc_check_driver(const struct platform_driver *pdrv) in sh_pfc_check_driver() argument 1267 !of_find_matching_node(NULL, pdrv->driver.of_match_table)) in sh_pfc_check_driver() 1282 for (i = 0; pdrv->id_table[i].name[0]; i++) in sh_pfc_check_driver() 1283 sh_pfc_check_info((void *)pdrv->id_table[i].driver_data); in sh_pfc_check_driver() 1286 for (i = 0; pdrv->driver.of_match_table[i].compatible[0]; i++) in sh_pfc_check_driver() 1287 sh_pfc_check_info(pdrv->driver.of_match_table[i].data); in sh_pfc_check_driver() 1299 static inline void sh_pfc_check_driver(struct platform_driver *pdrv) {} in sh_pfc_check_driver() argument
|
/openbmc/linux/drivers/pcmcia/ |
H 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()
|
/openbmc/linux/drivers/scsi/ |
H A D | megaraid.h | 448 phys_drv pdrv[MAX_PHYSICAL_DRIVES]; member 455 phys_drv pdrv[MAX_PHYSICAL_DRIVES]; member
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | armada-385-atl-x530.dtsi | 48 compatible = "linux,uio-pdrv-genirq";
|
/openbmc/linux/include/linux/ |
H A D | hid.h | 851 #define to_hid_driver(pdrv) \ argument 852 container_of(pdrv, struct hid_driver, driver)
|
/openbmc/linux/arch/powerpc/boot/dts/ |
H A D | ac14xx.dts | 85 compatible = "ifm,ac14xx-fram", "linux,uio-pdrv-genirq";
|
/openbmc/linux/drivers/platform/x86/ |
H A D | asus-wmi.c | 54 #define to_asus_wmi_driver(pdrv) \ argument 55 (container_of((pdrv), struct asus_wmi_driver, platform_driver)) 4331 struct platform_driver *pdrv = to_platform_driver(pdev->dev.driver); in asus_wmi_add() local 4332 struct asus_wmi_driver *wdrv = to_asus_wmi_driver(pdrv); in asus_wmi_add() 4586 struct platform_driver *pdrv = to_platform_driver(pdev->dev.driver); in asus_wmi_probe() local 4587 struct asus_wmi_driver *wdrv = to_asus_wmi_driver(pdrv); in asus_wmi_probe()
|
/openbmc/qemu/ |
H A D | block.c | 1014 BlockDriver **pdrv, Error **errp) in find_image_format() argument 1024 *pdrv = &bdrv_raw; in find_image_format() 1032 *pdrv = NULL; in find_image_format() 1040 *pdrv = NULL; in find_image_format() 1044 *pdrv = drv; in find_image_format()
|