Searched defs:nr_sec (Results 1 - 3 of 3) sorted by relevance

/system/vold/
H A DLoop.cpp252 int Loop::lookupInfo(const char *loopDevice, struct asec_superblock *sb, unsigned int *nr_sec) { argument
262 if (ioctl(fd, BLKGETSIZE, nr_sec)) {
273 if (lseek(fd, ((*nr_sec - 1) * 512), SEEK_SET) < 0) {
H A DVolumeManager.cpp470 unsigned int nr_sec = 0; local
473 if (Loop::lookupInfo(loopDevice, &sb, &nr_sec)) {
523 unsigned int nr_sec = 0; local
526 if (Loop::lookupInfo(loopDevice, &sb, &nr_sec)) {
902 unsigned int nr_sec = 0; local
905 if (Loop::lookupInfo(loopDevice, &sb, &nr_sec)) {
918 nr_sec--; // We don't want the devmapping to extend onto our superblock
922 if (Devmapper::create(idHash, loopDevice, key, nr_sec,
1026 unsigned int nr_sec = 0; local
1034 if (ioctl(fd, BLKGETSIZE, &nr_sec)) {
[all...]
H A Dcryptfs.c118 unsigned int nr_sec; local
120 if ( (ioctl(fd, BLKGETSIZE, &nr_sec)) == -1) {
121 nr_sec = 0;
124 return nr_sec;
147 unsigned int nr_sec, cnt; local
163 if ( (nr_sec = get_blkdev_size(fd)) == 0) {
172 off = ((off64_t)nr_sec * 512) - CRYPT_FOOTER_OFFSET;
246 unsigned int nr_sec, cnt; local
262 if ( (nr_sec = get_blkdev_size(fd)) == 0) {
271 off = ((off64_t)nr_sec * 51
869 int nr_sec, fd; local
1119 unsigned long nr_sec; local
[all...]

Completed in 55 milliseconds