Home
last modified time | relevance | path

Searched refs:imap (Results 1 – 21 of 21) sorted by relevance

/linux/fs/jfs/
H A Djfs_imap.c51 #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 = kzalloc_obj(struct inomap); in diMount()
106 if (imap == NULL) in diMount()
[all …]
H A Dsuper.c123 struct inomap *imap = JFS_IP(sbi->ipimap)->i_imap; in jfs_statfs() local
140 maxinodes = min((s64) atomic_read(&imap->im_numinos) + in jfs_statfs()
141 ((sbi->bmap->db_nfree >> imap->im_l2nbperiext) in jfs_statfs()
144 buf->f_ffree = maxinodes - (atomic_read(&imap->im_numinos) - in jfs_statfs()
145 atomic_read(&imap->im_numfree)); in jfs_statfs()
/linux/fs/xfs/
H A Dxfs_iomap.c42 xfs_bmbt_irec_t *imap) in xfs_alert_fsblock_zero() argument
49 (unsigned long long)imap->br_startblock, in xfs_alert_fsblock_zero()
50 (unsigned long long)imap->br_startoff, in xfs_alert_fsblock_zero()
51 (unsigned long long)imap->br_blockcount, in xfs_alert_fsblock_zero()
52 imap->br_state); in xfs_alert_fsblock_zero()
103 struct xfs_bmbt_irec *imap, in xfs_bmbt_to_iomap() argument
111 if (unlikely(!xfs_valid_startblock(ip, imap->br_startblock))) { in xfs_bmbt_to_iomap()
113 return xfs_alert_fsblock_zero(ip, imap); in xfs_bmbt_to_iomap()
116 if (imap->br_startblock == HOLESTARTBLOCK) { in xfs_bmbt_to_iomap()
119 } else if (imap->br_startblock == DELAYSTARTBLOCK || in xfs_bmbt_to_iomap()
[all …]
H A Dxfs_iomap.h17 struct xfs_bmbt_irec *imap, u64 *sequence);
24 struct xfs_bmbt_irec *imap, unsigned int mapping_flags,
H A Dxfs_reflink.h30 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/arch/sparc/kernel/
H A Dprom_irqtrans.c49 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 Dstarfire.c77 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 Dirq_64.c208 unsigned long imap; member
313 static unsigned int sun4u_compute_tid(unsigned long imap, unsigned long cpuid) in sun4u_compute_tid() argument
318 tid = starfire_translate(imap, cpuid); in sun4u_compute_tid()
373 unsigned long cpuid, imap, val; in sun4u_irq_enable() local
378 imap = handler_data->imap; in sun4u_irq_enable()
380 tid = sun4u_compute_tid(imap, cpuid); in sun4u_irq_enable()
382 val = upa_readq(imap); in sun4u_irq_enable()
386 upa_writeq(val, imap); in sun4u_irq_enable()
398 unsigned long cpuid, imap, val; in sun4u_set_affinity() local
402 imap = handler_data->imap; in sun4u_set_affinity()
[all …]
H A Dof_device_64.c422 const u32 *imap, int imlen, const u32 *imask, in apply_interrupt_map() argument
445 if ((reg[j] & imask[j]) != imap[j]) in apply_interrupt_map()
448 if (imap[na] == irq) { in apply_interrupt_map()
449 handle = imap[na + 1]; in apply_interrupt_map()
450 irq = imap[na + 2]; in apply_interrupt_map()
455 imap += (na + 3); in apply_interrupt_map()
568 const void *imap, *imsk; in build_one_device_irq() local
571 imap = of_get_property(pp, "interrupt-map", &imlen); in build_one_device_irq()
573 if (imap && imsk) { in build_one_device_irq()
578 imap, imlen, imsk, in build_one_device_irq()
H A Dsbus.c205 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/drivers/of/
H A Dirq.c108 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
117 np = of_find_node_by_phandle(be32_to_cpup(imap)); in of_irq_parse_imap_parent()
118 imap++; in of_irq_parse_imap_parent()
150 imap += addrsize + intsize; in of_irq_parse_imap_parent()
154 out_irq->args[i] = be32_to_cpup(imap - intsize + i); in of_irq_parse_imap_parent()
157 return imap; in of_irq_parse_imap_parent()
187 parser->imap = of_get_property(node, "interrupt-map", &imaplen); in of_imap_parser_init()
188 if (!parser->imap) in of_imap_parser_init()
191 imaplen /= sizeof(*parser->imap); in of_imap_parser_init()
192 parser->imap_end = parser->imap + imaplen; in of_imap_parser_init()
[all …]
H A Dof_private.h168 const __be32 *of_irq_parse_imap_parent(const __be32 *imap, int len,
/linux/drivers/misc/sgi-gru/
H A Dgrufault.c142 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 Dxfs_rmap.h183 int whichfork, struct xfs_bmbt_irec *imap);
185 int whichfork, struct xfs_bmbt_irec *imap);
188 struct xfs_bmbt_irec *imap);
H A Dxfs_ialloc.c1070 struct xfs_imap imap; in xfs_dialloc_check_ino() local
1074 error = xfs_imap(pag, tp, ino, &imap, 0); in xfs_dialloc_check_ino()
1078 error = xfs_imap_to_bp(pag_mount(pag), tp, &imap, &bp); in xfs_dialloc_check_ino()
2460 struct xfs_imap *imap, /* location map structure */ in xfs_imap() argument
2530 imap->im_blkno = xfs_agbno_to_daddr(pag, agbno); in xfs_imap()
2531 imap->im_len = XFS_FSB_TO_BB(mp, 1); in xfs_imap()
2532 imap->im_boffset = (unsigned short)(offset << in xfs_imap()
2560 imap->im_blkno = xfs_agbno_to_daddr(pag, cluster_agbno); in xfs_imap()
2561 imap->im_len = XFS_FSB_TO_BB(mp, M_IGEO(mp)->blocks_per_cluster); in xfs_imap()
2562 imap->im_boffset = (unsigned short)(offset << mp->m_sb.sb_inodelog); in xfs_imap()
[all …]
H A Dxfs_ialloc.h56 struct xfs_imap *imap, /* location map structure */
/linux/fs/xfs/scrub/
H A Dialloc_repair.c290 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 Dinode_repair.c105 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()
1563 ri->imap.im_blkno, ri->imap.im_len, 0, &bp, NULL); in xrep_dinode_core()
1572 dip = xfs_buf_offset(bp, ri->imap.im_boffset); in xrep_dinode_core()
1588 xfs_trans_log_buf(sc->tp, bp, ri->imap.im_boffset, in xrep_dinode_core()
1589 ri->imap.im_boffset + sc->mp->m_sb.sb_inodesize - 1); in xrep_dinode_core()
H A Drepair.h101 int xrep_setup_inode(struct xfs_scrub *sc, const struct xfs_imap *imap);
242 #define xrep_setup_inode(sc, imap) ((void)0) argument
/linux/arch/sparc/include/asm/
H A Dirq_64.h47 unsigned int build_irq(int inofixup, unsigned long iclr, unsigned long imap);
/linux/sound/usb/
H A Dmixer.c1664 const struct usbmix_name_map *imap, in __build_feature_ctl() argument
1683 map = find_map(imap, unitid, control); in __build_feature_ctl()
1886 const struct usbmix_name_map *imap, in build_connector_control() argument
1893 map = find_map(imap, term->id, 0); in build_connector_control()