Home
last modified time | relevance | path

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

/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-cpu.c99 cfs_cpt_table_free(struct cfs_cpt_table *cptab) in cfs_cpt_table_free() argument
103 if (cptab->ctb_cpu2cpt != NULL) { in cfs_cpt_table_free()
104 LIBCFS_FREE(cptab->ctb_cpu2cpt, in cfs_cpt_table_free()
106 sizeof(cptab->ctb_cpu2cpt[0])); in cfs_cpt_table_free()
109 for (i = 0; cptab->ctb_parts != NULL && i < cptab->ctb_nparts; i++) { in cfs_cpt_table_free()
110 struct cfs_cpu_partition *part = &cptab->ctb_parts[i]; in cfs_cpt_table_free()
121 if (cptab->ctb_parts != NULL) { in cfs_cpt_table_free()
122 LIBCFS_FREE(cptab->ctb_parts, in cfs_cpt_table_free()
123 cptab->ctb_nparts * sizeof(cptab->ctb_parts[0])); in cfs_cpt_table_free()
126 if (cptab->ctb_nodemask != NULL) 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/lustre/libcfs/
Dlibcfs_cpu.c51 struct cfs_cpt_table *cptab; in cfs_cpt_table_alloc() local
58 LIBCFS_ALLOC(cptab, sizeof(*cptab)); in cfs_cpt_table_alloc()
59 if (cptab != NULL) { in cfs_cpt_table_alloc()
60 cptab->ctb_version = CFS_CPU_VERSION_MAGIC; in cfs_cpt_table_alloc()
61 cptab->ctb_nparts = ncpt; in cfs_cpt_table_alloc()
64 return cptab; in cfs_cpt_table_alloc()
69 cfs_cpt_table_free(struct cfs_cpt_table *cptab) in cfs_cpt_table_free() argument
71 LASSERT(cptab->ctb_version == CFS_CPU_VERSION_MAGIC); in cfs_cpt_table_free()
73 LIBCFS_FREE(cptab, sizeof(*cptab)); in cfs_cpt_table_free()
79 cfs_cpt_table_print(struct cfs_cpt_table *cptab, char *buf, int len) in cfs_cpt_table_print() argument
[all …]
Dlibcfs_lock.c57 cfs_percpt_lock_alloc(struct cfs_cpt_table *cptab) in cfs_percpt_lock_alloc() argument
68 pcl->pcl_cptab = cptab; in cfs_percpt_lock_alloc()
69 pcl->pcl_locks = cfs_percpt_alloc(cptab, sizeof(*lock)); in cfs_percpt_lock_alloc()
158 cfs_percpt_atomic_alloc(struct cfs_cpt_table *cptab, int init_val) in cfs_percpt_atomic_alloc() argument
164 refs = cfs_percpt_alloc(cptab, sizeof(*ref)); in cfs_percpt_atomic_alloc()
Dlibcfs_mem.c78 cfs_percpt_alloc(struct cfs_cpt_table *cptab, unsigned int size) in cfs_percpt_alloc() argument
84 count = cfs_cpt_number(cptab); in cfs_percpt_alloc()
92 arr->va_cptab = cptab; in cfs_percpt_alloc()
95 LIBCFS_CPT_ALLOC(arr->va_ptrs[i], cptab, i, size); in cfs_percpt_alloc()
Dworkitem.c348 cfs_wi_sched_create(char *name, struct cfs_cpt_table *cptab, in cfs_wi_sched_create() argument
356 LASSERT(cptab == NULL || cpt == CFS_CPT_ANY || in cfs_wi_sched_create()
357 (cpt >= 0 && cpt < cfs_cpt_number(cptab))); in cfs_wi_sched_create()
365 sched->ws_cptab = cptab; in cfs_wi_sched_create()
/drivers/staging/lustre/include/linux/libcfs/
Dlibcfs_cpu.h85 cpumask_t *cfs_cpt_cpumask(struct cfs_cpt_table *cptab, int cpt);
89 int cfs_cpt_table_print(struct cfs_cpt_table *cptab, char *buf, int len);
103 cfs_cpt_cpumask(struct cfs_cpt_table *cptab, int cpt) in cfs_cpt_cpumask() argument
109 cfs_cpt_table_print(struct cfs_cpt_table *cptab, char *buf, int len) in cfs_cpt_table_print() argument
120 void cfs_cpt_table_free(struct cfs_cpt_table *cptab);
129 cfs_cpt_number(struct cfs_cpt_table *cptab);
133 int cfs_cpt_weight(struct cfs_cpt_table *cptab, int cpt);
137 int cfs_cpt_online(struct cfs_cpt_table *cptab, int cpt);
141 nodemask_t *cfs_cpt_nodemask(struct cfs_cpt_table *cptab, int cpt);
145 int cfs_cpt_current(struct cfs_cpt_table *cptab, int remap);
[all …]
Dlibcfs_private.h139 #define LIBCFS_CPT_ALLOC_GFP(ptr, cptab, cpt, size, mask) \ argument
143 kmalloc_node((size), (mask), cfs_cpt_spread_node(cptab, cpt)) :\
144 vmalloc_node(size, cfs_cpt_spread_node(cptab, cpt)); \
149 #define LIBCFS_CPT_ALLOC(ptr, cptab, cpt, size) \ argument
150 LIBCFS_CPT_ALLOC_GFP(ptr, cptab, cpt, size, GFP_NOFS)
196 void *cfs_percpt_alloc(struct cfs_cpt_table *cptab, unsigned int size);
352 struct cfs_percpt_lock *cfs_percpt_lock_alloc(struct cfs_cpt_table *cptab);
361 atomic_t **cfs_percpt_atomic_alloc(struct cfs_cpt_table *cptab, int val);
Dlibcfs_workitem.h70 int cfs_wi_sched_create(char *name, struct cfs_cpt_table *cptab, int cpt,
Dlibcfs.h145 void *libcfs_kvzalloc_cpt(struct cfs_cpt_table *cptab, int cpt, size_t size,