/linux-4.1.27/drivers/staging/comedi/drivers/ |
D | ni_tio.c | 184 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 …]
|
D | ni_tiocmd.c | 54 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() 172 unsigned cidx = counter->counter_index; in ni_tio_cmd_setup() local 187 ni_tio_set_bits(counter, NITIO_INT_ENA_REG(cidx), in ni_tio_cmd_setup() 188 GI_GATE_INTERRUPT_ENABLE(cidx), in ni_tio_cmd_setup() 189 GI_GATE_INTERRUPT_ENABLE(cidx)); in ni_tio_cmd_setup() 298 unsigned cidx = counter->counter_index; in ni_tio_cancel() local [all …]
|
/linux-4.1.27/sound/pci/ac97/ |
D | ac97_pcm.c | 159 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.1.27/sound/core/ |
D | sound_oss.c | 113 int cidx = SNDRV_MINOR_OSS_CARD(minor); in snd_register_oss_device() local 136 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_AUDIO); in snd_register_oss_device() 139 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI); in snd_register_oss_device() 142 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI1); in snd_register_oss_device() 174 int cidx = SNDRV_MINOR_OSS_CARD(minor); in snd_unregister_oss_device() local 191 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_AUDIO); in snd_unregister_oss_device() 194 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI); in snd_unregister_oss_device() 197 track2 = SNDRV_MINOR_OSS(cidx, SNDRV_MINOR_OSS_DMMIDI1); in snd_unregister_oss_device()
|
D | pcm.c | 1064 int cidx, err; in snd_pcm_dev_register() local 1079 for (cidx = 0; cidx < 2; cidx++) { in snd_pcm_dev_register() 1081 if (pcm->streams[cidx].substream == NULL) in snd_pcm_dev_register() 1083 switch (cidx) { in snd_pcm_dev_register() 1093 &snd_pcm_f_ops[cidx], pcm, in snd_pcm_dev_register() 1094 &pcm->streams[cidx].dev); in snd_pcm_dev_register() 1100 for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) in snd_pcm_dev_register() 1117 int cidx; in snd_pcm_dev_disconnect() local 1123 for (cidx = 0; cidx < 2; cidx++) { in snd_pcm_dev_disconnect() 1124 for (substream = pcm->streams[cidx].substream; substream; substream = substream->next) { in snd_pcm_dev_disconnect() [all …]
|
/linux-4.1.27/drivers/infiniband/hw/cxgb4/ |
D | t4.h | 50 __be16 cidx; member 174 u16 cidx; member 233 #define CQE_WRID_SQ_IDX(x) ((x)->u.scqe.cidx) 298 u16 cidx; member 325 u16 cidx; member 374 if (++wq->rq.cidx == wq->rq.size) in t4_rq_consume() 375 wq->rq.cidx = 0; in t4_rq_consume() 421 if (wq->sq.cidx == wq->sq.flush_cidx) in t4_sq_consume() 424 if (++wq->sq.cidx == wq->sq.size) in t4_sq_consume() 425 wq->sq.cidx = 0; in t4_sq_consume() [all …]
|
D | cq.c | 248 wq->sq.flush_cidx = wq->sq.cidx; in c4iw_flush_sq() 273 int cidx; in flush_completed_wrs() local 276 wq->sq.flush_cidx = wq->sq.cidx; in flush_completed_wrs() 277 cidx = wq->sq.flush_cidx; in flush_completed_wrs() 278 BUG_ON(cidx > wq->sq.size); in flush_completed_wrs() 280 while (cidx != wq->sq.pidx) { in flush_completed_wrs() 281 swsqe = &wq->sq.sw_sq[cidx]; in flush_completed_wrs() 283 if (++cidx == wq->sq.size) in flush_completed_wrs() 284 cidx = 0; in flush_completed_wrs() 293 __func__, cidx, cq->sw_pidx); in flush_completed_wrs() [all …]
|
D | device.c | 134 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.1.27/drivers/isdn/hardware/avm/ |
D | c4.c | 512 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.1.27/drivers/net/ethernet/chelsio/cxgb/ |
D | sge.c | 185 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.1.27/drivers/scsi/csiostor/ |
D | csio_wr.c | 245 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 …]
|
D | csio_wr.h | 275 __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.1.27/drivers/net/ethernet/chelsio/cxgb3/ |
D | sge.c | 237 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 …]
|
D | adapter.h | 108 unsigned int cidx; /* consumer index */ member 134 unsigned int cidx; /* consumer index */ member 172 unsigned int cidx; /* consumer index */ member
|
D | common.h | 739 unsigned int cidx); 743 unsigned int cidx); 746 unsigned int fl_thres, int gen, unsigned int cidx);
|
D | t3_hw.c | 2210 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.1.27/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | sge.c | 381 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 …]
|
D | adapter.h | 127 unsigned int cidx; /* consumer index */ member 167 unsigned int cidx; /* consumer index */ member 234 unsigned int cidx; /* SW consumer index */ member
|
D | cxgb4vf_main.c | 1771 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.1.27/drivers/isdn/hisax/ |
D | hfc_usb.c | 1266 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.1.27/drivers/net/ethernet/chelsio/cxgb4/ |
D | sge.c | 394 unsigned int cidx = q->cidx; in free_tx_desc() local 397 d = &q->sdesc[cidx]; in free_tx_desc() 406 if (++cidx == q->size) { in free_tx_desc() 407 cidx = 0; in free_tx_desc() 411 q->cidx = cidx; in free_tx_desc() 419 int hw_cidx = ntohs(q->stat->cidx); in reclaimable() 420 hw_cidx -= q->cidx; in reclaimable() 495 struct rx_sw_desc *d = &q->sdesc[q->cidx]; in free_rx_bufs() 503 if (++q->cidx == q->size) in free_rx_bufs() 504 q->cidx = 0; in free_rx_bufs() [all …]
|
D | cxgb4_debugfs.c | 1722 T("TxQ CIDX:", q.cidx); in sge_qinfo_show() 1736 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show() 1746 R("FL CIDX:", fl.cidx); in sge_qinfo_show() 1756 T("TxQ CIDX:", q.cidx); in sge_qinfo_show() 1761 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show() 1771 R("FL CIDX:", fl.cidx); in sge_qinfo_show() 1783 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show() 1793 R("FL CIDX:", fl.cidx); in sge_qinfo_show() 1804 R("RspQ CIDX:", rspq.cidx); in sge_qinfo_show() 1817 T("TxQ CIDX:", q.cidx); in sge_qinfo_show() [all …]
|
D | t4_hw.h | 139 __be16 cidx; member
|
D | cxgb4.h | 452 unsigned int cidx; /* consumer index */ member 481 unsigned int cidx; /* consumer index */ member 556 unsigned int cidx; /* SW consumer index */ member
|
D | t4_msg.h | 951 __be16 cidx; member
|
D | t4fw_api.h | 2925 __be16 cidx; member 2931 __be16 cidx; member
|
D | cxgb4_main.c | 1994 static int read_eq_indices(struct adapter *adap, u16 qid, u16 *pidx, u16 *cidx) in read_eq_indices() argument 2006 *cidx = (be64_to_cpu(indices) >> 25) & 0xffff; in read_eq_indices()
|
/linux-4.1.27/drivers/dma/ |
D | edma.c | 342 int acnt, bcnt, ccnt, cidx; in edma_config_pset() local 380 cidx = acnt; in edma_config_pset() 398 cidx = acnt * bcnt; in edma_config_pset() 405 src_cidx = cidx; in edma_config_pset() 413 dst_cidx = cidx; in edma_config_pset() 417 src_cidx = cidx; in edma_config_pset() 419 dst_cidx = cidx; in edma_config_pset()
|
/linux-4.1.27/sound/pci/hda/ |
D | hda_generic.c | 994 int cidx, unsigned long val) in add_control() argument 1001 knew->index = cidx; in add_control() 1010 const char *sfx, int cidx, unsigned long val) in add_control_with_pfx() argument 1014 if (!add_control(spec, type, name, cidx, val)) in add_control_with_pfx() 1023 #define __add_pb_vol_ctrl(spec, type, pfx, cidx, val) \ argument 1024 add_control_with_pfx(spec, type, pfx, "Playback", "Volume", cidx, val) 1025 #define __add_pb_sw_ctrl(spec, type, pfx, cidx, val) \ argument 1026 add_control_with_pfx(spec, type, pfx, "Playback", "Switch", cidx, val) 1028 static int add_vol_ctl(struct hda_codec *codec, const char *pfx, int cidx, in add_vol_ctl() argument 1038 return __add_pb_vol_ctrl(codec->spec, HDA_CTL_WIDGET_VOL, pfx, cidx, val); in add_vol_ctl() [all …]
|
/linux-4.1.27/sound/drivers/ |
D | aloop.c | 1116 static int loopback_proc_new(struct loopback *loopback, int cidx) in loopback_proc_new() argument 1122 snprintf(name, sizeof(name), "cable#%d", cidx); in loopback_proc_new() 1133 #define loopback_proc_new(loopback, cidx) do { } while (0) argument
|
/linux-4.1.27/drivers/scsi/be2iscsi/ |
D | be_cmds.h | 245 u8 cidx[13]; /* dword 0 */ member 505 u8 cidx[11]; /* dword 0 */ member
|
D | be_main.h | 1003 u32 cidx; /* consumer index */ member
|
/linux-4.1.27/sound/core/oss/ |
D | pcm_oss.c | 2299 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.1.27/drivers/net/ethernet/emulex/benet/ |
D | be_cmds.h | 302 u8 cidx[13]; /* dword 0*/ member 390 u8 cidx[11]; /* dword 0*/ member
|