Home
last modified time | relevance | path

Searched refs:pbuf (Results 1 – 17 of 17) sorted by relevance

/openbmc/ipmitool/src/
H A Dipmishell.c101 char *ptr, *pbuf, **ap, *__argv[EXEC_ARG_SIZE]; in ipmi_shell_main() local
122 while ((pbuf = (char *)readline(RL_PROMPT)) != NULL) { in ipmi_shell_main()
123 if (strlen(pbuf) == 0) { in ipmi_shell_main()
124 free(pbuf); in ipmi_shell_main()
125 pbuf = NULL; in ipmi_shell_main()
128 if (strncmp(pbuf, "quit", 4) == 0 || in ipmi_shell_main()
129 strncmp(pbuf, "exit", 4) == 0) { in ipmi_shell_main()
130 free(pbuf); in ipmi_shell_main()
131 pbuf = NULL; in ipmi_shell_main()
134 if (strncmp(pbuf, "help", 4) == 0 || in ipmi_shell_main()
[all …]
/openbmc/u-boot/drivers/crypto/fsl/
H A Dfsl_hash.c161 int caam_hash(const unsigned char *pbuf, unsigned int buf_len, in caam_hash() argument
174 if (!IS_ALIGNED((uintptr_t)pbuf, ARCH_DMA_MINALIGN) || in caam_hash()
181 flush_dcache_range((unsigned long)pbuf, (unsigned long)pbuf + size); in caam_hash()
183 inline_cnstr_jobdesc_hash(desc, pbuf, buf_len, pout, in caam_hash()
201 void hw_sha256(const unsigned char *pbuf, unsigned int buf_len, in hw_sha256() argument
204 if (caam_hash(pbuf, buf_len, pout, SHA256)) in hw_sha256()
208 void hw_sha1(const unsigned char *pbuf, unsigned int buf_len, in hw_sha1() argument
211 if (caam_hash(pbuf, buf_len, pout, SHA1)) in hw_sha1()
/openbmc/u-boot/drivers/crypto/
H A Dace_sha.c27 int ace_sha_hash_digest(const unsigned char *pbuf, unsigned int buf_len, in ace_sha_hash_digest() argument
71 writel((unsigned int)pbuf, &ace_sha_reg->fc_hrdmas); in ace_sha_hash_digest()
102 void hw_sha256(const unsigned char *pbuf, unsigned int buf_len, in hw_sha256() argument
105 if (ace_sha_hash_digest(pbuf, buf_len, pout, ACE_SHA_TYPE_SHA256)) in hw_sha256()
109 void hw_sha1(const unsigned char *pbuf, unsigned int buf_len, in hw_sha1() argument
112 if (ace_sha_hash_digest(pbuf, buf_len, pout, ACE_SHA_TYPE_SHA1)) in hw_sha1()
H A Daspeed_hace_v1.c117 void hw_sha1(const unsigned char *pbuf, unsigned int buf_len, in hw_sha1() argument
122 rc = digest_object(pbuf, buf_len, pout, HACE_ALGO_SHA1); in hw_sha1()
127 void hw_sha256(const unsigned char *pbuf, unsigned int buf_len, in hw_sha256() argument
132 rc = digest_object(pbuf, buf_len, pout, HACE_ALGO_SHA256); in hw_sha256()
137 void hw_sha384(const unsigned char *pbuf, unsigned int buf_len, in hw_sha384() argument
142 rc = digest_object(pbuf, buf_len, pout, HACE_ALGO_SHA384); in hw_sha384()
147 void hw_sha512(const unsigned char *pbuf, unsigned int buf_len, in hw_sha512() argument
152 rc = digest_object(pbuf, buf_len, pout, HACE_ALGO_SHA512); in hw_sha512()
H A Daspeed_hace.c349 void hw_sha1(const unsigned char *pbuf, unsigned int buf_len, in hw_sha1() argument
354 rc = sha_digest(pbuf, buf_len, pout, ASPEED_SHA_TYPE_SHA1); in hw_sha1()
359 void hw_sha256(const unsigned char *pbuf, unsigned int buf_len, in hw_sha256() argument
364 rc = sha_digest(pbuf, buf_len, pout, ASPEED_SHA_TYPE_SHA256); in hw_sha256()
369 void hw_sha384(const unsigned char *pbuf, unsigned int buf_len, in hw_sha384() argument
374 rc = sha_digest(pbuf, buf_len, pout, ASPEED_SHA_TYPE_SHA384); in hw_sha384()
379 void hw_sha512(const unsigned char *pbuf, unsigned int buf_len, in hw_sha512() argument
384 rc = sha_digest(pbuf, buf_len, pout, ASPEED_SHA_TYPE_SHA512); in hw_sha512()
/openbmc/u-boot/drivers/block/
H A Dide.c135 volatile ushort *pbuf; in ide_output_data_shorts() local
137 pbuf = (ushort *)(ATA_CURR_BASE(dev) + ATA_DATA_REG); in ide_output_data_shorts()
141 (unsigned long) pbuf); in ide_output_data_shorts()
145 *pbuf = *dbuf++; in ide_output_data_shorts()
152 volatile ushort *pbuf; in ide_input_data_shorts() local
154 pbuf = (ushort *)(ATA_CURR_BASE(dev) + ATA_DATA_REG); in ide_input_data_shorts()
158 (unsigned long) pbuf); in ide_input_data_shorts()
162 *dbuf++ = *pbuf; in ide_input_data_shorts()
854 volatile ushort *pbuf = in ide_input_swap_data() local
859 (unsigned long) pbuf); in ide_input_swap_data()
[all …]
/openbmc/u-boot/drivers/mmc/
H A Dtmio-common.c159 char *pbuf, uint blksz) \
161 u##__width *buf = (u##__width *)pbuf; \
184 char *pbuf, uint blocksize) in tmio_sd_pio_read_one_block() argument
202 tmio_pio_read_fifo_64(priv, pbuf, blocksize); in tmio_sd_pio_read_one_block()
204 tmio_pio_read_fifo_16(priv, pbuf, blocksize); in tmio_sd_pio_read_one_block()
206 tmio_pio_read_fifo_32(priv, pbuf, blocksize); in tmio_sd_pio_read_one_block()
213 const char *pbuf, uint blksz)\
215 const u##__width *buf = (const u##__width *)pbuf; \
237 const char *pbuf, uint blocksize) in tmio_sd_pio_write_one_block() argument
251 tmio_pio_write_fifo_64(priv, pbuf, blocksize); in tmio_sd_pio_write_one_block()
[all …]
/openbmc/phosphor-debug-collector/
H A Ddump_offload.cpp198 std::filebuf* pbuf = infile.rdbuf(); in requestOffload() local
201 std::size_t size = pbuf->pubseekoff(0, infile.end, infile.in); in requestOffload()
202 pbuf->pubseekpos(0, infile.in); in requestOffload()
207 pbuf->sgetn(buffer.get(), static_cast<std::streamsize>(size)); in requestOffload()
/openbmc/u-boot/drivers/i2c/
H A Drk_i2c.c167 uchar *pbuf = buf; in rk_i2c_read() local
246 *pbuf++ = (rxdata >> (j * 8)) & 0xff; in rk_i2c_read()
267 uchar *pbuf = buf; in rk_i2c_write() local
294 if (i == 0 && j == 0 && pbuf == buf) { in rk_i2c_write()
296 } else if (i == 0 && j <= r_len && pbuf == buf) { in rk_i2c_write()
300 txdata |= (*pbuf++)<<(j * 8); in rk_i2c_write()
/openbmc/qemu/hw/usb/
H A Dcanokey.c86 void *base, uint8_t ep, uint8_t *pbuf, uint16_t size) in canokey_emu_prepare_receive() argument
90 key->ep_out[ep] = pbuf; in canokey_emu_prepare_receive()
96 void *base, uint8_t ep, const uint8_t *pbuf, uint16_t size) in canokey_emu_transmit() argument
102 pbuf, size); in canokey_emu_transmit()
/openbmc/u-boot/drivers/net/
H A Dne2000_base.c655 static u8 *pbuf = NULL; variable
666 dp83902a_recv(&pbuf[0], len); in uboot_push_packet_len()
669 net_process_received_packet(&pbuf[0], len); in uboot_push_packet_len()
688 if (!pbuf) { in ne2k_setup_driver()
689 pbuf = malloc(2000); in ne2k_setup_driver()
690 if (!pbuf) { in ne2k_setup_driver()
H A Dftmac110.h139 uint32_t pbuf; member
H A Dftmac110.c442 chip->txd[i].pbuf = cpu_to_le32(virt_to_phys(va)); in ftmac110_initialize()
463 chip->rxd[i].pbuf = cpu_to_le32(virt_to_phys(va)); in ftmac110_initialize()
/openbmc/qemu/net/
H A Dtap-win32.c568 uint8_t **pbuf, int max_size) in tap_win32_read() argument
575 *pbuf = buffer->buffer; in tap_win32_read()
586 uint8_t *pbuf) in tap_win32_free_buffer() argument
588 tun_buffer_t* buffer = (tun_buffer_t*)pbuf; in tap_win32_free_buffer()
/openbmc/u-boot/drivers/mtd/ubi/
H A Dbuild.c1453 char *pbuf = &buf[0]; in ubi_mtd_param_parse() local
1484 tokens[i] = strsep(&pbuf, ","); in ubi_mtd_param_parse()
1486 if (pbuf) { in ubi_mtd_param_parse()
/openbmc/qemu/hw/scsi/
H A Desp.c453 const uint8_t *pbuf; in esp_cdb_ready() local
461 pbuf = fifo8_peek_bufptr(&s->cmdfifo, len, &n); in esp_cdb_ready()
471 cdblen = scsi_cdb_length((uint8_t *)&pbuf[s->cmdfifo_cdb_offset]); in esp_cdb_ready()
/openbmc/u-boot/fs/ubifs/
H A Drecovery.c101 static int get_master_node(const struct ubifs_info *c, int lnum, void **pbuf, in get_master_node() argument
177 *pbuf = sbuf; in get_master_node()