Lines Matching defs:geth
255 struct f_gether *geth = func_to_geth(f);
261 if (geth->port.in_ep->enabled) {
263 gether_disconnect(&geth->port);
267 if (config_ep_by_speed(cdev->gadget, f, geth->port.in_ep) ||
268 config_ep_by_speed(cdev->gadget, f, geth->port.out_ep)) {
269 geth->port.in_ep->desc = NULL;
270 geth->port.out_ep->desc = NULL;
274 net = gether_connect(&geth->port);
280 struct f_gether *geth = func_to_geth(f);
284 gether_disconnect(&geth->port);
295 struct f_gether *geth = func_to_geth(f);
341 geth->port.in_ep = ep;
346 geth->port.out_ep = ep;
371 geth->port.in_ep->name, geth->port.out_ep->name);
465 struct f_gether *geth;
470 geth = kzalloc(sizeof(*geth), GFP_KERNEL);
471 if (!geth)
479 status = gether_get_host_addr_cdc(opts->net, geth->ethaddr,
480 sizeof(geth->ethaddr));
482 kfree(geth);
486 geth_string_defs[1].s = geth->ethaddr;
488 geth->port.ioport = netdev_priv(opts->net);
490 geth->port.cdc_filter = DEFAULT_FILTER;
492 geth->port.func.name = "cdc_subset";
493 geth->port.func.bind = geth_bind;
494 geth->port.func.unbind = geth_unbind;
495 geth->port.func.set_alt = geth_set_alt;
496 geth->port.func.disable = geth_disable;
497 geth->port.func.free_func = geth_free;
499 return &geth->port.func;
502 DECLARE_USB_FUNCTION_INIT(geth, geth_alloc_inst, geth_alloc);