| /common/ |
| A D | mcheck_core.inc.h | 137 for (i = 0; i < CANARY_DEPTH; ++i) in mcheck_checkhdr() 141 for (i = 0; i < CANARY_DEPTH; ++i) in mcheck_checkhdr() 151 for (i = 0; i < padd_size; ++i) in mcheck_checkhdr() 157 for (i = 0; i < CANARY_DEPTH; ++i) in mcheck_checkhdr() 173 for (i = 0; i < CANARY_DEPTH; ++i) in mcheck_free_helper() 179 for (i = 0; i < REGISTRY_SZ; ++i) in mcheck_free_helper() 208 for (i = 0; i < CANARY_DEPTH; ++i) in mcheck_allocated_helper() 222 for (i = 0; i < CANARY_DEPTH; ++i) in mcheck_allocated_helper() 229 for (i = 0; i < REGISTRY_SZ; ++i) in mcheck_allocated_helper() 273 for (i = 0; i < REGISTRY_SZ; ++i) in mcheck_pedantic_check() [all …]
|
| A D | memtop.c | 27 long i; in add_mem_region() local 29 for (i = mem_rgn->count; i >= 0; i--) { in add_mem_region() 30 if (i && base < mem_rgn->rgn[i - 1].base) { in add_mem_region() 31 mem_rgn->rgn[i] = mem_rgn->rgn[i - 1]; in add_mem_region() 44 uint i; in mem_regions_init() local 47 for (i = 0; i < MEM_RGN_COUNT; i++) { in mem_regions_init() 68 for (i = 0; i < total; i++) { in fdt_add_reserved_regions() 74 i = 0; in fdt_add_reserved_regions() 113 for (i = 0; i < mem_rgn->count; i++) { in region_overlap_check() 121 return (i < mem_rgn->count) ? i : -1; in region_overlap_check() [all …]
|
| A D | flash.c | 31 int i; in flash_protect() local 54 for (i=0; i<info->sector_count; ++i) { in flash_protect() 57 end = (i == s_end) ? b_end : info->start[i + 1] - 1; in flash_protect() 67 info->protect[i] = 0; in flash_protect() 75 info->protect[i] = 1; in flash_protect() 90 int i; in addr2info() local 92 for (i = 0, info = &flash_info[0]; i < CFI_FLASH_BANKS; ++i, ++info) { in addr2info() 124 int i; in flash_write() local 144 for (i=0; i<info->sector_count; ++i) { in flash_write() 145 ulong e_addr = (i == s_end) ? b_end : info->start[i + 1]; in flash_write() [all …]
|
| A D | autoboot.c | 138 int i; in slow_equals() local 140 for (i = 0; i < len; i++) in slow_equals() 141 diff |= a[i] ^ b[i]; in slow_equals() 255 int i; in passwd_abort_key() local 266 for (i = 0; i < sizeof(delaykey) / sizeof(delaykey[0]); i++) { in passwd_abort_key() 267 delaykey[i].len = delaykey[i].str == NULL ? in passwd_abort_key() 277 delaykey[i].str ? delaykey[i].str : "NULL"); in passwd_abort_key() 288 for (i = 0; i < presskey_max - 1; i++) in passwd_abort_key() 289 presskey[i] = presskey[i + 1]; in passwd_abort_key() 295 for (i = 0; i < sizeof(delaykey) / sizeof(delaykey[0]); i++) { in passwd_abort_key() [all …]
|
| A D | iomux.c | 14 int i; in iomux_printdevs() local 24 int i; in iomux_match_device() local 26 for (i = 0; i < n; i++) in iomux_match_device() 27 if (sdev == set[i]) in iomux_match_device() 28 return i; in iomux_match_device() 52 i = 0; in iomux_doenv() 56 i++; in iomux_doenv() 69 i = 0; in iomux_doenv() 76 start[i] = temp + 1; in iomux_doenv() 132 for (i = 0; i < repeat; i++) { in iomux_doenv() [all …]
|
| A D | command.c | 33 int i; in _do_help() local 42 for (i = 0; i < cmd_items; i++) { in _do_help() 47 for (i = cmd_items - 1; i > 0; --i) { in _do_help() 64 for (i = 0; i < cmd_items; i++) { in _do_help() 80 for (i = 1; i < argc; ++i) { in _do_help() 350 for (i = 0; i < len; i++, t++, s++) { in find_common_prefix() 444 for (i = 0; i < len; i++) in cmd_auto_complete() 447 for (i = 0; i < seplen; i++) in cmd_auto_complete() 498 int i; in fixup_cmdtable() local 503 for (i = 0; i < size; i++) { in fixup_cmdtable() [all …]
|
| A D | usb_hub.c | 167 int i; in usb_hub_power_on() local 175 for (i = 0; i < dev->maxchild; i++) { in usb_hub_power_on() 449 int i; in usb_scan_port() local 453 i = usb_scan->port; in usb_scan_port() 528 i + 1); in usb_scan_port() 624 int i, length; in usb_hub_configure() local 668 for (i = 0; i < ((hub->desc.bNbrPorts + 1 + 7)/8); i++) in usb_hub_configure() 672 for (i = 0; i < ((hub->desc.bNbrPorts + 1 + 7)/8); i++) in usb_hub_configure() 766 for (i = 0; i < dev->maxchild; i++) in usb_hub_configure() 855 for (i = 0; i < dev->maxchild; i++) in usb_hub_configure() [all …]
|
| A D | cli_hush.c | 687 for (i = 0; i < pi->num_progs; i++) in builtin_fg_bg() 1094 if (i->p && *i->p) { 1134 if (i->p && *i->p) { 1245 for (i=0; i<3; i++) { 1432 for (i=0; i < fg_pipe->num_progs; i++) { 1591 for (i=0; child->argv[i]!=NULL; i++) { 1680 for (i = 0; i < pi->num_progs; i++) { 1946 for (i=0; i<pi->num_progs; i++) { 2085 for (i=0; i<pglob->gl_pathc; i++) 2908 for (i=1; i<global_argc; i++) { [all …]
|
| A D | hash.c | 345 int i; in hash_lookup_algo() local 347 for (i = 0; i < ARRAY_SIZE(hash_algo); i++) { in hash_lookup_algo() 361 int i; in hash_progressive_lookup_algo() local 363 for (i = 0; i < ARRAY_SIZE(hash_algo); i++) { in hash_progressive_lookup_algo() 381 int i; in hash_parse_string() local 387 for (i = 0; i < algo->digest_size; i++) { in hash_parse_string() 456 for (i = 0; i < algo->digest_size; i++) { in store_result() 536 int i; in hash_show() local 539 for (i = 0; i < algo->digest_size; i++) in hash_show() 595 int i; local [all …]
|
| A D | bootstage.c | 60 int i; in bootstage_relocate() local 75 for (i = 0; i < data->rec_count; i++) { in bootstage_relocate() 275 int i; in add_bootstages_devicetree() local 332 int i; in bootstage_report() local 340 for (i = 1, rec++; i < data->rec_count; i++, rec++) { in bootstage_report() 350 for (i = 0, rec = data->record; i < data->rec_count; i++, rec++) { in bootstage_report() 385 int i; in bootstage_stash() local 402 for (rec = data->record, i = 0; i < data->rec_count; i++, rec++) in bootstage_stash() 406 for (rec = data->record, i = 0; i < data->rec_count; i++, rec++) { in bootstage_stash() 433 int i; in bootstage_unstash() local [all …]
|
| A D | edid.c | 229 int i; in edid_check_checksum() local 231 for (i = 0; i < 128; i++) in edid_check_checksum() 241 int i; in edid_get_ranges() local 248 for (i = 0; i < ARRAY_SIZE(edid->monitor_details.descriptor); i++) { in edid_get_ranges() 358 i += EDID_CEA861_DB_LEN(*info, i) + 1; in cea_is_hdmi_vsdb_present() 372 int i; in edid_find_valid_detailed_timing() local 374 for (i = 0; i < count && !found; i++, t++) in edid_find_valid_detailed_timing() 433 for (i = 0; i < ARRAY_SIZE(buf->standard_timings); i++) { in edid_find_valid_standard_timing() 633 int i; in edid_print_info() local 730 for (i = 0; i < ARRAY_SIZE(edid_info->standard_timings); i++) { in edid_print_info() [all …]
|
| A D | console.c | 268 int i; in console_needs_start_stop() local 270 for (i = 0; i < ARRAY_SIZE(cd_count); i++) { in console_needs_start_stop() 326 int i; in console_putc() local 345 int i; in console_puts_select() local 382 int i; in console_puts() local 394 int i; in console_flush() local 913 int i; in confirm_yesno() local 925 i++; in confirm_yesno() 1172 for (i = 0; i < MAX_FILES; i++) in console_init_r() 1239 for (i = 0; i < MAX_FILES; i++) { in console_init_r() [all …]
|
| A D | log.c | 78 int i; in log_get_cat_by_name() local 80 for (i = LOGC_NONE; i < LOGC_COUNT; i++) in log_get_cat_by_name() 82 return i; in log_get_cat_by_name() 99 int i; in log_get_level_by_name() local 101 for (i = 0; i < LOGL_COUNT; i++) { in log_get_level_by_name() 103 return i; in log_get_level_by_name() 123 int i; in log_has_cat() local 125 for (i = 0; i < LOGF_MAX_CATEGORIES && cat_list[i] != LOGC_END; i++) { in log_has_cat() 341 int i; in log_add_filter_flags() local 353 for (i = 0; ; i++) { in log_add_filter_flags() [all …]
|
| A D | usb.c | 69 for (i = 0; i < USB_MAX_DEVICE; i++) { in usb_init() 75 for (i = 0; i < CONFIG_USB_MAX_CONTROLLER_COUNT; i++) { in usb_init() 132 int i; in usb_stop() local 139 for (i = 0; i < CONFIG_USB_MAX_CONTROLLER_COUNT; i++) { in usb_stop() 157 for (i = 0; i < usb_dev[j].maxchild; i++) { in usb_detect_change() 369 for (i = 0; i < dev->config.desc.bNumInterfaces; i++) in usb_set_maxpacket() 518 for (i = 0; i < head->bLength; i++) in usb_parse_config() 575 for (i = 0; i < 3; ++i) { in usb_get_descriptor() 653 for (i = 0; i < dev->config.desc.bNumInterfaces; i++) { in usb_set_interface() 755 for (i = 0; i < 3; ++i) { in usb_get_string() [all …]
|
| A D | usb_onboard_hub.c | 152 unsigned int i; in usb_onboard_hub_power_off() local 154 for (i = data->num_supplies; i > 0; i--) { in usb_onboard_hub_power_off() 155 if (hub->vdd[i-1]) { in usb_onboard_hub_power_off() 156 ret2 = regulator_set_enable_if_allowed(hub->vdd[i-1], false); in usb_onboard_hub_power_off() 172 unsigned int i; in usb_onboard_hub_probe() local 180 for (i = 0; i < data->num_supplies; i++) { in usb_onboard_hub_probe() 181 ret = device_get_supply_regulator(dev, data->supply_names[i], &hub->vdd[i]); in usb_onboard_hub_probe() 183 dev_err(dev, "can't get %s: %d\n", data->supply_names[i], ret); in usb_onboard_hub_probe() 187 if (hub->vdd[i]) { in usb_onboard_hub_probe() 188 ret = regulator_set_enable_if_allowed(hub->vdd[i], true); in usb_onboard_hub_probe() [all …]
|
| A D | cli_readline.c | 98 int i; in getcmd_putchars() local 100 for (i = 0; i < count; i++) in getcmd_putchars() 106 int i; in hist_init() local 109 for (i = 0; i < HIST_MAX; i++) { in hist_init() 110 hist_list[i] = hist_data[i]; in hist_init() 118 for (i = 0; i < HIST_MAX; i++) in hist_init() 119 hist_list[i] = hist + (i * (HIST_SIZE + 1)); in hist_init() 188 int i; in cread_print_hist_list() local 195 if (i > hist_max) in cread_print_hist_list() 196 i = 0; in cread_print_hist_list() [all …]
|
| A D | stdio.c | 262 int i; in stdio_deregister_dev() local 265 for (i = 0 ; i < MAX_FILES; i++) { in stdio_deregister_dev() 266 if (stdio_devices[i] == dev) { in stdio_deregister_dev() 268 strcpy(temp_names[i], "nulldev"); in stdio_deregister_dev() 274 strlcpy(&temp_names[i][0], stdio_devices[i]->name, in stdio_deregister_dev() 275 sizeof(temp_names[i])); in stdio_deregister_dev() 284 for (i = 0 ; i < MAX_FILES; i++) { in stdio_deregister_dev() 285 if (strcmp(dev->name, temp_names[i]) == 0) in stdio_deregister_dev() 286 stdio_devices[i] = dev; in stdio_deregister_dev()
|
| A D | s_record.c | 14 int i; in srec_decode() local 133 for (i=0; i < *count; ++i) { in srec_decode() 137 data[i] = v; in srec_decode() 167 int i, j; in hex2_bin() local 169 if ((i = hex1_bin(*s++)) < 0) { in hex2_bin() 176 return ((i<<4) + j); in hex2_bin()
|
| A D | ddr_spd.c | 14 unsigned int i; in spd_check() local 33 for (i = 0; i < 63; i++) { in spd_check() 71 int crc, i; in crc16() local 76 for (i = 0; i < 8; ++i) in crc16()
|
| A D | miiphyutil.c | 131 int i; in mdio_list_devices() local 136 for (i = 0; i < PHY_MAX_ADDR; i++) { in mdio_list_devices() 137 struct phy_device *phydev = bus->phymap[i]; in mdio_list_devices() 140 printf("%x - %s", i, phydev->drv->name); in mdio_list_devices() 182 int i; in mdio_phydev_for_ethname() local 185 for (i = 0; i < PHY_MAX_ADDR; i++) { in mdio_phydev_for_ethname() 186 if (!bus->phymap[i] || !bus->phymap[i]->dev) in mdio_phydev_for_ethname() 189 if (strcmp(bus->phymap[i]->dev->name, ethname) == 0) in mdio_phydev_for_ethname() 190 return bus->phymap[i]; in mdio_phydev_for_ethname()
|
| A D | avb_verify.c | 224 int i; in avb_find_dm_args() local 229 for (i = 0; i < AVB_MAX_ARGS && args[i]; ++i) { in avb_find_dm_args() 230 if (strstr(args[i], str)) in avb_find_dm_args() 231 return i; in avb_find_dm_args() 241 int i = 0; in avb_set_enforce_option() local 249 if (!cmdarg[i]) in avb_set_enforce_option() 254 __func__, i); in avb_set_enforce_option() 259 total_args = i; in avb_set_enforce_option() 261 if (i >= 0) { in avb_set_enforce_option() 265 if (i < 0) { in avb_set_enforce_option() [all …]
|
| A D | cli_hush_upstream.c | 3001 if (i->p && *i->p) { in get_user_input() 3225 memset(i, 0, sizeof(*i)); 3918 for (i = 0; i < pi->num_cmds; i++) { 4917 for (i = 0; i < pi->num_cmds; i++) { 7771 for (i = 0; i < count; i++) { 8540 for (i = 0; sq[i].orig_fd >= 0; i++) { 8596 if (sq) for (i = 0; sq[i].orig_fd >= 0; i++) { 9483 for (i = 0; i < pi->num_cmds; i++) { 9605 for (i = 0; i < pi->num_cmds; i++) { 12453 for (i = 0; i < NSIG; ++i) { [all …]
|
| /common/init/ |
| A D | handoff.c | 16 int i; in handoff_save_dram() local 20 for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) { in handoff_save_dram() 21 ho->ram_bank[i].start = bd->bi_dram[i].start; in handoff_save_dram() 22 ho->ram_bank[i].size = bd->bi_dram[i].size; in handoff_save_dram() 34 int i; in handoff_load_dram_banks() local 36 for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) { in handoff_load_dram_banks() 37 bd->bi_dram[i].start = ho->ram_bank[i].start; in handoff_load_dram_banks() 38 bd->bi_dram[i].size = ho->ram_bank[i].size; in handoff_load_dram_banks()
|
| /common/eeprom/ |
| A D | eeprom_field.c | 17 int i; in __eeprom_field_print_bin() local 22 for (i = from; i != to; reverse ? i-- : i++) in __eeprom_field_print_bin() 25 printf("%02x\n", field->buf[i]); in __eeprom_field_print_bin() 32 int k, j, i = reverse ? len - 1 : 0; in __eeprom_field_update_bin() local 47 if ((reverse && i < 0) || (!reverse && i >= len)) in __eeprom_field_update_bin() 51 if (reverse && i == 0) { in __eeprom_field_update_bin() 52 tmp[k] = value[i]; in __eeprom_field_update_bin() 56 tmp[k] = value[reverse ? i - 1 + k : i + k]; in __eeprom_field_update_bin() 64 i = reverse ? i - 2 : i + 2; in __eeprom_field_update_bin() 74 int i, val; in __eeprom_field_update_bin_delim() local [all …]
|
| A D | eeprom_layout.c | 52 int i; in eeprom_layout_print() local 55 for (i = 0; i < layout->num_of_fields; i++) in eeprom_layout_print() 56 fields[i].print(&fields[i]); in eeprom_layout_print() 70 for (int i = 0; i < layout->num_of_fields; i++) in eeprom_layout_find_field() local 71 if (layout->fields[i].name != RESERVED_FIELDS && in eeprom_layout_find_field() 72 !strcmp(layout->fields[i].name, field_name)) in eeprom_layout_find_field() 73 return &layout->fields[i]; in eeprom_layout_find_field() 123 int i; in eeprom_layout_setup() local 136 for (i = 0; i < layout->num_of_fields; i++) { in eeprom_layout_setup() 137 layout->fields[i].buf = buf; in eeprom_layout_setup() [all …]
|