Lines Matching refs:elem_info

75 	struct mlxsw_pci_queue_elem_info *elem_info;  member
182 return &q->elem_info[elem_index]; in mlxsw_pci_queue_elem_info_get()
446 struct mlxsw_pci_queue_elem_info *elem_info, in mlxsw_pci_rdq_page_alloc() argument
450 char *wqe = elem_info->elem; in mlxsw_pci_rdq_page_alloc()
458 elem_info->pages[index] = page; in mlxsw_pci_rdq_page_alloc()
463 struct mlxsw_pci_queue_elem_info *elem_info, in mlxsw_pci_rdq_page_free() argument
468 page_pool_put_page(cq->u.cq.page_pool, elem_info->pages[index], -1, in mlxsw_pci_rdq_page_free()
500 struct mlxsw_pci_queue_elem_info *elem_info, in mlxsw_pci_rdq_pages_alloc() argument
508 old_pages[i] = elem_info->pages[i]; in mlxsw_pci_rdq_pages_alloc()
509 err = mlxsw_pci_rdq_page_alloc(q, elem_info, i); in mlxsw_pci_rdq_pages_alloc()
539 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_rdq_init() local
572 elem_info = mlxsw_pci_queue_elem_info_producer_get(q); in mlxsw_pci_rdq_init()
573 BUG_ON(!elem_info); in mlxsw_pci_rdq_init()
576 err = mlxsw_pci_rdq_page_alloc(q, elem_info, j); in mlxsw_pci_rdq_init()
589 elem_info = mlxsw_pci_queue_elem_info_get(q, i); in mlxsw_pci_rdq_init()
591 mlxsw_pci_rdq_page_free(q, elem_info, j); in mlxsw_pci_rdq_init()
604 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_rdq_fini() local
609 elem_info = mlxsw_pci_queue_elem_info_get(q, i); in mlxsw_pci_rdq_fini()
611 mlxsw_pci_rdq_page_free(q, elem_info, j); in mlxsw_pci_rdq_fini()
659 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_cqe_sdq_handle() local
666 elem_info = mlxsw_pci_queue_elem_info_consumer_get(q); in mlxsw_pci_cqe_sdq_handle()
667 tx_info = mlxsw_skb_cb(elem_info->sdq.skb)->tx_info; in mlxsw_pci_cqe_sdq_handle()
668 skb = elem_info->sdq.skb; in mlxsw_pci_cqe_sdq_handle()
669 wqe = elem_info->elem; in mlxsw_pci_cqe_sdq_handle()
683 elem_info->sdq.skb = NULL; in mlxsw_pci_cqe_sdq_handle()
746 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_cqe_rdq_handle() local
753 elem_info = mlxsw_pci_queue_elem_info_consumer_get(q); in mlxsw_pci_cqe_rdq_handle()
762 err = mlxsw_pci_elem_info_pages_ref_store(q, elem_info, byte_count, in mlxsw_pci_cqe_rdq_handle()
767 err = mlxsw_pci_rdq_pages_alloc(q, elem_info, num_sg_entries); in mlxsw_pci_cqe_rdq_handle()
820 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_cq_sw_cqe_get() local
824 elem_info = mlxsw_pci_queue_elem_info_consumer_get(q); in mlxsw_pci_cq_sw_cqe_get()
825 elem = elem_info->elem; in mlxsw_pci_cq_sw_cqe_get()
836 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_cq_cqe_to_handle() local
839 elem_info = mlxsw_pci_queue_elem_info_consumer_get(q); in mlxsw_pci_cq_cqe_to_handle()
840 owner_bit = mlxsw_pci_cqe_owner_get(q->u.cq.v, elem_info->elem); in mlxsw_pci_cq_cqe_to_handle()
1098 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_eq_sw_eqe_get() local
1102 elem_info = mlxsw_pci_queue_elem_info_consumer_get(q); in mlxsw_pci_eq_sw_eqe_get()
1103 elem = elem_info->elem; in mlxsw_pci_eq_sw_eqe_get()
1264 q->elem_info = kcalloc(q->count, sizeof(*q->elem_info), GFP_KERNEL); in mlxsw_pci_queue_init()
1265 if (!q->elem_info) { in mlxsw_pci_queue_init()
1274 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_queue_init() local
1276 elem_info = mlxsw_pci_queue_elem_info_get(q, i); in mlxsw_pci_queue_init()
1277 elem_info->elem = in mlxsw_pci_queue_init()
1288 kfree(q->elem_info); in mlxsw_pci_queue_init()
1302 kfree(q->elem_info); in mlxsw_pci_queue_fini()
2127 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_skb_transmit() local
2140 elem_info = mlxsw_pci_queue_elem_info_producer_get(q); in mlxsw_pci_skb_transmit()
2141 if (!elem_info) { in mlxsw_pci_skb_transmit()
2147 elem_info->sdq.skb = skb; in mlxsw_pci_skb_transmit()
2149 wqe = elem_info->elem; in mlxsw_pci_skb_transmit()