/linux-2.4.37.9/drivers/isdn/ |
D | isdn_v110.c | 92 isdn_v110_stream *v; in isdn_v110_open() local 94 if ((v = kmalloc(sizeof(isdn_v110_stream), GFP_ATOMIC)) == NULL) in isdn_v110_open() 96 memset(v, 0, sizeof(isdn_v110_stream)); in isdn_v110_open() 97 v->key = key; in isdn_v110_open() 98 v->nbits = 0; in isdn_v110_open() 100 v->nbits++; in isdn_v110_open() 102 v->nbytes = 8 / v->nbits; in isdn_v110_open() 103 v->decodelen = 0; in isdn_v110_open() 107 v->OnlineFrame = V110_OnMatrix_38400; in isdn_v110_open() 108 v->OfflineFrame = V110_OffMatrix_38400; in isdn_v110_open() [all …]
|
/linux-2.4.37.9/include/asm-mips/ |
D | atomic.h | 31 #define atomic_read(v) ((v)->counter) argument 41 #define atomic_set(v,i) ((v)->counter = (i)) argument 58 static __inline__ void atomic_add(int i, atomic_t * v) in atomic_add() argument 63 v->counter += i; in atomic_add() 75 static __inline__ void atomic_sub(int i, atomic_t * v) in atomic_sub() argument 80 v->counter -= i; in atomic_sub() 84 static __inline__ int atomic_add_return(int i, atomic_t * v) in atomic_add_return() argument 90 temp = v->counter; in atomic_add_return() 92 v->counter = temp; in atomic_add_return() 98 static __inline__ int atomic_sub_return(int i, atomic_t * v) in atomic_sub_return() argument [all …]
|
/linux-2.4.37.9/include/asm-ia64/ |
D | atomic.h | 27 #define atomic_read(v) ((v)->counter) argument 28 #define atomic_set(v,i) (((v)->counter) = (i)) argument 31 ia64_atomic_add (int i, atomic_t *v) in ia64_atomic_add() argument 37 CMPXCHG_BUGCHECK(v); in ia64_atomic_add() 38 old = atomic_read(v); in ia64_atomic_add() 40 } while (ia64_cmpxchg("acq", v, old, old + i, sizeof(atomic_t)) != old); in ia64_atomic_add() 45 ia64_atomic_sub (int i, atomic_t *v) in ia64_atomic_sub() argument 51 CMPXCHG_BUGCHECK(v); in ia64_atomic_sub() 52 old = atomic_read(v); in ia64_atomic_sub() 54 } while (ia64_cmpxchg("acq", v, old, new, sizeof(atomic_t)) != old); in ia64_atomic_sub() [all …]
|
/linux-2.4.37.9/drivers/media/video/ |
D | vino.c | 248 static int bytes_per_pixel(struct vino_device *v) in bytes_per_pixel() argument 250 switch (v->picture.palette) { in bytes_per_pixel() 260 static int get_capture_norm(struct vino_device *v) in get_capture_norm() argument 262 if (v->input == VINO_INPUT_CAMERA) in get_capture_norm() 273 static int set_clipping(struct vino_device *v, int x, int y, int w, int h, in set_clipping() argument 284 if (get_capture_norm(v) == VIDEO_MODE_NTSC) { in set_clipping() 307 lsize = (bytes_per_pixel(v) * w / d) & ~7; in set_clipping() 308 w = lsize * d / bytes_per_pixel(v); in set_clipping() 309 v->left = x; in set_clipping() 310 v->top = y; in set_clipping() [all …]
|
/linux-2.4.37.9/drivers/sbus/audio/ |
D | dbri.h | 174 #define D_PIPE(v) ((v)<<0) /* Pipe Nr: 0-15 long, 16-21 short */ argument 190 #define D_SDP_MODE(v) ((v)&(7<<13)) argument 205 #define D_DTS_PRVIN(v) ((v)<<10) /* Previous In Pipe */ argument 206 #define D_DTS_PRVOUT(v) ((v)<<5) /* Previous Out Pipe */ argument 209 #define D_TS_LEN(v) ((v)<<24) /* Number of bits in this time slot */ argument 210 #define D_TS_CYCLE(v) ((v)<<14) /* Bit Count at start of TS */ argument 216 #define D_TS_MON(v) ((v)<<5) /* Monitor Pipe */ argument 217 #define D_TS_NEXT(v) ((v)<<0) /* Pipe Nr: 0-15 long, 16-21 short */ argument 220 #define D_CHI_CHICM(v) ((v)<<16) /* Clock mode */ argument 226 #define D_CHI_BPF(v) ((v)<<0) /* Bits per Frame */ argument [all …]
|
/linux-2.4.37.9/include/asm-mips/lasat/ |
D | lasat.h | 110 #define LASAT_W0_DSCTYPE(v) ( ( (v) ) & 0xf ) argument 111 #define LASAT_W0_BMID(v) ( ( (v) >> 0x04 ) & 0xf ) argument 112 #define LASAT_W0_CPUTYPE(v) ( ( (v) >> 0x08 ) & 0xf ) argument 113 #define LASAT_W0_BUSSPEED(v) ( ( (v) >> 0x0c ) & 0xf ) argument 114 #define LASAT_W0_CPUCLK(v) ( ( (v) >> 0x10 ) & 0xf ) argument 115 #define LASAT_W0_SDRAMBANKSZ(v) ( ( (v) >> 0x14 ) & 0xf ) argument 116 #define LASAT_W0_SDRAMBANKS(v) ( ( (v) >> 0x18 ) & 0xf ) argument 117 #define LASAT_W0_L2CACHE(v) ( ( (v) >> 0x1c ) & 0xf ) argument 119 #define LASAT_W1_EDHAC(v) ( ( (v) ) & 0xf ) argument 120 #define LASAT_W1_HIFN(v) ( ( (v) >> 0x04 ) & 0x1 ) argument [all …]
|
/linux-2.4.37.9/include/asm-mips64/ |
D | atomic.h | 31 #define atomic_read(v) ((v)->counter) argument 41 #define atomic_set(v,i) ((v)->counter = (i)) argument 43 static __inline__ void atomic_add(int i, volatile atomic_t * v) in atomic_add() argument 52 : "=&r" (temp), "=m" (v->counter) in atomic_add() 53 : "Ir" (i), "m" (v->counter)); in atomic_add() 64 static __inline__ void atomic_sub(int i, volatile atomic_t * v) in atomic_sub() argument 73 : "=&r" (temp), "=m" (v->counter) in atomic_sub() 74 : "Ir" (i), "m" (v->counter)); in atomic_sub() 80 static __inline__ int atomic_add_return(int i, atomic_t * v) in atomic_add_return() argument 93 : "=&r" (result), "=&r" (temp), "=m" (v->counter) in atomic_add_return() [all …]
|
/linux-2.4.37.9/include/asm-ppc64/ |
D | atomic.h | 22 #define atomic_read(v) ((v)->counter) argument 23 #define atomic_set(v,i) (((v)->counter) = (i)) argument 25 static __inline__ void atomic_add(int a, atomic_t *v) in atomic_add() argument 34 : "=&r" (t), "=m" (v->counter) in atomic_add() 35 : "r" (a), "r" (&v->counter), "m" (v->counter) in atomic_add() 39 static __inline__ int atomic_add_return(int a, atomic_t *v) in atomic_add_return() argument 50 : "r" (a), "r" (&v->counter) in atomic_add_return() 56 static __inline__ void atomic_sub(int a, atomic_t *v) in atomic_sub() argument 65 : "=&r" (t), "=m" (v->counter) in atomic_sub() 66 : "r" (a), "r" (&v->counter), "m" (v->counter) in atomic_sub() [all …]
|
/linux-2.4.37.9/drivers/net/ |
D | i82586.h | 204 #define AC_CFG_BYTE_CNT(v) (((v) & 0xF) << 0) argument 206 #define AC_CFG_FIFOLIM(v) (((v) & 0xF) << 0) argument 208 #define AC_CFG_SAV_BF(v) (((v) & 0x1) << 7) /* Save rxd bad frames */ argument 209 #define AC_CFG_SRDY(v) (((v) & 0x1) << 6) /* SRDY/ARDY pin means */ argument 212 #define AC_CFG_ELPBCK(v) (((v) & 0x1) << 7) /* External loopback */ argument 213 #define AC_CFG_ILPBCK(v) (((v) & 0x1) << 6) /* Internal loopback */ argument 214 #define AC_CFG_PRELEN(v) (((v) & 0x3) << 4) /* Preamble length */ argument 219 #define AC_CFG_ALOC(v) (((v) & 0x1) << 3) /* Addr/len data is */ argument 221 #define AC_CFG_ADDRLEN(v) (((v) & 0x7) << 0) /* Bytes per address */ argument 223 #define AC_CFG_BOFMET(v) (((v) & 0x1) << 7) /* Use alternate expo. */ argument [all …]
|
/linux-2.4.37.9/drivers/media/radio/ |
D | radio-trust.c | 138 int i, v; in tr_getsigstr() local 140 for(i = 0, v = 0; i < 100; i++) v |= inb(io); in tr_getsigstr() 141 return (v & 1)? 0 : 0xffff; in tr_getsigstr() 164 struct video_capability v; in tr_ioctl() local 166 v.type=VID_TYPE_TUNER; in tr_ioctl() 167 v.channels=1; in tr_ioctl() 168 v.audios=1; in tr_ioctl() 171 v.maxwidth=0; in tr_ioctl() 172 v.maxheight=0; in tr_ioctl() 173 v.minwidth=0; in tr_ioctl() [all …]
|
D | miropcm20-radio.c | 134 struct video_capability v; in pcm20_ioctl() local 135 v.type=VID_TYPE_TUNER; in pcm20_ioctl() 136 strcpy(v.name, "Miro PCM20"); in pcm20_ioctl() 137 v.channels=1; in pcm20_ioctl() 138 v.audios=1; in pcm20_ioctl() 140 v.maxwidth=0; in pcm20_ioctl() 141 v.maxheight=0; in pcm20_ioctl() 142 v.minwidth=0; in pcm20_ioctl() 143 v.minheight=0; in pcm20_ioctl() 144 if(copy_to_user(arg,&v,sizeof(v))) in pcm20_ioctl() [all …]
|
D | radio-rtrack2.c | 118 struct video_capability v; in rt_ioctl() local 119 v.type=VID_TYPE_TUNER; in rt_ioctl() 120 v.channels=1; in rt_ioctl() 121 v.audios=1; in rt_ioctl() 123 v.maxwidth=0; in rt_ioctl() 124 v.maxheight=0; in rt_ioctl() 125 v.minwidth=0; in rt_ioctl() 126 v.minheight=0; in rt_ioctl() 127 strcpy(v.name, "RadioTrack II"); in rt_ioctl() 128 if(copy_to_user(arg,&v,sizeof(v))) in rt_ioctl() [all …]
|
D | radio-aztech.c | 169 struct video_capability v; in az_ioctl() local 170 v.type=VID_TYPE_TUNER; in az_ioctl() 171 v.channels=1; in az_ioctl() 172 v.audios=1; in az_ioctl() 174 v.maxwidth=0; in az_ioctl() 175 v.maxheight=0; in az_ioctl() 176 v.minwidth=0; in az_ioctl() 177 v.minheight=0; in az_ioctl() 178 strcpy(v.name, "Aztech Radio"); in az_ioctl() 179 if(copy_to_user(arg,&v,sizeof(v))) in az_ioctl() [all …]
|
D | radio-gemtek.c | 150 struct video_capability v; in gemtek_ioctl() local 151 v.type=VID_TYPE_TUNER; in gemtek_ioctl() 152 v.channels=1; in gemtek_ioctl() 153 v.audios=1; in gemtek_ioctl() 155 v.maxwidth=0; in gemtek_ioctl() 156 v.maxheight=0; in gemtek_ioctl() 157 v.minwidth=0; in gemtek_ioctl() 158 v.minheight=0; in gemtek_ioctl() 159 strcpy(v.name, "GemTek"); in gemtek_ioctl() 160 if(copy_to_user(arg,&v,sizeof(v))) in gemtek_ioctl() [all …]
|
D | radio-sf16fmr2.c | 230 struct video_capability v; in fmr2_ioctl() local 231 strcpy(v.name, "SF16-FMR2 radio"); in fmr2_ioctl() 232 v.type=VID_TYPE_TUNER; in fmr2_ioctl() 233 v.channels=1; in fmr2_ioctl() 234 v.audios=1; in fmr2_ioctl() 236 v.maxwidth=0; in fmr2_ioctl() 237 v.maxheight=0; in fmr2_ioctl() 238 v.minwidth=0; in fmr2_ioctl() 239 v.minheight=0; in fmr2_ioctl() 240 if(copy_to_user(arg,&v,sizeof(v))) in fmr2_ioctl() [all …]
|
D | radio-sf16fmi.c | 126 struct video_capability v; in fmi_ioctl() local 127 strcpy(v.name, "SF16-FMx radio"); in fmi_ioctl() 128 v.type=VID_TYPE_TUNER; in fmi_ioctl() 129 v.channels=1; in fmi_ioctl() 130 v.audios=1; in fmi_ioctl() 132 v.maxwidth=0; in fmi_ioctl() 133 v.maxheight=0; in fmi_ioctl() 134 v.minwidth=0; in fmi_ioctl() 135 v.minheight=0; in fmi_ioctl() 136 if(copy_to_user(arg,&v,sizeof(v))) in fmi_ioctl() [all …]
|
/linux-2.4.37.9/include/asm-sparc/ |
D | atomic.h | 18 #define atomic_read(v) ((v)->counter) argument 19 #define atomic_set(v, i) (((v)->counter) = i) argument 38 static __inline__ int atomic_read(atomic_t *v) in atomic_read() argument 40 int ret = v->counter; in atomic_read() 43 ret = v->counter; in atomic_read() 48 #define atomic_set(v, i) (((v)->counter) = ((i) << 8)) argument 51 static inline int __atomic_add(int i, atomic_t *v) in __atomic_add() argument 59 ptr = &v->counter; in __atomic_add() 73 static inline int __atomic_sub(int i, atomic_t *v) in __atomic_sub() argument 81 ptr = &v->counter; in __atomic_sub() [all …]
|
/linux-2.4.37.9/include/asm-alpha/ |
D | atomic.h | 22 #define atomic_read(v) ((v)->counter) argument 23 #define atomic_set(v,i) ((v)->counter = (i)) argument 31 static __inline__ void atomic_add(int i, atomic_t * v) in atomic_add() argument 42 :"=&r" (temp), "=m" (v->counter) in atomic_add() 43 :"Ir" (i), "m" (v->counter)); in atomic_add() 46 static __inline__ void atomic_sub(int i, atomic_t * v) in atomic_sub() argument 57 :"=&r" (temp), "=m" (v->counter) in atomic_sub() 58 :"Ir" (i), "m" (v->counter)); in atomic_sub() 64 static __inline__ long atomic_add_return(int i, atomic_t * v) in atomic_add_return() argument 77 :"=&r" (temp), "=m" (v->counter), "=&r" (result) in atomic_add_return() [all …]
|
/linux-2.4.37.9/include/asm-sh/ |
D | atomic.h | 14 #define atomic_read(v) ((v)->counter) argument 15 #define atomic_set(v,i) ((v)->counter = (i)) argument 25 static __inline__ void atomic_add(int i, atomic_t * v) in atomic_add() argument 30 *(long *)v += i; in atomic_add() 34 static __inline__ void atomic_sub(int i, atomic_t *v) in atomic_sub() argument 39 *(long *)v -= i; in atomic_sub() 43 static __inline__ int atomic_add_return(int i, atomic_t * v) in atomic_add_return() argument 48 temp = *(long *)v; in atomic_add_return() 50 *(long *)v = temp; in atomic_add_return() 56 static __inline__ int atomic_sub_return(int i, atomic_t * v) in atomic_sub_return() argument [all …]
|
/linux-2.4.37.9/include/asm-sh64/ |
D | atomic.h | 14 #define atomic_read(v) ((v)->counter) argument 15 #define atomic_set(v,i) ((v)->counter = (i)) argument 25 static __inline__ void atomic_add(int i, atomic_t * v) in atomic_add() argument 30 *(long *)v += i; in atomic_add() 34 static __inline__ void atomic_sub(int i, atomic_t *v) in atomic_sub() argument 39 *(long *)v -= i; in atomic_sub() 43 static __inline__ int atomic_add_return(int i, atomic_t * v) in atomic_add_return() argument 48 temp = *(long *)v; in atomic_add_return() 50 *(long *)v = temp; in atomic_add_return() 56 static __inline__ int atomic_sub_return(int i, atomic_t * v) in atomic_sub_return() argument [all …]
|
/linux-2.4.37.9/include/asm-ppc/ |
D | atomic.h | 14 #define atomic_read(v) ((v)->counter) argument 15 #define atomic_set(v,i) (((v)->counter) = (i)) argument 35 static __inline__ void atomic_add(int a, atomic_t *v) in atomic_add() argument 45 : "=&r" (t), "=m" (v->counter) in atomic_add() 46 : "r" (a), "r" (&v->counter), "m" (v->counter) in atomic_add() 50 static __inline__ int atomic_add_return(int a, atomic_t *v) in atomic_add_return() argument 62 : "r" (a), "r" (&v->counter) in atomic_add_return() 68 static __inline__ void atomic_sub(int a, atomic_t *v) in atomic_sub() argument 78 : "=&r" (t), "=m" (v->counter) in atomic_sub() 79 : "r" (a), "r" (&v->counter), "m" (v->counter) in atomic_sub() [all …]
|
/linux-2.4.37.9/include/asm-m68k/ |
D | atomic.h | 16 #define atomic_read(v) ((v)->counter) argument 17 #define atomic_set(v, i) (((v)->counter) = i) argument 19 static __inline__ void atomic_add(int i, atomic_t *v) in atomic_add() argument 21 __asm__ __volatile__("addl %1,%0" : "=m" (*v) : "id" (i), "0" (*v)); in atomic_add() 24 static __inline__ void atomic_sub(int i, atomic_t *v) in atomic_sub() argument 26 __asm__ __volatile__("subl %1,%0" : "=m" (*v) : "id" (i), "0" (*v)); in atomic_sub() 29 static __inline__ void atomic_inc(volatile atomic_t *v) in atomic_inc() argument 31 __asm__ __volatile__("addql #1,%0" : "=m" (*v): "0" (*v)); in atomic_inc() 34 static __inline__ void atomic_dec(volatile atomic_t *v) in atomic_dec() argument 36 __asm__ __volatile__("subql #1,%0" : "=m" (*v): "0" (*v)); in atomic_dec() [all …]
|
/linux-2.4.37.9/include/asm-sparc64/ |
D | atomic.h | 16 #define atomic_read(v) ((v)->counter) argument 17 #define atomic_set(v, i) (((v)->counter) = i) argument 25 #define atomic_dec_return(v) atomic_sub_ret(1, v) argument 27 #define atomic_inc_return(v) atomic_add_ret(1, v) argument 29 #define atomic_sub_return(i, v) atomic_sub_ret(i, v) argument 31 #define atomic_add_return(i, v) atomic_add_ret(i, v) argument 41 #define atomic_inc_and_test(v) (atomic_inc_return(v) == 0) argument 43 #define atomic_sub_and_test(i, v) (atomic_sub_ret(i, v) == 0) argument 45 #define atomic_dec_and_test(v) (atomic_sub_ret(1, v) == 0) argument 47 #define atomic_inc(v) atomic_add(1, v) argument [all …]
|
/linux-2.4.37.9/include/asm-x86_64/ |
D | atomic.h | 35 #define atomic_read(v) ((v)->counter) argument 45 #define atomic_set(v,i) (((v)->counter) = (i)) argument 55 static __inline__ void atomic_add(int i, atomic_t *v) in atomic_add() argument 59 :"=m" (v->counter) in atomic_add() 60 :"ir" (i), "m" (v->counter)); in atomic_add() 71 static __inline__ void atomic_sub(int i, atomic_t *v) in atomic_sub() argument 75 :"=m" (v->counter) in atomic_sub() 76 :"ir" (i), "m" (v->counter)); in atomic_sub() 89 static __inline__ int atomic_sub_and_test(int i, atomic_t *v) in atomic_sub_and_test() argument 95 :"=m" (v->counter), "=qm" (c) in atomic_sub_and_test() [all …]
|
/linux-2.4.37.9/include/asm-i386/ |
D | atomic.h | 33 #define atomic_read(v) ((v)->counter) argument 43 #define atomic_set(v,i) (((v)->counter) = (i)) argument 53 static __inline__ void atomic_add(int i, atomic_t *v) in atomic_add() argument 57 :"=m" (v->counter) in atomic_add() 58 :"ir" (i), "m" (v->counter)); in atomic_add() 69 static __inline__ void atomic_sub(int i, atomic_t *v) in atomic_sub() argument 73 :"=m" (v->counter) in atomic_sub() 74 :"ir" (i), "m" (v->counter)); in atomic_sub() 87 static __inline__ int atomic_sub_and_test(int i, atomic_t *v) in atomic_sub_and_test() argument 93 :"=m" (v->counter), "=qm" (c) in atomic_sub_and_test() [all …]
|