/linux-2.4.37.9/fs/jfs/ |
D | jfs_dmap.c | 138 static int blkstol2(s64 nb); 377 int nb, rc; in dbFree() local 399 for (rem = nblocks; rem > 0; rem -= nb, blkno += nb) { in dbFree() 417 nb = min(rem, BPERDMAP - (blkno & (BPERDMAP - 1))); in dbFree() 419 DBALLOCCK(bmp->db_DBmap, bmp->db_mapsize, blkno, nb); in dbFree() 422 if ((rc = dbFreeDmap(bmp, dp, blkno, nb))) { in dbFree() 428 DBFREE(bmp->db_DBmap, bmp->db_mapsize, blkno, nb); in dbFree() 1203 int dbitno, word, rembits, nb, nwords, wbitno, nw; in dbAllocNext() local 1249 for (rembits = nblocks; rembits > 0; rembits -= nb, dbitno += nb) { in dbAllocNext() 1254 nb = min(rembits, DBWORD - wbitno); in dbAllocNext() [all …]
|
D | jfs_extent.c | 33 static s64 extRoundDown(s64 nb); 519 s64 nb, nblks, daddr, max; in extBalloc() local 532 nb = nblks = (max > nbperpage) ? max : nbperpage; in extBalloc() 534 nb = nblks = *nblocks; in extBalloc() 537 while ((rc = dbAlloc(ip, hint, nb, &daddr))) { in extBalloc() 545 nb = min(nblks, extRoundDown(nb)); in extBalloc() 548 if (nb < nbperpage) in extBalloc() 552 *nblocks = nb; in extBalloc() 642 static s64 extRoundDown(s64 nb) in extRoundDown() argument 648 if (m & nb) in extRoundDown() [all …]
|
D | xattr.c | 238 s32 nbytes, nb; in ea_write() local 270 nb = min(PSIZE, nbytes); in ea_write() 272 ((((nb + sb->s_blocksize - 1)) >> sb->s_blocksize_bits)) in ea_write() 280 memcpy(mp->data, cp, nb); in ea_write() 303 nbytes -= nb; in ea_write() 376 int nbytes, nb; in ea_read() local 407 nb = min(PSIZE, nbytes); in ea_read() 409 ((((nb + sb->s_blocksize - 1)) >> sb->s_blocksize_bits)) in ea_read() 415 memcpy(cp, mp->data, nb); in ea_read() 419 nbytes -= nb; in ea_read()
|
/linux-2.4.37.9/drivers/sound/ |
D | vwsnd.c | 1877 static void pcm_copy_in(vwsnd_port_t *rport, int swidx, int hwidx, int nb) in pcm_copy_in() argument 1886 ASSERT(nb > 0 && (nb % 32) == 0); in pcm_copy_in() 1888 ASSERT(swidx >= 0 && swidx + nb <= rport->swbuf_size); in pcm_copy_in() 1889 ASSERT(hwidx >= 0 && hwidx + nb <= rport->hwbuf_size); in pcm_copy_in() 1895 char *end = src + nb; in pcm_copy_in() 1899 memcpy(dst, src, nb); in pcm_copy_in() 1902 static void pcm_copy_out(vwsnd_port_t *wport, int swidx, int hwidx, int nb) in pcm_copy_out() argument 1908 ASSERT(nb > 0 && (nb % 32) == 0); in pcm_copy_out() 1912 ASSERT(swidx >= 0 && swidx + nb <= wport->swbuf_size); in pcm_copy_out() 1913 ASSERT(hwidx >= 0 && hwidx + nb <= wport->hwbuf_size); in pcm_copy_out() [all …]
|
/linux-2.4.37.9/arch/x86_64/mm/ |
D | k8topology.c | 95 int nodeid, numnodes, maxnode, i, nb; in k8_scan_nodes() local 97 nb = find_northbridge(); in k8_scan_nodes() 98 if (nb < 0) in k8_scan_nodes() 99 return nb; in k8_scan_nodes() 101 printk(KERN_INFO "Scanning NUMA topology in Northbridge %d\n", nb); in k8_scan_nodes() 103 numnodes = (read_pci_config(0, nb, 0, 0x60 ) >> 4) & 7; in k8_scan_nodes() 111 base = read_pci_config(0, nb, 1, 0x40 + i*8); in k8_scan_nodes() 112 limit = read_pci_config(0, nb, 1, 0x44 + i*8); in k8_scan_nodes()
|
/linux-2.4.37.9/arch/ppc/xmon/ |
D | start_8xx.c | 21 extern int xmon_8xx_write(char *str, int nb); 58 xmon_write(void *handle, void *ptr, int nb) in xmon_write() argument 66 return(xmon_8xx_write(ptr, nb)); in xmon_write() 72 xmon_read(void *handle, void *ptr, int nb) in xmon_read() argument 80 for (i = 0; i < nb; ++i) { in xmon_read() 249 xmon_fgets(char *str, int nb, void *f) in xmon_fgets() argument 254 for (p = str; p < str + nb - 1; ) { in xmon_fgets()
|
D | start.c | 240 xmon_write(void *handle, void *ptr, int nb) in xmon_write() argument 258 for (i = 0; i < nb; ++i) in xmon_write() 266 for (i = 0; i < nb; ++i) { in xmon_write() 287 return nb; in xmon_write() 352 xmon_read(void *handle, void *ptr, int nb) in xmon_read() argument 359 for (i = 0; i < nb; ++i) in xmon_read() 366 for (i = 0; i < nb; ++i) { in xmon_read() 609 xmon_fgets(char *str, int nb, void *f) in xmon_fgets() argument 614 for (p = str; p < str + nb - 1; ) { in xmon_fgets()
|
/linux-2.4.37.9/arch/ppc64/xmon/ |
D | start.c | 87 xmon_write(void *handle, void *ptr, int nb) in xmon_write() argument 90 return udbg_write(ptr, nb); in xmon_write() 98 for (i = 0; i < nb; ++i) { in xmon_write() 121 xmon_read(void *handle, void *ptr, int nb) in xmon_read() argument 124 return udbg_read(ptr, nb); in xmon_read() 131 for (i = 0; i < nb; ++i) { in xmon_read() 317 xmon_fgets(char *str, int nb, void *f) in xmon_fgets() argument 322 for (p = str; p < str + nb - 1; ) { in xmon_fgets()
|
/linux-2.4.37.9/arch/ppc/kernel/ |
D | align.c | 186 int instr, nb, flags; in fix_alignment() local 229 nb = aligninfo[instr].len; in fix_alignment() 230 if (nb == 0) { in fix_alignment() 259 if (verify_area((flags & ST? VERIFY_WRITE: VERIFY_READ), addr, nb)) in fix_alignment() 270 if (nb == 2) { in fix_alignment() 276 for (i = 0; i < nb; ++i) in fix_alignment() 291 if (nb == 2) { in fix_alignment() 304 if (nb == 2) { in fix_alignment() 337 if (nb == 2) { in fix_alignment() 342 for (i = 0; i < nb; ++i) in fix_alignment()
|
/linux-2.4.37.9/arch/ppc64/kernel/ |
D | align.c | 211 unsigned int instr, nb, flags; in fix_alignment() local 252 nb = aligninfo[instr].len; in fix_alignment() 260 if ((nb == 0) || (flags & M)) in fix_alignment() 273 if (verify_area((flags & ST? VERIFY_WRITE: VERIFY_READ), addr, nb)) in fix_alignment() 286 switch (nb) { in fix_alignment() 306 if (nb == 4) { in fix_alignment() 321 if (nb == 2) in fix_alignment() 331 if ( nb == 2 ) in fix_alignment() 340 if (nb == 4) { in fix_alignment() 357 switch (nb) { in fix_alignment()
|
/linux-2.4.37.9/arch/ppc/boot/common/ |
D | ofcommon.c | 59 static void zfree(void *x, void *addr, unsigned nb) in zfree() argument 63 nb = (nb + 7) & -8; in zfree() 64 heap_use -= nb; in zfree() 65 if (avail_ram == addr + nb) { in zfree() 69 mp->size = nb; in zfree()
|
/linux-2.4.37.9/arch/ppc/boot/pmac/ |
D | start.c | 33 int writestring(void *f, char *ptr, int nb) in writestring() argument 38 for (i = 0; i < nb; ++i) { in writestring() 47 if (w < nb) in writestring() 48 write(f, ptr + w, nb - w); in writestring() 49 return nb; in writestring()
|
/linux-2.4.37.9/drivers/scsi/ |
D | mac53c94.c | 308 int nb, stat, seq, intr; in mac53c94_interrupt() local 378 nb = cmd->SCp.this_residual; in mac53c94_interrupt() 379 if (nb > 0xfff0) in mac53c94_interrupt() 380 nb = 0xfff0; in mac53c94_interrupt() 381 cmd->SCp.this_residual -= nb; in mac53c94_interrupt() 382 regs->count_lo = nb; in mac53c94_interrupt() 383 regs->count_mid = nb >> 8; in mac53c94_interrupt() 414 nb = cmd->SCp.this_residual; in mac53c94_interrupt() 415 if (nb > 0xfff0) in mac53c94_interrupt() 416 nb = 0xfff0; in mac53c94_interrupt() [all …]
|
/linux-2.4.37.9/fs/xfs/ |
D | xfs_fsops.c | 146 xfs_rfsblock_t nb, nb_mod; in xfs_growfs_data_private() local 154 nb = in->newblocks; in xfs_growfs_data_private() 156 if (nb < mp->m_sb.sb_dblocks || pct < 0 || pct > 100) in xfs_growfs_data_private() 160 XFS_FSB_TO_BB(mp, nb) - XFS_FSS_TO_BB(mp, 1), in xfs_growfs_data_private() 167 new = nb; /* use new as a temporary here */ in xfs_growfs_data_private() 172 nb = nagcount * mp->m_sb.sb_agblocks; in xfs_growfs_data_private() 173 if (nb < mp->m_sb.sb_dblocks) in xfs_growfs_data_private() 176 new = nb - mp->m_sb.sb_dblocks; in xfs_growfs_data_private() 212 nb - in xfs_growfs_data_private() 365 if (nb > mp->m_sb.sb_dblocks) in xfs_growfs_data_private() [all …]
|
D | xfs_quota.h | 329 #define XFS_TRANS_RESERVE_QUOTA_BYDQUOTS(mp, tp, ud, gd, nb, ni, fl) \ argument 330 XFS_DQTRXOP(mp, tp, qo_reserve_quota_bydquots, mp, ud, gd, nb, ni, fl) 343 #define XFS_TRANS_RESERVE_QUOTA(mp, tp, ud, gd, nb, ni, f) \ argument 344 XFS_TRANS_RESERVE_QUOTA_BYDQUOTS(mp, tp, ud, gd, nb, ni, \ 346 #define XFS_TRANS_UNRESERVE_QUOTA(mp, tp, ud, gd, nb, ni, f) \ argument 347 XFS_TRANS_RESERVE_QUOTA_BYDQUOTS(mp, tp, ud, gd, -(nb), -(ni), \
|
/linux-2.4.37.9/net/rose/ |
D | rose_subr.c | 430 int len, nb; in rose_create_facilities() local 448 for (nb = 0 ; nb < rose->source_ndigis ; nb++) { in rose_create_facilities() 451 memcpy(p, &rose->source_digis[nb], AX25_ADDR_LEN); in rose_create_facilities() 455 for (nb = 0 ; nb < rose->dest_ndigis ; nb++) { in rose_create_facilities() 458 memcpy(p, &rose->dest_digis[nb], AX25_ADDR_LEN); in rose_create_facilities()
|
/linux-2.4.37.9/arch/ppc64/boot/ |
D | zImage.c | 286 void zfree(void *x, void *addr, unsigned nb) in zfree() argument 290 nb = _ALIGN(nb, sizeof(struct memchunk)); in zfree() 291 heap_use -= nb; in zfree() 292 if (avail_ram == addr + nb) { in zfree() 296 mp->size = nb; in zfree()
|
/linux-2.4.37.9/drivers/macintosh/ |
D | mac_keyb.c | 313 keyboard_input(unsigned char *data, int nb, struct pt_regs *regs, int apoll) in keyboard_input() argument 316 if (nb != 3 || (data[0] & 3) != KEYB_KEYREG) in keyboard_input() 433 mouse_input(unsigned char *data, int nb, struct pt_regs *regs, int autopoll) in mouse_input() argument 540 nb=4; in mouse_input() 545 adb_mouse_interrupt_hook(data, nb); in mouse_input() 571 if (nb >= 4) { in mouse_input() 589 buttons_input(unsigned char *data, int nb, struct pt_regs *regs, int autopoll) in buttons_input() argument 600 if ((data[0] & 0x3) || (nb < 2)) in buttons_input()
|
D | via-cuda.c | 109 static void cuda_input(unsigned char *buf, int nb, struct pt_regs *regs); 598 cuda_input(unsigned char *buf, int nb, struct pt_regs *regs) in cuda_input() argument 605 if (nb == 5 && buf[2] == 0x2c) { in cuda_input() 614 adb_input(buf+2, nb-2, regs, buf[1] & 0x40); in cuda_input() 619 printk("data from cuda (%d bytes):", nb); in cuda_input() 620 for (i = 0; i < nb; ++i) in cuda_input()
|
D | via-maciisi.c | 87 static void maciisi_input(unsigned char *buf, int nb, struct pt_regs *regs); 643 maciisi_input(unsigned char *buf, int nb, struct pt_regs *regs) in maciisi_input() argument 651 adb_input(buf+2, nb-2, regs, buf[1] & 0x40); in maciisi_input() 655 printk(KERN_DEBUG "data from IIsi ADB (%d bytes):", nb); in maciisi_input() 656 for (i = 0; i < nb; ++i) in maciisi_input()
|
D | adbhid.c | 129 adbhid_keyboard_input(unsigned char *data, int nb, struct pt_regs *regs, int apoll) in adbhid_keyboard_input() argument 140 if (nb != 3 || (data[0] & 3) != KEYB_KEYREG) in adbhid_keyboard_input() 185 adbhid_mouse_input(unsigned char *data, int nb, struct pt_regs *regs, int autopoll) in adbhid_mouse_input() argument 264 nb=4; in adbhid_mouse_input() 271 if (nb >= 4) in adbhid_mouse_input() 281 adbhid_buttons_input(unsigned char *data, int nb, struct pt_regs *regs, int autopoll) in adbhid_buttons_input() argument
|
/linux-2.4.37.9/drivers/usb/ |
D | scanner.c | 805 int pipe, nb, ret; in ioctl_scanner() local 814 nb = cmsg.req.wLength; in ioctl_scanner() 816 if (nb > sizeof(buf)) { in ioctl_scanner() 823 if (nb > 0 && copy_from_user(buf, cmsg.data, nb)) { in ioctl_scanner() 835 buf, nb, HZ); in ioctl_scanner() 843 if (nb > 0 && (cmsg.req.bRequestType & 0x80) && copy_to_user(cmsg.data, buf, nb)) in ioctl_scanner()
|
/linux-2.4.37.9/include/linux/ |
D | igmp.h | 187 #define IGMPV3_MASK(value, nb) ((nb)>=32 ? (value) : ((1<<(nb))-1) & (value)) argument
|
/linux-2.4.37.9/drivers/char/ |
D | adbmouse.c | 61 static void adb_mouse_interrupt(unsigned char *buf, int nb) in adb_mouse_interrupt() argument 113 if (nb >= 4) in adb_mouse_interrupt()
|
/linux-2.4.37.9/kernel/ |
D | sys.c | 144 struct notifier_block *nb = *n; in notifier_call_chain() local 146 while(nb) in notifier_call_chain() 148 ret=nb->notifier_call(nb,val,v); in notifier_call_chain() 153 nb=nb->next; in notifier_call_chain() 169 int register_reboot_notifier(struct notifier_block * nb) in register_reboot_notifier() argument 171 return notifier_chain_register(&reboot_notifier_list, nb); in register_reboot_notifier() 184 int unregister_reboot_notifier(struct notifier_block * nb) in unregister_reboot_notifier() argument 186 return notifier_chain_unregister(&reboot_notifier_list, nb); in unregister_reboot_notifier()
|