Home
last modified time | relevance | path

Searched refs:k (Results 1 – 200 of 1051) sorted by relevance

123456

/linux-4.1.27/drivers/md/bcache/
Dextents.c32 i->k = bkey_next(i->k); in sort_key_next()
34 if (i->k == i->end) in sort_key_next()
41 int64_t c = bkey_cmp(l.k, r.k); in bch_key_sort_cmp()
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
50 for (i = 0; i < KEY_PTRS(k); i++) in __ptr_invalid()
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()
[all …]
Dbset.c21 struct bkey *k, *next; in bch_dump_bset() local
23 for (k = i->start; k < bset_bkey_last(i); k = next) { in bch_dump_bset()
24 next = bkey_next(k); in bch_dump_bset()
27 (unsigned) ((u64 *) k - i->d), i->keys); in bch_dump_bset()
30 b->ops->key_dump(b, k); in bch_dump_bset()
32 printk("%llu:%llu\n", KEY_INODE(k), KEY_OFFSET(k)); in bch_dump_bset()
35 bkey_cmp(k, b->ops->is_extents ? in bch_dump_bset()
56 struct bkey *k; in __bch_count_data() local
59 for_each_key(b, k, &iter) in __bch_count_data()
60 ret += KEY_SIZE(k); in __bch_count_data()
[all …]
Dbset.h236 static inline bool bkey_written(struct btree_keys *b, struct bkey *k) in bkey_written() argument
238 return !b->last_set_unwritten || k < b->set[b->nsets].data->start; in bkey_written()
251 #define __set_bytes(i, k) (sizeof(*(i)) + (k) * sizeof(uint64_t)) argument
254 #define __set_blocks(i, k, block_bytes) \ argument
255 DIV_ROUND_UP(__set_bytes(i, k), block_bytes)
311 struct bkey *k, *end; member
338 #define for_each_key_filter(b, k, iter, filter) \ argument
340 ((k) = bch_btree_iter_next_filter((iter), (b), filter));)
342 #define for_each_key(b, k, iter) \ argument
344 ((k) = bch_btree_iter_next(iter));)
[all …]
Dbtree.c93 #define PTR_HASH(c, k) \ argument
94 (((k)->ptr[0] >> c->bucket_bits) | PTR_GEN(k, 0))
178 void bkey_put(struct cache_set *c, struct bkey *k) in bkey_put() argument
182 for (i = 0; i < KEY_PTRS(k); i++) in bkey_put()
183 if (ptr_available(c, k, i)) in bkey_put()
184 atomic_dec_bug(&PTR_BUCKET(c, k, i)->pin); in bkey_put()
390 BKEY_PADDED(key) k; in do_btree_node_write()
419 bkey_copy(&k.key, &b->key); in do_btree_node_write()
420 SET_PTR_OFFSET(&k.key, 0, PTR_OFFSET(&k.key, 0) + in do_btree_node_write()
432 bch_submit_bbio(b->bio, b->c, &k.key, 0); in do_btree_node_write()
[all …]
Dalloc.c453 void bch_bucket_free(struct cache_set *c, struct bkey *k) in bch_bucket_free() argument
457 for (i = 0; i < KEY_PTRS(k); i++) in bch_bucket_free()
458 __bch_bucket_free(PTR_CACHE(c, k, i), in bch_bucket_free()
459 PTR_BUCKET(c, k, i)); in bch_bucket_free()
463 struct bkey *k, int n, bool wait) in __bch_bucket_alloc_set() argument
470 bkey_init(k); in __bch_bucket_alloc_set()
481 k->ptr[i] = PTR(ca->buckets[b].gen, in __bch_bucket_alloc_set()
485 SET_KEY_PTRS(k, i + 1); in __bch_bucket_alloc_set()
490 bch_bucket_free(c, k); in __bch_bucket_alloc_set()
491 bkey_put(c, k); in __bch_bucket_alloc_set()
[all …]
Djournal.c269 struct bkey *k; in bch_journal_mark() local
297 for (k = i->j.start; in bch_journal_mark()
298 k < bset_bkey_last(&i->j); in bch_journal_mark()
299 k = bkey_next(k)) in bch_journal_mark()
300 if (!__bch_extent_invalid(c, k)) { in bch_journal_mark()
303 for (j = 0; j < KEY_PTRS(k); j++) 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()
315 struct bkey *k; in bch_journal_replay() local
[all …]
Drequest.c38 static void bio_csum(struct bio *bio, struct bkey *k) in bio_csum() argument
50 k->ptr[KEY_PTRS(k)] = csum & (~0ULL >> 1); in bio_csum()
212 struct bkey *k; in bch_data_insert_start() local
221 k = op->insert_keys.top; in bch_data_insert_start()
222 bkey_init(k); in bch_data_insert_start()
223 SET_KEY_INODE(k, op->inode); in bch_data_insert_start()
224 SET_KEY_OFFSET(k, bio->bi_iter.bi_sector); in bch_data_insert_start()
226 if (!bch_alloc_sectors(op->c, k, bio_sectors(bio), in bch_data_insert_start()
231 n = bio_next_split(bio, KEY_SIZE(k), GFP_NOIO, split); in bch_data_insert_start()
237 SET_KEY_DIRTY(k, true); in bch_data_insert_start()
[all …]
Dbcache.h733 const struct bkey *k, in PTR_CACHE() argument
736 return c->cache[PTR_DEV(k, ptr)]; in PTR_CACHE()
740 const struct bkey *k, in PTR_BUCKET_NR() argument
743 return sector_to_bucket(c, PTR_OFFSET(k, ptr)); in PTR_BUCKET_NR()
747 const struct bkey *k, in PTR_BUCKET() argument
750 return PTR_CACHE(c, k, ptr)->buckets + PTR_BUCKET_NR(c, k, ptr); in PTR_BUCKET()
759 static inline uint8_t ptr_stale(struct cache_set *c, const struct bkey *k, in ptr_stale() argument
762 return gen_after(PTR_BUCKET(c, k, i)->gen, PTR_GEN(k, i)); in ptr_stale()
765 static inline bool ptr_available(struct cache_set *c, const struct bkey *k, in ptr_available() argument
768 return (PTR_DEV(k, i) < MAX_CACHES_PER_SET) && PTR_CACHE(c, k, i); in ptr_available()
/linux-4.1.27/drivers/block/paride/
Depat.c99 { int k, ph, a, b; in epat_read_block() local
105 for(k=0;k<count;k++) { in epat_read_block()
106 if (k == count-1) w0(0xfd); in epat_read_block()
110 buf[k] = j44(a,b); in epat_read_block()
118 for(k=0;k<count;k++) { in epat_read_block()
119 if (k == count-1) w0(0xfd); in epat_read_block()
122 buf[k] = j53(a,b); in epat_read_block()
130 for(k=0;k<count-1;k++) { in epat_read_block()
132 buf[k] = r0(); in epat_read_block()
140 for(k=0;k<count-1;k++) buf[k] = r4(); in epat_read_block()
[all …]
Depia.c138 { int k, ph, a, b; in epia_read_block() local
144 for (k=0;k<count;k++) { in epia_read_block()
147 buf[k] = j44(a,b); in epia_read_block()
156 for (k=0;k<count;k++) { in epia_read_block()
159 buf[k] = j53(a,b); in epia_read_block()
167 for (k=0;k<count;k++) { in epia_read_block()
169 buf[k] = r0(); in epia_read_block()
177 for (k=0;k<count;k++) buf[k] = r4(); in epia_read_block()
183 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); in epia_read_block()
189 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); in epia_read_block()
[all …]
Dfriq.c79 { int h, l, k, ph; in friq_read_block_int() local
84 for (k=0;k<count;k++) { in friq_read_block_int()
87 buf[k] = j44(l,h); in friq_read_block_int()
95 for (k=0;k<count;k++) { in friq_read_block_int()
97 buf[k] = r0(); in friq_read_block_int()
104 for (k=0;k<count-2;k++) buf[k] = r4(); in friq_read_block_int()
112 for (k=0;k<(count/2)-1;k++) ((u16 *)buf)[k] = r4w(); in friq_read_block_int()
120 for (k=0;k<(count/4)-1;k++) ((u32 *)buf)[k] = r4l(); in friq_read_block_int()
139 { int k; in friq_write_block() local
145 for (k=0;k<count;k++) { in friq_write_block()
[all …]
Dfrpw.c76 { int h, l, k, ph; in frpw_read_block_int() local
81 for (k=0;k<count;k++) { in frpw_read_block_int()
84 buf[k] = j44(l,h); in frpw_read_block_int()
92 for (k=0;k<count;k++) { in frpw_read_block_int()
94 buf[k] = r0(); in frpw_read_block_int()
101 for (k=0;k<count;k++) buf[k] = r4(); in frpw_read_block_int()
107 for (k=0;k<count-2;k++) buf[k] = r4(); in frpw_read_block_int()
115 for (k=0;k<(count/2)-1;k++) ((u16 *)buf)[k] = r4w(); in frpw_read_block_int()
123 for (k=0;k<(count/4)-1;k++) ((u32 *)buf)[k] = r4l(); in frpw_read_block_int()
142 { int k; in frpw_write_block() local
[all …]
Ddstr.c117 { int k, a, b; in dstr_read_block() local
125 case 0: for (k=0;k<count;k++) { in dstr_read_block()
128 buf[k] = j44(a,b); in dstr_read_block()
133 for (k=0;k<count;k++) { in dstr_read_block()
134 w2(0x26); buf[k] = r0(); w2(0x24); in dstr_read_block()
140 for (k=0;k<count;k++) buf[k] = r4(); in dstr_read_block()
145 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); in dstr_read_block()
150 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); in dstr_read_block()
159 { int k; in dstr_write_block() local
168 case 1: for (k=0;k<count;k++) { in dstr_write_block()
[all …]
Dkbic.c136 { int k, a, b; in kbic_read_block() local
141 for (k=0;k<count/2;k++) { in kbic_read_block()
144 buf[2*k] = j44(a,b); in kbic_read_block()
147 buf[2*k+1] = j44(a,b); in kbic_read_block()
153 for (k=0;k<count/4;k++) { in kbic_read_block()
156 w0(8); buf[4*k] = j53(r12w()); in kbic_read_block()
157 w0(0xb8); buf[4*k+1] = j53(r12w()); in kbic_read_block()
159 buf[4*k+3] = j53(r12w()); in kbic_read_block()
160 w0(8); buf[4*k+2] = j53(r12w()); in kbic_read_block()
166 for (k=0;k<count/2;k++) { in kbic_read_block()
[all …]
Don26.c188 { int k, a, b; in on26_read_block() local
194 for (k=0;k<count;k++) { in on26_read_block()
197 buf[k] = j44(a,b); in on26_read_block()
204 for (k=0;k<count/2;k++) { in on26_read_block()
205 w2(0x26); buf[2*k] = r0(); in on26_read_block()
206 w2(0x24); buf[2*k+1] = r0(); in on26_read_block()
214 for (k=0;k<count;k++) buf[k] = r4(); in on26_read_block()
221 for (k=0;k<count/2;k++) ((u16 *)buf)[k] = r4w(); in on26_read_block()
228 for (k=0;k<count/4;k++) ((u32 *)buf)[k] = r4l(); in on26_read_block()
237 { int k; in on26_write_block() local
[all …]
Dfit3.c97 { int k, a, b, c, d; in fit3_read_block() local
102 for (k=0;k<count/2;k++) { in fit3_read_block()
107 buf[2*k ] = j44(a,b); in fit3_read_block()
108 buf[2*k+1] = j44(c,d); in fit3_read_block()
115 for (k=0;k<count/2;k++) { in fit3_read_block()
118 buf[2*k ] = a; in fit3_read_block()
119 buf[2*k+1] = b; in fit3_read_block()
127 for (k=0;k<count;k++) buf[k] = r4(); in fit3_read_block()
136 { int k; in fit3_write_block() local
142 for (k=0;k<count/2;k++) { in fit3_write_block()
[all …]
Daten.c72 { int k, a, b, c, d; in aten_read_block() local
77 for (k=0;k<count/2;k++) { in aten_read_block()
81 buf[2*k] = j44(c,d); in aten_read_block()
82 buf[2*k+1] = j44(a,b); in aten_read_block()
88 for (k=0;k<count/2;k++) { in aten_read_block()
91 buf[2*k] = b; buf[2*k+1] = a; in aten_read_block()
100 { int k; in aten_write_block() local
103 for (k=0;k<count/2;k++) { in aten_write_block()
104 w0(buf[2*k+1]); w2(0xe); w2(6); in aten_write_block()
105 w0(buf[2*k]); w2(7); w2(6); in aten_write_block()
Dcomm.c151 { int k; in comm_write_block() local
157 for (k=0;k<count;k++) { in comm_write_block()
158 w2(5); w0(buf[k^1]); w2(7); in comm_write_block()
164 for (k=0;k<count;k++) w4(buf[k^1]); in comm_write_block()
168 for (k=0;k<count/2;k++) w4w(pi_swab16(buf,k)); in comm_write_block()
172 for (k=0;k<count/4;k++) w4l(pi_swab32(buf,k)); in comm_write_block()
Dfit2.c66 { int k, a, b, c, d; in fit2_read_block() local
70 for (k=0;k<count/4;k++) { in fit2_read_block()
75 buf[4*k+0] = j44(a,b); in fit2_read_block()
76 buf[4*k+1] = j44(d,c); in fit2_read_block()
81 buf[4*k+2] = j44(d,c); in fit2_read_block()
82 buf[4*k+3] = j44(a,b); in fit2_read_block()
92 { int k; in fit2_write_block() local
96 for (k=0;k<count/2;k++) { in fit2_write_block()
97 w2(4); w0(buf[2*k]); in fit2_write_block()
98 w2(5); w0(buf[2*k+1]); in fit2_write_block()
Dktti.c56 { int k, a, b; in ktti_read_block() local
58 for (k=0;k<count/2;k++) { in ktti_read_block()
61 buf[2*k] = j44(a,b); in ktti_read_block()
63 buf[2*k+1] = j44(a,b); in ktti_read_block()
69 { int k; in ktti_write_block() local
71 for (k=0;k<count/2;k++) { in ktti_write_block()
73 w0(buf[2*k]); w2(3); in ktti_write_block()
74 w0(buf[2*k+1]); w2(6); in ktti_write_block()
Dparide.c171 int j, k; in default_test_proto() local
178 for (k = 0; k < 256; k++) { in default_test_proto()
179 pi_write_regr(pi, 0, 2, k ^ 0xaa); in default_test_proto()
180 pi_write_regr(pi, 0, 3, k ^ 0x55); in default_test_proto()
181 if (pi_read_regr(pi, 0, 2) != (k ^ 0xaa)) in default_test_proto()
211 int k; in paride_register() local
213 for (k = 0; k < MAX_PROTOS; k++) in paride_register()
214 if (protocols[k] && !strcmp(pr->name, protocols[k]->name)) { in paride_register()
219 k = 0; in paride_register()
220 while ((k < MAX_PROTOS) && (protocols[k])) in paride_register()
[all …]
Don20.c89 { int k, l, h; in on20_read_block() local
93 for (k=0;k<count;k++) in on20_read_block()
95 w2(4); w2(0x26); buf[k] = r0(); in on20_read_block()
99 buf[k] = j44(l,h); in on20_read_block()
106 { int k; in on20_write_block() local
110 for (k=0;k<count;k++) { w2(5); w0(buf[k]); w2(7); } in on20_write_block()
Dpt.c396 int k, e, s; in pt_poll_dsc() local
398 k = 0; in pt_poll_dsc()
401 while (k < tmo) { in pt_poll_dsc()
403 k++; in pt_poll_dsc()
412 if ((k >= tmo) || (s & STAT_ERR)) { in pt_poll_dsc()
413 if (k >= tmo) in pt_poll_dsc()
453 int i, k, flg; in pt_reset() local
462 k = 0; in pt_reset()
463 while ((k++ < PT_RESET_TMO) && (status_reg(pi) & STAT_BUSY)) in pt_reset()
471 printk("%s: Reset (%d) signature = ", tape->name, k); in pt_reset()
[all …]
Dparide.h118 static inline u16 pi_swab16( char *b, int k) in pi_swab16() argument
122 r.t[0]=b[2*k+1]; r.t[1]=b[2*k]; in pi_swab16()
126 static inline u32 pi_swab32( char *b, int k) in pi_swab32() argument
130 r.f[0]=b[4*k+1]; r.f[1]=b[4*k]; in pi_swab32()
131 r.f[2]=b[4*k+3]; r.f[3]=b[4*k+2]; in pi_swab32()
Dpg.c321 int k; in pg_command() local
346 for (k = 0; k < 12; k++) in pg_command()
347 printk("%02x ", cmd[k] & 0xff); in pg_command()
389 int i, k, err; in pg_reset() local
399 k = 0; in pg_reset()
400 while ((k++ < PG_RESET_TMO) && (status_reg(dev) & STAT_BUSY)) in pg_reset()
409 printk("%s: Reset (%d) signature = ", dev->name, k); in pg_reset()
424 int k; in xs() local
426 for (k = 0; k < len; k++) { in xs()
480 int k, unit; in pg_detect() local
[all …]
Dpcd.c410 int r, d, p, n, k, j; in pcd_completion() local
413 k = 0; in pcd_completion()
435 cd->name, fun, p, d, k); in pcd_completion()
442 if (k++ > PCD_TMO) { in pcd_completion()
540 int i, k, flg; in pcd_reset() local
549 k = 0; in pcd_reset()
550 while ((k++ < PCD_RESET_TMO) && (status_reg(cd) & IDE_BUSY)) in pcd_reset()
558 printk("%s: Reset (%d) signature = ", cd->name, k); in pcd_reset()
578 int k, p; in pcd_ready_wait() local
580 k = 0; in pcd_ready_wait()
[all …]
Dpf.c537 int i, k, flg; in pf_reset() local
546 k = 0; in pf_reset()
547 while ((k++ < PF_RESET_TMO) && (status_reg(pf) & STAT_BUSY)) in pf_reset()
555 printk("%s: Reset (%d) signature = ", pf->name, k); in pf_reset()
581 int j, k, l; in xs() local
585 for (k = 0; k < len; k++) in xs()
586 if ((buf[k + offs] != 0x20) || (buf[k + offs] != l)) in xs()
587 l = targ[j++] = buf[k + offs]; in xs()
595 int v, k; in xl() local
598 for (k = 0; k < 4; k++) in xl()
[all …]
/linux-4.1.27/arch/sparc/include/asm/
Dtermios.h66 #define user_termios_to_kernel_termios(k, u) \ argument
69 err = get_user((k)->c_iflag, &(u)->c_iflag); \
70 err |= get_user((k)->c_oflag, &(u)->c_oflag); \
71 err |= get_user((k)->c_cflag, &(u)->c_cflag); \
72 err |= get_user((k)->c_lflag, &(u)->c_lflag); \
73 err |= get_user((k)->c_line, &(u)->c_line); \
74 err |= copy_from_user((k)->c_cc, (u)->c_cc, NCCS); \
75 if ((k)->c_lflag & ICANON) { \
76 err |= get_user((k)->c_cc[VEOF], &(u)->c_cc[VEOF]); \
77 err |= get_user((k)->c_cc[VEOL], &(u)->c_cc[VEOL]); \
[all …]
/linux-4.1.27/lib/
Dbitmap.c48 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal() local
49 for (k = 0; k < lim; ++k) in __bitmap_equal()
50 if (bitmap1[k] != bitmap2[k]) in __bitmap_equal()
54 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal()
63 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_complement() local
64 for (k = 0; k < lim; ++k) in __bitmap_complement()
65 dst[k] = ~src[k]; in __bitmap_complement()
68 dst[k] = ~src[k]; in __bitmap_complement()
86 unsigned k, lim = BITS_TO_LONGS(nbits); in __bitmap_shift_right() local
89 for (k = 0; off + k < lim; ++k) { in __bitmap_shift_right()
[all …]
Dklist.c85 void klist_init(struct klist *k, void (*get)(struct klist_node *), in klist_init() argument
88 INIT_LIST_HEAD(&k->k_list); in klist_init()
89 spin_lock_init(&k->k_lock); in klist_init()
90 k->get = get; in klist_init()
91 k->put = put; in klist_init()
95 static void add_head(struct klist *k, struct klist_node *n) in add_head() argument
97 spin_lock(&k->k_lock); in add_head()
98 list_add(&n->n_node, &k->k_list); in add_head()
99 spin_unlock(&k->k_lock); in add_head()
102 static void add_tail(struct klist *k, struct klist_node *n) in add_tail() argument
[all …]
Dts_kmp.c81 unsigned int k, q; in compute_prefix_tbl() local
84 for (k = 0, q = 1; q < len; q++) { in compute_prefix_tbl()
85 while (k > 0 && (icase ? toupper(pattern[k]) : pattern[k]) in compute_prefix_tbl()
87 k = prefix_tbl[k-1]; in compute_prefix_tbl()
88 if ((icase ? toupper(pattern[k]) : pattern[k]) in compute_prefix_tbl()
90 k++; in compute_prefix_tbl()
91 prefix_tbl[q] = k; in compute_prefix_tbl()
Dinflate.c233 #define NEEDBITS(n) {while(k<(n)){b|=((ulg)NEXTBYTE())<<k;k+=8;}}
234 #define DUMPBITS(n) {b>>=(n);k-=(n);}
342 register int k; /* number of bits in current code */ in huft_build() local
396 k = j; /* minimum code length */ in huft_build()
453 for (; k <= g; k++) in huft_build()
456 a = c[k]; in huft_build()
462 while (k > w + l) in huft_build()
470 if ((f = 1 << (j = k - w)) > a + 1) /* try a k-w bit table */ in huft_build()
474 xp = c + k; in huft_build()
517 r.b = (uch)(k - w); in huft_build()
[all …]
Doid_registry.c34 unsigned i, j, k, hash; in look_up_OID() local
50 k = OID__NR; in look_up_OID()
51 while (i < k) { in look_up_OID()
52 j = (i + k) / 2; in look_up_OID()
56 k = j; in look_up_OID()
67 k = j; in look_up_OID()
82 k = j; in look_up_OID()
Dbch.c385 int k, pp = -1; in compute_error_locator_polynomial() local
398 k = 2*i-pp; in compute_error_locator_polynomial()
405 elp->c[j+k] ^= a_pow(bch, tmp+l); in compute_error_locator_polynomial()
409 tmp = pelp->deg+k; in compute_error_locator_polynomial()
437 int rem, c, r, p, k, param[m]; in solve_linear_system() local
439 k = 0; in solve_linear_system()
445 p = c-k; in solve_linear_system()
467 param[k++] = c; in solve_linear_system()
472 if (k > 0) { in solve_linear_system()
473 p = k; in solve_linear_system()
[all …]
Dkobject.c751 void kset_init(struct kset *k) in kset_init() argument
753 kobject_init_internal(&k->kobj); in kset_init()
754 INIT_LIST_HEAD(&k->list); in kset_init()
755 spin_lock_init(&k->list_lock); in kset_init()
793 int kset_register(struct kset *k) in kset_register() argument
797 if (!k) in kset_register()
800 kset_init(k); in kset_register()
801 err = kobject_add_internal(&k->kobj); in kset_register()
804 kobject_uevent(&k->kobj, KOBJ_ADD); in kset_register()
812 void kset_unregister(struct kset *k) in kset_unregister() argument
[all …]
/linux-4.1.27/net/ceph/
Dceph_hash.c25 const unsigned char *k = (const unsigned char *)str; in ceph_str_hash_rjenkins() local
37 a = a + (k[0] + ((__u32)k[1] << 8) + ((__u32)k[2] << 16) + in ceph_str_hash_rjenkins()
38 ((__u32)k[3] << 24)); in ceph_str_hash_rjenkins()
39 b = b + (k[4] + ((__u32)k[5] << 8) + ((__u32)k[6] << 16) + in ceph_str_hash_rjenkins()
40 ((__u32)k[7] << 24)); in ceph_str_hash_rjenkins()
41 c = c + (k[8] + ((__u32)k[9] << 8) + ((__u32)k[10] << 16) + in ceph_str_hash_rjenkins()
42 ((__u32)k[11] << 24)); in ceph_str_hash_rjenkins()
44 k = k + 12; in ceph_str_hash_rjenkins()
52 c = c + ((__u32)k[10] << 24); in ceph_str_hash_rjenkins()
54 c = c + ((__u32)k[9] << 16); in ceph_str_hash_rjenkins()
[all …]
/linux-4.1.27/crypto/
Dserpent_generic.c34 ({ b ^= d; b ^= c; b ^= a; b ^= PHI ^ i; b = rol32(b, 11); k[j] = b; })
37 ({ x0 = k[i]; x1 = k[i+1]; x2 = k[i+2]; x3 = k[i+3]; })
40 ({ k[i] = x0; k[i+1] = x1; k[i+2] = x2; k[i+3] = x3; })
46 x3 ^= k[4*(i)+3]; x2 ^= k[4*(i)+2]; \
47 x1 ^= k[4*(i)+1]; x0 ^= k[4*(i)+0]; \
57 x0 ^= x3; x2 ^= x4; x3 ^= k[4*i+3]; \
58 x1 ^= k[4*i+1]; x0 = rol32(x0, 5); x2 = rol32(x2, 22);\
59 x0 ^= k[4*i+0]; x2 ^= k[4*i+2]; \
63 x0 ^= k[4*i+0]; x1 ^= k[4*i+1]; x2 ^= k[4*i+2]; \
64 x3 ^= k[4*i+3]; x0 = ror32(x0, 5); x2 = ror32(x2, 22);\
[all …]
Daes_generic.c1300 #define f_rn(bo, bi, n, k) do { \ argument
1304 crypto_ft_tab[3][byte(bi[(n + 3) & 3], 3)] ^ *(k + n); \
1307 #define f_nround(bo, bi, k) do {\ argument
1308 f_rn(bo, bi, 0, k); \
1309 f_rn(bo, bi, 1, k); \
1310 f_rn(bo, bi, 2, k); \
1311 f_rn(bo, bi, 3, k); \
1312 k += 4; \
1315 #define f_rl(bo, bi, n, k) do { \ argument
1319 crypto_fl_tab[3][byte(bi[(n + 3) & 3], 3)] ^ *(k + n); \
[all …]
Dfcrypt.c66 #define ror56_64(k, n) \ argument
68 k = (k >> n) | ((k & ((1 << n) - 1)) << (56 - n)); \
311 u64 k; /* k holds all 56 non-parity bits */ in fcrypt_setkey() local
314 k = (*key++) >> 1; in fcrypt_setkey()
315 k <<= 7; in fcrypt_setkey()
316 k |= (*key++) >> 1; in fcrypt_setkey()
317 k <<= 7; in fcrypt_setkey()
318 k |= (*key++) >> 1; in fcrypt_setkey()
319 k <<= 7; in fcrypt_setkey()
320 k |= (*key++) >> 1; in fcrypt_setkey()
[all …]
Dtwofish_common.c549 #define CALC_K(a, j, k, l, m, n) \ argument
550 x = CALC_K_2 (k, l, k, l, 0); \
562 #define CALC_K192(a, j, k, l, m, n) \ argument
563 x = CALC_K192_2 (l, l, k, k, 0); \
575 #define CALC_K256(a, j, k, l, m, n) \ argument
576 x = CALC_K256_2 (k, l, 0); \
586 int i, j, k; in __twofish_setkey() local
651 for ( i = j = 0, k = 1; i < 256; i++, j += 2, k += 2 ) { in __twofish_setkey()
652 CALC_SB256_2( i, calc_sb_tbl[j], calc_sb_tbl[k] ); in __twofish_setkey()
669 CALC_K256 (k, i, q0[i+8], q1[i+8], q0[i+9], q1[i+9]); in __twofish_setkey()
[all …]
Dgf128mul.c269 int i, j, k; in gf128mul_init_64k_lle() local
290 for (k = 1; k < j; ++k) in gf128mul_init_64k_lle()
291 be128_xor(&t->t[i]->t[j + k], in gf128mul_init_64k_lle()
292 &t->t[i]->t[j], &t->t[i]->t[k]); in gf128mul_init_64k_lle()
311 int i, j, k; in gf128mul_init_64k_bbe() local
332 for (k = 1; k < j; ++k) in gf128mul_init_64k_bbe()
333 be128_xor(&t->t[i]->t[j + k], in gf128mul_init_64k_bbe()
334 &t->t[i]->t[j], &t->t[i]->t[k]); in gf128mul_init_64k_bbe()
405 int j, k; in gf128mul_init_4k_lle() local
416 for (k = 1; k < j; ++k) in gf128mul_init_4k_lle()
[all …]
Dtestmgr.c196 unsigned int i, j, k, temp; in __test_hash() local
316 for (k = 0; k < template[i].np; k++) { in __test_hash()
317 if (WARN_ON(offset_in_page(IDX[k]) + in __test_hash()
318 template[i].tap[k] > PAGE_SIZE)) in __test_hash()
320 sg_set_buf(&sg[k], in __test_hash()
321 memcpy(xbuf[IDX[k] >> PAGE_SHIFT] + in __test_hash()
322 offset_in_page(IDX[k]), in __test_hash()
324 template[i].tap[k]), in __test_hash()
325 template[i].tap[k]); in __test_hash()
326 temp += template[i].tap[k]; in __test_hash()
[all …]
Dcast5_generic.c412 static void key_schedule(u32 *x, u32 *z, u32 *k) in key_schedule() argument
426 k[0] = s5[zi(8)] ^ s6[zi(9)] ^ s7[zi(7)] ^ sb8[zi(6)] ^ s5[zi(2)]; in key_schedule()
427 k[1] = s5[zi(10)] ^ s6[zi(11)] ^ s7[zi(5)] ^ sb8[zi(4)] ^ in key_schedule()
429 k[2] = s5[zi(12)] ^ s6[zi(13)] ^ s7[zi(3)] ^ sb8[zi(2)] ^ in key_schedule()
431 k[3] = s5[zi(14)] ^ s6[zi(15)] ^ s7[zi(1)] ^ sb8[zi(0)] ^ in key_schedule()
442 k[4] = s5[xi(3)] ^ s6[xi(2)] ^ s7[xi(12)] ^ sb8[xi(13)] ^ in key_schedule()
444 k[5] = s5[xi(1)] ^ s6[xi(0)] ^ s7[xi(14)] ^ sb8[xi(15)] ^ in key_schedule()
446 k[6] = s5[xi(7)] ^ s6[xi(6)] ^ s7[xi(8)] ^ sb8[xi(9)] ^ s7[xi(3)]; in key_schedule()
447 k[7] = s5[xi(5)] ^ s6[xi(4)] ^ s7[xi(10)] ^ sb8[xi(11)] ^ in key_schedule()
458 k[8] = s5[zi(3)] ^ s6[zi(2)] ^ s7[zi(12)] ^ sb8[zi(13)] ^ in key_schedule()
[all …]
Ddes_generic.c631 unsigned long des_ekey(u32 *pe, const u8 *k) in des_ekey() argument
637 d = k[4]; d &= 0x0e; d <<= 4; d |= k[0] & 0x1e; d = pc1[d]; in des_ekey()
638 c = k[5]; c &= 0x0e; c <<= 4; c |= k[1] & 0x1e; c = pc1[c]; in des_ekey()
639 b = k[6]; b &= 0x0e; b <<= 4; b |= k[2] & 0x1e; b = pc1[b]; in des_ekey()
640 a = k[7]; a &= 0x0e; a <<= 4; a |= k[3] & 0x1e; a = pc1[a]; in des_ekey()
665 d = k[0]; d &= 0xe0; d >>= 4; d |= k[4] & 0xf0; d = pc1[d + 1]; in des_ekey()
666 c = k[1]; c &= 0xe0; c >>= 4; c |= k[5] & 0xf0; c = pc1[c + 1]; in des_ekey()
667 b = k[2]; b &= 0xe0; b >>= 4; b |= k[6] & 0xf0; b = pc1[b + 1]; in des_ekey()
668 a = k[3]; a &= 0xe0; a >>= 4; a |= k[7] & 0xf0; a = pc1[a + 1]; in des_ekey()
714 static void dkey(u32 *pe, const u8 *k) in dkey() argument
[all …]
Dsalsa20_generic.c107 static void salsa20_keysetup(struct salsa20_ctx *ctx, const u8 *k, u32 kbytes) in salsa20_keysetup() argument
111 ctx->input[1] = U8TO32_LITTLE(k + 0); in salsa20_keysetup()
112 ctx->input[2] = U8TO32_LITTLE(k + 4); in salsa20_keysetup()
113 ctx->input[3] = U8TO32_LITTLE(k + 8); in salsa20_keysetup()
114 ctx->input[4] = U8TO32_LITTLE(k + 12); in salsa20_keysetup()
116 k += 16; in salsa20_keysetup()
121 ctx->input[11] = U8TO32_LITTLE(k + 0); in salsa20_keysetup()
122 ctx->input[12] = U8TO32_LITTLE(k + 4); in salsa20_keysetup()
123 ctx->input[13] = U8TO32_LITTLE(k + 8); in salsa20_keysetup()
124 ctx->input[14] = U8TO32_LITTLE(k + 12); in salsa20_keysetup()
/linux-4.1.27/include/linux/
Djhash.h73 const u8 *k = key; in jhash() local
80 a += __get_unaligned_cpu32(k); in jhash()
81 b += __get_unaligned_cpu32(k + 4); in jhash()
82 c += __get_unaligned_cpu32(k + 8); in jhash()
85 k += 12; in jhash()
90 case 12: c += (u32)k[11]<<24; in jhash()
91 case 11: c += (u32)k[10]<<16; in jhash()
92 case 10: c += (u32)k[9]<<8; in jhash()
93 case 9: c += k[8]; in jhash()
94 case 8: b += (u32)k[7]<<24; in jhash()
[all …]
Dzutil.h84 int k; in zlib_adler32() local
89 k = len < NMAX ? len : NMAX; in zlib_adler32()
90 len -= k; in zlib_adler32()
91 while (k >= 16) { in zlib_adler32()
94 k -= 16; in zlib_adler32()
96 if (k != 0) do { in zlib_adler32()
99 } while (--k); in zlib_adler32()
Dkey.h360 #define key_validate(k) 0 argument
361 #define key_serial(k) 0 argument
362 #define key_get(k) ({ NULL; }) argument
363 #define key_revoke(k) do { } while(0) argument
364 #define key_invalidate(k) do { } while(0) argument
365 #define key_put(k) do { } while(0) argument
366 #define key_ref_put(k) do { } while(0) argument
367 #define make_key_ref(k, p) NULL argument
368 #define key_ref_to_ptr(k) NULL argument
369 #define is_key_possessed(k) 0 argument
Dklist.h36 extern void klist_init(struct klist *k, void (*get)(struct klist_node *),
45 extern void klist_add_tail(struct klist_node *n, struct klist *k);
46 extern void klist_add_head(struct klist_node *n, struct klist *k);
62 extern void klist_iter_init(struct klist *k, struct klist_iter *i);
63 extern void klist_iter_init_node(struct klist *k, struct klist_iter *i,
Dkthread.h40 void kthread_bind(struct task_struct *k, unsigned int cpu);
41 int kthread_stop(struct task_struct *k);
45 void *kthread_data(struct task_struct *k);
46 void *probe_kthread_data(struct task_struct *k);
47 int kthread_park(struct task_struct *k);
48 void kthread_unpark(struct task_struct *k);
Dkobject.h186 static inline struct kset *kset_get(struct kset *k) in kset_get() argument
188 return k ? to_kset(kobject_get(&k->kobj)) : NULL; in kset_get()
191 static inline void kset_put(struct kset *k) in kset_put() argument
193 kobject_put(&k->kobj); in kset_put()
Dmempolicy.h158 static inline void check_highest_zone(enum zone_type k) in check_highest_zone() argument
160 if (k > policy_zone && k != ZONE_MOVABLE) in check_highest_zone()
161 policy_zone = k; in check_highest_zone()
277 static inline void check_highest_zone(int k) in check_highest_zone() argument
/linux-4.1.27/tools/perf/util/
Dbitmap.c12 int k, w = 0, lim = bits/BITS_PER_LONG; in __bitmap_weight() local
14 for (k = 0; k < lim; k++) in __bitmap_weight()
15 w += hweight_long(bitmap[k]); in __bitmap_weight()
18 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
26 int k; in __bitmap_or() local
29 for (k = 0; k < nr; k++) in __bitmap_or()
30 dst[k] = bitmap1[k] | bitmap2[k]; in __bitmap_or()
Dalias.c6 static int alias_lookup_cb(const char *k, const char *v, in alias_lookup_cb() argument
9 if (!prefixcmp(k, "alias.") && !strcmp(k+6, alias_key)) { in alias_lookup_cb()
11 return config_error_nonbool(k); in alias_lookup_cb()
/linux-4.1.27/drivers/net/ethernet/neterion/vxge/
Dvxge-ethtool.c229 int j, k; in vxge_get_ethtool_stats() local
295 for (k = 0; k < vdev->no_of_vpath; k++) { in vxge_get_ethtool_stats()
298 vpath = &vdev->vpaths[k]; in vxge_get_ethtool_stats()
372 for (k = 0; k < vdev->max_config_port; k++) { in vxge_get_ethtool_stats()
373 *ptr++ = xmac_stats->aggr_stats[k].tx_frms; in vxge_get_ethtool_stats()
374 *ptr++ = xmac_stats->aggr_stats[k].tx_data_octets; in vxge_get_ethtool_stats()
375 *ptr++ = xmac_stats->aggr_stats[k].tx_mcast_frms; in vxge_get_ethtool_stats()
376 *ptr++ = xmac_stats->aggr_stats[k].tx_bcast_frms; in vxge_get_ethtool_stats()
377 *ptr++ = xmac_stats->aggr_stats[k].tx_discarded_frms; in vxge_get_ethtool_stats()
378 *ptr++ = xmac_stats->aggr_stats[k].tx_errored_frms; in vxge_get_ethtool_stats()
[all …]
/linux-4.1.27/arch/x86/kernel/cpu/
Dintel.c580 unsigned char k; in intel_tlb_lookup() local
585 for (k = 0; intel_tlb_table[k].descriptor != desc && \ in intel_tlb_lookup()
586 intel_tlb_table[k].descriptor != 0; k++) in intel_tlb_lookup()
589 if (intel_tlb_table[k].tlb_type == 0) in intel_tlb_lookup()
592 switch (intel_tlb_table[k].tlb_type) { in intel_tlb_lookup()
594 if (tlb_lli_4k[ENTRIES] < intel_tlb_table[k].entries) in intel_tlb_lookup()
595 tlb_lli_4k[ENTRIES] = intel_tlb_table[k].entries; in intel_tlb_lookup()
596 if (tlb_lld_4k[ENTRIES] < intel_tlb_table[k].entries) in intel_tlb_lookup()
597 tlb_lld_4k[ENTRIES] = intel_tlb_table[k].entries; in intel_tlb_lookup()
600 if (tlb_lli_4k[ENTRIES] < intel_tlb_table[k].entries) in intel_tlb_lookup()
[all …]
/linux-4.1.27/arch/sparc/crypto/
Dcamellia_asm.S35 ld [%o0 + 0x00], %f0 ! i0, k[0]
36 ld [%o0 + 0x04], %f1 ! i1, k[1]
37 ld [%o0 + 0x08], %f2 ! i2, k[2]
38 ld [%o0 + 0x0c], %f3 ! i3, k[3]
39 std %f0, [%o1 + 0x00] ! k[0, 1]
41 std %f2, [%o1 + 0x08] ! k[2, 3]
48 std %f0, [%o1 + 0x20] ! k[8, 9]
56 std %f2, [%o1 + 0x28] ! k[10, 11]
88 std %f0, [%o1 + 0x10] ! k[ 4, 5]
89 std %f2, [%o1 + 0x18] ! k[ 6, 7]
[all …]
/linux-4.1.27/include/uapi/linux/
Dbcache.h11 static inline __u64 name(const type *k) \
12 { return (k->field >> offset) & ~(~0ULL << size); } \
14 static inline void SET_##name(type *k, __u64 v) \
16 k->field &= ~(~(~0ULL << size) << offset); \
17 k->field |= (v & ~(~0ULL << size)) << offset; \
32 static inline __u64 name(const struct bkey *k, unsigned i) \
33 { return (k->ptr[i] >> offset) & ~(~0ULL << size); } \
35 static inline void SET_##name(struct bkey *k, unsigned i, __u64 v) \
37 k->ptr[i] &= ~(~(~0ULL << size) << offset); \
38 k->ptr[i] |= (v & ~(~0ULL << size)) << offset; \
[all …]
Dfilter.h27 __u32 k; /* Generic multiuse field */ member
48 #define BPF_STMT(code, k) { (unsigned short)(code), 0, 0, k } argument
51 #define BPF_JUMP(code, k, jt, jf) { (unsigned short)(code), jt, jf, k } argument
/linux-4.1.27/drivers/staging/wlan-ng/
Dp80211wep.c154 u32 i, j, k, crc, keylen; in wep_decrypt() local
201 for (k = 0; k < len; k++) { in wep_decrypt()
205 buf[k] ^= s[(s[i] + s[j]) & 0xff]; in wep_decrypt()
206 crc = wep_crc32_table[(crc ^ buf[k]) & 0xff] ^ (crc >> 8); in wep_decrypt()
216 for (k = 0; k < 4; k++) { in wep_decrypt()
220 if ((c_crc[k] ^ s[(s[i] + s[j]) & 0xff]) != icv[k]) in wep_decrypt()
221 return -(4 | (k << 4)); /* ICV mismatch */ in wep_decrypt()
231 u32 i, j, k, crc, keylen; in wep_encrypt() local
278 for (k = 0; k < len; k++) { in wep_encrypt()
279 crc = wep_crc32_table[(crc ^ buf[k]) & 0xff] ^ (crc >> 8); in wep_encrypt()
[all …]
/linux-4.1.27/fs/proc/
Dpage.c83 u64 k; in stable_page_flags() local
93 k = page->flags; in stable_page_flags()
149 u |= kpf_copy_bit(k, KPF_LOCKED, PG_locked); in stable_page_flags()
151 u |= kpf_copy_bit(k, KPF_SLAB, PG_slab); in stable_page_flags()
153 u |= kpf_copy_bit(k, KPF_ERROR, PG_error); in stable_page_flags()
154 u |= kpf_copy_bit(k, KPF_DIRTY, PG_dirty); in stable_page_flags()
155 u |= kpf_copy_bit(k, KPF_UPTODATE, PG_uptodate); in stable_page_flags()
156 u |= kpf_copy_bit(k, KPF_WRITEBACK, PG_writeback); in stable_page_flags()
158 u |= kpf_copy_bit(k, KPF_LRU, PG_lru); in stable_page_flags()
159 u |= kpf_copy_bit(k, KPF_REFERENCED, PG_referenced); in stable_page_flags()
[all …]
/linux-4.1.27/lib/raid6/
Dmktables.c58 int i, j, k; in main() local
73 for (k = 0; k < 8; k++) in main()
74 printf("0x%02x,%c", gfmul(i, j + k), in main()
75 (k == 7) ? '\n' : ' '); in main()
92 for (k = 0; k < 8; k++) in main()
93 printf("0x%02x,%c", gfmul(i, j + k), in main()
94 (k == 7) ? '\n' : ' '); in main()
98 for (k = 0; k < 8; k++) in main()
99 printf("0x%02x,%c", gfmul(i, (j + k) << 4), in main()
100 (k == 7) ? '\n' : ' '); in main()
/linux-4.1.27/drivers/net/ethernet/ibm/ehea/
Dehea_ethtool.c231 int i, k, tmp; in ehea_get_ethtool_stats() local
242 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats()
243 tmp += port->port_res[k].p_stats.poll_receive_errors; in ehea_get_ethtool_stats()
246 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats()
247 tmp += port->port_res[k].p_stats.err_tcp_cksum; in ehea_get_ethtool_stats()
250 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats()
251 tmp += port->port_res[k].p_stats.err_ip_cksum; in ehea_get_ethtool_stats()
254 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats()
255 tmp += port->port_res[k].p_stats.err_frame_crc; in ehea_get_ethtool_stats()
258 for (k = 0, tmp = 0; k < EHEA_MAX_PORT_RES; k++) in ehea_get_ethtool_stats()
[all …]
/linux-4.1.27/arch/powerpc/platforms/powermac/
Dudbg_adb.c76 int k, t, on; in udbg_adb_local_getc() local
83 k = -1; in udbg_adb_local_getc()
93 k = udbg_adb_old_getc_poll(); in udbg_adb_local_getc()
94 } while (k == -1 && xmon_adb_keycode == -1); in udbg_adb_local_getc()
97 if (k != -1) in udbg_adb_local_getc()
98 return k; in udbg_adb_local_getc()
99 k = xmon_adb_keycode; in udbg_adb_local_getc()
102 if ((k & 0x7f) == 0x38 || (k & 0x7f) == 0x7b) { in udbg_adb_local_getc()
103 xmon_adb_shiftstate = (k & 0x80) == 0; in udbg_adb_local_getc()
106 if (k >= 0x80) in udbg_adb_local_getc()
[all …]
/linux-4.1.27/drivers/irqchip/
Dirq-renesas-intc-irqpin.c321 int k; in intc_irqpin_shared_irq_handler() local
323 for (k = 0; k < 8; k++) { in intc_irqpin_shared_irq_handler()
324 if (reg_source & BIT(7 - k)) { in intc_irqpin_shared_irq_handler()
325 if (BIT(k) & p->shared_irq_mask) in intc_irqpin_shared_irq_handler()
328 status |= intc_irqpin_irq_handler(irq, &p->irq[k]); in intc_irqpin_shared_irq_handler()
382 int k; in intc_irqpin_probe() local
416 for (k = 0; k < INTC_IRQPIN_REG_NR; k++) { in intc_irqpin_probe()
417 io[k] = platform_get_resource(pdev, IORESOURCE_MEM, k); in intc_irqpin_probe()
418 if (!io[k] && k < INTC_IRQPIN_REG_NR_MANDATORY) { in intc_irqpin_probe()
426 for (k = 0; k < INTC_IRQPIN_MAX; k++) { in intc_irqpin_probe()
[all …]
Dirq-renesas-irqc.c185 int k; in irqc_probe() local
219 for (k = 0; k < IRQC_IRQ_MAX; k++) { in irqc_probe()
220 irq = platform_get_resource(pdev, IORESOURCE_IRQ, k); in irqc_probe()
224 p->irq[k].p = p; in irqc_probe()
225 p->irq[k].requested_irq = irq->start; in irqc_probe()
228 p->number_of_irqs = k; in irqc_probe()
264 for (k = 0; k < p->number_of_irqs; k++) { in irqc_probe()
265 if (request_irq(p->irq[k].requested_irq, irqc_irq_handler, in irqc_probe()
266 0, name, &p->irq[k])) { in irqc_probe()
284 while (--k >= 0) in irqc_probe()
[all …]
/linux-4.1.27/drivers/spi/
Dspi-sh-msiof.c214 int k; in sh_msiof_modify_ctr_wait() local
221 for (k = 100; k > 0; k--) { in sh_msiof_modify_ctr_wait()
228 return k > 0 ? 0 : -ETIMEDOUT; in sh_msiof_modify_ctr_wait()
259 size_t k; in sh_msiof_spi_set_clk_regs() local
264 for (k = 0; k < ARRAY_SIZE(sh_msiof_spi_div_table); k++) { in sh_msiof_spi_set_clk_regs()
265 brps = DIV_ROUND_UP(div, sh_msiof_spi_div_table[k].div); in sh_msiof_spi_set_clk_regs()
270 k = min_t(int, k, ARRAY_SIZE(sh_msiof_spi_div_table) - 1); in sh_msiof_spi_set_clk_regs()
272 scr = sh_msiof_spi_div_table[k].brdv | SCR_BRPS(brps); in sh_msiof_spi_set_clk_regs()
381 int k; in sh_msiof_spi_write_fifo_8() local
383 for (k = 0; k < words; k++) in sh_msiof_spi_write_fifo_8()
[all …]
/linux-4.1.27/arch/sh/kernel/
Dio_trapped.c49 int k, n; in register_trapped_io() local
58 for (k = 0; k < tiop->num_resources; k++) { in register_trapped_io()
59 res = tiop->resource + k; in register_trapped_io()
73 for (k = 0; k < n; k++) in register_trapped_io()
74 pages[k] = virt_to_page(tiop); in register_trapped_io()
81 for (k = 0; k < tiop->num_resources; k++) { in register_trapped_io()
82 res = tiop->resource + k; in register_trapped_io()
117 int k, len; in match_trapped_io_handler() local
123 for (k = 0; k < tiop->num_resources; k++) { in match_trapped_io_handler()
124 res = tiop->resource + k; in match_trapped_io_handler()
[all …]
/linux-4.1.27/drivers/input/joystick/
Dtmdc.c150 int i[2], j[2], t[2], p, k; in tmdc_read_packet() local
154 for (k = 0; k < 2; k++) { in tmdc_read_packet()
155 t[k] = gameport_time(gameport, TMDC_MAX_START); in tmdc_read_packet()
156 i[k] = j[k] = 0; in tmdc_read_packet()
168 for (k = 0, v = w, u = x; k < 2; k++, v >>= 2, u >>= 2) { in tmdc_read_packet()
170 if (t[k] <= 0 || i[k] >= TMDC_MAX_LENGTH) continue; in tmdc_read_packet()
171 t[k] = p; in tmdc_read_packet()
172 if (j[k] == 0) { /* Start bit */ in tmdc_read_packet()
173 if (~v & 1) t[k] = 0; in tmdc_read_packet()
174 data[k][i[k]] = 0; j[k]++; continue; in tmdc_read_packet()
[all …]
/linux-4.1.27/drivers/sh/intc/
Dcore.c184 unsigned int i, k, smp; in register_intc_controller() local
211 for (k = 0; k < d->nr_windows; k++) { in register_intc_controller()
212 res = desc->resource + k; in register_intc_controller()
214 d->window[k].phys = res->start; in register_intc_controller()
215 d->window[k].size = resource_size(res); in register_intc_controller()
216 d->window[k].virt = ioremap_nocache(res->start, in register_intc_controller()
218 if (!d->window[k].virt) in register_intc_controller()
242 k = 0; in register_intc_controller()
247 k += save_reg(d, k, hw->mask_regs[i].set_reg, smp); in register_intc_controller()
248 k += save_reg(d, k, hw->mask_regs[i].clr_reg, smp); in register_intc_controller()
[all …]
Daccess.c17 int k; in intc_phys_to_virt() local
20 for (k = 0; k < d->nr_windows; k++) { in intc_phys_to_virt()
21 window = d->window + k; in intc_phys_to_virt()
41 unsigned int k; in intc_get_reg() local
45 for (k = 0; k < d->nr_reg; k++) { in intc_get_reg()
46 if (d->reg[k] == address) in intc_get_reg()
47 return k; in intc_get_reg()
/linux-4.1.27/tools/iio/
Dgeneric_buffer.c101 int k; in process_scan() local
103 for (k = 0; k < num_channels; k++) in process_scan()
104 switch (channels[k].bytes) { in process_scan()
107 print2byte(*(uint16_t *)(data + channels[k].location), in process_scan()
108 &channels[k]); in process_scan()
111 if (!channels[k].is_signed) { in process_scan()
113 (data + channels[k].location); in process_scan()
115 channels[k].offset)* in process_scan()
116 channels[k].scale); in process_scan()
121 if (channels[k].is_signed) { in process_scan()
[all …]
/linux-4.1.27/drivers/scsi/aic7xxx/
Daic7xxx_93cx6.c159 u_int k = 0; in ahc_read_seeprom() local
167 for (k = start_addr; k < count + start_addr; k++) { in ahc_read_seeprom()
177 if ((k & (1 << i)) != 0) in ahc_read_seeprom()
183 if ((k & (1 << i)) != 0) in ahc_read_seeprom()
204 buf[k - start_addr] = v; in ahc_read_seeprom()
211 for (k = 0; k < count; k = k + 1) { in ahc_read_seeprom()
212 if (((k % 8) == 0) && (k != 0)) { in ahc_read_seeprom()
215 printk(KERN_CONT " 0x%x", buf[k]); in ahc_read_seeprom()
233 int i, k; in ahc_write_seeprom() local
253 for (k = start_addr; k < count + start_addr; k++) { in ahc_write_seeprom()
[all …]
/linux-4.1.27/drivers/hwmon/
Dads1015.c168 int k; in ads1015_remove() local
171 for (k = 0; k < ADS1015_CHANNELS; ++k) in ads1015_remove()
172 device_remove_file(&client->dev, &ads1015_in[k].dev_attr); in ads1015_remove()
236 unsigned int k; in ads1015_get_channels_config() local
253 for (k = 0; k < ADS1015_CHANNELS; ++k) { in ads1015_get_channels_config()
254 data->channel_data[k].enabled = true; in ads1015_get_channels_config()
255 data->channel_data[k].pga = ADS1015_DEFAULT_PGA; in ads1015_get_channels_config()
256 data->channel_data[k].data_rate = ADS1015_DEFAULT_DATA_RATE; in ads1015_get_channels_config()
265 unsigned int k; in ads1015_probe() local
277 for (k = 0; k < ADS1015_CHANNELS; ++k) { in ads1015_probe()
[all …]
/linux-4.1.27/include/asm-generic/
Dtermios.h70 static inline int user_termios_to_kernel_termios(struct ktermios *k, in user_termios_to_kernel_termios() argument
73 return copy_from_user(k, u, sizeof(struct termios2)); in user_termios_to_kernel_termios()
77 struct ktermios *k) in kernel_termios_to_user_termios() argument
79 return copy_to_user(u, k, sizeof(struct termios2)); in kernel_termios_to_user_termios()
82 static inline int user_termios_to_kernel_termios_1(struct ktermios *k, in user_termios_to_kernel_termios_1() argument
85 return copy_from_user(k, u, sizeof(struct termios)); in user_termios_to_kernel_termios_1()
89 struct ktermios *k) in kernel_termios_to_user_termios_1() argument
91 return copy_to_user(u, k, sizeof(struct termios)); in kernel_termios_to_user_termios_1()
94 static inline int user_termios_to_kernel_termios(struct ktermios *k, in user_termios_to_kernel_termios() argument
97 return copy_from_user(k, u, sizeof(struct termios)); in user_termios_to_kernel_termios()
[all …]
Dtermios-base.h65 #define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios)) argument
69 #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios)) argument
72 #define user_termios_to_kernel_termios_1(k, u) copy_from_user(k, u, sizeof(struct termios)) argument
73 #define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios)) argument
/linux-4.1.27/scripts/
Dpnmtologo.c313 unsigned int i, j, k; in write_logo_vga16() local
319 for (k = 0; k < 16; k++) in write_logo_vga16()
320 if (is_equal(logo_data[i][j], clut_vga16[k])) in write_logo_vga16()
322 if (k == 16) in write_logo_vga16()
334 for (k = 0; k < 16; k++) in write_logo_vga16()
335 if (is_equal(logo_data[i][j], clut_vga16[k])) in write_logo_vga16()
337 val = k<<4; in write_logo_vga16()
339 for (k = 0; k < 16; k++) in write_logo_vga16()
340 if (is_equal(logo_data[i][j], clut_vga16[k])) in write_logo_vga16()
342 val |= k; in write_logo_vga16()
[all …]
/linux-4.1.27/sound/pci/mixart/
Dmixart_hwdep.c143 u32 k; in mixart_enum_connectors() local
175 for(k=0; k < connector->uid_count; k++) { in mixart_enum_connectors()
178 if(k < MIXART_FIRST_DIG_AUDIO_ID) { in mixart_enum_connectors()
179 pipe = &mgr->chip[k/2]->pipe_out_ana; in mixart_enum_connectors()
181 pipe = &mgr->chip[(k-MIXART_FIRST_DIG_AUDIO_ID)/2]->pipe_out_dig; in mixart_enum_connectors()
183 if(k & 1) { in mixart_enum_connectors()
184 pipe->uid_right_connector = connector->uid[k]; /* odd */ in mixart_enum_connectors()
186 pipe->uid_left_connector = connector->uid[k]; /* even */ in mixart_enum_connectors()
193 request.uid = connector->uid[k]; in mixart_enum_connectors()
219 for(k=0; k < connector->uid_count; k++) { in mixart_enum_connectors()
[all …]
/linux-4.1.27/arch/sh/kernel/cpu/shmobile/
Dcpuidle.c34 int k; in cpuidle_sleep_enter() local
37 for (k = ARRAY_SIZE(cpuidle_mode) - 1; k > 0; k--) in cpuidle_sleep_enter()
38 if (cpuidle_mode[k] == allowed_mode) in cpuidle_sleep_enter()
41 allowed_state = k; in cpuidle_sleep_enter()
47 k = min_t(int, allowed_state, requested_state); in cpuidle_sleep_enter()
49 sh_mobile_call_standby(cpuidle_mode[k]); in cpuidle_sleep_enter()
51 return k; in cpuidle_sleep_enter()
/linux-4.1.27/drivers/isdn/hardware/eicon/
Dcapidtmf.c253 dword k; in capidtmf_goertzel_result() local
267 k = ((dword)(d & 0xffff)) * ((dword)(e & 0xffff)); in capidtmf_goertzel_result()
268 lo = k & 0xffff; in capidtmf_goertzel_result()
269 mid = k >> 16; in capidtmf_goertzel_result()
270 k = ((dword)(d >> 16)) * ((dword)(e & 0xffff)); in capidtmf_goertzel_result()
271 mid += k & 0xffff; in capidtmf_goertzel_result()
272 hi = k >> 16; in capidtmf_goertzel_result()
273 k = ((dword)(d & 0xffff)) * ((dword)(e >> 16)); in capidtmf_goertzel_result()
274 mid += k & 0xffff; in capidtmf_goertzel_result()
275 hi += k >> 16; in capidtmf_goertzel_result()
[all …]
Dcapifunc.c349 int i, k; in clean_adapter() local
352 k = li_total_channels - a->li_channels; in clean_adapter()
353 if (k == 0) { in clean_adapter()
359 if (a->li_base < k) { in clean_adapter()
362 (k - a->li_base) * sizeof(LI_CONFIG)); in clean_adapter()
363 for (i = 0; i < k; i++) { in clean_adapter()
366 k - a->li_base); in clean_adapter()
370 k - a->li_base); in clean_adapter()
374 li_total_channels = k; in clean_adapter()
488 int k = 0, i = 0; in diva_add_card() local
[all …]
/linux-4.1.27/arch/arm/mach-shmobile/
Dplatsmp-apmu.c58 int k; in apmu_power_off_poll() local
60 for (k = 0; k < 1000; k++) { in apmu_power_off_poll()
92 int k; in apmu_parse_cfg() local
96 for (k = 0; k < num; k++) { in apmu_parse_cfg()
99 for (bit = 0; bit < ARRAY_SIZE(apmu_config[k].cpus); bit++) { in apmu_parse_cfg()
100 id = apmu_config[k].cpus[bit]; in apmu_parse_cfg()
109 for (bit = 0; bit < ARRAY_SIZE(apmu_config[k].cpus); bit++) { in apmu_parse_cfg()
110 id = apmu_config[k].cpus[bit]; in apmu_parse_cfg()
114 fn(&apmu_config[k].iomem, index, bit); in apmu_parse_cfg()
Dpm-rcar.c40 int k; in rcar_sysc_pwr_on_off() local
42 for (k = 0; k < SYSCSR_RETRIES; k++) { in rcar_sysc_pwr_on_off()
48 if (k == SYSCSR_RETRIES) in rcar_sysc_pwr_on_off()
75 int k; in rcar_sysc_update() local
90 for (k = 0; k < SYSCISR_RETRIES; k++) { in rcar_sysc_update()
96 if (k == SYSCISR_RETRIES) in rcar_sysc_update()
Dplatsmp-scu.c82 int k; in shmobile_smp_scu_cpu_kill() local
88 for (k = 0; k < 1000; k++) { in shmobile_smp_scu_cpu_kill()
/linux-4.1.27/drivers/scsi/
Datp870u.c55 unsigned long adrcnt, k; in atp870u_intr_handle() local
90 for (k=0; k < 1000; k++) { in atp870u_intr_handle()
149 k = dev->id[c][target_id].last_len; in atp870u_intr_handle()
150 k -= adrcnt; in atp870u_intr_handle()
151 dev->id[c][target_id].tran_len = k; in atp870u_intr_handle()
206 k = dev->id[c][target_id].last_len; in atp870u_intr_handle()
207 k -= adrcnt; in atp870u_intr_handle()
208 dev->id[c][target_id].tran_len = k; in atp870u_intr_handle()
249 k = dev->id[c][target_id].last_len; in atp870u_intr_handle()
250 k -= adrcnt; in atp870u_intr_handle()
[all …]
Deata.c1515 unsigned int addr, k; in add_pci_ports() local
1518 for (k = 0; k < MAX_PCI; k++) { in add_pci_ports()
1537 driver_name, k, dev->bus->number, dev->devfn, addr); in add_pci_ports()
1541 io_port[MAX_INT_PARAM + (rev_scan ? (MAX_PCI - k) : (1 + k))] = in add_pci_ports()
1551 unsigned int j = 0, k; in eata2x_detect() local
1566 for (k = MAX_INT_PARAM; io_port[k]; k++) in eata2x_detect()
1567 if (io_port[k] == SKIP) in eata2x_detect()
1569 else if (io_port[k] <= MAX_ISA_ADDR) { in eata2x_detect()
1571 io_port[k] = SKIP; in eata2x_detect()
1572 } else if (io_port[k] >= MIN_EISA_ADDR in eata2x_detect()
[all …]
Du14-34f.c1085 unsigned int j = 0, k; in u14_34f_detect() local
1099 for (k = 0; k < MAX_BOARDS + 1; k++) sh[k] = NULL; in u14_34f_detect()
1101 for (k = 0; io_port[k]; k++) { in u14_34f_detect()
1103 if (io_port[k] == SKIP) continue; in u14_34f_detect()
1105 if (j < MAX_BOARDS && port_detect(io_port[k], j, tpnt)) j++; in u14_34f_detect()
1114 unsigned int k, pci_dir; in map_dma() local
1133 scsi_for_each_sg(SCpnt, sg, count, k) { in map_dma()
1134 cpp->sglist[k].address = H2DEV(sg_dma_address(sg)); in map_dma()
1135 cpp->sglist[k].num_bytes = H2DEV(sg_dma_len(sg)); in map_dma()
1198 unsigned int k; in scsi_to_dev_dir() local
[all …]
Dqlogicfas408.c183 int k; in ql_wai() local
187 k = 0; in ql_wai()
190 !((k = inb(qbase + 4)) & 0xe0)) { in ql_wai()
198 if (k & 0x60) in ql_wai()
200 if (k & 0x20) in ql_wai()
202 if (k & 0x40) in ql_wai()
262 unsigned long k; in ql_pcmd() local
330 if ((k = ql_wai(priv))) in ql_pcmd()
331 return (k << 16); in ql_pcmd()
332 k = inb(qbase + 5); /* should be 0x10, bus service */ in ql_pcmd()
[all …]
Dsg.c585 int mxsize, cmd_size, k; in sg_write() local
686 k = sg_common_write(sfp, srp, cmnd, sfp->timeout, blocking); in sg_write()
687 return (k < 0) ? k : count; in sg_write()
695 int k; in sg_new_write() local
755 k = sg_common_write(sfp, srp, cmnd, timeout, blocking); in sg_new_write()
756 if (k < 0) in sg_new_write()
757 return k; in sg_new_write()
767 int k, at_head; in sg_common_write() local
783 k = sg_start_req(srp, cmnd); in sg_common_write()
784 if (k) { in sg_common_write()
[all …]
Dconstants.c264 int arr_sz, k; in scsi_opcode_sa_name() local
283 for (k = 0; k < arr_sz; ++k, ++arr) { in scsi_opcode_sa_name()
287 if (k < arr_sz) in scsi_opcode_sa_name()
1266 int k; in scsi_mlreturn_string() local
1268 for (k = 0; k < ARRAY_SIZE(scsi_mlreturn_arr); ++k, ++arr) { in scsi_mlreturn_string()
Dppa.c180 int k; in ppa_wait() local
184 k = PPA_SPIN_TMO; in ppa_wait()
186 for (r = r_str(ppb); ((r & 0xc0) != 0xc0) && (k); k--) { in ppa_wait()
198 if (k) in ppa_wait()
420 int k; in ppa_select() local
427 k = PPA_SELECT_TMO; in ppa_select()
429 k--; in ppa_select()
431 } while ((r_str(ppb) & 0x40) && (k)); in ppa_select()
432 if (!k) in ppa_select()
441 k = PPA_SELECT_TMO; in ppa_select()
[all …]
Dscsi_debug.c813 int k; in check_readiness() local
816 k = find_first_bit(devip->uas_bm, SDEBUG_NUM_UAS); in check_readiness()
817 if (k != SDEBUG_NUM_UAS) { in check_readiness()
820 switch (k) { in check_readiness()
877 __func__, k); in check_readiness()
882 clear_bit(k, devip->uas_bm); in check_readiness()
1546 int k, alloc_len; in resp_readcap16() local
1554 for (k = 0; k < 8; ++k, capac >>= 8) in resp_readcap16()
1555 arr[7 - k] = capac & 0xff; in resp_readcap16()
1670 int k, offset, len, errsts, count, bump, na; in resp_rsup_opcodes() local
[all …]
Dimm.c172 int k; in imm_wait() local
178 k = IMM_SPIN_TMO; in imm_wait()
181 k--; in imm_wait()
184 while (!(r & 0x80) && (k)); in imm_wait()
206 if (k) in imm_wait()
540 int k; in imm_select() local
549 k = IMM_SELECT_TMO; in imm_select()
551 k--; in imm_select()
552 } while ((r_str(ppb) & 0x08) && (k)); in imm_select()
554 if (!k) in imm_select()
[all …]
Dgdth_proc.c142 int id, i, j, k, sec, flag; in gdth_show_info() local
295 for (k = 0; k < pds->count; ++k) { in gdth_show_info()
296 if (pds->list[k].tid == pdi->target_id && in gdth_show_info()
297 pds->list[k].lun == pdi->lun) { in gdth_show_info()
300 pds->list[k].retries, in gdth_show_info()
301 pds->list[k].reassigns); in gdth_show_info()
342 j = k = 0; in gdth_show_info()
364 k++; j--; in gdth_show_info()
402 no_mdrv - j - k, k); in gdth_show_info()
504 k = phg->entry[j].host_drive; in gdth_show_info()
[all …]
Dscsi_logging.c200 int len, k; in __scsi_format_command() local
210 for (k = 0; k < len; ++k) { in __scsi_format_command()
214 " %02x", cdb[k]); in __scsi_format_command()
222 int k; in scsi_print_command() local
252 for (k = 0; k < cmd->cmd_len; k += 16) { in scsi_print_command()
253 size_t linelen = min(cmd->cmd_len - k, 16); in scsi_print_command()
263 "CDB[%02x]: ", k); in scsi_print_command()
264 hex_dump_to_buffer(&cmd->cmnd[k], linelen, in scsi_print_command()
/linux-4.1.27/drivers/net/wireless/mwifiex/
Dcfp.c427 u32 k = 0; in mwifiex_get_supported_rates() local
436 k = mwifiex_copy_rates(rates, k, supported_rates_b, in mwifiex_get_supported_rates()
443 k = mwifiex_copy_rates(rates, k, supported_rates_g, in mwifiex_get_supported_rates()
454 k = mwifiex_copy_rates(rates, k, supported_rates_bg, in mwifiex_get_supported_rates()
461 k = mwifiex_copy_rates(rates, k, supported_rates_a, in mwifiex_get_supported_rates()
471 k = mwifiex_copy_rates(rates, k, supported_rates_a, in mwifiex_get_supported_rates()
477 k = mwifiex_copy_rates(rates, k, supported_rates_n, in mwifiex_get_supported_rates()
486 k = mwifiex_copy_rates(rates, k, adhoc_rates_b, in mwifiex_get_supported_rates()
492 k = mwifiex_copy_rates(rates, k, adhoc_rates_g, in mwifiex_get_supported_rates()
498 k = mwifiex_copy_rates(rates, k, adhoc_rates_bg, in mwifiex_get_supported_rates()
[all …]
/linux-4.1.27/drivers/mtd/tests/
Dsubpagetest.c94 int err = 0, k; in write_eraseblock2() local
97 for (k = 1; k < 33; ++k) { in write_eraseblock2()
98 if (addr + (subpgsize * k) > (loff_t)(ebnum + 1) * mtd->erasesize) in write_eraseblock2()
100 prandom_bytes_state(&rnd_state, writebuf, subpgsize * k); in write_eraseblock2()
101 err = mtd_write(mtd, addr, subpgsize * k, &written, writebuf); in write_eraseblock2()
102 if (unlikely(err || written != subpgsize * k)) { in write_eraseblock2()
107 subpgsize * k); in write_eraseblock2()
113 addr += subpgsize * k; in write_eraseblock2()
194 int err = 0, k; in verify_eraseblock2() local
197 for (k = 1; k < 33; ++k) { in verify_eraseblock2()
[all …]
Dspeedtest.c181 uint64_t k; in calc_speed() local
188 k = (uint64_t)goodebcnt * (mtd->erasesize / 1024) * 1000; in calc_speed()
189 do_div(k, ms); in calc_speed()
190 return k; in calc_speed()
195 int err, i, blocks, j, k; in mtd_speedtest_init() local
390 for (k = 1; k < 7; k++) { in mtd_speedtest_init()
391 blocks = 1 << k; in mtd_speedtest_init()
/linux-4.1.27/arch/m32r/include/asm/
Dtermios.h46 #define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios2)) argument
47 #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios2)) argument
48 #define user_termios_to_kernel_termios_1(k, u) copy_from_user(k, u, sizeof(struct termios)) argument
49 #define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios)) argument
/linux-4.1.27/arch/ia64/include/asm/
Dtermios.h52 #define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios2)) argument
53 #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios2)) argument
54 #define user_termios_to_kernel_termios_1(k, u) copy_from_user(k, u, sizeof(struct termios)) argument
55 #define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios)) argument
/linux-4.1.27/arch/parisc/include/asm/
Dtermios.h46 #define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios2)) argument
47 #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios2)) argument
48 #define user_termios_to_kernel_termios_1(k, u) copy_from_user(k, u, sizeof(struct termios)) argument
49 #define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios)) argument
/linux-4.1.27/arch/cris/include/asm/
Dtermios.h46 #define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios2)) argument
47 #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios2)) argument
48 #define user_termios_to_kernel_termios_1(k, u) copy_from_user(k, u, sizeof(struct termios)) argument
49 #define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios)) argument
/linux-4.1.27/drivers/scsi/libsas/
Dsas_phy.c141 int k; in sas_register_phys() local
146 for (k = 0; k < PORT_NUM_EVENTS; k++) { in sas_register_phys()
147 INIT_SAS_WORK(&phy->port_events[k].work, sas_port_event_fns[k]); in sas_register_phys()
148 phy->port_events[k].phy = phy; in sas_register_phys()
151 for (k = 0; k < PHY_NUM_EVENTS; k++) { in sas_register_phys()
152 INIT_SAS_WORK(&phy->phy_events[k].work, sas_phy_event_fns[k]); in sas_register_phys()
153 phy->phy_events[k].phy = phy; in sas_register_phys()
/linux-4.1.27/tools/perf/tests/
Dhists_link.c68 size_t i = 0, k; in add_hist_entries() local
78 for (k = 0; k < ARRAY_SIZE(fake_common_samples); k++) { in add_hist_entries()
85 sample.pid = fake_common_samples[k].pid; in add_hist_entries()
86 sample.tid = fake_common_samples[k].pid; in add_hist_entries()
87 sample.ip = fake_common_samples[k].ip; in add_hist_entries()
97 fake_common_samples[k].thread = al.thread; in add_hist_entries()
98 fake_common_samples[k].map = al.map; in add_hist_entries()
99 fake_common_samples[k].sym = al.sym; in add_hist_entries()
102 for (k = 0; k < ARRAY_SIZE(fake_samples[i]); k++) { in add_hist_entries()
109 sample.pid = fake_samples[i][k].pid; in add_hist_entries()
[all …]
Dhists_common.c120 size_t k; in setup_fake_machine() local
131 for (k = 0; k < fake_symbols[i].nr_syms; k++) { in setup_fake_machine()
133 struct fake_sym *fsym = &fake_symbols[i].syms[k]; in setup_fake_machine()
/linux-4.1.27/include/linux/mmc/
Dsh_mmcif.h137 int k; in sh_mmcif_boot_do_read_single() local
150 for (k = 0; k < (SH_MMCIF_BBS / 4); k++) in sh_mmcif_boot_do_read_single()
151 buf[k] = sh_mmcif_readl(base, MMCIF_CE_DATA); in sh_mmcif_boot_do_read_single()
161 unsigned long k; in sh_mmcif_boot_do_read() local
178 for (k = 0; !ret && k < nr_blocks; k++) in sh_mmcif_boot_do_read()
179 ret = sh_mmcif_boot_do_read_single(base, first_block + k, in sh_mmcif_boot_do_read()
180 buf + (k * SH_MMCIF_BBS)); in sh_mmcif_boot_do_read()
/linux-4.1.27/samples/seccomp/
Dbpf-helper.c36 if (labels->labels[filter->k].location == 0xffffffff) { in bpf_resolve_jumps()
38 labels->labels[filter->k].label); in bpf_resolve_jumps()
41 filter->k = labels->labels[filter->k].location - in bpf_resolve_jumps()
47 if (labels->labels[filter->k].location != 0xffffffff) { in bpf_resolve_jumps()
49 labels->labels[filter->k].label); in bpf_resolve_jumps()
52 labels->labels[filter->k].location = insn; in bpf_resolve_jumps()
53 filter->k = 0; /* fall through */ in bpf_resolve_jumps()
94 filter->code, filter->jt, filter->jf, filter->k); in seccomp_bpf_print()
/linux-4.1.27/fs/ubifs/
Dkey.h109 static inline void ino_key_init_flash(const struct ubifs_info *c, void *k, in ino_key_init_flash() argument
112 union ubifs_key *key = k; in ino_key_init_flash()
116 memset(k + 8, 0, UBIFS_MAX_KEY_LEN - 8); in ino_key_init_flash()
187 static inline void dent_key_init_flash(const struct ubifs_info *c, void *k, in dent_key_init_flash() argument
190 union ubifs_key *key = k; in dent_key_init_flash()
197 memset(k + 8, 0, UBIFS_MAX_KEY_LEN - 8); in dent_key_init_flash()
238 static inline void xent_key_init_flash(const struct ubifs_info *c, void *k, in xent_key_init_flash() argument
241 union ubifs_key *key = k; in xent_key_init_flash()
248 memset(k + 8, 0, UBIFS_MAX_KEY_LEN - 8); in xent_key_init_flash()
338 static inline int key_type_flash(const struct ubifs_info *c, const void *k) in key_type_flash() argument
[all …]
/linux-4.1.27/fs/squashfs/
Dzlib_wrapper.c69 int zlib_err, zlib_init = 0, k = 0; in zlib_uncompress() local
77 if (stream->avail_in == 0 && k < b) { in zlib_uncompress()
80 stream->next_in = bh[k]->b_data + offset; in zlib_uncompress()
102 if (stream->avail_in == 0 && k < b) in zlib_uncompress()
103 put_bh(bh[k++]); in zlib_uncompress()
115 if (k < b) in zlib_uncompress()
121 for (; k < b; k++) in zlib_uncompress()
122 put_bh(bh[k]); in zlib_uncompress()
Dxz_wrapper.c137 int avail, total = 0, k = 0; in squashfs_xz_uncompress() local
148 if (stream->buf.in_pos == stream->buf.in_size && k < b) { in squashfs_xz_uncompress()
151 stream->buf.in = bh[k]->b_data + offset; in squashfs_xz_uncompress()
167 if (stream->buf.in_pos == stream->buf.in_size && k < b) in squashfs_xz_uncompress()
168 put_bh(bh[k++]); in squashfs_xz_uncompress()
173 if (xz_err != XZ_STREAM_END || k < b) in squashfs_xz_uncompress()
179 for (; k < b; k++) in squashfs_xz_uncompress()
180 put_bh(bh[k]); in squashfs_xz_uncompress()
Dblock.c97 int bytes, compressed, b = 0, k = 0, avail, i; in squashfs_read_data() local
180 for (bytes = length; k < b; k++) { in squashfs_read_data()
190 memcpy(data + pg_offset, bh[k]->b_data + offset, in squashfs_read_data()
197 put_bh(bh[k]); in squashfs_read_data()
206 for (; k < b; k++) in squashfs_read_data()
207 put_bh(bh[k]); in squashfs_read_data()
/linux-4.1.27/drivers/acpi/acpica/
Dutownerid.c68 u32 k; in acpi_ut_allocate_owner_id() local
99 for (k = acpi_gbl_next_owner_id_offset; k < 32; k++) { in acpi_ut_allocate_owner_id()
107 if (!(acpi_gbl_owner_id_mask[j] & (1 << k))) { in acpi_ut_allocate_owner_id()
113 acpi_gbl_owner_id_mask[j] |= (1 << k); in acpi_ut_allocate_owner_id()
116 acpi_gbl_next_owner_id_offset = (u8)(k + 1); in acpi_ut_allocate_owner_id()
125 (acpi_owner_id) ((k + 1) + ACPI_MUL_32(j)); in acpi_ut_allocate_owner_id()
Dexconvrt.c292 u32 k = 0; in acpi_ex_convert_to_ascii() local
343 string[k] = (u8) (ACPI_ASCII_ZERO + remainder); in acpi_ex_convert_to_ascii()
344 k++; in acpi_ex_convert_to_ascii()
358 string[k] = in acpi_ex_convert_to_ascii()
361 k++; in acpi_ex_convert_to_ascii()
375 if (!k) { in acpi_ex_convert_to_ascii()
377 k = 1; in acpi_ex_convert_to_ascii()
380 string[k] = 0; in acpi_ex_convert_to_ascii()
381 return ((u32) k); in acpi_ex_convert_to_ascii()
/linux-4.1.27/crypto/asymmetric_keys/
Drsa.c163 static int RSA_verify(const u8 *H, const u8 *EM, size_t k, size_t hash_size, in RSA_verify() argument
168 kenter(",,%zu,%zu,%zu", k, hash_size, asn1_size); in RSA_verify()
170 if (k < 2 + 1 + asn1_size + hash_size) in RSA_verify()
179 T_offset = k - (asn1_size + hash_size); in RSA_verify()
220 size_t k; in RSA_verify_signature() local
228 k = mpi_get_nbits(key->rsa.n); in RSA_verify_signature()
236 pr_devel("step 1: k=%zu size(S)=%zu\n", k, tsize); in RSA_verify_signature()
237 if (k < tsize) { in RSA_verify_signature()
243 k = (k + 7) / 8; in RSA_verify_signature()
256 ret = RSA_I2OSP(m, k, &EM); in RSA_verify_signature()
[all …]
/linux-4.1.27/drivers/tty/vt/
Dconsolemap.c213 int i, j, k, glyph; in set_inverse_trans_unicode() local
235 for (k = 0; k < 64; k++) { in set_inverse_trans_unicode()
236 glyph = p2[k]; in set_inverse_trans_unicode()
239 q[glyph] = (i << 11) + (j << 6) + k; in set_inverse_trans_unicode()
432 int i, j, k; in con_unify_unimap() local
448 for (k = 0; k < 32; k++) { in con_unify_unimap()
449 if (!p1[k] && !q1[k]) in con_unify_unimap()
451 if (!p1[k] || !q1[k]) in con_unify_unimap()
453 if (memcmp(p1[k], q1[k], 64*sizeof(u16))) in con_unify_unimap()
456 if (k < 32) in con_unify_unimap()
[all …]
/linux-4.1.27/arch/mips/sibyte/bcm1480/
Dirq.c94 int i = 0, old_cpu, cpu, int_on, k; in bcm1480_set_affinity() local
113 for (k=0; k<2; k++) { /* Loop through high and low interrupt mask register */ in bcm1480_set_affinity()
114 …dq(IOADDR(A_BCM1480_IMR_MAPPER(old_cpu) + R_BCM1480_IMR_INTERRUPT_MASK_H + (k*BCM1480_IMR_HL_SPACI… in bcm1480_set_affinity()
119 …s, IOADDR(A_BCM1480_IMR_MAPPER(old_cpu) + R_BCM1480_IMR_INTERRUPT_MASK_H + (k*BCM1480_IMR_HL_SPACI… in bcm1480_set_affinity()
124 …cur_ints = ____raw_readq(IOADDR(A_BCM1480_IMR_MAPPER(cpu) + R_BCM1480_IMR_INTERRUPT_MASK_H + (k*BC… in bcm1480_set_affinity()
126 …____raw_writeq(cur_ints, IOADDR(A_BCM1480_IMR_MAPPER(cpu) + R_BCM1480_IMR_INTERRUPT_MASK_H + (k*BC… in bcm1480_set_affinity()
157 int k; in ack_bcm1480_irq() local
169 for (k=0; k<2; k++) { /* Loop through high and low LDT interrupts */ in ack_bcm1480_irq()
171 R_BCM1480_IMR_LDT_INTERRUPT_H + (k*BCM1480_IMR_HL_SPACING)))); in ack_bcm1480_irq()
182 R_BCM1480_IMR_LDT_INTERRUPT_CLR_H + (k*BCM1480_IMR_HL_SPACING)))); in ack_bcm1480_irq()
[all …]
/linux-4.1.27/arch/mn10300/include/uapi/asm/
Dtermios.h74 #define user_termios_to_kernel_termios(k, u) \ argument
75 copy_from_user(k, u, sizeof(struct termios2))
76 #define kernel_termios_to_user_termios(u, k) \ argument
77 copy_to_user(u, k, sizeof(struct termios2))
78 #define user_termios_to_kernel_termios_1(k, u) \ argument
79 copy_from_user(k, u, sizeof(struct termios))
80 #define kernel_termios_to_user_termios_1(u, k) \ argument
81 copy_to_user(u, k, sizeof(struct termios))
/linux-4.1.27/drivers/mtd/
Dssfdc.c80 int k; in get_chs() local
83 k = 0; in get_chs()
84 while (chs_table[k].size > 0 && size > chs_table[k].size) in get_chs()
85 k++; in get_chs()
87 if (chs_table[k].size > 0) { in get_chs()
89 *cyl = chs_table[k].cyl; in get_chs()
91 *head = chs_table[k].head; in get_chs()
93 *sec = chs_table[k].sec; in get_chs()
108 int ret, k, cis_sector; in get_valid_cis_sector() local
124 for (k = 0, offset = 0; k < 4; k++, offset += mtd->erasesize) { in get_valid_cis_sector()
[all …]
/linux-4.1.27/kernel/
Dkthread.c59 static inline struct kthread *to_kthread(struct task_struct *k) in to_kthread() argument
61 return __to_kthread(k->vfork_done); in to_kthread()
64 static struct kthread *to_live_kthread(struct task_struct *k) in to_live_kthread() argument
66 struct completion *vfork = ACCESS_ONCE(k->vfork_done); in to_live_kthread()
383 static void __kthread_unpark(struct task_struct *k, struct kthread *kthread) in __kthread_unpark() argument
394 __kthread_bind(k, kthread->cpu, TASK_PARKED); in __kthread_unpark()
395 wake_up_state(k, TASK_PARKED); in __kthread_unpark()
407 void kthread_unpark(struct task_struct *k) in kthread_unpark() argument
409 struct kthread *kthread = to_live_kthread(k); in kthread_unpark()
412 __kthread_unpark(k, kthread); in kthread_unpark()
[all …]
Drange.c126 int i, j, k = az - 1, nr_range = az; in clean_sort_range() local
128 for (i = 0; i < k; i++) { in clean_sort_range()
131 for (j = k; j > i; j--) { in clean_sort_range()
133 k = j; in clean_sort_range()
139 range[i].start = range[k].start; in clean_sort_range()
140 range[i].end = range[k].end; in clean_sort_range()
141 range[k].start = 0; in clean_sort_range()
142 range[k].end = 0; in clean_sort_range()
143 k--; in clean_sort_range()
/linux-4.1.27/drivers/scsi/csiostor/
Dcsio_isr.c356 int k = CSIO_EXTRA_VECS; in csio_add_msix_desc() local
358 int cnt = hw->num_sqsets + k; in csio_add_msix_desc()
372 for (i = k; i < cnt; i++, entryp++) { in csio_add_msix_desc()
383 int rv, i, j, k = 0; in csio_request_irqs() local
405 rv = request_irq(entryp[k].vector, csio_nondata_isr, 0, in csio_request_irqs()
406 entryp[k].desc, hw); in csio_request_irqs()
409 entryp[k].vector, rv); in csio_request_irqs()
413 entryp[k++].dev_id = (void *)hw; in csio_request_irqs()
415 rv = request_irq(entryp[k].vector, csio_fwevt_isr, 0, in csio_request_irqs()
416 entryp[k].desc, hw); in csio_request_irqs()
[all …]
/linux-4.1.27/drivers/media/usb/pwc/
Dpwc-dec23.c104 int compression_mode, j, k, bit, pw; in build_table_color() local
116 for (k = 0; k < 16; k++) { in build_table_color()
117 if (k == 0) in build_table_color()
119 else if (k >= 1 && k < 3) in build_table_color()
121 else if (k >= 3 && k < 6) in build_table_color()
123 else if (k >= 6 && k < 10) in build_table_color()
125 else if (k >= 10 && k < 13) in build_table_color()
127 else if (k >= 13 && k < 15) in build_table_color()
131 if (k == 0) in build_table_color()
138 p0[k + 0x00] = (1 * pw) + 0x80; in build_table_color()
[all …]
/linux-4.1.27/arch/arm64/crypto/
Daes-ce.S46 .macro do_enc_Nx, de, mc, k, i0, i1, i2, i3
47 aes\de \i0\().16b, \k\().16b
50 aes\de \i1\().16b, \k\().16b
53 aes\de \i2\().16b, \k\().16b
55 aes\de \i3\().16b, \k\().16b
62 .macro round_Nx, enc, k, i0, i1, i2, i3
64 do_enc_Nx e, mc, \k, \i0, \i1, \i2, \i3
66 do_enc_Nx d, imc, \k, \i0, \i1, \i2, \i3
71 .macro fin_round_Nx, de, k, k2, i0, i1, i2, i3
72 aes\de \i0\().16b, \k\().16b
[all …]
/linux-4.1.27/arch/sh/mm/
Dconsistent.c73 int k; in dma_generic_free_coherent() local
75 for (k = 0; k < (1 << order); k++) in dma_generic_free_coherent()
76 __free_pages(pfn_to_page(pfn + k), 0); in dma_generic_free_coherent()
114 int k = strlen(name); in memchunk_cmdline_override() local
118 if (!strncmp(name, p, k) && p[k] == '=') { in memchunk_cmdline_override()
119 p += k + 1; in memchunk_cmdline_override()
/linux-4.1.27/include/linux/input/
Dmatrix_keypad.h15 #define KEY_ROW(k) (((k) >> 24) & 0xff) argument
16 #define KEY_COL(k) (((k) >> 16) & 0xff) argument
17 #define KEY_VAL(k) ((k) & 0xffff) argument
/linux-4.1.27/arch/arm/net/
Dbpf_jit_32.c47 #define SCRATCH_OFF(k) (SCRATCH_SP_OFFSET + 4 * (k)) argument
50 #define SEEN_MEM_WORD(k) (1 << (k)) argument
252 static u16 imm_offset(u32 k, struct jit_ctx *ctx) in imm_offset() argument
264 if (ctx->imms[i] == k) in imm_offset()
270 ctx->imms[i] = k; in imm_offset()
278 ctx->target[offset / 4] = k; in imm_offset()
487 u32 k; in build_body() local
494 k = inst->k; in build_body()
503 emit_mov_i(r_A, k, ctx); in build_body()
513 ctx->seen |= SEEN_MEM_WORD(k); in build_body()
[all …]
/linux-4.1.27/drivers/net/wireless/orinoco/
Dhermes.c108 int k = CMD_BUSY_TIMEOUT; in hermes_issue_cmd() local
113 while ((reg & HERMES_CMD_BUSY) && k) { in hermes_issue_cmd()
114 k--; in hermes_issue_cmd()
139 int k; in hermes_doicmd_wait() local
147 k = CMD_INIT_TIMEOUT; in hermes_doicmd_wait()
148 while ((!(reg & HERMES_EV_CMD)) && k) { in hermes_doicmd_wait()
149 k--; in hermes_doicmd_wait()
202 int k; in hermes_init() local
215 k = CMD_BUSY_TIMEOUT; in hermes_init()
217 while (k && (reg & HERMES_CMD_BUSY)) { in hermes_init()
[all …]
/linux-4.1.27/arch/mips/include/asm/
Dtermios.h81 static inline int user_termios_to_kernel_termios(struct ktermios __user *k, in user_termios_to_kernel_termios() argument
84 return copy_from_user(k, u, sizeof(struct termios2)) ? -EFAULT : 0; in user_termios_to_kernel_termios()
88 struct ktermios *k) in kernel_termios_to_user_termios() argument
90 return copy_to_user(u, k, sizeof(struct termios2)) ? -EFAULT : 0; in kernel_termios_to_user_termios()
93 static inline int user_termios_to_kernel_termios_1(struct ktermios *k, in user_termios_to_kernel_termios_1() argument
96 return copy_from_user(k, u, sizeof(struct termios)) ? -EFAULT : 0; in user_termios_to_kernel_termios_1()
100 struct ktermios *k) in kernel_termios_to_user_termios_1() argument
102 return copy_to_user(u, k, sizeof(struct termios)) ? -EFAULT : 0; in kernel_termios_to_user_termios_1()
/linux-4.1.27/drivers/input/keyboard/
Dsh_keysc.c78 int k; in sh_keysc_map_dbg() local
80 for (k = 0; k < BITS_TO_LONGS(SH_KEYSC_MAXKEYS); k++) in sh_keysc_map_dbg()
81 dev_dbg(dev, "%s[%d] 0x%lx\n", str, k, map[k]); in sh_keysc_map_dbg()
95 int i, k, n; in sh_keysc_isr() local
117 for (k = 0; k < keyin_nr; k++) { in sh_keysc_isr()
118 if (tmp & (1 << k)) in sh_keysc_isr()
119 __set_bit(n + k, keys); in sh_keysc_isr()
141 k = pdata->keycodes[i]; in sh_keysc_isr()
142 if (!k) in sh_keysc_isr()
149 input_event(priv->input, EV_KEY, k, 1); in sh_keysc_isr()
[all …]
/linux-4.1.27/include/trace/events/
Dbcache.h41 TP_PROTO(struct bkey *k),
42 TP_ARGS(k),
52 __entry->inode = KEY_INODE(k);
53 __entry->offset = KEY_OFFSET(k);
54 __entry->size = KEY_SIZE(k);
55 __entry->dirty = KEY_DIRTY(k);
187 TP_PROTO(struct bkey *k),
188 TP_ARGS(k)
209 TP_PROTO(struct bkey *k),
210 TP_ARGS(k)
[all …]
/linux-4.1.27/drivers/isdn/mISDN/
Ddsp_dtmf.c124 int k, n, i; in dsp_dtmf_goertzel_decode() local
158 for (k = 0; k < NCOEFF; k++) { in dsp_dtmf_goertzel_decode()
166 result[k] = in dsp_dtmf_goertzel_decode()
168 (((cos2pik[k] * sk) >> 15) * sk2) + in dsp_dtmf_goertzel_decode()
184 for (k = 0; k < NCOEFF; k++) { in dsp_dtmf_goertzel_decode()
189 cos2pik_ = cos2pik[k]; in dsp_dtmf_goertzel_decode()
200 result[k] = in dsp_dtmf_goertzel_decode()
202 (((cos2pik[k] * sk) >> 15) * sk2) + in dsp_dtmf_goertzel_decode()
/linux-4.1.27/drivers/infiniband/hw/mlx5/
Dmem.c50 int i, k; in mlx5_ib_cont_pages() local
81 for (k = 0; k < len; k++) { in mlx5_ib_cont_pages()
157 int i, k; in __mlx5_ib_populate_pas() local
183 for (k = 0; k < len; k++) { in __mlx5_ib_populate_pas()
185 cur = base + (k << umem_page_shift); in __mlx5_ib_populate_pas()
193 base + (k << umem_page_shift)); in __mlx5_ib_populate_pas()
/linux-4.1.27/arch/x86/mm/
Dpageattr-test.c118 int i, k; in pageattr_test() local
146 for (k = 0; k < len[i]; k++) { in pageattr_test()
147 pte = lookup_address(addr[i] + k*PAGE_SIZE, &level); in pageattr_test()
153 if (k == 0) { in pageattr_test()
158 len[i] = k; in pageattr_test()
162 if (test_bit(pfn + k, bm)) { in pageattr_test()
163 len[i] = k; in pageattr_test()
166 __set_bit(pfn + k, bm); in pageattr_test()
168 if (!addr[i] || !pte || !k) { in pageattr_test()
/linux-4.1.27/arch/s390/include/asm/
Dtermios.h20 #define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios2)) argument
21 #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios2)) argument
/linux-4.1.27/sound/pci/asihpi/
Dhpidebug.c62 int k; in hpi_debug_data() local
73 for (k = 0; k < cols && i < len; i++, k++) in hpi_debug_data()
74 printk("%s%04x", k == 0 ? "" : " ", pdata[i]); in hpi_debug_data()
/linux-4.1.27/sound/soc/codecs/
Drl6231.c60 int k, red, n_t, pll_out, in_t, out_t; in rl6231_pll_calc() local
68 k = 100000000 / freq_out - 2; in rl6231_pll_calc()
69 if (k > RL6231_PLL_K_MAX) in rl6231_pll_calc()
70 k = RL6231_PLL_K_MAX; in rl6231_pll_calc()
72 in_t = freq_in / (k + 2); in rl6231_pll_calc()
110 pll_code->k_code = k; in rl6231_pll_calc()
/linux-4.1.27/drivers/net/wireless/ath/
Dkey.c130 const struct ath_keyval *k, in ath_hw_set_keycache_entry() argument
143 switch (k->kv_type) { in ath_hw_set_keycache_entry()
164 if (k->kv_len < WLAN_KEY_LEN_WEP40) { in ath_hw_set_keycache_entry()
166 k->kv_len); in ath_hw_set_keycache_entry()
169 if (k->kv_len <= WLAN_KEY_LEN_WEP40) in ath_hw_set_keycache_entry()
171 else if (k->kv_len <= WLAN_KEY_LEN_WEP104) in ath_hw_set_keycache_entry()
180 ath_err(common, "cipher %u not supported\n", k->kv_type); in ath_hw_set_keycache_entry()
184 key0 = get_unaligned_le32(k->kv_val + 0); in ath_hw_set_keycache_entry()
185 key1 = get_unaligned_le16(k->kv_val + 4); in ath_hw_set_keycache_entry()
186 key2 = get_unaligned_le32(k->kv_val + 6); in ath_hw_set_keycache_entry()
[all …]
/linux-4.1.27/sound/core/
Dpcm_lib.c734 unsigned int k, struct snd_interval *c) in snd_interval_muldivk() argument
742 c->min = muldiv32(a->min, b->min, k, &r); in snd_interval_muldivk()
744 c->max = muldiv32(a->max, b->max, k, &r); in snd_interval_muldivk()
764 void snd_interval_mulkdiv(const struct snd_interval *a, unsigned int k, in snd_interval_mulkdiv() argument
773 c->min = muldiv32(a->min, k, b->max, &r); in snd_interval_mulkdiv()
776 c->max = muldiv32(a->max, k, b->min, &r); in snd_interval_mulkdiv()
809 unsigned int k; in snd_interval_ratnum() local
816 for (k = 0; k < rats_count; ++k) { in snd_interval_ratnum()
817 unsigned int num = rats[k].num; in snd_interval_ratnum()
824 if (den < rats[k].den_min) in snd_interval_ratnum()
[all …]
/linux-4.1.27/arch/mips/net/
Dbpf_jit.c104 #define SCRATCH_OFF(k) (4 * (k)) argument
143 static inline int optimize_div(u32 *k) in optimize_div() argument
146 if (!(*k & (*k-1))) { in optimize_div()
147 *k = ilog2(*k); in optimize_div()
743 u32 k, b_off __maybe_unused; in build_body() local
750 __func__, inst->code, inst->jt, inst->jf, inst->k); in build_body()
751 k = inst->k; in build_body()
761 emit_load_imm(r_A, k, ctx); in build_body()
773 emit_load(r_A, r_M, SCRATCH_OFF(k), ctx); in build_body()
788 if ((int)k < 0) in build_body()
[all …]
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dqp.c509 int k; in mlx4_create_zones() local
570 for (k = MLX4_QP_TABLE_ZONE_RSS + 1; k < sizeof(*bitmap)/sizeof((*bitmap)[0]); in mlx4_create_zones()
571 k++) { in mlx4_create_zones()
644 err = mlx4_bitmap_init(*bitmap + k, roundup_pow_of_two(size), in mlx4_create_zones()
651 err = mlx4_bitmap_init(*bitmap + k, 1, in mlx4_create_zones()
654 mlx4_bitmap_alloc_range(*bitmap + k, 1, 1, 0); in mlx4_create_zones()
662 err = mlx4_zone_add_one(qp_table->zones, *bitmap + k, in mlx4_create_zones()
666 offset, qp_table->zones_uids + k); in mlx4_create_zones()
680 for (k = 0; k < bitmap_initialized; k++) in mlx4_create_zones()
681 mlx4_bitmap_cleanup(*bitmap + k); in mlx4_create_zones()
[all …]
/linux-4.1.27/tools/thermal/tmon/
Dsysfs.c292 int i, j, n, k = 0; in scan_tzones() local
311 sysfs_get_string(tz_name, "type", ptdata.tzi[k].type); in scan_tzones()
312 ptdata.tzi[k].instance = i; in scan_tzones()
315 ptdata.tzi[k].nr_cdev = 0; in scan_tzones()
316 ptdata.tzi[k].nr_trip_pts = 0; in scan_tzones()
321 &ptdata.tzi[k], k)) in scan_tzones()
329 &ptdata.tzi[k], i, j)) in scan_tzones()
338 ptdata.tzi[k].nr_cdev); in scan_tzones()
339 k++; in scan_tzones()
350 int i, n, k = 0; in scan_cdevs() local
[all …]
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
Dfw_inc.c327 int n, i, k; in fw_handle_gateway_data4() local
348 for (k = 0; k < ARRAY_SIZE(block->value); k++) in fw_handle_gateway_data4()
349 FW_ADDR_CHECK(gwa_val[k], d->gateway_value_addr[k], in fw_handle_gateway_data4()
367 for (k = 0; k < ARRAY_SIZE(block->value); k++) in fw_handle_gateway_data4()
368 v[k] = le32_to_cpu(block[i].value[k]); in fw_handle_gateway_data4()
374 for (k = 0; k < ARRAY_SIZE(block->value); k++) in fw_handle_gateway_data4()
375 iowrite32(v[k], gwa_val[k]); in fw_handle_gateway_data4()
/linux-4.1.27/arch/powerpc/kernel/
Dcacheinfo.c133 static struct cache_index_dir *kobj_to_cache_index_dir(struct kobject *k) in kobj_to_cache_index_dir() argument
135 return container_of(k, struct cache_index_dir, kobj); in kobj_to_cache_index_dir()
521 static ssize_t cache_index_show(struct kobject *k, struct attribute *attr, char *buf) in cache_index_show() argument
527 return kobj_attr->show(k, kobj_attr, buf); in cache_index_show()
530 static struct cache *index_kobj_to_cache(struct kobject *k) in index_kobj_to_cache() argument
534 index = kobj_to_cache_index_dir(k); in index_kobj_to_cache()
539 static ssize_t size_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in size_show() argument
544 cache = index_kobj_to_cache(k); in size_show()
556 static ssize_t line_size_show(struct kobject *k, struct kobj_attribute *attr, char *buf) in line_size_show() argument
561 cache = index_kobj_to_cache(k); in line_size_show()
[all …]
/linux-4.1.27/arch/ia64/kernel/
Defi.c307 kern_memdesc_t *k; in walk() local
311 for (k = kern_memmap; k->start != ~0UL; k++) { in walk()
312 if (k->attribute != attr) in walk()
314 start = PAGE_ALIGN(k->start); in walk()
315 end = (k->start + (k->num_pages << EFI_PAGE_SHIFT)) & PAGE_MASK; in walk()
1051 struct kern_memdesc *k, *prev = NULL; in efi_memmap_init() local
1059 k = kern_memmap = find_memmap_space(); in efi_memmap_init()
1071 k->attribute = EFI_MEMORY_UC; in efi_memmap_init()
1072 k->start = md->phys_addr; in efi_memmap_init()
1073 k->num_pages = md->num_pages; in efi_memmap_init()
[all …]
/linux-4.1.27/arch/x86/kernel/
Ddumpstack_64.c37 unsigned k; in in_exception_stack() local
43 for (k = 0; k < N_EXCEPTION_STACKS; k++) { in in_exception_stack()
44 unsigned long end = per_cpu(orig_ist, cpu).ist[k]; in in_exception_stack()
62 if (*usedp & (1U << k)) in in_exception_stack()
64 *usedp |= 1U << k; in in_exception_stack()
65 *idp = x86_stack_ids[k]; in in_exception_stack()
74 if (k == DEBUG_STACK - 1 && stack >= end - DEBUG_STKSZ) { in in_exception_stack()
/linux-4.1.27/arch/arc/include/asm/
Duaccess.h62 #define __get_user_fn(sz, u, k) \ argument
66 case 1: __arc_get_user_one(*(k), u, "ldb", __ret); break; \
67 case 2: __arc_get_user_one(*(k), u, "ldw", __ret); break; \
68 case 4: __arc_get_user_one(*(k), u, "ld", __ret); break; \
69 case 8: __arc_get_user_one_64(*(k), u, __ret); break; \
116 #define __put_user_fn(sz, u, k) \ argument
120 case 1: __arc_put_user_one(*(k), u, "stb", __ret); break; \
121 case 2: __arc_put_user_one(*(k), u, "stw", __ret); break; \
122 case 4: __arc_put_user_one(*(k), u, "st", __ret); break; \
123 case 8: __arc_put_user_one_64(*(k), u, __ret); break; \
/linux-4.1.27/drivers/net/hamradio/
Dscc.c342 int k; in flush_rx_FIFO() local
344 for (k=0; k<3; k++) in flush_rx_FIFO()
635 int k; in scc_isr() local
639 for(k=0; k < SCC_IRQTIMEOUT; k++) in scc_isr()
655 if (k == SCC_IRQTIMEOUT) in scc_isr()
675 for (k = 0; InReg(ctrl->chan_A,R3) && k < SCC_IRQTIMEOUT; k++) in scc_isr()
686 if (k == SCC_IRQTIMEOUT) in scc_isr()
1090 int k; in is_grouped() local
1096 for (k = 0; k < (Nchips * 2); k++) in is_grouped()
1098 scc2 = &SCC_Info[k]; in is_grouped()
[all …]
/linux-4.1.27/arch/powerpc/oprofile/cell/
Dspu_profiler.c140 int cpu, node, k, num_samples, spu_num; in profile_spus() local
169 for (k = 0; k < SPUS_PER_NODE; k++) { in profile_spus()
170 spu_num = k + (node * SPUS_PER_NODE); in profile_spus()
172 samples + (k * TRACE_ARRAY_SIZE), in profile_spus()
/linux-4.1.27/drivers/clk/sunxi/
Dclk-sunxi.c249 u8 *n, u8 *k, u8 *m, u8 *p) in sun4i_get_pll1_factors() argument
266 *k = 1; in sun4i_get_pll1_factors()
268 *k = 0; in sun4i_get_pll1_factors()
289 div /= (*k + 1); in sun4i_get_pll1_factors()
300 u8 *n, u8 *k, u8 *m, u8 *p) in sun6i_a31_get_pll1_factors() argument
333 *k = 3; in sun6i_a31_get_pll1_factors()
336 *k = 2; in sun6i_a31_get_pll1_factors()
339 *k = 1; in sun6i_a31_get_pll1_factors()
342 *k = 0; in sun6i_a31_get_pll1_factors()
365 *n = freq_mhz * (*m + 1) / ((*k + 1) * parent_freq_mhz) - 1; in sun6i_a31_get_pll1_factors()
[all …]
Dclk-factors.c47 u8 n = 1, k = 0, p = 0, m = 0; in clk_factors_recalc_rate() local
60 k = FACTOR_GET(config->kshift, config->kwidth, reg); in clk_factors_recalc_rate()
67 rate = (parent_rate * (n + config->n_start) * (k + 1) >> p) / (m + 1); in clk_factors_recalc_rate()
122 u8 n = 0, k = 0, m = 0, p = 0; in clk_factors_set_rate() local
128 factors->get_factors((u32 *)&rate, (u32)parent_rate, &n, &k, &m, &p); in clk_factors_set_rate()
138 reg = FACTOR_SET(config->kshift, config->kwidth, reg, k); in clk_factors_set_rate()
/linux-4.1.27/arch/x86/vdso/
Dvdso2c.h86 int k; in BITSFUNC() local
92 for (k = 0; k < NSYMS; k++) { in BITSFUNC()
93 if (!strcmp(name, required_syms[k].name)) { in BITSFUNC()
94 if (syms[k]) { in BITSFUNC()
96 required_syms[k].name); in BITSFUNC()
105 syms[k] = GET_LE(&sym->st_value); in BITSFUNC()
/linux-4.1.27/net/ax25/
Dsysctl_net_ax25.c154 int k; in ax25_register_dev_sysctl() local
161 for (k = 0; k < AX25_MAX_VALUES; k++) in ax25_register_dev_sysctl()
162 table[k].data = &ax25_dev->values[k]; in ax25_register_dev_sysctl()
/linux-4.1.27/drivers/media/usb/dvb-usb-v2/
Dmxl111sf-i2c.c443 int i, k, ret = 0; in mxl111sf_i2c_hw_xfer_msg() local
554 for (k = 0; k < 26; k++) in mxl111sf_i2c_hw_xfer_msg()
555 buf[k] = USB_END_I2C_CMD; in mxl111sf_i2c_hw_xfer_msg()
679 for (k = 0; in mxl111sf_i2c_hw_xfer_msg()
680 k < 8-(i+1); in mxl111sf_i2c_hw_xfer_msg()
681 k++) { in mxl111sf_i2c_hw_xfer_msg()
683 msg->buf[(index*8)+(k+i+1)] = in mxl111sf_i2c_hw_xfer_msg()
684 readbuff[k]; in mxl111sf_i2c_hw_xfer_msg()
686 msg->buf[(index*8)+(k+i)], in mxl111sf_i2c_hw_xfer_msg()
687 (index*8)+(k+i)); in mxl111sf_i2c_hw_xfer_msg()
[all …]
/linux-4.1.27/fs/reiserfs/
Dprints.c162 char *k = fmt; in is_there_reiserfs_struct() local
164 while ((k = strchr(k, '%')) != NULL) { in is_there_reiserfs_struct()
165 if (k[1] == 'k' || k[1] == 'K' || k[1] == 'h' || k[1] == 't' || in is_there_reiserfs_struct()
166 k[1] == 'z' || k[1] == 'b' || k[1] == 'y' || k[1] == 'a') { in is_there_reiserfs_struct()
167 *what = k[1]; in is_there_reiserfs_struct()
170 k++; in is_there_reiserfs_struct()
172 return k; in is_there_reiserfs_struct()
192 char *k; in prepare_error_buf() local
200 while ((k = is_there_reiserfs_struct(fmt1, &what)) != NULL) { in prepare_error_buf()
201 *k = 0; in prepare_error_buf()
[all …]
Dibalance.c819 int insert_num, n, k; in balance_internal() local
853 k = 0; in balance_internal()
891 k = tb->lnum[h] - child_pos - 1; in balance_internal()
898 n + child_pos + 1, k, in balance_internal()
901 replace_lkey(tb, h, insert_key + k); in balance_internal()
909 MAX_CHILD_SIZE(insert_ptr[k]) - in balance_internal()
910 B_FREE_SPACE(insert_ptr[k])); in balance_internal()
911 put_dc_block_number(dc, insert_ptr[k]->b_blocknr); in balance_internal()
915 k++; in balance_internal()
916 insert_key += k; in balance_internal()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/sound/
Dsgtl5000.txt10 - micbias-resistor-k-ohms : the bias resistor to be used in kOmhs
11 The resistor can take values of 2k, 4k or 8k.
35 micbias-resistor-k-ohms = <2>;
/linux-4.1.27/Documentation/aoe/
Dudev.txt19 SUBSYSTEM=="aoe", KERNEL=="discover", NAME="etherd/%k", GROUP="disk", MODE="0220"
20 SUBSYSTEM=="aoe", KERNEL=="err", NAME="etherd/%k", GROUP="disk", MODE="0440"
21 SUBSYSTEM=="aoe", KERNEL=="interfaces", NAME="etherd/%k", GROUP="disk", MODE="0220"
22 SUBSYSTEM=="aoe", KERNEL=="revalidate", NAME="etherd/%k", GROUP="disk", MODE="0220"
23 SUBSYSTEM=="aoe", KERNEL=="flush", NAME="etherd/%k", GROUP="disk", MODE="0220"
/linux-4.1.27/drivers/pinctrl/sh-pfc/
Dcore.c186 unsigned int k; in sh_pfc_config_reg_helper() local
196 for (k = 0; k <= in_pos; k++) in sh_pfc_config_reg_helper()
197 *posp -= crp->var_field_width[k]; in sh_pfc_config_reg_helper()
234 unsigned int k = 0; in sh_pfc_get_config_reg() local
238 pfc->info->cfg_regs + k; in sh_pfc_get_config_reg()
270 k++; in sh_pfc_get_config_reg()
280 unsigned int k; in sh_pfc_mark_to_enum() local
287 for (k = 0; k < pfc->info->gpio_data_size; k++) { in sh_pfc_mark_to_enum()
288 if (data[k] == mark) { in sh_pfc_mark_to_enum()
289 *enum_idp = data[k + 1]; in sh_pfc_mark_to_enum()
[all …]
/linux-4.1.27/fs/ncpfs/
Dncplib_kernel.h141 #define ncp_io2vol(S,m,i,n,k,U) ncp__io2vol(S,m,i,n,k,U) argument
142 #define ncp_vol2io(S,m,i,n,k,U) ncp__vol2io(S,m,i,n,k,U) argument
154 #define ncp_io2vol(S,m,i,n,k,U) ncp__io2vol(m,i,n,k,U) argument
155 #define ncp_vol2io(S,m,i,n,k,U) ncp__vol2io(m,i,n,k,U) argument
/linux-4.1.27/drivers/media/dvb-frontends/
Ddib7000p.c1200 int k; in dib7000p_spur_protect() local
1214 for (k = 0; k < 8; k++) { in dib7000p_spur_protect()
1215 pha = ((f_rel * (k + 1) * 112 * 80 / bw_khz) / 1000) & 0x3ff; in dib7000p_spur_protect()
1218 coef_re[k] = 256; in dib7000p_spur_protect()
1219 coef_im[k] = 0; in dib7000p_spur_protect()
1221 coef_re[k] = sine[256 - (pha & 0xff)]; in dib7000p_spur_protect()
1222 coef_im[k] = sine[pha & 0xff]; in dib7000p_spur_protect()
1224 coef_re[k] = 0; in dib7000p_spur_protect()
1225 coef_im[k] = 256; in dib7000p_spur_protect()
1227 coef_re[k] = -sine[pha & 0xff]; in dib7000p_spur_protect()
[all …]
/linux-4.1.27/fs/udf/
Dpartition.c158 int i, j, k, l; in udf_relocate_blocks() local
187 for (k = 0; k < reallocationTableLen; k++) { in udf_relocate_blocks()
188 struct sparingEntry *entry = &st->mapEntry[k]; in udf_relocate_blocks()
228 for (l = k; l < reallocationTableLen; l++) { in udf_relocate_blocks()
244 memmove(&st->mapEntry[k + 1], in udf_relocate_blocks()
245 &st->mapEntry[k], in udf_relocate_blocks()
246 (l - k) * in udf_relocate_blocks()
248 st->mapEntry[k] = mapEntry; in udf_relocate_blocks()
257 st->mapEntry[k].mappedLocation) + in udf_relocate_blocks()
/linux-4.1.27/drivers/gpu/drm/udl/
Dudl_transfer.c45 int j, k;
63 for (k = width - 1; k > j; k--) {
64 if (back[k] != front[k]) {
65 end = k+1;
/linux-4.1.27/sound/pci/ctxfi/
Dctresource.c30 int i, j, k, n; in get_resource() local
35 k = i % 8; in get_resource()
36 if (rscs[j] & ((u8)1 << k)) { in get_resource()
52 k = i % 8; in get_resource()
53 rscs[j] |= ((u8)1 << k); in get_resource()
64 unsigned int i, j, k, n; in put_resource() local
69 k = i % 8; in put_resource()
70 rscs[j] &= ~((u8)1 << k); in put_resource()
/linux-4.1.27/arch/x86/crypto/
Dsha256-avx2-asm.S165 addl \disp(%rsp, SRND), h # h = k + w + h # --
179 add h, d # d = k + w + h + d # --
195 add y1, h # h = k + w + h + S0 # --
197 add y2, d # d = k + w + h + d + S1 + CH = d + t1 # --
201 add y2, h # h = k + w + h + S0 + S1 + CH = t1 + S0# --
213 addl offset(%rsp, SRND), h # h = k + w + h # --
228 add h, d # d = k + w + h + d # --
247 add y1, h # h = k + w + h + S0 # --
250 add y2, d # d = k + w + h + d + S1 + CH = d + t1 # --
251 add y2, h # h = k + w + h + S0 + S1 + CH = t1 + S0# --
[all …]
Dsha512-avx2-asm.S188 add frame_XFER(%rsp),h # h = k + w + h # --
200 add h, d # d = k + w + h + d # --
213 add y1, h # h = k + w + h + S0 # --
215 add y2, d # d = k + w + h + d + S1 + CH = d + t1 # --
217 add y2, h # h = k + w + h + S0 + S1 + CH = t1 + S0# --
250 add 1*8+frame_XFER(%rsp), h # h = k + w + h # --
264 add h, d # d = k + w + h + d # --
278 add y1, h # h = k + w + h + S0 # --
280 add y2, d # d = k + w + h + d + S1 + CH = d + t1 # --
281 add y2, h # h = k + w + h + S0 + S1 + CH = t1 + S0# --
[all …]
Dsha256-avx-asm.S179 add _XFER(%rsp), y2 # y2 = k + w + S1 + CH
181 add y2, h # h = h + S1 + CH + k + w
185 add h, d # d = d + h + S1 + CH + k + w
189 add y1, h # h = h + S1 + CH + k + w + S0
192 add y0, h # h = h + S1 + CH + k + w + S0 + MAJ
214 add (1*4 + _XFER)(%rsp), y2 # y2 = k + w + S1 + CH
218 add y2, h # h = h + S1 + CH + k + w
222 add h, d # d = d + h + S1 + CH + k + w
227 add y1, h # h = h + S1 + CH + k + w + S0
230 add y0, h # h = h + S1 + CH + k + w + S0 + MAJ
[all …]
Dsha256-ssse3-asm.S174 add _XFER(%rsp) , y2 # y2 = k + w + S1 + CH
177 add y2, h # h = h + S1 + CH + k + w
181 add h, d # d = d + h + S1 + CH + k + w
185 add y1, h # h = h + S1 + CH + k + w + S0
188 add y0, h # h = h + S1 + CH + k + w + S0 + MAJ
213 add (1*4 + _XFER)(%rsp), y2 # y2 = k + w + S1 + CH
217 add y2, h # h = h + S1 + CH + k + w
221 add h, d # d = d + h + S1 + CH + k + w
226 add y1, h # h = h + S1 + CH + k + w + S0
229 add y0, h # h = h + S1 + CH + k + w + S0 + MAJ
[all …]
/linux-4.1.27/sound/pci/emu10k1/
Dvoice.c52 int i, j, k, first_voice, last_voice, skip; in voice_alloc() local
70 for (k = 0; k < number; k++) { in voice_alloc()
71 voice = &emu->voices[(i+k) % NUM_G]; in voice_alloc()
/linux-4.1.27/drivers/isdn/hisax/
Dhfc_usb.c431 int k; in fill_isoc_urb() local
443 for (k = 0; k < num_packets; k++) { in fill_isoc_urb()
444 urb->iso_frame_desc[k].offset = packet_size * k; in fill_isoc_urb()
445 urb->iso_frame_desc[k].length = packet_size; in fill_isoc_urb()
446 urb->iso_frame_desc[k].actual_length = 0; in fill_isoc_urb()
457 int i, k, errcode; in start_isoc_chain() local
488 for (k = 0; k < num_packets_per_urb; k++) { in start_isoc_chain()
490 iso_frame_desc[k].offset = in start_isoc_chain()
491 k * packet_size; in start_isoc_chain()
493 iso_frame_desc[k].length = in start_isoc_chain()
[all …]
/linux-4.1.27/samples/bpf/
Dtracex3_kern.c35 #define S(k) if (n >= (1ull << k)) { i += k; n >>= k; } in log2l() argument
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/
Dnv10.c40 int i, j, k; in nv10_devinit_meminit() local
62 for (k = 0; k < 4; k++) in nv10_devinit_meminit()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Deeprom.c145 u16 i, k; in ath9k_hw_fill_vpd_table() local
158 k = pVpdList[idxL]; in ath9k_hw_fill_vpd_table()
160 k = (u16)(((currPwr - pPwrList[idxL]) * pVpdList[idxR] + in ath9k_hw_fill_vpd_table()
163 pRetVpdList[i] = (u8) k; in ath9k_hw_fill_vpd_table()
361 int i, j, k; in ath9k_hw_get_gain_boundaries_pdadcs() local
485 k = 0; in ath9k_hw_get_gain_boundaries_pdadcs()
513 while ((ss < 0) && (k < (AR5416_NUM_PDADC_VALUES - 1))) { in ath9k_hw_get_gain_boundaries_pdadcs()
515 pPDADCValues[k++] = (u8)((tmpVal < 0) ? 0 : tmpVal); in ath9k_hw_get_gain_boundaries_pdadcs()
525 while ((ss < maxIndex) && (k < (AR5416_NUM_PDADC_VALUES - 1))) { in ath9k_hw_get_gain_boundaries_pdadcs()
526 pPDADCValues[k++] = vpdTableI[i][ss++]; in ath9k_hw_get_gain_boundaries_pdadcs()
[all …]
/linux-4.1.27/drivers/sh/clk/
Dcpg.c98 int k; in sh_clk_mstp_register() local
100 for (k = 0; !ret && (k < nr); k++) { in sh_clk_mstp_register()
101 clkp = clks + k; in sh_clk_mstp_register()
249 int k; in sh_clk_div_register_ops() local
258 for (k = 0; !ret && (k < nr); k++) { in sh_clk_div_register_ops()
259 clkp = clks + k; in sh_clk_div_register_ops()
264 clkp->freq_table = freq_table + (k * freq_table_size); in sh_clk_div_register_ops()
/linux-4.1.27/drivers/rtc/
Drtc-r9701.c58 int k, ret; in read_regs() local
62 for (k = 0; ret == 0 && k < no_regs; k++) { in read_regs()
63 txbuf[0] = 0x80 | regs[k]; in read_regs()
65 regs[k] = rxbuf[0]; in read_regs()
/linux-4.1.27/fs/hpfs/
Dalloc.c160 unsigned k = le32_to_cpu(bmp[i-1]); in alloc_in_bmp() local
161 while (k & 0x80000000) { in alloc_in_bmp()
162 q--; k <<= 1; in alloc_in_bmp()
367 unsigned k; in hpfs_check_free_dnodes() local
369 for (k = le32_to_cpu(bmp[j]); k; k >>= 1) if (k & 1) if (!--n) { in hpfs_check_free_dnodes()
388 u32 k; in hpfs_check_free_dnodes() local
390 for (k = 0xf; k; k <<= 4) in hpfs_check_free_dnodes()
391 if ((le32_to_cpu(bmp[j]) & k) == k) { in hpfs_check_free_dnodes()
/linux-4.1.27/Documentation/networking/
Dde4x5.txt36 DE425 1030k 997k 1170k 1128k
37 DE434 1063k 995k 1170k 1125k
38 DE435 1063k 995k 1170k 1125k
39 DE500 1063k 998k 1170k 1125k in 10Mb/s mode
42 measurement. Their error is +/-20k on a quiet (private) network and also
/linux-4.1.27/net/bluetooth/
Decc.c260 unsigned int i, k; in vli_mult() local
265 for (k = 0; k < NUM_ECC_DIGITS * 2 - 1; k++) { in vli_mult()
268 if (k < NUM_ECC_DIGITS) in vli_mult()
271 min = (k + 1) - NUM_ECC_DIGITS; in vli_mult()
273 for (i = min; i <= k && i < NUM_ECC_DIGITS; i++) { in vli_mult()
276 product = mul_64_64(left[i], right[k - i]); in vli_mult()
282 result[k] = r01.m_low; in vli_mult()
295 int i, k; in vli_square() local
297 for (k = 0; k < NUM_ECC_DIGITS * 2 - 1; k++) { in vli_square()
300 if (k < NUM_ECC_DIGITS) in vli_square()
[all …]
/linux-4.1.27/arch/sh/kernel/cpu/sh2a/
Dclock-sh7264.c131 int k, ret = 0; in arch_clk_init() local
141 for (k = 0; !ret && (k < ARRAY_SIZE(main_clks)); k++) in arch_clk_init()
142 ret = clk_register(main_clks[k]); in arch_clk_init()
Dclock-sh7269.c170 int k, ret = 0; in arch_clk_init() local
172 for (k = 0; !ret && (k < ARRAY_SIZE(main_clks)); k++) in arch_clk_init()
173 ret = clk_register(main_clks[k]); in arch_clk_init()
/linux-4.1.27/arch/m68k/fpsp040/
Dbindec.S12 | value in memory; d0 contains the k-factor sign-extended
23 | The k-factor is saved for use in d7. Clear the
45 | k-factor can dictate either the total number of digits,
119 | d7: k-factor
169 | The k-factor is saved for use in d7. Clear BINDEC_FLG for
177 movel %d0,%d7 |move k-factor to d7
224 | d0: k-factor/exponent
230 | d7: k-factor/Unchanged
277 | LEN is the number of digits to be displayed. The k-factor
293 | d7: k-factor/Unchanged
[all …]
/linux-4.1.27/arch/x86/platform/uv/
Duv_nmi.c302 int i, j, k, n = num_online_cpus(); in uv_nmi_wait_cpus() local
307 k = 0; in uv_nmi_wait_cpus()
309 k = n - cpumask_weight(uv_nmi_cpu_mask); in uv_nmi_wait_cpus()
319 if (++k >= n) in uv_nmi_wait_cpus()
323 if (k >= n) { /* all in? */ in uv_nmi_wait_cpus()
324 k = n; in uv_nmi_wait_cpus()
327 if (last_k != k) { /* abort if no new cpus coming in */ in uv_nmi_wait_cpus()
328 last_k = k; in uv_nmi_wait_cpus()
334 if (waiting && (n - k) == 1 && in uv_nmi_wait_cpus()
340 atomic_set(&uv_nmi_cpus_in_nmi, k); in uv_nmi_wait_cpus()
[all …]
/linux-4.1.27/drivers/auxdisplay/
Dcfag12864b.c274 unsigned short i, j, k, b; in cfag12864b_update() local
285 for (k = 0; k < CFAG12864B_ADDRESSES; k++) { in cfag12864b_update()
289 + k / 8 + (j * 8 + b) * in cfag12864b_update()
291 & bit(k % 8)) in cfag12864b_update()
/linux-4.1.27/arch/m68k/kernel/
Drelocate_kernel.S37 .chip 68k
61 .chip 68k
72 .chip 68k
129 .chip 68k
146 .chip 68k
/linux-4.1.27/fs/minix/
Ditree_common.c223 int k, err; in find_shared() local
226 for (k = depth; k > 1 && !offsets[k-1]; k--) in find_shared()
228 partial = get_branch(inode, k, offsets, chain, &err); in find_shared()
232 partial = chain + k-1; in find_shared()
239 if (p == chain + k - 1 && p > chain) { in find_shared()
352 int k = sb->s_blocksize_bits - 10; in nblocks() local
354 blocks = (size + sb->s_blocksize - 1) >> (BLOCK_SIZE_BITS + k); in nblocks()
/linux-4.1.27/security/selinux/ss/
Dhashtab.h54 int hashtab_insert(struct hashtab *h, void *k, void *d);
62 void *hashtab_search(struct hashtab *h, const void *k);
81 int (*apply)(void *k, void *d, void *args),
/linux-4.1.27/include/kvm/
Darm_vgic.h331 #define irqchip_in_kernel(k) (!!((k)->arch.vgic.in_kernel)) argument
332 #define vgic_initialized(k) (!!((k)->arch.vgic.nr_cpus)) argument
333 #define vgic_ready(k) ((k)->arch.vgic.ready) argument
/linux-4.1.27/arch/sh/boards/mach-migor/
Dlcd_qvga.c120 int k; in migor_lcd_qvga_setup() local
154 for (k = 0; k < (xres * 256); k++) /* yes, 256 words per line */ in migor_lcd_qvga_setup()
/linux-4.1.27/arch/arm/mach-davinci/
Dcp_intc.c172 unsigned j, k; in cp_intc_of_init() local
175 for (k = i = 0; i < num_reg; i++) { in cp_intc_of_init()
176 for (val = j = 0; j < 4; j++, k++) { in cp_intc_of_init()
178 if (k < num_irq) in cp_intc_of_init()
179 val |= irq_prio[k] << 24; in cp_intc_of_init()
/linux-4.1.27/arch/alpha/include/asm/
Dtermios.h74 #define user_termios_to_kernel_termios(k, u) \ argument
75 copy_from_user(k, u, sizeof(struct termios))
77 #define kernel_termios_to_user_termios(u, k) \ argument
78 copy_to_user(u, k, sizeof(struct termios))
/linux-4.1.27/net/netfilter/ipvs/
Dip_vs_est.c168 struct ip_vs_kstats *k = &stats->kstats; in ip_vs_zero_estimator() local
171 est->last_inbytes = k->inbytes; in ip_vs_zero_estimator()
172 est->last_outbytes = k->outbytes; in ip_vs_zero_estimator()
173 est->last_conns = k->conns; in ip_vs_zero_estimator()
174 est->last_inpkts = k->inpkts; in ip_vs_zero_estimator()
175 est->last_outpkts = k->outpkts; in ip_vs_zero_estimator()
/linux-4.1.27/arch/sparc/mm/
Dio-unit.c96 int i, j, k, npages; in iounit_get_area() local
127 for (k = 1, scan++; k < npages; k++) in iounit_get_area()
134 for (k = 0; k < npages; k++, iopte = __iopte(iopte_val(iopte) + 0x100), scan++) { in iounit_get_area()
/linux-4.1.27/drivers/gpu/drm/radeon/
Dradeon_test.c522 int i, j, k; in radeon_test_syncing() local
543 for (k = 0; k < j; ++k) { in radeon_test_syncing()
544 struct radeon_ring *ringC = &rdev->ring[k]; in radeon_test_syncing()
554 DRM_INFO("Testing syncing between rings %d, %d and %d...\n", i, j, k); in radeon_test_syncing()
557 DRM_INFO("Testing syncing between rings %d, %d and %d...\n", i, k, j); in radeon_test_syncing()
560 DRM_INFO("Testing syncing between rings %d, %d and %d...\n", j, i, k); in radeon_test_syncing()
563 DRM_INFO("Testing syncing between rings %d, %d and %d...\n", j, k, i); in radeon_test_syncing()
566 DRM_INFO("Testing syncing between rings %d, %d and %d...\n", k, i, j); in radeon_test_syncing()
569 DRM_INFO("Testing syncing between rings %d, %d and %d...\n", k, j, i); in radeon_test_syncing()
/linux-4.1.27/drivers/video/fbdev/
Dsh_mobile_lcdcfb.c731 int k; in sh_mobile_lcdc_irq() local
741 for (k = 0; k < ARRAY_SIZE(priv->ch); k++) { in sh_mobile_lcdc_irq()
742 ch = &priv->ch[k]; in sh_mobile_lcdc_irq()
789 int k; in sh_mobile_lcdc_start_stop() local
798 for (k = 0; k < ARRAY_SIZE(priv->ch); k++) in sh_mobile_lcdc_start_stop()
799 if (lcdc_read(priv, _LDCNT2R) & priv->ch[k].enabled) in sh_mobile_lcdc_start_stop()
801 tmp = lcdc_read_chan(&priv->ch[k], LDPMR) in sh_mobile_lcdc_start_stop()
967 int k, m; in __sh_mobile_lcdc_start() local
980 for (k = 0; k < ARRAY_SIZE(priv->ch); k++) { in __sh_mobile_lcdc_start()
981 ch = &priv->ch[k]; in __sh_mobile_lcdc_start()
[all …]
Dtridentfb.c713 int m, n, k; in set_vclk() local
720 for (k = shift; k >= 0; k--) in set_vclk()
724 fi = ((14318l * (n + 8)) / (m + 2)) >> k; in set_vclk()
726 if (di < d || (di == d && k == best_k)) { in set_vclk()
730 best_k = k; in set_vclk()
787 unsigned int k; in get_memsize() local
791 k = memsize * Kb; in get_memsize()
795 k = 2560 * Kb; in get_memsize()
802 k = 512 * Kb; in get_memsize()
805 k = 6 * Mb; /* XP */ in get_memsize()
[all …]
/linux-4.1.27/arch/s390/kernel/
Dptrace.c897 unsigned long *k = kbuf; in s390_regs_get() local
899 *k++ = __peek_user(target, pos); in s390_regs_get()
900 count -= sizeof(*k); in s390_regs_get()
901 pos += sizeof(*k); in s390_regs_get()
926 const unsigned long *k = kbuf; in s390_regs_set() local
928 rc = __poke_user(target, pos, *k++); in s390_regs_set()
929 count -= sizeof(*k); in s390_regs_set()
930 pos += sizeof(*k); in s390_regs_set()
1021 unsigned long *k = kbuf; in s390_last_break_get() local
1022 *k = task_thread_info(target)->last_break; in s390_last_break_get()
[all …]
/linux-4.1.27/arch/sparc/kernel/
Dptrace_32.c55 unsigned long *k = kbuf; in genregs32_get() local
67 *k++ = regs->u_regs[pos++]; in genregs32_get()
72 if (get_user(*k++, &reg_window[pos++])) in genregs32_get()
112 *k++ = reg; in genregs32_get()
133 const unsigned long *k = kbuf; in genregs32_set() local
145 regs->u_regs[pos++] = *k++; in genregs32_set()
150 if (put_user(*k++, &reg_window[pos++])) in genregs32_set()
172 reg = *k++; in genregs32_set()
/linux-4.1.27/drivers/isdn/hardware/mISDN/
Dhfcsusb.c953 int k; in fill_isoc_urb() local
963 for (k = 0; k < num_packets; k++) { in fill_isoc_urb()
964 urb->iso_frame_desc[k].offset = packet_size * k; in fill_isoc_urb()
965 urb->iso_frame_desc[k].length = packet_size; in fill_isoc_urb()
966 urb->iso_frame_desc[k].actual_length = 0; in fill_isoc_urb()
977 int k, len, errcode, offset, num_isoc_packets, fifon, maxlen, in rx_iso_complete() local
1014 for (k = 0; k < num_isoc_packets; ++k) { in rx_iso_complete()
1015 len = urb->iso_frame_desc[k].actual_length; in rx_iso_complete()
1016 offset = urb->iso_frame_desc[k].offset; in rx_iso_complete()
1018 iso_status = urb->iso_frame_desc[k].status; in rx_iso_complete()
[all …]
/linux-4.1.27/drivers/usb/dwc2/
Dhcd_queue.c362 int k; in dwc2_find_multi_uframe() local
385 for (k = i; k < 8; k++) { in dwc2_find_multi_uframe()
386 t_left -= hsotg->frame_usecs[k]; in dwc2_find_multi_uframe()
388 qh->frame_usecs[k] += in dwc2_find_multi_uframe()
389 hsotg->frame_usecs[k] in dwc2_find_multi_uframe()
391 hsotg->frame_usecs[k] = -t_left; in dwc2_find_multi_uframe()
394 qh->frame_usecs[k] += in dwc2_find_multi_uframe()
395 hsotg->frame_usecs[k]; in dwc2_find_multi_uframe()
396 hsotg->frame_usecs[k] = 0; in dwc2_find_multi_uframe()
/linux-4.1.27/sound/drivers/
Dpcm-indirect2.c46 int k; in snd_pcm_indirect2_stat() local
75 k = 0; in snd_pcm_indirect2_stat()
81 k++; in snd_pcm_indirect2_stat()
83 if (((k % 8) == 0) && (k != 0)) { in snd_pcm_indirect2_stat()
85 k = 0; in snd_pcm_indirect2_stat()
91 k = 0; in snd_pcm_indirect2_stat()
97 k++; in snd_pcm_indirect2_stat()
98 if (!k) in snd_pcm_indirect2_stat()
/linux-4.1.27/net/core/
Dfilter.c210 switch (fp->k) { in convert_bpf_extensions()
238 if (fp->k == SKF_AD_OFF + SKF_AD_IFINDEX) in convert_bpf_extensions()
297 switch (fp->k) { in convert_bpf_extensions()
432 *insn = BPF_RAW_INSN(fp->code, BPF_REG_A, BPF_REG_X, 0, fp->k); in bpf_convert_filter()
451 target = i + fp->k + 1; in bpf_convert_filter()
464 if (BPF_SRC(fp->code) == BPF_K && (int) fp->k < 0) { in bpf_convert_filter()
469 *insn++ = BPF_MOV32_IMM(BPF_REG_TMP, fp->k); in bpf_convert_filter()
477 insn->imm = fp->k; in bpf_convert_filter()
513 *insn++ = BPF_LD_ABS(BPF_B, fp->k); in bpf_convert_filter()
529 BPF_REG_A, fp->k); in bpf_convert_filter()
[all …]

123456