/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/ |
H A D | ecore_dev.c | 98 if (IS_VF(p_hwfn->p_dev)) { in ecore_hw_bar_size() 114 if (p_hwfn->p_dev->num_hwfns > 1) { in ecore_hw_bar_size() 125 void ecore_init_dp(struct ecore_dev *p_dev, in ecore_init_dp() argument 132 p_dev->dp_level = dp_level; in ecore_init_dp() 133 p_dev->dp_module = dp_module; in ecore_init_dp() 134 p_dev->dp_ctx = dp_ctx; in ecore_init_dp() 136 struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i]; in ecore_init_dp() 144 void ecore_init_struct(struct ecore_dev *p_dev) in ecore_init_struct() argument 149 struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i]; in ecore_init_struct() 151 p_hwfn->p_dev = p_dev; in ecore_init_struct() [all …]
|
H A D | ecore_selftest.c | 44 enum _ecore_status_t ecore_selftest_memory(struct ecore_dev *p_dev) in ecore_selftest_memory() argument 49 for_each_hwfn(p_dev, i) { in ecore_selftest_memory() 50 rc = ecore_sp_heartbeat_ramrod(&p_dev->hwfns[i]); in ecore_selftest_memory() 58 enum _ecore_status_t ecore_selftest_interrupt(struct ecore_dev *p_dev) in ecore_selftest_interrupt() argument 63 for_each_hwfn(p_dev, i) { in ecore_selftest_interrupt() 64 rc = ecore_sp_heartbeat_ramrod(&p_dev->hwfns[i]); in ecore_selftest_interrupt() 72 enum _ecore_status_t ecore_selftest_register(struct ecore_dev *p_dev) in ecore_selftest_register() argument 81 for_each_hwfn(p_dev, i) { in ecore_selftest_register() 82 p_hwfn = &p_dev->hwfns[i]; in ecore_selftest_register() 97 enum _ecore_status_t ecore_selftest_clock(struct ecore_dev *p_dev) in ecore_selftest_clock() argument [all …]
|
H A D | ecore.h | 149 ((sizeof(type_name) + (u32)(1<<(p_hwfn->p_dev->cache_shift))-1) & \ 150 ~((1<<(p_hwfn->p_dev->cache_shift))-1)) 165 #define DP_ERR(p_dev, fmt, ...) \ argument 167 PRINT_ERR((p_dev)->dp_ctx, "[%s:%d(%s)]" fmt, \ 169 (p_dev)->name ? (p_dev)->name : "", \ 173 #define DP_NOTICE(p_dev, is_assert, fmt, ...) \ argument 175 if (OSAL_UNLIKELY((p_dev)->dp_level <= ECORE_LEVEL_NOTICE)) { \ 176 PRINT((p_dev)->dp_ctx, "[%s:%d(%s)]" fmt, \ 178 (p_dev)->name ? (p_dev)->name : "", \ 184 #define DP_INFO(p_dev, fmt, ...) \ argument [all …]
|
H A D | ecore_dev_api.h | 58 void ecore_init_dp(struct ecore_dev *p_dev, 69 void ecore_init_struct(struct ecore_dev *p_dev); 76 void ecore_resc_free(struct ecore_dev *p_dev); 85 enum _ecore_status_t ecore_resc_alloc(struct ecore_dev *p_dev); 92 void ecore_resc_setup(struct ecore_dev *p_dev); 150 enum _ecore_status_t ecore_hw_init(struct ecore_dev *p_dev, 160 void ecore_hw_timers_stop_all(struct ecore_dev *p_dev); 169 enum _ecore_status_t ecore_hw_stop(struct ecore_dev *p_dev); 179 void ecore_hw_stop_fastpath(struct ecore_dev *p_dev); 189 void ecore_hw_hibernate_prepare(struct ecore_dev *p_dev); [all …]
|
H A D | ecore_int.c | 141 DP_INFO(p_hwfn->p_dev, "MCP_REG_CPU_STATE: %08x - Masking...\n", in ecore_mcp_attn_cb() 185 …DP_INFO(p_hwfn->p_dev, "PF[0x%02x] VF [0x%02x] [Valid 0x%02x] Client [0x%02x] Write [0x%02x] Addr … in ecore_pswhst_attn_cb() 211 …DP_INFO(p_hwfn->p_dev, "Incorrect access to %08x of length %08x - PF [%02x] VF [%04x] [valid %02x]… in ecore_pswhst_attn_cb() 281 DP_INFO(p_hwfn->p_dev, in ecore_grc_attn_cb() 439 DP_INFO(p_hwfn->p_dev, in ecore_dorq_attn_cb() 454 if (CHIP_REV_IS_EMUL_B0(p_hwfn->p_dev)) { in ecore_tm_attn_cb() 659 if (!ECORE_IS_BB(p_hwfn->p_dev)) in ecore_int_aeu_translate() 704 OSAL_MMIOWB(p_hwfn->p_dev); in ecore_attn_update_idx() 712 OSAL_MMIOWB(p_hwfn->p_dev); in ecore_attn_update_idx() 843 p_hwfn->p_dev->attn_clr_en) { in ecore_int_deassertion_aeu_bit() [all …]
|
H A D | ecore_init_ops.c | 62 void ecore_init_iro_array(struct ecore_dev *p_dev) in ecore_init_iro_array() argument 64 p_dev->iro_arr = iro_arr; in ecore_init_iro_array() 146 if (IS_VF(p_hwfn->p_dev)) in ecore_init_alloc() 149 rt_data->b_valid = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_init_alloc() 154 rt_data->init_val = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_init_alloc() 157 OSAL_FREE(p_hwfn->p_dev, rt_data->b_valid); in ecore_init_alloc() 167 OSAL_FREE(p_hwfn->p_dev, p_hwfn->rt_data.init_val); in ecore_init_free() 169 OSAL_FREE(p_hwfn->p_dev, p_hwfn->rt_data.b_valid); in ecore_init_free() 183 if ((CHIP_REV_IS_SLOW(p_hwfn->p_dev) && (size < 16)) || 241 struct ecore_dev *p_dev = p_hwfn->p_dev; local [all …]
|
H A D | ecore_spq.c | 134 OSAL_SMP_WMB(p_hwfn->p_dev); in ecore_spq_blocking_cb() 151 OSAL_SMP_RMB(p_hwfn->p_dev); in __ecore_spq_block() 277 if (ECORE_IS_BB(p_hwfn->p_dev) || ECORE_IS_AH(p_hwfn->p_dev)) { in ecore_spq_hw_initialize() 332 OSAL_WMB(p_hwfn->p_dev); in ecore_spq_hw_post() 337 OSAL_WMB(p_hwfn->p_dev); in ecore_spq_hw_post() 413 OSAL_MMIOWB(p_hwfn->p_dev); in ecore_eq_prod_update() 486 p_eq = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, sizeof(*p_eq)); in ecore_eq_alloc() 494 if (ecore_chain_alloc(p_hwfn->p_dev, in ecore_eq_alloc() 513 OSAL_FREE(p_hwfn->p_dev, p_eq); in ecore_eq_alloc() 527 ecore_chain_free(p_hwfn->p_dev, &p_hwfn->p_eq->chain); in ecore_eq_free() [all …]
|
H A D | ecore_selftest_api.h | 48 enum _ecore_status_t ecore_selftest_memory(struct ecore_dev *p_dev); 57 enum _ecore_status_t ecore_selftest_interrupt(struct ecore_dev *p_dev); 66 enum _ecore_status_t ecore_selftest_register(struct ecore_dev *p_dev); 75 enum _ecore_status_t ecore_selftest_clock(struct ecore_dev *p_dev); 84 enum _ecore_status_t ecore_selftest_nvram(struct ecore_dev *p_dev);
|
H A D | ecore_l2.c | 76 p_l2_info = OSAL_VZALLOC(p_hwfn->p_dev, sizeof(*p_l2_info)); in ecore_l2_alloc() 81 if (IS_PF(p_hwfn->p_dev)) { in ecore_l2_alloc() 92 pp_qids = OSAL_VZALLOC(p_hwfn->p_dev, in ecore_l2_alloc() 100 pp_qids[i] = OSAL_VZALLOC(p_hwfn->p_dev, in ecore_l2_alloc() 138 OSAL_VFREE(p_hwfn->p_dev, in ecore_l2_free() 148 OSAL_VFREE(p_hwfn->p_dev, p_hwfn->p_l2_info->pp_qid_usage); in ecore_l2_free() 151 OSAL_VFREE(p_hwfn->p_dev, p_hwfn->p_l2_info); in ecore_l2_free() 209 if (IS_PF(p_hwfn->p_dev) && !b_legacy_vf) in ecore_eth_queue_cid_release() 216 OSAL_VFREE(p_hwfn->p_dev, p_cid); in ecore_eth_queue_cid_release() 231 p_cid = OSAL_VZALLOC(p_hwfn->p_dev, sizeof(*p_cid)); in _ecore_eth_queue_to_cid() [all …]
|
H A D | ecore_mcp.c | 118 if (CHIP_REV_IS_TEDIBEAR(p_hwfn->p_dev)) in ecore_mcp_read_mb() 138 OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info->mfw_mb_cur); in ecore_mcp_free() 139 OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info->mfw_mb_shadow); in ecore_mcp_free() 145 OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info); in ecore_mcp_free() 159 if (CHIP_REV_IS_EMUL(p_hwfn->p_dev)) { in ecore_load_mcp_offsets() 212 p_hwfn->mcp_info = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_mcp_cmd_init() 227 p_info->mfw_mb_cur = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, size); in ecore_mcp_cmd_init() 228 p_info->mfw_mb_shadow = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, size); in ecore_mcp_cmd_init() 307 if (CHIP_REV_IS_EMUL(p_hwfn->p_dev)) in ecore_mcp_reset() 373 if (CHIP_REV_IS_EMUL(p_hwfn->p_dev)) in ecore_do_mcp_cmd() [all …]
|
H A D | ecore_hw.c | 70 struct ecore_ptt_pool *p_pool = OSAL_ALLOC(p_hwfn->p_dev, in ecore_ptt_pool_alloc() 117 OSAL_FREE(p_hwfn->p_dev, p_hwfn->p_ptt_pool); in ecore_ptt_pool_free() 248 if (!p_hwfn->p_dev->chk_reg_fifo) in ecore_is_reg_fifo_empty() 256 if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) in ecore_is_reg_fifo_empty() 279 if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) in ecore_wr() 303 if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) in ecore_rd() 329 if (IS_PF(p_hwfn->p_dev)) { in ecore_memcpy_hw() 692 *p_comp = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, p_addr, sizeof(u32)); in ecore_dmae_info_alloc() 700 *p_cmd = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, p_addr, in ecore_dmae_info_alloc() 709 *p_buff = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, p_addr, in ecore_dmae_info_alloc() [all …]
|
H A D | ecore_int_api.h | 68 struct ecore_dev *p_dev; member 103 OSAL_MMIOWB(sb_info->p_dev); in ecore_sb_update_sb_idx() 141 OSAL_MMIOWB(sb_info->p_dev); in ecore_sb_ack() 142 OSAL_BARRIER(sb_info->p_dev); in ecore_sb_ack() 316 void ecore_int_disable_post_isr_release(struct ecore_dev *p_dev); 327 void ecore_int_attn_clr_enable(struct ecore_dev *p_dev, bool clr_enable);
|
H A D | ecore_iov_api.h | 46 #define IS_VF(p_dev) ((p_dev)->b_is_vf) argument 47 #define IS_PF(p_dev) (!((p_dev)->b_is_vf)) argument 49 #define IS_PF_SRIOV(p_hwfn) (!!((p_hwfn)->p_dev->p_iov_info)) 194 void ecore_iov_set_vfs_to_disable(struct ecore_dev *p_dev, 205 void ecore_iov_set_vf_to_disable(struct ecore_dev *p_dev, 714 enum _ecore_status_t ecore_iov_configure_min_tx_rate(struct ecore_dev *p_dev, 752 static OSAL_INLINE void ecore_iov_set_vfs_to_disable(struct ecore_dev *p_dev, u8 to_disable) {} in ecore_iov_set_vfs_to_disable() argument 753 static OSAL_INLINE void ecore_iov_set_vf_to_disable(struct ecore_dev *p_dev, u16 rel_vf_id, u8 to_d… in ecore_iov_set_vf_to_disable() argument 798 static OSAL_INLINE enum _ecore_status_t ecore_iov_configure_min_tx_rate(struct ecore_dev *p_dev, in… in ecore_iov_configure_min_tx_rate() argument
|
H A D | ecore_l2_api.h | 198 ecore_filter_ucast_cmd(struct ecore_dev *p_dev, 205 ecore_filter_mcast_cmd(struct ecore_dev *p_dev, 213 struct ecore_dev *p_dev, 454 void ecore_get_vport_stats(struct ecore_dev *p_dev, 457 void ecore_reset_vport_stats(struct ecore_dev *p_dev);
|
H A D | ecore_sp_commands.c | 218 struct ecore_tunnel_info *p_tun = &p_hwfn->p_dev->tunnel; in ecore_tunn_set_pf_update_params() 263 if (ECORE_IS_BB_A0(p_hwfn->p_dev)) { in ecore_set_hw_tunn_mode_port() 285 struct ecore_tunnel_info *p_tun = &p_hwfn->p_dev->tunnel; in ecore_tunn_set_pf_start_params() 287 if (ECORE_IS_BB_A0(p_hwfn->p_dev)) { in ecore_tunn_set_pf_start_params() 411 if (p_hwfn->p_dev->p_iov_info) { in ecore_sp_pf_start() 412 struct ecore_hw_sriov_info *p_iov = p_hwfn->p_dev->p_iov_info; in ecore_sp_pf_start() 430 ecore_set_hw_tunn_mode_port(p_hwfn, &p_hwfn->p_dev->tunnel); in ecore_sp_pf_start() 513 if (IS_VF(p_hwfn->p_dev)) in ecore_sp_pf_update_tunn_cfg() 516 if (ECORE_IS_BB_A0(p_hwfn->p_dev)) { in ecore_sp_pf_update_tunn_cfg() 545 ecore_set_hw_tunn_mode_port(p_hwfn, &p_hwfn->p_dev->tunnel); in ecore_sp_pf_update_tunn_cfg()
|
H A D | ecore_mcp_api.h | 683 enum _ecore_status_t ecore_mcp_get_media_type(struct ecore_dev *p_dev, 931 enum _ecore_status_t ecore_mcp_nvm_set_secure_mode(struct ecore_dev *p_dev, 945 enum _ecore_status_t ecore_mcp_phy_write(struct ecore_dev *p_dev, u32 cmd, 959 enum _ecore_status_t ecore_mcp_nvm_write(struct ecore_dev *p_dev, u32 cmd, 970 enum _ecore_status_t ecore_mcp_nvm_put_file_begin(struct ecore_dev *p_dev, 981 enum _ecore_status_t ecore_mcp_nvm_del_file(struct ecore_dev *p_dev, 992 enum _ecore_status_t ecore_mcp_nvm_resp(struct ecore_dev *p_dev, u8 *p_buf); 1005 enum _ecore_status_t ecore_mcp_phy_read(struct ecore_dev *p_dev, u32 cmd, 1018 enum _ecore_status_t ecore_mcp_nvm_read(struct ecore_dev *p_dev, u32 addr,
|
H A D | ecore_cxt.c | 930 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in ecore_cxt_src_t2_free() 935 OSAL_FREE(p_hwfn->p_dev, p_mngr->t2); in ecore_cxt_src_t2_free() 966 p_mngr->t2 = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_cxt_src_t2_alloc() 980 *p_virt = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, in ecore_cxt_src_t2_alloc() 1064 OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, in ecore_ilt_shadow_free() 1070 OSAL_FREE(p_hwfn->p_dev, p_mngr->ilt_shadow); in ecore_ilt_shadow_free() 1103 p_virt = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, in ecore_ilt_blk_alloc() 1133 p_mngr->ilt_shadow = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_ilt_shadow_alloc() 1179 OSAL_FREE(p_hwfn->p_dev, p_mngr->acquired[type].cid_map); in ecore_cid_map_free() 1184 OSAL_FREE(p_hwfn->p_dev, in ecore_cid_map_free() [all …]
|
H A D | ecore_mcp.h | 51 #define MCP_PF_ID_BY_REL(p_hwfn, rel_pfid) (ECORE_IS_BB((p_hwfn)->p_dev) ? \ 58 ((_p_hwfn)->p_dev->num_ports_in_engine * \ 59 ecore_device_num_engines((_p_hwfn)->p_dev)))
|
H A D | ecore_sriov.h | 287 void ecore_iov_free_hw_info(struct ecore_dev *p_dev); 346 static OSAL_INLINE void ecore_iov_free_hw_info(struct ecore_dev *p_dev) {} in ecore_iov_free_hw_info() argument
|
H A D | ecore_init_ops.h | 47 void ecore_init_iro_array(struct ecore_dev *p_dev);
|
H A D | ecore_hw.h | 317 enum _ecore_status_t ecore_init_fw_data(struct ecore_dev *p_dev,
|
H A D | ecore_phy.c | 56 return ecore_mcp_phy_read(p_hwfn->p_dev, cmd, in ecore_phy_read() 70 return ecore_mcp_phy_write(p_hwfn->p_dev, cmd, in ecore_phy_write() 664 int num_ports = ecore_device_num_ports(p_hwfn->p_dev); in ecore_phy_mac_stat() 672 if (ECORE_IS_BB(p_hwfn->p_dev)) in ecore_phy_mac_stat() 712 u32 num_ports = ecore_device_num_ports(p_hwfn->p_dev); in ecore_validate_sfp_port()
|
H A D | ecore_dcbx.c | 1069 p_hwfn->p_dcbx_info = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_dcbx_info_alloc() 1085 OSAL_FREE(p_hwfn->p_dev, p_hwfn->p_dcbx_info); in ecore_dcbx_info_free() 1147 if (IS_VF(p_hwfn->p_dev)) in ecore_dcbx_query_params() 1452 dcbx_info = OSAL_ALLOC(p_hwfn->p_dev, GFP_KERNEL, in ecore_dcbx_get_config_params() 1463 OSAL_FREE(p_hwfn->p_dev, dcbx_info); in ecore_dcbx_get_config_params() 1485 OSAL_FREE(p_hwfn->p_dev, dcbx_info); in ecore_dcbx_get_config_params()
|
/illumos-gate/usr/src/uts/common/io/yge/ |
H A D | yge.c | 277 yge_dev_t *dev = port->p_dev; in yge_mii_readreg() 306 yge_dev_t *dev = port->p_dev; in yge_mii_writereg() 328 PHY_LOCK(port->p_dev); in yge_mii_read() 330 PHY_UNLOCK(port->p_dev); in yge_mii_read() 339 PHY_LOCK(port->p_dev); in yge_mii_write() 341 PHY_UNLOCK(port->p_dev); in yge_mii_write() 352 yge_dev_t *dev = port->p_dev; in yge_mii_notify() 454 dev = port->p_dev; in yge_setrxfilt() 512 yge_set_prefetch(port->p_dev, port->p_rxq, ring); in yge_init_rx_ring() 515 CSR_WRITE_2(port->p_dev, in yge_init_rx_ring() [all …]
|
/illumos-gate/usr/src/uts/common/io/qede/ |
H A D | qede_osal.c | 330 struct ecore_dev *edev = (struct ecore_dev *)hwfn->p_dev; in qede_get_link_info() 475 struct ecore_dev *edev = (struct ecore_dev *)hwfn->p_dev; in qede_osal_link_update() 553 struct ecore_dev *edev = (struct ecore_dev *)hwfn->p_dev; in qede_osal_pci_write32() 565 struct ecore_dev *edev = (struct ecore_dev *)hwfn->p_dev; in qede_osal_pci_write16() 577 struct ecore_dev *edev = (struct ecore_dev *)hwfn->p_dev; in qede_osal_pci_read32() 592 struct ecore_dev *edev = (struct ecore_dev *)hwfn->p_dev; in qede_osal_pci_bar2_write32() 603 struct ecore_dev *edev = (struct ecore_dev *)hwfn->p_dev; in qede_osal_direct_reg_read32() 612 struct ecore_dev *edev = (struct ecore_dev *)hwfn->p_dev; in qede_osal_direct_reg_write32() 621 struct ecore_dev *edev = (struct ecore_dev *)hwfn->p_dev; in qede_osal_reg_addr() 759 struct ecore_dev *edev = (struct ecore_dev *)hwfn->p_dev; in qede_osal_recovery_handler()
|