Searched refs:l2cap_ctx (Results 1 – 4 of 4) sorted by relevance
/Zephyr-Core-3.5.0/subsys/bluetooth/services/ots/ |
D | ots_l2cap.c | 49 static int ots_l2cap_send(struct bt_gatt_ots_l2cap *l2cap_ctx) in ots_l2cap_send() argument 56 len = MIN(l2cap_ctx->ot_chan.tx.mtu, CONFIG_BT_OTS_L2CAP_CHAN_TX_MTU); in ots_l2cap_send() 57 len = MIN(len, l2cap_ctx->tx.len - l2cap_ctx->tx.len_sent); in ots_l2cap_send() 62 net_buf_add_mem(buf, &l2cap_ctx->tx.data[l2cap_ctx->tx.len_sent], len); in ots_l2cap_send() 64 ret = bt_l2cap_chan_send(&l2cap_ctx->ot_chan.chan, buf); in ots_l2cap_send() 73 l2cap_ctx->tx.len_sent += len; in ots_l2cap_send() 93 struct bt_gatt_ots_l2cap *l2cap_ctx; in l2cap_sent() local 97 l2cap_ctx = CONTAINER_OF(l2chan, struct bt_gatt_ots_l2cap, ot_chan); in l2cap_sent() 100 if (l2cap_ctx->tx.len != l2cap_ctx->tx.len_sent) { in l2cap_sent() 101 ots_l2cap_send(l2cap_ctx); in l2cap_sent() [all …]
|
D | ots_l2cap_internal.h | 30 void (*tx_done)(struct bt_gatt_ots_l2cap *l2cap_ctx, 32 ssize_t (*rx_done)(struct bt_gatt_ots_l2cap *l2cap_ctx, 34 void (*closed)(struct bt_gatt_ots_l2cap *l2cap_ctx, 38 bool bt_gatt_ots_l2cap_is_open(struct bt_gatt_ots_l2cap *l2cap_ctx, 41 int bt_gatt_ots_l2cap_send(struct bt_gatt_ots_l2cap *l2cap_ctx, 45 int bt_gatt_ots_l2cap_register(struct bt_gatt_ots_l2cap *l2cap_ctx); 47 int bt_gatt_ots_l2cap_unregister(struct bt_gatt_ots_l2cap *l2cap_ctx); 61 struct bt_gatt_ots_l2cap **l2cap_ctx); 63 int bt_gatt_ots_l2cap_disconnect(struct bt_gatt_ots_l2cap *l2cap_ctx);
|
D | ots_oacp.c | 40 static ssize_t oacp_write_proc_cb(struct bt_gatt_ots_l2cap *l2cap_ctx, 43 static void oacp_l2cap_closed(struct bt_gatt_ots_l2cap *l2cap_ctx, in oacp_l2cap_closed() argument 48 ots = CONTAINER_OF(l2cap_ctx, struct bt_ots, l2cap); in oacp_l2cap_closed() 55 l2cap_ctx->rx_done = NULL; in oacp_l2cap_closed() 56 l2cap_ctx->tx_done = NULL; in oacp_l2cap_closed() 457 static void oacp_read_proc_cb(struct bt_gatt_ots_l2cap *l2cap_ctx, in oacp_read_proc_cb() argument 467 ots = CONTAINER_OF(l2cap_ctx, struct bt_ots, l2cap); in oacp_read_proc_cb() 547 static ssize_t oacp_write_proc_cb(struct bt_gatt_ots_l2cap *l2cap_ctx, in oacp_write_proc_cb() argument 557 ots = CONTAINER_OF(l2cap_ctx, struct bt_ots, l2cap); in oacp_write_proc_cb()
|
D | ots_client.c | 103 struct bt_gatt_ots_l2cap l2cap_ctx; member 137 static void tx_done(struct bt_gatt_ots_l2cap *l2cap_ctx, in tx_done() argument 141 LOG_ERR("Unexpected call, context: %p, conn: %p", l2cap_ctx, (void *)conn); in tx_done() 144 static void write_obj_tx_done(struct bt_gatt_ots_l2cap *l2cap_ctx, in write_obj_tx_done() argument 156 LOG_DBG("ctx: %p, conn: %p, written: %d", l2cap_ctx, (void *)conn, written); in write_obj_tx_done() 158 err = bt_gatt_ots_l2cap_disconnect(l2cap_ctx); in write_obj_tx_done() 172 static ssize_t rx_done(struct bt_gatt_ots_l2cap *l2cap_ctx, in rx_done() argument 181 LOG_DBG("Incoming L2CAP data, context: %p, conn: %p, len: %u, offset: %u", l2cap_ctx, in rx_done() 205 err = bt_gatt_ots_l2cap_disconnect(l2cap_ctx); in rx_done() 217 err = bt_gatt_ots_l2cap_disconnect(l2cap_ctx); in rx_done() [all …]
|