Lines Matching refs:typ
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 {
241 for i, v := range typ.Vals {
247 for i, v := range typ.Vals {
275 typ, id, aux := decodeFallbackSignal(s)
276 switch typ {
282 panic(fmt.Sprintf("bad fallback signal type %v", typ))
286 func encodeFallbackSignal(typ, id, aux int) uint32 { argument
287 if typ & ^7 != 0 {
288 panic(fmt.Sprintf("bad fallback signal type %v", typ))
293 return uint32(typ) | uint32(id&fallbackCallMask)<<3 | uint32(aux)<<16
296 func decodeFallbackSignal(s uint32) (typ, id, aux int) {