/linux-2.6.39/drivers/block/ |
D | brd.c | 59 static struct page *brd_lookup_page(struct brd_device *brd, sector_t sector) in brd_lookup_page() argument 76 idx = sector >> PAGE_SECTORS_SHIFT; /* sector to page index */ in brd_lookup_page() 90 static struct page *brd_insert_page(struct brd_device *brd, sector_t sector) in brd_insert_page() argument 96 page = brd_lookup_page(brd, sector); in brd_insert_page() 123 idx = sector >> PAGE_SECTORS_SHIFT; in brd_insert_page() 138 static void brd_free_page(struct brd_device *brd, sector_t sector) in brd_free_page() argument 144 idx = sector >> PAGE_SECTORS_SHIFT; in brd_free_page() 151 static void brd_zero_page(struct brd_device *brd, sector_t sector) in brd_zero_page() argument 155 page = brd_lookup_page(brd, sector); in brd_zero_page() 200 static int copy_to_brd_setup(struct brd_device *brd, sector_t sector, size_t n) in copy_to_brd_setup() argument [all …]
|
/linux-2.6.39/include/trace/events/ |
D | block.h | 19 __field( sector_t, sector ) 28 __entry->sector = (rq->cmd_type == REQ_TYPE_BLOCK_PC) ? 41 (unsigned long long)__entry->sector, 104 __field( sector_t, sector ) 114 __entry->sector = (rq->cmd_type == REQ_TYPE_BLOCK_PC) ? 129 (unsigned long long)__entry->sector, 184 __field( sector_t, sector ) 193 __entry->sector = bio->bi_sector; 201 (unsigned long long)__entry->sector, 222 __field( sector_t, sector ) [all …]
|
/linux-2.6.39/drivers/block/drbd/ |
D | drbd_actlog.c | 70 struct page *page, sector_t sector, in _drbd_md_sync_page_io() argument 87 bio->bi_sector = sector; in _drbd_md_sync_page_io() 108 sector_t sector, int rw) in drbd_md_sync_page_io() argument 127 offset = sector & mask; in drbd_md_sync_page_io() 128 sector = sector & ~mask; in drbd_md_sync_page_io() 137 ok = _drbd_md_sync_page_io(mdev, bdev, iop, sector, in drbd_md_sync_page_io() 143 (unsigned long long)sector); in drbd_md_sync_page_io() 151 if (sector < drbd_md_first_sector(bdev) || in drbd_md_sync_page_io() 152 sector > drbd_md_last_sector(bdev)) in drbd_md_sync_page_io() 155 (unsigned long long)sector, (rw & WRITE) ? "WRITE" : "READ"); in drbd_md_sync_page_io() [all …]
|
D | drbd_req.c | 80 drbd_set_out_of_sync(mdev, req->sector, req->size); in _req_is_done() 83 drbd_set_in_sync(mdev, req->sector, req->size); in _req_is_done() 98 drbd_al_complete_io(mdev, req->sector); in _req_is_done() 103 (unsigned long long) req->sector); in _req_is_done() 158 const sector_t sector = req->sector; in _about_to_complete_local_write() local 164 #define OVERLAPS overlaps(sector, size, i->sector, i->size) in _about_to_complete_local_write() 165 slot = tl_hash_slot(mdev, sector); in _about_to_complete_local_write() 170 req, (unsigned long long)sector, size, in _about_to_complete_local_write() 171 i, (unsigned long long)i->sector, i->size); in _about_to_complete_local_write() 188 #define OVERLAPS overlaps(sector, size, e->sector, e->size) in _about_to_complete_local_write() [all …]
|
D | drbd_req.h | 227 struct hlist_head *ee_hash_slot(struct drbd_conf *mdev, sector_t sector) in ee_hash_slot() argument 231 ((unsigned int)(sector>>HT_SHIFT) % mdev->ee_hash_s); in ee_hash_slot() 236 struct hlist_head *tl_hash_slot(struct drbd_conf *mdev, sector_t sector) in tl_hash_slot() argument 240 ((unsigned int)(sector>>HT_SHIFT) % mdev->tl_hash_s); in tl_hash_slot() 244 static struct hlist_head *ar_hash_slot(struct drbd_conf *mdev, sector_t sector) in ar_hash_slot() argument 247 + ((unsigned int)(sector) % APP_R_HSIZE); in ar_hash_slot() 253 u64 id, sector_t sector) in _ar_id_to_req() argument 255 struct hlist_head *slot = ar_hash_slot(mdev, sector); in _ar_id_to_req() 261 D_ASSERT(req->sector == sector); in _ar_id_to_req() 292 req->sector = bio_src->bi_sector; in drbd_req_new()
|
D | drbd_worker.c | 120 e_sector = e->sector; in drbd_endio_write_sec_final() 168 (unsigned long long)e->sector); in drbd_endio_sec() 173 (unsigned long long)e->sector); in drbd_endio_sec() 322 e->sector, in w_e_send_csum() 344 static int read_for_csum(struct drbd_conf *mdev, sector_t sector, int size) in read_for_csum() argument 351 if (drbd_rs_should_slow_down(mdev, sector)) in read_for_csum() 356 e = drbd_alloc_ee(mdev, DRBD_MAGIC+0xbeef, sector, size, GFP_TRY); in read_for_csum() 508 sector_t sector; in w_make_resync_request() local 567 sector = BM_BIT_TO_SECT(bit); in w_make_resync_request() 569 if (drbd_rs_should_slow_down(mdev, sector) || in w_make_resync_request() [all …]
|
D | drbd_receiver.c | 314 sector_t sector, in drbd_alloc_ee() argument 343 e->sector = sector; in drbd_alloc_ee() 1095 sector_t sector = e->sector; in drbd_submit_ee() local 1112 bio->bi_sector = sector; in drbd_submit_ee() 1139 sector += len >> 9; in drbd_submit_ee() 1238 read_in_block(struct drbd_conf *mdev, u64 id, sector_t sector, int data_size) __must_hold(local) in read_in_block() argument 1270 if (sector + (data_size>>9) > capacity) { in read_in_block() 1274 (unsigned long long)sector, data_size); in read_in_block() 1281 e = drbd_alloc_ee(mdev, id, sector, data_size, GFP_NOIO); in read_in_block() 1310 (unsigned long long)sector, data_size); in read_in_block() [all …]
|
D | drbd_int.h | 383 u64 sector; /* 64 bits sector number */ member 399 u64 sector; member 408 u64 sector; member 551 u64 sector; member 703 sector_t sector; member 776 sector_t sector; member 1253 sector_t sector, int blksize, u64 block_id); 1259 sector_t sector, int size, u64 block_id); 1261 sector_t sector,int size, 1264 extern int drbd_send_ov_request(struct drbd_conf *mdev,sector_t sector,int size); [all …]
|
/linux-2.6.39/drivers/scsi/ |
D | sr_vendor.c | 160 unsigned long sector; in sr_cd_check() local 172 sector = 0; /* the multisession sector offset goes here */ in sr_cd_check() 198 sector = buffer[11] + (buffer[10] << 8) + in sr_cd_check() 202 sector = 0; in sr_cd_check() 230 sector = min * CD_SECS * CD_FRAMES + sec * CD_FRAMES + frame; in sr_cd_check() 259 sector = min * CD_SECS * CD_FRAMES + sec * CD_FRAMES + frame; in sr_cd_check() 260 if (sector) in sr_cd_check() 261 sector -= CD_MSF_OFFSET; in sr_cd_check() 297 sector = buffer[11] + (buffer[10] << 8) + in sr_cd_check() 307 sector = 0; in sr_cd_check() [all …]
|
D | sd_dif.c | 60 sector_t sector = bix->sector; in sd_dif_type1_generate() local 65 sdt->ref_tag = cpu_to_be32(sector & 0xffffffff); in sd_dif_type1_generate() 69 sector++; in sd_dif_type1_generate() 87 sector_t sector = bix->sector; in sd_dif_type1_verify() local 100 bix->disk_name, (unsigned long)sector); in sd_dif_type1_verify() 104 if (be32_to_cpu(sdt->ref_tag) != (sector & 0xffffffff)) { in sd_dif_type1_verify() 107 bix->disk_name, (unsigned long)sector, in sd_dif_type1_verify() 117 (unsigned long)sector, in sd_dif_type1_verify() 123 sector++; in sd_dif_type1_verify() 220 sector_t sector = bix->sector; in sd_dif_type3_verify() local [all …]
|
/linux-2.6.39/drivers/mtd/nand/ |
D | sh_flctl.c | 254 static int read_ecfiforeg(struct sh_flctl *flctl, uint8_t *buff, int sector) in read_ecfiforeg() argument 261 if (wait_recfifo_ready(flctl , sector)) in read_ecfiforeg() 380 int sector, page_sectors; in execmd_read_page_sector() local 393 for (sector = 0; sector < page_sectors; sector++) { in execmd_read_page_sector() 398 writel(page_addr << 2 | sector, FLADR(flctl)); in execmd_read_page_sector() 401 read_fiforeg(flctl, 512, 512 * sector); in execmd_read_page_sector() 404 &flctl->done_buff[mtd->writesize + 16 * sector], in execmd_read_page_sector() 405 sector); in execmd_read_page_sector() 408 flctl->hwecc_cant_correct[sector] = 1; in execmd_read_page_sector() 452 int sector, page_sectors; in execmd_write_page_sector() local [all …]
|
/linux-2.6.39/block/ |
D | blk-lib.c | 37 int blkdev_issue_discard(struct block_device *bdev, sector_t sector, in blkdev_issue_discard() argument 77 bio->bi_sector = sector; in blkdev_issue_discard() 85 sector += max_discard_sectors; in blkdev_issue_discard() 141 int blkdev_issue_zeroout(struct block_device *bdev, sector_t sector, in blkdev_issue_zeroout() argument 164 bio->bi_sector = sector; in blkdev_issue_zeroout() 176 sector += ret >> 9; in blkdev_issue_zeroout()
|
/linux-2.6.39/drivers/usb/storage/ |
D | jumpshot.c | 165 u32 sector, in jumpshot_read_data() argument 181 if (sector > 0x0FFFFFFF) in jumpshot_read_data() 203 command[2] = sector & 0xFF; in jumpshot_read_data() 204 command[3] = (sector >> 8) & 0xFF; in jumpshot_read_data() 205 command[4] = (sector >> 16) & 0xFF; in jumpshot_read_data() 207 command[5] = 0xE0 | ((sector >> 24) & 0x0F); in jumpshot_read_data() 227 sector += thistime; in jumpshot_read_data() 242 u32 sector, in jumpshot_write_data() argument 258 if (sector > 0x0FFFFFFF) in jumpshot_write_data() 285 command[2] = sector & 0xFF; in jumpshot_write_data() [all …]
|
D | datafab.c | 145 u32 sector, in datafab_read_data() argument 190 command[2] = sector & 0xFF; in datafab_read_data() 191 command[3] = (sector >> 8) & 0xFF; in datafab_read_data() 192 command[4] = (sector >> 16) & 0xFF; in datafab_read_data() 195 command[5] |= (sector >> 24) & 0x0F; in datafab_read_data() 213 sector += thistime; in datafab_read_data() 228 u32 sector, in datafab_write_data() argument 278 command[2] = sector & 0xFF; in datafab_write_data() 279 command[3] = (sector >> 8) & 0xFF; in datafab_write_data() 280 command[4] = (sector >> 16) & 0xFF; in datafab_write_data() [all …]
|
D | shuttle_usbat.c | 208 u32 sector, unsigned char cmd) in usbat_pack_ata_sector_cmd() argument 212 buf[2] = sector & 0xFF; in usbat_pack_ata_sector_cmd() 213 buf[3] = (sector >> 8) & 0xFF; in usbat_pack_ata_sector_cmd() 214 buf[4] = (sector >> 16) & 0xFF; in usbat_pack_ata_sector_cmd() 215 buf[5] = 0xE0 | ((sector >> 24) & 0x0F); in usbat_pack_ata_sector_cmd() 1113 u32 sector, in usbat_flash_read_data() argument 1144 if (sector > 0x0FFFFFFF) in usbat_flash_read_data() 1169 usbat_pack_ata_sector_cmd(command, thistime, sector, 0x20); in usbat_flash_read_data() 1187 sector += thistime; in usbat_flash_read_data() 1204 u32 sector, in usbat_flash_write_data() argument [all …]
|
/linux-2.6.39/fs/fat/ |
D | cache.c | 297 int fat_bmap(struct inode *inode, sector_t sector, sector_t *phys, in fat_bmap() argument 310 if (sector < (sbi->dir_entries >> sbi->dir_per_block_bits)) { in fat_bmap() 311 *phys = sector + sbi->dir_start; in fat_bmap() 318 if (sector >= last_block) { in fat_bmap() 328 if (sector >= last_block) in fat_bmap() 332 cluster = sector >> (sbi->cluster_bits - sb->s_blocksize_bits); in fat_bmap() 333 offset = sector & (sbi->sec_per_clus - 1); in fat_bmap() 340 if (*mapped_blocks > last_block - sector) in fat_bmap() 341 *mapped_blocks = last_block - sector; in fat_bmap()
|
/linux-2.6.39/drivers/md/ |
D | raid0.c | 303 sector_t sector = bvm->bi_sector + get_start_sect(bvm->bi_bdev); in raid0_mergeable_bvec() local 309 max = (chunk_sectors - ((sector & (chunk_sectors-1)) in raid0_mergeable_bvec() 312 max = (chunk_sectors - (sector_div(sector, chunk_sectors) in raid0_mergeable_bvec() 405 sector_t sector = *sectorp; in find_zone() local 408 if (sector < z[i].zone_end) { in find_zone() 410 *sectorp = sector - z[i-1].zone_end; in find_zone() 421 sector_t sector, sector_t *sector_offset) in map_sector() argument 432 sect_in_chunk = sector & (chunk_sects - 1); in map_sector() 433 sector >>= chunksect_bits; in map_sector() 439 sect_in_chunk = sector_div(sector, chunk_sects); in map_sector() [all …]
|
D | raid5.c | 243 (unsigned long long)sh->sector); in remove_hash() 250 struct hlist_head *hp = stripe_hash(conf, sh->sector); in insert_hash() 253 (unsigned long long)sh->sector); in insert_hash() 313 static void init_stripe(struct stripe_head *sh, sector_t sector, int previous) in init_stripe() argument 324 (unsigned long long)sh->sector); in init_stripe() 330 sh->sector = sector; in init_stripe() 331 stripe_set_idx(sector, conf, previous, sh); in init_stripe() 341 (unsigned long long)sh->sector, i, dev->toread, in init_stripe() 352 static struct stripe_head *__find_stripe(raid5_conf_t *conf, sector_t sector, in __find_stripe() argument 359 pr_debug("__find_stripe, sector %llu\n", (unsigned long long)sector); in __find_stripe() [all …]
|
D | dm-crypt.c | 46 sector_t sector; member 62 sector_t sector; member 661 sector_t sector) in crypt_convert_init() argument 669 ctx->sector = sector + cc->iv_offset; in crypt_convert_init() 705 dmreq->iv_sector = ctx->sector; in crypt_convert_block() 754 unsigned key_index = ctx->sector & (cc->tfms_count - 1); in crypt_alloc_req() 793 ctx->sector++; in crypt_convert() 799 ctx->sector++; in crypt_convert() 891 struct bio *bio, sector_t sector) in crypt_io_alloc() argument 899 io->sector = sector; in crypt_io_alloc() [all …]
|
/linux-2.6.39/Documentation/device-mapper/ |
D | dm-crypt.txt | 25 then sectors are encrypted according to their offsets (sector 0 uses key0; 26 sector 1 uses key1 etc.). <keycount> must be a power of two. 29 The IV offset is a sector count that is added to the sector number 38 Starting sector within the device where the encrypted data begins.
|
/linux-2.6.39/drivers/char/ |
D | ps3flash.c | 129 u64 size, sector, offset; in ps3flash_read() local 149 sector = *pos / dev->bounce_size * priv->chunk_sectors; in ps3flash_read() 159 res = ps3flash_fetch(dev, sector); in ps3flash_read() 182 sector += priv->chunk_sectors; in ps3flash_read() 198 u64 size, sector, offset; in ps3flash_write() local 218 sector = *pos / dev->bounce_size * priv->chunk_sectors; in ps3flash_write() 229 res = ps3flash_fetch(dev, sector); in ps3flash_write() 230 else if (sector != priv->tag) in ps3flash_write() 250 priv->tag = sector; in ps3flash_write() 257 sector += priv->chunk_sectors; in ps3flash_write()
|
/linux-2.6.39/drivers/mtd/ |
D | rfd_ftl.c | 89 static int rfd_ftl_writesect(struct mtd_blktrans_dev *dev, u_long sector, char *buf); 240 static int rfd_ftl_readsect(struct mtd_blktrans_dev *dev, u_long sector, char *buf) in rfd_ftl_readsect() argument 247 if (sector >= part->sector_count) in rfd_ftl_readsect() 250 addr = part->sector_map[sector]; in rfd_ftl_readsect() 641 static int do_writesect(struct mtd_blktrans_dev *dev, u_long sector, char *buf, ulong *old_addr) in do_writesect() argument 683 part->sector_map[sector] = addr; in do_writesect() 685 entry = cpu_to_le16(sector == 0 ? SECTOR_ZERO : sector); in do_writesect() 709 static int rfd_ftl_writesect(struct mtd_blktrans_dev *dev, u_long sector, char *buf) in rfd_ftl_writesect() argument 716 pr_debug("rfd_ftl_writesect(sector=0x%lx)\n", sector); in rfd_ftl_writesect() 723 if (sector >= part->sector_count) { in rfd_ftl_writesect() [all …]
|
D | ftl.c | 787 u_long sector, u_long nblocks) in ftl_read() argument 795 part, sector, nblocks); in ftl_read() 803 if (((sector+i) * SECTOR_SIZE) >= le32_to_cpu(part->header.FormattedSize)) { in ftl_read() 807 log_addr = part->VirtualBlockMap[sector+i]; in ftl_read() 901 u_long sector, u_long nblocks) in ftl_write() argument 909 part, sector, nblocks); in ftl_write() 923 virt_addr = sector * SECTOR_SIZE | BLOCK_DATA; in ftl_write() 961 old_addr = part->VirtualBlockMap[sector+i]; in ftl_write() 963 part->VirtualBlockMap[sector+i] = 0xffffffff; in ftl_write() 972 part->VirtualBlockMap[sector+i] = log_addr; in ftl_write() [all …]
|
/linux-2.6.39/fs/ext2/ |
D | xip.c | 24 sector_t sector; in __inode_direct_access() local 26 sector = block * (PAGE_SIZE / 512); /* ext2 block to bdev sector */ in __inode_direct_access() 29 return ops->direct_access(bdev, sector, kaddr, pfn); in __inode_direct_access()
|
/linux-2.6.39/kernel/power/ |
D | block_io.c | 28 static int submit(int rw, struct block_device *bdev, sector_t sector, in submit() argument 35 bio->bi_sector = sector; in submit() 41 (unsigned long long)sector); in submit()
|