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

/freebsd-10.0-release/sys/dev/qlxgb/
H A Dqla_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);\
H A Dqla_def.h134 struct resource *pci_reg; member in struct:qla_host
H A Dqla_os.c263 ha->pci_reg = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &ha->reg_rid,
266 if (ha->pci_reg == NULL) {
289 " msix_count 0x%x pci_reg %p\n", __func__, ha,
290 ha->irq, ha->pci_func, rsrc_len, ha->msix_count, ha->pci_reg));
511 if (ha->pci_reg)
513 ha->pci_reg);
/freebsd-10.0-release/sys/dev/mpt/
H A Dmpt_pci.c459 mpt->pci_reg = bus_alloc_resource_any(dev, SYS_RES_MEMORY,
461 if (mpt->pci_reg == NULL) {
476 mpt->pci_st = rman_get_bustag(mpt->pci_reg);
477 mpt->pci_sh = rman_get_bushandle(mpt->pci_reg);
611 if (mpt->pci_reg) {
613 rman_get_rid(mpt->pci_reg), mpt->pci_reg);
614 mpt->pci_reg = NULL;
H A Dmpt.h684 struct resource * pci_reg; /* Register map for chip */ member in struct:mpt_softc
/freebsd-10.0-release/sys/dev/qlxgbe/
H A Dql_def.h146 struct resource *pci_reg; member in struct:qla_host
H A Dql_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);\
1541 bus_write_4((ha->pci_reg), prod_reg, val);
1547 bus_write_4((ha->pci_reg), (ha->hw.sds[i].sds_consumer), val);
1550 bus_write_4((ha->pci_reg), (ha->hw.intr_src[i]), 0);
H A Dql_os.c295 ha->pci_reg = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &ha->reg_rid,
298 if (ha->pci_reg == NULL) {
328 " msix_count 0x%x pci_reg %p\n", __func__, ha,
329 ha->pci_func, rsrc_len, ha->msix_count, ha->pci_reg));
588 if (ha->pci_reg)
590 ha->pci_reg);
/freebsd-10.0-release/sys/dev/qlxge/
H A Dqls_def.h274 struct resource *pci_reg; member in struct:qla_host
H A Dqls_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)
H A Dqls_os.c360 ha->pci_reg = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &ha->reg_rid,
363 if (ha->pci_reg == NULL) {
396 " pci_reg %p pci_reg1 %p\n", __func__, ha,
397 ha->pci_func, ha->msix_count, ha->pci_reg, ha->pci_reg1);
577 if (ha->pci_reg)
579 ha->pci_reg);

Completed in 335 milliseconds