/u-boot/drivers/video/ |
A D | ati_radeon_fb.c | 324 mode->dac_cntl = 0xff002100; in radeon_setmode() 329 mode->crtc_pitch = 0x00500050; in radeon_setmode() 343 mode->clk_cntl_index = 0x300; in radeon_setmode() 344 mode->ppll_ref_div = 0xc; in radeon_setmode() 345 mode->ppll_div_3 = 0x00030059; in radeon_setmode() 398 mode->ppll_div_3 = 0x00010078; in radeon_setmode_9200() 401 mode->ppll_div_3 = 0x00010060; in radeon_setmode_9200() 429 mode->ppll_div_3 = 0x0002008c; in radeon_setmode_9200() 530 mode->clk_cntl_index = 0x300; in radeon_setmode_9200() 531 mode->ppll_ref_div = 0xc; in radeon_setmode_9200() [all …]
|
A D | videomodes.c | 164 int mode; in video_get_params() local 184 mode = 0; /* default */ in video_get_params() 187 GET_OPTION ("mode:", mode) in video_get_params() 193 if (mode >= RES_MODES_COUNT) in video_get_params() 194 mode = 0; in video_get_params() 197 bpp = 24 - ((mode % 3) * 8); in video_get_params() 415 mode->pixclock = 1000000000L / mode->pixclock_khz; in video_edid_dtd_to_ctfb_res_modes() 420 (mode->right_margin + mode->hsync_len); in video_edid_dtd_to_ctfb_res_modes() 424 mode->left_margin = margin; in video_edid_dtd_to_ctfb_res_modes() 429 (mode->lower_margin + mode->vsync_len); in video_edid_dtd_to_ctfb_res_modes() [all …]
|
A D | efi.c | 55 struct efi_entry_gopmode *mode; in save_vesa_mode() local 60 ret = efi_info_get(EFIET_GOP_MODE, (void **)&mode, &size); in save_vesa_mode() 66 vesa->phys_base_ptr = mode->fb_base; in save_vesa_mode() 67 vesa->x_resolution = mode->info->width; in save_vesa_mode() 68 vesa->y_resolution = mode->info->height; in save_vesa_mode() 70 if (mode->info->pixel_format < EFI_GOT_BITMASK) { in save_vesa_mode() 84 efi_find_pixel_bits(mode->info->pixel_bitmask[0], in save_vesa_mode() 87 efi_find_pixel_bits(mode->info->pixel_bitmask[1], in save_vesa_mode() 90 efi_find_pixel_bits(mode->info->pixel_bitmask[2], in save_vesa_mode() 93 efi_find_pixel_bits(mode->info->pixel_bitmask[3], in save_vesa_mode() [all …]
|
/u-boot/drivers/clk/ |
A D | mpc83xx_clk.h | 166 mode->low = low; in set_mode() 167 mode->high = high; in set_mode() 168 mode->type = type; in set_mode() 194 set_mode(mode, 0, 0, TYPE_SPECIAL); in retrieve_mode() 204 set_mode(mode, 0, 1, TYPE_SCCR_STANDARD); in retrieve_mode() 208 set_mode(mode, 2, 3, TYPE_SCCR_STANDARD); in retrieve_mode() 213 set_mode(mode, 4, 5, TYPE_SCCR_STANDARD); in retrieve_mode() 216 set_mode(mode, 6, 7, TYPE_SCCR_STANDARD); in retrieve_mode() 237 set_mode(mode, 8, 9, TYPE_SCCR_STANDARD); in retrieve_mode() 240 set_mode(mode, 15, 15, TYPE_SCCR_ONOFF); in retrieve_mode() [all …]
|
/u-boot/drivers/video/sunxi/ |
A D | lcdc.c | 22 delay = mode->vfront_porch.typ + mode->vsync_len.typ + in lcdc_get_clk_delay() 23 mode->vback_porch.typ; in lcdc_get_clk_delay() 95 bp = mode->hsync_len.typ + mode->hback_porch.typ; in lcdc_tcon0_mode_set() 96 total = mode->hactive.typ + mode->hfront_porch.typ + bp; in lcdc_tcon0_mode_set() 100 bp = mode->vsync_len.typ + mode->vback_porch.typ; in lcdc_tcon0_mode_set() 101 total = mode->vactive.typ + mode->vfront_porch.typ + bp; in lcdc_tcon0_mode_set() 168 yres = mode->vactive.typ; in lcdc_tcon1_mode_set() 178 bp = mode->hsync_len.typ + mode->hback_porch.typ; in lcdc_tcon1_mode_set() 179 total = mode->hactive.typ + mode->hfront_porch.typ + bp; in lcdc_tcon1_mode_set() 183 bp = mode->vsync_len.typ + mode->vback_porch.typ; in lcdc_tcon1_mode_set() [all …]
|
A D | sunxi_display.c | 386 writel(SUNXI_DE_FE_HEIGHT(mode->yres) | SUNXI_DE_FE_WIDTH(mode->xres), in sunxi_frontend_mode_set() 388 writel(SUNXI_DE_FE_HEIGHT(mode->yres) | SUNXI_DE_FE_WIDTH(mode->xres), in sunxi_frontend_mode_set() 702 if (mode->xres * 100 / mode->yres < 156) 757 writel(SUNXI_HDMI_Y(mode->yres) | SUNXI_HDMI_X(mode->xres), 760 x = mode->hsync_len + mode->left_margin; 761 y = mode->vsync_len + mode->upper_margin; 1103 mode = &custom; 1110 mode = &custom; 1140 mode = &custom; 1175 (mode->xres * mode->yres * 4 + 0xfff) & ~0xfff; [all …]
|
/u-boot/board/xilinx/zynq/ |
A D | board.c | 37 const char *mode; in board_late_init() local 51 mode = "qspi"; in board_late_init() 55 mode = "nand"; in board_late_init() 59 mode = "nor"; in board_late_init() 63 mode = "mmc0"; in board_late_init() 67 mode = "jtag pxe dhcp"; in board_late_init() 71 mode = ""; in board_late_init() 84 new_targets = calloc(1, strlen(mode) + env_targets_len + 2); in board_late_init() 88 sprintf(new_targets, "%s %s", mode, in board_late_init()
|
/u-boot/arch/arm/mach-zynq/ |
A D | spl.c | 45 u32 mode; in spl_boot_device() local 50 mode = BOOT_DEVICE_SPI; in spl_boot_device() 54 mode = BOOT_DEVICE_NAND; in spl_boot_device() 57 mode = BOOT_DEVICE_NOR; in spl_boot_device() 61 mode = BOOT_DEVICE_MMC1; in spl_boot_device() 65 mode = BOOT_DEVICE_RAM; in spl_boot_device() 72 return mode; in spl_boot_device()
|
/u-boot/arch/arm/mach-imx/ |
A D | video.c | 29 panel = dev->mode.name; in board_video_skip() 35 panel = displays[0].mode.name; in board_video_skip() 41 if (!strcmp(panel, displays[i].mode.name)) in board_video_skip() 47 ret = ipuv3_fb_init(&displays[i].mode, displays[i].di ? 1 : 0, in board_video_skip() 54 displays[i].mode.name, in board_video_skip() 55 displays[i].mode.xres, in board_video_skip() 56 displays[i].mode.yres); in board_video_skip() 59 if (!strcmp(displays[i].mode.name, "HDMI")) in board_video_skip() 64 displays[i].mode.name, ret); in board_video_skip()
|
/u-boot/test/dm/ |
A D | spi.c | 26 const int busnum = 0, cs = 0, mode = 0, speed = 1000000, cs_b = 2; in dm_test_spi_find() local 49 ut_asserteq(-ENODEV, spi_get_bus_and_cs(busnum, cs, speed, mode, in dm_test_spi_find() 70 ut_assertok(spi_get_bus_and_cs(busnum, cs, speed, mode, in dm_test_spi_find() 122 ut_asserteq(slave_a->mode, sandbox_spi_get_mode(bus)); in dm_test_spi_switch_slaves() 128 ut_asserteq(slave_b->mode, sandbox_spi_get_mode(bus)); in dm_test_spi_switch_slaves() 134 ut_asserteq(slave_a->mode, sandbox_spi_get_mode(bus)); in dm_test_spi_switch_slaves() 145 const int busnum = 0, cs_a = 0, cs_b = 1, mode = 0; in dm_test_spi_claim_bus() local 156 ut_assert(slave_a->mode != slave_b->mode); in dm_test_spi_claim_bus() 160 slave_a->mode = slave_b->mode; in dm_test_spi_claim_bus() 168 slave_a->mode = slave_plat->mode; in dm_test_spi_claim_bus() [all …]
|
/u-boot/board/samsung/common/ |
A D | misc.c | 274 switch (mode) { in mode_leave_menu() 286 mode_info[mode]); in mode_leave_menu() 288 mode_info[mode]); in mode_leave_menu() 297 mode_name[mode][0]); in mode_leave_menu() 342 selection[mode] = "[=>]"; in display_download_menu() 356 int mode = 0; in download_menu() local 394 if (mode != last_mode) in download_menu() 397 last_mode = mode; in download_menu() 406 if (mode > 0) in download_menu() 407 mode--; in download_menu() [all …]
|
/u-boot/arch/arm/mach-versal/ |
A D | mp.c | 29 void set_r5_halt_mode(u8 halt, u8 mode) in set_r5_halt_mode() argument 40 if (mode == TCM_LOCK) { in set_r5_halt_mode() 50 void set_r5_tcm_mode(u8 mode) in set_r5_tcm_mode() argument 55 if (mode == TCM_LOCK) { in set_r5_tcm_mode() 68 void release_r5_reset(u8 mode) in release_r5_reset() argument 77 if (mode == TCM_LOCK) in release_r5_reset() 92 void initialize_tcm(bool mode) in initialize_tcm() argument 94 if (!mode) { in initialize_tcm() 107 void tcm_init(u8 mode) in tcm_init() argument 110 initialize_tcm(mode); in tcm_init()
|
/u-boot/board/xilinx/versal/ |
A D | board.c | 114 const char *mode; in board_late_init() local 132 mode = "dfu_usb"; in board_late_init() 136 mode = "jtag pxe dhcp"; in board_late_init() 140 mode = "xspi0"; in board_late_init() 144 mode = "xspi0"; in board_late_init() 148 mode = "xspi0"; in board_late_init() 158 mode = "mmc"; in board_late_init() 170 mode = "mmc"; in board_late_init() 185 mode = "mmc"; in board_late_init() 189 mode = ""; in board_late_init() [all …]
|
/u-boot/drivers/video/meson/ |
A D | meson_venc.c | 703 if (mode->hactive.typ < 640 || mode->hactive.typ > 1920) in meson_venc_hdmi_supported_mode() 706 if (mode->vactive.typ < 480 || mode->vactive.typ > 1200) in meson_venc_hdmi_supported_mode() 822 total_pixels_venc = mode->hback_porch.typ + mode->hactive.typ + in meson_venc_hdmi_mode_set() 823 mode->hfront_porch.typ + mode->hsync_len.typ; in meson_venc_hdmi_mode_set() 959 lines_f0 = mode->vback_porch.typ + mode->vactive.typ + in meson_venc_hdmi_mode_set() 960 mode->vback_porch.typ + mode->vsync_len.typ; in meson_venc_hdmi_mode_set() 1284 mode->vactive.typ + in meson_venc_hdmi_mode_set() 1387 writel(mode->hso_begin, in meson_venci_cvbs_mode_set() 1389 writel(mode->hso_end, in meson_venci_cvbs_mode_set() 1393 writel(mode->vso_even, in meson_venci_cvbs_mode_set() [all …]
|
/u-boot/doc/ |
A D | README.fsl-esdhc | 4 ESDHC IP is in little-endian mode. Accessing ESDHC registers can be 5 determined by ESDHC IP's endian mode or processor's endian mode. 7 ESDHC IP is in big-endian mode. Accessing ESDHC registers can be determined 8 by ESDHC IP's endian mode or processor's endian mode.
|
/u-boot/fs/reiserfs/ |
A D | mode_string.c | 27 #warning mode type bitflag value assumption(s) violated! falling back to larger version 50 const char *bb_mode_string(int mode) in bb_mode_string() argument 57 *p = type_chars[ (mode >> 12) & 0xf ]; in bb_mode_string() 63 if (mode & mode_flags[i+j]) { in bb_mode_string() 68 if (mode & mode_flags[i+j]) { in bb_mode_string() 90 const char *bb_mode_string(int mode) in bb_mode_string() argument 97 *p = type_chars[ (mode >> 12) & 0xf ]; in bb_mode_string() 104 if (mode & m) { in bb_mode_string() 111 if (mode & (010000 >> i)) { in bb_mode_string()
|
/u-boot/drivers/spi/ |
A D | spi-uclass.c | 58 uint speed, mode; in dm_spi_claim_bus() local 61 mode = slave->mode; in dm_spi_claim_bus() 72 if (speed != spi->speed || mode != spi->mode) { in dm_spi_claim_bus() 79 spi->mode = mode; in dm_spi_claim_bus() 224 slave->mode = plat->mode; in spi_child_pre_probe() 378 plat->mode = mode; in spi_get_bus_and_cs() 448 int mode = 0; in spi_slave_of_to_plat() local 455 mode |= SPI_CPOL; in spi_slave_of_to_plat() 457 mode |= SPI_CPHA; in spi_slave_of_to_plat() 461 mode |= SPI_3WIRE; in spi_slave_of_to_plat() [all …]
|
A D | mpc8xxx_spi.c | 90 out_be32(&priv->spi->mode, SPI_MODE_REV | SPI_MODE_MS); in mpc8xxx_spi_probe() 95 setbits_be32(&spi->mode, SPI_MODE_EN); in mpc8xxx_spi_probe() 217 u32 mode; in mpc8xxx_spi_set_speed() local 236 mode = in_be32(&spi->mode); in mpc8xxx_spi_set_speed() 237 if ((mode & mask) != bits) { in mpc8xxx_spi_set_speed() 239 mode &= ~(mask | SPI_MODE_EN); in mpc8xxx_spi_set_speed() 240 out_be32(&spi->mode, mode); in mpc8xxx_spi_set_speed() 241 mode |= bits; in mpc8xxx_spi_set_speed() 242 out_be32(&spi->mode, mode); in mpc8xxx_spi_set_speed() 243 mode |= SPI_MODE_EN; in mpc8xxx_spi_set_speed() [all …]
|
/u-boot/drivers/power/regulator/ |
A D | max77686.c | 489 mode = 0xff; in max77686_ldo_mode() 492 if (mode == 0xff) { in max77686_ldo_mode() 498 val |= mode; in max77686_ldo_mode() 592 mode = 0xff; in max77686_buck_mode() 603 mode = 0xff; in max77686_buck_mode() 610 mode = 0xff; in max77686_buck_mode() 619 val |= mode; in max77686_buck_mode() 707 int mode; in ldo_get_mode() local 714 return mode; in ldo_get_mode() 771 int mode; in buck_get_mode() local [all …]
|
/u-boot/lib/zlib/ |
A D | inflate.c | 17 state->mode = HEAD; in inflateReset() 354 if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */ in inflate() 360 switch (state->mode) { in inflate() 423 state->mode = TIME; in inflate() 430 state->mode = OS; in inflate() 473 state->mode = NAME; in inflate() 514 state->mode = HCRC; in inflate() 530 state->mode = TYPE; in inflate() 722 state->mode = LEN; in inflate() 849 state->mode = LEN; in inflate() [all …]
|
/u-boot/drivers/gpio/ |
A D | kw_gpio.c | 62 int kw_gpio_is_valid(unsigned pin, int mode) in kw_gpio_is_valid() argument 65 if ((mode & GPIO_INPUT_OK) && !test_bit(pin, gpio_valid_input)) in kw_gpio_is_valid() 68 if ((mode & GPIO_OUTPUT_OK) && !test_bit(pin, gpio_valid_output)) in kw_gpio_is_valid() 78 void kw_gpio_set_valid(unsigned pin, int mode) in kw_gpio_set_valid() argument 80 if (mode == 1) in kw_gpio_set_valid() 81 mode = GPIO_INPUT_OK | GPIO_OUTPUT_OK; in kw_gpio_set_valid() 82 if (mode & GPIO_INPUT_OK) in kw_gpio_set_valid() 86 if (mode & GPIO_OUTPUT_OK) in kw_gpio_set_valid()
|
/u-boot/lib/efi_selftest/ |
A D | efi_selftest_textoutput.c | 59 col = con_out->mode->cursor_column; in execute() 65 if (con_out->mode->cursor_column != col) { in execute() 74 if (con_out->mode->cursor_column) { in execute() 83 if (con_out->mode->cursor_column != 3) { in execute() 92 if (con_out->mode->cursor_column != 2) { in execute() 101 if (con_out->mode->cursor_column) { in execute() 110 if (con_out->mode->cursor_column) { in execute() 117 } else if (con_out->mode->cursor_column != 2) { in execute()
|
/u-boot/arch/arc/lib/ |
A D | libgcc2.h | 32 typedef int QItype __attribute__ ((mode (QI))); 33 typedef unsigned int UQItype __attribute__ ((mode (QI))); 34 typedef int HItype __attribute__ ((mode (HI))); 35 typedef unsigned int UHItype __attribute__ ((mode (HI))); 38 typedef int SItype __attribute__ ((mode (SI))); 39 typedef unsigned int USItype __attribute__ ((mode (SI))); 42 typedef int DItype __attribute__ ((mode (DI))); 43 typedef unsigned int UDItype __attribute__ ((mode (DI))); 46 typedef int TItype __attribute__ ((mode (TI))); 47 typedef unsigned int UTItype __attribute__ ((mode (TI))); [all …]
|
/u-boot/drivers/led/ |
A D | led_bcm6328.c | 43 void __iomem *mode; member 50 return ((readl_be(priv->mode) >> priv->shift) & LED_MODE_MASK); in bcm6328_led_get_mode() 55 clrsetbits_be32(priv->mode, (LED_MODE_MASK << priv->shift), in bcm6328_led_set_mode() 56 (mode << priv->shift)); in bcm6328_led_set_mode() 87 unsigned long mode; in bcm6328_led_set_state() local 92 mode = LED_MODE_BLINK; in bcm6328_led_set_state() 96 mode = (priv->active_low ? LED_MODE_ON : LED_MODE_OFF); in bcm6328_led_set_state() 99 mode = (priv->active_low ? LED_MODE_OFF : LED_MODE_ON); in bcm6328_led_set_state() 111 return bcm6328_led_set_mode(priv, mode); in bcm6328_led_set_state() 187 priv->mode = priv->regs + LED_MODE_REG_HI; in bcm6328_led_probe() [all …]
|
/u-boot/drivers/ddr/marvell/a38x/ |
A D | ddr3_training_centralization.c | 92 if (mode == CENTRAL_TX) { in ddr3_tip_centralization() 109 bus_end_window[mode][if_id][bus_id] = in ddr3_tip_centralization() 156 ((mode == in ddr3_tip_centralization() 310 bus_end_window[mode][if_id] in ddr3_tip_centralization() 316 bus_end_window[mode][if_id] in ddr3_tip_centralization() 330 bus_start_window[mode] in ddr3_tip_centralization() 332 bus_end_window[mode] in ddr3_tip_centralization() 360 [mode][if_id][bus_id] == in ddr3_tip_centralization() 363 [mode][if_id][bus_id] - in ddr3_tip_centralization() 444 ((mode == CENTRAL_TX) ? in ddr3_tip_centralization() [all …]
|