• Home
  • Raw
  • Download

Lines Matching refs:rx_buff

604 		skb = pool->rx_buff[bufidx].skb;  in replenish_rx_pool()
625 pool->rx_buff[bufidx].data = dst; in replenish_rx_pool()
626 pool->rx_buff[bufidx].dma = dma_addr; in replenish_rx_pool()
627 pool->rx_buff[bufidx].skb = skb; in replenish_rx_pool()
628 pool->rx_buff[bufidx].pool_index = pool->index; in replenish_rx_pool()
629 pool->rx_buff[bufidx].size = pool->buff_size; in replenish_rx_pool()
636 cpu_to_be64((u64)&pool->rx_buff[bufidx]); in replenish_rx_pool()
671 struct ibmvnic_rx_buff *rx_buff; in replenish_rx_pool() local
676 rx_buff = (struct ibmvnic_rx_buff *) in replenish_rx_pool()
678 bufidx = (int)(rx_buff - pool->rx_buff); in replenish_rx_pool()
680 dev_kfree_skb_any(pool->rx_buff[bufidx].skb); in replenish_rx_pool()
681 pool->rx_buff[bufidx].skb = NULL; in replenish_rx_pool()
793 if (!rx_pool->rx_buff) in release_rx_pools()
797 if (rx_pool->rx_buff[j].skb) { in release_rx_pools()
798 dev_kfree_skb_any(rx_pool->rx_buff[j].skb); in release_rx_pools()
799 rx_pool->rx_buff[j].skb = NULL; in release_rx_pools()
803 kfree(rx_pool->rx_buff); in release_rx_pools()
917 rx_pool->rx_buff = kcalloc(rx_pool->size, in init_rx_pools()
920 if (!rx_pool->rx_buff) { in init_rx_pools()
942 struct ibmvnic_rx_buff *rx_buff; in init_rx_pools() local
950 rx_buff = &rx_pool->rx_buff[j]; in init_rx_pools()
951 rx_buff->dma = 0; in init_rx_pools()
952 rx_buff->data = 0; in init_rx_pools()
953 rx_buff->size = 0; in init_rx_pools()
954 rx_buff->pool_index = 0; in init_rx_pools()
1799 struct ibmvnic_rx_buff *rx_buff; in clean_rx_pools() local
1813 if (!rx_pool || !rx_pool->rx_buff) in clean_rx_pools()
1818 rx_buff = &rx_pool->rx_buff[j]; in clean_rx_pools()
1819 if (rx_buff && rx_buff->skb) { in clean_rx_pools()
1820 dev_kfree_skb_any(rx_buff->skb); in clean_rx_pools()
1821 rx_buff->skb = NULL; in clean_rx_pools()
3221 struct ibmvnic_rx_buff *rx_buff) in remove_buff_from_pool() argument
3223 struct ibmvnic_rx_pool *pool = &adapter->rx_pool[rx_buff->pool_index]; in remove_buff_from_pool()
3225 rx_buff->skb = NULL; in remove_buff_from_pool()
3227 pool->free_map[pool->next_alloc] = (int)(rx_buff - pool->rx_buff); in remove_buff_from_pool()
3250 struct ibmvnic_rx_buff *rx_buff; in ibmvnic_poll() local
3266 rx_buff = (struct ibmvnic_rx_buff *) in ibmvnic_poll()
3274 dev_kfree_skb_any(rx_buff->skb); in ibmvnic_poll()
3275 remove_buff_from_pool(adapter, rx_buff); in ibmvnic_poll()
3277 } else if (!rx_buff->skb) { in ibmvnic_poll()
3280 remove_buff_from_pool(adapter, rx_buff); in ibmvnic_poll()
3287 skb = rx_buff->skb; in ibmvnic_poll()
3290 skb_copy_to_linear_data(skb, rx_buff->data + offset, in ibmvnic_poll()
3303 remove_buff_from_pool(adapter, rx_buff); in ibmvnic_poll()