Searched refs:IDR_BITS (Results 1 - 2 of 2) sorted by relevance

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/linux/
H A Didr.h19 # define IDR_BITS 5 macro
26 # define IDR_BITS 6 macro
36 #define IDR_SIZE (1 << IDR_BITS)
37 #define IDR_MASK ((1 << IDR_BITS)-1)
44 #define MAX_LEVEL (MAX_ID_SHIFT + IDR_BITS - 1) / IDR_BITS
51 struct idr_layer *ary[1<<IDR_BITS];
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/lib/
H A Didr.c114 n = (id >> (IDR_BITS*l)) & IDR_MASK;
120 id = (id | ((1 << (IDR_BITS * l)) - 1)) + 1;
128 sh = IDR_BITS*l;
164 n = n >> IDR_BITS;
189 while ((layers < (MAX_LEVEL - 1)) && (id >= (1 << (layers*IDR_BITS)))) {
314 shift -= IDR_BITS;
342 sub_remove(idp, (idp->layers - 1) * IDR_BITS, id);
389 n = idp->layers * IDR_BITS;
399 n -= IDR_BITS;
423 n = idp->layers * IDR_BITS;
[all...]

Completed in 31 milliseconds