Lines Matching refs:p_seg

361 	struct qed_tid_seg *p_seg = &p_mngr->conn_cfg[proto].tid_seg[seg];  in qed_cxt_set_proto_tid_count()  local
363 p_seg->count = count; in qed_cxt_set_proto_tid_count()
364 p_seg->has_fl_mem = has_fl; in qed_cxt_set_proto_tid_count()
365 p_seg->type = seg_type; in qed_cxt_set_proto_tid_count()
466 struct qed_tid_seg *p_seg; in qed_cxt_cfg_ilt_compute() local
528 p_seg = qed_cxt_tid_seg_info(p_hwfn, i); in qed_cxt_cfg_ilt_compute()
529 if (!p_seg || p_seg->count == 0) in qed_cxt_cfg_ilt_compute()
533 total = p_seg->count * p_mngr->task_type_size[p_seg->type]; in qed_cxt_cfg_ilt_compute()
535 p_mngr->task_type_size[p_seg->type]); in qed_cxt_cfg_ilt_compute()
543 p_seg = qed_cxt_tid_seg_info(p_hwfn, i); in qed_cxt_cfg_ilt_compute()
544 if (!p_seg || p_seg->count == 0) in qed_cxt_cfg_ilt_compute()
550 if (!p_seg->has_fl_mem) { in qed_cxt_cfg_ilt_compute()
572 total = p_seg->count * p_mngr->task_type_size[p_seg->type]; in qed_cxt_cfg_ilt_compute()
576 p_mngr->task_type_size[p_seg->type]); in qed_cxt_cfg_ilt_compute()
584 p_seg = qed_cxt_tid_seg_info(p_hwfn, TASK_SEGMENT_VF); in qed_cxt_cfg_ilt_compute()
585 if (p_seg && p_seg->count) { in qed_cxt_cfg_ilt_compute()
591 total = p_seg->count * p_mngr->task_type_size[p_seg->type]; in qed_cxt_cfg_ilt_compute()
596 p_mngr->task_type_size[p_seg->type]); in qed_cxt_cfg_ilt_compute()
604 if (!p_seg->has_fl_mem) { in qed_cxt_cfg_ilt_compute()
609 task_size = p_mngr->task_type_size[p_seg->type]; in qed_cxt_cfg_ilt_compute()
739 struct qed_tid_seg *p_seg; in qed_cxt_cfg_ilt_compute_excess() local
756 p_seg = qed_cxt_tid_seg_info(p_hwfn, i); in qed_cxt_cfg_ilt_compute_excess()
757 if (!p_seg || p_seg->count == 0) in qed_cxt_cfg_ilt_compute_excess()
760 elem_size = p_mngr->task_type_size[p_seg->type]; in qed_cxt_cfg_ilt_compute_excess()
1347 struct qed_tid_seg *p_seg; in qed_cdu_init_pf() local
1370 p_seg = qed_cxt_tid_seg_info(p_hwfn, i); in qed_cdu_init_pf()
1371 if (!p_seg) in qed_cdu_init_pf()
1384 SET_FIELD(cdu_seg_params, CDU_SEG_REG_TYPE, p_seg->type); in qed_cdu_init_pf()
1393 SET_FIELD(cdu_seg_params, CDU_SEG_REG_TYPE, p_seg->type); in qed_cdu_init_pf()
2454 struct qed_ilt_cli_blk *p_seg; in qed_cxt_get_task_ctx() local
2482 p_seg = &p_cli->pf_blks[CDUT_SEG_BLK(seg)]; in qed_cxt_get_task_ctx()
2486 p_seg = &p_cli->pf_blks[CDUT_FL_SEG_BLK(seg, PF)]; in qed_cxt_get_task_ctx()
2490 total_lines = DIV_ROUND_UP(p_seg->total_size, p_seg->real_size_in_page); in qed_cxt_get_task_ctx()
2492 num_tids_per_block = p_seg->real_size_in_page / tid_size; in qed_cxt_get_task_ctx()
2497 ilt_idx = tid / num_tids_per_block + p_seg->start_line - in qed_cxt_get_task_ctx()