/Zephyr-latest/tests/bluetooth/common/testlib/src/ |
D | att_write.c | 19 uint8_t att_err; member 25 static void att_write_cb(struct bt_conn *conn, uint8_t att_err, struct bt_gatt_write_params *params) in att_write_cb() argument 32 ctx->att_err = att_err; in att_write_cb() 72 __ASSERT_NO_MSG(ctx->att_err >= 0); in bt_testlib_att_write() 73 return ctx->att_err; in bt_testlib_att_write()
|
D | att_read.c | 21 uint8_t att_err; member 38 static uint8_t att_read_cb(struct bt_conn *conn, uint8_t att_err, in att_read_cb() argument 47 ctx->att_err = att_err; in att_read_cb() 49 if (!att_err && ctx->result_handle) { in att_read_cb() 54 if (!att_err && ctx->result_size) { in att_read_cb() 69 if (!att_err && ctx->att_mtu) { in att_read_cb() 118 __ASSERT_NO_MSG(ctx->att_err >= 0); in bt_testlib_sync_bt_gatt_read() 119 return ctx->att_err; in bt_testlib_sync_bt_gatt_read() 203 uint8_t att_err; member 218 ctx->att_err = attr ? BT_ATT_ERR_SUCCESS : BT_ATT_ERR_ATTRIBUTE_NOT_FOUND; in gatt_discover_service_cb() [all …]
|
/Zephyr-latest/subsys/bluetooth/audio/ |
D | gmap_client.c | 120 static uint8_t bgr_feat_read_cb(struct bt_conn *conn, uint8_t att_err, in bgr_feat_read_cb() argument 125 int err = att_err; in bgr_feat_read_cb() 129 LOG_DBG("conn %p att_err 0x%02x params %p data %p len %u", (void *)conn, att_err, params, in bgr_feat_read_cb() 132 if (data == NULL || att_err != BT_ATT_ERR_SUCCESS || len != sizeof(uint8_t)) { in bgr_feat_read_cb() 133 if (att_err == BT_ATT_ERR_SUCCESS) { in bgr_feat_read_cb() 134 att_err = BT_ATT_ERR_INVALID_ATTRIBUTE_LEN; in bgr_feat_read_cb() 209 static uint8_t bgs_feat_read_cb(struct bt_conn *conn, uint8_t att_err, in bgs_feat_read_cb() argument 214 int err = att_err; in bgs_feat_read_cb() 218 LOG_DBG("conn %p att_err 0x%02x params %p data %p len %u", (void *)conn, att_err, params, in bgs_feat_read_cb() 221 if (data == NULL || att_err != BT_ATT_ERR_SUCCESS || len != sizeof(uint8_t)) { in bgs_feat_read_cb() [all …]
|
D | has_client.c | 417 static void active_index_subscribe_cb(struct bt_conn *conn, uint8_t att_err, in active_index_subscribe_cb() argument 423 LOG_DBG("conn %p att_err 0x%02x params %p", (void *)inst->conn, att_err, params); in active_index_subscribe_cb() 425 if (att_err != BT_ATT_ERR_SUCCESS) { in active_index_subscribe_cb() 429 discover_failed(conn, att_err); in active_index_subscribe_cb() 458 static uint8_t active_index_read_cb(struct bt_conn *conn, uint8_t att_err, in active_index_read_cb() argument 463 int err = att_err; in active_index_read_cb() 465 LOG_DBG("conn %p att_err 0x%02x params %p data %p len %u", (void *)conn, att_err, params, in active_index_read_cb() 468 if (att_err != BT_ATT_ERR_SUCCESS || len == 0) { in active_index_read_cb() 508 static void control_point_subscribe_cb(struct bt_conn *conn, uint8_t att_err, in control_point_subscribe_cb() argument 513 int err = att_err; in control_point_subscribe_cb() [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/ |
D | att.h | 119 const char *bt_att_err_to_str(uint8_t att_err); 121 static inline const char *bt_att_err_to_str(uint8_t att_err) 123 ARG_UNUSED(att_err);
|
/Zephyr-latest/tests/bsim/bluetooth/host/gatt/general/src/ |
D | gatt_client_test.c | 23 static uint8_t att_err; variable 209 att_err = err; in gatt_write_cb() 249 if (att_err != expect_att_err) { in gatt_write() 250 FAIL("Write failed: 0x%02X\n", att_err); in gatt_write() 260 att_err = err; in gatt_read_cb() 343 if (att_err != expect_att_err) { in gatt_read() 344 FAIL("Read failed: 0x%02X\n", att_err); in gatt_read()
|
/Zephyr-latest/tests/bsim/bluetooth/host/security/ccc_update/src/ |
D | central.c | 44 static void gatt_write_cb(struct bt_conn *conn, uint8_t att_err, in gatt_write_cb() argument 47 gatt_write_att_err = att_err; in gatt_write_cb() 49 if (att_err) { in gatt_write_cb() 50 FAIL("GATT write ATT error (err %d)\n", att_err); in gatt_write_cb()
|
/Zephyr-latest/tests/bsim/bluetooth/host/att/retry_on_sec_err/client/ |
D | main.c | 24 static uint8_t gatt_attr_read_cb(struct bt_conn *conn, uint8_t att_err, in gatt_attr_read_cb() argument 27 __ASSERT_NO_MSG(!att_err); in gatt_attr_read_cb()
|
/Zephyr-latest/samples/bluetooth/encrypted_advertising/central/src/ |
D | central_ead.c | 193 static uint8_t gatt_read_cb(struct bt_conn *conn, uint8_t att_err, in gatt_read_cb() argument 196 gatt_read_err = att_err; in gatt_read_cb() 200 if (!att_err) { in gatt_read_cb() 204 LOG_ERR("ATT error (err %d)", att_err); in gatt_read_cb()
|
/Zephyr-latest/subsys/bluetooth/host/ |
D | att.c | 188 const char *bt_att_err_to_str(uint8_t att_err) in bt_att_err_to_str() argument 225 if (att_err < ARRAY_SIZE(first_mapping_table) && first_mapping_table[att_err]) { in bt_att_err_to_str() 226 return first_mapping_table[att_err]; in bt_att_err_to_str() 227 } else if (att_err >= BT_ATT_ERR_WRITE_REQ_REJECTED) { in bt_att_err_to_str() 228 const uint8_t second_index = att_err - BT_ATT_ERR_WRITE_REQ_REJECTED; in bt_att_err_to_str()
|
D | gatt.c | 5307 uint8_t att_err; in gatt_write_ccc_rsp() local 5337 att_err = att_err_from_int(err); in gatt_write_ccc_rsp() 5340 params->subscribe(conn, att_err, params); in gatt_write_ccc_rsp()
|