Lines Matching refs:_obj

728 function srom_ops_new(layout, _obj) {
731 _obj = obj_new(SromOpStream)
732 set(_obj, p_layout, layout)
733 set(_obj, p_revisions, get(layout, p_revisions))
734 set(_obj, p_vid, 0)
735 set(_obj, p_offset, 0)
736 set(_obj, p_type, null)
737 set(_obj, p_mask, null)
738 set(_obj, p_shift, null)
740 return (_obj)
1094 function srom_opbind_new(segment, skip_in, skip_out, _obj, _type, _width,
1118 _obj = obj_new(SromOpBind)
1120 set(_obj, p_segment, segment)
1121 set(_obj, p_count, 1)
1122 set(_obj, p_offset, _offset)
1123 set(_obj, p_width, _width)
1124 set(_obj, p_skip_in, skip_in)
1125 set(_obj, p_skip_out, skip_out)
1126 set(_obj, p_buffer, array_new())
1128 return (_obj)
1852 function obj_new(class, _obj) {
1853 if (_obj != null)
1860 _obj = _g_obj_ids++
1861 _g_obj[_obj,OBJ_SUPER] = class
1863 return (_obj)
2230 function macro_type_new(name, const_suffix, _obj) {
2231 _obj = obj_new(MacroType)
2233 set(_obj, p_name, name)
2234 set(_obj, p_const_suffix, const_suffix)
2236 return (_obj)
2240 function macro_new(name, value, _obj) {
2241 _obj = obj_new(MacroDefine)
2242 set(_obj, p_name, name)
2243 set(_obj, p_value, value)
2245 return (_obj)
2250 function array_new(_obj) {
2251 _obj = obj_new(Array)
2252 set(_obj, p_count, 0)
2254 return (_obj)
2455 function map_new(_obj) {
2456 _obj = obj_new(Map)
2457 return (_obj)
2503 constant_value, array_constant_value, _obj)
2507 _obj = obj_new(Type)
2508 set(_obj, p_name, name)
2509 set(_obj, p_width, width)
2510 set(_obj, p_signed, signed)
2511 set(_obj, p_const, constant)
2512 set(_obj, p_const_val, constant_value)
2513 set(_obj, p_array_const, array_constant)
2514 set(_obj, p_array_const_val, array_constant_value)
2515 set(_obj, p_default_fmt, fmt)
2516 set(_obj, p_mask, mask)
2518 return (_obj)
2651 function array_type_new(type, count, _obj) {
2652 _obj = obj_new(ArrayType)
2653 set(_obj, p_type, type)
2654 set(_obj, p_count, count)
2656 return (_obj)
2706 function fmt_new(name, symbol, array_fmt, _obj) {
2707 _obj = obj_new(Fmt)
2708 set(_obj, p_name, name)
2709 set(_obj, p_symbol, symbol)
2712 set(_obj, p_array_fmt, array_fmt)
2714 return (_obj)
2727 function vflag_new(name, constant, _obj) {
2728 _obj = obj_new(VFlag)
2729 set(_obj, p_name, name)
2730 set(_obj, p_const, constant)
2732 return (_obj)
2736 function stringconstant_new(value, continued, _obj) {
2737 _obj = obj_new(StringConstant)
2738 set(_obj, p_value, value)
2739 set(_obj, p_continued, continued)
2740 set(_obj, p_line, NR)
2742 return (_obj)
2747 function stringconstant_empty(_obj) {
2753 function stringconstant_parse_line(line, _obj) {
2754 _obj = stringconstant_empty()
2755 stringconstant_append_line(_obj, line)
2756 return (_obj)
2806 function revrange_new(start, end, _obj) {
2807 _obj = obj_new(RevRange)
2808 set(_obj, p_start, start)
2809 set(_obj, p_end, end)
2810 set(_obj, p_line, NR)
2812 return (_obj)
2857 function var_group_new(name, _obj) {
2858 _obj = obj_new(VarGroup)
2859 set(_obj, p_name, name)
2860 set(_obj, p_vars, array_new())
2861 set(_obj, p_line, NR)
2863 return (_obj)
2867 function nvram_new(_obj, _vars, _v) {
2868 _obj = obj_new(NVRAM)
2870 set(_obj, p_vars, _vars)
2871 set(_obj, p_var_groups, array_new())
2872 set(_obj, p_srom_layouts, array_new())
2873 set(_obj, p_srom_table, map_new())
2889 return (_obj)
2942 function var_new(access, name, type, _obj) {
2961 _obj = obj_new(Var)
2962 set(_obj, p_access, access)
2963 set(_obj, p_name, name)
2964 set(_obj, p_type, type)
2965 set(_obj, p_line, NR)
2967 return (_obj)
3025 function srom_layout_new(rev_desc, _obj)
3027 _obj = obj_new(SromLayout)
3028 set(_obj, p_revisions, rev_desc)
3029 set(_obj, p_entries, array_new())
3030 set(_obj, p_revmap, map_new())
3031 set(_obj, p_output_var_counts, map_new())
3032 set(_obj, p_line, NR)
3034 return (_obj)
3137 function srom_layout_filter_new(parent, revs, _obj, _start, _end, _parent_revs) {
3160 _obj = obj_new(SromLayoutFilter)
3161 set(_obj, p_parent, parent)
3162 set(_obj, p_revisions, revs)
3163 set(_obj, p_line, NR)
3165 return (_obj)
3179 function srom_entry_new(var, revisions, base_offset, type, _obj) {
3184 _obj = obj_new(SromEntry)
3185 set(_obj, p_var, var)
3186 set(_obj, p_revisions, revisions)
3187 set(_obj, p_base_offset, base_offset)
3188 set(_obj, p_type, type)
3189 set(_obj, p_offsets, array_new())
3190 set(_obj, p_line, NR)
3192 return (_obj)
3269 function srom_offset_new(_obj) {
3270 _obj = obj_new(SromOffset)
3271 set(_obj, p_segments, array_new())
3272 set(_obj, p_line, NR)
3274 return (_obj)
3292 function srom_segment_new(offset, type, mask, shift, value, _obj) {
3293 _obj = obj_new(SromSegment)
3294 set(_obj, p_offset, offset)
3295 set(_obj, p_type, type)
3296 set(_obj, p_mask, mask)
3297 set(_obj, p_shift, shift)
3298 set(_obj, p_value, value)
3299 set(_obj, p_line, NR)
3301 return (_obj)