Lines Matching refs:_obj

727 function srom_ops_new(layout, _obj) {
730 _obj = obj_new(SromOpStream)
731 set(_obj, p_layout, layout)
732 set(_obj, p_revisions, get(layout, p_revisions))
733 set(_obj, p_vid, 0)
734 set(_obj, p_offset, 0)
735 set(_obj, p_type, null)
736 set(_obj, p_mask, null)
737 set(_obj, p_shift, null)
739 return (_obj)
1093 function srom_opbind_new(segment, skip_in, skip_out, _obj, _type, _width,
1117 _obj = obj_new(SromOpBind)
1119 set(_obj, p_segment, segment)
1120 set(_obj, p_count, 1)
1121 set(_obj, p_offset, _offset)
1122 set(_obj, p_width, _width)
1123 set(_obj, p_skip_in, skip_in)
1124 set(_obj, p_skip_out, skip_out)
1125 set(_obj, p_buffer, array_new())
1127 return (_obj)
1851 function obj_new(class, _obj) {
1852 if (_obj != null)
1859 _obj = _g_obj_ids++
1860 _g_obj[_obj,OBJ_SUPER] = class
1862 return (_obj)
2229 function macro_type_new(name, const_suffix, _obj) {
2230 _obj = obj_new(MacroType)
2232 set(_obj, p_name, name)
2233 set(_obj, p_const_suffix, const_suffix)
2235 return (_obj)
2239 function macro_new(name, value, _obj) {
2240 _obj = obj_new(MacroDefine)
2241 set(_obj, p_name, name)
2242 set(_obj, p_value, value)
2244 return (_obj)
2249 function array_new(_obj) {
2250 _obj = obj_new(Array)
2251 set(_obj, p_count, 0)
2253 return (_obj)
2454 function map_new(_obj) {
2455 _obj = obj_new(Map)
2456 return (_obj)
2502 constant_value, array_constant_value, _obj)
2506 _obj = obj_new(Type)
2507 set(_obj, p_name, name)
2508 set(_obj, p_width, width)
2509 set(_obj, p_signed, signed)
2510 set(_obj, p_const, constant)
2511 set(_obj, p_const_val, constant_value)
2512 set(_obj, p_array_const, array_constant)
2513 set(_obj, p_array_const_val, array_constant_value)
2514 set(_obj, p_default_fmt, fmt)
2515 set(_obj, p_mask, mask)
2517 return (_obj)
2650 function array_type_new(type, count, _obj) {
2651 _obj = obj_new(ArrayType)
2652 set(_obj, p_type, type)
2653 set(_obj, p_count, count)
2655 return (_obj)
2705 function fmt_new(name, symbol, array_fmt, _obj) {
2706 _obj = obj_new(Fmt)
2707 set(_obj, p_name, name)
2708 set(_obj, p_symbol, symbol)
2711 set(_obj, p_array_fmt, array_fmt)
2713 return (_obj)
2726 function vflag_new(name, constant, _obj) {
2727 _obj = obj_new(VFlag)
2728 set(_obj, p_name, name)
2729 set(_obj, p_const, constant)
2731 return (_obj)
2735 function stringconstant_new(value, continued, _obj) {
2736 _obj = obj_new(StringConstant)
2737 set(_obj, p_value, value)
2738 set(_obj, p_continued, continued)
2739 set(_obj, p_line, NR)
2741 return (_obj)
2746 function stringconstant_empty(_obj) {
2752 function stringconstant_parse_line(line, _obj) {
2753 _obj = stringconstant_empty()
2754 stringconstant_append_line(_obj, line)
2755 return (_obj)
2805 function revrange_new(start, end, _obj) {
2806 _obj = obj_new(RevRange)
2807 set(_obj, p_start, start)
2808 set(_obj, p_end, end)
2809 set(_obj, p_line, NR)
2811 return (_obj)
2856 function var_group_new(name, _obj) {
2857 _obj = obj_new(VarGroup)
2858 set(_obj, p_name, name)
2859 set(_obj, p_vars, array_new())
2860 set(_obj, p_line, NR)
2862 return (_obj)
2866 function nvram_new(_obj, _vars, _v) {
2867 _obj = obj_new(NVRAM)
2869 set(_obj, p_vars, _vars)
2870 set(_obj, p_var_groups, array_new())
2871 set(_obj, p_srom_layouts, array_new())
2872 set(_obj, p_srom_table, map_new())
2888 return (_obj)
2941 function var_new(access, name, type, _obj) {
2960 _obj = obj_new(Var)
2961 set(_obj, p_access, access)
2962 set(_obj, p_name, name)
2963 set(_obj, p_type, type)
2964 set(_obj, p_line, NR)
2966 return (_obj)
3024 function srom_layout_new(rev_desc, _obj)
3026 _obj = obj_new(SromLayout)
3027 set(_obj, p_revisions, rev_desc)
3028 set(_obj, p_entries, array_new())
3029 set(_obj, p_revmap, map_new())
3030 set(_obj, p_output_var_counts, map_new())
3031 set(_obj, p_line, NR)
3033 return (_obj)
3136 function srom_layout_filter_new(parent, revs, _obj, _start, _end, _parent_revs) {
3159 _obj = obj_new(SromLayoutFilter)
3160 set(_obj, p_parent, parent)
3161 set(_obj, p_revisions, revs)
3162 set(_obj, p_line, NR)
3164 return (_obj)
3178 function srom_entry_new(var, revisions, base_offset, type, _obj) {
3183 _obj = obj_new(SromEntry)
3184 set(_obj, p_var, var)
3185 set(_obj, p_revisions, revisions)
3186 set(_obj, p_base_offset, base_offset)
3187 set(_obj, p_type, type)
3188 set(_obj, p_offsets, array_new())
3189 set(_obj, p_line, NR)
3191 return (_obj)
3268 function srom_offset_new(_obj) {
3269 _obj = obj_new(SromOffset)
3270 set(_obj, p_segments, array_new())
3271 set(_obj, p_line, NR)
3273 return (_obj)
3291 function srom_segment_new(offset, type, mask, shift, value, _obj) {
3292 _obj = obj_new(SromSegment)
3293 set(_obj, p_offset, offset)
3294 set(_obj, p_type, type)
3295 set(_obj, p_mask, mask)
3296 set(_obj, p_shift, shift)
3297 set(_obj, p_value, value)
3298 set(_obj, p_line, NR)
3300 return (_obj)