Lines Matching refs:uf_control
62 struct sci_unsolicited_frame_control *uf_control = &ihost->uf_control; in sci_unsolicited_frame_control_construct() local
84 uf_control->headers.physical_address = dma + SCI_UFI_BUF_SIZE; in sci_unsolicited_frame_control_construct()
85 uf_control->headers.array = virt + SCI_UFI_BUF_SIZE; in sci_unsolicited_frame_control_construct()
94 uf_control->address_table.physical_address = dma + SCI_UFI_BUF_SIZE + SCI_UFI_HDR_SIZE; in sci_unsolicited_frame_control_construct()
95 uf_control->address_table.array = virt + SCI_UFI_BUF_SIZE + SCI_UFI_HDR_SIZE; in sci_unsolicited_frame_control_construct()
96 uf_control->get = 0; in sci_unsolicited_frame_control_construct()
110 uf = &uf_control->buffers.array[i]; in sci_unsolicited_frame_control_construct()
112 uf_control->address_table.array[i] = dma; in sci_unsolicited_frame_control_construct()
115 uf->header = &uf_control->headers.array[i]; in sci_unsolicited_frame_control_construct()
128 …i_status sci_unsolicited_frame_control_get_header(struct sci_unsolicited_frame_control *uf_control, in sci_unsolicited_frame_control_get_header() argument
136 *frame_header = &uf_control->buffers.array[frame_index].header->data; in sci_unsolicited_frame_control_get_header()
144 …i_status sci_unsolicited_frame_control_get_buffer(struct sci_unsolicited_frame_control *uf_control, in sci_unsolicited_frame_control_get_buffer() argument
149 *frame_buffer = uf_control->buffers.array[frame_index].buffer; in sci_unsolicited_frame_control_get_buffer()
157 bool sci_unsolicited_frame_control_release_frame(struct sci_unsolicited_frame_control *uf_control, in sci_unsolicited_frame_control_release_frame() argument
163 frame_get = uf_control->get & (SCU_MAX_UNSOLICITED_FRAMES - 1); in sci_unsolicited_frame_control_release_frame()
164 frame_cycle = uf_control->get & SCU_MAX_UNSOLICITED_FRAMES; in sci_unsolicited_frame_control_release_frame()
171 while (lower_32_bits(uf_control->address_table.array[frame_get]) == 0 && in sci_unsolicited_frame_control_release_frame()
172 upper_32_bits(uf_control->address_table.array[frame_get]) == 0 && in sci_unsolicited_frame_control_release_frame()
184 uf_control->buffers.array[frame_index].state = UNSOLICITED_FRAME_RELEASED; in sci_unsolicited_frame_control_release_frame()
198 while (uf_control->buffers.array[frame_get].state == UNSOLICITED_FRAME_RELEASED) { in sci_unsolicited_frame_control_release_frame()
199 uf_control->buffers.array[frame_get].state = UNSOLICITED_FRAME_EMPTY; in sci_unsolicited_frame_control_release_frame()
208 uf_control->get = SCU_UFQGP_GEN_BIT(ENABLE_BIT) | frame_cycle | frame_get; in sci_unsolicited_frame_control_release_frame()