Home
last modified time | relevance | path

Searched refs:thislen (Results 1 – 24 of 24) sorted by relevance

/Linux-v5.4/drivers/mtd/maps/
Dsbc_gxx.c115 unsigned long thislen = len; in sbc_gxx_copy_from() local
117 thislen = WINDOW_LENGTH-(from & WINDOW_MASK); in sbc_gxx_copy_from()
121 memcpy_fromio(to, iomapadr + (from & WINDOW_MASK), thislen); in sbc_gxx_copy_from()
123 to += thislen; in sbc_gxx_copy_from()
124 from += thislen; in sbc_gxx_copy_from()
125 len -= thislen; in sbc_gxx_copy_from()
140 unsigned long thislen = len; in sbc_gxx_copy_to() local
142 thislen = WINDOW_LENGTH-(to & WINDOW_MASK); in sbc_gxx_copy_to()
146 memcpy_toio(iomapadr + (to & WINDOW_MASK), from, thislen); in sbc_gxx_copy_to()
148 to += thislen; in sbc_gxx_copy_to()
[all …]
/Linux-v5.4/drivers/mtd/nand/onenand/
Donenand_base.c1052 int thislen) in onenand_transfer_auto_oob() argument
1060 column, thislen); in onenand_transfer_auto_oob()
1128 int read = 0, column, thislen; in onenand_mlc_read_ops_nolock() local
1153 thislen = min_t(int, writesize, len - read); in onenand_mlc_read_ops_nolock()
1156 if (column + thislen > writesize) in onenand_mlc_read_ops_nolock()
1157 thislen = writesize - column; in onenand_mlc_read_ops_nolock()
1172 this->read_bufferram(mtd, ONENAND_DATARAM, buf, column, thislen); in onenand_mlc_read_ops_nolock()
1186 read += thislen; in onenand_mlc_read_ops_nolock()
1190 from += thislen; in onenand_mlc_read_ops_nolock()
1191 buf += thislen; in onenand_mlc_read_ops_nolock()
[all …]
/Linux-v5.4/fs/qnx4/
Dnamei.c30 int namelen, thislen; in qnx4_match() local
43 thislen = strlen( de->di_fname ); in qnx4_match()
44 if ( thislen > namelen ) in qnx4_match()
45 thislen = namelen; in qnx4_match()
46 if (len != thislen) { in qnx4_match()
/Linux-v5.4/drivers/net/ethernet/i825xx/
Dether1.c128 unsigned int page, thislen, offset; in ether1_writebuffer() local
136 thislen = 4096 - offset; in ether1_writebuffer()
138 thislen = length; in ether1_writebuffer()
144 length -= thislen; in ether1_writebuffer()
177 : "r" (addr), "r" (thislen), "1" (data)); in ether1_writebuffer()
181 thislen = length; in ether1_writebuffer()
182 if (thislen > 4096) in ether1_writebuffer()
183 thislen = 4096; in ether1_writebuffer()
185 } while (thislen); in ether1_writebuffer()
191 unsigned int page, thislen, offset; in ether1_readbuffer() local
[all …]
/Linux-v5.4/drivers/mtd/chips/
Dcfi_cmdset_0020.c397 unsigned long thislen; in cfi_staa_read() local
403 thislen = (1<<cfi->chipshift) - ofs; in cfi_staa_read()
405 thislen = len; in cfi_staa_read()
407 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); in cfi_staa_read()
411 *retlen += thislen; in cfi_staa_read()
412 len -= thislen; in cfi_staa_read()
413 buf += thislen; in cfi_staa_read()
669 size_t totlen = 0, thislen; in cfi_staa_writev() local
696 ret = mtd_write(mtd, to, ECCBUF_SIZE, &thislen, in cfi_staa_writev()
698 totlen += thislen; in cfi_staa_writev()
[all …]
Dcfi_cmdset_0001.c1402 unsigned long thislen; in cfi_intelext_point() local
1414 thislen = (1<<cfi->chipshift) - ofs; in cfi_intelext_point()
1416 thislen = len; in cfi_intelext_point()
1418 ret = do_point_onechip(map, &cfi->chips[chipnum], ofs, thislen); in cfi_intelext_point()
1422 *retlen += thislen; in cfi_intelext_point()
1423 len -= thislen; in cfi_intelext_point()
1446 unsigned long thislen; in cfi_intelext_unpoint() local
1454 thislen = (1<<cfi->chipshift) - ofs; in cfi_intelext_unpoint()
1456 thislen = len; in cfi_intelext_unpoint()
1471 len -= thislen; in cfi_intelext_unpoint()
[all …]
Dcfi_cmdset_0002.c1248 unsigned long thislen; in cfi_amdstd_read() local
1254 thislen = (1<<cfi->chipshift) - ofs; in cfi_amdstd_read()
1256 thislen = len; in cfi_amdstd_read()
1258 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); in cfi_amdstd_read()
1262 *retlen += thislen; in cfi_amdstd_read()
1263 len -= thislen; in cfi_amdstd_read()
1264 buf += thislen; in cfi_amdstd_read()
1357 unsigned long thislen; in cfi_amdstd_secsi_read() local
1363 thislen = (1<<3) - ofs; in cfi_amdstd_secsi_read()
1365 thislen = len; in cfi_amdstd_secsi_read()
[all …]
/Linux-v5.4/fs/fuse/
Dxattr.c95 size_t thislen = strnlen(list, size); in fuse_verify_xattr_list() local
97 if (!thislen || thislen == size) in fuse_verify_xattr_list()
100 size -= thislen + 1; in fuse_verify_xattr_list()
101 list += thislen + 1; in fuse_verify_xattr_list()
Dvirtio_fs.c457 unsigned int len, i, thislen; in virtio_fs_requests_done_work() local
487 thislen = ap->descs[i].length; in virtio_fs_requests_done_work()
488 if (len < thislen) { in virtio_fs_requests_done_work()
491 zero_user_segment(page, len, thislen); in virtio_fs_requests_done_work()
494 len -= thislen; in virtio_fs_requests_done_work()
/Linux-v5.4/drivers/mtd/
Dnftlcore.c480 u16 ChainLength = 0, thislen; in NFTL_makefreeblock() local
485 thislen = 0; in NFTL_makefreeblock()
488 thislen++; in NFTL_makefreeblock()
491 if (thislen > 0xff00) { in NFTL_makefreeblock()
495 if (thislen > 0xff10) { in NFTL_makefreeblock()
498 thislen = 0; in NFTL_makefreeblock()
503 if (thislen > ChainLength) { in NFTL_makefreeblock()
505 ChainLength = thislen; in NFTL_makefreeblock()
Dinftlcore.c406 u16 ChainLength = 0, thislen; in INFTL_makefreeblock() local
414 thislen = 0; in INFTL_makefreeblock()
417 thislen++; in INFTL_makefreeblock()
419 if (thislen > 0xff00) { in INFTL_makefreeblock()
427 thislen = 0; in INFTL_makefreeblock()
432 if (thislen > ChainLength) { in INFTL_makefreeblock()
433 ChainLength = thislen; in INFTL_makefreeblock()
Dmtdcore.c1825 size_t totlen = 0, thislen; in default_mtd_writev() local
1831 ret = mtd_write(mtd, to, vecs[i].iov_len, &thislen, in default_mtd_writev()
1833 totlen += thislen; in default_mtd_writev()
1834 if (ret || thislen != vecs[i].iov_len) in default_mtd_writev()
/Linux-v5.4/net/sunrpc/
Dxdr.c1517 unsigned int page_len, thislen, page_offset; in xdr_process_buf() local
1525 thislen = buf->head[0].iov_len - offset; in xdr_process_buf()
1526 if (thislen > len) in xdr_process_buf()
1527 thislen = len; in xdr_process_buf()
1528 sg_set_buf(sg, buf->head[0].iov_base + offset, thislen); in xdr_process_buf()
1533 len -= thislen; in xdr_process_buf()
1547 thislen = PAGE_SIZE - page_offset; in xdr_process_buf()
1549 if (thislen > page_len) in xdr_process_buf()
1550 thislen = page_len; in xdr_process_buf()
1551 sg_set_page(sg, buf->pages[i], thislen, page_offset); in xdr_process_buf()
[all …]
/Linux-v5.4/drivers/mtd/lpddr/
Dlpddr_cmds.c527 unsigned long thislen; in lpddr_point() local
539 thislen = (1<<lpddr->chipshift) - ofs; in lpddr_point()
541 thislen = len; in lpddr_point()
551 *retlen += thislen; in lpddr_point()
552 len -= thislen; in lpddr_point()
573 unsigned long thislen; in lpddr_unpoint() local
581 thislen = (1<<lpddr->chipshift) - ofs; in lpddr_unpoint()
583 thislen = len; in lpddr_unpoint()
599 len -= thislen; in lpddr_unpoint()
/Linux-v5.4/net/sunrpc/auth_gss/
Dgss_krb5_crypto.c472 int thislen = desc->fraglen + sg->length; in encryptor() local
496 fraglen = thislen & (crypto_sync_skcipher_blocksize(tfm) - 1); in encryptor()
497 thislen -= fraglen; in encryptor()
499 if (thislen == 0) in encryptor()
506 thislen, desc->iv); in encryptor()
570 int thislen = desc->fraglen + sg->length; in decryptor() local
583 fraglen = thislen & (crypto_sync_skcipher_blocksize(tfm) - 1); in decryptor()
584 thislen -= fraglen; in decryptor()
586 if (thislen == 0) in decryptor()
592 thislen, desc->iv); in decryptor()
/Linux-v5.4/fs/qnx6/
Ddir.c181 int thislen; in qnx6_long_match() local
187 thislen = fs16_to_cpu(sbi, lf->lf_size); in qnx6_long_match()
188 if (len != thislen) { in qnx6_long_match()
/Linux-v5.4/drivers/scsi/esas2r/
Desas2r_flash.c284 u32 thislen; in fix_efi() local
291 thislen = (u32)le16_to_cpu(bh->image_length) * 512; in fix_efi()
293 if (thislen > len) in fix_efi()
296 len -= thislen; in fix_efi()
297 offset += thislen; in fix_efi()
1167 u32 thislen; in esas2r_read_image_type() local
1170 thislen = (u32)le16_to_cpu(bh->image_length) * 512; in esas2r_read_image_type()
1171 if (thislen == 0 in esas2r_read_image_type()
1172 || thislen + offset > len in esas2r_read_image_type()
1176 offset += thislen; in esas2r_read_image_type()
/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/
Dixgbe_fcoe.c148 unsigned int thislen = 0; in ixgbe_fcoe_ddp_setup() local
217 thislen = min((bufflen - thisoff), len); in ixgbe_fcoe_ddp_setup()
229 if (((i != (dmacount - 1)) || (thislen != len)) in ixgbe_fcoe_ddp_setup()
230 && ((thislen + thisoff) != bufflen)) in ixgbe_fcoe_ddp_setup()
237 len -= thislen; in ixgbe_fcoe_ddp_setup()
238 addr += thislen; in ixgbe_fcoe_ddp_setup()
243 lastsize = thisoff + thislen; in ixgbe_fcoe_ddp_setup()
/Linux-v5.4/drivers/usb/atm/
Dspeedtch.c269 int thislen = min_t(int, PAGE_SIZE, fw1->size - offset); in speedtch_upload_firmware() local
270 memcpy(buffer, fw1->data + offset, thislen); in speedtch_upload_firmware()
273 buffer, thislen, &actual_length, DATA_TIMEOUT); in speedtch_upload_firmware()
296 int thislen = min_t(int, PAGE_SIZE, fw2->size - offset); in speedtch_upload_firmware() local
297 memcpy(buffer, fw2->data + offset, thislen); in speedtch_upload_firmware()
300 buffer, thislen, &actual_length, DATA_TIMEOUT); in speedtch_upload_firmware()
/Linux-v5.4/drivers/ide/
Dide-cd.c612 int dma_error = 0, dma, thislen, uptodate = 0; in cdrom_newpc_intr() local
657 thislen = !blk_rq_is_passthrough(rq) ? len : cmd->nleft; in cdrom_newpc_intr()
658 if (thislen > len) in cdrom_newpc_intr()
659 thislen = len; in cdrom_newpc_intr()
662 stat, thislen); in cdrom_newpc_intr()
692 if (!(stat & ATA_ERR) && !uptodate && thislen) { in cdrom_newpc_intr()
693 ide_pio_bytes(drive, cmd, write, thislen); in cdrom_newpc_intr()
717 while (thislen > 0) { in cdrom_newpc_intr()
718 int blen = min_t(int, thislen, cmd->nleft); in cdrom_newpc_intr()
726 thislen -= blen; in cdrom_newpc_intr()
/Linux-v5.4/fs/overlayfs/
Ddir.c923 int thislen; in ovl_get_redirect() local
928 thislen = strlen(name); in ovl_get_redirect()
931 thislen = d->d_name.len; in ovl_get_redirect()
935 if (thislen + (name[0] != '/') > buflen) { in ovl_get_redirect()
941 buflen -= thislen; in ovl_get_redirect()
942 memcpy(&buf[buflen], name, thislen); in ovl_get_redirect()
Dnamei.c295 size_t thislen = next - s; in ovl_lookup_layer() local
302 err = ovl_lookup_single(base, d, s, thislen, in ovl_lookup_layer()
311 rem -= thislen + 1; in ovl_lookup_layer()
/Linux-v5.4/fs/xfs/
Dxfs_rtalloc.c278 xfs_rtblock_t thislen; /* this extent size */ in xfs_rtallocate_extent_block() local
280 thislen = next - i; in xfs_rtallocate_extent_block()
281 if (thislen >= minlen && thislen > bestlen) { in xfs_rtallocate_extent_block()
283 bestlen = thislen; in xfs_rtallocate_extent_block()
/Linux-v5.4/fs/nfsd/
Dnfs4xdr.c3526 int thislen; in nfsd4_encode_readv() local
3536 thislen = min_t(long, len, ((void *)xdr->end - (void *)xdr->p)); in nfsd4_encode_readv()
3537 p = xdr_reserve_space(xdr, (thislen+3)&~3); in nfsd4_encode_readv()
3540 resp->rqstp->rq_vec[v].iov_len = thislen; in nfsd4_encode_readv()
3542 len -= thislen; in nfsd4_encode_readv()
3545 thislen = min_t(long, len, PAGE_SIZE); in nfsd4_encode_readv()
3546 p = xdr_reserve_space(xdr, (thislen+3)&~3); in nfsd4_encode_readv()
3549 resp->rqstp->rq_vec[v].iov_len = thislen; in nfsd4_encode_readv()
3551 len -= thislen; in nfsd4_encode_readv()