Lines Matching full:handle
77 qcafrm_fsm_decode(struct qcafrm_handle *handle, u8 *buf, u16 buf_len, u8 recv_byte) in qcafrm_fsm_decode() argument
82 switch (handle->state) { in qcafrm_fsm_decode()
86 handle->state--; in qcafrm_fsm_decode()
90 handle->state = handle->init; in qcafrm_fsm_decode()
95 handle->state--; in qcafrm_fsm_decode()
104 handle->state = handle->init; in qcafrm_fsm_decode()
106 handle->state--; in qcafrm_fsm_decode()
112 handle->offset = recv_byte; in qcafrm_fsm_decode()
113 handle->state = QCAFRM_WAIT_LEN_BYTE1; in qcafrm_fsm_decode()
116 handle->offset = handle->offset | (recv_byte << 8); in qcafrm_fsm_decode()
117 handle->state = QCAFRM_WAIT_RSVD_BYTE1; in qcafrm_fsm_decode()
120 handle->state = QCAFRM_WAIT_RSVD_BYTE2; in qcafrm_fsm_decode()
123 len = handle->offset; in qcafrm_fsm_decode()
126 handle->state = handle->init; in qcafrm_fsm_decode()
128 handle->state = (enum qcafrm_state)(len + 1); in qcafrm_fsm_decode()
130 handle->offset = 0; in qcafrm_fsm_decode()
135 buf[handle->offset] = recv_byte; in qcafrm_fsm_decode()
136 handle->offset++; in qcafrm_fsm_decode()
137 handle->state--; in qcafrm_fsm_decode()
142 handle->state = handle->init; in qcafrm_fsm_decode()
144 handle->state = QCAFRM_WAIT_552; in qcafrm_fsm_decode()
150 handle->state = handle->init; in qcafrm_fsm_decode()
152 ret = handle->offset; in qcafrm_fsm_decode()
154 handle->state = handle->init; in qcafrm_fsm_decode()