/freebsd-11-stable/sys/netgraph/atm/ |
H A D | ng_atm.c | 109 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-11-stable/sys/net/ |
H A D | if_atmsubr.c | 400 * Here we have a problem: we first count, how many vccs we need 403 * vccs may change while we're in malloc. So we allocate a couple of 404 * vccs more and if space anyway is not enough re-iterate. 414 struct atmio_vcctable *vccs; local 418 vccs = NULL; 421 len = sizeof(*vccs) + alloc * sizeof(vccs->vccs[0]); 422 vccs = reallocf(vccs, le [all...] |
H A D | if_atm.h | 160 uint32_t count; /* number of vccs */ 161 struct atmio_vcc vccs[0]; /* array of VCCs */ member in struct:atmio_vcctable
|
/freebsd-11-stable/sys/dev/hatm/ |
H A D | if_hatm_ioctl.c | 124 if (sc->vccs[cid] != NULL) { 162 sc->vccs[cid] = vcc; 179 struct hevcc *vcc = sc->vccs[cid]; 202 struct hevcc *vcc = sc->vccs[cid]; 211 sc->vccs[cid] = NULL; 233 vcc = sc->vccs[cid]; 335 vtab = atm_getvccs((struct atmio_vcc **)sc->vccs, 338 vtab->count * sizeof(vtab->vccs[0])); 343 vtab = atm_getvccs((struct atmio_vcc **)sc->vccs,
|
H A D | if_hatm_rx.c | 93 vcc = sc->vccs[cid]; 276 struct hevcc *vcc = sc->vccs[cid]; 313 struct hevcc *vcc = sc->vccs[cid];
|
H A D | if_hatm_tx.c | 400 arg.vcc = sc->vccs[cid]; 505 struct hevcc *vcc = sc->vccs[tpd->cid]; 660 struct hevcc *vcc = sc->vccs[cid]; 781 struct hevcc *vcc = sc->vccs[cid]; 823 if (sc->vccs[cid]->param.traffic == ATMIO_TRAFFIC_CBR) { 824 sc->cbr_bw -= sc->vccs[cid]->param.tparam.pcr; 825 sc->rate_ctrl[sc->vccs[cid]->rc].refcnt--;
|
H A D | if_hatm.c | 456 if (sc->vccs[cid] != NULL) 457 uma_zfree(sc->vcc_zone, sc->vccs[cid]); 1908 if ((sc->vcc_zone = uma_zcreate("HE vccs", sizeof(struct hevcc), 1910 device_printf(dev, "cannot allocate zone for vccs\n"); 2254 /* reopen vccs */ 2256 if (sc->vccs[cid] != NULL) 2367 if (sc->vccs[cid] != NULL) { 2368 if (sc->vccs[cid]->chain != NULL) { 2369 m_freem(sc->vccs[cid]->chain); 2370 sc->vccs[ci [all...] |
H A D | if_hatmvar.h | 438 struct hevcc *vccs[HE_MAX_VCCS]; member in struct:hatm_softc
|
/freebsd-11-stable/sys/dev/patm/ |
H A D | if_patm.c | 217 if (sc->vccs[i] != NULL) 218 patm_load_vc(sc, sc->vccs[i], 1); 289 if (sc->vccs[i] != NULL) { 290 if (sc->vccs[i]->chain != NULL) { 291 m_freem(sc->vccs[i]->chain); 292 sc->vccs[i]->chain = NULL; 293 sc->vccs[i]->last = NULL; 296 if (sc->vccs[i]->vflags & (PATM_VCC_RX_CLOSING | 298 uma_zfree(sc->vcc_zone, sc->vccs[i]); 299 sc->vccs[ [all...] |
H A D | if_patm_ioctl.c | 116 if (sc->vccs[cid] != NULL) { 175 sc->vccs[cid] = vcc; 234 vcc = sc->vccs[cid]; 284 sc->vccs[vcc->cid] = NULL; 388 vtab = atm_getvccs((struct atmio_vcc **)sc->vccs, 391 vtab->count * sizeof(vtab->vccs[0])); 396 vtab = atm_getvccs((struct atmio_vcc **)sc->vccs,
|
H A D | if_patm_attach.c | 419 if ((sc->vcc_zone = uma_zcreate("PATM vccs", sizeof(struct patm_vcc), 421 patm_printf(sc, "cannot allocate zone for vccs\n"); 424 sc->vccs = malloc(sizeof(sc->vccs[0]) * sc->mmap->max_conn, 513 if (sc->vccs != NULL) { 515 if (sc->vccs[i] != NULL) 516 uma_zfree(sc->vcc_zone, sc->vccs[i]); 517 free(sc->vccs, M_DEVBUF);
|
H A D | if_patm_rx.c | 207 vcc = sc->vccs[cid]; 452 vcc = sc->vccs[cid]; 455 vcc = sc->vccs[0];
|
H A D | if_patmvar.h | 287 struct patm_vcc **vccs; /* channel pointer array */ member in struct:patm_softc
|
H A D | if_patm_tx.c | 330 vcc = sc->vccs[cid]; 669 if ((vcc = sc->vccs[cid]) == NULL) { 770 if ((vcc = sc->vccs[cid]) != NULL &&
|
/freebsd-11-stable/sys/dev/en/ |
H A D | midwayvar.h | 194 /* vccs */ 195 struct en_vcc **vccs; member in struct:en_softc
|
H A D | midway.c | 588 sc->vccs[tx->vci]->txspeed, 779 sc->vccs[tx.vci]->opackets++; 780 sc->vccs[tx.vci]->obytes += tx.datalen; 983 (vc = sc->vccs[vci]) == NULL || 1116 tx - sc->txslot, vci, sc->vccs[vci]->txspeed, 1188 if (sc->vccs[op->param.vci] != NULL) { 1222 sc->vccs[vc->vcc.vci] = vc; 1246 sc->vccs[vc->vcc.vci] = NULL; 1267 if ((vc = sc->vccs[cl->vci]) == NULL) { 1356 if (sc->vccs[lc [all...] |
/freebsd-11-stable/sys/dev/fatm/ |
H A D | if_fatm.c | 530 if (sc->vccs != NULL) { 533 if (sc->vccs[i] != NULL) { 534 if ((sc->vccs[i]->vflags & (FATM_VCC_OPEN | 536 uma_zfree(sc->vcc_zone, sc->vccs[i]); 537 sc->vccs[i] = NULL; 539 sc->vccs[i]->vflags = 0; 1353 if (sc->vccs[i] != NULL) { 1354 sc->vccs[i]->vflags |= FATM_VCC_REOPEN; 1355 error = fatm_load_vc(sc, sc->vccs[i]); 1359 sc->vccs[ [all...] |
H A D | if_fatmvar.h | 230 struct card_vcc **vccs; /* table of vccs */ member in struct:fatm_softc 231 int open_vccs; /* number of vccs in use */
|
/freebsd-11-stable/sbin/atm/atmconfig/ |
H A D | diag.c | 860 * 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++) {
|