Searched refs:nb_frag (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/subsys/lorawan/services/ |
D | frag_transport.c | 68 uint16_t nb_frag; member 137 uint8_t missing_frag = CLAMP(ctx.nb_frag - ctx.nb_frag_received, 0, 255); in frag_transport_package_callback() 171 ctx.nb_frag = sys_get_le16(rx_buf + rx_pos); in frag_transport_package_callback() 183 index, ctx.nb_frag, ctx.frag_size, ctx.padding, ctx.control, in frag_transport_package_callback() 198 if (ctx.nb_frag > FRAG_MAX_NB || ctx.frag_size > FRAG_MAX_SIZE) { in frag_transport_package_callback() 204 if (ctx.nb_frag * ctx.frag_size > FragDecoderGetMaxFileSize()) { in frag_transport_package_callback() 222 FragDecoderInit(ctx.nb_frag, ctx.frag_size, &ctx.decoder_callbacks); in frag_transport_package_callback() 227 frag_dec_init(&ctx.decoder, ctx.nb_frag, ctx.frag_size); in frag_transport_package_callback() 268 if (frag_counter > ctx.nb_frag) { in frag_transport_package_callback() 284 frag_counter, ctx.nb_frag, frag_counter - ctx.nb_frag_received, in frag_transport_package_callback()
|
D | frag_decoder_lowmem.c | 176 void frag_dec_init(struct frag_decoder *decoder, size_t nb_frag, size_t frag_size) in frag_dec_init() argument 178 decoder->nb_frag = nb_frag; in frag_dec_init() 181 decoder->lost_frame_count = decoder->nb_frag; in frag_dec_init() 182 sys_bitarray_set_region(&lost_frames, decoder->nb_frag, 0); in frag_dec_init() 246 if (frag_counter <= decoder->nb_frag && decoder->status == FRAG_DEC_STA_UNCODED) { in frag_dec() 275 frag_dec_parity_matrix_vector(decoder->nb_frag, frag_counter - decoder->nb_frag, in frag_dec() 277 for (i = 0; i < decoder->nb_frag; i++) { in frag_dec() 318 decoder->nb_frag, 0, &frame_index); in frag_dec() 356 ret = sys_bitarray_find_nth_set(&lost_frames, i + 1, decoder->nb_frag, 0, in frag_dec() 369 ret = sys_bitarray_find_nth_set(&lost_frames, j + 1, decoder->nb_frag, 0, in frag_dec()
|
D | frag_decoder_lowmem.h | 43 uint16_t nb_frag; member 53 void frag_dec_init(struct frag_decoder *decoder, size_t nb_frag, size_t frag_size);
|