Searched refs:sectors (Results 26 - 50 of 210) sorted by relevance

123456789

/linux-master/fs/hfsplus/
H A Dbtree.c76 u64 sectors, int file_id)
100 if (sectors < 0x200000) {
101 clump_size = sectors << 2; /* 0.8 % */
106 for (i = 0, sectors = sectors >> 22;
107 sectors && (i < CLUMP_ENTRIES - 1);
108 ++i, sectors = sectors >> 1) {
75 hfsplus_calc_btree_clump_size(u32 block_size, u32 node_size, u64 sectors, int file_id) argument
/linux-master/include/linux/mtd/
H A Dinftl.h35 unsigned char sectors; member in struct:INFTLrecord
H A Dnftl.h27 unsigned char sectors; member in struct:NFTLrecord
/linux-master/drivers/mtd/
H A Dsm_ftl.h22 struct kfifo free_sectors; /* queue of free sectors */
55 int sectors; member in struct:sm_ftl
H A Dnftlcore.c71 nftl->sectors = nftl->mbd.size / temp;
73 nftl->sectors++;
74 temp = nftl->cylinders * nftl->sectors;
79 temp = nftl->heads * nftl->sectors;
84 if (nftl->mbd.size != nftl->heads * nftl->cylinders * nftl->sectors) {
87 mbd.size == heads * cylinders * sectors
93 nftl->cylinders, nftl->heads , nftl->sectors,
95 (long)nftl->sectors );
771 geo->sectors = nftl->sectors;
[all...]
/linux-master/drivers/md/
H A Draid10.h55 int chunk_shift; /* shift from chunks to sectors */
124 int sectors; member in struct:r10bio
H A Draid1.h159 int sectors; member in struct:r1bio
H A Dmd.h52 sector_t sectors; /* Device size (in 512bytes sectors) */ member in struct:md_rdev
70 sector_t sb_start; /* offset of the super block (in 512byte sectors) */
138 unsigned int size; /* Size in sectors of the PPL space */
214 static inline int is_badblock(struct md_rdev *rdev, sector_t s, int sectors, argument
219 sectors,
229 int sectors)
234 return is_badblock(rdev, s, sectors, &first_bad, &bad_sectors);
237 extern int rdev_set_badblocks(struct md_rdev *rdev, sector_t s, int sectors,
239 extern int rdev_clear_badblocks(struct md_rdev *rdev, sector_t s, int sectors,
228 rdev_has_badblock(struct md_rdev *rdev, sector_t s, int sectors) argument
[all...]
H A Dmd-bitmap.h134 __le32 sectors_reserved; /* 64 number of 512-byte sectors that are
150 * (3)This is the number of sectors represented by the bitmap, and is the range that
256 unsigned long sectors, int behind);
258 unsigned long sectors, int success, int behind);
/linux-master/block/
H A Dbounce.c211 int sectors; local
227 sectors = ALIGN_DOWN(bytes, queue_logical_block_size(q)) >>
229 if (sectors < bio_sectors(bio_orig)) {
230 bio = bio_split(bio_orig, sectors, GFP_NOIO, &bounce_bio_split);
/linux-master/drivers/usb/storage/
H A Ddatafab.c60 unsigned long sectors; /* total sector count */ member in struct:datafab_info
138 u32 sectors)
153 if (sectors > 0x0FFFFFFF)
162 totallen = sectors * info->ssize;
221 u32 sectors)
237 if (sectors > 0x0FFFFFFF)
246 totallen = sectors * info->ssize;
420 info->sectors = ((u32)(reply[117]) << 24) |
576 info->ssize = 0x200; // hard coded 512 byte sectors as per ATA spec
581 usb_stor_dbg(us, "READ_CAPACITY: %ld sectors,
135 datafab_read_data(struct us_data *us, struct datafab_info *info, u32 sector, u32 sectors) argument
218 datafab_write_data(struct us_data *us, struct datafab_info *info, u32 sector, u32 sectors) argument
[all...]
H A Djumpshot.c96 unsigned long sectors; /* total sector count */ member in struct:jumpshot_info
156 u32 sectors)
174 totallen = sectors * info->ssize;
233 u32 sectors)
251 totallen = sectors * info->ssize;
354 info->sectors = ((u32)(reply[117]) << 24) |
502 info->ssize = 0x200; // hard coded 512 byte sectors as per ATA spec
512 usb_stor_dbg(us, "READ_CAPACITY: %ld sectors, %ld bytes per sector\n",
513 info->sectors, info->ssize);
517 ((__be32 *) ptr)[0] = cpu_to_be32(info->sectors
153 jumpshot_read_data(struct us_data *us, struct jumpshot_info *info, u32 sector, u32 sectors) argument
230 jumpshot_write_data(struct us_data *us, struct jumpshot_info *info, u32 sector, u32 sectors) argument
[all...]
/linux-master/drivers/md/bcache/
H A Dalloc.c86 void bch_rescale_priorities(struct cache_set *c, int sectors) argument
93 atomic_sub(sectors, &c->rescale);
162 * first: we also take into account the number of sectors of live data in that
551 * For example, dirty sectors of flash only volume is not reclaimable, if their
552 * dirty sectors mixed with dirty sectors of cached device, such buckets will
601 * May allocate fewer sectors than @sectors, KEY_SIZE(k) indicates how many
602 * sectors were actually allocated.
608 unsigned int sectors,
606 bch_alloc_sectors(struct cache_set *c, struct bkey *k, unsigned int sectors, unsigned int write_point, unsigned int write_prio, bool wait) argument
[all...]
H A Drequest.c113 pr_debug("invalidating %i sectors from %llu\n",
117 unsigned int sectors = min(bio_sectors(bio), local
123 bio->bi_iter.bi_sector += sectors;
124 bio->bi_iter.bi_size -= sectors << 9;
129 sectors));
321 * Congested? Return 0 (not congested) or the limit (in sectors)
367 unsigned int sectors, congested; local
439 sectors = max(task->sequential_io,
443 sectors >= dc->sequential_cutoff >> 9) {
448 if (congested && sectors >
526 unsigned int sectors = KEY_INODE(k) == s->iop.inode local
878 cached_dev_cache_miss(struct btree *b, struct search *s, struct bio *bio, unsigned int sectors) argument
1251 flash_dev_cache_miss(struct btree *b, struct search *s, struct bio *bio, unsigned int sectors) argument
[all...]
/linux-master/fs/bcachefs/
H A Dio_misc.c26 u64 sectors,
51 sectors = min_t(u64, sectors, k.k->p.offset - iter->pos.offset);
59 ret = bch2_disk_reservation_get(c, &disk_res, sectors, new_replicas, 0);
71 bch2_key_resize(&reservation->k, sectors);
98 sectors = min_t(u64, sectors, wp->sectors_free);
99 sectors_allocated = sectors;
101 bch2_key_resize(&e->k, sectors);
104 bch2_alloc_sectors_append_ptrs(c, wp, &e->k_i, sectors, fals
23 bch2_extent_fallocate(struct btree_trans *trans, subvol_inum inum, struct btree_iter *iter, u64 sectors, struct bch_io_opts opts, s64 *i_sectors_delta, struct write_point_specifier write_point) argument
[all...]
H A Dfs-io.c145 struct quota_res *quota_res, s64 sectors)
147 bch2_fs_inconsistent_on((s64) inode->v.i_blocks + sectors < 0, c,
149 inode->v.i_ino, (u64) inode->v.i_blocks, sectors,
151 inode->v.i_blocks += sectors;
156 sectors > 0) {
157 BUG_ON(sectors > quota_res->sectors);
158 BUG_ON(sectors > inode->ei_quota_reserved);
160 quota_res->sectors -= sectors;
144 __bch2_i_sectors_acct(struct bch_fs *c, struct bch_inode_info *inode, struct quota_res *quota_res, s64 sectors) argument
603 unsigned sectors; local
810 u64 sectors = end - start; local
[all...]
H A Dec.c141 prt_printf(out, "algo %u sectors %u blocks %u:%u csum ",
143 le16_to_cpu(s.sectors),
176 s64 sectors = data_type ? le16_to_cpu(s.v->sectors) : 0; local
180 sectors = -sectors;
186 ret = bch2_check_bucket_ref(trans, s.s_c, ptr, sectors, data_type,
232 a->v.dirty_sectors += sectors;
254 s64 sectors = parity ? le16_to_cpu(s->sectors) local
331 s64 sectors = le16_to_cpu(new_s->sectors); local
341 s64 sectors = -((s64) le16_to_cpu(old_s->sectors)); local
[all...]
H A Dfs-io-buffered.c182 unsigned bytes, sectors, offset_into_extent; local
203 sectors = k.k->size - offset_into_extent;
214 sectors = min(sectors, k.k->size - offset_into_extent);
217 ret = readpage_bio_extend(trans, readpages_iter, &rbio->bio, sectors,
223 bytes = min(sectors, bio_sectors(&rbio->bio)) << 9;
435 * racing with fallocate can cause us to add fewer sectors than
436 * expected - but we shouldn't add more sectors than expected:
591 unsigned sectors = 0, dirty_sectors = 0, reserved_sectors = 0; local
601 while (offset + sectors < f_sector
[all...]
H A Dextent_update.c68 unsigned sectors = bpos_min(*end, p.k->p).offset - local
76 if (bkey_ge(bkey_start_pos(r_k.k), POS(0, idx + sectors)))
H A Dbackpointers.h124 s64 sectors = level ? btree_sectors(c) : k.k->size; local
134 .bucket_len = ptr_disk_sectors(sectors, p),
/linux-master/drivers/scsi/
H A Dps3rom.c161 u32 sectors)
165 dev_dbg(&dev->sbd.core, "%s:%u: read %u sectors starting at %u\n",
166 __func__, __LINE__, sectors, start_sector);
170 sectors, 0, dev->bounce_lpar, &dev->tag);
182 u32 sectors)
186 dev_dbg(&dev->sbd.core, "%s:%u: write %u sectors starting at %u\n",
187 __func__, __LINE__, sectors, start_sector);
193 sectors, 0, dev->bounce_lpar, &dev->tag);
159 ps3rom_read_request(struct ps3_storage_device *dev, struct scsi_cmnd *cmd, u32 start_sector, u32 sectors) argument
180 ps3rom_write_request(struct ps3_storage_device *dev, struct scsi_cmnd *cmd, u32 start_sector, u32 sectors) argument
/linux-master/block/partitions/
H A Dibm.c41 return cyl * geo->heads * geo->sectors +
42 head * geo->sectors;
59 return cyl * geo->heads * geo->sectors +
60 head * geo->sectors +
212 offset + geo->sectors;
257 * geo->sectors * secperblk;
/linux-master/drivers/mtd/nand/
H A Decc-mtk.c66 u32 sectors; member in struct:mtk_ecc
150 if (dec & ecc->sectors) {
156 ecc->sectors = 0;
213 if (config->sectors)
214 ecc->sectors = 1 << (config->sectors - 1);
221 int sectors)
229 for (i = 0; i < sectors; i++) {
220 mtk_ecc_get_stats(struct mtk_ecc *ecc, struct mtk_ecc_stats *stats, int sectors) argument
/linux-master/drivers/ps3/
H A Dps3stor_lib.c258 * @sectors: Number of sectors to read/write
265 u64 start_sector, u64 sectors, int write)
271 dev_dbg(&dev->sbd.core, "%s:%u: %s %llu sectors starting at %llu\n",
272 __func__, __LINE__, op, sectors, start_sector);
276 start_sector, sectors, 0, lpar,
279 start_sector, sectors, 0, lpar,
264 ps3stor_read_write_sectors(struct ps3_storage_device *dev, u64 lpar, u64 start_sector, u64 sectors, int write) argument
/linux-master/include/linux/
H A Dpart_stat.h10 unsigned long sectors[NR_STAT_GROUPS]; member in struct:disk_stats

Completed in 221 milliseconds

123456789