Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 61) sorted by relevance

123

/lib/
Dubsan.c161 static void handle_overflow(struct overflow_data *data, void *lhs, in handle_overflow() argument
165 struct type_descriptor *type = data->type; in handle_overflow()
169 if (suppress_report(&data->location)) in handle_overflow()
172 ubsan_prologue(&data->location); in handle_overflow()
187 void __ubsan_handle_add_overflow(struct overflow_data *data, in __ubsan_handle_add_overflow() argument
191 handle_overflow(data, lhs, rhs, '+'); in __ubsan_handle_add_overflow()
195 void __ubsan_handle_sub_overflow(struct overflow_data *data, in __ubsan_handle_sub_overflow() argument
198 handle_overflow(data, lhs, rhs, '-'); in __ubsan_handle_sub_overflow()
202 void __ubsan_handle_mul_overflow(struct overflow_data *data, in __ubsan_handle_mul_overflow() argument
205 handle_overflow(data, lhs, rhs, '*'); in __ubsan_handle_mul_overflow()
[all …]
Dtest_uuid.c46 const char *data, const char *actual) in test_uuid_failed() argument
53 data); in test_uuid_failed()
62 static void __init test_uuid_test(const struct test_uuid_data *data) in test_uuid_test() argument
70 if (guid_parse(data->uuid, &le)) in test_uuid_test()
71 test_uuid_failed("conversion", false, false, data->uuid, NULL); in test_uuid_test()
74 if (!guid_equal(&data->le, &le)) { in test_uuid_test()
76 test_uuid_failed("cmp", false, false, data->uuid, buf); in test_uuid_test()
81 if (uuid_parse(data->uuid, &be)) in test_uuid_test()
82 test_uuid_failed("conversion", false, true, data->uuid, NULL); in test_uuid_test()
85 if (!uuid_equal(&data->be, &be)) { in test_uuid_test()
[all …]
Dsiphash.c52 u64 __siphash_aligned(const void *data, size_t len, const siphash_key_t *key) in __siphash_aligned() argument
54 const u8 *end = data + len - (len % sizeof(u64)); in __siphash_aligned()
58 for (; data != end; data += sizeof(u64)) { in __siphash_aligned()
59 m = le64_to_cpup(data); in __siphash_aligned()
67 b |= le64_to_cpu((__force __le64)(load_unaligned_zeropad(data) & in __siphash_aligned()
74 case 4: b |= le32_to_cpup(data); break; in __siphash_aligned()
76 case 2: b |= le16_to_cpup(data); break; in __siphash_aligned()
85 u64 __siphash_unaligned(const void *data, size_t len, const siphash_key_t *key) in __siphash_unaligned() argument
87 const u8 *end = data + len - (len % sizeof(u64)); in __siphash_unaligned()
91 for (; data != end; data += sizeof(u64)) { in __siphash_unaligned()
[all …]
Dstrnlen_user.c41 unsigned long data; in do_strnlen_user() local
42 if (has_zero(c, &data, &constants)) { in do_strnlen_user()
43 data = prep_zero_mask(c, data, &constants); in do_strnlen_user()
44 data = create_zero_mask(data); in do_strnlen_user()
45 return res + find_zero(data) + 1 - align; in do_strnlen_user()
Dgenalloc.c161 pool->data = NULL; in gen_pool_create()
276 genpool_algo_t algo, void *data, void **owner) in gen_pool_alloc_algo_owner() argument
303 nbits, data, pool, chunk->start_addr); in gen_pool_alloc_algo_owner()
341 return gen_pool_dma_alloc_algo(pool, size, dma, pool->algo, pool->data); in gen_pool_dma_alloc()
361 dma_addr_t *dma, genpool_algo_t algo, void *data) in gen_pool_dma_alloc_algo() argument
368 vaddr = gen_pool_alloc_algo(pool, size, algo, data); in gen_pool_dma_alloc_algo()
396 struct genpool_data_align data = { .align = align }; in gen_pool_dma_alloc_align() local
399 gen_pool_first_fit_align, &data); in gen_pool_dma_alloc_align()
419 return gen_pool_dma_zalloc_algo(pool, size, dma, pool->algo, pool->data); in gen_pool_dma_zalloc()
439 dma_addr_t *dma, genpool_algo_t algo, void *data) in gen_pool_dma_zalloc_algo() argument
[all …]
Dstrncpy_from_user.c37 unsigned long c, data; in do_strncpy_from_user() local
43 if (has_zero(c, &data, &constants)) { in do_strncpy_from_user()
44 data = prep_zero_mask(c, data, &constants); in do_strncpy_from_user()
45 data = create_zero_mask(data); in do_strncpy_from_user()
46 return res + find_zero(data); in do_strncpy_from_user()
Dkfifo.c38 fifo->data = NULL; in __kfifo_alloc()
43 fifo->data = kmalloc_array(esize, size, gfp_mask); in __kfifo_alloc()
45 if (!fifo->data) { in __kfifo_alloc()
57 kfree(fifo->data); in __kfifo_free()
61 fifo->data = NULL; in __kfifo_free()
77 fifo->data = buffer; in __kfifo_init()
104 memcpy(fifo->data + off, src, l); in kfifo_copy_in()
105 memcpy(fifo->data, src + l, len - l); in kfifo_copy_in()
143 memcpy(dst, fifo->data + off, l); in kfifo_copy_out()
144 memcpy(dst + l, fifo->data, len - l); in kfifo_copy_out()
[all …]
Dasn1_decoder.c57 static int asn1_find_indefinite_length(const unsigned char *data, size_t datalen, in asn1_find_indefinite_length() argument
73 tag = data[dp++]; in asn1_find_indefinite_length()
76 if (data[dp++] != 0) in asn1_find_indefinite_length()
90 tmp = data[dp++]; in asn1_find_indefinite_length()
95 len = data[dp++]; in asn1_find_indefinite_length()
115 len |= data[dp++]; in asn1_find_indefinite_length()
169 const unsigned char *data, in asn1_ber_decoder() argument
229 tag = data[dp++]; in asn1_ber_decoder()
260 len = data[dp++]; in asn1_ber_decoder()
278 len |= data[dp++]; in asn1_ber_decoder()
[all …]
Dtest_sysctl.c73 .data = &test_data.int_0001,
82 .data = &test_data.int_0002,
89 .data = &test_data.int_0003,
96 .data = &test_data.uint_0001,
103 .data = &test_data.string_0001,
110 .data = &test_data.bitmap_0001,
Dsyscall.c15 info->data.nr = -1; in collect_syscall()
26 info->data.instruction_pointer = instruction_pointer(regs); in collect_syscall()
28 info->data.nr = syscall_get_nr(target, regs); in collect_syscall()
29 if (info->data.nr != -1L) in collect_syscall()
31 (unsigned long *)&info->data.args[0]); in collect_syscall()
Dnlattr.c588 int nla_memcmp(const struct nlattr *nla, const void *data, in nla_memcmp() argument
594 d = memcmp(nla_data(nla), data, size); in nla_memcmp()
771 const void *data) in __nla_put() argument
776 memcpy(nla_data(nla), data, attrlen); in __nla_put()
792 const void *data, int padattr) in __nla_put_64bit() argument
797 memcpy(nla_data(nla), data, attrlen); in __nla_put_64bit()
810 void __nla_put_nohdr(struct sk_buff *skb, int attrlen, const void *data) in __nla_put_nohdr() argument
815 memcpy(start, data, attrlen); in __nla_put_nohdr()
829 int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data) in nla_put() argument
834 __nla_put(skb, attrtype, attrlen, data); in nla_put()
[all …]
Dnotifier-error-inject.c6 static int debugfs_errno_set(void *data, u64 val) in debugfs_errno_set() argument
8 *(int *)data = clamp_t(int, val, -MAX_ERRNO, 0); in debugfs_errno_set()
12 static int debugfs_errno_get(void *data, u64 *val) in debugfs_errno_get() argument
14 *val = *(int *)data; in debugfs_errno_get()
Dearlycpio.c59 struct cpio_data find_cpio_data(const char *path, void *data, in find_cpio_data() argument
70 p = data; in find_cpio_data()
122 *nextoff = (long)nptr - (long)data; in find_cpio_data()
131 cd.data = (void *)dptr; in find_cpio_data()
Dtextsearch.c201 const void *data; member
211 *dst = st->data + consumed; in get_linear_data()
233 const void *data, unsigned int len) in textsearch_find_continuous() argument
238 st->data = data; in textsearch_find_continuous()
Dfault-inject.c155 static int debugfs_ul_set(void *data, u64 val) in debugfs_ul_set() argument
157 *(unsigned long *)data = val; in debugfs_ul_set()
161 static int debugfs_ul_get(void *data, u64 *val) in debugfs_ul_get() argument
163 *val = *(unsigned long *)data; in debugfs_ul_get()
177 static int debugfs_stacktrace_depth_set(void *data, u64 val) in debugfs_stacktrace_depth_set() argument
179 *(unsigned long *)data = in debugfs_stacktrace_depth_set()
Doid_registry.c25 enum OID look_up_OID(const void *data, size_t datasize) in look_up_OID() argument
27 const unsigned char *octets = data; in look_up_OID()
106 int sprint_oid(const void *data, size_t datasize, char *buffer, size_t bufsize) in sprint_oid() argument
108 const unsigned char *v = data, *end = v + datasize; in sprint_oid()
Drhashtable.c534 void *data) in rhashtable_insert_one() argument
539 if (!IS_ERR_OR_NULL(data)) in rhashtable_insert_one()
542 if (PTR_ERR(data) != -EAGAIN && PTR_ERR(data) != -ENOENT) in rhashtable_insert_one()
543 return ERR_CAST(data); in rhashtable_insert_one()
549 if (PTR_ERR(data) != -ENOENT) in rhashtable_insert_one()
550 return ERR_CAST(data); in rhashtable_insert_one()
587 void *data; in rhashtable_try_insert() local
601 data = ERR_PTR(-EAGAIN); in rhashtable_try_insert()
604 data = rhashtable_lookup_one(ht, bkt, tbl, in rhashtable_try_insert()
607 hash, obj, data); in rhashtable_try_insert()
[all …]
Dgeneric-radix-tree.c16 u8 data[PAGE_SIZE]; member
75 return &n->data[offset]; in __genradix_ptr()
158 return &n->data[offset]; in __genradix_ptr_alloc()
200 return &n->data[iter->offset & (PAGE_SIZE - 1)]; in __genradix_iter_peek()
Dts_fsm.c140 const u8 *data; in fsm_find() local
145 block_len = conf->get_next_block(consumed, &data, conf, state); }) in fsm_find()
178 if (!match_token(cur, data[block_idx])) in fsm_find()
184 !match_token(cur, data[block_idx])) in fsm_find()
192 if (!match_token(cur, data[block_idx])) in fsm_find()
205 while (!match_token(next, data[block_idx])) { in fsm_find()
206 if (!match_token(cur, data[block_idx])) in fsm_find()
222 while (!match_token(next, data[block_idx])) { in fsm_find()
229 if (!match_token(cur, data[block_idx])) in fsm_find()
Ddigsig.c96 pkh = (struct pubkey_hdr *)ukp->data; in digsig_verify_rsa()
108 endp = ukp->data + ukp->datalen; in digsig_verify_rsa()
200 const char *data, int datalen) in digsig_verify() argument
242 crypto_shash_update(desc, data, datalen); in digsig_verify()
Diomap.c281 u8 data = __raw_readb(addr); in mmio_insb() local
282 *dst = data; in mmio_insb()
289 u16 data = __raw_readw(addr); in mmio_insw() local
290 *dst = data; in mmio_insw()
297 u32 data = __raw_readl(addr); in mmio_insl() local
298 *dst = data; in mmio_insl()
Dstring.c206 unsigned long c, data; in strscpy() local
209 if (has_zero(c, &data, &constants)) { in strscpy()
210 data = prep_zero_mask(c, data, &constants); in strscpy()
211 data = create_zero_mask(data); in strscpy()
212 *(unsigned long *)(dest+res) = c & zero_bytemask(data); in strscpy()
213 return res + find_zero(data); in strscpy()
/lib/raid6/test/
Dtest.c25 char data[NDISKS][PAGE_SIZE] __attribute__((aligned(PAGE_SIZE))); variable
35 data[i][j] = rand(); in makedata()
37 dataptrs[i] = data[i]; in makedata()
65 erra = memcmp(data[i], recovi, PAGE_SIZE); in test_disks()
66 errb = memcmp(data[j], recovj, PAGE_SIZE); in test_disks()
82 dataptrs[i] = data[i]; in test_disks()
83 dataptrs[j] = data[j]; in test_disks()
113 memset(data[NDISKS-2], 0xee, 2*PAGE_SIZE); in main()
/lib/842/
D842_compress.c69 u64 data; member
75 u32 data; member
81 u16 data; member
117 (p)->node##b[_i].data = 0; \
125 hash_for_each_possible(p->htable##b, _n, node, p->data##b[n]) { \
126 if (p->data##b[n] == _n->data) { \
142 _n->data = (p)->data##b[d]; \
146 (unsigned long)_n->data); \
147 hash_add((p)->htable##b, &_n->node, _n->data); \
/lib/reed_solomon/
Ddecode_rs.c62 syn[i] = (((uint16_t) data[0]) ^ invmsk) & msk;
67 syn[i] = (((uint16_t) data[j]) ^
70 syn[i] = ((((uint16_t) data[j]) ^
315 } else if (data && par) {
319 data[loc[i] - pad] ^= b[i];

123