Home
last modified time | relevance | path

Searched refs:tw (Results 1 – 25 of 69) 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) { in tw_interrupt()
69 if (tw->data[1] == tw->data[2]) { in tw_interrupt()
70 input_report_abs(dev, ABS_X, tw->data[0]); in tw_interrupt()
71 input_report_abs(dev, ABS_Y, tw->data[1]); in tw_interrupt()
75 tw->idx = 0; 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()
52 /* We are rate-limiting, so just release the tw sock and drop skb. */ 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 in tcp_timewait_state_process()
331 struct inet_timewait_sock *tw; tcp_time_wait() local
[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 in tcp_twsk_unique()
1018 struct inet_timewait_sock *tw = inet_twsk(sk); global() local
2834 get_timewait4_sock(const struct inet_timewait_sock * tw,struct seq_file * f,int i) global() argument
[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.c149 struct inet_timewait_sock *tw = &ttw->tw_sk; in dump_tw_sock()
154 delta = tw->tw_timer.expires - bpf_jiffies64(); in dump_tw_sock()
155 dest = tw->tw_daddr; in dump_tw_sock()
156 src = tw->tw_rcv_saddr; in dump_tw_sock()
157 destp = bpf_ntohs(tw->tw_dport); in dump_tw_sock()
158 srcp = bpf_ntohs(tw->tw_sport); in dump_tw_sock()
164 tw->tw_substate, 0, 0, in dump_tw_sock()
166 tw->tw_refcnt.refs.counter); in dump_tw_sock()
199 struct tcp_timewait_sock *tw; in dump_tcp4()
223 tw in dump_tcp4()
150 struct inet_timewait_sock *tw = &ttw->tw_sk; dump_tw_sock() local
200 struct tcp_timewait_sock *tw; dump_tcp4() local
[all...]
H A Dbpf_iter_tcp6.c154 struct inet_timewait_sock *tw = &ttw->tw_sk; in dump_tw_sock()
159 delta = tw->tw_timer.expires - bpf_jiffies64(); in dump_tw_sock()
160 dest = &tw->tw_v6_daddr; in dump_tw_sock()
161 src = &tw->tw_v6_rcv_saddr; in dump_tw_sock()
162 destp = bpf_ntohs(tw->tw_dport); in dump_tw_sock()
163 srcp = bpf_ntohs(tw->tw_sport); in dump_tw_sock()
173 tw->tw_substate, 0, 0, in dump_tw_sock()
175 tw->tw_refcnt.refs.counter); in dump_tw_sock()
215 struct tcp_timewait_sock *tw; in dump_tcp6()
239 tw in dump_tcp6()
155 struct inet_timewait_sock *tw = &ttw->tw_sk; dump_tw_sock() local
216 struct tcp_timewait_sock *tw; 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()
H A Dverifier_async_cb_context.c329 struct bpf_task_work tw; member
363 bpf_task_work_schedule_resume(task, &val->tw, &task_work_map, task_work_cb); in task_work_non_sleepable_prog()
383 bpf_task_work_schedule_resume(task, &val->tw, &task_work_map, task_work_cb); in task_work_sleepable_prog()
/linux/net/dccp/
H A Dminisocks.c
/linux/include/net/psp/
H A Dfunctions.h30 void psp_twsk_init(struct inet_timewait_sock *tw, const struct sock *sk); in psp_assoc_drv_data()
31 void psp_twsk_assoc_free(struct inet_timewait_sock *tw);
117 psp_twsk_rx_policy_check(struct inet_timewait_sock *tw, struct sk_buff *skb) in psp_sk_rx_policy_check()
119 return __psp_sk_rx_policy_check(skb, rcu_dereference(tw->psp_assoc)); in psp_sk_rx_policy_check()
155 psp_twsk_init(struct inet_timewait_sock *tw, const struct sock *sk) { } in psp_sk_overhead()
156 static inline void psp_twsk_assoc_free(struct inet_timewait_sock *tw) { } in psp_sk_overhead()
182 psp_twsk_rx_policy_check(struct inet_timewait_sock *tw, struct sk_buff *skb) in psp_sk_rx_policy_check()
122 psp_twsk_rx_policy_check(struct inet_timewait_sock * tw,struct sk_buff * skb) psp_twsk_rx_policy_check() argument
160 psp_twsk_init(struct inet_timewait_sock * tw,const struct sock * sk) psp_twsk_init() argument
161 psp_twsk_assoc_free(struct inet_timewait_sock * tw) psp_twsk_assoc_free() argument
187 psp_twsk_rx_policy_check(struct inet_timewait_sock * tw,struct sk_buff * skb) 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.c19 static void ctx_flush_and_put(struct io_ring_ctx *ctx, io_tw_token_t tw) in ctx_flush_and_put() argument
250 /* tw run already pending, nothing else to do */ in io_cancel_local_task_work()
324 io_tw_token_t tw, in __io_run_local_work()
338 (struct io_tw_req){req}, tw); in __io_run_local_work()
345 static int __io_run_local_work(struct io_ring_ctx *ctx, io_tw_token_t tw, in io_run_local_work_locked()
364 tw.cancel = io_should_terminate_tw(ctx);
366 ret = __io_run_local_work_loop(ctx, tw, max_events);
289 __io_run_local_work_loop(struct io_ring_ctx * ctx,io_tw_token_t tw,int events) __io_run_local_work_loop() argument
310 __io_run_local_work(struct io_ring_ctx * ctx,io_tw_token_t tw,int min_events,int max_events) __io_run_local_work() argument
H A Dwaitid.c20 static void io_waitid_cb(struct io_tw_req tw_req, io_tw_token_t tw);
208 * completing because of that, queue up the tw to do that. in io_waitid_drop_issue_ref()
215 static void io_waitid_cb(struct io_tw_req tw_req, io_tw_token_t tw) in io_waitid_cb()
222 io_tw_lock(ctx, tw); in io_waitid_cb()
223 if (unlikely(tw.cancel)) { in io_waitid_cb()
225 io_req_task_complete(tw_req, tw); in io_waitid_cb()
256 io_req_task_complete(tw_req, tw); in io_waitid_wait()
364 * completing because of that, queue up the tw to do that. in io_waitid()
211 io_waitid_cb(struct io_tw_req tw_req,io_tw_token_t tw) io_waitid_cb() argument
H A Dpoll.c245 * All poll tw should go through this. Checks for poll events, manages in io_poll_check_events()
254 static int io_poll_check_events(struct io_kiocb *req, io_tw_token_t tw) in io_poll_check_events()
259 if (unlikely(tw.cancel)) in io_poll_check_events()
267 /* tw should be the owner and so have some refs */ in io_poll_check_events()
337 ret = io_poll_issue(req, tw); in io_poll_check_events()
360 void io_poll_task_func(struct io_tw_req tw_req, io_tw_token_t tw) in io_poll_task_func()
365 ret = io_poll_check_events(req, tw); in io_poll_task_func()
383 io_req_task_submit(tw_req, tw); in io_poll_cancel_req()
391 io_req_task_complete(tw_req, tw);
393 io_tw_lock(req->ctx, tw); in io_pollfree_wake()
242 io_poll_check_events(struct io_kiocb * req,io_tw_token_t tw) io_poll_check_events() argument
339 io_poll_task_func(struct io_tw_req tw_req,io_tw_token_t tw) io_poll_task_func() argument
[all...]
H A Dmsg_ring.c23 struct callback_head tw; member
73 static void io_msg_tw_complete(struct io_tw_req tw_req, io_tw_token_t tw) in io_msg_tw_complete() argument
230 struct io_msg *msg = container_of(head, struct io_msg, tw); in io_msg_tw_fd_complete()
247 init_task_work(&msg->tw, io_msg_tw_fd_complete); in io_msg_fd_remote()
248 if (task_work_add(task, &msg->tw, TWA_SIGNAL)) in io_msg_fd_remote()
H A Dtimeout.c110 static void io_timeout_complete(struct io_tw_req tw_req, io_tw_token_t tw) in io_timeout_complete() argument
118 if (!tw.cancel && in io_timeout_complete()
129 io_req_task_complete(tw_req, tw); in io_timeout_complete()
209 static void io_req_tw_fail_links(struct io_tw_req tw_req, io_tw_token_t tw) in io_req_tw_fail_links()
213 io_tw_lock(link->ctx, tw); in io_req_tw_fail_links()
222 io_req_task_complete((struct io_tw_req){link}, tw); in io_fail_links()
385 static void io_req_task_link_timeout(struct io_tw_req tw_req, io_tw_token_t tw) in io_req_task_link_timeout()
404 if (!tw.cancel) { in io_link_timeout_fn()
418 io_req_task_complete(tw_req, tw); in io_link_timeout_fn()
422 io_req_task_complete(tw_req, tw); in io_link_timeout_fn()
200 io_req_tw_fail_links(struct io_tw_req tw_req,io_tw_token_t tw) io_req_tw_fail_links() argument
366 io_req_task_link_timeout(struct io_tw_req tw_req,io_tw_token_t tw) io_req_task_link_timeout() argument
[all...]
/linux/net/psp/
H A Dpsp_sock.c313 void psp_twsk_init(struct inet_timewait_sock *tw, const struct sock *sk)
319 rcu_assign_pointer(tw->psp_assoc, pas);
320 tw->tw_validate_xmit_skb = psp_validate_xmit;
323 void psp_twsk_assoc_free(struct inet_timewait_sock *tw)
325 struct psp_assoc *pas = rcu_dereference_protected(tw->psp_assoc, 1);
327 rcu_assign_pointer(tw->psp_assoc, NULL);
270 psp_twsk_init(struct inet_timewait_sock * tw,const struct sock * sk) psp_twsk_init() argument
280 psp_twsk_assoc_free(struct inet_timewait_sock * tw) psp_twsk_assoc_free() argument
/linux/net/ipv6/
H A Dinet6_hashtables.c317 struct inet_timewait_sock *tw = NULL; in __inet6_check_established()
345 tw = inet_twsk(sk2); in __inet6_check_established()
361 if (tw) { in __inet6_check_established()
362 sk_nulls_del_node_init_rcu((struct sock *)tw); in __inet6_check_established()
369 *twp = tw; in __inet6_check_established()
370 } else if (tw) { in __inet6_check_established()
372 inet_twsk_deschedule_put(tw); in __inet6_check_established()
315 struct inet_timewait_sock *tw = NULL; __inet6_check_established() local
H A Dtcp_ipv6.c1158 struct inet_timewait_sock *tw = inet_twsk(sk);
1160 u8 tclass = tw->tw_tclass;
1205 tcptw->tw_rcv_wnd >> tw->tw_rcv_wscale,
1207 READ_ONCE(tcptw->tw_ts_recent), tw->tw_bound_dev_if,
1208 &key, tclass, cpu_to_be32(tw->tw_flowlabel),
1209 tw->tw_priority, tw->tw_txhash);
1214 inet_twsk_put(tw);
1978 struct inet_timewait_sock *tw = inet_twsk(sk);
1979 inet_twsk_deschedule_put(tw);
1154 struct inet_timewait_sock *tw = inet_twsk(sk); global() local
1974 struct inet_timewait_sock *tw = inet_twsk(sk); global() local
2202 get_timewait6_sock(struct seq_file * seq,struct inet_timewait_sock * tw,int i) global() 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.c1088 struct snd_soc_tplg_dapm_widget *tw, in sof_connect_dai_widget()
1229 struct snd_soc_tplg_dapm_widget *tw, in sof_widget_parse_tokens()
1234 struct snd_soc_tplg_private *private = &tw->priv; in sof_widget_parse_tokens()
1429 struct snd_soc_tplg_dapm_widget *tw) in sof_widget_ready()
1434 struct snd_soc_tplg_private *priv = &tw->priv; in sof_widget_ready()
1523 ret = sof_widget_parse_tokens(scomp, swidget, tw, token_list, token_list_size); in sof_widget_ready()
1525 ret = sof_connect_dai_widget(scomp, w, tw, dai); in sof_widget_ready()
1537 if (le32_to_cpu(tw->priv.size) == 0) { in sof_widget_ready()
1542 ret = sof_widget_parse_tokens(scomp, swidget, tw, token_list, token_list_size); in sof_widget_ready()
1545 if (!le32_to_cpu(tw in sof_widget_ready()
1072 sof_connect_dai_widget(struct snd_soc_component * scomp,struct snd_soc_dapm_widget * w,struct snd_soc_tplg_dapm_widget * tw,struct snd_sof_dai * dai) sof_connect_dai_widget() argument
1213 sof_widget_parse_tokens(struct snd_soc_component * scomp,struct snd_sof_widget * swidget,struct snd_soc_tplg_dapm_widget * tw,enum sof_tokens * object_token_list,int count) sof_widget_parse_tokens() argument
1413 sof_widget_ready(struct snd_soc_component * scomp,int index,struct snd_soc_dapm_widget * w,struct snd_soc_tplg_dapm_widget * tw) sof_widget_ready() argument
2371 sof_dspless_widget_ready(struct snd_soc_component * scomp,int index,struct snd_soc_dapm_widget * w,struct snd_soc_tplg_dapm_widget * tw) sof_dspless_widget_ready() argument
[all...]
/linux/drivers/net/phy/qcom/
H A Dat803x.c288 u32 freq, strength, tw; in at803x_parse_dt() local
301 if (!of_property_read_u32(node, "qca,smarteee-tw-us-1g", &tw)) { in at803x_parse_dt()
302 if (!tw || tw > 255) { in at803x_parse_dt()
303 phydev_err(phydev, "invalid qca,smarteee-tw-us-1g\n"); in at803x_parse_dt()
306 priv->smarteee_lpi_tw_1g = tw; in at803x_parse_dt()
309 if (!of_property_read_u32(node, "qca,smarteee-tw-us-100m", &tw)) { in at803x_parse_dt()
310 if (!tw || t in at803x_parse_dt()
[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