/linux/fs/jfs/ |
H A D | jfs_imap.c | 51 #define IAGFREE_LOCK_INIT(imap) mutex_init(&imap->im_freelock) argument 52 #define IAGFREE_LOCK(imap) mutex_lock(&imap->im_freelock) argument 53 #define IAGFREE_UNLOCK(imap) mutex_unlock(&imap->im_freelock) argument 56 #define AG_LOCK_INIT(imap,index) mutex_init(&(imap->im_aglock[index])) argument 57 #define AG_LOCK(imap,agno) mutex_lock(&imap->im_aglock[agno]) argument 58 #define AG_UNLOCK(imap,agno) mutex_unlock(&imap->im_aglock[agno]) argument 73 static int diIAGRead(struct inomap * imap, int, struct metapage **); 96 struct inomap *imap; in diMount() local 105 imap = kmalloc(sizeof(struct inomap), GFP_KERNEL); in diMount() 106 if (imap == NULL) in diMount() [all …]
|
/linux/fs/xfs/scrub/ |
H A D | reap.c | 958 struct xfs_bmbt_irec *imap, in xreap_bmapi_select() argument 969 agbno = XFS_FSB_TO_AGBNO(sc->mp, imap->br_startblock); in xreap_bmapi_select() 970 agbno_next = agbno + imap->br_blockcount; in xreap_bmapi_select() 975 xfs_rmap_ino_owner(&oinfo, ip->i_ino, whichfork, imap->br_startoff); in xreap_bmapi_select() 997 imap->br_blockcount = len; in xreap_bmapi_select() 1041 struct xfs_bmbt_irec *imap) in xreap_bmapi_binval() argument 1059 agbno = bno = XFS_FSB_TO_AGBNO(sc->mp, imap->br_startblock); in xreap_bmapi_binval() 1060 agbno_next = agbno + imap->br_blockcount; in xreap_bmapi_binval() 1073 off = imap->br_startoff + imap->br_blockcount; in xreap_bmapi_binval() 1093 scan_blocks = off - imap->br_startoff; in xreap_bmapi_binval() [all …]
|
H A D | ialloc.c | 366 struct xfs_imap imap; in xchk_iallocbt_check_cluster() local 397 imap.im_blkno = xfs_agbno_to_daddr(to_perag(bs->cur->bc_group), agbno); in xchk_iallocbt_check_cluster() 398 imap.im_len = XFS_FSB_TO_BB(mp, M_IGEO(mp)->blocks_per_cluster); in xchk_iallocbt_check_cluster() 399 imap.im_boffset = XFS_INO_TO_OFFSET(mp, irec->ir_startino) << in xchk_iallocbt_check_cluster() 402 if (imap.im_boffset != 0 && cluster_base != 0) { in xchk_iallocbt_check_cluster() 403 ASSERT(imap.im_boffset == 0 || cluster_base == 0); in xchk_iallocbt_check_cluster() 409 irec->ir_startino, imap.im_blkno, imap.im_len, in xchk_iallocbt_check_cluster() 432 error = xfs_imap_to_bp(mp, bs->cur->bc_tp, &imap, &cluster_bp); in xchk_iallocbt_check_cluster() 440 if (imap.im_boffset >= BBTOB(cluster_bp->b_length)) { in xchk_iallocbt_check_cluster() 445 dip = xfs_buf_offset(cluster_bp, imap.im_boffset); in xchk_iallocbt_check_cluster() [all …]
|
H A D | ialloc_repair.c | 290 struct xfs_imap imap; in xrep_ibt_process_cluster() local 308 imap.im_blkno = xfs_agbno_to_daddr(sc->sa.pag, cluster_bno); in xrep_ibt_process_cluster() 309 imap.im_len = XFS_FSB_TO_BB(mp, igeo->blocks_per_cluster); in xrep_ibt_process_cluster() 310 imap.im_boffset = 0; in xrep_ibt_process_cluster() 311 error = xfs_imap_to_bp(mp, sc->tp, &imap, &cluster_bp); in xrep_ibt_process_cluster()
|
H A D | inode_repair.c | 105 struct xfs_imap imap; member 150 const struct xfs_imap *imap) in xrep_setup_inode() argument 159 memcpy(&ri->imap, imap, sizeof(struct xfs_imap)); in xrep_setup_inode() 1561 ri->imap.im_blkno, ri->imap.im_len, XBF_UNMAPPED, &bp, in xrep_dinode_core() 1571 dip = xfs_buf_offset(bp, ri->imap.im_boffset); in xrep_dinode_core() 1587 xfs_trans_log_buf(sc->tp, bp, ri->imap.im_boffset, in xrep_dinode_core() 1588 ri->imap.im_boffset + sc->mp->m_sb.sb_inodesize - 1); in xrep_dinode_core()
|
H A D | repair.h | 109 int xrep_setup_inode(struct xfs_scrub *sc, const struct xfs_imap *imap); 254 #define xrep_setup_inode(sc, imap) ((void)0) argument
|
H A D | inode.c | 92 struct xfs_imap imap; in xchk_setup_inode() local 195 error = xfs_imap(pag, sc->tp, sc->sm->sm_ino, &imap, in xchk_setup_inode() 215 xrep_setup_inode(sc, &imap); in xchk_setup_inode()
|
/linux/arch/sparc/kernel/ |
H A D | prom_irqtrans.c | 49 unsigned long imap, iclr; in psycho_irq_build() local 63 imap = controller_regs + imap_off; in psycho_irq_build() 71 return build_irq(inofixup, iclr, imap); in psycho_irq_build() 229 unsigned long imap, iclr; in sabre_irq_build() local 244 imap = controller_regs + imap_off; in sabre_irq_build() 252 irq = build_irq(inofixup, iclr, imap); in sabre_irq_build() 385 unsigned long imap, iclr; in schizo_irq_build() local 393 imap = schizo_ino_to_imap(pbm_regs, ino); in schizo_irq_build() 414 irq = build_irq(ign_fixup, iclr, imap); in schizo_irq_build() 517 unsigned long imap, iclr; in fire_irq_build() local [all …]
|
H A D | starfire.c | 77 unsigned int starfire_translate(unsigned long imap, in starfire_translate() argument 84 bus_hwmid = (((unsigned long)imap) >> 33) & 0x7f; in starfire_translate() 90 ((unsigned long)imap)); in starfire_translate() 94 if (p->imap_slots[i] == imap || in starfire_translate() 102 p->imap_slots[i] = imap; in starfire_translate()
|
H A D | sbus.c | 205 static unsigned long sysio_imap_to_iclr(unsigned long imap) in sysio_imap_to_iclr() argument 208 return imap + diff; in sysio_imap_to_iclr() 215 unsigned long imap, iclr; in sbus_build_irq() local 218 imap = sysio_irq_offsets[ino]; in sbus_build_irq() 219 if (imap == ((unsigned long)-1)) { in sbus_build_irq() 224 imap += reg_base; in sbus_build_irq() 231 iclr = sysio_imap_to_iclr(imap); in sbus_build_irq() 255 return build_irq(sbus_level, iclr, imap); in sbus_build_irq()
|
/linux/fs/xfs/ |
H A D | xfs_aops.c | 251 struct xfs_bmbt_irec imap; in xfs_map_blocks() local 297 xfs_iext_lookup_extent(ip, ip->i_cowfp, offset_fsb, &icur, &imap)) in xfs_map_blocks() 298 cow_fsb = imap.br_startoff; in xfs_map_blocks() 321 if (!xfs_iext_lookup_extent(ip, &ip->i_df, offset_fsb, &icur, &imap)) in xfs_map_blocks() 322 imap.br_startoff = end_fsb; /* fake a hole past EOF */ in xfs_map_blocks() 327 if (imap.br_startoff > offset_fsb) { in xfs_map_blocks() 328 imap.br_blockcount = imap.br_startoff - offset_fsb; in xfs_map_blocks() 329 imap.br_startoff = offset_fsb; in xfs_map_blocks() 330 imap.br_startblock = HOLESTARTBLOCK; in xfs_map_blocks() 331 imap.br_state = XFS_EXT_NORM; in xfs_map_blocks() [all …]
|
H A D | xfs_reflink.c | 282 struct xfs_bmbt_irec *imap, in xfs_bmap_trim_cow() argument 287 !isnullstartblock(imap->br_startblock)) { in xfs_bmap_trim_cow() 293 return xfs_reflink_trim_around_shared(ip, imap, shared); in xfs_bmap_trim_cow() 363 struct xfs_bmbt_irec *imap, in xfs_find_trim_cow_extent() argument 368 xfs_fileoff_t offset_fsb = imap->br_startoff; in xfs_find_trim_cow_extent() 369 xfs_filblks_t count_fsb = imap->br_blockcount; in xfs_find_trim_cow_extent() 381 xfs_trim_extent(imap, imap->br_startoff, in xfs_find_trim_cow_extent() 382 cmap->br_startoff - imap->br_startoff); in xfs_find_trim_cow_extent() 383 return xfs_bmap_trim_cow(ip, imap, shared); in xfs_find_trim_cow_extent() 388 xfs_trim_extent(imap, cmap->br_startoff, cmap->br_blockcount); in xfs_find_trim_cow_extent() [all …]
|
H A D | xfs_reflink.h | 30 int xfs_bmap_trim_cow(struct xfs_inode *ip, struct xfs_bmbt_irec *imap, 33 int xfs_reflink_allocate_cow(struct xfs_inode *ip, struct xfs_bmbt_irec *imap,
|
/linux/drivers/of/ |
H A D | irq.c | 103 const __be32 *of_irq_parse_imap_parent(const __be32 *imap, int len, struct of_phandle_args *out_irq) in of_irq_parse_imap_parent() argument 112 np = of_find_node_by_phandle(be32_to_cpup(imap)); in of_irq_parse_imap_parent() 113 imap++; in of_irq_parse_imap_parent() 145 imap += addrsize + intsize; in of_irq_parse_imap_parent() 149 out_irq->args[i] = be32_to_cpup(imap - intsize + i); in of_irq_parse_imap_parent() 152 return imap; in of_irq_parse_imap_parent() 236 const __be32 *imap, *oldimap, *imask; in of_irq_parse_raw() local 247 imap = of_get_property(ipar, "interrupt-map", &imaplen); in of_irq_parse_raw() 249 (!imap || of_device_compatible_match(ipar, of_irq_imap_abusers))) { in of_irq_parse_raw() 264 if (imap == NULL) { in of_irq_parse_raw() [all …]
|
H A D | property.c | 1409 const __be32 *imap, *imap_end; in parse_interrupt_map() local 1424 imap = of_get_property(np, "interrupt-map", &imaplen); in parse_interrupt_map() 1425 if (!imap) in parse_interrupt_map() 1427 imaplen /= sizeof(*imap); in parse_interrupt_map() 1429 imap_end = imap + imaplen; in parse_interrupt_map() 1431 for (int i = 0; imap + addrcells + intcells + 1 < imap_end; i++) { in parse_interrupt_map() 1432 imap += addrcells + intcells; in parse_interrupt_map() 1434 imap = of_irq_parse_imap_parent(imap, imap_end - imap, &sup_args); in parse_interrupt_map() 1435 if (!imap) in parse_interrupt_map()
|
/linux/drivers/irqchip/ |
H A D | irq-renesas-rza1.c | 148 const __be32 *imap; in rza1_irqc_parse_map() local 151 imap = of_get_property(dev->of_node, "interrupt-map", &imaplen); in rza1_irqc_parse_map() 152 if (!imap) in rza1_irqc_parse_map() 160 if (be32_to_cpup(imap) != i) in rza1_irqc_parse_map() 163 ipar = of_find_node_by_phandle(be32_to_cpup(imap + 2)); in rza1_irqc_parse_map() 169 imap += 3; in rza1_irqc_parse_map() 182 priv->map[i].args[j] = be32_to_cpup(imap++); in rza1_irqc_parse_map()
|
/linux/arch/powerpc/platforms/cell/ |
H A D | spider-pic.c | 214 const u32 *imap, *tmp; in spider_find_cascade_and_node() local 233 imap = of_get_property(of_node, "interrupt-map", &imaplen); in spider_find_cascade_and_node() 234 if (imap == NULL || imaplen < (intsize + 1)) in spider_find_cascade_and_node() 236 iic = of_find_node_by_phandle(imap[intsize]); in spider_find_cascade_and_node() 239 imap += intsize + 1; in spider_find_cascade_and_node() 247 unit = imap[intsize - 1]; in spider_find_cascade_and_node()
|
/linux/drivers/misc/sgi-gru/ |
H A D | grufault.c | 142 struct gru_tlb_fault_map *imap, in get_clear_fault_map() argument 154 imap->fault_bits[i] = k; in get_clear_fault_map() 522 struct gru_tlb_fault_map imap, dmap; in gru_intr() local 536 get_clear_fault_map(gru, &imap, &dmap); in gru_intr() 540 imap.fault_bits[0], imap.fault_bits[1], in gru_intr() 552 for_each_cbr_in_tfm(cbrnum, imap.fault_bits) { in gru_intr()
|
/linux/fs/xfs/libxfs/ |
H A D | xfs_rmap.h | 183 int whichfork, struct xfs_bmbt_irec *imap); 185 int whichfork, struct xfs_bmbt_irec *imap); 188 struct xfs_bmbt_irec *imap);
|
H A D | xfs_ialloc.c | 1069 struct xfs_imap imap; in xfs_dialloc_check_ino() local 1073 error = xfs_imap(pag, tp, ino, &imap, 0); in xfs_dialloc_check_ino() 1077 error = xfs_imap_to_bp(pag_mount(pag), tp, &imap, &bp); in xfs_dialloc_check_ino() 2459 struct xfs_imap *imap, /* location map structure */ in xfs_imap() argument 2529 imap->im_blkno = xfs_agbno_to_daddr(pag, agbno); in xfs_imap() 2530 imap->im_len = XFS_FSB_TO_BB(mp, 1); in xfs_imap() 2531 imap->im_boffset = (unsigned short)(offset << in xfs_imap() 2559 imap->im_blkno = xfs_agbno_to_daddr(pag, cluster_agbno); in xfs_imap() 2560 imap->im_len = XFS_FSB_TO_BB(mp, M_IGEO(mp)->blocks_per_cluster); in xfs_imap() 2561 imap->im_boffset = (unsigned short)(offset << mp->m_sb.sb_inodelog); in xfs_imap() [all …]
|
H A D | xfs_inode_buf.c | 134 struct xfs_imap *imap, in xfs_imap_to_bp() argument 139 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, imap->im_blkno, in xfs_imap_to_bp() 140 imap->im_len, XBF_UNMAPPED, bpp, &xfs_inode_buf_ops); in xfs_imap_to_bp() 142 xfs_agno_mark_sick(mp, xfs_daddr_to_agno(mp, imap->im_blkno), in xfs_imap_to_bp()
|
H A D | xfs_ialloc.h | 56 struct xfs_imap *imap, /* location map structure */
|
H A D | xfs_attr.c | 88 struct xfs_bmbt_irec imap; in xfs_attr_is_leaf() local 96 xfs_iext_get_extent(ifp, &icur, &imap); in xfs_attr_is_leaf() 97 return imap.br_startoff == 0 && imap.br_blockcount == 1; in xfs_attr_is_leaf()
|
/linux/arch/sparc/include/asm/ |
H A D | starfire.h | 17 unsigned int starfire_translate(unsigned long imap, unsigned int upaid);
|
H A D | irq_64.h | 47 unsigned int build_irq(int inofixup, unsigned long iclr, unsigned long imap);
|