/linux-2.6.39/drivers/staging/comedi/drivers/ |
D | cb_pcimdda.c | 137 #define thisboard ((const struct board_struct *)dev->board_ptr) macro 139 #define REG_SZ (thisboard->reg_sz) 140 #define REGS_BADRINDEX (thisboard->regs_badrindex) 303 printk("comedi%d: %s: ", dev->minor, thisboard->name); in attach() 309 dev->board_name = thisboard->name; in attach() 323 s->n_chan = thisboard->ao_chans; in attach() 324 s->maxdata = figure_out_maxdata(thisboard->ao_bits); in attach() 335 if (thisboard->dio_chans) { in attach() 336 switch (thisboard->dio_method) { in attach() 383 if (devpriv->attached_successfully && thisboard) in detach() [all …]
|
D | das08.c | 519 #define thisboard ((const struct das08_board_struct *)dev->board_ptr) macro 555 if (thisboard->ai_nbits == 16) in das08_ai_rinsn() 572 if (thisboard->ai_encoding == das08_encode12) { in das08_ai_rinsn() 574 } else if (thisboard->ai_encoding == das08_pcm_encode12) { in das08_ai_rinsn() 576 } else if (thisboard->ai_encoding == das08_encode16) { in das08_ai_rinsn() 865 if ((thisboard->bustype != pcmcia) && (thisboard->bustype != pci)) { in das08_common_attach() 867 if (!request_region(iobase, thisboard->iosize, DRV_NAME)) { in das08_common_attach() 874 dev->board_name = thisboard->name; in das08_common_attach() 882 if (thisboard->ai) { in das08_common_attach() 891 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 | cb_pcidio.c | 105 #define thisboard ((const struct pcidio_board *)dev->board_ptr) macro 236 dev->board_name = thisboard->name; in pcidio_attach() 239 printk("Found %s on bus %i, slot %i\n", thisboard->name, in pcidio_attach() 242 if (comedi_pci_enable(pcidev, thisboard->name)) { in pcidio_attach() 256 if (alloc_subdevices(dev, thisboard->n_8255) < 0) in pcidio_attach() 259 for (i = 0; i < thisboard->n_8255; i++) { in pcidio_attach() 290 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 261 switch (thisboard->device_id) { in cb_pcimdas_attach() 298 dev->board_name = thisboard->name; in cb_pcimdas_attach() 312 s->n_chan = thisboard->ai_se_chans; in cb_pcimdas_attach() 313 s->maxdata = (1 << thisboard->ai_bits) - 1; in cb_pcimdas_attach() 323 s->n_chan = thisboard->ao_nchan; in cb_pcimdas_attach() 324 s->maxdata = 1 << thisboard->ao_bits; in cb_pcimdas_attach() 331 if (thisboard->has_dio) in cb_pcimdas_attach() 393 maxchans = thisboard->ai_diff_chans; in cb_pcimdas_ai_rinsn() 395 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 | 116 #define thisboard ((const struct pc263_board *)dev->board_ptr) macro 182 if (thisboard->model == anypci_model) { in pc263_find_pci() 199 if (pci_dev->device != thisboard->devid) in pc263_find_pci() 211 dev->minor, thisboard->name, bus, slot); in pc263_find_pci() 214 dev->minor, thisboard->name); in pc263_find_pci() 251 switch (thisboard->bustype) { in pc263_attach() 277 dev->board_name = thisboard->name; in pc263_attach() 327 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() 413 chans_left = CHANS_PER_ASIC * thisboard->dio_num_asics; in pcmmio_attach() 438 s->maxdata = (1 << thisboard->ai_bits) - 1; in pcmmio_attach() 439 s->range_table = thisboard->ai_range_table; in pcmmio_attach() 442 s->n_chan = thisboard->n_ai_chans; in pcmmio_attach() 444 s->insn_read = thisboard->ai_rinsn; in pcmmio_attach() 454 s->maxdata = (1 << thisboard->ao_bits) - 1; in pcmmio_attach() 455 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() 510 dev->board_name = thisboard->name; in das800_attach() 522 s->maxdata = (1 << thisboard->resolution) - 1; in das800_attach() 523 s->range_table = thisboard->ai_range; in das800_attach() 584 if (thisboard->resolution == 16) in enable_das800() 661 if (cmd->convert_arg < thisboard->ai_speed) { in das800_ai_do_cmdtest() [all …]
|
D | contec_pci_dio.c | 68 #define thisboard ((const struct contec_board *)dev->board_ptr) macro 111 dev->board_name = thisboard->name; in contec_attach() 210 dev->iobase + thisboard->out_offs); in contec_do_insn_bits() 211 outw(s->state, dev->iobase + thisboard->out_offs); in contec_do_insn_bits() 227 data[1] = inw(dev->iobase + thisboard->in_offs); in contec_di_insn_bits()
|
D | ni_labpc.c | 484 #define thisboard ((struct labpc_board_struct *)dev->board_ptr) macro 517 if (thisboard->memory_mapped_io) in labpc_counter_load() 533 thisboard->name, in labpc_common_attach() 546 if (thisboard->bustype == isa_bustype) { in labpc_common_attach() 556 if (thisboard->memory_mapped_io) { in labpc_common_attach() 568 if (thisboard->register_layout == labpc_1200_layout) { in labpc_common_attach() 578 if (thisboard->bustype == pci_bustype in labpc_common_attach() 579 || thisboard->bustype == pcmcia_bustype) in labpc_common_attach() 613 dev->board_name = thisboard->name; in labpc_common_attach() 627 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() 162 dev->board_name = thisboard->name; in dio24_attach() 181 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 631 if (thisboard->ao_nchan) { in cb_pcidas_attach() 648 dev->board_name = thisboard->name; in cb_pcidas_attach() 662 s->n_chan = thisboard->ai_se_chans; in cb_pcidas_attach() 663 s->len_chanlist = thisboard->ai_se_chans; in cb_pcidas_attach() 664 s->maxdata = (1 << thisboard->ai_bits) - 1; in cb_pcidas_attach() 665 s->range_table = thisboard->ranges; in cb_pcidas_attach() 674 if (thisboard->ao_nchan) { in cb_pcidas_attach() 677 s->n_chan = thisboard->ao_nchan; in cb_pcidas_attach() 679 s->maxdata = (1 << thisboard->ai_bits) - 1; in cb_pcidas_attach() [all …]
|
D | amplc_pc236.c | 149 #define thisboard ((const struct pc236_board *)dev->board_ptr) macro 280 if (thisboard->model == anypci_model) { in pc236_find_pci() 297 if (pci_dev->device != thisboard->devid) in pc236_find_pci() 309 dev->minor, thisboard->name, bus, slot); in pc236_find_pci() 312 dev->minor, thisboard->name); in pc236_find_pci() 349 switch (thisboard->bustype) { in pc236_attach() 378 dev->board_name = thisboard->name; in pc236_attach() 444 if (thisboard->bustype == isa_bustype) { in pc236_attach()
|
D | das1800.c | 477 #define thisboard ((const struct das1800_board *)dev->board_ptr) macro 666 dev->board_name = thisboard->name; in das1800_attach() 669 if (thisboard->ao_ability == 2) { in das1800_attach() 738 if (thisboard->common) in das1800_attach() 740 s->n_chan = thisboard->qram_len; in das1800_attach() 741 s->len_chanlist = thisboard->qram_len; in das1800_attach() 742 s->maxdata = (1 << thisboard->resolution) - 1; in das1800_attach() 743 s->range_table = thisboard->range_ai; in das1800_attach() 752 if (thisboard->ao_ability == 1) { in das1800_attach() 755 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 323 printk("Found %s at requested position\n", thisboard->name); in cb_pcidda_attach() 328 if (comedi_pci_enable(pcidev, thisboard->name)) { in cb_pcidda_attach() 344 if (thisboard->status == 2) in cb_pcidda_attach() 353 dev->board_name = thisboard->name; in cb_pcidda_attach() 365 s->n_chan = thisboard->ao_chans; in cb_pcidda_attach() 366 s->maxdata = (1 << thisboard->ao_bits) - 1; in cb_pcidda_attach() 367 s->range_table = thisboard->ranges; in cb_pcidda_attach() 388 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() 627 for (asic = 0; asic < thisboard->num_asics; ++asic) { in init_asics() 661 if (asic < 0 || asic >= thisboard->num_asics) in switch_page() 677 if (asic < 0 || asic >= thisboard->num_asics) in lock_port() [all …]
|
D | amplc_pci224.c | 400 #define thisboard ((struct pci224_board *)dev->board_ptr) macro 510 mangled = (unsigned short)data << (16 - thisboard->ao_bits); in pci224_ao_set_data() 1251 shift = 16 - thisboard->ao_bits; in pci224_ao_munge() 1340 if (thisboard->model == any_model) { in pci224_find_pci() 1355 if (thisboard->devid != pci_dev->device) in pci224_find_pci() 1367 dev->minor, thisboard->name, bus, slot); in pci224_find_pci() 1370 dev->minor, thisboard->name); in pci224_find_pci() 1421 thisboard->ao_chans, GFP_KERNEL); in pci224_attach() 1428 thisboard->ao_chans, GFP_KERNEL); in pci224_attach() 1435 thisboard->ao_chans, GFP_KERNEL); in pci224_attach() [all …]
|
D | amplc_pci230.c | 517 #define thisboard ((const struct pci230_board *)dev->board_ptr) macro 706 data = data >> (16 - thisboard->ai_bits); in pci230_ai_read() 711 data ^= 1 << (thisboard->ai_bits - 1); in pci230_ai_read() 722 datum ^= 1 << (thisboard->ao_bits - 1); in pci230_ao_mangle_datum() 728 datum <<= (16 - thisboard->ao_bits); in pci230_ao_mangle_datum() 771 thisboard->name, it->options[0], it->options[1]); in pci230_attach() 792 if (thisboard->id == PCI_DEVICE_ID_INVALID) { in pci230_attach() 824 if (thisboard->id == pci_dev->device) { in pci230_attach() 826 if (thisboard->min_hwver > 0) { in pci230_attach() 846 thisboard->name); in pci230_attach() [all …]
|
D | ni_at_a2150.c | 159 #define thisboard ((const struct a2150_board *)dev->board_ptr) macro 417 dev->board_name = thisboard->name; in a2150_attach() 558 if (cmd->convert_arg < thisboard->ai_speed) { in a2150_ai_cmdtest() 559 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()
|
D | adl_pci6208.c | 100 #define thisboard ((const struct pci6208_board *)dev->board_ptr) macro 206 dev->board_name = thisboard->name; in pci6208_attach() 219 s->n_chan = thisboard->ao_chans; in pci6208_attach()
|