/linux-2.4.37.9/arch/ia64/mm/ |
D | tlb.c | 84 ia64_global_tlb_purge (unsigned long start, unsigned long end, unsigned long nbits) in ia64_global_tlb_purge() argument 95 asm volatile ("ptc.ga %0,%1;;srlz.i;;" :: "r"(start), "r"(nbits<<2) in ia64_global_tlb_purge() 97 start += (1UL << nbits); in ia64_global_tlb_purge() 132 unsigned long nbits; in flush_tlb_range() local 144 nbits = ia64_fls(size + 0xfff); in flush_tlb_range() 145 while (unlikely (((1UL << nbits) & purge.mask) == 0) && (nbits < purge.max_bits)) in flush_tlb_range() 146 ++nbits; in flush_tlb_range() 147 if (nbits > purge.max_bits) in flush_tlb_range() 148 nbits = purge.max_bits; in flush_tlb_range() 149 start &= ~((1UL << nbits) - 1); in flush_tlb_range() [all …]
|
/linux-2.4.37.9/drivers/isdn/ |
D | isdn_audio.c | 303 while (s->nleft < s->nbits) { in isdn_audio_get_bits() 309 s->nleft -= s->nbits; in isdn_audio_get_bits() 310 return (s->word >> s->nleft) & bitmask[s->nbits]; in isdn_audio_get_bits() 314 isdn_audio_put_bits(int data, int nbits, adpcm_state * s, in isdn_audio_put_bits() argument 317 s->word = (s->word << nbits) | (data & bitmask[nbits]); in isdn_audio_put_bits() 318 s->nleft += nbits; in isdn_audio_put_bits() 328 isdn_audio_adpcm_init(adpcm_state * s, int nbits) in isdn_audio_adpcm_init() argument 337 s->nbits = nbits; in isdn_audio_adpcm_init() 365 int nbits = s->nbits; in isdn_audio_adpcm2xlaw() local 372 if (nbits == 4 && e == 0) in isdn_audio_adpcm2xlaw() [all …]
|
D | isdn_v110.c | 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() 304 v110_buf[i] |= (v->decodebuf[(i * v->nbytes) + j] & v->key) << (8 - ((j + 1) * v->nbits)); in isdn_v110_decode() 305 v110_buf[i] = FlipBits(v110_buf[i], v->nbits); in isdn_v110_decode() 497 sval1 = 8 - v->nbits; in isdn_v110_encode() 500 v110buf[i] = FlipBits(v110buf[i], v->nbits); in isdn_v110_encode() 503 *rbuf++ = ~v->key | (((v110buf[i] << (j * v->nbits)) & sval2) >> sval1); in isdn_v110_encode()
|
D | isdn_audio.h | 18 int nbits; member
|
/linux-2.4.37.9/drivers/scsi/ |
D | scsi_dma.c | 74 unsigned int nbits, mask; in scsi_malloc() local 81 nbits = len >> 9; in scsi_malloc() 82 mask = (1 << nbits) - 1; in scsi_malloc() 87 for (j = 0; j <= SECTORS_PER_PAGE - nbits; j++) { in scsi_malloc() 90 scsi_dma_free_sectors -= nbits; in scsi_malloc() 124 unsigned int page, sector, nbits, mask; in scsi_free() local 147 nbits = len >> 9; in scsi_free() 148 mask = (1 << nbits) - 1; in scsi_free() 150 if (sector + nbits > SECTORS_PER_PAGE) in scsi_free() 161 scsi_dma_free_sectors += nbits; in scsi_free()
|
/linux-2.4.37.9/arch/x86_64/lib/ |
D | bitstr.c | 5 find_next_zero_string(unsigned long *bitmap, long start, long nbits, int len) in find_next_zero_string() argument 10 n = find_next_zero_bit(bitmap, nbits, start); in find_next_zero_string() 16 if (end >= nbits) in find_next_zero_string()
|
/linux-2.4.37.9/drivers/net/hamradio/soundmodem/ |
D | gentbl.c | 35 static void gentbl_offscostab(FILE *f, unsigned int nbits) in gentbl_offscostab() argument 42 nbits); in gentbl_offscostab() 44 for (i = 0; i < (1<<nbits); i++) { in gentbl_offscostab() 46 (128+127.0*cos(i*2.0*M_PI/(1<<nbits)))); in gentbl_offscostab() 47 if (i < (1<<nbits)-1) in gentbl_offscostab() 52 16-nbits, (1<<nbits)-1); in gentbl_offscostab() 57 static void gentbl_costab(FILE *f, unsigned int nbits) in gentbl_costab() argument 62 "static const short costab[%d] = {", (1<<nbits)); in gentbl_costab() 63 for (i = 0; i < (1<<nbits); i++) { in gentbl_costab() 66 fprintf(f, "%6d", (int)(32767.0*cos(i*2.0*M_PI/(1<<nbits)))); in gentbl_costab() [all …]
|
/linux-2.4.37.9/arch/ia64/sn/kernel/ |
D | sn2_smp.c | 95 sn2_global_tlb_purge (unsigned long start, unsigned long end, unsigned long nbits) in sn2_global_tlb_purge() argument 102 (nbits<<SH_PTC_0_PS_SHFT) | in sn2_global_tlb_purge() 119 asm volatile ("ptc.ga %0,%1;;srlz.i;;" :: "r"(start), "r"(nbits<<2) : "memory"); in sn2_global_tlb_purge() 133 start += (1UL << nbits); in sn2_global_tlb_purge()
|
/linux-2.4.37.9/arch/ia64/sn/kernel/sn2/ |
D | sn2_smp.c | 95 sn2_global_tlb_purge (unsigned long start, unsigned long end, unsigned long nbits) in sn2_global_tlb_purge() argument 102 (nbits<<SH_PTC_0_PS_SHFT) | in sn2_global_tlb_purge() 119 asm volatile ("ptc.ga %0,%1;;srlz.i;;" :: "r"(start), "r"(nbits<<2) : "memory"); in sn2_global_tlb_purge() 133 start += (1UL << nbits); in sn2_global_tlb_purge()
|
/linux-2.4.37.9/drivers/net/ |
D | de620.c | 920 int nbits; in ReadAWord() local 928 for (nbits = 9; nbits > 0; --nbits, from <<= 1) { in ReadAWord() 944 for (data = 0, nbits = 16; nbits > 0; --nbits) { in ReadAWord()
|
/linux-2.4.37.9/fs/xfs/ |
D | xfs_buf_item.c | 255 uint nbits; in xfs_buf_item_format() local 299 nbits = 1; in xfs_buf_item_format() 322 vecp->i_len = nbits * XFS_BLI_CHUNK; in xfs_buf_item_format() 328 vecp->i_len = nbits * XFS_BLI_CHUNK; in xfs_buf_item_format() 333 nbits = 1; in xfs_buf_item_format() 339 vecp->i_len = nbits * XFS_BLI_CHUNK; in xfs_buf_item_format() 348 nbits = 1; in xfs_buf_item_format() 351 nbits++; in xfs_buf_item_format()
|
D | xfs_log_recover.c | 1811 int nbits; in xlog_recover_do_inode_buffer() local 1842 nbits = 0; in xlog_recover_do_inode_buffer() 1857 bit += nbits; in xlog_recover_do_inode_buffer() 1868 nbits = xfs_contig_bits(data_map, map_size, in xlog_recover_do_inode_buffer() 1870 ASSERT(nbits > 0); in xlog_recover_do_inode_buffer() 1872 reg_buf_bytes = nbits << XFS_BLI_SHIFT; in xlog_recover_do_inode_buffer() 1930 int nbits; in xlog_recover_do_reg_buffer() local 1954 nbits = xfs_contig_bits(data_map, map_size, bit); in xlog_recover_do_reg_buffer() 1955 ASSERT(nbits > 0); in xlog_recover_do_reg_buffer() 1959 ((uint)bit << XFS_BLI_SHIFT)+(nbits<<XFS_BLI_SHIFT)); in xlog_recover_do_reg_buffer() [all …]
|
/linux-2.4.37.9/arch/x86_64/kernel/ |
D | aperture.c | 124 int nbits = hweight16(apsize); in read_agp() local 125 *order = 7 - nbits; in read_agp()
|
/linux-2.4.37.9/Documentation/sound/ |
D | vwsnd | 242 int nbits; 257 int mask = (1 << gp->nbits) - 1; 275 gp->min_gain + (1 << gp->nbits) * gp->gain_step; 277 int mask = (1 << gp->nbits) - 1; 285 if (lg >= (1 << gp->nbits) || rg >= (1 << gp->nbits))
|
/linux-2.4.37.9/arch/ia64/kernel/ |
D | ptrace.c | 234 long num_regs, nbits; in get_rnat() local 242 nbits = ia64_rse_num_regs(urnat_addr - 63, urbs_end); in get_rnat() 244 nbits = 63; in get_rnat() 245 mask = (1UL << nbits) - 1; in get_rnat() 292 long num_regs, nbits; in put_rnat() local 315 nbits = 63; in put_rnat() 319 nbits = ia64_rse_num_regs(urnat_addr - 63, urbs_kargs); in put_rnat() 321 mask = (1UL << nbits) - 1; in put_rnat()
|
/linux-2.4.37.9/arch/parisc/math-emu/ |
D | driver.c | 83 extern int printbinary(char *buf, unsigned long x, int nbits); in handle_fpe()
|
/linux-2.4.37.9/arch/parisc/kernel/ |
D | traps.c | 45 static int printbinary(char *buf, unsigned long x, int nbits) in printbinary() argument 47 unsigned long mask = 1UL << (nbits - 1); in printbinary() 54 return nbits; in printbinary()
|
/linux-2.4.37.9/drivers/sound/ |
D | ad1816.c | 609 unsigned int nbits:4; member 762 mask = (1 << mix_devices[dev][chn].nbits) - 1; in change_bits() 812 if (mix_devices[dev][RIGHT_CHN].nbits == 0) in ad1816_mixer_set() 826 if (mix_devices[dev][LEFT_CHN].nbits == 0) in ad1816_mixer_set() 855 if (mix_devices[dev][RIGHT_CHN].nbits == 0) in ad1816_mixer_set()
|
D | sb.h | 67 unsigned int nbits:4; member
|
D | ad1848_mixer.h | 63 unsigned int nbits:3; /* number of bits in register for volume */ member
|
D | sb_mixer.c | 238 mask = (1 << (*devc->iomap)[dev][chn].nbits) - 1; in change_bits() 241 shift = (*devc->iomap)[dev][chn].bitoffs - (*devc->iomap)[dev][LEFT_CHN].nbits + 1; in change_bits()
|
D | vwsnd.c | 865 char nbits; member 951 int val = w >> field->lo_bit & ((1 << field->nbits) - 1); in ad1843_read_bits() 954 lith, field->reg, field->lo_bit, field->nbits, val); in ad1843_read_bits() 968 int mask = ((1 << field->nbits) - 1) << field->lo_bit; in ad1843_write_bits() 976 lith, field->reg, field->lo_bit, field->nbits, newval, in ad1843_write_bits() 1010 mask = (1 << fp->nbits) - 1; in ad1843_read_multi() 1046 m = ((1 << fp->nbits) - 1) << fp->lo_bit; in ad1843_write_multi() 1068 unsigned short mask = (1 << gp->lfield->nbits) - 1; in ad1843_get_gain() 1091 unsigned short mask = (1 << gp->lfield->nbits) - 1; in ad1843_set_gain()
|
/linux-2.4.37.9/drivers/char/ |
D | random.c | 444 __u32 nbits = 0; 447 nbits++; 448 return nbits; 597 static void credit_entropy_store(struct entropy_store *r, int nbits) in credit_entropy_store() argument 599 if (r->entropy_count + nbits < 0) { in credit_entropy_store() 601 r->entropy_count, nbits); in credit_entropy_store() 603 } else if (r->entropy_count + nbits > r->poolinfo.POOLBITS) { in credit_entropy_store() 606 r->entropy_count += nbits; in credit_entropy_store() 607 if (nbits) in credit_entropy_store() 611 nbits, r->entropy_count); in credit_entropy_store()
|
/linux-2.4.37.9/include/asm-x86_64/ |
D | bitops.h | 322 find_next_zero_string(unsigned long *bitmap, long start, long nbits, int len);
|
/linux-2.4.37.9/fs/jfs/ |
D | jfs_dmap.c | 466 int word, nbits, nwords; in dbUpdatePMap() local 526 rbits -= nbits, dbitno += nbits) { in dbUpdatePMap() 531 nbits = min(rbits, DBWORD - wbitno); in dbUpdatePMap() 534 if (nbits < DBWORD) { in dbUpdatePMap() 539 (ONES << (DBWORD - nbits) >> wbitno); in dbUpdatePMap() 554 nbits = nwords << L2DBWORD; in dbUpdatePMap()
|