Home
last modified time | relevance | path

Searched refs:kzalloc (Results 1 – 200 of 4727) sorted by relevance

12345678910>>...24

/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()
Dinit.c211 wl->target_mem_map = kzalloc(sizeof(struct wl1251_acx_mem_map), in wl1251_hw_init_mem_config()
278 config = kzalloc(sizeof(*config), GFP_KERNEL); in wl1251_hw_init_tx_queue_config()
311 wl->data_path = kzalloc(sizeof(struct acx_data_path_params_resp), in wl1251_hw_init_data_path_config()
/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.c241 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()
939 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl1271_cmd_data_path()
[all …]
/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()
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/scripts/coccinelle/api/alloc/
Dkzalloc-simple.cocci2 /// Use kzalloc rather than kmalloc followed by memset with 0
11 // URL: http://coccinelle.lip6.fr/rules/kzalloc.html
14 // Keywords: kmalloc, kzalloc
16 // Version min: 2.6.14 kzalloc
51 + x = kzalloc(E1,E2);
85 msg="WARNING: kzalloc should be used for %s, instead of kmalloc/memset" % (x)
Dalloc_cast.cocci2 /// like kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc.
5 //# kmalloc, kzalloc, kcalloc, kmem_cache_alloc, kmem_cache_zalloc,
30 \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|
42 (\(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|
54 (T@p *)\(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|
/linux-4.1.27/drivers/staging/rtl8188eu/core/
Drtw_cmd.c278 ph2c = kzalloc(sizeof(struct cmd_obj), GFP_ATOMIC); in rtw_sitesurvey_cmd()
282 psurveyPara = kzalloc(sizeof(struct sitesurvey_parm), GFP_ATOMIC); in rtw_sitesurvey_cmd()
365 pcmd = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL); in rtw_createbss_cmd()
409 pcmd = kzalloc(sizeof(struct cmd_obj), GFP_ATOMIC); in rtw_joinbss_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()
[all …]
/linux-4.1.27/drivers/staging/rtl8723au/core/
Drtw_cmd.c332 ph2c = kzalloc(sizeof(struct cmd_obj), GFP_ATOMIC); in rtw_sitesurvey_cmd23a()
336 psurveyPara = kzalloc(sizeof(struct sitesurvey_parm), GFP_ATOMIC); in rtw_sitesurvey_cmd23a()
422 pcmd = kzalloc(sizeof(struct cmd_obj), GFP_ATOMIC); in rtw_createbss_cmd23a()
469 pcmd = kzalloc(sizeof(struct cmd_obj), GFP_ATOMIC); in rtw_joinbss_cmd23a()
603 param = kzalloc(sizeof(*param), GFP_ATOMIC); in rtw_disassoc_cmd23a()
612 cmdobj = kzalloc(sizeof(struct cmd_obj), GFP_ATOMIC); in rtw_disassoc_cmd23a()
640 ph2c = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL); in rtw_setopmode_cmd23a()
645 psetop = kzalloc(sizeof(struct setopmode_parm), GFP_KERNEL); in rtw_setopmode_cmd23a()
672 ph2c = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL); in rtw_setstakey_cmd23a()
678 psetstakey_para = kzalloc(sizeof(struct set_stakey_parm), GFP_KERNEL); in rtw_setstakey_cmd23a()
[all …]
/linux-4.1.27/scripts/coccinelle/api/
Dmemdup.cocci22 to = \(kmalloc@p\|kzalloc@p\)(strlen(from) + 1,flag);
32 to = \(kmalloc@p\|kzalloc@p\)(x,flag);
40 - to = \(kmalloc@p\|kzalloc@p\)(size,flag);
51 * to = \(kmalloc@p\|kzalloc@p\)(size,flag);
Dmemdup_user.cocci22 - to = \(kmalloc\|kzalloc\)(size,flag);
45 * to = \(kmalloc@p\|kzalloc@p\)(size,flag);
/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()
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()
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()
484 cd = kzalloc(sizeof(*cd), GFP_KERNEL); in chsc_ioctl_info_channel_path()
546 cd = kzalloc(sizeof(*cd), GFP_KERNEL); in chsc_ioctl_info_cu()
609 cud = kzalloc(sizeof(*cud), GFP_KERNEL); in chsc_ioctl_info_sch_cu()
671 ci = kzalloc(sizeof(*ci), GFP_KERNEL); in chsc_ioctl_conf_info()
742 ccl = kzalloc(sizeof(*ccl), GFP_KERNEL); in chsc_ioctl_conf_comp_list()
798 chpd = kzalloc(sizeof(*chpd), GFP_KERNEL); in chsc_ioctl_chpd()
842 dcal = kzalloc(sizeof(*dcal), GFP_KERNEL); in chsc_ioctl_dcal()
Dcmf.c234 set_data = kzalloc(sizeof(struct set_schib_struct), GFP_ATOMIC); in set_schib_wait()
321 reference_buf = kzalloc(cmb_data->size, GFP_ATOMIC); in cmf_copy_block()
359 copy_block = kzalloc(sizeof(struct copy_block_struct), GFP_ATOMIC); in cmf_cmb_copy_wait()
552 cmb_data = kzalloc(sizeof(struct cmb_data), GFP_KERNEL); in alloc_cmb()
556 cmb_data->last_block = kzalloc(sizeof(struct cmb), GFP_KERNEL); in alloc_cmb()
828 cmbe = kzalloc (sizeof (*cmbe) * 2, GFP_KERNEL); in alloc_cmbe()
831 cmb_data = kzalloc(sizeof(struct cmb_data), GFP_KERNEL); in alloc_cmbe()
836 cmb_data->last_block = kzalloc(sizeof(struct cmbe), GFP_KERNEL); in alloc_cmbe()
/linux-4.1.27/net/irda/
Dirias_object.c51 obj = kzalloc(sizeof(struct ias_object), GFP_ATOMIC); in irias_new_object()
321 attrib = kzalloc(sizeof(struct ias_attrib), GFP_ATOMIC); in irias_add_integer_attrib()
365 attrib = kzalloc(sizeof(struct ias_attrib), GFP_ATOMIC); in irias_add_octseq_attrib()
407 attrib = kzalloc(sizeof( struct ias_attrib), GFP_ATOMIC); in irias_add_string_attrib()
442 value = kzalloc(sizeof(struct ias_value), GFP_ATOMIC); in irias_new_integer_value()
465 value = kzalloc(sizeof(struct ias_value), GFP_ATOMIC); in irias_new_string_value()
494 value = kzalloc(sizeof(struct ias_value), GFP_ATOMIC); in irias_new_octseq_value()
517 value = kzalloc(sizeof(struct ias_value), GFP_ATOMIC); in irias_new_missing_value()
/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()
Dclk-rz.c78 cpg = kzalloc(sizeof(*cpg), GFP_KERNEL); in rz_cpg_clocks_init()
79 clks = kzalloc(num_clks * sizeof(*clks), GFP_KERNEL); in rz_cpg_clocks_init()
Dclk-r8a7779.c137 cpg = kzalloc(sizeof(*cpg), GFP_KERNEL); in r8a7779_cpg_clocks_init()
138 clks = kzalloc(CPG_NUM_CLOCKS * sizeof(*clks), GFP_KERNEL); in r8a7779_cpg_clocks_init()
Dclk-r8a7740.c163 cpg = kzalloc(sizeof(*cpg), GFP_KERNEL); in r8a7740_cpg_clocks_init()
164 clks = kzalloc(num_clks * sizeof(*clks), GFP_KERNEL); in r8a7740_cpg_clocks_init()
/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/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()
Dacx.c34 bitmap_conf = kzalloc(sizeof(*bitmap_conf), GFP_KERNEL); in wl1271_acx_host_if_cfg_bitmap()
/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/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()
Dopal-elog.c165 elog->buffer = kzalloc(elog->size, GFP_KERNEL); in raw_attr_read()
190 elog = kzalloc(sizeof(*elog), GFP_KERNEL); in create_elog_obj()
209 elog->buffer = kzalloc(elog->size, GFP_KERNEL); in create_elog_obj()
/linux-4.1.27/drivers/s390/kvm/
Dvirtio_ccw.c215 info = kzalloc(sizeof(*info), GFP_KERNEL); in new_airq_info()
333 thinint_area = kzalloc(sizeof(*thinint_area), 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()
498 info->info_block = kzalloc(sizeof(*info->info_block), 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()
690 ccw = kzalloc(sizeof(*ccw), GFP_DMA | GFP_KERNEL); in virtio_ccw_reset()
714 ccw = kzalloc(sizeof(*ccw), GFP_DMA | GFP_KERNEL); in virtio_ccw_get_features()
718 features = kzalloc(sizeof(*features), GFP_DMA | GFP_KERNEL); in virtio_ccw_get_features()
[all …]
/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/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()
Dmux.c119 mux = kzalloc(sizeof(*mux), GFP_KERNEL); in _register_mux()
204 parent_names = kzalloc((sizeof(char *) * num_parents), GFP_KERNEL); in of_mux_clk_setup()
252 mux = kzalloc(sizeof(*mux), GFP_KERNEL); in ti_clk_build_component_mux()
280 mux = kzalloc(sizeof(*mux), GFP_KERNEL); in of_ti_composite_mux_clk_setup()
Ddpll.c215 dd = kzalloc(sizeof(*dd), GFP_KERNEL); in ti_clk_register_dpll()
216 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in ti_clk_register_dpll()
304 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in _register_dpll_x2()
347 dd = kzalloc(sizeof(*dd), GFP_KERNEL); in of_ti_dpll_setup()
348 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in of_ti_dpll_setup()
349 init = kzalloc(sizeof(*init), GFP_KERNEL); in of_ti_dpll_setup()
369 parent_names = kzalloc(sizeof(char *) * init->num_parents, GFP_KERNEL); in of_ti_dpll_setup()
Dcomposite.c251 cclk = kzalloc(sizeof(*cclk), GFP_KERNEL); in of_ti_composite_clk_setup()
288 parent_names = kzalloc((sizeof(char *) * num_parents), GFP_KERNEL); in ti_clk_add_component()
295 clk = kzalloc(sizeof(*clk), GFP_KERNEL); in ti_clk_add_component()
Ddivider.c274 div = kzalloc(sizeof(*div), GFP_KERNEL); in _register_divider()
342 table = kzalloc(sizeof(*table) * (valid_div + 1), GFP_KERNEL); in _get_div_table_from_setup()
370 div = kzalloc(sizeof(*div), GFP_KERNEL); in ti_clk_build_component_div()
463 table = kzalloc(sizeof(*table) * (valid_div + 1), GFP_KERNEL); in ti_clk_get_div_table()
606 div = kzalloc(sizeof(*div), GFP_KERNEL); in of_ti_composite_divider_clk_setup()
Dfapll.c500 init = kzalloc(sizeof(*init), GFP_KERNEL); in ti_fapll_synth_setup()
509 synth = kzalloc(sizeof(*synth), GFP_KERNEL); in ti_fapll_synth_setup()
538 fd = kzalloc(sizeof(*fd), GFP_KERNEL); in ti_fapll_setup()
542 fd->outputs.clks = kzalloc(sizeof(struct clk *) * in ti_fapll_setup()
548 init = kzalloc(sizeof(*init), GFP_KERNEL); in ti_fapll_setup()
Dgate.c105 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in _register_gate()
191 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in ti_clk_build_component_gate()
262 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in _of_ti_composite_gate_clk_setup()
/linux-4.1.27/drivers/hsi/
Dhsi.c86 cl = kzalloc(sizeof(*cl), GFP_KERNEL); in hsi_new_client()
93 cl->tx_cfg.channels = kzalloc(size , GFP_KERNEL); in hsi_new_client()
100 cl->rx_cfg.channels = kzalloc(size , GFP_KERNEL); in hsi_new_client()
208 cl = kzalloc(sizeof(*cl), GFP_KERNEL); in hsi_add_client_from_dt()
261 cl->rx_cfg.channels = kzalloc(cells * sizeof(channel), GFP_KERNEL); in hsi_add_client_from_dt()
267 cl->tx_cfg.channels = kzalloc(cells * sizeof(channel), GFP_KERNEL); in hsi_add_client_from_dt()
476 hsi = kzalloc(sizeof(*hsi), flags); in hsi_alloc_controller()
479 port = kzalloc(sizeof(*port)*n_ports, flags); in hsi_alloc_controller()
490 port[i] = kzalloc(sizeof(**port), flags); in hsi_alloc_controller()
546 msg = kzalloc(sizeof(*msg), flags); in hsi_alloc_msg()
Dhsi_boardinfo.c52 cl_info = kzalloc(sizeof(*cl_info) * len, GFP_KERNEL); in hsi_register_board_info()
/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()
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()
Ddlpar.c50 prop = kzalloc(sizeof(*prop), GFP_KERNEL); in dlpar_parse_cc_property()
80 dn = kzalloc(sizeof(*dn), GFP_KERNEL); in dlpar_parse_cc_node()
149 data_buf = kzalloc(RTAS_DATA_BUF_SIZE, GFP_KERNEL); in dlpar_configure_connector()
575 hp_elog = kzalloc(sizeof(*hp_elog), GFP_KERNEL); in dlpar_store()
/linux-4.1.27/drivers/pci/hotplug/
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 …]
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()
61 slot->hotplug_slot->info = kzalloc(sizeof(struct hotplug_slot_info), in alloc_slot_struct()
Ds390_pci_hpc.c160 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in zpci_init_slot()
164 hotplug_slot = kzalloc(sizeof(*hotplug_slot), GFP_KERNEL); in zpci_init_slot()
172 info = kzalloc(sizeof(*info), GFP_KERNEL); in zpci_init_slot()
Dibmphp_ebda.c74 return kzalloc(sizeof(struct ebda_hpc_list), GFP_KERNEL); in alloc_ebda_hpc_list()
83 controller = kzalloc(sizeof(struct controller), GFP_KERNEL); in alloc_ebda_hpc()
115 return kzalloc(sizeof(struct ebda_rsrc_list), GFP_KERNEL); in alloc_ebda_rsrc_list()
120 return kzalloc(sizeof(struct ebda_pci_rsrc), GFP_KERNEL); in alloc_ebda_pci_rsrc()
369 rio_table_ptr = kzalloc(sizeof(struct rio_table_hdr), GFP_KERNEL); in ibmphp_access_ebda()
425 rio_detail_ptr = kzalloc(sizeof(struct rio_detail), GFP_KERNEL); in ebda_rio_table()
478 opt_rio_ptr = kzalloc(sizeof(struct opt_rio), GFP_KERNEL); in combine_wpg_for_chassis()
516 opt_rio_lo_ptr = kzalloc(sizeof(struct opt_rio_lo), GFP_KERNEL); in combine_wpg_for_expansion()
804 bus_info_ptr1 = kzalloc(sizeof(struct bus_info), GFP_KERNEL); in ebda_rsrc_controller()
907 hp_slot_ptr = kzalloc(sizeof(*hp_slot_ptr), GFP_KERNEL); in ebda_rsrc_controller()
[all …]
Dshpchp_core.c104 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in init_slots()
110 hotplug_slot = kzalloc(sizeof(*hotplug_slot), GFP_KERNEL); in init_slots()
117 info = kzalloc(sizeof(*info), GFP_KERNEL); in init_slots()
310 ctrl = kzalloc(sizeof(*ctrl), GFP_KERNEL); in shpc_probe()
Dpcihp_skeleton.c263 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in init_slots()
269 hotplug_slot = kzalloc(sizeof(*hotplug_slot), GFP_KERNEL); in init_slots()
276 info = kzalloc(sizeof(*info), GFP_KERNEL); in init_slots()
Dpciehp_core.c99 hotplug = kzalloc(sizeof(*hotplug), GFP_KERNEL); in init_slot()
103 info = kzalloc(sizeof(*info), GFP_KERNEL); in init_slot()
108 ops = kzalloc(sizeof(*ops), GFP_KERNEL); in init_slot()
/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/fs/btrfs/tests/
Dbtrfs-tests.c81 struct btrfs_fs_info *fs_info = kzalloc(sizeof(struct btrfs_fs_info), in btrfs_alloc_dummy_fs_info()
86 fs_info->fs_devices = kzalloc(sizeof(struct btrfs_fs_devices), in btrfs_alloc_dummy_fs_info()
92 fs_info->super_copy = kzalloc(sizeof(struct btrfs_super_block), in btrfs_alloc_dummy_fs_info()
/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()
416 clk_data->clks = kzalloc(clk_data->clk_num * sizeof(struct clk *), in st_of_clkgena_divmux_setup()
724 clk_data = kzalloc(sizeof(*clk_data), GFP_KERNEL); in st_of_clkgen_vcc_setup()
729 clk_data->clks = kzalloc(clk_data->clk_num * sizeof(struct clk *), 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()
Dclkgen-pll.c402 pll = kzalloc(sizeof(*pll), GFP_KERNEL); in clkgen_pll_register()
482 clk_data = kzalloc(sizeof(*clk_data), GFP_KERNEL); in clkgena_c65_pll_setup()
487 clk_data->clks = kzalloc(clk_data->clk_num * sizeof(struct clk *), in clkgena_c65_pll_setup()
560 gate = kzalloc(sizeof(*gate), GFP_KERNEL); in clkgen_odf_register()
569 div = kzalloc(sizeof(*div), GFP_KERNEL); in clkgen_odf_register()
674 clk_data = kzalloc(sizeof(*clk_data), GFP_KERNEL); in clkgen_c32_pll_setup()
679 clk_data->clks = kzalloc(clk_data->clk_num * sizeof(struct clk *), in clkgen_c32_pll_setup()
Dclk-flexgen.c187 fgxbar = kzalloc(sizeof(struct flexgen), GFP_KERNEL); in clk_register_flexgen()
285 clk_data = kzalloc(sizeof(*clk_data), 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/net/ethernet/mellanox/mlx5/core/
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()
Dfw.c44 out = kzalloc(sizeof(*out), GFP_KERNEL); in mlx5_cmd_query_adapter()
83 out = kzalloc(out_sz, GFP_KERNEL); in mlx5_query_odp_caps()
Ddebugfs.c286 out = kzalloc(sizeof(*out), GFP_KERNEL); in qp_read_field()
366 out = kzalloc(sizeof(*out), GFP_KERNEL); in eq_read_field()
403 out = kzalloc(sizeof(*out), GFP_KERNEL); in cq_read_field()
495 d = kzalloc(sizeof(*d) + nfile * sizeof(d->fields[0]), GFP_KERNEL); in add_res_tree()
/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()
Dclk-a20-gmac.c74 mux = kzalloc(sizeof(struct clk_mux), GFP_KERNEL); in sun7i_a20_gmac_clk_setup()
78 gate = kzalloc(sizeof(struct clk_gate), GFP_KERNEL); in sun7i_a20_gmac_clk_setup()
Dclk-factors.c190 factors = kzalloc(sizeof(struct clk_factors), GFP_KERNEL); in sunxi_factors_register()
202 gate = kzalloc(sizeof(struct clk_gate), GFP_KERNEL); in sunxi_factors_register()
217 mux = kzalloc(sizeof(struct clk_mux), GFP_KERNEL); in sunxi_factors_register()
/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/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/clk/rockchip/
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()
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()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Dcommon-debug.c27 buf = kzalloc(size, GFP_KERNEL); in read_file_modal_eeprom()
63 buf = kzalloc(size, GFP_KERNEL); in read_file_base_eeprom()
138 buf = kzalloc(size, GFP_KERNEL); in read_file_recv()
198 buf = kzalloc(size, GFP_KERNEL); in read_file_phy_err()
/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()
494 kcontrol = kzalloc(sizeof(*kcontrol), GFP_KERNEL); in wmfw_add_ctl()
542 file = kzalloc(PAGE_SIZE, GFP_KERNEL); in wm_adsp_load()
638 text = kzalloc(le32_to_cpu(region->len) + 1, in wm_adsp_load()
643 text = kzalloc(le32_to_cpu(region->len) + 1, in wm_adsp_load()
828 ctl = kzalloc(sizeof(*ctl), GFP_KERNEL); in wm_adsp_create_control()
846 ctl->cache = kzalloc(ctl->len, GFP_KERNEL); in wm_adsp_create_control()
852 ctl_work = kzalloc(sizeof(*ctl_work), GFP_KERNEL); in wm_adsp_create_control()
931 region = kzalloc(sizeof(*region), GFP_KERNEL); in wm_adsp_setup_algs()
939 region = kzalloc(sizeof(*region), GFP_KERNEL); in wm_adsp_setup_algs()
[all …]
Dwm0010.c414 xfer = kzalloc(sizeof(*xfer), GFP_KERNEL); in wm0010_firmware_load()
423 out = kzalloc(len, GFP_KERNEL | GFP_DMA); in wm0010_firmware_load()
430 img = kzalloc(len, GFP_KERNEL | GFP_DMA); in wm0010_firmware_load()
522 img = kzalloc(fw->size, GFP_KERNEL | GFP_DMA); in wm0010_stage2_load()
528 out = kzalloc(fw->size, GFP_KERNEL | GFP_DMA); in wm0010_stage2_load()
667 out = kzalloc(len, GFP_KERNEL | GFP_DMA); in wm0010_boot()
674 img_swap = kzalloc(len, GFP_KERNEL | GFP_DMA); in wm0010_boot()
/linux-4.1.27/drivers/s390/net/
Dsmsgiucv_app.c71 ev = kzalloc(sizeof(*ev), GFP_ATOMIC); in smsg_app_event_alloc()
75 ev->buf = kzalloc(ENV_SENDER_LEN + ENV_PREFIX_LEN + in smsg_app_event_alloc()
158 smsg_app_dev = kzalloc(sizeof(*smsg_app_dev), GFP_KERNEL); in smsgiucv_app_init()
/linux-4.1.27/arch/ia64/sn/kernel/
Dio_common.c135 war_list = kzalloc(DEV_PER_WIDGET * sizeof(*war_list), GFP_KERNEL); in sn_device_fixup_war()
179 kzalloc(size, GFP_KERNEL); in sn_common_hubdev_init()
185 sn_flush_device_kernel = kzalloc(size, GFP_KERNEL); in sn_common_hubdev_init()
192 dev_entry->common = kzalloc(size, GFP_KERNEL); in sn_common_hubdev_init()
319 controller->platform_data = kzalloc(sizeof(struct sn_platform_data), in sn_common_bus_fixup()
355 element = kzalloc(sizeof(struct sysdata_el), GFP_KERNEL); in sn_bus_store_sysdata()
Dio_init.c158 pcidev_info = kzalloc(sizeof(struct pcidev_info), GFP_KERNEL); in sn_io_slot_fixup()
162 sn_irq_info = kzalloc(sizeof(struct sn_irq_info), GFP_KERNEL); in sn_io_slot_fixup()
248 controller = kzalloc(sizeof(*controller), GFP_KERNEL); in sn_pci_controller_fixup()
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_mr.c58 mr->map[i] = kzalloc(sizeof(*mr->map[0]), GFP_KERNEL); in init_qib_mregion()
107 mr = kzalloc(sizeof(*mr), GFP_KERNEL); in qib_get_dma_mr()
146 mr = kzalloc(sizeof(*mr) + m * sizeof(mr->mr.map[0]), GFP_KERNEL); in alloc_mr()
350 pl = kzalloc(sizeof(*pl), GFP_KERNEL); in qib_alloc_fast_reg_page_list()
354 pl->page_list = kzalloc(size, GFP_KERNEL); in qib_alloc_fast_reg_page_list()
389 fmr = kzalloc(sizeof(*fmr) + m * sizeof(fmr->mr.map[0]), GFP_KERNEL); in qib_alloc_fmr()
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
Di40evf_virtchnl.c96 event.msg_buf = kzalloc(event.buf_len, GFP_KERNEL); in i40evf_verify_api_ver()
173 event.msg_buf = kzalloc(event.buf_len, GFP_KERNEL); in i40evf_get_vf_config()
224 vqci = kzalloc(len, GFP_ATOMIC); in i40evf_configure_queues()
335 vimi = kzalloc(len, GFP_ATOMIC); in i40evf_map_queues()
401 veal = kzalloc(len, GFP_ATOMIC); in i40evf_add_ether_addrs()
460 veal = kzalloc(len, GFP_ATOMIC); in i40evf_del_ether_addrs()
521 vvfl = kzalloc(len, GFP_ATOMIC); in i40evf_add_vlans()
580 vvfl = kzalloc(len, GFP_ATOMIC); in i40evf_del_vlans()
/linux-4.1.27/drivers/media/dvb-frontends/
Ddvb_dummy_fe.c123 state = kzalloc(sizeof(struct dvb_dummy_fe_state), GFP_KERNEL); in dvb_dummy_fe_ofdm_attach()
140 state = kzalloc(sizeof(struct dvb_dummy_fe_state), GFP_KERNEL); in dvb_dummy_fe_qpsk_attach()
157 state = kzalloc(sizeof(struct dvb_dummy_fe_state), GFP_KERNEL); in dvb_dummy_fe_qam_attach()
/linux-4.1.27/drivers/cpuidle/
Dcpuidle-powernv.c182 flags = kzalloc(sizeof(*flags) * dt_idle_states, GFP_KERNEL); in powernv_add_idle_states()
189 latency_ns = kzalloc(sizeof(*latency_ns) * dt_idle_states, GFP_KERNEL); in powernv_add_idle_states()
197 residency_ns = kzalloc(sizeof(*residency_ns) * dt_idle_states, GFP_KERNEL); in powernv_add_idle_states()
/linux-4.1.27/drivers/pnp/pnpbios/
Dcore.c106 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()
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/sh/intc/
Dcore.c192 d = kzalloc(sizeof(*d), GFP_NOWAIT); in register_intc_controller()
206 d->window = kzalloc(d->nr_windows * sizeof(*d->window), in register_intc_controller()
233 d->reg = kzalloc(d->nr_reg * sizeof(*d->reg), GFP_NOWAIT); in register_intc_controller()
238 d->smp = kzalloc(d->nr_reg * sizeof(*d->smp), GFP_NOWAIT); in register_intc_controller()
256 d->prio = kzalloc(hw->nr_vectors * sizeof(*d->prio), in register_intc_controller()
272 d->sense = kzalloc(hw->nr_vectors * sizeof(*d->sense), in register_intc_controller()
/linux-4.1.27/drivers/gpu/drm/nouveau/
Dnv04_fence.c76 struct nv04_fence_chan *fctx = kzalloc(sizeof(*fctx), GFP_KERNEL); in nv04_fence_context_new()
101 priv = drm->fence = kzalloc(sizeof(*priv), GFP_KERNEL); in nv04_fence_create()
Dnv10_fence.c74 fctx = chan->fence = kzalloc(sizeof(*fctx), GFP_KERNEL); in nv10_fence_context_new()
102 priv = drm->fence = kzalloc(sizeof(*priv), GFP_KERNEL); in nv10_fence_create()
Dnv50_fence.c45 fctx = chan->fence = kzalloc(sizeof(*fctx), GFP_KERNEL); in nv50_fence_context_new()
90 priv = drm->fence = kzalloc(sizeof(*priv), GFP_KERNEL); in nv50_fence_create()
Dnv17_fence.c83 fctx = chan->fence = kzalloc(sizeof(*fctx), GFP_KERNEL); in nv17_fence_context_new()
119 priv = drm->fence = kzalloc(sizeof(*priv), GFP_KERNEL); in nv17_fence_create()
/linux-4.1.27/arch/powerpc/platforms/ps3/
Ddevice-init.c44 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in ps3_register_lpm_devices()
139 p = kzalloc(sizeof(struct layout), GFP_KERNEL); in ps3_setup_gelic_device()
210 p = kzalloc(sizeof(struct layout), GFP_KERNEL); in ps3_setup_uhc_device()
307 p = kzalloc(sizeof(struct layout), GFP_KERNEL); in ps3_setup_vuart_device()
357 p = kzalloc(sizeof(struct ps3_storage_device) + in ps3_setup_storage_dev()
462 p = kzalloc(sizeof(*p), GFP_KERNEL); in ps3_register_sound_devices()
496 p = kzalloc(sizeof(struct layout), GFP_KERNEL); in ps3_register_graphics_devices()
531 p = kzalloc(sizeof(struct layout), GFP_KERNEL); in ps3_register_ramdisk_device()
798 buf = kzalloc(512, GFP_KERNEL); in ps3_probe_thread()
/linux-4.1.27/drivers/misc/mei/
Ddebugfs.c46 buf = kzalloc(bufsz, GFP_KERNEL); in mei_dbgfs_read_meclients()
102 buf = kzalloc(bufsz, GFP_KERNEL); in mei_dbgfs_read_active()
141 char *buf = kzalloc(bufsz, GFP_KERNEL); in mei_dbgfs_read_devstate()
Dnfc.c221 cmd = kzalloc(connect_length, GFP_KERNEL); in mei_nfc_connect()
226 reply = kzalloc(connect_resp_length, GFP_KERNEL); in mei_nfc_connect()
298 reply = kzalloc(if_version_length, GFP_KERNEL); in mei_nfc_if_version()
355 mei_buf = kzalloc(length + MEI_NFC_HEADER_SIZE, GFP_KERNEL); in mei_nfc_send()
497 ndev = kzalloc(sizeof(struct mei_nfc_dev), GFP_KERNEL); in mei_nfc_host_init()
/linux-4.1.27/sound/pci/hda/
Dpatch_cmedia.c55 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in patch_cmi9880()
84 spec = kzalloc(sizeof(*spec), GFP_KERNEL); in patch_cmi8888()
/linux-4.1.27/drivers/scsi/
Dses.c465 unsigned char *hdr_buf = kzalloc(INIT_ALLOC_SIZE, GFP_KERNEL); in ses_enclosure_data_process()
480 buf = kzalloc(len + 1, GFP_KERNEL); in ses_enclosure_data_process()
617 ses_dev = kzalloc(sizeof(*ses_dev), GFP_KERNEL); in ses_intf_add()
618 hdr_buf = kzalloc(INIT_ALLOC_SIZE, GFP_KERNEL); in ses_intf_add()
627 buf = kzalloc(len, GFP_KERNEL); in ses_intf_add()
666 buf = kzalloc(len, GFP_KERNEL); in ses_intf_add()
684 buf = kzalloc(len, GFP_KERNEL); in ses_intf_add()
695 scomp = kzalloc(sizeof(struct ses_component) * components, GFP_KERNEL); in ses_intf_add()
Draid_class.c87 rd = kzalloc(sizeof(*rd), GFP_KERNEL); in raid_setup()
233 rc = kzalloc(sizeof(*rc), GFP_KERNEL); in raid_component_add()
264 struct raid_internal *i = kzalloc(sizeof(struct raid_internal), in raid_class_attach()
/linux-4.1.27/drivers/media/v4l2-core/
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()
105 buf->pages = kzalloc(buf->n_pages * sizeof(struct page *), in vb2_vmalloc_get_userptr()
236 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_vmalloc_dmabuf_ops_attach()
432 buf = kzalloc(sizeof(*buf), GFP_KERNEL); in vb2_vmalloc_attach_dmabuf()
Dvideobuf2-dma-sg.c116 buf = kzalloc(sizeof *buf, GFP_KERNEL); in vb2_dma_sg_alloc()
128 buf->pages = kzalloc(buf->num_pages * sizeof(struct page *), in vb2_dma_sg_alloc()
246 buf = kzalloc(sizeof *buf, GFP_KERNEL); in vb2_dma_sg_get_userptr()
261 buf->pages = kzalloc(buf->num_pages * sizeof(struct page *), in vb2_dma_sg_get_userptr()
450 attach = kzalloc(sizeof(*attach), 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()
Dv4l2-clk.c47 clk = kzalloc(sizeof(*clk), GFP_KERNEL); in v4l2_clk_get()
230 clk = kzalloc(sizeof(struct v4l2_clk), GFP_KERNEL); in v4l2_clk_register()
294 struct v4l2_clk_fixed *priv = kzalloc(sizeof(*priv), GFP_KERNEL); in __v4l2_clk_register_fixed()
Dvideobuf2-dma-contig.c165 buf = kzalloc(sizeof *buf, GFP_KERNEL); in vb2_dc_alloc()
247 attach = kzalloc(sizeof(*attach), GFP_KERNEL); in vb2_dc_dmabuf_ops_attach()
600 buf = kzalloc(sizeof *buf, GFP_KERNEL); in vb2_dc_get_userptr()
655 sgt = kzalloc(sizeof(*sgt), GFP_KERNEL); in vb2_dc_get_userptr()
819 buf = kzalloc(sizeof(*buf), GFP_KERNEL); in vb2_dc_attach_dmabuf()
866 conf = kzalloc(sizeof *conf, GFP_KERNEL); in vb2_dma_contig_init_ctx()
/linux-4.1.27/drivers/cpufreq/
Dsfi-cpufreq.c48 sfi_cpufreq_array = kzalloc(totallen, GFP_KERNEL); in sfi_parse_freq()
99 freq_table = kzalloc(sizeof(*freq_table) * in sfi_cpufreq_init()
Dsparc-us3-cpufreq.c185 driver = kzalloc(sizeof(*driver), GFP_KERNEL); in us3_freq_init()
189 us3_freq_table = kzalloc((NR_CPUS * sizeof(*us3_freq_table)), in us3_freq_init()
/linux-4.1.27/scripts/coccinelle/null/
Deno.cocci20 x = \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|kmem_cache_alloc_node\|kmallo…
30 *x = \(kmalloc@p1\|kzalloc@p1\|kcalloc@p1\|kmem_cache_alloc@p1\|kmem_cache_zalloc@p1\|kmem_cache_al…
Dkmerr.cocci37 *x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
53 x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
/linux-4.1.27/drivers/usb/storage/
Doption_ms.c55 buffer = kzalloc(RESPONSE_LEN, GFP_KERNEL); in option_rezero()
100 buffer = kzalloc(0x24, GFP_KERNEL); in option_inquiry()
/linux-4.1.27/net/netlabel/
Dnetlabel_kapi.c114 entry = kzalloc(sizeof(*entry), GFP_ATOMIC); in netlbl_cfg_unlbl_map_add()
126 addrmap = kzalloc(sizeof(*addrmap), GFP_ATOMIC); in netlbl_cfg_unlbl_map_add()
136 map4 = kzalloc(sizeof(*map4), GFP_ATOMIC); in netlbl_cfg_unlbl_map_add()
153 map6 = kzalloc(sizeof(*map6), GFP_ATOMIC); in netlbl_cfg_unlbl_map_add()
345 entry = kzalloc(sizeof(*entry), GFP_ATOMIC); in netlbl_cfg_cipsov4_map_add()
358 addrmap = kzalloc(sizeof(*addrmap), GFP_ATOMIC); in netlbl_cfg_cipsov4_map_add()
364 addrinfo = kzalloc(sizeof(*addrinfo), GFP_ATOMIC); in netlbl_cfg_cipsov4_map_add()
Dnetlabel_mgmt.c99 struct netlbl_dom_map *entry = kzalloc(sizeof(*entry), 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()
/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()
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/video/
Dof_display_timing.c153 disp = kzalloc(sizeof(*disp), GFP_KERNEL); in of_get_display_timings()
183 disp->timings = kzalloc(sizeof(struct display_timing *) * in of_get_display_timings()
198 dt = kzalloc(sizeof(*dt), GFP_KERNEL); in of_get_display_timings()
/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()
Dfmc-sdb.c48 arr = kzalloc(sizeof(*arr), GFP_KERNEL); in __fmc_scan_sdb_tree()
51 arr->record = kzalloc(sizeof(arr->record[0]) * n, GFP_KERNEL); in __fmc_scan_sdb_tree()
52 arr->subtree = kzalloc(sizeof(arr->subtree[0]) * n, GFP_KERNEL); in __fmc_scan_sdb_tree()
/linux-4.1.27/sound/isa/gus/
Dgus_mem_proc.c68 priv = kzalloc(sizeof(*priv), GFP_KERNEL); in snd_gf1_mem_proc_init()
85 priv = kzalloc(sizeof(*priv), GFP_KERNEL); in snd_gf1_mem_proc_init()
/linux-4.1.27/drivers/media/usb/dvb-usb/
Ddvb-usb-init.c69 adap->fe_adap[o].priv = kzalloc(props->size_of_priv, GFP_KERNEL); in dvb_usb_adapter_init()
78 adap->priv = kzalloc(adap->props.size_of_priv, GFP_KERNEL); in dvb_usb_adapter_init()
151 d->priv = kzalloc(d->props.size_of_priv, GFP_KERNEL); in dvb_usb_init()
260 d = kzalloc(sizeof(struct dvb_usb_device), GFP_KERNEL); in dvb_usb_device_init()
/linux-4.1.27/crypto/asymmetric_keys/
Dpkcs7_parser.c92 ctx = kzalloc(sizeof(struct pkcs7_parse_context), GFP_KERNEL); in pkcs7_parse_message()
95 ctx->msg = kzalloc(sizeof(struct pkcs7_message), GFP_KERNEL); in pkcs7_parse_message()
98 ctx->sinfo = kzalloc(sizeof(struct pkcs7_signed_info), GFP_KERNEL); in pkcs7_parse_message()
413 ctx->sinfo = kzalloc(sizeof(struct pkcs7_signed_info), GFP_KERNEL); in pkcs7_note_signed_info()
/linux-4.1.27/drivers/thermal/int340x_thermal/
Dacpi_thermal_rel.c99 trts = kzalloc(*trt_count * sizeof(struct trt), GFP_KERNEL); in acpi_parse_trt()
181 arts = kzalloc(*art_count * sizeof(struct art), GFP_KERNEL); in acpi_parse_art()
251 art_user = kzalloc(art_len, GFP_KERNEL); in fill_art()
287 trt_user = kzalloc(trt_len, GFP_KERNEL); in fill_trt()
/linux-4.1.27/drivers/gpu/drm/
Ddrm_plane_helper.c276 connector_list = kzalloc(num_connectors * sizeof(*connector_list), in drm_primary_helper_update()
352 primary = kzalloc(sizeof(*primary), GFP_KERNEL); in create_primary_plane()
531 plane_state = kzalloc(sizeof(*plane_state), GFP_KERNEL); in drm_plane_helper_update()
578 plane_state = kzalloc(sizeof(*plane_state), GFP_KERNEL); in drm_plane_helper_disable()
/linux-4.1.27/drivers/gpu/drm/ttm/
Dttm_bo_manager.c67 node = kzalloc(sizeof(*node), GFP_KERNEL); in ttm_bo_man_get_node()
113 rman = kzalloc(sizeof(*rman), GFP_KERNEL); in ttm_bo_man_init()
/linux-4.1.27/drivers/net/wireless/rt2x00/
Drt2x00soc.c58 rt2x00dev->eeprom = kzalloc(rt2x00dev->ops->eeprom_size, GFP_KERNEL); in rt2x00soc_alloc_reg()
62 rt2x00dev->rf = kzalloc(rt2x00dev->ops->rf_size, GFP_KERNEL); in rt2x00soc_alloc_reg()
Drt2x00pci.c58 rt2x00dev->eeprom = kzalloc(rt2x00dev->ops->eeprom_size, GFP_KERNEL); in rt2x00pci_alloc_reg()
62 rt2x00dev->rf = kzalloc(rt2x00dev->ops->rf_size, GFP_KERNEL); in rt2x00pci_alloc_reg()
/linux-4.1.27/drivers/input/serio/
Dq40kbd.c130 q40kbd = kzalloc(sizeof(struct q40kbd), GFP_KERNEL); in q40kbd_probe()
131 port = kzalloc(sizeof(struct serio), GFP_KERNEL); in q40kbd_probe()
Drpckbd.c130 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in rpckbd_probe()
131 rpckbd = kzalloc(sizeof(*rpckbd), GFP_KERNEL); in rpckbd_probe()
Dambakmi.c121 kmi = kzalloc(sizeof(struct amba_kmi_port), GFP_KERNEL); in amba_kmi_probe()
122 io = kzalloc(sizeof(struct serio), GFP_KERNEL); in amba_kmi_probe()
Dpcips2.c143 ps2if = kzalloc(sizeof(struct pcips2_data), GFP_KERNEL); in pcips2_probe()
144 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in pcips2_probe()
/linux-4.1.27/drivers/clk/mvebu/
Dclk-cpu.c188 cpuclk = kzalloc(ncpus * sizeof(*cpuclk), GFP_KERNEL); in of_cpu_clk_setup()
192 clks = kzalloc(ncpus * sizeof(*clks), GFP_KERNEL); in of_cpu_clk_setup()
200 char *clk_name = kzalloc(5, GFP_KERNEL); in of_cpu_clk_setup()
Dcommon.c129 clk_data.clks = kzalloc(clk_data.clk_num * sizeof(struct clk *), in mvebu_coreclk_setup()
262 ctrl = kzalloc(sizeof(*ctrl), GFP_KERNEL); in mvebu_clk_gating_setup()
276 ctrl->gates = kzalloc(ctrl->num_gates * sizeof(struct clk *), in mvebu_clk_gating_setup()
/linux-4.1.27/drivers/misc/altera-stapl/
Daltera.c307 vars = kzalloc(sym_count * sizeof(long), GFP_KERNEL); in altera_execute()
313 var_size = kzalloc(sym_count * sizeof(s32), GFP_KERNEL); in altera_execute()
320 attrs = kzalloc(sym_count, GFP_KERNEL); in altera_execute()
327 proc_attributes = kzalloc(proc_count, GFP_KERNEL); in altera_execute()
373 vars[i] = (long)kzalloc(uncomp_size, GFP_KERNEL); in altera_execute()
414 vars[i] = (long)kzalloc(size, GFP_KERNEL); in altera_execute()
1139 longptr_tmp = kzalloc(count * sizeof(long), in altera_execute()
1204 kzalloc(long_tmp, GFP_KERNEL); in altera_execute()
1357 charptr_tmp = kzalloc((long_count >> 3) + 1, in altera_execute()
1605 kzalloc(long_tmp, GFP_KERNEL); in altera_execute()
[all …]
/linux-4.1.27/lib/
Dassoc_array.c474 new_n0 = kzalloc(sizeof(struct assoc_array_node), GFP_KERNEL); in assoc_array_insert_in_empty_tree()
556 new_n0 = kzalloc(sizeof(struct assoc_array_node), GFP_KERNEL); in assoc_array_insert_into_terminal_node()
560 new_n1 = kzalloc(sizeof(struct assoc_array_node), GFP_KERNEL); in assoc_array_insert_into_terminal_node()
778 new_s0 = kzalloc(sizeof(struct assoc_array_shortcut) + in assoc_array_insert_into_terminal_node()
868 new_n0 = kzalloc(sizeof(struct assoc_array_node), GFP_KERNEL); in assoc_array_insert_mid_shortcut()
884 new_s0 = kzalloc(sizeof(struct assoc_array_shortcut) + in assoc_array_insert_mid_shortcut()
934 new_s1 = kzalloc(sizeof(struct assoc_array_shortcut) + in assoc_array_insert_mid_shortcut()
1013 edit = kzalloc(sizeof(struct assoc_array_edit), GFP_KERNEL); in assoc_array_insert()
1125 edit = kzalloc(sizeof(struct assoc_array_edit), GFP_KERNEL); in assoc_array_delete()
1241 new_n0 = kzalloc(sizeof(struct assoc_array_node), GFP_KERNEL); in assoc_array_delete()
[all …]
/linux-4.1.27/drivers/media/usb/go7007/
Ds2250-board.c173 buf = kzalloc(16, GFP_KERNEL); in write_reg()
207 buf = kzalloc(16, GFP_KERNEL); in write_reg_fp()
270 buf = kzalloc(16, GFP_KERNEL); in read_reg_fp()
508 state = kzalloc(sizeof(struct s2250), GFP_KERNEL); in s2250_probe()
570 data = kzalloc(16, GFP_KERNEL); in s2250_probe()
/linux-4.1.27/sound/core/
Dcontrol_compat.c100 data = kzalloc(sizeof(*data), GFP_KERNEL); in snd_ctl_elem_info_compat()
201 info = kzalloc(sizeof(*info), GFP_KERNEL); in get_ctl_type()
309 data = kzalloc(sizeof(*data), GFP_KERNEL); in ctl_elem_read_user()
338 data = kzalloc(sizeof(*data), GFP_KERNEL); in ctl_elem_write_user()
394 data = kzalloc(sizeof(*data), GFP_KERNEL); in snd_ctl_elem_add_compat()
/linux-4.1.27/drivers/scsi/bfa/
Dbfad_debugfs.c56 debug = kzalloc(sizeof(struct bfad_debug_info), GFP_KERNEL); in bfad_debugfs_open_drvtrc()
77 fw_debug = kzalloc(sizeof(struct bfad_debug_info), GFP_KERNEL); in bfad_debugfs_open_fwtrc()
121 fw_debug = kzalloc(sizeof(struct bfad_debug_info), GFP_KERNEL); in bfad_debugfs_open_fwsave()
161 reg_debug = kzalloc(sizeof(struct bfad_debug_info), GFP_KERNEL); in bfad_debugfs_open_reg()
281 bfad->regdata = kzalloc(len << 2, GFP_KERNEL); in bfad_debugfs_write_regrd()
/linux-4.1.27/drivers/infiniband/hw/usnic/
Dusnic_vnic.c228 ret = kzalloc(sizeof(*ret), GFP_ATOMIC); in usnic_vnic_get_resources()
235 ret->res = kzalloc(sizeof(*(ret->res))*cnt, GFP_ATOMIC); in usnic_vnic_get_resources()
299 chunk->res = kzalloc(sizeof(*(chunk->res))*cnt, GFP_KERNEL); in usnic_vnic_alloc_res_chunk()
304 res = kzalloc(sizeof(*res), GFP_KERNEL); in usnic_vnic_alloc_res_chunk()
437 vnic = kzalloc(sizeof(*vnic), GFP_KERNEL); in usnic_vnic_alloc()
/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/arch/arm/mach-omap2/
Dsr_device.c47 nvalue_table = kzalloc(sizeof(struct omap_sr_nvalue_table)*count, in sr_set_nvalues()
105 sr_data = kzalloc(sizeof(struct omap_sr_data), GFP_KERNEL); in sr_dev_init()
Dclkt2xxx_virt_prcm_set.c240 hw = kzalloc(sizeof(*hw), GFP_KERNEL); in omap2xxx_clkt_vps_init()
241 lookup = kzalloc(sizeof(*lookup), GFP_KERNEL); in omap2xxx_clkt_vps_init()
Dgpio.c52 pdata = kzalloc(sizeof(struct omap_gpio_platform_data), GFP_KERNEL); in omap2_gpio_dev_init()
62 pdata->regs = kzalloc(sizeof(struct omap_gpio_reg_offs), GFP_KERNEL); in omap2_gpio_dev_init()
/linux-4.1.27/net/nfc/hci/
Dllc.c59 llc_engine = kzalloc(sizeof(struct nfc_llc_engine), GFP_KERNEL); in nfc_llc_register()
113 llc = kzalloc(sizeof(struct nfc_llc), GFP_KERNEL); in nfc_llc_allocate()
/linux-4.1.27/drivers/media/pci/ivtv/
Divtv-queue.c206 s->sg_pending = kzalloc(SGsize, GFP_KERNEL|__GFP_NOWARN); in ivtv_stream_alloc()
213 s->sg_processing = kzalloc(SGsize, GFP_KERNEL|__GFP_NOWARN); in ivtv_stream_alloc()
222 s->sg_dma = kzalloc(sizeof(struct ivtv_sg_element), in ivtv_stream_alloc()
240 struct ivtv_buffer *buf = kzalloc(sizeof(struct ivtv_buffer), in ivtv_stream_alloc()
/linux-4.1.27/net/sctp/
Dendpointola.c67 ep->digest = kzalloc(SCTP_SIGNATURE_SIZE, gfp); in sctp_endpoint_init()
77 auth_hmacs = kzalloc(sizeof(sctp_hmac_algo_param_t) + in sctp_endpoint_init()
82 auth_chunks = kzalloc(sizeof(sctp_chunks_param_t) + in sctp_endpoint_init()
189 ep = kzalloc(sizeof(*ep), gfp); in sctp_endpoint_new()
/linux-4.1.27/sound/pci/ctxfi/
Dctvmem.c62 block = kzalloc(sizeof(*block), GFP_KERNEL); in get_vm_block()
184 vm = kzalloc(sizeof(*vm), GFP_KERNEL); in ct_vm_create()
209 block = kzalloc(sizeof(*block), GFP_KERNEL); in ct_vm_create()
Dctdaio.c166 entry = kzalloc((sizeof(*entry) * daio->rscl.msr), GFP_KERNEL); in dao_set_left_input()
195 entry = kzalloc((sizeof(*entry) * daio->rscr.msr), GFP_KERNEL); in dao_set_right_input()
401 dao->imappers = kzalloc(sizeof(void *)*desc->msr*2, GFP_KERNEL); in dao_rsc_init()
548 struct dao *dao = kzalloc(sizeof(*dao), GFP_KERNEL); in get_daio_rsc()
560 struct dai *dai = kzalloc(sizeof(*dai), GFP_KERNEL); in get_daio_rsc()
697 daio_mgr = kzalloc(sizeof(*daio_mgr), GFP_KERNEL); in daio_mgr_create()
708 entry = kzalloc(sizeof(*entry), GFP_KERNEL); in daio_mgr_create()
Dctamixer.c244 amixer = kzalloc(sizeof(*amixer), GFP_KERNEL); in get_amixer_rsc()
306 amixer_mgr = kzalloc(sizeof(*amixer_mgr), GFP_KERNEL); in amixer_mgr_create()
400 sum = kzalloc(sizeof(*sum), GFP_KERNEL); in get_sum_rsc()
461 sum_mgr = kzalloc(sizeof(*sum_mgr), GFP_KERNEL); in sum_mgr_create()
/linux-4.1.27/drivers/connector/
Dcn_queue.c42 cbq = kzalloc(sizeof(*cbq), GFP_KERNEL); in cn_queue_alloc_callback_entry()
130 dev = kzalloc(sizeof(*dev), GFP_KERNEL); in cn_queue_alloc_dev()
/linux-4.1.27/crypto/
Dgf128mul.c271 t = kzalloc(sizeof(*t), GFP_KERNEL); in gf128mul_init_64k_lle()
276 t->t[i] = kzalloc(sizeof(*t->t[i]), GFP_KERNEL); in gf128mul_init_64k_lle()
313 t = kzalloc(sizeof(*t), GFP_KERNEL); in gf128mul_init_64k_bbe()
318 t->t[i] = kzalloc(sizeof(*t->t[i]), GFP_KERNEL); in gf128mul_init_64k_bbe()
407 t = kzalloc(sizeof(*t), GFP_KERNEL); in gf128mul_init_4k_lle()
429 t = kzalloc(sizeof(*t), GFP_KERNEL); in gf128mul_init_4k_bbe()
/linux-4.1.27/drivers/scsi/bnx2fc/
Dbnx2fc_els.c75 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_NOIO); in bnx2fc_send_rrq()
151 buf = kzalloc(PAGE_SIZE, GFP_ATOMIC); in bnx2fc_l2_els_compl()
184 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC); in bnx2fc_send_adisc()
212 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC); in bnx2fc_send_logo()
240 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC); in bnx2fc_send_rls()
322 buf = kzalloc(PAGE_SIZE, GFP_ATOMIC); in bnx2fc_srr_compl()
447 buf = kzalloc(PAGE_SIZE, GFP_ATOMIC); in bnx2fc_rec_compl()
587 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC); in bnx2fc_send_rec()
628 cb_arg = kzalloc(sizeof(struct bnx2fc_els_cb_arg), GFP_ATOMIC); in bnx2fc_send_srr()
/linux-4.1.27/drivers/clk/at91/
Dclk-pll.c326 pll = kzalloc(sizeof(*pll), GFP_KERNEL); in at91_clk_register_pll()
413 characteristics = kzalloc(sizeof(*characteristics), GFP_KERNEL); in of_at91_clk_pll_get_characteristics()
417 output = kzalloc(sizeof(*output) * num_output, GFP_KERNEL); in of_at91_clk_pll_get_characteristics()
422 out = kzalloc(sizeof(*out) * num_output, GFP_KERNEL); in of_at91_clk_pll_get_characteristics()
428 icpll = kzalloc(sizeof(*icpll) * num_output, GFP_KERNEL); in of_at91_clk_pll_get_characteristics()
Dclk-slow.c135 osc = kzalloc(sizeof(*osc), GFP_KERNEL); in at91_clk_register_slow_osc()
247 osc = kzalloc(sizeof(*osc), GFP_KERNEL); in at91_clk_register_slow_rc_osc()
344 slowck = kzalloc(sizeof(*slowck), GFP_KERNEL); in at91_clk_register_sam9x5_slow()
423 slowck = kzalloc(sizeof(*slowck), GFP_KERNEL); in at91_clk_register_sam9260_slow()
/linux-4.1.27/arch/mips/include/asm/
Dclkdev.h24 return kzalloc(size, GFP_KERNEL); in __clkdev_alloc()
/linux-4.1.27/arch/blackfin/include/asm/
Dclkdev.h8 return kzalloc(size, GFP_KERNEL); in __clkdev_alloc()
/linux-4.1.27/drivers/crypto/qat/qat_common/
Dadf_cfg.c132 dev_cfg_data = kzalloc(sizeof(*dev_cfg_data), GFP_KERNEL); in adf_cfg_dev_add()
293 key_val = kzalloc(sizeof(*key_val), GFP_KERNEL); in adf_cfg_add_key_value_param()
340 sec = kzalloc(sizeof(*sec), GFP_KERNEL); in adf_cfg_section_add()
/linux-4.1.27/arch/arm/include/asm/
Dclkdev.h28 return kzalloc(size, GFP_KERNEL); in __clkdev_alloc()
/linux-4.1.27/arch/c6x/include/asm/
Dclkdev.h19 return kzalloc(size, GFP_KERNEL); in __clkdev_alloc()
/linux-4.1.27/arch/powerpc/lib/
Dalloc.c14 p = kzalloc(size, mask); in zalloc_maybe_bootmem()
/linux-4.1.27/drivers/extcon/
Dextcon.c612 edev = kzalloc(sizeof(*edev), GFP_KERNEL); in extcon_dev_allocate()
741 edev->cables = kzalloc(sizeof(struct extcon_cable) * in extcon_dev_register()
751 str = kzalloc(sizeof(char) * (strlen(buf) + 1), in extcon_dev_register()
792 edev->attrs_muex = kzalloc(sizeof(struct attribute *) * in extcon_dev_register()
799 edev->d_attrs_muex = kzalloc(sizeof(struct device_attribute) * in extcon_dev_register()
809 name = kzalloc(sizeof(char) * (strlen(buf) + 1), in extcon_dev_register()
835 kzalloc(sizeof(struct attribute_group *) * in extcon_dev_register()
/linux-4.1.27/drivers/hid/
Duhid.c79 ev = kzalloc(sizeof(*ev), GFP_KERNEL); in uhid_queue_event()
98 ev = kzalloc(sizeof(*ev), GFP_KERNEL); in uhid_hid_start()
209 ev = kzalloc(sizeof(*ev), GFP_KERNEL); in uhid_hid_get_report()
251 ev = kzalloc(sizeof(*ev), GFP_KERNEL); in uhid_hid_set_report()
334 ev = kzalloc(sizeof(*ev), GFP_KERNEL); in uhid_hid_output_raw()
401 compat = kzalloc(sizeof(*compat), GFP_KERNEL); in uhid_event_from_user()
605 uhid = kzalloc(sizeof(*uhid), GFP_KERNEL); in uhid_char_open()
Dhid-steelseries.c236 struct steelseries_srws1_data *drv_data = kzalloc(sizeof(*drv_data), GFP_KERNEL); in steelseries_srws1_probe()
272 led = kzalloc(sizeof(struct led_classdev)+name_sz, GFP_KERNEL); in steelseries_srws1_probe()
293 led = kzalloc(sizeof(struct led_classdev)+name_sz, GFP_KERNEL); in steelseries_srws1_probe()
/linux-4.1.27/drivers/usb/core/
Dconfig.c386 alt->endpoint = kzalloc(len, GFP_KERNEL); in usb_parse_interface()
578 config->intf_cache[i] = intfc = kzalloc(len, GFP_KERNEL); in usb_parse_configuration()
689 dev->config = kzalloc(length, GFP_KERNEL); in usb_get_configuration()
694 dev->rawdescriptors = kzalloc(length, GFP_KERNEL); in usb_get_configuration()
789 bos = kzalloc(sizeof(struct usb_bos_descriptor), GFP_KERNEL); in usb_get_bos_descriptor()
810 dev->bos = kzalloc(sizeof(struct usb_host_bos), GFP_KERNEL); in usb_get_bos_descriptor()
815 buffer = kzalloc(total_len, GFP_KERNEL); in usb_get_bos_descriptor()
/linux-4.1.27/include/asm-generic/
Dclkdev.h27 return kzalloc(size, GFP_KERNEL); in __clkdev_alloc()
/linux-4.1.27/arch/sh/include/asm/
Dclkdev.h25 return kzalloc(size, GFP_KERNEL); in __clkdev_alloc()
/linux-4.1.27/drivers/mtd/
Dofpart.c57 *pparts = kzalloc(nr_parts * sizeof(**pparts), GFP_KERNEL); in parse_ofpart_partitions()
139 *pparts = kzalloc(nr_parts * sizeof(*(*pparts)), GFP_KERNEL); in parse_ofoldpart_partitions()
Dsm_ftl.c71 kzalloc(sizeof(struct sm_sysfs_attribute), GFP_KERNEL); in sm_create_sysfs_attributes()
85 attributes = kzalloc(sizeof(struct attribute *) * (NUM_ATTRIBUTES + 1), in sm_create_sysfs_attributes()
92 attr_group = kzalloc(sizeof(struct attribute_group), GFP_KERNEL); in sm_create_sysfs_attributes()
1135 ftl = kzalloc(sizeof(struct sm_ftl), GFP_KERNEL); in sm_add_mtd()
1153 ftl->cis_buffer = kzalloc(SM_SECTOR_SIZE, GFP_KERNEL); in sm_add_mtd()
1158 ftl->zones = kzalloc(sizeof(struct ftl_zone) * ftl->zone_count, in sm_add_mtd()
1164 ftl->cache_data = kzalloc(ftl->block_size, GFP_KERNEL); in sm_add_mtd()
1173 trans = kzalloc(sizeof(struct mtd_blktrans_dev), GFP_KERNEL); in sm_add_mtd()
/linux-4.1.27/arch/x86/pci/
Dbus_numa.c83 info = kzalloc(sizeof(*info), GFP_KERNEL); in alloc_pci_root_info()
143 root_res = kzalloc(sizeof(*root_res), GFP_KERNEL); in update_res()
/linux-4.1.27/fs/udf/
Dialloc.c70 iinfo->i_ext.i_data = kzalloc(inode->i_sb->s_blocksize - in udf_new_inode()
75 iinfo->i_ext.i_data = kzalloc(inode->i_sb->s_blocksize - in udf_new_inode()
/linux-4.1.27/arch/ia64/include/asm/
Ddmi.h12 #define dmi_alloc(l) kzalloc(l, GFP_ATOMIC)
/linux-4.1.27/drivers/clk/
Dclk-gpio-gate.c102 clk_gpio = kzalloc(sizeof(struct clk_gpio), GFP_KERNEL); in clk_register_gpio_gate()
196 data = kzalloc(sizeof(struct clk_gpio_gate_delayed_register_data), in of_gpio_gate_clk_setup()
Dclk-mb86s7x.c211 crgclk = kzalloc(sizeof(*crgclk), GFP_KERNEL); in crg11_get()
240 crg11 = kzalloc(sizeof(*crg11), GFP_KERNEL); in crg_port_init()
335 clc = kzalloc(sizeof(*clc), GFP_KERNEL); in mb86s7x_clclk_register()
/linux-4.1.27/drivers/misc/ibmasm/
Dcommand.c41 cmd = kzalloc(sizeof(struct command), GFP_KERNEL); in ibmasm_new_command()
46 cmd->buffer = kzalloc(buffer_size, GFP_KERNEL); in ibmasm_new_command()
/linux-4.1.27/sound/firewire/
Dfcp.c47 buf = kzalloc(8, GFP_KERNEL); in avc_general_set_sig_fmt()
90 buf = kzalloc(8, GFP_KERNEL); in avc_general_get_sig_fmt()
146 buf = kzalloc(8, GFP_KERNEL); in avc_general_get_plug_info()
/linux-4.1.27/include/net/
Dnetlabel.h236 cache = kzalloc(sizeof(*cache), flags); in netlbl_secattr_cache_alloc()
271 return kzalloc(sizeof(struct netlbl_lsm_catmap), flags); in netlbl_catmap_alloc()
336 return kzalloc(sizeof(struct netlbl_lsm_secattr), flags); in netlbl_secattr_alloc()
/linux-4.1.27/arch/arm64/include/asm/
Ddmi.h29 #define dmi_alloc(l) kzalloc(l, GFP_KERNEL)
/linux-4.1.27/net/nfc/
Dllcp_commands.c107 tlv = kzalloc(2 + length, GFP_KERNEL); in nfc_llcp_build_tlv()
123 sdres = kzalloc(sizeof(struct nfc_llcp_sdp_tlv), GFP_KERNEL); in nfc_llcp_build_sdres_tlv()
152 sdreq = kzalloc(sizeof(struct nfc_llcp_sdp_tlv), GFP_KERNEL); in nfc_llcp_build_sdreq_tlv()
161 sdreq->tlv = kzalloc(sdreq->tlv_len + 1, GFP_KERNEL); in nfc_llcp_build_sdreq_tlv()
666 msg_data = kzalloc(len, GFP_KERNEL); in nfc_llcp_send_i_frame()
732 msg_data = kzalloc(len, GFP_KERNEL); in nfc_llcp_send_ui_frame()
/linux-4.1.27/drivers/regulator/
Ddbx500-prcmu.c192 rdebug.state_before_suspend = kzalloc(num_regulators, GFP_KERNEL); in ux500_regulator_debug_init()
196 rdebug.state_after_suspend = kzalloc(num_regulators, GFP_KERNEL); in ux500_regulator_debug_init()
/linux-4.1.27/security/tomoyo/
Dmemory.c74 void *ptr = kzalloc(size, GFP_NOFS); in tomoyo_commit_ok()
168 ptr = kzalloc(sizeof(*ptr) + len, GFP_NOFS); in tomoyo_get_name()
/linux-4.1.27/sound/core/seq/
Dseq_virmidi.c214 vmidi = kzalloc(sizeof(*vmidi), GFP_KERNEL); in snd_virmidi_input_open()
242 vmidi = kzalloc(sizeof(*vmidi), GFP_KERNEL); in snd_virmidi_output_open()
377 pinfo = kzalloc(sizeof(*pinfo), GFP_KERNEL); in snd_virmidi_dev_attach_seq()
514 rdev = kzalloc(sizeof(*rdev), GFP_KERNEL); in snd_virmidi_new()
/linux-4.1.27/security/selinux/ss/
Debitmap.c57 new = kzalloc(sizeof(*new), GFP_ATOMIC); in ebitmap_cpy()
165 e_iter = kzalloc(sizeof(*e_iter), GFP_ATOMIC); in ebitmap_netlbl_import()
302 new = kzalloc(sizeof(*new), GFP_ATOMIC); in ebitmap_set_bit()
400 tmp = kzalloc(sizeof(*tmp), GFP_KERNEL); in ebitmap_read()
Dhashtab.c19 p = kzalloc(sizeof(*p), GFP_KERNEL); in hashtab_create()
60 newnode = kzalloc(sizeof(*newnode), GFP_KERNEL); in hashtab_insert()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
Dfannil.c44 priv = kzalloc(sizeof(*priv), GFP_KERNEL); in nvkm_fannil_create()
/linux-4.1.27/drivers/gpu/drm/gma500/
Dcdv_intel_hdmi.c291 gma_encoder = kzalloc(sizeof(struct gma_encoder), GFP_KERNEL); in cdv_hdmi_init()
296 gma_connector = kzalloc(sizeof(struct gma_connector), in cdv_hdmi_init()
302 hdmi_priv = kzalloc(sizeof(struct mid_intel_hdmi_priv), GFP_KERNEL); in cdv_hdmi_init()
/linux-4.1.27/drivers/media/pci/saa7164/
Dsaa7164-buffer.c105 buf = kzalloc(sizeof(struct saa7164_buffer), GFP_KERNEL); in saa7164_buffer_alloc()
291 buf = kzalloc(sizeof(struct saa7164_user_buffer), GFP_KERNEL); in saa7164_buffer_alloc_user()
295 buf->data = kzalloc(len, GFP_KERNEL); in saa7164_buffer_alloc_user()
/linux-4.1.27/drivers/gpu/drm/udl/
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()
290 udl = kzalloc(sizeof(struct udl_device), GFP_KERNEL); in udl_driver_load()
/linux-4.1.27/drivers/net/wireless/p54/
Deeprom.c160 tmp = kzalloc(sizeof(*tmp), GFP_KERNEL); in p54_generate_band()
164 tmp->channels = kzalloc(sizeof(struct ieee80211_channel) * in p54_generate_band()
341 list = kzalloc(sizeof(*list), GFP_KERNEL); in p54_generate_channel_lists()
347 priv->survey = kzalloc(sizeof(struct survey_info) * max_channel_num, in p54_generate_channel_lists()
355 list->channels = kzalloc(sizeof(struct p54_channel_entry) * in p54_generate_channel_lists()
485 priv->curve_data = kzalloc(cd_len + sizeof(*priv->curve_data), in p54_convert_rev1()
552 priv->rssi_db = kzalloc(db_len + sizeof(*priv->rssi_db), GFP_KERNEL); in p54_parse_rssical()
962 eeprom = kzalloc(eeprom_size, GFP_KERNEL); in p54_read_eeprom()
/linux-4.1.27/fs/dlm/
Dconfig.c460 cl = kzalloc(sizeof(struct dlm_cluster), GFP_NOFS); in make_cluster()
462 sps = kzalloc(sizeof(struct dlm_spaces), GFP_NOFS); in make_cluster()
463 cms = kzalloc(sizeof(struct dlm_comms), GFP_NOFS); in make_cluster()
535 sp = kzalloc(sizeof(struct dlm_space), GFP_NOFS); in make_space()
537 nds = kzalloc(sizeof(struct dlm_nodes), GFP_NOFS); in make_space()
589 cm = kzalloc(sizeof(struct dlm_comm), GFP_NOFS); in make_comm()
627 nd = kzalloc(sizeof(struct dlm_node), GFP_NOFS); in make_node()
770 addr = kzalloc(sizeof(*addr), GFP_NOFS); in comm_addr_write()
/linux-4.1.27/drivers/net/wireless/
Dmwl8k.c2448 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in mwl8k_cmd_get_hw_spec_sta()
2513 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in mwl8k_cmd_get_hw_spec_ap()
2615 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in mwl8k_cmd_set_hw_spec()
2685 cmd = kzalloc(size, GFP_ATOMIC); in __mwl8k_cmd_mac_multicast_adr()
2729 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in mwl8k_cmd_get_stat()
2772 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in mwl8k_cmd_radio_control()
2830 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in mwl8k_cmd_rf_tx_power()
2871 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in mwl8k_cmd_tx_power()
2924 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in mwl8k_cmd_rf_antenna()
2954 cmd = kzalloc(sizeof(*cmd) + len, GFP_KERNEL); in mwl8k_cmd_set_beacon()
[all …]
/linux-4.1.27/drivers/base/regmap/
Dregmap-irq.c370 d = kzalloc(sizeof(*d), GFP_KERNEL); in regmap_add_irq_chip()
374 d->status_buf = kzalloc(sizeof(unsigned int) * chip->num_regs, in regmap_add_irq_chip()
379 d->mask_buf = kzalloc(sizeof(unsigned int) * chip->num_regs, in regmap_add_irq_chip()
384 d->mask_buf_def = kzalloc(sizeof(unsigned int) * chip->num_regs, in regmap_add_irq_chip()
390 d->wake_buf = kzalloc(sizeof(unsigned int) * chip->num_regs, in regmap_add_irq_chip()
/linux-4.1.27/sound/soc/intel/atom/sst/
Dsst.c459 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/arch/nios2/platform/
Dplatform.c26 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in nios2_soc_device_init()
/linux-4.1.27/net/xfrm/
Dxfrm_hash.c20 n = kzalloc(sz, GFP_KERNEL); in xfrm_hash_alloc()
/linux-4.1.27/drivers/mtd/onenand/
Donenand_bbt.c190 bbm->bbt = kzalloc(len, GFP_KERNEL); in onenand_scan_bbt()
238 this->bbm = kzalloc(sizeof(struct bbm_info), GFP_KERNEL); in onenand_default_bbt()
/linux-4.1.27/drivers/staging/unisys/visorutil/
Dmemregion_direct.c45 memregion = kzalloc(sizeof(*memregion), GFP_KERNEL | __GFP_NORETRY); in visor_memregion_create()
82 memregion = kzalloc(sizeof(*memregion), GFP_KERNEL|__GFP_NORETRY); in visor_memregion_create_overlapped()
/linux-4.1.27/drivers/firmware/efi/
Druntime-map.c120 entry = kzalloc(sizeof(*entry), GFP_KERNEL); in add_sysfs_runtime_map_entry()
179 map_entries = kzalloc(nr_efi_runtime_map * sizeof(entry), GFP_KERNEL); in efi_runtime_map_init()
Defivars.c456 new_entry = kzalloc(sizeof(*new_entry), GFP_KERNEL); in efivar_create()
590 attr = kzalloc(sizeof(*attr), GFP_KERNEL); in create_efivars_bin_attributes()
600 attr = kzalloc(sizeof(*attr), GFP_KERNEL); in create_efivars_bin_attributes()
659 entry = kzalloc(sizeof(*entry), GFP_KERNEL); in efivar_update_sysfs_entries()
679 entry = kzalloc(sizeof(*entry), GFP_KERNEL); in efivars_sysfs_callback()
/linux-4.1.27/drivers/mfd/
Dcros_ec_i2c.c55 in_buf = kzalloc(packet_len, GFP_KERNEL); in cros_ec_cmd_xfer_i2c()
66 out_buf = kzalloc(packet_len, GFP_KERNEL); in cros_ec_cmd_xfer_i2c()
/linux-4.1.27/drivers/staging/android/ion/
Dion_cma_heap.c60 info = kzalloc(sizeof(struct ion_cma_buffer_info), GFP_KERNEL); in ion_cma_allocate()
177 cma_heap = kzalloc(sizeof(struct ion_cma_heap), GFP_KERNEL); in ion_cma_heap_create()
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dvmwgfx_cmdbuf_res.c209 cres = kzalloc(sizeof(*cres), GFP_KERNEL); in vmw_cmdbuf_res_add()
289 man = kzalloc(sizeof(*man), GFP_KERNEL); in vmw_cmdbuf_res_man_create()
/linux-4.1.27/fs/nfsd/
Dblocklayout.c23 dev = kzalloc(sizeof(struct pnfs_block_deviceaddr) + in nfsd4_block_get_device_info_simple()
69 bex = kzalloc(sizeof(*bex), GFP_KERNEL); in nfsd4_block_proc_layoutget()
/linux-4.1.27/arch/xtensa/platforms/xtfpga/
Dsetup.c93 newfreq = kzalloc(sizeof(*newfreq) + sizeof(u32), GFP_KERNEL); in update_clock_frequency()
119 newmac = kzalloc(sizeof(*newmac) + MAC_LEN, GFP_KERNEL); in update_local_mac()
/linux-4.1.27/block/
Dbsg-lib.c96 buf->sg_list = kzalloc(sz, GFP_KERNEL); in bsg_map_buffer()
119 job = kzalloc(sizeof(struct bsg_job) + q->bsg_job_size, GFP_KERNEL); in bsg_create_job()
/linux-4.1.27/arch/arm/mach-imx/
Dmx31moboard-devboard.c200 phy = kzalloc(sizeof(*phy), GFP_KERNEL); in devboard_usbh1_init()
204 phy->otg = kzalloc(sizeof(struct usb_otg), GFP_KERNEL); in devboard_usbh1_init()
/linux-4.1.27/arch/mips/loongson/loongson-3/
Dplatform.c33 pdev = kzalloc(sizeof(struct platform_device), GFP_KERNEL); in loongson3_platform_init()
/linux-4.1.27/drivers/gpu/drm/tilcdc/
Dtilcdc_tfp410.c128 tfp410_encoder = kzalloc(sizeof(*tfp410_encoder), GFP_KERNEL); in tfp410_encoder_create()
240 tfp410_connector = kzalloc(sizeof(*tfp410_connector), GFP_KERNEL); in tfp410_connector_create()
325 tfp410_mod = kzalloc(sizeof(*tfp410_mod), GFP_KERNEL); in tfp410_probe()
Dtilcdc_slave.c125 slave_encoder = kzalloc(sizeof(*slave_encoder), GFP_KERNEL); in slave_encoder_create()
238 slave_connector = kzalloc(sizeof(*slave_connector), GFP_KERNEL); in slave_connector_create()
349 slave_mod = kzalloc(sizeof(*slave_mod), GFP_KERNEL); in slave_probe()
/linux-4.1.27/drivers/macintosh/
Dwindfarm_smu_sat.c218 sat = kzalloc(sizeof(struct wf_sat), GFP_KERNEL); in wf_sat_probe()
278 sens = kzalloc(sizeof(struct wf_sat_sensor) + 16, GFP_KERNEL); in wf_sat_probe()
305 sens = kzalloc(sizeof(struct wf_sat_sensor) + 16, GFP_KERNEL); in wf_sat_probe()
/linux-4.1.27/drivers/target/tcm_fc/
Dtfc_conf.c217 acl = kzalloc(sizeof(struct ft_node_acl), GFP_KERNEL); in ft_add_acl()
274 acl = kzalloc(sizeof(*acl), GFP_KERNEL); in ft_tpg_alloc_fabric_acl()
327 tpg = kzalloc(sizeof(*tpg), GFP_KERNEL); in ft_add_tpg()
418 ft_wwn = kzalloc(sizeof(*ft_wwn), GFP_KERNEL); in ft_add_wwn()
/linux-4.1.27/arch/sparc/kernel/
Dpci_common.c337 p = kzalloc(sizeof(*p), GFP_KERNEL); in pci_register_legacy_regions()
347 p = kzalloc(sizeof(*p), GFP_KERNEL); in pci_register_legacy_regions()
357 p = kzalloc(sizeof(*p), GFP_KERNEL); in pci_register_legacy_regions()
374 struct resource *rp = kzalloc(sizeof(*rp), GFP_KERNEL); in pci_register_iommu_region()
/linux-4.1.27/drivers/i2c/
Di2c-boardinfo.c74 devinfo = kzalloc(sizeof(*devinfo), GFP_KERNEL); in i2c_register_board_info()
/linux-4.1.27/drivers/ipack/carriers/
Dtpci200.c220 slot_irq = kzalloc(sizeof(struct slot_irq), GFP_KERNEL); in tpci200_request_irq()
460 tpci200->slots = kzalloc( in tpci200_install()
486 kzalloc(sizeof(struct ipack_device), GFP_KERNEL); in tpci200_create_device()
520 tpci200 = kzalloc(sizeof(struct tpci200_board), GFP_KERNEL); in tpci200_pci_probe()
524 tpci200->info = kzalloc(sizeof(struct tpci200_infos), GFP_KERNEL); in tpci200_pci_probe()
/linux-4.1.27/drivers/infiniband/hw/ocrdma/
Docrdma_main.c310 dev->sgid_tbl = kzalloc(sizeof(union ib_gid) * in ocrdma_alloc_resources()
316 dev->cq_tbl = kzalloc(sizeof(struct ocrdma_cq *) * in ocrdma_alloc_resources()
322 dev->qp_tbl = kzalloc(sizeof(struct ocrdma_qp *) * in ocrdma_alloc_resources()
328 dev->stag_arr = kzalloc(sizeof(u64) * OCRDMA_MAX_STAG, GFP_KERNEL); in ocrdma_alloc_resources()
465 dev->mbx_cmd = kzalloc(sizeof(struct ocrdma_mqe_emb_cmd), GFP_KERNEL); in ocrdma_add()
/linux-4.1.27/drivers/base/power/
Dqos.c190 qos = kzalloc(sizeof(*qos), GFP_KERNEL); in dev_pm_qos_constraints_allocate()
194 n = kzalloc(sizeof(*n), GFP_KERNEL); in dev_pm_qos_constraints_allocate()
650 req = kzalloc(sizeof(*req), GFP_KERNEL); in dev_pm_qos_expose_latency_limit()
726 req = kzalloc(sizeof(*req), GFP_KERNEL); in dev_pm_qos_expose_flags()
862 req = kzalloc(sizeof(*req), GFP_KERNEL); in dev_pm_qos_update_user_latency_tolerance()
/linux-4.1.27/net/ceph/
Dsnapshot.c50 snapc = kzalloc(size, gfp_flags); in ceph_create_snap_context()
/linux-4.1.27/sound/soc/
Dsoc-cache.c35 codec->reg_cache = kzalloc(reg_size, GFP_KERNEL); in snd_soc_cache_init()

12345678910>>...24