Lines Matching refs:info
8 // #define DEBUG // error path messages, extra info
117 struct cdc_state *info = (void *) &dev->data;
124 if (sizeof(dev->data) < sizeof(*info))
163 memset(info, 0, sizeof(*info));
164 info->control = intf;
168 info->u = header.usb_cdc_union_desc;
169 info->header = header.usb_cdc_header_desc;
170 info->ether = header.usb_cdc_ether_desc;
171 if (!info->u) {
181 info->control = usb_ifnum_to_if(dev->udev, info->u->bMasterInterface0);
182 info->data = usb_ifnum_to_if(dev->udev, info->u->bSlaveInterface0);
183 if (!info->control || !info->data) {
186 info->u->bMasterInterface0,
187 info->control,
188 info->u->bSlaveInterface0,
189 info->data);
197 if (info->control != intf) {
202 if (info->data == intf) {
203 info->data = info->control;
204 info->control = intf;
210 if (info->control == info->data)
214 d = &info->data->cur_altsetting->desc;
236 if (header.usb_cdc_ether_desc && info->ether->wMaxSegmentSize) {
237 dev->hard_mtu = le16_to_cpu(info->ether->wMaxSegmentSize);
266 if (rndis && (!info->u || android_rndis_quirk)) {
267 info->control = usb_ifnum_to_if(dev->udev, 0);
268 info->data = usb_ifnum_to_if(dev->udev, 1);
269 if (!info->control || !info->data || info->control != intf) {
272 info->control,
273 info->data);
277 } else if (!info->header || (!rndis && !info->ether)) {
279 info->header ? "" : "header ",
280 info->u ? "" : "union ",
281 info->ether ? "" : "ether ");
288 if (info->data != info->control) {
289 status = usb_driver_claim_interface(driver, info->data, dev);
293 status = usbnet_get_endpoints(dev, info->data);
296 usb_set_intfdata(info->data, NULL);
297 if (info->data != info->control)
298 usb_driver_release_interface(driver, info->data);
303 if (info->data != info->control)
305 if (info->control->cur_altsetting->desc.bNumEndpoints == 1) {
308 dev->status = &info->control->cur_altsetting->endpoint[0];
320 usb_set_intfdata(info->data, NULL);
321 usb_driver_release_interface(driver, info->data);
362 struct cdc_state *info = (void *) &dev->data;
366 if (info->data == info->control)
370 if (intf == info->control && info->data) {
372 usb_set_intfdata(info->data, NULL);
373 usb_driver_release_interface(driver, info->data);
374 info->data = NULL;
378 else if (intf == info->data && info->control) {
380 usb_set_intfdata(info->control, NULL);
381 usb_driver_release_interface(driver, info->control);
382 info->control = NULL;
445 struct cdc_state *info = (void *) &dev->data;
454 status = usbnet_get_ethernet_addr(dev, info->ether->iMACAddress);
456 usb_set_intfdata(info->data, NULL);
457 usb_driver_release_interface(driver_of(intf), info->data);