Home
last modified time | relevance | path

Searched refs:first_idx (Results 1 – 19 of 19) sorted by relevance

/linux/drivers/cpuidle/governors/
H A Dladder.c73 int first_idx = drv->states[0].flags & CPUIDLE_FLAG_POLLING ? 1 : 0; in ladder_select_state() local
101 if (last_idx > first_idx && in ladder_select_state()
106 for (i = last_idx - 1; i > first_idx; i--) { in ladder_select_state()
114 if (last_idx > first_idx && in ladder_select_state()
137 int first_idx = drv->states[0].flags & CPUIDLE_FLAG_POLLING ? 1 : 0; in ladder_enable_device() local
142 dev->last_state_idx = first_idx; in ladder_enable_device()
144 for (i = first_idx; i < drv->state_count; i++) { in ladder_enable_device()
156 if (i > first_idx) in ladder_enable_device()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Dport_sel.c42 int first_idx = mlx5_lag_get_dev_index_by_seq(ldev, MLX5_LAG_P1); in mlx5_lag_create_port_sel_table() local
50 if (first_idx < 0) in mlx5_lag_create_port_sel_table()
53 dev = ldev->pf[first_idx].dev; in mlx5_lag_create_port_sel_table()
301 int first_idx = mlx5_lag_get_dev_index_by_seq(ldev, MLX5_LAG_P1); in mlx5_lag_create_definer() local
307 if (first_idx < 0) in mlx5_lag_create_definer()
310 dev = ldev->pf[first_idx].dev; in mlx5_lag_create_definer()
352 int first_idx = mlx5_lag_get_dev_index_by_seq(ldev, MLX5_LAG_P1); in mlx5_lag_destroy_definer() local
356 if (first_idx < 0) in mlx5_lag_destroy_definer()
359 dev = ldev->pf[first_idx].dev; in mlx5_lag_destroy_definer()
360 mlx5_ldev_for_each(i, first_idx, lde in mlx5_lag_destroy_definer()
515 int first_idx = mlx5_lag_get_dev_index_by_seq(ldev, MLX5_LAG_P1); mlx5_lag_create_ttc_table() local
531 int first_idx = mlx5_lag_get_dev_index_by_seq(ldev, MLX5_LAG_P1); mlx5_lag_create_inner_ttc_table() local
[all...]
H A Dlag.c537 int first_idx = mlx5_lag_get_dev_index_by_seq(ldev, MLX5_LAG_P1); in mlx5_modify_lag() local
545 if (first_idx < 0) in mlx5_modify_lag()
548 dev0 = ldev->pf[first_idx].dev; in mlx5_modify_lag()
590 int first_idx = mlx5_lag_get_dev_index_by_seq(ldev, MLX5_LAG_P1); in mlx5_lag_set_port_sel_mode() local
593 if (first_idx < 0) in mlx5_lag_set_port_sel_mode()
600 dev0 = ldev->pf[first_idx].dev; in mlx5_lag_set_port_sel_mode()
646 int first_idx = mlx5_lag_get_dev_index_by_seq(ldev, MLX5_LAG_P1); in mlx5_lag_create_single_fdb() local
652 if (first_idx < 0) in mlx5_lag_create_single_fdb()
655 dev0 = ldev->pf[first_idx].dev; in mlx5_lag_create_single_fdb()
657 mlx5_ldev_for_each(i, first_idx in mlx5_lag_create_single_fdb()
679 int first_idx = mlx5_lag_get_dev_index_by_seq(ldev, MLX5_LAG_P1); mlx5_create_lag() local
725 int first_idx = mlx5_lag_get_dev_index_by_seq(ldev, MLX5_LAG_P1); mlx5_activate_lag() local
778 int first_idx = mlx5_lag_get_dev_index_by_seq(ldev, MLX5_LAG_P1); mlx5_deactivate_lag() local
829 int first_idx = mlx5_lag_get_dev_index_by_seq(ldev, MLX5_LAG_P1); mlx5_lag_check_prereq() local
[all...]
/linux/drivers/media/test-drivers/vivid/
H A Dvivid-cec.c128 unsigned int first_idx = 0; in vivid_cec_bus_thread() local
150 first_idx = i; in vivid_cec_bus_thread()
151 xfers_on_bus[first_idx].adap = dev->xfers[i].adap; in vivid_cec_bus_thread()
173 valid_dest = find_dest_adap(dev, xfers_on_bus[first_idx].adap, dest); in vivid_cec_bus_thread()
190 xfers_on_bus[first_idx].status = first_status; in vivid_cec_bus_thread()
207 cec_transmit_attempt_done(xfers_on_bus[first_idx].adap, first_status); in vivid_cec_bus_thread()
211 if (xfers_on_bus[first_idx].adap != dev->cec_rx_adap) in vivid_cec_bus_thread()
231 if (xfers_on_bus[first_idx].adap != dev_tx->cec_tx_adap[hdmi_output]) in vivid_cec_bus_thread()
/linux/drivers/net/wireless/intel/iwlegacy/
H A D3945-rs.c432 int scale_rate_idx, first_idx, last_idx; in il3945_rs_tx_status() local
445 first_idx = sband->bitrates[info->status.rates[0].idx].hw_value; in il3945_rs_tx_status()
446 if (first_idx < 0 || first_idx >= RATE_COUNT_3945) { in il3945_rs_tx_status()
447 D_RATE("leave: Rate out of bounds: %d\n", first_idx); in il3945_rs_tx_status()
464 scale_rate_idx = first_idx; in il3945_rs_tx_status()
465 last_idx = first_idx; in il3945_rs_tx_status()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsock_iter_batch.c872 int first_idx, second_idx; in do_test() local
918 first_idx = -1; in do_test()
925 if (first_idx == -1) in do_test()
926 first_idx = outputs[0].idx; in do_test()
928 ASSERT_EQ(outputs[i].idx, first_idx, "first_idx"); in do_test()
933 free_fds(fds[first_idx], nr_soreuse); in do_test()
934 fds[first_idx] = NULL; in do_test()
939 second_idx = !first_idx; in do_test()
/linux/drivers/net/wireless/zydas/zd1211rw/
H A Dzd_mac.c436 int first_idx; in zd_mac_tx_status() local
454 first_idx = info->status.rates[0].idx; in zd_mac_tx_status()
455 ZD_ASSERT(0<=first_idx && first_idx<ARRAY_SIZE(zd_retry_rates)); in zd_mac_tx_status()
456 retries = &zd_retry_rates[first_idx]; in zd_mac_tx_status()
503 int first_idx, final_idx; in zd_mac_tx_failed() local
526 first_idx = info->status.rates[0].idx; in zd_mac_tx_failed()
527 ZD_ASSERT(0<=first_idx && first_idx<ARRAY_SIZE(zd_retry_rates)); in zd_mac_tx_failed()
528 retries = &zd_retry_rates[first_idx]; in zd_mac_tx_failed()
[all...]
/linux/fs/ext4/
H A Dreadpage.c182 pgoff_t first_idx) in ext4_set_bio_post_read_ctx() argument
189 if (ext4_need_verity(inode, first_idx)) in ext4_set_bio_post_read_ctx()
/linux/drivers/infiniband/hw/cxgb4/
H A Drestrack.c120 u16 first_idx, struct t4_swsqe *first_sqe, in fill_swsqes() argument
125 if (fill_swsqe(msg, sq, first_idx, first_sqe)) in fill_swsqes()
/linux/drivers/tty/
H A Dmoxa.c959 unsigned int i, first_idx; in moxa_init_board() local
1011 first_idx = (brd - moxa_boards) * MAX_PORTS_PER_BOARD; in moxa_init_board()
1014 first_idx + i, dev); in moxa_init_board()
1027 unsigned int a, opened, first_idx; in moxa_board_deinit() local
1054 first_idx = (brd - moxa_boards) * MAX_PORTS_PER_BOARD; in moxa_board_deinit()
1056 tty_unregister_device(moxaDriver, first_idx + a); in moxa_board_deinit()
/linux/drivers/net/wireless/mediatek/mt76/mt7603/
H A Dmac.c1091 int first_idx = 0, last_idx; in mt7603_fill_txs() local
1134 first_idx = max_t(int, 0, last_idx - (count - 1) / MT7603_RATE_RETRY); in mt7603_fill_txs()
1148 if (!first_idx && rs->probe_rate.idx >= 0) { in mt7603_fill_txs()
1159 info->status.rates[0] = rs->rates[first_idx / 2]; in mt7603_fill_txs()
1163 for (i = 0, idx = first_idx; count && idx <= last_idx; idx++) { in mt7603_fill_txs()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_fence.c779 unsigned int first_idx = start_wptr & ring->buf_mask; in amdgpu_ring_backup_unprocessed_command() local
784 for (i = first_idx; i != last_idx; ++i, i &= ring->buf_mask) in amdgpu_ring_backup_unprocessed_command()
/linux/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dmac.c1314 int first_idx = 0, last_idx; in mt7615_fill_txs() local
1350 first_idx = max_t(int, 0, last_idx - (count - 1) / MT7615_RATE_RETRY); in mt7615_fill_txs()
1364 if (!first_idx && rs->probe_rate.idx >= 0) { in mt7615_fill_txs()
1378 info->status.rates[0] = rs->rates[first_idx / 2]; in mt7615_fill_txs()
1382 for (i = 0, idx = first_idx; count && idx <= last_idx; idx++) { in mt7615_fill_txs()
/linux/fs/f2fs/
H A Ddata.c483 pgoff_t first_idx, in f2fs_set_bio_crypt_ctx() argument
492 fscrypt_set_bio_crypt_ctx(bio, inode, first_idx, gfp_mask); in f2fs_set_bio_crypt_ctx()
1041 pgoff_t first_idx, bool for_write) in f2fs_grab_read_bio() argument
1054 f2fs_set_bio_crypt_ctx(bio, inode, first_idx, NULL, GFP_NOFS); in f2fs_grab_read_bio()
1060 if (f2fs_need_verity(inode, first_idx)) in f2fs_grab_read_bio()
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_ll2.c1383 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/drivers/net/ethernet/atheros/alx/
H A Dmain.c1464 int maplen, f, first_idx = txq->write_idx; in alx_map_tx_skb() local
1522 f = first_idx; in alx_map_tx_skb()
/linux/fs/xfs/scrub/
H A Dtrace.h1175 __field(unsigned long long, first_idx)
1186 __entry->first_idx = si->first_folio_idx;
1191 __entry->first_idx = 0;
1202 __entry->first_idx,
/linux/kernel/locking/
H A Dlockdep.c5379 int first_idx = idx; in reacquire_held_locks() local
5397 *merged += (idx == first_idx); in reacquire_held_locks()
/linux/kernel/bpf/
H A Dverifier.c4014 * instruction index is the same as state's first_idx doesn't mean we are
4770 int first_idx = st->first_insn_idx; in __mark_chain_precision() local
4808 verbose(env, "mark_precise: frame%d: last_idx %d first_idx %d subseq_idx %d \n", in __mark_chain_precision()
4809 bt->frame, last_idx, first_idx, subseq_idx); in __mark_chain_precision()
4931 subseq_idx = first_idx; in __mark_chain_precision()
4933 first_idx = st->first_insn_idx; in __mark_chain_precision()