Lines Matching refs:rx_buff_pool

250 	return ((atomic_read(&adapter->rx_buff_pool[0].available) < adapter->rx_buff_pool[0].threshold) ||  in ibmveth_is_replenishing_needed()
251 (atomic_read(&adapter->rx_buff_pool[1].available) < adapter->rx_buff_pool[1].threshold) || in ibmveth_is_replenishing_needed()
252 (atomic_read(&adapter->rx_buff_pool[2].available) < adapter->rx_buff_pool[2].threshold)); in ibmveth_is_replenishing_needed()
260 ibmveth_replenish_buffer_pool(adapter, &adapter->rx_buff_pool[0]); in ibmveth_replenish_task()
261 ibmveth_replenish_buffer_pool(adapter, &adapter->rx_buff_pool[1]); in ibmveth_replenish_task()
262 ibmveth_replenish_buffer_pool(adapter, &adapter->rx_buff_pool[2]); in ibmveth_replenish_task()
319 ibmveth_assert(index < adapter->rx_buff_pool[pool].size); in ibmveth_remove_buffer_from_pool()
321 skb = adapter->rx_buff_pool[pool].skbuff[index]; in ibmveth_remove_buffer_from_pool()
325 adapter->rx_buff_pool[pool].skbuff[index] = NULL; in ibmveth_remove_buffer_from_pool()
328 adapter->rx_buff_pool[pool].dma_addr[index], in ibmveth_remove_buffer_from_pool()
329 adapter->rx_buff_pool[pool].buff_size, in ibmveth_remove_buffer_from_pool()
332 free_index = adapter->rx_buff_pool[pool].producer_index++ % adapter->rx_buff_pool[pool].size; in ibmveth_remove_buffer_from_pool()
333 adapter->rx_buff_pool[pool].free_map[free_index] = index; in ibmveth_remove_buffer_from_pool()
337 atomic_dec(&(adapter->rx_buff_pool[pool].available)); in ibmveth_remove_buffer_from_pool()
348 ibmveth_assert(index < adapter->rx_buff_pool[pool].size); in ibmveth_rxq_get_buffer()
350 return adapter->rx_buff_pool[pool].skbuff[index]; in ibmveth_rxq_get_buffer()
364 ibmveth_assert(index < adapter->rx_buff_pool[pool].size); in ibmveth_rxq_recycle_buffer()
368 desc.fields.length = adapter->rx_buff_pool[pool].buff_size; in ibmveth_rxq_recycle_buffer()
369 desc.fields.address = adapter->rx_buff_pool[pool].dma_addr[index]; in ibmveth_rxq_recycle_buffer()
423 ibmveth_free_buffer_pool(adapter, &adapter->rx_buff_pool[0]); in ibmveth_cleanup()
424 ibmveth_free_buffer_pool(adapter, &adapter->rx_buff_pool[1]); in ibmveth_cleanup()
425 ibmveth_free_buffer_pool(adapter, &adapter->rx_buff_pool[2]); in ibmveth_cleanup()
440 adapter->rx_buff_pool[0].size + in ibmveth_open()
441 adapter->rx_buff_pool[1].size + in ibmveth_open()
442 adapter->rx_buff_pool[2].size + 1; in ibmveth_open()
478 if(ibmveth_alloc_buffer_pool(&adapter->rx_buff_pool[0]) || in ibmveth_open()
479 ibmveth_alloc_buffer_pool(&adapter->rx_buff_pool[1]) || in ibmveth_open()
480 ibmveth_alloc_buffer_pool(&adapter->rx_buff_pool[2])) in ibmveth_open()
910 ibmveth_init_buffer_pool(&adapter->rx_buff_pool[0], 0, IbmVethPool0DftCnt, IbmVethPool0DftSize); in ibmveth_probe()
911 ibmveth_init_buffer_pool(&adapter->rx_buff_pool[1], 1, IbmVethPool1DftCnt, IbmVethPool1DftSize); in ibmveth_probe()
912 ibmveth_init_buffer_pool(&adapter->rx_buff_pool[2], 2, IbmVethPool2DftCnt, IbmVethPool2DftSize); in ibmveth_probe()