Lines Matching refs:srv
484 struct bt_vocs_server *srv = CONTAINER_OF(inst, struct bt_vocs_server, vocs); in bt_vocs_state_get() local
486 if (srv->cb && srv->cb->state) { in bt_vocs_state_get()
487 srv->cb->state(inst, 0, srv->state.offset); in bt_vocs_state_get()
507 struct bt_vocs_server *srv = CONTAINER_OF(inst, struct bt_vocs_server, vocs); in bt_vocs_location_get() local
509 if (srv->cb && srv->cb->location) { in bt_vocs_location_get()
510 srv->cb->location(inst, 0, srv->location); in bt_vocs_location_get()
530 struct bt_vocs_server *srv = CONTAINER_OF(inst, struct bt_vocs_server, vocs); in bt_vocs_location_set() local
532 return vocs_write(srv, write_location, &location, sizeof(location)); in bt_vocs_location_set()
550 struct bt_vocs_server *srv = CONTAINER_OF(inst, struct bt_vocs_server, vocs); in bt_vocs_state_set() local
554 cp.counter = srv->state.change_counter; in bt_vocs_state_set()
557 return vocs_write(srv, write_vocs_control, &cp, sizeof(cp)); in bt_vocs_state_set()
575 struct bt_vocs_server *srv = CONTAINER_OF(inst, struct bt_vocs_server, vocs); in bt_vocs_description_get() local
577 if (srv->cb && srv->cb->description) { in bt_vocs_description_get()
578 srv->cb->description(inst, 0, srv->output_desc); in bt_vocs_description_get()
603 struct bt_vocs_server *srv = CONTAINER_OF(inst, struct bt_vocs_server, vocs); in bt_vocs_description_set() local
605 return vocs_write(srv, write_output_desc, description, strlen(description)); in bt_vocs_description_set()