Searched refs:free_idx (Results 1 – 5 of 5) sorted by relevance
| /linux/drivers/net/ethernet/mellanox/mlx5/core/sf/ |
| H A D | hw_table.c | 86 int free_idx = -1; in mlx5_sf_hw_table_id_alloc() local 94 if (!hwc->sfs[i].allocated && free_idx == -1) { in mlx5_sf_hw_table_id_alloc() 95 free_idx = i; in mlx5_sf_hw_table_id_alloc() 103 if (free_idx == -1) in mlx5_sf_hw_table_id_alloc() 106 hwc->sfs[free_idx].usr_sfnum = usr_sfnum; in mlx5_sf_hw_table_id_alloc() 107 hwc->sfs[free_idx].allocated = true; in mlx5_sf_hw_table_id_alloc() 108 return free_idx; in mlx5_sf_hw_table_id_alloc()
|
| /linux/drivers/gpu/drm/bridge/adv7511/ |
| H A D | adv7511_cec.c | 236 unsigned int i, free_idx = ADV7511_MAX_ADDRS; in adv7511_cec_log_addr() local 252 if (free_idx == ADV7511_MAX_ADDRS && !is_valid) in adv7511_cec_log_addr() 253 free_idx = i; in adv7511_cec_log_addr() 258 i = free_idx; in adv7511_cec_log_addr()
|
| /linux/drivers/net/ethernet/natsemi/ |
| H A D | ns83820.c | 1045 u32 free_idx, cmdsts, extsts; local 1066 last_idx = free_idx = dev->tx_free_idx; 1068 nr_free = (tx_done_idx + NR_TX_DESC-2 - free_idx) % NR_TX_DESC; 1083 if (free_idx == dev->tx_intr_idx) { 1124 first_desc = dev->tx_descs + (free_idx * DESC_SIZE); 1127 volatile __le32 *desc = dev->tx_descs + (free_idx * DESC_SIZE); 1129 dprintk("frag[%3u]: %4u @ 0x%08Lx\n", free_idx, len, 1131 last_idx = free_idx; 1132 free_idx = (free_idx + 1) % NR_TX_DESC; 1133 desc[DESC_LINK] = cpu_to_le32(dev->tx_phy_descs + (free_idx * DESC_SIZE * 4)); [all …]
|
| /linux/drivers/scsi/csiostor/ |
| H A 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() 286 " for IQ idx:%d\n", free_idx); in csio_wr_alloc_q()
|
| /linux/drivers/net/ethernet/intel/libie/ |
| H A D | controlq.c | 681 u32 free_idx; in libie_ctlq_xn_pop_free() local 688 for_each_set_bit(free_idx, xnm->free_xns_bm, in libie_ctlq_xn_pop_free() 690 xn = &xnm->ring[free_idx]; in libie_ctlq_xn_pop_free() 700 clear_bit(free_idx, xnm->free_xns_bm); in libie_ctlq_xn_pop_free()
|