Lines Matching refs:policy_sz
219 memset(dev->shbuf, 0, dev->policy_sz); in amd_pmf_invoke_cmd_enact()
260 dev_dbg(dev->dev, "Policy Binary size: %u bytes\n", dev->policy_sz); in amd_pmf_invoke_cmd_init()
261 memset(dev->shbuf, 0, dev->policy_sz); in amd_pmf_invoke_cmd_init()
272 in->policies_table.table_size = dev->policy_sz; in amd_pmf_invoke_cmd_init()
274 memcpy(in->policies_table.table, dev->policy_buf, dev->policy_sz); in amd_pmf_invoke_cmd_init()
299 if (dev->policy_sz < POLICY_COOKIE_OFFSET + sizeof(*header)) in amd_pmf_start_policy_engine()
309 if (dev->policy_sz < header->length + 512) in amd_pmf_start_policy_engine()
313 dev->policy_sz = header->length + 512; in amd_pmf_start_policy_engine()
336 dev->policy_sz, false); in amd_pmf_hex_dump_pb()
357 dev->policy_sz = length; in amd_pmf_get_pb_data()
455 size = sizeof(struct ta_pmf_shared_memory) + dev->policy_sz; in amd_pmf_tee_init()
515 dev->policy_base = devm_ioremap(dev->dev, dev->policy_addr, dev->policy_sz); in amd_pmf_init_smart_pc()
521 dev->policy_buf = kzalloc(dev->policy_sz, GFP_KERNEL); in amd_pmf_init_smart_pc()
527 memcpy_fromio(dev->policy_buf, dev->policy_base, dev->policy_sz); in amd_pmf_init_smart_pc()