Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/sf/
Dhw_table.c77 int free_idx = -1; in mlx5_sf_hw_table_id_alloc() local
85 if (!hwc->sfs[i].allocated && free_idx == -1) { in mlx5_sf_hw_table_id_alloc()
86 free_idx = i; in mlx5_sf_hw_table_id_alloc()
94 if (free_idx == -1) in mlx5_sf_hw_table_id_alloc()
97 hwc->sfs[free_idx].usr_sfnum = usr_sfnum; in mlx5_sf_hw_table_id_alloc()
98 hwc->sfs[free_idx].allocated = true; in mlx5_sf_hw_table_id_alloc()
99 return free_idx; in mlx5_sf_hw_table_id_alloc()
/linux-6.1.9/drivers/infiniband/hw/bnxt_re/
Dqplib_sp.c287 int i, free_idx; in bnxt_qplib_add_sgid() local
298 free_idx = sgid_tbl->max; in bnxt_qplib_add_sgid()
308 free_idx == sgid_tbl->max) { in bnxt_qplib_add_sgid()
309 free_idx = i; in bnxt_qplib_add_sgid()
312 if (free_idx == sgid_tbl->max) { in bnxt_qplib_add_sgid()
352 sgid_tbl->hw_id[free_idx] = le32_to_cpu(resp.xid); in bnxt_qplib_add_sgid()
355 memcpy(&sgid_tbl->tbl[free_idx], gid, sizeof(*gid)); in bnxt_qplib_add_sgid()
356 sgid_tbl->tbl[free_idx].vlan_id = vlan_id; in bnxt_qplib_add_sgid()
359 sgid_tbl->vlan[free_idx] = 1; in bnxt_qplib_add_sgid()
363 free_idx, sgid_tbl->hw_id[free_idx], sgid_tbl->active); in bnxt_qplib_add_sgid()
[all …]
/linux-6.1.9/drivers/gpu/drm/bridge/adv7511/
Dadv7511_cec.c228 unsigned int i, free_idx = ADV7511_MAX_ADDRS; in adv7511_cec_adap_log_addr() local
244 if (free_idx == ADV7511_MAX_ADDRS && !is_valid) in adv7511_cec_adap_log_addr()
245 free_idx = i; in adv7511_cec_adap_log_addr()
250 i = free_idx; in adv7511_cec_adap_log_addr()
/linux-6.1.9/drivers/net/ethernet/natsemi/
Dns83820.c1046 u32 free_idx, cmdsts, extsts; local
1067 last_idx = free_idx = dev->tx_free_idx;
1069 nr_free = (tx_done_idx + NR_TX_DESC-2 - free_idx) % NR_TX_DESC;
1084 if (free_idx == dev->tx_intr_idx) {
1125 first_desc = dev->tx_descs + (free_idx * DESC_SIZE);
1128 volatile __le32 *desc = dev->tx_descs + (free_idx * DESC_SIZE);
1130 dprintk("frag[%3u]: %4u @ 0x%08Lx\n", free_idx, len,
1132 last_idx = free_idx;
1133 free_idx = (free_idx + 1) % NR_TX_DESC;
1134 desc[DESC_LINK] = cpu_to_le32(dev->tx_phy_descs + (free_idx * DESC_SIZE * 4));
[all …]
/linux-6.1.9/drivers/scsi/csiostor/
Dcsio_wr.c192 int free_idx = wrm->free_qidx; in csio_wr_alloc_q() local
193 int ret_idx = free_idx; in csio_wr_alloc_q()
197 if (free_idx >= wrm->num_q) { in csio_wr_alloc_q()
234 q = wrm->q_arr[free_idx]; in csio_wr_alloc_q()
241 "queue at id: %d size: %d\n", free_idx, qsize); in csio_wr_alloc_q()
273 " for IQ idx:%d\n", free_idx); in csio_wr_alloc_q()
287 " for IQ idx:%d\n", free_idx); in csio_wr_alloc_q()
/linux-6.1.9/drivers/media/i2c/
Dadv7511-v4l2.c733 unsigned int i, free_idx = ADV7511_MAX_ADDRS; in adv7511_cec_adap_log_addr() local
747 if (free_idx == ADV7511_MAX_ADDRS && !is_valid) in adv7511_cec_adap_log_addr()
748 free_idx = i; in adv7511_cec_adap_log_addr()
753 i = free_idx; in adv7511_cec_adap_log_addr()
Dadv7604.c2113 unsigned int i, free_idx = ADV76XX_MAX_ADDRS; in adv76xx_cec_adap_log_addr() local
2127 if (free_idx == ADV76XX_MAX_ADDRS && !is_valid) in adv76xx_cec_adap_log_addr()
2128 free_idx = i; in adv76xx_cec_adap_log_addr()
2133 i = free_idx; in adv76xx_cec_adap_log_addr()
Dadv7842.c2270 unsigned int i, free_idx = ADV7842_MAX_ADDRS; in adv7842_cec_adap_log_addr() local
2284 if (free_idx == ADV7842_MAX_ADDRS && !is_valid) in adv7842_cec_adap_log_addr()
2285 free_idx = i; in adv7842_cec_adap_log_addr()
2290 i = free_idx; in adv7842_cec_adap_log_addr()
/linux-6.1.9/arch/x86/mm/pat/
Dset_memory.c2159 int free_idx; in _set_pages_array() local
2187 free_idx = i; in _set_pages_array()
2188 for (i = 0; i < free_idx; i++) { in _set_pages_array()
/linux-6.1.9/drivers/iommu/arm/arm-smmu/
Darm-smmu.c971 int i, free_idx = -ENOSPC; in arm_smmu_find_sme() local
984 if (free_idx < 0) in arm_smmu_find_sme()
985 free_idx = i; in arm_smmu_find_sme()
1007 return free_idx; in arm_smmu_find_sme()
/linux-6.1.9/drivers/gpu/drm/omapdrm/dss/
Ddsi.c559 int free_idx; in _dsi_register_isr() local
565 free_idx = -1; in _dsi_register_isr()
574 if (isr_data->isr == NULL && free_idx == -1) in _dsi_register_isr()
575 free_idx = i; in _dsi_register_isr()
578 if (free_idx == -1) in _dsi_register_isr()
581 isr_data = &isr_array[free_idx]; in _dsi_register_isr()
/linux-6.1.9/drivers/video/fbdev/omap2/omapfb/dss/
Ddsi.c946 int free_idx; in _dsi_register_isr() local
952 free_idx = -1; in _dsi_register_isr()
961 if (isr_data->isr == NULL && free_idx == -1) in _dsi_register_isr()
962 free_idx = i; in _dsi_register_isr()
965 if (free_idx == -1) in _dsi_register_isr()
968 isr_data = &isr_array[free_idx]; in _dsi_register_isr()
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_switch.c4877 unsigned long *free_idx) in ice_find_free_recp_res_idx() argument
4910 bitmap_xor(free_idx, used_idx, possible_idx, ICE_MAX_FV_WORDS); in ice_find_free_recp_res_idx()
4913 return (u16)bitmap_weight(free_idx, ICE_MAX_FV_WORDS); in ice_find_free_recp_res_idx()