| /freebsd-13.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-13.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-13.1/sys/dev/pci/ |
| H A D | pci_user.c | 936 pm = pci_find_bar(pcidev, bar); in pci_bar_io() 1012 device_t pcidev; in pci_ioctl() local 1291 if (pcidev) { in pci_ioctl() 1297 pci_write_config(pcidev, in pci_ioctl() 1304 pci_read_config(pcidev, in pci_ioctl() 1310 pci_read_config(pcidev, in pci_ioctl() 1340 if (pcidev == NULL) { in pci_ioctl() 1359 if (pcidev != NULL) in pci_ioctl() 1374 if (pcidev == NULL) { in pci_ioctl() 1391 error = pcidev == NULL ? ENODEV : pci_bar_mmap(pcidev, pbm); in pci_ioctl() [all …]
|
| /freebsd-13.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() 1168 if ((hba->irq_res = bus_alloc_resource_any(hba->pcidev, in hpt_final_init() 1174 if (bus_setup_intr(hba->pcidev, hba->irq_res, INTR_TYPE_CAM | INTR_MPSAFE, in hpt_final_init()
|
| /freebsd-13.1/sys/dev/hptiop/ |
| H A D | hptiop.c | 1421 device_printf(hba->pcidev, in hptiop_alloc_pci_res_itl() 1431 bus_release_resource(hba->pcidev, SYS_RES_MEMORY, in hptiop_alloc_pci_res_itl() 1456 bus_release_resource(hba->pcidev, SYS_RES_MEMORY, in hptiop_alloc_pci_res_mv() 1467 bus_release_resource(hba->pcidev, SYS_RES_MEMORY, in hptiop_alloc_pci_res_mv() 1588 device_printf(hba->pcidev, in hptiop_internal_memalloc_mv() 1645 device_printf(hba->pcidev, in hptiop_internal_memalloc_mvfrey() 1893 hba->pcidev = dev; in hptiop_attach() 2322 device_printf(hba->pcidev, in hptiop_action() 2335 device_printf(hba->pcidev, "reset adapter"); in hptiop_action() 2773 device_printf(hba->pcidev, "%d ," in hptiop_os_query_remove_device() [all …]
|
| H A D | hptiop.h | 380 device_t pcidev; member
|
| /freebsd-13.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()
|