Home
last modified time | relevance | path

Searched +defs:attr +defs:type (Results 1 – 25 of 884) sorted by relevance

12345678910>>...36

/linux-6.14.4/drivers/power/supply/
Dpower_supply_hwmon.c22 static int power_supply_hwmon_in_to_property(u32 attr) in power_supply_hwmon_in_to_property()
38 static int power_supply_hwmon_curr_to_property(u32 attr) in power_supply_hwmon_curr_to_property()
52 static int power_supply_hwmon_power_to_property(u32 attr) in power_supply_hwmon_power_to_property()
64 static int power_supply_hwmon_temp_to_property(u32 attr, int channel) in power_supply_hwmon_temp_to_property()
98 power_supply_hwmon_to_property(enum hwmon_sensor_types type, in power_supply_hwmon_to_property()
99 u32 attr, int channel) in power_supply_hwmon_to_property()
115 static bool power_supply_hwmon_is_a_label(enum hwmon_sensor_types type, in power_supply_hwmon_is_a_label()
116 u32 attr) in power_supply_hwmon_is_a_label()
138 enum hwmon_sensor_types type, int channel) in power_supply_hwmon_has_input()
154 static bool power_supply_hwmon_is_writable(enum hwmon_sensor_types type, in power_supply_hwmon_is_writable()
[all …]
/linux-6.14.4/drivers/vfio/mdev/
Dmdev_sysfs.c18 struct attribute attr; member
34 struct mdev_type_attribute *attr = to_mdev_type_attr(__attr); in mdev_type_attr_show() local
35 struct mdev_type *type = to_mdev_type(kobj); in mdev_type_attr_show() local
47 struct mdev_type_attribute *attr = to_mdev_type_attr(__attr); in mdev_type_attr_store() local
48 struct mdev_type *type = to_mdev_type(kobj); in mdev_type_attr_store() local
62 struct mdev_type_attribute *attr, const char *buf, in create_store()
90 struct mdev_type_attribute *attr, char *buf) in device_api_show()
97 struct mdev_type_attribute *attr, char *buf) in name_show()
106 struct mdev_type_attribute *attr, in available_instances_show()
119 struct mdev_type_attribute *attr, in description_show()
[all …]
/linux-6.14.4/drivers/accel/habanalabs/common/
Dhwmon.c17 static u32 fixup_flags_legacy_fw(struct hl_device *hdev, enum hwmon_sensor_types type, in fixup_flags_legacy_fw()
57 static u32 fixup_attr_legacy_fw(u32 attr) in fixup_attr_legacy_fw()
64 static u32 fixup_flags_legacy_fw(struct hl_device *hdev, enum hwmon_sensor_types type, in fixup_flags_legacy_fw()
70 static u32 fixup_attr_legacy_fw(u32 attr) in fixup_attr_legacy_fw()
77 static u32 adjust_hwmon_flags(struct hl_device *hdev, enum hwmon_sensor_types type, u32 cpucp_flags) in adjust_hwmon_flags()
155 enum hwmon_sensor_types type; in hl_build_hwmon_channel_info() local
243 static int hl_read(struct device *dev, enum hwmon_sensor_types type, in hl_read()
244 u32 attr, int channel, long *val) in hl_read()
397 static int hl_write(struct device *dev, enum hwmon_sensor_types type, in hl_write()
398 u32 attr, int channel, long val) in hl_write()
[all …]
/linux-6.14.4/drivers/scsi/
Discsi_boot_sysfs.c24 struct attribute attr; member
25 int type; member
33 struct attribute *attr, char *buf) in iscsi_boot_show_attribute()
108 struct attribute *attr, int i) in iscsi_boot_tgt_attr_is_visible()
191 struct attribute *attr, int i) in iscsi_boot_eth_attr_is_visible()
266 struct attribute *attr, int i) in iscsi_boot_ini_attr_is_visible()
315 struct attribute *attr, int i) in iscsi_boot_acpitbl_attr_is_visible()
341 ssize_t (*show) (void *data, int type, char *buf), in iscsi_boot_create_kobj()
342 umode_t (*is_visible) (void *data, int type), in iscsi_boot_create_kobj()
404 ssize_t (*show) (void *data, int type, char *buf), in iscsi_boot_create_target()
[all …]
/linux-6.14.4/kernel/bpf/
Dnet_namespace.c14 enum bpf_attach_type type; member
29 static void netns_bpf_attach_type_unneed(enum netns_bpf_attach_type type) in netns_bpf_attach_type_unneed()
42 static void netns_bpf_attach_type_need(enum netns_bpf_attach_type type) in netns_bpf_attach_type_need()
57 enum netns_bpf_attach_type type) in netns_bpf_run_array_detach()
66 static int link_index(struct net *net, enum netns_bpf_attach_type type, in link_index()
80 static int link_count(struct net *net, enum netns_bpf_attach_type type) in link_count()
90 static void fill_prog_array(struct net *net, enum netns_bpf_attach_type type, in fill_prog_array()
106 enum netns_bpf_attach_type type = net_link->netns_type; in bpf_netns_link_release() local
170 enum netns_bpf_attach_type type = net_link->netns_type; in bpf_netns_link_update_prog() local
246 static int __netns_bpf_prog_query(const union bpf_attr *attr, in __netns_bpf_prog_query()
[all …]
/linux-6.14.4/net/802/
Dgarp.c138 static int garp_attr_cmp(const struct garp_attr *attr, in garp_attr_cmp()
139 const void *data, u8 len, u8 type) in garp_attr_cmp()
149 const void *data, u8 len, u8 type) in garp_attr_lookup()
152 struct garp_attr *attr; in garp_attr_lookup() local
169 const void *data, u8 len, u8 type) in garp_attr_create()
172 struct garp_attr *attr; in garp_attr_create() local
201 static void garp_attr_destroy(struct garp_applicant *app, struct garp_attr *attr) in garp_attr_destroy()
210 struct garp_attr *attr; in garp_attr_destroy_all() local
289 const struct garp_attr *attr, in garp_pdu_append_attr()
325 struct garp_attr *attr, enum garp_event event) in garp_attr_event()
[all …]
Dmrp.c227 static int mrp_attr_cmp(const struct mrp_attr *attr, in mrp_attr_cmp()
228 const void *value, u8 len, u8 type) in mrp_attr_cmp()
238 const void *value, u8 len, u8 type) in mrp_attr_lookup()
241 struct mrp_attr *attr; in mrp_attr_lookup() local
258 const void *value, u8 len, u8 type) in mrp_attr_create()
261 struct mrp_attr *attr; in mrp_attr_create() local
290 static void mrp_attr_destroy(struct mrp_applicant *app, struct mrp_attr *attr) in mrp_attr_destroy()
299 struct mrp_attr *attr; in mrp_attr_destroy_all() local
405 const struct mrp_attr *attr, in mrp_pdu_append_vecattr_event()
482 struct mrp_attr *attr, enum mrp_event event) in mrp_attr_event()
[all …]
/linux-6.14.4/arch/powerpc/platforms/powernv/
Dopal-dump.c24 uint32_t type; member
31 struct attribute attr; member
40 struct dump_attribute *attr, in dump_id_show()
46 static const char* dump_type_to_string(uint32_t type) in dump_type_to_string()
57 struct dump_attribute *attr, in dump_type_show()
66 struct dump_attribute *attr, in dump_ack_show()
87 struct dump_attribute *attr, in dump_ack_store()
114 struct dump_attribute *attr, in init_dump_show()
120 static int64_t dump_fips_init(uint8_t type) in dump_fips_init()
132 struct dump_attribute *attr, in init_dump_store()
[all …]
Dopal-elog.c24 uint64_t type; member
31 struct attribute attr; member
40 struct elog_attribute *attr, in elog_id_show()
46 static const char *elog_type_to_string(uint64_t type) in elog_type_to_string()
55 struct elog_attribute *attr, in elog_type_show()
64 struct elog_attribute *attr, in elog_ack_show()
71 struct elog_attribute *attr, in elog_ack_store()
96 struct attribute *attr, in elog_attr_show()
112 struct attribute *attr, in elog_attr_store()
188 static void create_elog_obj(uint64_t id, size_t size, uint64_t type) in create_elog_obj()
[all …]
/linux-6.14.4/drivers/infiniband/sw/rxe/
Drxe_av.c10 void rxe_init_av(struct rdma_ah_attr *attr, struct rxe_av *av) in rxe_init_av()
17 static int chk_attr(void *obj, struct rdma_ah_attr *attr, bool obj_is_ah) in chk_attr()
24 int type; in chk_attr() local
63 int rxe_av_chk_attr(struct rxe_qp *qp, struct rdma_ah_attr *attr) in rxe_av_chk_attr()
68 int rxe_ah_chk_attr(struct rxe_ah *ah, struct rdma_ah_attr *attr) in rxe_ah_chk_attr()
74 struct rdma_ah_attr *attr) in rxe_av_from_attr()
87 void rxe_av_to_attr(struct rxe_av *av, struct rdma_ah_attr *attr) in rxe_av_to_attr()
103 void rxe_av_fill_ip_info(struct rxe_av *av, struct rdma_ah_attr *attr) in rxe_av_fill_ip_info()
107 int type; in rxe_av_fill_ip_info() local
/linux-6.14.4/tools/lib/bpf/
Dbpf.c72 static inline int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf()
78 static inline int sys_bpf_fd(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf_fd()
87 int sys_bpf_prog_load(union bpf_attr *attr, unsigned int size, int attempts) in sys_bpf_prog_load()
114 union bpf_attr attr; in probe_memcg_account() local
176 union bpf_attr attr; in bpf_map_create() local
247 union bpf_attr attr; in bpf_prog_load() local
392 union bpf_attr attr; in bpf_map_update_elem() local
408 union bpf_attr attr; in bpf_map_lookup_elem() local
423 union bpf_attr attr; in bpf_map_lookup_elem_flags() local
439 union bpf_attr attr; in bpf_map_lookup_and_delete_elem() local
[all …]
/linux-6.14.4/drivers/hwmon/
Daxi-fan-control.c82 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in axi_fan_control_show() local
94 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in axi_fan_control_store() local
151 static int axi_fan_control_read_temp(struct device *dev, u32 attr, long *val) in axi_fan_control_read_temp()
172 static int axi_fan_control_read_fan(struct device *dev, u32 attr, long *val) in axi_fan_control_read_fan()
190 static int axi_fan_control_read_pwm(struct device *dev, u32 attr, long *val) in axi_fan_control_read_pwm()
203 static int axi_fan_control_write_pwm(struct device *dev, u32 attr, long val) in axi_fan_control_write_pwm()
216 enum hwmon_sensor_types type, in axi_fan_control_read_labels()
217 u32 attr, int channel, const char **str) in axi_fan_control_read_labels()
232 enum hwmon_sensor_types type, in axi_fan_control_read()
233 u32 attr, int channel, long *val) in axi_fan_control_read()
[all …]
Dgxp-fan-ctrl.c58 static int gxp_pwm_write(struct device *dev, u32 attr, int channel, long val) in gxp_pwm_write()
73 static int gxp_fan_ctrl_write(struct device *dev, enum hwmon_sensor_types type, in gxp_fan_ctrl_write()
74 u32 attr, int channel, long val) in gxp_fan_ctrl_write()
84 static int gxp_fan_read(struct device *dev, u32 attr, int channel, long *val) in gxp_fan_read()
98 static int gxp_pwm_read(struct device *dev, u32 attr, int channel, long *val) in gxp_pwm_read()
119 static int gxp_fan_ctrl_read(struct device *dev, enum hwmon_sensor_types type, in gxp_fan_ctrl_read()
120 u32 attr, int channel, long *val) in gxp_fan_ctrl_read()
133 enum hwmon_sensor_types type, in gxp_fan_ctrl_is_visible()
134 u32 attr, int channel) in gxp_fan_ctrl_is_visible()
Dlm83.c104 enum chips type; member
176 static int lm83_temp_read(struct device *dev, u32 attr, int channel, long *val) in lm83_temp_read()
225 static int lm83_temp_write(struct device *dev, u32 attr, int channel, long val) in lm83_temp_write()
250 static int lm83_chip_read(struct device *dev, u32 attr, int channel, long *val) in lm83_chip_read()
274 static int lm83_read(struct device *dev, enum hwmon_sensor_types type, in lm83_read()
275 u32 attr, int channel, long *val) in lm83_read()
287 static int lm83_write(struct device *dev, enum hwmon_sensor_types type, in lm83_write()
288 u32 attr, int channel, long val) in lm83_write()
298 static umode_t lm83_is_visible(const void *_data, enum hwmon_sensor_types type, in lm83_is_visible()
299 u32 attr, int channel) in lm83_is_visible()
Dsg2042-mcu.c60 struct device_attribute *attr, in reset_count_show()
74 struct device_attribute *attr, in uptime_show()
91 struct device_attribute *attr, in reset_reason_show()
105 struct device_attribute *attr, in repower_policy_show()
127 struct device_attribute *attr, in repower_policy_store()
185 enum hwmon_sensor_types type, in sg2042_mcu_read()
186 u32 attr, int channel, long *val) in sg2042_mcu_read()
215 enum hwmon_sensor_types type, in sg2042_mcu_write()
216 u32 attr, int channel, long val) in sg2042_mcu_write()
261 enum hwmon_sensor_types type, in sg2042_mcu_is_visible()
[all …]
Dmax1619.c55 static int max1619_temp_read(struct regmap *regmap, u32 attr, int channel, long *val) in max1619_temp_read()
108 static int max1619_chip_read(struct regmap *regmap, u32 attr, long *val) in max1619_chip_read()
132 static int max1619_read(struct device *dev, enum hwmon_sensor_types type, in max1619_read()
133 u32 attr, int channel, long *val) in max1619_read()
147 static int max1619_chip_write(struct regmap *regmap, u32 attr, long val) in max1619_chip_write()
159 u32 attr, int channel, long val) in max1619_temp_write()
183 static int max1619_write(struct device *dev, enum hwmon_sensor_types type, in max1619_write()
184 u32 attr, int channel, long val) in max1619_write()
198 static umode_t max1619_is_visible(const void *_data, enum hwmon_sensor_types type, in max1619_is_visible()
199 u32 attr, int channel) in max1619_is_visible()
/linux-6.14.4/drivers/net/ethernet/netronome/nfp/
Dnfp_hwmon.c17 static int nfp_hwmon_sensor_id(enum hwmon_sensor_types type, int channel) in nfp_hwmon_sensor_id()
27 nfp_hwmon_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, in nfp_hwmon_read()
31 enum hwmon_sensor_types type; in nfp_hwmon_read() member
32 u32 attr; in nfp_hwmon_read() member
66 nfp_hwmon_is_visible(const void *data, enum hwmon_sensor_types type, u32 attr, in nfp_hwmon_is_visible()
/linux-6.14.4/drivers/nvme/host/
Dhwmon.c66 static int nvme_hwmon_read(struct device *dev, enum hwmon_sensor_types type, in nvme_hwmon_read()
67 u32 attr, int channel, long *val) in nvme_hwmon_read()
115 static int nvme_hwmon_write(struct device *dev, enum hwmon_sensor_types type, in nvme_hwmon_write()
116 u32 attr, int channel, long val) in nvme_hwmon_write()
145 enum hwmon_sensor_types type, u32 attr, in nvme_hwmon_read_string()
153 enum hwmon_sensor_types type, in nvme_hwmon_is_visible()
154 u32 attr, int channel) in nvme_hwmon_is_visible()
/linux-6.14.4/drivers/fpga/
Ddfl-fme-main.c29 struct device_attribute *attr, char *buf) in ports_num_show()
49 struct device_attribute *attr, char *buf) in bitstream_id_show()
68 struct device_attribute *attr, char *buf) in bitstream_metadata_show()
83 struct device_attribute *attr, char *buf) in cache_size_show()
99 struct device_attribute *attr, char *buf) in fabric_version_show()
115 struct device_attribute *attr, char *buf) in socket_id_show()
220 enum hwmon_sensor_types type, in thermal_hwmon_attrs_visible()
221 u32 attr, int channel) in thermal_hwmon_attrs_visible()
232 static int thermal_hwmon_read(struct device *dev, enum hwmon_sensor_types type, in thermal_hwmon_read()
233 u32 attr, int channel, long *val) in thermal_hwmon_read()
[all …]
/linux-6.14.4/drivers/net/ethernet/aquantia/atlantic/
Daq_drvinfo.c27 static int aq_hwmon_read(struct device *dev, enum hwmon_sensor_types type, in aq_hwmon_read()
28 u32 attr, int channel, long *value) in aq_hwmon_read()
67 enum hwmon_sensor_types type, in aq_hwmon_read_string()
68 u32 attr, int channel, const char **str) in aq_hwmon_read_string()
87 enum hwmon_sensor_types type, in aq_hwmon_is_visible()
88 u32 attr, int channel) in aq_hwmon_is_visible()
/linux-6.14.4/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_hwmon.c23 u32 attr; in bnxt_hwmon_notify_event() local
75 static umode_t bnxt_hwmon_is_visible(const void *_data, enum hwmon_sensor_types type, in bnxt_hwmon_is_visible()
76 u32 attr, int channel) in bnxt_hwmon_is_visible()
100 static int bnxt_hwmon_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, in bnxt_hwmon_read()
160 struct device_attribute *attr, char *buf) in temp1_shutdown_show()
168 struct device_attribute *attr, char *buf) in temp1_shutdown_alarm_show()
191 struct attribute *attr, int index) in bnxt_temp_extra_attrs_visible()
/linux-6.14.4/drivers/gpu/drm/nouveau/
Dnouveau_hwmon.c236 nouveau_chip_is_visible(const void *data, u32 attr, int channel) in nouveau_chip_is_visible()
247 nouveau_power_is_visible(const void *data, u32 attr, int channel) in nouveau_power_is_visible()
272 nouveau_temp_is_visible(const void *data, u32 attr, int channel) in nouveau_temp_is_visible()
296 nouveau_pwm_is_visible(const void *data, u32 attr, int channel) in nouveau_pwm_is_visible()
315 nouveau_input_is_visible(const void *data, u32 attr, int channel) in nouveau_input_is_visible()
335 nouveau_fan_is_visible(const void *data, u32 attr, int channel) in nouveau_fan_is_visible()
352 nouveau_chip_read(struct device *dev, u32 attr, int channel, long *val) in nouveau_chip_read()
366 nouveau_temp_read(struct device *dev, u32 attr, int channel, long *val) in nouveau_temp_read()
415 nouveau_fan_read(struct device *dev, u32 attr, int channel, long *val) in nouveau_fan_read()
438 nouveau_in_read(struct device *dev, u32 attr, int channel, long *val) in nouveau_in_read()
[all …]
/linux-6.14.4/drivers/vdpa/solidrun/
Dsnet_hwmon.c34 enum hwmon_sensor_types type, in snet_howmon_is_visible()
35 u32 attr, int channel) in snet_howmon_is_visible()
40 static int snet_howmon_read(struct device *dev, enum hwmon_sensor_types type, in snet_howmon_read()
41 u32 attr, int channel, long *val) in snet_howmon_read()
128 enum hwmon_sensor_types type, u32 attr, in snet_hwmon_read_string()
/linux-6.14.4/drivers/greybus/
Dinterface.c49 u16 attr, u32 *val) in gb_interface_dme_attr_get()
367 u16 attr; in gb_interface_read_and_clear_init_status() local
439 #define gb_interface_attr(field, type) \ argument
457 struct device_attribute *attr, char *buf) in voltage_now_show()
476 struct device_attribute *attr, char *buf) in current_now_show()
495 struct device_attribute *attr, char *buf) in power_now_show()
514 struct device_attribute *attr, char *buf) in power_state_show()
525 struct device_attribute *attr, const char *buf, in power_state_store()
584 struct device_attribute *attr, char *buf) in interface_type_show()
620 struct attribute *attr, int n) in interface_unipro_is_visible()
[all …]
/linux-6.14.4/drivers/net/ethernet/meta/fbnic/
Dfbnic_hwmon.c9 static int fbnic_hwmon_sensor_id(enum hwmon_sensor_types type) in fbnic_hwmon_sensor_id()
20 enum hwmon_sensor_types type, in fbnic_hwmon_is_visible()
21 u32 attr, int channel) in fbnic_hwmon_is_visible()
31 static int fbnic_hwmon_read(struct device *dev, enum hwmon_sensor_types type, in fbnic_hwmon_read()
32 u32 attr, int channel, long *val) in fbnic_hwmon_read()

12345678910>>...36