Home
last modified time | relevance | path

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

1234

/drivers/s390/char/
Dtty3270.c127 static void tty3270_set_timer(struct tty3270 *tp, int expires) in tty3270_set_timer() argument
129 mod_timer(&tp->timer, jiffies + expires); in tty3270_set_timer()
136 tty3270_update_prompt(struct tty3270 *tp, char *input, int count) in tty3270_update_prompt() argument
141 line = tp->prompt; in tty3270_update_prompt()
145 line->string[5] = tp->inattr; in tty3270_update_prompt()
146 if (count > tp->view.cols * 2 - 11) in tty3270_update_prompt()
147 count = tp->view.cols * 2 - 11; in tty3270_update_prompt()
151 if (count < tp->view.cols * 2 - 11) { in tty3270_update_prompt()
154 off = tp->view.cols * tp->view.rows - 9; in tty3270_update_prompt()
155 raw3270_buffer_address(tp->view.dev, line->string+count+8, off); in tty3270_update_prompt()
[all …]
/drivers/net/ethernet/realtek/
Dr8169.c76 #define TX_SLOTS_AVAIL(tp) \ argument
77 (tp->dirty_tx + NUM_TX_DESC - tp->cur_tx)
80 #define TX_FRAGS_READY_FOR(tp,nr_frags) \ argument
81 (TX_SLOTS_AVAIL(tp) >= (nr_frags + 1))
821 void (*phy_reset_enable)(struct rtl8169_private *tp);
823 unsigned int (*phy_reset_pending)(struct rtl8169_private *tp);
825 int (*do_ioctl)(struct rtl8169_private *tp, struct mii_ioctl_data *data, int cmd);
888 static void rtl_lock_work(struct rtl8169_private *tp) in rtl_lock_work() argument
890 mutex_lock(&tp->wk.mutex); in rtl_lock_work()
893 static void rtl_unlock_work(struct rtl8169_private *tp) in rtl_unlock_work() argument
[all …]
D8139too.c643 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 …]
/drivers/net/ethernet/broadcom/
Dtg3.c88 #define tg3_flag(tp, flag) \ argument
89 _tg3_flag(TG3_FLAG_##flag, (tp)->tg3_flags)
90 #define tg3_flag_set(tp, flag) \ argument
91 _tg3_flag_set(TG3_FLAG_##flag, (tp)->tg3_flags)
92 #define tg3_flag_clear(tp, flag) \ argument
93 _tg3_flag_clear(TG3_FLAG_##flag, (tp)->tg3_flags)
128 #define TG3_MAX_MTU(tp) \ argument
129 (tg3_flag(tp, JUMBO_CAPABLE) ? 9000 : 1500)
135 #define TG3_RX_STD_RING_SIZE(tp) \ argument
136 (tg3_flag(tp, LRG_PROD_RING_CAP) ? \
[all …]
/drivers/net/usb/
Dr8152.c637 void (*autosuspend_en)(struct r8152 *tp, bool enable);
680 int get_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data) in get_registers() argument
689 ret = usb_control_msg(tp->udev, usb_rcvctrlpipe(tp->udev, 0), in get_registers()
700 int set_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data) in set_registers() argument
709 ret = usb_control_msg(tp->udev, usb_sndctrlpipe(tp->udev, 0), in set_registers()
718 static int generic_ocp_read(struct r8152 *tp, u16 index, u16 size, in generic_ocp_read() argument
724 if (test_bit(RTL8152_UNPLUG, &tp->flags)) in generic_ocp_read()
736 ret = get_registers(tp, index, type, limit, data); in generic_ocp_read()
744 ret = get_registers(tp, index, type, size, data); in generic_ocp_read()
756 set_bit(RTL8152_UNPLUG, &tp->flags); in generic_ocp_read()
[all …]
/drivers/sbus/char/
Dbbc_envctrl.c119 static void get_current_temps(struct bbc_cpu_temperature *tp) in get_current_temps() argument
121 tp->prev_amb_temp = tp->curr_amb_temp; in get_current_temps()
122 bbc_i2c_readb(tp->client, in get_current_temps()
123 (unsigned char *) &tp->curr_amb_temp, in get_current_temps()
125 tp->prev_cpu_temp = tp->curr_cpu_temp; in get_current_temps()
126 bbc_i2c_readb(tp->client, in get_current_temps()
127 (unsigned char *) &tp->curr_cpu_temp, in get_current_temps()
131 tp->index, in get_current_temps()
132 (int) tp->curr_cpu_temp, (int) tp->curr_amb_temp); in get_current_temps()
137 static void do_envctrl_shutdown(struct bbc_cpu_temperature *tp) in do_envctrl_shutdown() argument
[all …]
/drivers/net/ethernet/dec/tulip/
Dtulip_core.c129 struct tulip_private *tp = netdev_priv(dev); in tulip_timer() local
132 schedule_work(&tp->media_work); in tulip_timer()
275 static void tulip_set_power_state (struct tulip_private *tp, in tulip_set_power_state() argument
278 if (tp->flags & HAS_ACPI) { in tulip_set_power_state()
280 pci_read_config_dword (tp->pdev, CFDD, &tmp); in tulip_set_power_state()
287 pci_write_config_dword (tp->pdev, CFDD, newtmp); in tulip_set_power_state()
295 struct tulip_private *tp = netdev_priv(dev); in tulip_up() local
296 void __iomem *ioaddr = tp->base_addr; in tulip_up()
302 napi_enable(&tp->napi); in tulip_up()
306 tulip_set_power_state (tp, 0, 0); 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 = pci_map_single(tp->pdev, skb->data, PKT_BUF_SZ, 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.c82 struct tulip_private *tp = netdev_priv(dev); in pnic2_timer() local
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()
131 tp->nwayset = tp->lpar = 0; 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 …]
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 …]
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 …]
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()
24 u32 new_csr6 = tp->csr6 & ~0x40C40200; 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()
[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 = kmalloc(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 = pci_map_single(tp->pci_dev, skb->data, tp->rx_buf_sz, in sis190_alloc_rx_skb()
499 if (pci_dma_mapping_error(tp->pci_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/3com/
Dtyphoon.c461 typhoon_hello(struct typhoon *tp) in typhoon_hello() argument
463 struct basic_ring *ring = &tp->cmdRing; in typhoon_hello()
470 if(spin_trylock(&tp->command_lock)) { in typhoon_hello()
476 iowrite32(ring->lastWrite, tp->ioaddr + TYPHOON_REG_CMD_READY); in typhoon_hello()
477 spin_unlock(&tp->command_lock); in typhoon_hello()
482 typhoon_process_response(struct typhoon *tp, int resp_size, in typhoon_process_response() argument
485 struct typhoon_indexes *indexes = tp->indexes; in typhoon_process_response()
487 u8 *base = tp->respRing.ringBase; in typhoon_process_response()
518 typhoon_media_status(tp->dev, resp); in typhoon_process_response()
520 typhoon_hello(tp); in typhoon_process_response()
[all …]
/drivers/net/ethernet/chelsio/cxgb/
Dtp.c53 void t1_tp_destroy(struct petp *tp) in t1_tp_destroy() argument
55 kfree(tp); in t1_tp_destroy()
60 struct petp *tp = kzalloc(sizeof(*tp), GFP_KERNEL); in t1_tp_create() local
62 if (!tp) in t1_tp_create()
65 tp->adapter = adapter; in t1_tp_create()
67 return tp; in t1_tp_create()
70 void t1_tp_intr_enable(struct petp *tp) in t1_tp_intr_enable() argument
72 u32 tp_intr = readl(tp->adapter->regs + A_PL_ENABLE); in t1_tp_intr_enable()
75 if (!t1_is_asic(tp->adapter)) { in t1_tp_intr_enable()
78 tp->adapter->regs + FPGA_TP_ADDR_INTERRUPT_ENABLE); in t1_tp_intr_enable()
[all …]
Dtp.h60 void t1_tp_destroy(struct petp *tp);
62 void t1_tp_intr_disable(struct petp *tp);
63 void t1_tp_intr_enable(struct petp *tp);
64 void t1_tp_intr_clear(struct petp *tp);
65 int t1_tp_intr_handler(struct petp *tp);
68 void t1_tp_set_tcp_checksum_offload(struct petp *tp, int enable);
69 void t1_tp_set_ip_checksum_offload(struct petp *tp, int enable);
70 int t1_tp_set_coalescing_size(struct petp *tp, unsigned int size);
71 int t1_tp_reset(struct petp *tp, struct tp_params *p, unsigned int tp_clk);
/drivers/input/mouse/
Dtrackpoint.c116 struct trackpoint_data *tp = psmouse->private; in trackpoint_show_int_attr() local
118 unsigned char value = *(unsigned char *)((char *)tp + attr->field_offset); in trackpoint_show_int_attr()
129 struct trackpoint_data *tp = psmouse->private; in trackpoint_set_int_attr() local
131 unsigned char *field = (unsigned char *)((char *)tp + attr->field_offset); in trackpoint_set_int_attr()
158 struct trackpoint_data *tp = psmouse->private; in trackpoint_set_bit_attr() local
160 unsigned char *field = (unsigned char *)((char *)tp + attr->field_offset); in trackpoint_set_bit_attr()
286 struct trackpoint_data *tp = psmouse->private; in trackpoint_sync() local
308 TRACKPOINT_UPDATE(in_power_on_state, psmouse, tp, sensitivity); in trackpoint_sync()
309 TRACKPOINT_UPDATE(in_power_on_state, psmouse, tp, inertia); in trackpoint_sync()
310 TRACKPOINT_UPDATE(in_power_on_state, psmouse, tp, speed); in trackpoint_sync()
[all …]
/drivers/scsi/sym53c8xx_2/
Dsym_glue.c268 struct sym_tcb *tp = &np->target[cp->target]; in sym_scatter() local
282 if ((len & 1) && (tp->head.wval & EWS)) { in sym_scatter()
303 struct sym_tcb *tp; in sym_queue_command() local
311 tp = &np->target[sdev->id]; in sym_queue_command()
316 lp = sym_lp(tp, sdev->lun); in sym_queue_command()
715 static void sym_tune_dev_queuing(struct sym_tcb *tp, int lun, u_short reqtags) in sym_tune_dev_queuing() argument
717 struct sym_lcb *lp = sym_lp(tp, lun); in sym_tune_dev_queuing()
731 dev_info(&tp->starget->dev, in sym_tune_dev_queuing()
740 struct sym_tcb *tp = &np->target[sdev->id]; in sym53c8xx_slave_alloc() local
759 if (tp->usrflags & SYM_SCAN_BOOT_DISABLED) { in sym53c8xx_slave_alloc()
[all …]
Dsym_hipd.c83 struct sym_tcb *tp = &np->target[target]; in sym_print_nego_msg() local
84 dev_info(&tp->starget->dev, "%s: ", label); in sym_print_nego_msg()
915 struct sym_tcb *tp = &np->target[i]; local
917 tp->usrflags |= (SYM_DISC_ENABLED | SYM_TAGS_ENABLED);
918 tp->usrtags = SYM_SETUP_MAX_TAG;
919 tp->usr_width = np->maxwide;
920 tp->usr_period = 9;
922 sym_nvram_setup_target(tp, i, nvram);
924 if (!tp->usrtags)
925 tp->usrflags &= ~SYM_TAGS_ENABLED;
[all …]
/drivers/scsi/
Desp_scsi.c549 static int esp_need_to_nego_wide(struct esp_target_data *tp) in esp_need_to_nego_wide() argument
551 struct scsi_target *target = tp->starget; in esp_need_to_nego_wide()
553 return spi_width(target) != tp->nego_goal_width; in esp_need_to_nego_wide()
556 static int esp_need_to_nego_sync(struct esp_target_data *tp) in esp_need_to_nego_sync() argument
558 struct scsi_target *target = tp->starget; in esp_need_to_nego_sync()
561 if (!spi_offset(target) && !tp->nego_goal_offset) in esp_need_to_nego_sync()
564 if (spi_offset(target) == tp->nego_goal_offset && in esp_need_to_nego_sync()
565 spi_period(target) == tp->nego_goal_period) in esp_need_to_nego_sync()
721 struct esp_target_data *tp; in esp_maybe_execute_command() local
747 tp = &esp->target[tgt]; in esp_maybe_execute_command()
[all …]
Dscsi_transport_spi.c286 struct spi_transport_attrs *tp; \
288 tp = (struct spi_transport_attrs *)&starget->starget_data; \
289 return snprintf(buf, 20, format_string, tp->field); \
301 struct spi_transport_attrs *tp; \
303 tp = (struct spi_transport_attrs *)&starget->starget_data; \
305 tp->field = val; \
317 struct spi_transport_attrs *tp; \
319 tp = (struct spi_transport_attrs *)&starget->starget_data; \
322 return snprintf(buf, 20, format_string, tp->field); \
353 struct spi_transport_attrs *tp \
[all …]
Dncr53c8xx.c1937 static void ncr_negotiate (struct ncb* np, struct tcb* tp);
3972 struct tcb *tp = &np->target[i]; in ncr_prepare_setting() local
3974 tp->usrsync = driver_setup.default_sync; in ncr_prepare_setting()
3975 tp->usrwide = driver_setup.max_wide; in ncr_prepare_setting()
3976 tp->usrtags = MAX_TAGS; in ncr_prepare_setting()
3977 tp->period = 0xffff; in ncr_prepare_setting()
4062 struct tcb *tp = &np->target[cp->target]; in ncr_prepare_nego() local
4065 struct scsi_target *starget = tp->starget; in ncr_prepare_nego()
4068 if (!tp->widedone) { in ncr_prepare_nego()
4072 tp->widedone=1; in ncr_prepare_nego()
[all …]
/drivers/net/wireless/marvell/mwifiex/
Dsta_event.c342 struct mwifiex_tx_pause_tlv *tp; in mwifiex_process_uap_tx_pause() local
346 tp = (void *)tlv; in mwifiex_process_uap_tx_pause()
349 tp->peermac, tp->tx_pause, in mwifiex_process_uap_tx_pause()
350 tp->pkt_cnt); in mwifiex_process_uap_tx_pause()
352 if (ether_addr_equal(tp->peermac, priv->netdev->dev_addr)) { in mwifiex_process_uap_tx_pause()
353 if (tp->tx_pause) in mwifiex_process_uap_tx_pause()
357 } else if (is_multicast_ether_addr(tp->peermac)) { in mwifiex_process_uap_tx_pause()
358 mwifiex_update_ralist_tx_pause(priv, tp->peermac, tp->tx_pause); in mwifiex_process_uap_tx_pause()
361 sta_ptr = mwifiex_get_sta_entry(priv, tp->peermac); in mwifiex_process_uap_tx_pause()
364 if (sta_ptr && sta_ptr->tx_pause != tp->tx_pause) { in mwifiex_process_uap_tx_pause()
[all …]

1234