| /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/common/spl/ |
| A D | spl_ymodem.c | 49 if (res <= 0) in ymodem_read_fit() 66 memcpy(addr, &buf[buf_offset - res], res); in ymodem_read_fit() 73 if (res <= 0) in ymodem_read_fit() 82 addr += res; in ymodem_read_fit() 95 int res; in spl_ymodem_load_image() local 110 if (res <= 0) in spl_ymodem_load_image() 119 size += res; in spl_ymodem_load_image() 120 addr += res; in spl_ymodem_load_image() 124 size += res; in spl_ymodem_load_image() 162 size += res; in spl_ymodem_load_image() [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/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/common/ |
| A D | splash_source.c | 118 int res; in splash_load_raw() local 144 int res; in splash_select_fs_dev() local 167 if (res) in splash_select_fs_dev() 170 return res; in splash_select_fs_dev() 222 int res; in splash_mount_ubifs() local 227 if (res) in splash_mount_ubifs() 279 if (res) in splash_load_fs() 283 if (res) in splash_load_fs() 287 if (res) { in splash_load_fs() 348 int res; in splash_load_fit() local [all …]
|
| /u-boot/drivers/misc/ |
| A D | atsha204a-i2c.c | 66 int res; in atsha204a_recv_resp() local 71 if (res) in atsha204a_recv_resp() 79 if (res) in atsha204a_recv_resp() 117 if (res) { in atsha204a_wakeup() 137 int res; in atsha204a_idle() local 141 if (res) in atsha204a_idle() 148 int res; in atsha204a_sleep() local 152 if (res) in atsha204a_sleep() 163 if (res) { in atsha204a_transaction() 171 if (!res || res == -EMSGSIZE || res == -EBADMSG) in atsha204a_transaction() [all …]
|
| /u-boot/drivers/rng/ |
| A D | smccc_trng.c | 84 struct arm_smccc_res res; in smccc_trng_read() local 106 switch (res.a0) { in smccc_trng_read() 137 struct arm_smccc_res res; in smccc_trng_is_supported() local 144 if (res.a0 & BIT(31)) in smccc_trng_is_supported() 149 0, 0, 0, 0, 0, 0, &res); in smccc_trng_is_supported() 153 0, 0, 0, 0, 0, 0, &res); in smccc_trng_is_supported() 167 struct arm_smccc_res res; in smccc_trng_probe() local 174 0, 0, 0, 0, 0, 0, &res); in smccc_trng_probe() 180 unsigned long uuid_a0 = res.a0; in smccc_trng_probe() 181 unsigned long uuid_a1 = res.a1; in smccc_trng_probe() [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/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 …]
|
| A D | pci_mps.c | 27 int res = 0, addr; in pci_mps_find_safe() local 43 if (res != 0) in pci_mps_find_safe() 44 return res; in pci_mps_find_safe() 51 return res; in pci_mps_find_safe() 70 if (res != 0) in pci_mps_set_bus() 71 return res; in pci_mps_set_bus() 83 return res; in pci_mps_set_bus() 92 int i, res = 0; in pci_mps_set() local 102 res == 0; in pci_mps_set() 108 return res; in pci_mps_set() [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 165 res="$(collect_files localversion*)" 167 res="$res$(collect_files "$srctree"/localversion*)" 171 res="${res}${CONFIG_LOCALVERSION}${LOCALVERSION}" 176 res="$res$(scm_version)" 184 res="$res${scm:++}" [all …]
|
| /u-boot/arch/arm/mach-mvebu/ |
| A D | efuse.c | 137 if (res) in prog_efuse() 159 if (res) in prog_efuse() 166 return res; in prog_efuse() 171 int i, res; in mvebu_prog_ld_efuse() local 175 if (res) in mvebu_prog_ld_efuse() 193 if (res) in mvebu_prog_ld_efuse() 232 int res; in mvebu_read_efuse() local 235 if (res) in mvebu_read_efuse() 297 int res; in fuse_read() local 301 if (res) in fuse_read() [all …]
|
| /u-boot/drivers/net/phy/ |
| A D | mv88e61xx.c | 261 int res; in mv88e61xx_reg_read() local 298 int res; in mv88e61xx_reg_write() local 354 int res; in mv88e61xx_phy_read_indirect() local 379 int res; in mv88e61xx_phy_write_indirect() local 438 int res; in mv88e61xx_get_switch_id() local 462 int res; in mv88e61xx_get_cmode() local 644 int res; in mv88e61xx_read_port_config() local 703 res = 0; in mv88e61xx_read_port_config() 810 int res; in mv88e61xx_switch_init() local 927 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/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/arch/mips/mach-octeon/ |
| A D | cvmx-helper-pko3.c | 171 int res; in __cvmx_pko3_config_chan_interface() local 296 if (res < 0) in __cvmx_pko3_config_chan_interface() 298 dq = res; in __cvmx_pko3_config_chan_interface() 306 if (res < 0) in __cvmx_pko3_config_chan_interface() 311 if (res < 0) in __cvmx_pko3_config_chan_interface() 341 int res; in __cvmx_pko3_config_pfc_interface() local 1022 int res; in __cvmx_helper_pko3_init_global() local 1038 return res; in __cvmx_helper_pko3_init_global() 1070 res = -1; in cvmx_helper_pko3_init_global() 1073 res = 0; in cvmx_helper_pko3_init_global() [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/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/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/net/ |
| A D | mv88e6xxx.c | 189 int res; in mv88e6xxx_reg_read() local 197 if (res < 0) in mv88e6xxx_reg_read() 198 return res; in mv88e6xxx_reg_read() 203 if (res < 0) in mv88e6xxx_reg_read() 204 return res; in mv88e6xxx_reg_read() 208 if (res < 0) in mv88e6xxx_reg_read() 224 int res; in mv88e6xxx_reg_write() local 275 int res; in mv88e6xxx_phy_read_indirect() local 296 int res; in mv88e6xxx_phy_write_indirect() local 349 int res; in mv88e6xxx_get_switch_id() local [all …]
|
| /u-boot/board/CZ.NIC/turris_mox/ |
| A D | turris_mox.c | 738 if (res < 0) in setup_switch() 739 return res; in setup_switch() 746 if (res < 0) in setup_switch() 747 return res; in setup_switch() 762 res = 0; in setup_switch() 764 if (res < 0) in setup_switch() 765 return res; in setup_switch() 791 if (res < 0) in setup_switch() 792 return res; in setup_switch() 800 int res; in ft_board_setup() local [all …]
|
| /u-boot/drivers/tpm/ |
| A D | tpm_atmel_twi.c | 79 int res; in tpm_atmel_twi_xfer() local 88 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 = dm_i2c_read(dev, 0, recvbuf, 10))) in tpm_atmel_twi_xfer() 105 if (!res) { in tpm_atmel_twi_xfer() 116 res = dm_i2c_read(dev, 0, recvbuf, *recv_len); in tpm_atmel_twi_xfer() 119 if (res) { in tpm_atmel_twi_xfer() 120 printf("i2c_read returned %d (rlen=%zu)\n", res, *recv_len); in tpm_atmel_twi_xfer() 127 if (!res) { in tpm_atmel_twi_xfer() [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()
|