/linux-4.1.27/drivers/mtd/maps/ |
D | sbc_gxx.c | 127 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-4.1.27/drivers/fmc/ |
D | fmc-write-eeprom.c | 37 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->op->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-4.1.27/fs/qnx4/ |
D | namei.c | 29 int namelen, thislen; in qnx4_match() local 42 thislen = strlen( de->di_fname ); in qnx4_match() 43 if ( thislen > namelen ) in qnx4_match() 44 thislen = namelen; in qnx4_match() 45 if (len != thislen) { in qnx4_match()
|
/linux-4.1.27/drivers/mtd/onenand/ |
D | onenand_base.c | 1024 int thislen) in onenand_transfer_auto_oob() argument 1029 int readend = column + thislen; in onenand_transfer_auto_oob() 1119 int read = 0, column, thislen; in onenand_mlc_read_ops_nolock() local 1148 thislen = min_t(int, writesize, len - read); in onenand_mlc_read_ops_nolock() 1151 if (column + thislen > writesize) in onenand_mlc_read_ops_nolock() 1152 thislen = writesize - column; in onenand_mlc_read_ops_nolock() 1167 this->read_bufferram(mtd, ONENAND_DATARAM, buf, column, thislen); in onenand_mlc_read_ops_nolock() 1181 read += thislen; in onenand_mlc_read_ops_nolock() 1185 from += thislen; in onenand_mlc_read_ops_nolock() 1186 buf += thislen; in onenand_mlc_read_ops_nolock() [all …]
|
/linux-4.1.27/drivers/net/ethernet/i825xx/ |
D | ether1.c | 130 unsigned int page, thislen, offset; in ether1_writebuffer() local 138 thislen = 4096 - offset; in ether1_writebuffer() 140 thislen = length; in ether1_writebuffer() 146 length -= thislen; in ether1_writebuffer() 179 : "r" (addr), "r" (thislen), "1" (data)); in ether1_writebuffer() 183 thislen = length; in ether1_writebuffer() 184 if (thislen > 4096) in ether1_writebuffer() 185 thislen = 4096; in ether1_writebuffer() 187 } while (thislen); in ether1_writebuffer() 193 unsigned int page, thislen, offset; in ether1_readbuffer() local [all …]
|
/linux-4.1.27/drivers/mtd/chips/ |
D | cfi_cmdset_0020.c | 395 unsigned long thislen; in cfi_staa_read() local 401 thislen = (1<<cfi->chipshift) - ofs; in cfi_staa_read() 403 thislen = len; in cfi_staa_read() 405 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); in cfi_staa_read() 409 *retlen += thislen; in cfi_staa_read() 410 len -= thislen; in cfi_staa_read() 411 buf += thislen; in cfi_staa_read() 666 size_t totlen = 0, thislen; in cfi_staa_writev() local 693 ret = mtd_write(mtd, to, ECCBUF_SIZE, &thislen, in cfi_staa_writev() 695 totlen += thislen; in cfi_staa_writev() [all …]
|
D | cfi_cmdset_0001.c | 1371 unsigned long thislen; in cfi_intelext_point() local 1383 thislen = (1<<cfi->chipshift) - ofs; in cfi_intelext_point() 1385 thislen = len; in cfi_intelext_point() 1387 ret = do_point_onechip(map, &cfi->chips[chipnum], ofs, thislen); in cfi_intelext_point() 1391 *retlen += thislen; in cfi_intelext_point() 1392 len -= thislen; in cfi_intelext_point() 1415 unsigned long thislen; in cfi_intelext_unpoint() local 1423 thislen = (1<<cfi->chipshift) - ofs; in cfi_intelext_unpoint() 1425 thislen = len; in cfi_intelext_unpoint() 1440 len -= thislen; in cfi_intelext_unpoint() [all …]
|
D | cfi_cmdset_0002.c | 1150 unsigned long thislen; in cfi_amdstd_read() local 1156 thislen = (1<<cfi->chipshift) - ofs; in cfi_amdstd_read() 1158 thislen = len; in cfi_amdstd_read() 1160 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); in cfi_amdstd_read() 1164 *retlen += thislen; in cfi_amdstd_read() 1165 len -= thislen; in cfi_amdstd_read() 1166 buf += thislen; in cfi_amdstd_read() 1261 unsigned long thislen; in cfi_amdstd_secsi_read() local 1267 thislen = (1<<3) - ofs; in cfi_amdstd_secsi_read() 1269 thislen = len; in cfi_amdstd_secsi_read() [all …]
|
/linux-4.1.27/drivers/mtd/ |
D | nftlcore.c | 493 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()
|
D | inftlcore.c | 419 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()
|
D | mtdcore.c | 1117 size_t totlen = 0, thislen; in default_mtd_writev() local 1123 ret = mtd_write(mtd, to, vecs[i].iov_len, &thislen, in default_mtd_writev() 1125 totlen += thislen; in default_mtd_writev() 1126 if (ret || thislen != vecs[i].iov_len) in default_mtd_writev()
|
/linux-4.1.27/net/sunrpc/ |
D | xdr.c | 1454 unsigned int page_len, thislen, page_offset; in xdr_process_buf() local 1462 thislen = buf->head[0].iov_len - offset; in xdr_process_buf() 1463 if (thislen > len) in xdr_process_buf() 1464 thislen = len; in xdr_process_buf() 1465 sg_set_buf(sg, buf->head[0].iov_base + offset, thislen); in xdr_process_buf() 1470 len -= thislen; in xdr_process_buf() 1484 thislen = PAGE_CACHE_SIZE - page_offset; in xdr_process_buf() 1486 if (thislen > page_len) in xdr_process_buf() 1487 thislen = page_len; in xdr_process_buf() 1488 sg_set_page(sg, buf->pages[i], thislen, page_offset); in xdr_process_buf() [all …]
|
/linux-4.1.27/drivers/mtd/lpddr/ |
D | lpddr_cmds.c | 539 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-4.1.27/net/sunrpc/auth_gss/ |
D | gss_krb5_crypto.c | 406 int thislen = desc->fraglen + sg->length; in encryptor() local 430 fraglen = thislen & (crypto_blkcipher_blocksize(desc->desc.tfm) - 1); in encryptor() 431 thislen -= fraglen; in encryptor() 433 if (thislen == 0) in encryptor() 440 desc->infrags, thislen); in encryptor() 499 int thislen = desc->fraglen + sg->length; in decryptor() local 510 fraglen = thislen & (crypto_blkcipher_blocksize(desc->desc.tfm) - 1); in decryptor() 511 thislen -= fraglen; in decryptor() 513 if (thislen == 0) in decryptor() 519 desc->frags, thislen); in decryptor()
|
/linux-4.1.27/fs/qnx6/ |
D | dir.c | 185 int thislen; in qnx6_long_match() local 191 thislen = fs16_to_cpu(sbi, lf->lf_size); in qnx6_long_match() 192 if (len != thislen) { in qnx6_long_match()
|
/linux-4.1.27/drivers/scsi/esas2r/ |
D | esas2r_flash.c | 284 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-4.1.27/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_fcoe.c | 172 unsigned int thislen = 0; in ixgbe_fcoe_ddp_setup() local 241 thislen = min((bufflen - thisoff), len); in ixgbe_fcoe_ddp_setup() 253 if (((i != (dmacount - 1)) || (thislen != len)) in ixgbe_fcoe_ddp_setup() 254 && ((thislen + thisoff) != bufflen)) in ixgbe_fcoe_ddp_setup() 261 len -= thislen; in ixgbe_fcoe_ddp_setup() 262 addr += thislen; in ixgbe_fcoe_ddp_setup() 267 lastsize = thisoff + thislen; in ixgbe_fcoe_ddp_setup()
|
/linux-4.1.27/drivers/usb/atm/ |
D | speedtch.c | 283 int thislen = min_t(int, PAGE_SIZE, fw1->size - offset); in speedtch_upload_firmware() local 284 memcpy(buffer, fw1->data + offset, thislen); in speedtch_upload_firmware() 287 buffer, thislen, &actual_length, DATA_TIMEOUT); in speedtch_upload_firmware() 310 int thislen = min_t(int, PAGE_SIZE, fw2->size - offset); in speedtch_upload_firmware() local 311 memcpy(buffer, fw2->data + offset, thislen); in speedtch_upload_firmware() 314 buffer, thislen, &actual_length, DATA_TIMEOUT); in speedtch_upload_firmware()
|
/linux-4.1.27/drivers/ide/ |
D | ide-cd.c | 527 int dma_error = 0, dma, thislen, uptodate = 0; in cdrom_newpc_intr() local 572 thislen = (rq->cmd_type == REQ_TYPE_FS) ? len : cmd->nleft; in cdrom_newpc_intr() 573 if (thislen > len) in cdrom_newpc_intr() 574 thislen = len; in cdrom_newpc_intr() 577 stat, thislen); in cdrom_newpc_intr() 604 if (!(stat & ATA_ERR) && !uptodate && thislen) { in cdrom_newpc_intr() 605 ide_pio_bytes(drive, cmd, write, thislen); in cdrom_newpc_intr() 626 while (thislen > 0) { in cdrom_newpc_intr() 627 int blen = min_t(int, thislen, cmd->nleft); in cdrom_newpc_intr() 635 thislen -= blen; in cdrom_newpc_intr()
|
/linux-4.1.27/drivers/net/ethernet/intel/i40e/ |
D | i40e_fcoe.c | 828 unsigned int thislen = 0; in i40e_fcoe_ddp_setup() local 898 thislen = min_t(unsigned int, (bufflen - thisoff), len); in i40e_fcoe_ddp_setup() 909 if (((i != (dmacount - 1)) || (thislen != len)) && in i40e_fcoe_ddp_setup() 910 ((thislen + thisoff) != bufflen)) in i40e_fcoe_ddp_setup() 917 len -= thislen; in i40e_fcoe_ddp_setup() 918 addr += thislen; in i40e_fcoe_ddp_setup() 923 ddp->lastsize = thisoff + thislen; in i40e_fcoe_ddp_setup()
|
/linux-4.1.27/fs/xfs/ |
D | xfs_rtalloc.c | 287 xfs_rtblock_t thislen; /* this extent size */ in xfs_rtallocate_extent_block() local 289 thislen = next - i; in xfs_rtallocate_extent_block() 290 if (thislen >= minlen && thislen > bestlen) { in xfs_rtallocate_extent_block() 292 bestlen = thislen; in xfs_rtallocate_extent_block()
|
/linux-4.1.27/fs/nfsd/ |
D | nfs4xdr.c | 3389 int thislen; in nfsd4_encode_readv() local 3399 thislen = min_t(long, len, ((void *)xdr->end - (void *)xdr->p)); in nfsd4_encode_readv() 3400 p = xdr_reserve_space(xdr, (thislen+3)&~3); in nfsd4_encode_readv() 3403 resp->rqstp->rq_vec[v].iov_len = thislen; in nfsd4_encode_readv() 3405 len -= thislen; in nfsd4_encode_readv() 3408 thislen = min_t(long, len, PAGE_SIZE); in nfsd4_encode_readv() 3409 p = xdr_reserve_space(xdr, (thislen+3)&~3); in nfsd4_encode_readv() 3412 resp->rqstp->rq_vec[v].iov_len = thislen; in nfsd4_encode_readv() 3414 len -= thislen; in nfsd4_encode_readv()
|