Lines Matching refs:helper
2654 struct ffs_desc_helper *helper = priv; in __ffs_data_do_entity() local
2667 if (*valuep >= helper->interfaces_count) in __ffs_data_do_entity()
2668 helper->interfaces_count = *valuep + 1; in __ffs_data_do_entity()
2676 if (*valuep > helper->ffs->strings_count) in __ffs_data_do_entity()
2677 helper->ffs->strings_count = *valuep; in __ffs_data_do_entity()
2682 helper->eps_count++; in __ffs_data_do_entity()
2683 if (helper->eps_count >= FFS_MAX_EPS_COUNT) in __ffs_data_do_entity()
2686 if (!helper->ffs->eps_count && !helper->ffs->interfaces_count) in __ffs_data_do_entity()
2687 helper->ffs->eps_addrmap[helper->eps_count] = in __ffs_data_do_entity()
2689 else if (helper->ffs->eps_addrmap[helper->eps_count] != in __ffs_data_do_entity()
2897 struct ffs_desc_helper helper; in __ffs_data_got_descs() local
2966 helper.ffs = ffs; in __ffs_data_got_descs()
2970 helper.interfaces_count = 0; in __ffs_data_got_descs()
2971 helper.eps_count = 0; in __ffs_data_got_descs()
2973 __ffs_data_do_entity, &helper); in __ffs_data_got_descs()
2977 ffs->eps_count = helper.eps_count; in __ffs_data_got_descs()
2978 ffs->interfaces_count = helper.interfaces_count; in __ffs_data_got_descs()
2980 if (ffs->eps_count != helper.eps_count) { in __ffs_data_got_descs()
2984 if (ffs->interfaces_count != helper.interfaces_count) { in __ffs_data_got_descs()