Lines Matching refs:iface

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