/linux-2.4.37.9/fs/jfs/ |
D | jfs_imap.c | 59 #define IAGFREE_LOCK_INIT(imap) init_MUTEX(&imap->im_freelock) argument 60 #define IAGFREE_LOCK(imap) down(&imap->im_freelock) argument 61 #define IAGFREE_UNLOCK(imap) up(&imap->im_freelock) argument 64 #define AG_LOCK_INIT(imap,index) init_MUTEX(&(imap->im_aglock[index])) argument 65 #define AG_LOCK(imap,agno) down(&imap->im_aglock[agno]) argument 66 #define AG_UNLOCK(imap,agno) up(&imap->im_aglock[agno]) argument 86 static int diIAGRead(struct inomap * imap, int, struct metapage **); 96 #define DBG_DIINIT(imap) DBGdiInit(imap) argument 97 #define DBG_DIALLOC(imap, ino) DBGdiAlloc(imap, ino) argument 98 #define DBG_DIFREE(imap, ino) DBGdiFree(imap, ino) argument [all …]
|
D | super.c | 121 struct inomap *imap = JFS_IP(sbi->ipimap)->i_imap; in jfs_statfs() local 138 maxinodes = min((s64) atomic_read(&imap->im_numinos) + in jfs_statfs() 139 ((sbi->bmap->db_nfree >> imap->im_l2nbperiext) in jfs_statfs() 142 buf->f_ffree = maxinodes - (atomic_read(&imap->im_numinos) - in jfs_statfs() 143 atomic_read(&imap->im_numfree)); in jfs_statfs()
|
/linux-2.4.37.9/fs/xfs/ |
D | xfs_iomap.c | 151 xfs_bmbt_irec_t *imap, in xfs_imap_to_bmap() argument 167 for (pbm = 0; imaps && pbm < iomaps; imaps--, iomapp++, imap++, pbm++) { in xfs_imap_to_bmap() 168 iomapp->iomap_offset = XFS_FSB_TO_B(mp, imap->br_startoff); in xfs_imap_to_bmap() 170 iomapp->iomap_bsize = XFS_FSB_TO_B(mp, imap->br_blockcount); in xfs_imap_to_bmap() 179 start_block = imap->br_startblock; in xfs_imap_to_bmap() 188 if (ISUNWRITTEN(imap)) in xfs_imap_to_bmap() 214 xfs_bmbt_irec_t imap; in xfs_iomap() local 271 bmapi_flags, NULL, 0, &imap, in xfs_iomap() 281 if (nimaps && (imap.br_startblock != HOLESTARTBLOCK)) { in xfs_iomap() 283 offset, count, iomapp, &imap, flags); in xfs_iomap() [all …]
|
D | xfs_inode.c | 216 xfs_imap_t imap; in xfs_inotobp() local 225 imap.im_blkno = 0; in xfs_inotobp() 226 error = xfs_imap(mp, tp, ino, &imap, XFS_IMAP_LOOKUP); in xfs_inotobp() 239 if ((imap.im_blkno + imap.im_len) > in xfs_inotobp() 244 imap.im_blkno, imap.im_len,mp->m_fsname); in xfs_inotobp() 252 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, imap.im_blkno, in xfs_inotobp() 253 (int)imap.im_len, XFS_BUF_LOCK, &bp); in xfs_inotobp() 280 *dipp = (xfs_dinode_t *)xfs_buf_offset(bp, imap.im_boffset); in xfs_inotobp() 282 *offset = imap.im_boffset; in xfs_inotobp() 318 xfs_imap_t imap; in xfs_itobp() local [all …]
|
D | xfs_vnodeops.c | 1214 xfs_bmbt_irec_t imap; in xfs_inactive_free_eofblocks() local 1229 NULL, 0, &imap, &nimaps, NULL); in xfs_inactive_free_eofblocks() 1233 (imap.br_startblock != HOLESTARTBLOCK)) { in xfs_inactive_free_eofblocks() 4229 xfs_bmbt_irec_t imap; in xfs_zero_remaining_bytes() local 4245 error = xfs_bmapi(NULL, ip, offset_fsb, 1, 0, NULL, 0, &imap, in xfs_zero_remaining_bytes() 4249 ASSERT(imap.br_blockcount >= 1); in xfs_zero_remaining_bytes() 4250 ASSERT(imap.br_startoff == offset_fsb); in xfs_zero_remaining_bytes() 4251 lastoffset = XFS_FSB_TO_B(mp, imap.br_startoff + 1) - 1; in xfs_zero_remaining_bytes() 4254 if (imap.br_startblock == HOLESTARTBLOCK) in xfs_zero_remaining_bytes() 4256 ASSERT(imap.br_startblock != DELAYSTARTBLOCK); in xfs_zero_remaining_bytes() [all …]
|
D | xfs_log_recover.c | 2299 xfs_imap_t imap; in xlog_recover_do_inode_trans() local 2318 imap.im_blkno = (xfs_daddr_t)in_f->ilf_blkno; in xlog_recover_do_inode_trans() 2319 imap.im_len = in_f->ilf_len; in xlog_recover_do_inode_trans() 2320 imap.im_boffset = in_f->ilf_boffset; in xlog_recover_do_inode_trans() 2332 imap.im_blkno = 0; in xlog_recover_do_inode_trans() 2333 xfs_imap(log->l_mp, NULL, ino, &imap, 0); in xlog_recover_do_inode_trans() 2340 if (xlog_check_buffer_cancelled(log, imap.im_blkno, imap.im_len, 0)) in xlog_recover_do_inode_trans() 2343 bp = xfs_buf_read_flags(mp->m_ddev_targp, imap.im_blkno, imap.im_len, in xlog_recover_do_inode_trans() 2347 bp, imap.im_blkno); in xlog_recover_do_inode_trans() 2354 dip = (xfs_dinode_t *)xfs_buf_offset(bp, imap.im_boffset); in xlog_recover_do_inode_trans()
|
/linux-2.4.37.9/arch/ppc/kernel/ |
D | m8xx_wdt.c | 33 volatile immap_t *imap = (volatile immap_t *) IMAP_ADDR; in m8xx_wdt_reset() local 35 imap->im_siu_conf.sc_swsr = 0x556c; /* write magic1 */ in m8xx_wdt_reset() 36 imap->im_siu_conf.sc_swsr = 0xaa39; /* write magic2 */ in m8xx_wdt_reset() 42 volatile immap_t *imap = (volatile immap_t *) IMAP_ADDR; in m8xx_wdt_interrupt() local 46 imap->im_sit.sit_piscr |= PISCR_PS; /* clear irq */ in m8xx_wdt_interrupt() 52 volatile immap_t *imap = (volatile immap_t *) IMAP_ADDR; in m8xx_wdt_handler_install() local 57 sypcr = imap->im_siu_conf.sc_sypcr; in m8xx_wdt_handler_install() 83 if (imap->im_sit.sit_rtcsc & RTCSC_38K) in m8xx_wdt_handler_install() 93 imap->im_sit.sit_pitc = pitc << 16; in m8xx_wdt_handler_install() 94 imap->im_sit.sit_piscr = in m8xx_wdt_handler_install()
|
D | prom.c | 298 unsigned int *imap, *imask, *ip; in map_interrupt() local 311 imap = (unsigned int *) in map_interrupt() 313 if (imap == NULL) { in map_interrupt() 331 match = ((reg[i] ^ imap[i]) & imask[i]) == 0; in map_interrupt() 333 match = ((ints[i-naddrc] ^ imap[i]) & imask[i]) == 0; in map_interrupt() 334 imap += naddrc + nintrc; in map_interrupt() 337 ipar = find_phandle((phandle) *imap++); in map_interrupt() 344 imap[-1], p->full_name); in map_interrupt() 359 imap += newaddrc + newintrc; in map_interrupt() 375 ints = imap - nintrc; in map_interrupt()
|
/linux-2.4.37.9/arch/sparc64/kernel/ |
D | irq.c | 143 unsigned long imap; in enable_irq() local 146 imap = bucket->imap; in enable_irq() 147 if (imap == 0UL) in enable_irq() 177 tid = (starfire_translate(imap, current->processor) << 26); in enable_irq() 189 upa_writel(tid | IMAP_VALID, imap); in enable_irq() 196 unsigned long imap; in disable_irq() local 198 imap = bucket->imap; in disable_irq() 199 if (imap != 0UL) { in disable_irq() 207 tmp = upa_readl(imap); in disable_irq() 209 upa_writel(tmp, imap); in disable_irq() [all …]
|
D | starfire.c | 112 unsigned int starfire_translate(unsigned long imap, in starfire_translate() argument 119 bus_hwmid = (((unsigned long)imap) >> 33) & 0x7f; in starfire_translate() 125 ((unsigned long)imap)); in starfire_translate() 129 if(p->imap_slots[i] == imap || in starfire_translate() 137 p->imap_slots[i] = imap; in starfire_translate()
|
D | pci_schizo.c | 396 unsigned long imap, iclr; in schizo_irq_build() local 409 imap = pbm->pbm_regs + imap_off; in schizo_irq_build() 410 imap += 4; in schizo_irq_build() 431 bucket = __bucket(build_irq(pil, ign_fixup, iclr, imap)); in schizo_irq_build() 1243 tmp = readl(bucket->imap); in tomatillo_register_error_handlers() 1256 tmp = upa_readl(bucket->imap); in tomatillo_register_error_handlers() 1270 tmp = upa_readl(bucket->imap); in tomatillo_register_error_handlers() 1284 tmp = upa_readl(bucket->imap); in tomatillo_register_error_handlers() 1297 tmp = upa_readl(bucket->imap); in tomatillo_register_error_handlers() 1381 tmp = readl(bucket->imap); in schizo_register_error_handlers() [all …]
|
D | sbus.c | 775 static unsigned long sysio_imap_to_iclr(unsigned long imap) in sysio_imap_to_iclr() argument 778 return imap + diff; in sysio_imap_to_iclr() 786 unsigned long imap, iclr; in sbus_build_irq() local 798 imap = sysio_irq_offsets[ino]; in sbus_build_irq() 799 if (imap == ((unsigned long)-1)) { in sbus_build_irq() 804 imap += reg_base; in sbus_build_irq() 811 iclr = sysio_imap_to_iclr(imap); in sbus_build_irq() 835 return build_irq(pil, sbus_level, iclr, imap); in sbus_build_irq()
|
D | pci_psycho.c | 392 unsigned long imap, iclr; in psycho_irq_build() local 415 imap = pbm->controller_regs + imap_off; in psycho_irq_build() 416 imap += 4; in psycho_irq_build() 425 bucket = __bucket(build_irq(pil, inofixup, iclr, imap)); in psycho_irq_build()
|
D | pci_sabre.c | 641 unsigned long imap, iclr; in sabre_irq_build() local 664 imap = pbm->controller_regs + imap_off; in sabre_irq_build() 665 imap += 4; in sabre_irq_build() 674 bucket = __bucket(build_irq(pil, inofixup, iclr, imap)); in sabre_irq_build()
|
/linux-2.4.37.9/drivers/char/ |
D | mpc8xx_wdt.c | 45 volatile immap_t *imap = (volatile immap_t *) IMAP_ADDR; in mpc8xx_wdt_handler_disable() local 47 imap->im_sit.sit_piscr &= ~(PISCR_PIE | PISCR_PTE); in mpc8xx_wdt_handler_disable() 55 volatile immap_t *imap = (volatile immap_t *) IMAP_ADDR; in mpc8xx_wdt_handler_enable() local 57 imap->im_sit.sit_piscr |= PISCR_PIE | PISCR_PTE; in mpc8xx_wdt_handler_enable()
|
/linux-2.4.37.9/fs/xfs/linux-2.4/ |
D | xfs_lrw.c | 379 xfs_bmbt_irec_t imap; in xfs_zero_last_block() local 399 error = XFS_BMAPI(mp, NULL, io, last_fsb, 1, 0, NULL, 0, &imap, in xfs_zero_last_block() 409 if (imap.br_startblock == HOLESTARTBLOCK) { in xfs_zero_last_block() 461 xfs_bmbt_irec_t imap; in xfs_zero_eof() local 508 0, NULL, 0, &imap, &nimaps, NULL); in xfs_zero_eof() 516 if (imap.br_state == XFS_EXT_UNWRITTEN || in xfs_zero_eof() 517 imap.br_startblock == HOLESTARTBLOCK) { in xfs_zero_eof() 527 start_zero_fsb = imap.br_startoff + in xfs_zero_eof() 528 imap.br_blockcount; in xfs_zero_eof() 541 buf_len_fsb = XFS_FILBLKS_MIN(imap.br_blockcount, in xfs_zero_eof() [all …]
|
/linux-2.4.37.9/include/asm-sparc64/ |
D | irq.h | 66 /*0x18*/unsigned long imap; member 118 extern unsigned int build_irq(int pil, int inofixup, unsigned long iclr, unsigned long imap);
|
D | starfire.h | 18 extern unsigned int starfire_translate(unsigned long imap, unsigned int upaid);
|
/linux-2.4.37.9/drivers/sbus/char/ |
D | zs.c | 2065 unsigned long iclr, imap; in get_zs() local 2068 imap = central_bus->child->fhc_regs.uregs + FHC_UREGS_IMAP; in get_zs() 2069 irq = zilog_irq = build_irq(12, 0, iclr, imap); in get_zs()
|