Lines Matching refs:gadget
269 fakedev_printk(level , (f)->gadget , fmt , ## args)
621 struct usb_gadget *gadget; member
1079 static void fsg_disconnect(struct usb_gadget *gadget) in fsg_disconnect() argument
1081 struct fsg_dev *fsg = get_gadget_data(gadget); in fsg_disconnect()
1338 if (!fsg->gadget->is_dualspeed) in standard_setup_req()
1346 if (!fsg->gadget->is_dualspeed) in standard_setup_req()
1355 value = populate_config_buf(fsg->gadget->speed, in standard_setup_req()
1438 static int fsg_setup(struct usb_gadget *gadget, in fsg_setup() argument
1441 struct fsg_dev *fsg = get_gadget_data(gadget); in fsg_setup()
3080 d = ep_desc(fsg->gadget, &fs_bulk_in_desc, &hs_bulk_in_desc); in do_set_interface()
3085 d = ep_desc(fsg->gadget, &fs_bulk_out_desc, &hs_bulk_out_desc); in do_set_interface()
3092 d = ep_desc(fsg->gadget, &fs_intr_in_desc, &hs_intr_in_desc); in do_set_interface()
3152 switch (fsg->gadget->speed) { in do_set_config()
3516 static void fsg_unbind(struct usb_gadget *gadget) in fsg_unbind() argument
3518 struct fsg_dev *fsg = get_gadget_data(gadget); in fsg_unbind()
3551 set_gadget_data(gadget, 0); in fsg_unbind()
3565 if (gadget_is_sh(fsg->gadget)) in check_parameters()
3569 if (gadget_is_net2280(fsg->gadget)) in check_parameters()
3571 else if (gadget_is_dummy(fsg->gadget)) in check_parameters()
3573 else if (gadget_is_pxa(fsg->gadget)) in check_parameters()
3575 else if (gadget_is_sh(fsg->gadget)) in check_parameters()
3580 else if (gadget_is_goku(fsg->gadget)) in check_parameters()
3582 else if (gadget_is_mq11xx(fsg->gadget)) in check_parameters()
3584 else if (gadget_is_omap(fsg->gadget)) in check_parameters()
3588 fsg->gadget->name); in check_parameters()
3649 static int __init fsg_bind(struct usb_gadget *gadget) in fsg_bind() argument
3659 fsg->gadget = gadget; in fsg_bind()
3660 set_gadget_data(gadget, fsg); in fsg_bind()
3661 fsg->ep0 = gadget->ep0; in fsg_bind()
3697 "%s-lun%d", gadget->name, i); in fsg_bind()
3710 usb_ep_autoconfig_reset(gadget); in fsg_bind()
3711 ep = usb_ep_autoconfig(gadget, &fs_bulk_in_desc); in fsg_bind()
3717 ep = usb_ep_autoconfig(gadget, &fs_bulk_out_desc); in fsg_bind()
3724 ep = usb_ep_autoconfig(gadget, &fs_intr_in_desc); in fsg_bind()
3780 usb_gadget_set_selfpowered(gadget); in fsg_bind()
3784 gadget->name); in fsg_bind()
3840 fsg_unbind(gadget); in fsg_bind()