Lines Matching refs:ctx

556 	struct sysctl_ctx_list *ctx;
563 ctx = device_get_sysctl_ctx(sc->vte_dev);
566 SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "int_rx_mod",
569 SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "int_tx_mod",
599 tree = SYSCTL_ADD_NODE(ctx, child, OID_AUTO, "stats", CTLFLAG_RD,
604 tree = SYSCTL_ADD_NODE(ctx, parent, OID_AUTO, "rx", CTLFLAG_RD,
607 VTE_SYSCTL_STAT_ADD32(ctx, child, "good_frames",
609 VTE_SYSCTL_STAT_ADD32(ctx, child, "good_bcast_frames",
611 VTE_SYSCTL_STAT_ADD32(ctx, child, "good_mcast_frames",
613 VTE_SYSCTL_STAT_ADD32(ctx, child, "runt",
615 VTE_SYSCTL_STAT_ADD32(ctx, child, "crc_errs",
617 VTE_SYSCTL_STAT_ADD32(ctx, child, "long_frames",
620 VTE_SYSCTL_STAT_ADD32(ctx, child, "fifo_full",
622 VTE_SYSCTL_STAT_ADD32(ctx, child, "desc_unavail",
624 VTE_SYSCTL_STAT_ADD32(ctx, child, "pause_frames",
628 tree = SYSCTL_ADD_NODE(ctx, parent, OID_AUTO, "tx", CTLFLAG_RD,
631 VTE_SYSCTL_STAT_ADD32(ctx, child, "good_frames",
633 VTE_SYSCTL_STAT_ADD32(ctx, child, "underruns",
635 VTE_SYSCTL_STAT_ADD32(ctx, child, "late_colls",
637 VTE_SYSCTL_STAT_ADD32(ctx, child, "pause_frames",
650 struct vte_dmamap_arg *ctx;
657 ctx = (struct vte_dmamap_arg *)arg;
658 ctx->vte_busaddr = segs[0].ds_addr;
666 struct vte_dmamap_arg ctx;
736 ctx.vte_busaddr = 0;
739 VTE_TX_RING_SZ, vte_dmamap_cb, &ctx, 0);
740 if (error != 0 || ctx.vte_busaddr == 0) {
745 sc->vte_cdata.vte_tx_ring_paddr = ctx.vte_busaddr;
757 ctx.vte_busaddr = 0;
760 VTE_RX_RING_SZ, vte_dmamap_cb, &ctx, 0);
761 if (error != 0 || ctx.vte_busaddr == 0) {
766 sc->vte_cdata.vte_rx_ring_paddr = ctx.vte_busaddr;