/openbmc/linux/drivers/block/drbd/ |
H A D | drbd_interval.c | 16 #define NODE_END(node) ((node)->sector + ((node)->size >> 9)) 28 sector_t this_end = this->sector + (this->size >> 9); in drbd_insert_interval() 39 if (this->sector < here->sector) in drbd_insert_interval() 41 else if (this->sector > here->sector) in drbd_insert_interval() 60 * @sector: start sector of @interval 63 * Returns if the tree contains the node @interval with start sector @start. 66 * sector number. 69 drbd_contains_interval(struct rb_root *root, sector_t sector, in drbd_contains_interval() argument 78 if (sector < here->sector) in drbd_contains_interval() 80 else if (sector > here->sector) in drbd_contains_interval() [all …]
|
/openbmc/linux/block/ |
H A D | blk-lib.c | 13 static sector_t bio_discard_limit(struct block_device *bdev, sector_t sector) in bio_discard_limit() argument 19 sector += bdev->bd_start_sect; in bio_discard_limit() 22 round_up(sector, discard_granularity >> SECTOR_SHIFT); in bio_discard_limit() 28 if (granularity_aligned_sector != sector) in bio_discard_limit() 29 return granularity_aligned_sector - sector; in bio_discard_limit() 38 int __blkdev_issue_discard(struct block_device *bdev, sector_t sector, in __blkdev_issue_discard() argument 57 if ((sector | nr_sects) & bs_mask) in __blkdev_issue_discard() 65 min(nr_sects, bio_discard_limit(bdev, sector)); in __blkdev_issue_discard() 68 bio->bi_iter.bi_sector = sector; in __blkdev_issue_discard() 70 sector += req_sects; in __blkdev_issue_discard() [all …]
|
H A D | blk-zoned.c | 122 * @sector: Sector from which to report zones 128 * Get zone information starting from the zone containing @sector for at most 130 * To report all zones in a device starting from @sector, the BLK_ALL_ZONES 138 int blkdev_report_zones(struct block_device *bdev, sector_t sector, in blkdev_report_zones() argument 147 if (!nr_zones || sector >= capacity) in blkdev_report_zones() 150 return disk->fops->report_zones(disk, sector, nr_zones, cb, data); in blkdev_report_zones() 188 sector_t sector = 0; in blkdev_zone_reset_all_emulated() local 201 while (sector < capacity) { in blkdev_zone_reset_all_emulated() 202 if (!test_bit(disk_zone_no(disk, sector), need_reset)) { in blkdev_zone_reset_all_emulated() 203 sector += zone_sectors; in blkdev_zone_reset_all_emulated() [all …]
|
H A D | blk-ia-ranges.c | 18 return sprintf(buf, "%llu\n", iar->sector); in blk_ia_range_sector_show() 34 .attr = { .name = "sector", .mode = 0444 }, 121 * At this point, iars is the new set of sector access ranges that needs in disk_register_independent_access_ranges() 178 sector_t sector) in disk_find_ia_range() argument 185 if (sector >= iar->sector && in disk_find_ia_range() 186 sector < iar->sector + iar->nr_sectors) in disk_find_ia_range() 198 sector_t sector = 0; in disk_check_ia_ranges() local 206 * ranges do not overlap, that there are no sector holes and that all in disk_check_ia_ranges() 210 tmp = disk_find_ia_range(iars, sector); in disk_check_ia_ranges() 211 if (!tmp || tmp->sector != sector) { in disk_check_ia_ranges() [all …]
|
/openbmc/openbmc/poky/meta/recipes-core/util-linux/util-linux/ |
H A D | libfdisk-cfdisk-and-sfdisk-sector-size-improvements.patch | 4 Subject: [PATCH 1/4] libfdisk: make sure libblkid uses the same sector size 7 makes sense for both libraries to share the logical sector size 12 on sector size (with the exception of some RAIDs). Additionally, 14 independently of the current device's sector size setting. 50 Subject: [PATCH 2/4] fdisk: (man) improve --sector-size description 64 *-b*, *--sector-size* _sectorsize_:: 65 …sector size of the disk. Valid values are 512, 1024, 2048, and 4096. (Recent kernels know the sect… 66 …sector size of the disk. Valid values are 512, 1024, 2048, and 4096. The kernel is aware of the se… 69 …Don't erase the beginning of the first disk sector when creating a new disk label. This feature is… 74 Subject: [PATCH 3/4] cfdisk: add --sector-size commanand line option [all …]
|
/openbmc/linux/include/uapi/linux/ |
H A D | blkzoned.h | 88 * @start: Zone start in 512 B sector units 89 * @len: Zone length in 512 B sector units 90 * @wp: Zone write pointer location in 512 B sector units 97 * @capacity: Zone usable capacity in 512 B sector units 101 * start, len, capacity and wp use the regular 512 B sector unit, regardless 107 __u64 start; /* Zone start sector */ 122 * @sector: starting sector of report 130 __u64 sector; member 140 * @sector: Starting sector of the first zone to operate on. 144 __u64 sector; member [all …]
|
/openbmc/u-boot/fs/ |
H A D | fs_internal.c | 14 lbaint_t sector, int byte_offset, int byte_len, char *buf) in fs_devread() argument 26 if ((sector + ((byte_offset + byte_len - 1) >> log2blksz)) in fs_devread() 29 sector); in fs_devread() 34 sector += byte_offset >> log2blksz; in fs_devread() 37 debug(" <" LBAFU ", %d, %d>\n", sector, byte_offset, byte_len); in fs_devread() 41 /* read first part which isn't aligned with start of sector */ in fs_devread() 42 if (blk_dread(blk, partition->start + sector, 1, in fs_devread() 52 sector++; in fs_devread() 58 /* read sector aligned part */ in fs_devread() 65 blk_dread(blk, partition->start + sector, 1, in fs_devread() [all …]
|
/openbmc/linux/drivers/block/ |
H A D | brd.c | 50 * Look up and return a brd's page for a given sector. 52 static struct page *brd_lookup_page(struct brd_device *brd, sector_t sector) in brd_lookup_page() argument 57 idx = sector >> PAGE_SECTORS_SHIFT; /* sector to page index */ in brd_lookup_page() 66 * Insert a new page for a given sector, if one does not already exist. 68 static int brd_insert_page(struct brd_device *brd, sector_t sector, gfp_t gfp) in brd_insert_page() argument 74 page = brd_lookup_page(brd, sector); in brd_insert_page() 84 idx = sector >> PAGE_SECTORS_SHIFT; in brd_insert_page() 123 static int copy_to_brd_setup(struct brd_device *brd, sector_t sector, size_t n, in copy_to_brd_setup() argument 126 unsigned int offset = (sector & (PAGE_SECTORS-1)) << SECTOR_SHIFT; in copy_to_brd_setup() 131 ret = brd_insert_page(brd, sector, gfp); in copy_to_brd_setup() [all …]
|
/openbmc/u-boot/tools/ |
H A D | rkspi.c | 22 int sector; in rkspi_set_header() local 40 for (sector = size / RKSPI_SECT_LEN - 1; sector >= 0; sector--) { in rkspi_set_header() 41 debug("sector %u\n", sector); in rkspi_set_header() 42 memmove(buf + sector * RKSPI_SECT_LEN * 2, in rkspi_set_header() 43 buf + sector * RKSPI_SECT_LEN, in rkspi_set_header() 45 memset(buf + sector * RKSPI_SECT_LEN * 2 + RKSPI_SECT_LEN, in rkspi_set_header() 59 * The SPI payload needs to be padded out to make space for odd half-sector 60 * layout used in flash (i.e. only the first 2K of each 4K sector is used). 82 * 4K sector again) will will double the image size. in rkspi_vrec_header()
|
/openbmc/u-boot/board/imgtec/malta/ |
H A D | flash-malta-boot.tcl | 22 flash erase sector 0xbe000000; 23 flash erase sector 0xbe020000; 24 flash erase sector 0xbe040000; 25 flash erase sector 0xbe060000; 26 flash erase sector 0xbe080000; 27 flash erase sector 0xbe0a0000; 28 flash erase sector 0xbe0c0000; 29 flash erase sector 0xbe0e0000;
|
/openbmc/linux/include/trace/events/ |
H A D | block.h | 24 __field( sector_t, sector ) 30 __entry->sector = bh->b_blocknr; 34 TP_printk("%d,%d sector=%llu size=%zu", 36 (unsigned long long)__entry->sector, __entry->size 83 __field( sector_t, sector ) 91 __entry->sector = blk_rq_trace_sector(rq); 101 (unsigned long long)__entry->sector, 113 __field( sector_t, sector ) 122 __entry->sector = blk_rq_pos(rq); 133 (unsigned long long)__entry->sector, [all …]
|
/openbmc/qemu/include/crypto/ |
H A D | ivgen.h | 30 * CBC. The principle is that each disk sector is assigned a unique 32 * sector. 43 * size_t sector = 0; 68 * if (qcrypto_ivgen_calculate(ivgen, sector, iv, niv, errp) < 0) { 75 * data + (sector * 512), 76 * data + (sector * 512), 80 * sector++; 118 * The IVs are generated by the 32-bit truncated sector 125 * The IVs are generated by the 64-bit sector number. 130 * The IVs are generated by encrypting the 64-bit sector [all …]
|
/openbmc/linux/fs/btrfs/ |
H A D | raid56.c | 59 * A bvec like structure to present a sector inside a page. 180 * Even if the sector is not covered by bio, if it is in cache_rbio_pages() 181 * a data sector it should still be uptodate as it is in cache_rbio_pages() 268 /* Also update the sector->uptodate bits. */ in steal_rbio_page() 283 * Thus if the first sector of the page belongs to data stripes, then in is_data_stripe_page() 603 /* Return a sector from rbio->stripe_sectors, not from the bio list */ 612 /* Grab a sector inside P stripe */ 619 /* Grab a sector inside Q stripe, return NULL if not RAID6 */ 860 * Get a sector pointer specified by its @stripe_nr and @sector_nr. 864 * @sector_nr: Sector number inside the stripe, [all …]
|
/openbmc/linux/drivers/block/null_blk/ |
H A D | zoned.c | 65 sector_t sector = 0; in null_init_zoned_dev() local 138 zone->start = sector; in null_init_zoned_dev() 145 sector += dev->zone_size_sects; in null_init_zoned_dev() 152 zone->start = zone->wp = sector; in null_init_zoned_dev() 162 sector += dev->zone_size_sects; in null_init_zoned_dev() 194 int null_report_zones(struct gendisk *disk, sector_t sector, in null_report_zones() argument 204 first_zone = null_zone_no(dev, sector); in null_report_zones() 242 sector_t sector, unsigned int len) in null_zone_valid_read_len() argument 245 struct nullb_zone *zone = &dev->zones[null_zone_no(dev, sector)]; in null_zone_valid_read_len() 250 sector + nr_sectors <= zone->wp) in null_zone_valid_read_len() [all …]
|
/openbmc/linux/fs/hpfs/ |
H A D | hpfs.h | 29 typedef u32 secno; /* sector number, partition relative */ 31 typedef secno dnode_secno; /* sector number of a dnode */ 32 typedef secno fnode_secno; /* sector number of an fnode */ 33 typedef secno anode_secno; /* sector number of an anode */ 37 /* sector 0 */ 71 /* sector 16 */ 96 __le32 dir_band_start; /* first sector in dir band */ 97 __le32 dir_band_end; /* last sector in dir band */ 105 /* sector 17 */ 120 u8 bad_sector: 1; /* bad sector, corrupted disk (???) */ [all …]
|
/openbmc/u-boot/test/py/tests/ |
H A D | test_mmc_rd.py | 21 'sector': 0x10, 29 'sector': 0x10, 37 'sector': 0x10, 45 'sector': 0, 54 'sector': 0x10, 77 sector = env__mmc_rd_config.get('sector', 0) 115 cmd = 'mmc read %s %x %x' % (addr, sector, count_sectors) 118 devid, sector, count_sectors, count_sectors)
|
/openbmc/qemu/tests/unit/ |
H A D | test-crypto-ivgen.c | 28 uint64_t sector; member 40 .sector = 0x1, 49 .sector = 0x1f2e3d4cULL, 58 .sector = 0x1f2e3d4c5b6a7988ULL, 67 .sector = 0x1, 76 .sector = 0x1f2e3d4cULL, 85 .sector = 0x1f2e3d4c5b6a7988ULL, 94 .sector = 0x1, 108 .sector = 0x1f2e3d4cULL, 122 .sector = 0x1f2e3d4c5b6a7988ULL, [all …]
|
/openbmc/qemu/hw/block/ |
H A D | trace-events | 19 pflash_erase_complete(const char *name) "%s: sector erase complete" 30 … *name, int width1, uint64_t start, int width2, uint64_t end) "%s: start sector erase at: 0x%0*" P… 52 …_zone_append_complete(void *vdev, void *req, int64_t sector, int ret) "vdev %p req %p, append sect… 53 …tio_blk_handle_write(void *vdev, void *req, uint64_t sector, size_t nsectors) "vdev %p req %p sect… 54 …rtio_blk_handle_read(void *vdev, void *req, uint64_t sector, size_t nsectors) "vdev %p req %p sect… 56 …handle_zone_report(void *vdev, void *req, int64_t sector, unsigned int nr_zones) "vdev %p req %p s… 57 …ne_mgmt(void *vdev, void *req, uint8_t op, int64_t sector, int64_t len) "vdev %p req %p op 0x%x se… 58 …k_handle_zone_reset_all(void *vdev, void *req, int64_t sector, int64_t len) "vdev %p req %p sector… 59 virtio_blk_handle_zone_append(void *vdev, void *req, int64_t sector) "vdev %p req %p, append sector…
|
/openbmc/linux/Documentation/admin-guide/device-mapper/ |
H A D | dm-integrity.rst | 6 per-sector tags that can be used for storing integrity information. 8 A general problem with storing integrity tags with every sector is that 9 writing the sector and the integrity tag must be atomic - i.e. in case of 10 crash, either both sector and integrity tag or none of them is written. 13 writes sector data and integrity tags into a journal, commits the journal 53 2. load the dm-integrity target with one-sector size, the kernel driver 67 2. the number of reserved sector at the beginning of the device - the 155 an attacker reading the journal could see the last sector numbers 156 that were written. From the sector numbers, the attacker can infer 161 Protect sector numbers in the journal from accidental or malicious [all …]
|
/openbmc/qemu/block/export/ |
H A D | virtio-blk-handler.c | 27 uint64_t sector, size_t size) in virtio_blk_sect_range_ok() argument 42 if ((sector << VIRTIO_BLK_SECTOR_BITS) % block_size) { in virtio_blk_sect_range_ok() 46 if (sector > total_sectors || nb_sectors > total_sectors - sector) { in virtio_blk_sect_range_ok() 59 uint64_t sector; in virtio_blk_discard_write_zeroes() local 76 sector = le64_to_cpu(desc.sector); in virtio_blk_discard_write_zeroes() 91 sector, bytes))) { in virtio_blk_discard_write_zeroes() 110 if (blk_co_pwrite_zeroes(blk, sector << VIRTIO_BLK_SECTOR_BITS, in virtio_blk_discard_write_zeroes() 123 if (blk_co_pdiscard(blk, sector << VIRTIO_BLK_SECTOR_BITS, in virtio_blk_discard_write_zeroes() 177 int64_t sector_num = le64_to_cpu(out.sector); in virtio_blk_process_req()
|
/openbmc/linux/drivers/scsi/ |
H A D | sr_vendor.c | 25 * Some XA-Sector tweaking, required for older drives. 90 is followed by a read for the same sector - aeb */ in sr_vendor_init() 174 unsigned long sector; in sr_cd_check() local 186 sector = 0; /* the multisession sector offset goes here */ in sr_cd_check() 212 sector = buffer[11] + (buffer[10] << 8) + in sr_cd_check() 215 /* ignore sector offsets from first track */ in sr_cd_check() 216 sector = 0; in sr_cd_check() 243 sector = min * CD_SECS * CD_FRAMES + sec * CD_FRAMES + frame; in sr_cd_check() 271 sector = min * CD_SECS * CD_FRAMES + sec * CD_FRAMES + frame; in sr_cd_check() 272 if (sector) in sr_cd_check() [all …]
|
/openbmc/u-boot/drivers/mtd/ |
H A D | cfi_flash.c | 568 static int flash_status_check(flash_info_t *info, flash_sect_t sector, in flash_status_check() argument 587 while (flash_is_busy(info, sector)) { in flash_status_check() 590 prompt, info->start[sector], in flash_status_check() 591 flash_read_long(info, sector, 0)); in flash_status_check() 592 flash_write_cmd(info, sector, 0, info->cmd_reset); in flash_status_check() 607 static int flash_full_status_check(flash_info_t *info, flash_sect_t sector, in flash_full_status_check() argument 612 retcode = flash_status_check(info, sector, tout, prompt); in flash_full_status_check() 618 !flash_isset(info, sector, 0, FLASH_STATUS_DONE)) { in flash_full_status_check() 621 info->start[sector]); in flash_full_status_check() 622 if (flash_isset(info, sector, 0, FLASH_STATUS_ECLBS | in flash_full_status_check() [all …]
|
/openbmc/qemu/crypto/ |
H A D | ivgen-essiv.c | 72 uint64_t sector, in qcrypto_ivgen_essiv_calculate() argument 80 sector = cpu_to_le64(sector); in qcrypto_ivgen_essiv_calculate() 81 memcpy(data, (uint8_t *)§or, MIN(sizeof(sector), ndata)); in qcrypto_ivgen_essiv_calculate() 82 if (sizeof(sector) < ndata) { in qcrypto_ivgen_essiv_calculate() 83 memset(data + sizeof(sector), 0, ndata - sizeof(sector)); in qcrypto_ivgen_essiv_calculate()
|
/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_trans_resv.c | 252 * the agfs of the ags containing the blocks: nr_ops * sector size 274 * the agfs of the ags from which the extents are allocated: 2 * sector 275 * the superblock free block counter: sector size 280 * the agfs of the ags from which the extents are allocated: 2 * sector 281 * the superblock free block counter: sector size 286 * the agfs of the ags containing the blocks: 2 * sector size 287 * the agfls of the ags containing the blocks: 2 * sector size 288 * the super block free block counter: sector size 356 * the agf for each of the ags: 4 * sector size 357 * the agfl for each of the ags: 4 * sector siz [all...] |
/openbmc/u-boot/include/ |
H A D | flash.h | 22 ulong start[CONFIG_SYS_MAX_FLASH_SECT]; /* virtual sector start address */ 23 uchar protect[CONFIG_SYS_MAX_FLASH_SECT]; /* sector protection status */ 109 extern int flash_real_protect(flash_info_t *info, long sector, int prot); 172 #define MT_ID_28F400_T 0x44704470 /* 28F400B3 ID ( 4 M, top boot sector) */ 204 #define AMD_ID_LV400T 0x22B922B9 /* 29LV400T ID ( 4 M, top boot sector) */ 210 #define AMD_ID_LV800T 0x22DA22DA /* 29LV800T ID ( 8 M, top boot sector) */ 213 #define AMD_ID_LV160T 0x22C422C4 /* 29LV160T ID (16 M, top boot sector) */ 216 #define AMD_ID_DL163T 0x22282228 /* 29DL163T ID (16 M, top boot sector) */ 219 #define AMD_ID_LV320T 0x22F622F6 /* 29LV320T ID (32 M, top boot sector) */ 224 #define AMD_ID_DL322T 0x22552255 /* 29DL322T ID (32 M, top boot sector) */ [all …]
|