/kernel/linux/linux-5.10/arch/arm/net/ |
D | bpf_jit_32.h | 162 #define _AL3_R(op, rd, rn, rm) ((op ## _R) | (rd) << 12 | (rn) << 16 | (rm)) argument 164 #define _AL3_I(op, rd, rn, imm) ((op ## _I) | (rd) << 12 | (rn) << 16 | (imm)) argument 168 #define ARM_ADD_R(rd, rn, rm) _AL3_R(ARM_INST_ADD, rd, rn, rm) argument 169 #define ARM_ADDS_R(rd, rn, rm) _AL3_R(ARM_INST_ADDS, rd, rn, rm) argument 170 #define ARM_ADD_I(rd, rn, imm) _AL3_I(ARM_INST_ADD, rd, rn, imm) argument 171 #define ARM_ADDS_I(rd, rn, imm) _AL3_I(ARM_INST_ADDS, rd, rn, imm) argument 172 #define ARM_ADC_R(rd, rn, rm) _AL3_R(ARM_INST_ADC, rd, rn, rm) argument 173 #define ARM_ADC_I(rd, rn, imm) _AL3_I(ARM_INST_ADC, rd, rn, imm) argument 175 #define ARM_AND_R(rd, rn, rm) _AL3_R(ARM_INST_AND, rd, rn, rm) argument 176 #define ARM_ANDS_R(rd, rn, rm) _AL3_R(ARM_INST_ANDS, rd, rn, rm) argument [all …]
|
D | bpf_jit_32.c | 426 static inline void emit_mov_i_no8m(const u8 rd, u32 val, struct jit_ctx *ctx) in emit_mov_i_no8m() argument 429 emit(ARM_LDR_I(rd, ARM_PC, imm_offset(val, ctx)), ctx); in emit_mov_i_no8m() 431 emit(ARM_MOVW(rd, val & 0xffff), ctx); in emit_mov_i_no8m() 433 emit(ARM_MOVT(rd, val >> 16), ctx); in emit_mov_i_no8m() 437 static inline void emit_mov_i(const u8 rd, u32 val, struct jit_ctx *ctx) in emit_mov_i() argument 442 emit(ARM_MOV_I(rd, imm12), ctx); in emit_mov_i() 444 emit_mov_i_no8m(rd, val, ctx); in emit_mov_i() 477 static inline void emit_udivmod(u8 rd, u8 rm, u8 rn, struct jit_ctx *ctx, u8 op) in emit_udivmod() argument 485 emit(ARM_UDIV(rd, rm, rn), ctx); in emit_udivmod() 488 emit(ARM_MLS(rd, rn, ARM_IP, rm), ctx); in emit_udivmod() [all …]
|
/kernel/linux/linux-5.10/arch/arm/include/debug/ |
D | samsung.S | 12 .macro fifo_level_s5pv210 rd, rx 13 ldr \rd, [\rx, # S3C2410_UFSTAT] 14 ARM_BE8(rev \rd, \rd) 15 and \rd, \rd, #S5PV210_UFSTAT_TXMASK 18 .macro fifo_full_s5pv210 rd, rx 19 ldr \rd, [\rx, # S3C2410_UFSTAT] 20 ARM_BE8(rev \rd, \rd) 21 tst \rd, #S5PV210_UFSTAT_TXFULL 27 .macro fifo_level_s3c2440 rd, rx 28 ldr \rd, [\rx, # S3C2410_UFSTAT] [all …]
|
D | 8250.S | 15 .macro store, rd, rx:vararg 16 ARM_BE8(rev \rd, \rd) 17 str \rd, \rx 18 ARM_BE8(rev \rd, \rd) 21 .macro load, rd, rx:vararg 22 ldr \rd, \rx 23 ARM_BE8(rev \rd, \rd) 26 .macro store, rd, rx:vararg 27 strb \rd, \rx 30 .macro load, rd, rx:vararg [all …]
|
D | msm.S | 14 .macro senduart, rd, rx 15 ARM_BE8(rev \rd, \rd ) 17 str \rd, [\rx, #0x70] 20 .macro waituartcts,rd,rx 23 .macro waituarttxrdy, rd, rx 25 ldr \rd, [\rx, #0x08] 26 ARM_BE8(rev \rd, \rd ) 27 tst \rd, #0x08 30 1001: ldr \rd, [\rx, #0x14] 31 ARM_BE8(rev \rd, \rd ) [all …]
|
D | icedcc.S | 15 .macro senduart, rd, rx 16 mcr p14, 0, \rd, c0, c5, 0 19 .macro busyuart, rd, rx 26 .macro waituartcts, rd, rx 29 .macro waituarttxrdy, rd, rx 30 mov \rd, #0x2000000 32 subs \rd, \rd, #1 42 .macro senduart, rd, rx 43 mcr p14, 0, \rd, c8, c0, 0 46 .macro busyuart, rd, rx [all …]
|
D | pl01x.S | 25 .macro senduart,rd,rx 26 strb \rd, [\rx, #UART01x_DR] 29 .macro waituartcts,rd,rx 32 .macro waituarttxrdy,rd,rx 33 1001: ldr \rd, [\rx, #UART01x_FR] 34 ARM_BE8( rev \rd, \rd ) 35 tst \rd, #UART01x_FR_TXFF 39 .macro busyuart,rd,rx 40 1001: ldr \rd, [\rx, #UART01x_FR] 41 ARM_BE8( rev \rd, \rd ) [all …]
|
D | renesas-scif.S | 36 .macro waituartcts,rd,rx 39 .macro waituarttxrdy, rd, rx 40 1001: ldrh \rd, [\rx, #FSR] 41 tst \rd, #TDFE 45 .macro senduart, rd, rx 46 strb \rd, [\rx, #FTDR] 47 ldrh \rd, [\rx, #FSR] 48 bic \rd, \rd, #TEND 49 strh \rd, [\rx, #FSR] 52 .macro busyuart, rd, rx [all …]
|
D | zynq.S | 32 .macro senduart,rd,rx 33 strb \rd, [\rx, #UART_FIFO_OFFSET] @ TXDATA 36 .macro waituartcts,rd,rx 39 .macro waituarttxrdy,rd,rx 40 1001: ldr \rd, [\rx, #UART_SR_OFFSET] 41 ARM_BE8( rev \rd, \rd ) 42 tst \rd, #UART_SR_TXEMPTY 46 .macro busyuart,rd,rx 47 1002: ldr \rd, [\rx, #UART_SR_OFFSET] @ get status register 48 ARM_BE8( rev \rd, \rd ) [all …]
|
D | imx.S | 33 .macro senduart,rd,rx 34 ARM_BE8(rev \rd, \rd) 35 str \rd, [\rx, #0x40] @ TXDATA 38 .macro waituartcts,rd,rx 41 .macro waituarttxrdy,rd,rx 44 .macro busyuart,rd,rx 45 1002: ldr \rd, [\rx, #0x98] @ SR2 46 ARM_BE8(rev \rd, \rd) 47 tst \rd, #1 << 3 @ TXDC
|
D | omap2plus.S | 63 .macro senduart,rd,rx 64 orr \rd, \rd, \rx, lsl #24 @ preserve LSR reg offset 66 strb \rd, [\rx] @ send lower byte of rd 67 orr \rx, \rx, \rd, lsr #24 @ restore original rx (LSR) 68 bic \rd, \rd, #(0xff << 24) @ restore original rd 71 .macro busyuart,rd,rx 72 1001: ldrb \rd, [\rx] @ rx contains UART_LSR address 73 and \rd, \rd, #(UART_LSR_TEMT | UART_LSR_THRE) 74 teq \rd, #(UART_LSR_TEMT | UART_LSR_THRE) 78 .macro waituartcts,rd,rx [all …]
|
D | bcm63xx.S | 15 .macro senduart, rd, rx 17 strb \rd, [\rx, #UART_FIFO_REG] 20 .macro waituarttxrdy, rd, rx 21 1001: ldr \rd, [\rx, #UART_IR_REG] 22 tst \rd, #(1 << UART_IR_TXEMPTY) 26 .macro waituartcts, rd, rx 29 .macro busyuart, rd, rx 30 1002: ldr \rd, [\rx, #UART_IR_REG] 31 tst \rd, #(1 << UART_IR_TXTRESH)
|
/kernel/linux/linux-5.10/arch/riscv/net/ |
D | bpf_jit.h | 224 static inline u32 rv_r_insn(u8 funct7, u8 rs2, u8 rs1, u8 funct3, u8 rd, in rv_r_insn() argument 228 (rd << 7) | opcode; in rv_r_insn() 231 static inline u32 rv_i_insn(u16 imm11_0, u8 rs1, u8 funct3, u8 rd, u8 opcode) in rv_i_insn() argument 233 return (imm11_0 << 20) | (rs1 << 15) | (funct3 << 12) | (rd << 7) | in rv_i_insn() 254 static inline u32 rv_u_insn(u32 imm31_12, u8 rd, u8 opcode) in rv_u_insn() argument 256 return (imm31_12 << 12) | (rd << 7) | opcode; in rv_u_insn() 259 static inline u32 rv_j_insn(u32 imm20_1, u8 rd, u8 opcode) in rv_j_insn() argument 266 return (imm << 12) | (rd << 7) | opcode; in rv_j_insn() 270 u8 funct3, u8 rd, u8 opcode) in rv_amo_insn() argument 274 return rv_r_insn(funct7, rs2, rs1, funct3, rd, opcode); in rv_amo_insn() [all …]
|
D | bpf_jit_comp64.c | 123 static void emit_imm(u8 rd, s64 val, struct rv_jit_context *ctx) in emit_imm() argument 144 emit_lui(rd, upper, ctx); in emit_imm() 147 emit_li(rd, lower, ctx); in emit_imm() 151 emit_addiw(rd, rd, lower, ctx); in emit_imm() 159 emit_imm(rd, upper, ctx); in emit_imm() 161 emit_slli(rd, rd, shift, ctx); in emit_imm() 163 emit_addi(rd, rd, lower, ctx); in emit_imm() 210 static void emit_bcc(u8 cond, u8 rd, u8 rs, int rvoff, in emit_bcc() argument 215 emit(rv_beq(rd, rs, rvoff >> 1), ctx); in emit_bcc() 218 emit(rv_bltu(rs, rd, rvoff >> 1), ctx); in emit_bcc() [all …]
|
D | bpf_jit_comp32.c | 111 static void emit_imm(const s8 rd, s32 imm, struct rv_jit_context *ctx) in emit_imm() argument 117 emit(rv_lui(rd, upper), ctx); in emit_imm() 118 emit(rv_addi(rd, rd, lower), ctx); in emit_imm() 120 emit(rv_addi(rd, RV_REG_ZERO, lower), ctx); in emit_imm() 124 static void emit_imm32(const s8 *rd, s32 imm, struct rv_jit_context *ctx) in emit_imm32() argument 127 emit_imm(lo(rd), imm, ctx); in emit_imm32() 131 emit(rv_addi(hi(rd), RV_REG_ZERO, 0), ctx); in emit_imm32() 133 emit(rv_addi(hi(rd), RV_REG_ZERO, -1), ctx); in emit_imm32() 136 static void emit_imm64(const s8 *rd, s32 imm_hi, s32 imm_lo, in emit_imm64() argument 139 emit_imm(lo(rd), imm_lo, ctx); in emit_imm64() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/ |
D | msm_rd.c | 101 static void rd_write(struct msm_rd_state *rd, const void *buf, int sz) in rd_write() argument 103 struct circ_buf *fifo = &rd->fifo; in rd_write() 110 wait_event(rd->fifo_event, circ_space(&rd->fifo) > 0 || !rd->open); in rd_write() 111 if (!rd->open) in rd_write() 118 n = min(sz, circ_space_to_end(&rd->fifo)); in rd_write() 125 wake_up_all(&rd->fifo_event); in rd_write() 129 static void rd_write_section(struct msm_rd_state *rd, in rd_write_section() argument 132 rd_write(rd, &type, 4); in rd_write_section() 133 rd_write(rd, &sz, 4); in rd_write_section() 134 rd_write(rd, buf, sz); in rd_write_section() [all …]
|
/kernel/linux/linux-5.10/drivers/powercap/ |
D | intel_rapl_common.c | 95 void (*set_floor_freq)(struct rapl_domain *rd, bool mode); 132 static int rapl_read_data_raw(struct rapl_domain *rd, 135 static int rapl_write_data_raw(struct rapl_domain *rd, 138 static u64 rapl_unit_xlate(struct rapl_domain *rd, 155 struct rapl_domain *rd; in get_energy_counter() local 162 rd = power_zone_to_rapl_domain(power_zone); in get_energy_counter() 164 if (!rapl_read_data_raw(rd, ENERGY_COUNTER, true, &energy_now)) { in get_energy_counter() 177 struct rapl_domain *rd = power_zone_to_rapl_domain(pcd_dev); in get_max_energy_counter() local 179 *energy = rapl_unit_xlate(rd, ENERGY_UNIT, ENERGY_STATUS_MASK, 0); in get_max_energy_counter() 185 struct rapl_domain *rd = power_zone_to_rapl_domain(power_zone); in release_zone() local [all …]
|
/kernel/linux/linux-5.10/kernel/time/ |
D | sched_clock.c | 86 struct clock_read_data *rd; in sched_clock() local 89 rd = sched_clock_read_begin(&seq); in sched_clock() 91 cyc = (rd->read_sched_clock() - rd->epoch_cyc) & in sched_clock() 92 rd->sched_clock_mask; in sched_clock() 93 res = rd->epoch_ns + cyc_to_ns(cyc, rd->mult, rd->shift); in sched_clock() 109 static void update_clock_read_data(struct clock_read_data *rd) in update_clock_read_data() argument 112 cd.read_data[1] = *rd; in update_clock_read_data() 118 cd.read_data[0] = *rd; in update_clock_read_data() 131 struct clock_read_data rd; in update_sched_clock() local 133 rd = cd.read_data[0]; in update_sched_clock() [all …]
|
/kernel/linux/linux-5.10/fs/jffs2/ |
D | write.c | 206 struct jffs2_raw_dirent *rd, const unsigned char *name, in jffs2_write_dirent() argument 218 je32_to_cpu(rd->pino), name, name, je32_to_cpu(rd->ino), in jffs2_write_dirent() 219 je32_to_cpu(rd->name_crc)); in jffs2_write_dirent() 221 D1(if(je32_to_cpu(rd->hdr_crc) != crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)) { in jffs2_write_dirent() 231 je32_to_cpu(rd->pino), name, name, je32_to_cpu(rd->ino), in jffs2_write_dirent() 232 je32_to_cpu(rd->name_crc)); in jffs2_write_dirent() 237 vecs[0].iov_base = rd; in jffs2_write_dirent() 238 vecs[0].iov_len = sizeof(*rd); in jffs2_write_dirent() 246 fd->version = je32_to_cpu(rd->version); in jffs2_write_dirent() 247 fd->ino = je32_to_cpu(rd->ino); in jffs2_write_dirent() [all …]
|
D | dir.c | 285 struct jffs2_raw_dirent *rd; in jffs2_symlink() local 379 ret = jffs2_reserve_space(c, sizeof(*rd)+namelen, &alloclen, in jffs2_symlink() 384 rd = jffs2_alloc_raw_dirent(); in jffs2_symlink() 385 if (!rd) { in jffs2_symlink() 395 rd->magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); in jffs2_symlink() 396 rd->nodetype = cpu_to_je16(JFFS2_NODETYPE_DIRENT); in jffs2_symlink() 397 rd->totlen = cpu_to_je32(sizeof(*rd) + namelen); in jffs2_symlink() 398 rd->hdr_crc = cpu_to_je32(crc32(0, rd, sizeof(struct jffs2_unknown_node)-4)); in jffs2_symlink() 400 rd->pino = cpu_to_je32(dir_i->i_ino); in jffs2_symlink() 401 rd->version = cpu_to_je32(++dir_f->highest_version); in jffs2_symlink() [all …]
|
/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
D | head_32.h | 13 rd %psr, %l0; b label; rd %wim, %l3; nop; 16 #define SRMMU_TFAULT rd %psr, %l0; rd %wim, %l3; b srmmu_fault; mov 1, %l7; 17 #define SRMMU_DFAULT rd %psr, %l0; rd %wim, %l3; b srmmu_fault; mov 0, %l7; 21 rd %psr, %l0; mov num, %l7; b bad_trap_handler; rd %wim, %l3; 38 rd %psr, %l0; 42 rd %psr,%l0; \ 50 rd %psr,%l0; \ 59 b getcc_trap_handler; rd %psr, %l0; nop; nop; 63 b setcc_trap_handler; rd %psr, %l0; nop; nop; 67 rd %psr, %i0; jmp %l2; rett %l2 + 4; nop; [all …]
|
/kernel/linux/linux-5.10/drivers/media/tuners/ |
D | qt1010.c | 51 qt1010_i2c_oper_t rd[48] = { in qt1010_set_params() local 123 rd[2].val = reg05; in qt1010_set_params() 126 rd[4].val = (freq + QT1010_OFFSET) / FREQ1; in qt1010_set_params() 129 if (mod1 < 8000000) rd[6].val = 0x1d; in qt1010_set_params() 130 else rd[6].val = 0x1c; in qt1010_set_params() 133 if (mod1 < 1*FREQ2) rd[7].val = 0x09; /* +0 MHz */ in qt1010_set_params() 134 else if (mod1 < 2*FREQ2) rd[7].val = 0x08; /* +4 MHz */ in qt1010_set_params() 135 else if (mod1 < 3*FREQ2) rd[7].val = 0x0f; /* +8 MHz */ in qt1010_set_params() 136 else if (mod1 < 4*FREQ2) rd[7].val = 0x0e; /* +12 MHz */ in qt1010_set_params() 137 else if (mod1 < 5*FREQ2) rd[7].val = 0x0d; /* +16 MHz */ in qt1010_set_params() [all …]
|
/kernel/linux/linux-5.10/drivers/reset/ |
D | reset-pistachio.c | 66 struct pistachio_reset_data *rd; in pistachio_reset_assert() local 70 rd = container_of(rcdev, struct pistachio_reset_data, rcdev); in pistachio_reset_assert() 76 return regmap_update_bits(rd->periph_regs, PISTACHIO_SOFT_RESET, in pistachio_reset_assert() 83 struct pistachio_reset_data *rd; in pistachio_reset_deassert() local 87 rd = container_of(rcdev, struct pistachio_reset_data, rcdev); in pistachio_reset_deassert() 93 return regmap_update_bits(rd->periph_regs, PISTACHIO_SOFT_RESET, in pistachio_reset_deassert() 104 struct pistachio_reset_data *rd; in pistachio_reset_probe() local 108 rd = devm_kzalloc(dev, sizeof(*rd), GFP_KERNEL); in pistachio_reset_probe() 109 if (!rd) in pistachio_reset_probe() 112 rd->periph_regs = syscon_node_to_regmap(np->parent); in pistachio_reset_probe() [all …]
|
/kernel/linux/linux-5.10/arch/arm/mach-tegra/ |
D | sleep.h | 51 .macro cpu_to_halt_reg rd, rcpu 53 subne \rd, \rcpu, #1 54 movne \rd, \rd, lsl #3 55 addne \rd, \rd, #0x14 56 moveq \rd, #0 60 .macro cpu_to_csr_reg rd, rcpu 62 subne \rd, \rcpu, #1 63 movne \rd, \rd, lsl #3 64 addne \rd, \rd, #0x18 65 moveq \rd, #8 [all …]
|
/kernel/linux/linux-5.10/arch/arm/lib/ |
D | io-writesb.S | 10 .macro outword, rd argument 12 strb \rd, [r0] 13 mov \rd, \rd, lsr #8 14 strb \rd, [r0] 15 mov \rd, \rd, lsr #8 16 strb \rd, [r0] 17 mov \rd, \rd, lsr #8 18 strb \rd, [r0] 20 mov lr, \rd, lsr #24 22 mov lr, \rd, lsr #16 [all …]
|