Lines Matching refs:port_regs
106 struct ql3xxx_port_registers __iomem *port_regs = in ql_sem_spinlock() local
113 &port_regs->CommonRegs.semaphoreReg); in ql_sem_spinlock()
114 value = readl(&port_regs->CommonRegs.semaphoreReg); in ql_sem_spinlock()
124 struct ql3xxx_port_registers __iomem *port_regs = in ql_sem_unlock() local
126 writel(sem_mask, &port_regs->CommonRegs.semaphoreReg); in ql_sem_unlock()
127 readl(&port_regs->CommonRegs.semaphoreReg); in ql_sem_unlock()
132 struct ql3xxx_port_registers __iomem *port_regs = in ql_sem_lock() local
136 writel((sem_mask | sem_bits), &port_regs->CommonRegs.semaphoreReg); in ql_sem_lock()
137 value = readl(&port_regs->CommonRegs.semaphoreReg); in ql_sem_lock()
166 struct ql3xxx_port_registers __iomem *port_regs = in ql_set_register_page() local
170 &port_regs->CommonRegs.ispControlStatus); in ql_set_register_page()
171 readl(&port_regs->CommonRegs.ispControlStatus); in ql_set_register_page()
275 struct ql3xxx_port_registers __iomem *port_regs = in ql_disable_interrupts() local
278 ql_write_common_reg_l(qdev, &port_regs->CommonRegs.ispInterruptMaskReg, in ql_disable_interrupts()
285 struct ql3xxx_port_registers __iomem *port_regs = in ql_enable_interrupts() local
288 ql_write_common_reg_l(qdev, &port_regs->CommonRegs.ispInterruptMaskReg, in ql_enable_interrupts()
375 struct ql3xxx_port_registers __iomem *port_regs = in fm93c56a_select() local
377 __iomem u32 *spir = &port_regs->CommonRegs.serialPortInterfaceReg; in fm93c56a_select()
392 struct ql3xxx_port_registers __iomem *port_regs = in fm93c56a_cmd() local
394 __iomem u32 *spir = &port_regs->CommonRegs.serialPortInterfaceReg; in fm93c56a_cmd()
461 struct ql3xxx_port_registers __iomem *port_regs = in fm93c56a_deselect() local
463 __iomem u32 *spir = &port_regs->CommonRegs.serialPortInterfaceReg; in fm93c56a_deselect()
477 struct ql3xxx_port_registers __iomem *port_regs = in fm93c56a_datain() local
479 __iomem u32 *spir = &port_regs->CommonRegs.serialPortInterfaceReg; in fm93c56a_datain()
562 struct ql3xxx_port_registers __iomem *port_regs = in ql_wait_for_mii_ready() local
568 temp = ql_read_page0_reg(qdev, &port_regs->macMIIStatusReg); in ql_wait_for_mii_ready()
579 struct ql3xxx_port_registers __iomem *port_regs = in ql_mii_enable_scan_mode() local
596 ql_write_page0_reg(qdev, &port_regs->macMIIMgmtAddrReg, in ql_mii_enable_scan_mode()
599 ql_write_page0_reg(qdev, &port_regs->macMIIMgmtControlReg, in ql_mii_enable_scan_mode()
607 struct ql3xxx_port_registers __iomem *port_regs = in ql_mii_disable_scan_mode() local
611 if (ql_read_page0_reg(qdev, &port_regs->macMIIMgmtControlReg) & in ql_mii_disable_scan_mode()
624 ql_write_page0_reg(qdev, &port_regs->macMIIMgmtAddrReg, in ql_mii_disable_scan_mode()
627 ql_write_page0_reg(qdev, &port_regs->macMIIMgmtControlReg, in ql_mii_disable_scan_mode()
637 struct ql3xxx_port_registers __iomem *port_regs = in ql_mii_write_reg_ex() local
648 ql_write_page0_reg(qdev, &port_regs->macMIIMgmtAddrReg, in ql_mii_write_reg_ex()
651 ql_write_page0_reg(qdev, &port_regs->macMIIMgmtDataReg, value); in ql_mii_write_reg_ex()
668 struct ql3xxx_port_registers __iomem *port_regs = in ql_mii_read_reg_ex() local
680 ql_write_page0_reg(qdev, &port_regs->macMIIMgmtAddrReg, in ql_mii_read_reg_ex()
683 ql_write_page0_reg(qdev, &port_regs->macMIIMgmtControlReg, in ql_mii_read_reg_ex()
686 ql_write_page0_reg(qdev, &port_regs->macMIIMgmtControlReg, in ql_mii_read_reg_ex()
695 temp = ql_read_page0_reg(qdev, &port_regs->macMIIMgmtDataReg); in ql_mii_read_reg_ex()
706 struct ql3xxx_port_registers __iomem *port_regs = in ql_mii_write_reg() local
716 ql_write_page0_reg(qdev, &port_regs->macMIIMgmtAddrReg, in ql_mii_write_reg()
719 ql_write_page0_reg(qdev, &port_regs->macMIIMgmtDataReg, value); in ql_mii_write_reg()
735 struct ql3xxx_port_registers __iomem *port_regs = in ql_mii_read_reg() local
745 ql_write_page0_reg(qdev, &port_regs->macMIIMgmtAddrReg, in ql_mii_read_reg()
748 ql_write_page0_reg(qdev, &port_regs->macMIIMgmtControlReg, in ql_mii_read_reg()
751 ql_write_page0_reg(qdev, &port_regs->macMIIMgmtControlReg, in ql_mii_read_reg()
760 temp = ql_read_page0_reg(qdev, &port_regs->macMIIMgmtDataReg); in ql_mii_read_reg()
1036 struct ql3xxx_port_registers __iomem *port_regs = in ql_mac_enable() local
1046 ql_write_page0_reg(qdev, &port_regs->mac1ConfigReg, value); in ql_mac_enable()
1048 ql_write_page0_reg(qdev, &port_regs->mac0ConfigReg, value); in ql_mac_enable()
1056 struct ql3xxx_port_registers __iomem *port_regs = in ql_mac_cfg_soft_reset() local
1066 ql_write_page0_reg(qdev, &port_regs->mac1ConfigReg, value); in ql_mac_cfg_soft_reset()
1068 ql_write_page0_reg(qdev, &port_regs->mac0ConfigReg, value); in ql_mac_cfg_soft_reset()
1076 struct ql3xxx_port_registers __iomem *port_regs = in ql_mac_cfg_gig() local
1086 ql_write_page0_reg(qdev, &port_regs->mac1ConfigReg, value); in ql_mac_cfg_gig()
1088 ql_write_page0_reg(qdev, &port_regs->mac0ConfigReg, value); in ql_mac_cfg_gig()
1096 struct ql3xxx_port_registers __iomem *port_regs = in ql_mac_cfg_full_dup() local
1106 ql_write_page0_reg(qdev, &port_regs->mac1ConfigReg, value); in ql_mac_cfg_full_dup()
1108 ql_write_page0_reg(qdev, &port_regs->mac0ConfigReg, value); in ql_mac_cfg_full_dup()
1116 struct ql3xxx_port_registers __iomem *port_regs = in ql_mac_cfg_pause() local
1128 ql_write_page0_reg(qdev, &port_regs->mac1ConfigReg, value); in ql_mac_cfg_pause()
1130 ql_write_page0_reg(qdev, &port_regs->mac0ConfigReg, value); in ql_mac_cfg_pause()
1138 struct ql3xxx_port_registers __iomem *port_regs = in ql_is_fiber() local
1152 temp = ql_read_page0_reg(qdev, &port_regs->portStatus); in ql_is_fiber()
1168 struct ql3xxx_port_registers __iomem *port_regs = in ql_is_auto_neg_complete() local
1182 temp = ql_read_page0_reg(qdev, &port_regs->portStatus); in ql_is_auto_neg_complete()
1204 struct ql3xxx_port_registers __iomem *port_regs = in ql_auto_neg_error() local
1217 temp = ql_read_page0_reg(qdev, &port_regs->portStatus); in ql_auto_neg_error()
1242 struct ql3xxx_port_registers __iomem *port_regs = in ql_link_down_detect() local
1257 ql_read_common_reg(qdev, &port_regs->CommonRegs.ispControlStatus); in ql_link_down_detect()
1266 struct ql3xxx_port_registers __iomem *port_regs = in ql_link_down_detect_clear() local
1272 &port_regs->CommonRegs.ispControlStatus, in ql_link_down_detect_clear()
1279 &port_regs->CommonRegs.ispControlStatus, in ql_link_down_detect_clear()
1296 struct ql3xxx_port_registers __iomem *port_regs = in ql_this_adapter_controls_port() local
1312 temp = ql_read_page0_reg(qdev, &port_regs->portStatus); in ql_this_adapter_controls_port()
1414 struct ql3xxx_port_registers __iomem *port_regs = in ql_get_link_state() local
1428 temp = ql_read_page0_reg(qdev, &port_regs->portStatus); in ql_get_link_state()
1615 struct ql3xxx_port_registers __iomem *port_regs = in ql_mii_setup() local
1625 &port_regs->macMIIMgmtControlReg, 0x0f00000); in ql_mii_setup()
1630 ql_write_page0_reg(qdev, &port_regs->macMIIMgmtControlReg, in ql_mii_setup()
1762 struct ql3xxx_port_registers __iomem *port_regs = in ql_get_pauseparam() local
1767 reg = ql_read_page0_reg(qdev, &port_regs->mac0ConfigReg); in ql_get_pauseparam()
1769 reg = ql_read_page0_reg(qdev, &port_regs->mac1ConfigReg); in ql_get_pauseparam()
1845 struct ql3xxx_port_registers __iomem *port_regs = in ql_update_small_bufq_prod_index() local
1859 &port_regs->CommonRegs.rxSmallQProducerIndex); in ql_update_small_bufq_prod_index()
1871 struct ql3xxx_port_registers __iomem *port_regs = in ql_update_lrg_bufq_prod_index() local
1912 &port_regs->CommonRegs.rxLargeQProducerIndex); in ql_update_lrg_bufq_prod_index()
2178 struct ql3xxx_port_registers __iomem *port_regs = in ql_poll() local
2191 &port_regs->CommonRegs.rspQConsumerIndex); in ql_poll()
2204 struct ql3xxx_port_registers __iomem *port_regs = in ql3xxx_isr() local
2211 &port_regs->CommonRegs.ispControlStatus); in ql3xxx_isr()
2227 &port_regs->PortFatalErrStatus); in ql3xxx_isr()
2460 struct ql3xxx_port_registers __iomem *port_regs = in ql3xxx_send() local
2500 &port_regs->CommonRegs.reqQProducerIndex, in ql3xxx_send()
2995 struct ql3xxx_port_registers __iomem *port_regs = in ql_adapter_initialize() local
2997 __iomem u32 *spir = &port_regs->CommonRegs.serialPortInterfaceReg; in ql_adapter_initialize()
2999 (void __iomem *)port_regs; in ql_adapter_initialize()
3106 &port_regs->CommonRegs. in ql_adapter_initialize()
3110 &port_regs->CommonRegs. in ql_adapter_initialize()
3119 value = ql_read_page0_reg(qdev, &port_regs->portStatus); in ql_adapter_initialize()
3129 ql_write_page0_reg(qdev, &port_regs->tcpMaxWindow, value); in ql_adapter_initialize()
3139 ql_write_page0_reg(qdev, &port_regs->ExternalHWConfig, value); in ql_adapter_initialize()
3140 ql_write_page0_reg(qdev, &port_regs->InternalChipConfig, in ql_adapter_initialize()
3149 &port_regs->mac1MaxFrameLengthReg, in ql_adapter_initialize()
3153 &port_regs->mac0MaxFrameLengthReg, in ql_adapter_initialize()
3170 ql_write_page0_reg(qdev, &port_regs->macAddrIndirectPtrReg, in ql_adapter_initialize()
3172 ql_write_page0_reg(qdev, &port_regs->macAddrDataReg, in ql_adapter_initialize()
3179 ql_write_page0_reg(qdev, &port_regs->macAddrIndirectPtrReg, in ql_adapter_initialize()
3181 ql_write_page0_reg(qdev, &port_regs->macAddrDataReg, in ql_adapter_initialize()
3186 ql_write_page0_reg(qdev, &port_regs->macAddrIndirectPtrReg, in ql_adapter_initialize()
3191 ql_write_page0_reg(qdev, &port_regs->ipAddrIndexReg, in ql_adapter_initialize()
3194 ql_write_page0_reg(qdev, &port_regs->ipAddrDataReg, 0); in ql_adapter_initialize()
3196 ql_write_page0_reg(qdev, &port_regs->ipAddrIndexReg, in ql_adapter_initialize()
3199 ql_write_page0_reg(qdev, &port_regs->ipAddrDataReg, 0); in ql_adapter_initialize()
3205 &port_regs->portControl, in ql_adapter_initialize()
3209 value = ql_read_page0_reg(qdev, &port_regs->portStatus); in ql_adapter_initialize()
3229 ql_write_page0_reg(qdev, &port_regs->functionControl, in ql_adapter_initialize()
3235 ql_write_page0_reg(qdev, &port_regs->portControl, in ql_adapter_initialize()
3249 struct ql3xxx_port_registers __iomem *port_regs = in ql_adapter_reset() local
3263 &port_regs->CommonRegs.ispControlStatus, in ql_adapter_reset()
3275 &port_regs->CommonRegs.ispControlStatus); in ql_adapter_reset()
3287 ql_read_common_reg(qdev, &port_regs->CommonRegs.ispControlStatus); in ql_adapter_reset()
3292 &port_regs->CommonRegs. in ql_adapter_reset()
3300 &port_regs->CommonRegs. in ql_adapter_reset()
3311 &port_regs->CommonRegs. in ql_adapter_reset()
3328 struct ql3xxx_port_registers __iomem *port_regs = in ql_set_mac_info() local
3335 ql_read_common_reg_l(qdev, &port_regs->CommonRegs.ispControlStatus); in ql_set_mac_info()
3337 port_status = ql_read_page0_reg(qdev, &port_regs->portStatus); in ql_set_mac_info()
3557 struct ql3xxx_port_registers __iomem *port_regs = in ql3xxx_set_mac_address() local
3572 ql_write_page0_reg(qdev, &port_regs->macAddrIndirectPtrReg, in ql3xxx_set_mac_address()
3574 ql_write_page0_reg(qdev, &port_regs->macAddrDataReg, in ql3xxx_set_mac_address()
3580 ql_write_page0_reg(qdev, &port_regs->macAddrIndirectPtrReg, in ql3xxx_set_mac_address()
3582 ql_write_page0_reg(qdev, &port_regs->macAddrDataReg, in ql3xxx_set_mac_address()
3613 struct ql3xxx_port_registers __iomem *port_regs = in ql_reset_work() local
3648 &port_regs->CommonRegs. in ql_reset_work()
3657 &port_regs->CommonRegs. in ql_reset_work()
3670 &port_regs-> in ql_reset_work()
3715 struct ql3xxx_port_registers __iomem *port_regs = in ql_get_board_info() local
3719 value = ql_read_page0_reg_l(qdev, &port_regs->portStatus); in ql_get_board_info()