/openbmc/u-boot/drivers/tpm/ |
H A D | tpm_tis_sandbox.c | 179 static int sandbox_tpm_xfer(struct udevice *dev, const uint8_t *sendbuf, in sandbox_tpm_xfer() argument 188 code = get_unaligned_be32(sendbuf + sizeof(uint16_t) + in sandbox_tpm_xfer() 193 print_buffer(0, sendbuf, 1, send_size, 0); in sandbox_tpm_xfer() 197 type = get_unaligned_be32(sendbuf + 14); in sandbox_tpm_xfer() 200 index = get_unaligned_be32(sendbuf + 18); in sandbox_tpm_xfer() 235 index = get_unaligned_be32(sendbuf + 18); in sandbox_tpm_xfer() 247 index = get_unaligned_be32(sendbuf + 10); in sandbox_tpm_xfer() 248 length = get_unaligned_be32(sendbuf + 18); in sandbox_tpm_xfer() 253 memcpy(&tpm->nvdata[seq].data, sendbuf + 22, length); in sandbox_tpm_xfer() 259 index = get_unaligned_be32(sendbuf + 10); in sandbox_tpm_xfer() [all …]
|
H A D | tpm-uclass.c | 84 int tpm_xfer(struct udevice *dev, const uint8_t *sendbuf, size_t send_size, in tpm_xfer() argument 94 return ops->xfer(dev, sendbuf, send_size, recvbuf, recv_size); in tpm_xfer() 100 count = get_unaligned_be32(sendbuf + TPM_CMD_COUNT_BYTE); in tpm_xfer() 101 ordinal = get_unaligned_be32(sendbuf + TPM_CMD_ORDINAL_BYTE); in tpm_xfer() 113 ret = ops->send(dev, sendbuf, send_size); in tpm_xfer()
|
H A D | tpm_atmel_twi.c | 71 const uint8_t *sendbuf, size_t send_size, in tpm_atmel_twi_xfer() argument 80 print_buffer(0, (void *)sendbuf, 1, send_size, 0); in tpm_atmel_twi_xfer() 84 res = i2c_write(0x29, 0, 0, (uchar *)sendbuf, send_size); in tpm_atmel_twi_xfer() 86 res = dm_i2c_write(dev, 0, sendbuf, send_size); in tpm_atmel_twi_xfer()
|
H A D | tpm2_tis_sandbox.c | 254 static int sandbox_tpm2_xfer(struct udevice *dev, const u8 *sendbuf, in sandbox_tpm2_xfer() argument 260 const u8 *sent = sendbuf; in sandbox_tpm2_xfer() 570 pcr_index = get_unaligned_be32(sendbuf + sizeof(tag) + in sandbox_tpm2_xfer()
|
/openbmc/linux/drivers/input/joystick/ |
H A D | psxpad-spi.c | 71 u8 sendbuf[0x20] ____cacheline_aligned; member 78 .tx_buf = pad->sendbuf, in psxpad_command() 104 memcpy(pad->sendbuf, PSX_CMD_ENTER_CFG, sizeof(PSX_CMD_ENTER_CFG)); in psxpad_control_motor() 113 memcpy(pad->sendbuf, PSX_CMD_ENABLE_MOTOR, in psxpad_control_motor() 115 pad->sendbuf[3] = pad->motor1enable ? 0x00 : 0xFF; in psxpad_control_motor() 116 pad->sendbuf[4] = pad->motor2enable ? 0x80 : 0xFF; in psxpad_control_motor() 125 memcpy(pad->sendbuf, PSX_CMD_EXIT_CFG, sizeof(PSX_CMD_EXIT_CFG)); in psxpad_control_motor() 216 memcpy(pad->sendbuf, PSX_CMD_POLL, sizeof(PSX_CMD_POLL)); in psxpad_spi_poll() 217 pad->sendbuf[3] = pad->motor1enable ? pad->motor1level : 0x00; in psxpad_spi_poll() 218 pad->sendbuf[4] = pad->motor2enable ? pad->motor2level : 0x00; in psxpad_spi_poll()
|
/openbmc/linux/drivers/mtd/maps/ |
H A D | vmu-flash.c | 118 __be32 sendbuf; in maple_vmu_read_block() local 145 sendbuf = cpu_to_be32(partition << 24 | x << 16 | num); in maple_vmu_read_block() 170 MAPLE_COMMAND_BREAD, 2, &sendbuf); in maple_vmu_read_block() 192 kfree(mdev->mq->sendbuf); in maple_vmu_read_block() 193 mdev->mq->sendbuf = NULL; in maple_vmu_read_block() 233 __be32 *sendbuf; in maple_vmu_write_block() local 242 sendbuf = kmalloc(phaselen + 4, GFP_KERNEL); in maple_vmu_write_block() 243 if (!sendbuf) { in maple_vmu_write_block() 248 sendbuf[0] = cpu_to_be32(partition << 24 | x << 16 | num); in maple_vmu_write_block() 249 memcpy(&sendbuf[1], buf + phaselen * x, phaselen); in maple_vmu_write_block() [all …]
|
/openbmc/u-boot/include/ |
H A D | tpm-common.h | 141 int (*send)(struct udevice *dev, const u8 *sendbuf, size_t send_size); 183 int (*xfer)(struct udevice *dev, const u8 *sendbuf, size_t send_size, 279 int tpm_xfer(struct udevice *dev, const u8 *sendbuf, size_t send_size,
|
H A D | tpm-v2.h | 919 u32 tpm2_submit_command(struct udevice *dev, const u8 *sendbuf,
|
/openbmc/linux/drivers/gpu/drm/udl/ |
H A D | udl_main.c | 104 void *sendbuf; in udl_select_std_channel() local 108 sendbuf = kmemdup(set_def_chn, sizeof(set_def_chn), GFP_KERNEL); in udl_select_std_channel() 109 if (!sendbuf) in udl_select_std_channel() 115 sendbuf, sizeof(set_def_chn), in udl_select_std_channel() 117 kfree(sendbuf); in udl_select_std_channel()
|
/openbmc/linux/drivers/sh/maple/ |
H A D | maple.c | 160 void *sendbuf = NULL; in maple_add_packet() local 163 sendbuf = kcalloc(length, 4, GFP_KERNEL); in maple_add_packet() 164 if (!sendbuf) { in maple_add_packet() 168 ((__be32 *)sendbuf)[0] = cpu_to_be32(function); in maple_add_packet() 174 memcpy(sendbuf + 4, data, (length - 1) * 4); in maple_add_packet() 175 mdev->mq->sendbuf = sendbuf; in maple_add_packet() 249 unsigned long *lsendbuf = mq->sendbuf; in maple_build_block() 647 kfree(mq->sendbuf); in maple_dma_handler()
|
/openbmc/linux/include/linux/ |
H A D | maple.h | 52 void *sendbuf, *recvbuf_p2; member
|
/openbmc/linux/fs/nfsd/ |
H A D | nfs3proc.c | 557 unsigned int sendbuf = min_t(unsigned int, rqstp->rq_res.buflen, in nfsd3_init_dirlist_pages() local 563 buf->buflen = clamp(count, (u32)(XDR_UNIT * 2), sendbuf); in nfsd3_init_dirlist_pages()
|
/openbmc/u-boot/lib/ |
H A D | tpm-v2.c | 1516 u32 tpm2_submit_command(struct udevice *dev, const u8 *sendbuf, in tpm2_submit_command() argument 1519 return tpm_sendrecv_command(dev, sendbuf, recvbuf, recv_size); in tpm2_submit_command()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | tls.c | 1286 int sendbuf = 100; in TEST_F() local 1298 &sendbuf, sizeof(sendbuf)), 0); in TEST_F()
|
/openbmc/linux/drivers/net/wireless/cisco/ |
H A D | airo.c | 1976 u8 *sendbuf; in mpi_send_packet() local 2009 sendbuf = ai->txfids[0].virtual_host_addr + in mpi_send_packet() 2026 memcpy (sendbuf, buffer, sizeof(etherHead)); in mpi_send_packet() 2028 sendbuf += sizeof(etherHead); in mpi_send_packet() 2029 memcpy (sendbuf, &pMic, sizeof(pMic)); in mpi_send_packet() 2030 sendbuf += sizeof(pMic); in mpi_send_packet() 2031 memcpy (sendbuf, buffer, len - sizeof(etherHead)); in mpi_send_packet() 2038 memcpy(sendbuf, buffer, len); in mpi_send_packet()
|
/openbmc/linux/Documentation/networking/ |
H A D | rds.rst | 138 is less than the sendbuf size).
|