Searched refs:free_idx (Results 1 – 10 of 10) sorted by relevance
/drivers/infiniband/hw/bnxt_re/ |
D | qplib_sp.c | 285 int i, free_idx; in bnxt_qplib_add_sgid() local 296 free_idx = sgid_tbl->max; in bnxt_qplib_add_sgid() 306 free_idx == sgid_tbl->max) { in bnxt_qplib_add_sgid() 307 free_idx = i; in bnxt_qplib_add_sgid() 310 if (free_idx == sgid_tbl->max) { in bnxt_qplib_add_sgid() 350 sgid_tbl->hw_id[free_idx] = le32_to_cpu(resp.xid); in bnxt_qplib_add_sgid() 353 memcpy(&sgid_tbl->tbl[free_idx], gid, sizeof(*gid)); in bnxt_qplib_add_sgid() 354 sgid_tbl->tbl[free_idx].vlan_id = vlan_id; in bnxt_qplib_add_sgid() 357 sgid_tbl->vlan[free_idx] = 1; in bnxt_qplib_add_sgid() 361 free_idx, sgid_tbl->hw_id[free_idx], sgid_tbl->active); in bnxt_qplib_add_sgid() [all …]
|
/drivers/gpu/drm/bridge/adv7511/ |
D | adv7511_cec.c | 183 unsigned int i, free_idx = ADV7511_MAX_ADDRS; in adv7511_cec_adap_log_addr() local 199 if (free_idx == ADV7511_MAX_ADDRS && !is_valid) in adv7511_cec_adap_log_addr() 200 free_idx = i; in adv7511_cec_adap_log_addr() 205 i = free_idx; in adv7511_cec_adap_log_addr()
|
/drivers/net/ethernet/natsemi/ |
D | ns83820.c | 1046 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 …]
|
/drivers/scsi/csiostor/ |
D | csio_wr.c | 192 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()
|
/drivers/media/i2c/ |
D | adv7511-v4l2.c | 767 unsigned int i, free_idx = ADV7511_MAX_ADDRS; in adv7511_cec_adap_log_addr() local 781 if (free_idx == ADV7511_MAX_ADDRS && !is_valid) in adv7511_cec_adap_log_addr() 782 free_idx = i; in adv7511_cec_adap_log_addr() 787 i = free_idx; in adv7511_cec_adap_log_addr()
|
D | adv7842.c | 2282 unsigned int i, free_idx = ADV7842_MAX_ADDRS; in adv7842_cec_adap_log_addr() local 2296 if (free_idx == ADV7842_MAX_ADDRS && !is_valid) in adv7842_cec_adap_log_addr() 2297 free_idx = i; in adv7842_cec_adap_log_addr() 2302 i = free_idx; in adv7842_cec_adap_log_addr()
|
D | adv7604.c | 2099 unsigned int i, free_idx = ADV76XX_MAX_ADDRS; in adv76xx_cec_adap_log_addr() local 2113 if (free_idx == ADV76XX_MAX_ADDRS && !is_valid) in adv76xx_cec_adap_log_addr() 2114 free_idx = i; in adv76xx_cec_adap_log_addr() 2119 i = free_idx; in adv76xx_cec_adap_log_addr()
|
/drivers/iommu/arm/arm-smmu/ |
D | arm-smmu.c | 980 int i, free_idx = -ENOSPC; in arm_smmu_find_sme() local 993 if (free_idx < 0) in arm_smmu_find_sme() 994 free_idx = i; in arm_smmu_find_sme() 1016 return free_idx; in arm_smmu_find_sme()
|
/drivers/gpu/drm/omapdrm/dss/ |
D | dsi.c | 928 int free_idx; in _dsi_register_isr() local 934 free_idx = -1; in _dsi_register_isr() 943 if (isr_data->isr == NULL && free_idx == -1) in _dsi_register_isr() 944 free_idx = i; in _dsi_register_isr() 947 if (free_idx == -1) in _dsi_register_isr() 950 isr_data = &isr_array[free_idx]; in _dsi_register_isr()
|
/drivers/video/fbdev/omap2/omapfb/dss/ |
D | dsi.c | 946 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()
|