Home
last modified time | relevance | path

Searched +full:- +full:c (Results 1 – 25 of 1160) sorted by relevance

12345678910>>...47

/rk3399_rockchip-uboot/fs/ubifs/
H A Dmaster.c4 * Copyright (C) 2006-2008 Nokia Corporation.
6 * SPDX-License-Identifier: GPL-2.0+
22 * scan_for_master - search the valid master node.
23 * @c: UBIFS file-system description object
26 * node. Returns zero in case of success, %-EUCLEAN if there master area is
30 static int scan_for_master(struct ubifs_info *c) in scan_for_master() argument
38 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1); in scan_for_master()
41 nodes_cnt = sleb->nodes_cnt; in scan_for_master()
43 snod = list_entry(sleb->nodes.prev, struct ubifs_scan_node, in scan_for_master()
45 if (snod->type != UBIFS_MST_NODE) in scan_for_master()
[all …]
H A Dsb.c4 * Copyright (C) 2006-2008 Nokia Corporation.
6 * SPDX-License-Identifier: GPL-2.0+
14 * LEB of the volume and is never changed by UBIFS. Only user-space tools may
65 * create_default_filesystem - format empty UBI volume.
66 * @c: UBIFS file-system description object
68 * This function creates default empty file-system. Returns zero in case of
71 static int create_default_filesystem(struct ubifs_info *c) in create_default_filesystem() argument
86 /* Some functions called from here depend on the @c->key_len filed */ in create_default_filesystem()
87 c->key_len = UBIFS_SK_LEN; in create_default_filesystem()
90 * First of all, we have to calculate default file-system geometry - in create_default_filesystem()
[all …]
H A Dlpt_commit.c4 * Copyright (C) 2006-2008 Nokia Corporation.
6 * SPDX-License-Identifier: GPL-2.0+
13 * This file implements commit-related functionality of the LEB properties
29 static int dbg_populate_lsave(struct ubifs_info *c);
33 * first_dirty_cnode - find first dirty cnode.
34 * @c: UBIFS file-system description object
48 cnode = nnode->nbranch[i].cnode; in first_dirty_cnode()
50 test_bit(DIRTY_CNODE, &cnode->flags)) { in first_dirty_cnode()
51 if (cnode->level == 0) in first_dirty_cnode()
64 * next_dirty_cnode - find next dirty cnode.
[all …]
H A Dsuper.c4 * Copyright (C) 2006-2008 Nokia Corporation.
6 * SPDX-License-Identifier: GPL-2.0+
40 #include <mtd/ubi-user.h>
66 inode->i_ino = ino; in iget_locked()
67 inode->i_sb = sb; in iget_locked()
68 list_add(&inode->i_sb_list, &sb->s_inodes); in iget_locked()
69 inode->i_state = I_LOCK | I_NEW; in iget_locked()
81 list_del_init(&inode->i_sb_list); in ubifs_iput()
120 /* from fs/inode.c */
122 * clear_nlink - directly zero an inode's link count
[all …]
H A Dlog.c4 * Copyright (C) 2006-2008 Nokia Corporation.
6 * SPDX-License-Identifier: GPL-2.0+
24 static int dbg_check_bud_bytes(struct ubifs_info *c);
27 * ubifs_search_bud - search bud LEB.
28 * @c: UBIFS file-system description object
34 struct ubifs_bud *ubifs_search_bud(struct ubifs_info *c, int lnum) in ubifs_search_bud() argument
39 spin_lock(&c->buds_lock); in ubifs_search_bud()
40 p = c->buds.rb_node; in ubifs_search_bud()
43 if (lnum < bud->lnum) in ubifs_search_bud()
44 p = p->rb_left; in ubifs_search_bud()
[all …]
H A Dlpt.c4 * Copyright (C) 2006-2008 Nokia Corporation.
6 * SPDX-License-Identifier: GPL-2.0+
18 * The LPT area is like a miniature self-contained file system. It is required
48 * do_calc_lpt_geom - calculate sizes for the LPT area.
49 * @c: the UBIFS file-system description object
52 * properties of the flash and whether LPT is "big" (c->big_lpt).
54 static void do_calc_lpt_geom(struct ubifs_info *c) in do_calc_lpt_geom() argument
59 n = c->main_lebs + c->max_leb_cnt - c->leb_cnt; in do_calc_lpt_geom()
62 c->lpt_hght = 1; in do_calc_lpt_geom()
65 c->lpt_hght += 1; in do_calc_lpt_geom()
[all …]
H A Dbudget.c4 * Copyright (C) 2006-2008 Nokia Corporation.
6 * SPDX-License-Identifier: GPL-2.0+
13 * This file implements the budgeting sub-system which is responsible for UBIFS
46 * shrink_liability - write-back some dirty pages/inodes.
47 * @c: UBIFS file-system description object
48 * @nr_to_write: how many dirty pages to write-back
54 * (@i_mutex) by the caller of the budgeting function, because write-back does
57 static void shrink_liability(struct ubifs_info *c, int nr_to_write) in shrink_liability() argument
59 down_read(&c->vfs_sb->s_umount); in shrink_liability()
60 writeback_inodes_sb(c->vfs_sb, WB_REASON_FS_FREE_SPACE); in shrink_liability()
[all …]
H A Dorphan.c4 * Copyright (C) 2006-2008 Nokia Corporation.
6 * SPDX-License-Identifier: GPL-2.0+
32 * (c->leb_size - UBIFS_ORPH_NODE_SZ) / sizeof(__le64)
36 * Orphans are accumulated in a rb-tree. When an inode's link count drops to
37 * zero, the inode number is added to the rb-tree. It is removed from the tree
45 static int dbg_check_orphans(struct ubifs_info *c);
48 * ubifs_add_orphan - add an orphan.
49 * @c: UBIFS file-system description object
55 int ubifs_add_orphan(struct ubifs_info *c, ino_t inum) in ubifs_add_orphan() argument
62 return -ENOMEM; in ubifs_add_orphan()
[all …]
H A Dio.c4 * Copyright (C) 2006-2008 Nokia Corporation.
5 * Copyright (C) 2006, 2007 University of Szeged, Hungary
7 * SPDX-License-Identifier: GPL-2.0+
15 * This file implements UBIFS I/O subsystem which provides various I/O-related
17 * write-buffering support. Write buffers help to save space which otherwise
19 * Instead, data first goes to the write-buffer and is flushed when the
23 * UBIFS distinguishes between minimum write size (@c->min_io_size) and maximum
24 * write size (@c->max_write_size). The latter is the maximum amount of bytes
26 * @c->max_write_size units should presumably be faster. Obviously,
27 * @c->min_io_size <= @c->max_write_size. Write-buffers are of
[all …]
H A Dlprops.c4 * Copyright (C) 2006-2008 Nokia Corporation.
6 * SPDX-License-Identifier: GPL-2.0+
26 * get_heap_comp_val - get the LEB properties value for heap comparisons.
34 return lprops->free; in get_heap_comp_val()
36 return lprops->free + lprops->dirty; in get_heap_comp_val()
38 return lprops->dirty; in get_heap_comp_val()
43 * move_up_lpt_heap - move a new heap entry up as far as possible.
44 * @c: UBIFS file-system description object
54 static void move_up_lpt_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, in move_up_lpt_heap() argument
59 hpos = lprops->hpos; in move_up_lpt_heap()
[all …]
H A Dreplay.c4 * Copyright (C) 2006-2008 Nokia Corporation.
6 * SPDX-License-Identifier: GPL-2.0+
13 * This file contains journal replay code. It runs when the file-system is being
20 * trade-off. Also, the journal is indexed by the in-memory index (TNC), so the
33 * struct replay_entry - replay list entry.
37 * @deletion: non-zero if this entry corresponds to a node deletion
67 * struct bud_entry - entry in the list of buds to replay.
83 * set_bud_lprops - set free and dirty space used by a bud.
84 * @c: UBIFS file-system description object
91 static int set_bud_lprops(struct ubifs_info *c, struct bud_entry *b) in set_bud_lprops() argument
[all …]
H A Ddebug.c4 * Copyright (C) 2006-2008 Nokia Corporation
6 * SPDX-License-Identifier: GPL-2.0+
101 const char *dbg_snprintf_key(const struct ubifs_info *c, in dbg_snprintf_key() argument
105 int type = key_type(c, key); in dbg_snprintf_key()
107 if (c->key_fmt == UBIFS_SIMPLE_KEY_FMT) { in dbg_snprintf_key()
110 len -= snprintf(p, len, "(%lu, %s)", in dbg_snprintf_key()
111 (unsigned long)key_inum(c, key), in dbg_snprintf_key()
116 len -= snprintf(p, len, "(%lu, %s, %#08x)", in dbg_snprintf_key()
117 (unsigned long)key_inum(c, key), in dbg_snprintf_key()
118 get_key_type(type), key_hash(c, key)); in dbg_snprintf_key()
[all …]
H A Drecovery.c4 * Copyright (C) 2006-2008 Nokia Corporation
6 * SPDX-License-Identifier: GPL-2.0+
13 * This file implements functions needed to recover from unclean un-mounts.
15 * an un-mount was completed successfully. If not, the process of mounting
16 * incorporates additional checking and fixing of on-flash data structures.
17 * UBIFS always cleans away all remnants of an unclean un-mount, so that
19 * read-only, and the flash is not modified in that case.
30 * writes in @c->max_write_size bytes at a time.
48 * is_empty - determine whether a buffer is empty (contains all 0xff).
67 * first_non_ff - find offset of the first non-0xff byte.
[all …]
H A Dgc.c4 * Copyright (C) 2006-2008 Nokia Corporation.
6 * SPDX-License-Identifier: GPL-2.0
15 * nodes) or not. For non-index LEBs, garbage collection finds a LEB which
16 * contains a lot of dirty space (obsolete nodes), and copies the non-obsolete
17 * nodes to the journal, at which point the garbage-collected LEB is free to be
18 * reused. For index LEBs, garbage collection marks the non-obsolete index nodes
19 * dirty in the TNC, and after the next commit, the garbage-collected LEB is
25 * LEBs which have less than @c->dead_wm bytes of free + dirty space are full
26 * and not worth garbage-collecting. The dead watermark is one min. I/O unit
61 * switch_gc_head - switch the garbage collection journal head.
[all …]
H A Dtnc.c4 * Copyright (C) 2006-2008 Nokia Corporation.
6 * SPDX-License-Identifier: GPL-2.0+
14 * the UBIFS B-tree.
49 static int try_read_node(const struct ubifs_info *c, void *buf, int type,
51 static int fallible_read_node(struct ubifs_info *c, const union ubifs_key *key,
55 * insert_old_idx - record an index node obsoleted since the last commit start.
56 * @c: UBIFS file-system description object
68 * That means that the garbage collection and the in-the-gaps method of
73 * they cannot be easily found. In those cases, an entry is added to an RB-tree.
74 * That is what this function does. The RB-tree is ordered by LEB number and
[all …]
H A Dkey.h4 * Copyright (C) 2006-2008 Nokia Corporation.
6 * SPDX-License-Identifier: GPL-2.0+
13 * This header contains various key-related definitions and helper function.
20 * Keys are 64-bits long. First 32-bits are inode number (parent inode number
30 * key_mask_hash - mask a valid hash value.
46 * key_r5_hash - R5 hash function (borrowed from reiserfs).
66 * key_test_hash - testing hash function.
80 * ino_key_init - initialize inode key.
81 * @c: UBIFS file-system description object
85 static inline void ino_key_init(const struct ubifs_info *c, in ino_key_init() argument
[all …]
H A Ddebug.h4 * Copyright (C) 2006-2008 Nokia Corporation.
6 * SPDX-License-Identifier: GPL-2.0+
16 typedef int (*dbg_leaf_callback)(struct ubifs_info *c,
18 typedef int (*dbg_znode_callback)(struct ubifs_info *c,
29 * ubifs_debug_info - per-FS debugging information.
30 * @old_zroot: old index root - used by 'dbg_check_old_index()'
31 * @old_zroot_level: old index root level - used by 'dbg_check_old_index()'
32 * @old_zroot_sqnum: old index root sqnum - used by 'dbg_check_old_index()'
34 * @pc_happened: non-zero if an emulated power cut happened
45 * @new_ihead_lnum: used by debugging to check @c->ihead_lnum
[all …]
H A Dscan.c4 * Copyright (C) 2006-2008 Nokia Corporation
6 * SPDX-License-Identifier: GPL-2.0+
13 * This file implements the scan which is a general-purpose function for
15 * journal, to do garbage collection. for the TNC in-the-gaps method, and by
26 * scan_padding_bytes - scan for padding bytes.
52 * ubifs_scan_a_node - scan for a node or padding.
53 * @c: UBIFS file-system description object
62 int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum, in ubifs_scan_a_node() argument
68 magic = le32_to_cpu(ch->magic); in ubifs_scan_a_node()
82 dbg_ntype(ch->node_type), lnum, offs); in ubifs_scan_a_node()
[all …]
/rk3399_rockchip-uboot/arch/arm/cpu/armv7/bcm235xx/
H A Dclk-core.c4 * SPDX-License-Identifier: GPL-2.0+
18 #include <asm/kona-common/clk.h>
19 #include "clk-core.h"
30 struct clk *c; in clk_get_and_enable() local
34 c = clk_get(clkstr); in clk_get_and_enable()
35 if (c) { in clk_get_and_enable()
36 ret = clk_enable(c); in clk_get_and_enable()
41 return -EINVAL; in clk_get_and_enable()
74 return -ETIMEDOUT; in wait_bit()
78 static int peri_clk_enable(struct clk *c, int enable) in peri_clk_enable() argument
[all …]
/rk3399_rockchip-uboot/arch/arm/cpu/armv7/bcm281xx/
H A Dclk-core.c4 * SPDX-License-Identifier: GPL-2.0+
18 #include <asm/kona-common/clk.h>
19 #include "clk-core.h"
30 struct clk *c; in clk_get_and_enable() local
34 c = clk_get(clkstr); in clk_get_and_enable()
35 if (c) { in clk_get_and_enable()
36 ret = clk_enable(c); in clk_get_and_enable()
41 return -EINVAL; in clk_get_and_enable()
74 return -ETIMEDOUT; in wait_bit()
78 static int peri_clk_enable(struct clk *c, int enable) in peri_clk_enable() argument
[all …]
/rk3399_rockchip-uboot/drivers/pci/
H A Daer.c4 * Author: Shawn Lin <shawn.lin@rock-chips.com>
8 * SPDX-License-Identifier: GPL-2.0+
17 * pci_aer_dump - Parse and print AER information in a human-readable format
35 return -ENODEV; in pci_aer_dump()
38 /* Read AER-related registers */ in pci_aer_dump()
49 printf("DLP-%c ", (aer_status & (1 << 0)) ? '+' : '-'); in pci_aer_dump()
50 printf("SDES-%c ", (aer_status & (1 << 1)) ? '+' : '-'); in pci_aer_dump()
51 printf("TLP-%c ", (aer_status & (1 << 2)) ? '+' : '-'); in pci_aer_dump()
52 printf("FCP-%c ", (aer_status & (1 << 3)) ? '+' : '-'); in pci_aer_dump()
53 printf("CmpltTO-%c ", (aer_status & (1 << 4)) ? '+' : '-'); in pci_aer_dump()
[all …]
/rk3399_rockchip-uboot/lib/lzma/
H A Dhistory.txt2 -----------------------
4 9.18 beta 2010-11-02
5 -------------------------
6 - New small SFX module for installers (SfxSetup).
9 9.12 beta 2010-03-24
10 -------------------------
11 - The BUG in LZMA SDK 9.* was fixed: LZMA2 codec didn't work,
15 9.11 beta 2010-03-15
16 -------------------------
17 - PPMd compression method support
[all …]
/rk3399_rockchip-uboot/scripts/dtc/
H A Dchecks.c2 * (C) Copyright David Gibson <dwg@au1.ibm.com>, IBM Corporation. 2007.
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
24 #define TRACE(c, ...) \ argument
26 fprintf(stderr, "=== %s: ", (c)->name); \
31 #define TRACE(c, fmt, ...) do { } while (0) argument
43 typedef void (*check_fn)(struct check *c, struct dt_info *dti, struct node *node);
75 static inline void PRINTF(3, 4) check_msg(struct check *c, struct dt_info *dti, in check_msg() argument
81 if ((c->warn && (quiet < 1)) in check_msg()
82 || (c->error && (quiet < 2))) { in check_msg()
84 strcmp(dti->outname, "-") ? dti->outname : "<stdout>", in check_msg()
[all …]
/rk3399_rockchip-uboot/common/
H A Dzm.c2 zm.c - zmodem protocol handling lowlevelstuff
3 Copyright (C) until 1998 Chuck Forsberg (OMEN Technology Inc)
4 Copyright (C) 1996, 1997 Uwe Ohse
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
19 02111-1307, USA.
23 /* historical comment: -- uwe
24 * Z M . C
26 * 05-09-88 Chuck Forsberg Omen Technology Inc
31 * zgethdr(hdr, eflag) receive header - binary or hex
62 "Carrier Lost", /* -3 */
[all …]
/rk3399_rockchip-uboot/drivers/power/power_delivery/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0
10 tristate "USB Type-C Port Controller Manager"
13 The Type-C Port Controller Manager provides a USB PD and USB Type-C
14 state machine for use with Type-C Port Controllers.
17 tristate "Type-C Port Controller Interface driver"
20 Type-C Port Controller driver for TCPCI-compliant controller.
25 tristate "Hynetek HUSB311 Type-C chip driver"
28 Hynetek HUSB311 Type-C chip driver that works with
29 Type-C Port Controller Manager to provide USB PD and USB
30 Type-C functionalities.
[all …]

12345678910>>...47