Lines Matching refs:notify

65 static const char *vocs_notify_str(enum bt_vocs_notify notify)  in vocs_notify_str()  argument
67 switch (notify) { in vocs_notify_str()
79 static void notify_work_reschedule(struct bt_vocs_server *inst, enum bt_vocs_notify notify, in notify_work_reschedule() argument
84 atomic_set_bit(inst->notify, notify); in notify_work_reschedule()
89 vocs_notify_str(notify), err); in notify_work_reschedule()
93 static void notify(struct bt_vocs_server *inst, enum bt_vocs_notify notify, in notify() argument
100 notify_work_reschedule(inst, notify, K_USEC(BT_AUDIO_NOTIFY_RETRY_DELAY_US)); in notify()
102 LOG_ERR("Notify %s err %d", vocs_notify_str(notify), err); in notify()
111 if (atomic_test_and_clear_bit(inst->notify, NOTIFY_STATE)) { in notify_work_handler()
112 notify(inst, NOTIFY_STATE, BT_UUID_VOCS_STATE, &inst->state, sizeof(inst->state)); in notify_work_handler()
115 if (atomic_test_and_clear_bit(inst->notify, NOTIFY_LOCATION)) { in notify_work_handler()
116 notify(inst, NOTIFY_LOCATION, BT_UUID_VOCS_LOCATION, &inst->location, in notify_work_handler()
120 if (atomic_test_and_clear_bit(inst->notify, NOTIFY_OUTPUT_DESC)) { in notify_work_handler()
121 notify(inst, NOTIFY_OUTPUT_DESC, BT_UUID_VOCS_DESCRIPTION, &inst->output_desc, in notify_work_handler()
126 static void value_changed(struct bt_vocs_server *inst, enum bt_vocs_notify notify) in value_changed() argument
128 notify_work_reschedule(inst, notify, K_NO_WAIT); in value_changed()
185 bool notify = false; in write_vocs_control() local
221 notify = true; in write_vocs_control()
228 if (notify) { in write_vocs_control()
464 atomic_clear(inst->notify); in bt_vocs_register()