Lines Matching refs:iface
105 struct most_interface iface; member
124 #define to_mdev(d) container_of(d, struct most_dev, iface)
236 static int hdm_poison_channel(struct most_interface *iface, int channel) in hdm_poison_channel() argument
238 struct most_dev *mdev = to_mdev(iface); in hdm_poison_channel()
242 if (channel < 0 || channel >= iface->num_channels) { in hdm_poison_channel()
457 static int hdm_enqueue(struct most_interface *iface, int channel, in hdm_enqueue() argument
460 struct most_dev *mdev = to_mdev(iface); in hdm_enqueue()
469 if (iface->num_channels <= channel || channel < 0) in hdm_enqueue()
566 static int hdm_configure_channel(struct most_interface *iface, int channel, in hdm_configure_channel() argument
571 struct most_dev *mdev = to_mdev(iface); in hdm_configure_channel()
578 if (channel < 0 || channel >= iface->num_channels) { in hdm_configure_channel()
646 static void hdm_request_netinfo(struct most_interface *iface, int channel, in hdm_request_netinfo() argument
651 struct most_dev *mdev = to_mdev(iface); in hdm_request_netinfo()
719 mdev->on_netinfo(&mdev->iface, link, hw_addr); in wq_netinfo()
738 most_stop_enqueue(&mdev->iface, channel); in wq_clear_halt()
762 most_resume_enqueue(&mdev->iface, channel); in wq_clear_halt()
976 mdev->iface.mod = hdm_usb_fops.owner; in hdm_probe()
977 mdev->iface.dev = &mdev->dev; in hdm_probe()
978 mdev->iface.driver_dev = &interface->dev; in hdm_probe()
979 mdev->iface.interface = ITYPE_USB; in hdm_probe()
980 mdev->iface.configure = hdm_configure_channel; in hdm_probe()
981 mdev->iface.request_netinfo = hdm_request_netinfo; in hdm_probe()
982 mdev->iface.enqueue = hdm_enqueue; in hdm_probe()
983 mdev->iface.poison_channel = hdm_poison_channel; in hdm_probe()
984 mdev->iface.dma_alloc = hdm_dma_alloc; in hdm_probe()
985 mdev->iface.dma_free = hdm_dma_free; in hdm_probe()
986 mdev->iface.description = mdev->description; in hdm_probe()
987 mdev->iface.num_channels = num_endpoints; in hdm_probe()
1007 mdev->iface.channel_vector = mdev->cap; in hdm_probe()
1055 ret = most_register_interface(&mdev->iface); in hdm_probe()
1066 most_deregister_interface(&mdev->iface); in hdm_probe()
1072 mdev->dci->dev.parent = get_device(mdev->iface.dev); in hdm_probe()
1077 most_deregister_interface(&mdev->iface); in hdm_probe()
1123 most_deregister_interface(&mdev->iface); in hdm_disconnect()
1139 for (i = 0; i < mdev->iface.num_channels; i++) { in hdm_suspend()
1140 most_stop_enqueue(&mdev->iface, i); in hdm_suspend()
1153 for (i = 0; i < mdev->iface.num_channels; i++) in hdm_resume()
1154 most_resume_enqueue(&mdev->iface, i); in hdm_resume()