Home
last modified time | relevance | path

Searched refs:last_idx (Results 1 – 25 of 35) sorted by relevance

12

/linux/drivers/cpuidle/governors/
A Dladder.c71 int last_idx = dev->last_state_idx; in ladder_select_state() local
82 last_state = &ldev->states[last_idx]; in ladder_select_state()
87 if (last_idx < drv->state_count - 1 && in ladder_select_state()
94 ladder_do_selection(dev, ldev, last_idx, last_idx + 1); in ladder_select_state()
95 return last_idx + 1; in ladder_select_state()
100 if (last_idx > first_idx && in ladder_select_state()
101 (dev->states_usage[last_idx].disable || in ladder_select_state()
113 if (last_idx > first_idx && in ladder_select_state()
118 ladder_do_selection(dev, ldev, last_idx, last_idx - 1); in ladder_select_state()
119 return last_idx - 1; in ladder_select_state()
[all …]
A Dmenu.c453 int last_idx = dev->last_state_idx; in menu_update() local
454 struct cpuidle_state *target = &drv->states[last_idx]; in menu_update()
484 } else if ((drv->states[last_idx].flags & CPUIDLE_FLAG_POLLING) && in menu_update()
/linux/arch/powerpc/platforms/pseries/
A Ddtl.c25 u64 last_idx; member
202 dtl->last_idx = 0; in dtl_enable()
255 u64 cur_idx, last_idx, i; in dtl_file_read() local
271 last_idx = dtl->last_idx; in dtl_file_read()
273 if (last_idx + dtl->buf_entries <= cur_idx) in dtl_file_read()
274 last_idx = cur_idx - dtl->buf_entries + 1; in dtl_file_read()
276 if (last_idx + n_req > cur_idx) in dtl_file_read()
277 n_req = cur_idx - last_idx; in dtl_file_read()
280 dtl->last_idx = last_idx + n_req; in dtl_file_read()
287 i = last_idx % dtl->buf_entries; in dtl_file_read()
/linux/drivers/net/wireless/intel/iwlegacy/
A D3945-rs.c431 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/drivers/thunderbolt/
A Dretimer.c455 int ret, i, last_idx = 0; in tb_retimer_scan() local
488 last_idx = i; in tb_retimer_scan()
493 if (!last_idx) in tb_retimer_scan()
497 for (i = 1; i <= last_idx; i++) { in tb_retimer_scan()
/linux/drivers/md/bcache/
A Djournal.c279 ja->last_idx = ja->discard_idx = (i + 1) % in bch_journal_read()
593 ja->discard_idx = ja->last_idx; in do_journal_discard()
609 if (ja->discard_idx == ja->last_idx) in do_journal_discard()
646 while (ja->last_idx != ja->cur_idx && in journal_reclaim()
647 ja->seq[ja->last_idx] < last_seq) in journal_reclaim()
648 ja->last_idx = (ja->last_idx + 1) % in journal_reclaim()
A Djournal.h139 unsigned int last_idx; member
/linux/drivers/media/rc/
A Dite-cir.c336 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/ipc/
A Dutil.c123 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/
A Dipc_namespace.h22 int last_idx; /* For wrap around detection */ member
/linux/arch/powerpc/platforms/ps3/
A Dos-area.c398 struct db_index *last_idx; member
426 i->last_idx = i->idx + db->count_64; in db_for_each_64()
434 if (i->idx >= i->last_idx) { in db_for_each_64()
/linux/net/ipv4/
A Dfib_semantics.c539 struct fib_info **last_resort, int *last_idx, in fib_detect_death() argument
565 (*last_idx < 0 && order > dflt && state != NUD_INCOMPLETE)) { in fib_detect_death()
567 *last_idx = order; in fib_detect_death()
2053 int order = -1, last_idx = -1; in fib_select_default() local
2094 &last_idx, fa1->fa_default)) { in fib_select_default()
2109 if (!fib_detect_death(fi, order, &last_resort, &last_idx, in fib_select_default()
2116 if (last_idx >= 0) in fib_select_default()
2118 fa1->fa_default = last_idx; in fib_select_default()
/linux/fs/f2fs/
A Dfile.c3414 pgoff_t page_idx = 0, last_idx; in f2fs_release_compress_blocks() local
3462 last_idx = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); in f2fs_release_compress_blocks()
3464 while (page_idx < last_idx) { in f2fs_release_compress_blocks()
3583 pgoff_t page_idx = 0, last_idx; in f2fs_reserve_compress_blocks() local
3615 last_idx = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); in f2fs_reserve_compress_blocks()
3617 while (page_idx < last_idx) { in f2fs_reserve_compress_blocks()
3980 pgoff_t page_idx = 0, last_idx; in f2fs_ioc_decompress_file() local
4017 last_idx = DIV_ROUND_UP(i_size_read(inode), PAGE_SIZE); in f2fs_ioc_decompress_file()
4019 count = last_idx - page_idx; in f2fs_ioc_decompress_file()
4052 pgoff_t page_idx = 0, last_idx; in f2fs_ioc_compress_file() local
[all …]
/linux/drivers/infiniband/hw/cxgb4/
A Drestrack.c121 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/wireless/intel/iwlwifi/mvm/
A Dutils.c229 u8 iwl_mvm_next_antenna(struct iwl_mvm *mvm, u8 valid, u8 last_idx) in iwl_mvm_next_antenna() argument
231 u8 ind = last_idx; in iwl_mvm_next_antenna()
241 return last_idx; in iwl_mvm_next_antenna()
/linux/drivers/net/ethernet/qlogic/qed/
A Dqed_ll2.c1344 u8 *start_idx, u8 *last_idx) in _qed_ll2_calc_allowed_conns() argument
1351 *last_idx = *start_idx + in _qed_ll2_calc_allowed_conns()
1356 *last_idx = *start_idx + in _qed_ll2_calc_allowed_conns()
1381 u8 i, first_idx, last_idx, *p_tx_max; in qed_ll2_acquire_connection() local
1387 _qed_ll2_calc_allowed_conns(p_hwfn, data, &first_idx, &last_idx); in qed_ll2_acquire_connection()
1390 for (i = first_idx; i < last_idx; i++) { in qed_ll2_acquire_connection()
/linux/include/pcmcia/
A Dcistpl.h383 u_char last_idx; member
/linux/fs/
A Dbinfmt_elf.c404 int i, first_idx = -1, last_idx = -1; in total_mapping_size() local
408 last_idx = i; in total_mapping_size()
416 return cmds[last_idx].p_vaddr + cmds[last_idx].p_memsz - in total_mapping_size()
/linux/drivers/net/wireless/mediatek/mt76/mt7603/
A Dmac.c1081 int first_idx = 0, last_idx; in mt7603_fill_txs() local
1102 last_idx = FIELD_GET(MT_TXS4_LAST_TX_RATE, txs); in mt7603_fill_txs()
1124 first_idx = max_t(int, 0, last_idx - (count - 1) / MT7603_RATE_RETRY); in mt7603_fill_txs()
1153 for (i = 0, idx = first_idx; count && idx <= last_idx; idx++) { in mt7603_fill_txs()
/linux/mm/
A Dz3fold.c667 int last_idx = __idx(zhdr, LAST); in compact_single_buddy() local
684 } else if (zhdr->last_chunks && zhdr->slots->slot[last_idx]) { in compact_single_buddy()
687 old_handle = (unsigned long)&zhdr->slots->slot[last_idx]; in compact_single_buddy()
/linux/drivers/net/ethernet/natsemi/
A Dns83820.c1048 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/drivers/infiniband/hw/bnxt_re/
A Dqplib_fp.c653 srq->last_idx = srq->hwq.max_elements - 1; in bnxt_qplib_create_srq()
656 srq->swq[srq->last_idx].next_idx = -1; in bnxt_qplib_create_srq()
736 if (srq->start_idx == srq->last_idx) { in bnxt_qplib_post_srq_recv()
2426 srq->swq[srq->last_idx].next_idx = (int)tag; in bnxt_qplib_release_srqe()
2427 srq->last_idx = (int)tag; in bnxt_qplib_release_srqe()
2428 srq->swq[srq->last_idx].next_idx = -1; in bnxt_qplib_release_srqe()
A Dqplib_fp.h104 int last_idx; member
/linux/drivers/target/iscsi/cxgbit/
A Dcxgbit_target.c1498 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/wireless/mediatek/mt76/mt7615/
A Dmac.c1278 int first_idx = 0, last_idx; in mt7615_fill_txs() local
1291 last_idx = FIELD_GET(MT_TXS3_LAST_TX_RATE, txs); in mt7615_fill_txs()
1314 first_idx = max_t(int, 0, last_idx - (count - 1) / MT7615_RATE_RETRY); in mt7615_fill_txs()
1346 for (i = 0, idx = first_idx; count && idx <= last_idx; idx++) { in mt7615_fill_txs()

Completed in 69 milliseconds

12