/openbmc/u-boot/drivers/fastboot/ |
H A D | fb_mmc.c | 1 // SPDX-License-Identifier: GPL-2.0+ 10 #include <fastboot-internal.h> 12 #include <image-sparse.h> 21 #define BOOT_PARTITION_NAME "boot" 50 * fb_mmc_blk_write() - Write/erase MMC in chunks of FASTBOOT_MAX_BLK_WRITE 63 lbaint_t blks = 0; in fb_mmc_blk_write() local 67 cur_blkcnt = min((int)blkcnt - i, FASTBOOT_MAX_BLK_WRITE); in fb_mmc_blk_write() 72 buffer + (i * block_dev->blksz)); in fb_mmc_blk_write() 79 blks += blks_written; in fb_mmc_blk_write() 81 return blks; in fb_mmc_blk_write() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/mtd/ |
H A D | rockchip,nand-controller.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mtd/rockchip,nand-controller.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - $ref: nand-controller.yaml# 13 - Heiko Stuebner <heiko@sntech.de> 18 - const: rockchip,px30-nfc 19 - const: rockchip,rk2928-nfc 20 - const: rockchip,rv1108-nfc 21 - items: [all …]
|
/openbmc/linux/include/linux/ |
H A D | efs_vh.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 #define BFNAMESIZE 16 /* max 16 chars in boot file name */ 26 __be32 pt_nblks; /* # of logical blks in partition */ 35 char vh_bootfile[BFNAMESIZE]; /* name of file to boot */ 43 /* partition type sysv is used for EFS format CD-ROM partitions */
|
/openbmc/u-boot/arch/arm/mach-keystone/ |
H A D | ddr3.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * (C) Copyright 2012-2014 15 #include <asm/ti-common/ti-edma3.h> 32 __raw_writel(phy_cfg->pllcr, base + KS2_DDRPHY_PLLCR_OFFSET); in ddr3_init_ddrphy() 35 tmp &= ~(phy_cfg->pgcr1_mask); in ddr3_init_ddrphy() 36 tmp |= phy_cfg->pgcr1_val; in ddr3_init_ddrphy() 39 __raw_writel(phy_cfg->ptr0, base + KS2_DDRPHY_PTR0_OFFSET); in ddr3_init_ddrphy() 40 __raw_writel(phy_cfg->ptr1, base + KS2_DDRPHY_PTR1_OFFSET); in ddr3_init_ddrphy() 41 __raw_writel(phy_cfg->ptr3, base + KS2_DDRPHY_PTR3_OFFSET); in ddr3_init_ddrphy() 42 __raw_writel(phy_cfg->ptr4, base + KS2_DDRPHY_PTR4_OFFSET); in ddr3_init_ddrphy() [all …]
|
/openbmc/u-boot/common/ |
H A D | usb_storage.c | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * (c) 1999-2002 Matthew Dharm (mdharm-usb@one-eyed-alien.net) 6 * (c) 2000 David L. Brown, Jr. (usb-storage@davidb.org) 11 * Adapted for U-Boot: 43 #include <dm/device-internal.h> 53 /* direction table -- this indicates the direction of the data 54 * transfer for each command code -- a 1 indicates input 107 #define USB_STOR_TRANSPORT_FAILED -1 108 #define USB_STOR_TRANSPORT_ERROR -2 147 printf(" Device %d: ", desc->devnum); in usb_stor_info() [all …]
|
H A D | avb_verify.c | 4 * SPDX-License-Identifier: GPL-2.0+ 125 * Boot states support (GREEN, YELLOW, ORANGE, RED) and dm_verity 136 data = (struct AvbOpsData *)ops->user_data; in avb_set_state() 140 data->boot_state = boot_state; in avb_set_state() 179 return -1; in avb_find_dm_args() 186 return -1; in avb_find_dm_args() 264 unsigned long blks; in mmc_read_and_flush() local 269 if (start < part->info.start) { in mmc_read_and_flush() 273 if ((start + sectors) > (part->info.start + part->info.size)) { in mmc_read_and_flush() 274 sectors = part->info.start + part->info.size - start; in mmc_read_and_flush() [all …]
|
/openbmc/linux/arch/powerpc/boot/ |
H A D | mktree.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * The Right Thing on an LE machine. It's non-obvious, but it should 26 * bytes allocated after the _start label used by the boot rom (see 32 uint32_t bb_num_512blocks; /* Size, rounded-up, in 512 byte blks */ 51 fprintf(stderr, "usage: %s <zImage-file> <boot-image> <load address> <entry point>\n",argv[0]); in main() 77 /* To be neat and tidy :-). in main() 115 nblks -= (64 * 1024) / IMGBLK; in main() 120 perror("boot-image write"); in main() 124 while (nblks-- > 0) { in main() 133 perror("boot-image write"); in main() [all …]
|
/openbmc/linux/arch/arm/boot/dts/rockchip/ |
H A D | rk3066a-mk808.dts | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 6 /dts-v1/; 7 #include <dt-bindings/input/input.h> 20 stdout-path = "serial2:115200n8"; 28 adc-keys { 29 compatible = "adc-keys"; 30 io-channels = <&saradc 1>; 31 io-channel-names = "buttons"; 32 keyup-threshold-microvolt = <2500000>; 33 poll-interval = <100>; [all …]
|
/openbmc/u-boot/disk/ |
H A D | part_efi.c | 1 // SPDX-License-Identifier: GPL-2.0+ 32 * efi_crc32() - EFI version of crc32 function 34 * @len - length of buf 36 * Description: Returns EFI-style CRC32 value for @buf 61 c = pte->partition_name[i] & 0xff; in print_efiname() 73 return p->attributes.fields.legacy_bios_bootable || in is_bootable() 74 !memcmp(&(p->partition_type_guid), &system_guid, in is_bootable() 85 if (le64_to_cpu(gpt_h->signature) != GPT_HEADER_SIGNATURE_UBOOT) { in validate_gpt_header() 88 le64_to_cpu(gpt_h->signature), in validate_gpt_header() 90 return -1; in validate_gpt_header() [all …]
|
H A D | part_dos.c | 1 // SPDX-License-Identifier: GPL-2.0+ 13 * http://developer.apple.com/techpubs/mac/Devices/Devices-126.html#MARKER-14-92 50 return (p->sys_ind == 0xef) || (p->boot_ind == 0x80); in is_bootable() 56 lbaint_t lba_start = ext_part_sector + le32_to_int (p->start4); in print_one_part() 57 lbaint_t lba_size = le32_to_int (p->size4); in print_one_part() 59 printf("%3d\t%-10" LBAFlength "u\t%-10" LBAFlength in print_one_part() 60 "u\t%08x-%02x\t%02x%s%s\n", in print_one_part() 61 part_num, lba_start, lba_size, disksig, part_num, p->sys_ind, in print_one_part() 62 (is_extended(p->sys_ind) ? " Extd" : ""), in print_one_part() 63 (is_bootable(p) ? " Boot" : "")); in print_one_part() [all …]
|
/openbmc/linux/drivers/scsi/ |
H A D | st.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 Copyright 1992 - 2016 Kai Makisara 16 Some small formal changes - aeb, 950809 18 Last modified: 18-JAN-1998 Richard Gooch <rgooch@atnf.csiro.au> Devfs support 62 is defined and non-zero. */ 159 6-byte SCSI read and write commands. */ 160 #if ST_FIXED_BUFFER_SIZE >= (2 << 24 - 1) 161 #error "Buffer size should not exceed (2 << 24 - 1) bytes!" 174 /* Remove mode bits and auto-rewind bit (7) */ 176 (iminor(x) & ((1 << ST_MODE_SHIFT)-1))) [all …]
|
/openbmc/qemu/pc-bios/s390-ccw/ |
H A D | bootmap.h | 2 * QEMU S390 bootmap interpreter -- declarations 8 * your option) any later version. See the COPYING file in the top-level 14 #include "s390-ccw.h" 45 uint8_t count; /* (size_in_blocks-1); 62 /* bptr is used for CCW type IPL, while ldptr is for list-directed IPL */ 80 uint8_t reserved[510 - 32]; 204 uint32_t formatted; /* Max number of fmtd cyls/blks */ 219 /* from zipl/include/boot.h */ 320 EckdCHS br; /* Location of Boot Record for list-directed IPL */ 384 /* El Torito specifies boot image size in 512 byte blocks */ [all …]
|
/openbmc/linux/drivers/net/wireless/ti/wlcore/ |
H A D | wlcore.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 15 #include "boot.h" 41 int (*boot)(struct wl1271 *wl); member 52 u32 blks, u32 spare_blks); 257 /* Time-offset between host and chipset clocks */ 313 /* Pointer that holds DMA-friendly block for the mailbox */ 376 * AP-mode - links indexed by HLID. The global and broadcast links 387 /* AP-mode - a bitmap of links currently in PS mode according to FW */ 390 /* AP-mode - a bitmap of links currently in PS mode in mac80211 */ 402 /* AP-mode - number of currently connected stations */ [all …]
|
/openbmc/linux/drivers/net/wireless/ti/wl12xx/ |
H A D | main.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 2008-2010 Nokia Corporation 20 #include "../wlcore/boot.h" 280 .rssi_threshold = -90, 415 /* TI-specific rate */ 445 /* TI-specific rate */ 589 #define WL127X_FW_NAME_MULTI "ti-connectivity/wl127x-fw-5-mr.bin" 590 #define WL127X_FW_NAME_SINGLE "ti-connectivity/wl127x-fw-5-sr.bin" 591 #define WL127X_PLT_FW_NAME "ti-connectivity/wl127x-fw-5-plt.bin" 593 #define WL128X_FW_NAME_MULTI "ti-connectivity/wl128x-fw-5-mr.bin" [all …]
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | rockchip-nand-controller.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 5 * Author: Yifeng Zhao <yifeng.zhao@rock-chips.com> 10 #include <linux/dma-mapping.h> 30 * nand_chip->oob_poi data layout: 62 #define DMA_INC_NUM (9) /* 1 - 16 */ 197 return (u8 *)p + i * chip->ecc.size; in rk_nfc_buf_to_data_ptr() 204 poi = chip->oob_poi + i * NFC_SYS_DATA_SIZE; in rk_nfc_buf_to_oob_ptr() 214 poi = chip->oob_poi + rknand->metadata_size + chip->ecc.bytes * i; in rk_nfc_buf_to_oob_ecc_ptr() 221 return chip->ecc.size + chip->ecc.bytes + NFC_SYS_DATA_SIZE; in rk_nfc_data_len() 228 return nfc->page_buf + i * rk_nfc_data_len(chip); in rk_nfc_data_ptr() [all …]
|
/openbmc/linux/drivers/net/wireless/ti/wl18xx/ |
H A D | main.c | 1 // SPDX-License-Identifier: GPL-2.0-only 22 #include "../wlcore/boot.h" 40 static int num_rx_desc_param = -1; 43 static int dc2dc_param = -1; 44 static int n_antennas_2_param = -1; 45 static int n_antennas_5_param = -1; 46 static int low_band_component_param = -1; 47 static int low_band_component_type_param = -1; 48 static int high_band_component_param = -1; 49 static int high_band_component_type_param = -1; [all …]
|
/openbmc/linux/drivers/misc/bcm-vk/ |
H A D | bcm_vk_dev.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright 2018-2020 Broadcom. 7 #include <linux/dma-mapping.h> 49 {VK_IMAGE_TYPE_BOOT1, {"vk_a0-boot1.bin", "vk-boot1.bin"}}, 50 {VK_IMAGE_TYPE_BOOT2, {"vk_a0-boot2.bin", "vk-boot2.bin"}} 53 {VK_IMAGE_TYPE_BOOT1, {"vk_b0-boot1.bin", "vk-boot1.bin"}}, 54 {VK_IMAGE_TYPE_BOOT2, {"vk_b0-boot2.bin", "vk-boot2.bin"}} 58 {VK_IMAGE_TYPE_BOOT1, {"vp-boot1.bin", ""}}, 59 {VK_IMAGE_TYPE_BOOT2, {"vp-boot2.bin", ""}} 88 /* Ucode boot wait time */ [all …]
|
/openbmc/linux/fs/ext4/ |
H A D | ext4.h | 1 // SPDX-License-Identifier: GPL-2.0 7 * Laboratoire MASI - Institut Blaise Pascal 38 #include <linux/percpu-rwsem.h> 61 * with DOUBLE_CHECK defined mballoc creates persistent in-core 77 printk(KERN_DEBUG "EXT4-fs DEBUG (%s, %d): %s:", \ 95 pr_debug("[%s/%d] EXT4-fs (%s): ino %lu: (%s, %d): %s:" fmt, \ 96 current->comm, task_pid_nr(current), \ 97 ino->i_sb->s_id, ino->i_ino, __FILE__, __LINE__, \ 116 /* data type for filesystem-wide blocks number */ 146 * Tries to lookup in-memory data structures to find the most [all …]
|