Lines Matching refs:data_len
80 uint16_t data_len) in modem_cmux_wrap_command() argument
82 if ((data == NULL) || (data_len < 2)) { in modem_cmux_wrap_command()
92 if ((*command)->length.value != (data_len - 2)) { in modem_cmux_wrap_command()
133 frame->cr, frame->pf, modem_cmux_frame_type_to_str(frame->type), frame->data_len); in modem_cmux_log_frame()
139 modem_cmux_log_frame(frame, "tx", frame->data_len); in modem_cmux_log_transmit_frame()
144 modem_cmux_log_frame(frame, "rcvd", frame->data_len); in modem_cmux_log_received_frame()
272 uint16_t data_len; in modem_cmux_transmit_frame() local
276 data_len = MIN(space, frame->data_len); in modem_cmux_transmit_frame()
288 if (data_len > 127) { in modem_cmux_transmit_frame()
289 buf[3] = data_len << 1; in modem_cmux_transmit_frame()
290 buf[4] = data_len >> 7; in modem_cmux_transmit_frame()
293 buf[3] = 0x01 | (data_len << 1); in modem_cmux_transmit_frame()
304 fcs = 0xFF - crc8_rohc(fcs, frame->data, data_len); in modem_cmux_transmit_frame()
311 ring_buf_put(&cmux->transmit_rb, frame->data, data_len); in modem_cmux_transmit_frame()
318 return data_len; in modem_cmux_transmit_frame()
336 if (modem_cmux_wrap_command(&command, frame->data, frame->data_len) == 0) { in modem_cmux_transmit_cmd_frame()
384 if (sizeof(data) < cmux->frame.data_len) { in modem_cmux_acknowledge_received_frame()
390 memcpy(data, cmux->frame.data, cmux->frame.data_len); in modem_cmux_acknowledge_received_frame()
391 modem_cmux_wrap_command(&command, data, cmux->frame.data_len); in modem_cmux_acknowledge_received_frame()
394 frame.data_len = cmux->frame.data_len; in modem_cmux_acknowledge_received_frame()
477 if (modem_cmux_wrap_command(&command, cmux->frame.data, cmux->frame.data_len) < 0) { in modem_cmux_on_control_frame_uih()
519 .data_len = 0, in modem_cmux_connect_response_transmit()
619 written = ring_buf_put(&dlci->receive_rb, cmux->frame.data, cmux->frame.data_len); in modem_cmux_on_dlci_frame_uih()
621 if (written != cmux->frame.data_len) { in modem_cmux_on_dlci_frame_uih()
623 dlci->dlci_address, cmux->frame.data_len - written, cmux->frame.data_len); in modem_cmux_on_dlci_frame_uih()
723 modem_cmux_log_frame(frame, "dropped", MIN(frame->data_len, cmux->receive_buf_size)); in modem_cmux_drop_frame()
791 cmux->frame.data_len = (byte >> 1); in modem_cmux_process_received_byte()
801 if (cmux->frame.data_len == 0) { in modem_cmux_process_received_byte()
817 cmux->frame.data_len |= ((uint16_t)byte) << 7; in modem_cmux_process_received_byte()
819 if (cmux->frame.data_len > cmux->receive_buf_size) { in modem_cmux_process_received_byte()
821 cmux->frame.data_len, cmux->receive_buf_size); in modem_cmux_process_received_byte()
839 if (cmux->frame.data_len == cmux->receive_buf_len) { in modem_cmux_process_received_byte()
860 fcs = 0xFF - crc8_rohc(fcs, cmux->frame.data, cmux->frame.data_len); in modem_cmux_process_received_byte()
1004 .data_len = 0, in modem_cmux_connect_handler()
1033 .data_len = sizeof(data), in modem_cmux_disconnect_handler()
1112 .data_len = size, in modem_cmux_dlci_pipe_api_transmit()
1187 .data_len = 0, in modem_cmux_dlci_open_handler()
1216 .data_len = 0, in modem_cmux_dlci_close_handler()