/lib/pldmfw/ |
D | pldmfw.c | 65 pldm_check_fw_space(struct pldmfw_priv *data, size_t offset, size_t length) in pldm_check_fw_space() argument 68 struct device *dev = data->context->dev; in pldm_check_fw_space() 70 if (data->fw->size < expected_size) { in pldm_check_fw_space() 72 data->fw->size, expected_size); in pldm_check_fw_space() 91 pldm_move_fw_offset(struct pldmfw_priv *data, size_t bytes_to_move) in pldm_move_fw_offset() argument 95 err = pldm_check_fw_space(data, data->offset, bytes_to_move); in pldm_move_fw_offset() 99 data->offset += bytes_to_move; in pldm_move_fw_offset() 123 static int pldm_parse_header(struct pldmfw_priv *data) in pldm_parse_header() argument 126 struct device *dev = data->context->dev; in pldm_parse_header() 131 err = pldm_move_fw_offset(data, sizeof(*header)); in pldm_parse_header() [all …]
|
/lib/ |
D | ubsan.c | 159 struct overflow_data *data = _data; in __ubsan_handle_divrem_overflow() local 162 if (suppress_report(&data->location)) in __ubsan_handle_divrem_overflow() 165 ubsan_prologue(&data->location, "division-overflow"); in __ubsan_handle_divrem_overflow() 167 val_to_string(rhs_val_str, sizeof(rhs_val_str), data->type, rhs); in __ubsan_handle_divrem_overflow() 169 if (type_is_signed(data->type) && get_signed_val(data->type, rhs) == -1) in __ubsan_handle_divrem_overflow() 171 rhs_val_str, data->type->type_name); in __ubsan_handle_divrem_overflow() 179 static void handle_null_ptr_deref(struct type_mismatch_data_common *data) in handle_null_ptr_deref() argument 181 if (suppress_report(data->location)) in handle_null_ptr_deref() 184 ubsan_prologue(data->location, "null-ptr-deref"); in handle_null_ptr_deref() 187 type_check_kinds[data->type_check_kind], in handle_null_ptr_deref() [all …]
|
D | percpu-refcount.c | 68 struct percpu_ref_data *data; in percpu_ref_init() local 75 data = kzalloc(sizeof(*ref->data), gfp); in percpu_ref_init() 76 if (!data) { in percpu_ref_init() 82 data->force_atomic = flags & PERCPU_REF_INIT_ATOMIC; in percpu_ref_init() 83 data->allow_reinit = flags & PERCPU_REF_ALLOW_REINIT; in percpu_ref_init() 87 data->allow_reinit = true; in percpu_ref_init() 97 atomic_long_set(&data->count, start_count); in percpu_ref_init() 99 data->release = release; in percpu_ref_init() 100 data->confirm_switch = NULL; in percpu_ref_init() 101 data->ref = ref; in percpu_ref_init() [all …]
|
D | test_uuid.c | 46 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 …]
|
D | siphash.c | 47 u64 __siphash_aligned(const void *data, size_t len, const siphash_key_t *key) in __siphash_aligned() argument 49 const u8 *end = data + len - (len % sizeof(u64)); in __siphash_aligned() 53 for (; data != end; data += sizeof(u64)) { in __siphash_aligned() 54 m = le64_to_cpup(data); in __siphash_aligned() 62 b |= le64_to_cpu((__force __le64)(load_unaligned_zeropad(data) & in __siphash_aligned() 69 case 4: b |= le32_to_cpup(data); break; in __siphash_aligned() 71 case 2: b |= le16_to_cpup(data); break; in __siphash_aligned() 80 u64 __siphash_unaligned(const void *data, size_t len, const siphash_key_t *key) in __siphash_unaligned() argument 82 const u8 *end = data + len - (len % sizeof(u64)); in __siphash_unaligned() 86 for (; data != end; data += sizeof(u64)) { in __siphash_unaligned() [all …]
|
D | syscall.c | 16 info->data.nr = -1; in collect_syscall() 27 info->data.instruction_pointer = instruction_pointer(regs); in collect_syscall() 29 info->data.nr = syscall_get_nr(target, regs); in collect_syscall() 30 if (info->data.nr != -1L) in collect_syscall() 33 info->data.args[0] = args[0]; in collect_syscall() 34 info->data.args[1] = args[1]; in collect_syscall() 35 info->data.args[2] = args[2]; in collect_syscall() 36 info->data.args[3] = args[3]; in collect_syscall() 37 info->data.args[4] = args[4]; in collect_syscall() 38 info->data.args[5] = args[5]; in collect_syscall()
|
D | test_min_heap.c | 36 int *values = heap->data; in pop_verify_heap() 67 .data = values, in test_heapify_all() 96 const int data[] = { 3, 1, 2, 4, 0x80000000, 0x7FFFFFFF, 0, in test_heap_push() local 98 int values[ARRAY_SIZE(data)]; in test_heap_push() 100 .data = values, in test_heap_push() 112 for (i = 0; i < ARRAY_SIZE(data); i++) in test_heap_push() 113 min_heap_push(&heap, &data[i], &funcs); in test_heap_push() 129 const int data[] = { 3, 1, 2, 4, 0x80000000, 0x7FFFFFFF, 0, in test_heap_pop_push() local 131 int values[ARRAY_SIZE(data)]; in test_heap_pop_push() 133 .data = values, in test_heap_pop_push() [all …]
|
D | strnlen_user.c | 41 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()
|
D | strncpy_from_user.c | 38 unsigned long c, data, mask; in do_strncpy_from_user() local 54 if (has_zero(c, &data, &constants)) { in do_strncpy_from_user() 55 data = prep_zero_mask(c, data, &constants); in do_strncpy_from_user() 56 data = create_zero_mask(data); in do_strncpy_from_user() 57 mask = zero_bytemask(data); in do_strncpy_from_user() 59 return res + find_zero(data); in do_strncpy_from_user()
|
D | genalloc.c | 162 pool->data = NULL; in gen_pool_create() 277 genpool_algo_t algo, void *data, void **owner) in gen_pool_alloc_algo_owner() argument 304 nbits, data, pool, chunk->start_addr); in gen_pool_alloc_algo_owner() 342 return gen_pool_dma_alloc_algo(pool, size, dma, pool->algo, pool->data); in gen_pool_dma_alloc() 362 dma_addr_t *dma, genpool_algo_t algo, void *data) in gen_pool_dma_alloc_algo() argument 369 vaddr = gen_pool_alloc_algo(pool, size, algo, data); in gen_pool_dma_alloc_algo() 397 struct genpool_data_align data = { .align = align }; in gen_pool_dma_alloc_align() local 400 gen_pool_first_fit_align, &data); in gen_pool_dma_alloc_align() 420 return gen_pool_dma_zalloc_algo(pool, size, dma, pool->algo, pool->data); in gen_pool_dma_zalloc() 440 dma_addr_t *dma, genpool_algo_t algo, void *data) in gen_pool_dma_zalloc_algo() argument [all …]
|
D | kfifo.c | 38 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 …]
|
D | test_sysctl.c | 77 .data = &test_data.int_0001, 86 .data = &test_data.int_0002, 93 .data = &test_data.int_0003, 100 .data = &test_data.boot_int, 109 .data = &test_data.uint_0001, 116 .data = &test_data.string_0001, 123 .data = &test_data.bitmap_0001,
|
D | asn1_decoder.c | 57 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 …]
|
D | test_overflow.c | 594 unsigned long data[]; member 656 err |= check_one_size_helper(4 * sizeof(*obj->data), in test_overflow_size_helpers() 657 flex_array_size, obj, data, var++); in test_overflow_size_helpers() 658 err |= check_one_size_helper(5 * sizeof(*obj->data), in test_overflow_size_helpers() 659 flex_array_size, obj, data, var++); in test_overflow_size_helpers() 660 err |= check_one_size_helper(0, flex_array_size, obj, data, 0); in test_overflow_size_helpers() 661 err |= check_one_size_helper(sizeof(*obj->data), in test_overflow_size_helpers() 662 flex_array_size, obj, data, 1); in test_overflow_size_helpers() 663 err |= check_one_size_helper(7 * sizeof(*obj->data), in test_overflow_size_helpers() 664 flex_array_size, obj, data, 7); in test_overflow_size_helpers() [all …]
|
D | Kconfig.kcsan | 24 bool "KCSAN: dynamic data race detector" 31 data-race detector that relies on compile-time instrumentation. 34 While KCSAN's primary purpose is to detect data races, it 35 also provides assertions to check data access constraints. 37 data races. 171 # The main purpose of the below options is to control reported data races (e.g. 185 reported if it was only possible to infer a race due to a data value 189 bool "Only report races where watcher observed a data value change" 193 the data value of the memory location was observed to remain 194 unchanged, do not report the data race. [all …]
|
D | earlycpio.c | 59 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()
|
D | notifier-error-inject.c | 6 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()
|
D | bootconfig.c | 117 int offset = node->data & ~XBC_VALUE; in xbc_node_get_data() 344 static int __init xbc_init_node(struct xbc_node *node, char *data, u32 flag) in xbc_init_node() argument 346 unsigned long offset = data - xbc_data; in xbc_init_node() 351 node->data = (u16)offset | flag; in xbc_init_node() 358 static struct xbc_node * __init xbc_add_node(char *data, u32 flag) in xbc_add_node() argument 366 if (xbc_init_node(node, data, flag) < 0) in xbc_add_node() 388 static struct xbc_node * __init __xbc_add_sibling(char *data, u32 flag, bool head) in __xbc_add_sibling() argument 390 struct xbc_node *sib, *node = xbc_add_node(data, flag); in __xbc_add_sibling() 410 xbc_parse_error("Too many nodes", data); in __xbc_add_sibling() 415 static inline struct xbc_node * __init xbc_add_sibling(char *data, u32 flag) in xbc_add_sibling() argument [all …]
|
D | textsearch.c | 201 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()
|
D | fault-inject.c | 157 static int debugfs_ul_set(void *data, u64 val) in debugfs_ul_set() argument 159 *(unsigned long *)data = val; in debugfs_ul_set() 163 static int debugfs_ul_get(void *data, u64 *val) in debugfs_ul_get() argument 165 *val = *(unsigned long *)data; in debugfs_ul_get() 179 static int debugfs_stacktrace_depth_set(void *data, u64 val) in debugfs_stacktrace_depth_set() argument 181 *(unsigned long *)data = in debugfs_stacktrace_depth_set()
|
/lib/kunit/ |
D | kunit-test.c | 17 static void kunit_test_successful_try(void *data) in kunit_test_successful_try() argument 19 struct kunit *test = data; in kunit_test_successful_try() 25 static void kunit_test_no_catch(void *data) in kunit_test_no_catch() argument 27 struct kunit *test = data; in kunit_test_no_catch() 46 static void kunit_test_unsuccessful_try(void *data) in kunit_test_unsuccessful_try() argument 48 struct kunit *test = data; in kunit_test_unsuccessful_try() 56 static void kunit_test_catch(void *data) in kunit_test_catch() argument 58 struct kunit *test = data; in kunit_test_catch() 121 res->data = &ctx->is_resource_initialized; in fake_resource_init() 128 bool *is_resource_initialized = res->data; in fake_resource_free() [all …]
|
D | test.c | 269 static void kunit_try_run_case(void *data) in kunit_try_run_case() argument 271 struct kunit_try_catch_context *ctx = data; in kunit_try_run_case() 290 static void kunit_catch_run_case(void *data) in kunit_catch_run_case() argument 292 struct kunit_try_catch_context *ctx = data; in kunit_catch_run_case() 409 void *data) in kunit_add_resource() argument 417 ret = init(res, data); in kunit_add_resource() 421 res->data = data; in kunit_add_resource() 438 void *data) in kunit_add_named_resource() argument 453 return kunit_add_resource(test, init, free, res, data); in kunit_add_named_resource() 461 void *data) in kunit_alloc_and_get_resource() argument [all …]
|
/lib/raid6/test/ |
D | test.c | 24 char data[NDISKS][PAGE_SIZE] __attribute__((aligned(PAGE_SIZE))); variable 34 data[i][j] = rand(); in makedata() 36 dataptrs[i] = data[i]; in makedata() 64 erra = memcmp(data[i], recovi, PAGE_SIZE); in test_disks() 65 errb = memcmp(data[j], recovj, PAGE_SIZE); in test_disks() 81 dataptrs[i] = data[i]; in test_disks() 82 dataptrs[j] = data[j]; in test_disks() 112 memset(data[NDISKS-2], 0xee, 2*PAGE_SIZE); in main()
|
/lib/livepatch/ |
D | test_klp_state2.c | 49 loglevel_state->data = kzalloc(sizeof(console_loglevel), GFP_KERNEL); in allocate_loglevel_state() 50 if (!loglevel_state->data) in allocate_loglevel_state() 70 loglevel_state->data = prev_loglevel_state->data; in fix_console_loglevel() 75 *(int *)loglevel_state->data = console_loglevel; in fix_console_loglevel() 95 console_loglevel = *(int *)loglevel_state->data; in restore_console_loglevel() 115 kfree(loglevel_state->data); in free_loglevel_state()
|
D | test_klp_state.c | 42 loglevel_state->data = kzalloc(sizeof(console_loglevel), GFP_KERNEL); in allocate_loglevel_state() 43 if (!loglevel_state->data) in allocate_loglevel_state() 60 *(int *)loglevel_state->data = console_loglevel; in fix_console_loglevel() 73 console_loglevel = *(int *)loglevel_state->data; in restore_console_loglevel() 86 kfree(loglevel_state->data); in free_loglevel_state()
|