Lines Matching refs:notify

69 	ATOMIC_DEFINE(notify, NOTIFY_NUM);
93 static const char *vol_rend_notify_str(enum vol_rend_notify notify) in vol_rend_notify_str() argument
95 switch (notify) { in vol_rend_notify_str()
105 static void notify_work_reschedule(struct bt_vcp_vol_rend *inst, enum vol_rend_notify notify, in notify_work_reschedule() argument
110 atomic_set_bit(inst->notify, notify); in notify_work_reschedule()
114 LOG_ERR("Failed to reschedule %s notification err %d", vol_rend_notify_str(notify), in notify_work_reschedule()
117 LOG_DBG("%s notification scheduled in %dms", vol_rend_notify_str(notify), in notify_work_reschedule()
122 static void notify(struct bt_vcp_vol_rend *inst, enum vol_rend_notify notify, in notify() function
129 notify_work_reschedule(inst, notify, K_USEC(BT_AUDIO_NOTIFY_RETRY_DELAY_US)); in notify()
131 LOG_ERR("Notify %s err %d", vol_rend_notify_str(notify), err); in notify()
140 if (atomic_test_and_clear_bit(inst->notify, NOTIFY_STATE)) { in notify_work_handler()
141 notify(inst, NOTIFY_STATE, BT_UUID_VCS_STATE, &inst->state, sizeof(inst->state)); in notify_work_handler()
145 atomic_test_and_clear_bit(inst->notify, NOTIFY_FLAGS)) { in notify_work_handler()
146 notify(inst, NOTIFY_FLAGS, BT_UUID_VCS_FLAGS, &inst->flags, sizeof(inst->flags)); in notify_work_handler()
150 static void value_changed(struct bt_vcp_vol_rend *inst, enum vol_rend_notify notify) in value_changed() argument
152 notify_work_reschedule(inst, notify, K_NO_WAIT); in value_changed()
161 bool notify = false; in write_vcs_control() local
199 notify = true; in write_vcs_control()
207 notify = true; in write_vcs_control()
215 notify = true; in write_vcs_control()
219 notify = true; in write_vcs_control()
227 notify = true; in write_vcs_control()
231 notify = true; in write_vcs_control()
240 notify = true; in write_vcs_control()
248 notify = true; in write_vcs_control()
255 notify = true; in write_vcs_control()
263 if (notify) { in write_vcs_control()
490 atomic_clear(vol_rend.notify); in bt_vcp_vol_rend_register()