Home
last modified time | relevance | path

Searched refs:chans (Results 1 – 21 of 21) sorted by relevance

/drivers/iio/
Dinkern.c204 struct iio_channel *chans; in of_iio_channel_get_all() local
221 chans = kcalloc(nummaps + 1, sizeof(*chans), GFP_KERNEL); in of_iio_channel_get_all()
222 if (chans == NULL) in of_iio_channel_get_all()
227 ret = __of_iio_channel_get(&chans[mapind], dev->of_node, in of_iio_channel_get_all()
232 return chans; in of_iio_channel_get_all()
236 iio_device_put(chans[i].indio_dev); in of_iio_channel_get_all()
237 kfree(chans); in of_iio_channel_get_all()
336 struct iio_channel *chans; in iio_channel_get_all() local
345 chans = of_iio_channel_get_all(dev); in iio_channel_get_all()
346 if (chans) in iio_channel_get_all()
[all …]
/drivers/staging/comedi/drivers/
Dadv_pci_dio.c230 int chans; /* num of chans */ member
982 if (d->chans > 16) in pci_dio_add_di()
984 s->n_chan = d->chans; in pci_dio_add_di()
986 s->len_chanlist = d->chans; in pci_dio_add_di()
1012 if (d->chans > 16) in pci_dio_add_do()
1014 s->n_chan = d->chans; in pci_dio_add_do()
1016 s->len_chanlist = d->chans; in pci_dio_add_do()
1041 s->n_chan = d->chans; in pci_dio_add_8254()
1043 s->len_chanlist = d->chans; in pci_dio_add_8254()
1116 if (this_board->sdi[i].chans) { in pci_dio_auto_attach()
[all …]
Dadl_pci9118.c516 unsigned int flags, int chans, in pci9118_calc_divisors() argument
525 if (*div2 < chans) in pci9118_calc_divisors()
526 *div2 = chans; in pci9118_calc_divisors()
532 if (*div2 < (chans + 2)) in pci9118_calc_divisors()
533 *div2 = chans + 2; in pci9118_calc_divisors()
/drivers/mailbox/
Dmailbox.c120 struct mbox_chan *chan = &mbox->chans[i]; in poll_txdone()
395 return &mbox->chans[ind]; in of_mbox_index_xlate()
426 struct mbox_chan *chan = &mbox->chans[i]; in mbox_controller_register()
461 mbox_free_channel(&mbox->chans[i]); in mbox_controller_unregister()
/drivers/dma/
Dfsl-edma.c174 struct fsl_edma_chan chans[]; member
661 fsl_chan = &fsl_edma->chans[ch]; in fsl_edma_tx_handler()
693 fsl_edma_disable_request(&fsl_edma->chans[ch]); in fsl_edma_err_handler()
696 fsl_edma->chans[ch].status = DMA_ERROR; in fsl_edma_err_handler()
841 int len, chans; in fsl_edma_probe() local
844 ret = of_property_read_u32(np, "dma-channels", &chans); in fsl_edma_probe()
850 len = sizeof(*fsl_edma) + sizeof(*fsl_chan) * chans; in fsl_edma_probe()
855 fsl_edma->n_chans = chans; in fsl_edma_probe()
894 struct fsl_edma_chan *fsl_chan = &fsl_edma->chans[i]; in fsl_edma_probe()
Dk3dma.c102 struct k3_dma_chan *chans; member
658 return dma_get_slave_channel(&(d->chans[request].vc.chan)); in k3_of_dma_simple_xlate()
728 d->chans = devm_kzalloc(&op->dev, in k3_dma_probe()
730 if (d->chans == NULL) in k3_dma_probe()
734 struct k3_dma_chan *c = &d->chans[i]; in k3_dma_probe()
Dpl330.c1642 int chans, i; in pl330_request_channel() local
1647 chans = pl330->pcfg.num_chan; in pl330_request_channel()
1651 for (i = 0; i < chans; i++) { in pl330_request_channel()
1771 int chans = pl330->pcfg.num_chan; in dmac_alloc_threads() local
1776 pl330->channels = kzalloc((1 + chans) * sizeof(*thrd), in dmac_alloc_threads()
1782 for (i = 0; i < chans; i++) { in dmac_alloc_threads()
1791 thrd = &pl330->channels[chans]; in dmac_alloc_threads()
1792 thrd->id = chans; in dmac_alloc_threads()
1802 int chans = pl330->pcfg.num_chan; in dmac_alloc_resources() local
1810 chans * pl330->mcbufsz, in dmac_alloc_resources()
[all …]
Dcoh901318.c1287 struct coh901318_chan *chans; member
2028 cohc = &base->chans[ch]; in dma_irq_handler()
2074 cohc = &base->chans[ch]; in dma_irq_handler()
2628 cohc = &base->chans[i]; in coh901318_base_init()
2681 base->chans = ((void *)base) + ALIGN(sizeof(struct coh901318_base), 4); in coh901318_probe()
Dste_dma40.c2816 struct d40_chan *chans, int offset, in d40_chan_init() argument
2825 d40c = &chans[i]; in d40_chan_init()
/drivers/edac/
Di82975x_edac.c482 int chans; in i82975x_probe1() local
542 chans = dual_channel_active(mch_window) + 1; in i82975x_probe1()
549 layers[1].size = I82975X_NR_CSROWS(chans); in i82975x_probe1()
/drivers/input/keyboard/
Dlm8323.c127 #define PWM_WAIT_TRIG(chans) (0xe000 | (((chans) & 0x7) << 6)) argument
129 #define PWM_SEND_TRIG(chans) (0xe000 | ((chans) & 0x7)) argument
/drivers/atm/
Dzatm.h72 int chans; /* map size, must be 2^n */ member
Dzatm.c418 if (chan < zatm_dev->chans && zatm_dev->rx_map[chan]) { in poll_rx()
605 size = sizeof(struct atm_vcc *)*zatm_dev->chans; in start_rx()
768 if (chan < zatm_dev->chans && zatm_dev->tx_map[chan]) in poll_tx()
1002 zatm_dev->chans,GFP_KERNEL); in start_tx()
1288 zatm_dev->chans = vccs; /* ??? */ in zatm_start()
/drivers/tty/serial/
Dmfd.c102 struct hsu_dma_chan chans[10]; member
264 hsu->debugfs, (void *)&hsu->chans[i], &dma_regs_ops); in hsu_debugfs_init()
678 dma_chan_irq(&hsu->chans[i]); in dma_irq()
1403 uport->txc = &hsu->chans[i * 2]; in hsu_global_init()
1404 uport->rxc = &hsu->chans[i * 2 + 1]; in hsu_global_init()
1418 dchan = hsu->chans; in hsu_global_init()
/drivers/net/wireless/libertas/
Dcmd.c812 t->chans.first_channel = first_channel; in lbs_set_11d_domain_info()
813 t->chans.num_channels = num_parsed_chan; in lbs_set_11d_domain_info()
814 t->chans.max_power = max_pwr; in lbs_set_11d_domain_info()
825 t->chans.first_channel = first_channel; in lbs_set_11d_domain_info()
826 t->chans.num_channels = num_parsed_chan; in lbs_set_11d_domain_info()
827 t->chans.max_power = max_pwr; in lbs_set_11d_domain_info()
/drivers/char/ipmi/
Dipmi_msghandler.c119 unsigned int chans; member
1283 && (rcvr->chans & (1 << chan))) in find_cmd_rcvr()
1292 unsigned int chans) in is_cmd_rcvr_exclusive() argument
1298 && (rcvr->chans & chans)) in is_cmd_rcvr_exclusive()
1307 unsigned int chans) in ipmi_register_for_cmd() argument
1319 rcvr->chans = chans; in ipmi_register_for_cmd()
1324 if (!is_cmd_rcvr_exclusive(intf, netfn, cmd, chans)) { in ipmi_register_for_cmd()
1346 unsigned int chans) in ipmi_unregister_for_cmd() argument
1355 if (((1 << i) & chans) == 0) in ipmi_unregister_for_cmd()
1362 rcvr->chans &= ~chans; in ipmi_unregister_for_cmd()
[all …]
Dipmi_devintf.c411 val.chans); in ipmi_ioctl()
425 val.chans); in ipmi_ioctl()
/drivers/net/wireless/
Dmac80211_hwsim.c2435 int chans = 1; in hwsim_register_received_nl() local
2439 chans = max(chans, data->channels); in hwsim_register_received_nl()
2447 if (chans > 1) in hwsim_register_received_nl()
2463 unsigned int chans = channels; in hwsim_create_radio_nl() local
2471 chans = nla_get_u32(info->attrs[HWSIM_ATTR_CHANNELS]); in hwsim_create_radio_nl()
2476 use_chanctx = (chans > 1); in hwsim_create_radio_nl()
2489 return mac80211_hwsim_create_radio(chans, alpha2, regd, reg_strict, in hwsim_create_radio_nl()
/drivers/ata/
Dpata_legacy.c1068 u8 chans = 1; in probe_opti_vlb() local
1075 chans = (opti_syscfg(0x3F) & 0x20) ? 2 : 1; in probe_opti_vlb()
1080 if (chans == 2) { in probe_opti_vlb()
/drivers/net/wireless/ath/carl9170/
Dmain.c1921 int chans = 0; in carl9170_parse_eeprom() local
1945 chans += carl9170_band_2GHz.n_channels; in carl9170_parse_eeprom()
1951 chans += carl9170_band_5GHz.n_channels; in carl9170_parse_eeprom()
1958 ar->survey = kzalloc(sizeof(struct survey_info) * chans, GFP_KERNEL); in carl9170_parse_eeprom()
1961 ar->num_channels = chans; in carl9170_parse_eeprom()
/drivers/net/wireless/mwifiex/
Dcfg80211.c464 t->chans.first_channel = first_chan; in mwifiex_send_domain_info_cmd_fw()
465 t->chans.num_channels = no_of_parsed_chan; in mwifiex_send_domain_info_cmd_fw()
466 t->chans.max_power = max_pwr; in mwifiex_send_domain_info_cmd_fw()
477 t->chans.first_channel = first_chan; in mwifiex_send_domain_info_cmd_fw()
478 t->chans.num_channels = no_of_parsed_chan; in mwifiex_send_domain_info_cmd_fw()
479 t->chans.max_power = max_pwr; in mwifiex_send_domain_info_cmd_fw()