/linux-4.1.27/fs/ubifs/ |
D | master.c | 36 static int scan_for_master(struct ubifs_info *c) in scan_for_master() argument 44 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1); in scan_for_master() 53 memcpy(c->mst_node, snod->node, snod->len); in scan_for_master() 60 sleb = ubifs_scan(c, lnum, 0, c->sbuf, 1); in scan_for_master() 72 if (memcmp((void *)c->mst_node + UBIFS_CH_SZ, in scan_for_master() 76 c->mst_offs = offs; in scan_for_master() 85 ubifs_err(c, "unexpected node type %d master LEB %d:%d", in scan_for_master() 98 static int validate_master(const struct ubifs_info *c) in validate_master() argument 103 if (c->max_sqnum >= SQNUM_WATERMARK) { in validate_master() 108 if (c->cmt_no >= c->max_sqnum) { in validate_master() [all …]
|
D | super.c | 67 static int validate_inode(struct ubifs_info *c, const struct inode *inode) in validate_inode() argument 72 if (inode->i_size > c->max_inode_sz) { in validate_inode() 73 ubifs_err(c, "inode is too large (%lld)", in validate_inode() 79 ubifs_err(c, "unknown compression type %d", ui->compr_type); in validate_inode() 93 ubifs_warn(c, "inode %lu uses '%s' compression, but it was not compiled in", in validate_inode() 97 err = dbg_check_dir(c, inode); in validate_inode() 106 struct ubifs_info *c = sb->s_fs_info; in ubifs_iget() local 125 ino_key_init(c, &key, inode->i_ino); in ubifs_iget() 127 err = ubifs_tnc_lookup(c, &key, ino); in ubifs_iget() 155 err = validate_inode(c, inode); in ubifs_iget() [all …]
|
D | lpt_commit.c | 33 static int dbg_populate_lsave(struct ubifs_info *c); 99 static int get_cnodes_to_commit(struct ubifs_info *c) in get_cnodes_to_commit() argument 104 if (!c->nroot) in get_cnodes_to_commit() 107 if (!test_bit(DIRTY_CNODE, &c->nroot->flags)) in get_cnodes_to_commit() 110 c->lpt_cnext = first_dirty_cnode(c->nroot); in get_cnodes_to_commit() 111 cnode = c->lpt_cnext; in get_cnodes_to_commit() 120 cnode->cnext = c->lpt_cnext; in get_cnodes_to_commit() 129 ubifs_assert(cnt == c->dirty_nn_cnt + c->dirty_pn_cnt); in get_cnodes_to_commit() 140 static void upd_ltab(struct ubifs_info *c, int lnum, int free, int dirty) in upd_ltab() argument 143 lnum, c->ltab[lnum - c->lpt_first].free, in upd_ltab() [all …]
|
D | sb.c | 73 static int create_default_filesystem(struct ubifs_info *c) in create_default_filesystem() argument 89 c->key_len = UBIFS_SK_LEN; in create_default_filesystem() 95 if (c->leb_cnt < 0x7FFFFFFF / DEFAULT_JNL_PERCENT) in create_default_filesystem() 97 jnl_lebs = c->leb_cnt * DEFAULT_JNL_PERCENT / 100; in create_default_filesystem() 99 jnl_lebs = (c->leb_cnt / 100) * DEFAULT_JNL_PERCENT; in create_default_filesystem() 103 if (jnl_lebs * c->leb_size > DEFAULT_MAX_JNL) in create_default_filesystem() 104 jnl_lebs = DEFAULT_MAX_JNL / c->leb_size; in create_default_filesystem() 112 tmp = 2 * (c->ref_node_alsz * jnl_lebs) + c->leb_size - 1; in create_default_filesystem() 113 log_lebs = tmp / c->leb_size; in create_default_filesystem() 116 if (c->leb_cnt - min_leb_cnt > 8) { in create_default_filesystem() [all …]
|
D | commit.c | 68 static int nothing_to_commit(struct ubifs_info *c) in nothing_to_commit() argument 74 if (c->mounting || c->remounting_rw) in nothing_to_commit() 81 if (c->zroot.znode && ubifs_zn_dirty(c->zroot.znode)) in nothing_to_commit() 91 if (c->nroot && test_bit(DIRTY_CNODE, &c->nroot->flags)) in nothing_to_commit() 94 ubifs_assert(atomic_long_read(&c->dirty_zn_cnt) == 0); in nothing_to_commit() 95 ubifs_assert(c->dirty_pn_cnt == 0); in nothing_to_commit() 96 ubifs_assert(c->dirty_nn_cnt == 0); in nothing_to_commit() 109 static int do_commit(struct ubifs_info *c) in do_commit() argument 116 ubifs_assert(!c->ro_media && !c->ro_mount); in do_commit() 118 if (c->ro_error) { in do_commit() [all …]
|
D | budget.c | 63 static void shrink_liability(struct ubifs_info *c, int nr_to_write) in shrink_liability() argument 65 down_read(&c->vfs_sb->s_umount); in shrink_liability() 66 writeback_inodes_sb(c->vfs_sb, WB_REASON_FS_FREE_SPACE); in shrink_liability() 67 up_read(&c->vfs_sb->s_umount); in shrink_liability() 78 static int run_gc(struct ubifs_info *c) in run_gc() argument 83 down_read(&c->commit_sem); in run_gc() 84 lnum = ubifs_garbage_collect(c, 1); in run_gc() 85 up_read(&c->commit_sem); in run_gc() 91 err = ubifs_return_leb(c, lnum); in run_gc() 104 static long long get_liability(struct ubifs_info *c) in get_liability() argument [all …]
|
D | log.c | 32 static int dbg_check_bud_bytes(struct ubifs_info *c); 42 struct ubifs_bud *ubifs_search_bud(struct ubifs_info *c, int lnum) in ubifs_search_bud() argument 47 spin_lock(&c->buds_lock); in ubifs_search_bud() 48 p = c->buds.rb_node; in ubifs_search_bud() 56 spin_unlock(&c->buds_lock); in ubifs_search_bud() 60 spin_unlock(&c->buds_lock); in ubifs_search_bud() 71 struct ubifs_wbuf *ubifs_get_wbuf(struct ubifs_info *c, int lnum) in ubifs_get_wbuf() argument 77 if (!c->jheads) in ubifs_get_wbuf() 80 spin_lock(&c->buds_lock); in ubifs_get_wbuf() 81 p = c->buds.rb_node; in ubifs_get_wbuf() [all …]
|
D | lpt.c | 58 static void do_calc_lpt_geom(struct ubifs_info *c) in do_calc_lpt_geom() argument 63 n = c->main_lebs + c->max_leb_cnt - c->leb_cnt; in do_calc_lpt_geom() 66 c->lpt_hght = 1; in do_calc_lpt_geom() 69 c->lpt_hght += 1; in do_calc_lpt_geom() 73 c->pnode_cnt = DIV_ROUND_UP(c->main_lebs, UBIFS_LPT_FANOUT); in do_calc_lpt_geom() 75 n = DIV_ROUND_UP(c->pnode_cnt, UBIFS_LPT_FANOUT); in do_calc_lpt_geom() 76 c->nnode_cnt = n; in do_calc_lpt_geom() 77 for (i = 1; i < c->lpt_hght; i++) { in do_calc_lpt_geom() 79 c->nnode_cnt += n; in do_calc_lpt_geom() 82 c->space_bits = fls(c->leb_size) - 3; in do_calc_lpt_geom() [all …]
|
D | orphan.c | 55 static int dbg_check_orphans(struct ubifs_info *c); 65 int ubifs_add_orphan(struct ubifs_info *c, ino_t inum) in ubifs_add_orphan() argument 76 spin_lock(&c->orphan_lock); in ubifs_add_orphan() 77 if (c->tot_orphans >= c->max_orphans) { in ubifs_add_orphan() 78 spin_unlock(&c->orphan_lock); in ubifs_add_orphan() 82 p = &c->orph_tree.rb_node; in ubifs_add_orphan() 91 ubifs_err(c, "orphaned twice"); in ubifs_add_orphan() 92 spin_unlock(&c->orphan_lock); in ubifs_add_orphan() 97 c->tot_orphans += 1; in ubifs_add_orphan() 98 c->new_orphans += 1; in ubifs_add_orphan() [all …]
|
D | tnc_commit.c | 37 static int make_idx_node(struct ubifs_info *c, struct ubifs_idx_node *idx, in make_idx_node() argument 48 struct ubifs_branch *br = ubifs_idx_branch(c, idx, i); in make_idx_node() 51 key_write_idx(c, &zbr->key, &br->key); in make_idx_node() 56 ubifs_err(c, "bad ref in znode"); in make_idx_node() 57 ubifs_dump_znode(c, znode); in make_idx_node() 59 ubifs_dump_znode(c, zbr->znode); in make_idx_node() 62 ubifs_prepare_node(c, idx, len, 0); in make_idx_node() 68 err = insert_old_idx_znode(c, znode); in make_idx_node() 80 c->zroot.lnum = lnum; in make_idx_node() 81 c->zroot.offs = offs; in make_idx_node() [all …]
|
D | find.c | 54 static int valuable(struct ubifs_info *c, const struct ubifs_lprops *lprops) in valuable() argument 63 heap = &c->lpt_heap[cat - 1]; in valuable() 66 if (lprops->free + lprops->dirty >= c->dark_wm) in valuable() 70 n = c->lst.empty_lebs + c->freeable_cnt - in valuable() 71 c->lst.taken_empty_lebs; in valuable() 72 if (n < c->lsave_cnt) in valuable() 95 static int scan_for_dirty_cb(struct ubifs_info *c, in scan_for_dirty_cb() argument 105 if (!in_tree && valuable(c, lprops)) in scan_for_dirty_cb() 114 if (lprops->free + lprops->dirty == c->leb_size) { in scan_for_dirty_cb() 118 } else if (lprops->dirty < c->dead_wm) in scan_for_dirty_cb() [all …]
|
D | lprops.c | 62 static void move_up_lpt_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, in move_up_lpt_heap() argument 99 static void adjust_lpt_heap(struct ubifs_info *c, struct ubifs_lpt_heap *heap, in adjust_lpt_heap() argument 178 static int add_to_lpt_heap(struct ubifs_info *c, struct ubifs_lprops *lprops, in add_to_lpt_heap() argument 181 struct ubifs_lpt_heap *heap = &c->lpt_heap[cat - 1]; in add_to_lpt_heap() 202 list_add(&lp->list, &c->uncat_list); in add_to_lpt_heap() 205 move_up_lpt_heap(c, heap, lprops, cat); in add_to_lpt_heap() 206 dbg_check_heap(c, heap, cat, lprops->hpos); in add_to_lpt_heap() 209 dbg_check_heap(c, heap, cat, -1); in add_to_lpt_heap() 214 move_up_lpt_heap(c, heap, lprops, cat); in add_to_lpt_heap() 215 dbg_check_heap(c, heap, cat, lprops->hpos); in add_to_lpt_heap() [all …]
|
D | replay.c | 97 static int set_bud_lprops(struct ubifs_info *c, struct bud_entry *b) in set_bud_lprops() argument 102 ubifs_get_lprops(c); in set_bud_lprops() 104 lp = ubifs_lpt_lookup_dirty(c, b->bud->lnum); in set_bud_lprops() 111 if (b->bud->start == 0 && (lp->free != c->leb_size || lp->dirty != 0)) { in set_bud_lprops() 135 dirty -= c->leb_size - lp->free; in set_bud_lprops() 148 lp = ubifs_change_lp(c, lp, b->free, dirty + b->dirty, in set_bud_lprops() 156 err = ubifs_wbuf_seek_nolock(&c->jheads[b->bud->jhead].wbuf, in set_bud_lprops() 157 b->bud->lnum, c->leb_size - b->free); in set_bud_lprops() 160 ubifs_release_lprops(c); in set_bud_lprops() 171 static int set_buds_lprops(struct ubifs_info *c) in set_buds_lprops() argument [all …]
|
D | io.c | 82 void ubifs_ro_mode(struct ubifs_info *c, int err) in ubifs_ro_mode() argument 84 if (!c->ro_error) { in ubifs_ro_mode() 85 c->ro_error = 1; in ubifs_ro_mode() 86 c->no_chk_data_crc = 0; in ubifs_ro_mode() 87 c->vfs_sb->s_flags |= MS_RDONLY; in ubifs_ro_mode() 88 ubifs_warn(c, "switched to read-only mode, error %d", err); in ubifs_ro_mode() 99 int ubifs_leb_read(const struct ubifs_info *c, int lnum, void *buf, int offs, in ubifs_leb_read() argument 104 err = ubi_read(c->ubi, lnum, buf, offs, len); in ubifs_leb_read() 110 ubifs_err(c, "reading %d bytes from LEB %d:%d failed, error %d", in ubifs_leb_read() 117 int ubifs_leb_write(struct ubifs_info *c, int lnum, const void *buf, int offs, in ubifs_leb_write() argument [all …]
|
D | gc.c | 81 static int switch_gc_head(struct ubifs_info *c) in switch_gc_head() argument 83 int err, gc_lnum = c->gc_lnum; in switch_gc_head() 84 struct ubifs_wbuf *wbuf = &c->jheads[GCHD].wbuf; in switch_gc_head() 89 c->leb_size - wbuf->offs - wbuf->used); in switch_gc_head() 99 err = ubifs_leb_unmap(c, gc_lnum); in switch_gc_head() 107 err = ubifs_add_bud_to_log(c, GCHD, gc_lnum, 0); in switch_gc_head() 111 c->gc_lnum = -1; in switch_gc_head() 128 struct ubifs_info *c = priv; in data_nodes_cmp() local 138 ubifs_assert(key_type(c, &sa->key) == UBIFS_DATA_KEY); in data_nodes_cmp() 139 ubifs_assert(key_type(c, &sb->key) == UBIFS_DATA_KEY); in data_nodes_cmp() [all …]
|
D | tnc.c | 77 static int insert_old_idx(struct ubifs_info *c, int lnum, int offs) in insert_old_idx() argument 88 p = &c->old_idx.rb_node; in insert_old_idx() 101 ubifs_err(c, "old idx added twice!"); in insert_old_idx() 107 rb_insert_color(&old_idx->rb, &c->old_idx); in insert_old_idx() 118 int insert_old_idx_znode(struct ubifs_info *c, struct ubifs_znode *znode) in insert_old_idx_znode() argument 125 return insert_old_idx(c, zbr->lnum, zbr->offs); in insert_old_idx_znode() 127 if (c->zroot.len) in insert_old_idx_znode() 128 return insert_old_idx(c, c->zroot.lnum, in insert_old_idx_znode() 129 c->zroot.offs); in insert_old_idx_znode() 140 static int ins_clr_old_idx_znode(struct ubifs_info *c, in ins_clr_old_idx_znode() argument [all …]
|
D | recovery.c | 109 static int get_master_node(const struct ubifs_info *c, int lnum, void **pbuf, in get_master_node() argument 112 const int sz = c->mst_node_alsz; in get_master_node() 116 sbuf = vmalloc(c->leb_size); in get_master_node() 120 err = ubifs_leb_read(c, lnum, sbuf, 0, c->leb_size, 0); in get_master_node() 127 len = c->leb_size; in get_master_node() 128 while (offs + UBIFS_MST_NODE_SZ <= c->leb_size) { in get_master_node() 144 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1); in get_master_node() 150 ret = ubifs_scan_a_node(c, buf, len, lnum, offs, 1); in get_master_node() 172 if (offs < c->leb_size) { in get_master_node() 182 if (offs < c->leb_size) in get_master_node() [all …]
|
D | debug.h | 27 typedef int (*dbg_leaf_callback)(struct ubifs_info *c, 29 typedef int (*dbg_znode_callback)(struct ubifs_info *c, 159 #define ubifs_assert_cmt_locked(c) do { \ argument 160 if (unlikely(down_write_trylock(&(c)->commit_sem))) { \ 161 up_write(&(c)->commit_sem); \ 176 dbg_snprintf_key(c, key, __tmp_key_buf, DBG_KEY_BUF_LEN)); \ 214 static inline int dbg_is_chk_gen(const struct ubifs_info *c) in dbg_is_chk_gen() argument 216 return !!(ubifs_dbg.chk_gen || c->dbg->chk_gen); in dbg_is_chk_gen() 218 static inline int dbg_is_chk_index(const struct ubifs_info *c) in dbg_is_chk_index() argument 220 return !!(ubifs_dbg.chk_index || c->dbg->chk_index); in dbg_is_chk_index() [all …]
|
D | debug.c | 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() 111 (unsigned long)key_inum(c, key), 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() 122 (unsigned long)key_inum(c, key), in dbg_snprintf_key() 123 get_key_type(type), key_block(c, key)); in dbg_snprintf_key() 127 (unsigned long)key_inum(c, key), in dbg_snprintf_key() 135 len -= snprintf(p, len, "bad key format %d", c->key_fmt); in dbg_snprintf_key() [all …]
|
D | ubifs.h | 46 #define ubifs_msg(c, fmt, ...) \ argument 48 (c)->vi.ubi_num, (c)->vi.vol_id, ##__VA_ARGS__) 50 #define ubifs_err(c, fmt, ...) \ argument 52 (c)->vi.ubi_num, (c)->vi.vol_id, current->pid, \ 55 #define ubifs_warn(c, fmt, ...) \ argument 57 (c)->vi.ubi_num, (c)->vi.vol_id, current->pid, \ 63 #define ubifs_errc(c, fmt, ...) \ argument 65 if (!(c)->probing) \ 66 ubifs_err(c, fmt, ##__VA_ARGS__); \ 651 typedef int (*ubifs_lpt_scan_callback)(struct ubifs_info *c, [all …]
|
D | journal.c | 115 static int reserve_space(struct ubifs_info *c, int jhead, int len) in reserve_space() argument 118 struct ubifs_wbuf *wbuf = &c->jheads[jhead].wbuf; in reserve_space() 125 ubifs_assert(!c->ro_media && !c->ro_mount); in reserve_space() 130 if (c->ro_error) { in reserve_space() 135 avail = c->leb_size - wbuf->offs - wbuf->used; in reserve_space() 143 lnum = ubifs_find_free_space(c, len, &offs, squeeze); in reserve_space() 159 lnum = ubifs_garbage_collect(c, 0); in reserve_space() 184 avail = c->leb_size - wbuf->offs - wbuf->used; in reserve_space() 194 err = ubifs_return_leb(c, lnum); in reserve_space() 214 err = ubifs_add_bud_to_log(c, jhead, lnum, offs); in reserve_space() [all …]
|
D | shrinker.c | 70 static int shrink_tnc(struct ubifs_info *c, int nr, int age, int *contention) in shrink_tnc() argument 76 ubifs_assert(mutex_is_locked(&c->umount_mutex)); in shrink_tnc() 77 ubifs_assert(mutex_is_locked(&c->tnc_mutex)); in shrink_tnc() 79 if (!c->zroot.znode || atomic_long_read(&c->clean_zn_cnt) == 0) in shrink_tnc() 92 znode = ubifs_tnc_levelorder_next(c->zroot.znode, NULL); in shrink_tnc() 94 atomic_long_read(&c->clean_zn_cnt) > 0) { in shrink_tnc() 126 c->zroot.znode = NULL; in shrink_tnc() 130 atomic_long_sub(freed, &c->clean_zn_cnt); in shrink_tnc() 135 if (unlikely(!c->zroot.znode)) in shrink_tnc() 139 znode = ubifs_tnc_levelorder_next(c->zroot.znode, znode); in shrink_tnc() [all …]
|
D | tnc_misc.c | 135 int ubifs_search_zbranch(const struct ubifs_info *c, in ubifs_search_zbranch() argument 147 cmp = keys_cmp(c, key, &zbr[mid].key); in ubifs_search_zbranch() 163 ubifs_assert(keys_cmp(c, key, &zbr[0].key) < 0); in ubifs_search_zbranch() 165 ubifs_assert(keys_cmp(c, key, &zbr[*n].key) > 0); in ubifs_search_zbranch() 167 ubifs_assert(keys_cmp(c, key, &zbr[*n + 1].key) < 0); in ubifs_search_zbranch() 273 static int read_znode(struct ubifs_info *c, int lnum, int offs, int len, in read_znode() argument 279 idx = kmalloc(c->max_idx_node_sz, GFP_NOFS); in read_znode() 283 err = ubifs_read_node(c, idx, UBIFS_IDX_NODE, len, lnum, offs); in read_znode() 295 if (znode->child_cnt > c->fanout || znode->level > UBIFS_MAX_LEVELS) { in read_znode() 296 ubifs_err(c, "current fanout %d, branch count %d", in read_znode() [all …]
|
D | misc.h | 68 static inline void ubifs_wake_up_bgt(struct ubifs_info *c) in ubifs_wake_up_bgt() argument 70 if (c->bgt && !c->need_bgt) { in ubifs_wake_up_bgt() 71 c->need_bgt = 1; in ubifs_wake_up_bgt() 72 wake_up_process(c->bgt); in ubifs_wake_up_bgt() 176 static inline int ubifs_add_dirt(struct ubifs_info *c, int lnum, int dirty) in ubifs_add_dirt() argument 178 return ubifs_update_one_lp(c, lnum, LPROPS_NC, dirty, 0, 0); in ubifs_add_dirt() 190 static inline int ubifs_return_leb(struct ubifs_info *c, int lnum) in ubifs_return_leb() argument 192 return ubifs_change_one_lp(c, lnum, LPROPS_NC, LPROPS_NC, 0, in ubifs_return_leb() 201 static inline int ubifs_idx_node_sz(const struct ubifs_info *c, int child_cnt) in ubifs_idx_node_sz() argument 203 return UBIFS_IDX_NODE_SZ + (UBIFS_BRANCH_SZ + c->key_len) * child_cnt; in ubifs_idx_node_sz() [all …]
|
D | scan.c | 69 int ubifs_scan_a_node(const struct ubifs_info *c, void *buf, int len, int lnum, in ubifs_scan_a_node() argument 91 if (ubifs_check_node(c, buf, lnum, offs, quiet, 1)) in ubifs_scan_a_node() 101 offs + node_len + pad_len > c->leb_size) { in ubifs_scan_a_node() 103 ubifs_err(c, "bad pad node at LEB %d:%d", in ubifs_scan_a_node() 105 ubifs_dump_node(c, pad); in ubifs_scan_a_node() 113 ubifs_err(c, "bad padding length %d - %d", in ubifs_scan_a_node() 137 struct ubifs_scan_leb *ubifs_start_scan(const struct ubifs_info *c, int lnum, in ubifs_start_scan() argument 153 err = ubifs_leb_read(c, lnum, sbuf + offs, offs, c->leb_size - offs, 0); in ubifs_start_scan() 155 ubifs_err(c, "cannot read %d bytes from LEB %d:%d, error %d", in ubifs_start_scan() 156 c->leb_size - offs, lnum, offs, err); in ubifs_start_scan() [all …]
|
D | key.h | 96 static inline void ino_key_init(const struct ubifs_info *c, in ino_key_init() argument 109 static inline void ino_key_init_flash(const struct ubifs_info *c, void *k, in ino_key_init_flash() argument 125 static inline void lowest_ino_key(const struct ubifs_info *c, in lowest_ino_key() argument 138 static inline void highest_ino_key(const struct ubifs_info *c, in highest_ino_key() argument 152 static inline void dent_key_init(const struct ubifs_info *c, in dent_key_init() argument 156 uint32_t hash = c->key_hash(nm->name, nm->len); in dent_key_init() 171 static inline void dent_key_init_hash(const struct ubifs_info *c, in dent_key_init_hash() argument 187 static inline void dent_key_init_flash(const struct ubifs_info *c, void *k, in dent_key_init_flash() argument 191 uint32_t hash = c->key_hash(nm->name, nm->len); in dent_key_init_flash() 206 static inline void lowest_dent_key(const struct ubifs_info *c, in lowest_dent_key() argument [all …]
|
D | dir.c | 88 struct inode *ubifs_new_inode(struct ubifs_info *c, const struct inode *dir, in ubifs_new_inode() argument 94 inode = new_inode(c->vfs_sb); in ubifs_new_inode() 139 ui->compr_type = c->default_compr; in ubifs_new_inode() 144 spin_lock(&c->cnt_lock); in ubifs_new_inode() 146 if (c->highest_inum >= INUM_WARN_WATERMARK) { in ubifs_new_inode() 147 if (c->highest_inum >= INUM_WATERMARK) { in ubifs_new_inode() 148 spin_unlock(&c->cnt_lock); in ubifs_new_inode() 149 ubifs_err(c, "out of inode numbers"); in ubifs_new_inode() 154 ubifs_warn(c, "running out of inode numbers (current %lu, max %u)", in ubifs_new_inode() 155 (unsigned long)c->highest_inum, INUM_WATERMARK); in ubifs_new_inode() [all …]
|
D | file.c | 60 struct ubifs_info *c = inode->i_sb->s_fs_info; in read_block() local 65 data_key_init(c, &key, inode->i_ino, block); in read_block() 66 err = ubifs_tnc_lookup(c, &key, dn); in read_block() 82 err = ubifs_decompress(c, &dn->data, dlen, addr, &out_len, in read_block() 98 ubifs_err(c, "bad data node (block %u, inode %lu)", in read_block() 100 ubifs_dump_node(c, dn); in read_block() 163 struct ubifs_info *c = inode->i_sb->s_fs_info; in do_readpage() local 170 ubifs_err(c, "cannot read page %lu of inode %lu, error %d", in do_readpage() 200 static void release_new_page_budget(struct ubifs_info *c) in release_new_page_budget() argument 204 ubifs_release_budget(c, &req); in release_new_page_budget() [all …]
|
/linux-4.1.27/drivers/net/wan/ |
D | z85230.c | 111 static void z8530_rx_done(struct z8530_channel *c); 112 static void z8530_tx_done(struct z8530_channel *c); 126 static inline u8 read_zsreg(struct z8530_channel *c, u8 reg) in read_zsreg() argument 129 z8530_write_port(c->ctrlio, reg); in read_zsreg() 130 return z8530_read_port(c->ctrlio); in read_zsreg() 141 static inline u8 read_zsdata(struct z8530_channel *c) in read_zsdata() argument 144 r=z8530_read_port(c->dataio); in read_zsdata() 160 static inline void write_zsreg(struct z8530_channel *c, u8 reg, u8 val) in write_zsreg() argument 163 z8530_write_port(c->ctrlio, reg); in write_zsreg() 164 z8530_write_port(c->ctrlio, val); in write_zsreg() [all …]
|
/linux-4.1.27/arch/mips/kernel/ |
D | cpu-probe.c | 73 static inline void cpu_set_fpu_fcsr_mask(struct cpuinfo_mips *c) in cpu_set_fpu_fcsr_mask() argument 77 fcsr = c->fpu_csr31; in cpu_set_fpu_fcsr_mask() 95 c->fpu_msk31 = ~(fcsr0 ^ fcsr1) & ~mask; in cpu_set_fpu_fcsr_mask() 101 static void cpu_set_nofpu_id(struct cpuinfo_mips *c) in cpu_set_nofpu_id() argument 106 if (c->isa_level & (MIPS_CPU_ISA_M32R1 | MIPS_CPU_ISA_M64R1 | in cpu_set_nofpu_id() 110 if (c->isa_level & (MIPS_CPU_ISA_M32R2 | MIPS_CPU_ISA_M64R2 | in cpu_set_nofpu_id() 113 c->fpu_id = value; in cpu_set_nofpu_id() 122 static void cpu_set_fpu_opts(struct cpuinfo_mips *c) in cpu_set_fpu_opts() argument 124 c->fpu_id = cpu_get_fpu_id(); in cpu_set_fpu_opts() 125 mips_nofpu_msk31 = c->fpu_msk31; in cpu_set_fpu_opts() [all …]
|
D | watch.c | 103 void mips_probe_watch_registers(struct cpuinfo_mips *c) in mips_probe_watch_registers() argument 107 if ((c->options & MIPS_CPU_WATCH) == 0) in mips_probe_watch_registers() 117 c->watch_reg_masks[0] = t & 7; in mips_probe_watch_registers() 121 c->watch_reg_count = 1; in mips_probe_watch_registers() 122 c->watch_reg_use_cnt = 1; in mips_probe_watch_registers() 127 c->watch_reg_masks[0] |= (t & 0xff8); in mips_probe_watch_registers() 135 c->watch_reg_masks[1] = t & 7; in mips_probe_watch_registers() 137 c->watch_reg_count = 2; in mips_probe_watch_registers() 138 c->watch_reg_use_cnt = 2; in mips_probe_watch_registers() 143 c->watch_reg_masks[1] |= (t & 0xff8); in mips_probe_watch_registers() [all …]
|
D | smp-cps.c | 48 int c, v; in cps_smp_setup() local 53 for (c = nvpes = 0; c < ncores; c++) { in cps_smp_setup() 54 core_vpes = core_vpe_count(c); in cps_smp_setup() 55 pr_cont("%c%u", c ? ',' : '{', core_vpes); in cps_smp_setup() 58 if (!c) in cps_smp_setup() 62 cpu_data[nvpes + v].core = c; in cps_smp_setup() 101 unsigned ncores, core_vpes, c, cca; in cps_prepare_cpus() local 127 for_each_present_cpu(c) { in cps_prepare_cpus() 128 if (cpu_data[c].core) in cps_prepare_cpus() 129 set_cpu_present(c, false); in cps_prepare_cpus() [all …]
|
/linux-4.1.27/fs/jffs2/ |
D | wbuf.c | 35 #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 …]
|
D | nodemgmt.c | 24 static int jffs2_rp_can_write(struct jffs2_sb_info *c) in jffs2_rp_can_write() argument 27 struct jffs2_mount_opts *opts = &c->mount_opts; in jffs2_rp_can_write() 29 avail = c->dirty_size + c->free_size + c->unchecked_size + in jffs2_rp_can_write() 30 c->erasing_size - c->resv_blocks_write * c->sector_size in jffs2_rp_can_write() 31 - c->nospc_dirty_size; in jffs2_rp_can_write() 37 opts->rp_size, c->dirty_size, c->free_size, in jffs2_rp_can_write() 38 c->erasing_size, c->unchecked_size, in jffs2_rp_can_write() 39 c->nr_erasing_blocks, avail, c->nospc_dirty_size); in jffs2_rp_can_write() 71 static int jffs2_do_reserve_space(struct jffs2_sb_info *c, uint32_t minsize, 74 int jffs2_reserve_space(struct jffs2_sb_info *c, uint32_t minsize, in jffs2_reserve_space() argument [all …]
|
D | build.c | 26 first_inode_chain(int *i, struct jffs2_sb_info *c) in first_inode_chain() argument 28 for (; *i < c->inocache_hashsize; (*i)++) { in first_inode_chain() 29 if (c->inocache_list[*i]) in first_inode_chain() 30 return c->inocache_list[*i]; in first_inode_chain() 36 next_inode(int *i, struct jffs2_inode_cache *ic, struct jffs2_sb_info *c) in next_inode() argument 42 return first_inode_chain(i, c); in next_inode() 45 #define for_each_inode(i, c, ic) \ argument 46 for (i = 0, ic = first_inode_chain(&i, (c)); \ 48 ic = next_inode(&i, ic, (c))) 51 static void jffs2_build_inode_pass1(struct jffs2_sb_info *c, in jffs2_build_inode_pass1() argument [all …]
|
D | erase.c | 26 struct jffs2_sb_info *c; member 32 static void jffs2_erase_failed(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, uint32_t bad_… 33 static void jffs2_erase_succeeded(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 34 static void jffs2_mark_erased_block(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 36 static void jffs2_erase_block(struct jffs2_sb_info *c, in jffs2_erase_block() argument 42 ret = jffs2_flash_erase(c, jeb); in jffs2_erase_block() 44 jffs2_erase_succeeded(c, jeb); in jffs2_erase_block() 53 jeb->offset, jeb->offset, jeb->offset + c->sector_size); in jffs2_erase_block() 57 mutex_lock(&c->erase_free_sem); in jffs2_erase_block() 58 spin_lock(&c->erase_completion_lock); in jffs2_erase_block() [all …]
|
D | os-linux.h | 25 #define OFNI_BS_2SFFJ(c) ((struct super_block *)c->os_priv) argument 62 #define jffs2_is_readonly(c) (OFNI_BS_2SFFJ(c)->s_flags & MS_RDONLY) argument 64 #define SECTOR_ADDR(x) ( (((unsigned long)(x) / c->sector_size) * c->sector_size) ) 69 #define jffs2_can_mark_obsolete(c) (0) argument 71 #define jffs2_can_mark_obsolete(c) (1) argument 74 #define jffs2_is_writebuffered(c) (0) argument 75 #define jffs2_cleanmarker_oob(c) (0) argument 76 #define jffs2_write_nand_cleanmarker(c,jeb) (-EIO) argument 78 #define jffs2_flash_write(c, ofs, len, retlen, buf) jffs2_flash_direct_write(c, ofs, len, retlen, b… argument 79 #define jffs2_flash_read(c, ofs, len, retlen, buf) (mtd_read((c)->mtd, ofs, len, retlen, buf)) argument [all …]
|
D | scan.c | 39 static int jffs2_scan_eraseblock (struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 46 static int jffs2_scan_inode_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 48 static int jffs2_scan_dirent_node(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 51 static inline int min_free(struct jffs2_sb_info *c) in min_free() argument 55 if (!jffs2_can_mark_obsolete(c) && min < c->wbuf_pagesize) in min_free() 56 return c->wbuf_pagesize; in min_free() 69 static int file_dirty(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb) in file_dirty() argument 73 if ((ret = jffs2_prealloc_raw_node_refs(c, jeb, 1))) in file_dirty() 75 if ((ret = jffs2_scan_dirty_space(c, jeb, jeb->free_size))) in file_dirty() 80 c->dirty_size += jeb->wasted_size; in file_dirty() [all …]
|
D | background.c | 27 void jffs2_garbage_collect_trigger(struct jffs2_sb_info *c) in jffs2_garbage_collect_trigger() argument 29 assert_spin_locked(&c->erase_completion_lock); in jffs2_garbage_collect_trigger() 30 if (c->gc_task && jffs2_thread_should_wake(c)) in jffs2_garbage_collect_trigger() 31 send_sig(SIGHUP, c->gc_task, 1); in jffs2_garbage_collect_trigger() 35 int jffs2_start_garbage_collect_thread(struct jffs2_sb_info *c) in jffs2_start_garbage_collect_thread() argument 40 BUG_ON(c->gc_task); in jffs2_start_garbage_collect_thread() 42 init_completion(&c->gc_thread_start); in jffs2_start_garbage_collect_thread() 43 init_completion(&c->gc_thread_exit); in jffs2_start_garbage_collect_thread() 45 tsk = kthread_run(jffs2_garbage_collect_thread, c, "jffs2_gcd_mtd%d", c->mtd->index); in jffs2_start_garbage_collect_thread() 49 complete(&c->gc_thread_exit); in jffs2_start_garbage_collect_thread() [all …]
|
D | xattr.c | 71 static int is_xattr_datum_unchecked(struct jffs2_sb_info *c, struct jffs2_xattr_datum *xd) in is_xattr_datum_unchecked() argument 76 spin_lock(&c->erase_completion_lock); in is_xattr_datum_unchecked() 83 spin_unlock(&c->erase_completion_lock); in is_xattr_datum_unchecked() 87 static void unload_xattr_datum(struct jffs2_sb_info *c, struct jffs2_xattr_datum *xd) in unload_xattr_datum() argument 92 c->xdatum_mem_usage -= (xd->name_len + 1 + xd->value_len); in unload_xattr_datum() 102 static void reclaim_xattr_datum(struct jffs2_sb_info *c) in reclaim_xattr_datum() argument 110 if (c->xdatum_mem_threshold > c->xdatum_mem_usage) in reclaim_xattr_datum() 113 before = c->xdatum_mem_usage; in reclaim_xattr_datum() 114 target = c->xdatum_mem_usage * 4 / 5; /* 20% reduction */ in reclaim_xattr_datum() 116 list_for_each_entry_safe(xd, _xd, &c->xattrindex[index], xindex) { in reclaim_xattr_datum() [all …]
|
D | gc.c | 25 static int jffs2_garbage_collect_pristine(struct jffs2_sb_info *c, 28 static int jffs2_garbage_collect_metadata(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 30 static int jffs2_garbage_collect_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 32 static int jffs2_garbage_collect_deletion_dirent(struct jffs2_sb_info *c, struct jffs2_eraseblock *… 34 static int jffs2_garbage_collect_hole(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 37 static int jffs2_garbage_collect_dnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 40 static int jffs2_garbage_collect_live(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb, 44 static struct jffs2_eraseblock *jffs2_find_gc_block(struct jffs2_sb_info *c) in jffs2_find_gc_block() argument 55 if (!list_empty(&c->bad_used_list) && c->nr_free_blocks > c->resv_blocks_gcbad) { in jffs2_find_gc_block() 57 nextlist = &c->bad_used_list; in jffs2_find_gc_block() [all …]
|
D | debug.c | 28 __jffs2_dbg_acct_sanity_check_nolock(struct jffs2_sb_info *c, in __jffs2_dbg_acct_sanity_check_nolock() argument 33 jeb->unchecked_size != c->sector_size)) { in __jffs2_dbg_acct_sanity_check_nolock() 37 jeb->wasted_size, jeb->unchecked_size, c->sector_size); in __jffs2_dbg_acct_sanity_check_nolock() 41 if (unlikely(c->used_size + c->dirty_size + c->free_size + c->erasing_size + c->bad_size in __jffs2_dbg_acct_sanity_check_nolock() 42 + c->wasted_size + c->unchecked_size != c->flash_size)) { in __jffs2_dbg_acct_sanity_check_nolock() 45 c->free_size, c->dirty_size, c->used_size, c->erasing_size, c->bad_size, in __jffs2_dbg_acct_sanity_check_nolock() 46 c->wasted_size, c->unchecked_size, c->flash_size); in __jffs2_dbg_acct_sanity_check_nolock() 52 __jffs2_dbg_acct_sanity_check(struct jffs2_sb_info *c, in __jffs2_dbg_acct_sanity_check() argument 55 spin_lock(&c->erase_completion_lock); in __jffs2_dbg_acct_sanity_check() 56 jffs2_dbg_acct_sanity_check_nolock(c, jeb); in __jffs2_dbg_acct_sanity_check() [all …]
|
D | fs.c | 28 static int jffs2_flash_setup(struct jffs2_sb_info *c); 34 struct jffs2_sb_info *c = JFFS2_SB_INFO(inode->i_sb); in jffs2_do_setattr() local 65 ret = jffs2_read_dnode(c, f, f->metadata, mdata, 0, mdatalen); in jffs2_do_setattr() 83 ret = jffs2_reserve_space(c, sizeof(*ri) + mdatalen, &alloclen, in jffs2_do_setattr() 137 new_metadata = jffs2_write_dnode(c, f, ri, mdata, mdatalen, alloc_type); in jffs2_do_setattr() 142 jffs2_complete_reservation(c); in jffs2_do_setattr() 159 jffs2_truncate_fragtree (c, &f->fragtree, iattr->ia_size); in jffs2_do_setattr() 162 jffs2_add_full_dnode_to_inode(c, f, new_metadata); in jffs2_do_setattr() 170 jffs2_mark_node_obsolete(c, old_metadata->raw); in jffs2_do_setattr() 176 jffs2_complete_reservation(c); in jffs2_do_setattr() [all …]
|
D | debug.h | 173 __jffs2_dbg_acct_sanity_check_nolock(struct jffs2_sb_info *c, 176 __jffs2_dbg_acct_sanity_check(struct jffs2_sb_info *c, 185 __jffs2_dbg_acct_paranoia_check(struct jffs2_sb_info *c, 188 __jffs2_dbg_acct_paranoia_check_nolock(struct jffs2_sb_info *c, 191 __jffs2_dbg_prewrite_paranoia_check(struct jffs2_sb_info *c, 196 __jffs2_dbg_dump_jeb(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb); 200 __jffs2_dbg_dump_block_lists(struct jffs2_sb_info *c); 202 __jffs2_dbg_dump_block_lists_nolock(struct jffs2_sb_info *c); 204 __jffs2_dbg_dump_node_refs(struct jffs2_sb_info *c, 207 __jffs2_dbg_dump_node_refs_nolock(struct jffs2_sb_info *c, [all …]
|
D | super.c | 88 struct jffs2_sb_info *c = JFFS2_SB_INFO(root->d_sb); in jffs2_show_options() local 89 struct jffs2_mount_opts *opts = &c->mount_opts; in jffs2_show_options() 101 struct jffs2_sb_info *c = JFFS2_SB_INFO(sb); in jffs2_sync_fs() local 104 cancel_delayed_work_sync(&c->wbuf_dwork); in jffs2_sync_fs() 107 mutex_lock(&c->alloc_sem); in jffs2_sync_fs() 108 jffs2_flush_wbuf_pad(c); in jffs2_sync_fs() 109 mutex_unlock(&c->alloc_sem); in jffs2_sync_fs() 178 static int jffs2_parse_options(struct jffs2_sb_info *c, char *data) in jffs2_parse_options() argument 201 c->mount_opts.compr = JFFS2_COMPR_MODE_NONE; in jffs2_parse_options() 204 c->mount_opts.compr = JFFS2_COMPR_MODE_FORCELZO; in jffs2_parse_options() [all …]
|
D | summary.c | 26 int jffs2_sum_init(struct jffs2_sb_info *c) in jffs2_sum_init() argument 28 uint32_t sum_size = min_t(uint32_t, c->sector_size, MAX_SUMMARY_SIZE); in jffs2_sum_init() 30 c->summary = kzalloc(sizeof(struct jffs2_summary), GFP_KERNEL); in jffs2_sum_init() 32 if (!c->summary) { in jffs2_sum_init() 37 c->summary->sum_buf = kmalloc(sum_size, GFP_KERNEL); in jffs2_sum_init() 39 if (!c->summary->sum_buf) { in jffs2_sum_init() 41 kfree(c->summary); in jffs2_sum_init() 50 void jffs2_sum_exit(struct jffs2_sb_info *c) in jffs2_sum_exit() argument 54 jffs2_sum_disable_collecting(c->summary); in jffs2_sum_exit() 56 kfree(c->summary->sum_buf); in jffs2_sum_exit() [all …]
|
D | readinode.c | 31 static int check_node_data(struct jffs2_sb_info *c, struct jffs2_tmp_dnode_info *tn) in check_node_data() argument 46 if (jffs2_is_writebuffered(c)) { in check_node_data() 47 int adj = ofs % c->wbuf_pagesize; in check_node_data() 49 adj = c->wbuf_pagesize - adj; in check_node_data() 67 err = mtd_point(c->mtd, ofs, len, &retlen, (void **)&buffer, NULL); in check_node_data() 70 mtd_unpoint(c->mtd, ofs, retlen); in check_node_data() 85 err = jffs2_flash_read(c, ofs, len, &retlen, buffer); in check_node_data() 104 mtd_unpoint(c->mtd, ofs, len); in check_node_data() 114 jeb = &c->blocks[ref->flash_offset / c->sector_size]; in check_node_data() 115 len = ref_totlen(c, jeb, ref); in check_node_data() [all …]
|
D | nodelist.h | 206 #define write_ofs(c) ((c)->nextblock->offset + (c)->sector_size - (c)->nextblock->free_size) argument 296 static inline int jffs2_blocks_use_vmalloc(struct jffs2_sb_info *c) in jffs2_blocks_use_vmalloc() argument 298 return ((c->flash_size / c->sector_size) * sizeof (struct jffs2_eraseblock)) > (128 * 1024); in jffs2_blocks_use_vmalloc() 301 #define ref_totlen(a, b, c) __jffs2_ref_totlen((a), (b), (c)) argument 309 #define VERYDIRTY(c, size) ((size) >= ((c)->sector_size / 2)) argument 364 void jffs2_add_fd_to_list(struct jffs2_sb_info *c, struct jffs2_full_dirent *new, struct jffs2_full… 365 void jffs2_set_inocache_state(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic, int state); 366 struct jffs2_inode_cache *jffs2_get_ino_cache(struct jffs2_sb_info *c, uint32_t ino); 367 void jffs2_add_ino_cache (struct jffs2_sb_info *c, struct jffs2_inode_cache *new); 368 void jffs2_del_ino_cache(struct jffs2_sb_info *c, struct jffs2_inode_cache *old); [all …]
|
D | xattr.h | 73 extern void jffs2_init_xattr_subsystem(struct jffs2_sb_info *c); 74 extern void jffs2_build_xattr_subsystem(struct jffs2_sb_info *c); 75 extern void jffs2_clear_xattr_subsystem(struct jffs2_sb_info *c); 77 extern struct jffs2_xattr_datum *jffs2_setup_xattr_datum(struct jffs2_sb_info *c, 80 extern void jffs2_xattr_do_crccheck_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic); 81 extern void jffs2_xattr_delete_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic); 82 extern void jffs2_xattr_free_inode(struct jffs2_sb_info *c, struct jffs2_inode_cache *ic); 84 extern int jffs2_garbage_collect_xattr_datum(struct jffs2_sb_info *c, struct jffs2_xattr_datum *xd, 86 extern int jffs2_garbage_collect_xattr_ref(struct jffs2_sb_info *c, struct jffs2_xattr_ref *ref, 88 extern int jffs2_verify_xattr(struct jffs2_sb_info *c); [all …]
|
D | write.c | 23 int jffs2_do_new_inode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, in jffs2_do_new_inode() argument 40 jffs2_add_ino_cache(c, f->inocache); in jffs2_do_new_inode() 59 struct jffs2_full_dnode *jffs2_write_dnode(struct jffs2_sb_info *c, struct jffs2_inode_info *f, in jffs2_write_dnode() argument 96 flash_ofs = write_ofs(c); in jffs2_write_dnode() 98 jffs2_dbg_prewrite_paranoia_check(c, flash_ofs, vecs[0].iov_len + vecs[1].iov_len); in jffs2_write_dnode() 109 ret = jffs2_flash_writev(c, vecs, cnt, flash_ofs, &retlen, in jffs2_write_dnode() 123 jffs2_add_physical_node_ref(c, flash_ofs | REF_OBSOLETE, PAD(sizeof(*ri)+datalen), NULL); in jffs2_write_dnode() 131 struct jffs2_eraseblock *jeb = &c->blocks[flash_ofs / c->sector_size]; in jffs2_write_dnode() 137 jffs2_dbg_acct_sanity_check(c,jeb); in jffs2_write_dnode() 138 jffs2_dbg_acct_paranoia_check(c, jeb); in jffs2_write_dnode() [all …]
|
D | nodelist.c | 23 static void jffs2_obsolete_node_frag(struct jffs2_sb_info *c, 26 void jffs2_add_fd_to_list(struct jffs2_sb_info *c, struct jffs2_full_dirent *new, struct jffs2_full… in jffs2_add_fd_to_list() argument 38 jffs2_mark_node_obsolete(c, new->raw); in jffs2_add_fd_to_list() 47 jffs2_mark_node_obsolete(c, ((*prev)->raw)); in jffs2_add_fd_to_list() 59 uint32_t jffs2_truncate_fragtree(struct jffs2_sb_info *c, struct rb_root *list, uint32_t size) in jffs2_truncate_fragtree() argument 76 jffs2_obsolete_node_frag(c, frag); in jffs2_truncate_fragtree() 101 static void jffs2_obsolete_node_frag(struct jffs2_sb_info *c, in jffs2_obsolete_node_frag() argument 110 jffs2_mark_node_obsolete(c, this->node->raw); in jffs2_obsolete_node_frag() 169 static int no_overlapping_node(struct jffs2_sb_info *c, struct rb_root *root, in no_overlapping_node() argument 215 static int jffs2_add_frag_to_fragtree(struct jffs2_sb_info *c, struct rb_root *root, struct jffs2_n… in jffs2_add_frag_to_fragtree() argument [all …]
|
/linux-4.1.27/drivers/staging/i2o/ |
D | pci.c | 55 static void i2o_pci_free(struct i2o_controller *c) in i2o_pci_free() argument 59 dev = &c->pdev->dev; in i2o_pci_free() 61 i2o_dma_free(dev, &c->out_queue); in i2o_pci_free() 62 i2o_dma_free(dev, &c->status_block); in i2o_pci_free() 63 kfree(c->lct); in i2o_pci_free() 64 i2o_dma_free(dev, &c->dlct); in i2o_pci_free() 65 i2o_dma_free(dev, &c->hrt); in i2o_pci_free() 66 i2o_dma_free(dev, &c->status); in i2o_pci_free() 68 if (c->raptor && c->in_queue.virt) in i2o_pci_free() 69 iounmap(c->in_queue.virt); in i2o_pci_free() [all …]
|
D | iop.c | 48 static int i2o_hrt_get(struct i2o_controller *c); 63 struct i2o_message *i2o_msg_get_wait(struct i2o_controller *c, int wait) in i2o_msg_get_wait() argument 68 while (IS_ERR(msg = i2o_msg_get(c))) { in i2o_msg_get_wait() 71 c->name); in i2o_msg_get_wait() 92 u32 i2o_cntxt_list_add(struct i2o_controller * c, void *ptr) in i2o_cntxt_list_add() argument 99 c->name); in i2o_cntxt_list_add() 104 "\n", c->name); in i2o_cntxt_list_add() 112 spin_lock_irqsave(&c->context_list_lock, flags); in i2o_cntxt_list_add() 114 if (unlikely(atomic_inc_and_test(&c->context_list_counter))) in i2o_cntxt_list_add() 115 atomic_inc(&c->context_list_counter); in i2o_cntxt_list_add() [all …]
|
D | exec-osm.c | 62 struct i2o_controller *c; /* controller on which the LCT NOTIFY member 122 int i2o_msg_post_wait_mem(struct i2o_controller *c, struct i2o_message *msg, in i2o_msg_post_wait_mem() argument 133 i2o_msg_nop(c, msg); in i2o_msg_post_wait_mem() 163 i2o_msg_post(c, msg); in i2o_msg_post_wait_mem() 190 i2o_flush_reply(c, wait->m); in i2o_msg_post_wait_mem() 216 static int i2o_msg_post_wait_complete(struct i2o_controller *c, u32 m, in i2o_msg_post_wait_complete() argument 250 dev = &c->pdev->dev; in i2o_msg_post_wait_complete() 253 c->name); in i2o_msg_post_wait_complete() 263 osm_warn("%s: Bogus reply in POST WAIT (tr-context: %08x)!\n", c->name, in i2o_msg_post_wait_complete() 381 static int i2o_exec_lct_notify(struct i2o_controller *c, u32 change_ind) in i2o_exec_lct_notify() argument [all …]
|
D | i2o_config.c | 71 struct i2o_controller *c; in i2o_cfg_getiops() local 78 list_for_each_entry(c, &i2o_controllers, list) in i2o_cfg_getiops() 79 tmp[c->unit] = 1; in i2o_cfg_getiops() 89 struct i2o_controller *c; in i2o_cfg_gethrt() local 106 c = i2o_find_iop(kcmd.iop); in i2o_cfg_gethrt() 107 if (!c) in i2o_cfg_gethrt() 110 hrt = (i2o_hrt *) c->hrt.virt; in i2o_cfg_gethrt() 126 struct i2o_controller *c; in i2o_cfg_getlct() local 143 c = i2o_find_iop(kcmd.iop); in i2o_cfg_getlct() 144 if (!c) in i2o_cfg_getlct() [all …]
|
D | i2o_scsi.c | 95 static struct i2o_scsi_host *i2o_scsi_host_alloc(struct i2o_controller *c) in i2o_scsi_host_alloc() argument 107 if (c->adaptec) in i2o_scsi_host_alloc() 111 list_for_each_entry(i2o_dev, &c->devices, list) in i2o_scsi_host_alloc() 119 osm_warn("no channels found on %s\n", c->name); in i2o_scsi_host_alloc() 135 scsi_host->this_id = c->unit; in i2o_scsi_host_alloc() 136 scsi_host->sg_tablesize = i2o_sg_tablesize(c, body_size); in i2o_scsi_host_alloc() 140 i2o_shost->iop = c; in i2o_scsi_host_alloc() 144 list_for_each_entry(i2o_dev, &c->devices, list) in i2o_scsi_host_alloc() 167 static struct i2o_scsi_host *i2o_scsi_get_host(struct i2o_controller *c) in i2o_scsi_get_host() argument 169 return c->driver_data[i2o_scsi_driver.context]; in i2o_scsi_get_host() [all …]
|
/linux-4.1.27/Documentation/DocBook/ |
D | .kernel-api.xml.cmd | 2 …c include/linux/kernel.h include/linux/kernel.h lib/kstrtox.c lib/string.c arch/x86/include/asm/bi…
|
D | .device-drivers.xml.cmd | 2 …c kernel/sched/cpupri.c kernel/sched/fair.c include/linux/completion.h kernel/time/timer.c include…
|
D | .drm.xml.cmd | 2 …c drivers/gpu/drm/drm_platform.c drivers/gpu/drm/drm_drv.c drivers/gpu/drm/drm_gem.c drivers/gpu/d…
|
D | .filesystems.xml.cmd | 2 …c include/linux/dcache.h fs/inode.c fs/bad_inode.c fs/super.c fs/locks.c fs/locks.c fs/mpage.c fs/…
|
D | .networking.xml.cmd | 2 …c net/core/skbuff.c net/core/sock.c net/core/datagram.c net/core/stream.c net/core/filter.c includ…
|
D | .alsa-driver-api.xml.cmd | 2 …c sound/core/device.c sound/core/sound.c sound/core/memory.c sound/core/memalloc.c sound/core/pcm.…
|
D | .scsi.xml.cmd | 2 …c drivers/scsi/scsicam.c drivers/scsi/scsi_error.c drivers/scsi/scsi_devinfo.c drivers/scsi/scsi_i…
|
/linux-4.1.27/include/linux/ |
D | ctype.h | 22 #define isalnum(c) ((__ismask(c)&(_U|_L|_D)) != 0) argument 23 #define isalpha(c) ((__ismask(c)&(_U|_L)) != 0) argument 24 #define iscntrl(c) ((__ismask(c)&(_C)) != 0) argument 25 #define isdigit(c) ((__ismask(c)&(_D)) != 0) argument 26 #define isgraph(c) ((__ismask(c)&(_P|_U|_L|_D)) != 0) argument 27 #define islower(c) ((__ismask(c)&(_L)) != 0) argument 28 #define isprint(c) ((__ismask(c)&(_P|_U|_L|_D|_SP)) != 0) argument 29 #define ispunct(c) ((__ismask(c)&(_P)) != 0) argument 31 #define isspace(c) ((__ismask(c)&(_S)) != 0) argument 32 #define isupper(c) ((__ismask(c)&(_U)) != 0) argument [all …]
|
D | jhash.h | 35 #define __jhash_mix(a, b, c) \ argument 37 a -= c; a ^= rol32(c, 4); c += b; \ 38 b -= a; b ^= rol32(a, 6); a += c; \ 39 c -= b; c ^= rol32(b, 8); b += a; \ 40 a -= c; a ^= rol32(c, 16); c += b; \ 41 b -= a; b ^= rol32(a, 19); a += c; \ 42 c -= b; c ^= rol32(b, 4); b += a; \ 46 #define __jhash_final(a, b, c) \ argument 48 c ^= b; c -= rol32(b, 14); \ 49 a ^= c; a -= rol32(c, 11); \ [all …]
|
D | intel-iommu.h | 90 #define cap_read_drain(c) (((c) >> 55) & 1) argument 91 #define cap_write_drain(c) (((c) >> 54) & 1) argument 92 #define cap_max_amask_val(c) (((c) >> 48) & 0x3f) argument 93 #define cap_num_fault_regs(c) ((((c) >> 40) & 0xff) + 1) argument 94 #define cap_pgsel_inv(c) (((c) >> 39) & 1) argument 96 #define cap_super_page_val(c) (((c) >> 34) & 0xf) argument 97 #define cap_super_offset(c) (((find_first_bit(&cap_super_page_val(c), 4)) \ argument 100 #define cap_fault_reg_offset(c) ((((c) >> 24) & 0x3ff) * 16) argument 101 #define cap_max_fault_reg_offset(c) \ argument 102 (cap_fault_reg_offset(c) + cap_num_fault_regs(c) * 16) [all …]
|
D | atomic.h | 46 int val, c = hint; in atomic_inc_not_zero_hint() local 53 val = atomic_cmpxchg(v, c, c + 1); in atomic_inc_not_zero_hint() 54 if (val == c) in atomic_inc_not_zero_hint() 56 c = val; in atomic_inc_not_zero_hint() 57 } while (c); in atomic_inc_not_zero_hint() 99 int c, old, dec; in atomic_dec_if_positive() local 100 c = atomic_read(v); in atomic_dec_if_positive() 102 dec = c - 1; in atomic_dec_if_positive() 105 old = atomic_cmpxchg((v), c, dec); in atomic_dec_if_positive() 106 if (likely(old == c)) in atomic_dec_if_positive() [all …]
|
/linux-4.1.27/arch/x86/kernel/cpu/ |
D | amd.c | 72 static void init_amd_k5(struct cpuinfo_x86 *c) in init_amd_k5() argument 84 if (c->x86_model == 9 || c->x86_model == 10) { in init_amd_k5() 91 static void init_amd_k6(struct cpuinfo_x86 *c) in init_amd_k6() argument 97 if (c->x86_model < 6) { in init_amd_k6() 99 if (c->x86_model == 0) { in init_amd_k6() 100 clear_cpu_cap(c, X86_FEATURE_APIC); in init_amd_k6() 101 set_cpu_cap(c, X86_FEATURE_PGE); in init_amd_k6() 106 if (c->x86_model == 6 && c->x86_mask == 1) { in init_amd_k6() 135 if (c->x86_model < 8 || in init_amd_k6() 136 (c->x86_model == 8 && c->x86_mask < 8)) { in init_amd_k6() [all …]
|
D | intel.c | 28 static void early_init_intel(struct cpuinfo_x86 *c) in early_init_intel() argument 33 if (c->x86 > 6 || (c->x86 == 6 && c->x86_model >= 0xd)) { in early_init_intel() 36 c->cpuid_level = cpuid_eax(0); in early_init_intel() 37 get_cpu_cap(c); in early_init_intel() 41 if ((c->x86 == 0xf && c->x86_model >= 0x03) || in early_init_intel() 42 (c->x86 == 0x6 && c->x86_model >= 0x0e)) in early_init_intel() 43 set_cpu_cap(c, X86_FEATURE_CONSTANT_TSC); in early_init_intel() 45 if (c->x86 >= 6 && !cpu_has(c, X86_FEATURE_IA64)) { in early_init_intel() 51 rdmsr(MSR_IA32_UCODE_REV, lower_word, c->microcode); in early_init_intel() 62 if (c->x86 == 6 && c->x86_model == 0x1c && c->x86_mask <= 2 && in early_init_intel() [all …]
|
D | common.c | 69 static void default_init(struct cpuinfo_x86 *c) in default_init() argument 72 cpu_detect_cache_sizes(c); in default_init() 76 if (c->cpuid_level == -1) { in default_init() 78 if (c->x86 == 4) in default_init() 79 strcpy(c->x86_model_id, "486"); in default_init() 80 else if (c->x86 == 3) in default_init() 81 strcpy(c->x86_model_id, "386"); in default_init() 236 static void squash_the_stupid_serial_number(struct cpuinfo_x86 *c) in squash_the_stupid_serial_number() argument 240 if (!cpu_has(c, X86_FEATURE_PN) || !disable_x86_serial_nr) in squash_the_stupid_serial_number() 250 clear_cpu_cap(c, X86_FEATURE_PN); in squash_the_stupid_serial_number() [all …]
|
D | proc.c | 10 static void show_cpuinfo_core(struct seq_file *m, struct cpuinfo_x86 *c, in show_cpuinfo_core() argument 14 seq_printf(m, "physical id\t: %d\n", c->phys_proc_id); in show_cpuinfo_core() 16 seq_printf(m, "core id\t\t: %d\n", c->cpu_core_id); in show_cpuinfo_core() 17 seq_printf(m, "cpu cores\t: %d\n", c->booted_cores); in show_cpuinfo_core() 18 seq_printf(m, "apicid\t\t: %d\n", c->apicid); in show_cpuinfo_core() 19 seq_printf(m, "initial apicid\t: %d\n", c->initial_apicid); in show_cpuinfo_core() 24 static void show_cpuinfo_misc(struct seq_file *m, struct cpuinfo_x86 *c) in show_cpuinfo_misc() argument 39 c->cpuid_level, in show_cpuinfo_misc() 40 c->wp_works_ok ? "yes" : "no"); in show_cpuinfo_misc() 43 static void show_cpuinfo_misc(struct seq_file *m, struct cpuinfo_x86 *c) in show_cpuinfo_misc() argument [all …]
|
D | centaur.c | 19 static void init_c3(struct cpuinfo_x86 *c) in init_c3() argument 46 c->x86_capability[5] = cpuid_edx(0xC0000001); in init_c3() 50 if (c->x86_model >= 6 && c->x86_model <= 13) { in init_c3() 54 set_cpu_cap(c, X86_FEATURE_CX8); in init_c3() 58 if (c->x86_model >= 6 && c->x86_model < 9) in init_c3() 59 set_cpu_cap(c, X86_FEATURE_3DNOW); in init_c3() 61 if (c->x86 == 0x6 && c->x86_model >= 0xf) { in init_c3() 62 c->x86_cache_alignment = c->x86_clflush_size * 2; in init_c3() 63 set_cpu_cap(c, X86_FEATURE_REP_GOOD); in init_c3() 66 cpu_detect_cache_sizes(c); in init_c3() [all …]
|
D | cyrix.c | 89 static void check_cx686_slop(struct cpuinfo_x86 *c) in check_cx686_slop() argument 108 c->loops_per_jiffy = loops_per_jiffy; in check_cx686_slop() 168 static void early_init_cyrix(struct cpuinfo_x86 *c) in early_init_cyrix() argument 178 set_cpu_cap(c, X86_FEATURE_CYRIX_ARR); in early_init_cyrix() 182 set_cpu_cap(c, X86_FEATURE_CYRIX_ARR); in early_init_cyrix() 187 static void init_cyrix(struct cpuinfo_x86 *c) in init_cyrix() argument 190 char *buf = c->x86_model_id; in init_cyrix() 197 clear_cpu_cap(c, 0*32+31); in init_cyrix() 200 if (test_cpu_cap(c, 1*32+24)) { in init_cyrix() 201 clear_cpu_cap(c, 1*32+24); in init_cyrix() [all …]
|
D | topology.c | 29 void detect_extended_topology(struct cpuinfo_x86 *c) in detect_extended_topology() argument 37 if (c->cpuid_level < 0xb) in detect_extended_topology() 48 set_cpu_cap(c, X86_FEATURE_XTOPOLOGY); in detect_extended_topology() 53 c->initial_apicid = edx; in detect_extended_topology() 79 c->cpu_core_id = apic->phys_pkg_id(c->initial_apicid, ht_mask_width) in detect_extended_topology() 81 c->phys_proc_id = apic->phys_pkg_id(c->initial_apicid, core_plus_mask_width); in detect_extended_topology() 85 c->apicid = apic->phys_pkg_id(c->initial_apicid, 0); in detect_extended_topology() 87 c->x86_max_cores = (core_level_siblings / smp_num_siblings); in detect_extended_topology() 91 c->phys_proc_id); in detect_extended_topology() 92 if (c->x86_max_cores > 1) in detect_extended_topology() [all …]
|
/linux-4.1.27/sound/firewire/ |
D | cmp.c | 46 void cmp_error(struct cmp_connection *c, const char *fmt, ...) in cmp_error() argument 51 dev_err(&c->resources.unit->device, "%cPCR%u: %pV", in cmp_error() 52 (c->direction == CMP_INPUT) ? 'i' : 'o', in cmp_error() 53 c->pcr_index, &(struct va_format){ fmt, &va }); in cmp_error() 57 static u64 mpr_address(struct cmp_connection *c) in mpr_address() argument 59 if (c->direction == CMP_INPUT) in mpr_address() 65 static u64 pcr_address(struct cmp_connection *c) in pcr_address() argument 67 if (c->direction == CMP_INPUT) in pcr_address() 68 return CSR_REGISTER_BASE + CSR_IPCR(c->pcr_index); in pcr_address() 70 return CSR_REGISTER_BASE + CSR_OPCR(c->pcr_index); in pcr_address() [all …]
|
/linux-4.1.27/drivers/media/firewire/ |
D | firedtv-avc.c | 94 static inline void clear_operands(struct avc_command_frame *c, int from, int to) in clear_operands() argument 96 memset(&c->operand[from], 0, to - from + 1); in clear_operands() 99 static void pad_operands(struct avc_command_frame *c, int from) in pad_operands() argument 104 clear_operands(c, from, to); in pad_operands() 340 struct avc_command_frame *c = (void *)fdtv->avc_data; in avc_tuner_tuneqpsk() local 342 c->opcode = AVC_OPCODE_VENDOR; in avc_tuner_tuneqpsk() 344 c->operand[0] = SFE_VENDOR_DE_COMPANYID_0; in avc_tuner_tuneqpsk() 345 c->operand[1] = SFE_VENDOR_DE_COMPANYID_1; in avc_tuner_tuneqpsk() 346 c->operand[2] = SFE_VENDOR_DE_COMPANYID_2; in avc_tuner_tuneqpsk() 348 c->operand[3] = SFE_VENDOR_OPCODE_TUNE_QPSK2; in avc_tuner_tuneqpsk() [all …]
|
/linux-4.1.27/drivers/iommu/ |
D | msm_iommu_hw-8xxx.h | 38 #define GET_CONTEXT_FIELD(b, c, r, F) \ argument 39 GET_FIELD(((b) + (r) + ((c) << CTX_SHIFT)), F##_MASK, F##_SHIFT) 43 #define SET_CONTEXT_FIELD(b, c, r, F, v) \ argument 44 SET_FIELD(((b) + (r) + ((c) << CTX_SHIFT)), F##_MASK, F##_SHIFT, (v)) 134 #define SET_SCTLR(b, c, v) SET_CTX_REG(SCTLR, (b), (c), (v)) argument 135 #define SET_ACTLR(b, c, v) SET_CTX_REG(ACTLR, (b), (c), (v)) argument 136 #define SET_CONTEXTIDR(b, c, v) SET_CTX_REG(CONTEXTIDR, (b), (c), (v)) argument 137 #define SET_TTBR0(b, c, v) SET_CTX_REG(TTBR0, (b), (c), (v)) argument 138 #define SET_TTBR1(b, c, v) SET_CTX_REG(TTBR1, (b), (c), (v)) argument 139 #define SET_TTBCR(b, c, v) SET_CTX_REG(TTBCR, (b), (c), (v)) argument [all …]
|
/linux-4.1.27/drivers/mtd/onenand/ |
D | omap2.c | 68 struct omap2_onenand *c = data; in omap2_onenand_dma_cb() local 70 complete(&c->dma_done); in omap2_onenand_dma_cb() 75 struct omap2_onenand *c = dev_id; in omap2_onenand_interrupt() local 77 complete(&c->irq_done); in omap2_onenand_interrupt() 82 static inline unsigned short read_reg(struct omap2_onenand *c, int reg) in read_reg() argument 84 return readw(c->onenand.base + reg); in read_reg() 87 static inline void write_reg(struct omap2_onenand *c, unsigned short value, in write_reg() argument 90 writew(value, c->onenand.base + reg); in write_reg() 108 struct omap2_onenand *c = container_of(mtd, struct omap2_onenand, mtd); in omap2_onenand_wait() local 134 intr = read_reg(c, ONENAND_REG_INTERRUPT); in omap2_onenand_wait() [all …]
|
/linux-4.1.27/net/ceph/ |
D | ceph_hash.c | 10 #define mix(a, b, c) \ argument 12 a = a - b; a = a - c; a = a ^ (c >> 13); \ 13 b = b - c; b = b - a; b = b ^ (a << 8); \ 14 c = c - a; c = c - b; c = c ^ (b >> 13); \ 15 a = a - b; a = a - c; a = a ^ (c >> 12); \ 16 b = b - c; b = b - a; b = b ^ (a << 16); \ 17 c = c - a; c = c - b; c = c ^ (b >> 5); \ 18 a = a - b; a = a - c; a = a ^ (c >> 3); \ 19 b = b - c; b = b - a; b = b ^ (a << 10); \ 20 c = c - a; c = c - b; c = c ^ (b >> 15); \ [all …]
|
D | armor.c | 14 static int encode_bits(int c) in encode_bits() argument 16 return pem_key[c]; in encode_bits() 19 static int decode_bits(char c) in decode_bits() argument 21 if (c >= 'A' && c <= 'Z') in decode_bits() 22 return c - 'A'; in decode_bits() 23 if (c >= 'a' && c <= 'z') in decode_bits() 24 return c - 'a' + 26; in decode_bits() 25 if (c >= '0' && c <= '9') in decode_bits() 26 return c - '0' + 52; in decode_bits() 27 if (c == '+') in decode_bits() [all …]
|
/linux-4.1.27/drivers/md/ |
D | dm-bufio.c | 148 struct dm_bufio_client *c; member 159 static inline int dm_bufio_cache_index(struct dm_bufio_client *c) in dm_bufio_cache_index() argument 161 unsigned ret = c->blocks_per_page_bits - 1; in dm_bufio_cache_index() 168 #define DM_BUFIO_CACHE(c) (dm_bufio_caches[dm_bufio_cache_index(c)]) argument 169 #define DM_BUFIO_CACHE_NAME(c) (dm_bufio_cache_names[dm_bufio_cache_index(c)]) argument 173 static void dm_bufio_lock(struct dm_bufio_client *c) in dm_bufio_lock() argument 175 mutex_lock_nested(&c->lock, dm_bufio_in_request()); in dm_bufio_lock() 178 static int dm_bufio_trylock(struct dm_bufio_client *c) in dm_bufio_trylock() argument 180 return mutex_trylock(&c->lock); in dm_bufio_trylock() 183 static void dm_bufio_unlock(struct dm_bufio_client *c) in dm_bufio_unlock() argument [all …]
|
D | dm-bufio.h | 32 void dm_bufio_client_destroy(struct dm_bufio_client *c); 48 void *dm_bufio_read(struct dm_bufio_client *c, sector_t block, 55 void *dm_bufio_get(struct dm_bufio_client *c, sector_t block, 62 void *dm_bufio_new(struct dm_bufio_client *c, sector_t block, 70 void dm_bufio_prefetch(struct dm_bufio_client *c, 92 void dm_bufio_write_dirty_buffers_async(struct dm_bufio_client *c); 98 int dm_bufio_write_dirty_buffers(struct dm_bufio_client *c); 103 int dm_bufio_issue_flush(struct dm_bufio_client *c); 116 void dm_bufio_forget(struct dm_bufio_client *c, sector_t block); 121 void dm_bufio_set_minimum_buffers(struct dm_bufio_client *c, unsigned n); [all …]
|
/linux-4.1.27/arch/mips/mm/ |
D | c-octeon.c | 190 struct cpuinfo_mips *c = ¤t_cpu_data; in probe_octeon() local 197 c->icache.linesz = 2 << ((config1 >> 19) & 7); in probe_octeon() 198 c->icache.sets = 64 << ((config1 >> 22) & 7); in probe_octeon() 199 c->icache.ways = 1 + ((config1 >> 16) & 7); in probe_octeon() 200 c->icache.flags |= MIPS_CACHE_VTAG; in probe_octeon() 202 c->icache.sets * c->icache.ways * c->icache.linesz; in probe_octeon() 203 c->icache.waybit = ffs(icache_size / c->icache.ways) - 1; in probe_octeon() 204 c->dcache.linesz = 128; in probe_octeon() 206 c->dcache.sets = 2; /* CN5XXX has two Dcache sets */ in probe_octeon() 208 c->dcache.sets = 1; /* CN3XXX has one Dcache set */ in probe_octeon() [all …]
|
D | c-r4k.c | 900 static inline int alias_74k_erratum(struct cpuinfo_mips *c) in alias_74k_erratum() argument 902 unsigned int imp = c->processor_id & PRID_IMP_MASK; in alias_74k_erratum() 903 unsigned int rev = c->processor_id & PRID_REV_MASK; in alias_74k_erratum() 953 struct cpuinfo_mips *c = ¤t_cpu_data; in probe_pcache() local 966 c->icache.linesz = 16 << ((config & CONF_IB) >> 5); in probe_pcache() 967 c->icache.ways = 2; in probe_pcache() 968 c->icache.waybit = __ffs(icache_size/2); in probe_pcache() 971 c->dcache.linesz = 16 << ((config & CONF_DB) >> 4); in probe_pcache() 972 c->dcache.ways = 2; in probe_pcache() 973 c->dcache.waybit= __ffs(dcache_size/2); in probe_pcache() [all …]
|
D | sc-mips.c | 69 static inline int mips_sc_is_activated(struct cpuinfo_mips *c) in mips_sc_is_activated() argument 91 c->scache.linesz = 2 << tmp; in mips_sc_is_activated() 99 struct cpuinfo_mips *c = ¤t_cpu_data; in mips_sc_probe() local 104 c->scache.flags |= MIPS_CACHE_NOT_PRESENT; in mips_sc_probe() 107 if (!(c->isa_level & (MIPS_CPU_ISA_M32R1 | MIPS_CPU_ISA_M32R2 | in mips_sc_probe() 119 if (!mips_sc_is_activated(c)) in mips_sc_probe() 124 c->scache.sets = 64 << tmp; in mips_sc_probe() 130 c->scache.ways = tmp + 1; in mips_sc_probe() 134 c->scache.waysize = c->scache.sets * c->scache.linesz; in mips_sc_probe() 135 c->scache.waybit = __ffs(c->scache.waysize); in mips_sc_probe() [all …]
|
/linux-4.1.27/arch/mips/alchemy/common/ |
D | clock.c | 236 struct clk *c; in alchemy_clk_setup_aux() local 253 c = clk_register(NULL, &a->hw); in alchemy_clk_setup_aux() 254 if (!IS_ERR(c)) in alchemy_clk_setup_aux() 255 clk_register_clkdev(c, name, NULL); in alchemy_clk_setup_aux() 259 return c; in alchemy_clk_setup_aux() 267 struct clk *c; in alchemy_clk_setup_sysbus() local 269 c = clk_register_fixed_factor(NULL, ALCHEMY_SYSBUS_CLK, in alchemy_clk_setup_sysbus() 271 if (!IS_ERR(c)) in alchemy_clk_setup_sysbus() 272 clk_register_clkdev(c, ALCHEMY_SYSBUS_CLK, NULL); in alchemy_clk_setup_sysbus() 273 return c; in alchemy_clk_setup_sysbus() [all …]
|
/linux-4.1.27/lib/ |
D | md5.c | 15 u32 a, b, c, d; in md5_transform() local 19 c = hash[2]; in md5_transform() 22 MD5STEP(F1, a, b, c, d, in[0] + 0xd76aa478, 7); in md5_transform() 23 MD5STEP(F1, d, a, b, c, in[1] + 0xe8c7b756, 12); in md5_transform() 24 MD5STEP(F1, c, d, a, b, in[2] + 0x242070db, 17); in md5_transform() 25 MD5STEP(F1, b, c, d, a, in[3] + 0xc1bdceee, 22); in md5_transform() 26 MD5STEP(F1, a, b, c, d, in[4] + 0xf57c0faf, 7); in md5_transform() 27 MD5STEP(F1, d, a, b, c, in[5] + 0x4787c62a, 12); in md5_transform() 28 MD5STEP(F1, c, d, a, b, in[6] + 0xa8304613, 17); in md5_transform() 29 MD5STEP(F1, b, c, d, a, in[7] + 0xfd469501, 22); in md5_transform() [all …]
|
D | halfmd4.c | 16 #define ROUND(f, a, b, c, d, x, s) \ argument 17 (a += f(b, c, d) + x, a = (a << s) | (a >> (32 - s))) 27 __u32 a = buf[0], b = buf[1], c = buf[2], d = buf[3]; in half_md4_transform() local 30 ROUND(F, a, b, c, d, in[0] + K1, 3); in half_md4_transform() 31 ROUND(F, d, a, b, c, in[1] + K1, 7); in half_md4_transform() 32 ROUND(F, c, d, a, b, in[2] + K1, 11); in half_md4_transform() 33 ROUND(F, b, c, d, a, in[3] + K1, 19); in half_md4_transform() 34 ROUND(F, a, b, c, d, in[4] + K1, 3); in half_md4_transform() 35 ROUND(F, d, a, b, c, in[5] + K1, 7); in half_md4_transform() 36 ROUND(F, c, d, a, b, in[6] + K1, 11); in half_md4_transform() [all …]
|
D | sort.c | 51 int i = (num/2 - 1) * size, n = num * size, c, r; in sort() local 58 for (r = i; r * 2 + size < n; r = c) { in sort() 59 c = r * 2 + size; in sort() 60 if (c < n - size && in sort() 61 cmp_func(base + c, base + c + size) < 0) in sort() 62 c += size; in sort() 63 if (cmp_func(base + r, base + c) >= 0) in sort() 65 swap_func(base + r, base + c, size); in sort() 72 for (r = 0; r * 2 + size < i; r = c) { in sort() 73 c = r * 2 + size; in sort() [all …]
|
D | string_helpers.c | 297 static bool escape_passthrough(unsigned char c, char **dst, char *end) in escape_passthrough() argument 302 *out = c; in escape_passthrough() 307 static bool escape_space(unsigned char c, char **dst, char *end) in escape_space() argument 312 switch (c) { in escape_space() 343 static bool escape_special(unsigned char c, char **dst, char *end) in escape_special() argument 348 switch (c) { in escape_special() 373 static bool escape_null(unsigned char c, char **dst, char *end) in escape_null() argument 377 if (c) in escape_null() 391 static bool escape_octal(unsigned char c, char **dst, char *end) in escape_octal() argument 399 *out = ((c >> 6) & 0x07) + '0'; in escape_octal() [all …]
|
/linux-4.1.27/tools/power/cpupower/po/ |
D | de.po | 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 56 #: utils/idle_monitor/amd_fam14h_idle.c:77 [all …]
|
D | cs.po | 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 59 #: utils/idle_monitor/amd_fam14h_idle.c:77 [all …]
|
D | it.po | 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 56 #: utils/idle_monitor/amd_fam14h_idle.c:77 [all …]
|
D | pt.po | 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 54 #: utils/idle_monitor/amd_fam14h_idle.c:77 [all …]
|
D | fr.po | 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 56 #: utils/idle_monitor/amd_fam14h_idle.c:77 [all …]
|
/linux-4.1.27/drivers/spi/ |
D | spi-txx9.c | 87 static u32 txx9spi_rd(struct txx9spi *c, int reg) in txx9spi_rd() argument 89 return __raw_readl(c->membase + reg); in txx9spi_rd() 91 static void txx9spi_wr(struct txx9spi *c, u32 val, int reg) in txx9spi_wr() argument 93 __raw_writel(val, c->membase + reg); in txx9spi_wr() 96 static void txx9spi_cs_func(struct spi_device *spi, struct txx9spi *c, in txx9spi_cs_func() argument 103 if (c->last_chipselect >= 0) in txx9spi_cs_func() 104 gpio_set_value(c->last_chipselect, in txx9spi_cs_func() 105 !c->last_chipselect_val); in txx9spi_cs_func() 106 c->last_chipselect = spi->chip_select; in txx9spi_cs_func() 107 c->last_chipselect_val = val; in txx9spi_cs_func() [all …]
|
/linux-4.1.27/drivers/dma/ |
D | omap-dma.c | 166 static inline struct omap_chan *to_omap_dma_chan(struct dma_chan *c) in to_omap_dma_chan() argument 168 return container_of(c, struct omap_chan, vc.chan); in to_omap_dma_chan() 240 static void omap_dma_chan_write(struct omap_chan *c, unsigned reg, unsigned val) in omap_dma_chan_write() argument 242 const struct omap_dma_reg *r = c->reg_map + reg; in omap_dma_chan_write() 244 omap_dma_write(val, r->type, c->channel_base + r->offset); in omap_dma_chan_write() 247 static unsigned omap_dma_chan_read(struct omap_chan *c, unsigned reg) in omap_dma_chan_read() argument 249 const struct omap_dma_reg *r = c->reg_map + reg; in omap_dma_chan_read() 251 return omap_dma_read(r->type, c->channel_base + r->offset); in omap_dma_chan_read() 254 static void omap_dma_clear_csr(struct omap_chan *c) in omap_dma_clear_csr() argument 257 omap_dma_chan_read(c, CSR); in omap_dma_clear_csr() [all …]
|
D | bcm2835-dma.c | 132 static inline struct bcm2835_chan *to_bcm2835_dma_chan(struct dma_chan *c) in to_bcm2835_dma_chan() argument 134 return container_of(c, struct bcm2835_chan, vc.chan); in to_bcm2835_dma_chan() 188 static void bcm2835_dma_start_desc(struct bcm2835_chan *c) in bcm2835_dma_start_desc() argument 190 struct virt_dma_desc *vd = vchan_next_desc(&c->vc); in bcm2835_dma_start_desc() 194 c->desc = NULL; in bcm2835_dma_start_desc() 200 c->desc = d = to_bcm2835_dma_desc(&vd->tx); in bcm2835_dma_start_desc() 202 writel(d->control_block_base_phys, c->chan_base + BCM2835_DMA_ADDR); in bcm2835_dma_start_desc() 203 writel(BCM2835_DMA_ACTIVE, c->chan_base + BCM2835_DMA_CS); in bcm2835_dma_start_desc() 208 struct bcm2835_chan *c = data; in bcm2835_dma_callback() local 212 spin_lock_irqsave(&c->vc.lock, flags); in bcm2835_dma_callback() [all …]
|
D | k3dma.c | 193 struct k3_dma_chan *c; in k3_dma_int_handler() local 205 c = p->vchan; in k3_dma_int_handler() 206 if (c) { in k3_dma_int_handler() 209 spin_lock_irqsave(&c->vc.lock, flags); in k3_dma_int_handler() 212 spin_unlock_irqrestore(&c->vc.lock, flags); in k3_dma_int_handler() 231 static int k3_dma_start_txd(struct k3_dma_chan *c) in k3_dma_start_txd() argument 233 struct k3_dma_dev *d = to_k3_dma(c->vc.chan.device); in k3_dma_start_txd() 234 struct virt_dma_desc *vd = vchan_next_desc(&c->vc); in k3_dma_start_txd() 236 if (!c->phy) in k3_dma_start_txd() 239 if (BIT(c->phy->idx) & k3_dma_get_chan_stat(d)) in k3_dma_start_txd() [all …]
|
D | sa11x0-dma.c | 140 static struct sa11x0_dma_desc *sa11x0_dma_next_desc(struct sa11x0_dma_chan *c) in sa11x0_dma_next_desc() argument 142 struct virt_dma_desc *vd = vchan_next_desc(&c->vc); in sa11x0_dma_next_desc() 163 struct sa11x0_dma_chan *c) in sa11x0_dma_start_sg() argument 182 struct sa11x0_dma_desc *txn = sa11x0_dma_next_desc(c); in sa11x0_dma_start_sg() 227 struct sa11x0_dma_chan *c) in sa11x0_dma_complete() argument 249 sa11x0_dma_start_sg(p, c); in sa11x0_dma_complete() 256 struct sa11x0_dma_chan *c; in sa11x0_dma_irq() local 279 c = p->vchan; in sa11x0_dma_irq() 280 if (c) { in sa11x0_dma_irq() 283 spin_lock_irqsave(&c->vc.lock, flags); in sa11x0_dma_irq() [all …]
|
/linux-4.1.27/mm/ |
D | page_counter.c | 38 struct page_counter *c; in page_counter_charge() local 40 for (c = counter; c; c = c->parent) { in page_counter_charge() 43 new = atomic_long_add_return(nr_pages, &c->count); in page_counter_charge() 48 if (new > c->watermark) in page_counter_charge() 49 c->watermark = new; in page_counter_charge() 66 struct page_counter *c; in page_counter_try_charge() local 68 for (c = counter; c; c = c->parent) { in page_counter_try_charge() 84 new = atomic_long_add_return(nr_pages, &c->count); in page_counter_try_charge() 85 if (new > c->limit) { in page_counter_try_charge() 86 atomic_long_sub(nr_pages, &c->count); in page_counter_try_charge() [all …]
|
/linux-4.1.27/tools/perf/util/ |
D | config.c | 32 int c; in get_next_char() local 35 c = '\n'; in get_next_char() 37 c = fgetc(f); in get_next_char() 38 if (c == '\r') { in get_next_char() 40 c = fgetc(f); in get_next_char() 41 if (c != '\n') { in get_next_char() 42 ungetc(c, f); in get_next_char() 43 c = '\r'; in get_next_char() 46 if (c == '\n') in get_next_char() 48 if (c == EOF) { in get_next_char() [all …]
|
D | python-ext-sources | 8 util/python.c 9 util/ctype.c 10 util/evlist.c 11 util/evsel.c 12 util/cpumap.c 13 ../../lib/hweight.c 14 util/thread_map.c 15 util/util.c 16 util/xyarray.c 17 util/cgroup.c [all …]
|
/linux-4.1.27/drivers/video/console/ |
D | vgacon.c | 78 static void vgacon_init(struct vc_data *c, int init); 79 static void vgacon_deinit(struct vc_data *c); 80 static void vgacon_cursor(struct vc_data *c, int mode); 81 static int vgacon_switch(struct vc_data *c); 82 static int vgacon_blank(struct vc_data *c, int blank, int mode_switch); 84 static int vgacon_scrolldelta(struct vc_data *c, int lines); 85 static int vgacon_set_origin(struct vc_data *c); 86 static void vgacon_save_screen(struct vc_data *c); 87 static int vgacon_scroll(struct vc_data *c, int t, int b, int dir, 89 static void vgacon_invert_region(struct vc_data *c, u16 * p, int count); [all …]
|
/linux-4.1.27/net/ceph/crush/ |
D | hash.c | 10 #define crush_hashmix(a, b, c) do { \ argument 11 a = a-b; a = a-c; a = a^(c>>13); \ 12 b = b-c; b = b-a; b = b^(a<<8); \ 13 c = c-a; c = c-b; c = c^(b>>13); \ 14 a = a-b; a = a-c; a = a^(c>>12); \ 15 b = b-c; b = b-a; b = b^(a<<16); \ 16 c = c-a; c = c-b; c = c^(b>>5); \ 17 a = a-b; a = a-c; a = a^(c>>3); \ 18 b = b-c; b = b-a; b = b^(a<<10); \ 19 c = c-a; c = c-b; c = c^(b>>15); \ [all …]
|
/linux-4.1.27/crypto/ |
D | des_generic.c | 617 #define DES_PC2(a, b, c, d) (T4(d) | T3(c) | T2(b) | T1(a)) argument 634 unsigned long a, b, c, d, w; in des_ekey() local 638 c = k[5]; c &= 0x0e; c <<= 4; c |= k[1] & 0x1e; c = pc1[c]; in des_ekey() 642 pe[15 * 2 + 0] = DES_PC2(a, b, c, d); d = rs[d]; in des_ekey() 643 pe[14 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey() 644 pe[13 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey() 645 pe[12 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey() 646 pe[11 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey() 647 pe[10 * 2 + 0] = DES_PC2(d, a, b, c); c = rs[c]; b = rs[b]; in des_ekey() 648 pe[ 9 * 2 + 0] = DES_PC2(b, c, d, a); a = rs[a]; d = rs[d]; in des_ekey() [all …]
|
D | md4.c | 63 #define ROUND1(a,b,c,d,k,s) (a = lshift(a + F(b,c,d) + k, s)) argument 64 #define ROUND2(a,b,c,d,k,s) (a = lshift(a + G(b,c,d) + k + (u32)0x5A827999,s)) argument 65 #define ROUND3(a,b,c,d,k,s) (a = lshift(a + H(b,c,d) + k + (u32)0x6ED9EBA1,s)) argument 86 u32 a, b, c, d; in md4_transform() local 90 c = hash[2]; in md4_transform() 93 ROUND1(a, b, c, d, in[0], 3); in md4_transform() 94 ROUND1(d, a, b, c, in[1], 7); in md4_transform() 95 ROUND1(c, d, a, b, in[2], 11); in md4_transform() 96 ROUND1(b, c, d, a, in[3], 19); in md4_transform() 97 ROUND1(a, b, c, d, in[4], 3); in md4_transform() [all …]
|
D | cast6_generic.c | 114 int __cast6_setkey(struct cast6_ctx *c, const u8 *in_key, in __cast6_setkey() argument 142 c->Kr[i][0] = key[0] & 0x1f; in __cast6_setkey() 143 c->Kr[i][1] = key[2] & 0x1f; in __cast6_setkey() 144 c->Kr[i][2] = key[4] & 0x1f; in __cast6_setkey() 145 c->Kr[i][3] = key[6] & 0x1f; in __cast6_setkey() 147 c->Km[i][0] = key[7]; in __cast6_setkey() 148 c->Km[i][1] = key[5]; in __cast6_setkey() 149 c->Km[i][2] = key[3]; in __cast6_setkey() 150 c->Km[i][3] = key[1]; in __cast6_setkey() 184 void __cast6_encrypt(struct cast6_ctx *c, u8 *outbuf, const u8 *inbuf) in __cast6_encrypt() argument [all …]
|
D | sha256_generic.c | 57 u32 a, b, c, d, e, f, g, h, t1, t2; in sha256_transform() local 70 a=state[0]; b=state[1]; c=state[2]; d=state[3]; in sha256_transform() 75 t2 = e0(a) + Maj(a,b,c); d+=t1; h=t1+t2; in sha256_transform() 77 t2 = e0(h) + Maj(h,a,b); c+=t1; g=t1+t2; in sha256_transform() 78 t1 = f + e1(c) + Ch(c,d,e) + 0xb5c0fbcf + W[ 2]; in sha256_transform() 80 t1 = e + e1(b) + Ch(b,c,d) + 0xe9b5dba5 + W[ 3]; in sha256_transform() 82 t1 = d + e1(a) + Ch(a,b,c) + 0x3956c25b + W[ 4]; in sha256_transform() 84 t1 = c + e1(h) + Ch(h,a,b) + 0x59f111f1 + W[ 5]; in sha256_transform() 85 t2 = e0(d) + Maj(d,e,f); g+=t1; c=t1+t2; in sha256_transform() 87 t2 = e0(c) + Maj(c,d,e); f+=t1; b=t1+t2; in sha256_transform() [all …]
|
D | tgr192.c | 38 u64 a, b, c; member 405 u64 c = *rc; in tgr192_round() local 407 c ^= x; in tgr192_round() 408 a -= sbox1[c & 0xff] ^ sbox2[(c >> 16) & 0xff] in tgr192_round() 409 ^ sbox3[(c >> 32) & 0xff] ^ sbox4[(c >> 48) & 0xff]; in tgr192_round() 410 b += sbox4[(c >> 8) & 0xff] ^ sbox3[(c >> 24) & 0xff] in tgr192_round() 411 ^ sbox2[(c >> 40) & 0xff] ^ sbox1[(c >> 56) & 0xff]; in tgr192_round() 416 *rc = c; in tgr192_round() 424 u64 c = *rc; in tgr192_pass() local 426 tgr192_round(&a, &b, &c, x[0], mul); in tgr192_pass() [all …]
|
/linux-4.1.27/drivers/usb/misc/sisusbvga/ |
D | sisusb_con.c | 76 #define sisusbcon_memmovew(d, s, c) memmove(d, s, c) argument 77 #define sisusbcon_memcpyw(d, s, c) memcpy(d, s, c) argument 86 sisusbcon_memsetw(u16 *s, u16 c, unsigned int count) in sisusbcon_memsetw() argument 90 sisusbcon_writew(c, s++); in sisusbcon_memsetw() 107 sisusbcon_set_start_address(struct sisusb_usb_data *sisusb, struct vc_data *c) in sisusbcon_set_start_address() argument 109 sisusb->cur_start_addr = (c->vc_visible_origin - sisusb->scrbuf) / 2; in sisusbcon_set_start_address() 187 sisusb_is_inactive(struct vc_data *c, struct sisusb_usb_data *sisusb) in sisusb_is_inactive() argument 191 c->vc_mode != KD_TEXT) in sisusb_is_inactive() 206 sisusbcon_init(struct vc_data *c, int init) in sisusbcon_init() argument 217 if (!(sisusb = sisusb_get_sisusb(c->vc_num))) in sisusbcon_init() [all …]
|
/linux-4.1.27/arch/microblaze/lib/ |
D | memmove.c | 35 void *memmove(void *v_dst, const void *v_src, __kernel_size_t c) in memmove() argument 40 if (!c) in memmove() 45 return memcpy(v_dst, v_src, c); in memmove() 48 src += c; in memmove() 49 dst += c; in memmove() 52 while (c--) in memmove() 58 void *memmove(void *v_dst, const void *v_src, __kernel_size_t c) in memmove() argument 65 if (!c) in memmove() 70 return memcpy(v_dst, v_src, c); in memmove() 80 dst += c; in memmove() [all …]
|
D | memcpy.c | 36 void *memcpy(void *v_dst, const void *v_src, __kernel_size_t c) in memcpy() argument 42 while (c--) in memcpy() 48 void *memcpy(void *v_dst, const void *v_src, __kernel_size_t c) in memcpy() argument 62 if (likely(c >= 4)) { in memcpy() 70 --c; in memcpy() 73 --c; in memcpy() 76 --c; in memcpy() 87 for (; c >= 4; c -= 4) in memcpy() 99 for (; c >= 4; c -= 4) { in memcpy() 108 for (; c >= 4; c -= 4) { in memcpy() [all …]
|
D | memset.c | 35 void *memset(void *v_src, int c, __kernel_size_t n) in memset() argument 40 c = (c & 0xFF); in memset() 44 *src++ = c; in memset() 49 void *memset(void *v_src, int c, __kernel_size_t n) in memset() argument 56 c = (c & 0xFF); in memset() 58 if (unlikely(c)) { in memset() 60 w32 = c; in memset() 70 *src++ = c; in memset() 73 *src++ = c; in memset() 76 *src++ = c; in memset() [all …]
|
/linux-4.1.27/scripts/dtc/ |
D | checks.c | 24 #define TRACE(c, ...) \ argument 26 fprintf(stderr, "=== %s: ", (c)->name); \ 31 #define TRACE(c, fmt, ...) do { } while (0) argument 43 typedef void (*tree_check_fn)(struct check *c, struct node *dt); 44 typedef void (*node_check_fn)(struct check *c, struct node *dt, struct node *node); 45 typedef void (*prop_check_fn)(struct check *c, struct node *dt, 102 static inline void check_msg(struct check *c, const char *fmt, ...) __attribute__((format (printf, … 104 static inline void check_msg(struct check *c, const char *fmt, ...) in check_msg() argument 109 if ((c->warn && (quiet < 1)) in check_msg() 110 || (c->error && (quiet < 2))) { in check_msg() [all …]
|
D | Makefile.dtc | 7 checks.c \ 8 data.c \ 9 dtc.c \ 10 flattree.c \ 11 fstree.c \ 12 livetree.c \ 13 srcpos.c \ 14 treesource.c \ 15 util.c 17 DTC_GEN_SRCS = dtc-lexer.lex.c dtc-parser.tab.c [all …]
|
/linux-4.1.27/arch/powerpc/boot/ |
D | Makefile | 63 zlib := inffast.c inflate.c inftrees.c 70 libfdt := fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c 76 src-wlib-y := string.S crt0.S crtsavres.S stdio.c main.c \ 77 $(libfdt) libfdt-wrapper.c \ 78 ns16550.c serial.c simple_alloc.c div64.S util.S \ 79 gunzip_util.c elf_util.c $(zlib) devtree.c stdlib.c \ 80 oflib.c ofconsole.c cuboot.c mpsc.c cpm-serial.c \ 81 uartlite.c mpc52xx-psc.c 82 src-wlib-$(CONFIG_40x) += 4xx.c planetcore.c 83 src-wlib-$(CONFIG_44x) += 4xx.c ebony.c bamboo.c [all …]
|
D | .gitignore | 2 empty.c 4 inffast.c 7 inflate.c 9 inftrees.c 11 infutil.c 13 kernel-vmlinux.strip.c 35 fdt.c 37 fdt_ro.c 38 fdt_rw.c 39 fdt_strerror.c [all …]
|
/linux-4.1.27/drivers/md/bcache/ |
D | super.c | 303 struct cache_set *c = container_of(cl, struct cache_set, sb_write); in bcache_write_super_unlock() local 305 up(&c->sb_write_mutex); in bcache_write_super_unlock() 308 void bcache_write_super(struct cache_set *c) in bcache_write_super() argument 310 struct closure *cl = &c->sb_write; in bcache_write_super() 314 down(&c->sb_write_mutex); in bcache_write_super() 315 closure_init(cl, &c->cl); in bcache_write_super() 317 c->sb.seq++; in bcache_write_super() 319 for_each_cache(ca, c, i) { in bcache_write_super() 323 ca->sb.seq = c->sb.seq; in bcache_write_super() 324 ca->sb.last_mount = c->sb.last_mount; in bcache_write_super() [all …]
|
D | btree.c | 93 #define PTR_HASH(c, k) \ argument 94 (((k)->ptr[0] >> c->bucket_bits) | PTR_GEN(k, 0)) 120 struct btree *_child = bch_btree_node_get((b)->c, op, key, l, \ 136 #define btree_root(fn, c, op, ...) \ argument 140 struct btree *_b = (c)->root; \ 143 if (_b == (c)->root && \ 148 bch_cannibalize_unlock(c); \ 153 finish_wait(&(c)->btree_cache_wait, &(op)->wait); \ 159 return ((void *) btree_bset_first(b)) + b->written * block_bytes(b->c); in write_block() 166 bch_btree_sort(&b->keys, &b->c->sort); in bch_btree_init_next() [all …]
|
D | journal.c | 144 int bch_journal_read(struct cache_set *c, struct list_head *list) in bch_journal_read() argument 158 for_each_cache(ca, c, iter) { in bch_journal_read() 258 c->journal.seq = list_entry(list->prev, in bch_journal_read() 266 void bch_journal_mark(struct cache_set *c, struct list_head *list) in bch_journal_mark() argument 271 struct journal *j = &c->journal; in bch_journal_mark() 300 if (!__bch_extent_invalid(c, k)) { in bch_journal_mark() 304 if (ptr_available(c, k, j)) in bch_journal_mark() 305 atomic_inc(&PTR_BUCKET(c, k, j)->pin); in bch_journal_mark() 307 bch_initial_mark_key(c, 0, k); in bch_journal_mark() 366 static void btree_flush_write(struct cache_set *c) in btree_flush_write() argument [all …]
|
D | sysfs.c | 195 struct cache_set *c; in STORE() local 249 if (dc->disk.c) { in STORE() 250 memcpy(dc->disk.c->uuids[dc->disk.id].label, in STORE() 252 bch_uuid_write(dc->disk.c); in STORE() 269 list_for_each_entry(c, &bch_cache_sets, list) { in STORE() 270 v = bch_cached_dev_attach(dc, c); in STORE() 279 if (attr == &sysfs_detach && dc->disk.c) in STORE() 345 struct uuid_entry *u = &d->c->uuids[d->id]; in SHOW() 364 struct uuid_entry *u = &d->c->uuids[d->id]; in STORE() 373 bch_uuid_write(d->c); in STORE() [all …]
|
D | extents.c | 41 int64_t c = bkey_cmp(l.k, r.k); in bch_key_sort_cmp() local 43 return c ? c > 0 : l.k < r.k; in bch_key_sort_cmp() 46 static bool __ptr_invalid(struct cache_set *c, const struct bkey *k) in __ptr_invalid() argument 51 if (ptr_available(c, k, i)) { in __ptr_invalid() 52 struct cache *ca = PTR_CACHE(c, k, i); in __ptr_invalid() 53 size_t bucket = PTR_BUCKET_NR(c, k, i); in __ptr_invalid() 54 size_t r = bucket_remainder(c, PTR_OFFSET(k, i)); in __ptr_invalid() 56 if (KEY_SIZE(k) + r > c->sb.bucket_size || in __ptr_invalid() 67 static const char *bch_ptr_status(struct cache_set *c, const struct bkey *k) in bch_ptr_status() argument 72 if (ptr_available(c, k, i)) { in bch_ptr_status() [all …]
|
D | bcache.h | 264 struct cache_set *c; member 700 #define btree_bytes(c) ((c)->btree_pages * PAGE_SIZE) argument 702 ((unsigned) (KEY_SIZE(&b->key) >> (b)->c->block_bits)) 704 #define btree_default_blocks(c) \ argument 705 ((unsigned) ((PAGE_SECTORS * (c)->btree_pages) >> (c)->block_bits)) 707 #define bucket_pages(c) ((c)->sb.bucket_size / PAGE_SECTORS) argument 708 #define bucket_bytes(c) ((c)->sb.bucket_size << 9) argument 709 #define block_bytes(c) ((c)->sb.block_size << 9) argument 711 #define prios_per_bucket(c) \ argument 712 ((bucket_bytes(c) - sizeof(struct prio_set)) / \ [all …]
|
D | alloc.c | 84 void bch_rescale_priorities(struct cache_set *c, int sectors) in bch_rescale_priorities() argument 88 unsigned next = c->nbuckets * c->sb.bucket_size / 1024; in bch_rescale_priorities() 92 atomic_sub(sectors, &c->rescale); in bch_rescale_priorities() 95 r = atomic_read(&c->rescale); in bch_rescale_priorities() 99 } while (atomic_cmpxchg(&c->rescale, r, r + next) != r); in bch_rescale_priorities() 101 mutex_lock(&c->bucket_lock); in bch_rescale_priorities() 103 c->min_prio = USHRT_MAX; in bch_rescale_priorities() 105 for_each_cache(ca, c, i) in bch_rescale_priorities() 111 c->min_prio = min(c->min_prio, b->prio); in bch_rescale_priorities() 114 mutex_unlock(&c->bucket_lock); in bch_rescale_priorities() [all …]
|
D | movinggc.c | 23 struct cache_set *c = container_of(buf, struct cache_set, in moving_pred() local 28 if (ptr_available(c, k, i) && in moving_pred() 29 GC_MOVE(PTR_BUCKET(c, k, i))) in moving_pred() 56 bch_keybuf_del(&io->op.c->moving_gc_keys, io->w); in write_moving_finish() 58 up(&io->op.c->moving_in_flight); in write_moving_finish() 72 ptr_stale(io->op.c, &b->key, 0)) { in read_moving_endio() 76 bch_bbio_endio(io->op.c, bio, error, "reading data to move"); in read_moving_endio() 124 bch_submit_bbio(bio, io->op.c, &io->w->key, 0); in read_moving_submit() 129 static void read_moving(struct cache_set *c) in read_moving() argument 140 while (!test_bit(CACHE_SET_STOPPING, &c->flags)) { in read_moving() [all …]
|
/linux-4.1.27/drivers/media/pci/ttpci/ |
D | av7110_ipack.c | 148 int c = 0; in av7110_ipack_instant_repack() local 150 while (c < count && (p->mpeg == 0 || in av7110_ipack_instant_repack() 157 if (buf[c] == 0x00) in av7110_ipack_instant_repack() 161 c++; in av7110_ipack_instant_repack() 164 if (buf[c] == 0x01) in av7110_ipack_instant_repack() 166 else if (buf[c] == 0) in av7110_ipack_instant_repack() 170 c++; in av7110_ipack_instant_repack() 174 switch (buf[c]) { in av7110_ipack_instant_repack() 189 p->cid = buf[c]; in av7110_ipack_instant_repack() 190 c++; in av7110_ipack_instant_repack() [all …]
|
/linux-4.1.27/drivers/mmc/host/ |
D | sdhci-acpi.c | 81 static inline bool sdhci_acpi_flag(struct sdhci_acpi_host *c, unsigned int flag) in sdhci_acpi_flag() argument 83 return c->slot && (c->slot->flags & flag); in sdhci_acpi_flag() 88 struct sdhci_acpi_host *c = sdhci_priv(host); in sdhci_acpi_enable_dma() local 89 struct device *dev = &c->pdev->dev; in sdhci_acpi_enable_dma() 92 if (c->dma_setup) in sdhci_acpi_enable_dma() 108 c->dma_setup = !err; in sdhci_acpi_enable_dma() 152 struct sdhci_acpi_host *c = platform_get_drvdata(pdev); in sdhci_acpi_emmc_probe_slot() local 155 if (!c || !c->host) in sdhci_acpi_emmc_probe_slot() 158 host = c->host; in sdhci_acpi_emmc_probe_slot() 173 struct sdhci_acpi_host *c = platform_get_drvdata(pdev); in sdhci_acpi_sdio_probe_slot() local [all …]
|
/linux-4.1.27/lib/raid6/ |
D | Makefile | 36 targets += int1.c 37 $(obj)/int1.c: UNROLL := 1 38 $(obj)/int1.c: $(src)/int.uc $(src)/unroll.awk FORCE 41 targets += int2.c 42 $(obj)/int2.c: UNROLL := 2 43 $(obj)/int2.c: $(src)/int.uc $(src)/unroll.awk FORCE 46 targets += int4.c 47 $(obj)/int4.c: UNROLL := 4 48 $(obj)/int4.c: $(src)/int.uc $(src)/unroll.awk FORCE 51 targets += int8.c [all …]
|
/linux-4.1.27/drivers/gpio/ |
D | gpio-pxa.c | 151 #define for_each_gpio_chip(i, c) \ argument 152 for (i = 0, c = &pxa_gpio_chips[0]; i <= pxa_last_gpio; i += 32, c++) 154 static inline void __iomem *gpio_chip_base(struct gpio_chip *c) in gpio_chip_base() argument 156 return container_of(c, struct pxa_gpio_chip, chip)->regbase; in gpio_chip_base() 315 struct gpio_chip *c = &chips[i].chip; in pxa_init_gpio_chip() local 321 c->base = gpio; in pxa_init_gpio_chip() 322 c->label = chips[i].label; in pxa_init_gpio_chip() 324 c->direction_input = pxa_gpio_direction_input; in pxa_init_gpio_chip() 325 c->direction_output = pxa_gpio_direction_output; in pxa_init_gpio_chip() 326 c->get = pxa_gpio_get; in pxa_init_gpio_chip() [all …]
|
/linux-4.1.27/drivers/media/common/siano/ |
D | smsdvb-main.c | 132 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in smsdvb_stats_not_ready() local 145 c->strength.len = 1; in smsdvb_stats_not_ready() 146 c->cnr.len = 1; in smsdvb_stats_not_ready() 147 c->strength.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready() 148 c->cnr.stat[0].scale = FE_SCALE_DECIBEL; in smsdvb_stats_not_ready() 151 c->post_bit_error.len = n_layers; in smsdvb_stats_not_ready() 152 c->post_bit_count.len = n_layers; in smsdvb_stats_not_ready() 153 c->block_error.len = n_layers; in smsdvb_stats_not_ready() 154 c->block_count.len = n_layers; in smsdvb_stats_not_ready() 161 c->post_bit_error.stat[i].scale = FE_SCALE_NOT_AVAILABLE; in smsdvb_stats_not_ready() [all …]
|
/linux-4.1.27/drivers/net/phy/ |
D | icplus.c | 127 int c; in ip1001_config_init() local 129 c = ip1xx_reset(phydev); in ip1001_config_init() 130 if (c < 0) in ip1001_config_init() 131 return c; in ip1001_config_init() 134 c = phy_read(phydev, IP1001_SPEC_CTRL_STATUS_2); in ip1001_config_init() 135 if (c < 0) in ip1001_config_init() 136 return c; in ip1001_config_init() 137 c |= IP1001_APS_ON; in ip1001_config_init() 138 c = phy_write(phydev, IP1001_SPEC_CTRL_STATUS_2, c); in ip1001_config_init() 139 if (c < 0) in ip1001_config_init() [all …]
|
/linux-4.1.27/drivers/media/pci/bt8xx/ |
D | btcx-risc.c | 93 clips[n].c.left = 0; in btcx_screen_clips() 94 clips[n].c.top = 0; in btcx_screen_clips() 95 clips[n].c.width = -win->left; in btcx_screen_clips() 96 clips[n].c.height = win->height; in btcx_screen_clips() 101 clips[n].c.left = swidth - win->left; in btcx_screen_clips() 102 clips[n].c.top = 0; in btcx_screen_clips() 103 clips[n].c.width = win->width - clips[n].c.left; in btcx_screen_clips() 104 clips[n].c.height = win->height; in btcx_screen_clips() 109 clips[n].c.left = 0; in btcx_screen_clips() 110 clips[n].c.top = 0; in btcx_screen_clips() [all …]
|
/linux-4.1.27/drivers/scsi/fnic/ |
D | fnic_res.c | 36 struct vnic_fc_config *c = &fnic->config; in fnic_get_vnic_config() local 43 sizeof(c->m), &c->m); \ in fnic_get_vnic_config() 73 c->wq_enet_desc_count = in fnic_get_vnic_config() 76 c->wq_enet_desc_count)); in fnic_get_vnic_config() 77 c->wq_enet_desc_count = ALIGN(c->wq_enet_desc_count, 16); in fnic_get_vnic_config() 79 c->wq_copy_desc_count = in fnic_get_vnic_config() 82 c->wq_copy_desc_count)); in fnic_get_vnic_config() 83 c->wq_copy_desc_count = ALIGN(c->wq_copy_desc_count, 16); in fnic_get_vnic_config() 85 c->rq_desc_count = in fnic_get_vnic_config() 88 c->rq_desc_count)); in fnic_get_vnic_config() [all …]
|
/linux-4.1.27/arch/sparc/crypto/ |
D | opcodes.h | 17 #define CRC32C(a,b,c) \ argument 18 .word (F3F(2,0x36,0x147)|RS1(a)|RS2(b)|RD(c)); 29 #define AES_EROUND01(a,b,c,d) \ argument 30 .word (F3F(2, 0x19, 0)|RS1(a)|RS2(b)|RS3(c)|RD(d)); 31 #define AES_EROUND23(a,b,c,d) \ argument 32 .word (F3F(2, 0x19, 1)|RS1(a)|RS2(b)|RS3(c)|RD(d)); 33 #define AES_DROUND01(a,b,c,d) \ argument 34 .word (F3F(2, 0x19, 2)|RS1(a)|RS2(b)|RS3(c)|RD(d)); 35 #define AES_DROUND23(a,b,c,d) \ argument 36 .word (F3F(2, 0x19, 3)|RS1(a)|RS2(b)|RS3(c)|RD(d)); [all …]
|
/linux-4.1.27/arch/arm64/include/asm/ |
D | io.h | 120 #define readb_relaxed(c) ({ u8 __v = __raw_readb(c); __v; }) argument 121 #define readw_relaxed(c) ({ u16 __v = le16_to_cpu((__force __le16)__raw_readw(c)); __v; }) argument 122 #define readl_relaxed(c) ({ u32 __v = le32_to_cpu((__force __le32)__raw_readl(c)); __v; }) argument 123 #define readq_relaxed(c) ({ u64 __v = le64_to_cpu((__force __le64)__raw_readq(c)); __v; }) argument 125 #define writeb_relaxed(v,c) ((void)__raw_writeb((v),(c))) argument 126 #define writew_relaxed(v,c) ((void)__raw_writew((__force u16)cpu_to_le16(v),(c))) argument 127 #define writel_relaxed(v,c) ((void)__raw_writel((__force u32)cpu_to_le32(v),(c))) argument 128 #define writeq_relaxed(v,c) ((void)__raw_writeq((__force u64)cpu_to_le64(v),(c))) argument 135 #define readb(c) ({ u8 __v = readb_relaxed(c); __iormb(); __v; }) argument 136 #define readw(c) ({ u16 __v = readw_relaxed(c); __iormb(); __v; }) argument [all …]
|
/linux-4.1.27/include/linux/mmc/ |
D | card.h | 419 #define mmc_card_mmc(c) ((c)->type == MMC_TYPE_MMC) argument 420 #define mmc_card_sd(c) ((c)->type == MMC_TYPE_SD) argument 421 #define mmc_card_sdio(c) ((c)->type == MMC_TYPE_SDIO) argument 423 #define mmc_card_present(c) ((c)->state & MMC_STATE_PRESENT) argument 424 #define mmc_card_readonly(c) ((c)->state & MMC_STATE_READONLY) argument 425 #define mmc_card_blockaddr(c) ((c)->state & MMC_STATE_BLOCKADDR) argument 426 #define mmc_card_ext_capacity(c) ((c)->state & MMC_CARD_SDXC) argument 427 #define mmc_card_removed(c) ((c) && ((c)->state & MMC_CARD_REMOVED)) argument 428 #define mmc_card_doing_bkops(c) ((c)->state & MMC_STATE_DOING_BKOPS) argument 429 #define mmc_card_suspended(c) ((c)->state & MMC_STATE_SUSPENDED) argument [all …]
|
/linux-4.1.27/drivers/zorro/ |
D | gen-devlist.c | 17 pq(FILE *f, const char *c) in pq() argument 19 while (*c) { in pq() 20 if (*c == '"') in pq() 23 fputc(*c, f); in pq() 24 c++; in pq() 31 char line[1024], *c, *bra, manuf[8]; in main() local 46 if ((c = strchr(line, '\n'))) in main() 47 *c = 0; in main() 54 c = line + 5; in main() 55 while (*c == ' ') in main() [all …]
|
/linux-4.1.27/drivers/gpu/drm/msm/ |
D | msm_atomic.c | 64 struct msm_commit *c = kzalloc(sizeof(*c), GFP_KERNEL); in commit_init() local 66 if (!c) in commit_init() 69 c->dev = state->dev; in commit_init() 70 c->state = state; in commit_init() 76 INIT_FENCE_CB(&c->fence_cb, fence_cb); in commit_init() 78 return c; in commit_init() 81 static void commit_destroy(struct msm_commit *c) in commit_destroy() argument 83 end_atomic(c->dev->dev_private, c->crtc_mask); in commit_destroy() 84 kfree(c); in commit_destroy() 90 static void complete_commit(struct msm_commit *c) in complete_commit() argument [all …]
|
/linux-4.1.27/arch/x86/boot/ |
D | cmdline.c | 17 static inline int myisspace(u8 c) in myisspace() argument 19 return c <= ' '; /* Close enough approximation */ in myisspace() 33 char c; in __cmdline_find_option() local 50 while (cptr < 0x10000 && (c = rdfs8(cptr++))) { in __cmdline_find_option() 53 if (myisspace(c)) in __cmdline_find_option() 62 if (c == '=' && !*opptr) { in __cmdline_find_option() 66 } else if (myisspace(c)) { in __cmdline_find_option() 68 } else if (c != *opptr++) { in __cmdline_find_option() 74 if (myisspace(c)) in __cmdline_find_option() 79 if (myisspace(c)) { in __cmdline_find_option() [all …]
|
/linux-4.1.27/drivers/block/ |
D | cpqarray.c | 140 static int cpqarray_pci_init(ctlr_info_t *c, struct pci_dev *pdev); 148 static void cmd_free(ctlr_info_t *h, cmdlist_t *c, int got_from_pool); 171 static inline void addQ(cmdlist_t **Qptr, cmdlist_t *c); 172 static inline cmdlist_t *removeQ(cmdlist_t **Qptr, cmdlist_t *c); 236 cmdlist_t *c; in ida_proc_show() local 273 c = h->reqQ; in ida_proc_show() 274 seq_printf(m, "reqQ = %p", c); in ida_proc_show() 275 if (c) c=c->next; in ida_proc_show() 276 while(c && c != h->reqQ) { in ida_proc_show() 277 seq_printf(m, "->%p", c); in ida_proc_show() [all …]
|
D | cciss_scsi.c | 47 static int fill_cmd(ctlr_info_t *h, CommandList_struct *c, __u8 cmd, void *buff, 54 static void cmd_free(ctlr_info_t *h, CommandList_struct *c); 55 static void cmd_special_free(ctlr_info_t *h, CommandList_struct *c); 141 struct cciss_scsi_cmd_stack_elem_t *c; in scsi_cmd_alloc() local 151 c = stk->elem[stk->top]; in scsi_cmd_alloc() 153 memset(&c->cmd, 0, sizeof(c->cmd)); in scsi_cmd_alloc() 154 memset(&c->Err, 0, sizeof(c->Err)); in scsi_cmd_alloc() 156 c->cmd.busaddr = c->busaddr; in scsi_cmd_alloc() 157 c->cmd.cmdindex = c->cmdindex; in scsi_cmd_alloc() 161 temp64.val = (__u64) (c->busaddr + sizeof(CommandList_struct)); in scsi_cmd_alloc() [all …]
|
D | cciss.c | 194 static int sendcmd_withirq_core(ctlr_info_t *h, CommandList_struct *c, 196 static int process_sendcmd_error(ctlr_info_t *h, CommandList_struct *c); 200 static int check_for_unit_attention(ctlr_info_t *h, CommandList_struct *c); 248 static void set_performant_mode(ctlr_info_t *h, CommandList_struct *c) in set_performant_mode() argument 251 c->busaddr |= 1 | (h->blockFetchTable[c->Header.SGList] << 1); in set_performant_mode() 257 static inline void addQ(struct list_head *list, CommandList_struct *c) in addQ() argument 259 list_add_tail(&c->list, list); in addQ() 262 static inline void removeQ(CommandList_struct *c) in removeQ() argument 272 if (WARN_ON(list_empty(&c->list))) { in removeQ() 273 c->cmd_type = CMD_MSG_STALE; in removeQ() [all …]
|
/linux-4.1.27/Documentation/scsi/ |
D | ChangeLog.1992-1997 | 32 * scsi.c (scsi_proc_info): /proc/scsi/scsi now also lists all 35 * scsi_proc.c (proc_print_scsidevice): Added. Used by scsi.c and 36 eata_dma_proc.c to produce some device info for /proc/scsi. 38 * eata_dma.c (eata_queue)(eata_int_handler)(eata_scsi_done): 46 * eata_dma.c (eata_queue)(eata_int_handler): Added code to do 51 * eata_pio.c: Use HZ constant for time references. 53 * aic7xxx.c, aic7xxx.h, aic7xxx_asm.c: Changed copyright from BSD 62 * scsi_proc.c (dispatch_scsi_info): Removed unused variable. 68 * scsi.c Blacklist concept expanded to 'support' more device 72 * scsi_debug.c (scsi_debug_proc_info): Added support to control [all …]
|
/linux-4.1.27/scripts/coccinelle/iterators/ |
D | use_after_iter.cocci | 21 identifier c,member; 41 list_for_each_entry@p1(c,...,member) { ... when != break; 46 list_for_each_entry_reverse@p1(c,...,member) { ... when != break; 51 list_for_each_entry_continue@p1(c,...,member) { ... when != break; 56 list_for_each_entry_continue_reverse@p1(c,...,member) { ... when != break; 61 list_for_each_entry_from@p1(c,...,member) { ... when != break; 66 list_for_each_entry_safe@p1(c,...,member) { ... when != break; 71 list_for_each_entry_safe_continue@p1(c,...,member) { ... when != break; 76 list_for_each_entry_safe_from@p1(c,...,member) { ... when != break; 81 list_for_each_entry_safe_reverse@p1(c,...,member) { ... when != break; [all …]
|
/linux-4.1.27/drivers/media/dvb-frontends/ |
D | as102_fe.c | 37 uint8_t c; in as102_fe_get_code_rate() local 41 c = CODE_RATE_1_2; in as102_fe_get_code_rate() 44 c = CODE_RATE_2_3; in as102_fe_get_code_rate() 47 c = CODE_RATE_3_4; in as102_fe_get_code_rate() 50 c = CODE_RATE_5_6; in as102_fe_get_code_rate() 53 c = CODE_RATE_7_8; in as102_fe_get_code_rate() 56 c = CODE_RATE_UNKNOWN; in as102_fe_get_code_rate() 60 return c; in as102_fe_get_code_rate() 66 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in as102_fe_set_frontend() local 70 tune_args.freq = c->frequency / 1000; in as102_fe_set_frontend() [all …]
|
D | mb86a20s.c | 332 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in mb86a20s_read_signal_strength() local 338 return c->strength.stat[0].uvalue; in mb86a20s_read_signal_strength() 341 c->strength.stat[0].uvalue = 0; in mb86a20s_read_signal_strength() 379 c->strength.stat[0].uvalue = rf; in mb86a20s_read_signal_strength() 511 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in mb86a20s_reset_frontend_cache() local 516 c->delivery_system = SYS_ISDBT; in mb86a20s_reset_frontend_cache() 517 c->bandwidth_hz = 6000000; in mb86a20s_reset_frontend_cache() 520 c->isdbt_layer_enabled = 0; in mb86a20s_reset_frontend_cache() 521 c->transmission_mode = TRANSMISSION_MODE_AUTO; in mb86a20s_reset_frontend_cache() 522 c->guard_interval = GUARD_INTERVAL_AUTO; in mb86a20s_reset_frontend_cache() [all …]
|
D | cxd2820r_t2.c | 27 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in cxd2820r_set_frontend_t2() local 73 c->frequency, c->bandwidth_hz); in cxd2820r_set_frontend_t2() 75 switch (c->bandwidth_hz) { in cxd2820r_set_frontend_t2() 129 if (c->stream_id > 255) { in cxd2820r_set_frontend_t2() 136 c->stream_id); in cxd2820r_set_frontend_t2() 137 ret = cxd2820r_wr_reg(priv, 0x023af , c->stream_id & 0xFF); in cxd2820r_set_frontend_t2() 175 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in cxd2820r_get_frontend_t2() local 185 c->transmission_mode = TRANSMISSION_MODE_2K; in cxd2820r_get_frontend_t2() 188 c->transmission_mode = TRANSMISSION_MODE_8K; in cxd2820r_get_frontend_t2() 191 c->transmission_mode = TRANSMISSION_MODE_4K; in cxd2820r_get_frontend_t2() [all …]
|
D | cxd2820r_t.c | 27 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in cxd2820r_set_frontend_t() local 59 c->frequency, c->bandwidth_hz); in cxd2820r_set_frontend_t() 61 switch (c->bandwidth_hz) { in cxd2820r_set_frontend_t() 144 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in cxd2820r_get_frontend_t() local 154 c->modulation = QPSK; in cxd2820r_get_frontend_t() 157 c->modulation = QAM_16; in cxd2820r_get_frontend_t() 160 c->modulation = QAM_64; in cxd2820r_get_frontend_t() 166 c->transmission_mode = TRANSMISSION_MODE_2K; in cxd2820r_get_frontend_t() 169 c->transmission_mode = TRANSMISSION_MODE_8K; in cxd2820r_get_frontend_t() 175 c->guard_interval = GUARD_INTERVAL_1_32; in cxd2820r_get_frontend_t() [all …]
|
D | af9033.c | 214 u32 r = 0, c = 0, i; in af9033_div() local 219 c = a / b; in af9033_div() 220 a = a - c * b; in af9033_div() 231 r = (c << (u32)x) + r; in af9033_div() 241 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in af9033_init() local 459 c->strength.len = 1; in af9033_init() 460 c->strength.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init() 461 c->cnr.len = 1; in af9033_init() 462 c->cnr.stat[0].scale = FE_SCALE_NOT_AVAILABLE; in af9033_init() 463 c->block_count.len = 1; in af9033_init() [all …]
|
/linux-4.1.27/sound/pci/asihpi/ |
D | hpicmn.c | 334 if (phm->u.c.attribute == HPI_METER_PEAK) { in hpi_check_control_cache_single() 335 phr->u.c.an_log_value[0] = pC->u.meter.an_log_peak[0]; in hpi_check_control_cache_single() 336 phr->u.c.an_log_value[1] = pC->u.meter.an_log_peak[1]; in hpi_check_control_cache_single() 337 } else if (phm->u.c.attribute == HPI_METER_RMS) { in hpi_check_control_cache_single() 342 phr->u.c.an_log_value[0] = HPI_METER_MINIMUM; in hpi_check_control_cache_single() 343 phr->u.c.an_log_value[1] = HPI_METER_MINIMUM; in hpi_check_control_cache_single() 345 phr->u.c.an_log_value[0] = in hpi_check_control_cache_single() 347 phr->u.c.an_log_value[1] = in hpi_check_control_cache_single() 354 if (phm->u.c.attribute == HPI_VOLUME_GAIN) { in hpi_check_control_cache_single() 355 phr->u.c.an_log_value[0] = pC->u.vol.an_log[0]; in hpi_check_control_cache_single() [all …]
|
/linux-4.1.27/arch/powerpc/xmon/ |
D | nonstdio.c | 27 int xmon_putchar(int c) in xmon_putchar() argument 29 char ch = c; in xmon_putchar() 31 if (c == '\n') in xmon_putchar() 33 return xmon_write(&ch, 1) == 1? c: -1; in xmon_putchar() 42 int c; in xmon_getchar() local 47 c = xmon_readchar(); in xmon_getchar() 48 if (c == -1 || c == 4) in xmon_getchar() 50 if (c == '\r' || c == '\n') { in xmon_getchar() 55 switch (c) { in xmon_getchar() 77 xmon_putchar(c); in xmon_getchar() [all …]
|
/linux-4.1.27/sound/core/ |
D | memory.c | 45 size_t c = count; in copy_to_user_fromio() 46 if (c > sizeof(buf)) in copy_to_user_fromio() 47 c = sizeof(buf); in copy_to_user_fromio() 48 memcpy_fromio(buf, (void __iomem *)src, c); in copy_to_user_fromio() 49 if (copy_to_user(dst, buf, c)) in copy_to_user_fromio() 51 count -= c; in copy_to_user_fromio() 52 dst += c; in copy_to_user_fromio() 53 src += c; in copy_to_user_fromio() 78 size_t c = count; in copy_from_user_toio() 79 if (c > sizeof(buf)) in copy_from_user_toio() [all …]
|
/linux-4.1.27/fs/ocfs2/ |
D | ocfs2_lockid.h | 58 char c; in ocfs2_lock_type_char() local 61 c = 'M'; in ocfs2_lock_type_char() 64 c = 'D'; in ocfs2_lock_type_char() 67 c = 'S'; in ocfs2_lock_type_char() 70 c = 'R'; in ocfs2_lock_type_char() 73 c = 'W'; in ocfs2_lock_type_char() 76 c = 'N'; in ocfs2_lock_type_char() 79 c = 'O'; in ocfs2_lock_type_char() 82 c = 'F'; in ocfs2_lock_type_char() 85 c = 'Q'; in ocfs2_lock_type_char() [all …]
|
/linux-4.1.27/arch/sh/kernel/cpu/ |
D | proc.c | 33 const char *get_cpu_subtype(struct sh_cpuinfo *c) in get_cpu_subtype() argument 35 return cpu_name[c->type]; in get_cpu_subtype() 46 static void show_cpuflags(struct seq_file *m, struct sh_cpuinfo *c) in show_cpuflags() argument 52 if (!c->flags) { in show_cpuflags() 58 if ((c->flags & (1 << i))) in show_cpuflags() 80 struct sh_cpuinfo *c = v; in show_cpuinfo() local 81 unsigned int cpu = c - cpu_data; in show_cpuinfo() 93 seq_printf(m, "cpu type\t: %s\n", get_cpu_subtype(c)); in show_cpuinfo() 94 if (c->cut_major == -1) in show_cpuinfo() 96 else if (c->cut_minor == -1) in show_cpuinfo() [all …]
|
/linux-4.1.27/net/ipv4/netfilter/ |
D | ipt_CLUSTERIP.c | 78 clusterip_config_get(struct clusterip_config *c) in clusterip_config_get() argument 80 atomic_inc(&c->refcount); in clusterip_config_get() 90 clusterip_config_put(struct clusterip_config *c) in clusterip_config_put() argument 92 if (atomic_dec_and_test(&c->refcount)) in clusterip_config_put() 93 call_rcu_bh(&c->rcu, clusterip_config_rcu_free); in clusterip_config_put() 100 clusterip_config_entry_put(struct clusterip_config *c) in clusterip_config_entry_put() argument 102 struct net *net = dev_net(c->dev); in clusterip_config_entry_put() 106 if (atomic_dec_and_lock(&c->entries, &cn->lock)) { in clusterip_config_entry_put() 107 list_del_rcu(&c->list); in clusterip_config_entry_put() 111 dev_mc_del(c->dev, c->clustermac); in clusterip_config_entry_put() [all …]
|
/linux-4.1.27/sound/aoa/core/ |
D | core.c | 24 static int attach_codec_to_fabric(struct aoa_codec *c) in attach_codec_to_fabric() argument 28 if (!try_module_get(c->owner)) in attach_codec_to_fabric() 33 err = fabric->found_codec(c); in attach_codec_to_fabric() 35 module_put(c->owner); in attach_codec_to_fabric() 37 c->name); in attach_codec_to_fabric() 40 c->fabric = fabric; in attach_codec_to_fabric() 43 if (c->init) in attach_codec_to_fabric() 44 err = c->init(c); in attach_codec_to_fabric() 46 printk(KERN_ERR "snd-aoa: codec %s didn't init\n", c->name); in attach_codec_to_fabric() 47 c->fabric = NULL; in attach_codec_to_fabric() [all …]
|
/linux-4.1.27/arch/powerpc/platforms/ps3/ |
D | mm.c | 391 static void _dma_dump_chunk (const struct dma_chunk* c, const char* func, in _dma_dump_chunk() argument 395 c->region->dev->bus_id, c->region->dev->dev_id); in _dma_dump_chunk() 396 DBG("%s:%d: r.bus_addr %lxh\n", func, line, c->region->bus_addr); in _dma_dump_chunk() 397 DBG("%s:%d: r.page_size %u\n", func, line, c->region->page_size); in _dma_dump_chunk() 398 DBG("%s:%d: r.len %lxh\n", func, line, c->region->len); in _dma_dump_chunk() 399 DBG("%s:%d: r.offset %lxh\n", func, line, c->region->offset); in _dma_dump_chunk() 400 DBG("%s:%d: c.lpar_addr %lxh\n", func, line, c->lpar_addr); in _dma_dump_chunk() 401 DBG("%s:%d: c.bus_addr %lxh\n", func, line, c->bus_addr); in _dma_dump_chunk() 402 DBG("%s:%d: c.len %lxh\n", func, line, c->len); in _dma_dump_chunk() 408 struct dma_chunk *c; in dma_find_chunk() local [all …]
|
/linux-4.1.27/arch/metag/kernel/ |
D | dma.c | 119 struct metag_vm_region *c, *new; in metag_vm_region_alloc() local 127 list_for_each_entry(c, &head->vm_list, vm_list) { in metag_vm_region_alloc() 130 if ((addr + size) <= c->vm_start) in metag_vm_region_alloc() 132 addr = c->vm_end; in metag_vm_region_alloc() 141 list_add_tail(&new->vm_list, &c->vm_list); in metag_vm_region_alloc() 159 struct metag_vm_region *c; in metag_vm_region_find() local 161 list_for_each_entry(c, &head->vm_list, vm_list) { in metag_vm_region_find() 162 if (c->vm_active && c->vm_start == addr) in metag_vm_region_find() 165 c = NULL; in metag_vm_region_find() 167 return c; in metag_vm_region_find() [all …]
|
/linux-4.1.27/arch/x86/purgatory/ |
D | sha256.c | 50 u32 a, b, c, d, e, f, g, h, t1, t2; in sha256_transform() local 63 a = state[0]; b = state[1]; c = state[2]; d = state[3]; in sha256_transform() 68 t2 = e0(a) + Maj(a, b, c); d += t1; h = t1 + t2; in sha256_transform() 70 t2 = e0(h) + Maj(h, a, b); c += t1; g = t1 + t2; in sha256_transform() 71 t1 = f + e1(c) + Ch(c, d, e) + 0xb5c0fbcf + W[2]; in sha256_transform() 73 t1 = e + e1(b) + Ch(b, c, d) + 0xe9b5dba5 + W[3]; in sha256_transform() 75 t1 = d + e1(a) + Ch(a, b, c) + 0x3956c25b + W[4]; in sha256_transform() 77 t1 = c + e1(h) + Ch(h, a, b) + 0x59f111f1 + W[5]; in sha256_transform() 78 t2 = e0(d) + Maj(d, e, f); g += t1; c = t1 + t2; in sha256_transform() 80 t2 = e0(c) + Maj(c, d, e); f += t1; b = t1 + t2; in sha256_transform() [all …]
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | io-defs.h | 29 DEF_PCI_AC_NORET(readsb, (const PCI_IO_ADDR a, void *b, unsigned long c), 30 (a, b, c), mem, a) 31 DEF_PCI_AC_NORET(readsw, (const PCI_IO_ADDR a, void *b, unsigned long c), 32 (a, b, c), mem, a) 33 DEF_PCI_AC_NORET(readsl, (const PCI_IO_ADDR a, void *b, unsigned long c), 34 (a, b, c), mem, a) 35 DEF_PCI_AC_NORET(writesb, (PCI_IO_ADDR a, const void *b, unsigned long c), 36 (a, b, c), mem, a) 37 DEF_PCI_AC_NORET(writesw, (PCI_IO_ADDR a, const void *b, unsigned long c), 38 (a, b, c), mem, a) [all …]
|
/linux-4.1.27/drivers/media/dvb-core/ |
D | dvb_frontend.c | 338 struct dtv_frontend_properties *c = &fe->dtv_property_cache, tmp; in dvb_frontend_swzigzag_autotune() local 339 int original_inversion = c->inversion; in dvb_frontend_swzigzag_autotune() 340 u32 original_frequency = c->frequency; in dvb_frontend_swzigzag_autotune() 344 (c->inversion == INVERSION_AUTO)); in dvb_frontend_swzigzag_autotune() 411 c->frequency += fepriv->lnb_drift; in dvb_frontend_swzigzag_autotune() 413 c->inversion = fepriv->inversion; in dvb_frontend_swzigzag_autotune() 414 tmp = *c; in dvb_frontend_swzigzag_autotune() 417 *c = tmp; in dvb_frontend_swzigzag_autotune() 423 c->frequency = original_frequency; in dvb_frontend_swzigzag_autotune() 424 c->inversion = original_inversion; in dvb_frontend_swzigzag_autotune() [all …]
|
/linux-4.1.27/scripts/mod/ |
D | sumversion.c | 67 #define ROUND1(a,b,c,d,k,s) (a = lshift(a + F(b,c,d) + k, s)) argument 68 #define ROUND2(a,b,c,d,k,s) (a = lshift(a + G(b,c,d) + k + (uint32_t)0x5A827999,s)) argument 69 #define ROUND3(a,b,c,d,k,s) (a = lshift(a + H(b,c,d) + k + (uint32_t)0x6ED9EBA1,s)) argument 90 uint32_t a, b, c, d; in md4_transform() local 94 c = hash[2]; in md4_transform() 97 ROUND1(a, b, c, d, in[0], 3); in md4_transform() 98 ROUND1(d, a, b, c, in[1], 7); in md4_transform() 99 ROUND1(c, d, a, b, in[2], 11); in md4_transform() 100 ROUND1(b, c, d, a, in[3], 19); in md4_transform() 101 ROUND1(a, b, c, d, in[4], 3); in md4_transform() [all …]
|
/linux-4.1.27/arch/m68k/include/asm/ |
D | atomic.h | 96 char c; in atomic_dec_and_test() local 97 __asm__ __volatile__("subql #1,%1; seq %0" : "=d" (c), "+m" (*v)); in atomic_dec_and_test() 98 return c != 0; in atomic_dec_and_test() 103 char c; in atomic_dec_and_test_lt() local 106 : "=d" (c), "=m" (*v) in atomic_dec_and_test_lt() 108 return c != 0; in atomic_dec_and_test_lt() 113 char c; in atomic_inc_and_test() local 114 __asm__ __volatile__("addql #1,%1; seq %0" : "=d" (c), "+m" (*v)); in atomic_inc_and_test() 115 return c != 0; in atomic_inc_and_test() 157 char c; in atomic_sub_and_test() local [all …]
|
/linux-4.1.27/drivers/w1/slaves/ |
D | w1_ds2423.c | 53 ssize_t c; in w1_slave_show() local 58 c = PAGE_SIZE; in w1_slave_show() 78 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show() 79 c, "%02x ", in w1_slave_show() 87 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show() 88 c, "crc=NO\n"); in w1_slave_show() 110 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show() 111 c, "crc=YES c=%d\n", result); in w1_slave_show() 113 c -= snprintf(out_buf + PAGE_SIZE - c, in w1_slave_show() 114 c, "crc=NO\n"); in w1_slave_show() [all …]
|
/linux-4.1.27/drivers/gpu/drm/atmel-hlcdc/ |
D | atmel_hlcdc_crtc.c | 57 static void atmel_hlcdc_crtc_mode_set_nofb(struct drm_crtc *c) in atmel_hlcdc_crtc_mode_set_nofb() argument 59 struct atmel_hlcdc_crtc *crtc = drm_crtc_to_atmel_hlcdc_crtc(c); in atmel_hlcdc_crtc_mode_set_nofb() 61 struct drm_display_mode *adj = &c->state->adjusted_mode; in atmel_hlcdc_crtc_mode_set_nofb() 131 static void atmel_hlcdc_crtc_disable(struct drm_crtc *c) in atmel_hlcdc_crtc_disable() argument 133 struct drm_device *dev = c->dev; in atmel_hlcdc_crtc_disable() 134 struct atmel_hlcdc_crtc *crtc = drm_crtc_to_atmel_hlcdc_crtc(c); in atmel_hlcdc_crtc_disable() 141 drm_crtc_vblank_off(c); in atmel_hlcdc_crtc_disable() 170 static void atmel_hlcdc_crtc_enable(struct drm_crtc *c) in atmel_hlcdc_crtc_enable() argument 172 struct drm_device *dev = c->dev; in atmel_hlcdc_crtc_enable() 173 struct atmel_hlcdc_crtc *crtc = drm_crtc_to_atmel_hlcdc_crtc(c); in atmel_hlcdc_crtc_enable() [all …]
|
/linux-4.1.27/include/asm-generic/ |
D | atomic.h | 45 int c, old; \ 47 c = v->counter; \ 48 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 49 c = old; \ 55 int c, old; \ 57 c = v->counter; \ 58 while ((old = cmpxchg(&v->counter, c, c c_op i)) != c) \ 59 c = old; \ 61 return c c_op i; \ 180 int c, old; in __atomic_add_unless() local [all …]
|
/linux-4.1.27/lib/raid6/test/ |
D | Makefile | 44 gcc -c -x c - >&/dev/null && \ 54 .c.o: 57 %.c: ../%.c 70 raid6test: test.c raid6.a 73 neon1.c: neon.uc ../unroll.awk 76 neon2.c: neon.uc ../unroll.awk 79 neon4.c: neon.uc ../unroll.awk 82 neon8.c: neon.uc ../unroll.awk 85 altivec1.c: altivec.uc ../unroll.awk 88 altivec2.c: altivec.uc ../unroll.awk [all …]
|
/linux-4.1.27/Documentation/ |
D | dontdiff | 32 *.mod.c 50 *.tab.c 57 *_vga16.c 81 aic7*reg_print.c* 85 altivec*.c 101 capflags.c 112 consolemap_deftbl.c* 116 defkeymap.c 127 fore200e_pca_fw.c* 136 *_gray256.c [all …]
|
/linux-4.1.27/tools/perf/ |
D | builtin-timechart.c | 217 struct per_pidcomm *c; in pid_set_comm() local 219 c = p->all; in pid_set_comm() 220 while (c) { in pid_set_comm() 221 if (c->comm && strcmp(c->comm, comm) == 0) { in pid_set_comm() 222 p->current = c; in pid_set_comm() 225 if (!c->comm) { in pid_set_comm() 226 c->comm = strdup(comm); in pid_set_comm() 227 p->current = c; in pid_set_comm() 230 c = c->next; in pid_set_comm() 232 c = zalloc(sizeof(*c)); in pid_set_comm() [all …]
|
/linux-4.1.27/security/tomoyo/ |
D | util.c | 203 char c = *(cp + 1); in tomoyo_parse_ulong() local 204 if (c == 'x' || c == 'X') { in tomoyo_parse_ulong() 207 } else if (c >= '0' && c <= '7') { in tomoyo_parse_ulong() 338 static inline bool tomoyo_alphabet_char(const char c) in tomoyo_alphabet_char() argument 340 return (c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z'); in tomoyo_alphabet_char() 364 static inline bool tomoyo_valid(const unsigned char c) in tomoyo_valid() argument 366 return c > ' ' && c < 127; in tomoyo_valid() 376 static inline bool tomoyo_invalid(const unsigned char c) in tomoyo_invalid() argument 378 return c && (c <= ' ' || c >= 127); in tomoyo_invalid() 447 unsigned char c; in tomoyo_correct_word2() local [all …]
|
/linux-4.1.27/arch/x86/lib/ |
D | cmdline.c | 12 static inline int myisspace(u8 c) in myisspace() argument 14 return c <= ' '; /* Close enough approximation */ in myisspace() 28 char c; in cmdline_find_option_bool() local 45 c = *(char *)cmdline++; in cmdline_find_option_bool() 50 if (!c) in cmdline_find_option_bool() 52 else if (myisspace(c)) in cmdline_find_option_bool() 62 if (!c || myisspace(c)) in cmdline_find_option_bool() 66 else if (!c) in cmdline_find_option_bool() 68 else if (c != *opptr++) in cmdline_find_option_bool() 75 if (!c) in cmdline_find_option_bool() [all …]
|
/linux-4.1.27/arch/s390/include/asm/ |
D | atomic.h | 75 int c; in atomic_read() local 79 : "=d" (c) : "Q" (v->counter)); in atomic_read() 80 return c; in atomic_read() 145 int c, old; in __atomic_add_unless() local 146 c = atomic_read(v); in __atomic_add_unless() 148 if (unlikely(c == u)) in __atomic_add_unless() 150 old = atomic_cmpxchg(v, c, c + a); in __atomic_add_unless() 151 if (likely(old == c)) in __atomic_add_unless() 153 c = old; in __atomic_add_unless() 155 return c; in __atomic_add_unless() [all …]
|
/linux-4.1.27/drivers/media/i2c/cx25840/ |
D | cx25840-ir.c | 113 struct i2c_client *c; member 344 static inline void control_tx_irq_watermark(struct i2c_client *c, in control_tx_irq_watermark() argument 347 cx25840_and_or4(c, CX25840_IR_CNTRL_REG, ~CNTRL_TIC, level); in control_tx_irq_watermark() 350 static inline void control_rx_irq_watermark(struct i2c_client *c, in control_rx_irq_watermark() argument 353 cx25840_and_or4(c, CX25840_IR_CNTRL_REG, ~CNTRL_RIC, level); in control_rx_irq_watermark() 356 static inline void control_tx_enable(struct i2c_client *c, bool enable) in control_tx_enable() argument 358 cx25840_and_or4(c, CX25840_IR_CNTRL_REG, ~(CNTRL_TXE | CNTRL_TFE), in control_tx_enable() 362 static inline void control_rx_enable(struct i2c_client *c, bool enable) in control_rx_enable() argument 364 cx25840_and_or4(c, CX25840_IR_CNTRL_REG, ~(CNTRL_RXE | CNTRL_RFE), in control_rx_enable() 368 static inline void control_tx_modulation_enable(struct i2c_client *c, in control_tx_modulation_enable() argument [all …]
|
/linux-4.1.27/drivers/scsi/ |
D | atp870u.c | 43 static void send_s870(struct atp_unit *dev,unsigned char c); 44 static void is885(struct atp_unit *dev, unsigned int wkport,unsigned char c); 51 unsigned char i, j, c, target_id, lun,cmdp; in atp870u_intr_handle() local 63 for (c = 0; c < 2; c++) { in atp870u_intr_handle() 64 tmport = dev->ioport[c] + 0x1f; in atp870u_intr_handle() 70 dev->in_int[c] = 0; in atp870u_intr_handle() 77 dev->in_int[c] = 1; in atp870u_intr_handle() 78 cmdp = inb(dev->ioport[c] + 0x10); in atp870u_intr_handle() 79 workport = dev->ioport[c]; in atp870u_intr_handle() 80 if (dev->working[c] != 0) { in atp870u_intr_handle() [all …]
|
/linux-4.1.27/drivers/media/usb/go7007/ |
D | go7007-fw.c | 429 CODE_GEN(c, buf + 6); in mpeg1_frame_header() 453 CODE_ADD(c, frame == PFRAME ? 0x2 : 0x3, 13); in mpeg1_frame_header() 454 CODE_ADD(c, 0xffff, 16); in mpeg1_frame_header() 455 CODE_ADD(c, go->format == V4L2_PIX_FMT_MPEG2 ? 0x7 : 0x4, 4); in mpeg1_frame_header() 457 CODE_ADD(c, go->format == V4L2_PIX_FMT_MPEG2 ? 0x7 : 0x4, 4); in mpeg1_frame_header() 459 CODE_ADD(c, 0, 4); /* Is this supposed to be here?? */ in mpeg1_frame_header() 460 CODE_ADD(c, 0, 3); /* What is this?? */ in mpeg1_frame_header() 462 j = 8 - (CODE_LENGTH(c) % 8); in mpeg1_frame_header() 464 CODE_ADD(c, 0, j); in mpeg1_frame_header() 467 CODE_ADD(c, 0x1, 24); in mpeg1_frame_header() [all …]
|
/linux-4.1.27/tools/usb/usbip/src/ |
D | Makefile.am | 7 usbip_SOURCES := usbip.h utils.h usbip.c utils.c usbip_network.c \ 8 usbip_attach.c usbip_detach.c usbip_list.c \ 9 usbip_bind.c usbip_unbind.c usbip_port.c 11 usbipd_SOURCES := usbip_network.h usbipd.c usbip_network.c
|
/linux-4.1.27/fs/hpfs/ |
D | name.c | 11 static inline int not_allowed_char(unsigned char c) in not_allowed_char() argument 13 return c<' ' || c=='"' || c=='*' || c=='/' || c==':' || c=='<' || in not_allowed_char() 14 c=='>' || c=='?' || c=='\\' || c=='|'; in not_allowed_char() 17 static inline int no_dos_char(unsigned char c) in no_dos_char() argument 19 return c=='+' || c==',' || c==';' || c=='=' || c=='[' || c==']'; in no_dos_char()
|
/linux-4.1.27/arch/m68k/lib/ |
D | memset.c | 10 void *memset(void *s, int c, size_t count) in memset() argument 17 c &= 0xff; in memset() 18 c |= c << 8; in memset() 19 c |= c << 16; in memset() 22 *cs++ = c; in memset() 28 *ss++ = c; in memset() 37 *ls++ = c; in memset() 59 : "d" (c), "0" (ls), "1" (temp)); in memset() 65 *ss++ = c; in memset() 70 *cs = c; in memset()
|
/linux-4.1.27/arch/arm/mach-omap2/ |
D | hsmmc.c | 235 static int __init omap_hsmmc_pdata_init(struct omap2_hsmmc_info *c, in omap_hsmmc_pdata_init() argument 247 if (c->name) in omap_hsmmc_pdata_init() 248 strncpy(hc_name, c->name, HSMMC_NAME_LEN); in omap_hsmmc_pdata_init() 251 c->mmc, 1); in omap_hsmmc_pdata_init() 253 mmc->caps = c->caps; in omap_hsmmc_pdata_init() 254 mmc->internal_clock = !c->ext_clock; in omap_hsmmc_pdata_init() 257 if (c->cover_only) { in omap_hsmmc_pdata_init() 260 mmc->gpio_cod = c->gpio_cd; in omap_hsmmc_pdata_init() 263 mmc->gpio_cd = c->gpio_cd; in omap_hsmmc_pdata_init() 266 mmc->gpio_wp = c->gpio_wp; in omap_hsmmc_pdata_init() [all …]
|
/linux-4.1.27/drivers/video/fbdev/ |
D | pmag-aa-fb.c | 107 struct aafb_cursor *c = &info->cursor; in aafb_set_cursor() local 110 bt431_position_cursor(info->bt431, c->x, c->y); in aafb_set_cursor() 119 struct aafb_cursor *c = &info->cursor; in aafbcon_cursor() local 124 if (c->x == x && c->y == y && (mode == CM_ERASE) == !c->enable) in aafbcon_cursor() 127 c->enable = 0; in aafbcon_cursor() 128 if (c->on) in aafbcon_cursor() 130 c->x = x - disp->var.xoffset; in aafbcon_cursor() 131 c->y = y - disp->var.yoffset; in aafbcon_cursor() 135 c->on = 0; in aafbcon_cursor() 139 if (c->on) in aafbcon_cursor() [all …]
|
/linux-4.1.27/drivers/isdn/gigaset/ |
D | asyncdata.c | 26 static inline int muststuff(unsigned char c) in muststuff() argument 28 if (c < PPP_TRANS) return 1; in muststuff() 29 if (c == PPP_FLAG) return 1; in muststuff() 30 if (c == PPP_ESCAPE) return 1; in muststuff() 55 unsigned char c; in cmd_loop() local 58 c = *src++; in cmd_loop() 61 switch (c) { in cmd_loop() 83 cs->respdata[0] = c; in cmd_loop() 107 cs->respdata[cbytes] = c; in cmd_loop() 147 unsigned char c; in hdlc_loop() local [all …]
|
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/ |
D | t4_hw.c | 1641 unsigned int i, c, left, val, offset = addr & 0xff; in t4_write_flash() local 1652 for (left = n; left; left -= c) { in t4_write_flash() 1653 c = min(left, 4U); in t4_write_flash() 1654 for (val = 0, i = 0; i < c; ++i) in t4_write_flash() 1657 ret = sf1_write(adapter, c, c != left, 1, val); in t4_write_flash() 1774 int k, int c) in should_install_fs_fw() 1783 if (k > c) { in should_install_fs_fw() 1793 FW_HDR_FW_VER_MAJOR_G(c), FW_HDR_FW_VER_MINOR_G(c), in should_install_fs_fw() 1794 FW_HDR_FW_VER_MICRO_G(c), FW_HDR_FW_VER_BUILD_G(c), reason, in should_install_fs_fw() 1857 uint32_t d, c, k; in t4_prep_fw() local [all …]
|
/linux-4.1.27/drivers/input/mouse/ |
D | synaptics.h | 46 #define SYN_CAP_EXTENDED(c) ((c) & (1 << 23)) argument 47 #define SYN_CAP_MIDDLE_BUTTON(c) ((c) & (1 << 18)) argument 48 #define SYN_CAP_PASS_THROUGH(c) ((c) & (1 << 7)) argument 49 #define SYN_CAP_SLEEP(c) ((c) & (1 << 4)) argument 50 #define SYN_CAP_FOUR_BUTTON(c) ((c) & (1 << 3)) argument 51 #define SYN_CAP_MULTIFINGER(c) ((c) & (1 << 1)) argument 52 #define SYN_CAP_PALMDETECT(c) ((c) & (1 << 0)) argument 53 #define SYN_CAP_SUBMODEL_ID(c) (((c) & 0x00ff00) >> 8) argument 54 #define SYN_EXT_CAP_REQUESTS(c) (((c) & 0x700000) >> 20) argument
|
/linux-4.1.27/drivers/media/platform/omap3isp/ |
D | isphist.c | 70 int c; in hist_setup_regs() local 89 for (c = 0; c < OMAP3ISP_HIST_MAX_REGIONS; c++) { in hist_setup_regs() 90 if (c < conf->num_regions) { in hist_setup_regs() 91 reg_hor[c] = (conf->region[c].h_start << in hist_setup_regs() 93 | (conf->region[c].h_end << in hist_setup_regs() 95 reg_ver[c] = (conf->region[c].v_start << in hist_setup_regs() 97 | (conf->region[c].v_end << in hist_setup_regs() 100 reg_hor[c] = 0; in hist_setup_regs() 101 reg_ver[c] = 0; in hist_setup_regs() 311 int c; in hist_validate_params() local [all …]
|
/linux-4.1.27/arch/powerpc/mm/ |
D | dma-noncoherent.c | 101 struct ppc_vm_region *c, *new; in ppc_vm_region_alloc() local 109 list_for_each_entry(c, &head->vm_list, vm_list) { in ppc_vm_region_alloc() 112 if ((addr + size) <= c->vm_start) in ppc_vm_region_alloc() 114 addr = c->vm_end; in ppc_vm_region_alloc() 123 list_add_tail(&new->vm_list, &c->vm_list); in ppc_vm_region_alloc() 139 struct ppc_vm_region *c; in ppc_vm_region_find() local 141 list_for_each_entry(c, &head->vm_list, vm_list) { in ppc_vm_region_find() 142 if (c->vm_start == addr) in ppc_vm_region_find() 145 c = NULL; in ppc_vm_region_find() 147 return c; in ppc_vm_region_find() [all …]
|
/linux-4.1.27/Documentation/zh_CN/ |
D | magic-number.txt | 66 HDLC_MAGIC 0x239e n_hdlc drivers/char/n_hdlc.c 67 APM_BIOS_MAGIC 0x4101 apm_user arch/x86/kernel/apm_32.c 69 DB_MAGIC 0x4442 fc_info drivers/net/iph5526_novram.c 70 DL_MAGIC 0x444d fc_info drivers/net/iph5526_novram.c 72 FF_MAGIC 0x4646 fc_info drivers/net/iph5526_novram.c 74 PTY_MAGIC 0x5001 drivers/char/pty.c 79 STRIP_MAGIC 0x5303 strip drivers/net/strip.c 84 MGSL_MAGIC 0x5401 mgsl_info drivers/char/synclink.c 86 MGSLPC_MAGIC 0x5402 mgslpc_info drivers/char/pcmcia/synclink_cs.c 89 FULL_DUPLEX_MAGIC 0x6969 drivers/net/ethernet/dec/tulip/de2104x.c [all …]
|
/linux-4.1.27/drivers/net/fddi/skfp/h/ |
D | cmtdef.h | 57 #define DB_PR(flag,a,b,c) { if (flag) printf(a,b,c) ; } argument 59 #define DB_PR(flag,a,b,c) argument 63 #define DB_ECM(a,b,c) DB_PR((smc->debug.d_smt&1),a,b,c) argument 64 #define DB_ECMN(n,a,b,c) DB_PR((smc->debug.d_ecm >=(n)),a,b,c) argument 65 #define DB_RMT(a,b,c) DB_PR((smc->debug.d_smt&2),a,b,c) argument 66 #define DB_RMTN(n,a,b,c) DB_PR((smc->debug.d_rmt >=(n)),a,b,c) argument 67 #define DB_CFM(a,b,c) DB_PR((smc->debug.d_smt&4),a,b,c) argument 68 #define DB_CFMN(n,a,b,c) DB_PR((smc->debug.d_cfm >=(n)),a,b,c) argument 69 #define DB_PCM(a,b,c) DB_PR((smc->debug.d_smt&8),a,b,c) argument 70 #define DB_PCMN(n,a,b,c) DB_PR((smc->debug.d_pcm >=(n)),a,b,c) argument [all …]
|
/linux-4.1.27/drivers/scsi/aic7xxx/aicasm/ |
D | Makefile | 3 .SUFFIXES= .l .y .c .h 5 CSRCS= aicasm.c aicasm_symbol.c 10 GENSRCS= $(YSRCS:.y=.c) $(LSRCS:.l=.c) 61 aicasm_gram.c: aicasm_gram.h 62 aicasm_gram.c aicasm_gram.h: aicasm_gram.y 64 mv $(<:.y=).tab.c $(<:.y=.c) 70 aicasm_macro_gram.c: aicasm_macro_gram.h 71 aicasm_macro_gram.c aicasm_macro_gram.h: aicasm_macro_gram.y 73 mv $(<:.y=).tab.c $(<:.y=.c) 76 aicasm_scan.c: aicasm_scan.l [all …]
|
/linux-4.1.27/net/bridge/netfilter/ |
D | ebt_stp.c | 46 const struct ebt_stp_config_info *c; in ebt_filter_config() local 51 c = &info->config; in ebt_filter_config() 53 FWINV(c->flags != stpc->flags, EBT_STP_FLAGS)) in ebt_filter_config() 57 if (FWINV(v16 < c->root_priol || in ebt_filter_config() 58 v16 > c->root_priou, EBT_STP_ROOTPRIO)) in ebt_filter_config() 64 verdict |= (stpc->root[2+i] ^ c->root_addr[i]) & in ebt_filter_config() 65 c->root_addrmsk[i]; in ebt_filter_config() 71 if (FWINV(v32 < c->root_costl || in ebt_filter_config() 72 v32 > c->root_costu, EBT_STP_ROOTCOST)) in ebt_filter_config() 77 if (FWINV(v16 < c->sender_priol || in ebt_filter_config() [all …]
|
/linux-4.1.27/arch/powerpc/crypto/ |
D | aes-tab-4k.S | 30 #define R(a, b, c, d) \ argument 31 0x##a##b##c##d, 0x##d##a##b##c, 0x##c##d##a##b, 0x##b##c##d##a 38 .long R(c6, 63, 63, a5), R(f8, 7c, 7c, 84) 52 .long R(23, 9c, 9c, bf), R(53, a4, a4, f7) 54 .long R(75, b7, b7, c2), R(e1, fd, fd, 1c) 55 .long R(3d, 93, 93, ae), R(4c, 26, 26, 6a) 56 .long R(6c, 36, 36, 5a), R(7e, 3f, 3f, 41) 58 .long R(68, 34, 34, 5c), R(51, a5, a5, f4) 62 .long R(08, 04, 04, 0c), R(95, c7, c7, 52) 71 .long R(58, 2c, 2c, 74), R(34, 1a, 1a, 2e) [all …]
|
/linux-4.1.27/sound/aoa/soundbus/i2sbus/ |
D | control.c | 22 int i2sbus_control_init(struct macio_dev* dev, struct i2sbus_control **c) in i2sbus_control_init() argument 24 *c = kzalloc(sizeof(struct i2sbus_control), GFP_KERNEL); in i2sbus_control_init() 25 if (!*c) in i2sbus_control_init() 28 INIT_LIST_HEAD(&(*c)->list); in i2sbus_control_init() 30 (*c)->macio = dev->bus->chip; in i2sbus_control_init() 34 void i2sbus_control_destroy(struct i2sbus_control *c) in i2sbus_control_destroy() argument 36 kfree(c); in i2sbus_control_destroy() 40 int i2sbus_control_add_dev(struct i2sbus_control *c, in i2sbus_control_add_dev() argument 69 list_add(&i2sdev->item, &c->list); in i2sbus_control_add_dev() 74 void i2sbus_control_remove_dev(struct i2sbus_control *c, in i2sbus_control_remove_dev() argument [all …]
|
/linux-4.1.27/drivers/tty/ |
D | n_tty.c | 305 static inline void put_tty_queue(unsigned char c, struct n_tty_data *ldata) in put_tty_queue() argument 307 *read_buf_addr(ldata, ldata->read_head) = c; in put_tty_queue() 403 static inline int is_utf8_continuation(unsigned char c) in is_utf8_continuation() argument 405 return (c & 0xc0) == 0x80; in is_utf8_continuation() 416 static inline int is_continuation(unsigned char c, struct tty_struct *tty) in is_continuation() argument 418 return I_IUTF8(tty) && is_utf8_continuation(c); in is_continuation() 443 static int do_output_char(unsigned char c, struct tty_struct *tty, int space) in do_output_char() argument 451 switch (c) { in do_output_char() 468 c = '\n'; in do_output_char() 491 if (!iscntrl(c)) { in do_output_char() [all …]
|
/linux-4.1.27/drivers/clocksource/ |
D | mmio.c | 18 static inline struct clocksource_mmio *to_mmio_clksrc(struct clocksource *c) in to_mmio_clksrc() argument 20 return container_of(c, struct clocksource_mmio, clksrc); in to_mmio_clksrc() 23 cycle_t clocksource_mmio_readl_up(struct clocksource *c) in clocksource_mmio_readl_up() argument 25 return (cycle_t)readl_relaxed(to_mmio_clksrc(c)->reg); in clocksource_mmio_readl_up() 28 cycle_t clocksource_mmio_readl_down(struct clocksource *c) in clocksource_mmio_readl_down() argument 30 return ~(cycle_t)readl_relaxed(to_mmio_clksrc(c)->reg) & c->mask; in clocksource_mmio_readl_down() 33 cycle_t clocksource_mmio_readw_up(struct clocksource *c) in clocksource_mmio_readw_up() argument 35 return (cycle_t)readw_relaxed(to_mmio_clksrc(c)->reg); in clocksource_mmio_readw_up() 38 cycle_t clocksource_mmio_readw_down(struct clocksource *c) in clocksource_mmio_readw_down() argument 40 return ~(cycle_t)readw_relaxed(to_mmio_clksrc(c)->reg) & c->mask; in clocksource_mmio_readw_down()
|
/linux-4.1.27/include/linux/uwb/ |
D | whci.h | 38 # define UWBCAPINFO_TO_N_CAPS(c) (((c) >> 0) & 0xFull) argument 40 # define UWBCAPDATA_TO_VERSION(c) (((c) >> 32) & 0xFFFFull) argument 41 # define UWBCAPDATA_TO_OFFSET(c) (((c) >> 18) & 0x3FFFull) argument 42 # define UWBCAPDATA_TO_BAR(c) (((c) >> 16) & 0x3ull) argument 43 # define UWBCAPDATA_TO_SIZE(c) ((((c) >> 8) & 0xFFull) * sizeof(u32)) argument 44 # define UWBCAPDATA_TO_CAP_ID(c) (((c) >> 0) & 0xFFull) argument
|
/linux-4.1.27/drivers/media/usb/pwc/ |
D | pwc-dec23.c | 365 const int *c = src; in copy_image_block_Y() local 368 *d++ = cm[c[0] >> scalebits]; in copy_image_block_Y() 369 *d++ = cm[c[1] >> scalebits]; in copy_image_block_Y() 370 *d++ = cm[c[2] >> scalebits]; in copy_image_block_Y() 371 *d++ = cm[c[3] >> scalebits]; in copy_image_block_Y() 374 *d++ = cm[c[4] >> scalebits]; in copy_image_block_Y() 375 *d++ = cm[c[5] >> scalebits]; in copy_image_block_Y() 376 *d++ = cm[c[6] >> scalebits]; in copy_image_block_Y() 377 *d++ = cm[c[7] >> scalebits]; in copy_image_block_Y() 380 *d++ = cm[c[8] >> scalebits]; in copy_image_block_Y() [all …]
|
/linux-4.1.27/arch/m32r/boot/compressed/ |
D | m32r_sio.c | 11 static void putc(char c); 15 char c; in puts() local 16 while ((c = *s++)) putc(c); in puts() 44 static void putc(char c) in putc() argument 48 if (c == '\n') { in putc() 53 *BOOT_SIO0TXB = c; in putc() 64 static void putc(char c) in putc() argument 68 if (c == '\n') { in putc() 73 *SIO0TXB = c; in putc()
|
/linux-4.1.27/scripts/kconfig/ |
D | POTFILES.in | 1 scripts/kconfig/lxdialog/checklist.c 2 scripts/kconfig/lxdialog/inputbox.c 3 scripts/kconfig/lxdialog/menubox.c 4 scripts/kconfig/lxdialog/textbox.c 5 scripts/kconfig/lxdialog/util.c 6 scripts/kconfig/lxdialog/yesno.c 7 scripts/kconfig/mconf.c 8 scripts/kconfig/conf.c 9 scripts/kconfig/confdata.c 10 scripts/kconfig/gconf.c
|
/linux-4.1.27/drivers/usb/gadget/legacy/ |
D | g_ffs.c | 38 static int eth_bind_config(struct usb_configuration *c); 45 static int bind_rndis_config(struct usb_configuration *c); 133 struct usb_configuration c; member 134 int (*eth)(struct usb_configuration *c); 163 static int gfs_do_config(struct usb_configuration *c); 416 struct gfs_configuration *c = gfs_configurations + i; in gfs_bind() local 419 c->c.label = gfs_strings[sid].s; in gfs_bind() 420 c->c.iConfiguration = gfs_strings[sid].id; in gfs_bind() 421 c->c.bConfigurationValue = 1 + i; in gfs_bind() 422 c->c.bmAttributes = USB_CONFIG_ATT_SELFPOWER; in gfs_bind() [all …]
|
/linux-4.1.27/arch/score/lib/ |
D | checksum.S | 29 cmp.c reg, sum; \ 61 cmpi.c r25, 0x1 63 andri.c r25,r4 , 0x1 /*Is src 2 bytes aligned?*/ 67 cmpi.c r5, 0x0 73 subi.c r5, 0x1 77 andri.c r8, r5, 0x4 /*Len >= 4?*/ 81 andri.c r8, src, 0x3 /*src is 4bytes aligned, so use LW!!*/ 97 andri.c r8, r5, 0x2 104 andri.c r8, r5, 0x1 114 cmp.c r26, sum [all …]
|