Lines Matching refs:ind_bufp
761 struct ibmvnic_ind_xmit_queue *ind_bufp; in replenish_rx_pool() local
779 ind_bufp = &rx_scrq->ind_buf; in replenish_rx_pool()
787 for (i = ind_bufp->index; i < count; ++i) { in replenish_rx_pool()
823 sub_crq = &ind_bufp->indir_arr[ind_bufp->index++]; in replenish_rx_pool()
842 if (ind_bufp->index == IBMVNIC_MAX_IND_DESCS || in replenish_rx_pool()
846 (u64)ind_bufp->indir_dma, in replenish_rx_pool()
847 (u64)ind_bufp->index); in replenish_rx_pool()
850 buffers_added += ind_bufp->index; in replenish_rx_pool()
851 adapter->replenish_add_buff_success += ind_bufp->index; in replenish_rx_pool()
852 ind_bufp->index = 0; in replenish_rx_pool()
861 for (i = ind_bufp->index - 1; i >= 0; --i) { in replenish_rx_pool()
866 sub_crq = &ind_bufp->indir_arr[i]; in replenish_rx_pool()
874 adapter->replenish_add_buff_failure += ind_bufp->index; in replenish_rx_pool()
876 ind_bufp->index = 0; in replenish_rx_pool()
2282 struct ibmvnic_ind_xmit_queue *ind_bufp; in ibmvnic_tx_scrq_clean_buffer() local
2291 ind_bufp = &tx_scrq->ind_buf; in ibmvnic_tx_scrq_clean_buffer()
2292 entries = (u64)ind_bufp->index; in ibmvnic_tx_scrq_clean_buffer()
2296 tx_scrq_entry = ind_bufp->indir_arr[i]; in ibmvnic_tx_scrq_clean_buffer()
2321 ind_bufp->index = 0; in ibmvnic_tx_scrq_clean_buffer()
2362 struct ibmvnic_ind_xmit_queue *ind_bufp; in ibmvnic_tx_scrq_flush() local
2368 ind_bufp = &tx_scrq->ind_buf; in ibmvnic_tx_scrq_flush()
2369 dma_addr = (u64)ind_bufp->indir_dma; in ibmvnic_tx_scrq_flush()
2370 entries = (u64)ind_bufp->index; in ibmvnic_tx_scrq_flush()
2380 (u64 *)ind_bufp->indir_arr); in ibmvnic_tx_scrq_flush()
2385 ind_bufp->index = 0; in ibmvnic_tx_scrq_flush()
2395 struct ibmvnic_ind_xmit_queue *ind_bufp; in ibmvnic_xmit() local
2435 ind_bufp = &tx_scrq->ind_buf; in ibmvnic_xmit()
2480 !ind_bufp->index && !netdev_xmit_more()) { in ibmvnic_xmit()
2571 ind_bufp->index = 1; in ibmvnic_xmit()
2574 ind_bufp->indir_arr[0] = tx_crq; in ibmvnic_xmit()
2589 if (num_entries + ind_bufp->index > IBMVNIC_MAX_IND_DESCS) { in ibmvnic_xmit()
2596 memcpy(&ind_bufp->indir_arr[ind_bufp->index], &indir_arr[0], in ibmvnic_xmit()
2599 ind_bufp->index += num_entries; in ibmvnic_xmit()
2602 ind_bufp->index < IBMVNIC_MAX_IND_DESCS)) { in ibmvnic_xmit()