Home
last modified time | relevance | path

Searched refs:to_clean_index (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/scsi/fnic/
H A Dvnic_wq_copy.h21 unsigned to_clean_index; member
61 if (wq->to_clean_index <= index) in vnic_wq_copy_desc_process()
62 cnt = (index - wq->to_clean_index) + 1; in vnic_wq_copy_desc_process()
64 cnt = wq->ring.desc_count - wq->to_clean_index + index + 1; in vnic_wq_copy_desc_process()
66 wq->to_clean_index = ((index + 1) % wq->ring.desc_count); in vnic_wq_copy_desc_process()
82 (*q_service)(wq, &wq_desc[wq->to_clean_index]); in vnic_wq_copy_service()
86 curr_index = wq->to_clean_index; in vnic_wq_copy_service()
91 ((wq->to_clean_index + 1) == wq->ring.desc_count) ? in vnic_wq_copy_service()
92 (wq->to_clean_index = 0) : (wq->to_clean_index++); in vnic_wq_copy_service()
99 (wq->to_clean_index == wq->to_use_index)) in vnic_wq_copy_service()
H A Dvnic_wq_copy.c48 wq->to_use_index = wq->to_clean_index = 0; in vnic_wq_copy_clean()
72 wq->to_use_index = wq->to_clean_index = 0; in vnic_wq_copy_alloc()
H A Dfnic_scsi.c142 if (wq->to_clean_index <= fnic->fw_ack_index[0]) in free_wq_copy_descs()
144 - wq->to_clean_index + 1); in free_wq_copy_descs()
147 - wq->to_clean_index in free_wq_copy_descs()
155 wq->to_clean_index = in free_wq_copy_descs()
753 if (wq->to_clean_index <= wq->to_use_index) { in is_ack_index_in_range()
755 if (request_out < wq->to_clean_index || in is_ack_index_in_range()
760 if (request_out < wq->to_clean_index && in is_ack_index_in_range()