/drivers/staging/comedi/drivers/ |
H A 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); 308 * Initialize dev->board_name. Note that we can use the "thisboard" 311 dev->board_name = thisboard->name; 325 s->n_chan = thisboard->ao_chans; 326 s->maxdata = figure_out_maxdata(thisboard->ao_bits); 337 if (thisboard->dio_chans) { 338 switch (thisboard [all...] |
H A D | cb_pcidio.c | 105 #define thisboard ((const struct pcidio_board *)dev->board_ptr) macro 230 * Initialize dev->board_name. Note that we can use the "thisboard" 233 dev->board_name = thisboard->name; 236 dev_dbg(dev->hw_dev, "Found %s on bus %i, slot %i\n", thisboard->name, 239 if (comedi_pci_enable(pcidev, thisboard->name)) 251 if (alloc_subdevices(dev, thisboard->n_8255) < 0) 254 for (i = 0; i < thisboard->n_8255; i++) { 283 for (i = 0; i < thisboard->n_8255; i++)
|
H A D | das16.c | 766 #define thisboard ((struct das16_board *)(dev->board_ptr)) macro 784 if (thisboard->size > 0x400) 793 if (thisboard->size > 0x400) 856 thisboard->ai_speed * cmd->chanlist_len) { 858 thisboard->ai_speed * cmd->chanlist_len; 863 if (cmd->convert_arg < thisboard->ai_speed) { 864 cmd->convert_arg = thisboard->ai_speed; 954 if (thisboard->size > 0x400) 965 if (thisboard->ai_pg != das16_pg_none) { 967 outb((das16_gainlists[thisboard [all...] |
H A D | dyna_pci10xx.c | 135 #define thisboard ((const struct boardtype *)dev->board_ptr) macro 153 range = thisboard->range_codes_ai[CR_RANGE((insn->chanspec))]; 194 range = thisboard->range_codes_ai[CR_RANGE((insn->chanspec))]; 283 dev->board_name = thisboard->name; 365 s->n_chan = thisboard->ai_chans; 367 s->range_table = thisboard->range_ai; 375 s->n_chan = thisboard->ao_chans; 377 s->range_table = thisboard->range_ao; 385 s->n_chan = thisboard->di_chans; 388 s->len_chanlist = thisboard [all...] |
H A D | das08.c | 517 #define thisboard ((const struct das08_board_struct *)dev->board_ptr) macro 553 if (thisboard->ai_nbits == 16) 570 if (thisboard->ai_encoding == das08_encode12) { 572 } else if (thisboard->ai_encoding == das08_pcm_encode12) { 574 } else if (thisboard->ai_encoding == das08_encode16) { 863 if ((thisboard->bustype != pcmcia) && (thisboard->bustype != pci)) { 865 if (!request_region(iobase, thisboard->iosize, DRV_NAME)) { 872 dev->board_name = thisboard->name; 880 if (thisboard [all...] |
H A D | cb_pcimdas.c | 140 #define thisboard ((const struct cb_pcimdas_board *)dev->board_ptr) macro 258 switch (thisboard->device_id) { 293 dev->board_name = thisboard->name; 307 s->n_chan = thisboard->ai_se_chans; 308 s->maxdata = (1 << thisboard->ai_bits) - 1; 318 s->n_chan = thisboard->ao_nchan; 319 s->maxdata = 1 << thisboard->ao_bits; 326 if (thisboard->has_dio) 389 maxchans = thisboard->ai_diff_chans; 391 maxchans = thisboard [all...] |
H A D | adq12b.c | 146 #define thisboard ((const struct adq12b_board *)dev->board_ptr) macro 225 * Initialize dev->board_name. Note that we can use the "thisboard" 228 dev->board_name = thisboard->name; 258 s->n_chan = thisboard->ai_diff_chans; 261 s->n_chan = thisboard->ai_se_chans; 269 s->maxdata = (1 << thisboard->ai_bits) - 1; 279 s->n_chan = thisboard->di_chans; 288 s->n_chan = thisboard->do_chans;
|
H A D | amplc_pc263.c | 114 #define thisboard ((const struct pc263_board *)dev->board_ptr) macro 180 if (thisboard->model == anypci_model) { 197 if (pci_dev->device != thisboard->devid) 209 dev->minor, thisboard->name, bus, slot); 212 dev->minor, thisboard->name); 249 switch (thisboard->bustype) { 275 dev->board_name = thisboard->name; 325 if (thisboard->bustype == isa_bustype) {
|
H A D | contec_pci_dio.c | 67 #define thisboard ((const struct contec_board *)dev->board_ptr) macro 110 dev->board_name = thisboard->name; 209 dev->iobase + thisboard->out_offs); 210 outw(s->state, dev->iobase + thisboard->out_offs); 226 data[1] = inw(dev->iobase + thisboard->in_offs);
|
H A D | ni_daq_dio24.c | 92 #define thisboard ((const struct dio24_board_struct *)dev->board_ptr) macro 125 switch (thisboard->bustype) { 141 thisboard->name, iobase); 159 dev->board_name = thisboard->name; 178 if (thisboard->bustype != pcmcia_bustype && dev->iobase)
|
H A D | pcmmio.c | 213 #define thisboard ((const struct pcmmio_board *)dev->board_ptr) macro 380 thisboard->total_iosize, 387 * Initialize dev->board_name. Note that we can use the "thisboard" 390 dev->board_name = thisboard->name; 414 chans_left = CHANS_PER_ASIC * thisboard->dio_num_asics; 441 s->maxdata = (1 << thisboard->ai_bits) - 1; 442 s->range_table = thisboard->ai_range_table; 445 s->n_chan = thisboard->n_ai_chans; 447 s->insn_read = thisboard->ai_rinsn; 457 s->maxdata = (1 << thisboard [all...] |
H A D | skel.c | 129 #define thisboard ((const struct skel_board *)dev->board_ptr) macro 224 * Initialize dev->board_name. Note that we can use the "thisboard" 227 dev->board_name = thisboard->name; 249 s->n_chan = thisboard->ai_chans; 250 s->maxdata = (1 << thisboard->ai_bits) - 1; 273 if (thisboard->have_dio) { 348 d ^= 1 << (thisboard->ai_bits - 1);
|
H A D | amplc_pc236.c | 147 #define thisboard ((const struct pc236_board *)dev->board_ptr) macro 278 if (thisboard->model == anypci_model) { 295 if (pci_dev->device != thisboard->devid) 307 dev->minor, thisboard->name, bus, slot); 310 dev->minor, thisboard->name); 347 switch (thisboard->bustype) { 376 dev->board_name = thisboard->name; 442 if (thisboard->bustype == isa_bustype) {
|
H A D | ni_labpc.c | 489 #define thisboard ((struct labpc_board_struct *)dev->board_ptr) macro 522 if (thisboard->memory_mapped_io) 541 thisboard->name, 554 if (thisboard->bustype == isa_bustype) { 564 if (thisboard->memory_mapped_io) { 576 if (thisboard->register_layout == labpc_1200_layout) { 586 if (thisboard->bustype == pci_bustype 587 || thisboard->bustype == pcmcia_bustype) 623 dev->board_name = thisboard->name; 637 s->range_table = thisboard [all...] |
H A D | das1800.c | 478 #define thisboard ((const struct das1800_board *)dev->board_ptr) macro 668 dev->board_name = thisboard->name; 671 if (thisboard->ao_ability == 2) { 741 if (thisboard->common) 743 s->n_chan = thisboard->qram_len; 744 s->len_chanlist = thisboard->qram_len; 745 s->maxdata = (1 << thisboard->resolution) - 1; 746 s->range_table = thisboard->range_ai; 755 if (thisboard->ao_ability == 1) { 758 s->n_chan = thisboard [all...] |
H A D | cb_pcidas.c | 425 #define thisboard ((const struct cb_pcidas_board *)dev->board_ptr) macro 628 if (thisboard->ao_nchan) { 646 dev->board_name = thisboard->name; 660 s->n_chan = thisboard->ai_se_chans; 661 s->len_chanlist = thisboard->ai_se_chans; 662 s->maxdata = (1 << thisboard->ai_bits) - 1; 663 s->range_table = thisboard->ranges; 672 if (thisboard->ao_nchan) { 675 s->n_chan = thisboard->ao_nchan; 677 s->maxdata = (1 << thisboard [all...] |
H A D | cb_pcidda.c | 213 #define thisboard ((const struct cb_pcidda_board *)dev->board_ptr) macro 319 /* "thisboard" macro can be used from here. */ 321 thisboard->name); 326 if (comedi_pci_enable(pcidev, thisboard->name)) { 341 if (thisboard->status == 2) 350 dev->board_name = thisboard->name; 362 s->n_chan = thisboard->ao_chans; 363 s->maxdata = (1 << thisboard->ao_bits) - 1; 364 s->range_table = thisboard->ranges; 384 for (index = 0; index < thisboard [all...] |
H A D | amplc_pci224.c | 397 #define thisboard ((struct pci224_board *)dev->board_ptr) macro 507 mangled = (unsigned short)data << (16 - thisboard->ao_bits); 1248 shift = 16 - thisboard->ao_bits; 1337 if (thisboard->model == any_model) { 1352 if (thisboard->devid != pci_dev->device) 1364 dev->minor, thisboard->name, bus, slot); 1367 dev->minor, thisboard->name); 1418 thisboard->ao_chans, GFP_KERNEL); 1425 thisboard->ao_chans, GFP_KERNEL); 1432 thisboard [all...] |
H A D | das800.c | 234 #define thisboard ((const struct das800_board *)dev->board_ptr) macro 294 board = thisboard - das800_boards; 405 if (thisboard->resolution == 12) { 416 if (thisboard->resolution == 12) 428 if (thisboard->resolution == 12) { 511 dev->board_name = thisboard->name; 523 s->maxdata = (1 << thisboard->resolution) - 1; 524 s->range_table = thisboard->ai_range; 585 if (thisboard->resolution == 16) 662 if (cmd->convert_arg < thisboard [all...] |
H A D | comedi_test.c | 79 #define thisboard ((const struct waveform_board *)dev->board_ptr) macro 228 dev->board_name = thisboard->name; 251 s->n_chan = thisboard->ai_chans; 252 s->maxdata = (1 << thisboard->ai_bits) - 1; 265 s->n_chan = thisboard->ai_chans; 266 s->maxdata = (1 << thisboard->ai_bits) - 1;
|
H A D | aio_aio12_8.c | 83 #define thisboard ((const struct aio12_8_boardtype *) dev->board_ptr) macro 179 dev->board_name = thisboard->name;
|
H A D | aio_iiro_16.c | 60 #define thisboard ((const struct aio_iiro_16_board *) dev->board_ptr) macro 103 dev->board_name = thisboard->name;
|
H A D | das08_cs.c | 56 #define thisboard ((const struct das08_board_struct *)dev->board_ptr) macro 85 if (thisboard->bustype == pcmcia) {
|
H A D | ni_labpc_cs.c | 116 #define thisboard ((const struct labpc_board_struct *)dev->board_ptr) macro 139 switch (thisboard->bustype) {
|
H A D | pcmda12.c | 92 #define thisboard ((const struct pcmda12_board *)dev->board_ptr) macro 171 * Initialize dev->board_name. Note that we can use the "thisboard" 174 dev->board_name = thisboard->name;
|