Home
last modified time | relevance | path

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

/drivers/infiniband/hw/hns/
Dhns_roce_srq.c170 struct hns_roce_buf_attr buf_attr = {}; in alloc_srq_idx() local
175 buf_attr.page_shift = hr_dev->caps.idx_buf_pg_sz + PAGE_SHIFT; in alloc_srq_idx()
176 buf_attr.region[0].size = to_hr_hem_entries_size(srq->wqe_cnt, in alloc_srq_idx()
178 buf_attr.region[0].hopnum = hr_dev->caps.idx_hop_num; in alloc_srq_idx()
179 buf_attr.region_count = 1; in alloc_srq_idx()
181 ret = hns_roce_mtr_create(hr_dev, &idx_que->mtr, &buf_attr, in alloc_srq_idx()
223 struct hns_roce_buf_attr buf_attr = {}; in alloc_srq_wqe_buf() local
230 buf_attr.page_shift = hr_dev->caps.srqwqe_buf_pg_sz + PAGE_SHIFT; in alloc_srq_wqe_buf()
231 buf_attr.region[0].size = to_hr_hem_entries_size(srq->wqe_cnt, in alloc_srq_wqe_buf()
233 buf_attr.region[0].hopnum = hr_dev->caps.srqwqe_hop_num; in alloc_srq_wqe_buf()
[all …]
Dhns_roce_mr.c94 struct hns_roce_buf_attr buf_attr = {}; in alloc_mr_pbl() local
98 buf_attr.page_shift = is_fast ? PAGE_SHIFT : in alloc_mr_pbl()
100 buf_attr.region[0].size = mr->size; in alloc_mr_pbl()
101 buf_attr.region[0].hopnum = mr->pbl_hop_num; in alloc_mr_pbl()
102 buf_attr.region_count = 1; in alloc_mr_pbl()
103 buf_attr.user_access = mr->access; in alloc_mr_pbl()
105 buf_attr.mtt_only = is_fast; in alloc_mr_pbl()
107 err = hns_roce_mtr_create(hr_dev, &mr->pbl_mtr, &buf_attr, in alloc_mr_pbl()
669 struct hns_roce_buf_attr *buf_attr, in mtr_alloc_bufs() argument
675 total_size = mtr_bufs_size(buf_attr); in mtr_alloc_bufs()
[all …]
Dhns_roce_qp.c648 struct hns_roce_buf_attr *buf_attr) in set_wqe_buf_attr() argument
659 if (buf_size > 0 && idx < ARRAY_SIZE(buf_attr->region)) { in set_wqe_buf_attr()
660 buf_attr->region[idx].size = buf_size; in set_wqe_buf_attr()
661 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_sq_hop_num; in set_wqe_buf_attr()
670 if (buf_size > 0 && idx < ARRAY_SIZE(buf_attr->region)) { in set_wqe_buf_attr()
671 buf_attr->region[idx].size = buf_size; in set_wqe_buf_attr()
672 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_sge_hop_num; in set_wqe_buf_attr()
681 if (buf_size > 0 && idx < ARRAY_SIZE(buf_attr->region)) { in set_wqe_buf_attr()
682 buf_attr->region[idx].size = buf_size; in set_wqe_buf_attr()
683 buf_attr->region[idx].hopnum = hr_dev->caps.wqe_rq_hop_num; in set_wqe_buf_attr()
[all …]
Dhns_roce_cq.c203 struct hns_roce_buf_attr buf_attr = {}; in alloc_cq_buf() local
206 buf_attr.page_shift = hr_dev->caps.cqe_buf_pg_sz + PAGE_SHIFT; in alloc_cq_buf()
207 buf_attr.region[0].size = hr_cq->cq_depth * hr_cq->cqe_size; in alloc_cq_buf()
208 buf_attr.region[0].hopnum = hr_dev->caps.cqe_hop_num; in alloc_cq_buf()
209 buf_attr.region_count = 1; in alloc_cq_buf()
211 ret = hns_roce_mtr_create(hr_dev, &hr_cq->mtr, &buf_attr, in alloc_cq_buf()
Dhns_roce_hw_v2.c6364 struct hns_roce_buf_attr buf_attr = {}; in alloc_eq_buf() local
6372 buf_attr.page_shift = hr_dev->caps.eqe_buf_pg_sz + PAGE_SHIFT; in alloc_eq_buf()
6373 buf_attr.region[0].size = eq->entries * eq->eqe_size; in alloc_eq_buf()
6374 buf_attr.region[0].hopnum = eq->hop_num; in alloc_eq_buf()
6375 buf_attr.region_count = 1; in alloc_eq_buf()
6377 err = hns_roce_mtr_create(hr_dev, &eq->mtr, &buf_attr, in alloc_eq_buf()
Dhns_roce_device.h1135 struct hns_roce_buf_attr *buf_attr,
/drivers/staging/media/atomisp/pci/
Dsh_css_sp.c89 initialize_frame_buffer_attribute(struct ia_css_buffer_sp *buf_attr);
450 sh_css_copy_buffer_attr_to_spbuffer(&sp_frame_out->buf_attr, in sh_css_copy_frame_to_spframe()
887 initialize_frame_buffer_attribute(struct ia_css_buffer_sp *buf_attr) in initialize_frame_buffer_attribute() argument
889 buf_attr->buf_src.queue_id = SH_CSS_INVALID_QUEUE_ID; in initialize_frame_buffer_attribute()
890 buf_attr->buf_type = IA_CSS_BUFFER_TYPE_INVALID; in initialize_frame_buffer_attribute()
898 initialize_frame_buffer_attribute(&frames->in.buf_attr); in initialize_stage_frames()
900 initialize_frame_buffer_attribute(&frames->out[i].buf_attr); in initialize_stage_frames()
902 initialize_frame_buffer_attribute(&frames->out_vf.buf_attr); in initialize_stage_frames()
/drivers/staging/media/atomisp/pci/runtime/frame/interface/
Dia_css_frame_comm.h95 struct ia_css_buffer_sp buf_attr; member
/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
/drivers/staging/rtl8723bs/core/
Drtw_ieee80211.c692 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
718 if (buf_attr) in rtw_get_wps_attr()
719 memcpy(buf_attr, attr_ptr, attr_len); in rtw_get_wps_attr()
/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);