Lines Matching refs:info
49 static void s3c2410_hcd_oc(struct s3c2410_hcd_info *info, int port_oc);
60 struct s3c2410_hcd_info *info = dev_get_platdata(&dev->dev);
69 if (info != NULL) {
70 info->hcd = hcd;
71 info->report_oc = s3c2410_hcd_oc;
73 if (info->enable_oc != NULL)
74 (info->enable_oc)(info, 1);
80 struct s3c2410_hcd_info *info = dev_get_platdata(&dev->dev);
84 if (info != NULL) {
85 info->report_oc = NULL;
86 info->hcd = NULL;
88 if (info->enable_oc != NULL)
89 (info->enable_oc)(info, 0);
105 struct s3c2410_hcd_info *info = to_s3c2410_info(hcd);
112 if (info == NULL)
115 port = &info->port[0];
141 static void s3c2410_usb_set_power(struct s3c2410_hcd_info *info,
144 if (info == NULL)
147 if (info->power_control != NULL) {
148 info->port[port-1].power = to;
149 (info->power_control)(port-1, to);
168 struct s3c2410_hcd_info *info = to_s3c2410_info(hcd);
180 if (info == NULL) {
192 s3c2410_usb_set_power(info, wIndex, 1);
204 info->port[wIndex-1].oc_changed = 0;
205 info->port[wIndex-1].oc_status = 0;
215 info->port[wIndex-1].oc_status = 0;
224 s3c2410_usb_set_power(info, wIndex, 0);
242 if (info->power_control == NULL)
256 if (info->enable_oc) {
274 if (info->port[wIndex-1].oc_changed)
277 if (info->port[wIndex-1].oc_status)
291 static void s3c2410_hcd_oc(struct s3c2410_hcd_info *info, int port_oc)
297 if (info == NULL)
300 port = &info->port[0];
312 s3c2410_usb_set_power(info, portno+1, 0);
355 struct s3c2410_hcd_info *info = dev_get_platdata(&dev->dev);
358 s3c2410_usb_set_power(info, 1, 1);
359 s3c2410_usb_set_power(info, 2, 1);