/u-boot/drivers/rtc/ |
A D | m41t60.c | 62 uchar data[8]; in rtc_dump() local 64 if (i2c_read(CONFIG_SYS_I2C_RTC_ADDR, 0, 1, data, sizeof(data))) { in rtc_dump() 69 label, data[0], data[1], data[2], data[3], in rtc_dump() 70 data[4], data[5], data[6], data[7]); in rtc_dump() 117 if (0x59 < data[RTC_SEC] || 0x09 < (data[RTC_SEC] & 0x0F) || in rtc_validate() 119 0x23 < data[RTC_HOUR] || 0x09 < (data[RTC_HOUR] & 0x0F) || in rtc_validate() 120 0x07 < data[RTC_DAY] || 0x00 == data[RTC_DAY] || in rtc_validate() 145 return data; in rtc_validate() 152 if (!data) in rtc_get() 176 if (!data) in rtc_set() [all …]
|
A D | m41t11.c | 76 uchar data[RTC_REG_CNT]; in rtc_get() local 80 if( data[RTC_SEC_ADDR] & 0x80 ){ in rtc_get() 84 tmp->tm_sec = bcd2bin (data[RTC_SEC_ADDR] & 0x7F); in rtc_get() 85 tmp->tm_min = bcd2bin (data[RTC_MIN_ADDR] & 0x7F); in rtc_get() 91 + bcd2bin(data[RTC_YEARS_ADDR]) in rtc_get() 92 + ((data[RTC_HOUR_ADDR]&0x40) ? 100 : 0); in rtc_get() 97 if( !(data[RTC_HOUR_ADDR] & 0x80) ){ in rtc_get() 122 uchar data[RTC_REG_CNT]; in rtc_set() local 129 data[RTC_MIN_ADDR] = bin2bcd(tmp->tm_min); in rtc_set() 132 data[RTC_MONTH_ADDR] = bin2bcd(tmp->tm_mon); in rtc_set() [all …]
|
/u-boot/common/ |
A D | usb_kbd.c | 134 if (data->usb_in_pointer == data->usb_out_pointer - 1) in usb_kbd_put_queue() 140 data->usb_kbd_buffer[data->usb_in_pointer] = c; in usb_kbd_put_queue() 326 if ((data->new[2] > 3) && (data->old[2] == data->new[2])) in usb_kbd_irq_worker() 327 res |= usb_kbd_translate(data, data->new[2], data->new[0], 2); in usb_kbd_irq_worker() 332 memcpy(data->old, data->new, USB_KBD_BOOT_REPORT_SIZE); in usb_kbd_irq_worker() 357 if (usb_int_msg(dev, data->intpipe, &data->new[0], 358 data->intpktsize, data->intinterval, true) >= 0) 376 data->intq = create_int_queue(dev, data->intpipe, 1, 437 return data->usb_kbd_buffer[data->usb_out_pointer]; 518 data->intq = create_int_queue(dev, data->intpipe, 1, [all …]
|
A D | bootstage.c | 88 for (rec = data->record, end = rec + data->rec_count; rec < end; in find_id() 104 rec = &data->record[data->rec_count++]; in ensure_id() 123 if (!data) in bootstage_add_record() 131 rec = &data->record[data->rec_count++]; in bootstage_add_record() 344 qsort(data->record, data->rec_count, sizeof(*rec), h_compare_record); in bootstage_report() 356 for (i = 0, rec = data->record; i < data->rec_count; i++, rec++) { in bootstage_report() 408 for (rec = data->record, i = 0; i < data->rec_count; i++, rec++) in bootstage_stash() 412 for (rec = data->record, i = 0; i < data->rec_count; i++, rec++) { in bootstage_stash() 483 memcpy(data->record + data->rec_count, ptr, rec_size); in bootstage_unstash() 487 for (rec = data->record + data->next_id, i = 0; i < hdr->count; in bootstage_unstash() [all …]
|
/u-boot/board/hisilicon/hikey960/ |
A D | hikey960.c | 91 u32 data; in hikey960_sd_init() local 94 data = readl(SCTRL_SCFPLLCTRL0); in hikey960_sd_init() 101 data |= 6; in hikey960_sd_init() 105 data |= 2; in hikey960_sd_init() 113 data |= 5; in hikey960_sd_init() 117 data |= 2; in hikey960_sd_init() 150 data |= (1 << 30); in hikey960_sd_init() 159 data = readl(CRG_PEREN4); in hikey960_sd_init() 160 data |= (1 << 17); in hikey960_sd_init() 161 writel(data, CRG_PEREN4); in hikey960_sd_init() [all …]
|
/u-boot/drivers/input/ |
A D | twl4030.c | 12 u8 data; in twl4030_input_power_button() local 25 u8 data; in twl4030_input_charger() local 38 u8 data; in twl4030_input_usb() local 52 u8 data; in twl4030_keypad_scan() local 56 TWL4030_KEYPAD_KEYP_CTRL_REG, &data); in twl4030_keypad_scan() 59 data &= ~TWL4030_KEYPAD_CTRL_SOFTMODEN; in twl4030_keypad_scan() 65 data = 0xff & ~(1 << c); in twl4030_keypad_scan() 67 TWL4030_KEYPAD_KBC_REG, data); in twl4030_keypad_scan() 69 data = 0xff; in twl4030_keypad_scan() 71 TWL4030_KEYPAD_KBR_REG, &data); in twl4030_keypad_scan() [all …]
|
/u-boot/tools/ |
A D | lpc32xximage.c | 32 uint32_t data[129]; member 92 if (hdr->data[0] != (0xff & LPC32XX_BOOT_ICR)) in lpc32xximage_verify_header() 94 if (hdr->data[1] != (0xff & ~LPC32XX_BOOT_ICR)) in lpc32xximage_verify_header() 96 if (hdr->data[2] != (0xff & LPC32XX_BOOT_ICR)) in lpc32xximage_verify_header() 116 if (hdr->data[12] != LPC32XX_BOOT_BLOCK_OK) in lpc32xximage_verify_header() 118 if (hdr->data[128] != LPC32XX_BOOT_BLOCK_OK) in lpc32xximage_verify_header() 152 hdr->data[0] = (hdr->data[2] = 0xff & LPC32XX_BOOT_ICR); in lpc32xximage_set_header() 153 hdr->data[1] = (hdr->data[3] = 0xff & ~LPC32XX_BOOT_ICR); in lpc32xximage_set_header() 154 hdr->data[4] = (hdr->data[6] = (hdr->data[8] in lpc32xximage_set_header() 156 hdr->data[5] = (hdr->data[7] = (hdr->data[9] in lpc32xximage_set_header() [all …]
|
/u-boot/drivers/clk/uniphier/ |
A D | clk-uniphier-core.c | 83 for (data = priv->data; data->type != UNIPHIER_CLK_TYPE_END; data++) in uniphier_clk_get_data() 101 parent_id = data->data.gate.parent_id; in uniphier_clk_get_parent_data() 126 uniphier_clk_gate_enable(priv, &data->data.gate); in __uniphier_clk_enable() 141 if (!data) in uniphier_clk_enable() 156 return data->data.rate.fixed_rate; in __uniphier_clk_get_rate() 171 if (!data) in uniphier_clk_get_rate() 190 return data->data.rate.fixed_rate; in __uniphier_clk_set_rate() 203 for (i = 0; i < data->data.mux.num_parents; i++) { in __uniphier_clk_set_rate() 204 parent_id = data->data.mux.parent_ids[i]; in __uniphier_clk_set_rate() 226 uniphier_clk_mux_set_parent(priv, &data->data.mux, in __uniphier_clk_set_rate() [all …]
|
/u-boot/arch/arm/mach-stm32mp/cmd_stm32prog/ |
A D | stm32prog_serial.c | 92 data->dfu_seq); in stm32prog_write() 98 data->dfu_seq++; in stm32prog_write() 117 data->phase, data->dfu_seq); in stm32prog_read() 146 (data->read_phase != phase || data->offset != offset)) in stm32prog_read() 176 data->offset = 0; in stm32prog_read() 401 if (data->header.image_checksum != data->checksum) { in stm32prog_start() 434 u8 data; in get_address() local 437 *tmp_xor ^= data; in get_address() 442 *tmp_xor ^= data; in get_address() 446 *tmp_xor ^= data; in get_address() [all …]
|
/u-boot/board/hisilicon/hikey/ |
A D | hikey.c | 157 uint32_t data; in hi6220_clk_enable() local 160 data |= bitfield; in hi6220_clk_enable() 173 uint32_t data; in hi6220_clk_disable() local 201 } while (data); in board_usb_init() 207 data |= 0x300; in board_usb_init() 251 uint32_t data; in mmc1_init_pll() local 292 data |= 3 << 2; in mmc1_reset_clk() 297 data |= 1 << 4; in mmc1_reset_clk() 325 data |= 3; in mmc0_reset_clk() 330 data |= 1 << 3; in mmc0_reset_clk() [all …]
|
/u-boot/drivers/gpio/ |
A D | mpc8xxx_gpio.c | 49 if (data->little_endian) in mpc8xxx_gpio_get_val() 59 if (data->little_endian) in mpc8xxx_gpio_get_dir() 69 if (data->little_endian) in mpc8xxx_gpio_open_drain_val() 80 if (data->little_endian) in mpc8xxx_gpio_open_drain_on() 91 if (data->little_endian) in mpc8xxx_gpio_open_drain_off() 103 if (data->little_endian) in mpc8xxx_gpio_direction_input() 119 data->dat_shadow |= mask; in mpc8xxx_gpio_set_value() 121 data->dat_shadow &= ~mask; in mpc8xxx_gpio_set_value() 124 if (data->little_endian) in mpc8xxx_gpio_set_value() 131 if (data->little_endian) { in mpc8xxx_gpio_set_value() [all …]
|
/u-boot/board/ge/common/ |
A D | vpd_reader.c | 146 if (data[ID] != HEADER_BLOCK_ID || data[LEN] != HEADER_BLOCK_LEN || in vpd_reader() 147 data[VER] != 0 || data[TYP] != 0 || in vpd_reader() 172 bch_configuration.prim_poly, &data[data[LEN]], in vpd_reader() 173 offset - data[LEN], &data[offset + BLOCK_SIZE], in vpd_reader() 184 data += data[LEN]; in vpd_reader() 196 ret = fn(userdata, data[ID], data[VER], data[TYP], in vpd_reader() 197 data[LEN] - BLOCK_SIZE, &data[BLOCK_SIZE]); in vpd_reader() 209 u8 *data; in read_i2c_vpd() local 223 if (!data) in read_i2c_vpd() 228 free(data); in read_i2c_vpd() [all …]
|
/u-boot/drivers/phy/marvell/ |
A D | comphy_cp110.c | 111 u32 data; in polling_with_timeout() local 119 return data; in polling_with_timeout() 233 mask = data; in comphy_usb3_power_up() 234 data = polling_with_timeout(addr, data, mask, 15000); in comphy_usb3_power_up() 498 mask = data; in comphy_rxauii_power_up() 499 data = polling_with_timeout(addr, data, mask, 15000); in comphy_rxauii_power_up() 517 mask = data; in comphy_rxauii_power_up() 518 data = polling_with_timeout(addr, data, mask, 100); in comphy_rxauii_power_up() 666 data = polling_with_timeout(addr, data, mask, 100); in comphy_utmi_power_up() 675 data = polling_with_timeout(addr, data, mask, 100); in comphy_utmi_power_up() [all …]
|
/u-boot/arch/arm/mach-keystone/ |
A D | clock.c | 65 pllm = data->pll_m - 1; in configure_mult_div() 69 if (data->pll == MAIN_PLL) in configure_mult_div() 96 pllod = data->pll_od - 1; in configure_main_pll() 108 bypass_main_pll(data); in configure_main_pll() 118 bypass_main_pll(data); in configure_main_pll() 121 configure_mult_div(data); in configure_main_pll() 128 wait_for_completion(data); in configure_main_pll() 175 configure_mult_div(data); in configure_secondary_pll() 207 if (data->pll == MAIN_PLL) in init_pll() 226 if (data) in init_plls() [all …]
|
/u-boot/drivers/video/ |
A D | hx8238d.c | 100 u16 data[2]; member 104 { .data = { HX8238D_OUTPUT_CTRL_ADDR, HX8238D_OUTPUT_CTRL } }, 105 { .data = { HX8238D_LCD_AC_CTRL_ADDR, HX8238D_LCD_AC_CTRL } }, 106 { .data = { HX8238D_POWER_CTRL_1_ADDR, HX8238D_POWER_CTRL_1 } }, 109 { .data = { HX8238D_LED_CTRL_ADDR, HX8238D_LED_CTRL } }, 112 { .data = { HX8238D_POWER_CTRL_2_ADDR, HX8238D_POWER_CTRL_2 } }, 113 { .data = { HX8238D_POWER_CTRL_3_ADDR, HX8238D_POWER_CTRL_3 } }, 141 sr_buf[1] = (cmd.data[0] >> 8) & 0xff; in hx8238d_generate_reg_buffers() 142 sr_buf[2] = (cmd.data[0]) & 0xff; in hx8238d_generate_reg_buffers() 145 wr_buf[1] = (cmd.data[1] >> 8) & 0xff; in hx8238d_generate_reg_buffers() [all …]
|
/u-boot/arch/x86/cpu/slimbootloader/ |
A D | sdram.c | 22 struct sbl_memory_map_info *data; in get_memory_map_info() local 29 if (!data) in get_memory_map_info() 31 if (!data->count) in get_memory_map_info() 34 return data; in get_memory_map_info() 53 struct sbl_memory_map_info *data; in board_get_usable_ram_top() local 59 data = get_memory_map_info(); in board_get_usable_ram_top() 69 addr_start = data->entry[i].addr; in board_get_usable_ram_top() 102 struct sbl_memory_map_info *data; in dram_init() local 106 data = get_memory_map_info(); in dram_init() 116 ram_size = data->entry[i].addr + data->entry[i].size; in dram_init() [all …]
|
A D | serial.c | 21 struct sbl_serial_port_info *data; in slimbootloader_serial_of_to_plat() local 28 if (!data) { in slimbootloader_serial_of_to_plat() 33 data->type, in slimbootloader_serial_of_to_plat() 34 data->base, in slimbootloader_serial_of_to_plat() 35 data->baud, in slimbootloader_serial_of_to_plat() 36 data->stride, in slimbootloader_serial_of_to_plat() 37 data->clk); in slimbootloader_serial_of_to_plat() 39 plat->base = data->base; in slimbootloader_serial_of_to_plat() 42 plat->reg_width = data->stride; in slimbootloader_serial_of_to_plat() 43 plat->clock = data->clk; in slimbootloader_serial_of_to_plat() [all …]
|
/u-boot/board/softing/vining_fpga/ |
A D | socfpga.c | 56 uchar data[128]; in misc_init_r() local 62 ret = eeprom_read(0x50, 0, data, sizeof(data)); in misc_init_r() 69 if (!(data[0] == 0xa5 && data[1] == 0x5a)) { in misc_init_r() 80 serial = (data[0x54] << 24) | (data[0x55] << 16) | in misc_init_r() 81 (data[0x56] << 8) | (data[0x57] << 0); in misc_init_r() 89 memcpy(str, &data[0x2e], 18); in misc_init_r() 94 if (!env_get("ethaddr") && is_valid_ethaddr(&data[0x62])) in misc_init_r() 95 eth_env_set_enetaddr("ethaddr", &data[0x62]); in misc_init_r() 96 if (!env_get("eth1addr") && is_valid_ethaddr(&data[0x6a])) in misc_init_r() 97 eth_env_set_enetaddr("eth1addr", &data[0x6a]); in misc_init_r()
|
/u-boot/cmd/ |
A D | i2c.c | 876 data = cpu_to_be32(data); in mod_i2c_mem() 905 data = data << 24; in mod_i2c_mem() 907 data = data << 16; in mod_i2c_mem() 908 data = be32_to_cpu(data); in mod_i2c_mem() 1245 (data[62] >> 4) & 0x0F, data[62] & 0x0F); in do_sdram() 1309 (data[7] << 8) | data[6]); in do_sdram() 1331 (data[9] >> 4) & 0x0F, data[9] & 0x0F); in do_sdram() 1338 (data[10] >> 4) & 0x0F, data[10] & 0x0F); in do_sdram() 1342 (data[10] >> 4) & 0x0F, data[10] & 0x0F); in do_sdram() 1587 (data[32] >> 4) & 0x07, data[32] & 0x0F); in do_sdram() [all …]
|
/u-boot/drivers/power/ |
A D | twl4030.c | 54 u8 data; in twl4030_power_off() local 58 data = 0xCE; in twl4030_power_off() 60 TWL4030_PM_MASTER_PROTECT_KEY, data); in twl4030_power_off() 61 data = 0xEC; in twl4030_power_off() 63 TWL4030_PM_MASTER_PROTECT_KEY, data); in twl4030_power_off() 88 TWL4030_PM_MASTER_CFG_PWRANA2, &data); in twl4030_power_off() 92 TWL4030_PM_MASTER_CFG_PWRANA2, data); in twl4030_power_off() 96 data = 0xFF; in twl4030_power_off() 98 TWL4030_PM_MASTER_PROTECT_KEY, data); in twl4030_power_off() 103 TWL4030_PM_MASTER_P1_SW_EVENTS, &data); in twl4030_power_off() [all …]
|
A D | exynos-tmu.c | 86 struct tmu_data data; member 143 struct tmu_data *data = &gbl_info.data; in tmu_monitor() local 158 (cur_temp <= data->ts.max_val)) in tmu_monitor() 161 if (cur_temp >= data->ts.start_warning) in tmu_monitor() 165 (cur_temp >= data->ts.min_val)) in tmu_monitor() 243 error |= (info->data.slope == -1); in get_tmu_fdt_values() 272 struct tmu_data *data = &info->data; in tmu_setup_parameters() local 284 (info->te1 > data->efuse_max_value) in tmu_setup_parameters() 286 info->te1 = data->efuse_value; in tmu_setup_parameters() 289 warning_code = data->ts.start_warning in tmu_setup_parameters() [all …]
|
/u-boot/drivers/usb/cdns3/ |
A D | cdns3-ti.c | 80 return readl(data->usbss + offset); in cdns_ti_readl() 85 writel(value, data->usbss + offset); in cdns_ti_writel() 98 data->dev = dev; in cdns_ti_probe() 101 if (!data->usbss) in cdns_ti_probe() 125 reg = cdns_ti_readl(data, USBSS_W1); in cdns_ti_probe() 127 cdns_ti_writel(data, USBSS_W1, reg); in cdns_ti_probe() 136 if (data->vbus_divider) in cdns_ti_probe() 143 reg = cdns_ti_readl(data, USBSS_W1); in cdns_ti_probe() 145 if (data->usb2_only) in cdns_ti_probe() 159 cdns_ti_writel(data, USBSS_W1, reg); in cdns_ti_probe() [all …]
|
/u-boot/scripts/dtc/ |
A D | data.c | 39 struct data data_grow_for(struct data d, int xlen) in data_grow_for() 41 struct data nd; in data_grow_for() 61 struct data d; in data_copy_mem() 74 struct data d; in data_copy_escape_string() 154 struct data data_merge(struct data d1, struct data d2) in data_merge() 156 struct data d; in data_merge() 210 struct data data_append_cell(struct data d, cell_t word) in data_append_cell() 215 struct data data_append_addr(struct data d, uint64_t addr) in data_append_addr() 220 struct data data_append_byte(struct data d, uint8_t byte) in data_append_byte() 225 struct data data_append_zeroes(struct data d, int len) in data_append_zeroes() [all …]
|
/u-boot/fs/zfs/ |
A D | zfs.c | 1857 data = malloc(sizeof(*data)); in zfs_mount() 1860 memset(data, 0, sizeof(*data)); in zfs_mount() 2014 &(data->dnode), &isfs, data); in zfs_open() 2066 file->data = data; in zfs_open() 2085 data->file_start = data->file_end = 0; in zfs_read() 2126 data->file_end = data->file_start + blksz; in zfs_read() 2160 &(data->dnode), &isfs, data); in zfs_getmdnobj() 2220 dnode_get(&(data->mdn), val, 0, &dn, data); in iterate_zap() 2289 err = dnode_get_fullpath(path, &(data->mdn), 0, &(data->dnode), &isfs, data); in zfs_ls() 2300 fill_fs_info(&info, data->dnode, data); in zfs_ls() [all …]
|
/u-boot/test/ |
A D | bloblist.c | 94 char *data; in bloblist_test_blob() local 130 void *data, *data2; in bloblist_test_blob_ensure() local 164 void *data; in bloblist_test_bad_blob() local 168 data = hdr + 1; in bloblist_test_bad_blob() 180 char *data, *data2; in bloblist_test_checksum() local 218 *data += 1; in bloblist_test_checksum() 220 *data -= 1; in bloblist_test_checksum() 232 data[TEST_SIZE]++; in bloblist_test_checksum() 244 char *data, *data2; in bloblist_test_cmd_info() local 298 char *data; in bloblist_test_align() local [all …]
|