Home
last modified time | relevance | path

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

12345678910>>...14

/openbmc/openbmc/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 …]
/openbmc/linux/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 <underlying 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.rst68 dm-integrity won't read of write these sectors
77 not used and data sectors and integrity tags are written
106 The number of interleaved sectors. This values is rounded down to
115 The number of sectors in one metadata buffer. The value is rounded
178 512-byte sectors that corresponds to one bitmap bit.
197 copy sectors from one journal section to another journal section
201 key and also to disallow the attacker to move sectors from one
219 256 sectors of metadata per data area. With the default buffer_sectors of
226 2. provided data sectors - that is the number of sectors that the user
233 * reserved sectors
[all …]
/openbmc/linux/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()
279 unsigned int sectors = sbc_get_write_same_sectors(cmd); in sbc_setup_write_same() local
288 if (sectors > cmd->se_dev->dev_attrib.max_write_same_len) { in sbc_setup_write_same()
290 sectors, cmd->se_dev->dev_attrib.max_write_same_len); in sbc_setup_write_same()
296 if (((cmd->t_task_lba + sectors) < cmd->t_task_lba) || in sbc_setup_write_same()
297 ((cmd->t_task_lba + sectors) > end_lba)) { in sbc_setup_write_same()
299 (unsigned long long)end_lba, cmd->t_task_lba, sectors); in sbc_setup_write_same()
333 ret = sbc_check_prot(dev, cmd, flags >> 5, sectors, true); in sbc_setup_write_same()
668 u32 sectors, bool is_write) in sbc_check_prot() argument
[all …]
/openbmc/linux/drivers/md/
H A Draid0.c66 sector_t curr_zone_end, sectors; in create_strip_zones() local
83 sectors = rdev1->sectors; in create_strip_zones()
84 sector_div(sectors, mddev->chunk_sectors); in create_strip_zones()
85 rdev1->sectors = sectors * mddev->chunk_sectors; in create_strip_zones()
95 (unsigned long long)rdev1->sectors, in create_strip_zones()
97 (unsigned long long)rdev2->sectors); in create_strip_zones()
103 if (rdev2->sectors == rdev1->sectors) { in create_strip_zones()
194 if (!smallest || (rdev1->sectors < smallest->sectors)) in create_strip_zones()
204 zone->zone_end = smallest->sectors * cnt; in create_strip_zones()
217 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()
78 sector_t sectors; in linear_conf() local
88 sectors = rdev->sectors; in linear_conf()
89 sector_div(sectors, mddev->chunk_sectors); in linear_conf()
90 rdev->sectors = sectors * mddev->chunk_sectors; in linear_conf()
96 conf->array_sectors += rdev->sectors; in linear_conf()
108 conf->disks[0].end_sector = conf->disks[0].rdev->sectors; in linear_conf()
113 conf->disks[i].rdev->sectors; in linear_conf()
218 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()
342 r1_bio->sector + (r1_bio->sectors); in update_head_pos()
453 sector_t hi = r1_bio->sector + r1_bio->sectors; in raid1_end_write_request()
513 if (is_badblock(rdev, r1_bio->sector, r1_bio->sectors, in raid1_end_write_request()
561 sector_t sectors) in align_to_barrier_unit_end() argument
565 WARN_ON(sectors == 0); in align_to_barrier_unit_end()
573 if (len > sectors) in align_to_barrier_unit_end()
574 len = sectors; in align_to_barrier_unit_end()
596 int sectors; in read_balance() local
614 sectors = r1_bio->sectors; in read_balance()
[all …]
H A Draid10.c346 r10_bio->devs[slot].addr + (r10_bio->sectors); in update_head_pos()
532 r10_bio->sectors, in raid10_end_write_request()
729 int sectors = r10_bio->sectors; in read_balance() local
756 && (this_sector + sectors >= conf->next_resync)) || in read_balance()
759 this_sector + sectors))) in read_balance()
774 r10_bio->devs[slot].addr + sectors > in read_balance()
788 r10_bio->devs[slot].addr + sectors > rdev->recovery_offset) in read_balance()
792 if (is_badblock(rdev, dev_sector, sectors, in read_balance()
803 if (!do_balance && sectors > bad_sectors) in read_balance()
804 sectors = bad_sectors; in read_balance()
[all …]
/openbmc/linux/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()
162 int badblocks_set(struct badblocks *bb, sector_t s, int sectors, in badblocks_set() argument
176 sector_t next = s + sectors; in badblocks_set()
181 sectors = next - s; in badblocks_set()
212 if (s == a && s + sectors >= e) in badblocks_set()
218 if (e < s + sectors) in badblocks_set()
219 e = s + sectors; in badblocks_set()
231 sectors = e - s; in badblocks_set()
234 if (sectors && hi < bb->count) { in badblocks_set()
[all …]
/openbmc/u-boot/common/
H A Davb_verify.c261 lbaint_t sectors, in mmc_read_and_flush() argument
273 if ((start + sectors) > (part->info.start + part->info.size)) { in mmc_read_and_flush()
274 sectors = part->info.start + part->info.size - start; in mmc_read_and_flush()
276 __func__, sectors); in mmc_read_and_flush()
288 if (sectors > buf_size / part->info.blksz) in mmc_read_and_flush()
289 sectors = buf_size / part->info.blksz; in mmc_read_and_flush()
295 start, sectors, tmp_buf); in mmc_read_and_flush()
297 flush_cache((ulong)tmp_buf, sectors * part->info.blksz); in mmc_read_and_flush()
300 memcpy(buffer, tmp_buf, sectors * part->info.blksz); in mmc_read_and_flush()
306 lbaint_t sectors, void *buffer) in mmc_write() argument
[all …]
/openbmc/linux/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
/openbmc/openbmc/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,
/openbmc/qemu/hw/block/
H A Dhd-geometry.c59 int i, heads, sectors, cylinders; in guess_disk_lchs() local
80 sectors = p->end_sector & 63; in guess_disk_lchs()
81 if (sectors == 0) { in guess_disk_lchs()
84 cylinders = nb_sectors / (heads * sectors); in guess_disk_lchs()
89 *psectors = sectors; in guess_disk_lchs()
91 trace_hd_geometry_lchs_guess(blk, cylinders, heads, sectors); in guess_disk_lchs()
128 *psecs = geo.sectors; in hd_geometry_guess()
/openbmc/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
/openbmc/linux/drivers/scsi/
H A Dscsicam.c179 unsigned long heads, sectors, cylinders, temp; in setsize() local
182 sectors = 62L; /* Maximize sectors per track */ in setsize()
184 temp = cylinders * sectors; /* Compute divisor for heads */ in setsize()
189 sectors = capacity / temp; /* Compute value for sectors per in setsize()
192 sectors++; /* Else, increment number of sectors */ in setsize()
193 temp = heads * sectors; /* Compute divisor for cylinders */ in setsize()
201 *secs = (unsigned int) sectors; in setsize()
/openbmc/linux/include/linux/
H A Dblk-integrity.h91 unsigned int sectors) in bio_integrity_intervals() argument
93 return sectors >> (bi->interval_exp - 9); in bio_integrity_intervals()
97 unsigned int sectors) in bio_integrity_bytes() argument
99 return bio_integrity_intervals(bi, sectors) * bi->tuple_size; in bio_integrity_bytes()
163 unsigned int sectors) in bio_integrity_intervals() argument
169 unsigned int sectors) in bio_integrity_bytes() argument
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);
/openbmc/linux/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()
/openbmc/linux/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()
420 info->sectors = ((u32)(reply[117]) << 24) | in datafab_id_device()
582 info->sectors, info->ssize); in datafab_transport()
586 ((__be32 *) ptr)[0] = cpu_to_be32(info->sectors - 1); in datafab_transport()
/openbmc/qemu/docs/interop/
H A Dparallels.rst30 Currently, the default size is 1MiB (2048 sectors). In previous
31 versions, cluster sizes of 63 sectors, 256 and 252 kilobytes were used.
57 Cluster size, in sectors.
63 Disk size, in sectors.
83 An offset, in sectors, from the start of the file to the start of
105 Format Extension offset, an offset, in sectors, from the start of
120 images and in sectors for ``WithoutFreeSpace`` images.
206 The bitmap size, should be equal to disk size in sectors.
212 Bitmap granularity, in sectors. I.e., the number of sectors
237 offset (in 512b sectors). Given an offset in bytes into the bitmap data the
/openbmc/qemu/block/
H A Ddmg.c251 s->sectors = g_realloc(s->sectors, new_size); in dmg_read_mish_block()
283 s->sectors[i] = buff_read_uint64(buffer, offset + 8); in dmg_read_mish_block()
284 s->sectors[i] += out_offset; in dmg_read_mish_block()
488 s->offsets = s->lengths = s->sectors = s->sectorcounts = NULL; in dmg_open()
586 g_free(s->sectors); in dmg_open()
601 if (chunk_num >= s->n_chunks || s->sectors[chunk_num] > sector_num || in is_sector_in_chunk()
602 s->sectors[chunk_num] + s->sectorcounts[chunk_num] <= sector_num) { in is_sector_in_chunk()
615 if (s->sectors[chunk3] > sector_num) { in search_chunk()
620 } else if (s->sectors[chunk3] + s->sectorcounts[chunk3] > sector_num) { in search_chunk()
758 sector_offset_in_chunk = sector_num + i - s->sectors[s->current_chunk]; in dmg_co_preadv()
[all …]
/openbmc/linux/Documentation/ABI/testing/
H A Dprocfs-diskstats15 6 sectors read
19 10 sectors written
32 17 sectors discarded
/openbmc/openbmc/meta-fii/meta-mori/recipes-bsp/u-boot/u-boot-fw-utils-nuvoton/
H A Dfw_env.config4 # Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.
9 # MTD device name Device offset Env. size Flash sector size Number of sectors
13 # MTD device name Device offset Env. size Flash sector size Number of sectors
/openbmc/openbmc/meta-fii/meta-kudo/recipes-bsp/u-boot/u-boot-fw-utils-nuvoton/
H A Dfw_env.config4 # Notice, that the "Number of sectors" is not required on NOR and SPI-dataflash.
9 # MTD device name Device offset Env. size Flash sector size Number of sectors
13 # MTD device name Device offset Env. size Flash sector size Number of sectors

12345678910>>...14