Lines Matching refs:cr
1253 in_rq_cur(struct usb_function *fn, const struct usb_ctrlrequest *cr) in in_rq_cur() argument
1259 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_cur()
1260 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_cur()
1261 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_cur()
1294 in_rq_range(struct usb_function *fn, const struct usb_ctrlrequest *cr) in in_rq_range() argument
1300 u16 w_length = le16_to_cpu(cr->wLength); in in_rq_range()
1301 u16 w_index = le16_to_cpu(cr->wIndex); in in_rq_range()
1302 u16 w_value = le16_to_cpu(cr->wValue); in in_rq_range()
1337 ac_rq_in(struct usb_function *fn, const struct usb_ctrlrequest *cr) in ac_rq_in() argument
1339 if (cr->bRequest == UAC2_CS_CUR) in ac_rq_in()
1340 return in_rq_cur(fn, cr); in ac_rq_in()
1341 else if (cr->bRequest == UAC2_CS_RANGE) in ac_rq_in()
1342 return in_rq_range(fn, cr); in ac_rq_in()
1348 out_rq_cur(struct usb_function *fn, const struct usb_ctrlrequest *cr) in out_rq_cur() argument
1350 u16 w_length = le16_to_cpu(cr->wLength); in out_rq_cur()
1351 u16 w_value = le16_to_cpu(cr->wValue); in out_rq_cur()
1361 setup_rq_inf(struct usb_function *fn, const struct usb_ctrlrequest *cr) in setup_rq_inf() argument
1365 u16 w_index = le16_to_cpu(cr->wIndex); in setup_rq_inf()
1374 if (cr->bRequestType & USB_DIR_IN) in setup_rq_inf()
1375 return ac_rq_in(fn, cr); in setup_rq_inf()
1376 else if (cr->bRequest == UAC2_CS_CUR) in setup_rq_inf()
1377 return out_rq_cur(fn, cr); in setup_rq_inf()
1383 afunc_setup(struct usb_function *fn, const struct usb_ctrlrequest *cr) in afunc_setup() argument
1389 u16 w_length = le16_to_cpu(cr->wLength); in afunc_setup()
1393 if ((cr->bRequestType & USB_TYPE_MASK) != USB_TYPE_CLASS) in afunc_setup()
1396 if ((cr->bRequestType & USB_RECIP_MASK) == USB_RECIP_INTERFACE) in afunc_setup()
1397 value = setup_rq_inf(fn, cr); in afunc_setup()