/openbmc/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 …]
|
/openbmc/linux/drivers/net/ethernet/realtek/ |
H A D | r8169_main.c | 1586 RTL_W16(tp, CPlusCmd, tp->cp_cmd); in rtl8169_set_features() 1940 RTL_W16(tp, CPlusCmd, tp->cp_cmd); in rtl_set_coalesce() 2265 r8169_hw_phy_config(tp, tp->phydev, tp->mac_version); in rtl8169_init_phy() 2348 tp->dirty_tx = tp->cur_tx = tp->cur_rx = 0; in rtl8169_init_ring_indexes() 2467 if (tp->rtl_fw || !tp->fw_name) in rtl_request_firmware() 3745 hw_configs[tp->mac_version](tp); in rtl_hw_config() 3782 RTL_W16(tp, CPlusCmd, tp->cp_cmd); in rtl_hw_start_8169() 3795 RTL_W16(tp, CPlusCmd, tp->cp_cmd); in rtl_hw_start() 4726 free_irq(tp->irq, tp); in rtl8169_close() 4747 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 …]
|
/openbmc/linux/drivers/net/usb/ |
H A D | r8152.c | 2178 tp, tp->intr_interval); in alloc_all_mem() 3784 rtl8152_set_speed(tp, tp->autoneg, tp->speed, in r8153b_ups_en() 3826 rtl8152_set_speed(tp, tp->autoneg, tp->speed, in r8153c_ups_en() 3875 rtl8152_set_speed(tp, tp->autoneg, tp->speed, in r8156_ups_en() 6870 rtl8152_set_speed(tp, tp->autoneg, tp->speed, tp->duplex, in rtl_hw_phy_work_func_t() 6926 tp->rtl_ops.up(tp); in rtl8152_open() 6983 tp->rtl_ops.down(tp); in rtl8152_close() 8517 tp->rtl_ops.up(tp); in rtl8152_system_resume() 8598 tp->rtl_ops.down(tp); in rtl8152_system_suspend() 8648 tp->rtl_ops.init(tp); in rtl8152_reset_resume() [all …]
|
/openbmc/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() 11463 tp->txq_cnt = tp->txq_req; in tg3_enable_msix() 11464 tp->rxq_cnt = tp->rxq_req; in tg3_enable_msix() 11493 tp->txq_cnt = min(tp->rxq_cnt, tp->txq_max); in tg3_enable_msix() [all …]
|
/openbmc/u-boot/drivers/usb/eth/ |
H A D | r8152_fw.c | 744 rtl_clear_bp(tp); in r8153_clear_bp() 796 ocp_write_word(tp, MCU_TYPE_PLA, PLA_OCP_GPHY_BASE, tp->ocp_base); in r8153_post_ram_code() 819 r8152b_set_dq_desc(tp); in r8152b_firmware() 820 rtl_clear_bp(tp); in r8152b_firmware() 841 rtl_clear_bp(tp); in r8152b_firmware() 860 r8153_clear_bp(tp); in r8153_firmware() 880 r8153_wdt1_end(tp); in r8153_firmware() 881 r8153_clear_bp(tp); in r8153_firmware() 925 r8153_wdt1_end(tp); in r8153_firmware() 926 r8153_clear_bp(tp); in r8153_firmware() [all …]
|
H A D | r8152.c | 76 ret = usb_control_msg(tp->udev, usb_rcvctrlpipe(tp->udev, 0), in get_registers() 89 return usb_control_msg(tp->udev, usb_sndctrlpipe(tp->udev, 0), in set_registers() 596 rtl_disable(tp); in rtl8152_disable() 731 if (tp->version == RTL_VER_03 || tp->version == RTL_VER_04 || in r8153_hw_phy_cfg() 1209 tp->rtl_ops.enable(tp); in r8152_init_common() 1322 tp->rtl_ops.disable(tp); in r8152_halt() 1442 tp->rtl_ops.init(tp); in r8152_eth_probe() 1443 tp->rtl_ops.up(tp); in r8152_eth_probe() 1493 tp->rtl_ops.disable(tp); in r8152_eth_stop() 1598 tp->rtl_ops.init(tp); in r8152_eth_probe() [all …]
|
/openbmc/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 …]
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_trans.c | 69 xfs_extent_busy_clear(tp->t_mountp, &tp->t_busy, false); in xfs_trans_free() 118 ASSERT(tp->t_blk_res >= tp->t_blk_res_used); in xfs_trans_dup() 119 ntp->t_blk_res = tp->t_blk_res - tp->t_blk_res_used; in xfs_trans_dup() 120 tp->t_blk_res = tp->t_blk_res_used; in xfs_trans_dup() 122 ntp->t_rtx_res = tp->t_rtx_res - tp->t_rtx_res_used; in xfs_trans_dup() 123 tp->t_rtx_res = tp->t_rtx_res_used; in xfs_trans_dup() 306 *tpp = tp; in xfs_trans_alloc() 380 if (tp->t_blk_res_used > tp->t_blk_res) in xfs_trans_mod_sb() 419 ASSERT(tp->t_rtx_res_used <= tp->t_rtx_res); in xfs_trans_mod_sb() 1225 *tpp = tp; in xfs_trans_alloc_inode() [all …]
|
/openbmc/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 …]
|
/openbmc/linux/net/ipv4/ |
H A D | tcp_input.c | 587 tp->rcv_ssthresh = min(tp->rcv_ssthresh, tp->window_clamp); in tcp_init_buffer_space() 589 tp->rcvq_space.space = min3(tp->rcv_ssthresh, tp->rcv_wnd, in tcp_init_buffer_space() 612 tp->rcv_ssthresh = min(tp->window_clamp, 2U * tp->advmss); in tcp_clamp_window() 692 tp->rcv_rtt_est.seq = tp->rcv_nxt + tp->rcv_wnd; in tcp_rcv_rtt_measure() 895 tp->rtt_seq = tp->snd_nxt; in tcp_rtt_estimator() 906 tp->rtt_seq = tp->snd_nxt; in tcp_rtt_estimator() 2188 tp->high_seq = tp->snd_nxt; in tcp_enter_loss() 2539 if (tp->snd_una == tp->high_seq && tcp_is_reno(tp)) { in tcp_is_non_sack_preventing_reopen() 2903 tp->snd_una + tp->reordering * tp->mss_cache); in tcp_force_fast_retransmit() 3359 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 | 101 ((tp->snd_nxt - tcp_wnd_end(tp)) < (1 << tp->rx_opt.rcv_wscale)))) in tcp_acceptable_seq() 289 tp->rcv_wup = tp->rcv_nxt; in tcp_select_window() 415 return tp->snd_una != tp->snd_up; in tcp_urg_mode() 1261 tp->tcp_wstamp_ns = max(tp->tcp_wstamp_ns, tp->tcp_clock_cache); in __tcp_transmit_skb() 2924 tp->tlp_high_seq = tp->snd_nxt; in tcp_send_loss_probe() 3813 tp->rcv_ssthresh = tp->rcv_wnd; in tcp_connect_init() 3820 tp->snd_una = tp->write_seq; in tcp_connect_init() 3821 tp->snd_sml = tp->write_seq; in tcp_connect_init() 3822 tp->snd_up = tp->write_seq; in tcp_connect_init() 3829 tp->rcv_wup = tp->rcv_nxt; in tcp_connect_init() [all …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/linux/drivers/pinctrl/intel/ |
H A D | pinctrl-tangier.c | 74 family = &tp->families[i]; in tng_get_family() 138 return tp->ngroups; in tng_get_groups_count() 192 return tp->nfunctions; in tng_get_functions_count() 528 struct tng_pinctrl *tp; in tng_pinctrl_probe() local 534 if (!tp) in tng_pinctrl_probe() 537 tp->dev = dev; in tng_pinctrl_probe() 560 tp->families = families; in tng_pinctrl_probe() 563 tp->pctldesc.pins = tp->pins; in tng_pinctrl_probe() 564 tp->pctldesc.npins = tp->npins; in tng_pinctrl_probe() 566 tp->pctldev = devm_pinctrl_register(dev, &tp->pctldesc, tp); in tng_pinctrl_probe() [all …]
|
/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_defer.c | 201 struct xfs_trans *tp, in xfs_defer_create_intent() argument 231 struct xfs_trans *tp) in xfs_defer_create_intents() argument 300 struct xfs_trans *tp, in xfs_defer_trans_abort() argument 314 struct xfs_trans *tp) in xfs_defer_save_resources() argument 364 struct xfs_trans *tp, in xfs_defer_restore_resources() argument 489 struct xfs_trans *tp, in xfs_defer_finish_one() argument 601 xfs_defer_cancel(*tp); in xfs_defer_finish_noroll() 607 struct xfs_trans **tp) in xfs_defer_finish() argument 635 struct xfs_trans *tp) in xfs_defer_cancel() argument 781 dfc->dfc_blkres = tp->t_blk_res - tp->t_blk_res_used; in xfs_defer_ops_capture() [all …]
|