Lines Matching full:entity
375 * @brief Helper function for checking if particular entity is a part of
378 * This function checks if given entity is a part of given audio device.
383 * descriptors are known and are not using any other entity type.
388 * @param [in, out] entity USB Audio entity.
389 * .id [in] id of searched entity
390 * .subtype [out] subtype of entity (if found)
392 * @return true if entity matched audio_dev_data, false otherwise.
395 struct usb_audio_entity *entity) in is_entity_valid() argument
404 if (fu->bUnitID == entity->id) { in is_entity_valid()
405 entity->subtype = fu->bDescriptorSubtype; in is_entity_valid()
414 if (fu->bUnitID == entity->id) { in is_entity_valid()
415 entity->subtype = fu->bDescriptorSubtype; in is_entity_valid()
424 * @brief Helper function for getting the audio_dev_data by the entity number.
427 * entity number and return the audio_dev_data structure for this entity.
429 * @param [in, out] entity USB Audio entity addressed by the request.
430 * .id [in] id of searched entity
431 * .subtype [out] subtype of entity (if found)
433 * @return audio_dev_data for given entity, NULL if not found.
436 struct usb_audio_entity *entity) in get_audio_dev_data_by_entity() argument
446 if (is_entity_valid(audio_dev_data, entity)) { in get_audio_dev_data_by_entity()
717 struct usb_audio_entity entity; in handle_interface_req() local
722 entity.id = entity_id; in handle_interface_req()
731 * entity is addressed. Because of that there is a need to obtain in handle_interface_req()
732 * this information from the device descriptor using entity id. in handle_interface_req()
734 audio_dev_data = get_audio_dev_data_by_entity(&entity); in handle_interface_req()
737 LOG_ERR("Device data not found for entity %u", entity.id); in handle_interface_req()
741 switch (entity.subtype) { in handle_interface_req()