Home
last modified time | relevance | path

Searched refs:buf_attr (Results 1 – 12 of 12) sorted by relevance

/linux-6.12.1/drivers/infiniband/hw/hns/
Dhns_roce_mr.c95 struct hns_roce_buf_attr buf_attr = {}; in alloc_mr_pbl() local
99 buf_attr.page_shift = is_fast ? PAGE_SHIFT : in alloc_mr_pbl()
101 buf_attr.region[0].size = mr->size; in alloc_mr_pbl()
102 buf_attr.region[0].hopnum = mr->pbl_hop_num; in alloc_mr_pbl()
103 buf_attr.region_count = 1; in alloc_mr_pbl()
104 buf_attr.user_access = mr->access; in alloc_mr_pbl()
106 buf_attr.mtt_only = is_fast; in alloc_mr_pbl()
107 buf_attr.iova = mr->iova; in alloc_mr_pbl()
109 buf_attr.adaptive = !is_fast; in alloc_mr_pbl()
110 buf_attr.type = MTR_PBL; in alloc_mr_pbl()
[all …]
Dhns_roce_srq.c171 struct hns_roce_buf_attr buf_attr = {}; in alloc_srq_idx() local
176 buf_attr.page_shift = hr_dev->caps.idx_buf_pg_sz + PAGE_SHIFT; in alloc_srq_idx()
177 buf_attr.region[0].size = to_hr_hem_entries_size(srq->wqe_cnt, in alloc_srq_idx()
179 buf_attr.region[0].hopnum = hr_dev->caps.idx_hop_num; in alloc_srq_idx()
180 buf_attr.region_count = 1; in alloc_srq_idx()
182 ret = hns_roce_mtr_create(hr_dev, &idx_que->mtr, &buf_attr, in alloc_srq_idx()
224 struct hns_roce_buf_attr buf_attr = {}; in alloc_srq_wqe_buf() local
231 buf_attr.page_shift = hr_dev->caps.srqwqe_buf_pg_sz + PAGE_SHIFT; in alloc_srq_wqe_buf()
232 buf_attr.region[0].size = to_hr_hem_entries_size(srq->wqe_cnt, in alloc_srq_wqe_buf()
234 buf_attr.region[0].hopnum = hr_dev->caps.srqwqe_hop_num; in alloc_srq_wqe_buf()
[all …]
Dhns_roce_cq.c202 struct hns_roce_buf_attr buf_attr = {}; in alloc_cq_buf() local
205 buf_attr.page_shift = hr_dev->caps.cqe_buf_pg_sz + PAGE_SHIFT; in alloc_cq_buf()
206 buf_attr.region[0].size = hr_cq->cq_depth * hr_cq->cqe_size; in alloc_cq_buf()
207 buf_attr.region[0].hopnum = hr_dev->caps.cqe_hop_num; in alloc_cq_buf()
208 buf_attr.region_count = 1; in alloc_cq_buf()
210 ret = hns_roce_mtr_create(hr_dev, &hr_cq->mtr, &buf_attr, in alloc_cq_buf()
Dhns_roce_qp.c649 struct hns_roce_buf_attr *buf_attr) in set_wqe_buf_attr() argument
660 if (buf_size > 0 && idx < ARRAY_SIZE(buf_attr->region)) { in set_wqe_buf_attr()
661 buf_attr->region[idx].size = buf_size; in set_wqe_buf_attr()
662 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_sq_hop_num; in set_wqe_buf_attr()
671 if (buf_size > 0 && idx < ARRAY_SIZE(buf_attr->region)) { in set_wqe_buf_attr()
672 buf_attr->region[idx].size = buf_size; in set_wqe_buf_attr()
673 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_sge_hop_num; in set_wqe_buf_attr()
682 if (buf_size > 0 && idx < ARRAY_SIZE(buf_attr->region)) { in set_wqe_buf_attr()
683 buf_attr->region[idx].size = buf_size; in set_wqe_buf_attr()
684 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_rq_hop_num; in set_wqe_buf_attr()
[all …]
Dhns_roce_device.h1188 struct hns_roce_buf_attr *buf_attr,
Dhns_roce_hw_v2.c6502 struct hns_roce_buf_attr buf_attr = {}; in alloc_eq_buf() local
6510 buf_attr.page_shift = hr_dev->caps.eqe_buf_pg_sz + PAGE_SHIFT; in alloc_eq_buf()
6511 buf_attr.region[0].size = eq->entries * eq->eqe_size; in alloc_eq_buf()
6512 buf_attr.region[0].hopnum = eq->hop_num; in alloc_eq_buf()
6513 buf_attr.region_count = 1; in alloc_eq_buf()
6515 err = hns_roce_mtr_create(hr_dev, &eq->mtr, &buf_attr, in alloc_eq_buf()
/linux-6.12.1/drivers/staging/media/atomisp/pci/runtime/frame/interface/
Dia_css_frame_comm.h95 struct ia_css_buffer_sp buf_attr; member
/linux-6.12.1/drivers/staging/media/atomisp/pci/
Dsh_css_sp.c87 initialize_frame_buffer_attribute(struct ia_css_buffer_sp *buf_attr);
437 sh_css_copy_buffer_attr_to_spbuffer(&sp_frame_out->buf_attr, in sh_css_copy_frame_to_spframe()
851 initialize_frame_buffer_attribute(struct ia_css_buffer_sp *buf_attr) in initialize_frame_buffer_attribute() argument
853 buf_attr->buf_src.queue_id = SH_CSS_INVALID_QUEUE_ID; in initialize_frame_buffer_attribute()
854 buf_attr->buf_type = IA_CSS_BUFFER_TYPE_INVALID; in initialize_frame_buffer_attribute()
862 initialize_frame_buffer_attribute(&frames->in.buf_attr); in initialize_stage_frames()
864 initialize_frame_buffer_attribute(&frames->out[i].buf_attr); in initialize_stage_frames()
866 initialize_frame_buffer_attribute(&frames->out_vf.buf_attr); in initialize_stage_frames()
/linux-6.12.1/drivers/staging/media/ipu3/
Dipu3-css.c898 frames_sp->in.buf_attr = buffer_sp_init; in imgu_css_pipeline_init()
900 frames_sp->out[i].buf_attr = buffer_sp_init; in imgu_css_pipeline_init()
901 frames_sp->out_vf.buf_attr = buffer_sp_init; in imgu_css_pipeline_init()
926 frame_sp->buf_attr.buf_src.queue_id = IMGU_ABI_QUEUE_C_ID; in imgu_css_pipeline_init()
927 frame_sp->buf_attr.buf_type = IMGU_ABI_BUFFER_TYPE_INPUT_FRAME; in imgu_css_pipeline_init()
939 frame_sp->buf_attr.buf_src.queue_id = IMGU_ABI_QUEUE_D_ID; in imgu_css_pipeline_init()
940 frame_sp->buf_attr.buf_type = IMGU_ABI_BUFFER_TYPE_OUTPUT_FRAME; in imgu_css_pipeline_init()
943 frame_sp->buf_attr.buf_src.queue_id = IMGU_ABI_QUEUE_EVENT_ID; in imgu_css_pipeline_init()
966 frame_sp->buf_attr.buf_src.queue_id = IMGU_ABI_QUEUE_E_ID; in imgu_css_pipeline_init()
967 frame_sp->buf_attr.buf_type = IMGU_ABI_BUFFER_TYPE_VF_OUTPUT_FRAME; in imgu_css_pipeline_init()
Dipu3-abi.h1412 struct imgu_abi_buffer_sp buf_attr; member
/linux-6.12.1/drivers/staging/rtl8723bs/core/
Drtw_ieee80211.c693 u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *buf_attr, u32 *len_attr) in rtw_get_wps_attr() argument
719 if (buf_attr) in rtw_get_wps_attr()
720 memcpy(buf_attr, attr_ptr, attr_len); in rtw_get_wps_attr()
/linux-6.12.1/drivers/staging/rtl8723bs/include/
Dieee80211.h753 u8 *rtw_get_wps_attr(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8 *buf_attr, u32 *len_attr);