| /drivers/s390/char/ |
| A D | con3270.c | 200 return tp->screen + tty3270_line_increment(tp, tp->line_view_start, num - tp->nr_up); in tty3270_get_view_line() 1120 tp->screen = tty3270_alloc_screen(tp, tp->view.rows, tp->view.cols, in tty3270_create_view() 1388 tp->cx = min_t(int, tp->cx, tp->view.cols - 1); in tty3270_erase_characters() 1610 tty3270_goto_xy(tp, tp->saved_cx, tp->saved_cy); in tty3270_escape_sequence() 1688 tty3270_goto_xy(tp, tp->cx, tp->cy - tty3270_getpar(tp, 0)); in tty3270_escape_sequence() 1693 tty3270_goto_xy(tp, tp->cx, tp->cy + tty3270_getpar(tp, 0)); in tty3270_escape_sequence() 1697 tty3270_goto_xy(tp, tp->cx + tty3270_getpar(tp, 0), tp->cy); in tty3270_escape_sequence() 1700 tty3270_goto_xy(tp, tp->cx - tty3270_getpar(tp, 0), tp->cy); in tty3270_escape_sequence() 1722 tp->saved_cx = tp->cx; in tty3270_escape_sequence() 1723 tp->saved_cy = tp->cy; in tty3270_escape_sequence() [all …]
|
| /drivers/net/ethernet/realtek/ |
| A D | r8169_main.c | 1765 RTL_W16(tp, CPlusCmd, tp->cp_cmd); in rtl8169_set_features() 2119 RTL_W16(tp, CPlusCmd, tp->cp_cmd); in rtl_set_coalesce() 2429 r8169_hw_phy_config(tp, tp->phydev, tp->mac_version); in rtl8169_init_phy() 2509 tp->dirty_tx = tp->cur_tx = tp->cur_rx = 0; in rtl8169_init_ring_indexes() 2573 if (tp->rtl_fw || !tp->fw_name) in rtl_request_firmware() 3853 hw_configs[tp->mac_version](tp); in rtl_hw_config() 3912 RTL_W16(tp, CPlusCmd, tp->cp_cmd); in rtl_hw_start_8169() 3925 RTL_W16(tp, CPlusCmd, tp->cp_cmd); in rtl_hw_start() 4832 free_irq(tp->irq, tp); in rtl8169_close() 4853 rtl8169_interrupt(tp->irq, tp); in rtl8169_netpoll() [all …]
|
| 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 …]
|
| A D | r8169_phy_config.c | 443 r8169_apply_firmware(tp); in rtl8168d_apply_firmware_cond() 549 r8169_apply_firmware(tp); in rtl8168e_1_hw_phy_config() 583 r8169_apply_firmware(tp); in rtl8168e_2_hw_phy_config() 641 r8169_apply_firmware(tp); in rtl8168f_1_hw_phy_config() 669 r8169_apply_firmware(tp); in rtl8168f_2_hw_phy_config() 677 r8169_apply_firmware(tp); in rtl8411_hw_phy_config() 743 r8169_apply_firmware(tp); in rtl8168g_1_hw_phy_config() 789 r8169_apply_firmware(tp); in rtl8168g_2_hw_phy_config() 799 r8169_apply_firmware(tp); in rtl8168h_2_hw_phy_config() 951 r8169_apply_firmware(tp); in rtl8105e_hw_phy_config() [all …]
|
| /drivers/net/usb/ |
| A D | r8152.c | 2181 usb_fill_int_urb(tp->intr_urb, tp->udev, tp->pipe_intr, in alloc_all_mem() 3822 rtl8152_set_speed(tp, tp->autoneg, tp->speed, in r8153b_ups_en() 3864 rtl8152_set_speed(tp, tp->autoneg, tp->speed, in r8153c_ups_en() 3913 rtl8152_set_speed(tp, tp->autoneg, tp->speed, in r8156_ups_en() 6885 rtl8152_set_speed(tp, tp->autoneg, tp->speed, tp->duplex, in rtl_hw_phy_work_func_t() 6941 tp->rtl_ops.up(tp); in rtl8152_open() 6998 tp->rtl_ops.down(tp); in rtl8152_close() 8532 tp->rtl_ops.up(tp); in rtl8152_system_resume() 8626 tp->rtl_ops.down(tp); in rtl8152_system_suspend() 8683 tp->rtl_ops.init(tp); in rtl8152_reset_resume() [all …]
|
| /drivers/net/ethernet/broadcom/ |
| 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() 11550 tp->txq_cnt = tp->txq_req; in tg3_enable_msix() 11551 tp->rxq_cnt = tp->rxq_req; in tg3_enable_msix() 11580 tp->txq_cnt = min(tp->rxq_cnt, tp->txq_max); in tg3_enable_msix() [all …]
|
| /drivers/sbus/char/ |
| 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 …]
|
| /drivers/net/ethernet/dec/tulip/ |
| A D | tulip_core.c | 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() 1167 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 …]
|
| 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 = timer_container_of(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 …]
|
| A D | pnic2.c | 81 struct tulip_private *tp = timer_container_of(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 …]
|
| 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 …]
|
| 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 = timer_container_of(tp, t, timer); in mxic_timer() local [all …]
|
| 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 …]
|
| 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 = timer_container_of(tp, t, timer); in pnic_timer() local 120 tp->nwayset = 0; in pnic_timer() 132 if (tp->medialock) { in pnic_timer() [all …]
|
| A D | eeprom.c | 120 tp->mtable = devm_kmalloc(&tp->pdev->dev, sizeof(struct mediatable) + in tulip_build_fake_mediatable() 123 if (tp->mtable == NULL) in tulip_build_fake_mediatable() 127 tp->mtable->leafcount = 1; in tulip_build_fake_mediatable() 129 tp->mtable->has_nonmii = 0; in tulip_build_fake_mediatable() 130 tp->mtable->has_reset = 0; in tulip_build_fake_mediatable() 131 tp->mtable->has_mii = 1; in tulip_build_fake_mediatable() 132 tp->mtable->csr15dir = tp->mtable->csr15val = 0; in tulip_build_fake_mediatable() 133 tp->mtable->mleaf[0].type = 1; in tulip_build_fake_mediatable() 136 tp->flags |= HAS_PHY_IRQ; in tulip_build_fake_mediatable() 137 tp->csr12_shadow = -1; in tulip_build_fake_mediatable() [all …]
|
| /drivers/net/ethernet/realtek/rtase/ |
| 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 374 const struct rtase_private *tp = ivec->tp; in rtase_alloc_rx_data_buf() local 489 struct rtase_private *tp = ring->ivec->tp; in rx_handler() local 983 rtase_w16(tp, RTASE_RMS, tp->rx_buf_sz); in rtase_hw_config() 1034 tp = ivec->tp; in rtase_interrupt() 1056 tp = ivec->tp; in rtase_q_interrupt() 1076 tp = ivec->tp; in rtase_poll() 1974 tp->int_vector[0].tp = tp; in rtase_init_int_vector() 1988 tp->int_vector[i].tp = tp; in rtase_init_int_vector() [all …]
|
| /drivers/misc/mei/ |
| A D | vsc-tp.c | 122 tp->event_notify(tp->event_notify_context); in vsc_tp_event_work() 341 ret = vsc_tp_dev_xfer(tp, tp->tx_buf, ibuf ? tp->rx_buf : NULL, len); in vsc_tp_rom_xfer() 458 .data = &tp, in vsc_tp_probe() 467 tp = devm_kzalloc(dev, sizeof(*tp), GFP_KERNEL); in vsc_tp_probe() 468 if (!tp) in vsc_tp_probe() 471 tp->tx_buf = devm_kzalloc(dev, sizeof(*tp->tx_buf), GFP_KERNEL); in vsc_tp_probe() 472 if (!tp->tx_buf) in vsc_tp_probe() 475 tp->rx_buf = devm_kzalloc(dev, sizeof(*tp->rx_buf), GFP_KERNEL); in vsc_tp_probe() 476 if (!tp->rx_buf) in vsc_tp_probe() 497 tp->spi = spi; in vsc_tp_probe() [all …]
|
| /drivers/net/ethernet/sis/ |
| 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 = timer_container_of(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 …]
|
| /drivers/net/ethernet/3com/ |
| 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 …]
|
| /drivers/net/ethernet/chelsio/cxgb/ |
| 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 …]
|
| /drivers/pinctrl/intel/ |
| 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 …]
|
| /drivers/input/mouse/ |
| A D | trackpoint.c | 122 u8 *field = (void *)tp + attr->field_offset; in trackpoint_set_int_attr() 209 return tp->variant_id == TP_VARIANT_IBM || in trackpoint_is_attr_available() 350 TRACKPOINT_SET_POWER_ON_DEFAULT(tp, speed); in trackpoint_defaults() 351 TRACKPOINT_SET_POWER_ON_DEFAULT(tp, reach); in trackpoint_defaults() 399 struct trackpoint_data *tp; in trackpoint_detect() local 412 tp = kzalloc(sizeof(*tp), GFP_KERNEL); in trackpoint_detect() 413 if (!tp) in trackpoint_detect() 416 trackpoint_defaults(tp); in trackpoint_detect() 417 tp->variant_id = variant_id; in trackpoint_detect() 418 tp->firmware_id = firmware_id; in trackpoint_detect() [all …]
|
| /drivers/platform/x86/amd/pmf/ |
| A D | cnqf.c | 186 if (tp->timer >= tp->time_constant && tp->count) { in amd_pmf_trans_cnqf() 187 avg_power = tp->total_power / tp->count; in amd_pmf_trans_cnqf() 190 tp->timer = 0; in amd_pmf_trans_cnqf() 191 tp->total_power = 0; in amd_pmf_trans_cnqf() 192 tp->count = 0; in amd_pmf_trans_cnqf() 194 if ((tp->shifting_up && avg_power >= tp->power_threshold) || in amd_pmf_trans_cnqf() 195 (!tp->shifting_up && avg_power <= tp->power_threshold)) { in amd_pmf_trans_cnqf() 196 tp->priority = true; in amd_pmf_trans_cnqf() 248 tp->shifting_up = true; in amd_pmf_update_trans_data() 253 tp->shifting_up = true; in amd_pmf_update_trans_data() [all …]
|
| /drivers/platform/surface/ |
| A D | surface_platform_profile.c | 161 enum ssam_tmp_profile tp; in ssam_platform_profile_get() local 182 int tp; in ssam_platform_profile_set() local 187 if (tp < 0) in ssam_platform_profile_set() 188 return tp; in ssam_platform_profile_set() 190 tp = ssam_tmp_profile_set(tpd->sdev, tp); in ssam_platform_profile_set() 191 if (tp < 0) in ssam_platform_profile_set() 192 return tp; in ssam_platform_profile_set() 196 if (tp < 0) in ssam_platform_profile_set() 197 return tp; in ssam_platform_profile_set() 198 tp = ssam_fan_profile_set(tpd->sdev, tp); in ssam_platform_profile_set() [all …]
|
| /drivers/scsi/sym53c8xx_2/ |
| A D | sym_hipd.c | 1883 if (tp->lun0p) 2110 if (!tp->tgoal.dt && !tp->tgoal.iu && !tp->tgoal.qas) { 3291 (tp->lun0p && tp->lun0p->to_clear)) { 3298 if (tp->lunmp[k] && tp->lunmp[k]->to_clear) { 3430 if (tp->lun0p && tp->lun0p->to_clear) 3434 if (tp->lunmp[k] && tp->lunmp[k]->to_clear) { 4154 tp->tgoal.iu = tp->tgoal.dt = tp->tgoal.qas = 0; 4335 tp->tgoal.iu = tp->tgoal.dt = tp->tgoal.qas = 0; 4986 tp->head.luntbl_sa = cpu_to_scr(vtobus(tp->luntbl)); 5014 tp->nlcb++; [all …]
|