/kernel/linux/linux-5.10/fs/nfs/ |
H A D | inode.c | 613 nfs_setattr(struct dentry *dentry, struct iattr *attr) in nfs_setattr() argument 622 if (attr->ia_valid & (ATTR_KILL_SUID | ATTR_KILL_SGID)) in nfs_setattr() 623 attr->ia_valid &= ~ATTR_MODE; in nfs_setattr() 625 if (attr->ia_valid & ATTR_SIZE) { in nfs_setattr() 628 error = inode_newsize_ok(inode, attr->ia_size); in nfs_setattr() 632 if (attr->ia_size == i_size_read(inode)) in nfs_setattr() 633 attr->ia_valid &= ~ATTR_SIZE; in nfs_setattr() 637 attr->ia_valid &= NFS_VALID_ATTRS; in nfs_setattr() 638 if ((attr->ia_valid & ~(ATTR_FILE|ATTR_OPEN)) == 0) in nfs_setattr() 653 error = NFS_PROTO(inode)->setattr(dentry, fattr, attr); in nfs_setattr() 704 nfs_setattr_update_inode(struct inode *inode, struct iattr *attr, struct nfs_fattr *fattr) nfs_setattr_update_inode() argument [all...] |
/kernel/linux/linux-5.10/kernel/bpf/ |
H A D | cgroup.c | 764 int __cgroup_bpf_query(struct cgroup *cgrp, const union bpf_attr *attr, in __cgroup_bpf_query() argument 767 __u32 __user *prog_ids = u64_to_user_ptr(attr->query.prog_ids); in __cgroup_bpf_query() 768 enum bpf_attach_type type = attr->query.attach_type; in __cgroup_bpf_query() 778 if (attr->query.query_flags & BPF_F_QUERY_EFFECTIVE) in __cgroup_bpf_query() 787 if (attr->query.prog_cnt == 0 || !prog_ids || !cnt) in __cgroup_bpf_query() 790 if (attr->query.prog_cnt < cnt) { in __cgroup_bpf_query() 791 cnt = attr->query.prog_cnt; in __cgroup_bpf_query() 795 if (attr->query.query_flags & BPF_F_QUERY_EFFECTIVE) { in __cgroup_bpf_query() 814 int cgroup_bpf_prog_attach(const union bpf_attr *attr, in cgroup_bpf_prog_attach() argument 821 cgrp = cgroup_get_from_fd(attr in cgroup_bpf_prog_attach() 843 cgroup_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype) cgroup_bpf_prog_detach() argument 956 cgroup_bpf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) cgroup_bpf_link_attach() argument 1000 cgroup_bpf_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr) cgroup_bpf_prog_query() argument [all...] |
/kernel/linux/linux-5.10/net/core/ |
H A D | sock_map.c | 27 static struct bpf_map *sock_map_alloc(union bpf_attr *attr) in sock_map_alloc() argument 35 if (attr->max_entries == 0 || in sock_map_alloc() 36 attr->key_size != 4 || in sock_map_alloc() 37 (attr->value_size != sizeof(u32) && in sock_map_alloc() 38 attr->value_size != sizeof(u64)) || in sock_map_alloc() 39 attr->map_flags & ~SOCK_CREATE_FLAG_MASK) in sock_map_alloc() 46 bpf_map_init_from_attr(&stab->map, attr); in sock_map_alloc() 67 int sock_map_get_from_fd(const union bpf_attr *attr, struct bpf_prog *prog) in sock_map_get_from_fd() argument 69 u32 ufd = attr->target_fd; in sock_map_get_from_fd() 74 if (attr in sock_map_get_from_fd() 86 sock_map_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype) sock_map_prog_detach() argument 1111 sock_hash_alloc(union bpf_attr *attr) sock_hash_alloc() argument [all...] |
/kernel/linux/linux-6.6/fs/nfs/ |
H A D | inode.c | 611 struct iattr *attr) in nfs_setattr() 620 if (attr->ia_valid & (ATTR_KILL_SUID | ATTR_KILL_SGID)) in nfs_setattr() 621 attr->ia_valid &= ~ATTR_MODE; in nfs_setattr() 623 if (attr->ia_valid & ATTR_SIZE) { in nfs_setattr() 626 error = inode_newsize_ok(inode, attr->ia_size); in nfs_setattr() 630 if (attr->ia_size == i_size_read(inode)) in nfs_setattr() 631 attr->ia_valid &= ~ATTR_SIZE; in nfs_setattr() 635 if (((attr->ia_valid & NFS_VALID_ATTRS) & ~(ATTR_FILE|ATTR_OPEN)) == 0) in nfs_setattr() 650 error = NFS_PROTO(inode)->setattr(dentry, fattr, attr); in nfs_setattr() 697 * @attr 610 nfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr) nfs_setattr() argument 703 nfs_setattr_update_inode(struct inode *inode, struct iattr *attr, struct nfs_fattr *fattr) nfs_setattr_update_inode() argument [all...] |
/kernel/linux/linux-6.6/drivers/cpufreq/ |
H A D | cpufreq.c | 600 struct kobj_attribute *attr, char *buf) in show_boost() 605 static ssize_t store_boost(struct kobject *kobj, struct kobj_attribute *attr, in store_boost() argument 975 &cpuinfo_min_freq.attr, 976 &cpuinfo_max_freq.attr, 977 &cpuinfo_transition_latency.attr, 978 &scaling_min_freq.attr, 979 &scaling_max_freq.attr, 980 &affected_cpus.attr, 981 &related_cpus.attr, 982 &scaling_governor.attr, 599 show_boost(struct kobject *kobj, struct kobj_attribute *attr, char *buf) show_boost() argument 993 show(struct kobject *kobj, struct attribute *attr, char *buf) show() argument 1010 store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) store() argument [all...] |
/kernel/linux/linux-6.6/drivers/net/usb/ |
H A D | cdc_ncm.c | 202 struct device_attribute *attr, char *buf) in min_tx_pkt_show() 211 struct device_attribute *attr, char *buf) in rx_max_show() 220 struct device_attribute *attr, char *buf) in tx_max_show() 229 struct device_attribute *attr, char *buf) in tx_timer_usecs_show() 238 struct device_attribute *attr, in min_tx_pkt_store() 254 struct device_attribute *attr, in rx_max_store() 269 struct device_attribute *attr, in tx_max_store() 284 struct device_attribute *attr, in tx_timer_usecs_store() 311 static ssize_t ndp_to_end_show(struct device *d, struct device_attribute *attr, char *buf) in ndp_to_end_show() argument 319 static ssize_t ndp_to_end_store(struct device *d, struct device_attribute *attr, cons argument 201 min_tx_pkt_show(struct device *d, struct device_attribute *attr, char *buf) min_tx_pkt_show() argument 210 rx_max_show(struct device *d, struct device_attribute *attr, char *buf) rx_max_show() argument 219 tx_max_show(struct device *d, struct device_attribute *attr, char *buf) tx_max_show() argument 228 tx_timer_usecs_show(struct device *d, struct device_attribute *attr, char *buf) tx_timer_usecs_show() argument 237 min_tx_pkt_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) min_tx_pkt_store() argument 253 rx_max_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) rx_max_store() argument 268 tx_max_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) tx_max_store() argument 283 tx_timer_usecs_store(struct device *d, struct device_attribute *attr, const char *buf, size_t len) tx_timer_usecs_store() argument [all...] |
/kernel/linux/linux-6.6/drivers/input/ |
H A D | input.c | 1363 struct device_attribute *attr, \ 1426 struct device_attribute *attr, in input_dev_show_modalias() 1442 struct device_attribute *attr, in input_dev_show_properties() 1456 struct device_attribute *attr, in inhibited_show() 1465 struct device_attribute *attr, const char *buf, in inhibited_store() 1489 &dev_attr_name.attr, 1490 &dev_attr_phys.attr, 1491 &dev_attr_uniq.attr, 1492 &dev_attr_modalias.attr, 1493 &dev_attr_properties.attr, 1425 input_dev_show_modalias(struct device *dev, struct device_attribute *attr, char *buf) input_dev_show_modalias() argument 1441 input_dev_show_properties(struct device *dev, struct device_attribute *attr, char *buf) input_dev_show_properties() argument 1455 inhibited_show(struct device *dev, struct device_attribute *attr, char *buf) inhibited_show() argument 1464 inhibited_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t len) inhibited_store() argument [all...] |
/kernel/linux/linux-5.10/mm/ |
H A D | slub.c | 5011 #define to_slab_attr(n) container_of(n, struct slab_attribute, attr) 5015 struct attribute attr; member 5419 &slab_size_attr.attr, 5420 &object_size_attr.attr, 5421 &objs_per_slab_attr.attr, 5422 &order_attr.attr, 5423 &min_partial_attr.attr, 5424 &cpu_partial_attr.attr, 5425 &objects_attr.attr, 5426 &objects_partial_attr.attr, 5495 slab_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) slab_attr_show() argument 5514 slab_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t len) slab_attr_store() argument [all...] |
/kernel/linux/linux-5.10/drivers/nvme/host/ |
H A D | core.c | 2846 struct device_attribute *attr, in nvme_subsys_show_nqn() 2858 struct device_attribute *attr, char *buf) \ 2872 &subsys_attr_model.attr, 2873 &subsys_attr_serial.attr, 2874 &subsys_attr_firmware_rev.attr, 2875 &subsys_attr_subsysnqn.attr, 2877 &subsys_attr_iopolicy.attr, 3351 struct device_attribute *attr, const char *buf, in nvme_sysfs_reset() 3365 struct device_attribute *attr, const char *buf, in nvme_sysfs_rescan() 3385 static ssize_t wwid_show(struct device *dev, struct device_attribute *attr, in wwid_show() argument 2845 nvme_subsys_show_nqn(struct device *dev, struct device_attribute *attr, char *buf) nvme_subsys_show_nqn() argument 3350 nvme_sysfs_reset(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) nvme_sysfs_reset() argument 3364 nvme_sysfs_rescan(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) nvme_sysfs_rescan() argument 3416 nguid_show(struct device *dev, struct device_attribute *attr, char *buf) nguid_show() argument 3423 uuid_show(struct device *dev, struct device_attribute *attr, char *buf) uuid_show() argument 3440 eui_show(struct device *dev, struct device_attribute *attr, char *buf) eui_show() argument 3447 nsid_show(struct device *dev, struct device_attribute *attr, char *buf) nsid_show() argument 3538 nvme_sysfs_delete(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) nvme_sysfs_delete() argument 3550 nvme_sysfs_show_transport(struct device *dev, struct device_attribute *attr, char *buf) nvme_sysfs_show_transport() argument 3560 nvme_sysfs_show_state(struct device *dev, struct device_attribute *attr, char *buf) nvme_sysfs_show_state() argument 3584 nvme_sysfs_show_subsysnqn(struct device *dev, struct device_attribute *attr, char *buf) nvme_sysfs_show_subsysnqn() argument 3594 nvme_sysfs_show_hostnqn(struct device *dev, struct device_attribute *attr, char *buf) nvme_sysfs_show_hostnqn() argument 3604 nvme_sysfs_show_hostid(struct device *dev, struct device_attribute *attr, char *buf) nvme_sysfs_show_hostid() argument 3614 nvme_sysfs_show_address(struct device *dev, struct device_attribute *attr, char *buf) nvme_sysfs_show_address() argument 3624 nvme_ctrl_loss_tmo_show(struct device *dev, struct device_attribute *attr, char *buf) nvme_ctrl_loss_tmo_show() argument 3636 nvme_ctrl_loss_tmo_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) nvme_ctrl_loss_tmo_store() argument 3657 nvme_ctrl_reconnect_delay_show(struct device *dev, struct device_attribute *attr, char *buf) nvme_ctrl_reconnect_delay_show() argument 3667 nvme_ctrl_reconnect_delay_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) nvme_ctrl_reconnect_delay_store() argument [all...] |
/kernel/linux/linux-6.6/kernel/sched/ |
H A D | core.c | 1344 const struct sched_attr *attr) in __setscheduler_latency() 1346 if (attr->sched_flags & SCHED_FLAG_LATENCY_NICE) { in __setscheduler_latency() 1347 p->latency_prio = NICE_TO_LATENCY(attr->sched_latency_nice); in __setscheduler_latency() 1353 const struct sched_attr *attr) in latency_nice_validate() 1355 if (attr->sched_latency_nice > MAX_LATENCY_NICE) in latency_nice_validate() 1357 if (attr->sched_latency_nice < MIN_LATENCY_NICE) in latency_nice_validate() 1360 if (user && attr->sched_latency_nice < LATENCY_TO_NICE(p->latency_prio) in latency_nice_validate() 1368 __setscheduler_latency(struct task_struct *p, const struct sched_attr *attr) in __setscheduler_latency() argument 1374 const struct sched_attr *attr) in latency_nice_validate() 1937 const struct sched_attr *attr) in uclamp_validate() 1343 __setscheduler_latency(struct task_struct *p, const struct sched_attr *attr) __setscheduler_latency() argument 1352 latency_nice_validate(struct task_struct *p, bool user, const struct sched_attr *attr) latency_nice_validate() argument 1373 latency_nice_validate(struct task_struct *p, bool user, const struct sched_attr *attr) latency_nice_validate() argument 1936 uclamp_validate(struct task_struct *p, const struct sched_attr *attr) uclamp_validate() argument 1971 uclamp_reset(const struct sched_attr *attr, enum uclamp_id clamp_id, struct uclamp_se *uc_se) uclamp_reset() argument 1996 __setscheduler_uclamp(struct task_struct *p, const struct sched_attr *attr) __setscheduler_uclamp() argument 2104 uclamp_validate(struct task_struct *p, const struct sched_attr *attr) uclamp_validate() argument 2109 __setscheduler_uclamp(struct task_struct *p, const struct sched_attr *attr) __setscheduler_uclamp() argument 7706 __setscheduler_params(struct task_struct *p, const struct sched_attr *attr) __setscheduler_params() argument 7752 user_check_sched_setscheduler(struct task_struct *p, const struct sched_attr *attr, int policy, int reset_on_fork) user_check_sched_setscheduler() argument 7810 __sched_setscheduler(struct task_struct *p, const struct sched_attr *attr, bool user, bool pi) __sched_setscheduler() argument 8049 struct sched_attr attr = { _sched_setscheduler() local 8082 sched_setattr(struct task_struct *p, const struct sched_attr *attr) sched_setattr() argument 8087 sched_setattr_nocheck(struct task_struct *p, const struct sched_attr *attr) sched_setattr_nocheck() argument 8149 struct sched_attr attr = { sched_set_normal() local 8187 sched_copy_attr(struct sched_attr __user *uattr, struct sched_attr *attr) sched_copy_attr() argument 8234 get_params(struct task_struct *p, struct sched_attr *attr) get_params() argument 8281 struct sched_attr attr; SYSCALL_DEFINE3() local 10952 struct sched_attr attr = { normalize_rt_tasks() local [all...] |
/kernel/linux/linux-5.10/drivers/infiniband/hw/mthca/ |
H A D | mthca_provider.c | 201 struct ib_port_attr attr; in mthca_modify_port() local 207 err = ib_query_port(ibdev, port, &attr); in mthca_modify_port() 214 set_ib.cap_mask = (attr.port_cap_flags | props->set_port_cap_mask) & in mthca_modify_port() 428 &init_attr->attr, srq, udata); in mthca_create_srq() 602 const struct ib_cq_init_attr *attr, in mthca_create_cq() 606 int entries = attr->cqe; in mthca_create_cq() 614 if (attr->flags) in mthca_create_cq() 959 struct device_attribute *attr, char *buf) in hw_rev_show() 969 struct device_attribute *attr, char *buf) in hca_type_show() 991 struct device_attribute *attr, cha in board_id_show() 601 mthca_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, struct ib_udata *udata) mthca_create_cq() argument 958 hw_rev_show(struct device *device, struct device_attribute *attr, char *buf) hw_rev_show() argument 968 hca_type_show(struct device *device, struct device_attribute *attr, char *buf) hca_type_show() argument 990 board_id_show(struct device *device, struct device_attribute *attr, char *buf) board_id_show() argument 1052 struct ib_port_attr attr; mthca_port_immutable() local [all...] |
/kernel/linux/linux-5.10/drivers/input/touchscreen/ |
H A D | elants_i2c.c | 1072 struct device_attribute *attr, in calibrate_store() 1090 struct device_attribute *attr, in write_update_fw() 1109 struct device_attribute *attr, char *buf) in show_iap_mode() 1120 struct device_attribute *attr, char *buf) in show_calibration_count() 1168 struct elants_version_attribute *attr = in elants_version_attribute_show() local 1170 u8 *field = (u8 *)((char *)ts + attr->field_offset); in elants_version_attribute_show() 1174 if (attr->field_size == 1) { in elants_version_attribute_show() 1193 &dev_attr_calibrate.attr, 1194 &dev_attr_update_fw.attr, 1195 &dev_attr_iap_mode.attr, 1071 calibrate_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) calibrate_store() argument 1089 write_update_fw(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) write_update_fw() argument 1108 show_iap_mode(struct device *dev, struct device_attribute *attr, char *buf) show_iap_mode() argument 1119 show_calibration_count(struct device *dev, struct device_attribute *attr, char *buf) show_calibration_count() argument [all...] |
/kernel/linux/linux-5.10/net/rds/ |
H A D | ib_cm.c | 85 rds_ib_tune_rnr(struct rds_ib_connection *ic, struct ib_qp_attr *attr) in rds_ib_tune_rnr() argument 89 attr->min_rnr_timer = IB_RNR_TIMER_000_32; in rds_ib_tune_rnr() 90 ret = ib_modify_qp(ic->i_cm_id->qp, attr, IB_QP_MIN_RNR_TIMER); in rds_ib_tune_rnr() 540 struct ib_qp_init_attr attr; in rds_ib_setup_qp() local 617 memset(&attr, 0, sizeof(attr)); in rds_ib_setup_qp() 618 attr.event_handler = rds_ib_qp_event_handler; in rds_ib_setup_qp() 619 attr.qp_context = conn; in rds_ib_setup_qp() 621 attr.cap.max_send_wr = ic->i_send_ring.w_nr + fr_queue_space + 1; in rds_ib_setup_qp() 622 attr in rds_ib_setup_qp() [all...] |
/kernel/linux/linux-5.10/tools/bpf/bpftool/ |
H A D | map.c | 1251 struct bpf_create_map_attr attr = { NULL, }; in do_create() local 1266 if (attr.map_type) { in do_create() 1271 attr.map_type = map_type_from_str(*argv); in do_create() 1272 if ((int)attr.map_type < 0) { in do_create() 1279 attr.name = GET_ARG(); in do_create() 1281 if (parse_u32_arg(&argc, &argv, &attr.key_size, in do_create() 1285 if (parse_u32_arg(&argc, &argv, &attr.value_size, in do_create() 1289 if (parse_u32_arg(&argc, &argv, &attr.max_entries, in do_create() 1293 if (parse_u32_arg(&argc, &argv, &attr.map_flags, in do_create() 1299 if (attr in do_create() [all...] |
/kernel/linux/linux-5.10/drivers/s390/cio/ |
H A D | css.c | 312 static ssize_t type_show(struct device *dev, struct device_attribute *attr, in type_show() argument 322 static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, in modalias_show() argument 333 struct device_attribute *attr, in driver_override_store() 367 struct device_attribute *attr, char *buf) in driver_override_show() 380 &dev_attr_type.attr, 381 &dev_attr_modalias.attr, 382 &dev_attr_driver_override.attr, 396 struct device_attribute *attr, in chpids_show() 418 struct device_attribute *attr, in pimpampom_show() 430 struct device_attribute *attr, in dev_busid_show() 332 driver_override_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) driver_override_store() argument 366 driver_override_show(struct device *dev, struct device_attribute *attr, char *buf) driver_override_show() argument 395 chpids_show(struct device *dev, struct device_attribute *attr, char *buf) chpids_show() argument 417 pimpampom_show(struct device *dev, struct device_attribute *attr, char *buf) pimpampom_show() argument 429 dev_busid_show(struct device *dev, struct device_attribute *attr, char *buf) dev_busid_show() argument 942 cm_enable_mode(struct kobject *kobj, struct attribute *attr, int index) cm_enable_mode() argument [all...] |
/kernel/linux/linux-6.6/drivers/platform/x86/hp/ |
H A D | hp-wmi.c | 655 static ssize_t display_show(struct device *dev, struct device_attribute *attr, in display_show() argument 665 static ssize_t hddtemp_show(struct device *dev, struct device_attribute *attr, in hddtemp_show() argument 675 static ssize_t als_show(struct device *dev, struct device_attribute *attr, in als_show() argument 685 static ssize_t dock_show(struct device *dev, struct device_attribute *attr, in dock_show() argument 695 static ssize_t tablet_show(struct device *dev, struct device_attribute *attr, in tablet_show() argument 705 static ssize_t postcode_show(struct device *dev, struct device_attribute *attr, in postcode_show() argument 716 static ssize_t als_store(struct device *dev, struct device_attribute *attr, in als_store() argument 734 static ssize_t postcode_store(struct device *dev, struct device_attribute *attr, in postcode_store() argument 792 &dev_attr_display.attr, 793 &dev_attr_hddtemp.attr, 1566 hp_wmi_hwmon_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, int channel) hp_wmi_hwmon_is_visible() argument 1584 hp_wmi_hwmon_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long *val) hp_wmi_hwmon_read() argument 1618 hp_wmi_hwmon_write(struct device *dev, enum hwmon_sensor_types type, u32 attr, int channel, long val) hp_wmi_hwmon_write() argument [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/mthca/ |
H A D | mthca_provider.c | 193 struct ib_port_attr attr; in mthca_modify_port() local 199 err = ib_query_port(ibdev, port, &attr); in mthca_modify_port() 206 set_ib.cap_mask = (attr.port_cap_flags | props->set_port_cap_mask) & in mthca_modify_port() 420 &init_attr->attr, srq, udata); in mthca_create_srq() 576 const struct ib_cq_init_attr *attr, in mthca_create_cq() 580 int entries = attr->cqe; in mthca_create_cq() 588 if (attr->flags) in mthca_create_cq() 933 struct device_attribute *attr, char *buf) in hw_rev_show() 960 struct device_attribute *attr, char *buf) in hca_type_show() 970 struct device_attribute *attr, cha in board_id_show() 575 mthca_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, struct ib_udata *udata) mthca_create_cq() argument 932 hw_rev_show(struct device *device, struct device_attribute *attr, char *buf) hw_rev_show() argument 959 hca_type_show(struct device *device, struct device_attribute *attr, char *buf) hca_type_show() argument 969 board_id_show(struct device *device, struct device_attribute *attr, char *buf) board_id_show() argument 1031 struct ib_port_attr attr; mthca_port_immutable() local [all...] |
/kernel/linux/linux-6.6/drivers/input/touchscreen/ |
H A D | elants_i2c.c | 1182 struct device_attribute *attr, in calibrate_store() 1200 struct device_attribute *attr, in write_update_fw() 1219 struct device_attribute *attr, char *buf) in show_iap_mode() 1230 struct device_attribute *attr, char *buf) in show_calibration_count() 1278 struct elants_version_attribute *attr = in elants_version_attribute_show() local 1280 u8 *field = (u8 *)((char *)ts + attr->field_offset); in elants_version_attribute_show() 1284 if (attr->field_size == 1) { in elants_version_attribute_show() 1303 &dev_attr_calibrate.attr, 1304 &dev_attr_update_fw.attr, 1305 &dev_attr_iap_mode.attr, 1181 calibrate_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) calibrate_store() argument 1199 write_update_fw(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) write_update_fw() argument 1218 show_iap_mode(struct device *dev, struct device_attribute *attr, char *buf) show_iap_mode() argument 1229 show_calibration_count(struct device *dev, struct device_attribute *attr, char *buf) show_calibration_count() argument [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/cell/spufs/ |
H A D | file.c | 48 struct spufs_attr *attr; in spufs_attr_open() local 50 attr = kmalloc(sizeof(*attr), GFP_KERNEL); in spufs_attr_open() 51 if (!attr) in spufs_attr_open() 54 attr->get = get; in spufs_attr_open() 55 attr->set = set; in spufs_attr_open() 56 attr->data = inode->i_private; in spufs_attr_open() 57 attr->fmt = fmt; in spufs_attr_open() 58 mutex_init(&attr->mutex); in spufs_attr_open() 59 file->private_data = attr; in spufs_attr_open() 73 struct spufs_attr *attr; spufs_attr_read() local 106 struct spufs_attr *attr; spufs_attr_write() local [all...] |
/kernel/linux/linux-6.6/arch/powerpc/platforms/cell/spufs/ |
H A D | file.c | 48 struct spufs_attr *attr; in spufs_attr_open() local 50 attr = kmalloc(sizeof(*attr), GFP_KERNEL); in spufs_attr_open() 51 if (!attr) in spufs_attr_open() 54 attr->get = get; in spufs_attr_open() 55 attr->set = set; in spufs_attr_open() 56 attr->data = inode->i_private; in spufs_attr_open() 57 attr->fmt = fmt; in spufs_attr_open() 58 mutex_init(&attr->mutex); in spufs_attr_open() 59 file->private_data = attr; in spufs_attr_open() 73 struct spufs_attr *attr; spufs_attr_read() local 106 struct spufs_attr *attr; spufs_attr_write() local [all...] |
/kernel/linux/linux-5.10/fs/ntfs/ |
H A D | inode.c | 446 ATTR_RECORD *attr = ctx->attr; in ntfs_is_extended_system_file() local 454 p = (u8*)attr + le32_to_cpu(attr->length); in ntfs_is_extended_system_file() 462 if (attr->non_resident) { in ntfs_is_extended_system_file() 467 if (attr->flags) { in ntfs_is_extended_system_file() 473 if (!(attr->data.resident.flags & RESIDENT_ATTR_IS_INDEXED)) { in ntfs_is_extended_system_file() 478 file_name_attr = (FILE_NAME_ATTR*)((u8*)attr + in ntfs_is_extended_system_file() 479 le16_to_cpu(attr->data.resident.value_offset)); in ntfs_is_extended_system_file() 480 p2 = (u8 *)file_name_attr + le32_to_cpu(attr in ntfs_is_extended_system_file() 2882 ntfs_setattr(struct dentry *dentry, struct iattr *attr) ntfs_setattr() argument [all...] |
/kernel/linux/linux-6.6/fs/ntfs/ |
H A D | inode.c | 446 ATTR_RECORD *attr = ctx->attr; in ntfs_is_extended_system_file() local 454 p = (u8*)attr + le32_to_cpu(attr->length); in ntfs_is_extended_system_file() 462 if (attr->non_resident) { in ntfs_is_extended_system_file() 467 if (attr->flags) { in ntfs_is_extended_system_file() 473 if (!(attr->data.resident.flags & RESIDENT_ATTR_IS_INDEXED)) { in ntfs_is_extended_system_file() 478 file_name_attr = (FILE_NAME_ATTR*)((u8*)attr + in ntfs_is_extended_system_file() 479 le16_to_cpu(attr->data.resident.value_offset)); in ntfs_is_extended_system_file() 480 p2 = (u8 *)file_name_attr + le32_to_cpu(attr in ntfs_is_extended_system_file() 2882 ntfs_setattr(struct mnt_idmap *idmap, struct dentry *dentry, struct iattr *attr) ntfs_setattr() argument [all...] |
/kernel/linux/linux-6.6/mm/ |
H A D | slub.c | 5518 #define to_slab_attr(n) container_of(n, struct slab_attribute, attr) 5522 struct attribute attr; member 5962 &slab_size_attr.attr, 5963 &object_size_attr.attr, 5964 &objs_per_slab_attr.attr, 5965 &order_attr.attr, 5966 &min_partial_attr.attr, 5967 &cpu_partial_attr.attr, 5968 &objects_partial_attr.attr, 5969 &partial_attr.attr, 6041 slab_attr_show(struct kobject *kobj, struct attribute *attr, char *buf) slab_attr_show() argument 6057 slab_attr_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t len) slab_attr_store() argument [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/mlx5/ |
H A D | main.c | 118 struct ib_port_attr attr; in get_port_state() local 121 memset(&attr, 0, sizeof(attr)); in get_port_state() 122 ret = ibdev->ops.query_port(ibdev, port_num, &attr); in get_port_state() 124 *state = attr.state; in get_port_state() 571 const struct ib_gid_attr *attr) in set_roce_addr() 580 gid_type = attr->gid_type; in set_roce_addr() 582 ret = rdma_read_gid_l2_fields(attr, &vlan_id, &mac[0]); in set_roce_addr() 609 static int mlx5_ib_add_gid(const struct ib_gid_attr *attr, in mlx5_ib_add_gid() argument 614 ret = mlx5r_add_gid_macsec_operations(attr); in mlx5_ib_add_gid() 569 set_roce_addr(struct mlx5_ib_dev *dev, u32 port_num, unsigned int index, const union ib_gid *gid, const struct ib_gid_attr *attr) set_roce_addr() argument 622 mlx5_ib_del_gid(const struct ib_gid_attr *attr, __always_unused void **context) mlx5_ib_del_gid() argument 636 mlx5_get_roce_udp_sport_min(const struct mlx5_ib_dev *dev, const struct ib_gid_attr *attr) mlx5_get_roce_udp_sport_min() argument 1560 struct ib_port_attr attr; mlx5_ib_modify_port() local 2444 fw_pages_show(struct device *device, struct device_attribute *attr, char *buf) fw_pages_show() argument 2454 reg_pages_show(struct device *device, struct device_attribute *attr, char *buf) reg_pages_show() argument 2464 hca_type_show(struct device *device, struct device_attribute *attr, char *buf) hca_type_show() argument 2474 hw_rev_show(struct device *device, struct device_attribute *attr, char *buf) hw_rev_show() argument 2484 board_id_show(struct device *device, struct device_attribute *attr, char *buf) board_id_show() argument 2802 struct ib_srq_init_attr attr; mlx5_ib_dev_res_init() local 2932 struct ib_port_attr attr; mlx5_port_immutable() local 2960 struct ib_port_attr attr; mlx5_port_rep_immutable() local [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/hns/ |
H A D | hns_roce_hw_v2.c | 2711 struct ib_qp_attr *attr, int sl_num) in free_mr_modify_rsv_qp() 2727 attr->qp_state = IB_QPS_INIT; in free_mr_modify_rsv_qp() 2728 attr->port_num = 1; in free_mr_modify_rsv_qp() 2729 attr->qp_access_flags = IB_ACCESS_REMOTE_WRITE; in free_mr_modify_rsv_qp() 2730 ret = hr_dev->hw->modify_qp(&hr_qp->ibqp, attr, mask, IB_QPS_INIT, in free_mr_modify_rsv_qp() 2744 attr->qp_state = IB_QPS_RTR; in free_mr_modify_rsv_qp() 2745 attr->ah_attr.type = RDMA_AH_ATTR_TYPE_ROCE; in free_mr_modify_rsv_qp() 2746 attr->path_mtu = IB_MTU_256; in free_mr_modify_rsv_qp() 2747 attr->dest_qp_num = hr_qp->qpn; in free_mr_modify_rsv_qp() 2748 attr in free_mr_modify_rsv_qp() 2710 free_mr_modify_rsv_qp(struct hns_roce_dev *hr_dev, struct ib_qp_attr *attr, int sl_num) free_mr_modify_rsv_qp() argument 2780 struct ib_qp_attr attr = {}; free_mr_modify_qp() local 3083 config_gmv_table(struct hns_roce_dev *hr_dev, int gid_index, const union ib_gid *gid, enum hns_roce_sgid_type sgid_type, const struct ib_gid_attr *attr) config_gmv_table() argument 3123 hns_roce_v2_set_gid(struct hns_roce_dev *hr_dev, int gid_index, const union ib_gid *gid, const struct ib_gid_attr *attr) hns_roce_v2_set_gid() argument 4178 set_access_flags(struct hns_roce_qp *hr_qp, struct hns_roce_v2_qp_context *context, struct hns_roce_v2_qp_context *qpc_mask, const struct ib_qp_attr *attr, int attr_mask) set_access_flags() argument 4234 modify_qp_reset_to_init(struct ib_qp *ibqp, const struct ib_qp_attr *attr, struct hns_roce_v2_qp_context *context, struct hns_roce_v2_qp_context *qpc_mask) modify_qp_reset_to_init() argument 4294 modify_qp_init_to_init(struct ib_qp *ibqp, const struct ib_qp_attr *attr, struct hns_roce_v2_qp_context *context, struct hns_roce_v2_qp_context *qpc_mask) modify_qp_init_to_init() argument 4454 get_mtu(struct ib_qp *ibqp, const struct ib_qp_attr *attr) get_mtu() argument 4463 modify_qp_init_to_rtr(struct ib_qp *ibqp, const struct ib_qp_attr *attr, int attr_mask, struct hns_roce_v2_qp_context *context, struct hns_roce_v2_qp_context *qpc_mask, struct ib_udata *udata) modify_qp_init_to_rtr() argument 4611 modify_qp_rtr_to_rts(struct ib_qp *ibqp, const struct ib_qp_attr *attr, int attr_mask, struct hns_roce_v2_qp_context *context, struct hns_roce_v2_qp_context *qpc_mask) modify_qp_rtr_to_rts() argument 4659 get_dip_ctx_idx(struct ib_qp *ibqp, const struct ib_qp_attr *attr, u32 *dip_idx) get_dip_ctx_idx() argument 4779 fill_cong_field(struct ib_qp *ibqp, const struct ib_qp_attr *attr, struct hns_roce_v2_qp_context *context, struct hns_roce_v2_qp_context *qpc_mask) fill_cong_field() argument 4829 hns_roce_v2_set_path(struct ib_qp *ibqp, const struct ib_qp_attr *attr, int attr_mask, struct hns_roce_v2_qp_context *context, struct hns_roce_v2_qp_context *qpc_mask) hns_roce_v2_set_path() argument 4964 hns_roce_v2_set_abs_fields(struct ib_qp *ibqp, const struct ib_qp_attr *attr, int attr_mask, enum ib_qp_state cur_state, enum ib_qp_state new_state, struct hns_roce_v2_qp_context *context, struct hns_roce_v2_qp_context *qpc_mask, struct ib_udata *udata) hns_roce_v2_set_abs_fields() argument 5020 hns_roce_v2_set_opt_fields(struct ib_qp *ibqp, const struct ib_qp_attr *attr, int attr_mask, struct hns_roce_v2_qp_context *context, struct hns_roce_v2_qp_context *qpc_mask) hns_roce_v2_set_opt_fields() argument 5122 hns_roce_v2_record_opt_fields(struct ib_qp *ibqp, const struct ib_qp_attr *attr, int attr_mask) hns_roce_v2_record_opt_fields() argument 5189 hns_roce_v2_modify_qp(struct ib_qp *ibqp, const struct ib_qp_attr *attr, int attr_mask, enum ib_qp_state cur_state, enum ib_qp_state new_state, struct ib_udata *udata) hns_roce_v2_modify_qp() argument 5677 hns_roce_v2_query_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr) hns_roce_v2_query_srq() argument [all...] |