Home
last modified time | relevance | path

Searched refs:pdrv (Results 1 – 17 of 17) sorted by relevance

/linux-6.6.21/drivers/pci/pcie/
Derr.c52 struct pci_driver *pdrv; in report_error_detected() local
57 pdrv = dev->driver; in report_error_detected()
64 } else if (!pdrv || !pdrv->err_handler || in report_error_detected()
65 !pdrv->err_handler->error_detected) { in report_error_detected()
79 err_handler = pdrv->err_handler; in report_error_detected()
100 struct pci_driver *pdrv; in report_mmio_enabled() local
105 pdrv = dev->driver; in report_mmio_enabled()
106 if (!pdrv || in report_mmio_enabled()
107 !pdrv->err_handler || in report_mmio_enabled()
108 !pdrv->err_handler->mmio_enabled) in report_mmio_enabled()
[all …]
Daer.c962 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()
/linux-6.6.21/arch/sh/drivers/
Dplatform_early.c27 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-6.6.21/drivers/hwtracing/stm/
Dpolicy.c227 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 …]
Dstm.h41 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);
Dcore.c314 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 …]
/linux-6.6.21/arch/sh/include/asm/
Dplatform_early.h13 struct platform_driver *pdrv; member
45 .pdrv = platdrv, \
/linux-6.6.21/drivers/pci/
Dxen-pcifront.c578 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()
Dpci-driver.c191 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()
/linux-6.6.21/drivers/base/
Dplatform.c1097 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()
/linux-6.6.21/drivers/scsi/megaraid/
Dmbox_defs.h707 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-6.6.21/drivers/pinctrl/renesas/
Dcore.c1258 static void __init sh_pfc_check_driver(const struct platform_driver *pdrv) in sh_pfc_check_driver() argument
1263 !of_find_matching_node(NULL, pdrv->driver.of_match_table)) in sh_pfc_check_driver()
1278 for (i = 0; pdrv->id_table[i].name[0]; i++) in sh_pfc_check_driver()
1279 sh_pfc_check_info((void *)pdrv->id_table[i].driver_data); in sh_pfc_check_driver()
1282 for (i = 0; pdrv->driver.of_match_table[i].compatible[0]; i++) in sh_pfc_check_driver()
1283 sh_pfc_check_info(pdrv->driver.of_match_table[i].data); in sh_pfc_check_driver()
1295 static inline void sh_pfc_check_driver(struct platform_driver *pdrv) {} in sh_pfc_check_driver() argument
/linux-6.6.21/drivers/pcmcia/
Dds.c98 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-6.6.21/drivers/scsi/
Dmegaraid.h448 phys_drv pdrv[MAX_PHYSICAL_DRIVES]; member
455 phys_drv pdrv[MAX_PHYSICAL_DRIVES]; member
/linux-6.6.21/include/linux/
Dhid.h848 #define to_hid_driver(pdrv) \ argument
849 container_of(pdrv, struct hid_driver, driver)
/linux-6.6.21/arch/powerpc/boot/dts/
Dac14xx.dts85 compatible = "ifm,ac14xx-fram", "linux,uio-pdrv-genirq";
/linux-6.6.21/drivers/platform/x86/
Dasus-wmi.c54 #define to_asus_wmi_driver(pdrv) \ argument
55 (container_of((pdrv), struct asus_wmi_driver, platform_driver))
4328 struct platform_driver *pdrv = to_platform_driver(pdev->dev.driver); in asus_wmi_add() local
4329 struct asus_wmi_driver *wdrv = to_asus_wmi_driver(pdrv); in asus_wmi_add()
4585 struct platform_driver *pdrv = to_platform_driver(pdev->dev.driver); in asus_wmi_probe() local
4586 struct asus_wmi_driver *wdrv = to_asus_wmi_driver(pdrv); in asus_wmi_probe()