Lines Matching refs:parm
3418 ehci_xfer_setup(struct usb_setup_params *parm) argument
3431 sc = EHCI_BUS2SC(parm->udev->bus);
3432 xfer = parm->curr_xfer;
3442 if (parm->methods == &ehci_device_ctrl_methods) {
3472 parm->hc_max_packet_size = 0x400;
3473 parm->hc_max_packet_count = 1;
3474 parm->hc_max_frame_size = EHCI_QTD_PAYLOAD_MAX;
3478 usbd_transfer_setup_sub(parm);
3484 } else if (parm->methods == &ehci_device_bulk_methods) {
3485 parm->hc_max_packet_size = 0x400;
3486 parm->hc_max_packet_count = 1;
3487 parm->hc_max_frame_size = EHCI_QTD_PAYLOAD_MAX;
3492 usbd_transfer_setup_sub(parm);
3498 } else if (parm->methods == &ehci_device_intr_methods) {
3499 if (parm->speed == USB_SPEED_HIGH) {
3500 parm->hc_max_packet_size = 0x400;
3501 parm->hc_max_packet_count = 3;
3502 } else if (parm->speed == USB_SPEED_FULL) {
3503 parm->hc_max_packet_size = USB_FS_BYTES_PER_HS_UFRAME;
3504 parm->hc_max_packet_count = 1;
3506 parm->hc_max_packet_size = USB_FS_BYTES_PER_HS_UFRAME / 8;
3507 parm->hc_max_packet_count = 1;
3510 parm->hc_max_frame_size = EHCI_QTD_PAYLOAD_MAX;
3515 usbd_transfer_setup_sub(parm);
3521 } else if (parm->methods == &ehci_device_isoc_fs_methods) {
3522 parm->hc_max_packet_size = 0x3FF;
3523 parm->hc_max_packet_count = 1;
3524 parm->hc_max_frame_size = 0x3FF;
3529 usbd_transfer_setup_sub(parm);
3533 } else if (parm->methods == &ehci_device_isoc_hs_methods) {
3534 parm->hc_max_packet_size = 0x400;
3535 parm->hc_max_packet_count = 3;
3536 parm->hc_max_frame_size = 0xC00;
3541 usbd_transfer_setup_sub(parm);
3547 parm->hc_max_packet_size = 0x400;
3548 parm->hc_max_packet_count = 1;
3549 parm->hc_max_frame_size = 0x400;
3551 usbd_transfer_setup_sub(parm);
3556 if (parm->err) {
3565 parm, &pc, sizeof(ehci_itd_t),
3567 parm->err = USB_ERR_NOMEM;
3570 if (parm->buf) {
3593 parm, &pc, sizeof(ehci_sitd_t),
3595 parm->err = USB_ERR_NOMEM;
3598 if (parm->buf) {
3621 parm, &pc, sizeof(ehci_qtd_t),
3623 parm->err = USB_ERR_NOMEM;
3626 if (parm->buf) {
3653 parm, &pc, sizeof(ehci_qh_t),
3655 parm->err = USB_ERR_NOMEM;
3658 if (parm->buf) {