| /linux/drivers/net/ethernet/broadcom/ |
| H A D | tg3.c | 93 #define tg3_flag(tp, flag) \ argument 94 _tg3_flag(TG3_FLAG_##flag, (tp)->tg3_flags) 95 #define tg3_flag_set(tp, flag) \ argument 96 _tg3_flag_set(TG3_FLAG_##flag, (tp)->tg3_flags) 97 #define tg3_flag_clear(tp, flag) \ argument 98 _tg3_flag_clear(TG3_FLAG_##flag, (tp)->tg3_flags) 131 #define TG3_MAX_MTU(tp) \ argument 132 (tg3_flag(tp, JUMBO_CAPABLE) ? 9000 : 1500) 138 #define TG3_RX_STD_RING_SIZE(tp) \ argument 139 (tg3_flag(tp, LRG_PROD_RING_CAP) ? \ [all …]
|
| /linux/drivers/sbus/char/ |
| H A D | bbc_envctrl.c | 120 static void get_current_temps(struct bbc_cpu_temperature *tp) in get_current_temps() argument 122 tp->prev_amb_temp = tp->curr_amb_temp; in get_current_temps() 123 bbc_i2c_readb(tp->client, in get_current_temps() 124 (unsigned char *) &tp->curr_amb_temp, in get_current_temps() 126 tp->prev_cpu_temp = tp->curr_cpu_temp; in get_current_temps() 127 bbc_i2c_readb(tp->client, in get_current_temps() 128 (unsigned char *) &tp->curr_cpu_temp, in get_current_temps() 132 tp->index, in get_current_temps() 133 (int) tp->curr_cpu_temp, (int) tp->curr_amb_temp); in get_current_temps() 138 static void do_envctrl_shutdown(struct bbc_cpu_temperature *tp) in do_envctrl_shutdown() argument [all …]
|
| /linux/drivers/net/ethernet/dec/tulip/ |
| H A D | pnic2.c | 81 struct tulip_private *tp = timer_container_of(tp, t, timer); in pnic2_timer() local 82 struct net_device *dev = tp->dev; in pnic2_timer() 83 void __iomem *ioaddr = tp->base_addr; in pnic2_timer() 91 mod_timer(&tp->timer, RUN_AT(next_tick)); in pnic2_timer() 98 struct tulip_private *tp = netdev_priv(dev); in pnic2_start_nway() local 99 void __iomem *ioaddr = tp->base_addr; in pnic2_start_nway() 111 if (tp->sym_advertise & 0x0100) csr14 |= 0x00020000; in pnic2_start_nway() 114 if (tp->sym_advertise & 0x0080) csr14 |= 0x00010000; in pnic2_start_nway() 117 if (tp->sym_advertise & 0x0020) csr14 |= 0x00000040; in pnic2_start_nway() 130 tp->nway = tp->mediasense = 1; in pnic2_start_nway() [all …]
|
| H A D | interrupt.c | 61 struct tulip_private *tp = netdev_priv(dev); in tulip_refill_rx() local 66 for (; tp->cur_rx - tp->dirty_rx > 0; tp->dirty_rx++) { in tulip_refill_rx() 67 entry = tp->dirty_rx % RX_RING_SIZE; in tulip_refill_rx() 68 if (tp->rx_buffers[entry].skb == NULL) { in tulip_refill_rx() 72 skb = tp->rx_buffers[entry].skb = in tulip_refill_rx() 77 mapping = dma_map_single(&tp->pdev->dev, skb->data, in tulip_refill_rx() 79 if (dma_mapping_error(&tp->pdev->dev, mapping)) { in tulip_refill_rx() 81 tp->rx_buffers[entry].skb = NULL; in tulip_refill_rx() 85 tp->rx_buffers[entry].mapping = mapping; in tulip_refill_rx() 87 tp->rx_ring[entry].buffer1 = cpu_to_le32(mapping); in tulip_refill_rx() [all …]
|
| H A D | 21142.c | 30 struct tulip_private *tp = in t21142_media_task() local 32 struct net_device *dev = tp->dev; in t21142_media_task() 33 void __iomem *ioaddr = tp->base_addr; in t21142_media_task() 53 } else if (tp->nwayset) { in t21142_media_task() 59 } else if (tp->medialock) { in t21142_media_task() 95 if (new_csr6 != (tp->csr6 & ~0x00D5)) { in t21142_media_task() 96 tp->csr6 &= 0x00D5; in t21142_media_task() 97 tp->csr6 |= new_csr6; in t21142_media_task() 99 tulip_restart_rxtx(tp); in t21142_media_task() 107 mod_timer(&tp->timer, RUN_AT(next_tick)); in t21142_media_task() [all …]
|
| H A D | timer.c | 19 struct tulip_private *tp = in tulip_media_task() local 21 struct net_device *dev = tp->dev; in tulip_media_task() 22 void __iomem *ioaddr = tp->base_addr; in tulip_media_task() 34 switch (tp->chip_id) { in tulip_media_task() 43 if (tp->mtable == NULL) { /* No EEPROM info, use generic code. */ in tulip_media_task() 53 mleaf = &tp->mtable->mleaf[tp->cur_index]; in tulip_media_task() 87 if (tp->medialock) in tulip_media_task() 90 if (--tp->cur_index < 0) { in tulip_media_task() 92 tp->cur_index = tp->mtable->leafcount - 1; in tulip_media_task() 94 dev->if_port = tp->mtable->mleaf[tp->cur_index].media; in tulip_media_task() [all …]
|
| H A D | pnic.c | 21 struct tulip_private *tp = netdev_priv(dev); in pnic_do_nway() local 22 void __iomem *ioaddr = tp->base_addr; in pnic_do_nway() 31 tp->nwayset = 1; in pnic_do_nway() 37 tp->full_duplex = 1; in pnic_do_nway() 43 if (tp->csr6 != new_csr6) { in pnic_do_nway() 44 tp->csr6 = new_csr6; in pnic_do_nway() 46 tulip_restart_rxtx(tp); in pnic_do_nway() 54 struct tulip_private *tp = netdev_priv(dev); in pnic_lnk_change() local 55 void __iomem *ioaddr = tp->base_addr; in pnic_lnk_change() 68 if (! tp->nwayset || time_after(jiffies, dev_trans_start(dev) + 1*HZ)) { in pnic_lnk_change() [all …]
|
| H A D | media.c | 49 struct tulip_private *tp = netdev_priv(dev); in tulip_mdio_read() local 53 void __iomem *ioaddr = tp->base_addr; in tulip_mdio_read() 60 if (tp->chip_id == COMET && phy_id == 30) { in tulip_mdio_read() 66 spin_lock_irqsave(&tp->mii_lock, flags); in tulip_mdio_read() 67 if (tp->chip_id == LC82C168) { in tulip_mdio_read() 76 spin_unlock_irqrestore(&tp->mii_lock, flags); in tulip_mdio_read() 105 spin_unlock_irqrestore(&tp->mii_lock, flags); in tulip_mdio_read() 111 struct tulip_private *tp = netdev_priv(dev); in tulip_mdio_write() local 114 void __iomem *ioaddr = tp->base_addr; in tulip_mdio_write() 121 if (tp->chip_id == COMET && phy_id == 30) { in tulip_mdio_write() [all …]
|
| H A D | eeprom.c | 104 static void tulip_build_fake_mediatable(struct tulip_private *tp) in tulip_build_fake_mediatable() argument 107 if (tp->flags & NEEDS_FAKE_MEDIA_TABLE) { in tulip_build_fake_mediatable() 120 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() 126 tp->mtable->defaultmedia = 0x800; in tulip_build_fake_mediatable() 127 tp->mtable->leafcount = 1; in tulip_build_fake_mediatable() 128 tp->mtable->csr12dir = 0x3f; /* inputs on bit7 for hsc-pci, bit6 for pci-fx */ 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() [all …]
|
| /linux/drivers/net/ethernet/realtek/rtase/ |
| H A D | rtase_main.c | 105 static void rtase_w8(const struct rtase_private *tp, u16 reg, u8 val8) in rtase_w8() argument 107 writeb(val8, tp->mmio_addr + reg); in rtase_w8() 110 static void rtase_w16(const struct rtase_private *tp, u16 reg, u16 val16) in rtase_w16() argument 112 writew(val16, tp->mmio_addr + reg); in rtase_w16() 115 static void rtase_w32(const struct rtase_private *tp, u16 reg, u32 val32) in rtase_w32() argument 117 writel(val32, tp->mmio_addr + reg); in rtase_w32() 120 static u8 rtase_r8(const struct rtase_private *tp, u16 reg) in rtase_r8() argument 122 return readb(tp->mmio_addr + reg); in rtase_r8() 125 static u16 rtase_r16(const struct rtase_private *tp, u16 reg) in rtase_r16() argument 127 return readw(tp->mmio_addr + reg); in rtase_r16() [all …]
|
| /linux/net/ipv4/ |
| H A D | tcp_input.c | 124 void clean_acked_data_enable(struct tcp_sock *tp, in clean_acked_data_enable() argument 127 tp->tcp_clean_acked = cad; in clean_acked_data_enable() 132 void clean_acked_data_disable(struct tcp_sock *tp) in clean_acked_data_disable() argument 135 tp->tcp_clean_acked = NULL; in clean_acked_data_disable() 252 struct tcp_sock *tp = tcp_sk(sk); in tcp_measure_rcv_mss() local 255 WRITE_ONCE(tp->window_clamp, val); in tcp_measure_rcv_mss() 257 if (tp->window_clamp < tp->rcvq_space.space) in tcp_measure_rcv_mss() 258 tp->rcvq_space.space = tp in tcp_measure_rcv_mss() 346 struct tcp_sock *tp = tcp_sk(sk); tcp_data_ecn_check() local 389 tcp_accecn_process_option(struct tcp_sock * tp,const struct sk_buff * skb,u32 delivered_bytes,int flag) tcp_accecn_process_option() argument 477 tcp_count_delivered_ce(struct tcp_sock * tp,u32 ecn_count) tcp_count_delivered_ce() argument 483 tcp_count_delivered(struct tcp_sock * tp,u32 delivered,bool ece_ack) tcp_count_delivered() argument 502 struct tcp_sock *tp = tcp_sk(sk); __tcp_accecn_process() local 585 struct tcp_sock *tp = tcp_sk(sk); tcp_accecn_process() local 607 const struct tcp_sock *tp = tcp_sk(sk); tcp_sndbuf_expand() local 666 const struct tcp_sock *tp = tcp_sk(sk); __tcp_grow_window() local 703 struct tcp_sock *tp = tcp_sk(sk); tcp_grow_window() local 743 struct tcp_sock *tp = tcp_sk(sk); tcp_init_buffer_space() local 780 struct tcp_sock *tp = tcp_sk(sk); tcp_clamp_window() local 808 const struct tcp_sock *tp = tcp_sk(sk); tcp_initialize_rcv_mss() local 829 tcp_rcv_rtt_update(struct tcp_sock * tp,u32 sample,int win_dep) tcp_rcv_rtt_update() argument 858 tcp_rcv_rtt_measure(struct tcp_sock * tp) tcp_rcv_rtt_measure() argument 876 tcp_rtt_tsopt_us(const struct tcp_sock * tp,u32 min_delta) tcp_rtt_tsopt_us() argument 896 struct tcp_sock *tp = tcp_sk(sk); tcp_rcv_rtt_measure_ts() local 914 struct tcp_sock *tp = tcp_sk(sk); tcp_rcvbuf_grow() local 962 struct tcp_sock *tp = tcp_sk(sk); tcp_rcv_space_adjust() local 1017 struct tcp_sock *tp = tcp_sk(sk); tcp_event_data_recv() local 1072 struct tcp_sock *tp = tcp_sk(sk); tcp_rtt_estimator() local 1140 const struct tcp_sock *tp = tcp_sk(sk); tcp_update_pacing_rate() local 1177 const struct tcp_sock *tp = tcp_sk(sk); tcp_set_rto() local 1202 tcp_init_cwnd(const struct tcp_sock * tp,const struct dst_entry * dst) tcp_init_cwnd() argument 1232 tcp_dsack_seen(struct tcp_sock * tp,u32 start_seq,u32 end_seq,struct tcp_sacktag_state * state) tcp_dsack_seen() argument 1278 struct tcp_sock *tp = tcp_sk(sk); tcp_check_sack_reordering() local 1312 tcp_verify_retransmit_hint(struct tcp_sock * tp,struct sk_buff * skb) tcp_verify_retransmit_hint() argument 1324 tcp_notify_skb_loss_event(struct tcp_sock * tp,const struct sk_buff * skb) tcp_notify_skb_loss_event() argument 1332 struct tcp_sock *tp = tcp_sk(sk); tcp_mark_skb_lost() local 1447 tcp_is_sackblock_valid(struct tcp_sock * tp,bool is_dsack,u32 start_seq,u32 end_seq) tcp_is_sackblock_valid() argument 1488 struct tcp_sock *tp = tcp_sk(sk); tcp_check_dsack() local 1583 tcp_rack_advance(struct tcp_sock * tp,u8 sacked,u32 end_seq,u64 xmit_time) tcp_rack_advance() argument 1618 struct tcp_sock *tp = tcp_sk(sk); tcp_sacktag_one() local 1727 struct tcp_sock *tp = tcp_sk(sk); tcp_rate_gen() local 1812 struct tcp_sock *tp = tcp_sk(sk); tcp_rate_skb_delivered() local 1853 struct tcp_sock *tp = tcp_sk(sk); tcp_shifted_skb() local 1959 struct tcp_sock *tp = tcp_sk(sk); tcp_shift_skb_data() local 2098 struct tcp_sock *tp = tcp_sk(sk); tcp_sacktag_walk() local 2214 tcp_sack_cache_ok(const struct tcp_sock * tp,const struct tcp_sack_block * cache) tcp_sack_cache_ok() argument 2223 struct tcp_sock *tp = tcp_sk(sk); tcp_sacktag_write_queue() local 2418 tcp_limit_reno_sacked(struct tcp_sock * tp) tcp_limit_reno_sacked() argument 2438 struct tcp_sock *tp = tcp_sk(sk); tcp_check_reno_reordering() local 2455 struct tcp_sock *tp = tcp_sk(sk); tcp_add_reno_sack() local 2472 struct tcp_sock *tp = tcp_sk(sk); tcp_remove_reno_sacks() local 2487 tcp_reset_reno_sack(struct tcp_sock * tp) tcp_reset_reno_sack() argument 2492 tcp_clear_retrans(struct tcp_sock * tp) tcp_clear_retrans() argument 2505 tcp_init_undo(struct tcp_sock * tp) tcp_init_undo() argument 2526 struct tcp_sock *tp = tcp_sk(sk); tcp_timeout_mark_lost() local 2557 struct tcp_sock *tp = tcp_sk(sk); tcp_enter_loss() local 2615 struct tcp_sock *tp = tcp_sk(sk); tcp_check_sack_reneging() local 2717 tcp_time_to_recover(const struct tcp_sock * tp) tcp_time_to_recover() argument 2723 tcp_tsopt_ecr_before(const struct tcp_sock * tp,u32 when) tcp_tsopt_ecr_before() argument 2732 tcp_skb_spurious_retrans(const struct tcp_sock * tp,const struct sk_buff * skb) tcp_skb_spurious_retrans() argument 2742 tcp_packet_delayed(const struct tcp_sock * tp) tcp_packet_delayed() argument 2793 const struct tcp_sock *tp = tcp_sk(sk); tcp_any_retrans_done() local 2819 struct tcp_sock *tp = tcp_sk(sk); DBGUNDO() local 2845 struct tcp_sock *tp = tcp_sk(sk); tcp_undo_cwnd_reduction() local 2872 tcp_may_undo(const struct tcp_sock * tp) tcp_may_undo() argument 2879 struct tcp_sock *tp = tcp_sk(sk); tcp_is_non_sack_preventing_reopen() local 2895 struct tcp_sock *tp = tcp_sk(sk); tcp_try_undo_recovery() local 2924 struct tcp_sock *tp = tcp_sk(sk); tcp_try_undo_dsack() local 2940 struct tcp_sock *tp = tcp_sk(sk); tcp_try_undo_loss() local 2973 struct tcp_sock *tp = tcp_sk(sk); tcp_init_cwnd_reduction() local 2987 struct tcp_sock *tp = tcp_sk(sk); tcp_cwnd_reduction() local 3015 struct tcp_sock *tp = tcp_sk(sk); tcp_end_cwnd_reduction() local 3032 struct tcp_sock *tp = tcp_sk(sk); tcp_enter_cwr() local 3045 struct tcp_sock *tp = tcp_sk(sk); tcp_try_keep_open() local 3059 struct tcp_sock *tp = tcp_sk(sk); tcp_try_to_open() local 3085 struct tcp_sock *tp = tcp_sk(sk); tcp_mtup_probe_success() local 3119 struct tcp_sock *tp = tcp_sk(sk); tcp_non_congestion_loss_retransmit() local 3137 struct tcp_sock *tp = tcp_sk(sk); tcp_simple_retransmit() local 3179 struct tcp_sock *tp = tcp_sk(sk); tcp_enter_recovery() local 3203 tcp_update_rto_time(struct tcp_sock * tp) tcp_update_rto_time() argument 3217 struct tcp_sock *tp = tcp_sk(sk); tcp_process_loss() local 3270 struct tcp_sock *tp = tcp_sk(sk); tcp_try_undo_partial() local 3299 struct tcp_sock *tp = tcp_sk(sk); tcp_identify_packet_loss() local 3332 struct tcp_sock *tp = tcp_sk(sk); tcp_fastretrans_alert() local 3446 struct tcp_sock *tp = tcp_sk(sk); tcp_update_rtt_min() local 3463 const struct tcp_sock *tp = tcp_sk(sk); tcp_ack_update_rtt() local 3527 struct tcp_sock *tp = tcp_sk(sk); tcp_rearm_rto() local 3562 struct tcp_sock *tp = tcp_sk(sk); tcp_tso_acked() local 3608 struct tcp_sock *tp = tcp_sk(sk); tcp_clean_rtx_queue() local 3811 const struct tcp_sock *tp = tcp_sk(sk); tcp_ack_probe() local 3881 tcp_may_update_window(const struct tcp_sock * tp,const u32 ack,const u32 ack_seq,const u32 nwin) tcp_may_update_window() argument 3890 tcp_snd_sne_update(struct tcp_sock * tp,u32 ack) tcp_snd_sne_update() argument 3908 tcp_snd_una_update(struct tcp_sock * tp,u32 ack) tcp_snd_una_update() argument 3918 tcp_rcv_sne_update(struct tcp_sock * tp,u32 seq) tcp_rcv_sne_update() argument 3936 tcp_rcv_nxt_update(struct tcp_sock * tp,u32 seq) tcp_rcv_nxt_update() argument 3954 struct tcp_sock *tp = tcp_sk(sk); tcp_ack_update_window() local 4033 struct tcp_sock *tp = tcp_sk(sk); tcp_send_ack_reflect_ect() local 4071 struct tcp_sock *tp = tcp_sk(sk); tcp_send_challenge_ack() local 4106 tcp_store_ts_recent(struct tcp_sock * tp) tcp_store_ts_recent() argument 4112 __tcp_replace_ts_recent(struct tcp_sock * tp,s32 tstamp_delta) __tcp_replace_ts_recent() argument 4118 tcp_replace_ts_recent(struct tcp_sock * tp,u32 seq) tcp_replace_ts_recent() argument 4144 struct tcp_sock *tp = tcp_sk(sk); tcp_process_tlp_ack() local 4197 struct tcp_sock *tp = tcp_sk(sk); tcp_xmit_recovery() local 4217 struct tcp_sock *tp = tcp_sk(sk); tcp_newly_delivered() local 4252 struct tcp_sock *tp = tcp_sk(sk); tcp_rack_update_reo_wnd() local 4279 struct tcp_sock *tp = tcp_sk(sk); tcp_ack() local 4703 tcp_parse_aligned_timestamp(struct tcp_sock * tp,const struct tcphdr * th) tcp_parse_aligned_timestamp() argument 4727 tcp_fast_parse_options(const struct net * net,const struct sk_buff * skb,const struct tcphdr * th,struct tcp_sock * tp) tcp_fast_parse_options() argument 4794 const struct tcp_sock *tp = tcp_sk(sk); tcp_disordered_ack_check() local 4844 const struct tcp_sock *tp = tcp_sk(sk); tcp_sequence() local 4928 struct tcp_sock *tp = tcp_sk(sk); tcp_fin() local 5009 struct tcp_sock *tp = tcp_sk(sk); tcp_dsack_set() local 5029 struct tcp_sock *tp = tcp_sk(sk); tcp_dsack_extend() local 5040 struct tcp_sock *tp = tcp_sk(sk); tcp_rcv_spurious_retrans() local 5074 struct tcp_sock *tp = tcp_sk(sk); tcp_send_dupack() local 5097 tcp_sack_maybe_coalesce(struct tcp_sock * tp) tcp_sack_maybe_coalesce() argument 5125 struct tcp_sock *tp = tcp_sk(sk); tcp_sack_compress_send_ack() local 5152 struct tcp_sock *tp = tcp_sk(sk); tcp_sack_new_ofo_skb() local 5199 tcp_sack_remove(struct tcp_sock * tp) tcp_sack_remove() argument 5308 struct tcp_sock *tp = tcp_sk(sk); tcp_ofo_queue() local 5383 struct tcp_sock *tp = tcp_sk(sk); tcp_data_queue_ofo() local 5609 struct tcp_sock *tp = tcp_sk(sk); tcp_data_queue() local 5881 struct tcp_sock *tp = tcp_sk(sk); tcp_collapse_ofo_queue() local 5941 struct tcp_sock *tp = tcp_sk(sk); tcp_prune_ofo_queue() local 5995 struct tcp_sock *tp = tcp_sk(sk); tcp_prune_queue() local 6042 const struct tcp_sock *tp = tcp_sk(sk); tcp_should_expand_sndbuf() local 6077 struct tcp_sock *tp = tcp_sk(sk); tcp_new_space() local 6117 struct tcp_sock *tp = tcp_sk(sk); __tcp_ack_snd_check() local 6213 struct tcp_sock *tp = tcp_sk(sk); tcp_check_urg() local 6279 struct tcp_sock *tp = tcp_sk(sk); tcp_urg() local 6312 const struct tcp_sock *tp = tcp_sk(sk); tcp_reset_check() local 6325 struct tcp_sock *tp = tcp_sk(sk); tcp_validate_incoming() local 6505 struct tcp_sock *tp = tcp_sk(sk); tcp_rcv_established() local 6709 struct tcp_sock *tp = tcp_sk(sk); tcp_init_transfer() local 6736 struct tcp_sock *tp = tcp_sk(sk); tcp_finish_connect() local 6768 struct tcp_sock *tp = tcp_sk(sk); tcp_rcv_fastopen_synack() local 6828 smc_check_reset_syn(struct tcp_sock * tp) smc_check_reset_syn() argument 6840 struct tcp_sock *tp = tcp_sk(sk); tcp_try_undo_spurious_syn() local 6857 struct tcp_sock *tp = tcp_sk(sk); tcp_rcv_synsent_state_process() local 7106 struct tcp_sock *tp = tcp_sk(sk); tcp_rcv_synrecv_state_fastopen() local 7155 struct tcp_sock *tp = tcp_sk(sk); tcp_rcv_state_process() local 7599 struct tcp_sock *tp = tcp_sk(sk); tcp_get_syncookie_mss() local 7628 const struct tcp_sock *tp = tcp_sk(sk); tcp_conn_request() local [all...] |
| H A D | tcp_output.c | 55 void noinline tcp_mstamp_refresh(struct tcp_sock *tp) in tcp_mstamp_refresh() argument 57 tcp_mstamp_refresh_inline(tp); in tcp_mstamp_refresh() 86 struct tcp_sock *tp = tcp_sk(sk); in tcp_event_new_data_sent() local 87 unsigned int prior_packets = tp->packets_out; in tcp_event_new_data_sent() 89 WRITE_ONCE(tp->snd_nxt, TCP_SKB_CB(skb)->end_seq); in tcp_event_new_data_sent() 94 if (tp->highest_sack == NULL) in tcp_event_new_data_sent() 95 tp->highest_sack = skb; in tcp_event_new_data_sent() 97 tp->packets_out += tcp_skb_pcount(skb); in tcp_event_new_data_sent() 115 const struct tcp_sock *tp = tcp_sk(sk); in tcp_acceptable_seq() local 117 if (!before(tcp_wnd_end(tp), tp->snd_nxt) || in tcp_acceptable_seq() [all …]
|
| H A D | tcp_highspeed.c | 102 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() 130 if (tcp_snd_cwnd(tp) > hstcp_aimd_vals[ca->ai].cwnd) { in hstcp_cong_avoid() 131 while (tcp_snd_cwnd(tp) > hstcp_aimd_vals[ca->ai].cwnd && in hstcp_cong_avoid() 134 } else if (ca->ai && tcp_snd_cwnd(tp) <= hstcp_aimd_vals[ca->ai-1].cwnd) { in hstcp_cong_avoid() 135 while (ca->ai && tcp_snd_cwnd(tp) <= hstcp_aimd_vals[ca->ai-1].cwnd) in hstcp_cong_avoid() 140 if (tcp_snd_cwnd(tp) < tp->snd_cwnd_clamp) { in hstcp_cong_avoid() [all …]
|
| H A D | tcp_hybla.c | 48 struct tcp_sock *tp = tcp_sk(sk); in hybla_init() local 57 tcp_snd_cwnd_set(tp, 2); in hybla_init() 58 tp->snd_cwnd_clamp = 65535; in hybla_init() 64 ca->minrtt_us = tp->srtt_us; in hybla_init() 65 tcp_snd_cwnd_set(tp, ca->rho); in hybla_init() 92 struct tcp_sock *tp = tcp_sk(sk); in hybla_cong_avoid() local 98 if (tp->srtt_us < ca->minrtt_us) { in hybla_cong_avoid() 100 ca->minrtt_us = tp->srtt_us; in hybla_cong_avoid() 116 if (tcp_in_slow_start(tp)) { in hybla_cong_avoid() 140 increment = ca->rho2_7ls / tcp_snd_cwnd(tp); in hybla_cong_avoid() [all …]
|
| H A D | tcp.c | 388 static u64 tcp_compute_delivery_rate(const struct tcp_sock *tp) in tcp_compute_delivery_rate() argument 390 u32 rate = READ_ONCE(tp->rate_delivered); in tcp_compute_delivery_rate() 391 u32 intv = READ_ONCE(tp->rate_interval_us); in tcp_compute_delivery_rate() 395 rate64 = (u64)rate * tp->mss_cache * USEC_PER_SEC; in tcp_compute_delivery_rate() 404 struct tcp_sock *tp = tcp_sk(sk); in tcp_md5_destruct_sock() local 406 if (tp->md5sig_info) { in tcp_md5_destruct_sock() 409 kfree(rcu_replace_pointer(tp->md5sig_info, NULL, 1)); in tcp_md5_destruct_sock() 423 struct tcp_sock *tp = tcp_sk(sk); in tcp_init_sock() local 426 tp->out_of_order_queue = RB_ROOT; in tcp_init_sock() 429 INIT_LIST_HEAD(&tp->tsq_node); in tcp_init_sock() [all …]
|
| H A D | tcp_timer.c | 31 const struct tcp_sock *tp = tcp_sk(sk); in tcp_clamp_rto_to_user_timeout() local 39 elapsed = tcp_time_stamp_ts(tp) - tp->retrans_stamp; in tcp_clamp_rto_to_user_timeout() 40 if (tp->tcp_usec_ts) in tcp_clamp_rto_to_user_timeout() 109 struct tcp_sock *tp = tcp_sk(sk); in tcp_out_of_resources() local 114 if ((s32)(tcp_jiffies32 - tp->lsndtime) > 2*tcp_rto_max(sk) || !do_reset) in tcp_out_of_resources() 124 if ((s32)(tcp_jiffies32 - tp->lsndtime) <= TCP_TIMEWAIT_LEN || in tcp_out_of_resources() 126 (!tp->snd_wnd && !tp->packets_out)) in tcp_out_of_resources() 219 struct tcp_sock *tp = tcp_sk(sk); in retransmits_timed_out() local 225 start_ts = tp->retrans_stamp; in retransmits_timed_out() 234 if (tp->tcp_usec_ts) { in retransmits_timed_out() [all …]
|
| /linux/drivers/net/ethernet/chelsio/cxgb/ |
| H A D | tp.c | 54 void t1_tp_destroy(struct petp *tp) in t1_tp_destroy() argument 56 kfree(tp); in t1_tp_destroy() 61 struct petp *tp = kzalloc_obj(*tp); in t1_tp_create() local 63 if (!tp) in t1_tp_create() 66 tp->adapter = adapter; in t1_tp_create() 68 return tp; in t1_tp_create() 71 void t1_tp_intr_enable(struct petp *tp) in t1_tp_intr_enable() argument 73 u32 tp_intr = readl(tp->adapter->regs + A_PL_ENABLE); in t1_tp_intr_enable() 76 if (!t1_is_asic(tp->adapter)) { in t1_tp_intr_enable() 79 tp->adapter->regs + FPGA_TP_ADDR_INTERRUPT_ENABLE); in t1_tp_intr_enable() [all …]
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_defer.c | 189 struct xfs_trans *tp, in xfs_defer_barrier_create_intent() argument 206 struct xfs_trans *tp, in xfs_defer_barrier_create_done() argument 215 struct xfs_trans *tp, in xfs_defer_barrier_finish_item() argument 244 struct xfs_trans *tp, in xfs_defer_create_done() argument 260 tp->t_flags |= XFS_TRANS_DIRTY; in xfs_defer_create_done() 261 lip = dfp->dfp_ops->create_done(tp, dfp->dfp_intent, dfp->dfp_count); in xfs_defer_create_done() 265 tp->t_flags |= XFS_TRANS_HAS_INTENT_DONE; in xfs_defer_create_done() 266 xfs_trans_add_item(tp, lip); in xfs_defer_create_done() 278 struct xfs_trans *tp, in xfs_defer_create_intent() argument 287 lip = dfp->dfp_ops->create_intent(tp, &dfp->dfp_work, dfp->dfp_count, in xfs_defer_create_intent() [all …]
|
| /linux/tools/perf/util/ |
| H A D | cputopo.c | 35 static int build_cpu_topology(struct cpu_topology *tp, int cpu) in build_cpu_topology() argument 64 for (i = 0; i < tp->package_cpus_lists; i++) { in build_cpu_topology() 65 if (!strcmp(buf, tp->package_cpus_list[i])) in build_cpu_topology() 68 if (i == tp->package_cpus_lists) { in build_cpu_topology() 69 tp->package_cpus_list[i] = buf; in build_cpu_topology() 70 tp->package_cpus_lists++; in build_cpu_topology() 77 if (!tp->die_cpus_list) in build_cpu_topology() 95 for (i = 0; i < tp->die_cpus_lists; i++) { in build_cpu_topology() 96 if (!strcmp(buf, tp->die_cpus_list[i])) in build_cpu_topology() 99 if (i == tp in build_cpu_topology() 142 cpu_topology__delete(struct cpu_topology * tp) cpu_topology__delete() argument 258 struct cpu_topology *tp = NULL; cpu_topology__new() local 378 struct numa_topology *tp = NULL; numa_topology__new() local 427 numa_topology__delete(struct numa_topology * tp) numa_topology__delete() argument 474 struct hybrid_topology *tp = NULL; hybrid_topology__new() local 496 hybrid_topology__delete(struct hybrid_topology * tp) hybrid_topology__delete() argument [all...] |
| /linux/fs/xfs/ |
| H A D | xfs_trans_buf.c | 24 struct xfs_trans *tp, in xfs_trans_buf_item_match() argument 37 list_for_each_entry(lip, &tp->t_items, li_trans) { in xfs_trans_buf_item_match() 62 struct xfs_trans *tp, in _xfs_trans_bjoin() argument 75 xfs_buf_item_init(bp, tp->t_mountp); in _xfs_trans_bjoin() 92 xfs_trans_add_item(tp, &bip->bli_item); in _xfs_trans_bjoin() 93 bp->b_transp = tp; in _xfs_trans_bjoin() 99 struct xfs_trans *tp, in xfs_trans_bjoin() argument 102 _xfs_trans_bjoin(tp, bp, 0); in xfs_trans_bjoin() 117 struct xfs_trans *tp, in xfs_trans_get_buf_map() argument 129 if (!tp) in xfs_trans_get_buf_map() [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | bpf_cc_cubic.c | 40 const struct tcp_sock *tp = tcp_sk(sk); in before() 44 rate = (__u64)tp->mss_cache * ((USEC_PER_SEC / 100) << 3); in div64_u64() 50 * [1] : Normal Slow Start condition is (tp->snd_cwnd < tp->snd_ssthresh) in tcp_update_pacing_rate() 51 * If snd_cwnd >= (tp->snd_ssthresh / 2), we are approaching in tcp_update_pacing_rate() 54 if (tp->snd_cwnd < tp->snd_ssthresh / 2) in tcp_update_pacing_rate() 59 rate *= max(tp->snd_cwnd, tp->packets_out); in tcp_update_pacing_rate() 61 if (tp in tcp_update_pacing_rate() 49 const struct tcp_sock *tp = tcp_sk(sk); tcp_update_pacing_rate() local 79 struct tcp_sock *tp = tcp_sk(sk); tcp_cwnd_reduction() local 129 struct tcp_sock *tp = tcp_sk(sk); BPF_PROG() local [all...] |
| /linux/arch/sparc/kernel/ |
| H A D | windows.c | 42 static inline void shift_window_buffer(int first_win, int last_win, struct thread_info *tp) in shift_window_buffer() argument 47 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() 71 for(window = tp->w_saved - 1; window >= 0; window--) { in synchronize_user_stack() 72 unsigned long sp = tp->rwbuf_stkptrs[window]; in synchronize_user_stack() 75 if (copy_to_user((char __user *) sp, &tp->reg_window[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() [all …]
|
| /linux/net/sched/ |
| H A D | cls_api.c | 55 const struct tcf_proto *tp; member 77 tcf_exts_miss_cookie_base_alloc(struct tcf_exts *exts, struct tcf_proto *tp, in tcf_exts_miss_cookie_base_alloc() argument 84 if (WARN_ON(!handle || !tp->ops->get_exts)) in tcf_exts_miss_cookie_base_alloc() 91 n->chain_index = tp->chain->index; in tcf_exts_miss_cookie_base_alloc() 92 n->chain = tp->chain; in tcf_exts_miss_cookie_base_alloc() 93 n->tp_prio = tp->prio; in tcf_exts_miss_cookie_base_alloc() 94 n->tp = tp; in tcf_exts_miss_cookie_base_alloc() 133 tcf_exts_miss_cookie_base_alloc(struct tcf_exts *exts, struct tcf_proto *tp, in tcf_exts_miss_cookie_base_alloc() argument 172 static u32 destroy_obj_hashfn(const struct tcf_proto *tp) in destroy_obj_hashfn() argument 179 tcf_proto_signal_destroying(struct tcf_chain * chain,struct tcf_proto * tp) tcf_proto_signal_destroying() argument 198 tcf_proto_exists_destroying(struct tcf_chain * chain,struct tcf_proto * tp) tcf_proto_exists_destroying() argument 218 tcf_proto_signal_destroyed(struct tcf_chain * chain,struct tcf_proto * tp) tcf_proto_signal_destroyed() argument 334 tcf_auto_prio(struct tcf_proto * tp) tcf_auto_prio() argument 377 struct tcf_proto *tp; tcf_proto_create() local 409 tcf_proto_get(struct tcf_proto * tp) tcf_proto_get() argument 414 tcf_proto_count_usesw(struct tcf_proto * tp,bool add) tcf_proto_count_usesw() argument 443 tcf_proto_destroy(struct tcf_proto * tp,bool rtnl_held,bool sig_destroy,struct netlink_ext_ack * extack) tcf_proto_destroy() argument 470 tcf_proto_put(struct tcf_proto * tp,bool rtnl_held,struct netlink_ext_ack * extack) tcf_proto_put() argument 477 tcf_proto_check_delete(struct tcf_proto * tp) tcf_proto_check_delete() argument 486 tcf_proto_mark_delete(struct tcf_proto * tp) tcf_proto_mark_delete() argument 493 tcf_proto_is_deleting(struct tcf_proto * tp) tcf_proto_is_deleting() argument 766 struct tcf_proto *tp, *tp_next; tcf_chain_flush() local 1124 __tcf_get_next_proto(struct tcf_chain * chain,struct tcf_proto * tp) __tcf_get_next_proto() argument 1165 tcf_get_next_proto(struct tcf_chain * chain,struct tcf_proto * tp) tcf_get_next_proto() argument 1598 struct tcf_proto *tp, *tp_prev; tcf_block_playback_offloads() local 1728 __tcf_classify(struct sk_buff * skb,const struct tcf_proto * tp,const struct tcf_proto * orig_tp,struct tcf_result * res,bool compat_mode,struct tcf_exts_miss_cookie_node * n,int act_index,u32 * last_executed_chain) __tcf_classify() argument 1822 tcf_classify(struct sk_buff * skb,const struct tcf_block * block,const struct tcf_proto * tp,struct tcf_result * res,bool compat_mode) tcf_classify() argument 1915 tcf_chain_tp_insert(struct tcf_chain * chain,struct tcf_chain_info * chain_info,struct tcf_proto * tp) tcf_chain_tp_insert() argument 1931 tcf_chain_tp_remove(struct tcf_chain * chain,struct tcf_chain_info * chain_info,struct tcf_proto * tp) tcf_chain_tp_remove() argument 1958 struct tcf_proto *tp; tcf_chain_tp_insert_unique() local 1986 tcf_chain_tp_delete_empty(struct tcf_chain * chain,struct tcf_proto * tp,bool rtnl_held,struct netlink_ext_ack * extack) tcf_chain_tp_delete_empty() argument 2033 struct tcf_proto *tp; tcf_chain_tp_find() local 2066 tcf_fill_node(struct net * net,struct sk_buff * skb,struct tcf_proto * tp,struct tcf_block * block,struct Qdisc * q,u32 parent,void * fh,u32 portid,u32 seq,u16 flags,int event,bool terse_dump,bool rtnl_held,struct netlink_ext_ack * extack) tcf_fill_node() argument 2131 tfilter_notify_prep(struct net * net,struct sk_buff * oskb,struct nlmsghdr * n,struct tcf_proto * tp,struct tcf_block * block,struct Qdisc * q,u32 parent,void * fh,int event,u32 portid,bool rtnl_held,struct netlink_ext_ack * extack) tfilter_notify_prep() argument 2162 tfilter_notify(struct net * net,struct sk_buff * oskb,struct nlmsghdr * n,struct tcf_proto * tp,struct tcf_block * block,struct Qdisc * q,u32 parent,void * fh,int event,bool unicast,bool rtnl_held,struct netlink_ext_ack * extack) tfilter_notify() argument 2188 tfilter_del_notify(struct net * net,struct sk_buff * oskb,struct nlmsghdr * n,struct tcf_proto * tp,struct tcf_block * block,struct Qdisc * q,u32 parent,void * fh,bool * last,bool rtnl_held,struct netlink_ext_ack * extack) tfilter_del_notify() argument 2227 struct tcf_proto *tp; tfilter_notify_chain() local 2235 tfilter_put(struct tcf_proto * tp,void * fh) tfilter_put() argument 2273 struct tcf_proto *tp; tc_new_tfilter() local 2510 struct tcf_proto *tp = NULL; tc_del_tfilter() local 2669 struct tcf_proto *tp = NULL; tc_get_tfilter() local 2789 tcf_node_dump(struct tcf_proto * tp,void * n,struct tcf_walker * arg) tcf_node_dump() argument 2807 struct tcf_proto *tp, *tp_prev; tcf_chain_dump() local 3362 tcf_exts_init_ex(struct tcf_exts * exts,struct net * net,int action,int police,struct tcf_proto * tp,u32 handle,bool use_action_miss) tcf_exts_init_ex() argument 3416 tcf_exts_validate_ex(struct net * net,struct tcf_proto * tp,struct nlattr ** tb,struct nlattr * rate_tlv,struct tcf_exts * exts,u32 flags,u32 fl_flags,struct netlink_ext_ack * extack) tcf_exts_validate_ex() argument 3470 tcf_exts_validate(struct net * net,struct tcf_proto * tp,struct nlattr ** tb,struct nlattr * rate_tlv,struct tcf_exts * exts,u32 flags,struct netlink_ext_ack * extack) tcf_exts_validate() argument 3595 tc_cls_offload_cnt_update(struct tcf_block * block,struct tcf_proto * tp,u32 * cnt,u32 * flags,u32 diff,bool add) tc_cls_offload_cnt_update() argument 3614 tc_cls_offload_cnt_reset(struct tcf_block * block,struct tcf_proto * tp,u32 * cnt,u32 * flags) tc_cls_offload_cnt_reset() argument 3680 tc_setup_cb_add(struct tcf_block * block,struct tcf_proto * tp,enum tc_setup_type type,void * type_data,bool err_stop,u32 * flags,unsigned int * in_hw_count,bool rtnl_held) tc_setup_cb_add() argument 3730 tc_setup_cb_replace(struct tcf_block * block,struct tcf_proto * tp,enum tc_setup_type type,void * type_data,bool err_stop,u32 * old_flags,unsigned int * old_in_hw_count,u32 * new_flags,unsigned int * new_in_hw_count,bool rtnl_held) tc_setup_cb_replace() argument 3784 tc_setup_cb_destroy(struct tcf_block * block,struct tcf_proto * tp,enum tc_setup_type type,void * type_data,bool err_stop,u32 * flags,unsigned int * in_hw_count,bool rtnl_held) tc_setup_cb_destroy() argument 3818 tc_setup_cb_reoffload(struct tcf_block * block,struct tcf_proto * tp,bool add,flow_setup_cb_t * cb,enum tc_setup_type type,void * type_data,void * cb_priv,u32 * flags,unsigned int * in_hw_count) tc_setup_cb_reoffload() argument [all...] |
| H A D | cls_matchall.c | 29 const struct tcf_proto *tp, in mall_classify() argument 32 struct cls_mall_head *head = rcu_dereference_bh(tp->root); in mall_classify() 45 static int mall_init(struct tcf_proto *tp) in mall_init() argument 68 static void mall_destroy_hw_filter(struct tcf_proto *tp, in mall_destroy_hw_filter() argument 74 struct tcf_block *block = tp->chain->block; in mall_destroy_hw_filter() 76 tc_cls_common_offload_init(&cls_mall.common, tp, head->flags, extack); in mall_destroy_hw_filter() 80 tc_setup_cb_destroy(block, tp, TC_SETUP_CLSMATCHALL, &cls_mall, false, in mall_destroy_hw_filter() 84 static int mall_replace_hw_filter(struct tcf_proto *tp, in mall_replace_hw_filter() argument 90 struct tcf_block *block = tp->chain->block; in mall_replace_hw_filter() 98 tc_cls_common_offload_init(&cls_mall.common, tp, head->flags, extack); in mall_replace_hw_filter() [all …]
|
| /linux/kernel/trace/ |
| H A D | trace_fprobe.c | 194 struct trace_probe tp; member 235 return trace_probe_is_enabled(&tf->tp); in trace_fprobe_is_busy() 248 return trace_probe_match_command_args(&tf->tp, argc, argv); in trace_fprobe_match_command_head() 256 if (event[0] != '\0' && strcmp(trace_probe_name(&tf->tp), event)) in trace_fprobe_match() 259 if (system && strcmp(trace_probe_group_name(&tf->tp), system)) in trace_fprobe_match() 323 struct trace_event_call *call = trace_probe_event_call(&tf->tp); in NOKPROBE_SYMBOL() 333 dsize = __get_data_size(&tf->tp, fregs, NULL); in NOKPROBE_SYMBOL() 336 sizeof(*entry) + tf->tp.size + dsize); in NOKPROBE_SYMBOL() 343 store_trace_args(&entry[1], &tf->tp, fregs, NULL, sizeof(*entry), dsize); in NOKPROBE_SYMBOL() 354 trace_probe_for_each_link_rcu(link, &tf->tp) in fentry_trace_func() [all …]
|