| /rk3399_rockchip-uboot/scripts/dtc/ |
| H A D | data.c | 23 void data_free(struct data d) in data_free() argument 27 m = d.markers; in data_free() 35 if (d.val) in data_free() 36 free(d.val); in data_free() 39 struct data data_grow_for(struct data d, int xlen) in data_grow_for() argument 45 return d; in data_grow_for() 47 nd = d; in data_grow_for() 51 while ((d.len + xlen) > newsize) in data_grow_for() 54 nd.val = xrealloc(d.val, newsize); in data_grow_for() 61 struct data d; in data_copy_mem() local [all …]
|
| /rk3399_rockchip-uboot/drivers/bios_emulator/include/x86emu/ |
| H A D | prim_ops.h | 46 u16 aaa_word (u16 d); 47 u16 aas_word (u16 d); 48 u16 aad_word (u16 d); 49 u16 aam_word (u8 d); 50 u8 adc_byte (u8 d, u8 s); 51 u16 adc_word (u16 d, u16 s); 52 u32 adc_long (u32 d, u32 s); 53 u8 add_byte (u8 d, u8 s); 54 u16 add_word (u16 d, u16 s); 55 u32 add_long (u32 d, u32 s); [all …]
|
| /rk3399_rockchip-uboot/drivers/bios_emulator/x86emu/ |
| H A D | prim_ops.c | 182 static void calc_carry_chain(int bits, u32 d, u32 s, u32 res, int set_carry) in calc_carry_chain() argument 186 cc = (s & d) | ((~res) & (s | d)); in calc_carry_chain() 194 static void calc_borrow_chain(int bits, u32 d, u32 s, u32 res, int set_carry) in calc_borrow_chain() argument 198 bc = (res & (~d | s)) | (~d & s); in calc_borrow_chain() 210 u16 aaa_word(u16 d) in aaa_word() argument 213 if ((d & 0xf) > 0x9 || ACCESS_FLAG(F_AF)) { in aaa_word() 214 d += 0x6; in aaa_word() 215 d += 0x100; in aaa_word() 222 res = (u16)(d & 0xFF0F); in aaa_word() 231 u16 aas_word(u16 d) in aas_word() argument [all …]
|
| /rk3399_rockchip-uboot/lib/ |
| H A D | md5.c | 185 register __u32 a, b, c, d; in MD5Transform() local 190 d = buf[3]; in MD5Transform() 192 MD5STEP(F1, a, b, c, d, in[0] + 0xd76aa478, 7); in MD5Transform() 193 MD5STEP(F1, d, a, b, c, in[1] + 0xe8c7b756, 12); in MD5Transform() 194 MD5STEP(F1, c, d, a, b, in[2] + 0x242070db, 17); in MD5Transform() 195 MD5STEP(F1, b, c, d, a, in[3] + 0xc1bdceee, 22); in MD5Transform() 196 MD5STEP(F1, a, b, c, d, in[4] + 0xf57c0faf, 7); in MD5Transform() 197 MD5STEP(F1, d, a, b, c, in[5] + 0x4787c62a, 12); in MD5Transform() 198 MD5STEP(F1, c, d, a, b, in[6] + 0xa8304613, 17); in MD5Transform() 199 MD5STEP(F1, b, c, d, a, in[7] + 0xfd469501, 22); in MD5Transform() [all …]
|
| H A D | rational.c | 48 unsigned long n, d, n0, d0, n1, d1, n2, d2; in rational_best_approximation() local 50 d = given_denominator; in rational_best_approximation() 57 if (d == 0) in rational_best_approximation() 62 dp = d; in rational_best_approximation() 63 a = n / d; in rational_best_approximation() 64 d = n % d; in rational_best_approximation() 86 if (2u * t > a || (2u * t == a && d0 * dp > d1 * d)) { in rational_best_approximation()
|
| H A D | display_options.c | 57 unsigned long d = 1e9; in print_freq() local 61 for (i = 0; i < ARRAY_SIZE(names); i++, d /= 1000) { in print_freq() 62 if (freq >= d) { in print_freq() 73 f = do_div(freq, d); in print_freq() 97 unsigned long d = 10 * ARRAY_SIZE(names); in print_size() local 101 for (i = 0; i < ARRAY_SIZE(names); i++, d -= 10) { in print_size() 102 if (size >> d) { in print_size() 113 n = size >> d; in print_size() 114 f = size & ((1ULL << d) - 1); in print_size() 118 m = (10ULL * f + (1ULL << (d - 1))) >> d; in print_size()
|
| /rk3399_rockchip-uboot/drivers/mtd/ubi/ |
| H A D | debug.c | 257 struct ubi_debug_info *d; in dfs_file_read() local 264 d = &ubi->dbg; in dfs_file_read() 266 if (dent == d->dfs_chk_gen) in dfs_file_read() 267 val = d->chk_gen; in dfs_file_read() 268 else if (dent == d->dfs_chk_io) in dfs_file_read() 269 val = d->chk_io; in dfs_file_read() 270 else if (dent == d->dfs_chk_fastmap) in dfs_file_read() 271 val = d->chk_fastmap; in dfs_file_read() 272 else if (dent == d->dfs_disable_bgt) in dfs_file_read() 273 val = d->disable_bgt; in dfs_file_read() [all …]
|
| /rk3399_rockchip-uboot/drivers/misc/ |
| H A D | cros_ec_lpc.c | 55 uint8_t *d; in cros_ec_lpc_command() local 71 for (i = 0, d = (uint8_t *)dout; i < dout_len; i++, d++) in cros_ec_lpc_command() 72 csum += *d; in cros_ec_lpc_command() 82 for (i = 0, d = (uint8_t *)&args; i < sizeof(args); i++, d++) in cros_ec_lpc_command() 83 outb(*d, args_addr + i); in cros_ec_lpc_command() 87 for (i = 0, d = (uint8_t *)dout; i < dout_len; i++, d++) { in cros_ec_lpc_command() 88 outb(*d, param_addr + i); in cros_ec_lpc_command() 89 debug_trace("%02x ", *d); in cros_ec_lpc_command() 108 for (i = 0, d = (uint8_t *)&args; i < sizeof(args); i++, d++) in cros_ec_lpc_command() 109 *d = inb(args_addr + i); in cros_ec_lpc_command() [all …]
|
| /rk3399_rockchip-uboot/drivers/ddr/marvell/axp/ |
| H A D | ddr3_init.h | 22 #define DEBUG_INIT_D(d, l) printf("%x", d) argument 23 #define DEBUG_INIT_D_10(d, l) printf("%d", d) argument 26 #define DEBUG_INIT_D(d, l) argument 27 #define DEBUG_INIT_D_10(d, l) argument 32 #define DEBUG_INIT_FULL_D(d, l) printf("%x", d) argument 33 #define DEBUG_INIT_FULL_D_10(d, l) printf("%d", d) argument 42 #define DEBUG_INIT_FULL_D(d, l) argument 43 #define DEBUG_INIT_FULL_D_10(d, l) argument 48 #define DEBUG_INIT_FULL_C(s, d, l) \ argument 49 { DEBUG_INIT_FULL_S(s); DEBUG_INIT_FULL_D(d, l); DEBUG_INIT_FULL_S("\n"); } [all …]
|
| /rk3399_rockchip-uboot/arch/nios2/include/asm/ |
| H A D | posix_types.h | 54 #define __FD_SET(d, set) ((set)->fds_bits[__FDELT(d)] |= __FDMASK(d)) argument 57 #define __FD_CLR(d, set) ((set)->fds_bits[__FDELT(d)] &= ~__FDMASK(d)) argument 60 #define __FD_ISSET(d, set) ((set)->fds_bits[__FDELT(d)] & __FDMASK(d)) argument
|
| /rk3399_rockchip-uboot/drivers/mtd/nand/raw/ |
| H A D | mxs_nand.c | 270 struct mxs_dma_desc *d; in mxs_nand_cmd_ctrl() local 309 d = mxs_nand_get_dma_desc(nand_info); in mxs_nand_cmd_ctrl() 310 d->cmd.data = in mxs_nand_cmd_ctrl() 316 d->cmd.address = (dma_addr_t)nand_info->cmd_buf; in mxs_nand_cmd_ctrl() 318 d->cmd.pio_words[0] = in mxs_nand_cmd_ctrl() 326 mxs_dma_desc_append(channel, d); in mxs_nand_cmd_ctrl() 411 struct mxs_dma_desc *d; in mxs_nand_read_buf() local 426 d = mxs_nand_get_dma_desc(nand_info); in mxs_nand_read_buf() 427 d->cmd.data = in mxs_nand_read_buf() 433 d->cmd.address = (dma_addr_t)nand_info->data_buf; in mxs_nand_read_buf() [all …]
|
| /rk3399_rockchip-uboot/arch/arm/mach-mvebu/ |
| H A D | efuse.c | 74 val.dwords.d[0] = readl(&efuse->bits_31_0); in do_prog_efuse() 75 val.dwords.d[1] = readl(&efuse->bits_63_32); in do_prog_efuse() 81 val.dwords.d[0] |= (new_val->dwords.d[0] & mask0); in do_prog_efuse() 82 val.dwords.d[1] |= (new_val->dwords.d[1] & mask1); in do_prog_efuse() 85 writel(val.dwords.d[0], &efuse->bits_31_0); in do_prog_efuse() 87 writel(val.dwords.d[1], &efuse->bits_63_32); in do_prog_efuse() 116 if (new_val->bytes.d[7] & 0xFE) in prog_efuse() 119 if (!new_val->dwords.d[0] && !new_val->dwords.d[1] && (mask0 | mask1)) in prog_efuse() 165 val->dwords.d[0] = readl(&efuse->bits_31_0); in mvebu_read_efuse() 166 val->dwords.d[1] = readl(&efuse->bits_63_32); in mvebu_read_efuse() [all …]
|
| /rk3399_rockchip-uboot/post/lib_powerpc/fpu/ |
| H A D | 20001122-1.c | 22 double c, d; in fpu_post_test_math1() local 25 d = 1.0; in fpu_post_test_math1() 29 c = d; in fpu_post_test_math1() 30 d = c * 0.5; in fpu_post_test_math1() 31 b = 1 + d; in fpu_post_test_math1()
|
| H A D | acc1.c | 21 double d = *array; in func() local 23 if (d == 0.0) in func() 24 return d; in func() 26 return d + func (array + 1); in func()
|
| /rk3399_rockchip-uboot/drivers/net/fsl-mc/dpio/ |
| H A D | qbman_portal.c | 65 struct qbman_swp *qbman_swp_init(const struct qbman_swp_desc *d) in qbman_swp_init() argument 73 p->desc = d; in qbman_swp_init() 98 ret = qbman_swp_sys_init(&p->sys, d, p->dqrr.dqrr_size); in qbman_swp_init() 194 void qbman_eq_desc_clear(struct qbman_eq_desc *d) in qbman_eq_desc_clear() argument 196 memset(d, 0, sizeof(*d)); in qbman_eq_desc_clear() 199 void qbman_eq_desc_set_no_orp(struct qbman_eq_desc *d, int respond_success) in qbman_eq_desc_set_no_orp() argument 201 uint32_t *cl = qb_cl(d); in qbman_eq_desc_set_no_orp() 209 void qbman_eq_desc_set_response(struct qbman_eq_desc *d, in qbman_eq_desc_set_response() argument 213 uint32_t *cl = qb_cl(d); in qbman_eq_desc_set_response() 220 void qbman_eq_desc_set_qd(struct qbman_eq_desc *d, uint32_t qdid, in qbman_eq_desc_set_qd() argument [all …]
|
| /rk3399_rockchip-uboot/arch/powerpc/include/asm/ |
| H A D | posix_types.h | 45 #define __FD_SET(d, set) ((set)->fds_bits[__FDELT(d)] |= __FDMASK(d)) argument 46 #define __FD_CLR(d, set) ((set)->fds_bits[__FDELT(d)] &= ~__FDMASK(d)) argument 47 #define __FD_ISSET(d, set) ((set)->fds_bits[__FDELT(d)] & __FDMASK(d)) argument
|
| /rk3399_rockchip-uboot/arch/m68k/include/asm/ |
| H A D | posix_types.h | 45 #define __FD_SET(d, set) ((set)->fds_bits[__FDELT(d)] |= __FDMASK(d)) argument 46 #define __FD_CLR(d, set) ((set)->fds_bits[__FDELT(d)] &= ~__FDMASK(d)) argument 47 #define __FD_ISSET(d, set) ((set)->fds_bits[__FDELT(d)] & __FDMASK(d)) argument
|
| /rk3399_rockchip-uboot/drivers/net/ |
| H A D | smc91111.h | 92 #define SMC_outl(a,d,r) (*((volatile dword *)((a)->iobase+(r<<1))) = d) argument 93 #define SMC_outw(a,d,r) (*((volatile word *)((a)->iobase+(r<<1))) = d) argument 95 #define SMC_outl(a,d,r) (*((volatile dword *)((a)->iobase+(r))) = d) argument 96 #define SMC_outw(a,d,r) (*((volatile word *)((a)->iobase+(r))) = d) argument 99 #define SMC_outb(a,d,r) ({ word __d = (byte)(d); \ argument 170 #define SMC_outl(a,d,r) (*(volatile dword *)((a)->iobase+((r)<<0))=SMC_LEON_SWAP32(d)) argument 171 #define SMC_outl_nosw(a,d,r) (*(volatile dword *)((a)->iobase+((r)<<0))=(d)) argument 172 #define SMC_outw(a,d,r) (*(volatile word *)((a)->iobase+((r)<<0))=SMC_LEON_SWAP16(d)) argument 173 #define SMC_outw_nosw(a,d,r) (*(volatile word *)((a)->iobase+((r)<<0))=(d)) argument 174 #define SMC_outb(a,d,r) do{ word __d = (byte)(d); \ argument [all …]
|
| /rk3399_rockchip-uboot/board/freescale/common/ |
| H A D | zm7300.c | 102 int dpm_wrm(u8 r, u8 d) in dpm_wrm() argument 108 ret[2] = d; in dpm_wrm() 119 int dpm_wrp(u8 r, u8 d) in dpm_wrp() argument 130 ret[6] = d; in dpm_wrp() 154 u8 d; in zm_write() local 160 d = dpm_rrp(reg); in zm_write() 161 if (d != data) { in zm_write() 166 return d; in zm_write()
|
| /rk3399_rockchip-uboot/tools/ |
| H A D | imximage.c | 178 struct dcd_v2_cmd *d = gd_last_cmd; in set_dcd_param_v2() local 182 if (!d) in set_dcd_param_v2() 183 d = &dcd_v2->dcd_cmd; in set_dcd_param_v2() 184 d2 = d; in set_dcd_param_v2() 185 len = be16_to_cpu(d->write_dcd_command.length); in set_dcd_param_v2() 187 d2 = (struct dcd_v2_cmd *)(((char *)d) + len); in set_dcd_param_v2() 191 if ((d->write_dcd_command.tag == DCD_WRITE_DATA_COMMAND_TAG) && in set_dcd_param_v2() 192 (d->write_dcd_command.param == DCD_WRITE_DATA_PARAM)) in set_dcd_param_v2() 194 d = d2; in set_dcd_param_v2() 195 d->write_dcd_command.tag = DCD_WRITE_DATA_COMMAND_TAG; in set_dcd_param_v2() [all …]
|
| /rk3399_rockchip-uboot/drivers/crypto/rockchip/ |
| H A D | crypto_mpa.c | 28 tmp_mpa->d = memalign(alignment, byte_size); in rk_mpa_alloc() 29 if (!tmp_mpa->d) { in rk_mpa_alloc() 35 memcpy(tmp_mpa->d, data, byte_size); in rk_mpa_alloc() 37 memset(tmp_mpa->d, 0x00, byte_size); in rk_mpa_alloc() 41 tmp_mpa->d = data; in rk_mpa_alloc() 58 free(tmp_mpa->d); in rk_mpa_free()
|
| /rk3399_rockchip-uboot/lib/dhry/ |
| H A D | dhry.h | 382 #define structassign(d, s) memcpy(&(d), &(s), sizeof(d)) argument 384 #define structassign(d, s) d = s argument
|
| /rk3399_rockchip-uboot/include/linux/ |
| H A D | posix_types.h | 31 #define __FDELT(d) ((d) / __NFDBITS) argument 34 #define __FDMASK(d) (1UL << ((d) % __NFDBITS)) argument
|
| /rk3399_rockchip-uboot/arch/nios2/lib/ |
| H A D | longlong.h | 159 #define __udiv_qrnnd_c(q, r, n1, n0, d) \ argument 163 __d1 = __ll_highpart (d); \ 164 __d0 = __ll_lowpart (d); \ 172 __q1--, __r1 += (d); \ 173 if (__r1 >= (d)) /* i.e. we didn't get carry when adding to __r1 */\ 175 __q1--, __r1 += (d); \ 185 __q0--, __r0 += (d); \ 186 if (__r0 >= (d)) \ 188 __q0--, __r0 += (d); \ 199 #define udiv_qrnnd(q, r, nh, nl, d) \ argument [all …]
|
| /rk3399_rockchip-uboot/include/linux/mtd/ |
| H A D | doc2000.h | 86 #define WriteDOC_(d, adr, reg) do{ *(volatile __u32 *)(((unsigned long)adr)+((reg)<<2)) = (__u32)d… argument 90 #define WriteDOC_(d, adr, reg) do{ *(volatile __u16 *)(((unsigned long)adr)+((reg)<<1)) = (__u16)d… argument 94 #define WriteDOC_(d, adr, reg) writeb(d, (void __iomem *)(adr) + (reg)) argument 105 #define WriteDOC(d, adr, reg) WriteDOC_(d,adr,DoC_##reg) argument
|