Lines Matching refs:p_seg

490 	struct qed_tid_seg *p_seg = &p_mngr->conn_cfg[proto].tid_seg[seg];  in qed_cxt_set_proto_tid_count()  local
492 p_seg->count = count; in qed_cxt_set_proto_tid_count()
493 p_seg->has_fl_mem = has_fl; in qed_cxt_set_proto_tid_count()
494 p_seg->type = seg_type; in qed_cxt_set_proto_tid_count()
581 struct qed_tid_seg *p_seg; in qed_cxt_cfg_ilt_compute() local
638 p_seg = qed_cxt_tid_seg_info(p_hwfn, i); in qed_cxt_cfg_ilt_compute()
639 if (!p_seg || p_seg->count == 0) in qed_cxt_cfg_ilt_compute()
643 total = p_seg->count * p_mngr->task_type_size[p_seg->type]; in qed_cxt_cfg_ilt_compute()
645 p_mngr->task_type_size[p_seg->type]); in qed_cxt_cfg_ilt_compute()
653 p_seg = qed_cxt_tid_seg_info(p_hwfn, i); in qed_cxt_cfg_ilt_compute()
654 if (!p_seg || p_seg->count == 0) in qed_cxt_cfg_ilt_compute()
660 if (!p_seg->has_fl_mem) { in qed_cxt_cfg_ilt_compute()
682 total = p_seg->count * p_mngr->task_type_size[p_seg->type]; in qed_cxt_cfg_ilt_compute()
686 p_mngr->task_type_size[p_seg->type]); in qed_cxt_cfg_ilt_compute()
694 p_seg = qed_cxt_tid_seg_info(p_hwfn, TASK_SEGMENT_VF); in qed_cxt_cfg_ilt_compute()
695 if (p_seg && p_seg->count) { in qed_cxt_cfg_ilt_compute()
701 total = p_seg->count * p_mngr->task_type_size[p_seg->type]; in qed_cxt_cfg_ilt_compute()
706 p_mngr->task_type_size[p_seg->type]); in qed_cxt_cfg_ilt_compute()
714 if (!p_seg->has_fl_mem) { in qed_cxt_cfg_ilt_compute()
719 task_size = p_mngr->task_type_size[p_seg->type]; in qed_cxt_cfg_ilt_compute()
849 struct qed_tid_seg *p_seg; in qed_cxt_cfg_ilt_compute_excess() local
866 p_seg = qed_cxt_tid_seg_info(p_hwfn, i); in qed_cxt_cfg_ilt_compute_excess()
867 if (!p_seg || p_seg->count == 0) in qed_cxt_cfg_ilt_compute_excess()
870 elem_size = p_mngr->task_type_size[p_seg->type]; in qed_cxt_cfg_ilt_compute_excess()
1445 struct qed_tid_seg *p_seg; in qed_cdu_init_pf() local
1468 p_seg = qed_cxt_tid_seg_info(p_hwfn, i); in qed_cdu_init_pf()
1469 if (!p_seg) in qed_cdu_init_pf()
1482 SET_FIELD(cdu_seg_params, CDU_SEG_REG_TYPE, p_seg->type); in qed_cdu_init_pf()
1491 SET_FIELD(cdu_seg_params, CDU_SEG_REG_TYPE, p_seg->type); in qed_cdu_init_pf()
2506 struct qed_ilt_cli_blk *p_seg; in qed_cxt_get_task_ctx() local
2533 p_seg = &p_cli->pf_blks[CDUT_SEG_BLK(seg)]; in qed_cxt_get_task_ctx()
2537 p_seg = &p_cli->pf_blks[CDUT_FL_SEG_BLK(seg, PF)]; in qed_cxt_get_task_ctx()
2541 total_lines = DIV_ROUND_UP(p_seg->total_size, p_seg->real_size_in_page); in qed_cxt_get_task_ctx()
2543 num_tids_per_block = p_seg->real_size_in_page / tid_size; in qed_cxt_get_task_ctx()
2548 ilt_idx = tid / num_tids_per_block + p_seg->start_line - in qed_cxt_get_task_ctx()