Lines Matching refs:cb

89 			if (inst->cli.cb && inst->cli.cb->state) {  in aics_client_notify_handler()
90 inst->cli.cb->state(inst, 0, state->gain, in aics_client_notify_handler()
99 if (inst->cli.cb && inst->cli.cb->status) { in aics_client_notify_handler()
100 inst->cli.cb->status(inst, 0, *status); in aics_client_notify_handler()
116 if (inst->cli.cb && inst->cli.cb->description) { in aics_client_notify_handler()
117 inst->cli.cb->description(inst, 0, desc); in aics_client_notify_handler()
144 if (inst->cli.cb && inst->cli.cb->state) { in aics_client_read_state_cb()
145 inst->cli.cb->state(inst, cb_err, 0, 0, 0); in aics_client_read_state_cb()
165 if (inst->cli.cb && inst->cli.cb->state) { in aics_client_read_state_cb()
166 inst->cli.cb->state(inst, cb_err, state->gain, in aics_client_read_state_cb()
193 if (inst->cli.cb && inst->cli.cb->gain_setting) { in aics_client_read_gain_settings_cb()
194 inst->cli.cb->gain_setting(inst, cb_err, 0, 0, 0); in aics_client_read_gain_settings_cb()
212 if (inst->cli.cb && inst->cli.cb->gain_setting) { in aics_client_read_gain_settings_cb()
213 inst->cli.cb->gain_setting(inst, cb_err, gain_settings->units, in aics_client_read_gain_settings_cb()
241 if (inst->cli.cb && inst->cli.cb->type) { in aics_client_read_type_cb()
242 inst->cli.cb->type(inst, cb_err, 0); in aics_client_read_type_cb()
259 if (inst->cli.cb && inst->cli.cb->type) { in aics_client_read_type_cb()
260 inst->cli.cb->type(inst, cb_err, *type); in aics_client_read_type_cb()
286 if (inst->cli.cb && inst->cli.cb->status) { in aics_client_read_status_cb()
287 inst->cli.cb->status(inst, cb_err, 0); in aics_client_read_status_cb()
304 if (inst->cli.cb && inst->cli.cb->status) { in aics_client_read_status_cb()
305 inst->cli.cb->status(inst, cb_err, *status); in aics_client_read_status_cb()
313 if (!inst->cli.cb) { in aics_cp_notify_app()
319 if (inst->cli.cb->set_gain) { in aics_cp_notify_app()
320 inst->cli.cb->set_gain(inst, err); in aics_cp_notify_app()
324 if (inst->cli.cb->unmute) { in aics_cp_notify_app()
325 inst->cli.cb->unmute(inst, err); in aics_cp_notify_app()
329 if (inst->cli.cb->mute) { in aics_cp_notify_app()
330 inst->cli.cb->mute(inst, err); in aics_cp_notify_app()
334 if (inst->cli.cb->set_manual_mode) { in aics_cp_notify_app()
335 inst->cli.cb->set_manual_mode(inst, err); in aics_cp_notify_app()
339 if (inst->cli.cb->set_auto_mode) { in aics_cp_notify_app()
340 inst->cli.cb->set_auto_mode(inst, err); in aics_cp_notify_app()
512 if (inst->cli.cb && inst->cli.cb->description) { in aics_client_read_desc_cb()
513 inst->cli.cb->description(inst, cb_err, NULL); in aics_client_read_desc_cb()
536 if (inst->cli.cb && inst->cli.cb->description) { in aics_client_read_desc_cb()
537 inst->cli.cb->description(inst, cb_err, desc); in aics_client_read_desc_cb()
568 if (inst->cli.cb && inst->cli.cb->discover) { in aics_discover_func()
571 inst->cli.cb->discover(inst, err); in aics_discover_func()
635 if (inst->cli.cb && inst->cli.cb->discover) { in aics_discover_func()
636 inst->cli.cb->discover(inst, err); in aics_discover_func()
1058 void bt_aics_client_cb_register(struct bt_aics *inst, struct bt_aics_cb *cb) in bt_aics_client_cb_register() argument
1065 inst->cli.cb = cb; in bt_aics_client_cb_register()