retlen            310 arch/mips/fw/cfe/cfe_api.c 	  int length, int *retlen, u64 offset)
retlen            326 arch/mips/fw/cfe/cfe_api.c 	if (retlen)
retlen            327 arch/mips/fw/cfe/cfe_api.c 		*retlen = xiocb.plist.xiocb_buffer.buf_retlen;
retlen             99 arch/mips/include/asm/fw/cfe/cfe_api.h 	      int length, int *retlen, uint64_t offset);
retlen            432 drivers/block/ps3vram.c 			size_t len, size_t *retlen, u_char *buf)
retlen            471 drivers/block/ps3vram.c 	*retlen = len;
retlen            476 drivers/block/ps3vram.c 			 size_t len, size_t *retlen, const u_char *buf)
retlen            514 drivers/block/ps3vram.c 	*retlen = len;
retlen            552 drivers/block/ps3vram.c 		size_t len = bvec.bv_len, retlen;
retlen            557 drivers/block/ps3vram.c 			error = ps3vram_write(dev, offset, len, &retlen, ptr);
retlen            559 drivers/block/ps3vram.c 			error = ps3vram_read(dev, offset, len, &retlen, ptr);
retlen            566 drivers/block/ps3vram.c 		if (retlen != len) {
retlen            319 drivers/leds/leds-blinkm.c 	int retlen = blinkm_cmds[cmd].nr_ret;
retlen            320 drivers/leds/leds-blinkm.c 	for (i = 0; i < retlen; i++) {
retlen             94 drivers/mtd/chips/cfi_cmdset_0001.c 		     size_t *retlen, void **virt, resource_size_t *phys);
retlen           1380 drivers/mtd/chips/cfi_cmdset_0001.c 		size_t *retlen, void **virt, resource_size_t *phys)
retlen           1422 drivers/mtd/chips/cfi_cmdset_0001.c 		*retlen += thislen;
retlen           1511 drivers/mtd/chips/cfi_cmdset_0001.c static int cfi_intelext_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
retlen           1538 drivers/mtd/chips/cfi_cmdset_0001.c 		*retlen += thislen;
retlen           1623 drivers/mtd/chips/cfi_cmdset_0001.c static int cfi_intelext_write_words (struct mtd_info *mtd, loff_t to , size_t len, size_t *retlen, const u_char *buf)
retlen           1653 drivers/mtd/chips/cfi_cmdset_0001.c 		(*retlen) += n;
retlen           1673 drivers/mtd/chips/cfi_cmdset_0001.c 		(*retlen) += map_bankwidth(map);
retlen           1695 drivers/mtd/chips/cfi_cmdset_0001.c 		(*retlen) += len;
retlen           1869 drivers/mtd/chips/cfi_cmdset_0001.c 				unsigned long count, loff_t to, size_t *retlen)
retlen           1901 drivers/mtd/chips/cfi_cmdset_0001.c 		(*retlen) += size;
retlen           1921 drivers/mtd/chips/cfi_cmdset_0001.c 				       size_t len, size_t *retlen, const u_char *buf)
retlen           1928 drivers/mtd/chips/cfi_cmdset_0001.c 	return cfi_intelext_writev(mtd, &vec, 1, to, retlen);
retlen           2296 drivers/mtd/chips/cfi_cmdset_0001.c 				 size_t *retlen, u_char *buf,
retlen           2309 drivers/mtd/chips/cfi_cmdset_0001.c 	*retlen = 0;
retlen           2389 drivers/mtd/chips/cfi_cmdset_0001.c 					*retlen += sizeof(*otpinfo);
retlen           2407 drivers/mtd/chips/cfi_cmdset_0001.c 					*retlen += size;
retlen           2430 drivers/mtd/chips/cfi_cmdset_0001.c 					   size_t len, size_t *retlen,
retlen           2433 drivers/mtd/chips/cfi_cmdset_0001.c 	return cfi_intelext_otp_walk(mtd, from, len, retlen,
retlen           2438 drivers/mtd/chips/cfi_cmdset_0001.c 					   size_t len, size_t *retlen,
retlen           2441 drivers/mtd/chips/cfi_cmdset_0001.c 	return cfi_intelext_otp_walk(mtd, from, len, retlen,
retlen           2446 drivers/mtd/chips/cfi_cmdset_0001.c 					    size_t len, size_t *retlen,
retlen           2449 drivers/mtd/chips/cfi_cmdset_0001.c 	return cfi_intelext_otp_walk(mtd, from, len, retlen,
retlen           2456 drivers/mtd/chips/cfi_cmdset_0001.c 	size_t retlen;
retlen           2457 drivers/mtd/chips/cfi_cmdset_0001.c 	return cfi_intelext_otp_walk(mtd, from, len, &retlen,
retlen           2462 drivers/mtd/chips/cfi_cmdset_0001.c 					   size_t *retlen, struct otp_info *buf)
retlen           2465 drivers/mtd/chips/cfi_cmdset_0001.c 	return cfi_intelext_otp_walk(mtd, 0, len, retlen, (u_char *)buf,
retlen           2470 drivers/mtd/chips/cfi_cmdset_0001.c 					   size_t *retlen, struct otp_info *buf)
retlen           2472 drivers/mtd/chips/cfi_cmdset_0001.c 	return cfi_intelext_otp_walk(mtd, 0, len, retlen, (u_char *)buf,
retlen             87 drivers/mtd/chips/cfi_cmdset_0002.c 				  size_t *retlen, const u_char *buf);
retlen           1240 drivers/mtd/chips/cfi_cmdset_0002.c static int cfi_amdstd_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
retlen           1267 drivers/mtd/chips/cfi_cmdset_0002.c 		*retlen += thislen;
retlen           1348 drivers/mtd/chips/cfi_cmdset_0002.c static int cfi_amdstd_secsi_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
retlen           1377 drivers/mtd/chips/cfi_cmdset_0002.c 		*retlen += thislen;
retlen           1486 drivers/mtd/chips/cfi_cmdset_0002.c 			       size_t *retlen, u_char *buf,
retlen           1502 drivers/mtd/chips/cfi_cmdset_0002.c 	*retlen = 0;
retlen           1582 drivers/mtd/chips/cfi_cmdset_0002.c 			*retlen += sizeof(*otpinfo);
retlen           1594 drivers/mtd/chips/cfi_cmdset_0002.c 			*retlen += size;
retlen           1604 drivers/mtd/chips/cfi_cmdset_0002.c 					 size_t *retlen, struct otp_info *buf)
retlen           1606 drivers/mtd/chips/cfi_cmdset_0002.c 	return cfi_amdstd_otp_walk(mtd, 0, len, retlen, (u_char *)buf,
retlen           1611 drivers/mtd/chips/cfi_cmdset_0002.c 					 size_t *retlen, struct otp_info *buf)
retlen           1613 drivers/mtd/chips/cfi_cmdset_0002.c 	return cfi_amdstd_otp_walk(mtd, 0, len, retlen, (u_char *)buf,
retlen           1618 drivers/mtd/chips/cfi_cmdset_0002.c 					 size_t len, size_t *retlen,
retlen           1621 drivers/mtd/chips/cfi_cmdset_0002.c 	return cfi_amdstd_otp_walk(mtd, from, len, retlen,
retlen           1626 drivers/mtd/chips/cfi_cmdset_0002.c 					 size_t len, size_t *retlen,
retlen           1629 drivers/mtd/chips/cfi_cmdset_0002.c 	return cfi_amdstd_otp_walk(mtd, from, len, retlen,
retlen           1634 drivers/mtd/chips/cfi_cmdset_0002.c 					  size_t len, size_t *retlen,
retlen           1637 drivers/mtd/chips/cfi_cmdset_0002.c 	return cfi_amdstd_otp_walk(mtd, from, len, retlen, buf,
retlen           1644 drivers/mtd/chips/cfi_cmdset_0002.c 	size_t retlen;
retlen           1645 drivers/mtd/chips/cfi_cmdset_0002.c 	return cfi_amdstd_otp_walk(mtd, from, len, &retlen, NULL,
retlen           1821 drivers/mtd/chips/cfi_cmdset_0002.c 				  size_t *retlen, const u_char *buf)
retlen           1872 drivers/mtd/chips/cfi_cmdset_0002.c 		(*retlen) += n;
retlen           1896 drivers/mtd/chips/cfi_cmdset_0002.c 		(*retlen) += map_bankwidth(map);
retlen           1937 drivers/mtd/chips/cfi_cmdset_0002.c 		(*retlen) += len;
retlen           2101 drivers/mtd/chips/cfi_cmdset_0002.c 				    size_t *retlen, const u_char *buf)
retlen           2119 drivers/mtd/chips/cfi_cmdset_0002.c 					     local_len, retlen, buf);
retlen           2151 drivers/mtd/chips/cfi_cmdset_0002.c 		(*retlen) += size;
retlen           2168 drivers/mtd/chips/cfi_cmdset_0002.c 		*retlen += retlen_dregs;
retlen           2313 drivers/mtd/chips/cfi_cmdset_0002.c 				  size_t *retlen, const u_char *buf)
retlen           2351 drivers/mtd/chips/cfi_cmdset_0002.c 		(*retlen) += n;
retlen           2375 drivers/mtd/chips/cfi_cmdset_0002.c 		(*retlen) += map_bankwidth(map);
retlen           2405 drivers/mtd/chips/cfi_cmdset_0002.c 		(*retlen) += len;
retlen             40 drivers/mtd/chips/cfi_cmdset_0020.c 		unsigned long count, loff_t to, size_t *retlen);
retlen            384 drivers/mtd/chips/cfi_cmdset_0020.c static int cfi_staa_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
retlen            411 drivers/mtd/chips/cfi_cmdset_0020.c 		*retlen += thislen;
retlen            609 drivers/mtd/chips/cfi_cmdset_0020.c 				       size_t len, size_t *retlen, const u_char *buf)
retlen            642 drivers/mtd/chips/cfi_cmdset_0020.c 		(*retlen) += size;
retlen            666 drivers/mtd/chips/cfi_cmdset_0020.c 		unsigned long count, loff_t to, size_t *retlen)
retlen            727 drivers/mtd/chips/cfi_cmdset_0020.c 	if (retlen)
retlen            728 drivers/mtd/chips/cfi_cmdset_0020.c 		*retlen = totlen;
retlen             72 drivers/mtd/chips/map_absent.c static int map_absent_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
retlen             77 drivers/mtd/chips/map_absent.c static int map_absent_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf)
retlen             24 drivers/mtd/chips/map_ram.c 			 size_t *retlen, void **virt, resource_size_t *phys);
retlen             87 drivers/mtd/chips/map_ram.c 			size_t *retlen, void **virt, resource_size_t *phys)
retlen             96 drivers/mtd/chips/map_ram.c 	*retlen = len;
retlen            105 drivers/mtd/chips/map_ram.c static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
retlen            110 drivers/mtd/chips/map_ram.c 	*retlen = len;
retlen            114 drivers/mtd/chips/map_ram.c static int mapram_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf)
retlen            119 drivers/mtd/chips/map_ram.c 	*retlen = len;
retlen             24 drivers/mtd/chips/map_rom.c 			 size_t *retlen, void **virt, resource_size_t *phys);
retlen             73 drivers/mtd/chips/map_rom.c 			size_t *retlen, void **virt, resource_size_t *phys)
retlen             82 drivers/mtd/chips/map_rom.c 	*retlen = len;
retlen             91 drivers/mtd/chips/map_rom.c static int maprom_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf)
retlen             96 drivers/mtd/chips/map_rom.c 	*retlen = len;
retlen            105 drivers/mtd/chips/map_rom.c static int maprom_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char *buf)
retlen             96 drivers/mtd/devices/bcm47xxsflash.c 			      size_t *retlen, u_char *buf)
retlen            123 drivers/mtd/devices/bcm47xxsflash.c 	*retlen = orig_len;
retlen            217 drivers/mtd/devices/bcm47xxsflash.c 			       size_t *retlen, const u_char *buf)
retlen            242 drivers/mtd/devices/bcm47xxsflash.c 		*retlen += written;
retlen            102 drivers/mtd/devices/block2mtd.c 		size_t *retlen, u_char *buf)
retlen            124 drivers/mtd/devices/block2mtd.c 		if (retlen)
retlen            125 drivers/mtd/devices/block2mtd.c 			*retlen += cpylen;
retlen            136 drivers/mtd/devices/block2mtd.c 		loff_t to, size_t len, size_t *retlen)
retlen            164 drivers/mtd/devices/block2mtd.c 		if (retlen)
retlen            165 drivers/mtd/devices/block2mtd.c 			*retlen += cpylen;
retlen            176 drivers/mtd/devices/block2mtd.c 		size_t *retlen, const u_char *buf)
retlen            182 drivers/mtd/devices/block2mtd.c 	err = _block2mtd_write(dev, buf, to, len, retlen);
retlen            894 drivers/mtd/devices/docg3.c 	ops->retlen = 0;
retlen            958 drivers/mtd/devices/docg3.c 		ops->retlen += nbdata;
retlen           1417 drivers/mtd/devices/docg3.c 	ops->retlen = 0;
retlen           1447 drivers/mtd/devices/docg3.c 		ops->retlen += DOC_LAYOUT_PAGE_SIZE;
retlen            425 drivers/mtd/devices/lart.c static int flash_read (struct mtd_info *mtd,loff_t from,size_t len,size_t *retlen,u_char *buf)
retlen            432 drivers/mtd/devices/lart.c    *retlen = len;
retlen            500 drivers/mtd/devices/lart.c static int flash_write (struct mtd_info *mtd,loff_t to,size_t len,size_t *retlen,const u_char *buf)
retlen            528 drivers/mtd/devices/lart.c 		*retlen += n;
retlen            538 drivers/mtd/devices/lart.c 		*retlen += BUSWIDTH;
retlen            552 drivers/mtd/devices/lart.c 		*retlen += n;
retlen             61 drivers/mtd/devices/mchp23k256.c 			    size_t *retlen, const unsigned char *buf)
retlen             93 drivers/mtd/devices/mchp23k256.c 	if (retlen && message.actual_length > cmd_len)
retlen             94 drivers/mtd/devices/mchp23k256.c 		*retlen += message.actual_length - cmd_len;
retlen            100 drivers/mtd/devices/mchp23k256.c 			   size_t *retlen, unsigned char *buf)
retlen            133 drivers/mtd/devices/mchp23k256.c 	if (retlen && message.actual_length > cmd_len)
retlen            134 drivers/mtd/devices/mchp23k256.c 		*retlen += message.actual_length - cmd_len;
retlen             54 drivers/mtd/devices/ms02-nv.c 			size_t len, size_t *retlen, u_char *buf)
retlen             59 drivers/mtd/devices/ms02-nv.c 	*retlen = len;
retlen             64 drivers/mtd/devices/ms02-nv.c 			size_t len, size_t *retlen, const u_char *buf)
retlen             69 drivers/mtd/devices/ms02-nv.c 	*retlen = len;
retlen            230 drivers/mtd/devices/mtd_dataflash.c 			       size_t *retlen, u_char *buf)
retlen            277 drivers/mtd/devices/mtd_dataflash.c 		*retlen = msg.actual_length - 8;
retlen            294 drivers/mtd/devices/mtd_dataflash.c 				size_t * retlen, const u_char * buf)
retlen            420 drivers/mtd/devices/mtd_dataflash.c 		*retlen += writelen;
retlen            437 drivers/mtd/devices/mtd_dataflash.c 				  size_t *retlen, struct otp_info *info)
retlen            446 drivers/mtd/devices/mtd_dataflash.c 	*retlen = sizeof(*info);
retlen            496 drivers/mtd/devices/mtd_dataflash.c 		loff_t from, size_t len, size_t *retlen, u_char *buf)
retlen            508 drivers/mtd/devices/mtd_dataflash.c 	*retlen = status;
retlen            513 drivers/mtd/devices/mtd_dataflash.c 		loff_t from, size_t len, size_t *retlen, u_char *buf)
retlen            525 drivers/mtd/devices/mtd_dataflash.c 	*retlen = status;
retlen            530 drivers/mtd/devices/mtd_dataflash.c 		loff_t from, size_t len, size_t *retlen, u_char *buf)
retlen            544 drivers/mtd/devices/mtd_dataflash.c 		*retlen = 0;
retlen            580 drivers/mtd/devices/mtd_dataflash.c 		*retlen = len;
retlen             66 drivers/mtd/devices/mtdram.c 		size_t *retlen, void **virt, resource_size_t *phys)
retlen             69 drivers/mtd/devices/mtdram.c 	*retlen = len;
retlen             85 drivers/mtd/devices/mtdram.c 				*retlen = addr - *virt;
retlen            100 drivers/mtd/devices/mtdram.c 		size_t *retlen, u_char *buf)
retlen            103 drivers/mtd/devices/mtdram.c 	*retlen = len;
retlen            108 drivers/mtd/devices/mtdram.c 		size_t *retlen, const u_char *buf)
retlen            111 drivers/mtd/devices/mtdram.c 	*retlen = len;
retlen             47 drivers/mtd/devices/phram.c 		size_t *retlen, void **virt, resource_size_t *phys)
retlen             50 drivers/mtd/devices/phram.c 	*retlen = len;
retlen             60 drivers/mtd/devices/phram.c 		size_t *retlen, u_char *buf)
retlen             65 drivers/mtd/devices/phram.c 	*retlen = len;
retlen             70 drivers/mtd/devices/phram.c 		size_t *retlen, const u_char *buf)
retlen             75 drivers/mtd/devices/phram.c 	*retlen = len;
retlen            133 drivers/mtd/devices/pmc551.c 			size_t *retlen, void **virt, resource_size_t *phys);
retlen            142 drivers/mtd/devices/pmc551.c 	size_t retlen;
retlen            154 drivers/mtd/devices/pmc551.c 	pmc551_point(mtd, instr->addr, instr->len, &retlen,
retlen            175 drivers/mtd/devices/pmc551.c 				     priv->asize, &retlen,
retlen            190 drivers/mtd/devices/pmc551.c 			size_t *retlen, void **virt, resource_size_t *phys)
retlen            211 drivers/mtd/devices/pmc551.c 	*retlen = len;
retlen            224 drivers/mtd/devices/pmc551.c 			size_t * retlen, u_char * buf)
retlen            243 drivers/mtd/devices/pmc551.c 	pmc551_point(mtd, from, len, retlen, (void **)&ptr, NULL);
retlen            264 drivers/mtd/devices/pmc551.c 			pmc551_point(mtd, soff_hi, priv->asize, retlen,
retlen            275 drivers/mtd/devices/pmc551.c 	*retlen = copyto - buf;
retlen            280 drivers/mtd/devices/pmc551.c 			size_t * retlen, const u_char * buf)
retlen            299 drivers/mtd/devices/pmc551.c 	pmc551_point(mtd, to, len, retlen, (void **)&ptr, NULL);
retlen            320 drivers/mtd/devices/pmc551.c 			pmc551_point(mtd, soff_hi, priv->asize, retlen,
retlen            331 drivers/mtd/devices/pmc551.c 	*retlen = copyfrom - buf;
retlen             47 drivers/mtd/devices/powernv_flash.c 		loff_t offset, size_t len, size_t *retlen, u_char *buf)
retlen            119 drivers/mtd/devices/powernv_flash.c 	if (rc == OPAL_SUCCESS && retlen)
retlen            120 drivers/mtd/devices/powernv_flash.c 		*retlen = len;
retlen            138 drivers/mtd/devices/powernv_flash.c 	     size_t *retlen, u_char *buf)
retlen            141 drivers/mtd/devices/powernv_flash.c 			len, retlen, buf);
retlen            154 drivers/mtd/devices/powernv_flash.c 		     size_t *retlen, const u_char *buf)
retlen            157 drivers/mtd/devices/powernv_flash.c 			len, retlen, (u_char *)buf);
retlen             93 drivers/mtd/devices/slram.c 		size_t *retlen, void **virt, resource_size_t *phys)
retlen             98 drivers/mtd/devices/slram.c 	*retlen = len;
retlen            108 drivers/mtd/devices/slram.c 		size_t *retlen, u_char *buf)
retlen            113 drivers/mtd/devices/slram.c 	*retlen = len;
retlen            118 drivers/mtd/devices/slram.c 		size_t *retlen, const u_char *buf)
retlen            123 drivers/mtd/devices/slram.c 	*retlen = len;
retlen            546 drivers/mtd/devices/spear_smi.c 		size_t *retlen, u8 *buf)
retlen            589 drivers/mtd/devices/spear_smi.c 	*retlen = len;
retlen            675 drivers/mtd/devices/spear_smi.c 		size_t *retlen, const u8 *buf)
retlen            701 drivers/mtd/devices/spear_smi.c 			*retlen += len;
retlen            713 drivers/mtd/devices/spear_smi.c 			*retlen += page_size;
retlen            726 drivers/mtd/devices/spear_smi.c 				*retlen += page_size;
retlen            207 drivers/mtd/devices/sst25l.c 		       size_t *retlen, unsigned char *buf)
retlen            242 drivers/mtd/devices/sst25l.c 	if (retlen && message.actual_length > sizeof(command))
retlen            243 drivers/mtd/devices/sst25l.c 		*retlen += message.actual_length - sizeof(command);
retlen            250 drivers/mtd/devices/sst25l.c 			size_t *retlen, const unsigned char *buf)
retlen            301 drivers/mtd/devices/sst25l.c 	if (retlen)
retlen            302 drivers/mtd/devices/sst25l.c 		*retlen = copied;
retlen           1671 drivers/mtd/devices/st_spi_fsm.c 			  size_t *retlen, u_char *buf)
retlen           1690 drivers/mtd/devices/st_spi_fsm.c 		*retlen += bytes;
retlen           1747 drivers/mtd/devices/st_spi_fsm.c 			   size_t *retlen, const u_char *buf)
retlen           1778 drivers/mtd/devices/st_spi_fsm.c 		*retlen += bytes;
retlen            376 drivers/mtd/ftl.c     ssize_t retlen;
retlen            389 drivers/mtd/ftl.c     ret = mtd_write(part->mbd.mtd, xfer->Offset, sizeof(header), &retlen,
retlen            405 drivers/mtd/ftl.c 	ret = mtd_write(part->mbd.mtd, offset, sizeof(uint32_t), &retlen,
retlen            437 drivers/mtd/ftl.c     ssize_t retlen;
retlen            453 drivers/mtd/ftl.c                        part->BlocksPerUnit * sizeof(uint32_t), &retlen,
retlen            470 drivers/mtd/ftl.c     ret = mtd_write(part->mbd.mtd, offset, sizeof(uint16_t), &retlen,
retlen            490 drivers/mtd/ftl.c 	    ret = mtd_read(part->mbd.mtd, src, SECTOR_SIZE, &retlen,
retlen            498 drivers/mtd/ftl.c 	    ret = mtd_write(part->mbd.mtd, dest, SECTOR_SIZE, &retlen,
retlen            520 drivers/mtd/ftl.c                     &retlen,
retlen            530 drivers/mtd/ftl.c                     &retlen, (u_char *)&srcunitswap);
retlen            691 drivers/mtd/ftl.c     size_t retlen;
retlen            714 drivers/mtd/ftl.c                        &retlen,
retlen            754 drivers/mtd/ftl.c     size_t offset, retlen;
retlen            775 drivers/mtd/ftl.c 	    ret = mtd_read(part->mbd.mtd, offset, SECTOR_SIZE, &retlen,
retlen            803 drivers/mtd/ftl.c     size_t retlen, offset;
retlen            814 drivers/mtd/ftl.c     ret = mtd_read(part->mbd.mtd, offset, sizeof(uint32_t), &retlen,
retlen            851 drivers/mtd/ftl.c     ret = mtd_write(part->mbd.mtd, offset, sizeof(uint32_t), &retlen,
retlen            868 drivers/mtd/ftl.c     size_t retlen, offset;
retlen            911 drivers/mtd/ftl.c 	ret = mtd_write(part->mbd.mtd, offset, SECTOR_SIZE, &retlen, buffer);
retlen            137 drivers/mtd/inftlcore.c 		   size_t *retlen, uint8_t *buf)
retlen            149 drivers/mtd/inftlcore.c 	*retlen = ops.oobretlen;
retlen            157 drivers/mtd/inftlcore.c 		    size_t *retlen, uint8_t *buf)
retlen            169 drivers/mtd/inftlcore.c 	*retlen = ops.oobretlen;
retlen            177 drivers/mtd/inftlcore.c 		       size_t *retlen, uint8_t *buf, uint8_t *oob)
retlen            190 drivers/mtd/inftlcore.c 	*retlen = ops.retlen;
retlen            245 drivers/mtd/inftlcore.c 	size_t retlen;
retlen            273 drivers/mtd/inftlcore.c 					   + (block * SECTORSIZE), 16, &retlen,
retlen            336 drivers/mtd/inftlcore.c 			       &retlen,
retlen            342 drivers/mtd/inftlcore.c 				       &retlen,
retlen            351 drivers/mtd/inftlcore.c 			    (block * SECTORSIZE), SECTORSIZE, &retlen,
retlen            469 drivers/mtd/inftlcore.c 	size_t retlen;
retlen            486 drivers/mtd/inftlcore.c 				       blockofs, 8, &retlen, (char *)&bci);
retlen            574 drivers/mtd/inftlcore.c 				       + 8, 8, &retlen, (char *)&oob.u);
retlen            596 drivers/mtd/inftlcore.c 				&retlen, (char *)&oob.u);
retlen            607 drivers/mtd/inftlcore.c 				SECTORSIZE * 4 + 8, 8, &retlen, (char *)&oob.u);
retlen            633 drivers/mtd/inftlcore.c 	size_t retlen;
retlen            659 drivers/mtd/inftlcore.c 					   + (block * SECTORSIZE), 8 , &retlen,
retlen            752 drivers/mtd/inftlcore.c 	size_t retlen;
retlen            760 drivers/mtd/inftlcore.c 				   blockofs, 8, &retlen, (char *)&bci) < 0)
retlen            794 drivers/mtd/inftlcore.c 		if (inftl_read_oob(mtd, ptr, 8, &retlen, (char *)&bci) < 0)
retlen            797 drivers/mtd/inftlcore.c 		if (inftl_write_oob(mtd, ptr, 8, &retlen, (char *)&bci) < 0)
retlen            810 drivers/mtd/inftlcore.c 	size_t retlen;
retlen            839 drivers/mtd/inftlcore.c 			    blockofs, SECTORSIZE, &retlen, (char *)buffer,
retlen            862 drivers/mtd/inftlcore.c 	size_t retlen;
retlen            869 drivers/mtd/inftlcore.c 				  blockofs, 8, &retlen, (char *)&bci) < 0)
retlen            905 drivers/mtd/inftlcore.c 		size_t retlen;
retlen            907 drivers/mtd/inftlcore.c 		int ret = mtd_read(mtd, ptr, SECTORSIZE, &retlen, buffer);
retlen             40 drivers/mtd/inftlmount.c 	size_t retlen;
retlen             63 drivers/mtd/inftlmount.c 			       &retlen, buf);
retlen             66 drivers/mtd/inftlmount.c 		if (retlen != SECTORSIZE) {
retlen             82 drivers/mtd/inftlmount.c 		if (retlen < 6 || memcmp(buf, "BNAND", 6)) {
retlen             90 drivers/mtd/inftlmount.c 				     8, &retlen,(char *)&h1);
retlen            108 drivers/mtd/inftlmount.c 			 &retlen, buf);
retlen            109 drivers/mtd/inftlmount.c 		if (retlen != SECTORSIZE) {
retlen            327 drivers/mtd/inftlmount.c 	size_t retlen;
retlen            337 drivers/mtd/inftlmount.c 		if (mtd_read(mtd, address, SECTORSIZE, &retlen, buf))
retlen            344 drivers/mtd/inftlmount.c 					  &retlen, &buf[SECTORSIZE]) < 0)
retlen            370 drivers/mtd/inftlmount.c 	size_t retlen;
retlen            416 drivers/mtd/inftlmount.c 	if (inftl_write_oob(mtd, instr->addr + 8, 8, &retlen, (char *)&uci) < 0)
retlen            541 drivers/mtd/inftlmount.c 	size_t retlen;
retlen            594 drivers/mtd/inftlmount.c 					   8, &retlen, (char *)&h0) < 0 ||
retlen            596 drivers/mtd/inftlmount.c 					   2 * SECTORSIZE + 8, 8, &retlen,
retlen            299 drivers/mtd/lpddr/lpddr2_nvm.c 				size_t len, size_t *retlen, u_char *buf)
retlen            305 drivers/mtd/lpddr/lpddr2_nvm.c 	*retlen = len;
retlen            307 drivers/mtd/lpddr/lpddr2_nvm.c 	map_copy_from(map, buf, start_add, *retlen);
retlen            317 drivers/mtd/lpddr/lpddr2_nvm.c 				size_t len, size_t *retlen, const u_char *buf)
retlen            363 drivers/mtd/lpddr/lpddr2_nvm.c 	*retlen = tot_len;
retlen             20 drivers/mtd/lpddr/lpddr_cmds.c 					size_t *retlen, u_char *buf);
retlen             22 drivers/mtd/lpddr/lpddr_cmds.c 				size_t len, size_t *retlen, const u_char *buf);
retlen             24 drivers/mtd/lpddr/lpddr_cmds.c 				unsigned long count, loff_t to, size_t *retlen);
retlen             29 drivers/mtd/lpddr/lpddr_cmds.c 			size_t *retlen, void **mtdbuf, resource_size_t *phys);
retlen            485 drivers/mtd/lpddr/lpddr_cmds.c 			size_t *retlen, u_char *buf)
retlen            501 drivers/mtd/lpddr/lpddr_cmds.c 	*retlen = len;
retlen            509 drivers/mtd/lpddr/lpddr_cmds.c 			size_t *retlen, void **mtdbuf, resource_size_t *phys)
retlen            550 drivers/mtd/lpddr/lpddr_cmds.c 		*retlen += thislen;
retlen            607 drivers/mtd/lpddr/lpddr_cmds.c 				size_t *retlen, const u_char *buf)
retlen            614 drivers/mtd/lpddr/lpddr_cmds.c 	return lpddr_writev(mtd, &vec, 1, to, retlen);
retlen            619 drivers/mtd/lpddr/lpddr_cmds.c 				unsigned long count, loff_t to, size_t *retlen)
retlen            653 drivers/mtd/lpddr/lpddr_cmds.c 		(*retlen) += size;
retlen             55 drivers/mtd/maps/uclinux.c 	size_t *retlen, void **virt, resource_size_t *phys)
retlen             61 drivers/mtd/maps/uclinux.c 	*retlen = len;
retlen            351 drivers/mtd/maps/vmu-flash.c 	size_t *retlen,  u_char *buf)
retlen            402 drivers/mtd/maps/vmu-flash.c 				*retlen = index;
retlen            411 drivers/mtd/maps/vmu-flash.c 	*retlen = index;
retlen            417 drivers/mtd/maps/vmu-flash.c 	size_t *retlen, const u_char *buf)
retlen            480 drivers/mtd/maps/vmu-flash.c 	*retlen = index;
retlen             48 drivers/mtd/mtdblock.c 	size_t retlen;
retlen             69 drivers/mtd/mtdblock.c 	ret = mtd_write(mtd, pos, len, &retlen, buf);
retlen             72 drivers/mtd/mtdblock.c 	if (retlen != len)
retlen            112 drivers/mtd/mtdblock.c 	size_t retlen;
retlen            119 drivers/mtd/mtdblock.c 		return mtd_write(mtd, pos, len, &retlen, buf);
retlen            152 drivers/mtd/mtdblock.c 					       &retlen, mtdblk->cache_data);
retlen            155 drivers/mtd/mtdblock.c 				if (retlen != sect_size)
retlen            182 drivers/mtd/mtdblock.c 	size_t retlen;
retlen            189 drivers/mtd/mtdblock.c 		return mtd_read(mtd, pos, len, &retlen, buf);
retlen            208 drivers/mtd/mtdblock.c 			ret = mtd_read(mtd, pos, size, &retlen, buf);
retlen            211 drivers/mtd/mtdblock.c 			if (retlen != size)
retlen             18 drivers/mtd/mtdblock_ro.c 	size_t retlen;
retlen             20 drivers/mtd/mtdblock_ro.c 	if (mtd_read(dev->mtd, (block * 512), 512, &retlen, buf))
retlen             28 drivers/mtd/mtdblock_ro.c 	size_t retlen;
retlen             30 drivers/mtd/mtdblock_ro.c 	if (mtd_write(dev->mtd, (block * 512), 512, &retlen, buf))
retlen            140 drivers/mtd/mtdchar.c 	size_t retlen;
retlen            169 drivers/mtd/mtdchar.c 						     &retlen, kbuf);
retlen            173 drivers/mtd/mtdchar.c 						     &retlen, kbuf);
retlen            185 drivers/mtd/mtdchar.c 			retlen = ops.retlen;
retlen            189 drivers/mtd/mtdchar.c 			ret = mtd_read(mtd, *ppos, len, &retlen, kbuf);
retlen            201 drivers/mtd/mtdchar.c 			*ppos += retlen;
retlen            202 drivers/mtd/mtdchar.c 			if (copy_to_user(buf, kbuf, retlen)) {
retlen            207 drivers/mtd/mtdchar.c 				total_retlen += retlen;
retlen            209 drivers/mtd/mtdchar.c 			count -= retlen;
retlen            210 drivers/mtd/mtdchar.c 			buf += retlen;
retlen            211 drivers/mtd/mtdchar.c 			if (retlen == 0)
retlen            232 drivers/mtd/mtdchar.c 	size_t retlen;
retlen            266 drivers/mtd/mtdchar.c 						      &retlen, kbuf);
retlen            280 drivers/mtd/mtdchar.c 			retlen = ops.retlen;
retlen            285 drivers/mtd/mtdchar.c 			ret = mtd_write(mtd, *ppos, len, &retlen, kbuf);
retlen            297 drivers/mtd/mtdchar.c 			*ppos += retlen;
retlen            298 drivers/mtd/mtdchar.c 			total_retlen += retlen;
retlen            299 drivers/mtd/mtdchar.c 			count -= retlen;
retlen            300 drivers/mtd/mtdchar.c 			buf += retlen;
retlen            321 drivers/mtd/mtdchar.c 	size_t retlen;
retlen            325 drivers/mtd/mtdchar.c 		if (mtd_read_fact_prot_reg(mtd, -1, 0, &retlen, NULL) ==
retlen            332 drivers/mtd/mtdchar.c 		if (mtd_read_user_prot_reg(mtd, -1, 0, &retlen, NULL) ==
retlen            354 drivers/mtd/mtdchar.c 	uint32_t retlen;
retlen            384 drivers/mtd/mtdchar.c 	retlen = ops.oobretlen;
retlen            385 drivers/mtd/mtdchar.c 	if (copy_to_user(retp, &retlen, sizeof(length)))
retlen            877 drivers/mtd/mtdchar.c 		size_t retlen;
retlen            882 drivers/mtd/mtdchar.c 			ret = mtd_get_fact_prot_info(mtd, 4096, &retlen, buf);
retlen            885 drivers/mtd/mtdchar.c 			ret = mtd_get_user_prot_info(mtd, 4096, &retlen, buf);
retlen            893 drivers/mtd/mtdchar.c 				int nbr = retlen / sizeof(struct otp_info);
retlen            896 drivers/mtd/mtdchar.c 				ret = copy_to_user(argp, buf, retlen);
retlen             55 drivers/mtd/mtdconcat.c 	    size_t * retlen, u_char * buf)
retlen             94 drivers/mtd/mtdconcat.c 		*retlen += retsize;
retlen            107 drivers/mtd/mtdconcat.c 	     size_t * retlen, const u_char * buf)
retlen            131 drivers/mtd/mtdconcat.c 		*retlen += retsize;
retlen            145 drivers/mtd/mtdconcat.c 		unsigned long count, loff_t to, size_t * retlen)
retlen            204 drivers/mtd/mtdconcat.c 		*retlen += retsize;
retlen            225 drivers/mtd/mtdconcat.c 	ops->retlen = ops->oobretlen = 0;
retlen            240 drivers/mtd/mtdconcat.c 		ops->retlen += devops.retlen;
retlen            258 drivers/mtd/mtdconcat.c 			devops.len = ops->len - ops->retlen;
retlen            261 drivers/mtd/mtdconcat.c 			devops.datbuf += devops.retlen;
retlen            285 drivers/mtd/mtdconcat.c 	ops->retlen = ops->oobretlen = 0;
retlen            300 drivers/mtd/mtdconcat.c 		ops->retlen += devops.retlen;
retlen            306 drivers/mtd/mtdconcat.c 			devops.len = ops->len - ops->retlen;
retlen            309 drivers/mtd/mtdconcat.c 			devops.datbuf += devops.retlen;
retlen            550 drivers/mtd/mtdcore.c 	size_t retlen;
retlen            553 drivers/mtd/mtdcore.c 	err = mtd_read(mtd, offset, bytes, &retlen, val);
retlen            557 drivers/mtd/mtdcore.c 	return retlen == bytes ? 0 : -EIO;
retlen           1091 drivers/mtd/mtdcore.c int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen,
retlen           1094 drivers/mtd/mtdcore.c 	*retlen = 0;
retlen           1104 drivers/mtd/mtdcore.c 	return mtd->_point(mtd, from, len, retlen, virt, phys);
retlen           1129 drivers/mtd/mtdcore.c 	size_t retlen;
retlen           1133 drivers/mtd/mtdcore.c 	ret = mtd_point(mtd, offset, len, &retlen, &virt, NULL);
retlen           1136 drivers/mtd/mtdcore.c 	if (retlen != len) {
retlen           1137 drivers/mtd/mtdcore.c 		mtd_unpoint(mtd, offset, retlen);
retlen           1144 drivers/mtd/mtdcore.c int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen,
retlen           1154 drivers/mtd/mtdcore.c 	*retlen = ops.retlen;
retlen           1160 drivers/mtd/mtdcore.c int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen,
retlen           1170 drivers/mtd/mtdcore.c 	*retlen = ops.retlen;
retlen           1183 drivers/mtd/mtdcore.c int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen,
retlen           1186 drivers/mtd/mtdcore.c 	*retlen = 0;
retlen           1198 drivers/mtd/mtdcore.c 	return mtd->_panic_write(mtd, to, len, retlen, buf);
retlen           1238 drivers/mtd/mtdcore.c 	ops->retlen = ops->oobretlen = 0;
retlen           1253 drivers/mtd/mtdcore.c 		ret_code = mtd->_read(mtd, from, ops->len, &ops->retlen,
retlen           1275 drivers/mtd/mtdcore.c 	ops->retlen = ops->oobretlen = 0;
retlen           1293 drivers/mtd/mtdcore.c 		return mtd->_write(mtd, to, ops->len, &ops->retlen,
retlen           1663 drivers/mtd/mtdcore.c int mtd_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen,
retlen           1670 drivers/mtd/mtdcore.c 	return mtd->_get_fact_prot_info(mtd, len, retlen, buf);
retlen           1675 drivers/mtd/mtdcore.c 			   size_t *retlen, u_char *buf)
retlen           1677 drivers/mtd/mtdcore.c 	*retlen = 0;
retlen           1682 drivers/mtd/mtdcore.c 	return mtd->_read_fact_prot_reg(mtd, from, len, retlen, buf);
retlen           1686 drivers/mtd/mtdcore.c int mtd_get_user_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen,
retlen           1693 drivers/mtd/mtdcore.c 	return mtd->_get_user_prot_info(mtd, len, retlen, buf);
retlen           1698 drivers/mtd/mtdcore.c 			   size_t *retlen, u_char *buf)
retlen           1700 drivers/mtd/mtdcore.c 	*retlen = 0;
retlen           1705 drivers/mtd/mtdcore.c 	return mtd->_read_user_prot_reg(mtd, from, len, retlen, buf);
retlen           1710 drivers/mtd/mtdcore.c 			    size_t *retlen, u_char *buf)
retlen           1714 drivers/mtd/mtdcore.c 	*retlen = 0;
retlen           1719 drivers/mtd/mtdcore.c 	ret = mtd->_write_user_prot_reg(mtd, to, len, retlen, buf);
retlen           1727 drivers/mtd/mtdcore.c 	return (*retlen) ? 0 : -ENOSPC;
retlen           1822 drivers/mtd/mtdcore.c 			      unsigned long count, loff_t to, size_t *retlen)
retlen           1838 drivers/mtd/mtdcore.c 	*retlen = totlen;
retlen           1854 drivers/mtd/mtdcore.c 	       unsigned long count, loff_t to, size_t *retlen)
retlen           1856 drivers/mtd/mtdcore.c 	*retlen = 0;
retlen           1860 drivers/mtd/mtdcore.c 		return default_mtd_writev(mtd, vecs, count, to, retlen);
retlen           1861 drivers/mtd/mtdcore.c 	return mtd->_writev(mtd, vecs, count, to, retlen);
retlen            179 drivers/mtd/mtdoops.c 	size_t retlen;
retlen            190 drivers/mtd/mtdoops.c 				      record_size, &retlen, cxt->oops_buf);
retlen            197 drivers/mtd/mtdoops.c 				record_size, &retlen, cxt->oops_buf);
retlen            199 drivers/mtd/mtdoops.c 	if (retlen != record_size || ret < 0)
retlen            201 drivers/mtd/mtdoops.c 		       cxt->nextpage * record_size, retlen, record_size, ret);
retlen            221 drivers/mtd/mtdoops.c 	size_t retlen;
retlen            229 drivers/mtd/mtdoops.c 			       &retlen, (u_char *)&count[0]);
retlen            230 drivers/mtd/mtdoops.c 		if (retlen != MTDOOPS_HEADER_SIZE ||
retlen            233 drivers/mtd/mtdoops.c 			       page * record_size, retlen,
retlen             66 drivers/mtd/mtdpart.c 		size_t *retlen, u_char *buf)
retlen             74 drivers/mtd/mtdpart.c 				  retlen, buf);
retlen             85 drivers/mtd/mtdpart.c 		size_t *retlen, void **virt, resource_size_t *phys)
retlen             90 drivers/mtd/mtdpart.c 				    retlen, virt, phys);
retlen            119 drivers/mtd/mtdpart.c 		size_t len, size_t *retlen, u_char *buf)
retlen            123 drivers/mtd/mtdpart.c 						 retlen, buf);
retlen            127 drivers/mtd/mtdpart.c 				   size_t *retlen, struct otp_info *buf)
retlen            130 drivers/mtd/mtdpart.c 	return part->parent->_get_user_prot_info(part->parent, len, retlen,
retlen            135 drivers/mtd/mtdpart.c 		size_t len, size_t *retlen, u_char *buf)
retlen            139 drivers/mtd/mtdpart.c 						 retlen, buf);
retlen            143 drivers/mtd/mtdpart.c 				   size_t *retlen, struct otp_info *buf)
retlen            146 drivers/mtd/mtdpart.c 	return part->parent->_get_fact_prot_info(part->parent, len, retlen,
retlen            151 drivers/mtd/mtdpart.c 		size_t *retlen, const u_char *buf)
retlen            155 drivers/mtd/mtdpart.c 				    retlen, buf);
retlen            159 drivers/mtd/mtdpart.c 		size_t *retlen, const u_char *buf)
retlen            163 drivers/mtd/mtdpart.c 					  retlen, buf);
retlen            175 drivers/mtd/mtdpart.c 		size_t len, size_t *retlen, u_char *buf)
retlen            179 drivers/mtd/mtdpart.c 						  retlen, buf);
retlen            190 drivers/mtd/mtdpart.c 		unsigned long count, loff_t to, size_t *retlen)
retlen            194 drivers/mtd/mtdpart.c 				     to + part->offset, retlen);
retlen            619 drivers/mtd/mtdswap.c 	size_t retlen;
retlen            643 drivers/mtd/mtdswap.c 	ret =  mtd_write(mtd, writepos, PAGE_SIZE, &retlen, buf);
retlen            654 drivers/mtd/mtdswap.c 			ret, retlen);
retlen            658 drivers/mtd/mtdswap.c 	if (retlen != PAGE_SIZE) {
retlen            660 drivers/mtd/mtdswap.c 			retlen);
retlen            681 drivers/mtd/mtdswap.c 	size_t retlen;
retlen            690 drivers/mtd/mtdswap.c 	ret = mtd_read(mtd, readpos, PAGE_SIZE, &retlen, d->page_buf);
retlen            705 drivers/mtd/mtdswap.c 	if (retlen != PAGE_SIZE) {
retlen            706 drivers/mtd/mtdswap.c 		dev_err(d->dev, "Short read: %zd (block %u)\n", retlen,
retlen           1086 drivers/mtd/mtdswap.c 	size_t retlen;
retlen           1114 drivers/mtd/mtdswap.c 	ret = mtd_read(mtd, readpos, PAGE_SIZE, &retlen, buf);
retlen           1134 drivers/mtd/mtdswap.c 	if (retlen != PAGE_SIZE) {
retlen           1135 drivers/mtd/mtdswap.c 		dev_err(d->dev, "Short read %zd\n", retlen);
retlen           1143 drivers/mtd/nand/onenand/onenand_base.c 		ops->retlen = 0;
retlen           1199 drivers/mtd/nand/onenand/onenand_base.c 	ops->retlen = read;
retlen           1244 drivers/mtd/nand/onenand/onenand_base.c 		ops->retlen = 0;
retlen           1328 drivers/mtd/nand/onenand/onenand_base.c 	ops->retlen = read;
retlen           1701 drivers/mtd/nand/onenand/onenand_base.c 			 size_t *retlen, const u_char *buf)
retlen           1764 drivers/mtd/nand/onenand/onenand_base.c 	*retlen = written;
retlen           1808 drivers/mtd/nand/onenand/onenand_base.c 	ops->retlen = 0;
retlen           1956 drivers/mtd/nand/onenand/onenand_base.c 	ops->retlen = written;
retlen           2893 drivers/mtd/nand/onenand/onenand_base.c 		size_t *retlen, u_char *buf);
retlen           2906 drivers/mtd/nand/onenand/onenand_base.c 		size_t *retlen, u_char *buf)
retlen           2943 drivers/mtd/nand/onenand/onenand_base.c 		size_t *retlen, u_char *buf)
retlen           2967 drivers/mtd/nand/onenand/onenand_base.c 	*retlen = ops.retlen;
retlen           2987 drivers/mtd/nand/onenand/onenand_base.c 		size_t *retlen, u_char *buf)
retlen           3007 drivers/mtd/nand/onenand/onenand_base.c 		*retlen = ops.retlen;
retlen           3018 drivers/mtd/nand/onenand/onenand_base.c 		*retlen = ops.oobretlen;
retlen           3037 drivers/mtd/nand/onenand/onenand_base.c 			size_t *retlen, u_char *buf,
retlen           3045 drivers/mtd/nand/onenand/onenand_base.c 	*retlen = 0;
retlen           3085 drivers/mtd/nand/onenand/onenand_base.c 			*retlen += sizeof(struct otp_info);
retlen           3095 drivers/mtd/nand/onenand/onenand_base.c 			*retlen += tmp_retlen;
retlen           3115 drivers/mtd/nand/onenand/onenand_base.c 				      size_t *retlen, struct otp_info *buf)
retlen           3117 drivers/mtd/nand/onenand/onenand_base.c 	return onenand_otp_walk(mtd, 0, len, retlen, (u_char *) buf, NULL,
retlen           3132 drivers/mtd/nand/onenand/onenand_base.c 			size_t len, size_t *retlen, u_char *buf)
retlen           3134 drivers/mtd/nand/onenand/onenand_base.c 	return onenand_otp_walk(mtd, from, len, retlen, buf, do_otp_read, MTD_OTP_FACTORY);
retlen           3147 drivers/mtd/nand/onenand/onenand_base.c 				      size_t *retlen, struct otp_info *buf)
retlen           3149 drivers/mtd/nand/onenand/onenand_base.c 	return onenand_otp_walk(mtd, 0, len, retlen, (u_char *) buf, NULL,
retlen           3164 drivers/mtd/nand/onenand/onenand_base.c 			size_t len, size_t *retlen, u_char *buf)
retlen           3166 drivers/mtd/nand/onenand/onenand_base.c 	return onenand_otp_walk(mtd, from, len, retlen, buf, do_otp_read, MTD_OTP_USER);
retlen           3180 drivers/mtd/nand/onenand/onenand_base.c 			size_t len, size_t *retlen, u_char *buf)
retlen           3182 drivers/mtd/nand/onenand/onenand_base.c 	return onenand_otp_walk(mtd, from, len, retlen, buf, do_otp_write, MTD_OTP_USER);
retlen           3198 drivers/mtd/nand/onenand/onenand_base.c 	size_t retlen;
retlen           3233 drivers/mtd/nand/onenand/onenand_base.c 	ret = onenand_otp_walk(mtd, from, len, &retlen, buf, do_otp_lock, MTD_OTP_USER);
retlen           3235 drivers/mtd/nand/onenand/onenand_base.c 	return ret ? : retlen;
retlen             86 drivers/mtd/nand/onenand/onenand_bbt.c 	ops.len = ops.ooboffs = ops.retlen = ops.oobretlen = 0;
retlen            991 drivers/mtd/nand/raw/diskonchip.c 	size_t retlen;
retlen            994 drivers/mtd/nand/raw/diskonchip.c 		ret = mtd_read(mtd, offs, mtd->writesize, &retlen, buf);
retlen            995 drivers/mtd/nand/raw/diskonchip.c 		if (retlen != mtd->writesize)
retlen           1019 drivers/mtd/nand/raw/diskonchip.c 	ret = mtd_read(mtd, offs, mtd->writesize, &retlen, buf);
retlen           1020 drivers/mtd/nand/raw/diskonchip.c 	if (retlen != mtd->writesize) {
retlen           3307 drivers/mtd/nand/raw/nand_base.c 	ops->retlen = ops->len - (size_t) readlen;
retlen           3566 drivers/mtd/nand/raw/nand_base.c 	ops->retlen = 0;
retlen           3971 drivers/mtd/nand/raw/nand_base.c 	ops->retlen = 0;
retlen           4065 drivers/mtd/nand/raw/nand_base.c 	ops->retlen = ops->len - writelen;
retlen           4086 drivers/mtd/nand/raw/nand_base.c 			    size_t *retlen, const uint8_t *buf)
retlen           4105 drivers/mtd/nand/raw/nand_base.c 	*retlen = ops.retlen;
retlen           4121 drivers/mtd/nand/raw/nand_base.c 	ops->retlen = 0;
retlen            171 drivers/mtd/nand/raw/nand_bbt.c 	size_t retlen, len, totlen;
retlen            193 drivers/mtd/nand/raw/nand_bbt.c 		res = mtd_read(mtd, from, len, &retlen, buf);
retlen            291 drivers/mtd/nand/raw/nand_bbt.c 	size_t retlen;
retlen            298 drivers/mtd/nand/raw/nand_bbt.c 	return mtd_read(mtd, offs, len, &retlen, buf);
retlen            724 drivers/mtd/nand/raw/nand_bbt.c 	size_t retlen, len = 0;
retlen            793 drivers/mtd/nand/raw/nand_bbt.c 			res = mtd_read(mtd, to, len, &retlen, buf);
retlen            795 drivers/mtd/nand/raw/nand_bbt.c 				if (retlen != len) {
retlen            520 drivers/mtd/nand/spi/core.c 		ops->retlen += iter.req.datalen;
retlen            559 drivers/mtd/nand/spi/core.c 		ops->retlen += iter.req.datalen;
retlen            124 drivers/mtd/nftlcore.c 		  size_t *retlen, uint8_t *buf)
retlen            137 drivers/mtd/nftlcore.c 	*retlen = ops.oobretlen;
retlen            145 drivers/mtd/nftlcore.c 		   size_t *retlen, uint8_t *buf)
retlen            158 drivers/mtd/nftlcore.c 	*retlen = ops.oobretlen;
retlen            168 drivers/mtd/nftlcore.c 		      size_t *retlen, uint8_t *buf, uint8_t *oob)
retlen            182 drivers/mtd/nftlcore.c 	*retlen = ops.retlen;
retlen            243 drivers/mtd/nftlcore.c 	size_t retlen;
retlen            267 drivers/mtd/nftlcore.c 				      (block * 512), 16 , &retlen,
retlen            383 drivers/mtd/nftlcore.c 			       8, &retlen, (char *)&oob.u);
retlen            409 drivers/mtd/nftlcore.c 			       &retlen,
retlen            415 drivers/mtd/nftlcore.c 				       &retlen,
retlen            424 drivers/mtd/nftlcore.c 			   (block * 512), 512, &retlen, movebuf, (char *)&oob);
retlen            432 drivers/mtd/nftlcore.c 		       8, &retlen, (char *)&oob.u);
retlen            529 drivers/mtd/nftlcore.c 	size_t retlen;
retlen            546 drivers/mtd/nftlcore.c 			size_t retlen;
retlen            553 drivers/mtd/nftlcore.c 				      8, &retlen, (char *)&bci);
retlen            641 drivers/mtd/nftlcore.c 			      &retlen, (char *)&oob.u);
retlen            646 drivers/mtd/nftlcore.c 			       &retlen, (char *)&oob.u);
retlen            656 drivers/mtd/nftlcore.c 				      8, &retlen, (char *)&oob.u);
retlen            662 drivers/mtd/nftlcore.c 				       8, &retlen, (char *)&oob.u);
retlen            680 drivers/mtd/nftlcore.c 	size_t retlen;
retlen            696 drivers/mtd/nftlcore.c 		   512, &retlen, (char *)buffer, (char *)&oob);
retlen            711 drivers/mtd/nftlcore.c 	size_t retlen;
retlen            719 drivers/mtd/nftlcore.c 					  blockofs, 8, &retlen,
retlen            758 drivers/mtd/nftlcore.c 		size_t retlen;
retlen            759 drivers/mtd/nftlcore.c 		int res = mtd_read(mtd, ptr, 512, &retlen, buffer);
retlen             29 drivers/mtd/nftlmount.c 	size_t retlen;
retlen             54 drivers/mtd/nftlmount.c 			       &retlen, buf);
retlen             57 drivers/mtd/nftlmount.c 		if (retlen != SECTORSIZE) {
retlen             69 drivers/mtd/nftlmount.c 		if (retlen < 6 || memcmp(buf, "ANAND", 6)) {
retlen             80 drivers/mtd/nftlmount.c 					 SECTORSIZE + 8, 8, &retlen,
retlen            101 drivers/mtd/nftlmount.c 				&retlen, buf);
retlen            225 drivers/mtd/nftlmount.c 						&retlen, buf);
retlen            266 drivers/mtd/nftlmount.c 	size_t retlen;
retlen            276 drivers/mtd/nftlmount.c 		if (mtd_read(mtd, address, SECTORSIZE, &retlen, buf))
retlen            283 drivers/mtd/nftlmount.c 					 &retlen, &buf[SECTORSIZE]) < 0)
retlen            307 drivers/mtd/nftlmount.c 	size_t retlen;
retlen            315 drivers/mtd/nftlmount.c 			  8, &retlen, (char *)&uci) < 0)
retlen            353 drivers/mtd/nftlmount.c 			   8, 8, &retlen, (char *)&uci) < 0)
retlen            378 drivers/mtd/nftlmount.c 	size_t retlen;
retlen            386 drivers/mtd/nftlmount.c 					  8, &retlen, (char *)&bci) < 0)
retlen            408 drivers/mtd/nftlmount.c 						       &retlen, (char *)&bci);
retlen            496 drivers/mtd/nftlmount.c 	size_t retlen;
retlen            500 drivers/mtd/nftlmount.c 			  &retlen, (char *)&h1) < 0)
retlen            516 drivers/mtd/nftlmount.c 				   &retlen, (char *)&h1) < 0)
retlen            528 drivers/mtd/nftlmount.c 					  16, &retlen, buf) < 0)
retlen            556 drivers/mtd/nftlmount.c 	size_t retlen;
retlen            559 drivers/mtd/nftlmount.c 			  8, &retlen, (char *)&uci) < 0)
retlen            574 drivers/mtd/nftlmount.c 	size_t retlen;
retlen            600 drivers/mtd/nftlmount.c 						  &retlen, (char *)&h0) < 0 ||
retlen            604 drivers/mtd/nftlmount.c 						  &retlen, (char *)&h1) < 0) {
retlen             39 drivers/mtd/parsers/bcm63xxpart.c 	size_t retlen;
retlen             41 drivers/mtd/parsers/bcm63xxpart.c 	ret = mtd_read(master, BCM963XX_CFE_VERSION_OFFSET, 5, &retlen,
retlen             43 drivers/mtd/parsers/bcm63xxpart.c 	buf[retlen] = 0;
retlen             52 drivers/mtd/parsers/bcm63xxpart.c 	ret = mtd_read(master, BCM963XX_CFE_MAGIC_OFFSET, 8, &retlen,
retlen             54 drivers/mtd/parsers/bcm63xxpart.c 	buf[retlen] = 0;
retlen             63 drivers/mtd/parsers/bcm63xxpart.c 	size_t retlen;
retlen             68 drivers/mtd/parsers/bcm63xxpart.c 			&retlen, (void *)nvram);
retlen             32 drivers/mtd/parsers/parser_imagetag.c 	size_t retlen;
retlen             35 drivers/mtd/parsers/parser_imagetag.c 	ret = mtd_read(master, tag_offset, sizeof(*buf), &retlen, (void *)buf);
retlen             39 drivers/mtd/parsers/parser_imagetag.c 	if (retlen != sizeof(*buf))
retlen             75 drivers/mtd/parsers/redboot.c 	size_t retlen;
retlen            114 drivers/mtd/parsers/redboot.c 	ret = mtd_read(master, offset, master->erasesize, &retlen,
retlen            120 drivers/mtd/parsers/redboot.c 	if (retlen != master->erasesize) {
retlen            237 drivers/mtd/parsers/sharpslpart.c 	size_t retlen;
retlen            250 drivers/mtd/parsers/sharpslpart.c 	err = mtd_read(mtd, block_adr + block_ofs, len, &retlen, buf);
retlen            255 drivers/mtd/parsers/sharpslpart.c 	if (!err && retlen != len)
retlen            156 drivers/mtd/rfd_ftl.c 	size_t retlen;
retlen            206 drivers/mtd/rfd_ftl.c 			      part->header_size, &retlen,
retlen            209 drivers/mtd/rfd_ftl.c 		if (!rc && retlen != part->header_size)
retlen            247 drivers/mtd/rfd_ftl.c 	size_t retlen;
retlen            255 drivers/mtd/rfd_ftl.c 		rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen,
retlen            257 drivers/mtd/rfd_ftl.c 		if (!rc && retlen != SECTOR_SIZE)
retlen            296 drivers/mtd/rfd_ftl.c 		size_t retlen;
retlen            304 drivers/mtd/rfd_ftl.c 			       sizeof(magic), &retlen, (u_char *)&magic);
retlen            305 drivers/mtd/rfd_ftl.c 		if (!rc && retlen != sizeof(magic))
retlen            326 drivers/mtd/rfd_ftl.c 	size_t retlen;
retlen            340 drivers/mtd/rfd_ftl.c 		      part->header_size, &retlen, (u_char *)map);
retlen            342 drivers/mtd/rfd_ftl.c 	if (!rc && retlen != part->header_size)
retlen            379 drivers/mtd/rfd_ftl.c 		rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen,
retlen            382 drivers/mtd/rfd_ftl.c 		if (!rc && retlen != SECTOR_SIZE)
retlen            509 drivers/mtd/rfd_ftl.c 	size_t retlen;
retlen            529 drivers/mtd/rfd_ftl.c 		      part->header_size, &retlen,
retlen            532 drivers/mtd/rfd_ftl.c 	if (!rc && retlen != part->header_size)
retlen            552 drivers/mtd/rfd_ftl.c 	size_t retlen;
retlen            561 drivers/mtd/rfd_ftl.c 	rc = mtd_write(part->mbd.mtd, addr, sizeof(del), &retlen,
retlen            564 drivers/mtd/rfd_ftl.c 	if (!rc && retlen != sizeof(del))
retlen            611 drivers/mtd/rfd_ftl.c 	size_t retlen;
retlen            633 drivers/mtd/rfd_ftl.c 	rc = mtd_write(part->mbd.mtd, addr, SECTOR_SIZE, &retlen,
retlen            636 drivers/mtd/rfd_ftl.c 	if (!rc && retlen != SECTOR_SIZE)
retlen            652 drivers/mtd/rfd_ftl.c 	rc = mtd_write(part->mbd.mtd, addr, sizeof(entry), &retlen,
retlen            655 drivers/mtd/rfd_ftl.c 	if (!rc && retlen != sizeof(entry))
retlen            295 drivers/mtd/sm_ftl.c 	WARN_ON(buffer && ops.retlen != SM_SECTOR_SIZE);
retlen            359 drivers/mtd/sm_ftl.c 	WARN_ON(buffer && ops.retlen != SM_SECTOR_SIZE);
retlen            610 drivers/mtd/spi-nor/intel-spi.c 	size_t block_size, retlen = 0;
retlen            670 drivers/mtd/spi-nor/intel-spi.c 		retlen += block_size;
retlen            674 drivers/mtd/spi-nor/intel-spi.c 	return retlen;
retlen            681 drivers/mtd/spi-nor/intel-spi.c 	size_t block_size, retlen = 0;
retlen            733 drivers/mtd/spi-nor/intel-spi.c 		retlen += block_size;
retlen            737 drivers/mtd/spi-nor/intel-spi.c 	return retlen;
retlen           2545 drivers/mtd/spi-nor/spi-nor.c 			size_t *retlen, u_char *buf)
retlen           2571 drivers/mtd/spi-nor/spi-nor.c 		*retlen += ret;
retlen           2584 drivers/mtd/spi-nor/spi-nor.c 		size_t *retlen, const u_char *buf)
retlen           2657 drivers/mtd/spi-nor/spi-nor.c 	*retlen += actual;
retlen           2668 drivers/mtd/spi-nor/spi-nor.c 	size_t *retlen, const u_char *buf)
retlen           2714 drivers/mtd/spi-nor/spi-nor.c 		*retlen += written;
retlen            106 drivers/mtd/ssfdc.c 	size_t retlen;
retlen            123 drivers/mtd/ssfdc.c 			ret = mtd_read(mtd, offset, SECTOR_SIZE, &retlen,
retlen            127 drivers/mtd/ssfdc.c 			if (ret < 0 || retlen != SECTOR_SIZE) {
retlen            153 drivers/mtd/ssfdc.c 	size_t retlen;
retlen            156 drivers/mtd/ssfdc.c 	ret = mtd_read(mtd, offset, SECTOR_SIZE, &retlen, sect_buf);
retlen            157 drivers/mtd/ssfdc.c 	if (ret < 0 || retlen != SECTOR_SIZE)
retlen            109 drivers/mtd/tests/nandbiterrs.c 	ops.retlen    = 0;
retlen            117 drivers/mtd/tests/nandbiterrs.c 	if (err || ops.retlen != mtd->writesize) {
retlen             67 drivers/mtd/tests/oobtest.c 		ops.retlen    = 0;
retlen            177 drivers/mtd/tests/oobtest.c 		ops.retlen    = 0;
retlen            214 drivers/mtd/tests/oobtest.c 			ops.retlen    = 0;
retlen            274 drivers/mtd/tests/oobtest.c 	ops.retlen    = 0;
retlen            498 drivers/mtd/tests/oobtest.c 	ops.retlen    = 0;
retlen            518 drivers/mtd/tests/oobtest.c 	ops.retlen    = 0;
retlen            545 drivers/mtd/tests/oobtest.c 		ops.retlen    = 0;
retlen            565 drivers/mtd/tests/oobtest.c 		ops.retlen    = 0;
retlen            592 drivers/mtd/tests/oobtest.c 		ops.retlen    = 0;
retlen            612 drivers/mtd/tests/oobtest.c 		ops.retlen    = 0;
retlen            655 drivers/mtd/tests/oobtest.c 			ops.retlen    = 0;
retlen            686 drivers/mtd/tests/oobtest.c 		ops.retlen    = 0;
retlen             54 drivers/mtd/tests/readtest.c 			ops.retlen    = 0;
retlen            154 drivers/mtd/ubi/gluebi.c 		       size_t *retlen, unsigned char *buf)
retlen            178 drivers/mtd/ubi/gluebi.c 	*retlen = len - bytes_left;
retlen            194 drivers/mtd/ubi/gluebi.c 			size_t *retlen, const u_char *buf)
retlen            222 drivers/mtd/ubi/gluebi.c 	*retlen = len - bytes_left;
retlen            617 drivers/net/ethernet/sfc/falcon/falcon.c 		loff_t start, size_t len, size_t *retlen, u8 *buffer)
retlen            641 drivers/net/ethernet/sfc/falcon/falcon.c 	if (retlen)
retlen            642 drivers/net/ethernet/sfc/falcon/falcon.c 		*retlen = pos;
retlen            692 drivers/net/ethernet/sfc/falcon/falcon.c 		 loff_t start, size_t len, size_t *retlen, const u8 *buffer)
retlen            734 drivers/net/ethernet/sfc/falcon/falcon.c 	if (retlen)
retlen            735 drivers/net/ethernet/sfc/falcon/falcon.c 		*retlen = pos;
retlen            860 drivers/net/ethernet/sfc/falcon/falcon.c 			   size_t len, size_t *retlen, u8 *buffer)
retlen            871 drivers/net/ethernet/sfc/falcon/falcon.c 			     len, retlen, buffer);
retlen            892 drivers/net/ethernet/sfc/falcon/falcon.c 			    size_t len, size_t *retlen, const u8 *buffer)
retlen            903 drivers/net/ethernet/sfc/falcon/falcon.c 			      len, retlen, buffer);
retlen           1132 drivers/net/ethernet/sfc/falcon/net_driver.h 			size_t *retlen, u8 *buffer);
retlen           1135 drivers/net/ethernet/sfc/falcon/net_driver.h 			 size_t *retlen, const u8 *buffer);
retlen           2202 drivers/net/ethernet/sfc/mcdi.c 		      size_t len, size_t *retlen, u8 *buffer)
retlen           2221 drivers/net/ethernet/sfc/mcdi.c 	*retlen = offset - start;
retlen           2256 drivers/net/ethernet/sfc/mcdi.c 		       size_t len, size_t *retlen, const u8 *buffer)
retlen           2282 drivers/net/ethernet/sfc/mcdi.c 	*retlen = offset - start;
retlen            375 drivers/net/ethernet/sfc/mcdi.h 		      size_t *retlen, u8 *buffer);
retlen            378 drivers/net/ethernet/sfc/mcdi.h 		       size_t *retlen, const u8 *buffer);
retlen           1377 drivers/net/ethernet/sfc/net_driver.h 			size_t *retlen, u8 *buffer);
retlen           1380 drivers/net/ethernet/sfc/net_driver.h 			 size_t *retlen, const u8 *buffer);
retlen             23 drivers/net/wireless/mediatek/mt76/eeprom.c 	size_t retlen;
retlen             57 drivers/net/wireless/mediatek/mt76/eeprom.c 	ret = mtd_read(mtd, offset, len, &retlen, dev->eeprom.data);
retlen             62 drivers/net/wireless/mediatek/mt76/eeprom.c 	if (retlen < len) {
retlen           1146 drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.h 			u8 retlen:4;
retlen            202 drivers/s390/char/hmcdrv_dev.c 	ssize_t retlen;
retlen            206 drivers/s390/char/hmcdrv_dev.c 		retlen = hmcdrv_ftp_cmd(cmd, offset, buf, len);
retlen            208 drivers/s390/char/hmcdrv_dev.c 		if (retlen != -EBUSY)
retlen            215 drivers/s390/char/hmcdrv_dev.c 	return retlen;
retlen            224 drivers/s390/char/hmcdrv_dev.c 	ssize_t retlen;
retlen            231 drivers/s390/char/hmcdrv_dev.c 	retlen = hmcdrv_dev_transfer((char *) fp->private_data,
retlen            235 drivers/s390/char/hmcdrv_dev.c 		 fp, (long long) *pos, retlen, len);
retlen            237 drivers/s390/char/hmcdrv_dev.c 	if (retlen > 0)
retlen            238 drivers/s390/char/hmcdrv_dev.c 		*pos += retlen;
retlen            240 drivers/s390/char/hmcdrv_dev.c 	return retlen;
retlen            249 drivers/s390/char/hmcdrv_dev.c 	ssize_t retlen;
retlen            270 drivers/s390/char/hmcdrv_dev.c 	retlen = hmcdrv_dev_transfer((char *) fp->private_data,
retlen            272 drivers/s390/char/hmcdrv_dev.c 	if (retlen > 0)
retlen            273 drivers/s390/char/hmcdrv_dev.c 		*pos += retlen;
retlen            275 drivers/s390/char/hmcdrv_dev.c 	pr_debug("write to file '/dev/%pD' returned %zd\n", fp, retlen);
retlen            277 drivers/s390/char/hmcdrv_dev.c 	return retlen;
retlen            243 drivers/s390/char/hmcdrv_ftp.c 	ssize_t retlen = hmcdrv_ftp_parse(cmd, &ftp);
retlen            245 drivers/s390/char/hmcdrv_ftp.c 	if (retlen)
retlen            246 drivers/s390/char/hmcdrv_ftp.c 		return retlen;
retlen            258 drivers/s390/char/hmcdrv_ftp.c 		retlen = hmcdrv_ftp_do(&ftp);
retlen            260 drivers/s390/char/hmcdrv_ftp.c 		if ((retlen >= 0) &&
retlen            261 drivers/s390/char/hmcdrv_ftp.c 		    copy_to_user(buf, ftp.buf, retlen))
retlen            262 drivers/s390/char/hmcdrv_ftp.c 			retlen = -EFAULT;
retlen            268 drivers/s390/char/hmcdrv_ftp.c 			retlen = hmcdrv_ftp_do(&ftp);
retlen            270 drivers/s390/char/hmcdrv_ftp.c 			retlen = -EFAULT;
retlen            274 drivers/s390/char/hmcdrv_ftp.c 		retlen = hmcdrv_ftp_do(&ftp);
retlen            278 drivers/s390/char/hmcdrv_ftp.c 		retlen = -EOPNOTSUPP;
retlen            283 drivers/s390/char/hmcdrv_ftp.c 	return retlen;
retlen            353 fs/coda/upcall.c         int retlen;
retlen            364 fs/coda/upcall.c 		retlen = outp->coda_readlink.count;
retlen            365 fs/coda/upcall.c 		if (retlen >= *length)
retlen            366 fs/coda/upcall.c 			retlen = *length - 1;
retlen            367 fs/coda/upcall.c 		*length = retlen;
retlen            369 fs/coda/upcall.c 		memcpy(buffer, result, retlen);
retlen            370 fs/coda/upcall.c 		*(buffer + retlen) = '\0';
retlen            128 fs/jffs2/debug.c 	size_t retlen;
retlen            136 fs/jffs2/debug.c 	ret = jffs2_flash_read(c, ofs, len, &retlen, buf);
retlen            137 fs/jffs2/debug.c 	if (ret || (retlen != len)) {
retlen            139 fs/jffs2/debug.c 				len, ret, retlen);
retlen            777 fs/jffs2/debug.c 	size_t retlen;
retlen            783 fs/jffs2/debug.c 	ret = jffs2_flash_read(c, ofs, len, &retlen, (unsigned char *)&node);
retlen            784 fs/jffs2/debug.c 	if (ret || (retlen != len)) {
retlen            786 fs/jffs2/debug.c 			len, ret, retlen);
retlen            317 fs/jffs2/erase.c 	size_t retlen;
retlen            321 fs/jffs2/erase.c 	ret = mtd_point(c->mtd, jeb->offset, c->sector_size, &retlen,
retlen            328 fs/jffs2/erase.c 		if (retlen < c->sector_size) {
retlen            331 fs/jffs2/erase.c 				  retlen);
retlen            332 fs/jffs2/erase.c 			mtd_unpoint(c->mtd, jeb->offset, retlen);
retlen            336 fs/jffs2/erase.c 		retlen /= sizeof(*wordebuf);
retlen            340 fs/jffs2/erase.c 		} while(--retlen);
retlen            342 fs/jffs2/erase.c 		if (retlen) {
retlen            346 fs/jffs2/erase.c 				c->sector_size-retlen * sizeof(*wordebuf));
retlen            367 fs/jffs2/erase.c 		ret = mtd_read(c->mtd, ofs, readlen, &retlen, ebuf);
retlen            374 fs/jffs2/erase.c 		if (retlen != readlen) {
retlen            376 fs/jffs2/erase.c 				ofs, readlen, retlen);
retlen            402 fs/jffs2/erase.c 	size_t retlen;
retlen            437 fs/jffs2/erase.c 		ret = jffs2_flash_direct_writev(c, vecs, 1, jeb->offset, &retlen);
retlen            439 fs/jffs2/erase.c 		if (ret || retlen != sizeof(marker)) {
retlen            445 fs/jffs2/erase.c 				       jeb->offset, sizeof(marker), retlen);
retlen            596 fs/jffs2/gc.c  	size_t retlen;
retlen            628 fs/jffs2/gc.c  	ret = jffs2_flash_read(c, ref_offset(raw), rawlen, &retlen, (char *)node);
retlen            629 fs/jffs2/gc.c  	if (!ret && retlen != rawlen)
retlen            700 fs/jffs2/gc.c  	ret = jffs2_flash_write(c, phys_ofs, rawlen, &retlen, (char *)node);
retlen            702 fs/jffs2/gc.c  	if (ret || (retlen != rawlen)) {
retlen            704 fs/jffs2/gc.c  			  rawlen, phys_ofs, ret, retlen);
retlen            705 fs/jffs2/gc.c  		if (retlen) {
retlen            910 fs/jffs2/gc.c  		size_t retlen;
retlen            946 fs/jffs2/gc.c  			ret = jffs2_flash_read(c, ref_offset(raw), rawlen, &retlen, (char *)rd);
retlen            953 fs/jffs2/gc.c  			if (retlen != rawlen) {
retlen            955 fs/jffs2/gc.c  					__func__, retlen, rawlen,
retlen            406 fs/jffs2/nodelist.h 			    uint32_t offset, uint32_t writelen, uint32_t *retlen);
retlen            585 fs/jffs2/nodemgmt.c 	size_t retlen;
retlen            758 fs/jffs2/nodemgmt.c 	ret = jffs2_flash_read(c, ref_offset(ref), sizeof(n), &retlen, (char *)&n);
retlen            764 fs/jffs2/nodemgmt.c 	if (retlen != sizeof(n)) {
retlen            766 fs/jffs2/nodemgmt.c 			ref_offset(ref), retlen);
retlen            781 fs/jffs2/nodemgmt.c 	ret = jffs2_flash_write(c, ref_offset(ref), sizeof(n), &retlen, (char *)&n);
retlen            787 fs/jffs2/nodemgmt.c 	if (retlen != sizeof(n)) {
retlen            789 fs/jffs2/nodemgmt.c 			ref_offset(ref), retlen);
retlen             79 fs/jffs2/os-linux.h #define jffs2_flash_write(c, ofs, len, retlen, buf) jffs2_flash_direct_write(c, ofs, len, retlen, buf)
retlen             80 fs/jffs2/os-linux.h #define jffs2_flash_read(c, ofs, len, retlen, buf) (mtd_read((c)->mtd, ofs, len, retlen, buf))
retlen            116 fs/jffs2/os-linux.h int jffs2_flash_writev(struct jffs2_sb_info *c, const struct kvec *vecs, unsigned long count, loff_t to, size_t *retlen, uint32_t ino);
retlen            117 fs/jffs2/os-linux.h int jffs2_flash_write(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, const u_char *buf);
retlen            118 fs/jffs2/os-linux.h int jffs2_flash_read(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, u_char *buf);
retlen            191 fs/jffs2/os-linux.h 		       unsigned long count, loff_t to, size_t *retlen);
retlen            193 fs/jffs2/os-linux.h 			size_t *retlen, const u_char *buf);
retlen             38 fs/jffs2/readinode.c 	size_t retlen;
retlen             67 fs/jffs2/readinode.c 	err = mtd_point(c->mtd, ofs, len, &retlen, (void **)&buffer, NULL);
retlen             68 fs/jffs2/readinode.c 	if (!err && retlen < len) {
retlen             69 fs/jffs2/readinode.c 		JFFS2_WARNING("MTD point returned len too short: %zu instead of %u.\n", retlen, tn->csize);
retlen             70 fs/jffs2/readinode.c 		mtd_unpoint(c->mtd, ofs, retlen);
retlen             85 fs/jffs2/readinode.c 		err = jffs2_flash_read(c, ofs, len, &retlen, buffer);
retlen             91 fs/jffs2/readinode.c 		if (retlen != len) {
retlen             92 fs/jffs2/readinode.c 			JFFS2_ERROR("short read at %#08x: %zd instead of %d.\n", ofs, retlen, len);
retlen            928 fs/jffs2/readinode.c 	size_t retlen;
retlen            943 fs/jffs2/readinode.c 	err = jffs2_flash_read(c, offs, to_read, &retlen, buf + *rdlen);
retlen            950 fs/jffs2/readinode.c 	if (retlen < to_read) {
retlen            952 fs/jffs2/readinode.c 				offs, retlen, to_read);
retlen            971 fs/jffs2/readinode.c 	size_t retlen;
retlen           1029 fs/jffs2/readinode.c 		err = jffs2_flash_read(c, ref_offset(ref), len, &retlen, buf);
retlen           1035 fs/jffs2/readinode.c 		if (retlen < len) {
retlen           1036 fs/jffs2/readinode.c 			JFFS2_ERROR("short read at %#08x: %zu instead of %d.\n", ref_offset(ref), retlen, len);
retlen           1073 fs/jffs2/readinode.c 			err = read_direntry(c, ref, &node->d, retlen, rii);
retlen           1135 fs/jffs2/readinode.c 	size_t retlen;
retlen           1205 fs/jffs2/readinode.c 	ret = jffs2_flash_read(c, ref_offset(rii.latest_ref), sizeof(*latest_node), &retlen, (void *)latest_node);
retlen           1206 fs/jffs2/readinode.c 	if (ret || retlen != sizeof(*latest_node)) {
retlen           1208 fs/jffs2/readinode.c 			ret, retlen, sizeof(*latest_node));
retlen           1262 fs/jffs2/readinode.c 					       csize, &retlen, (char *)f->target);
retlen           1264 fs/jffs2/readinode.c 			if (ret || retlen != csize) {
retlen           1265 fs/jffs2/readinode.c 				if (retlen != csize)
retlen            291 fs/jffs2/scan.c 	size_t retlen;
retlen            293 fs/jffs2/scan.c 	ret = jffs2_flash_read(c, ofs, len, &retlen, buf);
retlen            299 fs/jffs2/scan.c 	if (retlen < len) {
retlen            301 fs/jffs2/scan.c 			  ofs, retlen);
retlen            684 fs/jffs2/summary.c 	size_t retlen;
retlen            818 fs/jffs2/summary.c 	ret = jffs2_flash_writev(c, vecs, 2, sum_ofs, &retlen, 0);
retlen            820 fs/jffs2/summary.c 	if (ret || (retlen != infosize)) {
retlen            823 fs/jffs2/summary.c 			      infosize, sum_ofs, ret, retlen);
retlen            825 fs/jffs2/summary.c 		if (retlen) {
retlen            234 fs/jffs2/wbuf.c 	size_t retlen;
retlen            237 fs/jffs2/wbuf.c 	ret = mtd_read(c->mtd, ofs, c->wbuf_pagesize, &retlen, c->wbuf_verify);
retlen            242 fs/jffs2/wbuf.c 	} else if (retlen != c->wbuf_pagesize) {
retlen            244 fs/jffs2/wbuf.c 			__func__, ofs, retlen, c->wbuf_pagesize);
retlen            279 fs/jffs2/wbuf.c 	size_t retlen;
retlen            348 fs/jffs2/wbuf.c 		ret = mtd_read(c->mtd, start, c->wbuf_ofs - start, &retlen,
retlen            353 fs/jffs2/wbuf.c 		    (retlen == c->wbuf_ofs - start))
retlen            356 fs/jffs2/wbuf.c 		if (ret || retlen != c->wbuf_ofs - start) {
retlen            425 fs/jffs2/wbuf.c 			mtd_write(c->mtd, ofs, towrite, &retlen, brokenbuf);
retlen            429 fs/jffs2/wbuf.c 			ret = mtd_write(c->mtd, ofs, towrite, &retlen,
retlen            432 fs/jffs2/wbuf.c 		if (ret || retlen != towrite || jffs2_verify_write(c, rewrite_buf, ofs)) {
retlen            437 fs/jffs2/wbuf.c 			if (retlen)
retlen            584 fs/jffs2/wbuf.c 	size_t retlen;
retlen            632 fs/jffs2/wbuf.c 		mtd_write(c->mtd, c->wbuf_ofs, c->wbuf_pagesize, &retlen,
retlen            639 fs/jffs2/wbuf.c 				&retlen, c->wbuf);
retlen            644 fs/jffs2/wbuf.c 	} else if (retlen != c->wbuf_pagesize) {
retlen            646 fs/jffs2/wbuf.c 			retlen, c->wbuf_pagesize);
retlen            795 fs/jffs2/wbuf.c 		       unsigned long count, loff_t to, size_t *retlen,
retlen            805 fs/jffs2/wbuf.c 		return jffs2_flash_direct_writev(c, invecs, count, to, retlen);
retlen            903 fs/jffs2/wbuf.c 	*retlen = donelen;
retlen            932 fs/jffs2/wbuf.c 	*retlen = 0;
retlen            942 fs/jffs2/wbuf.c 		      size_t *retlen, const u_char *buf)
retlen            947 fs/jffs2/wbuf.c 		return jffs2_flash_direct_write(c, ofs, len, retlen, buf);
retlen            951 fs/jffs2/wbuf.c 	return jffs2_flash_writev(c, vecs, 1, ofs, retlen, 0);
retlen            957 fs/jffs2/wbuf.c int jffs2_flash_read(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, u_char *buf)
retlen            963 fs/jffs2/wbuf.c 		return mtd_read(c->mtd, ofs, len, retlen, buf);
retlen            967 fs/jffs2/wbuf.c 	ret = mtd_read(c->mtd, ofs, len, retlen, buf);
retlen            969 fs/jffs2/wbuf.c 	if ( (ret == -EBADMSG || ret == -EUCLEAN) && (*retlen == len) ) {
retlen           1043 fs/jffs2/wbuf.c 	ops.len = ops.ooboffs = ops.retlen = ops.oobretlen = 0;
retlen           1085 fs/jffs2/wbuf.c 	ops.len = ops.ooboffs = ops.retlen = ops.oobretlen = 0;
retlen           1110 fs/jffs2/wbuf.c 	ops.len = ops.ooboffs = ops.retlen = ops.oobretlen = 0;
retlen             65 fs/jffs2/write.c 	size_t retlen;
retlen            109 fs/jffs2/write.c 	ret = jffs2_flash_writev(c, vecs, cnt, flash_ofs, &retlen,
retlen            112 fs/jffs2/write.c 	if (ret || (retlen != sizeof(*ri) + datalen)) {
retlen            114 fs/jffs2/write.c 			  sizeof(*ri) + datalen, flash_ofs, ret, retlen);
retlen            117 fs/jffs2/write.c 		if (retlen) {
retlen            210 fs/jffs2/write.c 	size_t retlen;
retlen            268 fs/jffs2/write.c 	ret = jffs2_flash_writev(c, vecs, 2, flash_ofs, &retlen,
retlen            270 fs/jffs2/write.c 	if (ret || (retlen != sizeof(*rd) + namelen)) {
retlen            272 fs/jffs2/write.c 			  sizeof(*rd) + namelen, flash_ofs, ret, retlen);
retlen            274 fs/jffs2/write.c 		if (retlen) {
retlen            342 fs/jffs2/write.c 			    uint32_t offset, uint32_t writelen, uint32_t *retlen)
retlen            437 fs/jffs2/write.c 	*retlen = writtenlen;
retlen             17 fs/jffs2/writev.c 			      unsigned long count, loff_t to, size_t *retlen)
retlen             29 fs/jffs2/writev.c 	return mtd_writev(c->mtd, vecs, count, to, retlen);
retlen             33 fs/jffs2/writev.c 			size_t *retlen, const u_char *buf)
retlen             36 fs/jffs2/writev.c 	ret = mtd_write(c->mtd, ofs, len, retlen, buf);
retlen             57 include/linux/mtd/inftl.h 		   size_t *retlen, uint8_t *buf);
retlen             59 include/linux/mtd/inftl.h 		    size_t *retlen, uint8_t *buf);
retlen             66 include/linux/mtd/mtd.h 	size_t		retlen;
retlen            278 include/linux/mtd/mtd.h 		       size_t *retlen, void **virt, resource_size_t *phys);
retlen            281 include/linux/mtd/mtd.h 		      size_t *retlen, u_char *buf);
retlen            283 include/linux/mtd/mtd.h 		       size_t *retlen, const u_char *buf);
retlen            285 include/linux/mtd/mtd.h 			     size_t *retlen, const u_char *buf);
retlen            291 include/linux/mtd/mtd.h 				    size_t *retlen, struct otp_info *buf);
retlen            293 include/linux/mtd/mtd.h 				    size_t len, size_t *retlen, u_char *buf);
retlen            295 include/linux/mtd/mtd.h 				    size_t *retlen, struct otp_info *buf);
retlen            297 include/linux/mtd/mtd.h 				    size_t len, size_t *retlen, u_char *buf);
retlen            299 include/linux/mtd/mtd.h 				     size_t len, size_t *retlen, u_char *buf);
retlen            303 include/linux/mtd/mtd.h 			unsigned long count, loff_t to, size_t *retlen);
retlen            410 include/linux/mtd/mtd.h int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen,
retlen            415 include/linux/mtd/mtd.h int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen,
retlen            417 include/linux/mtd/mtd.h int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen,
retlen            419 include/linux/mtd/mtd.h int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen,
retlen            425 include/linux/mtd/mtd.h int mtd_get_fact_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen,
retlen            428 include/linux/mtd/mtd.h 			   size_t *retlen, u_char *buf);
retlen            429 include/linux/mtd/mtd.h int mtd_get_user_prot_info(struct mtd_info *mtd, size_t len, size_t *retlen,
retlen            432 include/linux/mtd/mtd.h 			   size_t *retlen, u_char *buf);
retlen            434 include/linux/mtd/mtd.h 			    size_t *retlen, u_char *buf);
retlen            438 include/linux/mtd/mtd.h 	       unsigned long count, loff_t to, size_t *retlen);
retlen             45 include/linux/mtd/nftl.h 		  size_t *retlen, uint8_t *buf);
retlen             47 include/linux/mtd/nftl.h 		   size_t *retlen, uint8_t *buf);
retlen            248 kernel/compat.c 		unsigned int retlen = min(len, cpumask_size());
retlen            250 kernel/compat.c 		if (compat_put_bitmap(user_mask_ptr, cpumask_bits(mask), retlen * 8))
retlen            253 kernel/compat.c 			ret = retlen;
retlen            561 kernel/debug/kdb/kdb_io.c 	int retlen = 0;
retlen            698 kernel/debug/kdb/kdb_io.c 	retlen = strlen(kdb_buffer);
retlen            701 kernel/debug/kdb/kdb_io.c 		gdbstub_msg_write(cp, retlen - (cp - kdb_buffer));
retlen            704 kernel/debug/kdb/kdb_io.c 			len = retlen - (cp - kdb_buffer);
retlen            712 kernel/debug/kdb/kdb_io.c 			c->write(c, cp, retlen - (cp - kdb_buffer));
retlen            733 kernel/debug/kdb/kdb_io.c 		len = retlen;
retlen            852 kernel/debug/kdb/kdb_io.c 	return retlen;
retlen           5560 kernel/sched/core.c 		unsigned int retlen = min(len, cpumask_size());
retlen           5562 kernel/sched/core.c 		if (copy_to_user(user_mask_ptr, mask, retlen))
retlen           5565 kernel/sched/core.c 			ret = retlen;