| /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 …]
|
| H A D | menu.c | 418 int last_idx = dev->last_state_idx; in menu_update() local 419 struct cpuidle_state *target = &drv->states[last_idx]; in menu_update() 449 } else if ((drv->states[last_idx].flags & CPUIDLE_FLAG_POLLING) && in menu_update()
|
| /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/net/wireless/intel/iwlegacy/ |
| H A D | 3945-rs.c | 432 int scale_rate_idx, first_idx, last_idx; in il3945_rs_tx_status() local 465 last_idx = first_idx; in il3945_rs_tx_status() 480 last_idx = scale_rate_idx; in il3945_rs_tx_status() 483 last_idx = il3945_rs_next_rate(il, scale_rate_idx); in il3945_rs_tx_status() 495 scale_rate_idx = last_idx; in il3945_rs_tx_status() 499 D_RATE("Update rate %d with %s.\n", last_idx, in il3945_rs_tx_status() 501 il3945_collect_tx_data(rs_sta, &rs_sta->win[last_idx], in il3945_rs_tx_status() 503 last_idx); in il3945_rs_tx_status()
|
| /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/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/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/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() 2003 int order = -1, last_idx = -1; in fib_select_default() local 2044 &last_idx, fa1->fa_default)) { in fib_select_default() 2059 if (!fib_detect_death(fi, order, &last_resort, &last_idx, in fib_select_default() 2066 if (last_idx >= 0) in fib_select_default() 2068 fa1->fa_default = last_idx; in fib_select_default()
|
| /linux/fs/f2fs/ |
| H A D | file.c | 3838 pgoff_t page_idx = 0, last_idx; in f2fs_release_compress_blocks() local 3886 last_idx = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); in f2fs_release_compress_blocks() 3888 while (page_idx < last_idx) { in f2fs_release_compress_blocks() 3908 count = min(end_offset - dn.ofs_in_node, last_idx - page_idx); in f2fs_release_compress_blocks() 4034 pgoff_t page_idx = 0, last_idx; in f2fs_reserve_compress_blocks() local 4064 last_idx = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); in f2fs_reserve_compress_blocks() 4066 while (page_idx < last_idx) { in f2fs_reserve_compress_blocks() 4086 count = min(end_offset - dn.ofs_in_node, last_idx - page_idx); in f2fs_reserve_compress_blocks() 4460 pgoff_t page_idx = 0, last_idx, cluster_idx; in f2fs_ioc_decompress_file() local 4495 last_idx = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); in f2fs_ioc_decompress_file() [all …]
|
| /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/ovpn/ |
| H A D | netlink.c | 718 int bkt, last_idx = cb->args[1], dumped = 0; in ovpn_nl_peer_get_dumpit() local 729 if (last_idx) in ovpn_nl_peer_get_dumpit() 749 if (last_idx > 0) { in ovpn_nl_peer_get_dumpit() 750 last_idx--; in ovpn_nl_peer_get_dumpit()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_fence.c | 769 unsigned int last_idx = end_wptr & ring->buf_mask; in amdgpu_ring_backup_unprocessed_command() local 773 for (i = first_idx; i != last_idx; ++i, i &= ring->buf_mask) in amdgpu_ring_backup_unprocessed_command()
|
| /linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
| H A D | utils.c | 218 u8 iwl_mvm_next_antenna(struct iwl_mvm *mvm, u8 valid, u8 last_idx) in iwl_mvm_next_antenna() argument 220 u8 ind = last_idx; in iwl_mvm_next_antenna() 230 return last_idx; in iwl_mvm_next_antenna()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
| H A D | lag.c | 514 int i, last_idx; in mlx5_lag_active_backup_get_netdev() local 526 last_idx = mlx5_lag_get_dev_index_by_seq(ldev, ldev->ports - 1); in mlx5_lag_active_backup_get_netdev() 527 if (last_idx < 0) in mlx5_lag_active_backup_get_netdev() 529 ndev = ldev->pf[last_idx].netdev; in mlx5_lag_active_backup_get_netdev()
|
| /linux/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/include/pcmcia/ |
| H A D | cistpl.h | 383 u_char last_idx; member
|
| /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/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/infiniband/hw/bnxt_re/ |
| H A D | qplib_fp.c | 689 srq->last_idx = srq->hwq.max_elements - 1; in bnxt_qplib_create_srq() 699 srq->swq[srq->last_idx].next_idx = -1; in bnxt_qplib_create_srq() 762 if (srq->start_idx == srq->last_idx) { in bnxt_qplib_post_srq_recv() 2706 srq->swq[srq->last_idx].next_idx = (int)tag; in bnxt_qplib_release_srqe() 2707 srq->last_idx = (int)tag; in bnxt_qplib_release_srqe() 2708 srq->swq[srq->last_idx].next_idx = -1; in bnxt_qplib_release_srqe()
|
| H A D | qplib_fp.h | 104 int last_idx; member
|
| /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 | 3020 int err, i, j, last_idx, cnt; in handle_comparison_mode() 3149 last_idx = -1; in should_output_stats() 3161 last_idx = i; in should_output_stats() 3163 output_comp_stats(join, cur_fmt, i == last_idx); in should_output_stats() 2966 int err, i, j, last_idx, cnt; handle_comparison_mode() local
|
| /linux/drivers/net/wireless/virtual/ |
| H A D | mac80211_hwsim.c | 6603 int last_idx = cb->args[0] - 1; in hwsim_dump_radio_nl() local 6611 if (last_idx >= hwsim_radio_idx-1) in hwsim_dump_radio_nl() 6615 if (data->idx <= last_idx) in hwsim_dump_radio_nl() 6628 last_idx = data->idx; in hwsim_dump_radio_nl() 6631 cb->args[0] = last_idx + 1; in hwsim_dump_radio_nl()
|