Lines Matching defs:function

3  * f_fs.c -- user mode file system API for USB composite function controllers
64 /* The function structure ***************************************************/
77 struct usb_function function;
83 return container_of(f, struct ffs_function, function);
143 * __ffs_epfile_read_data function to point to a temporary buffer.
147 * function is using the buffer, it sets the pointer to NULL. This is
1135 * Do not kfree the buffer in this function. It will be freed
1383 * function configuration then later for event monitoring.
1999 ret = config_ep_by_speed(func->gadget, &func->function, ep->ep);
2098 /* function can't have any of those */
2383 * Process all function/property descriptors
2709 * function to configuration so for
2765 * Logic of this function guarantees that there are at most four pending
2767 * has space for four elements only and __ffs_ep0_read_events function
2823 /* Bind/unbind USB function hooks *******************************************/
2855 if (func->function.ss_descriptors) {
2857 func->function.ss_descriptors[(long)valuep] = desc;
2858 } else if (func->function.hs_descriptors) {
2860 func->function.hs_descriptors[(long)valuep] = desc;
2863 func->function.fs_descriptors[(long)valuep] = desc;
2952 int id = usb_interface_id(func->conf, &func->function);
3002 t = &func->function.os_desc_table[desc->bFirstInterfaceNumber];
3017 t = &func->function.os_desc_table[h->interface];
3113 func->function.strings = func->ffs->stringtabs;
3194 func->function.fs_descriptors = vla_ptr(vlabuf, d, fs_descs);
3208 func->function.hs_descriptors = vla_ptr(vlabuf, d, hs_descs);
3222 func->function.ss_descriptors = func->function.ssp_descriptors =
3249 func->function.os_desc_table = vla_ptr(vlabuf, d, os_desc_table);
3254 desc = func->function.os_desc_table[i].os_desc =
3270 func->function.os_desc_n =
3300 /* Other USB function hooks *************************************************/
3490 * ffs_lock must be taken by the caller of this function
3506 * ffs_lock must be taken by the caller of this function
3635 func->function.fs_descriptors = NULL;
3636 func->function.hs_descriptors = NULL;
3637 func->function.ss_descriptors = NULL;
3638 func->function.ssp_descriptors = NULL;
3653 func->function.name = "Function FS Gadget";
3655 func->function.bind = ffs_func_bind;
3656 func->function.unbind = ffs_func_unbind;
3657 func->function.set_alt = ffs_func_set_alt;
3658 func->function.disable = ffs_func_disable;
3659 func->function.setup = ffs_func_setup;
3660 func->function.req_match = ffs_func_req_match;
3661 func->function.suspend = ffs_func_suspend;
3662 func->function.resume = ffs_func_resume;
3663 func->function.free_func = ffs_free;
3665 return &func->function;
3669 * ffs_lock must be taken by the caller of this function
3733 * ffs_lock must be taken by the caller of this function