Lines Matching refs:att_chan

91 	struct bt_att_chan *att_chan;  member
301 struct bt_att_chan *att_chan = data->att_chan; in att_sent() local
302 struct bt_conn *conn = att_chan->att->conn; in att_sent()
303 struct bt_l2cap_chan *chan = &att_chan->chan.chan; in att_sent()
305 __ASSERT_NO_MSG(!bt_att_is_enhanced(att_chan)); in att_sent()
331 struct bt_att_chan *prev_chan = data->att_chan; in chan_send()
374 data->att_chan = chan; in chan_send()
381 data->att_chan = prev_chan; in chan_send()
409 data->att_chan = chan; in chan_send()
418 data->att_chan = prev_chan; in chan_send()
606 struct bt_att_chan *chan = data->att_chan; in chan_rebegin_att_timeout()
626 struct bt_att_chan *chan = data->att_chan; in chan_req_notif_sent()
652 if (!meta->att_chan || in att_on_sent_cb()
653 !meta->att_chan->att || in att_on_sent_cb()
654 !meta->att_chan->att->conn) { in att_on_sent_cb()
664 if (!bt_att_is_enhanced(meta->att_chan)) { in att_on_sent_cb()
728 data->att_chan = chan; in bt_att_chan_create_pdu()
2929 static struct bt_conn *get_conn(struct bt_att_chan *att_chan) in get_conn() argument
2931 return att_chan->chan.chan.conn; in get_conn()
2936 struct bt_att_chan *att_chan = ATT_CHAN(chan); in bt_att_recv() local
2937 struct bt_conn *conn = get_conn(att_chan); in bt_att_recv()
2949 LOG_DBG("Received ATT chan %p code 0x%02x len %zu", att_chan, hdr->code, in bt_att_recv()
2957 if (!att_chan->att) { in bt_att_recv()
2973 send_err_rsp(att_chan, hdr->code, 0, in bt_att_recv()
2983 err = handler->func(att_chan, buf); in bt_att_recv()
2988 send_err_rsp(att_chan, hdr->code, 0, err); in bt_att_recv()
2997 struct bt_att_chan *att_chan; in att_get() local
3010 att_chan = ATT_CHAN(chan); in att_get()
3011 if (!atomic_test_bit(att_chan->flags, ATT_CONNECTED)) { in att_get()
3016 return att_chan->att; in att_get()
3065 data->att_chan = chan; in bt_att_create_rsp_pdu()
3197 struct bt_att_chan *att_chan = ATT_CHAN(chan); in bt_att_connected() local
3202 atomic_set_bit(att_chan->flags, ATT_CONNECTED); in bt_att_connected()
3204 att_chan_mtu_updated(att_chan); in bt_att_connected()
3206 k_work_init_delayable(&att_chan->timeout_work, att_timeout); in bt_att_connected()
3213 struct bt_att_chan *att_chan = ATT_CHAN(chan); in bt_att_disconnected() local
3214 struct bt_att *att = att_chan->att; in bt_att_disconnected()
3219 if (!att_chan->att) { in bt_att_disconnected()
3224 att_chan_detach(att_chan); in bt_att_disconnected()
3237 static uint8_t att_req_retry(struct bt_att_chan *att_chan) in att_req_retry() argument
3239 struct bt_att_req *req = att_chan->req; in att_req_retry()
3249 buf = bt_att_chan_create_pdu(att_chan, req->att_op, req->len); in att_req_retry()
3259 if (chan_send(att_chan, buf)) { in att_req_retry()
3270 struct bt_att_chan *att_chan = ATT_CHAN(chan); in bt_att_encrypt_change() local
3278 if (!att_chan->att) { in bt_att_encrypt_change()
3288 if (att_chan->req && att_chan->req->retrying) { in bt_att_encrypt_change()
3289 att_handle_rsp(att_chan, NULL, 0, in bt_att_encrypt_change()
3302 if (!(att_chan->req && att_chan->req->retrying)) { in bt_att_encrypt_change()
3308 err = att_req_retry(att_chan); in bt_att_encrypt_change()
3311 att_handle_rsp(att_chan, NULL, 0, err); in bt_att_encrypt_change()
3363 struct bt_att_chan *att_chan = ATT_CHAN(l2cap_chan); in bt_att_reconfigured() local
3365 LOG_DBG("chan %p", att_chan); in bt_att_reconfigured()
3367 att_chan_mtu_updated(att_chan); in bt_att_reconfigured()
3637 struct bt_att_chan *att_chan; in bt_eatt_connect() local
3660 att_chan = att_get_fixed_chan(conn); in bt_eatt_connect()
3661 att = att_chan->att; in bt_eatt_connect()
3664 att_chan = att_chan_new(att, BIT(ATT_ENHANCED)); in bt_eatt_connect()
3665 if (!att_chan) { in bt_eatt_connect()
3669 chan[i] = &att_chan->chan.chan; in bt_eatt_connect()
3762 struct bt_att_chan *att_chan = att_get_fixed_chan(conn); in bt_eatt_reconfigure() local
3763 struct bt_att *att = att_chan->att; in bt_eatt_reconfigure()
3769 SYS_SLIST_FOR_EACH_CONTAINER(&att->chans, att_chan, node) { in bt_eatt_reconfigure()
3770 if (bt_att_is_enhanced(att_chan)) { in bt_eatt_reconfigure()
3771 chans[i] = &att_chan->chan.chan; in bt_eatt_reconfigure()
3796 struct bt_att_chan *att_chan = att_get_fixed_chan(conn); in bt_eatt_accept() local
3797 struct bt_att *att = att_chan->att; in bt_eatt_accept()
3801 att_chan = att_chan_new(att, BIT(ATT_ENHANCED)); in bt_eatt_accept()
3802 if (att_chan) { in bt_eatt_accept()
3803 *chan = &att_chan->chan.chan; in bt_eatt_accept()
4091 struct bt_att_chan *att_chan; in bt_att_out_of_sync_sent_on_fixed() local
4098 att_chan = ATT_CHAN(l2cap_chan); in bt_att_out_of_sync_sent_on_fixed()
4099 return atomic_test_bit(att_chan->flags, ATT_OUT_OF_SYNC_SENT); in bt_att_out_of_sync_sent_on_fixed()