Home
last modified time | relevance | path

Searched full:ct (Results 1 – 25 of 987) sorted by relevance

12345678910>>...40

/kernel/linux/linux-5.10/tools/testing/selftests/tc-testing/tc-tests/actions/
Dct.json4 "name": "Add simple ct action",
7 "ct"
11 "$TC actions flush action ct",
17 "cmdUnderTest": "$TC actions add action ct index 42",
19 "verifyCmd": "$TC actions list action ct",
20 "matchPattern": "action order [0-9]*: ct zone 0 pipe.*index 42 ref",
23 "$TC actions flush action ct"
28 "name": "Add simple ct action with cookie",
31 "ct"
35 "$TC actions flush action ct",
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/tc-testing/tc-tests/actions/
Dct.json4 "name": "Add simple ct action",
7 "ct"
11 "$TC actions flush action ct",
17 "cmdUnderTest": "$TC actions add action ct index 42",
19 "verifyCmd": "$TC actions list action ct",
20 "matchPattern": "action order [0-9]*: ct zone 0 pipe.*index 42 ref",
23 "$TC actions flush action ct"
28 "name": "Add simple ct action with cookie",
31 "ct"
35 "$TC actions flush action ct",
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/uc/
Dintel_guc_ct.c29 #define CT_DEAD(ct, reason) \ argument
31 if (!(ct)->dead_ct_reported) { \
32 (ct)->dead_ct_reason |= 1 << CT_DEAD_##reason; \
33 queue_work(system_unbound_wq, &(ct)->dead_ct_worker); \
37 #define CT_DEAD(ct, reason) do { } while (0) argument
40 static inline struct intel_guc *ct_to_guc(struct intel_guc_ct *ct) in ct_to_guc() argument
42 return container_of(ct, struct intel_guc, ct); in ct_to_guc()
46 guc_err(ct_to_guc(_ct), "CT: " _fmt, ##__VA_ARGS__)
49 guc_dbg(ct_to_guc(_ct), "CT: " _fmt, ##__VA_ARGS__)
54 guc_probe_error(ct_to_guc(ct), "CT: " _fmt, ##__VA_ARGS__)
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
Dtest_bpf_nf_fail.c32 struct nf_conn *ct; in alloc_release() local
34 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in alloc_release()
35 if (!ct) in alloc_release()
37 bpf_ct_release(ct); in alloc_release()
46 struct nf_conn *ct; in insert_insert() local
48 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in insert_insert()
49 if (!ct) in insert_insert()
51 ct = bpf_ct_insert_entry(ct); in insert_insert()
52 if (!ct) in insert_insert()
54 ct = bpf_ct_insert_entry(ct); in insert_insert()
[all …]
Dtest_bpf_nf.c77 struct nf_conn *ct; in nf_ct_test() local
81 ct = lookup_fn(ctx, NULL, 0, &opts_def, sizeof(opts_def)); in nf_ct_test()
82 if (ct) in nf_ct_test()
83 bpf_ct_release(ct); in nf_ct_test()
88 ct = lookup_fn(ctx, &bpf_tuple, sizeof(bpf_tuple.ipv4), &opts_def, in nf_ct_test()
92 if (ct) in nf_ct_test()
93 bpf_ct_release(ct); in nf_ct_test()
98 ct = lookup_fn(ctx, &bpf_tuple, sizeof(bpf_tuple.ipv4), &opts_def, in nf_ct_test()
101 if (ct) in nf_ct_test()
102 bpf_ct_release(ct); in nf_ct_test()
[all …]
/kernel/linux/linux-6.6/drivers/scsi/bfa/
Dbfi_reg.h18 #define HOSTFN0_INT_STATUS 0x00014000 /* cb/ct */
19 #define HOSTFN1_INT_STATUS 0x00014100 /* cb/ct */
20 #define HOSTFN2_INT_STATUS 0x00014300 /* ct */
21 #define HOSTFN3_INT_STATUS 0x00014400 /* ct */
22 #define HOSTFN0_INT_MSK 0x00014004 /* cb/ct */
23 #define HOSTFN1_INT_MSK 0x00014104 /* cb/ct */
24 #define HOSTFN2_INT_MSK 0x00014304 /* ct */
25 #define HOSTFN3_INT_MSK 0x00014404 /* ct */
27 #define HOST_PAGE_NUM_FN0 0x00014008 /* cb/ct */
28 #define HOST_PAGE_NUM_FN1 0x00014108 /* cb/ct */
[all …]
/kernel/linux/linux-5.10/drivers/scsi/bfa/
Dbfi_reg.h18 #define HOSTFN0_INT_STATUS 0x00014000 /* cb/ct */
19 #define HOSTFN1_INT_STATUS 0x00014100 /* cb/ct */
20 #define HOSTFN2_INT_STATUS 0x00014300 /* ct */
21 #define HOSTFN3_INT_STATUS 0x00014400 /* ct */
22 #define HOSTFN0_INT_MSK 0x00014004 /* cb/ct */
23 #define HOSTFN1_INT_MSK 0x00014104 /* cb/ct */
24 #define HOSTFN2_INT_MSK 0x00014304 /* ct */
25 #define HOSTFN3_INT_MSK 0x00014404 /* ct */
27 #define HOST_PAGE_NUM_FN0 0x00014008 /* cb/ct */
28 #define HOST_PAGE_NUM_FN1 0x00014108 /* cb/ct */
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/uc/
Dintel_guc_ct.c11 DRM_DEV_ERROR(ct_to_dev(_ct), "CT: " _fmt, ##__VA_ARGS__)
14 DRM_DEV_DEBUG_DRIVER(ct_to_dev(_ct), "CT: " _fmt, ##__VA_ARGS__)
39 * intel_guc_ct_init_early - Initialize CT state without requiring device access
40 * @ct: pointer to CT struct
42 void intel_guc_ct_init_early(struct intel_guc_ct *ct) in intel_guc_ct_init_early() argument
44 spin_lock_init(&ct->requests.lock); in intel_guc_ct_init_early()
45 INIT_LIST_HEAD(&ct->requests.pending); in intel_guc_ct_init_early()
46 INIT_LIST_HEAD(&ct->requests.incoming); in intel_guc_ct_init_early()
47 INIT_WORK(&ct->requests.worker, ct_incoming_request_worker_func); in intel_guc_ct_init_early()
50 static inline struct intel_guc *ct_to_guc(struct intel_guc_ct *ct) in ct_to_guc() argument
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dnf_conntrack_h323_main.c64 struct nf_conn *ct,
69 struct nf_conn *ct,
74 struct nf_conn *ct,
83 struct nf_conn *ct,
90 struct nf_conn *ct,
97 struct nf_conn *ct,
104 struct nf_conn *ct,
119 struct nf_conn *ct, enum ip_conntrack_info ctinfo, in get_tpkt_data() argument
122 struct nf_ct_h323_master *info = nfct_help_data(ct); in get_tpkt_data()
221 static int get_h245_addr(struct nf_conn *ct, const unsigned char *data, in get_h245_addr() argument
[all …]
Dnf_conntrack_core.c462 u32 nf_ct_get_id(const struct nf_conn *ct) in nf_ct_get_id() argument
469 a = (unsigned long)ct; in nf_ct_get_id()
470 b = (unsigned long)ct->master; in nf_ct_get_id()
471 c = (unsigned long)nf_ct_net(ct); in nf_ct_get_id()
472 d = (unsigned long)siphash(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in nf_ct_get_id()
473 sizeof(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple), in nf_ct_get_id()
484 clean_from_lists(struct nf_conn *ct) in clean_from_lists() argument
486 pr_debug("clean_from_lists(%p)\n", ct); in clean_from_lists()
487 hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode); in clean_from_lists()
488 hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_REPLY].hnnode); in clean_from_lists()
[all …]
Dxt_CT.c20 static inline int xt_ct_target(struct sk_buff *skb, struct nf_conn *ct) in xt_ct_target() argument
26 if (ct) { in xt_ct_target()
27 atomic_inc(&ct->ct_general.use); in xt_ct_target()
28 nf_ct_set(skb, ct, IP_CT_NEW); in xt_ct_target()
30 nf_ct_set(skb, ct, IP_CT_UNTRACKED); in xt_ct_target()
40 struct nf_conn *ct = info->ct; in xt_ct_target_v0() local
42 return xt_ct_target(skb, ct); in xt_ct_target_v0()
49 struct nf_conn *ct = info->ct; in xt_ct_target_v1() local
51 return xt_ct_target(skb, ct); in xt_ct_target_v1()
73 xt_ct_set_helper(struct nf_conn *ct, const char *helper_name, in xt_ct_set_helper() argument
[all …]
Dnf_nat_sip.c41 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in mangle_packet() local
45 if (nf_ct_protonum(ct) == IPPROTO_TCP) { in mangle_packet()
50 if (!__nf_nat_mangle_tcp_packet(skb, ct, ctinfo, in mangle_packet()
58 if (!nf_nat_mangle_udp_packet(skb, ct, ctinfo, in mangle_packet()
70 static int sip_sprintf_addr(const struct nf_conn *ct, char *buffer, in sip_sprintf_addr() argument
73 if (nf_ct_l3num(ct) == NFPROTO_IPV4) in sip_sprintf_addr()
83 static int sip_sprintf_addr_port(const struct nf_conn *ct, char *buffer, in sip_sprintf_addr_port() argument
86 if (nf_ct_l3num(ct) == NFPROTO_IPV4) in sip_sprintf_addr_port()
99 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in map_addr() local
101 struct nf_ct_sip_master *ct_sip_info = nfct_help_data(ct); in map_addr()
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/brocade/bna/
Dbfi_reg.h19 #define HOSTFN0_INT_STATUS 0x00014000 /* cb/ct */
20 #define HOSTFN1_INT_STATUS 0x00014100 /* cb/ct */
21 #define HOSTFN2_INT_STATUS 0x00014300 /* ct */
22 #define HOSTFN3_INT_STATUS 0x00014400 /* ct */
23 #define HOSTFN0_INT_MSK 0x00014004 /* cb/ct */
24 #define HOSTFN1_INT_MSK 0x00014104 /* cb/ct */
25 #define HOSTFN2_INT_MSK 0x00014304 /* ct */
26 #define HOSTFN3_INT_MSK 0x00014404 /* ct */
28 #define HOST_PAGE_NUM_FN0 0x00014008 /* cb/ct */
29 #define HOST_PAGE_NUM_FN1 0x00014108 /* cb/ct */
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/brocade/bna/
Dbfi_reg.h19 #define HOSTFN0_INT_STATUS 0x00014000 /* cb/ct */
20 #define HOSTFN1_INT_STATUS 0x00014100 /* cb/ct */
21 #define HOSTFN2_INT_STATUS 0x00014300 /* ct */
22 #define HOSTFN3_INT_STATUS 0x00014400 /* ct */
23 #define HOSTFN0_INT_MSK 0x00014004 /* cb/ct */
24 #define HOSTFN1_INT_MSK 0x00014104 /* cb/ct */
25 #define HOSTFN2_INT_MSK 0x00014304 /* ct */
26 #define HOSTFN3_INT_MSK 0x00014404 /* ct */
28 #define HOST_PAGE_NUM_FN0 0x00014008 /* cb/ct */
29 #define HOST_PAGE_NUM_FN1 0x00014108 /* cb/ct */
[all …]
/kernel/linux/linux-6.6/net/netfilter/
Dnf_conntrack_h323_main.c65 struct nf_conn *ct, enum ip_conntrack_info ctinfo, in get_tpkt_data() argument
68 struct nf_ct_h323_master *info = nfct_help_data(ct); in get_tpkt_data()
171 static int get_h245_addr(struct nf_conn *ct, const unsigned char *data, in get_h245_addr() argument
183 if (nf_ct_l3num(ct) != AF_INET) in get_h245_addr()
189 if (nf_ct_l3num(ct) != AF_INET6) in get_h245_addr()
205 static int expect_rtp_rtcp(struct sk_buff *skb, struct nf_conn *ct, in expect_rtp_rtcp() argument
221 if (!get_h245_addr(ct, *data, taddr, &addr, &port) || in expect_rtp_rtcp()
222 memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3, sizeof(addr)) || in expect_rtp_rtcp()
231 if ((rtp_exp = nf_ct_expect_alloc(ct)) == NULL) in expect_rtp_rtcp()
233 nf_ct_expect_init(rtp_exp, NF_CT_EXPECT_CLASS_DEFAULT, nf_ct_l3num(ct), in expect_rtp_rtcp()
[all …]
Dnf_conntrack_core.c487 u32 nf_ct_get_id(const struct nf_conn *ct) in nf_ct_get_id() argument
494 a = (unsigned long)ct; in nf_ct_get_id()
495 b = (unsigned long)ct->master; in nf_ct_get_id()
496 c = (unsigned long)nf_ct_net(ct); in nf_ct_get_id()
497 d = (unsigned long)siphash(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in nf_ct_get_id()
498 sizeof(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple), in nf_ct_get_id()
509 clean_from_lists(struct nf_conn *ct) in clean_from_lists() argument
511 hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode); in clean_from_lists()
512 hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_REPLY].hnnode); in clean_from_lists()
515 nf_ct_remove_expectations(ct); in clean_from_lists()
[all …]
Dnf_nat_sip.c41 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in mangle_packet() local
45 if (nf_ct_protonum(ct) == IPPROTO_TCP) { in mangle_packet()
50 if (!__nf_nat_mangle_tcp_packet(skb, ct, ctinfo, in mangle_packet()
58 if (!nf_nat_mangle_udp_packet(skb, ct, ctinfo, in mangle_packet()
70 static int sip_sprintf_addr(const struct nf_conn *ct, char *buffer, in sip_sprintf_addr() argument
73 if (nf_ct_l3num(ct) == NFPROTO_IPV4) in sip_sprintf_addr()
83 static int sip_sprintf_addr_port(const struct nf_conn *ct, char *buffer, in sip_sprintf_addr_port() argument
86 if (nf_ct_l3num(ct) == NFPROTO_IPV4) in sip_sprintf_addr_port()
99 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in map_addr() local
101 struct nf_ct_sip_master *ct_sip_info = nfct_help_data(ct); in map_addr()
[all …]
/kernel/linux/linux-6.6/drivers/video/fbdev/aty/
Dmach64_ct.c4 * ATI Mach64 CT/VT/GT/LT Support
46 * ATI Mach64 CT clock synthesis description.
103 * PLL programming (Mach64 CT family)
254 if ((err = aty_valid_pll_ct(info, vclk_per, &pll->ct))) in aty_var_to_pll_ct()
256 if (M64_HAS(GTB_DSP) && (err = aty_dsp_gt(info, bpp, &pll->ct))) in aty_var_to_pll_ct()
258 /*aty_calc_pll_ct(info, &pll->ct);*/ in aty_var_to_pll_ct()
266 …ret = par->ref_clk_per * pll->ct.pll_ref_div * pll->ct.vclk_post_div_real / pll->ct.vclk_fb_div / … in aty_pll_to_var_ct()
268 if(pll->ct.xres > 0) { in aty_pll_to_var_ct()
270 ret /= pll->ct.xres; in aty_pll_to_var_ct()
293 pll->ct.pll_ext_cntl, pll->ct.pll_gen_cntl, pll->ct.pll_vclk_cntl); in aty_set_pll_ct()
[all …]
/kernel/linux/linux-5.10/drivers/video/fbdev/aty/
Dmach64_ct.c4 * ATI Mach64 CT/VT/GT/LT Support
48 * ATI Mach64 CT clock synthesis description.
105 * PLL programming (Mach64 CT family)
256 if ((err = aty_valid_pll_ct(info, vclk_per, &pll->ct))) in aty_var_to_pll_ct()
258 if (M64_HAS(GTB_DSP) && (err = aty_dsp_gt(info, bpp, &pll->ct))) in aty_var_to_pll_ct()
260 /*aty_calc_pll_ct(info, &pll->ct);*/ in aty_var_to_pll_ct()
268 …ret = par->ref_clk_per * pll->ct.pll_ref_div * pll->ct.vclk_post_div_real / pll->ct.vclk_fb_div / … in aty_pll_to_var_ct()
270 if(pll->ct.xres > 0) { in aty_pll_to_var_ct()
272 ret /= pll->ct.xres; in aty_pll_to_var_ct()
292 pll->ct.pll_ext_cntl, pll->ct.pll_gen_cntl, pll->ct.pll_vclk_cntl); in aty_set_pll_ct()
[all …]
/kernel/linux/linux-6.6/include/net/netfilter/
Dnf_conntrack.h89 /* jiffies32 when this ct is considered dead */
141 static inline u_int16_t nf_ct_l3num(const struct nf_conn *ct) in nf_ct_l3num() argument
143 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.l3num; in nf_ct_l3num()
146 static inline u_int8_t nf_ct_protonum(const struct nf_conn *ct) in nf_ct_protonum() argument
148 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum; in nf_ct_protonum()
151 #define nf_ct_tuple(ct, dir) (&(ct)->tuplehash[dir].tuple) argument
158 static inline struct net *nf_ct_net(const struct nf_conn *ct) in nf_ct_net() argument
160 return read_pnet(&ct->ct_net); in nf_ct_net()
164 void nf_conntrack_alter_reply(struct nf_conn *ct,
184 void nf_conntrack_tcp_set_closing(struct nf_conn *ct);
[all …]
/kernel/linux/linux-5.10/net/netfilter/ipvs/
Dip_vs_nfct.c74 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in ip_vs_update_conntrack() local
77 if (ct == NULL || nf_ct_is_confirmed(ct) || in ip_vs_update_conntrack()
78 nf_ct_is_dying(ct)) in ip_vs_update_conntrack()
94 if (cp->app && nf_ct_protonum(ct) == IPPROTO_TCP && in ip_vs_update_conntrack()
95 !nfct_seqadj(ct) && !nfct_seqadj_ext_add(ct)) in ip_vs_update_conntrack()
104 new_tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ip_vs_update_conntrack()
119 IP_VS_DBG_BUF(7, "%s: Updating conntrack ct=%p, status=0x%lX, " in ip_vs_update_conntrack()
121 __func__, ct, ct->status, ctinfo, in ip_vs_update_conntrack()
122 ARG_TUPLE(&ct->tuplehash[IP_CT_DIR_REPLY].tuple)); in ip_vs_update_conntrack()
123 IP_VS_DBG_BUF(7, "%s: Updating conntrack ct=%p, status=0x%lX, " in ip_vs_update_conntrack()
[all …]
/kernel/linux/linux-6.6/net/netfilter/ipvs/
Dip_vs_nfct.c74 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in ip_vs_update_conntrack() local
77 if (ct == NULL || nf_ct_is_confirmed(ct) || in ip_vs_update_conntrack()
78 nf_ct_is_dying(ct)) in ip_vs_update_conntrack()
94 if (cp->app && nf_ct_protonum(ct) == IPPROTO_TCP && in ip_vs_update_conntrack()
95 !nfct_seqadj(ct) && !nfct_seqadj_ext_add(ct)) in ip_vs_update_conntrack()
104 new_tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ip_vs_update_conntrack()
119 IP_VS_DBG_BUF(7, "%s: Updating conntrack ct=%p, status=0x%lX, " in ip_vs_update_conntrack()
121 __func__, ct, ct->status, ctinfo, in ip_vs_update_conntrack()
122 ARG_TUPLE(&ct->tuplehash[IP_CT_DIR_REPLY].tuple)); in ip_vs_update_conntrack()
123 IP_VS_DBG_BUF(7, "%s: Updating conntrack ct=%p, status=0x%lX, " in ip_vs_update_conntrack()
[all …]
/kernel/linux/linux-5.10/drivers/macintosh/
Dwindfarm.h28 int (*set_value)(struct wf_control *ct, s32 val);
29 int (*get_value)(struct wf_control *ct, s32 *val);
30 s32 (*get_min)(struct wf_control *ct);
31 s32 (*get_max)(struct wf_control *ct);
32 void (*release)(struct wf_control *ct);
56 extern int wf_register_control(struct wf_control *ct);
57 extern void wf_unregister_control(struct wf_control *ct);
58 extern int wf_get_control(struct wf_control *ct);
59 extern void wf_put_control(struct wf_control *ct);
61 static inline int wf_control_set_max(struct wf_control *ct) in wf_control_set_max() argument
[all …]
/kernel/linux/linux-6.6/drivers/macintosh/
Dwindfarm.h28 int (*set_value)(struct wf_control *ct, s32 val);
29 int (*get_value)(struct wf_control *ct, s32 *val);
30 s32 (*get_min)(struct wf_control *ct);
31 s32 (*get_max)(struct wf_control *ct);
32 void (*release)(struct wf_control *ct);
56 extern int wf_register_control(struct wf_control *ct);
57 extern void wf_unregister_control(struct wf_control *ct);
58 extern int wf_get_control(struct wf_control *ct);
59 extern void wf_put_control(struct wf_control *ct);
61 static inline int wf_control_set_max(struct wf_control *ct) in wf_control_set_max() argument
[all …]
/kernel/linux/linux-5.10/include/net/netfilter/
Dnf_conntrack.h70 /* jiffies32 when this ct is considered dead */
117 static inline u_int16_t nf_ct_l3num(const struct nf_conn *ct) in nf_ct_l3num() argument
119 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.l3num; in nf_ct_l3num()
122 static inline u_int8_t nf_ct_protonum(const struct nf_conn *ct) in nf_ct_protonum() argument
124 return ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum; in nf_ct_protonum()
127 #define nf_ct_tuple(ct, dir) (&(ct)->tuplehash[dir].tuple) argument
134 static inline struct net *nf_ct_net(const struct nf_conn *ct) in nf_ct_net() argument
136 return read_pnet(&ct->ct_net); in nf_ct_net()
140 void nf_conntrack_alter_reply(struct nf_conn *ct,
159 static inline void nf_ct_put(struct nf_conn *ct) in nf_ct_put() argument
[all …]

12345678910>>...40