/openbmc/linux/drivers/mtd/ |
H A D | mtdoops.c | 28 static unsigned long record_size = 4096; variable 29 module_param(record_size, ulong, 0400); 30 MODULE_PARM_DESC(record_size, 87 u32 start_page = start_page_offset / record_size; in mtdoops_erase_block() 88 u32 erase_pages = mtd->erasesize / record_size; in mtdoops_erase_block() 120 mod = (cxt->nextpage * record_size) % mtd->erasesize; in mtdoops_erase() 122 cxt->nextpage = cxt->nextpage + ((mtd->erasesize - mod) / record_size); in mtdoops_erase() 127 while ((ret = mtd_block_isbad(mtd, cxt->nextpage * record_size)) > 0) { in mtdoops_erase() 130 cxt->nextpage * record_size); in mtdoops_erase() 132 cxt->nextpage = cxt->nextpage + (mtd->erasesize / record_size); in mtdoops_erase() [all …]
|
/openbmc/linux/fs/pstore/ |
H A D | ram.c | 31 static ulong record_size = MIN_MEM_SIZE; variable 32 module_param(record_size, ulong, 0400); 33 MODULE_PARM_DESC(record_size, 88 size_t record_size; member 486 ssize_t record_size, in ramoops_init_przs() argument 495 if (mem_sz == 0 || record_size == 0) { in ramoops_init_przs() 505 if (record_size < 0) { in ramoops_init_przs() 508 record_size = mem_sz / *cnt; in ramoops_init_przs() 509 if (record_size == 0) { in ramoops_init_przs() 515 *cnt = mem_sz / record_size; in ramoops_init_przs() [all …]
|
H A D | ftrace.c | 164 size_t record_size = sizeof(struct pstore_ftrace_record); in pstore_ftrace_combine_log() local 166 dest_off = *dest_log_size % record_size; in pstore_ftrace_combine_log() 169 src_off = src_log_size % record_size; in pstore_ftrace_combine_log() 185 dest_size -= record_size; in pstore_ftrace_combine_log() 188 src_size -= record_size; in pstore_ftrace_combine_log() 194 dest_size -= record_size; in pstore_ftrace_combine_log() 199 src_size -= record_size; in pstore_ftrace_combine_log()
|
H A D | zone.c | 1196 loff_t *off, size_t total_size, ssize_t record_size, in psz_init_zones() argument 1205 if (!total_size || !record_size) in psz_init_zones() 1214 c = total_size / record_size; in psz_init_zones() 1223 zone = psz_init_zone(type, off, record_size); in psz_init_zones()
|
/openbmc/linux/drivers/firmware/efi/ |
H A D | efi-pstore.c | 13 static unsigned int record_size = 1024; variable 14 module_param(record_size, uint, 0444); 15 MODULE_PARM_DESC(record_size, "size of each pstore UEFI var (in bytes, min/default=1024)"); 35 psi->data = kzalloc(record_size, GFP_KERNEL); in efi_pstore_open() 57 unsigned long wlen, size = record_size; in efi_pstore_read_func() 235 if (record_size < 1024) in efivars_pstore_init() 236 record_size = 1024; in efivars_pstore_init() 238 efi_pstore_info.buf = kmalloc(record_size, GFP_KERNEL); in efivars_pstore_init() 242 efi_pstore_info.bufsize = record_size; in efivars_pstore_init()
|
H A D | cper.c | 665 unsigned int data_len, record_size; in cper_estatus_check() local 678 record_size = acpi_hest_get_record_size(gdata); in cper_estatus_check() 679 if (record_size > data_len) in cper_estatus_check() 682 data_len -= record_size; in cper_estatus_check()
|
/openbmc/qemu/hw/acpi/ |
H A D | erst.c | 138 uint32_t record_size; member 380 off_t offset = (index * le32_to_cpu(s->header->record_size)); in get_nvram_ptr_by_index() 396 header->record_size = cpu_to_le32(s->default_record_size); in make_erst_storage_header() 419 uint32_t record_size; in check_erst_backend_storage() local 435 record_size = le32_to_cpu(header->record_size); in check_erst_backend_storage() 437 (record_size) && /* non zero */ in check_erst_backend_storage() 438 (record_size >= UEFI_CPER_RECORD_MIN_SIZE) && in check_erst_backend_storage() 439 (((record_size - 1) & record_size) == 0) && /* is power of 2 */ in check_erst_backend_storage() 440 (record_size >= 4096) /* PAGE_SIZE */ in check_erst_backend_storage() 442 error_setg(errp, "ERST record_size %u is invalid", record_size); in check_erst_backend_storage() [all …]
|
/openbmc/linux/fs/ntfs3/ |
H A D | super.c | 872 u32 mb, gb, boot_sector_size, sct_per_clst, record_size; in ntfs_init_from_boot() local 945 if (boot->record_size >= 0) { in ntfs_init_from_boot() 946 record_size = (u32)boot->record_size << cluster_bits; in ntfs_init_from_boot() 947 } else if (-boot->record_size <= MAXIMUM_SHIFT_BYTES_PER_MFT) { in ntfs_init_from_boot() 948 record_size = 1u << (-boot->record_size); in ntfs_init_from_boot() 951 boot->record_size); in ntfs_init_from_boot() 955 sbi->record_size = record_size; in ntfs_init_from_boot() 956 sbi->record_bits = blksize_bits(record_size); in ntfs_init_from_boot() 957 sbi->attr_size_tr = (5 * record_size >> 4); // ~320 bytes in ntfs_init_from_boot() 960 if (record_size < SECTOR_SIZE || !is_power_of_2(record_size)) { in ntfs_init_from_boot() [all …]
|
H A D | record.c | 105 mi->mrec = kmalloc(sbi->record_size, GFP_NOFS); in mi_init() 120 u32 bpr = sbi->record_size; in mi_read() 428 memcpy(rec, sbi->new_rec, sbi->record_size); in mi_format_new() 446 err = ntfs_get_bh(sbi, &ni->file.run, vbo, sbi->record_size, in mi_format_new() 473 if (used + asize > sbi->record_size) in mi_insert_attr() 624 u32 dsize = sbi->record_size - used; in mi_pack_runs()
|
H A D | dir.c | 417 eod = i_size + sbi->record_size; in ntfs_readdir() 453 if (pos >= sbi->record_size) { in ntfs_readdir() 454 bit = (pos - sbi->record_size) >> index_bits; in ntfs_readdir() 495 vbo + sbi->record_size, pos, name, ctx); in ntfs_readdir()
|
H A D | fslog.c | 2699 if (asize >= sbi->record_size || in check_attr() 2700 asize + PtrOffset(rec, attr) >= sbi->record_size || in check_attr() 2791 u32 rs = sbi->record_size; in check_file_record() 2797 ao > sbi->record_size - SIZEOF_RESIDENT || !is_rec_inuse(rec) || in check_file_record() 3055 u32 record_size = sbi->record_size; in do_action() local 3142 sbi->record_size); in do_action() 3208 if (roff + dlen > record_size) in do_action() 3223 if (!check_if_attr(rec, lrh) || roff + dlen > record_size) in do_action() 3240 dlen > record_size - used) { in do_action() 3300 if (nsize > asize && nsize - asize > record_size - used) in do_action() [all …]
|
H A D | frecord.c | 534 u32 roff, rs = sbi->record_size; in ni_repack() 683 free = sbi->record_size - le32_to_cpu(ni->mi.mrec->used) + asize; in ni_try_remove_attr_list() 711 mrec = kmemdup(ni->mi.mrec, sbi->record_size, GFP_NOFS); in ni_try_remove_attr_list() 816 rs = sbi->record_size; in ni_create_attr_list() 1020 if (le32_to_cpu(mi->mrec->used) + asize > sbi->record_size) in ni_ins_attr_ext() 1113 free = sbi->record_size - used; in ni_insert_attr() 1218 while (asize + list_reserve > sbi->record_size - le32_to_cpu(rec->used)) in ni_insert_attr() 1323 err = run_pack(run, svcn, evcn + 1 - svcn, NULL, sbi->record_size, in ni_expand_mft_list()
|
H A D | index.c | 1323 u32 record_size = ni->mi.sbi->record_size; in indx_find_raw() local 1335 if (*off >= record_size) { in indx_find_raw() 1336 next_vbn = (((*off - record_size) >> indx->index_bits)) in indx_find_raw() 1421 record_size + PtrOffset(&n->index->ihdr, e); in indx_find_raw()
|
/openbmc/linux/tools/firmware/ |
H A D | ihex2fw.c | 135 size_t record_size; in process_ihex() local 162 record_size = ALIGN(sizeof(*record) + len, 4); in process_ihex() 163 record = malloc(record_size); in process_ihex() 168 memset(record, 0, record_size); in process_ihex()
|
/openbmc/linux/drivers/vfio/pci/mlx5/ |
H A D | main.c | 323 header.record_size = cpu_to_le64(sizeof(data)); in mlx5vf_add_stop_copy_header() 711 required_data = migf->record_size - vhca_buf->length; in mlx5vf_resume_read_header_data() 722 if (vhca_buf->length == migf->record_size) { in mlx5vf_resume_read_header_data() 743 migf->max_pos += migf->record_size; in mlx5vf_resume_read_header_data() 780 u64 record_size; in mlx5vf_resume_read_header() local 783 record_size = le64_to_cpup((__le64 *)to_buff); in mlx5vf_resume_read_header() 784 if (record_size > MAX_LOAD_SIZE) { in mlx5vf_resume_read_header() 789 migf->record_size = record_size; in mlx5vf_resume_read_header() 856 if (vhca_buf_header->allocated_length < migf->record_size) { in mlx5vf_resume_write() 860 migf->record_size, DMA_NONE); in mlx5vf_resume_write() [all …]
|
H A D | cmd.h | 52 __le64 record_size; member 93 u64 record_size; member
|
H A D | cmd.c | 511 header.record_size = cpu_to_le64(image_size); in add_buf_header() 742 int record_size = MLX5_ST_SZ_BYTES(page_track_range); in mlx5vf_create_tracker() local 762 record_size * num_ranges; in mlx5vf_create_tracker() 786 void *addr_range_i_base = range_list_ptr + record_size * i; in mlx5vf_create_tracker()
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/bios/ |
H A D | bios_parser2.c | 434 !header->record_size) in bios_parser_get_i2c_info() 439 header->record_size) { in bios_parser_get_i2c_info() 448 offset += header->record_size; in bios_parser_get_i2c_info() 543 !header->record_size) in get_hpd_record_for_path_v3() 548 header->record_size) in get_hpd_record_for_path_v3() 551 offset += header->record_size; in get_hpd_record_for_path_v3() 622 !header->record_size) in get_hpd_record() 627 header->record_size) in get_hpd_record() 630 offset += header->record_size; in get_hpd_record() 2131 offset += header->record_size; in get_encoder_cap_record() [all …]
|
/openbmc/linux/include/linux/ |
H A D | pstore_ram.h | 33 unsigned long record_size; member
|
/openbmc/libpldm/src/dsp/ |
H A D | fru.c | 230 uint8_t *record_table, size_t *record_size, in get_fru_record_by_option() argument 262 if (pos - record_table + len >= *record_size) { in get_fru_record_by_option() 275 if (pos - record_table + len >= *record_size) { in get_fru_record_by_option() 290 *record_size = pos - record_table; in get_fru_record_by_option()
|
/openbmc/linux/drivers/cpuidle/ |
H A D | cpuidle-pseries.c | 153 u8 record_size; member 185 xcede_record_size = payload->record_size + 1; in parse_cede_parameters()
|
/openbmc/linux/drivers/platform/chrome/ |
H A D | chromeos_pstore.c | 57 .record_size = 0x40000,
|
/openbmc/linux/Documentation/admin-guide/ |
H A D | ramoops.rst | 36 The memory area is divided into ``record_size`` chunks (also rounded down to 37 power of two) and each kmesg dump writes a ``record_size`` chunk of 100 .record_size = <...>,
|
/openbmc/qemu/docs/specs/ |
H A D | acpi_erst.rst | 75 - record_size: Specifies the size of the records (or slots) in the 151 | record_offset | record_size | 0x0008 166 The 'record_size' field contains the value 0x2000, 8KiB.
|
/openbmc/libpldm/include/libpldm/ |
H A D | fru.h | 469 uint8_t *record_table, size_t *record_size,
|