Lines Matching refs:setup

60 #define CONTROL_ATTRIBUTE(setup)	(setup->bRequest)  argument
61 #define CONTROL_ENTITY_ID(setup) ((setup->wIndex & 0xFF00) >> 8) argument
62 #define CONTROL_SELECTOR(setup) ((setup->wValue & 0xFF00) >> 8) argument
63 #define CONTROL_CHANNEL_NUMBER(setup) (setup->wValue & 0x00FF) argument
582 const struct usb_setup_packet *const setup, in get_clock_source_request() argument
588 const uint32_t clock_id = CONTROL_ENTITY_ID(setup); in get_clock_source_request()
592 if (CONTROL_CHANNEL_NUMBER(setup) != 0) { in get_clock_source_request()
594 CONTROL_CHANNEL_NUMBER(setup)); in get_clock_source_request()
601 if (CONTROL_SELECTOR(setup) == CS_SAM_FREQ_CONTROL) { in get_clock_source_request()
602 if (CONTROL_ATTRIBUTE(setup) == CUR) { in get_clock_source_request()
604 layout3_cur_response(buf, setup->wLength, in get_clock_source_request()
614 layout3_cur_response(buf, setup->wLength, hz); in get_clock_source_request()
617 } else if (CONTROL_ATTRIBUTE(setup) == RANGE) { in get_clock_source_request()
618 layout3_range_response(buf, setup->wLength, frequencies, in get_clock_source_request()
624 CONTROL_SELECTOR(setup)); in get_clock_source_request()
632 const struct usb_setup_packet *const setup, in set_clock_source_request() argument
638 const uint32_t clock_id = CONTROL_ENTITY_ID(setup); in set_clock_source_request()
642 if (CONTROL_CHANNEL_NUMBER(setup) != 0) { in set_clock_source_request()
644 CONTROL_CHANNEL_NUMBER(setup)); in set_clock_source_request()
651 if (CONTROL_SELECTOR(setup) == CS_SAM_FREQ_CONTROL) { in set_clock_source_request()
652 if (CONTROL_ATTRIBUTE(setup) == CUR) { in set_clock_source_request()
684 CONTROL_SELECTOR(setup)); in set_clock_source_request()
692 const struct usb_setup_packet *const setup, in uac2_control_to_dev() argument
697 if (CONTROL_ATTRIBUTE(setup) != CUR) { in uac2_control_to_dev()
702 if (setup->bmRequestType == SET_CLASS_REQUEST_TYPE) { in uac2_control_to_dev()
703 entity_type = id_type(c_data, CONTROL_ENTITY_ID(setup)); in uac2_control_to_dev()
705 return set_clock_source_request(c_data, setup, buf); in uac2_control_to_dev()
714 const struct usb_setup_packet *const setup, in uac2_control_to_host() argument
719 if ((CONTROL_ATTRIBUTE(setup) != CUR) && in uac2_control_to_host()
720 (CONTROL_ATTRIBUTE(setup) != RANGE)) { in uac2_control_to_host()
725 if (setup->bmRequestType == GET_CLASS_REQUEST_TYPE) { in uac2_control_to_host()
726 entity_type = id_type(c_data, CONTROL_ENTITY_ID(setup)); in uac2_control_to_host()
728 return get_clock_source_request(c_data, setup, buf); in uac2_control_to_host()