usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
162
static inline bool OSAL_NVM_IS_ACCESS_ENABLED(void *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
327
static inline void OSAL_DCBX_AEN(struct ecore_hwfn *p_hwfn, u32 mib_type)
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
474
enum _ecore_status_t qede_osal_iov_vf_acquire(struct ecore_hwfn *p_hwfn, int vf_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
475
#define OSAL_IOV_VF_ACQUIRE(p_hwfn, vf_id) qede_osal_iov_vf_acquire(p_hwfn, vf_id)
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
480
#define OSAL_IOV_VF_CLEANUP(p_hwfn,vf_id)
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
481
#define OSAL_IOV_VF_VPORT_UPDATE(p_hwfn, vfid, params, tlvs_accepted) (0)
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
482
#define OSAL_IOV_POST_START_VPORT(p_hwfn, vfid, vport_id, opaque_fid) {};
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
486
#define OSAL_VF_FILL_ACQUIRE_RESC_REQ(p_hwfn, req, vf_sw_info) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
487
#define OSAL_VF_UPDATE_ACQUIRE_RESC_RESP(p_hwfn, res) (0)
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
490
#define OSAL_IOV_POST_START_VPORT(p_hwfn, vfid, vport_id, opaque_fid) {};
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
494
#define OSAL_IOV_VF_ACQUIRE(p_hwfn, vf_id) (0)
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
495
#define OSAL_IOV_VF_CLEANUP(p_hwfn,vf_id)
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
496
#define OSAL_IOV_VF_VPORT_UPDATE(p_hwfn, vfid, params, tlvs_accepted) (0)
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
497
#define OSAL_VF_FILL_ACQUIRE_RESC_REQ(p_hwfn, req, vf_sw_info) {};
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
499
#define OSAL_VF_UPDATE_ACQUIRE_RESC_RESP(p_hwfn, res) (0)
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
585
void OSAL_DPC_SYNC(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
600
#define OSAL_SLOWPATH_IRQ_REQ(p_hwfn) \
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
610
#define OSAL_HW_ERROR_OCCURRED(p_hwfn, err) nothing
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
613
#define OSAL_POLL_MODE_DPC(p_hwfn) \
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
614
qede_osal_poll_mode_dpc(p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
621
#define OSAL_MFW_TLV_REQ(p_hwfn) \
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
622
qede_osal_mfw_tlv_req(p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
629
#define OSAL_HW_INFO_CHANGE(p_hwfn, change) \
usr/src/uts/common/io/qede/579xx/drivers/ecore/bcm_osal.h
630
qede_osal_hw_info_change(p_hwfn, change)
usr/src/uts/common/io/qede/579xx/drivers/ecore/documentation/snippets/ecore_int_endis.h
18
void ecore_int_igu_disable_int(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/documentation/snippets/ecore_int_endis.h
8
void ecore_int_igu_enable_int(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/documentation/snippets/ecore_int_sb_init.h
17
enum _ecore_status_t ecore_int_sb_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/documentation/snippets/ecore_int_sisr.h
10
u64 ecore_int_igu_read_sisr_reg(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/documentation/snippets/ptt.h
11
struct ecore_ptt *ecore_ptt_acquire(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/documentation/snippets/ptt.h
22
void ecore_ptt_release(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/documentation/snippets/ptt.h
33
void ecore_wr(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/documentation/snippets/ptt.h
46
u32 ecore_rd(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/documentation/snippets/ptt.h
58
void ecore_ptt_pretend(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore.h
148
#define ALIGNED_TYPE_SIZE(type_name, p_hwfn) \
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore.h
149
((sizeof(type_name) + (u32)(1<<(p_hwfn->p_dev->cache_shift))-1) & \
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore.h
150
~((1<<(p_hwfn->p_dev->cache_shift))-1))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore.h
802
#define IRO (p_hwfn->p_dev->iro_arr)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore.h
890
void ecore_clean_wfq_db(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore.h
908
u16 ecore_get_cm_pq_idx(struct ecore_hwfn *p_hwfn, u32 pq_flags);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore.h
909
u16 ecore_get_cm_pq_idx_mcos(struct ecore_hwfn *p_hwfn, u8 tc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore.h
910
u16 ecore_get_cm_pq_idx_vf(struct ecore_hwfn *p_hwfn, u16 vf);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore.h
911
u16 ecore_get_cm_pq_idx_rl(struct ecore_hwfn *p_hwfn, u8 qpid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore.h
914
u8 ecore_init_qm_get_num_tcs(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore.h
915
u16 ecore_init_qm_get_num_vfs(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore.h
916
u16 ecore_init_qm_get_num_pf_rls(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore.h
917
u16 ecore_init_qm_get_num_vports(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore.h
918
u16 ecore_init_qm_get_num_pqs(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1028
ecore_cxt_src_t2_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1052
static void ecore_ilt_shadow_free(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1054
struct ecore_ilt_client_cfg *p_cli = p_hwfn->p_cxt_mngr->clients;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1055
struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1064
OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1070
OSAL_FREE(p_hwfn->p_dev, p_mngr->ilt_shadow);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1073
static enum _ecore_status_t ecore_ilt_blk_alloc(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1078
struct ecore_dma_mem *ilt_shadow = p_hwfn->p_cxt_mngr->ilt_shadow;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1082
if (ECORE_IS_RDMA_PERSONALITY(p_hwfn) &&
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1095
p_hwfn->p_cxt_mngr->pf_start_line + lines_to_skip;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1103
p_virt = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1113
DP_VERBOSE(p_hwfn, ECORE_MSG_ILT,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1124
static enum _ecore_status_t ecore_ilt_shadow_alloc(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1126
struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1133
p_mngr->ilt_shadow = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1137
DP_NOTICE(p_hwfn, true, "Failed to allocate ilt shadow table\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1142
DP_VERBOSE(p_hwfn, ECORE_MSG_ILT,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1149
rc = ecore_ilt_blk_alloc(p_hwfn, p_blk, i, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1158
rc = ecore_ilt_blk_alloc(p_hwfn, p_blk,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1169
ecore_ilt_shadow_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1173
static void ecore_cid_map_free(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1175
struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1179
OSAL_FREE(p_hwfn->p_dev, p_mngr->acquired[type].cid_map);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1184
OSAL_FREE(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1193
ecore_cid_map_alloc_single(struct ecore_hwfn *p_hwfn, u32 type,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1203
p_map->cid_map = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1210
DP_VERBOSE(p_hwfn, ECORE_MSG_CXT,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1217
static enum _ecore_status_t ecore_cid_map_alloc(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1219
struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1229
if (ecore_cid_map_alloc_single(p_hwfn, type, start_cid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1236
if (ecore_cid_map_alloc_single(p_hwfn, type,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1250
ecore_cid_map_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1254
enum _ecore_status_t ecore_cxt_mngr_alloc(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1260
p_mngr = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, sizeof(*p_mngr));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1262
DP_NOTICE(p_hwfn, true, "Failed to allocate `struct ecore_cxt_mngr'\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
128
#define CONN_CXT_SIZE(p_hwfn) \
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
129
ALIGNED_TYPE_SIZE(union conn_context, p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1297
p_mngr->task_type_size[0] = TYPE0_TASK_CXT_SIZE(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1298
p_mngr->task_type_size[1] = TYPE1_TASK_CXT_SIZE(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1300
if (p_hwfn->p_dev->p_iov_info)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1301
p_mngr->vf_count = p_hwfn->p_dev->p_iov_info->total_vfs;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1304
OSAL_MUTEX_ALLOC(p_hwfn, &p_mngr->mutex);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1308
p_hwfn->p_cxt_mngr = p_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1313
enum _ecore_status_t ecore_cxt_tables_alloc(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1318
rc = ecore_ilt_shadow_alloc(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1320
DP_NOTICE(p_hwfn, true, "Failed to allocate ilt memory\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1325
rc = ecore_cxt_src_t2_alloc(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1327
DP_NOTICE(p_hwfn, true, "Failed to allocate T2 memory\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
133
#define TYPE0_TASK_CXT_SIZE(p_hwfn) \
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1332
rc = ecore_cid_map_alloc(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1334
DP_NOTICE(p_hwfn, true, "Failed to allocate cid maps\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
134
ALIGNED_TYPE_SIZE(union type0_task_context, p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1341
ecore_cxt_mngr_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1344
void ecore_cxt_mngr_free(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1346
if (!p_hwfn->p_cxt_mngr)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1349
ecore_cid_map_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1350
ecore_cxt_src_t2_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1351
ecore_ilt_shadow_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1352
OSAL_MUTEX_DEALLOC(&p_hwfn->p_cxt_mngr->mutex);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1353
OSAL_FREE(p_hwfn->p_dev, p_hwfn->p_cxt_mngr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1355
p_hwfn->p_cxt_mngr = OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1358
void ecore_cxt_mngr_setup(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1360
struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
137
#define TYPE1_TASK_CXT_SIZE(p_hwfn) sizeof(union type1_task_context)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1455
static void ecore_cdu_init_common(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1460
page_sz = p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC].p_size.val;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1461
cxt_size = CONN_CXT_SIZE(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1468
STORE_RT_REG(p_hwfn, CDU_REG_CID_ADDR_PARAMS_RT_OFFSET, cdu_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1471
page_sz = p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT].p_size.val;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1472
cxt_size = p_hwfn->p_cxt_mngr->task_type_size[0];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1481
STORE_RT_REG(p_hwfn, CDU_REG_SEGMENT0_PARAMS_RT_OFFSET, cdu_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1484
cxt_size = p_hwfn->p_cxt_mngr->task_type_size[1];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1493
STORE_RT_REG(p_hwfn, CDU_REG_SEGMENT1_PARAMS_RT_OFFSET, cdu_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1502
static void ecore_cdu_init_pf(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1523
p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1528
p_seg = ecore_cxt_tid_seg_info(p_hwfn, i);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1544
STORE_RT_REG(p_hwfn, rt_type_offset_arr[i],
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1554
STORE_RT_REG(p_hwfn, rt_type_offset_fl_arr[i],
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1560
void ecore_qm_init_pf(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1562
struct ecore_qm_info *qm_info = &p_hwfn->qm_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1566
ecore_cxt_qm_iids(p_hwfn, &iids);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1568
ecore_qm_pf_rt_init(p_hwfn, p_hwfn->p_main_ptt, p_hwfn->port_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1569
p_hwfn->rel_pf_id, qm_info->max_phys_tcs_per_port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1570
p_hwfn->first_on_engine,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1577
p_hwfn->qm_info.qm_pq_params,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1578
p_hwfn->qm_info.qm_vport_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1582
void ecore_cm_init_pf(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1584
STORE_RT_REG(p_hwfn, XCM_REG_CON_PHY_Q3_RT_OFFSET, ecore_get_cm_pq_idx(p_hwfn, PQ_FLAGS_LB));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1588
static void ecore_dq_init_pf(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1590
struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1594
STORE_RT_REG(p_hwfn, DORQ_REG_PF_MAX_ICID_0_RT_OFFSET, dq_pf_max_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1597
STORE_RT_REG(p_hwfn, DORQ_REG_VF_MAX_ICID_0_RT_OFFSET, dq_vf_max_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1600
STORE_RT_REG(p_hwfn, DORQ_REG_PF_MAX_ICID_1_RT_OFFSET, dq_pf_max_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1603
STORE_RT_REG(p_hwfn, DORQ_REG_VF_MAX_ICID_1_RT_OFFSET, dq_vf_max_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1606
STORE_RT_REG(p_hwfn, DORQ_REG_PF_MAX_ICID_2_RT_OFFSET, dq_pf_max_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1609
STORE_RT_REG(p_hwfn, DORQ_REG_VF_MAX_ICID_2_RT_OFFSET, dq_vf_max_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1612
STORE_RT_REG(p_hwfn, DORQ_REG_PF_MAX_ICID_3_RT_OFFSET, dq_pf_max_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1615
STORE_RT_REG(p_hwfn, DORQ_REG_VF_MAX_ICID_3_RT_OFFSET, dq_vf_max_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1618
STORE_RT_REG(p_hwfn, DORQ_REG_PF_MAX_ICID_4_RT_OFFSET, dq_pf_max_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1621
STORE_RT_REG(p_hwfn, DORQ_REG_VF_MAX_ICID_4_RT_OFFSET, dq_vf_max_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1624
STORE_RT_REG(p_hwfn, DORQ_REG_PF_MAX_ICID_5_RT_OFFSET, dq_pf_max_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1627
STORE_RT_REG(p_hwfn, DORQ_REG_VF_MAX_ICID_5_RT_OFFSET, dq_vf_max_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1635
STORE_RT_REG(p_hwfn, DORQ_REG_PF_MAX_ICID_6_RT_OFFSET, dq_pf_max_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1636
STORE_RT_REG(p_hwfn, DORQ_REG_VF_MAX_ICID_6_RT_OFFSET, dq_vf_max_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1638
STORE_RT_REG(p_hwfn, DORQ_REG_PF_MAX_ICID_7_RT_OFFSET, dq_pf_max_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1639
STORE_RT_REG(p_hwfn, DORQ_REG_VF_MAX_ICID_7_RT_OFFSET, dq_vf_max_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1642
static void ecore_ilt_bounds_init(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1647
ilt_clients = p_hwfn->p_cxt_mngr->clients;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1649
STORE_RT_REG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1652
STORE_RT_REG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1655
STORE_RT_REG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1661
static void ecore_ilt_vf_bounds_init(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1667
if (p_hwfn->p_dev->p_iov_info) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1668
struct ecore_hw_sriov_info *p_iov = p_hwfn->p_dev->p_iov_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1670
STORE_RT_REG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1673
STORE_RT_REG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1678
p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1681
STORE_RT_REG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1684
STORE_RT_REG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1687
STORE_RT_REG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1692
p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1695
STORE_RT_REG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1698
STORE_RT_REG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1701
STORE_RT_REG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1706
p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_TM];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1709
STORE_RT_REG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1712
STORE_RT_REG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1715
STORE_RT_REG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1722
static void ecore_ilt_init_pf(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1729
ecore_ilt_bounds_init(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1730
ecore_ilt_vf_bounds_init(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1732
p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1734
clients = p_hwfn->p_cxt_mngr->clients;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1757
p_hwfn, ECORE_MSG_ILT,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1763
STORE_RT_REG_AGG(p_hwfn, rt_offst, ilt_hw_entry);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1769
static void ecore_src_init_pf(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1771
struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1776
ecore_cxt_src_iids(p_hwfn, p_mngr, &src_iids);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1784
STORE_RT_REG(p_hwfn, SRC_REG_COUNTFREE_RT_OFFSET, conn_num);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1785
STORE_RT_REG(p_hwfn, SRC_REG_NUMBER_HASH_BITS_RT_OFFSET,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1788
STORE_RT_REG_AGG(p_hwfn, SRC_REG_FIRSTFREE_RT_OFFSET,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1789
p_hwfn->p_cxt_mngr->first_free);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1790
STORE_RT_REG_AGG(p_hwfn, SRC_REG_LASTFREE_RT_OFFSET,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1791
p_hwfn->p_cxt_mngr->last_free);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1792
DP_VERBOSE(p_hwfn, ECORE_MSG_ILT,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1813
static void ecore_tm_init_pf(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1815
struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1822
ecore_cxt_tm_iids(p_hwfn, p_mngr, &tm_iids);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1831
SET_FIELD(cfg_word, TM_CFG_PARENT_PF, p_hwfn->rel_pf_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1836
(p_hwfn->p_dev->p_iov_info->first_vf_in_pf + i);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1837
STORE_RT_REG_AGG(p_hwfn, rt_reg, cfg_word);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1848
(NUM_OF_VFS(p_hwfn->p_dev) + p_hwfn->rel_pf_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1849
STORE_RT_REG_AGG(p_hwfn, rt_reg, cfg_word);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1852
STORE_RT_REG(p_hwfn, TM_REG_PF_ENABLE_CONN_RT_OFFSET,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1864
SET_FIELD(cfg_word, TM_CFG_PARENT_PF, p_hwfn->rel_pf_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1870
(p_hwfn->p_dev->p_iov_info->first_vf_in_pf + i);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1872
STORE_RT_REG_AGG(p_hwfn, rt_reg, cfg_word);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1886
(NUM_OF_VFS(p_hwfn->p_dev) +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1887
p_hwfn->rel_pf_id * NUM_TASK_PF_SEGMENTS + i);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1889
STORE_RT_REG_AGG(p_hwfn, rt_reg, cfg_word);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1895
if (ECORE_IS_RDMA_PERSONALITY(p_hwfn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1898
STORE_RT_REG(p_hwfn, TM_REG_PF_ENABLE_TASK_RT_OFFSET, active_seg_mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1903
static void ecore_prs_init_common(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1905
if ((p_hwfn->hw_info.personality == ECORE_PCI_FCOE) &&
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1906
p_hwfn->pf_params.fcoe_pf_params.is_target)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1907
STORE_RT_REG(p_hwfn, PRS_REG_SEARCH_RESP_INITIATOR_TYPE_RT_OFFSET, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1910
static void ecore_prs_init_pf(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1912
struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1921
if (p_hwfn->pf_params.fcoe_pf_params.is_target) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1922
STORE_RT_REG_AGG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1926
STORE_RT_REG_AGG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1932
void ecore_cxt_hw_init_common(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1935
ecore_cdu_init_common(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1936
ecore_prs_init_common(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1939
void ecore_cxt_hw_init_pf(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1941
ecore_qm_init_pf(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1942
ecore_cm_init_pf(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1943
ecore_dq_init_pf(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1944
ecore_cdu_init_pf(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1945
ecore_ilt_init_pf(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1946
ecore_src_init_pf(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1947
ecore_tm_init_pf(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1948
ecore_prs_init_pf(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1951
enum _ecore_status_t _ecore_cxt_acquire_cid(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1955
struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1960
DP_NOTICE(p_hwfn, true, "Invalid protocol type %d", type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1965
DP_NOTICE(p_hwfn, true, "VF [%02x] is out of range\n", vfid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1976
DP_NOTICE(p_hwfn, true, "Invalid protocol type %d", type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1984
DP_NOTICE(p_hwfn, false, "no CID available for protocol %d\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
1993
DP_VERBOSE(p_hwfn, ECORE_MSG_CXT,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2000
enum _ecore_status_t ecore_cxt_acquire_cid(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2004
return _ecore_cxt_acquire_cid(p_hwfn, type, p_cid, ECORE_CXT_PF_CID);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2007
static bool ecore_cxt_test_cid_acquired(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2012
struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2031
DP_NOTICE(p_hwfn, true, "Invalid CID %d vfid %02x", cid, vfid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2037
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2049
void _ecore_cxt_release_cid(struct ecore_hwfn *p_hwfn, u32 cid, u8 vfid)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2057
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2064
b_acquired = ecore_cxt_test_cid_acquired(p_hwfn, cid, vfid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2073
DP_VERBOSE(p_hwfn, ECORE_MSG_CXT,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2078
void ecore_cxt_release_cid(struct ecore_hwfn *p_hwfn, u32 cid)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2080
_ecore_cxt_release_cid(p_hwfn, cid, ECORE_CXT_PF_CID);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2083
enum _ecore_status_t ecore_cxt_get_cid_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2086
struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2093
b_acquired = ecore_cxt_test_cid_acquired(p_hwfn, p_info->iid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2104
hw_p_size = p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC].p_size.val;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2106
conn_cxt_size = CONN_CXT_SIZE(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2117
DP_VERBOSE(p_hwfn, (ECORE_MSG_ILT | ECORE_MSG_CXT),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2124
static void ecore_cxt_set_srq_count(struct ecore_hwfn *p_hwfn, u32 num_srqs)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2126
struct ecore_cxt_mngr *p_mgr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2131
u32 ecore_cxt_get_srq_count(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2133
struct ecore_cxt_mngr *p_mgr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2138
static void ecore_rdma_set_pf_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2153
if (p_hwfn->mcp_info->func_info.protocol ==
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2155
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2157
p_hwfn->hw_info.personality = ECORE_PCI_ETH_ROCE;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2161
p_hwfn->hw_info.personality = ECORE_PCI_ETH;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2164
if (p_hwfn->mcp_info->func_info.protocol == ECORE_PCI_ETH_RDMA)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2165
p_hwfn->hw_info.personality = ECORE_PCI_ETH_ROCE;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2168
if (p_hwfn->mcp_info->func_info.protocol == ECORE_PCI_ETH_RDMA)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2169
p_hwfn->hw_info.personality = ECORE_PCI_ETH_IWARP;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2173
switch (p_hwfn->hw_info.personality) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2194
ecore_cxt_set_proto_cid_count(p_hwfn, proto,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2200
ecore_cxt_set_proto_tid_count(p_hwfn, PROTOCOLID_ROCE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2205
ecore_cxt_set_srq_count(p_hwfn, num_srqs);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2208
DP_INFO(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2213
enum _ecore_status_t ecore_cxt_set_pf_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2219
if (p_hwfn->using_ll2)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2222
ecore_cxt_set_proto_cid_count(p_hwfn, PROTOCOLID_CORE, core_cids, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2224
switch (p_hwfn->hw_info.personality) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2228
ecore_rdma_set_pf_params(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2229
&p_hwfn->pf_params.rdma_pf_params,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2237
&p_hwfn->pf_params.eth_pf_params;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2241
ecore_cxt_set_proto_cid_count(p_hwfn, PROTOCOLID_ETH,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2244
p_hwfn->p_cxt_mngr->arfs_count = p_params->num_arfs_filters;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2252
p_params = &p_hwfn->pf_params.fcoe_pf_params;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2255
ecore_cxt_set_proto_cid_count(p_hwfn, PROTOCOLID_FCOE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2258
ecore_cxt_set_proto_tid_count(p_hwfn, PROTOCOLID_FCOE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2264
DP_INFO(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2273
p_params = &p_hwfn->pf_params.iscsi_pf_params;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2276
ecore_cxt_set_proto_cid_count(p_hwfn, PROTOCOLID_ISCSI,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2279
ecore_cxt_set_proto_tid_count(p_hwfn, PROTOCOLID_ISCSI,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2285
DP_INFO(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2297
enum _ecore_status_t ecore_cxt_get_tid_mem_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2300
struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2307
switch (p_hwfn->hw_info.personality) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2335
p_hwfn->p_cxt_mngr->pf_start_line;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2351
ecore_cxt_dynamic_ilt_alloc(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2366
p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2367
elem_size = CONN_CXT_SIZE(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2371
p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_TSDM];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2376
p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2377
elem_size = TYPE1_TASK_CXT_SIZE(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2381
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2390
shadow_line = line - p_hwfn->p_cxt_mngr->pf_start_line;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2398
OSAL_MUTEX_ACQUIRE(&p_hwfn->p_cxt_mngr->mutex);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2400
if (p_hwfn->p_cxt_mngr->ilt_shadow[shadow_line].p_virt)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2403
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2405
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2411
p_virt = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2435
elem_start += TYPE1_TASK_CXT_SIZE(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2439
p_hwfn->p_cxt_mngr->ilt_shadow[shadow_line].p_virt = p_virt;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2440
p_hwfn->p_cxt_mngr->ilt_shadow[shadow_line].p_phys = p_phys;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2441
p_hwfn->p_cxt_mngr->ilt_shadow[shadow_line].size =
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2452
(p_hwfn->p_cxt_mngr->ilt_shadow[shadow_line].p_phys >> 12));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2455
ecore_dmae_host2grc(p_hwfn, p_ptt, (u64)(osal_uintptr_t)&ilt_hw_entry,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2464
ecore_wr(p_hwfn, p_ptt, PRS_REG_ROCE_DEST_QP_MAX_PF,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2475
if (!p_hwfn->b_rdma_enabled_in_prs) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2477
ecore_wr(p_hwfn, p_ptt, p_hwfn->rdma_prs_search_reg, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2478
p_hwfn->b_rdma_enabled_in_prs = true;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2483
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2485
OSAL_MUTEX_RELEASE(&p_hwfn->p_cxt_mngr->mutex);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2494
ecore_cxt_free_ilt_range(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2509
p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2510
elem_size = CONN_CXT_SIZE(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2514
p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_TSDM];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2519
p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUT];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2520
elem_size = TYPE1_TASK_CXT_SIZE(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2524
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2537
shadow_start_line = start_line - p_hwfn->p_cxt_mngr->pf_start_line;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2538
shadow_end_line = end_line - p_hwfn->p_cxt_mngr->pf_start_line;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2540
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2542
DP_NOTICE(p_hwfn, false, "ECORE_TIME_OUT on ptt acquire - dynamic allocation");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2547
if (!p_hwfn->p_cxt_mngr->ilt_shadow[i].p_virt)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2550
OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2551
p_hwfn->p_cxt_mngr->ilt_shadow[i].p_virt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2552
p_hwfn->p_cxt_mngr->ilt_shadow[i].p_phys,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2553
p_hwfn->p_cxt_mngr->ilt_shadow[i].size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2555
p_hwfn->p_cxt_mngr->ilt_shadow[i].p_virt = OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2556
p_hwfn->p_cxt_mngr->ilt_shadow[i].p_phys = 0;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2557
p_hwfn->p_cxt_mngr->ilt_shadow[i].size = 0;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2567
ecore_dmae_host2grc(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2574
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2579
enum _ecore_status_t ecore_cxt_get_task_ctx(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2584
struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
2594
switch (p_hwfn->hw_info.personality) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
279
static bool src_proto(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
324
static void ecore_cxt_src_iids(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
331
if (!src_proto(p_hwfn, i))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
351
static void ecore_cxt_tm_iids(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
409
static void ecore_cxt_qm_iids(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
412
struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
438
DP_VERBOSE(p_hwfn, ECORE_MSG_ILT,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
443
static struct ecore_tid_seg *ecore_cxt_tid_seg_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
446
struct ecore_cxt_mngr *p_cfg = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
460
static void ecore_cxt_set_proto_cid_count(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
464
struct ecore_cxt_mngr *p_mgr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
472
u32 cxt_size = CONN_CXT_SIZE(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
480
u32 ecore_cxt_get_proto_cid_count(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
485
*vf_cid = p_hwfn->p_cxt_mngr->conn_cfg[type].cids_per_vf;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
487
return p_hwfn->p_cxt_mngr->conn_cfg[type].cid_count;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
490
u32 ecore_cxt_get_proto_cid_start(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
493
return p_hwfn->p_cxt_mngr->acquired[type].start_cid;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
496
u32 ecore_cxt_get_proto_tid_count(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
503
cnt += p_hwfn->p_cxt_mngr->conn_cfg[type].tid_seg[i].count;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
508
static void ecore_cxt_set_proto_tid_count(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
515
struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
545
static void ecore_ilt_cli_adv_line(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
561
DP_VERBOSE(p_hwfn, ECORE_MSG_ILT,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
568
static u32 ecore_ilt_get_dynamic_line_cnt(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
571
u32 cid_count = p_hwfn->p_cxt_mngr->conn_cfg[PROTOCOLID_ROCE].cid_count;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
579
p_cli = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_CDUC];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
582
(u32)CONN_CXT_SIZE(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
606
enum _ecore_status_t ecore_cxt_cfg_ilt_compute(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
609
struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
624
p_mngr->pf_start_line = RESC_START(p_hwfn, ECORE_ILT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
626
DP_VERBOSE(p_hwfn, ECORE_MSG_ILT,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
628
p_hwfn->my_id, p_hwfn->p_cxt_mngr->pf_start_line);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
643
total = cdu_iids.pf_cids * CONN_CXT_SIZE(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
646
total, CONN_CXT_SIZE(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
648
ecore_ilt_cli_adv_line(p_hwfn, p_cli, p_blk, &curr_line, ILT_CLI_CDUC);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
651
p_blk->dynamic_line_cnt = ecore_ilt_get_dynamic_line_cnt(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
656
total = cdu_iids.per_vf_cids * CONN_CXT_SIZE(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
659
total, CONN_CXT_SIZE(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
661
ecore_ilt_cli_adv_line(p_hwfn, p_cli, p_blk, &curr_line, ILT_CLI_CDUC);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
665
ecore_ilt_cli_adv_line(p_hwfn, p_cli, p_blk, &curr_line,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
674
p_seg = ecore_cxt_tid_seg_info(p_hwfn, i);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
683
ecore_ilt_cli_adv_line(p_hwfn, p_cli, p_blk, &curr_line,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
689
p_seg = ecore_cxt_tid_seg_info(p_hwfn, i);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
724
ecore_ilt_cli_adv_line(p_hwfn, p_cli, p_blk, &curr_line,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
730
p_seg = ecore_cxt_tid_seg_info(p_hwfn, TASK_SEGMENT_VF);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
744
ecore_ilt_cli_adv_line(p_hwfn, p_cli, p_blk, &curr_line,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
759
ecore_ilt_cli_adv_line(p_hwfn, p_cli, p_blk, &curr_line,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
769
ecore_ilt_cli_adv_line(p_hwfn, p_cli, p_blk, &curr_line,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
774
ecore_ilt_cli_adv_line(p_hwfn, p_cli, p_blk, &curr_line,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
783
ecore_cxt_qm_iids(p_hwfn, &qm_iids);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
784
total = ecore_qm_pf_mem_size(p_hwfn->rel_pf_id, qm_iids.cids,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
786
p_hwfn->qm_info.num_pqs,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
787
p_hwfn->qm_info.num_vf_pqs);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
789
DP_VERBOSE(p_hwfn, ECORE_MSG_ILT,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
792
p_hwfn->qm_info.num_pqs, p_hwfn->qm_info.num_vf_pqs, total);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
797
ecore_ilt_cli_adv_line(p_hwfn, p_cli, p_blk, &curr_line, ILT_CLI_QM);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
802
ecore_cxt_src_iids(p_hwfn, p_mngr, &src_iids);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
820
ecore_ilt_cli_adv_line(p_hwfn, p_cli, p_blk, &curr_line,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
827
ecore_cxt_tm_iids(p_hwfn, p_mngr, &tm_iids);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
835
ecore_ilt_cli_adv_line(p_hwfn, p_cli, p_blk, &curr_line,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
848
ecore_ilt_cli_adv_line(p_hwfn, p_cli, p_blk, &curr_line,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
853
ecore_ilt_cli_adv_line(p_hwfn, p_cli, p_blk, &curr_line,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
859
total = ecore_cxt_get_srq_count(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
867
ecore_ilt_cli_adv_line(p_hwfn, p_cli, p_blk, &curr_line,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
872
*line_count = curr_line - p_hwfn->p_cxt_mngr->pf_start_line;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
874
if (curr_line - p_hwfn->p_cxt_mngr->pf_start_line >
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
875
RESC_NUM(p_hwfn, ECORE_ILT)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
882
u32 ecore_cxt_cfg_ilt_compute_excess(struct ecore_hwfn *p_hwfn, u32 used_lines)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
891
available_lines = RESC_NUM(p_hwfn, ECORE_ILT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
897
if (!ECORE_IS_RDMA_PERSONALITY(p_hwfn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
900
p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
905
p_seg = ecore_cxt_tid_seg_info(p_hwfn, i);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
916
DP_ERR(p_hwfn, "failed computing excess ILT lines\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
920
static void ecore_cxt_src_t2_free(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
922
struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
930
OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
935
OSAL_FREE(p_hwfn->p_dev, p_mngr->t2);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
939
static enum _ecore_status_t ecore_cxt_src_t2_alloc(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
941
struct ecore_cxt_mngr *p_mngr = p_hwfn->p_cxt_mngr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
953
p_src = &p_hwfn->p_cxt_mngr->clients[ILT_CLI_SRC];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
957
ecore_cxt_src_iids(p_hwfn, p_mngr, &src_iids);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
966
p_mngr->t2 = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
970
DP_NOTICE(p_hwfn, true, "Failed to allocate t2 table\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.c
980
*p_virt = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
101
enum _ecore_status_t ecore_cxt_mngr_alloc(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
108
void ecore_cxt_mngr_free(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
117
enum _ecore_status_t ecore_cxt_tables_alloc(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
124
void ecore_cxt_mngr_setup(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
131
void ecore_cxt_hw_init_common(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
138
void ecore_cxt_hw_init_pf(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
145
void ecore_qm_init_pf(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
155
enum _ecore_status_t ecore_qm_reconf(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
166
void ecore_cxt_release_cid(struct ecore_hwfn *p_hwfn, u32 cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
175
void _ecore_cxt_release_cid(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
187
enum _ecore_status_t ecore_cxt_acquire_cid(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
202
enum _ecore_status_t _ecore_cxt_acquire_cid(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
218
ecore_cxt_dynamic_ilt_alloc(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
232
ecore_cxt_free_ilt_range(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
238
enum _ecore_status_t ecore_cxt_get_task_ctx(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
54
u32 ecore_cxt_get_proto_cid_count(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
58
u32 ecore_cxt_get_proto_tid_count(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
61
u32 ecore_cxt_get_proto_cid_start(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
63
u32 ecore_cxt_get_srq_count(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
72
enum _ecore_status_t ecore_cxt_set_pf_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
83
enum _ecore_status_t ecore_cxt_cfg_ilt_compute(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt.h
92
u32 ecore_cxt_cfg_ilt_compute_excess(struct ecore_hwfn *p_hwfn, u32 used_lines);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt_api.h
64
enum _ecore_status_t ecore_cxt_get_cid_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_cxt_api.h
75
enum _ecore_status_t ecore_cxt_get_tid_mem_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1804
static void ecore_grc_set_param(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1808
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1814
static u32 ecore_grc_get_param(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1817
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1823
static void ecore_dbg_grc_init_params(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1825
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1828
ecore_dbg_grc_set_params_default(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1834
static enum dbg_status ecore_dbg_dev_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1837
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1845
if (ECORE_IS_K2(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1849
else if (ECORE_IS_BB_B0(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1861
if (CHIP_REV_IS_ASIC(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1865
else if (CHIP_REV_IS_EMUL(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1866
if (ecore_rd(p_hwfn, p_ptt, MISCS_REG_ECO_RESERVED) & 0x20000000) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1875
else if (CHIP_REV_IS_FPGA(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1885
ecore_dbg_grc_init_params(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1892
static struct dbg_bus_block* get_dbg_bus_block_desc(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1895
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1901
static struct dbg_bus_line* get_dbg_bus_line_desc(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1904
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1909
block_desc = get_dbg_bus_block_desc(p_hwfn, block_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1922
static void ecore_read_fw_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1941
dest[i] = ecore_rd(p_hwfn, p_ptt, addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
1948
dest[i] = ecore_rd(p_hwfn, p_ptt, addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2045
static u32 ecore_dump_fw_ver_param(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2050
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2056
if (dump && !ecore_grc_get_param(p_hwfn, DBG_GRC_PARAM_NO_FW_VER)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2069
ecore_read_fw_info(p_hwfn, p_ptt, storm_id, &fw_info);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2073
DP_NOTICE(p_hwfn, true, "Unexpected debug error: invalid FW version string\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2096
static u32 ecore_dump_mfw_ver_param(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2101
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2107
if (dump && !is_emul && !ecore_grc_get_param(p_hwfn, DBG_GRC_PARAM_NO_FW_VER)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2113
public_data_addr = ecore_rd(p_hwfn, p_ptt, MISC_REG_SHARED_MEM_ADDR) | MCP_REG_SCRATCH;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2117
global_section_offsize = ecore_rd(p_hwfn, p_ptt, global_section_offsize_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2121
mfw_ver = ecore_rd(p_hwfn, p_ptt, global_section_addr + offsetof(struct public_global, mfw_ver));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2125
DP_NOTICE(p_hwfn, true, "Unexpected debug error: invalid MFW version string\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2145
static u32 ecore_dump_common_global_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2151
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2160
offset += ecore_dump_fw_ver_param(p_hwfn, p_ptt, dump_buf + offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2161
offset += ecore_dump_mfw_ver_param(p_hwfn, p_ptt, dump_buf + offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2165
offset += ecore_dump_num_param(dump_buf + offset, dump, "pci-func", p_hwfn->abs_pf_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2173
static u32 ecore_dump_last_section(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2193
static void ecore_update_blocks_reset_state(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2196
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2203
reg_val[i] = ecore_rd(p_hwfn, p_ptt, s_reset_regs_defs[i].addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2214
static void ecore_bus_enable_dbg_block(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2218
ecore_wr(p_hwfn, p_ptt, DBG_REG_DBG_BLOCK_ON, enable ? 1 : 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2222
static void ecore_bus_reset_dbg_block(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2229
old_reset_reg_val = ecore_rd(p_hwfn, p_ptt, dbg_reset_reg_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2232
ecore_wr(p_hwfn, p_ptt, dbg_reset_reg_addr, new_reset_reg_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2233
ecore_wr(p_hwfn, p_ptt, dbg_reset_reg_addr, old_reset_reg_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2236
static void ecore_bus_set_framing_mode(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2240
ecore_wr(p_hwfn, p_ptt, DBG_REG_FRAMING_MODE, (u8)mode);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2246
static void ecore_bus_enable_clients(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2250
ecore_wr(p_hwfn, p_ptt, DBG_REG_CLIENT_ENABLE, client_mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2254
static void ecore_bus_enable_storm(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2259
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2274
ecore_wr(p_hwfn, p_ptt, storm->sem_frame_mode_addr, DBG_BUS_SEMI_FRAME_MODE_0SLOW_4FAST);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2275
ecore_wr(p_hwfn, p_ptt, base_addr + SEM_FAST_REG_DEBUG_MODE, storm_mode->id_in_hw);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2276
ecore_wr(p_hwfn, p_ptt, base_addr + SEM_FAST_REG_DEBUG_ACTIVE, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2282
ecore_wr(p_hwfn, p_ptt, base_addr + SEM_FAST_REG_DBG_MODE6_SRC_DISABLE, SEM_FAST_MODE6_SRC_ENABLE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2287
ecore_wr(p_hwfn, p_ptt, storm->sem_frame_mode_addr, DBG_BUS_SEMI_FRAME_MODE_4SLOW_0FAST);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2288
ecore_wr(p_hwfn, p_ptt, storm->sem_slow_enable_addr, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2289
ecore_wr(p_hwfn, p_ptt, storm->sem_slow_mode_addr, storm_mode->id_in_hw);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2290
ecore_wr(p_hwfn, p_ptt, storm->sem_slow_mode1_conf_addr, SEM_SLOW_MODE1_DATA_ENABLE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2295
ecore_wr(p_hwfn, p_ptt, base_addr + SEM_FAST_REG_FILTER_CID, storm_bus->cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2304
ecore_wr(p_hwfn, p_ptt, base_addr + SEM_FAST_REG_EVENT_ID_RANGE_STRT, eid_filter->range.min);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2305
ecore_wr(p_hwfn, p_ptt, base_addr + SEM_FAST_REG_EVENT_ID_RANGE_END, eid_filter->range.max);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2309
ecore_wr(p_hwfn, p_ptt, base_addr + SEM_FAST_REG_FILTER_EVENT_ID, eid_filter->mask.val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2310
ecore_wr(p_hwfn, p_ptt, base_addr + SEM_FAST_REG_EVENT_ID_MASK, ~eid_filter->mask.mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2317
ecore_wr(p_hwfn, p_ptt, base_addr + SEM_FAST_REG_RECORD_FILTER_ENABLE, sem_filter_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2321
static enum dbg_status ecore_bus_disable_inputs(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2325
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2335
ecore_wr(p_hwfn, p_ptt, storm->sem_fast_mem_addr + SEM_FAST_REG_DBG_MODE6_SRC_DISABLE, SEM_FAST_MODE6_SRC_DISABLE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2350
if (dev_data->block_in_reset[storm->block_id] || ecore_rd(p_hwfn, p_ptt, storm->sem_sync_dbg_empty_addr)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2366
DP_NOTICE(p_hwfn, false, "Warning: failed to empty the SEMI sync FIFO. It means that the last few messages from the SEMI could not be sent to the DBG block. This can happen when the DBG block is blocked (e.g. due to a PCI problem).\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2380
ecore_wr(p_hwfn, p_ptt, base_addr + SEM_FAST_REG_DEBUG_ACTIVE, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2381
ecore_wr(p_hwfn, p_ptt, base_addr + SEM_FAST_REG_RECORD_FILTER_ENABLE, DBG_BUS_FILTER_TYPE_OFF);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2382
ecore_wr(p_hwfn, p_ptt, storm->sem_frame_mode_addr, DBG_BUS_FRAME_MODE_4HW_0ST);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2383
ecore_wr(p_hwfn, p_ptt, storm->sem_slow_enable_addr, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2387
ecore_bus_enable_clients(p_hwfn, p_ptt, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2394
ecore_wr(p_hwfn, p_ptt, block->dbg_enable_addr, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2398
ecore_wr(p_hwfn, p_ptt, DBG_REG_TIMESTAMP_VALID_EN, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2401
ecore_wr(p_hwfn, p_ptt, DBG_REG_FILTER_ENABLE, DBG_BUS_FILTER_TYPE_OFF);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2402
ecore_wr(p_hwfn, p_ptt, DBG_REG_TRIGGER_ENABLE, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2408
static void ecore_bus_set_constraint(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2422
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2432
ecore_wr(p_hwfn, p_ptt, (is_filter ? DBG_REG_FILTER_CNSTR_OPRTN_0 : DBG_REG_TRIGGER_STATE_SET_CNSTR_OPRTN_0) + reg_offset, hw_op_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2433
ecore_wr(p_hwfn, p_ptt, (is_filter ? DBG_REG_FILTER_CNSTR_DATA_0 : DBG_REG_TRIGGER_STATE_SET_CNSTR_DATA_0) + reg_offset, data_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2434
ecore_wr(p_hwfn, p_ptt, (is_filter ? DBG_REG_FILTER_CNSTR_DATA_MASK_0 : DBG_REG_TRIGGER_STATE_SET_CNSTR_DATA_MASK_0) + reg_offset, data_mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2435
ecore_wr(p_hwfn, p_ptt, (is_filter ? DBG_REG_FILTER_CNSTR_FRAME_0 : DBG_REG_TRIGGER_STATE_SET_CNSTR_FRAME_0) + reg_offset, frame_bit);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2436
ecore_wr(p_hwfn, p_ptt, (is_filter ? DBG_REG_FILTER_CNSTR_FRAME_MASK_0 : DBG_REG_TRIGGER_STATE_SET_CNSTR_FRAME_MASK_0) + reg_offset, frame_mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2437
ecore_wr(p_hwfn, p_ptt, (is_filter ? DBG_REG_FILTER_CNSTR_OFFSET_0 : DBG_REG_TRIGGER_STATE_SET_CNSTR_OFFSET_0) + reg_offset, dword_offset);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2438
ecore_wr(p_hwfn, p_ptt, (is_filter ? DBG_REG_FILTER_CNSTR_RANGE_0 : DBG_REG_TRIGGER_STATE_SET_CNSTR_RANGE_0) + reg_offset, range);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2439
ecore_wr(p_hwfn, p_ptt, (is_filter ? DBG_REG_FILTER_CNSTR_CYCLIC_0 : DBG_REG_TRIGGER_STATE_SET_CNSTR_CYCLIC_0) + reg_offset, cyclic_bit);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2440
ecore_wr(p_hwfn, p_ptt, (is_filter ? DBG_REG_FILTER_CNSTR_MUST_0 : DBG_REG_TRIGGER_STATE_SET_CNSTR_MUST_0) + reg_offset, must_bit);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2446
static u32 ecore_bus_dump_int_buf_range(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2462
dump_buf[offset + INT_BUF_LINE_SIZE_IN_DWORDS - 1 - i] = ecore_rd(p_hwfn, p_ptt, reg_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2470
static u32 ecore_bus_dump_int_buf(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2477
last_written_line = ecore_rd(p_hwfn, p_ptt, DBG_REG_INTR_BUFFER_WR_PTR);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2479
if (ecore_rd(p_hwfn, p_ptt, DBG_REG_WRAP_ON_INT_BUFFER)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2485
offset += ecore_bus_dump_int_buf_range(p_hwfn, p_ptt, dump_buf + offset, dump, last_written_line + 1, INT_BUF_NUM_OF_LINES - 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2486
offset += ecore_bus_dump_int_buf_range(p_hwfn, p_ptt, dump_buf + offset, dump, 0, last_written_line);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2493
if (!ecore_rd(p_hwfn, p_ptt, DBG_REG_INTR_BUFFER_RD_PTR))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2494
offset += ecore_bus_dump_int_buf_range(p_hwfn, p_ptt, dump_buf + offset, dump, 0, last_written_line);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2496
DP_NOTICE(p_hwfn, true, "Unexpected Debug Bus error: internal buffer read pointer is not zero\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2505
static u32 ecore_bus_dump_pci_buf_range(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2511
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2534
static u32 ecore_bus_dump_pci_buf(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2539
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2547
next_wr_phys_addr.lo = ecore_rd(p_hwfn, p_ptt, DBG_REG_EXT_BUFFER_WR_PTR);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2548
next_wr_phys_addr.hi = ecore_rd(p_hwfn, p_ptt, DBG_REG_EXT_BUFFER_WR_PTR + BYTES_IN_DWORD);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2557
if (ecore_rd(p_hwfn, p_ptt, DBG_REG_WRAP_ON_EXT_BUFFER))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2558
offset += ecore_bus_dump_pci_buf_range(p_hwfn, dump_buf + offset, dump, next_wr_line_offset, pci_buf_size_in_lines - 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2562
offset += ecore_bus_dump_pci_buf_range(p_hwfn, dump_buf + offset, dump, 0, next_wr_line_offset - 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2570
static u32 ecore_bus_dump_data(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2575
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2579
return ecore_bus_dump_int_buf(p_hwfn, p_ptt, dump_buf, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2581
return ecore_bus_dump_pci_buf(p_hwfn, p_ptt, dump_buf, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2590
static void ecore_bus_free_pci_buf(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2592
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2606
OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, pci_buf, pci_buf_phys_addr, dev_data->bus.pci_buf.size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2614
static u32 ecore_bus_dump_inputs(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2618
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2661
static u32 ecore_bus_dump_hdr(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2666
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2671
DP_NOTICE(p_hwfn, true, "Unexpected debug error: invalid HW ID mask\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2674
offset += ecore_dump_common_global_params(p_hwfn, p_ptt, dump_buf + offset, dump, 5);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2681
offset += ecore_bus_dump_inputs(p_hwfn, dump_buf + offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2687
recorded_dwords = ecore_bus_dump_data(p_hwfn, p_ptt, OSAL_NULL, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2696
static bool ecore_is_mode_match(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2699
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2708
return !ecore_is_mode_match(p_hwfn, modes_buf_offset);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2711
arg1 = ecore_is_mode_match(p_hwfn, modes_buf_offset);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2712
arg2 = ecore_is_mode_match(p_hwfn, modes_buf_offset);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2721
static bool ecore_grc_is_included(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2724
return ecore_grc_get_param(p_hwfn, grc_param) > 0;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2730
static bool ecore_grc_is_storm_included(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2733
return ecore_grc_get_param(p_hwfn, (enum dbg_grc_params)storm) > 0;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2739
static bool ecore_grc_is_mem_included(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2748
!ecore_grc_is_storm_included(p_hwfn, (enum dbg_storms)block->storm_id))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2755
return ecore_grc_is_included(p_hwfn, big_ram->grc_param);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2761
return ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_PXP);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2763
return ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_RAM);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2765
return ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_PBUF);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2769
return ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_CAU);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2771
return ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_QM);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2775
return ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_CFC);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2778
return ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_IGU);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2780
return ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_MULD);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2782
return ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_PRS);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2784
return ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_DMAE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2786
return ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_TM);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2788
return ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_SDM);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2791
return ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_DIF);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2793
return ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_CM);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2795
return ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_IOR);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2802
static void ecore_grc_stall_storms(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2810
if (!ecore_grc_is_storm_included(p_hwfn, (enum dbg_storms)storm_id))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2814
ecore_wr(p_hwfn, p_ptt, reg_addr, stall ? 1 : 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2821
static void ecore_grc_unreset_blocks(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2824
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2844
ecore_wr(p_hwfn, p_ptt, s_reset_regs_defs[i].addr + RESET_REG_UNRESET_OFFSET, reg_val[i]);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2870
static void ecore_grc_clear_all_prty(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2873
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2894
if (!eval_mode || ecore_is_mode_match(p_hwfn, &modes_buf_offset))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2895
ecore_rd(p_hwfn, p_ptt, DWORDS_TO_BYTES(reg_data->sts_clr_address));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2934
static u32 ecore_grc_dump_addr_range(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2948
*(dump_buf + offset) = ecore_rd(p_hwfn, p_ptt, byte_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2970
static u32 ecore_grc_dump_reg_entry(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2981
offset += ecore_grc_dump_addr_range(p_hwfn, p_ptt, dump_buf + offset, dump, addr, len, wide_bus);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
2993
static u32 ecore_grc_dump_reg_entry_skip(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3012
offset += ecore_grc_dump_addr_range(p_hwfn, p_ptt, dump_buf + offset, dump, addr, curr_len, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3029
static u32 ecore_grc_dump_regs_entries(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3051
mode_match = ecore_is_mode_match(p_hwfn, &modes_buf_offset);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3062
offset += ecore_grc_dump_reg_entry(p_hwfn, p_ptt, dump_buf + offset, dump,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3074
static u32 ecore_grc_dump_split_data(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3091
offset += ecore_grc_dump_regs_entries(p_hwfn, p_ptt, input_regs_arr, dump_buf + offset, dump, block_enable, &num_dumped_reg_entries);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3103
static u32 ecore_grc_dump_registers(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3111
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3119
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "Dumping registers...\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3135
offset += ecore_grc_dump_split_data(p_hwfn, p_ptt, curr_input_regs_arr, dump_buf + offset, dump, block_enable, "eng", (u32)(-1), param_name, param_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3141
ecore_port_pretend(p_hwfn, p_ptt, port_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3142
offset += ecore_grc_dump_split_data(p_hwfn, p_ptt, curr_input_regs_arr, dump_buf + offset, dump, block_enable, "port", port_id, param_name, param_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3150
ecore_fid_pretend(p_hwfn, p_ptt, (pf_id << PXP_PRETEND_CONCRETE_FID_PFID_SHIFT));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3151
offset += ecore_grc_dump_split_data(p_hwfn, p_ptt, curr_input_regs_arr, dump_buf + offset, dump, block_enable, "pf", pf_id, param_name, param_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3158
ecore_fid_pretend(p_hwfn, p_ptt, (1 << PXP_PRETEND_CONCRETE_FID_VFVALID_SHIFT) | (vf_id << PXP_PRETEND_CONCRETE_FID_VFID_SHIFT));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3159
offset += ecore_grc_dump_split_data(p_hwfn, p_ptt, curr_input_regs_arr, dump_buf + offset, dump, block_enable, "vf", vf_id, param_name, param_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3172
ecore_fid_pretend(p_hwfn, p_ptt, (p_hwfn->rel_pf_id << PXP_PRETEND_CONCRETE_FID_PFID_SHIFT));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3178
static u32 ecore_grc_dump_reset_regs(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3183
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3194
offset += ecore_grc_dump_reg_entry(p_hwfn, p_ptt, dump_buf + offset, dump, BYTES_TO_DWORDS(s_reset_regs_defs[i].addr), 1, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3208
static u32 ecore_grc_dump_modified_regs(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3213
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3236
if (eval_mode && !ecore_is_mode_match(p_hwfn, &modes_buf_offset))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3240
offset += ecore_grc_dump_reg_entry(p_hwfn, p_ptt, dump_buf + offset, dump, reg_data->mask_address, 1, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3241
offset += ecore_grc_dump_reg_entry(p_hwfn, p_ptt, dump_buf + offset, dump, GET_FIELD(reg_data->data, DBG_ATTN_REG_STS_ADDRESS), 1, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3253
offset += ecore_grc_dump_reg_entry(p_hwfn, p_ptt, dump_buf + offset, dump,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3266
static u32 ecore_grc_dump_special_regs(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3278
offset += ecore_grc_dump_reg_entry_skip(p_hwfn, p_ptt, dump_buf + offset, dump, BYTES_TO_DWORDS(RDIF_REG_DEBUG_ERROR_INFO), RDIF_REG_DEBUG_ERROR_INFO_SIZE, 7, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3279
offset += ecore_grc_dump_reg_entry_skip(p_hwfn, p_ptt, dump_buf + offset, dump, BYTES_TO_DWORDS(TDIF_REG_DEBUG_ERROR_INFO), TDIF_REG_DEBUG_ERROR_INFO_SIZE, 7, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3296
static u32 ecore_grc_dump_mem_hdr(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3313
DP_NOTICE(p_hwfn, true, "Unexpected GRC Dump error: dumped memory size must be non-zero\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3337
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "Dumping %d registers from %s...\n", len, buf);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3346
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "Dumping %d registers from address 0x%x...\n", len, addr_in_bytes);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3379
static u32 ecore_grc_dump_mem(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3395
offset += ecore_grc_dump_mem_hdr(p_hwfn, dump_buf + offset, dump, name, addr, len, bit_width, packed, mem_group, is_storm, storm_letter);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3396
offset += ecore_grc_dump_addr_range(p_hwfn, p_ptt, dump_buf + offset, dump, addr, len, wide_bus);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3402
static u32 ecore_grc_dump_mem_entries(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3424
mode_match = ecore_is_mode_match(p_hwfn, &modes_buf_offset);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3440
DP_NOTICE(p_hwfn, true, "Invalid mem_group_id\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3444
if (!ecore_grc_is_mem_included(p_hwfn, (enum block_id)cond_hdr->block_id, mem_group_id))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3456
DP_NOTICE(p_hwfn, true, "Invalid CCFC connection memory size\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3460
mem_len = ecore_grc_get_param(p_hwfn, DBG_GRC_PARAM_NUM_LCIDS) * (mem_len / MAX_LCIDS);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3464
DP_NOTICE(p_hwfn, true, "Invalid TCFC task memory size\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3468
mem_len = ecore_grc_get_param(p_hwfn, DBG_GRC_PARAM_NUM_LTIDS) * (mem_len / MAX_LTIDS);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3480
offset += ecore_grc_dump_mem(p_hwfn, p_ptt, dump_buf + offset, dump, OSAL_NULL, mem_addr, mem_len, mem_wide_bus,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3491
static u32 ecore_grc_dump_memories(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3512
offset += ecore_grc_dump_mem_entries(p_hwfn, p_ptt, curr_input_mems_arr, dump_buf + offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3516
DP_NOTICE(p_hwfn, true, "Dumping split memories is currently not supported\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3530
static u32 ecore_grc_dump_ctx_data(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3549
offset += ecore_grc_dump_mem_hdr(p_hwfn, dump_buf + offset, dump, name, 0, total_size, lid_size * 32, false, name, true, storm->letter);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3557
ecore_wr(p_hwfn, p_ptt, storm->cm_ctx_wr_addr, (i << 9) | lid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3558
*(dump_buf + offset) = ecore_rd(p_hwfn, p_ptt, rd_reg_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3566
static u32 ecore_grc_dump_ctx(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3577
if (!ecore_grc_is_storm_included(p_hwfn, (enum dbg_storms)storm_id))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3581
offset += ecore_grc_dump_ctx_data(p_hwfn, p_ptt, dump_buf + offset, dump, "CONN_AG_CTX", ecore_grc_get_param(p_hwfn, DBG_GRC_PARAM_NUM_LCIDS),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3585
offset += ecore_grc_dump_ctx_data(p_hwfn, p_ptt, dump_buf + offset, dump, "CONN_ST_CTX", ecore_grc_get_param(p_hwfn, DBG_GRC_PARAM_NUM_LCIDS),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3589
offset += ecore_grc_dump_ctx_data(p_hwfn, p_ptt, dump_buf + offset, dump, "TASK_AG_CTX", ecore_grc_get_param(p_hwfn, DBG_GRC_PARAM_NUM_LTIDS),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3593
offset += ecore_grc_dump_ctx_data(p_hwfn, p_ptt, dump_buf + offset, dump, "TASK_ST_CTX", ecore_grc_get_param(p_hwfn, DBG_GRC_PARAM_NUM_LTIDS),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3601
static u32 ecore_grc_dump_iors(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3613
if (!ecore_grc_is_storm_included(p_hwfn, (enum dbg_storms)storm_id))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3619
offset += ecore_grc_dump_mem(p_hwfn, p_ptt, dump_buf + offset, dump, buf, addr, IORS_PER_SET, false, 32, false, "ior", true, storm->letter);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3627
static u32 ecore_grc_dump_vfc_cam(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3639
offset += ecore_grc_dump_mem_hdr(p_hwfn, dump_buf + offset, dump, "vfc_cam", 0, total_size, 256, false, "vfc_cam", true, storm->letter);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3651
ARR_REG_WR(p_hwfn, p_ptt, storm->sem_fast_mem_addr + SEM_FAST_REG_VFC_DATA_WR, cam_cmd, VFC_CAM_CMD_DWORDS);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3654
ARR_REG_WR(p_hwfn, p_ptt, storm->sem_fast_mem_addr + SEM_FAST_REG_VFC_ADDR, cam_addr, VFC_CAM_ADDR_DWORDS);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3657
ARR_REG_RD(p_hwfn, p_ptt, storm->sem_fast_mem_addr + SEM_FAST_REG_VFC_DATA_RD, dump_buf + offset, VFC_CAM_RESP_DWORDS);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3664
static u32 ecore_grc_dump_vfc_ram(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3677
offset += ecore_grc_dump_mem_hdr(p_hwfn, dump_buf + offset, dump, ram_defs->mem_name, 0, total_size, 256, false, ram_defs->type_name, true, storm->letter);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3688
ARR_REG_WR(p_hwfn, p_ptt, storm->sem_fast_mem_addr + SEM_FAST_REG_VFC_DATA_WR, ram_cmd, VFC_RAM_CMD_DWORDS);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3692
ARR_REG_WR(p_hwfn, p_ptt, storm->sem_fast_mem_addr + SEM_FAST_REG_VFC_ADDR, ram_addr, VFC_RAM_ADDR_DWORDS);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3695
ARR_REG_RD(p_hwfn, p_ptt, storm->sem_fast_mem_addr + SEM_FAST_REG_VFC_DATA_RD, dump_buf + offset, VFC_RAM_RESP_DWORDS);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3702
static u32 ecore_grc_dump_vfc(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3707
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3712
if (!ecore_grc_is_storm_included(p_hwfn, (enum dbg_storms)storm_id) ||
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3718
offset += ecore_grc_dump_vfc_cam(p_hwfn, p_ptt, dump_buf + offset, dump, storm_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3722
offset += ecore_grc_dump_vfc_ram(p_hwfn, p_ptt, dump_buf + offset, dump, storm_id, &s_vfc_ram_defs[i]);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3729
static u32 ecore_grc_dump_rss(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3734
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3750
offset += ecore_grc_dump_mem_hdr(p_hwfn, dump_buf + offset, dump, rss_defs->mem_name, 0, total_dwords,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3760
ecore_wr(p_hwfn, p_ptt, RSS_REG_RSS_RAM_ADDR, rss_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3761
offset += ecore_grc_dump_addr_range(p_hwfn, p_ptt, dump_buf + offset, dump, BYTES_TO_DWORDS(RSS_REG_RSS_RAM_DATA), RSS_REG_RSS_RAM_DATA_SIZE, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3769
static u32 ecore_grc_dump_big_ram(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3775
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3789
offset += ecore_grc_dump_mem_hdr(p_hwfn, dump_buf + offset, dump, mem_name, 0, ram_size, BIG_RAM_BLOCK_SIZE_BYTES * 8, false, type_name, false, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3797
ecore_wr(p_hwfn, p_ptt, big_ram->addr_reg_addr, i);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3798
offset += ecore_grc_dump_addr_range(p_hwfn, p_ptt, dump_buf + offset, dump, BYTES_TO_DWORDS(big_ram->data_reg_addr), 2 * BIG_RAM_BLOCK_SIZE_DWORDS, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3804
static u32 ecore_grc_dump_mcp(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3814
if (dump && !ecore_grc_get_param(p_hwfn, DBG_GRC_PARAM_NO_MCP)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3815
halted = !ecore_mcp_halt(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3817
DP_NOTICE(p_hwfn, false, "MCP halt failed!\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3821
offset += ecore_grc_dump_mem(p_hwfn, p_ptt, dump_buf + offset, dump, OSAL_NULL, BYTES_TO_DWORDS(MCP_REG_SCRATCH), MCP_REG_SCRATCH_SIZE, false, 0, false, "MCP", false, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3824
offset += ecore_grc_dump_mem(p_hwfn, p_ptt, dump_buf + offset, dump, OSAL_NULL, BYTES_TO_DWORDS(MCP_REG_CPU_REG_FILE), MCP_REG_CPU_REG_FILE_SIZE, false, 0, false, "MCP", false, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3828
offset += ecore_grc_dump_registers(p_hwfn, p_ptt, dump_buf + offset, dump, block_enable, "block", "MCP");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3832
offset += ecore_grc_dump_reg_entry(p_hwfn, p_ptt, dump_buf + offset, dump, BYTES_TO_DWORDS(MISC_REG_SHARED_MEM_ADDR), 1, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3835
if (halted && ecore_mcp_resume(p_hwfn, p_ptt))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3836
DP_NOTICE(p_hwfn, false, "Failed to resume MCP after halt!\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3842
static u32 ecore_grc_dump_phy(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3864
DP_NOTICE(p_hwfn, true, "Unexpected debug error: invalid PHY memory name\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3866
offset += ecore_grc_dump_mem_hdr(p_hwfn, dump_buf + offset, dump, mem_name, 0, PHY_DUMP_SIZE_DWORDS, 16, true, mem_name, false, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3874
ecore_wr(p_hwfn, p_ptt, addr_hi_addr, tbus_hi_offset);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3876
ecore_wr(p_hwfn, p_ptt, addr_lo_addr, tbus_lo_offset);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3877
*(bytes_buf++) = (u8)ecore_rd(p_hwfn, p_ptt, data_lo_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3878
*(bytes_buf++) = (u8)ecore_rd(p_hwfn, p_ptt, data_hi_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3888
static void ecore_config_dbg_line(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3899
ecore_wr(p_hwfn, p_ptt, block->dbg_select_addr, line_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3900
ecore_wr(p_hwfn, p_ptt, block->dbg_enable_addr, enable_mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3901
ecore_wr(p_hwfn, p_ptt, block->dbg_shift_addr, right_shift);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3902
ecore_wr(p_hwfn, p_ptt, block->dbg_force_valid_addr, force_valid_mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3903
ecore_wr(p_hwfn, p_ptt, block->dbg_force_frame_addr, force_frame_mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3907
static u32 ecore_grc_dump_static_debug(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3912
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3916
if (ecore_rd(p_hwfn, p_ptt, DBG_REG_DBG_BLOCK_ON))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3920
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "Dumping static debug data...\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3927
ecore_wr(p_hwfn, p_ptt, block->dbg_enable_addr, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3930
ecore_bus_reset_dbg_block(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3931
ecore_bus_set_framing_mode(p_hwfn, p_ptt, DBG_BUS_FRAME_MODE_8HW_0ST);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3932
ecore_wr(p_hwfn, p_ptt, DBG_REG_DEBUG_TARGET, DBG_BUS_TARGET_ID_INT_BUF);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3933
ecore_wr(p_hwfn, p_ptt, DBG_REG_FULL_MODE, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3934
ecore_bus_enable_dbg_block(p_hwfn, p_ptt, true);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3946
block_desc = get_dbg_bus_block_desc(p_hwfn, (enum block_id)block_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3950
offset += ecore_grc_dump_mem_hdr(p_hwfn, dump_buf + offset, dump, block->name, 0, block_dwords, 32, false, "STATIC", false, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3965
ecore_bus_enable_clients(p_hwfn, p_ptt, 1 << block->dbg_client_id[dev_data->chip_id]);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3969
ecore_config_dbg_line(p_hwfn, p_ptt, (enum block_id)block_id, (u8)line_id, 0xf, 0, 0, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3972
offset += ecore_grc_dump_addr_range(p_hwfn, p_ptt, dump_buf + offset, dump, BYTES_TO_DWORDS(DBG_REG_CALENDAR_OUT_DATA), STATIC_DEBUG_LINE_DWORDS, true);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3976
ecore_bus_enable_clients(p_hwfn, p_ptt, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3977
ecore_wr(p_hwfn, p_ptt, block->dbg_enable_addr, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3981
ecore_bus_enable_dbg_block(p_hwfn, p_ptt, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3982
ecore_bus_enable_clients(p_hwfn, p_ptt, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3991
static enum dbg_status ecore_grc_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
3997
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4011
switch (ecore_rd(p_hwfn, p_ptt, MISC_REG_PORT_MODE)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4018
ecore_update_blocks_reset_state(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4022
offset += ecore_dump_common_global_params(p_hwfn, p_ptt, dump_buf + offset, dump, 4);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4024
offset += ecore_dump_num_param(dump_buf + offset, dump, "num-lcids", ecore_grc_get_param(p_hwfn, DBG_GRC_PARAM_NUM_LCIDS));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4025
offset += ecore_dump_num_param(dump_buf + offset, dump, "num-ltids", ecore_grc_get_param(p_hwfn, DBG_GRC_PARAM_NUM_LTIDS));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4029
if (ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_REGS))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4030
offset += ecore_grc_dump_reset_regs(p_hwfn, p_ptt, dump_buf + offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4034
ecore_grc_unreset_blocks(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4035
ecore_update_blocks_reset_state(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4039
if (dump && !is_emul && !ecore_grc_get_param(p_hwfn, DBG_GRC_PARAM_NO_MCP)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4040
parities_masked = !ecore_mcp_mask_parities(p_hwfn, p_ptt, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4042
DP_NOTICE(p_hwfn, false, "Failed to mask parities using MFW\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4043
if (ecore_grc_get_param(p_hwfn, DBG_GRC_PARAM_PARITY_SAFE))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4049
if (ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_REGS))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4050
offset += ecore_grc_dump_modified_regs(p_hwfn, p_ptt, dump_buf + offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4053
if (dump && (ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_IOR) || ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_VFC)))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4054
ecore_grc_stall_storms(p_hwfn, p_ptt, true);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4057
if (ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_REGS)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4064
offset += ecore_grc_dump_registers(p_hwfn, p_ptt, dump_buf + offset, dump, block_enable, OSAL_NULL, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4067
offset += ecore_grc_dump_special_regs(p_hwfn, p_ptt, dump_buf + offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4071
offset += ecore_grc_dump_memories(p_hwfn, p_ptt, dump_buf + offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4074
if (ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_MCP))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4075
offset += ecore_grc_dump_mcp(p_hwfn, p_ptt, dump_buf + offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4078
if (ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_CM_CTX))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4079
offset += ecore_grc_dump_ctx(p_hwfn, p_ptt, dump_buf + offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4082
if (ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_RSS))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4083
offset += ecore_grc_dump_rss(p_hwfn, p_ptt, dump_buf + offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4087
if (ecore_grc_is_included(p_hwfn, s_big_ram_defs[i].grc_param))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4088
offset += ecore_grc_dump_big_ram(p_hwfn, p_ptt, dump_buf + offset, dump, i);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4091
if (ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_IOR))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4092
offset += ecore_grc_dump_iors(p_hwfn, p_ptt, dump_buf + offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4095
if (ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_VFC))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4096
offset += ecore_grc_dump_vfc(p_hwfn, p_ptt, dump_buf + offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4099
if (ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_PHY) && dev_data->chip_id == CHIP_K2 && dev_data->platform_id == PLATFORM_ASIC)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4100
offset += ecore_grc_dump_phy(p_hwfn, p_ptt, dump_buf + offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4103
if (ecore_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_STATIC) && dev_data->bus.state == DBG_BUS_STATE_IDLE)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4104
offset += ecore_grc_dump_static_debug(p_hwfn, p_ptt, dump_buf + offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4107
offset += ecore_dump_last_section(p_hwfn, dump_buf, offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4112
if (ecore_grc_get_param(p_hwfn, DBG_GRC_PARAM_UNSTALL))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4113
ecore_grc_stall_storms(p_hwfn, p_ptt, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4117
ecore_grc_clear_all_prty(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4121
ecore_mcp_mask_parities(p_hwfn, p_ptt, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4134
static u32 ecore_idle_chk_dump_failure(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4143
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4205
DP_NOTICE(p_hwfn, true, "Invalid block_id\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4221
mode_match = ecore_is_mode_match(p_hwfn, &modes_buf_offset);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4238
offset += ecore_grc_dump_addr_range(p_hwfn, p_ptt, dump_buf + offset, dump, addr, reg->size, wide_bus);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4246
static u32 ecore_idle_chk_dump_rule_entries(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4254
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4283
DP_NOTICE(p_hwfn, true, "Invalid block_id\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4302
offset += ecore_idle_chk_dump_failure(p_hwfn, p_ptt, dump_buf + offset, false, rule->rule_id, rule, entry_id, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4325
DP_NOTICE(p_hwfn, true, "idle check registers entry is too large\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4329
next_reg_offset += ecore_grc_dump_addr_range(p_hwfn, p_ptt, cond_reg_values + next_reg_offset, dump, addr, reg->entry_size, wide_bus);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4334
offset += ecore_idle_chk_dump_failure(p_hwfn, p_ptt, dump_buf + offset, dump, rule->rule_id, rule, entry_id, cond_reg_values);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4347
static u32 ecore_idle_chk_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4355
offset += ecore_dump_common_global_params(p_hwfn, p_ptt, dump_buf + offset, dump, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4373
mode_match = ecore_is_mode_match(p_hwfn, &modes_buf_offset);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4377
offset += ecore_idle_chk_dump_rule_entries(p_hwfn, p_ptt, dump_buf + offset, dump, (const struct dbg_idle_chk_rule*)&s_dbg_arrays[BIN_BUF_DBG_IDLE_CHK_RULES].ptr[input_offset], cond_hdr->data_size / IDLE_CHK_RULE_SIZE_DWORDS, &curr_failing_rules);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4389
offset += ecore_dump_last_section(p_hwfn, dump_buf, offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4395
static enum dbg_status ecore_find_nvram_image(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4406
nvm_result = ecore_mcp_nvm_rd_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_NVM_GET_FILE_ATT, image_type, &ret_mcp_resp, &ret_mcp_param, &ret_txn_size, (u32*)&file_att);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4416
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "find_nvram_image: found NVRAM image of type %d in NVRAM offset %d bytes with size %d bytes\n", image_type, *nvram_offset_bytes, *nvram_size_bytes);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4426
static enum dbg_status ecore_nvram_read(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4436
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "nvram_read: reading image of size %d bytes from NVRAM\n", nvram_size_bytes);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4442
if (ecore_mcp_nvm_rd_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_NVM_READ_NVRAM, (nvram_offset_bytes + read_offset) | (bytes_to_copy << DRV_MB_PARAM_NVM_LEN_SHIFT), &ret_mcp_resp, &ret_mcp_param, &ret_read_size, (u32*)((u8*)ret_buf + read_offset)))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4461
static enum dbg_status ecore_mcp_trace_get_data_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4469
spad_trace_offsize = ecore_rd(p_hwfn, p_ptt, MCP_SPAD_TRACE_OFFSIZE_ADDR);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4475
signature = ecore_rd(p_hwfn, p_ptt, *trace_data_grc_addr + offsetof(struct mcp_trace, signature));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4481
*trace_data_size = ecore_rd(p_hwfn, p_ptt, *trace_data_grc_addr + offsetof(struct mcp_trace, size));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4492
static enum dbg_status ecore_mcp_trace_get_meta_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4502
spad_trace_offsize = ecore_rd(p_hwfn, p_ptt, MCP_SPAD_TRACE_OFFSIZE_ADDR);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4506
*running_bundle_id = ecore_rd(p_hwfn, p_ptt, running_mfw_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4512
return ecore_find_nvram_image(p_hwfn, p_ptt, nvram_image_type, trace_meta_offset, trace_meta_size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4516
static enum dbg_status ecore_mcp_trace_read_meta(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4527
status = ecore_nvram_read(p_hwfn, p_ptt, nvram_offset_in_bytes, size_in_bytes, buf);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4556
static enum dbg_status ecore_mcp_trace_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4571
mcp_access = !ecore_grc_get_param(p_hwfn, DBG_GRC_PARAM_NO_MCP);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4574
status = ecore_mcp_trace_get_data_info(p_hwfn, p_ptt, &trace_data_grc_addr, &trace_data_size_bytes);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4579
offset += ecore_dump_common_global_params(p_hwfn, p_ptt, dump_buf + offset, dump, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4587
halted = !ecore_mcp_halt(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4589
DP_NOTICE(p_hwfn, false, "MCP halt failed!\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4600
offset += ecore_grc_dump_addr_range(p_hwfn, p_ptt, dump_buf + offset, dump, BYTES_TO_DWORDS(trace_data_grc_addr), trace_data_size_dwords, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4603
if (halted && ecore_mcp_resume(p_hwfn, p_ptt))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4604
DP_NOTICE(p_hwfn, false, "Failed to resume MCP after halt!\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4612
if (OSAL_NVM_IS_ACCESS_ENABLED(p_hwfn) && mcp_access) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4613
status = ecore_mcp_trace_get_meta_info(p_hwfn, p_ptt, trace_data_size_bytes, &running_bundle_id, &trace_meta_offset_bytes, &trace_meta_size_bytes);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4623
status = ecore_mcp_trace_read_meta(p_hwfn, p_ptt, trace_meta_offset_bytes, trace_meta_size_bytes, dump_buf + offset);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4628
offset += ecore_dump_last_section(p_hwfn, dump_buf, offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4639
static enum dbg_status ecore_reg_fifo_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4651
offset += ecore_dump_common_global_params(p_hwfn, p_ptt, dump_buf + offset, dump, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4662
fifo_has_data = ecore_rd(p_hwfn, p_ptt, GRC_REG_TRACE_FIFO_VALID_DATA) > 0;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4671
if (ecore_dmae_grc2host(p_hwfn, p_ptt, GRC_REG_TRACE_FIFO, (u64)(osal_uintptr_t)(&dump_buf[offset]), REG_FIFO_ELEMENT_DWORDS, 0))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4673
fifo_has_data = ecore_rd(p_hwfn, p_ptt, GRC_REG_TRACE_FIFO_VALID_DATA) > 0;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4687
offset += ecore_dump_last_section(p_hwfn, dump_buf, offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4695
static enum dbg_status ecore_igu_fifo_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4707
offset += ecore_dump_common_global_params(p_hwfn, p_ptt, dump_buf + offset, dump, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4718
fifo_has_data = ecore_rd(p_hwfn, p_ptt, IGU_REG_ERROR_HANDLING_DATA_VALID) > 0;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4726
if (ecore_dmae_grc2host(p_hwfn, p_ptt, IGU_REG_ERROR_HANDLING_MEMORY, (u64)(osal_uintptr_t)(&dump_buf[offset]), IGU_FIFO_ELEMENT_DWORDS, 0))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4728
fifo_has_data = ecore_rd(p_hwfn, p_ptt, IGU_REG_ERROR_HANDLING_DATA_VALID) > 0;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4742
offset += ecore_dump_last_section(p_hwfn, dump_buf, offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4750
static enum dbg_status ecore_protection_override_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4761
offset += ecore_dump_common_global_params(p_hwfn, p_ptt, dump_buf + offset, dump, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4773
override_window_dwords = ecore_rd(p_hwfn, p_ptt, GRC_REG_NUMBER_VALID_OVERRIDE_WINDOW) * PROTECTION_OVERRIDE_ELEMENT_DWORDS;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4774
if (ecore_dmae_grc2host(p_hwfn, p_ptt, GRC_REG_PROTECTION_OVERRIDE_WINDOW, (u64)(osal_uintptr_t)(dump_buf + offset), override_window_dwords, 0))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4784
offset += ecore_dump_last_section(p_hwfn, dump_buf, offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4794
static u32 ecore_fw_asserts_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4799
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4807
offset += ecore_dump_common_global_params(p_hwfn, p_ptt, dump_buf + offset, dump, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4819
ecore_read_fw_info(p_hwfn, p_ptt, storm_id, &fw_info);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4838
next_list_idx = ecore_rd(p_hwfn, p_ptt, next_list_idx_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4842
offset += ecore_grc_dump_addr_range(p_hwfn, p_ptt, dump_buf + offset, dump, addr, asserts->list_element_dword_size, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4846
offset += ecore_dump_last_section(p_hwfn, dump_buf, offset, dump);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4882
enum chip_ids ecore_dbg_get_chip_id(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4884
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4889
enum dbg_status ecore_dbg_bus_reset(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4896
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4899
status = ecore_dbg_dev_init(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4903
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "dbg_bus_reset: one_shot_en = %d, force_hw_dwords = %d, unify_inputs = %d, grc_input_en = %d\n", one_shot_en, force_hw_dwords, unify_inputs, grc_input_en);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4910
if (ecore_rd(p_hwfn, p_ptt, DBG_REG_DBG_BLOCK_ON))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4914
ecore_update_blocks_reset_state(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4917
status = ecore_bus_disable_inputs(p_hwfn, p_ptt, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4922
ecore_bus_reset_dbg_block(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4925
ecore_wr(p_hwfn, p_ptt, DBG_REG_FULL_MODE, one_shot_en ? 0 : 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4944
enum dbg_status ecore_dbg_bus_set_pci_output(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4948
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4952
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "dbg_bus_set_pci_output: buf_size_kb = %d\n", buf_size_kb);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4964
pci_buf = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, &pci_buf_phys_addr, dev_data->bus.pci_buf.size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4973
ecore_wr(p_hwfn, p_ptt, DBG_REG_PCI_EXT_BUFFER_STRT_ADDR_LSB, dev_data->bus.pci_buf.phys_addr.lo);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4974
ecore_wr(p_hwfn, p_ptt, DBG_REG_PCI_EXT_BUFFER_STRT_ADDR_MSB, dev_data->bus.pci_buf.phys_addr.hi);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4975
ecore_wr(p_hwfn, p_ptt, DBG_REG_TARGET_PACKET_SIZE, PCI_PKT_SIZE_IN_CHUNKS);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4976
ecore_wr(p_hwfn, p_ptt, DBG_REG_PCI_EXT_BUFFER_SIZE, dev_data->bus.pci_buf.size / PCI_PKT_SIZE_IN_BYTES);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4977
ecore_wr(p_hwfn, p_ptt, DBG_REG_PCI_FUNC_NUM, OPAQUE_FID(p_hwfn->rel_pf_id));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4978
ecore_wr(p_hwfn, p_ptt, DBG_REG_PCI_LOGIC_ADDR, PCI_PHYS_ADDR_TYPE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4979
ecore_wr(p_hwfn, p_ptt, DBG_REG_PCI_REQ_CREDIT, PCI_REQ_CREDIT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4980
ecore_wr(p_hwfn, p_ptt, DBG_REG_DEBUG_TARGET, DBG_BUS_TARGET_ID_PCI);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4981
ecore_wr(p_hwfn, p_ptt, DBG_REG_OUTPUT_ENABLE, TARGET_EN_MASK_PCI);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4986
enum dbg_status ecore_dbg_bus_set_nw_output(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4995
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
4997
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "dbg_bus_set_nw_output: port_id = %d, dest_addr_lo32 = 0x%x, dest_addr_hi16 = 0x%x, data_limit_size_kb = %d, send_to_other_engine = %d, rcv_from_other_engine = %d\n", port_id, dest_addr_lo32, dest_addr_hi16, data_limit_size_kb, send_to_other_engine, rcv_from_other_engine);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5009
ecore_wr(p_hwfn, p_ptt, DBG_REG_OUTPUT_ENABLE, TARGET_EN_MASK_NIG);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5010
ecore_wr(p_hwfn, p_ptt, DBG_REG_DEBUG_TARGET, DBG_BUS_TARGET_ID_NIG);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5013
ecore_wr(p_hwfn, p_ptt, DBG_REG_OTHER_ENGINE_MODE_BB_K2, DBG_BUS_OTHER_ENGINE_MODE_CROSS_ENGINE_TX);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5015
ecore_wr(p_hwfn, p_ptt, NIG_REG_DEBUG_PORT, port_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5018
ecore_wr(p_hwfn, p_ptt, DBG_REG_OTHER_ENGINE_MODE_BB_K2, DBG_BUS_OTHER_ENGINE_MODE_CROSS_ENGINE_RX);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5023
ecore_wr(p_hwfn, p_ptt, DBG_REG_ETHERNET_HDR_WIDTH, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5024
ecore_wr(p_hwfn, p_ptt, DBG_REG_ETHERNET_HDR_7, dest_addr_lo32);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5025
ecore_wr(p_hwfn, p_ptt, DBG_REG_ETHERNET_HDR_6, (u32)SRC_MAC_ADDR_LO16 | ((u32)dest_addr_hi16 << 16));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5026
ecore_wr(p_hwfn, p_ptt, DBG_REG_ETHERNET_HDR_5, SRC_MAC_ADDR_HI32);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5027
ecore_wr(p_hwfn, p_ptt, DBG_REG_ETHERNET_HDR_4, (u32)ETH_TYPE << 16);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5028
ecore_wr(p_hwfn, p_ptt, DBG_REG_TARGET_PACKET_SIZE, NIG_PKT_SIZE_IN_CHUNKS);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5030
ecore_wr(p_hwfn, p_ptt, DBG_REG_NIG_DATA_LIMIT_SIZE, (data_limit_size_kb * 1024) / CHUNK_SIZE_IN_BYTES);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5036
bool ecore_is_overlapping_enable_mask(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5040
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5065
enum dbg_status ecore_dbg_bus_enable_block(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5074
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5080
block_desc = get_dbg_bus_block_desc(p_hwfn, block_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5082
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "dbg_bus_enable_block: block = %d, line_num = %d, enable_mask = 0x%x, right_shift = %d, force_valid_mask = 0x%x, force_frame_mask = 0x%x\n", block_id, line_num, enable_mask, right_shift, force_valid_mask, force_frame_mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5100
if (!dev_data->bus.unify_inputs && ecore_is_overlapping_enable_mask(p_hwfn, enable_mask, right_shift))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5114
enum dbg_status ecore_dbg_bus_enable_storm(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5118
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5120
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "dbg_bus_enable_storm: storm = %d, storm_mode = %d\n", storm, storm_mode);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5145
enum dbg_status ecore_dbg_bus_enable_timestamp(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5151
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5153
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "dbg_bus_enable_timestamp: valid_mask = 0x%x, frame_mask = 0x%x, tick_len = %d\n", valid_mask, frame_mask, tick_len);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5159
if (!dev_data->bus.unify_inputs && ecore_is_overlapping_enable_mask(p_hwfn, 0x1, 0))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5167
ecore_wr(p_hwfn, p_ptt, DBG_REG_TIMESTAMP_VALID_EN, valid_mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5168
ecore_wr(p_hwfn, p_ptt, DBG_REG_TIMESTAMP_FRAME_EN, frame_mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5169
ecore_wr(p_hwfn, p_ptt, DBG_REG_TIMESTAMP_TICK, tick_len);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5174
enum dbg_status ecore_dbg_bus_add_eid_range_sem_filter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5179
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5184
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "dbg_bus_add_eid_range_sem_filter: storm = %d, min_eid = 0x%x, max_eid = 0x%x\n", storm_id, min_eid, max_eid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5201
enum dbg_status ecore_dbg_bus_add_eid_mask_sem_filter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5206
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5211
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "dbg_bus_add_eid_mask_sem_filter: storm = %d, eid_val = 0x%x, eid_mask = 0x%x\n", storm_id, eid_val, eid_mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5226
enum dbg_status ecore_dbg_bus_add_cid_sem_filter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5230
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5235
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "dbg_bus_add_cid_sem_filter: storm = %d, cid = 0x%x\n", storm_id, cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5248
enum dbg_status ecore_dbg_bus_enable_filter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5253
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5255
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "dbg_bus_enable_filter: block = %d, const_msg_len = %d\n", block_id, const_msg_len);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5273
ecore_wr(p_hwfn, p_ptt, DBG_REG_FILTER_ID_NUM, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5274
ecore_wr(p_hwfn, p_ptt, DBG_REG_FILTER_MSG_LENGTH_ENABLE, const_msg_len > 0 ? 1 : 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5276
ecore_wr(p_hwfn, p_ptt, DBG_REG_FILTER_MSG_LENGTH, const_msg_len - 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5281
enum dbg_status ecore_dbg_bus_enable_trigger(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5290
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5295
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "dbg_bus_enable_trigger: rec_pre_trigger = %d, pre_chunks = %d, rec_post_trigger = %d, post_cycles = %d, filter_pre_trigger = %d, filter_post_trigger = %d\n", rec_pre_trigger, pre_chunks, rec_post_trigger, post_cycles, filter_pre_trigger, filter_post_trigger);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5310
ecore_wr(p_hwfn, p_ptt, DBG_REG_RCRD_ON_WINDOW_PRE_NUM_CHUNKS, pre_chunks);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5318
ecore_wr(p_hwfn, p_ptt, DBG_REG_RCRD_ON_WINDOW_POST_NUM_CYCLES, post_cycles ? post_cycles : 0xffffffff);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5324
ecore_wr(p_hwfn, p_ptt, DBG_REG_RCRD_ON_WINDOW_PRE_TRGR_EVNT_MODE, pre_trigger_type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5325
ecore_wr(p_hwfn, p_ptt, DBG_REG_RCRD_ON_WINDOW_POST_TRGR_EVNT_MODE, post_trigger_type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5326
ecore_wr(p_hwfn, p_ptt, DBG_REG_TRIGGER_ENABLE, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5331
enum dbg_status ecore_dbg_bus_add_trigger_state(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5337
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5342
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "dbg_bus_add_trigger_state: block = %d, const_msg_len = %d, count_to_next = %d\n", block_id, const_msg_len, count_to_next);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5367
ecore_wr(p_hwfn, p_ptt, DBG_REG_TRIGGER_STATE_MSG_LENGTH_ENABLE_0 + reg_offset, const_msg_len > 0 ? 1 : 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5369
ecore_wr(p_hwfn, p_ptt, DBG_REG_TRIGGER_STATE_MSG_LENGTH_0 + reg_offset, const_msg_len - 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5373
ecore_wr(p_hwfn, p_ptt, DBG_REG_TRIGGER_STATE_SET_COUNT_0 + reg_offset, count_to_next);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5378
ecore_wr(p_hwfn, p_ptt, DBG_REG_TRIGGER_STATE_SET_NXT_STATE_0 + reg_offset, MAX_TRIGGER_STATES);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5381
ecore_wr(p_hwfn, p_ptt, DBG_REG_TRIGGER_STATE_SET_NXT_STATE_0 + reg_offset, bus->next_trigger_state);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5389
enum dbg_status ecore_dbg_bus_add_constraint(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5400
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5404
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "dbg_bus_add_constraint: op = %d, data_val = 0x%x, data_mask = 0x%x, compare_frame = %d, frame_bit = %d, cycle_offset = %d, dword_offset_in_cycle = %d, is_mandatory = %d\n", constraint_op, data_val, data_mask, compare_frame, frame_bit, cycle_offset, dword_offset_in_cycle, is_mandatory);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5458
ecore_bus_set_constraint(p_hwfn, p_ptt, dev_data->bus.adding_filter ? 1 : 0,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5473
ecore_bus_set_constraint(p_hwfn, p_ptt, bus->adding_filter ? 1 : 0,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5484
void ecore_config_dbg_block_client_mask(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5487
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5520
ecore_bus_enable_clients(p_hwfn, p_ptt, client_mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5524
enum dbg_status ecore_config_dbg_block_framing_mode(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5527
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5545
line_desc = get_dbg_bus_line_desc(p_hwfn, (enum block_id)block_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5567
ecore_bus_set_framing_mode(p_hwfn, p_ptt, dbg_framing_mode);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5573
enum dbg_status ecore_config_storm_inputs(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5576
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5586
if (storm_bus->enabled && !ecore_rd(p_hwfn, p_ptt, storm->sem_sync_dbg_empty_addr))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5597
ecore_wr(p_hwfn, p_ptt, DBG_REG_STORM_ID_NUM, storm_id_mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5600
ecore_wr(p_hwfn, p_ptt, DBG_REG_NO_GRANT_ON_FULL, (dev_data->bus.target == DBG_BUS_TARGET_ID_INT_BUF && bus->one_shot_en) ? 0 : 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5609
ecore_wr(p_hwfn, p_ptt, DBG_REG_CALENDAR_SLOT0 + DWORDS_TO_BYTES(i), next_storm_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5623
void ecore_assign_hw_ids(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5626
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5683
void ecore_config_block_inputs(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5686
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5691
ecore_assign_hw_ids(p_hwfn, hw_ids);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5700
ecore_wr(p_hwfn, p_ptt, DBG_REG_TRIGGER_STATE_ID_0 + state_id * BYTES_IN_DWORD, hw_ids[val_id]);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5711
ecore_wr(p_hwfn, p_ptt, DBG_REG_HW_ID_NUM, bus->hw_id_mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5717
ecore_wr(p_hwfn, p_ptt, PCIE_REG_DBG_REPEAT_THRESHOLD_COUNT_K2_E5, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5718
ecore_wr(p_hwfn, p_ptt, PCIE_REG_DBG_FW_TRIGGER_ENABLE_K2_E5, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5722
enum dbg_status ecore_dbg_bus_start(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5725
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5732
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "dbg_bus_start\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5748
if ((status = ecore_config_dbg_block_framing_mode(p_hwfn, p_ptt)) != DBG_STATUS_OK)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5753
if ((status = ecore_config_storm_inputs(p_hwfn, p_ptt)) != DBG_STATUS_OK)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5758
ecore_config_block_inputs(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5775
ecore_wr(p_hwfn, p_ptt, DBG_REG_FILTER_ENABLE, filter_type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5778
ecore_wr(p_hwfn, p_ptt, DBG_REG_TIMESTAMP, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5781
ecore_bus_enable_dbg_block(p_hwfn, p_ptt, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5791
ecore_config_dbg_line(p_hwfn, p_ptt, (enum block_id)block_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5801
ecore_config_dbg_block_client_mask(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5809
ecore_bus_enable_storm(p_hwfn, p_ptt, (enum dbg_storms)storm_id, filter_type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5816
enum dbg_status ecore_dbg_bus_stop(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5819
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5823
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "dbg_bus_stop\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5828
status = ecore_bus_disable_inputs(p_hwfn, p_ptt, true);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5832
ecore_wr(p_hwfn, p_ptt, DBG_REG_CPU_TIMEOUT, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5836
ecore_bus_enable_dbg_block(p_hwfn, p_ptt, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5840
u32 trigger_state = ecore_rd(p_hwfn, p_ptt, DBG_REG_TRIGGER_STATUS_CUR_STATE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5851
enum dbg_status ecore_dbg_bus_get_dump_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5855
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5859
status = ecore_dbg_dev_init(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5867
*buf_size = (u32)ecore_bus_dump_hdr(p_hwfn, p_ptt, OSAL_NULL, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5879
*buf_size += ecore_dump_last_section(p_hwfn, OSAL_NULL, 0, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5884
enum dbg_status ecore_dbg_bus_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5890
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5898
status = ecore_dbg_bus_get_dump_buf_size(p_hwfn, p_ptt, &min_buf_size_in_dwords);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5902
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "dbg_bus_dump: dump_buf = 0x%p, buf_size_in_dwords = %d\n", dump_buf, buf_size_in_dwords);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5908
enum dbg_status stop_state = ecore_dbg_bus_stop(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5920
offset += ecore_bus_dump_hdr(p_hwfn, p_ptt, dump_buf + offset, true);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5924
u32 recorded_dwords = ecore_bus_dump_data(p_hwfn, p_ptt, dump_buf + offset, true);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5934
offset += ecore_dump_last_section(p_hwfn, dump_buf, offset, true);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5937
ecore_bus_free_pci_buf(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5960
enum dbg_status ecore_dbg_grc_config(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5966
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "dbg_grc_config: paramId = %d, val = %d\n", grc_param, val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
5971
ecore_dbg_grc_init_params(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6000
ecore_grc_set_param(p_hwfn, (enum dbg_grc_params)i, preset_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6006
ecore_grc_set_param(p_hwfn, grc_param, val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6013
void ecore_dbg_grc_set_params_default(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6015
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6022
enum dbg_status ecore_dbg_grc_get_dump_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6026
enum dbg_status status = ecore_dbg_dev_init(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6037
return ecore_grc_dump(p_hwfn, p_ptt, OSAL_NULL, false, buf_size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6040
enum dbg_status ecore_dbg_grc_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6051
status = ecore_dbg_grc_get_dump_buf_size(p_hwfn, p_ptt, &needed_buf_size_in_dwords);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6062
status = ecore_grc_dump(p_hwfn, p_ptt, dump_buf, true, num_dumped_dwords);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6065
ecore_dbg_grc_set_params_default(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6070
enum dbg_status ecore_dbg_idle_chk_get_dump_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6074
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6080
status = ecore_dbg_dev_init(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6089
idle_chk->buf_size = ecore_idle_chk_dump(p_hwfn, p_ptt, OSAL_NULL, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6098
enum dbg_status ecore_dbg_idle_chk_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6109
status = ecore_dbg_idle_chk_get_dump_buf_size(p_hwfn, p_ptt, &needed_buf_size_in_dwords);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6117
ecore_update_blocks_reset_state(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6120
*num_dumped_dwords = ecore_idle_chk_dump(p_hwfn, p_ptt, dump_buf, true);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6123
ecore_dbg_grc_set_params_default(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6128
enum dbg_status ecore_dbg_mcp_trace_get_dump_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6132
enum dbg_status status = ecore_dbg_dev_init(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6139
return ecore_mcp_trace_dump(p_hwfn, p_ptt, OSAL_NULL, false, buf_size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6142
enum dbg_status ecore_dbg_mcp_trace_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6151
status = ecore_dbg_mcp_trace_get_dump_buf_size(p_hwfn, p_ptt, &needed_buf_size_in_dwords);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6159
ecore_update_blocks_reset_state(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6162
status = ecore_mcp_trace_dump(p_hwfn, p_ptt, dump_buf, true, num_dumped_dwords);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6165
ecore_dbg_grc_set_params_default(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6170
enum dbg_status ecore_dbg_reg_fifo_get_dump_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6174
enum dbg_status status = ecore_dbg_dev_init(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6181
return ecore_reg_fifo_dump(p_hwfn, p_ptt, OSAL_NULL, false, buf_size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6184
enum dbg_status ecore_dbg_reg_fifo_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6195
status = ecore_dbg_reg_fifo_get_dump_buf_size(p_hwfn, p_ptt, &needed_buf_size_in_dwords);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6203
ecore_update_blocks_reset_state(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6205
status = ecore_reg_fifo_dump(p_hwfn, p_ptt, dump_buf, true, num_dumped_dwords);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6208
ecore_dbg_grc_set_params_default(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6213
enum dbg_status ecore_dbg_igu_fifo_get_dump_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6217
enum dbg_status status = ecore_dbg_dev_init(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6224
return ecore_igu_fifo_dump(p_hwfn, p_ptt, OSAL_NULL, false, buf_size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6227
enum dbg_status ecore_dbg_igu_fifo_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6238
status = ecore_dbg_igu_fifo_get_dump_buf_size(p_hwfn, p_ptt, &needed_buf_size_in_dwords);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6246
ecore_update_blocks_reset_state(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6248
status = ecore_igu_fifo_dump(p_hwfn, p_ptt, dump_buf, true, num_dumped_dwords);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6251
ecore_dbg_grc_set_params_default(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6256
enum dbg_status ecore_dbg_protection_override_get_dump_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6260
enum dbg_status status = ecore_dbg_dev_init(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6267
return ecore_protection_override_dump(p_hwfn, p_ptt, OSAL_NULL, false, buf_size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6270
enum dbg_status ecore_dbg_protection_override_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6281
status = ecore_dbg_protection_override_get_dump_buf_size(p_hwfn, p_ptt, &needed_buf_size_in_dwords);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6289
ecore_update_blocks_reset_state(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6291
status = ecore_protection_override_dump(p_hwfn, p_ptt, dump_buf, true, num_dumped_dwords);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6294
ecore_dbg_grc_set_params_default(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6299
enum dbg_status ecore_dbg_fw_asserts_get_dump_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6303
enum dbg_status status = ecore_dbg_dev_init(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6311
ecore_update_blocks_reset_state(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6313
*buf_size = ecore_fw_asserts_dump(p_hwfn, p_ptt, OSAL_NULL, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6318
enum dbg_status ecore_dbg_fw_asserts_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6329
status = ecore_dbg_fw_asserts_get_dump_buf_size(p_hwfn, p_ptt, &needed_buf_size_in_dwords);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6336
*num_dumped_dwords = ecore_fw_asserts_dump(p_hwfn, p_ptt, dump_buf, true);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6339
ecore_dbg_grc_set_params_default(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6344
enum dbg_status ecore_dbg_read_attn(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6351
enum dbg_status status = ecore_dbg_dev_init(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6373
if (eval_mode && !ecore_is_mode_match(p_hwfn, &modes_buf_offset))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6378
sts_val = ecore_rd(p_hwfn, p_ptt, sts_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6388
reg_result->mask_val = ecore_rd(p_hwfn, p_ptt, DWORDS_TO_BYTES(reg_data->mask_address));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6400
enum dbg_status ecore_dbg_print_attn(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6417
DP_NOTICE(p_hwfn, false, "%s: address 0x%08x, status 0x%08x, mask 0x%08x\n", attn_type_str, sts_addr, reg_result->sts_val, reg_result->mask_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6423
bool ecore_is_block_in_reset(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6427
struct dbg_tools_data *dev_data = &p_hwfn->dbg_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.c
6437
!(ecore_rd(p_hwfn, p_ptt, s_reset_regs_defs[reset_reg].addr) & (1 << block->reset_bit_offset)) : true;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
106
enum dbg_status ecore_dbg_bus_reset(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
129
enum dbg_status ecore_dbg_bus_set_pci_output(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
169
enum dbg_status ecore_dbg_bus_set_nw_output(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
206
enum dbg_status ecore_dbg_bus_enable_block(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
231
enum dbg_status ecore_dbg_bus_enable_storm(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
257
enum dbg_status ecore_dbg_bus_enable_timestamp(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
277
enum dbg_status ecore_dbg_bus_add_eid_range_sem_filter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
295
enum dbg_status ecore_dbg_bus_add_eid_mask_sem_filter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
312
enum dbg_status ecore_dbg_bus_add_cid_sem_filter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
338
enum dbg_status ecore_dbg_bus_enable_filter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
378
enum dbg_status ecore_dbg_bus_enable_trigger(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
413
enum dbg_status ecore_dbg_bus_add_trigger_state(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
464
enum dbg_status ecore_dbg_bus_add_constraint(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
486
enum dbg_status ecore_dbg_bus_start(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
498
enum dbg_status ecore_dbg_bus_stop(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
517
enum dbg_status ecore_dbg_bus_get_dump_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
539
enum dbg_status ecore_dbg_bus_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
557
enum dbg_status ecore_dbg_grc_config(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
567
void ecore_dbg_grc_set_params_default(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
581
enum dbg_status ecore_dbg_grc_get_dump_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
599
enum dbg_status ecore_dbg_grc_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
617
enum dbg_status ecore_dbg_idle_chk_get_dump_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
636
enum dbg_status ecore_dbg_idle_chk_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
657
enum dbg_status ecore_dbg_mcp_trace_get_dump_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
680
enum dbg_status ecore_dbg_mcp_trace_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
698
enum dbg_status ecore_dbg_reg_fifo_get_dump_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
718
enum dbg_status ecore_dbg_reg_fifo_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
736
enum dbg_status ecore_dbg_igu_fifo_get_dump_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
74
enum chip_ids ecore_dbg_get_chip_id(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
756
enum dbg_status ecore_dbg_igu_fifo_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
775
enum dbg_status ecore_dbg_protection_override_get_dump_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
795
enum dbg_status ecore_dbg_protection_override_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
813
enum dbg_status ecore_dbg_fw_asserts_get_dump_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
832
enum dbg_status ecore_dbg_fw_asserts_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
853
enum dbg_status ecore_dbg_read_attn(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
871
enum dbg_status ecore_dbg_print_attn(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dbg_fw_funcs.h
884
bool ecore_is_block_in_reset(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1000
&p_hwfn->p_dcbx_info->get);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1002
rc = ecore_dcbx_process_mib_info(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1009
ecore_qm_reconf(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1012
ecore_sp_pf_update_dcbx(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1017
enabled = p_hwfn->p_dcbx_info->results.dcbx_enabled;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1023
if (ECORE_IS_ROCE_PERSONALITY(p_hwfn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1024
ecore_roce_dpm_dcbx(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1029
ecore_dcbx_get_params(p_hwfn, p_ptt, &p_hwfn->p_dcbx_info->get, type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1036
if (p_hwfn->p_dcbx_info->dscp_nig_update) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1037
ecore_wr(p_hwfn, p_ptt, NIG_REG_DSCP_TO_TC_MAP_ENABLE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1039
p_hwfn->p_dcbx_info->dscp_nig_update = false;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1045
p_data = &p_hwfn->p_dcbx_info->results;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1050
ecore_wr(p_hwfn, p_ptt, NIG_REG_TX_EDPM_CTRL, val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1053
OSAL_DCBX_AEN(p_hwfn, type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1058
enum _ecore_status_t ecore_dcbx_info_alloc(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1069
p_hwfn->p_dcbx_info = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1070
sizeof(*p_hwfn->p_dcbx_info));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1071
if (!p_hwfn->p_dcbx_info) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1072
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1077
p_hwfn->p_dcbx_info->iwarp_port =
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1078
p_hwfn->pf_params.rdma_pf_params.iwarp_port;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1083
void ecore_dcbx_info_free(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1085
OSAL_FREE(p_hwfn->p_dev, p_hwfn->p_dcbx_info);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1086
p_hwfn->p_dcbx_info = OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1140
enum _ecore_status_t ecore_dcbx_query_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1147
if (IS_VF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1150
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1153
DP_ERR(p_hwfn, "rc = %d\n", rc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1157
rc = ecore_dcbx_read_mib(p_hwfn, p_ptt, type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1161
rc = ecore_dcbx_get_params(p_hwfn, p_ptt, p_get, type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1164
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1169
ecore_dcbx_set_pfc_data(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1196
DP_VERBOSE(p_hwfn, ECORE_MSG_DCB, "pfc = 0x%x\n", *pfc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1200
ecore_dcbx_set_ets_data(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1243
DP_VERBOSE(p_hwfn, ECORE_MSG_DCB,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1251
ecore_dcbx_set_app_data(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1320
DP_VERBOSE(p_hwfn, ECORE_MSG_DCB, "flags = 0x%x\n", p_app->flags);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1324
ecore_dcbx_set_local_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1332
&p_hwfn->p_dcbx_info->operational.features,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1342
ecore_dcbx_set_pfc_data(p_hwfn, &local_admin->features.pfc,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1346
ecore_dcbx_set_ets_data(p_hwfn, &local_admin->features.ets,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1350
ecore_dcbx_set_app_data(p_hwfn, &local_admin->features.app,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1357
ecore_dcbx_set_dscp_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1364
OSAL_MEMCPY(p_dscp_map, &p_hwfn->p_dcbx_info->dscp_map,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1380
p_hwfn->p_dcbx_info->dscp_nig_update = true;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1382
DP_VERBOSE(p_hwfn, ECORE_MSG_DCB, "flags = 0x%x\n", p_dscp_map->flags);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1387
enum _ecore_status_t ecore_dcbx_config_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1399
OSAL_MEMCPY(&p_hwfn->p_dcbx_info->set, params,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1400
sizeof(p_hwfn->p_dcbx_info->set));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1405
OSAL_MEMSET(&p_hwfn->p_dcbx_info->set, 0,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1409
ecore_dcbx_set_local_params(p_hwfn, &local_admin, params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1411
data.addr = p_hwfn->mcp_info->port_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1415
ecore_memcpy_to(p_hwfn, p_ptt, data.addr, data.local_admin, data.size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1419
ecore_dcbx_set_dscp_params(p_hwfn, &dscp_map, params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1421
data.addr = p_hwfn->mcp_info->port_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1425
ecore_memcpy_to(p_hwfn, p_ptt, data.addr, data.dscp_map,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1429
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_SET_DCBX,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1432
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1440
enum _ecore_status_t ecore_dcbx_get_config_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1446
if (p_hwfn->p_dcbx_info->set.config.valid) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1447
OSAL_MEMCPY(params, &p_hwfn->p_dcbx_info->set,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1452
dcbx_info = OSAL_ALLOC(p_hwfn->p_dev, GFP_KERNEL,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1455
DP_ERR(p_hwfn, "Failed to allocate struct ecore_dcbx_info\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1460
rc = ecore_dcbx_query_params(p_hwfn, dcbx_info,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1463
OSAL_FREE(p_hwfn->p_dev, dcbx_info);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1466
p_hwfn->p_dcbx_info->set.override_flags = 0;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1468
p_hwfn->p_dcbx_info->set.ver_num = DCBX_CONFIG_VERSION_DISABLED;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1470
p_hwfn->p_dcbx_info->set.ver_num |= DCBX_CONFIG_VERSION_CEE;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1472
p_hwfn->p_dcbx_info->set.ver_num |= DCBX_CONFIG_VERSION_IEEE;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1474
p_hwfn->p_dcbx_info->set.ver_num |= DCBX_CONFIG_VERSION_STATIC;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1476
p_hwfn->p_dcbx_info->set.enabled = dcbx_info->operational.enabled;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1477
OSAL_MEMCPY(&p_hwfn->p_dcbx_info->set.config.params,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1480
p_hwfn->p_dcbx_info->set.config.valid = true;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1482
OSAL_MEMCPY(params, &p_hwfn->p_dcbx_info->set,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
1485
OSAL_FREE(p_hwfn->p_dev, dcbx_info);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
163
static bool ecore_dcbx_iwarp_tlv(struct ecore_hwfn *p_hwfn, u32 app_info_bitmap,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
168
if (!p_hwfn->p_dcbx_info->iwarp_port)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
177
return !!(port && (proto_id == p_hwfn->p_dcbx_info->iwarp_port));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
181
ecore_dcbx_dp_protocol(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
187
DP_VERBOSE(p_hwfn, ECORE_MSG_DCB, "DCBX negotiated: %d\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
193
DP_VERBOSE(p_hwfn, ECORE_MSG_DCB,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
197
p_data->arr[id].tc, p_hwfn->hw_info.num_active_tc,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
205
struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
210
struct ecore_dcbx_dscp_params *dscp = &p_hwfn->p_dcbx_info->get.dscp;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
235
if (p_hwfn->hw_info.personality == personality)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
236
p_hwfn->hw_info.offload_tc = tc;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
242
struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
258
ecore_dcbx_set_params(p_data, p_hwfn, enable,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
293
ecore_dcbx_get_app_protocol_type(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
307
} else if (ecore_dcbx_iwarp_tlv(p_hwfn, app_prio_bitmap, id, ieee)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
311
DP_ERR(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
324
ecore_dcbx_process_tlv(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
337
DP_VERBOSE(p_hwfn, ECORE_MSG_DCB,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
348
DP_VERBOSE(p_hwfn, ECORE_MSG_DCB, "Id = 0x%x pri_map = %u\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
352
DP_ERR(p_hwfn, "Invalid priority\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
357
if (ecore_dcbx_get_app_protocol_type(p_hwfn, p_tbl[i].entry,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
368
ecore_dcbx_update_app_info(p_data, p_hwfn, enable,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
386
ecore_dcbx_update_app_info(p_data, p_hwfn, enable,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
397
ecore_dcbx_process_mib_info(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
409
flags = p_hwfn->p_dcbx_info->operational.flags;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
412
p_app = &p_hwfn->p_dcbx_info->operational.features.app;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
415
p_ets = &p_hwfn->p_dcbx_info->operational.features.ets;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
418
p_info = &p_hwfn->hw_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
421
rc = ecore_dcbx_process_tlv(p_hwfn, &data, p_tbl, pri_tc_tbl,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
427
p_hwfn->qm_info.ooo_tc = ECORE_MFW_GET_FIELD(p_ets->flags, DCBX_OOO_TC);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
428
data.pf_id = p_hwfn->rel_pf_id;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
431
ecore_dcbx_dp_protocol(p_hwfn, &data);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
433
OSAL_MEMCPY(&p_hwfn->p_dcbx_info->results, &data,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
440
ecore_dcbx_copy_mib(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
454
ecore_memcpy_from(p_hwfn, p_ptt, p_data->lldp_remote,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
459
ecore_memcpy_from(p_hwfn, p_ptt, p_data->mib,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
466
DP_VERBOSE(p_hwfn, ECORE_MSG_DCB,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
473
DP_ERR(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
483
ecore_dcbx_get_priority_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
516
DP_VERBOSE(p_hwfn, ECORE_MSG_DCB,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
523
ecore_dcbx_get_app_data(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
578
ecore_dcbx_get_app_protocol_type(p_hwfn, p_tbl[i].entry,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
583
DP_VERBOSE(p_hwfn, ECORE_MSG_DCB,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
590
ecore_dcbx_get_pfc_data(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
608
DP_VERBOSE(p_hwfn, ECORE_MSG_DCB,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
615
ecore_dcbx_get_ets_data(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
629
DP_VERBOSE(p_hwfn, ECORE_MSG_DCB,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
637
DP_VERBOSE(p_hwfn, ECORE_MSG_DCB,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
653
DP_VERBOSE(p_hwfn, ECORE_MSG_DCB,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
661
ecore_dcbx_get_common_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
668
ecore_dcbx_get_app_data(p_hwfn, p_app, p_tbl, p_params, ieee);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
669
ecore_dcbx_get_ets_data(p_hwfn, p_ets, p_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
670
ecore_dcbx_get_pfc_data(p_hwfn, pfc, p_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
674
ecore_dcbx_get_local_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
680
p_feat = &p_hwfn->p_dcbx_info->local_admin.features;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
681
ecore_dcbx_get_common_params(p_hwfn, &p_feat->app,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
688
ecore_dcbx_get_remote_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
694
p_feat = &p_hwfn->p_dcbx_info->remote.features;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
695
ecore_dcbx_get_common_params(p_hwfn, &p_feat->app,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
703
ecore_dcbx_get_operational_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
714
flags = p_hwfn->p_dcbx_info->operational.flags;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
725
DP_VERBOSE(p_hwfn, ECORE_MSG_DCB, "Dcbx is disabled\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
729
p_feat = &p_hwfn->p_dcbx_info->operational.features;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
730
p_results = &p_hwfn->p_dcbx_info->results;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
744
DP_VERBOSE(p_hwfn, ECORE_MSG_DCB,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
749
ecore_dcbx_get_common_params(p_hwfn, &p_feat->app,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
753
ecore_dcbx_get_priority_info(p_hwfn, &p_operational->app_prio,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
764
ecore_dcbx_get_dscp_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
774
p_dscp_map = &p_hwfn->p_dcbx_info->dscp_map;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
782
DP_VERBOSE(p_hwfn, ECORE_MSG_DCB, "elem %d pri_map 0x%x\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
791
ecore_dcbx_get_local_lldp_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
797
p_local = &p_hwfn->p_dcbx_info->lldp_local[LLDP_NEAREST_BRIDGE];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
807
ecore_dcbx_get_remote_lldp_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
813
p_remote = &p_hwfn->p_dcbx_info->lldp_remote[LLDP_NEAREST_BRIDGE];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
823
ecore_dcbx_get_params(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
831
ecore_dcbx_get_remote_params(p_hwfn, p_ptt, p_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
834
ecore_dcbx_get_local_params(p_hwfn, p_ptt, p_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
837
ecore_dcbx_get_operational_params(p_hwfn, p_ptt, p_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
840
ecore_dcbx_get_remote_lldp_params(p_hwfn, p_ptt, p_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
843
ecore_dcbx_get_local_lldp_params(p_hwfn, p_ptt, p_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
846
DP_ERR(p_hwfn, "MIB read err, unknown mib type %d\n", type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
854
ecore_dcbx_read_local_lldp_mib(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
861
data.addr = p_hwfn->mcp_info->port_addr + offsetof(struct public_port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
863
data.lldp_local = p_hwfn->p_dcbx_info->lldp_local;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
865
ecore_memcpy_from(p_hwfn, p_ptt, data.lldp_local, data.addr, data.size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
871
ecore_dcbx_read_remote_lldp_mib(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
879
data.addr = p_hwfn->mcp_info->port_addr + offsetof(struct public_port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
881
data.lldp_remote = p_hwfn->p_dcbx_info->lldp_remote;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
883
rc = ecore_dcbx_copy_mib(p_hwfn, p_ptt, &data, type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
889
ecore_dcbx_read_operational_mib(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
897
data.addr = p_hwfn->mcp_info->port_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
899
data.mib = &p_hwfn->p_dcbx_info->operational;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
901
rc = ecore_dcbx_copy_mib(p_hwfn, p_ptt, &data, type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
907
ecore_dcbx_read_remote_mib(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
915
data.addr = p_hwfn->mcp_info->port_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
917
data.mib = &p_hwfn->p_dcbx_info->remote;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
919
rc = ecore_dcbx_copy_mib(p_hwfn, p_ptt, &data, type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
925
ecore_dcbx_read_local_mib(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
931
data.addr = p_hwfn->mcp_info->port_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
933
data.local_admin = &p_hwfn->p_dcbx_info->local_admin;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
935
ecore_memcpy_from(p_hwfn, p_ptt, data.local_admin,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
942
ecore_dcbx_read_dscp_mib(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
946
data.addr = p_hwfn->mcp_info->port_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
948
data.dscp_map = &p_hwfn->p_dcbx_info->dscp_map;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
950
ecore_memcpy_from(p_hwfn, p_ptt, data.dscp_map, data.addr, data.size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
953
static enum _ecore_status_t ecore_dcbx_read_mib(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
961
ecore_dcbx_read_dscp_mib(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
962
rc = ecore_dcbx_read_operational_mib(p_hwfn, p_ptt, type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
965
rc = ecore_dcbx_read_remote_mib(p_hwfn, p_ptt, type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
968
rc = ecore_dcbx_read_local_mib(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
971
rc = ecore_dcbx_read_remote_lldp_mib(p_hwfn, p_ptt, type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
974
rc = ecore_dcbx_read_local_lldp_mib(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
977
DP_ERR(p_hwfn, "MIB read err, unknown mib type %d\n", type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
989
ecore_dcbx_mib_update_event(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
994
rc = ecore_dcbx_read_mib(p_hwfn, p_ptt, type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.c
999
ecore_dcbx_get_dscp_params(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dcbx.h
79
enum _ecore_status_t ecore_dcbx_info_alloc(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1003
if (p_hwfn->using_ll2) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1004
rc = ecore_ll2_alloc(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1010
if (p_hwfn->hw_info.personality == ECORE_PCI_FCOE) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1011
rc = ecore_fcoe_alloc(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1017
if (p_hwfn->hw_info.personality == ECORE_PCI_ISCSI) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1018
rc = ecore_iscsi_alloc(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1021
rc = ecore_ooo_alloc(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1027
if (ECORE_IS_RDMA_PERSONALITY(p_hwfn)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1028
rc = ecore_rdma_info_alloc(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1035
rc = ecore_dmae_info_alloc(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1037
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1043
rc = ecore_dcbx_info_alloc(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1045
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
106
val = ecore_rd(p_hwfn, p_hwfn->p_main_ptt, bar_reg);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1079
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1081
ecore_cxt_mngr_setup(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1082
ecore_spq_setup(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1083
ecore_eq_setup(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1084
ecore_consq_setup(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1087
ecore_mcp_read_mb(p_hwfn, p_hwfn->p_main_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1088
OSAL_MEMCPY(p_hwfn->mcp_info->mfw_mb_shadow,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1089
p_hwfn->mcp_info->mfw_mb_cur,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1090
p_hwfn->mcp_info->mfw_mb_length);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1092
ecore_int_setup(p_hwfn, p_hwfn->p_main_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1094
ecore_l2_setup(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1095
ecore_iov_setup(p_hwfn, p_hwfn->p_main_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1097
if (p_hwfn->using_ll2)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1098
ecore_ll2_setup(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1101
if (p_hwfn->hw_info.personality == ECORE_PCI_FCOE)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1102
ecore_fcoe_setup(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1105
if (p_hwfn->hw_info.personality == ECORE_PCI_ISCSI) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1106
ecore_iscsi_setup(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1107
ecore_ooo_setup(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1115
enum _ecore_status_t ecore_final_cleanup(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1123
if (CHIP_REV_IS_TEDIBEAR(p_hwfn->p_dev) ||
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1124
CHIP_REV_IS_SLOW(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1125
DP_INFO(p_hwfn, "Skipping final cleanup for non-ASIC\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1131
USTORM_FLR_FINAL_ACK_OFFSET(p_hwfn->rel_pf_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
114
if (p_hwfn->p_dev->num_hwfns > 1) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1143
if (REG_RD(p_hwfn, addr)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1144
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1146
REG_WR(p_hwfn, addr, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1149
DP_VERBOSE(p_hwfn, ECORE_MSG_IOV,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
115
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1153
ecore_wr(p_hwfn, p_ptt, XSDM_REG_OPERATION_GEN, command);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1156
while (!REG_RD(p_hwfn, addr) && count--)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1159
if (REG_RD(p_hwfn, addr))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1162
DP_NOTICE(p_hwfn, true, "Failed to receive FW final cleanup notification\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1165
REG_WR(p_hwfn, addr, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1170
static enum _ecore_status_t ecore_calc_hw_mode(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1174
if (ECORE_IS_BB_B0(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1176
} else if (ECORE_IS_AH(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1179
DP_NOTICE(p_hwfn, true, "Unknown chip type %#x\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1180
p_hwfn->p_dev->type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1185
switch (p_hwfn->p_dev->num_ports_in_engine) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
119
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1196
DP_NOTICE(p_hwfn, true, "num_ports_in_engine = %d not supported\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1197
p_hwfn->p_dev->num_ports_in_engine);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1201
switch (p_hwfn->p_dev->mf_mode) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1210
DP_NOTICE(p_hwfn, true, "Unsupported MF mode, init as DEFAULT\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1215
if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1216
if (CHIP_REV_IS_FPGA(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1219
if (p_hwfn->p_dev->b_is_emul_full)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1228
if (p_hwfn->p_dev->num_hwfns > 1)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1231
p_hwfn->hw_info.hw_mode = hw_mode;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1233
DP_VERBOSE(p_hwfn, (ECORE_MSG_PROBE | ECORE_MSG_IFUP),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1235
p_hwfn->hw_info.hw_mode);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1242
static enum _ecore_status_t ecore_hw_init_chip(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1245
struct ecore_dev *p_dev = p_hwfn->p_dev;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1256
ecore_wr(p_hwfn, p_ptt, MISCS_REG_RESET_PL_HV + 4, pl_hv);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1260
ecore_wr(p_hwfn, p_ptt, MISCS_REG_RESET_PL_HV_2_K2_E5,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1266
ecore_wr(p_hwfn, p_ptt, CNIG_REG_NW_PORT_MODE_BB, 4);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1271
ecore_wr(p_hwfn, p_ptt, MISC_REG_PORT_MODE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1274
ecore_wr(p_hwfn, p_ptt, MISC_REG_BLOCK_256B_EN,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1282
ecore_wr(p_hwfn, p_ptt, PSWRQ2_REG_RBC_DONE, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1285
if (ecore_rd(p_hwfn, p_ptt, PSWRQ2_REG_CFG_DONE) == 1)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1289
DP_NOTICE(p_hwfn, true, "RBC done failed to complete in PSWRQ2\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1305
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1310
p_igu_info = p_hwfn->hw_info.p_igu_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1320
ecore_init_cau_sb_entry(p_hwfn, &sb_entry,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1323
STORE_RT_REG_AGG(p_hwfn, offset + igu_sb_id * 2,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1329
static void ecore_init_cache_line_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1334
val = ecore_rd(p_hwfn, p_ptt, PSWRQ2_REG_WR_MBS0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1346
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
136
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1367
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1373
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1377
STORE_RT_REG(p_hwfn, PGLUE_REG_B_CACHE_LINE_SIZE_RT_OFFSET, val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
138
p_hwfn->dp_level = dp_level;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1380
static enum _ecore_status_t ecore_hw_init_common(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1384
struct ecore_qm_info *qm_info = &p_hwfn->qm_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1385
struct ecore_dev *p_dev = p_hwfn->p_dev;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
139
p_hwfn->dp_module = dp_module;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1394
ecore_gtt_init(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1398
rc = ecore_hw_init_chip(p_hwfn, p_hwfn->p_main_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
140
p_hwfn->dp_ctx = dp_ctx;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1404
if (p_hwfn->mcp_info) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1405
if (p_hwfn->mcp_info->func_info.bandwidth_max)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1407
if (p_hwfn->mcp_info->func_info.bandwidth_min)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1411
ecore_qm_common_rt_init(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1418
ecore_cxt_hw_init_common(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1420
ecore_init_cache_line_size(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1422
rc = ecore_init_run(p_hwfn, p_ptt, PHASE_ENGINE, ANY_PHASE_ID, hw_mode);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1429
ecore_wr(p_hwfn, p_ptt, PSWRQ2_REG_L2P_VALIDATE_VFID, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1430
ecore_wr(p_hwfn, p_ptt, PGLUE_B_REG_USE_CLIENTID_IN_TAG, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1438
ecore_fid_pretend(p_hwfn, p_ptt, pf_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1439
ecore_wr(p_hwfn, p_ptt, PRS_REG_SEARCH_ROCE, 0x0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1440
ecore_wr(p_hwfn, p_ptt, PRS_REG_SEARCH_TCP, 0x0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1443
ecore_fid_pretend(p_hwfn, p_ptt, p_hwfn->rel_pf_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1454
concrete_fid = ecore_vfid_to_concrete(p_hwfn, vf_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1455
ecore_fid_pretend(p_hwfn, p_ptt, (u16)concrete_fid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1456
ecore_wr(p_hwfn, p_ptt, CCFC_REG_STRONG_ENABLE_VF, 0x1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1457
ecore_wr(p_hwfn, p_ptt, CCFC_REG_WEAK_ENABLE_VF, 0x0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1458
ecore_wr(p_hwfn, p_ptt, TCFC_REG_STRONG_ENABLE_VF, 0x1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1459
ecore_wr(p_hwfn, p_ptt, TCFC_REG_WEAK_ENABLE_VF, 0x0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1462
ecore_fid_pretend(p_hwfn, p_ptt, p_hwfn->rel_pf_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1473
static void ecore_wr_nw_port(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1480
DP_VERBOSE(p_hwfn, ECORE_MSG_LINK,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1482
ecore_rd(p_hwfn, p_ptt, CNIG_REG_PMEG_IF_CMD_BB) |
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1488
ecore_wr(p_hwfn, p_ptt, CNIG_REG_PMEG_IF_CMD_BB,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1489
(ecore_rd(p_hwfn, p_ptt, CNIG_REG_PMEG_IF_CMD_BB) &
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
149
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1492
ecore_wr(p_hwfn, p_ptt, CNIG_REG_PMEG_IF_ADDR_BB,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1494
ecore_wr(p_hwfn, p_ptt, CNIG_REG_PMEG_IF_WRDATA_BB, data & 0xffffffff);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1495
ecore_wr(p_hwfn, p_ptt, CNIG_REG_PMEG_IF_WRDATA_BB,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
151
p_hwfn->p_dev = p_dev;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1511
static void ecore_emul_link_init_bb(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1514
u8 loopback = 0, port = p_hwfn->port_id * 2;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1516
DP_INFO(p_hwfn->p_dev, "Configurating Emulation Link %02x\n", port);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1518
ecore_wr_nw_port(p_hwfn, p_ptt, XLPORT_MODE_REG,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
152
p_hwfn->my_id = i;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1520
ecore_wr_nw_port(p_hwfn, p_ptt, XLPORT_MAC_CONTROL, 0, 1, port);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1521
ecore_wr_nw_port(p_hwfn, p_ptt, XLMAC_CTRL,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1523
ecore_wr_nw_port(p_hwfn, p_ptt, XLMAC_MODE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1525
ecore_wr_nw_port(p_hwfn, p_ptt, XLMAC_RX_MAX_SIZE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1527
ecore_wr_nw_port(p_hwfn, p_ptt, XLMAC_TX_CTRL,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
153
p_hwfn->b_active = false;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1530
ecore_wr_nw_port(p_hwfn, p_ptt, XLMAC_PAUSE_CTRL,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1532
ecore_wr_nw_port(p_hwfn, p_ptt, XLMAC_PFC_CTRL,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1534
ecore_wr_nw_port(p_hwfn, p_ptt, XLMAC_CTRL, 0x3 | (loopback << 2),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1536
ecore_wr_nw_port(p_hwfn, p_ptt, XLMAC_CTRL, 0x1003 | (loopback << 2),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1538
ecore_wr_nw_port(p_hwfn, p_ptt, XLPORT_FLOW_CONTROL_CONFIG,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1540
ecore_wr_nw_port(p_hwfn, p_ptt, XLPORT_ENABLE_REG,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1544
static void ecore_emul_link_init_ah_e5(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1547
u8 port = p_hwfn->port_id;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
155
OSAL_MUTEX_ALLOC(p_hwfn, &p_hwfn->dmae_info.mutex);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1550
DP_INFO(p_hwfn->p_dev, "Configurating Emulation Link %02x\n", port);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1552
ecore_wr(p_hwfn, p_ptt, CNIG_REG_NIG_PORT0_CONF_K2_E5 + (port << 2),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1558
ecore_wr(p_hwfn, p_ptt, mac_base + ETH_MAC_REG_XIF_MODE_K2_E5,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
156
OSAL_MUTEX_INIT(&p_hwfn->dmae_info.mutex);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1561
ecore_wr(p_hwfn, p_ptt, mac_base + ETH_MAC_REG_FRM_LENGTH_K2_E5,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1564
ecore_wr(p_hwfn, p_ptt, mac_base + ETH_MAC_REG_TX_IPG_LENGTH_K2_E5,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1567
ecore_wr(p_hwfn, p_ptt, mac_base + ETH_MAC_REG_RX_FIFO_SECTIONS_K2_E5,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1570
ecore_wr(p_hwfn, p_ptt, mac_base + ETH_MAC_REG_TX_FIFO_SECTIONS_K2_E5,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1576
ecore_wr(p_hwfn, p_ptt, mac_base + ETH_MAC_REG_COMMAND_CONFIG_K2_E5,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1580
static void ecore_emul_link_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1583
if (ECORE_IS_AH(p_hwfn->p_dev) || ECORE_IS_E5(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1584
ecore_emul_link_init_ah_e5(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1586
ecore_emul_link_init_bb(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1591
static void ecore_link_init_bb(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1599
ecore_wr(p_hwfn, p_ptt, MISC_REG_RESET_PL_PDA_VAUX + 2*sizeof(u32),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1602
ecore_wr(p_hwfn, p_ptt, MISC_REG_RESET_PL_PDA_VAUX + sizeof(u32),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1605
ecore_wr(p_hwfn, p_ptt, MISC_REG_XMAC_CORE_PORT_MODE_BB, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1608
ecore_wr(p_hwfn, p_ptt, MISC_REG_XMAC_PHY_PORT_MODE_BB, 3);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1611
ecore_wr(p_hwfn, p_ptt, MISC_REG_RESET_PL_PDA_VAUX + 2 * sizeof(u32),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1614
ecore_wr(p_hwfn, p_ptt, MISC_REG_RESET_PL_PDA_VAUX + sizeof(u32),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1618
if (CHIP_REV_IS_FPGA(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1619
ecore_wr(p_hwfn, p_ptt, XMAC_REG_MODE_BB + port_offset, 0x20);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1622
ecore_wr(p_hwfn, p_ptt, XMAC_REG_RX_MAX_SIZE_BB + port_offset, 0x2710);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1625
ecore_wr(p_hwfn, p_ptt, XMAC_REG_TX_CTRL_LO_BB + port_offset, 0xC800);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1628
ecore_wr(p_hwfn, p_ptt, XMAC_REG_CTRL_BB + port_offset,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1630
xmac_rxctrl = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1633
ecore_wr(p_hwfn, p_ptt, XMAC_REG_RX_CTRL_BB + port_offset, xmac_rxctrl);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1638
ecore_hw_init_dpi_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
166
static void ecore_qm_info_free(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1676
min_dpis = p_hwfn->pf_params.rdma_pf_params.min_dpis;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
168
struct ecore_qm_info *qm_info = &p_hwfn->qm_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1680
p_hwfn->dpi_size = dpi_page_size;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1681
p_hwfn->dpi_count = dpi_count;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1684
ecore_wr(p_hwfn, p_ptt, DORQ_REG_PF_DPI_BIT_SHIFT, dpi_bit_shift);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1699
ecore_hw_init_pf_doorbell_bar(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
170
OSAL_FREE(p_hwfn->p_dev, qm_info->qm_pq_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1710
db_bar_size = ecore_hw_bar_size(p_hwfn, BAR_ID_1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1711
if (p_hwfn->p_dev->num_hwfns > 1)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
172
OSAL_FREE(p_hwfn->p_dev, qm_info->qm_vport_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1728
non_pwm_conn = ecore_cxt_get_proto_cid_start(p_hwfn, PROTOCOLID_CORE) +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1729
ecore_cxt_get_proto_cid_count(p_hwfn, PROTOCOLID_CORE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1731
ecore_cxt_get_proto_cid_count(p_hwfn, PROTOCOLID_ETH,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1739
DP_ERR(p_hwfn->p_dev, "Doorbell BAR size 0x%x is too small (normal region is 0x%0x )\n", db_bar_size, norm_regsize);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
174
OSAL_FREE(p_hwfn->p_dev, qm_info->qm_port_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1743
DP_ERR(p_hwfn->p_dev, "PWM region size 0x%0x is too small. Should be at least 0x%0x (Doorbell BAR size is 0x%x and normal region size is 0x%0x)\n", pwm_regsize, ECORE_MIN_PWM_REGION, db_bar_size, norm_regsize);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1748
roce_edpm_mode = p_hwfn->pf_params.rdma_pf_params.roce_edpm_mode;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1755
rc = ecore_hw_init_dpi_size(p_hwfn, p_ptt, pwm_regsize, n_cpus);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
176
OSAL_FREE(p_hwfn->p_dev, qm_info->wfq_data);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1761
if (cond || p_hwfn->dcbx_no_edpm) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1767
rc = ecore_hw_init_dpi_size(p_hwfn, p_ptt, pwm_regsize, n_cpus);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1774
ecore_rdma_dpm_bar(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1778
p_hwfn->wid_count = (u16)n_cpus;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1780
DP_INFO(p_hwfn, "doorbell bar: normal_region_size=%d, pwm_region_size=%d, dpi_size=%d, dpi_count=%d, roce_edpm=%s\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1781
norm_regsize, pwm_regsize, p_hwfn->dpi_size, p_hwfn->dpi_count,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1782
((p_hwfn->dcbx_no_edpm) || (p_hwfn->db_bar_no_edpm)) ?
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1787
DP_ERR(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1789
p_hwfn->dpi_count,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1790
p_hwfn->pf_params.rdma_pf_params.min_dpis,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1796
p_hwfn->dpi_start_offset = norm_regsize; /* this is later used to
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1804
ecore_wr(p_hwfn, p_ptt, DORQ_REG_PF_ICID_BIT_SHIFT_NORM, pf_dems_shift);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1805
ecore_wr(p_hwfn, p_ptt, DORQ_REG_PF_MIN_ADDR_REG1, min_addr_reg1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1810
static enum _ecore_status_t ecore_hw_init_port(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1816
rc = ecore_init_run(p_hwfn, p_ptt, PHASE_PORT, p_hwfn->port_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1824
if (IS_MF_DEFAULT(p_hwfn) || IS_MF_SI(p_hwfn)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1827
if (ecore_hw_init_first_eth(p_hwfn, p_ptt, &pf_id) ==
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1829
DP_VERBOSE(p_hwfn, ECORE_MSG_IFUP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1838
if (!ECORE_IS_BB(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1839
pf_id /= p_hwfn->p_dev->num_ports_in_engine;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1841
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1848
ecore_wr(p_hwfn, p_ptt, NIG_REG_LLH_CLS_TYPE_DUALMODE, 0x2);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1852
if (CHIP_REV_IS_ASIC(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1855
if (CHIP_REV_IS_FPGA(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1856
if (ECORE_IS_AH(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1858
else if (ECORE_IS_BB(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1859
ecore_link_init_bb(p_hwfn, p_ptt, p_hwfn->port_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1862
} else if (CHIP_REV_IS_EMUL(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1863
if (p_hwfn->p_dev->num_hwfns > 1) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1867
val = ecore_rd(p_hwfn, p_ptt, MISCS_REG_RESET_PL_HV);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1869
ecore_wr(p_hwfn, p_ptt, MISCS_REG_RESET_PL_HV, val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1870
ecore_wr(p_hwfn, p_ptt, MISC_REG_CLK_100G_MODE, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1871
ecore_wr(p_hwfn, p_ptt, MISCS_REG_CLK_100G_MODE, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1872
ecore_wr(p_hwfn, p_ptt, MISC_REG_OPTE_MODE, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1873
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1875
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1877
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1882
ecore_emul_link_init(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1884
DP_INFO(p_hwfn->p_dev, "link is not being configured\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1891
static enum _ecore_status_t ecore_hw_init_pf(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1899
u8 rel_pf_id = p_hwfn->rel_pf_id;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1905
if (p_hwfn->mcp_info) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1908
p_info = &p_hwfn->mcp_info->func_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1910
p_hwfn->qm_info.pf_wfq = p_info->bandwidth_min;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1913
p_hwfn->qm_info.pf_rl = 100000;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1915
ecore_cxt_hw_init_pf(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1917
ecore_int_igu_init_rt(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1921
DP_VERBOSE(p_hwfn, ECORE_MSG_HW, "Configuring LLH_FUNC_TAG\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1922
STORE_RT_REG(p_hwfn, NIG_REG_LLH_FUNC_TAG_EN_RT_OFFSET, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1923
STORE_RT_REG(p_hwfn, NIG_REG_LLH_FUNC_TAG_VALUE_RT_OFFSET,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1924
p_hwfn->hw_info.ovlan);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1929
DP_VERBOSE(p_hwfn, ECORE_MSG_HW, "Configuring TAGMAC_CLS_TYPE\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1930
STORE_RT_REG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1935
STORE_RT_REG(p_hwfn, PRS_REG_SEARCH_TCP_RT_OFFSET,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1936
(p_hwfn->hw_info.personality == ECORE_PCI_ISCSI) ? 1 : 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1937
STORE_RT_REG(p_hwfn, PRS_REG_SEARCH_FCOE_RT_OFFSET,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1938
(p_hwfn->hw_info.personality == ECORE_PCI_FCOE) ? 1 : 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1939
STORE_RT_REG(p_hwfn, PRS_REG_SEARCH_ROCE_RT_OFFSET, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1942
OSAL_BEFORE_PF_START((void *)p_hwfn->p_dev, p_hwfn->my_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1945
rc = ecore_final_cleanup(p_hwfn, p_ptt, rel_pf_id, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1947
ecore_hw_err_notify(p_hwfn, ECORE_HW_ERR_RAMROD_FAIL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1952
rc = ecore_init_run(p_hwfn, p_ptt, PHASE_PF, rel_pf_id, hw_mode);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1957
rc = ecore_init_run(p_hwfn, p_ptt, PHASE_QM_PF, rel_pf_id, hw_mode);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1962
ecore_int_igu_init_pure_rt(p_hwfn, p_ptt, true, true);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1968
pos = OSAL_PCI_FIND_CAPABILITY(p_hwfn->p_dev, PCI_CAP_ID_EXP);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
197
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1970
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1974
OSAL_PCI_READ_CONFIG_WORD(p_hwfn->p_dev, pos + PCI_EXP_DEVCTL, &ctrl);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1976
OSAL_PCI_WRITE_CONFIG_WORD(p_hwfn->p_dev, pos + PCI_EXP_DEVCTL, ctrl);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1978
rc = ecore_hw_init_pf_doorbell_bar(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1985
if (IS_MF_SI(p_hwfn)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1989
if (ecore_hw_init_first_eth(p_hwfn, p_ptt, &pf_id) ==
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
199
ecore_cxt_mngr_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1991
if (p_hwfn->rel_pf_id == pf_id) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1992
DP_VERBOSE(p_hwfn, ECORE_MSG_IFUP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
1997
ecore_wr(p_hwfn, p_ptt, PRS_REG_MSG_INFO, val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
200
ecore_qm_info_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2003
rc = ecore_int_igu_enable(p_hwfn, p_ptt, int_mode);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2008
rc = ecore_sp_pf_start(p_hwfn, p_tunn, p_hwfn->p_dev->mf_mode,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
201
ecore_spq_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2011
DP_NOTICE(p_hwfn, true, "Function start ramrod failed\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2013
prs_reg = ecore_rd(p_hwfn, p_ptt, PRS_REG_SEARCH_TAG1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2014
DP_VERBOSE(p_hwfn, ECORE_MSG_STORAGE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2017
if (p_hwfn->hw_info.personality == ECORE_PCI_FCOE)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2019
ecore_wr(p_hwfn, p_ptt, PRS_REG_SEARCH_TAG1,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
202
ecore_eq_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2021
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2025
DP_VERBOSE(p_hwfn, ECORE_MSG_STORAGE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2027
prs_reg = ecore_rd(p_hwfn, p_ptt, PRS_REG_SEARCH_TCP);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2028
DP_VERBOSE(p_hwfn, ECORE_MSG_STORAGE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
203
ecore_consq_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2030
prs_reg = ecore_rd(p_hwfn, p_ptt, PRS_REG_SEARCH_UDP);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2031
DP_VERBOSE(p_hwfn, ECORE_MSG_STORAGE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2033
prs_reg = ecore_rd(p_hwfn, p_ptt, PRS_REG_SEARCH_FCOE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2034
DP_VERBOSE(p_hwfn, ECORE_MSG_STORAGE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2036
prs_reg = ecore_rd(p_hwfn, p_ptt, PRS_REG_SEARCH_ROCE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2037
DP_VERBOSE(p_hwfn, ECORE_MSG_STORAGE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2039
prs_reg = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
204
ecore_int_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2041
DP_VERBOSE(p_hwfn, ECORE_MSG_STORAGE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2044
prs_reg = ecore_rd(p_hwfn, p_ptt, PRS_REG_SEARCH_TAG1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2045
DP_VERBOSE(p_hwfn, ECORE_MSG_STORAGE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2052
enum _ecore_status_t ecore_change_pci_hwfn(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2059
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
206
ecore_ll2_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2064
val = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2073
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2081
static void ecore_reset_mb_shadow(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2085
ecore_mcp_read_mb(p_hwfn, p_main_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2086
OSAL_MEMCPY(p_hwfn->mcp_info->mfw_mb_shadow,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2087
p_hwfn->mcp_info->mfw_mb_cur,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2088
p_hwfn->mcp_info->mfw_mb_length);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
209
if (p_hwfn->hw_info.personality == ECORE_PCI_FCOE)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2091
enum _ecore_status_t ecore_vf_start(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2096
ecore_vf_pf_tunnel_param_update(p_hwfn, p_params->p_tunn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2099
p_hwfn->b_int_enabled = 1;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
210
ecore_fcoe_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
213
if (p_hwfn->hw_info.personality == ECORE_PCI_ISCSI) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2133
struct ecore_hwfn *p_hwfn;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
214
ecore_iscsi_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
215
ecore_ooo_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2150
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2153
if (!p_hwfn->hw_info.mtu) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2154
p_hwfn->hw_info.mtu = 1500;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2159
ecore_vf_start(p_hwfn, p_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2164
rc = ecore_change_pci_hwfn(p_hwfn, p_hwfn->p_main_ptt, true);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2168
rc = ecore_calc_hw_mode(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2174
rc = ecore_mcp_load_req(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2177
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2183
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2187
ecore_mcp_set_capabilities(p_hwfn, p_hwfn->p_main_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
219
if (ECORE_IS_RDMA_PERSONALITY(p_hwfn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2199
ecore_reset_mb_shadow(p_hwfn, p_hwfn->p_main_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
220
ecore_rdma_info_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2207
p_hwfn->first_on_engine = (load_code ==
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2217
rc = ecore_hw_init_common(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2218
p_hwfn->hw_info.hw_mode);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
222
ecore_iov_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2223
rc = ecore_hw_init_port(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2224
p_hwfn->hw_info.hw_mode);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2229
rc = ecore_hw_init_pf(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
223
ecore_l2_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2231
p_hwfn->hw_info.hw_mode,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2237
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
224
ecore_dmae_info_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2244
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2249
mfw_rc = ecore_mcp_cmd(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
225
ecore_dcbx_info_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2259
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2266
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2270
DP_VERBOSE(p_hwfn, ECORE_MSG_DCB,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2272
mfw_rc = ecore_mcp_cmd(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2277
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2282
p_hwfn->hw_init_done = true;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2286
p_hwfn = ECORE_LEADING_HWFN(p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2288
rc = ecore_mcp_cmd(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2292
DP_INFO(p_hwfn, "Failed to update firmware version\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2295
rc = ecore_mcp_ov_update_mtu(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2296
p_hwfn->hw_info.mtu);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2298
DP_INFO(p_hwfn, "Failed to update default mtu\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2301
rc = ecore_mcp_ov_update_driver_state(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2302
p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2305
DP_INFO(p_hwfn, "Failed to update driver state\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2307
rc = ecore_mcp_ov_update_eswitch(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2310
DP_INFO(p_hwfn, "Failed to update eswitch mode\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2318
struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2324
ecore_wr(p_hwfn, p_ptt, TM_REG_PF_ENABLE_CONN, 0x0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2325
ecore_wr(p_hwfn, p_ptt, TM_REG_PF_ENABLE_TASK, 0x0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2329
if ((!ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2331
(!ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2344
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2346
(u8)ecore_rd(p_hwfn, p_ptt, TM_REG_PF_SCAN_ACTIVE_CONN),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2347
(u8)ecore_rd(p_hwfn, p_ptt, TM_REG_PF_SCAN_ACTIVE_TASK));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2355
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[j];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2356
struct ecore_ptt *p_ptt = p_hwfn->p_main_ptt;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2358
ecore_hw_timers_stop(p_dev, p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2362
static enum _ecore_status_t ecore_verify_reg_val(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2366
u32 val = ecore_rd(p_hwfn, p_ptt, addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2369
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
237
static u32 ecore_get_pq_flags(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2380
struct ecore_hwfn *p_hwfn;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2386
p_hwfn = &p_dev->hwfns[j];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2387
p_ptt = p_hwfn->p_main_ptt;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2389
DP_VERBOSE(p_hwfn, ECORE_MSG_IFDOWN, "Stopping hw/fw\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2392
ecore_vf_pf_int_cleanup(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2393
rc = ecore_vf_pf_reset(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2395
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2404
p_hwfn->hw_init_done = false;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2408
rc = ecore_mcp_unload_req(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2410
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2417
OSAL_DPC_SYNC(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2423
rc = ecore_sp_pf_stop(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2425
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2432
OSAL_AFTER_PF_STOP((void *)p_dev, p_hwfn->my_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2435
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2439
ecore_wr(p_hwfn, p_ptt, PRS_REG_SEARCH_TCP, 0x0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2440
ecore_wr(p_hwfn, p_ptt, PRS_REG_SEARCH_UDP, 0x0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2441
ecore_wr(p_hwfn, p_ptt, PRS_REG_SEARCH_FCOE, 0x0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2442
ecore_wr(p_hwfn, p_ptt, PRS_REG_SEARCH_ROCE, 0x0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2443
ecore_wr(p_hwfn, p_ptt, PRS_REG_SEARCH_OPENFLOW, 0x0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2448
ecore_hw_timers_stop(p_dev, p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
245
if (IS_ECORE_SRIOV(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2453
ecore_int_igu_disable_int(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2454
ecore_wr(p_hwfn, p_ptt, IGU_REG_LEADING_EDGE_LATCH, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2455
ecore_wr(p_hwfn, p_ptt, IGU_REG_TRAILING_EDGE_LATCH, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2456
ecore_int_igu_init_pure_rt(p_hwfn, p_ptt, false, true);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2457
rc = ecore_int_igu_reset_cam_default(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2459
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2468
ecore_verify_reg_val(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
247
if (IS_ECORE_DCQCN(p_hwfn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2470
ecore_verify_reg_val(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2476
ecore_wr(p_hwfn, p_ptt, DORQ_REG_PF_DB_ENABLE, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2477
ecore_wr(p_hwfn, p_ptt, QM_REG_PF_EN, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2480
ecore_mcp_unload_done(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2482
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2491
p_hwfn = ECORE_LEADING_HWFN(p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2498
rc = ecore_change_pci_hwfn(p_hwfn, p_ptt, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2500
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
251
switch (p_hwfn->hw_info.personality) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2515
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[j];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2516
struct ecore_ptt *p_ptt = p_hwfn->p_main_ptt;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2519
ecore_vf_pf_int_cleanup(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2523
DP_VERBOSE(p_hwfn, ECORE_MSG_IFDOWN, "Shutting down the fastpath\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2525
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2528
ecore_wr(p_hwfn, p_ptt, PRS_REG_SEARCH_TCP, 0x0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2529
ecore_wr(p_hwfn, p_ptt, PRS_REG_SEARCH_UDP, 0x0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2530
ecore_wr(p_hwfn, p_ptt, PRS_REG_SEARCH_FCOE, 0x0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2531
ecore_wr(p_hwfn, p_ptt, PRS_REG_SEARCH_ROCE, 0x0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2532
ecore_wr(p_hwfn, p_ptt, PRS_REG_SEARCH_OPENFLOW, 0x0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2539
ecore_int_igu_init_pure_rt(p_hwfn, p_ptt, false, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2545
void ecore_hw_start_fastpath(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2547
struct ecore_ptt *p_ptt = p_hwfn->p_main_ptt;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2549
if (IS_VF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2555
if (p_hwfn->p_rdma_info) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2556
if (p_hwfn->b_rdma_enabled_in_prs)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2557
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2558
p_hwfn->rdma_prs_search_reg, 0x1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2559
ecore_wr(p_hwfn, p_ptt, TM_REG_PF_ENABLE_CONN, 0x1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2563
ecore_wr(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
268
DP_ERR(p_hwfn, "unknown personality %d\n", p_hwfn->hw_info.personality);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2722
static void ecore_hw_hwfn_free(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2724
ecore_ptt_pool_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2725
OSAL_FREE(p_hwfn->p_dev, p_hwfn->hw_info.p_igu_info);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2726
p_hwfn->hw_info.p_igu_info = OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2730
static void ecore_hw_hwfn_prepare(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2733
if (ECORE_IS_AH(p_hwfn->p_dev) || ECORE_IS_E5(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2734
ecore_wr(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2736
ecore_wr(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2738
ecore_wr(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2740
ecore_wr(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2743
ecore_wr(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2745
ecore_wr(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2747
ecore_wr(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2749
ecore_wr(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2754
ecore_wr(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2756
1 << p_hwfn->abs_pf_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2759
ecore_wr(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2763
static void get_function_id(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2766
p_hwfn->hw_info.opaque_fid = (u16) REG_RD(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2769
p_hwfn->hw_info.concrete_fid = REG_RD(p_hwfn, PXP_PF_ME_CONCRETE_ADDR);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
277
u8 ecore_init_qm_get_num_tcs(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2772
p_hwfn->abs_pf_id = (p_hwfn->hw_info.concrete_fid >> 16) & 0xf;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2773
p_hwfn->rel_pf_id = GET_FIELD(p_hwfn->hw_info.concrete_fid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2775
p_hwfn->port_id = GET_FIELD(p_hwfn->hw_info.concrete_fid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2778
DP_VERBOSE(p_hwfn, ECORE_MSG_PROBE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2780
p_hwfn->hw_info.concrete_fid, p_hwfn->hw_info.opaque_fid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2783
void ecore_hw_set_feat(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2785
u32 *feat_num = p_hwfn->hw_info.feat_num;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
279
return p_hwfn->hw_info.num_hw_tc;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2790
ecore_int_get_num_sbs(p_hwfn, &sb_cnt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2797
if (ECORE_IS_RDMA_PERSONALITY(p_hwfn)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2803
RESC_NUM(p_hwfn, ECORE_RDMA_CNQ_RAM));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2806
max_cnqs = (u32)p_hwfn->pf_params.rdma_pf_params.max_cnqs;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
282
u16 ecore_init_qm_get_num_vfs(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2821
if (ECORE_IS_L2_PERSONALITY(p_hwfn)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2825
RESC_NUM(p_hwfn, ECORE_L2_QUEUE),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2830
RESC_NUM(p_hwfn, ECORE_L2_QUEUE) -
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2831
FEAT_NUM(p_hwfn, ECORE_VF_L2_QUE));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2834
if (ECORE_IS_FCOE_PERSONALITY(p_hwfn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2836
OSAL_MIN_T(u32, sb_cnt.cnt, RESC_NUM(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2839
if (ECORE_IS_ISCSI_PERSONALITY(p_hwfn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
284
return IS_ECORE_SRIOV(p_hwfn->p_dev) ? p_hwfn->p_dev->p_iov_info->total_vfs : 0;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2841
OSAL_MIN_T(u32, sb_cnt.cnt, RESC_NUM(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2844
DP_VERBOSE(p_hwfn, ECORE_MSG_PROBE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2846
(int)FEAT_NUM(p_hwfn, ECORE_PF_L2_QUE),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2847
(int)FEAT_NUM(p_hwfn, ECORE_VF_L2_QUE),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2848
(int)FEAT_NUM(p_hwfn, ECORE_RDMA_CNQ),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2849
(int)FEAT_NUM(p_hwfn, ECORE_FCOE_CQ),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2850
(int)FEAT_NUM(p_hwfn, ECORE_ISCSI_CQ),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
289
u16 ecore_init_qm_get_num_pf_rls(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2891
__ecore_hw_set_soft_resc_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2897
rc = ecore_mcp_set_resc_max_val(p_hwfn, p_hwfn->p_main_ptt, res_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2900
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2907
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
291
u16 num_pf_rls, num_vfs = ecore_init_qm_get_num_vfs(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2915
ecore_hw_set_soft_resc_size(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2917
bool b_ah = ECORE_IS_AH(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
294
num_pf_rls = (u16)OSAL_MIN_T(u32, RESC_NUM(p_hwfn, ECORE_RL),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2944
rc = __ecore_hw_set_soft_resc_size(p_hwfn, res_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
295
(u16)OSAL_MIN_T(u32, RESC_NUM(p_hwfn, ECORE_VPORT),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2963
enum _ecore_status_t ecore_hw_get_dflt_resc(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2967
u8 num_funcs = p_hwfn->num_funcs_on_engine;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
2968
bool b_ah = ECORE_IS_AH(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
300
if (IS_ECORE_DCQCN(p_hwfn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
301
DP_NOTICE(p_hwfn, false, "no rate limiters left for PF rate limiting [num_pf_rls %d num_vfs %d]\n", num_pf_rls, num_vfs);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3014
if (p_hwfn->hw_info.personality != ECORE_PCI_ISCSI &&
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3015
p_hwfn->hw_info.personality != ECORE_PCI_FCOE)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3034
else if (p_hwfn->p_dev->num_ports_in_engine == 4)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3035
*p_resc_start = p_hwfn->port_id;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3036
else if (p_hwfn->hw_info.personality == ECORE_PCI_ISCSI)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3037
*p_resc_start = p_hwfn->port_id;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3038
else if (p_hwfn->hw_info.personality == ECORE_PCI_FCOE)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3039
*p_resc_start = p_hwfn->port_id + 2;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3042
*p_resc_start = *p_resc_num * p_hwfn->enabled_func_idx;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3050
__ecore_hw_set_resc_info(struct ecore_hwfn *p_hwfn, enum ecore_resources res_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3057
p_resc_num = &RESC_NUM(p_hwfn, res_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3058
p_resc_start = &RESC_START(p_hwfn, res_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3060
rc = ecore_hw_get_dflt_resc(p_hwfn, res_id, &dflt_resc_num,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3063
DP_ERR(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3070
if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3077
rc = ecore_mcp_get_resc_info(p_hwfn, p_hwfn->p_main_ptt, res_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3080
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3092
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3104
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
311
u16 ecore_init_qm_get_num_vports(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3120
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
313
u32 pq_flags = ecore_get_pq_flags(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3131
static enum _ecore_status_t ecore_hw_set_resc_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3138
rc = __ecore_hw_set_resc_info(p_hwfn, res_id, drv_resc_alloc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3149
static enum _ecore_status_t ecore_hw_get_resc(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3154
bool b_ah = ECORE_IS_AH(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3158
u32 *resc_start = p_hwfn->hw_info.resc_start;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3159
u32 *resc_num = p_hwfn->hw_info.resc_num;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
316
return (!!(PQ_FLAGS_RLS & pq_flags)) * ecore_init_qm_get_num_pf_rls(p_hwfn) +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
317
(!!(PQ_FLAGS_VFS & pq_flags)) * ecore_init_qm_get_num_vfs(p_hwfn) + 1;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3187
rc = ecore_mcp_resc_lock(p_hwfn, p_hwfn->p_main_ptt, &resc_lock_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3191
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3194
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3198
rc = ecore_hw_set_soft_resc_size(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3200
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3204
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3206
rc = ecore_mcp_resc_unlock(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3209
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
321
u16 ecore_init_qm_get_num_pqs(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3214
rc = ecore_hw_set_resc_info(p_hwfn, drv_resc_alloc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3219
rc = ecore_mcp_resc_unlock(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3222
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3227
if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3229
if (!(p_hwfn->p_dev->b_is_emul_full)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
323
u32 pq_flags = ecore_get_pq_flags(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3232
p_hwfn->enabled_func_idx;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3240
if (!p_hwfn->rel_pf_id && p_hwfn->p_dev->b_is_emul_full)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3247
if (CHIP_REV_IS_SLOW(p_hwfn->p_dev) &&
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3248
p_hwfn->p_dev->b_is_emul_full &&
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3249
p_hwfn->rel_pf_id &&
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
325
return (!!(PQ_FLAGS_RLS & pq_flags)) * ecore_init_qm_get_num_pf_rls(p_hwfn) +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3256
if ((b_ah && (RESC_END(p_hwfn, ECORE_ILT) > PXP_NUM_ILT_RECORDS_K2)) ||
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3257
(!b_ah && (RESC_END(p_hwfn, ECORE_ILT) > PXP_NUM_ILT_RECORDS_BB))) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3258
DP_NOTICE(p_hwfn, true, "Can't assign ILT pages [%08x,...,%08x]\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3259
RESC_START(p_hwfn, ECORE_ILT),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
326
(!!(PQ_FLAGS_MCOS & pq_flags)) * ecore_init_qm_get_num_tcs(p_hwfn) +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3260
RESC_END(p_hwfn, ECORE_ILT) - 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3265
if (ecore_int_igu_reset_cam(p_hwfn, p_hwfn->p_main_ptt))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3268
ecore_hw_set_feat(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3270
DP_VERBOSE(p_hwfn, ECORE_MSG_PROBE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3273
DP_VERBOSE(p_hwfn, ECORE_MSG_PROBE, "%s = %d start = %d\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3275
RESC_NUM(p_hwfn, res_id),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3276
RESC_START(p_hwfn, res_id));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3282
ecore_mcp_resc_unlock(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3288
ecore_hw_get_nvm_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3299
nvm_cfg_addr = ecore_rd(p_hwfn, p_ptt, MISC_REG_GEN_PURP_CR0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3303
DP_NOTICE(p_hwfn, false, "Shared memory not initialized\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3310
nvm_cfg1_offset = ecore_rd(p_hwfn, p_ptt, nvm_cfg_addr + 4);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3316
core_cfg = ecore_rd(p_hwfn, p_ptt, addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
332
(!!(PQ_FLAGS_VFS & pq_flags)) * ecore_init_qm_get_num_vfs(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3321
p_hwfn->hw_info.port_mode = ECORE_PORT_MODE_DE_2X40G;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3324
p_hwfn->hw_info.port_mode = ECORE_PORT_MODE_DE_2X50G;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3327
p_hwfn->hw_info.port_mode = ECORE_PORT_MODE_DE_1X100G;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3330
p_hwfn->hw_info.port_mode = ECORE_PORT_MODE_DE_4X10G_F;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3333
p_hwfn->hw_info.port_mode = ECORE_PORT_MODE_DE_4X10G_E;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3336
p_hwfn->hw_info.port_mode = ECORE_PORT_MODE_DE_4X20G;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3339
p_hwfn->hw_info.port_mode = ECORE_PORT_MODE_DE_1X40G;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3342
p_hwfn->hw_info.port_mode = ECORE_PORT_MODE_DE_2X25G;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3345
p_hwfn->hw_info.port_mode = ECORE_PORT_MODE_DE_2X10G;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3348
p_hwfn->hw_info.port_mode = ECORE_PORT_MODE_DE_1X25G;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3351
p_hwfn->hw_info.port_mode = ECORE_PORT_MODE_DE_4X25G;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3354
DP_NOTICE(p_hwfn, true, "Unknown port mode in 0x%08x\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
336
static void ecore_init_qm_params(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3361
offsetof(struct nvm_cfg1, port[MFW_PORT(p_hwfn)]);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3362
dcbx_mode = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3369
p_hwfn->hw_info.dcbx_mode = ECORE_DCBX_VERSION_DYNAMIC;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3372
p_hwfn->hw_info.dcbx_mode = ECORE_DCBX_VERSION_CEE;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3375
p_hwfn->hw_info.dcbx_mode = ECORE_DCBX_VERSION_IEEE;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3378
p_hwfn->hw_info.dcbx_mode = ECORE_DCBX_VERSION_DISABLED;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
338
struct ecore_qm_info *qm_info = &p_hwfn->qm_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3382
link = &p_hwfn->mcp_info->link_input;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3383
p_caps = &p_hwfn->mcp_info->link_capabilities;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3385
offsetof(struct nvm_cfg1, port[MFW_PORT(p_hwfn)]);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3386
link_temp = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3393
link_temp = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
342
qm_info->start_pq = (u16)RESC_START(p_hwfn, ECORE_PQ);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3420
DP_NOTICE(p_hwfn, true, "Unknown Speed in 0x%08x\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
343
qm_info->start_vport = (u8)RESC_START(p_hwfn, ECORE_VPORT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3437
if (p_hwfn->mcp_info->capabilities & FW_MB_PARAM_FEATURE_SUPPORT_EEE) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3438
link_temp = ecore_rd(p_hwfn, p_ptt, port_cfg_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3469
DP_VERBOSE(p_hwfn, ECORE_MSG_LINK,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3480
generic_cont0 = ecore_rd(p_hwfn, p_ptt, addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3487
p_hwfn->p_dev->mf_mode = ECORE_MF_OVLAN;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3490
p_hwfn->p_dev->mf_mode = ECORE_MF_NPAR;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3493
p_hwfn->p_dev->mf_mode = ECORE_MF_DEFAULT;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3496
DP_INFO(p_hwfn, "Multi function mode is %08x\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3497
p_hwfn->p_dev->mf_mode);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
350
four_port = p_hwfn->p_dev->num_ports_in_engine == MAX_NUM_PORTS_K2;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3504
device_capabilities = ecore_rd(p_hwfn, p_ptt, addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3507
&p_hwfn->hw_info.device_capabilities);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3510
&p_hwfn->hw_info.device_capabilities);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3513
&p_hwfn->hw_info.device_capabilities);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3516
&p_hwfn->hw_info.device_capabilities);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3519
&p_hwfn->hw_info.device_capabilities);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3521
rc = ecore_mcp_fill_shmem_func_info(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3530
static void ecore_get_num_funcs(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3533
u8 num_funcs, enabled_func_idx = p_hwfn->rel_pf_id;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3535
struct ecore_dev *p_dev = p_hwfn->p_dev;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3548
reg_function_hide = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3557
if (ECORE_PATH_ID(p_hwfn) && p_dev->num_hwfns == 1) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3578
low_pfs_mask = (0x1 << p_hwfn->abs_pf_id) - 1;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3587
p_hwfn->num_funcs_on_engine = num_funcs;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3588
p_hwfn->enabled_func_idx = enabled_func_idx;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3592
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3594
p_hwfn->num_funcs_on_engine = 4;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3598
DP_VERBOSE(p_hwfn, ECORE_MSG_PROBE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3600
p_hwfn->rel_pf_id, p_hwfn->abs_pf_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3601
p_hwfn->enabled_func_idx, p_hwfn->num_funcs_on_engine);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3604
static void ecore_hw_info_port_num_bb(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
361
static void ecore_init_qm_vport_params(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3611
if (CHIP_REV_IS_FPGA(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3613
else if (CHIP_REV_IS_EMUL(p_hwfn->p_dev) &&
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3614
(p_hwfn->p_dev->num_hwfns > 1))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3619
port_mode = ecore_rd(p_hwfn, p_ptt, CNIG_REG_NW_PORT_MODE_BB);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3622
p_hwfn->p_dev->num_ports_in_engine = 1;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3624
p_hwfn->p_dev->num_ports_in_engine = 2;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3626
DP_NOTICE(p_hwfn, true, "PORT MODE: %d not supported\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3627
p_hwfn->p_dev->num_ports_in_engine);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
363
struct ecore_qm_info *qm_info = &p_hwfn->qm_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3630
p_hwfn->p_dev->num_ports_in_engine = 1;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3634
static void ecore_hw_info_port_num_ah_e5(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3640
p_hwfn->p_dev->num_ports_in_engine = 0;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3643
if (CHIP_REV_IS_EMUL(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3644
port = ecore_rd(p_hwfn, p_ptt, MISCS_REG_ECO_RESERVED);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3647
p_hwfn->p_dev->num_ports_in_engine = 1;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3650
p_hwfn->p_dev->num_ports_in_engine = 2;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3653
p_hwfn->p_dev->num_ports_in_engine = 4;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3656
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3663
port = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3666
p_hwfn->p_dev->num_ports_in_engine++;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3669
if (!p_hwfn->p_dev->num_ports_in_engine) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
367
for (i = 0; i < ecore_init_qm_get_num_vports(p_hwfn); i++)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3670
DP_NOTICE(p_hwfn, true, "All NIG ports are inactive\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3673
p_hwfn->p_dev->num_ports_in_engine = 1;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3677
static void ecore_hw_info_port_num(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3680
if (ECORE_IS_BB(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3681
ecore_hw_info_port_num_bb(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3683
ecore_hw_info_port_num_ah_e5(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3687
ecore_get_hw_info(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3695
if (IS_LEAD_HWFN(p_hwfn)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3696
rc = ecore_iov_hw_info(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3713
ecore_hw_info_port_num(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3715
ecore_mcp_get_capabilities(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3718
if (CHIP_REV_IS_ASIC(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
372
static void ecore_init_qm_port_params(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3720
rc = ecore_hw_get_nvm_info(p_hwfn, p_ptt, p_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3727
rc = ecore_int_igu_read_cam(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3736
if (CHIP_REV_IS_ASIC(p_hwfn->p_dev) && ecore_mcp_is_init(p_hwfn)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3738
OSAL_MEMCPY(p_hwfn->hw_info.hw_mac_addr,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3739
p_hwfn->mcp_info->func_info.mac, ETH_ALEN);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3744
OSAL_MEMCPY(p_hwfn->hw_info.hw_mac_addr, mcp_hw_mac, ETH_ALEN);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3745
p_hwfn->hw_info.hw_mac_addr[5] = p_hwfn->abs_pf_id;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3749
if (ecore_mcp_is_init(p_hwfn)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
375
u8 i, active_phys_tcs, num_ports = p_hwfn->p_dev->num_ports_in_engine;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3750
if (p_hwfn->mcp_info->func_info.ovlan != ECORE_MCP_VLAN_UNSET)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3751
p_hwfn->hw_info.ovlan =
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3752
p_hwfn->mcp_info->func_info.ovlan;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3754
ecore_mcp_cmd_port_init(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3758
p_hwfn->hw_info.personality = personality;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3759
} else if (ecore_mcp_is_init(p_hwfn)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3762
protocol = p_hwfn->mcp_info->func_info.protocol;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3763
p_hwfn->hw_info.personality = protocol;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3770
if (CHIP_REV_IS_EMUL(p_hwfn->p_dev) && ECORE_IS_AH(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3771
if (!p_hwfn->rel_pf_id)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3772
p_hwfn->hw_info.personality = ECORE_PCI_ETH_ROCE;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3774
p_hwfn->hw_info.personality = ECORE_PCI_ETH;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3782
p_hwfn->hw_info.num_hw_tc = NUM_PHYS_TCS_4PORT_K2;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3787
p_hwfn->hw_info.num_active_tc = 1;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3789
ecore_get_num_funcs(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3791
if (ecore_mcp_is_init(p_hwfn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3792
p_hwfn->hw_info.mtu = p_hwfn->mcp_info->func_info.mtu;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3800
rc = ecore_hw_get_resc(p_hwfn, drv_resc_alloc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3811
struct ecore_hwfn *p_hwfn = ECORE_LEADING_HWFN(p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
383
&p_hwfn->qm_info.qm_port_params[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3831
DP_NOTICE(p_hwfn, true, "Unknown device id 0x%x\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3836
p_dev->chip_num = (u16)ecore_rd(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3838
p_dev->chip_rev = (u16)ecore_rd(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3844
tmp = ecore_rd(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3847
if (tmp & (1 << p_hwfn->rel_pf_id)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3864
p_dev->chip_bond_id = ecore_rd(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3867
p_dev->chip_metal = (u16)ecore_rd(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3885
ecore_wr(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3889
tmp = ecore_rd(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3892
DP_NOTICE(p_hwfn, false, "Emulation: Running on a FULL build\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3895
DP_NOTICE(p_hwfn, false, "Emulation: Running on a REDUCED build\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3912
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[j];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3914
DP_VERBOSE(p_hwfn, ECORE_MSG_IFDOWN, "Mark hw/fw uninitialized\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3916
p_hwfn->hw_init_done = false;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3917
p_hwfn->first_on_engine = false;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3919
ecore_ptt_invalidate(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3931
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[j];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3932
struct ecore_ptt *p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3934
ecore_hw_hwfn_prepare(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3937
DP_NOTICE(p_hwfn, true, "ptt acquire failed\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3939
ecore_load_mcp_offsets(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3940
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3942
DP_VERBOSE(p_hwfn, ECORE_MSG_IFUP, "Reinitialized hw after low power state\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3948
static enum _ecore_status_t ecore_hw_prepare_single(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3954
struct ecore_dev *p_dev = p_hwfn->p_dev;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3959
p_hwfn->regview = p_regview;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3960
p_hwfn->doorbells = p_doorbells;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3963
return ecore_vf_hw_prepare(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3966
if (REG_RD(p_hwfn, PXP_PF_ME_OPAQUE_ADDR) == 0xffffffff) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3967
DP_ERR(p_hwfn, "Reading the ME register returns all Fs; Preventing further chip access\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3973
get_function_id(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3976
rc = ecore_ptt_pool_alloc(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3978
DP_NOTICE(p_hwfn, true, "Failed to prepare hwfn's hw\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
398
static void ecore_init_qm_reset_params(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3985
p_hwfn->p_main_ptt = ecore_get_reserved_ptt(p_hwfn, RESERVED_PTT_MAIN);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3988
if (!p_hwfn->my_id) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3998
ecore_hw_hwfn_prepare(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
400
struct ecore_qm_info *qm_info = &p_hwfn->qm_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4001
rc = ecore_mcp_cmd_init(p_hwfn, p_hwfn->p_main_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4003
DP_NOTICE(p_hwfn, true, "Failed initializing mcp command\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4010
rc = ecore_get_hw_info(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4013
DP_NOTICE(p_hwfn, true, "Failed to get HW information\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4020
if (p_params->initiate_pf_flr && p_hwfn == ECORE_LEADING_HWFN(p_dev) &&
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4022
rc = ecore_mcp_initiate_pf_flr(p_hwfn, p_hwfn->p_main_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4024
DP_NOTICE(p_hwfn, false, "Failed to initiate PF FLR\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4028
if (p_hwfn == ECORE_LEADING_HWFN(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4029
rc = ecore_mcp_mdump_get_info(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4032
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4035
rc = ecore_mcp_mdump_get_retain(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4038
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4043
ecore_mcp_mdump_set_values(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4048
rc = ecore_init_alloc(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4050
DP_NOTICE(p_hwfn, true, "Failed to allocate the init array\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4058
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4060
ecore_wr(p_hwfn, p_hwfn->p_main_ptt, PCIE_REG_PRTY_MASK_K2_E5,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4063
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4065
ecore_wr(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4072
if (IS_LEAD_HWFN(p_hwfn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4074
ecore_mcp_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4076
ecore_hw_hwfn_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4084
struct ecore_hwfn *p_hwfn = ECORE_LEADING_HWFN(p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4098
rc = ecore_hw_prepare_single(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4104
p_params->personality = p_hwfn->hw_info.personality;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
411
static void ecore_init_qm_advance_vport(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4113
ecore_hw_bar_size(p_hwfn, BAR_ID_0) / 2;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4117
ecore_hw_bar_size(p_hwfn, BAR_ID_1) / 2;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
413
struct ecore_qm_info *qm_info = &p_hwfn->qm_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4133
ecore_init_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4134
ecore_mcp_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4135
ecore_hw_hwfn_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4148
struct ecore_hwfn *p_hwfn = ECORE_LEADING_HWFN(p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4152
ecore_mcp_ov_update_driver_state(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4156
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4159
ecore_vf_pf_release(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4163
ecore_init_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4164
ecore_hw_hwfn_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4165
ecore_mcp_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4167
OSAL_MUTEX_DEALLOC(&p_hwfn->dmae_info.mutex);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
417
if (qm_info->num_vports > ecore_init_qm_get_num_vports(p_hwfn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
418
DP_ERR(p_hwfn, "vport overflow! qm_info->num_vports %d, qm_init_get_num_vports() %d\n", qm_info->num_vports, ecore_init_qm_get_num_vports(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
434
#define PQ_INIT_OFLD_TC (p_hwfn->hw_info.offload_tc)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
436
static void ecore_init_qm_pq(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
440
u16 pq_idx = qm_info->num_pqs, max_pq = ecore_init_qm_get_num_pqs(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
443
DP_ERR(p_hwfn, "pq overflow! pq %d, max pq %d\n", pq_idx, max_pq);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4460
enum _ecore_status_t ecore_fw_l2_queue(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4463
if (src_id >= RESC_NUM(p_hwfn, ECORE_L2_QUEUE)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4466
min = (u16)RESC_START(p_hwfn, ECORE_L2_QUEUE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4467
max = min + RESC_NUM(p_hwfn, ECORE_L2_QUEUE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4468
DP_NOTICE(p_hwfn, true, "l2_queue id [%d] is not valid, available indices [%d - %d]\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4474
*dst_id = RESC_START(p_hwfn, ECORE_L2_QUEUE) + src_id;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4479
enum _ecore_status_t ecore_fw_vport(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4482
if (src_id >= RESC_NUM(p_hwfn, ECORE_VPORT)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4485
min = (u8)RESC_START(p_hwfn, ECORE_VPORT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4486
max = min + RESC_NUM(p_hwfn, ECORE_VPORT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4487
DP_NOTICE(p_hwfn, true, "vport id [%d] is not valid, available indices [%d - %d]\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4493
*dst_id = RESC_START(p_hwfn, ECORE_VPORT) + src_id;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4498
enum _ecore_status_t ecore_fw_rss_eng(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4501
if (src_id >= RESC_NUM(p_hwfn, ECORE_RSS_ENG)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4504
min = (u8)RESC_START(p_hwfn, ECORE_RSS_ENG);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4505
max = min + RESC_NUM(p_hwfn, ECORE_RSS_ENG);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4506
DP_NOTICE(p_hwfn, true, "rss_eng id [%d] is not valid, available indices [%d - %d]\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4512
*dst_id = RESC_START(p_hwfn, ECORE_RSS_ENG) + src_id;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4518
ecore_llh_add_mac_filter_bb_ah(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4527
en = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4532
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4535
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4538
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4541
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4544
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4559
ecore_llh_add_mac_filter_e5(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4567
enum _ecore_status_t ecore_llh_add_mac_filter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4573
if (!(IS_MF_SI(p_hwfn) || IS_MF_DEFAULT(p_hwfn)))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4580
if (ECORE_IS_BB(p_hwfn->p_dev) || ECORE_IS_AH(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4581
rc = ecore_llh_add_mac_filter_bb_ah(p_hwfn, p_ptt, high, low,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4584
rc = ecore_llh_add_mac_filter_e5(p_hwfn, p_ptt, high, low,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4587
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4592
DP_VERBOSE(p_hwfn, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
460
if (qm_info->num_vports > ecore_init_qm_get_num_vports(p_hwfn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4601
ecore_llh_remove_mac_filter_bb_ah(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4609
if (ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
461
DP_ERR(p_hwfn, "vport overflow! qm_info->num_vports %d, qm_init_get_num_vports() %d\n", qm_info->num_vports, ecore_init_qm_get_num_vports(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4613
if (ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4618
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4620
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4623
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
463
if (qm_info->num_pf_rls > ecore_init_qm_get_num_pf_rls(p_hwfn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4638
ecore_llh_remove_mac_filter_e5(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
464
DP_ERR(p_hwfn, "rl overflow! qm_info->num_pf_rls %d, qm_init_get_num_pf_rls() %d\n", qm_info->num_pf_rls, ecore_init_qm_get_num_pf_rls(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4647
void ecore_llh_remove_mac_filter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4653
if (!(IS_MF_SI(p_hwfn) || IS_MF_DEFAULT(p_hwfn)))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4660
if (ECORE_IS_BB(p_hwfn->p_dev) || ECORE_IS_AH(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4661
rc = ecore_llh_remove_mac_filter_bb_ah(p_hwfn, p_ptt, high,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4664
rc = ecore_llh_remove_mac_filter_e5(p_hwfn, p_ptt, high, low,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4667
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4674
DP_VERBOSE(p_hwfn, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
468
static u16 *ecore_init_qm_get_idx_from_flags(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4681
ecore_llh_add_protocol_filter_bb_ah(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4691
en = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4696
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4699
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4702
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4705
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4708
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
471
struct ecore_qm_info *qm_info = &p_hwfn->qm_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4722
ecore_llh_add_protocol_filter_e5(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4733
ecore_llh_add_protocol_filter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4742
if (!(IS_MF_SI(p_hwfn) || IS_MF_DEFAULT(p_hwfn)))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4764
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4769
if (ECORE_IS_BB(p_hwfn->p_dev) || ECORE_IS_AH(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4770
rc = ecore_llh_add_protocol_filter_bb_ah(p_hwfn, p_ptt, type,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4773
rc = ecore_llh_add_protocol_filter_e5(p_hwfn, p_ptt, type, high,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4776
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4783
DP_VERBOSE(p_hwfn, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4788
DP_VERBOSE(p_hwfn, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4793
DP_VERBOSE(p_hwfn, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4798
DP_VERBOSE(p_hwfn, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4803
DP_VERBOSE(p_hwfn, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4808
DP_VERBOSE(p_hwfn, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4813
DP_VERBOSE(p_hwfn, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4823
ecore_llh_remove_protocol_filter_bb_ah(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4832
if (!ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4836
if (!ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4840
if (!(ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4844
if (ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4848
if (ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4853
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4855
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4858
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4861
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4864
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4879
ecore_llh_remove_protocol_filter_e5(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4890
ecore_llh_remove_protocol_filter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4899
if (!(IS_MF_SI(p_hwfn) || IS_MF_DEFAULT(p_hwfn)))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4921
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4926
if (ECORE_IS_BB(p_hwfn->p_dev) || ECORE_IS_AH(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4927
rc = ecore_llh_remove_protocol_filter_bb_ah(p_hwfn, p_ptt, type,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4931
rc = ecore_llh_remove_protocol_filter_e5(p_hwfn, p_ptt, type,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4934
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4940
DP_VERBOSE(p_hwfn, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4945
static void ecore_llh_clear_all_filters_bb_ah(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4951
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4954
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4957
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4963
static void ecore_llh_clear_all_filters_e5(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4969
void ecore_llh_clear_all_filters(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4972
if (!(IS_MF_SI(p_hwfn) || IS_MF_DEFAULT(p_hwfn)))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4975
if (ECORE_IS_BB(p_hwfn->p_dev) || ECORE_IS_AH(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4976
ecore_llh_clear_all_filters_bb_ah(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4978
ecore_llh_clear_all_filters_e5(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4982
ecore_llh_set_function_as_default(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4985
if (IS_MF_DEFAULT(p_hwfn) && ECORE_IS_BB(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4986
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4988
1 << p_hwfn->abs_pf_id / 2);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4989
ecore_wr(p_hwfn, p_ptt, PRS_REG_MSG_INFO, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
499
DP_ERR(p_hwfn, "BAD pq flags %d\n", pq_flags);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4992
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
4998
static enum _ecore_status_t ecore_set_coalesce(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5006
if (p_hwfn->p_dev->int_coalescing_mode != ECORE_COAL_MODE_ENABLE) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5007
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5016
ecore_memcpy_to(p_hwfn, p_ptt, hw_addr, p_eth_qzone, eth_qzone_size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5021
enum _ecore_status_t ecore_set_queue_coalesce(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5034
if (IS_VF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5035
return ecore_vf_pf_set_coalesce(p_hwfn, rx_coal,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5038
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
504
static void ecore_init_qm_set_idx(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5043
rc = ecore_set_rxq_coalesce(p_hwfn, p_ptt, rx_coal, p_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5046
p_hwfn->p_dev->rx_coalesce_usecs = rx_coal;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5050
rc = ecore_set_txq_coalesce(p_hwfn, p_ptt, tx_coal, p_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5053
p_hwfn->p_dev->tx_coalesce_usecs = tx_coal;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5056
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5061
enum _ecore_status_t ecore_set_rxq_coalesce(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
507
u16 *base_pq_idx = ecore_init_qm_get_idx_from_flags(p_hwfn, pq_flags);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5079
DP_ERR(p_hwfn, "Invalid coalesce value - %d\n", coalesce);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5084
rc = ecore_int_set_timer_res(p_hwfn, p_ptt, timer_res,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
509
*base_pq_idx = p_hwfn->qm_info.start_pq + pq_val;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5092
rc = ecore_set_coalesce(p_hwfn, p_ptt, address, ð_qzone,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5101
enum _ecore_status_t ecore_set_txq_coalesce(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5119
DP_ERR(p_hwfn, "Invalid coalesce value - %d\n", coalesce);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5124
rc = ecore_int_set_timer_res(p_hwfn, p_ptt, timer_res,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
513
u16 ecore_get_cm_pq_idx(struct ecore_hwfn *p_hwfn, u32 pq_flags)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5132
rc = ecore_set_coalesce(p_hwfn, p_ptt, address, ð_qzone,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5142
static void ecore_configure_wfq_for_all_vports(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5149
vport_params = p_hwfn->qm_info.qm_vport_params;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
515
u16 *base_pq_idx = ecore_init_qm_get_idx_from_flags(p_hwfn, pq_flags);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5151
for (i = 0; i < p_hwfn->qm_info.num_vports; i++) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5152
u32 wfq_speed = p_hwfn->qm_info.wfq_data[i].min_speed;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5156
ecore_init_vport_wfq(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5163
ecore_init_wfq_default_param(struct ecore_hwfn *p_hwfn, u32 min_pf_rate)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5168
for (i = 0; i < p_hwfn->qm_info.num_vports; i++)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5169
p_hwfn->qm_info.qm_vport_params[i].vport_wfq = 1;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5172
static void ecore_disable_wfq_for_all_vports(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5179
vport_params = p_hwfn->qm_info.qm_vport_params;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5181
for (i = 0; i < p_hwfn->qm_info.num_vports; i++) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5182
ecore_init_wfq_default_param(p_hwfn, min_pf_rate);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5183
ecore_init_vport_wfq(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5196
static enum _ecore_status_t ecore_init_wfq_param(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
520
u16 ecore_get_cm_pq_idx_mcos(struct ecore_hwfn *p_hwfn, u8 tc)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5203
num_vports = p_hwfn->qm_info.num_vports;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5209
if ((i != vport_id) && p_hwfn->qm_info.wfq_data[i].configured) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5211
tmp_speed = p_hwfn->qm_info.wfq_data[i].min_speed;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
522
u8 max_tc = ecore_init_qm_get_num_tcs(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5223
DP_VERBOSE(p_hwfn, ECORE_MSG_LINK,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5230
DP_VERBOSE(p_hwfn, ECORE_MSG_LINK,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5238
DP_VERBOSE(p_hwfn, ECORE_MSG_LINK,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5245
DP_VERBOSE(p_hwfn, ECORE_MSG_LINK,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
525
DP_ERR(p_hwfn, "tc %d must be smaller than %d\n", tc, max_tc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5257
DP_VERBOSE(p_hwfn, ECORE_MSG_LINK,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5266
p_hwfn->qm_info.wfq_data[vport_id].min_speed = req_rate;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5267
p_hwfn->qm_info.wfq_data[vport_id].configured = true;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
527
return ecore_get_cm_pq_idx(p_hwfn, PQ_FLAGS_MCOS) + tc;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5270
if (p_hwfn->qm_info.wfq_data[i].configured)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5273
p_hwfn->qm_info.wfq_data[i].min_speed = left_rate_per_vp;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5279
static int __ecore_configure_vport_wfq(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5286
p_link = &p_hwfn->p_dev->hwfns[0].mcp_info->link_output;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5289
p_hwfn->qm_info.wfq_data[vp_id].min_speed = rate;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5290
p_hwfn->qm_info.wfq_data[vp_id].configured = true;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5294
rc = ecore_init_wfq_param(p_hwfn, vp_id, rate, p_link->min_pf_rate);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5297
ecore_configure_wfq_for_all_vports(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
530
u16 ecore_get_cm_pq_idx_vf(struct ecore_hwfn *p_hwfn, u16 vf)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5300
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5306
static int __ecore_configure_vp_wfq_on_link_change(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5315
for (i = 0; i < p_hwfn->qm_info.num_vports; i++) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5318
if (!p_hwfn->qm_info.wfq_data[i].configured)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
532
u16 max_vf = ecore_init_qm_get_num_vfs(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5321
rate = p_hwfn->qm_info.wfq_data[i].min_speed;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5324
rc = ecore_init_wfq_param(p_hwfn, i, rate, min_pf_rate);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5326
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5333
ecore_configure_wfq_for_all_vports(p_hwfn, p_ptt, min_pf_rate);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5335
ecore_disable_wfq_for_all_vports(p_hwfn, p_ptt, min_pf_rate);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
535
DP_ERR(p_hwfn, "vf %d must be smaller than %d\n", vf, max_vf);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5356
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5359
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5363
rc = __ecore_configure_vport_wfq(p_hwfn, p_ptt, vp_id, rate);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5366
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
537
return ecore_get_cm_pq_idx(p_hwfn, PQ_FLAGS_VFS) + vf;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5370
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5391
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5393
__ecore_configure_vp_wfq_on_link_change(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5398
int __ecore_configure_pf_max_bandwidth(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
540
u16 ecore_get_cm_pq_idx_rl(struct ecore_hwfn *p_hwfn, u8 rl)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5405
p_hwfn->mcp_info->func_info.bandwidth_max = max_bw;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5411
p_hwfn->qm_info.pf_rl = p_link->speed;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5418
p_hwfn->qm_info.pf_rl = 100000;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
542
u16 max_rl = ecore_init_qm_get_num_pf_rls(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5420
rc = ecore_init_pf_rl(p_hwfn, p_ptt, p_hwfn->rel_pf_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5421
p_hwfn->qm_info.pf_rl);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5423
DP_VERBOSE(p_hwfn, ECORE_MSG_LINK,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5441
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5448
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
545
DP_ERR(p_hwfn, "rl %d must be smaller than %d\n", rl, max_rl);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5452
rc = __ecore_configure_pf_max_bandwidth(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5455
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5464
int __ecore_configure_pf_min_bandwidth(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
547
return ecore_get_cm_pq_idx(p_hwfn, PQ_FLAGS_RLS) + rl;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5471
p_hwfn->mcp_info->func_info.bandwidth_min = min_bw;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5472
p_hwfn->qm_info.pf_wfq = min_bw;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5479
rc = ecore_init_pf_wfq(p_hwfn, p_ptt, p_hwfn->rel_pf_id, min_bw);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5481
DP_VERBOSE(p_hwfn, ECORE_MSG_LINK,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5499
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5506
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
551
static void ecore_init_qm_lb_pq(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5510
rc = __ecore_configure_pf_min_bandwidth(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5513
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5520
rc = __ecore_configure_vp_wfq_on_link_change(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5525
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
553
struct ecore_qm_info *qm_info = &p_hwfn->qm_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5531
void ecore_clean_wfq_db(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5535
p_link = &p_hwfn->mcp_info->link_output;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5538
ecore_disable_wfq_for_all_vports(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5541
OSAL_MEMSET(p_hwfn->qm_info.wfq_data, 0,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5542
sizeof(*p_hwfn->qm_info.wfq_data) *
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5543
p_hwfn->qm_info.num_vports);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
555
if (!(ecore_get_pq_flags(p_hwfn) & PQ_FLAGS_LB))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
558
ecore_init_qm_set_idx(p_hwfn, PQ_FLAGS_LB, qm_info->num_pqs);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
559
ecore_init_qm_pq(p_hwfn, qm_info, PURE_LB_TC, PQ_INIT_SHARE_VPORT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
562
static void ecore_init_qm_ooo_pq(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
564
struct ecore_qm_info *qm_info = &p_hwfn->qm_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
566
if (!(ecore_get_pq_flags(p_hwfn) & PQ_FLAGS_OOO))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
569
ecore_init_qm_set_idx(p_hwfn, PQ_FLAGS_OOO, qm_info->num_pqs);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
570
ecore_init_qm_pq(p_hwfn, qm_info, qm_info->ooo_tc, PQ_INIT_SHARE_VPORT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
573
static void ecore_init_qm_pure_ack_pq(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
575
struct ecore_qm_info *qm_info = &p_hwfn->qm_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
577
if (!(ecore_get_pq_flags(p_hwfn) & PQ_FLAGS_ACK))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
580
ecore_init_qm_set_idx(p_hwfn, PQ_FLAGS_ACK, qm_info->num_pqs);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
581
ecore_init_qm_pq(p_hwfn, qm_info, PQ_INIT_OFLD_TC, PQ_INIT_SHARE_VPORT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
584
static void ecore_init_qm_offload_pq(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
586
struct ecore_qm_info *qm_info = &p_hwfn->qm_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
588
if (!(ecore_get_pq_flags(p_hwfn) & PQ_FLAGS_OFLD))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
591
ecore_init_qm_set_idx(p_hwfn, PQ_FLAGS_OFLD, qm_info->num_pqs);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
592
ecore_init_qm_pq(p_hwfn, qm_info, PQ_INIT_OFLD_TC, PQ_INIT_SHARE_VPORT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
595
static void ecore_init_qm_low_latency_pq(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
597
struct ecore_qm_info *qm_info = &p_hwfn->qm_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
599
if (!(ecore_get_pq_flags(p_hwfn) & PQ_FLAGS_LLT))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
602
ecore_init_qm_set_idx(p_hwfn, PQ_FLAGS_LLT, qm_info->num_pqs);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
603
ecore_init_qm_pq(p_hwfn, qm_info, PQ_INIT_OFLD_TC, PQ_INIT_SHARE_VPORT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
606
static void ecore_init_qm_mcos_pqs(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
608
struct ecore_qm_info *qm_info = &p_hwfn->qm_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
611
if (!(ecore_get_pq_flags(p_hwfn) & PQ_FLAGS_MCOS))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
614
ecore_init_qm_set_idx(p_hwfn, PQ_FLAGS_MCOS, qm_info->num_pqs);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
615
for (tc_idx = 0; tc_idx < ecore_init_qm_get_num_tcs(p_hwfn); tc_idx++)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
616
ecore_init_qm_pq(p_hwfn, qm_info, tc_idx, PQ_INIT_SHARE_VPORT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
619
static void ecore_init_qm_vf_pqs(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
621
struct ecore_qm_info *qm_info = &p_hwfn->qm_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
622
u16 vf_idx, num_vfs = ecore_init_qm_get_num_vfs(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
624
if (!(ecore_get_pq_flags(p_hwfn) & PQ_FLAGS_VFS))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
627
ecore_init_qm_set_idx(p_hwfn, PQ_FLAGS_VFS, qm_info->num_pqs);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
630
ecore_init_qm_pq(p_hwfn, qm_info, PQ_INIT_DEFAULT_TC, PQ_INIT_VF_RL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
633
static void ecore_init_qm_rl_pqs(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
635
u16 pf_rls_idx, num_pf_rls = ecore_init_qm_get_num_pf_rls(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
636
struct ecore_qm_info *qm_info = &p_hwfn->qm_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
638
if (!(ecore_get_pq_flags(p_hwfn) & PQ_FLAGS_RLS))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
641
ecore_init_qm_set_idx(p_hwfn, PQ_FLAGS_RLS, qm_info->num_pqs);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
643
ecore_init_qm_pq(p_hwfn, qm_info, PQ_INIT_OFLD_TC, PQ_INIT_PF_RL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
646
static void ecore_init_qm_pq_params(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
649
ecore_init_qm_rl_pqs(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
652
ecore_init_qm_mcos_pqs(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
655
ecore_init_qm_lb_pq(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
658
ecore_init_qm_ooo_pq(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
661
ecore_init_qm_pure_ack_pq(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
664
ecore_init_qm_offload_pq(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
667
ecore_init_qm_low_latency_pq(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
670
ecore_init_qm_advance_vport(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
673
ecore_init_qm_vf_pqs(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
677
static enum _ecore_status_t ecore_init_qm_sanity(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
679
if (ecore_init_qm_get_num_vports(p_hwfn) > RESC_NUM(p_hwfn, ECORE_VPORT)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
680
DP_ERR(p_hwfn, "requested amount of vports exceeds resource\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
684
if (ecore_init_qm_get_num_pqs(p_hwfn) > RESC_NUM(p_hwfn, ECORE_PQ)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
685
DP_ERR(p_hwfn, "requested amount of pqs exceeds resource\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
695
static void ecore_dp_init_qm_params(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
697
struct ecore_qm_info *qm_info = &p_hwfn->qm_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
704
DP_VERBOSE(p_hwfn, ECORE_MSG_HW, "qm init top level params: start_pq %d, start_vport %d, pure_lb_pq %d, offload_pq %d, pure_ack_pq %d\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
706
DP_VERBOSE(p_hwfn, ECORE_MSG_HW, "ooo_pq %d, first_vf_pq %d, num_pqs %d, num_vf_pqs %d, num_vports %d, max_phys_tcs_per_port %d\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
708
DP_VERBOSE(p_hwfn, ECORE_MSG_HW, "pf_rl_en %d, pf_wfq_en %d, vport_rl_en %d, vport_wfq_en %d, pf_wfq %d, pf_rl %d, num_pf_rls %d, pq_flags %x\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
709
qm_info->pf_rl_en, qm_info->pf_wfq_en, qm_info->vport_rl_en, qm_info->vport_wfq_en, qm_info->pf_wfq, qm_info->pf_rl, qm_info->num_pf_rls, ecore_get_pq_flags(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
712
for (i = 0; i < p_hwfn->p_dev->num_ports_in_engine; i++) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
714
DP_VERBOSE(p_hwfn, ECORE_MSG_HW, "port idx %d, active %d, active_phys_tcs %d, num_pbf_cmd_lines %d, num_btb_blocks %d, reserved %d\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
721
DP_VERBOSE(p_hwfn, ECORE_MSG_HW, "vport idx %d, vport_rl %d, wfq %d, first_tx_pq_id [ ",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
724
DP_VERBOSE(p_hwfn, ECORE_MSG_HW, "%d ", vport->first_tx_pq_id[tc]);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
725
DP_VERBOSE(p_hwfn, ECORE_MSG_HW, "]\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
731
DP_VERBOSE(p_hwfn, ECORE_MSG_HW, "pq idx %d, vport_id %d, tc %d, wrr_grp %d, rl_valid %d\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
736
static void ecore_init_qm_info(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
739
ecore_init_qm_reset_params(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
742
ecore_init_qm_params(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
745
ecore_init_qm_port_params(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
748
ecore_init_qm_vport_params(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
751
ecore_init_qm_pq_params(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
754
ecore_dp_init_qm_params(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
765
enum _ecore_status_t ecore_qm_reconf(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
768
struct ecore_qm_info *qm_info = &p_hwfn->qm_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
773
ecore_init_qm_info(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
777
b_rc = ecore_send_qm_stop_cmd(p_hwfn, p_ptt, false, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
784
ecore_init_clear_rt_data(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
787
ecore_qm_init_pf(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
790
rc = ecore_init_run(p_hwfn, p_ptt, PHASE_QM_PF, p_hwfn->rel_pf_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
791
p_hwfn->hw_info.hw_mode);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
797
b_rc = ecore_send_qm_stop_cmd(p_hwfn, p_ptt, true, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
806
static enum _ecore_status_t ecore_alloc_qm_data(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
808
struct ecore_qm_info *qm_info = &p_hwfn->qm_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
811
rc = ecore_init_qm_sanity(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
815
qm_info->qm_pq_params = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
817
ecore_init_qm_get_num_pqs(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
821
qm_info->qm_vport_params = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
823
ecore_init_qm_get_num_vports(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
827
qm_info->qm_port_params = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
829
p_hwfn->p_dev->num_ports_in_engine);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
833
qm_info->wfq_data = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
835
ecore_init_qm_get_num_vports(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
842
DP_NOTICE(p_hwfn, false, "Failed to allocate memory for QM params\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
843
ecore_qm_info_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
870
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
874
rc = ecore_cxt_mngr_alloc(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
881
rc = ecore_cxt_set_pf_params(p_hwfn, RDMA_MAX_TIDS);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
885
rc = ecore_alloc_qm_data(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
890
ecore_init_qm_info(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
893
rc = ecore_cxt_cfg_ilt_compute(p_hwfn, &line_count);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
895
DP_NOTICE(p_hwfn, false, "too many ILT lines; re-computing with less lines\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
900
p_hwfn, line_count);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
905
rc = ecore_cxt_set_pf_params(p_hwfn, rdma_tasks);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
909
rc = ecore_cxt_cfg_ilt_compute(p_hwfn, &line_count);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
911
DP_ERR(p_hwfn, "failed ILT compute. Requested too many lines: %u\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
92
static u32 ecore_hw_bar_size(struct ecore_hwfn *p_hwfn, enum BAR_ID bar_id)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
921
rc = ecore_cxt_tables_alloc(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
926
rc = ecore_spq_alloc(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
931
p_hwfn->p_dpc_ptt = ecore_get_reserved_ptt(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
934
rc = ecore_int_alloc(p_hwfn, p_hwfn->p_main_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
938
rc = ecore_iov_alloc(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
943
n_eqes = ecore_chain_get_capacity(&p_hwfn->p_spq->chain);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
944
if (ECORE_IS_RDMA_PERSONALITY(p_hwfn)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
967
if (p_hwfn->hw_info.personality == ECORE_PCI_ETH_ROCE) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
969
p_hwfn, PROTOCOLID_ROCE, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
973
p_hwfn, PROTOCOLID_IWARP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
977
} else if (p_hwfn->hw_info.personality == ECORE_PCI_ISCSI) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
979
p_hwfn, PROTOCOLID_ISCSI, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
98
if (IS_VF(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
984
DP_ERR(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
990
rc = ecore_eq_alloc(p_hwfn, (u16)n_eqes);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
994
rc = ecore_consq_alloc(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
998
rc = ecore_l2_alloc(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
209
void ecore_hw_start_fastpath(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
322
struct ecore_ptt *ecore_ptt_acquire(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
334
void ecore_ptt_release(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
466
ecore_dmae_host2grc(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
484
ecore_dmae_grc2host(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
503
ecore_dmae_host2host(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
550
enum _ecore_status_t ecore_fw_l2_queue(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
563
enum _ecore_status_t ecore_fw_vport(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
576
enum _ecore_status_t ecore_fw_rss_eng(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
587
enum _ecore_status_t ecore_llh_add_mac_filter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
598
void ecore_llh_remove_mac_filter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
622
ecore_llh_add_protocol_filter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
638
ecore_llh_remove_protocol_filter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
650
void ecore_llh_clear_all_filters(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
660
ecore_llh_set_function_as_default(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
673
enum _ecore_status_t ecore_final_cleanup(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
694
ecore_set_queue_coalesce(struct ecore_hwfn *p_hwfn, u16 rx_coal,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
705
void ecore_hw_set_feat(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev_api.h
717
ecore_change_pci_hwfn(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_fcoe.h
50
enum _ecore_status_t ecore_fcoe_alloc(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_fcoe.h
52
void ecore_fcoe_setup(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_fcoe.h
54
void ecore_fcoe_free(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_fcoe.h
57
ecore_sp_fcoe_conn_offload(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_fcoe.h
63
ecore_sp_fcoe_conn_destroy(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_fcoe_api.h
105
ecore_fcoe_acquire_connection(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_fcoe_api.h
109
void OSAL_IOMEM *ecore_fcoe_get_db_addr(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_fcoe_api.h
112
void OSAL_IOMEM *ecore_fcoe_get_global_cmdq_cons(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_fcoe_api.h
115
void OSAL_IOMEM *ecore_fcoe_get_primary_bdq_prod(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_fcoe_api.h
118
void OSAL_IOMEM *ecore_fcoe_get_secondary_bdq_prod(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_fcoe_api.h
122
ecore_fcoe_offload_connection(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_fcoe_api.h
126
ecore_fcoe_terminate_connection(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_fcoe_api.h
129
void ecore_fcoe_release_connection(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_fcoe_api.h
133
ecore_sp_fcoe_func_start(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_fcoe_api.h
138
ecore_sp_fcoe_func_stop(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_fcoe_api.h
143
ecore_fcoe_get_stats(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
100
void ecore_ptt_invalidate(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
1011
OSAL_MUTEX_ACQUIRE(&(p_hwfn->dmae_info.mutex));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
1013
rc = ecore_dmae_execute_command(p_hwfn, p_ptt, grc_addr_in_dw,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
1018
OSAL_MUTEX_RELEASE(&(p_hwfn->dmae_info.mutex));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
1023
enum _ecore_status_t ecore_dmae_host2host(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
1032
OSAL_MUTEX_ACQUIRE(&p_hwfn->dmae_info.mutex);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
1034
rc = ecore_dmae_execute_command(p_hwfn, p_ptt, source_addr,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
1041
OSAL_MUTEX_RELEASE(&p_hwfn->dmae_info.mutex);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
1046
void ecore_hw_err_notify(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
1050
if (p_hwfn->p_dev->recov_in_prog && err_type != ECORE_HW_ERR_FAN_FAIL) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
1051
DP_VERBOSE(p_hwfn, ECORE_MSG_DRV,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
1057
OSAL_HW_ERROR_OCCURRED(p_hwfn, err_type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
106
p_ptt = &p_hwfn->p_ptt_pool->ptts[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
111
void ecore_ptt_pool_free(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
114
if (p_hwfn->p_ptt_pool)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
115
OSAL_SPIN_LOCK_DEALLOC(&p_hwfn->p_ptt_pool->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
117
OSAL_FREE(p_hwfn->p_dev, p_hwfn->p_ptt_pool);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
118
p_hwfn->p_ptt_pool = OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
121
struct ecore_ptt *ecore_ptt_acquire(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
128
OSAL_SPIN_LOCK(&p_hwfn->p_ptt_pool->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
130
if (!OSAL_LIST_IS_EMPTY(&p_hwfn->p_ptt_pool->free_list)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
131
p_ptt = OSAL_LIST_FIRST_ENTRY(&p_hwfn->p_ptt_pool->free_list,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
134
&p_hwfn->p_ptt_pool->free_list);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
136
OSAL_SPIN_UNLOCK(&p_hwfn->p_ptt_pool->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
138
DP_VERBOSE(p_hwfn, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
144
OSAL_SPIN_UNLOCK(&p_hwfn->p_ptt_pool->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
148
DP_NOTICE(p_hwfn, true, "PTT acquire timeout - failed to allocate PTT\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
152
void ecore_ptt_release(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
157
OSAL_SPIN_LOCK(&p_hwfn->p_ptt_pool->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
158
OSAL_LIST_PUSH_HEAD(&p_ptt->list_entry, &p_hwfn->p_ptt_pool->free_list);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
159
OSAL_SPIN_UNLOCK(&p_hwfn->p_ptt_pool->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
162
u32 ecore_ptt_get_hw_addr(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
181
void ecore_ptt_set_win(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
187
prev_hw_addr = ecore_ptt_get_hw_addr(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
193
DP_VERBOSE(p_hwfn, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
200
REG_WR(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
206
static u32 ecore_set_ptt(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
210
u32 win_hw_addr = ecore_ptt_get_hw_addr(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
215
if (p_ptt->hwfn_id != p_hwfn->my_id)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
216
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
218
p_ptt->idx, p_ptt->hwfn_id, p_hwfn->my_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
223
ecore_ptt_set_win(p_hwfn, p_ptt, hw_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
230
struct ecore_ptt *ecore_get_reserved_ptt(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
234
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
239
return &p_hwfn->p_ptt_pool->ptts[ptt_idx];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
242
static bool ecore_is_reg_fifo_empty(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
248
if (!p_hwfn->p_dev->chk_reg_fifo)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
252
bar_addr = ecore_set_ptt(p_hwfn, p_ptt, GRC_REG_TRACE_FIFO_VALID_DATA);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
253
is_empty = REG_RD(p_hwfn, bar_addr) == 0;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
256
if (CHIP_REV_IS_SLOW(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
264
void ecore_wr(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt, u32 hw_addr,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
270
prev_fifo_err = !ecore_is_reg_fifo_empty(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
272
bar_addr = ecore_set_ptt(p_hwfn, p_ptt, hw_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
273
REG_WR(p_hwfn, bar_addr, val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
274
DP_VERBOSE(p_hwfn, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
279
if (CHIP_REV_IS_SLOW(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
283
OSAL_WARN(!prev_fifo_err && !ecore_is_reg_fifo_empty(p_hwfn, p_ptt),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
288
u32 ecore_rd(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt, u32 hw_addr)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
293
prev_fifo_err = !ecore_is_reg_fifo_empty(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
295
bar_addr = ecore_set_ptt(p_hwfn, p_ptt, hw_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
296
val = REG_RD(p_hwfn, bar_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
298
DP_VERBOSE(p_hwfn, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
303
if (CHIP_REV_IS_SLOW(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
307
OSAL_WARN(!prev_fifo_err && !ecore_is_reg_fifo_empty(p_hwfn, p_ptt),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
314
static void ecore_memcpy_hw(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
329
if (IS_PF(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
330
ecore_ptt_set_win(p_hwfn, p_ptt, hw_addr + done);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
338
reg_addr = (u32 OSAL_IOMEM *)OSAL_REG_ADDR(p_hwfn, hw_offset);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
342
DIRECT_REG_WR(p_hwfn, reg_addr++, *host_addr++);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
345
*host_addr++ = DIRECT_REG_RD(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
352
void ecore_memcpy_from(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
356
DP_VERBOSE(p_hwfn, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
360
ecore_memcpy_hw(p_hwfn, p_ptt, dest, hw_addr, n, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
363
void ecore_memcpy_to(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
367
DP_VERBOSE(p_hwfn, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
371
ecore_memcpy_hw(p_hwfn, p_ptt, src, hw_addr, n, true);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
374
void ecore_fid_pretend(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
395
REG_WR(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
401
void ecore_port_pretend(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
411
REG_WR(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
417
void ecore_port_unpretend(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
428
REG_WR(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
434
u32 ecore_vfid_to_concrete(struct ecore_hwfn *p_hwfn, u8 vfid)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
438
SET_FIELD(concrete_fid, PXP_CONCRETE_FID_PFID, p_hwfn->rel_pf_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
453
enum _ecore_status_t ecore_hw_lock(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
466
p_hwfn->rel_pf_id *
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
470
lock_status = ecore_rd(p_hwfn, p_ptt, hw_lock_cntr_reg);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
473
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
481
ecore_wr(p_hwfn, p_ptt, hw_lock_cntr_reg + sizeof(u32), resource);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
485
lock_status = ecore_rd(p_hwfn, p_ptt, hw_lock_cntr_reg);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
499
DP_NOTICE(p_hwfn, true, "Lock timeout resource=0x%x\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
505
ecore_wr(p_hwfn, p_ptt, hw_lock_cntr_reg, resource);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
510
enum _ecore_status_t ecore_hw_unlock(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
521
p_hwfn->rel_pf_id *
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
525
lock_status = ecore_rd(p_hwfn, p_ptt, hw_lock_cntr_reg);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
528
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
536
ecore_wr(p_hwfn, p_ptt, hw_lock_cntr_reg, resource);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
542
static void ecore_dmae_opcode(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
557
opcode |= (p_hwfn->rel_pf_id & DMAE_CMD_SRC_PF_ID_MASK) <<
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
564
opcode |= (p_hwfn->rel_pf_id & DMAE_CMD_DST_PF_ID_MASK) <<
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
586
opcode |= p_hwfn->port_id << DMAE_CMD_PORT_ID_SHIFT;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
612
p_hwfn->dmae_info.p_dmae_cmd->opcode = OSAL_CPU_TO_LE32(opcode);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
613
p_hwfn->dmae_info.p_dmae_cmd->opcode_b = OSAL_CPU_TO_LE16(opcode_b);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
625
static enum _ecore_status_t ecore_dmae_post_command(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
628
struct dmae_cmd *p_command = p_hwfn->dmae_info.p_dmae_cmd;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
629
u8 idx_cmd = p_hwfn->dmae_info.channel, i;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
635
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
650
DP_VERBOSE(p_hwfn, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
672
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
678
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
68
enum _ecore_status_t ecore_ptt_pool_alloc(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
685
enum _ecore_status_t ecore_dmae_info_alloc(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
687
dma_addr_t *p_addr = &p_hwfn->dmae_info.completion_word_phys_addr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
688
struct dmae_cmd **p_cmd = &p_hwfn->dmae_info.p_dmae_cmd;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
689
u32 **p_buff = &p_hwfn->dmae_info.p_intermediate_buffer;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
690
u32 **p_comp = &p_hwfn->dmae_info.p_completion_word;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
692
*p_comp = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, p_addr, sizeof(u32));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
694
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
699
p_addr = &p_hwfn->dmae_info.dmae_cmd_phys_addr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
70
struct ecore_ptt_pool *p_pool = OSAL_ALLOC(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
700
*p_cmd = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, p_addr,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
703
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
708
p_addr = &p_hwfn->dmae_info.intermediate_buffer_phys_addr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
709
*p_buff = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, p_addr,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
712
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
717
p_hwfn->dmae_info.channel = p_hwfn->rel_pf_id;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
721
ecore_dmae_info_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
725
void ecore_dmae_info_free(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
730
OSAL_MUTEX_ACQUIRE(&p_hwfn->dmae_info.mutex);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
732
if (p_hwfn->dmae_info.p_completion_word != OSAL_NULL) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
733
p_phys = p_hwfn->dmae_info.completion_word_phys_addr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
734
OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
735
p_hwfn->dmae_info.p_completion_word,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
737
p_hwfn->dmae_info.p_completion_word = OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
740
if (p_hwfn->dmae_info.p_dmae_cmd != OSAL_NULL) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
741
p_phys = p_hwfn->dmae_info.dmae_cmd_phys_addr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
742
OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
743
p_hwfn->dmae_info.p_dmae_cmd,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
745
p_hwfn->dmae_info.p_dmae_cmd = OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
748
if (p_hwfn->dmae_info.p_intermediate_buffer != OSAL_NULL) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
749
p_phys = p_hwfn->dmae_info.intermediate_buffer_phys_addr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
750
OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
751
p_hwfn->dmae_info.p_intermediate_buffer,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
753
p_hwfn->dmae_info.p_intermediate_buffer = OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
756
OSAL_MUTEX_RELEASE(&p_hwfn->dmae_info.mutex);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
760
ecore_dmae_operation_wait(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
766
u32 factor = (CHIP_REV_IS_EMUL(p_hwfn->p_dev) ?
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
768
(CHIP_REV_IS_FPGA(p_hwfn->p_dev) ?
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
778
OSAL_BARRIER(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
779
while (*p_hwfn->dmae_info.p_completion_word != DMAE_COMPLETION_VAL) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
782
DP_NOTICE(p_hwfn->p_dev, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
784
*(p_hwfn->dmae_info.p_completion_word),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
793
OSAL_BARRIER(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
797
*p_hwfn->dmae_info.p_completion_word = 0;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
802
static enum _ecore_status_t ecore_dmae_execute_sub_operation(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
810
dma_addr_t phys = p_hwfn->dmae_info.intermediate_buffer_phys_addr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
811
struct dmae_cmd *cmd = p_hwfn->dmae_info.p_dmae_cmd;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
824
OSAL_MEMCPY(&(p_hwfn->dmae_info.p_intermediate_buffer[0]),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
83
p_pool->ptts[i].hwfn_id = p_hwfn->my_id;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
851
OSAL_DMA_SYNC(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
857
ecore_dmae_post_command(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
859
ecore_status = ecore_dmae_operation_wait(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
865
OSAL_DMA_SYNC(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
872
DP_NOTICE(p_hwfn, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
875
(u64)p_hwfn->dmae_info.intermediate_buffer_phys_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
881
&p_hwfn->dmae_info.p_intermediate_buffer[0],
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
887
static enum _ecore_status_t ecore_dmae_execute_command(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
894
dma_addr_t phys = p_hwfn->dmae_info.completion_word_phys_addr;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
896
struct dmae_cmd *cmd = p_hwfn->dmae_info.p_dmae_cmd;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
902
if (p_hwfn->p_dev->recov_in_prog) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
903
DP_VERBOSE(p_hwfn, ECORE_MSG_HW,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
913
ecore_dmae_opcode(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
93
p_hwfn->p_ptt_pool = p_pool;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
94
OSAL_SPIN_LOCK_ALLOC(p_hwfn, &p_pool->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
950
ecore_status = ecore_dmae_execute_sub_operation(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
958
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
962
ecore_hw_err_notify(p_hwfn, ECORE_HW_ERR_DMAE_FAIL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
970
enum _ecore_status_t ecore_dmae_host2grc(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
984
OSAL_MUTEX_ACQUIRE(&p_hwfn->dmae_info.mutex);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
986
rc = ecore_dmae_execute_command(p_hwfn, p_ptt, source_addr,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
992
OSAL_MUTEX_RELEASE(&p_hwfn->dmae_info.mutex);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.c
997
enum _ecore_status_t ecore_dmae_grc2host(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.h
102
void ecore_gtt_init(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.h
109
void ecore_ptt_invalidate(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.h
118
enum _ecore_status_t ecore_ptt_pool_alloc(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.h
125
void ecore_ptt_pool_free(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.h
135
u32 ecore_ptt_get_hw_addr(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.h
155
void ecore_ptt_set_win(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.h
167
struct ecore_ptt *ecore_get_reserved_ptt(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.h
178
void ecore_wr(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.h
191
u32 ecore_rd(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.h
205
void ecore_memcpy_from(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.h
221
void ecore_memcpy_to(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.h
237
void ecore_fid_pretend(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.h
249
void ecore_port_pretend(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.h
260
void ecore_port_unpretend(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.h
271
u32 ecore_vfid_to_concrete(struct ecore_hwfn *p_hwfn, u8 vfid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.h
278
enum _ecore_status_t ecore_dmae_info_alloc(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.h
286
void ecore_dmae_info_free(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.h
313
u16 ecore_get_qm_pq(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_hw.h
320
void ecore_hw_err_notify(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1000
ecore_wr(p_hwfn, p_ptt, NIG_REG_LB_BRBRATELIMIT_MAX_VALUE, NIG_RL_MAX_VAL(inc_val, req->mtu));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1004
ecore_wr(p_hwfn, p_ptt, NIG_REG_LB_BRBRATELIMIT_CTRL, ctrl);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1012
ecore_wr(p_hwfn, p_ptt, NIG_REG_LB_TCRATELIMIT_CTRL_0 + reg_offset, ctrl);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1019
ecore_wr(p_hwfn, p_ptt, NIG_REG_LB_TCRATELIMIT_INC_PERIOD_0 + reg_offset, NIG_RL_PERIOD_CLK_25M);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1021
ecore_wr(p_hwfn, p_ptt, NIG_REG_LB_TCRATELIMIT_INC_VALUE_0 + reg_offset, inc_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1022
ecore_wr(p_hwfn, p_ptt, NIG_REG_LB_TCRATELIMIT_MAX_VALUE_0 + reg_offset, NIG_RL_MAX_VAL(inc_val, req->mtu));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1026
ecore_wr(p_hwfn, p_ptt, NIG_REG_LB_TCRATELIMIT_CTRL_0 + reg_offset, ctrl);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1030
void ecore_init_nig_pri_tc_map(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1047
ecore_wr(p_hwfn, p_ptt, NIG_REG_PKT_PRIORITY_TO_TC, pri_tc_mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1051
ecore_wr(p_hwfn, p_ptt, NIG_REG_PRIORITY_FOR_TC_0 + tc * 4, tc_pri_mask[tc]);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1052
ecore_wr(p_hwfn, p_ptt, NIG_REG_RX_TC0_PRIORITY_MASK + tc * 4, tc_pri_mask[tc]);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1065
void ecore_init_prs_ets(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1094
ecore_wr(p_hwfn, p_ptt, PRS_REG_ETS_ARB_CLIENT_IS_STRICT, sp_tc_map);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1097
ecore_wr(p_hwfn, p_ptt, PRS_REG_ETS_ARB_CLIENT_IS_SUBJECT2WFQ, wfq_tc_map);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1111
ecore_wr(p_hwfn, p_ptt, PRS_REG_ETS_ARB_CREDIT_WEIGHT_0 + tc * tc_weight_addr_diff, byte_weight);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1114
ecore_wr(p_hwfn, p_ptt, PRS_REG_ETS_ARB_CREDIT_UPPER_BOUND_0 + tc * tc_bound_addr_diff, PRS_ETS_UP_BOUND(byte_weight, req->mtu));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1130
void ecore_init_brb_ram(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1140
total_blocks = ECORE_IS_K2(p_hwfn->p_dev) ? BRB_TOTAL_RAM_BLOCKS_K2 : BRB_TOTAL_RAM_BLOCKS_BB;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1166
ecore_wr(p_hwfn, p_ptt, BRB_REG_TOTAL_MAC_SIZE + port * 4, port_blocks);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1169
ecore_wr(p_hwfn, p_ptt, BRB_REG_SHARED_HR_AREA + port * 4, port_shared_blocks);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1182
ecore_wr(p_hwfn, p_ptt, BRB_REG_TC_GUARANTIED_0 + reg_offset, tc_guaranteed_blocks);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1183
ecore_wr(p_hwfn, p_ptt, BRB_REG_MAIN_TC_GUARANTIED_HYST_0 + reg_offset, BRB_HYST_BLOCKS);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1188
ecore_wr(p_hwfn, p_ptt, BRB_REG_LB_TC_FULL_XOFF_THRESHOLD_0 + reg_offset, full_xoff_th);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1189
ecore_wr(p_hwfn, p_ptt, BRB_REG_LB_TC_FULL_XON_THRESHOLD_0 + reg_offset, full_xon_th);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1190
ecore_wr(p_hwfn, p_ptt, BRB_REG_LB_TC_PAUSE_XOFF_THRESHOLD_0 + reg_offset, pause_xoff_th);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1191
ecore_wr(p_hwfn, p_ptt, BRB_REG_LB_TC_PAUSE_XON_THRESHOLD_0 + reg_offset, pause_xon_th);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1196
ecore_wr(p_hwfn, p_ptt, BRB_REG_MAIN_TC_FULL_XOFF_THRESHOLD_0 + reg_offset, full_xoff_th);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1197
ecore_wr(p_hwfn, p_ptt, BRB_REG_MAIN_TC_FULL_XON_THRESHOLD_0 + reg_offset, full_xon_th);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1198
ecore_wr(p_hwfn, p_ptt, BRB_REG_MAIN_TC_PAUSE_XOFF_THRESHOLD_0 + reg_offset, pause_xoff_th);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1199
ecore_wr(p_hwfn, p_ptt, BRB_REG_MAIN_TC_PAUSE_XON_THRESHOLD_0 + reg_offset, pause_xon_th);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1208
void ecore_set_engine_mf_ovlan_eth_type(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1212
STORE_RT_REG(p_hwfn, PRS_REG_TAG_ETHERTYPE_0_RT_OFFSET, ethType);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1215
STORE_RT_REG(p_hwfn, NIG_REG_TAG_ETHERTYPE_0_RT_OFFSET, ethType);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1218
STORE_RT_REG(p_hwfn, PBF_REG_TAG_ETHERTYPE_0_RT_OFFSET, ethType);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1222
void ecore_set_port_mf_ovlan_eth_type(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1226
STORE_RT_REG(p_hwfn, DORQ_REG_TAG1_ETHERTYPE_RT_OFFSET, ethType);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1235
void ecore_set_vxlan_dest_port(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1240
ecore_wr(p_hwfn, p_ptt, PRS_REG_VXLAN_PORT, dest_port);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1243
ecore_wr(p_hwfn, p_ptt, NIG_REG_VXLAN_CTRL, dest_port);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1246
ecore_wr(p_hwfn, p_ptt, PBF_REG_VXLAN_PORT, dest_port);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1249
void ecore_set_vxlan_enable(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1256
reg_val = ecore_rd(p_hwfn, p_ptt, PRS_REG_ENCAPSULATION_TYPE_EN);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1258
ecore_wr(p_hwfn, p_ptt, PRS_REG_ENCAPSULATION_TYPE_EN, reg_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1260
ecore_wr(p_hwfn, p_ptt, PRS_REG_OUTPUT_FORMAT_4_0_BB_K2, (u32)PRS_ETH_TUNN_FIC_FORMAT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1263
reg_val = ecore_rd(p_hwfn, p_ptt, NIG_REG_ENC_TYPE_ENABLE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1265
ecore_wr(p_hwfn, p_ptt, NIG_REG_ENC_TYPE_ENABLE, reg_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1268
ecore_wr(p_hwfn, p_ptt, DORQ_REG_L2_EDPM_TUNNEL_VXLAN_EN, vxlan_enable ? 1 : 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1271
void ecore_set_gre_enable(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1279
reg_val = ecore_rd(p_hwfn, p_ptt, PRS_REG_ENCAPSULATION_TYPE_EN);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1282
ecore_wr(p_hwfn, p_ptt, PRS_REG_ENCAPSULATION_TYPE_EN, reg_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1284
ecore_wr(p_hwfn, p_ptt, PRS_REG_OUTPUT_FORMAT_4_0_BB_K2, (u32)PRS_ETH_TUNN_FIC_FORMAT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1287
reg_val = ecore_rd(p_hwfn, p_ptt, NIG_REG_ENC_TYPE_ENABLE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1290
ecore_wr(p_hwfn, p_ptt, NIG_REG_ENC_TYPE_ENABLE, reg_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1293
ecore_wr(p_hwfn, p_ptt, DORQ_REG_L2_EDPM_TUNNEL_GRE_ETH_EN, eth_gre_enable ? 1 : 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1294
ecore_wr(p_hwfn, p_ptt, DORQ_REG_L2_EDPM_TUNNEL_GRE_IP_EN, ip_gre_enable ? 1 : 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1297
void ecore_set_geneve_dest_port(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1303
ecore_wr(p_hwfn, p_ptt, PRS_REG_NGE_PORT, dest_port);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1306
ecore_wr(p_hwfn, p_ptt, NIG_REG_NGE_PORT, dest_port);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1309
ecore_wr(p_hwfn, p_ptt, PBF_REG_NGE_PORT, dest_port);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1312
void ecore_set_geneve_enable(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1320
reg_val = ecore_rd(p_hwfn, p_ptt, PRS_REG_ENCAPSULATION_TYPE_EN);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1323
ecore_wr(p_hwfn, p_ptt, PRS_REG_ENCAPSULATION_TYPE_EN, reg_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1325
ecore_wr(p_hwfn, p_ptt, PRS_REG_OUTPUT_FORMAT_4_0_BB_K2, (u32)PRS_ETH_TUNN_FIC_FORMAT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1328
ecore_wr(p_hwfn, p_ptt, NIG_REG_NGE_ETH_ENABLE, eth_geneve_enable ? 1 : 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1329
ecore_wr(p_hwfn, p_ptt, NIG_REG_NGE_IP_ENABLE, ip_geneve_enable ? 1 : 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1332
if (ECORE_IS_BB_B0(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1336
ecore_wr(p_hwfn, p_ptt, DORQ_REG_L2_EDPM_TUNNEL_NGE_ETH_EN_K2_E5, eth_geneve_enable ? 1 : 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1337
ecore_wr(p_hwfn, p_ptt, DORQ_REG_L2_EDPM_TUNNEL_NGE_IP_EN_K2_E5, ip_geneve_enable ? 1 : 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1351
void ecore_set_rfs_mode_disable(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1362
ecore_wr(p_hwfn, p_ptt, PRS_REG_SEARCH_GFT, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1363
ecore_wr(p_hwfn, p_ptt, PRS_REG_CM_HDR_GFT, 0x0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1369
ecore_wr(p_hwfn, p_ptt, PRS_REG_GFT_CAM + CAM_LINE_SIZE*pf_id, cam_line.cam_line_mapped.camline);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1376
ecore_wr(p_hwfn, p_ptt, PRS_REG_GFT_PROFILE_MASK_RAM + RAM_LINE_SIZE*pf_id + i*REG_SIZE, *(ram_line_ptr + i));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1380
void ecore_set_gft_event_id_cm_hdr (struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1386
rfs_cm_hdr_event_id = ecore_rd(p_hwfn, p_ptt, PRS_REG_CM_HDR_GFT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1389
ecore_wr(p_hwfn, p_ptt, PRS_REG_CM_HDR_GFT, rfs_cm_hdr_event_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1392
void ecore_set_rfs_mode_enable(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1405
rfs_cm_hdr_event_id = ecore_rd(p_hwfn, p_ptt, PRS_REG_CM_HDR_GFT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1409
DP_NOTICE(p_hwfn, true, "set_rfs_mode_enable: must accept at least on of - ipv4 or ipv6\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1411
DP_NOTICE(p_hwfn, true, "set_rfs_mode_enable: must accept at least on of - udp or tcp\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1416
ecore_wr(p_hwfn, p_ptt, PRS_REG_CM_HDR_GFT, rfs_cm_hdr_event_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1421
ecore_wr(p_hwfn, p_ptt, PRS_REG_SEARCH_GFT, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1424
ecore_wr(p_hwfn, p_ptt, PRS_REG_LOAD_L2_FILTER, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1451
ecore_wr(p_hwfn, p_ptt, PRS_REG_GFT_CAM + CAM_LINE_SIZE*pf_id, cam_line.cam_line_mapped.camline);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1452
cam_line.cam_line_mapped.camline = ecore_rd(p_hwfn, p_ptt, PRS_REG_GFT_CAM + CAM_LINE_SIZE*pf_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1467
ecore_wr(p_hwfn, p_ptt, PRS_REG_GFT_PROFILE_MASK_RAM + RAM_LINE_SIZE*pf_id + i*REG_SIZE, *(ram_line_ptr + i));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1474
ecore_wr(p_hwfn, p_ptt, PRS_REG_GFT_PROFILE_MASK_RAM + RAM_LINE_SIZE*PRS_GFT_CAM_LINES_NO_MATCH + i*REG_SIZE, *(ram_line_ptr + i));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1481
void ecore_config_vf_zone_size_mode(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt, u16 mode, bool runtime_init)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1494
STORE_RT_REG(p_hwfn, PGLUE_REG_B_MSDM_VF_SHIFT_B_RT_OFFSET, msdm_vf_size_log);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1495
STORE_RT_REG(p_hwfn, PGLUE_REG_B_MSDM_OFFSET_MASK_B_RT_OFFSET, msdm_vf_offset_mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1498
ecore_wr(p_hwfn, p_ptt, PGLUE_B_REG_MSDM_VF_SHIFT_B, msdm_vf_size_log);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1499
ecore_wr(p_hwfn, p_ptt, PGLUE_B_REG_MSDM_OFFSET_MASK_B, msdm_vf_offset_mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1504
u32 ecore_get_mstorm_queue_stat_offset(struct ecore_hwfn *p_hwfn, u16 stat_cnt_id, u16 vf_zone_size_mode)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1519
u32 ecore_get_mstorm_eth_vf_prods_offset(struct ecore_hwfn *p_hwfn, u8 vf_id, u8 vf_queue_id, u16 vf_zone_size_mode)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1539
static u8 ecore_calc_cdu_validation_byte(struct ecore_hwfn * p_hwfn, u8 conn_type,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1594
void ecore_calc_session_ctx_validation(struct ecore_hwfn * p_hwfn, void *p_ctx_mem,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1606
*x_val_ptr = ecore_calc_cdu_validation_byte(p_hwfn, ctx_type, 3, cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1607
*t_val_ptr = ecore_calc_cdu_validation_byte(p_hwfn, ctx_type, 4, cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1608
*u_val_ptr = ecore_calc_cdu_validation_byte(p_hwfn, ctx_type, 5, cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1612
void ecore_calc_task_ctx_validation(struct ecore_hwfn * p_hwfn, void *p_ctx_mem,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1622
*region1_val_ptr = ecore_calc_cdu_validation_byte(p_hwfn, ctx_type,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1665
void ecore_enable_context_validation(struct ecore_hwfn * p_hwfn, struct ecore_ptt *p_ptt)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1671
ecore_wr(p_hwfn, p_ptt, CDU_REG_CCFC_CTX_VALID0, ctx_validation);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1675
ecore_wr(p_hwfn, p_ptt, CDU_REG_CCFC_CTX_VALID1, ctx_validation);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
1679
ecore_wr(p_hwfn, p_ptt, CDU_REG_TCFC_CTX_VALID0, ctx_validation);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
168
static void ecore_enable_pf_rl(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
171
STORE_RT_REG(p_hwfn, QM_REG_RLPFENABLE_RT_OFFSET, pf_rl_en ? 1 : 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
175
STORE_RT_REG(p_hwfn, QM_REG_RLPFVOQENABLE_RT_OFFSET, (1 << MAX_NUM_VOQS) - 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
178
STORE_RT_REG(p_hwfn, QM_REG_RLPFPERIOD_RT_OFFSET, QM_RL_PERIOD_CLK_25M);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
179
STORE_RT_REG(p_hwfn, QM_REG_RLPFPERIODTIMER_RT_OFFSET, QM_RL_PERIOD_CLK_25M);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
183
STORE_RT_REG(p_hwfn, QM_REG_AFULLQMBYPTHRPFRL_RT_OFFSET, QM_RL_UPPER_BOUND);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
188
static void ecore_enable_pf_wfq(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
191
STORE_RT_REG(p_hwfn, QM_REG_WFQPFENABLE_RT_OFFSET, pf_wfq_en ? 1 : 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
195
STORE_RT_REG(p_hwfn, QM_REG_AFULLQMBYPTHRPFWFQ_RT_OFFSET, QM_WFQ_UPPER_BOUND);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
199
static void ecore_enable_vport_rl(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
202
STORE_RT_REG(p_hwfn, QM_REG_RLGLBLENABLE_RT_OFFSET, vport_rl_en ? 1 : 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
206
STORE_RT_REG(p_hwfn, QM_REG_RLGLBLPERIOD_0_RT_OFFSET, QM_RL_PERIOD_CLK_25M);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
207
STORE_RT_REG(p_hwfn, QM_REG_RLGLBLPERIODTIMER_0_RT_OFFSET, QM_RL_PERIOD_CLK_25M);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
211
STORE_RT_REG(p_hwfn, QM_REG_AFULLQMBYPTHRGLBLRL_RT_OFFSET, QM_RL_UPPER_BOUND);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
216
static void ecore_enable_vport_wfq(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
219
STORE_RT_REG(p_hwfn, QM_REG_WFQVPENABLE_RT_OFFSET, vport_wfq_en ? 1 : 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
223
STORE_RT_REG(p_hwfn, QM_REG_AFULLQMBYPTHRVPWFQ_RT_OFFSET, QM_WFQ_UPPER_BOUND);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
229
static void ecore_cmdq_lines_voq_rt_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
237
OVERWRITE_RT_REG(p_hwfn, PBF_CMDQ_LINES_RT_OFFSET(voq), (u32)cmdq_lines);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
238
STORE_RT_REG(p_hwfn, QM_REG_VOQCRDLINE_RT_OFFSET + voq, qm_line_crd);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
239
STORE_RT_REG(p_hwfn, QM_REG_VOQINITCRDLINE_RT_OFFSET + voq, qm_line_crd);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
243
static void ecore_cmdq_lines_rt_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
252
STORE_RT_REG(p_hwfn, PBF_CMDQ_LINES_RT_OFFSET(voq), 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
274
ecore_cmdq_lines_voq_rt_init(p_hwfn, voq, phys_lines_per_tc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
279
ecore_cmdq_lines_voq_rt_init(p_hwfn, LB_VOQ(port_id), PBF_CMDQ_PURE_LB_LINES);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
302
static void ecore_btb_blocks_rt_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
333
STORE_RT_REG(p_hwfn, PBF_BTB_GUARANTEED_RT_OFFSET(voq), phys_blocks);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
338
STORE_RT_REG(p_hwfn, PBF_BTB_GUARANTEED_RT_OFFSET(LB_VOQ(port_id)), pure_lb_blocks);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
343
static void ecore_tx_pq_map_rt_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
376
STORE_RT_REG(p_hwfn, QM_REG_PQTX2PF_0_RT_OFFSET + pq_group, (u32)(pf_id));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
379
STORE_RT_REG(p_hwfn, QM_REG_MAXPQSIZE_0_RT_OFFSET, QM_PQ_SIZE_256B(num_pf_cids));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
380
STORE_RT_REG(p_hwfn, QM_REG_MAXPQSIZE_1_RT_OFFSET, QM_PQ_SIZE_256B(num_vf_cids));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
404
STORE_RT_REG(p_hwfn, QM_REG_WFQVPMAP_RT_OFFSET + first_tx_pq_id, (voq << QM_WFQ_VP_PQ_VOQ_SHIFT) | (pf_id << QM_WFQ_VP_PQ_PF_SHIFT));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
409
DP_NOTICE(p_hwfn, true, "Invalid VPORT ID for rate limiter configuration\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
421
STORE_RT_REG(p_hwfn, QM_REG_TXPQMAP_RT_OFFSET + pq_id, *((u32*)&tx_pq_map));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
424
STORE_RT_REG(p_hwfn, QM_REG_BASEADDRTXPQ_RT_OFFSET + pq_id, mem_addr_4kb);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
439
STORE_RT_REG(p_hwfn, QM_REG_MAXPQSIZETXSEL_0_RT_OFFSET + i, tx_pq_vf_mask[i]);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
443
static void ecore_other_pq_map_rt_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
462
STORE_RT_REG(p_hwfn, QM_REG_PQOTHER2PF_0_RT_OFFSET + pq_group, (u32)(pf_id));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
465
STORE_RT_REG(p_hwfn, QM_REG_MAXPQSIZE_2_RT_OFFSET, QM_PQ_SIZE_256B(pq_size));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
469
STORE_RT_REG(p_hwfn, QM_REG_BASEADDROTHERPQ_RT_OFFSET + pq_id, mem_addr_4kb);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
477
static int ecore_pf_wfq_rt_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
493
DP_NOTICE(p_hwfn, true, "Invalid PF WFQ weight configuration\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
499
OVERWRITE_RT_REG(p_hwfn, crd_reg_offset + voq * MAX_NUM_PFS_BB, (u32)QM_WFQ_CRD_REG_SIGN_BIT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
502
STORE_RT_REG(p_hwfn, QM_REG_WFQPFUPPERBOUND_RT_OFFSET + pf_id, QM_WFQ_UPPER_BOUND | (u32)QM_WFQ_CRD_REG_SIGN_BIT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
503
STORE_RT_REG(p_hwfn, QM_REG_WFQPFWEIGHT_RT_OFFSET + pf_id, inc_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
511
static int ecore_pf_rl_rt_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
519
DP_NOTICE(p_hwfn, true, "Invalid PF rate limit configuration\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
523
STORE_RT_REG(p_hwfn, QM_REG_RLPFCRD_RT_OFFSET + pf_id, (u32)QM_RL_CRD_REG_SIGN_BIT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
524
STORE_RT_REG(p_hwfn, QM_REG_RLPFUPPERBOUND_RT_OFFSET + pf_id, QM_RL_UPPER_BOUND | (u32)QM_RL_CRD_REG_SIGN_BIT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
525
STORE_RT_REG(p_hwfn, QM_REG_RLPFINCVAL_RT_OFFSET + pf_id, inc_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
533
static int ecore_vp_wfq_rt_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
548
DP_NOTICE(p_hwfn, true, "Invalid VPORT WFQ weight configuration\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
556
STORE_RT_REG(p_hwfn, QM_REG_WFQVPCRD_RT_OFFSET + vport_pq_id, (u32)QM_WFQ_CRD_REG_SIGN_BIT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
557
STORE_RT_REG(p_hwfn, QM_REG_WFQVPWEIGHT_RT_OFFSET + vport_pq_id, inc_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
568
static int ecore_vport_rl_rt_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
577
DP_NOTICE(p_hwfn, true, "Invalid VPORT ID for rate limiter configuration\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
585
DP_NOTICE(p_hwfn, true, "Invalid VPORT rate-limit configuration\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
589
STORE_RT_REG(p_hwfn, QM_REG_RLGLBLCRD_RT_OFFSET + vport_id, (u32)QM_RL_CRD_REG_SIGN_BIT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
590
STORE_RT_REG(p_hwfn, QM_REG_RLGLBLUPPERBOUND_RT_OFFSET + vport_id, QM_RL_UPPER_BOUND | (u32)QM_RL_CRD_REG_SIGN_BIT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
591
STORE_RT_REG(p_hwfn, QM_REG_RLGLBLINCVAL_RT_OFFSET + vport_id, inc_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
597
static bool ecore_poll_on_qm_cmd_ready(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
604
reg_val = ecore_rd(p_hwfn, p_ptt, QM_REG_SDMCMDREADY);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
609
DP_VERBOSE(p_hwfn, ECORE_MSG_DEBUG, "Timeout when waiting for QM SDM command ready signal\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
616
static bool ecore_send_qm_cmd(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
622
if (!ecore_poll_on_qm_cmd_ready(p_hwfn, p_ptt))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
625
ecore_wr(p_hwfn, p_ptt, QM_REG_SDMCMDADDR, cmd_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
626
ecore_wr(p_hwfn, p_ptt, QM_REG_SDMCMDDATALSB, cmd_data_lsb);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
627
ecore_wr(p_hwfn, p_ptt, QM_REG_SDMCMDDATAMSB, cmd_data_msb);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
628
ecore_wr(p_hwfn, p_ptt, QM_REG_SDMCMDGO, 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
629
ecore_wr(p_hwfn, p_ptt, QM_REG_SDMCMDGO, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
631
return ecore_poll_on_qm_cmd_ready(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
649
int ecore_qm_common_rt_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
669
STORE_RT_REG(p_hwfn, QM_REG_AFULLOPRTNSTCCRDMASK_RT_OFFSET, mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
672
ecore_enable_pf_rl(p_hwfn, pf_rl_en);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
675
ecore_enable_pf_wfq(p_hwfn, pf_wfq_en);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
678
ecore_enable_vport_rl(p_hwfn, vport_rl_en);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
681
ecore_enable_vport_wfq(p_hwfn, vport_wfq_en);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
684
ecore_cmdq_lines_rt_init(p_hwfn, max_ports_per_engine, max_phys_tcs_per_port, port_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
687
ecore_btb_blocks_rt_init(p_hwfn, max_ports_per_engine, max_phys_tcs_per_port, port_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
692
int ecore_qm_pf_rt_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
723
ecore_other_pq_map_rt_init(p_hwfn, port_id, pf_id, num_pf_cids, num_tids, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
727
ecore_tx_pq_map_rt_init(p_hwfn, p_ptt, port_id, pf_id, max_phys_tcs_per_port, is_first_pf, num_pf_cids, num_vf_cids,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
732
if (ecore_pf_wfq_rt_init(p_hwfn, port_id, pf_id, pf_wfq, max_phys_tcs_per_port, num_pf_pqs + num_vf_pqs, pq_params))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
736
if (ecore_pf_rl_rt_init(p_hwfn, pf_id, pf_rl))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
740
if (ecore_vp_wfq_rt_init(p_hwfn, num_vports, vport_params))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
744
if (ecore_vport_rl_rt_init(p_hwfn, start_vport, num_vports, vport_params))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
750
int ecore_init_pf_wfq(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
759
DP_NOTICE(p_hwfn, true, "Invalid PF WFQ weight configuration\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
763
ecore_wr(p_hwfn, p_ptt, QM_REG_WFQPFWEIGHT + pf_id * 4, inc_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
768
int ecore_init_pf_rl(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
777
DP_NOTICE(p_hwfn, true, "Invalid PF rate limit configuration\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
781
ecore_wr(p_hwfn, p_ptt, QM_REG_RLPFCRD + pf_id * 4, (u32)QM_RL_CRD_REG_SIGN_BIT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
782
ecore_wr(p_hwfn, p_ptt, QM_REG_RLPFINCVAL + pf_id * 4, inc_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
787
int ecore_init_vport_wfq(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
798
DP_NOTICE(p_hwfn, true, "Invalid VPORT WFQ weight configuration\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
805
ecore_wr(p_hwfn, p_ptt, QM_REG_WFQVPWEIGHT + vport_pq_id * 4, inc_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
812
int ecore_init_vport_rl(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
820
DP_NOTICE(p_hwfn, true, "Invalid VPORT ID for rate limiter configuration\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
826
DP_NOTICE(p_hwfn, true, "Invalid VPORT rate-limit configuration\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
830
ecore_wr(p_hwfn, p_ptt, QM_REG_RLGLBLCRD + vport_id * 4, (u32)QM_RL_CRD_REG_SIGN_BIT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
831
ecore_wr(p_hwfn, p_ptt, QM_REG_RLGLBLINCVAL + vport_id * 4, inc_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
836
bool ecore_send_qm_stop_cmd(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
862
if (!ecore_send_qm_cmd(p_hwfn, p_ptt, QM_STOP_CMD_ADDR, cmd_arr[0], cmd_arr[1]))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
901
void ecore_init_nig_ets(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
940
ecore_wr(p_hwfn, p_ptt, is_lb ? NIG_REG_LB_ARB_CLIENT_IS_STRICT : NIG_REG_TX_ARB_CLIENT_IS_STRICT, (sp_tc_map << tc_client_offset));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
943
ecore_wr(p_hwfn, p_ptt, is_lb ? NIG_REG_LB_ARB_CLIENT_IS_SUBJECT2WFQ : NIG_REG_TX_ARB_CLIENT_IS_SUBJECT2WFQ, (wfq_tc_map << tc_client_offset));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
957
ecore_wr(p_hwfn, p_ptt, tc_weight_base_addr + tc_weight_addr_diff * tc_client_offset, byte_weight);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
960
ecore_wr(p_hwfn, p_ptt, tc_bound_base_addr + tc_bound_addr_diff * tc_client_offset, NIG_ETS_UP_BOUND(byte_weight, req->mtu));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
964
void ecore_init_nig_lb_rl(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
973
ecore_wr(p_hwfn, p_ptt, NIG_REG_TX_LB_GLBRATELIMIT_CTRL, ctrl);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
979
ecore_wr(p_hwfn, p_ptt, NIG_REG_TX_LB_GLBRATELIMIT_INC_PERIOD, NIG_RL_PERIOD_CLK_25M);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
981
ecore_wr(p_hwfn, p_ptt, NIG_REG_TX_LB_GLBRATELIMIT_INC_VALUE, inc_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
982
ecore_wr(p_hwfn, p_ptt, NIG_REG_TX_LB_GLBRATELIMIT_MAX_VALUE, NIG_RL_MAX_VAL(inc_val, req->mtu));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
986
ecore_wr(p_hwfn, p_ptt, NIG_REG_TX_LB_GLBRATELIMIT_CTRL, ctrl);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
991
ecore_wr(p_hwfn, p_ptt, NIG_REG_LB_BRBRATELIMIT_CTRL, ctrl);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
997
ecore_wr(p_hwfn, p_ptt, NIG_REG_LB_BRBRATELIMIT_INC_PERIOD, NIG_RL_PERIOD_CLK_25M);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.c
999
ecore_wr(p_hwfn, p_ptt, NIG_REG_LB_BRBRATELIMIT_INC_VALUE, inc_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
121
int ecore_qm_pf_rt_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
150
int ecore_init_pf_wfq(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
165
int ecore_init_pf_rl(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
182
int ecore_init_vport_wfq(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
198
int ecore_init_vport_rl(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
216
bool ecore_send_qm_stop_cmd(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
237
void ecore_init_nig_ets(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
251
void ecore_init_nig_lb_rl(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
266
void ecore_init_nig_pri_tc_map(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
281
void ecore_init_prs_ets(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
297
void ecore_init_brb_ram(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
313
void ecore_set_engine_mf_ovlan_eth_type(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
325
void ecore_set_port_mf_ovlan_eth_type(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
339
void ecore_set_vxlan_dest_port(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
350
void ecore_set_vxlan_enable(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
362
void ecore_set_gre_enable(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
375
void ecore_set_geneve_dest_port(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
387
void ecore_set_geneve_enable(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
400
void ecore_set_gft_event_id_cm_hdr(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
410
void ecore_set_rfs_mode_disable(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
425
void ecore_set_rfs_mode_enable(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
447
void ecore_config_vf_zone_size_mode(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
460
u32 ecore_get_mstorm_queue_stat_offset(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
473
u32 ecore_get_mstorm_eth_vf_prods_offset(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
485
void ecore_enable_context_validation(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
497
void ecore_calc_session_ctx_validation(struct ecore_hwfn * p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
513
void ecore_calc_task_ctx_validation(struct ecore_hwfn * p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_fw_funcs.h
80
int ecore_qm_common_rt_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
103
u32 *p_init_val = &p_hwfn->rt_data.init_val[rt_offset];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
104
bool *p_valid = &p_hwfn->rt_data.b_valid[rt_offset];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
119
ecore_wr(p_hwfn, p_ptt, addr + (i << 2),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
129
rc = ecore_dmae_host2grc(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
142
enum _ecore_status_t ecore_init_alloc(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
144
struct ecore_rt_data *rt_data = &p_hwfn->rt_data;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
146
if (IS_VF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
149
rt_data->b_valid = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
154
rt_data->init_val = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
157
OSAL_FREE(p_hwfn->p_dev, rt_data->b_valid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
165
void ecore_init_free(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
167
OSAL_FREE(p_hwfn->p_dev, p_hwfn->rt_data.init_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
168
p_hwfn->rt_data.init_val = OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
169
OSAL_FREE(p_hwfn->p_dev, p_hwfn->rt_data.b_valid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
170
p_hwfn->rt_data.b_valid = OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
173
static enum _ecore_status_t ecore_init_array_dmae(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
183
if ((CHIP_REV_IS_SLOW(p_hwfn->p_dev) && (size < 16)) ||
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
192
ecore_wr(p_hwfn, p_ptt, addr + (i << 2), data[i]);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
194
rc = ecore_dmae_host2grc(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
203
static enum _ecore_status_t ecore_init_fill_dmae(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
212
return ecore_dmae_host2grc(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
218
static void ecore_init_fill(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
225
ecore_wr(p_hwfn, p_ptt, addr, fill);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
229
static enum _ecore_status_t ecore_init_cmd_array(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
241
struct ecore_dev *p_dev = p_hwfn->p_dev;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
259
OSAL_MEMSET(p_hwfn->unzip_buf, 0, max_size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
261
output_len = OSAL_UNZIP_DATA(p_hwfn, input_len,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
263
max_size, (u8 *)p_hwfn->unzip_buf);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
265
rc = ecore_init_array_dmae(p_hwfn, p_ptt, addr, 0,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
267
p_hwfn->unzip_buf,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
270
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
275
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
290
rc = ecore_init_array_dmae(p_hwfn, p_ptt, addr,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
302
rc = ecore_init_array_dmae(p_hwfn, p_ptt, addr,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
313
static enum _ecore_status_t ecore_init_cmd_wr(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
325
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
334
ecore_wr(p_hwfn, p_ptt, addr, data);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
339
rc = ecore_init_fill_dmae(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
342
ecore_init_fill(p_hwfn, p_ptt, addr, 0, data);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
345
rc = ecore_init_cmd_array(p_hwfn, p_ptt, p_cmd,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
349
ecore_init_rt(p_hwfn, p_ptt, addr,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
375
static void ecore_init_cmd_rd(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
389
if (CHIP_REV_IS_EMUL(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
393
val = ecore_rd(p_hwfn, p_ptt, addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
409
DP_ERR(p_hwfn, "Invalid poll comparison type %08x\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
419
val = ecore_rd(p_hwfn, p_ptt, addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
423
DP_ERR(p_hwfn, "Timeout when polling reg: 0x%08x [ Waiting-for: %08x Got: %08x (comparsion %08x)]\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
430
static void ecore_init_cmd_cb(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
434
DP_NOTICE(p_hwfn, true, "Currently init values have no need of callbacks\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
437
static u8 ecore_init_cmd_mode_match(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
440
struct ecore_dev *p_dev = p_hwfn->p_dev;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
448
return ecore_init_cmd_mode_match(p_hwfn, p_offset, modes) ^ 1;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
450
arg1 = ecore_init_cmd_mode_match(p_hwfn, p_offset, modes);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
451
arg2 = ecore_init_cmd_mode_match(p_hwfn, p_offset, modes);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
454
arg1 = ecore_init_cmd_mode_match(p_hwfn, p_offset, modes);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
455
arg2 = ecore_init_cmd_mode_match(p_hwfn, p_offset, modes);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
463
static u32 ecore_init_cmd_mode(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
468
if (ecore_init_cmd_mode_match(p_hwfn, &offset, modes))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
475
static u32 ecore_init_cmd_phase(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
490
enum _ecore_status_t ecore_init_run(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
496
struct ecore_dev *p_dev = p_hwfn->p_dev;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
506
p_hwfn->unzip_buf = OSAL_ZALLOC(p_hwfn->p_dev, GFP_ATOMIC,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
508
if (!p_hwfn->unzip_buf) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
509
DP_NOTICE(p_hwfn, true, "Failed to allocate unzip buffer\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
520
rc = ecore_init_cmd_wr(p_hwfn, p_ptt, &cmd->write,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
525
ecore_init_cmd_rd(p_hwfn, p_ptt, &cmd->read);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
529
cmd_num += ecore_init_cmd_mode(p_hwfn, &cmd->if_mode,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
533
cmd_num += ecore_init_cmd_phase(p_hwfn, &cmd->if_phase,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
546
ecore_init_cmd_cb(p_hwfn, p_ptt, &cmd->callback);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
554
OSAL_FREE(p_hwfn->p_dev, p_hwfn->unzip_buf);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
555
p_hwfn->unzip_buf = OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
560
void ecore_gtt_init(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
566
if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
578
ecore_wr(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
586
ecore_ptt_invalidate(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
587
val = ecore_rd(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
592
DP_ERR(p_hwfn, "PGLUE_B_REG_INIT_DONE didn't complete\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
601
REG_WR(p_hwfn, gtt_base + i * PXP_GLOBAL_ENTRY_SIZE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
68
void ecore_init_clear_rt_data(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
73
p_hwfn->rt_data.b_valid[i] = false;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
76
void ecore_init_store_rt_reg(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
79
p_hwfn->rt_data.init_val[rt_offset] = val;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
80
p_hwfn->rt_data.b_valid[rt_offset] = true;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
83
void ecore_init_store_rt_agg(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
90
p_hwfn->rt_data.init_val[rt_offset + i] = p_val[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
91
p_hwfn->rt_data.b_valid[rt_offset + i] = true;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.c
96
static enum _ecore_status_t ecore_init_rt(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.h
101
void ecore_init_store_rt_reg(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.h
121
void ecore_init_store_rt_agg(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.h
137
void ecore_gtt_init(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.h
60
enum _ecore_status_t ecore_init_run(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.h
74
enum _ecore_status_t ecore_init_alloc(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.h
82
void ecore_init_free(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_init_ops.h
91
void ecore_init_clear_rt_data(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1024
ecore_int_deassertion_aeu_bit(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1038
DIRECT_REG_WR(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1039
(u8 OSAL_IOMEM*)p_hwfn->regview +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1046
aeu_mask = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1049
ecore_wr(p_hwfn, p_hwfn->p_dpc_ptt, IGU_REG_ATTENTION_ENABLE, aeu_mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1057
static enum _ecore_status_t ecore_int_attentions(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1059
struct ecore_sb_attn_info *p_sb_attn_sw = p_hwfn->p_sb_attn;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1086
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1091
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1094
DP_VERBOSE(p_hwfn, ECORE_MSG_INTR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1098
rc = ecore_int_assertion(p_hwfn, asserted_bits);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1104
rc = ecore_int_deassertion(p_hwfn, deasserted_bits);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1109
static void ecore_sb_ack_attn(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1121
DIRECT_REG_WR(p_hwfn, igu_addr, igu_ack.sb_id_and_flags);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1126
OSAL_MMIOWB(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1127
OSAL_BARRIER(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1132
struct ecore_hwfn *p_hwfn = (struct ecore_hwfn *)hwfn_cookie;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1139
if (!p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1142
if (!p_hwfn->p_sp_sb) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1143
DP_ERR(p_hwfn->p_dev, "DPC called - no p_sp_sb\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1147
sb_info = &p_hwfn->p_sp_sb->sb_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1148
arr_size = OSAL_ARRAY_SIZE(p_hwfn->p_sp_sb->pi_info_arr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1150
DP_ERR(p_hwfn->p_dev, "Status block is NULL - cannot ack interrupts\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1154
if (!p_hwfn->p_sb_attn) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1155
DP_ERR(p_hwfn->p_dev, "DPC called - no p_sb_attn");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1158
sb_attn = p_hwfn->p_sb_attn;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1160
DP_VERBOSE(p_hwfn, ECORE_MSG_INTR, "DPC Called! (hwfn %p %d)\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1161
p_hwfn, p_hwfn->my_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1170
DP_ERR(p_hwfn->p_dev, "Interrupt Status block is NULL - cannot check for new interrupts!\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1174
DP_VERBOSE(p_hwfn->p_dev, ECORE_MSG_INTR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1180
DP_ERR(p_hwfn->p_dev, "Attentions Status block is NULL - cannot check for new attentions!\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1184
rc |= ecore_attn_update_idx(p_hwfn, sb_attn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1185
DP_VERBOSE(p_hwfn->p_dev, ECORE_MSG_INTR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1197
if (!p_hwfn->p_dpc_ptt) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1198
DP_NOTICE(p_hwfn->p_dev, true, "Failed to allocate PTT\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1204
ecore_int_attentions(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1215
pi_info = &p_hwfn->p_sp_sb->pi_info_arr[pi];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1217
pi_info->comp_cb(p_hwfn, pi_info->cookie);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1225
ecore_sb_ack_attn(p_hwfn, sb_info->igu_addr, sb_attn->index);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1231
static void ecore_int_sb_attn_free(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1233
struct ecore_sb_attn_info *p_sb = p_hwfn->p_sb_attn;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1239
OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev, p_sb->sb_attn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1241
SB_ATTN_ALIGNED_SIZE(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1244
OSAL_FREE(p_hwfn->p_dev, p_sb);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1245
p_hwfn->p_sb_attn = OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1248
static void ecore_int_sb_attn_setup(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
125
enum _ecore_status_t (*cb)(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1251
struct ecore_sb_attn_info *sb_info = p_hwfn->p_sb_attn;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1259
ecore_wr(p_hwfn, p_ptt, IGU_REG_ATTN_MSG_ADDR_L,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1260
DMA_LO(p_hwfn->p_sb_attn->sb_phys));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1261
ecore_wr(p_hwfn, p_ptt, IGU_REG_ATTN_MSG_ADDR_H,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1262
DMA_HI(p_hwfn->p_sb_attn->sb_phys));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1265
static void ecore_int_sb_attn_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1270
struct ecore_sb_attn_info *sb_info = p_hwfn->p_sb_attn;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1287
if (ecore_int_is_parity_flag(p_hwfn, p_aeu))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1292
DP_VERBOSE(p_hwfn, ECORE_MSG_INTR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1298
sb_info->mfw_attn_addr = (p_hwfn->rel_pf_id << 3) +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1301
ecore_int_sb_attn_setup(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1304
static enum _ecore_status_t ecore_int_sb_attn_alloc(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1307
struct ecore_dev *p_dev = p_hwfn->p_dev;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1321
SB_ATTN_ALIGNED_SIZE(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1329
p_hwfn->p_sb_attn = p_sb;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1330
ecore_int_sb_attn_init(p_hwfn, p_ptt, p_virt, p_phys);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1339
void ecore_init_cau_sb_entry(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1343
struct ecore_dev *p_dev = p_hwfn->p_dev;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
137
static enum _ecore_status_t ecore_mcp_attn_cb(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1386
static void _ecore_int_cau_conf_pi(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
139
u32 tmp = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt, MCP_REG_CPU_STATE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1395
if (IS_VF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1408
if (p_hwfn->hw_init_done) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1409
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
141
DP_INFO(p_hwfn->p_dev, "MCP_REG_CPU_STATE: %08x - Masking...\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1413
STORE_RT_REG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1419
void ecore_int_cau_conf_pi(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1425
_ecore_int_cau_conf_pi(p_hwfn, p_ptt, p_sb->igu_sb_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1429
void ecore_int_cau_conf_sb(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
143
ecore_wr(p_hwfn, p_hwfn->p_dpc_ptt, MCP_REG_CPU_EVENT_MASK,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1436
ecore_init_cau_sb_entry(p_hwfn, &sb_entry, p_hwfn->rel_pf_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1439
if (p_hwfn->hw_init_done) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1443
ecore_dmae_host2grc(p_hwfn, p_ptt, (u64)(osal_uintptr_t)&phys_addr,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1446
ecore_dmae_host2grc(p_hwfn, p_ptt, (u64)(osal_uintptr_t)&sb_entry,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1451
STORE_RT_REG_AGG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1455
STORE_RT_REG_AGG(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1461
if (p_hwfn->p_dev->int_coalescing_mode == ECORE_COAL_MODE_ENABLE) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1465
u8 num_tc = p_hwfn->hw_info.num_hw_tc;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1471
if (p_hwfn->p_dev->rx_coalesce_usecs <= 0x7F)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1473
else if (p_hwfn->p_dev->rx_coalesce_usecs <= 0xFF)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1477
timeset = (u8)(p_hwfn->p_dev->rx_coalesce_usecs >> timer_res);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1478
_ecore_int_cau_conf_pi(p_hwfn, p_ptt, igu_sb_id, RX_PI,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1482
if (p_hwfn->p_dev->tx_coalesce_usecs <= 0x7F)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1484
else if (p_hwfn->p_dev->tx_coalesce_usecs <= 0xFF)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1488
timeset = (u8)(p_hwfn->p_dev->tx_coalesce_usecs >> timer_res);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1490
_ecore_int_cau_conf_pi(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1498
void ecore_int_sb_setup(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1506
if (IS_PF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1507
ecore_int_cau_conf_sb(p_hwfn, p_ptt, sb_info->sb_phys,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1512
ecore_get_igu_free_sb(struct ecore_hwfn *p_hwfn, bool b_is_pf)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1517
for (igu_id = 0; igu_id < ECORE_MAPPING_MEMORY_SIZE(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1519
p_block = &p_hwfn->hw_info.p_igu_info->entry[igu_id];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1533
static u16 ecore_get_pf_igu_sb_id(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1539
for (igu_id = 0; igu_id < ECORE_MAPPING_MEMORY_SIZE(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1541
p_block = &p_hwfn->hw_info.p_igu_info->entry[igu_id];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1554
u16 ecore_get_igu_sb_id(struct ecore_hwfn *p_hwfn, u16 sb_id)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1560
igu_sb_id = p_hwfn->hw_info.p_igu_info->igu_dsb_id;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1561
else if (IS_PF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1562
igu_sb_id = ecore_get_pf_igu_sb_id(p_hwfn, sb_id + 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1564
igu_sb_id = ecore_vf_get_igu_sb_id(p_hwfn, sb_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1567
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1571
DP_VERBOSE(p_hwfn, ECORE_MSG_INTR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1574
DP_VERBOSE(p_hwfn, ECORE_MSG_INTR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1580
enum _ecore_status_t ecore_int_sb_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1590
sb_info->igu_sb_id = ecore_get_igu_sb_id(p_hwfn, sb_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1597
if (IS_PF(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1601
p_info = p_hwfn->hw_info.p_igu_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1608
ecore_vf_set_sb_info(p_hwfn, sb_id, sb_info);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1613
sb_info->p_hwfn = p_hwfn;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1615
sb_info->p_dev = p_hwfn->p_dev;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1620
if (IS_PF(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1621
sb_info->igu_addr = (u8 OSAL_IOMEM*)p_hwfn->regview +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1627
(u8 OSAL_IOMEM*)p_hwfn->regview +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1634
ecore_int_sb_setup(p_hwfn, p_ptt, sb_info);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1639
enum _ecore_status_t ecore_int_sb_release(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1653
if (IS_VF(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1654
ecore_vf_set_sb_info(p_hwfn, sb_id, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1658
p_info = p_hwfn->hw_info.p_igu_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1663
DP_ERR(p_hwfn, "Do Not free sp sb using this function");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1675
static void ecore_int_sp_sb_free(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1677
struct ecore_sb_sp_info *p_sb = p_hwfn->p_sp_sb;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1683
OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1686
SB_ALIGNED_SIZE(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1689
OSAL_FREE(p_hwfn->p_dev, p_sb);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1690
p_hwfn->p_sp_sb = OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1693
static enum _ecore_status_t ecore_int_sp_sb_alloc(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1701
p_sb = OSAL_ALLOC(p_hwfn->p_dev, GFP_KERNEL, sizeof(*p_sb));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1703
DP_NOTICE(p_hwfn, true, "Failed to allocate `struct ecore_sb_info'\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1708
p_virt = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1710
SB_ALIGNED_SIZE(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1712
DP_NOTICE(p_hwfn, true, "Failed to allocate status block\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1713
OSAL_FREE(p_hwfn->p_dev, p_sb);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1719
p_hwfn->p_sp_sb = p_sb;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1720
ecore_int_sb_init(p_hwfn, p_ptt, &p_sb->sb_info,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1728
enum _ecore_status_t ecore_int_register_cb(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
173
static enum _ecore_status_t ecore_pswhst_attn_cb(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1734
struct ecore_sb_sp_info *p_sp_sb = p_hwfn->p_sp_sb;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
175
u32 tmp = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt, PSWHST_REG_VF_DISABLED_ERROR_VALID);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1754
enum _ecore_status_t ecore_int_unregister_cb(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1757
struct ecore_sb_sp_info *p_sp_sb = p_hwfn->p_sp_sb;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1768
u16 ecore_int_get_sp_sb_id(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1770
return p_hwfn->p_sp_sb->sb_info.igu_sb_id;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1773
void ecore_int_igu_enable_int(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1780
if (CHIP_REV_IS_FPGA(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1781
DP_INFO(p_hwfn, "FPGA - don't enable ATTN generation in IGU\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1786
p_hwfn->p_dev->int_mode = int_mode;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1787
switch (p_hwfn->p_dev->int_mode) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1805
ecore_wr(p_hwfn, p_ptt, IGU_REG_PF_CONFIGURATION, igu_pf_conf);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1808
static void ecore_int_igu_enable_attn(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
181
addr = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1812
if (CHIP_REV_IS_FPGA(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1813
DP_INFO(p_hwfn, "FPGA - Don't enable Attentions in IGU and MISC\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1819
ecore_wr(p_hwfn, p_ptt, IGU_REG_ATTENTION_ENABLE, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1820
ecore_wr(p_hwfn, p_ptt, IGU_REG_LEADING_EDGE_LATCH, 0xfff);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1821
ecore_wr(p_hwfn, p_ptt, IGU_REG_TRAILING_EDGE_LATCH, 0xfff);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1822
ecore_wr(p_hwfn, p_ptt, IGU_REG_ATTENTION_ENABLE, 0xfff);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1825
OSAL_MMIOWB(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1828
ecore_wr(p_hwfn, p_ptt, MISC_REG_AEU_MASK_ATTN_IGU, 0xff);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
183
data = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1832
ecore_int_igu_enable(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1842
tmp = ecore_rd(p_hwfn, p_ptt, MISC_REG_AEU_ENABLE4_IGU_OUT_0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1844
ecore_wr(p_hwfn, p_ptt, MISC_REG_AEU_ENABLE4_IGU_OUT_0, tmp);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1846
ecore_int_igu_enable_attn(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1848
if ((int_mode != ECORE_INT_MODE_INTA) || IS_LEAD_HWFN(p_hwfn)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1849
rc = OSAL_SLOWPATH_IRQ_REQ(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
185
DP_INFO(p_hwfn->p_dev, "PF[0x%02x] VF [0x%02x] [Valid 0x%02x] Client [0x%02x] Write [0x%02x] Addr [0x%08x]\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1851
DP_NOTICE(p_hwfn, true, "Slowpath IRQ request failed\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1854
p_hwfn->b_int_requested = true;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1858
ecore_int_igu_enable_int(p_hwfn, p_ptt, int_mode);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1860
p_hwfn->b_int_enabled = 1;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1865
void ecore_int_igu_disable_int(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1868
p_hwfn->b_int_enabled = 0;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1870
if (IS_VF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1873
ecore_wr(p_hwfn, p_ptt, IGU_REG_PF_CONFIGURATION, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1877
static void ecore_int_igu_cleanup_sb(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1905
ecore_wr(p_hwfn, p_ptt, IGU_REG_COMMAND_REG_32LSB_DATA, data);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1907
OSAL_BARRIER(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1909
ecore_wr(p_hwfn, p_ptt, IGU_REG_COMMAND_REG_CTRL, cmd_ctrl);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1912
OSAL_MMIOWB(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1922
val = ecore_rd(p_hwfn, p_ptt, sb_bit_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1929
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1934
void ecore_int_igu_init_pure_rt_single(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1941
p_block = &p_hwfn->hw_info.p_igu_info->entry[igu_sb_id];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1942
DP_VERBOSE(p_hwfn, ECORE_MSG_INTR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1949
ecore_int_igu_cleanup_sb(p_hwfn, p_ptt, igu_sb_id, 1, opaque);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1952
ecore_int_igu_cleanup_sb(p_hwfn, p_ptt, igu_sb_id, 0, opaque);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1958
val = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1967
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1973
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1977
void ecore_int_igu_init_pure_rt(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1982
struct ecore_igu_info *p_info = p_hwfn->hw_info.p_igu_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1988
val = ecore_rd(p_hwfn, p_ptt, IGU_REG_BLOCK_CONFIGURATION);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
199
tmp = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1991
ecore_wr(p_hwfn, p_ptt, IGU_REG_BLOCK_CONFIGURATION, val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
1995
igu_sb_id < ECORE_MAPPING_MEMORY_SIZE(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2004
ecore_int_igu_init_pure_rt_single(p_hwfn, p_ptt, igu_sb_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2005
p_hwfn->hw_info.opaque_fid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2010
ecore_int_igu_init_pure_rt_single(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2012
p_hwfn->hw_info.opaque_fid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2016
int ecore_int_igu_reset_cam(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2019
struct ecore_igu_info *p_info = p_hwfn->hw_info.p_igu_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2025
if (!RESC_NUM(p_hwfn, ECORE_SB)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2037
if (p_info->usage.cnt != RESC_NUM(p_hwfn, ECORE_SB) - 1) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2038
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
204
addr = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2040
RESC_NUM(p_hwfn, ECORE_SB) - 1,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2042
p_info->usage.cnt = RESC_NUM(p_hwfn, ECORE_SB) - 1;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2046
if (IS_PF_SRIOV(p_hwfn)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2047
u16 vfs = p_hwfn->p_dev->p_iov_info->total_vfs;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2050
DP_VERBOSE(p_hwfn, ECORE_MSG_INTR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
206
data = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2061
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
208
length = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2089
igu_sb_id < ECORE_MAPPING_MEMORY_SIZE(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2098
p_block->function_id = p_hwfn->rel_pf_id;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2106
p_block->function_id = p_hwfn->rel_pf_id;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
211
DP_INFO(p_hwfn->p_dev, "Incorrect access to %08x of length %08x - PF [%02x] VF [%04x] [valid %02x] client [%02x] write [%02x] Byte-Enable [%04x] [%08x]\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2114
p_hwfn->p_dev->p_iov_info->first_vf_in_pf +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2136
rval = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2141
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2146
DP_VERBOSE(p_hwfn, ECORE_MSG_INTR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2157
int ecore_int_igu_reset_cam_default(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2160
struct ecore_sb_cnt_info *p_cnt = &p_hwfn->hw_info.p_igu_info->usage;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2174
return ecore_int_igu_reset_cam(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2177
static void ecore_int_igu_read_cam_block(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2181
u32 val = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2185
p_block = &p_hwfn->hw_info.p_igu_info->entry[igu_sb_id];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2196
enum _ecore_status_t ecore_int_igu_read_cam(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2204
p_hwfn->hw_info.p_igu_info = OSAL_ZALLOC(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2207
if (!p_hwfn->hw_info.p_igu_info)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2209
p_igu_info = p_hwfn->hw_info.p_igu_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2215
if (p_hwfn->p_dev->p_iov_info) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2216
struct ecore_hw_sriov_info *p_iov = p_hwfn->p_dev->p_iov_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2223
igu_sb_id < ECORE_MAPPING_MEMORY_SIZE(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2226
ecore_int_igu_read_cam_block(p_hwfn, p_ptt, igu_sb_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2230
(p_block->function_id == p_hwfn->rel_pf_id)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2262
(p_hwfn->abs_pf_id == 0))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2263
DP_VERBOSE(p_hwfn, ECORE_MSG_INTR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2270
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2280
DP_VERBOSE(p_hwfn, ECORE_MSG_INTR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2289
ecore_int_igu_relocate_sb(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2292
struct ecore_igu_info *p_info = p_hwfn->hw_info.p_igu_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2297
if (IS_VF(p_hwfn->p_dev) || !IS_PF_SRIOV(p_hwfn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2304
DP_INFO(p_hwfn, "Can't relocate SBs as MFW is too old.\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2312
igu_sb_id = ecore_get_pf_igu_sb_id(p_hwfn, sb_id + 1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2321
if (ecore_get_pf_igu_sb_id(p_hwfn, sb_id + 1) !=
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2330
for (; igu_sb_id < ECORE_MAPPING_MEMORY_SIZE(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2346
if (igu_sb_id == ECORE_MAPPING_MEMORY_SIZE(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2347
DP_VERBOSE(p_hwfn, (ECORE_MSG_INTR | ECORE_MSG_IOV),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2359
vf_num = (u16)p_hwfn->p_dev->p_iov_info->first_vf_in_pf;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2374
p_hwfn->hw_info.feat_num[ECORE_PF_L2_QUE]--;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2375
p_hwfn->hw_info.feat_num[ECORE_VF_L2_QUE]++;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2378
p_block->function_id = p_hwfn->rel_pf_id;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2387
p_hwfn->hw_info.feat_num[ECORE_PF_L2_QUE]++;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2388
p_hwfn->hw_info.feat_num[ECORE_VF_L2_QUE]--;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2399
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2403
ecore_int_cau_conf_sb(p_hwfn, p_ptt, 0,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2407
DP_VERBOSE(p_hwfn, ECORE_MSG_INTR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2420
void ecore_int_igu_init_rt(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2424
STORE_RT_REG(p_hwfn, IGU_REG_PF_CONFIGURATION_RT_OFFSET, igu_pf_conf);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2431
u64 ecore_int_igu_read_sisr_reg(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2436
intr_status_lo = REG_RD(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2439
intr_status_hi = REG_RD(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2447
static void ecore_int_sp_dpc_setup(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2449
OSAL_DPC_INIT(p_hwfn->sp_dpc, p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2450
p_hwfn->b_sp_dpc_enabled = true;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2453
static enum _ecore_status_t ecore_int_sp_dpc_alloc(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2455
p_hwfn->sp_dpc = OSAL_DPC_ALLOC(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2456
if (!p_hwfn->sp_dpc)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2462
static void ecore_int_sp_dpc_free(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2464
OSAL_FREE(p_hwfn->p_dev, p_hwfn->sp_dpc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2465
p_hwfn->sp_dpc = OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2468
enum _ecore_status_t ecore_int_alloc(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2473
rc = ecore_int_sp_dpc_alloc(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2475
DP_ERR(p_hwfn->p_dev, "Failed to allocate sp dpc mem\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2479
rc = ecore_int_sp_sb_alloc(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2481
DP_ERR(p_hwfn->p_dev, "Failed to allocate sp sb mem\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2485
rc = ecore_int_sb_attn_alloc(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2487
DP_ERR(p_hwfn->p_dev, "Failed to allocate sb attn mem\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2492
void ecore_int_free(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2494
ecore_int_sp_sb_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2495
ecore_int_sb_attn_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2496
ecore_int_sp_dpc_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2499
void ecore_int_setup(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2501
if (!p_hwfn || !p_hwfn->p_sp_sb || !p_hwfn->p_sb_attn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2504
ecore_int_sb_setup(p_hwfn, p_ptt, &p_hwfn->p_sp_sb->sb_info);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2505
ecore_int_sb_attn_setup(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2506
ecore_int_sp_dpc_setup(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2509
void ecore_int_get_num_sbs(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2512
struct ecore_igu_info *p_igu_info = p_hwfn->hw_info.p_igu_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2534
enum _ecore_status_t ecore_int_set_timer_res(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2541
if (!p_hwfn->hw_init_done) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2542
DP_ERR(p_hwfn, "hardware not initialized yet\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2546
rc = ecore_dmae_grc2host(p_hwfn, p_ptt, CAU_REG_SB_VAR_MEMORY +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2550
DP_ERR(p_hwfn, "dmae_grc2host failed %d\n", rc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2559
rc = ecore_dmae_host2grc(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2564
DP_ERR(p_hwfn, "dmae_host2grc failed %d\n", rc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2571
enum _ecore_status_t ecore_int_get_sb_dbg(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2579
if (IS_VF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2582
if (sbid > NUM_OF_SBS(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2585
p_info->igu_prod = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2587
p_info->igu_cons = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
2591
p_info->pi[i] = (u16)ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
263
static enum _ecore_status_t ecore_grc_attn_cb(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
270
tmp = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
276
tmp = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
278
tmp2 = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
281
DP_INFO(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
297
ecore_wr(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
315
static enum _ecore_status_t ecore_pglub_rbc_attn_cb(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
319
tmp = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
324
addr_lo = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
326
addr_hi = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
328
details = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
331
DP_INFO(p_hwfn, "Illegal write by chip to [%08x:%08x] blocked. Details: %08x [PFID %02x, VFID %02x, VF_VALID %02x] Details2 %08x [Was_error %02x BME deassert %02x FID_enable deassert %02x]\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
342
tmp = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
347
addr_lo = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
349
addr_hi = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
351
details = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
354
DP_INFO(p_hwfn, "Illegal read by chip from [%08x:%08x] blocked. Details: %08x [PFID %02x, VFID %02x, VF_VALID %02x] Details2 %08x [Was_error %02x BME deassert %02x FID_enable deassert %02x]\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
365
tmp = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
368
DP_INFO(p_hwfn, "ICPL eror - %08x\n", tmp);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
370
tmp = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
375
addr_lo = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
377
addr_hi = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
380
DP_INFO(p_hwfn, "ICPL eror - %08x [Address %08x:%08x]\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
384
tmp = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
389
addr_lo = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
391
addr_hi = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
393
details = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
396
DP_INFO(p_hwfn, "ILT error - Details %08x Details2 %08x [Address %08x:%08x]\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
401
ecore_wr(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
407
static enum _ecore_status_t ecore_fw_assertion(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
409
DP_NOTICE(p_hwfn, false, "FW assertion!\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
411
ecore_hw_err_notify(p_hwfn, ECORE_HW_ERR_FW_ASSERT);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
417
ecore_general_attention_35(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
419
DP_INFO(p_hwfn, "General attention 35!\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
429
static enum _ecore_status_t ecore_dorq_attn_cb(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
433
reason = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt, DORQ_REG_DB_DROP_REASON) &
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
436
u32 details = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
439
DP_INFO(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
441
ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
451
static enum _ecore_status_t ecore_tm_attn_cb(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
454
if (CHIP_REV_IS_EMUL_B0(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
455
u32 val = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
464
DP_INFO(p_hwfn, "TM attention on emulation - most likely results of clock-ratios\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
465
val = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt, TM_REG_INT_MASK_1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
468
ecore_wr(p_hwfn, p_hwfn->p_dpc_ptt, TM_REG_INT_MASK_1, val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
656
ecore_int_aeu_translate(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
659
if (!ECORE_IS_BB(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
669
static bool ecore_int_is_parity_flag(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
672
return !!(ecore_int_aeu_translate(p_hwfn, p_bit)->flags &
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
699
static u16 ecore_attn_update_idx(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
704
OSAL_MMIOWB(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
712
OSAL_MMIOWB(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
724
static enum _ecore_status_t ecore_int_assertion(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
727
struct ecore_sb_attn_info *sb_attn_sw = p_hwfn->p_sb_attn;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
731
igu_mask = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
733
DP_VERBOSE(p_hwfn, ECORE_MSG_INTR, "IGU mask: 0x%08x --> 0x%08x\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
736
ecore_wr(p_hwfn, p_hwfn->p_dpc_ptt, IGU_REG_ATTENTION_ENABLE, igu_mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
738
DP_VERBOSE(p_hwfn, ECORE_MSG_INTR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
746
ecore_mcp_handle_events(p_hwfn, p_hwfn->p_dpc_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
748
ecore_wr(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
753
DIRECT_REG_WR(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
754
(u8 OSAL_IOMEM*)p_hwfn->regview +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
759
DP_VERBOSE(p_hwfn, ECORE_MSG_INTR, "set cmd IGU: 0x%04x\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
765
static void ecore_int_attn_print(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
774
status = ecore_dbg_read_attn(p_hwfn, p_hwfn->p_dpc_ptt, id, type,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
778
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
782
ecore_dbg_parse_attn(p_hwfn, &attn_results);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
785
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
789
ecore_dbg_print_attn(p_hwfn, &attn_results);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
806
ecore_int_deassertion_aeu_bit(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
815
DP_INFO(p_hwfn, "Deasserted attention `%s'[%08x]\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
820
DP_INFO(p_hwfn, "`%s (attention)': Calling Callback function\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
822
rc = p_aeu->cb(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
830
ecore_int_attn_print(p_hwfn, p_aeu->block_index,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
835
DP_NOTICE(p_hwfn, true, "`%s': Fatal attention\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
838
ecore_hw_err_notify(p_hwfn, ECORE_HW_ERR_HW_ATTN);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
843
p_hwfn->p_dev->attn_clr_en) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
846
val = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt, aeu_en_reg);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
847
ecore_wr(p_hwfn, p_hwfn->p_dpc_ptt, aeu_en_reg, (val & mask));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
848
DP_INFO(p_hwfn, "`%s' - Disabled future attentions\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
863
static void ecore_int_deassertion_parity(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
869
DP_NOTICE(p_hwfn->p_dev, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
876
ecore_int_attn_print(p_hwfn, block_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
881
ecore_int_attn_print(p_hwfn, BLOCK_OPTE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
883
ecore_int_attn_print(p_hwfn, BLOCK_MCP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
889
val = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt, aeu_en_reg);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
890
ecore_wr(p_hwfn, p_hwfn->p_dpc_ptt, aeu_en_reg, val & mask);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
891
DP_INFO(p_hwfn, "`%s' - Disabled future parity errors\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
903
static enum _ecore_status_t ecore_int_deassertion(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
906
struct ecore_sb_attn_info *sb_attn_sw = p_hwfn->p_sb_attn;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
913
aeu_inv_arr[i] = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
916
DP_VERBOSE(p_hwfn, ECORE_MSG_INTR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
928
en = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt, aeu_en);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
938
if (ecore_int_is_parity_flag(p_hwfn, p_bit) &&
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
940
ecore_int_deassertion_parity(p_hwfn, p_bit,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
95
#define SB_ATTN_ALIGNED_SIZE(p_hwfn) \
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
96
ALIGNED_TYPE_SIZE(struct atten_status_block, p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
961
en = ecore_rd(p_hwfn, p_hwfn->p_dpc_ptt, aeu_en);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
979
p_aeu = ecore_int_aeu_translate(p_hwfn, p_aeu);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.c
983
if (ecore_int_is_parity_flag(p_hwfn, p_aeu)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.h
100
int ecore_int_igu_reset_cam_default(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.h
111
u16 ecore_get_igu_sb_id(struct ecore_hwfn *p_hwfn, u16 sb_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.h
122
ecore_get_igu_free_sb(struct ecore_hwfn *p_hwfn, bool b_is_pf);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.h
125
void ecore_int_igu_init_pure_rt(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.h
130
void ecore_int_igu_init_rt(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.h
143
enum _ecore_status_t ecore_int_igu_read_cam(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.h
48
#define SB_ALIGNED_SIZE(p_hwfn) \
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.h
49
ALIGNED_TYPE_SIZE(struct status_block, p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int.h
91
int ecore_int_igu_reset_cam(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int_api.h
133
DIRECT_REG_WR(sb_info->p_hwfn, sb_info->igu_addr,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int_api.h
146
static OSAL_INLINE void __internal_ram_wr(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int_api.h
150
static OSAL_INLINE void __internal_ram_wr(void *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int_api.h
159
DIRECT_REG_WR(p_hwfn, &((u32 OSAL_IOMEM *)addr)[i], data[i]);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int_api.h
163
static OSAL_INLINE void internal_ram_wr(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int_api.h
167
__internal_ram_wr(p_hwfn, addr, size, data);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int_api.h
197
void ecore_int_cau_conf_pi(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int_api.h
211
void ecore_int_igu_enable_int(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int_api.h
221
void ecore_int_igu_disable_int(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int_api.h
232
u64 ecore_int_igu_read_sisr_reg(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int_api.h
252
enum _ecore_status_t ecore_int_sb_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int_api.h
266
struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int_api.h
283
enum _ecore_status_t ecore_int_sb_release(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int_api.h
305
void ecore_int_get_num_sbs(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int_api.h
339
enum _ecore_status_t ecore_int_get_sb_dbg(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int_api.h
356
ecore_int_igu_relocate_sb(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_int_api.h
66
struct ecore_hwfn *p_hwfn;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
159
ecore_iov_get_vf_sw_mbx(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
222
ecore_iov_init_hw_for_vf(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
234
void ecore_iov_process_mbx_req(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
250
enum _ecore_status_t ecore_iov_release_hw_for_vf(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
263
enum _ecore_status_t ecore_iov_set_vf_ctx(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
275
enum _ecore_status_t ecore_iov_vf_flr_cleanup(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
288
ecore_iov_single_vf_flr_cleanup(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
302
void ecore_iov_set_link(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
317
void ecore_iov_get_link(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
331
bool ecore_iov_is_vf_pending_flr(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
347
bool ecore_iov_is_valid_vfid(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
361
ecore_iov_get_public_vf_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
370
void ecore_iov_pf_get_pending_events(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
382
enum _ecore_status_t ecore_iov_copy_vf_msg(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
393
void ecore_iov_bulletin_set_forced_mac(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
404
enum _ecore_status_t ecore_iov_bulletin_set_mac(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
419
ecore_iov_bulletin_set_forced_untagged_default(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
430
void ecore_iov_get_vfs_opaque_fid(struct ecore_hwfn *p_hwfn, int vfid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
441
void ecore_iov_bulletin_set_forced_vlan(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
450
bool ecore_iov_vf_has_vport_instance(struct ecore_hwfn *p_hwfn, int vfid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
461
enum _ecore_status_t ecore_iov_post_vf_bulletin(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
473
bool ecore_iov_is_vf_stopped(struct ecore_hwfn *p_hwfn, int vfid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
484
enum _ecore_status_t ecore_iov_spoofchk_set(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
49
#define IS_PF_SRIOV(p_hwfn) (!!((p_hwfn)->p_dev->p_iov_info))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
495
bool ecore_iov_spoofchk_get(struct ecore_hwfn *p_hwfn, int vfid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
505
bool ecore_iov_pf_sanity_check(struct ecore_hwfn *p_hwfn, int vfid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
51
#define IS_PF_SRIOV(p_hwfn) (0)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
514
u8 ecore_iov_vf_chains_per_pf(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
524
void ecore_iov_get_vf_req_virt_mbx_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
53
#define IS_PF_SRIOV_ALLOC(p_hwfn) (!!((p_hwfn)->pf_iov_info))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
537
void ecore_iov_get_vf_reply_virt_mbx_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
54
#define IS_PF_PDA(p_hwfn) 0 /* @@TBD Michalk */
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
567
u8 *ecore_iov_bulletin_get_forced_mac(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
578
u16 ecore_iov_bulletin_get_forced_vlan(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
590
enum _ecore_status_t ecore_iov_configure_tx_rate(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
604
enum _ecore_status_t ecore_iov_get_vf_stats(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
617
u8 ecore_iov_get_vf_num_rxqs(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
628
u8 ecore_iov_get_vf_num_active_rxqs(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
639
void *ecore_iov_get_vf_ctx(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
650
u8 ecore_iov_get_vf_num_sbs(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
661
bool ecore_iov_is_vf_wait_for_acquire(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
672
bool ecore_iov_is_vf_acquired_not_initialized(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
683
bool ecore_iov_is_vf_initialized(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
694
bool ecore_iov_is_vf_started(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
704
int ecore_iov_get_vf_min_rate(struct ecore_hwfn *p_hwfn, int vfid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
735
ecore_iov_pf_configure_vf_queue_coalesce(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
747
u16 ecore_iov_get_next_active_vf(struct ecore_hwfn *p_hwfn, u16 rel_vf_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
748
void ecore_iov_bulletin_set_udp_ports(struct ecore_hwfn *p_hwfn, int vfid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
754
static OSAL_INLINE enum _ecore_status_t ecore_iov_init_hw_for_vf(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt, struct ecore_iov_vf_init_params *p_params) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
755
static OSAL_INLINE void ecore_iov_process_mbx_req(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt, int vfid) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
756
static OSAL_INLINE enum _ecore_status_t ecore_iov_release_hw_for_vf(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt, u16 rel_vf_id) {return ECORE_SUCCESS;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
757
static OSAL_INLINE enum _ecore_status_t ecore_iov_set_vf_ctx(struct ecore_hwfn *p_hwfn, u16 vf_id, void *ctx) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
758
static OSAL_INLINE enum _ecore_status_t ecore_iov_vf_flr_cleanup(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
759
static OSAL_INLINE enum _ecore_status_t ecore_iov_single_vf_flr_cleanup(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt, u16 rel_vf_id) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
760
static OSAL_INLINE void ecore_iov_set_link(struct ecore_hwfn *p_hwfn, u16 vfid, struct ecore_mcp_link_params *params, struct ecore_mcp_link_state *link, struct ecore_mcp_link_capabilities *p_caps) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
761
static OSAL_INLINE void ecore_iov_get_link(struct ecore_hwfn *p_hwfn, u16 vfid, struct ecore_mcp_link_params *params, struct ecore_mcp_link_state *link, struct ecore_mcp_link_capabilities *p_caps) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
762
static OSAL_INLINE bool ecore_iov_is_vf_pending_flr(struct ecore_hwfn *p_hwfn, u16 rel_vf_id) {return false;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
763
static OSAL_INLINE bool ecore_iov_is_valid_vfid(struct ecore_hwfn *p_hwfn, int rel_vf_id, bool b_enabled_only) {return false;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
764
static OSAL_INLINE struct ecore_public_vf_info* ecore_iov_get_public_vf_info(struct ecore_hwfn *p_hwfn, u16 vfid, bool b_enabled_only) {return OSAL_NULL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
765
static OSAL_INLINE void ecore_iov_pf_add_pending_events(struct ecore_hwfn *p_hwfn, u8 vfid) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
766
static OSAL_INLINE void ecore_iov_pf_get_and_clear_pending_events(struct ecore_hwfn *p_hwfn, u64 *events) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
767
static OSAL_INLINE enum _ecore_status_t ecore_iov_copy_vf_msg(struct ecore_hwfn *p_hwfn, struct ecore_ptt *ptt, int vfid) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
768
static OSAL_INLINE void ecore_iov_bulletin_set_forced_mac(struct ecore_hwfn *p_hwfn, u8 *mac, int vfid) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
769
static OSAL_INLINE enum _ecore_status_t ecore_iov_bulletin_set_mac(struct ecore_hwfn *p_hwfn, u8 *mac, int vfid) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
770
static OSAL_INLINE enum _ecore_status_t ecore_iov_bulletin_set_forced_untagged_default(struct ecore_hwfn *p_hwfn, bool b_untagged_only, int vfid) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
771
static OSAL_INLINE void ecore_iov_get_vfs_opaque_fid(struct ecore_hwfn *p_hwfn, int vfid, u16 *opaque_fid) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
772
static OSAL_INLINE void ecore_iov_bulletin_set_forced_vlan(struct ecore_hwfn p_hwfn, u16 pvid, int vfid) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
774
static OSAL_INLINE bool ecore_iov_vf_has_vport_instance(struct ecore_hwfn *p_hwfn, int vfid) {return false;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
775
static OSAL_INLINE enum _ecore_status_t ecore_iov_post_vf_bulletin(struct ecore_hwfn *p_hwfn, int vfid, struct ecore_ptt *p_ptt) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
776
static OSAL_INLINE bool ecore_iov_is_vf_stopped(struct ecore_hwfn *p_hwfn, int vfid) {return false;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
777
static OSAL_INLINE enum _ecore_status_t ecore_iov_spoofchk_set(struct ecore_hwfn *p_hwfn, int vfid, bool val) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
778
static OSAL_INLINE bool ecore_iov_spoofchk_get(struct ecore_hwfn *p_hwfn, int vfid) {return false;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
779
static OSAL_INLINE bool ecore_iov_pf_sanity_check(struct ecore_hwfn *p_hwfn, int vfid) {return false;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
780
static OSAL_INLINE u8 ecore_iov_vf_chains_per_pf(struct ecore_hwfn *p_hwfn) {return 0;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
781
static OSAL_INLINE void ecore_iov_get_vf_req_virt_mbx_params(struct ecore_hwfn *p_hwfn, u16 rel_vf_id, void **pp_req_virt_addr, u16 *p_req_virt_size) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
782
static OSAL_INLINE void ecore_iov_get_vf_reply_virt_mbx_params(struct ecore_hwfn *p_hwfn, u16 rel_vf_id, void **pp_reply_virt_addr, u16 *p_reply_virt_size) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
785
static OSAL_INLINE u8 *ecore_iov_bulletin_get_forced_mac(struct ecore_hwfn *p_hwfn, u16 rel_vf_id) {return OSAL_NULL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
786
static OSAL_INLINE u16 ecore_iov_bulletin_get_forced_vlan(struct ecore_hwfn *p_hwfn, u16 rel_vf_id) {return 0;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
787
static OSAL_INLINE enum _ecore_status_t ecore_iov_configure_tx_rate(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt, int vfid, int val) { return ECORE_INVAL; }
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
788
static OSAL_INLINE enum _ecore_status_t ecore_iov_get_vf_stats(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt, int vfid, struct ecore_eth_stats *p_stats) { return ECORE_INVAL; }
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
790
static OSAL_INLINE u8 ecore_iov_get_vf_num_rxqs(struct ecore_hwfn *p_hwfn, u16 rel_vf_id) {return 0;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
791
static OSAL_INLINE u8 ecore_iov_get_vf_num_active_rxqs(struct ecore_hwfn *p_hwfn, u16 rel_vf_id) {return 0;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
792
static OSAL_INLINE void *ecore_iov_get_vf_ctx(struct ecore_hwfn *p_hwfn, u16 rel_vf_id) {return OSAL_NULL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
793
static OSAL_INLINE u8 ecore_iov_get_vf_num_sbs(struct ecore_hwfn *p_hwfn, u16 rel_vf_id) {return 0;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
794
static OSAL_INLINE bool ecore_iov_is_vf_wait_for_acquire(struct ecore_hwfn *p_hwfn, u16 rel_vf_id) {return false;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
795
static OSAL_INLINE bool ecore_iov_is_vf_acquired_not_initialized(struct ecore_hwfn *p_hwfn, u16 rel_vf_id) {return false;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
796
static OSAL_INLINE bool ecore_iov_is_vf_initialized(struct ecore_hwfn *p_hwfn, u16 rel_vf_id) {return false;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
797
static OSAL_INLINE int ecore_iov_get_vf_min_rate(struct ecore_hwfn *p_hwfn, int vfid) { return 0; }
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
800
static OSAL_INLINE void ecore_iov_bulletin_set_udp_ports(struct ecore_hwfn *p_hwfn, int vfid, u16 vxlan_port, u16 geneve_port) { return; }
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
801
static OSAL_INLINE u16 ecore_iov_get_next_active_vf(struct ecore_hwfn *p_hwfn, u16 rel_vf_id) { return E4_MAX_NUM_VFS; }
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iscsi.h
113
ecore_sp_iscsi_mac_update(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iscsi.h
132
ecore_sp_iscsi_conn_terminate(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iscsi.h
151
ecore_sp_iscsi_conn_clear_sq(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iscsi.h
55
enum _ecore_status_t ecore_iscsi_alloc(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iscsi.h
57
void ecore_iscsi_setup(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iscsi.h
59
void ecore_iscsi_free(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iscsi.h
61
void ecore_iscsi_free_connection(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iscsi.h
77
ecore_sp_iscsi_conn_offload(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iscsi.h
95
ecore_sp_iscsi_conn_update(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
100
pp_qids[i] = OSAL_VZALLOC(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1010
p_cid = ecore_eth_queue_to_cid_pf(p_hwfn, opaque_fid, p_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1014
if (IS_PF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1015
rc = ecore_eth_pf_rx_queue_start(p_hwfn, p_cid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1021
rc = ecore_vf_pf_rxq_start(p_hwfn, p_cid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1030
ecore_eth_queue_cid_release(p_hwfn, p_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1037
enum _ecore_status_t ecore_sp_eth_rx_queues_update(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1053
if (IS_VF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1054
return ecore_vf_pf_rxqs_update(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
107
OSAL_MUTEX_ALLOC(p_hwfn, &p_l2_info->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1073
rc = ecore_sp_init_request(p_hwfn, &p_ent,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1086
rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1095
ecore_eth_pf_rx_queue_stop(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1110
rc = ecore_sp_init_request(p_hwfn, &p_ent,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1129
return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
113
void ecore_l2_setup(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1132
enum _ecore_status_t ecore_eth_rx_queue_stop(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1140
if (IS_PF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1141
rc = ecore_eth_pf_rx_queue_stop(p_hwfn, p_cid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1145
rc = ecore_vf_pf_rxq_stop(p_hwfn, p_cid, cqe_completion);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1148
ecore_eth_queue_cid_release(p_hwfn, p_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
115
if (!ECORE_IS_L2_PERSONALITY(p_hwfn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1153
ecore_eth_txq_start_ramrod(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1169
rc = ecore_sp_init_request(p_hwfn, &p_ent,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
118
OSAL_MUTEX_INIT(&p_hwfn->p_l2_info->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1190
return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1194
ecore_eth_pf_tx_queue_start(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1203
rc = ecore_eth_txq_start_ramrod(p_hwfn, p_cid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1205
ecore_get_cm_pq_idx_mcos(p_hwfn, tc));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
121
void ecore_l2_free(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1211
p_hwfn->doorbells +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1218
ecore_eth_tx_queue_start(struct ecore_hwfn *p_hwfn, u16 opaque_fid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1227
p_cid = ecore_eth_queue_to_cid_pf(p_hwfn, opaque_fid, p_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1231
if (IS_PF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1232
rc = ecore_eth_pf_tx_queue_start(p_hwfn, p_cid, tc,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1236
rc = ecore_vf_pf_txq_start(p_hwfn, p_cid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1241
ecore_eth_queue_cid_release(p_hwfn, p_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1249
ecore_eth_pf_tx_queue_stop(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
125
if (!ECORE_IS_L2_PERSONALITY(p_hwfn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1261
rc = ecore_sp_init_request(p_hwfn, &p_ent,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1267
return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1270
enum _ecore_status_t ecore_eth_tx_queue_stop(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1276
if (IS_PF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1277
rc = ecore_eth_pf_tx_queue_stop(p_hwfn, p_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1279
rc = ecore_vf_pf_txq_stop(p_hwfn, p_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
128
if (p_hwfn->p_l2_info == OSAL_NULL)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1282
ecore_eth_queue_cid_release(p_hwfn, p_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1308
ecore_filter_ucast_common(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
131
if (p_hwfn->p_l2_info->pp_qid_usage == OSAL_NULL)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1324
rc = ecore_fw_vport(p_hwfn, p_filter_cmd->vport_to_remove_from,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1329
rc = ecore_fw_vport(p_hwfn, p_filter_cmd->vport_to_add_to,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1336
init_data.cid = ecore_spq_get_cid(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1341
rc = ecore_sp_init_request(p_hwfn, pp_ent,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
135
for (i = 0; i < p_hwfn->p_l2_info->queues; i++) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1353
if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1354
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
136
if (p_hwfn->p_l2_info->pp_qid_usage[i] == OSAL_NULL)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
138
OSAL_VFREE(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
139
p_hwfn->p_l2_info->pp_qid_usage[i]);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
144
if (i == p_hwfn->p_l2_info->queues)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1440
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
145
OSAL_MUTEX_DEALLOC(&p_hwfn->p_l2_info->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1455
enum _ecore_status_t ecore_sp_eth_filter_ucast(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1466
rc = ecore_filter_ucast_common(p_hwfn, opaque_fid, p_filter_cmd,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1470
DP_ERR(p_hwfn, "Uni. filter command failed %d\n", rc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1476
rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1478
DP_ERR(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
148
OSAL_VFREE(p_hwfn->p_dev, p_hwfn->p_l2_info->pp_qid_usage);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1484
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1497
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
151
OSAL_VFREE(p_hwfn->p_dev, p_hwfn->p_l2_info);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
152
p_hwfn->p_l2_info = OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
156
static bool ecore_eth_queue_qid_usage_add(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1561
ecore_sp_eth_filter_mcast(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1576
rc = ecore_fw_vport(p_hwfn, p_filter_cmd->vport_to_add_to,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1579
rc = ecore_fw_vport(p_hwfn, p_filter_cmd->vport_to_remove_from,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1586
init_data.cid = ecore_spq_get_cid(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1587
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
159
struct ecore_l2_info *p_l2_info = p_hwfn->p_l2_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1591
rc = ecore_sp_init_request(p_hwfn, &p_ent,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1595
DP_ERR(p_hwfn, "Multi-cast command failed %d\n", rc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1630
rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1632
DP_ERR(p_hwfn, "Multicast filter command failed %d\n", rc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1653
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1657
ecore_vf_pf_filter_mcast(p_hwfn, p_filter_cmd);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1661
opaque_fid = p_hwfn->hw_info.opaque_fid;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1662
rc = ecore_sp_eth_filter_mcast(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
167
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1683
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1687
rc = ecore_vf_pf_filter_ucast(p_hwfn, p_filter_cmd);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1691
opaque_fid = p_hwfn->hw_info.opaque_fid;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1692
rc = ecore_sp_eth_filter_ucast(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1705
static void __ecore_get_vport_pstats_addrlen(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1709
if (IS_PF(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1714
struct ecore_vf_iov *p_iov = p_hwfn->vf_iov_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1722
static void __ecore_get_vport_pstats(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1730
__ecore_get_vport_pstats_addrlen(p_hwfn, &pstats_addr, &pstats_len,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1734
ecore_memcpy_from(p_hwfn, p_ptt, &pstats,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1753
static void __ecore_get_vport_tstats(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1761
if (IS_PF(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1763
TSTORM_PORT_STAT_OFFSET(MFW_PORT(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1766
struct ecore_vf_iov *p_iov = p_hwfn->vf_iov_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1774
ecore_memcpy_from(p_hwfn, p_ptt, &tstats,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1783
static void __ecore_get_vport_ustats_addrlen(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1787
if (IS_PF(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1792
struct ecore_vf_iov *p_iov = p_hwfn->vf_iov_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1800
static void __ecore_get_vport_ustats(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1808
__ecore_get_vport_ustats_addrlen(p_hwfn, &ustats_addr, &ustats_len,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1812
ecore_memcpy_from(p_hwfn, p_ptt, &ustats,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1829
static void __ecore_get_vport_mstats_addrlen(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1833
if (IS_PF(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1838
struct ecore_vf_iov *p_iov = p_hwfn->vf_iov_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1846
static void __ecore_get_vport_mstats(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1854
__ecore_get_vport_mstats_addrlen(p_hwfn, &mstats_addr, &mstats_len,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1858
ecore_memcpy_from(p_hwfn, p_ptt, &mstats,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1877
static void __ecore_get_vport_port_stats(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1887
ecore_memcpy_from(p_hwfn, p_ptt, &port_stats,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1888
p_hwfn->mcp_info->port_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
189
static void ecore_eth_queue_qid_usage_del(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
192
OSAL_MUTEX_ACQUIRE(&p_hwfn->p_l2_info->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1931
if (ECORE_IS_BB(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
195
p_hwfn->p_l2_info->pp_qid_usage[p_cid->rel.queue_id]);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1964
void __ecore_get_vport_stats(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1969
__ecore_get_vport_mstats(p_hwfn, p_ptt, stats, statistics_bin);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
197
OSAL_MUTEX_RELEASE(&p_hwfn->p_l2_info->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1970
__ecore_get_vport_ustats(p_hwfn, p_ptt, stats, statistics_bin);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1971
__ecore_get_vport_tstats(p_hwfn, p_ptt, stats, statistics_bin);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1972
__ecore_get_vport_pstats(p_hwfn, p_ptt, stats, statistics_bin);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1976
if (CHIP_REV_IS_EMUL(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1980
if (b_get_port_stats && p_hwfn->mcp_info)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1981
__ecore_get_vport_port_stats(p_hwfn, p_ptt, stats);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1993
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1995
ecore_ptt_acquire(p_hwfn) : OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1999
if (ecore_fw_vport(p_hwfn, 0, &fw_vport)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
200
void ecore_eth_queue_cid_release(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2000
DP_ERR(p_hwfn, "No vport available!\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2006
DP_ERR(p_hwfn, "Failed to acquire ptt\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2010
__ecore_get_vport_stats(p_hwfn, p_ptt, stats, fw_vport,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2015
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2045
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2050
ecore_ptt_acquire(p_hwfn) : OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2054
DP_ERR(p_hwfn, "Failed to acquire ptt\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2059
__ecore_get_vport_mstats_addrlen(p_hwfn, &addr, &len, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2060
ecore_memcpy_to(p_hwfn, p_ptt, addr, &mstats, len);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2063
__ecore_get_vport_ustats_addrlen(p_hwfn, &addr, &len, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2064
ecore_memcpy_to(p_hwfn, p_ptt, addr, &ustats, len);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2067
__ecore_get_vport_pstats_addrlen(p_hwfn, &addr, &len, 0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2068
ecore_memcpy_to(p_hwfn, p_ptt, addr, &pstats, len);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2071
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2083
void ecore_arfs_mode_configure(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2088
ecore_set_rfs_mode_enable(p_hwfn, p_ptt, p_hwfn->rel_pf_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
209
if (IS_PF(p_hwfn->p_dev) && !b_legacy_vf)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2093
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
210
_ecore_cxt_release_cid(p_hwfn, p_cid->cid, p_cid->vfid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2100
ecore_set_rfs_mode_disable(p_hwfn, p_ptt, p_hwfn->rel_pf_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2102
DP_VERBOSE(p_hwfn, ECORE_MSG_SP, "Configured ARFS mode : %s\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2107
ecore_configure_rfs_ntuple_filter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2121
rc = ecore_fw_vport(p_hwfn, vport_id, &abs_vport_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2125
rc = ecore_fw_l2_queue(p_hwfn, qid, &abs_rx_q_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2131
init_data.cid = ecore_spq_get_cid(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2133
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
214
ecore_eth_queue_qid_usage_del(p_hwfn, p_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2142
rc = ecore_sp_init_request(p_hwfn, &p_ent,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2158
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
216
OSAL_VFREE(p_hwfn->p_dev, p_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
2164
return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
223
_ecore_eth_queue_to_cid(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
231
p_cid = OSAL_VZALLOC(p_hwfn->p_dev, sizeof(*p_cid));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
237
p_cid->p_owner = p_hwfn;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
256
if (IS_VF(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
266
rc = ecore_fw_vport(p_hwfn, p_cid->rel.vport_id, &p_cid->abs.vport_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
270
rc = ecore_fw_l2_queue(p_hwfn, p_cid->rel.queue_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
279
rc = ecore_fw_vport(p_hwfn, p_cid->rel.stats_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
292
if (!ecore_eth_queue_qid_usage_add(p_hwfn, p_cid))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
298
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
310
OSAL_VFREE(p_hwfn->p_dev, p_cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
315
ecore_eth_queue_to_cid(struct ecore_hwfn *p_hwfn, u16 opaque_fid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
342
if (IS_PF(p_hwfn->p_dev) && !b_legacy_vf) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
343
if (_ecore_cxt_acquire_cid(p_hwfn, PROTOCOLID_ETH,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
345
DP_NOTICE(p_hwfn, true, "Failed to acquire cid\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
350
p_cid = _ecore_eth_queue_to_cid(p_hwfn, opaque_fid, cid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
352
if ((p_cid == OSAL_NULL) && IS_PF(p_hwfn->p_dev) && !b_legacy_vf)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
353
_ecore_cxt_release_cid(p_hwfn, cid, vfid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
359
ecore_eth_queue_to_cid_pf(struct ecore_hwfn *p_hwfn, u16 opaque_fid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
362
return ecore_eth_queue_to_cid(p_hwfn, opaque_fid, p_params, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
365
enum _ecore_status_t ecore_sp_eth_vport_start(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
375
rc = ecore_fw_vport(p_hwfn, p_params->vport_id, &abs_vport_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
381
init_data.cid = ecore_spq_get_cid(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
385
rc = ecore_sp_init_request(p_hwfn, &p_ent,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
454
if (CHIP_REV_IS_SLOW(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
462
p_ramrod->sw_fid = ecore_concrete_to_sw_fid(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
465
return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
468
enum _ecore_status_t ecore_sp_vport_start(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
471
if (IS_VF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
472
return ecore_vf_pf_vport_start(p_hwfn, p_params->vport_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
479
return ecore_sp_eth_vport_start(p_hwfn, p_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
483
ecore_sp_vport_update_rss(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
500
rc = ecore_fw_rss_eng(p_hwfn, p_rss->rss_eng_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
538
DP_VERBOSE(p_hwfn, ECORE_MSG_IFUP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
559
DP_VERBOSE(p_hwfn, ECORE_MSG_IFUP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
563
DP_VERBOSE(p_hwfn, ECORE_MSG_IFUP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
590
ecore_sp_update_accept_mode(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
603
if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
604
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
634
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
658
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
665
ecore_sp_vport_update_sge_tpa(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
67
enum _ecore_status_t ecore_l2_alloc(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
697
ecore_sp_update_mcast_bin(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
717
enum _ecore_status_t ecore_sp_vport_update(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
73
if (!ECORE_IS_L2_PERSONALITY(p_hwfn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
730
if (IS_VF(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
731
rc = ecore_vf_pf_vport_update(p_hwfn, p_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
735
rc = ecore_fw_vport(p_hwfn, p_params->vport_id, &abs_vport_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
741
init_data.cid = ecore_spq_get_cid(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
746
rc = ecore_sp_init_request(p_hwfn, &p_ent,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
76
p_l2_info = OSAL_VZALLOC(p_hwfn->p_dev, sizeof(*p_l2_info));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
782
if (CHIP_REV_IS_FPGA(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
785
DP_NOTICE(p_hwfn, false, "FPGA - why are we seeing tx-switching? Overriding it\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
79
p_hwfn->p_l2_info = p_l2_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
796
rc = ecore_sp_vport_update_rss(p_hwfn, p_ramrod, p_rss_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
799
ecore_spq_return_entry(p_hwfn, p_ent);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
804
ecore_sp_update_mcast_bin(p_hwfn, p_ramrod, p_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
806
ecore_sp_update_accept_mode(p_hwfn, p_ramrod, p_params->accept_flags);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
807
ecore_sp_vport_update_sge_tpa(p_hwfn, p_ramrod,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
809
return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
81
if (IS_PF(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
812
enum _ecore_status_t ecore_sp_vport_stop(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
82
p_l2_info->queues = RESC_NUM(p_hwfn, ECORE_L2_QUEUE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
822
if (IS_VF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
823
return ecore_vf_pf_vport_stop(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
825
rc = ecore_fw_vport(p_hwfn, vport_id, &abs_vport_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
831
init_data.cid = ecore_spq_get_cid(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
835
rc = ecore_sp_init_request(p_hwfn, &p_ent,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
844
return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
848
ecore_vf_pf_accept_flags(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
857
return ecore_vf_pf_vport_update(p_hwfn, &s_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
86
ecore_vf_get_num_rxqs(p_hwfn, &rx);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
87
ecore_vf_get_num_txqs(p_hwfn, &tx);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
879
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
881
vport_update_params.opaque_fid = p_hwfn->hw_info.opaque_fid;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
884
rc = ecore_vf_pf_accept_flags(p_hwfn, &accept_flags);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
890
rc = ecore_sp_vport_update(p_hwfn, &vport_update_params,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
897
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
903
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
912
ecore_eth_rxq_start_ramrod(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
92
pp_qids = OSAL_VZALLOC(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
924
DP_VERBOSE(p_hwfn, ECORE_MSG_SP, "opaque_fid=0x%x, cid=0x%x, rx_qzone=0x%x, vport_id=0x%x, sb_id=0x%x\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
934
rc = ecore_sp_init_request(p_hwfn, &p_ent,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
961
DP_VERBOSE(p_hwfn, ECORE_MSG_SP, "Queue%s is meant for VF rxq[%02x]\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
967
return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
971
ecore_eth_pf_rx_queue_start(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
982
p_hwfn->regview +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
987
__internal_ram_wr(p_hwfn, *pp_prod, sizeof(u32),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
990
return ecore_eth_rxq_start_ramrod(p_hwfn, p_cid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
997
ecore_eth_rx_queue_start(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.h
116
enum _ecore_status_t ecore_l2_alloc(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.h
117
void ecore_l2_setup(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.h
118
void ecore_l2_free(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.h
120
void ecore_eth_queue_cid_release(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.h
124
ecore_eth_queue_to_cid(struct ecore_hwfn *p_hwfn, u16 opaque_fid,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.h
129
ecore_sp_eth_vport_start(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.h
145
ecore_eth_rxq_start_ramrod(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.h
164
ecore_eth_txq_start_ramrod(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.h
192
ecore_configure_rfs_ntuple_filter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2_api.h
239
ecore_eth_rx_queue_start(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2_api.h
263
ecore_eth_rx_queue_stop(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2_api.h
285
ecore_eth_tx_queue_start(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2_api.h
301
enum _ecore_status_t ecore_eth_tx_queue_stop(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2_api.h
349
ecore_sp_vport_start(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2_api.h
394
ecore_sp_vport_update(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2_api.h
410
enum _ecore_status_t ecore_sp_vport_stop(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2_api.h
415
ecore_sp_eth_filter_ucast(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2_api.h
441
ecore_sp_eth_rx_queues_update(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2_api.h
449
void __ecore_get_vport_stats(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2_api.h
470
void ecore_arfs_mode_configure(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ll2.h
148
enum _ecore_status_t ecore_ll2_alloc(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ll2.h
156
void ecore_ll2_setup(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ll2.h
164
void ecore_ll2_free(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ll2.h
180
ecore_ll2_get_fragment_of_tx_packet(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ll2.h
49
static OSAL_INLINE u8 ecore_ll2_handle_to_queue_id(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ll2.h
52
return p_hwfn->hw_info.resc_start[ECORE_LL2_QUEUE] + handle;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1001
switch (p_hwfn->p_dev->wol_config) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1009
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
101
u32 mfw_mb_offsize = ecore_rd(p_hwfn, p_ptt, addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1011
p_hwfn->p_dev->wol_config);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1017
return ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_UNLOAD_REQ, wol_param,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1021
enum _ecore_status_t ecore_mcp_unload_done(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
103
p_hwfn->mcp_info->port_addr = SECTION_ADDR(mfw_mb_offsize,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1031
if (p_hwfn->p_dev->wol_config == ECORE_OV_WOL_ENABLED) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1032
u8 *p_mac = p_hwfn->p_dev->wol_mac;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1039
DP_VERBOSE(p_hwfn, (ECORE_MSG_SP | ECORE_MSG_IFDOWN),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
104
MFW_PORT(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1048
return ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
105
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1051
static void ecore_mcp_handle_vf_flr(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1054
u32 addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1056
u32 mfw_path_offsize = ecore_rd(p_hwfn, p_ptt, addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1058
ECORE_PATH_ID(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1062
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1067
disabled_vfs[i] = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
107
p_hwfn->mcp_info->port_addr, MFW_PORT(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1072
DP_VERBOSE(p_hwfn, (ECORE_MSG_SP | ECORE_MSG_IOV),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1077
if (ecore_iov_mark_vf_flr(p_hwfn, disabled_vfs))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1078
OSAL_VF_FLR_UPDATE(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1081
enum _ecore_status_t ecore_mcp_ack_vf_flr(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1085
u32 addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1087
u32 mfw_func_offsize = ecore_rd(p_hwfn, p_ptt, addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1089
MCP_PF_ID(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1095
DP_VERBOSE(p_hwfn, (ECORE_MSG_SP | ECORE_MSG_IOV),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
110
void ecore_mcp_read_mb(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1103
rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1105
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1112
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1120
static void ecore_mcp_handle_transceiver_change(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1125
transceiver_state = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1126
p_hwfn->mcp_info->port_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
113
u32 length = MFW_DRV_MSG_MAX_DWORDS(p_hwfn->mcp_info->mfw_mb_length);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1130
DP_VERBOSE(p_hwfn, (ECORE_MSG_HW | ECORE_MSG_SP),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1132
transceiver_state, (u32)(p_hwfn->mcp_info->port_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1139
DP_NOTICE(p_hwfn, false, "Transceiver is present.\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1141
DP_NOTICE(p_hwfn, false, "Transceiver is unplugged.\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1144
static void ecore_mcp_read_eee_config(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1152
eee_status = ecore_rd(p_hwfn, p_ptt, p_hwfn->mcp_info->port_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1167
static void ecore_mcp_handle_link_change(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1176
OSAL_SPIN_LOCK(&p_hwfn->mcp_info->link_lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1178
p_link = &p_hwfn->mcp_info->link_output;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
118
if (CHIP_REV_IS_TEDIBEAR(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1181
status = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1182
p_hwfn->mcp_info->port_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1184
DP_VERBOSE(p_hwfn, (ECORE_MSG_LINK | ECORE_MSG_SP),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1186
status, (u32)(p_hwfn->mcp_info->port_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1189
DP_VERBOSE(p_hwfn, ECORE_MSG_LINK,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1194
if (p_hwfn->b_drv_link_init)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
122
if (!p_hwfn->mcp_info->public_base)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1237
max_bw = p_hwfn->mcp_info->func_info.bandwidth_max;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1238
min_bw = p_hwfn->mcp_info->func_info.bandwidth_min;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1241
__ecore_configure_pf_max_bandwidth(p_hwfn, p_ptt, p_link, max_bw);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1244
__ecore_configure_pf_min_bandwidth(p_hwfn, p_ptt, p_link, min_bw);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1245
ecore_configure_vp_wfq_on_link_change(p_hwfn->p_dev, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
126
tmp = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
127
p_hwfn->mcp_info->mfw_mb_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
130
((u32 *)p_hwfn->mcp_info->mfw_mb_cur)[i] =
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1301
if (p_hwfn->mcp_info->capabilities & FW_MB_PARAM_FEATURE_SUPPORT_EEE)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1302
ecore_mcp_read_eee_config(p_hwfn, p_ptt, p_link);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1304
OSAL_LINK_UPDATE(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1306
OSAL_SPIN_UNLOCK(&p_hwfn->mcp_info->link_lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1309
enum _ecore_status_t ecore_mcp_set_link(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1313
struct ecore_mcp_link_params *params = &p_hwfn->mcp_info->link_input;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1320
if (CHIP_REV_IS_EMUL(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1334
if (p_hwfn->mcp_info->capabilities & FW_MB_PARAM_FEATURE_SUPPORT_EEE) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1348
p_hwfn->b_drv_link_init = b_up;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
135
enum _ecore_status_t ecore_mcp_free(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1351
DP_VERBOSE(p_hwfn, ECORE_MSG_LINK,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1356
DP_VERBOSE(p_hwfn, ECORE_MSG_LINK, "Resetting link\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1362
rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1366
DP_ERR(p_hwfn, "MCP response failure, aborting\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
137
if (p_hwfn->mcp_info) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1376
ecore_mcp_handle_link_change(p_hwfn, p_ptt, !b_up);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
138
OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info->mfw_mb_cur);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1381
u32 ecore_get_process_kill_counter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1387
if (IS_VF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
139
OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info->mfw_mb_shadow);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1390
path_offsize_addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1392
path_offsize = ecore_rd(p_hwfn, p_ptt, path_offsize_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1393
path_addr = SECTION_ADDR(path_offsize, ECORE_PATH_ID(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1395
proc_kill_cnt = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1403
static void ecore_mcp_handle_process_kill(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1406
struct ecore_dev *p_dev = p_hwfn->p_dev;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
141
OSAL_SPIN_LOCK_DEALLOC(&p_hwfn->mcp_info->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1412
ecore_int_igu_disable_int(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1414
DP_NOTICE(p_hwfn, false, "Received a process kill indication\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1419
if (p_hwfn != ECORE_LEADING_HWFN(p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
142
OSAL_SPIN_LOCK_DEALLOC(&p_hwfn->mcp_info->link_lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1423
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1430
proc_kill_cnt = ecore_get_process_kill_counter(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1431
DP_NOTICE(p_hwfn, false, "Process kill counter: %d\n", proc_kill_cnt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1433
OSAL_SCHEDULE_RECOVERY_HANDLER(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1436
static void ecore_mcp_send_protocol_stats(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
145
OSAL_FREE(p_hwfn->p_dev, p_hwfn->mcp_info);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
146
p_hwfn->mcp_info = OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1464
DP_NOTICE(p_hwfn, false, "Invalid protocol type %d\n", type);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1468
OSAL_GET_PROTOCOL_STATS(p_hwfn->p_dev, stats_type, &stats);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1475
rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1477
DP_ERR(p_hwfn, "Failed to send protocol stats, rc = %d\n", rc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1480
static void ecore_read_pf_bandwidth(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1485
p_info = &p_hwfn->mcp_info->func_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1497
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1507
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
151
enum _ecore_status_t ecore_load_mcp_offsets(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1514
static u32 ecore_mcp_get_shmem_func(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1519
u32 addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1521
u32 mfw_path_offsize = ecore_rd(p_hwfn, p_ptt, addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1530
((u32 *)p_data)[i] = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1537
enum _ecore_status_t ecore_hw_init_first_eth(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
154
struct ecore_mcp_info *p_info = p_hwfn->mcp_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1545
for (i = 0; i < NUM_OF_ENG_PFS(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1546
i += p_hwfn->p_dev->num_ports_in_engine) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1547
ecore_mcp_get_shmem_func(p_hwfn, p_ptt, &shmem_info,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1548
MCP_PF_ID_BY_REL(p_hwfn, i));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
156
u32 mcp_pf_id = MCP_PF_ID(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1563
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1570
ecore_mcp_update_bw(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1576
ecore_mcp_get_shmem_func(p_hwfn, p_ptt, &shmem_info,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1577
MCP_PF_ID(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1579
ecore_read_pf_bandwidth(p_hwfn, &shmem_info);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1581
p_info = &p_hwfn->mcp_info->func_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1583
ecore_configure_pf_min_bandwidth(p_hwfn->p_dev, p_info->bandwidth_min);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1585
ecore_configure_pf_max_bandwidth(p_hwfn->p_dev, p_info->bandwidth_max);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1588
ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_BW_UPDATE_ACK, 0, &resp,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
159
if (CHIP_REV_IS_EMUL(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1592
static void ecore_mcp_update_stag(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1598
ecore_mcp_get_shmem_func(p_hwfn, p_ptt, &shmem_info,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1599
MCP_PF_ID(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
160
DP_NOTICE(p_hwfn, false, "Emulation - assume no MFW\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1601
p_hwfn->mcp_info->func_info.ovlan = (u16)shmem_info.ovlan_stag &
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1603
p_hwfn->hw_info.ovlan = p_hwfn->mcp_info->func_info.ovlan;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1604
if ((p_hwfn->hw_info.hw_mode & (1 << MODE_MF_SD)) &&
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1605
(p_hwfn->hw_info.ovlan != ECORE_MCP_VLAN_UNSET)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1606
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1608
p_hwfn->hw_info.ovlan);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1609
ecore_sp_pf_update_stag(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1612
OSAL_HW_INFO_CHANGE(p_hwfn, ECORE_HW_INFO_CHANGE_OVLAN);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1615
ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_S_TAG_UPDATE_ACK, 0,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1619
static void ecore_mcp_handle_fan_failure(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1623
if (p_hwfn != ECORE_LEADING_HWFN(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1626
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1629
ecore_hw_err_notify(p_hwfn, ECORE_HW_ERR_FAN_FAIL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1642
ecore_mcp_mdump_cmd(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1655
rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
166
p_info->public_base = ecore_rd(p_hwfn, p_ptt, MISC_REG_SHARED_MEM_ADDR);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1662
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1667
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1675
static enum _ecore_status_t ecore_mcp_mdump_ack(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1683
return ecore_mcp_mdump_cmd(p_hwfn, p_ptt, &mdump_cmd_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1686
enum _ecore_status_t ecore_mcp_mdump_set_values(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1697
return ecore_mcp_mdump_cmd(p_hwfn, p_ptt, &mdump_cmd_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1700
enum _ecore_status_t ecore_mcp_mdump_trigger(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1708
return ecore_mcp_mdump_cmd(p_hwfn, p_ptt, &mdump_cmd_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1712
ecore_mcp_mdump_get_config(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1723
rc = ecore_mcp_mdump_cmd(p_hwfn, p_ptt, &mdump_cmd_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1728
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
173
drv_mb_offsize = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1738
ecore_mcp_mdump_get_info(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1747
addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1749
global_offsize = ecore_rd(p_hwfn, p_ptt, addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1751
p_mdump_info->reason = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1757
rc = ecore_mcp_mdump_get_config(p_hwfn, p_ptt, &mdump_config);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1767
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
177
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1773
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1780
enum _ecore_status_t ecore_mcp_mdump_clear_logs(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1788
return ecore_mcp_mdump_cmd(p_hwfn, p_ptt, &mdump_cmd_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1792
ecore_mcp_mdump_get_retain(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1804
rc = ecore_mcp_mdump_cmd(p_hwfn, p_ptt, &mdump_cmd_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1809
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
182
mfw_mb_offsize = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1823
enum _ecore_status_t ecore_mcp_mdump_clr_retain(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1831
return ecore_mcp_mdump_cmd(p_hwfn, p_ptt, &mdump_cmd_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1834
static void ecore_mcp_handle_critical_error(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1843
if (p_hwfn != ECORE_LEADING_HWFN(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1846
rc = ecore_mcp_mdump_get_retain(p_hwfn, p_ptt, &mdump_retain);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1848
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1853
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1857
if (p_hwfn->p_dev->allow_mdump) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1858
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
186
p_info->mfw_mb_length = (u16)ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1863
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1865
ecore_mcp_mdump_ack(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1866
ecore_hw_err_notify(p_hwfn, ECORE_HW_ERR_HW_ATTN);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1869
enum _ecore_status_t ecore_mcp_handle_events(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1872
struct ecore_mcp_info *info = p_hwfn->mcp_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1877
DP_VERBOSE(p_hwfn, ECORE_MSG_SP, "Received message from MFW\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1880
ecore_mcp_read_mb(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1889
DP_VERBOSE(p_hwfn, ECORE_MSG_LINK,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1895
ecore_mcp_handle_link_change(p_hwfn, p_ptt, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1898
ecore_mcp_handle_vf_flr(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1901
ecore_dcbx_mib_update_event(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1905
ecore_dcbx_mib_update_event(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1909
ecore_dcbx_mib_update_event(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1913
ecore_mcp_handle_transceiver_change(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1916
ecore_mcp_handle_process_kill(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
192
p_info->drv_mb_seq = DRV_MB_RD(p_hwfn, p_ptt, drv_mb_header) &
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1922
ecore_mcp_send_protocol_stats(p_hwfn, p_ptt, i);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1925
ecore_mcp_update_bw(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1928
ecore_mcp_update_stag(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1931
ecore_mcp_handle_fan_failure(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1934
ecore_mcp_handle_critical_error(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1937
OSAL_MFW_TLV_REQ(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1940
DP_INFO(p_hwfn, "Unimplemented MFW message %d\n", i);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1950
ecore_wr(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1957
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
196
p_info->drv_pulse_seq = DRV_MB_RD(p_hwfn, p_ptt, drv_pulse_mb) &
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1968
enum _ecore_status_t ecore_mcp_get_mfw_ver(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1976
if (CHIP_REV_IS_EMUL(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1977
DP_NOTICE(p_hwfn, false, "Emulation - can't get MFW version\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1982
if (IS_VF(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1983
if (p_hwfn->vf_iov_info) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1986
p_resp = &p_hwfn->vf_iov_info->acquire_resp;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
199
p_info->mcp_hist = (u16)ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1990
DP_VERBOSE(p_hwfn, ECORE_MSG_IOV,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1996
global_offsize = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1997
SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
1999
*p_mfw_ver = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2004
*p_running_bundle_id = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2013
enum _ecore_status_t ecore_mcp_get_mbi_ver(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2020
if (CHIP_REV_IS_EMUL(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2021
DP_NOTICE(p_hwfn, false, "Emulation - can't get MBI version\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2026
if (IS_VF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2030
nvm_cfg_addr = ecore_rd(p_hwfn, p_ptt, MISC_REG_GEN_PURP_CR0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2032
DP_NOTICE(p_hwfn, false, "Shared memory not initialized\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2037
nvm_cfg1_offset = ecore_rd(p_hwfn, p_ptt, nvm_cfg_addr + 4);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2042
*p_mbi_ver = ecore_rd(p_hwfn, p_ptt, mbi_ver_addr) &
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
205
enum _ecore_status_t ecore_mcp_cmd_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2053
struct ecore_hwfn *p_hwfn = &p_dev->hwfns[0];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2060
if (!ecore_mcp_is_init(p_hwfn)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2061
DP_NOTICE(p_hwfn, true, "MFW is not initialized!\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2067
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2071
*p_media_type = ecore_rd(p_hwfn, p_ptt, p_hwfn->mcp_info->port_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2074
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2081
ecore_mcp_get_shmem_proto_legacy(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2088
&p_hwfn->hw_info.device_capabilities))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2093
DP_VERBOSE(p_hwfn, ECORE_MSG_IFUP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2099
ecore_mcp_get_shmem_proto_mfw(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2106
rc = ecore_mcp_cmd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2111
DP_VERBOSE(p_hwfn, ECORE_MSG_IFUP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
212
p_hwfn->mcp_info = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
213
sizeof(*p_hwfn->mcp_info));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2131
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2137
DP_VERBOSE(p_hwfn, ECORE_MSG_IFUP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
214
if (!p_hwfn->mcp_info)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2144
ecore_mcp_get_shmem_proto(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2153
if (ecore_mcp_get_shmem_proto_mfw(p_hwfn, p_ptt, p_proto) !=
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2155
ecore_mcp_get_shmem_proto_legacy(p_hwfn, p_proto);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
216
p_info = p_hwfn->mcp_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2164
DP_NOTICE(p_hwfn, true, "RoCE personality is not a valid value!\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2174
enum _ecore_status_t ecore_mcp_fill_shmem_func_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
218
if (ecore_load_mcp_offsets(p_hwfn, p_ptt) != ECORE_SUCCESS) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2180
ecore_mcp_get_shmem_func(p_hwfn, p_ptt, &shmem_info,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2181
MCP_PF_ID(p_hwfn));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2182
info = &p_hwfn->mcp_info->func_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2187
if (ecore_mcp_get_shmem_proto(p_hwfn, &shmem_info, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2189
DP_ERR(p_hwfn, "Unknown personality %08x\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
219
DP_NOTICE(p_hwfn, false, "MCP is not initialized\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2194
ecore_read_pf_bandwidth(p_hwfn, &shmem_info);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2205
OSAL_MEMCPY(&p_hwfn->p_dev->wol_mac, info->mac, ETH_ALEN);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2209
DP_NOTICE(p_hwfn, false, "MAC is 0 in shmem\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2222
p_hwfn->hw_info.b_wol_support = ECORE_WOL_SUPPORT_NONE;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2223
if (ecore_mcp_is_init(p_hwfn)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2227
rc = ecore_mcp_cmd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2232
p_hwfn->hw_info.b_wol_support = ECORE_WOL_SUPPORT_PME;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2234
p_hwfn->p_dev->wol_config = (u8)ECORE_OV_WOL_DEFAULT;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2236
DP_VERBOSE(p_hwfn, (ECORE_MSG_SP | ECORE_MSG_IFUP),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2243
(u8)p_hwfn->hw_info.b_wol_support);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2249
*ecore_mcp_get_link_params(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2251
if (!p_hwfn || !p_hwfn->mcp_info)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2253
return &p_hwfn->mcp_info->link_input;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2257
*ecore_mcp_get_link_state(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2259
if (!p_hwfn || !p_hwfn->mcp_info)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2263
if (CHIP_REV_IS_SLOW(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2264
DP_INFO(p_hwfn, "Non-ASIC - always notify that link is up\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2265
p_hwfn->mcp_info->link_output.link_up = true;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2269
return &p_hwfn->mcp_info->link_output;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
227
p_info->mfw_mb_cur = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2273
*ecore_mcp_get_link_capabilities(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2275
if (!p_hwfn || !p_hwfn->mcp_info)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2277
return &p_hwfn->mcp_info->link_capabilities;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
228
p_info->mfw_mb_shadow = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2280
enum _ecore_status_t ecore_mcp_drain(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2286
rc = ecore_mcp_cmd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2298
*ecore_mcp_get_function_info(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2300
if (!p_hwfn || !p_hwfn->mcp_info)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2302
return &p_hwfn->mcp_info->func_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2306
enum _ecore_status_t ecore_mcp_nvm_command(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2314
rc = ecore_mcp_nvm_rd_cmd(p_hwfn, p_ptt, params->nvm_common.cmd,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2322
rc = ecore_mcp_cmd(p_hwfn, p_ptt, params->nvm_common.cmd,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2328
rc = ecore_mcp_nvm_wr_cmd(p_hwfn, p_ptt, params->nvm_common.cmd,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
234
OSAL_SPIN_LOCK_ALLOC(p_hwfn, &p_info->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2343
int ecore_mcp_get_personality_cnt(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
235
OSAL_SPIN_LOCK_ALLOC(p_hwfn, &p_info->link_lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2351
num_pfs = NUM_OF_ENG_PFS(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2354
ecore_mcp_get_shmem_func(p_hwfn, p_ptt, &shmem_info,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2355
MCP_PF_ID_BY_REL(p_hwfn, i));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2359
if (ecore_mcp_get_shmem_proto(p_hwfn, &shmem_info, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2372
enum _ecore_status_t ecore_mcp_get_flash_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2379
if (CHIP_REV_IS_EMUL(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2380
DP_NOTICE(p_hwfn, false, "Emulation - can't get flash size\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2385
if (IS_VF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2388
flash_size = ecore_rd(p_hwfn, p_ptt, MCP_REG_NVM_CFG4);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2398
enum _ecore_status_t ecore_start_recovery_process(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2401
struct ecore_dev *p_dev = p_hwfn->p_dev;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2404
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2409
DP_NOTICE(p_hwfn, false, "Triggering a recovery process\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2410
ecore_wr(p_hwfn, p_ptt, MISC_REG_AEU_GENERAL_ATTN_35, 0x1);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2416
ecore_mcp_config_vf_msix_bb(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2424
if (!IS_LEAD_HWFN(p_hwfn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2426
num *= p_hwfn->p_dev->num_hwfns;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
243
DP_NOTICE(p_hwfn, true, "Failed to allocate mcp memory\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2433
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_CFG_VF_MSIX, param,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2437
DP_NOTICE(p_hwfn, true, "VF[%d]: MFW failed to set MSI-X\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
244
ecore_mcp_free(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2441
DP_VERBOSE(p_hwfn, ECORE_MSG_IOV,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2450
ecore_mcp_config_vf_msix_ah(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2457
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_CFG_PF_VFS_MSIX,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2461
DP_NOTICE(p_hwfn, true, "MFW failed to set MSI-X for VFs\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2464
DP_VERBOSE(p_hwfn, ECORE_MSG_IOV,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2472
enum _ecore_status_t ecore_mcp_config_vf_msix(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2476
if (ECORE_IS_BB(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2477
return ecore_mcp_config_vf_msix_bb(p_hwfn, p_ptt, vf_id, num);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2479
return ecore_mcp_config_vf_msix_ah(p_hwfn, p_ptt, num);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2483
ecore_mcp_send_drv_version(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2494
if (CHIP_REV_IS_SLOW(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2512
rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2514
DP_ERR(p_hwfn, "MCP response failure, aborting\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2523
enum _ecore_status_t ecore_mcp_halt(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2529
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_MCP_HALT, 0, &resp,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2532
DP_ERR(p_hwfn, "MCP response failure, aborting\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2538
cpu_state = ecore_rd(p_hwfn, p_ptt, MCP_REG_CPU_STATE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2544
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2546
ecore_rd(p_hwfn, p_ptt, MCP_REG_CPU_MODE), cpu_state);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2555
enum _ecore_status_t ecore_mcp_resume(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
256
static enum _ecore_status_t ecore_mcp_mb_lock(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2560
ecore_wr(p_hwfn, p_ptt, MCP_REG_CPU_STATE, 0xffffffff);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2562
cpu_mode = ecore_rd(p_hwfn, p_ptt, MCP_REG_CPU_MODE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2564
ecore_wr(p_hwfn, p_ptt, MCP_REG_CPU_MODE, cpu_mode);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2567
cpu_state = ecore_rd(p_hwfn, p_ptt, MCP_REG_CPU_STATE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2570
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2580
ecore_mcp_ov_update_current_config(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
259
OSAL_SPIN_LOCK(&p_hwfn->mcp_info->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2599
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2604
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_OV_UPDATE_CURR_CFG,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2607
DP_ERR(p_hwfn, "MCP response failure, aborting\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2613
ecore_mcp_ov_update_driver_state(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2632
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2637
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_OV_UPDATE_DRIVER_STATE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2640
DP_ERR(p_hwfn, "Failed to send driver state\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2646
ecore_mcp_ov_get_fc_npiv(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2656
addr = ecore_rd(p_hwfn, p_ptt, p_hwfn->mcp_info->port_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2659
DP_VERBOSE(p_hwfn, ECORE_MSG_SP, "NPIV table doesn't exist\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2663
size = ecore_rd(p_hwfn, p_ptt, p_hwfn->mcp_info->port_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2666
DP_VERBOSE(p_hwfn, ECORE_MSG_SP, "NPIV table is empty\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2670
p_buf = OSAL_VZALLOC(p_hwfn->p_dev, size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2672
DP_ERR(p_hwfn, "Buffer allocation failed\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2676
rc = ecore_mcp_nvm_read(p_hwfn->p_dev, addr, p_buf, size);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2678
OSAL_VFREE(p_hwfn->p_dev, p_buf);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2692
OSAL_VFREE(p_hwfn->p_dev, p_buf);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2698
ecore_mcp_ov_update_mtu(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
270
p_hwfn->mcp_info->block_mb_sending = false;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2706
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_OV_UPDATE_MTU,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2709
DP_ERR(p_hwfn, "Failed to send mtu value, rc = %d\n", rc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2715
ecore_mcp_ov_update_mac(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2726
mb_params.param |= MCP_PF_ID(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2738
rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2740
DP_ERR(p_hwfn, "Failed to send mac address, rc = %d\n", rc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2743
OSAL_MEMCPY(p_hwfn->p_dev->wol_mac, mac, ETH_ALEN);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2749
ecore_mcp_ov_update_wol(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
275
if ((p_hwfn->mcp_info->block_mb_sending) &&
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2756
if (p_hwfn->hw_info.b_wol_support == ECORE_WOL_SUPPORT_NONE) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2757
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
277
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2773
DP_ERR(p_hwfn, "Invalid wol state %d\n", wol);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2777
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_OV_UPDATE_WOL,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2780
DP_ERR(p_hwfn, "Failed to send wol mode, rc = %d\n", rc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2783
p_hwfn->p_dev->wol_config = (u8)wol;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2789
ecore_mcp_ov_update_eswitch(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
280
OSAL_SPIN_UNLOCK(&p_hwfn->mcp_info->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2807
DP_ERR(p_hwfn, "Invalid eswitch mode %d\n", eswitch);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2811
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_OV_UPDATE_ESWITCH_MODE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2814
DP_ERR(p_hwfn, "Failed to send eswitch mode, rc = %d\n", rc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2819
enum _ecore_status_t ecore_mcp_set_led(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2837
DP_NOTICE(p_hwfn, true, "Invalid LED mode %d\n", mode);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2841
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_SET_LED_MODE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2844
DP_ERR(p_hwfn, "MCP response failure, aborting\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2849
enum _ecore_status_t ecore_mcp_mask_parities(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
285
p_hwfn->mcp_info->block_mb_sending = true;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2856
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_MASK_PARITIES,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
286
OSAL_SPIN_UNLOCK(&p_hwfn->mcp_info->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2860
DP_ERR(p_hwfn, "MCP response failure for mask parities, aborting\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2862
DP_ERR(p_hwfn, "MCP did not acknowledge mask parity request. Old MFW?\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2872
struct ecore_hwfn *p_hwfn = ECORE_LEADING_HWFN(p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2878
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2895
rc = ecore_mcp_nvm_command(p_hwfn, p_ptt, ¶ms);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2915
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
292
static void ecore_mcp_mb_unlock(struct ecore_hwfn *p_hwfn, u32 cmd)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2923
struct ecore_hwfn *p_hwfn = ECORE_LEADING_HWFN(p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2928
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2940
rc = ecore_mcp_nvm_command(p_hwfn, p_ptt, ¶ms);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2945
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
295
OSAL_SPIN_UNLOCK(&p_hwfn->mcp_info->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2952
struct ecore_hwfn *p_hwfn = ECORE_LEADING_HWFN(p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2956
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2962
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2970
struct ecore_hwfn *p_hwfn = ECORE_LEADING_HWFN(p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2975
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
298
enum _ecore_status_t ecore_mcp_reset(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2982
rc = ecore_mcp_nvm_command(p_hwfn, p_ptt, ¶ms);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2984
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2992
struct ecore_hwfn *p_hwfn = ECORE_LEADING_HWFN(p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2997
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3004
rc = ecore_mcp_nvm_command(p_hwfn, p_ptt, ¶ms);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3006
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
301
u32 seq = ++p_hwfn->mcp_info->drv_mb_seq;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3017
struct ecore_hwfn *p_hwfn = ECORE_LEADING_HWFN(p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3023
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3040
DP_NOTICE(p_hwfn, true, "Invalid nvm write command 0x%x\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3054
rc = ecore_mcp_nvm_command(p_hwfn, p_ptt, ¶ms);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
307
if (CHIP_REV_IS_EMUL(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3072
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3080
struct ecore_hwfn *p_hwfn = ECORE_LEADING_HWFN(p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3085
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3097
rc = ecore_mcp_nvm_command(p_hwfn, p_ptt, ¶ms);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3101
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3109
struct ecore_hwfn *p_hwfn = ECORE_LEADING_HWFN(p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3114
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3122
rc = ecore_mcp_nvm_command(p_hwfn, p_ptt, ¶ms);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3124
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3129
enum _ecore_status_t ecore_mcp_phy_sfp_read(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
314
rc = ecore_mcp_mb_lock(p_hwfn, DRV_MSG_CODE_MCP_RESET);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3159
(void) ecore_mcp_nvm_command(p_hwfn, p_ptt, ¶ms);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3174
enum _ecore_status_t ecore_mcp_phy_sfp_write(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
319
org_mcp_reset_seq = ecore_rd(p_hwfn, p_ptt, MISCS_REG_GENERIC_POR_0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
320
DRV_MB_WR(p_hwfn, p_ptt, drv_mb_header, (DRV_MSG_CODE_MCP_RESET | seq));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3202
(void) ecore_mcp_nvm_command(p_hwfn, p_ptt, ¶ms);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3216
enum _ecore_status_t ecore_mcp_gpio_read(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3225
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_GPIO_READ,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3237
enum _ecore_status_t ecore_mcp_gpio_write(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3247
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_GPIO_WRITE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3259
enum _ecore_status_t ecore_mcp_gpio_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
326
} while ((org_mcp_reset_seq == ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3269
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_GPIO_INFO,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3285
enum _ecore_status_t ecore_mcp_bist_register_test(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3294
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_BIST_TEST,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3307
enum _ecore_status_t ecore_mcp_bist_clock_test(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
331
ecore_rd(p_hwfn, p_ptt, MISCS_REG_GENERIC_POR_0)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3316
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_BIST_TEST,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
332
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3330
struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt, u32 *num_images)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3338
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_BIST_TEST,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
335
DP_ERR(p_hwfn, "Failed to reset MCP\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3351
struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3369
rc = ecore_mcp_nvm_command(p_hwfn, p_ptt, ¶ms);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3381
ecore_mcp_get_nvm_image_att(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
339
ecore_mcp_mb_unlock(p_hwfn, DRV_MSG_CODE_MCP_RESET);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3402
DP_NOTICE(p_hwfn, false, "Unknown request of image_id %08x\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3408
rc = ecore_mcp_bist_nvm_test_get_num_images(p_hwfn, p_ptt, &num_images);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3413
rc = ecore_mcp_bist_nvm_test_get_image_att(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3422
DP_VERBOSE(p_hwfn, ECORE_MSG_STORAGE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3434
enum _ecore_status_t ecore_mcp_get_nvm_image(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
344
void ecore_mcp_print_cpu_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3444
rc = ecore_mcp_get_nvm_image_att(p_hwfn, p_ptt, image_id, &image_att);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3450
DP_VERBOSE(p_hwfn, ECORE_MSG_STORAGE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3460
DP_VERBOSE(p_hwfn, ECORE_MSG_STORAGE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3466
return ecore_mcp_nvm_read(p_hwfn->p_dev, image_att.start_addr,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3471
ecore_mcp_get_temperature_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3486
rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
349
cpu_mode = ecore_rd(p_hwfn, p_ptt, MCP_REG_CPU_MODE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
350
cpu_state = ecore_rd(p_hwfn, p_ptt, MCP_REG_CPU_STATE);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
351
cpu_pc_0 = ecore_rd(p_hwfn, p_ptt, MCP_REG_CPU_PROGRAM_COUNTER);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3510
struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3524
rc = ecore_mcp_nvm_command(p_hwfn, p_ptt, ¶ms);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
353
cpu_pc_1 = ecore_rd(p_hwfn, p_ptt, MCP_REG_CPU_PROGRAM_COUNTER);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3539
enum _ecore_status_t ecore_mcp_mem_ecc_events(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3545
return ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_MEM_ECC_EVENTS,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
355
cpu_pc_2 = ecore_rd(p_hwfn, p_ptt, MCP_REG_CPU_PROGRAM_COUNTER);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
357
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
362
static enum _ecore_status_t ecore_do_mcp_cmd(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3627
ecore_mcp_resc_allocation_msg(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3640
DP_ERR(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3654
DP_ERR(p_hwfn, "Unexpected resource alloc command [0x%08x]\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3667
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3677
rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3689
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3703
ecore_mcp_set_resc_max_val(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3716
rc = ecore_mcp_resc_allocation_msg(p_hwfn, p_ptt, &in_params,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3727
ecore_mcp_get_resc_info(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
373
if (CHIP_REV_IS_EMUL(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3739
rc = ecore_mcp_resc_allocation_msg(p_hwfn, p_ptt, &in_params,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3754
enum _ecore_status_t ecore_mcp_initiate_pf_flr(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3759
return ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_INITIATE_PF_FLR, 0,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
376
if (CHIP_REV_IS_FPGA(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3763
enum _ecore_status_t ecore_mcp_get_lldp_mac(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3775
rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3780
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3789
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3797
enum _ecore_status_t ecore_mcp_set_lldp_mac(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3805
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
381
actual_mb_seq = DRV_MB_RD(p_hwfn, p_ptt, drv_mb_header) &
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3818
rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3823
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3832
static enum _ecore_status_t ecore_mcp_resource_cmd(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3839
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_RESOURCE_CMD, param,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3845
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3853
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3863
__ecore_mcp_resc_lock(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
387
if (p_hwfn->mcp_info->mcp_hist !=
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
388
ecore_rd(p_hwfn, p_ptt, MISCS_REG_GENERIC_POR_0)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3888
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
389
DP_VERBOSE(p_hwfn, ECORE_MSG_SP, "Rereading MCP offsets\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3893
rc = ecore_mcp_resource_cmd(p_hwfn, p_ptt, param, &mcp_resp,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
390
ecore_load_mcp_offsets(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3903
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
391
ecore_mcp_cmd_port_init(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3915
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3925
ecore_mcp_resc_lock(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
393
seq = ++p_hwfn->mcp_info->drv_mb_seq;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3945
rc = __ecore_mcp_resc_lock(p_hwfn, p_ptt, p_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3957
ecore_mcp_resc_unlock(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
396
DRV_MB_WR(p_hwfn, p_ptt, drv_mb_param, param);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3969
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3974
rc = ecore_mcp_resource_cmd(p_hwfn, p_ptt, param, &mcp_resp,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3982
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3988
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
399
DRV_MB_WR(p_hwfn, p_ptt, drv_mb_header, (cmd | seq));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
3999
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
4009
ecore_mcp_update_fcoe_cvid(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
401
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
4015
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_OEM_UPDATE_FCOE_CVID,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
4019
DP_ERR(p_hwfn, "Failed to update fcoe vlan, rc = %d\n", rc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
4025
ecore_mcp_update_fcoe_fabric_name(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
4040
rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
4042
DP_ERR(p_hwfn, "Failed to update fcoe wwn, rc = %d\n", rc);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
4047
void ecore_mcp_wol_wr(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
4059
rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
4061
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
4066
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
4073
enum _ecore_status_t ecore_mcp_get_capabilities(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
4079
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_GET_MFW_FEATURE_SUPPORT,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
408
*o_mcp_resp = DRV_MB_RD(p_hwfn, p_ptt, fw_mb_header);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
4080
0, &mcp_resp, &p_hwfn->mcp_info->capabilities);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
4082
DP_VERBOSE(p_hwfn, (ECORE_MSG_SP | ECORE_MSG_PROBE),
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
4084
p_hwfn->mcp_info->capabilities);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
4089
enum _ecore_status_t ecore_mcp_set_capabilities(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
4097
return ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_FEATURE_SUPPORT,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
414
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
422
*o_mcp_param = DRV_MB_RD(p_hwfn, p_ptt, fw_mb_param);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
425
DP_ERR(p_hwfn, "MFW failed to respond [cmd 0x%x param 0x%x]\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
427
ecore_mcp_print_cpu_info(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
430
ecore_hw_err_notify(p_hwfn, ECORE_HW_ERR_MFW_RESP_FAIL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
435
static enum _ecore_status_t ecore_mcp_cmd_and_union(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
444
if (!ecore_mcp_is_init(p_hwfn)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
445
DP_NOTICE(p_hwfn, true, "MFW is not initialized!\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
451
DP_ERR(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
458
union_data_addr = p_hwfn->mcp_info->drv_mb_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
464
rc = ecore_mcp_mb_lock(p_hwfn, p_mb_params->cmd);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
472
ecore_memcpy_to(p_hwfn, p_ptt, union_data_addr, &union_data,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
475
rc = ecore_do_mcp_cmd(p_hwfn, p_ptt, p_mb_params->cmd,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
481
ecore_memcpy_from(p_hwfn, p_ptt, p_mb_params->p_data_dst,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
484
ecore_mcp_mb_unlock(p_hwfn, p_mb_params->cmd);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
489
enum _ecore_status_t ecore_mcp_cmd(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
497
if (CHIP_REV_IS_EMUL(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
500
loaded_port[p_hwfn->port_id]--;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
501
DP_VERBOSE(p_hwfn, ECORE_MSG_SP, "Unload cnt: 0x%x\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
511
rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
521
enum _ecore_status_t ecore_mcp_nvm_wr_cmd(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
538
rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
548
enum _ecore_status_t ecore_mcp_nvm_rd_cmd(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
569
rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
583
static void ecore_mcp_mf_workaround(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
590
} else if (!loaded_port[p_hwfn->port_id]) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
597
if (p_hwfn->p_dev->num_hwfns > 1)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
602
loaded_port[p_hwfn->port_id]++;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
604
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
606
*p_load_code, loaded, p_hwfn->port_id,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
607
loaded_port[p_hwfn->port_id]);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
635
static enum _ecore_status_t ecore_mcp_cancel_load_req(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
641
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_CANCEL_LOAD_REQ, 0,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
644
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
711
__ecore_mcp_load_req(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
72
DRV_INNER_WR(p_hwfn, _p_ptt, drv_mb_addr, \
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
740
mb_params.param = PDA_COMP | hsi_ver | p_hwfn->p_dev->drv_type;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
746
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
755
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
766
rc = ecore_mcp_cmd_and_union(p_hwfn, p_ptt, &mb_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
768
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
773
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
779
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
803
static enum _ecore_status_t eocre_get_mfw_drv_role(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
816
DP_ERR(p_hwfn, "Unexpected driver role %d\n", drv_role);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
830
ecore_get_mfw_force_cmd(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
845
DP_ERR(p_hwfn, "Unexpected force value %d\n", force_cmd);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
852
enum _ecore_status_t ecore_mcp_load_req(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
862
if (CHIP_REV_IS_EMUL(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
863
ecore_mcp_mf_workaround(p_hwfn, &p_params->load_code);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
873
rc = eocre_get_mfw_drv_role(p_hwfn, p_params->drv_role, &mfw_drv_role);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
879
rc = ecore_get_mfw_force_cmd(p_hwfn, ECORE_LOAD_REQ_FORCE_NONE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
888
rc = __ecore_mcp_load_req(p_hwfn, p_ptt, &in_params, &out_params);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
89
bool ecore_mcp_is_init(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
897
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
901
p_hwfn->mcp_info->block_mb_sending = false;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
905
rc = __ecore_mcp_load_req(p_hwfn, p_ptt, &in_params,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
91
if (!p_hwfn->mcp_info || !p_hwfn->mcp_info->public_base)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
912
p_hwfn->mcp_info->block_mb_sending = false;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
917
DP_INFO(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
925
DP_INFO(p_hwfn, "Sending a force load request\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
927
rc = ecore_get_mfw_force_cmd(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
935
rc = __ecore_mcp_load_req(p_hwfn, p_ptt, &in_params,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
940
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
948
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
951
ecore_mcp_cancel_load_req(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
96
void ecore_mcp_cmd_port_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
971
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
980
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
985
DP_NOTICE(p_hwfn, false,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
99
u32 addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
996
enum _ecore_status_t ecore_mcp_unload_req(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
135
enum _ecore_status_t ecore_mcp_cmd_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
145
void ecore_mcp_cmd_port_init(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
156
enum _ecore_status_t ecore_mcp_free(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
170
enum _ecore_status_t ecore_mcp_handle_events(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
187
enum _ecore_status_t ecore_issue_pulse(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
216
enum _ecore_status_t ecore_mcp_load_req(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
228
enum _ecore_status_t ecore_mcp_unload_req(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
239
enum _ecore_status_t ecore_mcp_unload_done(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
248
void ecore_mcp_read_mb(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
260
enum _ecore_status_t ecore_mcp_ack_vf_flr(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
271
enum _ecore_status_t ecore_mcp_fill_shmem_func_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
282
enum _ecore_status_t ecore_mcp_reset(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
301
enum _ecore_status_t ecore_mcp_nvm_wr_cmd(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
326
enum _ecore_status_t ecore_mcp_nvm_rd_cmd(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
342
bool ecore_mcp_is_init(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
354
enum _ecore_status_t ecore_mcp_config_vf_msix(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
366
enum _ecore_status_t ecore_mcp_halt(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
377
enum _ecore_status_t ecore_mcp_resume(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
379
int __ecore_configure_pf_max_bandwidth(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
383
int __ecore_configure_pf_min_bandwidth(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
387
enum _ecore_status_t ecore_mcp_mask_parities(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
391
enum _ecore_status_t ecore_hw_init_first_eth(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
405
enum _ecore_status_t ecore_mcp_mdump_set_values(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
417
enum _ecore_status_t ecore_mcp_mdump_trigger(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
437
ecore_mcp_mdump_get_retain(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
448
enum _ecore_status_t ecore_mcp_mdump_clr_retain(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
463
ecore_mcp_set_resc_max_val(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
480
ecore_mcp_get_resc_info(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
492
enum _ecore_status_t ecore_mcp_initiate_pf_flr(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
505
ecore_mcp_ov_update_eswitch(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
51
#define MCP_PF_ID_BY_REL(p_hwfn, rel_pfid) (ECORE_IS_BB((p_hwfn)->p_dev) ? \
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
53
((p_hwfn)->abs_pf_id & 1) << 3) : \
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
55
#define MCP_PF_ID(p_hwfn) MCP_PF_ID_BY_REL(p_hwfn, (p_hwfn)->rel_pf_id)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
560
ecore_mcp_resc_lock(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
584
ecore_mcp_resc_unlock(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
587
void ecore_mcp_wol_wr(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
596
enum _ecore_status_t ecore_mcp_get_capabilities(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
606
enum _ecore_status_t ecore_mcp_set_capabilities(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.h
615
enum _ecore_status_t ecore_load_mcp_offsets(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1037
ecore_mcp_get_nvm_image_att(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1052
enum _ecore_status_t ecore_mcp_get_nvm_image(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1070
enum _ecore_status_t ecore_mcp_phy_sfp_read(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1088
enum _ecore_status_t ecore_mcp_phy_sfp_write(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1103
enum _ecore_status_t ecore_mcp_gpio_read(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1117
enum _ecore_status_t ecore_mcp_gpio_write(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1133
enum _ecore_status_t ecore_mcp_gpio_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1146
enum _ecore_status_t ecore_mcp_bist_register_test(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1157
enum _ecore_status_t ecore_mcp_bist_clock_test(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1170
enum _ecore_status_t ecore_mcp_bist_nvm_test_get_num_images(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1184
enum _ecore_status_t ecore_mcp_bist_nvm_test_get_image_att(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1201
ecore_mcp_get_temperature_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1215
struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1228
enum _ecore_status_t ecore_mcp_mem_ecc_events(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1251
ecore_mcp_mdump_get_info(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1262
enum _ecore_status_t ecore_mcp_mdump_clear_logs(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1274
enum _ecore_status_t ecore_mcp_get_lldp_mac(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1287
enum _ecore_status_t ecore_mcp_set_lldp_mac(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1300
enum _ecore_status_t ecore_mfw_process_tlv_req(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1313
ecore_mcp_update_fcoe_cvid(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
1326
ecore_mcp_update_fcoe_fabric_name(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
630
*ecore_mcp_get_link_capabilities(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
641
enum _ecore_status_t ecore_mcp_set_link(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
655
enum _ecore_status_t ecore_mcp_get_mfw_ver(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
669
enum _ecore_status_t ecore_mcp_get_mbi_ver(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
700
enum _ecore_status_t ecore_mcp_cmd(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
711
enum _ecore_status_t ecore_mcp_drain(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
723
*ecore_mcp_get_function_info(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
760
enum _ecore_status_t ecore_mcp_nvm_command(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
775
int ecore_mcp_get_personality_cnt(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
789
enum _ecore_status_t ecore_mcp_get_flash_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
804
ecore_mcp_send_drv_version(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
815
u32 ecore_get_process_kill_counter(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
826
enum _ecore_status_t ecore_start_recovery_process(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
839
ecore_mcp_ov_update_current_config(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
853
ecore_mcp_ov_update_driver_state(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
869
ecore_mcp_ov_get_fc_npiv(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
881
enum _ecore_status_t ecore_mcp_ov_update_mtu(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
894
ecore_mcp_ov_update_mac(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
907
ecore_mcp_ov_update_wol(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
919
enum _ecore_status_t ecore_mcp_set_led(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ooo.h
101
void ecore_ooo_release_all_isles(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ooo.h
104
void ecore_ooo_put_free_buffer(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ooo.h
109
ecore_ooo_get_free_buffer(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ooo.h
112
void ecore_ooo_put_ready_buffer(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ooo.h
118
ecore_ooo_get_ready_buffer(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ooo.h
121
void ecore_ooo_delete_isles(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ooo.h
127
void ecore_ooo_add_new_isle(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ooo.h
133
void ecore_ooo_add_new_buffer(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ooo.h
140
void ecore_ooo_join_isles(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ooo.h
145
void ecore_ooo_dump_rx_event(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ooo.h
87
enum _ecore_status_t ecore_ooo_alloc(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ooo.h
89
void ecore_ooo_setup(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ooo.h
91
void ecore_ooo_free(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ooo.h
93
void ecore_ooo_save_history_entry(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ooo.h
97
void ecore_ooo_release_connection_isles(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1001
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port, I2C_TRANSCEIVER_ADDR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
101
int ecore_phy_core_read(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1012
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port, I2C_TRANSCEIVER_ADDR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1023
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port, I2C_TRANSCEIVER_ADDR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1034
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port, I2C_TRANSCEIVER_ADDR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1047
static enum _ecore_status_t ecore_decode_qsfp_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1068
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port, I2C_TRANSCEIVER_ADDR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1132
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
116
rc = ecore_phy_read(p_hwfn, p_ptt, port, 0 /* lane */ , addr,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1199
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port, I2C_TRANSCEIVER_ADDR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1221
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port, I2C_TRANSCEIVER_ADDR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1232
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port, I2C_TRANSCEIVER_ADDR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1243
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port, I2C_TRANSCEIVER_ADDR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1254
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port, I2C_TRANSCEIVER_ADDR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1268
int ecore_phy_sfp_decode(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1276
rc = ecore_validate_sfp_port(p_hwfn, p_ptt, port, p_phy_result_buf);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1280
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port, I2C_TRANSCEIVER_ADDR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1290
rc = ecore_decode_sfp_info(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1296
rc = ecore_decode_qsfp_info(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1302
rc = ecore_decode_qsfp_info(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1308
rc = ecore_decode_qsfp_info(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
131
int ecore_phy_raw_write(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1327
int ecore_phy_sfp_get_inserted(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1332
u32 addr = SECTION_OFFSIZE_ADDR(p_hwfn->mcp_info->public_base,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1334
u32 mfw_mb_offsize = ecore_rd(p_hwfn, p_ptt, addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1337
transceiver_state = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1351
int ecore_phy_sfp_get_txdisable(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1360
rc = ecore_validate_sfp_port(p_hwfn, p_ptt, port, p_phy_result_buf);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1364
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port, I2C_TRANSCEIVER_ADDR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1372
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1383
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1402
int ecore_phy_sfp_set_txdisable(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1419
rc = ecore_validate_sfp_port(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1424
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port, I2C_TRANSCEIVER_ADDR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1432
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1441
rc = ecore_mcp_phy_sfp_write(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1454
nvm_cfg_addr = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1456
nvm_cfg1_offset = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1460
gpio = (u16)ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1465
rc = ecore_phy_gpio_write(p_hwfn, p_ptt, gpio,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1476
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1485
rc = ecore_mcp_phy_sfp_write(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1505
int ecore_phy_sfp_get_txreset(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1514
rc = ecore_validate_sfp_port(p_hwfn, p_ptt, port, p_phy_result_buf);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1518
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port, I2C_TRANSCEIVER_ADDR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
152
rc = ecore_phy_write(p_hwfn,p_ptt, port, lane, addr, data_lo,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1526
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1538
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1558
int ecore_phy_sfp_get_rxlos(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1567
rc = ecore_validate_sfp_port(p_hwfn, p_ptt, port, p_phy_result_buf);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1571
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port, I2C_TRANSCEIVER_ADDR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1579
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1591
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1611
int ecore_phy_sfp_get_eeprom(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1619
rc = ecore_validate_sfp_port(p_hwfn, p_ptt, port, p_phy_result_buf);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1623
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port, I2C_TRANSCEIVER_ADDR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1634
rc = ecore_phy_sfp_read(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
164
int ecore_phy_raw_read(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1650
int ecore_phy_gpio_write(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1655
rc = ecore_mcp_gpio_write(p_hwfn, p_ptt, gpio, gpio_val);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1669
int ecore_phy_gpio_read(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1675
rc = ecore_mcp_gpio_read(p_hwfn, p_ptt, gpio, ¶m);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1687
int ecore_phy_gpio_info(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1693
rc = ecore_mcp_gpio_info(p_hwfn, p_ptt, gpio, &direction, &ctrl);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1731
int ecore_phy_extphy_read(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1738
rc = ecore_mcp_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_EXT_PHY_READ,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1755
int ecore_phy_extphy_write(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
1763
rc = ecore_mcp_nvm_wr_cmd(p_hwfn, p_ptt, DRV_MSG_CODE_EXT_PHY_WRITE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
187
rc = ecore_phy_read(p_hwfn,p_ptt, port, lane, addr, ECORE_PHY_RAW_READ,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
202
static u32 ecore_phy_get_nvm_cfg1_addr(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
207
nvm_cfg_addr = ecore_rd(p_hwfn, p_ptt, MISC_REG_GEN_PURP_CR0);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
208
nvm_cfg1_offset = ecore_rd(p_hwfn, p_ptt, nvm_cfg_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
215
int ecore_phy_info(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
218
u32 nvm_cfg1_addr = ecore_phy_get_nvm_cfg1_addr(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
225
u8 is_bb = ((ecore_rd(p_hwfn, p_ptt, MISCS_REG_CHIP_NUM) & 0x8070)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
235
core_cfg = ecore_rd(p_hwfn, p_ptt, nvm_cfg1_addr +
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
292
rc = ecore_phy_read(p_hwfn, p_ptt, port, 0, SERDESID,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
52
enum _ecore_status_t ecore_phy_read(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
56
return ecore_mcp_phy_read(p_hwfn->p_dev, cmd,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
582
static int ecore_bb_phy_mac_stat(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
596
rc = ecore_phy_read(p_hwfn, p_ptt, port, 0 /*lane*/, addr,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
60
enum _ecore_status_t ecore_phy_write(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
629
static int ecore_ah_e5_phy_mac_stat(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
640
data_lo = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
644
data_hi = ecore_rd(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
661
int ecore_phy_mac_stat(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
664
int num_ports = ecore_device_num_ports(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
672
if (ECORE_IS_BB(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
673
return ecore_bb_phy_mac_stat(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
676
return ecore_ah_e5_phy_mac_stat(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
70
return ecore_mcp_phy_write(p_hwfn->p_dev, cmd,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
707
static int ecore_validate_sfp_port(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
712
u32 num_ports = ecore_device_num_ports(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
730
static int ecore_validate_sfp_parameters(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
738
rc = ecore_validate_sfp_port(p_hwfn, p_ptt, port, p_phy_result_buf);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
76
int ecore_phy_core_write(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
769
int ecore_phy_sfp_write(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
775
rc = ecore_validate_sfp_parameters(p_hwfn, p_ptt, port, addr,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
779
rc = ecore_mcp_phy_sfp_write(p_hwfn, p_ptt, port, addr,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
794
int ecore_phy_sfp_read(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
801
rc = ecore_validate_sfp_parameters(p_hwfn, p_ptt, port, addr,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
808
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port, addr,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
822
static enum _ecore_status_t ecore_decode_sfp_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
845
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port, I2C_TRANSCEIVER_ADDR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
860
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
89
rc = ecore_phy_write(p_hwfn, p_ptt, port, 0 /* lane */, addr, data_lo,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
890
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
922
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
957
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.c
981
rc = ecore_mcp_phy_sfp_read(p_hwfn, p_ptt, port, I2C_TRANSCEIVER_ADDR,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.h
41
int ecore_phy_read(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy.h
43
int ecore_phy_write(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
100
int ecore_phy_raw_read(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
113
int ecore_phy_mac_stat(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
125
int ecore_phy_info(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
142
int ecore_phy_sfp_write(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
159
int ecore_phy_sfp_read(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
173
int ecore_phy_sfp_decode(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
186
int ecore_phy_sfp_get_inserted(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
200
int ecore_phy_sfp_get_txdisable(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
215
int ecore_phy_sfp_set_txdisable(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
230
int ecore_phy_sfp_get_txreset(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
244
int ecore_phy_sfp_get_rxlos(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
258
int ecore_phy_sfp_get_eeprom(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
273
int ecore_phy_gpio_write(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
286
int ecore_phy_gpio_read(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
299
int ecore_phy_gpio_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
315
int ecore_phy_extphy_read(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
331
int ecore_phy_extphy_write(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
52
int ecore_phy_core_write(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
67
int ecore_phy_core_read(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_phy_api.h
84
int ecore_phy_raw_write(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ptp_api.h
39
enum _ecore_status_t ecore_ptp_hwtstamp_tx_on(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ptp_api.h
42
enum _ecore_status_t ecore_ptp_cfg_rx_filters(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ptp_api.h
46
enum _ecore_status_t ecore_ptp_read_rx_ts(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ptp_api.h
49
enum _ecore_status_t ecore_ptp_read_tx_ts(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ptp_api.h
52
enum _ecore_status_t ecore_ptp_read_cc(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ptp_api.h
55
enum _ecore_status_t ecore_ptp_adjfreq(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ptp_api.h
58
enum _ecore_status_t ecore_ptp_disable(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_ptp_api.h
61
enum _ecore_status_t ecore_ptp_enable(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_roce.h
102
void ecore_roce_dpm_dcbx(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_roce.h
103
void ecore_rdma_dpm_bar(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_roce.h
182
#define IS_ECORE_DCQCN(p_hwfn) \
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_roce.h
183
(!!(p_hwfn->pf_params.rdma_pf_params.enable_dcqcn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_roce.h
385
void ecore_iwarp_async_event(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_roce.h
392
void ecore_roce_async_event(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_roce.h
396
enum _ecore_status_t ecore_rdma_info_alloc(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_roce.h
397
void ecore_rdma_info_free(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_roce_api.h
699
ecore_rdma_start(void *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_roce_api.h
713
u32 ecore_rdma_get_sb_id(void *p_hwfn, u32 rel_sb_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_roce_api.h
715
u32 ecore_rdma_query_cau_timer_res(void *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_roce_api.h
719
void ecore_rdma_resc_free(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
106
p_hwfn = &p_dev->hwfns[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
107
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
109
DP_ERR(p_hwfn, "failed to acquire ptt\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
112
rc = ecore_mcp_bist_clock_test(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
113
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
123
struct ecore_hwfn *p_hwfn = ECORE_LEADING_HWFN(p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
124
struct ecore_ptt *p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
132
DP_ERR(p_hwfn, "failed to acquire ptt\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
137
rc = ecore_mcp_bist_nvm_test_get_num_images(p_hwfn, p_ptt, &num_images);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
139
DP_ERR(p_hwfn, "Failed getting number of images\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
148
rc = ecore_mcp_bist_nvm_test_get_image_att(p_hwfn, p_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
151
DP_ERR(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
163
DP_VERBOSE(p_hwfn, ECORE_MSG_SP, "image index %d, size %x\n", i,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
167
buf = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, image_att.len);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
169
DP_ERR(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
177
rc = ecore_mcp_nvm_read(p_hwfn->p_dev, image_att.nvm_start_addr,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
180
DP_ERR(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
199
DP_VERBOSE(p_hwfn, ECORE_MSG_SP,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
208
OSAL_FREE(p_hwfn->p_dev, buf);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
212
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
216
OSAL_FREE(p_hwfn->p_dev, buf);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
218
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
74
struct ecore_hwfn *p_hwfn;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
82
p_hwfn = &p_dev->hwfns[i];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
83
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
85
DP_ERR(p_hwfn, "failed to acquire ptt\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
88
rc = ecore_mcp_bist_register_test(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
89
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_selftest.c
99
struct ecore_hwfn *p_hwfn;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_api.h
69
enum _ecore_status_t ecore_eth_cqe_completion(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_api.h
87
ecore_sp_pf_update_tunn_cfg(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
101
DP_NOTICE(p_hwfn, true, "Unknown SPQE completion mode %d\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
106
DP_VERBOSE(p_hwfn, ECORE_MSG_SPQ,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
214
ecore_tunn_set_pf_update_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
218
struct ecore_tunnel_info *p_tun = &p_hwfn->p_dev->tunnel;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
248
static void ecore_set_hw_tunn_mode(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
252
ecore_set_gre_enable(p_hwfn, p_ptt, p_tun->l2_gre.b_mode_enabled,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
254
ecore_set_vxlan_enable(p_hwfn, p_ptt, p_tun->vxlan.b_mode_enabled);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
256
ecore_set_geneve_enable(p_hwfn, p_ptt, p_tun->l2_geneve.b_mode_enabled,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
260
static void ecore_set_hw_tunn_mode_port(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
263
if (ECORE_IS_BB_A0(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
264
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
270
ecore_set_vxlan_dest_port(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
274
ecore_set_geneve_dest_port(p_hwfn, p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
277
ecore_set_hw_tunn_mode(p_hwfn, p_hwfn->p_main_ptt, p_tunn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
281
ecore_tunn_set_pf_start_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
285
struct ecore_tunnel_info *p_tun = &p_hwfn->p_dev->tunnel;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
287
if (ECORE_IS_BB_A0(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
288
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
322
enum _ecore_status_t ecore_sp_pf_start(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
328
u16 sb = ecore_int_get_sp_sb_id(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
329
u8 sb_index = p_hwfn->p_eq->eq_sb_index;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
336
ecore_eq_prod_update(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
337
ecore_chain_get_prod_idx(&p_hwfn->p_eq->chain));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
341
init_data.cid = ecore_spq_get_cid(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
342
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
345
rc = ecore_sp_init_request(p_hwfn, &p_ent,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
356
p_ramrod->path_id = ECORE_PATH_ID(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
371
DP_NOTICE(p_hwfn, true, "Unsupported MF mode, init as DEFAULT\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
374
p_ramrod->outer_tag = p_hwfn->hw_info.ovlan;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
378
p_hwfn->p_eq->chain.pbl_sp.p_phys_table);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
379
page_cnt = (u8)ecore_chain_get_page_cnt(&p_hwfn->p_eq->chain);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
382
p_hwfn->p_consq->chain.pbl_sp.p_phys_table);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
384
ecore_tunn_set_pf_start_params(p_hwfn, p_tunn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
387
if (IS_MF_SI(p_hwfn))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
390
switch (p_hwfn->hw_info.personality) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
406
DP_NOTICE(p_hwfn, true, "Unknown personality %d\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
407
p_hwfn->hw_info.personality);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
411
if (p_hwfn->p_dev->p_iov_info) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
412
struct ecore_hw_sriov_info *p_iov = p_hwfn->p_dev->p_iov_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
423
DP_VERBOSE(p_hwfn, ECORE_MSG_SPQ,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
427
rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
430
ecore_set_hw_tunn_mode_port(p_hwfn, &p_hwfn->p_dev->tunnel);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
435
enum _ecore_status_t ecore_sp_pf_update_dcbx(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
443
init_data.cid = ecore_spq_get_cid(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
444
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
447
rc = ecore_sp_init_request(p_hwfn, &p_ent,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
453
ecore_dcbx_set_pf_update_params(&p_hwfn->p_dcbx_info->results,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
456
return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
459
enum _ecore_status_t ecore_sp_rl_update(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
469
init_data.cid = ecore_spq_get_cid(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
470
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
473
rc = ecore_sp_init_request(p_hwfn, &p_ent,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
499
return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
504
ecore_sp_pf_update_tunn_cfg(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
513
if (IS_VF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
514
return ecore_vf_pf_tunnel_param_update(p_hwfn, p_tunn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
516
if (ECORE_IS_BB_A0(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
517
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
527
init_data.cid = ecore_spq_get_cid(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
528
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
532
rc = ecore_sp_init_request(p_hwfn, &p_ent,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
538
ecore_tunn_set_pf_update_params(p_hwfn, p_tunn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
54
enum _ecore_status_t ecore_sp_init_request(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
541
rc = ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
545
ecore_set_hw_tunn_mode_port(p_hwfn, &p_hwfn->p_dev->tunnel);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
550
enum _ecore_status_t ecore_sp_pf_stop(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
558
init_data.cid = ecore_spq_get_cid(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
559
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
562
rc = ecore_sp_init_request(p_hwfn, &p_ent,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
568
return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
571
enum _ecore_status_t ecore_sp_heartbeat_ramrod(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
579
init_data.cid = ecore_spq_get_cid(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
580
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
583
rc = ecore_sp_init_request(p_hwfn, &p_ent,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
589
return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
592
enum _ecore_status_t ecore_sp_pf_update_stag(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
600
init_data.cid = ecore_spq_get_cid(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
601
init_data.opaque_fid = p_hwfn->hw_info.opaque_fid;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
604
rc = ecore_sp_init_request(p_hwfn, &p_ent,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
611
p_ent->ramrod.pf_update.mf_vlan = OSAL_CPU_TO_LE16(p_hwfn->hw_info.ovlan);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
613
return ecore_spq_post(p_hwfn, p_ent, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.c
68
rc = ecore_spq_get_entry(p_hwfn, pp_ent);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.h
115
enum _ecore_status_t ecore_sp_pf_update_dcbx(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.h
131
enum _ecore_status_t ecore_sp_pf_stop(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.h
141
enum _ecore_status_t ecore_sp_heartbeat_ramrod(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.h
170
enum _ecore_status_t ecore_sp_rl_update(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.h
181
enum _ecore_status_t ecore_sp_pf_update_stag(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.h
71
enum _ecore_status_t ecore_sp_init_request(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sp_commands.h
97
enum _ecore_status_t ecore_sp_pf_start(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1033
DP_VERBOSE(p_hwfn, ECORE_MSG_SPQ,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1045
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1051
DP_VERBOSE(p_hwfn, ECORE_MSG_SPQ,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1056
found->comp_cb.function(p_hwfn, found->comp_cb.cookie, p_data,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1059
DP_VERBOSE(p_hwfn, ECORE_MSG_SPQ, "Got a completion without a callback function\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1067
ecore_spq_return_entry(p_hwfn, found);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1071
rc = ecore_spq_pend_post(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1077
enum _ecore_status_t ecore_consq_alloc(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1082
p_consq = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, sizeof(*p_consq));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1084
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1090
if (ecore_chain_alloc(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1097
DP_NOTICE(p_hwfn, true, "Failed to allocate consq chain");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1101
p_hwfn->p_consq = p_consq;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1105
OSAL_FREE(p_hwfn->p_dev, p_consq);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1109
void ecore_consq_setup(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1111
ecore_chain_reset(&p_hwfn->p_consq->chain);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1114
void ecore_consq_free(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1116
if (!p_hwfn->p_consq)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1119
ecore_chain_free(p_hwfn->p_dev, &p_hwfn->p_consq->chain);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1121
OSAL_FREE(p_hwfn->p_dev, p_hwfn->p_consq);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
1122
p_hwfn->p_consq = OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
121
static void ecore_spq_blocking_cb(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
134
OSAL_SMP_WMB(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
137
static enum _ecore_status_t __ecore_spq_block(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
150
OSAL_POLL_MODE_DPC(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
151
OSAL_SMP_RMB(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
167
static enum _ecore_status_t ecore_spq_block(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
178
rc = __ecore_spq_block(p_hwfn, p_ent, p_fw_ret, false);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
184
rc = __ecore_spq_block(p_hwfn, p_ent, p_fw_ret, true);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
188
DP_INFO(p_hwfn, "Ramrod is stuck, requesting MCP drain\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
189
rc = ecore_mcp_drain(p_hwfn, p_hwfn->p_main_ptt);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
191
DP_NOTICE(p_hwfn, true, "MCP drain failed\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
196
rc = __ecore_spq_block(p_hwfn, p_ent, p_fw_ret, true);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
207
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
213
ecore_hw_err_notify(p_hwfn, ECORE_HW_ERR_RAMROD_FAIL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
221
static enum _ecore_status_t ecore_spq_fill_entry(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
234
DP_NOTICE(p_hwfn, true, "Unknown SPQE completion mode %d\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
239
DP_VERBOSE(p_hwfn, ECORE_MSG_SPQ,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
254
static void ecore_spq_hw_initialize(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
264
rc = ecore_cxt_get_cid_info(p_hwfn, &cxt_info);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
267
DP_NOTICE(p_hwfn, true, "Cannot find context info for cid=%d\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
277
if (ECORE_IS_BB(p_hwfn->p_dev) || ECORE_IS_AH(p_hwfn->p_dev)) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
293
physical_q = ecore_get_cm_pq_idx(p_hwfn, PQ_FLAGS_LB);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
302
p_hwfn->p_consq->chain.p_phys_addr);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
305
static enum _ecore_status_t ecore_spq_hw_post(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
309
struct ecore_chain *p_chain = &p_hwfn->p_spq->chain;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
317
DP_NOTICE(p_hwfn, true, "Failed to produce from SPQ chain\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
332
OSAL_WMB(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
334
DOORBELL(p_hwfn, DB_ADDR(p_spq->cid, DQ_DEMS_LEGACY), *(u32 *)&db);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
337
OSAL_WMB(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
339
DP_VERBOSE(p_hwfn, ECORE_MSG_SPQ,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
352
ecore_async_event_completion(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
359
ecore_roce_async_event(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
367
ecore_iwarp_async_event(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
376
return ecore_sriov_eqe_event(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
382
if (p_hwfn->p_iscsi_info->event_cb != OSAL_NULL) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
383
struct ecore_iscsi_info *p_iscsi = p_hwfn->p_iscsi_info;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
388
DP_NOTICE(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
394
DP_NOTICE(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
404
void ecore_eq_prod_update(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
408
USTORM_EQE_CONS_OFFSET(p_hwfn->rel_pf_id);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
410
REG_WR16(p_hwfn, addr, prod);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
413
OSAL_MMIOWB(p_hwfn->p_dev);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
416
enum _ecore_status_t ecore_eq_completion(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
427
DP_VERBOSE(p_hwfn, ECORE_MSG_SPQ, "fw_cons_idx %x\n", fw_cons_idx);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
445
DP_VERBOSE(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
460
ecore_iscsi_eq_dump(p_hwfn, p_eqe);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
464
if (ecore_async_event_completion(p_hwfn, p_eqe))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
466
} else if (ecore_spq_completion(p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
476
ecore_eq_prod_update(p_hwfn, ecore_chain_get_prod_idx(p_chain));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
481
enum _ecore_status_t ecore_eq_alloc(struct ecore_hwfn *p_hwfn, u16 num_elem)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
486
p_eq = OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, sizeof(*p_eq));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
488
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
494
if (ecore_chain_alloc(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
501
DP_NOTICE(p_hwfn, true, "Failed to allocate eq chain\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
506
ecore_int_register_cb(p_hwfn, ecore_eq_completion,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
509
p_hwfn->p_eq = p_eq;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
513
OSAL_FREE(p_hwfn->p_dev, p_eq);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
517
void ecore_eq_setup(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
519
ecore_chain_reset(&p_hwfn->p_eq->chain);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
522
void ecore_eq_free(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
524
if (!p_hwfn->p_eq)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
527
ecore_chain_free(p_hwfn->p_dev, &p_hwfn->p_eq->chain);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
529
OSAL_FREE(p_hwfn->p_dev, p_hwfn->p_eq);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
530
p_hwfn->p_eq = OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
536
static enum _ecore_status_t ecore_cqe_completion(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
540
if (IS_VF(p_hwfn->p_dev))
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
541
return OSAL_VF_CQE_COMPLETION(p_hwfn, cqe, protocol);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
547
return ecore_spq_completion(p_hwfn, cqe->echo, 0, OSAL_NULL);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
550
enum _ecore_status_t ecore_eth_cqe_completion(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
555
rc = ecore_cqe_completion(p_hwfn, cqe, PROTOCOLID_ETH);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
557
DP_NOTICE(p_hwfn, true,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
568
void ecore_spq_setup(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
570
struct ecore_spq *p_spq = p_hwfn->p_spq;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
606
ecore_cxt_acquire_cid(p_hwfn, PROTOCOLID_CORE, &p_spq->cid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
607
ecore_spq_hw_initialize(p_hwfn, p_spq);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
613
enum _ecore_status_t ecore_spq_alloc(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
622
OSAL_ZALLOC(p_hwfn->p_dev, GFP_KERNEL, sizeof(struct ecore_spq));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
624
DP_NOTICE(p_hwfn, true, "Failed to allocate `struct ecore_spq'\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
629
if (ecore_chain_alloc(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
636
DP_NOTICE(p_hwfn, true, "Failed to allocate spq chain\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
642
p_virt = OSAL_DMA_ALLOC_COHERENT(p_hwfn->p_dev, &p_phys,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
652
OSAL_SPIN_LOCK_ALLOC(p_hwfn, &p_spq->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
654
p_hwfn->p_spq = p_spq;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
658
ecore_chain_free(p_hwfn->p_dev, &p_spq->chain);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
659
OSAL_FREE(p_hwfn->p_dev, p_spq);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
663
void ecore_spq_free(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
665
struct ecore_spq *p_spq = p_hwfn->p_spq;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
673
OSAL_DMA_FREE_COHERENT(p_hwfn->p_dev,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
680
ecore_chain_free(p_hwfn->p_dev, &p_spq->chain);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
683
OSAL_FREE(p_hwfn->p_dev, p_spq);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
684
p_hwfn->p_spq = OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
687
enum _ecore_status_t ecore_spq_get_entry(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
690
struct ecore_spq *p_spq = p_hwfn->p_spq;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
698
p_ent = OSAL_ZALLOC(p_hwfn->p_dev, GFP_ATOMIC, sizeof(*p_ent));
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
700
DP_NOTICE(p_hwfn, true, "Failed to allocate an SPQ entry for a pending ramrod\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
721
static void __ecore_spq_return_entry(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
724
OSAL_LIST_PUSH_TAIL(&p_ent->list, &p_hwfn->p_spq->free_pool);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
727
void ecore_spq_return_entry(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
730
OSAL_SPIN_LOCK(&p_hwfn->p_spq->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
731
__ecore_spq_return_entry(p_hwfn, p_ent);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
732
OSAL_SPIN_UNLOCK(&p_hwfn->p_spq->lock);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
74
static void ecore_iscsi_eq_dump(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
749
static enum _ecore_status_t ecore_spq_add_entry(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
753
struct ecore_spq *p_spq = p_hwfn->p_spq;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
78
DP_NOTICE(p_hwfn, false, "Unknown iSCSI EQ: %x\n",
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
782
OSAL_FREE(p_hwfn->p_dev, p_ent);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
809
u32 ecore_spq_get_cid(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
811
if (!p_hwfn->p_spq) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
814
return p_hwfn->p_spq->cid;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
821
static enum _ecore_status_t ecore_spq_post_list(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
825
struct ecore_spq *p_spq = p_hwfn->p_spq;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
844
rc = ecore_spq_hw_post(p_hwfn, p_spq, p_ent);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
848
__ecore_spq_return_entry(p_hwfn, p_ent);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
857
static enum _ecore_status_t ecore_spq_pend_post(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
859
struct ecore_spq *p_spq = p_hwfn->p_spq;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
878
ecore_spq_add_entry(p_hwfn, p_ent, p_ent->priority);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
881
return ecore_spq_post_list(p_hwfn, &p_spq->pending,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
885
enum _ecore_status_t ecore_spq_post(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
89
DP_VERBOSE(p_hwfn, ECORE_MSG_STORAGE,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
890
struct ecore_spq *p_spq = p_hwfn ? p_hwfn->p_spq : OSAL_NULL;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
893
if (!p_hwfn)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
897
DP_NOTICE(p_hwfn, true, "Got a NULL pointer\n");
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
901
if (p_hwfn->p_dev->recov_in_prog) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
902
DP_VERBOSE(p_hwfn, ECORE_MSG_SPQ,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
91
p_hwfn->port_id, p_eqe->opcode,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
914
rc = ecore_spq_fill_entry(p_hwfn, p_ent);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
921
rc = ecore_spq_add_entry(p_hwfn, p_ent, p_ent->priority);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
925
rc = ecore_spq_pend_post(p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
943
rc = ecore_spq_block(p_hwfn, p_ent, fw_return_code,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
950
OSAL_FREE(p_hwfn->p_dev, p_ent);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
962
ecore_spq_return_entry(p_hwfn, p_ent);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
974
__ecore_spq_return_entry(p_hwfn, p_ent);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
980
enum _ecore_status_t ecore_spq_completion(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
991
if (!p_hwfn) {
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.c
995
p_spq = p_hwfn->p_spq;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.h
216
enum _ecore_status_t ecore_spq_post(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.h
227
enum _ecore_status_t ecore_spq_alloc(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.h
234
void ecore_spq_setup(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.h
241
void ecore_spq_free(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.h
255
ecore_spq_get_entry(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.h
265
void ecore_spq_return_entry(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.h
275
enum _ecore_status_t ecore_eq_alloc(struct ecore_hwfn *p_hwfn, u16 num_elem);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.h
282
void ecore_eq_setup(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.h
289
void ecore_eq_free(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.h
297
void ecore_eq_prod_update(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.h
308
enum _ecore_status_t ecore_eq_completion(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.h
320
enum _ecore_status_t ecore_spq_completion(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.h
332
u32 ecore_spq_get_cid(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.h
341
enum _ecore_status_t ecore_consq_alloc(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.h
348
void ecore_consq_setup(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_spq.h
355
void ecore_consq_free(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
158
#define ECORE_VF_ABS_ID(p_hwfn, p_vf) (ECORE_PATH_ID(p_hwfn) ? \
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
231
enum _ecore_status_t ecore_iov_hw_info(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
243
void *ecore_add_tlv(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
254
void ecore_dp_tlv_list(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
264
enum _ecore_status_t ecore_iov_alloc(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
272
void ecore_iov_setup(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
280
void ecore_iov_free(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
297
enum _ecore_status_t ecore_sriov_eqe_event(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
310
bool ecore_iov_mark_vf_flr(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
322
void *ecore_iov_search_list_tlvs(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
336
struct ecore_vf_info *ecore_iov_get_vf_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
340
static OSAL_INLINE enum _ecore_status_t ecore_iov_hw_info(struct ecore_hwfn *p_hwfn) {return ECORE_SUCCESS;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
341
static OSAL_INLINE void *ecore_add_tlv(struct ecore_hwfn *p_hwfn, u8 **offset, u16 type, u16 length) {return OSAL_NULL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
342
static OSAL_INLINE void ecore_dp_tlv_list(struct ecore_hwfn *p_hwfn, void *tlvs_list) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
343
static OSAL_INLINE enum _ecore_status_t ecore_iov_alloc(struct ecore_hwfn *p_hwfn) {return ECORE_SUCCESS;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
344
static OSAL_INLINE void ecore_iov_setup(struct ecore_hwfn *p_hwfn, struct ecore_ptt *p_ptt) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
345
static OSAL_INLINE void ecore_iov_free(struct ecore_hwfn *p_hwfn) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
347
static OSAL_INLINE enum _ecore_status_t ecore_sriov_eqe_event(struct ecore_hwfn *p_hwfn, u8 opcode, __le16 echo, union event_ring_data *data) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
349
static OSAL_INLINE bool ecore_iov_mark_vf_flr(struct ecore_hwfn *p_hwfn, u32 *disabled_vfs) {return 0;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
350
static OSAL_INLINE void *ecore_iov_search_list_tlvs(struct ecore_hwfn *p_hwfn, void *p_tlvs_list, u16 req_type) {return OSAL_NULL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_sriov.h
351
static OSAL_INLINE struct ecore_vf_info *ecore_iov_get_vf_info(struct ecore_hwfn *p_hwfn, u16 relative_vf_id, bool b_enabled_only) {return OSAL_NULL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_user_dbg_fw_funcs.h
138
enum dbg_status ecore_get_idle_chk_results_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_user_dbg_fw_funcs.h
155
enum dbg_status ecore_print_idle_chk_results(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_user_dbg_fw_funcs.h
187
enum dbg_status ecore_get_mcp_trace_results_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_user_dbg_fw_funcs.h
203
enum dbg_status ecore_print_mcp_trace_results(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_user_dbg_fw_funcs.h
220
enum dbg_status ecore_get_reg_fifo_results_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_user_dbg_fw_funcs.h
235
enum dbg_status ecore_print_reg_fifo_results(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_user_dbg_fw_funcs.h
252
enum dbg_status ecore_get_igu_fifo_results_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_user_dbg_fw_funcs.h
267
enum dbg_status ecore_print_igu_fifo_results(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_user_dbg_fw_funcs.h
283
enum dbg_status ecore_get_protection_override_results_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_user_dbg_fw_funcs.h
300
enum dbg_status ecore_print_protection_override_results(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_user_dbg_fw_funcs.h
317
enum dbg_status ecore_get_fw_asserts_results_buf_size(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_user_dbg_fw_funcs.h
332
enum dbg_status ecore_print_fw_asserts_results(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_user_dbg_fw_funcs.h
348
enum dbg_status ecore_dbg_parse_attn(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
102
enum _ecore_status_t ecore_vf_pf_set_coalesce(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
114
enum _ecore_status_t ecore_vf_hw_prepare(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
130
enum _ecore_status_t ecore_vf_pf_rxq_start(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
151
ecore_vf_pf_txq_start(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
165
enum _ecore_status_t ecore_vf_pf_rxq_stop(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
177
enum _ecore_status_t ecore_vf_pf_txq_stop(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
195
enum _ecore_status_t ecore_vf_pf_rxqs_update(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
210
enum _ecore_status_t ecore_vf_pf_vport_update(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
220
enum _ecore_status_t ecore_vf_pf_reset(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
229
enum _ecore_status_t ecore_vf_pf_release(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
240
u16 ecore_vf_get_igu_sb_id(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
250
void ecore_vf_set_sb_info(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
267
struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
282
enum _ecore_status_t ecore_vf_pf_vport_stop(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
285
struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
288
void ecore_vf_pf_filter_mcast(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
298
enum _ecore_status_t ecore_vf_pf_int_cleanup(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
307
void __ecore_vf_get_link_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
318
void __ecore_vf_get_link_state(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
329
void __ecore_vf_get_link_caps(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
333
ecore_vf_pf_tunnel_param_update(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
337
static OSAL_INLINE enum _ecore_status_t ecore_vf_hw_prepare(struct ecore_hwfn *p_hwfn) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
338
static OSAL_INLINE enum _ecore_status_t ecore_vf_pf_rxq_start(struct ecore_hwfn *p_hwfn, struct ecore_queue_cid *p_cid, u16 bd_max_bytes, dma_addr_t bd_chain_phys_addr, dma_addr_t cqe_pbl_addr, u16 cqe_pbl_size, void OSAL_IOMEM **pp_prod) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
339
static OSAL_INLINE enum _ecore_status_t ecore_vf_pf_txq_start(struct ecore_hwfn *p_hwfn, struct ecore_queue_cid *p_cid, dma_addr_t pbl_addr, u16 pbl_size, void OSAL_IOMEM **pp_doorbell) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
341
static OSAL_INLINE enum _ecore_status_t ecore_vf_pf_rxq_stop(struct ecore_hwfn *p_hwfn, struct ecore_queue_cid *p_cid, bool cqe_completion) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
342
static OSAL_INLINE enum _ecore_status_t ecore_vf_pf_txq_stop(struct ecore_hwfn *p_hwfn, struct ecore_queue_cid *p_cid) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
344
static OSAL_INLINE enum _ecore_status_t ecore_vf_pf_rxqs_update(struct ecore_hwfn *p_hwfn, struct ecore_queue_cid **pp_cid, u8 num_rxqs, u8 comp_cqe_flg, u8 comp_event_flg) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
346
static OSAL_INLINE enum _ecore_status_t ecore_vf_pf_vport_update(struct ecore_hwfn *p_hwfn, struct ecore_sp_vport_update_params *p_params) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
347
static OSAL_INLINE enum _ecore_status_t ecore_vf_pf_reset(struct ecore_hwfn *p_hwfn) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
348
static OSAL_INLINE enum _ecore_status_t ecore_vf_pf_release(struct ecore_hwfn *p_hwfn) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
349
static OSAL_INLINE u16 ecore_vf_get_igu_sb_id(struct ecore_hwfn *p_hwfn, u16 sb_id) {return 0;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
350
static OSAL_INLINE void ecore_vf_set_sb_info(struct ecore_hwfn *p_hwfn, u16 sb_id, struct ecore_sb_info *p_sb) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
352
static OSAL_INLINE enum _ecore_status_t ecore_vf_pf_vport_start(struct ecore_hwfn *p_hwfn, u8 vport_id, u16 mtu, u8 inner_vlan_removal, enum ecore_tpa_mode tpa_mode, u8 max_buffers_per_cqe, u8 only_untagged) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
353
static OSAL_INLINE enum _ecore_status_t ecore_vf_pf_vport_stop(struct ecore_hwfn *p_hwfn) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
354
static OSAL_INLINE enum _ecore_status_t ecore_vf_pf_filter_ucast(struct ecore_hwfn *p_hwfn, struct ecore_filter_ucast *p_param) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
355
static OSAL_INLINE void ecore_vf_pf_filter_mcast(struct ecore_hwfn *p_hwfn, struct ecore_filter_mcast *p_filter_cmd) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
356
static OSAL_INLINE enum _ecore_status_t ecore_vf_pf_int_cleanup(struct ecore_hwfn *p_hwfn) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
357
static OSAL_INLINE void __ecore_vf_get_link_params(struct ecore_hwfn *p_hwfn, struct ecore_mcp_link_params *p_params, struct ecore_bulletin_content *p_bulletin) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
358
static OSAL_INLINE void __ecore_vf_get_link_state(struct ecore_hwfn *p_hwfn, struct ecore_mcp_link_state *p_link, struct ecore_bulletin_content *p_bulletin) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
359
static OSAL_INLINE void __ecore_vf_get_link_caps(struct ecore_hwfn *p_hwfn, struct ecore_mcp_link_capabilities *p_link_caps, struct ecore_bulletin_content *p_bulletin) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
360
static OSAL_INLINE enum _ecore_status_t ecore_vf_pf_tunnel_param_update(struct ecore_hwfn *p_hwfn, struct ecore_tunnel_info *p_tunn) { return ECORE_INVAL; }
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
362
static OSAL_INLINE enum _ecore_status_t ecore_vf_pf_set_coalesce(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
82
enum _ecore_status_t ecore_set_rxq_coalesce(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf.h
86
enum _ecore_status_t ecore_set_txq_coalesce(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
105
void ecore_vf_get_port_mac(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
114
void ecore_vf_get_num_vlan_filters(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
123
void ecore_vf_get_num_mac_filters(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
134
bool ecore_vf_check_mac(struct ecore_hwfn *p_hwfn, u8 *mac);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
169
bool ecore_vf_get_pre_fp_hsi(struct ecore_hwfn *p_hwfn);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
182
void ecore_vf_get_fw_version(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
187
void ecore_vf_bulletin_get_udp_ports(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
190
static OSAL_INLINE enum _ecore_status_t ecore_vf_read_bulletin(struct ecore_hwfn *p_hwfn, u8 *p_change) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
191
static OSAL_INLINE void ecore_vf_get_link_params(struct ecore_hwfn *p_hwfn, struct ecore_mcp_link_params *params) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
192
static OSAL_INLINE void ecore_vf_get_link_state(struct ecore_hwfn *p_hwfn, struct ecore_mcp_link_state *link) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
193
static OSAL_INLINE void ecore_vf_get_link_caps(struct ecore_hwfn *p_hwfn, struct ecore_mcp_link_capabilities *p_link_caps) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
194
static OSAL_INLINE void ecore_vf_get_num_rxqs(struct ecore_hwfn *p_hwfn, u8 *num_rxqs) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
195
static OSAL_INLINE void ecore_vf_get_num_txqs(struct ecore_hwfn *p_hwfn, u8 *num_txqs) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
196
static OSAL_INLINE void ecore_vf_get_port_mac(struct ecore_hwfn *p_hwfn, u8 *port_mac) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
197
static OSAL_INLINE void ecore_vf_get_num_vlan_filters(struct ecore_hwfn *p_hwfn, u8 *num_vlan_filters) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
198
static OSAL_INLINE void ecore_vf_get_num_mac_filters(struct ecore_hwfn *p_hwfn, u8 *num_mac_filters) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
199
static OSAL_INLINE bool ecore_vf_check_mac(struct ecore_hwfn *p_hwfn, u8 *mac) {return false;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
202
static OSAL_INLINE bool ecore_vf_get_pre_fp_hsi(struct ecore_hwfn *p_hwfn) {return false; }
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
204
static OSAL_INLINE void ecore_vf_get_fw_version(struct ecore_hwfn *p_hwfn, u16 *fw_major, u16 *fw_minor, u16 *fw_rev, u16 *fw_eng) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
205
static OSAL_INLINE void ecore_vf_bulletin_get_udp_ports(struct ecore_hwfn *p_hwfn, u16 *p_vxlan_port, u16 *p_geneve_port) { return; }
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
51
enum _ecore_status_t ecore_vf_read_bulletin(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
60
void ecore_vf_get_link_params(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
69
void ecore_vf_get_link_state(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
78
void ecore_vf_get_link_caps(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
87
void ecore_vf_get_num_rxqs(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
96
void ecore_vf_get_num_txqs(struct ecore_hwfn *p_hwfn,
usr/src/uts/common/io/qede/qede_gld.c
1414
struct ecore_hwfn *p_hwfn;
usr/src/uts/common/io/qede/qede_gld.c
1429
p_hwfn = &edev->hwfns[hwfn_index];
usr/src/uts/common/io/qede/qede_gld.c
1433
ret = ecore_rd(p_hwfn, p_hwfn->p_main_ptt, addr);
usr/src/uts/common/io/qede/qede_gld.c
1438
ecore_wr(p_hwfn, p_hwfn->p_main_ptt, addr, val);
usr/src/uts/common/io/qede/qede_main.c
1315
struct ecore_hwfn *p_hwfn;
usr/src/uts/common/io/qede/qede_main.c
1319
p_hwfn = &edev->hwfns[i];
usr/src/uts/common/io/qede/qede_main.c
1327
status = ecore_sp_vport_stop(p_hwfn,
usr/src/uts/common/io/qede/qede_main.c
1328
p_hwfn->hw_info.opaque_fid,
usr/src/uts/common/io/qede/qede_main.c
1401
struct ecore_hwfn *p_hwfn;
usr/src/uts/common/io/qede/qede_main.c
1433
p_hwfn = &edev->hwfns[i];
usr/src/uts/common/io/qede/qede_main.c
1437
p_hwfn->hw_info.opaque_fid;
usr/src/uts/common/io/qede/qede_main.c
1525
status = ecore_sp_vport_update(p_hwfn,
usr/src/uts/common/io/qede/qede_main.c
1547
struct ecore_hwfn *p_hwfn;
usr/src/uts/common/io/qede/qede_main.c
1553
p_hwfn = &edev->hwfns[i];
usr/src/uts/common/io/qede/qede_main.c
1568
params.concrete_fid = p_hwfn->hw_info.concrete_fid;
usr/src/uts/common/io/qede/qede_main.c
1569
params.opaque_fid = p_hwfn->hw_info.opaque_fid;
usr/src/uts/common/io/qede/qede_main.c
1572
status = ecore_sp_vport_start(p_hwfn, ¶ms);
usr/src/uts/common/io/qede/qede_main.c
1581
ecore_hw_start_fastpath(p_hwfn);
usr/src/uts/common/io/qede/qede_main.c
1608
struct ecore_hwfn *p_hwfn;
usr/src/uts/common/io/qede/qede_main.c
1630
p_hwfn = &edev->hwfns[fp->fp_hw_eng_index];
usr/src/uts/common/io/qede/qede_main.c
1637
status = ecore_eth_tx_queue_stop(p_hwfn,
usr/src/uts/common/io/qede/qede_main.c
1654
status = ecore_eth_rx_queue_stop(p_hwfn,
usr/src/uts/common/io/qede/qede_main.c
1686
struct ecore_hwfn *p_hwfn;
usr/src/uts/common/io/qede/qede_main.c
1710
p_hwfn = &edev->hwfns[fp->fp_hw_eng_index];
usr/src/uts/common/io/qede/qede_main.c
1720
status = ecore_eth_rx_queue_start(p_hwfn,
usr/src/uts/common/io/qede/qede_main.c
1721
p_hwfn->hw_info.opaque_fid,
usr/src/uts/common/io/qede/qede_main.c
1758
status = ecore_eth_tx_queue_start(p_hwfn,
usr/src/uts/common/io/qede/qede_main.c
1759
p_hwfn->hw_info.opaque_fid,
usr/src/uts/common/io/qede/qede_main.c
2750
struct ecore_hwfn *p_hwfn;
usr/src/uts/common/io/qede/qede_main.c
2766
p_hwfn = &edev->hwfns[sb_id % qede->num_hwfns];
usr/src/uts/common/io/qede/qede_main.c
2787
status = ecore_int_sb_init(p_hwfn,
usr/src/uts/common/io/qede/qede_main.c
2788
p_hwfn->p_main_ptt,
usr/src/uts/common/io/qede/qede_main.c
3303
struct ecore_hwfn *p_hwfn;
usr/src/uts/common/io/qede/qede_main.c
3526
p_hwfn = &qede->edev.hwfns[0];
usr/src/uts/common/io/qede/qede_main.c
3527
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/qede_main.c
3531
link_params = ecore_mcp_get_link_params(p_hwfn);
usr/src/uts/common/io/qede/qede_main.c
3538
p_hwfn = ECORE_LEADING_HWFN(edev);
usr/src/uts/common/io/qede/qede_main.c
3539
ecore_mcp_get_mfw_ver(p_hwfn, p_ptt, &qede->mfw_ver, NULL);
usr/src/uts/common/io/qede/qede_main.c
3541
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/qede_main.c
3705
struct ecore_hwfn *p_hwfn;
usr/src/uts/common/io/qede/qede_main.c
3709
p_hwfn = ECORE_LEADING_HWFN(edev);
usr/src/uts/common/io/qede/qede_main.c
3710
p_ptt = ecore_ptt_acquire(p_hwfn);
usr/src/uts/common/io/qede/qede_main.c
3712
status = ecore_start_recovery_process(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/qede_main.c
3713
ecore_ptt_release(p_hwfn, p_ptt);
usr/src/uts/common/io/qede/qede_main.c
638
struct ecore_hwfn *p_hwfn = (struct ecore_hwfn *)arg1;
usr/src/uts/common/io/qede/qede_main.c
641
struct ecore_dev *edev = p_hwfn->p_dev;
usr/src/uts/common/io/qede/qede_main.c
660
ecore_int_sp_dpc((osal_int_ptr_t)p_hwfn);
usr/src/uts/common/io/qede/qede_main.c
880
struct ecore_hwfn *p_hwfn = &edev->hwfns[i];
usr/src/uts/common/io/qede/qede_main.c
881
params = &p_hwfn->pf_params;
usr/src/uts/common/io/qede/qede_osal.c
744
qede_osal_iov_vf_acquire(struct ecore_hwfn *p_hwfn, int vf_id)
usr/src/uts/common/io/qede/qede_osal.c
780
qede_osal_poll_mode_dpc(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/qede_osal.c
794
qede_osal_mfw_tlv_req(struct ecore_hwfn *p_hwfn)
usr/src/uts/common/io/qede/qede_osal.c
807
qede_osal_hw_info_change(struct ecore_hwfn *p_hwfn, int change)
usr/src/uts/common/io/qede/qede_osal.c
825
OSAL_DPC_SYNC(struct ecore_hwfn *p_hwfn)