| /linux-6.15/drivers/cpuidle/governors/ |
| H A D | ladder.c | 72 int last_idx = dev->last_state_idx; in ladder_select_state() local 83 last_state = &ldev->states[last_idx]; in ladder_select_state() 88 if (last_idx < drv->state_count - 1 && in ladder_select_state() 95 ladder_do_selection(dev, ldev, last_idx, last_idx + 1); in ladder_select_state() 96 return last_idx + 1; in ladder_select_state() 101 if (last_idx > first_idx && in ladder_select_state() 102 (dev->states_usage[last_idx].disable || in ladder_select_state() 114 if (last_idx > first_idx && in ladder_select_state() 119 ladder_do_selection(dev, ldev, last_idx, last_idx - 1); in ladder_select_state() 120 return last_idx - 1; in ladder_select_state() [all …]
|
| H A D | menu.c | 404 int last_idx = dev->last_state_idx; in menu_update() local 405 struct cpuidle_state *target = &drv->states[last_idx]; in menu_update() 435 } else if ((drv->states[last_idx].flags & CPUIDLE_FLAG_POLLING) && in menu_update()
|
| /linux-6.15/arch/powerpc/platforms/pseries/ |
| H A D | dtl.c | 26 u64 last_idx; member 212 dtl->last_idx = 0; in dtl_enable() 265 u64 cur_idx, last_idx, i; in dtl_file_read() local 281 last_idx = dtl->last_idx; in dtl_file_read() 283 if (last_idx + dtl->buf_entries <= cur_idx) in dtl_file_read() 284 last_idx = cur_idx - dtl->buf_entries + 1; in dtl_file_read() 286 if (last_idx + n_req > cur_idx) in dtl_file_read() 287 n_req = cur_idx - last_idx; in dtl_file_read() 290 dtl->last_idx = last_idx + n_req; in dtl_file_read() 297 i = last_idx % dtl->buf_entries; in dtl_file_read()
|
| /linux-6.15/drivers/net/ethernet/netronome/nfp/ |
| H A D | nfp_net_dp.c | 97 unsigned int wr_idx, last_idx; in nfp_net_rx_ring_reset() local 107 last_idx = rx_ring->cnt - 1; in nfp_net_rx_ring_reset() 109 rx_ring->xsk_rxbufs[wr_idx] = rx_ring->xsk_rxbufs[last_idx]; in nfp_net_rx_ring_reset() 110 memset(&rx_ring->xsk_rxbufs[last_idx], 0, in nfp_net_rx_ring_reset() 113 rx_ring->rxbufs[wr_idx] = rx_ring->rxbufs[last_idx]; in nfp_net_rx_ring_reset() 114 memset(&rx_ring->rxbufs[last_idx], 0, sizeof(*rx_ring->rxbufs)); in nfp_net_rx_ring_reset()
|
| /linux-6.15/drivers/net/wireless/intel/iwlegacy/ |
| H A D | 3945-rs.c | 431 int scale_rate_idx, first_idx, last_idx; in il3945_rs_tx_status() local 464 last_idx = first_idx; in il3945_rs_tx_status() 479 last_idx = scale_rate_idx; in il3945_rs_tx_status() 482 last_idx = il3945_rs_next_rate(il, scale_rate_idx); in il3945_rs_tx_status() 494 scale_rate_idx = last_idx; in il3945_rs_tx_status() 498 D_RATE("Update rate %d with %s.\n", last_idx, in il3945_rs_tx_status() 500 il3945_collect_tx_data(rs_sta, &rs_sta->win[last_idx], in il3945_rs_tx_status() 502 last_idx); in il3945_rs_tx_status()
|
| /linux-6.15/drivers/thunderbolt/ |
| H A D | retimer.c | 510 int ret, i, max, last_idx = 0; in tb_retimer_scan() local 540 last_idx = i; in tb_retimer_scan() 549 max = min(last_idx, max); in tb_retimer_scan() 563 ret = tb_retimer_add(port, i, status[i], i <= last_idx); in tb_retimer_scan()
|
| /linux-6.15/drivers/md/bcache/ |
| H A D | journal.c | 278 ja->last_idx = ja->discard_idx = (i + 1) % in bch_journal_read() 597 ja->discard_idx = ja->last_idx; in do_journal_discard() 613 if (ja->discard_idx == ja->last_idx) in do_journal_discard() 666 while (ja->last_idx != ja->cur_idx && in journal_reclaim() 667 ja->seq[ja->last_idx] < last_seq) in journal_reclaim() 668 ja->last_idx = (ja->last_idx + 1) % in journal_reclaim()
|
| H A D | journal.h | 140 unsigned int last_idx; member
|
| /linux-6.15/drivers/media/rc/ |
| H A D | ite-cir.c | 336 int remaining_us, fifo_avail, fifo_remaining, last_idx = 0; in ite_tx_ir() local 390 last_sent[last_idx++] = val; in ite_tx_ir() 391 last_idx &= (ITE_TX_FIFO_LEN); in ite_tx_ir() 442 last_idx--; in ite_tx_ir() 443 last_idx &= (ITE_TX_FIFO_LEN - 1); in ite_tx_ir() 444 remaining_us += last_sent[last_idx]; in ite_tx_ir()
|
| /linux-6.15/include/linux/ |
| H A D | ipc_namespace.h | 24 int last_idx; /* For wrap around detection */ member
|
| /linux-6.15/ipc/ |
| H A D | util.c | 123 ids->last_idx = -1; in ipc_init_ids() 239 if (idx <= ids->last_idx) { in ipc_idr_alloc() 244 ids->last_idx = idx; in ipc_idr_alloc()
|
| /linux-6.15/arch/powerpc/platforms/ps3/ |
| H A D | os-area.c | 396 struct db_index *last_idx; member 424 i->last_idx = i->idx + db->count_64; in db_for_each_64() 432 if (i->idx >= i->last_idx) { in db_for_each_64()
|
| /linux-6.15/net/ipv4/ |
| H A D | fib_semantics.c | 580 struct fib_info **last_resort, int *last_idx, in fib_detect_death() argument 606 (*last_idx < 0 && order > dflt && state != NUD_INCOMPLETE)) { in fib_detect_death() 608 *last_idx = order; in fib_detect_death() 2009 int order = -1, last_idx = -1; in fib_select_default() local 2050 &last_idx, fa1->fa_default)) { in fib_select_default() 2065 if (!fib_detect_death(fi, order, &last_resort, &last_idx, in fib_select_default() 2072 if (last_idx >= 0) in fib_select_default() 2074 fa1->fa_default = last_idx; in fib_select_default()
|
| /linux-6.15/fs/f2fs/ |
| H A D | file.c | 3763 pgoff_t page_idx = 0, last_idx; in f2fs_release_compress_blocks() local 3811 last_idx = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); in f2fs_release_compress_blocks() 3813 while (page_idx < last_idx) { in f2fs_release_compress_blocks() 3959 pgoff_t page_idx = 0, last_idx; in f2fs_reserve_compress_blocks() local 3989 last_idx = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); in f2fs_reserve_compress_blocks() 3991 while (page_idx < last_idx) { in f2fs_reserve_compress_blocks() 4383 pgoff_t page_idx = 0, last_idx, cluster_idx; in f2fs_ioc_decompress_file() local 4418 last_idx = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); in f2fs_ioc_decompress_file() 4419 last_idx >>= fi->i_log_cluster_size; in f2fs_ioc_decompress_file() 4464 pgoff_t page_idx = 0, last_idx, cluster_idx; in f2fs_ioc_compress_file() local [all …]
|
| /linux-6.15/drivers/infiniband/hw/cxgb4/ |
| H A D | restrack.c | 121 u16 last_idx, struct t4_swsqe *last_sqe) in fill_swsqes() argument 129 if (fill_swsqe(msg, sq, last_idx, last_sqe)) in fill_swsqes()
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | send.h | 109 unsigned int last_idx; member
|
| /linux-6.15/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | utils.c | 228 u8 iwl_mvm_next_antenna(struct iwl_mvm *mvm, u8 valid, u8 last_idx) in iwl_mvm_next_antenna() argument 230 u8 ind = last_idx; in iwl_mvm_next_antenna() 240 return last_idx; in iwl_mvm_next_antenna()
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
| H A D | lag.c | 508 int i, last_idx; in mlx5_lag_active_backup_get_netdev() local 520 last_idx = mlx5_lag_get_dev_index_by_seq(ldev, ldev->ports - 1); in mlx5_lag_active_backup_get_netdev() 521 if (last_idx < 0) in mlx5_lag_active_backup_get_netdev() 523 ndev = ldev->pf[last_idx].netdev; in mlx5_lag_active_backup_get_netdev()
|
| /linux-6.15/drivers/net/wireless/intel/iwlwifi/mld/ |
| H A D | tx.c | 27 static u8 iwl_mld_next_ant(u8 valid, u8 last_idx) in iwl_mld_next_ant() argument 29 u8 index = last_idx; in iwl_mld_next_ant() 39 return last_idx; in iwl_mld_next_ant()
|
| /linux-6.15/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_ll2.c | 1346 u8 *start_idx, u8 *last_idx) in _qed_ll2_calc_allowed_conns() argument 1353 *last_idx = *start_idx + in _qed_ll2_calc_allowed_conns() 1358 *last_idx = *start_idx + in _qed_ll2_calc_allowed_conns() 1383 u8 i, first_idx, last_idx, *p_tx_max; in qed_ll2_acquire_connection() local 1389 _qed_ll2_calc_allowed_conns(p_hwfn, data, &first_idx, &last_idx); in qed_ll2_acquire_connection() 1392 for (i = first_idx; i < last_idx; i++) { in qed_ll2_acquire_connection()
|
| /linux-6.15/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu_nix.c | 3223 int idx, last_idx, next_idx, err; in nix_update_ingress_mce_list_hw() local 3231 if (idx > last_idx) in nix_update_ingress_mce_list_hw() 3240 } else if (idx == last_idx) { in nix_update_ingress_mce_list_hw() 3258 (next_idx > last_idx) ? true : false); in nix_update_ingress_mce_list_hw() 3274 int idx, last_idx, next_idx; in nix_update_egress_mce_list_hw() local 3283 if (idx > last_idx) in nix_update_egress_mce_list_hw() 3292 } else if (idx == last_idx) { in nix_update_egress_mce_list_hw() 3304 if (next_idx > last_idx) in nix_update_egress_mce_list_hw() 3485 last_idx = idx + mce_list->count - 1; in nix_update_mce_list() 3487 if (idx > last_idx) in nix_update_mce_list() [all …]
|
| /linux-6.15/include/pcmcia/ |
| H A D | cistpl.h | 383 u_char last_idx; member
|
| /linux-6.15/drivers/net/wireless/mediatek/mt76/mt7603/ |
| H A D | mac.c | 1094 int first_idx = 0, last_idx; in mt7603_fill_txs() local 1115 last_idx = FIELD_GET(MT_TXS4_LAST_TX_RATE, txs); in mt7603_fill_txs() 1137 first_idx = max_t(int, 0, last_idx - (count - 1) / MT7603_RATE_RETRY); in mt7603_fill_txs() 1166 for (i = 0, idx = first_idx; count && idx <= last_idx; idx++) { in mt7603_fill_txs()
|
| /linux-6.15/drivers/net/ethernet/natsemi/ |
| H A D | ns83820.c | 1048 unsigned tx_done_idx, last_idx; local 1067 last_idx = free_idx = dev->tx_free_idx; 1132 last_idx = free_idx; 1158 dev->tx_skbs[last_idx] = skb;
|
| /linux-6.15/drivers/target/iscsi/cxgbit/ |
| H A D | cxgbit_target.c | 1498 u8 pdu_idx = 0, last_idx = 0; in cxgbit_process_lro_skb() local 1519 last_idx = lro_cb->pdu_idx - 1; in cxgbit_process_lro_skb() 1521 for (; pdu_idx <= last_idx; pdu_idx++) { in cxgbit_process_lro_skb()
|