Home
last modified time | relevance | path

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

12345678910>>...240

/linux-6.12.1/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.12.1/net/core/
Ddev_addr_lists_test.c71 memset(addr, 2, sizeof(addr)); in dev_addr_test_basic()
75 memset(addr, 3, sizeof(addr)); in dev_addr_test_basic()
90 memset(addr, 1, sizeof(addr)); in dev_addr_test_sync_one()
97 memset(addr, 2, sizeof(addr)); in dev_addr_test_sync_one()
121 memset(addr, i, sizeof(addr)); in dev_addr_test_add_del()
141 memset(addr, i, sizeof(addr)); in dev_addr_test_add_del()
158 memset(addr, 1, sizeof(addr)); in dev_addr_test_del_main()
186 memset(addr, i, sizeof(addr)); in dev_addr_test_add_set()
191 memset(addr, i, sizeof(addr)); in dev_addr_test_add_set()
195 memset(addr, 0, sizeof(addr)); in dev_addr_test_add_set()
[all …]
/linux-6.12.1/tools/testing/selftests/hid/
Dhid_bpf.c201 memset(buf, 0, sizeof(buf)); in TEST_F()
208 memset(buf, 0, sizeof(buf)); in TEST_F()
217 memset(buf, 0, sizeof(buf)); in TEST_F()
245 memset(buf, 0, sizeof(buf)); in TEST_F()
252 memset(buf, 0, sizeof(buf)); in TEST_F()
258 memset(buf, 0, sizeof(buf)); in TEST_F()
309 memset(buf, 0, sizeof(buf)); in TEST_F()
333 memset(buf, 0, sizeof(buf)); in TEST_F()
339 memset(buf, 0, sizeof(buf)); in TEST_F()
352 memset(buf, 0, sizeof(buf)); in TEST_F()
[all …]
/linux-6.12.1/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.12.1/arch/sh/lib/
DMakefile25 memset-y := memset.o
26 memset-$(CONFIG_CPU_SH4) := memset-sh4.o
30 lib-y += $(memcpy-y) $(memset-y) $(udivsi3-y)
/linux-6.12.1/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.12.1/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.12.1/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.12.1/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.12.1/lib/
Dusercopy_kunit.c82 memset(kmem, 0x0, size); in usercopy_test_check_nonzero_user()
121 memset(umem_src, 0x3e, size); in usercopy_test_copy_struct_from_user()
131 memset(kmem, 0x0, size); in usercopy_test_copy_struct_from_user()
142 memset(expected + usize, 0x0, ksize - usize); in usercopy_test_copy_struct_from_user()
144 memset(kmem, 0x0, size); in usercopy_test_copy_struct_from_user()
154 memset(kmem, 0x0, size); in usercopy_test_copy_struct_from_user()
166 memset(kmem, 0x0, size); in usercopy_test_copy_struct_from_user()
182 memset(kmem, 0x3a, PAGE_SIZE * 2); in usercopy_test_valid()
185 memset(kmem, 0x0, PAGE_SIZE); in usercopy_test_valid()
232 memset(kmem, 0x5a, PAGE_SIZE); in usercopy_test_invalid()
[all …]
/linux-6.12.1/tools/testing/selftests/arm64/fp/
Dfp-ptrace.c148 memset(tmp, 0, size); in compare_buffer()
798 memset(buf, 0, __SVE_FFR_SIZE(vq)); in fill_random_ffr()
833 memset(v_out, 0, sizeof(v_out)); in set_initial_values()
841 memset(z_out, 0, sizeof(z_out)); in set_initial_values()
845 memset(p_out, 0, sizeof(p_out)); in set_initial_values()
848 memset(ffr_in, 0, __SVE_PREG_SIZE(vq)); in set_initial_values()
852 memset(ffr_out, 0, __SVE_PREG_SIZE(vq)); in set_initial_values()
858 memset(za_in, 0, ZA_SIG_REGS_SIZE(sme_vq)); in set_initial_values()
862 memset(za_expected, 0, ZA_SIG_REGS_SIZE(sme_vq)); in set_initial_values()
864 memset(za_out, 0, sizeof(za_out)); in set_initial_values()
[all …]
/linux-6.12.1/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.12.1/drivers/net/wireless/marvell/mwifiex/
Dinit.c91 memset(&priv->wep_key[i], 0, sizeof(struct mwifiex_wep_key)); in mwifiex_init_priv()
99 memset(&priv->curr_bss_params, 0, sizeof(priv->curr_bss_params)); in mwifiex_init_priv()
102 memset(&priv->prev_ssid, 0, sizeof(priv->prev_ssid)); in mwifiex_init_priv()
103 memset(&priv->prev_bssid, 0, sizeof(priv->prev_bssid)); in mwifiex_init_priv()
104 memset(&priv->assoc_rsp_buf, 0, sizeof(priv->assoc_rsp_buf)); in mwifiex_init_priv()
126 memset(&priv->wpa_ie, 0, sizeof(priv->wpa_ie)); in mwifiex_init_priv()
127 memset(&priv->aes_key, 0, sizeof(priv->aes_key)); in mwifiex_init_priv()
131 memset(&priv->assoc_tlv_buf, 0, sizeof(priv->assoc_tlv_buf)); in mwifiex_init_priv()
133 memset(&priv->wps, 0, sizeof(priv->wps)); in mwifiex_init_priv()
134 memset(&priv->gen_ie_buf, 0, sizeof(priv->gen_ie_buf)); in mwifiex_init_priv()
[all …]
/linux-6.12.1/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.12.1/drivers/pmdomain/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.12.1/tools/lib/bpf/
Dbpf.c118 memset(&attr, 0, attr_sz); in probe_memcg_account()
181 memset(&attr, 0, attr_sz); in bpf_map_create()
227 memset(nrecord + expected_rec_size, 0, in alloc_zero_tailing_info()
261 memset(&attr, 0, attr_sz); in bpf_prog_load()
394 memset(&attr, 0, attr_sz); in bpf_map_update_elem()
410 memset(&attr, 0, attr_sz); in bpf_map_lookup_elem()
425 memset(&attr, 0, attr_sz); in bpf_map_lookup_elem_flags()
441 memset(&attr, 0, attr_sz); in bpf_map_lookup_and_delete_elem()
456 memset(&attr, 0, attr_sz); in bpf_map_lookup_and_delete_elem_flags()
472 memset(&attr, 0, attr_sz); in bpf_map_delete_elem()
[all …]
/linux-6.12.1/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.12.1/drivers/staging/media/atomisp/pci/runtime/isys/src/
Disys_init.c34 memset(&backend_ch0, 0, sizeof(backend_channel_cfg_t)); in ia_css_isys_2400_init()
35 memset(&backend_ch1, 0, sizeof(backend_channel_cfg_t)); in ia_css_isys_2400_init()
36 memset(&targetB, 0, sizeof(targetB)); in ia_css_isys_2400_init()
37 memset(&targetC, 0, sizeof(targetC)); in ia_css_isys_2400_init()
/linux-6.12.1/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.12.1/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.12.1/tools/testing/selftests/sgx/
Dtest_encl.c63 static void *memset(void *dest, int c, size_t n) in memset() function
79 memset(tcs, 0, 16); /* STATE and FLAGS */ in do_encl_init_tcs_page()
81 memset(tcs + 24, 0, 4); /* CSSA */ in do_encl_init_tcs_page()
85 memset(tcs + 40, 0, 24); /* AEP, OFSBASE, OGSBASE */ in do_encl_init_tcs_page()
89 memset(tcs + 72, 0, 4024); /* Reserved */ in do_encl_init_tcs_page()
/linux-6.12.1/tools/testing/selftests/mm/
Dmremap_dontunmap.c76 memset(page_buffer, byte, page_size); in check_region_contains_byte()
104 memset(source_mapping, 'a', num_pages * page_size); in mremap_dontunmap_simple()
146 memset(source_mapping, 'a', num_pages * page_size); in mremap_dontunmap_simple_shmem()
193 memset(dest_mapping, 'X', num_pages * page_size); in mremap_dontunmap_simple_fixed()
199 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()
303 memset(source_mapping, 'a', 5 * page_size); in mremap_dontunmap_partial_mapping_overwrite()
309 memset(dest_mapping, 'X', 10 * page_size); in mremap_dontunmap_partial_mapping_overwrite()
/linux-6.12.1/drivers/scsi/bfa/
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()
445 memset(logo, '\0', sizeof(struct fc_logo_s)); in fc_logo_build()
458 memset(adisc, '\0', sizeof(struct fc_adisc_s)); in fc_adisc_x_build()
595 memset(acc, 0, sizeof(struct fc_els_cmd_s)); in fc_logo_acc_build()
607 memset(ls_rjt, 0, sizeof(struct fc_ls_rjt_s)); in fc_ls_rjt_build()
638 memset(els_cmd, 0, sizeof(struct fc_els_cmd_s)); in fc_ls_acc_build()
669 memset(tprlo_acc, 0, (num_pages * 16) + 4); in fc_tprlo_acc_build()
693 memset(prlo_acc, 0, (num_pages * 16) + 4); in fc_prlo_acc_build()
715 memset(rnid, 0, sizeof(struct fc_rnid_cmd_s)); in fc_rnid_build()
[all …]
/linux-6.12.1/net/openvswitch/
Dflow.c136 memset(ovs_stats, 0, sizeof(*ovs_stats)); in ovs_flow_stats_get()
572 memset(&key->ipv6.nd, 0, sizeof(key->ipv6.nd)); in parse_icmpv6()
622 memset(&key->ipv6.nd.target, 0, sizeof(key->ipv6.nd.target)); in parse_icmpv6()
623 memset(key->ipv6.nd.sll, 0, sizeof(key->ipv6.nd.sll)); in parse_icmpv6()
624 memset(key->ipv6.nd.tll, 0, sizeof(key->ipv6.nd.tll)); in parse_icmpv6()
665 memset(key->nsh.context, 0, in parse_nsh()
694 memset(&key->ip, 0, sizeof(key->ip)); in key_extract_l3l4()
695 memset(&key->ipv4, 0, sizeof(key->ipv4)); in key_extract_l3l4()
714 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
731 memset(&key->tp, 0, sizeof(key->tp)); in key_extract_l3l4()
[all …]

12345678910>>...240