Home
last modified time | relevance | path

Searched refs:size_params (Results 1 – 2 of 2) sorted by relevance

/net/dsa/
Ddsa.c398 const struct devlink_resource_size_params *size_params) in dsa_devlink_resource_register() argument
403 size_params); in dsa_devlink_resource_register()
/net/core/
Ddevlink.c3573 if (size > resource->size_params.size_max) { in devlink_resource_validate_size()
3578 if (size < resource->size_params.size_min) { in devlink_resource_validate_size()
3583 div64_u64_rem(size, resource->size_params.size_granularity, &reminder); in devlink_resource_validate_size()
3626 struct devlink_resource_size_params *size_params; in devlink_resource_size_params_put() local
3628 size_params = &resource->size_params; in devlink_resource_size_params_put()
3630 size_params->size_granularity, DEVLINK_ATTR_PAD) || in devlink_resource_size_params_put()
3632 size_params->size_max, DEVLINK_ATTR_PAD) || in devlink_resource_size_params_put()
3634 size_params->size_min, DEVLINK_ATTR_PAD) || in devlink_resource_size_params_put()
3635 nla_put_u8(skb, DEVLINK_ATTR_RESOURCE_UNIT, size_params->unit)) in devlink_resource_size_params_put()
9734 const struct devlink_resource_size_params *size_params) in devlink_resource_register() argument
[all …]