Lines Matching refs:shift_amt
1996 static int __shl_imm64(struct nfp_prog *nfp_prog, u8 dst, u8 shift_amt) in __shl_imm64() argument
1998 if (!shift_amt) in __shl_imm64()
2001 if (shift_amt < 32) { in __shl_imm64()
2004 32 - shift_amt); in __shl_imm64()
2006 reg_b(dst), SHF_SC_L_SHF, shift_amt); in __shl_imm64()
2007 } else if (shift_amt == 32) { in __shl_imm64()
2010 } else if (shift_amt > 32) { in __shl_imm64()
2012 reg_b(dst), SHF_SC_L_SHF, shift_amt - 32); in __shl_imm64()
2111 static int __shr_imm64(struct nfp_prog *nfp_prog, u8 dst, u8 shift_amt) in __shr_imm64() argument
2113 if (!shift_amt) in __shr_imm64()
2116 if (shift_amt < 32) { in __shr_imm64()
2118 reg_b(dst), SHF_SC_R_DSHF, shift_amt); in __shr_imm64()
2120 reg_b(dst + 1), SHF_SC_R_SHF, shift_amt); in __shr_imm64()
2121 } else if (shift_amt == 32) { in __shr_imm64()
2124 } else if (shift_amt > 32) { in __shr_imm64()
2126 reg_b(dst + 1), SHF_SC_R_SHF, shift_amt - 32); in __shr_imm64()
2215 static int __ashr_imm64(struct nfp_prog *nfp_prog, u8 dst, u8 shift_amt) in __ashr_imm64() argument
2217 if (!shift_amt) in __ashr_imm64()
2220 if (shift_amt < 32) { in __ashr_imm64()
2222 reg_b(dst), SHF_SC_R_DSHF, shift_amt); in __ashr_imm64()
2227 reg_b(dst + 1), SHF_SC_R_SHF, shift_amt); in __ashr_imm64()
2228 } else if (shift_amt == 32) { in __ashr_imm64()
2233 } else if (shift_amt > 32) { in __ashr_imm64()
2237 reg_b(dst + 1), SHF_SC_R_SHF, shift_amt - 32); in __ashr_imm64()
2428 u8 shift_amt) in __ashr_imm() argument
2430 if (shift_amt) { in __ashr_imm()
2435 reg_b(dst), SHF_SC_R_SHF, shift_amt); in __ashr_imm()
2476 u8 shift_amt) in __shr_imm() argument
2478 if (shift_amt) in __shr_imm()
2480 reg_b(dst), SHF_SC_R_SHF, shift_amt); in __shr_imm()
2515 u8 shift_amt) in __shl_imm() argument
2517 if (shift_amt) in __shl_imm()
2519 reg_b(dst), SHF_SC_L_SHF, shift_amt); in __shl_imm()