Lines Matching refs:opts
151 *data++ = rctx->opts.bs; in receive_send_fc()
152 *data++ = rctx->opts.stmin; in receive_send_fc()
227 if (rctx->opts.bs == 0) { in receive_alloc_buffer()
232 uint32_t len = MIN(rctx->length, rctx->opts.bs * (rctx->rx_addr.dl - 1)); in receive_alloc_buffer()
259 if (rctx->opts.bs != 0) { in receive_alloc_buffer()
290 if (rctx->opts.bs == 0 && in receive_state_machine()
299 if (rctx->opts.bs) { in receive_state_machine()
300 rctx->bs = rctx->opts.bs; in receive_state_machine()
545 if (rctx->opts.bs && !--rctx->bs) { in process_cf()
547 rctx->bs = rctx->opts.bs; in process_cf()
618 const struct isotp_fc_opts *opts, in isotp_bind() argument
627 __ASSERT(opts, "OPTS is NULL"); in isotp_bind()
634 __ASSERT(opts->stmin < ISOTP_STMIN_MAX, "STmin limit"); in isotp_bind()
635 __ASSERT(opts->stmin <= ISOTP_STMIN_MS_MAX || in isotp_bind()
636 opts->stmin >= ISOTP_STMIN_US_BEGIN, "STmin reserved"); in isotp_bind()
638 rctx->opts = *opts; in isotp_bind()
822 sctx->opts.bs = *data++; in send_process_fc()
823 sctx->opts.stmin = *data++; in send_process_fc()
824 sctx->bs = sctx->opts.bs; in send_process_fc()
825 LOG_DBG("Got CTS. BS: %d, STmin: %d", sctx->opts.bs, in send_process_fc()
826 sctx->opts.stmin); in send_process_fc()
1112 if (sctx->opts.bs && !sctx->bs) { in send_state_machine()
1117 } else if (sctx->opts.stmin) { in send_state_machine()
1129 k_timer_start(&sctx->timer, stmin_to_timeout(sctx->opts.stmin), K_NO_WAIT); in send_state_machine()