Home
last modified time | relevance | path

Searched refs:pci_reg (Results 1 – 11 of 11) sorted by relevance

/NextBSD/sys/dev/qlxgb/
HDqla_reg.h231 #define READ_REG32(ha, reg) bus_read_4((ha->pci_reg), reg)
236 bus_write_4((ha->pci_reg), reg, val);\
237 bus_read_4((ha->pci_reg), reg);\
243 bus_write_4((ha->pci_reg), reg, val);\
248 bus_write_4((ha->pci_reg), off, val);\
249 bus_read_4((ha->pci_reg), off);\
HDqla_def.h134 struct resource *pci_reg; member
HDqla_os.c263 ha->pci_reg = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &ha->reg_rid, in qla_pci_attach()
266 if (ha->pci_reg == NULL) { in qla_pci_attach()
290 ha->irq, ha->pci_func, rsrc_len, ha->msix_count, ha->pci_reg)); in qla_pci_attach()
511 if (ha->pci_reg) in qla_release()
513 ha->pci_reg); in qla_release()
/NextBSD/sys/dev/mpt/
HDmpt_pci.c451 mpt->pci_reg = bus_alloc_resource_any(dev, SYS_RES_MEMORY, in mpt_pci_attach()
453 if (mpt->pci_reg == NULL) { in mpt_pci_attach()
468 mpt->pci_st = rman_get_bustag(mpt->pci_reg); in mpt_pci_attach()
469 mpt->pci_sh = rman_get_bushandle(mpt->pci_reg); in mpt_pci_attach()
595 if (mpt->pci_reg) { in mpt_free_bus_resources()
597 rman_get_rid(mpt->pci_reg), mpt->pci_reg); in mpt_free_bus_resources()
598 mpt->pci_reg = NULL; in mpt_free_bus_resources()
HDmpt.h651 struct resource * pci_reg; /* Register map for chip */ member
/NextBSD/sys/dev/qlxgbe/
HDql_hw.h203 #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);\
1610 bus_write_4((ha->pci_reg), prod_reg, val);
1616 bus_write_4((ha->pci_reg), (ha->hw.sds[i].sds_consumer), val);
1619 bus_write_4((ha->pci_reg), (ha->hw.intr_src[i]), 0);
HDql_os.c311 ha->pci_reg = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &ha->reg_rid, in qla_pci_attach()
314 if (ha->pci_reg == NULL) { in qla_pci_attach()
345 ha->pci_func, rsrc_len, ha->msix_count, ha->pci_reg)); in qla_pci_attach()
367 ha->pci_func, rsrc_len, ha->msix_count, ha->pci_reg, num_rcvq); in qla_pci_attach()
633 if (ha->pci_reg) in qla_release()
635 ha->pci_reg); in qla_release()
HDql_def.h146 struct resource *pci_reg; member
/NextBSD/sys/dev/qlxge/
HDqls_hw.h920 #define READ_REG32(ha, reg) bus_read_4((ha->pci_reg), reg)
921 #define READ_REG64(ha, reg) bus_read_8((ha->pci_reg), reg)
923 #define WRITE_REG32_ONLY(ha, reg, val) bus_write_4((ha->pci_reg), reg, val)
925 #define WRITE_REG32(ha, reg, val) bus_write_4((ha->pci_reg), reg, val)
HDqls_os.c360 ha->pci_reg = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &ha->reg_rid, in qls_pci_attach()
363 if (ha->pci_reg == NULL) { in qls_pci_attach()
397 ha->pci_func, ha->msix_count, ha->pci_reg, ha->pci_reg1); in qls_pci_attach()
577 if (ha->pci_reg) in qls_release()
579 ha->pci_reg); in qls_release()
HDqls_def.h274 struct resource *pci_reg; member