Home
last modified time | relevance | path

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

12

/linux-6.1.9/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.1.9/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.1.9/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.1.9/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.c1054 int cidx, err; in snd_pcm_dev_register() local
1066 for (cidx = 0; cidx < 2; cidx++) { in snd_pcm_dev_register()
1068 if (pcm->streams[cidx].substream == NULL) in snd_pcm_dev_register()
1070 switch (cidx) { in snd_pcm_dev_register()
1080 &snd_pcm_f_ops[cidx], pcm, in snd_pcm_dev_register()
1081 &pcm->streams[cidx].dev); in snd_pcm_dev_register()
1087 for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) in snd_pcm_dev_register()
1102 int cidx; in snd_pcm_dev_disconnect() local
1109 for_each_pcm_substream(pcm, cidx, substream) { in snd_pcm_dev_disconnect()
1123 for_each_pcm_substream(pcm, cidx, substream) in snd_pcm_dev_disconnect()
[all …]
/linux-6.1.9/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.1.9/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.1.9/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c239 unsigned int cidx, struct pci_dev *pdev) in unmap_skb() argument
242 struct tx_sw_desc *d = &q->sdesc[cidx]; in unmap_skb()
245 sgp = (struct sg_ent *)&q->desc[cidx].flit[d->sflit]; in unmap_skb()
271 d = cidx + 1 == q->size ? q->sdesc : d + 1; in unmap_skb()
292 unsigned int cidx = q->cidx; in free_tx_desc() local
297 d = &q->sdesc[cidx]; in free_tx_desc()
301 unmap_skb(d->skb, q, cidx, pdev); in free_tx_desc()
308 if (++cidx == q->size) { in free_tx_desc()
309 cidx = 0; in free_tx_desc()
313 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);
Dt3_hw.c2179 unsigned int cidx) in t3_sge_init_ecntxt() argument
2189 t3_write_reg(adapter, A_SG_CONTEXT_DATA0, V_EC_INDEX(cidx) | in t3_sge_init_ecntxt()
2222 unsigned int cidx) in t3_sge_init_flcntxt() argument
2234 V_FL_INDEX_LO(cidx & M_FL_INDEX_LO)); in t3_sge_init_flcntxt()
2236 V_FL_GEN(gen) | V_FL_INDEX_HI(cidx >> 12) | in t3_sge_init_flcntxt()
2261 unsigned int fl_thres, int gen, unsigned int cidx) in t3_sge_init_rspcntxt() argument
2272 V_CQ_INDEX(cidx)); in t3_sge_init_rspcntxt()
/linux-6.1.9/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.1.9/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.1.9/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.1.9/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
1002 if (!add_control(spec, type, name, cidx, val)) in add_control_with_pfx()
1011 #define __add_pb_vol_ctrl(spec, type, pfx, cidx, val) \ argument
1012 add_control_with_pfx(spec, type, pfx, "Playback", "Volume", cidx, val)
1013 #define __add_pb_sw_ctrl(spec, type, pfx, cidx, val) \ argument
1014 add_control_with_pfx(spec, type, pfx, "Playback", "Switch", cidx, val)
1016 static int add_vol_ctl(struct hda_codec *codec, const char *pfx, int cidx, in add_vol_ctl() argument
1026 return __add_pb_vol_ctrl(codec->spec, HDA_CTL_WIDGET_VOL, pfx, cidx, val); in add_vol_ctl()
[all …]
/linux-6.1.9/drivers/dma/ti/
Dedma.c913 int bcnt, ccnt, cidx; in edma_config_pset() local
949 cidx = acnt; in edma_config_pset()
967 cidx = acnt * bcnt; in edma_config_pset()
974 src_cidx = cidx; in edma_config_pset()
982 dst_cidx = cidx; in edma_config_pset()
986 src_cidx = cidx; in edma_config_pset()
988 dst_cidx = cidx; in edma_config_pset()
/linux-6.1.9/drivers/perf/
Driscv_pmu_sbi.c256 static bool pmu_sbi_ctr_is_fw(int cidx) in pmu_sbi_ctr_is_fw() argument
260 info = &pmu_ctr_list[cidx]; in pmu_sbi_ctr_is_fw()

12