Home
last modified time | relevance | path

Searched refs:sectors (Results 1 – 25 of 305) sorted by relevance

12345678910>>...13

/OK3568_Linux_fs/yocto/meta-openembedded/meta-multimedia/recipes-multimedia/cdparanoia/files/
H A D0002-interface-remove-C-reserved-keyword.patch79 return(sectors);
405 @@ -817,7 +817,7 @@ static int i_read_28 (cdrom_drive *d, void *p, long begin, long sectors, unsigne
406 cmd[8] = sectors;
407 if((ret=handle_scsi_cmd(d,cmd,10,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
409 - if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
410 + if(p)memcpy(p,d->priv->sg_buffer,sectors*CD_FRAMESIZE_RAW);
414 @@ -836,7 +836,7 @@ static int i_read_A8 (cdrom_drive *d, void *p, long begin, long sectors, unsigne
415 cmd[9] = sectors;
416 if((ret=handle_scsi_cmd(d,cmd,12,0,sectors * CD_FRAMESIZE_RAW,'\177',1,sense)))
418 - if(p)memcpy(p,d->private->sg_buffer,sectors*CD_FRAMESIZE_RAW);
[all …]
/OK3568_Linux_fs/kernel/Documentation/admin-guide/device-mapper/
H A Ddm-ebs.rst8 size. Its main purpose is to provide emulation of 512 byte sectors on
18 <dev path> <offset> <emulated sectors> [<underlying sectors>]
27 has to be a multiple of <emulated sectors>.
28 <emulated sectors>:
29 Number of sectors defining the logical block size to be emulated;
30 1, 2, 4, 8 sectors of 512 bytes supported.
34 <underyling sectors>:
35 Number of sectors defining the logical block size of <dev path>.
36 2^N supported, e.g. 8 = emulate 8 sectors of 512 bytes = 4KiB.
43 offset 1024 sectors with underlying devices block size automatically set:
[all …]
H A Ddm-integrity.rst59 dm-integrity won't read of write these sectors
68 not used and data sectors and integrity tags are written
97 The number of interleaved sectors. This values is rounded down to
106 The number of sectors in one buffer. The value is rounded down to
174 512-byte sectors that corresponds to one bitmap bit.
205 2. provided data sectors - that is the number of sectors that the user
212 * reserved sectors
220 * log2(interleave sectors)
223 * provided data sectors - the number of sectors that this target
226 bios that access data beyond the "provided data sectors" limit.
[all …]
/OK3568_Linux_fs/kernel/drivers/target/
H A Dtarget_core_sbc.c216 static inline u32 sbc_get_size(struct se_cmd *cmd, u32 sectors) in sbc_get_size() argument
218 return cmd->se_dev->dev_attrib.block_size * sectors; in sbc_get_size()
286 unsigned int sectors = sbc_get_write_same_sectors(cmd); in sbc_setup_write_same() local
295 if (sectors > cmd->se_dev->dev_attrib.max_write_same_len) { in sbc_setup_write_same()
297 sectors, cmd->se_dev->dev_attrib.max_write_same_len); in sbc_setup_write_same()
303 if (((cmd->t_task_lba + sectors) < cmd->t_task_lba) || in sbc_setup_write_same()
304 ((cmd->t_task_lba + sectors) > end_lba)) { in sbc_setup_write_same()
306 (unsigned long long)end_lba, cmd->t_task_lba, sectors); in sbc_setup_write_same()
334 ret = sbc_check_prot(dev, cmd, flags >> 5, sectors, true); in sbc_setup_write_same()
690 u32 sectors, bool is_write) in sbc_check_prot() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/md/
H A Draid0.c68 sector_t curr_zone_end, sectors; in create_strip_zones() local
87 sectors = rdev1->sectors; in create_strip_zones()
88 sector_div(sectors, mddev->chunk_sectors); in create_strip_zones()
89 rdev1->sectors = sectors * mddev->chunk_sectors; in create_strip_zones()
99 (unsigned long long)rdev1->sectors, in create_strip_zones()
101 (unsigned long long)rdev2->sectors); in create_strip_zones()
107 if (rdev2->sectors == rdev1->sectors) { in create_strip_zones()
198 if (!smallest || (rdev1->sectors < smallest->sectors)) in create_strip_zones()
208 zone->zone_end = smallest->sectors * cnt; in create_strip_zones()
221 zone->dev_start = smallest->sectors; in create_strip_zones()
[all …]
H A Dmd-linear.c49 static sector_t linear_size(struct mddev *mddev, sector_t sectors, int raid_disks) in linear_size() argument
55 WARN_ONCE(sectors || raid_disks, in linear_size()
79 sector_t sectors; in linear_conf() local
89 sectors = rdev->sectors; in linear_conf()
90 sector_div(sectors, mddev->chunk_sectors); in linear_conf()
91 rdev->sectors = sectors * mddev->chunk_sectors; in linear_conf()
97 conf->array_sectors += rdev->sectors; in linear_conf()
117 conf->disks[0].end_sector = conf->disks[0].rdev->sectors; in linear_conf()
122 conf->disks[i].rdev->sectors; in linear_conf()
229 start_sector = tmp_dev->end_sector - tmp_dev->rdev->sectors; in linear_make_request()
[all …]
H A Draid1.c65 sector_t hi = lo + r1_bio->sectors; in check_and_add_serial()
337 r1_bio->sector + (r1_bio->sectors); in update_head_pos()
420 r1_bio->sectors, in close_write()
452 sector_t hi = r1_bio->sector + r1_bio->sectors; in raid1_end_write_request()
514 if (is_badblock(rdev, r1_bio->sector, r1_bio->sectors, in raid1_end_write_request()
562 sector_t sectors) in align_to_barrier_unit_end() argument
566 WARN_ON(sectors == 0); in align_to_barrier_unit_end()
574 if (len > sectors) in align_to_barrier_unit_end()
575 len = sectors; in align_to_barrier_unit_end()
597 int sectors; in read_balance() local
[all …]
H A Draid10.c318 r10_bio->devs[slot].addr + (r10_bio->sectors); in update_head_pos()
406 r10_bio->sectors, in close_write()
512 r10_bio->sectors, in raid10_end_write_request()
709 int sectors = r10_bio->sectors; in read_balance() local
736 && (this_sector + sectors >= conf->next_resync)) || in read_balance()
739 this_sector + sectors))) in read_balance()
754 r10_bio->devs[slot].addr + sectors > rdev->recovery_offset) in read_balance()
760 r10_bio->devs[slot].addr + sectors > rdev->recovery_offset) in read_balance()
764 if (is_badblock(rdev, dev_sector, sectors, in read_balance()
775 if (!do_balance && sectors > bad_sectors) in read_balance()
[all …]
/OK3568_Linux_fs/kernel/block/
H A Dbadblocks.c53 int badblocks_check(struct badblocks *bb, sector_t s, int sectors, in badblocks_check() argument
60 sector_t target = s + sectors; in badblocks_check()
68 sectors = target - s; in badblocks_check()
163 int badblocks_set(struct badblocks *bb, sector_t s, int sectors, in badblocks_set() argument
177 sector_t next = s + sectors; in badblocks_set()
182 sectors = next - s; in badblocks_set()
213 if (s == a && s + sectors >= e) in badblocks_set()
219 if (e < s + sectors) in badblocks_set()
220 e = s + sectors; in badblocks_set()
232 sectors = e - s; in badblocks_set()
[all …]
/OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/syslinux/syslinux/
H A D0008-libinstaller-syslinuxext-implement-syslinux_patch_bo.patch151 - geo->sectors = fd_str.sect;
165 - /* Didn't work either... assign a geometry of 64 heads, 32 sectors; this is
170 - geo->sectors = opt.sectors ? : 32;
171 - geo->cylinders = totalbytes / (geo->heads * geo->sectors << SECTOR_SHIFT);
174 - if (!opt.sectors && !opt.heads) {
176 - "Warning: unable to obtain device geometry (defaulting to %d heads, %d sectors)\n"
178 - geo->heads, geo->sectors);
219 - if (opt.sectors)
220 - geo.sectors = opt.sectors;
225 - dprintf("heads = %u, sect = %u\n", geo.heads, geo.sectors);
[all …]
H A D0006-linux-syslinux-implement-write_to_ext-and-add-syslin.patch89 + sector_t *sectors, int nsect)
104 + sector_t *sectors;
187 + nsect += 2; /* Two sectors for the ADV */
188 + sectors = alloca(sizeof(sector_t) * nsect);
189 + memset(sectors, 0, nsect * sizeof *sectors);
190 + /* The sectors will be modified and used by syslinux_patch() */
191 + retval = ext_construct_sectmap_fs(e2fs, newino, sectors, nsect);
196 + modbytes = syslinux_patch(sectors, nsect, opt.stupid_mode,
/OK3568_Linux_fs/kernel/Documentation/block/
H A Dstat.rst31 read sectors sectors number of sectors read
35 write sectors sectors number of sectors written
42 discard sectors sectors number of sectors discarded
67 read sectors, write sectors, discard_sectors
70 These values count the number of sectors read from, written to, or
71 discarded from this block device. The "sectors" in question are the
72 standard UNIX 512-byte sectors, not any device- or filesystem-specific
/OK3568_Linux_fs/u-boot/board/keymile/km83xx/
H A DREADME.kmeter167 Un-Protected 5 sectors
70 Erased 5 sectors
73 Protected 5 sectors
77 Un-Protected 1 sectors
79 Un-Protected 1 sectors
82 Erased 1 sectors
85 Protected 1 sectors
87 Protected 1 sectors
/OK3568_Linux_fs/kernel/drivers/scsi/
H A Dscsicam.c180 unsigned long heads, sectors, cylinders, temp; in setsize() local
183 sectors = 62L; /* Maximize sectors per track */ in setsize()
185 temp = cylinders * sectors; /* Compute divisor for heads */ in setsize()
190 sectors = capacity / temp; /* Compute value for sectors per in setsize()
193 sectors++; /* Else, increment number of sectors */ in setsize()
194 temp = heads * sectors; /* Compute divisor for cylinders */ in setsize()
202 *secs = (unsigned int) sectors; in setsize()
/OK3568_Linux_fs/device/rockchip/common/scripts/
H A Dmk-dm.sh50 sectors=$(ls -l "$INPUT" | awk '{printf $5}')
51sectors=$[(sectors + (21 * 1024 * 1024) - 1) / 512] # remain 20M for partition info / unit: 512 by…
55 dd if=/dev/null of="$ROOTFS" seek=$sectors bs=512
57 …sudo -S dmsetup create $mappername --table "0 $sectors crypt $cipher $key 0 $loopdevice 0 1 allow_…
63 echo "sectors=$sectors" > "$TEMPDIR/enc.info"
/OK3568_Linux_fs/kernel/drivers/mtd/
H A Dssfdc.c23 unsigned char sectors; member
318 ssfdc->sectors = 32; in ssfdcr_add_mtd()
319 get_chs(mtd->size, NULL, &ssfdc->heads, &ssfdc->sectors); in ssfdcr_add_mtd()
321 ((long)ssfdc->sectors * (long)ssfdc->heads)); in ssfdcr_add_mtd()
324 ssfdc->cylinders, ssfdc->heads , ssfdc->sectors, in ssfdcr_add_mtd()
326 (long)ssfdc->sectors); in ssfdcr_add_mtd()
329 (long)ssfdc->sectors; in ssfdcr_add_mtd()
411 ssfdc->cylinders, ssfdc->heads, ssfdc->sectors); in ssfdcr_getgeo()
414 geo->sectors = ssfdc->sectors; in ssfdcr_getgeo()
/OK3568_Linux_fs/kernel/drivers/mtd/spi-nor/
H A DKconfig14 bool "Use small 4096 B erase sectors"
17 Many flash memories support erasing small (4096 B) sectors. Depending
21 small sectors. On the other hand erasing should be faster when using
22 64 KiB block instead of 16 × 4 KiB sectors.
/OK3568_Linux_fs/kernel/drivers/usb/storage/
H A Ddatafab.c60 unsigned long sectors; /* total sector count */ member
138 u32 sectors) in datafab_read_data() argument
153 if (sectors > 0x0FFFFFFF) in datafab_read_data()
162 totallen = sectors * info->ssize; in datafab_read_data()
221 u32 sectors) in datafab_write_data() argument
237 if (sectors > 0x0FFFFFFF) in datafab_write_data()
246 totallen = sectors * info->ssize; in datafab_write_data()
421 info->sectors = ((u32)(reply[117]) << 24) | in datafab_id_device()
583 info->sectors, info->ssize); in datafab_transport()
587 ((__be32 *) ptr)[0] = cpu_to_be32(info->sectors - 1); in datafab_transport()
H A Djumpshot.c96 unsigned long sectors; /* total sector count */ member
156 u32 sectors) in jumpshot_read_data() argument
174 totallen = sectors * info->ssize; in jumpshot_read_data()
233 u32 sectors) in jumpshot_write_data() argument
251 totallen = sectors * info->ssize; in jumpshot_write_data()
354 info->sectors = ((u32)(reply[117]) << 24) | in jumpshot_id_device()
513 info->sectors, info->ssize); in jumpshot_transport()
517 ((__be32 *) ptr)[0] = cpu_to_be32(info->sectors - 1); in jumpshot_transport()
H A Dsddr55.c190 unsigned short sectors) { in sddr55_read_data() argument
209 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> in sddr55_read_data()
217 while (sectors>0) { in sddr55_read_data()
227 pages = min((unsigned int) sectors << info->smallpageshift, in sddr55_read_data()
295 sectors -= pages >> info->smallpageshift; in sddr55_read_data()
309 unsigned short sectors) { in sddr55_write_data() argument
336 len = min((unsigned int) sectors, (unsigned int) info->blocksize >> in sddr55_write_data()
344 while (sectors > 0) { in sddr55_write_data()
354 pages = min((unsigned int) sectors << info->smallpageshift, in sddr55_write_data()
503 sectors -= pages >> info->smallpageshift; in sddr55_write_data()
/OK3568_Linux_fs/kernel/drivers/rk_nand/
H A Drk_ftl_api.h17 int FtlRead(u8 lun, u32 index, u32 sectors, u8 *buf);
18 int FtlWrite(u8 lun, u32 index, u32 sectors, u8 *buf);
21 int FtlDiscard(u32 index, u32 sectors);
/OK3568_Linux_fs/kernel/drivers/md/bcache/
H A Dalloc.c86 void bch_rescale_priorities(struct cache_set *c, int sectors) in bch_rescale_priorities() argument
93 atomic_sub(sectors, &c->rescale); in bch_rescale_priorities()
609 unsigned int sectors, in bch_alloc_sectors() argument
657 sectors = min(sectors, b->sectors_free); in bch_alloc_sectors()
659 SET_KEY_OFFSET(k, KEY_OFFSET(k) + sectors); in bch_alloc_sectors()
660 SET_KEY_SIZE(k, sectors); in bch_alloc_sectors()
671 b->sectors_free -= sectors; in bch_alloc_sectors()
674 SET_PTR_OFFSET(&b->key, i, PTR_OFFSET(&b->key, i) + sectors); in bch_alloc_sectors()
676 atomic_long_add(sectors, in bch_alloc_sectors()
/OK3568_Linux_fs/kernel/fs/hfsplus/
H A Dbtree.c76 u64 sectors, int file_id) in hfsplus_calc_btree_clump_size() argument
100 if (sectors < 0x200000) { in hfsplus_calc_btree_clump_size()
101 clump_size = sectors << 2; /* 0.8 % */ in hfsplus_calc_btree_clump_size()
106 for (i = 0, sectors = sectors >> 22; in hfsplus_calc_btree_clump_size()
107 sectors && (i < CLUMP_ENTRIES - 1); in hfsplus_calc_btree_clump_size()
108 ++i, sectors = sectors >> 1) { in hfsplus_calc_btree_clump_size()
/OK3568_Linux_fs/kernel/include/linux/
H A Dbadblocks.h44 int badblocks_check(struct badblocks *bb, sector_t s, int sectors,
46 int badblocks_set(struct badblocks *bb, sector_t s, int sectors,
48 int badblocks_clear(struct badblocks *bb, sector_t s, int sectors);
/OK3568_Linux_fs/kernel/Documentation/ABI/testing/
H A Dprocfs-diskstats15 6 sectors read
19 10 sectors written
32 17 sectors discarded

12345678910>>...13