Lines Matching defs:node_idx
413 u32 node_idx;
423 node_idx = (offset - iter->startbit) / NETLBL_CATMAP_MAPSIZE;
425 (NETLBL_CATMAP_MAPSIZE * node_idx);
427 node_idx = 0;
430 bitmap = iter->bitmap[node_idx] >> node_bit;
439 (NETLBL_CATMAP_MAPSIZE * node_idx) + node_bit;
441 if (++node_idx >= NETLBL_CATMAP_MAPCNT) {
444 node_idx = 0;
448 bitmap = iter->bitmap[node_idx];
470 u32 node_idx;
481 node_idx = (offset - iter->startbit) / NETLBL_CATMAP_MAPSIZE;
483 (NETLBL_CATMAP_MAPSIZE * node_idx);
485 node_idx = 0;
491 bitmap = iter->bitmap[node_idx];
499 (NETLBL_CATMAP_MAPSIZE * node_idx) +
501 else if (++node_idx >= NETLBL_CATMAP_MAPCNT) {
505 node_idx = 0;
531 u32 node_idx;
545 node_idx = (bit - iter->startbit) / NETLBL_CATMAP_MAPSIZE;
546 node_bit = bit - iter->startbit - (NETLBL_CATMAP_MAPSIZE * node_idx);
547 iter->bitmap[node_idx] |= NETLBL_CATMAP_BIT << node_bit;