Lines Matching refs:bt_att_chan
36 #define ATT_CHAN(_ch) CONTAINER_OF(_ch, struct bt_att_chan, chan.chan)
91 struct bt_att_chan *att_chan;
102 struct bt_att_chan { struct
113 static bool bt_att_is_enhanced(struct bt_att_chan *chan) in bt_att_is_enhanced() argument
123 static uint16_t bt_att_mtu(struct bt_att_chan *chan) in bt_att_mtu()
163 K_MEM_SLAB_DEFINE(chan_slab, sizeof(struct bt_att_chan),
165 __alignof__(struct bt_att_chan));
289 static int bt_att_chan_send(struct bt_att_chan *chan, struct net_buf *buf);
291 static void att_chan_mtu_updated(struct bt_att_chan *updated_chan);
294 struct net_buf *bt_att_create_rsp_pdu(struct bt_att_chan *chan, uint8_t op);
301 struct bt_att_chan *att_chan = data->att_chan; in att_sent()
325 static int chan_send(struct bt_att_chan *chan, struct net_buf *buf) in chan_send()
331 struct bt_att_chan *prev_chan = data->att_chan; in chan_send()
425 static bool att_chan_matches_chan_opt(struct bt_att_chan *chan, enum bt_att_chan_opt chan_opt) in att_chan_matches_chan_opt()
440 static struct net_buf *get_first_buf_matching_chan(struct k_fifo *fifo, struct bt_att_chan *chan) in get_first_buf_matching_chan()
474 static struct bt_att_req *get_first_req_matching_chan(sys_slist_t *reqs, struct bt_att_chan *chan) in get_first_req_matching_chan()
507 static int process_queue(struct bt_att_chan *chan, struct k_fifo *queue) in process_queue()
528 static int chan_req_send(struct bt_att_chan *chan, struct bt_att_req *req) in chan_req_send()
564 struct bt_att_chan *chan = ATT_CHAN(ch); in bt_att_sent()
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()
689 static struct net_buf *bt_att_chan_create_pdu(struct bt_att_chan *chan, uint8_t op, size_t len) in bt_att_chan_create_pdu()
736 static int bt_att_chan_send(struct bt_att_chan *chan, struct net_buf *buf) in bt_att_chan_send()
751 struct bt_att_chan *chan, *tmp, *prev = NULL; in att_send_process()
774 static void bt_att_chan_send_rsp(struct bt_att_chan *chan, struct net_buf *buf) in bt_att_chan_send_rsp()
785 static void send_err_rsp(struct bt_att_chan *chan, uint8_t req, uint16_t handle, in send_err_rsp()
809 static uint8_t att_mtu_req(struct bt_att_chan *chan, struct net_buf *buf) in att_mtu_req()
871 static int bt_att_chan_req_send(struct bt_att_chan *chan, in bt_att_chan_req_send()
887 struct bt_att_chan *chan, *tmp, *prev = NULL; in att_req_send_process()
920 static uint8_t att_handle_rsp(struct bt_att_chan *chan, void *pdu, uint16_t len, in att_handle_rsp()
962 static uint8_t att_mtu_rsp(struct bt_att_chan *chan, struct net_buf *buf) in att_mtu_rsp()
1018 struct bt_att_chan *chan;
1031 struct bt_att_chan *chan = data->chan; in find_info_cb()
1079 static uint8_t att_find_info_rsp(struct bt_att_chan *chan, uint16_t start_handle, in att_find_info_rsp()
1107 static uint8_t att_find_info_req(struct bt_att_chan *chan, struct net_buf *buf) in att_find_info_req()
1129 struct bt_att_chan *chan;
1141 struct bt_att_chan *chan = data->chan; in find_type_cb()
1232 static uint8_t att_find_type_rsp(struct bt_att_chan *chan, uint16_t start_handle, in att_find_type_rsp()
1269 static uint8_t att_find_type_req(struct bt_att_chan *chan, struct net_buf *buf) in att_find_type_req()
1317 struct bt_att_chan *chan;
1360 static ssize_t att_chan_read(struct bt_att_chan *chan, in att_chan_read()
1422 struct bt_att_chan *chan = data->chan; in read_type_cb()
1483 static uint8_t att_read_type_rsp(struct bt_att_chan *chan, struct bt_uuid *uuid, in att_read_type_rsp()
1518 static uint8_t att_read_type_req(struct bt_att_chan *chan, struct net_buf *buf) in att_read_type_req()
1579 struct bt_att_chan *chan;
1589 struct bt_att_chan *chan = data->chan; in read_cb()
1623 static uint8_t att_read_rsp(struct bt_att_chan *chan, uint8_t op, uint8_t rsp, in att_read_rsp()
1668 static uint8_t att_read_req(struct bt_att_chan *chan, struct net_buf *buf) in att_read_req()
1683 static uint8_t att_read_blob_req(struct bt_att_chan *chan, struct net_buf *buf) in att_read_blob_req()
1700 static uint8_t att_read_mult_req(struct bt_att_chan *chan, struct net_buf *buf) in att_read_mult_req()
1759 struct bt_att_chan *chan = data->chan; in read_vl_cb()
1804 static uint8_t att_read_mult_vl_req(struct bt_att_chan *chan, struct net_buf *buf) in att_read_mult_vl_req()
1855 struct bt_att_chan *chan;
1884 struct bt_att_chan *chan = data->chan; in read_group_cb()
1934 static uint8_t att_read_group_rsp(struct bt_att_chan *chan, struct bt_uuid *uuid, in att_read_group_rsp()
1967 static uint8_t att_read_group_req(struct bt_att_chan *chan, struct net_buf *buf) in att_read_group_req()
2084 static uint8_t att_write_rsp(struct bt_att_chan *chan, uint8_t req, uint8_t rsp, in att_write_rsp()
2138 static uint8_t att_write_req(struct bt_att_chan *chan, struct net_buf *buf) in att_write_req()
2214 static uint8_t att_prep_write_rsp(struct bt_att_chan *chan, uint16_t handle, in att_prep_write_rsp()
2272 static uint8_t att_prepare_write_req(struct bt_att_chan *chan, struct net_buf *buf) in att_prepare_write_req()
2345 static uint8_t att_exec_write_rsp(struct bt_att_chan *chan, uint8_t flags) in att_exec_write_rsp()
2414 static uint8_t att_exec_write_req(struct bt_att_chan *chan, struct net_buf *buf) in att_exec_write_req()
2429 static uint8_t att_write_cmd(struct bt_att_chan *chan, struct net_buf *buf) in att_write_cmd()
2441 static uint8_t att_signed_write_cmd(struct bt_att_chan *chan, struct net_buf *buf) in att_signed_write_cmd()
2543 static uint8_t att_error_rsp(struct bt_att_chan *chan, struct net_buf *buf) in att_error_rsp()
2592 static uint8_t att_handle_find_info_rsp(struct bt_att_chan *chan, in att_handle_find_info_rsp()
2600 static uint8_t att_handle_find_type_rsp(struct bt_att_chan *chan, in att_handle_find_type_rsp()
2608 static uint8_t att_handle_read_type_rsp(struct bt_att_chan *chan, in att_handle_read_type_rsp()
2616 static uint8_t att_handle_read_rsp(struct bt_att_chan *chan, in att_handle_read_rsp()
2624 static uint8_t att_handle_read_blob_rsp(struct bt_att_chan *chan, in att_handle_read_blob_rsp()
2633 static uint8_t att_handle_read_mult_rsp(struct bt_att_chan *chan, in att_handle_read_mult_rsp()
2644 static uint8_t att_handle_read_mult_vl_rsp(struct bt_att_chan *chan, in att_handle_read_mult_vl_rsp()
2653 static uint8_t att_handle_read_group_rsp(struct bt_att_chan *chan, in att_handle_read_group_rsp()
2661 static uint8_t att_handle_write_rsp(struct bt_att_chan *chan, in att_handle_write_rsp()
2669 static uint8_t att_handle_prepare_write_rsp(struct bt_att_chan *chan, in att_handle_prepare_write_rsp()
2677 static uint8_t att_handle_exec_write_rsp(struct bt_att_chan *chan, in att_handle_exec_write_rsp()
2685 static uint8_t att_notify(struct bt_att_chan *chan, struct net_buf *buf) in att_notify()
2698 static uint8_t att_indicate(struct bt_att_chan *chan, struct net_buf *buf) in att_indicate()
2718 static uint8_t att_notify_mult(struct bt_att_chan *chan, struct net_buf *buf) in att_notify_mult()
2728 static uint8_t att_confirm(struct bt_att_chan *chan, struct net_buf *buf) in att_confirm()
2739 uint8_t (*func)(struct bt_att_chan *chan, struct net_buf *buf);
2929 static struct bt_conn *get_conn(struct bt_att_chan *att_chan) in get_conn()
2936 struct bt_att_chan *att_chan = ATT_CHAN(chan); in bt_att_recv()
2997 struct bt_att_chan *att_chan; in att_get()
3022 struct bt_att_chan *chan, *tmp; in bt_att_create_pdu()
3043 struct net_buf *bt_att_create_rsp_pdu(struct bt_att_chan *chan, uint8_t op) in bt_att_create_rsp_pdu()
3116 static void att_chan_detach(struct bt_att_chan *chan) in att_chan_detach()
3142 struct bt_att_chan *chan = CONTAINER_OF(dwork, struct bt_att_chan, in att_timeout()
3170 static struct bt_att_chan *att_get_fixed_chan(struct bt_conn *conn) in att_get_fixed_chan()
3180 static void att_chan_attach(struct bt_att *att, struct bt_att_chan *chan) in att_chan_attach()
3197 struct bt_att_chan *att_chan = ATT_CHAN(chan); in bt_att_connected()
3213 struct bt_att_chan *att_chan = ATT_CHAN(chan); in bt_att_disconnected()
3237 static uint8_t att_req_retry(struct bt_att_chan *att_chan) in att_req_retry()
3270 struct bt_att_chan *att_chan = ATT_CHAN(chan); in bt_att_encrypt_change()
3318 struct bt_att_chan *chan = ATT_CHAN(ch); in bt_att_status()
3353 struct bt_att_chan *chan = ATT_CHAN(ch); in bt_att_released()
3363 struct bt_att_chan *att_chan = ATT_CHAN(l2cap_chan); in bt_att_reconfigured()
3371 static struct bt_att_chan *att_chan_new(struct bt_att *att, atomic_val_t flags) in att_chan_new()
3388 struct bt_att_chan *chan; in att_chan_new()
3434 struct bt_att_chan *chan; in bt_eatt_count()
3477 struct bt_att_chan *chan; in bt_att_accept()
3637 struct bt_att_chan *att_chan; in bt_eatt_connect()
3718 struct bt_att_chan *chan; in bt_eatt_disconnect()
3742 struct bt_att_chan *chan; in bt_eatt_disconnect_one()
3762 struct bt_att_chan *att_chan = att_get_fixed_chan(conn); in bt_eatt_reconfigure()
3796 struct bt_att_chan *att_chan = att_get_fixed_chan(conn); in bt_eatt_accept()
3852 struct bt_att_chan *chan, *tmp; in bt_att_get_mtu()
3872 struct bt_att_chan *chan, *tmp; in bt_att_get_uatt_mtu()
3891 static void att_chan_mtu_updated(struct bt_att_chan *updated_chan) in att_chan_mtu_updated()
3894 struct bt_att_chan *chan, *tmp; in att_chan_mtu_updated()
3996 static bool bt_att_chan_req_cancel(struct bt_att_chan *chan, in bt_att_chan_req_cancel()
4013 struct bt_att_chan *chan, *tmp; in bt_att_req_cancel()
4042 struct bt_att_chan *chan; in bt_att_find_req_by_user_data()
4077 struct bt_att_chan *chan; in bt_att_clear_out_of_sync_sent()
4091 struct bt_att_chan *att_chan; in bt_att_out_of_sync_sent_on_fixed()