Home
last modified time | relevance | path

Searched refs:attrs (Results 1 – 25 of 302) sorted by relevance

12345678910>>...13

/linux-4.19.296/fs/kernfs/
Dinode.c68 struct kernfs_iattrs *attrs; in __kernfs_setattr() local
72 attrs = kernfs_iattrs(kn); in __kernfs_setattr()
73 if (!attrs) in __kernfs_setattr()
76 iattrs = &attrs->ia_iattr; in __kernfs_setattr()
138 static int kernfs_node_setsecdata(struct kernfs_iattrs *attrs, void **secdata, in kernfs_node_setsecdata() argument
144 old_secdata = attrs->ia_secdata; in kernfs_node_setsecdata()
145 old_secdata_len = attrs->ia_secdata_len; in kernfs_node_setsecdata()
147 attrs->ia_secdata = *secdata; in kernfs_node_setsecdata()
148 attrs->ia_secdata_len = *secdata_len; in kernfs_node_setsecdata()
158 struct kernfs_iattrs *attrs; in kernfs_iop_listxattr() local
[all …]
/linux-4.19.296/fs/orangefs/
Dorangefs-utils.c83 static int orangefs_inode_flags(struct ORANGEFS_sys_attr_s *attrs) in orangefs_inode_flags() argument
86 if (attrs->flags & ORANGEFS_IMMUTABLE_FL) in orangefs_inode_flags()
90 if (attrs->flags & ORANGEFS_APPEND_FL) in orangefs_inode_flags()
94 if (attrs->flags & ORANGEFS_NOATIME_FL) in orangefs_inode_flags()
101 static int orangefs_inode_perms(struct ORANGEFS_sys_attr_s *attrs) in orangefs_inode_perms() argument
105 if (attrs->perms & ORANGEFS_O_EXECUTE) in orangefs_inode_perms()
107 if (attrs->perms & ORANGEFS_O_WRITE) in orangefs_inode_perms()
109 if (attrs->perms & ORANGEFS_O_READ) in orangefs_inode_perms()
112 if (attrs->perms & ORANGEFS_G_EXECUTE) in orangefs_inode_perms()
114 if (attrs->perms & ORANGEFS_G_WRITE) in orangefs_inode_perms()
[all …]
/linux-4.19.296/fs/hostfs/
Dhostfs_user.c194 int set_attr(const char *file, struct hostfs_iattr *attrs, int fd) in set_attr() argument
200 if (attrs->ia_valid & HOSTFS_ATTR_MODE) { in set_attr()
202 if (fchmod(fd, attrs->ia_mode) != 0) in set_attr()
204 } else if (chmod(file, attrs->ia_mode) != 0) { in set_attr()
208 if (attrs->ia_valid & HOSTFS_ATTR_UID) { in set_attr()
210 if (fchown(fd, attrs->ia_uid, -1)) in set_attr()
212 } else if (chown(file, attrs->ia_uid, -1)) { in set_attr()
216 if (attrs->ia_valid & HOSTFS_ATTR_GID) { in set_attr()
218 if (fchown(fd, -1, attrs->ia_gid)) in set_attr()
220 } else if (chown(file, -1, attrs->ia_gid)) { in set_attr()
[all …]
Dhostfs_kern.c797 struct hostfs_iattr attrs; in hostfs_setattr() local
810 attrs.ia_valid = 0; in hostfs_setattr()
812 attrs.ia_valid |= HOSTFS_ATTR_MODE; in hostfs_setattr()
813 attrs.ia_mode = attr->ia_mode; in hostfs_setattr()
816 attrs.ia_valid |= HOSTFS_ATTR_UID; in hostfs_setattr()
817 attrs.ia_uid = from_kuid(&init_user_ns, attr->ia_uid); in hostfs_setattr()
820 attrs.ia_valid |= HOSTFS_ATTR_GID; in hostfs_setattr()
821 attrs.ia_gid = from_kgid(&init_user_ns, attr->ia_gid); in hostfs_setattr()
824 attrs.ia_valid |= HOSTFS_ATTR_SIZE; in hostfs_setattr()
825 attrs.ia_size = attr->ia_size; in hostfs_setattr()
[all …]
/linux-4.19.296/include/xen/arm/
Dpage-coherent.h18 enum dma_data_direction dir, unsigned long attrs);
21 unsigned long attrs);
29 dma_addr_t *dma_handle, gfp_t flags, unsigned long attrs) in xen_alloc_coherent_pages() argument
31 return xen_get_dma_ops(hwdev)->alloc(hwdev, size, dma_handle, flags, attrs); in xen_alloc_coherent_pages()
35 void *cpu_addr, dma_addr_t dma_handle, unsigned long attrs) in xen_free_coherent_pages() argument
37 xen_get_dma_ops(hwdev)->free(hwdev, size, cpu_addr, dma_handle, attrs); in xen_free_coherent_pages()
42 enum dma_data_direction dir, unsigned long attrs) in xen_dma_map_page() argument
61 xen_get_dma_ops(hwdev)->map_page(hwdev, page, offset, size, dir, attrs); in xen_dma_map_page()
63 __xen_dma_map_page(hwdev, page, dev_addr, offset, size, dir, attrs); in xen_dma_map_page()
67 size_t size, enum dma_data_direction dir, unsigned long attrs) in xen_dma_unmap_page() argument
[all …]
/linux-4.19.296/drivers/xen/
Dswiotlb-xen.c290 unsigned long attrs) in xen_swiotlb_alloc_coherent() argument
314 ret = xen_alloc_coherent_pages(hwdev, size, dma_handle, flags, attrs); in xen_swiotlb_alloc_coherent()
334 xen_free_coherent_pages(hwdev, size, ret, (dma_addr_t)phys, attrs); in xen_swiotlb_alloc_coherent()
344 dma_addr_t dev_addr, unsigned long attrs) in xen_swiotlb_free_coherent() argument
364 xen_free_coherent_pages(hwdev, size, vaddr, (dma_addr_t)phys, attrs); in xen_swiotlb_free_coherent()
377 unsigned long attrs) in xen_swiotlb_map_page() argument
395 xen_dma_map_page(dev, page, dev_addr, offset, size, dir, attrs); in xen_swiotlb_map_page()
405 attrs); in xen_swiotlb_map_page()
411 dev_addr, map & ~PAGE_MASK, size, dir, attrs); in xen_swiotlb_map_page()
419 attrs |= DMA_ATTR_SKIP_CPU_SYNC; in xen_swiotlb_map_page()
[all …]
/linux-4.19.296/include/linux/
Dswiotlb.h56 unsigned long attrs);
61 unsigned long attrs);
71 gfp_t flags, unsigned long attrs);
73 dma_addr_t dma_addr, unsigned long attrs);
78 unsigned long attrs);
81 unsigned long attrs);
86 unsigned long attrs);
91 unsigned long attrs);
Ddma-mapping.h82 unsigned long attrs);
85 unsigned long attrs);
88 unsigned long attrs);
91 dma_addr_t, size_t, unsigned long attrs);
96 unsigned long attrs);
99 unsigned long attrs);
106 unsigned long attrs);
110 unsigned long attrs);
113 unsigned long attrs);
116 unsigned long attrs);
[all …]
Ddma-iommu.h41 unsigned long attrs);
48 unsigned long attrs, int prot, dma_addr_t *handle,
65 enum dma_data_direction dir, unsigned long attrs);
67 enum dma_data_direction dir, unsigned long attrs);
69 size_t size, enum dma_data_direction dir, unsigned long attrs);
71 size_t size, enum dma_data_direction dir, unsigned long attrs);
Ddma-direct.h59 gfp_t gfp, unsigned long attrs);
61 dma_addr_t dma_addr, unsigned long attrs);
64 unsigned long attrs);
66 enum dma_data_direction dir, unsigned long attrs);
Ddma-noncoherent.h8 gfp_t gfp, unsigned long attrs);
10 dma_addr_t dma_addr, unsigned long attrs);
15 unsigned long attrs);
/linux-4.19.296/drivers/s390/cio/
Dscm.c93 ret = sprintf(buf, "%u\n", scmdev->attrs.name); \
118 .attrs = scmdev_attrs,
140 scmdev->attrs.rank = sale->rank; in scmdev_setup()
141 scmdev->attrs.persistence = sale->p; in scmdev_setup()
142 scmdev->attrs.oper_state = sale->op_state; in scmdev_setup()
143 scmdev->attrs.data_state = sale->data_state; in scmdev_setup()
144 scmdev->attrs.rank = sale->rank; in scmdev_setup()
145 scmdev->attrs.release = sale->r; in scmdev_setup()
146 scmdev->attrs.res_id = sale->rid; in scmdev_setup()
162 changed = scmdev->attrs.rank != sale->rank || in scmdev_update()
[all …]
/linux-4.19.296/drivers/base/
Dattribute_container.c318 struct device_attribute **attrs = cont->attrs; in attribute_container_add_attrs() local
321 BUG_ON(attrs && cont->grp); in attribute_container_add_attrs()
323 if (!attrs && !cont->grp) in attribute_container_add_attrs()
329 for (i = 0; attrs[i]; i++) { in attribute_container_add_attrs()
330 sysfs_attr_init(&attrs[i]->attr); in attribute_container_add_attrs()
331 error = device_create_file(classdev, attrs[i]); in attribute_container_add_attrs()
383 struct device_attribute **attrs = cont->attrs; in attribute_container_remove_attrs() local
386 if (!attrs && !cont->grp) in attribute_container_remove_attrs()
394 for (i = 0; attrs[i]; i++) in attribute_container_remove_attrs()
395 device_remove_file(classdev, attrs[i]); in attribute_container_remove_attrs()
/linux-4.19.296/fs/cifs/
Dinode.c1129 cifs_set_file_info(struct inode *inode, struct iattr *attrs, unsigned int xid, argument
1137 if (attrs == NULL)
1146 if (attrs->ia_valid & ATTR_ATIME) {
1149 cpu_to_le64(cifs_UnixTimeToNT(attrs->ia_atime));
1153 if (attrs->ia_valid & ATTR_MTIME) {
1156 cpu_to_le64(cifs_UnixTimeToNT(attrs->ia_mtime));
1166 if (set_time && (attrs->ia_valid & ATTR_CTIME)) {
1169 cpu_to_le64(cifs_UnixTimeToNT(attrs->ia_ctime));
1339 struct iattr *attrs = NULL; local
1392 attrs = kzalloc(sizeof(*attrs), GFP_KERNEL);
[all …]
/linux-4.19.296/include/linux/mlx5/
Daccel.h99 struct mlx5_accel_esp_xfrm_attrs attrs; member
123 const struct mlx5_accel_esp_xfrm_attrs *attrs,
127 const struct mlx5_accel_esp_xfrm_attrs *attrs);
135 const struct mlx5_accel_esp_xfrm_attrs *attrs, in mlx5_accel_esp_create_xfrm() argument
141 const struct mlx5_accel_esp_xfrm_attrs *attrs) { return -EOPNOTSUPP; } in mlx5_accel_esp_modify_xfrm() argument
/linux-4.19.296/crypto/
Dalgboss.c46 } attrs[CRYPTO_MAX_ATTRS]; member
150 param->attrs[i].alg.attr.rta_len = in cryptomgr_schedule_probe()
151 sizeof(param->attrs[i].alg); in cryptomgr_schedule_probe()
152 param->attrs[i].alg.attr.rta_type = CRYPTOA_ALG; in cryptomgr_schedule_probe()
153 memcpy(param->attrs[i].alg.data.name, name, len); in cryptomgr_schedule_probe()
155 param->attrs[i].nu32.attr.rta_len = in cryptomgr_schedule_probe()
156 sizeof(param->attrs[i].nu32); in cryptomgr_schedule_probe()
157 param->attrs[i].nu32.attr.rta_type = CRYPTOA_U32; in cryptomgr_schedule_probe()
158 param->attrs[i].nu32.data.num = in cryptomgr_schedule_probe()
162 param->tb[i + 1] = &param->attrs[i].attr; in cryptomgr_schedule_probe()
Dcrypto_user.c261 struct nlattr **attrs) in crypto_report() argument
336 struct nlattr **attrs) in crypto_update_alg() argument
340 struct nlattr *priority = attrs[CRYPTOCFGA_PRIORITY_VAL]; in crypto_update_alg()
372 struct nlattr **attrs) in crypto_del_alg() argument
409 struct nlattr **attrs) in crypto_add_alg() argument
415 struct nlattr *priority = attrs[CRYPTOCFGA_PRIORITY_VAL]; in crypto_add_alg()
457 struct nlattr **attrs) in crypto_del_rng() argument
497 struct nlattr *attrs[CRYPTOCFGA_MAX+1]; in crypto_user_rcv_msg() local
533 err = nlmsg_parse(nlh, crypto_msg_min[type], attrs, CRYPTOCFGA_MAX, in crypto_user_rcv_msg()
541 return link->doit(skb, nlh, attrs); in crypto_user_rcv_msg()
/linux-4.19.296/drivers/misc/altera-stapl/
Daltera.c129 u8 attrs; member
242 char *attrs = NULL; in altera_execute() local
320 attrs = kzalloc(sym_count, GFP_KERNEL); in altera_execute()
322 if (attrs == NULL) in altera_execute()
343 attrs[i] = p[offset]; in altera_execute()
350 attrs[i] &= 0x7f; in altera_execute()
365 if ((attrs[i] & 0x0c) == 0x04) in altera_execute()
368 else if ((attrs[i] & 0x1e) == 0x0e) { in altera_execute()
378 attrs[i] |= 0x80; in altera_execute()
392 } else if ((attrs[i] & 0x1e) == 0x0c) { in altera_execute()
[all …]
/linux-4.19.296/fs/fat/
Dfat.h176 u8 attrs, umode_t mode) in fat_make_mode() argument
178 if (attrs & ATTR_RO && !((attrs & ATTR_DIR) && !sbi->options.rodir)) in fat_make_mode()
181 if (attrs & ATTR_DIR) in fat_make_mode()
190 u8 attrs = MSDOS_I(inode)->i_attrs; in fat_make_attrs() local
192 attrs |= ATTR_DIR; in fat_make_attrs()
194 attrs |= ATTR_RO; in fat_make_attrs()
195 return attrs; in fat_make_attrs()
198 static inline void fat_save_attrs(struct inode *inode, u8 attrs) in fat_save_attrs() argument
201 MSDOS_I(inode)->i_attrs = attrs & ATTR_UNUSED; in fat_save_attrs()
203 MSDOS_I(inode)->i_attrs = attrs & (ATTR_UNUSED | ATTR_RO); in fat_save_attrs()
/linux-4.19.296/fs/exofs/
Dsuper.c273 struct osd_attr attrs[] = { in __sbi_read_stats() local
285 ios->in_attr = attrs; in __sbi_read_stats()
286 ios->in_attr_len = ARRAY_SIZE(attrs); in __sbi_read_stats()
294 ret = extract_attr_from_ios(ios, &attrs[0]); in __sbi_read_stats()
299 if (attrs[0].len) { in __sbi_read_stats()
302 if (unlikely(attrs[0].len != sizeof(*ess))) { in __sbi_read_stats()
305 __func__, attrs[0].len, sizeof(*ess)); in __sbi_read_stats()
309 ess = attrs[0].val_ptr; in __sbi_read_stats()
328 struct osd_attr attrs[] = { in exofs_sbi_write_stats() local
342 attrs[0].val_ptr = &sbi->s_ess; in exofs_sbi_write_stats()
[all …]
/linux-4.19.296/drivers/pci/controller/
Dvmd.c320 gfp_t flag, unsigned long attrs) in vmd_alloc() argument
323 attrs); in vmd_alloc()
327 dma_addr_t addr, unsigned long attrs) in vmd_free() argument
330 attrs); in vmd_free()
335 unsigned long attrs) in vmd_mmap() argument
338 size, attrs); in vmd_mmap()
343 unsigned long attrs) in vmd_get_sgtable() argument
346 addr, size, attrs); in vmd_get_sgtable()
352 unsigned long attrs) in vmd_map_page() argument
355 dir, attrs); in vmd_map_page()
[all …]
/linux-4.19.296/fs/sysfs/
Dgroup.c25 if (grp->attrs) in remove_files()
26 for (attr = grp->attrs; *attr; attr++) in remove_files()
41 if (grp->attrs) { in create_files()
42 for (i = 0, attr = grp->attrs; *attr && !error; i++, attr++) { in create_files()
120 if (!grp->attrs && !grp->bin_attrs) { in internal_create_group()
316 for ((i = 0, attr = grp->attrs); *attr && !error; (++i, ++attr)) in sysfs_merge_group()
342 for (attr = grp->attrs; *attr; ++attr) in sysfs_unmerge_group()
/linux-4.19.296/drivers/iio/
Dindustrialio-event.c492 attr = indio_dev->info->event_attrs->attrs; in iio_device_register_eventset()
505 indio_dev->event_interface->group.attrs = kcalloc(attrcount + 1, in iio_device_register_eventset()
506 sizeof(indio_dev->event_interface->group.attrs[0]), in iio_device_register_eventset()
508 if (indio_dev->event_interface->group.attrs == NULL) { in iio_device_register_eventset()
513 memcpy(indio_dev->event_interface->group.attrs, in iio_device_register_eventset()
514 indio_dev->info->event_attrs->attrs, in iio_device_register_eventset()
515 sizeof(indio_dev->event_interface->group.attrs[0]) in iio_device_register_eventset()
522 indio_dev->event_interface->group.attrs[attrn++] = in iio_device_register_eventset()
555 kfree(indio_dev->event_interface->group.attrs); in iio_device_unregister_eventset()
/linux-4.19.296/include/rdma/
Duverbs_named_ioctl.h59 .attrs = &UVERBS_METHOD_ATTRS(_method_id), \
73 .attrs = &UVERBS_METHOD_ATTRS(_method_id), \
127 .attrs = &UVERBS_METHOD_ATTRS(_method_id), \
/linux-4.19.296/drivers/misc/mic/host/
Dmic_boot.c41 enum dma_data_direction dir, unsigned long attrs) in _mic_dma_map_page() argument
51 unsigned long attrs) in _mic_dma_unmap_page() argument
147 unsigned long attrs) in __mic_dma_alloc() argument
167 dma_addr_t dma_handle, unsigned long attrs) in __mic_dma_free() argument
179 unsigned long attrs) in __mic_dma_map_page() argument
191 unsigned long attrs) in __mic_dma_unmap_page() argument
201 unsigned long attrs) in __mic_dma_map_sg() argument
232 unsigned long attrs) in __mic_dma_unmap_sg() argument
330 unsigned long attrs) in mic_dma_map_page() argument
341 unsigned long attrs) in mic_dma_unmap_page() argument

12345678910>>...13