Home
last modified time | relevance | path

Searched refs:GFP_KERNEL (Results 1 – 200 of 8227) sorted by relevance

12345678910>>...42

/linux-4.1.27/mm/
Dkmemleak-test.c55 pr_info("kmalloc(32) = %p\n", kmalloc(32, GFP_KERNEL)); in kmemleak_test_init()
56 pr_info("kmalloc(32) = %p\n", kmalloc(32, GFP_KERNEL)); in kmemleak_test_init()
57 pr_info("kmalloc(1024) = %p\n", kmalloc(1024, GFP_KERNEL)); in kmemleak_test_init()
58 pr_info("kmalloc(1024) = %p\n", kmalloc(1024, GFP_KERNEL)); in kmemleak_test_init()
59 pr_info("kmalloc(2048) = %p\n", kmalloc(2048, GFP_KERNEL)); in kmemleak_test_init()
60 pr_info("kmalloc(2048) = %p\n", kmalloc(2048, GFP_KERNEL)); in kmemleak_test_init()
61 pr_info("kmalloc(4096) = %p\n", kmalloc(4096, GFP_KERNEL)); in kmemleak_test_init()
62 pr_info("kmalloc(4096) = %p\n", kmalloc(4096, GFP_KERNEL)); in kmemleak_test_init()
65 kmem_cache_alloc(files_cachep, GFP_KERNEL)); in kmemleak_test_init()
67 kmem_cache_alloc(files_cachep, GFP_KERNEL)); in kmemleak_test_init()
[all …]
/linux-4.1.27/lib/
Dtest_kasan.c26 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_right()
42 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_left()
58 ptr = kmalloc_node(size, GFP_KERNEL, 0); in kmalloc_node_oob_right()
74 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_large_oob_rigth()
91 ptr1 = kmalloc(size1, GFP_KERNEL); in kmalloc_oob_krealloc_more()
92 ptr2 = krealloc(ptr1, size2, GFP_KERNEL); in kmalloc_oob_krealloc_more()
110 ptr1 = kmalloc(size1, GFP_KERNEL); in kmalloc_oob_krealloc_less()
111 ptr2 = krealloc(ptr1, size2, GFP_KERNEL); in kmalloc_oob_krealloc_less()
128 ptr1 = kmalloc(sizeof(*ptr1) - 3, GFP_KERNEL); in kmalloc_oob_16()
129 ptr2 = kmalloc(sizeof(*ptr2), GFP_KERNEL); in kmalloc_oob_16()
[all …]
Dtest-string_helpers.c67 char *in = kmalloc(q_real, GFP_KERNEL); in test_string_unescape()
68 char *out_test = kmalloc(q_real, GFP_KERNEL); in test_string_unescape()
69 char *out_real = kmalloc(q_real, GFP_KERNEL); in test_string_unescape()
280 char *out_test = kmalloc(out_size, GFP_KERNEL); in test_string_escape()
281 char *out_real = kmalloc(out_size, GFP_KERNEL); in test_string_escape()
282 char *in = kmalloc(256, GFP_KERNEL); in test_string_escape()
Dkobject_uevent.c227 env = kzalloc(sizeof(struct kobj_uevent_env), GFP_KERNEL); in kobject_uevent_env()
232 devpath = kobject_get_path(kobj, GFP_KERNEL); in kobject_uevent_env()
300 skb = alloc_skb(len + env->buflen, GFP_KERNEL); in kobject_uevent_env()
317 0, 1, GFP_KERNEL, in kobject_uevent_env()
347 env->envp, GFP_KERNEL, in kobject_uevent_env()
422 ue_sk = kzalloc(sizeof(*ue_sk), GFP_KERNEL); in uevent_net_init()
Ddevres.c30 ptr = devres_alloc(devm_ioremap_release, sizeof(*ptr), GFP_KERNEL); in devm_ioremap()
59 ptr = devres_alloc(devm_ioremap_release, sizeof(*ptr), GFP_KERNEL); in devm_ioremap_nocache()
87 ptr = devres_alloc(devm_ioremap_release, sizeof(*ptr), GFP_KERNEL); in devm_ioremap_wc()
200 ptr = devres_alloc(devm_ioport_map_release, sizeof(*ptr), GFP_KERNEL); in devm_ioport_map()
274 new_dr = devres_alloc(pcim_iomap_release, sizeof(*new_dr), GFP_KERNEL); in pcim_iomap_table()
/linux-4.1.27/drivers/net/wireless/ti/wl1251/
Dacx.c19 rates = kzalloc(sizeof(*rates), GFP_KERNEL); in wl1251_acx_frame_rates()
48 mac = kzalloc(sizeof(*mac), GFP_KERNEL); in wl1251_acx_station_id()
71 default_key = kzalloc(sizeof(*default_key), GFP_KERNEL); in wl1251_acx_default_key()
99 wake_up = kzalloc(sizeof(*wake_up), GFP_KERNEL); in wl1251_acx_wake_up_conditions()
125 auth = kzalloc(sizeof(*auth), GFP_KERNEL); in wl1251_acx_sleep_auth()
144 rev = kzalloc(sizeof(*rev), GFP_KERNEL); in wl1251_acx_fw_version()
179 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_tx_power()
203 feature = kzalloc(sizeof(*feature), GFP_KERNEL); in wl1251_acx_feature_cfg()
245 params = kzalloc(sizeof(*params), GFP_KERNEL); in wl1251_acx_data_path_params()
291 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_rx_msdu_life_time()
[all …]
Dcmd.c176 vbm = kzalloc(sizeof(*vbm), GFP_KERNEL); in wl1251_cmd_vbm()
214 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl1251_cmd_data_path_rx()
250 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl1251_cmd_data_path_tx()
280 join = kzalloc(sizeof(*join), GFP_KERNEL); in wl1251_cmd_join()
325 ps_params = kzalloc(sizeof(*ps_params), GFP_KERNEL); in wl1251_cmd_ps_mode()
357 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl1251_cmd_read_memory()
402 cmd = kzalloc(cmd_len, GFP_KERNEL); in wl1251_cmd_template_set()
435 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl1251_cmd_scan()
499 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl1251_cmd_trigger_scan_to()
/linux-4.1.27/arch/arm/mach-ux500/
Dcpu.c88 return kasprintf(GFP_KERNEL, "DB%4x", dbx500_partnumber()); in ux500_get_machine()
93 return kasprintf(GFP_KERNEL, "ux500"); in ux500_get_family()
101 return kasprintf(GFP_KERNEL, "%s", "ED"); in ux500_get_revision()
103 return kasprintf(GFP_KERNEL, "%d.%d", in ux500_get_revision()
106 return kasprintf(GFP_KERNEL, "%s", "Unknown"); in ux500_get_revision()
137 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in ux500_soc_device_init()
/linux-4.1.27/fs/jffs2/
Dmalloc.c125 ret = kmalloc(sizeof(struct jffs2_full_dirent) + namesize, GFP_KERNEL); in jffs2_alloc_full_dirent()
139 ret = kmem_cache_alloc(full_dnode_slab, GFP_KERNEL); in jffs2_alloc_full_dnode()
153 ret = kmem_cache_alloc(raw_dirent_slab, GFP_KERNEL); in jffs2_alloc_raw_dirent()
167 ret = kmem_cache_alloc(raw_inode_slab, GFP_KERNEL); in jffs2_alloc_raw_inode()
181 ret = kmem_cache_alloc(tmp_dnode_info_slab, GFP_KERNEL); in jffs2_alloc_tmp_dnode_info()
197 ret = kmem_cache_alloc(raw_node_ref_slab, GFP_KERNEL); in jffs2_alloc_refblock()
260 ret = kmem_cache_alloc(node_frag_slab, GFP_KERNEL); in jffs2_alloc_node_frag()
274 ret = kmem_cache_alloc(inode_cache_slab, GFP_KERNEL); in jffs2_alloc_inode_cache()
289 xd = kmem_cache_zalloc(xattr_datum_cache, GFP_KERNEL); in jffs2_alloc_xattr_datum()
309 ref = kmem_cache_zalloc(xattr_ref_cache, GFP_KERNEL); in jffs2_alloc_xattr_ref()
/linux-4.1.27/drivers/usb/misc/
Duss720.c281 if (get_1284_register(pp, 6, &reg, GFP_KERNEL)) in change_mode()
301 if (get_1284_register(pp, 6, &reg, GFP_KERNEL)) in change_mode()
315 if (set_1284_register(pp, 6, m << 5, GFP_KERNEL)) in change_mode()
317 if (get_1284_register(pp, 6, &reg, GFP_KERNEL)) in change_mode()
329 if (get_1284_register(pp, 1, &stat, GFP_KERNEL)) in clear_epp_timeout()
355 set_1284_register(pp, 0, d, GFP_KERNEL); in parport_uss720_write_data()
362 if (get_1284_register(pp, 0, &ret, GFP_KERNEL)) in parport_uss720_read_data()
372 if (set_1284_register(pp, 2, d, GFP_KERNEL)) in parport_uss720_write_control()
391 if (set_1284_register(pp, 2, d, GFP_KERNEL)) in parport_uss720_frob_control()
401 if (get_1284_register(pp, 1, &ret, GFP_KERNEL)) in parport_uss720_read_status()
[all …]
Dcytherm.c103 buffer = kmalloc(8, GFP_KERNEL); in set_brightness()
150 buffer = kmalloc(8, GFP_KERNEL); in show_temp()
194 buffer = kmalloc(8, GFP_KERNEL); in show_button()
232 buffer = kmalloc(8, GFP_KERNEL); in show_port0()
259 buffer = kmalloc(8, GFP_KERNEL); in set_port0()
292 buffer = kmalloc(8, GFP_KERNEL); in show_port1()
319 buffer = kmalloc(8, GFP_KERNEL); in set_port1()
353 dev = kzalloc (sizeof(struct usb_cytherm), GFP_KERNEL); in cytherm_probe()
Dyurex.c202 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in yurex_probe()
233 dev->cntl_urb = usb_alloc_urb(0, GFP_KERNEL); in yurex_probe()
240 dev->cntl_req = kmalloc(YUREX_BUF_SIZE, GFP_KERNEL); in yurex_probe()
248 GFP_KERNEL, in yurex_probe()
271 dev->urb = usb_alloc_urb(0, GFP_KERNEL); in yurex_probe()
279 GFP_KERNEL, &dev->urb->transfer_dma); in yurex_probe()
291 if (usb_submit_urb(dev->urb, GFP_KERNEL)) { in yurex_probe()
515 retval = usb_submit_urb(dev->cntl_urb, GFP_KERNEL); in yurex_write()
Dadutux.c277 if (usb_submit_urb(dev->interrupt_in_urb, GFP_KERNEL)) in adu_open()
438 retval = usb_submit_urb(dev->interrupt_in_urb, GFP_KERNEL); in adu_read()
496 if (usb_submit_urb(dev->interrupt_in_urb, GFP_KERNEL) != 0) in adu_read()
603 retval = usb_submit_urb(dev->interrupt_out_urb, GFP_KERNEL); in adu_write()
674 dev = kzalloc(sizeof(struct adu_device), GFP_KERNEL); in adu_probe()
711 dev->read_buffer_primary = kmalloc((4 * in_end_size), GFP_KERNEL); in adu_probe()
724 dev->read_buffer_secondary = kmalloc((4 * in_end_size), GFP_KERNEL); in adu_probe()
737 dev->interrupt_in_buffer = kmalloc(in_end_size, GFP_KERNEL); in adu_probe()
746 dev->interrupt_in_urb = usb_alloc_urb(0, GFP_KERNEL); in adu_probe()
751 dev->interrupt_out_buffer = kmalloc(out_end_size, GFP_KERNEL); in adu_probe()
[all …]
Diowarrior.c371 buf = kmalloc(count, GFP_KERNEL); in iowarrior_write()
413 int_out_urb = usb_alloc_urb(0, GFP_KERNEL); in iowarrior_write()
421 GFP_KERNEL, &int_out_urb->transfer_dma); in iowarrior_write()
439 retval = usb_submit_urb(int_out_urb, GFP_KERNEL); in iowarrior_write()
489 buffer = kzalloc(dev->report_size, GFP_KERNEL); in iowarrior_ioctl()
631 if ((retval = usb_submit_urb(dev->int_in_urb, GFP_KERNEL)) < 0) { in iowarrior_open()
734 return kasprintf(GFP_KERNEL, "usb/%s", dev_name(dev)); in iowarrior_devnode()
768 dev = kzalloc(sizeof(struct iowarrior), GFP_KERNEL); in iowarrior_probe()
814 dev->int_in_urb = usb_alloc_urb(0, GFP_KERNEL); in iowarrior_probe()
819 dev->int_in_buffer = kmalloc(dev->report_size, GFP_KERNEL); in iowarrior_probe()
[all …]
Dldusb.c362 retval = usb_submit_urb(dev->interrupt_in_urb, GFP_KERNEL); in ld_usb_open()
515 rv = usb_submit_urb(dev->interrupt_in_urb, GFP_KERNEL); in ld_usb_read()
614 retval = usb_submit_urb(dev->interrupt_out_urb, GFP_KERNEL); in ld_usb_write()
670 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in ld_usb_probe()
686 buffer = kmalloc(256, GFP_KERNEL); in ld_usb_probe()
716 …ng_buffer = kmalloc(ring_buffer_size*(sizeof(size_t)+dev->interrupt_in_endpoint_size), GFP_KERNEL); in ld_usb_probe()
721 dev->interrupt_in_buffer = kmalloc(dev->interrupt_in_endpoint_size, GFP_KERNEL); in ld_usb_probe()
726 dev->interrupt_in_urb = usb_alloc_urb(0, GFP_KERNEL); in ld_usb_probe()
733 …dev->interrupt_out_buffer = kmalloc(write_buffer_size*dev->interrupt_out_endpoint_size, GFP_KERNEL in ld_usb_probe()
738 dev->interrupt_out_urb = usb_alloc_urb(0, GFP_KERNEL); in ld_usb_probe()
Dappledisplay.c239 pdata = kzalloc(sizeof(struct appledisplay), GFP_KERNEL); in appledisplay_probe()
253 pdata->msgdata = kmalloc(ACD_MSG_BUFFER_LEN, GFP_KERNEL); in appledisplay_probe()
262 pdata->urb = usb_alloc_urb(0, GFP_KERNEL); in appledisplay_probe()
271 GFP_KERNEL, &pdata->urb->transfer_dma); in appledisplay_probe()
283 if (usb_submit_urb(pdata->urb, GFP_KERNEL)) { in appledisplay_probe()
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
Dacx.c46 wake_up = kzalloc(sizeof(*wake_up), GFP_KERNEL); in wl1271_acx_wake_up_conditions()
75 auth = kzalloc(sizeof(*auth), GFP_KERNEL); in wl1271_acx_sleep_auth()
108 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_tx_power()
135 feature = kzalloc(sizeof(*feature), GFP_KERNEL); in wl1271_acx_feature_cfg()
180 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_rx_msdu_life_time()
207 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in wl1271_acx_slot()
236 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_group_address_tbl()
266 rx_timeout = kzalloc(sizeof(*rx_timeout), GFP_KERNEL); in wl1271_acx_service_period_timeout()
306 rts = kzalloc(sizeof(*rts), GFP_KERNEL); in wl1271_acx_rts_threshold()
334 dco = kzalloc(sizeof(*dco), GFP_KERNEL); in wl1271_acx_dco_itrim_params()
[all …]
Dcmd.c188 events_vector = kmalloc(sizeof(*events_vector), GFP_KERNEL | GFP_DMA); in wlcore_cmd_wait_for_event_or_timeout()
241 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl12xx_cmd_role_enable()
283 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl12xx_cmd_role_disable()
432 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl12xx_cmd_role_start_dev()
484 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl12xx_cmd_role_stop_dev()
518 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl12xx_cmd_role_start_sta()
595 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl12xx_cmd_role_stop_sta()
639 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl12xx_cmd_role_start_ap()
734 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl12xx_cmd_role_stop_ap()
767 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl12xx_cmd_role_start_ibss()
[all …]
/linux-4.1.27/scripts/coccinelle/locks/
Dcall_kern.cocci1 /// Find functions that refer to GFP_KERNEL but are called with locks held.
2 //# The proposed change of converting the GFP_KERNEL is not necessarily the
34 GFP_KERNEL@p
77 - GFP_KERNEL@p
84 * GFP_KERNEL@p
95 cocci.print_secs("GFP_KERNEL",p)
104 msg = "ERROR: function %s called on line %s inside lock on line %s but uses GFP_KERNEL" % (fn,p2[0]…
/linux-4.1.27/include/drm/
Ddrm_mem_util.h38 return kcalloc(nmemb, size, GFP_KERNEL); in drm_calloc_large()
41 GFP_KERNEL | __GFP_HIGHMEM | __GFP_ZERO, PAGE_KERNEL); in drm_calloc_large()
51 return kmalloc(nmemb * size, GFP_KERNEL); in drm_malloc_ab()
54 GFP_KERNEL | __GFP_HIGHMEM, PAGE_KERNEL); in drm_malloc_ab()
/linux-4.1.27/drivers/hwmon/
Diio_hwmon.c78 st = devm_kzalloc(dev, sizeof(*st), GFP_KERNEL); in iio_hwmon_probe()
92 GFP_KERNEL); in iio_hwmon_probe()
99 a = devm_kzalloc(dev, sizeof(*a), GFP_KERNEL); in iio_hwmon_probe()
112 a->dev_attr.attr.name = kasprintf(GFP_KERNEL, in iio_hwmon_probe()
117 a->dev_attr.attr.name = kasprintf(GFP_KERNEL, in iio_hwmon_probe()
122 a->dev_attr.attr.name = kasprintf(GFP_KERNEL, in iio_hwmon_probe()
127 a->dev_attr.attr.name = kasprintf(GFP_KERNEL, in iio_hwmon_probe()
/linux-4.1.27/drivers/net/wireless/ti/wl18xx/
Dacx.c40 bitmap_conf = kzalloc(sizeof(*bitmap_conf), GFP_KERNEL); in wl18xx_acx_host_if_cfg_bitmap()
71 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl18xx_acx_set_checksum_state()
97 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl18xx_acx_clear_statistics()
122 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl18xx_acx_peer_ht_operation_mode()
163 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl18xx_acx_set_peer_cap()
209 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl18xx_acx_interrupt_notify_config()
236 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl18xx_acx_rx_ba_filter()
264 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl18xx_acx_ap_sleep()
Dcmd.c39 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_channel_switch()
95 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_smart_config_start()
122 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_smart_config_stop()
154 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_smart_config_set_group_key()
184 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_set_cac()
215 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_radar_detection_debug()
241 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_cmd_dfs_master_restart()
Devent.c82 GFP_KERNEL); in wlcore_smart_config_sync_event()
88 cfg80211_vendor_event(skb, GFP_KERNEL); in wlcore_smart_config_sync_event()
104 GFP_KERNEL); in wlcore_smart_config_decode_event()
111 cfg80211_vendor_event(skb, GFP_KERNEL); in wlcore_smart_config_decode_event()
Dscan.c48 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_scan_send()
80 cmd_channels = kzalloc(sizeof(*cmd_channels), GFP_KERNEL); in wl18xx_scan_send()
182 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl18xx_scan_sched_scan_config()
214 cmd_channels = kzalloc(sizeof(*cmd_channels), GFP_KERNEL); in wl18xx_scan_sched_scan_config()
301 stop = kzalloc(sizeof(*stop), GFP_KERNEL); in __wl18xx_scan_stop()
/linux-4.1.27/arch/ia64/include/asm/
Dpgalloc.h27 return quicklist_alloc(0, GFP_KERNEL, NULL); in pgd_alloc()
44 return quicklist_alloc(0, GFP_KERNEL, NULL); in pud_alloc_one()
62 return quicklist_alloc(0, GFP_KERNEL, NULL); in pmd_alloc_one()
90 pg = quicklist_alloc(0, GFP_KERNEL, NULL); in pte_alloc_one()
104 return quicklist_alloc(0, GFP_KERNEL, NULL); in pte_alloc_one_kernel()
/linux-4.1.27/arch/arm/mach-tegra/
Dtegra.c93 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in tegra_dt_init()
97 soc_dev_attr->family = kasprintf(GFP_KERNEL, "Tegra"); in tegra_dt_init()
98 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%d", in tegra_dt_init()
100 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%u", tegra_get_chip_id()); in tegra_dt_init()
/linux-4.1.27/lib/mpi/
Dmpiutil.c34 a = kmalloc(sizeof *a, GFP_KERNEL); in mpi_alloc()
64 return kmalloc(len, GFP_KERNEL); in mpi_alloc_limb_space()
94 p = kmalloc(nlimbs * sizeof(mpi_limb_t), GFP_KERNEL); in mpi_resize()
101 a->d = kzalloc(nlimbs * sizeof(mpi_limb_t), GFP_KERNEL); in mpi_resize()
/linux-4.1.27/drivers/s390/cio/
Dairq.c42 airq->lsi_ptr = kzalloc(1, GFP_KERNEL); in register_adapter_interrupt()
126 iv = kzalloc(sizeof(*iv), GFP_KERNEL); in airq_iv_create()
131 iv->vector = kzalloc(size, GFP_KERNEL); in airq_iv_create()
135 iv->avail = kmalloc(size, GFP_KERNEL); in airq_iv_create()
143 iv->bitlock = kzalloc(size, GFP_KERNEL); in airq_iv_create()
149 iv->ptr = kzalloc(size, GFP_KERNEL); in airq_iv_create()
155 iv->data = kzalloc(size, GFP_KERNEL); in airq_iv_create()
Dchsc_sch.c88 private = kzalloc(sizeof(*private), GFP_KERNEL); in chsc_subchannel_probe()
335 chsc_area = (void *)get_zeroed_page(GFP_DMA | GFP_KERNEL); in chsc_ioctl_start()
338 request = kzalloc(sizeof(*request), GFP_KERNEL); in chsc_ioctl_start()
378 on_close_request = kzalloc(sizeof(*on_close_request), GFP_KERNEL); in chsc_ioctl_on_close_set()
383 on_close_chsc_area = (void *)get_zeroed_page(GFP_DMA | GFP_KERNEL); in chsc_ioctl_on_close_set()
435 chsc_area = (void *)get_zeroed_page(GFP_KERNEL | GFP_DMA); in chsc_ioctl_start_sync()
481 scpcd_area = (void *)get_zeroed_page(GFP_KERNEL | GFP_DMA); in chsc_ioctl_info_channel_path()
484 cd = kzalloc(sizeof(*cd), GFP_KERNEL); in chsc_ioctl_info_channel_path()
543 scucd_area = (void *)get_zeroed_page(GFP_KERNEL | GFP_DMA); in chsc_ioctl_info_cu()
546 cd = kzalloc(sizeof(*cd), GFP_KERNEL); in chsc_ioctl_info_cu()
[all …]
/linux-4.1.27/drivers/clk/versatile/
Dclk-impd1.c101 imc->pclkname = kasprintf(GFP_KERNEL, "lm%x-pclk", id); in integrator_impd1_clk_init()
106 imc->vco1name = kasprintf(GFP_KERNEL, "lm%x-vco1", id); in integrator_impd1_clk_init()
114 imc->vco2name = kasprintf(GFP_KERNEL, "lm%x-vco2", id); in integrator_impd1_clk_init()
124 imc->uartname = kasprintf(GFP_KERNEL, "lm%x-uartclk", id); in integrator_impd1_clk_init()
134 imc->spiname = kasprintf(GFP_KERNEL, "lm%x-spiclk", id); in integrator_impd1_clk_init()
146 imc->scname = kasprintf(GFP_KERNEL, "lm%x-scclk", id); in integrator_impd1_clk_init()
/linux-4.1.27/arch/arm/mach-mvebu/
Dmvebu-soc-id.c160 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in mvebu_soc_device()
164 soc_dev_attr->family = kasprintf(GFP_KERNEL, "Marvell"); in mvebu_soc_device()
165 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%X", soc_rev); in mvebu_soc_device()
166 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%X", soc_dev_id); in mvebu_soc_device()
Dboard-v7.c165 new_compat = kzalloc(sizeof(*new_compat), GFP_KERNEL); in i2c_quirk()
167 new_compat->name = kstrdup("compatible", GFP_KERNEL); in i2c_quirk()
170 GFP_KERNEL); in i2c_quirk()
/linux-4.1.27/sound/soc/
Dsoc-devres.c39 ptr = devres_alloc(devm_component_release, sizeof(*ptr), GFP_KERNEL); in devm_snd_soc_register_component()
74 ptr = devres_alloc(devm_platform_release, sizeof(*ptr), GFP_KERNEL); in devm_snd_soc_register_platform()
108 ptr = devres_alloc(devm_card_release, sizeof(*ptr), GFP_KERNEL); in devm_snd_soc_register_card()
146 ptr = devres_alloc(devm_dmaengine_pcm_release, sizeof(*ptr), GFP_KERNEL); in devm_snd_dmaengine_pcm_register()
Dsoc-cache.c33 reg_size, GFP_KERNEL); in snd_soc_cache_init()
35 codec->reg_cache = kzalloc(reg_size, GFP_KERNEL); in snd_soc_cache_init()
/linux-4.1.27/drivers/power/
Dpower_supply_leds.c60 psy->charging_full_trig_name = kasprintf(GFP_KERNEL, in power_supply_create_bat_triggers()
65 psy->charging_trig_name = kasprintf(GFP_KERNEL, in power_supply_create_bat_triggers()
70 psy->full_trig_name = kasprintf(GFP_KERNEL, "%s-full", psy->desc->name); in power_supply_create_bat_triggers()
74 psy->charging_blink_full_solid_trig_name = kasprintf(GFP_KERNEL, in power_supply_create_bat_triggers()
131 psy->online_trig_name = kasprintf(GFP_KERNEL, "%s-online", in power_supply_create_gen_triggers()
/linux-4.1.27/security/selinux/
Dselinuxfs.c160 page = (char *)get_zeroed_page(GFP_KERNEL); in sel_write_enforce()
176 audit_log(current->audit_context, GFP_KERNEL, AUDIT_MAC_STATUS, in sel_write_enforce()
292 page = (char *)get_zeroed_page(GFP_KERNEL); in sel_write_disable()
308 audit_log(current->audit_context, GFP_KERNEL, AUDIT_MAC_STATUS, in sel_write_disable()
391 plm = kzalloc(sizeof(*plm), GFP_KERNEL); in sel_open_policy()
554 audit_log(current->audit_context, GFP_KERNEL, AUDIT_MAC_POLICY_LOAD, in sel_write_load()
579 length = security_context_to_sid(buf, size, &sid, GFP_KERNEL); in sel_write_context()
632 page = (char *)get_zeroed_page(GFP_KERNEL); in sel_write_checkreqprot()
721 scon = kzalloc(size + 1, GFP_KERNEL); in sel_write_access()
726 tcon = kzalloc(size + 1, GFP_KERNEL); in sel_write_access()
[all …]
/linux-4.1.27/arch/frv/mm/
Dpgalloc.c25 pte_t *pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT); in pte_alloc_one_kernel()
36 page = alloc_pages(GFP_KERNEL|__GFP_HIGHMEM|__GFP_REPEAT, 0); in pte_alloc_one()
38 page = alloc_pages(GFP_KERNEL|__GFP_REPEAT, 0); in pte_alloc_one()
140 return quicklist_alloc(0, GFP_KERNEL, pgd_ctor); in pgd_alloc()
/linux-4.1.27/arch/mips/include/asm/
Dpgalloc.h51 ret = (pgd_t *) __get_free_pages(GFP_KERNEL, PGD_ORDER); in pgd_alloc()
72 pte = (pte_t *) __get_free_pages(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO, PTE_ORDER); in pte_alloc_one_kernel()
82 pte = alloc_pages(GFP_KERNEL | __GFP_REPEAT, PTE_ORDER); in pte_alloc_one()
116 pmd = (pmd_t *) __get_free_pages(GFP_KERNEL|__GFP_REPEAT, PMD_ORDER); in pmd_alloc_one()
/linux-4.1.27/include/acpi/platform/
Daclinuxex.h86 return kmalloc(size, irqs_disabled()? GFP_ATOMIC : GFP_KERNEL); in acpi_os_allocate()
91 return kzalloc(size, irqs_disabled()? GFP_ATOMIC : GFP_KERNEL); in acpi_os_allocate_zeroed()
102 irqs_disabled()? GFP_ATOMIC : GFP_KERNEL); in acpi_os_acquire_object()
/linux-4.1.27/drivers/net/wireless/libertas/
Ddebugfs.c37 unsigned long addr = get_zeroed_page(GFP_KERNEL); in lbs_dev_info()
62 unsigned long addr = get_zeroed_page(GFP_KERNEL); in lbs_sleepparams_write()
102 unsigned long addr = get_zeroed_page(GFP_KERNEL); in lbs_sleepparams_read()
130 unsigned long addr = get_zeroed_page(GFP_KERNEL); in lbs_host_sleep_write()
175 unsigned long addr = get_zeroed_page(GFP_KERNEL); in lbs_host_sleep_read()
238 buf = (char *)get_zeroed_page(GFP_KERNEL); in lbs_threshold_read()
242 subscribed = kzalloc(sizeof(*subscribed), GFP_KERNEL); in lbs_threshold_read()
290 buf = (char *)get_zeroed_page(GFP_KERNEL); in lbs_threshold_write()
304 events = kzalloc(sizeof(*events), GFP_KERNEL); in lbs_threshold_write()
452 unsigned long addr = get_zeroed_page(GFP_KERNEL); in lbs_rdmac_read()
[all …]
/linux-4.1.27/arch/cris/include/asm/
Dpgalloc.h17 return (pgd_t *)get_zeroed_page(GFP_KERNEL); in pgd_alloc()
27 pte_t *pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO); in pte_alloc_one_kernel()
34 pte = alloc_pages(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO, 0); in pte_alloc_one()
/linux-4.1.27/arch/arm/mach-zynq/
Dcommon.c118 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in zynq_init_machine()
124 soc_dev_attr->family = kasprintf(GFP_KERNEL, "Xilinx Zynq"); in zynq_init_machine()
125 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "0x%x", system_rev); in zynq_init_machine()
126 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "0x%x", in zynq_init_machine()
/linux-4.1.27/arch/mn10300/mm/
Dpgtable.c66 pte_t *pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT); in pte_alloc_one_kernel()
77 pte = alloc_pages(GFP_KERNEL|__GFP_HIGHMEM|__GFP_REPEAT, 0); in pte_alloc_one()
79 pte = alloc_pages(GFP_KERNEL|__GFP_REPEAT, 0); in pte_alloc_one()
159 return quicklist_alloc(0, GFP_KERNEL, pgd_ctor); in pgd_alloc()
/linux-4.1.27/arch/parisc/include/asm/
Dpgalloc.h23 pgd_t *pgd = (pgd_t *)__get_free_pages(GFP_KERNEL, in pgd_alloc()
66 pmd_t *pmd = (pmd_t *)__get_free_pages(GFP_KERNEL|__GFP_REPEAT, in pmd_alloc_one()
127 struct page *page = alloc_page(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO); in pte_alloc_one()
140 pte_t *pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO); in pte_alloc_one_kernel()
/linux-4.1.27/drivers/pci/hotplug/
Drpaphp_slot.c55 slot = kzalloc(sizeof(struct slot), GFP_KERNEL); in alloc_slot_struct()
58 slot->hotplug_slot = kzalloc(sizeof(struct hotplug_slot), GFP_KERNEL); in alloc_slot_struct()
62 GFP_KERNEL); in alloc_slot_struct()
65 slot->name = kstrdup(drc_name, GFP_KERNEL); in alloc_slot_struct()
Dibmphp_pci.c169 newfunc = kzalloc(sizeof(*newfunc), GFP_KERNEL); in ibmphp_configure_card()
207 newfunc = kzalloc(sizeof(*newfunc), GFP_KERNEL); in ibmphp_configure_card()
235 newfunc = kzalloc(sizeof(*newfunc), GFP_KERNEL); in ibmphp_configure_card()
281 newfunc = kzalloc(sizeof(*newfunc), GFP_KERNEL); in ibmphp_configure_card()
406 io[count] = kzalloc(sizeof(struct resource_node), GFP_KERNEL); in configure_device()
444 pfmem[count] = kzalloc(sizeof(struct resource_node), GFP_KERNEL); in configure_device()
459 mem_tmp = kzalloc(sizeof(*mem_tmp), GFP_KERNEL); in configure_device()
510 mem[count] = kzalloc(sizeof(struct resource_node), GFP_KERNEL); in configure_device()
674 bus_io[count] = kzalloc(sizeof(struct resource_node), GFP_KERNEL); in configure_bridge()
707 bus_pfmem[count] = kzalloc(sizeof(struct resource_node), GFP_KERNEL); in configure_bridge()
[all …]
Dcpqphp_pci.c170 fakedev = kmalloc(sizeof(*fakedev), GFP_KERNEL); in cpqhp_set_irq()
171 fakebus = kmalloc(sizeof(*fakebus), GFP_KERNEL); in cpqhp_set_irq()
735 bus_node = kmalloc(sizeof(*bus_node), GFP_KERNEL); in cpqhp_save_used_resources()
750 io_node = kmalloc(sizeof(*io_node), GFP_KERNEL); in cpqhp_save_used_resources()
766 mem_node = kmalloc(sizeof(*mem_node), GFP_KERNEL); in cpqhp_save_used_resources()
782 p_mem_node = kmalloc(sizeof(*p_mem_node), GFP_KERNEL); in cpqhp_save_used_resources()
814 GFP_KERNEL); in cpqhp_save_used_resources()
832 GFP_KERNEL); in cpqhp_save_used_resources()
849 GFP_KERNEL); in cpqhp_save_used_resources()
886 GFP_KERNEL); in cpqhp_save_used_resources()
[all …]
/linux-4.1.27/drivers/hwtracing/coresight/
Dof_coresight.c84 GFP_KERNEL); in of_coresight_alloc_memory()
91 GFP_KERNEL); in of_coresight_alloc_memory()
98 GFP_KERNEL); in of_coresight_alloc_memory()
117 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); in of_get_coresight_platform_data()
/linux-4.1.27/drivers/net/wireless/rsi/
Drsi_91x_usb.c160 buf = kmalloc(0x04, GFP_KERNEL); in rsi_usb_reg_read()
202 usb_reg_buf = kmalloc(0x04, GFP_KERNEL); in rsi_usb_reg_write()
269 status = usb_submit_urb(urb, GFP_KERNEL); in rsi_rx_urb_submit()
296 buf = kzalloc(4096, GFP_KERNEL); in rsi_usb_write_register_multiple()
381 rsi_dev = kzalloc(sizeof(*rsi_dev), GFP_KERNEL); in rsi_init_usb_interface()
394 common->rx_data_pkt = kmalloc(2048, GFP_KERNEL); in rsi_init_usb_interface()
401 rsi_dev->tx_buffer = kmalloc(2048, GFP_KERNEL); in rsi_init_usb_interface()
406 rsi_dev->rx_usb_urb[0] = usb_alloc_urb(0, GFP_KERNEL); in rsi_init_usb_interface()
/linux-4.1.27/drivers/infiniband/hw/mthca/
Dmthca_allocator.c94 GFP_KERNEL); in mthca_alloc_init()
165 array->page_list = kmalloc(npage * sizeof *array->page_list, GFP_KERNEL); in mthca_array_init()
210 size, &t, GFP_KERNEL); in mthca_buf_alloc()
223 dma_list = kmalloc(npages * sizeof *dma_list, GFP_KERNEL); in mthca_buf_alloc()
234 dma_list = kmalloc(npages * sizeof *dma_list, GFP_KERNEL); in mthca_buf_alloc()
239 GFP_KERNEL); in mthca_buf_alloc()
249 &t, GFP_KERNEL); in mthca_buf_alloc()
Dmthca_provider.c68 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_device()
69 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mthca_query_device()
140 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_port()
141 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mthca_query_port()
235 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_pkey()
236 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mthca_query_pkey()
264 in_mad = kzalloc(sizeof *in_mad, GFP_KERNEL); in mthca_query_gid()
265 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mthca_query_gid()
315 context = kmalloc(sizeof *context, GFP_KERNEL); in mthca_alloc_ucontext()
378 pd = kmalloc(sizeof *pd, GFP_KERNEL); in mthca_alloc_pd()
[all …]
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/
Dalloc.c61 size, &t, GFP_KERNEL); in mlx5_buf_alloc()
79 GFP_KERNEL); in mlx5_buf_alloc()
86 &t, GFP_KERNEL); in mlx5_buf_alloc()
95 pages = kmalloc(sizeof(*pages) * buf->nbufs, GFP_KERNEL); in mlx5_buf_alloc()
141 pgdir = kzalloc(sizeof(*pgdir), GFP_KERNEL); in mlx5_alloc_db_pgdir()
147 &pgdir->db_dma, GFP_KERNEL); in mlx5_alloc_db_pgdir()
Duar.c136 uuari->uars = kcalloc(uuari->num_uars, sizeof(*uuari->uars), GFP_KERNEL); in mlx5_alloc_uuars()
140 uuari->bfs = kcalloc(tot_uuars, sizeof(*uuari->bfs), GFP_KERNEL); in mlx5_alloc_uuars()
147 GFP_KERNEL); in mlx5_alloc_uuars()
153 uuari->count = kcalloc(tot_uuars, sizeof(*uuari->count), GFP_KERNEL); in mlx5_alloc_uuars()
Dmad.c46 in = kzalloc(sizeof(*in), GFP_KERNEL); in mlx5_core_mad_ifc()
50 out = kzalloc(sizeof(*out), GFP_KERNEL); in mlx5_core_mad_ifc()
/linux-4.1.27/drivers/parport/
Dprobe.c54 char *txt = kmalloc(strlen(str)+1, GFP_KERNEL); in parse_data()
83 info->mfr = kstrdup(sep, GFP_KERNEL); in parse_data()
86 info->model = kstrdup(sep, GFP_KERNEL); in parse_data()
91 info->class_name = kstrdup(sep, GFP_KERNEL); in parse_data()
105 info->cmdset = kstrdup(sep, GFP_KERNEL); in parse_data()
112 info->description = kstrdup(sep, GFP_KERNEL); in parse_data()
/linux-4.1.27/drivers/s390/kvm/
Dvirtio_ccw.c215 info = kzalloc(sizeof(*info), GFP_KERNEL); in new_airq_info()
334 GFP_DMA | GFP_KERNEL); in virtio_ccw_drop_indicator()
345 GFP_DMA | GFP_KERNEL); in virtio_ccw_drop_indicator()
467 ccw = kzalloc(sizeof(*ccw), GFP_DMA | GFP_KERNEL); in virtio_ccw_del_vqs()
492 info = kzalloc(sizeof(struct virtio_ccw_vq_info), GFP_KERNEL); in virtio_ccw_setup_vq()
499 GFP_DMA | GFP_KERNEL); in virtio_ccw_setup_vq()
507 info->queue = alloc_pages_exact(size, GFP_KERNEL | __GFP_ZERO); in virtio_ccw_setup_vq()
578 thinint_area = kzalloc(sizeof(*thinint_area), GFP_DMA | GFP_KERNEL); in virtio_ccw_register_adapter_ind()
628 ccw = kzalloc(sizeof(*ccw), GFP_DMA | GFP_KERNEL); in virtio_ccw_find_vqs()
643 indicatorp = kmalloc(sizeof(&vcdev->indicators), GFP_DMA | GFP_KERNEL); in virtio_ccw_find_vqs()
[all …]
/linux-4.1.27/sound/usb/6fire/
Dcomm.c117 buffer = kmalloc(13, GFP_KERNEL); in usb6fire_comm_write8()
135 buffer = kmalloc(13, GFP_KERNEL); in usb6fire_comm_write16()
149 GFP_KERNEL); in usb6fire_comm_init()
156 rt->receiver_buffer = kzalloc(COMM_RECEIVER_BUFSIZE, GFP_KERNEL); in usb6fire_comm_init()
178 ret = usb_submit_urb(urb, GFP_KERNEL); in usb6fire_comm_init()
/linux-4.1.27/drivers/mtd/maps/
Dpmcmsp-flash.c78 msp_flash = kmalloc(fcnt * sizeof(struct map_info *), GFP_KERNEL); in init_msp_flash()
82 msp_parts = kmalloc(fcnt * sizeof(struct mtd_partition *), GFP_KERNEL); in init_msp_flash()
86 msp_maps = kcalloc(fcnt, sizeof(struct mtd_info), GFP_KERNEL); in init_msp_flash()
105 GFP_KERNEL); in init_msp_flash()
142 msp_maps[i].name = kmalloc(7, GFP_KERNEL); in init_msp_flash()
Dvmu-flash.c78 vblock = kmalloc(sizeof(struct vmu_block), GFP_KERNEL); in ofs_to_block()
131 pcache->buffer = kmalloc(card->blocklen, GFP_KERNEL); in maple_vmu_read_block()
161 blockread = kmalloc(card->blocklen/card->readcnt, GFP_KERNEL); in maple_vmu_read_block()
244 sendbuf = kmalloc(phaselen + 4, GFP_KERNEL); in maple_vmu_write_block()
320 buf = kmalloc(card->blocklen, GFP_KERNEL); in vmu_flash_read_char()
448 buffer = kmalloc(card->blocklen, GFP_KERNEL); in vmu_flash_write()
527 part_cur->name = kmalloc(12, GFP_KERNEL); in vmu_queryblocks()
544 mpart = kmalloc(sizeof(struct mdev_part), GFP_KERNEL); in vmu_queryblocks()
553 pcache = kzalloc(sizeof(struct vmu_cache), GFP_KERNEL); in vmu_queryblocks()
614 card = kmalloc(sizeof(struct memcard), GFP_KERNEL); in vmu_connect()
[all …]
/linux-4.1.27/net/bluetooth/
Dmgmt_util.c36 skb = alloc_skb(sizeof(*hdr) + data_len, GFP_KERNEL); in mgmt_send_event()
69 skb = alloc_skb(sizeof(*hdr) + sizeof(*ev), GFP_KERNEL); in mgmt_cmd_status()
100 skb = alloc_skb(sizeof(*hdr) + sizeof(*ev) + rp_len, GFP_KERNEL); in mgmt_cmd_complete()
176 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in mgmt_pending_add()
183 cmd->param = kmemdup(data, len, GFP_KERNEL); in mgmt_pending_add()
/linux-4.1.27/arch/x86/kernel/
Dmachine_kexec_32.c84 image->arch.pgd = (pgd_t *)get_zeroed_page(GFP_KERNEL); in machine_kexec_alloc_page_tables()
86 image->arch.pmd0 = (pmd_t *)get_zeroed_page(GFP_KERNEL); in machine_kexec_alloc_page_tables()
87 image->arch.pmd1 = (pmd_t *)get_zeroed_page(GFP_KERNEL); in machine_kexec_alloc_page_tables()
89 image->arch.pte0 = (pte_t *)get_zeroed_page(GFP_KERNEL); in machine_kexec_alloc_page_tables()
90 image->arch.pte1 = (pte_t *)get_zeroed_page(GFP_KERNEL); in machine_kexec_alloc_page_tables()
/linux-4.1.27/drivers/connector/
Dcn_proc.c96 cn_netlink_send(msg, 0, CN_IDX_PROC, GFP_KERNEL); in proc_fork_connector()
121 cn_netlink_send(msg, 0, CN_IDX_PROC, GFP_KERNEL); in proc_exec_connector()
160 cn_netlink_send(msg, 0, CN_IDX_PROC, GFP_KERNEL); in proc_id_connector()
185 cn_netlink_send(msg, 0, CN_IDX_PROC, GFP_KERNEL); in proc_sid_connector()
218 cn_netlink_send(msg, 0, CN_IDX_PROC, GFP_KERNEL); in proc_ptrace_connector()
244 cn_netlink_send(msg, 0, CN_IDX_PROC, GFP_KERNEL); in proc_comm_connector()
269 cn_netlink_send(msg, 0, CN_IDX_PROC, GFP_KERNEL); in proc_coredump_connector()
296 cn_netlink_send(msg, 0, CN_IDX_PROC, GFP_KERNEL); in proc_exit_connector()
328 cn_netlink_send(msg, 0, CN_IDX_PROC, GFP_KERNEL); in cn_proc_ack()
/linux-4.1.27/arch/arm/mach-omap2/
Did.c719 return kasprintf(GFP_KERNEL, "OMAP2"); in omap_get_family()
721 return kasprintf(GFP_KERNEL, "OMAP3"); in omap_get_family()
723 return kasprintf(GFP_KERNEL, "OMAP4"); in omap_get_family()
725 return kasprintf(GFP_KERNEL, "OMAP5"); in omap_get_family()
727 return kasprintf(GFP_KERNEL, "AM33xx"); in omap_get_family()
729 return kasprintf(GFP_KERNEL, "AM43xx"); in omap_get_family()
731 return kasprintf(GFP_KERNEL, "DRA7"); in omap_get_family()
733 return kasprintf(GFP_KERNEL, "Unknown"); in omap_get_family()
752 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in omap_soc_device_init()
Dusb-host.c373 supplies = kzalloc(sizeof(*supplies), GFP_KERNEL); in usbhs_add_regulator()
380 reg_data = kzalloc(sizeof(*reg_data), GFP_KERNEL); in usbhs_add_regulator()
389 GFP_KERNEL); in usbhs_add_regulator()
393 config->supply_name = kstrdup(name, GFP_KERNEL); in usbhs_add_regulator()
453 phy_id = kmalloc(MAX_STR, GFP_KERNEL); in usbhs_init_phys()
/linux-4.1.27/arch/openrisc/include/asm/
Dpgalloc.h46 pgd_t *ret = (pgd_t *)__get_free_page(GFP_KERNEL); in pgd_alloc()
65 return (pgd_t *)get_zeroed_page(GFP_KERNEL);
80 pte = alloc_pages(GFP_KERNEL|__GFP_REPEAT, 0); in pte_alloc_one()
/linux-4.1.27/arch/metag/include/asm/
Dpgalloc.h31 pgd_t *pgd = (pgd_t *)get_zeroed_page(GFP_KERNEL); in pgd_alloc()
45 pte_t *pte = (pte_t *)__get_free_page(GFP_KERNEL | __GFP_REPEAT | in pte_alloc_one_kernel()
54 pte = alloc_pages(GFP_KERNEL | __GFP_REPEAT | __GFP_ZERO, 0); in pte_alloc_one()
/linux-4.1.27/drivers/clk/shmobile/
Dclk-rcar-gen2.c145 zclk = kzalloc(sizeof(*zclk), GFP_KERNEL); in cpg_z_clk_register()
174 fixed = kzalloc(sizeof(*fixed), GFP_KERNEL); in cpg_rcan_clk_register()
181 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in cpg_rcan_clk_register()
217 div = kzalloc(sizeof(*div), GFP_KERNEL); in cpg_adsp_clk_register()
226 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in cpg_adsp_clk_register()
381 cpg = kzalloc(sizeof(*cpg), GFP_KERNEL); in rcar_gen2_cpg_clocks_init()
382 clks = kzalloc(num_clks * sizeof(*clks), GFP_KERNEL); in rcar_gen2_cpg_clocks_init()
/linux-4.1.27/arch/m32r/include/asm/
Dpgalloc.h23 pgd_t *pgd = (pgd_t *)__get_free_page(GFP_KERNEL|__GFP_ZERO); in pgd_alloc()
36 pte_t *pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_ZERO); in pte_alloc_one_kernel()
44 struct page *pte = alloc_page(GFP_KERNEL|__GFP_ZERO); in pte_alloc_one()
/linux-4.1.27/drivers/iio/
Dindustrialio-core.c593 full_postfix = kasprintf(GFP_KERNEL, "%s_%s_%s", in __iio_device_attr_init()
599 full_postfix = kasprintf(GFP_KERNEL, "%s_%s", in __iio_device_attr_init()
605 full_postfix = kstrdup(postfix, GFP_KERNEL); in __iio_device_attr_init()
607 full_postfix = kasprintf(GFP_KERNEL, in __iio_device_attr_init()
618 name = kasprintf(GFP_KERNEL, "%s", full_postfix); in __iio_device_attr_init()
621 name = kasprintf(GFP_KERNEL, "%s_%s", in __iio_device_attr_init()
626 name = kasprintf(GFP_KERNEL, "%s_%s-%s_%s", in __iio_device_attr_init()
638 name = kasprintf(GFP_KERNEL, in __iio_device_attr_init()
651 name = kasprintf(GFP_KERNEL, "%s", full_postfix); in __iio_device_attr_init()
654 name = kasprintf(GFP_KERNEL, "%s_%s", in __iio_device_attr_init()
[all …]
/linux-4.1.27/drivers/mtd/devices/
Dms02-nv.c124 mod_res = kzalloc(sizeof(*mod_res), GFP_KERNEL); in ms02nv_init_one()
145 mtd = kzalloc(sizeof(*mtd), GFP_KERNEL); in ms02nv_init_one()
148 mp = kzalloc(sizeof(*mp), GFP_KERNEL); in ms02nv_init_one()
156 diag_res = kzalloc(sizeof(*diag_res), GFP_KERNEL); in ms02nv_init_one()
169 user_res = kzalloc(sizeof(*user_res), GFP_KERNEL); in ms02nv_init_one()
182 csr_res = kzalloc(sizeof(*csr_res), GFP_KERNEL); in ms02nv_init_one()
/linux-4.1.27/arch/powerpc/platforms/pseries/
Dmobility.c89 char *new_data = kzalloc(new_prop->length + vd, GFP_KERNEL); in update_dt_property()
100 new_prop = kzalloc(sizeof(*new_prop), GFP_KERNEL); in update_dt_property()
104 new_prop->name = kstrdup(name, GFP_KERNEL); in update_dt_property()
111 new_prop->value = kzalloc(new_prop->length, GFP_KERNEL); in update_dt_property()
146 rtas_buf = kzalloc(RTAS_DATA_BUF_SIZE, GFP_KERNEL); in update_dt_node()
250 rtas_buf = kzalloc(RTAS_DATA_BUF_SIZE, GFP_KERNEL); in pseries_devicetree_update()
Dreconfig.c44 parent_path = kmalloc(parent_path_len, GFP_KERNEL); in derive_parent()
62 np = kzalloc(sizeof(*np), GFP_KERNEL); in pSeries_reconfig_add_node()
66 np->full_name = kstrdup(path, GFP_KERNEL); in pSeries_reconfig_add_node()
206 struct property *new = kzalloc(sizeof(*new), GFP_KERNEL); in new_property()
211 if (!(new->name = kstrdup(name, GFP_KERNEL))) in new_property()
213 if (!(new->value = kmalloc(length + 1, GFP_KERNEL))) in new_property()
403 if (!(kbuf = kmalloc(count + 1, GFP_KERNEL))) { in ofdt_write()
Ddlpar.c50 prop = kzalloc(sizeof(*prop), GFP_KERNEL); in dlpar_parse_cc_property()
55 prop->name = kstrdup(name, GFP_KERNEL); in dlpar_parse_cc_property()
59 prop->value = kmemdup(value, prop->length, GFP_KERNEL); in dlpar_parse_cc_property()
80 dn = kzalloc(sizeof(*dn), GFP_KERNEL); in dlpar_parse_cc_node()
85 dn->full_name = kasprintf(GFP_KERNEL, "%s/%s", path, name); in dlpar_parse_cc_node()
149 data_buf = kzalloc(RTAS_DATA_BUF_SIZE, GFP_KERNEL); in dlpar_configure_connector()
258 parent_path = kmalloc(parent_path_len, GFP_KERNEL); in derive_parent()
575 hp_elog = kzalloc(sizeof(*hp_elog), GFP_KERNEL); in dlpar_store()
/linux-4.1.27/drivers/net/wireless/ti/wl12xx/
Dcmd.c39 ext_radio_parms = kzalloc(sizeof(*ext_radio_parms), GFP_KERNEL); in wl1271_cmd_ext_radio_parms()
80 gen_parms = kzalloc(sizeof(*gen_parms), GFP_KERNEL); in wl1271_cmd_general_parms()
147 gen_parms = kzalloc(sizeof(*gen_parms), GFP_KERNEL); in wl128x_cmd_general_parms()
208 radio_parms = kzalloc(sizeof(*radio_parms), GFP_KERNEL); in wl1271_cmd_radio_parms()
252 radio_parms = kzalloc(sizeof(*radio_parms), GFP_KERNEL); in wl128x_cmd_radio_parms()
297 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl12xx_cmd_channel_switch()
Dscan.c108 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl1271_scan_send()
109 trigger = kzalloc(sizeof(*trigger), GFP_KERNEL); in wl1271_scan_send()
197 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl12xx_scan_stop()
330 cfg = kzalloc(sizeof(*cfg), GFP_KERNEL); in wl1271_scan_sched_scan_config()
360 cfg_channels = kzalloc(sizeof(*cfg_channels), GFP_KERNEL); in wl1271_scan_sched_scan_config()
437 start = kzalloc(sizeof(*start), GFP_KERNEL); in wl1271_scan_sched_scan_start()
477 stop = kzalloc(sizeof(*stop), GFP_KERNEL); in wl12xx_scan_sched_scan_stop()
/linux-4.1.27/net/nfc/
Dnetlink.c218 msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in nfc_genl_target_lost()
233 genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_KERNEL); in nfc_genl_target_lost()
249 msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in nfc_genl_tm_activated()
265 genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_KERNEL); in nfc_genl_tm_activated()
281 msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in nfc_genl_tm_deactivated()
295 genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_KERNEL); in nfc_genl_tm_deactivated()
311 msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in nfc_genl_device_added()
328 genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_KERNEL); in nfc_genl_device_added()
344 msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in nfc_genl_device_removed()
358 genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_KERNEL); in nfc_genl_device_removed()
[all …]
/linux-4.1.27/drivers/gpio/
Ddevres.c108 GFP_KERNEL); in __devm_gpiod_get_index()
145 GFP_KERNEL); in devm_get_gpiod_from_child()
220 sizeof(struct gpio_descs *), GFP_KERNEL); in devm_gpiod_get_array()
329 dr = devres_alloc(devm_gpio_release, sizeof(unsigned), GFP_KERNEL); in devm_gpio_request()
359 dr = devres_alloc(devm_gpio_release, sizeof(unsigned), GFP_KERNEL); in devm_gpio_request_one()
/linux-4.1.27/arch/s390/kernel/
Dvdso.c104 segment_table = __get_free_pages(GFP_KERNEL, SEGMENT_ORDER); in vdso_alloc_per_cpu()
105 page_table = get_zeroed_page(GFP_KERNEL | GFP_DMA); in vdso_alloc_per_cpu()
106 page_frame = get_zeroed_page(GFP_KERNEL); in vdso_alloc_per_cpu()
268 GFP_KERNEL); in vdso_init()
286 GFP_KERNEL); in vdso_init()
/linux-4.1.27/drivers/mfd/
Dintel_quark_i2c_gpio.c122 sizeof(*i2c_clk_lookup), GFP_KERNEL); in intel_quark_register_i2c_clk()
170 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); in intel_quark_i2c_setup()
203 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); in intel_quark_gpio_setup()
211 GFP_KERNEL); in intel_quark_gpio_setup()
240 quark_mfd = devm_kzalloc(&pdev->dev, sizeof(*quark_mfd), GFP_KERNEL); in intel_quark_mfd_probe()
/linux-4.1.27/arch/avr32/include/asm/
Dpgalloc.h46 return quicklist_alloc(QUICK_PGD, GFP_KERNEL | __GFP_REPEAT, pgd_ctor); in pgd_alloc()
57 return quicklist_alloc(QUICK_PT, GFP_KERNEL | __GFP_REPEAT, NULL); in pte_alloc_one_kernel()
66 pg = quicklist_alloc(QUICK_PT, GFP_KERNEL | __GFP_REPEAT, NULL); in pte_alloc_one()
/linux-4.1.27/arch/m68k/include/asm/
Dsun3_pgalloc.h40 unsigned long page = __get_free_page(GFP_KERNEL|__GFP_REPEAT); in pte_alloc_one_kernel()
52 struct page *page = alloc_pages(GFP_KERNEL|__GFP_REPEAT, 0); in pte_alloc_one()
93 new_pgd = (pgd_t *)get_zeroed_page(GFP_KERNEL); in pgd_alloc()
/linux-4.1.27/arch/score/include/asm/
Dpgalloc.h24 ret = (pgd_t *) __get_free_pages(GFP_KERNEL, PGD_ORDER); in pgd_alloc()
45 pte = (pte_t *) __get_free_pages(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO, in pte_alloc_one_kernel()
56 pte = alloc_pages(GFP_KERNEL | __GFP_REPEAT, PTE_ORDER); in pte_alloc_one()
/linux-4.1.27/drivers/pinctrl/samsung/
Dpinctrl-exynos5440.c209 map = kzalloc(sizeof(*map) * map_cnt, GFP_KERNEL); in exynos5440_dt_node_to_map()
220 gname = kzalloc(strlen(np->name) + GSUFFIX_LEN, GFP_KERNEL); in exynos5440_dt_node_to_map()
235 cfg = kzalloc(sizeof(*cfg) * cfg_cnt, GFP_KERNEL); in exynos5440_dt_node_to_map()
259 fname = kzalloc(strlen(np->name) + FSUFFIX_LEN, GFP_KERNEL); in exynos5440_dt_node_to_map()
655 *pin_list = devm_kzalloc(dev, *npins * sizeof(**pin_list), GFP_KERNEL); in exynos5440_pinctrl_parse_dt_pins()
686 groups = devm_kzalloc(dev, grp_cnt * sizeof(*groups), GFP_KERNEL); in exynos5440_pinctrl_parse_dt()
693 functions = devm_kzalloc(dev, grp_cnt * sizeof(*functions), GFP_KERNEL); in exynos5440_pinctrl_parse_dt()
716 GFP_KERNEL); in exynos5440_pinctrl_parse_dt()
737 GFP_KERNEL); in exynos5440_pinctrl_parse_dt()
746 func->groups = devm_kzalloc(dev, sizeof(char *), GFP_KERNEL); in exynos5440_pinctrl_parse_dt()
[all …]
/linux-4.1.27/drivers/pinctrl/freescale/
Dpinctrl-mxs.c100 new_map = kzalloc(sizeof(*new_map) * new_num, GFP_KERNEL); in mxs_dt_node_to_map()
109 group = kzalloc(length, GFP_KERNEL); in mxs_dt_node_to_map()
120 pconfig = kmemdup(&config, sizeof(config), GFP_KERNEL); in mxs_dt_node_to_map()
359 group = devm_kzalloc(&pdev->dev, length, GFP_KERNEL); in mxs_pinctrl_parse_group()
374 GFP_KERNEL); in mxs_pinctrl_parse_group()
379 GFP_KERNEL); in mxs_pinctrl_parse_group()
430 sizeof(*soc->functions), GFP_KERNEL); in mxs_pinctrl_probe_dt()
435 sizeof(*soc->groups), GFP_KERNEL); in mxs_pinctrl_probe_dt()
497 GFP_KERNEL); in mxs_pinctrl_probe_dt()
519 d = devm_kzalloc(&pdev->dev, sizeof(*d), GFP_KERNEL); in mxs_pinctrl_probe()
/linux-4.1.27/drivers/net/ethernet/brocade/bna/
Dbnad_debugfs.c56 fw_debug = kzalloc(sizeof(struct bnad_debug_info), GFP_KERNEL); in bnad_debugfs_open_fwtrc()
62 fw_debug->debug_buffer = kzalloc(fw_debug->buffer_len, GFP_KERNEL); in bnad_debugfs_open_fwtrc()
97 fw_debug = kzalloc(sizeof(struct bnad_debug_info), GFP_KERNEL); in bnad_debugfs_open_fwsave()
103 fw_debug->debug_buffer = kzalloc(fw_debug->buffer_len, GFP_KERNEL); in bnad_debugfs_open_fwsave()
135 reg_debug = kzalloc(sizeof(struct bnad_debug_info), GFP_KERNEL); in bnad_debugfs_open_reg()
198 drv_info = kzalloc(sizeof(struct bnad_debug_info), GFP_KERNEL); in bnad_debugfs_open_drvinfo()
204 drv_info->debug_buffer = kzalloc(drv_info->buffer_len, GFP_KERNEL); in bnad_debugfs_open_drvinfo()
325 kern_buf = kzalloc(nbytes, GFP_KERNEL); in bnad_debugfs_write_regrd()
347 bnad->regdata = kzalloc(len << 2, GFP_KERNEL); in bnad_debugfs_write_regrd()
392 kern_buf = kzalloc(nbytes, GFP_KERNEL); in bnad_debugfs_write_regwr()
/linux-4.1.27/arch/x86/xen/
Dsmp.c157 resched_name = kasprintf(GFP_KERNEL, "resched%d", cpu); in xen_smp_intr_init()
169 callfunc_name = kasprintf(GFP_KERNEL, "callfunc%d", cpu); in xen_smp_intr_init()
181 debug_name = kasprintf(GFP_KERNEL, "debug%d", cpu); in xen_smp_intr_init()
190 callfunc_name = kasprintf(GFP_KERNEL, "callfuncsingle%d", cpu); in xen_smp_intr_init()
209 callfunc_name = kasprintf(GFP_KERNEL, "irqwork%d", cpu); in xen_smp_intr_init()
332 zalloc_cpumask_var(&per_cpu(cpu_sibling_map, i), GFP_KERNEL); in xen_smp_prepare_cpus()
333 zalloc_cpumask_var(&per_cpu(cpu_core_map, i), GFP_KERNEL); in xen_smp_prepare_cpus()
334 zalloc_cpumask_var(&per_cpu(cpu_llc_shared_map, i), GFP_KERNEL); in xen_smp_prepare_cpus()
341 if (!alloc_cpumask_var(&xen_cpu_initialized_map, GFP_KERNEL)) in xen_smp_prepare_cpus()
369 ctxt = kzalloc(sizeof(*ctxt), GFP_KERNEL); in cpu_initialize_context()
Dgrant-table.c92 area->ptes = kmalloc(sizeof(pte_t *) * nr_frames, GFP_KERNEL); in arch_gnttab_valloc()
127 pages = kcalloc(nr_grant_frames, sizeof(pages[0]), GFP_KERNEL); in xlated_setup_gnttab_pages()
131 pfns = kcalloc(nr_grant_frames, sizeof(pfns[0]), GFP_KERNEL); in xlated_setup_gnttab_pages()
/linux-4.1.27/drivers/net/irda/
Dks959-sir.c516 kingsun->rx_urb = usb_alloc_urb(0, GFP_KERNEL); in ks959_net_open()
520 kingsun->tx_urb = usb_alloc_urb(0, GFP_KERNEL); in ks959_net_open()
524 kingsun->speed_urb = usb_alloc_urb(0, GFP_KERNEL); in ks959_net_open()
553 err = usb_submit_urb(kingsun->rx_urb, GFP_KERNEL); in ks959_net_open()
723 kingsun->rx_buf = kmalloc(KINGSUN_RCV_FIFO_SIZE, GFP_KERNEL); in ks959_probe()
729 kmalloc(sizeof(struct usb_ctrlrequest), GFP_KERNEL); in ks959_probe()
740 kingsun->tx_buf_clear = kmalloc(KINGSUN_SND_FIFO_SIZE, GFP_KERNEL); in ks959_probe()
743 kingsun->tx_buf_xored = kmalloc(KINGSUN_SND_PACKET_SIZE, GFP_KERNEL); in ks959_probe()
749 kmalloc(sizeof(struct usb_ctrlrequest), GFP_KERNEL); in ks959_probe()
761 kmalloc(sizeof(struct usb_ctrlrequest), GFP_KERNEL); in ks959_probe()
[all …]
/linux-4.1.27/arch/arc/include/asm/
Dpgalloc.h58 pgd_t *ret = (pgd_t *) __get_free_pages(GFP_KERNEL, __get_order_pgd()); in pgd_alloc()
98 pte = (pte_t *) __get_free_pages(GFP_KERNEL | __GFP_REPEAT | __GFP_ZERO, in pte_alloc_one_kernel()
110 pte_pg = __get_free_pages(GFP_KERNEL | __GFP_REPEAT, __get_order_pte()); in pte_alloc_one()
/linux-4.1.27/drivers/xen/
Dsys-hypervisor.c81 extra = kmalloc(XEN_EXTRAVERSION_LEN, GFP_KERNEL); in extra_show()
169 info = kmalloc(sizeof(struct xen_compile_info), GFP_KERNEL); in compiler_show()
187 info = kmalloc(sizeof(struct xen_compile_info), GFP_KERNEL); in compiled_by_show()
205 info = kmalloc(sizeof(struct xen_compile_info), GFP_KERNEL); in compile_date_show()
247 caps = kmalloc(XEN_CAPABILITIES_INFO_LEN, GFP_KERNEL); in capabilities_show()
265 cset = kmalloc(XEN_CHANGESET_INFO_LEN, GFP_KERNEL); in changeset_show()
283 parms = kmalloc(sizeof(struct xen_platform_parameters), GFP_KERNEL); in virtual_start_show()
Dxen-acpi-processor.c71 sizeof(struct xen_processor_cx), GFP_KERNEL); in push_cxx_to_hypervisor()
152 sizeof(struct xen_processor_px), GFP_KERNEL); in xen_copy_pss_data()
398 acpi_id_present = kcalloc(BITS_TO_LONGS(nr_acpi_bits), sizeof(unsigned long), GFP_KERNEL); in check_acpi_ids()
402 acpi_id_cst_present = kcalloc(BITS_TO_LONGS(nr_acpi_bits), sizeof(unsigned long), GFP_KERNEL); in check_acpi_ids()
485 pr_backup = kzalloc(sizeof(struct acpi_processor), GFP_KERNEL); in xen_upload_processor_pm_data()
518 acpi_ids_done = kcalloc(BITS_TO_LONGS(nr_acpi_bits), sizeof(unsigned long), GFP_KERNEL); in xen_acpi_processor_init()
531 GFP_KERNEL, cpu_to_node(i))) { in xen_acpi_processor_init()
/linux-4.1.27/arch/powerpc/platforms/powernv/
Dopal-sysparam.c172 param_data_buf = kzalloc(MAX_PARAM_DATA_LEN, GFP_KERNEL); in opal_sys_param_init()
198 id = kzalloc(sizeof(*id) * count, GFP_KERNEL); in opal_sys_param_init()
205 size = kzalloc(sizeof(*size) * count, GFP_KERNEL); in opal_sys_param_init()
212 perm = kzalloc(sizeof(*perm) * count, GFP_KERNEL); in opal_sys_param_init()
235 attr = kzalloc(sizeof(*attr) * count, GFP_KERNEL); in opal_sys_param_init()
/linux-4.1.27/drivers/bluetooth/
Dbcm203x.c164 if (usb_submit_urb(data->urb, GFP_KERNEL) < 0) in bcm203x_work()
180 data = devm_kzalloc(&intf->dev, sizeof(*data), GFP_KERNEL); in bcm203x_probe()
189 data->urb = usb_alloc_urb(0, GFP_KERNEL); in bcm203x_probe()
205 data->buffer = kmalloc(size, GFP_KERNEL); in bcm203x_probe()
229 data->fw_data = kmemdup(firmware->data, firmware->size, GFP_KERNEL); in bcm203x_probe()
Dbpa10x.c228 urb = usb_alloc_urb(0, GFP_KERNEL); in bpa10x_submit_intr_urb()
232 buf = kmalloc(size, GFP_KERNEL); in bpa10x_submit_intr_urb()
247 err = usb_submit_urb(urb, GFP_KERNEL); in bpa10x_submit_intr_urb()
269 urb = usb_alloc_urb(0, GFP_KERNEL); in bpa10x_submit_bulk_urb()
273 buf = kmalloc(size, GFP_KERNEL); in bpa10x_submit_bulk_urb()
288 err = usb_submit_urb(urb, GFP_KERNEL); in bpa10x_submit_bulk_urb()
445 data = devm_kzalloc(&intf->dev, sizeof(*data), GFP_KERNEL); in bpa10x_probe()
/linux-4.1.27/drivers/scsi/lpfc/
Dlpfc_mem.c116 LPFC_MBUF_POOL_SIZE, GFP_KERNEL); in lpfc_mem_alloc()
124 GFP_KERNEL, &pool->elements[i].phys); in lpfc_mem_alloc()
368 ret = pci_pool_alloc(phba->lpfc_mbuf_pool, GFP_KERNEL, handle); in lpfc_mbuf_alloc()
451 hbqbp = kzalloc(sizeof(struct hbq_dmabuf), GFP_KERNEL); in lpfc_els_hbq_alloc()
455 hbqbp->dbuf.virt = pci_pool_alloc(phba->lpfc_hbq_pool, GFP_KERNEL, in lpfc_els_hbq_alloc()
503 dma_buf = kzalloc(sizeof(struct hbq_dmabuf), GFP_KERNEL); in lpfc_sli4_rb_alloc()
507 dma_buf->hbuf.virt = pci_pool_alloc(phba->lpfc_hrb_pool, GFP_KERNEL, in lpfc_sli4_rb_alloc()
513 dma_buf->dbuf.virt = pci_pool_alloc(phba->lpfc_drb_pool, GFP_KERNEL, in lpfc_sli4_rb_alloc()
/linux-4.1.27/arch/hexagon/include/asm/
Dpgalloc.h38 pgd = (pgd_t *)__get_free_page(GFP_KERNEL | __GFP_ZERO); in pgd_alloc()
67 pte = alloc_page(GFP_KERNEL | __GFP_REPEAT | __GFP_ZERO); in pte_alloc_one()
81 gfp_t flags = GFP_KERNEL | __GFP_REPEAT | __GFP_ZERO; in pte_alloc_one_kernel()
/linux-4.1.27/security/selinux/ss/
Dpolicydb.c177 role = kzalloc(sizeof(*role), GFP_KERNEL); in roles_init()
187 key = kstrdup(OBJECT_R, GFP_KERNEL); in roles_init()
339 GFP_KERNEL | __GFP_ZERO)) in common_index()
356 GFP_KERNEL | __GFP_ZERO)) in class_index()
377 GFP_KERNEL | __GFP_ZERO)) in role_index()
399 GFP_KERNEL | __GFP_ZERO)) in type_index()
404 GFP_KERNEL | __GFP_ZERO)) in type_index()
426 GFP_KERNEL | __GFP_ZERO)) in user_index()
447 GFP_KERNEL | __GFP_ZERO)) in sens_index()
468 GFP_KERNEL | __GFP_ZERO)) in cat_index()
[all …]
/linux-4.1.27/drivers/s390/char/
Dsclp_cmd.c49 request = kzalloc(sizeof(*request), GFP_KERNEL); in sclp_sync_request_timeout()
116 sccb = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in sclp_get_cpu_info()
151 sccb = kzalloc(sizeof(*sccb), GFP_KERNEL | GFP_DMA); in do_cpu_configure()
220 sccb = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in do_assign_storage()
276 sccb = (void *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in sclp_attach_storage()
451 new_incr = kzalloc(sizeof(*new_incr), GFP_KERNEL); in insert_increment()
514 sccb = (void *) __get_free_page(GFP_KERNEL | GFP_DMA); in sclp_detect_standby_memory()
601 sccb = (struct pci_cfg_sccb *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in do_pci_configure()
661 sccb = (struct chp_cfg_sccb *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in do_chp_configure()
736 sccb = (struct chp_info_sccb *) get_zeroed_page(GFP_KERNEL | GFP_DMA); in sclp_chp_read_info()
Dkeyboard.c53 kbd = kzalloc(sizeof(struct kbd_data), GFP_KERNEL); in kbd_alloc()
56 kbd->key_maps = kzalloc(sizeof(key_maps), GFP_KERNEL); in kbd_alloc()
63 GFP_KERNEL); in kbd_alloc()
68 kbd->func_table = kzalloc(sizeof(func_table), GFP_KERNEL); in kbd_alloc()
74 GFP_KERNEL); in kbd_alloc()
80 kzalloc(sizeof(fn_handler_fn *) * NR_FN_HANDLER, GFP_KERNEL); in kbd_alloc()
85 GFP_KERNEL); in kbd_alloc()
381 GFP_KERNEL); in do_kdsk_ioctl()
442 p = kmalloc(len + 1, GFP_KERNEL); in do_kdgkb_ioctl()
/linux-4.1.27/arch/nios2/platform/
Dplatform.c26 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in nios2_soc_device_init()
30 soc_dev_attr->machine = kasprintf(GFP_KERNEL, "%s", in nios2_soc_device_init()
/linux-4.1.27/net/xfrm/
Dxfrm_hash.c20 n = kzalloc(sz, GFP_KERNEL); in xfrm_hash_alloc()
25 __get_free_pages(GFP_KERNEL | __GFP_NOWARN | __GFP_ZERO, in xfrm_hash_alloc()
/linux-4.1.27/drivers/mtd/nand/
Dnand_bch.c143 nbc = kzalloc(sizeof(*nbc), GFP_KERNEL); in nand_bch_init()
200 nbc->eccmask = kmalloc(eccbytes, GFP_KERNEL); in nand_bch_init()
201 nbc->errloc = kmalloc(t*sizeof(*nbc->errloc), GFP_KERNEL); in nand_bch_init()
207 erased_page = kmalloc(eccsize, GFP_KERNEL); in nand_bch_init()
/linux-4.1.27/drivers/clk/
Dclk-max-gen.c119 clocks = devm_kzalloc(dev, sizeof(struct clk *) * num_init, GFP_KERNEL); in max_gen_clk_probe()
124 * num_init, GFP_KERNEL); in max_gen_clk_probe()
133 init = devm_kzalloc(dev, sizeof(*init), GFP_KERNEL); in max_gen_clk_probe()
164 of_data = devm_kzalloc(dev, sizeof(*of_data), GFP_KERNEL); in max_gen_clk_probe()
Dclk-qoriq.c91 parent_names = kcalloc(count, sizeof(char *), GFP_KERNEL); in core_mux_init()
98 cmux_clk = kzalloc(sizeof(*cmux_clk), GFP_KERNEL); in core_mux_init()
195 subclks = kcalloc(count, sizeof(struct clk *), GFP_KERNEL); in core_pll_init()
199 onecell_data = kmalloc(sizeof(*onecell_data), GFP_KERNEL); in core_pll_init()
315 cod = kmalloc(sizeof(*cod) + i * sizeof(struct clk *), GFP_KERNEL); in pltfrm_pll_init()
Dclk-gpio-gate.c100 GFP_KERNEL); in clk_register_gpio_gate()
102 clk_gpio = kzalloc(sizeof(struct clk_gpio), GFP_KERNEL); in clk_register_gpio_gate()
197 GFP_KERNEL); in of_gpio_gate_clk_setup()
/linux-4.1.27/arch/xtensa/platforms/xtfpga/
Dsetup.c93 newfreq = kzalloc(sizeof(*newfreq) + sizeof(u32), GFP_KERNEL); in update_clock_frequency()
98 newfreq->name = kstrdup("clock-frequency", GFP_KERNEL); in update_clock_frequency()
119 newmac = kzalloc(sizeof(*newmac) + MAC_LEN, GFP_KERNEL); in update_local_mac()
125 newmac->name = kstrdup("local-mac-address", GFP_KERNEL); in update_local_mac()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_scatter.c44 return __vmalloc(size, GFP_KERNEL, PAGE_KERNEL | _PAGE_NO_CACHE); in drm_vmalloc_dma()
100 entry = kzalloc(sizeof(*entry), GFP_KERNEL); in drm_legacy_sg_alloc()
108 entry->pagelist = kcalloc(pages, sizeof(*entry->pagelist), GFP_KERNEL); in drm_legacy_sg_alloc()
114 entry->busaddr = kcalloc(pages, sizeof(*entry->busaddr), GFP_KERNEL); in drm_legacy_sg_alloc()
/linux-4.1.27/sound/firewire/bebob/
Dbebob_command.c17 buf = kzalloc(12, GFP_KERNEL); in avc_audio_set_selector()
53 buf = kzalloc(12, GFP_KERNEL); in avc_audio_get_selector()
113 buf = kzalloc(12, GFP_KERNEL); in avc_bridgeco_get_plug_type()
179 buf = kzalloc(12, GFP_KERNEL); in avc_bridgeco_get_plug_section_type()
214 buf = kzalloc(18, GFP_KERNEL); in avc_bridgeco_get_plug_input()
/linux-4.1.27/drivers/staging/android/ion/
Dion_dummy_driver.c72 GFP_KERNEL); in ion_dummy_init()
80 GFP_KERNEL); in ion_dummy_init()
90 GFP_KERNEL); in ion_dummy_init()
Dion_system_heap.c153 table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_system_heap_allocate()
157 if (sg_alloc_table(table, i, GFP_KERNEL)) in ion_system_heap_allocate()
268 GFP_KERNEL); in ion_system_heap_create()
334 table = kmalloc(sizeof(struct sg_table), GFP_KERNEL); in ion_system_contig_heap_allocate()
340 ret = sg_alloc_table(table, 1, GFP_KERNEL); in ion_system_contig_heap_allocate()
411 heap = kzalloc(sizeof(struct ion_heap), GFP_KERNEL); in ion_system_contig_heap_create()
/linux-4.1.27/drivers/pinctrl/
Dpinctrl-utils.c42 new_map = krealloc(*map, sizeof(*new_map) * new_num, GFP_KERNEL); in pinctrl_utils_reserve_map()
85 GFP_KERNEL); in pinctrl_utils_add_map_configs()
110 GFP_KERNEL); in pinctrl_utils_add_config()
/linux-4.1.27/drivers/fmc/
Dfmc-match.c18 return kzalloc(size, GFP_KERNEL); in fru_alloc()
62 fmc->eeprom = kzalloc(fmc->eeprom_len, GFP_KERNEL); in fmc_fill_id_info()
98 fmc->mezzanine_name = kstrdup(fmc->id.product_name, GFP_KERNEL); in fmc_fill_id_info()
/linux-4.1.27/drivers/base/regmap/
Dregcache-lzo.c40 lzo_ctx->wmem = kmalloc(LZO1X_MEM_COMPRESS, GFP_KERNEL); in regcache_lzo_prepare()
78 lzo_ctx->dst = kmalloc(lzo_ctx->dst_len, GFP_KERNEL); in regcache_lzo_compress_cache_block()
96 lzo_ctx->dst = kmalloc(lzo_ctx->dst_len, GFP_KERNEL); in regcache_lzo_decompress_cache_block()
143 GFP_KERNEL); in regcache_lzo_init()
156 GFP_KERNEL); in regcache_lzo_init()
166 GFP_KERNEL); in regcache_lzo_init()
Dregmap-debugfs.c46 buf = kmalloc(PAGE_SIZE, GFP_KERNEL); in regmap_name_read_file()
123 c = kzalloc(sizeof(*c), GFP_KERNEL); in regmap_debugfs_get_dump_start()
198 buf = kmalloc(count, GFP_KERNEL); in regmap_read_debugfs()
345 buf = kmalloc(count, GFP_KERNEL); in regmap_reg_ranges_read_file()
349 entry = kmalloc(PAGE_SIZE, GFP_KERNEL); in regmap_reg_ranges_read_file()
418 buf = kmalloc(count, GFP_KERNEL); in regmap_access_read_file()
480 node = kzalloc(sizeof(*node), GFP_KERNEL); in regmap_debugfs_init()
498 map->debugfs_name = kasprintf(GFP_KERNEL, "%s-%s", in regmap_debugfs_init()
/linux-4.1.27/drivers/regulator/
Dgpio-regulator.c146 GFP_KERNEL); in of_get_gpio_regulator_config()
175 GFP_KERNEL); in of_get_gpio_regulator_config()
214 GFP_KERNEL); in of_get_gpio_regulator_config()
255 GFP_KERNEL); in gpio_regulator_probe()
266 drvdata->desc.name = kstrdup(config->supply_name, GFP_KERNEL); in gpio_regulator_probe()
276 GFP_KERNEL); in gpio_regulator_probe()
295 GFP_KERNEL); in gpio_regulator_probe()
Dfixed.c58 GFP_KERNEL); in of_get_fixed_voltage_config()
118 GFP_KERNEL); in reg_fixed_voltage_probe()
136 GFP_KERNEL); in reg_fixed_voltage_probe()
150 GFP_KERNEL); in reg_fixed_voltage_probe()
Dfixed-helper.c34 data = kzalloc(sizeof(*data), GFP_KERNEL); in regulator_register_always_on()
38 data->cfg.supply_name = kstrdup(name, GFP_KERNEL); in regulator_register_always_on()
/linux-4.1.27/drivers/clk/ti/
Dapll.c175 ad = kzalloc(sizeof(*ad), GFP_KERNEL); in of_dra7_apll_setup()
176 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in of_dra7_apll_setup()
177 init = kzalloc(sizeof(*init), GFP_KERNEL); in of_dra7_apll_setup()
194 parent_names = kzalloc(sizeof(char *) * init->num_parents, GFP_KERNEL); in of_dra7_apll_setup()
339 ad = kzalloc(sizeof(*ad), GFP_KERNEL); in of_omap2_apll_setup()
340 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in of_omap2_apll_setup()
341 init = kzalloc(sizeof(*init), GFP_KERNEL); in of_omap2_apll_setup()
/linux-4.1.27/kernel/
Dprofile.c109 if (!alloc_cpumask_var(&prof_cpu_mask, GFP_KERNEL)) in profile_init()
114 prof_buffer = kzalloc(buffer_bytes, GFP_KERNEL|__GFP_NOWARN); in profile_init()
119 GFP_KERNEL|__GFP_ZERO|__GFP_NOWARN); in profile_init()
343 GFP_KERNEL | __GFP_ZERO, in profile_cpu_callback()
351 GFP_KERNEL | __GFP_ZERO, in profile_cpu_callback()
440 if (!alloc_cpumask_var(&new_value, GFP_KERNEL)) in prof_cpu_mask_proc_write()
547 GFP_KERNEL | __GFP_ZERO | __GFP_THISNODE, in create_hash_tables()
554 GFP_KERNEL | __GFP_ZERO | __GFP_THISNODE, in create_hash_tables()
/linux-4.1.27/drivers/infiniband/hw/mlx4/
Dmr.c62 mr = kmalloc(sizeof *mr, GFP_KERNEL); in mlx4_ib_get_dma_mr()
99 pages = (u64 *) __get_free_page(GFP_KERNEL); in mlx4_ib_umem_write_mtt()
143 mr = kmalloc(sizeof *mr, GFP_KERNEL); in mlx4_ib_reg_user_mr()
295 mw = kmalloc(sizeof(*mw), GFP_KERNEL); in mlx4_ib_alloc_mw()
360 mr = kmalloc(sizeof *mr, GFP_KERNEL); in mlx4_ib_alloc_fast_reg_mr()
396 mfrpl = kmalloc(sizeof *mfrpl, GFP_KERNEL); in mlx4_ib_alloc_fast_reg_page_list()
400 mfrpl->ibfrpl.page_list = kmalloc(size, GFP_KERNEL); in mlx4_ib_alloc_fast_reg_page_list()
407 GFP_KERNEL); in mlx4_ib_alloc_fast_reg_page_list()
441 fmr = kmalloc(sizeof *fmr, GFP_KERNEL); in mlx4_ib_fmr_alloc()
/linux-4.1.27/drivers/cdrom/
Dgdrom.c250 spin_command = kzalloc(sizeof(struct packet_command), GFP_KERNEL); in gdrom_preparedisk_cmd()
284 toc_command = kzalloc(sizeof(struct packet_command), GFP_KERNEL); in gdrom_readtoc_cmd()
438 sense_command = kzalloc(sizeof(struct packet_command), GFP_KERNEL); in gdrom_getsense()
594 read_command = kzalloc(sizeof(struct packet_command), GFP_KERNEL); in gdrom_readdisk_dma()
690 id = kzalloc(sizeof(struct gdrom_id), GFP_KERNEL); in gdrom_outputversion()
694 model_name = kstrndup(id->modname, 16, GFP_KERNEL); in gdrom_outputversion()
697 manuf_name = kstrndup(id->mname, 16, GFP_KERNEL); in gdrom_outputversion()
700 firmw_ver = kstrndup(id->firmver, 16, GFP_KERNEL); in gdrom_outputversion()
788 gd.cd_info = kzalloc(sizeof(struct cdrom_device_info), GFP_KERNEL); in probe_gdrom()
817 gd.toc = kzalloc(sizeof(struct gdromtoc), GFP_KERNEL); in probe_gdrom()
/linux-4.1.27/drivers/usb/image/
Dmdc800.c649 retval = usb_submit_urb (mdc800->irq_urb, GFP_KERNEL); in mdc800_device_open()
739 retval = usb_submit_urb (mdc800->download_urb, GFP_KERNEL); in mdc800_device_read()
864 retval = usb_submit_urb (mdc800->write_urb, GFP_KERNEL); in mdc800_device_write()
998 mdc800=kzalloc (sizeof (struct mdc800_data), GFP_KERNEL); in usb_mdc800_init()
1014 mdc800->irq_urb_buffer=kmalloc (8, GFP_KERNEL); in usb_mdc800_init()
1017 mdc800->write_urb_buffer=kmalloc (8, GFP_KERNEL); in usb_mdc800_init()
1020 mdc800->download_urb_buffer=kmalloc (64, GFP_KERNEL); in usb_mdc800_init()
1024 mdc800->irq_urb=usb_alloc_urb (0, GFP_KERNEL); in usb_mdc800_init()
1027 mdc800->download_urb=usb_alloc_urb (0, GFP_KERNEL); in usb_mdc800_init()
1030 mdc800->write_urb=usb_alloc_urb (0, GFP_KERNEL); in usb_mdc800_init()
/linux-4.1.27/drivers/net/wireless/mwifiex/
Ddebugfs.c82 unsigned long page = get_zeroed_page(GFP_KERNEL); in mwifiex_info_read()
204 unsigned long page = get_zeroed_page(GFP_KERNEL); in mwifiex_getlog_read()
283 unsigned long page = get_zeroed_page(GFP_KERNEL); in mwifiex_histogram_read()
416 unsigned long page = get_zeroed_page(GFP_KERNEL); in mwifiex_debug_read()
450 unsigned long addr = get_zeroed_page(GFP_KERNEL); in mwifiex_regrdwr_write()
494 unsigned long addr = get_zeroed_page(GFP_KERNEL); in mwifiex_regrdwr_read()
551 unsigned long addr = get_zeroed_page(GFP_KERNEL); in mwifiex_rdeeprom_write()
594 unsigned long addr = get_zeroed_page(GFP_KERNEL); in mwifiex_rdeeprom_read()
636 unsigned long addr = get_zeroed_page(GFP_KERNEL); in mwifiex_hscfg_write()
700 unsigned long addr = get_zeroed_page(GFP_KERNEL); in mwifiex_hscfg_read()
Die.c163 ap_custom_ie = kzalloc(sizeof(*ap_custom_ie), GFP_KERNEL); in mwifiex_update_uap_custom_ie()
236 GFP_KERNEL); in mwifiex_update_vs_ie()
332 gen_ie = kzalloc(sizeof(*gen_ie), GFP_KERNEL); in mwifiex_uap_set_head_tail_ies()
407 gen_ie = kmalloc(sizeof(*gen_ie), GFP_KERNEL); in mwifiex_del_mgmt_ies()
425 beacon_ie = kmalloc(sizeof(struct mwifiex_ie), GFP_KERNEL); in mwifiex_del_mgmt_ies()
435 pr_ie = kmalloc(sizeof(struct mwifiex_ie), GFP_KERNEL); in mwifiex_del_mgmt_ies()
445 ar_ie = kmalloc(sizeof(struct mwifiex_ie), GFP_KERNEL); in mwifiex_del_mgmt_ies()
Dsta_event.c136 GFP_KERNEL); in mwifiex_reset_connect_state()
173 GFP_KERNEL); in mwifiex_parse_tdls_event()
351 -1, NULL, GFP_KERNEL); in mwifiex_process_sta_event()
358 -1, NULL, GFP_KERNEL); in mwifiex_process_sta_event()
400 GFP_KERNEL); in mwifiex_process_sta_event()
415 GFP_KERNEL); in mwifiex_process_sta_event()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Dhif_usb.c108 urb = usb_alloc_urb(0, GFP_KERNEL); in hif_usb_send_regout()
112 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in hif_usb_send_regout()
127 ret = usb_submit_urb(urb, GFP_KERNEL); in hif_usb_send_regout()
792 tx_buf = kzalloc(sizeof(struct tx_buf), GFP_KERNEL); in ath9k_hif_usb_alloc_tx_urbs()
796 tx_buf->buf = kzalloc(MAX_TX_BUF_SIZE, GFP_KERNEL); in ath9k_hif_usb_alloc_tx_urbs()
800 tx_buf->urb = usb_alloc_urb(0, GFP_KERNEL); in ath9k_hif_usb_alloc_tx_urbs()
839 urb = usb_alloc_urb(0, GFP_KERNEL); in ath9k_hif_usb_alloc_rx_urbs()
846 skb = alloc_skb(MAX_RX_BUF_SIZE, GFP_KERNEL); in ath9k_hif_usb_alloc_rx_urbs()
862 ret = usb_submit_urb(urb, GFP_KERNEL); in ath9k_hif_usb_alloc_rx_urbs()
902 urb = usb_alloc_urb(0, GFP_KERNEL); in ath9k_hif_usb_alloc_reg_in_urbs()
[all …]
/linux-4.1.27/sound/soc/codecs/
Dwm_adsp.c168 struct wm_adsp_buf *buf = kzalloc(sizeof(*buf), GFP_KERNEL); in wm_adsp_buf_alloc()
396 scratch = kmemdup(buf, ctl->len, GFP_KERNEL | GFP_DMA); in wm_coeff_write_control()
451 scratch = kmalloc(ctl->len, GFP_KERNEL | GFP_DMA); in wm_coeff_read_control()
494 kcontrol = kzalloc(sizeof(*kcontrol), GFP_KERNEL); in wmfw_add_ctl()
542 file = kzalloc(PAGE_SIZE, GFP_KERNEL); in wm_adsp_load()
639 GFP_KERNEL); in wm_adsp_load()
644 GFP_KERNEL); in wm_adsp_load()
791 name = kmalloc(PAGE_SIZE, GFP_KERNEL); in wm_adsp_create_control()
828 ctl = kzalloc(sizeof(*ctl), GFP_KERNEL); in wm_adsp_create_control()
834 ctl->name = kmemdup(name, strlen(name) + 1, GFP_KERNEL); in wm_adsp_create_control()
[all …]
/linux-4.1.27/arch/sparc/include/asm/
Dpgalloc_64.h27 return kmem_cache_alloc(pgtable_cache, GFP_KERNEL); in pgd_alloc()
45 GFP_KERNEL|__GFP_REPEAT); in pud_alloc_one()
56 GFP_KERNEL|__GFP_REPEAT); in pmd_alloc_one()
/linux-4.1.27/drivers/gpu/drm/udl/
Dudl_connector.c28 block = kmalloc(EDID_LENGTH, GFP_KERNEL); in udl_get_edid()
32 rbuf = kmalloc(2, GFP_KERNEL); in udl_get_edid()
143 connector = kzalloc(sizeof(struct drm_connector), GFP_KERNEL); in udl_connector_init()
Dudl_main.c36 buf = kzalloc(MAX_VENDOR_DESCRIPTOR_SIZE, GFP_KERNEL); in udl_parse_vendor_descriptor()
190 unode = kzalloc(sizeof(struct urb_node), GFP_KERNEL); in udl_alloc_urb_list()
198 urb = usb_alloc_urb(0, GFP_KERNEL); in udl_alloc_urb_list()
205 buf = usb_alloc_coherent(udl->udev, MAX_TRANSFER, GFP_KERNEL, in udl_alloc_urb_list()
290 udl = kzalloc(sizeof(struct udl_device), GFP_KERNEL); in udl_driver_load()
/linux-4.1.27/arch/powerpc/include/asm/
Dpgalloc-64.h46 return kmem_cache_alloc(PGT_CACHE(PGD_INDEX_SIZE), GFP_KERNEL); in pgd_alloc()
61 GFP_KERNEL|__GFP_REPEAT); in pud_alloc_one()
82 return (pte_t *)__get_free_page(GFP_KERNEL | __GFP_REPEAT | __GFP_ZERO); in pte_alloc_one_kernel()
227 GFP_KERNEL|__GFP_REPEAT); in pmd_alloc_one()
/linux-4.1.27/arch/um/kernel/
Dmem.c187 pgd_t *pgd = (pgd_t *)__get_free_page(GFP_KERNEL); in pgd_alloc()
207 pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO); in pte_alloc_one_kernel()
215 pte = alloc_page(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO); in pte_alloc_one()
228 pmd_t *pmd = (pmd_t *) __get_free_page(GFP_KERNEL); in pmd_alloc_one()
/linux-4.1.27/drivers/pwm/
Dpwm-lp3943.c44 pwm_map = kzalloc(sizeof(*pwm_map), GFP_KERNEL); in lp3943_pwm_request_map()
211 pdata = devm_kzalloc(dev, sizeof(*pdata), GFP_KERNEL); in lp3943_pwm_parse_dt()
229 GFP_KERNEL); in lp3943_pwm_parse_dt()
238 pwm_map = devm_kzalloc(dev, sizeof(*pwm_map), GFP_KERNEL); in lp3943_pwm_parse_dt()
262 lp3943_pwm = devm_kzalloc(&pdev->dev, sizeof(*lp3943_pwm), GFP_KERNEL); in lp3943_pwm_probe()
/linux-4.1.27/drivers/i2c/muxes/
Di2c-mux-pinctrl.c66 mux->pdata = devm_kzalloc(&pdev->dev, sizeof(*mux->pdata), GFP_KERNEL); in i2c_mux_pinctrl_parse_dt()
82 GFP_KERNEL); in i2c_mux_pinctrl_parse_dt()
137 mux = devm_kzalloc(&pdev->dev, sizeof(*mux), GFP_KERNEL); in i2c_mux_pinctrl_probe()
161 GFP_KERNEL); in i2c_mux_pinctrl_probe()
170 GFP_KERNEL); in i2c_mux_pinctrl_probe()
/linux-4.1.27/drivers/isdn/hisax/
Dst5481_usb.c280 urb = usb_alloc_urb(0, GFP_KERNEL); in st5481_setup_usb()
295 urb = usb_alloc_urb(0, GFP_KERNEL); in st5481_setup_usb()
301 buf = kmalloc(INT_PKT_SIZE, GFP_KERNEL); in st5481_setup_usb()
380 SUBMIT_URB(intr->urb, GFP_KERNEL); in st5481_start()
439 urb[j] = usb_alloc_urb(num_packets, GFP_KERNEL); in st5481_setup_isocpipes()
444 buf = kmalloc(buf_size, GFP_KERNEL); in st5481_setup_isocpipes()
555 in->rcvbuf = kmalloc(in->bufsize, GFP_KERNEL); in st5481_setup_in()
631 SUBMIT_URB(in->urb[0], GFP_KERNEL); in st5481_start_rcv()
634 SUBMIT_URB(in->urb[1], GFP_KERNEL); in st5481_start_rcv()
/linux-4.1.27/drivers/mmc/host/
Dushc.c463 ushc->int_urb = usb_alloc_urb(0, GFP_KERNEL); in ushc_probe()
468 ushc->int_data = kzalloc(sizeof(struct ushc_int_data), GFP_KERNEL); in ushc_probe()
480 ushc->cbw_urb = usb_alloc_urb(0, GFP_KERNEL); in ushc_probe()
485 ushc->cbw = kzalloc(sizeof(struct ushc_cbw), GFP_KERNEL); in ushc_probe()
496 ushc->data_urb = usb_alloc_urb(0, GFP_KERNEL); in ushc_probe()
502 ushc->csw_urb = usb_alloc_urb(0, GFP_KERNEL); in ushc_probe()
507 ushc->csw = kzalloc(sizeof(struct ushc_csw), GFP_KERNEL); in ushc_probe()
520 ret = usb_submit_urb(ushc->int_urb, GFP_KERNEL); in ushc_probe()
/linux-4.1.27/arch/arm/mach-clps711x/
Ddevices.c122 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in clps711x_soc_init()
128 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%u", system_rev); in clps711x_soc_init()
129 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "%08x", id[0]); in clps711x_soc_init()
/linux-4.1.27/net/nfc/hci/
Dllc.c59 llc_engine = kzalloc(sizeof(struct nfc_llc_engine), GFP_KERNEL); in nfc_llc_register()
63 llc_engine->name = kstrdup(name, GFP_KERNEL); in nfc_llc_register()
113 llc = kzalloc(sizeof(struct nfc_llc), GFP_KERNEL); in nfc_llc_allocate()
/linux-4.1.27/lib/zlib_inflate/
Dinfutil.c17 strm = kmalloc(sizeof(*strm), GFP_KERNEL); in zlib_inflate_blob()
20 strm->workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL); in zlib_inflate_blob()
/linux-4.1.27/arch/s390/pci/
Dpci_clp.c83 rrb = clp_alloc_block(GFP_KERNEL); in clp_query_pci_fngrp()
136 rrb = clp_alloc_block(GFP_KERNEL); in clp_query_pci_fn()
169 zdev = kzalloc(sizeof(*zdev), GFP_KERNEL); in clp_add_pci_device()
204 rrb = clp_alloc_block(GFP_KERNEL); in clp_set_pci_fn()
355 rrb = clp_alloc_block(GFP_KERNEL); in clp_scan_pci_devices()
370 rrb = clp_alloc_block(GFP_KERNEL); in clp_rescan_pci_devices()
/linux-4.1.27/fs/squashfs/
Dcache.c240 struct squashfs_cache *cache = kzalloc(sizeof(*cache), GFP_KERNEL); in squashfs_cache_init()
247 cache->entry = kcalloc(entries, sizeof(*(cache->entry)), GFP_KERNEL); in squashfs_cache_init()
271 entry->data = kcalloc(cache->pages, sizeof(void *), GFP_KERNEL); in squashfs_cache_init()
278 entry->data[j] = kmalloc(PAGE_CACHE_SIZE, GFP_KERNEL); in squashfs_cache_init()
423 table = buffer = kmalloc(length, GFP_KERNEL); in squashfs_read_table()
427 data = kcalloc(pages, sizeof(void *), GFP_KERNEL); in squashfs_read_table()
Ddecompressor_multi.c71 stream = kzalloc(sizeof(*stream), GFP_KERNEL); in squashfs_decompressor_create()
86 decomp_strm = kmalloc(sizeof(*decomp_strm), GFP_KERNEL); in squashfs_decompressor_create()
154 decomp_strm = kmalloc(sizeof(*decomp_strm), GFP_KERNEL); in get_decomp_stream()
/linux-4.1.27/arch/mips/lantiq/xway/
Dsysctrl.c208 struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL); in clkdev_add_pmu()
224 struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL); in clkdev_add_cgu()
240 struct clk *clk = kzalloc(sizeof(struct clk), GFP_KERNEL); in clkdev_add_pci()
241 struct clk *clk_ext = kzalloc(sizeof(struct clk), GFP_KERNEL); in clkdev_add_pci()
280 name = kzalloc(sizeof("clkout0"), GFP_KERNEL); in clkdev_add_clkout()
283 clk = kzalloc(sizeof(struct clk), GFP_KERNEL); in clkdev_add_clkout()
/linux-4.1.27/drivers/clk/rockchip/
Dclk.c57 mux = kzalloc(sizeof(*mux), GFP_KERNEL); in rockchip_clk_register_branch()
71 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in rockchip_clk_register_branch()
83 div = kzalloc(sizeof(*div), GFP_KERNEL); in rockchip_clk_register_branch()
117 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in rockchip_clk_register_frac_branch()
131 div = kzalloc(sizeof(*div), GFP_KERNEL); in rockchip_clk_register_frac_branch()
167 clk_table = kcalloc(nr_clks, sizeof(struct clk *), GFP_KERNEL); in rockchip_clk_init()
Dclk-rockchip.c53 clk_data = kzalloc(sizeof(struct clk_onecell_data), GFP_KERNEL); in rk2928_gate_clk_init()
57 clk_data->clks = kzalloc(qty * sizeof(struct clk *), GFP_KERNEL); in rk2928_gate_clk_init()
/linux-4.1.27/drivers/pnp/pnpbios/
Dcore.c104 if (!(envp = kcalloc(20, sizeof(char *), GFP_KERNEL))) in pnp_dock_event()
106 if (!(buf = kzalloc(256, GFP_KERNEL))) { in pnp_dock_event()
210 node = kzalloc(node_info.max_node_size, GFP_KERNEL); in pnpbios_get_resources()
233 node = kzalloc(node_info.max_node_size, GFP_KERNEL); in pnpbios_set_resources()
285 node = kzalloc(node_info.max_node_size, GFP_KERNEL); in pnpbios_disable_resources()
365 node = kzalloc(node_info.max_node_size, GFP_KERNEL); in build_devlist()
Dproc.c106 tmpbuf = kzalloc(escd.escd_size, GFP_KERNEL); in escd_proc_show()
148 buf = kmalloc(65536, GFP_KERNEL); in pnp_legacyres_proc_show()
179 node = kzalloc(node_info.max_node_size, GFP_KERNEL); in pnp_devices_proc_show()
225 node = kzalloc(node_info.max_node_size, GFP_KERNEL); in pnpbios_proc_show()
252 node = kzalloc(node_info.max_node_size, GFP_KERNEL); in pnpbios_proc_write()
/linux-4.1.27/drivers/staging/rtl8723au/hal/
Drtl8723au_recv.c39 precvpriv->int_in_urb = usb_alloc_urb(0, GFP_KERNEL); in rtl8723au_init_recv_priv()
42 precvpriv->int_in_buf = kzalloc(USB_INTR_CONTENT_LENGTH, GFP_KERNEL); in rtl8723au_init_recv_priv()
47 precvpriv->precv_buf = kzalloc(size, GFP_KERNEL); in rtl8723au_init_recv_priv()
60 precvbuf->purb = usb_alloc_urb(0, GFP_KERNEL); in rtl8723au_init_recv_priv()
74 pskb = __netdev_alloc_skb(padapter->pnetdev, size, GFP_KERNEL); in rtl8723au_init_recv_priv()
/linux-4.1.27/arch/x86/um/vdso/
Dvma.c31 vdsop = kmalloc(sizeof(struct page *), GFP_KERNEL); in init_vdso()
35 um_vdso = alloc_page(GFP_KERNEL); in init_vdso()
/linux-4.1.27/drivers/uio/
Duio_pruss.c126 gdev = kzalloc(sizeof(struct uio_pruss_dev), GFP_KERNEL); in pruss_probe()
130 gdev->info = kzalloc(sizeof(*p) * MAX_PRUSS_EVT, GFP_KERNEL); in pruss_probe()
171 &(gdev->ddr_paddr), GFP_KERNEL | GFP_DMA); in pruss_probe()
200 p->name = kasprintf(GFP_KERNEL, "pruss_evt%d", cnt); in pruss_probe()
/linux-4.1.27/arch/x86/kernel/apic/
Dx2apic_cluster.c160 GFP_KERNEL)) { in update_clusterinfo()
163 GFP_KERNEL)) { in update_clusterinfo()
193 zalloc_cpumask_var(&per_cpu(cpus_in_cluster, cpu), GFP_KERNEL); in x2apic_init_cpu_notifier()
194 zalloc_cpumask_var(&per_cpu(ipi_mask, cpu), GFP_KERNEL); in x2apic_init_cpu_notifier()
/linux-4.1.27/drivers/input/tablet/
Dkbtab.c104 if (usb_submit_urb(kbtab->irq, GFP_KERNEL)) in kbtab_open()
125 kbtab = kzalloc(sizeof(struct kbtab), GFP_KERNEL); in kbtab_probe()
130 kbtab->data = usb_alloc_coherent(dev, 8, GFP_KERNEL, &kbtab->data_dma); in kbtab_probe()
134 kbtab->irq = usb_alloc_urb(0, GFP_KERNEL); in kbtab_probe()
/linux-4.1.27/drivers/staging/ft1000/ft1000-usb/
Dft1000_usb.c72 ft1000dev = kzalloc(sizeof(struct ft1000_usb), GFP_KERNEL); in ft1000_probe()
83 ft1000dev->tx_urb = usb_alloc_urb(0, GFP_KERNEL); in ft1000_probe()
84 ft1000dev->rx_urb = usb_alloc_urb(0, GFP_KERNEL); in ft1000_probe()
144 pFileStart = kmalloc(size, GFP_KERNEL); in ft1000_probe()
/linux-4.1.27/drivers/scsi/mvsas/
Dmv_init.c260 &mvi->tx_dma, GFP_KERNEL); in mvs_alloc()
265 &mvi->rx_fis_dma, GFP_KERNEL); in mvs_alloc()
272 &mvi->rx_dma, GFP_KERNEL); in mvs_alloc()
281 &mvi->slot_dma, GFP_KERNEL); in mvs_alloc()
288 &mvi->bulk_buffer_dma, GFP_KERNEL); in mvs_alloc()
294 &mvi->bulk_buffer_dma1, GFP_KERNEL); in mvs_alloc()
377 sizeof(struct mvs_slot_info), GFP_KERNEL); in mvs_pci_alloc()
394 mvi->tags = kzalloc(MVS_CHIP_SLOT_SZ>>3, GFP_KERNEL); in mvs_pci_alloc()
452 arr_phy = kcalloc(phy_nr, sizeof(void *), GFP_KERNEL); in mvs_prep_sas_ha_init()
453 arr_port = kcalloc(port_nr, sizeof(void *), GFP_KERNEL); in mvs_prep_sas_ha_init()
[all …]
/linux-4.1.27/drivers/media/v4l2-core/
Dvideobuf2-dma-contig.c165 buf = kzalloc(sizeof *buf, GFP_KERNEL); in vb2_dc_alloc()
170 GFP_KERNEL | gfp_flags); in vb2_dc_alloc()
247 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_dc_dmabuf_ops_attach()
255 ret = sg_alloc_table(sgt, buf->sgt_base->orig_nents, GFP_KERNEL); in vb2_dc_dmabuf_ops_attach()
384 sgt = kmalloc(sizeof(*sgt), GFP_KERNEL); in vb2_dc_get_base_sgt()
600 buf = kzalloc(sizeof *buf, GFP_KERNEL); in vb2_dc_get_userptr()
612 pages = kmalloc(n_pages * sizeof(pages[0]), GFP_KERNEL); in vb2_dc_get_userptr()
655 sgt = kzalloc(sizeof(*sgt), GFP_KERNEL); in vb2_dc_get_userptr()
663 offset, size, GFP_KERNEL); in vb2_dc_get_userptr()
819 buf = kzalloc(sizeof(*buf), GFP_KERNEL); in vb2_dc_attach_dmabuf()
[all …]
Dvideobuf2-dma-sg.c79 pages = alloc_pages(GFP_KERNEL | __GFP_ZERO | in vb2_dma_sg_alloc_compacted()
116 buf = kzalloc(sizeof *buf, GFP_KERNEL); in vb2_dma_sg_alloc()
129 GFP_KERNEL); in vb2_dma_sg_alloc()
138 buf->num_pages, 0, size, GFP_KERNEL); in vb2_dma_sg_alloc()
246 buf = kzalloc(sizeof *buf, GFP_KERNEL); in vb2_dma_sg_get_userptr()
262 GFP_KERNEL); in vb2_dma_sg_get_userptr()
450 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_dma_sg_dmabuf_ops_attach()
458 ret = sg_alloc_table(sgt, buf->dma_sgt->orig_nents, GFP_KERNEL); in vb2_dma_sg_dmabuf_ops_attach()
685 buf = kzalloc(sizeof(*buf), GFP_KERNEL); in vb2_dma_sg_attach_dmabuf()
735 conf = kzalloc(sizeof(*conf), GFP_KERNEL); in vb2_dma_sg_init_ctx()
Dvideobuf2-vmalloc.c43 buf = kzalloc(sizeof(*buf), GFP_KERNEL | gfp_flags); in vb2_vmalloc_alloc()
84 buf = kzalloc(sizeof(*buf), GFP_KERNEL); in vb2_vmalloc_get_userptr()
106 GFP_KERNEL); in vb2_vmalloc_get_userptr()
236 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_vmalloc_dmabuf_ops_attach()
241 ret = sg_alloc_table(sgt, num_pages, GFP_KERNEL); in vb2_vmalloc_dmabuf_ops_attach()
432 buf = kzalloc(sizeof(*buf), GFP_KERNEL); in vb2_vmalloc_attach_dmabuf()
/linux-4.1.27/arch/microblaze/include/asm/
Dpgalloc.h67 ret = (pgd_t *)__get_free_pages(GFP_KERNEL, PGDIR_ORDER); in get_pgd_slow()
119 int flags = GFP_KERNEL | __GFP_HIGHMEM | __GFP_REPEAT; in pte_alloc_one()
121 int flags = GFP_KERNEL | __GFP_REPEAT; in pte_alloc_one()
/linux-4.1.27/net/netlabel/
Dnetlabel_cipso_v4.c161 doi_def = kmalloc(sizeof(*doi_def), GFP_KERNEL); in netlbl_cipsov4_add_std()
164 doi_def->map.std = kzalloc(sizeof(*doi_def->map.std), GFP_KERNEL); in netlbl_cipsov4_add_std()
208 GFP_KERNEL); in netlbl_cipsov4_add_std()
215 GFP_KERNEL); in netlbl_cipsov4_add_std()
282 GFP_KERNEL); in netlbl_cipsov4_add_std()
290 GFP_KERNEL); in netlbl_cipsov4_add_std()
351 doi_def = kmalloc(sizeof(*doi_def), GFP_KERNEL); in netlbl_cipsov4_add_pass()
390 doi_def = kmalloc(sizeof(*doi_def), GFP_KERNEL); in netlbl_cipsov4_add_local()
482 ans_skb = nlmsg_new(NLMSG_DEFAULT_SIZE * nlsze_mult, GFP_KERNEL); in netlbl_cipsov4_list()
Dnetlabel_mgmt.c99 struct netlbl_dom_map *entry = kzalloc(sizeof(*entry), GFP_KERNEL); in netlbl_mgmt_add_common()
106 entry->domain = kmalloc(tmp_size, GFP_KERNEL); in netlbl_mgmt_add_common()
142 addrmap = kzalloc(sizeof(*addrmap), GFP_KERNEL); in netlbl_mgmt_add_common()
163 map = kzalloc(sizeof(*map), GFP_KERNEL); in netlbl_mgmt_add_common()
189 addrmap = kzalloc(sizeof(*addrmap), GFP_KERNEL); in netlbl_mgmt_add_common()
210 map = kzalloc(sizeof(*map), GFP_KERNEL); in netlbl_mgmt_add_common()
560 ans_skb = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in netlbl_mgmt_listdef()
676 ans_skb = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in netlbl_mgmt_version()
/linux-4.1.27/drivers/clk/st/
Dclkgen-mux.c33 parents = kzalloc(nparents * sizeof(const char *), GFP_KERNEL); in clkgen_mux_get_parents()
234 genamux = kzalloc(sizeof(*genamux), GFP_KERNEL); in clk_register_genamux()
411 clk_data = kzalloc(sizeof(*clk_data), GFP_KERNEL); in st_of_clkgena_divmux_setup()
417 GFP_KERNEL); in st_of_clkgena_divmux_setup()
724 clk_data = kzalloc(sizeof(*clk_data), GFP_KERNEL); in st_of_clkgen_vcc_setup()
730 GFP_KERNEL); in st_of_clkgen_vcc_setup()
752 gate = kzalloc(sizeof(struct clk_gate), GFP_KERNEL); in st_of_clkgen_vcc_setup()
756 div = kzalloc(sizeof(struct clk_divider), GFP_KERNEL); in st_of_clkgen_vcc_setup()
762 mux = kzalloc(sizeof(struct clk_mux), GFP_KERNEL); in st_of_clkgen_vcc_setup()
Dclk-flexgen.c187 fgxbar = kzalloc(sizeof(struct flexgen), GFP_KERNEL); in clk_register_flexgen()
252 parents = kcalloc(nparents, sizeof(const char *), GFP_KERNEL); in flexgen_get_parents()
285 clk_data = kzalloc(sizeof(*clk_data), GFP_KERNEL); in st_of_flexgen_setup()
298 GFP_KERNEL); in st_of_flexgen_setup()
302 rlock = kzalloc(sizeof(spinlock_t), GFP_KERNEL); in st_of_flexgen_setup()
/linux-4.1.27/drivers/infiniband/hw/amso1100/
Dc2_rnic.c225 wr = kmalloc(c2dev->req_vq.msg_size, GFP_KERNEL); in c2_add_addr()
287 wr = kmalloc(c2dev->req_vq.msg_size, GFP_KERNEL); in c2_del_addr()
480 err = c2_init_mqsp_pool(c2dev, GFP_KERNEL, &c2dev->kern_mqsp_pool); in c2_rnic_init()
491 GFP_KERNEL); in c2_rnic_init()
494 GFP_KERNEL); in c2_rnic_init()
497 GFP_KERNEL); in c2_rnic_init()
499 &c2dev->aeq.shared_dma, GFP_KERNEL); in c2_rnic_init()
521 &c2dev->rep_vq.host_dma, GFP_KERNEL); in c2_rnic_init()
542 &c2dev->aeq.host_dma, GFP_KERNEL); in c2_rnic_init()
/linux-4.1.27/drivers/clk/sunxi/
Dclk-a10-hosc.c38 fixed = kzalloc(sizeof(struct clk_fixed_rate), GFP_KERNEL); in sun4i_osc_clk_setup()
41 gate = kzalloc(sizeof(struct clk_gate), GFP_KERNEL); in sun4i_osc_clk_setup()
/linux-4.1.27/drivers/infiniband/hw/mlx5/
Dmain.c78 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_ib_query_device()
79 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_ib_query_device()
187 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_ib_query_port()
188 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_ib_query_port()
272 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_ib_query_gid()
273 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_ib_query_gid()
310 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_ib_query_pkey()
311 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_ib_query_pkey()
448 context = kzalloc(sizeof(*context), GFP_KERNEL); in mlx5_ib_alloc_ucontext()
454 uars = kcalloc(num_uars, sizeof(*uars), GFP_KERNEL); in mlx5_ib_alloc_ucontext()
[all …]
/linux-4.1.27/drivers/gpu/drm/armada/
Darmada_gem.c101 struct page *p = alloc_pages(GFP_KERNEL, order); in armada_gem_linear_back()
142 node = kzalloc(sizeof(*node), GFP_KERNEL); in armada_gem_linear_back()
198 obj = kzalloc(sizeof(*obj), GFP_KERNEL); in armada_gem_alloc_private_object()
218 obj = kzalloc(sizeof(*obj), GFP_KERNEL); in armada_gem_alloc_object()
430 sgt = kmalloc(sizeof(*sgt), GFP_KERNEL); in armada_gem_prime_map_dma_buf()
439 if (sg_alloc_table(sgt, count, GFP_KERNEL)) in armada_gem_prime_map_dma_buf()
462 if (sg_alloc_table(sgt, 1, GFP_KERNEL)) in armada_gem_prime_map_dma_buf()
471 if (sg_alloc_table(sgt, 1, GFP_KERNEL)) in armada_gem_prime_map_dma_buf()
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
Dresource.c118 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_cqid()
129 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_cqid()
135 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_cqid()
157 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_put_cqid()
192 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_qpid()
203 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_qpid()
209 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_qpid()
231 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_put_qpid()
/linux-4.1.27/kernel/gcov/
Dfs.c309 copy = kstrdup(path, GFP_KERNEL); in link_target()
316 target = kasprintf(GFP_KERNEL, "%s/%s.%s", dir, copy, ext); in link_target()
318 target = kasprintf(GFP_KERNEL, "%s.%s", copy, ext); in link_target()
375 node->links = kcalloc(num, sizeof(struct dentry *), GFP_KERNEL); in add_links()
436 node = kzalloc(sizeof(struct gcov_node) + strlen(name) + 1, GFP_KERNEL); in new_node()
441 GFP_KERNEL); in new_node()
579 filename = kstrdup(gcov_info_filename(info), GFP_KERNEL); in add_node()
631 loaded_info = kcalloc(num + 1, sizeof(struct gcov_info *), GFP_KERNEL); in add_info()
/linux-4.1.27/net/mac80211/
Dled.c67 local->rx_led = kzalloc(sizeof(struct led_trigger), GFP_KERNEL); in ieee80211_led_init()
76 local->tx_led = kzalloc(sizeof(struct led_trigger), GFP_KERNEL); in ieee80211_led_init()
85 local->assoc_led = kzalloc(sizeof(struct led_trigger), GFP_KERNEL); in ieee80211_led_init()
94 local->radio_led = kzalloc(sizeof(struct led_trigger), GFP_KERNEL); in ieee80211_led_init()
225 tpt_trig = kzalloc(sizeof(struct tpt_led_trigger), GFP_KERNEL); in __ieee80211_create_tpt_led_trigger()
/linux-4.1.27/drivers/scsi/ufs/
Dufshcd-pltfrm.c103 GFP_KERNEL); in ufshcd_parse_clock_info()
123 clki = devm_kzalloc(dev, sizeof(*clki), GFP_KERNEL); in ufshcd_parse_clock_info()
131 clki->name = kstrdup(name, GFP_KERNEL); in ufshcd_parse_clock_info()
161 vreg = devm_kzalloc(dev, sizeof(*vreg), GFP_KERNEL); in ufshcd_populate_vreg()
165 vreg->name = kstrdup(name, GFP_KERNEL); in ufshcd_populate_vreg()
/linux-4.1.27/drivers/staging/rtl8188eu/core/
Drtw_cmd.c365 pcmd = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL); in rtw_createbss_cmd()
537 param = kzalloc(sizeof(*param), GFP_KERNEL); in rtw_disassoc_cmd()
546 cmdobj = kzalloc(sizeof(*cmdobj), GFP_KERNEL); in rtw_disassoc_cmd()
576 ph2c = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL); in rtw_setopmode_cmd()
581 psetop = kzalloc(sizeof(struct setopmode_parm), GFP_KERNEL); in rtw_setopmode_cmd()
613 ph2c = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL); in rtw_setstakey_cmd()
619 psetstakey_para = kzalloc(sizeof(struct set_stakey_parm), GFP_KERNEL); in rtw_setstakey_cmd()
626 psetstakey_rsp = kzalloc(sizeof(struct set_stakey_rsp), GFP_KERNEL); in rtw_setstakey_cmd()
721 ph2c = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL); in rtw_addbareq_cmd()
727 paddbareq_parm = kzalloc(sizeof(struct addBaReq_parm), GFP_KERNEL); in rtw_addbareq_cmd()
[all …]
/linux-4.1.27/sound/synth/emux/
Demux.c42 emu = kzalloc(sizeof(*emu), GFP_KERNEL); in snd_emux_new()
101 emu->name = kstrdup(name, GFP_KERNEL); in snd_emux_register()
103 GFP_KERNEL); in snd_emux_register()
/linux-4.1.27/drivers/acpi/
Dnvs.c41 region = kmalloc(sizeof(*region), GFP_KERNEL); in acpi_nvs_register()
104 entry = kzalloc(sizeof(struct nvs_page), GFP_KERNEL); in suspend_nvs_register()
158 entry->data = (void *)__get_free_page(GFP_KERNEL); in suspend_nvs_alloc()
Dprocessor_pdc.c80 obj_list = kmalloc(sizeof(struct acpi_object_list), GFP_KERNEL); in acpi_processor_alloc_pdc()
84 obj = kmalloc(sizeof(union acpi_object), GFP_KERNEL); in acpi_processor_alloc_pdc()
90 buf = kmalloc(12, GFP_KERNEL); in acpi_processor_alloc_pdc()
/linux-4.1.27/sound/soc/atmel/
Dsam9x5_wm8731.c92 card = devm_kzalloc(&pdev->dev, sizeof(*card), GFP_KERNEL); in sam9x5_wm8731_driver_probe()
93 priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL); in sam9x5_wm8731_driver_probe()
94 dai = devm_kzalloc(&pdev->dev, sizeof(*dai), GFP_KERNEL); in sam9x5_wm8731_driver_probe()
/linux-4.1.27/arch/mips/kernel/
Dmips-mt-fpaff.c90 if (!alloc_cpumask_var(&cpus_allowed, GFP_KERNEL)) { in mipsmt_sys_sched_setaffinity()
94 if (!alloc_cpumask_var(&new_mask, GFP_KERNEL)) { in mipsmt_sys_sched_setaffinity()
98 if (!alloc_cpumask_var(&effective_mask, GFP_KERNEL)) { in mipsmt_sys_sched_setaffinity()
/linux-4.1.27/drivers/input/joystick/iforce/
Diforce-usb.c147 if (!(iforce = kzalloc(sizeof(struct iforce) + 32, GFP_KERNEL))) in iforce_usb_probe()
150 if (!(iforce->irq = usb_alloc_urb(0, GFP_KERNEL))) in iforce_usb_probe()
153 if (!(iforce->out = usb_alloc_urb(0, GFP_KERNEL))) in iforce_usb_probe()
156 if (!(iforce->ctrl = usb_alloc_urb(0, GFP_KERNEL))) in iforce_usb_probe()
/linux-4.1.27/fs/
Ddcookies.c96 GFP_KERNEL); in alloc_dcookie()
175 kbuf = kmalloc(PAGE_SIZE, GFP_KERNEL); in SYSCALL_DEFINE3()
230 dcookie_hashtable = kmalloc(PAGE_SIZE, GFP_KERNEL); in dcookie_init()
316 user = kmalloc(sizeof(struct dcookie_user), GFP_KERNEL); in dcookie_register()
/linux-4.1.27/arch/mips/alchemy/devboards/
Dplatform.c105 sr = kzalloc(sizeof(struct resource) * cnt, GFP_KERNEL); in db1x_register_pcmcia_socket()
180 parts = kzalloc(sizeof(struct mtd_partition) * 5, GFP_KERNEL); in db1x_register_norflash()
184 res = kzalloc(sizeof(struct resource), GFP_KERNEL); in db1x_register_norflash()
188 pfd = kzalloc(sizeof(struct physmap_flash_data), GFP_KERNEL); in db1x_register_norflash()
/linux-4.1.27/drivers/base/
Dcomponent.c180 if (!devres_open_group(master->dev, NULL, GFP_KERNEL)) { in try_to_bring_up_master()
240 new = devm_kmalloc(dev, component_match_size(num), GFP_KERNEL); in component_match_realloc()
303 master = kzalloc(sizeof(*master), GFP_KERNEL); in component_master_add_with_match()
391 if (!devres_open_group(master->dev, NULL, GFP_KERNEL)) in component_bind()
399 if (!devres_open_group(component->dev, component, GFP_KERNEL)) { in component_bind()
466 component = kzalloc(sizeof(*component), GFP_KERNEL); in component_add()
/linux-4.1.27/drivers/media/rc/
Dttusbir.c207 tt = kzalloc(sizeof(*tt), GFP_KERNEL); in ttusbir_probe()
256 struct urb *urb = usb_alloc_urb(8, GFP_KERNEL); in ttusbir_probe()
268 buffer = usb_alloc_coherent(tt->udev, 128, GFP_KERNEL, in ttusbir_probe()
289 tt->bulk_urb = usb_alloc_urb(0, GFP_KERNEL); in ttusbir_probe()
341 ret = usb_submit_urb(tt->urb[i], GFP_KERNEL); in ttusbir_probe()
418 rc = usb_submit_urb(tt->urb[i], GFP_KERNEL); in ttusbir_resume()
Diguanair.c213 rc = usb_submit_urb(ir->urb_out, GFP_KERNEL); in iguanair_send()
433 ir = kzalloc(sizeof(*ir), GFP_KERNEL); in iguanair_probe()
440 ir->buf_in = usb_alloc_coherent(udev, MAX_IN_PACKET, GFP_KERNEL, in iguanair_probe()
442 ir->packet = usb_alloc_coherent(udev, MAX_OUT_PACKET, GFP_KERNEL, in iguanair_probe()
444 ir->urb_in = usb_alloc_urb(0, GFP_KERNEL); in iguanair_probe()
445 ir->urb_out = usb_alloc_urb(0, GFP_KERNEL); in iguanair_probe()
478 ret = usb_submit_urb(ir->urb_in, GFP_KERNEL); in iguanair_probe()
581 rc = usb_submit_urb(ir->urb_in, GFP_KERNEL); in iguanair_resume()
/linux-4.1.27/drivers/usb/class/
Dcdc-wdm.c346 buf = kmalloc(count, GFP_KERNEL); in wdm_write()
412 rv = usb_submit_urb(desc->command, GFP_KERNEL); in wdm_write()
456 rv = usb_submit_urb(desc->response, GFP_KERNEL); in clear_wdm_read_flag()
644 rv = usb_submit_urb(desc->validity, GFP_KERNEL); in wdm_open()
742 rv = usb_submit_urb(desc->response, GFP_KERNEL); in wdm_rxwork()
761 desc = kzalloc(sizeof(struct wdm_device), GFP_KERNEL); in wdm_create()
781 desc->orq = kmalloc(sizeof(struct usb_ctrlrequest), GFP_KERNEL); in wdm_create()
784 desc->irq = kmalloc(sizeof(struct usb_ctrlrequest), GFP_KERNEL); in wdm_create()
788 desc->validity = usb_alloc_urb(0, GFP_KERNEL); in wdm_create()
792 desc->response = usb_alloc_urb(0, GFP_KERNEL); in wdm_create()
[all …]
/linux-4.1.27/sound/core/oss/
Dmixer_oss.c64 fmixer = kzalloc(sizeof(*fmixer), GFP_KERNEL); in snd_mixer_oss_open()
532 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_get_volume1_vol()
533 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_get_volume1_vol()
570 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_get_volume1_sw()
571 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_get_volume1_sw()
635 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_put_volume1_vol()
636 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_put_volume1_vol()
676 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_put_volume1_sw()
677 uctl = kzalloc(sizeof(*uctl), GFP_KERNEL); in snd_mixer_oss_put_volume1_sw()
808 uinfo = kzalloc(sizeof(*uinfo), GFP_KERNEL); in snd_mixer_oss_get_recsrc2()
[all …]
/linux-4.1.27/drivers/remoteproc/
Dremoteproc_core.c198 va = dma_alloc_coherent(dev->parent, size, &dma, GFP_KERNEL); in rproc_alloc_vring()
209 ret = idr_alloc(&rproc->notifyids, rvring, 0, 0, GFP_KERNEL); in rproc_alloc_vring()
339 rvdev = kzalloc(sizeof(struct rproc_vdev), GFP_KERNEL); in rproc_handle_vdev()
413 trace = kzalloc(sizeof(*trace), GFP_KERNEL); in rproc_handle_trace()
491 mapping = kzalloc(sizeof(*mapping), GFP_KERNEL); in rproc_handle_devmem()
567 carveout = kzalloc(sizeof(*carveout), GFP_KERNEL); in rproc_handle_carveout()
573 va = dma_alloc_coherent(dev->parent, rsc->len, &dma, GFP_KERNEL); in rproc_handle_carveout()
601 mapping = kzalloc(sizeof(*mapping), GFP_KERNEL); in rproc_handle_carveout()
906 rproc->cached_table = kmemdup(table, tablesz, GFP_KERNEL); in rproc_fw_config_virtio()
943 rproc->firmware, &rproc->dev, GFP_KERNEL, in rproc_add_virtio_devices()
[all …]
/linux-4.1.27/drivers/char/
Dtile-srom.c180 kernbuf = kmalloc(SROM_CHUNK_SIZE, GFP_KERNEL); in srom_read()
235 kernbuf = kmalloc(SROM_CHUNK_SIZE, GFP_KERNEL); in srom_write()
316 return kasprintf(GFP_KERNEL, "srom/%s", dev_name(dev)); in srom_devnode()
368 srom_devices = kzalloc(4 * sizeof(struct srom_dev), GFP_KERNEL); in srom_init()
376 GFP_KERNEL | __GFP_ZERO); in srom_init()
/linux-4.1.27/arch/arm/mach-mxs/
Dmach-mxs.c183 newmac = kzalloc(sizeof(*newmac) + 6, GFP_KERNEL); in update_fec_mac_prop()
189 newmac->name = kstrdup("local-mac-address", GFP_KERNEL); in update_fec_mac_prop()
424 return kasprintf(GFP_KERNEL, "%d.%d", (rev >> 4) & 0xf, in mxs_get_revision()
427 return kasprintf(GFP_KERNEL, "%s", "Unknown"); in mxs_get_revision()
464 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in mxs_machine_init()
/linux-4.1.27/drivers/xen/xenfs/
Dxenstored.c26 file->private_data = (void *)kasprintf(GFP_KERNEL, "0x%p", in xsd_kva_open()
57 file->private_data = (void *)kasprintf(GFP_KERNEL, "%d", in xsd_port_open()
/linux-4.1.27/init/
Dinitramfs.c85 q = kmalloc(sizeof(struct hash), GFP_KERNEL); in find_link()
131 struct dir_entry *de = kmalloc(sizeof(struct dir_entry), GFP_KERNEL); in dir_add()
135 de->name = kstrdup(name, GFP_KERNEL); in dir_add()
348 vcollected = kstrdup(collected, GFP_KERNEL); in do_name()
456 header_buf = kmalloc(110, GFP_KERNEL); in unpack_to_rootfs()
457 symlink_buf = kmalloc(PATH_MAX + N_ALIGN(PATH_MAX) + 1, GFP_KERNEL); in unpack_to_rootfs()
458 name_buf = kmalloc(N_ALIGN(PATH_MAX), GFP_KERNEL); in unpack_to_rootfs()
572 buf = kzalloc(BUF_SIZE, GFP_KERNEL); in clean_rootfs()
/linux-4.1.27/sound/soc/intel/atom/sst/
Dsst.c233 *ctx = devm_kzalloc(dev, sizeof(struct intel_sst_drv), GFP_KERNEL); in sst_alloc_drv_context()
302 sizeof(struct pm_qos_request), GFP_KERNEL); in sst_context_init()
312 ctx->dev, GFP_KERNEL, ctx, sst_firmware_load_cb); in sst_context_init()
459 fw_save = kzalloc(sizeof(*fw_save), GFP_KERNEL); in intel_sst_suspend()
462 fw_save->iram = kzalloc(ctx->iram_end - ctx->iram_base, GFP_KERNEL); in intel_sst_suspend()
467 fw_save->dram = kzalloc(ctx->dram_end - ctx->dram_base, GFP_KERNEL); in intel_sst_suspend()
472 fw_save->sram = kzalloc(SST_MAILBOX_SIZE, GFP_KERNEL); in intel_sst_suspend()
478 fw_save->ddr = kzalloc(ctx->ddr_end - ctx->ddr_base, GFP_KERNEL); in intel_sst_suspend()
/linux-4.1.27/security/apparmor/
Dpolicy.c134 GFP_KERNEL); in policy_init()
138 policy->hname = kstrdup(name, GFP_KERNEL); in policy_init()
279 ns = kzalloc(sizeof(*ns), GFP_KERNEL); in alloc_namespace()
651 profile = kzalloc(sizeof(*profile), GFP_KERNEL); in aa_alloc_profile()
655 profile->replacedby = kzalloc(sizeof(struct aa_replacedby), GFP_KERNEL); in aa_alloc_profile()
695 name = kmalloc(strlen(parent->base.hname) + 2 + 7 + 8, GFP_KERNEL); in aa_new_null_profile()
929 audit_policy(op, GFP_KERNEL, NULL, "policy_locked", -EACCES); in aa_may_manage_policy()
934 audit_policy(op, GFP_KERNEL, NULL, "not policy admin", -EACCES); in aa_may_manage_policy()
1218 error = audit_policy(op, GFP_KERNEL, name, info, error); in aa_replace_profiles()
1289 (void) audit_policy(OP_PROF_RM, GFP_KERNEL, name, info, error); in aa_remove_profiles()
[all …]
/linux-4.1.27/drivers/gpu/drm/exynos/
Dexynos_drm_buf.c68 &buf->dma_addr, GFP_KERNEL, in lowlevel_buffer_allocate()
85 &buf->dma_addr, GFP_KERNEL, in lowlevel_buffer_allocate()
152 buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); in exynos_drm_init_buf()
/linux-4.1.27/drivers/usb/serial/
Dsymbolserial.c107 result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL); in symbol_open()
144 result = usb_submit_urb(port->interrupt_in_urb, GFP_KERNEL); in symbol_unthrottle()
166 priv = kzalloc(sizeof(*priv), GFP_KERNEL); in symbol_port_probe()
/linux-4.1.27/fs/cifs/
Dcifsencrypt.c56 server->secmech.sdescmd5 = kmalloc(size, GFP_KERNEL); in cifs_crypto_shash_md5_allocate()
274 ses->auth_key.response = kmalloc(temp_len, GFP_KERNEL); in setup_ntlm_response()
356 ses->domainName = kstrdup(defdmname, GFP_KERNEL); in build_avpair_blob()
370 ses->auth_key.response = kzalloc(ses->auth_key.len, GFP_KERNEL); in build_avpair_blob()
432 kmalloc(attrsize + 1, GFP_KERNEL); in find_domain_name()
522 user = kmalloc(2 + (len * 2), GFP_KERNEL); in calc_ntlmv2_hash()
547 domain = kmalloc(2 + (len * 2), GFP_KERNEL); in calc_ntlmv2_hash()
567 server = kmalloc(2 + (len * 2), GFP_KERNEL); in calc_ntlmv2_hash()
665 server->secmech.sdeschmacmd5 = kmalloc(size, GFP_KERNEL); in crypto_hmacmd5_alloc()
715 ses->auth_key.response = kmalloc(baselen + tilen, GFP_KERNEL); in setup_ntlmv2_rsp()
/linux-4.1.27/drivers/net/can/usb/
Dgs_usb.c233 dm = kzalloc(sizeof(*dm), GFP_KERNEL); in gs_cmd_reset()
402 dbt = kmalloc(sizeof(*dbt), GFP_KERNEL); in gs_usb_set_bittiming()
582 urb = usb_alloc_urb(0, GFP_KERNEL); in gs_can_open()
592 GFP_KERNEL, in gs_can_open()
614 rc = usb_submit_urb(urb, GFP_KERNEL); in gs_can_open()
634 dm = kmalloc(sizeof(*dm), GFP_KERNEL); in gs_can_open()
731 bt_const = kmalloc(sizeof(*bt_const), GFP_KERNEL); in gs_make_candev()
841 hconf = kmalloc(sizeof(*hconf), GFP_KERNEL); in gs_usb_probe()
866 dconf = kmalloc(sizeof(*dconf), GFP_KERNEL); in gs_usb_probe()
902 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in gs_usb_probe()
/linux-4.1.27/drivers/usb/
Dusb-skeleton.c212 rv = usb_submit_urb(dev->bulk_in_urb, GFP_KERNEL); in skel_do_read_io()
405 urb = usb_alloc_urb(0, GFP_KERNEL); in skel_write()
411 buf = usb_alloc_coherent(dev->udev, writesize, GFP_KERNEL, in skel_write()
439 retval = usb_submit_urb(urb, GFP_KERNEL); in skel_write()
501 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in skel_probe()
528 dev->bulk_in_buffer = kmalloc(buffer_size, GFP_KERNEL); in skel_probe()
534 dev->bulk_in_urb = usb_alloc_urb(0, GFP_KERNEL); in skel_probe()
/linux-4.1.27/arch/xtensa/include/asm/
Dpgalloc.h33 return (pgd_t*) __get_free_pages(GFP_KERNEL | __GFP_ZERO, PGD_ORDER); in pgd_alloc()
47 ptep = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT); in pte_alloc_one_kernel()
/linux-4.1.27/drivers/net/wireless/ath/ath6kl/
Dtestmode.c53 skb = cfg80211_testmode_alloc_event_skb(ar->wiphy, buf_len, GFP_KERNEL); in ath6kl_tm_rx_event()
61 cfg80211_testmode_event(skb, GFP_KERNEL); in ath6kl_tm_rx_event()
/linux-4.1.27/arch/nios2/include/asm/
Dpgalloc.h45 pte = (pte_t *) __get_free_pages(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO, in pte_alloc_one_kernel()
56 pte = alloc_pages(GFP_KERNEL | __GFP_REPEAT, PTE_ORDER); in pte_alloc_one()

12345678910>>...42