Lines Matching full:handle
64 qcafrm_fsm_decode(struct qcafrm_handle *handle, u8 *buf, u16 buf_len, u8 recv_byte) in qcafrm_fsm_decode() argument
69 switch (handle->state) { in qcafrm_fsm_decode()
73 handle->state--; in qcafrm_fsm_decode()
77 handle->state = handle->init; in qcafrm_fsm_decode()
82 handle->state--; in qcafrm_fsm_decode()
91 handle->state = handle->init; in qcafrm_fsm_decode()
93 handle->state--; in qcafrm_fsm_decode()
99 handle->offset = recv_byte; in qcafrm_fsm_decode()
100 handle->state = QCAFRM_WAIT_LEN_BYTE1; in qcafrm_fsm_decode()
103 handle->offset = handle->offset | (recv_byte << 8); in qcafrm_fsm_decode()
104 handle->state = QCAFRM_WAIT_RSVD_BYTE1; in qcafrm_fsm_decode()
107 handle->state = QCAFRM_WAIT_RSVD_BYTE2; in qcafrm_fsm_decode()
110 len = handle->offset; in qcafrm_fsm_decode()
113 handle->state = handle->init; in qcafrm_fsm_decode()
115 handle->state = (enum qcafrm_state)(len + 1); in qcafrm_fsm_decode()
117 handle->offset = 0; in qcafrm_fsm_decode()
122 buf[handle->offset] = recv_byte; in qcafrm_fsm_decode()
123 handle->offset++; in qcafrm_fsm_decode()
124 handle->state--; in qcafrm_fsm_decode()
129 handle->state = handle->init; in qcafrm_fsm_decode()
131 handle->state = QCAFRM_WAIT_552; in qcafrm_fsm_decode()
137 handle->state = handle->init; in qcafrm_fsm_decode()
139 ret = handle->offset; in qcafrm_fsm_decode()
141 handle->state = handle->init; in qcafrm_fsm_decode()