Home
last modified time | relevance | path

Searched refs:tp (Results 1 – 25 of 119) sorted by relevance

12345

/drivers/s390/char/
Dtty3270.c128 static void tty3270_set_timer(struct tty3270 *tp, int expires) in tty3270_set_timer() argument
130 mod_timer(&tp->timer, jiffies + expires); in tty3270_set_timer()
137 tty3270_update_prompt(struct tty3270 *tp, char *input, int count) in tty3270_update_prompt() argument
142 line = tp->prompt; in tty3270_update_prompt()
146 line->string[5] = tp->inattr; in tty3270_update_prompt()
147 if (count > tp->view.cols * 2 - 11) in tty3270_update_prompt()
148 count = tp->view.cols * 2 - 11; in tty3270_update_prompt()
152 if (count < tp->view.cols * 2 - 11) { in tty3270_update_prompt()
155 off = tp->view.cols * tp->view.rows - 9; in tty3270_update_prompt()
156 raw3270_buffer_address(tp->view.dev, line->string+count+8, off); in tty3270_update_prompt()
[all …]
/drivers/net/ethernet/realtek/
Dr8169_main.c77 #define RTL_W8(tp, reg, val8) writeb((val8), tp->mmio_addr + (reg)) argument
78 #define RTL_W16(tp, reg, val16) writew((val16), tp->mmio_addr + (reg)) argument
79 #define RTL_W32(tp, reg, val32) writel((val32), tp->mmio_addr + (reg)) argument
80 #define RTL_R8(tp, reg) readb(tp->mmio_addr + (reg)) argument
81 #define RTL_R16(tp, reg) readw(tp->mmio_addr + (reg)) argument
82 #define RTL_R32(tp, reg) readl(tp->mmio_addr + (reg)) argument
633 typedef void (*rtl_generic_fct)(struct rtl8169_private *tp);
660 static inline struct device *tp_to_dev(struct rtl8169_private *tp) in tp_to_dev() argument
662 return &tp->pci_dev->dev; in tp_to_dev()
665 static void rtl_lock_config_regs(struct rtl8169_private *tp) in rtl_lock_config_regs() argument
[all …]
D8139too.c644 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 …]
Dr8169_phy_config.c17 typedef void (*rtl_phy_cfg_fct)(struct rtl8169_private *tp,
108 static void rtl8169s_hw_phy_config(struct rtl8169_private *tp, in rtl8169s_hw_phy_config() argument
176 static void rtl8169sb_hw_phy_config(struct rtl8169_private *tp, in rtl8169sb_hw_phy_config() argument
182 static void rtl8169scd_hw_phy_config(struct rtl8169_private *tp, in rtl8169scd_hw_phy_config() argument
228 static void rtl8169sce_hw_phy_config(struct rtl8169_private *tp, in rtl8169sce_hw_phy_config() argument
282 static void rtl8168bb_hw_phy_config(struct rtl8169_private *tp, in rtl8168bb_hw_phy_config() argument
291 static void rtl8168bef_hw_phy_config(struct rtl8169_private *tp, in rtl8168bef_hw_phy_config() argument
297 static void rtl8168cp_1_hw_phy_config(struct rtl8169_private *tp, in rtl8168cp_1_hw_phy_config() argument
304 static void rtl8168cp_2_hw_phy_config(struct rtl8169_private *tp, in rtl8168cp_2_hw_phy_config() argument
312 static void rtl8168c_1_hw_phy_config(struct rtl8169_private *tp, in rtl8168c_1_hw_phy_config() argument
[all …]
/drivers/net/usb/
Dr8152.c884 void (*init)(struct r8152 *tp);
885 int (*enable)(struct r8152 *tp);
886 void (*disable)(struct r8152 *tp);
887 void (*up)(struct r8152 *tp);
888 void (*down)(struct r8152 *tp);
889 void (*unload)(struct r8152 *tp);
890 int (*eee_get)(struct r8152 *tp, struct ethtool_eee *eee);
891 int (*eee_set)(struct r8152 *tp, struct ethtool_eee *eee);
892 bool (*in_nway)(struct r8152 *tp);
893 void (*hw_phy_cfg)(struct r8152 *tp);
[all …]
/drivers/net/ethernet/broadcom/
Dtg3.c91 #define tg3_flag(tp, flag) \ argument
92 _tg3_flag(TG3_FLAG_##flag, (tp)->tg3_flags)
93 #define tg3_flag_set(tp, flag) \ argument
94 _tg3_flag_set(TG3_FLAG_##flag, (tp)->tg3_flags)
95 #define tg3_flag_clear(tp, flag) \ argument
96 _tg3_flag_clear(TG3_FLAG_##flag, (tp)->tg3_flags)
129 #define TG3_MAX_MTU(tp) \ argument
130 (tg3_flag(tp, JUMBO_CAPABLE) ? 9000 : 1500)
136 #define TG3_RX_STD_RING_SIZE(tp) \ argument
137 (tg3_flag(tp, LRG_PROD_RING_CAP) ? \
[all …]
/drivers/sbus/char/
Dbbc_envctrl.c120 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 …]
/drivers/net/ethernet/dec/tulip/
Dtulip_core.c117 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 …]
Dinterrupt.c61 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 …]
Dpnic2.c81 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 …]
D21142.c30 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 …]
Dtimer.c19 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 …]
Dmedia.c49 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 …]
Dpnic.c21 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 …]
Deeprom.c104 static void tulip_build_fake_mediatable(struct tulip_private *tp) in tulip_build_fake_mediatable() argument
107 if (tp->flags & NEEDS_FAKE_MEDIA_TABLE) { in tulip_build_fake_mediatable()
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()
126 tp->mtable->defaultmedia = 0x800; in tulip_build_fake_mediatable()
127 tp->mtable->leafcount = 1; in tulip_build_fake_mediatable()
128 tp->mtable->csr12dir = 0x3f; /* inputs on bit7 for hsc-pci, bit6 for pci-fx */ 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()
[all …]
/drivers/net/ethernet/sis/
Dsis190.c400 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 …]
/drivers/net/ethernet/chelsio/cxgb/
Dtp.c54 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 …]
/drivers/net/ethernet/3com/
Dtyphoon.c454 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 …]
/drivers/platform/x86/amd/pmf/
Dcnqf.c44 struct cnqf_tran_params *tp; in amd_pmf_update_power_threshold() local
46 tp = &config_store.trans_param[src][CNQF_TRANSITION_TO_QUIET]; in amd_pmf_update_power_threshold()
48 tp->power_threshold = ts->power_floor; in amd_pmf_update_power_threshold()
50 tp = &config_store.trans_param[src][CNQF_TRANSITION_TO_TURBO]; in amd_pmf_update_power_threshold()
52 tp->power_threshold = ts->power_floor; in amd_pmf_update_power_threshold()
54 tp = &config_store.trans_param[src][CNQF_TRANSITION_FROM_BALANCE_TO_PERFORMANCE]; in amd_pmf_update_power_threshold()
56 tp->power_threshold = ts->power_floor; in amd_pmf_update_power_threshold()
58 tp = &config_store.trans_param[src][CNQF_TRANSITION_FROM_PERFORMANCE_TO_BALANCE]; in amd_pmf_update_power_threshold()
60 tp->power_threshold = ts->power_floor; in amd_pmf_update_power_threshold()
62 tp = &config_store.trans_param[src][CNQF_TRANSITION_FROM_QUIET_TO_BALANCE]; in amd_pmf_update_power_threshold()
[all …]
/drivers/input/mouse/
Dtrackpoint.c107 struct trackpoint_data *tp = psmouse->private; in trackpoint_show_int_attr() local
109 u8 value = *(u8 *)((void *)tp + attr->field_offset); in trackpoint_show_int_attr()
120 struct trackpoint_data *tp = psmouse->private; in trackpoint_set_int_attr() local
122 u8 *field = (void *)tp + attr->field_offset; in trackpoint_set_int_attr()
149 struct trackpoint_data *tp = psmouse->private; in trackpoint_set_bit_attr() local
151 bool *field = (void *)tp + attr->field_offset; in trackpoint_set_bit_attr()
207 struct trackpoint_data *tp = psmouse->private; in trackpoint_is_attr_available() local
209 return tp->variant_id == TP_VARIANT_IBM || in trackpoint_is_attr_available()
305 struct trackpoint_data *tp = psmouse->private; in trackpoint_sync() local
307 if (!in_power_on_state && tp->variant_id == TP_VARIANT_IBM) { in trackpoint_sync()
[all …]
/drivers/scsi/sym53c8xx_2/
Dsym_hipd.c70 struct sym_tcb *tp = &np->target[target]; in sym_print_nego_msg() local
71 dev_info(&tp->starget->dev, "%s: ", label); in sym_print_nego_msg()
902 struct sym_tcb *tp = &np->target[i]; local
904 tp->usrflags |= (SYM_DISC_ENABLED | SYM_TAGS_ENABLED);
905 tp->usrtags = SYM_SETUP_MAX_TAG;
906 tp->usr_width = np->maxwide;
907 tp->usr_period = 9;
909 sym_nvram_setup_target(tp, i, nvram);
911 if (!tp->usrtags)
912 tp->usrflags &= ~SYM_TAGS_ENABLED;
[all …]
Dsym_glue.c248 struct sym_tcb *tp = &np->target[cp->target]; in sym_scatter() local
262 if ((len & 1) && (tp->head.wval & EWS)) { in sym_scatter()
283 struct sym_tcb *tp; in sym_queue_command() local
291 tp = &np->target[sdev->id]; in sym_queue_command()
296 lp = sym_lp(tp, sdev->lun); in sym_queue_command()
693 static void sym_tune_dev_queuing(struct sym_tcb *tp, int lun, u_short reqtags) in sym_tune_dev_queuing() argument
695 struct sym_lcb *lp = sym_lp(tp, lun); in sym_tune_dev_queuing()
709 dev_info(&tp->starget->dev, in sym_tune_dev_queuing()
718 struct sym_tcb *tp = &np->target[sdev->id]; in sym53c8xx_slave_alloc() local
737 if (tp->usrflags & SYM_SCAN_BOOT_DISABLED) { in sym53c8xx_slave_alloc()
[all …]
/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_cm.c145 struct tcp_sock *tp; in assign_rxopt() local
148 tp = tcp_sk(sk); in assign_rxopt()
151 tp->tcp_header_len = sizeof(struct tcphdr); in assign_rxopt()
152 tp->rx_opt.mss_clamp = cdev->mtus[TCPOPT_MSS_G(opt)] - 40; in assign_rxopt()
153 tp->mss_cache = tp->rx_opt.mss_clamp; in assign_rxopt()
154 tp->rx_opt.tstamp_ok = TCPOPT_TSTAMP_G(opt); in assign_rxopt()
155 tp->rx_opt.snd_wscale = TCPOPT_SACK_G(opt); in assign_rxopt()
156 tp->rx_opt.wscale_ok = TCPOPT_WSCALE_OK_G(opt); in assign_rxopt()
157 SND_WSCALE(tp) = TCPOPT_SND_WSCALE_G(opt); in assign_rxopt()
158 if (!tp->rx_opt.wscale_ok) in assign_rxopt()
[all …]
Dchtls_io.c110 struct tcp_sock *tp = tcp_sk(sk); in send_flowc_wr() local
135 send_or_defer(sk, tp, skb, 0); in send_flowc_wr()
169 struct tcp_sock *tp; in send_tx_flowc_wr() local
172 tp = tcp_sk(sk); in send_tx_flowc_wr()
189 FLOWC_PARAM(SNDNXT, tp->snd_nxt); in send_tx_flowc_wr()
190 FLOWC_PARAM(RCVNXT, tp->rcv_nxt); in send_tx_flowc_wr()
192 FLOWC_PARAM(MSS, tp->mss_cache); in send_tx_flowc_wr()
195 if (SND_WSCALE(tp)) in send_tx_flowc_wr()
196 FLOWC_PARAM(RCV_SCALE, SND_WSCALE(tp)); in send_tx_flowc_wr()
599 struct tcp_sock *tp; in chtls_push_frames() local
[all …]
/drivers/scsi/
Desp_scsi.c552 static int esp_need_to_nego_wide(struct esp_target_data *tp) in esp_need_to_nego_wide() argument
554 struct scsi_target *target = tp->starget; in esp_need_to_nego_wide()
556 return spi_width(target) != tp->nego_goal_width; in esp_need_to_nego_wide()
559 static int esp_need_to_nego_sync(struct esp_target_data *tp) in esp_need_to_nego_sync() argument
561 struct scsi_target *target = tp->starget; in esp_need_to_nego_sync()
564 if (!spi_offset(target) && !tp->nego_goal_offset) in esp_need_to_nego_sync()
567 if (spi_offset(target) == tp->nego_goal_offset && in esp_need_to_nego_sync()
568 spi_period(target) == tp->nego_goal_period) in esp_need_to_nego_sync()
737 struct esp_target_data *tp; in esp_maybe_execute_command() local
763 tp = &esp->target[tgt]; in esp_maybe_execute_command()
[all …]

12345