Lines Matching full:indices
30 * x:indices-1 indices use entry [indices-1]
32 * x:y y+1 use entry [y & (indices-1)]
34 * 0xffff 0x10000 use entry [indices-1]
50 u16 indices; member
59 return index <= p->indices && index > 0; in dsmark_valid_index()
177 for (i = 0; i < p->indices; i++) { in dsmark_walk()
303 index = skb->tc_index & (p->indices - 1); in dsmark_dequeue()
346 u16 indices; in dsmark_init() local
366 indices = nla_get_u16(tb[TCA_DSMARK_INDICES]); in dsmark_init()
368 if (hweight32(indices) != 1) in dsmark_init()
374 if (indices <= DSMARK_EMBEDDED_SZ) in dsmark_init()
377 p->mv = kmalloc_array(indices, sizeof(*p->mv), GFP_KERNEL); in dsmark_init()
382 for (i = 0; i < indices; i++) { in dsmark_init()
386 p->indices = indices; in dsmark_init()
462 if (nla_put_u16(skb, TCA_DSMARK_INDICES, p->indices)) in dsmark_dump()