Lines Matching refs:p_ptt
234 int qed_pglueb_rbc_attn_handler(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in qed_pglueb_rbc_attn_handler() argument
240 tmp = qed_rd(p_hwfn, p_ptt, PGLUE_B_REG_TX_ERR_WR_DETAILS2); in qed_pglueb_rbc_attn_handler()
244 addr_lo = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
246 addr_hi = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
248 details = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
270 tmp = qed_rd(p_hwfn, p_ptt, PGLUE_B_REG_TX_ERR_RD_DETAILS2); in qed_pglueb_rbc_attn_handler()
274 addr_lo = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
276 addr_hi = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
278 details = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
299 tmp = qed_rd(p_hwfn, p_ptt, PGLUE_B_REG_TX_ERR_WR_DETAILS_ICPL); in qed_pglueb_rbc_attn_handler()
309 tmp = qed_rd(p_hwfn, p_ptt, PGLUE_B_REG_MASTER_ZLR_ERR_DETAILS); in qed_pglueb_rbc_attn_handler()
313 addr_lo = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
315 addr_hi = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
322 tmp = qed_rd(p_hwfn, p_ptt, PGLUE_B_REG_VF_ILT_ERR_DETAILS2); in qed_pglueb_rbc_attn_handler()
326 addr_lo = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
328 addr_hi = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
330 details = qed_rd(p_hwfn, p_ptt, in qed_pglueb_rbc_attn_handler()
339 qed_wr(p_hwfn, p_ptt, PGLUE_B_REG_LATCHED_ERRORS_CLR, BIT(2)); in qed_pglueb_rbc_attn_handler()
377 struct qed_ptt *p_ptt) in qed_db_rec_flush_queue() argument
383 qed_wr(p_hwfn, p_ptt, DORQ_REG_DPM_FORCE_ABORT, 0x1); in qed_db_rec_flush_queue()
396 usage = qed_rd(p_hwfn, p_ptt, DORQ_REG_PF_USAGE_CNT); in qed_db_rec_flush_queue()
411 int qed_db_rec_handler(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_db_rec_handler() argument
418 cur_ovfl = qed_rd(p_hwfn, p_ptt, DORQ_REG_PF_OVFL_STICKY); in qed_db_rec_handler()
426 rc = qed_db_rec_flush_queue(p_hwfn, p_ptt); in qed_db_rec_handler()
432 qed_wr(p_hwfn, p_ptt, DORQ_REG_PF_OVFL_STICKY, 0x0); in qed_db_rec_handler()
442 struct qed_ptt *p_ptt = p_hwfn->p_dpc_ptt; in qed_dorq_attn_overflow() local
446 overflow = qed_rd(p_hwfn, p_ptt, DORQ_REG_PF_OVFL_STICKY); in qed_dorq_attn_overflow()
454 rc = qed_db_rec_flush_queue(p_hwfn, p_ptt); in qed_dorq_attn_overflow()
459 qed_wr(p_hwfn, p_ptt, DORQ_REG_PF_OVFL_STICKY, 0x0); in qed_dorq_attn_overflow()
468 struct qed_ptt *p_ptt = p_hwfn->p_dpc_ptt; in qed_dorq_attn_int_sts() local
470 int_sts = qed_rd(p_hwfn, p_ptt, DORQ_REG_INT_STS); in qed_dorq_attn_int_sts()
492 first_drop_reason = qed_rd(p_hwfn, p_ptt, in qed_dorq_attn_int_sts()
495 details = qed_rd(p_hwfn, p_ptt, DORQ_REG_DB_DROP_DETAILS); in qed_dorq_attn_int_sts()
496 address = qed_rd(p_hwfn, p_ptt, in qed_dorq_attn_int_sts()
498 all_drops_reason = qed_rd(p_hwfn, p_ptt, in qed_dorq_attn_int_sts()
515 qed_wr(p_hwfn, p_ptt, DORQ_REG_DB_DROP_DETAILS_REL, 0); in qed_dorq_attn_int_sts()
521 p_ptt, in qed_dorq_attn_int_sts()
1352 struct qed_ptt *p_ptt) in qed_int_sb_attn_setup() argument
1362 qed_wr(p_hwfn, p_ptt, IGU_REG_ATTN_MSG_ADDR_L, in qed_int_sb_attn_setup()
1364 qed_wr(p_hwfn, p_ptt, IGU_REG_ATTN_MSG_ADDR_H, in qed_int_sb_attn_setup()
1369 struct qed_ptt *p_ptt, in qed_int_sb_attn_init() argument
1403 qed_int_sb_attn_setup(p_hwfn, p_ptt); in qed_int_sb_attn_init()
1407 struct qed_ptt *p_ptt) in qed_int_sb_attn_alloc() argument
1431 qed_int_sb_attn_init(p_hwfn, p_ptt, p_virt, p_phys); in qed_int_sb_attn_alloc()
1492 struct qed_ptt *p_ptt, in qed_int_cau_conf_pi() argument
1514 qed_wr(p_hwfn, p_ptt, in qed_int_cau_conf_pi()
1522 struct qed_ptt *p_ptt, in qed_int_cau_conf_sb() argument
1535 qed_dmae_host2grc(p_hwfn, p_ptt, (u64)(uintptr_t)&phys_addr, in qed_int_cau_conf_sb()
1538 qed_dmae_host2grc(p_hwfn, p_ptt, (u64)(uintptr_t)&sb_entry, in qed_int_cau_conf_sb()
1568 qed_int_cau_conf_pi(p_hwfn, p_ptt, igu_sb_id, RX_PI, in qed_int_cau_conf_sb()
1579 qed_int_cau_conf_pi(p_hwfn, p_ptt, in qed_int_cau_conf_sb()
1588 struct qed_ptt *p_ptt, struct qed_sb_info *sb_info) in qed_int_sb_setup() argument
1595 qed_int_cau_conf_sb(p_hwfn, p_ptt, sb_info->sb_phys, in qed_int_sb_setup()
1662 struct qed_ptt *p_ptt, in qed_int_sb_init() argument
1705 qed_int_sb_setup(p_hwfn, p_ptt, sb_info); in qed_int_sb_init()
1761 static int qed_int_sp_sb_alloc(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_int_sp_sb_alloc() argument
1783 qed_int_sb_init(p_hwfn, p_ptt, &p_sb->sb_info, p_virt, in qed_int_sp_sb_alloc()
1834 struct qed_ptt *p_ptt, enum qed_int_mode int_mode) in qed_int_igu_enable_int() argument
1857 qed_wr(p_hwfn, p_ptt, IGU_REG_PF_CONFIGURATION, igu_pf_conf); in qed_int_igu_enable_int()
1861 struct qed_ptt *p_ptt) in qed_int_igu_enable_attn() argument
1865 qed_wr(p_hwfn, p_ptt, IGU_REG_ATTENTION_ENABLE, 0); in qed_int_igu_enable_attn()
1866 qed_wr(p_hwfn, p_ptt, IGU_REG_LEADING_EDGE_LATCH, 0xfff); in qed_int_igu_enable_attn()
1867 qed_wr(p_hwfn, p_ptt, IGU_REG_TRAILING_EDGE_LATCH, 0xfff); in qed_int_igu_enable_attn()
1868 qed_wr(p_hwfn, p_ptt, IGU_REG_ATTENTION_ENABLE, 0xfff); in qed_int_igu_enable_attn()
1871 qed_wr(p_hwfn, p_ptt, MISC_REG_AEU_MASK_ATTN_IGU, 0xff); in qed_int_igu_enable_attn()
1876 struct qed_ptt *p_ptt, enum qed_int_mode int_mode) in qed_int_igu_enable() argument
1880 qed_int_igu_enable_attn(p_hwfn, p_ptt); in qed_int_igu_enable()
1891 qed_int_igu_enable_int(p_hwfn, p_ptt, int_mode); in qed_int_igu_enable()
1897 void qed_int_igu_disable_int(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_int_igu_disable_int() argument
1904 qed_wr(p_hwfn, p_ptt, IGU_REG_PF_CONFIGURATION, 0); in qed_int_igu_disable_int()
1909 struct qed_ptt *p_ptt, in qed_int_igu_cleanup_sb() argument
1927 qed_wr(p_hwfn, p_ptt, IGU_REG_COMMAND_REG_32LSB_DATA, data); in qed_int_igu_cleanup_sb()
1931 qed_wr(p_hwfn, p_ptt, IGU_REG_COMMAND_REG_CTRL, cmd_ctrl); in qed_int_igu_cleanup_sb()
1941 val = qed_rd(p_hwfn, p_ptt, sb_bit_addr); in qed_int_igu_cleanup_sb()
1956 struct qed_ptt *p_ptt, in qed_int_igu_init_pure_rt_single() argument
1971 qed_int_igu_cleanup_sb(p_hwfn, p_ptt, igu_sb_id, 1, opaque); in qed_int_igu_init_pure_rt_single()
1974 qed_int_igu_cleanup_sb(p_hwfn, p_ptt, igu_sb_id, 0, opaque); in qed_int_igu_init_pure_rt_single()
1980 val = qed_rd(p_hwfn, p_ptt, in qed_int_igu_init_pure_rt_single()
1995 qed_wr(p_hwfn, p_ptt, in qed_int_igu_init_pure_rt_single()
2000 struct qed_ptt *p_ptt, in qed_int_igu_init_pure_rt() argument
2008 val = qed_rd(p_hwfn, p_ptt, IGU_REG_BLOCK_CONFIGURATION); in qed_int_igu_init_pure_rt()
2011 qed_wr(p_hwfn, p_ptt, IGU_REG_BLOCK_CONFIGURATION, val); in qed_int_igu_init_pure_rt()
2022 qed_int_igu_init_pure_rt_single(p_hwfn, p_ptt, igu_sb_id, in qed_int_igu_init_pure_rt()
2028 qed_int_igu_init_pure_rt_single(p_hwfn, p_ptt, in qed_int_igu_init_pure_rt()
2034 int qed_int_igu_reset_cam(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_int_igu_reset_cam() argument
2147 rval = qed_rd(p_hwfn, p_ptt, in qed_int_igu_reset_cam()
2151 qed_wr(p_hwfn, p_ptt, in qed_int_igu_reset_cam()
2169 struct qed_ptt *p_ptt, u16 igu_sb_id) in qed_int_igu_read_cam_block() argument
2171 u32 val = qed_rd(p_hwfn, p_ptt, in qed_int_igu_read_cam_block()
2184 int qed_int_igu_read_cam(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_int_igu_read_cam() argument
2211 qed_int_igu_read_cam_block(p_hwfn, p_ptt, igu_sb_id); in qed_int_igu_read_cam()
2312 int qed_int_alloc(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_int_alloc() argument
2316 rc = qed_int_sp_sb_alloc(p_hwfn, p_ptt); in qed_int_alloc()
2320 rc = qed_int_sb_attn_alloc(p_hwfn, p_ptt); in qed_int_alloc()
2331 void qed_int_setup(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt) in qed_int_setup() argument
2333 qed_int_sb_setup(p_hwfn, p_ptt, &p_hwfn->p_sp_sb->sb_info); in qed_int_setup()
2334 qed_int_sb_attn_setup(p_hwfn, p_ptt); in qed_int_setup()
2362 int qed_int_set_timer_res(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in qed_int_set_timer_res() argument
2374 rc = qed_dmae_grc2host(p_hwfn, p_ptt, CAU_REG_SB_VAR_MEMORY + in qed_int_set_timer_res()
2391 rc = qed_dmae_host2grc(p_hwfn, p_ptt, in qed_int_set_timer_res()