Home
last modified time | relevance | path

Searched refs:csigr_bits (Results 1 – 2 of 2) sorted by relevance

/linux-2.6.39/drivers/staging/comedi/drivers/
Dmite.h292 static inline int mite_csigr_version(u32 csigr_bits) in mite_csigr_version() argument
294 return csigr_bits & 0xf; in mite_csigr_version()
297 static inline int mite_csigr_type(u32 csigr_bits) in mite_csigr_type() argument
299 return (csigr_bits >> 4) & 0xf; in mite_csigr_type()
302 static inline int mite_csigr_mmode(u32 csigr_bits) in mite_csigr_mmode() argument
304 return (csigr_bits >> 8) & 0x3; in mite_csigr_mmode()
307 static inline int mite_csigr_imode(u32 csigr_bits) in mite_csigr_imode() argument
309 return (csigr_bits >> 12) & 0x3; in mite_csigr_imode()
312 static inline int mite_csigr_dmac(u32 csigr_bits) in mite_csigr_dmac() argument
314 return (csigr_bits >> 16) & 0xf; in mite_csigr_dmac()
[all …]
Dmite.c97 static void dump_chip_signature(u32 csigr_bits) in dump_chip_signature() argument
101 mite_csigr_version(csigr_bits), mite_csigr_type(csigr_bits), in dump_chip_signature()
102 mite_csigr_mmode(csigr_bits), mite_csigr_imode(csigr_bits)); in dump_chip_signature()
105 mite_csigr_dmac(csigr_bits), mite_csigr_wpdep(csigr_bits), in dump_chip_signature()
106 mite_csigr_wins(csigr_bits), mite_csigr_iowins(csigr_bits)); in dump_chip_signature()
122 u32 csigr_bits; in mite_setup2() local
180 csigr_bits = readl(mite->mite_io_addr + MITE_CSIGR); in mite_setup2()
181 mite->num_channels = mite_csigr_dmac(csigr_bits); in mite_setup2()
188 dump_chip_signature(csigr_bits); in mite_setup2()