Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 25 of 61) sorted by relevance

123

/openbmc/u-boot/drivers/spi/
H A Dspi-mem-nodm.c21 if (op->data.nbytes) { in spi_mem_exec_op()
28 op_len = sizeof(op->cmd.opcode) + op->addr.nbytes + op->dummy.nbytes; in spi_mem_exec_op()
37 if (op->addr.nbytes) { in spi_mem_exec_op()
38 for (i = 0; i < op->addr.nbytes; i++) in spi_mem_exec_op()
40 (8 * (op->addr.nbytes - i - 1)); in spi_mem_exec_op()
42 pos += op->addr.nbytes; in spi_mem_exec_op()
45 if (op->dummy.nbytes) in spi_mem_exec_op()
46 memset(op_buf + pos, 0xff, op->dummy.nbytes); in spi_mem_exec_op()
60 ret = spi_xfer(slave, op->data.nbytes * 8, tx_buf, in spi_mem_exec_op()
71 tx_buf || rx_buf ? op->data.nbytes : 0, in spi_mem_exec_op()
[all …]
H A Dspi-mem.c42 if (!op->data.nbytes) in spi_controller_dma_map_mem_op_data()
55 return spi_map_buf(ctlr, dmadev, sgt, op->data.buf.in, op->data.nbytes, in spi_controller_dma_map_mem_op_data()
88 if (!op->data.nbytes) in spi_controller_dma_unmap_mem_op_data()
140 if (op->addr.nbytes && in spi_mem_default_supports_op()
144 if (op->dummy.nbytes && in spi_mem_default_supports_op()
148 if (op->data.nbytes && in spi_mem_default_supports_op()
260 tmpbufsize = sizeof(op->cmd.opcode) + op->addr.nbytes + in spi_mem_exec_op()
261 op->dummy.nbytes; in spi_mem_exec_op()
282 if (op->addr.nbytes) { in spi_mem_exec_op()
285 for (i = 0; i < op->addr.nbytes; i++) in spi_mem_exec_op()
[all …]
H A Dmxc_spi.c221 int nbytes = DIV_ROUND_UP(bitlen, 8); in spi_xchg_single() local
258 nbytes -= cnt; in spi_xchg_single()
263 while (nbytes > 0) { in spi_xchg_single()
279 nbytes -= 4; in spi_xchg_single()
300 nbytes = DIV_ROUND_UP(bitlen, 8); in spi_xchg_single()
302 cnt = nbytes % 32; in spi_xchg_single()
313 nbytes -= cnt; in spi_xchg_single()
316 while (nbytes > 0) { in spi_xchg_single()
321 cnt = min_t(u32, nbytes, sizeof(data)); in spi_xchg_single()
326 nbytes -= cnt; in spi_xchg_single()
H A Dspi-sunxi.c343 u8 nbytes; in sun4i_spi_xfer() local
363 nbytes = min(len, (priv->variant->fifo_depth - 1)); in sun4i_spi_xfer()
366 writel(SUN4I_BURST_CNT(nbytes), SPI_REG(priv, SPI_BC)); in sun4i_spi_xfer()
367 writel(SUN4I_XMIT_CNT(nbytes), SPI_REG(priv, SPI_TC)); in sun4i_spi_xfer()
370 writel(SUN4I_BURST_CNT(nbytes), in sun4i_spi_xfer()
374 sun4i_spi_fill_fifo(priv, nbytes); in sun4i_spi_xfer()
385 SUN4I_FIFO_STA_RF_CNT_BITS) >= nbytes), in sun4i_spi_xfer()
394 sun4i_spi_drain_fifo(priv, nbytes); in sun4i_spi_xfer()
396 len -= nbytes; in sun4i_spi_xfer()
H A Daspeed_spi.c198 .nbytes = __nbytes, \
206 .nbytes = __nbytes, \
214 .nbytes = __nbytes, \
221 .nbytes = __nbytes, \
244 u8 nbytes; member
249 u8 nbytes; member
254 unsigned int nbytes; member
830 op.addr.nbytes = len; in aspeed_spi_write_reg()
835 op.data.nbytes = 0; in aspeed_spi_write_reg()
902 op.addr.nbytes = cmdlen - 1 - op.dummy.nbytes; in aspeed_spi_read_user()
[all …]
/openbmc/u-boot/net/
H A Dchecksum.c13 unsigned compute_ip_checksum(const void *vptr, unsigned nbytes) in compute_ip_checksum() argument
19 while (nbytes > 1) { in compute_ip_checksum()
21 nbytes -= 2; in compute_ip_checksum()
23 if (nbytes == 1) { in compute_ip_checksum()
56 int ip_checksum_ok(const void *addr, unsigned nbytes) in ip_checksum_ok() argument
58 return !(compute_ip_checksum(addr, nbytes) & 0xfffe); in ip_checksum_ok()
/openbmc/u-boot/cmd/
H A Dfpgad.c35 ulong nbytes; in do_fpga_md() local
67 nbytes = length * sizeof(u16); in do_fpga_md()
69 ulong linebytes = (nbytes > DISP_LINE_LEN) ? in do_fpga_md()
70 DISP_LINE_LEN : nbytes; in do_fpga_md()
82 nbytes -= linebytes; in do_fpga_md()
88 } while (nbytes > 0); in do_fpga_md()
H A Dpci.c492 ulong i, nbytes, linebytes; in pci_cfg_display() local
503 nbytes = length * byte_size; in pci_cfg_display()
506 linebytes = (nbytes > DISP_LINE_LEN) ? DISP_LINE_LEN : nbytes; in pci_cfg_display()
519 nbytes -= linebytes; in pci_cfg_display()
524 } while (nbytes > 0); in pci_cfg_display()
556 int nbytes; in pci_cfg_modify() local
571 nbytes = cli_readline(" ? "); in pci_cfg_modify()
572 if (nbytes == 0 || (nbytes == 1 && console_buffer[0] == '-')) { in pci_cfg_modify()
577 addr += nbytes ? -size : size; in pci_cfg_modify()
578 nbytes = 1; in pci_cfg_modify()
[all …]
H A Daxi.c173 ulong nbytes; in do_axi_md() local
227 nbytes = length * unitsize; in do_axi_md()
229 ulong linebytes = (nbytes > DISP_LINE_LEN) ? in do_axi_md()
230 DISP_LINE_LEN : nbytes; in do_axi_md()
250 nbytes -= max(linebytes, 1UL); in do_axi_md()
255 } while (nbytes > 0); in do_axi_md()
H A Dmem.c965 int nbytes, size; in mod_mem() local
1008 nbytes = cli_readline(" ? "); in mod_mem()
1009 if (nbytes == 0 || (nbytes == 1 && console_buffer[0] == '-')) { in mod_mem()
1014 addr += nbytes ? -size : size; in mod_mem()
1015 nbytes = 1; in mod_mem()
1020 else if (nbytes == -2) { in mod_mem()
1031 nbytes = endp - console_buffer; in mod_mem()
1032 if (nbytes) { in mod_mem()
1050 } while (nbytes); in mod_mem()
H A Di2c.c515 int j, nbytes, linebytes; in do_i2c_md() local
573 nbytes = length; in do_i2c_md()
578 linebytes = (nbytes > DISP_LINE_LEN) ? DISP_LINE_LEN : nbytes; in do_i2c_md()
605 nbytes -= linebytes; in do_i2c_md()
606 } while (nbytes > 0); in do_i2c_md()
807 int nbytes; in mod_i2c_mem() local
876 nbytes = cli_readline(" ? "); in mod_i2c_mem()
877 if (nbytes == 0) { in mod_i2c_mem()
884 nbytes = size; in mod_i2c_mem()
889 else if (nbytes == -2) in mod_i2c_mem()
[all …]
/openbmc/u-boot/include/
H A Dspi-mem.h27 .nbytes = __nbytes, \
36 .nbytes = __nbytes, \
45 .nbytes = __nbytes, \
53 .nbytes = __nbytes, \
97 u8 nbytes; member
103 u8 nbytes; member
110 unsigned int nbytes; member
H A Dmalloc.h383 #define MALLOC_ZERO(charp, nbytes) \ argument
385 INTERNAL_SIZE_T mzsz = (nbytes); \
400 #define MALLOC_COPY(dest,src,nbytes) \ argument
402 INTERNAL_SIZE_T mcsz = (nbytes); \
422 #define MALLOC_ZERO(charp, nbytes) \ argument
425 long mctmp = (nbytes)/sizeof(INTERNAL_SIZE_T), mcn; \
439 #define MALLOC_COPY(dest,src,nbytes) \ argument
443 long mctmp = (nbytes)/sizeof(INTERNAL_SIZE_T), mcn; \
/openbmc/openbmc/poky/meta/recipes-kernel/lttng/lttng-tools/
H A D0001-compat-Define-off64_t-as-off_t-on-linux.patch46 -int compat_sync_file_range(int fd, off64_t offset, off64_t nbytes,
47 +int compat_sync_file_range(int fd, off_t offset, off_t nbytes,
52 return sync_file_range(fd, offset, nbytes, flags);
71 -extern int compat_sync_file_range(int fd, off64_t offset, off64_t nbytes,
72 +extern int compat_sync_file_range(int fd, off_t offset, off_t nbytes,
74 #define lttng_sync_file_range(fd, offset, nbytes, flags) \
75 compat_sync_file_range(fd, offset, nbytes, flags)
76 @@ -37,8 +33,8 @@ extern int compat_sync_file_range(int fd, off64_t offset, off64_t nbytes,
81 - off64_t nbytes, unsigned int flags)
83 + off_t nbytes, unsigned int flags)
/openbmc/u-boot/arch/x86/lib/
H A Dstring.c75 #define BYTE_COPY_FWD(dst_bp, src_bp, nbytes) \ argument
85 "0" (dst_bp), "1" (src_bp), "2" (nbytes) : \
89 #define WORD_COPY_FWD(dst_bp, src_bp, nbytes_left, nbytes) \ argument
99 "0" (dst_bp), "1" (src_bp), "2" ((nbytes) / 4) : \
101 (nbytes_left) = (nbytes) % 4; \
/openbmc/openbmc/poky/meta/recipes-devtools/strace/strace/
H A D0002-tests-Replace-off64_t-with-off_t.patch39 - const off64_t nbytes = 0xfacefeedcafef00dULL;
41 + const off_t nbytes = 0xfacefeedcafef00dULL;
44 int rc = sync_file_range(fd, offset, nbytes, flags);
54 - const off64_t nbytes = 0xfacefeedcafef00d;
56 + const off_t nbytes = 0xfacefeedcafef00d;
59 int rc = sync_file_range(fd, offset, nbytes, flags);
/openbmc/u-boot/drivers/mtd/nand/spi/
H A Dcore.c245 unsigned int nbytes = 0; in spinand_read_from_cache_op() local
255 nbytes = adjreq.datalen; in spinand_read_from_cache_op()
262 nbytes += nanddev_per_page_oobsize(nand); in spinand_read_from_cache_op()
277 while (nbytes) { in spinand_read_from_cache_op()
279 op.data.nbytes = nbytes; in spinand_read_from_cache_op()
288 buf += op.data.nbytes; in spinand_read_from_cache_op()
289 nbytes -= op.data.nbytes; in spinand_read_from_cache_op()
290 op.addr.val += op.data.nbytes; in spinand_read_from_cache_op()
318 unsigned int nbytes = 0; in spinand_write_to_cache_op() local
333 nbytes = adjreq.datalen; in spinand_write_to_cache_op()
[all …]
/openbmc/openbmc/meta-openembedded/meta-multimedia/recipes-multimedia/opusfile/opusfile/
H A DCVE-2022-47021.patch30 int nbytes;
34 nbytes=(int)(*_of->callbacks.read)(_of->stream,buffer,_nbytes);
35 OP_ASSERT(nbytes<=_nbytes);
36 if(OP_LIKELY(nbytes>0))ogg_sync_wrote(&_of->oy,nbytes);
/openbmc/qemu/block/
H A Dwin32-aio.c51 int nbytes; member
72 if (count < waiocb->nbytes) { in win32_aio_process_completion()
123 waiocb->nbytes = bytes; in win32_aio_submit()
149 rc = ReadFile(hfile, waiocb->buf, waiocb->nbytes, NULL, &waiocb->ov); in win32_aio_submit()
151 rc = WriteFile(hfile, waiocb->buf, waiocb->nbytes, NULL, &waiocb->ov); in win32_aio_submit()
/openbmc/qemu/tests/qtest/
H A Dqtest_aspeed.c44 uint8_t reg, size_t nbytes) in aspeed_i2c_read_n() argument
52 for (i = 0; i < nbytes; i++) { in aspeed_i2c_read_n()
83 uint8_t reg, uint32_t v, size_t nbytes) in aspeed_i2c_write_n() argument
89 for (i = 0; i < nbytes; i++) { in aspeed_i2c_write_n()
/openbmc/qemu/bsd-user/freebsd/
H A Dos-stat.h44 ssize_t freebsd11_getdirentries(int fd, char *buf, size_t nbytes, off_t *basep);
46 ssize_t freebsd11_getdents(int fd, char *buf, size_t nbytes);
454 abi_ulong arg2, abi_long nbytes) in do_freebsd11_getdents() argument
459 dirp = lock_user(VERIFY_WRITE, arg2, nbytes, 0); in do_freebsd11_getdents()
463 ret = get_errno(freebsd11_getdents(arg1, (char *)dirp, nbytes)); in do_freebsd11_getdents()
485 abi_ulong arg2, abi_long nbytes, abi_ulong arg4) in do_freebsd11_getdirentries() argument
491 dirp = lock_user(VERIFY_WRITE, arg2, nbytes, 0); in do_freebsd11_getdirentries()
495 ret = get_errno(freebsd11_getdirentries(arg1, (char *)dirp, nbytes, &basep)); in do_freebsd11_getdirentries()
524 abi_ulong arg2, abi_long nbytes, abi_ulong arg4) in do_freebsd_getdirentries() argument
530 dirp = lock_user(VERIFY_WRITE, arg2, nbytes, 0); in do_freebsd_getdirentries()
[all …]
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-devtools/nodejs/nodejs/
H A D0001-Do-not-use-glob-in-deps.patch17 + deps/simdutf/simdutf.gyp deps/ada/ada.gyp deps/nbytes/nbytes.gyp \
/openbmc/u-boot/drivers/mtd/
H A Dmtdcore.c1278 const u8 *oobbuf, int start, int nbytes, in mtd_ooblayout_get_bytes() argument
1292 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_get_bytes()
1295 nbytes -= cnt; in mtd_ooblayout_get_bytes()
1297 if (!nbytes) in mtd_ooblayout_get_bytes()
1321 u8 *oobbuf, int start, int nbytes, in mtd_ooblayout_set_bytes() argument
1335 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_set_bytes()
1338 nbytes -= cnt; in mtd_ooblayout_set_bytes()
1340 if (!nbytes) in mtd_ooblayout_set_bytes()
1364 int section = 0, ret, nbytes = 0; in mtd_ooblayout_count_bytes() local
1370 ret = nbytes; in mtd_ooblayout_count_bytes()
[all …]
/openbmc/ipmitool/src/plugins/lan/
H A Dmd5.c323 md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes) in md5_append() argument
326 int left = nbytes; in md5_append()
328 md5_word_t nbits = (md5_word_t)(nbytes << 3); in md5_append()
330 if (nbytes <= 0) in md5_append()
334 pms->count[1] += nbytes >> 29; in md5_append()
341 int copy = (offset + nbytes > 64 ? 64 - offset : nbytes); in md5_append()
/openbmc/qemu/crypto/
H A Dblock.c393 size_t nbytes; in do_qcrypto_block_cipher_encdec() local
414 nbytes = len > sectorsize ? sectorsize : len; in do_qcrypto_block_cipher_encdec()
415 if (func(cipher, buf, buf, nbytes, errp) < 0) { in do_qcrypto_block_cipher_encdec()
420 buf += nbytes; in do_qcrypto_block_cipher_encdec()
421 len -= nbytes; in do_qcrypto_block_cipher_encdec()

123