Lines Matching refs:seq_zero
346 uint16_t seq_zero = tx->seq_auth & TRANS_SEQ_ZERO_MASK; in seg_tx_buf_build() local
350 net_buf_simple_add_u8(buf, (tx->aszmic << 7) | seq_zero >> 6); in seg_tx_buf_build()
351 net_buf_simple_add_u8(buf, (((seq_zero & 0x3f) << 2) | (seg_o >> 3))); in seg_tx_buf_build()
816 static struct seg_tx *seg_tx_lookup(uint16_t seq_zero, uint8_t obo, uint16_t addr) in seg_tx_lookup() argument
824 if ((tx->seq_auth & TRANS_SEQ_ZERO_MASK) != seq_zero) { in seg_tx_lookup()
853 uint16_t seq_zero; in trans_ack() local
861 seq_zero = net_buf_simple_pull_be16(buf); in trans_ack()
862 obo = seq_zero >> 15; in trans_ack()
863 seq_zero = (seq_zero >> 2) & TRANS_SEQ_ZERO_MASK; in trans_ack()
868 *seq_auth = SEQ_AUTH(BT_MESH_NET_IVI_RX(rx), seq_zero); in trans_ack()
876 LOG_DBG("OBO %u seq_zero 0x%04x ack 0x%08x", obo, seq_zero, ack); in trans_ack()
878 tx = seg_tx_lookup(seq_zero, obo, rx->ctx.addr); in trans_ack()
1118 uint16_t seq_zero = *seq_auth & TRANS_SEQ_ZERO_MASK; in send_ack() local
1121 LOG_DBG("SeqZero 0x%04x Block 0x%08x OBO %u", seq_zero, block, obo); in send_ack()
1136 sys_put_be16(((seq_zero << 2) & 0x7ffc) | (obo << 15), buf); in send_ack()
1341 uint16_t seq_zero; in trans_seg() local
1362 seq_zero = net_buf_simple_pull_be16(buf); in trans_seg()
1363 seg_o = (seq_zero & 0x03) << 3; in trans_seg()
1364 seq_zero = (seq_zero >> 2) & TRANS_SEQ_ZERO_MASK; in trans_seg()
1369 LOG_DBG("SeqZero 0x%04x SegO %u SegN %u", seq_zero, seg_o, seg_n); in trans_seg()
1391 ((((net_rx->seq & BIT_MASK(14)) - seq_zero)) & in trans_seg()