Home
last modified time | relevance | path

Searched refs:ft (Results 1 – 25 of 99) sorted by relevance

1234

/Linux-v6.1/drivers/isdn/mISDN/
Dfsm.c98 struct FsmTimer *ft = from_timer(ft, t, tl); in FsmExpireTimer() local
100 if (ft->fi->debug) in FsmExpireTimer()
101 ft->fi->printdebug(ft->fi, "FsmExpireTimer %lx", (long) ft); in FsmExpireTimer()
103 mISDN_FsmEvent(ft->fi, ft->event, ft->arg); in FsmExpireTimer()
107 mISDN_FsmInitTimer(struct FsmInst *fi, struct FsmTimer *ft) in mISDN_FsmInitTimer() argument
109 ft->fi = fi; in mISDN_FsmInitTimer()
111 if (ft->fi->debug) in mISDN_FsmInitTimer()
112 ft->fi->printdebug(ft->fi, "mISDN_FsmInitTimer %lx", (long) ft); in mISDN_FsmInitTimer()
114 timer_setup(&ft->tl, FsmExpireTimer, 0); in mISDN_FsmInitTimer()
119 mISDN_FsmDelTimer(struct FsmTimer *ft, int where) in mISDN_FsmDelTimer() argument
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/
Dfs_tt_redirect.c84 struct mlx5_flow_table *ft = NULL; in mlx5e_fs_tt_redirect_udp_add_rule() local
97 ft = fs_udp->tables[type].t; in mlx5e_fs_tt_redirect_udp_add_rule()
103 rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in mlx5e_fs_tt_redirect_udp_add_rule()
144 static int fs_udp_create_groups(struct mlx5e_flow_table *ft, enum fs_udp_type type) in fs_udp_create_groups() argument
153 ft->g = kcalloc(MLX5E_FS_UDP_NUM_GROUPS, sizeof(*ft->g), GFP_KERNEL); in fs_udp_create_groups()
155 if (!in || !ft->g) { in fs_udp_create_groups()
156 kfree(ft->g); in fs_udp_create_groups()
180 ft->g[ft->num_groups] = mlx5_create_flow_group(ft->t, in); in fs_udp_create_groups()
181 if (IS_ERR(ft->g[ft->num_groups])) in fs_udp_create_groups()
183 ft->num_groups++; in fs_udp_create_groups()
[all …]
Dtc_ct.c87 struct mlx5_ct_ft *ft; member
99 struct mlx5_flow_table *ft; member
836 attr->ft = nat ? ct_priv->ct_nat : ct_priv->ct; in mlx5_tc_ct_entry_add_rule()
1069 mlx5_tc_ct_block_flow_offload_add(struct mlx5_ct_ft *ft, in mlx5_tc_ct_block_flow_offload_add() argument
1073 struct mlx5_tc_ct_priv *ct_priv = ft->ct_priv; in mlx5_tc_ct_block_flow_offload_add()
1084 entry = rhashtable_lookup_fast(&ft->ct_entries_ht, &cookie, cts_ht_params); in mlx5_tc_ct_block_flow_offload_add()
1096 entry->tuple.zone = ft->zone; in mlx5_tc_ct_block_flow_offload_add()
1113 err = rhashtable_lookup_insert_fast(&ft->ct_entries_ht, &entry->node, in mlx5_tc_ct_block_flow_offload_add()
1134 ft->zone_restore_id); in mlx5_tc_ct_block_flow_offload_add()
1153 rhashtable_remove_fast(&ft->ct_entries_ht, in mlx5_tc_ct_block_flow_offload_add()
[all …]
/Linux-v6.1/drivers/scsi/fcoe/
Dfcoe_transport.c514 struct fcoe_transport *ft = NULL; in fcoe_transport_lookup() local
516 list_for_each_entry(ft, &fcoe_transports, list) in fcoe_transport_lookup()
517 if (ft->match && ft->match(netdev)) in fcoe_transport_lookup()
518 return ft; in fcoe_transport_lookup()
528 int fcoe_transport_attach(struct fcoe_transport *ft) in fcoe_transport_attach() argument
533 if (ft->attached) { in fcoe_transport_attach()
535 ft->name); in fcoe_transport_attach()
541 if (strcmp(ft->name, FCOE_TRANSPORT_DEFAULT)) in fcoe_transport_attach()
542 list_add(&ft->list, &fcoe_transports); in fcoe_transport_attach()
544 list_add_tail(&ft->list, &fcoe_transports); in fcoe_transport_attach()
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs.c141 struct mlx5e_flow_table ft; member
160 return vlan->ft.t; in mlx5e_vlan_get_flowtable()
216 struct mlx5_flow_table *ft = fs->vlan->ft.t; in __mlx5e_add_vlan_rule() local
223 dest.ft = fs->l2.ft.t; in __mlx5e_add_vlan_rule()
274 *rule_p = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in __mlx5e_add_vlan_rule()
361 mlx5e_add_trap_rule(struct mlx5_flow_table *ft, int trap_id, int tir_num) in mlx5e_add_trap_rule() argument
376 rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1); in mlx5e_add_trap_rule()
383 struct mlx5_flow_table *ft = fs->vlan->ft.t; in mlx5e_add_vlan_trap() local
387 rule = mlx5e_add_trap_rule(ft, trap_id, tir_num); in mlx5e_add_vlan_trap()
409 struct mlx5_flow_table *ft = fs->l2.ft.t; in mlx5e_add_mac_trap() local
[all …]
Dfs_core.c514 struct mlx5_flow_table *ft; in del_hw_flow_table() local
518 fs_get_obj(ft, node); in del_hw_flow_table()
519 dev = get_dev(&ft->node); in del_hw_flow_table()
520 root = find_root(&ft->node); in del_hw_flow_table()
521 trace_mlx5_fs_del_ft(ft); in del_hw_flow_table()
524 err = root->cmds->destroy_flow_table(root, ft); in del_hw_flow_table()
532 struct mlx5_flow_table *ft; in del_sw_flow_table() local
535 fs_get_obj(ft, node); in del_sw_flow_table()
537 rhltable_destroy(&ft->fgs_hash); in del_sw_flow_table()
538 if (ft->node.parent) { in del_sw_flow_table()
[all …]
Dfs_cmd.c44 struct mlx5_flow_table *ft, in mlx5_cmd_stub_update_root_ft() argument
52 struct mlx5_flow_table *ft, in mlx5_cmd_stub_create_flow_table() argument
58 ft->max_fte = max_fte ? roundup_pow_of_two(max_fte) : 1; in mlx5_cmd_stub_create_flow_table()
64 struct mlx5_flow_table *ft) in mlx5_cmd_stub_destroy_flow_table() argument
70 struct mlx5_flow_table *ft, in mlx5_cmd_stub_modify_flow_table() argument
77 struct mlx5_flow_table *ft, in mlx5_cmd_stub_create_flow_group() argument
85 struct mlx5_flow_table *ft, in mlx5_cmd_stub_destroy_flow_group() argument
92 struct mlx5_flow_table *ft, in mlx5_cmd_stub_create_fte() argument
100 struct mlx5_flow_table *ft, in mlx5_cmd_stub_update_fte() argument
109 struct mlx5_flow_table *ft, in mlx5_cmd_stub_delete_fte() argument
[all …]
Den_arfs.c43 struct mlx5e_flow_table ft; member
153 dest.ft = arfs->arfs_tables[i].ft.t; in mlx5e_arfs_enable()
169 mlx5e_destroy_flow_table(&arfs_t->ft); in arfs_destroy_table()
180 if (!IS_ERR_OR_NULL(arfs->arfs_tables[i].ft.t)) in _mlx5e_cleanup_tables()
219 arfs_t->default_rule = mlx5_add_flow_rules(arfs_t->ft.t, NULL, in arfs_add_default_rule()
236 static int arfs_create_groups(struct mlx5e_flow_table *ft, in arfs_create_groups() argument
246 ft->g = kcalloc(MLX5E_ARFS_NUM_GROUPS, in arfs_create_groups()
247 sizeof(*ft->g), GFP_KERNEL); in arfs_create_groups()
249 if (!in || !ft->g) { in arfs_create_groups()
250 kfree(ft->g); in arfs_create_groups()
[all …]
Dfs_cmd.h40 struct mlx5_flow_table *ft,
44 struct mlx5_flow_table *ft);
47 struct mlx5_flow_table *ft,
51 struct mlx5_flow_table *ft,
56 struct mlx5_flow_table *ft,
60 struct mlx5_flow_table *ft,
65 struct mlx5_flow_table *ft,
71 struct mlx5_flow_table *ft,
75 struct mlx5_flow_table *ft,
Drdma.c19 mlx5_destroy_flow_table(roce->ft); in mlx5_rdma_disable_roce_steering()
31 struct mlx5_flow_table *ft; in mlx5_rdma_enable_roce_steering() local
59 ft = mlx5_create_flow_table(ns, &ft_attr); in mlx5_rdma_enable_roce_steering()
60 if (IS_ERR(ft)) { in mlx5_rdma_enable_roce_steering()
62 err = PTR_ERR(ft); in mlx5_rdma_enable_roce_steering()
73 fg = mlx5_create_flow_group(ft, flow_group_in); in mlx5_rdma_enable_roce_steering()
90 flow_rule = mlx5_add_flow_rules(ft, spec, &flow_act, NULL, 0); in mlx5_rdma_enable_roce_steering()
100 roce->ft = ft; in mlx5_rdma_enable_roce_steering()
109 mlx5_destroy_flow_table(ft); in mlx5_rdma_enable_roce_steering()
147 if (!roce->ft) in mlx5_rdma_disable_roce()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dfs_tcp.c80 struct mlx5e_flow_table *ft = NULL; in mlx5e_accel_fs_add_sk() local
94 ft = &fs_tcp->tables[ACCEL_FS_IPV4_TCP]; in mlx5e_accel_fs_add_sk()
106 ft = &fs_tcp->tables[ACCEL_FS_IPV4_TCP]; in mlx5e_accel_fs_add_sk()
109 ft = &fs_tcp->tables[ACCEL_FS_IPV6_TCP]; in mlx5e_accel_fs_add_sk()
117 if (!ft) { in mlx5e_accel_fs_add_sk()
138 flow = mlx5_add_flow_rules(ft->t, spec, &flow_act, &dest, 1); in mlx5e_accel_fs_add_sk()
179 static int accel_fs_tcp_create_groups(struct mlx5e_flow_table *ft, in accel_fs_tcp_create_groups() argument
189 ft->g = kcalloc(MLX5E_ACCEL_FS_TCP_NUM_GROUPS, sizeof(*ft->g), GFP_KERNEL); in accel_fs_tcp_create_groups()
191 if (!in || !ft->g) { in accel_fs_tcp_create_groups()
192 kfree(ft->g); in accel_fs_tcp_create_groups()
[all …]
Dipsec_fs.c19 struct mlx5_flow_table *ft; member
25 struct mlx5_flow_table *ft; member
40 struct mlx5_flow_table *ft; member
91 fte = mlx5_add_flow_rules(rx_err->ft, spec, &flow_act, in rx_err_add_rule()
115 struct mlx5_flow_table *ft = fs_prot->ft; in rx_fs_create() local
131 MLX5_SET(create_flow_group_in, flow_group_in, start_flow_index, ft->max_fte - 1); in rx_fs_create()
132 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, ft->max_fte - 1); in rx_fs_create()
133 miss_group = mlx5_create_flow_group(ft, flow_group_in); in rx_fs_create()
142 miss_rule = mlx5_add_flow_rules(ft, spec, &flow_act, &fs_prot->default_dest, 1); in rx_fs_create()
168 mlx5_destroy_flow_table(fs_prot->ft); in rx_destroy()
[all …]
Dmacsec_fs.c147 static int macsec_fs_tx_create_crypto_table_groups(struct mlx5e_flow_table *ft) in macsec_fs_tx_create_crypto_table_groups() argument
156 ft->g = kcalloc(TX_CRYPTO_TABLE_NUM_GROUPS, sizeof(*ft->g), GFP_KERNEL); in macsec_fs_tx_create_crypto_table_groups()
157 if (!ft->g) in macsec_fs_tx_create_crypto_table_groups()
162 kfree(ft->g); in macsec_fs_tx_create_crypto_table_groups()
175 ft->g[ft->num_groups] = mlx5_create_flow_group(ft->t, in); in macsec_fs_tx_create_crypto_table_groups()
176 if (IS_ERR(ft->g[ft->num_groups])) in macsec_fs_tx_create_crypto_table_groups()
178 ft->num_groups++; in macsec_fs_tx_create_crypto_table_groups()
190 ft->g[ft->num_groups] = mlx5_create_flow_group(ft->t, in); in macsec_fs_tx_create_crypto_table_groups()
191 if (IS_ERR(ft->g[ft->num_groups])) in macsec_fs_tx_create_crypto_table_groups()
193 ft->num_groups++; in macsec_fs_tx_create_crypto_table_groups()
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/steering/
Dfs_dr.c20 struct mlx5_flow_table *ft, in mlx5_cmd_dr_update_root_ft() argument
24 return mlx5_fs_cmd_get_fw_cmds()->update_root_ft(ns, ft, underlay_qpn, in mlx5_cmd_dr_update_root_ft()
29 struct mlx5_flow_table *ft, in set_miss_action() argument
43 old_miss_action = ft->fs_dr_table.miss_action; in set_miss_action()
44 err = mlx5dr_table_set_miss_action(ft->fs_dr_table.dr_table, action); in set_miss_action()
52 ft->fs_dr_table.miss_action = action; in set_miss_action()
64 struct mlx5_flow_table *ft, in mlx5_cmd_dr_create_flow_table() argument
72 if (mlx5_dr_is_fw_table(ft->flags)) in mlx5_cmd_dr_create_flow_table()
73 return mlx5_fs_cmd_get_fw_cmds()->create_flow_table(ns, ft, in mlx5_cmd_dr_create_flow_table()
76 flags = ft->flags; in mlx5_cmd_dr_create_flow_table()
[all …]
/Linux-v6.1/fs/ksmbd/
Dvfs_cache.c288 static void __ksmbd_remove_fd(struct ksmbd_file_table *ft, struct ksmbd_file *fp) in __ksmbd_remove_fd() argument
297 write_lock(&ft->lock); in __ksmbd_remove_fd()
298 idr_remove(ft->idr, fp->volatile_id); in __ksmbd_remove_fd()
299 write_unlock(&ft->lock); in __ksmbd_remove_fd()
302 static void __ksmbd_close_fd(struct ksmbd_file_table *ft, struct ksmbd_file *fp) in __ksmbd_close_fd() argument
309 __ksmbd_remove_fd(ft, fp); in __ksmbd_close_fd()
343 static struct ksmbd_file *__ksmbd_lookup_fd(struct ksmbd_file_table *ft, in __ksmbd_lookup_fd() argument
351 read_lock(&ft->lock); in __ksmbd_lookup_fd()
352 fp = idr_find(ft->idr, id); in __ksmbd_lookup_fd()
355 read_unlock(&ft->lock); in __ksmbd_lookup_fd()
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/diag/
Dfs_tracepoint.h65 TP_PROTO(const struct mlx5_flow_table *ft),
66 TP_ARGS(ft),
68 __field(const struct mlx5_flow_table *, ft)
74 __entry->ft = ft;
75 __entry->id = ft->id;
76 __entry->level = ft->level;
77 __entry->type = ft->type;
80 __entry->ft, __entry->id, __entry->level, __entry->type)
84 TP_PROTO(const struct mlx5_flow_table *ft),
85 TP_ARGS(ft),
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/lib/
Dfs_chains.c69 struct mlx5_flow_table *ft; member
146 struct mlx5_flow_table *ft) in mlx5_chains_set_end_ft() argument
148 tc_end_ft(chains) = ft; in mlx5_chains_set_end_ft()
157 struct mlx5_flow_table *ft; in mlx5_chains_create_table() local
201 ft = mlx5_create_auto_grouped_flow_table(ns, &ft_attr); in mlx5_chains_create_table()
202 if (IS_ERR(ft)) { in mlx5_chains_create_table()
204 (int)PTR_ERR(ft), chain, prio, level, sz); in mlx5_chains_create_table()
205 return ft; in mlx5_chains_create_table()
208 return ft; in mlx5_chains_create_table()
368 struct mlx5_flow_table *ft, in mlx5_chains_add_miss_rule() argument
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en/tc/
Dpost_meter.c12 struct mlx5_flow_table *ft; member
21 return post_meter->ft; in mlx5e_post_meter_get_ft()
43 post_meter->ft = mlx5_create_flow_table(root_ns, &ft_attr); in mlx5e_post_meter_table_create()
44 if (IS_ERR(post_meter->ft)) { in mlx5e_post_meter_table_create()
46 return PTR_ERR(post_meter->ft); in mlx5e_post_meter_table_create()
74 post_meter->fg = mlx5_create_flow_group(post_meter->ft, flow_group_in); in mlx5e_post_meter_fg_create()
109 rule = mlx5_add_flow_rules(post_meter->ft, spec, &flow_act, dest, 1); in mlx5e_post_meter_rules_create()
122 dest[0].ft = mlx5e_tc_post_act_get_ft(post_act); in mlx5e_post_meter_rules_create()
126 rule = mlx5_add_flow_rules(post_meter->ft, spec, &flow_act, dest, 2); in mlx5e_post_meter_rules_create()
160 mlx5_destroy_flow_table(post_meter->ft); in mlx5e_post_meter_table_destroy()
Dpost_act.c13 struct mlx5_flow_table *ft; member
50 post_act->ft = mlx5_chains_create_global_table(chains); in mlx5e_tc_post_act_init()
51 if (IS_ERR(post_act->ft)) { in mlx5e_tc_post_act_init()
52 err = PTR_ERR(post_act->ft); in mlx5e_tc_post_act_init()
75 mlx5_chains_destroy_global_table(post_act->chains, post_act->ft); in mlx5e_tc_post_act_destroy()
127 post_attr->ft = post_act->ft; in mlx5e_tc_post_act_add()
174 return post_act->ft; in mlx5e_tc_post_act_get_ft()
/Linux-v6.1/arch/mips/math-emu/
Dcp1emu.c149 mips32_insn.fp6_format.ft = insn.mm_fp6_format.ft; in microMIPS32_to_MIPS32()
188 mips32_insn.fp0_format.ft = in microMIPS32_to_MIPS32()
212 mips32_insn.fp0_format.ft = in microMIPS32_to_MIPS32()
213 insn.mm_fp0_format.ft; in microMIPS32_to_MIPS32()
232 mips32_insn.fp0_format.ft = in microMIPS32_to_MIPS32()
233 insn.mm_fp0_format.ft; in microMIPS32_to_MIPS32()
275 mips32_insn.fp0_format.ft = 0; in microMIPS32_to_MIPS32()
299 mips32_insn.fp0_format.ft = 0; in microMIPS32_to_MIPS32()
339 mips32_insn.fp0_format.ft = 0; in microMIPS32_to_MIPS32()
358 mips32_insn.fp0_format.ft = 0; in microMIPS32_to_MIPS32()
[all …]
/Linux-v6.1/samples/vfs/
Dtest-statx.c79 char buffer[256], ft = '?'; in dump_statx() local
91 case S_IFIFO: printf(" FIFO\n"); ft = 'p'; break; in dump_statx()
92 case S_IFCHR: printf(" character special file\n"); ft = 'c'; break; in dump_statx()
93 case S_IFDIR: printf(" directory\n"); ft = 'd'; break; in dump_statx()
94 case S_IFBLK: printf(" block special file\n"); ft = 'b'; break; in dump_statx()
95 case S_IFREG: printf(" regular file\n"); ft = '-'; break; in dump_statx()
96 case S_IFLNK: printf(" symbolic link\n"); ft = 'l'; break; in dump_statx()
97 case S_IFSOCK: printf(" socket\n"); ft = 's'; break; in dump_statx()
126 ft, in dump_statx()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dindir_table.c37 struct mlx5_flow_table *ft; member
223 dest.ft = mlx5_chains_get_table(chains, 0, 1, 0); in mlx5_esw_indir_table_rule_get()
224 if (IS_ERR(dest.ft)) { in mlx5_esw_indir_table_rule_get()
225 err = PTR_ERR(dest.ft); in mlx5_esw_indir_table_rule_get()
228 handle = mlx5_add_flow_rules(e->ft, rule_spec, &flow_act, &dest, 1); in mlx5_esw_indir_table_rule_get()
326 e->recirc_grp = mlx5_create_flow_group(e->ft, in); in mlx5_create_indir_recirc_group()
362 e->fwd_grp = mlx5_create_flow_group(e->ft, in); in mlx5_create_indir_fwd_group()
373 e->fwd_rule = mlx5_add_flow_rules(e->ft, spec, &flow_act, &dest, 1); in mlx5_create_indir_fwd_group()
392 struct mlx5_flow_table *ft; in mlx5_esw_indir_table_entry_create() local
408 ft = mlx5_create_flow_table(root_ns, &ft_attr); in mlx5_esw_indir_table_entry_create()
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/lag/
Dport_sel.c14 mlx5_create_hash_flow_group(struct mlx5_flow_table *ft, in mlx5_create_hash_flow_group() argument
33 fg = mlx5_create_flow_group(ft, in); in mlx5_create_hash_flow_group()
60 lag_definer->ft = mlx5_create_flow_table(ns, &ft_attr); in mlx5_lag_create_port_sel_table()
61 if (IS_ERR(lag_definer->ft)) { in mlx5_lag_create_port_sel_table()
63 return PTR_ERR(lag_definer->ft); in mlx5_lag_create_port_sel_table()
66 lag_definer->fg = mlx5_create_hash_flow_group(lag_definer->ft, in mlx5_lag_create_port_sel_table()
86 lag_definer->rules[idx] = mlx5_add_flow_rules(lag_definer->ft, in mlx5_lag_create_port_sel_table()
104 mlx5_destroy_flow_table(lag_definer->ft); in mlx5_lag_create_port_sel_table()
352 mlx5_destroy_flow_table(lag_definer->ft); in mlx5_lag_destroy_definer()
465 ttc_params->dests[tt].ft = port_sel->inner.definers[tt]->ft; in mlx5_lag_set_inner_ttc_params()
[all …]
/Linux-v6.1/include/net/netfilter/
Dnf_flow_table.h55 int (*init)(struct nf_flowtable *ft);
56 int (*setup)(struct nf_flowtable *ft,
63 void (*free)(struct nf_flowtable *ft);
341 #define NF_FLOW_TABLE_STAT_INC(net, count) __this_cpu_inc((net)->ft.stat->count)
342 #define NF_FLOW_TABLE_STAT_DEC(net, count) __this_cpu_dec((net)->ft.stat->count)
344 this_cpu_inc((net)->ft.stat->count)
346 this_cpu_dec((net)->ft.stat->count)
/Linux-v6.1/net/netfilter/
Dnf_flow_table_core.c24 struct flow_offload_tuple *ft = &flow->tuplehash[dir].tuple; in flow_offload_fill_dir() local
27 ft->dir = dir; in flow_offload_fill_dir()
31 ft->src_v4 = ctt->src.u3.in; in flow_offload_fill_dir()
32 ft->dst_v4 = ctt->dst.u3.in; in flow_offload_fill_dir()
35 ft->src_v6 = ctt->src.u3.in6; in flow_offload_fill_dir()
36 ft->dst_v6 = ctt->dst.u3.in6; in flow_offload_fill_dir()
40 ft->l3proto = ctt->src.l3num; in flow_offload_fill_dir()
41 ft->l4proto = ctt->dst.protonum; in flow_offload_fill_dir()
46 ft->src_port = ctt->src.u.tcp.port; in flow_offload_fill_dir()
47 ft->dst_port = ctt->dst.u.tcp.port; in flow_offload_fill_dir()
[all …]

1234