Home
last modified time | relevance | path

Searched refs:parse_state (Results 1 – 25 of 28) sorted by relevance

12

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/
H A Dmirred.c101 tc_act_can_offload_mirred(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_mirred() argument
106 struct netlink_ext_ack *extack = parse_state->extack; in tc_act_can_offload_mirred()
107 struct mlx5e_tc_flow *flow = parse_state->flow; in tc_act_can_offload_mirred()
124 if (parse_state->mpls_push && !netif_is_bareudp(out_dev)) { in tc_act_can_offload_mirred()
129 if (parse_state->eth_pop && !parse_state->mpls_push) { in tc_act_can_offload_mirred()
134 if (flow_flag_test(parse_state->flow, L3_TO_L2_DECAP) && !parse_state->eth_push) { in tc_act_can_offload_mirred()
156 if (parse_state->encap || in tc_act_can_offload_mirred()
176 parse_mirred_encap(struct mlx5e_tc_act_parse_state *parse_state, in parse_mirred_encap() argument
186 mlx5e_dup_tun_info(parse_state->tun_info); in parse_mirred_encap()
191 parse_state->encap = false; in parse_mirred_encap()
[all …]
H A Dmpls.c9 tc_act_can_offload_mpls_push(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_mpls_push() argument
14 struct netlink_ext_ack *extack = parse_state->extack; in tc_act_can_offload_mpls_push()
15 struct mlx5e_priv *priv = parse_state->flow->priv; in tc_act_can_offload_mpls_push()
37 tc_act_parse_mpls_push(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_mpls_push() argument
42 parse_state->mpls_push = true; in tc_act_parse_mpls_push()
43 copy_mpls_info(&parse_state->mpls_info, act); in tc_act_parse_mpls_push()
49 tc_act_can_offload_mpls_pop(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_mpls_pop() argument
54 struct netlink_ext_ack *extack = parse_state->extack; in tc_act_can_offload_mpls_pop()
65 if ((act_index == 1 && !parse_state->decap) || act_index > 1) { in tc_act_can_offload_mpls_pop()
79 tc_act_parse_mpls_pop(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_mpls_pop() argument
[all …]
H A Dtun.c9 tc_act_can_offload_tun_encap(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_tun_encap() argument
15 NL_SET_ERR_MSG_MOD(parse_state->extack, in tc_act_can_offload_tun_encap()
24 tc_act_parse_tun_encap(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_tun_encap() argument
29 parse_state->tun_info = act->tunnel; in tc_act_parse_tun_encap()
30 parse_state->encap = true; in tc_act_parse_tun_encap()
36 tc_act_parse_tun_decap(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_tun_decap() argument
41 parse_state->decap = true; in tc_act_parse_tun_decap()
H A Dct.c9 tc_act_parse_ct(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_ct() argument
16 err = mlx5_tc_ct_parse_action(parse_state->ct_priv, attr, act, parse_state->extack); in tc_act_parse_ct()
20 if (mlx5e_is_eswitch_flow(parse_state->flow)) { in tc_act_parse_ct()
22 parse_state->if_count = 0; in tc_act_parse_ct()
31 tc_act_post_parse_ct(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_post_parse_ct() argument
38 return mlx5_tc_ct_flow_offload(parse_state->ct_priv, attr); in tc_act_post_parse_ct()
H A Dact.c74 mlx5e_tc_act_init_parse_state(struct mlx5e_tc_act_parse_state *parse_state, in mlx5e_tc_act_init_parse_state() argument
79 memset(parse_state, 0, sizeof(*parse_state)); in mlx5e_tc_act_init_parse_state()
80 parse_state->flow = flow; in mlx5e_tc_act_init_parse_state()
81 parse_state->extack = extack; in mlx5e_tc_act_init_parse_state()
82 parse_state->flow_action = flow_action; in mlx5e_tc_act_init_parse_state()
86 mlx5e_tc_act_post_parse(struct mlx5e_tc_act_parse_state *parse_state, in mlx5e_tc_act_post_parse() argument
96 priv = parse_state->flow->priv; in mlx5e_tc_act_post_parse()
108 err = tc_act->post_parse(parse_state, priv, attr); in mlx5e_tc_act_post_parse()
H A Dgoto.c60 tc_act_can_offload_goto(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_goto() argument
65 struct netlink_ext_ack *extack = parse_state->extack; in tc_act_can_offload_goto()
66 struct mlx5e_tc_flow *flow = parse_state->flow; in tc_act_can_offload_goto()
75 tc_act_parse_goto(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_goto() argument
87 tc_act_post_parse_goto(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_post_parse_goto() argument
92 struct netlink_ext_ack *extack = parse_state->extack; in tc_act_post_parse_goto()
93 struct mlx5e_tc_flow *flow = parse_state->flow; in tc_act_post_parse_goto()
98 if (parse_state->decap) { in tc_act_post_parse_goto()
H A Dvlan.c38 struct mlx5e_tc_act_parse_state *parse_state) in parse_tc_vlan_action() argument
72 parse_state->eth_pop = true; in parse_tc_vlan_action()
75 if (!flow_flag_test(parse_state->flow, L3_TO_L2_DECAP)) in parse_tc_vlan_action()
77 parse_state->eth_push = true; in parse_tc_vlan_action()
145 tc_act_parse_vlan(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_vlan() argument
159 parse_state->extack); in tc_act_parse_vlan()
162 parse_state->extack, parse_state); in tc_act_parse_vlan()
169 parse_state->if_count = 0; in tc_act_parse_vlan()
175 tc_act_post_parse_vlan(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_post_parse_vlan() argument
180 struct netlink_ext_ack *extack = parse_state->extack; in tc_act_post_parse_vlan()
H A Dmirred_nic.c8 tc_act_can_offload_mirred_nic(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_mirred_nic() argument
13 struct netlink_ext_ack *extack = parse_state->extack; in tc_act_can_offload_mirred_nic()
14 struct mlx5e_tc_flow *flow = parse_state->flow; in tc_act_can_offload_mirred_nic()
36 tc_act_parse_mirred_nic(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_mirred_nic() argument
42 flow_flag_set(parse_state->flow, HAIRPIN); in tc_act_parse_mirred_nic()
H A Dredirect_ingress.c8 tc_act_can_offload_redirect_ingress(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_redirect_ingress() argument
13 struct netlink_ext_ack *extack = parse_state->extack; in tc_act_can_offload_redirect_ingress()
36 if (!parse_state->ptype_host) { in tc_act_can_offload_redirect_ingress()
52 tc_act_parse_redirect_ingress(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_redirect_ingress() argument
69 parse_state->if_count = 0; in tc_act_parse_redirect_ingress()
H A Dcsum.c39 tc_act_can_offload_csum(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_csum() argument
44 struct mlx5e_tc_flow *flow = parse_state->flow; in tc_act_can_offload_csum()
47 act->csum_flags, parse_state->extack); in tc_act_can_offload_csum()
51 tc_act_parse_csum(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_csum() argument
H A Dact.h39 bool (*can_offload)(struct mlx5e_tc_act_parse_state *parse_state,
44 int (*parse_action)(struct mlx5e_tc_act_parse_state *parse_state,
49 int (*post_parse)(struct mlx5e_tc_act_parse_state *parse_state,
108 mlx5e_tc_act_init_parse_state(struct mlx5e_tc_act_parse_state *parse_state,
114 mlx5e_tc_act_post_parse(struct mlx5e_tc_act_parse_state *parse_state,
H A Dptype.c8 tc_act_parse_ptype(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_ptype() argument
13 struct netlink_ext_ack *extack = parse_state->extack; in tc_act_parse_ptype()
20 parse_state->ptype_host = true; in tc_act_parse_ptype()
H A Dmark.c8 tc_act_can_offload_mark(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_mark() argument
14 NL_SET_ERR_MSG_MOD(parse_state->extack, "Bad flow mark, only 16 bit supported"); in tc_act_can_offload_mark()
22 tc_act_parse_mark(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_mark() argument
H A Dvlan_mangle.c54 tc_act_parse_vlan_mangle(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_vlan_mangle() argument
62 ns_type = mlx5e_get_flow_namespace(parse_state->flow); in tc_act_parse_vlan_mangle()
64 &attr->action, parse_state->extack); in tc_act_parse_vlan_mangle()
70 parse_state->if_count = 0; in tc_act_parse_vlan_mangle()
H A Dpedit.c83 tc_act_parse_pedit(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_pedit() argument
89 struct mlx5e_tc_flow *flow = parse_state->flow; in tc_act_parse_pedit()
96 parse_state->extack); in tc_act_parse_pedit()
104 parse_state->if_count = 0; in tc_act_parse_pedit()
H A Dpolice.c41 tc_act_can_offload_police(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_can_offload_police() argument
48 err = police_act_validate(act, parse_state->extack); in tc_act_can_offload_police()
52 return !!mlx5e_get_flow_meters(parse_state->flow->priv->mdev); in tc_act_can_offload_police()
79 tc_act_parse_police(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_police() argument
84 enum mlx5_flow_namespace_type ns = mlx5e_get_flow_namespace(parse_state->flow); in tc_act_parse_police()
H A Dsample.c10 tc_act_parse_sample(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_sample() argument
24 flow_flag_set(parse_state->flow, SAMPLE); in tc_act_parse_sample()
H A Ddrop.c8 tc_act_parse_drop(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_drop() argument
H A Daccept.c8 tc_act_parse_accept(struct mlx5e_tc_act_parse_state *parse_state, in tc_act_parse_accept() argument
/linux/tools/perf/util/
H A Dparse-events.c413 bool parse_events__filter_pmu(const struct parse_events_state *parse_state, in parse_events__decode_legacy_cache()
416 if (parse_state->pmu_filter == NULL) in parse_events__decode_legacy_cache()
419 return strcmp(parse_state->pmu_filter, pmu->name) != 0; in parse_events__decode_legacy_cache()
422 static int parse_events_add_pmu(struct parse_events_state *parse_state, in parse_events__decode_legacy_cache()
428 struct parse_events_state *parse_state, in parse_events__decode_legacy_cache()
441 if (parse_events__filter_pmu(parse_state, pmu)) in parse_events__filter_pmu() argument
449 ret = parse_events_add_pmu(parse_state, list, pmu,
473 if (config_attr(&attr, parsed_terms, parse_state->error, in parse_events_add_cache()
524 static int add_tracepoint(struct parse_events_state *parse_state, in tracepoint_error()
531 struct evsel *evsel = evsel__newtp_idx(sys_name, evt_name, parse_state in tracepoint_error()
456 parse_events_add_cache(struct list_head * list,int * idx,const char * name,struct parse_events_state * parse_state,struct parse_events_terms * parsed_terms) parse_events_add_cache() argument
550 add_tracepoint(struct parse_events_state * parse_state,struct list_head * list,const char * sys_name,const char * evt_name,struct parse_events_error * err,struct parse_events_terms * head_config,void * loc_) add_tracepoint() argument
577 add_tracepoint_multi_event(struct parse_events_state * parse_state,struct list_head * list,const char * sys_name,const char * evt_name,struct parse_events_error * err,struct parse_events_terms * head_config,YYLTYPE * loc) add_tracepoint_multi_event() argument
626 add_tracepoint_event(struct parse_events_state * parse_state,struct list_head * list,const char * sys_name,const char * evt_name,struct parse_events_error * err,struct parse_events_terms * head_config,YYLTYPE * loc) add_tracepoint_event() argument
639 add_tracepoint_multi_sys(struct parse_events_state * parse_state,struct list_head * list,const char * sys_name,const char * evt_name,struct parse_events_error * err,struct parse_events_terms * head_config,YYLTYPE * loc) add_tracepoint_multi_sys() argument
735 parse_events_add_breakpoint(struct parse_events_state * parse_state,struct list_head * list,u64 addr,char * type,u64 len,struct parse_events_terms * head_config) parse_events_add_breakpoint() argument
1323 parse_events_add_tracepoint(struct parse_events_state * parse_state,struct list_head * list,const char * sys,const char * event,struct parse_events_error * err,struct parse_events_terms * head_config,void * loc_) parse_events_add_tracepoint() argument
1357 __parse_events_add_numeric(struct parse_events_state * parse_state,struct list_head * list,struct perf_pmu * pmu,u32 type,u32 extended_type,u64 config,const struct parse_events_terms * head_config) __parse_events_add_numeric() argument
1393 parse_events_add_numeric(struct parse_events_state * parse_state,struct list_head * list,u32 type,u64 config,const struct parse_events_terms * head_config,bool wildcard) parse_events_add_numeric() argument
1424 parse_events_add_tool(struct parse_events_state * parse_state,struct list_head * list,int tool_event) parse_events_add_tool() argument
1443 parse_events_add_pmu(struct parse_events_state * parse_state,struct list_head * list,struct perf_pmu * pmu,const struct parse_events_terms * const_parsed_terms,bool auto_merge_stats) parse_events_add_pmu() argument
1569 parse_events_multi_pmu_add(struct parse_events_state * parse_state,const char * event_name,const struct parse_events_terms * const_parsed_terms,struct list_head ** listp,void * loc_) parse_events_multi_pmu_add() argument
1657 parse_events_multi_pmu_add_or_add_pmu(struct parse_events_state * parse_state,const char * event_or_pmu,const struct parse_events_terms * const_parsed_terms,struct list_head ** listp,void * loc_) parse_events_multi_pmu_add_or_add_pmu() argument
1734 parse_events__modifier_list(struct parse_events_state * parse_state,YYLTYPE * loc,struct list_head * list,struct parse_events_modifier mod,bool group) parse_events__modifier_list() argument
1843 parse_events__modifier_group(struct parse_events_state * parse_state,void * loc,struct list_head * list,struct parse_events_modifier mod) parse_events__modifier_group() argument
1850 parse_events__modifier_event(struct parse_events_state * parse_state,void * loc,struct list_head * list,struct parse_events_modifier mod) parse_events__modifier_event() argument
1877 parse_events__scanner(const char * str,FILE * input,struct parse_events_state * parse_state) parse_events__scanner() argument
1911 struct parse_events_state parse_state = { parse_events_terms() local
2153 struct parse_events_state parse_state = { __parse_events() local
[all...]
H A Dparse-events.h173 bool parse_events__filter_pmu(const struct parse_events_state *parse_state,
217 int parse_events__modifier_event(struct parse_events_state *parse_state, void *loc,
219 int parse_events__modifier_group(struct parse_events_state *parse_state, void *loc,
222 int parse_events_add_tracepoint(struct parse_events_state *parse_state,
227 int parse_events_add_numeric(struct parse_events_state *parse_state,
233 struct parse_events_state *parse_state,
236 int parse_events_add_breakpoint(struct parse_events_state *parse_state,
245 int parse_events_multi_pmu_add(struct parse_events_state *parse_state,
250 int parse_events_multi_pmu_add_or_add_pmu(struct parse_events_state *parse_state,
H A Dparse-events.y23 void parse_events_error(YYLTYPE *loc, void *parse_state, void *scanner, char const *msg);
139 /* Take the parsed events, groups.. and place into parse_state. */
141 struct parse_events_state *parse_state = _parse_state;
143 list_splice_tail(groups, &parse_state->list); variable
295 struct parse_events_state *parse_state = _parse_state;
296 struct parse_events_error *error = parse_state->error;
355 struct parse_events_state *parse_state = _parse_state;
363 err = parse_events_add_cache(list, &parse_state->idx, $1, parse_state, $2);
455 struct parse_events_state *parse_state
297 struct parse_events_state *parse_state = _parse_state; global() variable
371 struct parse_events_state *parse_state = _parse_state; global() variable
471 struct parse_events_state *parse_state = _parse_state; global() variable
574 struct parse_events_state *parse_state = _parse_state; global() variable
771 struct parse_events_state *parse_state = _parse_state; global() variable
[all...]
H A Dparse-events.l29 static int value(struct parse_events_state *parse_state, yyscan_t scanner, int base) in value() argument
38 struct parse_events_error *error = parse_state->error; in value()
142 static void modifiers_error(struct parse_events_state *parse_state, yyscan_t scanner, in hw_term()
145 struct parse_events_error *error = parse_state->error; in hw_term()
152 static int modifiers(struct parse_events_state *parse_state, yyscan_t scanner) in modifiers_error()
162 modifiers_error(parse_state, scanner, i, c, #field); \ in modifiers()
188 struct parse_events_error *error = parse_state->error; in modifiers()
150 modifiers_error(struct parse_events_state * parse_state,yyscan_t scanner,int pos,char mod_char,const char * mod_name) modifiers_error() argument
160 modifiers(struct parse_events_state * parse_state,yyscan_t scanner) modifiers() argument
/linux/drivers/cpuidle/
H A Ddt_idle_genpd.c25 int (*parse_state)(struct device_node *, u32 *), in pd_parse_state_nodes()
32 ret = parse_state(to_of_node(states[i].fwnode), &state); in pd_parse_state_nodes()
55 int (*parse_state)(struct device_node *, u32 *), in pd_parse_states()
67 ret = pd_parse_state_nodes(parse_state, *states, *state_count); in pd_parse_states()
92 int (*parse_state)(struct device_node *, u32 *)) in dt_idle_pd_alloc()
110 ret = pd_parse_states(np, parse_state, &states, &state_count); in dt_idle_pd_alloc()
H A Ddt_idle_genpd.h13 int (*parse_state)(struct device_node *, u32 *));
31 int (*parse_state)(struct device_node *, u32 *)) in dt_idle_pd_alloc()

12