Lines Matching full:iface

87  * @iface: hardware interface
105 struct most_interface iface; member
124 #define to_mdev(d) container_of(d, struct most_dev, iface)
226 * @iface: pointer to the interface
235 static int hdm_poison_channel(struct most_interface *iface, int channel) in hdm_poison_channel() argument
237 struct most_dev *mdev = to_mdev(iface); in hdm_poison_channel()
241 if (channel < 0 || channel >= iface->num_channels) { in hdm_poison_channel()
443 * @iface: interface to enqueue to
456 static int hdm_enqueue(struct most_interface *iface, int channel, in hdm_enqueue() argument
459 struct most_dev *mdev = to_mdev(iface); in hdm_enqueue()
468 if (iface->num_channels <= channel || channel < 0) in hdm_enqueue()
552 * @iface: interface
565 static int hdm_configure_channel(struct most_interface *iface, int channel, in hdm_configure_channel() argument
570 struct most_dev *mdev = to_mdev(iface); in hdm_configure_channel()
577 if (channel < 0 || channel >= iface->num_channels) { in hdm_configure_channel()
638 * @iface: pointer to interface
645 static void hdm_request_netinfo(struct most_interface *iface, int channel, in hdm_request_netinfo() argument
650 struct most_dev *mdev = to_mdev(iface); in hdm_request_netinfo()
718 mdev->on_netinfo(&mdev->iface, link, hw_addr); in wq_netinfo()
737 most_stop_enqueue(&mdev->iface, channel); in wq_clear_halt()
761 most_resume_enqueue(&mdev->iface, channel); in wq_clear_halt()
975 mdev->iface.mod = hdm_usb_fops.owner; in hdm_probe()
976 mdev->iface.dev = &mdev->dev; in hdm_probe()
977 mdev->iface.driver_dev = &interface->dev; in hdm_probe()
978 mdev->iface.interface = ITYPE_USB; in hdm_probe()
979 mdev->iface.configure = hdm_configure_channel; in hdm_probe()
980 mdev->iface.request_netinfo = hdm_request_netinfo; in hdm_probe()
981 mdev->iface.enqueue = hdm_enqueue; in hdm_probe()
982 mdev->iface.poison_channel = hdm_poison_channel; in hdm_probe()
983 mdev->iface.dma_alloc = hdm_dma_alloc; in hdm_probe()
984 mdev->iface.dma_free = hdm_dma_free; in hdm_probe()
985 mdev->iface.description = mdev->description; in hdm_probe()
986 mdev->iface.num_channels = num_endpoints; in hdm_probe()
1006 mdev->iface.channel_vector = mdev->cap; in hdm_probe()
1054 ret = most_register_interface(&mdev->iface); in hdm_probe()
1065 most_deregister_interface(&mdev->iface); in hdm_probe()
1071 mdev->dci->dev.parent = get_device(mdev->iface.dev); in hdm_probe()
1076 most_deregister_interface(&mdev->iface); in hdm_probe()
1122 most_deregister_interface(&mdev->iface); in hdm_disconnect()
1138 for (i = 0; i < mdev->iface.num_channels; i++) { in hdm_suspend()
1139 most_stop_enqueue(&mdev->iface, i); in hdm_suspend()
1152 for (i = 0; i < mdev->iface.num_channels; i++) in hdm_resume()
1153 most_resume_enqueue(&mdev->iface, i); in hdm_resume()