Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dfs_ttc.c44 struct mlx5_flow_table *mlx5_get_ttc_flow_table(struct mlx5_ttc_table *ttc) in mlx5_get_ttc_flow_table() argument
46 return ttc->t; in mlx5_get_ttc_flow_table()
49 static void mlx5_cleanup_ttc_rules(struct mlx5_ttc_table *ttc) in mlx5_cleanup_ttc_rules() argument
54 if (!IS_ERR_OR_NULL(ttc->rules[i].rule)) { in mlx5_cleanup_ttc_rules()
55 mlx5_del_flow_rules(ttc->rules[i].rule); in mlx5_cleanup_ttc_rules()
56 ttc->rules[i].rule = NULL; in mlx5_cleanup_ttc_rules()
61 if (!IS_ERR_OR_NULL(ttc->tunnel_rules[i])) { in mlx5_cleanup_ttc_rules()
62 mlx5_del_flow_rules(ttc->tunnel_rules[i]); in mlx5_cleanup_ttc_rules()
63 ttc->tunnel_rules[i] = NULL; in mlx5_cleanup_ttc_rules()
252 bool mlx5_ttc_has_esp_flow_group(struct mlx5_ttc_table *ttc) in mlx5_ttc_has_esp_flow_group() argument
[all …]
/linux/drivers/clocksource/
H A Dtimer-cadence-ttc.c87 struct ttc_timer ttc; member
95 struct ttc_timer ttc; member
142 struct ttc_timer *timer = &ttce->ttc; in ttc_clock_event_interrupt()
160 struct ttc_timer *timer = &to_ttc_timer_clksrc(cs)->ttc; in __ttc_clocksource_read()
183 struct ttc_timer *timer = &ttce->ttc; in ttc_set_next_event()
200 struct ttc_timer *timer = &ttce->ttc; in ttc_shutdown()
218 struct ttc_timer *timer = &ttce->ttc; in ttc_set_periodic()
221 DIV_ROUND_CLOSEST(ttce->ttc.freq, PRESCALE * HZ)); in ttc_set_periodic()
228 struct ttc_timer *timer = &ttce->ttc; in ttc_resume()
241 struct ttc_timer *ttc = to_ttc_timer(nb); in ttc_rate_change_clocksource_cb() local
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Dfs_tt_redirect.c116 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(fs, false); in fs_udp_add_default_rule() local
126 dest = mlx5_ttc_get_default_dest(ttc, fs_udp2tt(type)); in fs_udp_add_default_rule()
260 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(fs, false); in fs_udp_disable() local
265 err = mlx5_ttc_fwd_default_dest(ttc, fs_udp2tt(i)); in fs_udp_disable()
278 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(fs, false); in fs_udp_enable() local
288 err = mlx5_ttc_fwd_dest(ttc, fs_udp2tt(i), &dest); in fs_udp_enable()
398 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(fs, false); in fs_any_add_default_rule() local
407 dest = mlx5_ttc_get_default_dest(ttc, MLX5_TT_ANY); in fs_any_add_default_rule()
519 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(fs, false); in fs_any_disable() local
523 err = mlx5_ttc_fwd_default_dest(ttc, MLX5_TT_ANY); in fs_any_disable()
[all …]
H A Dfs.h181 void mlx5e_fs_set_ttc(struct mlx5e_flow_steering *fs, struct mlx5_ttc_table *ttc, bool inner);
/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Dport_sel.c509 mlx5_get_ttc_flow_table(port_sel->inner.ttc); in mlx5_lag_set_outer_ttc_params()
525 port_sel->outer.ttc = mlx5_create_ttc_table(dev, &ttc_params); in mlx5_lag_create_ttc_table()
526 return PTR_ERR_OR_ZERO(port_sel->outer.ttc); in mlx5_lag_create_ttc_table()
541 port_sel->inner.ttc = mlx5_create_inner_ttc_table(dev, &ttc_params); in mlx5_lag_create_inner_ttc_table()
542 return PTR_ERR_OR_ZERO(port_sel->inner.ttc); in mlx5_lag_create_inner_ttc_table()
570 mlx5_destroy_ttc_table(port_sel->inner.ttc); in mlx5_lag_port_sel_create()
649 mlx5_destroy_ttc_table(port_sel->outer.ttc); in mlx5_lag_port_sel_destroy()
651 mlx5_destroy_ttc_table(port_sel->inner.ttc); in mlx5_lag_port_sel_destroy()
H A Dport_sel.h20 struct mlx5_ttc_table *ttc; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dfs_tcp.c152 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(fs, false); in accel_fs_tcp_add_default_rule() local
161 dest = mlx5_ttc_get_default_dest(ttc, fs_accel2tt(type)); in accel_fs_tcp_add_default_rule()
305 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(fs, false); in accel_fs_tcp_disable() local
310 err = mlx5_ttc_fwd_default_dest(ttc, fs_accel2tt(i)); in accel_fs_tcp_disable()
325 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(fs, false); in accel_fs_tcp_enable() local
334 err = mlx5_ttc_fwd_dest(ttc, fs_accel2tt(i), &dest); in accel_fs_tcp_enable()
H A Dipsec_fs.c590 ipsec_rx_decrypted_pkt_def_dest(struct mlx5_ttc_table *ttc, u32 family) in ipsec_rx_decrypted_pkt_def_dest() argument
594 if (!mlx5_ttc_has_esp_flow_group(ttc)) in ipsec_rx_decrypted_pkt_def_dest()
595 return mlx5_ttc_get_default_dest(ttc, family2tt(family)); in ipsec_rx_decrypted_pkt_def_dest()
597 dest.ft = mlx5_get_ttc_flow_table(ttc); in ipsec_rx_decrypted_pkt_def_dest()
616 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(ipsec->fs, false); in handle_ipsec_rx_bringup() local
619 old_dest = ipsec_rx_decrypted_pkt_def_dest(ttc, family); in handle_ipsec_rx_bringup()
632 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(ipsec->fs, false); in handle_ipsec_rx_cleanup() local
637 new_dest = ipsec_rx_decrypted_pkt_def_dest(ttc, family); in handle_ipsec_rx_cleanup()
690 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(ipsec->fs, false); in ipsec_rx_ft_disconnect() local
693 mlx5_ttc_destroy_ipsec_rules(ttc); in ipsec_rx_ft_disconnect()
[all …]
H A Dpsp.c453 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(fs->fs, false); in accel_psp_fs_rx_create() local
461 fs_prot->default_dest = mlx5_ttc_get_default_dest(ttc, fs_psp2tt(type)); in accel_psp_fs_rx_create()
479 struct mlx5_ttc_table *ttc; in accel_psp_fs_rx_ft_get() local
485 ttc = mlx5e_fs_get_ttc(fs->fs, false); in accel_psp_fs_rx_ft_get()
502 mlx5_ttc_fwd_dest(ttc, fs_psp2tt(type), &dest); in accel_psp_fs_rx_ft_get()
511 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(fs->fs, false); in accel_psp_fs_rx_ft_put() local
522 mlx5_ttc_fwd_default_dest(ttc, fs_psp2tt(type)); in accel_psp_fs_rx_ft_put()
H A Dipsec.h184 struct mlx5_ttc_table *ttc; member
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs.c60 struct mlx5_ttc_table *ttc; member
761 dest.ft = mlx5_get_ttc_flow_table(fs->ttc); in mlx5e_add_promisc_rule()
997 dest.ft = mlx5_get_ttc_flow_table(fs->ttc); in mlx5e_add_l2_flow_rule()
1291 mlx5_destroy_ttc_table(fs->ttc); in mlx5e_destroy_ttc_table()
1314 fs->ttc = mlx5_create_ttc_table(fs->mdev, &ttc_params); in mlx5e_create_ttc_table()
1315 return PTR_ERR_OR_ZERO(fs->ttc); in mlx5e_create_ttc_table()
1535 return inner ? fs->inner_ttc : fs->ttc; in mlx5e_fs_get_ttc()
1538 void mlx5e_fs_set_ttc(struct mlx5e_flow_steering *fs, struct mlx5_ttc_table *ttc, bool inner) in mlx5e_fs_set_ttc() argument
1541 fs->ttc = ttc; in mlx5e_fs_set_ttc()
1543 fs->inner_ttc = ttc; in mlx5e_fs_set_ttc()
H A Den_arfs.c124 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(fs, false); in arfs_disable() local
129 err = mlx5_ttc_fwd_default_dest(ttc, arfs_get_tt(i)); in arfs_disable()
161 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(fs, false); in mlx5e_arfs_enable() local
170 err = mlx5_ttc_fwd_dest(ttc, arfs_get_tt(i), &dest); in mlx5e_arfs_enable()
H A Den_tc.c580 struct mlx5_ttc_table *ttc; member
859 struct mlx5_ttc_table *ttc; in mlx5e_hairpin_rss_init() local
871 hp->ttc = mlx5_create_ttc_table(priv->mdev, &ttc_params); in mlx5e_hairpin_rss_init()
872 if (IS_ERR(hp->ttc)) { in mlx5e_hairpin_rss_init()
873 err = PTR_ERR(hp->ttc); in mlx5e_hairpin_rss_init()
877 ttc = mlx5e_fs_get_ttc(priv->fs, false); in mlx5e_hairpin_rss_init()
880 mlx5_get_ttc_flow_table(ttc)->id); in mlx5e_hairpin_rss_init()
894 mlx5_destroy_ttc_table(hp->ttc); in mlx5e_hairpin_rss_cleanup()
1202 mlx5_get_ttc_flow_table(hpe->hp->ttc); in mlx5e_hairpin_flow_add()
/linux/arch/arm/boot/dts/xilinx/
H A Dzynq-7000.dtsi413 compatible = "cdns,ttc";
421 compatible = "cdns,ttc";
/linux/
H A DMAINTAINERS3786 F: drivers/clocksource/timer-cadence-ttc.c