Home
last modified time | relevance | path

Searched refs:xmalloc (Results 1 – 13 of 13) sorted by relevance

/pciutils/
H A Dpcilmr.c120 results = xmalloc(links_n * sizeof(*results)); in main()
121 results_n = xmalloc(links_n * sizeof(*results_n)); in main()
122 checks_status_ports = xmalloc(links_n * sizeof(*checks_status_ports)); in main()
131 results[i] = xmalloc(sizeof(*results[i])); in main()
H A Dls-tree.c46 struct bus *bus = xmalloc(sizeof(struct bus)); in new_bus()
125 b = xmalloc(sizeof(struct bridge)); in grow_tree()
150 b = xmalloc(sizeof(struct bridge)); in grow_tree()
185 b = xmalloc(sizeof(struct bridge)); in grow_tree()
H A Dcommon.c31 xmalloc(size_t howmuch) in xmalloc() function
52 char *copy = xmalloc(len); in xstrdup()
H A Dsetpci.c72 struct pci_dev **devs = xmalloc(sizeof(struct device *) * 2); in select_devices()
90 devs = xmalloc(sizeof(struct device *) * cnt); in select_devices()
693 op = xmalloc(sizeof(struct op) + n*sizeof(struct value)); in parse_op()
781 struct group *g = xmalloc(sizeof(*g)); in new_group()
H A Dls-map.c33 struct bus_bridge *b = xmalloc(sizeof(struct bus_bridge)); in map_bridge()
173 bus_info = xmalloc(sizeof(struct bus_info) * 256); in map_the_bus()
H A Dpciutils.h40 void *xmalloc(size_t howmuch);
H A Dlspci.h25 #define alloca xmalloc
H A Dlspci.c127 d = xmalloc(sizeof(struct device)); in scan_device()
132 d->config = xmalloc(64); in scan_device()
133 d->present = xmalloc(64); in scan_device()
H A Dls-kernel.c159 e = xmalloc(sizeof(*e) + strlen(line)); in show_kernel_init()
H A DChangeLog1339 * lspci.c: If alloca() is not available, use xmalloc(), not malloc().
/pciutils/lmr/
H A Dmargin_args.c206 struct margin_com_args *com_args = xmalloc(sizeof(*com_args)); in margin_parse_util_args()
262 links = xmalloc(ports_n * sizeof(*links)); in margin_parse_util_args()
H A Dmargin.c365 results->lanes = xmalloc(sizeof(struct margin_res_lane) * lanes_n); in margin_test_receiver()
543 struct margin_results *results = xmalloc(sizeof(*results) * receivers_n); in margin_test_link()
H A Dmargin_results.c234 char *path = xmalloc(pathlen); in margin_results_save_csv()