Home
last modified time | relevance | path

Searched refs:rsp_off (Results 1 – 2 of 2) sorted by relevance

/freebsd/sys/dev/tpm/
H A Dtpm_crb.c81 bus_size_t rsp_off; member
138 if (crb_sc->rsp_off > base_addr && crb_sc->rsp_off < base_addr + length) in tpmcrb_fix_buff_offsets()
139 crb_sc->rsp_off -= base_addr; in tpmcrb_fix_buff_offsets()
188 crb_sc->rsp_off = TPM_READ_8(sc->dev, TPM_CRB_CTRL_RSP_ADDR); in tpmcrb_attach()
190 crb_sc->rsp_off = TPM_READ_4(sc->dev, TPM_CRB_CTRL_RSP_ADDR); in tpmcrb_attach()
191 crb_sc->rsp_off |= ((uint64_t) TPM_READ_4(sc->dev, TPM_CRB_CTRL_RSP_HADDR) << 32); in tpmcrb_attach()
208 if (crb_sc->rsp_off == crb_sc->cmd_off) { in tpmcrb_attach()
383 bus_read_region_stream_1(sc->mem_res, crb_sc->rsp_off, in tpmcrb_transmit()
394 bus_read_region_stream_1(sc->mem_res, crb_sc->rsp_off + TPM_HEADER_SIZE, in tpmcrb_transmit()
/freebsd/usr.sbin/bhyve/
H A Dtpm_intf_crb.c234 const uint64_t rsp_off = rsp_addr - TPM_CRB_DATA_BUFFER_ADDRESS; in tpm_crb_thread() local
238 rsp_off > TPM_CRB_DATA_BUFFER_SIZE || in tpm_crb_thread()
239 rsp_off + rsp_size > TPM_CRB_DATA_BUFFER_SIZE) { in tpm_crb_thread()
282 be32toh(req->len), &rsp[rsp_off], rsp_size); in tpm_crb_thread()
286 memcpy(&crb->regs.data_buffer[rsp_off], &rsp[rsp_off], rsp_size); in tpm_crb_thread()