Home
last modified time | relevance | path

Searched full:c (Results 1 – 25 of 6592) sorted by relevance

12345678910>>...264

/Linux-v5.10/fs/ubifs/
Dmaster.c5 * Copyright (C) 2006-2008 Nokia Corporation.
17 * @c: UBIFS file-system description object
24 int ubifs_compare_master_node(struct ubifs_info *c, void *m1, void *m2) in ubifs_compare_master_node() argument
52 * @c: UBIFS file-system description object
64 static int mst_node_check_hash(const struct ubifs_info *c, in mst_node_check_hash() argument
71 crypto_shash_tfm_digest(c->hash_tfm, node + sizeof(struct ubifs_ch), in mst_node_check_hash()
75 if (ubifs_check_hash(c, expected, calc)) in mst_node_check_hash()
83 * @c: UBIFS file-system description object
90 static int scan_for_master(struct ubifs_info *c) in scan_for_master() argument
98 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1); in scan_for_master()
[all …]
Dsuper.c5 * Copyright (C) 2006-2008 Nokia Corporation.
65 * @c: UBIFS file-system description object
73 static int validate_inode(struct ubifs_info *c, const struct inode *inode) in validate_inode() argument
78 if (inode->i_size > c->max_inode_sz) { in validate_inode()
79 ubifs_err(c, "inode is too large (%lld)", in validate_inode()
85 ubifs_err(c, "unknown compression type %d", ui->compr_type); in validate_inode()
98 if (!ubifs_compr_present(c, ui->compr_type)) { in validate_inode()
99 ubifs_warn(c, "inode %lu uses '%s' compression, but it was not compiled in", in validate_inode()
100 inode->i_ino, ubifs_compr_name(c, ui->compr_type)); in validate_inode()
103 err = dbg_check_dir(c, inode); in validate_inode()
[all …]
Dlpt_commit.c5 * Copyright (C) 2006-2008 Nokia Corporation.
21 static int dbg_populate_lsave(struct ubifs_info *c);
25 * @c: UBIFS file-system description object
30 static struct ubifs_cnode *first_dirty_cnode(const struct ubifs_info *c, struct ubifs_nnode *nnode) in first_dirty_cnode() argument
32 ubifs_assert(c, nnode); in first_dirty_cnode()
56 * @c: UBIFS file-system description object
61 static struct ubifs_cnode *next_dirty_cnode(const struct ubifs_info *c, struct ubifs_cnode *cnode) in next_dirty_cnode() argument
66 ubifs_assert(c, cnode); in next_dirty_cnode()
76 return first_dirty_cnode(c, (struct ubifs_nnode *)cnode); in next_dirty_cnode()
84 * @c: UBIFS file-system description object
[all …]
Dsb.c5 * Copyright (C) 2006-2008 Nokia Corporation.
54 static int get_default_compressor(struct ubifs_info *c) in get_default_compressor() argument
56 if (ubifs_compr_present(c, UBIFS_COMPR_LZO)) in get_default_compressor()
59 if (ubifs_compr_present(c, UBIFS_COMPR_ZLIB)) in get_default_compressor()
67 * @c: UBIFS file-system description object
72 static int create_default_filesystem(struct ubifs_info *c) in create_default_filesystem() argument
91 /* Some functions called from here depend on the @c->key_len filed */ in create_default_filesystem()
92 c->key_len = UBIFS_SK_LEN; in create_default_filesystem()
98 if (c->leb_cnt < 0x7FFFFFFF / DEFAULT_JNL_PERCENT) in create_default_filesystem()
100 jnl_lebs = c->leb_cnt * DEFAULT_JNL_PERCENT / 100; in create_default_filesystem()
[all …]
Dlpt.c5 * Copyright (C) 2006-2008 Nokia Corporation.
41 * @c: the UBIFS file-system description object
44 * properties of the flash and whether LPT is "big" (c->big_lpt).
46 static void do_calc_lpt_geom(struct ubifs_info *c) in do_calc_lpt_geom() argument
51 n = c->main_lebs + c->max_leb_cnt - c->leb_cnt; in do_calc_lpt_geom()
54 c->lpt_hght = 1; in do_calc_lpt_geom()
57 c->lpt_hght += 1; in do_calc_lpt_geom()
61 c->pnode_cnt = DIV_ROUND_UP(c->main_lebs, UBIFS_LPT_FANOUT); in do_calc_lpt_geom()
63 n = DIV_ROUND_UP(c->pnode_cnt, UBIFS_LPT_FANOUT); in do_calc_lpt_geom()
64 c->nnode_cnt = n; in do_calc_lpt_geom()
[all …]
Dlog.c5 * Copyright (C) 2006-2008 Nokia Corporation.
20 static int dbg_check_bud_bytes(struct ubifs_info *c);
24 * @c: UBIFS file-system description object
30 struct ubifs_bud *ubifs_search_bud(struct ubifs_info *c, int lnum) in ubifs_search_bud() argument
35 spin_lock(&c->buds_lock); in ubifs_search_bud()
36 p = c->buds.rb_node; in ubifs_search_bud()
44 spin_unlock(&c->buds_lock); in ubifs_search_bud()
48 spin_unlock(&c->buds_lock); in ubifs_search_bud()
54 * @c: UBIFS file-system description object
59 struct ubifs_wbuf *ubifs_get_wbuf(struct ubifs_info *c, int lnum) in ubifs_get_wbuf() argument
[all …]
Dcommit.c5 * Copyright (C) 2006-2008 Nokia Corporation.
41 * @c: UBIFS file-system description object
50 * This function has to be called with @c->commit_sem locked for writing -
51 * this function does not take LPT/TNC locks because the @c->commit_sem
56 static int nothing_to_commit(struct ubifs_info *c) in nothing_to_commit() argument
62 if (c->mounting || c->remounting_rw) in nothing_to_commit()
69 if (c->zroot.znode && ubifs_zn_dirty(c->zroot.znode)) in nothing_to_commit()
79 if (c->nroot && test_bit(DIRTY_CNODE, &c->nroot->flags)) in nothing_to_commit()
82 ubifs_assert(c, atomic_long_read(&c->dirty_zn_cnt) == 0); in nothing_to_commit()
83 ubifs_assert(c, c->dirty_pn_cnt == 0); in nothing_to_commit()
[all …]
Dtnc_commit.c5 * Copyright (C) 2006-2008 Nokia Corporation.
18 * @c: UBIFS file-system description object
25 static int make_idx_node(struct ubifs_info *c, struct ubifs_idx_node *idx, in make_idx_node() argument
37 struct ubifs_branch *br = ubifs_idx_branch(c, idx, i); in make_idx_node()
40 key_write_idx(c, &zbr->key, &br->key); in make_idx_node()
44 ubifs_copy_hash(c, zbr->hash, ubifs_branch_hash(c, br)); in make_idx_node()
46 ubifs_err(c, "bad ref in znode"); in make_idx_node()
47 ubifs_dump_znode(c, znode); in make_idx_node()
49 ubifs_dump_znode(c, zbr->znode); in make_idx_node()
54 ubifs_prepare_node(c, idx, len, 0); in make_idx_node()
[all …]
Dbudget.c5 * Copyright (C) 2006-2008 Nokia Corporation.
41 * @c: UBIFS file-system description object
51 static void shrink_liability(struct ubifs_info *c, int nr_to_write) in shrink_liability() argument
53 down_read(&c->vfs_sb->s_umount); in shrink_liability()
54 writeback_inodes_sb_nr(c->vfs_sb, nr_to_write, WB_REASON_FS_FREE_SPACE); in shrink_liability()
55 up_read(&c->vfs_sb->s_umount); in shrink_liability()
60 * @c: UBIFS file-system description object
66 static int run_gc(struct ubifs_info *c) in run_gc() argument
71 down_read(&c->commit_sem); in run_gc()
72 lnum = ubifs_garbage_collect(c, 1); in run_gc()
[all …]
Dorphan.c5 * Copyright (C) 2006-2008 Nokia Corporation.
30 * (c->leb_size - UBIFS_ORPH_NODE_SZ) / sizeof(__le64)
43 static int dbg_check_orphans(struct ubifs_info *c);
45 static struct ubifs_orphan *orphan_add(struct ubifs_info *c, ino_t inum, in orphan_add() argument
58 spin_lock(&c->orphan_lock); in orphan_add()
59 if (c->tot_orphans >= c->max_orphans) { in orphan_add()
60 spin_unlock(&c->orphan_lock); in orphan_add()
64 p = &c->orph_tree.rb_node; in orphan_add()
73 ubifs_err(c, "orphaned twice"); in orphan_add()
74 spin_unlock(&c->orphan_lock); in orphan_add()
[all …]
/Linux-v5.10/Documentation/admin-guide/media/
Dipu3_rcb.svg9C 5.519531 -1.15625 6.15625 -1.316406 6.59375 -1.640625 C 7.039062 -1.960938 7.265625 -2.441406 7.…
12C 6.4375 -9.5 7.398438 -9.109375 8.078125 -8.328125 C 8.753906 -7.546875 9.09375 -6.363281 9.09375…
15C 2.015625 -9.160156 2.609375 -9.273438 3.203125 -9.359375 C 3.796875 -9.441406 4.351562 -9.484375…
18C 7.015625 -2.644531 6.878906 -2.914062 6.609375 -3.125 C 6.335938 -3.34375 6 -3.53125 5.59375 -3.…
21C 9.203125 -3.910156 9.097656 -3.25 8.890625 -2.65625 C 8.679688 -2.0625 8.390625 -1.550781 8.0156…
24C 3.503906 -9.25 4.878906 -9.484375 6.265625 -9.484375 C 6.691406 -9.484375 7.097656 -9.460938 7.4…
33C 3.878906 0.09375 3.644531 0.0859375 3.375 0.078125 C 3.113281 0.0664062 2.847656 0.0507812 2.578…
36C 9.203125 -5.054688 9.054688 -4.082031 8.765625 -3.28125 C 8.484375 -2.476562 8.09375 -1.828125 7…
39C 8.84375 -0.203125 8.4375 -0.0859375 7.875 0.046875 C 7.320312 0.191406 6.664062 0.265625 5.90625…
42C 8.734375 -0.253906 8.234375 -0.0625 7.703125 0.0625 C 7.179688 0.195312 6.617188 0.265625 6.0156…
[all …]
/Linux-v5.10/Documentation/userspace-api/media/
Dconf_nitpick.py23 ("c:func", "clock_gettime"),
24 ("c:func", "close"),
25 ("c:func", "container_of"),
26 ("c:func", "copy_from_user"),
27 ("c:func", "copy_to_user"),
28 ("c:func", "determine_valid_ioctls"),
29 ("c:func", "ERR_PTR"),
30 ("c:func", "i2c_new_client_device"),
31 ("c:func", "ioctl"),
32 ("c:func", "IS_ERR"),
[all …]
/Linux-v5.10/tools/power/cpupower/po/
Dcs.po4 # Copyright (C) 2007 kavol
23 #: utils/idle_monitor/nhm_idle.c:36
27 #: utils/idle_monitor/nhm_idle.c:43
31 #: utils/idle_monitor/nhm_idle.c:51
35 #: utils/idle_monitor/nhm_idle.c:58 utils/idle_monitor/amd_fam14h_idle.c:70
39 #: utils/idle_monitor/snb_idle.c:33
43 #: utils/idle_monitor/snb_idle.c:40
47 #: utils/idle_monitor/snb_idle.c:47
51 #: utils/idle_monitor/amd_fam14h_idle.c:56
55 #: utils/idle_monitor/amd_fam14h_idle.c:63
[all …]
Dit.po2 # Copyright (C) 2004-2009
20 #: utils/idle_monitor/nhm_idle.c:36
24 #: utils/idle_monitor/nhm_idle.c:43
28 #: utils/idle_monitor/nhm_idle.c:51
32 #: utils/idle_monitor/nhm_idle.c:58 utils/idle_monitor/amd_fam14h_idle.c:70
36 #: utils/idle_monitor/snb_idle.c:33
40 #: utils/idle_monitor/snb_idle.c:40
44 #: utils/idle_monitor/snb_idle.c:47
48 #: utils/idle_monitor/amd_fam14h_idle.c:56
52 #: utils/idle_monitor/amd_fam14h_idle.c:63
[all …]
Dpt.po2 # Copyright (C) 2008 THE cpufrequtils'S COPYRIGHT HOLDER
18 #: utils/idle_monitor/nhm_idle.c:36
22 #: utils/idle_monitor/nhm_idle.c:43
26 #: utils/idle_monitor/nhm_idle.c:51
30 #: utils/idle_monitor/nhm_idle.c:58 utils/idle_monitor/amd_fam14h_idle.c:70
34 #: utils/idle_monitor/snb_idle.c:33
38 #: utils/idle_monitor/snb_idle.c:40
42 #: utils/idle_monitor/snb_idle.c:47
46 #: utils/idle_monitor/amd_fam14h_idle.c:56
50 #: utils/idle_monitor/amd_fam14h_idle.c:63
[all …]
Dfr.po2 # Copyright (C) 2004 THE PACKAGE'S COPYRIGHT HOLDER
20 #: utils/idle_monitor/nhm_idle.c:36
24 #: utils/idle_monitor/nhm_idle.c:43
28 #: utils/idle_monitor/nhm_idle.c:51
32 #: utils/idle_monitor/nhm_idle.c:58 utils/idle_monitor/amd_fam14h_idle.c:70
36 #: utils/idle_monitor/snb_idle.c:33
40 #: utils/idle_monitor/snb_idle.c:40
44 #: utils/idle_monitor/snb_idle.c:47
48 #: utils/idle_monitor/amd_fam14h_idle.c:56
52 #: utils/idle_monitor/amd_fam14h_idle.c:63
[all …]
Dde.po3 # Copyright (C) 2004-2009 Dominik Brodowski <linux@dominikbrodowski.net>
20 #: utils/idle_monitor/nhm_idle.c:36
24 #: utils/idle_monitor/nhm_idle.c:43
28 #: utils/idle_monitor/nhm_idle.c:51
32 #: utils/idle_monitor/nhm_idle.c:58 utils/idle_monitor/amd_fam14h_idle.c:70
36 #: utils/idle_monitor/snb_idle.c:33
40 #: utils/idle_monitor/snb_idle.c:40
44 #: utils/idle_monitor/snb_idle.c:47
48 #: utils/idle_monitor/amd_fam14h_idle.c:56
52 #: utils/idle_monitor/amd_fam14h_idle.c:63
[all …]
/Linux-v5.10/drivers/most/
Dcore.c3 * core.c - Implementation of core module of MOST Linux driver stack
5 * Copyright (C) 2013-2020 Microchip Technology Germany II GmbH & Co. KG
102 struct most_channel *c = mbo->context; in most_free_mbo_coherent() local
103 u16 const coherent_buf_size = c->cfg.buffer_size + c->cfg.extra_len; in most_free_mbo_coherent()
105 if (c->iface->dma_free) in most_free_mbo_coherent()
106 c->iface->dma_free(mbo, coherent_buf_size); in most_free_mbo_coherent()
110 if (atomic_sub_and_test(1, &c->mbo_ref)) in most_free_mbo_coherent()
111 complete(&c->cleanup); in most_free_mbo_coherent()
116 * @c: pointer to channel object
118 static void flush_channel_fifos(struct most_channel *c) in flush_channel_fifos() argument
[all …]
Dmost_cdev.c3 * cdev.c - Character device component for Mostcore
5 * Copyright (C) 2013-2015 Microchip Technology Germany II GmbH & Co. KG
50 static inline bool ch_has_mbo(struct comp_channel *c) in ch_has_mbo() argument
52 return channel_has_mbo(c->iface, c->channel_id, &comp.cc) > 0; in ch_has_mbo()
55 static inline struct mbo *ch_get_mbo(struct comp_channel *c, struct mbo **mbo) in ch_get_mbo() argument
57 if (!kfifo_peek(&c->fifo, mbo)) { in ch_get_mbo()
58 *mbo = most_get_mbo(c->iface, c->channel_id, &comp.cc); in ch_get_mbo()
60 kfifo_in(&c->fifo, mbo, 1); in ch_get_mbo()
67 struct comp_channel *c, *tmp; in get_channel() local
71 list_for_each_entry_safe(c, tmp, &channel_list, list) { in get_channel()
[all …]
/Linux-v5.10/arch/mips/kernel/
Dcpu-probe.c5 * Copyright (C) xxxx the Anonymous
6 * Copyright (C) 1994 - 2006 Ralf Baechle
7 * Copyright (C) 2003, 2004 Maciej W. Rozycki
8 * Copyright (C) 2001, 2004, 2011, 2012 MIPS Technologies, Inc.
86 static int set_ftlb_enable(struct cpuinfo_mips *c, enum ftlb_flags flags);
143 static inline void cpu_set_mt_per_tc_perf(struct cpuinfo_mips *c) in cpu_set_mt_per_tc_perf() argument
146 c->options |= MIPS_CPU_MT_PER_TC_PERF_COUNTERS; in cpu_set_mt_per_tc_perf()
151 struct cpuinfo_mips *c = &current_cpu_data; in check_errata() local
160 if ((c->processor_id & PRID_REV_MASK) <= PRID_REV_34K_V1_0_2) in check_errata()
208 static inline void cpu_probe_vmbits(struct cpuinfo_mips *c) in cpu_probe_vmbits() argument
[all …]
/Linux-v5.10/fs/jffs2/
Dwbuf.c35 #define PAGE_DIV(x) ( ((unsigned long)(x) / (unsigned long)(c->wbuf_pagesize)) * (unsigned long)(c-…
36 #define PAGE_MOD(x) ( (unsigned long)(x) % (unsigned long)(c->wbuf_pagesize) )
48 static int jffs2_wbuf_pending_for_ino(struct jffs2_sb_info *c, uint32_t ino) in jffs2_wbuf_pending_for_ino() argument
50 struct jffs2_inodirty *this = c->wbuf_inodes; in jffs2_wbuf_pending_for_ino()
69 static void jffs2_clear_wbuf_ino_list(struct jffs2_sb_info *c) in jffs2_clear_wbuf_ino_list() argument
73 this = c->wbuf_inodes; in jffs2_clear_wbuf_ino_list()
82 c->wbuf_inodes = NULL; in jffs2_clear_wbuf_ino_list()
85 static void jffs2_wbuf_dirties_inode(struct jffs2_sb_info *c, uint32_t ino) in jffs2_wbuf_dirties_inode() argument
90 jffs2_dirty_trigger(c); in jffs2_wbuf_dirties_inode()
92 if (jffs2_wbuf_pending_for_ino(c, ino)) in jffs2_wbuf_dirties_inode()
[all …]
/Linux-v5.10/drivers/iommu/
Dmsm_iommu_hw-8xxx.h2 /* Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved.
25 #define GET_CONTEXT_FIELD(b, c, r, F) \ argument
26 GET_FIELD(((b) + (r) + ((c) << CTX_SHIFT)), F##_MASK, F##_SHIFT)
30 #define SET_CONTEXT_FIELD(b, c, r, F, v) \ argument
31 SET_FIELD(((b) + (r) + ((c) << CTX_SHIFT)), F##_MASK, F##_SHIFT, (v))
121 #define SET_SCTLR(b, c, v) SET_CTX_REG(SCTLR, (b), (c), (v)) argument
122 #define SET_ACTLR(b, c, v) SET_CTX_REG(ACTLR, (b), (c), (v)) argument
123 #define SET_CONTEXTIDR(b, c, v) SET_CTX_REG(CONTEXTIDR, (b), (c), (v)) argument
124 #define SET_TTBR0(b, c, v) SET_CTX_REG(TTBR0, (b), (c), (v)) argument
125 #define SET_TTBR1(b, c, v) SET_CTX_REG(TTBR1, (b), (c), (v)) argument
[all …]
/Linux-v5.10/drivers/net/wan/
Dz85230.c4 * (c) Copyright 1998 Alan Cox <alan@lxorguk.ukuu.org.uk>
5 * (c) Copyright 2000, 2001 Red Hat Inc
108 static void z8530_rx_done(struct z8530_channel *c);
109 static void z8530_tx_done(struct z8530_channel *c);
114 * @c: Z8530 channel to read from (2 per chip)
123 static inline u8 read_zsreg(struct z8530_channel *c, u8 reg) in read_zsreg() argument
126 z8530_write_port(c->ctrlio, reg); in read_zsreg()
127 return z8530_read_port(c->ctrlio); in read_zsreg()
132 * @c: The Z8530 channel to read the data port from
138 static inline u8 read_zsdata(struct z8530_channel *c) in read_zsdata() argument
[all …]
/Linux-v5.10/arch/x86/events/zhaoxin/
Dcore.c51 [C(L1D)] = {
52 [C(OP_READ)] = {
53 [C(RESULT_ACCESS)] = 0x0042,
54 [C(RESULT_MISS)] = 0x0538,
56 [C(OP_WRITE)] = {
57 [C(RESULT_ACCESS)] = 0x0043,
58 [C(RESULT_MISS)] = 0x0562,
60 [C(OP_PREFETCH)] = {
61 [C(RESULT_ACCESS)] = -1,
62 [C(RESULT_MISS)] = -1,
[all …]
/Linux-v5.10/arch/powerpc/perf/
Dgeneric-compat-pmu.c97 #define C(x) PERF_COUNT_HW_CACHE_##x macro
104 static u64 generic_compat_cache_events[C(MAX)][C(OP_MAX)][C(RESULT_MAX)] = {
105 [ C(L1D) ] = {
106 [ C(OP_READ) ] = {
107 [ C(RESULT_ACCESS) ] = 0,
108 [ C(RESULT_MISS) ] = 0,
110 [ C(OP_WRITE) ] = {
111 [ C(RESULT_ACCESS) ] = 0,
112 [ C(RESULT_MISS) ] = 0,
114 [ C(OP_PREFETCH) ] = {
[all …]

12345678910>>...264