Home
last modified time | relevance | path

Searched refs:tp (Results 101 – 125 of 597) sorted by relevance

12345678910>>...24

/openbmc/linux/net/sctp/
H A Doutput.c89 packet->max_size = tp->pathmtu; in sctp_packet_config()
128 if (!tp->dst) in sctp_packet_config()
134 dst_hold(tp->dst); in sctp_packet_config()
135 sk_setup_caps(sk, tp->dst); in sctp_packet_config()
466 tp->pathmtu) in sctp_packet_pack()
486 !tp->rto_pending) { in sctp_packet_pack()
488 tp->rto_pending = 1; in sctp_packet_pack()
548 dst_xfrm(tp->dst) || packet->ipfragok || tp->encap_port) { in sctp_packet_pack()
614 if (!tp->dst) { in sctp_packet_transmit()
648 if (tp->dst_pending_confirm) in sctp_packet_transmit()
[all …]
H A Dtransport.c494 if (tp->rttvar || tp->srtt) { in sctp_transport_update_rto()
507 tp->rttvar = tp->rttvar - (tp->rttvar >> net->sctp.rto_beta) in sctp_transport_update_rto()
509 tp->srtt = tp->srtt - (tp->srtt >> net->sctp.rto_alpha) in sctp_transport_update_rto()
526 tp->rto = tp->srtt + (tp->rttvar << 2); in sctp_transport_update_rto()
531 if (tp->rto < tp->asoc->rto_min) in sctp_transport_update_rto()
532 tp->rto = tp->asoc->rto_min; in sctp_transport_update_rto()
537 if (tp->rto > tp->asoc->rto_max) in sctp_transport_update_rto()
538 tp->rto = tp->asoc->rto_max; in sctp_transport_update_rto()
540 sctp_max_rto(tp->asoc, tp); in sctp_transport_update_rto()
541 tp->rtt = rtt; in sctp_transport_update_rto()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_setsockopt.c11 tp = NULL; \
13 tp = bpf_skc_to_tcp_sock(_skc); \
14 sk = (struct sock *)tp; \
16 tp; \
43 struct tcp_sock *tp; in change_tcp_cc() local
57 if (bpf_getsockopt(tp, SOL_TCP, TCP_CONGESTION, in change_tcp_cc()
67 bpf_setsockopt(tp, SOL_TCP, TCP_CONGESTION, dctcp_cc, sizeof(dctcp_cc)); in change_tcp_cc()
H A Dbpf_iter_tcp4.c74 static int dump_tcp_sock(struct seq_file *seq, struct tcp_sock *tp, in dump_tcp_sock() argument
88 icsk = &tp->inet_conn; in dump_tcp_sock()
118 rx_queue = tp->rcv_nxt - tp->copied_seq; in dump_tcp_sock()
127 tp->write_seq - tp->snd_una, rx_queue, in dump_tcp_sock()
135 tp, in dump_tcp_sock()
139 tp->snd_cwnd, in dump_tcp_sock()
141 : (tcp_in_initial_slowstart(tp) ? -1 : tp->snd_ssthresh) in dump_tcp_sock()
202 struct tcp_sock *tp; in dump_tcp4() local
220 tp = bpf_skc_to_tcp_sock(sk_common); in dump_tcp4()
221 if (tp) in dump_tcp4()
[all …]
H A Dtest_btf_skc_cls_ingress.c28 struct tcp_sock *tp, in test_syncookie_helper() argument
47 mss_cookie = bpf_tcp_gen_syncookie(tp, ip6h, sizeof(*ip6h), in test_syncookie_helper()
57 int ret = bpf_tcp_check_syncookie(tp, ip6h, sizeof(*ip6h), in test_syncookie_helper()
120 struct tcp_sock *tp; in handle_ip6_tcp() local
122 tp = bpf_skc_to_tcp_sock(bpf_skc); in handle_ip6_tcp()
123 if (!tp) { in handle_ip6_tcp()
128 if (bpf_sk_assign(skb, tp, 0)) { in handle_ip6_tcp()
133 listen_tp_sport = tp->inet_conn.icsk_inet.sk.__sk_common.skc_num; in handle_ip6_tcp()
135 test_syncookie_helper(ip6h, th, tp, skb); in handle_ip6_tcp()
136 bpf_sk_release(tp); in handle_ip6_tcp()
H A Dvrf_socket_lookup.c21 struct bpf_sock_tuple *tp; in socket_lookup() local
36 tp = (struct bpf_sock_tuple *)&iph->saddr; in socket_lookup()
37 tplen = sizeof(tp->ipv4); in socket_lookup()
38 if ((void *)tp + tplen > data_end) in socket_lookup()
44 sk = bpf_skc_lookup_tcp(ctx, tp, tplen, CUR_NS, 0); in socket_lookup()
46 sk = bpf_sk_lookup_tcp(ctx, tp, tplen, CUR_NS, 0); in socket_lookup()
49 sk = bpf_sk_lookup_udp(ctx, tp, tplen, CUR_NS, 0); in socket_lookup()
H A Dbpf_iter_tcp6.c88 icsk = &tp->tcp.inet_conn; in dump_tcp6_sock()
118 rx_queue = tp->tcp.rcv_nxt - tp->tcp.copied_seq; in dump_tcp6_sock()
131 tp->tcp.write_seq - tp->tcp.snd_una, rx_queue, in dump_tcp6_sock()
139 tp, in dump_tcp6_sock()
143 tp->tcp.snd_cwnd, in dump_tcp6_sock()
145 : (tcp_in_initial_slowstart(&tp->tcp) ? -1 in dump_tcp6_sock()
146 : tp->tcp.snd_ssthresh) in dump_tcp6_sock()
218 struct tcp6_sock *tp; in dump_tcp6() local
236 tp = bpf_skc_to_tcp6_sock(sk_common); in dump_tcp6()
237 if (tp) in dump_tcp6()
[all …]
H A Dbpf_cubic.c163 struct tcp_sock *tp = tcp_sk(sk); in bictcp_hystart_reset() local
167 ca->end_seq = tp->snd_nxt; in bictcp_hystart_reset()
383 struct tcp_sock *tp = tcp_sk(sk); in BPF_STRUCT_OPS() local
389 if (tcp_in_slow_start(tp)) { in BPF_STRUCT_OPS()
392 acked = tcp_slow_start(tp, acked); in BPF_STRUCT_OPS()
396 bictcp_update(ca, tp->snd_cwnd, acked); in BPF_STRUCT_OPS()
397 tcp_cong_avoid_ai(tp, ca->cnt, acked); in BPF_STRUCT_OPS()
412 ca->last_max_cwnd = tp->snd_cwnd; in BPF_STRUCT_OPS()
449 struct tcp_sock *tp = tcp_sk(sk); in hystart_update() local
472 tp->snd_ssthresh = tp->snd_cwnd; in hystart_update()
[all …]
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_alloc.h35 struct xfs_trans *tp; /* transaction pointer */ member
78 int xfs_alloc_get_freelist(struct xfs_perag *pag, struct xfs_trans *tp,
80 int xfs_alloc_put_freelist(struct xfs_perag *pag, struct xfs_trans *tp,
96 struct xfs_trans *tp, /* transaction pointer */
144 struct xfs_trans *tp, /* transaction pointer */
154 struct xfs_trans *tp, in xfs_free_extent() argument
161 return __xfs_free_extent(tp, pag, agbno, len, oinfo, type, false); in xfs_free_extent()
195 int xfs_alloc_read_agfl(struct xfs_perag *pag, struct xfs_trans *tp,
234 int __xfs_free_extent_later(struct xfs_trans *tp, xfs_fsblock_t bno,
261 struct xfs_trans *tp, in xfs_free_extent_later() argument
[all …]
/openbmc/linux/drivers/scsi/
H A Desp_scsi.c763 tp = &esp->target[tgt]; in esp_maybe_execute_command()
791 if (spi_width(tp->starget) == tp->nego_goal_width && in esp_maybe_execute_command()
792 spi_period(tp->starget) == tp->nego_goal_period && in esp_maybe_execute_command()
793 spi_offset(tp->starget) == tp->nego_goal_offset) { in esp_maybe_execute_command()
1416 spi_width(tp->starget) = (tp->flags & ESP_TGT_WIDE) ? 1 : 0; in esp_setsync()
1478 tp->esp_period = 0; in esp_msgin_reject()
1479 tp->esp_offset = 0; in esp_msgin_reject()
2078 tp->esp_period = 0; in esp_reset_cleanup()
2079 tp->esp_offset = 0; in esp_reset_cleanup()
2086 if (tp->starget) in esp_reset_cleanup()
[all …]
/openbmc/linux/fs/xfs/
H A Dxfs_rmap_item.c230 struct xfs_trans *tp, in xfs_trans_get_rud() argument
295 struct xfs_trans *tp, in xfs_trans_log_finish_rmap_update() argument
336 struct xfs_trans *tp, in xfs_rmap_update_log_item() argument
343 tp->t_flags |= XFS_TRANS_DIRTY; in xfs_rmap_update_log_item()
364 struct xfs_trans *tp, in xfs_rmap_update_create_intent() argument
386 struct xfs_trans *tp, in xfs_rmap_update_create_done() argument
416 struct xfs_trans *tp, in xfs_rmap_update_finish_item() argument
514 struct xfs_trans *tp; in xfs_rui_item_recover() local
537 XFS_TRANS_RESERVE, &tp); in xfs_rui_item_recover()
608 xfs_trans_cancel(tp); in xfs_rui_item_recover()
[all …]
H A Dxfs_extfree_item.c313 struct xfs_trans *tp, in xfs_trans_get_efd() argument
374 struct xfs_trans *tp, in xfs_trans_free_extent() argument
449 struct xfs_trans *tp, in xfs_extent_free_log_item() argument
456 tp->t_flags |= XFS_TRANS_DIRTY; in xfs_extent_free_log_item()
473 struct xfs_trans *tp, in xfs_extent_free_create_intent() argument
495 struct xfs_trans *tp, in xfs_extent_free_create_done() argument
525 struct xfs_trans *tp, in xfs_extent_free_finish_item() argument
585 struct xfs_trans *tp, in xfs_agfl_free_finish_item() argument
668 struct xfs_trans *tp; in xfs_efi_item_recover() local
741 xfs_trans_cancel(tp); in xfs_efi_item_recover()
[all …]
H A Dxfs_iwalk.c54 struct xfs_trans *tp; member
185 struct xfs_trans *tp = iwag->tp; in xfs_iwalk_ag_recs() local
232 struct xfs_trans *tp, in xfs_iwalk_del_inobt() argument
271 struct xfs_trans *tp = iwag->tp; in xfs_iwalk_ag_start() local
372 xfs_trans_cancel(iwag->tp); in xfs_iwalk_run_callbacks()
373 iwag->tp = NULL; in xfs_iwalk_run_callbacks()
552 struct xfs_trans *tp, in xfs_iwalk() argument
561 .tp = tp, in xfs_iwalk()
625 if (iwag->tp) in xfs_iwalk_ag_work()
738 struct xfs_trans *tp, in xfs_inobt_walk() argument
[all …]
H A Dxfs_fsmap.c202 struct xfs_trans *tp, in xfs_getfsmap_is_shared() argument
269 struct xfs_trans *tp, in xfs_getfsmap_helper() argument
433 struct xfs_trans *tp, in xfs_getfsmap_logdev() argument
477 struct xfs_trans *tp, in xfs_getfsmap_rtdev_rtbitmap_helper() argument
504 struct xfs_trans *tp, in xfs_getfsmap_rtdev_rtbitmap() argument
584 struct xfs_trans *tp, in __xfs_getfsmap_datadev() argument
726 struct xfs_trans *tp, in xfs_getfsmap_datadev_rmapbt_query() argument
736 *curpp = xfs_rmapbt_init_cursor(tp->t_mountp, tp, info->agf_bp, in xfs_getfsmap_datadev_rmapbt_query()
769 *curpp = xfs_allocbt_init_cursor(tp->t_mountp, tp, info->agf_bp, in xfs_getfsmap_datadev_bnobt_query()
995 tp = NULL; in xfs_getfsmap()
[all …]
H A Dxfs_attr_item.c364 struct xfs_trans *tp, in xfs_attr_log_item() argument
370 tp->t_flags |= XFS_TRANS_DIRTY; in xfs_attr_log_item()
391 struct xfs_trans *tp, in xfs_attr_create_intent() argument
451 struct xfs_trans *tp, in xfs_attr_finish_item() argument
557 struct xfs_trans *tp; in xfs_attri_item_recover() local
633 args->trans = tp; in xfs_attri_item_recover()
638 xfs_trans_ijoin(tp, ip, 0); in xfs_attri_item_recover()
656 xfs_trans_cancel(tp); in xfs_attri_item_recover()
673 struct xfs_trans *tp) in xfs_attri_item_relog() argument
792 ASSERT(tp != NULL); in xfs_trans_get_attrd()
[all …]
H A Dxfs_fsops.c39 struct xfs_trans *tp, in xfs_resizefs_init_new_ags() argument
98 struct xfs_trans *tp; in xfs_growfs_data_private() local
155 &tp); in xfs_growfs_data_private()
158 0, &tp); in xfs_growfs_data_private()
194 xfs_log_sb(tp); in xfs_growfs_data_private()
196 xfs_trans_set_sync(tp); in xfs_growfs_data_private()
197 error = xfs_trans_commit(tp); in xfs_growfs_data_private()
233 xfs_trans_cancel(tp); in xfs_growfs_data_private()
267 struct xfs_trans *tp; in xfs_growfs_imaxpct() local
281 xfs_trans_set_sync(tp); in xfs_growfs_imaxpct()
[all …]
/openbmc/linux/drivers/net/ethernet/chelsio/inline_crypto/chtls/
H A Dchtls_io.c172 tp = tcp_sk(sk); in send_tx_flowc_wr()
717 tp->snd_up = tp->write_seq; in mark_urg()
1271 tp->rcv_wup -= wnd - tp->rcv_wnd; in chtls_select_window()
1327 credits = tp->copied_seq - tp->rcv_wup; in chtls_cleanup_rbuf()
1369 tp->urg_seq == tp->copied_seq)) { in chtls_pt_recvmsg()
1460 u32 urg_offset = tp->urg_seq - tp->copied_seq; in chtls_pt_recvmsg()
1504 if (tp->urg_data && after(tp->copied_seq, tp->urg_seq)) in chtls_pt_recvmsg()
1554 if (unlikely(tp->urg_data && tp->urg_seq == peek_seq)) { in peekmsg()
1706 if (unlikely(tp->urg_data && tp->urg_seq == tp->copied_seq)) { in chtls_recvmsg()
1794 u32 urg_offset = tp->urg_seq - tp->copied_seq; in chtls_recvmsg()
[all …]
/openbmc/linux/net/ipv4/
H A Dtcp_bic.c142 struct tcp_sock *tp = tcp_sk(sk); in bictcp_cong_avoid() local
148 if (tcp_in_slow_start(tp)) { in bictcp_cong_avoid()
149 acked = tcp_slow_start(tp, acked); in bictcp_cong_avoid()
153 bictcp_update(ca, tcp_snd_cwnd(tp)); in bictcp_cong_avoid()
154 tcp_cong_avoid_ai(tp, ca->cnt, acked); in bictcp_cong_avoid()
163 const struct tcp_sock *tp = tcp_sk(sk); in bictcp_recalc_ssthresh() local
169 if (tcp_snd_cwnd(tp) < ca->last_max_cwnd && fast_convergence) in bictcp_recalc_ssthresh()
173 ca->last_max_cwnd = tcp_snd_cwnd(tp); in bictcp_recalc_ssthresh()
175 if (tcp_snd_cwnd(tp) <= low_window) in bictcp_recalc_ssthresh()
176 return max(tcp_snd_cwnd(tp) >> 1U, 2U); in bictcp_recalc_ssthresh()
[all …]
H A Dtcp_htcp.c105 const struct tcp_sock *tp = tcp_sk(sk); in measure_achieved_throughput() local
224 const struct tcp_sock *tp = tcp_sk(sk); in htcp_recalc_ssthresh() local
228 return max((tcp_snd_cwnd(tp) * ca->beta) >> 7, 2U); in htcp_recalc_ssthresh()
233 struct tcp_sock *tp = tcp_sk(sk); in htcp_cong_avoid() local
239 if (tcp_in_slow_start(tp)) in htcp_cong_avoid()
240 tcp_slow_start(tp, acked); in htcp_cong_avoid()
245 if ((tp->snd_cwnd_cnt * ca->alpha)>>7 >= tcp_snd_cwnd(tp)) { in htcp_cong_avoid()
246 if (tcp_snd_cwnd(tp) < tp->snd_cwnd_clamp) in htcp_cong_avoid()
247 tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1); in htcp_cong_avoid()
248 tp->snd_cwnd_cnt = 0; in htcp_cong_avoid()
[all …]
/openbmc/linux/net/sched/
H A Dcls_route.c56 struct tcf_proto *tp; member
126 const struct tcf_proto *tp, in route4_classify() argument
243 static int route4_init(struct tcf_proto *tp) in route4_init() argument
251 rcu_assign_pointer(tp->root, head); in route4_init()
299 tcf_unbind_filter(tp, &f->res); in route4_destroy()
344 tcf_unbind_filter(tp, &f->res); in route4_delete()
462 f->tp = tp; in route4_set_parms()
466 tcf_bind_filter(tp, &f->res, base); in route4_set_parms()
518 f->tp = fold->tp; in route4_change()
559 tcf_unbind_filter(tp, &fold->res); in route4_change()
[all …]
/openbmc/u-boot/drivers/usb/eth/
H A Dr8152.h604 int generic_ocp_read(struct r8152 *tp, u16 index, u16 size,
608 int pla_ocp_write(struct r8152 *tp, u16 index, u16 byteen,
612 int usb_ocp_write(struct r8152 *tp, u16 index, u16 byteen,
615 u32 ocp_read_dword(struct r8152 *tp, u16 type, u16 index);
618 u16 ocp_read_word(struct r8152 *tp, u16 type, u16 index);
621 u8 ocp_read_byte(struct r8152 *tp, u16 type, u16 index);
624 u16 ocp_reg_read(struct r8152 *tp, u16 addr);
625 void ocp_reg_write(struct r8152 *tp, u16 addr, u16 data);
627 void sram_write(struct r8152 *tp, u16 addr, u16 data);
632 void r8152b_firmware(struct r8152 *tp);
[all …]
/openbmc/qemu/hw/net/
H A De1000.c579 struct e1000x_txd_props *props = tp->cptse ? &tp->tso_props : &tp->props; in xmit_seg()
586 stw_be_p(tp->data+css+2, tp->size - css); in xmit_seg()
590 stw_be_p(tp->data+css+4, tp->size - css); in xmit_seg()
625 memmove(tp->vlan, tp->data, 4); in xmit_seg()
626 memmove(tp->data, tp->data + 4, 8); in xmit_seg()
627 memcpy(tp->data + 8, tp->vlan_header, 4); in xmit_seg()
630 e1000_send_packet(s, tp->data, tp->size); in xmit_seg()
699 memmove(tp->header, tp->data, tp->tso_props.hdr_len); in process_tx_desc()
705 memmove(tp->data, tp->header, tp->tso_props.hdr_len); in process_tx_desc()
706 tp->size = tp->tso_props.hdr_len; in process_tx_desc()
[all …]
/openbmc/linux/tools/testing/selftests/timens/
H A Dgettime_perf.c49 struct timespec tp, start; in test() local
54 tp = start; in test()
55 for (tp = start; start.tv_sec + timeout > tp.tv_sec || in test()
56 (start.tv_sec + timeout == tp.tv_sec && in test()
57 start.tv_nsec > tp.tv_nsec); i++) { in test()
58 vdso_clock_gettime(clockid, &tp); in test()
/openbmc/linux/drivers/platform/x86/hp/
H A Dhp-wmi.c1178 int tp; in platform_profile_omen_get() local
1181 if (tp < 0) in platform_profile_omen_get()
1182 return tp; in platform_profile_omen_get()
1258 int tp; in hp_wmi_platform_profile_get() local
1261 if (tp < 0) in hp_wmi_platform_profile_get()
1262 return tp; in hp_wmi_platform_profile_get()
1287 int err, tp; in hp_wmi_platform_profile_set() local
1328 int tp; in platform_profile_victus_get() local
1331 if (tp < 0) in platform_profile_victus_get()
1332 return tp; in platform_profile_victus_get()
[all …]
/openbmc/linux/arch/arm/include/asm/
H A Dtls.h10 .macro switch_tls_none, base, tp, tpuser, tmp1, tmp2
13 .macro switch_tls_v6k, base, tp, tpuser, tmp1, tmp2
20 .macro switch_tls_v6, base, tp, tpuser, tmp1, tmp2
30 streq \tp, [\tmp2, #-15] @ set TLS value at 0xffff0ff0
32 mcr p15, 0, \tp, c13, c0, 3 @ yes, set TLS register
37 .L1_\@: switch_tls_v6k \base, \tp, \tpuser, \tmp1, \tmp2
41 .macro switch_tls_software, base, tp, tpuser, tmp1, tmp2
43 str \tp, [\tmp1, #-15] @ set TLS value at 0xffff0ff0

12345678910>>...24