Home
last modified time | relevance | path

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

12345678910>>...34

/openbmc/linux/drivers/power/supply/
H A Dpower_supply_hwmon.c21 static int power_supply_hwmon_in_to_property(u32 attr) in power_supply_hwmon_in_to_property()
37 static int power_supply_hwmon_curr_to_property(u32 attr) in power_supply_hwmon_curr_to_property()
51 static int power_supply_hwmon_temp_to_property(u32 attr, int channel) in power_supply_hwmon_temp_to_property()
85 power_supply_hwmon_to_property(enum hwmon_sensor_types type, in power_supply_hwmon_to_property()
86 u32 attr, int channel) in power_supply_hwmon_to_property()
100 static bool power_supply_hwmon_is_a_label(enum hwmon_sensor_types type, in power_supply_hwmon_is_a_label()
101 u32 attr) in power_supply_hwmon_is_a_label()
123 enum hwmon_sensor_types type, int channel) in power_supply_hwmon_has_input()
139 static bool power_supply_hwmon_is_writable(enum hwmon_sensor_types type, in power_supply_hwmon_is_writable()
140 u32 attr) in power_supply_hwmon_is_writable()
[all …]
/openbmc/linux/drivers/vfio/mdev/
H A 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 …]
/openbmc/linux/drivers/accel/habanalabs/common/
H A 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
242 static int hl_read(struct device *dev, enum hwmon_sensor_types type, in hl_read()
243 u32 attr, int channel, long *val) in hl_read()
396 static int hl_write(struct device *dev, enum hwmon_sensor_types type, in hl_write()
397 u32 attr, int channel, long val) in hl_write()
[all …]
/openbmc/linux/drivers/scsi/
H A 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 …]
/openbmc/linux/drivers/infiniband/sw/rxe/
H A 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
/openbmc/linux/kernel/bpf/
H A 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 …]
/openbmc/linux/net/802/
H A Dgarp.c137 static int garp_attr_cmp(const struct garp_attr *attr, in garp_attr_cmp()
138 const void *data, u8 len, u8 type) in garp_attr_cmp()
148 const void *data, u8 len, u8 type) in garp_attr_lookup()
151 struct garp_attr *attr; in garp_attr_lookup() local
168 const void *data, u8 len, u8 type) in garp_attr_create()
171 struct garp_attr *attr; in garp_attr_create() local
200 static void garp_attr_destroy(struct garp_applicant *app, struct garp_attr *attr) in garp_attr_destroy()
209 struct garp_attr *attr; in garp_attr_destroy_all() local
288 const struct garp_attr *attr, in garp_pdu_append_attr()
324 struct garp_attr *attr, enum garp_event event) in garp_attr_event()
[all …]
H A Dmrp.c226 static int mrp_attr_cmp(const struct mrp_attr *attr, in mrp_attr_cmp()
227 const void *value, u8 len, u8 type) in mrp_attr_cmp()
237 const void *value, u8 len, u8 type) in mrp_attr_lookup()
240 struct mrp_attr *attr; in mrp_attr_lookup() local
257 const void *value, u8 len, u8 type) in mrp_attr_create()
260 struct mrp_attr *attr; in mrp_attr_create() local
289 static void mrp_attr_destroy(struct mrp_applicant *app, struct mrp_attr *attr) in mrp_attr_destroy()
298 struct mrp_attr *attr; in mrp_attr_destroy_all() local
404 const struct mrp_attr *attr, in mrp_pdu_append_vecattr_event()
481 struct mrp_attr *attr, enum mrp_event event) in mrp_attr_event()
[all …]
/openbmc/linux/arch/powerpc/platforms/powernv/
H A 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 …]
H A 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 …]
/openbmc/linux/tools/net/ynl/generated/
H A Ddevlink-user.c164 const struct nlattr *attr; in devlink_dl_info_version_parse() local
167 unsigned int type = mnl_attr_get_type(attr); in devlink_dl_info_version_parse() local
206 const struct nlattr *attr; in devlink_dl_reload_stats_entry_parse() local
209 unsigned int type = mnl_attr_get_type(attr); in devlink_dl_reload_stats_entry_parse() local
241 const struct nlattr *attr; in devlink_dl_reload_act_stats_parse() local
251 unsigned int type = mnl_attr_get_type(attr); in devlink_dl_reload_act_stats_parse() local
290 const struct nlattr *attr; in devlink_dl_reload_act_info_parse() local
300 unsigned int type = mnl_attr_get_type(attr); in devlink_dl_reload_act_info_parse() local
344 const struct nlattr *attr; in devlink_dl_reload_stats_parse() local
354 unsigned int type = mnl_attr_get_type(attr); in devlink_dl_reload_stats_parse() local
[all …]
H A Dethtool-user.c696 const struct nlattr *attr; in ethtool_header_parse() local
699 unsigned int type = mnl_attr_get_type(attr); in ethtool_header_parse() local
751 const struct nlattr *attr; in ethtool_pause_stat_parse() local
754 unsigned int type = mnl_attr_get_type(attr); in ethtool_pause_stat_parse() local
804 const struct nlattr *attr; in ethtool_fec_stat_parse() local
807 unsigned int type = mnl_attr_get_type(attr); in ethtool_fec_stat_parse() local
853 const struct nlattr *attr; in ethtool_mm_stat_parse() local
856 unsigned int type = mnl_attr_get_type(attr); in ethtool_mm_stat_parse() local
902 const struct nlattr *attr; in ethtool_cable_result_parse() local
905 unsigned int type = mnl_attr_get_type(attr); in ethtool_cable_result_parse() local
[all …]
/openbmc/linux/tools/lib/bpf/
H A 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
173 union bpf_attr attr; in bpf_map_create() local
241 union bpf_attr attr; in bpf_prog_load() local
384 union bpf_attr attr; in bpf_map_update_elem() local
400 union bpf_attr attr; in bpf_map_lookup_elem() local
415 union bpf_attr attr; in bpf_map_lookup_elem_flags() local
431 union bpf_attr attr; in bpf_map_lookup_and_delete_elem() local
[all …]
/openbmc/linux/drivers/net/ethernet/netronome/nfp/
H A 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()
/openbmc/linux/drivers/hwmon/
H A 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()
H A Daxi-fan-control.c81 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in axi_fan_control_show() local
93 struct sensor_device_attribute *attr = to_sensor_dev_attr(da); in axi_fan_control_store() local
150 static int axi_fan_control_read_temp(struct device *dev, u32 attr, long *val) in axi_fan_control_read_temp()
171 static int axi_fan_control_read_fan(struct device *dev, u32 attr, long *val) in axi_fan_control_read_fan()
189 static int axi_fan_control_read_pwm(struct device *dev, u32 attr, long *val) in axi_fan_control_read_pwm()
202 static int axi_fan_control_write_pwm(struct device *dev, u32 attr, long val) in axi_fan_control_write_pwm()
215 enum hwmon_sensor_types type, in axi_fan_control_read_labels()
216 u32 attr, int channel, const char **str) in axi_fan_control_read_labels()
231 enum hwmon_sensor_types type, in axi_fan_control_read()
232 u32 attr, int channel, long *val) in axi_fan_control_read()
[all …]
H A 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()
H A Dsmpro-hwmon.c206 static int smpro_read_temp(struct device *dev, u32 attr, int channel, long *val) in smpro_read_temp()
231 static int smpro_read_in(struct device *dev, u32 attr, int channel, long *val) in smpro_read_in()
250 static int smpro_read_curr(struct device *dev, u32 attr, int channel, long *val) in smpro_read_curr()
269 static int smpro_read_power(struct device *dev, u32 attr, int channel, long *val_pwr) in smpro_read_power()
293 static int smpro_read(struct device *dev, enum hwmon_sensor_types type, in smpro_read()
294 u32 attr, int channel, long *val) in smpro_read()
310 static int smpro_read_string(struct device *dev, enum hwmon_sensor_types type, in smpro_read_string()
311 u32 attr, int channel, const char **str) in smpro_read_string()
360 static umode_t smpro_is_visible(const void *data, enum hwmon_sensor_types type, in smpro_is_visible()
361 u32 attr, int channel) in smpro_is_visible()
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/
H A 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()
/openbmc/linux/drivers/nvme/host/
H A 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()
/openbmc/linux/drivers/fpga/
H A Ddfl-fme-main.c29 struct device_attribute *attr, char *buf) in ports_num_show()
48 struct device_attribute *attr, char *buf) in bitstream_id_show()
66 struct device_attribute *attr, char *buf) in bitstream_metadata_show()
80 struct device_attribute *attr, char *buf) in cache_size_show()
95 struct device_attribute *attr, char *buf) in fabric_version_show()
110 struct device_attribute *attr, char *buf) in socket_id_show()
214 enum hwmon_sensor_types type, in thermal_hwmon_attrs_visible()
215 u32 attr, int channel) in thermal_hwmon_attrs_visible()
226 static int thermal_hwmon_read(struct device *dev, enum hwmon_sensor_types type, in thermal_hwmon_read()
227 u32 attr, int channel, long *val) in thermal_hwmon_read()
[all …]
/openbmc/linux/drivers/vdpa/solidrun/
H A 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()
/openbmc/linux/drivers/gpu/drm/nouveau/
H A 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 …]
/openbmc/linux/fs/ntfs3/
H A Dattrlist.c44 int ntfs_load_attr_list(struct ntfs_inode *ni, struct ATTRIB *attr) in ntfs_load_attr_list()
170 const struct ATTRIB *attr) in al_find_le()
187 enum ATTR_TYPE type, const __le16 *name, in al_find_ex()
243 enum ATTR_TYPE type, in al_find_le_to_insert()
286 int al_add_le(struct ntfs_inode *ni, enum ATTR_TYPE type, const __le16 *name, in al_add_le()
291 struct ATTRIB *attr; in al_add_le() local
388 bool al_delete_le(struct ntfs_inode *ni, enum ATTR_TYPE type, CLST vcn, in al_delete_le()
441 struct ATTRIB *attr; in al_update() local
/openbmc/linux/arch/arm64/kvm/vgic/
H A Dvgic-kvm-device.c91 static int kvm_vgic_addr(struct kvm *kvm, struct kvm_device_attr *attr, bool write) in kvm_vgic_addr()
209 struct kvm_device_attr *attr) in vgic_set_common_attr()
285 struct kvm_device_attr *attr) in vgic_get_common_attr()
305 static int vgic_create(struct kvm_device *dev, u32 type) in vgic_create()
315 int kvm_register_vgic_device(unsigned long type) in kvm_register_vgic_device()
337 int vgic_v2_parse_attr(struct kvm_device *dev, struct kvm_device_attr *attr, in vgic_v2_parse_attr()
358 struct kvm_device_attr *attr, in vgic_v2_attr_regs_access()
416 struct kvm_device_attr *attr) in vgic_v2_set_attr()
428 struct kvm_device_attr *attr) in vgic_v2_get_attr()
440 struct kvm_device_attr *attr) in vgic_v2_has_attr()
[all …]

12345678910>>...34