Lines Matching refs:reg_idx
876 u8 reg_idx = ring->reg_idx; in fm10k_configure_tx_ring() local
879 fm10k_write_reg(hw, FM10K_TXDCTL(reg_idx), 0); in fm10k_configure_tx_ring()
885 fm10k_write_reg(hw, FM10K_TDBAL(reg_idx), tdba & DMA_BIT_MASK(32)); in fm10k_configure_tx_ring()
886 fm10k_write_reg(hw, FM10K_TDBAH(reg_idx), tdba >> 32); in fm10k_configure_tx_ring()
887 fm10k_write_reg(hw, FM10K_TDLEN(reg_idx), size); in fm10k_configure_tx_ring()
890 fm10k_write_reg(hw, FM10K_TDH(reg_idx), 0); in fm10k_configure_tx_ring()
891 fm10k_write_reg(hw, FM10K_TDT(reg_idx), 0); in fm10k_configure_tx_ring()
894 ring->tail = &interface->uc_addr[FM10K_TDT(reg_idx)]; in fm10k_configure_tx_ring()
906 fm10k_write_reg(hw, FM10K_TXINT(reg_idx), txint); in fm10k_configure_tx_ring()
909 fm10k_write_reg(hw, FM10K_PFVTCTL(reg_idx), in fm10k_configure_tx_ring()
920 fm10k_write_reg(hw, FM10K_TXDCTL(reg_idx), txdctl); in fm10k_configure_tx_ring()
936 u8 reg_idx = ring->reg_idx; in fm10k_enable_tx_ring() local
939 if (fm10k_read_reg(hw, FM10K_TXDCTL(reg_idx)) & FM10K_TXDCTL_ENABLE) in fm10k_enable_tx_ring()
945 txdctl = fm10k_read_reg(hw, FM10K_TXDCTL(reg_idx)); in fm10k_enable_tx_ring()
949 "Could not enable Tx Queue %d\n", reg_idx); in fm10k_enable_tx_ring()
988 u8 reg_idx = ring->reg_idx; in fm10k_configure_rx_ring() local
991 rxqctl = fm10k_read_reg(hw, FM10K_RXQCTL(reg_idx)); in fm10k_configure_rx_ring()
993 fm10k_write_reg(hw, FM10K_RXQCTL(reg_idx), rxqctl); in fm10k_configure_rx_ring()
999 fm10k_write_reg(hw, FM10K_RDBAL(reg_idx), rdba & DMA_BIT_MASK(32)); in fm10k_configure_rx_ring()
1000 fm10k_write_reg(hw, FM10K_RDBAH(reg_idx), rdba >> 32); in fm10k_configure_rx_ring()
1001 fm10k_write_reg(hw, FM10K_RDLEN(reg_idx), size); in fm10k_configure_rx_ring()
1004 fm10k_write_reg(hw, FM10K_RDH(reg_idx), 0); in fm10k_configure_rx_ring()
1005 fm10k_write_reg(hw, FM10K_RDT(reg_idx), 0); in fm10k_configure_rx_ring()
1008 ring->tail = &interface->uc_addr[FM10K_RDT(reg_idx)]; in fm10k_configure_rx_ring()
1020 fm10k_write_reg(hw, FM10K_SRRCTL(reg_idx), srrctl); in fm10k_configure_rx_ring()
1030 fm10k_write_reg(hw, FM10K_RXDCTL(reg_idx), rxdctl); in fm10k_configure_rx_ring()
1045 fm10k_write_reg(hw, FM10K_RXINT(reg_idx), rxint); in fm10k_configure_rx_ring()
1048 rxqctl = fm10k_read_reg(hw, FM10K_RXQCTL(reg_idx)); in fm10k_configure_rx_ring()
1050 fm10k_write_reg(hw, FM10K_RXQCTL(reg_idx), rxqctl); in fm10k_configure_rx_ring()
1076 u8 reg_idx = ring->reg_idx; in fm10k_update_rx_drop_en() local
1081 fm10k_write_reg(hw, FM10K_RXDCTL(reg_idx), rxdctl); in fm10k_update_rx_drop_en()