Searched refs:thisboard (Results 1 - 25 of 45) sorted by relevance

12

/drivers/staging/comedi/drivers/
H A Dcb_pcimdda.c138 #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 Dcb_pcidio.c105 #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 Ddas16.c766 #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 Ddyna_pci10xx.c135 #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 Ddas08.c517 #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 Dcb_pcimdas.c140 #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 Dadq12b.c146 #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 Damplc_pc263.c114 #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 Dcontec_pci_dio.c67 #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 Dni_daq_dio24.c92 #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 Dpcmmio.c213 #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 Dskel.c129 #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 Damplc_pc236.c147 #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 Dni_labpc.c489 #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 Ddas1800.c478 #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 Dcb_pcidas.c425 #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 Dcb_pcidda.c213 #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 Damplc_pci224.c397 #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 Ddas800.c234 #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 Dcomedi_test.c79 #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 Daio_aio12_8.c83 #define thisboard ((const struct aio12_8_boardtype *) dev->board_ptr) macro
179 dev->board_name = thisboard->name;
H A Daio_iiro_16.c60 #define thisboard ((const struct aio_iiro_16_board *) dev->board_ptr) macro
103 dev->board_name = thisboard->name;
H A Ddas08_cs.c56 #define thisboard ((const struct das08_board_struct *)dev->board_ptr) macro
85 if (thisboard->bustype == pcmcia) {
H A Dni_labpc_cs.c116 #define thisboard ((const struct labpc_board_struct *)dev->board_ptr) macro
139 switch (thisboard->bustype) {
H A Dpcmda12.c92 #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;

Completed in 177 milliseconds

12