Home
last modified time | relevance | path

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

123456

/linux/fs/hpfs/
H A Dea.c20 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()
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()
81 struct extended_attribute *ea; in hpfs_read_ea() local
83 for (ea = fnode_ea(fnode); ea < ea_end; ea = next_ea(ea)) in hpfs_read_ea()
84 if (!strcmp(ea->name, key)) { in hpfs_read_ea()
85 if (ea_indirect(ea)) in hpfs_read_ea()
[all …]
H A Dinode.c50 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 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()
/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
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 Dxattr.c85 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()
103 if (!(bh->b_data <= (char *)ea && (char *)GFS2_EA2NEXT(ea) <= in ea_foreach_i()
108 if (!gfs2_eatype_valid(sdp, ea->ea_type)) { in ea_foreach_i()
112 error = ea_call(ip, bh, ea, prev, data); in ea_foreach_i()
116 if (GFS2_EA_IS_LAST(ea)) { in ea_foreach_i()
117 if ((char *)GFS2_EA2NEXT(ea) != in ea_foreach_i()
180 struct gfs2_ea_header *ea, struct gfs2_ea_header *prev, in ea_find_i() argument
[all …]
/linux/fs/jfs/
H A Dxattr.c95 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
105 int len = ea->namelen; in copy_name()
107 if (!is_known_namespace(ea->name)) { in copy_name()
112 memcpy(buffer, ea->name, ea->namelen); in copy_name()
113 buffer[ea->namelen] = 0; in copy_name()
144 int size, dxd_t * ea) in ea_write_inline() argument
[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)
/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()
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 …]
/linux/arch/powerpc/kernel/
H A Dhw_breakpoint_constraints.c14 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 …]
/linux/arch/nios2/kernel/
H A Dtraps.c116 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 …]
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()
/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
427 return (vsid << (s_shift - VPN_SHIFT)) | ((ea >> VPN_SHIFT) & mask); in hpt_vpn()
459 extern int __hash_page_4K(unsigned long ea, unsigned long access,
462 extern int __hash_page_64K(unsigned long ea, unsigned long access,
467 extern int hash_page_mm(struct mm_struct *mm, unsigned long ea,
470 extern int hash_page(unsigned long ea, unsigned long access, unsigned long trap,
473 int __hash_page(unsigned long trap, unsigned long ea, unsigned long dsisr, unsigned long msr);
474 int __hash_page_huge(unsigned long ea, unsigned long access, unsigned long vsid,
[all …]
H A Dhash.h91 #define NON_LINEAR_REGION_ID(ea) ((((unsigned long)ea - H_KERN_VIRT_START) >> REGION_SHIFT) + 2) argument
116 static inline int get_region_id(unsigned long ea) in get_region_id() argument
119 int id = (ea >> 60UL); in get_region_id()
127 if (ea < H_KERN_VIRT_START) in get_region_id()
132 region_id = NON_LINEAR_REGION_ID(ea); in get_region_id()
287 int hash__map_kernel_page(unsigned long ea, unsigned long pa, pgprot_t prot);
/linux/drivers/misc/cxl/
H A Dfault.c85 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 …]
/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()
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()
109 &ea[aal], offset - aal); in udf_add_extendedattr()
[all …]
/linux/drivers/hwtracing/coresight/
H A Dcoresight-etm-perf.c775 struct dev_ext_attribute *ea; in etm_perf_sink_name_show() local
777 ea = container_of(dattr, struct dev_ext_attribute, attr); in etm_perf_sink_name_show()
778 return scnprintf(buf, PAGE_SIZE, "0x%lx\n", (unsigned long)(ea->var)); in etm_perf_sink_name_show()
784 struct dev_ext_attribute *ea; in etm_perf_add_symlink_group() local
792 ea = devm_kzalloc(dev, sizeof(*ea), GFP_KERNEL); in etm_perf_add_symlink_group()
793 if (!ea) in etm_perf_add_symlink_group()
804 sysfs_attr_init(&ea->attr.attr); in etm_perf_add_symlink_group()
805 ea->attr.attr.name = devm_kstrdup(dev, name, GFP_KERNEL); in etm_perf_add_symlink_group()
806 if (!ea->attr.attr.name) in etm_perf_add_symlink_group()
809 ea->attr.attr.mode = 0444; in etm_perf_add_symlink_group()
[all …]
/linux/fs/ntfs3/
H A Dxattr.c24 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 …]
/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()
/linux/arch/powerpc/mm/ptdump/
H A Dhashpagetable.c183 static void dump_hpte_info(struct pg_state *st, unsigned long ea, u64 v, u64 r, in dump_hpte_info() argument
188 while (ea >= st->marker[1].start_address) { in dump_hpte_info()
192 seq_printf(st->seq, "0x%lx:\t", ea); in dump_hpte_info()
206 static int native_find(unsigned long ea, int psize, bool primary, u64 *v, u64 in native_find() argument
215 vsid = get_kernel_vsid(ea, ssize); in native_find()
216 vpn = hpt_vpn(ea, vsid, ssize); in native_find()
239 static int pseries_find(unsigned long ea, int psize, bool primary, u64 *v, u64 *r) in pseries_find() argument
251 vsid = get_kernel_vsid(ea, ssize); in pseries_find()
252 vpn = hpt_vpn(ea, vsid, ssize); in pseries_find()
316 static int base_hpte_find(unsigned long ea, int psize, bool primary, u64 *v, in base_hpte_find() argument
[all …]
/linux/tools/testing/selftests/net/
H A Dnetlink-dumps.c35 static int nl_get_extack(char *buf, size_t n, struct ext_ack *ea) in nl_get_extack() argument
49 ea->err = -*(int *)NLMSG_DATA(nlh); in nl_get_extack()
57 ea->attr_offs = ynl_attr_get_u32(attr); in nl_get_extack()
60 ea->miss_type = ynl_attr_get_u32(attr); in nl_get_extack()
63 ea->miss_nest = ynl_attr_get_u32(attr); in nl_get_extack()
66 ea->str = ynl_attr_get_str(attr); in nl_get_extack()
134 struct ext_ack ea = {}; in TEST() local
143 EXPECT_EQ(nl_get_extack(buf, n, &ea), 2); in TEST()
144 EXPECT_EQ(ea.attr_offs, in TEST()
/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()
/linux/arch/powerpc/mm/kasan/
H A Dinit_book3e_64.c32 static int __init kasan_map_kernel_page(unsigned long ea, unsigned long pa, pgprot_t prot) in kasan_map_kernel_page() argument
40 pgdp = pgd_offset_k(ea); in kasan_map_kernel_page()
41 p4dp = p4d_offset(pgdp, ea); in kasan_map_kernel_page()
47 pudp = pud_offset(p4dp, ea); in kasan_map_kernel_page()
53 pmdp = pmd_offset(pudp, ea); in kasan_map_kernel_page()
59 ptep = pte_offset_kernel(pmdp, ea); in kasan_map_kernel_page()
61 __set_pte_at(&init_mm, ea, ptep, pfn_pte(pa >> PAGE_SHIFT, prot), 0); in kasan_map_kernel_page()
/linux/arch/powerpc/mm/nohash/
H A De500_hugetlbpage.c104 static inline int book3e_tlb_exists(unsigned long ea, unsigned long pid) in book3e_tlb_exists() argument
113 : "=&r"(found) : "r"(ea)); in book3e_tlb_exists()
119 book3e_hugetlb_preload(struct vm_area_struct *vma, unsigned long ea, pte_t pte) in book3e_hugetlb_preload() argument
128 if (unlikely(is_kernel_addr(ea))) in book3e_hugetlb_preload()
144 if (unlikely(book3e_tlb_exists(ea, mm->context.id))) { in book3e_hugetlb_preload()
155 mas2 = ea & ~((1UL << shift) - 1); in book3e_hugetlb_preload()
/linux/arch/powerpc/mm/book3s64/
H A Dhash_64k.c38 int __hash_page_4K(unsigned long ea, unsigned long access, unsigned long vsid, in __hash_page_4K() argument
89 subpg_index = (ea & (PAGE_SIZE - 1)) >> shift; in __hash_page_4K()
90 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_4K()
213 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_4K()
222 hpt_do_stress(ea, hpte_group); in __hash_page_4K()
228 int __hash_page_64K(unsigned long ea, unsigned long access, in __hash_page_64K() argument
275 vpn = hpt_vpn(ea, vsid, ssize); in __hash_page_64K()
328 hash_failure_debug(ea, access, vsid, trap, ssize, in __hash_page_64K()
337 hpt_do_stress(ea, hpte_group); in __hash_page_64K()
/linux/drivers/net/ipa/
H A Dipa_sysfs.c105 struct dev_ext_attribute *ea; in ipa_endpoint_id_is_visible() local
110 ea = container_of(dev_attr, struct dev_ext_attribute, attr); in ipa_endpoint_id_is_visible()
112 visible = !!ipa->name_map[(enum ipa_endpoint_name)(uintptr_t)ea->var]; in ipa_endpoint_id_is_visible()
122 struct dev_ext_attribute *ea; in endpoint_id_attr_show() local
124 ea = container_of(attr, struct dev_ext_attribute, attr); in endpoint_id_attr_show()
125 endpoint = ipa->name_map[(enum ipa_endpoint_name)(uintptr_t)ea->var]; in endpoint_id_attr_show()

123456