Searched refs:sbq (Results 1 – 5 of 5) sorted by relevance
/Linux-v4.19/lib/ |
D | sbitmap.c | 273 static unsigned int sbq_calc_wake_batch(struct sbitmap_queue *sbq, in sbq_calc_wake_batch() argument 295 shallow_depth = min(1U << sbq->sb.shift, sbq->min_shallow_depth); in sbq_calc_wake_batch() 296 depth = ((depth >> sbq->sb.shift) * shallow_depth + in sbq_calc_wake_batch() 297 min(depth & ((1U << sbq->sb.shift) - 1), shallow_depth)); in sbq_calc_wake_batch() 304 int sbitmap_queue_init_node(struct sbitmap_queue *sbq, unsigned int depth, in sbitmap_queue_init_node() argument 310 ret = sbitmap_init_node(&sbq->sb, depth, shift, flags, node); in sbitmap_queue_init_node() 314 sbq->alloc_hint = alloc_percpu_gfp(unsigned int, flags); in sbitmap_queue_init_node() 315 if (!sbq->alloc_hint) { in sbitmap_queue_init_node() 316 sbitmap_free(&sbq->sb); in sbitmap_queue_init_node() 322 *per_cpu_ptr(sbq->alloc_hint, i) = prandom_u32() % depth; in sbitmap_queue_init_node() [all …]
|
/Linux-v4.19/include/linux/ |
D | sbitmap.h | 358 int sbitmap_queue_init_node(struct sbitmap_queue *sbq, unsigned int depth, 366 static inline void sbitmap_queue_free(struct sbitmap_queue *sbq) in sbitmap_queue_free() argument 368 kfree(sbq->ws); in sbitmap_queue_free() 369 free_percpu(sbq->alloc_hint); in sbitmap_queue_free() 370 sbitmap_free(&sbq->sb); in sbitmap_queue_free() 382 void sbitmap_queue_resize(struct sbitmap_queue *sbq, unsigned int depth); 391 int __sbitmap_queue_get(struct sbitmap_queue *sbq); 406 int __sbitmap_queue_get_shallow(struct sbitmap_queue *sbq, 418 static inline int sbitmap_queue_get(struct sbitmap_queue *sbq, in sbitmap_queue_get() argument 424 nr = __sbitmap_queue_get(sbq); in sbitmap_queue_get() [all …]
|
/Linux-v4.19/drivers/net/ethernet/qlogic/qlge/ |
D | qlge_main.c | 1066 struct bq_desc *sbq_desc = &rx_ring->sbq[rx_ring->sbq_curr_idx]; in ql_get_curr_sbuf() 1202 sbq_desc = &rx_ring->sbq[clean_idx]; in ql_update_sbq() 2862 sbq_desc = &rx_ring->sbq[i]; in ql_free_sbq_buffers() 2891 if (rx_ring->sbq) in ql_free_rx_buffers() 2932 memset(rx_ring->sbq, 0, rx_ring->sbq_len * sizeof(struct bq_desc)); in ql_init_sbq_ring() 2934 sbq_desc = &rx_ring->sbq[i]; in ql_init_sbq_ring() 2954 kfree(rx_ring->sbq); in ql_free_rx_resources() 2955 rx_ring->sbq = NULL; in ql_free_rx_resources() 3013 rx_ring->sbq = kmalloc_array(rx_ring->sbq_len, in ql_alloc_rx_resources() 3016 if (rx_ring->sbq == NULL) in ql_alloc_rx_resources()
|
D | qlge.h | 1458 struct bq_desc *sbq; /* array of control blocks */ member
|
D | qlge_dbg.c | 1786 pr_err("rx_ring->sbq = %p\n", rx_ring->sbq); in ql_dump_rx_ring()
|