/openbmc/linux/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-debug.h | 43 #define __IWL_ERR_DEV(d, mode, f, a...) \ argument 46 __iwl_err((d), mode, f, ## a); \ 48 #define IWL_ERR_DEV(d, f, a...) \ argument 49 __IWL_ERR_DEV(d, IWL_ERR_MODE_REGULAR, f, ## a) 50 #define IWL_ERR(m, f, a...) \ argument 51 IWL_ERR_DEV((m)->dev, f, ## a) 52 #define IWL_ERR_LIMIT(m, f, a...) \ argument 53 __IWL_ERR_DEV((m)->dev, IWL_ERR_MODE_RATELIMIT, f, ## a) 54 #define IWL_WARN(m, f, a...) \ argument 57 __iwl_warn((m)->dev, f, ## a); \ [all …]
|
/openbmc/qemu/target/openrisc/ |
H A D | insns.decode | 16 # You should have received a copy of the GNU Lesser General Public 20 &dab d a b 21 &da d a 22 &ab a b 23 &dal d a l 24 &ai a i 25 &dab_pair d a b dp ap bp 26 &ab_pair a b ap bp 27 &da_pair d a dp ap 57 &load d a i [all …]
|
/openbmc/u-boot/lib/zlib/ |
H A D | adler32.c | 23 # define MOD(a) \ argument 25 if (a >= (BASE << 16)) a -= (BASE << 16); \ 26 if (a >= (BASE << 15)) a -= (BASE << 15); \ 27 if (a >= (BASE << 14)) a -= (BASE << 14); \ 28 if (a >= (BASE << 13)) a -= (BASE << 13); \ 29 if (a >= (BASE << 12)) a -= (BASE << 12); \ 30 if (a >= (BASE << 11)) a -= (BASE << 11); \ 31 if (a >= (BASE << 10)) a -= (BASE << 10); \ 32 if (a >= (BASE << 9)) a -= (BASE << 9); \ 33 if (a >= (BASE << 8)) a -= (BASE << 8); \ [all …]
|
/openbmc/qemu/target/arm/tcg/ |
H A D | translate-mve.c | 144 static bool do_ldst(DisasContext *s, arg_VLDR_VSTR *a, MVEGenLdStFn *fn, in do_ldst() argument 152 !mve_check_qreg_bank(s, a->qd) || in do_ldst() 158 if (a->rn == 15 || (a->rn == 13 && a->w)) { in do_ldst() 166 offset = a->imm << msize; in do_ldst() 167 if (!a->a) { in do_ldst() 170 addr = load_reg(s, a->rn); in do_ldst() 171 if (a->p) { in do_ldst() 175 qreg = mve_qreg_ptr(a->qd); in do_ldst() 182 if (a->w) { in do_ldst() 183 if (!a->p) { in do_ldst() [all …]
|
H A D | translate-sve.c | 141 arg_rr_esz *a, int data) in gen_gvec_fpst_arg_zz() argument 143 return gen_gvec_fpst_zz(s, fn, a->rd, a->rn, data, in gen_gvec_fpst_arg_zz() 144 a->esz == MO_16 ? FPST_FPCR_F16 : FPST_FPCR); in gen_gvec_fpst_arg_zz() 165 arg_rrr_esz *a, int data) in gen_gvec_ool_arg_zzz() argument 167 return gen_gvec_ool_zzz(s, fn, a->rd, a->rn, a->rm, data); in gen_gvec_ool_arg_zzz() 191 arg_rrr_esz *a, int data) in gen_gvec_fpst_arg_zzz() argument 193 return gen_gvec_fpst_zzz(s, fn, a->rd, a->rn, a->rm, data, in gen_gvec_fpst_arg_zzz() 194 a->esz == MO_16 ? FPST_FPCR_F16 : FPST_FPCR); in gen_gvec_fpst_arg_zzz() 216 arg_rrrr_esz *a, int data) in gen_gvec_ool_arg_zzzz() argument 218 return gen_gvec_ool_zzzz(s, fn, a->rd, a->rn, a->rm, a->ra, data); in gen_gvec_ool_arg_zzzz() [all …]
|
H A D | iwmmxt_helper.c | 49 #define EXTEND8H(a) ((uint16_t) (int8_t) (a)) argument 50 #define EXTEND8(a) ((uint32_t) (int8_t) (a)) argument 51 #define EXTEND16(a) ((uint32_t) (int16_t) (a)) argument 52 #define EXTEND16S(a) ((int32_t) (int16_t) (a)) argument 53 #define EXTEND32(a) ((uint64_t) (int32_t) (a)) argument 55 uint64_t HELPER(iwmmxt_maddsq)(uint64_t a, uint64_t b) in HELPER() 57 a = (( in HELPER() 58 EXTEND16S((a >> 0) & 0xffff) * EXTEND16S((b >> 0) & 0xffff) + in HELPER() 59 EXTEND16S((a >> 16) & 0xffff) * EXTEND16S((b >> 16) & 0xffff) in HELPER() 61 EXTEND16S((a >> 32) & 0xffff) * EXTEND16S((b >> 32) & 0xffff) + in HELPER() [all …]
|
H A D | translate-vfp.c | 306 static bool trans_VSEL(DisasContext *s, arg_VSEL *a) in trans_VSEL() argument 309 int sz = a->sz; in trans_VSEL() 325 ((a->vm | a->vn | a->vd) & 0x10)) { in trans_VSEL() 329 rd = a->vd; in trans_VSEL() 330 rn = a->vn; in trans_VSEL() 331 rm = a->vm; in trans_VSEL() 357 switch (a->cc) { in trans_VSEL() 388 switch (a->cc) { in trans_VSEL() 429 static bool trans_VRINT(DisasContext *s, arg_VRINT *a) in trans_VRINT() argument 432 int sz = a->sz; in trans_VRINT() [all …]
|
/openbmc/linux/drivers/scsi/esas2r/ |
H A D | esas2r_disc.c | 48 static void esas2r_disc_abort(struct esas2r_adapter *a, 50 static bool esas2r_disc_continue(struct esas2r_adapter *a, 52 static void esas2r_disc_fix_curr_requests(struct esas2r_adapter *a); 54 static bool esas2r_disc_start_request(struct esas2r_adapter *a, 58 static bool esas2r_disc_block_dev_scan(struct esas2r_adapter *a, 60 static void esas2r_disc_block_dev_scan_cb(struct esas2r_adapter *a, 62 static bool esas2r_disc_dev_add(struct esas2r_adapter *a, 64 static bool esas2r_disc_dev_remove(struct esas2r_adapter *a, 66 static bool esas2r_disc_part_info(struct esas2r_adapter *a, 68 static void esas2r_disc_part_info_cb(struct esas2r_adapter *a, [all …]
|
H A D | esas2r_ioctl.c | 68 struct esas2r_adapter *a; member 82 static void complete_fm_api_req(struct esas2r_adapter *a, in complete_fm_api_req() argument 85 a->fm_api_command_done = 1; in complete_fm_api_req() 86 wake_up_interruptible(&a->fm_api_waiter); in complete_fm_api_req() 92 struct esas2r_adapter *a = (struct esas2r_adapter *)sgc->adapter; in get_physaddr_fm_api() local 93 int offset = sgc->cur_offset - a->save_offset; in get_physaddr_fm_api() 95 (*addr) = a->firmware.phys + offset; in get_physaddr_fm_api() 96 return a->firmware.orig_len - offset; in get_physaddr_fm_api() 101 struct esas2r_adapter *a = (struct esas2r_adapter *)sgc->adapter; in get_physaddr_fm_api_header() local 102 int offset = sgc->cur_offset - a->save_offset; in get_physaddr_fm_api_header() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/include/nvhw/class/ |
H A D | cl907d.h | 72 #define NV907D_DAC_SET_CONTROL(a) (0x00000180 + (a)*0… argument 83 #define NV907D_SOR_SET_CONTROL(a) (0x00000200 + (a)*0… argument 106 #define NV907D_HEAD_SET_CONTROL_OUTPUT_RESOURCE(a) (0x00000404 + (a)*0… argument 128 #define NV907D_HEAD_SET_CONTROL(a) (0x00000408 + (a)*0… argument 132 #define NV907D_HEAD_SET_OVERSCAN_COLOR(a) (0x00000410 + (a)*0… argument 136 #define NV907D_HEAD_SET_RASTER_SIZE(a) (0x00000414 + (a)*0… argument 139 #define NV907D_HEAD_SET_RASTER_SYNC_END(a) (0x00000418 + (a)*0… argument 142 #define NV907D_HEAD_SET_RASTER_BLANK_END(a) (0x0000041C + (a)*0… argument 145 #define NV907D_HEAD_SET_RASTER_BLANK_START(a) (0x00000420 + (a)*0… argument 148 #define NV907D_HEAD_SET_RASTER_VERT_BLANK2(a) (0x00000424 + (a)*0… argument [all …]
|
H A D | cl507d.h | 88 #define NV507D_DAC_SET_CONTROL(a) (0x00000400 + (a)*0… argument 122 #define NV507D_DAC_SET_POLARITY(a) (0x00000404 + (a)*0… argument 131 #define NV507D_SOR_SET_CONTROL(a) (0x00000600 + (a)*0… argument 160 #define NV507D_PIOR_SET_CONTROL(a) (0x00000700 + (a)*0… argument 183 #define NV507D_HEAD_SET_PIXEL_CLOCK(a) (0x00000804 + (a)*0… argument 195 #define NV507D_HEAD_SET_CONTROL(a) (0x00000808 + (a)*0… argument 199 #define NV507D_HEAD_SET_OVERSCAN_COLOR(a) (0x00000810 + (a)*0… argument 203 #define NV507D_HEAD_SET_RASTER_SIZE(a) (0x00000814 + (a)*0… argument 206 #define NV507D_HEAD_SET_RASTER_SYNC_END(a) (0x00000818 + (a)*0… argument 209 #define NV507D_HEAD_SET_RASTER_BLANK_END(a) (0x0000081C + (a)*0… argument [all …]
|
/openbmc/linux/Documentation/mm/ |
H A D | arch_pgtable_helpers.rst | 9 These page table helpers need to conform to a common semantics across platforms. 21 | pte_bad | Tests a non-table mapped PTE | 23 | pte_present | Tests a valid mapped PTE | 25 | pte_young | Tests a young PTE | 27 | pte_dirty | Tests a dirty PTE | 29 | pte_write | Tests a writable PTE | 31 | pte_special | Tests a special PTE | 33 | pte_protnone | Tests a PROT_NONE PTE | 35 | pte_devmap | Tests a ZONE_DEVICE mapped PTE | 37 | pte_soft_dirty | Tests a soft dirty PTE | [all …]
|
/openbmc/linux/kernel/bpf/ |
H A D | tnum.c | 37 struct tnum tnum_lshift(struct tnum a, u8 shift) in tnum_lshift() argument 39 return TNUM(a.value << shift, a.mask << shift); in tnum_lshift() 42 struct tnum tnum_rshift(struct tnum a, u8 shift) in tnum_rshift() argument 44 return TNUM(a.value >> shift, a.mask >> shift); in tnum_rshift() 47 struct tnum tnum_arshift(struct tnum a, u8 min_shift, u8 insn_bitness) in tnum_arshift() argument 55 return TNUM((u32)(((s32)a.value) >> min_shift), in tnum_arshift() 56 (u32)(((s32)a.mask) >> min_shift)); in tnum_arshift() 58 return TNUM((s64)a.value >> min_shift, in tnum_arshift() 59 (s64)a.mask >> min_shift); in tnum_arshift() 62 struct tnum tnum_add(struct tnum a, struct tnum b) in tnum_add() argument [all …]
|
/openbmc/u-boot/drivers/net/ |
H A D | smc91111.h | 71 #define SMC_inl(a,r) (*((volatile dword *)((a)->iobase+((r)<<1)))) argument 72 #define SMC_inw(a,r) (*((volatile word *)((a)->iobase+((r)<<1)))) argument 73 #define SMC_inb(a,p) ({ \ argument 74 unsigned int __p = (unsigned int)((a)->iobase + ((p)<<1)); \ 80 #define SMC_inl(a,r) (*((volatile dword *)((a)->iobase+(r)))) argument 81 #define SMC_inw(a,r) (*((volatile word *)((a)->iobase+(r)))) argument 82 #define SMC_inb(a,p) ({ \ argument 83 unsigned int __p = (unsigned int)((a)->iobase + (p)); \ 91 #define SMC_outl(a,d,r) (*((volatile dword *)((a)->iobase+(r<<1))) = d) argument 92 #define SMC_outw(a,d,r) (*((volatile word *)((a)->iobase+(r<<1))) = d) argument [all …]
|
/openbmc/linux/net/ceph/crush/ |
H A D | hash.c | 13 #define crush_hashmix(a, b, c) do { \ argument 14 a = a-b; a = a-c; a = a^(c>>13); \ 15 b = b-c; b = b-a; b = b^(a<<8); \ 16 c = c-a; c = c-b; c = c^(b>>13); \ 17 a = a-b; a = a-c; a = a^(c>>12); \ 18 b = b-c; b = b-a; b = b^(a<<16); \ 19 c = c-a; c = c-b; c = c^(b>>5); \ 20 a = a-b; a = a-c; a = a^(c>>3); \ 21 b = b-c; b = b-a; b = b^(a<<10); \ 22 c = c-a; c = c-b; c = c^(b>>15); \ [all …]
|
/openbmc/linux/lib/crypto/mpi/ |
H A D | mpiutil.c | 89 MPI a; in mpi_alloc() local 91 a = kmalloc(sizeof *a, GFP_KERNEL); in mpi_alloc() 92 if (!a) in mpi_alloc() 93 return a; in mpi_alloc() 96 a->d = mpi_alloc_limb_space(nlimbs); in mpi_alloc() 97 if (!a->d) { in mpi_alloc() 98 kfree(a); in mpi_alloc() 102 a->d = NULL; in mpi_alloc() 105 a->alloced = nlimbs; in mpi_alloc() 106 a->nlimbs = 0; in mpi_alloc() [all …]
|
H A D | mpi-bit.c | 30 void mpi_normalize(MPI a) in mpi_normalize() argument 32 for (; a->nlimbs && !a->d[a->nlimbs - 1]; a->nlimbs--) in mpi_normalize() 40 unsigned mpi_get_nbits(MPI a) in mpi_get_nbits() argument 44 mpi_normalize(a); in mpi_get_nbits() 46 if (a->nlimbs) { in mpi_get_nbits() 47 mpi_limb_t alimb = a->d[a->nlimbs - 1]; in mpi_get_nbits() 52 n = BITS_PER_MPI_LIMB - n + (a->nlimbs - 1) * BITS_PER_MPI_LIMB; in mpi_get_nbits() 62 int mpi_test_bit(MPI a, unsigned int n) in mpi_test_bit() argument 70 if (limbno >= a->nlimbs) in mpi_test_bit() 72 limb = a->d[limbno]; in mpi_test_bit() [all …]
|
/openbmc/qemu/include/fpu/ |
H A D | softfloat.h | 113 float16 float16_squash_input_denormal(float16 a, float_status *status); 114 float32 float32_squash_input_denormal(float32 a, float_status *status); 115 float64 float64_squash_input_denormal(float64 a, float_status *status); 116 bfloat16 bfloat16_squash_input_denormal(bfloat16 a, float_status *status); 137 float16 int16_to_float16_scalbn(int16_t a, int, float_status *status); 138 float16 int32_to_float16_scalbn(int32_t a, int, float_status *status); 139 float16 int64_to_float16_scalbn(int64_t a, int, float_status *status); 140 float16 uint16_to_float16_scalbn(uint16_t a, int, float_status *status); 141 float16 uint32_to_float16_scalbn(uint32_t a, int, float_status *status); 142 float16 uint64_to_float16_scalbn(uint64_t a, int, float_status *status); [all …]
|
/openbmc/qemu/target/riscv/insn_trans/ |
H A D | trans_rvzfh.c.inc | 15 * You should have received a copy of the GNU General Public License along with 43 static bool trans_flh(DisasContext *ctx, arg_flh *a) 52 t0 = get_gpr(ctx, a->rs1, EXT_NONE); 53 if (a->imm) { 55 tcg_gen_addi_tl(temp, t0, a->imm); 59 dest = cpu_fpr[a->rd]; 67 static bool trans_fsh(DisasContext *ctx, arg_fsh *a) 75 t0 = get_gpr(ctx, a->rs1, EXT_NONE); 76 if (a->imm) { 78 tcg_gen_addi_tl(temp, t0, a->imm); [all …]
|
/openbmc/qemu/target/mips/tcg/ |
H A D | octeon_translate.c | 16 static bool trans_BBIT(DisasContext *ctx, arg_BBIT *a) in trans_BBIT() argument 29 gen_load_gpr(t0, a->rs); in trans_BBIT() 31 p = tcg_constant_tl(1ULL << a->p); in trans_BBIT() 32 if (a->set) { in trans_BBIT() 39 ctx->btarget = ctx->base.pc_next + 4 + a->offset * 4; in trans_BBIT() 44 static bool trans_BADDU(DisasContext *ctx, arg_BADDU *a) in trans_BADDU() argument 48 if (a->rt == 0) { in trans_BADDU() 55 gen_load_gpr(t0, a->rs); in trans_BADDU() 56 gen_load_gpr(t1, a->rt); in trans_BADDU() 59 tcg_gen_andi_i64(cpu_gpr[a->rd], t0, 0xff); in trans_BADDU() [all …]
|
/openbmc/qemu/target/loongarch/ |
H A D | vec.h | 33 #define DO_ADD(a, b) (a + b) argument 34 #define DO_SUB(a, b) (a - b) argument 35 #define DO_VAVG(a, b) ((a >> 1) + (b >> 1) + (a & b & 1)) argument 36 #define DO_VAVGR(a, b) ((a >> 1) + (b >> 1) + ((a | b) & 1)) argument 37 #define DO_VABSD(a, b) ((a > b) ? (a -b) : (b-a)) argument 38 #define DO_VABS(a) ((a < 0) ? (-a) : (a)) argument 39 #define DO_MIN(a, b) (a < b ? a : b) argument 40 #define DO_MAX(a, b) (a > b ? a : b) argument 41 #define DO_MUL(a, b) (a * b) argument 42 #define DO_MADD(a, b, c) (a + b * c) argument [all …]
|
/openbmc/qemu/target/ppc/translate/ |
H A D | fixedpoint-impl.c.inc | 16 * You should have received a copy of the GNU Lesser General Public 48 static bool do_ldst_D(DisasContext *ctx, arg_D *a, bool update, bool store, 51 return do_ldst(ctx, a->rt, a->ra, tcg_constant_tl(a->si), update, store, mop); 54 static bool do_ldst_PLS_D(DisasContext *ctx, arg_PLS_D *a, bool update, 58 if (!resolve_PLS_D(ctx, &d, a)) { 64 static bool do_ldst_X(DisasContext *ctx, arg_X *a, bool update, 67 return do_ldst(ctx, a->rt, a->ra, cpu_gpr[a->rb], update, store, mop); 70 static bool do_ldst_quad(DisasContext *ctx, arg_D *a, bool store, bool prefixed) 89 if (!store && unlikely(a->ra == a->rt)) { 95 ea = do_ea_calc(ctx, a->ra, tcg_constant_tl(a->si)); [all …]
|
/openbmc/linux/tools/include/linux/ |
H A D | jhash.h | 35 #define __jhash_mix(a, b, c) \ argument 37 a -= c; a ^= rol32(c, 4); c += b; \ 38 b -= a; b ^= rol32(a, 6); a += c; \ 39 c -= b; c ^= rol32(b, 8); b += a; \ 40 a -= c; a ^= rol32(c, 16); c += b; \ 41 b -= a; b ^= rol32(a, 19); a += c; \ 42 c -= b; c ^= rol32(b, 4); b += a; \ 46 #define __jhash_final(a, b, c) \ argument 49 a ^= c; a -= rol32(c, 11); \ 50 b ^= a; b -= rol32(a, 25); \ [all …]
|
/openbmc/linux/net/ceph/ |
H A D | ceph_hash.c | 10 #define mix(a, b, c) \ argument 12 a = a - b; a = a - c; a = a ^ (c >> 13); \ 13 b = b - c; b = b - a; b = b ^ (a << 8); \ 14 c = c - a; c = c - b; c = c ^ (b >> 13); \ 15 a = a - b; a = a - c; a = a ^ (c >> 12); \ 16 b = b - c; b = b - a; b = b ^ (a << 16); \ 17 c = c - a; c = c - b; c = c ^ (b >> 5); \ 18 a = a - b; a = a - c; a = a ^ (c >> 3); \ 19 b = b - c; b = b - a; b = b ^ (a << 10); \ 20 c = c - a; c = c - b; c = c ^ (b >> 15); \ [all …]
|
/openbmc/linux/lib/crypto/ |
H A D | des.c | 609 #define DES_PC2(a, b, c, d) (T4(d) | T3(c) | T2(b) | T1(a)) argument 626 unsigned long a, b, c, d, w; in des_ekey() local 632 a = k[7]; a &= 0x0e; a <<= 4; a |= k[3] & 0x1e; a = pc1[a]; in des_ekey() 634 pe[15 * 2 + 0] = DES_PC2(a, b, c, d); d = rs[d]; in des_ekey() 635 pe[14 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey() 636 pe[13 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey() 637 pe[12 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey() 638 pe[11 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey() 639 pe[10 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey() 640 pe[ 9 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey() [all …]
|