| /Zephyr-latest/subsys/bluetooth/services/ots/ |
| D | ots_oacp.c | 37 struct bt_ots *ots; in oacp_l2cap_closed() local 39 ots = CONTAINER_OF(l2cap_ctx, struct bt_ots, l2cap); in oacp_l2cap_closed() 41 if (!ots->cur_obj) { in oacp_l2cap_closed() 45 ots->cur_obj->state.type = BT_GATT_OTS_OBJECT_IDLE_STATE; in oacp_l2cap_closed() 53 struct bt_ots *ots, in oacp_create_proc_validate() argument 68 if (!BT_OTS_OACP_GET_FEAT_CREATE(ots->features.oacp)) { in oacp_create_proc_validate() 73 err = bt_ots_obj_add_internal(ots, conn, ¶m, &obj); in oacp_create_proc_validate() 81 (void)bt_ots_obj_delete(ots, obj->id); in oacp_create_proc_validate() 88 (void)bt_ots_obj_delete(ots, obj->id); in oacp_create_proc_validate() 95 (void)bt_ots_obj_delete(ots, obj->id); in oacp_create_proc_validate() [all …]
|
| D | ots_olcp.c | 41 struct bt_ots *ots) in olcp_first_proc_execute() argument 46 err = bt_gatt_ots_obj_manager_first_obj_get(ots->obj_manager, in olcp_first_proc_execute() 52 ots->cur_obj = first_obj; in olcp_first_proc_execute() 58 struct bt_ots *ots) in olcp_last_proc_execute() argument 63 err = bt_gatt_ots_obj_manager_last_obj_get(ots->obj_manager, in olcp_last_proc_execute() 69 ots->cur_obj = last_obj; in olcp_last_proc_execute() 75 struct bt_ots *ots) in olcp_prev_proc_execute() argument 80 if (!ots->cur_obj) { in olcp_prev_proc_execute() 83 err = bt_gatt_ots_obj_manager_prev_obj_get(ots->obj_manager, in olcp_prev_proc_execute() 84 ots->cur_obj, in olcp_prev_proc_execute() [all …]
|
| D | ots.c | 124 struct bt_ots *ots = (struct bt_ots *) attr->user_data; in ots_feature_read() local 128 return bt_gatt_attr_read(conn, attr, buf, len, offset, &ots->features, in ots_feature_read() 129 sizeof(ots->features)); in ots_feature_read() 136 struct bt_ots *ots = (struct bt_ots *) attr->user_data; in ots_obj_name_read() local 140 if (!ots->cur_obj) { in ots_obj_name_read() 146 ots->cur_obj->metadata.name, in ots_obj_name_read() 147 strlen(ots->cur_obj->metadata.name)); in ots_obj_name_read() 156 struct bt_ots *ots = (struct bt_ots *) attr->user_data; in ots_obj_name_write() local 163 if (!ots->cur_obj) { in ots_obj_name_write() 169 ots->cur_obj->id == OTS_OBJ_ID_DIR_LIST) { in ots_obj_name_write() [all …]
|
| D | CMakeLists.txt | 5 ots.c
|
| D | ots_internal.h | 141 int bt_ots_obj_add_internal(struct bt_ots *ots, struct bt_conn *conn,
|
| /Zephyr-latest/tests/bluetooth/tester/src/ |
| D | btp_ots.c | 38 static struct bt_ots *ots; variable 118 err = bt_ots_obj_add(ots, ¶m); in register_object() 147 static int ots_obj_created(struct bt_ots *ots, struct bt_conn *conn, uint64_t id, in ots_obj_created() argument 193 static int ots_obj_deleted(struct bt_ots *ots, struct bt_conn *conn, in ots_obj_deleted() argument 211 static void ots_obj_selected(struct bt_ots *ots, struct bt_conn *conn, in ots_obj_selected() argument 217 static ssize_t ots_obj_read(struct bt_ots *ots, struct bt_conn *conn, in ots_obj_read() argument 238 static ssize_t ots_obj_write(struct bt_ots *ots, struct bt_conn *conn, in ots_obj_write() argument 255 static void ots_obj_name_written(struct bt_ots *ots, struct bt_conn *conn, in ots_obj_name_written() argument 261 static int ots_obj_cal_checksum(struct bt_ots *ots, struct bt_conn *conn, uint64_t id, in ots_obj_cal_checksum() argument 301 err = bt_ots_init(ots, &ots_init); in ots_init() [all …]
|
| /Zephyr-latest/samples/bluetooth/peripheral_ots/src/ |
| D | main.c | 71 static int ots_obj_created(struct bt_ots *ots, struct bt_conn *conn, uint64_t id, in ots_obj_created() argument 114 static int ots_obj_deleted(struct bt_ots *ots, struct bt_conn *conn, in ots_obj_deleted() argument 128 static void ots_obj_selected(struct bt_ots *ots, struct bt_conn *conn, in ots_obj_selected() argument 138 static ssize_t ots_obj_read(struct bt_ots *ots, struct bt_conn *conn, in ots_obj_read() argument 170 static ssize_t ots_obj_write(struct bt_ots *ots, struct bt_conn *conn, in ots_obj_write() argument 188 static void ots_obj_name_written(struct bt_ots *ots, struct bt_conn *conn, in ots_obj_name_written() argument 199 static int ots_obj_cal_checksum(struct bt_ots *ots, struct bt_conn *conn, uint64_t id, in ots_obj_cal_checksum() argument 225 struct bt_ots *ots; in ots_init() local 234 ots = bt_ots_free_instance_get(); in ots_init() 235 if (!ots) { in ots_init() [all …]
|
| /Zephyr-latest/include/zephyr/bluetooth/services/ |
| D | ots.h | 624 int (*obj_created)(struct bt_ots *ots, struct bt_conn *conn, uint64_t id, 649 int (*obj_deleted)(struct bt_ots *ots, struct bt_conn *conn, 660 void (*obj_selected)(struct bt_ots *ots, struct bt_conn *conn, 683 ssize_t (*obj_read)(struct bt_ots *ots, struct bt_conn *conn, 713 ssize_t (*obj_write)(struct bt_ots *ots, struct bt_conn *conn, uint64_t id, 729 void (*obj_name_written)(struct bt_ots *ots, struct bt_conn *conn, 747 int (*obj_cal_checksum)(struct bt_ots *ots, struct bt_conn *conn, uint64_t id, 772 int bt_ots_obj_add(struct bt_ots *ots, const struct bt_ots_obj_add_param *param); 786 int bt_ots_obj_delete(struct bt_ots *ots, uint64_t id); 797 void *bt_ots_svc_decl_get(struct bt_ots *ots); [all …]
|
| /Zephyr-latest/subsys/bluetooth/services/ |
| D | Kconfig | 21 rsource "ots/Kconfig"
|
| D | CMakeLists.txt | 17 add_subdirectory(ots)
|
| /Zephyr-latest/subsys/bluetooth/audio/ |
| D | mcs.c | 959 static struct bt_ots *ots; variable 965 return ots; in bt_mcs_get_ots() 1390 ots = bt_ots_free_instance_get(); in bt_mcs_init() 1391 if (!ots) { in bt_mcs_init() 1403 err = bt_ots_init(ots, &ots_init); in bt_mcs_init() 1412 mcs.attrs[i].user_data = bt_ots_svc_decl_get(ots); in bt_mcs_init()
|
| D | mpl.c | 692 static int on_obj_deleted(struct bt_ots *ots, struct bt_conn *conn, in on_obj_deleted() argument 700 static void on_obj_selected(struct bt_ots *ots, struct bt_conn *conn, in on_obj_selected() argument 745 static int on_obj_created(struct bt_ots *ots, struct bt_conn *conn, uint64_t id, in on_obj_created() argument 808 static ssize_t on_object_send(struct bt_ots *ots, struct bt_conn *conn, in on_object_send() argument
|
| /Zephyr-latest/subsys/bluetooth/ |
| D | Kconfig.logging | 545 # OTS (subsys/bluetooth/services/ots/Kconfig)
|
| /Zephyr-latest/doc/connectivity/bluetooth/shell/audio/ |
| D | mcp.rst | 13 The media control server may include an object transfer service (ots)
|
| /Zephyr-latest/doc/security/ |
| D | vulnerabilities.rst | 1775 Bluetooth: ots: missing buffer length check
|
| /Zephyr-latest/doc/releases/ |
| D | release-notes-2.6.rst | 1509 * :github:`33831` - [Coverity CID: 220313] Logically dead code in subsys/bluetooth/services/ots/ots… 1510 … [Coverity CID: 220314] Untrusted value as argument in subsys/bluetooth/services/ots/ots_dir_list.c
|