Lines Matching refs:elem_info

74 	struct mlxsw_pci_queue_elem_info *elem_info;  member
147 return &q->elem_info[elem_index]; in mlxsw_pci_queue_elem_info_get()
355 struct mlxsw_pci_queue_elem_info *elem_info) in mlxsw_pci_rdq_skb_alloc() argument
358 char *wqe = elem_info->elem; in mlxsw_pci_rdq_skb_alloc()
371 elem_info->u.rdq.skb = skb; in mlxsw_pci_rdq_skb_alloc()
380 struct mlxsw_pci_queue_elem_info *elem_info) in mlxsw_pci_rdq_skb_free() argument
385 skb = elem_info->u.rdq.skb; in mlxsw_pci_rdq_skb_free()
386 wqe = elem_info->elem; in mlxsw_pci_rdq_skb_free()
395 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_rdq_init() local
421 elem_info = mlxsw_pci_queue_elem_info_producer_get(q); in mlxsw_pci_rdq_init()
422 BUG_ON(!elem_info); in mlxsw_pci_rdq_init()
423 err = mlxsw_pci_rdq_skb_alloc(mlxsw_pci, elem_info); in mlxsw_pci_rdq_init()
435 elem_info = mlxsw_pci_queue_elem_info_get(q, i); in mlxsw_pci_rdq_init()
436 mlxsw_pci_rdq_skb_free(mlxsw_pci, elem_info); in mlxsw_pci_rdq_init()
446 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_rdq_fini() local
451 elem_info = mlxsw_pci_queue_elem_info_get(q, i); in mlxsw_pci_rdq_fini()
452 mlxsw_pci_rdq_skb_free(mlxsw_pci, elem_info); in mlxsw_pci_rdq_fini()
539 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_cqe_sdq_handle() local
546 elem_info = mlxsw_pci_queue_elem_info_consumer_get(q); in mlxsw_pci_cqe_sdq_handle()
547 tx_info = mlxsw_skb_cb(elem_info->u.sdq.skb)->tx_info; in mlxsw_pci_cqe_sdq_handle()
548 skb = elem_info->u.sdq.skb; in mlxsw_pci_cqe_sdq_handle()
549 wqe = elem_info->elem; in mlxsw_pci_cqe_sdq_handle()
563 elem_info->u.sdq.skb = NULL; in mlxsw_pci_cqe_sdq_handle()
625 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_cqe_rdq_handle() local
632 elem_info = mlxsw_pci_queue_elem_info_consumer_get(q); in mlxsw_pci_cqe_rdq_handle()
633 skb = elem_info->u.rdq.skb; in mlxsw_pci_cqe_rdq_handle()
634 memcpy(wqe, elem_info->elem, MLXSW_PCI_WQE_SIZE); in mlxsw_pci_cqe_rdq_handle()
639 err = mlxsw_pci_rdq_skb_alloc(mlxsw_pci, elem_info); in mlxsw_pci_cqe_rdq_handle()
693 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_cq_sw_cqe_get() local
697 elem_info = mlxsw_pci_queue_elem_info_consumer_get(q); in mlxsw_pci_cq_sw_cqe_get()
698 elem = elem_info->elem; in mlxsw_pci_cq_sw_cqe_get()
806 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_eq_sw_eqe_get() local
810 elem_info = mlxsw_pci_queue_elem_info_consumer_get(q); in mlxsw_pci_eq_sw_eqe_get()
811 elem = elem_info->elem; in mlxsw_pci_eq_sw_eqe_get()
951 q->elem_info = kcalloc(q->count, sizeof(*q->elem_info), GFP_KERNEL); in mlxsw_pci_queue_init()
952 if (!q->elem_info) { in mlxsw_pci_queue_init()
961 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_queue_init() local
963 elem_info = mlxsw_pci_queue_elem_info_get(q, i); in mlxsw_pci_queue_init()
964 elem_info->elem = in mlxsw_pci_queue_init()
975 kfree(q->elem_info); in mlxsw_pci_queue_init()
989 kfree(q->elem_info); in mlxsw_pci_queue_fini()
1704 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_skb_transmit() local
1717 elem_info = mlxsw_pci_queue_elem_info_producer_get(q); in mlxsw_pci_skb_transmit()
1718 if (!elem_info) { in mlxsw_pci_skb_transmit()
1724 elem_info->u.sdq.skb = skb; in mlxsw_pci_skb_transmit()
1726 wqe = elem_info->elem; in mlxsw_pci_skb_transmit()