Lines Matching defs:info

182 		/* extract padding length and check for valid length info */
309 struct qmi_wwan_state *info = (void *)&dev->data;
311 if (info->flags & QMI_WWAN_FLAG_RAWIP) {
335 struct qmi_wwan_state *info = (void *)&dev->data;
337 return sprintf(buf, "%c\n", info->flags & QMI_WWAN_FLAG_RAWIP ? 'Y' : 'N');
343 struct qmi_wwan_state *info = (void *)&dev->data;
351 if (enable == (info->flags & QMI_WWAN_FLAG_RAWIP))
355 if (!enable && (info->flags & QMI_WWAN_FLAG_PASS_THROUGH)) {
380 info->flags |= QMI_WWAN_FLAG_RAWIP;
382 info->flags &= ~QMI_WWAN_FLAG_RAWIP;
412 struct qmi_wwan_state *info = (void *)&dev->data;
434 info->flags |= QMI_WWAN_FLAG_MUX;
450 struct qmi_wwan_state *info = (void *)&dev->data;
470 info->flags &= ~QMI_WWAN_FLAG_MUX;
481 struct qmi_wwan_state *info;
483 info = (void *)&dev->data;
485 info->flags & QMI_WWAN_FLAG_PASS_THROUGH ? 'Y' : 'N');
493 struct qmi_wwan_state *info;
499 info = (void *)&dev->data;
502 if (enable == (info->flags & QMI_WWAN_FLAG_PASS_THROUGH))
506 if (!(info->flags & QMI_WWAN_FLAG_RAWIP)) {
513 info->flags |= QMI_WWAN_FLAG_PASS_THROUGH;
515 info->flags &= ~QMI_WWAN_FLAG_PASS_THROUGH;
565 struct qmi_wwan_state *info = (void *)&dev->data;
566 bool rawip = info->flags & QMI_WWAN_FLAG_RAWIP;
573 if (info->flags & QMI_WWAN_FLAG_MUX)
576 if (info->flags & QMI_WWAN_FLAG_PASS_THROUGH) {
657 struct qmi_wwan_state *info = (void *)&dev->data;
661 atomic_read(&info->pmcount), on);
663 if ((on && atomic_add_return(1, &info->pmcount) == 1) ||
664 (!on && atomic_dec_and_test(&info->pmcount))) {
691 struct qmi_wwan_state *info = (void *)&dev->data;
694 rv = usbnet_get_endpoints(dev, info->data);
699 if (info->control != info->data)
700 dev->status = &info->control->cur_altsetting->endpoint[0];
709 atomic_set(&info->pmcount, 0);
712 subdriver = usb_cdc_wdm_register(info->control, &dev->status->desc,
716 dev_err(&info->control->dev, "subdriver registration failed\n");
725 info->subdriver = subdriver;
754 struct qmi_wwan_state *info = (void *)&dev->data;
761 info->control = intf;
762 info->data = intf;
771 info->data = usb_ifnum_to_if(dev->udev,
774 !info->data) {
782 info->data = intf;
793 if (info->control != info->data) {
794 status = usb_driver_claim_interface(driver, info->data, dev);
800 if (status < 0 && info->control != info->data) {
801 usb_set_intfdata(info->data, NULL);
802 usb_driver_release_interface(driver, info->data);
852 struct qmi_wwan_state *info = (void *)&dev->data;
856 if (info->subdriver && info->subdriver->disconnect)
857 info->subdriver->disconnect(info->control);
866 if (intf == info->control)
867 other = info->data;
869 other = info->control;
877 info->subdriver = NULL;
878 info->data = NULL;
879 info->control = NULL;
891 struct qmi_wwan_state *info = (void *)&dev->data;
902 if (intf == info->control && info->subdriver &&
903 info->subdriver->suspend)
904 ret = info->subdriver->suspend(intf, message);
914 struct qmi_wwan_state *info = (void *)&dev->data;
916 bool callsub = (intf == info->control && info->subdriver &&
917 info->subdriver->resume);
920 ret = info->subdriver->resume(intf);
925 info->subdriver->suspend(intf, PMSG_SUSPEND);
1558 struct qmi_wwan_state *info;
1566 info = (void *)&dev->data;
1567 if (info->flags & QMI_WWAN_FLAG_MUX) {
1578 info->flags &= ~QMI_WWAN_FLAG_MUX;