Home
last modified time | relevance | path

Searched refs:memset (Results 1 – 25 of 3876) sorted by relevance

12345678910>>...156

/linux/drivers/scsi/qla4xxx/
A Dql4_mbx.c290 memset(&mbox_cmd, 0, sizeof(mbox_cmd)); in qla4xxx_get_minidump_template()
291 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_get_minidump_template()
321 memset(&mbox_cmd, 0, sizeof(mbox_cmd)); in qla4xxx_req_template_size()
322 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_req_template_size()
637 memset(&mbox_cmd, 0, sizeof(mbox_cmd)); in qla4xxx_initialize_fw_cb()
638 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_initialize_fw_cb()
746 memset(&mbox_cmd, 0, sizeof(mbox_cmd)); in qla4xxx_get_firmware_state()
747 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_get_firmware_state()
777 memset(&mbox_cmd, 0, sizeof(mbox_cmd)); in qla4xxx_get_firmware_status()
778 memset(&mbox_sts, 0, sizeof(mbox_sts)); in qla4xxx_get_firmware_status()
[all …]
/linux/drivers/gpu/drm/amd/display/modules/hdcp/
A Dhdcp.c204 memset(&hdcp->state, 0, sizeof(struct mod_hdcp_state)); in reset_authentication()
239 memset(output, 0, sizeof(struct mod_hdcp_output)); in reset_connection()
249 memset(&hdcp->connection, 0, sizeof(hdcp->connection)); in reset_connection()
268 memset(&output, 0, sizeof(output)); in mod_hdcp_setup()
283 memset(&output, 0, sizeof(output)); in mod_hdcp_teardown()
286 memset(hdcp, 0, sizeof(struct mod_hdcp)); in mod_hdcp_teardown()
300 memset(output, 0, sizeof(struct mod_hdcp_output)); in mod_hdcp_add_display()
358 memset(output, 0, sizeof(struct mod_hdcp_output)); in mod_hdcp_remove_display()
382 memset(display, 0, sizeof(struct mod_hdcp_display)); in mod_hdcp_remove_display()
404 memset(output, 0, sizeof(struct mod_hdcp_output)); in mod_hdcp_update_authentication()
[all …]
/linux/tools/lib/bpf/
A Dbpf.c94 memset(&attr, '\0', sizeof(attr)); in libbpf__bpf_create_map_xattr()
268 memset(&attr, 0, sizeof(attr)); in libbpf__bpf_prog_load()
440 memset(&attr, 0, sizeof(attr)); in bpf_verify_program()
462 memset(&attr, 0, sizeof(attr)); in bpf_map_update_elem()
477 memset(&attr, 0, sizeof(attr)); in bpf_map_lookup_elem()
491 memset(&attr, 0, sizeof(attr)); in bpf_map_lookup_elem_flags()
506 memset(&attr, 0, sizeof(attr)); in bpf_map_lookup_and_delete_elem()
520 memset(&attr, 0, sizeof(attr)); in bpf_map_lookup_and_delete_elem_flags()
535 memset(&attr, 0, sizeof(attr)); in bpf_map_delete_elem()
548 memset(&attr, 0, sizeof(attr)); in bpf_map_get_next_key()
[all …]
/linux/samples/bpf/
A Dxdp_router_ipv4_user.c309 memset(gws, 0, sizeof(gws)); in read_route()
310 memset(ifs, 0, sizeof(ifs)); in read_route()
337 memset(&sa, 0, sizeof(sa)); in get_route_table()
344 memset(&req, 0, sizeof(req)); in get_route_table()
353 memset(&msg, 0, sizeof(msg)); in get_route_table()
364 memset(buf, 0, sizeof(buf)); in get_route_table()
487 memset(&sa, 0, sizeof(sa)); in get_arp_table()
494 memset(&req, 0, sizeof(req)); in get_arp_table()
513 memset(buf, 0, sizeof(buf)); in get_arp_table()
551 memset(&lr, 0, sizeof(lr)); in monitor_route()
[all …]
/linux/scripts/coccinelle/api/alloc/
A Dzalloc-simple.cocci41 * memset((T2)x,0,E1);
128 - memset((T2)x,0,E1);
154 memset((T2)x,0,E1);
184 memset((T2)x,0,E1);
214 memset((T2)x,0,E2);
244 memset((T2)x,0,E1);
274 memset((T2)x,0,E1);
304 memset((T2)x,0,E1);
334 memset((T2)x,0,E1);
364 memset((T2)x,0,E1);
[all …]
A Dpool_zalloc-simple.cocci3 /// Use *_pool_zalloc rather than *_pool_alloc followed by memset with 0
27 * memset(x,0, ...);
42 - memset(x,0,...);
53 - memset(x,0,...);
68 memset(x,0, ...);
84 msg="WARNING: *_pool_zalloc should be used for %s, instead of *_pool_alloc/memset" % (x)
/linux/lib/
A Dtest_user_copy.c81 memset(kmem, 0x0, size); in test_check_nonzero_user()
123 memset(umem_src, 0x3e, size); in test_copy_struct_from_user()
133 memset(kmem, 0x0, size); in test_copy_struct_from_user()
144 memset(expected + usize, 0x0, ksize - usize); in test_copy_struct_from_user()
146 memset(kmem, 0x0, size); in test_copy_struct_from_user()
156 memset(kmem, 0x0, size); in test_copy_struct_from_user()
168 memset(kmem, 0x0, size); in test_copy_struct_from_user()
213 memset(kmem, 0x3a, PAGE_SIZE * 2); in test_user_copy_init()
216 memset(kmem, 0x0, PAGE_SIZE); in test_user_copy_init()
257 memset(kmem, 0x5a, PAGE_SIZE); in test_user_copy_init()
[all …]
/linux/drivers/net/wireless/marvell/mwifiex/
A Dinit.c110 memset(&priv->prev_ssid, 0, sizeof(priv->prev_ssid)); in mwifiex_init_priv()
111 memset(&priv->prev_bssid, 0, sizeof(priv->prev_bssid)); in mwifiex_init_priv()
112 memset(&priv->assoc_rsp_buf, 0, sizeof(priv->assoc_rsp_buf)); in mwifiex_init_priv()
134 memset(&priv->wpa_ie, 0, sizeof(priv->wpa_ie)); in mwifiex_init_priv()
135 memset(&priv->aes_key, 0, sizeof(priv->aes_key)); in mwifiex_init_priv()
141 memset(&priv->wps, 0, sizeof(priv->wps)); in mwifiex_init_priv()
142 memset(&priv->gen_ie_buf, 0, sizeof(priv->gen_ie_buf)); in mwifiex_init_priv()
144 memset(priv->vs_ie, 0, sizeof(priv->vs_ie)); in mwifiex_init_priv()
154 memset(&priv->roc_cfg, 0, sizeof(priv->roc_cfg)); in mwifiex_init_priv()
289 memset(sleep_cfm_buf, 0, adapter->sleep_cfm->len); in mwifiex_init_adapter()
[all …]
/linux/arch/sh/lib/
A DMakefile27 memset-y := memset.o
28 memset-$(CONFIG_CPU_SH4) := memset-sh4.o
32 lib-y += $(memcpy-y) $(memset-y) $(udivsi3-y)
/linux/tools/testing/selftests/bpf/prog_tests/
A Dtcp_hdr_options.c178 memset(sk_fds, -1, sizeof(*sk_fds)); in sk_fds_connect()
299 memset(&skel->bss->passive_fin_out, 0, optsize); in reset_test()
302 memset(&skel->bss->passive_fin_in, 0, optsize); in reset_test()
304 memset(&skel->bss->active_syn_out, 0, optsize); in reset_test()
305 memset(&skel->bss->active_fin_out, 0, optsize); in reset_test()
307 memset(&skel->bss->active_estab_in, 0, optsize); in reset_test()
308 memset(&skel->bss->active_fin_in, 0, optsize); in reset_test()
315 memset(&exp_passive_estab_in, 0, optsize); in reset_test()
316 memset(&exp_active_estab_in, 0, optsize); in reset_test()
317 memset(&exp_passive_fin_in, 0, optsize); in reset_test()
[all …]
/linux/drivers/staging/rtl8192e/
A Ddot11d.c46 memset(dot11d_info->channel_map, 0, MAX_CHANNEL_NUMBER + 1); in dot11d_init()
47 memset(dot11d_info->max_tx_power_list, 0xFF, MAX_CHANNEL_NUMBER + 1); in dot11d_init()
59 memset(GET_DOT11D_INFO(ieee)->channel_map, 0, in dot11d_channel_map()
99 memset(dot11d_info->channel_map, 0, MAX_CHANNEL_NUMBER + 1); in dot11d_reset()
100 memset(dot11d_info->max_tx_power_list, 0xFF, MAX_CHANNEL_NUMBER + 1); in dot11d_reset()
117 memset(dot11d_info->channel_map, 0, MAX_CHANNEL_NUMBER + 1); in dot11d_update_country()
118 memset(dot11d_info->max_tx_power_list, 0xFF, MAX_CHANNEL_NUMBER + 1); in dot11d_update_country()
/linux/scripts/coccinelle/api/
A Dkfree_sensitive.cocci3 /// Use kfree_sensitive, kvfree_sensitive rather than memset or
20 # kmalloc_oob_in_memset uses memset to explicitly trigger out-of-bounds access
32 \(memset@ok\|memzero_explicit@ok\)(...);
42 * memset@m((T)E, 0, ...);
75 - memset@m((T)E, 0, size);
91 msg = "WARNING opportunity for kfree_sensitive/kvfree_sensitive (memset at line %s)"
99 msg = "WARNING opportunity for kfree_sensitive/kvfree_sensitive (memset at line %s)"
/linux/drivers/net/ethernet/marvell/prestera/
A Dprestera_flower.c21 memset(&a_entry, 0, sizeof(a_entry)); in prestera_flower_parse_actions()
141 memset(&m_entry, 0, sizeof(m_entry)); in prestera_flower_parse()
150 memset(&m_entry, 0, sizeof(m_entry)); in prestera_flower_parse()
167 memset(&m_entry, 0, sizeof(m_entry)); in prestera_flower_parse()
178 memset(&m_entry, 0, sizeof(m_entry)); in prestera_flower_parse()
194 memset(&m_entry, 0, sizeof(m_entry)); in prestera_flower_parse()
204 memset(&m_entry, 0, sizeof(m_entry)); in prestera_flower_parse()
227 memset(&m_entry, 0, sizeof(m_entry)); in prestera_flower_parse()
235 memset(&m_entry, 0, sizeof(m_entry)); in prestera_flower_parse()
259 memset(&m_entry, 0, sizeof(m_entry)); in prestera_flower_parse()
[all …]
/linux/drivers/soc/tegra/
A Dpowergate-bpmp.c38 memset(&request, 0, sizeof(request)); in tegra_bpmp_powergate_set_state()
43 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_powergate_set_state()
65 memset(&request, 0, sizeof(request)); in tegra_bpmp_powergate_get_state()
69 memset(&response, 0, sizeof(response)); in tegra_bpmp_powergate_get_state()
71 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_powergate_get_state()
94 memset(&request, 0, sizeof(request)); in tegra_bpmp_powergate_get_max_id()
97 memset(&response, 0, sizeof(response)); in tegra_bpmp_powergate_get_max_id()
99 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_powergate_get_max_id()
123 memset(&request, 0, sizeof(request)); in tegra_bpmp_powergate_get_name()
127 memset(&response, 0, sizeof(response)); in tegra_bpmp_powergate_get_name()
[all …]
/linux/drivers/scsi/mpt3sas/
A Dmpt3sas_config.c315 memset(&mem, 0, sizeof(struct config_request)); in _config_request()
344 memset(config_page, 0, config_page_sz); in _config_request()
520 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_manufacturing_pg0()
558 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_manufacturing_pg7()
595 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_manufacturing_pg10()
632 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_manufacturing_pg11()
669 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_set_manufacturing_pg11()
705 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_bios_pg2()
2208 memset(&tg_pg2.MPIEventTriggers[0], 0, in mpt3sas_config_update_driver_trigger_pg2()
2367 memset(&tg_pg3.SCSISenseTriggers[0], 0, in mpt3sas_config_update_driver_trigger_pg3()
[all …]
/linux/drivers/scsi/elx/libefc/
A Defc_els.c504 memset(pp, 0, sizeof(*pp)); in efc_send_prli()
545 memset(logo, 0, sizeof(*logo)); in efc_send_logo()
607 memset(req, 0, sizeof(*req)); in efc_send_scr()
636 memset(rjt, 0, sizeof(*rjt)); in efc_send_ls_rjt()
737 memset(pp, 0, sizeof(*pp)); in efc_send_prli_acc()
779 memset(pp, 0, sizeof(*pp)); in efc_send_prlo_acc()
812 memset(acc, 0, sizeof(*acc)); in efc_send_ls_acc()
921 memset(ct, 0, sizeof(*ct)); in efc_ns_send_rftid()
958 memset(ct, 0, sizeof(*ct)); in efc_ns_send_rffid()
999 memset(ct, 0, sizeof(*ct)); in efc_ns_send_gidpt()
[all …]
/linux/net/openvswitch/
A Dflow.c134 memset(ovs_stats, 0, sizeof(*ovs_stats)); in ovs_flow_stats_get()
520 memset(key->nsh.context, 0, in parse_nsh()
549 memset(&key->ip, 0, sizeof(key->ip)); in key_extract_l3l4()
569 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
586 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
595 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
603 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
614 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
642 memset(&key->ip, 0, sizeof(key->ip)); in key_extract_l3l4()
682 memset(&key->ip, 0, sizeof(key->ip)); in key_extract_l3l4()
[all …]
/linux/tools/testing/selftests/net/af_unix/
A Dtest_unix_oob.c98 memset(buf, size, '0'); in read_data()
122 memset(buf, 'x', sizeof(buf)); in producer()
136 memset(buf, 'x', sizeof(buf)); in producer()
143 memset(buf, 'x', sizeof(buf)); in producer()
147 memset(buf, 'x', sizeof(buf)); in producer()
154 memset(buf, 'x', sizeof(buf)); in producer()
158 memset(buf, 'x', sizeof(buf)); in producer()
162 memset(buf, 'x', sizeof(buf)); in producer()
168 memset(buf, 'x', sizeof(buf)); in producer()
188 memset(&consumer_addr, 0, sizeof(consumer_addr)); in main()
/linux/drivers/clk/tegra/
A Dclk-bpmp.c79 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_transfer()
100 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_prepare()
113 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_unprepare()
130 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_is_prepared()
152 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_recalc_rate()
179 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_round_rate()
205 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_set_parent()
230 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_get_parent()
261 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_set_rate()
314 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_get_max_id()
[all …]
/linux/drivers/ps3/
A Dps3av_cmd.c151 memset(&video_init, 0, sizeof(video_init)); in ps3av_cmd_init()
165 memset(&audio_init, 0, sizeof(audio_init)); in ps3av_cmd_init()
179 memset(&av_init, 0, sizeof(av_init)); in ps3av_cmd_init()
199 memset(&av_fin, 0, sizeof(av_fin)); in ps3av_cmd_fin()
269 memset(&tv_mute, 0, sizeof(tv_mute)); in ps3av_cmd_av_tv_mute()
291 memset(&av_event, 0, sizeof(av_event)); in ps3av_cmd_enable_event()
312 memset(&hdmi_mode, 0, sizeof(hdmi_mode)); in ps3av_cmd_av_hdmi_mode()
631 memset(param, 0, sizeof(*param)); in ps3av_cmd_set_av_audio_param()
682 memset(audio, 0, sizeof(*audio)); in ps3av_cmd_set_audio_mode()
878 memset(hw_conf, 0, sizeof(*hw_conf)); in ps3av_cmd_av_get_hw_conf()
[all …]
/linux/drivers/scsi/bfa/
A Dbfa_fcbuild.c132 memset(fchs, 0, sizeof(struct fchs_s)); in fc_gs_fchdr_build()
154 memset(fchs, 0, sizeof(struct fchs_s)); in fc_gsresp_fchdr_build()
693 memset(prlo_acc, 0, (num_pages * 16) + 4); in fc_prlo_acc_build()
853 memset(prlo, 0, (num_pages * 16) + 4); in fc_prlo_build()
877 memset(tprlo, 0, (num_pages * 16) + 4); in fc_tprlo_build()
916 memset(cthdr, 0, sizeof(struct ct_hdr_s)); in fc_gs_cthdr_build()
926 memset(cthdr, 0, sizeof(struct ct_hdr_s)); in fc_gs_fdmi_cthdr_build()
937 memset(cthdr, 0, sizeof(struct ct_hdr_s)); in fc_gs_ms_cthdr_build()
1028 memset(scr, 0, sizeof(struct fc_scr_s)); in fc_scr_build()
1324 memset(gmal, 0, sizeof(fcgs_gmal_req_t)); in fc_gmal_req_build()
[all …]
/linux/arch/arc/lib/
A Dmemset.S10 ENTRY_CFI(memset)
46 END_CFI(memset)
49 ; memset: @r0 = mem, @r1 = char, @r2 = size_t
52 ; adjust bzero args to memset args
55 b memset ;tail call so need to tinker with blink
/linux/tools/testing/selftests/vm/
A Dmremap_dontunmap.c79 memset(page_buffer, byte, page_size); in check_region_contains_byte()
107 memset(source_mapping, 'a', num_pages * page_size); in mremap_dontunmap_simple()
148 memset(source_mapping, 'a', num_pages * page_size); in mremap_dontunmap_simple_shmem()
194 memset(dest_mapping, 'X', num_pages * page_size); in mremap_dontunmap_simple_fixed()
200 memset(source_mapping, 'a', num_pages * page_size); in mremap_dontunmap_simple_fixed()
250 memset(source_mapping, 'a', num_pages * page_size); in mremap_dontunmap_partial_mapping()
302 memset(source_mapping, 'a', 5 * page_size); in mremap_dontunmap_partial_mapping_overwrite()
308 memset(dest_mapping, 'X', 10 * page_size); in mremap_dontunmap_partial_mapping_overwrite()
/linux/drivers/media/pci/cx23885/
A Dcx23885-dvb.c1153 memset(&sp2_config, 0, sizeof(sp2_config)); in dvb_register_ci_mac()
1157 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register_ci_mac()
1824 memset(&info, 0, sizeof(info)); in dvb_register()
1841 memset(&info, 0, sizeof(info)); in dvb_register()
1858 memset(&si2165_pdata, 0, sizeof(si2165_pdata)); in dvb_register()
1895 memset(&info, 0, sizeof(info)); in dvb_register()
1912 memset(&info, 0, sizeof(info)); in dvb_register()
2026 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
2044 memset(&info, 0, sizeof(struct i2c_board_info)); in dvb_register()
2122 memset(&info, 0, sizeof(info)); in dvb_register()
[all …]
/linux/crypto/
A Dcrypto_user_stat.c35 memset(&raead, 0, sizeof(raead)); in crypto_report_aead()
52 memset(&rcipher, 0, sizeof(rcipher)); in crypto_report_cipher()
69 memset(&rcomp, 0, sizeof(rcomp)); in crypto_report_comp()
85 memset(&racomp, 0, sizeof(racomp)); in crypto_report_acomp()
101 memset(&rakcipher, 0, sizeof(rakcipher)); in crypto_report_akcipher()
120 memset(&rkpp, 0, sizeof(rkpp)); in crypto_report_kpp()
136 memset(&rhash, 0, sizeof(rhash)); in crypto_report_ahash()
151 memset(&rhash, 0, sizeof(rhash)); in crypto_report_shash()
166 memset(&rrng, 0, sizeof(rrng)); in crypto_report_rng()
182 memset(ualg, 0, sizeof(*ualg)); in crypto_reportstat_one()
[all …]

Completed in 60 milliseconds

12345678910>>...156