Lines Matching refs:rx_buff
276 if (pool->rx_buff[index].skb) in replenish_rx_pool()
284 pool->rx_buff[index].data = dst; in replenish_rx_pool()
287 pool->rx_buff[index].dma = dma_addr; in replenish_rx_pool()
288 pool->rx_buff[index].skb = skb; in replenish_rx_pool()
289 pool->rx_buff[index].pool_index = pool->index; in replenish_rx_pool()
290 pool->rx_buff[index].size = pool->buff_size; in replenish_rx_pool()
295 cpu_to_be64((u64)&pool->rx_buff[index]); in replenish_rx_pool()
325 pool->rx_buff[index].skb = NULL; in replenish_rx_pool()
446 memset(rx_pool->rx_buff, 0, in reset_rx_pools()
474 if (!rx_pool->rx_buff) in release_rx_pools()
478 if (rx_pool->rx_buff[j].skb) { in release_rx_pools()
479 dev_kfree_skb_any(rx_pool->rx_buff[j].skb); in release_rx_pools()
480 rx_pool->rx_buff[j].skb = NULL; in release_rx_pools()
484 kfree(rx_pool->rx_buff); in release_rx_pools()
536 rx_pool->rx_buff = kcalloc(rx_pool->size, in init_rx_pools()
539 if (!rx_pool->rx_buff) { in init_rx_pools()
1111 struct ibmvnic_rx_buff *rx_buff; in clean_rx_pools() local
1125 if (!rx_pool || !rx_pool->rx_buff) in clean_rx_pools()
1130 rx_buff = &rx_pool->rx_buff[j]; in clean_rx_pools()
1131 if (rx_buff && rx_buff->skb) { in clean_rx_pools()
1132 dev_kfree_skb_any(rx_buff->skb); in clean_rx_pools()
1133 rx_buff->skb = NULL; in clean_rx_pools()
2200 struct ibmvnic_rx_buff *rx_buff) in remove_buff_from_pool() argument
2202 struct ibmvnic_rx_pool *pool = &adapter->rx_pool[rx_buff->pool_index]; in remove_buff_from_pool()
2204 rx_buff->skb = NULL; in remove_buff_from_pool()
2206 pool->free_map[pool->next_alloc] = (int)(rx_buff - pool->rx_buff); in remove_buff_from_pool()
2222 struct ibmvnic_rx_buff *rx_buff; in ibmvnic_poll() local
2238 rx_buff = in ibmvnic_poll()
2247 dev_kfree_skb_any(rx_buff->skb); in ibmvnic_poll()
2248 remove_buff_from_pool(adapter, rx_buff); in ibmvnic_poll()
2250 } else if (!rx_buff->skb) { in ibmvnic_poll()
2253 remove_buff_from_pool(adapter, rx_buff); in ibmvnic_poll()
2260 skb = rx_buff->skb; in ibmvnic_poll()
2261 skb_copy_to_linear_data(skb, rx_buff->data + offset, in ibmvnic_poll()
2274 remove_buff_from_pool(adapter, rx_buff); in ibmvnic_poll()