• Home
  • Raw
  • Download

Lines Matching refs:desc

267 static inline __u8 uac_mixer_unit_bNrChannels(struct uac_mixer_unit_descriptor *desc)  in uac_mixer_unit_bNrChannels()  argument
269 return desc->baSourceID[desc->bNrInPins]; in uac_mixer_unit_bNrChannels()
272 static inline __u32 uac_mixer_unit_wChannelConfig(struct uac_mixer_unit_descriptor *desc, in uac_mixer_unit_wChannelConfig() argument
276 return (desc->baSourceID[desc->bNrInPins + 2] << 8) | in uac_mixer_unit_wChannelConfig()
277 desc->baSourceID[desc->bNrInPins + 1]; in uac_mixer_unit_wChannelConfig()
279 return (desc->baSourceID[desc->bNrInPins + 4] << 24) | in uac_mixer_unit_wChannelConfig()
280 (desc->baSourceID[desc->bNrInPins + 3] << 16) | in uac_mixer_unit_wChannelConfig()
281 (desc->baSourceID[desc->bNrInPins + 2] << 8) | in uac_mixer_unit_wChannelConfig()
282 (desc->baSourceID[desc->bNrInPins + 1]); in uac_mixer_unit_wChannelConfig()
285 static inline __u8 uac_mixer_unit_iChannelNames(struct uac_mixer_unit_descriptor *desc, in uac_mixer_unit_iChannelNames() argument
289 desc->baSourceID[desc->bNrInPins + 3] : in uac_mixer_unit_iChannelNames()
290 desc->baSourceID[desc->bNrInPins + 5]; in uac_mixer_unit_iChannelNames()
293 static inline __u8 *uac_mixer_unit_bmControls(struct uac_mixer_unit_descriptor *desc, in uac_mixer_unit_bmControls() argument
298 return &desc->baSourceID[desc->bNrInPins + 4]; in uac_mixer_unit_bmControls()
300 return &desc->baSourceID[desc->bNrInPins + 6]; in uac_mixer_unit_bmControls()
302 return &desc->baSourceID[desc->bNrInPins + 2]; in uac_mixer_unit_bmControls()
308 static inline __u16 uac3_mixer_unit_wClusterDescrID(struct uac_mixer_unit_descriptor *desc) in uac3_mixer_unit_wClusterDescrID() argument
310 return (desc->baSourceID[desc->bNrInPins + 1] << 8) | in uac3_mixer_unit_wClusterDescrID()
311 desc->baSourceID[desc->bNrInPins]; in uac3_mixer_unit_wClusterDescrID()
314 static inline __u8 uac_mixer_unit_iMixer(struct uac_mixer_unit_descriptor *desc) in uac_mixer_unit_iMixer() argument
316 __u8 *raw = (__u8 *) desc; in uac_mixer_unit_iMixer()
317 return raw[desc->bLength - 1]; in uac_mixer_unit_iMixer()
330 static inline __u8 uac_selector_unit_iSelector(struct uac_selector_unit_descriptor *desc) in uac_selector_unit_iSelector() argument
332 __u8 *raw = (__u8 *) desc; in uac_selector_unit_iSelector()
333 return raw[desc->bLength - 1]; in uac_selector_unit_iSelector()
347 static inline __u8 uac_feature_unit_iFeature(struct uac_feature_unit_descriptor *desc) in uac_feature_unit_iFeature() argument
349 __u8 *raw = (__u8 *) desc; in uac_feature_unit_iFeature()
350 return raw[desc->bLength - 1]; in uac_feature_unit_iFeature()
364 static inline __u8 uac_processing_unit_bNrChannels(struct uac_processing_unit_descriptor *desc) in uac_processing_unit_bNrChannels() argument
366 return desc->baSourceID[desc->bNrInPins]; in uac_processing_unit_bNrChannels()
369 static inline __u32 uac_processing_unit_wChannelConfig(struct uac_processing_unit_descriptor *desc, in uac_processing_unit_wChannelConfig() argument
373 return (desc->baSourceID[desc->bNrInPins + 2] << 8) | in uac_processing_unit_wChannelConfig()
374 desc->baSourceID[desc->bNrInPins + 1]; in uac_processing_unit_wChannelConfig()
376 return (desc->baSourceID[desc->bNrInPins + 4] << 24) | in uac_processing_unit_wChannelConfig()
377 (desc->baSourceID[desc->bNrInPins + 3] << 16) | in uac_processing_unit_wChannelConfig()
378 (desc->baSourceID[desc->bNrInPins + 2] << 8) | in uac_processing_unit_wChannelConfig()
379 (desc->baSourceID[desc->bNrInPins + 1]); in uac_processing_unit_wChannelConfig()
382 static inline __u8 uac_processing_unit_iChannelNames(struct uac_processing_unit_descriptor *desc, in uac_processing_unit_iChannelNames() argument
386 desc->baSourceID[desc->bNrInPins + 3] : in uac_processing_unit_iChannelNames()
387 desc->baSourceID[desc->bNrInPins + 5]; in uac_processing_unit_iChannelNames()
390 static inline __u8 uac_processing_unit_bControlSize(struct uac_processing_unit_descriptor *desc, in uac_processing_unit_bControlSize() argument
395 return desc->baSourceID[desc->bNrInPins + 4]; in uac_processing_unit_bControlSize()
405 static inline __u8 *uac_processing_unit_bmControls(struct uac_processing_unit_descriptor *desc, in uac_processing_unit_bmControls() argument
410 return &desc->baSourceID[desc->bNrInPins + 5]; in uac_processing_unit_bmControls()
412 return &desc->baSourceID[desc->bNrInPins + 6]; in uac_processing_unit_bmControls()
414 return &desc->baSourceID[desc->bNrInPins + 2]; in uac_processing_unit_bmControls()
420 static inline __u8 uac_processing_unit_iProcessing(struct uac_processing_unit_descriptor *desc, in uac_processing_unit_iProcessing() argument
423 __u8 control_size = uac_processing_unit_bControlSize(desc, protocol); in uac_processing_unit_iProcessing()
429 return *(uac_processing_unit_bmControls(desc, protocol) in uac_processing_unit_iProcessing()
436 static inline __u8 *uac_processing_unit_specific(struct uac_processing_unit_descriptor *desc, in uac_processing_unit_specific() argument
439 __u8 control_size = uac_processing_unit_bControlSize(desc, protocol); in uac_processing_unit_specific()
445 return uac_processing_unit_bmControls(desc, protocol) in uac_processing_unit_specific()
448 return uac_processing_unit_bmControls(desc, protocol) in uac_processing_unit_specific()
459 static inline __u8 uac_extension_unit_bControlSize(struct uac_processing_unit_descriptor *desc, in uac_extension_unit_bControlSize() argument
464 return desc->baSourceID[desc->bNrInPins + 4]; in uac_extension_unit_bControlSize()
474 static inline __u8 uac_extension_unit_iExtension(struct uac_processing_unit_descriptor *desc, in uac_extension_unit_iExtension() argument
477 __u8 control_size = uac_extension_unit_bControlSize(desc, protocol); in uac_extension_unit_iExtension()
483 return *(uac_processing_unit_bmControls(desc, protocol) in uac_extension_unit_iExtension()