/linux/drivers/s390/char/ |
H A D | con3270.c | 198 return tp->screen + tty3270_line_increment(tp, tp->line_view_start, num - tp->nr_up); in tty3270_get_view_line() 1114 tp->screen = tty3270_alloc_screen(tp, tp->view.rows, tp->view.cols, in tty3270_create_view() 1380 tp->cx = min_t(int, tp->cx, tp->view.cols - 1); in tty3270_erase_characters() 1602 tty3270_goto_xy(tp, tp->saved_cx, tp->saved_cy); in tty3270_escape_sequence() 1680 tty3270_goto_xy(tp, tp->cx, tp->cy - tty3270_getpar(tp, 0)); in tty3270_escape_sequence() 1685 tty3270_goto_xy(tp, tp->cx, tp->cy + tty3270_getpar(tp, 0)); in tty3270_escape_sequence() 1689 tty3270_goto_xy(tp, tp->cx + tty3270_getpar(tp, 0), tp->cy); in tty3270_escape_sequence() 1692 tty3270_goto_xy(tp, tp->cx - tty3270_getpar(tp, 0), tp->cy); in tty3270_escape_sequence() 1714 tp->saved_cx = tp->cx; in tty3270_escape_sequence() 1715 tp->saved_cy = tp->cy; in tty3270_escape_sequence() [all …]
|
/linux/drivers/net/ethernet/realtek/ |
H A D | r8169_main.c | 1701 RTL_W16(tp, CPlusCmd, tp->cp_cmd); in rtl8169_set_features() 2055 RTL_W16(tp, CPlusCmd, tp->cp_cmd); in rtl_set_coalesce() 2401 r8169_hw_phy_config(tp, tp->phydev, tp->mac_version); in rtl8169_init_phy() 2482 tp->dirty_tx = tp->cur_tx = tp->cur_rx = 0; in rtl8169_init_ring_indexes() 2601 if (tp->rtl_fw || !tp->fw_name) in rtl_request_firmware() 3829 hw_configs[tp->mac_version](tp); in rtl_hw_config() 3880 RTL_W16(tp, CPlusCmd, tp->cp_cmd); in rtl_hw_start_8169() 3893 RTL_W16(tp, CPlusCmd, tp->cp_cmd); in rtl_hw_start() 4816 free_irq(tp->irq, tp); in rtl8169_close() 4837 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() 1751 if ((tp->cur_tx - NUM_TX_DESC) == tp->dirty_tx) in rtl8139_start_xmit() 2287 tp->rx_ring, tp->rx_ring_dma); in rtl8139_close() [all …]
|
/linux/drivers/net/usb/ |
H A D | r8152.c | 2179 tp, tp->intr_interval); in alloc_all_mem() 3818 rtl8152_set_speed(tp, tp->autoneg, tp->speed, in r8153b_ups_en() 3860 rtl8152_set_speed(tp, tp->autoneg, tp->speed, in r8153c_ups_en() 3909 rtl8152_set_speed(tp, tp->autoneg, tp->speed, in r8156_ups_en() 6904 rtl8152_set_speed(tp, tp->autoneg, tp->speed, tp->duplex, in rtl_hw_phy_work_func_t() 6960 tp->rtl_ops.up(tp); in rtl8152_open() 7017 tp->rtl_ops.down(tp); in rtl8152_close() 8551 tp->rtl_ops.up(tp); in rtl8152_system_resume() 8632 tp->rtl_ops.down(tp); in rtl8152_system_suspend() 8682 tp->rtl_ops.init(tp); in rtl8152_reset_resume() [all …]
|
/linux/drivers/net/ethernet/broadcom/ |
H A D | tg3.c | 569 tp->write32(tp, off, val); in _tw32_flush() 575 tp->read32(tp, off); in _tw32_flush() 590 tp->read32_mbox(tp, off); in tw32_mailbox_flush() 1040 struct tg3 *tp = tnapi->tp; in tg3_has_work() local 1069 struct tg3 *tp = tnapi->tp; in tg3_int_reenable() local 1543 tp->mdio_bus->priv = tp; in tg3_mdio_init() 2975 if (tp->pdev_peer && tp->pdev_peer != tp->pdev) { in tg3_frob_aux_power() 11532 tp->txq_cnt = tp->txq_req; in tg3_enable_msix() 11533 tp->rxq_cnt = tp->rxq_req; in tg3_enable_msix() 11562 tp->txq_cnt = min(tp->rxq_cnt, tp->txq_max); in tg3_enable_msix() [all …]
|
/linux/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/fs/xfs/ |
H A D | xfs_trans.c | 70 xfs_extent_busy_clear(tp->t_mountp, &tp->t_busy, false); in xfs_trans_free() 119 ASSERT(tp->t_blk_res >= tp->t_blk_res_used); in xfs_trans_dup() 120 ntp->t_blk_res = tp->t_blk_res - tp->t_blk_res_used; in xfs_trans_dup() 121 tp->t_blk_res = tp->t_blk_res_used; in xfs_trans_dup() 123 ntp->t_rtx_res = tp->t_rtx_res - tp->t_rtx_res_used; in xfs_trans_dup() 124 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() 614 ASSERT(tp->t_blk_res || tp->t_fdblocks_delta >= 0); in xfs_trans_unreserve_and_mod_sb() [all …]
|
/linux/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() 1669 (tp->mtable && tp->mtable->has_mii) || in tulip_init_one() 1670 ( ! 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 …]
|
H A D | media.c | 312 tp->mii_advertise = tp->advertising[phy_num]; in tulip_select_media() 317 tulip_mdio_write(dev, tp->phys[phy_num], 4, tp->mii_advertise); in tulip_select_media() 351 if (tp->mii_cnt) { in tulip_select_media() 386 tp->csr6 = new_csr6 | (tp->csr6 & 0xfdff) | (tp->full_duplex ? 0x0200 : 0); in tulip_select_media() 420 tp->full_duplex = mii_duplex(tp->full_duplex_lock, negotiated); in tulip_check_duplex() 422 new_csr6 = tp->csr6; in tulip_check_duplex() 430 tp->csr6 = new_csr6; in tulip_check_duplex() 486 tp->mii_advertise = in tulip_find_mii() 522 if (tp->full_duplex) in tulip_find_mii() 542 if (tp->mtable && tp->mtable->has_mii && phy_idx == 0) { in tulip_find_mii() [all …]
|
/linux/net/ipv4/ |
H A D | tcp_input.c | 582 tp->rcv_ssthresh = min(tp->rcv_ssthresh, tp->window_clamp); in tcp_init_buffer_space() 584 tp->rcvq_space.space = min3(tp->rcv_ssthresh, tp->rcv_wnd, in tcp_init_buffer_space() 607 tp->rcv_ssthresh = min(tp->window_clamp, 2U * tp->advmss); in tcp_clamp_window() 687 tp->rcv_rtt_est.seq = tp->rcv_nxt + tp->rcv_wnd; in tcp_rcv_rtt_measure() 914 tp->rtt_seq = tp->snd_nxt; in tcp_rtt_estimator() 925 tp->rtt_seq = tp->snd_nxt; in tcp_rtt_estimator() 2211 tp->high_seq = tp->snd_nxt; in tcp_enter_loss() 2562 if (tp->snd_una == tp->high_seq && tcp_is_reno(tp)) { in tcp_is_non_sack_preventing_reopen() 2934 tp->snd_una + tp->reordering * tp->mss_cache); in tcp_force_fast_retransmit() 3385 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() 293 tp->rcv_wup = tp->rcv_nxt; in tcp_select_window() 419 return tp->snd_una != tp->snd_up; in tcp_urg_mode() 1303 tp->tcp_wstamp_ns = max(tp->tcp_wstamp_ns, tp->tcp_clock_cache); in __tcp_transmit_skb() 2991 tp->tlp_high_seq = tp->snd_nxt; in tcp_send_loss_probe() 3922 tp->rcv_ssthresh = tp->rcv_wnd; in tcp_connect_init() 3929 tp->snd_una = tp->write_seq; in tcp_connect_init() 3930 tp->snd_sml = tp->write_seq; in tcp_connect_init() 3931 tp->snd_up = tp->write_seq; in tcp_connect_init() 3938 tp->rcv_wup = tp->rcv_nxt; in tcp_connect_init() [all …]
|
/linux/drivers/misc/mei/ |
H A D | vsc-tp.c | 113 tp->event_notify(tp->event_notify_context); in vsc_tp_thread_isr() 134 tp->wakeuphost); in vsc_tp_wakeup_request() 334 ret = vsc_tp_dev_xfer(tp, tp->tx_buf, tp->rx_buf, len); in vsc_tp_rom_xfer() 434 free_irq(tp->spi->irq, tp); in vsc_tp_free_irq() 482 .data = &tp, in vsc_tp_probe() 491 tp = devm_kzalloc(dev, sizeof(*tp), GFP_KERNEL); in vsc_tp_probe() 492 if (!tp) in vsc_tp_probe() 496 if (!tp->tx_buf) in vsc_tp_probe() 500 if (!tp->rx_buf) in vsc_tp_probe() 521 tp->spi = spi; in vsc_tp_probe() [all …]
|
/linux/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/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/fs/xfs/libxfs/ |
H A D | xfs_defer.c | 188 struct xfs_trans *tp, in xfs_defer_barrier_create_intent() argument 205 struct xfs_trans *tp, in xfs_defer_barrier_create_done() argument 214 struct xfs_trans *tp, in xfs_defer_barrier_finish_item() argument 242 struct xfs_trans *tp, in xfs_defer_create_done() argument 276 struct xfs_trans *tp, in xfs_defer_create_intent() argument 309 struct xfs_trans *tp) in xfs_defer_create_intents() argument 375 struct xfs_trans *tp, in xfs_defer_trans_abort() argument 763 struct xfs_trans *tp) in xfs_defer_cancel() argument 768 xfs_defer_trans_abort(tp, &tp->t_dfops); in xfs_defer_cancel() 988 dfc->dfc_blkres = tp->t_blk_res - tp->t_blk_res_used; in xfs_defer_ops_capture() [all …]
|
/linux/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/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/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 532 if (!tp) in tng_pinctrl_probe() 535 tp->dev = dev; in tng_pinctrl_probe() 558 tp->families = families; in tng_pinctrl_probe() 561 tp->pctldesc.pins = tp->pins; in tng_pinctrl_probe() 562 tp->pctldesc.npins = tp->npins; in tng_pinctrl_probe() 564 tp->pctldev = devm_pinctrl_register(dev, &tp->pctldesc, tp); in tng_pinctrl_probe() [all …]
|