Lines Matching refs:params

318 static uint8_t notify_handler(struct bt_conn *conn, struct bt_gatt_subscribe_params *params,  in notify_handler()  argument
321 LOG_DBG("conn %p params %p data %p length %u", (void *)conn, params, data, length); in notify_handler()
323 if (params == &features_sub) { in notify_handler()
331 } else if (params == &active_preset_index_sub) { in notify_handler()
339 } else if (params == &control_point_sub) { in notify_handler()
408 static void subscribe_cb(struct bt_conn *conn, uint8_t err, struct bt_gatt_subscribe_params *params) in subscribe_cb() argument
416 if (params == &features_sub) { in subscribe_cb()
421 if (params == &control_point_sub) { in subscribe_cb()
426 if (params == &active_preset_index_sub) { in subscribe_cb()
433 struct bt_gatt_discover_params *params) in discover_features_cb() argument
440 (void)memset(params, 0, sizeof(*params)); in discover_features_cb()
444 if (!bt_uuid_cmp(params->uuid, BT_UUID_HAS_HEARING_AID_FEATURES)) { in discover_features_cb()
457 } else if (!bt_uuid_cmp(params->uuid, BT_UUID_GATT_CCC)) { in discover_features_cb()
499 struct bt_gatt_discover_params *params) in discover_active_preset_index_cb() argument
506 (void)memset(params, 0, sizeof(*params)); in discover_active_preset_index_cb()
510 if (!bt_uuid_cmp(params->uuid, BT_UUID_HAS_ACTIVE_PRESET_INDEX)) { in discover_active_preset_index_cb()
523 } else if (!bt_uuid_cmp(params->uuid, BT_UUID_GATT_CCC)) { in discover_active_preset_index_cb()
564 struct bt_gatt_discover_params *params) in discover_control_point_cb() argument
571 (void)memset(params, 0, sizeof(*params)); in discover_control_point_cb()
575 if (!bt_uuid_cmp(params->uuid, BT_UUID_HAS_PRESET_CONTROL_POINT)) { in discover_control_point_cb()
588 } else if (!bt_uuid_cmp(params->uuid, BT_UUID_GATT_CCC)) { in discover_control_point_cb()