Searched refs:next_idx (Results 1 - 22 of 22) sorted by relevance

/linux-master/drivers/soc/fsl/dpio/
H A Dqbman-portal.c270 p->dqrr.next_idx = 0;
1196 /* there are new entries if pi != next_idx */
1197 if (pi == s->dqrr.next_idx)
1201 * if next_idx is/was the last ring index, and 'pi' is
1204 * repaired. Note: this logic needs to be based on next_idx
1208 if (s->dqrr.next_idx == (s->dqrr.dqrr_size - 1)) {
1209 pr_debug("next_idx=%d, pi=%d, clear reset bug\n",
1210 s->dqrr.next_idx, pi);
1214 QBMAN_CENA_SWP_DQRR(s->dqrr.next_idx)));
1217 p = qbman_get_cmd(s, QBMAN_CENA_SWP_DQRR(s->dqrr.next_idx));
[all...]
H A Dqbman-portal.h143 u32 next_idx; member in struct:qbman_swp::__anon2142
/linux-master/fs/bcachefs/
H A Dreflink.c152 u64 next_idx = end + le32_to_cpu(p.v->back_pad); local
160 next_idx = min(next_idx, r->offset - r->size);
161 if (*idx < next_idx)
175 *idx, next_idx)) {
181 if (next_idx <= start) {
182 bkey_i_to_reflink_p(update)->v.front_pad = cpu_to_le32(start - next_idx);
195 *idx = next_idx;
/linux-master/drivers/gpu/drm/amd/display/dc/link/protocols/
H A Dlink_dp_capability.c537 uint8_t cur_idx = 0, next_idx; local
551 next_idx = cur_idx + 1;
553 while (next_idx < ARRAY_SIZE(dp_lt_fallbacks))
555 if (dp_lt_fallbacks[next_idx].lane_count > max->lane_count ||
556 dp_lt_fallbacks[next_idx].link_rate > max->link_rate)
557 next_idx++;
558 else if (dp_lt_fallbacks[next_idx].link_rate == LINK_RATE_UHBR13_5 &&
568 next_idx++;
572 if (next_idx < ARRAY_SIZE(dp_lt_fallbacks)) {
573 cur->lane_count = dp_lt_fallbacks[next_idx]
[all...]
/linux-master/drivers/scsi/qla4xxx/
H A Dql4_init.c916 uint32_t idx = 0, next_idx = 0; local
922 for (idx = 0; idx < max_ddbs; idx = next_idx) {
924 &next_idx, &state, &conn_err,
927 next_idx++;
940 if (next_idx == 0)
H A Dql4_os.c6783 uint32_t idx = 0, next_idx = 0; local
6799 for (idx = 0; idx < max_ddbs; idx = next_idx) {
6801 NULL, &next_idx, &state,
6835 if (next_idx == 0)
6856 uint32_t next_idx = 0; local
6862 NULL, 0, NULL, &next_idx, &state,
7010 uint32_t idx = 0, next_idx = 0; local
7027 for (idx = 0; idx < max_ddbs; idx = next_idx) {
7029 NULL, &next_idx, &state,
7100 if (next_idx
7118 uint32_t idx = 0, next_idx = 0; local
7748 uint32_t next_idx = 0; local
[all...]
/linux-master/drivers/net/ethernet/mscc/
H A Docelot_fdma.c614 u16 next_idx; local
623 next_idx = ocelot_fdma_idx_next(tx_ring->next_to_use,
634 dcb->llp = ocelot_fdma_idx_dma(tx_ring->dcbs_dma, next_idx);
637 tx_ring->next_to_use = next_idx;
/linux-master/drivers/usb/dwc2/
H A Dhcd_ddma.c557 u16 next_idx; local
563 next_idx = dwc2_desclist_idx_inc(qh->td_last, inc, qh->dev_speed);
572 if (dwc2_frame_idx_num_gt(cur_idx, next_idx) || (cur_idx == next_idx)) {
/linux-master/drivers/net/ethernet/google/gve/
H A Dgve_tx.c568 u32 next_idx; local
606 next_idx = (tx->req + 1) & tx->mask;
607 gve_tx_fill_mtd_desc(&tx->desc[next_idx], skb);
611 next_idx = (tx->req + 1 + mtd_desc_nr + i - payload_iov) & tx->mask;
612 seg_desc = &tx->desc[next_idx];
H A Dgve_rx.c893 u32 next_idx; local
895 next_idx = rx->cnt & rx->mask;
896 desc = rx->desc.desc_ring + next_idx;
/linux-master/drivers/infiniband/hw/bnxt_re/
H A Dqplib_fp.c681 srq->swq[idx].next_idx = idx + 1;
682 srq->swq[srq->last_idx].next_idx = -1;
772 srq->start_idx = srq->swq[next].next_idx;
819 que->swq[indx].next_idx = indx + 1;
820 que->swq[que->swq_last].next_idx = 0; /* Make it circular */
2303 sq->swq_last = sq->swq[last].next_idx;
2351 rq->swq_last = rq->swq[last].next_idx;
2524 if (swq->next_idx == cqe_sq_cons &&
2551 sq->swq_last = swq->next_idx;
2574 srq->swq[srq->last_idx].next_idx
[all...]
H A Dqplib_fp.h119 int next_idx; member in struct:bnxt_qplib_swq
586 que->swq_start = que->swq[idx].next_idx;
/linux-master/drivers/nvdimm/
H A Dbtt.c628 u32 i, j, next_idx = 0; local
644 if ((next_idx == 1) &&
648 log_index[next_idx] = j;
649 next_idx++;
651 if (next_idx == 2) {
654 } else if (next_idx > 2) {
/linux-master/drivers/net/ethernet/broadcom/
H A Dcnic.h186 u16 (*next_idx)(u16); member in struct:kcq_info
H A Dcnic.c1000 info->next_idx = cnic_bnx2_next_idx;
1005 info->next_idx = cnic_bnx2x_next_idx;
2906 i = info->next_idx(i);
/linux-master/sound/soc/mediatek/common/
H A Dmtk-btcvsd.c463 unsigned int next_idx; local
467 next_idx = bt->tx->buffer_info.num_valid_addr - 1;
468 bt->tx->buffer_info.bt_sram_addr[next_idx] = ap_addr_tx;
/linux-master/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_nix.c3126 int idx, last_idx, next_idx, err; local
3145 prev_mce->pcifunc, next_idx,
3156 next_idx = idx + 1;
3159 mce->pcifunc, next_idx,
3161 (next_idx > last_idx) ? true : false);
3177 int idx, last_idx, next_idx; local
3196 regval = (next_idx << 16) | (1 << 12) | prev_mce->channel;
3205 next_idx = idx + 1;
3207 if (next_idx > last_idx)
3210 regval = (next_idx << 1
3348 int err = 0, idx, next_idx, last_idx, blkaddr, npc_blkaddr; local
[all...]
/linux-master/drivers/scsi/bnx2fc/
H A Dbnx2fc.h280 u16 next_idx; member in struct:bnx2fc_cmd_mgr
/linux-master/drivers/net/ethernet/mediatek/
H A Dmtk_eth_soc.c1514 int next_idx; local
1516 next_idx = NEXT_DESP_IDX(txd_to_idx(ring, txd, soc->txrx.txd_size),
1518 mtk_w32(eth, next_idx, MT7628_TX_CTX_IDX0);
/linux-master/fs/f2fs/
H A Ddata.c491 pgoff_t next_idx,
501 return fscrypt_mergeable_bio(bio, inode, next_idx);
490 f2fs_crypt_mergeable_bio(struct bio *bio, const struct inode *inode, pgoff_t next_idx, const struct f2fs_io_info *fio) argument
/linux-master/drivers/scsi/lpfc/
H A Dlpfc_init.c12450 int i, cpu, idx, next_idx, new_cpu, start_cpu, first_cpu; local
12616 * The next_idx is the idx from the FIRST_CPU loop above to account
12620 next_idx = idx;
12634 if (next_idx < phba->cfg_hdw_queue) {
12635 cpup->hdwq = next_idx;
12636 next_idx++;
/linux-master/kernel/bpf/
H A Dverifier.c12669 u32 next_idx, u32 curr_idx)
12674 branch = push_stack(env, next_idx, curr_idx, true);
12667 sanitize_speculative_path(struct bpf_verifier_env *env, const struct bpf_insn *insn, u32 next_idx, u32 curr_idx) argument

Completed in 475 milliseconds