| /freebsd-13.1/sys/dev/ixl/ |
| H A D | ixl_pf_i2c.c | 78 u32 i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_i2c_bus_clear() 115 u32 i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_i2c_stop() 166 u32 i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_clock_in_i2c_bit() 175 i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_clock_in_i2c_bit() 180 i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_clock_in_i2c_bit() 212 i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_get_i2c_ack() 220 i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_get_i2c_ack() 303 i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_clock_out_i2c_byte() 413 *i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_set_i2c_data() 534 i2cctl = rd32(hw, IXL_I2C_REG(hw)); in ixl_read_i2c_byte_bb() [all …]
|
| H A D | i40e_adminq.c | 319 reg = rd32(hw, hw->aq.asq.bal); in i40e_config_asq_regs() 355 reg = rd32(hw, hw->aq.arq.bal); in i40e_config_arq_regs() 790 while (rd32(hw, hw->aq.asq.head) != ntc) { in i40e_clean_asq() 792 "ntc %d head %d.\n", ntc, rd32(hw, hw->aq.asq.head)); in i40e_clean_asq() 827 return rd32(hw, hw->aq.asq.head) == hw->aq.asq.next_to_use; in i40e_asq_done() 867 val = rd32(hw, hw->aq.asq.head); in i40e_asq_send_command() 1024 if (rd32(hw, hw->aq.asq.len) & I40E_GL_ATQLEN_ATQCRIT_MASK) { in i40e_asq_send_command() 1095 ntu = rd32(hw, hw->aq.arq.head) & I40E_PF_ARQH_ARQH_MASK; in i40e_clean_arq_element() 1097 ntu = rd32(hw, hw->aq.arq.head) & I40E_VF_ARQH1_ARQH_MASK; in i40e_clean_arq_element()
|
| H A D | ixl_pf_iflib.c | 92 icr0 = rd32(hw, I40E_PFINT_ICR0); in ixl_intr() 146 reg = rd32(hw, I40E_PFINT_ICR0); in ixl_msix_adminq() 151 mask = rd32(hw, I40E_PFINT_ICR0_ENA); in ixl_msix_adminq() 168 rstat_reg = rd32(hw, I40E_GLGEN_RSTAT); in ixl_msix_adminq() 211 reg = rd32(hw, I40E_PFHMC_ERRORINFO); in ixl_msix_adminq() 215 reg = rd32(hw, I40E_PFHMC_ERRORDATA); in ixl_msix_adminq() 779 val = rd32(tx_que->vsi->hw, tx_que->txr.tail); in ixl_sysctl_qtx_tail_handler() 801 val = rd32(rx_que->vsi->hw, rx_que->rxr.tail); in ixl_sysctl_qrx_tail_handler()
|
| H A D | i40e_lan_hmc.c | 136 obj->max_cnt = rd32(hw, I40E_GLHMC_LANQMAX); in i40e_init_lan_hmc() 139 size_exp = rd32(hw, I40E_GLHMC_LANTXOBJSZ); in i40e_init_lan_hmc() 156 obj->max_cnt = rd32(hw, I40E_GLHMC_LANQMAX); in i40e_init_lan_hmc() 162 size_exp = rd32(hw, I40E_GLHMC_LANRXOBJSZ); in i40e_init_lan_hmc() 179 obj->max_cnt = rd32(hw, I40E_GLHMC_FCOEMAX); in i40e_init_lan_hmc() 185 size_exp = rd32(hw, I40E_GLHMC_FCOEDDPOBJSZ); in i40e_init_lan_hmc() 202 obj->max_cnt = rd32(hw, I40E_GLHMC_FCOEFMAX); in i40e_init_lan_hmc() 208 size_exp = rd32(hw, I40E_GLHMC_FCOEFOBJSZ); in i40e_init_lan_hmc()
|
| H A D | ixl_pf_main.c | 1538 reg = rd32(hw, I40E_QTX_ENA(pf_qidx)); in ixl_enable_tx_ring() 1708 reg = rd32(hw, I40E_GL_MDET_TX); in ixl_handle_tx_mdd_event() 1725 reg = rd32(hw, I40E_PF_MDET_TX); in ixl_handle_tx_mdd_event() 1735 reg = rd32(hw, I40E_VP_MDET_TX(i)); in ixl_handle_tx_mdd_event() 1784 reg = rd32(hw, I40E_GL_MDET_RX); in ixl_handle_rx_mdd_event() 1799 reg = rd32(hw, I40E_PF_MDET_RX); in ixl_handle_rx_mdd_event() 1809 reg = rd32(hw, I40E_VP_MDET_RX(i)); in ixl_handle_rx_mdd_event() 1862 reg = rd32(hw, I40E_PFINT_ICR0_ENA); in ixl_handle_mdd_event() 2279 new_data = rd32(hw, loreg); in ixl_stat_update48() 2301 new_data = rd32(hw, reg); in ixl_stat_update32() [all …]
|
| H A D | i40e_common.c | 1307 reg = rd32(hw, I40E_GLGEN_RSTAT); in i40e_poll_globr() 1345 reg = rd32(hw, I40E_GLGEN_RSTAT); in i40e_pf_reset() 1357 reg = rd32(hw, I40E_GLNVM_ULD); in i40e_pf_reset() 1380 reg = rd32(hw, I40E_PFGEN_CTRL); in i40e_pf_reset() 1384 reg = rd32(hw, I40E_PFGEN_CTRL); in i40e_pf_reset() 1387 reg2 = rd32(hw, I40E_GLGEN_RSTAT); in i40e_pf_reset() 1426 val = rd32(hw, I40E_GLPCI_CNF2); in i40e_clear_hw() 1432 val = rd32(hw, I40E_PFLAN_QALLOC); in i40e_clear_hw() 1442 val = rd32(hw, I40E_PF_VT_PFALLOC); in i40e_clear_hw() 6765 i = rd32(hw, I40E_PFGEN_PORTNUM); in i40e_blink_phy_link_led() [all …]
|
| H A D | i40e_nvm.c | 59 gens = rd32(hw, I40E_GLNVM_GENS); in i40e_init_nvm() 66 fla = rd32(hw, I40E_GLNVM_FLA); in i40e_init_nvm() 103 gtime = rd32(hw, I40E_GLVFGEN_TIMER); in i40e_acquire_nvm() 119 gtime = rd32(hw, I40E_GLVFGEN_TIMER); in i40e_acquire_nvm() 188 srctl = rd32(hw, I40E_GLNVM_SRCTL); in i40e_poll_sr_srctl_done_bit() 235 sr_reg = rd32(hw, I40E_GLNVM_SRDATA); in i40e_read_nvm_word_srctl() 1332 gtime = rd32(hw, I40E_GLVFGEN_TIMER); in i40e_nvmupd_state_writing()
|
| H A D | ixl_pf_iov.c | 366 ciad = rd32(hw, I40E_PF_PCI_CIAD); in ixl_flush_pcie() 385 vfrtrig = rd32(hw, I40E_VPGEN_VFRTRIG(vf->vf_num)); in ixl_reset_vf() 413 vfrstat = rd32(hw, I40E_VPGEN_VFRSTAT(vf->vf_num)); in ixl_reinit_vf() 423 vfrtrig = rd32(hw, I40E_VPGEN_VFRTRIG(vf->vf_num)); in ixl_reinit_vf() 1538 icr0 = rd32(hw, I40E_PFINT_ICR0_ENA); in ixl_handle_vflr() 1552 vflrstat = rd32(hw, I40E_GLGEN_VFLRSTAT(vflrstat_index)); in ixl_handle_vflr()
|
| H A D | i40e_osdep.h | 227 #define rd32(a, reg) rd32_osdep((a)->back, (reg)) macro
|
| /freebsd-13.1/sys/mips/cavium/ |
| H A D | octopci_bus_space.c | 201 #define rd32(a) le32toh(cvmx_read64_uint32(a)) macro 258 return (rd32(handle + offset)); in octopci_bs_r_4() 287 *addr++ = rd32(baddr); in octopci_bs_rm_4() 326 *addr++ = rd32(baddr); in octopci_bs_rr_4() 556 wr32(addr2, rd32(addr1)); in octopci_bs_c_4() 561 wr32(addr2, rd32(addr1)); in octopci_bs_c_4()
|
| /freebsd-13.1/sys/mips/malta/ |
| H A D | gt_pci_bus_space.c | 221 #define rd32(a) le32toh(readl(a)) macro 241 return (rd32(handle + offset)); in gt_pci_bs_r_4() 261 *addr++ = rd32(baddr); in gt_pci_bs_rm_4() 288 *addr++ = rd32(baddr); in gt_pci_bs_rr_4()
|
| /freebsd-13.1/sys/mips/mips/ |
| H A D | bus_space_generic.c | 199 #define rd32(a) cvmx_read64_uint32(a) macro 208 #define rd32(a) readl(a) macro 289 return (rd32(handle + offset)); in generic_bs_r_4() 329 *addr++ = rd32(baddr); in generic_bs_rm_4() 382 *addr++ = rd32(baddr); in generic_bs_rr_4() 698 wr32(addr2, rd32(addr1)); in generic_bs_c_4() 703 wr32(addr2, rd32(addr1)); in generic_bs_c_4()
|
| /freebsd-13.1/sys/dev/ice/ |
| H A D | ice_controlq.c | 96 return (rd32(hw, cq->sq.len) & (cq->sq.len_mask | in ice_check_sq_alive() 273 if (rd32(hw, ring->bal) != ICE_LO_DWORD(ring->desc_buf.pa)) in ice_cfg_cq_regs() 835 while (rd32(hw, cq->sq.head) != ntc) { in ice_clean_sq() 836 ice_debug(hw, ICE_DBG_AQ_MSG, "ntc %d head %d.\n", ntc, rd32(hw, cq->sq.head)); in ice_clean_sq() 911 return rd32(hw, cq->sq.head) == cq->sq.next_to_use; in ice_sq_done() 970 val = rd32(hw, cq->sq.head); in ice_sq_send_cmd_nolock() 1079 if (rd32(hw, cq->rq.len) & cq->rq.len_crit_mask || in ice_sq_send_cmd_nolock() 1080 rd32(hw, cq->sq.len) & cq->sq.len_crit_mask) { in ice_sq_send_cmd_nolock() 1176 ntu = (u16)(rd32(hw, cq->rq.head) & cq->rq.head_mask); in ice_clean_rq_elem() 1232 ntu = (u16)(rd32(hw, cq->rq.head) & cq->rq.head_mask); in ice_clean_rq_elem()
|
| H A D | ice_osdep.h | 84 uint32_t rd32(struct ice_hw *hw, uint32_t reg); 89 #define ice_flush(_hw) rd32((_hw), GLGEN_STAT)
|
| H A D | ice_common.c | 916 u8 max_agg_bw = (rd32(hw, GL_PWR_MODE_CTL) & in ice_get_itr_intrl_gran() 984 hw->pf_id = (u8)(rd32(hw, PF_FUNC_RID) & in ice_init_hw() 1183 reg = rd32(hw, GLGEN_RSTAT); in ice_check_reset() 1205 reg = rd32(hw, GLNVM_ULD) & uld_mask; in ice_check_reset() 1238 if ((rd32(hw, GLGEN_RSTAT) & GLGEN_RSTAT_DEVSTATE_M) || in ice_pf_reset() 1248 reg = rd32(hw, PFGEN_CTRL); in ice_pf_reset() 1258 reg = rd32(hw, PFGEN_CTRL); in ice_pf_reset() 1304 val |= rd32(hw, GLGEN_RTRIG); in ice_reset() 5245 new_data = rd32(hw, reg); in ice_stat_update32() 5310 repc = rd32(hw, GLV_REPC(vsi_num)); in ice_stat_update_repc() [all …]
|
| H A D | ice_lib.c | 1271 val = rd32(hw, QINT_RQCTL(reg)); in ice_flush_rxq_interrupts() 1308 val = rd32(hw, QINT_TQCTL(reg)); in ice_flush_txq_interrupts() 1902 val = rd32(hw, cq->rq.len); in ice_check_ctrlq_errors() 1921 val = rd32(hw, cq->sq.len); in ice_check_ctrlq_errors() 4724 rd32(hw, PFINT_OICR); in ice_configure_misc_interrupts() 7257 reg = rd32(hw, GL_MDET_TX_PQM); in ice_handle_mdd_event() 7276 reg = rd32(hw, GL_MDET_RX); in ice_handle_mdd_event() 7306 reg = rd32(hw, PF_MDET_TX_PQM); in ice_handle_mdd_event() 7313 reg = rd32(hw, PF_MDET_RX); in ice_handle_mdd_event() 9499 (rd32(hw, PRTDCB_TUP2TC))); in ice_sysctl_dump_dcbx_cfg() [all …]
|
| H A D | ice_osdep.c | 192 rd32(struct ice_hw *hw, uint32_t reg) in rd32() function
|
| H A D | ice_nvm.c | 1394 gens_stat = rd32(hw, GLNVM_GENS); in ice_init_nvm() 1401 fla = rd32(hw, GLNVM_FLA); in ice_init_nvm() 2010 data->regval = rd32(hw, cmd->offset); in ice_nvm_access_read()
|
| H A D | ice_lib.h | 761 return (u8)((rd32(hw, PF_FUNC_RID) & PF_FUNC_RID_FUNCTION_NUMBER_M) >> in ice_get_pf_id()
|
| H A D | if_ice_iflib.c | 1206 oicr = rd32(hw, PFINT_OICR); in ice_msix_admin() 1232 reset = (rd32(hw, GLGEN_RSTAT) & GLGEN_RSTAT_RESET_TYPE_M) >> in ice_msix_admin()
|
| /freebsd-13.1/sys/dev/iavf/ |
| H A D | iavf_adminq.c | 300 reg = rd32(hw, hw->aq.asq.bal); in iavf_config_asq_regs() 332 reg = rd32(hw, hw->aq.arq.bal); in iavf_config_arq_regs() 619 while (rd32(hw, hw->aq.asq.head) != ntc) { in iavf_clean_asq() 621 "ntc %d head %d.\n", ntc, rd32(hw, hw->aq.asq.head)); in iavf_clean_asq() 656 return rd32(hw, hw->aq.asq.head) == hw->aq.asq.next_to_use; in iavf_asq_done() 696 val = rd32(hw, hw->aq.asq.head); in iavf_asq_send_command() 853 if (rd32(hw, hw->aq.asq.len) & IAVF_VF_ATQLEN1_ATQCRIT_MASK) { in iavf_asq_send_command() 923 ntu = rd32(hw, hw->aq.arq.head) & IAVF_VF_ARQH1_ARQH_MASK; in iavf_clean_arq_element()
|
| H A D | if_iavf_iflib.c | 1135 oldreg = reg = rd32(hw, hw->aq.arq.len); in iavf_check_aq_errors() 1162 oldreg = reg = rd32(hw, hw->aq.asq.len); in iavf_check_aq_errors() 1238 reg = rd32(hw, IAVF_VFINT_ICR0_ENA1); in iavf_process_adminq() 1384 val = rd32(hw, IAVF_VFGEN_RSTAT) & in iavf_if_timer() 1579 reg = rd32(hw, IAVF_VFINT_ICR01); in iavf_msix_adminq() 1584 mask = rd32(hw, IAVF_VFINT_ICR0_ENA1); in iavf_msix_adminq() 1665 rd32(hw, IAVF_VFGEN_RSTAT); in iavf_disable_queue_irq()
|
| H A D | iavf_lib.c | 206 reg = rd32(hw, IAVF_VFGEN_RSTAT) & in iavf_reset_complete() 377 rd32(hw, IAVF_VFGEN_RSTAT); in iavf_enable_adminq_irq() 1130 hena = (u64)rd32(hw, IAVF_VFQF_HENA(0)) | in iavf_config_rss_reg() 1131 ((u64)rd32(hw, IAVF_VFQF_HENA(1)) << 32); in iavf_config_rss_reg()
|
| H A D | iavf_osdep.h | 247 #define rd32(hw, reg) iavf_rd32(hw, reg) macro
|
| H A D | iavf_osdep.c | 377 rd32(hw, osdep->flush_reg); in iavf_flush()
|