Home
last modified time | relevance | path

Searched refs:tp (Results 26 – 50 of 597) sorted by relevance

12345678910>>...24

/openbmc/linux/net/ipv4/
H A Dtcp_highspeed.c102 struct tcp_sock *tp = tcp_sk(sk); in hstcp_init() local
109 tp->snd_cwnd_clamp = min_t(u32, tp->snd_cwnd_clamp, 0xffffffff/128); in hstcp_init()
114 struct tcp_sock *tp = tcp_sk(sk); in hstcp_cong_avoid() local
120 if (tcp_in_slow_start(tp)) in hstcp_cong_avoid()
121 tcp_slow_start(tp, acked); in hstcp_cong_avoid()
140 if (tcp_snd_cwnd(tp) < tp->snd_cwnd_clamp) { in hstcp_cong_avoid()
142 tp->snd_cwnd_cnt += ca->ai + 1; in hstcp_cong_avoid()
143 if (tp->snd_cwnd_cnt >= tcp_snd_cwnd(tp)) { in hstcp_cong_avoid()
144 tp->snd_cwnd_cnt -= tcp_snd_cwnd(tp); in hstcp_cong_avoid()
145 tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1); in hstcp_cong_avoid()
[all …]
H A Dtcp_vegas.c162 return min(tp->snd_ssthresh, tcp_snd_cwnd(tp)); in tcp_vegas_ssthresh()
241 tcp_snd_cwnd_set(tp, min(tcp_snd_cwnd(tp), in tcp_vegas_cong_avoid()
243 tp->snd_ssthresh = tcp_vegas_ssthresh(tp); in tcp_vegas_cong_avoid()
258 tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) - 1); in tcp_vegas_cong_avoid()
259 tp->snd_ssthresh in tcp_vegas_cong_avoid()
265 tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1); in tcp_vegas_cong_avoid()
273 if (tcp_snd_cwnd(tp) < 2) in tcp_vegas_cong_avoid()
274 tcp_snd_cwnd_set(tp, 2); in tcp_vegas_cong_avoid()
275 else if (tcp_snd_cwnd(tp) > tp->snd_cwnd_clamp) in tcp_vegas_cong_avoid()
276 tcp_snd_cwnd_set(tp, tp->snd_cwnd_clamp); in tcp_vegas_cong_avoid()
[all …]
H A Dtcp_hybla.c57 tcp_snd_cwnd_set(tp, 2); in hybla_init()
58 tp->snd_cwnd_clamp = 65535; in hybla_init()
142 tp->snd_cwnd_cnt++; in hybla_cong_avoid()
146 tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + (increment >> 7)); in hybla_cong_avoid()
151 tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1); in hybla_cong_avoid()
153 tp->snd_cwnd_cnt = 0; in hybla_cong_avoid()
156 if (increment == 0 && odd == 0 && tp->snd_cwnd_cnt >= tcp_snd_cwnd(tp)) { in hybla_cong_avoid()
157 tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1); in hybla_cong_avoid()
158 tp->snd_cwnd_cnt = 0; in hybla_cong_avoid()
162 tcp_snd_cwnd_set(tp, min(tcp_snd_cwnd(tp), tp->snd_ssthresh)); in hybla_cong_avoid()
[all …]
H A Dtcp_yeah.c43 struct tcp_sock *tp = tcp_sk(sk); in tcp_yeah_init() local
55 tp->snd_cwnd_clamp = min_t(u32, tp->snd_cwnd_clamp, 0xffffffff/128); in tcp_yeah_init()
60 struct tcp_sock *tp = tcp_sk(sk); in tcp_yeah_cong_avoid() local
66 if (tcp_in_slow_start(tp)) { in tcp_yeah_cong_avoid()
67 acked = tcp_slow_start(tp, acked); in tcp_yeah_cong_avoid()
74 tcp_cong_avoid_ai(tp, min(tcp_snd_cwnd(tp), TCP_SCALABLE_AI_CNT), in tcp_yeah_cong_avoid()
78 tcp_cong_avoid_ai(tp, tcp_snd_cwnd(tp), acked); in tcp_yeah_cong_avoid()
133 bw = tcp_snd_cwnd(tp); in tcp_yeah_cong_avoid()
145 tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) - reduction); in tcp_yeah_cong_avoid()
147 tcp_snd_cwnd_set(tp, max(tcp_snd_cwnd(tp), in tcp_yeah_cong_avoid()
[all …]
H A Dtcp.c630 answ = READ_ONCE(tp->write_seq) - tp->snd_una; in tcp_ioctl()
654 tp->pushed_seq = tp->write_seq; in tcp_mark_push()
659 return after(tp->write_seq, tp->pushed_seq + (tp->max_window >> 1)); in forced_push()
682 tp->snd_up = tp->write_seq; in tcp_mark_urg()
2303 inq = tp->rcv_nxt - tp->copied_seq; in tcp_inq_hint()
2520 if (unlikely(tp->urg_data) && after(tp->copied_seq, tp->urg_seq)) { in tcp_recvmsg_locked()
3006 (tp->snd_nxt != tp->write_seq && in tcp_disconnect()
3018 WRITE_ONCE(tp->copied_seq, tp->rcv_nxt); in tcp_disconnect()
3034 seq = tp->write_seq + tp->max_window + 2; in tcp_disconnect()
3066 memset(&tp->rx_opt, 0, sizeof(tp->rx_opt)); in tcp_disconnect()
[all …]
H A Dtcp_veno.c155 if (tcp_in_slow_start(tp)) { in tcp_veno_cong_avoid()
167 tcp_cong_avoid_ai(tp, tcp_snd_cwnd(tp), acked); in tcp_veno_cong_avoid()
172 if (tp->snd_cwnd_cnt >= tcp_snd_cwnd(tp)) { in tcp_veno_cong_avoid()
174 tcp_snd_cwnd(tp) < tp->snd_cwnd_clamp) { in tcp_veno_cong_avoid()
175 tcp_snd_cwnd_set(tp, tcp_snd_cwnd(tp) + 1); in tcp_veno_cong_avoid()
179 tp->snd_cwnd_cnt = 0; in tcp_veno_cong_avoid()
181 tp->snd_cwnd_cnt += acked; in tcp_veno_cong_avoid()
184 if (tcp_snd_cwnd(tp) < 2) in tcp_veno_cong_avoid()
185 tcp_snd_cwnd_set(tp, 2); in tcp_veno_cong_avoid()
186 else if (tcp_snd_cwnd(tp) > tp->snd_cwnd_clamp) in tcp_veno_cong_avoid()
[all …]
H A Dtcp_dctcp.c83 ca->next_seq = tp->snd_nxt; in dctcp_reset()
85 ca->old_delivered = tp->delivered; in dctcp_reset()
98 ca->prior_rcv_nxt = tp->rcv_nxt; in dctcp_init()
105 dctcp_reset(tp, ca); in dctcp_init()
121 struct tcp_sock *tp = tcp_sk(sk); in dctcp_ssthresh() local
123 ca->loss_cwnd = tcp_snd_cwnd(tp); in dctcp_ssthresh()
124 return max(tcp_snd_cwnd(tp) - ((tcp_snd_cwnd(tp) * ca->dctcp_alpha) >> 11U), 2U); in dctcp_ssthresh()
170 dctcp_reset(tp, ca); in dctcp_update_alpha()
177 struct tcp_sock *tp = tcp_sk(sk); in dctcp_react_to_loss() local
179 ca->loss_cwnd = tcp_snd_cwnd(tp); in dctcp_react_to_loss()
[all …]
/openbmc/linux/arch/sparc/kernel/
H A Dwindows.c47 tp->rwbuf_stkptrs[i] = tp->rwbuf_stkptrs[i+1]; in shift_window_buffer()
48 memcpy(&tp->reg_window[i], &tp->reg_window[i+1], sizeof(struct reg_window32)); in shift_window_buffer()
63 struct thread_info *tp = current_thread_info(); in synchronize_user_stack() local
67 if(!tp->w_saved) in synchronize_user_stack()
72 unsigned long sp = tp->rwbuf_stkptrs[window]; in synchronize_user_stack()
79 shift_window_buffer(window, tp->w_saved - 1, tp); in synchronize_user_stack()
80 tp->w_saved--; in synchronize_user_stack()
115 struct thread_info *tp = current_thread_info(); in try_to_clear_window_buffer() local
119 for(window = 0; window < tp->w_saved; window++) { in try_to_clear_window_buffer()
120 unsigned long sp = tp->rwbuf_stkptrs[window]; in try_to_clear_window_buffer()
[all …]
/openbmc/linux/drivers/net/ethernet/dec/tulip/
H A Dmedia.c312 tp->mii_advertise = tp->advertising[phy_num]; in tulip_select_media()
317 tulip_mdio_write(dev, tp->phys[phy_num], 4, tp->mii_advertise); in tulip_select_media()
351 if (tp->mii_cnt) { in tulip_select_media()
386 tp->csr6 = new_csr6 | (tp->csr6 & 0xfdff) | (tp->full_duplex ? 0x0200 : 0); in tulip_select_media()
420 tp->full_duplex = mii_duplex(tp->full_duplex_lock, negotiated); in tulip_check_duplex()
422 new_csr6 = tp->csr6; in tulip_check_duplex()
430 tp->csr6 = new_csr6; in tulip_check_duplex()
486 tp->mii_advertise = in tulip_find_mii()
522 if (tp->full_duplex) in tulip_find_mii()
542 if (tp->mtable && tp->mtable->has_mii && phy_idx == 0) { in tulip_find_mii()
[all …]
H A Deeprom.c120 tp->mtable = devm_kmalloc(&tp->pdev->dev, sizeof(struct mediatable) + in tulip_build_fake_mediatable()
123 if (tp->mtable == NULL) in tulip_build_fake_mediatable()
127 tp->mtable->leafcount = 1; in tulip_build_fake_mediatable()
129 tp->mtable->has_nonmii = 0; in tulip_build_fake_mediatable()
130 tp->mtable->has_reset = 0; in tulip_build_fake_mediatable()
131 tp->mtable->has_mii = 1; in tulip_build_fake_mediatable()
132 tp->mtable->csr15dir = tp->mtable->csr15val = 0; in tulip_build_fake_mediatable()
133 tp->mtable->mleaf[0].type = 1; in tulip_build_fake_mediatable()
136 tp->flags |= HAS_PHY_IRQ; in tulip_build_fake_mediatable()
137 tp->csr12_shadow = -1; in tulip_build_fake_mediatable()
[all …]
/openbmc/linux/lib/
H A Dbitfield_kunit.c13 u##tp _res; \
15 _res = u##tp##_encode_bits(v, field); \
26 __le##tp _res; \
28 _res = le##tp##_encode_bits(v, field); \
30 _res != cpu_to_le##tp(res), \
32 (u64)le##tp##_to_cpu(_res), \
41 __be##tp _res; \
45 _res != cpu_to_be##tp(res), \
47 (u64)be##tp##_to_cpu(_res), \
55 CHECK_ENC_GET_U(tp, v, field, res); \
[all …]
/openbmc/linux/fs/xfs/
H A Dxfs_trans_buf.c24 struct xfs_trans *tp, in xfs_trans_buf_item_match() argument
62 struct xfs_trans *tp, in _xfs_trans_bjoin() argument
93 bp->b_transp = tp; in _xfs_trans_bjoin()
129 if (!tp) in xfs_trans_get_buf_map()
234 if (tp) in xfs_trans_read_buf_map()
295 if (tp && (tp->t_flags & XFS_TRANS_DIRTY)) in xfs_trans_read_buf_map()
309 if (tp) { in xfs_trans_read_buf_map()
353 if (!tp) { in xfs_trans_brelse()
403 xfs_trans_t *tp, in xfs_trans_bhold() argument
424 xfs_trans_t *tp, in xfs_trans_bhold_release() argument
[all …]
H A Dxfs_trans_dquot.c30 struct xfs_trans *tp, in xfs_trans_dqjoin() argument
54 struct xfs_trans *tp, in xfs_trans_log_dquot() argument
128 xfs_trans_t *tp, in xfs_trans_mod_dquot_byino() argument
149 struct xfs_trans *tp, in xfs_trans_get_dqtrx() argument
193 ASSERT(tp); in xfs_trans_mod_dquot()
342 if (!tp->t_dqinfo) in xfs_trans_apply_dquot_deltas()
484 if (!tp->t_dqinfo) in xfs_trans_unreserve_and_mod_dquots()
686 if (tp) { in xfs_trans_dqresv()
845 xfs_trans_t *tp) in xfs_trans_alloc_dqinfo() argument
853 xfs_trans_t *tp) in xfs_trans_free_dqinfo() argument
[all …]
H A Dxfs_inode.c918 xfs_trans_t *tp, in xfs_droplink() argument
944 xfs_trans_t *tp, in xfs_bumplink() argument
1009 &tp); in xfs_create()
1014 resblks, &tp); in xfs_create()
1147 &tp); in xfs_create_tmpfile()
1210 xfs_trans_t *tp; in xfs_link() local
1418 *tpp = tp; in xfs_itruncate_extents_flags()
1580 &tp); in xfs_inactive_ifree()
2542 &tp, &dontcare); in xfs_remove()
2687 if (xfs_has_wsync(tp->t_mountp) || xfs_has_dirsync(tp->t_mountp)) in xfs_finish_rename()
[all …]
/openbmc/linux/kernel/trace/
H A Dtrace_fprobe.c48 struct trace_probe tp; member
428 list_for_each_entry(tf, trace_probe_probe_list(tp), tp.list) { in __disable_trace_fprobe()
448 if (WARN_ON_ONCE(!tp)) in enable_trace_fprobe()
461 list_for_each_entry(tf, trace_probe_probe_list(tp), tp.list) { in enable_trace_fprobe()
480 if (WARN_ON_ONCE(!tp)) in disable_trace_fprobe()
530 if (trace_probe_print_args(s, tp->args, tp->nr_args, in print_fentry_event()
565 if (trace_probe_print_args(s, tp->args, tp->nr_args, in print_fexit_event()
782 ret = trace_probe_compare_arg_type(&tf->tp, &to->tp); in append_trace_fprobe()
796 ret = trace_probe_append(&tf->tp, &to->tp); in append_trace_fprobe()
887 data->tpoint = tp; in __find_tracepoint_cb()
[all …]
H A Dtrace_uprobe.c324 return container_of(tp, struct trace_uprobe, tp); in trace_uprobe_primary_from_call()
437 ret = trace_probe_compare_arg_type(&tu->tp, &to->tp); in append_trace_uprobe()
451 ret = trace_probe_append(&tu->tp, &to->tp); in append_trace_uprobe()
1077 tu = container_of(tp, struct trace_uprobe, tp); in __probe_event_disable()
1080 list_for_each_entry(tu, trace_probe_probe_list(tp), tp.list) { in __probe_event_disable()
1117 tu = container_of(tp, struct trace_uprobe, tp); in probe_event_enable()
1127 list_for_each_entry(tu, trace_probe_probe_list(tp), tp.list) { in probe_event_enable()
1280 tu = container_of(tp, struct trace_uprobe, tp); in uprobe_perf_close()
1284 list_for_each_entry(tu, trace_probe_probe_list(tp), tp.list) { in uprobe_perf_close()
1304 tu = container_of(tp, struct trace_uprobe, tp); in uprobe_perf_open()
[all …]
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_rtbitmap.c157 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
171 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
203 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
217 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
260 xfs_trans_brelse(tp, bp); in xfs_rtfind_back()
430 xfs_trans_brelse(tp, bp); in xfs_rtfind_forw()
975 mp = tp->t_mountp; in xfs_rtfree_extent()
1016 struct xfs_trans *tp, in xfs_rtfree_blocks() argument
1046 struct xfs_trans *tp, in xfs_rtalloc_query_range() argument
1100 struct xfs_trans *tp, in xfs_rtalloc_query_all() argument
[all …]
/openbmc/linux/drivers/input/mouse/
H A Dtrackpoint.c107 struct trackpoint_data *tp = psmouse->private; in trackpoint_show_int_attr() local
122 u8 *field = (void *)tp + attr->field_offset; in trackpoint_set_int_attr()
209 return tp->variant_id == TP_VARIANT_IBM || in trackpoint_is_attr_available()
350 TRACKPOINT_SET_POWER_ON_DEFAULT(tp, speed); in trackpoint_defaults()
399 struct trackpoint_data *tp; in trackpoint_detect() local
412 tp = kzalloc(sizeof(*tp), GFP_KERNEL); in trackpoint_detect()
413 if (!tp) in trackpoint_detect()
416 trackpoint_defaults(tp); in trackpoint_detect()
417 tp->variant_id = variant_id; in trackpoint_detect()
418 tp->firmware_id = firmware_id; in trackpoint_detect()
[all …]
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtcp_ca_write_sk_pacing.c19 static inline unsigned int tcp_left_out(const struct tcp_sock *tp) in tcp_left_out() argument
21 return tp->sacked_out + tp->lost_out; in tcp_left_out()
24 static inline unsigned int tcp_packets_in_flight(const struct tcp_sock *tp) in tcp_packets_in_flight() argument
26 return tp->packets_out - tcp_left_out(tp) + tp->retrans_out; in tcp_packets_in_flight()
44 struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG() local
46 ((tp->snd_cwnd * tp->mss_cache * USEC_PER_SEC) << 3) / in BPF_PROG()
47 (tp->srtt_us ?: 1U << 3); in BPF_PROG()
49 tp->app_limited = (tp->delivered + tcp_packets_in_flight(tp)) ?: 1; in BPF_PROG()
H A Dbpf_dctcp.c54 ca->next_seq = tp->snd_nxt; in dctcp_reset()
56 ca->old_delivered = tp->delivered; in dctcp_reset()
94 ca->prior_rcv_nxt = tp->rcv_nxt; in BPF_PROG()
104 dctcp_reset(tp, ca); in BPF_PROG()
111 struct tcp_sock *tp = tcp_sk(sk); in BPF_PROG() local
113 ca->loss_cwnd = tp->snd_cwnd; in BPF_PROG()
114 return max(tp->snd_cwnd - ((tp->snd_cwnd * ca->dctcp_alpha) >> 11U), 2U); in BPF_PROG()
143 dctcp_reset(tp, ca); in BPF_PROG()
150 struct tcp_sock *tp = tcp_sk(sk); in dctcp_react_to_loss() local
152 ca->loss_cwnd = tp->snd_cwnd; in dctcp_react_to_loss()
[all …]
/openbmc/linux/net/sched/
H A Dcls_matchall.c29 const struct tcf_proto *tp, in mall_classify() argument
45 static int mall_init(struct tcf_proto *tp) in mall_init() argument
74 struct tcf_block *block = tp->chain->block; in mall_destroy_hw_filter()
90 struct tcf_block *block = tp->chain->block; in mall_replace_hw_filter()
135 tcf_unbind_filter(tp, &head->res); in mall_destroy()
217 tcf_bind_filter(tp, &new->res, base); in mall_change()
232 rcu_assign_pointer(tp->root, new); in mall_change()
237 tcf_unbind_filter(tp, &new->res); in mall_change()
267 if (arg->fn(tp, head, arg) < 0) in mall_walk()
278 struct tcf_block *block = tp->chain->block; in mall_reoffload()
[all …]
H A Dcls_api.c94 n->tp = tp; in tcf_exts_miss_cookie_base_alloc()
396 err = tp->ops->init(tp); in tcf_proto_create()
1095 for (; tp; tp = tcf_chain_dereference(tp->next, chain)) in __tcf_get_next_proto()
1674 for (; tp; tp = rcu_dereference_bh(tp->next)) { in __tcf_classify()
2108 tp; tp = tcf_get_next_proto(chain, tp)) in tfilter_notify_chain()
2116 tp->ops->put(tp, fh); in tfilter_put()
2333 if (tp && !IS_ERR(tp)) in tc_new_tfilter()
2458 if (!tp || IS_ERR(tp)) { in tc_del_tfilter()
2499 if (tp && !IS_ERR(tp)) in tc_del_tfilter()
2600 if (!tp || IS_ERR(tp)) { in tc_get_tfilter()
[all …]
/openbmc/linux/drivers/platform/x86/amd/pmf/
H A Dcnqf.c186 if (tp->timer >= tp->time_constant && tp->count) { in amd_pmf_trans_cnqf()
187 avg_power = tp->total_power / tp->count; in amd_pmf_trans_cnqf()
190 tp->timer = 0; in amd_pmf_trans_cnqf()
191 tp->total_power = 0; in amd_pmf_trans_cnqf()
192 tp->count = 0; in amd_pmf_trans_cnqf()
194 if ((tp->shifting_up && avg_power >= tp->power_threshold) || in amd_pmf_trans_cnqf()
195 (!tp->shifting_up && avg_power <= tp->power_threshold)) { in amd_pmf_trans_cnqf()
196 tp->priority = true; in amd_pmf_trans_cnqf()
248 tp->shifting_up = true; in amd_pmf_update_trans_data()
253 tp->shifting_up = true; in amd_pmf_update_trans_data()
[all …]
/openbmc/qemu/disas/
H A Dcris.c2114 tp = FORMAT_DEC (number, tp, signedp); in print_with_operands()
2141 tp = format_hex (number, tp, disdata); in print_with_operands()
2250 tp = FORMAT_DEC (number, tp, 1); in print_with_operands()
2349 tp = FORMAT_DEC (number, tp, 1); in print_with_operands()
2406 tp = FORMAT_DEC (insn & 63, tp, 0); in print_with_operands()
2435 tp = FORMAT_DEC (insn & 31, tp, 0); in print_with_operands()
2439 tp = FORMAT_DEC (insn & 15, tp, 0); in print_with_operands()
2457 *tp = 0; in print_with_operands()
2472 tp = FORMAT_DEC (number, tp, 1); in print_with_operands()
2479 tp = print_flags (disdata, insn, tp); in print_with_operands()
[all …]
/openbmc/linux/drivers/net/ethernet/realtek/
H A Dr8169_phy_config.c446 r8169_apply_firmware(tp); in rtl8168d_apply_firmware_cond()
552 r8169_apply_firmware(tp); in rtl8168e_1_hw_phy_config()
586 r8169_apply_firmware(tp); in rtl8168e_2_hw_phy_config()
644 r8169_apply_firmware(tp); in rtl8168f_1_hw_phy_config()
672 r8169_apply_firmware(tp); in rtl8168f_2_hw_phy_config()
680 r8169_apply_firmware(tp); in rtl8411_hw_phy_config()
746 r8169_apply_firmware(tp); in rtl8168g_1_hw_phy_config()
792 r8169_apply_firmware(tp); in rtl8168g_2_hw_phy_config()
802 r8169_apply_firmware(tp); in rtl8168h_2_hw_phy_config()
954 r8169_apply_firmware(tp); in rtl8105e_hw_phy_config()
[all …]

12345678910>>...24