Home
last modified time | relevance | path

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

12345678910>>...189

/linux-6.1.9/net/core/
Ddev_addr_lists_test.c72 memset(addr, 2, sizeof(addr)); in dev_addr_test_basic()
76 memset(addr, 3, sizeof(addr)); in dev_addr_test_basic()
89 memset(addr, 1, sizeof(addr)); in dev_addr_test_sync_one()
96 memset(addr, 2, sizeof(addr)); in dev_addr_test_sync_one()
118 memset(addr, i, sizeof(addr)); in dev_addr_test_add_del()
138 memset(addr, i, sizeof(addr)); in dev_addr_test_add_del()
153 memset(addr, 1, sizeof(addr)); in dev_addr_test_del_main()
179 memset(addr, i, sizeof(addr)); in dev_addr_test_add_set()
184 memset(addr, i, sizeof(addr)); in dev_addr_test_add_set()
188 memset(addr, 0, sizeof(addr)); in dev_addr_test_add_set()
[all …]
/linux-6.1.9/drivers/scsi/qla4xxx/
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()
374 memset(mbox_cmd, 0, sizeof(mbox_cmd[0]) * MBOX_REG_COUNT); in qla4xxx_set_ifcb()
375 memset(mbox_sts, 0, sizeof(mbox_sts[0]) * MBOX_REG_COUNT); in qla4xxx_set_ifcb()
401 memset(mbox_cmd, 0, sizeof(mbox_cmd[0]) * MBOX_REG_COUNT); in qla4xxx_get_ifcb()
402 memset(mbox_sts, 0, sizeof(mbox_sts[0]) * MBOX_REG_COUNT); in qla4xxx_get_ifcb()
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()
[all …]
/linux-6.1.9/drivers/gpu/drm/amd/display/modules/hdcp/
Dhdcp.c103 memset(input, 0, sizeof(union mod_hdcp_transition_input)); in execution()
203 memset(&hdcp->auth, 0, sizeof(struct mod_hdcp_authentication)); in reset_authentication()
204 memset(&hdcp->state, 0, sizeof(struct mod_hdcp_state)); in reset_authentication()
217 memset(&hdcp->auth, 0, sizeof(struct mod_hdcp_authentication)); in reset_authentication()
218 memset(&hdcp->state, 0, sizeof(struct mod_hdcp_state)); in reset_authentication()
222 memset(&hdcp->auth, 0, sizeof(struct mod_hdcp_authentication)); in reset_authentication()
223 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()
295 memset(&output, 0, sizeof(output)); in mod_hdcp_setup()
[all …]
/linux-6.1.9/arch/sh/lib/
DMakefile27 memset-y := memset.o
28 memset-$(CONFIG_CPU_SH4) := memset-sh4.o
32 lib-y += $(memcpy-y) $(memset-y) $(udivsi3-y)
/linux-6.1.9/lib/
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-6.1.9/scripts/coccinelle/api/alloc/
Dzalloc-simple.cocci3 /// Use zeroing allocator rather than allocator followed by memset with 0
41 * memset((T2)x,0,E1);
128 - memset((T2)x,0,E1);
138 - memset((T2)x, 0, E2);
154 memset((T2)x,0,E1);
170 msg="WARNING: kzalloc should be used for %s, instead of kmalloc/memset" % (x)
184 memset((T2)x,0,E1);
200 msg="WARNING: vzalloc should be used for %s, instead of vmalloc/memset" % (x)
214 memset((T2)x,0,E2);
230 msg="WARNING: dma_alloc_coherent used in %s already zeroes out memory, so memset is not needed" % (…
[all …]
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-6.1.9/samples/bpf/
Dxdp_router_ipv4_user.c116 memset(&route, 0, sizeof(route)); in read_route()
241 memset(&route, 0, sizeof(route)); in read_route()
242 memset(dsts, 0, sizeof(dsts)); in read_route()
243 memset(dsts_len, 0, sizeof(dsts_len)); in read_route()
244 memset(gws, 0, sizeof(gws)); in read_route()
245 memset(ifs, 0, sizeof(ifs)); in read_route()
246 memset(&route, 0, sizeof(route)); in read_route()
272 memset(&sa, 0, sizeof(sa)); in get_route_table()
279 memset(&req, 0, sizeof(req)); in get_route_table()
288 memset(&msg, 0, sizeof(msg)); in get_route_table()
[all …]
/linux-6.1.9/tools/lib/bpf/
Dbpf.c118 memset(&attr, 0, attr_sz); in probe_memcg_account()
178 memset(&attr, 0, attr_sz); in bpf_map_create()
221 memset(nrecord + expected_rec_size, 0, in alloc_zero_tailing_info()
255 memset(&attr, 0, attr_sz); in bpf_prog_load()
388 memset(&attr, 0, attr_sz); in bpf_map_update_elem()
404 memset(&attr, 0, attr_sz); in bpf_map_lookup_elem()
419 memset(&attr, 0, attr_sz); in bpf_map_lookup_elem_flags()
435 memset(&attr, 0, attr_sz); in bpf_map_lookup_and_delete_elem()
450 memset(&attr, 0, attr_sz); in bpf_map_lookup_and_delete_elem_flags()
466 memset(&attr, 0, attr_sz); in bpf_map_delete_elem()
[all …]
/linux-6.1.9/scripts/coccinelle/api/
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-6.1.9/drivers/staging/rtl8192e/
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-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dtcp_hdr_options.c146 memset(sk_fds, -1, sizeof(*sk_fds)); in sk_fds_connect()
262 memset(&skel->bss->passive_synack_out, 0, optsize); in reset_test()
263 memset(&skel->bss->passive_fin_out, 0, optsize); in reset_test()
265 memset(&skel->bss->passive_estab_in, 0, optsize); in reset_test()
266 memset(&skel->bss->passive_fin_in, 0, optsize); in reset_test()
268 memset(&skel->bss->active_syn_out, 0, optsize); in reset_test()
269 memset(&skel->bss->active_fin_out, 0, optsize); in reset_test()
271 memset(&skel->bss->active_estab_in, 0, optsize); in reset_test()
272 memset(&skel->bss->active_fin_in, 0, optsize); in reset_test()
279 memset(&exp_passive_estab_in, 0, optsize); in reset_test()
[all …]
/linux-6.1.9/drivers/net/wireless/marvell/mwifiex/
Dinit.c88 memset(&priv->wep_key[i], 0, sizeof(struct mwifiex_wep_key)); in mwifiex_init_priv()
96 memset(&priv->curr_bss_params, 0, sizeof(priv->curr_bss_params)); in mwifiex_init_priv()
99 memset(&priv->prev_ssid, 0, sizeof(priv->prev_ssid)); in mwifiex_init_priv()
100 memset(&priv->prev_bssid, 0, sizeof(priv->prev_bssid)); in mwifiex_init_priv()
101 memset(&priv->assoc_rsp_buf, 0, sizeof(priv->assoc_rsp_buf)); in mwifiex_init_priv()
123 memset(&priv->wpa_ie, 0, sizeof(priv->wpa_ie)); in mwifiex_init_priv()
124 memset(&priv->aes_key, 0, sizeof(priv->aes_key)); in mwifiex_init_priv()
128 memset(&priv->assoc_tlv_buf, 0, sizeof(priv->assoc_tlv_buf)); in mwifiex_init_priv()
130 memset(&priv->wps, 0, sizeof(priv->wps)); in mwifiex_init_priv()
131 memset(&priv->gen_ie_buf, 0, sizeof(priv->gen_ie_buf)); in mwifiex_init_priv()
[all …]
/linux-6.1.9/arch/arc/lib/
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-6.1.9/tools/testing/crypto/chacha20-s390/
Dtest-cipher.c57 memset(key, 'X', sizeof(key)); in test_lib_chacha()
58 memset(iv, 'I', sizeof(iv)); in test_lib_chacha()
152 memset(key, 'X', sizeof(key)); in test_skcipher()
153 memset(iv, 'I', sizeof(iv)); in test_skcipher()
195 memset(iv, 'I', sizeof(iv)); in test_skcipher()
252 memset(plain, 'a', data_size); in chacha_s390_test_init()
294 memset(revert, 0, data_size); in chacha_s390_test_init()
317 memset(cipher_s390, 0, data_size); in chacha_s390_test_init()
318 memset(revert, 0, data_size); in chacha_s390_test_init()
/linux-6.1.9/drivers/soc/tegra/
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-6.1.9/tools/testing/selftests/net/af_unix/
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-6.1.9/drivers/staging/media/atomisp/pci/runtime/isys/src/
Disys_init.c37 memset(&backend_ch0, 0, sizeof(backend_channel_cfg_t)); in ia_css_isys_init()
38 memset(&backend_ch1, 0, sizeof(backend_channel_cfg_t)); in ia_css_isys_init()
39 memset(&targetB, 0, sizeof(targetB)); in ia_css_isys_init()
40 memset(&targetC, 0, sizeof(targetC)); in ia_css_isys_init()
/linux-6.1.9/tools/testing/selftests/sgx/
Dtest_encl.c60 static void *memset(void *dest, int c, size_t n) in memset() function
76 memset(tcs, 0, 16); /* STATE and FLAGS */ in do_encl_init_tcs_page()
78 memset(tcs + 24, 0, 4); /* CSSA */ in do_encl_init_tcs_page()
82 memset(tcs + 40, 0, 24); /* AEP, OFSBASE, OGSBASE */ in do_encl_init_tcs_page()
86 memset(tcs + 72, 0, 4024); /* Reserved */ in do_encl_init_tcs_page()
/linux-6.1.9/tools/testing/selftests/vm/
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-6.1.9/drivers/scsi/elx/libefc/
Defc_els.c414 memset(plogi->_fl_resvd, 0, sizeof(plogi->_fl_resvd)); in efc_send_plogi()
443 memset(flogi->_fl_resvd, 0, sizeof(flogi->_fl_resvd)); in efc_send_flogi()
472 memset(fdisc->_fl_resvd, 0, sizeof(fdisc->_fl_resvd)); in efc_send_fdisc()
500 memset(pp, 0, sizeof(*pp)); in efc_send_prli()
541 memset(logo, 0, sizeof(*logo)); in efc_send_logo()
574 memset(adisc, 0, sizeof(*adisc)); in efc_send_adisc()
603 memset(req, 0, sizeof(*req)); in efc_send_scr()
628 memset(&els->io.iparam, 0, sizeof(els->io.iparam)); in efc_send_ls_rjt()
632 memset(rjt, 0, sizeof(*rjt)); in efc_send_ls_rjt()
659 memset(&els->io.iparam, 0, sizeof(els->io.iparam)); in efc_send_plogi_acc()
[all …]
/linux-6.1.9/drivers/clk/tegra/
Dclk-bpmp.c67 memset(&request, 0, sizeof(request)); in tegra_bpmp_clk_transfer()
79 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(&request, 0, sizeof(request)); in tegra_bpmp_clk_determine_rate()
182 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_determine_rate()
207 memset(&request, 0, sizeof(request)); in tegra_bpmp_clk_set_parent()
210 memset(&msg, 0, sizeof(msg)); in tegra_bpmp_clk_set_parent()
[all …]
/linux-6.1.9/drivers/ps3/
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()
221 memset(&av_video_mute, 0, sizeof(av_video_mute)); in ps3av_cmd_av_video_mute()
246 memset(&av_video_sig, 0, sizeof(av_video_sig)); in ps3av_cmd_av_video_disable_sig()
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()
340 memset(av_video_cs, 0, sizeof(*av_video_cs)); in ps3av_cmd_set_av_video_cs()
[all …]
/linux-6.1.9/drivers/scsi/mpt3sas/
Dmpt3sas_config.c315 memset(&mem, 0, sizeof(struct config_request)); in _config_request()
344 memset(config_page, 0, config_page_sz); in _config_request()
347 memset(mem.page, 0, min_t(u16, mem.sz, config_page_sz)); in _config_request()
377 memset(ioc->config_cmds.reply, 0, sizeof(Mpi2ConfigReply_t)); in _config_request()
523 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_manufacturing_pg0()
559 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_manufacturing_pg1()
597 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_manufacturing_pg7()
634 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_manufacturing_pg10()
671 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_manufacturing_pg11()
708 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_set_manufacturing_pg11()
[all …]
/linux-6.1.9/drivers/staging/rtl8192u/ieee80211/
Ddot11d.c14 memset(dot11d_info->channel_map, 0, MAX_CHANNEL_NUMBER + 1); in rtl8192u_dot11d_init()
15 memset(dot11d_info->max_tx_pwr_dbm_list, 0xFF, MAX_CHANNEL_NUMBER + 1); in rtl8192u_dot11d_init()
26 memset(dot11d_info->channel_map, 0, MAX_CHANNEL_NUMBER + 1); in dot11d_reset()
27 memset(dot11d_info->max_tx_pwr_dbm_list, 0xFF, MAX_CHANNEL_NUMBER + 1); in dot11d_reset()
57 memset(dot11d_info->channel_map, 0, MAX_CHANNEL_NUMBER + 1); in dot11d_update_country_ie()
58 memset(dot11d_info->max_tx_pwr_dbm_list, 0xFF, MAX_CHANNEL_NUMBER + 1); in dot11d_update_country_ie()

12345678910>>...189