Lines Matching full:lsb
52 function define_field(reg, field, msb, lsb) {
53 define(reg "_" field, "GENMASK(" msb ", " lsb ")")
54 define(reg "_" field "_MASK", "GENMASK(" msb ", " lsb ")")
55 define(reg "_" field "_SHIFT", lsb)
56 define(reg "_" field "_WIDTH", msb - lsb + 1)
64 # Parse a "<msb>[:<lsb>]" string into the global variables @msb and @lsb
69 lsb = bitdef
72 lsb = _bits[2]
82 if (63 < lsb || lsb < 0)
84 if (msb < lsb)
89 next_bit = lsb - 1
230 field = "RES0_" msb "_" lsb
232 res0 = res0 " | GENMASK_ULL(" msb ", " lsb ")"
240 field = "RES1_" msb "_" lsb
242 res1 = res1 " | GENMASK_ULL(" msb ", " lsb ")"
250 field = "UNKN_" msb "_" lsb
252 unkn = unkn " | GENMASK_ULL(" msb ", " lsb ")"
262 define_field(reg, field, msb, lsb)
282 define_field(reg, field, msb, lsb)
295 define_field(reg, field, msb, lsb)
308 define_field(reg, field, msb, lsb)
317 lsb = null