| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_guc_ct.c | 40 static void receive_g2h(struct xe_guc_ct *ct); 43 static void ct_exit_safe_mode(struct xe_guc_ct *ct); 44 static void guc_ct_change_state(struct xe_guc_ct *ct, 47 static struct xe_guc *ct_to_guc(struct xe_guc_ct *ct) in ct_to_guc() argument 49 return container_of(ct, struct xe_guc, ct); in ct_to_guc() 52 static struct xe_gt *ct_to_gt(struct xe_guc_ct *ct) in ct_to_gt() argument 54 return container_of(ct, struct xe_gt, uc.guc.ct); in ct_to_gt() 57 static struct xe_device *ct_to_xe(struct xe_guc_ct *ct) in ct_to_xe() argument 88 ct_dead_fini(struct xe_guc_ct * ct) ct_dead_fini() argument 93 ct_dead_init(struct xe_guc_ct * ct) ct_dead_init() argument 103 fast_req_stack_save(struct xe_guc_ct * ct,unsigned int slot) fast_req_stack_save() argument 115 fast_req_dump(struct xe_guc_ct * ct,u16 fence,unsigned int slot) fast_req_dump() argument 133 fast_req_report(struct xe_guc_ct * ct,u16 fence) fast_req_report() argument 157 fast_req_track(struct xe_guc_ct * ct,u16 fence,u16 action) fast_req_track() argument 166 CT_DEAD(ct,ctb,reason_code) global() argument 170 ct_dead_fini(struct xe_guc_ct * ct) ct_dead_fini() argument 171 ct_dead_init(struct xe_guc_ct * ct) ct_dead_init() argument 173 fast_req_report(struct xe_guc_ct * ct,u16 fence) fast_req_report() argument 174 fast_req_track(struct xe_guc_ct * ct,u16 fence,u16 action) fast_req_track() argument 176 CT_DEAD(ct,ctb,reason) global() argument 278 xe_guc_ct_queue_proc_time_jiffies(struct xe_guc_ct * ct) xe_guc_ct_queue_proc_time_jiffies() argument 296 struct xe_guc_ct *ct = arg; guc_ct_fini() local 304 primelockdep(struct xe_guc_ct * ct) primelockdep() argument 314 xe_guc_ct_init_noalloc(struct xe_guc_ct * ct) xe_guc_ct_init_noalloc() argument 354 struct xe_guc_ct *ct = arg; guc_action_disable_ct() local 360 xe_guc_ct_init(struct xe_guc_ct * ct) xe_guc_ct_init() argument 400 xe_guc_ct_init_post_hwconfig(struct xe_guc_ct * ct) xe_guc_ct_init_post_hwconfig() argument 463 guc_ct_ctb_h2g_register(struct xe_guc_ct * ct) guc_ct_ctb_h2g_register() argument 490 guc_ct_ctb_g2h_register(struct xe_guc_ct * ct) guc_ct_ctb_g2h_register() argument 517 guc_ct_control_toggle(struct xe_guc_ct * ct,bool enable) guc_ct_control_toggle() argument 533 guc_ct_change_state(struct xe_guc_ct * ct,enum xe_guc_ct_state state) guc_ct_change_state() argument 579 ct_needs_safe_mode(struct xe_guc_ct * ct) ct_needs_safe_mode() argument 584 ct_restart_safe_mode_worker(struct xe_guc_ct * ct) ct_restart_safe_mode_worker() argument 595 struct xe_guc_ct *ct = container_of(w, struct xe_guc_ct, safe_mode_worker.work); safe_mode_worker_func() local 603 ct_enter_safe_mode(struct xe_guc_ct * ct) ct_enter_safe_mode() argument 609 ct_exit_safe_mode(struct xe_guc_ct * ct) ct_exit_safe_mode() argument 615 __xe_guc_ct_start(struct xe_guc_ct * ct,bool needs_register) __xe_guc_ct_start() argument 688 xe_guc_ct_restart(struct xe_guc_ct * ct) xe_guc_ct_restart() argument 701 xe_guc_ct_enable(struct xe_guc_ct * ct) xe_guc_ct_enable() argument 706 stop_g2h_handler(struct xe_guc_ct * ct) stop_g2h_handler() argument 718 xe_guc_ct_disable(struct xe_guc_ct * ct) xe_guc_ct_disable() argument 729 xe_guc_ct_flush_and_stop(struct xe_guc_ct * ct) xe_guc_ct_flush_and_stop() argument 741 xe_guc_ct_stop(struct xe_guc_ct * ct) xe_guc_ct_stop() argument 756 xe_guc_ct_runtime_suspend(struct xe_guc_ct * ct) xe_guc_ct_runtime_suspend() argument 778 xe_guc_ct_runtime_resume(struct xe_guc_ct * ct) xe_guc_ct_runtime_resume() argument 783 h2g_has_room(struct xe_guc_ct * ct,u32 cmd_len) h2g_has_room() argument 814 g2h_has_room(struct xe_guc_ct * ct,u32 g2h_len) g2h_has_room() argument 824 has_room(struct xe_guc_ct * ct,u32 cmd_len,u32 g2h_len) has_room() argument 834 h2g_reserve_space(struct xe_guc_ct * ct,u32 cmd_len) h2g_reserve_space() argument 840 __g2h_reserve_space(struct xe_guc_ct * ct,u32 g2h_len,u32 num_g2h) __g2h_reserve_space() argument 857 __g2h_release_space(struct xe_guc_ct * ct,u32 g2h_len) __g2h_release_space() argument 883 g2h_release_space(struct xe_guc_ct * ct,u32 g2h_len) g2h_release_space() argument 899 next_ct_seqno(struct xe_guc_ct * ct,bool is_g2h_fence) next_ct_seqno() argument 933 h2g_write(struct xe_guc_ct * ct,const u32 * action,u32 len,u32 ct_fence_value,bool want_response) h2g_write() argument 1045 __guc_ct_send_locked(struct xe_guc_ct * ct,const u32 * action,u32 len,u32 g2h_len,u32 num_g2h,struct g2h_fence * g2h_fence) __guc_ct_send_locked() argument 1118 kick_reset(struct xe_guc_ct * ct) kick_reset() argument 1129 guc_ct_send_wait_for_retry(struct xe_guc_ct * ct,u32 len,u32 g2h_len,struct g2h_fence * g2h_fence,unsigned int * sleep_period_ms,unsigned int * sleep_total_ms) guc_ct_send_wait_for_retry() argument 1166 g2h_avail(ct) guc_ct_send_wait_for_retry() argument 1184 guc_ct_send_locked(struct xe_guc_ct * ct,const u32 * action,u32 len,u32 g2h_len,u32 num_g2h,struct g2h_fence * g2h_fence) guc_ct_send_locked() argument 1217 guc_ct_send(struct xe_guc_ct * ct,const u32 * action,u32 len,u32 g2h_len,u32 num_g2h,struct g2h_fence * g2h_fence) guc_ct_send() argument 1231 xe_guc_ct_send(struct xe_guc_ct * ct,const u32 * action,u32 len,u32 g2h_len,u32 num_g2h) xe_guc_ct_send() argument 1243 xe_guc_ct_send_locked(struct xe_guc_ct * ct,const u32 * action,u32 len,u32 g2h_len,u32 num_g2h) xe_guc_ct_send_locked() argument 1255 xe_guc_ct_send_g2h_handler(struct xe_guc_ct * ct,const u32 * action,u32 len) xe_guc_ct_send_g2h_handler() argument 1272 retry_failure(struct xe_guc_ct * ct,int ret) retry_failure() argument 1277 ct_alive(ct) retry_failure() argument 1290 guc_ct_send_recv(struct xe_guc_ct * ct,const u32 * action,u32 len,u32 * response_buffer,bool no_fail) guc_ct_send_recv() argument 1409 xe_guc_ct_send_recv(struct xe_guc_ct * ct,const u32 * action,u32 len,u32 * response_buffer) xe_guc_ct_send_recv() argument 1417 xe_guc_ct_send_recv_no_fail(struct xe_guc_ct * ct,const u32 * action,u32 len,u32 * response_buffer) xe_guc_ct_send_recv_no_fail() argument 1433 parse_g2h_event(struct xe_guc_ct * ct,u32 * msg,u32 len) parse_g2h_event() argument 1453 guc_crash_process_msg(struct xe_guc_ct * ct,u32 action) guc_crash_process_msg() argument 1471 parse_g2h_response(struct xe_guc_ct * ct,u32 * msg,u32 len) parse_g2h_response() argument 1547 parse_g2h_msg(struct xe_guc_ct * ct,u32 * msg,u32 len) parse_g2h_msg() argument 1586 process_g2h_msg(struct xe_guc_ct * ct,u32 * msg,u32 len) process_g2h_msg() argument 1680 g2h_read(struct xe_guc_ct * ct,u32 * msg,bool fast_path) g2h_read() argument 1830 g2h_fast_path(struct xe_guc_ct * ct,u32 * msg,u32 len) g2h_fast_path() argument 1872 xe_guc_ct_fast_path(struct xe_guc_ct * ct) xe_guc_ct_fast_path() argument 1895 dequeue_one_g2h(struct xe_guc_ct * ct) dequeue_one_g2h() argument 1919 receive_g2h(struct xe_guc_ct * ct) receive_g2h() argument 1969 struct xe_guc_ct *ct = container_of(w, struct xe_guc_ct, g2h_worker); g2h_worker_func() local 1974 guc_ct_snapshot_alloc(struct xe_guc_ct * ct,bool atomic,bool want_ctb) guc_ct_snapshot_alloc() argument 2014 guc_ct_snapshot_capture(struct xe_guc_ct * ct,bool atomic,bool want_ctb) guc_ct_snapshot_capture() argument 2054 xe_guc_ct_snapshot_capture(struct xe_guc_ct * ct) xe_guc_ct_snapshot_capture() argument 2116 xe_guc_ct_print(struct xe_guc_ct * ct,struct drm_printer * p,bool want_ctb) xe_guc_ct_print() argument 2144 ct_dead_capture(struct xe_guc_ct * ct,struct guc_ctb * ctb,u32 reason_code) ct_dead_capture() argument 2198 struct xe_guc_ct *ct = container_of(dead, struct xe_guc_ct, dead); ct_dead_print() local 2229 struct xe_guc_ct *ct = container_of(w, struct xe_guc_ct, dead.worker); ct_dead_worker_func() local [all...] |
| /linux/tools/testing/selftests/tc-testing/tc-tests/actions/ |
| H A D | ct.json | 4 "name": "Add simple ct action", 7 "ct" 14 "$TC actions flush action ct", 20 "cmdUnderTest": "$TC actions add action ct index 42", 22 "verifyCmd": "$TC actions list action ct", 23 "matchPattern": "action order [0-9]*: ct zone 0 pipe.*index 42 ref", 26 "$TC actions flush action ct" 31 "name": "Add simple ct action with cookie", 34 "ct" 41 "$TC actions flush action ct", [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_bpf_nf_fail.c | 38 struct nf_conn *ct; in alloc_release() 40 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in alloc_release() 41 if (!ct) 43 bpf_ct_release(ct); in insert_insert() 52 struct nf_conn *ct; in insert_insert() 54 ct = bpf_skb_ct_alloc(ctx, &tup, sizeof(tup.ipv4), &opts, sizeof(opts)); in insert_insert() 55 if (!ct) in insert_insert() 57 ct = bpf_ct_insert_entry(ct); in insert_insert() 58 if (!ct) 33 struct nf_conn *ct; alloc_release() local 47 struct nf_conn *ct; insert_insert() local 64 struct nf_conn *ct; lookup_insert() local 78 struct nf_conn *ct; write_not_allowlisted_field() local 92 struct nf_conn *ct; set_timeout_after_insert() local 109 struct nf_conn *ct; set_status_after_insert() local 126 struct nf_conn *ct; change_timeout_after_alloc() local 140 struct nf_conn *ct; change_status_after_alloc() local [all...] |
| H A D | test_bpf_nf.c | 97 struct nf_conn *ct; in nf_ct_test() 102 ct = lookup_fn(ctx, &bpf_tuple, sizeof(bpf_tuple.ipv4), &opts_def, in nf_ct_test() 106 if (ct) in nf_ct_test() 107 bpf_ct_release(ct); in nf_ct_test() 112 ct = lookup_fn(ctx, &bpf_tuple, sizeof(bpf_tuple.ipv4), &opts_def, in nf_ct_test() 115 if (ct) in nf_ct_test() 116 bpf_ct_release(ct); in nf_ct_test() 120 ct = lookup_fn(ctx, &bpf_tuple, sizeof(bpf_tuple.ipv4), &opts_def, in nf_ct_test() 122 if (ct) in nf_ct_test() 123 bpf_ct_release(ct); in nf_ct_test() 98 struct nf_conn *ct; nf_ct_test() local 253 struct nf_conn *ct; nf_ct_opts_new_test() local [all...] |
| /linux/drivers/scsi/bfa/ |
| H A D | bfi_reg.h | 18 #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 …]
|
| /linux/net/netfilter/ |
| H A D | nf_conntrack_h323_main.c | 66 struct nf_conn *ct, enum ip_conntrack_info ctinfo, in get_tpkt_data() argument 69 struct nf_ct_h323_master *info = nfct_help_data(ct); in get_tpkt_data() 175 static int get_h245_addr(struct nf_conn *ct, const unsigned char *data, in get_h245_addr() 187 if (nf_ct_l3num(ct) != AF_INET) in get_h245_addr() 193 if (nf_ct_l3num(ct) != AF_INET6) in get_h245_addr() 209 static int expect_rtp_rtcp(struct sk_buff *skb, struct nf_conn *ct, in expect_rtp_rtcp() 225 if (!get_h245_addr(ct, *data, taddr, &addr, &port) || in expect_rtp_rtcp() 226 memcmp(&addr, &ct->tuplehash[dir].tuple.src.u3, sizeof(addr)) || in expect_rtp_rtcp() 235 if ((rtp_exp = nf_ct_expect_alloc(ct)) == NULL) in expect_rtp_rtcp() 237 nf_ct_expect_init(rtp_exp, NF_CT_EXPECT_CLASS_DEFAULT, nf_ct_l3num(ct), in expect_rtp_rtcp() 172 get_h245_addr(struct nf_conn * ct,const unsigned char * data,H245_TransportAddress * taddr,union nf_inet_addr * addr,__be16 * port) get_h245_addr() argument 206 expect_rtp_rtcp(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,int dataoff,H245_TransportAddress * taddr) expect_rtp_rtcp() argument 281 expect_t120(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,int dataoff,H245_TransportAddress * taddr) expect_t120() argument 333 process_h245_channel(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,int dataoff,H2250LogicalChannelParameters * channel) process_h245_channel() argument 361 process_olc(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,int dataoff,OpenLogicalChannel * olc) process_olc() argument 422 process_olca(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,int dataoff,OpenLogicalChannelAck * olca) process_olca() argument 491 process_h245(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,int dataoff,MultimediaSystemControlMessage * mscm) process_h245() argument 527 h245_help(struct sk_buff * skb,unsigned int protoff,struct nf_conn * ct,enum ip_conntrack_info ctinfo) h245_help() argument 589 get_h225_addr(struct nf_conn * ct,unsigned char * data,TransportAddress * taddr,union nf_inet_addr * addr,__be16 * port) get_h225_addr() argument 621 expect_h245(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,int dataoff,TransportAddress * taddr) expect_h245() argument 736 expect_callforwarding(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,int dataoff,TransportAddress * taddr) expect_callforwarding() argument 796 process_setup(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,int dataoff,Setup_UUIE * setup) process_setup() argument 867 process_callproceeding(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,int dataoff,CallProceeding_UUIE * callproc) process_callproceeding() argument 898 process_connect(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,int dataoff,Connect_UUIE * connect) process_connect() argument 929 process_alerting(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,int dataoff,Alerting_UUIE * alert) process_alerting() argument 960 process_facility(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,int dataoff,Facility_UUIE * facility) process_facility() argument 1000 process_progress(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,int dataoff,Progress_UUIE * progress) process_progress() argument 1031 process_q931(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,int dataoff,Q931 * q931) process_q931() argument 1090 q931_help(struct sk_buff * skb,unsigned int protoff,struct nf_conn * ct,enum ip_conntrack_info ctinfo) q931_help() argument 1184 find_expect(struct nf_conn * ct,union nf_inet_addr * addr,__be16 port) find_expect() argument 1204 expect_q931(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,TransportAddress * taddr,int count) expect_q931() argument 1261 process_grq(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,GatekeeperRequest * grq) process_grq() argument 1278 process_gcf(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,GatekeeperConfirm * gcf) process_gcf() argument 1322 process_rrq(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,RegistrationRequest * rrq) process_rrq() argument 1358 process_rcf(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,RegistrationConfirm * rcf) process_rcf() argument 1409 process_urq(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,UnregistrationRequest * urq) process_urq() argument 1442 process_arq(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,AdmissionRequest * arq) process_arq() argument 1489 process_acf(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,AdmissionConfirm * acf) process_acf() argument 1539 process_lrq(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,LocationRequest * lrq) process_lrq() argument 1556 process_lcf(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,LocationConfirm * lcf) process_lcf() argument 1595 process_irr(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,InfoRequestResponse * irr) process_irr() argument 1623 process_ras(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,unsigned int protoff,unsigned char ** data,RasMessage * ras) process_ras() argument 1668 ras_help(struct sk_buff * skb,unsigned int protoff,struct nf_conn * ct,enum ip_conntrack_info ctinfo) ras_help() argument [all...] |
| H A D | nf_nat_sip.c | 41 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 74 if (nf_ct_l3num(ct) == NFPROTO_IPV4) in sip_sprintf_addr() 84 static int sip_sprintf_addr_port(const struct nf_conn *ct, char *buffer, in sip_sprintf_addr_port() argument 88 if (nf_ct_l3num(ct) == NFPROTO_IPV4) in sip_sprintf_addr_port() 101 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in map_addr() local 103 struct nf_ct_sip_master *ct_sip_info = nfct_help_data(ct); in map_addr() 135 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); map_sip_addr() local 152 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); nf_nat_sip() local 310 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); nf_nat_sip_seq_adjust() local 321 nf_nat_sip_expected(struct nf_conn * ct,struct nf_conntrack_expect * exp) nf_nat_sip_expected() argument 384 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); nf_nat_sip_expect() local 444 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); mangle_content_len() local 475 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); mangle_sdp_packet() local 494 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); nf_nat_sdp_addr() local 531 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); nf_nat_sdp_session() local 573 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); nf_nat_sdp_media() local [all...] |
| H A D | nf_conntrack_core.c | 481 u32 nf_ct_get_id(const struct nf_conn *ct) in nf_ct_get_id() argument 488 a = (unsigned long)ct; in nf_ct_get_id() 489 b = (unsigned long)ct->master; in nf_ct_get_id() 490 c = (unsigned long)nf_ct_net(ct); in nf_ct_get_id() 491 d = (unsigned long)siphash(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple, in nf_ct_get_id() 492 sizeof(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple), in nf_ct_get_id() 508 clean_from_lists(struct nf_conn *ct) in clean_from_lists() argument 510 hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode); in clean_from_lists() 511 hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_REPLY].hnnode); in clean_from_lists() 514 nf_ct_remove_expectations(ct); in clean_from_lists() 561 destroy_gre_conntrack(struct nf_conn * ct) destroy_gre_conntrack() argument 580 struct nf_conn *ct = (struct nf_conn *)nfct; nf_ct_destroy() local 606 __nf_ct_delete_from_lists(struct nf_conn * ct) __nf_ct_delete_from_lists() argument 626 nf_ct_delete_from_lists(struct nf_conn * ct) nf_ct_delete_from_lists() argument 636 nf_ct_add_to_ecache_list(struct nf_conn * ct) nf_ct_add_to_ecache_list() argument 648 nf_ct_delete(struct nf_conn * ct,u32 portid,int report) nf_ct_delete() argument 695 struct nf_conn *ct = nf_ct_tuplehash_to_ctrack(h); nf_ct_key_equal() local 719 nf_ct_gc_expired(struct nf_conn * ct) nf_ct_gc_expired() argument 752 struct nf_conn *ct; ____nf_conntrack_find() local 782 struct nf_conn *ct; __nf_conntrack_find_get() local 833 __nf_conntrack_hash_insert(struct nf_conn * ct,unsigned int hash,unsigned int reply_hash) __nf_conntrack_hash_insert() argument 871 nf_conntrack_hash_check_insert(struct nf_conn * ct) nf_conntrack_hash_check_insert() argument 952 nf_ct_acct_add(struct nf_conn * ct,u32 dir,unsigned int packets,unsigned int bytes) nf_ct_acct_add() argument 967 nf_ct_acct_merge(struct nf_conn * ct,enum ip_conntrack_info ctinfo,const struct nf_conn * loser_ct) nf_ct_acct_merge() argument 983 __nf_conntrack_insert_prepare(struct nf_conn * ct) __nf_conntrack_insert_prepare() argument 1038 nf_ct_can_merge(const struct nf_conn * ct,const struct nf_conn * loser_ct) nf_ct_can_merge() argument 1050 struct nf_conn *ct = nf_ct_tuplehash_to_ctrack(h); __nf_ct_resolve_clash() local 1177 struct nf_conn *ct = nf_ct_tuplehash_to_ctrack(h); nf_ct_resolve_clash() local 1213 struct nf_conn *ct; __nf_conntrack_confirm() local 1366 struct nf_conn *ct; nf_conntrack_tuple_taken() local 1497 gc_worker_skip_ct(const struct nf_conn * ct) gc_worker_skip_ct() argument 1502 gc_worker_can_early_drop(const struct nf_conn * ct) gc_worker_can_early_drop() argument 1670 struct nf_conn *ct; __nf_conntrack_alloc() local 1730 nf_conntrack_free(struct nf_conn * ct) nf_conntrack_free() argument 1768 struct nf_conn *ct; init_conntrack() local 1883 struct nf_conn *ct; resolve_normal_ct() local 1965 generic_packet(struct nf_conn * ct,struct sk_buff * skb,enum ip_conntrack_info ctinfo) generic_packet() argument 1978 nf_conntrack_handle_packet(struct nf_conn * ct,struct sk_buff * skb,unsigned int dataoff,enum ip_conntrack_info ctinfo,const struct nf_hook_state * state) nf_conntrack_handle_packet() argument 2016 struct nf_conn *ct, *tmpl; nf_conntrack_in() local 2099 __nf_ct_refresh_acct(struct nf_conn * ct,enum ip_conntrack_info ctinfo,u32 extra_jiffies,unsigned int bytes) __nf_ct_refresh_acct() argument 2120 nf_ct_kill_acct(struct nf_conn * ct,enum ip_conntrack_info ctinfo,const struct sk_buff * skb) nf_ct_kill_acct() argument 2193 struct nf_conn *ct; nf_conntrack_attach() local 2211 nf_confirm_cthelper(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo) nf_confirm_cthelper() argument 2265 struct nf_conn *ct; nf_conntrack_update() local 2281 struct nf_conn *ct; nf_conntrack_get_tuple_skb() local 2315 struct nf_conn *ct; get_next_corpse() local 2368 struct nf_conn *ct; nf_ct_iterate_cleanup() local 2557 struct nf_conn *ct; nf_conntrack_hash_resize() local 2718 struct nf_conn *ct = nf_ct_to_nf_conn(nfct); nf_conntrack_set_closing() local 2778 __nf_ct_change_timeout(struct nf_conn * ct,u64 timeout) __nf_ct_change_timeout() argument 2792 __nf_ct_change_status(struct nf_conn * ct,unsigned long on,unsigned long off) __nf_ct_change_status() argument 2809 nf_ct_change_status_common(struct nf_conn * ct,unsigned int status) nf_ct_change_status_common() argument [all...] |
| H A D | xt_CT.c | 21 static inline int xt_ct_target(struct sk_buff *skb, struct nf_conn *ct) in xt_ct_target() argument 27 if (ct) { in xt_ct_target() 28 refcount_inc(&ct->ct_general.use); in xt_ct_target() 29 nf_ct_set(skb, ct, IP_CT_NEW); in xt_ct_target() 31 nf_ct_set(skb, ct, IP_CT_UNTRACKED); in xt_ct_target() 41 struct nf_conn *ct = info->ct; in xt_ct_target_v0() local 43 return xt_ct_target(skb, ct); in xt_ct_target_v0() 50 struct nf_conn *ct = info->ct; in xt_ct_target_v1() local 74 xt_ct_set_helper(struct nf_conn * ct,const char * helper_name,const struct xt_tgchk_param * par) xt_ct_set_helper() argument 105 xt_ct_set_timeout(struct nf_conn * ct,const struct xt_tgchk_param * par,const char * timeout_name) xt_ct_set_timeout() argument 160 struct nf_conn *ct; xt_ct_tg_check() local 283 struct nf_conn *ct = info->ct; xt_ct_tg_destroy() local [all...] |
| H A D | nf_conntrack_proto_tcp.c | 266 static void tcp_print_conntrack(struct seq_file *s, struct nf_conn *ct) in tcp_print_conntrack() argument 268 if (test_bit(IPS_OFFLOAD_BIT, &ct->status)) in tcp_print_conntrack() 271 seq_printf(s, "%s ", tcp_conntrack_names[ct->proto.tcp.state]); in tcp_print_conntrack() 485 const struct nf_conn *ct, in nf_tcp_log_invalid() argument 491 const struct nf_tcp_net *tn = nf_tcp_pernet(nf_ct_net(ct)); in nf_tcp_log_invalid() 503 nf_ct_l4proto_log_invalid(skb, ct, state, "%pV", &vaf); in nf_tcp_log_invalid() 510 tcp_in_window(struct nf_conn *ct, enum ip_conntrack_dir dir, in tcp_in_window() argument 515 struct ip_ct_tcp *state = &ct->proto.tcp; in tcp_in_window() 536 receiver_offset = nf_ct_seq_offset(ct, !dir, ack - 1); in tcp_in_window() 643 return nf_tcp_log_invalid(skb, ct, hook_stat in tcp_in_window() 722 nf_tcp_handle_invalid(struct nf_conn * ct,enum ip_conntrack_dir dir,int index,const struct sk_buff * skb,const struct nf_hook_state * hook_state) nf_tcp_handle_invalid() argument 838 tcp_new(struct nf_conn * ct,const struct sk_buff * skb,unsigned int dataoff,const struct tcphdr * th,const struct nf_hook_state * state) tcp_new() argument 901 tcp_can_early_drop(const struct nf_conn * ct) tcp_can_early_drop() argument 917 nf_conntrack_tcp_set_closing(struct nf_conn * ct) nf_conntrack_tcp_set_closing() argument 963 nf_conntrack_tcp_packet(struct nf_conn * ct,struct sk_buff * skb,unsigned int dataoff,enum ip_conntrack_info ctinfo,const struct nf_hook_state * state) nf_conntrack_tcp_packet() argument 1346 tcp_to_nlattr(struct sk_buff * skb,struct nlattr * nla,struct nf_conn * ct,bool destroy) tcp_to_nlattr() argument 1402 nlattr_to_tcp(struct nlattr * cda[],struct nf_conn * ct) nlattr_to_tcp() argument [all...] |
| H A D | nf_conntrack_netlink.c | 166 static int ctnetlink_dump_status(struct sk_buff *skb, const struct nf_conn *ct) in ctnetlink_dump_status() argument 168 if (nla_put_be32(skb, CTA_STATUS, htonl(ct->status))) in ctnetlink_dump_status() 176 static int ctnetlink_dump_timeout(struct sk_buff *skb, const struct nf_conn *ct, in ctnetlink_dump_timeout() argument 181 if (nf_ct_is_confirmed(ct)) in ctnetlink_dump_timeout() 182 timeout = nf_ct_expires(ct) / HZ; in ctnetlink_dump_timeout() 184 timeout = ct->timeout / HZ; in ctnetlink_dump_timeout() 197 static int ctnetlink_dump_protoinfo(struct sk_buff *skb, struct nf_conn *ct, in ctnetlink_dump_protoinfo() argument 204 l4proto = nf_ct_l4proto_find(nf_ct_protonum(ct)); in ctnetlink_dump_protoinfo() 212 ret = l4proto->to_nlattr(skb, nest_proto, ct, destroy); in ctnetlink_dump_protoinfo() 223 const struct nf_conn *ct) in ctnetlink_dump_helpinfo() argument 292 ctnetlink_dump_acct(struct sk_buff * skb,const struct nf_conn * ct,int type) ctnetlink_dump_acct() argument 308 ctnetlink_dump_timestamp(struct sk_buff * skb,const struct nf_conn * ct) ctnetlink_dump_timestamp() argument 336 ctnetlink_dump_mark(struct sk_buff * skb,const struct nf_conn * ct,bool dump) ctnetlink_dump_mark() argument 356 ctnetlink_dump_secctx(struct sk_buff * skb,const struct nf_conn * ct) ctnetlink_dump_secctx() argument 386 ctnetlink_dump_event_timestamp(struct sk_buff * skb,const struct nf_conn * ct) ctnetlink_dump_event_timestamp() argument 402 ctnetlink_label_size(const struct nf_conn * ct) ctnetlink_label_size() argument 413 ctnetlink_dump_labels(struct sk_buff * skb,const struct nf_conn * ct) ctnetlink_dump_labels() argument 432 master_tuple(ct) global() argument 434 ctnetlink_dump_master(struct sk_buff * skb,const struct nf_conn * ct) ctnetlink_dump_master() argument 479 ctnetlink_dump_ct_seq_adj(struct sk_buff * skb,struct nf_conn * ct) ctnetlink_dump_ct_seq_adj() argument 503 ctnetlink_dump_ct_synproxy(struct sk_buff * skb,struct nf_conn * ct) ctnetlink_dump_ct_synproxy() argument 528 ctnetlink_dump_id(struct sk_buff * skb,const struct nf_conn * ct) ctnetlink_dump_id() argument 540 ctnetlink_dump_use(struct sk_buff * skb,const struct nf_conn * ct) ctnetlink_dump_use() argument 555 ctnetlink_dump_extinfo(struct sk_buff * skb,struct nf_conn * ct,u32 type) ctnetlink_dump_extinfo() argument 568 ctnetlink_dump_info(struct sk_buff * skb,struct nf_conn * ct) ctnetlink_dump_info() argument 588 ctnetlink_fill_info(struct sk_buff * skb,u32 portid,u32 seq,u32 type,struct nf_conn * ct,bool extinfo,unsigned int flags) ctnetlink_fill_info() argument 651 ctnetlink_proto_size(const struct nf_conn * ct) ctnetlink_proto_size() argument 669 ctnetlink_acct_size(const struct nf_conn * ct) ctnetlink_acct_size() argument 679 ctnetlink_secctx_size(const struct nf_conn * ct) ctnetlink_secctx_size() argument 695 ctnetlink_timestamp_size(const struct nf_conn * ct) ctnetlink_timestamp_size() argument 708 ctnetlink_nlmsg_size(const struct nf_conn * ct) ctnetlink_nlmsg_size() argument 749 struct nf_conn *ct = item->ct; ctnetlink_conntrack_event() local 1151 ctnetlink_filter_match(struct nf_conn * ct,void * data) ctnetlink_filter_match() argument 1202 ctnetlink_get_id(const struct nf_conn * ct) ctnetlink_get_id() argument 1218 struct nf_conn *ct; ctnetlink_dump_table() local 1582 ctnetlink_flush_iterate(struct nf_conn * ct,void * data) ctnetlink_flush_iterate() argument 1620 struct nf_conn *ct; ctnetlink_del_conntrack() local 1674 struct nf_conn *ct; ctnetlink_get_conntrack() local 1732 ctnetlink_dump_one_entry(struct sk_buff * skb,struct netlink_callback * cb,struct nf_conn * ct,bool dying) ctnetlink_dump_one_entry() argument 1796 struct nf_conn *ct; ctnetlink_dump_dying() local 1849 ctnetlink_parse_nat_setup(struct nf_conn * ct,enum nf_nat_manip_type manip,const struct nlattr * attr) ctnetlink_parse_nat_setup() argument 1897 ctnetlink_change_status(struct nf_conn * ct,const struct nlattr * const cda[]) ctnetlink_change_status() argument 1903 ctnetlink_setup_nat(struct nf_conn * ct,const struct nlattr * const cda[]) ctnetlink_setup_nat() argument 1925 ctnetlink_change_helper(struct nf_conn * ct,const struct nlattr * const cda[]) ctnetlink_change_helper() argument 1991 ctnetlink_change_timeout(struct nf_conn * ct,const struct nlattr * const cda[]) ctnetlink_change_timeout() argument 1998 ctnetlink_change_mark(struct nf_conn * ct,const struct nlattr * const cda[]) ctnetlink_change_mark() argument 2018 ctnetlink_change_protoinfo(struct nf_conn * ct,const struct nlattr * const cda[]) ctnetlink_change_protoinfo() argument 2077 ctnetlink_change_seq_adj(struct nf_conn * ct,const struct nlattr * const cda[]) ctnetlink_change_seq_adj() argument 2118 ctnetlink_change_synproxy(struct nf_conn * ct,const struct nlattr * const cda[]) ctnetlink_change_synproxy() argument 2147 ctnetlink_attach_labels(struct nf_conn * ct,const struct nlattr * const cda[]) ctnetlink_attach_labels() argument 2172 ctnetlink_change_conntrack(struct nf_conn * ct,const struct nlattr * const cda[]) ctnetlink_change_conntrack() argument 2239 struct nf_conn *ct; ctnetlink_create_conntrack() local 2398 struct nf_conn *ct; ctnetlink_new_conntrack() local 2643 ctnetlink_glue_build_size(const struct nf_conn * ct) ctnetlink_glue_build_size() argument 2672 __ctnetlink_glue_build(struct sk_buff * skb,struct nf_conn * ct) __ctnetlink_glue_build() argument 2749 ctnetlink_glue_build(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,u_int16_t ct_attr,u_int16_t ct_info_attr) ctnetlink_glue_build() argument 2774 ctnetlink_update_status(struct nf_conn * ct,const struct nlattr * const cda[]) ctnetlink_update_status() argument 2798 ctnetlink_glue_parse_ct(const struct nlattr * cda[],struct nf_conn * ct) ctnetlink_glue_parse_ct() argument 2831 ctnetlink_glue_parse(const struct nlattr * attr,struct nf_conn * ct) ctnetlink_glue_parse() argument 2845 ctnetlink_glue_exp_parse(const struct nlattr * const * cda,const struct nf_conn * ct,struct nf_conntrack_tuple * tuple,struct nf_conntrack_tuple * mask) ctnetlink_glue_exp_parse() argument 2861 ctnetlink_glue_attach_expect(const struct nlattr * attr,struct nf_conn * ct,u32 portid,u32 report) ctnetlink_glue_attach_expect() argument 2903 ctnetlink_glue_seqadj(struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo,int diff) ctnetlink_glue_seqadj() argument 3207 struct nf_conn *ct = cb->data; ctnetlink_exp_ct_dump_table() local 3251 struct nf_conn *ct = cb->data; ctnetlink_dump_exp_ct_start() local 3260 struct nf_conn *ct = cb->data; ctnetlink_dump_exp_ct_done() local 3278 struct nf_conn *ct; ctnetlink_dump_exp_ct() local 3532 ctnetlink_alloc_expect(const struct nlattr * const cda[],struct nf_conn * ct,const struct nf_conntrack_helper * assign_helper,struct nf_conntrack_tuple * tuple,struct nf_conntrack_tuple * mask) ctnetlink_alloc_expect() argument 3619 struct nf_conn *ct; ctnetlink_create_expect() local [all...] |
| H A D | nf_conntrack_proto_sctp.c | 134 static void sctp_print_conntrack(struct seq_file *s, struct nf_conn *ct) in sctp_print_conntrack() argument 136 seq_printf(s, "%s ", sctp_conntrack_names[ct->proto.sctp.state]); in sctp_print_conntrack() 148 static int do_basic_checks(struct nf_conn *ct, in do_basic_checks() argument 175 nf_ct_l4proto_log_invalid(skb, ct, state, in do_basic_checks() 240 sctp_new(struct nf_conn *ct, const struct sk_buff *skb, in sctp_new() argument 248 memset(&ct->proto.sctp, 0, sizeof(ct->proto.sctp)); in sctp_new() 276 ct->proto.sctp.vtag[IP_CT_DIR_REPLY] = ih->init_tag; in sctp_new() 280 ct->proto.sctp.vtag[IP_CT_DIR_ORIGINAL] = sh->vtag; in sctp_new() 286 ct->proto.sctp.vtag[IP_CT_DIR_REPLY] = sh->vtag; in sctp_new() 289 ct->proto.sctp.state = SCTP_CONNTRACK_NONE; in sctp_new() [all …]
|
| H A D | nf_conntrack_sip.c | 66 static int string_len(const struct nf_conn *ct, const char *dptr, in string_len() argument 78 static int digits_len(const struct nf_conn *ct, const char *dptr, in digits_len() argument 110 static int callid_len(const struct nf_conn *ct, const char *dptr, in callid_len() argument 129 static int media_len(const struct nf_conn *ct, const char *dptr, in media_len() argument 132 int len = string_len(ct, dptr, limit, shift); in media_len() 140 return len + digits_len(ct, dptr, limit, shift); in media_len() 143 static int sip_parse_addr(const struct nf_conn *ct, const char *cp, in sip_parse_addr() argument 150 if (!ct) in sip_parse_addr() 154 switch (nf_ct_l3num(ct)) { in sip_parse_addr() 236 static int epaddr_len(const struct nf_conn *ct, cons argument 253 skp_epaddr_len(const struct nf_conn * ct,const char * dptr,const char * limit,int * shift) skp_epaddr_len() argument 330 ct_sip_parse_request(const struct nf_conn * ct,const char * dptr,unsigned int datalen,unsigned int * matchoff,unsigned int * matchlen,union nf_inet_addr * addr,__be16 * port) ct_sip_parse_request() argument 453 ct_sip_get_header(const struct nf_conn * ct,const char * dptr,unsigned int dataoff,unsigned int datalen,enum sip_header_types type,unsigned int * matchoff,unsigned int * matchlen) ct_sip_get_header() argument 521 ct_sip_next_header(const struct nf_conn * ct,const char * dptr,unsigned int dataoff,unsigned int datalen,enum sip_header_types type,unsigned int * matchoff,unsigned int * matchlen) ct_sip_next_header() argument 551 ct_sip_walk_headers(const struct nf_conn * ct,const char * dptr,unsigned int dataoff,unsigned int datalen,enum sip_header_types type,int * in_header,unsigned int * matchoff,unsigned int * matchlen) ct_sip_walk_headers() argument 591 ct_sip_parse_header_uri(const struct nf_conn * ct,const char * dptr,unsigned int * dataoff,unsigned int datalen,enum sip_header_types type,int * in_header,unsigned int * matchoff,unsigned int * matchlen,union nf_inet_addr * addr,__be16 * port) ct_sip_parse_header_uri() argument 617 ct_sip_parse_param(const struct nf_conn * ct,const char * dptr,unsigned int dataoff,unsigned int datalen,const char * name,unsigned int * matchoff,unsigned int * matchlen) ct_sip_parse_param() argument 645 ct_sip_parse_address_param(const struct nf_conn * ct,const char * dptr,unsigned int dataoff,unsigned int datalen,const char * name,unsigned int * matchoff,unsigned int * matchlen,union nf_inet_addr * addr,bool delim) ct_sip_parse_address_param() argument 672 ct_sip_parse_numerical_param(const struct nf_conn * ct,const char * dptr,unsigned int dataoff,unsigned int datalen,const char * name,unsigned int * matchoff,unsigned int * matchlen,unsigned int * val) ct_sip_parse_numerical_param() argument 702 ct_sip_parse_transport(struct nf_conn * ct,const char * dptr,unsigned int dataoff,unsigned int datalen,u8 * proto) ct_sip_parse_transport() argument 725 sdp_parse_addr(const struct nf_conn * ct,const char * cp,const char ** endp,union nf_inet_addr * addr,const char * limit) sdp_parse_addr() argument 752 sdp_addr_len(const struct nf_conn * ct,const char * dptr,const char * limit,int * shift) sdp_addr_len() argument 806 ct_sip_get_sdp_header(const struct nf_conn * ct,const char * dptr,unsigned int dataoff,unsigned int datalen,enum sdp_header_types type,enum sdp_header_types term,unsigned int * matchoff,unsigned int * matchlen) ct_sip_get_sdp_header() argument 860 ct_sip_parse_sdp_addr(const struct nf_conn * ct,const char * dptr,unsigned int dataoff,unsigned int datalen,enum sdp_header_types type,enum sdp_header_types term,unsigned int * matchoff,unsigned int * matchlen,union nf_inet_addr * addr) ct_sip_parse_sdp_addr() argument 880 refresh_signalling_expectation(struct nf_conn * ct,union nf_inet_addr * addr,u8 proto,__be16 port,unsigned int expires) refresh_signalling_expectation() argument 907 flush_expectations(struct nf_conn * ct,bool media) flush_expectations() argument 934 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); set_expected_rtp_rtcp() local 1110 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); process_sdp() local 1227 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); process_invite_response() local 1244 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); process_update_response() local 1261 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); process_prack_response() local 1278 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); process_invite_request() local 1295 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); process_bye_request() local 1311 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); process_register_request() local 1414 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); process_register_response() local 1499 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); process_sip_response() local 1545 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); process_sip_request() local 1597 process_sip_msg(struct sk_buff * skb,struct nf_conn * ct,unsigned int protoff,unsigned int dataoff,const char ** dptr,unsigned int * datalen) process_sip_msg() argument 1622 sip_help_tcp(struct sk_buff * skb,unsigned int protoff,struct nf_conn * ct,enum ip_conntrack_info ctinfo) sip_help_tcp() argument 1710 sip_help_udp(struct sk_buff * skb,unsigned int protoff,struct nf_conn * ct,enum ip_conntrack_info ctinfo) sip_help_udp() argument [all...] |
| H A D | nf_conntrack_ecache.c | 67 struct nf_conn *ct = nf_ct_tuplehash_to_ctrack(h); in ecache_work_evict_list() local 69 /* The worker owns all entries, ct remains valid until nf_ct_put in ecache_work_evict_list() 72 if (nf_conntrack_event(IPCT_DESTROY, ct)) { in ecache_work_evict_list() 77 hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_ORIGINAL].hnnode); in ecache_work_evict_list() 78 hlist_nulls_add_head(&ct->tuplehash[IP_CT_DIR_REPLY].hnnode, &evicted_list); in ecache_work_evict_list() 95 struct nf_conn *ct = nf_ct_tuplehash_to_ctrack(h); in ecache_work_evict_list() local 97 hlist_nulls_del_rcu(&ct->tuplehash[IP_CT_DIR_REPLY].hnnode); in ecache_work_evict_list() 98 nf_ct_put(ct); in ecache_work_evict_list() 132 struct net *net = nf_ct_net(item->ct); in __nf_conntrack_eventmask_report() 142 notify = rcu_dereference(net->ct.nf_conntrack_event_cb); in __nf_conntrack_eventmask_report() [all …]
|
| H A D | nft_ct.c | 59 const struct nf_conn *ct; in nft_ct_get_eval() local 65 ct = nf_ct_get(pkt->skb, &ctinfo); in nft_ct_get_eval() 69 if (ct) in nft_ct_get_eval() 81 if (!ct || nf_ct_is_template(ct)) in nft_ct_get_eval() 89 *dest = ct->status; in nft_ct_get_eval() 93 *dest = READ_ONCE(ct->mark); in nft_ct_get_eval() 98 *dest = ct->secmark; in nft_ct_get_eval() 102 *dest = jiffies_to_msecs(nf_ct_expires(ct)); in nft_ct_get_eval() 105 if (ct in nft_ct_get_eval() 232 struct nf_conn *ct; nft_ct_set_zone_eval() local 284 struct nf_conn *ct; nft_ct_set_eval() local 346 struct nf_conn *ct; nft_ct_tmpl_put_pcpu() local 819 struct nf_conn *ct; nft_notrack_eval() local 881 struct nf_conn *ct = (struct nf_conn *)skb_nfct(pkt->skb); nft_ct_timeout_obj_eval() local 1119 struct nf_conn *ct = (struct nf_conn *)skb_nfct(pkt->skb); nft_ct_helper_obj_eval() local 1298 struct nf_conn *ct; nft_ct_expect_obj_eval() local [all...] |
| H A D | xt_conntrack.c | 40 conntrack_mt_origsrc(const struct nf_conn *ct, in conntrack_mt_origsrc() argument 44 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3, in conntrack_mt_origsrc() 49 conntrack_mt_origdst(const struct nf_conn *ct, in conntrack_mt_origdst() argument 53 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.u3, in conntrack_mt_origdst() 58 conntrack_mt_replsrc(const struct nf_conn *ct, in conntrack_mt_replsrc() argument 62 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.u3, in conntrack_mt_replsrc() 67 conntrack_mt_repldst(const struct nf_conn *ct, in conntrack_mt_repldst() argument 71 return conntrack_addrcmp(&ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.u3, in conntrack_mt_repldst() 77 const struct nf_conn *ct) in ct_proto_port_check() argument 81 tuple = &ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; in ct_proto_port_check() [all …]
|
| H A D | nf_conntrack_pptp.c | 89 static void pptp_expectfn(struct nf_conn *ct, in pptp_expectfn() argument 93 struct net *net = nf_ct_net(ct); in pptp_expectfn() 97 ct->proto.gre.timeout = PPTP_GRE_TIMEOUT; in pptp_expectfn() 98 ct->proto.gre.stream_timeout = PPTP_GRE_STREAM_TIMEOUT; in pptp_expectfn() 104 if (hook && ct->master->status & IPS_NAT_MASK) in pptp_expectfn() 105 hook->expectfn(ct, exp); in pptp_expectfn() 115 exp_other = nf_ct_expect_find_get(net, nf_ct_zone(ct), &inv_t); in pptp_expectfn() 128 static int exp_gre(struct nf_conn *ct, __be16 callid, __be16 peer_callid) in destroy_sibling_or_exp() 135 exp_orig = nf_ct_expect_alloc(ct); in destroy_sibling_or_exp() 139 exp_reply = nf_ct_expect_alloc(ct); in destroy_sibling_or_exp() 127 destroy_sibling_or_exp(struct net * net,struct nf_conn * ct,const struct nf_conntrack_tuple * t) destroy_sibling_or_exp() argument 161 pptp_destroy_siblings(struct nf_conn * ct) pptp_destroy_siblings() argument 187 exp_gre(struct nf_conn * ct,__be16 callid,__be16 peer_callid) exp_gre() argument 252 pptp_inbound_pkt(struct sk_buff * skb,unsigned int protoff,struct PptpControlHeader * ctlh,union pptp_ctrl_union * pptpReq,unsigned int reqlen,struct nf_conn * ct,enum ip_conntrack_info ctinfo) pptp_inbound_pkt() argument 379 pptp_outbound_pkt(struct sk_buff * skb,unsigned int protoff,struct PptpControlHeader * ctlh,union pptp_ctrl_union * pptpReq,unsigned int reqlen,struct nf_conn * ct,enum ip_conntrack_info ctinfo) pptp_outbound_pkt() argument 488 conntrack_pptp_help(struct sk_buff * skb,unsigned int protoff,struct nf_conn * ct,enum ip_conntrack_info ctinfo) conntrack_pptp_help() argument [all...] |
| H A D | nf_flow_table_core.c | 26 struct nf_conntrack_tuple *ctt = &flow->ct->tuplehash[dir].tuple; in flow_offload_fill_dir() 53 struct flow_offload *flow_offload_alloc(struct nf_conn *ct) in flow_offload_alloc() argument 57 if (unlikely(nf_ct_is_dying(ct))) in flow_offload_alloc() 64 refcount_inc(&ct->ct_general.use); in flow_offload_alloc() 65 flow->ct = ct; in flow_offload_alloc() 70 if (ct->status & IPS_SRC_NAT) in flow_offload_alloc() 72 if (ct->status & IPS_DST_NAT) in flow_offload_alloc() 174 static void flow_offload_fixup_tcp(struct nf_conn *ct, u8 tcp_state) in flow_offload_fixup_tcp() argument 176 struct ip_ct_tcp *tcp = &ct->proto.tcp; in flow_offload_fixup_tcp() 178 spin_lock_bh(&ct->lock); in flow_offload_fixup_tcp() [all …]
|
| /linux/drivers/video/fbdev/aty/ |
| H A D | mach64_ct.c | 4 * 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 …]
|
| /linux/drivers/net/ethernet/brocade/bna/ |
| H A D | bfi_reg.h | 19 #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 …]
|
| /linux/net/netfilter/ipvs/ |
| H A D | ip_vs_nfct.c | 73 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); in ip_vs_update_conntrack() 76 if (ct == NULL || nf_ct_is_confirmed(ct) || in ip_vs_update_conntrack() 77 nf_ct_is_dying(ct)) in ip_vs_update_conntrack() 93 if (cp->app && nf_ct_protonum(ct) == IPPROTO_TCP && in ip_vs_update_conntrack() 94 !nfct_seqadj(ct) && !nfct_seqadj_ext_add(ct)) in ip_vs_update_conntrack() 103 new_tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in ip_vs_update_conntrack() 118 IP_VS_DBG_BUF(7, "%s: Updating conntrack ct=%p, status=0x%lX, " in ip_vs_update_conntrack() 120 __func__, ct, c in ip_vs_update_conntrack() 74 struct nf_conn *ct = nf_ct_get(skb, &ctinfo); ip_vs_update_conntrack() local 140 ip_vs_nfct_expect_callback(struct nf_conn * ct,struct nf_conntrack_expect * exp) ip_vs_nfct_expect_callback() argument 211 ip_vs_nfct_expect_related(struct sk_buff * skb,struct nf_conn * ct,struct ip_vs_conn * cp,u_int8_t proto,const __be16 port,int from_rs) ip_vs_nfct_expect_related() argument 245 struct nf_conn *ct; ip_vs_conn_drop_conntrack() local [all...] |
| /linux/drivers/macintosh/ |
| H A D | windfarm.h | 28 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 …]
|
| /linux/net/openvswitch/ |
| H A D | conntrack.c | 64 struct nf_conn *ct; member 154 static u32 ovs_ct_get_mark(const struct nf_conn *ct) in ovs_ct_get_mark() argument 157 return ct ? READ_ONCE(ct->mark) : 0; in ovs_ct_get_mark() 168 static void ovs_ct_get_labels(const struct nf_conn *ct, in ovs_ct_get_labels() argument 173 if (ct) { in ovs_ct_get_labels() 174 if (ct->master && !nf_ct_is_confirmed(ct)) in ovs_ct_get_labels() 175 ct = ct in ovs_ct_get_labels() 200 __ovs_ct_update_key(struct sw_flow_key * key,u8 state,const struct nf_conntrack_zone * zone,const struct nf_conn * ct) __ovs_ct_update_key() argument 249 struct nf_conn *ct; ovs_ct_update_key() local 344 ovs_ct_set_mark(struct nf_conn * ct,struct sw_flow_key * key,u32 ct_mark,u32 mask) ovs_ct_set_mark() argument 364 ovs_ct_get_conn_labels(struct nf_conn * ct) ovs_ct_get_conn_labels() argument 381 ovs_ct_init_labels(struct nf_conn * ct,struct sw_flow_key * key,const struct ovs_key_ct_labels * labels,const struct ovs_key_ct_labels * mask) ovs_ct_init_labels() argument 422 ovs_ct_set_labels(struct nf_conn * ct,struct sw_flow_key * key,const struct ovs_key_ct_labels * labels,const struct ovs_key_ct_labels * mask) ovs_ct_set_labels() argument 468 const struct nf_conn *ct = nf_ct_tuplehash_to_ctrack(h); ovs_ct_get_info() local 495 struct nf_conn *ct; ovs_ct_find_existing() local 539 struct nf_conn *ct = NULL; ovs_ct_executed() local 567 struct nf_conn *ct; skb_nfct_cached() local 669 ovs_ct_nat(struct net * net,struct sw_flow_key * key,const struct ovs_conntrack_info * info,struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo) ovs_ct_nat() argument 695 ovs_ct_nat(struct net * net,struct sw_flow_key * key,const struct ovs_conntrack_info * info,struct sk_buff * skb,struct nf_conn * ct,enum ip_conntrack_info ctinfo) ovs_ct_nat() argument 735 struct nf_conn *ct; __ovs_ct_lookup() local 846 struct nf_conn *ct; ovs_ct_lookup() local 961 struct nf_conn *ct; ovs_ct_commit() local 1078 struct nf_conn *ct; ovs_ct_clear() local [all...] |
| /linux/net/sched/ |
| H A D | act_ct.c | 178 static void tcf_ct_flow_table_add_action_meta(struct nf_conn *ct, in tcf_ct_flow_table_add_action_meta() argument 190 entry->ct_metadata.mark = READ_ONCE(ct->mark); in tcf_ct_flow_table_add_action_meta() 192 /* aligns with the CT reference on the SKB nf_ct_set */ in tcf_ct_flow_table_add_action_meta() 193 entry->ct_metadata.cookie = (unsigned long)ct | ctinfo; in tcf_ct_flow_table_add_action_meta() 197 ct_labels = nf_ct_labels_find(ct); in tcf_ct_flow_table_add_action_meta() 205 struct nf_conn *ct, in tcf_ct_flow_table_add_action_nat() argument 209 const struct nf_conntrack_tuple *tuple = &ct->tuplehash[dir].tuple; in tcf_ct_flow_table_add_action_nat() 212 if (!(ct->status & IPS_NAT_MASK)) in tcf_ct_flow_table_add_action_nat() 215 nf_ct_invert_tuple(&target, &ct->tuplehash[!dir].tuple); in tcf_ct_flow_table_add_action_nat() 230 switch (nf_ct_protonum(ct)) { in tcf_ct_flow_table_add_action_nat() [all …]
|
| /linux/kernel/irq/ |
| H A D | generic-chip.c | 40 struct irq_chip_type *ct = irq_data_get_chip_type(d); in irq_gc_mask_disable_reg() local 44 irq_reg_writel(gc, mask, ct->regs.disable); in irq_gc_mask_disable_reg() 45 *ct->mask_cache &= ~mask; in irq_gc_mask_disable_reg() 59 struct irq_chip_type *ct = irq_data_get_chip_type(d); in irq_gc_mask_set_bit() local 63 *ct->mask_cache |= mask; in irq_gc_mask_set_bit() 64 irq_reg_writel(gc, *ct->mask_cache, ct->regs.mask); in irq_gc_mask_set_bit() 78 struct irq_chip_type *ct = irq_data_get_chip_type(d); in irq_gc_mask_clr_bit() local 82 *ct->mask_cache &= ~mask; in irq_gc_mask_clr_bit() 83 irq_reg_writel(gc, *ct->mask_cache, ct->regs.mask); in irq_gc_mask_clr_bit() 97 struct irq_chip_type *ct = irq_data_get_chip_type(d); in irq_gc_unmask_enable_reg() local [all …]
|