Searched refs:frame_get (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/scsi/isci/
H A Dunsolicited_frame_control.c160 u32 frame_get; sci_unsolicited_frame_control_release_frame() local
163 frame_get = uf_control->get & (SCU_MAX_UNSOLICITED_FRAMES - 1); sci_unsolicited_frame_control_release_frame()
171 while (lower_32_bits(uf_control->address_table.array[frame_get]) == 0 && sci_unsolicited_frame_control_release_frame()
172 upper_32_bits(uf_control->address_table.array[frame_get]) == 0 && sci_unsolicited_frame_control_release_frame()
173 frame_get < SCU_MAX_UNSOLICITED_FRAMES) sci_unsolicited_frame_control_release_frame()
174 frame_get++; sci_unsolicited_frame_control_release_frame()
180 BUG_ON(frame_get >= SCU_MAX_UNSOLICITED_FRAMES); sci_unsolicited_frame_control_release_frame()
186 if (frame_get != frame_index) { sci_unsolicited_frame_control_release_frame()
198 while (uf_control->buffers.array[frame_get].state == UNSOLICITED_FRAME_RELEASED) { sci_unsolicited_frame_control_release_frame()
199 uf_control->buffers.array[frame_get].state = UNSOLICITED_FRAME_EMPTY; sci_unsolicited_frame_control_release_frame()
201 if (frame_get+1 == SCU_MAX_UNSOLICITED_FRAMES-1) { sci_unsolicited_frame_control_release_frame()
203 frame_get = 0; sci_unsolicited_frame_control_release_frame()
205 frame_get++; sci_unsolicited_frame_control_release_frame()
208 uf_control->get = SCU_UFQGP_GEN_BIT(ENABLE_BIT) | frame_cycle | frame_get; sci_unsolicited_frame_control_release_frame()

Completed in 68 milliseconds