/external/syzkaller/prog/ |
D | validation.go | 81 func (ctx *validCtx) validateArg(arg Arg, typ Type) error { 91 if !ctx.target.isAnyPtr(arg.Type()) && arg.Type() != typ { 92 return fmt.Errorf("bad arg type %#v, expect %#v", arg.Type(), typ) 99 switch typ := arg.Type().(type) { 101 if typ.Dir() == DirOut && !isDefault(arg) { 102 return fmt.Errorf("out int arg '%v' has bad const value %v", typ.Name(), arg.Val) 105 if arg.Val >= typ.ValuesPerProc && !isDefault(arg) { 106 return fmt.Errorf("per proc arg '%v' has bad value %v", typ.Name(), arg.Val) 110 return fmt.Errorf("csum arg '%v' has nonzero value %v", typ.Name(), arg.Val) 114 return fmt.Errorf("const arg %v has bad type %v", arg, typ.Name()) [all …]
|
D | prog.go | 32 typ Type member 36 return arg.typ 46 return &ConstArg{ArgCommon: ArgCommon{typ: t}, Val: v} 50 return arg.typ.Size() 55 switch typ := (*arg).Type().(type) { 73 return typ.ValuesStart + arg.Val, typ.ValuesPerProc 75 panic(fmt.Sprintf("unknown ConstArg type %#v", typ)) 92 ArgCommon: ArgCommon{typ: t}, 103 ArgCommon: ArgCommon{typ: t}, 111 ArgCommon: ArgCommon{typ: t}, [all …]
|
D | encoding.go | 228 typ := meta.Args[i] 229 if IsPad(typ) { 232 arg, err := target.parseArg(typ, p, vars) 281 func (target *Target) parseArg(typ Type, p *parser, vars map[string]*ResultArg) (Arg, error) { 289 arg, err := target.parseArgImpl(typ, p, vars) 294 if typ != nil { 295 arg = typ.makeDefaultArg() 308 func (target *Target) parseArgImpl(typ Type, p *parser, vars map[string]*ResultArg) (Arg, error) { 311 return target.parseArgInt(typ, p) 313 return target.parseArgRes(typ, p, vars) [all …]
|
D | analysis.go | 67 switch typ := arg.Type().(type) { 70 if resources && typ.Dir() != DirIn { 71 s.resources[typ.Desc.Name] = append(s.resources[typ.Desc.Name], a) 76 if typ.Dir() != DirOut && len(a.Data()) != 0 { 82 switch typ.Kind { 204 typ := fallbackSignalErrno 206 typ = fallbackSignalErrnoBlocked 208 inf.Signal = append(inf.Signal, encodeFallbackSignal(typ, id, inf.Errno)) 238 switch typ := a.Type().(type) { 240 if typ.BitMask { [all …]
|
D | size.go | 51 if typ, ok := arg.Type().(*LenType); ok { 54 buf, ok := argsMap[typ.Buf] 56 a.Val = target.generateSize(InnerArg(buf), typ) 60 if typ.Buf == "parent" { 62 if typ.BitSize != 0 { 63 a.Val = a.Val * 8 / typ.BitSize 75 if typ.Buf == parentName { 77 if typ.BitSize != 0 { 78 a.Val = a.Val * 8 / typ.BitSize 89 typ.FieldName(), typ.Buf, argsMap)) [all …]
|
D | any.go | 129 var typ PtrType 131 typ = *target.any.ptrPtr 133 typ = *target.any.ptr64 137 typ.TypeSize = size 139 typ.FldName = field 141 return &typ 144 func (target *Target) isAnyPtr(typ Type) bool { 145 ptr, ok := typ.(*PtrType) 170 switch typ := a1.Type().(type) { 172 if typ.Varlen() { [all …]
|
D | minimization.go | 105 func (typ *TypeCommon) minimize(ctx *minimizeArgsCtx, arg Arg, path string) bool { 109 func (typ *StructType) minimize(ctx *minimizeArgsCtx, arg Arg, path string) bool { 119 func (typ *UnionType) minimize(ctx *minimizeArgsCtx, arg Arg, path string) bool { 123 func (typ *PtrType) minimize(ctx *minimizeArgsCtx, arg Arg, path string) bool { 132 func (typ *ArrayType) minimize(ctx *minimizeArgsCtx, arg Arg, path string) bool { 139 (typ.Kind == ArrayRandLen || 140 typ.Kind == ArrayRangeLen && uint64(len(a.Inner)) > typ.RangeBegin) { 158 func (typ *IntType) minimize(ctx *minimizeArgsCtx, arg Arg, path string) bool { 162 func (typ *FlagsType) minimize(ctx *minimizeArgsCtx, arg Arg, path string) bool { 166 func (typ *ProcType) minimize(ctx *minimizeArgsCtx, arg Arg, path string) bool { [all …]
|
/external/syzkaller/sys/linux/ |
D | init_alg.go | 14 typ := typ0.(*prog.StructType) 15 family := g.GenerateArg(typ.Fields[0], &calls) 18 feat := prog.MakeConstArg(typ.Fields[2], 0) 19 mask := prog.MakeConstArg(typ.Fields[3], 0) 21 feat = g.GenerateArg(typ.Fields[2], &calls).(*prog.ConstArg) 22 mask = g.GenerateArg(typ.Fields[3], &calls).(*prog.ConstArg) 26 algTypeData := fixedSizeData(algType, typ.Fields[1].Size()) 27 algNameData := fixedSizeData(algName, typ.Fields[4].Size()) 28 arg = prog.MakeGroupArg(typ, []prog.Arg{ 30 prog.MakeDataArg(typ.Fields[1], algTypeData), [all …]
|
D | init_alg_test.go | 36 for typ, algList := range allAlgs { 59 t.Errorf("template %v is missing for type %v", templ, typ) 69 for _, typ := range allTypes { 70 for _, alg := range allAlgs[typ.typ] { 74 ok, skip := testAlg(t, typ.name, alg.name) 76 t.Errorf("SKIP\t%10v\t%v", typ.name, alg.name) 80 t.Errorf("FAIL\t%10v\t%v", typ.name, alg.name) 90 for _, typ := range allTypes { 91 for _, alg := range allAlgs[typ.typ] { 110 ok, _ := testAlg(t, typ.name, name) [all …]
|
/external/u-boot/drivers/video/tegra124/ |
D | display.c | 28 int pclk = timing->pixelclock.typ; in tegra_dc_calc_refresh() 30 h_total = timing->hactive.typ + timing->hfront_porch.typ + in tegra_dc_calc_refresh() 31 timing->hback_porch.typ + timing->hsync_len.typ; in tegra_dc_calc_refresh() 32 v_total = timing->vactive.typ + timing->vfront_porch.typ + in tegra_dc_calc_refresh() 33 timing->vback_porch.typ + timing->vsync_len.typ; in tegra_dc_calc_refresh() 48 timing->hactive.typ, timing->vactive.typ, refresh / 1000, in print_mode() 49 refresh % 1000, timing->pixelclock.typ); in print_mode() 63 writel(timing->vsync_len.typ << 16 | timing->hsync_len.typ, in update_display_mode() 66 writel(((timing->vback_porch.typ - vref_to_sync) << 16) | in update_display_mode() 67 timing->hback_porch.typ, &disp_ctrl->disp.back_porch); in update_display_mode() [all …]
|
/external/python/cpython3/Lib/ |
D | imaplib.py | 359 typ, dat = self._untagged_response('OK', [None], name) 361 return typ, dat 362 typ, dat = self.noop() # Prod server for response 363 return self._untagged_response(typ, dat, name) 428 typ, dat = self._simple_command('AUTHENTICATE', mech) 429 if typ != 'OK': 432 return typ, dat 440 typ, dat = self._simple_command(name) 441 return self._untagged_response(typ, dat, name) 461 typ, dat = self._simple_command('CLOSE') [all …]
|
/external/python/cpython2/Lib/ |
D | imaplib.py | 203 typ, dat = self.capability() 299 typ, dat = self._untagged_response('OK', [None], name) 301 return typ, dat 302 typ, dat = self.noop() # Prod server for response 303 return self._untagged_response(typ, dat, name) 365 typ, dat = self._simple_command('AUTHENTICATE', mech) 366 if typ != 'OK': 369 return typ, dat 377 typ, dat = self._simple_command(name) 378 return self._untagged_response(typ, dat, name) [all …]
|
/external/syzkaller/pkg/config/ |
D | config.go | 49 func checkUnknownFields(data []byte, typ reflect.Type) error { 50 if typ.Kind() != reflect.Ptr || typ.Elem().Kind() != reflect.Struct { 53 return checkUnknownFieldsRec(data, "", typ) 56 func checkUnknownFieldsRec(data []byte, prefix string, typ reflect.Type) error { 57 if typ.Kind() == reflect.Ptr { 58 typ = typ.Elem() 60 if typ.Kind() != reflect.Struct { 64 for i := 0; i < typ.NumField(); i++ { 65 field := typ.Field(i) 109 func checkUnknownFieldsStruct(val interface{}, prefix string, typ reflect.Type) error { [all …]
|
/external/compiler-rt/lib/tsan/rtl/ |
D | tsan_suppressions.cc | 68 static const char *conv(ReportType typ) { in conv() argument 69 if (typ == ReportTypeRace) in conv() 71 else if (typ == ReportTypeVptrRace) in conv() 73 else if (typ == ReportTypeUseAfterFree) in conv() 75 else if (typ == ReportTypeVptrUseAfterFree) in conv() 77 else if (typ == ReportTypeThreadLeak) in conv() 79 else if (typ == ReportTypeMutexDestroyLocked) in conv() 81 else if (typ == ReportTypeMutexDoubleLock) in conv() 83 else if (typ == ReportTypeMutexInvalidAccess) in conv() 85 else if (typ == ReportTypeMutexBadUnlock) in conv() [all …]
|
D | tsan_debugging.cc | 20 static const char *ReportTypeDescription(ReportType typ) { in ReportTypeDescription() argument 21 if (typ == ReportTypeRace) return "data-race"; in ReportTypeDescription() 22 if (typ == ReportTypeVptrRace) return "data-race-vptr"; in ReportTypeDescription() 23 if (typ == ReportTypeUseAfterFree) return "heap-use-after-free"; in ReportTypeDescription() 24 if (typ == ReportTypeVptrUseAfterFree) return "heap-use-after-free-vptr"; in ReportTypeDescription() 25 if (typ == ReportTypeThreadLeak) return "thread-leak"; in ReportTypeDescription() 26 if (typ == ReportTypeMutexDestroyLocked) return "locked-mutex-destroy"; in ReportTypeDescription() 27 if (typ == ReportTypeMutexDoubleLock) return "mutex-double-lock"; in ReportTypeDescription() 28 if (typ == ReportTypeMutexInvalidAccess) return "mutex-invalid-access"; in ReportTypeDescription() 29 if (typ == ReportTypeMutexBadUnlock) return "mutex-bad-unlock"; in ReportTypeDescription() [all …]
|
/external/u-boot/drivers/video/sunxi/ |
D | lcdc.c | 20 delay = mode->vfront_porch.typ + mode->vsync_len.typ + in lcdc_get_clk_delay() 21 mode->vback_porch.typ; in lcdc_get_clk_delay() 90 writel(SUNXI_LCDC_X(mode->hactive.typ) | in lcdc_tcon0_mode_set() 91 SUNXI_LCDC_Y(mode->vactive.typ), &lcdc->tcon0_timing_active); in lcdc_tcon0_mode_set() 93 bp = mode->hsync_len.typ + mode->hback_porch.typ; in lcdc_tcon0_mode_set() 94 total = mode->hactive.typ + mode->hfront_porch.typ + bp; in lcdc_tcon0_mode_set() 98 bp = mode->vsync_len.typ + mode->vback_porch.typ; in lcdc_tcon0_mode_set() 99 total = mode->vactive.typ + mode->vfront_porch.typ + bp; in lcdc_tcon0_mode_set() 104 writel(SUNXI_LCDC_X(mode->hsync_len.typ) | in lcdc_tcon0_mode_set() 105 SUNXI_LCDC_Y(mode->vsync_len.typ), &lcdc->tcon0_timing_sync); in lcdc_tcon0_mode_set() [all …]
|
/external/python/cpython2/Lib/ctypes/ |
D | _endian.py | 6 def _other_endian(typ): argument 13 if hasattr(typ, _OTHER_ENDIAN): 14 return getattr(typ, _OTHER_ENDIAN) 16 if isinstance(typ, _array_type): 17 return _other_endian(typ._type_) * typ._length_ 19 if issubclass(typ, Structure): 20 return typ 21 raise TypeError("This type does not support other endian: %s" % typ) 29 typ = desc[1] 31 fields.append((name, _other_endian(typ)) + rest)
|
/external/python/cpython3/Lib/ctypes/ |
D | _endian.py | 6 def _other_endian(typ): argument 13 if hasattr(typ, _OTHER_ENDIAN): 14 return getattr(typ, _OTHER_ENDIAN) 16 if isinstance(typ, _array_type): 17 return _other_endian(typ._type_) * typ._length_ 19 if issubclass(typ, Structure): 20 return typ 21 raise TypeError("This type does not support other endian: %s" % typ) 29 typ = desc[1] 31 fields.append((name, _other_endian(typ)) + rest)
|
/external/harfbuzz_ng/src/ |
D | gen-emoji-table.py | 20 rang, typ = [s.strip() for s in line.split('#')[0].split(';')[:2]] variable 28 if typ not in ranges: 29 ranges[typ] = [] 30 if ranges[typ] and ranges[typ][-1][1] == start - 1: 31 ranges[typ][-1] = (ranges[typ][-1][0], end) 33 ranges[typ].append((start, end)) 55 for typ,s in ranges.items(): 56 if typ != "Extended_Pictographic": continue 58 print("static const struct hb_unicode_range_t _hb_unicode_emoji_%s_table[] =" % typ)
|
/external/python/cpython3/Lib/test/test_email/ |
D | test_generator.py | 87 msg = self.msgmaker(self.typ(self.refold_long_expected[0])) 91 self.assertEqual(s.getvalue(), self.typ(self.refold_long_expected[n])) 94 msg = self.msgmaker(self.typ(self.refold_long_expected[0])) 98 self.assertEqual(s.getvalue(), self.typ(self.refold_long_expected[n])) 101 msg = self.msgmaker(self.typ(self.refold_long_expected[0])) 106 self.assertEqual(s.getvalue(), self.typ(self.refold_long_expected[n])) 109 msg = self.msgmaker(self.typ(self.refold_long_expected[0])) 114 self.assertEqual(s.getvalue(), self.typ(self.refold_long_expected[0])) 117 msg = self.msgmaker(self.typ(self.refold_long_expected[0])) 122 self.assertEqual(s.getvalue(), self.typ(self.refold_all_expected[n])) [all …]
|
/external/u-boot/drivers/video/ |
D | atmel_lcdfb.c | 134 value = (timing->hactive.typ * timing->vactive.typ * in atmel_fb_init() 140 value = get_lcdc_clk_rate(0) / timing->pixelclock.typ; in atmel_fb_init() 141 if (get_lcdc_clk_rate(0) % timing->pixelclock.typ) in atmel_fb_init() 164 value = (timing->vsync_len.typ - 1) << ATMEL_LCDC_VPW_OFFSET; in atmel_fb_init() 165 value |= timing->vback_porch.typ << ATMEL_LCDC_VBP_OFFSET; in atmel_fb_init() 166 value |= timing->vfront_porch.typ; in atmel_fb_init() 172 value = (timing->hfront_porch.typ - 1) << ATMEL_LCDC_HFP_OFFSET; in atmel_fb_init() 173 value |= (timing->hsync_len.typ - 1) << ATMEL_LCDC_HPW_OFFSET; in atmel_fb_init() 174 value |= (timing->hback_porch.typ - 1); in atmel_fb_init() 178 value = (timing->hactive.typ - 1) << ATMEL_LCDC_HOZVAL_OFFSET; in atmel_fb_init() [all …]
|
/external/python/cpython2/Mac/Modules/carbonevt/ |
D | CarbonEvtsupport.py | 10 for typ in RefObjectTypes: 11 execstr = "%(name)s = OpaqueByValueType('%(name)s')" % {"name": typ} 25 for typ in StructObjectTypes: 26 execstr = "%(name)s = OpaqueType('%(name)s')" % {"name": typ} 202 for typ in RefObjectTypes: 203 if typ == 'EventHandlerRef': 206 execstr = typ + 'object = MyGlobalObjectDefinition(typ)' 208 module.addobject(eval(typ + 'object')) 212 for typ in RefObjectTypes: ## go thru all ObjectTypes as defined in CarbonEventsscan.py 214 execstr = typ + 'methods = []' [all …]
|
/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ |
D | APIInfo.java | 150 public int getVal(int typ) { in getVal() argument 151 validateType(typ); in getVal() 152 if (typ >= shifts.length) { in getVal() 155 return (info >>> shifts[typ]) & masks[typ]; in getVal() 165 public String get(int typ, boolean brief) { in get() argument 166 validateType(typ); in get() 167 String[] vals = brief ? shortNames[typ] : names[typ]; in get() 169 switch (typ) { in get() 177 int val = (info >>> shifts[typ]) & masks[typ]; in get() 186 public void setType(int typ, int val) { in setType() argument [all …]
|
/external/python/cpython2/Lib/ctypes/test/ |
D | test_unaligned_structures.py | 13 for typ in [c_short, c_int, c_long, c_longlong, 19 ("value", typ)] 23 ("value", typ)] 29 for typ in structures: 31 self.assertEqual(typ.value.offset, 1) 32 o = typ() 37 for typ in byteswapped_structures: 39 self.assertEqual(typ.value.offset, 1) 40 o = typ()
|
/external/python/cpython3/Lib/ctypes/test/ |
D | test_unaligned_structures.py | 13 for typ in [c_short, c_int, c_long, c_longlong, 19 ("value", typ)] 23 ("value", typ)] 29 for typ in structures: 31 self.assertEqual(typ.value.offset, 1) 32 o = typ() 37 for typ in byteswapped_structures: 39 self.assertEqual(typ.value.offset, 1) 40 o = typ()
|