/external/u-boot/drivers/mtd/spi/ |
D | sf_dataflash.c | 155 unsigned int pageaddr; in spi_dataflash_erase() local 161 pageaddr = div_u64(offset, spi_flash->page_size); in spi_dataflash_erase() 162 do_block = (pageaddr & 0x7) == 0 && len >= blocksize; in spi_dataflash_erase() 163 pageaddr = pageaddr << dataflash->page_offset; in spi_dataflash_erase() 166 command[1] = (uint8_t)(pageaddr >> 16); in spi_dataflash_erase() 167 command[2] = (uint8_t)(pageaddr >> 8); in spi_dataflash_erase() 173 pageaddr); in spi_dataflash_erase() 270 unsigned int pageaddr, addr, to, writelen; in spi_dataflash_write() local 284 pageaddr = ((unsigned)offset / spi_flash->page_size); in spi_dataflash_write() 298 debug("write @ %d:%d len=%d\n", pageaddr, to, writelen); in spi_dataflash_write() [all …]
|
/external/squashfs-tools/kernel/fs/squashfs/ |
D | symlink.c | 56 void *pageaddr; in squashfs_symlink_readpage() local 93 pageaddr = kmap_atomic(page, KM_USER0); in squashfs_symlink_readpage() 94 copied = squashfs_copy_data(pageaddr + bytes, entry, offset, in squashfs_symlink_readpage() 97 memset(pageaddr + length, 0, PAGE_CACHE_SIZE - length); in squashfs_symlink_readpage() 100 kunmap_atomic(pageaddr, KM_USER0); in squashfs_symlink_readpage()
|
D | file.c | 381 void *pageaddr; in squashfs_readpage() local 468 pageaddr = kmap_atomic(push_page, KM_USER0); in squashfs_readpage() 469 squashfs_copy_data(pageaddr, buffer, offset, avail); in squashfs_readpage() 470 memset(pageaddr + avail, 0, PAGE_CACHE_SIZE - avail); in squashfs_readpage() 471 kunmap_atomic(pageaddr, KM_USER0); in squashfs_readpage() 488 pageaddr = kmap_atomic(page, KM_USER0); in squashfs_readpage() 489 memset(pageaddr, 0, PAGE_CACHE_SIZE); in squashfs_readpage() 490 kunmap_atomic(pageaddr, KM_USER0); in squashfs_readpage()
|
/external/squashfs-tools/kernel-2.4/fs/squashfs/ |
D | inode.c | 1147 void *pageaddr = kmap(page); in squashfs_symlink_readpage() local 1173 if (!(bytes = squashfs_get_cached_block(inode->i_sb, pageaddr, block, in squashfs_symlink_readpage() 1178 memset(pageaddr + bytes, 0, PAGE_CACHE_SIZE - bytes); in squashfs_symlink_readpage() 1459 void *pageaddr; in squashfs_readpage() local 1521 pageaddr = kmap_atomic(page, KM_USER0); in squashfs_readpage() 1522 memcpy(pageaddr, data_ptr + byte_offset, in squashfs_readpage() 1524 memset(pageaddr + available_bytes, 0, in squashfs_readpage() 1526 kunmap_atomic(pageaddr, KM_USER0); in squashfs_readpage() 1532 pageaddr = kmap_atomic(push_page, KM_USER0); in squashfs_readpage() 1534 memcpy(pageaddr, data_ptr + byte_offset, in squashfs_readpage() [all …]
|
/external/ltp/testcases/kernel/fs/scsi/ltpscsi/ |
D | scsimain.c | 5128 static void bitfield(unsigned char *pageaddr, char *text, int mask, int shift) in bitfield() argument 5130 printf("%-35s%d\n", text, (*pageaddr >> shift) & mask); in bitfield() 5133 static void notbitfield(unsigned char *pageaddr, char *text, int mask, in notbitfield() argument 5136 printf("%-35s%d\n", text, !((*pageaddr >> shift) & mask)); in notbitfield() 5139 static void intfield(unsigned char *pageaddr, int nbytes, char *text) in intfield() argument 5141 printf("%-35s%d\n", text, getnbyte(pageaddr, nbytes)); in intfield() 5144 static void hexfield(unsigned char *pageaddr, int nbytes, char *text) in hexfield() argument 5146 printf("%-35s0x%x\n", text, getnbyte(pageaddr, nbytes)); in hexfield() 5149 static void hexdatafield(unsigned char *pageaddr, int nbytes, char *text) in hexdatafield() argument 5153 printf("%02x", *pageaddr++); in hexdatafield()
|