Searched refs:start_lba (Results 1 - 8 of 8) sorted by relevance

/netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/hdparm-9.43/
H A Dsysfs.h1 int sysfs_get_start_lba (dev_t dev, __u64 *start_lba);
H A Dgeom.c106 static int get_raid1_start_lba (int fd, __u64 *start_lba) argument
138 *start_lba = start;
143 __u64 *start_lba, __u64 *nsectors)
155 if (start_lba) {
158 * so it cannot be relied upon for start_lba with very large drives >= 2TB.
164 *start_lba = result;
165 start_lba = NULL;
168 *start_lba = START_LBA_UNKNOWN; /* RAID: no such thing as a "start_lba" */
169 start_lba
142 get_dev_geometry(int fd, __u32 *cyls, __u32 *heads, __u32 *sects, __u64 *start_lba, __u64 *nsectors) argument
247 get_dev_t_geometry(dev_t dev, __u32 *cyls, __u32 *heads, __u32 *sects, __u64 *start_lba, __u64 *nsectors) argument
[all...]
H A Dfibmap.c34 static void handle_extent (struct file_extent ext, unsigned int sectors_per_block, __u64 start_lba) argument
41 begin_lba = start_lba + ( ext.first_block * sectors_per_block);
42 end_lba = start_lba + ((ext.last_block + 1) * sectors_per_block) - 1;
58 static int walk_fibmap (int fd, struct stat *st, unsigned int sectors_per_block, __u64 start_lba) argument
111 handle_extent(ext, sectors_per_block, start_lba);
118 handle_extent(ext, sectors_per_block, start_lba);
155 static int walk_fiemap (int fd, unsigned int sectors_per_block, __u64 start_lba) argument
197 handle_extent(ext, sectors_per_block, start_lba);
224 __u64 start_lba = 0; local
246 err = get_dev_t_geometry(st.st_dev, NULL, NULL, NULL, &start_lba, NUL
[all...]
H A Dhdparm.h19 int get_dev_geometry (int fd, __u32 *cyls, __u32 *heads, __u32 *sects, __u64 *start_lba, __u64 *nsectors);
20 int get_dev_t_geometry (dev_t dev, __u32 *cyls, __u32 *heads, __u32 *sects, __u64 *start_lba, __u64 *nsectors);
H A Dhdparm.c947 __u64 start_lba; local
951 err = get_dev_geometry(fd, NULL, NULL, NULL, &start_lba, NULL);
962 if (start_lba == 0ULL)
964 if (start_lba == START_LBA_UNKNOWN || fd_is_raid(fd)) {
969 fprintf(stderr, "Device %s has non-zero LBA starting offset of %llu.\n", devname, start_lba);
972 fprintf(stderr, "The absolute LBA of sector %llu from %s should be %llu\n", lba, devname, start_lba + lba);
2117 __u64 start_lba = 0, nsectors = 0; local
2118 err = get_dev_geometry (fd, &cyls, &heads, &sects, &start_lba, &nsectors);
2121 if (start_lba == START_LBA_UNKNOWN)
2124 printf("%lld\n", start_lba);
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/include/linux/
H A Dblktrace_api.h141 __u64 start_lba; member in struct:blk_user_trace_setup
157 u64 start_lba; member in struct:blk_trace
231 compat_u64 start_lba; member in struct:compat_blk_user_trace_setup
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/kernel/trace/
H A Dblktrace.c158 if (sector && (sector < bt->start_lba || sector > bt->end_lba))
419 bt->start_lba = part->start_sect;
422 bt->start_lba = 0;
508 if (buts->start_lba)
509 bt->start_lba = buts->start_lba;
571 .start_lba = cbuts.start_lba,
1550 static BLK_TRACE_DEVICE_ATTR(start_lba);
1678 ret = sprintf(buf, "%llu\n", q->blk_trace->start_lba);
[all...]
/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/
H A Dsd.c1148 u64 start_lba = blk_rq_pos(scmd->request); local
1173 start_lba <<= 1;
1178 do_div(start_lba, factor);
1185 if (bad_lba < start_lba || bad_lba >= end_lba)
1191 good_bytes = (bad_lba - start_lba) * scmd->device->sector_size;

Completed in 143 milliseconds