Lines Matching refs:field
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)
60 function define_field_sign(reg, field, sign) {
61 define(reg "_" field "_SIGNED", sign)
65 function parse_bitdef(reg, field, bitdef, _bits)
79 fatal(reg "." field " starts at " msb " not " next_bit)
81 fatal(reg "." field " invalid high bit in '" bitdef "'")
83 fatal(reg "." field " invalid low bit in '" bitdef "'")
85 fatal(reg "." field " invalid bit-range '" bitdef "'")
87 fatal(reg "." field " has invalid range " high "-" low)
230 field = "RES0_" msb "_" lsb
240 field = "RES1_" msb "_" lsb
250 field = "UNKN_" msb "_" lsb
259 field = $3
260 parse_bitdef(reg, field, $2)
262 define_field(reg, field, msb, lsb)
270 parse_bitdef(reg, field, $2)
279 field = $3
280 parse_bitdef(reg, field, $2)
282 define_field(reg, field, msb, lsb)
283 define_field_sign(reg, field, "true")
292 field = $3
293 parse_bitdef(reg, field, $2)
295 define_field(reg, field, msb, lsb)
296 define_field_sign(reg, field, "false")
305 field = $3
306 parse_bitdef(reg, field, $2)
308 define_field(reg, field, msb, lsb)
315 field = null
329 define(reg "_" field "_" name, "UL(" val ")")