Lines Matching refs:params
23 struct bt_gatt_read_params params; member
33 static bool bt_gatt_read_params_is_by_uuid(const struct bt_gatt_read_params *params) in bt_gatt_read_params_is_by_uuid() argument
35 return params->handle_count == 0; in bt_gatt_read_params_is_by_uuid()
39 struct bt_gatt_read_params *params, const void *read_data, in att_read_cb() argument
43 CONTAINER_OF(params, struct bt_testlib_att_read_closure, params); in att_read_cb()
50 __ASSERT_NO_MSG(bt_gatt_read_params_is_by_uuid(params)); in att_read_cb()
51 *ctx->result_handle = params->by_uuid.start_handle; in att_read_cb()
70 *ctx->att_mtu = params->_att_mtu; in att_read_cb()
97 ctx->params.func = att_read_cb; in bt_testlib_sync_bt_gatt_read()
105 api_err = bt_gatt_read(ctx->conn, &ctx->params); in bt_testlib_sync_bt_gatt_read()
133 .params = { in bt_testlib_att_read_by_type_sync()
139 IF_ENABLED(CONFIG_BT_EATT, ({ ctx.params.chan_opt = bearer; })) in bt_testlib_att_read_by_type_sync()
157 ctx.params.handle_count = 1; in bt_testlib_att_read_by_handle_sync()
158 ctx.params.single.handle = handle; in bt_testlib_att_read_by_handle_sync()
159 ctx.params.single.offset = offset; in bt_testlib_att_read_by_handle_sync()
162 IF_ENABLED(CONFIG_BT_EATT, (ctx.params.chan_opt = bearer)); in bt_testlib_att_read_by_handle_sync()
181 ctx.long_read = true, ctx.params.handle_count = 1; in bt_testlib_gatt_long_read()
182 ctx.params.single.handle = handle; in bt_testlib_gatt_long_read()
183 ctx.params.single.offset = offset; in bt_testlib_gatt_long_read()
186 IF_ENABLED(CONFIG_BT_EATT, (ctx.params.chan_opt = bearer)); in bt_testlib_gatt_long_read()
202 struct bt_gatt_discover_params params; member
211 struct bt_gatt_discover_params *params) in gatt_discover_service_cb() argument
214 CONTAINER_OF(params, struct bt_testlib_gatt_discover_service_closure, params); in gatt_discover_service_cb()
228 if (params->type == BT_GATT_DISCOVER_PRIMARY || in gatt_discover_service_cb()
229 params->type == BT_GATT_DISCOVER_SECONDARY) { in gatt_discover_service_cb()
252 .params = { in bt_testlib_gatt_discover_primary()
272 api_err = bt_gatt_discover(conn, &ctx->params); in bt_testlib_gatt_discover_primary()
289 struct bt_gatt_discover_params params; member
300 struct bt_gatt_discover_params *params) in gatt_discover_char_cb() argument
303 CONTAINER_OF(params, struct bt_testlib_gatt_discover_char_closure, params); in gatt_discover_char_cb()
359 .params = { in bt_testlib_gatt_discover_characteristic()
379 api_err = bt_gatt_discover(conn, &ctx->params); in bt_testlib_gatt_discover_characteristic()