Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/staging/comedi/drivers/
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()
285 unsigned int cidx = counter->counter_index; in ni_tio_clock_src_modifiers() local
287 ni_tio_get_soft_copy(counter, NITIO_CNT_MODE_REG(cidx)); in ni_tio_clock_src_modifiers()
290 if (ni_tio_get_soft_copy(counter, NITIO_INPUT_SEL_REG(cidx)) & in ni_tio_clock_src_modifiers()
304 unsigned int cidx = counter->counter_index; in ni_m_series_clock_src_select() local
305 unsigned int second_gate_reg = NITIO_GATE2_REG(cidx); in ni_m_series_clock_src_select()
311 NITIO_INPUT_SEL_REG(cidx))); in ni_m_series_clock_src_select()
370 unsigned int cidx = counter->counter_index; in ni_660x_clock_src_select() local
375 NITIO_INPUT_SEL_REG(cidx))); in ni_660x_clock_src_select()
[all …]
Dni_tiocmd.c41 unsigned int cidx = counter->counter_index; in ni_tio_configure_dma() local
54 ni_tio_set_bits(counter, NITIO_INPUT_SEL_REG(cidx), mask, bits); in ni_tio_configure_dma()
68 ni_tio_set_bits(counter, NITIO_DMA_CFG_REG(cidx), mask, bits); in ni_tio_configure_dma()
103 unsigned int cidx = counter->counter_index; in ni_tio_input_cmd() local
120 ni_tio_set_bits(counter, NITIO_CMD_REG(cidx), GI_SAVE_TRACE, 0); in ni_tio_input_cmd()
150 unsigned int cidx = counter->counter_index; in ni_tio_cmd_setup() local
165 ni_tio_set_bits(counter, NITIO_INT_ENA_REG(cidx), in ni_tio_cmd_setup()
166 GI_GATE_INTERRUPT_ENABLE(cidx), in ni_tio_cmd_setup()
167 GI_GATE_INTERRUPT_ENABLE(cidx)); in ni_tio_cmd_setup()
276 unsigned int cidx = counter->counter_index; in ni_tio_cancel() local
[all …]
/Linux-v4.19/sound/pci/ac97/
Dac97_pcm.c159 static unsigned char get_slot_reg(struct ac97_pcm *pcm, unsigned short cidx, in get_slot_reg() argument
169 return rate_reg_tables[dbl][pcm->r[dbl].rate_table[cidx]][slot - 3]; in get_slot_reg()
408 static unsigned int get_rates(struct ac97_pcm *pcm, unsigned int cidx, unsigned short slots, int db… in get_rates() argument
417 reg = get_slot_reg(pcm, cidx, i, dbl); in get_rates()
426 rates &= pcm->r[dbl].codec[cidx]->rates[idx]; in get_rates()
574 int i, cidx, r, ok_flag; in snd_ac97_pcm_open() local
582 for (cidx = 0; cidx < 4; cidx++) in snd_ac97_pcm_open()
583 if (bus->codec[cidx] && (bus->codec[cidx]->ext_id & AC97_EI_SPDIF)) { in snd_ac97_pcm_open()
584 err = set_spdif_rate(bus->codec[cidx], rate); in snd_ac97_pcm_open()
594 for (cidx = 0; cidx < 4; cidx++) { in snd_ac97_pcm_open()
[all …]
/Linux-v4.19/drivers/infiniband/hw/cxgb4/
Dt4.h51 __be16 cidx; member
184 u16 cidx; member
276 #define CQE_WRID_SQ_IDX(x) ((x)->u.scqe.cidx)
345 u16 cidx; member
375 u16 cidx; member
412 u16 cidx; member
464 srq->cidx++; in t4_srq_consume_ooo()
465 if (srq->cidx == srq->size) in t4_srq_consume_ooo()
466 srq->cidx = 0; in t4_srq_consume_ooo()
467 srq->queue[srq->size].status.host_cidx = srq->cidx; in t4_srq_consume_ooo()
[all …]
Dcq.c249 wq->sq.flush_cidx = wq->sq.cidx; in c4iw_flush_sq()
271 int cidx; in flush_completed_wrs() local
274 wq->sq.flush_cidx = wq->sq.cidx; in flush_completed_wrs()
275 cidx = wq->sq.flush_cidx; in flush_completed_wrs()
277 while (cidx != wq->sq.pidx) { in flush_completed_wrs()
278 swsqe = &wq->sq.sw_sq[cidx]; in flush_completed_wrs()
280 if (++cidx == wq->sq.size) in flush_completed_wrs()
281 cidx = 0; in flush_completed_wrs()
288 cidx, cq->sw_pidx); in flush_completed_wrs()
293 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()
/Linux-v4.19/sound/core/
Dsound_oss.c106 int cidx = SNDRV_MINOR_OSS_CARD(minor); in snd_register_oss_device() local
129 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_AUDIO); in snd_register_oss_device()
132 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI); in snd_register_oss_device()
135 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI1); in snd_register_oss_device()
166 int cidx = SNDRV_MINOR_OSS_CARD(minor); in snd_unregister_oss_device() local
183 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_AUDIO); in snd_unregister_oss_device()
186 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI); in snd_unregister_oss_device()
189 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI1); in snd_unregister_oss_device()
Dpcm.c1102 int cidx, err; in snd_pcm_dev_register() local
1114 for (cidx = 0; cidx < 2; cidx++) { in snd_pcm_dev_register()
1116 if (pcm->streams[cidx].substream == NULL) in snd_pcm_dev_register()
1118 switch (cidx) { in snd_pcm_dev_register()
1128 &snd_pcm_f_ops[cidx], pcm, in snd_pcm_dev_register()
1129 &pcm->streams[cidx].dev); in snd_pcm_dev_register()
1135 for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) in snd_pcm_dev_register()
1150 int cidx; in snd_pcm_dev_disconnect() local
1156 for (cidx = 0; cidx < 2; cidx++) { in snd_pcm_dev_disconnect()
1157 for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) { in snd_pcm_dev_disconnect()
[all …]
/Linux-v4.19/drivers/isdn/hardware/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-v4.19/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()
622 unsigned int cidx = q->cidx; in free_cmdQ_buffers() local
625 ce = &q->centries[cidx]; in free_cmdQ_buffers()
639 if (++cidx == q->size) { in free_cmdQ_buffers()
[all …]
/Linux-v4.19/drivers/scsi/csiostor/
Dcsio_wr.c246 q->pidx = q->cidx = q->inc_idx = 0; in csio_wr_alloc_q()
868 uint16_t cidx = q->cidx = ntohs(stp->cidx); in csio_wr_get() local
876 CSIO_DB_ASSERT(cidx <= q->credits); in csio_wr_get()
879 if (pidx > cidx) { in csio_wr_get()
880 credits = q->credits - (pidx - cidx) - 1; in csio_wr_get()
881 } else if (cidx > pidx) { in csio_wr_get()
882 credits = cidx - pidx - 1; in csio_wr_get()
999 if (q->pidx > q->cidx) in csio_wr_avail_qcredits()
1000 return q->pidx - q->cidx; in csio_wr_avail_qcredits()
1001 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-v4.19/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-v4.19/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.c2045 T("TxQ CIdx:", q.cidx); in sge_qinfo_show()
2052 R("RspQ CIdx:", rspq.cidx); in sge_qinfo_show()
2058 R("FL CIdx:", fl.cidx); in sge_qinfo_show()
2072 seq_printf(seq, "%-12s %16u\n", "RspQ Cidx:", evtq->cidx); in sge_qinfo_show()
2083 seq_printf(seq, "%-12s %16u\n", "RspQ Cidx:", intrq->cidx); in sge_qinfo_show()
2219 seq_printf(seq, "%-16s %8u\n", "RspQ CIdx:", evtq->cidx); in sge_qstats_show()
2227 seq_printf(seq, "%-16s %8u\n", "RspQ CIdx:", intrq->cidx); in sge_qstats_show()
/Linux-v4.19/drivers/isdn/hisax/
Dhfc_usb.c1260 attr, cfg_found, cidx, ep_addr; in hfc_usb_probe() local
1365 cidx = idx & 7; in hfc_usb_probe()
1374 fifos[cidx]. in hfc_usb_probe()
1381 fifos[cidx]. in hfc_usb_probe()
1391 [cidx]. in hfc_usb_probe()
1401 [cidx]. in hfc_usb_probe()
1409 fifos[cidx]. in hfc_usb_probe()
1419 [cidx]. in hfc_usb_probe()
1429 [cidx]. in hfc_usb_probe()
1437 fifos[cidx]. in hfc_usb_probe()
[all …]
/Linux-v4.19/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c373 unsigned int cidx = q->cidx; in free_tx_desc() local
376 d = &q->sdesc[cidx]; in free_tx_desc()
385 if (++cidx == q->size) { in free_tx_desc()
386 cidx = 0; in free_tx_desc()
390 q->cidx = cidx; in free_tx_desc()
398 int hw_cidx = ntohs(READ_ONCE(q->stat->cidx)); in reclaimable()
399 hw_cidx -= q->cidx; in reclaimable()
475 struct rx_sw_desc *d = &q->sdesc[q->cidx]; in free_rx_bufs()
483 if (++q->cidx == q->size) in free_rx_bufs()
484 q->cidx = 0; in free_rx_bufs()
[all …]
Dcxgb4_debugfs.c2757 T("TxQ CIDX:", q.cidx); in sge_qinfo_show()
2771 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show()
2780 R("FL CIDX:", fl.cidx); in sge_qinfo_show()
2814 T("TxQ CIDX:", q.cidx); in sge_qinfo_show()
2834 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show()
2843 R("FL CIDX:", fl.cidx); in sge_qinfo_show()
2864 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show()
2884 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show()
2893 R("FL CIDX:", fl.cidx); in sge_qinfo_show()
2910 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show()
[all …]
Dt4_hw.h150 __be16 cidx; member
/Linux-v4.19/drivers/hwtracing/stm/
Dcore.c290 unsigned int midx, cidx, mend, cend; in stm_output_assign() local
298 &midx, &mend, &cidx, &cend); in stm_output_assign()
301 cidx = 0; in stm_output_assign()
312 ret = stm_find_master_chan(stm, width, &midx, mend, &cidx, cend); in stm_output_assign()
317 output->channel = cidx; in stm_output_assign()
320 dev_dbg(&stm->dev, "assigned %u:%u (+%u)\n", midx, cidx, width); in stm_output_assign()
/Linux-v4.19/sound/pci/hda/
Dhda_generic.c986 int cidx, unsigned long val) in add_control() argument
993 knew->index = cidx; in add_control()
1002 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-v4.19/drivers/dma/ti/
Dedma.c938 int bcnt, ccnt, cidx; in edma_config_pset() local
974 cidx = acnt; in edma_config_pset()
992 cidx = acnt * bcnt; in edma_config_pset()
999 src_cidx = cidx; in edma_config_pset()
1007 dst_cidx = cidx; in edma_config_pset()
1011 src_cidx = cidx; in edma_config_pset()
1013 dst_cidx = cidx; in edma_config_pset()

12