Home
last modified time | relevance | path

Searched refs:free_count (Results 1 – 19 of 19) sorted by relevance

/drivers/staging/fsl-mc/bus/
Dmc-allocator.c61 if (WARN_ON(res_pool->free_count < 0 || in fsl_mc_resource_pool_add_device()
62 res_pool->free_count > res_pool->max_count)) in fsl_mc_resource_pool_add_device()
81 res_pool->free_count++; in fsl_mc_resource_pool_add_device()
128 if (WARN_ON(res_pool->free_count <= 0 || in fsl_mc_resource_pool_remove_device()
129 res_pool->free_count > res_pool->max_count)) in fsl_mc_resource_pool_remove_device()
146 res_pool->free_count--; in fsl_mc_resource_pool_remove_device()
208 WARN_ON(res_pool->free_count != 0); in fsl_mc_resource_allocate()
220 if (WARN_ON(res_pool->free_count <= 0 || in fsl_mc_resource_allocate()
221 res_pool->free_count > res_pool->max_count)) in fsl_mc_resource_allocate()
227 res_pool->free_count--; in fsl_mc_resource_allocate()
[all …]
Ddprc-driver.c202 res_pool->free_count = 0; in dprc_init_all_resource_pools()
217 int free_count = 0; in dprc_cleanup_resource_pool() local
220 WARN_ON(res_pool->free_count != res_pool->max_count); in dprc_cleanup_resource_pool()
223 free_count++; in dprc_cleanup_resource_pool()
229 WARN_ON(free_count != res_pool->free_count); in dprc_cleanup_resource_pool()
/drivers/net/ethernet/mellanox/mlx5/core/
Dpagealloc.c66 unsigned free_count; member
132 nfp->free_count = MLX5_NUM_4K_IN_PAGE; in insert_page()
205 fp->free_count--; in alloc_4k()
206 if (!fp->free_count) in alloc_4k()
228 fwp->free_count++; in free_4k()
230 if (fwp->free_count == MLX5_NUM_4K_IN_PAGE) { in free_4k()
232 if (fwp->free_count != 1) in free_4k()
238 } else if (fwp->free_count == 1) { in free_4k()
/drivers/mtd/ubi/
Dfastmap-wl.c65 ubi->free_count++; in return_unused_pool_pebs()
94 if (!ubi->free.rb_node || (ubi->free_count - ubi->beb_rsvd_pebs < 1)) in ubi_wl_get_fm_peb()
110 ubi->free_count--; in ubi_wl_get_fm_peb()
151 (ubi->free_count - ubi->beb_rsvd_pebs < 5)) in ubi_refill_pools()
157 ubi->free_count--; in ubi_refill_pools()
Dwl.c399 ubi->free_count--; in wl_get_wle()
723 ubi->free_count++;
1065 ubi->free_count++;
1549 ubi->free_count++;
1608 ubi->free_count = 0;
1623 ubi->free_count++;
1869 ubi->free_count--;
1870 ubi_assert(ubi->free_count >= 0);
Dubi.h580 int free_count; member
/drivers/net/wireless/iwlwifi/pcie/
Drx.c253 while ((iwl_rxq_space(rxq) > 0) && (rxq->free_count)) { in iwl_pcie_rxq_restock()
267 rxq->free_count--; in iwl_pcie_rxq_restock()
292 if (rxq->free_count > RX_LOW_WATERMARK) in iwl_pcie_rx_alloc_page()
308 if (rxq->free_count <= RX_LOW_WATERMARK && in iwl_pcie_rx_alloc_page()
313 rxq->free_count); in iwl_pcie_rx_alloc_page()
383 rxq->free_count++; in iwl_pcie_rxq_alloc_rbs()
660 rxq->free_count = 0; in iwl_pcie_rx_init_rxb_lists()
959 rxq->free_count++; in iwl_pcie_rx_handle_rb()
1029 rxq->free_count++; in iwl_pcie_rx_handle()
1049 if (rxq->free_count >= RX_CLAIM_REQ_ALLOC) { in iwl_pcie_rx_handle()
Dinternal.h116 u32 free_count; member
Dtrans.c1983 rxq->free_count); in iwl_dbgfs_rx_queue_read()
/drivers/staging/fsl-mc/include/
Dmc-private.h70 int16_t free_count; member
/drivers/net/ethernet/smsc/
Depic100.c948 int entry, free_count; in epic_start_xmit() local
960 free_count = ep->cur_tx - ep->dirty_tx; in epic_start_xmit()
966 if (free_count < TX_QUEUE_LEN/2) {/* Typical path */ in epic_start_xmit()
968 } else if (free_count == TX_QUEUE_LEN/2) { in epic_start_xmit()
970 } else if (free_count < TX_QUEUE_LEN - 1) { in epic_start_xmit()
/drivers/net/wireless/iwlegacy/
D3945-mac.c964 while (il_rx_queue_space(rxq) > 0 && rxq->free_count) { in il3945_rx_queue_restock()
975 rxq->free_count--; in il3945_rx_queue_restock()
980 if (rxq->free_count <= RX_LOW_WATERMARK) in il3945_rx_queue_restock()
1021 if (rxq->free_count > RX_LOW_WATERMARK) in il3945_rx_allocate()
1032 if (rxq->free_count <= RX_LOW_WATERMARK && in il3945_rx_allocate()
1036 priority, rxq->free_count); in il3945_rx_allocate()
1072 rxq->free_count++; in il3945_rx_allocate()
1105 rxq->free_count = 0; in il3945_rx_queue_reset()
1300 rxq->free_count++; in il3945_rx_handle()
D4965-mac.c128 rxq->free_count = 0; in il4965_rx_queue_reset()
273 while (il_rx_queue_space(rxq) > 0 && rxq->free_count) { in il4965_rx_queue_restock()
288 rxq->free_count--; in il4965_rx_queue_restock()
293 if (rxq->free_count <= RX_LOW_WATERMARK) in il4965_rx_queue_restock()
333 if (rxq->free_count > RX_LOW_WATERMARK) in il4965_rx_allocate()
346 if (rxq->free_count <= RX_LOW_WATERMARK && in il4965_rx_allocate()
352 rxq->free_count); in il4965_rx_allocate()
389 rxq->free_count++; in il4965_rx_allocate()
4326 rxq->free_count++; in il4965_rx_handle()
Ddebug.c904 rxq->free_count); in il_dbgfs_rx_queue_read()
Dcommon.h613 u32 free_count; member
Dcommon.c2641 rxq->free_count = 0; in il_rx_queue_alloc()
/drivers/net/wireless/ipw2x00/
Dipw2200.h726 u32 free_count; /* Number of pre-allocated buffers in rx_free */ member
Dipw2200.c3478 rxq->free_count = 0; in ipw_rx_queue_reset()
5173 while ((ipw_rx_queue_space(rxq) > 0) && (rxq->free_count)) { in ipw_rx_queue_restock()
5182 rxq->free_count--; in ipw_rx_queue_restock()
5188 if (rxq->free_count <= RX_LOW_WATERMARK) in ipw_rx_queue_restock()
5230 rxq->free_count++; in ipw_rx_queue_replenish()
5290 rxq->free_count = 0; in ipw_rx_queue_alloc()
/drivers/net/ethernet/marvell/
Dmvpp2.c4099 int used_count, int free_count) in mvpp2_rxq_status_update() argument
4104 u32 val = used_count | (free_count << MVPP2_RXQ_NUM_NEW_OFFSET); in mvpp2_rxq_status_update()