| /freebsd-12.1/sys/dev/hptnr/ |
| H A D | hptnr_os_bsd.c | 58 return pci_read_config(((PHBA)osext)->pcidev, offset, 1); in os_pci_readb() 63 return pci_read_config(((PHBA)osext)->pcidev, offset, 2); in os_pci_readw() 68 return pci_read_config(((PHBA)osext)->pcidev, offset, 4); in os_pci_readl() 73 pci_write_config(((PHBA)osext)->pcidev, offset, value, 1); in os_pci_writeb() 78 pci_write_config(((PHBA)osext)->pcidev, offset, value, 2); in os_pci_writew() 83 pci_write_config(((PHBA)osext)->pcidev, offset, value, 4); in os_pci_writel() 107 base = pci_read_config(hba->pcidev, hba->pcibar[index].rid, 4); in os_map_pci_bar() 111 hba->pcibar[index].res = bus_alloc_resource_any(hba->pcidev, in os_map_pci_bar() 116 hba->pcibar[index].res = bus_alloc_resource_any(hba->pcidev, in os_map_pci_bar() 131 bus_release_resource(hba->pcidev, hba->pcibar[index].type, in os_unmap_pci_bar()
|
| H A D | os_bsd.h | 137 device_t pcidev; member
|
| H A D | hptnr_osm_bsd.c | 98 hba->pcidev = dev; in hpt_attach() 365 bus_teardown_intr(hba->pcidev, hba->irq_res, hba->irq_handle); in hpt_shutdown_vbus() 1450 if ((hba->irq_res = bus_alloc_resource_any(hba->pcidev, in hpt_final_init() 1457 if (bus_setup_intr(hba->pcidev, hba->irq_res, INTR_TYPE_CAM | INTR_MPSAFE, in hpt_final_init()
|
| /freebsd-12.1/sys/dev/hptrr/ |
| H A D | hptrr_os_bsd.c | 59 return pci_read_config(((PHBA)osext)->pcidev, offset, 1); in os_pci_readb() 64 return pci_read_config(((PHBA)osext)->pcidev, offset, 2); in os_pci_readw() 69 return pci_read_config(((PHBA)osext)->pcidev, offset, 4); in os_pci_readl() 74 pci_write_config(((PHBA)osext)->pcidev, offset, value, 1); in os_pci_writeb() 79 pci_write_config(((PHBA)osext)->pcidev, offset, value, 2); in os_pci_writew() 84 pci_write_config(((PHBA)osext)->pcidev, offset, value, 4); in os_pci_writel() 98 if (pci_read_config(hba->pcidev, hba->pcibar[index].rid, 4) & 1) in os_map_pci_bar() 103 hba->pcibar[index].res = bus_alloc_resource_any(hba->pcidev, in os_map_pci_bar() 117 bus_release_resource(hba->pcidev, hba->pcibar[index].type, in os_unmap_pci_bar()
|
| H A D | os_bsd.h | 138 device_t pcidev; member
|
| H A D | hptrr_osm_bsd.c | 104 hba->pcidev = dev; in hpt_attach() 371 bus_teardown_intr(hba->pcidev, hba->irq_res, hba->irq_handle); in hpt_shutdown_vbus() 1098 if ((hba->irq_res = bus_alloc_resource_any(hba->pcidev, in hpt_final_init() 1105 if (bus_setup_intr(hba->pcidev, hba->irq_res, INTR_TYPE_CAM | INTR_MPSAFE, in hpt_final_init()
|
| /freebsd-12.1/sys/dev/hpt27xx/ |
| H A D | hpt27xx_os_bsd.c | 59 return pci_read_config(((PHBA)osext)->pcidev, offset, 1); in os_pci_readb() 64 return pci_read_config(((PHBA)osext)->pcidev, offset, 2); in os_pci_readw() 69 return pci_read_config(((PHBA)osext)->pcidev, offset, 4); in os_pci_readl() 74 pci_write_config(((PHBA)osext)->pcidev, offset, value, 1); in os_pci_writeb() 79 pci_write_config(((PHBA)osext)->pcidev, offset, value, 2); in os_pci_writew() 84 pci_write_config(((PHBA)osext)->pcidev, offset, value, 4); in os_pci_writel() 121 base = pci_read_config(hba->pcidev, hba->pcibar[index].rid, 4); in os_map_pci_bar() 125 hba->pcibar[index].res = bus_alloc_resource_any(hba->pcidev, in os_map_pci_bar() 130 hba->pcibar[index].res = bus_alloc_resource_any(hba->pcidev, in os_map_pci_bar() 145 bus_release_resource(hba->pcidev, hba->pcibar[index].type, in os_unmap_pci_bar()
|
| H A D | os_bsd.h | 135 device_t pcidev; member
|
| H A D | hpt27xx_osm_bsd.c | 97 hba->pcidev = dev; in hpt_attach() 371 bus_teardown_intr(hba->pcidev, hba->irq_res, hba->irq_handle); in hpt_shutdown_vbus() 1265 if ((hba->irq_res = bus_alloc_resource_any(hba->pcidev, in hpt_final_init() 1272 if (bus_setup_intr(hba->pcidev, hba->irq_res, INTR_TYPE_CAM | INTR_MPSAFE, in hpt_final_init() 1274 if (bus_setup_intr(hba->pcidev, hba->irq_res, INTR_TYPE_CAM, in hpt_final_init()
|
| /freebsd-12.1/sys/dev/hptiop/ |
| H A D | hptiop.c | 1426 device_printf(hba->pcidev, in hptiop_alloc_pci_res_itl() 1436 bus_release_resource(hba->pcidev, SYS_RES_MEMORY, in hptiop_alloc_pci_res_itl() 1461 bus_release_resource(hba->pcidev, SYS_RES_MEMORY, in hptiop_alloc_pci_res_mv() 1472 bus_release_resource(hba->pcidev, SYS_RES_MEMORY, in hptiop_alloc_pci_res_mv() 1593 device_printf(hba->pcidev, in hptiop_internal_memalloc_mv() 1650 device_printf(hba->pcidev, in hptiop_internal_memalloc_mvfrey() 1898 hba->pcidev = dev; in hptiop_attach() 2327 device_printf(hba->pcidev, in hptiop_action() 2340 device_printf(hba->pcidev, "reset adapter"); in hptiop_action() 2778 device_printf(hba->pcidev, "%d ," in hptiop_os_query_remove_device() [all …]
|
| H A D | hptiop.h | 380 device_t pcidev; member
|
| /freebsd-12.1/sys/dev/pci/ |
| H A D | pci_user.c | 877 if (!pci_bar_enabled(pcidev, pm)) in pci_bar_mmap() 926 device_t pcidev; in pci_ioctl() local 1198 if (pcidev) { in pci_ioctl() 1204 pci_write_config(pcidev, in pci_ioctl() 1211 pci_read_config(pcidev, in pci_ioctl() 1217 pci_read_config(pcidev, in pci_ioctl() 1247 if (pcidev == NULL) { in pci_ioctl() 1266 if (pcidev != NULL) in pci_ioctl() 1281 if (pcidev == NULL) { in pci_ioctl() 1285 error = pci_list_vpd(pcidev, lvio); in pci_ioctl() [all …]
|
| /freebsd-12.1/sys/dev/ismt/ |
| H A D | ismt.c | 150 device_t pcidev; member 186 ISMT_DEBUG(sc->pcidev, "%s MSTS=0x%x\n", __func__, val); in ismt_intr() 277 ISMT_DEBUG(sc->pcidev, "%s timeout\n", __func__); in ismt_submit() 281 ISMT_DEBUG(sc->pcidev, "%s status=0x%x\n", __func__, desc->status); in ismt_submit() 591 sc->pcidev = dev; in ismt_attach()
|