Lines Matching full:buf
7 #include <zephyr/net/buf.h>
17 void bt_mesh_sar_tx_encode(struct net_buf_simple *buf, in bt_mesh_sar_tx_encode() argument
20 net_buf_simple_add_u8(buf, (tx->seg_int_step & 0xf) | in bt_mesh_sar_tx_encode()
22 net_buf_simple_add_u8(buf, (tx->unicast_retrans_without_prog_count & in bt_mesh_sar_tx_encode()
24 net_buf_simple_add_u8(buf, (tx->unicast_retrans_int_inc & 0xf) | in bt_mesh_sar_tx_encode()
26 net_buf_simple_add_u8(buf, tx->multicast_retrans_int & 0xf); in bt_mesh_sar_tx_encode()
29 void bt_mesh_sar_rx_encode(struct net_buf_simple *buf, in bt_mesh_sar_rx_encode() argument
32 net_buf_simple_add_u8(buf, (rx->seg_thresh & 0x1f) | in bt_mesh_sar_rx_encode()
34 net_buf_simple_add_u8(buf, (rx->discard_timeout & 0xf) | in bt_mesh_sar_rx_encode()
36 net_buf_simple_add_u8(buf, (rx->ack_retrans_count & 0x3)); in bt_mesh_sar_rx_encode()
39 void bt_mesh_sar_tx_decode(struct net_buf_simple *buf, in bt_mesh_sar_tx_decode() argument
44 val = net_buf_simple_pull_u8(buf); in bt_mesh_sar_tx_decode()
47 val = net_buf_simple_pull_u8(buf); in bt_mesh_sar_tx_decode()
50 val = net_buf_simple_pull_u8(buf); in bt_mesh_sar_tx_decode()
53 val = net_buf_simple_pull_u8(buf); in bt_mesh_sar_tx_decode()
57 void bt_mesh_sar_rx_decode(struct net_buf_simple *buf, in bt_mesh_sar_rx_decode() argument
62 val = net_buf_simple_pull_u8(buf); in bt_mesh_sar_rx_decode()
65 val = net_buf_simple_pull_u8(buf); in bt_mesh_sar_rx_decode()
68 val = net_buf_simple_pull_u8(buf); in bt_mesh_sar_rx_decode()