Searched refs:seg_len (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/subsys/bluetooth/mesh/ |
D | pb_adv.c | 814 uint8_t seg_len, seg_id; in prov_send_adv() local 839 seg_len = MIN(msg->len, START_PAYLOAD_MAX); in prov_send_adv() 840 LOG_DBG("seg 0 len %u: %s", seg_len, bt_hex(msg->data, seg_len)); in prov_send_adv() 841 net_buf_simple_add_mem(&start->b, msg->data, seg_len); in prov_send_adv() 842 net_buf_simple_pull(msg, seg_len); in prov_send_adv() 860 seg_len = MIN(msg->len, CONT_PAYLOAD_MAX); in prov_send_adv() 862 LOG_DBG("seg %u len %u: %s", seg_id, seg_len, bt_hex(msg->data, seg_len)); in prov_send_adv() 867 net_buf_simple_add_mem(&adv->b, msg->data, seg_len); in prov_send_adv() 868 net_buf_simple_pull(msg, seg_len); in prov_send_adv()
|
D | transport.c | 174 static inline uint8_t seg_len(bool ctl) in seg_len() function 347 uint8_t len = MIN(seg_len(tx->ctl), tx->len - (seg_len(tx->ctl) * seg_o)); in seg_tx_buf_build() 521 tx->seg_n = (sdu->len - 1) / seg_len(!!ctl_op); in send_seg() 565 len = MIN(sdu->len, seg_len(!!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() 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()
|