/linux/drivers/vfio/mdev/ |
H A D | mdev_sysfs.c | 18 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/drivers/accel/habanalabs/common/ |
H A D | hwmon.c | 17 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/drivers/scsi/ |
H A D | iscsi_boot_sysfs.c | 24 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/kernel/bpf/ |
H A D | net_namespace.c | 28 static void netns_bpf_attach_type_unneed(enum netns_bpf_attach_type type) in netns_bpf_attach_type_unneed() 41 static void netns_bpf_attach_type_need(enum netns_bpf_attach_type type) in netns_bpf_attach_type_need() 56 enum netns_bpf_attach_type type) in netns_bpf_run_array_detach() 65 static int link_index(struct net *net, enum netns_bpf_attach_type type, in link_index() 79 static int link_count(struct net *net, enum netns_bpf_attach_type type) in link_count() 89 static void fill_prog_array(struct net *net, enum netns_bpf_attach_type type, in fill_prog_array() 105 enum netns_bpf_attach_type type = net_link->netns_type; in bpf_netns_link_release() local 169 enum netns_bpf_attach_type type = net_link->netns_type; in bpf_netns_link_update_prog() local 245 static int __netns_bpf_prog_query(const union bpf_attr *attr, in __netns_bpf_prog_query() 248 enum netns_bpf_attach_type type) in __netns_bpf_prog_query() [all …]
|
/linux/net/802/ |
H A D | garp.c | 138 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 …]
|
H A D | mrp.c | 227 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/arch/powerpc/platforms/powernv/ |
H A D | opal-dump.c | 24 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 D | opal-elog.c | 24 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/drivers/hwmon/ |
H A D | mc33xs2410_hwmon.c | 45 enum hwmon_sensor_types type, in mc33xs2410_hwmon_is_visible() 46 u32 attr, int channel) in mc33xs2410_hwmon_is_visible() 61 enum hwmon_sensor_types type, in mc33xs2410_hwmon_read() 62 u32 attr, int channel, long *val) in mc33xs2410_hwmon_read() 102 enum hwmon_sensor_types type, u32 attr, in mc33xs2410_hwmon_write() 129 enum hwmon_sensor_types type, in mc33xs2410_read_string() 130 u32 attr, int channel, const char **str) in mc33xs2410_read_string()
|
H A D | gxp-fan-ctrl.c | 58 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 D | lm83.c | 104 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 D | max1619.c | 55 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()
|
H A D | smpro-hwmon.c | 206 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()
|
/linux/drivers/infiniband/sw/rxe/ |
H A D | rxe_av.c | 10 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/tools/lib/bpf/ |
H A D | bpf.c | 72 static inline int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf() argument 78 static inline int sys_bpf_fd(enum bpf_cmd cmd, union bpf_attr *attr, in sys_bpf_fd() argument 87 int sys_bpf_prog_load(union bpf_attr *attr, unsigned int size, int attempts) in sys_bpf_prog_load() argument 114 union bpf_attr attr; in probe_memcg_account() local 176 union bpf_attr attr; bpf_map_create() local 247 union bpf_attr attr; bpf_prog_load() local 392 union bpf_attr attr; bpf_map_update_elem() local 408 union bpf_attr attr; bpf_map_lookup_elem() local 423 union bpf_attr attr; bpf_map_lookup_elem_flags() local 439 union bpf_attr attr; bpf_map_lookup_and_delete_elem() local 454 union bpf_attr attr; bpf_map_lookup_and_delete_elem_flags() local 470 union bpf_attr attr; bpf_map_delete_elem() local 484 union bpf_attr attr; bpf_map_delete_elem_flags() local 499 union bpf_attr attr; bpf_map_get_next_key() local 514 union bpf_attr attr; bpf_map_freeze() local 530 union bpf_attr attr; bpf_map_batch_common() local 586 union bpf_attr attr; bpf_obj_pin_opts() local 615 union bpf_attr attr; bpf_obj_get_opts() local 630 bpf_prog_attach(int prog_fd,int target_fd,enum bpf_attach_type type,unsigned int flags) bpf_prog_attach() argument 640 bpf_prog_attach_opts(int prog_fd,int target,enum bpf_attach_type type,const struct bpf_prog_attach_opts * opts) bpf_prog_attach_opts() argument 646 union bpf_attr attr; bpf_prog_attach_opts() local 678 bpf_prog_detach_opts(int prog_fd,int target,enum bpf_attach_type type,const struct bpf_prog_detach_opts * opts) bpf_prog_detach_opts() argument 684 union bpf_attr attr; bpf_prog_detach_opts() local 715 bpf_prog_detach(int target_fd,enum bpf_attach_type type) bpf_prog_detach() argument 720 bpf_prog_detach2(int prog_fd,int target_fd,enum bpf_attach_type type) bpf_prog_detach2() argument 732 union bpf_attr attr; bpf_link_create() local 927 union bpf_attr attr; bpf_link_detach() local 941 union bpf_attr attr; bpf_link_update() local 966 union bpf_attr attr; bpf_iter_create() local 976 bpf_prog_query_opts(int target,enum bpf_attach_type type,struct bpf_prog_query_opts * opts) bpf_prog_query_opts() argument 980 union bpf_attr attr; bpf_prog_query_opts() local 1005 bpf_prog_query(int target_fd,enum bpf_attach_type type,__u32 query_flags,__u32 * attach_flags,__u32 * prog_ids,__u32 * prog_cnt) bpf_prog_query() argument 1027 union bpf_attr attr; bpf_prog_test_run_opts() local 1062 union bpf_attr attr; bpf_obj_get_next_id() local 1099 union bpf_attr attr; bpf_prog_get_fd_by_id_opts() local 1122 union bpf_attr attr; bpf_map_get_fd_by_id_opts() local 1145 union bpf_attr attr; bpf_btf_get_fd_by_id_opts() local 1169 union bpf_attr attr; bpf_link_get_fd_by_id_opts() local 1191 union bpf_attr attr; bpf_obj_get_info_by_fd() local 1228 union bpf_attr attr; bpf_raw_tracepoint_open_opts() local 1253 union bpf_attr attr; bpf_btf_load() local 1309 union bpf_attr attr; bpf_task_fd_query() local 1330 bpf_enable_stats(enum bpf_stats_type type) bpf_enable_stats() argument 1333 union bpf_attr attr; bpf_enable_stats() local 1347 union bpf_attr attr; bpf_prog_bind_map() local 1365 union bpf_attr attr; bpf_token_create() local 1383 union bpf_attr attr; bpf_prog_stream_read() local [all...] |
/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_hwmon.c | 17 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/drivers/platform/x86/amd/hsmp/ |
H A D | hwmon.c | 22 static int hsmp_hwmon_write(struct device *dev, enum hwmon_sensor_types type, in hsmp_hwmon_write() 23 u32 attr, int channel, long val) in hsmp_hwmon_write() 42 enum hwmon_sensor_types type, in hsmp_hwmon_read() 43 u32 attr, int channel, long *val) in hsmp_hwmon_read() 77 enum hwmon_sensor_types type, in hsmp_hwmon_is_visble() 78 u32 attr, int channel) in hsmp_hwmon_is_visble()
|
/linux/drivers/misc/amd-sbi/ |
H A D | rmi-hwmon.c | 15 static int sbrmi_read(struct device *dev, enum hwmon_sensor_types type, in sbrmi_read() 16 u32 attr, int channel, long *val) in sbrmi_read() 51 static int sbrmi_write(struct device *dev, enum hwmon_sensor_types type, in sbrmi_write() 52 u32 attr, int channel, long val) in sbrmi_write() 77 enum hwmon_sensor_types type, in sbrmi_is_visible() 78 u32 attr, int channel) in sbrmi_is_visible()
|
/linux/drivers/nvme/host/ |
H A D | hwmon.c | 66 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/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_drvinfo.c | 27 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/drivers/gpu/drm/nouveau/ |
H A D | nouveau_hwmon.c | 236 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/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_hwmon.c | 23 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/drivers/vdpa/solidrun/ |
H A D | snet_hwmon.c | 34 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/drivers/net/ethernet/meta/fbnic/ |
H A D | fbnic_hwmon.c | 9 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()
|
/linux/drivers/net/phy/aquantia/ |
H A D | aquantia_hwmon.c | 19 enum hwmon_sensor_types type, in aqr_hwmon_is_visible() 20 u32 attr, int channel) in aqr_hwmon_is_visible() 90 static int aqr_hwmon_read(struct device *dev, enum hwmon_sensor_types type, in aqr_hwmon_read() 91 u32 attr, int channel, long *value) in aqr_hwmon_read() 143 static int aqr_hwmon_write(struct device *dev, enum hwmon_sensor_types type, in aqr_hwmon_write() 144 u32 attr, int channel, long value) in aqr_hwmon_write()
|