Home
last modified time | relevance | path

Searched refs:tw (Results 1 – 25 of 67) 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()
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 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.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()
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.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.c19 static void ctx_flush_and_put(struct io_ring_ctx *ctx, io_tw_token_t tw) in ctx_flush_and_put() argument
216 /* tw run already pending, nothing else to do */ in io_req_normal_work_add()
289 io_tw_token_t tw, in __io_run_local_work_loop()
303 (struct io_tw_req){req}, tw); in __io_run_local_work_loop()
310 static int __io_run_local_work(struct io_ring_ctx *ctx, io_tw_token_t tw, in __io_run_local_work()
329 tw.cancel = io_should_terminate_tw(ctx); in __io_run_local_work()
331 ret = __io_run_local_work_loop(ctx, tw, max_events); in __io_run_local_work()
286 __io_run_local_work_loop(struct io_ring_ctx * ctx,io_tw_token_t tw,int events) __io_run_local_work_loop() argument
307 __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.c19 static void io_waitid_cb(struct io_tw_req tw_req, io_tw_token_t tw);
211 static void io_waitid_cb(struct io_tw_req tw_req, io_tw_token_t tw) in io_waitid_cb() argument
218 io_tw_lock(ctx, tw); in io_waitid_cb()
219 if (unlikely(tw.cancel)) { in io_waitid_cb()
221 io_req_task_complete(tw_req, tw); in io_waitid_cb()
252 io_req_task_complete(tw_req, tw); in io_waitid_cb()
H A Dpoll.c242 static int io_poll_check_events(struct io_kiocb *req, io_tw_token_t tw) in io_poll_check_events() argument
246 if (unlikely(tw.cancel)) in io_poll_check_events()
317 ret = io_poll_issue(req, tw); in io_poll_check_events()
339 void io_poll_task_func(struct io_tw_req tw_req, io_tw_token_t tw) in io_poll_task_func() argument
344 ret = io_poll_check_events(req, tw); in io_poll_task_func()
362 io_req_task_submit(tw_req, tw); in io_poll_task_func()
370 io_req_task_complete(tw_req, tw); in io_poll_task_func()
372 io_tw_lock(req->ctx, tw); in io_poll_task_func()
375 io_req_task_complete(tw_req, tw); in io_poll_task_func()
377 io_req_task_submit(tw_req, tw); in io_poll_task_func()
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
128 io_req_task_complete(tw_req, tw); in io_timeout_complete()
200 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
204 io_tw_lock(link->ctx, tw); in io_req_tw_fail_links()
213 io_req_task_complete((struct io_tw_req){link}, tw); in io_req_tw_fail_links()
366 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
382 if (!tw.cancel) { in io_req_task_link_timeout()
393 io_req_task_complete(tw_req, tw); in io_req_task_link_timeout()
397 io_req_task_complete(tw_req, tw); in io_req_task_link_timeout()
/linux/net/psp/
H A Dpsp_sock.c270 void psp_twsk_init(struct inet_timewait_sock *tw, const struct sock *sk) in psp_twsk_init() argument
276 rcu_assign_pointer(tw->psp_assoc, pas); in psp_twsk_init()
277 tw->tw_validate_xmit_skb = psp_validate_xmit; in psp_twsk_init()
280 void psp_twsk_assoc_free(struct inet_timewait_sock *tw) in psp_twsk_assoc_free() argument
282 struct psp_assoc *pas = rcu_dereference_protected(tw->psp_assoc, 1); in psp_twsk_assoc_free()
284 rcu_assign_pointer(tw->psp_assoc, NULL); in psp_twsk_assoc_free()
/linux/net/ipv6/
H A Dinet6_hashtables.c315 struct inet_timewait_sock *tw = NULL; in __inet6_check_established() local
343 tw = inet_twsk(sk2); in __inet6_check_established()
359 if (tw) { in __inet6_check_established()
360 sk_nulls_del_node_init_rcu((struct sock *)tw); in __inet6_check_established()
367 *twp = tw; in __inet6_check_established()
368 } else if (tw) { in __inet6_check_established()
370 inet_twsk_deschedule_put(tw); in __inet6_check_established()
H A Dtcp_ipv6.c1154 struct inet_timewait_sock *tw = inet_twsk(sk); local
1156 u8 tclass = tw->tw_tclass;
1201 tcptw->tw_rcv_wnd >> tw->tw_rcv_wscale,
1203 READ_ONCE(tcptw->tw_ts_recent), tw->tw_bound_dev_if,
1204 &key, tclass, cpu_to_be32(tw->tw_flowlabel),
1205 tw->tw_priority, tw->tw_txhash);
1210 inet_twsk_put(tw);
1974 struct inet_timewait_sock *tw = inet_twsk(sk); local
1975 inet_twsk_deschedule_put(tw);
2202 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/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/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()
1535 if (le32_to_cpu(tw->priv.size) == 0) { in sof_widget_ready()
1540 ret = sof_widget_parse_tokens(scomp, swidget, tw, token_list, token_list_size); in sof_widget_ready()
1543 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/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