Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 248) sorted by relevance

12345678910

/rk3399_rockchip-uboot/board/gdsys/common/
H A Dphy.c124 int res; in process_setupcmd() local
136 res = miiphy_read(bus, addr, reg, &orig_data); in process_setupcmd()
137 if (res) in process_setupcmd()
145 res = miiphy_write(bus, addr, reg, data); in process_setupcmd()
148 res = miiphy_read(bus, addr, reg, &orig_data); in process_setupcmd()
149 if (res) in process_setupcmd()
152 res = -1; in process_setupcmd()
154 orig_data, res ? "FAIL" : "PASS"); in process_setupcmd()
157 res = -1; in process_setupcmd()
159 while ((res != 0) && (get_timer(start) < timeout)) { in process_setupcmd()
[all …]
/rk3399_rockchip-uboot/arch/arm/mach-rockchip/
H A Drockchip_smccc.c30 struct arm_smccc_res res; in __invoke_sip_fn_smc() local
32 arm_smccc_smc(function_id, arg0, arg1, arg2, 0, 0, 0, 0, &res); in __invoke_sip_fn_smc()
33 return res; in __invoke_sip_fn_smc()
38 struct arm_smccc_res res; in psci_cpu_on() local
40 res = __invoke_sip_fn_smc(ARM_PSCI_0_2_CPU_ON, cpuid, entry_point, 0); in psci_cpu_on()
42 return res.a0; in psci_cpu_on()
47 struct arm_smccc_res res; in psci_cpu_off() local
49 res = __invoke_sip_fn_smc(ARM_PSCI_0_2_CPU_OFF, state, 0, 0); in psci_cpu_off()
51 return res.a0; in psci_cpu_off()
57 struct arm_smccc_res res; in psci_system_suspend() local
[all …]
/rk3399_rockchip-uboot/drivers/bios_emulator/x86emu/
H A Dprim_ops.c132 static void set_parity_flag(u32 res) in set_parity_flag() argument
134 CONDITIONAL_SET_FLAG(PARITY(res & 0xFF), F_PF); in set_parity_flag()
137 static void set_szp_flags_8(u8 res) in set_szp_flags_8() argument
139 CONDITIONAL_SET_FLAG(res & 0x80, F_SF); in set_szp_flags_8()
140 CONDITIONAL_SET_FLAG(res == 0, F_ZF); in set_szp_flags_8()
141 set_parity_flag(res); in set_szp_flags_8()
144 static void set_szp_flags_16(u16 res) in set_szp_flags_16() argument
146 CONDITIONAL_SET_FLAG(res & 0x8000, F_SF); in set_szp_flags_16()
147 CONDITIONAL_SET_FLAG(res == 0, F_ZF); in set_szp_flags_16()
148 set_parity_flag(res); in set_szp_flags_16()
[all …]
/rk3399_rockchip-uboot/common/
H A Dsplash_source.c88 int res; in splash_load_raw() local
94 res = splash_storage_read_raw(location, bmp_load_addr, bmp_header_size); in splash_load_raw()
95 if (res < 0) in splash_load_raw()
96 return res; in splash_load_raw()
114 int res; in splash_select_fs_dev() local
118 res = fs_set_blk_dev("mmc", location->devpart, FS_TYPE_ANY); in splash_select_fs_dev()
121 res = fs_set_blk_dev("usb", location->devpart, FS_TYPE_ANY); in splash_select_fs_dev()
124 res = fs_set_blk_dev("sata", location->devpart, FS_TYPE_ANY); in splash_select_fs_dev()
128 res = fs_set_blk_dev("ubi", NULL, FS_TYPE_UBIFS); in splash_select_fs_dev()
130 res = -ENODEV; in splash_select_fs_dev()
[all …]
/rk3399_rockchip-uboot/include/linux/
H A Dbitops.h109 unsigned int res = (w & 0x55555555) + ((w >> 1) & 0x55555555); in generic_hweight32() local
110 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); in generic_hweight32()
111 res = (res & 0x0F0F0F0F) + ((res >> 4) & 0x0F0F0F0F); in generic_hweight32()
112 res = (res & 0x00FF00FF) + ((res >> 8) & 0x00FF00FF); in generic_hweight32()
113 return (res & 0x0000FFFF) + ((res >> 16) & 0x0000FFFF); in generic_hweight32()
118 unsigned int res = (w & 0x5555) + ((w >> 1) & 0x5555); in generic_hweight16() local
119 res = (res & 0x3333) + ((res >> 2) & 0x3333); in generic_hweight16()
120 res = (res & 0x0F0F) + ((res >> 4) & 0x0F0F); in generic_hweight16()
121 return (res & 0x00FF) + ((res >> 8) & 0x00FF); in generic_hweight16()
126 unsigned int res = (w & 0x55) + ((w >> 1) & 0x55); in generic_hweight8() local
[all …]
H A Dtime.h70 _DEFUN (localtime_r, (tim_p, res),
72 struct tm *res)
98 res->tm_hour = (int) (rem / SECSPERHOUR);
100 res->tm_min = (int) (rem / SECSPERMIN);
101 res->tm_sec = (int) (rem % SECSPERMIN);
104 if ((res->tm_wday = ((EPOCH_WDAY + days) % DAYSPERWEEK)) < 0)
105 res->tm_wday += DAYSPERWEEK;
130 res->tm_year = y - YEAR_BASE;
131 res->tm_yday = days;
133 for (res->tm_mon = 0; days >= ip[res->tm_mon]; ++res->tm_mon)
[all …]
/rk3399_rockchip-uboot/common/spl/
H A Dspl_ymodem.c41 int res, err; in ymodem_read_fit() local
46 res = xyzModem_stream_read(buf, BUF_SIZE, &err); in ymodem_read_fit()
47 if (res <= 0) in ymodem_read_fit()
48 return res; in ymodem_read_fit()
49 info->image_read += res; in ymodem_read_fit()
53 res = info->image_read - offset; in ymodem_read_fit()
54 memcpy(addr, &buf[BUF_SIZE - res], res); in ymodem_read_fit()
55 addr = addr + res; in ymodem_read_fit()
59 res = xyzModem_stream_read(buf, BUF_SIZE, &err); in ymodem_read_fit()
60 if (res <= 0) in ymodem_read_fit()
[all …]
/rk3399_rockchip-uboot/drivers/misc/
H A Datsha204a-i2c.c177 int res; in atsha204a_recv_resp() local
181 res = atsha204a_recv(dev, p, 4); in atsha204a_recv_resp()
182 if (res) in atsha204a_recv_resp()
183 return res; in atsha204a_recv_resp()
189 res = atsha204a_recv(dev, p + 4, resp->length - 4); in atsha204a_recv_resp()
190 if (res) in atsha204a_recv_resp()
191 return res; in atsha204a_recv_resp()
210 int try, res; in atsha204a_wakeup() local
218 res = atsha204a_send(dev, req, 4); in atsha204a_wakeup()
219 if (res) { in atsha204a_wakeup()
[all …]
/rk3399_rockchip-uboot/drivers/net/phy/
H A Dmv88e61xx.c261 int res; in mv88e61xx_reg_read() local
268 res = mv88e61xx_smi_wait(mdio_bus, smi_addr); in mv88e61xx_reg_read()
269 if (res < 0) in mv88e61xx_reg_read()
270 return res; in mv88e61xx_reg_read()
273 res = mdio_bus->write(mdio_bus, smi_addr, MDIO_DEVAD_NONE, SMI_CMD_REG, in mv88e61xx_reg_read()
275 if (res < 0) in mv88e61xx_reg_read()
276 return res; in mv88e61xx_reg_read()
279 res = mv88e61xx_smi_wait(mdio_bus, smi_addr); in mv88e61xx_reg_read()
280 if (res < 0) in mv88e61xx_reg_read()
281 return res; in mv88e61xx_reg_read()
[all …]
/rk3399_rockchip-uboot/drivers/gpio/
H A Dpca9698.c69 int res; in pca9698_direction_input() local
71 res = pca9698_read40(addr, PCA9698_REG_CONFIG, data); in pca9698_direction_input()
72 if (res) in pca9698_direction_input()
73 return res; in pca9698_direction_input()
83 int res; in pca9698_direction_output() local
85 res = pca9698_set_value(addr, gpio, value); in pca9698_direction_output()
86 if (res) in pca9698_direction_output()
87 return res; in pca9698_direction_output()
89 res = pca9698_read40(addr, PCA9698_REG_CONFIG, data); in pca9698_direction_output()
90 if (res) in pca9698_direction_output()
[all …]
/rk3399_rockchip-uboot/include/rockchip/
H A Dcrypto_v2_pka.h224 u32 res_discard, u32 res,
251 u8 res_discard, s8 res, u8 tag);
261 #define RK_PKA_Add(len_id, op_a, op_b, res, tag) \ argument
263 0, (op_b), 0, (res), (tag))
266 #define RK_PKA_AddIm(len_id, op_a, op_b_im, res, tag) \ argument
268 1, (op_b_im), 0, (res), (tag))
271 #define RK_PKA_Sub(len_id, op_a, op_b, res, tag) \ argument
273 0, (op_b), 0, (res), (tag))
276 #define RK_PKA_SubIm(len_id, op_a, op_b_im, res, tag) \ argument
278 1, (op_b_im), 0, (res), (tag))
[all …]
/rk3399_rockchip-uboot/scripts/
H A Dsetlocalversion127 local file res
136 res="$res$(cat "$file")"
139 echo "$res"
144 res=$(scm_version)
145 echo "$res" >.scmversion
162 res="$(collect_files localversion*)"
164 res="$res$(collect_files "$srctree"/localversion*)"
168 res="${res}${CONFIG_LOCALVERSION}${LOCALVERSION}"
173 res="$res$(scm_version)"
181 res="$res${scm:++}"
[all …]
/rk3399_rockchip-uboot/drivers/tpm/
H A Dtpm_atmel_twi.c75 int res; in tpm_atmel_twi_xfer() local
85 res = i2c_write(0x29, 0, 0, (uchar *)sendbuf, send_size); in tpm_atmel_twi_xfer()
87 res = dm_i2c_write(dev, 0, sendbuf, send_size); in tpm_atmel_twi_xfer()
89 if (res) { in tpm_atmel_twi_xfer()
90 printf("i2c_write returned %d\n", res); in tpm_atmel_twi_xfer()
96 while ((res = i2c_read(0x29, 0, 0, recvbuf, 10))) in tpm_atmel_twi_xfer()
98 while ((res = dm_i2c_read(dev, 0, recvbuf, 10))) in tpm_atmel_twi_xfer()
108 if (!res) { in tpm_atmel_twi_xfer()
112 res = i2c_read(0x29, 0, 0, recvbuf, *recv_len); in tpm_atmel_twi_xfer()
114 res = dm_i2c_read(dev, 0, recvbuf, *recv_len); in tpm_atmel_twi_xfer()
[all …]
/rk3399_rockchip-uboot/drivers/core/
H A Ddevres.c79 void devres_free(void *res) in devres_free() argument
81 if (res) { in devres_free()
82 struct devres *dr = container_of(res, struct devres, data); in devres_free()
89 void devres_add(struct udevice *dev, void *res) in devres_add() argument
91 struct devres *dr = container_of(res, struct devres, data); in devres_add()
119 void *res; in devres_get() local
121 res = devres_find(dev, new_dr->release, match, match_data); in devres_get()
122 if (!res) { in devres_get()
124 res = new_res; in devres_get()
129 return res; in devres_get()
[all …]
/rk3399_rockchip-uboot/board/gdsys/a38x/
H A Dhydra.c102 u32 res; in do_hydrate() local
105 res = readl(&fpga->reflection_low); in do_hydrate()
106 if (res != REFL_PATTERN_INV) in do_hydrate()
108 k, res, REFL_PATTERN_INV); in do_hydrate()
110 res = readl(&fpga->reflection_low); in do_hydrate()
111 if (res != REFL_PATTERN) in do_hydrate()
113 k, res, REFL_PATTERN); in do_hydrate()
115 res = readl(pcie2_base + 0x118) & 0x1f; in do_hydrate()
116 if (res) in do_hydrate()
117 printf("FrstErrPtr %u\n", res); in do_hydrate()
[all …]
/rk3399_rockchip-uboot/drivers/pci/
H A Dpci_auto_common.c20 void pciauto_region_init(struct pci_region *res) in pciauto_region_init() argument
27 res->bus_lower = res->bus_start ? res->bus_start : 0x1000; in pciauto_region_init()
30 void pciauto_region_align(struct pci_region *res, pci_size_t size) in pciauto_region_align() argument
32 res->bus_lower = ((res->bus_lower - 1) | (size - 1)) + 1; in pciauto_region_align()
35 int pciauto_region_allocate(struct pci_region *res, pci_size_t size, in pciauto_region_allocate() argument
40 if (!res) { in pciauto_region_allocate()
45 addr = ((res->bus_lower - 1) | (size - 1)) + 1; in pciauto_region_allocate()
47 if (addr - res->bus_start + size > res->size) { in pciauto_region_allocate()
52 res->bus_lower = addr + size; in pciauto_region_allocate()
55 (unsigned long long)res->bus_lower); in pciauto_region_allocate()
H A Dpci_common.c150 struct pci_region *res; in __pci_hose_bus_to_phys() local
154 res = &hose->regions[i]; in __pci_hose_bus_to_phys()
156 if (((res->flags ^ flags) & PCI_REGION_TYPE) != 0) in __pci_hose_bus_to_phys()
159 if (res->flags & skip_mask) in __pci_hose_bus_to_phys()
162 if (bus_addr >= res->bus_start && in __pci_hose_bus_to_phys()
163 (bus_addr - res->bus_start) < res->size) { in __pci_hose_bus_to_phys()
164 *pa = (bus_addr - res->bus_start + res->phys_start); in __pci_hose_bus_to_phys()
209 struct pci_region *res; in __pci_hose_phys_to_bus() local
214 res = &hose->regions[i]; in __pci_hose_phys_to_bus()
216 if (((res->flags ^ flags) & PCI_REGION_TYPE) != 0) in __pci_hose_phys_to_bus()
[all …]
/rk3399_rockchip-uboot/post/lib_powerpc/
H A Dcr.c38 extern void cpu_post_exec_11 (ulong *code, ulong *res, ulong op1);
68 ulong res; member
92 ulong res; member
238 ulong res; in cpu_post_test_cr() local
247 cpu_post_exec_11 (code, &res, cr); in cpu_post_test_cr()
249 ret = res == cr ? 0 : -1; in cpu_post_test_cr()
260 ulong res; in cpu_post_test_cr() local
272 cpu_post_exec_21x (code, &res, &xer, test->xer); in cpu_post_test_cr()
274 ret = xer == 0 && ((res << (4 * test->cr)) & 0xe0000000) == test->xer ? in cpu_post_test_cr()
286 ulong res; in cpu_post_test_cr() local
[all …]
/rk3399_rockchip-uboot/arch/arm/mach-mvebu/
H A Defuse.c98 int res = 0; in prog_efuse() local
100 res = mvebu_efuse_init_hw(); in prog_efuse()
101 if (res) in prog_efuse()
102 return res; in prog_efuse()
124 res = do_prog_efuse(efuse, new_val, mask0, mask1); in prog_efuse()
128 return res; in prog_efuse()
152 int res; in mvebu_read_efuse() local
154 res = mvebu_efuse_init_hw(); in mvebu_read_efuse()
155 if (res) in mvebu_read_efuse()
156 return res; in mvebu_read_efuse()
[all …]
/rk3399_rockchip-uboot/include/
H A Ddiv64.h166 uint64_t res, tmp; in __arch_xprod_64() local
169 res = ((uint64_t)m_lo * n_lo) >> 32; in __arch_xprod_64()
172 res = (m + (uint64_t)m_lo * n_lo) >> 32; in __arch_xprod_64()
174 res = m + (uint64_t)m_lo * n_lo; in __arch_xprod_64()
175 tmp = (res < m) ? (1ULL << 32) : 0; in __arch_xprod_64()
176 res = (res >> 32) + tmp; in __arch_xprod_64()
181 res += (uint64_t)m_lo * n_hi; in __arch_xprod_64()
182 res += (uint64_t)m_hi * n_lo; in __arch_xprod_64()
183 res >>= 32; in __arch_xprod_64()
185 tmp = res += (uint64_t)m_lo * n_hi; in __arch_xprod_64()
[all …]
/rk3399_rockchip-uboot/drivers/ram/rockchip/
H A Drockchip_dmc.c735 struct arm_smccc_res res; in rk3328_devfreq_init() local
738 res = sip_smc_dram(0, 0, in rk3328_devfreq_init()
740 printf("current ATF version 0x%lx!\n", res.a1); in rk3328_devfreq_init()
741 if (res.a0 || res.a1 < 0x101) { in rk3328_devfreq_init()
746 printf("read tf version 0x%lx!\n", res.a1); in rk3328_devfreq_init()
753 res = sip_smc_request_share_mem(DIV_ROUND_UP(size, 4096) + 1, in rk3328_devfreq_init()
755 if (res.a0 != 0) { in rk3328_devfreq_init()
759 ddr_psci_param = (struct share_params *)res.a1; in rk3328_devfreq_init()
765 res = sip_smc_dram(SHARE_PAGE_TYPE_DDR, 0, in rk3328_devfreq_init()
767 if (res.a0) { in rk3328_devfreq_init()
[all …]
/rk3399_rockchip-uboot/lib/
H A Dslre.c210 int res; in get_escape_char() local
214 res = '\n'; in get_escape_char()
217 res = '\r'; in get_escape_char()
220 res = '\t'; in get_escape_char()
223 res = 0; in get_escape_char()
226 res = NONSPACE << 8; in get_escape_char()
229 res = SPACE << 8; in get_escape_char()
232 res = DIGIT << 8; in get_escape_char()
235 res = (*re)[-1]; in get_escape_char()
239 return res; in get_escape_char()
[all …]
/rk3399_rockchip-uboot/scripts/kconfig/
H A Dnconf.gui.c205 int res = 0; in get_line_length() local
208 res++; in get_line_length()
210 return res; in get_line_length()
256 int res = -1; in btn_dialog() local
320 while ((res = wgetch(win))) { in btn_dialog()
321 switch (res) { in btn_dialog()
338 if (res == 10 || res == ' ') { in btn_dialog()
339 res = item_index(current_item(menu)); in btn_dialog()
341 } else if (res == 27 || res == KEY_F(F_BACK) || in btn_dialog()
342 res == KEY_F(F_EXIT)) { in btn_dialog()
[all …]
/rk3399_rockchip-uboot/arch/arc/lib/
H A Dlibgcc2.c83 unsigned long res = 0; in udivmodsi4() local
93 res |= bit; in udivmodsi4()
102 return res; in udivmodsi4()
109 long res; in __divsi3() local
121 res = udivmodsi4(a, b, 0); in __divsi3()
124 res = -res; in __divsi3()
126 return res; in __divsi3()
133 long res; in __modsi3() local
143 res = udivmodsi4(a, b, 1); in __modsi3()
146 res = -res; in __modsi3()
[all …]
/rk3399_rockchip-uboot/arch/xtensa/include/asm/
H A Dbyteorder.h16 __u32 res; in ___arch__swab32() local
24 : "=&a" (res) in ___arch__swab32()
27 return res; in ___arch__swab32()
54 __u32 res; in ___arch__swab16() local
60 : "=&a" (res), "=&a" (tmp) in ___arch__swab16()
64 return res; in ___arch__swab16()

12345678910