Searched defs:pfi_channel (Results 1 - 3 of 3) sorted by relevance

/drivers/staging/comedi/drivers/
H A Dni_660x.c162 static inline unsigned IOConfigReg(unsigned pfi_channel) argument
164 unsigned reg = IOConfigReg0_1 + pfi_channel / 2;
312 static inline unsigned ioconfig_bitshift(unsigned pfi_channel) argument
314 if (pfi_channel % 2)
320 static inline unsigned pfi_output_select_mask(unsigned pfi_channel) argument
322 return 0x3 << ioconfig_bitshift(pfi_channel);
325 static inline unsigned pfi_output_select_bits(unsigned pfi_channel, argument
328 return (output_select & 0x3) << ioconfig_bitshift(pfi_channel);
331 static inline unsigned pfi_input_select_mask(unsigned pfi_channel) argument
333 return 0x7 << (4 + ioconfig_bitshift(pfi_channel));
336 pfi_input_select_bits(unsigned pfi_channel, unsigned input_select) argument
1297 ni_660x_select_pfi_output(struct comedi_device *dev, unsigned pfi_channel, unsigned output_select) argument
1372 ni660x_config_filter(struct comedi_device *dev, unsigned pfi_channel, enum ni_gpct_filter_select filter) argument
[all...]
H A Dni_mio_common.c5370 static int ni_config_filter(struct comedi_device *dev, unsigned pfi_channel, argument
5378 bits &= ~MSeries_PFI_Filter_Select_Mask(pfi_channel);
5379 bits |= MSeries_PFI_Filter_Select_Bits(pfi_channel, filter);
/drivers/staging/comedi/
H A Dcomedi.h511 static inline unsigned NI_USUAL_PFI_SELECT(unsigned pfi_channel) argument
513 if (pfi_channel < 10)
514 return 0x1 + pfi_channel;
516 return 0xb + pfi_channel;
813 static inline unsigned NI_EXT_PFI(unsigned pfi_channel) argument
815 return NI_USUAL_PFI_SELECT(pfi_channel) - 1;
844 static inline unsigned NI_CDIO_SCAN_BEGIN_SRC_PFI(unsigned pfi_channel) argument
846 return NI_USUAL_PFI_SELECT(pfi_channel);
857 static inline unsigned NI_AO_SCAN_BEGIN_SRC_PFI(unsigned pfi_channel) argument
859 return NI_USUAL_PFI_SELECT(pfi_channel);
[all...]

Completed in 39 milliseconds