Home
last modified time | relevance | path

Searched refs:malloc (Results 1 – 25 of 942) sorted by relevance

12345678910>>...38

/openbmc/linux/tools/net/ynl/generated/
H A Ddevlink-user.h96 req->bus_name = malloc(req->_present.bus_name_len + 1); in devlink_get_req_set_bus_name()
105 req->dev_name = malloc(req->_present.dev_name_len + 1); in devlink_get_req_set_dev_name()
170 req->bus_name = malloc(req->_present.bus_name_len + 1); in devlink_port_get_req_set_bus_name()
180 req->dev_name = malloc(req->_present.dev_name_len + 1); in devlink_port_get_req_set_dev_name()
236 req->bus_name = malloc(req->_present.bus_name_len + 1); in devlink_port_get_req_dump_set_bus_name()
246 req->dev_name = malloc(req->_present.dev_name_len + 1); in devlink_port_get_req_dump_set_dev_name()
300 req->bus_name = malloc(req->_present.bus_name_len + 1); in devlink_sb_get_req_set_bus_name()
310 req->dev_name = malloc(req->_present.dev_name_len + 1); in devlink_sb_get_req_set_dev_name()
365 req->bus_name = malloc(req->_present.bus_name_len + 1); in devlink_sb_get_req_dump_set_bus_name()
375 req->dev_name = malloc(req->_present.dev_name_len + 1); in devlink_sb_get_req_dump_set_dev_name()
[all …]
H A Dfou-user.h95 req->local_v6 = malloc(req->_present.local_v6_len); in fou_add_req_set_local_v6()
104 req->peer_v6 = malloc(req->_present.peer_v6_len); in fou_add_req_set_peer_v6()
198 req->local_v6 = malloc(req->_present.local_v6_len); in fou_del_req_set_local_v6()
207 req->peer_v6 = malloc(req->_present.peer_v6_len); in fou_del_req_set_peer_v6()
288 req->local_v6 = malloc(req->_present.local_v6_len); in fou_get_req_set_local_v6()
297 req->peer_v6 = malloc(req->_present.peer_v6_len); in fou_get_req_set_peer_v6()
H A Ddevlink-user.c177 dst->info_version_name = malloc(len + 1); in devlink_dl_info_version_parse()
188 dst->info_version_value = malloc(len + 1); in devlink_dl_info_version_parse()
459 dst->bus_name = malloc(len + 1); in devlink_get_rsp_parse()
470 dst->dev_name = malloc(len + 1); in devlink_get_rsp_parse()
607 dst->bus_name = malloc(len + 1); in devlink_port_get_rsp_parse()
618 dst->dev_name = malloc(len + 1); in devlink_port_get_rsp_parse()
687 dst->bus_name = malloc(len + 1); in devlink_port_get_rsp_dump_parse()
698 dst->dev_name = malloc(len + 1); in devlink_port_get_rsp_dump_parse()
794 dst->bus_name = malloc(len + 1); in devlink_sb_get_rsp_parse()
805 dst->dev_name = malloc(len + 1); in devlink_sb_get_rsp_parse()
[all …]
H A Dethtool-user.h243 req->header.dev_name = malloc(req->header._present.dev_name_len + 1); in ethtool_strset_get_req_set_header_dev_name()
321 req->header.dev_name = malloc(req->header._present.dev_name_len + 1); in ethtool_strset_get_req_dump_set_header_dev_name()
390 req->header.dev_name = malloc(req->header._present.dev_name_len + 1); in ethtool_linkinfo_get_req_set_header_dev_name()
460 req->header.dev_name = malloc(req->header._present.dev_name_len + 1); in ethtool_linkinfo_get_req_dump_set_header_dev_name()
536 req->header.dev_name = malloc(req->header._present.dev_name_len + 1); in ethtool_linkinfo_set_req_set_header_dev_name()
621 req->header.dev_name = malloc(req->header._present.dev_name_len + 1); in ethtool_linkmodes_get_req_set_header_dev_name()
700 req->header.dev_name = malloc(req->header._present.dev_name_len + 1); in ethtool_linkmodes_get_req_dump_set_header_dev_name()
784 req->header.dev_name = malloc(req->header._present.dev_name_len + 1); in ethtool_linkmodes_set_req_set_header_dev_name()
929 req->header.dev_name = malloc(req->header._present.dev_name_len + 1); in ethtool_linkstate_get_req_set_header_dev_name()
1002 req->header.dev_name = malloc(req->header._present.dev_name_len + 1); in ethtool_linkstate_get_req_dump_set_header_dev_name()
[all …]
/openbmc/linux/tools/testing/selftests/mm/
H A Dhmm-tests.c306 buffer = malloc(sizeof(*buffer)); in TEST_F()
311 buffer->mirror = malloc(size); in TEST_F()
369 buffer = malloc(sizeof(*buffer)); in TEST_F()
374 buffer->mirror = malloc(size); in TEST_F()
428 buffer = malloc(sizeof(*buffer)); in TEST_F()
433 buffer->mirror = malloc(size); in TEST_F()
476 buffer = malloc(sizeof(*buffer)); in TEST_F()
481 buffer->mirror = malloc(size); in TEST_F()
544 buffer = malloc(sizeof(*buffer)); in TEST_F()
549 buffer->mirror = malloc(size); in TEST_F()
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace.h150 reg = malloc(sizeof(unsigned long)); in show_tar_registers()
196 reg = malloc(sizeof(unsigned long)); in write_tar_registers()
239 reg = malloc(sizeof(unsigned long)); in show_tm_checkpointed_state()
287 reg = malloc(sizeof(unsigned long)); in write_ckpt_tar_registers()
330 regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); in show_fpr()
349 regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); in write_fpr()
373 regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); in show_ckpt_fpr()
397 regs = (struct fpr_regs *) malloc(sizeof(struct fpr_regs)); in write_ckpt_fpr()
424 regs = (struct pt_regs *) malloc(sizeof(struct pt_regs)); in show_gpr()
458 fprs = malloc(sizeof(unsigned long) * PT_NUM_FPRS); in peek_fprs()
[all …]
/openbmc/linux/tools/power/cpupower/lib/
H A Dcpufreq.c240 policy = malloc(sizeof(struct cpufreq_policy)); in cpufreq_get_policy()
290 current->next = malloc(sizeof(*current)); in cpufreq_get_available_governors()
295 first = malloc(sizeof(*first)); in cpufreq_get_available_governors()
303 current->governor = malloc(i - pos + 1); in cpufreq_get_available_governors()
367 current->next = malloc(sizeof(*current)); in cpufreq_get_available_frequencies()
372 first = malloc(sizeof(*first)); in cpufreq_get_available_frequencies()
423 current->next = malloc(sizeof(*current)); in cpufreq_get_boost_frequencies()
428 first = malloc(sizeof(*first)); in cpufreq_get_boost_frequencies()
498 current->next = malloc(sizeof(*current)); in sysfs_get_cpu_list()
503 first = malloc(sizeof(*first)); in sysfs_get_cpu_list()
[all …]
/openbmc/linux/include/linux/decompress/
H A Dmm.h42 MALLOC_VISIBLE void *malloc(int size) in malloc() function
70 #define large_malloc(a) malloc(a)
89 #define malloc(a) kmalloc(a, GFP_KERNEL) macro
/openbmc/u-boot/cmd/
H A Dnvedit_efi.c56 data = malloc(size); in efi_dump_single_var()
102 var_name16 = malloc(buf_size); in efi_dump_vars()
145 var_name16 = malloc(buf_size); in efi_dump_var_all()
263 tmp_buf = malloc(len); in append_value()
290 tmp_buf = malloc(len); in append_value()
379 var_name16 = malloc((len + 1) * 2); in do_env_set_efi()
H A Dbinop.c21 str_output = malloc(len * 2 + 1); in write_to_env_var()
114 src1 = malloc(len); in do_binop()
115 src2 = malloc(len); in do_binop()
127 result = malloc(len); in do_binop()
/openbmc/u-boot/arch/arm/cpu/armv8/fsl-layerscape/
H A Dppa.c91 fitp = malloc(roundup(fdt_header_len, 512)); in ppa_init()
118 ppa_hdr_ddr = malloc(CONFIG_LS_PPA_ESBC_HDR_SIZE); in ppa_init()
141 ppa_fit_addr = malloc(fw_length); in ppa_init()
182 ppa_hdr_ddr = malloc(CONFIG_LS_PPA_ESBC_HDR_SIZE); in ppa_init()
206 ppa_fit_addr = malloc(fw_length); in ppa_init()
/openbmc/linux/tools/perf/util/
H A Dbpf_map.c23 return malloc(round_up(bpf_map__value_size(map), 8) * in bpf_map__alloc_value()
26 return malloc(bpf_map__value_size(map)); in bpf_map__alloc_value()
42 key = malloc(bpf_map__key_size(map)); in bpf_map__fprintf()
H A Dblock-range.c116 struct block_range *head = malloc(sizeof(struct block_range)); in block_range__create()
139 entry = malloc(sizeof(struct block_range)); in block_range__create()
163 struct block_range *head = malloc(sizeof(struct block_range)); in block_range__create()
201 struct block_range *tail = malloc(sizeof(struct block_range)); in block_range__create()
248 tail = malloc(sizeof(struct block_range)); in block_range__create()
271 struct block_range *hole = malloc(sizeof(struct block_range)); in block_range__create()
H A Dlevenshtein.c48 int *row0 = malloc(sizeof(int) * (len2 + 1)); in levenshtein()
49 int *row1 = malloc(sizeof(int) * (len2 + 1)); in levenshtein()
50 int *row2 = malloc(sizeof(int) * (len2 + 1)); in levenshtein()
H A Dtrace-event-read.c138 str = malloc(size); in read_string()
178 buf = malloc(size + 1); in read_ftrace_printk()
212 header_page = malloc(size); in read_header_files()
251 buf = malloc(size); in read_ftrace_file()
277 buf = malloc(size); in read_event_file()
355 buf = malloc(size + 1); in read_saved_cmdline()
/openbmc/u-boot/scripts/coccinelle/null/
H A Dkmerr.cocci1 /// This semantic patch looks for malloc etc that are not followed by a
4 /// in determining what the error handling code for the call to malloc etc
40 *x@p1 = \(malloc\|calloc\)(...);
56 x@p1 = \(malloc\|calloc\)(...);
/openbmc/linux/lib/
H A Ddecompress_inflate.c55 out_buf = malloc(out_len); in __gunzip()
68 zbuf = malloc(GZIP_IOBUF_SIZE); in __gunzip()
76 strm = malloc(sizeof(*strm)); in __gunzip()
82 strm->workspace = malloc(flush ? zlib_inflate_workspacesize() : in __gunzip()
/openbmc/u-boot/lib/rsa/
H A Drsa-verify.c122 tmp = malloc(hash_len); in mask_generation_function1()
200 masked_db = malloc(masked_db_len); in padding_pss_verify()
201 h = malloc(h_len); in padding_pss_verify()
202 db_mask = malloc(db_mask_len); in padding_pss_verify()
203 db = malloc(db_len); in padding_pss_verify()
204 salt = malloc(salt_len); in padding_pss_verify()
205 hprime = malloc(hash_len); in padding_pss_verify()
/openbmc/linux/tools/power/cpupower/utils/idle_monitor/
H A Dcpuidle_sysfs.c178 previous_count = malloc(sizeof(long long *) * cpu_count); in cpuidle_register()
179 current_count = malloc(sizeof(long long *) * cpu_count); in cpuidle_register()
181 previous_count[num] = malloc(sizeof(long long) * in cpuidle_register()
183 current_count[num] = malloc(sizeof(long long) * in cpuidle_register()
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-shells/tcsh/tcsh/
H A D0001-Enable-system-malloc-on-all-linux.patch4 Subject: [PATCH 1/2] Enable system malloc on all linux
7 internal malloc falls flat on musl based systems
8 as well. So switch to using system malloc
/openbmc/linux/tools/spi/
H A Dspidev_test.c339 tx = malloc(size); in transfer_escaped_string()
343 rx = malloc(size); in transfer_escaped_string()
368 tx = malloc(sb.st_size); in transfer_file()
372 rx = malloc(sb.st_size); in transfer_file()
409 tx = malloc(len); in transfer_buf()
415 rx = malloc(len); in transfer_buf()
/openbmc/linux/Documentation/translations/zh_CN/infiniband/
H A Duser_mad.rst62 mad = malloc(sizeof *mad + 256);
72 mad = malloc(sizeof *mad + 256);
77 mad = malloc(sizeof *mad + length);
104 mad = malloc(sizeof *mad + mad_length);
/openbmc/linux/tools/usb/ffs-aio-example/simple/device_app/
H A Daio_simple.c245 ep_path = malloc(strlen(argv[1]) + 4 /* "/ep#" */ + 1 /* '\0' */); in main()
292 buf_in = malloc(BUF_LEN); in main()
293 buf_out = malloc(BUF_LEN); in main()
294 iocb_in = malloc(sizeof(*iocb_in)); in main()
295 iocb_out = malloc(sizeof(*iocb_out)); in main()
/openbmc/linux/arch/um/os-Linux/
H A Dumid.c52 uml_dir = malloc(strlen(dir) + 1); in make_uml_dir()
142 file = malloc(filelen); in is_umdir_used()
216 file = malloc(n); in create_pid_file()
371 uml_dir = malloc(strlen(name) + 2); in set_uml_dir()
395 dir = malloc(strlen(uml_dir) + UMID_LEN + 1); in remove_umid_dir()
/openbmc/u-boot/env/
H A Dattr.c54 entry_cpy = malloc(entry_len + 1); in env_attr_walk()
70 entry_cpy = malloc(entry_len + 1); in env_attr_walk()
138 cbp->regex = malloc(strlen(regex) + 1); in regex_callback()
147 cbp->attributes = malloc(strlen(attributes) + 1); in regex_callback()

12345678910>>...38