Lines Matching refs:set_lock
73 uint8_t set_lock; member
326 LOG_DBG("%u", svc_inst->set_lock); in read_set_lock()
329 &svc_inst->set_lock, in read_set_lock()
330 sizeof(svc_inst->set_lock)); in read_set_lock()
343 static uint8_t set_lock(struct bt_conn *conn, in set_lock() function
353 if (svc_inst->set_lock == BT_CSIP_LOCK_VALUE) { in set_lock()
365 notify = svc_inst->set_lock != val; in set_lock()
367 svc_inst->set_lock = val; in set_lock()
368 if (svc_inst->set_lock == BT_CSIP_LOCK_VALUE) { in set_lock()
381 LOG_DBG("%u", svc_inst->set_lock); in set_lock()
392 bool locked = svc_inst->set_lock == BT_CSIP_LOCK_VALUE; in set_lock()
418 res = set_lock(conn, svc_inst, val); in write_set_lock()
455 svc_inst->set_lock = BT_CSIP_RELEASE_VALUE; in set_lock_timer_handler()
459 bool locked = svc_inst->set_lock == BT_CSIP_LOCK_VALUE; in set_lock_timer_handler()
500 svc_inst->set_lock = BT_CSIP_RELEASE_VALUE; in handle_csip_disconnect()
504 bool locked = svc_inst->set_lock == BT_CSIP_LOCK_VALUE; in handle_csip_disconnect()
774 notify(svc_inst, conn, BT_UUID_CSIS_SET_LOCK, &svc_inst->set_lock, in notify_cb()
775 sizeof(svc_inst->set_lock)); in notify_cb()
877 inst->set_lock = BT_CSIP_RELEASE_VALUE; in bt_csip_set_member_register()
969 svc_inst->set_lock = BT_CSIP_RELEASE_VALUE; in bt_csip_set_member_lock()
976 err = set_lock(NULL, svc_inst, lock_val); in bt_csip_set_member_lock()