/linux-6.6.21/drivers/s390/char/ |
D | con3270.c | 140 static void tty3270_set_timer(struct tty3270 *tp, int expires) in tty3270_set_timer() argument 142 mod_timer(&tp->timer, jiffies + expires); in tty3270_set_timer() 145 static int tty3270_tty_rows(struct tty3270 *tp) in tty3270_tty_rows() argument 147 return tp->view.rows - TTY3270_INPUT_AREA_ROWS; in tty3270_tty_rows() 150 static char *tty3270_add_ba(struct tty3270 *tp, char *cp, char order, int x, int y) in tty3270_add_ba() argument 153 raw3270_buffer_address(tp->view.dev, cp, x, y); in tty3270_add_ba() 157 static char *tty3270_add_ra(struct tty3270 *tp, char *cp, int x, int y, char c) in tty3270_add_ra() argument 159 cp = tty3270_add_ba(tp, cp, TO_RA, x, y); in tty3270_add_ra() 164 static char *tty3270_add_sa(struct tty3270 *tp, char *cp, char attr, char value) in tty3270_add_sa() argument 172 static char *tty3270_add_ge(struct tty3270 *tp, char *cp, char c) in tty3270_add_ge() argument [all …]
|
/linux-6.6.21/drivers/net/ethernet/realtek/ |
D | r8169_main.c | 80 #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 642 typedef void (*rtl_generic_fct)(struct rtl8169_private *tp); 669 static inline struct device *tp_to_dev(struct rtl8169_private *tp) in tp_to_dev() argument 671 return &tp->pci_dev->dev; in tp_to_dev() 674 static void rtl_lock_config_regs(struct rtl8169_private *tp) in rtl_lock_config_regs() argument [all …]
|
D | 8139too.c | 644 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-6.6.21/drivers/net/usb/ |
D | r8152.c | 888 void (*init)(struct r8152 *tp); 889 int (*enable)(struct r8152 *tp); 890 void (*disable)(struct r8152 *tp); 891 void (*up)(struct r8152 *tp); 892 void (*down)(struct r8152 *tp); 893 void (*unload)(struct r8152 *tp); 894 int (*eee_get)(struct r8152 *tp, struct ethtool_eee *eee); 895 int (*eee_set)(struct r8152 *tp, struct ethtool_eee *eee); 896 bool (*in_nway)(struct r8152 *tp); 897 void (*hw_phy_cfg)(struct r8152 *tp); [all …]
|
/linux-6.6.21/drivers/net/ethernet/broadcom/ |
D | tg3.c | 92 #define tg3_flag(tp, flag) \ argument 93 _tg3_flag(TG3_FLAG_##flag, (tp)->tg3_flags) 94 #define tg3_flag_set(tp, flag) \ argument 95 _tg3_flag_set(TG3_FLAG_##flag, (tp)->tg3_flags) 96 #define tg3_flag_clear(tp, flag) \ argument 97 _tg3_flag_clear(TG3_FLAG_##flag, (tp)->tg3_flags) 130 #define TG3_MAX_MTU(tp) \ argument 131 (tg3_flag(tp, JUMBO_CAPABLE) ? 9000 : 1500) 137 #define TG3_RX_STD_RING_SIZE(tp) \ argument 138 (tg3_flag(tp, LRG_PROD_RING_CAP) ? \ [all …]
|
/linux-6.6.21/fs/xfs/ |
D | xfs_trans.c | 66 struct xfs_trans *tp) in xfs_trans_free() argument 68 xfs_extent_busy_sort(&tp->t_busy); in xfs_trans_free() 69 xfs_extent_busy_clear(tp->t_mountp, &tp->t_busy, false); in xfs_trans_free() 71 trace_xfs_trans_free(tp, _RET_IP_); in xfs_trans_free() 72 xfs_trans_clear_context(tp); in xfs_trans_free() 73 if (!(tp->t_flags & XFS_TRANS_NO_WRITECOUNT)) in xfs_trans_free() 74 sb_end_intwrite(tp->t_mountp->m_super); in xfs_trans_free() 75 xfs_trans_free_dqinfo(tp); in xfs_trans_free() 76 kmem_cache_free(xfs_trans_cache, tp); in xfs_trans_free() 89 struct xfs_trans *tp) in xfs_trans_dup() argument [all …]
|
/linux-6.6.21/drivers/sbus/char/ |
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-6.6.21/drivers/net/ethernet/dec/tulip/ |
D | pnic2.c | 81 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 …]
|
D | tulip_core.c | 117 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 …]
|
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 …]
|
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 …]
|
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 …]
|
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 …]
|
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 …]
|
/linux-6.6.21/net/ipv4/ |
D | tcp_input.c | 335 static void tcp_ecn_queue_cwr(struct tcp_sock *tp) in tcp_ecn_queue_cwr() argument 337 if (tp->ecn_flags & TCP_ECN_OK) in tcp_ecn_queue_cwr() 338 tp->ecn_flags |= TCP_ECN_QUEUE_CWR; in tcp_ecn_queue_cwr() 355 static void tcp_ecn_withdraw_cwr(struct tcp_sock *tp) in tcp_ecn_withdraw_cwr() argument 357 tp->ecn_flags &= ~TCP_ECN_QUEUE_CWR; in tcp_ecn_withdraw_cwr() 362 struct tcp_sock *tp = tcp_sk(sk); in __tcp_ecn_check_ce() local 370 if (tp->ecn_flags & TCP_ECN_SEEN) in __tcp_ecn_check_ce() 377 if (!(tp->ecn_flags & TCP_ECN_DEMAND_CWR)) { in __tcp_ecn_check_ce() 380 tp->ecn_flags |= TCP_ECN_DEMAND_CWR; in __tcp_ecn_check_ce() 382 tp->ecn_flags |= TCP_ECN_SEEN; in __tcp_ecn_check_ce() [all …]
|
D | tcp_recovery.c | 7 const struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_reo_wnd() local 9 if (!tp->reord_seen) { in tcp_rack_reo_wnd() 16 if (tp->sacked_out >= tp->reordering && in tcp_rack_reo_wnd() 28 return min((tcp_min_rtt(tp) >> 2) * tp->rack.reo_wnd_steps, in tcp_rack_reo_wnd() 29 tp->srtt_us >> 3); in tcp_rack_reo_wnd() 32 s32 tcp_rack_skb_timeout(struct tcp_sock *tp, struct sk_buff *skb, u32 reo_wnd) in tcp_rack_skb_timeout() argument 34 return tp->rack.rtt_us + reo_wnd - in tcp_rack_skb_timeout() 35 tcp_stamp_us_delta(tp->tcp_mstamp, tcp_skb_timestamp_us(skb)); in tcp_rack_skb_timeout() 60 struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_detect_loss() local 66 list_for_each_entry_safe(skb, n, &tp->tsorted_sent_queue, in tcp_rack_detect_loss() [all …]
|
D | tcp_rate.c | 42 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.delivered_ce = tp->delivered_ce; in tcp_rate_skb_sent() 69 TCP_SKB_CB(skb)->tx.is_app_limited = tp->app_limited ? 1 : 0; in tcp_rate_skb_sent() 83 struct tcp_sock *tp = tcp_sk(sk); in tcp_rate_skb_delivered() local [all …]
|
D | tcp_output.c | 53 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 …]
|
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 …]
|
/linux-6.6.21/drivers/net/ethernet/sis/ |
D | sis190.c | 400 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 …]
|
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb/ |
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(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-6.6.21/tools/perf/util/ |
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->die_cpus_lists) { in build_cpu_topology() [all …]
|
/linux-6.6.21/drivers/net/ethernet/3com/ |
D | typhoon.c | 454 typhoon_hello(struct typhoon *tp) in typhoon_hello() argument 456 struct basic_ring *ring = &tp->cmdRing; in typhoon_hello() 463 if (spin_trylock(&tp->command_lock)) { in typhoon_hello() 469 iowrite32(ring->lastWrite, tp->ioaddr + TYPHOON_REG_CMD_READY); in typhoon_hello() 470 spin_unlock(&tp->command_lock); in typhoon_hello() 475 typhoon_process_response(struct typhoon *tp, int resp_size, in typhoon_process_response() argument 478 struct typhoon_indexes *indexes = tp->indexes; in typhoon_process_response() 480 u8 *base = tp->respRing.ringBase; in typhoon_process_response() 511 typhoon_media_status(tp->dev, resp); in typhoon_process_response() 513 typhoon_hello(tp); in typhoon_process_response() [all …]
|
/linux-6.6.21/drivers/pinctrl/intel/ |
D | pinctrl-tangier.c | 67 static const struct tng_family *tng_get_family(struct tng_pinctrl *tp, in tng_get_family() argument 73 for (i = 0; i < tp->nfamilies; i++) { in tng_get_family() 74 family = &tp->families[i]; in tng_get_family() 80 dev_warn(tp->dev, "failed to find family for pin %u\n", pin); in tng_get_family() 84 static bool tng_buf_available(struct tng_pinctrl *tp, unsigned int pin) in tng_buf_available() argument 88 family = tng_get_family(tp, pin); in tng_buf_available() 95 static void __iomem *tng_get_bufcfg(struct tng_pinctrl *tp, unsigned int pin) in tng_get_bufcfg() argument 100 family = tng_get_family(tp, pin); in tng_get_bufcfg() 108 static int tng_read_bufcfg(struct tng_pinctrl *tp, unsigned int pin, u32 *value) in tng_read_bufcfg() argument 112 if (!tng_buf_available(tp, pin)) in tng_read_bufcfg() [all …]
|
/linux-6.6.21/fs/xfs/libxfs/ |
D | xfs_defer.c | 201 struct xfs_trans *tp, in xfs_defer_create_intent() argument 211 lip = ops->create_intent(tp, &dfp->dfp_work, dfp->dfp_count, sort); in xfs_defer_create_intent() 231 struct xfs_trans *tp) in xfs_defer_create_intents() argument 236 list_for_each_entry(dfp, &tp->t_dfops, dfp_list) { in xfs_defer_create_intents() 239 trace_xfs_defer_create_intent(tp->t_mountp, dfp); in xfs_defer_create_intents() 240 ret2 = xfs_defer_create_intent(tp, dfp, true); in xfs_defer_create_intents() 270 struct xfs_trans *tp, in xfs_defer_trans_abort() argument 273 trace_xfs_defer_trans_abort(tp, _RET_IP_); in xfs_defer_trans_abort() 274 xfs_defer_pending_abort(tp->t_mountp, dop_pending); in xfs_defer_trans_abort() 284 struct xfs_trans *tp) in xfs_defer_save_resources() argument [all …]
|