Searched refs:vccs (Results 1 - 19 of 19) sorted by relevance

/freebsd-10-stable/sys/netgraph/atm/
H A Dng_atm.c109 hook_p manage; /* has also entry in vccs */
115 LIST_HEAD(, ngvcc) vccs;
183 (buf - offsetof(struct atmio_vcctable, vccs));
550 LIST_FOREACH(vcc, &priv->vccs, link)
615 LIST_FOREACH(vcc, &priv->vccs, link)
672 LIST_FOREACH(vcc, &priv->vccs, link)
830 LIST_FOREACH(vcc, &priv->vccs, link)
969 struct atmio_vcctable *vccs; local
977 SIOCATMGETVCCS, (caddr_t)&vccs);
981 len = sizeof(*vccs)
999 struct atmio_vcctable *vccs; local
1051 struct atmio_vcctable *vccs; local
[all...]
/freebsd-10-stable/sys/net/
H A Dif_atmsubr.c399 * Here we have a problem: we first count, how many vccs we need
402 * vccs may change while we're in malloc. So we allocate a couple of
403 * vccs more and if space anyway is not enough re-iterate.
413 struct atmio_vcctable *vccs; local
417 vccs = NULL;
420 len = sizeof(*vccs) + alloc * sizeof(vccs->vccs[0]);
421 vccs = reallocf(vccs, le
[all...]
H A Dif_atm.h160 uint32_t count; /* number of vccs */
161 struct atmio_vcc vccs[0]; /* array of VCCs */ member in struct:atmio_vcctable
/freebsd-10-stable/sys/dev/hatm/
H A Dif_hatm_ioctl.c123 if (sc->vccs[cid] != NULL) {
161 sc->vccs[cid] = vcc;
178 struct hevcc *vcc = sc->vccs[cid];
201 struct hevcc *vcc = sc->vccs[cid];
210 sc->vccs[cid] = NULL;
232 vcc = sc->vccs[cid];
334 vtab = atm_getvccs((struct atmio_vcc **)sc->vccs,
337 vtab->count * sizeof(vtab->vccs[0]));
342 vtab = atm_getvccs((struct atmio_vcc **)sc->vccs,
H A Dif_hatm_rx.c92 vcc = sc->vccs[cid];
275 struct hevcc *vcc = sc->vccs[cid];
312 struct hevcc *vcc = sc->vccs[cid];
H A Dif_hatm_tx.c399 arg.vcc = sc->vccs[cid];
504 struct hevcc *vcc = sc->vccs[tpd->cid];
659 struct hevcc *vcc = sc->vccs[cid];
780 struct hevcc *vcc = sc->vccs[cid];
822 if (sc->vccs[cid]->param.traffic == ATMIO_TRAFFIC_CBR) {
823 sc->cbr_bw -= sc->vccs[cid]->param.tparam.pcr;
824 sc->rate_ctrl[sc->vccs[cid]->rc].refcnt--;
H A Dif_hatm.c455 if (sc->vccs[cid] != NULL)
456 uma_zfree(sc->vcc_zone, sc->vccs[cid]);
1909 if ((sc->vcc_zone = uma_zcreate("HE vccs", sizeof(struct hevcc),
1911 device_printf(dev, "cannot allocate zone for vccs\n");
2255 /* reopen vccs */
2257 if (sc->vccs[cid] != NULL)
2368 if (sc->vccs[cid] != NULL) {
2369 if (sc->vccs[cid]->chain != NULL) {
2370 m_freem(sc->vccs[cid]->chain);
2371 sc->vccs[ci
[all...]
H A Dif_hatmvar.h438 struct hevcc *vccs[HE_MAX_VCCS]; member in struct:hatm_softc
/freebsd-10-stable/sys/dev/patm/
H A Dif_patm.c216 if (sc->vccs[i] != NULL)
217 patm_load_vc(sc, sc->vccs[i], 1);
288 if (sc->vccs[i] != NULL) {
289 if (sc->vccs[i]->chain != NULL) {
290 m_freem(sc->vccs[i]->chain);
291 sc->vccs[i]->chain = NULL;
292 sc->vccs[i]->last = NULL;
295 if (sc->vccs[i]->vflags & (PATM_VCC_RX_CLOSING |
297 uma_zfree(sc->vcc_zone, sc->vccs[i]);
298 sc->vccs[
[all...]
H A Dif_patm_ioctl.c115 if (sc->vccs[cid] != NULL) {
174 sc->vccs[cid] = vcc;
233 vcc = sc->vccs[cid];
283 sc->vccs[vcc->cid] = NULL;
387 vtab = atm_getvccs((struct atmio_vcc **)sc->vccs,
390 vtab->count * sizeof(vtab->vccs[0]));
395 vtab = atm_getvccs((struct atmio_vcc **)sc->vccs,
H A Dif_patm_attach.c418 if ((sc->vcc_zone = uma_zcreate("PATM vccs", sizeof(struct patm_vcc),
420 patm_printf(sc, "cannot allocate zone for vccs\n");
423 sc->vccs = malloc(sizeof(sc->vccs[0]) * sc->mmap->max_conn,
512 if (sc->vccs != NULL) {
514 if (sc->vccs[i] != NULL)
515 uma_zfree(sc->vcc_zone, sc->vccs[i]);
516 free(sc->vccs, M_DEVBUF);
H A Dif_patm_rx.c206 vcc = sc->vccs[cid];
451 vcc = sc->vccs[cid];
454 vcc = sc->vccs[0];
H A Dif_patmvar.h287 struct patm_vcc **vccs; /* channel pointer array */ member in struct:patm_softc
H A Dif_patm_tx.c329 vcc = sc->vccs[cid];
668 if ((vcc = sc->vccs[cid]) == NULL) {
769 if ((vcc = sc->vccs[cid]) != NULL &&
/freebsd-10-stable/sys/dev/en/
H A Dmidwayvar.h194 /* vccs */
195 struct en_vcc **vccs; member in struct:en_softc
H A Dmidway.c587 sc->vccs[tx->vci]->txspeed,
778 sc->vccs[tx.vci]->opackets++;
779 sc->vccs[tx.vci]->obytes += tx.datalen;
982 (vc = sc->vccs[vci]) == NULL ||
1115 tx - sc->txslot, vci, sc->vccs[vci]->txspeed,
1187 if (sc->vccs[op->param.vci] != NULL) {
1221 sc->vccs[vc->vcc.vci] = vc;
1245 sc->vccs[vc->vcc.vci] = NULL;
1266 if ((vc = sc->vccs[cl->vci]) == NULL) {
1355 if (sc->vccs[lc
[all...]
/freebsd-10-stable/sys/dev/fatm/
H A Dif_fatm.c529 if (sc->vccs != NULL) {
532 if (sc->vccs[i] != NULL) {
533 if ((sc->vccs[i]->vflags & (FATM_VCC_OPEN |
535 uma_zfree(sc->vcc_zone, sc->vccs[i]);
536 sc->vccs[i] = NULL;
538 sc->vccs[i]->vflags = 0;
1352 if (sc->vccs[i] != NULL) {
1353 sc->vccs[i]->vflags |= FATM_VCC_REOPEN;
1354 error = fatm_load_vc(sc, sc->vccs[i]);
1358 sc->vccs[
[all...]
H A Dif_fatmvar.h230 struct card_vcc **vccs; /* table of vccs */ member in struct:fatm_softc
231 int open_vccs; /* number of vccs in use */
/freebsd-10-stable/sbin/atm/atmconfig/
H A Ddiag.c860 * Fetch the table of open vccs
873 aif->vtab = malloc(sizeof(*aif->vtab) + sizeof(aif->vtab->vccs[0]) *
904 for (v = aif->vtab->vccs; v < &aif->vtab->vccs[aif->vtab->count]; v++) {
933 for (v = aif->vtab->vccs; v < &aif->vtab->vccs[aif->vtab->count]; v++) {
970 for (v = aif->vtab->vccs; v < &aif->vtab->vccs[aif->vtab->count]; v++) {

Completed in 94 milliseconds