• Home
  • Raw
  • Download

Lines Matching refs:value

1933 				   struct devlink_dpipe_value *value)  in devlink_dpipe_value_put()  argument
1936 value->value_size, value->value)) in devlink_dpipe_value_put()
1938 if (value->mask) in devlink_dpipe_value_put()
1940 value->value_size, value->mask)) in devlink_dpipe_value_put()
1942 if (value->mapping_valid) in devlink_dpipe_value_put()
1944 value->mapping_value)) in devlink_dpipe_value_put()
1950 struct devlink_dpipe_value *value) in devlink_dpipe_action_value_put() argument
1952 if (!value->action) in devlink_dpipe_action_value_put()
1954 if (devlink_dpipe_action_put(skb, value->action)) in devlink_dpipe_action_value_put()
1956 if (devlink_dpipe_value_put(skb, value)) in devlink_dpipe_action_value_put()
1987 struct devlink_dpipe_value *value) in devlink_dpipe_match_value_put() argument
1989 if (!value->match) in devlink_dpipe_match_value_put()
1991 if (devlink_dpipe_match_put(skb, value->match)) in devlink_dpipe_match_value_put()
1993 if (devlink_dpipe_value_put(skb, value)) in devlink_dpipe_match_value_put()
2143 struct devlink_dpipe_value *value; in devlink_dpipe_entry_clear() local
2145 value = entry->action_values; in devlink_dpipe_entry_clear()
2148 kfree(value[value_index].value); in devlink_dpipe_entry_clear()
2149 kfree(value[value_index].mask); in devlink_dpipe_entry_clear()
2152 value = entry->match_values; in devlink_dpipe_entry_clear()
2155 kfree(value[value_index].value); in devlink_dpipe_entry_clear()
2156 kfree(value[value_index].mask); in devlink_dpipe_entry_clear()
3223 union devlink_param_value *value) in devlink_param_value_get_from_info() argument
3233 value->vu8 = nla_get_u8(info->attrs[DEVLINK_ATTR_PARAM_VALUE_DATA]); in devlink_param_value_get_from_info()
3236 value->vu16 = nla_get_u16(info->attrs[DEVLINK_ATTR_PARAM_VALUE_DATA]); in devlink_param_value_get_from_info()
3239 value->vu32 = nla_get_u32(info->attrs[DEVLINK_ATTR_PARAM_VALUE_DATA]); in devlink_param_value_get_from_info()
3247 strcpy(value->vstr, in devlink_param_value_get_from_info()
3251 value->vbool = info->attrs[DEVLINK_ATTR_PARAM_VALUE_DATA] ? in devlink_param_value_get_from_info()
3309 union devlink_param_value value; in __devlink_nl_cmd_param_set_doit() local
3321 err = devlink_param_value_get_from_info(param, info, &value); in __devlink_nl_cmd_param_set_doit()
3325 err = param->validate(devlink, param->id, value, info->extack); in __devlink_nl_cmd_param_set_doit()
3338 strcpy(param_item->driverinit_value.vstr, value.vstr); in __devlink_nl_cmd_param_set_doit()
3340 param_item->driverinit_value = value; in __devlink_nl_cmd_param_set_doit()
3345 ctx.val = value; in __devlink_nl_cmd_param_set_doit()
4106 int value[0]; member
4185 memcpy(&item->value, name, item->len); in devlink_fmsg_put_name()
4247 const void *value, u16 value_len, in devlink_fmsg_put_value() argument
4262 memcpy(&item->value, value, item->len); in devlink_fmsg_put_value()
4268 int devlink_fmsg_bool_put(struct devlink_fmsg *fmsg, bool value) in devlink_fmsg_bool_put() argument
4270 return devlink_fmsg_put_value(fmsg, &value, sizeof(value), NLA_FLAG); in devlink_fmsg_bool_put()
4274 int devlink_fmsg_u8_put(struct devlink_fmsg *fmsg, u8 value) in devlink_fmsg_u8_put() argument
4276 return devlink_fmsg_put_value(fmsg, &value, sizeof(value), NLA_U8); in devlink_fmsg_u8_put()
4280 int devlink_fmsg_u32_put(struct devlink_fmsg *fmsg, u32 value) in devlink_fmsg_u32_put() argument
4282 return devlink_fmsg_put_value(fmsg, &value, sizeof(value), NLA_U32); in devlink_fmsg_u32_put()
4286 int devlink_fmsg_u64_put(struct devlink_fmsg *fmsg, u64 value) in devlink_fmsg_u64_put() argument
4288 return devlink_fmsg_put_value(fmsg, &value, sizeof(value), NLA_U64); in devlink_fmsg_u64_put()
4292 int devlink_fmsg_string_put(struct devlink_fmsg *fmsg, const char *value) in devlink_fmsg_string_put() argument
4294 return devlink_fmsg_put_value(fmsg, value, strlen(value) + 1, in devlink_fmsg_string_put()
4299 int devlink_fmsg_binary_put(struct devlink_fmsg *fmsg, const void *value, in devlink_fmsg_binary_put() argument
4302 return devlink_fmsg_put_value(fmsg, value, value_len, NLA_BINARY); in devlink_fmsg_binary_put()
4307 bool value) in devlink_fmsg_bool_pair_put() argument
4315 err = devlink_fmsg_bool_put(fmsg, value); in devlink_fmsg_bool_pair_put()
4328 u8 value) in devlink_fmsg_u8_pair_put() argument
4336 err = devlink_fmsg_u8_put(fmsg, value); in devlink_fmsg_u8_pair_put()
4349 u32 value) in devlink_fmsg_u32_pair_put() argument
4357 err = devlink_fmsg_u32_put(fmsg, value); in devlink_fmsg_u32_pair_put()
4370 u64 value) in devlink_fmsg_u64_pair_put() argument
4378 err = devlink_fmsg_u64_put(fmsg, value); in devlink_fmsg_u64_pair_put()
4391 const char *value) in devlink_fmsg_string_pair_put() argument
4399 err = devlink_fmsg_string_put(fmsg, value); in devlink_fmsg_string_pair_put()
4412 const void *value, u16 value_len) in devlink_fmsg_binary_pair_put() argument
4420 err = devlink_fmsg_binary_put(fmsg, value, value_len); in devlink_fmsg_binary_pair_put()
4458 tmp = *(bool *) msg->value; in devlink_fmsg_item_fill_data()
4462 return nla_put_u8(skb, attrtype, *(u8 *) msg->value); in devlink_fmsg_item_fill_data()
4464 return nla_put_u32(skb, attrtype, *(u32 *) msg->value); in devlink_fmsg_item_fill_data()
4466 return nla_put_u64_64bit(skb, attrtype, *(u64 *) msg->value, in devlink_fmsg_item_fill_data()
4469 return nla_put_string(skb, attrtype, (char *) &msg->value); in devlink_fmsg_item_fill_data()
4471 return nla_put(skb, attrtype, msg->len, (void *) &msg->value); in devlink_fmsg_item_fill_data()
4511 (char *) &item->value); in devlink_fmsg_prepare_skb()