Lines Matching refs:ng_fec_units
264 static int *ng_fec_units = NULL;
268 #define UNITS_BITSPERWORD (sizeof(*ng_fec_units) * NBBY)
283 && ng_fec_units[index] == 0; index++);
288 newarray = malloc(newlen * sizeof(*ng_fec_units),
294 bcopy(ng_fec_units, newarray,
295 ng_fec_units_len * sizeof(*ng_fec_units));
298 if (ng_fec_units != NULL)
299 free(ng_fec_units, M_NETGRAPH);
300 ng_fec_units = newarray;
303 bit = ffs(ng_fec_units[index]) - 1;
305 ("%s: word=%d bit=%d", __func__, ng_fec_units[index], bit));
306 ng_fec_units[index] &= ~(1 << bit);
326 KASSERT((ng_fec_units[index] & (1 << bit)) == 0,
328 ng_fec_units[index] |= (1 << bit);
330 * XXX We could think about reducing the size of ng_fec_units[]
337 free(ng_fec_units, M_NETGRAPH);
339 ng_fec_units = NULL;