Home
last modified time | relevance | path

Searched refs:ea (Results 1 – 25 of 246) sorted by relevance

12345678910

/openbmc/linux/fs/hpfs/
H A Dea.c35 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()
83 for (ea = fnode_ea(fnode); ea < ea_end; ea = next_ea(ea)) in hpfs_read_ea()
89 memcpy(buf, ea_data(ea), ea_valuelen(ea)); in hpfs_read_ea()
117 pos += ea->namelen + ea_valuelen(ea) + 5; in hpfs_read_ea()
123 if (hpfs_ea_read(s, ea_sec(ea), ea_in_anode(ea), 0, ea_len(ea), buf)) in hpfs_read_ea()
138 for (ea = fnode_ea(fnode); ea < ea_end; ea = next_ea(ea)) in hpfs_get_ea()
141 return get_indirect_ea(s, ea_in_anode(ea), ea_sec(ea), *size = ea_len(ea)); in hpfs_get_ea()
167 return get_indirect_ea(s, ea_in_anode(ea), ea_sec(ea), *size = ea_len(ea)); in hpfs_get_ea()
179 pos += ea->namelen + ea_valuelen(ea) + 5; in hpfs_get_ea()
[all …]
H A Dinode.c50 void *ea; in hpfs_read_inode() local
68 kfree(ea); in hpfs_read_inode()
75 kfree(ea); in hpfs_read_inode()
78 kfree(ea); in hpfs_read_inode()
93 mode = le16_to_cpu(*(__le16*)ea); in hpfs_read_inode()
96 kfree(ea); in hpfs_read_inode()
102 kfree(ea); in hpfs_read_inode()
154 __le32 ea; in hpfs_write_inode_ea() local
156 ea = cpu_to_le32(i_uid_read(i)); in hpfs_write_inode_ea()
161 ea = cpu_to_le32(i_gid_read(i)); in hpfs_write_inode_ea()
[all …]
H A Dhpfs_fn.h145 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
162 return le32_to_cpu(get_unaligned((__le32 *)((char *)ea + 5 + ea->namelen))); in ea_len()
165 static inline char *ea_data(struct extended_attribute *ea) in ea_data() argument
167 return (char *)((char *)ea + 5 + ea->namelen); in ea_data()
/openbmc/linux/fs/gfs2/
H A Dxattr.h13 #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
18 ((GFS2_EA_IS_STUFFED(ea)) ? GFS2_EA_DATA_LEN(ea) : \
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
31 ((__be64 *)(GFS2_EA2NAME(ea) + ALIGN((ea)->ea_name_len, 8)))
33 #define GFS2_EA2NEXT(ea) \ argument
[all …]
H A Dxattr.c98 for (ea = GFS2_EA_BH2FIRST(bh);; prev = ea, ea = GFS2_EA2NEXT(ea)) { in ea_foreach_i()
101 if (!(bh->b_data <= (char *)ea && (char *)GFS2_EA2NEXT(ea) <= in ea_foreach_i()
186 !memcmp(GFS2_EA2NAME(ea), ef->name, ea->ea_name_len)) { in ea_find_i()
190 el->el_ea = ea; in ea_find_i()
311 ea->ea_num_ptrs = 0; in ea_dealloc_unstuffed()
655 ea->ea_num_ptrs = 0; in ea_alloc_blk()
683 ea->__pad = 0; in ea_write()
884 ea = ea_split_ea(ea); in ea_set_simple_noalloc()
908 ea = ea_split_ea(ea); in ea_set_simple_alloc()
941 } else if (GFS2_EA_REC_LEN(ea) - GFS2_EA_SIZE(ea) >= size) in ea_set_simple()
[all …]
/openbmc/linux/fs/jfs/
H A Dxattr.c112 memcpy(buffer, ea->name, ea->namelen); in copy_name()
169 ea->flag = 0; in ea_write_inline()
170 DXDsize(ea, 0); in ea_write_inline()
686 for (ea = FIRST_EA(ealist); ea < END_EALIST(ealist); in __jfs_setxattr()
687 ea = NEXT_EA(ea)) { in __jfs_setxattr()
695 old_ea = ea; in __jfs_setxattr()
759 ea->flag = 0; in __jfs_setxattr()
825 for (ea = FIRST_EA(ealist); ea < ealist_end; ea = NEXT_EA(ea)) { in __jfs_getxattr()
842 value = ((char *) &ea->name) + ea->namelen + 1; in __jfs_getxattr()
892 for (ea = FIRST_EA(ealist); ea < ealist_end; ea = NEXT_EA(ea)) { in jfs_listxattr()
[all …]
H A Djfs_xattr.h25 struct jfs_ea ea[]; /* Variable length list */ member
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/arch/powerpc/mm/
H A Dcopro_fault.c23 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()
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()
102 vsid = get_kernel_vsid(ea, mmu_kernel_ssize); in copro_calculate_slb()
106 pr_devel("%s: 0x%llx -- IO_REGION_ID\n", __func__, ea); in copro_calculate_slb()
109 vsid = get_kernel_vsid(ea, mmu_kernel_ssize); in copro_calculate_slb()
[all …]
/openbmc/linux/arch/powerpc/lib/
H A Dsstep.c134 return ea; in dform_ea()
152 return ea; in dsform_ea()
169 return ea; in dqform_ea()
188 return ea; in xform_ea()
215 ea = (ea << 2) | (d & 0x3); in mlsd_8lsd_ea()
229 return ea; in mlsd_8lsd_ea()
377 ea += c; in __copy_mem_in()
513 ea += c; in __copy_mem_out()
1075 ea = truncate_if_32bit(regs->msr, ea); in emulate_dcbz()
3337 ea = truncate_if_32bit(regs->msr, op->ea); in emulate_loadstore()
[all …]
/openbmc/linux/arch/powerpc/mm/book3s64/
H A Dslb.c59 ea &= ~((1UL << SID_SHIFT) - 1); in assert_slb_presence()
98 assert_slb_presence(false, ea); in create_shadowed_slbe()
304 if (ea & ESID_MASK_1T) in preload_add()
305 ea &= ESID_MASK_1T; in preload_add()
308 esid = ea >> SID_SHIFT; in preload_add()
521 unsigned long ea; in switch_slb() local
526 slb_allocate_user(mm, ea); in switch_slb()
754 if (ea >= H_VMEMMAP_END) in slb_allocate_kernel()
761 if (ea >= H_VMALLOC_END) in slb_allocate_kernel()
768 if (ea >= H_KERN_IO_END) in slb_allocate_kernel()
[all …]
H A Dhash_utils.c1382 if (ea >= spt->maxaddr) in subpage_protection()
1384 if (ea < 0x100000000UL) { in subpage_protection()
1424 ea, access, current->comm); in hash_failure_debug()
1465 ea, access, trap); in hash_page_mm()
1469 switch (get_region_id(ea)) { in hash_page_mm()
1596 demote_segment_4k(mm, ea); in hash_page_mm()
1606 demote_segment_4k(mm, ea); in hash_page_mm()
1681 unsigned long ea = regs->dar; in DEFINE_INTERRUPT_HANDLER() local
1694 region_id = get_region_id(ea); in DEFINE_INTERRUPT_HANDLER()
1778 ssize = user_segment_size(ea); in hash_preload()
[all …]
/openbmc/linux/arch/nios2/kernel/
H A Dtraps.c116 fp->ea -= 4; in breakpoint_c()
127 fp->ea -= 4; 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()
177 regs->ea -= 4; in unhandled_exception()
185 _send_sig(SIGUSR1, 0, fp->ea); in handle_trap_1_c()
190 _send_sig(SIGUSR2, 0, fp->ea); in handle_trap_2_c()
[all …]
H A Dmisaligned.c75 fp->ea -= 4; in handle_unaligned_c()
83 isn = *(unsigned long *)(fp->ea); in handle_unaligned_c()
156 fp->ea, (unsigned int)addr, in handle_unaligned_c()
160 fp->ea, in handle_unaligned_c()
164 _exception(SIGSEGV, fp, SEGV_MAPERR, fp->ea); in handle_unaligned_c()
174 fp->ea += 4; in handle_unaligned_c()
178 fp->ea, in handle_unaligned_c()
195 fp->ea, fp->ra, fp->sp); in handle_unaligned_c()
199 _exception(SIGBUS, fp, BUS_ADRALN, fp->ea); in handle_unaligned_c()
201 fp->ea += 4; /* else advance */ in handle_unaligned_c()
/openbmc/linux/arch/powerpc/kernel/
H A Dhw_breakpoint_constraints.c17 return ((ea < info->address + info->len) && in ea_user_range_overlaps()
18 (ea + size > info->address)); in ea_user_range_overlaps()
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()
148 *ea &= 0xffffffffUL; in wp_get_instr_detail()
154 *ea &= ~(*size - 1); in wp_get_instr_detail()
[all …]
/openbmc/linux/arch/powerpc/mm/nohash/
H A Dbook3e_pgtable.c84 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()
112 ptep = pte_offset_kernel(pmdp, ea); in map_kernel_page()
[all …]
/openbmc/linux/arch/powerpc/include/asm/book3s/64/
H A Dmmu-hash.h146 unsigned long ea,
156 int (*hpte_removebolted)(unsigned long ea,
420 static inline unsigned long hpt_vpn(unsigned long ea, in hpt_vpn() argument
788 if ((ea & EA_MASK) >= H_PGTABLE_RANGE) in get_vsid()
797 ((ea >> SID_SHIFT) & ESID_BITS_MASK); in get_vsid()
803 ((ea >> SID_SHIFT_1T) & ESID_BITS_1T_MASK); in get_vsid()
825 unsigned long region_id = get_region_id(ea); in get_kernel_context()
835 ctx = 1 + ((ea & EA_MASK) >> MAX_EA_BITS_PER_CONTEXT); in get_kernel_context()
848 if (!is_kernel_addr(ea)) in get_kernel_vsid()
851 context = get_kernel_context(ea); in get_kernel_vsid()
[all …]
/openbmc/linux/drivers/misc/cxl/
H A Dfault.c85 u64 ea) in cxl_fault_segment() argument
113 struct mm_struct *mm, u64 ea) in cxl_handle_segment_miss() argument
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()
295 u64 ea, last_esid = 0; in cxl_prefault_vma() local
303 for (ea = vma->vm_start; ea < vma->vm_end; in cxl_prefault_vma()
[all …]
/openbmc/linux/fs/ntfs3/
H A Dxattr.c26 return ea->size ? le32_to_cpu(ea->size) : in unpacked_ea_size()
28 1 + ea->name_len + in unpacked_ea_size()
36 1 + ea->name_len + le16_to_cpu(ea->elength)) - in packed_ea_size()
85 *ea = NULL; in ntfs_read_ea()
173 *ea = ea_p; in ntfs_read_ea()
219 if (!ea->name_len) in ntfs_list_ea()
238 memcpy(buffer + ret, ea->name, ea->name_len); in ntfs_list_ea()
301 memcpy(buffer, ea->name + ea->name_len + 1, len); in ntfs_get_ea()
361 struct EA_FULL *ea; in ntfs_set_ea() local
375 !memcmp(ea->name + ea->name_len + 1, value, val_size)) { in ntfs_set_ea()
[all …]
/openbmc/u-boot/drivers/net/
H A Dmcffec.c401 uchar ea[6]; in fec_init() local
431 (ea[0] << 24) | (ea[1] << 16) | (ea[2] << 8) | (ea[3]); in fec_init()
432 fecp1->paur = (ea[4] << 24) | (ea[5] << 16); in fec_init()
434 eth_env_get_enetaddr("ethaddr", ea); in fec_init()
436 (ea[0] << 24) | (ea[1] << 16) | (ea[2] << 8) | (ea[3]); in fec_init()
437 fecp->paur = (ea[4] << 24) | (ea[5] << 16); in fec_init()
441 eth_env_get_enetaddr("ethaddr", ea); in fec_init()
443 (ea[0] << 24) | (ea[1] << 16) | (ea[2] << 8) | (ea[3]); in fec_init()
444 fecp0->paur = (ea[4] << 24) | (ea[5] << 16); in fec_init()
449 (ea[0] << 24) | (ea[1] << 16) | (ea[2] << 8) | (ea[3]); in fec_init()
[all …]
/openbmc/linux/drivers/hwtracing/coresight/
H A Dcoresight-etm-perf.c758 struct dev_ext_attribute *ea; in etm_perf_sink_name_show() local
775 ea = devm_kzalloc(dev, sizeof(*ea), GFP_KERNEL); in etm_perf_add_symlink_group()
776 if (!ea) in etm_perf_add_symlink_group()
789 if (!ea->attr.attr.name) in etm_perf_add_symlink_group()
792 ea->attr.attr.mode = 0444; in etm_perf_add_symlink_group()
811 if (csdev->ea != NULL) in etm_perf_add_symlink_sink()
816 if (IS_ERR(csdev->ea)) { in etm_perf_add_symlink_sink()
817 err = PTR_ERR(csdev->ea); in etm_perf_add_symlink_sink()
818 csdev->ea = NULL; in etm_perf_add_symlink_sink()
839 if (!csdev->ea) in etm_perf_del_symlink_sink()
[all …]
/openbmc/linux/fs/udf/
H A Dmisc.c30 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()
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()
109 &ea[aal], offset - aal); in udf_add_extendedattr()
132 uint8_t *ea = NULL; in udf_get_extendedattr() local
[all …]
/openbmc/linux/arch/powerpc/platforms/cell/spufs/
H A Dfault.c24 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()
/openbmc/qemu/target/tricore/
H A Dop_helper.c2546 target_ulong ea; in helper_call() local
2582 save_context_upper(env, ea); in helper_call()
2608 target_ulong ea; in helper_ret() local
2662 target_ulong ea; in helper_bisr() local
2677 save_context_lower(env, ea); in helper_bisr()
2705 target_ulong ea; in helper_rfe() local
2782 save_context_lower(env, ea); in helper_stlcx()
2787 save_context_upper(env, ea); in helper_stucx()
2793 target_ulong ea; in helper_svlcx() local
2836 target_ulong ea; in helper_svucx() local
[all …]
/openbmc/linux/arch/powerpc/include/asm/
H A Dpte-walk.h7 extern pte_t *__find_linux_pte(pgd_t *pgdir, unsigned long ea,
10 static inline pte_t *find_linux_pte(pgd_t *pgdir, unsigned long ea, in find_linux_pte() argument
16 pte = __find_linux_pte(pgdir, ea, is_thp, hshift); in find_linux_pte()
29 static inline pte_t *find_init_mm_pte(unsigned long ea, unsigned *hshift) in find_init_mm_pte() argument
32 return __find_linux_pte(pgdir, ea, NULL, hshift); in find_init_mm_pte()
/openbmc/linux/fs/smb/client/
H A Dreparse.c358 struct smb2_file_full_ea_info *ea; in wsl_set_xattrs() local
394 ea = &cc->ea; in wsl_set_xattrs()
396 ea = (void *)((u8 *)ea + next); in wsl_set_xattrs()
403 memcpy(&ea->ea_data[name_size], in wsl_set_xattrs()
406 ea->next_entry_offset = 0; in wsl_set_xattrs()
440 memcpy(data.wsl.eas, &cc->ea, len); in mknod_wsl()
612 struct smb2_file_full_ea_info *ea; in wsl_to_fattr() local
642 ea = (void *)((u8 *)ea + next); in wsl_to_fattr()
647 name = ea->ea_data; in wsl_to_fattr()
648 nlen = ea->ea_name_length; in wsl_to_fattr()
[all …]

12345678910