Home
last modified time | relevance | path

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

12

/linux-6.15/drivers/comedi/drivers/
H A Dni_tiocmd.c42 unsigned int cidx = counter->counter_index; in ni_tio_configure_dma() local
140 NI_CtrArmStartTrigger(cidx), in ni_tio_input_cmd()
182 NI_CtrGate(cidx), in ni_tio_cmd_setup()
198 GI_GATE_INTERRUPT_ENABLE(cidx), in ni_tio_cmd_setup()
199 GI_GATE_INTERRUPT_ENABLE(cidx)); in ni_tio_cmd_setup()
391 NITIO_SHARED_STATUS_REG(cidx)); in ni_tio_acknowledge_and_confirm()
393 NITIO_STATUS_REG(cidx)); in ni_tio_acknowledge_and_confirm()
404 ack |= GI_GATE_ERROR_CONFIRM(cidx); in ni_tio_acknowledge_and_confirm()
416 if (gxx_status & GI_TC_ERROR(cidx)) { in ni_tio_acknowledge_and_confirm()
417 ack |= GI_TC_ERROR_CONFIRM(cidx); in ni_tio_acknowledge_and_confirm()
[all …]
H A Dni_tio.c174 ni_tio_write(counter, GI_RESET(cidx), NITIO_RESET_REG(cidx)); in ni_tio_reset_count_and_disarm()
315 NITIO_INPUT_SEL_REG(cidx))); in ni_m_series_clock_src_select()
379 NITIO_INPUT_SEL_REG(cidx))); in ni_660x_clock_src_select()
468 reg = NITIO_CNT_MODE_REG(cidx); in ni_tio_set_sync_mode()
1130 abz_reg = NITIO_ABZ_REG(cidx); in ni_tio_set_other_src()
1167 abz_reg = NITIO_ABZ_REG(cidx); in ni_tio_get_other_src()
1472 if (status & GI_ARMED(cidx)) { in ni_tio_insn_config()
1474 if (status & GI_COUNTING(cidx)) in ni_tio_insn_config()
1668 return (bits & GI_NEXT_LOAD_SRC(cidx)) in ni_tio_next_load_register()
1669 ? NITIO_LOADB_REG(cidx) in ni_tio_next_load_register()
[all …]
/linux-6.15/sound/pci/ac97/
H A Dac97_pcm.c402 reg = get_slot_reg(pcm, cidx, i, dbl); 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()
579 for (cidx = 0; cidx < 4; cidx++) { in snd_ac97_pcm_open()
604 for (cidx = 0; cidx < 4; cidx++) { in snd_ac97_pcm_open()
606 reg = get_slot_reg(pcm, cidx, i, r); in snd_ac97_pcm_open()
621 cidx, reg, rate, err); in snd_ac97_pcm_open()
650 int i, cidx; in snd_ac97_pcm_close() local
657 for (cidx = 0; cidx < 4; cidx++) { in snd_ac97_pcm_close()
[all …]
/linux-6.15/drivers/infiniband/hw/cxgb4/
H A Dt4.h52 __be16 cidx; member
185 u16 cidx; member
346 u16 cidx; member
376 u16 cidx; member
413 u16 cidx; member
465 srq->cidx++; in t4_srq_consume_ooo()
467 srq->cidx = 0; in t4_srq_consume_ooo()
476 srq->cidx = 0; in t4_srq_consume()
509 wq->rq.cidx = 0; in t4_rq_consume()
692 u16 cidx; member
[all …]
H A Dcq.c270 int cidx; in flush_completed_wrs() local
274 cidx = wq->sq.flush_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()
293 cidx = 0; in flush_completed_wrs()
294 wq->sq.flush_cidx = cidx; in flush_completed_wrs()
499 if (rel_idx == srq->cidx) { in reap_srq_cqe()
710 if (idx < wq->sq.cidx) in poll_cq()
[all …]
H A 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.15/arch/riscv/kvm/
H A Dvcpu_pmu.c212 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()
238 if (cidx >= kvm_pmu_num_counters(kvpmu) || cidx == 1) { 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()
385 if (pmu_ctr_read(vcpu, cidx, val) < 0) in kvm_riscv_vcpu_pmu_read_hpm()
470 if (cidx > RISCV_KVM_MAX_COUNTERS || cidx == 1) { in kvm_riscv_vcpu_pmu_ctr_info()
475 retdata->out_val = kvpmu->pmc[cidx].cinfo.value; in kvm_riscv_vcpu_pmu_ctr_info()
[all …]
/linux-6.15/sound/core/
H A 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()
H A Dpcm.c1046 int cidx, err; in snd_pcm_dev_register() local
1058 for (cidx = 0; cidx < 2; cidx++) { in snd_pcm_dev_register()
1060 if (pcm->streams[cidx].substream == NULL) in snd_pcm_dev_register()
1062 switch (cidx) { in snd_pcm_dev_register()
1072 &snd_pcm_f_ops[cidx], pcm, in snd_pcm_dev_register()
1073 pcm->streams[cidx].dev); in snd_pcm_dev_register()
1091 int cidx; in snd_pcm_dev_disconnect() local
1112 for_each_pcm_substream(pcm, cidx, substream) in snd_pcm_dev_disconnect()
1116 for (cidx = 0; cidx < 2; cidx++) { in snd_pcm_dev_disconnect()
1117 if (pcm->streams[cidx].dev) in snd_pcm_dev_disconnect()
[all …]
/linux-6.15/drivers/net/ethernet/chelsio/cxgb/
H A Dsge.c501 unsigned int cidx = q->cidx; in free_freelQ_buffers() local
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()
635 cidx = 0; in free_cmdQ_buffers()
639 q->cidx = cidx; in free_cmdQ_buffers()
1514 fl->cidx = 0; in process_responses()
1525 q->cidx = 0; in process_responses()
[all …]
/linux-6.15/drivers/scsi/csiostor/
H A Dcsio_wr.c871 uint16_t cidx = q->cidx = ntohs(stp->cidx); in csio_wr_get() local
882 if (pidx > cidx) { 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()
1024 flq->cidx++; in csio_wr_inval_flq_buf()
1026 flq->cidx = 0; in csio_wr_inval_flq_buf()
1206 q->cidx = 0; in csio_wr_process_iq()
[all …]
H A 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.15/drivers/net/ethernet/chelsio/cxgb3/
H A Dsge.c287 unsigned int cidx = q->cidx; in free_tx_desc() local
292 d = &q->sdesc[cidx]; 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()
378 unsigned int cidx = q->cidx; in free_rx_bufs() local
385 if (++cidx == q->size) in free_rx_bufs()
386 cidx = 0; in free_rx_bufs()
2402 fl->cidx = 0; in process_responses()
2413 q->cidx = 0; in process_responses()
[all …]
H A Dadapter.h107 unsigned int cidx; /* consumer index */ member
133 unsigned int cidx; /* consumer index */ member
171 unsigned int cidx; /* consumer index */ member
H A Dcommon.h737 unsigned int cidx);
741 unsigned int cidx);
744 unsigned int fl_thres, int gen, unsigned int cidx);
/linux-6.15/arch/riscv/include/asm/
H A 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.15/drivers/net/ethernet/chelsio/cxgb4vf/
H A Dsge.c381 unsigned int cidx = tq->cidx; in free_tx_desc() local
401 cidx = 0; in free_tx_desc()
405 tq->cidx = cidx; in free_tx_desc()
485 fl->cidx = 0; in free_rx_bufs()
513 fl->cidx = 0; in unmap_rx_buf()
1714 if (fl->cidx == 0) in restore_rx_bufs()
1717 fl->cidx--; in restore_rx_bufs()
1735 rspq->cidx = 0; in rspq_next()
2341 rspq->cidx = 0; in t4vf_sge_alloc_rxq()
2363 fl->cidx = 0; in t4vf_sge_alloc_rxq()
[all …]
H A 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.15/drivers/dma/amd/qdma/
H A Dqdma.c417 u16 ridx, u16 cidx) in qdma_update_cidx() argument
422 ((u32)ridx << 16) | cidx); in qdma_update_cidx()
595 queue->cidx = 0; in qdma_alloc_queue_resources()
649 if (((q->pidx + 1) & q->idx_mask) == q->cidx) in qdma_get_desc()
843 index = intr->cidx; in qdma_queue_isr()
848 u32 cidx; in qdma_queue_isr() local
862 cidx = FIELD_GET(QDMA_INTR_MASK_CIDX, intr_ent); in qdma_queue_isr()
865 comp_desc = (cidx - q->cidx) & q->idx_mask; in qdma_queue_isr()
884 q->cidx = cidx; in qdma_queue_isr()
913 intr->cidx = index; in qdma_queue_isr()
H A Dqdma.h219 u32 cidx; member
231 u16 cidx; member
/linux-6.15/drivers/net/ethernet/chelsio/cxgb4/
H A Dsge.c316 unsigned int cidx = q->cidx; in free_tx_desc() local
319 d = &q->sdesc[cidx]; in free_tx_desc()
331 cidx = 0; in free_tx_desc()
335 q->cidx = cidx; in free_tx_desc()
344 hw_cidx -= q->cidx; in reclaimable()
450 q->cidx = 0; in free_rx_bufs()
475 q->cidx = 0; in unmap_rx_buf()
3622 WRITE_ONCE(txq->q.stat->cidx, egr->cidx); in t4_tx_completion_handler()
3824 q->cidx--; in restore_rx_bufs()
3856 q->cidx = 0; in rspq_next()
[all …]
H A Dcxgb4_debugfs.c2697 T("TxQ CIDX:", q.cidx); in sge_qinfo_show()
2720 R("FL CIDX:", fl.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()
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()
2957 R("FL CIDX:", fl.cidx); in sge_qinfo_show()
3007 R("FL CIDX:", fl.cidx); in sge_qinfo_show()
3033 R("FL CIDX:", fl.cidx); in sge_qinfo_show()
[all …]
H A Dt4_hw.h151 __be16 cidx; member
/linux-6.15/drivers/hwtracing/stm/
H A 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.15/sound/pci/hda/
H A 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()
1017 #define __add_pb_sw_ctrl(spec, type, pfx, cidx, val) \ argument
1050 return add_vol_ctl(codec, pfx, cidx, chs, path); in add_stereo_vol()
1080 int cidx, struct nid_path *path) in add_stereo_sw() argument
1083 return add_sw_ctl(codec, pfx, cidx, chs, path); in add_stereo_sw()
2158 const char *pfx, int cidx) in create_extra_out() argument
2166 err = add_stereo_vol(codec, pfx, cidx, path); in create_extra_out()
[all …]

12