Lines Matching refs:ctl
86 ctl:1, /* Control packet */ member
106 ctl:1, member
174 static inline uint8_t seg_len(bool ctl) in seg_len() argument
176 if (ctl) { in seg_len()
347 uint8_t len = MIN(seg_len(tx->ctl), tx->len - (seg_len(tx->ctl) * seg_o)); in seg_tx_buf_build()
367 .app_idx = (tx->ctl ? BT_MESH_KEY_UNUSED : 0), in seg_tx_send_unacked()
537 tx->ctl = !!ctl_op; in send_seg()
726 MIN(seg_len(rx->ctl), in seg_rx_assemble()
727 rx->len - (i * seg_len(rx->ctl)))); in seg_rx_assemble()
731 if (!rx->ctl) { in seg_rx_assemble()
1046 if (rx->ctl) { in trans_unseg()
1232 static inline bool sdu_len_is_ok(bool ctl, uint8_t seg_n) in sdu_len_is_ok() argument
1286 if (rx->ctl != net_rx->ctl) { in seg_rx_is_valid()
1317 rx->ctl = net_rx->ctl; in seg_rx_alloc()
1446 if (!sdu_len_is_ok(net_rx->ctl, seg_n)) { in trans_seg()
1517 rx->len = seg_n * seg_len(rx->ctl) + buf->len; in trans_seg()
1518 LOG_DBG("Target len %u * %u + %u = %u", seg_n, seg_len(rx->ctl), buf->len, rx->len); in trans_seg()
1529 if (buf->len != seg_len(rx->ctl)) { in trans_seg()
1576 if (net_rx->ctl) { in trans_seg()
1638 bt_mesh_test_net_recv(rx->ctx.recv_ttl, rx->ctl, rx->ctx.addr, rx->ctx.recv_dst, in bt_mesh_trans_recv()
1673 if (!rx->ctl && !rx->local_match && !rx->friend_match) { in bt_mesh_trans_recv()