Home
last modified time | relevance | path

Searched refs:free_index (Results 1 – 13 of 13) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_pool.c41 int free_index = find_first_bit(fs_bulk->bitmask, fs_bulk->bulk_len); in mlx5_fs_bulk_acquire_index() local
44 if (free_index >= fs_bulk->bulk_len) in mlx5_fs_bulk_acquire_index()
47 clear_bit(free_index, fs_bulk->bitmask); in mlx5_fs_bulk_acquire_index()
49 pool_index->index = free_index; in mlx5_fs_bulk_acquire_index()
/linux/arch/arm64/kvm/vgic/
H A Dvgic-mmio-v3.c328 if (vgic_cpu->rdreg_index < rdreg->free_index - 1) { in vgic_mmio_vcpu_rdist_is_last()
339 if (iter->base == end && iter->free_index > 0) in vgic_mmio_vcpu_rdist_is_last()
810 vgic_cpu->rdreg_index = rdreg->free_index; in vgic_register_redist_iodev()
812 rd_base = rdreg->base + rdreg->free_index * KVM_VGIC_V3_REDIST_SIZE; in vgic_register_redist_iodev()
829 rdreg->free_index++; in vgic_register_redist_iodev()
944 rdreg->free_index = 0; in vgic_v3_alloc_redist_region()
H A Dvgic.h389 return (region->free_index >= region->count); in vgic_v3_redist_region_full()
/linux/drivers/net/ethernet/ibm/
H A Dibmveth.c233 unsigned int free_index = pool->consumer_index; in ibmveth_replenish_buffer_pool() local
237 index = pool->free_map[free_index]; in ibmveth_replenish_buffer_pool()
290 free_index++; in ibmveth_replenish_buffer_pool()
291 if (free_index >= pool->size) in ibmveth_replenish_buffer_pool()
292 free_index = 0; in ibmveth_replenish_buffer_pool()
322 free_index = pool->consumer_index; in ibmveth_replenish_buffer_pool()
323 pool->free_map[free_index] = IBM_VETH_INVALID_MAP; in ibmveth_replenish_buffer_pool()
462 unsigned int free_index; in ibmveth_remove_buffer_from_pool() local
493 free_index = adapter->rx_buff_pool[pool].producer_index; in ibmveth_remove_buffer_from_pool()
498 adapter->rx_buff_pool[pool].free_map[free_index] = index; in ibmveth_remove_buffer_from_pool()
/linux/drivers/scsi/bfa/
H A Dbfa_fcpim.c2226 int i, free_index = MAX_LUN_MASK_CFG + 1; in bfa_fcpim_lunmask_add() local
2247 free_index = i; in bfa_fcpim_lunmask_add()
2255 if (free_index > MAX_LUN_MASK_CFG) in bfa_fcpim_lunmask_add()
2259 lunm_list[free_index].lp_tag = bfa_lps_get_tag_from_pid(bfa, in bfa_fcpim_lunmask_add()
2261 lunm_list[free_index].rp_tag = rp->rport_tag; in bfa_fcpim_lunmask_add()
2263 lunm_list[free_index].lp_tag = BFA_LP_TAG_INVALID; in bfa_fcpim_lunmask_add()
2264 lunm_list[free_index].rp_tag = BFA_RPORT_TAG_INVALID; in bfa_fcpim_lunmask_add()
2267 lunm_list[free_index].lp_wwn = *pwwn; in bfa_fcpim_lunmask_add()
2268 lunm_list[free_index].rp_wwn = rpwwn; in bfa_fcpim_lunmask_add()
2269 lunm_list[free_index].lun = lun; in bfa_fcpim_lunmask_add()
[all …]
/linux/drivers/net/wireless/rsi/
H A Drsi_91x_mac80211.c1425 int free_index = -1; in rsi_mac80211_sta_add() local
1437 if (free_index < 0) in rsi_mac80211_sta_add()
1438 free_index = cnt; in rsi_mac80211_sta_add()
1449 if (free_index >= 0) in rsi_mac80211_sta_add()
1450 sta_idx = free_index; in rsi_mac80211_sta_add()
/linux/include/kvm/
H A Darm_vgic.h237 u32 free_index; /* index of the next free redistributor */ member
/linux/drivers/scsi/qla4xxx/
H A Dql4_mbx.c1769 int free_index = -1; in qla4xxx_get_chap_index() local
1795 if (i > MAX_RESRV_CHAP_IDX && free_index == -1) in qla4xxx_get_chap_index()
1796 free_index = i; in qla4xxx_get_chap_index()
1819 if (!found_index && free_index != -1) { in qla4xxx_get_chap_index()
1821 free_index, bidi); in qla4xxx_get_chap_index()
1823 *chap_index = free_index; in qla4xxx_get_chap_index()
H A Dql4_os.c729 int free_index = -1; in qla4xxx_find_free_chap_index() local
751 free_index = i; in qla4xxx_find_free_chap_index()
756 if (free_index != -1) { in qla4xxx_find_free_chap_index()
757 *chap_index = free_index; in qla4xxx_find_free_chap_index()
/linux/drivers/md/dm-vdo/
H A Dslab-depot.c3224 slab_block_number free_index; in allocate_slab_block() local
3229 if (!search_reference_blocks(slab, &free_index)) in allocate_slab_block()
3232 VDO_ASSERT_LOG_ONLY((slab->counters[free_index] == EMPTY_REFERENCE_COUNT), in allocate_slab_block()
3234 make_provisional_reference(slab, free_index); in allocate_slab_block()
3241 slab->search_cursor.index = (free_index + 1); in allocate_slab_block()
3243 *block_number_ptr = slab->start + free_index; in allocate_slab_block()
/linux/drivers/scsi/be2iscsi/
H A Dbe_main.h236 unsigned short free_index; member
H A Dbe_main.c1023 pwrb_context->pwrb_handle_base[pwrb_context->free_index] = pwrb_handle; in beiscsi_put_wrb_handle()
1025 if (pwrb_context->free_index == (wrbs_per_cxn - 1)) in beiscsi_put_wrb_handle()
1026 pwrb_context->free_index = 0; in beiscsi_put_wrb_handle()
1028 pwrb_context->free_index++; in beiscsi_put_wrb_handle()
1052 pwrb_handle, pwrb_context->free_index, in free_wrb_handle()
2663 pwrb_context->free_index = 0; in beiscsi_init_wrb_handle()
4331 pwrb_handle, pwrb_context->free_index, in beiscsi_offload_connection()
/linux/fs/jfs/
H A Djfs_dtree.c484 static void free_index(tid_t tid, struct inode *ip, u32 index, u32 next) in free_index() function
2145 free_index(tid, ip, table_index, next_index); in dtDelete()