Searched refs:pool (Results 1 - 25 of 423) sorted by relevance

1234567891011>>

/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/samba-3.5.8/source3/lib/
H A Dpthreadpool.c3 * thread pool implementation
89 * Initialize a thread pool
94 struct pthreadpool *pool; local
100 pool = (struct pthreadpool *)malloc(size);
101 if (pool == NULL) {
105 ret = pthread_mutex_init(&pool->mutex, NULL);
107 free(pool);
111 ret = pthread_cond_init(&pool->condvar, NULL);
113 pthread_mutex_destroy(&pool->mutex);
114 free(pool);
136 pthreadpool_sig_fd(struct pthreadpool *pool) argument
168 pthreadpool_join_children(struct pthreadpool *pool) argument
182 pthreadpool_finished_job(struct pthreadpool *pool) argument
244 pthreadpool_destroy(struct pthreadpool *pool) argument
310 pthreadpool_server_exit(struct pthreadpool *pool) argument
319 struct pthreadpool *pool = (struct pthreadpool *)arg; local
426 pthreadpool_add_job(struct pthreadpool *pool, int job_id, void (*fn)(void *private_data), void *private_data) argument
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/samba-3.5.8/source3/lib/
H A Dpthreadpool.c3 * thread pool implementation
89 * Initialize a thread pool
94 struct pthreadpool *pool; local
100 pool = (struct pthreadpool *)malloc(size);
101 if (pool == NULL) {
105 ret = pthread_mutex_init(&pool->mutex, NULL);
107 free(pool);
111 ret = pthread_cond_init(&pool->condvar, NULL);
113 pthread_mutex_destroy(&pool->mutex);
114 free(pool);
136 pthreadpool_sig_fd(struct pthreadpool *pool) argument
168 pthreadpool_join_children(struct pthreadpool *pool) argument
182 pthreadpool_finished_job(struct pthreadpool *pool) argument
244 pthreadpool_destroy(struct pthreadpool *pool) argument
310 pthreadpool_server_exit(struct pthreadpool *pool) argument
319 struct pthreadpool *pool = (struct pthreadpool *)arg; local
426 pthreadpool_add_job(struct pthreadpool *pool, int job_id, void (*fn)(void *private_data), void *private_data) argument
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/samba-3.5.8/source3/lib/
H A Dpthreadpool.c3 * thread pool implementation
89 * Initialize a thread pool
94 struct pthreadpool *pool; local
100 pool = (struct pthreadpool *)malloc(size);
101 if (pool == NULL) {
105 ret = pthread_mutex_init(&pool->mutex, NULL);
107 free(pool);
111 ret = pthread_cond_init(&pool->condvar, NULL);
113 pthread_mutex_destroy(&pool->mutex);
114 free(pool);
136 pthreadpool_sig_fd(struct pthreadpool *pool) argument
168 pthreadpool_join_children(struct pthreadpool *pool) argument
182 pthreadpool_finished_job(struct pthreadpool *pool) argument
244 pthreadpool_destroy(struct pthreadpool *pool) argument
310 pthreadpool_server_exit(struct pthreadpool *pool) argument
319 struct pthreadpool *pool = (struct pthreadpool *)arg; local
426 pthreadpool_add_job(struct pthreadpool *pool, int job_id, void (*fn)(void *private_data), void *private_data) argument
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/staging/octeon/
H A Dethernet-mem.h28 int cvm_oct_mem_fill_fpa(int pool, int size, int elements);
29 void cvm_oct_mem_empty_fpa(int pool, int size, int elements);
H A Dethernet-mem.c38 * cvm_oct_fill_hw_skbuff - fill the supplied hardware pool with skbuffs
39 * @pool: Pool to allocate an skbuff for
40 * @size: Size of the buffer needed for the pool
45 static int cvm_oct_fill_hw_skbuff(int pool, int size, int elements) argument
53 ("Failed to allocate skb for hardware pool %d\n",
54 pool);
60 cvmx_fpa_free(skb->data, pool, DONT_WRITEBACK(size / 128));
67 * cvm_oct_free_hw_skbuff- free hardware pool skbuffs
68 * @pool: Pool to allocate an skbuff for
69 * @size: Size of the buffer needed for the pool
72 cvm_oct_free_hw_skbuff(int pool, int size, int elements) argument
102 cvm_oct_fill_hw_memory(int pool, int size, int elements) argument
139 cvm_oct_free_hw_memory(int pool, int size, int elements) argument
161 cvm_oct_mem_fill_fpa(int pool, int size, int elements) argument
171 cvm_oct_mem_empty_fpa(int pool, int size, int elements) argument
[all...]
H A Dcvmx-fpa.c48 * Setup a FPA pool to control a new block of memory. The
51 * @pool: Pool to initialize
52 * 0 <= pool < 8
53 * @name: Constant character string to name this pool.
63 int cvmx_fpa_setup_pool(uint64_t pool, const char *name, void *buffer, argument
72 if (pool >= CVMX_FPA_NUM_POOLS) {
73 cvmx_dprintf("ERROR: cvmx_fpa_setup_pool: Illegal pool!\n");
89 cvmx_fpa_pool_info[pool].name = name;
90 cvmx_fpa_pool_info[pool].size = block_size;
91 cvmx_fpa_pool_info[pool]
111 cvmx_fpa_shutdown_pool(uint64_t pool) argument
161 cvmx_fpa_get_block_size(uint64_t pool) argument
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/staging/octeon/
H A Dethernet-mem.h28 int cvm_oct_mem_fill_fpa(int pool, int size, int elements);
29 void cvm_oct_mem_empty_fpa(int pool, int size, int elements);
H A Dethernet-mem.c38 * cvm_oct_fill_hw_skbuff - fill the supplied hardware pool with skbuffs
39 * @pool: Pool to allocate an skbuff for
40 * @size: Size of the buffer needed for the pool
45 static int cvm_oct_fill_hw_skbuff(int pool, int size, int elements) argument
53 ("Failed to allocate skb for hardware pool %d\n",
54 pool);
60 cvmx_fpa_free(skb->data, pool, DONT_WRITEBACK(size / 128));
67 * cvm_oct_free_hw_skbuff- free hardware pool skbuffs
68 * @pool: Pool to allocate an skbuff for
69 * @size: Size of the buffer needed for the pool
72 cvm_oct_free_hw_skbuff(int pool, int size, int elements) argument
102 cvm_oct_fill_hw_memory(int pool, int size, int elements) argument
139 cvm_oct_free_hw_memory(int pool, int size, int elements) argument
161 cvm_oct_mem_fill_fpa(int pool, int size, int elements) argument
171 cvm_oct_mem_empty_fpa(int pool, int size, int elements) argument
[all...]
H A Dcvmx-fpa.c48 * Setup a FPA pool to control a new block of memory. The
51 * @pool: Pool to initialize
52 * 0 <= pool < 8
53 * @name: Constant character string to name this pool.
63 int cvmx_fpa_setup_pool(uint64_t pool, const char *name, void *buffer, argument
72 if (pool >= CVMX_FPA_NUM_POOLS) {
73 cvmx_dprintf("ERROR: cvmx_fpa_setup_pool: Illegal pool!\n");
89 cvmx_fpa_pool_info[pool].name = name;
90 cvmx_fpa_pool_info[pool].size = block_size;
91 cvmx_fpa_pool_info[pool]
111 cvmx_fpa_shutdown_pool(uint64_t pool) argument
161 cvmx_fpa_get_block_size(uint64_t pool) argument
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/mm/
H A Dmempool.c4 * memory buffer pool support. Such pools are mostly used
18 static void add_element(mempool_t *pool, void *element) argument
20 BUG_ON(pool->curr_nr >= pool->min_nr);
21 pool->elements[pool->curr_nr++] = element;
24 static void *remove_element(mempool_t *pool) argument
26 BUG_ON(pool->curr_nr <= 0);
27 return pool->elements[--pool
30 free_pool(mempool_t *pool) argument
64 mempool_t *pool; local
114 mempool_resize(mempool_t *pool, int new_min_nr, gfp_t gfp_mask) argument
183 mempool_destroy(mempool_t *pool) argument
202 mempool_alloc(mempool_t *pool, gfp_t gfp_mask) argument
257 mempool_free(void *element, mempool_t *pool) argument
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/mm/
H A Dmempool.c4 * memory buffer pool support. Such pools are mostly used
18 static void add_element(mempool_t *pool, void *element) argument
20 BUG_ON(pool->curr_nr >= pool->min_nr);
21 pool->elements[pool->curr_nr++] = element;
24 static void *remove_element(mempool_t *pool) argument
26 BUG_ON(pool->curr_nr <= 0);
27 return pool->elements[--pool
30 free_pool(mempool_t *pool) argument
64 mempool_t *pool; local
114 mempool_resize(mempool_t *pool, int new_min_nr, gfp_t gfp_mask) argument
183 mempool_destroy(mempool_t *pool) argument
202 mempool_alloc(mempool_t *pool, gfp_t gfp_mask) argument
257 mempool_free(void *element, mempool_t *pool) argument
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/fs/ceph/
H A Dmsgpool.c12 struct ceph_msgpool *pool = arg; local
15 p = ceph_msg_new(0, pool->front_len, gfp_mask);
17 pr_err("msgpool %s alloc failed\n", pool->name);
26 int ceph_msgpool_init(struct ceph_msgpool *pool, argument
29 pool->front_len = front_len;
30 pool->pool = mempool_create(size, alloc_fn, free_fn, pool);
31 if (!pool->pool)
37 ceph_msgpool_destroy(struct ceph_msgpool *pool) argument
42 ceph_msgpool_get(struct ceph_msgpool *pool, int front_len) argument
57 ceph_msgpool_put(struct ceph_msgpool *pool, struct ceph_msg *msg) argument
[all...]
H A Dmsgpool.h13 mempool_t *pool; member in struct:ceph_msgpool
17 extern int ceph_msgpool_init(struct ceph_msgpool *pool,
20 extern void ceph_msgpool_destroy(struct ceph_msgpool *pool);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/fs/ceph/
H A Dmsgpool.c12 struct ceph_msgpool *pool = arg; local
15 p = ceph_msg_new(0, pool->front_len, gfp_mask);
17 pr_err("msgpool %s alloc failed\n", pool->name);
26 int ceph_msgpool_init(struct ceph_msgpool *pool, argument
29 pool->front_len = front_len;
30 pool->pool = mempool_create(size, alloc_fn, free_fn, pool);
31 if (!pool->pool)
37 ceph_msgpool_destroy(struct ceph_msgpool *pool) argument
42 ceph_msgpool_get(struct ceph_msgpool *pool, int front_len) argument
57 ceph_msgpool_put(struct ceph_msgpool *pool, struct ceph_msg *msg) argument
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/samba-3.5.8/source3/include/
H A Dpthreadpool.h26 int pthreadpool_destroy(struct pthreadpool *pool);
31 int pthreadpool_add_job(struct pthreadpool *pool, int job_id,
35 * Get the signalling fd out of a thread pool. This fd will become readable
39 int pthreadpool_sig_fd(struct pthreadpool *pool);
40 int pthreadpool_finished_job(struct pthreadpool *pool);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/samba-3.5.8/source3/include/
H A Dpthreadpool.h26 int pthreadpool_destroy(struct pthreadpool *pool);
31 int pthreadpool_add_job(struct pthreadpool *pool, int job_id,
35 * Get the signalling fd out of a thread pool. This fd will become readable
39 int pthreadpool_sig_fd(struct pthreadpool *pool);
40 int pthreadpool_finished_job(struct pthreadpool *pool);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/samba-3.5.8/source3/include/
H A Dpthreadpool.h26 int pthreadpool_destroy(struct pthreadpool *pool);
31 int pthreadpool_add_job(struct pthreadpool *pool, int job_id,
35 * Get the signalling fd out of a thread pool. This fd will become readable
39 int pthreadpool_sig_fd(struct pthreadpool *pool);
40 int pthreadpool_finished_job(struct pthreadpool *pool);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/sound/core/seq/
H A Dseq_memory.c34 static inline int snd_seq_pool_available(struct snd_seq_pool *pool) argument
36 return pool->total_elements - atomic_read(&pool->counter);
39 static inline int snd_seq_output_ok(struct snd_seq_pool *pool) argument
41 return snd_seq_pool_available(pool) >= pool->room;
177 static inline void free_cell(struct snd_seq_pool *pool, argument
180 cell->next = pool->free;
181 pool->free = cell;
182 atomic_dec(&pool
188 struct snd_seq_pool *pool; local
221 snd_seq_cell_alloc(struct snd_seq_pool *pool, struct snd_seq_event_cell **cellp, int nonblock, struct file *file) argument
288 snd_seq_event_dup(struct snd_seq_pool *pool, struct snd_seq_event *event, struct snd_seq_event_cell **cellp, int nonblock, struct file *file) argument
368 snd_seq_pool_poll_wait(struct snd_seq_pool *pool, struct file *file, poll_table *wait) argument
377 snd_seq_pool_init(struct snd_seq_pool *pool) argument
414 snd_seq_pool_done(struct snd_seq_pool *pool) argument
461 struct snd_seq_pool *pool; local
487 struct snd_seq_pool *pool = *ppool; local
510 snd_seq_info_pool(struct snd_info_buffer *buffer, struct snd_seq_pool *pool, char *space) argument
[all...]
H A Dseq_memory.h30 struct snd_seq_pool *pool; /* used pool */ member in struct:snd_seq_event_cell
34 /* design note: the pool is a contiguous block of memory, if we dynamicly
35 want to add additional cells to the pool be better store this in another
36 pool as we need to know the base address of the pool when releasing
43 int total_elements; /* pool size actually allocated */
46 int size; /* pool size to be allocated */
66 int snd_seq_event_dup(struct snd_seq_pool *pool, struct snd_seq_event *event,
70 static inline int snd_seq_unused_cells(struct snd_seq_pool *pool) argument
76 snd_seq_total_cells(struct snd_seq_pool *pool) argument
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/sound/core/seq/
H A Dseq_memory.c34 static inline int snd_seq_pool_available(struct snd_seq_pool *pool) argument
36 return pool->total_elements - atomic_read(&pool->counter);
39 static inline int snd_seq_output_ok(struct snd_seq_pool *pool) argument
41 return snd_seq_pool_available(pool) >= pool->room;
177 static inline void free_cell(struct snd_seq_pool *pool, argument
180 cell->next = pool->free;
181 pool->free = cell;
182 atomic_dec(&pool
188 struct snd_seq_pool *pool; local
221 snd_seq_cell_alloc(struct snd_seq_pool *pool, struct snd_seq_event_cell **cellp, int nonblock, struct file *file) argument
288 snd_seq_event_dup(struct snd_seq_pool *pool, struct snd_seq_event *event, struct snd_seq_event_cell **cellp, int nonblock, struct file *file) argument
368 snd_seq_pool_poll_wait(struct snd_seq_pool *pool, struct file *file, poll_table *wait) argument
377 snd_seq_pool_init(struct snd_seq_pool *pool) argument
414 snd_seq_pool_done(struct snd_seq_pool *pool) argument
461 struct snd_seq_pool *pool; local
487 struct snd_seq_pool *pool = *ppool; local
510 snd_seq_info_pool(struct snd_info_buffer *buffer, struct snd_seq_pool *pool, char *space) argument
[all...]
H A Dseq_memory.h30 struct snd_seq_pool *pool; /* used pool */ member in struct:snd_seq_event_cell
34 /* design note: the pool is a contiguous block of memory, if we dynamicly
35 want to add additional cells to the pool be better store this in another
36 pool as we need to know the base address of the pool when releasing
43 int total_elements; /* pool size actually allocated */
46 int size; /* pool size to be allocated */
66 int snd_seq_event_dup(struct snd_seq_pool *pool, struct snd_seq_event *event,
70 static inline int snd_seq_unused_cells(struct snd_seq_pool *pool) argument
76 snd_seq_total_cells(struct snd_seq_pool *pool) argument
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/infiniband/core/
H A Dfmr_pool.c56 * its pool's free_list (if the FMR can be mapped again; that is,
57 * remap_count < pool->max_remaps) or its pool's dirty_list (if the
94 void (*flush_function)(struct ib_fmr_pool *pool,
113 static inline struct ib_pool_fmr *ib_fmr_cache_lookup(struct ib_fmr_pool *pool, argument
122 if (!pool->cache_bucket)
125 bucket = pool->cache_bucket + ib_fmr_hash(*page_list);
137 static void ib_fmr_batch_release(struct ib_fmr_pool *pool) argument
144 spin_lock_irq(&pool->pool_lock);
146 list_for_each_entry(fmr, &pool
179 struct ib_fmr_pool *pool = pool_ptr; local
214 struct ib_fmr_pool *pool; local
358 ib_destroy_fmr_pool(struct ib_fmr_pool *pool) argument
396 ib_flush_fmr_pool(struct ib_fmr_pool *pool) argument
439 struct ib_fmr_pool *pool = pool_handle; local
514 struct ib_fmr_pool *pool; local
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/infiniband/core/
H A Dfmr_pool.c56 * its pool's free_list (if the FMR can be mapped again; that is,
57 * remap_count < pool->max_remaps) or its pool's dirty_list (if the
94 void (*flush_function)(struct ib_fmr_pool *pool,
113 static inline struct ib_pool_fmr *ib_fmr_cache_lookup(struct ib_fmr_pool *pool, argument
122 if (!pool->cache_bucket)
125 bucket = pool->cache_bucket + ib_fmr_hash(*page_list);
137 static void ib_fmr_batch_release(struct ib_fmr_pool *pool) argument
144 spin_lock_irq(&pool->pool_lock);
146 list_for_each_entry(fmr, &pool
179 struct ib_fmr_pool *pool = pool_ptr; local
214 struct ib_fmr_pool *pool; local
358 ib_destroy_fmr_pool(struct ib_fmr_pool *pool) argument
396 ib_flush_fmr_pool(struct ib_fmr_pool *pool) argument
439 struct ib_fmr_pool *pool = pool_handle; local
514 struct ib_fmr_pool *pool; local
[all...]
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/staging/zram/
H A Dxvmalloc.h21 void xv_destroy_pool(struct xv_pool *pool);
23 int xv_malloc(struct xv_pool *pool, u32 size, struct page **page,
25 void xv_free(struct xv_pool *pool, struct page *page, u32 offset);
28 u64 xv_get_total_size_bytes(struct xv_pool *pool);
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/staging/zram/
H A Dxvmalloc.h21 void xv_destroy_pool(struct xv_pool *pool);
23 int xv_malloc(struct xv_pool *pool, u32 size, struct page **page,
25 void xv_free(struct xv_pool *pool, struct page *page, u32 offset);
28 u64 xv_get_total_size_bytes(struct xv_pool *pool);

Completed in 223 milliseconds

1234567891011>>