Home
last modified time | relevance | path

Searched refs:ttc (Results 1 – 12 of 12) sorted by relevance

/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dfs_ttc.c37 struct mlx5_flow_table *mlx5_get_ttc_flow_table(struct mlx5_ttc_table *ttc) in mlx5_get_ttc_flow_table() argument
39 return ttc->t; in mlx5_get_ttc_flow_table()
42 static void mlx5_cleanup_ttc_rules(struct mlx5_ttc_table *ttc) in mlx5_cleanup_ttc_rules() argument
47 if (!IS_ERR_OR_NULL(ttc->rules[i].rule)) { in mlx5_cleanup_ttc_rules()
48 mlx5_del_flow_rules(ttc->rules[i].rule); in mlx5_cleanup_ttc_rules()
49 ttc->rules[i].rule = NULL; in mlx5_cleanup_ttc_rules()
54 if (!IS_ERR_OR_NULL(ttc->tunnel_rules[i])) { in mlx5_cleanup_ttc_rules()
55 mlx5_del_flow_rules(ttc->tunnel_rules[i]); in mlx5_cleanup_ttc_rules()
56 ttc->tunnel_rules[i] = NULL; in mlx5_cleanup_ttc_rules()
237 struct mlx5_ttc_table *ttc) in mlx5_generate_ttc_table_rules() argument
[all …]
Dfs_ttc.h50 struct mlx5_flow_table *mlx5_get_ttc_flow_table(struct mlx5_ttc_table *ttc);
54 void mlx5_destroy_ttc_table(struct mlx5_ttc_table *ttc);
59 int mlx5_ttc_fwd_dest(struct mlx5_ttc_table *ttc, enum mlx5_traffic_types type,
62 mlx5_ttc_get_default_dest(struct mlx5_ttc_table *ttc,
64 int mlx5_ttc_fwd_default_dest(struct mlx5_ttc_table *ttc,
/drivers/clocksource/
Dtimer-cadence-ttc.c86 struct ttc_timer ttc; member
94 struct ttc_timer ttc; member
141 struct ttc_timer *timer = &ttce->ttc; in ttc_clock_event_interrupt()
158 struct ttc_timer *timer = &to_ttc_timer_clksrc(cs)->ttc; in __ttc_clocksource_read()
181 struct ttc_timer *timer = &ttce->ttc; in ttc_set_next_event()
195 struct ttc_timer *timer = &ttce->ttc; in ttc_shutdown()
207 struct ttc_timer *timer = &ttce->ttc; in ttc_set_periodic()
210 DIV_ROUND_CLOSEST(ttce->ttc.freq, PRESCALE * HZ)); in ttc_set_periodic()
217 struct ttc_timer *timer = &ttce->ttc; in ttc_resume()
230 struct ttc_timer *ttc = to_ttc_timer(nb); in ttc_rate_change_clocksource_cb() local
[all …]
DMakefile42 obj-$(CONFIG_CADENCE_TTC_TIMER) += timer-cadence-ttc.o
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dfs_tt_redirect.c127 dest = mlx5_ttc_get_default_dest(priv->fs.ttc, fs_udp2tt(type)); in fs_udp_add_default_rule()
263 err = mlx5_ttc_fwd_default_dest(priv->fs.ttc, fs_udp2tt(i)); in fs_udp_disable()
285 err = mlx5_ttc_fwd_dest(priv->fs.ttc, fs_udp2tt(i), &dest); in fs_udp_enable()
405 dest = mlx5_ttc_get_default_dest(priv->fs.ttc, MLX5_TT_ANY); in fs_any_add_default_rule()
519 err = mlx5_ttc_fwd_default_dest(priv->fs.ttc, MLX5_TT_ANY); in fs_any_disable()
538 err = mlx5_ttc_fwd_dest(priv->fs.ttc, MLX5_TT_ANY, &dest); in fs_any_enable()
Dfs.h177 struct mlx5_ttc_table *ttc; member
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dfs_tcp.c164 dest = mlx5_ttc_get_default_dest(priv->fs.ttc, fs_accel2tt(type)); in accel_fs_tcp_add_default_rule()
311 err = mlx5_ttc_fwd_default_dest(priv->fs.ttc, fs_accel2tt(i)); in accel_fs_tcp_disable()
333 err = mlx5_ttc_fwd_dest(priv->fs.ttc, fs_accel2tt(i), &dest); in accel_fs_tcp_enable()
Dipsec_fs.c269 mlx5_ttc_get_default_dest(priv->fs.ttc, fs_esp2tt(type)); in rx_create()
305 mlx5_ttc_fwd_dest(priv->fs.ttc, fs_esp2tt(type), &dest); in rx_ft_get()
324 mlx5_ttc_fwd_default_dest(priv->fs.ttc, fs_esp2tt(type)); in rx_ft_put()
/drivers/net/ethernet/mellanox/mlx5/core/
Den_rep.c708 priv->fs.ttc = mlx5_create_ttc_table(priv->mdev, &ttc_params); in mlx5e_create_rep_ttc_table()
709 if (IS_ERR(priv->fs.ttc)) { in mlx5e_create_rep_ttc_table()
710 err = PTR_ERR(priv->fs.ttc); in mlx5e_create_rep_ttc_table()
730 rpriv->root_ft = mlx5_get_ttc_flow_table(priv->fs.ttc); in mlx5e_create_rep_root_ft()
843 mlx5_destroy_ttc_table(priv->fs.ttc); in mlx5e_init_rep_rx()
858 mlx5_destroy_ttc_table(priv->fs.ttc); in mlx5e_cleanup_rep_rx()
Den_fs.c721 dest.ft = mlx5_get_ttc_flow_table(priv->fs.ttc); in mlx5e_add_promisc_rule()
942 dest.ft = mlx5_get_ttc_flow_table(priv->fs.ttc); in mlx5e_add_l2_flow_rule()
1237 mlx5_destroy_ttc_table(priv->fs.ttc); in mlx5e_destroy_ttc_table()
1260 priv->fs.ttc = mlx5_create_ttc_table(priv->mdev, &ttc_params); in mlx5e_create_ttc_table()
1261 if (IS_ERR(priv->fs.ttc)) in mlx5e_create_ttc_table()
1262 return PTR_ERR(priv->fs.ttc); in mlx5e_create_ttc_table()
Den_arfs.c123 err = mlx5_ttc_fwd_default_dest(priv->fs.ttc, arfs_get_tt(i)); in arfs_disable()
152 err = mlx5_ttc_fwd_dest(priv->fs.ttc, arfs_get_tt(i), &dest); in mlx5e_arfs_enable()
Den_tc.c339 struct mlx5_ttc_table *ttc; member
618 hp->ttc = mlx5_create_ttc_table(priv->mdev, &ttc_params); in mlx5e_hairpin_rss_init()
619 if (IS_ERR(hp->ttc)) { in mlx5e_hairpin_rss_init()
620 err = PTR_ERR(hp->ttc); in mlx5e_hairpin_rss_init()
626 mlx5_get_ttc_flow_table(priv->fs.ttc)->id); in mlx5e_hairpin_rss_init()
640 mlx5_destroy_ttc_table(hp->ttc); in mlx5e_hairpin_rss_cleanup()
885 mlx5_get_ttc_flow_table(hpe->hp->ttc); in mlx5e_hairpin_flow_add()