Lines Matching refs:info
51 static void s3c2410_hcd_oc(struct s3c2410_hcd_info *info, int port_oc);
62 struct s3c2410_hcd_info *info = dev_get_platdata(&dev->dev);
71 if (info != NULL) {
72 info->hcd = hcd;
73 info->report_oc = s3c2410_hcd_oc;
75 if (info->enable_oc != NULL)
76 (info->enable_oc)(info, 1);
82 struct s3c2410_hcd_info *info = dev_get_platdata(&dev->dev);
86 if (info != NULL) {
87 info->report_oc = NULL;
88 info->hcd = NULL;
90 if (info->enable_oc != NULL)
91 (info->enable_oc)(info, 0);
107 struct s3c2410_hcd_info *info = to_s3c2410_info(hcd);
114 if (info == NULL)
117 port = &info->port[0];
143 static void s3c2410_usb_set_power(struct s3c2410_hcd_info *info,
146 if (info == NULL)
149 if (info->power_control != NULL) {
150 info->port[port-1].power = to;
151 (info->power_control)(port-1, to);
170 struct s3c2410_hcd_info *info = to_s3c2410_info(hcd);
182 if (info == NULL) {
194 s3c2410_usb_set_power(info, wIndex, 1);
206 info->port[wIndex-1].oc_changed = 0;
207 info->port[wIndex-1].oc_status = 0;
217 info->port[wIndex-1].oc_status = 0;
226 s3c2410_usb_set_power(info, wIndex, 0);
244 if (info->power_control == NULL)
258 if (info->enable_oc) {
276 if (info->port[wIndex-1].oc_changed)
279 if (info->port[wIndex-1].oc_status)
293 static void s3c2410_hcd_oc(struct s3c2410_hcd_info *info, int port_oc)
299 if (info == NULL)
302 port = &info->port[0];
314 s3c2410_usb_set_power(info, portno+1, 0);
358 struct s3c2410_hcd_info *info = dev_get_platdata(&dev->dev);
361 s3c2410_usb_set_power(info, 1, 1);
362 s3c2410_usb_set_power(info, 2, 1);