| /drivers/media/test-drivers/vidtv/ |
| A D | vidtv_ts.c | 53 u32 nbytes = 0; in vidtv_ts_null_write_into() local 75 TS_PACKET_LEN - nbytes); in vidtv_ts_null_write_into() 78 if (nbytes != TS_PACKET_LEN) in vidtv_ts_null_write_into() 81 nbytes); in vidtv_ts_null_write_into() 83 return nbytes; in vidtv_ts_null_write_into() 88 u32 nbytes = 0; in vidtv_ts_pcr_write_into() local 120 args.dest_offset + nbytes, in vidtv_ts_pcr_write_into() 127 TS_PACKET_LEN - nbytes); in vidtv_ts_pcr_write_into() 130 if (nbytes != TS_PACKET_LEN) in vidtv_ts_pcr_write_into() 133 nbytes); in vidtv_ts_pcr_write_into() [all …]
|
| A D | vidtv_pes.c | 129 return nbytes; in vidtv_pes_write_pts_dts() 180 return nbytes; in vidtv_pes_write_h() 213 u32 nbytes = 0; in vidtv_pes_write_stuffing() local 246 dest_offset + nbytes, in vidtv_pes_write_stuffing() 269 return nbytes; in vidtv_pes_write_stuffing() 276 u32 nbytes = 0; in vidtv_pes_write_ts_h() local 298 nbytes += vidtv_pes_write_stuffing(&args, args.dest_offset + nbytes, in vidtv_pes_write_ts_h() 301 return nbytes; in vidtv_pes_write_ts_h() 333 u32 nbytes = 0; in vidtv_pes_write_into() local 408 nbytes; in vidtv_pes_write_into() [all …]
|
| A D | vidtv_psi.c | 172 u32 nbytes = 0; in vidtv_psi_ts_psi_write_into() local 247 return nbytes; in vidtv_psi_ts_psi_write_into() 679 u32 nbytes = 0; in vidtv_psi_desc_write_into() local 780 return nbytes; in vidtv_psi_desc_write_into() 1016 u32 nbytes = 0; in vidtv_psi_pat_write_into() local 1049 return nbytes; in vidtv_psi_pat_write_into() 1195 u32 nbytes = 0; in vidtv_psi_pmt_write_into() local 1282 return nbytes; in vidtv_psi_pmt_write_into() 1424 return nbytes; in vidtv_psi_sdt_write_into() 1780 return nbytes; in vidtv_psi_nit_write_into() [all …]
|
| A D | vidtv_mux.c | 164 u32 nbytes; in vidtv_mux_push_si() local 218 return nbytes; in vidtv_mux_push_si() 225 u32 nbytes = 0; in vidtv_mux_push_pcr() local 241 return nbytes; in vidtv_mux_push_pcr() 287 u32 nbytes = 0; in vidtv_mux_packetize_access_units() local 319 return nbytes; in vidtv_mux_packetize_access_units() 346 return nbytes; in vidtv_mux_poll_encoders() 358 u32 nbytes; in vidtv_mux_pad_with_nulls() local 377 return nbytes; in vidtv_mux_pad_with_nulls() 396 u32 nbytes; in vidtv_mux_tick() local [all …]
|
| /drivers/spi/ |
| A D | spi-realtek-rtl-snand.c | 171 nbytes = len - pos; in rtl_snand_xfer() 172 if (nbytes > 4) in rtl_snand_xfer() 173 nbytes = 4; in rtl_snand_xfer() 194 pos += nbytes; in rtl_snand_xfer() 202 if (nbytes > 4) in rtl_snand_xfer() 203 nbytes = 4; in rtl_snand_xfer() 207 pos += nbytes; in rtl_snand_xfer() 274 nbytes = len - pos; in rtl_snand_dma_xfer() 276 nbytes = maxlen; in rtl_snand_dma_xfer() 284 pos += nbytes; in rtl_snand_dma_xfer() [all …]
|
| A D | spi-mem.c | 42 if (!op->data.nbytes) in spi_controller_dma_map_mem_op_data() 88 if (!op->data.nbytes) in spi_controller_dma_unmap_mem_op_data() 331 len = op->cmd.nbytes + op->addr.nbytes; in spi_mem_add_op_stats() 332 len += op->dummy.nbytes + op->data.nbytes; in spi_mem_add_op_stats() 382 op->addr.nbytes, (op->addr.nbytes ? op->addr.val : 0), in spi_mem_exec_op() 420 tmpbufsize = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_exec_op() 459 memset(tmpbuf + op->addr.nbytes + 1, 0xff, op->dummy.nbytes); in spi_mem_exec_op() 542 len = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes; in spi_mem_adjust_op_size() 547 op->data.nbytes = min3((size_t)op->data.nbytes, in spi_mem_adjust_op_size() 689 if (!info->op_tmpl.addr.nbytes || info->op_tmpl.addr.nbytes > 8) in spi_mem_dirmap_create() [all …]
|
| A D | spi-mtk-nor.c | 189 if (op->dummy.nbytes) in mtk_nor_match_read() 217 tx_len = op->cmd.nbytes + op->addr.nbytes; in mtk_nor_match_prg() 261 tx_len = op->cmd.nbytes + op->addr.nbytes; in mtk_nor_adj_prg_size() 280 if (!op->data.nbytes) in mtk_nor_adjust_op_size() 283 if ((op->addr.nbytes == 3) || (op->addr.nbytes == 4)) { in mtk_nor_adjust_op_size() 320 if ((op->addr.nbytes == 3) || (op->addr.nbytes == 4)) { in mtk_nor_supports_op() 526 tx_len = op->cmd.nbytes + op->addr.nbytes; in mtk_nor_spi_mem_prg() 530 tx_len += op->dummy.nbytes + op->data.nbytes; in mtk_nor_spi_mem_prg() 534 prg_len = op->cmd.nbytes + op->addr.nbytes + op->dummy.nbytes + in mtk_nor_spi_mem_prg() 535 op->data.nbytes; in mtk_nor_spi_mem_prg() [all …]
|
| A D | spi-wpcm-fiu.c | 82 for (i = 0; i < nbytes; i++) in wpcm_fiu_set_data() 146 return (op->addr.nbytes == 0 || op->addr.nbytes == 3) && in wpcm_fiu_normal_match() 147 op->dummy.nbytes == 0 && op->data.nbytes <= 4; in wpcm_fiu_normal_match() 173 op->data.nbytes >= 1 && op->data.nbytes <= 4 && in wpcm_fiu_fast_read_match() 192 return op->addr.nbytes == 4 && op->dummy.nbytes == 0 && op->data.nbytes <= 4; in wpcm_fiu_4ba_match() 236 op->dummy.nbytes == 0 && op->data.nbytes == 6 && in wpcm_fiu_rdid_match() 272 return (op->addr.nbytes == 0 || op->addr.nbytes == 3) && in wpcm_fiu_dummy_match() 273 op->dummy.nbytes >= 1 && op->dummy.nbytes <= 5 && in wpcm_fiu_dummy_match() 287 wpcm_fiu_do_uma(fiu, cs, op->addr.nbytes != 0, true, op->dummy.nbytes - 1); in wpcm_fiu_dummy_exec() 369 if (op->data.nbytes > 4) in wpcm_fiu_adjust_op_size() [all …]
|
| A D | spi-amd.c | 488 op->data.nbytes = clamp_val(op->data.nbytes, 0, AMD_SPI_HID2_DMA_SIZE); in amd_spi_adjust_op_size() 490 op->data.nbytes = clamp_val(op->data.nbytes, 0, AMD_SPI_MAX_DATA); in amd_spi_adjust_op_size() 498 u8 nbytes = op->addr.nbytes; in amd_spi_set_addr() local 547 u32 nbytes = op->data.nbytes; in amd_spi_mem_data_out() local 548 u32 left_data = nbytes; in amd_spi_mem_data_out() 557 u64 *dma_buf64 = (u64 *)(amd_spi->dma_virt_addr + op->addr.nbytes + op->cmd.nbytes); in amd_spi_mem_data_out() 592 base_addr + op->dummy.nbytes + nbytes + i - left_data, in amd_spi_mem_data_out() 596 amd_spi_set_tx_count(amd_spi, op->addr.nbytes + op->data.nbytes); in amd_spi_mem_data_out() 666 u32 nbytes = op->data.nbytes; in amd_spi_mem_data_in() local 667 u32 left_data = nbytes; in amd_spi_mem_data_in() [all …]
|
| A D | spi-fsl-qspi.c | 375 if (op->addr.nbytes) in fsl_qspi_supports_op() 378 if (op->dummy.nbytes) in fsl_qspi_supports_op() 381 if (op->data.nbytes) in fsl_qspi_supports_op() 391 if (op->addr.nbytes + in fsl_qspi_supports_op() 397 if (op->dummy.nbytes && in fsl_qspi_supports_op() 439 if (op->dummy.nbytes) { in fsl_qspi_prepare_lut() 447 if (op->data.nbytes) { in fsl_qspi_prepare_lut() 556 op->data.nbytes); in fsl_qspi_read_ahb() 572 if (i < op->data.nbytes) { in fsl_qspi_fill_txfifo() 598 if (i < op->data.nbytes) { in fsl_qspi_read_rxfifo() [all …]
|
| A D | spi-npcm-fiu.c | 276 fiu->drd_op.dummy.nbytes = op->dummy.nbytes; in npcm_fiu_set_drd() 283 fiu->drd_op.addr.nbytes = op->addr.nbytes; in npcm_fiu_set_drd() 302 desc->info.op_tmpl.dummy.nbytes != fiu->drd_op.dummy.nbytes || in npcm_fiu_direct_read() 304 desc->info.op_tmpl.addr.nbytes != fiu->drd_op.addr.nbytes) in npcm_fiu_direct_read() 356 if (op->dummy.nbytes) in npcm_fiu_uma_read() 566 if (!op->addr.nbytes) { in npcm_fiu_exec_op() 574 if (!op->addr.nbytes && !op->data.nbytes) in npcm_fiu_exec_op() 577 if (op->addr.nbytes && !op->data.nbytes) { in npcm_fiu_exec_op() 589 if (!op->addr.nbytes && op->data.nbytes) in npcm_fiu_exec_op() 592 op->data.nbytes); in npcm_fiu_exec_op() [all …]
|
| A D | spi-nxp-fspi.c | 470 if (op->addr.nbytes) in nxp_fspi_supports_op() 473 if (op->dummy.nbytes) in nxp_fspi_supports_op() 476 if (op->data.nbytes) in nxp_fspi_supports_op() 485 if (op->addr.nbytes > 4) in nxp_fspi_supports_op() 566 if (op->addr.nbytes) { in nxp_fspi_prepare_lut() 574 if (op->dummy.nbytes) { in nxp_fspi_prepare_lut() 587 if (op->data.nbytes) { in nxp_fspi_prepare_lut() 766 u32 len = op->data.nbytes; in nxp_fspi_read_ahb() 820 if (i < op->data.nbytes) { in nxp_fspi_fill_txfifo() 843 int len = op->data.nbytes; in nxp_fspi_read_rxfifo() [all …]
|
| A D | spi-sg2044-nor.c | 147 reg |= (op->addr.nbytes + op->dummy.nbytes) << SPIFMC_TRAN_CSR_ADDR_BYTES_SHIFT; in sg2044_spifmc_read_64k() 155 for (i = op->addr.nbytes - 1; i >= 0; i--) in sg2044_spifmc_read_64k() 158 for (i = 0; i < op->dummy.nbytes; i++) in sg2044_spifmc_read_64k() 199 size_t len = op->data.nbytes; in sg2044_spifmc_read() 229 reg |= (op->addr.nbytes + op->dummy.nbytes) << SPIFMC_TRAN_CSR_ADDR_BYTES_SHIFT; in sg2044_spifmc_write() 240 for (i = 0; i < op->dummy.nbytes; i++) in sg2044_spifmc_write() 255 while (offset < op->data.nbytes) { in sg2044_spifmc_write() 284 reg |= (op->addr.nbytes + op->dummy.nbytes) << SPIFMC_TRAN_CSR_ADDR_BYTES_SHIFT; in sg2044_spifmc_tran_cmd() 294 for (i = 0; i < op->dummy.nbytes; i++) in sg2044_spifmc_tran_cmd() 326 size_t len = op->data.nbytes; in sg2044_spifmc_trans_reg() [all …]
|
| /drivers/comedi/ |
| A D | comedi_buf.c | 294 nbytes = unalloc; in comedi_buf_write_alloc() 304 return nbytes; in comedi_buf_write_alloc() 387 nbytes = allocated; in comedi_buf_write_free() 395 return nbytes; in comedi_buf_write_free() 453 nbytes = available; in comedi_buf_read_alloc() 463 return nbytes; in comedi_buf_read_alloc() 499 nbytes = allocated; in comedi_buf_read_free() 504 return nbytes; in comedi_buf_read_free() 542 while (nbytes) { in comedi_buf_memcpy_from() 606 return nbytes; in comedi_buf_write_samples() [all …]
|
| /drivers/infiniband/hw/hfi1/ |
| A D | pio_copy.c | 184 unsigned int nbytes) in read_low_bytes() argument 188 pbuf->carry_bytes = nbytes; in read_low_bytes() 203 pbuf->carry_bytes += nbytes; in read_extra_bytes() 263 const void *from, size_t nbytes) in seg_pio_copy_start() argument 559 pbuf->qw_written += nbytes >> 3; in mid_copy_straight() 598 nbytes -= to_align; in seg_pio_copy_mid() 609 nbytes -= to_fill; in seg_pio_copy_mid() 611 if (extra > nbytes) in seg_pio_copy_mid() 612 extra = nbytes; in seg_pio_copy_mid() 639 nbytes -= extra; in seg_pio_copy_mid() [all …]
|
| /drivers/i3c/ |
| A D | internals.h | 34 int nbytes) in i3c_writel_fifo() argument 36 writesl(addr, buf, nbytes / 4); in i3c_writel_fifo() 37 if (nbytes & 3) { in i3c_writel_fifo() 40 memcpy(&tmp, buf + (nbytes & ~3), nbytes & 3); in i3c_writel_fifo() 52 int nbytes) in i3c_readl_fifo() argument 54 readsl(addr, buf, nbytes / 4); in i3c_readl_fifo() 55 if (nbytes & 3) { in i3c_readl_fifo() 59 memcpy(buf + (nbytes & ~3), &tmp, nbytes & 3); in i3c_readl_fifo()
|
| /drivers/crypto/ |
| A D | padlock-aes.c | 349 unsigned int nbytes; in ecb_aes_encrypt() local 356 while ((nbytes = walk.nbytes) != 0) { in ecb_aes_encrypt() 360 nbytes &= AES_BLOCK_SIZE - 1; in ecb_aes_encrypt() 374 unsigned int nbytes; in ecb_aes_decrypt() local 381 while ((nbytes = walk.nbytes) != 0) { in ecb_aes_decrypt() 385 nbytes &= AES_BLOCK_SIZE - 1; in ecb_aes_decrypt() 414 unsigned int nbytes; in cbc_aes_encrypt() local 421 while ((nbytes = walk.nbytes) != 0) { in cbc_aes_encrypt() 427 nbytes &= AES_BLOCK_SIZE - 1; in cbc_aes_encrypt() 441 unsigned int nbytes; in cbc_aes_decrypt() local [all …]
|
| /drivers/memory/ |
| A D | renesas-rpc-if.c | 344 nbytes /= 2; in rpcif_bits_set() 345 nbytes = clamp(nbytes, 1U, 4U); in rpcif_bits_set() 412 u32 nbytes; in rpcif_prepare_impl() local 429 nbytes = *len; in rpcif_prepare_impl() 431 nbytes = op->data.nbytes; in rpcif_prepare_impl() 468 u32 nbytes; in xspi_prepare_impl() local 473 nbytes = *len; in xspi_prepare_impl() 475 nbytes = op->data.nbytes; in xspi_prepare_impl() 545 pos += nbytes; in rpcif_manual_xfer_impl() 602 pos += nbytes; in rpcif_manual_xfer_impl() [all …]
|
| /drivers/pci/hotplug/ |
| A D | rpadlpar_sysfs.c | 28 const char *buf, size_t nbytes) in add_slot_store() argument 34 if (nbytes >= MAX_DRC_NAME_LEN) in add_slot_store() 37 strscpy(drc_name, buf, nbytes + 1); in add_slot_store() 47 return nbytes; in add_slot_store() 58 const char *buf, size_t nbytes) in remove_slot_store() argument 64 if (nbytes >= MAX_DRC_NAME_LEN) in remove_slot_store() 67 strscpy(drc_name, buf, nbytes + 1); in remove_slot_store() 77 return nbytes; in remove_slot_store()
|
| /drivers/dma/ |
| A D | fsl-edma-common.c | 347 u32 nbytes = 0; in fsl_edma_desc_residue() local 352 nbytes = fsl_edma_get_tcd_to_cpu(fsl_chan, edesc->tcd[i].vtcd, nbytes); in fsl_edma_desc_residue() 354 nbytes = EDMA_V3_TCD_NBYTES_MLOFF_NBYTES(nbytes); in fsl_edma_desc_residue() 374 nbytes = fsl_edma_get_tcd_to_cpu(fsl_chan, edesc->tcd[i].vtcd, nbytes); in fsl_edma_desc_residue() 376 nbytes = EDMA_V3_TCD_NBYTES_MLOFF_NBYTES(nbytes); in fsl_edma_desc_residue() 528 fsl_edma_set_tcd_to_le(fsl_chan, tcd, nbytes, nbytes); in fsl_edma_fill_tcd() 598 u32 nbytes; in fsl_edma_prep_dma_cyclic() local 626 iter = period_len / nbytes; in fsl_edma_prep_dma_cyclic() 676 u32 nbytes; in fsl_edma_prep_slave_sg() local 736 nbytes = j * width; in fsl_edma_prep_slave_sg() [all …]
|
| /drivers/crypto/nx/ |
| A D | nx-aes-gcm.c | 107 unsigned int nbytes = assoclen; in nx_gca() local 111 if (nbytes <= AES_BLOCK_SIZE) { in nx_gca() 137 if ((to_process + processed) < nbytes) in nx_gca() 159 } while (processed < nbytes); in nx_gca() 173 unsigned int nbytes = assoclen; in gmac() local 231 } while (processed < nbytes); in gmac() 311 unsigned int nbytes = req->cryptlen; in gcm_aes_nx_crypt() local 321 if (nbytes == 0) { in gcm_aes_nx_crypt() 351 to_process = nbytes - processed; in gcm_aes_nx_crypt() 386 } while (processed < nbytes); in gcm_aes_nx_crypt() [all …]
|
| /drivers/crypto/intel/keembay/ |
| A D | keembay-ocs-ecc.c | 252 point->x, nbytes); in kmb_ecc_point_mult() 256 point->y, nbytes); in kmb_ecc_point_mult() 266 scalar, nbytes); in kmb_ecc_point_mult() 270 sca, nbytes); in kmb_ecc_point_mult() 275 curve->p, nbytes); in kmb_ecc_point_mult() 279 curve->a, nbytes); in kmb_ecc_point_mult() 325 scalar_a, nbytes); in kmb_ecc_do_scalar_op() 329 scalar_b, nbytes); in kmb_ecc_do_scalar_op() 589 pubk_len = 2 * nbytes; in kmb_ecc_do_shared_secret() 637 nbytes = min_t(size_t, nbytes, req->dst_len); in kmb_ecc_do_shared_secret() [all …]
|
| /drivers/zorro/ |
| A D | proc.c | 31 proc_bus_zorro_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in proc_bus_zorro_read() argument 39 if (nbytes >= sizeof(struct ConfigDev)) in proc_bus_zorro_read() 40 nbytes = sizeof(struct ConfigDev); in proc_bus_zorro_read() 41 if (pos + nbytes > sizeof(struct ConfigDev)) in proc_bus_zorro_read() 42 nbytes = sizeof(struct ConfigDev) - pos; in proc_bus_zorro_read() 52 if (copy_to_user(buf, (void *)&cd + pos, nbytes)) in proc_bus_zorro_read() 54 *ppos += nbytes; in proc_bus_zorro_read() 56 return nbytes; in proc_bus_zorro_read()
|
| /drivers/pnp/isapnp/ |
| A D | proc.c | 23 size_t nbytes, loff_t * ppos) in isapnp_proc_bus_read() argument 31 if (nbytes >= size) in isapnp_proc_bus_read() 32 nbytes = size; in isapnp_proc_bus_read() 33 if (pos + nbytes > size) in isapnp_proc_bus_read() 34 nbytes = size - pos; in isapnp_proc_bus_read() 35 cnt = nbytes; in isapnp_proc_bus_read() 49 return nbytes; in isapnp_proc_bus_read()
|
| /drivers/crypto/allwinner/sun4i-ss/ |
| A D | sun4i-ss-hash.c | 206 op->byte_count, areq->nbytes, op->mode, in sun4i_hash() 213 if (unlikely(areq->nbytes > UINT_MAX - op->len)) { in sun4i_hash() 221 op->buf + op->len, areq->nbytes, 0); in sun4i_hash() 247 if (end > areq->nbytes || areq->nbytes - end > 63) { in sun4i_hash() 249 end, areq->nbytes); in sun4i_hash() 255 if (areq->nbytes < 4) in sun4i_hash() 268 if (i == 1 && !op->len && areq->nbytes) in sun4i_hash() 336 if ((areq->nbytes - i) < 64) { in sun4i_hash() 339 in_r = min(areq->nbytes - i, 64 - op->len); in sun4i_hash() 371 i, SS_TIMEOUT, v, areq->nbytes); in sun4i_hash() [all …]
|