Lines Matching defs:proto
39 #define GET_VAL(p, proto, field) \
40 ((proto) == UAC_VERSION_3 ? (p)->v3.field : (p)->v2.field)
44 u8 type, int proto)
50 if (validator(cs, id, proto))
57 static bool validate_clock_source(void *p, int id, int proto)
61 return GET_VAL(cs, proto, bClockID) == id;
64 static bool validate_clock_selector(void *p, int id, int proto)
68 return GET_VAL(cs, proto, bClockID) == id;
71 static bool validate_clock_multiplier(void *p, int id, int proto)
75 return GET_VAL(cs, proto, bClockID) == id;
79 static obj *name(struct snd_usb_audio *chip, int id, int proto) \
82 proto == UAC_VERSION_3 ? (type3) : (type2), \
83 proto); \
263 int proto = fmt->protocol;
277 source = snd_usb_find_clock_source(chip, entity_id, proto);
279 entity_id = GET_VAL(source, proto, bClockID);
290 selector = snd_usb_find_clock_selector(chip, entity_id, proto);
292 pins = GET_VAL(selector, proto, bNrInPins);
293 clock_id = GET_VAL(selector, proto, bClockID);
294 sources = GET_VAL(selector, proto, baCSourceID);
297 if (proto == UAC_VERSION_3)
394 multiplier = snd_usb_find_clock_multiplier(chip, entity_id, proto);
397 GET_VAL(multiplier, proto, bCSourceID),