Lines Matching refs:ptd
531 u32 payload, struct ptd *ptd)
608 memset(ptd, 0, sizeof(*ptd));
610 ptd->dw0 = cpu_to_le32(dw0);
611 ptd->dw1 = cpu_to_le32(dw1);
612 ptd->dw2 = cpu_to_le32(dw2);
613 ptd->dw3 = cpu_to_le32(dw3);
618 u32 payload, struct ptd *ptd)
646 ptd->dw5 = cpu_to_le32(0x1c);
673 ptd->dw2 |= cpu_to_le32(period);
674 ptd->dw4 = cpu_to_le32(usof);
679 u32 payload, struct ptd *ptd)
681 transform_into_atl(priv, qh, qtd, urb, payload, ptd);
682 transform_add_int(priv, qh, qtd, urb, payload, ptd);
703 static int check_error(struct ptd *ptd)
708 dw3 = le32_to_cpu(ptd->dw3);
719 (le32_to_cpu(ptd->dw2) >> 25) & 0xf);
774 struct ptd ptd;
777 transform_into_atl(priv, qh, qtd, urb, payload, &ptd);
778 priv_write_copy(priv, (u32 *)&ptd, hcd->regs + atl_regs, sizeof(ptd));
794 struct ptd ptd;
797 transform_into_int(priv, qh, qtd, urb, payload, &ptd);
798 priv_write_copy(priv, (u32 *)&ptd, hcd->regs + int_regs, sizeof(ptd));
834 atl_regs = ATL_REGS_OFFSET + slot * sizeof(struct ptd);
876 int_regs = INT_REGS_OFFSET + slot * sizeof(struct ptd);
958 struct ptd ptd;
994 atl_regs = atl_regs_base + queue_entry * sizeof(struct ptd);
1017 priv_read_copy(priv, (u32 *)&ptd, usb_hcd->regs + atl_regs +
1018 ISP_BANK(0), sizeof(ptd));
1020 dw1 = le32_to_cpu(ptd.dw1);
1021 dw2 = le32_to_cpu(ptd.dw2);
1022 dw3 = le32_to_cpu(ptd.dw3);
1045 printk(KERN_NOTICE "Reloading ptd %p/%p... qh %p read: "
1069 ptd.dw3 = cpu_to_le32(dw3);
1070 priv_write_copy(priv, (u32 *)&ptd, usb_hcd->regs +
1071 atl_regs, sizeof(ptd));
1073 ptd.dw0 |= cpu_to_le32(PTD_VALID);
1074 priv_write_copy(priv, (u32 *)&ptd, usb_hcd->regs +
1075 atl_regs, sizeof(ptd));
1085 error = check_error(&ptd);
1180 struct ptd ptd;
1211 int_regs = int_regs_base + queue_entry * sizeof(struct ptd);
1234 priv_read_copy(priv, (u32 *)&ptd, usb_hcd->regs + int_regs +
1235 ISP_BANK(0), sizeof(ptd));
1236 dw1 = le32_to_cpu(ptd.dw1);
1237 dw3 = le32_to_cpu(ptd.dw3);
1238 check_int_err_status(le32_to_cpu(ptd.dw4));
1240 error = check_error(&ptd);
1645 struct ptd ptd;
1670 memset(&ptd, 0, sizeof(ptd));
1688 priv_write_copy(priv, (u32 *)&ptd, hcd->regs + reg_base
1689 + i * sizeof(ptd), sizeof(ptd));