Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/scsi/fnic/
Dvnic_wq_copy.h33 unsigned to_clean_index; member
73 if (wq->to_clean_index <= index) in vnic_wq_copy_desc_process()
74 cnt = (index - wq->to_clean_index) + 1; in vnic_wq_copy_desc_process()
76 cnt = wq->ring.desc_count - wq->to_clean_index + index + 1; in vnic_wq_copy_desc_process()
78 wq->to_clean_index = ((index + 1) % wq->ring.desc_count); in vnic_wq_copy_desc_process()
94 (*q_service)(wq, &wq_desc[wq->to_clean_index]); in vnic_wq_copy_service()
98 curr_index = wq->to_clean_index; in vnic_wq_copy_service()
103 ((wq->to_clean_index + 1) == wq->ring.desc_count) ? in vnic_wq_copy_service()
104 (wq->to_clean_index = 0) : (wq->to_clean_index++); in vnic_wq_copy_service()
111 (wq->to_clean_index == wq->to_use_index)) in vnic_wq_copy_service()
Dvnic_wq_copy.c60 wq->to_use_index = wq->to_clean_index = 0; in vnic_wq_copy_clean()
86 wq->to_use_index = wq->to_clean_index = 0; in vnic_wq_copy_alloc()
Dfnic_scsi.c146 if (wq->to_clean_index <= fnic->fw_ack_index[0]) in free_wq_copy_descs()
148 - wq->to_clean_index + 1); in free_wq_copy_descs()
151 - wq->to_clean_index in free_wq_copy_descs()
159 wq->to_clean_index = in free_wq_copy_descs()
596 if (wq->to_clean_index <= wq->to_use_index) { in is_ack_index_in_range()
598 if (request_out < wq->to_clean_index || in is_ack_index_in_range()
603 if (request_out < wq->to_clean_index && in is_ack_index_in_range()