/linux-4.19.296/lib/ |
D | fault-inject.c | 17 int setup_fault_attr(struct fault_attr *attr, char *str) in setup_fault_attr() argument 32 attr->probability = probability; in setup_fault_attr() 33 attr->interval = interval; in setup_fault_attr() 34 atomic_set(&attr->times, times); in setup_fault_attr() 35 atomic_set(&attr->space, space); in setup_fault_attr() 41 static void fail_dump(struct fault_attr *attr) in fail_dump() argument 43 if (attr->verbose > 0 && __ratelimit(&attr->ratelimit_state)) { in fail_dump() 46 "space %d, times %d\n", attr->dname, in fail_dump() 47 attr->interval, attr->probability, in fail_dump() 48 atomic_read(&attr->space), in fail_dump() [all …]
|
/linux-4.19.296/fs/orangefs/ |
D | orangefs-sysfs.c | 158 struct attribute attr; member 160 struct orangefs_attribute *attr, 163 struct orangefs_attribute *attr, 169 struct attribute *attr, in orangefs_attr_show() argument 174 attribute = container_of(attr, struct orangefs_attribute, attr); in orangefs_attr_show() 181 struct attribute *attr, in orangefs_attr_store() argument 191 attribute = container_of(attr, struct orangefs_attribute, attr); in orangefs_attr_store() 203 struct orangefs_attribute *attr, char *buf) in sysfs_int_show() argument 211 if (!strcmp(attr->attr.name, "op_timeout_secs")) { in sysfs_int_show() 217 } else if (!strcmp(attr->attr.name, in sysfs_int_show() [all …]
|
/linux-4.19.296/drivers/base/ |
D | soc.c | 21 struct device_attribute *attr, 26 struct soc_device_attribute *attr; member 45 struct attribute *attr, in soc_attribute_mode() argument 51 if ((attr == &dev_attr_machine.attr) in soc_attribute_mode() 52 && (soc_dev->attr->machine != NULL)) in soc_attribute_mode() 53 return attr->mode; in soc_attribute_mode() 54 if ((attr == &dev_attr_family.attr) in soc_attribute_mode() 55 && (soc_dev->attr->family != NULL)) in soc_attribute_mode() 56 return attr->mode; in soc_attribute_mode() 57 if ((attr == &dev_attr_revision.attr) in soc_attribute_mode() [all …]
|
D | cpu.c | 88 struct device_attribute *attr, in cpu_probe_store() argument 106 struct device_attribute *attr, in cpu_release_store() argument 142 static ssize_t show_crash_notes(struct device *dev, struct device_attribute *attr, in show_crash_notes() argument 165 struct device_attribute *attr, in show_crash_notes_size() argument 176 &dev_attr_crash_notes.attr, 177 &dev_attr_crash_notes_size.attr, 205 struct device_attribute attr; member 210 struct device_attribute *attr, in show_cpus_attr() argument 213 struct cpu_attr *ca = container_of(attr, struct cpu_attr, attr); in show_cpus_attr() 232 struct device_attribute *attr, char *buf) in print_cpus_kernel_max() argument [all …]
|
D | topology.c | 19 struct device_attribute *attr, char *buf) \ 26 struct device_attribute *attr, char *buf) \ 33 struct device_attribute *attr, \ 74 &dev_attr_physical_package_id.attr, 75 &dev_attr_core_id.attr, 76 &dev_attr_thread_siblings.attr, 77 &dev_attr_thread_siblings_list.attr, 78 &dev_attr_core_siblings.attr, 79 &dev_attr_core_siblings_list.attr, 81 &dev_attr_book_id.attr, [all …]
|
D | cacheinfo.c | 357 struct device_attribute *attr, char *buf) \ 371 struct device_attribute *attr, char *buf) in size_show() argument 387 struct device_attribute *attr, char *buf) in shared_cpu_map_show() argument 393 struct device_attribute *attr, char *buf) in shared_cpu_list_show() argument 399 struct device_attribute *attr, char *buf) in type_show() argument 416 struct device_attribute *attr, char *buf) in allocation_policy_show() argument 432 struct device_attribute *attr, char *buf) in write_policy_show() argument 459 &dev_attr_id.attr, 460 &dev_attr_type.attr, 461 &dev_attr_level.attr, [all …]
|
/linux-4.19.296/virt/kvm/arm/vgic/ |
D | vgic-kvm-device.c | 164 struct kvm_device_attr *attr) in vgic_set_common_attr() argument 168 switch (attr->group) { in vgic_set_common_attr() 170 u64 __user *uaddr = (u64 __user *)(long)attr->addr; in vgic_set_common_attr() 172 unsigned long type = (unsigned long)attr->attr; in vgic_set_common_attr() 181 u32 __user *uaddr = (u32 __user *)(long)attr->addr; in vgic_set_common_attr() 212 switch (attr->attr) { in vgic_set_common_attr() 227 struct kvm_device_attr *attr) in vgic_get_common_attr() argument 231 switch (attr->group) { in vgic_get_common_attr() 233 u64 __user *uaddr = (u64 __user *)(long)attr->addr; in vgic_get_common_attr() 235 unsigned long type = (unsigned long)attr->attr; in vgic_get_common_attr() [all …]
|
/linux-4.19.296/include/linux/ |
D | hw_breakpoint.h | 12 static inline void hw_breakpoint_init(struct perf_event_attr *attr) in hw_breakpoint_init() argument 14 memset(attr, 0, sizeof(*attr)); in hw_breakpoint_init() 16 attr->type = PERF_TYPE_BREAKPOINT; in hw_breakpoint_init() 17 attr->size = sizeof(*attr); in hw_breakpoint_init() 22 attr->pinned = 1; in hw_breakpoint_init() 23 attr->sample_period = 1; in hw_breakpoint_init() 26 static inline void ptrace_breakpoint_init(struct perf_event_attr *attr) in ptrace_breakpoint_init() argument 28 hw_breakpoint_init(attr); in ptrace_breakpoint_init() 29 attr->exclude_kernel = 1; in ptrace_breakpoint_init() 34 return bp->attr.bp_addr; in hw_breakpoint_addr() [all …]
|
D | sysfs.h | 51 #define sysfs_attr_init(attr) \ argument 55 (attr)->key = &__key; \ 58 #define sysfs_attr_init(attr) do {} while (0) argument 102 .attr = {.name = __stringify(_name), \ 109 .attr = {.name = __stringify(_name), \ 116 .attr = { .name = __stringify(_name), .mode = 0444 }, \ 121 .attr = { .name = __stringify(_name), \ 127 .attr = { .name = __stringify(_name), .mode = 0200 }, \ 133 #define __ATTR_NULL { .attr = { .name = NULL } } 137 .attr = {.name = __stringify(_name), .mode = _mode, \ [all …]
|
/linux-4.19.296/drivers/misc/genwqe/ |
D | card_sysfs.c | 47 static ssize_t status_show(struct device *dev, struct device_attribute *attr, in status_show() argument 57 static ssize_t appid_show(struct device *dev, struct device_attribute *attr, in appid_show() argument 68 static ssize_t version_show(struct device *dev, struct device_attribute *attr, in version_show() argument 81 static ssize_t type_show(struct device *dev, struct device_attribute *attr, in type_show() argument 93 static ssize_t tempsens_show(struct device *dev, struct device_attribute *attr, in tempsens_show() argument 105 struct device_attribute *attr, in freerunning_timer_show() argument 117 struct device_attribute *attr, in queue_working_time_show() argument 129 struct device_attribute *attr, in base_clock_show() argument 157 struct device_attribute *attr, char *buf) in curr_bitstream_show() argument 173 struct device_attribute *attr, char *buf) in next_bitstream_show() argument [all …]
|
/linux-4.19.296/fs/ |
D | attr.c | 61 int setattr_prepare(struct dentry *dentry, struct iattr *attr) in setattr_prepare() argument 64 unsigned int ia_valid = attr->ia_valid; in setattr_prepare() 71 int error = inode_newsize_ok(inode, attr->ia_size); in setattr_prepare() 81 if ((ia_valid & ATTR_UID) && !chown_ok(inode, attr->ia_uid)) in setattr_prepare() 85 if ((ia_valid & ATTR_GID) && !chgrp_ok(inode, attr->ia_gid)) in setattr_prepare() 93 if (!in_group_p((ia_valid & ATTR_GID) ? attr->ia_gid : in setattr_prepare() 96 attr->ia_mode &= ~S_ISGID; in setattr_prepare() 180 void setattr_copy(struct inode *inode, const struct iattr *attr) in setattr_copy() argument 182 unsigned int ia_valid = attr->ia_valid; in setattr_copy() 185 inode->i_uid = attr->ia_uid; in setattr_copy() [all …]
|
/linux-4.19.296/include/rdma/ |
D | uverbs_ioctl.h | 262 struct uverbs_attr_spec attr; member 329 .attr = { .type = UVERBS_ATTR_TYPE_IDR, \ 339 .attr = { .type = UVERBS_ATTR_TYPE_FD, \ 347 .attr = { .type = UVERBS_ATTR_TYPE_PTR_IN, \ 354 .attr = { .type = UVERBS_ATTR_TYPE_PTR_OUT, \ 362 .attr = { .type = UVERBS_ATTR_TYPE_ENUM_IN, \ 468 const struct uverbs_attr *attr = uverbs_attr_get(attrs_bundle, idx); in uverbs_attr_get_enum_id() local 470 if (IS_ERR(attr)) in uverbs_attr_get_enum_id() 471 return PTR_ERR(attr); in uverbs_attr_get_enum_id() 473 return attr->ptr_attr.enum_id; in uverbs_attr_get_enum_id() [all …]
|
/linux-4.19.296/drivers/ptp/ |
D | ptp_sysfs.c | 26 struct device_attribute *attr, char *page) in clock_name_show() argument 35 struct device_attribute *attr, char *page) \ 50 struct device_attribute *attr, in extts_enable_store() argument 76 struct device_attribute *attr, char *page) in extts_fifo_show() argument 110 struct device_attribute *attr, in period_store() argument 138 struct device_attribute *attr, in pps_enable_store() argument 165 &dev_attr_clock_name.attr, 167 &dev_attr_max_adjustment.attr, 168 &dev_attr_n_alarms.attr, 169 &dev_attr_n_external_timestamps.attr, [all …]
|
/linux-4.19.296/drivers/xen/ |
D | sys-hypervisor.c | 35 struct attribute attr; member 41 static ssize_t type_show(struct hyp_sysfs_attr *attr, char *buffer) in type_show() argument 50 return sysfs_create_file(hypervisor_kobj, &type_attr.attr); in xen_sysfs_type_init() 53 static ssize_t guest_type_show(struct hyp_sysfs_attr *attr, char *buffer) in guest_type_show() argument 79 return sysfs_create_file(hypervisor_kobj, &guest_type_attr.attr); in xen_sysfs_guest_type_init() 83 static ssize_t major_show(struct hyp_sysfs_attr *attr, char *buffer) in major_show() argument 93 static ssize_t minor_show(struct hyp_sysfs_attr *attr, char *buffer) in minor_show() argument 103 static ssize_t extra_show(struct hyp_sysfs_attr *attr, char *buffer) in extra_show() argument 122 &major_attr.attr, 123 &minor_attr.attr, [all …]
|
D | xen-balloon.c | 129 struct device_attribute *attr, \ 146 static ssize_t show_target_kb(struct device *dev, struct device_attribute *attr, in show_target_kb() argument 153 struct device_attribute *attr, in store_target_kb() argument 174 static ssize_t show_target(struct device *dev, struct device_attribute *attr, in show_target() argument 183 struct device_attribute *attr, in store_target() argument 205 &dev_attr_target_kb.attr, 206 &dev_attr_target.attr, 207 &dev_attr_schedule_delay.attr.attr, 208 &dev_attr_max_schedule_delay.attr.attr, 209 &dev_attr_retry_count.attr.attr, [all …]
|
/linux-4.19.296/block/ |
D | blk-sysfs.c | 21 struct attribute attr; member 520 .attr = {.name = "nr_requests", .mode = 0644 }, 526 .attr = {.name = "read_ahead_kb", .mode = 0644 }, 532 .attr = {.name = "max_sectors_kb", .mode = 0644 }, 538 .attr = {.name = "max_hw_sectors_kb", .mode = 0444 }, 543 .attr = {.name = "max_segments", .mode = 0444 }, 548 .attr = {.name = "max_discard_segments", .mode = 0444 }, 553 .attr = {.name = "max_integrity_segments", .mode = 0444 }, 558 .attr = {.name = "max_segment_size", .mode = 0444 }, 563 .attr = {.name = "scheduler", .mode = 0644 }, [all …]
|
/linux-4.19.296/drivers/pci/ |
D | pci-sysfs.c | 37 field##_show(struct device *dev, struct device_attribute *attr, char *buf) \ 55 struct device_attribute *attr, in broken_parity_status_show() argument 63 struct device_attribute *attr, in broken_parity_status_store() argument 79 struct device_attribute *attr, char *buf) in pci_dev_show_local_cpu() argument 93 struct device_attribute *attr, char *buf) in local_cpus_show() argument 95 return pci_dev_show_local_cpu(dev, false, attr, buf); in local_cpus_show() 100 struct device_attribute *attr, char *buf) in local_cpulist_show() argument 102 return pci_dev_show_local_cpu(dev, true, attr, buf); in local_cpulist_show() 110 struct device_attribute *attr, char *buf) in cpuaffinity_show() argument 119 struct device_attribute *attr, char *buf) in cpulistaffinity_show() argument [all …]
|
/linux-4.19.296/drivers/base/power/ |
D | sysfs.c | 101 static ssize_t control_show(struct device *dev, struct device_attribute *attr, in control_show() argument 108 static ssize_t control_store(struct device * dev, struct device_attribute *attr, in control_store() argument 125 struct device_attribute *attr, char *buf) in runtime_active_time_show() argument 138 struct device_attribute *attr, char *buf) in runtime_suspended_time_show() argument 152 struct device_attribute *attr, char *buf) in runtime_status_show() argument 184 struct device_attribute *attr, char *buf) in autosuspend_delay_ms_show() argument 192 struct device_attribute *attr, const char *buf, size_t n) in autosuspend_delay_ms_store() argument 211 struct device_attribute *attr, in pm_qos_resume_latency_us_show() argument 225 struct device_attribute *attr, in pm_qos_resume_latency_us_store() argument 255 struct device_attribute *attr, in pm_qos_latency_tolerance_us_show() argument [all …]
|
/linux-4.19.296/fs/coda/ |
D | coda_linux.c | 71 void coda_vattr_to_iattr(struct inode *inode, struct coda_vattr *attr) in coda_vattr_to_iattr() argument 77 switch (attr->va_type) { in coda_vattr_to_iattr() 95 if (attr->va_mode != (u_short) -1) in coda_vattr_to_iattr() 96 inode->i_mode = attr->va_mode | inode_type; in coda_vattr_to_iattr() 97 if (attr->va_uid != -1) in coda_vattr_to_iattr() 98 inode->i_uid = make_kuid(&init_user_ns, (uid_t) attr->va_uid); in coda_vattr_to_iattr() 99 if (attr->va_gid != -1) in coda_vattr_to_iattr() 100 inode->i_gid = make_kgid(&init_user_ns, (gid_t) attr->va_gid); in coda_vattr_to_iattr() 101 if (attr->va_nlink != -1) in coda_vattr_to_iattr() 102 set_nlink(inode, attr->va_nlink); in coda_vattr_to_iattr() [all …]
|
/linux-4.19.296/fs/sysfs/ |
D | group.c | 22 struct attribute *const *attr; in remove_files() local 26 for (attr = grp->attrs; *attr; attr++) in remove_files() 27 kernfs_remove_by_name(parent, (*attr)->name); in remove_files() 30 kernfs_remove_by_name(parent, (*bin_attr)->attr.name); in remove_files() 37 struct attribute *const *attr; in create_files() local 42 for (i = 0, attr = grp->attrs; *attr && !error; i++, attr++) { in create_files() 43 umode_t mode = (*attr)->mode; in create_files() 51 kernfs_remove_by_name(parent, (*attr)->name); in create_files() 53 mode = grp->is_visible(kobj, *attr, i); in create_files() 60 (*attr)->name, mode); in create_files() [all …]
|
D | file.c | 174 void sysfs_notify(struct kobject *kobj, const char *dir, const char *attr) in sysfs_notify() argument 183 if (kn && attr) { in sysfs_notify() 184 tmp = kernfs_find_and_get(kn, attr); in sysfs_notify() 248 const struct attribute *attr, bool is_bin, in sysfs_add_file_mode_ns() argument 286 struct bin_attribute *battr = (void *)attr; in sysfs_add_file_mode_ns() 303 if (!attr->ignore_lockdep) in sysfs_add_file_mode_ns() 304 key = attr->key ?: (struct lock_class_key *)&attr->skey; in sysfs_add_file_mode_ns() 307 kn = __kernfs_create_file(parent, attr->name, mode & 0777, uid, gid, in sysfs_add_file_mode_ns() 308 size, ops, (void *)attr, ns, key); in sysfs_add_file_mode_ns() 311 sysfs_warn_dup(parent, attr->name); in sysfs_add_file_mode_ns() [all …]
|
/linux-4.19.296/fs/adfs/ |
D | inode.c | 91 unsigned int attr = ADFS_I(inode)->attr; in adfs_atts2mode() local 95 if (attr & ADFS_NDA_DIRECTORY) { in adfs_atts2mode() 114 if (attr & ADFS_NDA_OWNER_READ) in adfs_atts2mode() 117 if (attr & ADFS_NDA_OWNER_WRITE) in adfs_atts2mode() 120 if (attr & ADFS_NDA_PUBLIC_READ) in adfs_atts2mode() 123 if (attr & ADFS_NDA_PUBLIC_WRITE) in adfs_atts2mode() 136 int attr; in adfs_mode2atts() local 141 return ADFS_I(inode)->attr; in adfs_mode2atts() 144 attr = ADFS_NDA_DIRECTORY; in adfs_mode2atts() 146 attr = 0; in adfs_mode2atts() [all …]
|
/linux-4.19.296/drivers/rtc/ |
D | rtc-sysfs.c | 28 name_show(struct device *dev, struct device_attribute *attr, char *buf) in name_show() argument 36 date_show(struct device *dev, struct device_attribute *attr, char *buf) in date_show() argument 52 time_show(struct device *dev, struct device_attribute *attr, char *buf) in time_show() argument 68 since_epoch_show(struct device *dev, struct device_attribute *attr, char *buf) in since_epoch_show() argument 86 max_user_freq_show(struct device *dev, struct device_attribute *attr, char *buf) in max_user_freq_show() argument 92 max_user_freq_store(struct device *dev, struct device_attribute *attr, in max_user_freq_store() argument 119 hctosys_show(struct device *dev, struct device_attribute *attr, char *buf) in hctosys_show() argument 133 wakealarm_show(struct device *dev, struct device_attribute *attr, char *buf) in wakealarm_show() argument 157 wakealarm_store(struct device *dev, struct device_attribute *attr, in wakealarm_store() argument 224 offset_show(struct device *dev, struct device_attribute *attr, char *buf) in offset_show() argument [all …]
|
/linux-4.19.296/drivers/s390/crypto/ |
D | ap_card.c | 22 struct device_attribute *attr, char *buf) in hwtype_show() argument 32 struct device_attribute *attr, char *buf) in raw_hwtype_show() argument 41 static ssize_t depth_show(struct device *dev, struct device_attribute *attr, in depth_show() argument 52 struct device_attribute *attr, char *buf) in ap_functions_show() argument 62 struct device_attribute *attr, in request_count_show() argument 76 struct device_attribute *attr, in request_count_store() argument 94 struct device_attribute *attr, char *buf) in requestq_count_show() argument 111 struct device_attribute *attr, char *buf) in pendingq_count_show() argument 128 struct device_attribute *attr, char *buf) in modalias_show() argument 136 &dev_attr_hwtype.attr, [all …]
|
/linux-4.19.296/fs/fat/ |
D | file.c | 25 u32 attr; in fat_ioctl_get_attributes() local 28 attr = fat_make_attrs(inode); in fat_ioctl_get_attributes() 31 return put_user(attr, user_attr); in fat_ioctl_get_attributes() 39 u32 attr, oldattr; in fat_ioctl_set_attributes() local 43 err = get_user(attr, user_attr); in fat_ioctl_set_attributes() 58 attr &= 0xff & ~(ATTR_VOLUME | ATTR_DIR); in fat_ioctl_set_attributes() 60 attr |= (MSDOS_I(inode)->i_attrs & ATTR_VOLUME) | in fat_ioctl_set_attributes() 68 ia.ia_mode = fat_make_mode(sbi, attr, S_IRWXUGO); in fat_ioctl_set_attributes() 70 ia.ia_mode = fat_make_mode(sbi, attr, in fat_ioctl_set_attributes() 75 if (inode->i_ino == MSDOS_ROOT_INO && attr != ATTR_DIR) { in fat_ioctl_set_attributes() [all …]
|