/linux-master/drivers/spi/ |
H A D | spi-intel.c | 462 size_t nbytes = op->data.nbytes; local 469 ret = intel_spi_sw_cycle(ispi, opcode, nbytes, 472 ret = intel_spi_hw_cycle(ispi, iop, nbytes); 477 return intel_spi_read_block(ispi, op->data.buf.in, nbytes); 485 size_t nbytes = op->data.nbytes; local 531 ret = intel_spi_write_block(ispi, op->data.buf.out, nbytes); 536 return intel_spi_sw_cycle(ispi, opcode, nbytes, 538 return intel_spi_hw_cycle(ispi, iop, nbytes); 546 size_t block_size, nbytes = op->data.nbytes; local 607 size_t block_size, nbytes = op->data.nbytes; local [all...] |
H A D | spi-xlp.c | 183 int i, j, nbytes; local 190 nbytes = min(xspi->rx_len, 4); 191 for (i = nbytes - 1; i >= 0; i--, j++) 194 xspi->rx_len -= nbytes; 195 xspi->rx_buf += nbytes; 203 int i, j, nbytes; local 211 nbytes = min(xspi->tx_len, 4); 212 for (i = nbytes - 1; i >= 0; i--, j++) 216 xspi->tx_len -= nbytes; 217 xspi->tx_buf += nbytes; [all...] |
H A D | spi-microchip-core-qspi.c | 318 cmd_bytes = op->cmd.nbytes + op->addr.nbytes; 319 total_bytes = cmd_bytes + op->data.nbytes; 356 idle_cycles = op->dummy.nbytes * 8 / op->dummy.buswidth; 414 qspi->tx_len = op->cmd.nbytes; 420 if (op->addr.nbytes) { 421 for (i = 0; i < op->addr.nbytes; i++) 422 qspi->txbuf[i] = address >> (8 * (op->addr.nbytes - i - 1)); 425 qspi->tx_len = op->addr.nbytes; 430 if (op->data.nbytes) { [all...] |
H A D | spi-sn-f-ospi.c | 119 return (op->dummy.nbytes * 8) / op->dummy.buswidth; 275 mode = f_ospi_get_mode(ospi, op->addr.buswidth, op->addr.nbytes); 278 mode = f_ospi_get_mode(ospi, op->data.buswidth, op->data.nbytes); 293 /* Examine nbytes % 4 */ 294 switch (op->data.nbytes & 0x3) { 301 val = OSPI_DAT_SIZE_EN | (op->data.nbytes - 1); 305 val = OSPI_DAT_SIZE_EN | (op->data.nbytes - 1); 328 prot |= FIELD_PREP(OSPI_PROT_ADDR_SIZE_MASK, op->addr.nbytes); 418 for (i = 0; i < op->data.nbytes; i++) { 475 for (i = 0; i < op->data.nbytes; [all...] |
H A D | spi-stm32-qspi.c | 170 u32 len = op->data.nbytes, sr; 202 op->data.nbytes); 279 if (!op->data.nbytes) 286 op->data.nbytes > 4) 368 op->addr.val, op->data.nbytes); 376 if (op->data.nbytes) 377 writel_relaxed(op->data.nbytes - 1, 385 if (op->addr.nbytes) { 388 ccr |= FIELD_PREP(CCR_ADSIZE_MASK, op->addr.nbytes - 1); 391 if (op->dummy.nbytes) [all...] |
H A D | spi-mtk-snfi.c | 471 rx_len = op->data.nbytes; 479 for (i = 0; i < op->cmd.nbytes; i++, reg_offs++) { 480 b = (op->cmd.opcode >> ((op->cmd.nbytes - i - 1) * 8)) & 0xff; 488 for (i = 0; i < op->addr.nbytes; i++, reg_offs++) { 489 b = (op->addr.val >> ((op->addr.nbytes - i - 1) * 8)) & 0xff; 497 for (i = 0; i < op->dummy.nbytes; i++, reg_offs++) { 505 for (i = 0; i < op->data.nbytes; i++, reg_offs++) { 870 u32 dummy_clk = (op->dummy.nbytes * BITS_PER_BYTE / op->dummy.buswidth); 896 if (rd_offset == 0 && op->data.nbytes >= snf->nfi_cfg.page_size) 1008 memset(op->data.buf.in, 0xff, op->data.nbytes); [all...] |
/linux-master/drivers/crypto/nx/ |
H A D | nx-aes-ccm.c | 157 unsigned int nbytes, 208 rc = generate_b0(iv, assoclen, authsize, nbytes, b0); 332 unsigned int nbytes = req->cryptlen; local 341 nbytes -= authsize; 345 req->src, nbytes + req->assoclen, authsize, 348 rc = generate_pat(iv, req, nx_ctx, authsize, nbytes, assoclen, 358 to_process = nbytes - processed; 360 if ((to_process + processed) < nbytes) 395 } while (processed < nbytes); 410 unsigned int nbytes local 153 generate_pat(u8 *iv, struct aead_request *req, struct nx_crypto_ctx *nx_ctx, unsigned int authsize, unsigned int nbytes, unsigned int assoclen, u8 *out) argument [all...] |
/linux-master/crypto/ |
H A D | cts.c | 150 unsigned int nbytes = req->cryptlen; local 155 if (nbytes < bsize) 158 if (nbytes == bsize) { 162 skcipher_request_set_crypt(subreq, req->src, req->dst, nbytes, 167 offset = rounddown(nbytes - 1, bsize); 244 unsigned int nbytes = req->cryptlen; local 250 if (nbytes < bsize) 253 if (nbytes == bsize) { 257 skcipher_request_set_crypt(subreq, req->src, req->dst, nbytes, 267 offset = rounddown(nbytes [all...] |
H A D | ecb.c | 17 u8 *dst, unsigned nbytes, bool final, 22 while (nbytes >= bsize) { 28 nbytes -= bsize; 31 return nbytes && final ? -EINVAL : nbytes; 16 crypto_ecb_crypt(struct crypto_cipher *cipher, const u8 *src, u8 *dst, unsigned nbytes, bool final, void (*fn)(struct crypto_tfm *, u8 *, const u8 *)) argument
|
/linux-master/drivers/crypto/cavium/cpt/ |
H A D | cptvf_algs.c | 60 u32 nbytes, u32 *argcnt) 62 req_info->req.dlen += nbytes; 64 while (nbytes) { 65 u32 len = min(nbytes, inp_sg->length); 70 nbytes -= len; 79 u32 nbytes, u32 *argcnt) 81 req_info->rlen += nbytes; 83 while (nbytes) { 84 u32 len = min(nbytes, outp_sg->length); 89 nbytes 58 update_input_data(struct cpt_request_info *req_info, struct scatterlist *inp_sg, u32 nbytes, u32 *argcnt) argument 77 update_output_data(struct cpt_request_info *req_info, struct scatterlist *outp_sg, u32 nbytes, u32 *argcnt) argument [all...] |
/linux-master/drivers/crypto/ccree/ |
H A D | cc_buffer_mgr.c | 67 * @nbytes: [IN] Total SGL data bytes. 75 unsigned int nbytes, u32 *lbytes) 81 while (nbytes && sg_list) { 84 *lbytes = nbytes; 85 nbytes -= (sg_list->length > nbytes) ? 86 nbytes : sg_list->length; 256 unsigned int nbytes, int direction, u32 *nents, 261 if (!nbytes) { 268 *nents = cc_get_sgl_nents(dev, sg, nbytes, lbyte 73 cc_get_sgl_nents(struct device *dev, struct scatterlist *sg_list, unsigned int nbytes, u32 *lbytes) argument 255 cc_map_sg(struct device *dev, struct scatterlist *sg, unsigned int nbytes, int direction, u32 *nents, u32 max_sg_nents, u32 *lbytes, u32 *mapped_nents) argument 370 cc_map_cipher_request(struct cc_drvdata *drvdata, void *ctx, unsigned int ivsize, unsigned int nbytes, void *info, struct scatterlist *src, struct scatterlist *dst, gfp_t flags) argument 1141 cc_map_hash_request_final(struct cc_drvdata *drvdata, void *ctx, struct scatterlist *src, unsigned int nbytes, bool do_update, gfp_t flags) argument 1220 cc_map_hash_request_update(struct cc_drvdata *drvdata, void *ctx, struct scatterlist *src, unsigned int nbytes, unsigned int block_size, gfp_t flags) argument [all...] |
/linux-master/arch/xtensa/platforms/iss/ |
H A D | simdisk.c | 74 unsigned long nbytes = nsect << SECTOR_SHIFT; local 76 if (offset > dev->size || dev->size - offset < nbytes) { 78 write ? "write" : "read", offset, nbytes); 83 while (nbytes > 0) { 89 io = simc_write(dev->fd, buffer, nbytes); 91 io = simc_read(dev->fd, buffer, nbytes); 98 nbytes -= io;
|
/linux-master/drivers/crypto/aspeed/ |
H A D | aspeed-acry.c | 212 size_t nbytes) 220 scatterwalk_map_and_copy(dram_buffer, src, 0, nbytes, 0); 222 for (j = nbytes - 1; j >= 0; j--) { 248 const void *xbuf, size_t nbytes, 257 ACRY_DBG(acry_dev, "nbytes:%zu, mode:%d\n", nbytes, mode); 259 if (nbytes > ASPEED_ACRY_RSA_MAX_KEY_LEN) 263 while (nbytes > 0 && src[0] == 0) { 265 nbytes--; 268 nbits = nbytes * 210 aspeed_acry_rsa_sg_copy_to_buffer(struct aspeed_acry_dev *acry_dev, u8 *buf, struct scatterlist *src, size_t nbytes) argument 247 aspeed_acry_rsa_ctx_copy(struct aspeed_acry_dev *acry_dev, void *buf, const void *xbuf, size_t nbytes, enum aspeed_rsa_key_mode mode) argument [all...] |
/linux-master/drivers/rtc/ |
H A D | rtc-ds1374.c | 86 int reg, int nbytes) 92 if (WARN_ON(nbytes > 4)) 95 ret = i2c_smbus_read_i2c_block_data(client, reg, nbytes, buf); 99 if (ret < nbytes) 102 for (i = nbytes - 1, *time = 0; i >= 0; i--) 109 int reg, int nbytes) 114 if (nbytes > 4) { 119 for (i = 0; i < nbytes; i++) { 124 return i2c_smbus_write_i2c_block_data(client, reg, nbytes, buf); 85 ds1374_read_rtc(struct i2c_client *client, u32 *time, int reg, int nbytes) argument 108 ds1374_write_rtc(struct i2c_client *client, u32 time, int reg, int nbytes) argument
|
/linux-master/drivers/usb/core/ |
H A D | devices.c | 385 * nbytes - the maximum number of bytes to write 390 static ssize_t usb_device_dump(char __user **buffer, size_t *nbytes, argument 404 if (*nbytes <= 0) 479 if (length > *nbytes) 480 length = *nbytes; 485 *nbytes -= length; 498 ret = usb_device_dump(buffer, nbytes, skip_bytes, 510 size_t nbytes, loff_t *ppos) 519 if (nbytes <= 0) 529 ret = usb_device_dump(&buf, &nbytes, 509 usb_device_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) argument [all...] |
/linux-master/arch/x86/crypto/ |
H A D | aegis128-aesni-glue.c | 121 while (walk->nbytes >= AEGIS128_BLOCK_SIZE) { 123 round_down(walk->nbytes, AEGIS128_BLOCK_SIZE), 125 skcipher_walk_done(walk, walk->nbytes % AEGIS128_BLOCK_SIZE); 128 if (walk->nbytes) { 129 ops->crypt_tail(state, walk->nbytes, walk->src.virt.addr,
|
/linux-master/drivers/net/wireless/ath/ath10k/ |
H A D | ce.h | 46 __le16 nbytes; member in struct:ce_desc 52 __le16 nbytes; /* length in register map */ member in struct:ce_desc_64 165 * nbytes - number of bytes to send 177 unsigned int nbytes, 185 unsigned int nbytes, 327 dma_addr_t buffer, u32 nbytes,
|
H A D | ce.c | 425 unsigned int nbytes, 439 if (nbytes > ce_state->src_sz_max) 440 ath10k_warn(ar, "%s: send more we can (nbytes: %d, max: %d)\n", 441 __func__, nbytes, ce_state->src_sz_max); 460 sdesc.nbytes = __cpu_to_le16(nbytes); 482 unsigned int nbytes, 500 if (nbytes > ce_state->src_sz_max) 501 ath10k_warn(ar, "%s: send more we can (nbytes: %d, max: %d)\n", 502 __func__, nbytes, ce_stat 422 _ath10k_ce_send_nolock(struct ath10k_ce_pipe *ce_state, void *per_transfer_context, dma_addr_t buffer, unsigned int nbytes, unsigned int transfer_id, unsigned int flags) argument 479 _ath10k_ce_send_nolock_64(struct ath10k_ce_pipe *ce_state, void *per_transfer_context, dma_addr_t buffer, unsigned int nbytes, unsigned int transfer_id, unsigned int flags) argument 560 ath10k_ce_send_nolock(struct ath10k_ce_pipe *ce_state, void *per_transfer_context, dma_addr_t buffer, unsigned int nbytes, unsigned int transfer_id, unsigned int flags) argument 600 ath10k_ce_send(struct ath10k_ce_pipe *ce_state, void *per_transfer_context, dma_addr_t buffer, unsigned int nbytes, unsigned int transfer_id, unsigned int flags) argument 766 u16 nbytes; local 816 u16 nbytes; local [all...] |
/linux-master/drivers/media/test-drivers/vidtv/ |
H A D | vidtv_s302m.c | 295 u32 nbytes = 0; local 313 nbytes += vidtv_memcpy(e->encoder_buf, 319 e->encoder_buf_offset += nbytes; 325 return nbytes; 331 u32 nbytes = 0; local 336 nbytes += vidtv_memcpy(e->encoder_buf, 342 e->encoder_buf_offset += nbytes; 343 return nbytes; 351 u32 nbytes = 0; local 372 au->nbytes [all...] |
/linux-master/net/sunrpc/ |
H A D | xdr.c | 57 * @nbytes: size of data. 59 * Copy the array of data of length nbytes at ptr to the XDR buffer 67 __be32 *xdr_encode_opaque_fixed(__be32 *p, const void *ptr, unsigned int nbytes) argument 69 if (likely(nbytes != 0)) { 70 unsigned int quadlen = XDR_QUADLEN(nbytes); 71 unsigned int padding = (quadlen << 2) - nbytes; 74 memcpy(p, ptr, nbytes); 76 memset((char *)p + nbytes, 0, padding); 87 * @nbytes: size of data. 91 __be32 *xdr_encode_opaque(__be32 *p, const void *ptr, unsigned int nbytes) argument 1043 xdr_get_next_encode_buffer(struct xdr_stream *xdr, size_t nbytes) argument 1101 xdr_reserve_space(struct xdr_stream *xdr, size_t nbytes) argument 1136 xdr_reserve_space_vec(struct xdr_stream *xdr, size_t nbytes) argument 1243 unsigned int nbytes = xdr_align_size(len); local 1474 __xdr_inline_decode(struct xdr_stream *xdr, size_t nbytes) argument 1487 xdr_copy_to_scratch(struct xdr_stream *xdr, size_t nbytes) argument 1523 xdr_inline_decode(struct xdr_stream *xdr, size_t nbytes) argument 1749 xdr_stream_subsegment(struct xdr_stream *xdr, struct xdr_buf *subbuf, unsigned int nbytes) argument [all...] |
/linux-master/include/linux/ |
H A D | string.h | 32 size_t nbytes; local 34 if (check_mul_overflow(n, size, &nbytes)) 37 return memdup_user(src, nbytes); 51 size_t nbytes; local 53 if (check_mul_overflow(n, size, &nbytes)) 56 return vmemdup_user(src, nbytes);
|
/linux-master/drivers/crypto/rockchip/ |
H A D | rk3288_crypto_ahash.c | 58 rctx->fallback_req.nbytes = areq->nbytes; 117 CRYPTO_WRITE(dev, RK_CRYPTO_HASH_MSG_LEN, req->nbytes); 142 rctx->fallback_req.nbytes = req->nbytes; 172 rctx->fallback_req.nbytes = req->nbytes; 214 if (!req->nbytes)
|
/linux-master/drivers/crypto/ccp/ |
H A D | ccp-crypto-sha.c | 39 unsigned int offset = rctx->nbytes - rctx->hash_rem; 58 static int ccp_do_sha_update(struct ahash_request *req, unsigned int nbytes, argument 72 len = (u64)rctx->buf_count + (u64)nbytes; 76 0, nbytes, 0); 77 rctx->buf_count += nbytes; 83 rctx->nbytes = nbytes; 98 if (rctx->buf_count && nbytes) { 127 } else if (nbytes) { 208 return ccp_do_sha_update(req, req->nbytes, [all...] |
/linux-master/fs/fuse/ |
H A D | readdir.c | 126 static int parse_dirfile(char *buf, size_t nbytes, struct file *file, argument 129 while (nbytes >= FUSE_NAME_OFFSET) { 134 if (reclen > nbytes) 143 nbytes -= reclen; 286 static int parse_dirplusfile(char *buf, size_t nbytes, struct file *file, argument 295 while (nbytes >= FUSE_NAME_OFFSET_DIRENTPLUS) { 302 if (reclen > nbytes) 320 nbytes -= reclen; 401 unsigned int nbytes = size - offset; local 404 if (nbytes < FUSE_NAME_OFFSE [all...] |
/linux-master/drivers/crypto/ |
H A D | hifn_795x.c | 1114 void *priv, unsigned int nbytes) 1139 buf_pos += hifn_setup_base_command(dev, buf_pos, nbytes, 1140 nbytes, mask, dev->snum); 1201 nbytes, nbytes, ctx->key, ctx->keysize, 1323 unsigned int nbytes, void *priv) 1330 n = nbytes; 1343 n = nbytes; 1365 hifn_setup_cmd_desc(dev, ctx, rctx, priv, nbytes); 1413 unsigned int copy, drest = *drestp, nbytes local 1112 hifn_setup_cmd_desc(struct hifn_device *dev, struct hifn_context *ctx, struct hifn_request_context *rctx, void *priv, unsigned int nbytes) argument 1320 hifn_setup_dma(struct hifn_device *dev, struct hifn_context *ctx, struct hifn_request_context *rctx, struct scatterlist *src, struct scatterlist *dst, unsigned int nbytes, void *priv) argument 1443 unsigned int nbytes = req->cryptlen, offset, copy, diff; local 1530 unsigned int nbytes = req->cryptlen, idx = 0; local 1619 unsigned int srest = *srestp, nbytes = *nbytesp, copy; local 1671 unsigned int nbytes = req->cryptlen; local [all...] |