Lines Matching refs:bt_att_mtu
123 static uint16_t bt_att_mtu(struct bt_att_chan *chan) in bt_att_mtu() function
533 if (bt_att_mtu(chan) < net_buf_frags_len(req->buf)) { in chan_req_send()
555 bt_gatt_req_set_mtu(req, bt_att_mtu(chan)); in chan_req_send()
696 if (len + sizeof(op) > bt_att_mtu(chan)) { in bt_att_chan_create_pdu()
697 LOG_WRN("ATT MTU exceeded, max %u, wanted %zu", bt_att_mtu(chan), in bt_att_chan_create_pdu()
854 LOG_DBG("Negotiated MTU %u", bt_att_mtu(chan)); in att_mtu_req()
988 LOG_DBG("Negotiated MTU %u", bt_att_mtu(chan)); in att_mtu_rsp()
1053 if (bt_att_mtu(chan) - data->buf->len > in find_info_cb()
1070 if (bt_att_mtu(chan) - data->buf->len > in find_info_cb()
1165 if (bt_att_mtu(chan) - net_buf_frags_len(data->buf) < in find_type_cb()
1172 len = MIN(bt_att_mtu(chan) - net_buf_frags_len(data->buf), in find_type_cb()
1370 if (bt_att_mtu(chan) <= net_buf_frags_len(buf)) { in att_chan_read()
1380 len = MIN(bt_att_mtu(chan) - net_buf_frags_len(buf), in att_chan_read()
1392 len = MIN(bt_att_mtu(chan) - net_buf_frags_len(buf), in att_chan_read()
1413 } while (bt_att_mtu(chan) > net_buf_frags_len(buf) && read == len); in att_chan_read()
1479 return bt_att_mtu(chan) - net_buf_frags_len(data->buf) > in read_type_cb()
1787 if (bt_att_mtu(chan) - data->buf->len < 2) { in read_vl_cb()
1907 bt_att_mtu(chan) - data->buf->len < data->rsp->len) { in read_group_cb()
3031 if (len + sizeof(op) > bt_att_mtu(chan)) { in bt_att_create_pdu()
3862 if (bt_att_mtu(chan) > mtu) { in bt_att_get_mtu()
3863 mtu = bt_att_mtu(chan); in bt_att_get_mtu()
3882 return bt_att_mtu(chan); in bt_att_get_uatt_mtu()