/kernel/linux/linux-6.6/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 in report_mmio_enabled() 134 struct pci_driver *pdrv; report_slot_reset() local 155 struct pci_driver *pdrv; report_resume() local [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/hwtracing/stm/ |
H A D | policy.c | 232 const struct stm_protocol_driver *pdrv; in stp_policy_node_make() local 246 pdrv = policy->stm->pdrv; in stp_policy_node_make() 248 kzalloc(offsetof(struct stp_policy_node, priv[pdrv->priv_sz]), in stp_policy_node_make() 253 if (pdrv->policy_node_init) in stp_policy_node_make() 254 pdrv->policy_node_init((void *)policy_node->priv); in stp_policy_node_make() 317 policy->stm->pdrv->name : in stp_policy_protocol_show() 351 stm_put_protocol(stm->pdrv); in stp_policy_unbind() 352 stm->pdrv = NULL; in stp_policy_unbind() 391 const struct stm_protocol_driver *pdrv; in stp_policy_make() local [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 in stm_register_protocol() 433 stm_unregister_protocol(const struct stm_protocol_driver *pdrv) stm_unregister_protocol() argument 456 stm_get_protocol(const struct stm_protocol_driver *pdrv) stm_get_protocol() argument 461 stm_put_protocol(const struct stm_protocol_driver *pdrv) stm_put_protocol() argument 466 stm_lookup_protocol(const char *name, const struct stm_protocol_driver **pdrv, const struct config_item_type **node_type) stm_lookup_protocol() argument [all...] |
/kernel/linux/linux-6.6/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 [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 in stm_register_protocol() 433 stm_unregister_protocol(const struct stm_protocol_driver *pdrv) stm_unregister_protocol() argument 456 stm_get_protocol(const struct stm_protocol_driver *pdrv) stm_get_protocol() argument 461 stm_put_protocol(const struct stm_protocol_driver *pdrv) stm_put_protocol() argument 466 stm_lookup_protocol(const char *name, const struct stm_protocol_driver **pdrv, const struct config_item_type **node_type) stm_lookup_protocol() argument [all...] |
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
H A D | platform_early.h | 13 struct platform_driver *pdrv; member 45 .pdrv = platdrv, \
|
/kernel/linux/linux-6.6/arch/sh/include/asm/ |
H A D | platform_early.h | 13 struct platform_driver *pdrv; member 45 .pdrv = platdrv, \
|
/kernel/liteos_a/fs/fat/virpart/src/ |
H A D | virpartff.c | 253 pfs->pdrv = fs->pdrv;
in FatfsSetParentFs() 518 BYTE pdrv;
in f_checkvirpart() local 523 if (fs == NULL || (disk_status(fs->pdrv) & STA_NOINIT)) {
in f_checkvirpart() 539 pdrv = LD2PD(vol); /* Driver index */
in f_checkvirpart() 546 if (disk_read(pdrv, work, virSect, 1) != RES_OK) {
in f_checkvirpart() 677 BYTE pdrv;
in f_makevirpart() local 681 if (fs == NULL || (disk_status(fs->pdrv) & STA_NOINIT)) {
in f_makevirpart() 698 pdrv = LD2PD(vol); /* Driver index */
in f_makevirpart() 758 if (disk_write(pdrv, wor in f_makevirpart() [all...] |
/kernel/linux/linux-5.10/drivers/base/ |
H A D | platform.c | 1153 struct platform_driver *pdrv = to_platform_driver(drv); in platform_match() local 1168 if (pdrv->id_table) in platform_match() 1169 return platform_match_id(pdrv->id_table, pdev) != NULL; in platform_match() 1179 struct platform_driver *pdrv = to_platform_driver(dev->driver); in platform_legacy_suspend() local 1183 if (dev->driver && pdrv->suspend) in platform_legacy_suspend() 1184 ret = pdrv->suspend(pdev, mesg); in platform_legacy_suspend() 1191 struct platform_driver *pdrv = to_platform_driver(dev->driver); in platform_legacy_resume() local 1195 if (dev->driver && pdrv->resume) in platform_legacy_resume() 1196 ret = pdrv->resume(pdev); in platform_legacy_resume()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/ |
H A D | adf_aer.c | 188 struct pci_driver *pdrv = pdev->driver; in adf_enable_aer() local 190 pdrv->err_handler = &adf_err_handler; in adf_enable_aer()
|
/kernel/linux/linux-5.10/drivers/pci/ |
H A D | xen-pcifront.c | 589 struct pci_driver *pdrv; in pcifront_common_process() local 607 pdrv = pcidev->driver; in pcifront_common_process() 609 if (pdrv) { in pcifront_common_process() 610 if (pdrv->err_handler && pdrv->err_handler->error_detected) { in pcifront_common_process() 616 result = pdrv->err_handler-> in pcifront_common_process() 620 result = pdrv->err_handler-> in pcifront_common_process() 624 result = pdrv->err_handler-> in pcifront_common_process() 628 pdrv->err_handler->resume(pcidev); in pcifront_common_process()
|
H A D | pci-driver.c | 103 struct pci_driver *pdrv = to_pci_driver(driver); in new_id_store() local 104 const struct pci_device_id *ids = pdrv->id_table; in new_id_store() 128 if (pci_match_id(pdrv->id_table, pdev)) in new_id_store() 152 retval = pci_add_dynid(pdrv, vendor, device, subvendor, subdevice, in new_id_store() 172 struct pci_driver *pdrv = to_pci_driver(driver); in remove_id_store() local 184 spin_lock(&pdrv->dynids.lock); in remove_id_store() 185 list_for_each_entry_safe(dynid, n, &pdrv->dynids.list, node) { in remove_id_store() 198 spin_unlock(&pdrv->dynids.lock); in remove_id_store()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/drivers/pinctrl/renesas/ |
H A D | core.c | 1260 static void __init sh_pfc_check_driver(const struct platform_driver *pdrv) in sh_pfc_check_driver() argument 1265 !of_find_matching_node(NULL, pdrv->driver.of_match_table)) in sh_pfc_check_driver() 1280 for (i = 0; pdrv->id_table[i].name[0]; i++) in sh_pfc_check_driver() 1281 sh_pfc_check_info((void *)pdrv->id_table[i].driver_data); in sh_pfc_check_driver() 1284 for (i = 0; pdrv->driver.of_match_table[i].compatible[0]; i++) in sh_pfc_check_driver() 1285 sh_pfc_check_info(pdrv->driver.of_match_table[i].data); in sh_pfc_check_driver() 1297 static inline void sh_pfc_check_driver(struct platform_driver *pdrv) {} in sh_pfc_check_driver() argument
|
/kernel/linux/linux-5.10/drivers/scsi/megaraid/ |
H A D | mbox_defs.h | 365 * @pdrv_state_id : pdrv id 368 * @pdrv_fmt_counter : Indicates pdrv format started/over 369 * @pdrv_fmt_id : pdrv id 373 * @targ_xfer_id : pdrv Id 374 * @targ_xfer_val : new Xfer params of last pdrv 377 * @fcloopid_pdrvid : pdrv id 701 * @pdrv : physical drives information 707 phys_drive_t pdrv[MBOX_MAX_PHYSICAL_DRIVES]; member 716 * @pdrv : physical drives information 724 phys_drive_t pdrv[MBOX_MAX_PHYSICAL_DRIVE member 741 phys_drive_t pdrv[MBOX_MAX_PHYSICAL_DRIVES]; global() member [all...] |
/kernel/linux/linux-6.6/drivers/scsi/megaraid/ |
H A D | mbox_defs.h | 365 * @pdrv_state_id : pdrv id 368 * @pdrv_fmt_counter : Indicates pdrv format started/over 369 * @pdrv_fmt_id : pdrv id 373 * @targ_xfer_id : pdrv Id 374 * @targ_xfer_val : new Xfer params of last pdrv 377 * @fcloopid_pdrvid : pdrv id 701 * @pdrv : physical drives information 707 phys_drive_t pdrv[MBOX_MAX_PHYSICAL_DRIVES]; member 716 * @pdrv : physical drives information 724 phys_drive_t pdrv[MBOX_MAX_PHYSICAL_DRIVE member 741 phys_drive_t pdrv[MBOX_MAX_PHYSICAL_DRIVES]; global() member [all...] |
/kernel/linux/linux-5.10/drivers/pinctrl/renesas/ |
H A D | core.c | 1049 static void __init sh_pfc_check_driver(const struct platform_driver *pdrv) in sh_pfc_check_driver() argument 1065 for (i = 0; pdrv->id_table[i].name[0]; i++) in sh_pfc_check_driver() 1066 sh_pfc_check_info((void *)pdrv->id_table[i].driver_data); in sh_pfc_check_driver() 1069 for (i = 0; pdrv->driver.of_match_table[i].compatible[0]; i++) in sh_pfc_check_driver() 1070 sh_pfc_check_info(pdrv->driver.of_match_table[i].data); in sh_pfc_check_driver() 1082 static inline void sh_pfc_check_driver(struct platform_driver *pdrv) {} in sh_pfc_check_driver() argument
|
/kernel/liteos_m/components/fs/fatfs/ |
H A D | fatfs.c | 909 int pdrv;
in FatfsFdisk() local 917 pdrv = GetDevIdByDevName(dev);
in FatfsFdisk() 918 if (pdrv < 0) {
in FatfsFdisk() 923 res = f_fdisk(pdrv, (DWORD const *)partTbl, g_workBuffer);
in FatfsFdisk()
|
/kernel/liteos_a/fs/fat/os_adapt/ |
H A D | fatfs.c | 197 part = get_part((INT)fs->pdrv); in fatfs_sync() 829 if (disk_read(fs->pdrv, entry->buf, entry->sect, 1) != RES_OK) { in update_filbuff() 1132 fs->pdrv = part->part_id; in fatfs_mount() 1135 if (disk_ioctl(fs->pdrv, GET_SECTOR_SIZE, &(fs->ssize)) != RES_OK) { in fatfs_mount() 1246 part = get_part(fs->pdrv); in fatfs_umount() 1432 sp->st_dev = fs->pdrv; in fatfs_stat() 1839 if (disk_ioctl(fs.pdrv, GET_SECTOR_SIZE, &(fs.ssize)) != RES_OK) { in fatfs_setlabel() 2147 part = get_part((INT)fs->pdrv); in fatfs_fscheck() 2277 if (disk_read(fs->pdrv, buf, sect, step) != RES_OK) { in fatfs_readpage() 2375 if (disk_write(fs->pdrv, bu in fatfs_writepage() [all...] |