| /OK3568_Linux_fs/kernel/scripts/coccinelle/api/ |
| H A D | kvmalloc.cocci | 37 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...) 47 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...) 59 * (..., size, \(flags\|GFP_KERNEL\|\(GFP_KERNEL\|flags\)|__GFP_NOWARN\), ...); 101 - E = kmalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\)); 104 + E = kvmalloc(size, GFP_KERNEL); 111 - E = kmalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\)); 114 + E = kvmalloc(size, GFP_KERNEL); 121 - T x = kmalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\)); 124 + T x = kvmalloc(size, GFP_KERNEL); 133 - E = kzalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\)); [all …]
|
| /OK3568_Linux_fs/kernel/samples/kmemleak/ |
| H A D | kmemleak-test.c | 43 pr_info("kmalloc(32) = %p\n", kmalloc(32, GFP_KERNEL)); in kmemleak_test_init() 44 pr_info("kmalloc(32) = %p\n", kmalloc(32, GFP_KERNEL)); in kmemleak_test_init() 45 pr_info("kmalloc(1024) = %p\n", kmalloc(1024, GFP_KERNEL)); in kmemleak_test_init() 46 pr_info("kmalloc(1024) = %p\n", kmalloc(1024, GFP_KERNEL)); in kmemleak_test_init() 47 pr_info("kmalloc(2048) = %p\n", kmalloc(2048, GFP_KERNEL)); in kmemleak_test_init() 48 pr_info("kmalloc(2048) = %p\n", kmalloc(2048, GFP_KERNEL)); in kmemleak_test_init() 49 pr_info("kmalloc(4096) = %p\n", kmalloc(4096, GFP_KERNEL)); in kmemleak_test_init() 50 pr_info("kmalloc(4096) = %p\n", kmalloc(4096, GFP_KERNEL)); in kmemleak_test_init() 53 kmem_cache_alloc(files_cachep, GFP_KERNEL)); in kmemleak_test_init() 55 kmem_cache_alloc(files_cachep, GFP_KERNEL)); in kmemleak_test_init() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/radix-tree/ |
| H A D | idr-test.c | 38 assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0, 0x4000, GFP_KERNEL) == 0); in idr_alloc_test() 39 assert(idr_alloc_cyclic(&idr, DUMMY_PTR, 0x3ffd, 0x4000, GFP_KERNEL) == 0x3ffd); in idr_alloc_test() 52 id = idr_alloc_cyclic(&idr, item, 1, 0x4000, GFP_KERNEL); in idr_alloc_test() 64 idr_alloc(&idr, (void *)-1, 10, 11, GFP_KERNEL); in idr_replace_test() 83 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); in idr_null_test() 88 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); in idr_null_test() 94 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == i); in idr_null_test() 102 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 5); in idr_null_test() 114 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); in idr_null_test() 123 assert(idr_alloc(&idr, NULL, 1, 0, GFP_KERNEL) == i); in idr_null_test() [all …]
|
| /OK3568_Linux_fs/kernel/lib/ |
| H A D | test_xarray.c | 48 GFP_KERNEL) != 0); in xa_insert_index() 95 XA_BUG_ON(xa, xa_err(xa_store_index(xa, 1, GFP_KERNEL)) != 0); in check_xa_err() 96 XA_BUG_ON(xa, xa_err(xa_store(xa, 1, xa_mk_value(0), GFP_KERNEL)) != 0); in check_xa_err() 107 xa_store_index(xa, 0, GFP_KERNEL); in check_xas_retry() 108 xa_store_index(xa, 1, GFP_KERNEL); in check_xas_retry() 122 XA_BUG_ON(xa, xa_store_index(xa, 1, GFP_KERNEL) != NULL); in check_xas_retry() 159 XA_BUG_ON(xa, xa_store_index(xa, i, GFP_KERNEL) != NULL); in check_xa_load() 186 XA_BUG_ON(xa, xa_store_index(xa, index, GFP_KERNEL) != NULL); in check_xa_mark_1() 212 XA_BUG_ON(xa, xa_store_index(xa, index + 1, GFP_KERNEL)); in check_xa_mark_1() 214 XA_BUG_ON(xa, xa_store_index(xa, index + 2, GFP_KERNEL)); in check_xa_mark_1() [all …]
|
| H A D | test_kasan.c | 129 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_right() 141 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_left() 153 ptr = kmalloc_node(size, GFP_KERNEL, 0); in kmalloc_node_oob_right() 173 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_pagealloc_oob_right() 188 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_pagealloc_uaf() 202 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_pagealloc_invalid_free() 222 pages = alloc_pages(GFP_KERNEL, order); in pagealloc_oob_right() 236 pages = alloc_pages(GFP_KERNEL, order); in pagealloc_uaf() 253 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_large_oob_right() 269 ptr1 = kmalloc(size1, GFP_KERNEL); in krealloc_more_oob_helper() [all …]
|
| H A D | test_ida.c | 36 IDA_BUG_ON(ida, ida_alloc(ida, GFP_KERNEL) != i); in ida_check_alloc() 41 id = ida_alloc(ida, GFP_KERNEL); in ida_check_alloc() 50 IDA_BUG_ON(ida, ida_alloc_min(ida, 5000, GFP_KERNEL) != 10001); in ida_check_alloc() 59 IDA_BUG_ON(ida, ida_alloc_min(ida, base, GFP_KERNEL) != base); in ida_check_destroy_1() 89 IDA_BUG_ON(ida, ida_alloc_min(ida, base, GFP_KERNEL) != in ida_check_leaf() 96 IDA_BUG_ON(ida, ida_alloc(ida, GFP_KERNEL) != 0); in ida_check_leaf() 114 IDA_BUG_ON(ida, ida_alloc_min(ida, base, GFP_KERNEL) != in ida_check_max() 117 IDA_BUG_ON(ida, ida_alloc_min(ida, base, GFP_KERNEL) != in ida_check_max() 132 IDA_BUG_ON(ida, ida_alloc_min(ida, i + 1, GFP_KERNEL) != i + 1); in ida_check_conv() 134 GFP_KERNEL) != i + BITS_PER_LONG); in ida_check_conv() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/misc/lkdtm/ |
| H A D | heap.c | 22 u32 *data = kmalloc(len, GFP_KERNEL); in lkdtm_OVERWRITE_ALLOCATION() 41 base = kmalloc(len, GFP_KERNEL); in lkdtm_WRITE_AFTER_FREE() 50 again = kmalloc(len, GFP_KERNEL); in lkdtm_WRITE_AFTER_FREE() 68 base = kmalloc(len, GFP_KERNEL); in lkdtm_READ_AFTER_FREE() 74 val = kmalloc(len, GFP_KERNEL); in lkdtm_READ_AFTER_FREE() 101 unsigned long p = __get_free_page(GFP_KERNEL); in lkdtm_WRITE_BUDDY_AFTER_FREE() 114 p = __get_free_page(GFP_KERNEL); in lkdtm_WRITE_BUDDY_AFTER_FREE() 121 unsigned long p = __get_free_page(GFP_KERNEL); in lkdtm_READ_BUDDY_AFTER_FREE() 130 val = kmalloc(1024, GFP_KERNEL); in lkdtm_READ_BUDDY_AFTER_FREE() 159 val = kmem_cache_alloc(double_free_cache, GFP_KERNEL); in lkdtm_SLAB_FREE_DOUBLE() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/ti/wl1251/ |
| H A D | acx.c | 20 rates = kzalloc(sizeof(*rates), GFP_KERNEL); in wl1251_acx_frame_rates() 49 mac = kzalloc(sizeof(*mac), GFP_KERNEL); in wl1251_acx_station_id() 69 default_key = kzalloc(sizeof(*default_key), GFP_KERNEL); in wl1251_acx_default_key() 97 wake_up = kzalloc(sizeof(*wake_up), GFP_KERNEL); in wl1251_acx_wake_up_conditions() 123 auth = kzalloc(sizeof(*auth), GFP_KERNEL); in wl1251_acx_sleep_auth() 142 rev = kzalloc(sizeof(*rev), GFP_KERNEL); in wl1251_acx_fw_version() 177 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_tx_power() 201 feature = kzalloc(sizeof(*feature), GFP_KERNEL); in wl1251_acx_feature_cfg() 243 params = kzalloc(sizeof(*params), GFP_KERNEL); in wl1251_acx_data_path_params() 289 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_rx_msdu_life_time() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/ |
| H A D | dhd_custom_memprealloc.c | 288 wlan_static_skb[i] = __dev_alloc_skb(DHD_SKB_1PAGE_BUFSIZE, GFP_KERNEL); in dhd_init_wlan_mem() 297 wlan_static_skb[i] = __dev_alloc_skb(DHD_SKB_2PAGE_BUFSIZE, GFP_KERNEL); in dhd_init_wlan_mem() 305 wlan_static_skb[i] = __dev_alloc_skb(DHD_SKB_4PAGE_BUFSIZE, GFP_KERNEL); in dhd_init_wlan_mem() 315 kmalloc(wlan_mem_array[i].size, GFP_KERNEL); in dhd_init_wlan_mem() 324 wlan_static_scan_buf0 = kmalloc(WLAN_SCAN_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 330 wlan_static_scan_buf1 = kmalloc(WLAN_SCAN_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 336 wlan_static_dhd_log_dump_buf = kmalloc(DHD_LOG_DUMP_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 342 wlan_static_dhd_log_dump_buf_ex = kmalloc(DHD_LOG_DUMP_BUF_EX_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 348 wlan_static_dhd_info_buf = kmalloc(WLAN_DHD_INFO_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 356 GFP_KERNEL); in dhd_init_wlan_mem() [all …]
|
| H A D | dhd_static_buf.c | 460 wlan_static_prot[index] = kmalloc(DHD_PREALLOC_PROT_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 468 wlan_static_rxbuf[index] = kmalloc(DHD_PREALLOC_RXBUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 475 wlan_static_databuf[index] = kmalloc(DHD_PREALLOC_DATABUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 483 wlan_static_osl_buf[index] = kmalloc(DHD_PREALLOC_OSL_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 490 wlan_static_scan_buf0[index] = kmalloc(DHD_PREALLOC_WIPHY_ESCAN0_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 497 wlan_static_dhd_info_buf[index] = kmalloc(DHD_PREALLOC_DHD_INFO_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 505 wlan_static_dhd_wlfc_info_buf[index] = kmalloc(WLAN_DHD_WLFC_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 514 wlan_static_if_flow_lkup[index] = kmalloc(DHD_PREALLOC_IF_FLOW_LKUP_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 523 wlan_static_dhd_memdump_ram_buf[index] = kmalloc(DHD_PREALLOC_MEMDUMP_RAM_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 532 wlan_static_dhd_wlfc_hanger_buf[index] = kmalloc(DHD_PREALLOC_DHD_WLFC_HANGER_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/ |
| H A D | dhd_custom_memprealloc.c | 288 wlan_static_skb[i] = __dev_alloc_skb(DHD_SKB_1PAGE_BUFSIZE, GFP_KERNEL); in dhd_init_wlan_mem() 297 wlan_static_skb[i] = __dev_alloc_skb(DHD_SKB_2PAGE_BUFSIZE, GFP_KERNEL); in dhd_init_wlan_mem() 305 wlan_static_skb[i] = __dev_alloc_skb(DHD_SKB_4PAGE_BUFSIZE, GFP_KERNEL); in dhd_init_wlan_mem() 315 kmalloc(wlan_mem_array[i].size, GFP_KERNEL); in dhd_init_wlan_mem() 324 wlan_static_scan_buf0 = kmalloc(WLAN_SCAN_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 330 wlan_static_scan_buf1 = kmalloc(WLAN_SCAN_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 336 wlan_static_dhd_log_dump_buf = kmalloc(DHD_LOG_DUMP_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 342 wlan_static_dhd_log_dump_buf_ex = kmalloc(DHD_LOG_DUMP_BUF_EX_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 348 wlan_static_dhd_info_buf = kmalloc(WLAN_DHD_INFO_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 356 GFP_KERNEL); in dhd_init_wlan_mem() [all …]
|
| H A D | dhd_static_buf.c | 457 wlan_static_prot[index] = kmalloc(DHD_PREALLOC_PROT_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 465 wlan_static_rxbuf[index] = kmalloc(DHD_PREALLOC_RXBUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 472 wlan_static_databuf[index] = kmalloc(DHD_PREALLOC_DATABUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 480 wlan_static_osl_buf[index] = kmalloc(DHD_PREALLOC_OSL_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 487 wlan_static_scan_buf0[index] = kmalloc(DHD_PREALLOC_WIPHY_ESCAN0_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 494 wlan_static_dhd_info_buf[index] = kmalloc(DHD_PREALLOC_DHD_INFO_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 502 wlan_static_dhd_wlfc_info_buf[index] = kmalloc(WLAN_DHD_WLFC_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 511 wlan_static_if_flow_lkup[index] = kmalloc(DHD_PREALLOC_IF_FLOW_LKUP_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 520 wlan_static_dhd_memdump_ram_buf[index] = kmalloc(DHD_PREALLOC_MEMDUMP_RAM_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 529 wlan_static_dhd_wlfc_hanger_buf[index] = kmalloc(DHD_PREALLOC_DHD_WLFC_HANGER_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/ |
| H A D | dhd_custom_memprealloc.c | 297 wlan_static_skb[i] = __dev_alloc_skb(DHD_SKB_1PAGE_BUFSIZE, GFP_KERNEL); in dhd_init_wlan_mem() 305 wlan_static_skb[i] = __dev_alloc_skb(DHD_SKB_2PAGE_BUFSIZE, GFP_KERNEL); in dhd_init_wlan_mem() 312 wlan_static_skb[i] = __dev_alloc_skb(DHD_SKB_4PAGE_BUFSIZE, GFP_KERNEL); in dhd_init_wlan_mem() 321 kmalloc(wlan_mem_array[i].size, GFP_KERNEL); in dhd_init_wlan_mem() 329 wlan_static_scan_buf0 = kmalloc(WLAN_SCAN_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 335 wlan_static_scan_buf1 = kmalloc(WLAN_SCAN_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 341 wlan_static_dhd_log_dump_buf = kmalloc(DHD_LOG_DUMP_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 347 wlan_static_dhd_log_dump_buf_ex = kmalloc(DHD_LOG_DUMP_BUF_EX_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 353 wlan_static_dhd_info_buf = kmalloc(WLAN_DHD_INFO_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 361 GFP_KERNEL); in dhd_init_wlan_mem() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/infineon/ |
| H A D | dhd_custom_memprealloc.c | 297 wlan_static_skb[i] = __dev_alloc_skb(DHD_SKB_1PAGE_BUFSIZE, GFP_KERNEL); in dhd_init_wlan_mem() 305 wlan_static_skb[i] = __dev_alloc_skb(DHD_SKB_2PAGE_BUFSIZE, GFP_KERNEL); in dhd_init_wlan_mem() 312 wlan_static_skb[i] = __dev_alloc_skb(DHD_SKB_4PAGE_BUFSIZE, GFP_KERNEL); in dhd_init_wlan_mem() 321 kmalloc(wlan_mem_array[i].size, GFP_KERNEL); in dhd_init_wlan_mem() 329 wlan_static_scan_buf0 = kmalloc(WLAN_SCAN_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 335 wlan_static_scan_buf1 = kmalloc(WLAN_SCAN_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 341 wlan_static_dhd_log_dump_buf = kmalloc(DHD_LOG_DUMP_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 347 wlan_static_dhd_log_dump_buf_ex = kmalloc(DHD_LOG_DUMP_BUF_EX_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 353 wlan_static_dhd_info_buf = kmalloc(WLAN_DHD_INFO_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 361 GFP_KERNEL); in dhd_init_wlan_mem() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/ |
| H A D | dhd_custom_memprealloc.c | 297 wlan_static_skb[i] = __dev_alloc_skb(DHD_SKB_1PAGE_BUFSIZE, GFP_KERNEL); in dhd_init_wlan_mem() 305 wlan_static_skb[i] = __dev_alloc_skb(DHD_SKB_2PAGE_BUFSIZE, GFP_KERNEL); in dhd_init_wlan_mem() 312 wlan_static_skb[i] = __dev_alloc_skb(DHD_SKB_4PAGE_BUFSIZE, GFP_KERNEL); in dhd_init_wlan_mem() 321 kmalloc(wlan_mem_array[i].size, GFP_KERNEL); in dhd_init_wlan_mem() 329 wlan_static_scan_buf0 = kmalloc(WLAN_SCAN_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 335 wlan_static_scan_buf1 = kmalloc(WLAN_SCAN_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 341 wlan_static_dhd_log_dump_buf = kmalloc(DHD_LOG_DUMP_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 347 wlan_static_dhd_log_dump_buf_ex = kmalloc(DHD_LOG_DUMP_BUF_EX_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 353 wlan_static_dhd_info_buf = kmalloc(WLAN_DHD_INFO_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 361 GFP_KERNEL); in dhd_init_wlan_mem() [all …]
|
| /OK3568_Linux_fs/kernel/mm/kfence/ |
| H A D | kfence_test.c | 200 return kmalloc_caches[kmalloc_type(GFP_KERNEL)][kmalloc_index(size)]->align; in kmalloc_cache_alignment() 270 …struct kmem_cache *s = test_cache ?: kmalloc_caches[kmalloc_type(GFP_KERNEL)][kmalloc_index(size)]; in test_alloc() 321 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_LEFT); in test_out_of_bounds_read() 327 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_RIGHT); in test_out_of_bounds_read() 345 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_LEFT); in test_out_of_bounds_write() 362 expect.addr = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY); in test_use_after_free_read() 377 expect.addr = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY); in test_double_free() 393 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY); in test_invalid_addr_free() 413 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_LEFT); in test_corruption() 419 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_RIGHT); in test_corruption() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/ |
| H A D | dhd_custom_memprealloc.c | 338 kmalloc(wlan_mem_array[i].size, GFP_KERNEL); in dhd_init_wlan_mem() 346 wlan_static_scan_buf0 = kmalloc(WLAN_SCAN_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 352 wlan_static_scan_buf1 = kmalloc(WLAN_SCAN_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 358 wlan_static_dhd_log_dump_buf = kmalloc(DHD_LOG_DUMP_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 364 wlan_static_dhd_log_dump_buf_ex = kmalloc(DHD_LOG_DUMP_BUF_EX_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 370 wlan_static_dhd_info_buf = kmalloc(WLAN_DHD_INFO_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 378 GFP_KERNEL); in dhd_init_wlan_mem() 386 GFP_KERNEL); in dhd_init_wlan_mem() 393 GFP_KERNEL); in dhd_init_wlan_mem() 401 GFP_KERNEL); in dhd_init_wlan_mem() [all …]
|
| H A D | dhd_static_buf.c | 283 wlan_static_prot = kmalloc(DHD_PREALLOC_PROT_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 290 wlan_static_rxbuf = kmalloc(DHD_PREALLOC_RXBUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 296 wlan_static_databuf = kmalloc(DHD_PREALLOC_DATABUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 303 wlan_static_osl_buf = kmalloc(DHD_PREALLOC_OSL_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 309 wlan_static_scan_buf0 = kmalloc(DHD_PREALLOC_WIPHY_ESCAN0_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 315 wlan_static_dhd_info_buf = kmalloc(DHD_PREALLOC_DHD_INFO_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 321 wlan_static_dhd_wlfc_info_buf = kmalloc(WLAN_DHD_WLFC_BUF_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 328 wlan_static_if_flow_lkup = kmalloc(DHD_PREALLOC_IF_FLOW_LKUP_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 335 wlan_static_dhd_memdump_ram_buf = kmalloc(DHD_PREALLOC_MEMDUMP_RAM_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() 341 wlan_static_dhd_wlfc_hanger_buf = kmalloc(DHD_PREALLOC_DHD_WLFC_HANGER_SIZE, GFP_KERNEL); in dhd_init_wlan_mem() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/arm/display/komeda/ |
| H A D | komeda_private_obj.c | 24 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_layer_atomic_duplicate_state() 53 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_layer_obj_add() 68 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_scaler_atomic_duplicate_state() 95 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_scaler_obj_add() 111 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_compiz_atomic_duplicate_state() 138 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_compiz_obj_add() 154 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_splitter_atomic_duplicate_state() 181 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_splitter_obj_add() 198 st = kmemdup(obj->state, sizeof(*st), GFP_KERNEL); in komeda_merger_atomic_duplicate_state() 224 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_merger_obj_add() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/ti/wlcore/ |
| H A D | acx.c | 31 wake_up = kzalloc(sizeof(*wake_up), GFP_KERNEL); in wl1271_acx_wake_up_conditions() 60 auth = kzalloc(sizeof(*auth), GFP_KERNEL); in wl1271_acx_sleep_auth() 93 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_tx_power() 120 feature = kzalloc(sizeof(*feature), GFP_KERNEL); in wl1271_acx_feature_cfg() 165 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_rx_msdu_life_time() 192 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in wl1271_acx_slot() 221 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_group_address_tbl() 251 rx_timeout = kzalloc(sizeof(*rx_timeout), GFP_KERNEL); in wl1271_acx_service_period_timeout() 291 rts = kzalloc(sizeof(*rts), GFP_KERNEL); in wl1271_acx_rts_threshold() 319 dco = kzalloc(sizeof(*dco), GFP_KERNEL); in wl1271_acx_dco_itrim_params() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/selftests/ |
| H A D | i915_sw_fence.c | 50 fence = kmalloc(sizeof(*fence), GFP_KERNEL); in alloc_fence() 109 if (i915_sw_fence_await_sw_fence_gfp(A, A, GFP_KERNEL) != -EINVAL) { in test_dag() 120 i915_sw_fence_await_sw_fence_gfp(A, B, GFP_KERNEL); in test_dag() 121 if (i915_sw_fence_await_sw_fence_gfp(B, A, GFP_KERNEL) != -EINVAL) { in test_dag() 132 if (i915_sw_fence_await_sw_fence_gfp(B, C, GFP_KERNEL) == -EINVAL) { in test_dag() 136 if (i915_sw_fence_await_sw_fence_gfp(C, B, GFP_KERNEL) != -EINVAL) { in test_dag() 140 if (i915_sw_fence_await_sw_fence_gfp(C, A, GFP_KERNEL) != -EINVAL) { in test_dag() 144 if (i915_sw_fence_await_sw_fence_gfp(A, C, GFP_KERNEL) == -EINVAL) { in test_dag() 190 ret = i915_sw_fence_await_sw_fence_gfp(A, B, GFP_KERNEL); in test_AB() 245 ret = i915_sw_fence_await_sw_fence_gfp(A, B, GFP_KERNEL); in test_ABC() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/clk/qcom/ |
| H A D | krait-cc.c | 84 div = devm_kzalloc(dev, sizeof(*div), GFP_KERNEL); in krait_add_div() 94 init.name = kasprintf(GFP_KERNEL, "hfpll%s_div", s); in krait_add_div() 99 p_names[0] = kasprintf(GFP_KERNEL, "hfpll%s", s); in krait_add_div() 130 mux = devm_kzalloc(dev, sizeof(*mux), GFP_KERNEL); in krait_add_sec_mux() 142 init.name = kasprintf(GFP_KERNEL, "krait%s_sec_mux", s); in krait_add_sec_mux() 147 sec_mux_list[0] = kasprintf(GFP_KERNEL, "acpu%s_aux", s); in krait_add_sec_mux() 183 mux = devm_kzalloc(dev, sizeof(*mux), GFP_KERNEL); in krait_add_pri_mux() 195 init.name = kasprintf(GFP_KERNEL, "krait%s_pri_mux", s); in krait_add_pri_mux() 199 p_names[0] = kasprintf(GFP_KERNEL, "hfpll%s", s); in krait_add_pri_mux() 205 p_names[1] = kasprintf(GFP_KERNEL, "hfpll%s_div", s); in krait_add_pri_mux() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/misc/ |
| H A D | uss720.c | 263 if (get_1284_register(pp, 6, ®, GFP_KERNEL)) in change_mode() 283 if (get_1284_register(pp, 6, ®, GFP_KERNEL)) in change_mode() 297 if (set_1284_register(pp, 6, m << 5, GFP_KERNEL)) in change_mode() 299 if (get_1284_register(pp, 6, ®, GFP_KERNEL)) in change_mode() 311 if (get_1284_register(pp, 1, &stat, GFP_KERNEL)) in clear_epp_timeout() 337 set_1284_register(pp, 0, d, GFP_KERNEL); in parport_uss720_write_data() 344 if (get_1284_register(pp, 0, &ret, GFP_KERNEL)) in parport_uss720_read_data() 354 if (set_1284_register(pp, 2, d, GFP_KERNEL)) in parport_uss720_write_control() 394 if (set_1284_register(pp, 2, d, GFP_KERNEL)) in parport_uss720_disable_irq() 405 if (set_1284_register(pp, 2, d, GFP_KERNEL)) in parport_uss720_enable_irq() [all …]
|
| /OK3568_Linux_fs/kernel/fs/jffs2/ |
| H A D | malloc.c | 116 ret = kmalloc(sizeof(struct jffs2_full_dirent) + namesize, GFP_KERNEL); in jffs2_alloc_full_dirent() 130 ret = kmem_cache_alloc(full_dnode_slab, GFP_KERNEL); in jffs2_alloc_full_dnode() 144 ret = kmem_cache_alloc(raw_dirent_slab, GFP_KERNEL); in jffs2_alloc_raw_dirent() 158 ret = kmem_cache_alloc(raw_inode_slab, GFP_KERNEL); in jffs2_alloc_raw_inode() 172 ret = kmem_cache_alloc(tmp_dnode_info_slab, GFP_KERNEL); in jffs2_alloc_tmp_dnode_info() 188 ret = kmem_cache_alloc(raw_node_ref_slab, GFP_KERNEL); in jffs2_alloc_refblock() 251 ret = kmem_cache_alloc(node_frag_slab, GFP_KERNEL); in jffs2_alloc_node_frag() 265 ret = kmem_cache_alloc(inode_cache_slab, GFP_KERNEL); in jffs2_alloc_inode_cache() 280 xd = kmem_cache_zalloc(xattr_datum_cache, GFP_KERNEL); in jffs2_alloc_xattr_datum() 300 ref = kmem_cache_zalloc(xattr_ref_cache, GFP_KERNEL); in jffs2_alloc_xattr_ref()
|
| /OK3568_Linux_fs/kernel/drivers/soc/ux500/ |
| H A D | ux500-soc-id.c | 128 return kasprintf(GFP_KERNEL, "DB%4x", dbx500_id.partnumber); in ux500_get_machine() 133 return kasprintf(GFP_KERNEL, "ux500"); in ux500_get_family() 141 return kasprintf(GFP_KERNEL, "%s", "ED"); in ux500_get_revision() 143 return kasprintf(GFP_KERNEL, "%d.%d", in ux500_get_revision() 146 return kasprintf(GFP_KERNEL, "%s", "Unknown"); in ux500_get_revision() 180 retstr = kasprintf(GFP_KERNEL, "%08x%08x%08x%08x%08x", in db8500_read_soc_id() 210 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in ux500_soc_device_init()
|