Lines Matching refs:location

399 	uint32_t location = sys_cpu_to_le32(pacs_snk_location);  in snk_loc_read()  local
403 return bt_gatt_attr_read(conn, attr, buf, len, offset, &location, in snk_loc_read()
404 sizeof(location)); in snk_loc_read()
430 static void set_snk_location(enum bt_audio_location location) in set_snk_location() argument
441 enum bt_audio_location location; in snk_loc_write() local
447 if (len != sizeof(location)) { in snk_loc_write()
451 location = (enum bt_audio_location)sys_get_le32(data); in snk_loc_write()
452 if (location > BT_AUDIO_LOCATION_MASK) { in snk_loc_write()
453 LOG_DBG("Invalid location value: 0x%08X", location); in snk_loc_write()
457 set_snk_location(location); in snk_loc_write()
504 uint32_t location = sys_cpu_to_le32(pacs_src_location); in src_loc_read() local
508 return bt_gatt_attr_read(conn, attr, buf, len, offset, &location, in src_loc_read()
509 sizeof(location)); in src_loc_read()
535 static void set_src_location(enum bt_audio_location location) in set_src_location() argument
546 uint32_t location; in src_loc_write() local
552 if (len != sizeof(location)) { in src_loc_write()
556 location = (enum bt_audio_location)sys_get_le32(data); in src_loc_write()
557 if (location > BT_AUDIO_LOCATION_MASK) { in src_loc_write()
558 LOG_DBG("Invalid location value: 0x%08X", location); in src_loc_write()
562 set_src_location(location); in src_loc_write()
1166 int bt_pacs_set_location(enum bt_audio_dir dir, enum bt_audio_location location) in bt_pacs_set_location() argument
1170 set_snk_location(location); in bt_pacs_set_location()
1173 set_src_location(location); in bt_pacs_set_location()