/freebsd/sys/dev/ixl/ |
H A D | ixl_pf_i2c.c | 77 u32 i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_i2c_bus_clear() 114 u32 i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_i2c_stop() 165 u32 i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_clock_in_i2c_bit() 174 i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_clock_in_i2c_bit() 179 i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_clock_in_i2c_bit() 202 u32 i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_get_i2c_ack() 211 i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_get_i2c_ack() 219 i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_get_i2c_ack() 252 u32 i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_clock_out_i2c_bit() 302 i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_clock_out_i2c_byte() [all …]
|
H A D | i40e_adminq.c | 318 reg = rd32(hw, hw->aq.asq.bal); in i40e_config_asq_regs() 354 reg = rd32(hw, hw->aq.arq.bal); in i40e_config_arq_regs() 789 while (rd32(hw, hw->aq.asq.head) != ntc) { in i40e_clean_asq() 791 "ntc %d head %d.\n", ntc, rd32(hw, hw->aq.asq.head)); in i40e_clean_asq() 826 return rd32(hw, hw->aq.asq.head) == hw->aq.asq.next_to_use; in i40e_asq_done() 866 val = rd32(hw, hw->aq.asq.head); in i40e_asq_send_command() 1023 if (rd32(hw, hw->aq.asq.len) & I40E_GL_ATQLEN_ATQCRIT_MASK) { in i40e_asq_send_command() 1094 ntu = rd32(hw, hw->aq.arq.head) & I40E_PF_ARQH_ARQH_MASK; in i40e_clean_arq_element() 1096 ntu = rd32(hw, hw->aq.arq.head) & I40E_VF_ARQH1_ARQH_MASK; in i40e_clean_arq_element()
|
H A D | ixl_pf_iflib.c | 91 icr0 = rd32(hw, I40E_PFINT_ICR0); in ixl_intr() 145 reg = rd32(hw, I40E_PFINT_ICR0); in ixl_msix_adminq() 150 mask = rd32(hw, I40E_PFINT_ICR0_ENA); in ixl_msix_adminq() 167 rstat_reg = rd32(hw, I40E_GLGEN_RSTAT); in ixl_msix_adminq() 210 reg = rd32(hw, I40E_PFHMC_ERRORINFO); in ixl_msix_adminq() 214 reg = rd32(hw, I40E_PFHMC_ERRORDATA); in ixl_msix_adminq() 778 val = rd32(tx_que->vsi->hw, tx_que->txr.tail); in ixl_sysctl_qtx_tail_handler() 800 val = rd32(rx_que->vsi->hw, rx_que->rxr.tail); in ixl_sysctl_qrx_tail_handler()
|
H A D | ixl_pf_main.c | 244 fwsts = rd32(hw, I40E_GL_FWSTS) & I40E_GL_FWSTS_FWS1B_MASK; in ixl_get_fw_mode() 786 rd32(hw, I40E_PFINT_ICR0); /* read to clear */ in ixl_configure_intr0_msix() 1694 reg = rd32(hw, I40E_QTX_ENA(pf_qidx)); in ixl_enable_tx_ring() 1700 reg = rd32(hw, I40E_QTX_ENA(pf_qidx)); in ixl_enable_tx_ring() 1728 reg = rd32(hw, I40E_QRX_ENA(pf_qidx)); in ixl_enable_rx_ring() 1734 reg = rd32(hw, I40E_QRX_ENA(pf_qidx)); in ixl_enable_rx_ring() 1781 reg = rd32(hw, I40E_QTX_ENA(pf_qidx)); in ixl_disable_tx_ring() 1786 reg = rd32(hw, I40E_QTX_ENA(pf_qidx)); in ixl_disable_tx_ring() 1817 reg = rd32(hw, I40E_QRX_ENA(pf_qidx)); in ixl_disable_rx_ring() 1822 reg = rd32(hw, I40E_QRX_ENA(pf_qidx)); in ixl_disable_rx_ring() [all …]
|
H A D | i40e_lan_hmc.c | 135 obj->max_cnt = rd32(hw, I40E_GLHMC_LANQMAX); in i40e_init_lan_hmc() 138 size_exp = rd32(hw, I40E_GLHMC_LANTXOBJSZ); in i40e_init_lan_hmc() 155 obj->max_cnt = rd32(hw, I40E_GLHMC_LANQMAX); in i40e_init_lan_hmc() 161 size_exp = rd32(hw, I40E_GLHMC_LANRXOBJSZ); in i40e_init_lan_hmc() 178 obj->max_cnt = rd32(hw, I40E_GLHMC_FCOEMAX); in i40e_init_lan_hmc() 184 size_exp = rd32(hw, I40E_GLHMC_FCOEDDPOBJSZ); in i40e_init_lan_hmc() 201 obj->max_cnt = rd32(hw, I40E_GLHMC_FCOEFMAX); in i40e_init_lan_hmc() 207 size_exp = rd32(hw, I40E_GLHMC_FCOEFOBJSZ); in i40e_init_lan_hmc()
|
H A D | i40e_common.c | 399 return !!(rd32(hw, hw->aq.asq.len) & in i40e_check_asq_alive() 402 return !!(rd32(hw, hw->aq.asq.len) & in i40e_check_asq_alive() 1014 port = (rd32(hw, I40E_PFGEN_PORTNUM) & I40E_PFGEN_PORTNUM_PORT_NUM_MASK) in i40e_init_shared_code() 1017 ari = (rd32(hw, I40E_GLPCI_CAPSUP) & I40E_GLPCI_CAPSUP_ARI_EN_MASK) >> in i40e_init_shared_code() 1019 func_rid = rd32(hw, I40E_PF_FUNC_RID); in i40e_init_shared_code() 1166 reg_val = rd32(hw, I40E_GLLAN_TXPRE_QDIS(reg_block)); in i40e_pre_tx_queue_cfg() 1307 reg = rd32(hw, I40E_GLGEN_RSTAT); in i40e_poll_globr() 1338 grst_del = (rd32(hw, I40E_GLGEN_RSTCTL) & in i40e_pf_reset() 1345 reg = rd32(hw, I40E_GLGEN_RSTAT); in i40e_pf_reset() 1357 reg = rd32(hw, I40E_GLNVM_ULD); in i40e_pf_reset() [all …]
|
H A D | i40e_nvm.c | 58 gens = rd32(hw, I40E_GLNVM_GENS); in i40e_init_nvm() 65 fla = rd32(hw, I40E_GLNVM_FLA); in i40e_init_nvm() 102 gtime = rd32(hw, I40E_GLVFGEN_TIMER); in i40e_acquire_nvm() 118 gtime = rd32(hw, I40E_GLVFGEN_TIMER); in i40e_acquire_nvm() 187 srctl = rd32(hw, I40E_GLNVM_SRCTL); in i40e_poll_sr_srctl_done_bit() 234 sr_reg = rd32(hw, I40E_GLNVM_SRDATA); in i40e_read_nvm_word_srctl() 1331 gtime = rd32(hw, I40E_GLVFGEN_TIMER); in i40e_nvmupd_state_writing()
|
H A D | ixl_pf_iov.c | 363 ciad = rd32(hw, I40E_PF_PCI_CIAD); in ixl_flush_pcie() 382 vfrtrig = rd32(hw, I40E_VPGEN_VFRTRIG(vf->vf_num)); in ixl_reset_vf() 410 vfrstat = rd32(hw, I40E_VPGEN_VFRSTAT(vf->vf_num)); in ixl_reinit_vf() 420 vfrtrig = rd32(hw, I40E_VPGEN_VFRTRIG(vf->vf_num)); in ixl_reinit_vf() 1535 icr0 = rd32(hw, I40E_PFINT_ICR0_ENA); in ixl_handle_vflr() 1549 vflrstat = rd32(hw, I40E_GLGEN_VFLRSTAT(vflrstat_index)); in ixl_handle_vflr()
|
H A D | i40e_osdep.h | 223 #define rd32(a, reg) rd32_osdep((a)->back, (reg)) macro
|
/freebsd/sys/dev/irdma/ |
H A D | icrdma_hw.c | 262 lfc &= (rd32(vsi->dev->hw, in irdma_is_lfc_set() 264 lfc &= (rd32(vsi->dev->hw, in irdma_is_lfc_set() 266 lfc &= rd32(vsi->dev->hw, in irdma_is_lfc_set() 280 value = rd32(vsi->dev->hw, reg_offset); in irdma_check_tc_has_pfc() 295 pause = (rd32(vsi->dev->hw, in irdma_is_pfc_set() 298 pause &= (rd32(vsi->dev->hw, in irdma_is_pfc_set() 393 wqm_data = rd32(hw, GLPE_WQMTXIDXDATA); in disable_prefetch() 406 wqm_data = rd32(hw, GLPE_WQMTXIDXDATA); in disable_tx_spad() 417 val = rd32(hw, GL_RDPU_CNTRL); in rdpu_ackreqpmthresh()
|
H A D | osdep.h | 183 #define rd32(a, reg) irdma_rd32((a)->dev_context, (reg)) macro
|
/freebsd/sys/dev/ice/ |
H A D | ice_controlq.c | 110 return (rd32(hw, cq->sq.len) & (cq->sq.len_mask | in ice_alloc_ctrlq_sq_ring() 280 if (rd32(hw, ring->bal) != ICE_LO_DWORD(ring->desc_buf.pa)) in ice_cfg_sq_regs() 886 head = rd32(hw, sq->head); in ice_debug_cq() 904 head = rd32(hw, sq->head); in ice_debug_cq() 1005 return rd32(hw, cq->sq.head) == cq->sq.next_to_use; in ice_sq_send_cmd_nolock() 1064 val = rd32(hw, cq->sq.head); in ice_sq_send_cmd_nolock() 1171 if (rd32(hw, cq->rq.len) & cq->rq.len_crit_mask || in ice_clean_rq_elem() 1172 rd32(hw, cq->sq.len) & cq->sq.len_crit_mask) { in ice_clean_rq_elem() 1269 ntu = (u16)(rd32(hw, cq->rq.head) & cq->rq.head_mask); 1324 ntu = (u16)(rd32(h [all...] |
H A D | ice_osdep.h | 85 uint32_t rd32(struct ice_hw *hw, uint32_t reg); 90 #define ice_flush(_hw) rd32((_hw), GLGEN_STAT)
|
H A D | ice_common.c | 787 val = rd32(hw, E830_PRTMAC_CL01_PAUSE_QUANTA); in ice_init_fltr_mgmt_struct() 792 val = rd32(hw, E830_PRTMAC_CL01_QUANTA_THRESH); in ice_init_fltr_mgmt_struct() 796 val = rd32(hw, E800_PRTMAC_HSEC_CTL_TX_PAUSE_QUANTA(E800_IDX_OF_LFC)); in ice_init_fltr_mgmt_struct() 802 val = rd32(hw, E800_PRTMAC_HSEC_CTL_TX_PAUSE_REFRESH_TIMER(E800_IDX_OF_LFC)); 953 u8 max_agg_bw = (rd32(hw, GL_PWR_MODE_CTL) & in ice_init_hw() 1021 hw->pf_id = (u8)(rd32(hw, PF_FUNC_RID) & in ice_init_hw() 1222 grst_timeout = ((rd32(hw, GLGEN_RSTCTL) & GLGEN_RSTCTL_GRSTDEL_M) >> in ice_pf_reset() 1227 reg = rd32(hw, GLGEN_RSTAT); in ice_pf_reset() 1252 reg = rd32(hw, GLNVM_ULD) & uld_mask; 1285 if ((rd32(h [all...] |
H A D | ice_osdep.c | 184 * rd32 - Read a 32bit hardware register value 191 rd32(struct ice_hw *hw, uint32_t reg) in rd32() function
|
H A D | ice_lib.c | 1481 val = rd32(hw, QINT_RQCTL(reg)); 1518 val = rd32(hw, QINT_TQCTL(reg)); in ice_configure_tx_itr() 1750 regval = rd32(hw, QRXFLXP_CNTXT(pf_q)); 1820 qrx_ctrl = rd32(hw, QRX_CTRL(pf_q)); in ice_control_rx_queue() 2136 val = rd32(hw, cq->rq.len); in ice_process_link_event() 2155 val = rd32(hw, cq->sq.len); in ice_process_link_event() 4714 info = rd32(hw, PFHMC_ERRORINFO); in ice_add_sysctls_eth_stats() 4715 data = rd32(hw, PFHMC_ERRORDATA); in ice_add_sysctls_eth_stats() 5245 rd32(hw, PFINT_OICR); in ice_sync_one_mcast_filter() 6415 if (rd32(h [all...] |
H A D | ice_nvm.c | 1428 gens_stat = rd32(hw, GLNVM_GENS); in ice_init_nvm() 1435 fla = rd32(hw, GLNVM_FLA); in ice_init_nvm() 2062 data->regval = rd32(hw, cmd->offset);
|
H A D | if_ice_iflib.c | 1276 oicr = rd32(hw, PFINT_OICR); in ice_msix_admin() 1302 reset = (rd32(hw, GLGEN_RSTAT) & GLGEN_RSTAT_RESET_TYPE_M) >> in ice_msix_admin() 2145 if (rd32(hw, GL_MNG_FWSM) & GL_MNG_FWSM_FW_LOADING_M) in ice_poll_for_media_avail() 2813 (((rd32(hw, GLGEN_RSTAT) & GLGEN_RSTAT_RESET_TYPE_M) >> in ice_handle_reset_event() 3337 (rd32(hw, GL_MNG_FWSM) & GL_MNG_FWSM_FW_LOADING_M)) { in ice_init_link()
|
H A D | ice_lib.h | 901 return (u8)((rd32(hw, PF_FUNC_RID) & PF_FUNC_RID_FUNCTION_NUMBER_M) >> in ice_get_pf_id()
|
H A D | ice_rdma.c | 381 up2tc = rd32(hw, PRTDCB_TUP2TC); in ice_rdma_cp_qos_info()
|
/freebsd/sys/dev/iavf/ |
H A D | iavf_adminq.c | 299 reg = rd32(hw, hw->aq.asq.bal); in iavf_config_asq_regs() 331 reg = rd32(hw, hw->aq.arq.bal); in iavf_config_arq_regs() 618 while (rd32(hw, hw->aq.asq.head) != ntc) { in iavf_clean_asq() 620 "ntc %d head %d.\n", ntc, rd32(hw, hw->aq.asq.head)); in iavf_clean_asq() 655 return rd32(hw, hw->aq.asq.head) == hw->aq.asq.next_to_use; in iavf_asq_done() 695 val = rd32(hw, hw->aq.asq.head); in iavf_asq_send_command() 852 if (rd32(hw, hw->aq.asq.len) & IAVF_VF_ATQLEN1_ATQCRIT_MASK) { in iavf_asq_send_command() 922 ntu = rd32(hw, hw->aq.arq.head) & IAVF_VF_ARQH1_ARQH_MASK; in iavf_clean_arq_element()
|
H A D | if_iavf_iflib.c | 1136 oldreg = reg = rd32(hw, hw->aq.arq.len); in iavf_check_aq_errors() 1163 oldreg = reg = rd32(hw, hw->aq.asq.len); in iavf_check_aq_errors() 1239 reg = rd32(hw, IAVF_VFINT_ICR0_ENA1); in iavf_process_adminq() 1385 val = rd32(hw, IAVF_VFGEN_RSTAT) & in iavf_if_timer() 1599 reg = rd32(hw, IAVF_VFINT_ICR01); in iavf_msix_adminq() 1604 mask = rd32(hw, IAVF_VFINT_ICR0_ENA1); in iavf_msix_adminq() 1685 rd32(hw, IAVF_VFGEN_RSTAT); in iavf_disable_queue_irq()
|
H A D | iavf_lib.c | 205 reg = rd32(hw, IAVF_VFGEN_RSTAT) & in iavf_reset_complete() 376 rd32(hw, IAVF_VFGEN_RSTAT); in iavf_enable_adminq_irq() 1125 hena = (u64)rd32(hw, IAVF_VFQF_HENA(0)) | in iavf_config_rss_reg() 1126 ((u64)rd32(hw, IAVF_VFQF_HENA(1)) << 32); in iavf_config_rss_reg()
|
H A D | iavf_osdep.h | 246 #define rd32(hw, reg) iavf_rd32(hw, reg) macro
|
H A D | iavf_osdep.c | 376 rd32(hw, osdep->flush_reg); in iavf_flush()
|