Lines Matching refs:optval
139 static inline void __bond_opt_init(struct bond_opt_value *optval, in __bond_opt_init() argument
143 memset(optval, 0, sizeof(*optval)); in __bond_opt_init()
144 optval->value = ULLONG_MAX; in __bond_opt_init()
146 optval->value = value; in __bond_opt_init()
148 optval->string = string; in __bond_opt_init()
151 memcpy(optval->extra, extra, extra_len); in __bond_opt_init()
153 #define bond_opt_initval(optval, value) __bond_opt_init(optval, NULL, value, NULL, 0) argument
154 #define bond_opt_initstr(optval, str) __bond_opt_init(optval, str, ULLONG_MAX, NULL, 0) argument
155 #define bond_opt_initextra(optval, extra, extra_len) \ argument
156 __bond_opt_init(optval, NULL, ULLONG_MAX, extra, extra_len)
157 #define bond_opt_slave_initval(optval, slave_dev, value) \ argument
158 __bond_opt_init(optval, NULL, value, slave_dev, sizeof(struct net_device *))