Home
last modified time | relevance | path

Searched +full:boot +full:- +full:blks (Results 1 – 20 of 20) sorted by relevance

/OK3568_Linux_fs/u-boot/common/
H A Dfb_mmc.c4 * SPDX-License-Identifier: GPL-2.0+
12 #include <image-sparse.h>
43 #define BOOT_PARTITION_NAME "boot"
79 lbaint_t blks = 0; in fb_mmc_blk_write() local
82 cur_blkcnt = min((int)blkcnt-i, FASTBOOT_MAX_BLK_WRITE); in fb_mmc_blk_write()
86 buffer+(i*block_dev->blksz)); in fb_mmc_blk_write()
92 blks += blks_written; in fb_mmc_blk_write()
94 return blks; in fb_mmc_blk_write()
100 struct fb_mmc_sparse *sparse = info->priv; in fb_mmc_sparse_write()
101 struct blk_desc *dev_desc = sparse->dev_desc; in fb_mmc_sparse_write()
[all …]
H A Dusb_storage.c4 * (c) 1999-2002 Matthew Dharm (mdharm-usb@one-eyed-alien.net)
5 * (c) 2000 David L. Brown, Jr. (usb-storage@davidb.org)
10 * Adapted for U-Boot:
21 * SPDX-License-Identifier: GPL-2.0+
45 #include <dm/device-internal.h>
55 /* direction table -- this indicates the direction of the data
56 * transfer for each command code -- a 1 indicates input
109 #define USB_STOR_TRANSPORT_FAILED -1
110 #define USB_STOR_TRANSPORT_ERROR -2
149 printf(" Device %d: ", desc->devnum); in usb_stor_info()
[all …]
H A Dimage-android.c4 * SPDX-License-Identifier: GPL-2.0+
19 #include <u-boot/sha1.h>
37 ((_num_bytes + _block_size - 1) / _block_size)
53 return -1; in android_version_init()
60 return -1; in android_version_init()
64 return -1; in android_version_init()
66 os_version = hdr->os_version; in android_version_init()
71 hdr->header_version); in android_version_init()
79 static int android_version = -1; /* static */ in android_bcb_msg_sector_offset()
87 * defines it at 0x00 offset, and from Android-10 it becoms mandary in android_bcb_msg_sector_offset()
[all …]
/OK3568_Linux_fs/u-boot/fs/ext4/
H A Dext4_sparse.c4 * SPDX-License-Identifier: GPL-2.0+
10 #include <image-sparse.h>
11 #include <u-boot/sha256.h>
14 #define PER_BLK_WRITE_SIZE SZ_8M /* Avoid -ENOMEM, eg: bounce buffer */
22 printf(" magic: 0x%x\n", header->magic); in print_header_info()
23 printf(" major_version: 0x%x\n", header->major_version); in print_header_info()
24 printf(" minor_version: 0x%x\n", header->minor_version); in print_header_info()
25 printf(" file_hdr_sz: %d\n", header->file_hdr_sz); in print_header_info()
26 printf(" chunk_hdr_sz: %d\n", header->chunk_hdr_sz); in print_header_info()
27 printf(" blk_sz: %d\n", header->blk_sz); in print_header_info()
[all …]
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mtd/
H A Drockchip,nand-controller.yaml1 # 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 …]
/OK3568_Linux_fs/u-boot/arch/arm/mach-keystone/
H A Dddr3.c4 * (C) Copyright 2012-2014
7 * SPDX-License-Identifier: GPL-2.0+
16 #include <asm/ti-common/ti-edma3.h>
33 __raw_writel(phy_cfg->pllcr, base + KS2_DDRPHY_PLLCR_OFFSET); in ddr3_init_ddrphy()
36 tmp &= ~(phy_cfg->pgcr1_mask); in ddr3_init_ddrphy()
37 tmp |= phy_cfg->pgcr1_val; in ddr3_init_ddrphy()
40 __raw_writel(phy_cfg->ptr0, base + KS2_DDRPHY_PTR0_OFFSET); in ddr3_init_ddrphy()
41 __raw_writel(phy_cfg->ptr1, base + KS2_DDRPHY_PTR1_OFFSET); in ddr3_init_ddrphy()
42 __raw_writel(phy_cfg->ptr3, base + KS2_DDRPHY_PTR3_OFFSET); in ddr3_init_ddrphy()
43 __raw_writel(phy_cfg->ptr4, base + KS2_DDRPHY_PTR4_OFFSET); in ddr3_init_ddrphy()
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Defs_vh.h1 /* 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 */
/OK3568_Linux_fs/kernel/arch/powerpc/boot/
H A Dmktree.c1 // 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 …]
/OK3568_Linux_fs/u-boot/arch/arm/mach-rockchip/
H A Dresource_img.c4 * SPDX-License-Identifier: GPL-2.0+
26 #define DEFAULT_DTB_FILE "rk-kernel.dtb"
30 * ----------------------------------------------
34 * ---------------------------------------------|
38 * ------------------------ |
42 * ------------------------ |
44 * ------------------------ |
48 * ----------------------------------------------
52 * ----------------------------------------------
56 * ----------------------------------------------
[all …]
/OK3568_Linux_fs/u-boot/disk/
H A Dpart_efi.c5 * SPDX-License-Identifier: GPL-2.0+
29 * efi_crc32() - EFI version of crc32 function
31 * @len - length of buf
33 * Description: Returns EFI-style CRC32 value for @buf
58 c = pte->partition_name[i] & 0xff; in print_efiname()
70 return p->attributes.fields.legacy_bios_bootable || in is_bootable()
71 !memcmp(&(p->partition_type_guid), &system_guid, in is_bootable()
75 #define FACTORY_UNKNOWN_LBA (0xffffffff - 34)
83 if (le64_to_cpu(gpt_h->signature) != GPT_HEADER_SIGNATURE) { in validate_gpt_header()
84 if (le64_to_cpu(gpt_h->signature) != 0) in validate_gpt_header()
[all …]
H A Dpart_dos.c6 * SPDX-License-Identifier: GPL-2.0+
14 * http://developer.apple.com/techpubs/mac/Devices/Devices-126.html#MARKER-14-92
47 return p->boot_ind == 0x80; in is_bootable()
53 lbaint_t lba_start = ext_part_sector + le32_to_int (p->start4); in print_one_part()
54 lbaint_t lba_size = le32_to_int (p->size4); in print_one_part()
56 printf("%3d\t%-10" LBAFlength "u\t%-10" LBAFlength in print_one_part()
57 "u\t%08x-%02x\t%02x%s%s\n", in print_one_part()
58 part_num, lba_start, lba_size, disksig, part_num, p->sys_ind, in print_one_part()
59 (is_extended(p->sys_ind) ? " Extd" : ""), in print_one_part()
60 (is_bootable(p) ? " Boot" : "")); in print_one_part()
[all …]
/OK3568_Linux_fs/kernel/drivers/scsi/
H A Dst.c1 // 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
61 is defined and non-zero. */
158 6-byte SCSI read and write commands. */
159 #if ST_FIXED_BUFFER_SIZE >= (2 << 24 - 1)
160 #error "Buffer size should not exceed (2 << 24 - 1) bytes!"
173 /* Remove mode bits and auto-rewind bit (7) */
175 (iminor(x) & ((1 << ST_MODE_SHIFT)-1)))
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/ti/wl12xx/
H A Dmain.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/ti/wlcore/
H A Dwlcore.h1 /* 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 …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/ti/wl18xx/
H A Dmain.c1 // 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 …]
/OK3568_Linux_fs/kernel/drivers/mtd/nand/raw/
H A Drockchip-nand-controller.c1 // SPDX-License-Identifier: GPL-2.0 OR MIT
5 * Author: Yifeng Zhao <yifeng.zhao@rock-chips.com>
10 #include <linux/dma-mapping.h>
31 * nand_chip->oob_poi data layout:
63 #define DMA_INC_NUM (9) /* 1 - 16 */
198 return (u8 *)p + i * chip->ecc.size; in rk_nfc_buf_to_data_ptr()
205 poi = chip->oob_poi + i * NFC_SYS_DATA_SIZE; in rk_nfc_buf_to_oob_ptr()
215 poi = chip->oob_poi + rknand->metadata_size + chip->ecc.bytes * i; in rk_nfc_buf_to_oob_ecc_ptr()
222 return chip->ecc.size + chip->ecc.bytes + NFC_SYS_DATA_SIZE; in rk_nfc_data_len()
229 return nfc->page_buf + i * rk_nfc_data_len(chip); in rk_nfc_data_ptr()
[all …]
/OK3568_Linux_fs/kernel/fs/ext4/
H A Dext4.h1 // SPDX-License-Identifier: GPL-2.0
7 * Laboratoire MASI - Institut Blaise Pascal
37 #include <linux/percpu-rwsem.h>
59 * with DOUBLE_CHECK defined mballoc creates persistent in-core
75 printk(KERN_DEBUG "EXT4-fs DEBUG (%s, %d): %s:", \
93 pr_debug("[%s/%d] EXT4-fs (%s): ino %lu: (%s, %d): %s:" fmt, \
94 current->comm, task_pid_nr(current), \
95 ino->i_sb->s_id, ino->i_ino, __FILE__, __LINE__, \
104 /* data type for filesystem-wide blocks number */
145 /* blocks already pre-reserved by delayed allocation */
[all …]
H A Dfast_commit.c1 // SPDX-License-Identifier: GPL-2.0
17 * -----------------
21 * Fast commits are organized as a log of tag-length-value (TLV) structs. (See
29 * - EXT4_FC_TAG_UNLINK - records directory entry unlink
30 * - EXT4_FC_TAG_LINK - records directory entry link
31 * - EXT4_FC_TAG_CREAT - records inode and directory entry creation
35 * - EXT4_FC_TAG_ADD_RANGE - records addition of new blocks to an inode
36 * - EXT4_FC_TAG_DEL_RANGE - records deletion of blocks from an inode
40 * - EXT4_FC_TAG_INODE - record the inode that should be replayed
45 * ----------------
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/nxp/mlan/
H A Dmlan_ioctl.h6 * Copyright 2008-2022 NXP
13 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the
14 * worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
16 * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
227 /* Multi-Radio Configuration Group */
424 #define SCAN_RSSI(RSSI) (0x100 - ((t_u8)(RSSI)))
441 * @brief Sub-structure passed in wlan_ioctl_get_scan_table_entry for each BSS
472 /** 0--success, 1--fail, 2--watchdogtimeout */
481 * - Zero based scan entry to start retrieval in command request
482 * - Number of scans entries returned in command response
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/nxp/mlinux/
H A Dmlan_ioctl.h6 * Copyright 2008-2022 NXP
13 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the
14 * worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
16 * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
227 /* Multi-Radio Configuration Group */
424 #define SCAN_RSSI(RSSI) (0x100 - ((t_u8)(RSSI)))
441 * @brief Sub-structure passed in wlan_ioctl_get_scan_table_entry for each BSS
472 /** 0--success, 1--fail, 2--watchdogtimeout */
481 * - Zero based scan entry to start retrieval in command request
482 * - Number of scans entries returned in command response
[all …]