Home
last modified time | relevance | path

Searched refs:wqs (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_wq.c31 #define WQS_FREE_BLOCKS_SIZE(wqs) (WQS_MAX_NUM_BLOCKS * \ argument
32 sizeof((wqs)->free_blocks[0]))
44 #define WQ_BASE_VADDR(wqs, wq) \ argument
45 ((void *)((wqs)->page_vaddr[(wq)->page_idx]) \
48 #define WQ_BASE_PADDR(wqs, wq) \ argument
49 ((wqs)->page_paddr[(wq)->page_idx] \
52 #define WQ_BASE_ADDR(wqs, wq) \ argument
53 ((void *)((wqs)->shadow_page_vaddr[(wq)->page_idx]) \
136 static int wqs_allocate_page(struct hinic_wqs *wqs, int page_idx) in wqs_allocate_page() argument
138 return queue_alloc_page(wqs->hwif, &wqs->page_vaddr[page_idx], in wqs_allocate_page()
[all …]
Dhinic_hw_wq.h85 int hinic_wqs_alloc(struct hinic_wqs *wqs, int num_wqs,
88 void hinic_wqs_free(struct hinic_wqs *wqs);
90 int hinic_wq_allocate(struct hinic_wqs *wqs, struct hinic_wq *wq,
94 void hinic_wq_free(struct hinic_wqs *wqs, struct hinic_wq *wq);
Dhinic_hw_io.c280 err = hinic_wq_allocate(&func_to_io->wqs, &func_to_io->sq_wq[q_id], in init_qp()
288 err = hinic_wq_allocate(&func_to_io->wqs, &func_to_io->rq_wq[q_id], in init_qp()
330 hinic_wq_free(&func_to_io->wqs, &func_to_io->rq_wq[q_id]); in init_qp()
333 hinic_wq_free(&func_to_io->wqs, &func_to_io->sq_wq[q_id]); in init_qp()
352 hinic_wq_free(&func_to_io->wqs, &func_to_io->rq_wq[q_id]); in destroy_qp()
353 hinic_wq_free(&func_to_io->wqs, &func_to_io->sq_wq[q_id]); in destroy_qp()
518 err = hinic_wqs_alloc(&func_to_io->wqs, 2 * max_qps, hwif); in hinic_io_init()
561 hinic_wqs_free(&func_to_io->wqs); in hinic_io_init()
582 hinic_wqs_free(&func_to_io->wqs); in hinic_io_free()
Dhinic_hw_io.h53 struct hinic_wqs wqs; member
/Linux-v5.4/drivers/infiniband/core/
Duverbs_cmd.c3061 struct ib_wq **wqs = NULL; in ib_uverbs_ex_create_rwq_ind_table() local
3094 wqs = kcalloc(num_wq_handles, sizeof(*wqs), GFP_KERNEL); in ib_uverbs_ex_create_rwq_ind_table()
3095 if (!wqs) { in ib_uverbs_ex_create_rwq_ind_table()
3109 wqs[num_read_wqs] = wq; in ib_uverbs_ex_create_rwq_ind_table()
3119 init_attr.ind_tbl = wqs; in ib_uverbs_ex_create_rwq_ind_table()
3129 rwq_ind_tbl->ind_tbl = wqs; in ib_uverbs_ex_create_rwq_ind_table()
3137 atomic_inc(&wqs[i]->usecnt); in ib_uverbs_ex_create_rwq_ind_table()
3150 uobj_put_obj_read(wqs[j]); in ib_uverbs_ex_create_rwq_ind_table()
3160 uobj_put_obj_read(wqs[j]); in ib_uverbs_ex_create_rwq_ind_table()
3163 kfree(wqs); in ib_uverbs_ex_create_rwq_ind_table()