Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 5121) sorted by relevance

12345678910>>...205

/linux/fs/ubifs/
H A Dmaster.c17 * @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
72 ret = crypto_shash_tfm_digest(c->hash_tfm, node + sizeof(struct ubifs_ch), in mst_node_check_hash()
78 if (ubifs_check_hash(c, expected, calc)) in mst_node_check_hash()
86 * @c: UBIFS file-system description object
93 static int scan_for_master(struct ubifs_info *c) in scan_for_master() argument
101 sleb = ubifs_scan(c, lnum, 0, c in scan_for_master()
174 validate_master(const struct ubifs_info * c) validate_master() argument
332 ubifs_read_master(struct ubifs_info * c) ubifs_read_master() argument
437 ubifs_write_master(struct ubifs_info * c) ubifs_write_master() argument
[all...]
H A Dlpt_commit.c21 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
88 static int get_cnodes_to_commit(struct ubifs_info *c) in get_cnodes_to_commit() argument
129 upd_ltab(struct ubifs_info * c,int lnum,int free,int dirty) upd_ltab() argument
149 alloc_lpt_leb(struct ubifs_info * c,int * lnum) alloc_lpt_leb() argument
182 layout_cnodes(struct ubifs_info * c) layout_cnodes() argument
333 realloc_lpt_leb(struct ubifs_info * c,int * lnum) realloc_lpt_leb() argument
360 write_cnodes(struct ubifs_info * c) write_cnodes() argument
552 next_pnode_to_dirty(struct ubifs_info * c,struct ubifs_pnode * pnode) next_pnode_to_dirty() argument
614 add_pnode_dirt(struct ubifs_info * c,struct ubifs_pnode * pnode) add_pnode_dirt() argument
625 do_make_pnode_dirty(struct ubifs_info * c,struct ubifs_pnode * pnode) do_make_pnode_dirty() argument
657 make_tree_dirty(struct ubifs_info * c) make_tree_dirty() argument
681 need_write_all(struct ubifs_info * c) need_write_all() argument
708 lpt_tgc_start(struct ubifs_info * c) lpt_tgc_start() argument
734 lpt_tgc_end(struct ubifs_info * c) lpt_tgc_end() argument
761 populate_lsave(struct ubifs_info * c) populate_lsave() argument
822 nnode_lookup(struct ubifs_info * c,int i) nnode_lookup() argument
860 make_nnode_dirty(struct ubifs_info * c,int node_num,int lnum,int offs) make_nnode_dirty() argument
909 make_pnode_dirty(struct ubifs_info * c,int node_num,int lnum,int offs) make_pnode_dirty() argument
939 make_ltab_dirty(struct ubifs_info * c,int lnum,int offs) make_ltab_dirty() argument
964 make_lsave_dirty(struct ubifs_info * c,int lnum,int offs) make_lsave_dirty() argument
991 make_node_dirty(struct ubifs_info * c,int node_type,int node_num,int lnum,int offs) make_node_dirty() argument
1012 get_lpt_node_len(const struct ubifs_info * c,int node_type) get_lpt_node_len() argument
1033 get_pad_len(const struct ubifs_info * c,uint8_t * buf,int len) get_pad_len() argument
1050 get_lpt_node_type(const struct ubifs_info * c,uint8_t * buf,int * node_num) get_lpt_node_type() argument
1069 is_a_node(const struct ubifs_info * c,uint8_t * buf,int len) is_a_node() argument
1105 lpt_gc_lnum(struct ubifs_info * c,int lnum) lpt_gc_lnum() argument
1150 lpt_gc(struct ubifs_info * c) lpt_gc() argument
1181 ubifs_lpt_start_commit(struct ubifs_info * c) ubifs_lpt_start_commit() argument
1256 free_obsolete_cnodes(struct ubifs_info * c) free_obsolete_cnodes() argument
1283 ubifs_lpt_end_commit(struct ubifs_info * c) ubifs_lpt_end_commit() argument
1310 ubifs_lpt_post_commit(struct ubifs_info * c) ubifs_lpt_post_commit() argument
1339 first_nnode(struct ubifs_info * c,int * hght) first_nnode() argument
1373 next_nnode(struct ubifs_info * c,struct ubifs_nnode * nnode,int * hght) next_nnode() argument
1416 ubifs_lpt_free(struct ubifs_info * c,int wr_only) ubifs_lpt_free() argument
1476 dbg_is_nnode_dirty(struct ubifs_info * c,int lnum,int offs) dbg_is_nnode_dirty() argument
1511 dbg_is_pnode_dirty(struct ubifs_info * c,int lnum,int offs) dbg_is_pnode_dirty() argument
1540 dbg_is_ltab_dirty(struct ubifs_info * c,int lnum,int offs) dbg_is_ltab_dirty() argument
1553 dbg_is_lsave_dirty(struct ubifs_info * c,int lnum,int offs) dbg_is_lsave_dirty() argument
1567 dbg_is_node_dirty(struct ubifs_info * c,int node_type,int lnum,int offs) dbg_is_node_dirty() argument
1590 dbg_check_ltab_lnum(struct ubifs_info * c,int lnum) dbg_check_ltab_lnum() argument
1660 dbg_check_ltab(struct ubifs_info * c) dbg_check_ltab() argument
1702 dbg_chk_lpt_free_spc(struct ubifs_info * c) dbg_chk_lpt_free_spc() argument
1743 dbg_chk_lpt_sz(struct ubifs_info * c,int action,int len) dbg_chk_lpt_sz() argument
1841 dump_lpt_leb(const struct ubifs_info * c,int lnum) dump_lpt_leb() argument
1944 ubifs_dump_lpt_lebs(const struct ubifs_info * c) ubifs_dump_lpt_lebs() argument
1963 dbg_populate_lsave(struct ubifs_info * c) dbg_populate_lsave() argument
[all...]
H A Dbudget.c41 * @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()
73 up_read(&c in run_gc()
89 get_liability(struct ubifs_info * c) get_liability() argument
117 make_free_space(struct ubifs_info * c) make_free_space() argument
163 ubifs_calc_min_idx_lebs(struct ubifs_info * c) ubifs_calc_min_idx_lebs() argument
194 ubifs_calc_available(const struct ubifs_info * c,int min_idx_lebs) ubifs_calc_available() argument
257 can_use_rp(struct ubifs_info * c) can_use_rp() argument
290 do_budget_space(struct ubifs_info * c) do_budget_space() argument
358 calc_idx_growth(const struct ubifs_info * c,const struct ubifs_budget_req * req) calc_idx_growth() argument
374 calc_data_growth(const struct ubifs_info * c,const struct ubifs_budget_req * req) calc_data_growth() argument
394 calc_dd_growth(const struct ubifs_info * c,const struct ubifs_budget_req * req) calc_dd_growth() argument
422 ubifs_budget_space(struct ubifs_info * c,struct ubifs_budget_req * req) ubifs_budget_space() argument
511 ubifs_release_budget(struct ubifs_info * c,struct ubifs_budget_req * req) ubifs_release_budget() argument
567 ubifs_convert_page_budget(struct ubifs_info * c) ubifs_convert_page_budget() argument
590 ubifs_release_dirty_inode_budget(struct ubifs_info * c,struct ubifs_inode * ui) ubifs_release_dirty_inode_budget() argument
621 ubifs_reported_space(const struct ubifs_info * c,long long free) ubifs_reported_space() argument
662 ubifs_get_free_space_nolock(struct ubifs_info * c) ubifs_get_free_space_nolock() argument
705 ubifs_get_free_space(struct ubifs_info * c) ubifs_get_free_space() argument
[all...]
H A Dsb.c54 static int get_default_compressor(struct ubifs_info *c) in get_default_compressor() argument
56 if (ubifs_compr_present(c, UBIFS_COMPR_ZSTD)) in get_default_compressor()
59 if (ubifs_compr_present(c, UBIFS_COMPR_LZO)) in get_default_compressor()
62 if (ubifs_compr_present(c, UBIFS_COMPR_ZLIB)) in get_default_compressor()
70 * @c: UBIFS file-system description object
75 static int create_default_filesystem(struct ubifs_info *c) in create_default_filesystem() argument
94 /* Some functions called from here depend on the @c->key_len filed */ in create_default_filesystem()
95 c->key_len = UBIFS_SK_LEN; in create_default_filesystem()
101 if (c->leb_cnt < 0x7FFFFFFF / DEFAULT_JNL_PERCENT) in create_default_filesystem()
103 jnl_lebs = c in create_default_filesystem()
379 validate_sb(struct ubifs_info * c,struct ubifs_sb_node * sup) validate_sb() argument
521 ubifs_read_sb_node(struct ubifs_info * c) ubifs_read_sb_node() argument
540 authenticate_sb_node(struct ubifs_info * c,const struct ubifs_sb_node * sup) authenticate_sb_node() argument
615 ubifs_write_sb_node(struct ubifs_info * c,struct ubifs_sb_node * sup) ubifs_write_sb_node() argument
636 ubifs_read_superblock(struct ubifs_info * c) ubifs_read_superblock() argument
795 fixup_leb(struct ubifs_info * c,int lnum,int len) fixup_leb() argument
823 fixup_free_space(struct ubifs_info * c) fixup_free_space() argument
906 ubifs_fixup_free_space(struct ubifs_info * c) ubifs_fixup_free_space() argument
930 ubifs_enable_encryption(struct ubifs_info * c) ubifs_enable_encryption() argument
[all...]
H A Dcommit.c41 * @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()
73 * Increasing @c->dirty_pn_cnt/@c in nothing_to_commit()
108 do_commit(struct ubifs_info * c) do_commit() argument
243 run_bg_commit(struct ubifs_info * c) run_bg_commit() argument
289 struct ubifs_info *c = info; ubifs_bg_thread() local
337 ubifs_commit_required(struct ubifs_info * c) ubifs_commit_required() argument
367 ubifs_request_bg_commit(struct ubifs_info * c) ubifs_request_bg_commit() argument
386 wait_for_commit(struct ubifs_info * c) wait_for_commit() argument
410 ubifs_run_commit(struct ubifs_info * c) ubifs_run_commit() argument
478 ubifs_gc_should_commit(struct ubifs_info * c) ubifs_gc_should_commit() argument
525 dbg_old_index_check_init(struct ubifs_info * c,struct ubifs_zbranch * zroot) dbg_old_index_check_init() argument
564 dbg_check_old_index(struct ubifs_info * c,struct ubifs_zbranch * zroot) dbg_check_old_index() argument
[all...]
H A Dlog.c20 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
65 if (!c in ubifs_get_wbuf()
90 empty_log_bytes(const struct ubifs_info * c) empty_log_bytes() argument
112 ubifs_add_bud(struct ubifs_info * c,struct ubifs_bud * bud) ubifs_add_bud() argument
164 ubifs_add_bud_to_log(struct ubifs_info * c,int jhead,int lnum,int offs) ubifs_add_bud_to_log() argument
297 remove_buds(struct ubifs_info * c) remove_buds() argument
356 ubifs_log_start_commit(struct ubifs_info * c,int * ltail_lnum) ubifs_log_start_commit() argument
466 ubifs_log_end_commit(struct ubifs_info * c,int ltail_lnum) ubifs_log_end_commit() argument
515 ubifs_log_post_commit(struct ubifs_info * c,int old_ltail_lnum) ubifs_log_post_commit() argument
611 add_node(struct ubifs_info * c,void * buf,int * lnum,int * offs,void * node) add_node() argument
642 ubifs_consolidate_log(struct ubifs_info * c) ubifs_consolidate_log() argument
740 dbg_check_bud_bytes(struct ubifs_info * c) dbg_check_bud_bytes() argument
[all...]
H A Dtnc_commit.c18 * @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, id in make_idx_node()
106 fill_gap(struct ubifs_info * c,int lnum,int gap_start,int gap_end,int * dirt) fill_gap() argument
163 find_old_idx(struct ubifs_info * c,int lnum,int offs) find_old_idx() argument
198 is_idx_node_in_use(struct ubifs_info * c,union ubifs_key * key,int level,int lnum,int offs) is_idx_node_in_use() argument
224 layout_leb_in_gaps(struct ubifs_info * c,int p) layout_leb_in_gaps() argument
334 get_leb_cnt(struct ubifs_info * c,int cnt) get_leb_cnt() argument
356 layout_in_gaps(struct ubifs_info * c,int cnt) layout_in_gaps() argument
429 layout_in_empty_space(struct ubifs_info * c) layout_in_empty_space() argument
568 layout_commit(struct ubifs_info * c,int no_space,int cnt) layout_commit() argument
642 get_znodes_to_commit(struct ubifs_info * c) get_znodes_to_commit() argument
685 alloc_idx_lebs(struct ubifs_info * c,int cnt) alloc_idx_lebs() argument
719 free_unused_idx_lebs(struct ubifs_info * c) free_unused_idx_lebs() argument
740 free_idx_lebs(struct ubifs_info * c) free_idx_lebs() argument
760 ubifs_tnc_start_commit(struct ubifs_info * c,struct ubifs_zbranch * zroot) ubifs_tnc_start_commit() argument
826 write_index(struct ubifs_info * c) write_index() argument
1034 free_obsolete_znodes(struct ubifs_info * c) free_obsolete_znodes() argument
1059 return_gap_lebs(struct ubifs_info * c) return_gap_lebs() argument
1085 ubifs_tnc_end_commit(struct ubifs_info * c) ubifs_tnc_end_commit() argument
[all...]
H A Dorphan.c30 * (c->leb_size - UBIFS_ORPH_NODE_SZ) / sizeof(__le64)
43 static int dbg_check_orphans(struct ubifs_info *c);
47 * @c: UBIFS file-system description object
53 int ubifs_add_orphan(struct ubifs_info *c, ino_t inum) in ubifs_add_orphan() argument
64 spin_lock(&c->orphan_lock); in ubifs_add_orphan()
65 if (c->tot_orphans >= c->max_orphans) { in ubifs_add_orphan()
66 spin_unlock(&c->orphan_lock); in ubifs_add_orphan()
70 p = &c->orph_tree.rb_node; in ubifs_add_orphan()
79 ubifs_err(c, "in in ubifs_add_orphan()
97 lookup_orphan(struct ubifs_info * c,ino_t inum) lookup_orphan() argument
116 __orphan_drop(struct ubifs_info * c,struct ubifs_orphan * o) __orphan_drop() argument
130 orphan_delete(struct ubifs_info * c,struct ubifs_orphan * orph) orphan_delete() argument
156 ubifs_delete_orphan(struct ubifs_info * c,ino_t inum) ubifs_delete_orphan() argument
182 ubifs_orphan_start_commit(struct ubifs_info * c) ubifs_orphan_start_commit() argument
216 avail_orphs(struct ubifs_info * c) avail_orphs() argument
236 tot_avail_orphs(struct ubifs_info * c) tot_avail_orphs() argument
256 do_write_orph_node(struct ubifs_info * c,int len,int atomic) do_write_orph_node() argument
287 write_orph_node(struct ubifs_info * c,int atomic) write_orph_node() argument
350 write_orph_nodes(struct ubifs_info * c,int atomic) write_orph_nodes() argument
383 consolidate(struct ubifs_info * c) consolidate() argument
428 commit_orphans(struct ubifs_info * c) commit_orphans() argument
454 erase_deleted(struct ubifs_info * c) erase_deleted() argument
480 ubifs_orphan_end_commit(struct ubifs_info * c) ubifs_orphan_end_commit() argument
502 ubifs_clear_orphans(struct ubifs_info * c) ubifs_clear_orphans() argument
528 do_kill_orphans(struct ubifs_info * c,struct ubifs_scan_leb * sleb,unsigned long long * last_cmt_no,int * outofdate,int * last_flagged) do_kill_orphans() argument
645 kill_orphans(struct ubifs_info * c) kill_orphans() argument
707 ubifs_mount_orphans(struct ubifs_info * c,int unclean,int read_only) ubifs_mount_orphans() argument
745 dbg_find_orphan(struct ubifs_info * c,ino_t inum) dbg_find_orphan() argument
810 dbg_orphan_check(struct ubifs_info * c,struct ubifs_zbranch * zbr,void * priv) dbg_orphan_check() argument
870 dbg_scan_orphans(struct ubifs_info * c,struct check_info * ci) dbg_scan_orphans() argument
904 dbg_check_orphans(struct ubifs_info * c) dbg_check_orphans() argument
[all...]
H A Dfind.c36 * @c: the UBIFS file-system description object
42 static int valuable(struct ubifs_info *c, const struct ubifs_lprops *lprops) in valuable() argument
51 heap = &c->lpt_heap[cat - 1]; in valuable()
54 if (lprops->free + lprops->dirty >= c->dark_wm) in valuable()
58 n = c->lst.empty_lebs + c->freeable_cnt - in valuable()
59 c->lst.taken_empty_lebs; in valuable()
60 if (n < c->lsave_cnt) in valuable()
73 * @c: the UBIFS file-system description object
83 static int scan_for_dirty_cb(struct ubifs_info *c, in scan_for_dirty_cb() argument
125 scan_for_dirty(struct ubifs_info * c,int min_space,int pick_free,int exclude_index) scan_for_dirty() argument
221 ubifs_find_dirty_leb(struct ubifs_info * c,struct ubifs_lprops * ret_lp,int min_space,int pick_free) ubifs_find_dirty_leb() argument
350 scan_for_free_cb(struct ubifs_info * c,const struct ubifs_lprops * lprops,int in_tree,void * arg) scan_for_free_cb() argument
396 do_find_free_space(struct ubifs_info * c,int min_space,int pick_free,int squeeze) do_find_free_space() argument
482 ubifs_find_free_space(struct ubifs_info * c,int min_space,int * offs,int squeeze) ubifs_find_free_space() argument
591 scan_for_idx_cb(struct ubifs_info * c,const struct ubifs_lprops * lprops,int in_tree,void * arg) scan_for_idx_cb() argument
623 scan_for_leb_for_idx(struct ubifs_info * c) scan_for_leb_for_idx() argument
662 ubifs_find_free_leb_for_idx(struct ubifs_info * c) ubifs_find_free_leb_for_idx() argument
746 ubifs_save_dirty_idx_lnums(struct ubifs_info * c) ubifs_save_dirty_idx_lnums() argument
783 scan_dirty_idx_cb(struct ubifs_info * c,const struct ubifs_lprops * lprops,int in_tree,void * arg) scan_dirty_idx_cb() argument
817 find_dirty_idx_leb(struct ubifs_info * c) find_dirty_idx_leb() argument
876 get_idx_gc_leb(struct ubifs_info * c) get_idx_gc_leb() argument
905 find_dirtiest_idx_leb(struct ubifs_info * c) find_dirtiest_idx_leb() argument
941 ubifs_find_dirty_idx_leb(struct ubifs_info * c) ubifs_find_dirty_idx_leb() argument
[all...]
H A Dio.c22 * UBIFS distinguishes between minimum write size (@c->min_io_size) and maximum
23 * write size (@c->max_write_size). The latter is the maximum amount of bytes
25 * @c->max_write_size units should presumably be faster. Obviously,
26 * @c->min_io_size <= @c->max_write_size. Write-buffers are of
27 * @c->max_write_size bytes in size for maximum performance. However, when a
28 * write-buffer is flushed, only the portion of it (aligned to @c->min_io_size
33 * hand, we want to write in optimal @c->max_write_size bytes chunks, which
34 * also means aligning writes at the @c->max_write_size bytes offsets. On the
37 * the next write offset to be not aligned to @c
70 ubifs_ro_mode(struct ubifs_info * c,int err) ubifs_ro_mode() argument
87 ubifs_leb_read(const struct ubifs_info * c,int lnum,void * buf,int offs,int len,int even_ebadmsg) ubifs_leb_read() argument
105 ubifs_leb_write(struct ubifs_info * c,int lnum,const void * buf,int offs,int len) ubifs_leb_write() argument
126 ubifs_leb_change(struct ubifs_info * c,int lnum,const void * buf,int len) ubifs_leb_change() argument
146 ubifs_leb_unmap(struct ubifs_info * c,int lnum) ubifs_leb_unmap() argument
165 ubifs_leb_map(struct ubifs_info * c,int lnum) ubifs_leb_map() argument
184 ubifs_is_mapped(const struct ubifs_info * c,int lnum) ubifs_is_mapped() argument
244 ubifs_check_node(const struct ubifs_info * c,const void * buf,int len,int lnum,int offs,int quiet,int must_chk_crc) ubifs_check_node() argument
328 ubifs_pad(const struct ubifs_info * c,void * buf,int pad) ubifs_pad() argument
358 next_sqnum(struct ubifs_info * c) next_sqnum() argument
378 ubifs_init_node(struct ubifs_info * c,void * node,int len,int pad) ubifs_init_node() argument
398 ubifs_crc_node(struct ubifs_info * c,void * node,int len) ubifs_crc_node() argument
422 ubifs_prepare_node_hmac(struct ubifs_info * c,void * node,int len,int hmac_offs,int pad) ubifs_prepare_node_hmac() argument
451 ubifs_prepare_node(struct ubifs_info * c,void * node,int len,int pad) ubifs_prepare_node() argument
470 ubifs_prep_grp_node(struct ubifs_info * c,void * node,int len,int last) ubifs_prep_grp_node() argument
512 new_wbuf_timer_nolock(struct ubifs_info * c,struct ubifs_wbuf * wbuf) new_wbuf_timer_nolock() argument
560 struct ubifs_info *c = wbuf->c; ubifs_wbuf_sync_nolock() local
635 const struct ubifs_info *c = wbuf->c; ubifs_wbuf_seek_nolock() local
668 ubifs_bg_wbufs_sync(struct ubifs_info * c) ubifs_bg_wbufs_sync() argument
742 struct ubifs_info *c = wbuf->c; ubifs_wbuf_write_nolock() local
957 ubifs_write_node_hmac(struct ubifs_info * c,void * buf,int len,int lnum,int offs,int hmac_offs) ubifs_write_node_hmac() argument
998 ubifs_write_node(struct ubifs_info * c,void * buf,int len,int lnum,int offs) ubifs_write_node() argument
1022 const struct ubifs_info *c = wbuf->c; ubifs_read_node_wbuf() local
1096 ubifs_read_node(const struct ubifs_info * c,void * buf,int type,int len,int lnum,int offs) ubifs_read_node() argument
1150 ubifs_wbuf_init(struct ubifs_info * c,struct ubifs_wbuf * wbuf) ubifs_wbuf_init() argument
1237 ubifs_sync_wbufs_by_inode(struct ubifs_info * c,struct inode * inode) ubifs_sync_wbufs_by_inode() argument
[all...]
/linux/fs/jffs2/
H A Dwbuf.c35 #define PAGE_DIV(x) ( ((unsigned long)(x) / (unsigned long)(c->wbuf_pagesize)) * (unsigned long)(c->wbuf_pagesize) )
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()
108 jffs2_refile_wbuf_blocks(struct jffs2_sb_info * c) jffs2_refile_wbuf_blocks() argument
141 jffs2_block_refile(struct jffs2_sb_info * c,struct jffs2_eraseblock * jeb,int allow_empty) jffs2_block_refile() argument
182 jffs2_incore_replace_raw(struct jffs2_sb_info * c,struct jffs2_inode_info * f,struct jffs2_raw_node_ref * raw,union jffs2_node_union * node) jffs2_incore_replace_raw() argument
230 jffs2_verify_write(struct jffs2_sb_info * c,unsigned char * buf,uint32_t ofs) jffs2_verify_write() argument
269 jffs2_verify_write(c,b,o) global() argument
275 jffs2_wbuf_recover(struct jffs2_sb_info * c) jffs2_wbuf_recover() argument
580 __jffs2_flush_wbuf(struct jffs2_sb_info * c,int pad) __jffs2_flush_wbuf() argument
702 jffs2_flush_wbuf_gc(struct jffs2_sb_info * c,uint32_t ino) jffs2_flush_wbuf_gc() argument
764 jffs2_flush_wbuf_pad(struct jffs2_sb_info * c) jffs2_flush_wbuf_pad() argument
781 jffs2_fill_wbuf(struct jffs2_sb_info * c,const uint8_t * buf,size_t len) jffs2_fill_wbuf() argument
794 jffs2_flash_writev(struct jffs2_sb_info * c,const struct kvec * invecs,unsigned long count,loff_t to,size_t * retlen,uint32_t ino) jffs2_flash_writev() argument
941 jffs2_flash_write(struct jffs2_sb_info * c,loff_t ofs,size_t len,size_t * retlen,const u_char * buf) jffs2_flash_write() argument
957 jffs2_flash_read(struct jffs2_sb_info * c,loff_t ofs,size_t len,size_t * retlen,u_char * buf) jffs2_flash_read() argument
1033 jffs2_check_oob_empty(struct jffs2_sb_info * c,struct jffs2_eraseblock * jeb,int mode) jffs2_check_oob_empty() argument
1076 jffs2_check_nand_cleanmarker(struct jffs2_sb_info * c,struct jffs2_eraseblock * jeb) jffs2_check_nand_cleanmarker() argument
1100 jffs2_write_nand_cleanmarker(struct jffs2_sb_info * c,struct jffs2_eraseblock * jeb) jffs2_write_nand_cleanmarker() argument
1133 jffs2_write_nand_badblock(struct jffs2_sb_info * c,struct jffs2_eraseblock * jeb,uint32_t bad_offset) jffs2_write_nand_badblock() argument
1162 struct jffs2_sb_info *c = work_to_sb(work); delayed_wbuf_sync() local
1171 jffs2_dirty_trigger(struct jffs2_sb_info * c) jffs2_dirty_trigger() argument
1184 jffs2_nand_flash_setup(struct jffs2_sb_info * c) jffs2_nand_flash_setup() argument
1228 jffs2_nand_flash_cleanup(struct jffs2_sb_info * c) jffs2_nand_flash_cleanup() argument
1237 jffs2_dataflash_setup(struct jffs2_sb_info * c) jffs2_dataflash_setup() argument
1286 jffs2_dataflash_cleanup(struct jffs2_sb_info * c) jffs2_dataflash_cleanup() argument
1293 jffs2_nor_wbuf_flash_setup(struct jffs2_sb_info * c) jffs2_nor_wbuf_flash_setup() argument
1319 jffs2_nor_wbuf_flash_cleanup(struct jffs2_sb_info * c) jffs2_nor_wbuf_flash_cleanup() argument
1326 jffs2_ubivol_setup(struct jffs2_sb_info * c) jffs2_ubivol_setup() argument
1348 jffs2_ubivol_cleanup(struct jffs2_sb_info * c) jffs2_ubivol_cleanup() argument
[all...]
H A Dnodemgmt.c25 static int jffs2_rp_can_write(struct jffs2_sb_info *c) in jffs2_rp_can_write() argument
28 struct jffs2_mount_opts *opts = &c->mount_opts; in jffs2_rp_can_write()
30 avail = c->dirty_size + c->free_size + c->unchecked_size + in jffs2_rp_can_write()
31 c->erasing_size - c->resv_blocks_write * c->sector_size in jffs2_rp_can_write()
32 - c->nospc_dirty_size; in jffs2_rp_can_write()
38 opts->rp_size, c in jffs2_rp_can_write()
78 jffs2_reserve_space(struct jffs2_sb_info * c,uint32_t minsize,uint32_t * len,int prio,uint32_t sumsize) jffs2_reserve_space() argument
216 jffs2_reserve_space_gc(struct jffs2_sb_info * c,uint32_t minsize,uint32_t * len,uint32_t sumsize) jffs2_reserve_space_gc() argument
247 jffs2_close_nextblock(struct jffs2_sb_info * c,struct jffs2_eraseblock * jeb) jffs2_close_nextblock() argument
284 jffs2_find_nextblock(struct jffs2_sb_info * c) jffs2_find_nextblock() argument
358 jffs2_do_reserve_space(struct jffs2_sb_info * c,uint32_t minsize,uint32_t * len,uint32_t sumsize) jffs2_do_reserve_space() argument
507 jffs2_add_physical_node_ref(struct jffs2_sb_info * c,uint32_t ofs,uint32_t len,struct jffs2_inode_cache * ic) jffs2_add_physical_node_ref() argument
563 jffs2_complete_reservation(struct jffs2_sb_info * c) jffs2_complete_reservation() argument
586 jffs2_mark_node_obsolete(struct jffs2_sb_info * c,struct jffs2_raw_node_ref * ref) jffs2_mark_node_obsolete() argument
844 jffs2_thread_should_wake(struct jffs2_sb_info * c) jffs2_thread_should_wake() argument
[all...]
H A Dbuild.c27 first_inode_chain(int *i, struct jffs2_sb_info *c) in first_inode_chain() argument
29 for (; *i < c->inocache_hashsize; (*i)++) { in first_inode_chain()
30 if (c->inocache_list[*i]) in first_inode_chain()
31 return c->inocache_list[*i]; in first_inode_chain()
37 next_inode(int *i, struct jffs2_inode_cache *ic, struct jffs2_sb_info *c) in next_inode() argument
43 return first_inode_chain(i, c); in next_inode()
46 #define for_each_inode(i, c, ic) \ argument
47 for (i = 0, ic = first_inode_chain(&i, (c)); \
49 ic = next_inode(&i, ic, (c)))
52 static void jffs2_build_inode_pass1(struct jffs2_sb_info *c, in jffs2_build_inode_pass1() argument
99 jffs2_build_filesystem(struct jffs2_sb_info * c) jffs2_build_filesystem() argument
242 jffs2_build_remove_unlinked_inode(struct jffs2_sb_info * c,struct jffs2_inode_cache * ic,struct jffs2_full_dirent ** dead_fds) jffs2_build_remove_unlinked_inode() argument
311 jffs2_calc_trigger_levels(struct jffs2_sb_info * c) jffs2_calc_trigger_levels() argument
373 jffs2_do_mount_fs(struct jffs2_sb_info * c) jffs2_do_mount_fs() argument
[all...]
H A Derase.c24 static void jffs2_erase_failed(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_offset);
25 static void jffs2_erase_succeeded(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb);
26 static void jffs2_mark_erased_block(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb);
28 static void jffs2_erase_block(struct jffs2_sb_info *c, in jffs2_erase_block() argument
34 ret = jffs2_flash_erase(c, jeb); in jffs2_erase_block()
36 jffs2_erase_succeeded(c, jeb); in jffs2_erase_block()
45 jeb->offset, jeb->offset, jeb->offset + c->sector_size); in jffs2_erase_block()
49 mutex_lock(&c->erase_free_sem); in jffs2_erase_block()
50 spin_lock(&c->erase_completion_lock); in jffs2_erase_block()
51 list_move(&jeb->list, &c in jffs2_erase_block()
99 jffs2_erase_pending_blocks(struct jffs2_sb_info * c,int count) jffs2_erase_pending_blocks() argument
159 jffs2_erase_succeeded(struct jffs2_sb_info * c,struct jffs2_eraseblock * jeb) jffs2_erase_succeeded() argument
172 jffs2_erase_failed(struct jffs2_sb_info * c,struct jffs2_eraseblock * jeb,uint32_t bad_offset) jffs2_erase_failed() argument
206 jffs2_remove_node_refs_from_ino_list(struct jffs2_sb_info * c,struct jffs2_raw_node_ref * ref,struct jffs2_eraseblock * jeb) jffs2_remove_node_refs_from_ino_list() argument
287 jffs2_free_jeb_node_refs(struct jffs2_sb_info * c,struct jffs2_eraseblock * jeb) jffs2_free_jeb_node_refs() argument
311 jffs2_block_check_erase(struct jffs2_sb_info * c,struct jffs2_eraseblock * jeb,uint32_t * bad_offset) jffs2_block_check_erase() argument
397 jffs2_mark_erased_block(struct jffs2_sb_info * c,struct jffs2_eraseblock * jeb) jffs2_mark_erased_block() argument
[all...]
/linux/fs/bcachefs/
H A Dsuper.c106 static void __bch2_print_str(struct bch_fs *c, const char *prefix, in __bch2_print_str() argument
110 struct stdio_redirect *stdio = bch2_fs_stdio_redirect(c); in __bch2_print_str()
120 void bch2_print_str(struct bch_fs *c, const char *prefix, const char *str) in bch2_print_str() argument
122 __bch2_print_str(c, prefix, str); in bch2_print_str()
150 void __bch2_print(struct bch_fs *c, const char *fmt, ...) in __bch2_print() argument
152 struct stdio_redirect *stdio = bch2_fs_stdio_redirect(c); in __bch2_print()
219 struct bch_fs *c; in bch2_dev_to_fs() local
220 list_for_each_entry(c, &bch_fs_list, list) in bch2_dev_to_fs()
221 for_each_member_device_rcu(c, ca, NULL) in bch2_dev_to_fs()
223 closure_get(&c in bch2_dev_to_fs()
231 struct bch_fs *c; __bch2_uuid_to_fs() local
244 struct bch_fs *c; bch2_uuid_to_fs() local
272 __bch2_fs_read_only(struct bch_fs * c) __bch2_fs_read_only() argument
323 struct bch_fs *c = container_of(writes, struct bch_fs, writes); bch2_writes_disabled() local
329 bch2_fs_read_only(struct bch_fs * c) bch2_fs_read_only() argument
405 struct bch_fs *c = bch2_fs_read_only_work() local
413 bch2_fs_read_only_async(struct bch_fs * c) bch2_fs_read_only_async() argument
418 bch2_fs_emergency_read_only(struct bch_fs * c) bch2_fs_emergency_read_only() argument
429 __bch2_fs_emergency_read_only2(struct bch_fs * c,struct printbuf * out,bool locked) __bch2_fs_emergency_read_only2() argument
448 bch2_fs_emergency_read_only2(struct bch_fs * c,struct printbuf * out) bch2_fs_emergency_read_only2() argument
453 bch2_fs_emergency_read_only_locked(struct bch_fs * c) bch2_fs_emergency_read_only_locked() argument
464 __bch2_fs_read_write(struct bch_fs * c,bool early) __bch2_fs_read_write() argument
557 bch2_fs_read_write(struct bch_fs * c) bch2_fs_read_write() argument
572 bch2_fs_read_write_early(struct bch_fs * c) bch2_fs_read_write_early() argument
583 __bch2_fs_free(struct bch_fs * c) __bch2_fs_free() argument
665 struct bch_fs *c = container_of(kobj, struct bch_fs, kobj); bch2_fs_release() local
670 __bch2_fs_stop(struct bch_fs * c) __bch2_fs_stop() argument
712 bch2_fs_free(struct bch_fs * c) bch2_fs_free() argument
737 bch2_fs_stop(struct bch_fs * c) bch2_fs_stop() argument
743 bch2_fs_online(struct bch_fs * c) bch2_fs_online() argument
796 bch2_fs_init_rw(struct bch_fs * c) bch2_fs_init_rw() argument
828 struct bch_fs *c; bch2_fs_alloc() local
1078 print_mount_opts(struct bch_fs * c) print_mount_opts() argument
1124 bch2_fs_may_start(struct bch_fs * c) bch2_fs_may_start() argument
1158 bch2_fs_start(struct bch_fs * c) bch2_fs_start() argument
1247 bch2_dev_may_add(struct bch_sb * sb,struct bch_fs * c) bch2_dev_may_add() argument
1405 __bch2_dev_offline(struct bch_fs * c,struct bch_dev * ca) __bch2_dev_offline() argument
1452 bch2_dev_sysfs_online(struct bch_fs * c,struct bch_dev * ca) bch2_dev_sysfs_online() argument
1481 __bch2_dev_alloc(struct bch_fs * c,struct bch_member * member) __bch2_dev_alloc() argument
1534 bch2_dev_attach(struct bch_fs * c,struct bch_dev * ca,unsigned dev_idx) bch2_dev_attach() argument
1550 bch2_dev_alloc(struct bch_fs * c,unsigned dev_idx) bch2_dev_alloc() argument
1616 bch2_dev_attach_bdev(struct bch_fs * c,struct bch_sb_handle * sb) bch2_dev_attach_bdev() argument
1654 bch2_dev_state_allowed(struct bch_fs * c,struct bch_dev * ca,enum bch_member_state new_state,int flags) bch2_dev_state_allowed() argument
1698 __bch2_dev_read_only(struct bch_fs * c,struct bch_dev * ca) __bch2_dev_read_only() argument
1710 __bch2_dev_read_write(struct bch_fs * c,struct bch_dev * ca) __bch2_dev_read_write() argument
1725 __bch2_dev_set_state(struct bch_fs * c,struct bch_dev * ca,enum bch_member_state new_state,int flags) __bch2_dev_set_state() argument
1756 bch2_dev_set_state(struct bch_fs * c,struct bch_dev * ca,enum bch_member_state new_state,int flags) bch2_dev_set_state() argument
1770 bch2_dev_remove(struct bch_fs * c,struct bch_dev * ca,int flags) bch2_dev_remove() argument
1897 bch2_dev_add(struct bch_fs * c,const char * path) bch2_dev_add() argument
2049 bch2_dev_online(struct bch_fs * c,const char * path) bch2_dev_online() argument
2114 bch2_dev_offline(struct bch_fs * c,struct bch_dev * ca,int flags) bch2_dev_offline() argument
2138 struct bch_fs *c = ca->fs; __bch2_dev_resize_alloc() local
2148 bch2_dev_resize(struct bch_fs * c,struct bch_dev * ca,u64 nbuckets) bch2_dev_resize() argument
2206 bch2_fs_resize_on_mount(struct bch_fs * c) bch2_fs_resize_on_mount() argument
2250 bch2_dev_lookup(struct bch_fs * c,const char * name) bch2_dev_lookup() argument
2267 struct bch_fs *c = holder->c; bdev_get_fs() local
2280 bdev_to_bch_dev(struct bch_fs * c,struct block_device * bdev) bdev_to_bch_dev() argument
2290 struct bch_fs *c = bdev_get_fs(bdev); bch2_fs_bdev_mark_dead() local
2345 struct bch_fs *c = bdev_get_fs(bdev); bch2_fs_bdev_sync() local
2381 struct bch_fs *c = NULL; bch2_fs_open() local
[all...]
H A Drecovery.c36 int bch2_btree_lost_data(struct bch_fs *c, in bch2_btree_lost_data() argument
43 mutex_lock(&c->sb_lock); in bch2_btree_lost_data()
44 struct bch_sb_field_ext *ext = bch2_sb_field_get(c->disk_sb.sb, ext); in bch2_btree_lost_data()
46 if (!(c->sb.btrees_lost_data & b)) { in bch2_btree_lost_data()
55 ret = __bch2_run_explicit_recovery_pass(c, msg, BCH_RECOVERY_PASS_check_topology, 0) ?: ret; in bch2_btree_lost_data()
59 ret = __bch2_run_explicit_recovery_pass(c, msg, BCH_RECOVERY_PASS_check_allocations, 0) ?: ret; in bch2_btree_lost_data()
66 ret = __bch2_run_explicit_recovery_pass(c, msg, BCH_RECOVERY_PASS_check_lrus, 0) ?: ret; in bch2_btree_lost_data()
67 ret = __bch2_run_explicit_recovery_pass(c, msg, BCH_RECOVERY_PASS_check_backpointers_to_extents, 0) ?: ret; in bch2_btree_lost_data()
72 ret = __bch2_run_explicit_recovery_pass(c, msg, BCH_RECOVERY_PASS_check_alloc_info, 0) ?: ret; in bch2_btree_lost_data()
82 ret = __bch2_run_explicit_recovery_pass(c, ms in bch2_btree_lost_data()
117 kill_btree(struct bch_fs * c,enum btree_id btree) kill_btree() argument
124 bch2_reconstruct_alloc(struct bch_fs * c) bch2_reconstruct_alloc() argument
277 struct bch_fs *c = trans->c; bch2_journal_replay_key() local
342 bch2_journal_replay(struct bch_fs * c) bch2_journal_replay() argument
492 journal_replay_entry_early(struct bch_fs * c,struct jset_entry * entry) journal_replay_entry_early() argument
563 journal_replay_early(struct bch_fs * c,struct bch_sb_field_clean * clean) journal_replay_early() argument
597 read_btree_roots(struct bch_fs * c) read_btree_roots() argument
639 check_version_upgrade(struct bch_fs * c) check_version_upgrade() argument
730 bch2_fs_recovery(struct bch_fs * c) bch2_fs_recovery() argument
1165 bch2_fs_initialize(struct bch_fs * c) bch2_fs_initialize() argument
[all...]
/linux/arch/mips/kernel/
H A Dcpu-probe.c90 static int set_ftlb_enable(struct cpuinfo_mips *c, enum ftlb_flags flags);
147 static inline void cpu_set_mt_per_tc_perf(struct cpuinfo_mips *c) in cpu_set_mt_per_tc_perf() argument
150 c->options |= MIPS_CPU_MT_PER_TC_PERF_COUNTERS; in cpu_set_mt_per_tc_perf()
155 struct cpuinfo_mips *c = &current_cpu_data; in check_errata() local
164 if ((c->processor_id & PRID_REV_MASK) <= PRID_REV_34K_V1_0_2) in check_errata()
211 static inline void cpu_probe_vmbits(struct cpuinfo_mips *c) in cpu_probe_vmbits() argument
216 c->vmbits = fls64(read_c0_entryhi() & 0x3fffffffffffe000ULL); in cpu_probe_vmbits()
220 static void set_isa(struct cpuinfo_mips *c, unsigned int isa) in set_isa() argument
224 c->isa_level |= MIPS_CPU_ISA_M32R5 | MIPS_CPU_ISA_M64R5; in set_isa()
228 c in set_isa()
280 calculate_ftlb_probability(struct cpuinfo_mips * c) calculate_ftlb_probability() argument
306 set_ftlb_enable(struct cpuinfo_mips * c,enum ftlb_flags flags) set_ftlb_enable() argument
358 mm_config(struct cpuinfo_mips * c) mm_config() argument
404 decode_config0(struct cpuinfo_mips * c) decode_config0() argument
462 decode_config1(struct cpuinfo_mips * c) decode_config1() argument
491 decode_config2(struct cpuinfo_mips * c) decode_config2() argument
503 decode_config3(struct cpuinfo_mips * c) decode_config3() argument
558 decode_config4(struct cpuinfo_mips * c) decode_config4() argument
642 decode_config5(struct cpuinfo_mips * c) decode_config5() argument
721 decode_configs(struct cpuinfo_mips * c) decode_configs() argument
827 decode_guest_config0(struct cpuinfo_mips * c) decode_guest_config0() argument
838 decode_guest_config1(struct cpuinfo_mips * c) decode_guest_config1() argument
866 decode_guest_config2(struct cpuinfo_mips * c) decode_guest_config2() argument
877 decode_guest_config3(struct cpuinfo_mips * c) decode_guest_config3() argument
914 decode_guest_config4(struct cpuinfo_mips * c) decode_guest_config4() argument
929 decode_guest_config5(struct cpuinfo_mips * c) decode_guest_config5() argument
952 decode_guest_configs(struct cpuinfo_mips * c) decode_guest_configs() argument
969 cpu_probe_guestctl0(struct cpuinfo_mips * c) cpu_probe_guestctl0() argument
1003 cpu_probe_guestctl1(struct cpuinfo_mips * c) cpu_probe_guestctl1() argument
1015 cpu_probe_gtoffset(struct cpuinfo_mips * c) cpu_probe_gtoffset() argument
1024 cpu_probe_vz(struct cpuinfo_mips * c) cpu_probe_vz() argument
1038 cpu_probe_legacy(struct cpuinfo_mips * c,unsigned int cpu) cpu_probe_legacy() argument
1306 cpu_probe_mips(struct cpuinfo_mips * c,unsigned int cpu) cpu_probe_mips() argument
1473 cpu_probe_alchemy(struct cpuinfo_mips * c,unsigned int cpu) cpu_probe_alchemy() argument
1513 cpu_probe_sibyte(struct cpuinfo_mips * c,unsigned int cpu) cpu_probe_sibyte() argument
1533 cpu_probe_sandcraft(struct cpuinfo_mips * c,unsigned int cpu) cpu_probe_sandcraft() argument
1546 cpu_probe_nxp(struct cpuinfo_mips * c,unsigned int cpu) cpu_probe_nxp() argument
1558 cpu_probe_broadcom(struct cpuinfo_mips * c,unsigned int cpu) cpu_probe_broadcom() argument
1607 cpu_probe_cavium(struct cpuinfo_mips * c,unsigned int cpu) cpu_probe_cavium() argument
1655 decode_cpucfg(struct cpuinfo_mips * c) decode_cpucfg() argument
1679 cpu_probe_loongson(struct cpuinfo_mips * c,unsigned int cpu) cpu_probe_loongson() argument
1746 cpu_probe_loongson(struct cpuinfo_mips * c,unsigned int cpu) cpu_probe_loongson() argument
1749 cpu_probe_ingenic(struct cpuinfo_mips * c,unsigned int cpu) cpu_probe_ingenic() argument
1846 struct cpuinfo_mips *c = &current_cpu_data; cpu_probe() local
2010 struct cpuinfo_mips *c = &current_cpu_data; cpu_report() local
2057 struct cpuinfo_mips *c = &current_cpu_data; cpu_disable_mmid() local
[all...]
/linux/arch/x86/kernel/cpu/
H A Damd.c92 static void init_amd_k5(struct cpuinfo_x86 *c) in init_amd_k5() argument
104 if (c->x86_model == 9 || c->x86_model == 10) { in init_amd_k5()
111 static void init_amd_k6(struct cpuinfo_x86 *c) in init_amd_k6() argument
117 if (c->x86_model < 6) { in init_amd_k6()
119 if (c->x86_model == 0) { in init_amd_k6()
120 clear_cpu_cap(c, X86_FEATURE_APIC); in init_amd_k6()
121 set_cpu_cap(c, X86_FEATURE_PGE); in init_amd_k6()
126 if (c->x86_model == 6 && c in init_amd_k6()
205 init_amd_k7(struct cpuinfo_x86 * c) init_amd_k7() argument
302 srat_detect_node(struct cpuinfo_x86 * c) srat_detect_node() argument
353 bsp_determine_snp(struct cpuinfo_x86 * c) bsp_determine_snp() argument
404 tsa_init(struct cpuinfo_x86 * c) tsa_init() argument
421 bsp_init_amd(struct cpuinfo_x86 * c) bsp_init_amd() argument
544 early_detect_mem_encrypt(struct cpuinfo_x86 * c) early_detect_mem_encrypt() argument
596 early_init_amd(struct cpuinfo_x86 * c) early_init_amd() argument
675 init_amd_k8(struct cpuinfo_x86 * c) init_amd_k8() argument
724 init_amd_gh(struct cpuinfo_x86 * c) init_amd_gh() argument
768 init_amd_ln(struct cpuinfo_x86 * c) init_amd_ln() argument
793 clear_rdrand_cpuid_bit(struct cpuinfo_x86 * c) clear_rdrand_cpuid_bit() argument
825 init_amd_jg(struct cpuinfo_x86 * c) init_amd_jg() argument
835 init_amd_bd(struct cpuinfo_x86 * c) init_amd_bd() argument
864 fix_erratum_1386(struct cpuinfo_x86 * c) fix_erratum_1386() argument
883 init_spectral_chicken(struct cpuinfo_x86 * c) init_spectral_chicken() argument
911 init_amd_zen1(struct cpuinfo_x86 * c) init_amd_zen1() argument
958 zen2_zenbleed_check(struct cpuinfo_x86 * c) zen2_zenbleed_check() argument
974 init_amd_zen2(struct cpuinfo_x86 * c) init_amd_zen2() argument
991 init_amd_zen3(struct cpuinfo_x86 * c) init_amd_zen3() argument
1004 init_amd_zen4(struct cpuinfo_x86 * c) init_amd_zen4() argument
1021 init_amd_zen5(struct cpuinfo_x86 * c) init_amd_zen5() argument
1025 init_amd(struct cpuinfo_x86 * c) init_amd() argument
1154 amd_size_cache(struct cpuinfo_x86 * c,unsigned int size) amd_size_cache() argument
1170 cpu_detect_tlb_amd(struct cpuinfo_x86 * c) cpu_detect_tlb_amd() argument
1290 struct cpuinfo_x86 *c = &cpu_data(smp_processor_id()); zenbleed_check_cpu() local
[all...]
H A Dintel.c38 static void check_memory_type_self_snoop_errata(struct cpuinfo_x86 *c) in check_memory_type_self_snoop_errata() argument
40 switch (c->x86_vfm) { in check_memory_type_self_snoop_errata()
66 static void probe_xeon_phi_r3mwait(struct cpuinfo_x86 *c) in probe_xeon_phi_r3mwait() argument
72 if (c->x86 != 6) in probe_xeon_phi_r3mwait()
74 switch (c->x86_vfm) { in probe_xeon_phi_r3mwait()
85 set_cpu_cap(c, X86_FEATURE_RING3MWAIT); in probe_xeon_phi_r3mwait()
89 if (c == &boot_cpu_data) in probe_xeon_phi_r3mwait()
130 static bool bad_spectre_microcode(struct cpuinfo_x86 *c) in bad_spectre_microcode() argument
138 if (cpu_has(c, X86_FEATURE_HYPERVISOR)) in bad_spectre_microcode()
142 if (c in bad_spectre_microcode()
157 detect_tme_early(struct cpuinfo_x86 * c) detect_tme_early() argument
186 intel_unlock_cpuid_leafs(struct cpuinfo_x86 * c) intel_unlock_cpuid_leafs() argument
202 early_init_intel(struct cpuinfo_x86 * c) early_init_intel() argument
340 bsp_init_intel(struct cpuinfo_x86 * c) bsp_init_intel() argument
363 intel_smp_check(struct cpuinfo_x86 * c) intel_smp_check() argument
390 intel_workarounds(struct cpuinfo_x86 * c) intel_workarounds() argument
467 intel_workarounds(struct cpuinfo_x86 * c) intel_workarounds() argument
472 srat_detect_node(struct cpuinfo_x86 * c) srat_detect_node() argument
489 init_cpuid_fault(struct cpuinfo_x86 * c) init_cpuid_fault() argument
499 init_intel_misc_features(struct cpuinfo_x86 * c) init_intel_misc_features() argument
536 init_intel(struct cpuinfo_x86 * c) init_intel() argument
630 intel_size_cache(struct cpuinfo_x86 * c,unsigned int size) intel_size_cache() argument
710 intel_detect_tlb(struct cpuinfo_x86 * c) intel_detect_tlb() argument
[all...]
/linux/drivers/most/
H A Dmost_cdev.c3 * cdev.c - Character device component for Mostcore
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, *tm in get_channel() local
81 stop_channel(struct comp_channel * c) stop_channel() argument
90 destroy_cdev(struct comp_channel * c) destroy_cdev() argument
101 destroy_channel(struct comp_channel * c) destroy_channel() argument
118 struct comp_channel *c; comp_open() local
159 struct comp_channel *c = to_channel(inode->i_cdev); comp_close() local
188 struct comp_channel *c = filp->private_data; comp_write() local
241 struct comp_channel *c = filp->private_data; comp_read() local
283 struct comp_channel *c = filp->private_data; comp_poll() local
322 struct comp_channel *c; comp_disconnect_channel() local
353 struct comp_channel *c; comp_rx_completion() local
386 struct comp_channel *c; comp_tx_completion() local
416 struct comp_channel *c; comp_probe() local
524 struct comp_channel *c, *tmp; most_cdev_exit() local
[all...]
H A Dcore.c3 * core.c - Implementation of core module of MOST Linux driver stack
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
152 flush_trash_fifo(struct most_channel * c) flush_trash_fifo() argument
172 struct most_channel *c = to_channel(dev); available_directions_show() local
188 struct most_channel *c = to_channel(dev); available_datatypes_show() local
208 struct most_channel *c = to_channel(dev); number_of_packet_buffers_show() local
219 struct most_channel *c = to_channel(dev); number_of_stream_buffers_show() local
230 struct most_channel *c = to_channel(dev); size_of_packet_buffer_show() local
241 struct most_channel *c = to_channel(dev); size_of_stream_buffer_show() local
252 struct most_channel *c = to_channel(dev); channel_starving_show() local
261 struct most_channel *c = to_channel(dev); set_number_of_buffers_show() local
270 struct most_channel *c = to_channel(dev); set_buffer_size_show() local
279 struct most_channel *c = to_channel(dev); set_direction_show() local
293 struct most_channel *c = to_channel(dev); set_datatype_show() local
307 struct most_channel *c = to_channel(dev); set_subbuffer_size_show() local
316 struct most_channel *c = to_channel(dev); set_packets_per_xact_show() local
324 struct most_channel *c = to_channel(dev); set_dbr_size_show() local
335 struct most_channel *c = to_channel(dev); channel_attr_is_visible() local
469 struct most_channel *c; print_links() local
536 struct most_channel *c, *tmp; get_channel() local
551 link_channel_to_component(struct most_channel * c,struct most_component * comp,char * name,char * comp_param) link_channel_to_component() argument
578 struct most_channel *c = get_channel(mdev, mdev_ch); most_set_cfg_buffer_size() local
588 struct most_channel *c = get_channel(mdev, mdev_ch); most_set_cfg_subbuffer_size() local
598 struct most_channel *c = get_channel(mdev, mdev_ch); most_set_cfg_dbr_size() local
608 struct most_channel *c = get_channel(mdev, mdev_ch); most_set_cfg_num_buffers() local
619 struct most_channel *c = get_channel(mdev, mdev_ch); most_set_cfg_datatype() local
637 struct most_channel *c = get_channel(mdev, mdev_ch); most_set_cfg_direction() local
658 struct most_channel *c = get_channel(mdev, mdev_ch); most_set_cfg_packets_xact() local
680 struct most_channel *c = get_channel(mdev, mdev_ch); most_add_link() local
691 struct most_channel *c; most_remove_link() local
739 struct most_channel *c = mbo->context; trash_mbo() local
746 hdm_mbo_ready(struct most_channel * c) hdm_mbo_ready() argument
763 struct most_channel *c = mbo->context; nq_hdm_mbo() local
773 struct most_channel *c = data; hdm_enqueue_thread() local
811 run_enqueue_thread(struct most_channel * c,int channel_id) run_enqueue_thread() argument
838 struct most_channel *c; arm_mbo() local
872 arm_mbo_chain(struct most_channel * c,int dir,void (* compl)(struct mbo *)) arm_mbo_chain() argument
944 struct most_channel *c; most_write_completion() local
956 struct most_channel *c = iface->p->channel[id]; channel_has_mbo() local
988 struct most_channel *c; most_get_mbo() local
1029 struct most_channel *c = mbo->context; most_put_mbo() local
1052 struct most_channel *c = mbo->context; most_read_completion() local
1095 struct most_channel *c = iface->p->channel[id]; most_start_channel() local
1163 struct most_channel *c; most_stop_channel() local
1233 struct most_channel *c, *tmp; disconnect_channels() local
1267 struct most_channel *c = to_channel(dev); release_channel() local
1283 struct most_channel *c; most_register_interface() local
1384 struct most_channel *c; most_deregister_interface() local
1418 struct most_channel *c = iface->p->channel[id]; most_stop_enqueue() local
1439 struct most_channel *c = iface->p->channel[id]; most_resume_enqueue() local
[all...]
/linux/tools/include/linux/
H A Dctype.h25 #define isalnum(c) ((__ismask(c)&(_U|_L|_D)) != 0) argument
26 #define isalpha(c) ((__ismask(c)&(_U|_L)) != 0) argument
27 #define iscntrl(c) ((__ismask(c)&(_C)) != 0) argument
28 #define isgraph(c) ((__ismask(c)&(_P|_U|_L|_D)) != 0) argument
29 #define islower(c) ((__ismask(c) argument
30 isprint(c) global() argument
31 ispunct(c) global() argument
33 isspace(c) global() argument
34 isupper(c) global() argument
35 isxdigit(c) global() argument
37 isascii(c) global() argument
38 toascii(c) global() argument
41 isdigit(c) global() argument
43 __isdigit(int c) __isdigit() argument
47 isdigit(c) global() argument
50 __tolower(unsigned char c) __tolower() argument
57 __toupper(unsigned char c) __toupper() argument
64 tolower(c) global() argument
65 toupper(c) global() argument
71 _tolower(const char c) _tolower() argument
77 isodigit(const char c) isodigit() argument
[all...]
/linux/kernel/bpf/
H A Dmemalloc.c2 /* Copyright (c) 2022 Meta Platforms, Inc. and affiliates. */
140 static void *__alloc(struct bpf_mem_cache *c, int node, gfp_t flags) in __alloc() argument
142 if (c->percpu_size) { in __alloc()
143 void __percpu **obj = kmalloc_node(c->percpu_size, flags, node); in __alloc()
144 void __percpu *pptr = __alloc_percpu_gfp(c->unit_size, 8, flags); in __alloc()
155 return kmalloc_node(c->unit_size, flags | __GFP_ZERO, node); in __alloc()
158 static struct mem_cgroup *get_memcg(const struct bpf_mem_cache *c) in get_memcg() argument
161 if (c->objcg) in get_memcg()
162 return get_mem_cgroup_from_objcg(c->objcg); in get_memcg()
169 static void inc_active(struct bpf_mem_cache *c, unsigne argument
187 dec_active(struct bpf_mem_cache * c,unsigned long * flags) dec_active() argument
194 add_obj_to_free_list(struct bpf_mem_cache * c,void * obj) add_obj_to_free_list() argument
205 alloc_bulk(struct bpf_mem_cache * c,int cnt,int node,bool atomic) alloc_bulk() argument
277 struct bpf_mem_cache *c = container_of(head, struct bpf_mem_cache, rcu_ttrace); __free_rcu() local
294 enque_to_free(struct bpf_mem_cache * c,void * obj) enque_to_free() argument
304 do_call_rcu_ttrace(struct bpf_mem_cache * c) do_call_rcu_ttrace() argument
333 free_bulk(struct bpf_mem_cache * c) free_bulk() argument
363 struct bpf_mem_cache *c = container_of(head, struct bpf_mem_cache, rcu); __free_by_rcu() local
382 check_free_by_rcu(struct bpf_mem_cache * c) check_free_by_rcu() argument
429 struct bpf_mem_cache *c = container_of(work, struct bpf_mem_cache, refill_work); bpf_mem_refill() local
445 irq_work_raise(struct bpf_mem_cache * c) irq_work_raise() argument
467 init_refill_work(struct bpf_mem_cache * c) init_refill_work() argument
488 prefill_mem_cache(struct bpf_mem_cache * c,int cpu) prefill_mem_cache() argument
512 struct bpf_mem_cache *c; struct bpf_mem_cache __percpu *pc; bpf_mem_alloc_init() local
596 struct bpf_mem_cache *c; bpf_mem_alloc_percpu_unit_init() local
627 drain_mem_cache(struct bpf_mem_cache * c) drain_mem_cache() argument
647 check_mem_cache(struct bpf_mem_cache * c) check_mem_cache() argument
661 struct bpf_mem_cache *c; check_leaked_objs() local
745 struct bpf_mem_cache *c; bpf_mem_alloc_destroy() local
782 unit_alloc(struct bpf_mem_cache * c) unit_alloc() argument
825 unit_free(struct bpf_mem_cache * c,void * ptr) unit_free() argument
865 unit_free_rcu(struct bpf_mem_cache * c,void * ptr) unit_free_rcu() argument
909 struct bpf_mem_cache *c; bpf_mem_free() local
925 struct bpf_mem_cache *c; bpf_mem_free_rcu() local
987 struct bpf_mem_cache *c; bpf_mem_cache_alloc_flags() local
[all...]
/linux/include/linux/
H A Dctype.h25 #define isalnum(c) ((__ismask(c)&(_U|_L|_D)) != 0) argument
26 #define isalpha(c) ((__ismask(c)&(_U|_L)) != 0) argument
27 #define iscntrl(c) ((__ismask(c)&(_C)) != 0) argument
28 #define isgraph(c) ((__ismask(c)&(_P|_U|_L|_D)) != 0) argument
29 #define islower(c) ((__ismask(c) argument
30 isprint(c) global() argument
31 ispunct(c) global() argument
33 isspace(c) global() argument
34 isupper(c) global() argument
35 isxdigit(c) global() argument
37 isascii(c) global() argument
38 toascii(c) global() argument
41 isdigit(c) global() argument
43 isdigit(int c) isdigit() argument
49 __tolower(unsigned char c) __tolower() argument
56 __toupper(unsigned char c) __toupper() argument
63 tolower(c) global() argument
64 toupper(c) global() argument
70 _tolower(const char c) _tolower() argument
76 isodigit(const char c) isodigit() argument
[all...]
/linux/drivers/media/firewire/
H A Dfiredtv-avc.c90 static inline void clear_operands(struct avc_command_frame *c, int from, int to) in clear_operands() argument
92 memset(&c->operand[from], 0, to - from + 1); in clear_operands()
95 static void pad_operands(struct avc_command_frame *c, int from) in pad_operands() argument
100 clear_operands(c, from, to); in pad_operands()
336 struct avc_command_frame *c = (void *)fdtv->avc_data; in avc_tuner_tuneqpsk() local
338 c->opcode = AVC_OPCODE_VENDOR; in avc_tuner_tuneqpsk()
340 c->operand[0] = SFE_VENDOR_DE_COMPANYID_0; in avc_tuner_tuneqpsk()
341 c->operand[1] = SFE_VENDOR_DE_COMPANYID_1; in avc_tuner_tuneqpsk()
342 c->operand[2] = SFE_VENDOR_DE_COMPANYID_2; in avc_tuner_tuneqpsk()
344 c in avc_tuner_tuneqpsk()
417 struct avc_command_frame *c = (void *)fdtv->avc_data; avc_tuner_dsd_dvb_c() local
485 struct avc_command_frame *c = (void *)fdtv->avc_data; avc_tuner_dsd_dvb_t() local
586 struct avc_command_frame *c = (void *)fdtv->avc_data; avc_tuner_dsd() local
627 struct avc_command_frame *c = (void *)fdtv->avc_data; avc_tuner_set_pids() local
673 struct avc_command_frame *c = (void *)fdtv->avc_data; avc_tuner_get_ts() local
713 struct avc_command_frame *c = (void *)fdtv->avc_data; avc_identify_subunit() local
753 struct avc_command_frame *c = (void *)fdtv->avc_data; avc_tuner_status() local
834 struct avc_command_frame *c = (void *)fdtv->avc_data; avc_lnb_control() local
879 struct avc_command_frame *c = (void *)fdtv->avc_data; avc_register_remote_control() local
972 struct avc_command_frame *c = (void *)fdtv->avc_data; avc_ca_app_info() local
1014 struct avc_command_frame *c = (void *)fdtv->avc_data; avc_ca_info() local
1064 struct avc_command_frame *c = (void *)fdtv->avc_data; avc_ca_reset() local
1095 struct avc_command_frame *c = (void *)fdtv->avc_data; avc_ca_pmt() local
1239 struct avc_command_frame *c = (void *)fdtv->avc_data; avc_ca_get_time_date() local
1273 struct avc_command_frame *c = (void *)fdtv->avc_data; avc_ca_enter_menu() local
1302 struct avc_command_frame *c = (void *)fdtv->avc_data; avc_ca_get_mmi() local
[all...]

12345678910>>...205