Lines Matching refs:geth

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