Lines Matching defs:config
238 struct config {
252 } __packed * config;
256 size = sizeof(*config);
260 config = kzalloc(size, GFP_KERNEL);
261 if (!config) {
266 rc = plpar_hcall(H_PKS_GET_CONFIG, retbuf, virt_to_phys(config), size);
273 version = config->version;
274 objoverhead = be16_to_cpu(config->objoverhead);
275 maxpwsize = be16_to_cpu(config->maxpwsize);
276 maxobjsize = be16_to_cpu(config->maxobjsize);
277 maxobjlabelsize = be16_to_cpu(config->maxobjlabelsize);
278 totalsize = be32_to_cpu(config->totalsize);
279 usedspace = be32_to_cpu(config->usedspace);
280 supportedpolicies = be32_to_cpu(config->supportedpolicies);
281 maxlargeobjectsize = be32_to_cpu(config->maxlargeobjectsize);
282 signedupdatealgorithms = be64_to_cpu(config->signedupdatealgorithms);
311 kfree(config);
347 // Unlike other config values, usedspace regularly changes as objects
351 pr_err("Couldn't get config, rc: %d\n", rc);