Lines Matching refs:nflags
31 int nflags; in ethnl_get_priv_flags_info() local
33 nflags = ops->get_sset_count(dev, ETH_SS_PRIV_FLAGS); in ethnl_get_priv_flags_info()
34 if (nflags < 0) in ethnl_get_priv_flags_info()
35 return nflags; in ethnl_get_priv_flags_info()
38 *names = kcalloc(nflags, ETH_GSTRING_LEN, GFP_KERNEL); in ethnl_get_priv_flags_info()
49 if (WARN_ONCE(nflags > 32, in ethnl_get_priv_flags_info()
51 netdev_name(dev), nflags)) in ethnl_get_priv_flags_info()
52 nflags = 32; in ethnl_get_priv_flags_info()
53 *count = nflags; in ethnl_get_priv_flags_info()
66 unsigned int nflags; in privflags_prepare_data() local
76 ret = ethnl_get_priv_flags_info(dev, &nflags, &names); in privflags_prepare_data()
81 data->n_priv_flags = nflags; in privflags_prepare_data()
149 unsigned int nflags; in ethnl_set_privflags() local
177 ret = ethnl_get_priv_flags_info(dev, &nflags, compact ? NULL : &names); in ethnl_set_privflags()
182 ret = ethnl_update_bitset32(&flags, nflags, in ethnl_set_privflags()