Lines Matching refs:elem_info
74 struct mlxsw_pci_queue_elem_info *elem_info; member
145 return &q->elem_info[elem_index]; in mlxsw_pci_queue_elem_info_get()
346 struct mlxsw_pci_queue_elem_info *elem_info) in mlxsw_pci_rdq_skb_alloc() argument
349 char *wqe = elem_info->elem; in mlxsw_pci_rdq_skb_alloc()
353 elem_info->u.rdq.skb = NULL; in mlxsw_pci_rdq_skb_alloc()
365 elem_info->u.rdq.skb = skb; in mlxsw_pci_rdq_skb_alloc()
374 struct mlxsw_pci_queue_elem_info *elem_info) in mlxsw_pci_rdq_skb_free() argument
379 skb = elem_info->u.rdq.skb; in mlxsw_pci_rdq_skb_free()
380 wqe = elem_info->elem; in mlxsw_pci_rdq_skb_free()
389 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_rdq_init() local
415 elem_info = mlxsw_pci_queue_elem_info_producer_get(q); in mlxsw_pci_rdq_init()
416 BUG_ON(!elem_info); in mlxsw_pci_rdq_init()
417 err = mlxsw_pci_rdq_skb_alloc(mlxsw_pci, elem_info); in mlxsw_pci_rdq_init()
429 elem_info = mlxsw_pci_queue_elem_info_get(q, i); in mlxsw_pci_rdq_init()
430 mlxsw_pci_rdq_skb_free(mlxsw_pci, elem_info); in mlxsw_pci_rdq_init()
440 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_rdq_fini() local
445 elem_info = mlxsw_pci_queue_elem_info_get(q, i); in mlxsw_pci_rdq_fini()
446 mlxsw_pci_rdq_skb_free(mlxsw_pci, elem_info); in mlxsw_pci_rdq_fini()
510 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_cqe_sdq_handle() local
517 elem_info = mlxsw_pci_queue_elem_info_consumer_get(q); in mlxsw_pci_cqe_sdq_handle()
518 tx_info = mlxsw_skb_cb(elem_info->u.sdq.skb)->tx_info; in mlxsw_pci_cqe_sdq_handle()
519 skb = elem_info->u.sdq.skb; in mlxsw_pci_cqe_sdq_handle()
520 wqe = elem_info->elem; in mlxsw_pci_cqe_sdq_handle()
533 elem_info->u.sdq.skb = NULL; in mlxsw_pci_cqe_sdq_handle()
546 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_cqe_rdq_handle() local
553 elem_info = mlxsw_pci_queue_elem_info_consumer_get(q); in mlxsw_pci_cqe_rdq_handle()
554 skb = elem_info->u.sdq.skb; in mlxsw_pci_cqe_rdq_handle()
557 wqe = elem_info->elem; in mlxsw_pci_cqe_rdq_handle()
582 err = mlxsw_pci_rdq_skb_alloc(mlxsw_pci, elem_info); in mlxsw_pci_cqe_rdq_handle()
593 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_cq_sw_cqe_get() local
597 elem_info = mlxsw_pci_queue_elem_info_consumer_get(q); in mlxsw_pci_cq_sw_cqe_get()
598 elem = elem_info->elem; in mlxsw_pci_cq_sw_cqe_get()
706 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_eq_sw_eqe_get() local
710 elem_info = mlxsw_pci_queue_elem_info_consumer_get(q); in mlxsw_pci_eq_sw_eqe_get()
711 elem = elem_info->elem; in mlxsw_pci_eq_sw_eqe_get()
851 q->elem_info = kcalloc(q->count, sizeof(*q->elem_info), GFP_KERNEL); in mlxsw_pci_queue_init()
852 if (!q->elem_info) { in mlxsw_pci_queue_init()
861 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_queue_init() local
863 elem_info = mlxsw_pci_queue_elem_info_get(q, i); in mlxsw_pci_queue_init()
864 elem_info->elem = in mlxsw_pci_queue_init()
875 kfree(q->elem_info); in mlxsw_pci_queue_init()
889 kfree(q->elem_info); in mlxsw_pci_queue_fini()
1542 struct mlxsw_pci_queue_elem_info *elem_info; in mlxsw_pci_skb_transmit() local
1555 elem_info = mlxsw_pci_queue_elem_info_producer_get(q); in mlxsw_pci_skb_transmit()
1556 if (!elem_info) { in mlxsw_pci_skb_transmit()
1562 elem_info->u.sdq.skb = skb; in mlxsw_pci_skb_transmit()
1564 wqe = elem_info->elem; in mlxsw_pci_skb_transmit()