/u-boot/board/gdsys/common/ |
A D | phy.c | 122 int res; in process_setupcmd() local 135 if (res) in process_setupcmd() 196 int res; in setup_88e1518() local 200 if (res) in setup_88e1518() 205 if (res) in setup_88e1518() 210 if (res) in setup_88e1518() 222 if (res) in setup_88e1518() 230 int res; in setup_88e1514() local 234 if (res) in setup_88e1514() 239 if (res) in setup_88e1514() [all …]
|
A D | osd_cmd.c | 28 int res; in do_osd_write() local 46 res = hex2bin(buffer, hexstr, buflen); in do_osd_write() 47 if (res) { in do_osd_write() 56 int res; in do_osd_write() local 59 if (res) { in do_osd_write() 91 int res; in do_osd_print() local 93 res = video_osd_print(dev, x, y, color, text); in do_osd_print() 94 if (res) { in do_osd_print() 118 int res; in do_osd_size() local 120 res = video_osd_set_size(dev, x, y); in do_osd_size() [all …]
|
/u-boot/drivers/bios_emulator/x86emu/ |
A D | prim_ops.c | 308 res++; in adc_word() 331 res++; in adc_long() 386 CONDITIONAL_SET_FLAG(res < d || res < s, F_CF); in add_long() 485 res += 6; in daa_byte() 1029 XOR2((res & 0x1) + ((res >> 6) & 0x2)), in rol_byte() 1054 XOR2((res & 0x1) + ((res >> 14) & 0x2)), in rol_word() 1079 XOR2((res & 0x1) + ((res >> 30) & 0x2)), in rol_long() 1213 res = 0; in shl_byte() 1251 res = 0; in shl_word() 1286 res = 0; in shl_long() [all …]
|
/u-boot/include/linux/ |
A D | bitops.h | 120 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); in generic_hweight32() 121 res = (res & 0x0F0F0F0F) + ((res >> 4) & 0x0F0F0F0F); in generic_hweight32() 122 res = (res & 0x00FF00FF) + ((res >> 8) & 0x00FF00FF); in generic_hweight32() 123 return (res & 0x0000FFFF) + ((res >> 16) & 0x0000FFFF); in generic_hweight32() 128 unsigned int res = (w & 0x5555) + ((w >> 1) & 0x5555); in generic_hweight16() local 129 res = (res & 0x3333) + ((res >> 2) & 0x3333); in generic_hweight16() 130 res = (res & 0x0F0F) + ((res >> 4) & 0x0F0F); in generic_hweight16() 131 return (res & 0x00FF) + ((res >> 8) & 0x00FF); in generic_hweight16() 136 unsigned int res = (w & 0x55) + ((w >> 1) & 0x55); in generic_hweight8() local 137 res = (res & 0x33) + ((res >> 2) & 0x33); in generic_hweight8() [all …]
|
A D | time.h | 72 _DEFUN (localtime_r, (tim_p, res), 74 struct tm *res) 102 res->tm_min = (int) (rem / SECSPERMIN); 107 res->tm_wday += DAYSPERWEEK; 132 res->tm_year = y - YEAR_BASE; 133 res->tm_yday = days; 135 for (res->tm_mon = 0; days >= ip[res->tm_mon]; ++res->tm_mon) 136 days -= ip[res->tm_mon]; 137 res->tm_mday = days + 1; 140 res->tm_isdst = -1; [all …]
|
/u-boot/common/spl/ |
A D | spl_ymodem.c | 48 if (res <= 0) in ymodem_read_fit() 60 memcpy(addr, &buf[buf_offset - res], res); in ymodem_read_fit() 66 if (res <= 0) in ymodem_read_fit() 71 addr += res; in ymodem_read_fit() 82 int res; in spl_ymodem_load_image() local 97 if (res <= 0) in spl_ymodem_load_image() 106 size += res; in spl_ymodem_load_image() 107 addr += res; in spl_ymodem_load_image() 111 size += res; in spl_ymodem_load_image() 149 size += res; in spl_ymodem_load_image() [all …]
|
/u-boot/common/ |
A D | splash_source.c | 91 int res; in splash_load_raw() local 98 if (res < 0) in splash_load_raw() 117 int res; in splash_select_fs_dev() local 140 if (res) in splash_select_fs_dev() 143 return res; in splash_select_fs_dev() 185 int res; in splash_mount_ubifs() local 190 if (res) in splash_mount_ubifs() 239 if (res) in splash_load_fs() 243 if (res) in splash_load_fs() 247 if (res) { in splash_load_fs() [all …]
|
/u-boot/drivers/sysinfo/ |
A D | gazerbeam.c | 67 int res; in _read_sysinfo_variant_data() local 70 if (res) { in _read_sysinfo_variant_data() 73 return res; in _read_sysinfo_variant_data() 144 int res; in _read_hwversion() local 160 return res; in _read_hwversion() 169 return res; in _read_hwversion() 177 int res; in sysinfo_gazerbeam_detect() local 180 if (res) { in sysinfo_gazerbeam_detect() 183 return res; in sysinfo_gazerbeam_detect() 187 if (res) { in sysinfo_gazerbeam_detect() [all …]
|
/u-boot/drivers/misc/ |
A D | atsha204a-i2c.c | 181 int res; in atsha204a_recv_resp() local 186 if (res) in atsha204a_recv_resp() 194 if (res) in atsha204a_recv_resp() 251 int res; in atsha204a_idle() local 255 if (res) in atsha204a_idle() 262 int res; in atsha204a_sleep() local 266 if (res) in atsha204a_sleep() 277 if (res) { in atsha204a_transaction() 284 if (!res || res == -EMSGSIZE || res == -EBADMSG) in atsha204a_transaction() 335 if (!res) in atsha204a_read() [all …]
|
/u-boot/drivers/sysreset/ |
A D | sysreset_mpc83xx.c | 31 int res; in __do_reset() local 50 if (res) { in __do_reset() 53 return res; in __do_reset() 101 int res = 0; in print_83xx_arb_event() local 130 return res; in print_83xx_arb_event() 152 int res; in mpc83xx_sysreset_get_status() local 164 buf += res; in mpc83xx_sysreset_get_status() 165 size -= res; in mpc83xx_sysreset_get_status() 178 buf += res; in mpc83xx_sysreset_get_status() 199 buf += res; in mpc83xx_sysreset_get_status() [all …]
|
/u-boot/drivers/gpio/ |
A D | pca9698.c | 69 int res; in pca9698_direction_input() local 72 if (res) in pca9698_direction_input() 73 return res; in pca9698_direction_input() 83 int res; in pca9698_direction_output() local 86 if (res) in pca9698_direction_output() 87 return res; in pca9698_direction_output() 90 if (res) in pca9698_direction_output() 104 int res; in pca9698_get_value() local 107 if (res) in pca9698_get_value() 118 int res; in pca9698_set_value() local [all …]
|
/u-boot/cmd/ |
A D | osd.c | 36 int res; in cmd_osd_set_osd_num() local 39 if (res) { in cmd_osd_set_osd_num() 41 return res; in cmd_osd_set_osd_num() 92 int res; in do_osd_write() local 116 if (res) { in do_osd_write() 123 if (res) { in do_osd_write() 141 int res; in do_osd_print() local 157 if (res) { in do_osd_print() 169 int res; in do_osd_size() local 199 int res; in do_show_osd() local [all …]
|
/u-boot/scripts/ |
A D | setlocalversion | 129 local file res= 138 res="$res$(cat "$file")" 141 echo "$res" 146 res=$(scm_version) 147 echo "$res" >.scmversion 164 res="$(collect_files localversion*)" 166 res="$res$(collect_files "$srctree"/localversion*)" 170 res="${res}${CONFIG_LOCALVERSION}${LOCALVERSION}" 175 res="$res$(scm_version)" 183 res="$res${scm:++}" [all …]
|
/u-boot/drivers/tpm/ |
A D | tpm_atmel_twi.c | 75 int res; in tpm_atmel_twi_xfer() local 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() 122 res = dm_i2c_read(dev, 0, recvbuf, *recv_len); in tpm_atmel_twi_xfer() 127 if (res) { in tpm_atmel_twi_xfer() 135 if (!res) { in tpm_atmel_twi_xfer() [all …]
|
/u-boot/board/CZ.NIC/turris_mox/ |
A D | turris_mox.c | 562 int res; in node_by_path() local 568 return res; in node_by_path() 594 if (res < 0) in phandle_by_path() 595 return res; in phandle_by_path() 598 if (res < 0) in phandle_by_path() 599 return res; in phandle_by_path() 637 if (res < 0) in setup_switch() 638 return res; in setup_switch() 653 res = 0; in setup_switch() 655 if (res < 0) in setup_switch() [all …]
|
/u-boot/drivers/pci/ |
A D | pci_auto_common.c | 20 void pciauto_region_init(struct pci_region *res) in pciauto_region_init() argument 28 res->bus_lower = res->bus_start < 0x1000 ? 0x1000 : res->bus_start; in pciauto_region_init() 31 void pciauto_region_align(struct pci_region *res, pci_size_t size) in pciauto_region_align() argument 33 res->bus_lower = ((res->bus_lower - 1) | (size - 1)) + 1; in pciauto_region_align() 41 if (!res) { in pciauto_region_allocate() 46 addr = ((res->bus_lower - 1) | (size - 1)) + 1; in pciauto_region_allocate() 48 if (addr - res->bus_start + size > res->size) { in pciauto_region_allocate() 50 "need=%llx\n", (unsigned long long)res->bus_lower, in pciauto_region_allocate() 51 (unsigned long long)res->size, (unsigned long long)size); in pciauto_region_allocate() 60 res->bus_lower = addr + size; in pciauto_region_allocate() [all …]
|
/u-boot/drivers/net/phy/ |
A D | mv88e61xx.c | 269 int res; in mv88e61xx_reg_read() local 306 int res; in mv88e61xx_reg_write() local 362 int res; in mv88e61xx_phy_read_indirect() local 387 int res; in mv88e61xx_phy_write_indirect() local 446 int res; in mv88e61xx_get_switch_id() local 470 int res; in mv88e61xx_get_cmode() local 652 int res; in mv88e61xx_read_port_config() local 711 res = 0; in mv88e61xx_read_port_config() 818 int res; in mv88e61xx_switch_init() local 935 int res; in mv88e61xx_probe() local [all …]
|
/u-boot/drivers/video/ |
A D | ihs_video_out.c | 136 int res; in ihs_video_out_set_mem() local 163 if (res) { in ihs_video_out_set_mem() 165 return res; in ihs_video_out_set_mem() 205 int res; in ihs_video_out_print() local 239 int res; in ihs_video_out_probe() local 242 if (res) { in ihs_video_out_probe() 282 if (res) { in ihs_video_out_probe() 295 if (res) { in ihs_video_out_probe() 303 if (res) { in ihs_video_out_probe() 311 if (res) { in ihs_video_out_probe() [all …]
|
/u-boot/board/gdsys/a38x/ |
A D | hydra.c | 104 u32 res; in do_hydrate() local 107 res = readl(&fpga->reflection_low); in do_hydrate() 108 if (res != REFL_PATTERN_INV) in do_hydrate() 110 k, res, REFL_PATTERN_INV); in do_hydrate() 113 if (res != REFL_PATTERN) in do_hydrate() 115 k, res, REFL_PATTERN); in do_hydrate() 118 if (res) in do_hydrate() 119 printf("FrstErrPtr %u\n", res); in do_hydrate() 120 res = readl(pcie2_base + 0x104); in do_hydrate() 121 if (res) { in do_hydrate() [all …]
|
/u-boot/drivers/mailbox/ |
A D | zynqmp-ipi.c | 85 struct resource res; in zynqmp_ipi_probe() local 94 if (ofnode_read_resource_byname(node, "local_request_region", &res)) { in zynqmp_ipi_probe() 98 zynqmp->local_req_regs = devm_ioremap(dev, res.start, in zynqmp_ipi_probe() 99 (res.start - res.end)); in zynqmp_ipi_probe() 101 if (ofnode_read_resource_byname(node, "local_response_region", &res)) { in zynqmp_ipi_probe() 105 zynqmp->local_res_regs = devm_ioremap(dev, res.start, in zynqmp_ipi_probe() 106 (res.start - res.end)); in zynqmp_ipi_probe() 112 zynqmp->remote_req_regs = devm_ioremap(dev, res.start, in zynqmp_ipi_probe() 113 (res.start - res.end)); in zynqmp_ipi_probe() 119 zynqmp->remote_res_regs = devm_ioremap(dev, res.start, in zynqmp_ipi_probe() [all …]
|
/u-boot/post/lib_powerpc/ |
A D | cr.c | 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 286 ulong res; in cpu_post_test_cr() local 296 cpu_post_exec_11 (code, &res, test->cr); in cpu_post_test_cr() 298 ret = res == test->res ? 0 : -1; in cpu_post_test_cr() 309 ulong res; in cpu_post_test_cr() local [all …]
|
/u-boot/drivers/core/ |
A D | devres.c | 96 if (res) { in devres_free() 139 void *res; in devres_get() local 142 if (!res) { in devres_get() 144 res = new_res; in devres_get() 149 return res; in devres_get() 155 void *res; in devres_remove() local 158 if (res) { in devres_remove() 165 return res; in devres_remove() 171 void *res; in devres_destroy() local 177 devres_free(res); in devres_destroy() [all …]
|
/u-boot/arch/arm/mach-mvebu/ |
A D | efuse.c | 99 int res = 0; in prog_efuse() local 102 if (res) in prog_efuse() 103 return res; in prog_efuse() 129 return res; in prog_efuse() 153 int res; in mvebu_read_efuse() local 156 if (res) in mvebu_read_efuse() 157 return res; in mvebu_read_efuse() 202 int res; in fuse_read() local 208 if (res) in fuse_read() 216 return res; in fuse_read() [all …]
|
/u-boot/arch/arm/mach-tegra/ |
A D | pmc.c | 56 struct arm_smccc_res res; in tegra_pmc_readl() local 59 0, 0, 0, &res); in tegra_pmc_readl() 60 if (res.a0) in tegra_pmc_readl() 61 printf("%s(): SMC failed: %lu\n", __func__, res.a0); in tegra_pmc_readl() 63 return res.a1; in tegra_pmc_readl() 74 struct arm_smccc_res res; in tegra_pmc_writel() local 77 value, 0, 0, 0, 0, &res); in tegra_pmc_writel() 78 if (res.a0) in tegra_pmc_writel() 79 printf("%s(): SMC failed: %lu\n", __func__, res.a0); in tegra_pmc_writel()
|
/u-boot/include/ |
A D | div64.h | 166 u64 res, tmp; in __arch_xprod_64() local 174 res = m + (u64)m_lo * n_lo; in __arch_xprod_64() 176 res = (res >> 32) + tmp; in __arch_xprod_64() 181 res += (u64)m_lo * n_hi; in __arch_xprod_64() 182 res += (u64)m_hi * n_lo; in __arch_xprod_64() 183 res >>= 32; in __arch_xprod_64() 185 tmp = res += (u64)m_lo * n_hi; in __arch_xprod_64() 186 res += (u64)m_hi * n_lo; in __arch_xprod_64() 188 res = (res >> 32) + tmp; in __arch_xprod_64() 191 res += (u64)m_hi * n_hi; in __arch_xprod_64() [all …]
|