• Home
  • Raw
  • Download

Lines Matching refs:p_block

1601 	struct qed_igu_block *p_block;  in qed_get_igu_free_sb()  local
1606 p_block = &p_hwfn->hw_info.p_igu_info->entry[igu_id]; in qed_get_igu_free_sb()
1608 if (!(p_block->status & QED_IGU_STATUS_VALID) || in qed_get_igu_free_sb()
1609 !(p_block->status & QED_IGU_STATUS_FREE)) in qed_get_igu_free_sb()
1612 if (!!(p_block->status & QED_IGU_STATUS_PF) == b_is_pf) in qed_get_igu_free_sb()
1613 return p_block; in qed_get_igu_free_sb()
1621 struct qed_igu_block *p_block; in qed_get_pf_igu_sb_id() local
1626 p_block = &p_hwfn->hw_info.p_igu_info->entry[igu_id]; in qed_get_pf_igu_sb_id()
1628 if (!(p_block->status & QED_IGU_STATUS_VALID) || in qed_get_pf_igu_sb_id()
1629 !p_block->is_pf || in qed_get_pf_igu_sb_id()
1630 p_block->vector_number != vector_id) in qed_get_pf_igu_sb_id()
1674 struct qed_igu_block *p_block; in qed_int_sb_init() local
1677 p_block = &p_info->entry[sb_info->igu_sb_id]; in qed_int_sb_init()
1679 p_block->sb_info = sb_info; in qed_int_sb_init()
1680 p_block->status &= ~QED_IGU_STATUS_FREE; in qed_int_sb_init()
1713 struct qed_igu_block *p_block; in qed_int_sb_release() local
1729 p_block = &p_info->entry[sb_info->igu_sb_id]; in qed_int_sb_release()
1732 if (!p_block->vector_number) { in qed_int_sb_release()
1738 p_block->sb_info = NULL; in qed_int_sb_release()
1739 p_block->status |= QED_IGU_STATUS_FREE; in qed_int_sb_release()
1959 struct qed_igu_block *p_block; in qed_int_igu_init_pure_rt_single() local
1962 p_block = &p_hwfn->hw_info.p_igu_info->entry[igu_sb_id]; in qed_int_igu_init_pure_rt_single()
1966 p_block->function_id, in qed_int_igu_init_pure_rt_single()
1967 p_block->is_pf, p_block->vector_number); in qed_int_igu_init_pure_rt_single()
2004 struct qed_igu_block *p_block; in qed_int_igu_init_pure_rt() local
2015 p_block = &p_info->entry[igu_sb_id]; in qed_int_igu_init_pure_rt()
2017 if (!(p_block->status & QED_IGU_STATUS_VALID) || in qed_int_igu_init_pure_rt()
2018 !p_block->is_pf || in qed_int_igu_init_pure_rt()
2019 (p_block->status & QED_IGU_STATUS_DSB)) in qed_int_igu_init_pure_rt()
2037 struct qed_igu_block *p_block; in qed_int_igu_reset_cam() local
2102 p_block = &p_info->entry[igu_sb_id]; in qed_int_igu_reset_cam()
2105 if (!(p_block->status & QED_IGU_STATUS_VALID)) in qed_int_igu_reset_cam()
2108 if (p_block->status & QED_IGU_STATUS_DSB) { in qed_int_igu_reset_cam()
2109 p_block->function_id = p_hwfn->rel_pf_id; in qed_int_igu_reset_cam()
2110 p_block->is_pf = 1; in qed_int_igu_reset_cam()
2111 p_block->vector_number = 0; in qed_int_igu_reset_cam()
2112 p_block->status = QED_IGU_STATUS_VALID | in qed_int_igu_reset_cam()
2117 p_block->function_id = p_hwfn->rel_pf_id; in qed_int_igu_reset_cam()
2118 p_block->is_pf = 1; in qed_int_igu_reset_cam()
2119 p_block->vector_number = p_info->usage.cnt - pf_sbs; in qed_int_igu_reset_cam()
2120 p_block->status = QED_IGU_STATUS_VALID | in qed_int_igu_reset_cam()
2124 p_block->function_id = in qed_int_igu_reset_cam()
2127 p_block->is_pf = 0; in qed_int_igu_reset_cam()
2128 p_block->vector_number = 0; in qed_int_igu_reset_cam()
2129 p_block->status = QED_IGU_STATUS_VALID | in qed_int_igu_reset_cam()
2133 p_block->function_id = 0; in qed_int_igu_reset_cam()
2134 p_block->is_pf = 0; in qed_int_igu_reset_cam()
2135 p_block->vector_number = 0; in qed_int_igu_reset_cam()
2139 p_block->function_id); in qed_int_igu_reset_cam()
2140 SET_FIELD(val, IGU_MAPPING_LINE_PF_VALID, p_block->is_pf); in qed_int_igu_reset_cam()
2142 p_block->vector_number); in qed_int_igu_reset_cam()
2145 SET_FIELD(val, IGU_MAPPING_LINE_VALID, p_block->is_pf); in qed_int_igu_reset_cam()
2159 p_block->function_id, in qed_int_igu_reset_cam()
2160 p_block->is_pf, in qed_int_igu_reset_cam()
2161 p_block->vector_number, rval, val); in qed_int_igu_reset_cam()
2173 struct qed_igu_block *p_block; in qed_int_igu_read_cam_block() local
2175 p_block = &p_hwfn->hw_info.p_igu_info->entry[igu_sb_id]; in qed_int_igu_read_cam_block()
2178 p_block->function_id = GET_FIELD(val, IGU_MAPPING_LINE_FUNCTION_NUMBER); in qed_int_igu_read_cam_block()
2179 p_block->is_pf = GET_FIELD(val, IGU_MAPPING_LINE_PF_VALID); in qed_int_igu_read_cam_block()
2180 p_block->vector_number = GET_FIELD(val, IGU_MAPPING_LINE_VECTOR_NUMBER); in qed_int_igu_read_cam_block()
2181 p_block->igu_sb_id = igu_sb_id; in qed_int_igu_read_cam_block()
2187 struct qed_igu_block *p_block; in qed_int_igu_read_cam() local
2212 p_block = &p_igu_info->entry[igu_sb_id]; in qed_int_igu_read_cam()
2214 if ((p_block->is_pf) && in qed_int_igu_read_cam()
2215 (p_block->function_id == p_hwfn->rel_pf_id)) { in qed_int_igu_read_cam()
2216 p_block->status = QED_IGU_STATUS_PF | in qed_int_igu_read_cam()
2222 } else if (!(p_block->is_pf) && in qed_int_igu_read_cam()
2223 (p_block->function_id >= min_vf) && in qed_int_igu_read_cam()
2224 (p_block->function_id < max_vf)) { in qed_int_igu_read_cam()
2226 p_block->status = QED_IGU_STATUS_VALID | in qed_int_igu_read_cam()
2236 if ((p_block->status & QED_IGU_STATUS_VALID) && in qed_int_igu_read_cam()
2239 p_block->status |= QED_IGU_STATUS_DSB; in qed_int_igu_read_cam()
2246 if ((p_block->status & QED_IGU_STATUS_VALID) || in qed_int_igu_read_cam()
2250 igu_sb_id, p_block->function_id, in qed_int_igu_read_cam()
2251 p_block->is_pf, p_block->vector_number); in qed_int_igu_read_cam()