Lines Matching refs:ptr
23 void *ptr; in dm_test_devres_alloc() local
31 ptr = devm_kmalloc(dev, TEST_DEVRES_SIZE, 0); in dm_test_devres_alloc()
32 ut_assert(ptr != NULL); in dm_test_devres_alloc()
49 void *ptr; in dm_test_devres_free() local
56 ptr = devm_kmalloc(dev, TEST_DEVRES_SIZE, 0); in dm_test_devres_free()
57 ut_assert(ptr != NULL); in dm_test_devres_free()
62 devm_kfree(dev, ptr); in dm_test_devres_free()
76 u8 *ptr, val; in dm_test_devres_kzalloc() local
81 ptr = devm_kzalloc(dev, TEST_DEVRES_SIZE, 0); in dm_test_devres_kzalloc()
82 ut_assert(ptr != NULL); in dm_test_devres_kzalloc()
84 val |= *ptr; in dm_test_devres_kzalloc()
96 u8 *ptr; in dm_test_devres_kmalloc_array() local
102 ptr = devm_kmalloc_array(dev, TEST_DEVRES_COUNT, TEST_DEVRES_SIZE, 0); in dm_test_devres_kmalloc_array()
103 ut_assert(ptr != NULL); in dm_test_devres_kmalloc_array()
104 memset(ptr, '\xff', TEST_DEVRES_TOTAL); in dm_test_devres_kmalloc_array()
119 u8 *ptr, val; in dm_test_devres_kcalloc() local
128 ptr = devm_kcalloc(dev, TEST_DEVRES_SIZE, TEST_DEVRES_COUNT, 0); in dm_test_devres_kcalloc()
129 ut_assert(ptr != NULL); in dm_test_devres_kcalloc()
132 val |= *ptr; in dm_test_devres_kcalloc()