Home
last modified time | relevance | path

Searched refs:cptab (Results 1 – 10 of 10) sorted by relevance

/drivers/staging/lustre/lnet/libcfs/linux/
Dlinux-cpu.c89 cfs_cpt_table_free(struct cfs_cpt_table *cptab) in cfs_cpt_table_free() argument
93 if (cptab->ctb_cpu2cpt) { in cfs_cpt_table_free()
94 LIBCFS_FREE(cptab->ctb_cpu2cpt, in cfs_cpt_table_free()
96 sizeof(cptab->ctb_cpu2cpt[0])); in cfs_cpt_table_free()
99 for (i = 0; cptab->ctb_parts && i < cptab->ctb_nparts; i++) { in cfs_cpt_table_free()
100 struct cfs_cpu_partition *part = &cptab->ctb_parts[i]; in cfs_cpt_table_free()
111 if (cptab->ctb_parts) { in cfs_cpt_table_free()
112 LIBCFS_FREE(cptab->ctb_parts, in cfs_cpt_table_free()
113 cptab->ctb_nparts * sizeof(cptab->ctb_parts[0])); in cfs_cpt_table_free()
116 if (cptab->ctb_nodemask) in cfs_cpt_table_free()
[all …]
Dlinux-mem.c45 void *libcfs_kvzalloc_cpt(struct cfs_cpt_table *cptab, int cpt, size_t size, in libcfs_kvzalloc_cpt() argument
51 cfs_cpt_spread_node(cptab, cpt)); in libcfs_kvzalloc_cpt()
54 ret = vmalloc_node(size, cfs_cpt_spread_node(cptab, cpt)); in libcfs_kvzalloc_cpt()
/drivers/staging/lustre/lnet/libcfs/
Dlibcfs_cpu.c46 struct cfs_cpt_table *cptab; in cfs_cpt_table_alloc() local
53 LIBCFS_ALLOC(cptab, sizeof(*cptab)); in cfs_cpt_table_alloc()
54 if (cptab) { in cfs_cpt_table_alloc()
55 cptab->ctb_version = CFS_CPU_VERSION_MAGIC; in cfs_cpt_table_alloc()
56 node_set(0, cptab->ctb_nodemask); in cfs_cpt_table_alloc()
57 cptab->ctb_nparts = ncpt; in cfs_cpt_table_alloc()
60 return cptab; in cfs_cpt_table_alloc()
65 cfs_cpt_table_free(struct cfs_cpt_table *cptab) in cfs_cpt_table_free() argument
67 LASSERT(cptab->ctb_version == CFS_CPU_VERSION_MAGIC); in cfs_cpt_table_free()
69 LIBCFS_FREE(cptab, sizeof(*cptab)); in cfs_cpt_table_free()
[all …]
Dlibcfs_mem.c73 cfs_percpt_alloc(struct cfs_cpt_table *cptab, unsigned int size) in cfs_percpt_alloc() argument
79 count = cfs_cpt_number(cptab); in cfs_percpt_alloc()
88 arr->va_cptab = cptab; in cfs_percpt_alloc()
91 LIBCFS_CPT_ALLOC(arr->va_ptrs[i], cptab, i, size); in cfs_percpt_alloc()
Dlibcfs_lock.c52 cfs_percpt_lock_create(struct cfs_cpt_table *cptab, in cfs_percpt_lock_create() argument
64 pcl->pcl_cptab = cptab; in cfs_percpt_lock_create()
65 pcl->pcl_locks = cfs_percpt_alloc(cptab, sizeof(*lock)); in cfs_percpt_lock_create()
Dworkitem.c335 cfs_wi_sched_create(char *name, struct cfs_cpt_table *cptab, in cfs_wi_sched_create() argument
343 LASSERT(!cptab || cpt == CFS_CPT_ANY || in cfs_wi_sched_create()
344 (cpt >= 0 && cpt < cfs_cpt_number(cptab))); in cfs_wi_sched_create()
356 sched->ws_cptab = cptab; in cfs_wi_sched_create()
/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_cpu.h81 cpumask_t *cfs_cpt_cpumask(struct cfs_cpt_table *cptab, int cpt);
85 int cfs_cpt_table_print(struct cfs_cpt_table *cptab, char *buf, int len);
99 cfs_cpt_cpumask(struct cfs_cpt_table *cptab, int cpt) in cfs_cpt_cpumask() argument
105 cfs_cpt_table_print(struct cfs_cpt_table *cptab, char *buf, int len) in cfs_cpt_table_print() argument
116 void cfs_cpt_table_free(struct cfs_cpt_table *cptab);
125 cfs_cpt_number(struct cfs_cpt_table *cptab);
129 int cfs_cpt_weight(struct cfs_cpt_table *cptab, int cpt);
133 int cfs_cpt_online(struct cfs_cpt_table *cptab, int cpt);
137 nodemask_t *cfs_cpt_nodemask(struct cfs_cpt_table *cptab, int cpt);
141 int cfs_cpt_current(struct cfs_cpt_table *cptab, int remap);
[all …]
Dlibcfs_private.h135 #define LIBCFS_CPT_ALLOC_GFP(ptr, cptab, cpt, size, mask) \ argument
139 kmalloc_node((size), (mask), cfs_cpt_spread_node(cptab, cpt)) :\
140 vmalloc_node(size, cfs_cpt_spread_node(cptab, cpt)); \
145 #define LIBCFS_CPT_ALLOC(ptr, cptab, cpt, size) \ argument
146 LIBCFS_CPT_ALLOC_GFP(ptr, cptab, cpt, size, GFP_NOFS)
Dlibcfs_workitem.h66 int cfs_wi_sched_create(char *name, struct cfs_cpt_table *cptab, int cpt,
Dlibcfs.h121 void *libcfs_kvzalloc_cpt(struct cfs_cpt_table *cptab, int cpt, size_t size,