Home
last modified time | relevance | path

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

12345678910>>...21

/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/realtek/
Dr8169_main.c80 #define RTL_W8(tp, reg, val8) writeb((val8), tp->mmio_addr + (reg)) argument
81 #define RTL_W16(tp, reg, val16) writew((val16), tp->mmio_addr + (reg)) argument
82 #define RTL_W32(tp, reg, val32) writel((val32), tp->mmio_addr + (reg)) argument
83 #define RTL_R8(tp, reg) readb(tp->mmio_addr + (reg)) argument
84 #define RTL_R16(tp, reg) readw(tp->mmio_addr + (reg)) argument
85 #define RTL_R32(tp, reg) readl(tp->mmio_addr + (reg)) argument
635 typedef void (*rtl_generic_fct)(struct rtl8169_private *tp);
664 static inline struct device *tp_to_dev(struct rtl8169_private *tp) in tp_to_dev() argument
666 return &tp->pci_dev->dev; in tp_to_dev()
669 static void rtl_lock_config_regs(struct rtl8169_private *tp) in rtl_lock_config_regs() 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 …]
/kernel/linux/linux-5.10/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)
129 #define TG3_MAX_MTU(tp) \ argument
130 (tg3_flag(tp, JUMBO_CAPABLE) ? 9000 : 1500)
136 #define TG3_RX_STD_RING_SIZE(tp) \ argument
137 (tg3_flag(tp, LRG_PROD_RING_CAP) ? \
[all …]
/kernel/linux/linux-5.10/drivers/net/usb/
Dr8152.c807 void (*init)(struct r8152 *tp);
808 int (*enable)(struct r8152 *tp);
809 void (*disable)(struct r8152 *tp);
810 void (*up)(struct r8152 *tp);
811 void (*down)(struct r8152 *tp);
812 void (*unload)(struct r8152 *tp);
813 int (*eee_get)(struct r8152 *tp, struct ethtool_eee *eee);
814 int (*eee_set)(struct r8152 *tp, struct ethtool_eee *eee);
815 bool (*in_nway)(struct r8152 *tp);
816 void (*hw_phy_cfg)(struct r8152 *tp);
[all …]
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_trans.c65 struct xfs_trans *tp) in xfs_trans_free() argument
67 xfs_extent_busy_sort(&tp->t_busy); in xfs_trans_free()
68 xfs_extent_busy_clear(tp->t_mountp, &tp->t_busy, false); in xfs_trans_free()
70 trace_xfs_trans_free(tp, _RET_IP_); in xfs_trans_free()
71 xfs_trans_clear_context(tp); in xfs_trans_free()
72 if (!(tp->t_flags & XFS_TRANS_NO_WRITECOUNT)) in xfs_trans_free()
73 sb_end_intwrite(tp->t_mountp->m_super); in xfs_trans_free()
74 xfs_trans_free_dqinfo(tp); in xfs_trans_free()
75 kmem_cache_free(xfs_trans_zone, tp); in xfs_trans_free()
88 struct xfs_trans *tp) in xfs_trans_dup() argument
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 = 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 …]
Dtulip_core.c117 struct tulip_private *tp = from_timer(tp, t, timer); in tulip_timer() local
118 struct net_device *dev = tp->dev; in tulip_timer()
121 schedule_work(&tp->media_work); in tulip_timer()
264 static void tulip_set_power_state (struct tulip_private *tp, in tulip_set_power_state() argument
267 if (tp->flags & HAS_ACPI) { in tulip_set_power_state()
269 pci_read_config_dword (tp->pdev, CFDD, &tmp); in tulip_set_power_state()
276 pci_write_config_dword (tp->pdev, CFDD, newtmp); in tulip_set_power_state()
284 struct tulip_private *tp = netdev_priv(dev); in tulip_up() local
285 void __iomem *ioaddr = tp->base_addr; in tulip_up()
291 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 …]
/kernel/linux/linux-5.10/net/ipv4/
Dtcp_input.c312 static void tcp_ecn_queue_cwr(struct tcp_sock *tp) in tcp_ecn_queue_cwr() argument
314 if (tp->ecn_flags & TCP_ECN_OK) in tcp_ecn_queue_cwr()
315 tp->ecn_flags |= TCP_ECN_QUEUE_CWR; in tcp_ecn_queue_cwr()
332 static void tcp_ecn_withdraw_cwr(struct tcp_sock *tp) in tcp_ecn_withdraw_cwr() argument
334 tp->ecn_flags &= ~TCP_ECN_QUEUE_CWR; in tcp_ecn_withdraw_cwr()
339 struct tcp_sock *tp = tcp_sk(sk); in __tcp_ecn_check_ce() local
347 if (tp->ecn_flags & TCP_ECN_SEEN) in __tcp_ecn_check_ce()
354 if (!(tp->ecn_flags & TCP_ECN_DEMAND_CWR)) { in __tcp_ecn_check_ce()
357 tp->ecn_flags |= TCP_ECN_DEMAND_CWR; in __tcp_ecn_check_ce()
359 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()
82 struct tcp_sock *tp = tcp_sk(sk); in tcp_rate_skb_delivered() local
91 tcp_skb_sent_after(tx_tstamp, tp->first_tx_mstamp, in tcp_rate_skb_delivered()
[all …]
Dtcp_recovery.c12 struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_reo_wnd() local
14 if (!tp->reord_seen) { in tcp_rack_reo_wnd()
21 if (tp->sacked_out >= tp->reordering && in tcp_rack_reo_wnd()
33 return min((tcp_min_rtt(tp) >> 2) * tp->rack.reo_wnd_steps, in tcp_rack_reo_wnd()
34 tp->srtt_us >> 3); in tcp_rack_reo_wnd()
37 s32 tcp_rack_skb_timeout(struct tcp_sock *tp, struct sk_buff *skb, u32 reo_wnd) in tcp_rack_skb_timeout() argument
39 return tp->rack.rtt_us + reo_wnd - in tcp_rack_skb_timeout()
40 tcp_stamp_us_delta(tp->tcp_mstamp, tcp_skb_timestamp_us(skb)); in tcp_rack_skb_timeout()
65 struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_detect_loss() local
71 list_for_each_entry_safe(skb, n, &tp->tsorted_sent_queue, in tcp_rack_detect_loss()
[all …]
Dtcp_output.c53 void tcp_mstamp_refresh(struct tcp_sock *tp) in tcp_mstamp_refresh() argument
57 tp->tcp_clock_cache = val; in tcp_mstamp_refresh()
58 tp->tcp_mstamp = div_u64(val, NSEC_PER_USEC); in tcp_mstamp_refresh()
68 struct tcp_sock *tp = tcp_sk(sk); in tcp_event_new_data_sent() local
69 unsigned int prior_packets = tp->packets_out; in tcp_event_new_data_sent()
71 WRITE_ONCE(tp->snd_nxt, TCP_SKB_CB(skb)->end_seq); in tcp_event_new_data_sent()
76 if (tp->highest_sack == NULL) in tcp_event_new_data_sent()
77 tp->highest_sack = skb; in tcp_event_new_data_sent()
79 tp->packets_out += tcp_skb_pcount(skb); in tcp_event_new_data_sent()
97 const struct tcp_sock *tp = tcp_sk(sk); in tcp_acceptable_seq() local
[all …]
Dtcp.c391 static u64 tcp_compute_delivery_rate(const struct tcp_sock *tp) in tcp_compute_delivery_rate() argument
393 u32 rate = READ_ONCE(tp->rate_delivered); in tcp_compute_delivery_rate()
394 u32 intv = READ_ONCE(tp->rate_interval_us); in tcp_compute_delivery_rate()
398 rate64 = (u64)rate * tp->mss_cache * USEC_PER_SEC; in tcp_compute_delivery_rate()
412 struct tcp_sock *tp = tcp_sk(sk); in tcp_init_sock() local
414 tp->out_of_order_queue = RB_ROOT; in tcp_init_sock()
417 INIT_LIST_HEAD(&tp->tsq_node); in tcp_init_sock()
418 INIT_LIST_HEAD(&tp->tsorted_sent_queue); in tcp_init_sock()
423 tp->mdev_us = jiffies_to_usecs(TCP_TIMEOUT_INIT); in tcp_init_sock()
424 minmax_reset(&tp->rtt_min, tcp_jiffies32, ~0U); in tcp_init_sock()
[all …]
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_defer.c185 struct xfs_trans *tp, in xfs_defer_create_intent() argument
192 dfp->dfp_intent = ops->create_intent(tp, &dfp->dfp_work, in xfs_defer_create_intent()
203 struct xfs_trans *tp) in xfs_defer_create_intents() argument
207 list_for_each_entry(dfp, &tp->t_dfops, dfp_list) { in xfs_defer_create_intents()
208 trace_xfs_defer_create_intent(tp->t_mountp, dfp); in xfs_defer_create_intents()
209 xfs_defer_create_intent(tp, dfp, true); in xfs_defer_create_intents()
216 struct xfs_trans *tp, in xfs_defer_trans_abort() argument
222 trace_xfs_defer_trans_abort(tp, _RET_IP_); in xfs_defer_trans_abort()
227 trace_xfs_defer_pending_abort(tp->t_mountp, dfp); in xfs_defer_trans_abort()
240 struct xfs_trans *tp = *tpp; in xfs_defer_trans_roll() local
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/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 = dma_map_single(&tp->pci_dev->dev, skb->data, tp->rx_buf_sz, in sis190_alloc_rx_skb()
499 if (dma_mapping_error(&tp->pci_dev->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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/3com/
Dtyphoon.c459 typhoon_hello(struct typhoon *tp) in typhoon_hello() argument
461 struct basic_ring *ring = &tp->cmdRing; in typhoon_hello()
468 if (spin_trylock(&tp->command_lock)) { in typhoon_hello()
474 iowrite32(ring->lastWrite, tp->ioaddr + TYPHOON_REG_CMD_READY); in typhoon_hello()
475 spin_unlock(&tp->command_lock); in typhoon_hello()
480 typhoon_process_response(struct typhoon *tp, int resp_size, in typhoon_process_response() argument
483 struct typhoon_indexes *indexes = tp->indexes; in typhoon_process_response()
485 u8 *base = tp->respRing.ringBase; in typhoon_process_response()
516 typhoon_media_status(tp->dev, resp); in typhoon_process_response()
518 typhoon_hello(tp); in typhoon_process_response()
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
Dtcp_nip_input.c195 static void tcp_nip_overlap_handle(struct tcp_sock *tp, struct sk_buff *skb) in tcp_nip_overlap_handle() argument
197 u32 diff = tp->rcv_nxt - TCP_SKB_CB(skb)->seq; in tcp_nip_overlap_handle()
230 static void tcp_nip_rcv_nxt_update(struct tcp_sock *tp, u32 seq) in tcp_nip_rcv_nxt_update() argument
232 u32 delta = seq - tp->rcv_nxt; in tcp_nip_rcv_nxt_update()
234 sock_owned_by_me((struct sock *)tp); in tcp_nip_rcv_nxt_update()
235 tp->bytes_received += delta; in tcp_nip_rcv_nxt_update()
236 WRITE_ONCE(tp->rcv_nxt, seq); in tcp_nip_rcv_nxt_update()
311 struct tcp_sock *tp = tcp_sk(sk); in tcp_nip_ofo_queue() local
319 p = rb_first(&tp->out_of_order_queue); in tcp_nip_ofo_queue()
322 if (after(TCP_SKB_CB(skb)->seq, tp->rcv_nxt)) { in tcp_nip_ofo_queue()
[all …]

12345678910>>...21