Home
last modified time | relevance | path

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

12

/linux-4.19.296/fs/hpfs/
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 …]
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 …]
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()
Dhpfs.h470 u8 ea[316]; /* zero or more EA's, packed together member
546 static inline bool ea_indirect(struct extended_attribute *ea) in ea_indirect() argument
548 return ea->flags & EA_indirect; in ea_indirect()
551 static inline bool ea_in_anode(struct extended_attribute *ea) in ea_in_anode() argument
553 return ea->flags & EA_anode; in ea_in_anode()
Dmap.c172 struct extended_attribute *ea; in hpfs_map_fnode() local
203 ea = fnode_ea(fnode); in hpfs_map_fnode()
205 while (ea != ea_end) { in hpfs_map_fnode()
206 if (ea > ea_end) { in hpfs_map_fnode()
211 ea = next_ea(ea); in hpfs_map_fnode()
Danode.c485 struct extended_attribute *ea; in hpfs_remove_fnode() local
491 for (ea = fnode_ea(fnode); ea < ea_end; ea = next_ea(ea)) in hpfs_remove_fnode()
492 if (ea_indirect(ea)) in hpfs_remove_fnode()
493 hpfs_ea_remove(s, ea_sec(ea), ea_in_anode(ea), ea_len(ea)); in hpfs_remove_fnode()
DMakefile7 hpfs-objs := alloc.o anode.o buffer.o dentry.o dir.o dnode.o ea.o file.o \
/linux-4.19.296/fs/gfs2/
Dxattr.h16 #define GFS2_EA_REC_LEN(ea) be32_to_cpu((ea)->ea_rec_len) argument
17 #define GFS2_EA_DATA_LEN(ea) be32_to_cpu((ea)->ea_data_len) argument
19 #define GFS2_EA_SIZE(ea) \ argument
20 ALIGN(sizeof(struct gfs2_ea_header) + (ea)->ea_name_len + \
21 ((GFS2_EA_IS_STUFFED(ea)) ? GFS2_EA_DATA_LEN(ea) : \
22 (sizeof(__be64) * (ea)->ea_num_ptrs)), 8)
24 #define GFS2_EA_IS_STUFFED(ea) (!(ea)->ea_num_ptrs) argument
25 #define GFS2_EA_IS_LAST(ea) ((ea)->ea_flags & GFS2_EAFLAG_LAST) argument
30 #define GFS2_EA2NAME(ea) ((char *)((struct gfs2_ea_header *)(ea) + 1)) argument
31 #define GFS2_EA2DATA(ea) (GFS2_EA2NAME(ea) + (ea)->ea_name_len) argument
[all …]
Dxattr.c77 struct gfs2_ea_header *ea,
83 struct gfs2_ea_header *ea, *prev = NULL; in ea_foreach_i() local
89 for (ea = GFS2_EA_BH2FIRST(bh);; prev = ea, ea = GFS2_EA2NEXT(ea)) { in ea_foreach_i()
90 if (!GFS2_EA_REC_LEN(ea)) in ea_foreach_i()
92 if (!(bh->b_data <= (char *)ea && (char *)GFS2_EA2NEXT(ea) <= in ea_foreach_i()
95 if (!GFS2_EATYPE_VALID(ea->ea_type)) in ea_foreach_i()
98 error = ea_call(ip, bh, ea, prev, data); in ea_foreach_i()
102 if (GFS2_EA_IS_LAST(ea)) { in ea_foreach_i()
103 if ((char *)GFS2_EA2NEXT(ea) != in ea_foreach_i()
168 struct gfs2_ea_header *ea, struct gfs2_ea_header *prev, in ea_find_i() argument
[all …]
Dinode.c437 struct gfs2_ea_header *ea; in gfs2_init_xattr() local
444 ea = GFS2_EA_BH2FIRST(bh); in gfs2_init_xattr()
445 ea->ea_rec_len = cpu_to_be32(sdp->sd_jbsize); in gfs2_init_xattr()
446 ea->ea_type = GFS2_EATYPE_UNUSED; in gfs2_init_xattr()
447 ea->ea_flags = GFS2_EAFLAG_LAST; in gfs2_init_xattr()
/linux-4.19.296/fs/jfs/
Dxattr.c108 static inline int name_size(struct jfs_ea *ea) in name_size() argument
110 if (is_known_namespace(ea->name)) in name_size()
111 return ea->namelen; in name_size()
113 return ea->namelen + XATTR_OS2_PREFIX_LEN; in name_size()
116 static inline int copy_name(char *buffer, struct jfs_ea *ea) in copy_name() argument
118 int len = ea->namelen; in copy_name()
120 if (!is_known_namespace(ea->name)) { in copy_name()
125 memcpy(buffer, ea->name, ea->namelen); in copy_name()
126 buffer[ea->namelen] = 0; in copy_name()
157 int size, dxd_t * ea) in ea_write_inline() argument
[all …]
Djfs_xattr.h38 struct jfs_ea ea[0]; /* Variable length list */ member
48 #define EA_SIZE(ea) \ argument
49 (sizeof (struct jfs_ea) + (ea)->namelen + 1 + \
50 le16_to_cpu((ea)->valuelen))
51 #define NEXT_EA(ea) ((struct jfs_ea *) (((char *) (ea)) + (EA_SIZE (ea)))) argument
52 #define FIRST_EA(ealist) ((ealist)->ea)
Dnamei.c51 dxd_t *ea = &JFS_IP(inode)->ea; in free_ea_wmap() local
53 if (ea->flag & DXD_EXTENT) { in free_ea_wmap()
55 invalidate_dxd_metapages(inode, *ea); in free_ea_wmap()
56 dbFree(inode, addressDXD(ea), lengthDXD(ea)); in free_ea_wmap()
58 ea->flag = 0; in free_ea_wmap()
412 if (JFS_IP(ip)->ea.flag & DXD_EXTENT) { in jfs_rmdir()
414 txEA(tid, ip, &JFS_IP(ip)->ea, NULL); in jfs_rmdir()
416 JFS_IP(ip)->ea.flag = 0; in jfs_rmdir()
666 if (JFS_IP(ip)->ea.flag & DXD_EXTENT) in commitZeroLink()
668 txEA(tid, ip, &JFS_IP(ip)->ea, NULL); in commitZeroLink()
[all …]
Djfs_inode.c121 memset(&jfs_inode->ea, 0, sizeof(dxd_t)); in ialloc()
Djfs_incore.h45 dxd_t ea; /* dxd describing ea */ member
/linux-4.19.296/drivers/misc/cxl/
Dfault.c89 u64 ea) in cxl_fault_segment() argument
94 if (!(rc = copro_calculate_slb(mm, ea, &slb))) { in cxl_fault_segment()
117 struct mm_struct *mm, u64 ea) in cxl_handle_segment_miss() argument
121 pr_devel("CXL interrupt: Segment fault pe: %i ea: %#llx\n", ctx->pe, ea); in cxl_handle_segment_miss()
122 trace_cxl_ste_miss(ctx, ea); in cxl_handle_segment_miss()
124 if ((rc = cxl_fault_segment(ctx, mm, ea))) in cxl_handle_segment_miss()
287 static void cxl_prefault_one(struct cxl_context *ctx, u64 ea) in cxl_prefault_one() argument
298 cxl_fault_segment(ctx, mm, ea); in cxl_prefault_one()
303 static u64 next_segment(u64 ea, u64 vsid) in next_segment() argument
306 ea |= (1ULL << 40) - 1; in next_segment()
[all …]
/linux-4.19.296/fs/udf/
Dmisc.c50 uint8_t *ea = NULL, *ad = NULL; in udf_add_extendedattr() local
55 ea = iinfo->i_data; in udf_add_extendedattr()
59 ad = ea; in udf_add_extendedattr()
70 eahd = (struct extendedAttrHeaderDesc *)ea; in udf_add_extendedattr()
107 memmove(&ea[offset - aal + size], in udf_add_extendedattr()
108 &ea[aal], offset - aal); in udf_add_extendedattr()
117 memmove(&ea[offset - ial + size], in udf_add_extendedattr()
118 &ea[ial], offset - ial); in udf_add_extendedattr()
128 memmove(&ea[offset - aal + size], in udf_add_extendedattr()
129 &ea[aal], offset - aal); in udf_add_extendedattr()
[all …]
Dnamei.c906 uint8_t *ea; in udf_symlink() local
962 ea = epos.bh->b_data + udf_ext0_offset(inode); in udf_symlink()
964 ea = iinfo->i_data + iinfo->i_lenEAttr; in udf_symlink()
967 pc = (struct pathComponent *)ea; in udf_symlink()
986 pc = (struct pathComponent *)(ea + elen); in udf_symlink()
/linux-4.19.296/drivers/slimbus/
Dqcom-ctrl.c452 struct slim_eaddr ea; in qcom_slim_rxwq() local
455 ea.manf_id = be16_to_cpup((__be16 *)&buf[2]); in qcom_slim_rxwq()
456 ea.prod_code = be16_to_cpup((__be16 *)&buf[4]); in qcom_slim_rxwq()
457 ea.dev_index = buf[6]; in qcom_slim_rxwq()
458 ea.instance = buf[7]; in qcom_slim_rxwq()
460 ret = slim_device_report_present(&ctrl->ctrl, &ea, in qcom_slim_rxwq()
Dslimbus.h423 struct slim_eaddr *ea, u8 laddr);
425 struct slim_eaddr *ea, u8 *laddr);
Dqcom-ngd-ctrl.c1004 struct slim_eaddr *ea, u8 *laddr) in qcom_slim_ngd_get_laddr() argument
1029 memcpy(&wbuf[1], ea, sizeof(*ea)); in qcom_slim_ngd_get_laddr()
/linux-4.19.296/drivers/base/
Dcore.c981 struct dev_ext_attribute *ea = to_ext_attr(attr); in device_store_ulong() local
986 *(unsigned long *)(ea->var) = new; in device_store_ulong()
996 struct dev_ext_attribute *ea = to_ext_attr(attr); in device_show_ulong() local
997 return snprintf(buf, PAGE_SIZE, "%lx\n", *(unsigned long *)(ea->var)); in device_show_ulong()
1005 struct dev_ext_attribute *ea = to_ext_attr(attr); in device_store_int() local
1010 *(int *)(ea->var) = new; in device_store_int()
1020 struct dev_ext_attribute *ea = to_ext_attr(attr); in device_show_int() local
1022 return snprintf(buf, PAGE_SIZE, "%d\n", *(int *)(ea->var)); in device_show_int()
1029 struct dev_ext_attribute *ea = to_ext_attr(attr); in device_store_bool() local
1031 if (strtobool(buf, ea->var) < 0) in device_store_bool()
[all …]
/linux-4.19.296/fs/cifs/
Dsmb2ops.c928 struct smb2_file_full_ea_info *ea; in smb2_set_ea() local
956 len = sizeof(*ea) + ea_name_len + ea_value_len + 1; in smb2_set_ea()
957 ea = kzalloc(len, GFP_KERNEL); in smb2_set_ea()
958 if (ea == NULL) { in smb2_set_ea()
963 ea->ea_name_length = ea_name_len; in smb2_set_ea()
964 ea->ea_value_length = cpu_to_le16(ea_value_len); in smb2_set_ea()
965 memcpy(ea->ea_data, ea_name, ea_name_len + 1); in smb2_set_ea()
966 memcpy(ea->ea_data + ea_name_len + 1, ea_value, ea_value_len); in smb2_set_ea()
968 rc = SMB2_set_ea(xid, tcon, fid.persistent_fid, fid.volatile_fid, ea, in smb2_set_ea()
970 kfree(ea); in smb2_set_ea()
/linux-4.19.296/drivers/pci/
Dpci.c2935 int ea; in pci_ea_init() local
2941 ea = pci_find_capability(dev, PCI_CAP_ID_EA); in pci_ea_init()
2942 if (!ea) in pci_ea_init()
2946 pci_bus_read_config_byte(dev->bus, dev->devfn, ea + PCI_EA_NUM_ENT, in pci_ea_init()
2950 offset = ea + PCI_EA_FIRST_ENT; in pci_ea_init()
/linux-4.19.296/fs/ntfs/
Dlayout.h1089 } __attribute__ ((__packed__)) ea; member

12