Home
last modified time | relevance | path

Searched refs:cptab (Results 1 – 9 of 9) 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 …]
/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.c58 cfs_percpt_lock_alloc(struct cfs_cpt_table *cptab) in cfs_percpt_lock_alloc() argument
69 pcl->pcl_cptab = cptab; in cfs_percpt_lock_alloc()
70 pcl->pcl_locks = cfs_percpt_alloc(cptab, sizeof(*lock)); in cfs_percpt_lock_alloc()
160 cfs_percpt_atomic_alloc(struct cfs_cpt_table *cptab, int init_val) in cfs_percpt_atomic_alloc() argument
166 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.c352 cfs_wi_sched_create(char *name, struct cfs_cpt_table *cptab, in cfs_wi_sched_create() argument
360 LASSERT(cptab == NULL || cpt == CFS_CPT_ANY || in cfs_wi_sched_create()
361 (cpt >= 0 && cpt < cfs_cpt_number(cptab))); in cfs_wi_sched_create()
369 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.h166 #define LIBCFS_CPT_ALLOC_GFP(ptr, cptab, cpt, size, mask) \ argument
170 kmalloc_node((size), (mask), cfs_cpt_spread_node(cptab, cpt)) :\
171 vmalloc_node(size, cfs_cpt_spread_node(cptab, cpt)); \
176 #define LIBCFS_CPT_ALLOC(ptr, cptab, cpt, size) \ argument
177 LIBCFS_CPT_ALLOC_GFP(ptr, cptab, cpt, size, GFP_NOFS)
226 void *cfs_percpt_alloc(struct cfs_cpt_table *cptab, unsigned int size);
382 struct cfs_percpt_lock *cfs_percpt_lock_alloc(struct cfs_cpt_table *cptab);
391 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,
/drivers/staging/lustre/lustre/include/
Dobd_support.h602 #define __OBD_MALLOC_VERBOSE(ptr, cptab, cpt, size, flags) \ argument
604 (ptr) = (cptab) == NULL ? \
606 kmalloc_node(size, flags, cfs_cpt_spread_node(cptab, cpt)); \
625 #define __OBD_MALLOC_VERBOSE(ptr, cptab, cpt, size, flags) \ argument
627 (ptr) = (cptab) == NULL ? \
630 cfs_cpt_spread_node(cptab, cpt)); \
649 #define OBD_CPT_ALLOC_GFP(ptr, cptab, cpt, size, gfp_mask) \ argument
650 __OBD_MALLOC_VERBOSE(ptr, cptab, cpt, size, gfp_mask)
652 #define OBD_CPT_ALLOC(ptr, cptab, cpt, size) \ argument
653 OBD_CPT_ALLOC_GFP(ptr, cptab, cpt, size, GFP_NOFS)
[all …]