Lines Matching refs:get
269 map_set(ValueFormats, get(FmtHex, p_name), FmtHex)
270 map_set(ValueFormats, get(FmtDec, p_name), FmtDec)
271 map_set(ValueFormats, get(FmtMAC, p_name), FmtMAC)
272 map_set(ValueFormats, get(FmtLEDDC, p_name), FmtLEDDC)
273 map_set(ValueFormats, get(FmtStr, p_name), FmtStr)
325 map_set(BaseTypes, get(UInt8, p_name), UInt8)
326 map_set(BaseTypes, get(UInt16, p_name), UInt16)
327 map_set(BaseTypes, get(UInt32, p_name), UInt32)
328 map_set(BaseTypes, get(Int8, p_name), Int8)
329 map_set(BaseTypes, get(Int16, p_name), Int16)
330 map_set(BaseTypes, get(Int32, p_name), Int32)
331 map_set(BaseTypes, get(Char, p_name), Char)
446 _block_start = get(_state, p_line)
511 "\"" get(_var, p_name) "\"")
536 _layouts = get(_nvram, p_srom_layouts)
554 _revs = get(_layout, p_revisions)
555 _rev_start = get(_revs, p_start)
556 _rev_end = get(_revs, p_end)
588 get(_base_type, p_array_const),
589 get(_base_type, p_array_const_val),
611 _desc = get(v, p_desc)
612 _help = get(v, p_help)
613 _type = get(v, p_type)
618 emit(sprintf(".name = \"%s\",\n", get(v, p_name)))
621 emit(sprintf(".desc = \"%s\",\n", get(_desc, p_value)))
626 emit(sprintf(".help = \"%s\",\n", get(_help, p_value)))
632 emit(".fmt = &" get(_fmt, p_symbol) ",\n")
656 _crc_off = get(_crc_seg, p_offset)
658 _size += get(get(_crc_seg, p_type), p_width)
668 _sig_offset = get(_sig_seg, p_offset)
669 _sig_value = get(_sig_seg, p_value)
671 errorc(get(_sromsig, p_line), "missing signature value")
681 if (!type_equal(get(_sromrev, p_type), UInt8)) {
683 type_to_string(get(_sromrev, p_type)))
687 _rev_off = get(_rev_seg, p_offset)
732 set(_obj, p_revisions, get(layout, p_revisions))
748 _type = get(opstream, p_type)
752 return (get(type_get_base(_type), p_width))
761 if ((_pending_bind = get(opstream, p_pending_bind)) != null) {
762 _buffer = get(_pending_bind, p_buffer)
814 if (get(opstream, p_pending_bind) != null)
819 _offset = get(opstream, p_offset)
903 _vid_prev = get(opstream, p_vid)
905 _vid = get(var, p_vid)
909 _type = get(var, p_type)
918 srom_ops_emit(opstream, sprintf("/* %s (%#x) */\n", get(var, p_name),
919 get(opstream, p_offset)))
947 _prev_revs = get(opstream, p_revisions)
955 _start = get(revisions, p_start)
956 _end = get(revisions, p_end)
993 _prev_offset = get(opstream, p_offset)
1019 _prev_type = get(opstream, p_type)
1020 _prev_mask = get(opstream, p_mask)
1043 _prev_mask = get(opstream, p_mask)
1057 _prev_shift = get(opstream, p_shift)
1112 _offset = get(segment, p_offset)
1114 _width = get(_type, p_width)
1140 _bind_seg = get(bind, p_segment)
1145 if (get(bind, p_skip_out) != skip_out)
1149 _bind_off = get(bind, p_offset)
1150 _count = get(bind, p_count)
1151 _skip_in = get(bind, p_skip_in)
1152 _width = get(bind, p_width)
1155 _seg_offset = get(segment, p_offset)
1205 if (get(bind, p_count) != 1)
1208 if (get(bind, p_skip_in) != 1)
1211 if (get(bind, p_skip_out) != 1)
1214 if (array_size(get(bind, p_buffer)) != 0)
1240 if ((_bind = get(opstream, p_pending_bind)) != null) {
1247 if (get(opstream, p_pending_bind))
1251 _value = get(segment, p_type)
1255 _value = get(segment, p_offset)
1259 _value = get(segment, p_mask)
1263 _value = get(segment, p_shift)
1279 _opstream_offset = get(opstream, p_offset)
1280 _offset = get(bind, p_offset)
1284 _count = get(bind, p_count)
1285 _width = get(bind, p_width)
1286 _skip_in = get(bind, p_skip_in)
1300 if (get(opstream, p_pending_bind) != null)
1304 _skip_in = get(bind, p_skip_in)
1305 _skip_out = get(bind, p_skip_out)
1316 _count = get(bind, p_count)
1358 _buffer = get(bind, p_buffer)
1370 if ((_bind = get(opstream, p_pending_bind)) == null)
1378 _bind_total = get(opstream, p_bind_total)
1395 _base_off = get(opstream, p_offset)
1406 type_to_string(get(opstream, p_type)),
1407 _base_off, get(opstream, p_offset)))
1436 _segs = get(_offset, p_segments)
1457 _var = get(entry, p_var)
1458 _vid = get(_var, p_vid)
1462 srom_ops_emit_revisions(opstream, get(entry, p_revisions))
1471 _var_type = get(_var, p_type)
1472 _entry_type = get(entry, p_type)
1483 _offsets = get(entry, p_offsets)
1493 _all_entries = get(layout, p_entries)
1509 _var = get(_entry, p_var)
1516 if (get(_var, p_vid) == "")
1558 _macro = var_get_macro(_var, MTypeVarID, get(_var, p_vid))
1608 _tabstr = tab_str(length(get(macro, p_name)), align_to)
1610 emit("#define\t" get(macro, p_name) _tabstr get(macro, p_value) "\n")
1619 _max_len = max(_max_len, length(get(_macro, p_name)))
2092 function get(obj, prop, _class) { function
2259 return (get(array, p_count))
2271 _i = get(array, p_count)
2533 if (get(lhs, p_count) != get(rhs, p_count))
2553 return (get(type, p_mask))
2559 return (get(type_get_base(type), p_array_const))
2562 return (get(type, p_const))
2568 return (get(type_get_base(type), p_array_const_val))
2571 return (get(type, p_const_val))
2578 return (get(type, p_count))
2587 return (type_get_base(get(type, p_type)))
2596 _fmt = get(_base, p_default_fmt)
2599 _array_fmt = get(_fmt, p_array_fmt)
2611 return (type_to_string(_base_type) "[" get(type, p_count) "]")
2613 return get(type, p_name)
2630 if (get(lhs, p_count) < get(rhs, p_count))
2639 if (get(lhs, p_signed) != get(rhs, p_signed))
2643 if (get(lhs, p_width) < get(rhs, p_width))
2763 if (!get(str, p_continued)) {
2765 get(str, p_value) "'")
2768 _strbuf = get(str, p_value)
2795 if ((_strbuf = get(str, p_value)) == NULL)
2816 if (get(lhs, p_start) != get(rhs, p_start))
2819 if (get(lhs, p_end) != get(rhs, p_end))
2829 if (rev < get(range, p_start))
2831 else if (rev > get(range, p_end)) {
2844 _start = get(revs, p_start)
2845 _end = get(revs, p_end)
2881 _g_var_names[get(_v, p_name)] = _v
2886 _g_var_names[get(_v, p_name)] = _v
2899 _table = get(nvram, p_srom_table)
2902 _revs = get(layout, p_revisions)
2903 _start = get(_revs, p_start)
2904 _end = get(_revs, p_end)
2910 get(map_get(_table, _i), p_line) ")")
2917 array_append(get(nvram, p_srom_layouts), layout)
2927 _layouts = get(nvram, p_srom_layouts)
2972 return (get(var, p_access) == VAccessInternal)
2978 _vtype = get(var, p_type)
2986 return (type_get_nelem(get(var, p_type)))
2995 if ((_fmt = get(var, p_fmt)) != null)
2999 return (type_get_default_fmt(get(var, p_type)))
3017 _var_name = get(var, p_name)
3018 _suffix = get(macro_type, p_const_suffix)
3043 _layout_revmap = get(layout, p_revmap)
3044 _layout_var_count = get(layout, p_output_var_counts)
3046 _var = get(entry, p_var)
3047 _name = get(_var, p_name)
3050 array_append(get(layout, p_entries), entry)
3053 _rev_start = get(get(entry, p_revisions), p_start)
3054 _rev_end = get(get(entry, p_revisions), p_end)
3062 get(_prev_entry, p_line) ")")
3091 _revs = get(layout, p_revisions)
3093 return ("bhnd_sprom_layout_r" get(_revs, p_start) \
3094 "_r" get(_revs, p_end))
3101 return (revrange_contains(get(layout, p_revisions), rev))
3111 _counts = get(layout, p_output_var_counts)
3123 _srom_revmap = get(layout, p_revmap)
3142 _start = get(revs, p_start)
3143 _end = get(revs, p_end)
3144 _parent_revs = get(parent, p_revisions)
3198 return (obj_is_instanceof(get(entry, p_type), ArrayType))
3206 return (type_get_nelem(get(entry, p_type)))
3217 _var = get(entry, p_var)
3218 _revs = get(entry, p_revisions)
3244 _offsets = get(entry, p_offsets)
3246 errorc(get(entry, p_line), "unsupported offset count")
3248 _segments = get(array_first(_offsets), p_segments)
3250 errorc(get(entry, p_line), "unsupported segment count")
3255 _default_mask = get(_base_type, p_mask)
3258 if (get(_seg, p_shift) != 0)
3261 if (get(_seg, p_mask) != _default_mask)
3279 return (array_size(get(offset, p_segments)))
3287 return (array_get(get(offset, p_segments), idx))
3316 return (get(_type, p_count))
3322 return (get(seg, p_type))
3338 if (!type_equal(get(lhs, p_type), get(rhs, p_type)))
3342 if (get(lhs, p_mask) != get(rhs, p_mask))
3346 if (get(lhs, p_shift) != get(rhs, p_shift))
3350 if (get(lhs, p_value) != get(rhs, p_value))
3361 if ((_t = get(seg, p_type)) != null)
3365 _str = (_str sprintf("0x%X", get(seg, p_offset)))
3368 if ((_m = get(seg, p_mask)) != null)
3371 if ((_s = get(seg, p_shift)) != null) {
3392 _type = get(v, p_type)
3396 if (get(v, p_access) == VAccessPrivate)
3400 if (get(v, p_ignall1))
3642 _closes_block = get(parser_state_get(), p_is_block)
3654 _ctx_obj = get(parser_state_get(), p_ctx)
3670 _ctx = get(_state, p_ctx)
3706 _found_block = get(_next_state, p_is_block)
3720 _ctx = get(parser_state_get(), p_ctx)
3788 while (get(_group_name, p_continued)) {
3793 debug("group \"" get(_group_name, p_value) "\" {")
3796 _groups = get(_ctx, p_var_groups)
3841 "line " get(_g_var_names[_name], p_line))
3852 _var_list = get(_ctx, p_vars)
3876 "'" get(_fmt, p_name) "'"
3901 if ((_pval = get(_var, p_fmt)) != null) {
3923 if ((_pval = get(_var, p_ignall1)) != null) {
3943 error(get(_var, p_name) " '" $1 "' redefined " \
3955 while (get(_pval, p_continued)) {
3960 debug(param_name " \"" get(_pval, p_value) "\"")
3979 _srom_layouts = get(_nvram, p_srom_layouts)
4150 _srom_revs = get(_ctx, p_revisions)
4151 _rev_start = get(_srom_revs, p_start)
4152 _rev_end = get(_srom_revs, p_end)
4156 _srom_entries = get(_srom, p_entries)
4157 _srom_revmap = get(_srom, p_revmap)
4184 if (!type_can_represent(get(_var, p_type), _stype)) {
4186 "coerced to '" type_to_string(get(_var, p_type)) " " _name \
4207 array_append(get(_entry, p_offsets), _offset)
4211 array_append(get(_offset, p_segments), _seg)
4229 _base_off = get(_entry, p_base_offset)
4230 _offs = get(_entry, p_offsets)
4232 _base_type = get(_entry, p_type)
4239 _segs = get(_offset, p_segments)