Lines Matching defs:helper
293 /* Misc helper functions ****************************************************/
2659 struct ffs_desc_helper *helper = priv;
2672 if (*valuep >= helper->interfaces_count)
2673 helper->interfaces_count = *valuep + 1;
2681 if (*valuep > helper->ffs->strings_count)
2682 helper->ffs->strings_count = *valuep;
2687 helper->eps_count++;
2688 if (helper->eps_count >= FFS_MAX_EPS_COUNT)
2691 if (!helper->ffs->eps_count && !helper->ffs->interfaces_count)
2692 helper->ffs->eps_addrmap[helper->eps_count] =
2694 else if (helper->ffs->eps_addrmap[helper->eps_count] !=
2902 struct ffs_desc_helper helper;
2971 helper.ffs = ffs;
2975 helper.interfaces_count = 0;
2976 helper.eps_count = 0;
2978 __ffs_data_do_entity, &helper);
2982 ffs->eps_count = helper.eps_count;
2983 ffs->interfaces_count = helper.interfaces_count;
2985 if (ffs->eps_count != helper.eps_count) {
2989 if (ffs->interfaces_count != helper.interfaces_count) {
4292 /* Misc helper functions ****************************************************/