Lines Matching refs:geth
234 struct f_gether *geth = func_to_geth(f);
240 if (geth->port.in_ep->driver_data) {
242 gether_disconnect(&geth->port);
246 geth->port.in = ep_choose(cdev->gadget,
247 geth->hs.in, geth->fs.in);
248 geth->port.out = ep_choose(cdev->gadget,
249 geth->hs.out, geth->fs.out);
251 net = gether_connect(&geth->port);
257 struct f_gether *geth = func_to_geth(f);
261 gether_disconnect(&geth->port);
272 struct f_gether *geth = func_to_geth(f);
288 geth->port.in_ep = ep;
294 geth->port.out_ep = ep;
300 geth->fs.in = usb_find_endpoint(fs_eth_function,
302 geth->fs.out = usb_find_endpoint(fs_eth_function,
319 geth->hs.in = usb_find_endpoint(hs_eth_function,
321 geth->hs.out = usb_find_endpoint(hs_eth_function,
332 geth->port.in_ep->name, geth->port.out_ep->name);
337 if (geth->port.out)
338 geth->port.out_ep->driver_data = NULL;
339 if (geth->port.in)
340 geth->port.in_ep->driver_data = NULL;
371 struct f_gether *geth;
396 geth = kzalloc(sizeof *geth, GFP_KERNEL);
397 if (!geth)
401 snprintf(geth->ethaddr, sizeof geth->ethaddr,
405 geth_string_defs[1].s = geth->ethaddr;
407 geth->port.cdc_filter = DEFAULT_FILTER;
409 geth->port.func.name = "cdc_subset";
410 geth->port.func.strings = geth_strings;
411 geth->port.func.bind = geth_bind;
412 geth->port.func.unbind = geth_unbind;
413 geth->port.func.set_alt = geth_set_alt;
414 geth->port.func.disable = geth_disable;
416 status = usb_add_function(c, &geth->port.func);
419 kfree(geth);