Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/drivers/cpuidle/governors/
H A Dladder.c72 int first_idx = drv->states[0].flags & CPUIDLE_FLAG_POLLING ? 1 : 0; in ladder_select_state() local
100 if (last_idx > first_idx && in ladder_select_state()
105 for (i = last_idx - 1; i > first_idx; i--) { in ladder_select_state()
113 if (last_idx > first_idx && in ladder_select_state()
136 int first_idx = drv->states[0].flags & CPUIDLE_FLAG_POLLING ? 1 : 0; in ladder_enable_device() local
141 dev->last_state_idx = first_idx; in ladder_enable_device()
143 for (i = first_idx; i < drv->state_count; i++) { in ladder_enable_device()
155 if (i > first_idx) in ladder_enable_device()
/OK3568_Linux_fs/kernel/drivers/net/wireless/intel/iwlegacy/
H A D3945-rs.c431 int scale_rate_idx, first_idx, last_idx; in il3945_rs_tx_status() local
444 first_idx = sband->bitrates[info->status.rates[0].idx].hw_value; in il3945_rs_tx_status()
445 if (first_idx < 0 || first_idx >= RATE_COUNT_3945) { in il3945_rs_tx_status()
446 D_RATE("leave: Rate out of bounds: %d\n", first_idx); in il3945_rs_tx_status()
463 scale_rate_idx = first_idx; in il3945_rs_tx_status()
464 last_idx = first_idx; in il3945_rs_tx_status()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/fs/ext4/
H A Dreadpage.c209 pgoff_t first_idx) in ext4_set_bio_post_read_ctx() argument
216 if (ext4_need_verity(inode, first_idx)) in ext4_set_bio_post_read_ctx()
/OK3568_Linux_fs/kernel/arch/powerpc/mm/
H A Dmmu_decl.h147 extern void loadcam_multi(int first_idx, int num, int tmp_idx);
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/tty/
H A Dmoxa.c825 unsigned int i, first_idx; in moxa_init_board() local
878 first_idx = (brd - moxa_boards) * MAX_PORTS_PER_BOARD; in moxa_init_board()
881 first_idx + i, dev); in moxa_init_board()
894 unsigned int a, opened, first_idx; in moxa_board_deinit() local
921 first_idx = (brd - moxa_boards) * MAX_PORTS_PER_BOARD; in moxa_board_deinit()
923 tty_unregister_device(moxaDriver, first_idx + a); in moxa_board_deinit()
/OK3568_Linux_fs/kernel/tools/perf/util/
H A Dparse-events.h127 int first_idx;/* as above, but for the first encountered error */ member
H A Dparse-events.c201 err->first_idx = err->idx; in parse_events__handle_error()
2264 __parse_events_print_error(err->first_idx, err->first_str, in parse_events_print_error()
/OK3568_Linux_fs/kernel/fs/
H A Dbinfmt_elf.c401 int i, first_idx = -1, last_idx = -1; in total_mapping_size() local
406 if (first_idx == -1) in total_mapping_size()
407 first_idx = i; in total_mapping_size()
410 if (first_idx == -1) in total_mapping_size()
414 ELF_PAGESTART(cmds[first_idx].p_vaddr); in total_mapping_size()
/OK3568_Linux_fs/kernel/drivers/net/wireless/mediatek/mt76/mt7603/
H A Dmac.c1065 int first_idx = 0, last_idx; in mt7603_fill_txs() local
1108 first_idx = max_t(int, 0, last_idx - (count - 1) / MT7603_RATE_RETRY); in mt7603_fill_txs()
1122 if (!first_idx && rs->probe_rate.idx >= 0) { in mt7603_fill_txs()
1133 info->status.rates[0] = rs->rates[first_idx / 2]; in mt7603_fill_txs()
1137 for (i = 0, idx = first_idx; count && idx <= last_idx; idx++) { in mt7603_fill_txs()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/phy/bb/
H A Dhalbb_env_mntr.c351 u8 first_idx = 255; in halbb_nhm_exclu_noise_figure() local
361 if (first_idx == 255) { in halbb_nhm_exclu_noise_figure()
362 first_idx = i; in halbb_nhm_exclu_noise_figure()
372 if (((first_idx + i) < NHM_RPT_NUM) && in halbb_nhm_exclu_noise_figure()
373 (env->nhm_wgt[first_idx + i] <= NHM_NOISE_F_TH)) in halbb_nhm_exclu_noise_figure()
374 non_noise_f -= env->nhm_sw_result[first_idx + i]; in halbb_nhm_exclu_noise_figure()
380 if ((first_idx != 255) && in halbb_nhm_exclu_noise_figure()
381 (env->nhm_wgt[first_idx] > NHM_NOISE_F_TH)) in halbb_nhm_exclu_noise_figure()
382 non_noise_f -= env->nhm_sw_result[first_idx]; in halbb_nhm_exclu_noise_figure()
391 first_idx, second_idx, non_noise_f); in halbb_nhm_exclu_noise_figure()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/phy/bb/
H A Dhalbb_env_mntr.c351 u8 first_idx = 255; in halbb_nhm_exclu_noise_figure() local
361 if (first_idx == 255) { in halbb_nhm_exclu_noise_figure()
362 first_idx = i; in halbb_nhm_exclu_noise_figure()
372 if (((first_idx + i) < NHM_RPT_NUM) && in halbb_nhm_exclu_noise_figure()
373 (env->nhm_wgt[first_idx + i] <= NHM_NOISE_F_TH)) in halbb_nhm_exclu_noise_figure()
374 non_noise_f -= env->nhm_sw_result[first_idx + i]; in halbb_nhm_exclu_noise_figure()
380 if ((first_idx != 255) && in halbb_nhm_exclu_noise_figure()
381 (env->nhm_wgt[first_idx] > NHM_NOISE_F_TH)) in halbb_nhm_exclu_noise_figure()
382 non_noise_f -= env->nhm_sw_result[first_idx]; in halbb_nhm_exclu_noise_figure()
391 first_idx, second_idx, non_noise_f); in halbb_nhm_exclu_noise_figure()
/OK3568_Linux_fs/kernel/drivers/net/wireless/mediatek/mt76/mt7615/
H A Dmac.c1180 int first_idx = 0, last_idx; in mt7615_fill_txs() local
1216 first_idx = max_t(int, 0, last_idx - (count - 1) / MT7615_RATE_RETRY); in mt7615_fill_txs()
1230 if (!first_idx && rs->probe_rate.idx >= 0) { in mt7615_fill_txs()
1244 info->status.rates[0] = rs->rates[first_idx / 2]; in mt7615_fill_txs()
1248 for (i = 0, idx = first_idx; count && idx <= last_idx; idx++) { in mt7615_fill_txs()
/OK3568_Linux_fs/kernel/mm/
H A Dz3fold.c682 int first_idx = __idx(zhdr, FIRST); in compact_single_buddy() local
691 if (zhdr->first_chunks && zhdr->slots->slot[first_idx]) { in compact_single_buddy()
694 old_handle = (unsigned long)&zhdr->slots->slot[first_idx]; in compact_single_buddy()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/phydm/
H A Dphydm_ccx.c928 u8 first_idx = 0; in phydm_nhm_cal_nhm_env() local
937 first_idx = i; in phydm_nhm_cal_nhm_env()
944 if (((first_idx + i) < NHM_RPT_NUM) && in phydm_nhm_cal_nhm_env()
945 (ccx->nhm_wgt[first_idx + i] <= NHM_IC_NOISE_TH)) in phydm_nhm_cal_nhm_env()
946 nhm_env -= ccx->nhm_result[first_idx + i]; in phydm_nhm_cal_nhm_env()
954 first_idx, nhm_env); in phydm_nhm_cal_nhm_env()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/hal/phydm/
H A Dphydm_ccx.c927 u8 first_idx = 0; in phydm_nhm_cal_nhm_env() local
936 first_idx = i; in phydm_nhm_cal_nhm_env()
943 if (((first_idx + i) < NHM_RPT_NUM) && in phydm_nhm_cal_nhm_env()
944 (ccx->nhm_wgt[first_idx + i] <= NHM_IC_NOISE_TH)) in phydm_nhm_cal_nhm_env()
945 nhm_env -= ccx->nhm_result[first_idx + i]; in phydm_nhm_cal_nhm_env()
953 first_idx, nhm_env); in phydm_nhm_cal_nhm_env()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/hal/phydm/
H A Dphydm_ccx.c243 u8 first_idx = 0; in phydm_nhm_cal_nhm_env() local
252 first_idx = i; in phydm_nhm_cal_nhm_env()
259 if (((first_idx + i) < NHM_RPT_NUM) && in phydm_nhm_cal_nhm_env()
260 (ccx->nhm_wgt[first_idx + i] <= NHM_IC_NOISE_TH)) in phydm_nhm_cal_nhm_env()
261 nhm_env -= ccx->nhm_result[first_idx + i]; in phydm_nhm_cal_nhm_env()
269 first_idx, nhm_env); in phydm_nhm_cal_nhm_env()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/phydm/
H A Dphydm_ccx.c243 u8 first_idx = 0; in phydm_nhm_cal_nhm_env() local
252 first_idx = i; in phydm_nhm_cal_nhm_env()
259 if (((first_idx + i) < NHM_RPT_NUM) && in phydm_nhm_cal_nhm_env()
260 (ccx->nhm_wgt[first_idx + i] <= NHM_IC_NOISE_TH)) in phydm_nhm_cal_nhm_env()
261 nhm_env -= ccx->nhm_result[first_idx + i]; in phydm_nhm_cal_nhm_env()
269 first_idx, nhm_env); in phydm_nhm_cal_nhm_env()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/hal/phydm/
H A Dphydm_ccx.c243 u8 first_idx = 0; in phydm_nhm_cal_nhm_env() local
252 first_idx = i; in phydm_nhm_cal_nhm_env()
259 if (((first_idx + i) < NHM_RPT_NUM) && in phydm_nhm_cal_nhm_env()
260 (ccx->nhm_wgt[first_idx + i] <= NHM_IC_NOISE_TH)) in phydm_nhm_cal_nhm_env()
261 nhm_env -= ccx->nhm_result[first_idx + i]; in phydm_nhm_cal_nhm_env()
269 first_idx, nhm_env); in phydm_nhm_cal_nhm_env()
/OK3568_Linux_fs/kernel/fs/f2fs/
H A Ddata.c437 pgoff_t first_idx, in f2fs_set_bio_crypt_ctx() argument
446 fscrypt_set_bio_crypt_ctx(bio, inode, first_idx, gfp_mask); in f2fs_set_bio_crypt_ctx()
1002 pgoff_t first_idx, bool for_write) in f2fs_grab_read_bio() argument
1015 f2fs_set_bio_crypt_ctx(bio, inode, first_idx, NULL, GFP_NOFS); in f2fs_grab_read_bio()
1024 if (f2fs_need_verity(inode, first_idx)) in f2fs_grab_read_bio()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/qlogic/qed/
H A Dqed_ll2.c1354 u8 i, first_idx, last_idx, *p_tx_max; in qed_ll2_acquire_connection() local
1360 _qed_ll2_calc_allowed_conns(p_hwfn, data, &first_idx, &last_idx); in qed_ll2_acquire_connection()
1363 for (i = first_idx; i < last_idx; i++) { in qed_ll2_acquire_connection()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/atheros/alx/
H A Dmain.c1441 int maplen, f, first_idx = txq->write_idx; in alx_map_tx_skb() local
1499 f = first_idx; in alx_map_tx_skb()
/OK3568_Linux_fs/kernel/kernel/locking/
H A Dlockdep.c5086 int first_idx = idx; in reacquire_held_locks() local
5104 *merged += (idx == first_idx); in reacquire_held_locks()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/
H A Ddhd_linux.c21658 uint32 first_idx;
21669 first_idx = __dhd_ring_ptr2idx(ring, first_ptr, "LCK FIRST", type);
21670 if (first_idx >= ring->elem_cnt) {
21674 first_idx = ring->read_idx;
21687 tmp_cnt = __dhd_fixed_ring_get_count(ring, ring->read_idx, first_idx);
21690 ring->write_idx, ring->read_idx, first_idx));
21701 ring->lock_idx = first_idx;
21702 ring->lock_count = __dhd_fixed_ring_get_count(ring, first_idx, last_idx);

12