Home
last modified time | relevance | path

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

12

/rk3399_rockchip-uboot/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()
146 if (op->addr.nbytes && in spi_mem_default_supports_op()
150 if (op->dummy.nbytes && in spi_mem_default_supports_op()
154 if (op->data.nbytes && in spi_mem_default_supports_op()
265 tmpbufsize = sizeof(op->cmd.opcode) + op->addr.nbytes + in spi_mem_exec_op()
266 op->dummy.nbytes; in spi_mem_exec_op()
287 if (op->addr.nbytes) { in spi_mem_exec_op()
290 for (i = 0; i < op->addr.nbytes; i++) in spi_mem_exec_op()
[all …]
H A Drockchip_sfc.c440 if (unlikely(op->dummy.nbytes && !op->addr.nbytes)) { in rockchip_sfc_adjust_op_work()
445 op->addr.nbytes = op->dummy.nbytes; in rockchip_sfc_adjust_op_work()
449 op->dummy.nbytes = 0; in rockchip_sfc_adjust_op_work()
488 if (op->addr.nbytes) { in rockchip_sfc_xfer_setup()
489 if (op->addr.nbytes == 4) { in rockchip_sfc_xfer_setup()
491 } else if (op->addr.nbytes == 3) { in rockchip_sfc_xfer_setup()
495 writel(op->addr.nbytes * 8 - 1, sfc->regbase + plat->cs * SFC_CS1_REG_OFFSET + SFC_ABIT); in rockchip_sfc_xfer_setup()
502 if (op->dummy.nbytes) { in rockchip_sfc_xfer_setup()
504 cmd |= op->dummy.nbytes * 2 << SFC_CMD_DUMMY_SHIFT; in rockchip_sfc_xfer_setup()
506 cmd |= op->dummy.nbytes * 4 << SFC_CMD_DUMMY_SHIFT; in rockchip_sfc_xfer_setup()
[all …]
H A Dmxc_spi.c222 int nbytes = DIV_ROUND_UP(bitlen, 8); in spi_xchg_single() local
259 nbytes -= cnt; in spi_xchg_single()
264 while (nbytes > 0) { in spi_xchg_single()
280 nbytes -= 4; in spi_xchg_single()
301 nbytes = DIV_ROUND_UP(bitlen, 8); in spi_xchg_single()
303 cnt = nbytes % 32; in spi_xchg_single()
314 nbytes -= cnt; in spi_xchg_single()
317 while (nbytes > 0) { in spi_xchg_single()
322 cnt = min_t(u32, nbytes, sizeof(data)); in spi_xchg_single()
327 nbytes -= cnt; in spi_xchg_single()
/rk3399_rockchip-uboot/net/
H A Dchecksum.c14 unsigned compute_ip_checksum(const void *vptr, unsigned nbytes) in compute_ip_checksum() argument
20 while (nbytes > 1) { in compute_ip_checksum()
22 nbytes -= 2; in compute_ip_checksum()
24 if (nbytes == 1) { in compute_ip_checksum()
57 int ip_checksum_ok(const void *addr, unsigned nbytes) in ip_checksum_ok() argument
59 return !(compute_ip_checksum(addr, nbytes) & 0xfffe); in ip_checksum_ok()
/rk3399_rockchip-uboot/cmd/
H A Dfpgad.c36 ulong nbytes; in do_fpga_md() local
68 nbytes = length * sizeof(u16); in do_fpga_md()
70 ulong linebytes = (nbytes > DISP_LINE_LEN) ? in do_fpga_md()
71 DISP_LINE_LEN : nbytes; in do_fpga_md()
83 nbytes -= linebytes; in do_fpga_md()
89 } while (nbytes > 0); in do_fpga_md()
H A Dpci.c352 ulong i, nbytes, linebytes; in pci_cfg_display() local
363 nbytes = length * byte_size; in pci_cfg_display()
366 linebytes = (nbytes > DISP_LINE_LEN) ? DISP_LINE_LEN : nbytes; in pci_cfg_display()
375 nbytes -= linebytes; in pci_cfg_display()
380 } while (nbytes > 0); in pci_cfg_display()
389 int nbytes; in pci_cfg_modify() local
400 nbytes = cli_readline(" ? "); in pci_cfg_modify()
401 if (nbytes == 0 || (nbytes == 1 && console_buffer[0] == '-')) { in pci_cfg_modify()
406 addr += nbytes ? -size : size; in pci_cfg_modify()
407 nbytes = 1; in pci_cfg_modify()
[all …]
H A Dmem.c968 int nbytes, size; in mod_mem() local
1011 nbytes = cli_readline(" ? "); in mod_mem()
1012 if (nbytes == 0 || (nbytes == 1 && console_buffer[0] == '-')) { in mod_mem()
1017 addr += nbytes ? -size : size; in mod_mem()
1018 nbytes = 1; in mod_mem()
1023 else if (nbytes == -2) { in mod_mem()
1034 nbytes = endp - console_buffer; in mod_mem()
1035 if (nbytes) { in mod_mem()
1053 } while (nbytes); in mod_mem()
H A Di2c.c518 int j, nbytes, linebytes; in do_i2c_md() local
576 nbytes = length; in do_i2c_md()
581 linebytes = (nbytes > DISP_LINE_LEN) ? DISP_LINE_LEN : nbytes; in do_i2c_md()
608 nbytes -= linebytes; in do_i2c_md()
609 } while (nbytes > 0); in do_i2c_md()
810 int nbytes; in mod_i2c_mem() local
879 nbytes = cli_readline(" ? "); in mod_i2c_mem()
880 if (nbytes == 0) { in mod_i2c_mem()
887 nbytes = size; in mod_i2c_mem()
892 else if (nbytes == -2) in mod_i2c_mem()
[all …]
/rk3399_rockchip-uboot/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; \
H A Dnet.h614 unsigned compute_ip_checksum(const void *addr, unsigned nbytes);
635 int ip_checksum_ok(const void *addr, unsigned nbytes);
/rk3399_rockchip-uboot/arch/x86/lib/
H A Dstring.c76 #define BYTE_COPY_FWD(dst_bp, src_bp, nbytes) \ argument
86 "0" (dst_bp), "1" (src_bp), "2" (nbytes) : \
90 #define WORD_COPY_FWD(dst_bp, src_bp, nbytes_left, nbytes) \ argument
100 "0" (dst_bp), "1" (src_bp), "2" ((nbytes) / 4) : \
102 (nbytes_left) = (nbytes) % 4; \
/rk3399_rockchip-uboot/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()
263 nbytes = adjreq.datalen; in spinand_read_from_cache_op()
270 nbytes += nanddev_per_page_oobsize(nand); in spinand_read_from_cache_op()
285 while (nbytes) { in spinand_read_from_cache_op()
287 op.data.nbytes = nbytes; in spinand_read_from_cache_op()
296 buf += op.data.nbytes; in spinand_read_from_cache_op()
297 nbytes -= op.data.nbytes; in spinand_read_from_cache_op()
298 op.addr.val += op.data.nbytes; in spinand_read_from_cache_op()
325 unsigned int nbytes = 0; in spinand_write_to_cache_op() local
[all …]
/rk3399_rockchip-uboot/drivers/mtd/nand/
H A Dbbt.c110 unsigned int nbytes = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_read_bbt() local
127 bbt_page_num = (sizeof(struct nanddev_bbt_info) + nbytes + in nanddev_read_bbt()
140 bbt_info = (struct nanddev_bbt_info *)(data_buf + nbytes); in nanddev_read_bbt()
169 !bbt_check_hash(data_buf, nbytes + sizeof(struct nanddev_bbt_info) - 4, bbt_info->hash)) { in nanddev_read_bbt()
180 memcpy(nand->bbt.cache, data_buf, nbytes); in nanddev_read_bbt()
185 bbt_dbg_hex("bbt", data_buf, nbytes + sizeof(struct nanddev_bbt_info)); in nanddev_read_bbt()
193 memcpy(temp_buf, nand->bbt.cache, nbytes); in nanddev_read_bbt()
194 memcpy(nand->bbt.cache, data_buf, nbytes); in nanddev_read_bbt()
205 memcpy(nand->bbt.cache, temp_buf, nbytes); in nanddev_read_bbt()
222 unsigned int nbytes = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_write_bbt() local
[all …]
/rk3399_rockchip-uboot/drivers/mtd/
H A Dmtdcore.c1279 const u8 *oobbuf, int start, int nbytes, in mtd_ooblayout_get_bytes() argument
1293 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_get_bytes()
1296 nbytes -= cnt; in mtd_ooblayout_get_bytes()
1298 if (!nbytes) in mtd_ooblayout_get_bytes()
1322 u8 *oobbuf, int start, int nbytes, in mtd_ooblayout_set_bytes() argument
1336 cnt = min_t(int, nbytes, oobregion.length); in mtd_ooblayout_set_bytes()
1339 nbytes -= cnt; in mtd_ooblayout_set_bytes()
1341 if (!nbytes) in mtd_ooblayout_set_bytes()
1365 int section = 0, ret, nbytes = 0; in mtd_ooblayout_count_bytes() local
1371 ret = nbytes; in mtd_ooblayout_count_bytes()
[all …]
/rk3399_rockchip-uboot/drivers/net/
H A Denc28j60.c156 int nbytes = enc_reg2nbytes(reg); in enc_r8() local
160 spi_xfer(enc->slave, nbytes * 8, dout, din, in enc_r8()
162 return din[nbytes-1]; in enc_r8()
174 int nbytes = enc_reg2nbytes(reg); in enc_r16() local
178 spi_xfer(enc->slave, nbytes * 8, dout, din, in enc_r16()
180 result = din[nbytes-1]; in enc_r16()
182 spi_xfer(enc->slave, nbytes * 8, dout, din, in enc_r16()
184 result |= din[nbytes-1] << 8; in enc_r16()
/rk3399_rockchip-uboot/drivers/mtd/spi/
H A Dspi-nor-tiny.c91 op.dummy.nbytes = (nor->read_dummy * op.dummy.buswidth) / 8; in spi_nor_read_data()
94 op.data.nbytes = remaining < UINT_MAX ? remaining : UINT_MAX; in spi_nor_read_data()
103 op.addr.val += op.data.nbytes; in spi_nor_read_data()
104 remaining -= op.data.nbytes; in spi_nor_read_data()
105 op.data.buf.in += op.data.nbytes; in spi_nor_read_data()
H A Dspi-nor-core.c91 op.dummy.nbytes = (nor->read_dummy * op.dummy.buswidth) / 8; in spi_nor_read_data()
94 op.data.nbytes = remaining < UINT_MAX ? remaining : UINT_MAX; in spi_nor_read_data()
103 op.addr.val += op.data.nbytes; in spi_nor_read_data()
104 remaining -= op.data.nbytes; in spi_nor_read_data()
105 op.data.buf.in += op.data.nbytes; in spi_nor_read_data()
127 op.addr.nbytes = 0; in spi_nor_write_data()
132 op.data.nbytes = len < op.data.nbytes ? len : op.data.nbytes; in spi_nor_write_data()
138 return op.data.nbytes; in spi_nor_write_data()
/rk3399_rockchip-uboot/drivers/keylad/
H A Drk_keylad.c187 u32 nbytes = keylen; in rk_keylad_read_otp_key() local
207 keylad_write(KEY_LADDER_KEY_LEN, KL_KEY_LEN(nbytes)); in rk_keylad_read_otp_key()
/rk3399_rockchip-uboot/include/linux/mtd/
H A Dmtd.h382 const u8 *oobbuf, int start, int nbytes);
384 u8 *oobbuf, int start, int nbytes);
388 const u8 *oobbuf, int start, int nbytes);
390 u8 *oobbuf, int start, int nbytes);
/rk3399_rockchip-uboot/arch/m68k/include/asm/coldfire/
H A Dedma.h61 u32 nbytes; /* 0x08 Minor Byte Count */ member
/rk3399_rockchip-uboot/drivers/usb/gadget/
H A Ddesignware_udc.c468 int nbytes = 0; in dw_udc_epn_rx() local
478 nbytes = (readl(&outep_regs_p[ep].endp_status) >> 11) & in dw_udc_epn_rx()
480 usbgetpckfromfifo(ep, cp, nbytes); in dw_udc_epn_rx()
481 usbd_rcv_complete(endpoint, nbytes, 0); in dw_udc_epn_rx()
/rk3399_rockchip-uboot/arch/arm/include/asm/arch-tegra/
H A Dbpmp_abi.h558 uint32_t nbytes; member
569 uint32_t nbytes; member
/rk3399_rockchip-uboot/drivers/ata/
H A Dsata_dwc.h70 unsigned int nbytes; member

12