Searched defs:thislen (Results 1 - 16 of 16) sorted by relevance

/drivers/fmc/
H A Dfmc-write-eeprom.c37 uint16_t thislen, thisaddr; local
43 thislen = get_unaligned_le16(p+3);
44 if (p[0] != 'w' || thislen + 5 > len) {
52 thislen, thisaddr);
53 err = fmc->op->write_ee(fmc, thisaddr, p + 5, thislen);
60 p += 5 + thislen;
61 len -= 5 + thislen;
/drivers/mtd/maps/
H A Dsbc_gxx.c127 unsigned long thislen = len; local
129 thislen = WINDOW_LENGTH-(from & WINDOW_MASK);
133 memcpy_fromio(to, iomapadr + (from & WINDOW_MASK), thislen);
135 to += thislen;
136 from += thislen;
137 len -= thislen;
152 unsigned long thislen = len; local
154 thislen = WINDOW_LENGTH-(to & WINDOW_MASK);
158 memcpy_toio(iomapadr + (to & WINDOW_MASK), from, thislen);
160 to += thislen;
[all...]
/drivers/mtd/lpddr/
H A Dlpddr_cmds.c539 unsigned long thislen; local
551 thislen = (1<<lpddr->chipshift) - ofs;
553 thislen = len;
563 *retlen += thislen;
564 len -= thislen;
585 unsigned long thislen; local
593 thislen = (1<<lpddr->chipshift) - ofs;
595 thislen = len;
611 len -= thislen;
/drivers/mtd/
H A Dnftlcore.c493 u16 ChainLength = 0, thislen; local
498 thislen = 0;
501 thislen++;
502 //printk("VUC %d reaches len %d with EUN %d\n", chain, thislen, EUN);
504 if (thislen > 0xff00) {
508 if (thislen > 0xff10) {
511 thislen = 0;
516 if (thislen > ChainLength) {
517 //printk("New longest chain is %d with length %d\n", chain, thislen);
518 ChainLength = thislen;
[all...]
H A Dinftlcore.c419 u16 ChainLength = 0, thislen; local
427 thislen = 0;
430 thislen++;
432 if (thislen > 0xff00) {
440 thislen = 0;
445 if (thislen > ChainLength) {
446 ChainLength = thislen;
H A Dmtdcore.c1090 size_t totlen = 0, thislen; local
1096 ret = mtd_write(mtd, to, vecs[i].iov_len, &thislen,
1098 totlen += thislen;
1099 if (ret || thislen != vecs[i].iov_len)
/drivers/mtd/chips/
H A Dcfi_cmdset_0020.c395 unsigned long thislen; local
401 thislen = (1<<cfi->chipshift) - ofs;
403 thislen = len;
405 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf);
409 *retlen += thislen;
410 len -= thislen;
411 buf += thislen;
666 size_t totlen = 0, thislen; local
693 ret = mtd_write(mtd, to, ECCBUF_SIZE, &thislen,
695 totlen += thislen;
[all...]
H A Dcfi_cmdset_0001.c1371 unsigned long thislen; local
1383 thislen = (1<<cfi->chipshift) - ofs;
1385 thislen = len;
1387 ret = do_point_onechip(map, &cfi->chips[chipnum], ofs, thislen);
1391 *retlen += thislen;
1392 len -= thislen;
1415 unsigned long thislen; local
1423 thislen = (1<<cfi->chipshift) - ofs;
1425 thislen = len;
1440 len -= thislen;
1493 unsigned long thislen; local
[all...]
H A Dcfi_cmdset_0002.c1150 unsigned long thislen; local
1156 thislen = (1<<cfi->chipshift) - ofs;
1158 thislen = len;
1160 ret = do_read_onechip(map, &cfi->chips[chipnum], ofs, thislen, buf);
1164 *retlen += thislen;
1165 len -= thislen;
1166 buf += thislen;
1261 unsigned long thislen; local
1267 thislen = (1<<3) - ofs;
1269 thislen
[all...]
/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_fcoe.c145 unsigned int thislen = 0; local
214 thislen = min((bufflen - thisoff), len);
223 * ((i == (dmacount - 1)) && (thislen == len))
226 if (((i != (dmacount - 1)) || (thislen != len))
227 && ((thislen + thisoff) != bufflen))
234 len -= thislen;
235 addr += thislen;
240 lastsize = thisoff + thislen;
/drivers/scsi/esas2r/
H A Desas2r_flash.c284 u32 thislen; local
291 thislen = (u32)le16_to_cpu(bh->image_length) * 512;
293 if (thislen > len)
296 len -= thislen;
297 offset += thislen;
1167 u32 thislen; local
1170 thislen = (u32)le16_to_cpu(bh->image_length) * 512;
1171 if (thislen == 0
1172 || thislen + offset > len
1176 offset += thislen;
[all...]
/drivers/usb/atm/
H A Dspeedtch.c283 int thislen = min_t(int, PAGE_SIZE, fw1->size - offset); local
284 memcpy(buffer, fw1->data + offset, thislen);
287 buffer, thislen, &actual_length, DATA_TIMEOUT);
310 int thislen = min_t(int, PAGE_SIZE, fw2->size - offset); local
311 memcpy(buffer, fw2->data + offset, thislen);
314 buffer, thislen, &actual_length, DATA_TIMEOUT);
/drivers/ide/
H A Dide-cd.c527 int dma_error = 0, dma, thislen, uptodate = 0; local
572 thislen = (rq->cmd_type == REQ_TYPE_FS) ? len : cmd->nleft;
573 if (thislen > len)
574 thislen = len;
576 ide_debug_log(IDE_DBG_PC, "DRQ: stat: 0x%x, thislen: %d",
577 stat, thislen);
604 if (!(stat & ATA_ERR) && !uptodate && thislen) {
605 ide_pio_bytes(drive, cmd, write, thislen);
626 while (thislen > 0) {
627 int blen = min_t(int, thislen, cm
[all...]
/drivers/net/ethernet/i825xx/
H A Dether1.c130 unsigned int page, thislen, offset; local
138 thislen = 4096 - offset;
140 thislen = length;
146 length -= thislen;
179 : "r" (addr), "r" (thislen), "1" (data));
183 thislen = length;
184 if (thislen > 4096)
185 thislen = 4096;
187 } while (thislen);
193 unsigned int page, thislen, offse local
[all...]
/drivers/net/ethernet/intel/i40e/
H A Di40e_fcoe.c833 unsigned int thislen = 0; local
903 thislen = min_t(unsigned int, (bufflen - thisoff), len);
911 * ((i == (dmacount - 1)) && (thislen == len))
914 if (((i != (dmacount - 1)) || (thislen != len)) &&
915 ((thislen + thisoff) != bufflen))
922 len -= thislen;
923 addr += thislen;
928 ddp->lastsize = thisoff + thislen;
/drivers/mtd/onenand/
H A Donenand_base.c1021 * @param thislen oob length to read
1024 int thislen)
1029 int readend = column + thislen;
1119 int read = 0, column, thislen; local
1148 thislen = min_t(int, writesize, len - read);
1151 if (column + thislen > writesize)
1152 thislen = writesize - column;
1167 this->read_bufferram(mtd, ONENAND_DATARAM, buf, column, thislen);
1181 read += thislen;
1185 from += thislen;
1023 onenand_transfer_auto_oob(struct mtd_info *mtd, uint8_t *buf, int column, int thislen) argument
1224 int read = 0, column, thislen; local
1353 int read = 0, thislen, column, oobsize; local
1575 int read = 0, thislen, column; local
1679 int thislen, column; local
1768 int thislen = min_t(int, mtd->writesize - column, len - written); local
1822 onenand_fill_auto_oob(struct mtd_info *mtd, u_char *oob_buf, const u_char *buf, int column, int thislen) argument
1867 int written = 0, column, thislen = 0, subpage = 0; local
2106 int thislen = min_t(int, oobsize, len - written); local
2930 int thislen = min_t(int, oobsize, len - written); local
[all...]

Completed in 265 milliseconds