Lines Matching refs:desc
257 static inline __u8 uac_mixer_unit_bNrChannels(struct uac_mixer_unit_descriptor *desc) in uac_mixer_unit_bNrChannels() argument
259 return desc->baSourceID[desc->bNrInPins]; in uac_mixer_unit_bNrChannels()
262 static inline __u32 uac_mixer_unit_wChannelConfig(struct uac_mixer_unit_descriptor *desc, in uac_mixer_unit_wChannelConfig() argument
266 return (desc->baSourceID[desc->bNrInPins + 2] << 8) | in uac_mixer_unit_wChannelConfig()
267 desc->baSourceID[desc->bNrInPins + 1]; in uac_mixer_unit_wChannelConfig()
269 return (desc->baSourceID[desc->bNrInPins + 4] << 24) | in uac_mixer_unit_wChannelConfig()
270 (desc->baSourceID[desc->bNrInPins + 3] << 16) | in uac_mixer_unit_wChannelConfig()
271 (desc->baSourceID[desc->bNrInPins + 2] << 8) | in uac_mixer_unit_wChannelConfig()
272 (desc->baSourceID[desc->bNrInPins + 1]); in uac_mixer_unit_wChannelConfig()
275 static inline __u8 uac_mixer_unit_iChannelNames(struct uac_mixer_unit_descriptor *desc, in uac_mixer_unit_iChannelNames() argument
279 desc->baSourceID[desc->bNrInPins + 3] : in uac_mixer_unit_iChannelNames()
280 desc->baSourceID[desc->bNrInPins + 5]; in uac_mixer_unit_iChannelNames()
283 static inline __u8 *uac_mixer_unit_bmControls(struct uac_mixer_unit_descriptor *desc, in uac_mixer_unit_bmControls() argument
287 &desc->baSourceID[desc->bNrInPins + 4] : in uac_mixer_unit_bmControls()
288 &desc->baSourceID[desc->bNrInPins + 6]; in uac_mixer_unit_bmControls()
291 static inline __u8 uac_mixer_unit_iMixer(struct uac_mixer_unit_descriptor *desc) in uac_mixer_unit_iMixer() argument
293 __u8 *raw = (__u8 *) desc; in uac_mixer_unit_iMixer()
294 return raw[desc->bLength - 1]; in uac_mixer_unit_iMixer()
307 static inline __u8 uac_selector_unit_iSelector(struct uac_selector_unit_descriptor *desc) in uac_selector_unit_iSelector() argument
309 __u8 *raw = (__u8 *) desc; in uac_selector_unit_iSelector()
310 return raw[desc->bLength - 1]; in uac_selector_unit_iSelector()
324 static inline __u8 uac_feature_unit_iFeature(struct uac_feature_unit_descriptor *desc) in uac_feature_unit_iFeature() argument
326 __u8 *raw = (__u8 *) desc; in uac_feature_unit_iFeature()
327 return raw[desc->bLength - 1]; in uac_feature_unit_iFeature()
341 static inline __u8 uac_processing_unit_bNrChannels(struct uac_processing_unit_descriptor *desc) in uac_processing_unit_bNrChannels() argument
343 return desc->baSourceID[desc->bNrInPins]; in uac_processing_unit_bNrChannels()
346 static inline __u32 uac_processing_unit_wChannelConfig(struct uac_processing_unit_descriptor *desc, in uac_processing_unit_wChannelConfig() argument
350 return (desc->baSourceID[desc->bNrInPins + 2] << 8) | in uac_processing_unit_wChannelConfig()
351 desc->baSourceID[desc->bNrInPins + 1]; in uac_processing_unit_wChannelConfig()
353 return (desc->baSourceID[desc->bNrInPins + 4] << 24) | in uac_processing_unit_wChannelConfig()
354 (desc->baSourceID[desc->bNrInPins + 3] << 16) | in uac_processing_unit_wChannelConfig()
355 (desc->baSourceID[desc->bNrInPins + 2] << 8) | in uac_processing_unit_wChannelConfig()
356 (desc->baSourceID[desc->bNrInPins + 1]); in uac_processing_unit_wChannelConfig()
359 static inline __u8 uac_processing_unit_iChannelNames(struct uac_processing_unit_descriptor *desc, in uac_processing_unit_iChannelNames() argument
363 desc->baSourceID[desc->bNrInPins + 3] : in uac_processing_unit_iChannelNames()
364 desc->baSourceID[desc->bNrInPins + 5]; in uac_processing_unit_iChannelNames()
367 static inline __u8 uac_processing_unit_bControlSize(struct uac_processing_unit_descriptor *desc, in uac_processing_unit_bControlSize() argument
371 desc->baSourceID[desc->bNrInPins + 4] : in uac_processing_unit_bControlSize()
372 desc->baSourceID[desc->bNrInPins + 6]; in uac_processing_unit_bControlSize()
375 static inline __u8 *uac_processing_unit_bmControls(struct uac_processing_unit_descriptor *desc, in uac_processing_unit_bmControls() argument
379 &desc->baSourceID[desc->bNrInPins + 5] : in uac_processing_unit_bmControls()
380 &desc->baSourceID[desc->bNrInPins + 7]; in uac_processing_unit_bmControls()
383 static inline __u8 uac_processing_unit_iProcessing(struct uac_processing_unit_descriptor *desc, in uac_processing_unit_iProcessing() argument
386 __u8 control_size = uac_processing_unit_bControlSize(desc, protocol); in uac_processing_unit_iProcessing()
387 return *(uac_processing_unit_bmControls(desc, protocol) in uac_processing_unit_iProcessing()
391 static inline __u8 *uac_processing_unit_specific(struct uac_processing_unit_descriptor *desc, in uac_processing_unit_specific() argument
394 __u8 control_size = uac_processing_unit_bControlSize(desc, protocol); in uac_processing_unit_specific()
395 return uac_processing_unit_bmControls(desc, protocol) in uac_processing_unit_specific()