• Home
  • Raw
  • Download

Lines Matching refs:tdev

117 #define ERROR(tdev, fmt, args...) \  argument
118 dev_err(&(tdev)->intf->dev , fmt , ## args)
119 #define WARNING(tdev, fmt, args...) \ argument
120 dev_warn(&(tdev)->intf->dev , fmt , ## args)
375 static int check_guard_bytes(struct usbtest_dev *tdev, struct urb *urb) in check_guard_bytes() argument
383 ERROR(tdev, "guard byte[%d] %d (not %d)\n", in check_guard_bytes()
391 static int simple_check_buf(struct usbtest_dev *tdev, struct urb *urb) in simple_check_buf() argument
399 int ret = check_guard_bytes(tdev, urb); in simple_check_buf()
424 ERROR(tdev, "buf[%d] = %d (not %d)\n", i, *buf, expected); in simple_check_buf()
446 struct usbtest_dev *tdev, in simple_io() argument
482 retval = simple_check_buf(tdev, urb); in simple_io()
587 struct usbtest_dev *tdev, in perform_sglist() argument
595 struct usb_device *udev = testdev_to_usbdev(tdev); in perform_sglist()
627 ERROR(tdev, "perform_sglist failed, " in perform_sglist()
687 static int is_good_config(struct usbtest_dev *tdev, int len) in is_good_config() argument
693 config = (struct usb_config_descriptor *) tdev->buf; in is_good_config()
699 ERROR(tdev, "bogus config descriptor length\n"); in is_good_config()
704 ERROR(tdev, "high bit of config attributes not set\n"); in is_good_config()
708 ERROR(tdev, "reserved config bits set\n"); in is_good_config()
720 ERROR(tdev, "bogus config descriptor read size\n"); in is_good_config()
724 static int is_good_ext(struct usbtest_dev *tdev, u8 *buf) in is_good_ext() argument
732 ERROR(tdev, "bogus usb 2.0 extension descriptor length\n"); in is_good_ext()
739 ERROR(tdev, "reserved bits set\n"); in is_good_ext()
746 static int is_good_ss_cap(struct usbtest_dev *tdev, u8 *buf) in is_good_ss_cap() argument
753 ERROR(tdev, "bogus superspeed device capability descriptor length\n"); in is_good_ss_cap()
762 ERROR(tdev, "reserved bits set in bmAttributes\n"); in is_good_ss_cap()
768 ERROR(tdev, "reserved bits set in wSpeedSupported\n"); in is_good_ss_cap()
775 static int is_good_con_id(struct usbtest_dev *tdev, u8 *buf) in is_good_con_id() argument
782 ERROR(tdev, "bogus container id descriptor length\n"); in is_good_con_id()
787 ERROR(tdev, "reserved bits set\n"); in is_good_con_id()
1611 static int verify_not_halted(struct usbtest_dev *tdev, int ep, struct urb *urb) in verify_not_halted() argument
1619 ERROR(tdev, "ep %02x couldn't get no-halt status, %d\n", in verify_not_halted()
1624 ERROR(tdev, "ep %02x bogus status: %04x != 0\n", ep, status); in verify_not_halted()
1627 retval = simple_io(tdev, urb, 1, 0, 0, __func__); in verify_not_halted()
1633 static int verify_halted(struct usbtest_dev *tdev, int ep, struct urb *urb) in verify_halted() argument
1641 ERROR(tdev, "ep %02x couldn't get halt status, %d\n", in verify_halted()
1646 ERROR(tdev, "ep %02x bogus status: %04x != 1\n", ep, status); in verify_halted()
1649 retval = simple_io(tdev, urb, 1, 0, -EPIPE, __func__); in verify_halted()
1652 retval = simple_io(tdev, urb, 1, 0, -EPIPE, "verify_still_halted"); in verify_halted()
1658 static int test_halt(struct usbtest_dev *tdev, int ep, struct urb *urb) in test_halt() argument
1663 retval = verify_not_halted(tdev, ep, urb); in test_halt()
1673 ERROR(tdev, "ep %02x couldn't set halt, %d\n", ep, retval); in test_halt()
1676 retval = verify_halted(tdev, ep, urb); in test_halt()
1683 ERROR(tdev, "ep %02x couldn't clear halt, %d\n", in test_halt()
1692 ERROR(tdev, "ep %02x couldn't clear halt, %d\n", ep, retval); in test_halt()
1695 retval = verify_not_halted(tdev, ep, urb); in test_halt()
2061 struct usbtest_dev *tdev, in test_unaligned_bulk() argument
2069 struct urb *urb = usbtest_alloc_urb(testdev_to_usbdev(tdev), in test_unaligned_bulk()
2075 retval = simple_io(tdev, urb, iterations, 0, 0, label); in test_unaligned_bulk()