Searched refs:elem_info (Results 1 - 1 of 1) sorted by relevance
/linux-4.4.14/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | pci.c | 142 struct mlxsw_pci_queue_elem_info *elem_info; member in struct:mlxsw_pci_queue 210 return &q->elem_info[elem_index]; mlxsw_pci_queue_elem_info_get() 244 struct mlxsw_pci_queue_elem_info *elem_info; mlxsw_pci_queue_sw_elem_get() local 248 elem_info = mlxsw_pci_queue_elem_info_consumer_get(q); mlxsw_pci_queue_sw_elem_get() 249 elem = elem_info->elem; mlxsw_pci_queue_sw_elem_get() 458 struct mlxsw_pci_queue_elem_info *elem_info) mlxsw_pci_rdq_skb_alloc() 461 char *wqe = elem_info->elem; mlxsw_pci_rdq_skb_alloc() 465 elem_info->u.rdq.skb = NULL; mlxsw_pci_rdq_skb_alloc() 477 elem_info->u.rdq.skb = skb; mlxsw_pci_rdq_skb_alloc() 486 struct mlxsw_pci_queue_elem_info *elem_info) mlxsw_pci_rdq_skb_free() 491 skb = elem_info->u.rdq.skb; mlxsw_pci_rdq_skb_free() 492 wqe = elem_info->elem; mlxsw_pci_rdq_skb_free() 501 struct mlxsw_pci_queue_elem_info *elem_info; mlxsw_pci_rdq_init() local 527 elem_info = mlxsw_pci_queue_elem_info_producer_get(q); mlxsw_pci_rdq_init() 528 BUG_ON(!elem_info); mlxsw_pci_rdq_init() 529 err = mlxsw_pci_rdq_skb_alloc(mlxsw_pci, elem_info); mlxsw_pci_rdq_init() 541 elem_info = mlxsw_pci_queue_elem_info_get(q, i); mlxsw_pci_rdq_init() 542 mlxsw_pci_rdq_skb_free(mlxsw_pci, elem_info); mlxsw_pci_rdq_init() 552 struct mlxsw_pci_queue_elem_info *elem_info; mlxsw_pci_rdq_fini() local 557 elem_info = mlxsw_pci_queue_elem_info_get(q, i); mlxsw_pci_rdq_fini() 558 mlxsw_pci_rdq_skb_free(mlxsw_pci, elem_info); mlxsw_pci_rdq_fini() 647 struct mlxsw_pci_queue_elem_info *elem_info; mlxsw_pci_cqe_sdq_handle() local 653 elem_info = mlxsw_pci_queue_elem_info_consumer_get(q); mlxsw_pci_cqe_sdq_handle() 654 skb = elem_info->u.sdq.skb; mlxsw_pci_cqe_sdq_handle() 655 wqe = elem_info->elem; mlxsw_pci_cqe_sdq_handle() 659 elem_info->u.sdq.skb = NULL; mlxsw_pci_cqe_sdq_handle() 672 struct mlxsw_pci_queue_elem_info *elem_info; mlxsw_pci_cqe_rdq_handle() local 679 elem_info = mlxsw_pci_queue_elem_info_consumer_get(q); mlxsw_pci_cqe_rdq_handle() 680 skb = elem_info->u.sdq.skb; mlxsw_pci_cqe_rdq_handle() 683 wqe = elem_info->elem; mlxsw_pci_cqe_rdq_handle() 704 err = mlxsw_pci_rdq_skb_alloc(mlxsw_pci, elem_info); mlxsw_pci_cqe_rdq_handle() 956 q->elem_info = kcalloc(q->count, sizeof(*q->elem_info), GFP_KERNEL); mlxsw_pci_queue_init() 957 if (!q->elem_info) { mlxsw_pci_queue_init() 962 /* Initialize dma mapped elements info elem_info for mlxsw_pci_queue_init() 966 struct mlxsw_pci_queue_elem_info *elem_info; mlxsw_pci_queue_init() local 968 elem_info = mlxsw_pci_queue_elem_info_get(q, i); mlxsw_pci_queue_init() 969 elem_info->elem = mlxsw_pci_queue_init() 980 kfree(q->elem_info); mlxsw_pci_queue_init() 994 kfree(q->elem_info); mlxsw_pci_queue_fini() 1523 struct mlxsw_pci_queue_elem_info *elem_info; mlxsw_pci_skb_transmit() local 1536 elem_info = mlxsw_pci_queue_elem_info_producer_get(q); mlxsw_pci_skb_transmit() 1537 if (!elem_info) { mlxsw_pci_skb_transmit() 1542 elem_info->u.sdq.skb = skb; mlxsw_pci_skb_transmit() 1544 wqe = elem_info->elem; mlxsw_pci_skb_transmit() 457 mlxsw_pci_rdq_skb_alloc(struct mlxsw_pci *mlxsw_pci, struct mlxsw_pci_queue_elem_info *elem_info) mlxsw_pci_rdq_skb_alloc() argument 485 mlxsw_pci_rdq_skb_free(struct mlxsw_pci *mlxsw_pci, struct mlxsw_pci_queue_elem_info *elem_info) mlxsw_pci_rdq_skb_free() argument
|
Completed in 138 milliseconds