Lines Matching refs:ind_bufp

760 	struct ibmvnic_ind_xmit_queue *ind_bufp;  in replenish_rx_pool()  local
778 ind_bufp = &rx_scrq->ind_buf; in replenish_rx_pool()
786 for (i = ind_bufp->index; i < count; ++i) { in replenish_rx_pool()
822 sub_crq = &ind_bufp->indir_arr[ind_bufp->index++]; in replenish_rx_pool()
841 if (ind_bufp->index == IBMVNIC_MAX_IND_DESCS || in replenish_rx_pool()
845 (u64)ind_bufp->indir_dma, in replenish_rx_pool()
846 (u64)ind_bufp->index); in replenish_rx_pool()
849 buffers_added += ind_bufp->index; in replenish_rx_pool()
850 adapter->replenish_add_buff_success += ind_bufp->index; in replenish_rx_pool()
851 ind_bufp->index = 0; in replenish_rx_pool()
860 for (i = ind_bufp->index - 1; i >= 0; --i) { in replenish_rx_pool()
865 sub_crq = &ind_bufp->indir_arr[i]; in replenish_rx_pool()
873 adapter->replenish_add_buff_failure += ind_bufp->index; in replenish_rx_pool()
875 ind_bufp->index = 0; in replenish_rx_pool()
2297 struct ibmvnic_ind_xmit_queue *ind_bufp; in ibmvnic_tx_scrq_clean_buffer() local
2306 ind_bufp = &tx_scrq->ind_buf; in ibmvnic_tx_scrq_clean_buffer()
2307 entries = (u64)ind_bufp->index; in ibmvnic_tx_scrq_clean_buffer()
2311 tx_scrq_entry = ind_bufp->indir_arr[i]; in ibmvnic_tx_scrq_clean_buffer()
2336 ind_bufp->index = 0; in ibmvnic_tx_scrq_clean_buffer()
2356 struct ibmvnic_ind_xmit_queue *ind_bufp; in ibmvnic_tx_scrq_flush() local
2362 ind_bufp = &tx_scrq->ind_buf; in ibmvnic_tx_scrq_flush()
2363 dma_addr = (u64)ind_bufp->indir_dma; in ibmvnic_tx_scrq_flush()
2364 entries = (u64)ind_bufp->index; in ibmvnic_tx_scrq_flush()
2373 ind_bufp->index = 0; in ibmvnic_tx_scrq_flush()
2383 struct ibmvnic_ind_xmit_queue *ind_bufp; in ibmvnic_xmit() local
2421 ind_bufp = &tx_scrq->ind_buf; in ibmvnic_xmit()
2535 if (num_entries + ind_bufp->index > IBMVNIC_MAX_IND_DESCS) { in ibmvnic_xmit()
2542 memcpy(&ind_bufp->indir_arr[ind_bufp->index], &indir_arr[0], in ibmvnic_xmit()
2544 ind_bufp->index += num_entries; in ibmvnic_xmit()
2547 ind_bufp->index < IBMVNIC_MAX_IND_DESCS)) { in ibmvnic_xmit()