/openbmc/linux/fs/hpfs/ |
H A D | ea.c | 3 * linux/fs/hpfs/ea.c 20 struct extended_attribute *ea = (struct extended_attribute *)ex; in hpfs_ea_ext_remove() local 27 if (ea_indirect(ea)) { in hpfs_ea_ext_remove() 28 if (ea_valuelen(ea) != 8) { in hpfs_ea_ext_remove() 29 hpfs_error(s, "ea_indirect(ea) set while ea->valuelen!=8, %s %08x, pos %08x", in hpfs_ea_ext_remove() 33 if (hpfs_ea_read(s, a, ano, pos + 4, ea->namelen + 9, ex+4)) in hpfs_ea_ext_remove() 35 hpfs_ea_remove(s, ea_sec(ea), ea_in_anode(ea), ea_len(ea)); in hpfs_ea_ext_remove() 37 pos += ea->namelen + ea_valuelen(ea) + 5; in hpfs_ea_ext_remove() 55 pr_err("out of memory for EA\n"); in get_indirect_ea() 81 struct extended_attribute *ea; in hpfs_read_ea() local [all …]
|
H A D | inode.c | 50 void *ea; in hpfs_read_inode() local 63 if ((ea = hpfs_get_ea(i->i_sb, fnode, "UID", &ea_size))) { in hpfs_read_inode() 65 i_uid_write(i, le16_to_cpu(*(__le16*)ea)); in hpfs_read_inode() 68 kfree(ea); in hpfs_read_inode() 70 if ((ea = hpfs_get_ea(i->i_sb, fnode, "GID", &ea_size))) { in hpfs_read_inode() 72 i_gid_write(i, le16_to_cpu(*(__le16*)ea)); in hpfs_read_inode() 75 kfree(ea); in hpfs_read_inode() 77 if ((ea = hpfs_get_ea(i->i_sb, fnode, "SYMLINK", &ea_size))) { in hpfs_read_inode() 78 kfree(ea); in hpfs_read_inode() 89 if ((ea = hpfs_get_ea(i->i_sb, fnode, "MODE", &ea_size))) { in hpfs_read_inode() [all …]
|
H A D | hpfs_fn.h | 56 unsigned i_ea_mode : 1; /* file's permission is stored in ea */ 57 unsigned i_ea_uid : 1; /* file's uid is stored in ea */ 58 unsigned i_ea_gid : 1; /* file's gid is stored in ea */ 145 static unsigned ea_valuelen(struct extended_attribute *ea) in ea_valuelen() argument 147 return ea->valuelen_lo + 256 * ea->valuelen_hi; in ea_valuelen() 150 static inline struct extended_attribute *next_ea(struct extended_attribute *ea) in next_ea() argument 152 return (struct extended_attribute *)((char *)ea + 5 + ea->namelen + ea_valuelen(ea)); in next_ea() 155 static inline secno ea_sec(struct extended_attribute *ea) in ea_sec() argument 157 return le32_to_cpu(get_unaligned((__le32 *)((char *)ea + 9 + ea->namelen))); in ea_sec() 160 static inline secno ea_len(struct extended_attribute *ea) in ea_len() argument [all …]
|
H A D | hpfs.h | 311 u8 has_ea: 1; /* entry has EA */ 314 u8 has_needea: 1; /* ?? some EA has NEEDEA set 318 u8 has_needea: 1; /* ?? some EA has NEEDEA set 323 u8 has_ea: 1; /* entry has EA */ 355 __le32 ea_size; /* total EA length, bytes */ 401 the data btree or some ea or the 402 main ea bootage pointer ea_secno 429 /* fnode: root of allocation b+ tree, and EA's */ 432 entry and pointing to the file's sectors or directory's root dnode. EA's 449 __le32 ea_size_l; /* length of disk-resident ea's */ [all …]
|
/openbmc/linux/fs/jfs/ |
H A D | xattr.c | 48 * | Overall EA | First FEA Element | Second FEA Element | ..... 55 * written directly. An EA list may be in-lined in the inode if there is 62 dxd_t new_ea; /* dxd to replace ea when modifying xattr */ 63 struct metapage *mp; /* metapage containing ea list */ 64 struct jfs_ea_list *xattr; /* buffer containing ea list */ 95 static inline int name_size(struct jfs_ea *ea) in name_size() argument 97 if (is_known_namespace(ea->name)) in name_size() 98 return ea->namelen; in name_size() 100 return ea->namelen + XATTR_OS2_PREFIX_LEN; in name_size() 103 static inline int copy_name(char *buffer, struct jfs_ea *ea) in copy_name() argument [all …]
|
H A D | jfs_xattr.h | 25 struct jfs_ea ea[]; /* Variable length list */ member 33 * some macros for dealing with variable length EA lists. 35 #define EA_SIZE(ea) \ argument 36 (sizeof (struct jfs_ea) + (ea)->namelen + 1 + \ 37 le16_to_cpu((ea)->valuelen)) 38 #define NEXT_EA(ea) ((struct jfs_ea *) (((char *) (ea)) + (EA_SIZE (ea)))) argument 39 #define FIRST_EA(ealist) ((ealist)->ea)
|
/openbmc/linux/fs/gfs2/ |
H A D | xattr.h | 13 #define GFS2_EA_REC_LEN(ea) be32_to_cpu((ea)->ea_rec_len) argument 14 #define GFS2_EA_DATA_LEN(ea) be32_to_cpu((ea)->ea_data_len) argument 16 #define GFS2_EA_SIZE(ea) \ argument 17 ALIGN(sizeof(struct gfs2_ea_header) + (ea)->ea_name_len + \ 18 ((GFS2_EA_IS_STUFFED(ea)) ? GFS2_EA_DATA_LEN(ea) : \ 19 (sizeof(__be64) * (ea)->ea_num_ptrs)), 8) 21 #define GFS2_EA_IS_STUFFED(ea) (!(ea)->ea_num_ptrs) argument 22 #define GFS2_EA_IS_LAST(ea) ((ea)->ea_flags & GFS2_EAFLAG_LAST) argument 27 #define GFS2_EA2NAME(ea) ((char *)((struct gfs2_ea_header *)(ea) + 1)) argument 28 #define GFS2_EA2DATA(ea) (GFS2_EA2NAME(ea) + (ea)->ea_name_len) argument [all …]
|
H A D | xattr.c | 33 * Returns: 1 if the EA should be stuffed 85 struct gfs2_ea_header *ea, 92 struct gfs2_ea_header *ea, *prev = NULL; in ea_foreach_i() local 98 for (ea = GFS2_EA_BH2FIRST(bh);; prev = ea, ea = GFS2_EA2NEXT(ea)) { in ea_foreach_i() 99 if (!GFS2_EA_REC_LEN(ea)) in ea_foreach_i() 101 if (!(bh->b_data <= (char *)ea && (char *)GFS2_EA2NEXT(ea) <= in ea_foreach_i() 104 if (!gfs2_eatype_valid(sdp, ea->ea_type)) in ea_foreach_i() 106 error = ea_call(ip, bh, ea, prev, data); in ea_foreach_i() 110 if (GFS2_EA_IS_LAST(ea)) { in ea_foreach_i() 111 if ((char *)GFS2_EA2NEXT(ea) != in ea_foreach_i() [all …]
|
/openbmc/qemu/target/hexagon/imported/ |
H A D | ldst.idef | 34 …=memub","Load Unsigned Byte",ATTRIBS(A_MEMSIZE_1B,A_LOAD,A_REGWRSIZE_1B),"0",fLOAD(1,1,u,EA,RdV),0) 35 …DES(loadrb, "Rd32=memb", "Load signed Byte",ATTRIBS(A_MEMSIZE_1B,A_LOAD),"0",fLOAD(1,1,s,EA,RdV),0) 36 …"Load unsigned Half integer",ATTRIBS(A_REGWRSIZE_2B,A_MEMSIZE_2B,A_LOAD),"1",fLOAD(1,2,u,EA,RdV),1) 37 …, "Load signed Half integer",ATTRIBS(A_REGWRSIZE_2B,A_MEMSIZE_2B,A_LOAD),"1",fLOAD(1,2,s,EA,RdV),1) 38 …ri, "Rd32=memw", "Load Word",ATTRIBS(A_REGWRSIZE_4B,A_MEMSIZE_4B,A_LOAD),"2",fLOAD(1,4,u,EA,RdV),2) 39 …memd","Load Double integer",ATTRIBS(A_REGWRSIZE_8B,A_MEMSIZE_8B,A_LOAD),"3",fLOAD(1,8,u,EA,RddV),3) 45 fLOAD(1,2,u,EA,tmpV); 54 fLOAD(1,4,u,EA,tmpV); 66 fLOAD(1,2,u,EA,tmpV); 75 fLOAD(1,4,u,EA,tmpV); [all …]
|
H A D | subinsns.idef | 65 …A_REGWRSIZE_4B,A_MEMSIZE_4B,A_LOAD,A_SUBINSN),"load word", {fEA_RI(RsV,uiV); fLOAD(1,4,u,EA,RdV);}) 66 …A_MEMSIZE_1B,A_LOAD,A_SUBINSN,A_REGWRSIZE_1B),"load byte", {fEA_RI(RsV,uiV); fLOAD(1,1,u,EA,RdV);}) 68 …A_REGWRSIZE_2B,A_MEMSIZE_2B,A_LOAD,A_SUBINSN),"load half", {fEA_RI(RsV,uiV); fLOAD(1,2,s,EA,RdV);}) 69 …A_REGWRSIZE_2B,A_MEMSIZE_2B,A_LOAD,A_SUBINSN),"load half", {fEA_RI(RsV,uiV); fLOAD(1,2,u,EA,RdV);}) 70 …3:0)", ATTRIBS(A_MEMSIZE_1B,A_LOAD,A_SUBINSN),"load byte", {fEA_RI(RsV,uiV); fLOAD(1,1,s,EA,RdV);}) 71 …SIZE_4B,A_MEMSIZE_4B,A_LOAD,A_SUBINSN),"load word", {fEA_RI(fREAD_SP(),uiV); fLOAD(1,4,u,EA,RdV);}) 72 …IZE_8B,A_MEMSIZE_8B,A_LOAD,A_SUBINSN),"load dword",{fEA_RI(fREAD_SP(),uiV); fLOAD(1,8,u,EA,RddV);}) 76 fLOAD(1,8,u,EA,tmp); 80 fWRITE_SP(EA+8); }) 84 fLOAD(1,8,u,EA,tmp); [all …]
|
/openbmc/qemu/target/hexagon/mmvec/ |
H A D | macros.h | 108 #define fV_AL_CHECK(EA, MASK) \ argument 109 if ((EA) & (MASK)) { \ 110 warn("aligning misaligned vector. EA=%08x", (EA)); \ 123 #define fVLOG_VTCM_WORD_INCREMENT(EA, OFFSET, INC, IDX, ALIGNMENT, LEN) \ argument 126 target_ulong va = EA; \ 127 target_ulong va_high = EA + LEN; \ 134 #define fVLOG_VTCM_HALFWORD_INCREMENT(EA, OFFSET, INC, IDX, ALIGNMENT, LEN) \ argument 137 target_ulong va = EA; \ 138 target_ulong va_high = EA + LEN; \ 146 #define fVLOG_VTCM_HALFWORD_INCREMENT_DV(EA, OFFSET, INC, IDX, IDX2, IDX_H, \ argument [all …]
|
/openbmc/qemu/target/hexagon/imported/mmvec/ |
H A D | macros.def | 203 if ((EA) & (MASK)) { 204 warn("aligning misaligned vector. PC=%08x EA=%08x",thread->Regs[REG_PC],(EA)); 351 GATHER_FUNCTION(EA,OFFSET,IDX, LEN, 4, IDX, 1); 357 GATHER_FUNCTION(EA,OFFSET,IDX, LEN, 2, IDX, 1); 363 GATHER_FUNCTION(EA,OFFSET,IDX, LEN, 2, (2*IDX2+IDX_H), 1); 369 GATHER_FUNCTION(EA,OFFSET,IDX, LEN, 4, IDX, fGETQBIT(QsV,4*IDX+i0)); 375 GATHER_FUNCTION(EA,OFFSET,IDX, LEN, 2, IDX, fGETQBIT(QsV,2*IDX+i0)); 382 GATHER_FUNCTION(EA,OFFSET,IDX, LEN, 2, (2*IDX2+IDX_H), fGETQBIT(QsV,2*IDX+i0)); 454 SCATTER_FUNCTION (EA,OFFSET,IDX, LEN, 2, IDX, 1, IN); 460 SCATTER_FUNCTION (EA,OFFSET,IDX, LEN, 4, IDX, 1, IN); [all …]
|
/openbmc/linux/arch/powerpc/mm/ |
H A D | copro_fault.c | 23 int copro_handle_mm_fault(struct mm_struct *mm, unsigned long ea, in copro_handle_mm_fault() argument 36 vma = lock_mm_and_find_vma(mm, ea, NULL); in copro_handle_mm_fault() 59 *flt = handle_mm_fault(vma, ea, is_write ? FAULT_FLAG_WRITE : 0, NULL); in copro_handle_mm_fault() 83 int copro_calculate_slb(struct mm_struct *mm, u64 ea, struct copro_slb *slb) in copro_calculate_slb() argument 88 switch (get_region_id(ea)) { in copro_calculate_slb() 90 pr_devel("%s: 0x%llx -- USER_REGION_ID\n", __func__, ea); in copro_calculate_slb() 93 psize = get_slice_psize(mm, ea); in copro_calculate_slb() 94 ssize = user_segment_size(ea); in copro_calculate_slb() 95 vsid = get_user_vsid(&mm->context, ea, ssize); in copro_calculate_slb() 99 pr_devel("%s: 0x%llx -- VMALLOC_REGION_ID\n", __func__, ea); in copro_calculate_slb() [all …]
|
/openbmc/qemu/target/ppc/translate/ |
H A D | fp-impl.c.inc | 739 TCGv EA; 747 EA = tcg_temp_new(); 749 gen_addr_reg_index(ctx, EA); 750 tcg_gen_qemu_ld_i64(t0, EA, PPC_TLB_EPID_LOAD, DEF_MEMOP(MO_UQ)); 757 TCGv EA; 764 EA = tcg_temp_new(); 765 gen_addr_imm_index(ctx, EA, 0); 772 gen_qemu_ld64_i64(ctx, t0, EA); 774 tcg_gen_addi_tl(EA, EA, 8); 775 gen_qemu_ld64_i64(ctx, t0, EA); [all …]
|
/openbmc/linux/arch/powerpc/lib/ |
H A D | sstep.c | 54 extern int do_lq(unsigned long ea, unsigned long *regs); 55 extern int do_stq(unsigned long ea, unsigned long val0, unsigned long val1); 56 extern int do_lqarx(unsigned long ea, unsigned long *regs); 57 extern int do_stqcx(unsigned long ea, unsigned long val0, unsigned long val1, 106 unsigned long ea, int nb) in address_ok() argument 110 if (access_ok((void __user *)ea, nb)) in address_ok() 112 if (access_ok((void __user *)ea, 1)) in address_ok() 116 regs->dar = ea; in address_ok() 127 unsigned long ea; in dform_ea() local 130 ea = (signed short) instr; /* sign-extend */ in dform_ea() [all …]
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | hw_breakpoint_constraints.c | 14 static bool ea_user_range_overlaps(unsigned long ea, int size, in ea_user_range_overlaps() argument 17 return ((ea < info->address + info->len) && in ea_user_range_overlaps() 18 (ea + size > info->address)); in ea_user_range_overlaps() 31 static bool ea_hw_range_overlaps(unsigned long ea, int size, in ea_hw_range_overlaps() argument 47 return ((ea < hw_end_addr) && (ea + size > hw_start_addr)); in ea_hw_range_overlaps() 84 unsigned long ea, int type, int size, in wp_check_constraints() argument 118 if (ea_user_range_overlaps(ea, size, info)) in wp_check_constraints() 121 if (ea_hw_range_overlaps(ea, size, info)) { in wp_check_constraints() 131 int *type, int *size, unsigned long *ea) in wp_get_instr_detail() argument 145 *ea = op.ea; in wp_get_instr_detail() [all …]
|
/openbmc/linux/arch/nios2/kernel/ |
H A D | traps.c | 116 fp->ea -= 4; in breakpoint_c() 117 _exception(SIGTRAP, fp, TRAP_BRKPT, fp->ea); in breakpoint_c() 127 fp->ea -= 4; in handle_unaligned_c() 137 pr_alert(" op-code 0x%08lx\n", *(unsigned long *)(fp->ea)); in handle_unaligned_c() 149 fp->ea -= 4; in handle_illegal_c() 150 _exception(SIGILL, fp, ILL_ILLOPC, fp->ea); in handle_illegal_c() 156 fp->ea -= 4; in handle_supervisor_instr() 157 _exception(SIGILL, fp, ILL_PRVOPC, fp->ea); in handle_supervisor_instr() 163 fp->ea -= 4; in handle_diverror_c() 164 _exception(SIGFPE, fp, FPE_INTDIV, fp->ea); in handle_diverror_c() [all …]
|
/openbmc/linux/fs/ntfs3/ |
H A D | xattr.c | 24 static inline size_t unpacked_ea_size(const struct EA_FULL *ea) in unpacked_ea_size() argument 26 return ea->size ? le32_to_cpu(ea->size) : in unpacked_ea_size() 27 ALIGN(struct_size(ea, name, in unpacked_ea_size() 28 1 + ea->name_len + in unpacked_ea_size() 29 le16_to_cpu(ea->elength)), in unpacked_ea_size() 33 static inline size_t packed_ea_size(const struct EA_FULL *ea) in packed_ea_size() argument 35 return struct_size(ea, name, in packed_ea_size() 36 1 + ea->name_len + le16_to_cpu(ea->elength)) - in packed_ea_size() 55 const struct EA_FULL *ea = Add2Ptr(ea_all, *off); in find_ea() local 56 ea_size = unpacked_ea_size(ea); in find_ea() [all …]
|
/openbmc/linux/arch/powerpc/mm/book3s64/ |
H A D | slb.c | 32 static long slb_allocate_user(struct mm_struct *mm, unsigned long ea); 45 static void assert_slb_presence(bool present, unsigned long ea) in assert_slb_presence() argument 59 ea &= ~((1UL << SID_SHIFT) - 1); in assert_slb_presence() 60 asm volatile(__PPC_SLBFEE_DOT(%0, %1) : "=r"(tmp) : "r"(ea) : "cr0"); in assert_slb_presence() 66 static inline void slb_shadow_update(unsigned long ea, int ssize, in slb_shadow_update() argument 78 WRITE_ONCE(p->save_area[index].vsid, cpu_to_be64(mk_vsid_data(ea, ssize, flags))); in slb_shadow_update() 79 WRITE_ONCE(p->save_area[index].esid, cpu_to_be64(mk_esid_data(ea, ssize, index))); in slb_shadow_update() 87 static inline void create_shadowed_slbe(unsigned long ea, int ssize, in create_shadowed_slbe() argument 96 slb_shadow_update(ea, ssize, flags, index); in create_shadowed_slbe() 98 assert_slb_presence(false, ea); in create_shadowed_slbe() [all …]
|
/openbmc/linux/arch/powerpc/mm/nohash/ |
H A D | book3e_pgtable.c | 74 int __ref map_kernel_page(unsigned long ea, unsigned long pa, pgprot_t prot) in map_kernel_page() argument 84 pgdp = pgd_offset_k(ea); in map_kernel_page() 85 p4dp = p4d_offset(pgdp, ea); in map_kernel_page() 86 pudp = pud_alloc(&init_mm, p4dp, ea); in map_kernel_page() 89 pmdp = pmd_alloc(&init_mm, pudp, ea); in map_kernel_page() 92 ptep = pte_alloc_kernel(pmdp, ea); in map_kernel_page() 96 pgdp = pgd_offset_k(ea); in map_kernel_page() 97 p4dp = p4d_offset(pgdp, ea); in map_kernel_page() 102 pudp = pud_offset(p4dp, ea); in map_kernel_page() 107 pmdp = pmd_offset(pudp, ea); in map_kernel_page() [all …]
|
/openbmc/linux/fs/udf/ |
H A D | misc.c | 15 * 04/19/99 blf partial support for reading/writing specific EA's 30 uint8_t *ea = NULL, *ad = NULL; in udf_add_extendedattr() local 35 ea = iinfo->i_data; in udf_add_extendedattr() 39 ad = ea; in udf_add_extendedattr() 50 eahd = (struct extendedAttrHeaderDesc *)ea; in udf_add_extendedattr() 87 memmove(&ea[offset - aal + size], in udf_add_extendedattr() 88 &ea[aal], offset - aal); in udf_add_extendedattr() 97 memmove(&ea[offset - ial + size], in udf_add_extendedattr() 98 &ea[ial], offset - ial); in udf_add_extendedattr() 108 memmove(&ea[offset - aal + size], in udf_add_extendedattr() [all …]
|
/openbmc/linux/drivers/pci/controller/ |
H A D | pci-thunder-ecam.c | 49 v |= 2; /* EA entry-1. Base-L */ in handle_ea_bar() 67 v |= 0xc; /* EA entry-2. Offset-L */ in handle_ea_bar() 76 v = readl(addr); /* EA entry-3. Base-H */ in handle_ea_bar() 92 /* EA Base[63:32] may be missing some bits ... */ in thunder_ecam_p2_config_read() 158 * All BARs have fixed addresses specified by the EA in thunder_ecam_config_read() 196 v |= 0xbc00; /* next capability is EA at 0xbc */ in thunder_ecam_config_read() 208 v |= 0xbc00; /* next capability is EA at 0xbc */ in thunder_ecam_config_read() 214 v = 0x40014; /* EA last in chain, 4 entries */ in thunder_ecam_config_read() 216 v = 0x30014; /* EA last in chain, 3 entries */ in thunder_ecam_config_read() 218 v = 0x20014; /* EA last in chain, 2 entries */ in thunder_ecam_config_read() [all …]
|
/openbmc/qemu/target/tricore/ |
H A D | op_helper.c | 2461 static void save_context_upper(CPUTriCoreState *env, target_ulong ea) in save_context_upper() argument 2463 cpu_stl_data(env, ea, env->PCXI); in save_context_upper() 2464 cpu_stl_data(env, ea+4, psw_read(env)); in save_context_upper() 2465 cpu_stl_data(env, ea+8, env->gpr_a[10]); in save_context_upper() 2466 cpu_stl_data(env, ea+12, env->gpr_a[11]); in save_context_upper() 2467 cpu_stl_data(env, ea+16, env->gpr_d[8]); in save_context_upper() 2468 cpu_stl_data(env, ea+20, env->gpr_d[9]); in save_context_upper() 2469 cpu_stl_data(env, ea+24, env->gpr_d[10]); in save_context_upper() 2470 cpu_stl_data(env, ea+28, env->gpr_d[11]); in save_context_upper() 2471 cpu_stl_data(env, ea+32, env->gpr_a[12]); in save_context_upper() [all …]
|
/openbmc/linux/drivers/misc/cxl/ |
H A D | fault.c | 85 u64 ea) in cxl_fault_segment() argument 90 if (!(rc = copro_calculate_slb(mm, ea, &slb))) { in cxl_fault_segment() 113 struct mm_struct *mm, u64 ea) in cxl_handle_segment_miss() argument 117 pr_devel("CXL interrupt: Segment fault pe: %i ea: %#llx\n", ctx->pe, ea); in cxl_handle_segment_miss() 118 trace_cxl_ste_miss(ctx, ea); in cxl_handle_segment_miss() 120 if ((rc = cxl_fault_segment(ctx, mm, ea))) in cxl_handle_segment_miss() 283 static u64 next_segment(u64 ea, u64 vsid) in next_segment() argument 286 ea |= (1ULL << 40) - 1; in next_segment() 288 ea |= (1ULL << 28) - 1; in next_segment() 290 return ea + 1; in next_segment() [all …]
|
/openbmc/linux/arch/powerpc/platforms/cell/spufs/ |
H A D | fault.c | 24 unsigned long ea, int type) in spufs_handle_event() argument 38 force_sig_fault(SIGSEGV, SEGV_ACCERR, (void __user *)ea); in spufs_handle_event() 88 u64 ea, dsisr, access; in spufs_handle_class1() local 102 ea = ctx->csa.class_1_dar; in spufs_handle_class1() 110 pr_debug("ctx %p: ea %016llx, dsisr %016llx state %d\n", ctx, ea, in spufs_handle_class1() 123 ret = hash_page(ea, access, 0x300, dsisr); in spufs_handle_class1() 128 ret = copro_handle_mm_fault(current->mm, ea, dsisr, &flt); in spufs_handle_class1() 163 spufs_handle_event(ctx, ea, SPE_EVENT_SPE_DATA_STORAGE); in spufs_handle_class1()
|