Home
last modified time | relevance | path

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

12

/linux-6.6.21/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.6.21/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.6.21/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.6.21/sound/core/
Dsound_oss.c91 int cidx = SNDRV_MINOR_OSS_CARD(minor); in snd_register_oss_device() local
114 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_AUDIO); in snd_register_oss_device()
117 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI); in snd_register_oss_device()
120 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI1); in snd_register_oss_device()
151 int cidx = SNDRV_MINOR_OSS_CARD(minor); in snd_unregister_oss_device() local
167 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_AUDIO); in snd_unregister_oss_device()
170 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI); in snd_unregister_oss_device()
173 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI1); in snd_unregister_oss_device()
Dpcm.c1056 int cidx, err; in snd_pcm_dev_register() local
1068 for (cidx = 0; cidx < 2; cidx++) { in snd_pcm_dev_register()
1070 if (pcm->streams[cidx].substream == NULL) in snd_pcm_dev_register()
1072 switch (cidx) { in snd_pcm_dev_register()
1082 &snd_pcm_f_ops[cidx], pcm, in snd_pcm_dev_register()
1083 pcm->streams[cidx].dev); in snd_pcm_dev_register()
1089 for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) in snd_pcm_dev_register()
1104 int cidx; in snd_pcm_dev_disconnect() local
1111 for_each_pcm_substream(pcm, cidx, substream) { in snd_pcm_dev_disconnect()
1125 for_each_pcm_substream(pcm, cidx, substream) in snd_pcm_dev_disconnect()
[all …]
/linux-6.6.21/arch/riscv/kvm/
Dvcpu_pmu.c199 static int pmu_ctr_read(struct kvm_vcpu *vcpu, unsigned long cidx, in pmu_ctr_read() argument
207 pmc = &kvpmu->pmc[cidx]; in pmu_ctr_read()
283 int cidx, ret = KVM_INSN_CONTINUE_NEXT_SEPC; in kvm_riscv_vcpu_pmu_read_hpm() local
305 cidx = csr_num - CSR_CYCLE; in kvm_riscv_vcpu_pmu_read_hpm()
307 if (pmu_ctr_read(vcpu, cidx, val) < 0) in kvm_riscv_vcpu_pmu_read_hpm()
323 int kvm_riscv_vcpu_pmu_ctr_info(struct kvm_vcpu *vcpu, unsigned long cidx, in kvm_riscv_vcpu_pmu_ctr_info() argument
328 if (cidx > RISCV_KVM_MAX_COUNTERS || cidx == 1) { in kvm_riscv_vcpu_pmu_ctr_info()
333 retdata->out_val = kvpmu->pmc[cidx].cinfo.value; in kvm_riscv_vcpu_pmu_ctr_info()
533 int kvm_riscv_vcpu_pmu_ctr_read(struct kvm_vcpu *vcpu, unsigned long cidx, in kvm_riscv_vcpu_pmu_ctr_read() argument
538 ret = pmu_ctr_read(vcpu, cidx, &retdata->out_val); in kvm_riscv_vcpu_pmu_ctr_read()
/linux-6.6.21/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.6.21/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.6.21/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.6.21/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
Dcxgb4vf_main.c2080 T("TxQ CIdx:", q.cidx); in sge_qinfo_show()
2087 R("RspQ CIdx:", rspq.cidx); in sge_qinfo_show()
2093 R("FL CIdx:", fl.cidx); in sge_qinfo_show()
2107 seq_printf(seq, "%-12s %16u\n", "RspQ Cidx:", evtq->cidx); in sge_qinfo_show()
2118 seq_printf(seq, "%-12s %16u\n", "RspQ Cidx:", intrq->cidx); in sge_qinfo_show()
2237 seq_printf(seq, "%-16s %8u\n", "RspQ CIdx:", evtq->cidx); in sge_qstats_show()
2245 seq_printf(seq, "%-16s %8u\n", "RspQ CIdx:", intrq->cidx); in sge_qstats_show()
/linux-6.6.21/arch/riscv/include/asm/
Dkvm_vcpu_pmu.h73 int kvm_riscv_vcpu_pmu_ctr_info(struct kvm_vcpu *vcpu, unsigned long cidx,
85 int kvm_riscv_vcpu_pmu_ctr_read(struct kvm_vcpu *vcpu, unsigned long cidx,
/linux-6.6.21/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.6.21/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.6.21/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 …]
/linux-6.6.21/drivers/dma/ti/
Dedma.c904 int bcnt, ccnt, cidx; in edma_config_pset() local
940 cidx = acnt; in edma_config_pset()
958 cidx = acnt * bcnt; in edma_config_pset()
965 src_cidx = cidx; in edma_config_pset()
973 dst_cidx = cidx; in edma_config_pset()
977 src_cidx = cidx; in edma_config_pset()
979 dst_cidx = cidx; in edma_config_pset()

12