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);
141 * __ffs_epfile_read_data function to point to a temporary buffer.
145 * function is using the buffer, it sets the pointer to NULL. This is
1130 * Do not kfree the buffer in this function. It will be freed
1366 * function configuration then later for event monitoring.
1942 ret = config_ep_by_speed(func->gadget, &func->function, ep->ep);
2039 /* function can't have any of those */
2319 * Process all function/property descriptors
2639 * function to configuration so for
2695 * Logic of this function guarantees that there are at most four pending
2697 * has space for four elements only and __ffs_ep0_read_events function
2753 /* Bind/unbind USB function hooks *******************************************/
2785 if (func->function.ss_descriptors) {
2787 func->function.ss_descriptors[(long)valuep] = desc;
2788 } else if (func->function.hs_descriptors) {
2790 func->function.hs_descriptors[(long)valuep] = desc;
2793 func->function.fs_descriptors[(long)valuep] = desc;
2882 int id = usb_interface_id(func->conf, &func->function);
2932 t = &func->function.os_desc_table[desc->bFirstInterfaceNumber];
2947 t = &func->function.os_desc_table[h->interface];
3041 func->function.strings = func->ffs->stringtabs;
3120 func->function.fs_descriptors = vla_ptr(vlabuf, d, fs_descs);
3134 func->function.hs_descriptors = vla_ptr(vlabuf, d, hs_descs);
3148 func->function.ss_descriptors = func->function.ssp_descriptors =
3175 func->function.os_desc_table = vla_ptr(vlabuf, d, os_desc_table);
3180 desc = func->function.os_desc_table[i].os_desc =
3196 func->function.os_desc_n =
3226 /* Other USB function hooks *************************************************/
3412 * ffs_lock must be taken by the caller of this function
3428 * ffs_lock must be taken by the caller of this function
3556 func->function.fs_descriptors = NULL;
3557 func->function.hs_descriptors = NULL;
3558 func->function.ss_descriptors = NULL;
3559 func->function.ssp_descriptors = NULL;
3572 func->function.name = "Function FS Gadget";
3574 func->function.bind = ffs_func_bind;
3575 func->function.unbind = ffs_func_unbind;
3576 func->function.set_alt = ffs_func_set_alt;
3577 func->function.disable = ffs_func_disable;
3578 func->function.setup = ffs_func_setup;
3579 func->function.req_match = ffs_func_req_match;
3580 func->function.suspend = ffs_func_suspend;
3581 func->function.resume = ffs_func_resume;
3582 func->function.free_func = ffs_free;
3584 return &func->function;
3588 * ffs_lock must be taken by the caller of this function
3652 * ffs_lock must be taken by the caller of this function