Searched refs:size_params (Results 1 – 2 of 2) sorted by relevance
398 const struct devlink_resource_size_params *size_params) in dsa_devlink_resource_register() argument403 size_params); in dsa_devlink_resource_register()
3573 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() local3628 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 …]