Lines Matching refs:ccc_handle
1879 static struct bt_gatt_subscribe_params *find_subscription(uint16_t ccc_handle) in find_subscription() argument
1882 if (subscriptions[i].ccc_handle == ccc_handle) { in find_subscription()
1980 static int enable_subscription(struct bt_conn *conn, uint16_t ccc_handle, in enable_subscription() argument
1998 discover_params.end_handle = ccc_handle; in enable_subscription()
2003 subscription->ccc_handle = ccc_handle; in enable_subscription()
2013 static int disable_subscription(struct bt_conn *conn, uint16_t ccc_handle) in disable_subscription() argument
2018 subscription = find_subscription(ccc_handle); in disable_subscription()
2038 uint16_t ccc_handle = sys_le16_to_cpu(cp->ccc_handle); in config_subscription_notif() local
2048 if (enable_subscription(conn, ccc_handle, BT_GATT_CCC_NOTIFY) == 0) { in config_subscription_notif()
2055 if (disable_subscription(conn, ccc_handle) < 0) { in config_subscription_notif()
2073 uint16_t ccc_handle = sys_le16_to_cpu(cp->ccc_handle); in config_subscription_ind() local
2083 if (enable_subscription(conn, ccc_handle, BT_GATT_CCC_INDICATE) == 0) { in config_subscription_ind()
2090 if (disable_subscription(conn, ccc_handle) < 0) { in config_subscription_ind()