Lines Matching refs:api_err
86 int api_err; in bt_testlib_sync_bt_gatt_read() local
105 api_err = bt_gatt_read(ctx->conn, &ctx->params); in bt_testlib_sync_bt_gatt_read()
107 if (!api_err) { in bt_testlib_sync_bt_gatt_read()
113 if (api_err) { in bt_testlib_sync_bt_gatt_read()
114 __ASSERT_NO_MSG(api_err < 0); in bt_testlib_sync_bt_gatt_read()
115 return api_err; in bt_testlib_sync_bt_gatt_read()
247 int api_err; in bt_testlib_gatt_discover_primary() local
272 api_err = bt_gatt_discover(conn, &ctx->params); in bt_testlib_gatt_discover_primary()
274 if (!api_err) { in bt_testlib_gatt_discover_primary()
280 if (api_err) { in bt_testlib_gatt_discover_primary()
281 __ASSERT_NO_MSG(api_err < 0); in bt_testlib_gatt_discover_primary()
282 return api_err; in bt_testlib_gatt_discover_primary()
347 int api_err; in bt_testlib_gatt_discover_characteristic() local
379 api_err = bt_gatt_discover(conn, &ctx->params); in bt_testlib_gatt_discover_characteristic()
381 if (!api_err) { in bt_testlib_gatt_discover_characteristic()
387 if (api_err) { in bt_testlib_gatt_discover_characteristic()
388 __ASSERT_NO_MSG(api_err < 0); in bt_testlib_gatt_discover_characteristic()
389 return api_err; in bt_testlib_gatt_discover_characteristic()