Lines Matching refs:port

48 	struct gether			port;
82 return container_of(f, struct f_ncm, port.func);
534 ncm->port.cdc_filter = DEFAULT_FILTER;
537 ncm->port.header_len = 0;
539 ncm->port.fixed_out_len = le32_to_cpu(ntb_parameters.dwNtbOutMaxSize);
540 ncm->port.fixed_in_len = NTB_DEFAULT_IN_SIZE;
550 struct usb_composite_dev *cdev = ncm->port.func.config->cdev;
633 struct usb_composite_dev *cdev = ncm->port.func.config->cdev;
679 ncm->port.fixed_in_len = in_size;
717 ncm->port.cdc_filter = w_value;
746 put_unaligned_le32(ncm->port.fixed_in_len, req->buf);
749 ncm->port.fixed_in_len);
893 if (ncm->port.in_ep->enabled) {
897 gether_disconnect(&ncm->port);
908 if (!ncm->port.in_ep->desc ||
909 !ncm->port.out_ep->desc) {
912 ncm->port.in_ep) ||
914 ncm->port.out_ep)) {
915 ncm->port.in_ep->desc = NULL;
916 ncm->port.out_ep->desc = NULL;
925 ncm->port.is_zlp_ok =
927 ncm->port.cdc_filter = DEFAULT_FILTER;
929 net = gether_connect(&ncm->port);
957 return ncm->port.in_ep->enabled ? 1 : 0;
1017 static struct sk_buff *ncm_wrap_ntb(struct gether *port,
1020 struct f_ncm *ncm = func_to_ncm(&port->func);
1027 unsigned max_size = ncm->port.fixed_in_len;
1178 static int ncm_unwrap_ntb(struct gether *port,
1182 struct f_ncm *ncm = func_to_ncm(&port->func);
1204 INFO(port->func.config->cdev, "Wrong NTH SIGN, skblen %d\n",
1214 INFO(port->func.config->cdev, "Wrong NTB headersize\n");
1222 INFO(port->func.config->cdev, "OUT size exceeded\n");
1238 INFO(port->func.config->cdev, "Bad index: %#X\n",
1249 INFO(port->func.config->cdev, "Wrong NDP SIGN\n");
1266 INFO(port->func.config->cdev, "Bad NDP length: %#X\n",
1285 INFO(port->func.config->cdev,
1297 INFO(port->func.config->cdev,
1311 INFO(port->func.config->cdev,
1322 INFO(port->func.config->cdev,
1348 VDBG(port->func.config->cdev,
1373 if (ncm->port.in_ep->enabled) {
1376 gether_disconnect(&ncm->port);
1409 DBG(ncm->port.func.config->cdev, "%s\n", __func__);
1421 DBG(ncm->port.func.config->cdev, "%s\n", __func__);
1508 ncm->port.in_ep = ep;
1513 ncm->port.out_ep = ep;
1558 ncm->port.open = ncm_open;
1559 ncm->port.close = ncm_close;
1567 ncm->port.in_ep->name, ncm->port.out_ep->name,
1734 ncm->port.ioport = netdev_priv(opts->net);
1736 ncm->port.is_fixed = true;
1737 ncm->port.supports_multi_frame = true;
1739 ncm->port.func.name = "cdc_network";
1741 ncm->port.func.bind = ncm_bind;
1742 ncm->port.func.unbind = ncm_unbind;
1743 ncm->port.func.set_alt = ncm_set_alt;
1744 ncm->port.func.get_alt = ncm_get_alt;
1745 ncm->port.func.setup = ncm_setup;
1746 ncm->port.func.disable = ncm_disable;
1747 ncm->port.func.free_func = ncm_free;
1749 ncm->port.wrap = ncm_wrap_ntb;
1750 ncm->port.unwrap = ncm_unwrap_ntb;
1752 return &ncm->port.func;