Lines Matching refs:handle
73 qcafrm_fsm_decode(struct qcafrm_handle *handle, u8 *buf, u16 buf_len, u8 recv_byte) in qcafrm_fsm_decode() argument
78 switch (handle->state) { in qcafrm_fsm_decode()
82 handle->state--; in qcafrm_fsm_decode()
86 handle->state = QCAFRM_HW_LEN0; in qcafrm_fsm_decode()
91 handle->state--; in qcafrm_fsm_decode()
100 handle->state = QCAFRM_HW_LEN0; in qcafrm_fsm_decode()
102 handle->state--; in qcafrm_fsm_decode()
108 handle->offset = recv_byte; in qcafrm_fsm_decode()
109 handle->state = QCAFRM_WAIT_LEN_BYTE1; in qcafrm_fsm_decode()
112 handle->offset = handle->offset | (recv_byte << 8); in qcafrm_fsm_decode()
113 handle->state = QCAFRM_WAIT_RSVD_BYTE1; in qcafrm_fsm_decode()
116 handle->state = QCAFRM_WAIT_RSVD_BYTE2; in qcafrm_fsm_decode()
119 len = handle->offset; in qcafrm_fsm_decode()
122 handle->state = QCAFRM_HW_LEN0; in qcafrm_fsm_decode()
124 handle->state = (enum qcafrm_state)(len + 1); in qcafrm_fsm_decode()
126 handle->offset = 0; in qcafrm_fsm_decode()
131 buf[handle->offset] = recv_byte; in qcafrm_fsm_decode()
132 handle->offset++; in qcafrm_fsm_decode()
133 handle->state--; in qcafrm_fsm_decode()
138 handle->state = QCAFRM_HW_LEN0; in qcafrm_fsm_decode()
140 handle->state = QCAFRM_WAIT_552; in qcafrm_fsm_decode()
146 handle->state = QCAFRM_HW_LEN0; in qcafrm_fsm_decode()
148 ret = handle->offset; in qcafrm_fsm_decode()
150 handle->state = QCAFRM_HW_LEN0; in qcafrm_fsm_decode()