Home
last modified time | relevance | path

Searched refs:i (Results 1 – 25 of 585) sorted by relevance

12345678910>>...24

/fs/hpfs/
Dinode.c13 void hpfs_init_inode(struct inode *i) in hpfs_init_inode() argument
15 struct super_block *sb = i->i_sb; in hpfs_init_inode()
16 struct hpfs_inode_info *hpfs_inode = hpfs_i(i); in hpfs_init_inode()
18 i->i_uid = hpfs_sb(sb)->sb_uid; in hpfs_init_inode()
19 i->i_gid = hpfs_sb(sb)->sb_gid; in hpfs_init_inode()
20 i->i_mode = hpfs_sb(sb)->sb_mode; in hpfs_init_inode()
21 i->i_size = -1; in hpfs_init_inode()
22 i->i_blocks = -1; in hpfs_init_inode()
38 i->i_ctime.tv_sec = i->i_ctime.tv_nsec = 0; in hpfs_init_inode()
39 i->i_mtime.tv_sec = i->i_mtime.tv_nsec = 0; in hpfs_init_inode()
[all …]
Dname.c43 int i; in hpfs_chk_name() local
47 for (i = 0; i < *len; i++) if (not_allowed_char(name[i])) return -EINVAL; in hpfs_chk_name()
57 int i; in hpfs_translate_name() local
60 for (i = 0; i < len; i++) in hpfs_translate_name()
61 pr_cont("%c", from[i]); in hpfs_translate_name()
70 for (i = 0; i < len; i++) to[i] = locase(hpfs_sb(s)->sb_cp_table,from[i]); in hpfs_translate_name()
79 unsigned i; in hpfs_compare_names() local
81 for (i = 0; i < l; i++) { in hpfs_compare_names()
82 unsigned char c1 = upcase(hpfs_sb(s)->sb_cp_table,n1[i]); in hpfs_compare_names()
83 unsigned char c2 = upcase(hpfs_sb(s)->sb_cp_table,n2[i]); in hpfs_compare_names()
[all …]
Ddnode.c15 int i = 1; in get_pos() local
17 if (de == fde) return ((loff_t) le32_to_cpu(d->self) << 4) | (loff_t)i; in get_pos()
18 i++; in get_pos()
27 int i = 0; in hpfs_add_pos() local
31 for (; hpfs_inode->i_rddir_off[i]; i++) in hpfs_add_pos()
32 if (hpfs_inode->i_rddir_off[i] == pos) return; in hpfs_add_pos()
33 if (!(i&0x0f)) { in hpfs_add_pos()
34 if (!(ppos = kmalloc((i+0x11) * sizeof(loff_t*), GFP_NOFS))) { in hpfs_add_pos()
39 memcpy(ppos, hpfs_inode->i_rddir_off, i * sizeof(loff_t)); in hpfs_add_pos()
44 hpfs_inode->i_rddir_off[i] = pos; in hpfs_add_pos()
[all …]
/fs/ufs/
Dutil.c22 unsigned i, j ; in _ubh_bread_() local
34 for (i = 0; i < count; i++) in _ubh_bread_()
35 if (!(ubh->bh[i] = sb_bread(sb, fragment + i))) in _ubh_bread_()
37 for (; i < UFS_MAXFRAG; i++) in _ubh_bread_()
38 ubh->bh[i] = NULL; in _ubh_bread_()
41 for (j = 0; j < i; j++) in _ubh_bread_()
50 unsigned i, j; in ubh_bread_uspi() local
59 for (i = 0; i < count; i++) in ubh_bread_uspi()
60 if (!(USPI_UBH(uspi)->bh[i] = sb_bread(sb, fragment + i))) in ubh_bread_uspi()
62 for (; i < UFS_MAXFRAG; i++) in ubh_bread_uspi()
[all …]
/fs/xfs/
Dxfs_error.c39 int i; in xfs_error_test() local
47 for (i = 0; i < XFS_NUM_INJECT_ERROR; i++) { in xfs_error_test()
48 if (xfs_etest[i] == error_tag && xfs_etest_fsid[i] == fsid) { in xfs_error_test()
51 expression, file, line, xfs_etest_fsname[i]); in xfs_error_test()
62 int i; in xfs_errortag_add() local
68 for (i = 0; i < XFS_NUM_INJECT_ERROR; i++) { in xfs_errortag_add()
69 if (xfs_etest_fsid[i] == fsid && xfs_etest[i] == error_tag) { in xfs_errortag_add()
75 for (i = 0; i < XFS_NUM_INJECT_ERROR; i++) { in xfs_errortag_add()
76 if (xfs_etest[i] == 0) { in xfs_errortag_add()
79 xfs_etest[i] = error_tag; in xfs_errortag_add()
[all …]
/fs/jfs/
Djfs_unicode.c35 int i; in jfs_strfromUCS_le() local
41 for (i = 0; (i < len) && from[i]; i++) { in jfs_strfromUCS_le()
44 codepage->uni2char(le16_to_cpu(from[i]), in jfs_strfromUCS_le()
53 for (i = 0; (i < len) && from[i]; i++) { in jfs_strfromUCS_le()
54 if (unlikely(le16_to_cpu(from[i]) & 0xff00)) { in jfs_strfromUCS_le()
55 to[i] = '?'; in jfs_strfromUCS_le()
61 le16_to_cpu(from[i])); in jfs_strfromUCS_le()
68 to[i] = (char) (le16_to_cpu(from[i])); in jfs_strfromUCS_le()
70 outlen = i; in jfs_strfromUCS_le()
86 int i; in jfs_strtoUCS() local
[all …]
/fs/squashfs/
Dpage_actor.c46 int i, avail, pos = 0; in squashfs_actor_to_buf() local
48 for (i = 0; i < actor->pages && pos < length; ++i) { in squashfs_actor_to_buf()
50 if (actor->page[i]) { in squashfs_actor_to_buf()
51 pageaddr = kmap_atomic(actor->page[i]); in squashfs_actor_to_buf()
63 int i, avail, pos = 0; in squashfs_buf_to_actor() local
65 for (i = 0; i < actor->pages && pos < length; ++i) { in squashfs_buf_to_actor()
67 if (actor->page[i]) { in squashfs_buf_to_actor()
68 pageaddr = kmap_atomic(actor->page[i]); in squashfs_buf_to_actor()
80 int bytes = 0, pgoff = 0, b = 0, p = 0, i, avail; in squashfs_bh_to_actor() local
101 for (i = 0; i < PAGE_SIZE / blksz; ++i) { in squashfs_bh_to_actor()
[all …]
/fs/jffs2/
Dcompr_rubin.c146 int i; in end_rubin() local
148 for (i = 0; i < RUBIN_REG_SIZE; i++) { in end_rubin()
237 int i, ret; in out_byte() local
241 for (i=0; i<8; i++) { in out_byte()
242 ret = encode(rs, rs->bit_divider-rs->bits[i], in out_byte()
243 rs->bits[i], byte & 1); in out_byte()
256 int i, result = 0, bit_divider = rs->bit_divider; in in_byte() local
258 for (i = 0; i < 8; i++) in in_byte()
259 result |= decode(rs, bit_divider - rs->bits[i], in in_byte()
260 rs->bits[i]) << i; in in_byte()
[all …]
/fs/reiserfs/
Dhashes.c51 int i; in keyed_hash() local
86 for (i = 12; i < len; i++) { in keyed_hash()
88 d |= msg[i]; in keyed_hash()
97 for (i = 8; i < len; i++) { in keyed_hash()
99 c |= msg[i]; in keyed_hash()
106 for (i = 4; i < len; i++) { in keyed_hash()
108 b |= msg[i]; in keyed_hash()
112 for (i = 0; i < len; i++) { in keyed_hash()
114 a |= msg[i]; in keyed_hash()
132 int i; in yura_hash() local
[all …]
Dobjectid.c103 int i = 0; in reiserfs_release_objectid() local
119 while (i < sb_oid_cursize(rs)) { in reiserfs_release_objectid()
120 if (objectid_to_release == le32_to_cpu(map[i])) { in reiserfs_release_objectid()
122 le32_add_cpu(&map[i], 1); in reiserfs_release_objectid()
128 if (map[i] == map[i + 1]) { in reiserfs_release_objectid()
130 memmove(map + i, map + i + 2, in reiserfs_release_objectid()
131 (sb_oid_cursize(rs) - i - in reiserfs_release_objectid()
143 if (objectid_to_release > le32_to_cpu(map[i]) && in reiserfs_release_objectid()
144 objectid_to_release < le32_to_cpu(map[i + 1])) { in reiserfs_release_objectid()
146 if (objectid_to_release + 1 == le32_to_cpu(map[i + 1])) { in reiserfs_release_objectid()
[all …]
Dresize.c35 int i; in reiserfs_resize() local
103 for (i = 0; i < JOURNAL_NUM_BITMAPS; i++) { in reiserfs_resize()
105 jb = SB_JOURNAL(s)->j_list_bitmap + i; in reiserfs_resize()
106 memcpy(jbitmap[i].bitmaps, jb->bitmaps, copy_size); in reiserfs_resize()
114 jb->bitmaps = jbitmap[i].bitmaps; in reiserfs_resize()
132 for (i = 0; i < bmap_nr; i++) in reiserfs_resize()
133 bitmap[i] = old_bitmap[i]; in reiserfs_resize()
141 for (i = bmap_nr; i < bmap_nr_new; i++) { in reiserfs_resize()
148 bh = sb_bread(s, i * s->s_blocksize * 8); in reiserfs_resize()
156 reiserfs_cache_bitmap_metadata(s, bh, bitmap + i); in reiserfs_resize()
[all …]
/fs/dlm/
Dast.c24 int i; in dlm_dump_lkb_callbacks() local
42 for (i = 0; i < DLM_CALLBACKS_SIZE; i++) { in dlm_dump_lkb_callbacks()
45 (unsigned long long)lkb->lkb_callbacks[i].seq, in dlm_dump_lkb_callbacks()
46 lkb->lkb_callbacks[i].flags, in dlm_dump_lkb_callbacks()
47 lkb->lkb_callbacks[i].mode, in dlm_dump_lkb_callbacks()
48 lkb->lkb_callbacks[i].sb_status, in dlm_dump_lkb_callbacks()
49 lkb->lkb_callbacks[i].sb_flags); in dlm_dump_lkb_callbacks()
59 int i, rv; in dlm_add_lkb_callback() local
61 for (i = 0; i < DLM_CALLBACKS_SIZE; i++) { in dlm_add_lkb_callback()
62 if (lkb->lkb_callbacks[i].seq) in dlm_add_lkb_callback()
[all …]
/fs/ocfs2/
Dblockcheck.c64 static unsigned int calc_code_bit(unsigned int i, unsigned int *p_cache) in calc_code_bit() argument
72 b = i + 1; in calc_code_bit()
109 unsigned int i, b, p = 0; in ocfs2_hamming_encode() local
122 for (i = 0; (i = ocfs2_find_next_bit(data, d, i)) < d; i++) in ocfs2_hamming_encode()
128 b = calc_code_bit(nr + i, &p); in ocfs2_hamming_encode()
169 unsigned int i, b; in ocfs2_hamming_fix() local
197 for (i = 0; i < d; i++, b++) in ocfs2_hamming_fix()
213 if (ocfs2_test_bit(i, data)) in ocfs2_hamming_fix()
214 ocfs2_clear_bit(i, data); in ocfs2_hamming_fix()
216 ocfs2_set_bit(i, data); in ocfs2_hamming_fix()
[all …]
Dslot_map.c84 int b, i, slotno; in ocfs2_update_slot_info_extended() local
90 for (i = 0; in ocfs2_update_slot_info_extended()
91 (i < si->si_slots_per_block) && in ocfs2_update_slot_info_extended()
93 i++, slotno++) { in ocfs2_update_slot_info_extended()
94 if (se->se_slots[i].es_valid) in ocfs2_update_slot_info_extended()
96 le32_to_cpu(se->se_slots[i].es_node_num)); in ocfs2_update_slot_info_extended()
109 int i; in ocfs2_update_slot_info_old() local
114 for (i = 0; i < si->si_num_slots; i++) { in ocfs2_update_slot_info_old()
115 if (le16_to_cpu(sm->sm_slots[i]) == (u16)OCFS2_INVALID_SLOT) in ocfs2_update_slot_info_old()
116 ocfs2_invalidate_slot(si, i); in ocfs2_update_slot_info_old()
[all …]
Dbuffer_head_io.c105 unsigned int i; in ocfs2_read_blocks_sync() local
113 for (i = 0 ; i < nr ; i++) { in ocfs2_read_blocks_sync()
114 if (bhs[i] == NULL) { in ocfs2_read_blocks_sync()
115 bhs[i] = sb_getblk(osb->sb, block++); in ocfs2_read_blocks_sync()
116 if (bhs[i] == NULL) { in ocfs2_read_blocks_sync()
122 bh = bhs[i]; in ocfs2_read_blocks_sync()
155 for (i = nr; i > 0; i--) { in ocfs2_read_blocks_sync()
156 bh = bhs[i - 1]; in ocfs2_read_blocks_sync()
168 bhs[i - 1] = NULL; in ocfs2_read_blocks_sync()
182 int i, ignore_cache = 0; in ocfs2_read_blocks() local
[all …]
/fs/ubifs/
Dlpt_commit.c46 int i, cont = 0; in first_dirty_cnode() local
48 for (i = 0; i < UBIFS_LPT_FANOUT; i++) { in first_dirty_cnode()
51 cnode = nnode->nbranch[i].cnode; in first_dirty_cnode()
75 int i; in next_dirty_cnode() local
81 for (i = cnode->iip + 1; i < UBIFS_LPT_FANOUT; i++) { in next_dirty_cnode()
82 cnode = nnode->nbranch[i].cnode; in next_dirty_cnode()
162 int i, n; in alloc_lpt_leb() local
165 for (i = n; i < c->lpt_lebs; i++) { in alloc_lpt_leb()
166 if (c->ltab[i].tgc || c->ltab[i].cmt) in alloc_lpt_leb()
168 if (c->ltab[i].free == c->leb_size) { in alloc_lpt_leb()
[all …]
Dlpt.c60 int i, n, bits, per_leb_wastage, max_pnode_cnt; in do_calc_lpt_geom() local
77 for (i = 1; i < c->lpt_hght; i++) { in do_calc_lpt_geom()
177 int i, lebs_needed; in calc_dflt_lpt_geom() local
203 for (i = 0; i < 64 ; i++) { in calc_dflt_lpt_geom()
354 int i, pos = 0; in ubifs_pack_pnode() local
360 for (i = 0; i < UBIFS_LPT_FANOUT; i++) { in ubifs_pack_pnode()
361 pack_bits(&addr, &pos, pnode->lprops[i].free >> 3, in ubifs_pack_pnode()
363 pack_bits(&addr, &pos, pnode->lprops[i].dirty >> 3, in ubifs_pack_pnode()
365 if (pnode->lprops[i].flags & LPROPS_INDEX) in ubifs_pack_pnode()
387 int i, pos = 0; in ubifs_pack_nnode() local
[all …]
/fs/nfsd/
Dnfs4acl.c386 int sorted = 0, i; in sort_pacl_range() local
393 for (i = start; i < end; i++) { in sort_pacl_range()
394 if (pace_gt(&pacl->a_entries[i], in sort_pacl_range()
395 &pacl->a_entries[i+1])) { in sort_pacl_range()
397 tmp = pacl->a_entries[i]; in sort_pacl_range()
398 pacl->a_entries[i] = pacl->a_entries[i+1]; in sort_pacl_range()
399 pacl->a_entries[i+1] = tmp; in sort_pacl_range()
410 int i, j; in sort_pacl() local
416 i = 1; in sort_pacl()
417 while (pacl->a_entries[i].e_tag == ACL_USER) in sort_pacl()
[all …]
/fs/nfs/blocklayout/
Ddev.c18 int i; in bl_free_device() local
20 for (i = 0; i < dev->nr_children; i++) in bl_free_device()
21 bl_free_device(&dev->children[i]); in bl_free_device()
43 int i; in nfs4_block_decode_volume() local
62 for (i = 0; i < b->simple.nr_sigs; i++) { in nfs4_block_decode_volume()
66 p = xdr_decode_hyper(p, &b->simple.sigs[i].offset); in nfs4_block_decode_volume()
67 b->simple.sigs[i].sig_len = be32_to_cpup(p++); in nfs4_block_decode_volume()
69 p = xdr_inline_decode(xdr, b->simple.sigs[i].sig_len); in nfs4_block_decode_volume()
72 memcpy(&b->simple.sigs[i].sig, p, in nfs4_block_decode_volume()
73 b->simple.sigs[i].sig_len); in nfs4_block_decode_volume()
[all …]
/fs/proc/
Dstat.c82 int i, j; in show_stat() local
97 for_each_possible_cpu(i) { in show_stat()
98 user += kcpustat_cpu(i).cpustat[CPUTIME_USER]; in show_stat()
99 nice += kcpustat_cpu(i).cpustat[CPUTIME_NICE]; in show_stat()
100 system += kcpustat_cpu(i).cpustat[CPUTIME_SYSTEM]; in show_stat()
101 idle += get_idle_time(i); in show_stat()
102 iowait += get_iowait_time(i); in show_stat()
103 irq += kcpustat_cpu(i).cpustat[CPUTIME_IRQ]; in show_stat()
104 softirq += kcpustat_cpu(i).cpustat[CPUTIME_SOFTIRQ]; in show_stat()
105 steal += kcpustat_cpu(i).cpustat[CPUTIME_STEAL]; in show_stat()
[all …]
/fs/btrfs/
Dprint-tree.c26 int i; in print_chunk() local
31 for (i = 0 ; i < num_stripes ; i++) { in print_chunk()
32 printk(KERN_INFO "\t\t\tstripe %d devid %llu offset %llu\n", i, in print_chunk()
33 btrfs_stripe_devid_nr(eb, chunk, i), in print_chunk()
34 btrfs_stripe_offset_nr(eb, chunk, i)); in print_chunk()
174 int i; in btrfs_print_leaf() local
195 for (i = 0 ; i < nr ; i++) { in btrfs_print_leaf()
196 item = btrfs_item_nr(i); in btrfs_print_leaf()
197 btrfs_item_key_to_cpu(l, &key, i); in btrfs_print_leaf()
201 i, key.objectid, type, key.offset, in btrfs_print_leaf()
[all …]
/fs/ntfs/
Dunistr.c152 size_t i; in ntfs_ucsncmp() local
154 for (i = 0; i < n; ++i) { in ntfs_ucsncmp()
155 c1 = le16_to_cpu(s1[i]); in ntfs_ucsncmp()
156 c2 = le16_to_cpu(s2[i]); in ntfs_ucsncmp()
188 size_t i; in ntfs_ucsncasecmp() local
191 for (i = 0; i < n; ++i) { in ntfs_ucsncasecmp()
192 if ((c1 = le16_to_cpu(s1[i])) < upcase_size) in ntfs_ucsncasecmp()
194 if ((c2 = le16_to_cpu(s2[i])) < upcase_size) in ntfs_ucsncasecmp()
209 u32 i; in ntfs_upcase_name() local
212 for (i = 0; i < name_len; i++) in ntfs_upcase_name()
[all …]
/fs/ncpfs/
Dncpsign_kernel.c55 int i; in nwsign() local
62 for (i=0;i<16;i++) in nwsign()
63 data2[i]=GET_LE32(r_data2+(i<<2)); in nwsign()
69 for (i=0;i<16;i+=4) { in nwsign()
70 w0=rol32(w0 + ((w1 & w2) | ((~w1) & w3)) + data2[i+0],3); in nwsign()
71 w3=rol32(w3 + ((w0 & w1) | ((~w0) & w2)) + data2[i+1],7); in nwsign()
72 w2=rol32(w2 + ((w3 & w0) | ((~w3) & w1)) + data2[i+2],11); in nwsign()
73 w1=rol32(w1 + ((w2 & w3) | ((~w2) & w0)) + data2[i+3],19); in nwsign()
75 for (i=0;i<4;i++) { in nwsign()
76 w0=rol32(w0 + (((w2 | w3) & w1) | (w2 & w3)) + 0x5a827999 + data2[i+0],3); in nwsign()
[all …]
/fs/xfs/libxfs/
Dxfs_rtbitmap.c100 xfs_rtblock_t i; /* current bit number rel. to start */ in xfs_rtfind_back() local
149 i = bit - XFS_RTHIBIT(wdiff); in xfs_rtfind_back()
150 *rtblock = start - i + 1; in xfs_rtfind_back()
153 i = bit - firstbit + 1; in xfs_rtfind_back()
158 if (--word == -1 && i < len) { in xfs_rtfind_back()
180 i = 0; in xfs_rtfind_back()
186 while (len - i >= XFS_NBWORD) { in xfs_rtfind_back()
195 i += XFS_NBWORD - 1 - XFS_RTHIBIT(wdiff); in xfs_rtfind_back()
196 *rtblock = start - i + 1; in xfs_rtfind_back()
199 i += XFS_NBWORD; in xfs_rtfind_back()
[all …]
/fs/cifs/
Dcifs_unicode.c44 int i; in cifs_utf16_bytes() local
50 for (i = 0; i < maxwords; i++) { in cifs_utf16_bytes()
51 ftmp = get_unaligned_le16(&from[i]); in cifs_utf16_bytes()
213 int i, charlen, safelen; in cifs_from_utf16() local
228 for (i = 0; i < fromwords; i++) { in cifs_from_utf16()
229 ftmp = get_unaligned_le16(&from[i]); in cifs_from_utf16()
249 for (i = 0; i < nullsize; i++) in cifs_from_utf16()
266 int i; in cifs_strtoUTF16() local
276 i = utf8s_to_utf16s(from, len, UTF16_LITTLE_ENDIAN, in cifs_strtoUTF16()
280 if (i >= 0) in cifs_strtoUTF16()
[all …]

12345678910>>...24