Lines Matching refs:ind_bufp
340 struct ibmvnic_ind_xmit_queue *ind_bufp; in replenish_rx_pool() local
357 ind_bufp = &rx_scrq->ind_buf; in replenish_rx_pool()
365 for (i = ind_bufp->index; i < count; ++i) { in replenish_rx_pool()
391 sub_crq = &ind_bufp->indir_arr[ind_bufp->index++]; in replenish_rx_pool()
409 if (ind_bufp->index == IBMVNIC_MAX_IND_DESCS || in replenish_rx_pool()
413 (u64)ind_bufp->indir_dma, in replenish_rx_pool()
414 (u64)ind_bufp->index); in replenish_rx_pool()
417 buffers_added += ind_bufp->index; in replenish_rx_pool()
418 adapter->replenish_add_buff_success += ind_bufp->index; in replenish_rx_pool()
419 ind_bufp->index = 0; in replenish_rx_pool()
428 for (i = ind_bufp->index - 1; i >= 0; --i) { in replenish_rx_pool()
433 sub_crq = &ind_bufp->indir_arr[i]; in replenish_rx_pool()
441 adapter->replenish_add_buff_failure += ind_bufp->index; in replenish_rx_pool()
443 ind_bufp->index = 0; in replenish_rx_pool()
1622 struct ibmvnic_ind_xmit_queue *ind_bufp; in ibmvnic_tx_scrq_clean_buffer() local
1631 ind_bufp = &tx_scrq->ind_buf; in ibmvnic_tx_scrq_clean_buffer()
1632 entries = (u64)ind_bufp->index; in ibmvnic_tx_scrq_clean_buffer()
1636 tx_scrq_entry = ind_bufp->indir_arr[i]; in ibmvnic_tx_scrq_clean_buffer()
1660 ind_bufp->index = 0; in ibmvnic_tx_scrq_clean_buffer()
1674 struct ibmvnic_ind_xmit_queue *ind_bufp; in ibmvnic_tx_scrq_flush() local
1680 ind_bufp = &tx_scrq->ind_buf; in ibmvnic_tx_scrq_flush()
1681 dma_addr = (u64)ind_bufp->indir_dma; in ibmvnic_tx_scrq_flush()
1682 entries = (u64)ind_bufp->index; in ibmvnic_tx_scrq_flush()
1691 ind_bufp->index = 0; in ibmvnic_tx_scrq_flush()
1701 struct ibmvnic_ind_xmit_queue *ind_bufp; in ibmvnic_xmit() local
1724 ind_bufp = &tx_scrq->ind_buf; in ibmvnic_xmit()
1847 if (num_entries + ind_bufp->index > IBMVNIC_MAX_IND_DESCS) { in ibmvnic_xmit()
1854 memcpy(&ind_bufp->indir_arr[ind_bufp->index], &indir_arr[0], in ibmvnic_xmit()
1856 ind_bufp->index += num_entries; in ibmvnic_xmit()
1859 ind_bufp->index < IBMVNIC_MAX_IND_DESCS)) { in ibmvnic_xmit()