Lines Matching defs:function

3  * f_fs.c -- user mode file system API for USB composite function controllers
47 /* The function structure ***************************************************/
60 struct usb_function function;
64 return container_of(f, struct ffs_function, function);
113 * __ffs_epfile_read_data function to point to a temporary buffer.
117 * function is using the buffer, it sets the pointer to NULL. This is
1858 ret = config_ep_by_speed(func->gadget, &func->function, ep->ep);
1954 /* function can't have any of those */
2222 * Process all function/property descriptors
2547 * function to configuration so for
2601 * Logic of this function guarantees that there are at most four pending
2603 * has space for four elements only and __ffs_ep0_read_events function
2659 /* Bind/unbind USB function hooks *******************************************/
2691 if (func->function.ss_descriptors) {
2693 func->function.ss_descriptors[(uintptr_t)valuep] = desc;
2694 } else if (func->function.hs_descriptors) {
2696 func->function.hs_descriptors[(uintptr_t)valuep] = desc;
2699 func->function.fs_descriptors[(uintptr_t)valuep] = desc;
2778 int id = usb_interface_id(func->conf, &func->function);
2828 t = &func->function.os_desc_table[desc->bFirstInterfaceNumber];
2842 t = &func->function.os_desc_table[h->interface];
2935 func->function.strings = func->ffs->stringtabs;
3017 func->function.fs_descriptors = vla_ptr(vlabuf, d, fs_descs);
3030 func->function.hs_descriptors = vla_ptr(vlabuf, d, hs_descs);
3043 func->function.ss_descriptors = vla_ptr(vlabuf, d, ss_descs);
3068 func->function.os_desc_table = vla_ptr(vlabuf, d, os_desc_table);
3073 desc = func->function.os_desc_table[i].os_desc =
3089 func->function.os_desc_n =
3093 des_head = func->function.fs_descriptors[i];
3107 des_head = func->function.fs_descriptors[i];
3127 des_head = func->function.hs_descriptors[i];
3147 des_head = func->function.ss_descriptors[i];
3192 /* Other USB function hooks *************************************************/
3378 * ffs_lock must be taken by the caller of this function
3394 * ffs_lock must be taken by the caller of this function
3519 func->function.fs_descriptors = NULL;
3520 func->function.hs_descriptors = NULL;
3521 func->function.ss_descriptors = NULL;
3544 func->function.name = "FunctionFS Adapter";
3546 func->function.bind = ffs_func_bind;
3547 func->function.unbind = ffs_func_unbind;
3548 func->function.set_alt = ffs_func_set_alt;
3549 func->function.get_alt = ffs_func_get_alt;
3550 func->function.disable = ffs_func_disable;
3551 func->function.setup = ffs_func_setup;
3552 func->function.req_match = ffs_func_req_match;
3553 func->function.suspend = ffs_func_suspend;
3554 func->function.resume = ffs_func_resume;
3555 func->function.free_func = ffs_free;
3557 return &func->function;
3561 * ffs_lock must be taken by the caller of this function
3624 * ffs_lock must be taken by the caller of this function