Home
last modified time | relevance | path

Searched refs:res (Results 1 – 7 of 7) sorted by relevance

/devicemodel/hw/platform/tpm/
A Dtpm_emulator.c533 ptm_res res = 0; in swtpm_cmdchan_create() local
542 sizeof(res), &sv[1], 1) < 0 || res != 0) { in swtpm_cmdchan_create()
559 ptm_res res; in swtpm_start() local
573 if (res) { in swtpm_start()
586 ptm_res res = 0; in swtpm_stop() local
593 res = __builtin_bswap32(res); in swtpm_stop()
594 if (res) { in swtpm_stop()
665 ptm_res res = 0; in swtpm_shutdown() local
668 &res, 0, sizeof(res), NULL, 0) < 0) { in swtpm_shutdown()
670 } else if (res != 0) { in swtpm_shutdown()
[all …]
A Dtpm.c166 tpm2dev->dev.res[0].host_pa = tpm2_buffer_hpa; in init_tpm2_pt()
167 tpm2dev->dev.res[0].user_vm_pa = tpm2_buffer_hpa; in init_tpm2_pt()
168 tpm2dev->dev.res[0].size = tpm2_buffer_size; in init_tpm2_pt()
173 tpm2dev->dev.res[1].host_pa = tpm2.lasa; in init_tpm2_pt()
174 tpm2dev->dev.res[1].user_vm_pa = base; in init_tpm2_pt()
175 tpm2dev->dev.res[1].size = tpm2.laml; in init_tpm2_pt()
199 base = d ? (uint32_t)d->res[0].host_pa : 0U; in get_tpm_crb_mmio_addr()
210 return (pt_tpm2 && d) ? d->res[0].size : TPM_CRB_MMIO_SIZE; in get_tpm_crb_mmio_size()
216 return (pt_tpm2 && d && d->res[1].host_pa) ? d->res[1].size : 0U; in get_tpm2_table_minimal_log_length()
222 return (pt_tpm2 && d && d->res[1].host_pa) ? d->res[1].user_vm_pa : 0UL; in get_tpm2_table_log_address()
/devicemodel/hw/pci/virtio/
A Dvirtio_mei.c1191 vmei_hbm_response(vmei, &res, sizeof(res)); in vmei_hbm_handler()
1217 vmei_hbm_response(vmei, &res, sizeof(res)); in vmei_hbm_handler()
1264 vmei_hbm_response(vmei, &res, sizeof(res)); in vmei_hbm_handler()
1275 vmei_hbm_response(vmei, &res, sizeof(res)); in vmei_hbm_handler()
1289 vmei_hbm_response(vmei, &res, sizeof(res)); in vmei_hbm_handler()
1323 memset(&res, 0, sizeof(res)); in vmei_hbm_handler()
1329 vmei_hbm_response(vmei, &res, sizeof(res)); in vmei_hbm_handler()
1337 memset(&res, 0, sizeof(res)); in vmei_hbm_handler()
1340 vmei_hbm_response(vmei, &res, sizeof(res)); in vmei_hbm_handler()
1353 memset(&res, 0, sizeof(res)); in vmei_hbm_handler()
[all …]
A Dvirtio_input.c66 uint32_t res; member
504 cfg->u.abs.res = abs.resolution; in virtio_input_get_absinfo()
/devicemodel/hw/mmio/
A Dcore.c223 dev->dev.res[0].host_pa = base_hpa; in create_pt_mmiodev()
224 dev->dev.res[0].size = size; in create_pt_mmiodev()
250 if (mmiodev->res[0].user_vm_pa == 0UL) { in init_mmio_dev()
254 ret = mmio_dev_alloc_gpa_resource32(&base, mmiodev->res[0].size); in init_mmio_dev()
257 mmiodev->res[0].user_vm_pa = base; in init_mmio_dev()
278 mmio_devs[i].dev.res[0].host_pa, mmio_devs[i].dev.res[0].user_vm_pa, in init_mmio_devs()
279 mmio_devs[i].dev.res[0].size, err); in init_mmio_devs()
/devicemodel/core/
A Dmem.c79 struct mmio_rb_range find, *res; in mmio_rb_lookup() local
83 res = RB_FIND(mmio_rb_tree, rbt, &find); in mmio_rb_lookup()
85 if (res != NULL) { in mmio_rb_lookup()
86 *entry = res; in mmio_rb_lookup()
/devicemodel/include/
A Dtree.h697 struct type *res = NULL; \
702 res = tmp; \
710 return res; \

Completed in 21 milliseconds