Lines Matching refs:mlxsw_pci_queue
71 struct mlxsw_pci_queue { struct
98 struct mlxsw_pci_queue *q; argument
131 static void mlxsw_pci_queue_tasklet_schedule(struct mlxsw_pci_queue *q) in mlxsw_pci_queue_tasklet_schedule()
136 static char *__mlxsw_pci_queue_elem_get(struct mlxsw_pci_queue *q, in __mlxsw_pci_queue_elem_get()
143 mlxsw_pci_queue_elem_info_get(struct mlxsw_pci_queue *q, int elem_index) in mlxsw_pci_queue_elem_info_get()
149 mlxsw_pci_queue_elem_info_producer_get(struct mlxsw_pci_queue *q) in mlxsw_pci_queue_elem_info_producer_get()
159 mlxsw_pci_queue_elem_info_consumer_get(struct mlxsw_pci_queue *q) in mlxsw_pci_queue_elem_info_consumer_get()
166 static char *mlxsw_pci_queue_elem_get(struct mlxsw_pci_queue *q, int elem_index) in mlxsw_pci_queue_elem_get()
171 static bool mlxsw_pci_elem_hw_owned(struct mlxsw_pci_queue *q, bool owner_bit) in mlxsw_pci_elem_hw_owned()
202 static struct mlxsw_pci_queue *
209 static struct mlxsw_pci_queue *mlxsw_pci_sdq_get(struct mlxsw_pci *mlxsw_pci, in mlxsw_pci_sdq_get()
216 static struct mlxsw_pci_queue *mlxsw_pci_rdq_get(struct mlxsw_pci *mlxsw_pci, in mlxsw_pci_rdq_get()
223 static struct mlxsw_pci_queue *mlxsw_pci_cq_get(struct mlxsw_pci *mlxsw_pci, in mlxsw_pci_cq_get()
229 static struct mlxsw_pci_queue *mlxsw_pci_eq_get(struct mlxsw_pci *mlxsw_pci, in mlxsw_pci_eq_get()
236 struct mlxsw_pci_queue *q, in __mlxsw_pci_queue_doorbell_set()
246 struct mlxsw_pci_queue *q, in __mlxsw_pci_queue_doorbell_arm_set()
256 struct mlxsw_pci_queue *q) in mlxsw_pci_queue_doorbell_producer_ring()
263 struct mlxsw_pci_queue *q) in mlxsw_pci_queue_doorbell_consumer_ring()
272 struct mlxsw_pci_queue *q) in mlxsw_pci_queue_doorbell_arm_consumer_ring()
278 static dma_addr_t __mlxsw_pci_queue_page_get(struct mlxsw_pci_queue *q, in __mlxsw_pci_queue_page_get()
285 struct mlxsw_pci_queue *q) in mlxsw_pci_sdq_init()
311 struct mlxsw_pci_queue *q) in mlxsw_pci_sdq_fini()
387 struct mlxsw_pci_queue *q) in mlxsw_pci_rdq_init()
438 struct mlxsw_pci_queue *q) in mlxsw_pci_rdq_fini()
451 struct mlxsw_pci_queue *q) in mlxsw_pci_cq_pre_init()
462 struct mlxsw_pci_queue *q) in mlxsw_pci_cq_init()
499 struct mlxsw_pci_queue *q) in mlxsw_pci_cq_fini()
505 struct mlxsw_pci_queue *q, in mlxsw_pci_cqe_sdq_handle()
541 struct mlxsw_pci_queue *q, in mlxsw_pci_cqe_rdq_handle()
591 static char *mlxsw_pci_cq_sw_cqe_get(struct mlxsw_pci_queue *q) in mlxsw_pci_cq_sw_cqe_get()
609 struct mlxsw_pci_queue *q = (struct mlxsw_pci_queue *) data; in mlxsw_pci_cq_tasklet()
625 struct mlxsw_pci_queue *sdq; in mlxsw_pci_cq_tasklet()
632 struct mlxsw_pci_queue *rdq; in mlxsw_pci_cq_tasklet()
646 static u16 mlxsw_pci_cq_elem_count(const struct mlxsw_pci_queue *q) in mlxsw_pci_cq_elem_count()
652 static u8 mlxsw_pci_cq_elem_size(const struct mlxsw_pci_queue *q) in mlxsw_pci_cq_elem_size()
659 struct mlxsw_pci_queue *q) in mlxsw_pci_eq_init()
689 struct mlxsw_pci_queue *q) in mlxsw_pci_eq_fini()
704 static char *mlxsw_pci_eq_sw_eqe_get(struct mlxsw_pci_queue *q) in mlxsw_pci_eq_sw_eqe_get()
722 struct mlxsw_pci_queue *q = (struct mlxsw_pci_queue *) data; in mlxsw_pci_eq_tasklet()
774 struct mlxsw_pci_queue *q);
776 struct mlxsw_pci_queue *q);
778 struct mlxsw_pci_queue *q);
780 u16 (*elem_count_f)(const struct mlxsw_pci_queue *q);
781 u8 (*elem_size_f)(const struct mlxsw_pci_queue *q);
823 struct mlxsw_pci_queue *q, u8 q_num) in mlxsw_pci_queue_init()
884 struct mlxsw_pci_queue *q) in mlxsw_pci_queue_fini()
1285 struct mlxsw_pci_queue *q; in mlxsw_pci_eq_irq_handler()
1519 static struct mlxsw_pci_queue *
1532 struct mlxsw_pci_queue *q = mlxsw_pci_sdq_pick(mlxsw_pci, tx_info); in mlxsw_pci_skb_transmit_busy()
1541 struct mlxsw_pci_queue *q; in mlxsw_pci_skb_transmit()