/openbmc/phosphor-mboxd/ |
H A D | mboxd_windows.c | 44 window->flash_offset = FLASH_OFFSET_UNINIT; in init_window_state() 161 uint32_t flash_offset; in write_from_window_v1() local 165 flash_offset = context->current->flash_offset + offset_bytes; in write_from_window_v1() 175 low_mem.flash_offset = align_down(flash_offset, in write_from_window_v1() 177 low_mem.size = flash_offset - low_mem.flash_offset; in write_from_window_v1() 178 high_mem.flash_offset = flash_offset + count_bytes; in write_from_window_v1() 179 high_mem.size = align_up(high_mem.flash_offset, in write_from_window_v1() 181 high_mem.flash_offset; in write_from_window_v1() 187 if (low_mem.flash_offset < context->current->flash_offset) { in write_from_window_v1() 194 rc = copy_flash(context, low_mem.flash_offset, in write_from_window_v1() [all …]
|
H A D | mboxd_msg.c | 317 uint32_t flash_offset; in mbox_handle_read_window() local 334 flash_offset = get_u16(&req->msg.args[0]) << context->block_size_shift; in mbox_handle_read_window() 335 MSG_INFO("Host requested flash @ 0x%.8x\n", flash_offset); in mbox_handle_read_window() 337 context->current = search_windows(context, flash_offset, in mbox_handle_read_window() 342 rc = create_map_window(context, &context->current, flash_offset, in mbox_handle_read_window() 346 , flash_offset); in mbox_handle_read_window() 353 context->current->flash_offset); in mbox_handle_read_window() 359 put_u16(&resp->args[4], context->current->flash_offset >> in mbox_handle_read_window() 439 off = offset - ((context->current->flash_offset) >> in mbox_handle_dirty_window() 445 context->current->flash_offset); in mbox_handle_dirty_window() [all …]
|
H A D | mbox.h | 108 uint32_t flash_offset; /* Flash area the window maps (bytes) */ member
|
/openbmc/hiomapd/ |
H A D | windows.c | 47 window->flash_offset = FLASH_OFFSET_UNINIT; in init_window_state() 164 uint32_t flash_offset; in window_flush_v1() local 168 flash_offset = context->current->flash_offset + offset_bytes; in window_flush_v1() 178 low_mem.flash_offset = align_down(flash_offset, in window_flush_v1() 180 low_mem.size = flash_offset - low_mem.flash_offset; in window_flush_v1() 181 high_mem.flash_offset = flash_offset + count_bytes; in window_flush_v1() 182 high_mem.size = align_up(high_mem.flash_offset, in window_flush_v1() 184 high_mem.flash_offset; in window_flush_v1() 190 if (low_mem.flash_offset < context->current->flash_offset) { in window_flush_v1() 197 rc = backend_copy(&context->backend, low_mem.flash_offset, in window_flush_v1() [all …]
|
H A D | protocol.c | 190 trace->sector = context->current->flash_offset / 512; in blktrace_flush_start() 251 trace->sector = context->current->flash_offset / 512; in blktrace_window_done() 326 context->current->flash_offset); in protocol_v1_create_window() 346 off = offset - ((context->current->flash_offset) >> in protocol_v1_mark_dirty() 352 context->current->flash_offset); in protocol_v1_mark_dirty() 384 context->current->flash_offset); in generic_flush() 573 io->resp.offset = context->current->flash_offset >> in protocol_v2_create_window()
|
H A D | windows.h | 23 uint32_t flash_offset; /* Flash area the window maps (bytes) */ member
|
/openbmc/linux/fs/jffs2/ |
H A D | malloc.c | 192 ret[i].flash_offset = REF_EMPTY_NODE; in jffs2_alloc_refblock() 195 ret[i].flash_offset = REF_LINK_NODE; in jffs2_alloc_refblock() 215 if (ref && ref->flash_offset != REF_EMPTY_NODE) in jffs2_prealloc_raw_node_refs() 225 if (ref->flash_offset == REF_LINK_NODE) { in jffs2_prealloc_raw_node_refs() 236 nr, jeb->offset, jeb->last_node, jeb->last_node->flash_offset, in jffs2_prealloc_raw_node_refs()
|
H A D | nodelist.h | 88 uint32_t flash_offset; member 106 if (ref->flash_offset == REF_LINK_NODE) { in ref_next() 113 if (ref->flash_offset == REF_EMPTY_NODE) in ref_next() 136 #define ref_flags(ref) ((ref)->flash_offset & 3) 137 #define ref_offset(ref) ((ref)->flash_offset & ~3) 138 #define ref_obsolete(ref) (((ref)->flash_offset & 3) == REF_OBSOLETE) 139 #define mark_ref_normal(ref) do { (ref)->flash_offset = ref_offset(ref) | REF_NORMAL; } while(0)
|
H A D | nodelist.c | 96 frag->node->raw->flash_offset = ref_offset(frag->node->raw) | REF_PRISTINE; in jffs2_truncate_fragtree() 512 if (this[REFS_PER_BLOCK].flash_offset == REF_LINK_NODE) in jffs2_free_raw_node_refs() 597 dbg_noderef("Last node at %p is (%08x,%p)\n", ref, ref->flash_offset, in jffs2_link_node_ref() 600 while (ref->flash_offset != REF_EMPTY_NODE) { in jffs2_link_node_ref() 601 if (ref->flash_offset == REF_LINK_NODE) in jffs2_link_node_ref() 608 ref->flash_offset, ofs, ref->next_in_ino, len); in jffs2_link_node_ref() 610 ref->flash_offset = ofs; in jffs2_link_node_ref() 703 jeb = &c->blocks[ref->flash_offset / c->sector_size]; in __ref_totlen() 728 jeb = &c->blocks[ref->flash_offset / c->sector_size]; in __jffs2_ref_totlen()
|
H A D | nodemgmt.c | 597 blocknr = ref->flash_offset / c->sector_size; in jffs2_mark_node_obsolete() 600 ref->flash_offset); in jffs2_mark_node_obsolete() 624 ref->flash_offset, jeb->used_size); in jffs2_mark_node_obsolete() 635 ref->flash_offset, jeb->used_size); in jffs2_mark_node_obsolete() 673 ref->flash_offset = ref_offset(ref) | REF_OBSOLETE; in jffs2_mark_node_obsolete()
|
H A D | erase.c | 225 if (SECTOR_ADDR((*prev)->flash_offset) == jeb->offset) { in jffs2_remove_node_refs_from_ino_list() 296 if (ref->flash_offset == REF_LINK_NODE) { in jffs2_free_jeb_node_refs() 302 if (ref->flash_offset != REF_EMPTY_NODE && ref->next_in_ino) in jffs2_free_jeb_node_refs()
|
H A D | readinode.c | 114 jeb = &c->blocks[ref->flash_offset / c->sector_size]; in check_node_data() 120 ref->flash_offset |= REF_PRISTINE; in check_node_data() 617 jeb = &c->blocks[ref->flash_offset / c->sector_size]; in read_direntry() 625 ref->flash_offset = ref_offset(ref) | dirent_node_state(rd); in read_direntry() 819 jeb = &c->blocks[ref->flash_offset / c->sector_size]; in read_dnode() 827 ref->flash_offset = ref_offset(ref) | REF_NORMAL; in read_dnode()
|
H A D | gc.c | 938 if (SECTOR_ADDR(raw->flash_offset) == SECTOR_ADDR(fd->raw->flash_offset)) in jffs2_garbage_collect_deletion_dirent() 1230 jeb = &c->blocks[raw->flash_offset / c->sector_size]; in jffs2_garbage_collect_dnode() 1286 jeb = &c->blocks[raw->flash_offset / c->sector_size]; in jffs2_garbage_collect_dnode()
|
H A D | xattr.c | 191 raw->flash_offset = ref_offset(raw) | ((xd->node==raw) ? REF_PRISTINE : REF_NORMAL); in do_verify_xattr_datum() 497 raw->flash_offset = ref_offset(raw) | ((ref->node==raw) ? REF_PRISTINE : REF_NORMAL); in verify_xattr_ref() 1318 raw->flash_offset = ref_offset(raw) in jffs2_verify_xattr()
|
H A D | README.Locking | 85 case. Any changes to _valid_ nodes (i.e. ->flash_offset & 1 == 0) in
|
H A D | summary.c | 543 *pseudo_random += ref->node->flash_offset; in jffs2_sum_process_sum_data()
|
H A D | wbuf.c | 541 raw->flash_offset = ref_offset(raw) | REF_OBSOLETE; in jffs2_wbuf_recover()
|
/openbmc/u-boot/board/freescale/s32v234evb/ |
H A D | s32v234evb.cfg | 21 * qspi: flash_offset: 0x1000 22 * sd/mmc: flash_offset: 0x1000
|
/openbmc/u-boot/tools/ |
H A D | imximage.c | 300 uint32_t entry_point, uint32_t flash_offset) in set_imx_hdr_v1() argument 312 hdr_base = entry_point - imximage_init_loadsize + flash_offset; in set_imx_hdr_v1() 313 fhdr_v1->app_dest_ptr = hdr_base - flash_offset; in set_imx_hdr_v1() 326 uint32_t entry_point, uint32_t flash_offset) in set_imx_hdr_v2() argument 342 flash_offset; in set_imx_hdr_v2() 367 flash_offset + sizeof(flash_header_v2_t) + in set_imx_hdr_v2() 372 fhdr_v2->self = imximage_iram_free_start + flash_offset; in set_imx_hdr_v2() 417 next_hdr_v2->boot_data.start = hdr_base - flash_offset; in set_imx_hdr_v2()
|
/openbmc/linux/drivers/scsi/qla4xxx/ |
H A D | ql4_83xx.c | 165 uint32_t flash_offset; in qla4_83xx_lockless_flash_read_u32() local 169 flash_offset = addr & (QLA83XX_FLASH_SECTOR_SIZE - 1); in qla4_83xx_lockless_flash_read_u32() 187 if ((flash_offset + (u32_word_count * sizeof(uint32_t))) > in qla4_83xx_lockless_flash_read_u32() 204 flash_offset = flash_offset + 4; in qla4_83xx_lockless_flash_read_u32() 206 if (flash_offset > (QLA83XX_FLASH_SECTOR_SIZE - 1)) { in qla4_83xx_lockless_flash_read_u32() 216 flash_offset = 0; in qla4_83xx_lockless_flash_read_u32()
|
/openbmc/u-boot/include/ |
H A D | imximage.h | 216 uint32_t entry_point, uint32_t flash_offset);
|
/openbmc/linux/drivers/scsi/mpi3mr/mpi/ |
H A D | mpi30_image.h | 28 __le32 flash_offset; member
|
/openbmc/linux/drivers/scsi/qla2xxx/ |
H A D | qla_nx2.c | 1035 uint32_t flash_offset; in qla8044_lockless_flash_read_u32() local 1039 flash_offset = addr & (QLA8044_FLASH_SECTOR_SIZE - 1); in qla8044_lockless_flash_read_u32() 1059 if ((flash_offset + (u32_word_count * sizeof(uint32_t))) > in qla8044_lockless_flash_read_u32() 1074 flash_offset = flash_offset + 4; in qla8044_lockless_flash_read_u32() 1075 if (flash_offset > (QLA8044_FLASH_SECTOR_SIZE - 1)) { in qla8044_lockless_flash_read_u32() 1086 flash_offset = 0; in qla8044_lockless_flash_read_u32()
|
/openbmc/linux/drivers/net/ethernet/qlogic/qlcnic/ |
H A D | qlcnic_83xx_hw.c | 2642 u32 word, range, flash_offset, addr = flash_addr, ret; in qlcnic_83xx_lockless_flash_read32() local 2646 flash_offset = addr & (QLCNIC_FLASH_SECTOR_SIZE - 1); in qlcnic_83xx_lockless_flash_read32() 2655 range = flash_offset + (count * sizeof(u32)); in qlcnic_83xx_lockless_flash_read32() 2670 flash_offset = flash_offset + 4; in qlcnic_83xx_lockless_flash_read32() 2672 if (flash_offset > (QLCNIC_FLASH_SECTOR_SIZE - 1)) { in qlcnic_83xx_lockless_flash_read32() 2678 flash_offset = 0; in qlcnic_83xx_lockless_flash_read32()
|