/linux-2.4.37.9/arch/mips/sibyte/sb1250/ |
D | bus_watcher.c | 102 static int bw_print_buffer(char *page, struct bw_stats_struct *stats) in bw_print_buffer() argument 109 stats->l2_cor_d, stats->l2_bad_d); in bw_print_buffer() 111 stats->l2_cor_t, stats->l2_bad_t); in bw_print_buffer() 113 stats->mem_cor_d, stats->mem_bad_d); in bw_print_buffer() 114 len += sprintf(page+len, "IO-err %8ld\n", stats->bus_error); in bw_print_buffer() 117 (unsigned int)(G_SCD_BERR_TID(stats->status) & 0x3f), in bw_print_buffer() 118 (int)(G_SCD_BERR_TID(stats->status) >> 6), in bw_print_buffer() 119 (int)G_SCD_BERR_RID(stats->status), in bw_print_buffer() 120 (int)G_SCD_BERR_DCODE(stats->status)); in bw_print_buffer() 123 if (stats->status & M_SCD_BERR_MULTERRS) in bw_print_buffer() [all …]
|
/linux-2.4.37.9/net/ipv4/ipvs/ |
D | ip_vs_est.c | 48 struct ip_vs_stats *stats; member 79 s = e->stats; in estimation_timer() 119 int ip_vs_new_estimator(struct ip_vs_stats *stats) in ip_vs_new_estimator() argument 128 est->stats = stats; in ip_vs_new_estimator() 129 est->last_conns = stats->conns; in ip_vs_new_estimator() 130 est->cps = stats->cps<<10; in ip_vs_new_estimator() 132 est->last_inpkts = stats->inpkts; in ip_vs_new_estimator() 133 est->inpps = stats->inpps<<10; in ip_vs_new_estimator() 135 est->last_outpkts = stats->outpkts; in ip_vs_new_estimator() 136 est->outpps = stats->outpps<<10; in ip_vs_new_estimator() [all …]
|
/linux-2.4.37.9/drivers/net/ |
D | defxx.c | 1812 bp->stats.gen.rx_packets = bp->rcv_total_frames; in dfx_ctl_get_stats() 1813 bp->stats.gen.tx_packets = bp->xmt_total_frames; in dfx_ctl_get_stats() 1814 bp->stats.gen.rx_bytes = bp->rcv_total_bytes; in dfx_ctl_get_stats() 1815 bp->stats.gen.tx_bytes = bp->xmt_total_bytes; in dfx_ctl_get_stats() 1816 bp->stats.gen.rx_errors = bp->rcv_crc_errors + in dfx_ctl_get_stats() 1819 bp->stats.gen.tx_errors = bp->xmt_length_errors; in dfx_ctl_get_stats() 1820 bp->stats.gen.rx_dropped = bp->rcv_discards; in dfx_ctl_get_stats() 1821 bp->stats.gen.tx_dropped = bp->xmt_discards; in dfx_ctl_get_stats() 1822 bp->stats.gen.multicast = bp->rcv_multicast_frames; in dfx_ctl_get_stats() 1823 bp->stats.gen.collisions = 0; /* always zero (0) for FDDI */ in dfx_ctl_get_stats() [all …]
|
D | sonic.c | 96 lp->stats.tx_errors++; in sonic_tx_timeout() 143 lp->stats.tx_bytes += length; in sonic_send_packet() 211 lp->stats.tx_packets++; in sonic_interrupt() 213 lp->stats.tx_errors++; in sonic_interrupt() 215 lp->stats.tx_aborted_errors++; in sonic_interrupt() 217 lp->stats.tx_carrier_errors++; in sonic_interrupt() 219 lp->stats.tx_window_errors++; in sonic_interrupt() 221 lp->stats.tx_fifo_errors++; in sonic_interrupt() 249 lp->stats.rx_fifo_errors++; in sonic_interrupt() 253 lp->stats.rx_dropped++; in sonic_interrupt() [all …]
|
D | saa9730.c | 140 printk("lp->stats.tx_packets = %lx\n", lp->stats.tx_packets); in show_saa9730_regs() 141 printk("lp->stats.tx_errors = %lx\n", lp->stats.tx_errors); in show_saa9730_regs() 143 lp->stats.tx_aborted_errors); in show_saa9730_regs() 145 lp->stats.tx_window_errors); in show_saa9730_regs() 147 lp->stats.tx_carrier_errors); in show_saa9730_regs() 149 lp->stats.tx_fifo_errors); in show_saa9730_regs() 151 lp->stats.tx_heartbeat_errors); in show_saa9730_regs() 152 printk("lp->stats.collisions = %lx\n", lp->stats.collisions); in show_saa9730_regs() 154 printk("lp->stats.rx_packets = %lx\n", lp->stats.rx_packets); in show_saa9730_regs() 155 printk("lp->stats.rx_errors = %lx\n", lp->stats.rx_errors); in show_saa9730_regs() [all …]
|
D | cirrus.c | 76 struct net_device_stats stats; member 199 priv->stats.rx_errors++; in cirrus_receive() 200 if ((status & (Runt | Extradata))) priv->stats.rx_length_errors++; in cirrus_receive() 201 if ((status & CRCerror)) priv->stats.rx_crc_errors++; in cirrus_receive() 206 priv->stats.rx_dropped++; in cirrus_receive() 224 priv->stats.rx_packets++; in cirrus_receive() 225 priv->stats.rx_bytes += length; in cirrus_receive() 242 priv->stats.tx_errors++; in cirrus_send_start() 243 priv->stats.tx_aborted_errors++; in cirrus_send_start() 250 priv->stats.tx_errors++; in cirrus_send_start() [all …]
|
D | isa-skeleton.c | 92 struct net_device_stats stats; member 311 np->stats.tx_errors++; in net_tx_timeout() 423 np->stats.tx_bytes += skb->len; in net_send_packet() 429 np->stats.tx_aborted_errors++; in net_send_packet() 454 np->stats.tx_bytes += skb->len; in net_tx() 495 np->stats.tx_packets++; in net_interrupt() 501 np->stats.tx_window_errors++; in net_interrupt() 521 lp->stats.rx_errors++; in net_rx() 522 if (status & 0x20) lp->stats.rx_frame_errors++; in net_rx() 523 if (status & 0x10) lp->stats.rx_over_errors++; in net_rx() [all …]
|
D | ppp_deflate.c | 54 struct compstat stats; member 77 static void z_comp_stats __P((void *state, struct compstat *stats)); 242 state->stats.comp_bytes += olen; 243 state->stats.comp_packets++; 245 state->stats.inc_bytes += isize; 246 state->stats.inc_packets++; 249 state->stats.unc_bytes += isize; 250 state->stats.unc_packets++; 256 z_comp_stats(arg, stats) in z_comp_stats() argument 258 struct compstat *stats; [all …]
|
D | mac89x0.c | 114 struct net_device_stats stats; member 439 lp->stats.tx_packets++; in net_interrupt() 441 if ((status & TX_OK) == 0) lp->stats.tx_errors++; in net_interrupt() 442 if (status & TX_LOST_CRS) lp->stats.tx_carrier_errors++; in net_interrupt() 443 if (status & TX_SQE_ERROR) lp->stats.tx_heartbeat_errors++; in net_interrupt() 444 if (status & TX_LATE_COL) lp->stats.tx_window_errors++; in net_interrupt() 445 if (status & TX_16_COL) lp->stats.tx_aborted_errors++; in net_interrupt() 464 lp->stats.rx_missed_errors += (status >>6); in net_interrupt() 467 lp->stats.collisions += (status >>6); in net_interrupt() 484 lp->stats.rx_errors++; in net_rx() [all …]
|
D | macmace.c | 54 struct net_device_stats stats; member 226 memset(&mp->stats, 0, sizeof(mp->stats)); in mace_probe() 420 mp->stats.tx_packets++; in mace_xmit_start() 421 mp->stats.tx_bytes += skb->len; in mace_xmit_start() 443 return &p->stats; in mace_stats() 501 mp->stats.rx_missed_errors += 256; in mace_handle_misc_intrs() 503 mp->stats.rx_missed_errors += mb->mpc; /* reading clears it */ in mace_handle_misc_intrs() 506 mp->stats.rx_length_errors += 256; in mace_handle_misc_intrs() 508 mp->stats.rx_length_errors += mb->rntpc; /* reading clears it */ in mace_handle_misc_intrs() 511 ++mp->stats.tx_heartbeat_errors; in mace_handle_misc_intrs() [all …]
|
D | 7990.c | 274 lp->stats.rx_over_errors++; in lance_rx() 275 lp->stats.rx_errors++; in lance_rx() 281 if (bits & LE_R1_BUF) lp->stats.rx_fifo_errors++; in lance_rx() 282 if (bits & LE_R1_CRC) lp->stats.rx_crc_errors++; in lance_rx() 283 if (bits & LE_R1_OFL) lp->stats.rx_over_errors++; in lance_rx() 284 if (bits & LE_R1_FRA) lp->stats.rx_frame_errors++; in lance_rx() 285 if (bits & LE_R1_EOP) lp->stats.rx_errors++; in lance_rx() 293 lp->stats.rx_dropped++; in lance_rx() 309 lp->stats.rx_packets++; in lance_rx() 310 lp->stats.rx_bytes += len; in lance_rx() [all …]
|
/linux-2.4.37.9/net/irda/ |
D | wrapper.c | 41 struct net_device_stats *stats, 44 struct net_device_stats *stats, 47 struct net_device_stats *stats, 50 struct net_device_stats *stats, 53 static void (*state[])(struct net_device *dev, struct net_device_stats *stats, 172 inline void async_bump(struct net_device *dev, struct net_device_stats *stats, in async_bump() argument 179 stats->rx_dropped++; in async_bump() 196 stats->rx_packets++; in async_bump() 197 stats->rx_bytes += len; in async_bump() 207 struct net_device_stats *stats, in async_unwrap_char() argument [all …]
|
/linux-2.4.37.9/drivers/net/skfp/ |
D | skfddi.c | 992 …memcpy(bp->stats.smt_station_id, &bp->cmd_rsp_virt->smt_mib_get.smt_station_id, sizeof(bp->cmd_rsp… in skfp_ctl_get_stats() 993 bp->stats.smt_op_version_id = bp->cmd_rsp_virt->smt_mib_get.smt_op_version_id; in skfp_ctl_get_stats() 994 bp->stats.smt_hi_version_id = bp->cmd_rsp_virt->smt_mib_get.smt_hi_version_id; in skfp_ctl_get_stats() 995 bp->stats.smt_lo_version_id = bp->cmd_rsp_virt->smt_mib_get.smt_lo_version_id; in skfp_ctl_get_stats() 996 …memcpy(bp->stats.smt_user_data, &bp->cmd_rsp_virt->smt_mib_get.smt_user_data, sizeof(bp->cmd_rsp_v… in skfp_ctl_get_stats() 997 bp->stats.smt_mib_version_id = bp->cmd_rsp_virt->smt_mib_get.smt_mib_version_id; in skfp_ctl_get_stats() 998 bp->stats.smt_mac_cts = bp->cmd_rsp_virt->smt_mib_get.smt_mac_ct; in skfp_ctl_get_stats() 999 bp->stats.smt_non_master_cts = bp->cmd_rsp_virt->smt_mib_get.smt_non_master_ct; in skfp_ctl_get_stats() 1000 bp->stats.smt_master_cts = bp->cmd_rsp_virt->smt_mib_get.smt_master_ct; in skfp_ctl_get_stats() 1001 bp->stats.smt_available_paths = bp->cmd_rsp_virt->smt_mib_get.smt_available_paths; in skfp_ctl_get_stats() [all …]
|
/linux-2.4.37.9/net/sched/ |
D | estimator.c | 79 struct tc_stats *stats; member 106 struct tc_stats *st = e->stats; in est_timer() 122 e->stats->pps = (e->avpps+0x1FF)>>10; in est_timer() 130 int qdisc_new_estimator(struct tc_stats *stats, struct rtattr *opt) in qdisc_new_estimator() argument 147 est->stats = stats; in qdisc_new_estimator() 149 est->last_bytes = stats->bytes; in qdisc_new_estimator() 150 est->avbps = stats->bps<<5; in qdisc_new_estimator() 151 est->last_packets = stats->packets; in qdisc_new_estimator() 152 est->avpps = stats->pps<<10; in qdisc_new_estimator() 168 void qdisc_kill_estimator(struct tc_stats *stats) in qdisc_kill_estimator() argument [all …]
|
D | sch_fifo.c | 49 if (sch->stats.backlog + skb->len <= q->limit) { in bfifo_enqueue() 51 sch->stats.backlog += skb->len; in bfifo_enqueue() 52 sch->stats.bytes += skb->len; in bfifo_enqueue() 53 sch->stats.packets++; in bfifo_enqueue() 56 sch->stats.drops++; in bfifo_enqueue() 68 sch->stats.backlog += skb->len; in bfifo_requeue() 79 sch->stats.backlog -= skb->len; in bfifo_dequeue() 91 sch->stats.backlog -= len; in fifo_drop() 102 sch->stats.backlog = 0; in fifo_reset() 112 sch->stats.bytes += skb->len; in pfifo_enqueue() [all …]
|
D | sch_red.c | 231 q->qave += sch->stats.backlog - (q->qave >> q->Wlog); in red_enqueue() 245 if (sch->stats.backlog + skb->len <= q->limit) { in red_enqueue() 247 sch->stats.backlog += skb->len; in red_enqueue() 248 sch->stats.bytes += skb->len; in red_enqueue() 249 sch->stats.packets++; in red_enqueue() 255 sch->stats.drops++; in red_enqueue() 260 sch->stats.overlimits++; in red_enqueue() 291 sch->stats.overlimits++; in red_enqueue() 299 sch->stats.drops++; in red_enqueue() 311 sch->stats.backlog += skb->len; in red_requeue() [all …]
|
/linux-2.4.37.9/drivers/usb/gadget/ |
D | rndis.c | 280 if (rndis_per_dev_params [configNr].stats) { in gen_ndis_query_resp() 283 rndis_per_dev_params [configNr].stats->tx_packets - in gen_ndis_query_resp() 284 rndis_per_dev_params [configNr].stats->tx_errors - in gen_ndis_query_resp() 285 rndis_per_dev_params [configNr].stats->tx_dropped); in gen_ndis_query_resp() 296 if (rndis_per_dev_params [configNr].stats) { in gen_ndis_query_resp() 299 rndis_per_dev_params [configNr].stats->rx_packets - in gen_ndis_query_resp() 300 rndis_per_dev_params [configNr].stats->rx_errors - in gen_ndis_query_resp() 301 rndis_per_dev_params [configNr].stats->rx_dropped); in gen_ndis_query_resp() 312 if (rndis_per_dev_params [configNr].stats) { in gen_ndis_query_resp() 316 .stats->tx_errors); in gen_ndis_query_resp() [all …]
|
/linux-2.4.37.9/net/wanrouter/ |
D | wanproc.c | 401 "total packets received", wandev->stats.rx_packets); in wandev_get_info() 403 "total packets transmitted", wandev->stats.tx_packets); in wandev_get_info() 405 "total bytes received", wandev->stats.rx_bytes); in wandev_get_info() 407 "total bytes transmitted", wandev->stats.tx_bytes); in wandev_get_info() 409 "bad packets received", wandev->stats.rx_errors); in wandev_get_info() 411 "packet transmit problems", wandev->stats.tx_errors); in wandev_get_info() 413 "received frames dropped", wandev->stats.rx_dropped); in wandev_get_info() 415 "transmit frames dropped", wandev->stats.tx_dropped); in wandev_get_info() 417 "multicast packets received", wandev->stats.multicast); in wandev_get_info() 419 "transmit collisions", wandev->stats.collisions); in wandev_get_info() [all …]
|
/linux-2.4.37.9/net/rose/ |
D | rose_dev.c | 55 struct net_device_stats *stats = (struct net_device_stats *)dev->priv; in rose_rx_ip() local 59 stats->rx_errors++; in rose_rx_ip() 63 stats->rx_packets++; in rose_rx_ip() 64 stats->rx_bytes += skb->len; in rose_rx_ip() 101 struct net_device_stats *stats = (struct net_device_stats *)dev->priv; in rose_rebuild_header() local 122 stats->tx_errors++; in rose_rebuild_header() 126 stats->tx_packets++; in rose_rebuild_header() 127 stats->tx_bytes += skbn->len; in rose_rebuild_header() 163 struct net_device_stats *stats = (struct net_device_stats *)dev->priv; in rose_xmit() local 170 stats->tx_errors++; in rose_xmit()
|
/linux-2.4.37.9/drivers/net/tulip/ |
D | interrupt.c | 160 tp->stats.rx_length_errors++; in tulip_rx() 167 tp->stats.rx_errors++; /* end of a packet.*/ in tulip_rx() 170 tp->stats.rx_length_errors++; in tulip_rx() 171 if (status & 0x0004) tp->stats.rx_frame_errors++; in tulip_rx() 172 if (status & 0x0002) tp->stats.rx_crc_errors++; in tulip_rx() 173 if (status & 0x0001) tp->stats.rx_fifo_errors++; in tulip_rx() 263 tp->stats.rx_packets++; in tulip_rx() 264 tp->stats.rx_bytes += pkt_len; in tulip_rx() 403 tp->stats.tx_errors++; in tulip_interrupt() 404 if (status & 0x4104) tp->stats.tx_aborted_errors++; in tulip_interrupt() [all …]
|
/linux-2.4.37.9/drivers/net/arcnet/ |
D | rfc1201.c | 129 lp->stats.rx_errors++; in type_trans() 130 lp->stats.rx_crc_errors++; in type_trans() 180 lp->stats.rx_errors++; in rx() 181 lp->stats.rx_missed_errors++; in rx() 189 lp->stats.rx_dropped++; in rx() 221 lp->stats.rx_crc_errors++; in rx() 230 lp->stats.rx_errors++; in rx() 231 lp->stats.rx_crc_errors++; in rx() 266 lp->stats.rx_errors++; in rx() 267 lp->stats.rx_missed_errors++; in rx() [all …]
|
/linux-2.4.37.9/net/netrom/ |
D | nr_dev.c | 61 struct net_device_stats *stats = (struct net_device_stats *)dev->priv; in nr_rx_ip() local 64 stats->rx_errors++; in nr_rx_ip() 68 stats->rx_packets++; in nr_rx_ip() 69 stats->rx_bytes += skb->len; in nr_rx_ip() 88 struct net_device_stats *stats = (struct net_device_stats *)dev->priv; in nr_rebuild_header() local 120 stats->tx_errors++; in nr_rebuild_header() 123 stats->tx_packets++; in nr_rebuild_header() 124 stats->tx_bytes += len; in nr_rebuild_header() 201 struct net_device_stats *stats = (struct net_device_stats *)dev->priv; in nr_xmit() local 203 stats->tx_errors++; in nr_xmit()
|
/linux-2.4.37.9/drivers/net/wan/lmc/ |
D | lmc_main.c | 265 sc->stats.framingBitErrorCount += in lmc_ioctl() 268 sc->stats.framingBitErrorCount += in lmc_ioctl() 271 sc->stats.lineCodeViolationCount += in lmc_ioctl() 274 sc->stats.lineCodeViolationCount += in lmc_ioctl() 279 sc->stats.lossOfFrameCount += in lmc_ioctl() 281 sc->stats.changeOfFrameAlignmentCount += in lmc_ioctl() 283 sc->stats.severelyErroredFrameCount += in lmc_ioctl() 287 LMC_COPY_TO_USER(ifr->ifr_data, &sc->stats, in lmc_ioctl() 299 memset (&sc->stats, 0, sizeof (struct lmc_statistics)); in lmc_ioctl() 300 sc->stats.check = STATCHECK; in lmc_ioctl() [all …]
|
/linux-2.4.37.9/drivers/atm/ |
D | idt77105.c | 35 struct idt77105_stats stats; /* link diagnostics */ member 92 struct idt77105_stats *stats; in idt77105_stats_timer_func() local 98 stats = &walk->stats; in idt77105_stats_timer_func() 99 stats->symbol_errors += get_counter(dev, IDT77105_CTRSEL_SEC); in idt77105_stats_timer_func() 100 stats->tx_cells += get_counter(dev, IDT77105_CTRSEL_TCC); in idt77105_stats_timer_func() 101 stats->rx_cells += get_counter(dev, IDT77105_CTRSEL_RCC); in idt77105_stats_timer_func() 102 stats->rx_hec_errors += get_counter(dev, IDT77105_CTRSEL_RHEC); in idt77105_stats_timer_func() 149 struct idt77105_stats stats; in fetch_stats() local 152 memcpy(&stats, &PRIV(dev)->stats, sizeof(struct idt77105_stats)); in fetch_stats() 154 memset(&PRIV(dev)->stats, 0, sizeof(struct idt77105_stats)); in fetch_stats() [all …]
|
/linux-2.4.37.9/arch/ppc/cpm2_io/ |
D | enet.c | 117 struct net_device_stats stats; member 207 cep->stats.tx_bytes += skb->len; in scc_enet_start_xmit() 242 cep->stats.tx_errors++; in scc_enet_timeout() 314 cep->stats.tx_heartbeat_errors++; in scc_enet_interrupt() 316 cep->stats.tx_window_errors++; in scc_enet_interrupt() 318 cep->stats.tx_aborted_errors++; in scc_enet_interrupt() 320 cep->stats.tx_fifo_errors++; in scc_enet_interrupt() 322 cep->stats.tx_carrier_errors++; in scc_enet_interrupt() 331 cep->stats.tx_errors++; in scc_enet_interrupt() 334 cep->stats.tx_packets++; in scc_enet_interrupt() [all …]
|