Home
last modified time | relevance | path

Searched refs:cidx (Results 1 – 25 of 43) sorted by relevance

12

/linux-6.12.1/drivers/comedi/drivers/
Dni_tiocmd.c42 unsigned int cidx = counter->counter_index; in ni_tio_configure_dma() local
55 ni_tio_set_bits(counter, NITIO_INPUT_SEL_REG(cidx), mask, bits); in ni_tio_configure_dma()
69 ni_tio_set_bits(counter, NITIO_DMA_CFG_REG(cidx), mask, bits); in ni_tio_configure_dma()
106 unsigned int cidx = counter->counter_index; in ni_tio_input_cmd() local
123 ni_tio_set_bits(counter, NITIO_CMD_REG(cidx), GI_SAVE_TRACE, 0); in ni_tio_input_cmd()
140 NI_CtrArmStartTrigger(cidx), in ni_tio_input_cmd()
164 unsigned int cidx = counter->counter_index; in ni_tio_cmd_setup() local
182 NI_CtrGate(cidx), in ni_tio_cmd_setup()
197 ni_tio_set_bits(counter, NITIO_INT_ENA_REG(cidx), in ni_tio_cmd_setup()
198 GI_GATE_INTERRUPT_ENABLE(cidx), in ni_tio_cmd_setup()
[all …]
Dni_tio.c172 unsigned int cidx = counter->counter_index; in ni_tio_reset_count_and_disarm() local
174 ni_tio_write(counter, GI_RESET(cidx), NITIO_RESET_REG(cidx)); in ni_tio_reset_count_and_disarm()
288 unsigned int cidx = counter->counter_index; in ni_tio_clock_src_modifiers() local
290 ni_tio_get_soft_copy(counter, NITIO_CNT_MODE_REG(cidx)); in ni_tio_clock_src_modifiers()
293 if (ni_tio_get_soft_copy(counter, NITIO_INPUT_SEL_REG(cidx)) & in ni_tio_clock_src_modifiers()
307 unsigned int cidx = counter->counter_index; in ni_m_series_clock_src_select() local
309 unsigned int second_gate_reg = NITIO_GATE2_REG(cidx); in ni_m_series_clock_src_select()
315 NITIO_INPUT_SEL_REG(cidx))); in ni_m_series_clock_src_select()
374 unsigned int cidx = counter->counter_index; in ni_660x_clock_src_select() local
379 NITIO_INPUT_SEL_REG(cidx))); in ni_660x_clock_src_select()
[all …]
/linux-6.12.1/sound/pci/ac97/
Dac97_pcm.c144 static unsigned char get_slot_reg(struct ac97_pcm *pcm, unsigned short cidx, in get_slot_reg() argument
154 return rate_reg_tables[dbl][pcm->r[dbl].rate_table[cidx]][slot - 3]; in get_slot_reg()
393 static unsigned int get_rates(struct ac97_pcm *pcm, unsigned int cidx, unsigned short slots, int db… in get_rates() argument
402 reg = get_slot_reg(pcm, cidx, i, dbl); in get_rates()
411 rates &= pcm->r[dbl].codec[cidx]->rates[idx]; in get_rates()
559 int i, cidx, r, ok_flag; in snd_ac97_pcm_open() local
567 for (cidx = 0; cidx < 4; cidx++) in snd_ac97_pcm_open()
568 if (bus->codec[cidx] && (bus->codec[cidx]->ext_id & AC97_EI_SPDIF)) { in snd_ac97_pcm_open()
569 err = set_spdif_rate(bus->codec[cidx], rate); in snd_ac97_pcm_open()
579 for (cidx = 0; cidx < 4; cidx++) { in snd_ac97_pcm_open()
[all …]
/linux-6.12.1/drivers/infiniband/hw/cxgb4/
Dt4.h52 __be16 cidx; member
185 u16 cidx; member
277 #define CQE_WRID_SQ_IDX(x) ((x)->u.scqe.cidx)
346 u16 cidx; member
376 u16 cidx; member
413 u16 cidx; member
465 srq->cidx++; in t4_srq_consume_ooo()
466 if (srq->cidx == srq->size) in t4_srq_consume_ooo()
467 srq->cidx = 0; in t4_srq_consume_ooo()
468 srq->queue[srq->size].status.host_cidx = srq->cidx; in t4_srq_consume_ooo()
[all …]
Dcq.c248 wq->sq.flush_cidx = wq->sq.cidx; in c4iw_flush_sq()
270 int cidx; in flush_completed_wrs() local
273 wq->sq.flush_cidx = wq->sq.cidx; in flush_completed_wrs()
274 cidx = wq->sq.flush_cidx; in flush_completed_wrs()
276 while (cidx != wq->sq.pidx) { in flush_completed_wrs()
277 swsqe = &wq->sq.sw_sq[cidx]; in flush_completed_wrs()
279 if (++cidx == wq->sq.size) in flush_completed_wrs()
280 cidx = 0; in flush_completed_wrs()
287 cidx, cq->sw_pidx); in flush_completed_wrs()
292 if (++cidx == wq->sq.size) in flush_completed_wrs()
[all …]
Drestrack.c48 if (rdma_nl_put_driver_u32(msg, "cidx", wq->sq.cidx)) in fill_sq()
74 if (rdma_nl_put_driver_u32(msg, "cidx", wq->rq.cidx)) in fill_rq()
159 if (wq.sq.cidx != wq.sq.pidx) { in c4iw_fill_res_qp_entry()
160 first_sq_idx = wq.sq.cidx; in c4iw_fill_res_qp_entry()
279 if (rdma_nl_put_driver_u32(msg, "cidx", cq->cidx)) in fill_cq()
338 idx = (cq->cidx > 0) ? cq->cidx - 1 : cq->size - 1; in fill_hwcqes()
341 idx = cq->cidx; in fill_hwcqes()
396 idx = (cq.cidx > 0) ? cq.cidx - 1 : cq.size - 1; in c4iw_fill_res_cq_entry()
399 idx = cq.cidx; in c4iw_fill_res_cq_entry()
/linux-6.12.1/arch/riscv/kvm/
Dvcpu_pmu.c200 static int pmu_fw_ctr_read_hi(struct kvm_vcpu *vcpu, unsigned long cidx, in pmu_fw_ctr_read_hi() argument
212 if (cidx >= kvm_pmu_num_counters(kvpmu) || cidx == 1) { in pmu_fw_ctr_read_hi()
213 pr_warn("Invalid counter id [%ld]during read\n", cidx); in pmu_fw_ctr_read_hi()
217 pmc = &kvpmu->pmc[cidx]; in pmu_fw_ctr_read_hi()
230 static int pmu_ctr_read(struct kvm_vcpu *vcpu, unsigned long cidx, in pmu_ctr_read() argument
238 if (cidx >= kvm_pmu_num_counters(kvpmu) || cidx == 1) { in pmu_ctr_read()
239 pr_warn("Invalid counter id [%ld] during read\n", cidx); in pmu_ctr_read()
243 pmc = &kvpmu->pmc[cidx]; in pmu_ctr_read()
361 int cidx, ret = KVM_INSN_CONTINUE_NEXT_SEPC; in kvm_riscv_vcpu_pmu_read_hpm() local
383 cidx = csr_num - CSR_CYCLE; in kvm_riscv_vcpu_pmu_read_hpm()
[all …]
/linux-6.12.1/sound/core/
Dsound_oss.c90 int cidx = SNDRV_MINOR_OSS_CARD(minor); in snd_register_oss_device() local
113 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_AUDIO); in snd_register_oss_device()
116 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI); in snd_register_oss_device()
119 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI1); in snd_register_oss_device()
148 int cidx = SNDRV_MINOR_OSS_CARD(minor); in snd_unregister_oss_device() local
162 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_AUDIO); in snd_unregister_oss_device()
165 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI); in snd_unregister_oss_device()
168 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI1); in snd_unregister_oss_device()
Dpcm.c1048 int cidx, err; in snd_pcm_dev_register() local
1060 for (cidx = 0; cidx < 2; cidx++) { in snd_pcm_dev_register()
1062 if (pcm->streams[cidx].substream == NULL) in snd_pcm_dev_register()
1064 switch (cidx) { in snd_pcm_dev_register()
1074 &snd_pcm_f_ops[cidx], pcm, in snd_pcm_dev_register()
1075 pcm->streams[cidx].dev); in snd_pcm_dev_register()
1081 for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) in snd_pcm_dev_register()
1093 int cidx; in snd_pcm_dev_disconnect() local
1100 for_each_pcm_substream(pcm, cidx, substream) { in snd_pcm_dev_disconnect()
1114 for_each_pcm_substream(pcm, cidx, substream) in snd_pcm_dev_disconnect()
[all …]
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb/
Dsge.c176 u16 cidx; /* consumer index (HW) */ member
189 u16 cidx; /* consumer index (HW) */ member
202 u16 cidx; /* consumer index (SW) */ member
501 unsigned int cidx = q->cidx; in free_freelQ_buffers() local
504 struct freelQ_ce *ce = &q->centries[cidx]; in free_freelQ_buffers()
510 if (++cidx == q->size) in free_freelQ_buffers()
511 cidx = 0; in free_freelQ_buffers()
616 unsigned int cidx = q->cidx; in free_cmdQ_buffers() local
619 ce = &q->centries[cidx]; in free_cmdQ_buffers()
634 if (++cidx == q->size) { in free_cmdQ_buffers()
[all …]
/linux-6.12.1/drivers/scsi/csiostor/
Dcsio_wr.c247 q->pidx = q->cidx = q->inc_idx = 0; in csio_wr_alloc_q()
871 uint16_t cidx = q->cidx = ntohs(stp->cidx); in csio_wr_get() local
879 CSIO_DB_ASSERT(cidx <= q->credits); in csio_wr_get()
882 if (pidx > cidx) { in csio_wr_get()
883 credits = q->credits - (pidx - cidx) - 1; in csio_wr_get()
884 } else if (cidx > pidx) { in csio_wr_get()
885 credits = cidx - pidx - 1; in csio_wr_get()
1002 if (q->pidx > q->cidx) in csio_wr_avail_qcredits()
1003 return q->pidx - q->cidx; in csio_wr_avail_qcredits()
1004 else if (q->cidx > q->pidx) in csio_wr_avail_qcredits()
[all …]
Dcsio_wr.h275 __be16 cidx; member
396 uint16_t cidx; /* consumer index */ member
455 #define csio_q_cidx(__hw, __idx) ((__hw)->wrm.q_arr[(__idx)]->cidx)
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c234 unsigned int cidx, struct pci_dev *pdev) in unmap_skb() argument
237 struct tx_sw_desc *d = &q->sdesc[cidx]; in unmap_skb()
240 sgp = (struct sg_ent *)&q->desc[cidx].flit[d->sflit]; in unmap_skb()
266 d = cidx + 1 == q->size ? q->sdesc : d + 1; in unmap_skb()
287 unsigned int cidx = q->cidx; in free_tx_desc() local
292 d = &q->sdesc[cidx]; in free_tx_desc()
296 unmap_skb(d->skb, q, cidx, pdev); in free_tx_desc()
303 if (++cidx == q->size) { in free_tx_desc()
304 cidx = 0; in free_tx_desc()
308 q->cidx = cidx; in free_tx_desc()
[all …]
Dadapter.h107 unsigned int cidx; /* consumer index */ member
133 unsigned int cidx; /* consumer index */ member
171 unsigned int cidx; /* consumer index */ member
Dcommon.h737 unsigned int cidx);
741 unsigned int cidx);
744 unsigned int fl_thres, int gen, unsigned int cidx);
/linux-6.12.1/arch/riscv/include/asm/
Dkvm_vcpu_pmu.h81 int kvm_riscv_vcpu_pmu_ctr_info(struct kvm_vcpu *vcpu, unsigned long cidx,
93 int kvm_riscv_vcpu_pmu_fw_ctr_read(struct kvm_vcpu *vcpu, unsigned long cidx,
95 int kvm_riscv_vcpu_pmu_fw_ctr_read_hi(struct kvm_vcpu *vcpu, unsigned long cidx,
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c381 unsigned int cidx = tq->cidx; in free_tx_desc() local
386 sdesc = &tq->sdesc[cidx]; in free_tx_desc()
400 if (++cidx == tq->size) { in free_tx_desc()
401 cidx = 0; in free_tx_desc()
405 tq->cidx = cidx; in free_tx_desc()
413 int hw_cidx = be16_to_cpu(tq->stat->cidx); in reclaimable()
414 int reclaimable = hw_cidx - tq->cidx; in reclaimable()
476 struct rx_sw_desc *sdesc = &fl->sdesc[fl->cidx]; in free_rx_bufs()
484 if (++fl->cidx == fl->size) in free_rx_bufs()
485 fl->cidx = 0; in free_rx_bufs()
[all …]
Dadapter.h129 unsigned int cidx; /* consumer index */ member
169 unsigned int cidx; /* consumer index */ member
236 unsigned int cidx; /* SW consumer index */ member
/linux-6.12.1/drivers/dma/amd/qdma/
Dqdma.c413 u16 ridx, u16 cidx) in qdma_update_cidx() argument
418 ((u32)ridx << 16) | cidx); in qdma_update_cidx()
597 queue->cidx = 0; in qdma_alloc_queue_resources()
651 if (((q->pidx + 1) & q->idx_mask) == q->cidx) in qdma_get_desc()
845 index = intr->cidx; in qdma_queue_isr()
850 u32 cidx; in qdma_queue_isr() local
864 cidx = FIELD_GET(QDMA_INTR_MASK_CIDX, intr_ent); in qdma_queue_isr()
867 comp_desc = (cidx - q->cidx) & q->idx_mask; in qdma_queue_isr()
886 q->cidx = cidx; in qdma_queue_isr()
915 intr->cidx = index; in qdma_queue_isr()
Dqdma.h219 u32 cidx; member
231 u16 cidx; member
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c316 unsigned int cidx = q->cidx; in free_tx_desc() local
319 d = &q->sdesc[cidx]; in free_tx_desc()
330 if (++cidx == q->size) { in free_tx_desc()
331 cidx = 0; in free_tx_desc()
335 q->cidx = cidx; in free_tx_desc()
343 int hw_cidx = ntohs(READ_ONCE(q->stat->cidx)); in reclaimable()
344 hw_cidx -= q->cidx; in reclaimable()
441 struct rx_sw_desc *d = &q->sdesc[q->cidx]; in free_rx_bufs()
449 if (++q->cidx == q->size) in free_rx_bufs()
450 q->cidx = 0; in free_rx_bufs()
[all …]
Dcxgb4_debugfs.c2697 T("TxQ CIDX:", q.cidx); in sge_qinfo_show()
2711 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show()
2720 R("FL CIDX:", fl.cidx); in sge_qinfo_show()
2770 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show()
2779 R("FL CIDX:", fl.cidx); in sge_qinfo_show()
2820 T("TxQ CIDX:", q.cidx); in sge_qinfo_show()
2825 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show()
2834 R("FL CIDX:", fl.cidx); in sge_qinfo_show()
2889 T("CIDX:", cidx); in sge_qinfo_show()
2928 T("TxQ CIDX:", q.cidx); in sge_qinfo_show()
[all …]
Dt4_hw.h151 __be16 cidx; member
/linux-6.12.1/drivers/hwtracing/stm/
Dcore.c285 unsigned int midx, cidx, mend, cend; in stm_output_assign() local
299 stp_policy_node_get_ranges(policy_node, &midx, &mend, &cidx, &cend); in stm_output_assign()
307 ret = stm_find_master_chan(stm, width, &midx, mend, &cidx, cend); in stm_output_assign()
312 output->channel = cidx; in stm_output_assign()
327 dev_dbg(&stm->dev, "assigned %u:%u (+%u)\n", midx, cidx, width); in stm_output_assign()
/linux-6.12.1/sound/pci/hda/
Dhda_generic.c980 int cidx, unsigned long val) in add_control() argument
987 knew->index = cidx; in add_control()
998 const char *sfx, int cidx, unsigned long val) in add_control_with_pfx() argument
1006 if (!add_control(spec, type, name, cidx, val)) in add_control_with_pfx()
1015 #define __add_pb_vol_ctrl(spec, type, pfx, cidx, val) \ argument
1016 add_control_with_pfx(spec, type, pfx, "Playback", "Volume", cidx, val)
1017 #define __add_pb_sw_ctrl(spec, type, pfx, cidx, val) \ argument
1018 add_control_with_pfx(spec, type, pfx, "Playback", "Switch", cidx, val)
1020 static int add_vol_ctl(struct hda_codec *codec, const char *pfx, int cidx, in add_vol_ctl() argument
1030 return __add_pb_vol_ctrl(codec->spec, HDA_CTL_WIDGET_VOL, pfx, cidx, val); in add_vol_ctl()
[all …]

12