/linux-4.19.296/lib/ |
D | bitmap.c | 54 unsigned int k, lim = bits/BITS_PER_LONG; in __bitmap_equal() local 55 for (k = 0; k < lim; ++k) in __bitmap_equal() 56 if (bitmap1[k] != bitmap2[k]) in __bitmap_equal() 60 if ((bitmap1[k] ^ bitmap2[k]) & BITMAP_LAST_WORD_MASK(bits)) in __bitmap_equal() 69 unsigned int k, lim = BITS_TO_LONGS(bits); in __bitmap_complement() local 70 for (k = 0; k < lim; ++k) in __bitmap_complement() 71 dst[k] = ~src[k]; in __bitmap_complement() 89 unsigned k, lim = BITS_TO_LONGS(nbits); in __bitmap_shift_right() local 92 for (k = 0; off + k < lim; ++k) { in __bitmap_shift_right() 99 if (!rem || off + k + 1 >= lim) in __bitmap_shift_right() [all …]
|
D | test_string.c | 8 unsigned i, j, k; in memset16_selftest() local 19 for (k = 0; k < 512; k++) { in memset16_selftest() 20 v = p[k]; in memset16_selftest() 21 if (k < i) { in memset16_selftest() 24 } else if (k < i + j) { in memset16_selftest() 38 return (i << 24) | (j << 16) | k | 0x8000; in memset16_selftest() 44 unsigned i, j, k; in memset32_selftest() local 55 for (k = 0; k < 512; k++) { in memset32_selftest() 56 v = p[k]; in memset32_selftest() 57 if (k < i) { in memset32_selftest() [all …]
|
D | klist.c | 85 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 …]
|
D | test_hash.c | 70 int k; in test_int_hash() local 87 for (k = 1; k <= 32; k++) { in test_int_hash() 88 u32 const m = ((u32)2 << (k-1)) - 1; /* Low k bits set */ in test_int_hash() 91 hash_or[0][k] |= h1 = hash_32(h0, k); in test_int_hash() 93 pr_err("hash_32(%#x, %d) = %#x > %#x", h0, k, h1, m); in test_int_hash() 97 h2 = hash_32_generic(h0, k); in test_int_hash() 101 " = %#x", h0, k, h1, h2); in test_int_hash() 107 h0, k, h1, m); in test_int_hash() 113 hash_or[1][k] |= h1 = hash_64(h64, k); in test_int_hash() 115 pr_err("hash_64(%#llx, %d) = %#x > %#x", h64, k, h1, m); in test_int_hash() [all …]
|
D | ts_kmp.c | 81 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()
|
/linux-4.19.296/include/linux/ |
D | jhash.h | 73 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() 89 case 12: c += (u32)k[11]<<24; /* fall through */ in jhash() 90 case 11: c += (u32)k[10]<<16; /* fall through */ in jhash() 91 case 10: c += (u32)k[9]<<8; /* fall through */ in jhash() 92 case 9: c += k[8]; /* fall through */ in jhash() 93 case 8: b += (u32)k[7]<<24; /* fall through */ in jhash() [all …]
|
/linux-4.19.296/lib/raid6/ |
D | mktables.c | 58 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() [all …]
|
/linux-4.19.296/crypto/ |
D | serpent_generic.c | 34 ({ 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 …]
|
D | aes_generic.c | 1305 #define f_rn(bo, bi, n, k) do { \ argument 1309 crypto_ft_tab[3][byte(bi[(n + 3) & 3], 3)] ^ *(k + n); \ 1312 #define f_nround(bo, bi, k) do {\ argument 1313 f_rn(bo, bi, 0, k); \ 1314 f_rn(bo, bi, 1, k); \ 1315 f_rn(bo, bi, 2, k); \ 1316 f_rn(bo, bi, 3, k); \ 1317 k += 4; \ 1320 #define f_rl(bo, bi, n, k) do { \ argument 1324 crypto_fl_tab[3][byte(bi[(n + 3) & 3], 3)] ^ *(k + n); \ [all …]
|
D | fcrypt.c | 66 #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 …]
|
D | twofish_common.c | 548 #define CALC_K(a, j, k, l, m, n) \ argument 549 x = CALC_K_2 (k, l, k, l, 0); \ 561 #define CALC_K192(a, j, k, l, m, n) \ argument 562 x = CALC_K192_2 (l, l, k, k, 0); \ 574 #define CALC_K256(a, j, k, l, m, n) \ argument 575 x = CALC_K256_2 (k, l, 0); \ 585 int i, j, k; in __twofish_setkey() local 650 for ( i = j = 0, k = 1; i < 256; i++, j += 2, k += 2 ) { in __twofish_setkey() 651 CALC_SB256_2( i, calc_sb_tbl[j], calc_sb_tbl[k] ); in __twofish_setkey() 668 CALC_K256 (k, i, q0[i+8], q1[i+8], q0[i+9], q1[i+9]); in __twofish_setkey() [all …]
|
/linux-4.19.296/drivers/clk/sunxi-ng/ |
D | ccu_nk.c | 18 unsigned long k, min_k, max_k; member 43 nk->k = best_k; in ccu_nk_find_best() 72 unsigned long rate, n, k; in ccu_nk_recalc_rate() local 83 k = reg >> nk->k.shift; in ccu_nk_recalc_rate() 84 k &= (1 << nk->k.width) - 1; in ccu_nk_recalc_rate() 85 k += nk->k.offset; in ccu_nk_recalc_rate() 86 if (!k) in ccu_nk_recalc_rate() 87 k++; in ccu_nk_recalc_rate() 89 rate = parent_rate * n * k; in ccu_nk_recalc_rate() 107 _nk.min_k = nk->k.min ?: 1; in ccu_nk_round_rate() [all …]
|
D | ccu_nkmp.c | 18 unsigned long k, min_k, max_k; member 24 unsigned long n, unsigned long k, in ccu_nkmp_calc_rate() argument 29 rate *= n * k; in ccu_nkmp_calc_rate() 68 nkmp->k = best_k; in ccu_nkmp_find_best() 98 unsigned long n, m, k, p, rate; in ccu_nkmp_recalc_rate() local 109 k = reg >> nkmp->k.shift; in ccu_nkmp_recalc_rate() 110 k &= (1 << nkmp->k.width) - 1; in ccu_nkmp_recalc_rate() 111 k += nkmp->k.offset; in ccu_nkmp_recalc_rate() 112 if (!k) in ccu_nkmp_recalc_rate() 113 k++; in ccu_nkmp_recalc_rate() [all …]
|
D | ccu_nkm.c | 18 unsigned long k, min_k, max_k; member 49 nkm->k = best_k; in ccu_nkm_find_best() 78 unsigned long n, m, k, rate; in ccu_nkm_recalc_rate() local 89 k = reg >> nkm->k.shift; in ccu_nkm_recalc_rate() 90 k &= (1 << nkm->k.width) - 1; in ccu_nkm_recalc_rate() 91 k += nkm->k.offset; in ccu_nkm_recalc_rate() 92 if (!k) in ccu_nkm_recalc_rate() 93 k++; in ccu_nkm_recalc_rate() 101 rate = parent_rate * n * k / m; in ccu_nkm_recalc_rate() 120 _nkm.min_k = nkm->k.min ?: 1; in ccu_nkm_round_rate() [all …]
|
/linux-4.19.296/include/uapi/linux/ |
D | bcache.h | 12 static inline __u64 name(const type *k) \ 13 { return (k->field >> offset) & ~(~0ULL << size); } \ 15 static inline void SET_##name(type *k, __u64 v) \ 17 k->field &= ~(~(~0ULL << size) << offset); \ 18 k->field |= (v & ~(~0ULL << size)) << offset; \ 33 static inline __u64 name(const struct bkey *k, unsigned int i) \ 34 { return (k->ptr[i] >> offset) & ~(~0ULL << size); } \ 36 static inline void SET_##name(struct bkey *k, unsigned int i, __u64 v) \ 38 k->ptr[i] &= ~(~(~0ULL << size) << offset); \ 39 k->ptr[i] |= (v & ~(~0ULL << size)) << offset; \ [all …]
|
/linux-4.19.296/drivers/irqchip/ |
D | irq-renesas-intc-irqpin.c | 318 int k; in intc_irqpin_shared_irq_handler() local 320 for (k = 0; k < 8; k++) { in intc_irqpin_shared_irq_handler() 321 if (reg_source & BIT(7 - k)) { in intc_irqpin_shared_irq_handler() 322 if (BIT(k) & p->shared_irq_mask) in intc_irqpin_shared_irq_handler() 325 status |= intc_irqpin_irq_handler(irq, &p->irq[k]); in intc_irqpin_shared_irq_handler() 401 int k; in intc_irqpin_probe() local 426 for (k = 0; k < INTC_IRQPIN_REG_NR; k++) { in intc_irqpin_probe() 427 io[k] = platform_get_resource(pdev, IORESOURCE_MEM, k); in intc_irqpin_probe() 428 if (!io[k] && k < INTC_IRQPIN_REG_NR_MANDATORY) { in intc_irqpin_probe() 436 for (k = 0; k < INTC_IRQPIN_MAX; k++) { in intc_irqpin_probe() [all …]
|
D | irq-renesas-irqc.c | 145 int k; in irqc_probe() local 169 for (k = 0; k < IRQC_IRQ_MAX; k++) { in irqc_probe() 170 irq = platform_get_resource(pdev, IORESOURCE_IRQ, k); in irqc_probe() 174 p->irq[k].p = p; in irqc_probe() 175 p->irq[k].hw_irq = k; in irqc_probe() 176 p->irq[k].requested_irq = irq->start; in irqc_probe() 179 p->number_of_irqs = k; in irqc_probe() 224 for (k = 0; k < p->number_of_irqs; k++) { in irqc_probe() 225 if (request_irq(p->irq[k].requested_irq, irqc_irq_handler, in irqc_probe() 226 0, name, &p->irq[k])) { in irqc_probe() [all …]
|
/linux-4.19.296/fs/proc/ |
D | page.c | 92 u64 k; in stable_page_flags() local 102 k = page->flags; in stable_page_flags() 165 u |= kpf_copy_bit(k, KPF_LOCKED, PG_locked); in stable_page_flags() 167 u |= kpf_copy_bit(k, KPF_SLAB, PG_slab); in stable_page_flags() 171 u |= kpf_copy_bit(k, KPF_ERROR, PG_error); in stable_page_flags() 172 u |= kpf_copy_bit(k, KPF_DIRTY, PG_dirty); in stable_page_flags() 173 u |= kpf_copy_bit(k, KPF_UPTODATE, PG_uptodate); in stable_page_flags() 174 u |= kpf_copy_bit(k, KPF_WRITEBACK, PG_writeback); in stable_page_flags() 176 u |= kpf_copy_bit(k, KPF_LRU, PG_lru); in stable_page_flags() 177 u |= kpf_copy_bit(k, KPF_REFERENCED, PG_referenced); in stable_page_flags() [all …]
|
/linux-4.19.296/drivers/sh/intc/ |
D | core.c | 184 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 …]
|
/linux-4.19.296/include/asm-generic/ |
D | termios.h | 71 static inline int user_termios_to_kernel_termios(struct ktermios *k, in user_termios_to_kernel_termios() argument 74 return copy_from_user(k, u, sizeof(struct termios2)); in user_termios_to_kernel_termios() 78 struct ktermios *k) in kernel_termios_to_user_termios() argument 80 return copy_to_user(u, k, sizeof(struct termios2)); in kernel_termios_to_user_termios() 83 static inline int user_termios_to_kernel_termios_1(struct ktermios *k, in user_termios_to_kernel_termios_1() argument 86 return copy_from_user(k, u, sizeof(struct termios)); in user_termios_to_kernel_termios_1() 90 struct ktermios *k) in kernel_termios_to_user_termios_1() argument 92 return copy_to_user(u, k, sizeof(struct termios)); in kernel_termios_to_user_termios_1() 95 static inline int user_termios_to_kernel_termios(struct ktermios *k, in user_termios_to_kernel_termios() argument 98 return copy_from_user(k, u, sizeof(struct termios)); in user_termios_to_kernel_termios() [all …]
|
D | termios-base.h | 66 #define user_termios_to_kernel_termios(k, u) copy_from_user(k, u, sizeof(struct termios)) argument 70 #define kernel_termios_to_user_termios(u, k) copy_to_user(u, k, sizeof(struct termios)) argument 73 #define user_termios_to_kernel_termios_1(k, u) copy_from_user(k, u, sizeof(struct termios)) argument 74 #define kernel_termios_to_user_termios_1(u, k) copy_to_user(u, k, sizeof(struct termios)) argument
|
/linux-4.19.296/drivers/isdn/hardware/eicon/ |
D | capidtmf.c | 253 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 …]
|
/linux-4.19.296/include/linux/mmc/ |
D | sh_mmcif.h | 132 int k; in sh_mmcif_boot_do_read_single() local 145 for (k = 0; k < (SH_MMCIF_BBS / 4); k++) in sh_mmcif_boot_do_read_single() 146 buf[k] = sh_mmcif_readl(base, MMCIF_CE_DATA); in sh_mmcif_boot_do_read_single() 156 unsigned long k; in sh_mmcif_boot_do_read() local 173 for (k = 0; !ret && k < nr_blocks; k++) in sh_mmcif_boot_do_read() 174 ret = sh_mmcif_boot_do_read_single(base, first_block + k, in sh_mmcif_boot_do_read() 175 buf + (k * SH_MMCIF_BBS)); in sh_mmcif_boot_do_read()
|
/linux-4.19.296/fs/squashfs/ |
D | zlib_wrapper.c | 69 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()
|
/linux-4.19.296/fs/ubifs/ |
D | key.h | 115 static inline void ino_key_init_flash(const struct ubifs_info *c, void *k, in ino_key_init_flash() argument 118 union ubifs_key *key = k; in ino_key_init_flash() 122 memset(k + 8, 0, UBIFS_MAX_KEY_LEN - 8); in ino_key_init_flash() 194 static inline void dent_key_init_flash(const struct ubifs_info *c, void *k, in dent_key_init_flash() argument 198 union ubifs_key *key = k; in dent_key_init_flash() 205 memset(k + 8, 0, UBIFS_MAX_KEY_LEN - 8); in dent_key_init_flash() 246 static inline void xent_key_init_flash(const struct ubifs_info *c, void *k, in xent_key_init_flash() argument 249 union ubifs_key *key = k; in xent_key_init_flash() 256 memset(k + 8, 0, UBIFS_MAX_KEY_LEN - 8); in xent_key_init_flash() 346 static inline int key_type_flash(const struct ubifs_info *c, const void *k) in key_type_flash() argument [all …]
|