Home
last modified time | relevance | path

Searched refs:NN_REG_TYPE (Results 1 – 2 of 2) sorted by relevance

/drivers/net/ethernet/netronome/nfp/
Dnfp_bpf.h68 #define NN_REG_TYPE GENMASK(31, 24) macro
82 #define reg_both(x) ((x) | FIELD_PREP(NN_REG_TYPE, NN_REG_GPR_BOTH))
83 #define reg_a(x) ((x) | FIELD_PREP(NN_REG_TYPE, NN_REG_GPR_A))
84 #define reg_b(x) ((x) | FIELD_PREP(NN_REG_TYPE, NN_REG_GPR_B))
85 #define reg_nnr(x) ((x) | FIELD_PREP(NN_REG_TYPE, NN_REG_NNR))
86 #define reg_xfer(x) ((x) | FIELD_PREP(NN_REG_TYPE, NN_REG_XFER))
87 #define reg_imm(x) ((x) | FIELD_PREP(NN_REG_TYPE, NN_REG_IMM))
88 #define reg_none() (FIELD_PREP(NN_REG_TYPE, NN_REG_NONE))
Dnfp_bpf_jit.c135 switch (FIELD_GET(NN_REG_TYPE, swreg)) { in nfp_swreg_to_unreg()
164 if (FIELD_GET(NN_REG_TYPE, dst) == NN_REG_IMM) in swreg_to_unrestricted()
167 if (FIELD_GET(NN_REG_TYPE, dst) == NN_REG_GPR_B) in swreg_to_unrestricted()
169 if (FIELD_GET(NN_REG_TYPE, dst) == NN_REG_GPR_BOTH) in swreg_to_unrestricted()
174 if (FIELD_GET(NN_REG_TYPE, lreg) == FIELD_GET(NN_REG_TYPE, rreg)) in swreg_to_unrestricted()
177 if (FIELD_GET(NN_REG_TYPE, lreg) == NN_REG_GPR_B || in swreg_to_unrestricted()
178 FIELD_GET(NN_REG_TYPE, rreg) == NN_REG_GPR_A) { in swreg_to_unrestricted()
194 switch (FIELD_GET(NN_REG_TYPE, swreg)) { in nfp_swreg_to_rereg()
223 if (FIELD_GET(NN_REG_TYPE, dst) == NN_REG_IMM) in swreg_to_restricted()
226 if (FIELD_GET(NN_REG_TYPE, dst) == NN_REG_GPR_B) in swreg_to_restricted()
[all …]