Home
last modified time | relevance | path

Searched refs:LIBCFS_ALLOC (Results 1 – 29 of 29) sorted by relevance

/linux-4.1.27/drivers/staging/lustre/lnet/selftest/
Dconctl.c61 LIBCFS_ALLOC(name, args->lstio_ses_nmlen + 1); in lst_session_new_ioctl()
135 LIBCFS_ALLOC(name, args->lstio_dbg_nmlen + 1); in lst_debug_ioctl()
211 LIBCFS_ALLOC(name, args->lstio_grp_nmlen + 1); in lst_group_add_ioctl()
245 LIBCFS_ALLOC(name, args->lstio_grp_nmlen + 1); in lst_group_del_ioctl()
280 LIBCFS_ALLOC(name, args->lstio_grp_nmlen + 1); in lst_group_update_ioctl()
342 LIBCFS_ALLOC(name, args->lstio_grp_nmlen + 1); in lst_nodes_add_ioctl()
420 LIBCFS_ALLOC(name, args->lstio_grp_nmlen + 1); in lst_group_info_ioctl()
463 LIBCFS_ALLOC(name, args->lstio_bat_nmlen + 1); in lst_batch_add_ioctl()
497 LIBCFS_ALLOC(name, args->lstio_bat_nmlen + 1); in lst_batch_run_ioctl()
533 LIBCFS_ALLOC(name, args->lstio_bat_nmlen + 1); in lst_batch_stop_ioctl()
[all …]
Dconsole.c93 LIBCFS_ALLOC(*ndpp, sizeof(lstcon_node_t) + sizeof(lstcon_ndlink_t)); in lstcon_node_find()
169 LIBCFS_ALLOC(ndl, sizeof(lstcon_ndlink_t)); in lstcon_ndlink_find()
202 LIBCFS_ALLOC(grp, offsetof(lstcon_group_t, in lstcon_group_alloc()
807 LIBCFS_ALLOC(gentp, sizeof(lstcon_ndlist_ent_t)); in lstcon_group_info()
856 LIBCFS_ALLOC(bat, sizeof(lstcon_batch_t)); in lstcon_batch_add()
862 LIBCFS_ALLOC(bat->bat_cli_hash, in lstcon_batch_add()
871 LIBCFS_ALLOC(bat->bat_srv_hash, in lstcon_batch_add()
965 LIBCFS_ALLOC(entp, sizeof(lstcon_test_batch_ent_t)); in lstcon_batch_info()
1306 LIBCFS_ALLOC(test, offsetof(lstcon_test_t, tes_param[paramlen])); in lstcon_test_add()
1779 LIBCFS_ALLOC(entp, sizeof(*entp)); in lstcon_session_info()
[all …]
Dmodule.c108 LIBCFS_ALLOC(lst_sched_test, sizeof(lst_sched_test[0]) * nscheds); in lnet_selftest_init()
Dframework.c148 LIBCFS_ALLOC(tsc, sizeof(sfw_test_case_t)); in sfw_register_test()
354 LIBCFS_ALLOC(bat, sizeof(sfw_batch_t)); in sfw_bid2batch()
457 LIBCFS_ALLOC(sn, sizeof(sfw_session_t)); in sfw_make_session()
740 LIBCFS_ALLOC(tsi, sizeof(*tsi)); in sfw_add_test_instance()
795 LIBCFS_ALLOC(tsu, sizeof(sfw_test_unit_t)); in sfw_add_test_instance()
Dconrpc.c134 LIBCFS_ALLOC(crpc, sizeof(*crpc)); in lstcon_rpc_prep()
253 LIBCFS_ALLOC(trans, sizeof(*trans)); in lstcon_rpc_trans_prep()
Drpc.c538 LIBCFS_ALLOC(buf, sizeof(*buf)); in srpc_add_buffer()
1311 LIBCFS_ALLOC(rpc, offsetof(srpc_client_rpc_t, in srpc_create_client_rpc()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
Dlibcfs_mem.c86 LIBCFS_ALLOC(arr, offsetof(struct cfs_var_array, va_ptrs[count])); in cfs_percpt_alloc()
184 LIBCFS_ALLOC(arr, offsetof(struct cfs_var_array, va_ptrs[count])); in cfs_array_alloc()
192 LIBCFS_ALLOC(arr->va_ptrs[i], size); in cfs_array_alloc()
Dlibcfs_string.c266 LIBCFS_ALLOC(re, sizeof(*re)); in cfs_range_expr_parse()
374 LIBCFS_ALLOC(val, sizeof(val[0]) * count); in cfs_expr_list_values()
427 LIBCFS_ALLOC(expr_list, sizeof(*expr_list)); in cfs_expr_list_parse()
Dlibcfs_lock.c65 LIBCFS_ALLOC(pcl, sizeof(*pcl)); in cfs_percpt_lock_alloc()
Dlibcfs_cpu.c58 LIBCFS_ALLOC(cptab, sizeof(*cptab)); in cfs_cpt_table_alloc()
Dnidstrings.c628 LIBCFS_ALLOC(addrrange, sizeof(struct addrrange)); in parse_addrange()
685 LIBCFS_ALLOC(nr, sizeof(struct nidrange)); in add_nidrange()
Dmodule.c227 LIBCFS_ALLOC(ldu, sizeof(*ldu)); in libcfs_psdev_open()
758 LIBCFS_ALLOC(buf, len); in __proc_cpt_table()
Dworkitem.c363 LIBCFS_ALLOC(sched, sizeof(*sched)); in cfs_wi_sched_create()
Dhash.c915 LIBCFS_ALLOC(new_bkts, sizeof(new_bkts[0]) * new_size); in cfs_hash_buckets_realloc()
928 LIBCFS_ALLOC(new_bkts[i], cfs_hash_bkt_size(hs)); in cfs_hash_buckets_realloc()
1052 LIBCFS_ALLOC(hs, offsetof(struct cfs_hash, hs_name[len])); in cfs_hash_create()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-cpu.c141 LIBCFS_ALLOC(cptab, sizeof(*cptab)); in cfs_cpt_table_alloc()
147 LIBCFS_ALLOC(cptab->ctb_cpumask, cpumask_size()); in cfs_cpt_table_alloc()
148 LIBCFS_ALLOC(cptab->ctb_nodemask, sizeof(*cptab->ctb_nodemask)); in cfs_cpt_table_alloc()
153 LIBCFS_ALLOC(cptab->ctb_cpu2cpt, in cfs_cpt_table_alloc()
161 LIBCFS_ALLOC(cptab->ctb_parts, ncpt * sizeof(cptab->ctb_parts[0])); in cfs_cpt_table_alloc()
168 LIBCFS_ALLOC(part->cpt_cpumask, cpumask_size()); in cfs_cpt_table_alloc()
169 LIBCFS_ALLOC(part->cpt_nodemask, sizeof(*part->cpt_nodemask)); in cfs_cpt_table_alloc()
635 LIBCFS_ALLOC(socket, cpumask_size()); in cfs_cpt_choose_ncpus()
636 LIBCFS_ALLOC(core, cpumask_size()); in cfs_cpt_choose_ncpus()
764 LIBCFS_ALLOC(mask, cpumask_size()); in cfs_cpt_table_create()
[all …]
Dlinux-tcpip.c164 LIBCFS_ALLOC(ifr, nalloc * sizeof(*ifr)); in libcfs_ipif_enumerate()
196 LIBCFS_ALLOC(names, nfound * sizeof(*names)); in libcfs_ipif_enumerate()
213 LIBCFS_ALLOC(names[i], IFNAMSIZ); in libcfs_ipif_enumerate()
/linux-4.1.27/drivers/staging/lustre/lnet/lnet/
Drouter_proc.c128 LIBCFS_ALLOC(ctrs, sizeof(*ctrs)); in __proc_lnet_stats()
132 LIBCFS_ALLOC(tmpstr, tmpsiz); in __proc_lnet_stats()
188 LIBCFS_ALLOC(tmpstr, tmpsiz); in proc_lnet_routes()
312 LIBCFS_ALLOC(tmpstr, tmpsiz); in proc_lnet_routers()
453 LIBCFS_ALLOC(tmpstr, tmpsiz); in proc_lnet_peers()
610 LIBCFS_ALLOC(tmpstr, tmpsiz); in __proc_lnet_buffers()
674 LIBCFS_ALLOC(tmpstr, tmpsiz); in proc_lnet_nis()
824 LIBCFS_ALLOC(buf, buf_len); in __proc_lnet_portal_rotor()
Dconfig.c125 LIBCFS_ALLOC(ni, sizeof(*ni)); in lnet_ni_alloc()
196 LIBCFS_ALLOC(tokens, tokensize); in lnet_parse_networks()
387 LIBCFS_ALLOC(ltb, nob); in lnet_new_text_buf()
1128 LIBCFS_ALLOC(ipaddrs, nif * sizeof(*ipaddrs)); in lnet_ipaddr_enumerate()
1162 LIBCFS_ALLOC(ipaddrs2, nip * sizeof(*ipaddrs2)); in lnet_ipaddr_enumerate()
Dlib-eq.c97 LIBCFS_ALLOC(eq->eq_events, count * sizeof(lnet_event_t)); in LNetEQAlloc()
Drouter.c330 LIBCFS_ALLOC(route, sizeof(*route)); in lnet_add_route()
331 LIBCFS_ALLOC(rnet, sizeof(*rnet)); in lnet_add_route()
870 LIBCFS_ALLOC(rcd, sizeof(*rcd)); in lnet_create_rc_data_locked()
877 LIBCFS_ALLOC(pi, LNET_PINGINFO_SIZE); in lnet_create_rc_data_locked()
Dapi-ni.c115 LIBCFS_ALLOC(hash, LNET_REMOTE_NETS_HASH_SIZE * sizeof(*hash)); in lnet_create_remote_nets_table()
378 LIBCFS_ALLOC(space, n * size); in lnet_freelist_init()
1595 LIBCFS_ALLOC(pinfo, infosz); in lnet_create_ping_info()
1788 LIBCFS_ALLOC(info, infosz); in lnet_ping()
Dlib-move.c62 LIBCFS_ALLOC(tp, sizeof(*tp)); in lnet_fail_nid()
/linux-4.1.27/drivers/staging/lustre/include/linux/lnet/
Dlib-lnet.h367 LIBCFS_ALLOC(eq, sizeof(*eq)); in lnet_eq_alloc()
395 LIBCFS_ALLOC(md, size); in lnet_md_alloc()
427 LIBCFS_ALLOC(me, sizeof(*me)); in lnet_me_alloc()
444 LIBCFS_ALLOC(msg, sizeof(*msg)); in lnet_msg_alloc()
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_private.h152 #define LIBCFS_ALLOC(ptr, size) \ macro
338 #define CFS_ALLOC_PTR(ptr) LIBCFS_ALLOC(ptr, sizeof(*(ptr)))
/linux-4.1.27/drivers/staging/lustre/lnet/klnds/socklnd/
Dsocklnd.c72 LIBCFS_ALLOC(route, sizeof(*route)); in ksocknal_create_route()
112 LIBCFS_ALLOC(peer, sizeof(*peer)); in ksocknal_create_peer()
974 LIBCFS_ALLOC(cr, sizeof(*cr)); in ksocknal_accept()
1033 LIBCFS_ALLOC(conn, sizeof(*conn)); in ksocknal_create_conn()
1058 LIBCFS_ALLOC(hello, offsetof(ksock_hello_msg_t, in ksocknal_create_conn()
2363 LIBCFS_ALLOC(ksocknal_data.ksnd_peers, in ksocknal_base_startup()
2774 LIBCFS_ALLOC(net, sizeof(*net)); in ksocknal_startup()
Dsocklnd_proto.c463 LIBCFS_ALLOC(hdr, sizeof(*hdr)); in ksocknal_send_hello_v1()
580 LIBCFS_ALLOC(hdr, sizeof(*hdr)); in ksocknal_recv_hello_v1()
Dsocklnd_cb.c51 LIBCFS_ALLOC(tx, size); in ksocknal_alloc_tx()
/linux-4.1.27/drivers/staging/lustre/lnet/klnds/o2iblnd/
Do2iblnd.c2252 LIBCFS_ALLOC(attr, sizeof(*attr)); in kiblnd_hdev_get_attr()
2332 LIBCFS_ALLOC(hdev->ibh_mrs, 1 * sizeof(*hdev->ibh_mrs)); in kiblnd_hdev_setup_mrs()
2366 LIBCFS_ALLOC(hdev->ibh_mrs, sizeof(*hdev->ibh_mrs) * hdev->ibh_nmrs); in kiblnd_hdev_setup_mrs()
2525 LIBCFS_ALLOC(hdev, sizeof(*hdev)); in kiblnd_dev_failover()
2635 LIBCFS_ALLOC(dev, sizeof(*dev)); in kiblnd_create_dev()
2823 LIBCFS_ALLOC(kiblnd_data.kib_peers, in kiblnd_base_startup()
3011 LIBCFS_ALLOC(net, sizeof(*net)); in kiblnd_startup()
/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dlprocfs_status.c1088 LIBCFS_ALLOC(stats, offsetof(typeof(*stats), ls_percpu[num_entry])); in lprocfs_alloc_stats()
1097 LIBCFS_ALLOC(stats->ls_cnt_header, in lprocfs_alloc_stats()