Home
last modified time | relevance | path

Searched refs:log2 (Results 1 – 3 of 3) sorted by relevance

/drivers/gpu/drm/nouveau/core/include/core/
Dmath.h8 int log2; in log2i() local
10 for (log2 = 0; temp; log2++, temp >>= 1) { in log2i()
13 return (base & (base - 1)) ? log2 + 1: log2; in log2i()
/drivers/net/ethernet/chelsio/cxgb4/
Dt4_hw.c2191 unsigned int log2 = fls(mtu); in t4_load_mtus() local
2193 if (!(mtu & ((1 << log2) >> 2))) /* round */ in t4_load_mtus()
2194 log2--; in t4_load_mtus()
2196 MTUWIDTH(log2) | MTUVALUE(mtu)); in t4_load_mtus()
/drivers/net/ethernet/chelsio/cxgb3/
Dt3_hw.c2876 unsigned int log2 = fls(mtu); in t3_load_mtus() local
2878 if (!(mtu & ((1 << log2) >> 2))) /* round */ in t3_load_mtus()
2879 log2--; in t3_load_mtus()
2881 (i << 24) | (log2 << 16) | mtu); in t3_load_mtus()