/linux-master/arch/x86/include/asm/ |
H A D | inat.h | 110 static inline int inat_is_legacy_prefix(insn_attr_t attr) argument 112 attr &= INAT_PFX_MASK; 113 return attr && attr <= INAT_LGCPFX_MAX; 116 static inline int inat_is_address_size_prefix(insn_attr_t attr) argument 118 return (attr & INAT_PFX_MASK) == INAT_PFX_ADDRSZ; 121 static inline int inat_is_operand_size_prefix(insn_attr_t attr) argument 123 return (attr & INAT_PFX_MASK) == INAT_PFX_OPNDSZ; 126 static inline int inat_is_rex_prefix(insn_attr_t attr) argument 128 return (attr 131 inat_last_prefix_id(insn_attr_t attr) argument 139 inat_is_vex_prefix(insn_attr_t attr) argument 146 inat_is_evex_prefix(insn_attr_t attr) argument 151 inat_is_vex3_prefix(insn_attr_t attr) argument 156 inat_is_escape(insn_attr_t attr) argument 161 inat_escape_id(insn_attr_t attr) argument 166 inat_is_group(insn_attr_t attr) argument 171 inat_group_id(insn_attr_t attr) argument 176 inat_group_common_attribute(insn_attr_t attr) argument 181 inat_has_immediate(insn_attr_t attr) argument 186 inat_immediate_size(insn_attr_t attr) argument 191 inat_has_modrm(insn_attr_t attr) argument 196 inat_is_force64(insn_attr_t attr) argument 201 inat_has_second_immediate(insn_attr_t attr) argument 206 inat_has_moffset(insn_attr_t attr) argument 211 inat_has_variant(insn_attr_t attr) argument 216 inat_accept_vex(insn_attr_t attr) argument 221 inat_must_vex(insn_attr_t attr) argument 226 inat_must_evex(insn_attr_t attr) argument [all...] |
/linux-master/tools/arch/x86/include/asm/ |
H A D | inat.h | 110 static inline int inat_is_legacy_prefix(insn_attr_t attr) argument 112 attr &= INAT_PFX_MASK; 113 return attr && attr <= INAT_LGCPFX_MAX; 116 static inline int inat_is_address_size_prefix(insn_attr_t attr) argument 118 return (attr & INAT_PFX_MASK) == INAT_PFX_ADDRSZ; 121 static inline int inat_is_operand_size_prefix(insn_attr_t attr) argument 123 return (attr & INAT_PFX_MASK) == INAT_PFX_OPNDSZ; 126 static inline int inat_is_rex_prefix(insn_attr_t attr) argument 128 return (attr 131 inat_last_prefix_id(insn_attr_t attr) argument 139 inat_is_vex_prefix(insn_attr_t attr) argument 146 inat_is_evex_prefix(insn_attr_t attr) argument 151 inat_is_vex3_prefix(insn_attr_t attr) argument 156 inat_is_escape(insn_attr_t attr) argument 161 inat_escape_id(insn_attr_t attr) argument 166 inat_is_group(insn_attr_t attr) argument 171 inat_group_id(insn_attr_t attr) argument 176 inat_group_common_attribute(insn_attr_t attr) argument 181 inat_has_immediate(insn_attr_t attr) argument 186 inat_immediate_size(insn_attr_t attr) argument 191 inat_has_modrm(insn_attr_t attr) argument 196 inat_is_force64(insn_attr_t attr) argument 201 inat_has_second_immediate(insn_attr_t attr) argument 206 inat_has_moffset(insn_attr_t attr) argument 211 inat_has_variant(insn_attr_t attr) argument 216 inat_accept_vex(insn_attr_t attr) argument 221 inat_must_vex(insn_attr_t attr) argument 226 inat_must_evex(insn_attr_t attr) argument [all...] |
/linux-master/drivers/infiniband/hw/hfi1/ |
H A D | sysfs.c | 105 struct ib_port_attribute *attr, char *buf) 114 struct ib_port_attribute *attr, const char *buf, 130 &ib_port_attr_cc_prescan.attr, 142 struct ib_port_attribute attr; member in struct:hfi1_sc2vl_attr 147 struct ib_port_attribute *attr, char *buf) 150 container_of(attr, struct hfi1_sc2vl_attr, attr); 158 .attr = __ATTR(N, 0444, sc2vl_attr_show, NULL), \ 196 &hfi1_sc2vl_attr_0.attr.attr, 104 cc_prescan_show(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) argument 113 cc_prescan_store(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, const char *buf, size_t count) argument 146 sc2vl_attr_show(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) argument 239 struct ib_port_attribute attr; member in struct:hfi1_sl2sc_attr 243 sl2sc_attr_show(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) argument 338 struct ib_port_attribute attr; member in struct:hfi1_vl2mtu_attr 342 vl2mtu_attr_show(struct ib_device *ibdev, u32 port_num, struct ib_port_attribute *attr, char *buf) argument 406 hw_rev_show(struct device *device, struct device_attribute *attr, char *buf) argument 416 board_id_show(struct device *device, struct device_attribute *attr, char *buf) argument 430 boardversion_show(struct device *device, struct device_attribute *attr, char *buf) argument 442 nctxts_show(struct device *device, struct device_attribute *attr, char *buf) argument 461 nfreectxts_show(struct device *device, struct device_attribute *attr, char *buf) argument 473 serial_show(struct device *device, struct device_attribute *attr, char *buf) argument 485 chip_reset_store(struct device *device, struct device_attribute *attr, const char *buf, size_t count) argument 515 tempsense_show(struct device *device, struct device_attribute *attr, char *buf) argument 570 struct attribute attr; member in struct:sde_attribute 575 sde_show(struct kobject *kobj, struct attribute *attr, char *buf) argument 588 sde_store(struct kobject *kobj, struct attribute *attr, const char *buf, size_t count) argument [all...] |
/linux-master/tools/build/feature/ |
H A D | test-bpf.c | 30 union bpf_attr attr; local 32 /* Check fields in attr */ 33 attr.prog_type = BPF_PROG_TYPE_KPROBE; 34 attr.insn_cnt = 0; 35 attr.insns = 0; 36 attr.license = 0; 37 attr.log_buf = 0; 38 attr.log_size = 0; 39 attr.log_level = 0; 40 attr [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
H A D | accept.c | 11 struct mlx5_flow_attr *attr) 13 attr->action |= MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; 14 attr->flags |= MLX5_ATTR_FLAG_ACCEPT; 8 tc_act_parse_accept(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument
|
H A D | ct.c | 12 struct mlx5_flow_attr *attr) 16 err = mlx5_tc_ct_parse_action(parse_state->ct_priv, attr, act, parse_state->extack); 21 attr->esw_attr->split_count = attr->esw_attr->out_count; 25 attr->flags |= MLX5_ATTR_FLAG_CT; 33 struct mlx5_flow_attr *attr) 35 if (!(attr->flags & MLX5_ATTR_FLAG_CT)) 38 return mlx5_tc_ct_flow_offload(parse_state->ct_priv, attr); 44 struct mlx5_flow_attr *attr) 9 tc_act_parse_ct(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument 31 tc_act_post_parse_ct(struct mlx5e_tc_act_parse_state *parse_state, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument 42 tc_act_is_multi_table_act_ct(struct mlx5e_priv *priv, const struct flow_action_entry *act, struct mlx5_flow_attr *attr) argument
|
H A D | drop.c | 11 struct mlx5_flow_attr *attr) 13 attr->action |= MLX5_FLOW_CONTEXT_ACTION_DROP; 8 tc_act_parse_drop(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument
|
H A D | sample.h | 12 struct mlx5_flow_attr *attr);
|
H A D | mark.c | 11 struct mlx5_flow_attr *attr) 25 struct mlx5_flow_attr *attr) 27 attr->nic_attr->flow_tag = act->mark; 28 attr->action |= MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; 8 tc_act_can_offload_mark(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, int act_index, struct mlx5_flow_attr *attr) argument 22 tc_act_parse_mark(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument
|
H A D | trap.c | 12 struct mlx5_flow_attr *attr) 14 attr->action |= MLX5_FLOW_CONTEXT_ACTION_FWD_DEST; 15 attr->dest_ft = mlx5_eswitch_get_slow_fdb(priv->mdev->priv.eswitch); 9 tc_act_parse_trap(struct mlx5e_tc_act_parse_state *parse_state, const struct flow_action_entry *act, struct mlx5e_priv *priv, struct mlx5_flow_attr *attr) argument
|
/linux-master/include/linux/ |
H A D | bpf_lirc.h | 8 int lirc_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog); 9 int lirc_prog_detach(const union bpf_attr *attr); 10 int lirc_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr); 12 static inline int lirc_prog_attach(const union bpf_attr *attr, argument 18 static inline int lirc_prog_detach(const union bpf_attr *attr) argument 23 static inline int lirc_prog_query(const union bpf_attr *attr, argument
|
H A D | cc_platform.h | 107 * @attr: Confidential computing attribute to check 117 bool cc_platform_has(enum cc_attr attr); 118 void cc_platform_set(enum cc_attr attr); 119 void cc_platform_clear(enum cc_attr attr); 123 static inline bool cc_platform_has(enum cc_attr attr) { return false; } argument 124 static inline void cc_platform_set(enum cc_attr attr) { } argument 125 static inline void cc_platform_clear(enum cc_attr attr) { } argument
|
H A D | hw_breakpoint.h | 22 static inline void hw_breakpoint_init(struct perf_event_attr *attr) argument 24 memset(attr, 0, sizeof(*attr)); 26 attr->type = PERF_TYPE_BREAKPOINT; 27 attr->size = sizeof(*attr); 32 attr->pinned = 1; 33 attr->sample_period = 1; 36 static inline void ptrace_breakpoint_init(struct perf_event_attr *attr) argument 38 hw_breakpoint_init(attr); 106 register_user_hw_breakpoint(struct perf_event_attr *attr, perf_overflow_handler_t triggered, void *context, struct task_struct *tsk) argument 111 modify_user_hw_breakpoint(struct perf_event *bp, struct perf_event_attr *attr) argument 114 modify_user_hw_breakpoint_check(struct perf_event *bp, struct perf_event_attr *attr, bool check) argument 118 register_wide_hw_breakpoint_cpu(struct perf_event_attr *attr, perf_overflow_handler_t triggered, void *context, int cpu) argument 123 register_wide_hw_breakpoint(struct perf_event_attr *attr, perf_overflow_handler_t triggered, void *context) argument [all...] |
H A D | bpf-netns.h | 29 int netns_bpf_prog_query(const union bpf_attr *attr, 31 int netns_bpf_prog_attach(const union bpf_attr *attr, 33 int netns_bpf_prog_detach(const union bpf_attr *attr, enum bpf_prog_type ptype); 34 int netns_bpf_link_create(const union bpf_attr *attr, 37 static inline int netns_bpf_prog_query(const union bpf_attr *attr, argument 43 static inline int netns_bpf_prog_attach(const union bpf_attr *attr, argument 49 static inline int netns_bpf_prog_detach(const union bpf_attr *attr, argument 55 static inline int netns_bpf_link_create(const union bpf_attr *attr, argument
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | obj_name.c | 25 union bpf_attr attr; local 29 /* test different attr.prog_name during BPF_PROG_LOAD */ 30 ncopy = name_len < sizeof(attr.prog_name) ? 31 name_len : sizeof(attr.prog_name); 32 bzero(&attr, sizeof(attr)); 33 attr.prog_type = BPF_PROG_TYPE_SCHED_CLS; 34 attr.insn_cnt = 2; 35 attr.insns = ptr_to_u64(prog); 36 attr [all...] |
/linux-master/drivers/memory/ |
H A D | dfl-emif.c | 52 struct device_attribute attr; member in struct:emif_attr 58 container_of(dev_attr, struct emif_attr, attr) 61 struct device_attribute *attr, char *buf) 63 struct emif_attr *eattr = to_emif_attr(attr); 74 struct device_attribute *attr, 77 struct emif_attr *eattr = to_emif_attr(attr); 108 { .attr = __ATTR(inf##_index##_##_name, 0444, \ 114 { .attr = __ATTR(inf##_index##_clear, 0200, \ 148 &emif_attr_inf0_init_done.attr.attr, 60 emif_state_show(struct device *dev, struct device_attribute *attr, char *buf) argument 73 emif_clear_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 183 dfl_emif_visible(struct kobject *kobj, struct attribute *attr, int n) argument [all...] |
/linux-master/kernel/ |
H A D | fail_function.c | 58 struct fei_attr *attr; local 60 attr = kzalloc(sizeof(*attr), GFP_KERNEL); 61 if (attr) { 62 attr->kp.symbol_name = kstrdup(sym, GFP_KERNEL); 63 if (!attr->kp.symbol_name) { 64 kfree(attr); 67 attr->kp.pre_handler = fei_kprobe_handler; 68 attr->kp.post_handler = fei_post_handler; 69 attr 75 fei_attr_free(struct fei_attr *attr) argument 85 struct fei_attr *attr; local 97 struct fei_attr *attr; local 109 struct fei_attr *attr = data; local 139 struct fei_attr *attr = data; local 155 fei_debugfs_add_attr(struct fei_attr *attr) argument 164 fei_debugfs_remove_attr(struct fei_attr *attr) argument 171 struct fei_attr *attr = container_of(kp, struct fei_attr, kp); local 201 struct fei_attr *attr = list_entry(v, struct fei_attr, list); local 219 fei_attr_remove(struct fei_attr *attr) argument 229 struct fei_attr *attr, *n; local 239 struct fei_attr *attr; local [all...] |
/linux-master/arch/powerpc/platforms/pseries/ |
H A D | cc_platform.c | 16 bool cc_platform_has(enum cc_attr attr) argument 18 switch (attr) {
|
/linux-master/include/net/netfilter/ |
H A D | nf_bpf_link.h | 9 int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 11 static inline int bpf_nf_link_attach(const union bpf_attr *attr, struct bpf_prog *prog) argument
|
/linux-master/include/net/ |
H A D | netkit.h | 9 int netkit_prog_attach(const union bpf_attr *attr, struct bpf_prog *prog); 10 int netkit_link_attach(const union bpf_attr *attr, struct bpf_prog *prog); 11 int netkit_prog_detach(const union bpf_attr *attr, struct bpf_prog *prog); 12 int netkit_prog_query(const union bpf_attr *attr, union bpf_attr __user *uattr); 15 static inline int netkit_prog_attach(const union bpf_attr *attr, argument 21 static inline int netkit_link_attach(const union bpf_attr *attr, argument 27 static inline int netkit_prog_detach(const union bpf_attr *attr, argument 33 static inline int netkit_prog_query(const union bpf_attr *attr, argument
|
/linux-master/drivers/base/ |
H A D | soc.c | 22 static ssize_t soc_info_show(struct device *dev, struct device_attribute *attr, 27 struct soc_device_attribute *attr; member in struct:soc_device 48 struct attribute *attr, 54 if ((attr == &dev_attr_machine.attr) && soc_dev->attr->machine) 55 return attr->mode; 56 if ((attr == &dev_attr_family.attr) && soc_dev->attr 47 soc_attribute_mode(struct kobject *kobj, struct attribute *attr, int index) argument 69 soc_info_show(struct device *dev, struct device_attribute *attr, char *buf) argument 211 soc_device_match_attr(const struct soc_device_attribute *attr, const struct soc_device_attribute *match) argument [all...] |
/linux-master/drivers/infiniband/sw/rxe/ |
H A D | rxe.c | 45 rxe->attr.vendor_id = RXE_VENDOR_ID; 46 rxe->attr.max_mr_size = RXE_MAX_MR_SIZE; 47 rxe->attr.page_size_cap = RXE_PAGE_SIZE_CAP; 48 rxe->attr.max_qp = RXE_MAX_QP; 49 rxe->attr.max_qp_wr = RXE_MAX_QP_WR; 50 rxe->attr.device_cap_flags = RXE_DEVICE_CAP_FLAGS; 51 rxe->attr.kernel_cap_flags = IBK_ALLOW_USER_UNREG; 52 rxe->attr.max_send_sge = RXE_MAX_SGE; 53 rxe->attr.max_recv_sge = RXE_MAX_SGE; 54 rxe->attr [all...] |
/linux-master/tools/lib/bpf/ |
H A D | bpf.c | 72 static inline int sys_bpf(enum bpf_cmd cmd, union bpf_attr *attr, argument 75 return syscall(__NR_bpf, cmd, attr, size); 78 static inline int sys_bpf_fd(enum bpf_cmd cmd, union bpf_attr *attr, argument 83 fd = sys_bpf(cmd, attr, size); 87 int sys_bpf_prog_load(union bpf_attr *attr, unsigned int size, int attempts) argument 92 fd = sys_bpf_fd(BPF_PROG_LOAD, attr, size); 114 union bpf_attr attr; local 118 memset(&attr, 0, attr_sz); 119 attr.prog_type = BPF_PROG_TYPE_SOCKET_FILTER; 120 attr 176 union bpf_attr attr; local 247 union bpf_attr attr; local 391 union bpf_attr attr; local 407 union bpf_attr attr; local 422 union bpf_attr attr; local 438 union bpf_attr attr; local 453 union bpf_attr attr; local 469 union bpf_attr attr; local 483 union bpf_attr attr; local 498 union bpf_attr attr; local 513 union bpf_attr attr; local 529 union bpf_attr attr; local 585 union bpf_attr attr; local 614 union bpf_attr attr; local 645 union bpf_attr attr; local 683 union bpf_attr attr; local 731 union bpf_attr attr; local 879 union bpf_attr attr; local 893 union bpf_attr attr; local 918 union bpf_attr attr; local 932 union bpf_attr attr; local 979 union bpf_attr attr; local 1014 union bpf_attr attr; local 1051 union bpf_attr attr; local 1074 union bpf_attr attr; local 1097 union bpf_attr attr; local 1120 union bpf_attr attr; local 1142 union bpf_attr attr; local 1179 union bpf_attr attr; local 1193 union bpf_attr attr; local 1249 union bpf_attr attr; local 1273 union bpf_attr attr; local 1287 union bpf_attr attr; local 1305 union bpf_attr attr; local [all...] |
/linux-master/tools/testing/selftests/powerpc/pmu/sampling_tests/ |
H A D | bhrb_no_crash_wo_pmu_test.c | 40 event.attr.sample_period = 1000; 41 event.attr.sample_type = PERF_SAMPLE_BRANCH_STACK; 42 event.attr.disabled = 1;
|
H A D | intr_regs_no_crash_wo_pmu_test.c | 39 event.attr.sample_period = 1000; 40 event.attr.sample_type = PERF_SAMPLE_REGS_INTR; 41 event.attr.disabled = 1;
|