/linux-2.4.37.9/net/ipv4/ |
D | tcp_input.c | 127 #define IsReno(tp) ((tp)->sack_ok == 0) argument 128 #define IsFack(tp) ((tp)->sack_ok & 2) argument 129 #define IsDSack(tp) ((tp)->sack_ok & 4) argument 136 static __inline__ void tcp_measure_rcv_mss(struct tcp_opt *tp, struct sk_buff *skb) in tcp_measure_rcv_mss() argument 140 lss = tp->ack.last_seg_size; in tcp_measure_rcv_mss() 141 tp->ack.last_seg_size = 0; in tcp_measure_rcv_mss() 147 if (len >= tp->ack.rcv_mss) { in tcp_measure_rcv_mss() 148 tp->ack.rcv_mss = len; in tcp_measure_rcv_mss() 168 len -= tp->tcp_header_len; in tcp_measure_rcv_mss() 169 tp->ack.last_seg_size = len; in tcp_measure_rcv_mss() [all …]
|
D | tcp_output.c | 48 void update_send_head(struct sock *sk, struct tcp_opt *tp, struct sk_buff *skb) in update_send_head() argument 50 tp->send_head = skb->next; in update_send_head() 51 if (tp->send_head == (struct sk_buff *) &sk->write_queue) in update_send_head() 52 tp->send_head = NULL; in update_send_head() 53 tp->snd_nxt = TCP_SKB_CB(skb)->end_seq; in update_send_head() 54 if (tp->packets_out++ == 0) in update_send_head() 55 tcp_reset_xmit_timer(sk, TCP_TIME_RETRANS, tp->rto); in update_send_head() 64 static __inline__ __u32 tcp_acceptable_seq(struct sock *sk, struct tcp_opt *tp) in tcp_acceptable_seq() argument 66 if (!before(tp->snd_una+tp->snd_wnd, tp->snd_nxt)) in tcp_acceptable_seq() 67 return tp->snd_nxt; in tcp_acceptable_seq() [all …]
|
D | tcp_timer.c | 48 struct tcp_opt *tp = &sk->tp_pinfo.af_tcp; in tcp_init_xmit_timers() local 50 init_timer(&tp->retransmit_timer); in tcp_init_xmit_timers() 51 tp->retransmit_timer.function=&tcp_write_timer; in tcp_init_xmit_timers() 52 tp->retransmit_timer.data = (unsigned long) sk; in tcp_init_xmit_timers() 53 tp->pending = 0; in tcp_init_xmit_timers() 55 init_timer(&tp->delack_timer); in tcp_init_xmit_timers() 56 tp->delack_timer.function=&tcp_delack_timer; in tcp_init_xmit_timers() 57 tp->delack_timer.data = (unsigned long) sk; in tcp_init_xmit_timers() 58 tp->ack.pending = 0; in tcp_init_xmit_timers() 67 struct tcp_opt *tp = &sk->tp_pinfo.af_tcp; in tcp_clear_xmit_timers() local [all …]
|
D | tcp.c | 384 struct tcp_opt *tp = &(sk->tp_pinfo.af_tcp); in tcp_poll() local 436 if ((tp->rcv_nxt != tp->copied_seq) && in tcp_poll() 437 (tp->urg_seq != tp->copied_seq || in tcp_poll() 438 tp->rcv_nxt != tp->copied_seq+1 || in tcp_poll() 439 sk->urginline || !tp->urg_data)) in tcp_poll() 458 if (tp->urg_data & TCP_URG_VALID) in tcp_poll() 484 struct tcp_opt *tp = &(sk->tp_pinfo.af_tcp); in tcp_ioctl() local 495 else if (sk->urginline || !tp->urg_data || in tcp_ioctl() 496 before(tp->urg_seq,tp->copied_seq) || in tcp_ioctl() 497 !before(tp->urg_seq,tp->rcv_nxt)) { in tcp_ioctl() [all …]
|
/linux-2.4.37.9/drivers/net/ |
D | tg3.c | 92 #define TG3_MAX_MTU(tp) \ argument 93 (!(tp->tg3_flags2 & TG3_FLG2_5705_PLUS) ? 9000 : 1500) 110 #define TG3_RX_RCB_RING_SIZE(tp) \ argument 111 ((tp->tg3_flags2 & TG3_FLG2_5705_PLUS) ? 512 : 1024) 120 #define TG3_RX_RCB_RING_BYTES(tp) (sizeof(struct tg3_rx_buffer_desc) * \ argument 121 TG3_RX_RCB_RING_SIZE(tp)) 132 #define RX_PKT_BUF_SZ (1536 + tp->rx_offset + 64) 133 #define RX_JUMBO_PKT_BUF_SZ (9046 + tp->rx_offset + 64) 323 static void tg3_write_indirect_reg32(struct tg3 *tp, u32 off, u32 val) in tg3_write_indirect_reg32() argument 325 if ((tp->tg3_flags & TG3_FLAG_PCIX_TARGET_HWBUG) != 0) { in tg3_write_indirect_reg32() [all …]
|
D | r8169.c | 358 struct rtl8169_private *tp, void *ioaddr); 408 struct rtl8169_private *tp = dev->priv; in rtl8169_get_drvinfo() local 412 strcpy(info->bus_info, pci_name(tp->pci_dev)); in rtl8169_get_drvinfo() 430 static void rtl8169_get_mac_version(struct rtl8169_private *tp, void *ioaddr) in rtl8169_get_mac_version() argument 445 tp->mac_version = p->mac_version; in rtl8169_get_mac_version() 448 static void rtl8169_print_mac_version(struct rtl8169_private *tp) in rtl8169_print_mac_version() argument 461 if (tp->mac_version == p->version) { in rtl8169_print_mac_version() 470 static void rtl8169_get_phy_version(struct rtl8169_private *tp, void *ioaddr) in rtl8169_get_phy_version() argument 487 tp->phy_version = p->phy_version; in rtl8169_get_phy_version() 490 static void rtl8169_print_phy_version(struct rtl8169_private *tp) in rtl8169_print_phy_version() argument [all …]
|
D | pci-skeleton.c | 590 struct netdrv_private *tp; in netdrv_init_board() local 606 dev = alloc_etherdev (sizeof (*tp)); in netdrv_init_board() 613 tp = dev->priv; in netdrv_init_board() 700 tp->chipset = i; in netdrv_init_board() 708 tp->chipset = 0; in netdrv_init_board() 713 tp->chipset, in netdrv_init_board() 714 rtl_chip_info[tp->chipset].name); in netdrv_init_board() 742 struct netdrv_private *tp; in netdrv_init_one() local 768 tp = dev->priv; in netdrv_init_one() 772 assert (tp != NULL); in netdrv_init_one() [all …]
|
D | typhoon.c | 463 typhoon_hello(struct typhoon *tp) in typhoon_hello() argument 465 struct basic_ring *ring = &tp->cmdRing; in typhoon_hello() 472 if(spin_trylock(&tp->command_lock)) { in typhoon_hello() 478 writel(ring->lastWrite, tp->ioaddr + TYPHOON_REG_CMD_READY); in typhoon_hello() 479 spin_unlock(&tp->command_lock); in typhoon_hello() 484 typhoon_process_response(struct typhoon *tp, int resp_size, in typhoon_process_response() argument 487 struct typhoon_indexes *indexes = tp->indexes; in typhoon_process_response() 489 u8 *base = tp->respRing.ringBase; in typhoon_process_response() 520 typhoon_media_status(tp->dev, resp); in typhoon_process_response() 522 typhoon_hello(tp); in typhoon_process_response() [all …]
|
D | 8139too.c | 711 struct rtl8139_private *tp; in __rtl8139_cleanup_dev() local 717 tp = dev->priv; in __rtl8139_cleanup_dev() 718 assert (tp->pci_dev != NULL); in __rtl8139_cleanup_dev() 719 pdev = tp->pci_dev; in __rtl8139_cleanup_dev() 722 if (tp->mmio_addr) in __rtl8139_cleanup_dev() 723 iounmap (tp->mmio_addr); in __rtl8139_cleanup_dev() 757 struct rtl8139_private *tp; in rtl8139_init_board() local 770 dev = alloc_etherdev (sizeof (*tp)); in rtl8139_init_board() 777 tp = dev->priv; in rtl8139_init_board() 778 tp->pci_dev = pdev; in rtl8139_init_board() [all …]
|
/linux-2.4.37.9/fs/xfs/ |
D | xfs_trans.c | 146 xfs_trans_t *tp; in _xfs_trans_alloc() local 149 tp = kmem_zone_zalloc(xfs_trans_zone, KM_SLEEP); in _xfs_trans_alloc() 154 tp->t_magic = XFS_TRANS_MAGIC; in _xfs_trans_alloc() 155 tp->t_type = type; in _xfs_trans_alloc() 156 tp->t_mountp = mp; in _xfs_trans_alloc() 157 tp->t_items_free = XFS_LIC_NUM_SLOTS; in _xfs_trans_alloc() 158 tp->t_busy_free = XFS_LBC_NUM_SLOTS; in _xfs_trans_alloc() 159 XFS_LIC_INIT(&(tp->t_items)); in _xfs_trans_alloc() 160 XFS_LBC_INIT(&(tp->t_busy)); in _xfs_trans_alloc() 162 return (tp); in _xfs_trans_alloc() [all …]
|
D | xfs_utils.c | 160 xfs_trans_t *tp; in xfs_dir_ialloc() local 171 tp = *tpp; in xfs_dir_ialloc() 172 ASSERT(tp->t_flags & XFS_TRANS_PERM_LOG_RES); in xfs_dir_ialloc() 189 code = xfs_ialloc(tp, dp, mode, nlink, rdev, credp, prid, okalloc, in xfs_dir_ialloc() 221 xfs_trans_bhold(tp, ialloc_context); in xfs_dir_ialloc() 226 log_res = xfs_trans_get_log_res(tp); in xfs_dir_ialloc() 227 log_count = xfs_trans_get_log_count(tp); in xfs_dir_ialloc() 236 if (tp->t_dqinfo) { in xfs_dir_ialloc() 237 dqinfo = (void *)tp->t_dqinfo; in xfs_dir_ialloc() 238 tp->t_dqinfo = NULL; in xfs_dir_ialloc() [all …]
|
/linux-2.4.37.9/drivers/net/tokenring/ |
D | tms380tr.c | 123 static void tms380tr_cancel_tx_queue(struct net_local* tp); 128 static unsigned char tms380tr_chk_ssb(struct net_local *tp, unsigned short IrqType); 145 struct net_local* tp); 149 static void tms380tr_init_ipb(struct net_local *tp); 175 static void tms380tr_update_rcv_stats(struct net_local *tp, 253 struct net_local *tp = (struct net_local *)dev->priv; in tms380tr_open() local 275 init_timer(&tp->timer); in tms380tr_open() 276 tp->timer.expires = jiffies + 30*HZ; in tms380tr_open() 277 tp->timer.function = tms380tr_timer_end_wait; in tms380tr_open() 278 tp->timer.data = (unsigned long)dev; in tms380tr_open() [all …]
|
D | smctr.c | 144 struct net_local *tp); 341 struct net_local *tp = (struct net_local *)dev->priv; in smctr_alloc_shared_memory() local 349 tp->iscpb_ptr = (ISCPBlock *)(tp->ram_access + ((__u32)64 * 0x400) in smctr_alloc_shared_memory() 353 tp->scgb_ptr = (SCGBlock *)smctr_malloc(dev, sizeof(SCGBlock)); in smctr_alloc_shared_memory() 354 PARAGRAPH_BOUNDRY(tp->sh_mem_used); in smctr_alloc_shared_memory() 356 tp->sclb_ptr = (SCLBlock *)smctr_malloc(dev, sizeof(SCLBlock)); in smctr_alloc_shared_memory() 357 PARAGRAPH_BOUNDRY(tp->sh_mem_used); in smctr_alloc_shared_memory() 359 tp->acb_head = (ACBlock *)smctr_malloc(dev, in smctr_alloc_shared_memory() 360 sizeof(ACBlock)*tp->num_acbs); in smctr_alloc_shared_memory() 361 PARAGRAPH_BOUNDRY(tp->sh_mem_used); in smctr_alloc_shared_memory() [all …]
|
/linux-2.4.37.9/drivers/net/tulip/ |
D | interrupt.c | 66 struct tulip_private *tp = (struct tulip_private *)dev->priv; in tulip_refill_rx() local 71 for (; tp->cur_rx - tp->dirty_rx > 0; tp->dirty_rx++) { in tulip_refill_rx() 72 entry = tp->dirty_rx % RX_RING_SIZE; in tulip_refill_rx() 73 if (tp->rx_buffers[entry].skb == NULL) { in tulip_refill_rx() 77 skb = tp->rx_buffers[entry].skb = dev_alloc_skb(PKT_BUF_SZ); in tulip_refill_rx() 81 mapping = pci_map_single(tp->pdev, skb->tail, PKT_BUF_SZ, in tulip_refill_rx() 83 tp->rx_buffers[entry].mapping = mapping; in tulip_refill_rx() 86 tp->rx_ring[entry].buffer1 = cpu_to_le32(mapping); in tulip_refill_rx() 89 tp->rx_ring[entry].status = cpu_to_le32(DescOwned); in tulip_refill_rx() 91 if(tp->chip_id == LC82C168) { in tulip_refill_rx() [all …]
|
D | pnic2.c | 87 struct tulip_private *tp = (struct tulip_private *)dev->priv; in pnic2_timer() local 96 mod_timer(&tp->timer, RUN_AT(next_tick)); in pnic2_timer() 103 struct tulip_private *tp = (struct tulip_private *)dev->priv; in pnic2_start_nway() local 116 if (tp->sym_advertise & 0x0100) csr14 |= 0x00020000; in pnic2_start_nway() 119 if (tp->sym_advertise & 0x0080) csr14 |= 0x00010000; in pnic2_start_nway() 122 if (tp->sym_advertise & 0x0020) csr14 |= 0x00000040; in pnic2_start_nway() 135 tp->nway = tp->mediasense = 1; in pnic2_start_nway() 136 tp->nwayset = tp->lpar = 0; in pnic2_start_nway() 140 tp->csr6 = inl(ioaddr + CSR6); in pnic2_start_nway() 143 "csr6=%8.8x.\n", dev->name, tp->csr6); in pnic2_start_nway() [all …]
|
D | tulip_core.c | 273 static void tulip_set_power_state (struct tulip_private *tp, in tulip_set_power_state() argument 276 if (tp->flags & HAS_ACPI) { in tulip_set_power_state() 278 pci_read_config_dword (tp->pdev, CFDD, &tmp); in tulip_set_power_state() 285 pci_write_config_dword (tp->pdev, CFDD, newtmp); in tulip_set_power_state() 293 struct tulip_private *tp = (struct tulip_private *)dev->priv; in tulip_up() local 299 tulip_set_power_state (tp, 0, 0); in tulip_up() 302 if (tp->mii_cnt || (tp->mtable && tp->mtable->has_mii)) in tulip_up() 312 outl(tp->csr0, ioaddr + CSR0); in tulip_up() 318 outl(tp->rx_ring_dma, ioaddr + CSR3); in tulip_up() 319 outl(tp->tx_ring_dma, ioaddr + CSR4); in tulip_up() [all …]
|
D | 21142.c | 32 struct tulip_private *tp = (struct tulip_private *)dev->priv; in t21142_timer() local 44 } else if (tp->nwayset) { in t21142_timer() 49 } else if (tp->medialock) { in t21142_timer() 83 if (new_csr6 != (tp->csr6 & ~0x00D5)) { in t21142_timer() 84 tp->csr6 &= 0x00D5; in t21142_timer() 85 tp->csr6 |= new_csr6; in t21142_timer() 87 tulip_restart_rxtx(tp); in t21142_timer() 95 mod_timer(&tp->timer, RUN_AT(next_tick)); in t21142_timer() 101 struct tulip_private *tp = (struct tulip_private *)dev->priv; in t21142_start_nway() local 103 int csr14 = ((tp->sym_advertise & 0x0780) << 9) | in t21142_start_nway() [all …]
|
D | media.c | 58 struct tulip_private *tp = (struct tulip_private *)dev->priv; in tulip_mdio_read() local 69 if (tp->chip_id == COMET && phy_id == 30) { in tulip_mdio_read() 75 spin_lock_irqsave(&tp->mii_lock, flags); in tulip_mdio_read() 76 if (tp->chip_id == LC82C168) { in tulip_mdio_read() 86 spin_unlock_irqrestore(&tp->mii_lock, flags); in tulip_mdio_read() 115 spin_unlock_irqrestore(&tp->mii_lock, flags); in tulip_mdio_read() 121 struct tulip_private *tp = (struct tulip_private *)dev->priv; in tulip_mdio_write() local 131 if (tp->chip_id == COMET && phy_id == 30) { in tulip_mdio_write() 137 spin_lock_irqsave(&tp->mii_lock, flags); in tulip_mdio_write() 138 if (tp->chip_id == LC82C168) { in tulip_mdio_write() [all …]
|
/linux-2.4.37.9/drivers/sbus/char/ |
D | bbc_envctrl.c | 155 static void get_current_temps(struct bbc_cpu_temperature *tp) in get_current_temps() argument 157 tp->prev_amb_temp = tp->curr_amb_temp; in get_current_temps() 158 bbc_i2c_readb(tp->client, in get_current_temps() 159 (unsigned char *) &tp->curr_amb_temp, in get_current_temps() 161 tp->prev_cpu_temp = tp->curr_cpu_temp; in get_current_temps() 162 bbc_i2c_readb(tp->client, in get_current_temps() 163 (unsigned char *) &tp->curr_cpu_temp, in get_current_temps() 167 tp->index, in get_current_temps() 168 (int) tp->curr_cpu_temp, (int) tp->curr_amb_temp); in get_current_temps() 173 static void do_envctrl_shutdown(struct bbc_cpu_temperature *tp) in do_envctrl_shutdown() argument [all …]
|
/linux-2.4.37.9/drivers/net/pcmcia/ |
D | xircom_tulip_cb.c | 449 struct xircom_private *tp = dev->priv; in find_mii_transceivers() local 452 if (media_cap[tp->default_port] & MediaIsMII) { in find_mii_transceivers() 454 tp->to_advertise = media2advert[tp->default_port - 9]; in find_mii_transceivers() 456 tp->to_advertise = in find_mii_transceivers() 463 for (phy = 0, phy_idx = 0; phy < 32 && phy_idx < sizeof(tp->phys); phy++) { in find_mii_transceivers() 470 int reg4 = ((mii_status >> 6) & tp->to_advertise) | ADVERTISE_CSMA; in find_mii_transceivers() 471 tp->phys[phy_idx] = phy; in find_mii_transceivers() 472 tp->advertising[phy_idx++] = reg4; in find_mii_transceivers() 478 tp->mii_cnt = phy_idx; in find_mii_transceivers() 482 tp->phys[0] = 0; in find_mii_transceivers() [all …]
|
/linux-2.4.37.9/include/net/ |
D | tcp.h | 701 static inline void tcp_schedule_ack(struct tcp_opt *tp) in tcp_schedule_ack() argument 703 tp->ack.pending |= TCP_ACK_SCHED; in tcp_schedule_ack() 706 static inline int tcp_ack_scheduled(struct tcp_opt *tp) in tcp_ack_scheduled() argument 708 return tp->ack.pending&TCP_ACK_SCHED; in tcp_ack_scheduled() 711 static __inline__ void tcp_dec_quickack_mode(struct tcp_opt *tp) in tcp_dec_quickack_mode() argument 713 if (tp->ack.quick && --tp->ack.quick == 0) { in tcp_dec_quickack_mode() 715 tp->ack.ato = TCP_ATO_MIN; in tcp_dec_quickack_mode() 719 extern void tcp_enter_quickack_mode(struct tcp_opt *tp); 721 static __inline__ void tcp_delack_init(struct tcp_opt *tp) in tcp_delack_init() argument 723 memset(&tp->ack, 0, sizeof(tp->ack)); in tcp_delack_init() [all …]
|
D | tcp_ecn.h | 13 TCP_ECN_queue_cwr(struct tcp_opt *tp) in TCP_ECN_queue_cwr() argument 15 if (tp->ecn_flags&TCP_ECN_OK) in TCP_ECN_queue_cwr() 16 tp->ecn_flags |= TCP_ECN_QUEUE_CWR; in TCP_ECN_queue_cwr() 23 TCP_ECN_send_synack(struct tcp_opt *tp, struct sk_buff *skb) in TCP_ECN_send_synack() argument 26 if (!(tp->ecn_flags&TCP_ECN_OK)) in TCP_ECN_send_synack() 31 TCP_ECN_send_syn(struct tcp_opt *tp, struct sk_buff *skb) in TCP_ECN_send_syn() argument 33 tp->ecn_flags = 0; in TCP_ECN_send_syn() 36 tp->ecn_flags = TCP_ECN_OK; in TCP_ECN_send_syn() 48 TCP_ECN_send(struct sock *sk, struct tcp_opt *tp, struct sk_buff *skb, int tcp_header_len) in TCP_ECN_send() argument 50 if (tp->ecn_flags & TCP_ECN_OK) { in TCP_ECN_send() [all …]
|
/linux-2.4.37.9/net/sched/ |
D | cls_api.c | 66 struct tcf_proto_ops *t, **tp; in register_tcf_proto_ops() local 69 for (tp = &tcf_proto_base; (t=*tp) != NULL; tp = &t->next) { in register_tcf_proto_ops() 77 *tp = ops; in register_tcf_proto_ops() 84 struct tcf_proto_ops *t, **tp; in unregister_tcf_proto_ops() local 87 for (tp = &tcf_proto_base; (t=*tp) != NULL; tp = &t->next) in unregister_tcf_proto_ops() 95 *tp = t->next; in unregister_tcf_proto_ops() 101 struct tcf_proto *tp, unsigned long fh, int event); 106 static __inline__ u32 tcf_auto_prio(struct tcf_proto *tp) in tcf_auto_prio() argument 110 if (tp) in tcf_auto_prio() 111 first = tp->prio-1; in tcf_auto_prio() [all …]
|
/linux-2.4.37.9/arch/sparc/kernel/ |
D | windows.c | 39 static inline void shift_window_buffer(int first_win, int last_win, struct thread_struct *tp) in shift_window_buffer() argument 44 tp->rwbuf_stkptrs[i] = tp->rwbuf_stkptrs[i+1]; in shift_window_buffer() 45 memcpy(&tp->reg_window[i], &tp->reg_window[i+1], sizeof(struct reg_window)); in shift_window_buffer() 60 struct thread_struct *tp; in synchronize_user_stack() local 64 tp = ¤t->thread; in synchronize_user_stack() 65 if(!tp->w_saved) in synchronize_user_stack() 69 for(window = tp->w_saved - 1; window >= 0; window--) { in synchronize_user_stack() 70 unsigned long sp = tp->rwbuf_stkptrs[window]; in synchronize_user_stack() 73 if(copy_to_user((char *) sp, &tp->reg_window[window], in synchronize_user_stack() 77 shift_window_buffer(window, tp->w_saved - 1, tp); in synchronize_user_stack() [all …]
|
/linux-2.4.37.9/drivers/scsi/sym53c8xx_2/ |
D | sym_misc.c | 157 tcb_p tp = &np->target[target]; in sym_announce_transfer_rate() local 159 #define __tprev tp->tinfo.prev in sym_announce_transfer_rate() 160 #define __tcurr tp->tinfo.curr in sym_announce_transfer_rate() 226 void sym_update_trans_settings(hcb_p np, tcb_p tp) in sym_update_trans_settings() argument 228 bcopy(&tp->tinfo.user, &tp->tinfo.goal, sizeof(tp->tinfo.goal)); in sym_update_trans_settings() 230 if (tp->inq_version >= 4) { in sym_update_trans_settings() 231 switch(tp->inq_byte56 & INQ56_CLOCKING) { in sym_update_trans_settings() 233 tp->tinfo.goal.options = 0; in sym_update_trans_settings() 242 if (!((tp->inq_byte7 & tp->inq_byte7_valid) & INQ7_WIDE16)) { in sym_update_trans_settings() 243 tp->tinfo.goal.width = 0; in sym_update_trans_settings() [all …]
|