/linux-3.4.99/drivers/staging/comedi/drivers/ |
D | cb_pcimdda.c | 138 #define thisboard ((const struct board_struct *)dev->board_ptr) macro 140 #define REG_SZ (thisboard->reg_sz) 141 #define REGS_BADRINDEX (thisboard->regs_badrindex) 305 printk("comedi%d: %s: ", dev->minor, thisboard->name); in attach() 311 dev->board_name = thisboard->name; in attach() 325 s->n_chan = thisboard->ao_chans; in attach() 326 s->maxdata = figure_out_maxdata(thisboard->ao_bits); in attach() 337 if (thisboard->dio_chans) { in attach() 338 switch (thisboard->dio_method) { in attach() 388 if (devpriv->attached_successfully && thisboard) in detach() [all …]
|
D | das08.c | 517 #define thisboard ((const struct das08_board_struct *)dev->board_ptr) macro 553 if (thisboard->ai_nbits == 16) in das08_ai_rinsn() 570 if (thisboard->ai_encoding == das08_encode12) { in das08_ai_rinsn() 572 } else if (thisboard->ai_encoding == das08_pcm_encode12) { in das08_ai_rinsn() 574 } else if (thisboard->ai_encoding == das08_encode16) { in das08_ai_rinsn() 863 if ((thisboard->bustype != pcmcia) && (thisboard->bustype != pci)) { in das08_common_attach() 865 if (!request_region(iobase, thisboard->iosize, DRV_NAME)) { in das08_common_attach() 872 dev->board_name = thisboard->name; in das08_common_attach() 880 if (thisboard->ai) { in das08_common_attach() 889 s->maxdata = (1 << thisboard->ai_nbits) - 1; in das08_common_attach() [all …]
|
D | das16.c | 766 #define thisboard ((struct das16_board *)(dev->board_ptr)) macro 784 if (thisboard->size > 0x400) in das16_cmd_test() 793 if (thisboard->size > 0x400) in das16_cmd_test() 856 thisboard->ai_speed * cmd->chanlist_len) { in das16_cmd_test() 858 thisboard->ai_speed * cmd->chanlist_len; in das16_cmd_test() 863 if (cmd->convert_arg < thisboard->ai_speed) { in das16_cmd_test() 864 cmd->convert_arg = thisboard->ai_speed; in das16_cmd_test() 954 if (thisboard->size > 0x400) in das16_cmd_exec() 965 if (thisboard->ai_pg != das16_pg_none) { in das16_cmd_exec() 967 outb((das16_gainlists[thisboard->ai_pg])[range], in das16_cmd_exec() [all …]
|
D | dyna_pci10xx.c | 135 #define thisboard ((const struct boardtype *)dev->board_ptr) macro 153 range = thisboard->range_codes_ai[CR_RANGE((insn->chanspec))]; in dyna_pci10xx_insn_read_ai() 194 range = thisboard->range_codes_ai[CR_RANGE((insn->chanspec))]; in dyna_pci10xx_insn_write_ao() 283 dev->board_name = thisboard->name; in dyna_pci10xx_attach() 365 s->n_chan = thisboard->ai_chans; in dyna_pci10xx_attach() 367 s->range_table = thisboard->range_ai; in dyna_pci10xx_attach() 375 s->n_chan = thisboard->ao_chans; in dyna_pci10xx_attach() 377 s->range_table = thisboard->range_ao; in dyna_pci10xx_attach() 385 s->n_chan = thisboard->di_chans; in dyna_pci10xx_attach() 388 s->len_chanlist = thisboard->di_chans; in dyna_pci10xx_attach() [all …]
|
D | cb_pcidio.c | 95 #define thisboard ((const struct pcidio_board *)dev->board_ptr) macro 223 dev->board_name = thisboard->name; in pcidio_attach() 226 dev_dbg(dev->hw_dev, "Found %s on bus %i, slot %i\n", thisboard->name, in pcidio_attach() 229 if (comedi_pci_enable(pcidev, thisboard->name)) in pcidio_attach() 246 if (alloc_subdevices(dev, thisboard->n_8255) < 0) in pcidio_attach() 249 for (i = 0; i < thisboard->n_8255; i++) { in pcidio_attach() 278 for (i = 0; i < thisboard->n_8255; i++) in pcidio_detach()
|
D | cb_pcimdas.c | 140 #define thisboard ((const struct cb_pcimdas_board *)dev->board_ptr) macro 258 switch (thisboard->device_id) { in cb_pcimdas_attach() 293 dev->board_name = thisboard->name; in cb_pcimdas_attach() 307 s->n_chan = thisboard->ai_se_chans; in cb_pcimdas_attach() 308 s->maxdata = (1 << thisboard->ai_bits) - 1; in cb_pcimdas_attach() 318 s->n_chan = thisboard->ao_nchan; in cb_pcimdas_attach() 319 s->maxdata = 1 << thisboard->ao_bits; in cb_pcimdas_attach() 326 if (thisboard->has_dio) in cb_pcimdas_attach() 389 maxchans = thisboard->ai_diff_chans; in cb_pcimdas_ai_rinsn() 391 maxchans = thisboard->ai_se_chans; in cb_pcimdas_ai_rinsn()
|
D | adq12b.c | 146 #define thisboard ((const struct adq12b_board *)dev->board_ptr) macro 228 dev->board_name = thisboard->name; in adq12b_attach() 258 s->n_chan = thisboard->ai_diff_chans; in adq12b_attach() 261 s->n_chan = thisboard->ai_se_chans; in adq12b_attach() 269 s->maxdata = (1 << thisboard->ai_bits) - 1; in adq12b_attach() 279 s->n_chan = thisboard->di_chans; in adq12b_attach() 288 s->n_chan = thisboard->do_chans; in adq12b_attach()
|
D | amplc_pc263.c | 114 #define thisboard ((const struct pc263_board *)dev->board_ptr) macro 180 if (thisboard->model == anypci_model) { in pc263_find_pci() 197 if (pci_dev->device != thisboard->devid) in pc263_find_pci() 209 dev->minor, thisboard->name, bus, slot); in pc263_find_pci() 212 dev->minor, thisboard->name); in pc263_find_pci() 249 switch (thisboard->bustype) { in pc263_attach() 275 dev->board_name = thisboard->name; in pc263_attach() 325 if (thisboard->bustype == isa_bustype) { in pc263_attach()
|
D | pcmmio.c | 213 #define thisboard ((const struct pcmmio_board *)dev->board_ptr) macro 380 thisboard->total_iosize, in pcmmio_attach() 390 dev->board_name = thisboard->name; in pcmmio_attach() 414 chans_left = CHANS_PER_ASIC * thisboard->dio_num_asics; in pcmmio_attach() 441 s->maxdata = (1 << thisboard->ai_bits) - 1; in pcmmio_attach() 442 s->range_table = thisboard->ai_range_table; in pcmmio_attach() 445 s->n_chan = thisboard->n_ai_chans; in pcmmio_attach() 447 s->insn_read = thisboard->ai_rinsn; in pcmmio_attach() 457 s->maxdata = (1 << thisboard->ao_bits) - 1; in pcmmio_attach() 458 s->range_table = thisboard->ao_range_table; in pcmmio_attach() [all …]
|
D | das800.c | 234 #define thisboard ((const struct das800_board *)dev->board_ptr) macro 294 board = thisboard - das800_boards; in das800_probe() 405 if (thisboard->resolution == 12) { in das800_interrupt() 416 if (thisboard->resolution == 12) in das800_interrupt() 428 if (thisboard->resolution == 12) { in das800_interrupt() 511 dev->board_name = thisboard->name; in das800_attach() 523 s->maxdata = (1 << thisboard->resolution) - 1; in das800_attach() 524 s->range_table = thisboard->ai_range; in das800_attach() 585 if (thisboard->resolution == 16) in enable_das800() 662 if (cmd->convert_arg < thisboard->ai_speed) { in das800_ai_do_cmdtest() [all …]
|
D | contec_pci_dio.c | 67 #define thisboard ((const struct contec_board *)dev->board_ptr) macro 110 dev->board_name = thisboard->name; in contec_attach() 209 dev->iobase + thisboard->out_offs); in contec_do_insn_bits() 210 outw(s->state, dev->iobase + thisboard->out_offs); in contec_do_insn_bits() 226 data[1] = inw(dev->iobase + thisboard->in_offs); in contec_di_insn_bits()
|
D | ni_labpc.c | 489 #define thisboard ((struct labpc_board_struct *)dev->board_ptr) macro 522 if (thisboard->memory_mapped_io) in labpc_counter_load() 541 thisboard->name, in labpc_common_attach() 554 if (thisboard->bustype == isa_bustype) { in labpc_common_attach() 564 if (thisboard->memory_mapped_io) { in labpc_common_attach() 576 if (thisboard->register_layout == labpc_1200_layout) { in labpc_common_attach() 586 if (thisboard->bustype == pci_bustype in labpc_common_attach() 587 || thisboard->bustype == pcmcia_bustype) in labpc_common_attach() 623 dev->board_name = thisboard->name; in labpc_common_attach() 637 s->range_table = thisboard->ai_range_table; in labpc_common_attach() [all …]
|
D | ni_daq_dio24.c | 92 #define thisboard ((const struct dio24_board_struct *)dev->board_ptr) macro 125 switch (thisboard->bustype) { in dio24_attach() 141 thisboard->name, iobase); in dio24_attach() 159 dev->board_name = thisboard->name; in dio24_attach() 178 if (thisboard->bustype != pcmcia_bustype && dev->iobase) in dio24_detach()
|
D | dmm32at.c | 195 #define thisboard ((const struct dmm32at_board *)dev->board_ptr) macro 307 if (!request_region(iobase, DMM32AT_MEMSIZE, thisboard->name)) { in dmm32at_attach() 361 ret = request_irq(irq, dmm32at_isr, 0, thisboard->name, dev); in dmm32at_attach() 380 dev->board_name = thisboard->name; in dmm32at_attach() 402 s->n_chan = thisboard->ai_chans; in dmm32at_attach() 403 s->maxdata = (1 << thisboard->ai_bits) - 1; in dmm32at_attach() 404 s->range_table = thisboard->ai_ranges; in dmm32at_attach() 416 s->n_chan = thisboard->ao_chans; in dmm32at_attach() 417 s->maxdata = (1 << thisboard->ao_bits) - 1; in dmm32at_attach() 418 s->range_table = thisboard->ao_ranges; in dmm32at_attach() [all …]
|
D | cb_pcidas.c | 425 #define thisboard ((const struct cb_pcidas_board *)dev->board_ptr) macro 628 if (thisboard->ao_nchan) { in cb_pcidas_attach() 646 dev->board_name = thisboard->name; in cb_pcidas_attach() 660 s->n_chan = thisboard->ai_se_chans; in cb_pcidas_attach() 661 s->len_chanlist = thisboard->ai_se_chans; in cb_pcidas_attach() 662 s->maxdata = (1 << thisboard->ai_bits) - 1; in cb_pcidas_attach() 663 s->range_table = thisboard->ranges; in cb_pcidas_attach() 672 if (thisboard->ao_nchan) { in cb_pcidas_attach() 675 s->n_chan = thisboard->ao_nchan; in cb_pcidas_attach() 677 s->maxdata = (1 << thisboard->ai_bits) - 1; in cb_pcidas_attach() [all …]
|
D | amplc_pc236.c | 147 #define thisboard ((const struct pc236_board *)dev->board_ptr) macro 278 if (thisboard->model == anypci_model) { in pc236_find_pci() 295 if (pci_dev->device != thisboard->devid) in pc236_find_pci() 307 dev->minor, thisboard->name, bus, slot); in pc236_find_pci() 310 dev->minor, thisboard->name); in pc236_find_pci() 347 switch (thisboard->bustype) { in pc236_attach() 376 dev->board_name = thisboard->name; in pc236_attach() 442 if (thisboard->bustype == isa_bustype) { in pc236_attach()
|
D | das1800.c | 478 #define thisboard ((const struct das1800_board *)dev->board_ptr) macro 668 dev->board_name = thisboard->name; in das1800_attach() 671 if (thisboard->ao_ability == 2) { in das1800_attach() 741 if (thisboard->common) in das1800_attach() 743 s->n_chan = thisboard->qram_len; in das1800_attach() 744 s->len_chanlist = thisboard->qram_len; in das1800_attach() 745 s->maxdata = (1 << thisboard->resolution) - 1; in das1800_attach() 746 s->range_table = thisboard->range_ai; in das1800_attach() 755 if (thisboard->ao_ability == 1) { in das1800_attach() 758 s->n_chan = thisboard->ao_n_chan; in das1800_attach() [all …]
|
D | cb_pcidda.c | 213 #define thisboard ((const struct cb_pcidda_board *)dev->board_ptr) macro 321 thisboard->name); in cb_pcidda_attach() 326 if (comedi_pci_enable(pcidev, thisboard->name)) { in cb_pcidda_attach() 341 if (thisboard->status == 2) in cb_pcidda_attach() 350 dev->board_name = thisboard->name; in cb_pcidda_attach() 362 s->n_chan = thisboard->ao_chans; in cb_pcidda_attach() 363 s->maxdata = (1 << thisboard->ao_bits) - 1; in cb_pcidda_attach() 364 s->range_table = thisboard->ranges; in cb_pcidda_attach() 384 for (index = 0; index < thisboard->ao_chans; index++) in cb_pcidda_attach()
|
D | skel.c | 129 #define thisboard ((const struct skel_board *)dev->board_ptr) macro 227 dev->board_name = thisboard->name; in skel_attach() 249 s->n_chan = thisboard->ai_chans; in skel_attach() 250 s->maxdata = (1 << thisboard->ai_bits) - 1; in skel_attach() 273 if (thisboard->have_dio) { in skel_attach() 348 d ^= 1 << (thisboard->ai_bits - 1); in skel_ai_rinsn()
|
D | pcmuio.c | 174 #define thisboard ((const struct pcmuio_board *)dev->board_ptr) macro 304 thisboard->num_asics * ASIC_IOSIZE, in pcmuio_attach() 314 dev->board_name = thisboard->name; in pcmuio_attach() 334 chans_left = CHANS_PER_ASIC * thisboard->num_asics; in pcmuio_attach() 423 IRQF_SHARED, thisboard->name, dev)) { in pcmuio_attach() 440 if (irq[1] && thisboard->num_asics == 2) in pcmuio_attach() 465 release_region(dev->iobase, ASIC_IOSIZE * thisboard->num_asics); in pcmuio_detach() 629 for (asic = 0; asic < thisboard->num_asics; ++asic) { in init_asics() 663 if (asic < 0 || asic >= thisboard->num_asics) in switch_page() 679 if (asic < 0 || asic >= thisboard->num_asics) in lock_port() [all …]
|
D | amplc_pci224.c | 397 #define thisboard ((struct pci224_board *)dev->board_ptr) macro 507 mangled = (unsigned short)data << (16 - thisboard->ao_bits); in pci224_ao_set_data() 1248 shift = 16 - thisboard->ao_bits; in pci224_ao_munge() 1337 if (thisboard->model == any_model) { in pci224_find_pci() 1352 if (thisboard->devid != pci_dev->device) in pci224_find_pci() 1364 dev->minor, thisboard->name, bus, slot); in pci224_find_pci() 1367 dev->minor, thisboard->name); in pci224_find_pci() 1418 thisboard->ao_chans, GFP_KERNEL); in pci224_attach() 1425 thisboard->ao_chans, GFP_KERNEL); in pci224_attach() 1432 thisboard->ao_chans, GFP_KERNEL); in pci224_attach() [all …]
|
D | amplc_pci230.c | 514 #define thisboard ((const struct pci230_board *)dev->board_ptr) macro 703 data = data >> (16 - thisboard->ai_bits); in pci230_ai_read() 708 data ^= 1 << (thisboard->ai_bits - 1); in pci230_ai_read() 719 datum ^= 1 << (thisboard->ao_bits - 1); in pci230_ao_mangle_datum() 725 datum <<= (16 - thisboard->ao_bits); in pci230_ao_mangle_datum() 768 thisboard->name, it->options[0], it->options[1]); in pci230_attach() 789 if (thisboard->id == PCI_DEVICE_ID_INVALID) { in pci230_attach() 821 if (thisboard->id == pci_dev->device) { in pci230_attach() 823 if (thisboard->min_hwver > 0) { in pci230_attach() 843 thisboard->name); in pci230_attach() [all …]
|
D | ni_at_a2150.c | 160 #define thisboard ((const struct a2150_board *)dev->board_ptr) macro 418 dev->board_name = thisboard->name; in a2150_attach() 559 if (cmd->convert_arg < thisboard->ai_speed) { in a2150_ai_cmdtest() 560 cmd->convert_arg = thisboard->ai_speed; in a2150_ai_cmdtest() 827 lub = thisboard->clock[lub_index] * (1 << lub_divisor_shift); in a2150_get_timing() 829 glb_index = thisboard->num_clocks - 1; in a2150_get_timing() 830 glb = thisboard->clock[glb_index] * (1 << glb_divisor_shift); in a2150_get_timing() 841 for (j = 0; j < thisboard->num_clocks; j++) { in a2150_get_timing() 843 temp = thisboard->clock[j] * (1 << i); in a2150_get_timing()
|
D | comedi_test.c | 79 #define thisboard ((const struct waveform_board *)dev->board_ptr) macro 228 dev->board_name = thisboard->name; in waveform_attach() 251 s->n_chan = thisboard->ai_chans; in waveform_attach() 252 s->maxdata = (1 << thisboard->ai_bits) - 1; in waveform_attach() 265 s->n_chan = thisboard->ai_chans; in waveform_attach() 266 s->maxdata = (1 << thisboard->ai_bits) - 1; in waveform_attach()
|
D | ni_daq_700.c | 95 #define thisboard ((const struct dio700_board *)dev->board_ptr) macro 373 switch (thisboard->bustype) { in dio700_attach() 389 thisboard->name, iobase); in dio700_attach() 410 dev->board_name = thisboard->name; in dio700_attach() 429 if (thisboard->bustype != pcmcia_bustype && dev->iobase) in dio700_detach()
|