Home
last modified time | relevance | path

Searched refs:tw (Results 1 – 25 of 61) sorted by relevance

123

/linux/drivers/input/touchscreen/
H A Dtouchwin.c48 struct tw { struct
60 struct tw *tw = serio_get_drvdata(serio); in tw_interrupt() argument
61 struct input_dev *dev = tw->dev; in tw_interrupt()
64 tw->touched = 1; in tw_interrupt()
65 tw->data[tw->idx++] = data; in tw_interrupt()
67 if (tw->idx == TW_LENGTH && tw->data[1] == tw->data[2]) { in tw_interrupt()
68 input_report_abs(dev, ABS_X, tw->data[0]); in tw_interrupt()
69 input_report_abs(dev, ABS_Y, tw->data[1]); in tw_interrupt()
72 tw->idx = 0; in tw_interrupt()
74 } else if (tw->touched) { /* untouch */ in tw_interrupt()
[all …]
/linux/net/ipv4/
H A Dtcp_minisocks.c39 tcp_timewait_check_oow_rate_limit(struct inet_timewait_sock *tw, in tcp_timewait_check_oow_rate_limit() argument
42 struct tcp_timewait_sock *tcptw = tcp_twsk((struct sock *)tw); in tcp_timewait_check_oow_rate_limit()
44 if (!tcp_oow_rate_limited(twsk_net(tw), skb, mib_idx, in tcp_timewait_check_oow_rate_limit()
53 inet_twsk_put(tw); in tcp_timewait_check_oow_rate_limit()
101 tcp_timewait_state_process(struct inet_timewait_sock *tw, struct sk_buff *skb, in tcp_timewait_state_process() argument
105 struct tcp_timewait_sock *tcptw = tcp_twsk((struct sock *)tw); in tcp_timewait_state_process()
116 psp_drop = psp_twsk_rx_policy_check(tw, skb); in tcp_timewait_state_process()
121 tcp_parse_options(twsk_net(tw), skb, &tmp_opt, 0, NULL); in tcp_timewait_state_process()
132 if (READ_ONCE(tw->tw_substate) == TCP_FIN_WAIT2) { in tcp_timewait_state_process()
144 tw, skb, LINUX_MIB_TCPACKSKIPPEDFINWAIT2); in tcp_timewait_state_process()
[all …]
H A Dinet_hashtables.c591 struct inet_timewait_sock *tw = NULL; in __inet_check_established() local
617 tw = inet_twsk(sk2); in __inet_check_established()
633 if (tw) { in __inet_check_established()
634 sk_nulls_del_node_init_rcu((struct sock *)tw); in __inet_check_established()
641 *twp = tw; in __inet_check_established()
642 } else if (tw) { in __inet_check_established()
644 inet_twsk_deschedule_put(tw); in __inet_check_established()
1044 struct inet_timewait_sock *tw = NULL; in __inet_hash_connect() local
1103 if (!check_established(death_row, sk, port, &tw, true, in __inet_hash_connect()
1123 port, &tw, false, in __inet_hash_connect()
[all …]
H A Dtcp_ipv4.c121 const struct inet_timewait_sock *tw = inet_twsk(sktw); in tcp_twsk_unique() local
127 if (READ_ONCE(tw->tw_substate) == TCP_FIN_WAIT2) in tcp_twsk_unique()
136 if (tw->tw_bound_dev_if == LOOPBACK_IFINDEX) in tcp_twsk_unique()
139 if (tw->tw_family == AF_INET6) { in tcp_twsk_unique()
140 if (ipv6_addr_loopback(&tw->tw_v6_daddr) || in tcp_twsk_unique()
141 ipv6_addr_v4mapped_loopback(&tw->tw_v6_daddr) || in tcp_twsk_unique()
142 ipv6_addr_loopback(&tw->tw_v6_rcv_saddr) || in tcp_twsk_unique()
143 ipv6_addr_v4mapped_loopback(&tw->tw_v6_rcv_saddr)) in tcp_twsk_unique()
148 if (ipv4_is_loopback(tw->tw_daddr) || in tcp_twsk_unique()
149 ipv4_is_loopback(tw->tw_rcv_saddr)) in tcp_twsk_unique()
[all …]
H A Dtcp_diag.c197 struct inet_timewait_sock *tw = inet_twsk(sk); in tcp_twsk_diag_fill() local
209 DEBUG_NET_WARN_ON_ONCE(tw->tw_state != TCP_TIME_WAIT); in tcp_twsk_diag_fill()
214 r->idiag_state = READ_ONCE(tw->tw_substate); in tcp_twsk_diag_fill()
216 tmo = tw->tw_timer.expires - jiffies; in tcp_twsk_diag_fill()
224 tw->tw_mark)) { in tcp_twsk_diag_fill()
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_tcp4.c150 struct inet_timewait_sock *tw = &ttw->tw_sk; in dump_tw_sock() local
155 delta = tw->tw_timer.expires - bpf_jiffies64(); in dump_tw_sock()
156 dest = tw->tw_daddr; in dump_tw_sock()
157 src = tw->tw_rcv_saddr; in dump_tw_sock()
158 destp = bpf_ntohs(tw->tw_dport); in dump_tw_sock()
159 srcp = bpf_ntohs(tw->tw_sport); in dump_tw_sock()
165 tw->tw_substate, 0, 0, in dump_tw_sock()
167 tw->tw_refcnt.refs.counter, tw); in dump_tw_sock()
200 struct tcp_timewait_sock *tw; in dump_tcp4() local
[all...]
H A Dbpf_iter_tcp6.c155 struct inet_timewait_sock *tw = &ttw->tw_sk; in dump_tw_sock() local
160 delta = tw->tw_timer.expires - bpf_jiffies64(); in dump_tw_sock()
161 dest = &tw->tw_v6_daddr; in dump_tw_sock()
162 src = &tw->tw_v6_rcv_saddr; in dump_tw_sock()
163 destp = bpf_ntohs(tw->tw_dport); in dump_tw_sock()
164 srcp = bpf_ntohs(tw->tw_sport); in dump_tw_sock()
174 tw->tw_substate, 0, 0, in dump_tw_sock()
176 tw->tw_refcnt.refs.counter, tw); in dump_tw_sock()
216 struct tcp_timewait_sock *tw; in dump_tcp6() local
[all...]
H A Dtask_work_fail.c17 struct bpf_task_work tw; member
56 bpf_task_work_schedule_resume(task, &work->tw, &hmap, process_work); in mismatch_map()
65 struct bpf_task_work tw; in no_map_task_work() local
68 bpf_task_work_schedule_resume(task, &tw, &hmap, process_work); in no_map_task_work()
94 bpf_task_work_schedule_resume(task, &work->tw, NULL, process_work); in map_null()
H A Dtask_work.c18 struct bpf_task_work tw; member
68 bpf_task_work_schedule_resume(task, &work->tw, &hmap, process_work); in oncpu_hash_map()
82 bpf_task_work_schedule_signal(task, &work->tw, &arrmap, process_work); in oncpu_array_map()
104 bpf_task_work_schedule_resume(task, &work->tw, &lrumap, process_work); in oncpu_lru_map()
H A Dtask_work_stress.c22 struct bpf_task_work tw; member
54 err = bpf_task_work_schedule_signal(bpf_get_current_task_btf(), &work->tw, &hmap, in schedule_task_work()
/linux/net/dccp/
H A Dminisocks.c
/linux/include/net/psp/
H A Dfunctions.h35 void psp_twsk_init(struct inet_timewait_sock *tw, const struct sock *sk);
36 void psp_twsk_assoc_free(struct inet_timewait_sock *tw);
122 psp_twsk_rx_policy_check(struct inet_timewait_sock *tw, struct sk_buff *skb) in psp_twsk_rx_policy_check() argument
124 return __psp_sk_rx_policy_check(skb, rcu_dereference(tw->psp_assoc)); in psp_twsk_rx_policy_check()
160 psp_twsk_init(struct inet_timewait_sock *tw, const struct sock *sk) { } in psp_twsk_init() argument
161 static inline void psp_twsk_assoc_free(struct inet_timewait_sock *tw) { } in psp_twsk_assoc_free() argument
187 psp_twsk_rx_policy_check(struct inet_timewait_sock *tw, struct sk_buff *skb) in psp_twsk_rx_policy_check() argument
/linux/io_uring/
H A Dfutex.c48 static void __io_futex_complete(struct io_tw_req tw_req, io_tw_token_t tw) in __io_futex_complete() argument
51 io_req_task_complete(tw_req, tw); in __io_futex_complete()
54 static void io_futex_complete(struct io_tw_req tw_req, io_tw_token_t tw) in io_futex_complete() argument
59 io_tw_lock(ctx, tw); in io_futex_complete()
62 __io_futex_complete(tw_req, tw); in io_futex_complete()
65 static void io_futexv_complete(struct io_tw_req tw_req, io_tw_token_t tw) in io_futexv_complete() argument
71 io_tw_lock(req->ctx, tw); in io_futexv_complete()
82 __io_futex_complete(tw_req, tw); in io_futexv_complete()
H A Dtw.c36 static void ctx_flush_and_put(struct io_ring_ctx *ctx, io_tw_token_t tw) in ctx_flush_and_put() argument
296 io_tw_token_t tw, in __io_run_local_work_loop() argument
307 (struct io_tw_req){req}, tw); in __io_run_local_work_loop()
316 static int __io_run_local_work(struct io_ring_ctx *ctx, io_tw_token_t tw, in __io_run_local_work() argument
328 tw.cancel = io_should_terminate_tw(ctx); in __io_run_local_work()
330 ret = __io_run_local_work_loop(&ctx->retry_llist.first, tw, max_events); in __io_run_local_work()
339 ret += __io_run_local_work_loop(&node, tw, max_events - ret); in __io_run_local_work()
H A Dpoll.c241 static int io_poll_check_events(struct io_kiocb *req, io_tw_token_t tw) in io_poll_check_events() argument
245 if (unlikely(tw.cancel)) in io_poll_check_events()
314 ret = io_poll_issue(req, tw); in io_poll_check_events()
336 void io_poll_task_func(struct io_tw_req tw_req, io_tw_token_t tw) in io_poll_task_func() argument
341 ret = io_poll_check_events(req, tw); in io_poll_task_func()
359 io_req_task_submit(tw_req, tw); in io_poll_task_func()
367 io_req_task_complete(tw_req, tw); in io_poll_task_func()
369 io_tw_lock(req->ctx, tw); in io_poll_task_func()
372 io_req_task_complete(tw_req, tw); in io_poll_task_func()
374 io_req_task_submit(tw_req, tw); in io_poll_task_func()
H A Dtimeout.c71 static void io_timeout_complete(struct io_tw_req tw_req, io_tw_token_t tw) in io_timeout_complete() argument
89 io_req_task_complete(tw_req, tw); in io_timeout_complete()
161 static void io_req_tw_fail_links(struct io_tw_req tw_req, io_tw_token_t tw) in io_req_tw_fail_links() argument
165 io_tw_lock(link->ctx, tw); in io_req_tw_fail_links()
174 io_req_task_complete((struct io_tw_req){link}, tw); in io_req_tw_fail_links()
323 static void io_req_task_link_timeout(struct io_tw_req tw_req, io_tw_token_t tw) in io_req_task_link_timeout() argument
331 if (!tw.cancel) { in io_req_task_link_timeout()
342 io_req_task_complete(tw_req, tw); in io_req_task_link_timeout()
346 io_req_task_complete(tw_req, tw); in io_req_task_link_timeout()
H A Dwaitid.c19 static void io_waitid_cb(struct io_tw_req tw_req, io_tw_token_t tw);
197 static void io_waitid_cb(struct io_tw_req tw_req, io_tw_token_t tw) in io_waitid_cb() argument
204 io_tw_lock(ctx, tw); in io_waitid_cb()
233 io_req_task_complete(tw_req, tw); in io_waitid_cb()
H A Dpoll.h49 void io_poll_task_func(struct io_tw_req tw_req, io_tw_token_t tw);
H A Drw.h49 void io_req_rw_complete(struct io_tw_req tw_req, io_tw_token_t tw);
/linux/net/psp/
H A Dpsp_sock.c266 void psp_twsk_init(struct inet_timewait_sock *tw, const struct sock *sk) in psp_twsk_init() argument
272 rcu_assign_pointer(tw->psp_assoc, pas); in psp_twsk_init()
273 tw->tw_validate_xmit_skb = psp_validate_xmit; in psp_twsk_init()
276 void psp_twsk_assoc_free(struct inet_timewait_sock *tw) in psp_twsk_assoc_free() argument
278 struct psp_assoc *pas = rcu_dereference_protected(tw->psp_assoc, 1); in psp_twsk_assoc_free()
280 rcu_assign_pointer(tw->psp_assoc, NULL); in psp_twsk_assoc_free()
/linux/net/ipv6/
H A Dinet6_hashtables.c280 struct inet_timewait_sock *tw = NULL; in __inet6_check_established() local
308 tw = inet_twsk(sk2); in __inet6_check_established()
324 if (tw) { in __inet6_check_established()
325 sk_nulls_del_node_init_rcu((struct sock *)tw); in __inet6_check_established()
332 *twp = tw; in __inet6_check_established()
333 } else if (tw) { in __inet6_check_established()
335 inet_twsk_deschedule_put(tw); in __inet6_check_established()
H A Dtcp_ipv6.c1120 struct inet_timewait_sock *tw = inet_twsk(sk); local
1122 u8 tclass = tw->tw_tclass;
1167 tcptw->tw_rcv_wnd >> tw->tw_rcv_wscale,
1169 READ_ONCE(tcptw->tw_ts_recent), tw->tw_bound_dev_if,
1170 &key, tclass, cpu_to_be32(tw->tw_flowlabel),
1171 tw->tw_priority, tw->tw_txhash);
1176 inet_twsk_put(tw);
1931 struct inet_timewait_sock *tw = inet_twsk(sk); local
1932 inet_twsk_deschedule_put(tw);
2203 struct inet_timewait_sock *tw, int i) argument
[all …]
/linux/Documentation/i2c/busses/
H A Di2c-viapro.rst22 Datasheet: available on http://linux.via.com.tw
25 Datasheet: available on http://linux.via.com.tw
28 Datasheet: available on http://linux.via.com.tw
/linux/sound/soc/sof/
H A Dtopology.c1070 struct snd_soc_tplg_dapm_widget *tw, in sof_connect_dai_widget() argument
1211 struct snd_soc_tplg_dapm_widget *tw, in sof_widget_parse_tokens() argument
1216 struct snd_soc_tplg_private *private = &tw->priv; in sof_widget_parse_tokens()
1411 struct snd_soc_tplg_dapm_widget *tw) in sof_widget_ready() argument
1416 struct snd_soc_tplg_private *priv = &tw->priv; in sof_widget_ready()
1505 ret = sof_widget_parse_tokens(scomp, swidget, tw, token_list, token_list_size); in sof_widget_ready()
1507 ret = sof_connect_dai_widget(scomp, w, tw, dai); in sof_widget_ready()
1517 if (le32_to_cpu(tw->priv.size) == 0) { in sof_widget_ready()
1522 ret = sof_widget_parse_tokens(scomp, swidget, tw, token_list, token_list_size); in sof_widget_ready()
1525 if (!le32_to_cpu(tw->num_kcontrols)) { in sof_widget_ready()
[all …]
/linux/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_core.c225 const int ls, const int tw) in sxgbe_set_eee_timer() argument
227 int value = ((tw & 0xffff)) | ((ls & 0x7ff) << 16); in sxgbe_set_eee_timer()

123