Lines Matching refs:get
270 map_set(ValueFormats, get(FmtHex, p_name), FmtHex)
271 map_set(ValueFormats, get(FmtDec, p_name), FmtDec)
272 map_set(ValueFormats, get(FmtMAC, p_name), FmtMAC)
273 map_set(ValueFormats, get(FmtLEDDC, p_name), FmtLEDDC)
274 map_set(ValueFormats, get(FmtStr, p_name), FmtStr)
326 map_set(BaseTypes, get(UInt8, p_name), UInt8)
327 map_set(BaseTypes, get(UInt16, p_name), UInt16)
328 map_set(BaseTypes, get(UInt32, p_name), UInt32)
329 map_set(BaseTypes, get(Int8, p_name), Int8)
330 map_set(BaseTypes, get(Int16, p_name), Int16)
331 map_set(BaseTypes, get(Int32, p_name), Int32)
332 map_set(BaseTypes, get(Char, p_name), Char)
447 _block_start = get(_state, p_line)
512 "\"" get(_var, p_name) "\"")
537 _layouts = get(_nvram, p_srom_layouts)
555 _revs = get(_layout, p_revisions)
556 _rev_start = get(_revs, p_start)
557 _rev_end = get(_revs, p_end)
589 get(_base_type, p_array_const),
590 get(_base_type, p_array_const_val),
612 _desc = get(v, p_desc)
613 _help = get(v, p_help)
614 _type = get(v, p_type)
619 emit(sprintf(".name = \"%s\",\n", get(v, p_name)))
622 emit(sprintf(".desc = \"%s\",\n", get(_desc, p_value)))
627 emit(sprintf(".help = \"%s\",\n", get(_help, p_value)))
633 emit(".fmt = &" get(_fmt, p_symbol) ",\n")
657 _crc_off = get(_crc_seg, p_offset)
659 _size += get(get(_crc_seg, p_type), p_width)
669 _sig_offset = get(_sig_seg, p_offset)
670 _sig_value = get(_sig_seg, p_value)
672 errorc(get(_sromsig, p_line), "missing signature value")
682 if (!type_equal(get(_sromrev, p_type), UInt8)) {
684 type_to_string(get(_sromrev, p_type)))
688 _rev_off = get(_rev_seg, p_offset)
733 set(_obj, p_revisions, get(layout, p_revisions))
749 _type = get(opstream, p_type)
753 return (get(type_get_base(_type), p_width))
762 if ((_pending_bind = get(opstream, p_pending_bind)) != null) {
763 _buffer = get(_pending_bind, p_buffer)
815 if (get(opstream, p_pending_bind) != null)
820 _offset = get(opstream, p_offset)
904 _vid_prev = get(opstream, p_vid)
906 _vid = get(var, p_vid)
910 _type = get(var, p_type)
919 srom_ops_emit(opstream, sprintf("/* %s (%#x) */\n", get(var, p_name),
920 get(opstream, p_offset)))
948 _prev_revs = get(opstream, p_revisions)
956 _start = get(revisions, p_start)
957 _end = get(revisions, p_end)
994 _prev_offset = get(opstream, p_offset)
1020 _prev_type = get(opstream, p_type)
1021 _prev_mask = get(opstream, p_mask)
1044 _prev_mask = get(opstream, p_mask)
1058 _prev_shift = get(opstream, p_shift)
1113 _offset = get(segment, p_offset)
1115 _width = get(_type, p_width)
1141 _bind_seg = get(bind, p_segment)
1146 if (get(bind, p_skip_out) != skip_out)
1150 _bind_off = get(bind, p_offset)
1151 _count = get(bind, p_count)
1152 _skip_in = get(bind, p_skip_in)
1153 _width = get(bind, p_width)
1156 _seg_offset = get(segment, p_offset)
1206 if (get(bind, p_count) != 1)
1209 if (get(bind, p_skip_in) != 1)
1212 if (get(bind, p_skip_out) != 1)
1215 if (array_size(get(bind, p_buffer)) != 0)
1241 if ((_bind = get(opstream, p_pending_bind)) != null) {
1248 if (get(opstream, p_pending_bind))
1252 _value = get(segment, p_type)
1256 _value = get(segment, p_offset)
1260 _value = get(segment, p_mask)
1264 _value = get(segment, p_shift)
1280 _opstream_offset = get(opstream, p_offset)
1281 _offset = get(bind, p_offset)
1285 _count = get(bind, p_count)
1286 _width = get(bind, p_width)
1287 _skip_in = get(bind, p_skip_in)
1301 if (get(opstream, p_pending_bind) != null)
1305 _skip_in = get(bind, p_skip_in)
1306 _skip_out = get(bind, p_skip_out)
1317 _count = get(bind, p_count)
1359 _buffer = get(bind, p_buffer)
1371 if ((_bind = get(opstream, p_pending_bind)) == null)
1379 _bind_total = get(opstream, p_bind_total)
1396 _base_off = get(opstream, p_offset)
1407 type_to_string(get(opstream, p_type)),
1408 _base_off, get(opstream, p_offset)))
1437 _segs = get(_offset, p_segments)
1458 _var = get(entry, p_var)
1459 _vid = get(_var, p_vid)
1463 srom_ops_emit_revisions(opstream, get(entry, p_revisions))
1472 _var_type = get(_var, p_type)
1473 _entry_type = get(entry, p_type)
1484 _offsets = get(entry, p_offsets)
1494 _all_entries = get(layout, p_entries)
1510 _var = get(_entry, p_var)
1517 if (get(_var, p_vid) == "")
1559 _macro = var_get_macro(_var, MTypeVarID, get(_var, p_vid))
1609 _tabstr = tab_str(length(get(macro, p_name)), align_to)
1611 emit("#define\t" get(macro, p_name) _tabstr get(macro, p_value) "\n")
1620 _max_len = max(_max_len, length(get(_macro, p_name)))
2093 function get(obj, prop, _class) { function
2260 return (get(array, p_count))
2272 _i = get(array, p_count)
2534 if (get(lhs, p_count) != get(rhs, p_count))
2554 return (get(type, p_mask))
2560 return (get(type_get_base(type), p_array_const))
2563 return (get(type, p_const))
2569 return (get(type_get_base(type), p_array_const_val))
2572 return (get(type, p_const_val))
2579 return (get(type, p_count))
2588 return (type_get_base(get(type, p_type)))
2597 _fmt = get(_base, p_default_fmt)
2600 _array_fmt = get(_fmt, p_array_fmt)
2612 return (type_to_string(_base_type) "[" get(type, p_count) "]")
2614 return get(type, p_name)
2631 if (get(lhs, p_count) < get(rhs, p_count))
2640 if (get(lhs, p_signed) != get(rhs, p_signed))
2644 if (get(lhs, p_width) < get(rhs, p_width))
2764 if (!get(str, p_continued)) {
2766 get(str, p_value) "'")
2769 _strbuf = get(str, p_value)
2796 if ((_strbuf = get(str, p_value)) == NULL)
2817 if (get(lhs, p_start) != get(rhs, p_start))
2820 if (get(lhs, p_end) != get(rhs, p_end))
2830 if (rev < get(range, p_start))
2832 else if (rev > get(range, p_end)) {
2845 _start = get(revs, p_start)
2846 _end = get(revs, p_end)
2882 _g_var_names[get(_v, p_name)] = _v
2887 _g_var_names[get(_v, p_name)] = _v
2900 _table = get(nvram, p_srom_table)
2903 _revs = get(layout, p_revisions)
2904 _start = get(_revs, p_start)
2905 _end = get(_revs, p_end)
2911 get(map_get(_table, _i), p_line) ")")
2918 array_append(get(nvram, p_srom_layouts), layout)
2928 _layouts = get(nvram, p_srom_layouts)
2973 return (get(var, p_access) == VAccessInternal)
2979 _vtype = get(var, p_type)
2987 return (type_get_nelem(get(var, p_type)))
2996 if ((_fmt = get(var, p_fmt)) != null)
3000 return (type_get_default_fmt(get(var, p_type)))
3018 _var_name = get(var, p_name)
3019 _suffix = get(macro_type, p_const_suffix)
3044 _layout_revmap = get(layout, p_revmap)
3045 _layout_var_count = get(layout, p_output_var_counts)
3047 _var = get(entry, p_var)
3048 _name = get(_var, p_name)
3051 array_append(get(layout, p_entries), entry)
3054 _rev_start = get(get(entry, p_revisions), p_start)
3055 _rev_end = get(get(entry, p_revisions), p_end)
3063 get(_prev_entry, p_line) ")")
3092 _revs = get(layout, p_revisions)
3094 return ("bhnd_sprom_layout_r" get(_revs, p_start) \
3095 "_r" get(_revs, p_end))
3102 return (revrange_contains(get(layout, p_revisions), rev))
3112 _counts = get(layout, p_output_var_counts)
3124 _srom_revmap = get(layout, p_revmap)
3143 _start = get(revs, p_start)
3144 _end = get(revs, p_end)
3145 _parent_revs = get(parent, p_revisions)
3199 return (obj_is_instanceof(get(entry, p_type), ArrayType))
3207 return (type_get_nelem(get(entry, p_type)))
3218 _var = get(entry, p_var)
3219 _revs = get(entry, p_revisions)
3245 _offsets = get(entry, p_offsets)
3247 errorc(get(entry, p_line), "unsupported offset count")
3249 _segments = get(array_first(_offsets), p_segments)
3251 errorc(get(entry, p_line), "unsupported segment count")
3256 _default_mask = get(_base_type, p_mask)
3259 if (get(_seg, p_shift) != 0)
3262 if (get(_seg, p_mask) != _default_mask)
3280 return (array_size(get(offset, p_segments)))
3288 return (array_get(get(offset, p_segments), idx))
3317 return (get(_type, p_count))
3323 return (get(seg, p_type))
3339 if (!type_equal(get(lhs, p_type), get(rhs, p_type)))
3343 if (get(lhs, p_mask) != get(rhs, p_mask))
3347 if (get(lhs, p_shift) != get(rhs, p_shift))
3351 if (get(lhs, p_value) != get(rhs, p_value))
3362 if ((_t = get(seg, p_type)) != null)
3366 _str = (_str sprintf("0x%X", get(seg, p_offset)))
3369 if ((_m = get(seg, p_mask)) != null)
3372 if ((_s = get(seg, p_shift)) != null) {
3393 _type = get(v, p_type)
3397 if (get(v, p_access) == VAccessPrivate)
3401 if (get(v, p_ignall1))
3643 _closes_block = get(parser_state_get(), p_is_block)
3655 _ctx_obj = get(parser_state_get(), p_ctx)
3671 _ctx = get(_state, p_ctx)
3707 _found_block = get(_next_state, p_is_block)
3721 _ctx = get(parser_state_get(), p_ctx)
3789 while (get(_group_name, p_continued)) {
3794 debug("group \"" get(_group_name, p_value) "\" {")
3797 _groups = get(_ctx, p_var_groups)
3842 "line " get(_g_var_names[_name], p_line))
3853 _var_list = get(_ctx, p_vars)
3877 "'" get(_fmt, p_name) "'"
3902 if ((_pval = get(_var, p_fmt)) != null) {
3924 if ((_pval = get(_var, p_ignall1)) != null) {
3944 error(get(_var, p_name) " '" $1 "' redefined " \
3956 while (get(_pval, p_continued)) {
3961 debug(param_name " \"" get(_pval, p_value) "\"")
3980 _srom_layouts = get(_nvram, p_srom_layouts)
4151 _srom_revs = get(_ctx, p_revisions)
4152 _rev_start = get(_srom_revs, p_start)
4153 _rev_end = get(_srom_revs, p_end)
4157 _srom_entries = get(_srom, p_entries)
4158 _srom_revmap = get(_srom, p_revmap)
4185 if (!type_can_represent(get(_var, p_type), _stype)) {
4187 "coerced to '" type_to_string(get(_var, p_type)) " " _name \
4208 array_append(get(_entry, p_offsets), _offset)
4212 array_append(get(_offset, p_segments), _seg)
4230 _base_off = get(_entry, p_base_offset)
4231 _offs = get(_entry, p_offsets)
4233 _base_type = get(_entry, p_type)
4240 _segs = get(_offset, p_segments)