| /linux-6.15/drivers/s390/char/ |
| H A D | con3270.c | 199 return tp->screen + tty3270_line_increment(tp, tp->line_view_start, num - tp->nr_up); in tty3270_get_view_line() 1115 tp->screen = tty3270_alloc_screen(tp, tp->view.rows, tp->view.cols, in tty3270_create_view() 1381 tp->cx = min_t(int, tp->cx, tp->view.cols - 1); in tty3270_erase_characters() 1603 tty3270_goto_xy(tp, tp->saved_cx, tp->saved_cy); in tty3270_escape_sequence() 1681 tty3270_goto_xy(tp, tp->cx, tp->cy - tty3270_getpar(tp, 0)); in tty3270_escape_sequence() 1686 tty3270_goto_xy(tp, tp->cx, tp->cy + tty3270_getpar(tp, 0)); in tty3270_escape_sequence() 1690 tty3270_goto_xy(tp, tp->cx + tty3270_getpar(tp, 0), tp->cy); in tty3270_escape_sequence() 1693 tty3270_goto_xy(tp, tp->cx - tty3270_getpar(tp, 0), tp->cy); in tty3270_escape_sequence() 1715 tp->saved_cx = tp->cx; in tty3270_escape_sequence() 1716 tp->saved_cy = tp->cy; in tty3270_escape_sequence() [all …]
|
| /linux-6.15/drivers/net/ethernet/realtek/ |
| H A D | r8169_main.c | 1709 RTL_W16(tp, CPlusCmd, tp->cp_cmd); in rtl8169_set_features() 2063 RTL_W16(tp, CPlusCmd, tp->cp_cmd); in rtl_set_coalesce() 2494 r8169_hw_phy_config(tp, tp->phydev, tp->mac_version); in rtl8169_init_phy() 2574 tp->dirty_tx = tp->cur_tx = tp->cur_rx = 0; in rtl8169_init_ring_indexes() 2638 if (tp->rtl_fw || !tp->fw_name) in rtl_request_firmware() 3907 hw_configs[tp->mac_version](tp); in rtl_hw_config() 3965 RTL_W16(tp, CPlusCmd, tp->cp_cmd); in rtl_hw_start_8169() 3978 RTL_W16(tp, CPlusCmd, tp->cp_cmd); in rtl_hw_start() 4885 free_irq(tp->irq, tp); in rtl8169_close() 4906 rtl8169_interrupt(tp->irq, tp); in rtl8169_netpoll() [all …]
|
| H A D | 8139too.c | 1075 tp->mii.phy_id = tp->phys[0]; in rtl8139_init_one() 1340 tp->tx_bufs, tp->tx_bufs_dma); in rtl8139_open() 1343 tp->rx_ring, tp->rx_ring_dma); in rtl8139_open() 1351 tp->mii.full_duplex = tp->mii.force_media; in rtl8139_open() 1428 RTL_W32_F (TxAddr0 + (i * 4), tp->tx_bufs_dma + (tp->tx_buf[i] - tp->tx_bufs)); in rtl8139_hw_start() 1458 tp->tx_buf[i] = &tp->tx_bufs[i * TX_BUF_SIZE]; in rtl8139_init_ring() 1625 rtl8139_thread_iter(dev, tp, tp->mmio_addr); in rtl8139_thread() 1673 tp->cur_tx, tp->dirty_tx); in rtl8139_tx_timeout_task() 1753 if ((tp->cur_tx - NUM_TX_DESC) == tp->dirty_tx) in rtl8139_start_xmit() 2289 tp->rx_ring, tp->rx_ring_dma); in rtl8139_close() [all …]
|
| /linux-6.15/drivers/net/usb/ |
| H A D | r8152.c | 2181 tp, tp->intr_interval); in alloc_all_mem() 3820 rtl8152_set_speed(tp, tp->autoneg, tp->speed, in r8153b_ups_en() 3862 rtl8152_set_speed(tp, tp->autoneg, tp->speed, in r8153c_ups_en() 3911 rtl8152_set_speed(tp, tp->autoneg, tp->speed, in r8156_ups_en() 6915 rtl8152_set_speed(tp, tp->autoneg, tp->speed, tp->duplex, in rtl_hw_phy_work_func_t() 6971 tp->rtl_ops.up(tp); in rtl8152_open() 7028 tp->rtl_ops.down(tp); in rtl8152_close() 8562 tp->rtl_ops.up(tp); in rtl8152_system_resume() 8656 tp->rtl_ops.down(tp); in rtl8152_system_suspend() 8713 tp->rtl_ops.init(tp); in rtl8152_reset_resume() [all …]
|
| /linux-6.15/drivers/net/ethernet/broadcom/ |
| H A D | tg3.c | 570 tp->write32(tp, off, val); in _tw32_flush() 576 tp->read32(tp, off); in _tw32_flush() 591 tp->read32_mbox(tp, off); in tw32_mailbox_flush() 1041 struct tg3 *tp = tnapi->tp; in tg3_has_work() local 1070 struct tg3 *tp = tnapi->tp; in tg3_int_reenable() local 1544 tp->mdio_bus->priv = tp; in tg3_mdio_init() 2976 if (tp->pdev_peer && tp->pdev_peer != tp->pdev) { in tg3_frob_aux_power() 11569 tp->txq_cnt = tp->txq_req; in tg3_enable_msix() 11570 tp->rxq_cnt = tp->rxq_req; in tg3_enable_msix() 11599 tp->txq_cnt = min(tp->rxq_cnt, tp->txq_max); in tg3_enable_msix() [all …]
|
| /linux-6.15/fs/xfs/ |
| H A D | xfs_trans.c | 120 ASSERT(tp->t_blk_res >= tp->t_blk_res_used); in xfs_trans_dup() 121 ntp->t_blk_res = tp->t_blk_res - tp->t_blk_res_used; in xfs_trans_dup() 122 tp->t_blk_res = tp->t_blk_res_used; in xfs_trans_dup() 124 ntp->t_rtx_res = tp->t_rtx_res - tp->t_rtx_res_used; in xfs_trans_dup() 125 tp->t_rtx_res = tp->t_rtx_res_used; in xfs_trans_dup() 307 *tpp = tp; in xfs_trans_alloc() 381 if (tp->t_blk_res_used > tp->t_blk_res) in xfs_trans_mod_sb() 420 ASSERT(tp->t_rtx_res_used <= tp->t_rtx_res); in xfs_trans_mod_sb() 640 ASSERT(tp->t_blk_res || tp->t_fdblocks_delta >= 0); in xfs_trans_unreserve_and_mod_sb() 646 ASSERT(tp->t_rtx_res || tp->t_frextents_delta >= 0); in xfs_trans_unreserve_and_mod_sb() [all …]
|
| /linux-6.15/drivers/sbus/char/ |
| H A D | bbc_envctrl.c | 122 tp->prev_amb_temp = tp->curr_amb_temp; in get_current_temps() 126 tp->prev_cpu_temp = tp->curr_cpu_temp; in get_current_temps() 178 tp->index, (int) tp->curr_amb_temp); in analyze_ambient_temp() 184 tp->index, (int) tp->curr_amb_temp); in analyze_ambient_temp() 233 tp->index, (int) tp->curr_cpu_temp); in analyze_cpu_temp() 239 tp->index, (int) tp->curr_cpu_temp); in analyze_cpu_temp() 281 tp->avg_amb_temp = (s8)((int)((int)tp->avg_amb_temp + (int)tp->curr_amb_temp) / 2); in analyze_temps() 282 tp->avg_cpu_temp = (s8)((int)((int)tp->avg_cpu_temp + (int)tp->curr_cpu_temp) / 2); in analyze_temps() 451 tp = kzalloc(sizeof(*tp), GFP_KERNEL); in attach_one_temp() 487 tp->prev_cpu_temp = tp->avg_cpu_temp = tp->curr_cpu_temp; in attach_one_temp() [all …]
|
| /linux-6.15/drivers/net/ethernet/dec/tulip/ |
| H A D | pnic2.c | 81 struct tulip_private *tp = from_timer(tp, t, timer); in pnic2_timer() local 130 tp->nway = tp->mediasense = 1; in pnic2_start_nway() 131 tp->nwayset = tp->lpar = 0; in pnic2_start_nway() 142 tp->csr6 = tp->csr6 & 0xfe3bd1fd; in pnic2_start_nway() 146 if (tp->sym_advertise & 0x0040) tp->csr6 |= 0x00000200; in pnic2_start_nway() 187 if (tp->nway && !tp->nwayset) { in pnic2_lnk_change() 217 tp->nwayset = 0; in pnic2_lnk_change() 224 tp->full_duplex = 0; in pnic2_lnk_change() 233 tp->sym_advertise, tp->lpar, in pnic2_lnk_change() 265 if (tp->full_duplex) tp->csr6 |= 0x00000200; in pnic2_lnk_change() [all …]
|
| H A D | tulip_core.c | 117 struct tulip_private *tp = from_timer(tp, t, timer); in tulip_timer() local 303 if (tp->mii_cnt || (tp->mtable && tp->mtable->has_mii)) in tulip_up() 323 tp->cur_rx = tp->cur_tx = 0; in tulip_up() 324 tp->dirty_rx = tp->dirty_tx = 0; in tulip_up() 356 tp->tx_buffers[tp->cur_tx].skb = NULL; in tulip_up() 357 tp->tx_buffers[tp->cur_tx].mapping = mapping; in tulip_up() 469 tp->csr6 = tp->mii_cnt ? 0x00040100 : 0x00000100; in tulip_up() 1129 if (tp->cur_tx - tp->dirty_tx > TX_RING_SIZE - 2) { in set_rx_mode() 1666 (tp->mtable && tp->mtable->has_mii) || in tulip_init_one() 1667 ( ! tp->mtable && (tp->flags & HAS_MII))) { in tulip_init_one() [all …]
|
| H A D | interrupt.c | 66 for (; tp->cur_rx - tp->dirty_rx > 0; tp->dirty_rx++) { in tulip_refill_rx() 107 struct tulip_private *tp = from_timer(tp, t, oom_timer); in oom_timer() local 148 if (tp->dirty_rx + RX_RING_SIZE == tp->cur_rx) in tulip_poll() 327 iowrite32(tulip_tbl[tp->chip_id].valid_intrs, tp->base_addr+CSR7); in tulip_poll() 343 if (tp->cur_rx - tp->dirty_rx > RX_RING_SIZE/2 || in tulip_poll() 373 int rx_work_limit = tp->dirty_rx + RX_RING_SIZE - tp->cur_rx; in tulip_rx() 552 tp->nir++; in tulip_interrupt() 595 for (dirty_tx = tp->dirty_tx; tp->cur_tx - dirty_tx > 0; in tulip_interrupt() 669 tp->csr6); in tulip_interrupt() 793 tp->nir, tp->cur_rx, tp->ttimer, rx); [all …]
|
| H A D | 21142.c | 119 tp->nway = tp->mediasense = 1; in t21142_start_nway() 120 tp->nwayset = tp->lpar = 0; in t21142_start_nway() 129 if (tp->mtable && tp->mtable->csr15dir) { in t21142_start_nway() 155 if (tp->nway && !tp->nwayset && (csr12 & 0x7000) == 0x5000) { in t21142_lnk_change() 159 tp->nwayset = 1; in t21142_lnk_change() 167 tp->nwayset = 0; in t21142_lnk_change() 174 if (tp->nwayset) in t21142_lnk_change() 178 tp->sym_advertise, tp->lpar, in t21142_lnk_change() 186 if (tp->mtable) { in t21142_lnk_change() 190 int startup = ! ((tp->chip_id == DC21143 && (tp->revision == 48 || tp->revision == 65))); in t21142_lnk_change() [all …]
|
| H A D | timer.c | 19 struct tulip_private *tp = in tulip_media_task() local 34 switch (tp->chip_id) { in tulip_media_task() 53 mleaf = &tp->mtable->mleaf[tp->cur_index]; in tulip_media_task() 87 if (tp->medialock) 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() 100 medianame[tp->mtable->mleaf[tp->cur_index].media]); in tulip_media_task() 103 tulip_restart_rxtx(tp); in tulip_media_task() 129 tp->timeout_recovery = 0; in tulip_media_task() 142 struct tulip_private *tp = from_timer(tp, t, timer); in mxic_timer() local [all …]
|
| H A D | pnic.c | 31 tp->nwayset = 1; in pnic_do_nway() 37 tp->full_duplex = 1; in pnic_do_nway() 44 tp->csr6 = new_csr6; in pnic_do_nway() 46 tulip_restart_rxtx(tp); in pnic_do_nway() 69 tp->csr6 = 0x00420000 | (tp->csr6 & 0x0000fdff); in pnic_lnk_change() 77 spin_lock(&tp->lock); in pnic_lnk_change() 79 spin_unlock(&tp->lock); in pnic_lnk_change() 89 struct tulip_private *tp = from_timer(tp, t, timer); in pnic_timer() local 120 tp->nwayset = 0; in pnic_timer() 132 if (tp->medialock) { in pnic_timer() [all …]
|
| /linux-6.15/drivers/net/ethernet/realtek/rtase/ |
| H A D | rtase_main.c | 208 struct rtase_private *tp = ring->ivec->tp; in rtase_tx_clear_range() local 264 const struct rtase_private *tp = ring->ivec->tp; in tx_handler() local 370 const struct rtase_private *tp = ivec->tp; in rtase_alloc_rx_data_buf() local 485 struct rtase_private *tp = ring->ivec->tp; in rx_handler() local 976 rtase_w16(tp, RTASE_RMS, tp->rx_buf_sz); in rtase_hw_config() 1027 tp = ivec->tp; in rtase_interrupt() 1049 tp = ivec->tp; in rtase_q_interrupt() 1069 tp = ivec->tp; in rtase_poll() 1887 tp->int_vector[0].tp = tp; in rtase_init_int_vector() 1904 tp->int_vector[i].tp = tp; in rtase_init_int_vector() [all …]
|
| /linux-6.15/net/ipv4/ |
| H A D | tcp_input.c | 606 tp->rcv_ssthresh = min(tp->rcv_ssthresh, tp->window_clamp); in tcp_init_buffer_space() 608 tp->rcvq_space.space = min3(tp->rcv_ssthresh, tp->rcv_wnd, in tcp_init_buffer_space() 631 tp->rcv_ssthresh = min(tp->window_clamp, 2U * tp->advmss); in tcp_clamp_window() 711 tp->rcv_rtt_est.seq = tp->rcv_nxt + tp->rcv_wnd; in tcp_rcv_rtt_measure() 938 tp->rtt_seq = tp->snd_nxt; in tcp_rtt_estimator() 949 tp->rtt_seq = tp->snd_nxt; in tcp_rtt_estimator() 2234 tp->high_seq = tp->snd_nxt; in tcp_enter_loss() 2609 if (tp->snd_una == tp->high_seq && tcp_is_reno(tp)) { in tcp_is_non_sack_preventing_reopen() 3003 tp->snd_una + tp->reordering * tp->mss_cache); in tcp_force_fast_retransmit() 3453 tp->snd_up = tp->snd_una; in tcp_clean_rtx_queue() [all …]
|
| H A D | tcp_recovery.c | 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() 100 if (!tp->rack.advanced) in tcp_rack_mark_lost() 104 tp->rack.advanced = 0; in tcp_rack_mark_lost() 137 tp->rack.advanced = 1; in tcp_rack_advance() 138 tp->rack.rtt_us = rtt_us; in tcp_rack_advance() 153 u32 lost = tp->lost; in tcp_rack_reo_timeout() 205 tp->rack.last_delivered = tp->delivered; in tcp_rack_update_reo_wnd() [all …]
|
| H A 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() 124 if (tp->app_limited && after(tp->delivered, tp->app_limited)) in tcp_rate_gen() 125 tp->app_limited = 0; in tcp_rate_gen() 132 tp->delivered_mstamp = tp->tcp_mstamp; in tcp_rate_gen() 178 tp->rx_opt.sack_ok, tcp_min_rtt(tp)); in tcp_rate_gen() 199 tp->write_seq - tp->snd_nxt < tp->mss_cache && in tcp_rate_check_app_limited() 203 tcp_packets_in_flight(tp) < tcp_snd_cwnd(tp) && in tcp_rate_check_app_limited() 205 tp->lost_out <= tp->retrans_out) in tcp_rate_check_app_limited() 206 tp->app_limited = in tcp_rate_check_app_limited() [all …]
|
| H A D | tcp_output.c | 103 ((tp->snd_nxt - tcp_wnd_end(tp)) < (1 << tp->rx_opt.rcv_wscale)))) in tcp_acceptable_seq() 273 tp->rcv_wup = tp->rcv_nxt; in tcp_select_window() 296 tp->rcv_wup = tp->rcv_nxt; in tcp_select_window() 422 return tp->snd_una != tp->snd_up; in tcp_urg_mode() 1316 tp->tcp_wstamp_ns = max(tp->tcp_wstamp_ns, tp->tcp_clock_cache); in __tcp_transmit_skb() 2999 tp->tlp_high_seq = tp->snd_nxt; in tcp_send_loss_probe() 3933 tp->rcv_ssthresh = tp->rcv_wnd; in tcp_connect_init() 3940 tp->snd_una = tp->write_seq; in tcp_connect_init() 3941 tp->snd_sml = tp->write_seq; in tcp_connect_init() 3942 tp->snd_up = tp->write_seq; in tcp_connect_init() [all …]
|
| /linux-6.15/drivers/misc/mei/ |
| H A D | vsc-tp.c | 117 tp->event_notify(tp->event_notify_context); in vsc_tp_thread_isr() 338 ret = vsc_tp_dev_xfer(tp, tp->tx_buf, ibuf ? tp->rx_buf : NULL, len); in vsc_tp_rom_xfer() 436 free_irq(tp->spi->irq, tp); in vsc_tp_free_irq() 484 .data = &tp, in vsc_tp_probe() 493 tp = devm_kzalloc(dev, sizeof(*tp), GFP_KERNEL); in vsc_tp_probe() 494 if (!tp) in vsc_tp_probe() 497 tp->tx_buf = devm_kzalloc(dev, sizeof(*tp->tx_buf), GFP_KERNEL); in vsc_tp_probe() 498 if (!tp->tx_buf) in vsc_tp_probe() 502 if (!tp->rx_buf) in vsc_tp_probe() 523 tp->spi = spi; in vsc_tp_probe() [all …]
|
| /linux-6.15/drivers/net/ethernet/sis/ |
| H A D | sis190.c | 523 tp->Rx_skbuff[i] = sis190_alloc_rx_skb(tp, tp->RxDescRing + i); in sis190_rx_fill() 545 dma_sync_single_for_cpu(&tp->pci_dev->dev, addr, tp->rx_buf_sz, in sis190_try_rx_copy() 641 delta = sis190_rx_fill(tp, dev, tp->dirty_rx, tp->cur_rx); in sis190_rx_interrupt() 646 if ((tp->dirty_rx + NUM_RX_DESC) == tp->cur_rx) in sis190_rx_interrupt() 805 sis190_free_rx_skb(tp, tp->Rx_skbuff + i, tp->RxDescRing + i); in sis190_rx_clear() 811 tp->dirty_tx = tp->dirty_rx = tp->cur_tx = tp->cur_rx = 0; in sis190_init_ring_indexes() 1026 struct sis190_private *tp = from_timer(tp, t, timer); in sis190_phy_timer() local 1121 sis190_unmap_tx_skb(tp->pci_dev, skb, tp->TxDescRing + i); in sis190_tx_clear() 1127 tp->cur_tx = tp->dirty_tx = 0; in sis190_tx_clear() 1236 tp->cur_tx++; in sis190_start_xmit() [all …]
|
| /linux-6.15/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(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() 76 if (!t1_is_asic(tp->adapter)) { in t1_tp_intr_enable() 97 if (!t1_is_asic(tp->adapter)) { in t1_tp_intr_disable() 114 if (!t1_is_asic(tp->adapter)) { in t1_tp_intr_clear() 131 if (!t1_is_asic(tp->adapter)) in t1_tp_intr_handler() [all …]
|
| /linux-6.15/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 243 struct xfs_trans *tp, in xfs_defer_create_done() argument 277 struct xfs_trans *tp, in xfs_defer_create_intent() argument 310 struct xfs_trans *tp) in xfs_defer_create_intents() argument 376 struct xfs_trans *tp, in xfs_defer_trans_abort() argument 764 struct xfs_trans *tp) in xfs_defer_cancel() argument 769 xfs_defer_trans_abort(tp, &tp->t_dfops); in xfs_defer_cancel() 995 dfc->dfc_blkres = tp->t_blk_res - tp->t_blk_res_used; in xfs_defer_ops_capture() [all …]
|
| /linux-6.15/tools/perf/util/ |
| H A D | cputopo.c | 146 if (!tp) in cpu_topology__delete() 158 free(tp); in cpu_topology__delete() 287 tp = addr; in cpu_topology__new() 312 return tp; in cpu_topology__new() 406 tp = zalloc(sizeof(*tp) + sizeof(tp->nodes[0])*nr); in numa_topology__new() 407 if (!tp) in numa_topology__new() 424 return tp; in numa_topology__new() 434 free(tp); in numa_topology__delete() 480 tp = zalloc(sizeof(*tp) + sizeof(tp->nodes[0]) * nr); in hybrid_topology__new() 481 if (!tp) in hybrid_topology__new() [all …]
|
| /linux-6.15/drivers/net/ethernet/3com/ |
| H A D | typhoon.c | 1223 tp->indexes = &tp->shared->indexes; in typhoon_init_interface() 1224 tp->txLoRing.ringBase = (u8 *) tp->shared->txLo; in typhoon_init_interface() 1225 tp->txHiRing.ringBase = (u8 *) tp->shared->txHi; in typhoon_init_interface() 1226 tp->rxLoRing.ringBase = (u8 *) tp->shared->rxLo; in typhoon_init_interface() 1227 tp->rxHiRing.ringBase = (u8 *) tp->shared->rxHi; in typhoon_init_interface() 1228 tp->rxBuffRing.ringBase = (u8 *) tp->shared->rxBuff; in typhoon_init_interface() 1229 tp->cmdRing.ringBase = (u8 *) tp->shared->cmd; in typhoon_init_interface() 1230 tp->respRing.ringBase = (u8 *) tp->shared->resp; in typhoon_init_interface() 2028 typhoon_clean_tx(tp, &tp->txLoRing, &tp->indexes->txLoCleared); in typhoon_tx_timeout() 2199 if (typhoon_sleep_early(tp, tp->wol_events) < 0) { in typhoon_suspend() [all …]
|
| /linux-6.15/drivers/pinctrl/intel/ |
| H A D | pinctrl-tangier.c | 75 family = &tp->families[i]; in tng_get_family() 139 return tp->ngroups; in tng_get_groups_count() 193 return tp->nfunctions; in tng_get_functions_count() 526 struct tng_pinctrl *tp; in tng_pinctrl_probe() local 531 if (!tp) in tng_pinctrl_probe() 534 tp->dev = dev; in tng_pinctrl_probe() 545 families = devm_kmemdup_array(dev, tp->families, tp->nfamilies, in tng_pinctrl_probe() 557 tp->families = families; in tng_pinctrl_probe() 560 tp->pctldesc.pins = tp->pins; in tng_pinctrl_probe() 561 tp->pctldesc.npins = tp->npins; in tng_pinctrl_probe() [all …]
|