/freebsd/sys/dev/qlxgb/ |
H A D | qla_reg.h | 228 #define READ_REG32(ha, reg) bus_read_4((ha->pci_reg), reg) 233 bus_write_4((ha->pci_reg), reg, val);\ 234 bus_read_4((ha->pci_reg), reg);\ 240 bus_write_4((ha->pci_reg), reg, val);\ 245 bus_write_4((ha->pci_reg), off, val);\ 246 bus_read_4((ha->pci_reg), off);\
|
H A D | qla_def.h | 134 struct resource *pci_reg; member
|
H A D | qla_os.c | 260 ha->pci_reg = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &ha->reg_rid, in qla_pci_attach() 263 if (ha->pci_reg == NULL) { in qla_pci_attach() 287 ha->irq, ha->pci_func, rsrc_len, ha->msix_count, ha->pci_reg)); in qla_pci_attach() 504 if (ha->pci_reg) in qla_release() 506 ha->pci_reg); in qla_release()
|
/freebsd/sys/dev/mpt/ |
H A D | mpt_pci.c | 446 mpt->pci_reg = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in mpt_pci_attach() 448 if (mpt->pci_reg == NULL) { in mpt_pci_attach() 463 mpt->pci_st = rman_get_bustag(mpt->pci_reg); in mpt_pci_attach() 464 mpt->pci_sh = rman_get_bushandle(mpt->pci_reg); in mpt_pci_attach() 590 if (mpt->pci_reg) { in mpt_free_bus_resources() 592 rman_get_rid(mpt->pci_reg), mpt->pci_reg); in mpt_free_bus_resources() 593 mpt->pci_reg = NULL; in mpt_free_bus_resources()
|
H A D | mpt.h | 649 struct resource * pci_reg; /* Register map for chip */ member
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | bcm_osal.h | 43 extern uint32_t qlnx_pci_read_config_byte(void *ecore_dev, uint32_t pci_reg, 45 extern uint32_t qlnx_pci_read_config_word(void *ecore_dev, uint32_t pci_reg, 47 extern uint32_t qlnx_pci_read_config_dword(void *ecore_dev, uint32_t pci_reg, 49 extern void qlnx_pci_write_config_byte(void *ecore_dev, uint32_t pci_reg, 51 extern void qlnx_pci_write_config_word(void *ecore_dev, uint32_t pci_reg, 53 extern void qlnx_pci_write_config_dword(void *ecore_dev, uint32_t pci_reg,
|
H A D | qlnx_os.c | 764 ha->pci_reg = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &ha->reg_rid, in qlnx_pci_attach() 767 if (ha->pci_reg == NULL) { in qlnx_pci_attach() 818 ha->pci_dev, ha->pci_reg, rsrc_len_reg, in qlnx_pci_attach() 907 ha->pci_reg, rsrc_len_reg, in qlnx_pci_attach() 1213 ha->cdev.regview = ha->pci_reg; in qlnx_init_hw() 1225 ha->pci_dbells = ha->pci_reg; in qlnx_init_hw() 1345 if (ha->pci_reg) in qlnx_release() 1347 ha->pci_reg); in qlnx_release() 3127 bus_barrier(ha->pci_reg, 0, 0, BUS_SPACE_BARRIER_READ); in qlnx_txq_doorbell_wr32() 5186 qlnx_pci_read_config_byte(void *ecore_dev, uint32_t pci_reg, uint8_t *reg_value) in qlnx_pci_read_config_byte() argument [all …]
|
H A D | qlnx_def.h | 381 struct resource *pci_reg; member
|
/freebsd/sys/dev/qlxge/ |
H A D | qls_hw.h | 898 #define READ_REG32(ha, reg) bus_read_4((ha->pci_reg), reg) 899 #define READ_REG64(ha, reg) bus_read_8((ha->pci_reg), reg) 901 #define WRITE_REG32_ONLY(ha, reg, val) bus_write_4((ha->pci_reg), reg, val) 903 #define WRITE_REG32(ha, reg, val) bus_write_4((ha->pci_reg), reg, val)
|
H A D | qls_os.c | 351 ha->pci_reg = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &ha->reg_rid, in qls_pci_attach() 354 if (ha->pci_reg == NULL) { in qls_pci_attach() 388 ha->pci_func, ha->msix_count, ha->pci_reg, ha->pci_reg1)); in qls_pci_attach() 564 if (ha->pci_reg) in qls_release() 566 ha->pci_reg); in qls_release()
|
H A D | qls_def.h | 271 struct resource *pci_reg; member
|
/freebsd/sys/dev/qlxgbe/ |
H A D | ql_hw.h | 203 #define READ_REG32(ha, reg) bus_read_4((ha->pci_reg), reg) 207 bus_write_4((ha->pci_reg), reg, val);\ 208 bus_read_4((ha->pci_reg), reg);\ 1716 bus_write_4((ha->pci_reg), prod_reg, val); 1722 bus_write_4((ha->pci_reg), (ha->hw.sds[i].sds_consumer), val); 1725 bus_write_4((ha->pci_reg), (ha->hw.intr_src[i]), 0);
|
H A D | ql_def.h | 158 struct resource *pci_reg; member
|
H A D | ql_os.c | 348 ha->pci_reg = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &ha->reg_rid, in qla_pci_attach() 351 if (ha->pci_reg == NULL) { in qla_pci_attach() 387 ha->pci_func, rsrc_len, ha->msix_count, ha->pci_reg, in qla_pci_attach() 411 ha->pci_reg, ha->pci_reg1, num_rcvq)); in qla_pci_attach() 695 if (ha->pci_reg) in qla_release() 697 ha->pci_reg); in qla_release()
|