• Home
  • Raw
  • Download

Lines Matching refs:arg

77 static inline u32 build_rs(u32 arg)  in build_rs()  argument
79 WARN(arg & ~RS_MASK, KERN_WARNING "Micro-assembler field overflow\n"); in build_rs()
81 return (arg & RS_MASK) << RS_SH; in build_rs()
84 static inline u32 build_rt(u32 arg) in build_rt() argument
86 WARN(arg & ~RT_MASK, KERN_WARNING "Micro-assembler field overflow\n"); in build_rt()
88 return (arg & RT_MASK) << RT_SH; in build_rt()
91 static inline u32 build_rd(u32 arg) in build_rd() argument
93 WARN(arg & ~RD_MASK, KERN_WARNING "Micro-assembler field overflow\n"); in build_rd()
95 return (arg & RD_MASK) << RD_SH; in build_rd()
98 static inline u32 build_re(u32 arg) in build_re() argument
100 WARN(arg & ~RE_MASK, KERN_WARNING "Micro-assembler field overflow\n"); in build_re()
102 return (arg & RE_MASK) << RE_SH; in build_re()
105 static inline u32 build_simm(s32 arg) in build_simm() argument
107 WARN(arg > 0x7fff || arg < -0x8000, in build_simm()
110 return arg & 0xffff; in build_simm()
113 static inline u32 build_uimm(u32 arg) in build_uimm() argument
115 WARN(arg & ~IMM_MASK, KERN_WARNING "Micro-assembler field overflow\n"); in build_uimm()
117 return arg & IMM_MASK; in build_uimm()
120 static inline u32 build_scimm(u32 arg) in build_scimm() argument
122 WARN(arg & ~SCIMM_MASK, in build_scimm()
125 return (arg & SCIMM_MASK) << SCIMM_SH; in build_scimm()
128 static inline u32 build_scimm9(s32 arg) in build_scimm9() argument
130 WARN((arg > 0xff || arg < -0x100), in build_scimm9()
133 return (arg & SIMM9_MASK) << SIMM9_SH; in build_scimm9()
136 static inline u32 build_func(u32 arg) in build_func() argument
138 WARN(arg & ~FUNC_MASK, KERN_WARNING "Micro-assembler field overflow\n"); in build_func()
140 return arg & FUNC_MASK; in build_func()
143 static inline u32 build_set(u32 arg) in build_set() argument
145 WARN(arg & ~SET_MASK, KERN_WARNING "Micro-assembler field overflow\n"); in build_set()
147 return arg & SET_MASK; in build_set()