Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/mtd/maps/
Dsbc_gxx.c127 unsigned long thislen = len; in sbc_gxx_copy_from() local
129 thislen = WINDOW_LENGTH-(from & WINDOW_MASK); in sbc_gxx_copy_from()
133 memcpy_fromio(to, iomapadr + (from & WINDOW_MASK), thislen); in sbc_gxx_copy_from()
135 to += thislen; in sbc_gxx_copy_from()
136 from += thislen; in sbc_gxx_copy_from()
137 len -= thislen; in sbc_gxx_copy_from()
152 unsigned long thislen = len; in sbc_gxx_copy_to() local
154 thislen = WINDOW_LENGTH-(to & WINDOW_MASK); in sbc_gxx_copy_to()
158 memcpy_toio(iomapadr + (to & WINDOW_MASK), from, thislen); in sbc_gxx_copy_to()
160 to += thislen; in sbc_gxx_copy_to()
[all …]
/Linux-v4.19/drivers/fmc/
Dfmc-write-eeprom.c37 uint16_t thislen, thisaddr; in fwe_run_tlv() local
43 thislen = get_unaligned_le16(p+3); in fwe_run_tlv()
44 if (p[0] != 'w' || thislen + 5 > len) { in fwe_run_tlv()
52 thislen, thisaddr); in fwe_run_tlv()
53 err = fmc_write_ee(fmc, thisaddr, p + 5, thislen); in fwe_run_tlv()
60 p += 5 + thislen; in fwe_run_tlv()
61 len -= 5 + thislen; in fwe_run_tlv()
/Linux-v4.19/drivers/mtd/nand/onenand/
Donenand_base.c1055 int thislen) in onenand_transfer_auto_oob() argument
1063 column, thislen); in onenand_transfer_auto_oob()
1131 int read = 0, column, thislen; in onenand_mlc_read_ops_nolock() local
1156 thislen = min_t(int, writesize, len - read); in onenand_mlc_read_ops_nolock()
1159 if (column + thislen > writesize) in onenand_mlc_read_ops_nolock()
1160 thislen = writesize - column; in onenand_mlc_read_ops_nolock()
1175 this->read_bufferram(mtd, ONENAND_DATARAM, buf, column, thislen); in onenand_mlc_read_ops_nolock()
1189 read += thislen; in onenand_mlc_read_ops_nolock()
1193 from += thislen; in onenand_mlc_read_ops_nolock()
1194 buf += thislen; in onenand_mlc_read_ops_nolock()
[all …]
/Linux-v4.19/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-v4.19/drivers/net/ethernet/i825xx/
Dether1.c131 unsigned int page, thislen, offset; in ether1_writebuffer() local
139 thislen = 4096 - offset; in ether1_writebuffer()
141 thislen = length; in ether1_writebuffer()
147 length -= thislen; in ether1_writebuffer()
180 : "r" (addr), "r" (thislen), "1" (data)); in ether1_writebuffer()
184 thislen = length; in ether1_writebuffer()
185 if (thislen > 4096) in ether1_writebuffer()
186 thislen = 4096; in ether1_writebuffer()
188 } while (thislen); in ether1_writebuffer()
194 unsigned int page, thislen, offset; in ether1_readbuffer() local
[all …]
/Linux-v4.19/drivers/mtd/chips/
Dcfi_cmdset_0020.c396 unsigned long thislen; in cfi_staa_read() local
402 thislen = (1<<cfi->chipshift) - ofs; in cfi_staa_read()
404 thislen = len; in cfi_staa_read()
406 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); in cfi_staa_read()
410 *retlen += thislen; in cfi_staa_read()
411 len -= thislen; in cfi_staa_read()
412 buf += thislen; in cfi_staa_read()
667 size_t totlen = 0, thislen; in cfi_staa_writev() local
694 ret = mtd_write(mtd, to, ECCBUF_SIZE, &thislen, in cfi_staa_writev()
696 totlen += thislen; in cfi_staa_writev()
[all …]
Dcfi_cmdset_0001.c1401 unsigned long thislen; in cfi_intelext_point() local
1413 thislen = (1<<cfi->chipshift) - ofs; in cfi_intelext_point()
1415 thislen = len; in cfi_intelext_point()
1417 ret = do_point_onechip(map, &cfi->chips[chipnum], ofs, thislen); in cfi_intelext_point()
1421 *retlen += thislen; in cfi_intelext_point()
1422 len -= thislen; in cfi_intelext_point()
1445 unsigned long thislen; in cfi_intelext_unpoint() local
1453 thislen = (1<<cfi->chipshift) - ofs; in cfi_intelext_unpoint()
1455 thislen = len; in cfi_intelext_unpoint()
1470 len -= thislen; in cfi_intelext_unpoint()
[all …]
Dcfi_cmdset_0002.c1154 unsigned long thislen; in cfi_amdstd_read() local
1160 thislen = (1<<cfi->chipshift) - ofs; in cfi_amdstd_read()
1162 thislen = len; in cfi_amdstd_read()
1164 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); in cfi_amdstd_read()
1168 *retlen += thislen; in cfi_amdstd_read()
1169 len -= thislen; in cfi_amdstd_read()
1170 buf += thislen; in cfi_amdstd_read()
1263 unsigned long thislen; in cfi_amdstd_secsi_read() local
1269 thislen = (1<<3) - ofs; in cfi_amdstd_secsi_read()
1271 thislen = len; in cfi_amdstd_secsi_read()
[all …]
/Linux-v4.19/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()
/Linux-v4.19/drivers/mtd/
Dnftlcore.c493 u16 ChainLength = 0, thislen; in NFTL_makefreeblock() local
498 thislen = 0; in NFTL_makefreeblock()
501 thislen++; in NFTL_makefreeblock()
504 if (thislen > 0xff00) { in NFTL_makefreeblock()
508 if (thislen > 0xff10) { in NFTL_makefreeblock()
511 thislen = 0; in NFTL_makefreeblock()
516 if (thislen > ChainLength) { in NFTL_makefreeblock()
518 ChainLength = thislen; in NFTL_makefreeblock()
Dinftlcore.c419 u16 ChainLength = 0, thislen; in INFTL_makefreeblock() local
427 thislen = 0; in INFTL_makefreeblock()
430 thislen++; in INFTL_makefreeblock()
432 if (thislen > 0xff00) { in INFTL_makefreeblock()
440 thislen = 0; in INFTL_makefreeblock()
445 if (thislen > ChainLength) { in INFTL_makefreeblock()
446 ChainLength = thislen; in INFTL_makefreeblock()
Dmtdcore.c1744 size_t totlen = 0, thislen; in default_mtd_writev() local
1750 ret = mtd_write(mtd, to, vecs[i].iov_len, &thislen, in default_mtd_writev()
1752 totlen += thislen; in default_mtd_writev()
1753 if (ret || thislen != vecs[i].iov_len) in default_mtd_writev()
/Linux-v4.19/net/sunrpc/
Dxdr.c1459 unsigned int page_len, thislen, page_offset; in xdr_process_buf() local
1467 thislen = buf->head[0].iov_len - offset; in xdr_process_buf()
1468 if (thislen > len) in xdr_process_buf()
1469 thislen = len; in xdr_process_buf()
1470 sg_set_buf(sg, buf->head[0].iov_base + offset, thislen); in xdr_process_buf()
1475 len -= thislen; in xdr_process_buf()
1489 thislen = PAGE_SIZE - page_offset; in xdr_process_buf()
1491 if (thislen > page_len) in xdr_process_buf()
1492 thislen = page_len; in xdr_process_buf()
1493 sg_set_page(sg, buf->pages[i], thislen, page_offset); in xdr_process_buf()
[all …]
/Linux-v4.19/drivers/mtd/lpddr/
Dlpddr_cmds.c539 unsigned long thislen; in lpddr_point() local
551 thislen = (1<<lpddr->chipshift) - ofs; in lpddr_point()
553 thislen = len; in lpddr_point()
563 *retlen += thislen; in lpddr_point()
564 len -= thislen; in lpddr_point()
585 unsigned long thislen; in lpddr_unpoint() local
593 thislen = (1<<lpddr->chipshift) - ofs; in lpddr_unpoint()
595 thislen = len; in lpddr_unpoint()
611 len -= thislen; in lpddr_unpoint()
/Linux-v4.19/net/sunrpc/auth_gss/
Dgss_krb5_crypto.c471 int thislen = desc->fraglen + sg->length; in encryptor() local
495 fraglen = thislen & (crypto_skcipher_blocksize(tfm) - 1); in encryptor()
496 thislen -= fraglen; in encryptor()
498 if (thislen == 0) in encryptor()
505 thislen, desc->iv); in encryptor()
569 int thislen = desc->fraglen + sg->length; in decryptor() local
581 fraglen = thislen & (crypto_skcipher_blocksize(tfm) - 1); in decryptor()
582 thislen -= fraglen; in decryptor()
584 if (thislen == 0) in decryptor()
590 thislen, desc->iv); in decryptor()
/Linux-v4.19/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-v4.19/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-v4.19/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-v4.19/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-v4.19/drivers/ide/
Dide-cd.c525 int dma_error = 0, dma, thislen, uptodate = 0; in cdrom_newpc_intr() local
570 thislen = !blk_rq_is_passthrough(rq) ? len : cmd->nleft; in cdrom_newpc_intr()
571 if (thislen > len) in cdrom_newpc_intr()
572 thislen = len; in cdrom_newpc_intr()
575 stat, thislen); in cdrom_newpc_intr()
605 if (!(stat & ATA_ERR) && !uptodate && thislen) { in cdrom_newpc_intr()
606 ide_pio_bytes(drive, cmd, write, thislen); in cdrom_newpc_intr()
630 while (thislen > 0) { in cdrom_newpc_intr()
631 int blen = min_t(int, thislen, cmd->nleft); in cdrom_newpc_intr()
639 thislen -= blen; in cdrom_newpc_intr()
/Linux-v4.19/fs/xfs/
Dxfs_rtalloc.c276 xfs_rtblock_t thislen; /* this extent size */ in xfs_rtallocate_extent_block() local
278 thislen = next - i; in xfs_rtallocate_extent_block()
279 if (thislen >= minlen && thislen > bestlen) { in xfs_rtallocate_extent_block()
281 bestlen = thislen; in xfs_rtallocate_extent_block()
/Linux-v4.19/fs/overlayfs/
Ddir.c909 int thislen; in ovl_get_redirect() local
914 thislen = strlen(name); in ovl_get_redirect()
917 thislen = d->d_name.len; in ovl_get_redirect()
921 if (thislen + (name[0] != '/') > buflen) { in ovl_get_redirect()
927 buflen -= thislen; in ovl_get_redirect()
928 memcpy(&buf[buflen], name, thislen); in ovl_get_redirect()
Dnamei.c291 size_t thislen = next - s; in ovl_lookup_layer() local
298 err = ovl_lookup_single(base, d, s, thislen, in ovl_lookup_layer()
307 rem -= thislen + 1; in ovl_lookup_layer()
/Linux-v4.19/fs/nfsd/
Dnfs4xdr.c3519 int thislen; in nfsd4_encode_readv() local
3529 thislen = min_t(long, len, ((void *)xdr->end - (void *)xdr->p)); in nfsd4_encode_readv()
3530 p = xdr_reserve_space(xdr, (thislen+3)&~3); in nfsd4_encode_readv()
3533 resp->rqstp->rq_vec[v].iov_len = thislen; in nfsd4_encode_readv()
3535 len -= thislen; in nfsd4_encode_readv()
3538 thislen = min_t(long, len, PAGE_SIZE); in nfsd4_encode_readv()
3539 p = xdr_reserve_space(xdr, (thislen+3)&~3); in nfsd4_encode_readv()
3542 resp->rqstp->rq_vec[v].iov_len = thislen; in nfsd4_encode_readv()
3544 len -= thislen; in nfsd4_encode_readv()