Lines Matching full:indices
29 * x:indices-1 indices use entry [indices-1]
31 * x:y y+1 use entry [y & (indices-1)]
33 * 0xffff 0x10000 use entry [indices-1]
49 u16 indices; member
58 return index <= p->indices && index > 0; in dsmark_valid_index()
175 for (i = 0; i < p->indices; i++) { in dsmark_walk()
300 index = skb->tc_index & (p->indices - 1); in dsmark_dequeue()
343 u16 indices; in dsmark_init() local
362 indices = nla_get_u16(tb[TCA_DSMARK_INDICES]); in dsmark_init()
364 if (hweight32(indices) != 1) in dsmark_init()
370 if (indices <= DSMARK_EMBEDDED_SZ) in dsmark_init()
373 p->mv = kmalloc_array(indices, sizeof(*p->mv), GFP_KERNEL); in dsmark_init()
378 for (i = 0; i < indices; i++) { in dsmark_init()
382 p->indices = indices; in dsmark_init()
458 if (nla_put_u16(skb, TCA_DSMARK_INDICES, p->indices)) in dsmark_dump()