Searched refs:gfeatures (Results 1 – 1 of 1) sorted by relevance
582 _cleanup_free_ struct ethtool_gfeatures *gfeatures = NULL; in get_features() local590 gfeatures = malloc0(offsetof(struct ethtool_gfeatures, features) + in get_features()591 DIV_ROUND_UP(n_features, 32U) * sizeof(gfeatures->features[0])); in get_features()592 if (!gfeatures) in get_features()595 gfeatures->cmd = ETHTOOL_GFEATURES; in get_features()596 gfeatures->size = DIV_ROUND_UP(n_features, 32U); in get_features()599 .ifr_data = (void*) gfeatures, in get_features()606 *ret = TAKE_PTR(gfeatures); in get_features()612 const struct ethtool_gfeatures *gfeatures, in set_features_bit() argument618 assert(gfeatures); in set_features_bit()[all …]