Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/staging/comedi/drivers/
Dni_tio.c184 unsigned cidx = counter->counter_index; in ni_tio_reset_count_and_disarm() local
186 write_register(counter, GI_RESET(cidx), NITIO_RESET_REG(cidx)); in ni_tio_reset_count_and_disarm()
234 unsigned cidx = counter->counter_index; in ni_tio_clock_src_modifiers() local
236 ni_tio_get_soft_copy(counter, NITIO_CNT_MODE_REG(cidx)); in ni_tio_clock_src_modifiers()
239 if (ni_tio_get_soft_copy(counter, NITIO_INPUT_SEL_REG(cidx)) & in ni_tio_clock_src_modifiers()
252 unsigned cidx = counter->counter_index; in ni_m_series_clock_src_select() local
253 const unsigned second_gate_reg = NITIO_GATE2_REG(cidx); in ni_m_series_clock_src_select()
259 NITIO_INPUT_SEL_REG(cidx))); in ni_m_series_clock_src_select()
317 unsigned cidx = counter->counter_index; in ni_660x_clock_src_select() local
322 NITIO_INPUT_SEL_REG(cidx))); in ni_660x_clock_src_select()
[all …]
Dni_tiocmd.c54 unsigned cidx = counter->counter_index; in ni_tio_configure_dma() local
67 ni_tio_set_bits(counter, NITIO_INPUT_SEL_REG(cidx), mask, bits); in ni_tio_configure_dma()
81 ni_tio_set_bits(counter, NITIO_DMA_CFG_REG(cidx), mask, bits); in ni_tio_configure_dma()
116 unsigned cidx = counter->counter_index; in ni_tio_input_cmd() local
136 ni_tio_set_bits(counter, NITIO_CMD_REG(cidx), GI_SAVE_TRACE, 0); in ni_tio_input_cmd()
166 unsigned cidx = counter->counter_index; in ni_tio_cmd_setup() local
181 ni_tio_set_bits(counter, NITIO_INT_ENA_REG(cidx), in ni_tio_cmd_setup()
182 GI_GATE_INTERRUPT_ENABLE(cidx), in ni_tio_cmd_setup()
183 GI_GATE_INTERRUPT_ENABLE(cidx)); in ni_tio_cmd_setup()
292 unsigned cidx = counter->counter_index; in ni_tio_cancel() local
[all …]
/linux-4.4.14/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-4.4.14/sound/core/
Dsound_oss.c107 int cidx = SNDRV_MINOR_OSS_CARD(minor); in snd_register_oss_device() local
130 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_AUDIO); in snd_register_oss_device()
133 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI); in snd_register_oss_device()
136 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI1); in snd_register_oss_device()
168 int cidx = SNDRV_MINOR_OSS_CARD(minor); in snd_unregister_oss_device() local
185 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_AUDIO); in snd_unregister_oss_device()
188 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI); in snd_unregister_oss_device()
191 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI1); in snd_unregister_oss_device()
Dpcm.c1061 int cidx, err; in snd_pcm_dev_register() local
1076 for (cidx = 0; cidx < 2; cidx++) { in snd_pcm_dev_register()
1078 if (pcm->streams[cidx].substream == NULL) in snd_pcm_dev_register()
1080 switch (cidx) { in snd_pcm_dev_register()
1090 &snd_pcm_f_ops[cidx], pcm, in snd_pcm_dev_register()
1091 &pcm->streams[cidx].dev); in snd_pcm_dev_register()
1097 for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) in snd_pcm_dev_register()
1114 int cidx; in snd_pcm_dev_disconnect() local
1120 for (cidx = 0; cidx < 2; cidx++) { in snd_pcm_dev_disconnect()
1121 for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) { in snd_pcm_dev_disconnect()
[all …]
/linux-4.4.14/drivers/infiniband/hw/cxgb4/
Dt4.h51 __be16 cidx; member
175 u16 cidx; member
234 #define CQE_WRID_SQ_IDX(x) ((x)->u.scqe.cidx)
301 u16 cidx; member
330 u16 cidx; member
378 if (++wq->rq.cidx == wq->rq.size) in t4_rq_consume()
379 wq->rq.cidx = 0; in t4_rq_consume()
425 if (wq->sq.cidx == wq->sq.flush_cidx) in t4_sq_consume()
428 if (++wq->sq.cidx == wq->sq.size) in t4_sq_consume()
429 wq->sq.cidx = 0; in t4_sq_consume()
[all …]
Dcq.c246 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()
276 BUG_ON(cidx > wq->sq.size); in flush_completed_wrs()
278 while (cidx != wq->sq.pidx) { in flush_completed_wrs()
279 swsqe = &wq->sq.sw_sq[cidx]; in flush_completed_wrs()
281 if (++cidx == wq->sq.size) in flush_completed_wrs()
282 cidx = 0; in flush_completed_wrs()
291 __func__, cidx, cq->sw_pidx); in flush_completed_wrs()
[all …]
Ddevice.c134 le.post_host_ts = wq->sq.sw_sq[wq->sq.cidx].host_ts; in c4iw_log_wr_stats()
135 le.post_sge_ts = wq->sq.sw_sq[wq->sq.cidx].sge_ts; in c4iw_log_wr_stats()
140 le.post_host_ts = wq->rq.sw_rq[wq->rq.cidx].host_ts; in c4iw_log_wr_stats()
141 le.post_sge_ts = wq->rq.sw_rq[wq->rq.cidx].sge_ts; in c4iw_log_wr_stats()
/linux-4.4.14/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-4.4.14/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-4.4.14/drivers/scsi/csiostor/
Dcsio_wr.c245 q->pidx = q->cidx = q->inc_idx = 0; in csio_wr_alloc_q()
865 uint16_t cidx = q->cidx = ntohs(stp->cidx); in csio_wr_get() local
873 CSIO_DB_ASSERT(cidx <= q->credits); in csio_wr_get()
876 if (pidx > cidx) { in csio_wr_get()
877 credits = q->credits - (pidx - cidx) - 1; in csio_wr_get()
878 } else if (cidx > pidx) { in csio_wr_get()
879 credits = cidx - pidx - 1; in csio_wr_get()
996 if (q->pidx > q->cidx) in csio_wr_avail_qcredits()
997 return q->pidx - q->cidx; in csio_wr_avail_qcredits()
998 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-4.4.14/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.h108 unsigned int cidx; /* consumer index */ member
134 unsigned int cidx; /* consumer index */ member
172 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);
Dt3_hw.c2210 unsigned int cidx) in t3_sge_init_ecntxt() argument
2220 t3_write_reg(adapter, A_SG_CONTEXT_DATA0, V_EC_INDEX(cidx) | in t3_sge_init_ecntxt()
2253 unsigned int cidx) in t3_sge_init_flcntxt() argument
2265 V_FL_INDEX_LO(cidx & M_FL_INDEX_LO)); in t3_sge_init_flcntxt()
2267 V_FL_GEN(gen) | V_FL_INDEX_HI(cidx >> 12) | in t3_sge_init_flcntxt()
2292 unsigned int fl_thres, int gen, unsigned int cidx) in t3_sge_init_rspcntxt() argument
2303 V_CQ_INDEX(cidx)); in t3_sge_init_rspcntxt()
/linux-4.4.14/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.h127 unsigned int cidx; /* consumer index */ member
167 unsigned int cidx; /* consumer index */ member
234 unsigned int cidx; /* SW consumer index */ member
Dcxgb4vf_main.c1771 T("TxQ CIdx:", q.cidx); in sge_qinfo_show()
1778 R("RspQ CIdx:", rspq.cidx); in sge_qinfo_show()
1784 R("FL CIdx:", fl.cidx); in sge_qinfo_show()
1798 seq_printf(seq, "%-12s %16u\n", "RspQ Cidx:", evtq->cidx); in sge_qinfo_show()
1809 seq_printf(seq, "%-12s %16u\n", "RspQ Cidx:", intrq->cidx); in sge_qinfo_show()
1945 seq_printf(seq, "%-16s %8u\n", "RspQ CIdx:", evtq->cidx); in sge_qstats_show()
1953 seq_printf(seq, "%-16s %8u\n", "RspQ CIdx:", intrq->cidx); in sge_qstats_show()
/linux-4.4.14/drivers/isdn/hisax/
Dhfc_usb.c1266 attr, cfg_found, cidx, ep_addr; in hfc_usb_probe() local
1371 cidx = idx & 7; in hfc_usb_probe()
1380 fifos[cidx]. in hfc_usb_probe()
1387 fifos[cidx]. in hfc_usb_probe()
1397 [cidx]. in hfc_usb_probe()
1407 [cidx]. in hfc_usb_probe()
1415 fifos[cidx]. in hfc_usb_probe()
1425 [cidx]. in hfc_usb_probe()
1435 [cidx]. in hfc_usb_probe()
1443 fifos[cidx]. in hfc_usb_probe()
[all …]
/linux-4.4.14/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c384 unsigned int cidx = q->cidx; in free_tx_desc() local
387 d = &q->sdesc[cidx]; in free_tx_desc()
396 if (++cidx == q->size) { in free_tx_desc()
397 cidx = 0; in free_tx_desc()
401 q->cidx = cidx; in free_tx_desc()
409 int hw_cidx = ntohs(q->stat->cidx); in reclaimable()
410 hw_cidx -= q->cidx; in reclaimable()
485 struct rx_sw_desc *d = &q->sdesc[q->cidx]; in free_rx_bufs()
493 if (++q->cidx == q->size) in free_rx_bufs()
494 q->cidx = 0; in free_rx_bufs()
[all …]
Dt4_hw.h138 __be16 cidx; member
Dcxgb4_debugfs.c2289 T("TxQ CIDX:", q.cidx); in sge_qinfo_show()
2303 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show()
2313 R("FL CIDX:", fl.cidx); in sge_qinfo_show()
2341 T("TxQ CIDX:", q.cidx); in sge_qinfo_show()
2346 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show()
2356 R("FL CIDX:", fl.cidx); in sge_qinfo_show()
2375 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show()
2385 R("FL CIDX:", fl.cidx); in sge_qinfo_show()
2403 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show()
2419 T("TxQ CIDX:", q.cidx); in sge_qinfo_show()
[all …]
Dcxgb4.h482 unsigned int cidx; /* consumer index */ member
512 unsigned int cidx; /* consumer index */ member
587 unsigned int cidx; /* SW consumer index */ member
Dt4_msg.h1038 __be16 cidx; member
Dt4fw_api.h2981 __be16 cidx; member
2987 __be16 cidx; member
Dcxgb4_main.c2050 static int read_eq_indices(struct adapter *adap, u16 qid, u16 *pidx, u16 *cidx) in read_eq_indices() argument
2062 *cidx = (be64_to_cpu(indices) >> 25) & 0xffff; in read_eq_indices()
/linux-4.4.14/drivers/hwtracing/stm/
Dcore.c274 unsigned int midx, cidx, mend, cend; in stm_output_assign() local
282 &midx, &mend, &cidx, &cend); in stm_output_assign()
285 cidx = 0; in stm_output_assign()
295 ret = stm_find_master_chan(stm, width, &midx, mend, &cidx, cend); in stm_output_assign()
300 output->channel = cidx; in stm_output_assign()
303 dev_dbg(&stm->dev, "assigned %u:%u (+%u)\n", midx, cidx, width); in stm_output_assign()
/linux-4.4.14/sound/pci/hda/
Dhda_generic.c996 int cidx, unsigned long val) in add_control() argument
1003 knew->index = cidx; in add_control()
1012 const char *sfx, int cidx, unsigned long val) in add_control_with_pfx() argument
1016 if (!add_control(spec, type, name, cidx, val)) in add_control_with_pfx()
1025 #define __add_pb_vol_ctrl(spec, type, pfx, cidx, val) \ argument
1026 add_control_with_pfx(spec, type, pfx, "Playback", "Volume", cidx, val)
1027 #define __add_pb_sw_ctrl(spec, type, pfx, cidx, val) \ argument
1028 add_control_with_pfx(spec, type, pfx, "Playback", "Switch", cidx, val)
1030 static int add_vol_ctl(struct hda_codec *codec, const char *pfx, int cidx, in add_vol_ctl() argument
1040 return __add_pb_vol_ctrl(codec->spec, HDA_CTL_WIDGET_VOL, pfx, cidx, val); in add_vol_ctl()
[all …]
/linux-4.4.14/drivers/dma/
Dedma.c921 int bcnt, ccnt, cidx; in edma_config_pset() local
957 cidx = acnt; in edma_config_pset()
975 cidx = acnt * bcnt; in edma_config_pset()
982 src_cidx = cidx; in edma_config_pset()
990 dst_cidx = cidx; in edma_config_pset()
994 src_cidx = cidx; in edma_config_pset()
996 dst_cidx = cidx; in edma_config_pset()
/linux-4.4.14/drivers/scsi/be2iscsi/
Dbe_cmds.h245 u8 cidx[13]; /* dword 0 */ member
516 u8 cidx[11]; /* dword 0 */ member
Dbe_main.h1009 u32 cidx; /* consumer index */ member
/linux-4.4.14/sound/drivers/
Daloop.c1114 static int loopback_proc_new(struct loopback *loopback, int cidx) in loopback_proc_new() argument
1120 snprintf(name, sizeof(name), "cable#%d", cidx); in loopback_proc_new()
/linux-4.4.14/sound/core/oss/
Dpcm_oss.c2299 int cidx; in snd_pcm_oss_release_file() local
2302 for (cidx = 0; cidx < 2; ++cidx) { in snd_pcm_oss_release_file()
2303 struct snd_pcm_substream *substream = pcm_oss_file->streams[cidx]; in snd_pcm_oss_release_file()
/linux-4.4.14/drivers/net/ethernet/emulex/benet/
Dbe_cmds.h322 u8 cidx[13]; /* dword 0*/ member
410 u8 cidx[11]; /* dword 0*/ member