Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/staging/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-v5.4/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-v5.4/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()
161 if (wq.sq.cidx != wq.sq.pidx) { in fill_res_qp_entry()
162 first_sq_idx = wq.sq.cidx; in fill_res_qp_entry()
282 if (rdma_nl_put_driver_u32(msg, "cidx", cq->cidx)) in fill_cq()
341 idx = (cq->cidx > 0) ? cq->cidx - 1 : cq->size - 1; in fill_hwcqes()
344 idx = cq->cidx; in fill_hwcqes()
401 idx = (cq.cidx > 0) ? cq.cidx - 1 : cq.size - 1; in fill_res_cq_entry()
404 idx = cq.cidx; in fill_res_cq_entry()
Ddevice.c109 le.post_host_time = wq->sq.sw_sq[wq->sq.cidx].host_time; in c4iw_log_wr_stats()
110 le.post_sge_ts = wq->sq.sw_sq[wq->sq.cidx].sge_ts; in c4iw_log_wr_stats()
115 le.post_host_time = wq->rq.sw_rq[wq->rq.cidx].host_time; in c4iw_log_wr_stats()
116 le.post_sge_ts = wq->rq.sw_rq[wq->rq.cidx].sge_ts; in c4iw_log_wr_stats()
/Linux-v5.4/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
168 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_AUDIO); in snd_unregister_oss_device()
171 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI); in snd_unregister_oss_device()
174 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI1); in snd_unregister_oss_device()
Dpcm.c1042 int cidx, err; in snd_pcm_dev_register() local
1054 for (cidx = 0; cidx < 2; cidx++) { in snd_pcm_dev_register()
1056 if (pcm->streams[cidx].substream == NULL) in snd_pcm_dev_register()
1058 switch (cidx) { in snd_pcm_dev_register()
1068 &snd_pcm_f_ops[cidx], pcm, in snd_pcm_dev_register()
1069 &pcm->streams[cidx].dev); in snd_pcm_dev_register()
1075 for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) in snd_pcm_dev_register()
1090 int cidx; in snd_pcm_dev_disconnect() local
1096 for (cidx = 0; cidx < 2; cidx++) { in snd_pcm_dev_disconnect()
1097 for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) { in snd_pcm_dev_disconnect()
[all …]
/Linux-v5.4/drivers/staging/isdn/avm/
Dc4.c512 u32 cidx; in c4_handle_rx() local
526 cidx = CAPIMSG_CONTROLLER(card->msgbuf)-card->cardnr; in c4_handle_rx()
527 if (cidx >= card->nlogcontr) cidx = 0; in c4_handle_rx()
528 ctrl = &card->ctrlinfo[cidx].capi_ctrl; in c4_handle_rx()
549 cidx = CAPIMSG_CONTROLLER(card->msgbuf)-card->cardnr; in c4_handle_rx()
550 if (cidx >= card->nlogcontr) cidx = 0; in c4_handle_rx()
551 cinfo = &card->ctrlinfo[cidx]; in c4_handle_rx()
552 ctrl = &card->ctrlinfo[cidx].capi_ctrl; in c4_handle_rx()
573 cidx = (NCCI & 0x7f) - card->cardnr; in c4_handle_rx()
574 if (cidx >= card->nlogcontr) cidx = 0; in c4_handle_rx()
[all …]
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb/
Dsge.c185 u16 cidx; /* consumer index (HW) */ member
198 u16 cidx; /* consumer index (HW) */ member
211 u16 cidx; /* consumer index (SW) */ member
507 unsigned int cidx = q->cidx; in free_freelQ_buffers() local
510 struct freelQ_ce *ce = &q->centries[cidx]; in free_freelQ_buffers()
517 if (++cidx == q->size) in free_freelQ_buffers()
518 cidx = 0; in free_freelQ_buffers()
621 unsigned int cidx = q->cidx; in free_cmdQ_buffers() local
624 ce = &q->centries[cidx]; in free_cmdQ_buffers()
638 if (++cidx == q->size) { in free_cmdQ_buffers()
[all …]
/Linux-v5.4/drivers/scsi/csiostor/
Dcsio_wr.c247 q->pidx = q->cidx = q->inc_idx = 0; in csio_wr_alloc_q()
870 uint16_t cidx = q->cidx = ntohs(stp->cidx); in csio_wr_get() local
878 CSIO_DB_ASSERT(cidx <= q->credits); in csio_wr_get()
881 if (pidx > cidx) { in csio_wr_get()
882 credits = q->credits - (pidx - cidx) - 1; in csio_wr_get()
883 } else if (cidx > pidx) { in csio_wr_get()
884 credits = cidx - pidx - 1; in csio_wr_get()
1001 if (q->pidx > q->cidx) in csio_wr_avail_qcredits()
1002 return q->pidx - q->cidx; in csio_wr_avail_qcredits()
1003 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-v5.4/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c237 unsigned int cidx, struct pci_dev *pdev) in unmap_skb() argument
240 struct tx_sw_desc *d = &q->sdesc[cidx]; in unmap_skb()
243 sgp = (struct sg_ent *)&q->desc[cidx].flit[d->sflit]; in unmap_skb()
269 d = cidx + 1 == q->size ? q->sdesc : d + 1; in unmap_skb()
290 unsigned int cidx = q->cidx; in free_tx_desc() local
295 d = &q->sdesc[cidx]; in free_tx_desc()
299 unmap_skb(d->skb, q, cidx, pdev); in free_tx_desc()
306 if (++cidx == q->size) { in free_tx_desc()
307 cidx = 0; in free_tx_desc()
311 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.h739 unsigned int cidx);
743 unsigned int cidx);
746 unsigned int fl_thres, int gen, unsigned int cidx);
/Linux-v5.4/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.h128 unsigned int cidx; /* consumer index */ member
168 unsigned int cidx; /* consumer index */ member
235 unsigned int cidx; /* SW consumer index */ member
Dcxgb4vf_main.c2092 T("TxQ CIdx:", q.cidx); in sge_qinfo_show()
2099 R("RspQ CIdx:", rspq.cidx); in sge_qinfo_show()
2105 R("FL CIdx:", fl.cidx); in sge_qinfo_show()
2119 seq_printf(seq, "%-12s %16u\n", "RspQ Cidx:", evtq->cidx); in sge_qinfo_show()
2130 seq_printf(seq, "%-12s %16u\n", "RspQ Cidx:", intrq->cidx); in sge_qinfo_show()
2266 seq_printf(seq, "%-16s %8u\n", "RspQ CIdx:", evtq->cidx); in sge_qstats_show()
2274 seq_printf(seq, "%-16s %8u\n", "RspQ CIdx:", intrq->cidx); in sge_qstats_show()
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c374 unsigned int cidx = q->cidx; in free_tx_desc() local
377 d = &q->sdesc[cidx]; in free_tx_desc()
386 if (++cidx == q->size) { in free_tx_desc()
387 cidx = 0; in free_tx_desc()
391 q->cidx = cidx; in free_tx_desc()
399 int hw_cidx = ntohs(READ_ONCE(q->stat->cidx)); in reclaimable()
400 hw_cidx -= q->cidx; in reclaimable()
497 struct rx_sw_desc *d = &q->sdesc[q->cidx]; in free_rx_bufs()
505 if (++q->cidx == q->size) in free_rx_bufs()
506 q->cidx = 0; in free_rx_bufs()
[all …]
Dcxgb4_debugfs.c2717 T("TxQ CIDX:", q.cidx); in sge_qinfo_show()
2731 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show()
2740 R("FL CIDX:", fl.cidx); in sge_qinfo_show()
2775 T("TxQ CIDX:", q.cidx); in sge_qinfo_show()
2795 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show()
2804 R("FL CIDX:", fl.cidx); in sge_qinfo_show()
2825 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show()
2845 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show()
2854 R("FL CIDX:", fl.cidx); in sge_qinfo_show()
2871 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show()
[all …]
Dt4_hw.h151 __be16 cidx; member
/Linux-v5.4/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-v5.4/sound/pci/hda/
Dhda_generic.c974 int cidx, unsigned long val) in add_control() argument
981 knew->index = cidx; in add_control()
990 const char *sfx, int cidx, unsigned long val) in add_control_with_pfx() argument
994 if (!add_control(spec, type, name, cidx, val)) in add_control_with_pfx()
1003 #define __add_pb_vol_ctrl(spec, type, pfx, cidx, val) \ argument
1004 add_control_with_pfx(spec, type, pfx, "Playback", "Volume", cidx, val)
1005 #define __add_pb_sw_ctrl(spec, type, pfx, cidx, val) \ argument
1006 add_control_with_pfx(spec, type, pfx, "Playback", "Switch", cidx, val)
1008 static int add_vol_ctl(struct hda_codec *codec, const char *pfx, int cidx, in add_vol_ctl() argument
1018 return __add_pb_vol_ctrl(codec->spec, HDA_CTL_WIDGET_VOL, pfx, cidx, val); in add_vol_ctl()
[all …]
/Linux-v5.4/drivers/dma/ti/
Dedma.c948 int bcnt, ccnt, cidx; in edma_config_pset() local
984 cidx = acnt; in edma_config_pset()
1002 cidx = acnt * bcnt; in edma_config_pset()
1009 src_cidx = cidx; in edma_config_pset()
1017 dst_cidx = cidx; in edma_config_pset()
1021 src_cidx = cidx; in edma_config_pset()
1023 dst_cidx = cidx; in edma_config_pset()

12