Home
last modified time | relevance | path

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

/drivers/mtd/maps/
Dsbc_gxx.c128 unsigned long thislen = len; in sbc_gxx_copy_from() local
130 thislen = WINDOW_LENGTH-(from & WINDOW_MASK); in sbc_gxx_copy_from()
134 memcpy_fromio(to, iomapadr + (from & WINDOW_MASK), thislen); in sbc_gxx_copy_from()
136 to += thislen; in sbc_gxx_copy_from()
137 from += thislen; in sbc_gxx_copy_from()
138 len -= thislen; in sbc_gxx_copy_from()
153 unsigned long thislen = len; in sbc_gxx_copy_to() local
155 thislen = WINDOW_LENGTH-(to & WINDOW_MASK); in sbc_gxx_copy_to()
159 memcpy_toio(iomapadr + (to & WINDOW_MASK), from, thislen); in sbc_gxx_copy_to()
161 to += thislen; in sbc_gxx_copy_to()
[all …]
Dvmax301.c69 unsigned long thislen = len; in vmax301_copy_from() local
71 thislen = WINDOW_LENGTH-(from & WINDOW_MASK); in vmax301_copy_from()
74 memcpy_fromio(to, map->map_priv_2 + from, thislen); in vmax301_copy_from()
76 to += thislen; in vmax301_copy_from()
77 from += thislen; in vmax301_copy_from()
78 len -= thislen; in vmax301_copy_from()
93 unsigned long thislen = len; in vmax301_copy_to() local
95 thislen = WINDOW_LENGTH-(to & WINDOW_MASK); in vmax301_copy_to()
99 memcpy_toio(map->map_priv_2 + to, from, thislen); in vmax301_copy_to()
101 to += thislen; in vmax301_copy_to()
[all …]
Doctagon-5066.c77 unsigned long thislen = len; in oct5066_copy_from() local
79 thislen = WINDOW_LENGTH-(from & WINDOW_MASK); in oct5066_copy_from()
83 memcpy_fromio(to, iomapadr + from, thislen); in oct5066_copy_from()
85 to += thislen; in oct5066_copy_from()
86 from += thislen; in oct5066_copy_from()
87 len -= thislen; in oct5066_copy_from()
102 unsigned long thislen = len; in oct5066_copy_to() local
104 thislen = WINDOW_LENGTH-(to & WINDOW_MASK); in oct5066_copy_to()
108 memcpy_toio(iomapadr + to, from, thislen); in oct5066_copy_to()
110 to += thislen; in oct5066_copy_to()
[all …]
/drivers/mtd/onenand/
Donenand_base.c784 int thislen) in onenand_transfer_auto_oob() argument
789 int readend = column + thislen; in onenand_transfer_auto_oob()
835 int read = 0, column, thislen; in onenand_read_ops_nolock() local
872 thislen = min_t(int, writesize, len - read); in onenand_read_ops_nolock()
874 if (column + thislen > writesize) in onenand_read_ops_nolock()
875 thislen = writesize - column; in onenand_read_ops_nolock()
879 from += thislen; in onenand_read_ops_nolock()
880 if (read + thislen < len) { in onenand_read_ops_nolock()
896 this->read_bufferram(mtd, ONENAND_DATARAM, buf, column, thislen); in onenand_read_ops_nolock()
913 read += thislen; in onenand_read_ops_nolock()
[all …]
/drivers/net/arm/
Dether1.c132 unsigned int page, thislen, offset; in ether1_writebuffer() local
140 thislen = 4096 - offset; in ether1_writebuffer()
142 thislen = length; in ether1_writebuffer()
148 length -= thislen; in ether1_writebuffer()
181 : "r" (addr), "r" (thislen), "1" (data)); in ether1_writebuffer()
185 thislen = length; in ether1_writebuffer()
186 if (thislen > 4096) in ether1_writebuffer()
187 thislen = 4096; in ether1_writebuffer()
189 } while (thislen); in ether1_writebuffer()
195 unsigned int page, thislen, offset; in ether1_readbuffer() local
[all …]
/drivers/mtd/chips/
Dcfi_cmdset_0020.c398 unsigned long thislen; in cfi_staa_read() local
404 thislen = (1<<cfi->chipshift) - ofs; in cfi_staa_read()
406 thislen = len; in cfi_staa_read()
408 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); in cfi_staa_read()
412 *retlen += thislen; in cfi_staa_read()
413 len -= thislen; in cfi_staa_read()
414 buf += thislen; in cfi_staa_read()
673 size_t totlen = 0, thislen; in cfi_staa_writev() local
700 ret = mtd->write(mtd, to, ECCBUF_SIZE, &thislen, buffer); in cfi_staa_writev()
701 totlen += thislen; in cfi_staa_writev()
[all …]
Dcfi_cmdset_0002.c936 unsigned long thislen; in cfi_amdstd_read() local
942 thislen = (1<<cfi->chipshift) - ofs; in cfi_amdstd_read()
944 thislen = len; in cfi_amdstd_read()
946 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf); in cfi_amdstd_read()
950 *retlen += thislen; in cfi_amdstd_read()
951 len -= thislen; in cfi_amdstd_read()
952 buf += thislen; in cfi_amdstd_read()
1030 unsigned long thislen; in cfi_amdstd_secsi_read() local
1036 thislen = (1<<3) - ofs; in cfi_amdstd_secsi_read()
1038 thislen = len; in cfi_amdstd_secsi_read()
[all …]
Dcfi_cmdset_0001.c1309 unsigned long thislen; in cfi_intelext_point() local
1321 thislen = (1<<cfi->chipshift) - ofs; in cfi_intelext_point()
1323 thislen = len; in cfi_intelext_point()
1325 ret = do_point_onechip(map, &cfi->chips[chipnum], ofs, thislen); in cfi_intelext_point()
1329 *retlen += thislen; in cfi_intelext_point()
1330 len -= thislen; in cfi_intelext_point()
1353 unsigned long thislen; in cfi_intelext_unpoint() local
1361 thislen = (1<<cfi->chipshift) - ofs; in cfi_intelext_unpoint()
1363 thislen = len; in cfi_intelext_unpoint()
1376 len -= thislen; in cfi_intelext_unpoint()
[all …]
/drivers/mtd/
Dnftlcore.c485 u16 ChainLength = 0, thislen; in NFTL_makefreeblock() local
490 thislen = 0; in NFTL_makefreeblock()
493 thislen++; in NFTL_makefreeblock()
496 if (thislen > 0xff00) { in NFTL_makefreeblock()
500 if (thislen > 0xff10) { in NFTL_makefreeblock()
503 thislen = 0; in NFTL_makefreeblock()
508 if (thislen > ChainLength) { in NFTL_makefreeblock()
510 ChainLength = thislen; in NFTL_makefreeblock()
Dmtdcore.c316 size_t totlen = 0, thislen; in default_mtd_writev() local
325 ret = mtd->write(mtd, to, vecs[i].iov_len, &thislen, vecs[i].iov_base); in default_mtd_writev()
326 totlen += thislen; in default_mtd_writev()
327 if (ret || thislen != vecs[i].iov_len) in default_mtd_writev()
Dinftlcore.c421 u16 ChainLength = 0, thislen; in INFTL_makefreeblock() local
429 thislen = 0; in INFTL_makefreeblock()
432 thislen++; in INFTL_makefreeblock()
434 if (thislen > 0xff00) { in INFTL_makefreeblock()
442 thislen = 0; in INFTL_makefreeblock()
447 if (thislen > ChainLength) { in INFTL_makefreeblock()
448 ChainLength = thislen; in INFTL_makefreeblock()
/drivers/mtd/lpddr/
Dlpddr_cmds.c555 unsigned long thislen; in lpddr_point() local
567 thislen = (1<<lpddr->chipshift) - ofs; in lpddr_point()
569 thislen = len; in lpddr_point()
579 *retlen += thislen; in lpddr_point()
580 len -= thislen; in lpddr_point()
601 unsigned long thislen; in lpddr_unpoint() local
609 thislen = (1<<lpddr->chipshift) - ofs; in lpddr_unpoint()
611 thislen = len; in lpddr_unpoint()
625 len -= thislen; in lpddr_unpoint()
/drivers/ide/
Dide-cd.c767 int dma_error = 0, dma, stat, thislen, uptodate = 0; in cdrom_newpc_intr() local
807 thislen = blk_fs_request(rq) ? len : rq->data_len; in cdrom_newpc_intr()
808 if (thislen > len) in cdrom_newpc_intr()
809 thislen = len; in cdrom_newpc_intr()
812 __func__, stat, thislen); in cdrom_newpc_intr()
860 thislen >> 9); in cdrom_newpc_intr()
864 thislen -= (nskip << 9); in cdrom_newpc_intr()
881 while (thislen > 0) { in cdrom_newpc_intr()
902 ide_pad_transfer(drive, 0, thislen); in cdrom_newpc_intr()
913 if (blen > thislen) in cdrom_newpc_intr()
[all …]
/drivers/usb/atm/
Dspeedtch.c286 int thislen = min_t(int, PAGE_SIZE, fw1->size - offset); in speedtch_upload_firmware() local
287 memcpy(buffer, fw1->data + offset, thislen); in speedtch_upload_firmware()
290 buffer, thislen, &actual_length, DATA_TIMEOUT); in speedtch_upload_firmware()
313 int thislen = min_t(int, PAGE_SIZE, fw2->size - offset); in speedtch_upload_firmware() local
314 memcpy(buffer, fw2->data + offset, thislen); in speedtch_upload_firmware()
317 buffer, thislen, &actual_length, DATA_TIMEOUT); in speedtch_upload_firmware()