Home
last modified time | relevance | path

Searched refs:kzalloc (Results 1 – 25 of 4163) sorted by relevance

12345678910>>...167

/linux-3.4.99/drivers/net/wireless/wl1251/
Dacx.c20 rates = kzalloc(sizeof(*rates), GFP_KERNEL); in wl1251_acx_frame_rates()
51 mac = kzalloc(sizeof(*mac), GFP_KERNEL); in wl1251_acx_station_id()
76 default_key = kzalloc(sizeof(*default_key), GFP_KERNEL); in wl1251_acx_default_key()
106 wake_up = kzalloc(sizeof(*wake_up), GFP_KERNEL); in wl1251_acx_wake_up_conditions()
134 auth = kzalloc(sizeof(*auth), GFP_KERNEL); in wl1251_acx_sleep_auth()
156 rev = kzalloc(sizeof(*rev), GFP_KERNEL); in wl1251_acx_fw_version()
193 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_tx_power()
219 feature = kzalloc(sizeof(*feature), GFP_KERNEL); in wl1251_acx_feature_cfg()
263 params = kzalloc(sizeof(*params), GFP_KERNEL); in wl1251_acx_data_path_params()
311 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()
262 join = kzalloc(sizeof(*join), GFP_KERNEL); in wl1251_cmd_join()
316 ps_params = kzalloc(sizeof(*ps_params), GFP_KERNEL); in wl1251_cmd_ps_mode()
348 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl1251_cmd_read_memory()
393 cmd = kzalloc(cmd_len, GFP_KERNEL); in wl1251_cmd_template_set()
424 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl1251_cmd_scan()
481 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl1251_cmd_trigger_scan_to()
/linux-3.4.99/drivers/net/wireless/wl12xx/
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()
101 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_tx_power()
128 feature = kzalloc(sizeof(*feature), GFP_KERNEL); in wl1271_acx_feature_cfg()
172 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_rx_msdu_life_time()
199 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in wl1271_acx_slot()
228 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_group_address_tbl()
258 rx_timeout = kzalloc(sizeof(*rx_timeout), GFP_KERNEL); in wl1271_acx_service_period_timeout()
298 rts = kzalloc(sizeof(*rts), GFP_KERNEL); in wl1271_acx_rts_threshold()
326 dco = kzalloc(sizeof(*dco), GFP_KERNEL); in wl1271_acx_dco_itrim_params()
[all …]
Dcmd.c129 gen_parms = kzalloc(sizeof(*gen_parms), GFP_KERNEL); in wl1271_cmd_general_parms()
182 gen_parms = kzalloc(sizeof(*gen_parms), GFP_KERNEL); in wl128x_cmd_general_parms()
230 radio_parms = kzalloc(sizeof(*radio_parms), GFP_KERNEL); in wl1271_cmd_radio_parms()
272 radio_parms = kzalloc(sizeof(*radio_parms), GFP_KERNEL); in wl128x_cmd_radio_parms()
315 ext_radio_parms = kzalloc(sizeof(*ext_radio_parms), GFP_KERNEL); in wl1271_cmd_ext_radio_parms()
395 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl12xx_cmd_role_enable()
437 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl12xx_cmd_role_disable()
515 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl12xx_cmd_role_start_dev()
567 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl12xx_cmd_role_stop_dev()
606 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in wl12xx_cmd_role_start_sta()
[all …]
/linux-3.4.99/scripts/coccinelle/api/alloc/
Ddrop_kmalloc_cast.cocci10 // Keywords: kmalloc, kzalloc, kcalloc
13 // Version min: 2.6.14 kzalloc
30 \(kmalloc\|kzalloc\|kcalloc\)(...)
41 \(kmalloc\|kzalloc\|kcalloc\)(...)
52 (T@p *)\(kmalloc\|kzalloc\|kcalloc\)(...)
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)
/linux-3.4.99/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);
/linux-3.4.99/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-3.4.99/net/irda/
Dirias_object.c53 obj = kzalloc(sizeof(struct ias_object), GFP_ATOMIC); in irias_new_object()
323 attrib = kzalloc(sizeof(struct ias_attrib), GFP_ATOMIC); in irias_add_integer_attrib()
367 attrib = kzalloc(sizeof(struct ias_attrib), GFP_ATOMIC); in irias_add_octseq_attrib()
409 attrib = kzalloc(sizeof( struct ias_attrib), GFP_ATOMIC); in irias_add_string_attrib()
444 value = kzalloc(sizeof(struct ias_value), GFP_ATOMIC); in irias_new_integer_value()
469 value = kzalloc(sizeof(struct ias_value), GFP_ATOMIC); in irias_new_string_value()
500 value = kzalloc(sizeof(struct ias_value), GFP_ATOMIC); in irias_new_octseq_value()
525 value = kzalloc(sizeof(struct ias_value), GFP_ATOMIC); in irias_new_missing_value()
/linux-3.4.99/drivers/net/ethernet/brocade/bna/
Dbnad_debugfs.c55 fw_debug = kzalloc(sizeof(struct bnad_debug_info), GFP_KERNEL); in bnad_debugfs_open_fwtrc()
61 fw_debug->debug_buffer = kzalloc(fw_debug->buffer_len, GFP_KERNEL); in bnad_debugfs_open_fwtrc()
96 fw_debug = kzalloc(sizeof(struct bnad_debug_info), GFP_KERNEL); in bnad_debugfs_open_fwsave()
102 fw_debug->debug_buffer = kzalloc(fw_debug->buffer_len, GFP_KERNEL); in bnad_debugfs_open_fwsave()
134 reg_debug = kzalloc(sizeof(struct bnad_debug_info), GFP_KERNEL); in bnad_debugfs_open_reg()
197 drv_info = kzalloc(sizeof(struct bnad_debug_info), GFP_KERNEL); in bnad_debugfs_open_drvinfo()
203 drv_info->debug_buffer = kzalloc(drv_info->buffer_len, GFP_KERNEL); in bnad_debugfs_open_drvinfo()
344 kern_buf = kzalloc(nbytes, GFP_KERNEL); in bnad_debugfs_write_regrd()
366 bnad->regdata = kzalloc(len << 2, GFP_KERNEL); in bnad_debugfs_write_regrd()
411 kern_buf = kzalloc(nbytes, GFP_KERNEL); in bnad_debugfs_write_regwr()
/linux-3.4.99/drivers/staging/tidspbridge/core/
Dmsg_sm.c64 msg_mgr_obj = kzalloc(sizeof(struct msg_mgr), GFP_KERNEL); in bridge_msg_create()
86 kzalloc(sizeof(struct sync_object), GFP_KERNEL); in bridge_msg_create()
116 msg_q = kzalloc(sizeof(struct msg_queue), GFP_KERNEL); in bridge_msg_create_queue()
130 msg_q->sync_event = kzalloc(sizeof(struct sync_object), GFP_KERNEL); in bridge_msg_create_queue()
151 msg_q->sync_done = kzalloc(sizeof(struct sync_object), GFP_KERNEL); in bridge_msg_create_queue()
158 msg_q->sync_done_ack = kzalloc(sizeof(struct sync_object), GFP_KERNEL); in bridge_msg_create_queue()
488 pmsg = kzalloc(sizeof(struct msg_frame), GFP_ATOMIC); in add_new_msg()
/linux-3.4.99/drivers/base/regmap/
Dregmap-irq.c191 d = kzalloc(sizeof(*d), GFP_KERNEL); in regmap_add_irq_chip()
195 d->status_buf = kzalloc(sizeof(unsigned int) * chip->num_regs, in regmap_add_irq_chip()
200 d->status_reg_buf = kzalloc(map->format.val_bytes * chip->num_regs, in regmap_add_irq_chip()
205 d->mask_buf = kzalloc(sizeof(unsigned int) * chip->num_regs, in regmap_add_irq_chip()
210 d->mask_buf_def = kzalloc(sizeof(unsigned int) * chip->num_regs, in regmap_add_irq_chip()
/linux-3.4.99/arch/powerpc/platforms/pseries/
Dmobility.c86 char *new_data = kzalloc(new_prop->length + vd, GFP_KERNEL); in update_dt_property()
97 new_prop = kzalloc(sizeof(*new_prop), GFP_KERNEL); in update_dt_property()
108 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()
239 rtas_buf = kzalloc(RTAS_DATA_BUF_SIZE, GFP_KERNEL); in pseries_devicetree_update()
/linux-3.4.99/drivers/pci/hotplug/
Dibmphp_pci.c167 newfunc = kzalloc(sizeof(*newfunc), GFP_KERNEL); in ibmphp_configure_card()
205 newfunc = kzalloc(sizeof(*newfunc), GFP_KERNEL); in ibmphp_configure_card()
233 newfunc = kzalloc(sizeof(*newfunc), GFP_KERNEL); in ibmphp_configure_card()
279 newfunc = kzalloc(sizeof(*newfunc), GFP_KERNEL); in ibmphp_configure_card()
404 io[count] = kzalloc(sizeof(struct resource_node), GFP_KERNEL); in configure_device()
442 pfmem[count] = kzalloc(sizeof(struct resource_node), GFP_KERNEL); in configure_device()
457 mem_tmp = kzalloc(sizeof(*mem_tmp), GFP_KERNEL); in configure_device()
508 mem[count] = kzalloc(sizeof(struct resource_node), GFP_KERNEL); in configure_device()
672 bus_io[count] = kzalloc(sizeof(struct resource_node), GFP_KERNEL); in configure_bridge()
705 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()
/linux-3.4.99/drivers/staging/tidspbridge/rmgr/
Drmm.c129 new_sect = kzalloc(sizeof(struct rmm_ovly_sect), GFP_KERNEL); in rmm_alloc()
163 target = kzalloc(sizeof(struct rmm_target_obj), GFP_KERNEL); in rmm_create()
176 target->free_list = kzalloc(num_segs * sizeof(struct rmm_header *), in rmm_create()
184 kzalloc(sizeof(struct rmm_header), GFP_KERNEL); in rmm_create()
191 target->seg_tab = kzalloc(num_segs * sizeof(struct rmm_segment), in rmm_create()
412 rhead = kzalloc(sizeof(struct rmm_header), GFP_KERNEL); in free_block()
/linux-3.4.99/arch/mips/alchemy/devboards/
Dplatform.c73 sr = kzalloc(sizeof(struct resource) * cnt, GFP_KERNEL); in db1x_register_pcmcia_socket()
148 parts = kzalloc(sizeof(struct mtd_partition) * 5, GFP_KERNEL); in db1x_register_norflash()
152 res = kzalloc(sizeof(struct resource), GFP_KERNEL); in db1x_register_norflash()
156 pfd = kzalloc(sizeof(struct physmap_flash_data), GFP_KERNEL); in db1x_register_norflash()
/linux-3.4.99/drivers/staging/tidspbridge/gen/
Dgh.c49 hash_tab = kzalloc(sizeof(struct gh_t_hash_tab), GFP_KERNEL); in gh_create()
59 kzalloc(sizeof(struct element *) * max_bucket, GFP_KERNEL); in gh_create()
125 elem = kzalloc(sizeof(struct element) - 1 + hash_tab->val_size, in gh_insert()
/linux-3.4.99/net/mac80211/
Dled.c72 local->rx_led = kzalloc(sizeof(struct led_trigger), GFP_KERNEL); in ieee80211_led_init()
81 local->tx_led = kzalloc(sizeof(struct led_trigger), GFP_KERNEL); in ieee80211_led_init()
90 local->assoc_led = kzalloc(sizeof(struct led_trigger), GFP_KERNEL); in ieee80211_led_init()
99 local->radio_led = kzalloc(sizeof(struct led_trigger), GFP_KERNEL); in ieee80211_led_init()
230 tpt_trig = kzalloc(sizeof(struct tpt_led_trigger), GFP_KERNEL); in __ieee80211_create_tpt_led_trigger()
/linux-3.4.99/drivers/input/
Dof_keymap.c54 kd = kzalloc(sizeof(*kd), GFP_KERNEL); in matrix_keyboard_of_fill_keymap()
58 kd->keymap = keymap = kzalloc(proplen, GFP_KERNEL); in matrix_keyboard_of_fill_keymap()
/linux-3.4.99/drivers/media/video/
Dvideobuf2-dma-contig.c42 buf = kzalloc(sizeof *buf, GFP_KERNEL); in vb2_dma_contig_alloc()
122 buf = kzalloc(sizeof *buf, GFP_KERNEL); in vb2_dma_contig_get_userptr()
168 conf = kzalloc(sizeof *conf, GFP_KERNEL); in vb2_dma_contig_init_ctx()
/linux-3.4.99/drivers/gpio/
Dgpio-ge.c114 gef_gpio_chip = kzalloc(sizeof(*gef_gpio_chip), GFP_KERNEL); in gef_gpio_init()
142 gef_gpio_chip = kzalloc(sizeof(*gef_gpio_chip), GFP_KERNEL); in gef_gpio_init()
170 gef_gpio_chip = kzalloc(sizeof(*gef_gpio_chip), GFP_KERNEL); in gef_gpio_init()
/linux-3.4.99/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()
285 kern_buf = kzalloc(nbytes, GFP_KERNEL); in bfad_debugfs_write_regrd()
312 bfad->regdata = kzalloc(len << 2, GFP_KERNEL); in bfad_debugfs_write_regrd()
361 kern_buf = kzalloc(nbytes, GFP_KERNEL); in bfad_debugfs_write_regwr()
/linux-3.4.99/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-3.4.99/drivers/gpu/drm/exynos/
Dexynos_drm_buf.c65 buf->sgt = kzalloc(sizeof(struct sg_table), GFP_KERNEL); in lowlevel_buffer_allocate()
87 buf->pages = kzalloc(sizeof(struct page) * npages, GFP_KERNEL); in lowlevel_buffer_allocate()
170 buffer = kzalloc(sizeof(*buffer), GFP_KERNEL); in exynos_drm_init_buf()

12345678910>>...167