Lines Matching defs:helper
259 /* Misc helper functions ****************************************************/
2175 struct ffs_desc_helper *helper = priv;
2188 if (*valuep >= helper->interfaces_count)
2189 helper->interfaces_count = *valuep + 1;
2197 if (*valuep > helper->ffs->strings_count)
2198 helper->ffs->strings_count = *valuep;
2203 helper->eps_count++;
2204 if (helper->eps_count >= FFS_MAX_EPS_COUNT)
2207 if (!helper->ffs->eps_count && !helper->ffs->interfaces_count)
2208 helper->ffs->eps_addrmap[helper->eps_count] =
2210 else if (helper->ffs->eps_addrmap[helper->eps_count] !=
2418 struct ffs_desc_helper helper;
2487 helper.ffs = ffs;
2491 helper.interfaces_count = 0;
2492 helper.eps_count = 0;
2494 __ffs_data_do_entity, &helper);
2498 ffs->eps_count = helper.eps_count;
2499 ffs->interfaces_count = helper.interfaces_count;
2501 if (ffs->eps_count != helper.eps_count) {
2505 if (ffs->interfaces_count != helper.interfaces_count) {
3774 /* Misc helper functions ****************************************************/