Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 25 of 532) sorted by relevance

12345678910>>...22

/linux-2.4.37.9/fs/jffs2/
Dcompr_rubin.c46 void init_rubin(struct rubin_state *rs, int div, int *bits) in init_rubin() argument
55 rs->bits[c] = bits[c]; in init_rubin()
107 void init_decode(struct rubin_state *rs, int div, int *bits) in init_decode() argument
109 init_rubin(rs, div, bits); in init_decode()
122 int c, bits = 0; in __do_decode() local
130 bits++; in __do_decode()
139 rs->bit_number += bits; in __do_decode()
150 } while (--bits); in __do_decode()
192 ret = encode(rs, rs->bit_divider-rs->bits[i],rs->bits[i],byte&1); in out_byte()
208 result |= decode(rs, bit_divider - rs->bits[i], rs->bits[i]) << i; in in_byte()
[all …]
/linux-2.4.37.9/net/irda/
Dqos.c292 qos->baud_rate.bits &= new->baud_rate.bits; in irda_qos_compute_intersection()
293 qos->window_size.bits &= new->window_size.bits; in irda_qos_compute_intersection()
294 qos->min_turn_time.bits &= new->min_turn_time.bits; in irda_qos_compute_intersection()
295 qos->max_turn_time.bits &= new->max_turn_time.bits; in irda_qos_compute_intersection()
296 qos->data_size.bits &= new->data_size.bits; in irda_qos_compute_intersection()
297 qos->link_disc_time.bits &= new->link_disc_time.bits; in irda_qos_compute_intersection()
298 qos->additional_bofs.bits &= new->additional_bofs.bits; in irda_qos_compute_intersection()
321 &qos->baud_rate.bits); in irda_init_max_qos_capabilies()
326 &qos->link_disc_time.bits); in irda_init_max_qos_capabilies()
330 qos->baud_rate.bits &= 0x03ff; in irda_init_max_qos_capabilies()
[all …]
/linux-2.4.37.9/drivers/video/
Dfbcon-cfb32.c116 u8 *dest, *cdat, bits; in fbcon_cfb32_putc() local
130 bits = *cdat++; in fbcon_cfb32_putc()
132 fb_writel((-(bits >> 7) & eorx) ^ bgx, pt++); in fbcon_cfb32_putc()
133 fb_writel((-(bits >> 6 & 1) & eorx) ^ bgx, pt++); in fbcon_cfb32_putc()
134 fb_writel((-(bits >> 5 & 1) & eorx) ^ bgx, pt++); in fbcon_cfb32_putc()
135 fb_writel((-(bits >> 4 & 1) & eorx) ^ bgx, pt++); in fbcon_cfb32_putc()
138 fb_writel((-(bits >> 3 & 1) & eorx) ^ bgx, pt++); in fbcon_cfb32_putc()
139 fb_writel((-(bits >> 2 & 1) & eorx) ^ bgx, pt++); in fbcon_cfb32_putc()
140 fb_writel((-(bits >> 1 & 1) & eorx) ^ bgx, pt++); in fbcon_cfb32_putc()
141 fb_writel((-(bits & 1) & eorx) ^ bgx, pt++); in fbcon_cfb32_putc()
[all …]
Dfbcon-cfb24.c139 u8 *dest, *cdat, bits; in fbcon_cfb24_putc() local
154 bits = *cdat++; in fbcon_cfb24_putc()
155 d1 = (-(bits >> 7) & eorx) ^ bgx; in fbcon_cfb24_putc()
156 d2 = (-(bits >> 6 & 1) & eorx) ^ bgx; in fbcon_cfb24_putc()
157 d3 = (-(bits >> 5 & 1) & eorx) ^ bgx; in fbcon_cfb24_putc()
158 d4 = (-(bits >> 4 & 1) & eorx) ^ bgx; in fbcon_cfb24_putc()
162 d1 = (-(bits >> 3 & 1) & eorx) ^ bgx; in fbcon_cfb24_putc()
163 d2 = (-(bits >> 2 & 1) & eorx) ^ bgx; in fbcon_cfb24_putc()
164 d3 = (-(bits >> 1 & 1) & eorx) ^ bgx; in fbcon_cfb24_putc()
165 d4 = (-(bits & 1) & eorx) ^ bgx; in fbcon_cfb24_putc()
[all …]
Dfbcon-cfb16.c125 u8 *dest, *cdat, bits; in fbcon_cfb16_putc() local
142 bits = *cdat++; in fbcon_cfb16_putc()
143 fb_writel((tab_cfb16[bits >> 6] & eorx) ^ bgx, dest); in fbcon_cfb16_putc()
144 fb_writel((tab_cfb16[bits >> 4 & 3] & eorx) ^ bgx, dest+4); in fbcon_cfb16_putc()
146 fb_writel((tab_cfb16[bits >> 2 & 3] & eorx) ^ bgx, dest+8); in fbcon_cfb16_putc()
147 fb_writel((tab_cfb16[bits & 3] & eorx) ^ bgx, dest+12); in fbcon_cfb16_putc()
155 bits = *cdat++; in fbcon_cfb16_putc()
156 fb_writel((tab_cfb16[bits >> 6] & eorx) ^ bgx, dest); in fbcon_cfb16_putc()
157 fb_writel((tab_cfb16[bits >> 4 & 3] & eorx) ^ bgx, dest+4); in fbcon_cfb16_putc()
158 fb_writel((tab_cfb16[bits >> 2 & 3] & eorx) ^ bgx, dest+8); in fbcon_cfb16_putc()
[all …]
/linux-2.4.37.9/fs/devfs/
Dutil.c141 unsigned long bits[256 / BITS_PER_LONG]; member
191 major = find_first_zero_bit (list->bits, 256); in devfs_alloc_major()
192 if (major < 256) __set_bit (major, list->bits); in devfs_alloc_major()
215 was_set = __test_and_clear_bit (major, list->bits); in devfs_dealloc_major()
225 unsigned long bits[256 / BITS_PER_LONG]; member
276 minor = find_first_zero_bit (entry->bits, 256); in devfs_alloc_devnum()
278 __set_bit (minor, entry->bits); in devfs_alloc_devnum()
297 __set_bit (0, entry->bits); in devfs_alloc_devnum()
341 was_set = __test_and_clear_bit (minor, entry->bits); in devfs_dealloc_devnum()
379 void *bits; in devfs_alloc_unique_number() local
[all …]
/linux-2.4.37.9/drivers/sound/
Dsb_audio.c133 if (!devc->fullduplex || devc->bits == AFMT_S16_LE) in sb_set_output_parms()
153 if (!devc->fullduplex || devc->bits != AFMT_S16_LE) in sb_set_input_parms()
230 static void sb1_audio_trigger(int dev, int bits) in sb1_audio_trigger() argument
234 bits &= devc->irq_mode; in sb1_audio_trigger()
236 if (!bits) in sb1_audio_trigger()
253 devc->trigger_bits = bits; in sb1_audio_trigger()
317 static unsigned int sb1_audio_set_bits(int dev, unsigned int bits) in sb1_audio_set_bits() argument
320 return devc->bits = 8; in sb1_audio_set_bits()
412 static void sb20_audio_trigger(int dev, int bits) in sb20_audio_trigger() argument
415 bits &= devc->irq_mode; in sb20_audio_trigger()
[all …]
Dsb_common.c282 int bits; in sb16_set_dma_hw() local
289 bits = (1 << devc->dma8); in sb16_set_dma_hw()
292 bits |= (1 << devc->dma16); in sb16_set_dma_hw()
294 sb_setmixer(devc, DMA_NR, bits); in sb16_set_dma_hw()
303 unsigned char bits = sb_getmixer(devc, 0x84) & ~0x06; in sb16_set_mpu_port() local
308 sb_setmixer(devc, 0x84, bits | 0x04); in sb16_set_mpu_port()
312 sb_setmixer(devc, 0x84, bits | 0x00); in sb16_set_mpu_port()
316 sb_setmixer(devc, 0x84, bits | 0x02); /* Disable MPU */ in sb16_set_mpu_port()
349 unsigned char bits = 0; in relocate_Jazz16() local
358 bits = 1; in relocate_Jazz16()
[all …]
/linux-2.4.37.9/include/math-emu/
Dextended.h71 } bits __attribute__((packed)); member
82 X##_f[0] = _flo.bits.frac0; \
83 X##_f[1] = _flo.bits.frac1; \
84 X##_e = _flo.bits.exp; \
85 X##_s = _flo.bits.sign; \
100 X##_f[0] = _flo->bits.frac0; \
101 X##_f[1] = _flo->bits.frac1; \
102 X##_e = _flo->bits.exp; \
103 X##_s = _flo->bits.sign; \
118 _flo.bits.frac0 = X##_f[0]; \
[all …]
/linux-2.4.37.9/arch/ppc/kernel/
Dbtext.c29 static void draw_byte_32(unsigned char *bits, unsigned long *base, int rb);
30 static void draw_byte_16(unsigned char *bits, unsigned long *base, int rb);
31 static void draw_byte_8(unsigned char *bits, unsigned long *base, int rb);
459 int l, bits; in draw_byte_32() local
465 bits = *font++; in draw_byte_32()
466 base[0] = (-(bits >> 7) & fg) ^ bg; in draw_byte_32()
467 base[1] = (-((bits >> 6) & 1) & fg) ^ bg; in draw_byte_32()
468 base[2] = (-((bits >> 5) & 1) & fg) ^ bg; in draw_byte_32()
469 base[3] = (-((bits >> 4) & 1) & fg) ^ bg; in draw_byte_32()
470 base[4] = (-((bits >> 3) & 1) & fg) ^ bg; in draw_byte_32()
[all …]
Dppc4xx_pic.c80 unsigned long bits; in ppc403_pic_get_irq() local
87 bits = mfdcr(DCRN_EXISR) & mfdcr(DCRN_EXIER); in ppc403_pic_get_irq()
95 irq = 32 - ffs(bits); in ppc403_pic_get_irq()
309 unsigned long bits; in ppc405_pic_get_irq() local
316 bits = mfdcr(DCRN_UIC_MSR(UIC0)); in ppc405_pic_get_irq()
319 if (bits & UIC_CASCADE_MASK) { in ppc405_pic_get_irq()
320 bits = mfdcr(DCRN_UIC_MSR(UIC1)); in ppc405_pic_get_irq()
321 cas_irq = 32 - ffs(bits); in ppc405_pic_get_irq()
324 irq = 32 - ffs(bits); in ppc405_pic_get_irq()
335 irq = 32 - ffs(bits); in ppc405_pic_get_irq()
[all …]
/linux-2.4.37.9/arch/mips/math-emu/
Ddp_sqrt.c99 yh = y.bits >> 32; in ieee754dp_sqrt()
102 y.bits = ((u64) yh << 32) | (y.bits & 0xffffffff); in ieee754dp_sqrt()
108 y.bits -= 0x0010000600000000LL; in ieee754dp_sqrt()
109 y.bits &= 0xffffffff00000000LL; in ieee754dp_sqrt()
132 if (ieee754_csr.sx & IEEE754_INEXACT || t.bits != y.bits) { in ieee754dp_sqrt()
136 t.bits -= 1; in ieee754dp_sqrt()
144 y.bits += 1; in ieee754dp_sqrt()
147 t.bits += 1; in ieee754dp_sqrt()
/linux-2.4.37.9/arch/ppc/math-emu/
Dsfp-machine.h120 X##_f = _flo->bits.frac; \
121 X##_e = _flo->bits.exp; \
122 X##_s = _flo->bits.sign; \
130 X##_f0 = _flo->bits.frac0; \
131 X##_f1 = _flo->bits.frac1; \
132 X##_e = _flo->bits.exp; \
133 X##_s = _flo->bits.sign; \
150 _flo->bits.frac = X##_f; \
151 _flo->bits.exp = X##_e; \
152 _flo->bits.sign = X##_s; \
[all …]
/linux-2.4.37.9/drivers/sbus/char/
Dbpp.c113 unsigned char bits = instances[minor].direction; /* == 0x20 */ in set_pins() local
115 if (! (pins & BPP_PP_nStrobe)) bits |= 1; in set_pins()
116 if (! (pins & BPP_PP_nAutoFd)) bits |= 2; in set_pins()
117 if ( pins & BPP_PP_nInit) bits |= 4; in set_pins()
118 if (! (pins & BPP_PP_nSelectIn)) bits |= 8; in set_pins()
120 instances[minor].pp_state = bits; in set_pins()
122 outb_p(bits, base_addrs[minor]+2); in set_pins()
127 unsigned short bits = 0; in get_pins() local
130 if (! (value & 0x01)) bits |= BPP_PP_nStrobe; in get_pins()
131 if (! (value & 0x02)) bits |= BPP_PP_nAutoFd; in get_pins()
[all …]
/linux-2.4.37.9/include/asm-sparc64/
Dpstate.h89 #define set_pstate(bits) \ argument
95 : "i" (bits) \
98 #define clear_pstate(bits) \ argument
104 : "i" (bits) \
107 #define change_pstate(bits) \ argument
112 : "i" (bits) \
/linux-2.4.37.9/arch/ia64/sn/io/sn2/ioc4/
Dioc4.c431 ioc4reg_t old, bits; in ioc4_intr_connect() local
451 bits = atomic_read(&soft->is_intr_type[type].is_intr_ents_free); in ioc4_intr_connect()
452 if (bits == 0) { in ioc4_intr_connect()
457 bits &= ~(bits - 1); /* keep only the ls bit */ in ioc4_intr_connect()
458 old = atomicClearInt(&soft->is_intr_type[type].is_intr_ents_free, bits); in ioc4_intr_connect()
459 if (bits & old) { in ioc4_intr_connect()
463 if ((shf = (bits >> 16))) in ioc4_intr_connect()
464 bits = shf; in ioc4_intr_connect()
467 if ((shf = (bits >> 8))) in ioc4_intr_connect()
468 bits = shf; in ioc4_intr_connect()
[all …]
/linux-2.4.37.9/drivers/parport/
Dparport_sunbpp.c111 unsigned char bits = 0; in status_sunbpp_to_pc() local
116 bits |= PARPORT_STATUS_ERROR; in status_sunbpp_to_pc()
118 bits |= PARPORT_STATUS_SELECT; in status_sunbpp_to_pc()
120 bits |= PARPORT_STATUS_PAPEROUT; in status_sunbpp_to_pc()
122 bits |= PARPORT_STATUS_ACK; in status_sunbpp_to_pc()
124 bits |= PARPORT_STATUS_BUSY; in status_sunbpp_to_pc()
127 dprintk((KERN_DEBUG "read status 0x%x\n", bits)); in status_sunbpp_to_pc()
128 return bits; in status_sunbpp_to_pc()
134 unsigned char bits = 0; in control_sunbpp_to_pc() local
139 bits |= PARPORT_CONTROL_STROBE; in control_sunbpp_to_pc()
[all …]
/linux-2.4.37.9/crypto/
Dsha512.c256 u8 bits[128]; in sha512_final() local
265 bits[15] = t; t>>=8; in sha512_final()
266 bits[14] = t; t>>=8; in sha512_final()
267 bits[13] = t; t>>=8; in sha512_final()
268 bits[12] = t; in sha512_final()
270 bits[11] = t; t>>=8; in sha512_final()
271 bits[10] = t; t>>=8; in sha512_final()
272 bits[9 ] = t; t>>=8; in sha512_final()
273 bits[8 ] = t; in sha512_final()
275 bits[7 ] = t; t>>=8; in sha512_final()
[all …]
/linux-2.4.37.9/drivers/atm/
Dhorizon.h73 #define PRINTDB(bits,format,args...) \ argument
74 ( (debug & (bits)) ? printk (KERN_INFO DEV_LABEL ": " format , ## args) : 1 )
75 #define PRINTDM(bits,format,args...) \ argument
76 ( (debug & (bits)) ? printk (format , ## args) : 1 )
77 #define PRINTDE(bits,format,args...) \ argument
78 ( (debug & (bits)) ? printk (format "\n" , ## args) : 1 )
79 #define PRINTD(bits,format,args...) \ argument
80 ( (debug & (bits)) ? printk (KERN_INFO DEV_LABEL ": " format "\n" , ## args) : 1 )
84 #define PRINTD(bits,format,args...) argument
85 #define PRINTDB(bits,format,args...) argument
[all …]
Dambassador.h71 #define PRINTDB(bits,format,args...) \ argument
72 ( (debug & (bits)) ? printk (KERN_INFO DEV_LABEL ": " format , ## args) : 1 )
73 #define PRINTDM(bits,format,args...) \ argument
74 ( (debug & (bits)) ? printk (format , ## args) : 1 )
75 #define PRINTDE(bits,format,args...) \ argument
76 ( (debug & (bits)) ? printk (format "\n" , ## args) : 1 )
77 #define PRINTD(bits,format,args...) \ argument
78 ( (debug & (bits)) ? printk (KERN_INFO DEV_LABEL ": " format "\n" , ## args) : 1 )
82 #define PRINTD(bits,format,args...) argument
83 #define PRINTDB(bits,format,args...) argument
[all …]
/linux-2.4.37.9/include/linux/
Dtypes.h7 #define BITS_TO_LONGS(bits) \ argument
8 (((bits)+BITS_PER_LONG-1)/BITS_PER_LONG)
9 #define DECLARE_BITMAP(name,bits) \ argument
10 unsigned long name[BITS_TO_LONGS(bits)]
11 #define CLEAR_BITMAP(name,bits) \ argument
12 memset(name, 0, BITS_TO_LONGS(bits)*sizeof(unsigned long))
/linux-2.4.37.9/drivers/net/
Ddl2k.c1604 if (bmsr.bits.link_status) in mii_wait_link()
1626 if (!bmsr.bits.an_complete) { in mii_get_media()
1634 if (mscr.bits.media_1000BT_FD & mssr.bits.lp_1000BT_FD) { in mii_get_media()
1638 } else if (mscr.bits.media_1000BT_HD & mssr.bits.lp_1000BT_HD) { in mii_get_media()
1642 } else if (negotiate.bits.media_100BX_FD) { in mii_get_media()
1646 } else if (negotiate.bits.media_100BX_HD) { in mii_get_media()
1650 } else if (negotiate.bits.media_10BT_FD) { in mii_get_media()
1654 } else if (negotiate.bits.media_10BT_HD) { in mii_get_media()
1659 if (negotiate.bits.pause) { in mii_get_media()
1662 } else if (negotiate.bits.asymmetric) { in mii_get_media()
[all …]
/linux-2.4.37.9/lib/zlib_deflate/
Ddeftree.c232 int bits; /* bit counter */ in tr_static_init() local
275 for (bits = 0; bits <= MAX_BITS; bits++) bl_count[bits] = 0; in tr_static_init()
419 int bits; /* bit length */ local
424 for (bits = 0; bits <= MAX_BITS; bits++) s->bl_count[bits] = 0;
433 bits = tree[tree[n].Dad].Len + 1;
434 if (bits > max_length) bits = max_length, overflow++;
435 tree[n].Len = (ush)bits;
440 s->bl_count[bits]++;
444 s->opt_len += (ulg)f * (bits + xbits);
454 bits = max_length-1;
[all …]
/linux-2.4.37.9/drivers/telephony/
Dixj.h124 HCRBIT bits; member
151 HSRBIT bits; member
182 GPIOBIT bits; member
206 LMON bits; member
221 CP bits; member
249 PSCRWI bits; member
274 PSCRRI bits; member
318 PSLICWRITE bits; member
325 PSLICREAD bits; member
347 PCLOCK bits; member
[all …]
Dixj.c504 return j->hsr.bits.controlrdy ? 1 : 0; in IsControlReady()
510 return j->pccr1.bits.crr ? 1 : 0; in IsPCControlReady()
516 return j->hsr.bits.statusrdy ? 1 : 0; in IsStatusReady()
523 return j->hsr.bits.rxrdy ? 1 : 0; in IsRxReady()
530 return j->hsr.bits.txrdy ? 1 : 0; in IsTxReady()
634 j->psccr.bits.dev = 3; in SLIC_GetState()
635 j->psccr.bits.rw = 1; in SLIC_GetState()
640 if (j->pslic.bits.powerdown) in SLIC_GetState()
642 else if (!j->pslic.bits.ring0 && !j->pslic.bits.ring1) in SLIC_GetState()
649 return j->pld_slicr.bits.state; in SLIC_GetState()
[all …]

12345678910>>...22