Lines Matching refs:size_params
72 struct devlink_resource_size_params size_params; member
3607 if (size > resource->size_params.size_max) { in devlink_resource_validate_size()
3612 if (size < resource->size_params.size_min) { in devlink_resource_validate_size()
3617 div64_u64_rem(size, resource->size_params.size_granularity, &reminder); in devlink_resource_validate_size()
3660 struct devlink_resource_size_params *size_params; in devlink_resource_size_params_put() local
3662 size_params = &resource->size_params; in devlink_resource_size_params_put()
3664 size_params->size_granularity, DEVLINK_ATTR_PAD) || in devlink_resource_size_params_put()
3666 size_params->size_max, DEVLINK_ATTR_PAD) || in devlink_resource_size_params_put()
3668 size_params->size_min, DEVLINK_ATTR_PAD) || in devlink_resource_size_params_put()
3669 nla_put_u8(skb, DEVLINK_ATTR_RESOURCE_UNIT, size_params->unit)) in devlink_resource_size_params_put()
7892 const struct devlink_resource_size_params *size_params) in devl_resource_register() argument
7931 memcpy(&resource->size_params, size_params, in devl_resource_register()
7932 sizeof(resource->size_params)); in devl_resource_register()
7961 const struct devlink_resource_size_params *size_params) in devlink_resource_register() argument
7967 resource_id, parent_resource_id, size_params); in devlink_resource_register()