/Linux-v4.19/drivers/s390/char/ |
D | tty3270.c | 128 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 …]
|
/Linux-v4.19/drivers/net/ethernet/realtek/ |
D | r8169.c | 59 #define TX_SLOTS_AVAIL(tp) \ argument 60 (tp->dirty_tx + NUM_TX_DESC - tp->cur_tx) 63 #define TX_FRAGS_READY_FOR(tp,nr_frags) \ argument 64 (TX_SLOTS_AVAIL(tp) >= (nr_frags + 1)) 83 #define RTL_W8(tp, reg, val8) writeb((val8), tp->mmio_addr + (reg)) argument 84 #define RTL_W16(tp, reg, val16) writew((val16), tp->mmio_addr + (reg)) argument 85 #define RTL_W32(tp, reg, val32) writel((val32), tp->mmio_addr + (reg)) argument 86 #define RTL_R8(tp, reg) readb(tp->mmio_addr + (reg)) argument 87 #define RTL_R16(tp, reg) readw(tp->mmio_addr + (reg)) argument 88 #define RTL_R32(tp, reg) readl(tp->mmio_addr + (reg)) argument [all …]
|
D | 8139too.c | 643 static void rtl8139_start_thread(struct rtl8139_private *tp); 719 struct rtl8139_private *tp = netdev_priv(dev); in __rtl8139_cleanup_dev() local 723 assert (tp->pci_dev != NULL); in __rtl8139_cleanup_dev() 724 pdev = tp->pci_dev; in __rtl8139_cleanup_dev() 726 if (tp->mmio_addr) in __rtl8139_cleanup_dev() 727 pci_iounmap (pdev, tp->mmio_addr); in __rtl8139_cleanup_dev() 758 struct rtl8139_private *tp; in rtl8139_init_board() local 775 dev = alloc_etherdev (sizeof (*tp)); in rtl8139_init_board() 781 tp = netdev_priv(dev); in rtl8139_init_board() 782 tp->pci_dev = pdev; in rtl8139_init_board() [all …]
|
/Linux-v4.19/drivers/net/ethernet/broadcom/ |
D | tg3.c | 96 #define tg3_flag(tp, flag) \ argument 97 _tg3_flag(TG3_FLAG_##flag, (tp)->tg3_flags) 98 #define tg3_flag_set(tp, flag) \ argument 99 _tg3_flag_set(TG3_FLAG_##flag, (tp)->tg3_flags) 100 #define tg3_flag_clear(tp, flag) \ argument 101 _tg3_flag_clear(TG3_FLAG_##flag, (tp)->tg3_flags) 136 #define TG3_MAX_MTU(tp) \ argument 137 (tg3_flag(tp, JUMBO_CAPABLE) ? 9000 : 1500) 143 #define TG3_RX_STD_RING_SIZE(tp) \ argument 144 (tg3_flag(tp, LRG_PROD_RING_CAP) ? \ [all …]
|
/Linux-v4.19/drivers/net/usb/ |
D | r8152.c | 733 void (*autosuspend_en)(struct r8152 *tp, bool enable); 779 int get_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data) in get_registers() argument 788 ret = usb_control_msg(tp->udev, usb_rcvctrlpipe(tp->udev, 0), in get_registers() 799 int set_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data) in set_registers() argument 808 ret = usb_control_msg(tp->udev, usb_sndctrlpipe(tp->udev, 0), in set_registers() 817 static int generic_ocp_read(struct r8152 *tp, u16 index, u16 size, in generic_ocp_read() argument 823 if (test_bit(RTL8152_UNPLUG, &tp->flags)) in generic_ocp_read() 835 ret = get_registers(tp, index, type, limit, data); in generic_ocp_read() 843 ret = get_registers(tp, index, type, size, data); in generic_ocp_read() 855 set_bit(RTL8152_UNPLUG, &tp->flags); in generic_ocp_read() [all …]
|
/Linux-v4.19/fs/xfs/ |
D | xfs_trans.c | 65 struct xfs_trans *tp) in xfs_trans_free() argument 67 xfs_extent_busy_sort(&tp->t_busy); in xfs_trans_free() 68 xfs_extent_busy_clear(tp->t_mountp, &tp->t_busy, false); in xfs_trans_free() 70 trace_xfs_trans_free(tp, _RET_IP_); in xfs_trans_free() 71 atomic_dec(&tp->t_mountp->m_active_trans); in xfs_trans_free() 72 if (!(tp->t_flags & XFS_TRANS_NO_WRITECOUNT)) in xfs_trans_free() 73 sb_end_intwrite(tp->t_mountp->m_super); in xfs_trans_free() 74 xfs_trans_free_dqinfo(tp); in xfs_trans_free() 75 kmem_zone_free(xfs_trans_zone, tp); in xfs_trans_free() 88 struct xfs_trans *tp) in xfs_trans_dup() argument [all …]
|
/Linux-v4.19/drivers/sbus/char/ |
D | bbc_envctrl.c | 120 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 …]
|
/Linux-v4.19/drivers/net/ethernet/dec/tulip/ |
D | pnic2.c | 81 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 …]
|
D | interrupt.c | 61 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 …]
|
D | tulip_core.c | 128 struct tulip_private *tp = from_timer(tp, t, timer); in tulip_timer() local 129 struct net_device *dev = tp->dev; in tulip_timer() 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() [all …]
|
D | 21142.c | 30 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 …]
|
D | timer.c | 19 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 …]
|
D | pnic.c | 21 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 …]
|
D | media.c | 49 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 …]
|
/Linux-v4.19/net/ipv4/ |
D | tcp_input.c | 242 static void tcp_ecn_queue_cwr(struct tcp_sock *tp) in tcp_ecn_queue_cwr() argument 244 if (tp->ecn_flags & TCP_ECN_OK) in tcp_ecn_queue_cwr() 245 tp->ecn_flags |= TCP_ECN_QUEUE_CWR; in tcp_ecn_queue_cwr() 261 static void tcp_ecn_withdraw_cwr(struct tcp_sock *tp) in tcp_ecn_withdraw_cwr() argument 263 tp->ecn_flags &= ~TCP_ECN_DEMAND_CWR; in tcp_ecn_withdraw_cwr() 268 struct tcp_sock *tp = tcp_sk(sk); in __tcp_ecn_check_ce() local 276 if (tp->ecn_flags & TCP_ECN_SEEN) in __tcp_ecn_check_ce() 283 if (!(tp->ecn_flags & TCP_ECN_DEMAND_CWR)) { in __tcp_ecn_check_ce() 286 tp->ecn_flags |= TCP_ECN_DEMAND_CWR; in __tcp_ecn_check_ce() 288 tp->ecn_flags |= TCP_ECN_SEEN; in __tcp_ecn_check_ce() [all …]
|
D | tcp_recovery.c | 7 struct tcp_sock *tp = tcp_sk(sk); in tcp_mark_skb_lost() local 9 tcp_skb_mark_lost_uncond_verify(tp, skb); in tcp_mark_skb_lost() 13 tp->retrans_out -= tcp_skb_pcount(skb); in tcp_mark_skb_lost() 26 struct tcp_sock *tp = tcp_sk(sk); in tcp_rack_reo_wnd() local 28 if (!tp->reord_seen) { in tcp_rack_reo_wnd() 35 if (tp->sacked_out >= tp->reordering && in tcp_rack_reo_wnd() 46 return min((tcp_min_rtt(tp) >> 2) * tp->rack.reo_wnd_steps, in tcp_rack_reo_wnd() 47 tp->srtt_us >> 3); in tcp_rack_reo_wnd() 50 s32 tcp_rack_skb_timeout(struct tcp_sock *tp, struct sk_buff *skb, u32 reo_wnd) in tcp_rack_skb_timeout() argument 52 return tp->rack.rtt_us + reo_wnd - in tcp_rack_skb_timeout() [all …]
|
D | tcp_rate.c | 41 struct tcp_sock *tp = tcp_sk(sk); in tcp_rate_skb_sent() local 57 if (!tp->packets_out) { in tcp_rate_skb_sent() 58 tp->first_tx_mstamp = skb->skb_mstamp; in tcp_rate_skb_sent() 59 tp->delivered_mstamp = skb->skb_mstamp; in tcp_rate_skb_sent() 62 TCP_SKB_CB(skb)->tx.first_tx_mstamp = tp->first_tx_mstamp; in tcp_rate_skb_sent() 63 TCP_SKB_CB(skb)->tx.delivered_mstamp = tp->delivered_mstamp; in tcp_rate_skb_sent() 64 TCP_SKB_CB(skb)->tx.delivered = tp->delivered; in tcp_rate_skb_sent() 65 TCP_SKB_CB(skb)->tx.is_app_limited = tp->app_limited ? 1 : 0; in tcp_rate_skb_sent() 78 struct tcp_sock *tp = tcp_sk(sk); in tcp_rate_skb_delivered() local 97 tp->first_tx_mstamp = skb->skb_mstamp; in tcp_rate_skb_delivered() [all …]
|
D | tcp_output.c | 55 struct tcp_sock *tp = tcp_sk(sk); in tcp_event_new_data_sent() local 56 unsigned int prior_packets = tp->packets_out; in tcp_event_new_data_sent() 58 tp->snd_nxt = TCP_SKB_CB(skb)->end_seq; in tcp_event_new_data_sent() 63 tp->packets_out += tcp_skb_pcount(skb); in tcp_event_new_data_sent() 80 const struct tcp_sock *tp = tcp_sk(sk); in tcp_acceptable_seq() local 82 if (!before(tcp_wnd_end(tp), tp->snd_nxt) || in tcp_acceptable_seq() 83 (tp->rx_opt.wscale_ok && in tcp_acceptable_seq() 84 ((tp->snd_nxt - tcp_wnd_end(tp)) < (1 << tp->rx_opt.rcv_wscale)))) in tcp_acceptable_seq() 85 return tp->snd_nxt; in tcp_acceptable_seq() 87 return tcp_wnd_end(tp); in tcp_acceptable_seq() [all …]
|
D | tcp_yeah.c | 44 struct tcp_sock *tp = tcp_sk(sk); in tcp_yeah_init() local 56 tp->snd_cwnd_clamp = min_t(u32, tp->snd_cwnd_clamp, 0xffffffff/128); in tcp_yeah_init() 73 struct tcp_sock *tp = tcp_sk(sk); in tcp_yeah_cong_avoid() local 79 if (tcp_in_slow_start(tp)) in tcp_yeah_cong_avoid() 80 tcp_slow_start(tp, acked); in tcp_yeah_cong_avoid() 85 tp->snd_cwnd_cnt += yeah->pkts_acked; in tcp_yeah_cong_avoid() 86 if (tp->snd_cwnd_cnt > min(tp->snd_cwnd, TCP_SCALABLE_AI_CNT)) { in tcp_yeah_cong_avoid() 87 if (tp->snd_cwnd < tp->snd_cwnd_clamp) in tcp_yeah_cong_avoid() 88 tp->snd_cwnd++; in tcp_yeah_cong_avoid() 89 tp->snd_cwnd_cnt = 0; in tcp_yeah_cong_avoid() [all …]
|
/Linux-v4.19/drivers/net/ethernet/sis/ |
D | sis190.c | 400 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 …]
|
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb/ |
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() 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 …]
|
/Linux-v4.19/fs/xfs/libxfs/ |
D | xfs_defer.c | 184 struct xfs_trans *tp) in xfs_defer_create_intents() argument 189 list_for_each_entry(dfp, &tp->t_dfops, dfp_list) { in xfs_defer_create_intents() 190 dfp->dfp_intent = dfp->dfp_type->create_intent(tp, in xfs_defer_create_intents() 192 trace_xfs_defer_create_intent(tp->t_mountp, dfp); in xfs_defer_create_intents() 193 list_sort(tp->t_mountp, &dfp->dfp_work, in xfs_defer_create_intents() 196 dfp->dfp_type->log_item(tp, dfp->dfp_intent, li); in xfs_defer_create_intents() 203 struct xfs_trans *tp, in xfs_defer_trans_abort() argument 208 trace_xfs_defer_trans_abort(tp, _RET_IP_); in xfs_defer_trans_abort() 212 trace_xfs_defer_pending_abort(tp->t_mountp, dfp); in xfs_defer_trans_abort() 225 struct xfs_trans *tp = *tpp; in xfs_defer_trans_roll() local [all …]
|
/Linux-v4.19/drivers/net/ethernet/3com/ |
D | typhoon.c | 460 typhoon_hello(struct typhoon *tp) in typhoon_hello() argument 462 struct basic_ring *ring = &tp->cmdRing; in typhoon_hello() 469 if(spin_trylock(&tp->command_lock)) { in typhoon_hello() 475 iowrite32(ring->lastWrite, tp->ioaddr + TYPHOON_REG_CMD_READY); in typhoon_hello() 476 spin_unlock(&tp->command_lock); in typhoon_hello() 481 typhoon_process_response(struct typhoon *tp, int resp_size, in typhoon_process_response() argument 484 struct typhoon_indexes *indexes = tp->indexes; in typhoon_process_response() 486 u8 *base = tp->respRing.ringBase; in typhoon_process_response() 517 typhoon_media_status(tp->dev, resp); in typhoon_process_response() 519 typhoon_hello(tp); in typhoon_process_response() [all …]
|
/Linux-v4.19/arch/sparc/kernel/ |
D | windows.c | 42 static inline void shift_window_buffer(int first_win, int last_win, struct thread_info *tp) in shift_window_buffer() argument 47 tp->rwbuf_stkptrs[i] = tp->rwbuf_stkptrs[i+1]; in shift_window_buffer() 48 memcpy(&tp->reg_window[i], &tp->reg_window[i+1], sizeof(struct reg_window32)); in shift_window_buffer() 63 struct thread_info *tp = current_thread_info(); in synchronize_user_stack() local 67 if(!tp->w_saved) in synchronize_user_stack() 71 for(window = tp->w_saved - 1; window >= 0; window--) { in synchronize_user_stack() 72 unsigned long sp = tp->rwbuf_stkptrs[window]; in synchronize_user_stack() 75 if (copy_to_user((char __user *) sp, &tp->reg_window[window], in synchronize_user_stack() 79 shift_window_buffer(window, tp->w_saved - 1, tp); in synchronize_user_stack() 80 tp->w_saved--; in synchronize_user_stack() [all …]
|
/Linux-v4.19/lib/ |
D | test_bitfield.c | 12 #define CHECK_ENC_GET_U(tp, v, field, res) do { \ argument 14 u##tp _res; \ 16 _res = u##tp##_encode_bits(v, field); \ 18 pr_warn("u" #tp "_encode_bits(" #v ", " #field ") is 0x%llx != " #res "\n",\ 22 if (u##tp##_get_bits(_res, field) != v) \ 27 #define CHECK_ENC_GET_LE(tp, v, field, res) do { \ argument 29 __le##tp _res; \ 31 _res = le##tp##_encode_bits(v, field); \ 32 if (_res != cpu_to_le##tp(res)) { \ 33 pr_warn("le" #tp "_encode_bits(" #v ", " #field ") is 0x%llx != 0x%llx\n",\ [all …]
|