| /linux/drivers/cpuidle/governors/ |
| H A D | ladder.c | 72 int last_idx = dev->last_state_idx; in ladder_select_state() local 79 ladder_do_selection(dev, ldev, last_idx, 0); in ladder_select_state() 83 last_state = &ldev->states[last_idx]; in ladder_select_state() 85 last_residency = dev->last_residency_ns - drv->states[last_idx].exit_latency_ns; in ladder_select_state() 88 if (last_idx < drv->state_count - 1 && in ladder_select_state() 89 !dev->states_usage[last_idx + 1].disable && in ladder_select_state() 91 drv->states[last_idx + 1].exit_latency_ns <= latency_req) { 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() [all …]
|
| /linux/arch/powerpc/perf/ |
| H A D | vpa-dtl.c | 75 u64 last_idx; member 189 u64 cur_idx, last_idx, i; in vpa_dtl_dump_sample_data() local 207 last_idx = dtl->last_idx; in vpa_dtl_dump_sample_data() 209 if (last_idx + N_DISPATCH_LOG <= cur_idx) in vpa_dtl_dump_sample_data() 210 last_idx = cur_idx - N_DISPATCH_LOG + 1; in vpa_dtl_dump_sample_data() 212 n_req = cur_idx - last_idx; in vpa_dtl_dump_sample_data() 218 dtl->last_idx = last_idx + n_req; in vpa_dtl_dump_sample_data() 221 i = last_idx % N_DISPATCH_LOG; in vpa_dtl_dump_sample_data() 445 dtl->last_idx = 0; in vpa_dtl_event_add()
|
| /linux/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/drivers/thunderbolt/ |
| H A D | retimer.c | 513 int ret, i, max, last_idx = 0; in tb_retimer_scan() local 543 last_idx = i; in tb_retimer_scan() 552 max = min(last_idx, max); in tb_retimer_scan() 566 ret = tb_retimer_add(port, i, status[i], i <= last_idx); in tb_retimer_scan()
|
| /linux/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/include/linux/ |
| H A D | ipc_namespace.h | 24 int last_idx; /* For wrap around detection */ member
|
| /linux/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/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/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_ll2.c | 1345 u8 *start_idx, u8 *last_idx) in _qed_ll2_calc_allowed_conns() argument 1352 *last_idx = *start_idx + in _qed_ll2_calc_allowed_conns() 1357 *last_idx = *start_idx + in _qed_ll2_calc_allowed_conns() 1382 u8 i, first_idx, last_idx, *p_tx_max; in qed_ll2_acquire_connection() local 1388 _qed_ll2_calc_allowed_conns(p_hwfn, data, &first_idx, &last_idx); in qed_ll2_acquire_connection() 1391 for (i = first_idx; i < last_idx; i++) { in qed_ll2_acquire_connection()
|
| /linux/include/pcmcia/ |
| H A D | cistpl.h | 383 u_char last_idx; member
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu_nix.c | 3232 int idx, last_idx, next_idx, err; in nix_update_ingress_mce_list_hw() local 3238 last_idx = nix_get_last_mce_list_index(elem); in nix_update_ingress_mce_list_hw() 3240 if (idx > last_idx) in nix_update_ingress_mce_list_hw() 3249 } else if (idx == last_idx) { in nix_update_ingress_mce_list_hw() 3267 (next_idx > last_idx) ? true : false); in nix_update_ingress_mce_list_hw() 3283 int idx, last_idx, next_idx; in nix_update_egress_mce_list_hw() local 3290 last_idx = nix_get_last_mce_list_index(elem); in nix_update_egress_mce_list_hw() 3292 if (idx > last_idx) in nix_update_egress_mce_list_hw() 3301 } else if (idx == last_idx) { in nix_update_egress_mce_list_hw() 3313 if (next_idx > last_idx) in nix_update_egress_mce_list_hw() [all …]
|
| /linux/drivers/net/ethernet/natsemi/ |
| H A D | ns83820.c | 1047 unsigned tx_done_idx, last_idx; local 1066 last_idx = free_idx = dev->tx_free_idx; 1131 last_idx = free_idx; 1157 dev->tx_skbs[last_idx] = skb;
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
| H A D | lag.c | 681 int i, last_idx; in mlx5_lag_active_backup_get_netdev() local 695 last_idx = mlx5_lag_get_dev_index_by_seq(ldev, ldev->ports - 1); in mlx5_lag_active_backup_get_netdev() 696 if (last_idx < 0) in mlx5_lag_active_backup_get_netdev() 698 pf = mlx5_lag_pf(ldev, last_idx); in mlx5_lag_active_backup_get_netdev()
|
| /linux/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()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/ |
| H A D | send.c | 145 sq->last_idx = idx; in mlx5hws_send_engine_post_end() 301 wqe_ctrl = mlx5_wq_cyc_get_wqe(&sq->wq, sq->last_idx); in mlx5hws_send_engine_flush_queue()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | veristat.c | 3006 int err, i, j, last_idx, cnt; in handle_comparison_mode() local 3135 last_idx = -1; in handle_comparison_mode() 3147 last_idx = i; in handle_comparison_mode() 3149 output_comp_stats(join, cur_fmt, i == last_idx); in handle_comparison_mode()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/steering/sws/ |
| H A D | dr_action.c | 667 int last_idx) in dr_action_print_sequence() argument 671 for (i = 0; i <= last_idx; i++) in dr_action_print_sequence()
|
| /linux/drivers/net/wireless/virtual/ |
| H A D | mac80211_hwsim.c | 6825 int last_idx = cb->args[0] - 1; in hwsim_dump_radio_nl() local 6833 if (last_idx >= hwsim_radio_idx-1) in hwsim_dump_radio_nl() 6837 if (data->idx <= last_idx) in hwsim_dump_radio_nl() 6850 last_idx = data->idx; in hwsim_dump_radio_nl() 6853 cb->args[0] = last_idx + 1; in hwsim_dump_radio_nl()
|
| /linux/drivers/net/ethernet/myricom/myri10ge/ |
| H A D | myri10ge.c | 2609 int last_idx; in myri10ge_unmap_tx_dma() local 2612 last_idx = (idx + 1) & tx->mask; in myri10ge_unmap_tx_dma() 2631 } while (idx != last_idx); in myri10ge_unmap_tx_dma()
|
| /linux/fs/xfs/scrub/ |
| H A D | trace.h | 1168 __field(unsigned long long, last_idx) 1179 __entry->last_idx = si->last_folio_idx; 1184 __entry->last_idx = 0; 1195 __entry->last_idx)
|
| /linux/drivers/pcmcia/ |
| H A D | cistpl.c | 888 config->last_idx = *(++p); in parse_config()
|
| /linux/drivers/net/ethernet/broadcom/ |
| H A D | bnx2.c | 2871 u16 last_idx, last_ring_idx; in bnx2_tx_int() local 2873 last_idx = sw_cons + tx_buf->nr_frags + 1; in bnx2_tx_int() 2876 last_idx++; in bnx2_tx_int() 2878 if (((s16) ((s16) last_idx - (s16) hw_cons)) > 0) { in bnx2_tx_int()
|
| /linux/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_main.c | 709 char last_idx; in bnx2x_mc_assert() local 733 last_idx = REG_RD8(bp, bar_storm_intmem[storm] + in bnx2x_mc_assert() 735 if (last_idx) in bnx2x_mc_assert() 737 storms_string[storm], last_idx); in bnx2x_mc_assert()
|
| /linux/kernel/bpf/ |
| H A D | verifier.c | 1451 int last_idx; in release_reference_state() local 1459 last_idx = state->acquired_refs - 1; in release_reference_state() 1461 if (last_idx && idx != last_idx) in release_reference_state() 1463 memset(&state->refs[last_idx], 0, sizeof(*state->refs)); in release_reference_state()
|