Home
last modified time | relevance | path

Searched defs:wq (Results 1 – 25 of 270) sorted by relevance

1234567891011

/drivers/net/ethernet/mellanox/mlx5/core/
Dwq.h100 static inline u32 mlx5_wq_cyc_get_size(struct mlx5_wq_cyc *wq) in mlx5_wq_cyc_get_size()
105 static inline int mlx5_wq_cyc_is_full(struct mlx5_wq_cyc *wq) in mlx5_wq_cyc_is_full()
110 static inline int mlx5_wq_cyc_missing(struct mlx5_wq_cyc *wq) in mlx5_wq_cyc_missing()
115 static inline int mlx5_wq_cyc_is_empty(struct mlx5_wq_cyc *wq) in mlx5_wq_cyc_is_empty()
120 static inline void mlx5_wq_cyc_push(struct mlx5_wq_cyc *wq) in mlx5_wq_cyc_push()
126 static inline void mlx5_wq_cyc_push_n(struct mlx5_wq_cyc *wq, u16 n) in mlx5_wq_cyc_push_n()
132 static inline void mlx5_wq_cyc_pop(struct mlx5_wq_cyc *wq) in mlx5_wq_cyc_pop()
137 static inline void mlx5_wq_cyc_update_db_record(struct mlx5_wq_cyc *wq) in mlx5_wq_cyc_update_db_record()
142 static inline u16 mlx5_wq_cyc_ctr2ix(struct mlx5_wq_cyc *wq, u16 ctr) in mlx5_wq_cyc_ctr2ix()
147 static inline u16 mlx5_wq_cyc_get_head(struct mlx5_wq_cyc *wq) in mlx5_wq_cyc_get_head()
[all …]
Dwq.c38 void *wqc, struct mlx5_wq_cyc *wq, in mlx5_wq_cyc_create()
74 void mlx5_wq_cyc_wqe_dump(struct mlx5_wq_cyc *wq, u16 ix, u8 nstrides) in mlx5_wq_cyc_wqe_dump()
92 void mlx5_wq_cyc_reset(struct mlx5_wq_cyc *wq) in mlx5_wq_cyc_reset()
100 void *qpc, struct mlx5_wq_qp *wq, in mlx5_wq_qp_create()
160 void *cqc, struct mlx5_cqwq *wq, in mlx5_cqwq_create()
197 static void mlx5_wq_ll_init_list(struct mlx5_wq_ll *wq) in mlx5_wq_ll_init_list()
211 void *wqc, struct mlx5_wq_ll *wq, in mlx5_wq_ll_create()
247 void mlx5_wq_ll_reset(struct mlx5_wq_ll *wq) in mlx5_wq_ll_reset()
Den_rx.c84 static inline void mlx5e_read_cqe_slot(struct mlx5_cqwq *wq, in mlx5e_read_cqe_slot()
93 struct mlx5_cqwq *wq, in mlx5e_read_title_slot()
105 static inline void mlx5e_read_mini_arr_slot(struct mlx5_cqwq *wq, in mlx5e_read_mini_arr_slot()
113 static inline void mlx5e_cqes_update_owner(struct mlx5_cqwq *wq, int n) in mlx5e_cqes_update_owner()
138 struct mlx5_cqwq *wq, in mlx5e_decompress_cqe()
168 struct mlx5_cqwq *wq, in mlx5e_decompress_cqe_no_hash()
179 struct mlx5_cqwq *wq, in mlx5e_decompress_cqes_cont()
209 struct mlx5_cqwq *wq, in mlx5e_decompress_cqes_start()
406 struct mlx5_wq_cyc *wq = &rq->wqe.wq; in mlx5e_alloc_rx_wqes() local
480 struct mlx5_wq_ll *wq = &rq->mpwqe.wq; in mlx5e_post_rx_mpwqe() local
[all …]
/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_wq.c34 #define WQ_SIZE(wq) ((wq)->q_depth * (wq)->wqebb_size) argument
44 #define WQ_BASE_VADDR(wqs, wq) \ argument
48 #define WQ_BASE_PADDR(wqs, wq) \ argument
52 #define WQ_BASE_ADDR(wqs, wq) \ argument
56 #define CMDQ_BASE_VADDR(cmdq_pages, wq) \ argument
60 #define CMDQ_BASE_PADDR(cmdq_pages, wq) \ argument
64 #define CMDQ_BASE_ADDR(cmdq_pages, wq) \ argument
68 #define WQ_PAGE_ADDR(wq, idx) \ argument
71 #define MASKED_WQE_IDX(wq, idx) ((idx) & (wq)->mask) argument
77 #define WQE_SHADOW_PAGE(wq, wqe) \ argument
[all …]
Dhinic_hw_qp.c98 struct hinic_wq *wq; in hinic_sq_prepare_ctxt() local
160 struct hinic_wq *wq; in hinic_rq_prepare_ctxt() local
221 struct hinic_wq *wq = sq->wq; in alloc_sq_skb_arr() local
249 struct hinic_wq *wq = rq->wq; in alloc_rq_skb_arr() local
282 struct hinic_wq *wq, struct msix_entry *entry, in hinic_init_sq()
321 struct hinic_wq *wq = rq->wq; in alloc_rq_cqe() local
364 struct hinic_wq *wq = rq->wq; in free_rq_cqe() local
385 struct hinic_wq *wq, struct msix_entry *entry) in hinic_init_rq()
457 struct hinic_wq *wq = sq->wq; in hinic_get_sq_free_wqebbs() local
470 struct hinic_wq *wq = rq->wq; in hinic_get_rq_free_wqebbs() local
[all …]
/drivers/dma/idxd/
Ddevice.c42 static void free_hw_descs(struct idxd_wq *wq) in free_hw_descs()
52 static int alloc_hw_descs(struct idxd_wq *wq, int num) in alloc_hw_descs()
75 static void free_descs(struct idxd_wq *wq) in free_descs()
85 static int alloc_descs(struct idxd_wq *wq, int num) in alloc_descs()
109 int idxd_wq_alloc_resources(struct idxd_wq *wq) in idxd_wq_alloc_resources()
166 void idxd_wq_free_resources(struct idxd_wq *wq) in idxd_wq_free_resources()
179 int idxd_wq_enable(struct idxd_wq *wq) in idxd_wq_enable()
204 int idxd_wq_disable(struct idxd_wq *wq, bool reset_config) in idxd_wq_disable()
233 void idxd_wq_drain(struct idxd_wq *wq) in idxd_wq_drain()
249 void idxd_wq_reset(struct idxd_wq *wq) in idxd_wq_reset()
[all …]
Dcdev.c34 struct idxd_wq *wq; member
45 struct idxd_wq *wq = idxd_cdev->wq; in idxd_cdev_dev_release() local
75 struct idxd_wq *wq; in idxd_cdev_open() local
142 struct idxd_wq *wq = ctx->wq; in idxd_cdev_release() local
173 static int check_vma(struct idxd_wq *wq, struct vm_area_struct *vma, in check_vma()
192 struct idxd_wq *wq = ctx->wq; in idxd_cdev_mmap() local
218 struct idxd_wq *wq = ctx->wq; in idxd_cdev_poll() local
244 int idxd_wq_add_cdev(struct idxd_wq *wq) in idxd_wq_add_cdev()
295 void idxd_wq_del_cdev(struct idxd_wq *wq) in idxd_wq_del_cdev()
307 struct idxd_wq *wq = idxd_dev_to_wq(idxd_dev); in idxd_user_drv_probe() local
[all …]
Ddma.c72 static inline void idxd_prep_desc_common(struct idxd_wq *wq, in idxd_prep_desc_common()
93 struct idxd_wq *wq = to_idxd_wq(c); in idxd_dma_prep_interrupt() local
115 struct idxd_wq *wq = to_idxd_wq(c); in idxd_dma_submit_memcpy() local
142 struct idxd_wq *wq = to_idxd_wq(chan); in idxd_dma_alloc_chan_resources() local
153 struct idxd_wq *wq = to_idxd_wq(chan); in idxd_dma_free_chan_resources() local
179 struct idxd_wq *wq = to_idxd_wq(c); in idxd_dma_tx_submit() local
253 static int idxd_register_dma_channel(struct idxd_wq *wq) in idxd_register_dma_channel()
290 static void idxd_unregister_dma_channel(struct idxd_wq *wq) in idxd_unregister_dma_channel()
306 struct idxd_wq *wq = idxd_dev_to_wq(idxd_dev); in idxd_dmaengine_drv_probe() local
344 struct idxd_wq *wq = idxd_dev_to_wq(idxd_dev); in idxd_dmaengine_drv_remove() local
Dsubmit.c11 static struct idxd_desc *__get_desc(struct idxd_wq *wq, int idx, int cpu) in __get_desc()
27 struct idxd_desc *idxd_alloc_desc(struct idxd_wq *wq, enum idxd_op_type optype) in idxd_alloc_desc()
65 void idxd_free_desc(struct idxd_wq *wq, struct idxd_desc *desc) in idxd_free_desc()
73 static struct idxd_desc *list_abort_desc(struct idxd_wq *wq, struct idxd_irq_entry *ie, in list_abort_desc()
95 static void llist_abort_desc(struct idxd_wq *wq, struct idxd_irq_entry *ie, in llist_abort_desc()
151 int idxd_enqcmds(struct idxd_wq *wq, void __iomem *portal, const void *desc) in idxd_enqcmds()
166 int idxd_submit_desc(struct idxd_wq *wq, struct idxd_desc *desc) in idxd_submit_desc()
Dsysfs.c342 struct idxd_wq *wq = idxd->wqs[i]; in group_work_queues_show() local
590 struct idxd_wq *wq = confdev_to_wq(dev); in wq_clients_show() local
601 struct idxd_wq *wq = confdev_to_wq(dev); in wq_state_show() local
619 struct idxd_wq *wq = confdev_to_wq(dev); in wq_group_id_show() local
631 struct idxd_wq *wq = confdev_to_wq(dev); in wq_group_id_store() local
674 struct idxd_wq *wq = confdev_to_wq(dev); in wq_mode_show() local
683 struct idxd_wq *wq = confdev_to_wq(dev); in wq_mode_store() local
710 struct idxd_wq *wq = confdev_to_wq(dev); in wq_size_show() local
721 struct idxd_wq *wq = idxd->wqs[i]; in total_claimed_wq_size() local
733 struct idxd_wq *wq = confdev_to_wq(dev); in wq_size_store() local
[all …]
Dirq.c47 struct idxd_wq *wq = idxd->wqs[i]; in idxd_device_reinit() local
71 struct idxd_wq *wq = ie_to_wq(ie); in idxd_int_handle_revoke_drain() local
154 struct idxd_wq *wq = ie_to_wq(ie); in idxd_int_handle_revoke() local
242 struct idxd_wq *wq = idxd->wqs[id]; in process_misc_interrupts() local
250 struct idxd_wq *wq = idxd->wqs[i]; in process_misc_interrupts() local
361 struct idxd_wq *wq = desc->wq; in idxd_int_handle_resubmit_work() local
388 struct idxd_wq *wq = desc->wq; in idxd_queue_int_handle_resubmit() local
Didxd.h148 struct idxd_wq *wq; member
175 struct idxd_wq *wq; member
313 struct workqueue_struct *wq; member
338 struct idxd_wq *wq; member
350 #define wq_confdev(wq) &wq->idxd_dev.conf_dev argument
449 static inline bool is_idxd_wq_dmaengine(struct idxd_wq *wq) in is_idxd_wq_dmaengine()
456 static inline bool is_idxd_wq_user(struct idxd_wq *wq) in is_idxd_wq_user()
461 static inline bool is_idxd_wq_kernel(struct idxd_wq *wq) in is_idxd_wq_kernel()
466 static inline bool wq_dedicated(struct idxd_wq *wq) in wq_dedicated()
471 static inline bool wq_shared(struct idxd_wq *wq) in wq_shared()
[all …]
/drivers/scsi/snic/
Dvnic_wq.c12 static inline int vnic_wq_get_ctrl(struct vnic_dev *vdev, struct vnic_wq *wq, in vnic_wq_get_ctrl()
22 static inline int vnic_wq_alloc_ring(struct vnic_dev *vdev, struct vnic_wq *wq, in vnic_wq_alloc_ring()
29 static int vnic_wq_alloc_bufs(struct vnic_wq *wq) in vnic_wq_alloc_bufs()
67 void svnic_wq_free(struct vnic_wq *wq) in svnic_wq_free()
85 int vnic_wq_devcmd2_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, in vnic_wq_devcmd2_alloc()
109 int svnic_wq_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, in svnic_wq_alloc()
140 void vnic_wq_init_start(struct vnic_wq *wq, unsigned int cq_index, in vnic_wq_init_start()
163 void svnic_wq_init(struct vnic_wq *wq, unsigned int cq_index, in svnic_wq_init()
171 unsigned int svnic_wq_error_status(struct vnic_wq *wq) in svnic_wq_error_status()
176 void svnic_wq_enable(struct vnic_wq *wq) in svnic_wq_enable()
[all …]
Dvnic_wq.h71 static inline unsigned int svnic_wq_desc_avail(struct vnic_wq *wq) in svnic_wq_desc_avail()
77 static inline unsigned int svnic_wq_desc_used(struct vnic_wq *wq) in svnic_wq_desc_used()
83 static inline void *svnic_wq_next_desc(struct vnic_wq *wq) in svnic_wq_next_desc()
88 static inline void svnic_wq_post(struct vnic_wq *wq, in svnic_wq_post()
114 static inline void svnic_wq_service(struct vnic_wq *wq, in svnic_wq_service()
116 void (*buf_service)(struct vnic_wq *wq, in svnic_wq_service()
/drivers/scsi/fnic/
Dvnic_wq.c16 static int vnic_wq_get_ctrl(struct vnic_dev *vdev, struct vnic_wq *wq, in vnic_wq_get_ctrl()
28 static int vnic_wq_alloc_ring(struct vnic_dev *vdev, struct vnic_wq *wq, in vnic_wq_alloc_ring()
35 static int vnic_wq_alloc_bufs(struct vnic_wq *wq) in vnic_wq_alloc_bufs()
72 void vnic_wq_free(struct vnic_wq *wq) in vnic_wq_free()
90 int vnic_wq_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, unsigned int index, in vnic_wq_alloc()
120 int vnic_wq_devcmd2_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, in vnic_wq_devcmd2_alloc()
141 void vnic_wq_init_start(struct vnic_wq *wq, unsigned int cq_index, in vnic_wq_init_start()
165 void vnic_wq_init(struct vnic_wq *wq, unsigned int cq_index, in vnic_wq_init()
182 unsigned int vnic_wq_error_status(struct vnic_wq *wq) in vnic_wq_error_status()
187 void vnic_wq_enable(struct vnic_wq *wq) in vnic_wq_enable()
[all …]
Dvnic_wq_copy.c13 void vnic_wq_copy_enable(struct vnic_wq_copy *wq) in vnic_wq_copy_enable()
18 int vnic_wq_copy_disable(struct vnic_wq_copy *wq) in vnic_wq_copy_disable()
39 void vnic_wq_copy_clean(struct vnic_wq_copy *wq, in vnic_wq_copy_clean()
40 void (*q_clean)(struct vnic_wq_copy *wq, in vnic_wq_copy_clean()
57 void vnic_wq_copy_free(struct vnic_wq_copy *wq) in vnic_wq_copy_free()
66 int vnic_wq_copy_alloc(struct vnic_dev *vdev, struct vnic_wq_copy *wq, in vnic_wq_copy_alloc()
84 void vnic_wq_copy_init(struct vnic_wq_copy *wq, unsigned int cq_index, in vnic_wq_copy_init()
Dvnic_wq_copy.h24 static inline unsigned int vnic_wq_copy_desc_avail(struct vnic_wq_copy *wq) in vnic_wq_copy_desc_avail()
29 static inline unsigned int vnic_wq_copy_desc_in_use(struct vnic_wq_copy *wq) in vnic_wq_copy_desc_in_use()
34 static inline void *vnic_wq_copy_next_desc(struct vnic_wq_copy *wq) in vnic_wq_copy_next_desc()
40 static inline void vnic_wq_copy_post(struct vnic_wq_copy *wq) in vnic_wq_copy_post()
57 static inline void vnic_wq_copy_desc_process(struct vnic_wq_copy *wq, u16 index) in vnic_wq_copy_desc_process()
71 static inline void vnic_wq_copy_service(struct vnic_wq_copy *wq, in vnic_wq_copy_service()
73 void (*q_service)(struct vnic_wq_copy *wq, in vnic_wq_copy_service()
Dfnic_res.h18 static inline void fnic_queue_wq_desc(struct vnic_wq *wq, in fnic_queue_wq_desc()
42 static inline void fnic_queue_wq_eth_desc(struct vnic_wq *wq, in fnic_queue_wq_eth_desc()
67 static inline void fnic_queue_wq_copy_desc_icmnd_16(struct vnic_wq_copy *wq, in fnic_queue_wq_copy_desc_icmnd_16()
112 static inline void fnic_queue_wq_copy_desc_itmf(struct vnic_wq_copy *wq, in fnic_queue_wq_copy_desc_itmf()
138 static inline void fnic_queue_wq_copy_desc_flogi_reg(struct vnic_wq_copy *wq, in fnic_queue_wq_copy_desc_flogi_reg()
157 static inline void fnic_queue_wq_copy_desc_fip_reg(struct vnic_wq_copy *wq, in fnic_queue_wq_copy_desc_fip_reg()
181 static inline void fnic_queue_wq_copy_desc_fw_reset(struct vnic_wq_copy *wq, in fnic_queue_wq_copy_desc_fw_reset()
194 static inline void fnic_queue_wq_copy_desc_lunmap(struct vnic_wq_copy *wq, in fnic_queue_wq_copy_desc_lunmap()
Dvnic_wq.h86 static inline unsigned int vnic_wq_desc_avail(struct vnic_wq *wq) in vnic_wq_desc_avail()
92 static inline unsigned int vnic_wq_desc_used(struct vnic_wq *wq) in vnic_wq_desc_used()
98 static inline void *vnic_wq_next_desc(struct vnic_wq *wq) in vnic_wq_next_desc()
103 static inline void vnic_wq_post(struct vnic_wq *wq, in vnic_wq_post()
129 static inline void vnic_wq_service(struct vnic_wq *wq, in vnic_wq_service()
131 void (*buf_service)(struct vnic_wq *wq, in vnic_wq_service()
/drivers/net/ethernet/cisco/enic/
Dvnic_wq.c18 static int vnic_wq_alloc_bufs(struct vnic_wq *wq) in vnic_wq_alloc_bufs()
56 void vnic_wq_free(struct vnic_wq *wq) in vnic_wq_free()
75 int vnic_wq_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, unsigned int index, in vnic_wq_alloc()
104 int enic_wq_devcmd2_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, in enic_wq_devcmd2_alloc()
121 void enic_wq_init_start(struct vnic_wq *wq, unsigned int cq_index, in enic_wq_init_start()
144 void vnic_wq_init(struct vnic_wq *wq, unsigned int cq_index, in vnic_wq_init()
153 unsigned int vnic_wq_error_status(struct vnic_wq *wq) in vnic_wq_error_status()
158 void vnic_wq_enable(struct vnic_wq *wq) in vnic_wq_enable()
163 int vnic_wq_disable(struct vnic_wq *wq) in vnic_wq_disable()
182 void vnic_wq_clean(struct vnic_wq *wq, in vnic_wq_clean()
[all …]
Denic_res.h30 static inline void enic_queue_wq_desc_ex(struct vnic_wq *wq, in enic_queue_wq_desc_ex()
56 static inline void enic_queue_wq_desc_cont(struct vnic_wq *wq, in enic_queue_wq_desc_cont()
65 static inline void enic_queue_wq_desc(struct vnic_wq *wq, void *os_buf, in enic_queue_wq_desc()
75 static inline void enic_queue_wq_desc_csum(struct vnic_wq *wq, in enic_queue_wq_desc_csum()
87 static inline void enic_queue_wq_desc_csum_l4(struct vnic_wq *wq, in enic_queue_wq_desc_csum_l4()
98 static inline void enic_queue_wq_desc_tso(struct vnic_wq *wq, in enic_queue_wq_desc_tso()
Dvnic_wq.h86 struct vnic_wq wq; member
90 static inline unsigned int vnic_wq_desc_avail(struct vnic_wq *wq) in vnic_wq_desc_avail()
96 static inline unsigned int vnic_wq_desc_used(struct vnic_wq *wq) in vnic_wq_desc_used()
102 static inline void *vnic_wq_next_desc(struct vnic_wq *wq) in vnic_wq_next_desc()
107 static inline void vnic_wq_doorbell(struct vnic_wq *wq) in vnic_wq_doorbell()
118 static inline void vnic_wq_post(struct vnic_wq *wq, in vnic_wq_post()
141 static inline void vnic_wq_service(struct vnic_wq *wq, in vnic_wq_service()
143 void (*buf_service)(struct vnic_wq *wq, in vnic_wq_service()
/drivers/infiniband/hw/cxgb4/
Dcq.c184 static void insert_recv_cqe(struct t4_wq *wq, struct t4_cq *cq, u32 srqidx) in insert_recv_cqe()
203 int c4iw_flush_rq(struct t4_wq *wq, struct t4_cq *cq, int count) in c4iw_flush_rq()
217 static void insert_sq_cqe(struct t4_wq *wq, struct t4_cq *cq, in insert_sq_cqe()
241 struct t4_wq *wq = &qhp->wq; in c4iw_flush_sq() local
267 static void flush_completed_wrs(struct t4_wq *wq, struct t4_cq *cq) in flush_completed_wrs()
300 static void create_read_req_cqe(struct t4_wq *wq, struct t4_cqe *hw_cqe, in create_read_req_cqe()
312 static void advance_oldest_read(struct t4_wq *wq) in advance_oldest_read()
422 static int cqe_completes_wr(struct t4_cqe *cqe, struct t4_wq *wq) in cqe_completes_wr()
443 void c4iw_count_rcqes(struct t4_cq *cq, struct t4_wq *wq, int *count) in c4iw_count_rcqes()
544 static int poll_cq(struct t4_wq *wq, struct t4_cq *cq, struct t4_cqe *cqe, in poll_cq()
[all …]
Dt4.h480 static inline int t4_rqes_posted(struct t4_wq *wq) in t4_rqes_posted()
485 static inline int t4_rq_empty(struct t4_wq *wq) in t4_rq_empty()
490 static inline u32 t4_rq_avail(struct t4_wq *wq) in t4_rq_avail()
495 static inline void t4_rq_produce(struct t4_wq *wq, u8 len16) in t4_rq_produce()
505 static inline void t4_rq_consume(struct t4_wq *wq) in t4_rq_consume()
512 static inline u16 t4_rq_host_wq_pidx(struct t4_wq *wq) in t4_rq_host_wq_pidx()
517 static inline u16 t4_rq_wq_size(struct t4_wq *wq) in t4_rq_wq_size()
527 static inline int t4_sq_empty(struct t4_wq *wq) in t4_sq_empty()
532 static inline u32 t4_sq_avail(struct t4_wq *wq) in t4_sq_avail()
537 static inline void t4_sq_produce(struct t4_wq *wq, u8 len16) in t4_sq_produce()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtxrx.h88 mlx5e_wqc_has_room_for(struct mlx5_wq_cyc *wq, u16 cc, u16 pc, u16 n) in mlx5e_wqc_has_room_for()
93 static inline void *mlx5e_fetch_wqe(struct mlx5_wq_cyc *wq, u16 pi, size_t wqe_size) in mlx5e_fetch_wqe()
107 mlx5e_post_nop(struct mlx5_wq_cyc *wq, u32 sqn, u16 *pc) in mlx5e_post_nop()
124 mlx5e_post_nop_fence(struct mlx5_wq_cyc *wq, u32 sqn, u16 *pc) in mlx5e_post_nop_fence()
154 struct mlx5_wq_cyc *wq = &sq->wq; in mlx5e_txqsq_get_next_pi() local
216 struct mlx5_wq_cyc *wq = &sq->wq; in mlx5e_icosq_get_next_pi() local
243 mlx5e_notify_hw(struct mlx5_wq_cyc *wq, u16 pc, void __iomem *uar_map, in mlx5e_notify_hw()
343 struct mlx5_cqwq *wq = &cq->wq; in mlx5e_dump_error_cqe() local

1234567891011