Lines Matching refs:sc
1332 struct gatt_sc *sc = CONTAINER_OF(dwork, struct gatt_sc, work); in sc_process() local
1335 __ASSERT(!atomic_test_bit(sc->flags, SC_INDICATE_PENDING), in sc_process()
1338 LOG_DBG("start 0x%04x end 0x%04x", sc->start, sc->end); in sc_process()
1340 sc_range[0] = sys_cpu_to_le16(sc->start); in sc_process()
1341 sc_range[1] = sys_cpu_to_le16(sc->end); in sc_process()
1343 atomic_clear_bit(sc->flags, SC_RANGE_CHANGED); in sc_process()
1344 sc->start = 0U; in sc_process()
1345 sc->end = 0U; in sc_process()
1347 sc->params.attr = &_1_gatt_svc.attrs[2]; in sc_process()
1348 sc->params.func = sc_indicate_rsp; in sc_process()
1349 sc->params.data = &sc_range[0]; in sc_process()
1350 sc->params.len = sizeof(sc_range); in sc_process()
1352 sc->params.chan_opt = BT_ATT_CHAN_OPT_NONE; in sc_process()
1355 if (bt_gatt_indicate(NULL, &sc->params)) { in sc_process()
1360 atomic_set_bit(sc->flags, SC_INDICATE_PENDING); in sc_process()
2748 struct sc_data *sc; in notify_cb() local
2750 sc = (struct sc_data *)data->ind_params->data; in notify_cb()
2752 sys_le16_to_cpu(sc->start), in notify_cb()
2753 sys_le16_to_cpu(sc->end)); in notify_cb()
6238 BT_SETTINGS_DEFINE(sc, "sc", sc_set, sc_commit);