Home
last modified time | relevance | path

Searched refs:tp (Results 1 – 25 of 432) sorted by relevance

12345678910>>...18

/Linux-v5.4/drivers/net/ethernet/realtek/
Dr8169_main.c79 #define RTL_W8(tp, reg, val8) writeb((val8), tp->mmio_addr + (reg)) argument
80 #define RTL_W16(tp, reg, val16) writew((val16), tp->mmio_addr + (reg)) argument
81 #define RTL_W32(tp, reg, val32) writel((val32), tp->mmio_addr + (reg)) argument
82 #define RTL_R8(tp, reg) readb(tp->mmio_addr + (reg)) argument
83 #define RTL_R16(tp, reg) readw(tp->mmio_addr + (reg)) argument
84 #define RTL_R32(tp, reg) readl(tp->mmio_addr + (reg)) argument
690 typedef void (*rtl_generic_fct)(struct rtl8169_private *tp);
719 static inline struct device *tp_to_dev(struct rtl8169_private *tp) in tp_to_dev() argument
721 return &tp->pci_dev->dev; in tp_to_dev()
724 static void rtl_lock_work(struct rtl8169_private *tp) in rtl_lock_work() argument
[all …]
D8139too.c644 static void rtl8139_start_thread(struct rtl8139_private *tp);
720 struct rtl8139_private *tp = netdev_priv(dev); in __rtl8139_cleanup_dev() local
724 assert (tp->pci_dev != NULL); in __rtl8139_cleanup_dev()
725 pdev = tp->pci_dev; in __rtl8139_cleanup_dev()
727 if (tp->mmio_addr) in __rtl8139_cleanup_dev()
728 pci_iounmap (pdev, tp->mmio_addr); in __rtl8139_cleanup_dev()
759 struct rtl8139_private *tp; in rtl8139_init_board() local
776 dev = alloc_etherdev (sizeof (*tp)); in rtl8139_init_board()
782 tp = netdev_priv(dev); in rtl8139_init_board()
783 tp->pci_dev = pdev; in rtl8139_init_board()
[all …]
/Linux-v5.4/drivers/s390/char/
Dtty3270.c128 static void tty3270_set_timer(struct tty3270 *tp, int expires) in tty3270_set_timer() argument
130 mod_timer(&tp->timer, jiffies + expires); in tty3270_set_timer()
137 tty3270_update_prompt(struct tty3270 *tp, char *input, int count) in tty3270_update_prompt() argument
142 line = tp->prompt; in tty3270_update_prompt()
146 line->string[5] = tp->inattr; in tty3270_update_prompt()
147 if (count > tp->view.cols * 2 - 11) in tty3270_update_prompt()
148 count = tp->view.cols * 2 - 11; in tty3270_update_prompt()
152 if (count < tp->view.cols * 2 - 11) { in tty3270_update_prompt()
155 off = tp->view.cols * tp->view.rows - 9; in tty3270_update_prompt()
156 raw3270_buffer_address(tp->view.dev, line->string+count+8, off); in tty3270_update_prompt()
[all …]
/Linux-v5.4/drivers/net/ethernet/broadcom/
Dtg3.c91 #define tg3_flag(tp, flag) \ argument
92 _tg3_flag(TG3_FLAG_##flag, (tp)->tg3_flags)
93 #define tg3_flag_set(tp, flag) \ argument
94 _tg3_flag_set(TG3_FLAG_##flag, (tp)->tg3_flags)
95 #define tg3_flag_clear(tp, flag) \ argument
96 _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-v5.4/drivers/net/usb/
Dr8152.c749 void (*autosuspend_en)(struct r8152 *tp, bool enable);
828 int get_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data) in get_registers() argument
837 ret = usb_control_msg(tp->udev, usb_rcvctrlpipe(tp->udev, 0), in get_registers()
851 int set_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data) in set_registers() argument
860 ret = usb_control_msg(tp->udev, usb_sndctrlpipe(tp->udev, 0), in set_registers()
869 static void rtl_set_unplug(struct r8152 *tp) in rtl_set_unplug() argument
871 if (tp->udev->state == USB_STATE_NOTATTACHED) { in rtl_set_unplug()
872 set_bit(RTL8152_UNPLUG, &tp->flags); in rtl_set_unplug()
877 static int generic_ocp_read(struct r8152 *tp, u16 index, u16 size, in generic_ocp_read() argument
883 if (test_bit(RTL8152_UNPLUG, &tp->flags)) in generic_ocp_read()
[all …]
/Linux-v5.4/fs/xfs/
Dxfs_trans.c64 struct xfs_trans *tp) in xfs_trans_free() argument
66 xfs_extent_busy_sort(&tp->t_busy); in xfs_trans_free()
67 xfs_extent_busy_clear(tp->t_mountp, &tp->t_busy, false); in xfs_trans_free()
69 trace_xfs_trans_free(tp, _RET_IP_); in xfs_trans_free()
70 atomic_dec(&tp->t_mountp->m_active_trans); in xfs_trans_free()
71 if (!(tp->t_flags & XFS_TRANS_NO_WRITECOUNT)) in xfs_trans_free()
72 sb_end_intwrite(tp->t_mountp->m_super); in xfs_trans_free()
73 xfs_trans_free_dqinfo(tp); in xfs_trans_free()
74 kmem_zone_free(xfs_trans_zone, tp); in xfs_trans_free()
87 struct xfs_trans *tp) in xfs_trans_dup() argument
[all …]
/Linux-v5.4/drivers/sbus/char/
Dbbc_envctrl.c120 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-v5.4/drivers/net/ethernet/dec/tulip/
Dpnic2.c81 struct tulip_private *tp = from_timer(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 …]
Dinterrupt.c61 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 = pci_map_single(tp->pdev, skb->data, PKT_BUF_SZ, 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 …]
Dtulip_core.c128 struct tulip_private *tp = from_timer(tp, t, timer); in tulip_timer() local
129 struct net_device *dev = tp->dev; in tulip_timer()
132 schedule_work(&tp->media_work); in tulip_timer()
275 static void tulip_set_power_state (struct tulip_private *tp, in tulip_set_power_state() argument
278 if (tp->flags & HAS_ACPI) { in tulip_set_power_state()
280 pci_read_config_dword (tp->pdev, CFDD, &tmp); in tulip_set_power_state()
287 pci_write_config_dword (tp->pdev, CFDD, newtmp); in tulip_set_power_state()
295 struct tulip_private *tp = netdev_priv(dev); in tulip_up() local
296 void __iomem *ioaddr = tp->base_addr; in tulip_up()
302 napi_enable(&tp->napi); in tulip_up()
[all …]
D21142.c30 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 …]
Dtimer.c19 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 …]
Dpnic.c21 struct tulip_private *tp = netdev_priv(dev); in pnic_do_nway() local
22 void __iomem *ioaddr = tp->base_addr; in pnic_do_nway()
24 u32 new_csr6 = tp->csr6 & ~0x40C40200; 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()
[all …]
Dmedia.c49 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 …]
/Linux-v5.4/net/ipv4/
Dtcp_input.c248 static void tcp_ecn_queue_cwr(struct tcp_sock *tp) in tcp_ecn_queue_cwr() argument
250 if (tp->ecn_flags & TCP_ECN_OK) in tcp_ecn_queue_cwr()
251 tp->ecn_flags |= TCP_ECN_QUEUE_CWR; in tcp_ecn_queue_cwr()
267 static void tcp_ecn_withdraw_cwr(struct tcp_sock *tp) in tcp_ecn_withdraw_cwr() argument
269 tp->ecn_flags &= ~TCP_ECN_QUEUE_CWR; in tcp_ecn_withdraw_cwr()
274 struct tcp_sock *tp = tcp_sk(sk); in __tcp_ecn_check_ce() local
282 if (tp->ecn_flags & TCP_ECN_SEEN) in __tcp_ecn_check_ce()
289 if (!(tp->ecn_flags & TCP_ECN_DEMAND_CWR)) { in __tcp_ecn_check_ce()
292 tp->ecn_flags |= TCP_ECN_DEMAND_CWR; in __tcp_ecn_check_ce()
294 tp->ecn_flags |= TCP_ECN_SEEN; in __tcp_ecn_check_ce()
[all …]
Dtcp_rate.c42 struct tcp_sock *tp = tcp_sk(sk); in tcp_rate_skb_sent() local
58 if (!tp->packets_out) { in tcp_rate_skb_sent()
61 tp->first_tx_mstamp = tstamp_us; in tcp_rate_skb_sent()
62 tp->delivered_mstamp = tstamp_us; in tcp_rate_skb_sent()
65 TCP_SKB_CB(skb)->tx.first_tx_mstamp = tp->first_tx_mstamp; in tcp_rate_skb_sent()
66 TCP_SKB_CB(skb)->tx.delivered_mstamp = tp->delivered_mstamp; in tcp_rate_skb_sent()
67 TCP_SKB_CB(skb)->tx.delivered = tp->delivered; in tcp_rate_skb_sent()
68 TCP_SKB_CB(skb)->tx.is_app_limited = tp->app_limited ? 1 : 0; in tcp_rate_skb_sent()
81 struct tcp_sock *tp = tcp_sk(sk); in tcp_rate_skb_delivered() local
95 tp->first_tx_mstamp = tcp_skb_timestamp_us(skb); in tcp_rate_skb_delivered()
[all …]
Dtcp_recovery.c7 struct tcp_sock *tp = tcp_sk(sk); in tcp_mark_skb_lost() local
9 tcp_skb_mark_lost_uncond_verify(tp, skb); in tcp_mark_skb_lost()
13 tp->retrans_out -= tcp_skb_pcount(skb); in tcp_mark_skb_lost()
26 struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_reo_wnd() local
28 if (!tp->reord_seen) { in tcp_rack_reo_wnd()
35 if (tp->sacked_out >= tp->reordering && in tcp_rack_reo_wnd()
46 return min((tcp_min_rtt(tp) >> 2) * tp->rack.reo_wnd_steps, in tcp_rack_reo_wnd()
47 tp->srtt_us >> 3); in tcp_rack_reo_wnd()
50 s32 tcp_rack_skb_timeout(struct tcp_sock *tp, struct sk_buff *skb, u32 reo_wnd) in tcp_rack_skb_timeout() argument
52 return tp->rack.rtt_us + reo_wnd - in tcp_rack_skb_timeout()
[all …]
Dtcp_output.c52 void tcp_mstamp_refresh(struct tcp_sock *tp) in tcp_mstamp_refresh() argument
56 tp->tcp_clock_cache = val; in tcp_mstamp_refresh()
57 tp->tcp_mstamp = div_u64(val, NSEC_PER_USEC); in tcp_mstamp_refresh()
67 struct tcp_sock *tp = tcp_sk(sk); in tcp_event_new_data_sent() local
68 unsigned int prior_packets = tp->packets_out; in tcp_event_new_data_sent()
70 WRITE_ONCE(tp->snd_nxt, TCP_SKB_CB(skb)->end_seq); in tcp_event_new_data_sent()
75 tp->packets_out += tcp_skb_pcount(skb); in tcp_event_new_data_sent()
92 const struct tcp_sock *tp = tcp_sk(sk); in tcp_acceptable_seq() local
94 if (!before(tcp_wnd_end(tp), tp->snd_nxt) || in tcp_acceptable_seq()
95 (tp->rx_opt.wscale_ok && in tcp_acceptable_seq()
[all …]
Dtcp.c390 static u64 tcp_compute_delivery_rate(const struct tcp_sock *tp) in tcp_compute_delivery_rate() argument
392 u32 rate = READ_ONCE(tp->rate_delivered); in tcp_compute_delivery_rate()
393 u32 intv = READ_ONCE(tp->rate_interval_us); in tcp_compute_delivery_rate()
397 rate64 = (u64)rate * tp->mss_cache * USEC_PER_SEC; in tcp_compute_delivery_rate()
411 struct tcp_sock *tp = tcp_sk(sk); in tcp_init_sock() local
413 tp->out_of_order_queue = RB_ROOT; in tcp_init_sock()
416 INIT_LIST_HEAD(&tp->tsq_node); in tcp_init_sock()
417 INIT_LIST_HEAD(&tp->tsorted_sent_queue); in tcp_init_sock()
420 tp->mdev_us = jiffies_to_usecs(TCP_TIMEOUT_INIT); in tcp_init_sock()
421 minmax_reset(&tp->rtt_min, tcp_jiffies32, ~0U); in tcp_init_sock()
[all …]
Dtcp_yeah.c45 struct tcp_sock *tp = tcp_sk(sk); in tcp_yeah_init() local
57 tp->snd_cwnd_clamp = min_t(u32, tp->snd_cwnd_clamp, 0xffffffff/128); in tcp_yeah_init()
74 struct tcp_sock *tp = tcp_sk(sk); in tcp_yeah_cong_avoid() local
80 if (tcp_in_slow_start(tp)) in tcp_yeah_cong_avoid()
81 tcp_slow_start(tp, acked); in tcp_yeah_cong_avoid()
86 tp->snd_cwnd_cnt += yeah->pkts_acked; in tcp_yeah_cong_avoid()
87 if (tp->snd_cwnd_cnt > min(tp->snd_cwnd, TCP_SCALABLE_AI_CNT)) { in tcp_yeah_cong_avoid()
88 if (tp->snd_cwnd < tp->snd_cwnd_clamp) in tcp_yeah_cong_avoid()
89 tp->snd_cwnd++; in tcp_yeah_cong_avoid()
90 tp->snd_cwnd_cnt = 0; in tcp_yeah_cong_avoid()
[all …]
/Linux-v5.4/drivers/net/ethernet/sis/
Dsis190.c400 struct sis190_private *tp = netdev_priv(dev); in __mdio_write() local
402 mdio_write(tp->mmio_addr, phy_id, reg, val); in __mdio_write()
407 struct sis190_private *tp = netdev_priv(dev); in __mdio_read() local
409 return mdio_read(tp->mmio_addr, phy_id, reg); in __mdio_read()
487 static struct sk_buff *sis190_alloc_rx_skb(struct sis190_private *tp, in sis190_alloc_rx_skb() argument
490 u32 rx_buf_sz = tp->rx_buf_sz; in sis190_alloc_rx_skb()
494 skb = netdev_alloc_skb(tp->dev, rx_buf_sz); in sis190_alloc_rx_skb()
497 mapping = pci_map_single(tp->pci_dev, skb->data, tp->rx_buf_sz, in sis190_alloc_rx_skb()
499 if (pci_dma_mapping_error(tp->pci_dev, mapping)) in sis190_alloc_rx_skb()
512 static u32 sis190_rx_fill(struct sis190_private *tp, struct net_device *dev, in sis190_rx_fill() argument
[all …]
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb/
Dtp.c54 void t1_tp_destroy(struct petp *tp) in t1_tp_destroy() argument
56 kfree(tp); in t1_tp_destroy()
61 struct petp *tp = kzalloc(sizeof(*tp), GFP_KERNEL); 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-v5.4/fs/xfs/libxfs/
Dxfs_defer.c188 struct xfs_trans *tp) in xfs_defer_create_intents() argument
194 list_for_each_entry(dfp, &tp->t_dfops, dfp_list) { in xfs_defer_create_intents()
196 dfp->dfp_intent = ops->create_intent(tp, dfp->dfp_count); in xfs_defer_create_intents()
197 trace_xfs_defer_create_intent(tp->t_mountp, dfp); in xfs_defer_create_intents()
198 list_sort(tp->t_mountp, &dfp->dfp_work, ops->diff_items); in xfs_defer_create_intents()
200 ops->log_item(tp, dfp->dfp_intent, li); in xfs_defer_create_intents()
207 struct xfs_trans *tp, in xfs_defer_trans_abort() argument
213 trace_xfs_defer_trans_abort(tp, _RET_IP_); in xfs_defer_trans_abort()
218 trace_xfs_defer_pending_abort(tp->t_mountp, dfp); in xfs_defer_trans_abort()
231 struct xfs_trans *tp = *tpp; in xfs_defer_trans_roll() local
[all …]
/Linux-v5.4/drivers/net/ethernet/3com/
Dtyphoon.c460 typhoon_hello(struct typhoon *tp) in typhoon_hello() argument
462 struct basic_ring *ring = &tp->cmdRing; in typhoon_hello()
469 if(spin_trylock(&tp->command_lock)) { in typhoon_hello()
475 iowrite32(ring->lastWrite, tp->ioaddr + TYPHOON_REG_CMD_READY); in typhoon_hello()
476 spin_unlock(&tp->command_lock); in typhoon_hello()
481 typhoon_process_response(struct typhoon *tp, int resp_size, in typhoon_process_response() argument
484 struct typhoon_indexes *indexes = tp->indexes; in typhoon_process_response()
486 u8 *base = tp->respRing.ringBase; in typhoon_process_response()
517 typhoon_media_status(tp->dev, resp); in typhoon_process_response()
519 typhoon_hello(tp); in typhoon_process_response()
[all …]
/Linux-v5.4/tools/perf/util/
Dcputopo.c31 static int build_cpu_topology(struct cpu_topology *tp, int cpu) in build_cpu_topology() argument
56 for (i = 0; i < tp->core_sib; i++) { in build_cpu_topology()
57 if (!strcmp(buf, tp->core_siblings[i])) in build_cpu_topology()
60 if (i == tp->core_sib) { in build_cpu_topology()
61 tp->core_siblings[i] = buf; in build_cpu_topology()
62 tp->core_sib++; in build_cpu_topology()
69 if (!tp->die_siblings) in build_cpu_topology()
87 for (i = 0; i < tp->die_sib; i++) { in build_cpu_topology()
88 if (!strcmp(buf, tp->die_siblings[i])) in build_cpu_topology()
91 if (i == tp->die_sib) { in build_cpu_topology()
[all …]

12345678910>>...18