/linux-4.1.27/fs/jfs/ |
D | jfs_imap.c | 64 #define IAGFREE_LOCK_INIT(imap) mutex_init(&imap->im_freelock) argument 65 #define IAGFREE_LOCK(imap) mutex_lock(&imap->im_freelock) argument 66 #define IAGFREE_UNLOCK(imap) mutex_unlock(&imap->im_freelock) argument 69 #define AG_LOCK_INIT(imap,index) mutex_init(&(imap->im_aglock[index])) argument 70 #define AG_LOCK(imap,agno) mutex_lock(&imap->im_aglock[agno]) argument 71 #define AG_UNLOCK(imap,agno) mutex_unlock(&imap->im_aglock[agno]) argument 86 static int diIAGRead(struct inomap * imap, int, struct metapage **); 109 struct inomap *imap; in diMount() local 118 imap = kmalloc(sizeof(struct inomap), GFP_KERNEL); in diMount() 119 if (imap == NULL) { in diMount() [all …]
|
D | super.c | 153 struct inomap *imap = JFS_IP(sbi->ipimap)->i_imap; in jfs_statfs() local 170 maxinodes = min((s64) atomic_read(&imap->im_numinos) + in jfs_statfs() 171 ((sbi->bmap->db_nfree >> imap->im_l2nbperiext) in jfs_statfs() 174 buf->f_ffree = maxinodes - (atomic_read(&imap->im_numinos) - in jfs_statfs() 175 atomic_read(&imap->im_numfree)); in jfs_statfs()
|
/linux-4.1.27/fs/xfs/ |
D | xfs_iomap.c | 98 xfs_bmbt_irec_t *imap) in xfs_alert_fsblock_zero() argument 105 (unsigned long long)imap->br_startblock, in xfs_alert_fsblock_zero() 106 (unsigned long long)imap->br_startoff, in xfs_alert_fsblock_zero() 107 (unsigned long long)imap->br_blockcount, in xfs_alert_fsblock_zero() 108 imap->br_state); in xfs_alert_fsblock_zero() 117 xfs_bmbt_irec_t *imap, in xfs_iomap_write_direct() argument 149 if (nmaps && (imap->br_startblock == HOLESTARTBLOCK)) in xfs_iomap_write_direct() 151 imap->br_blockcount + in xfs_iomap_write_direct() 152 imap->br_startoff); in xfs_iomap_write_direct() 206 imap, &nimaps, &free_list); in xfs_iomap_write_direct() [all …]
|
D | xfs_pnfs.c | 86 struct xfs_bmbt_irec *imap) in xfs_bmbt_to_iomap() argument 90 if (imap->br_startblock == HOLESTARTBLOCK) { in xfs_bmbt_to_iomap() 93 } else if (imap->br_startblock == DELAYSTARTBLOCK) { in xfs_bmbt_to_iomap() 98 XFS_FSB_TO_DADDR(ip->i_mount, imap->br_startblock); in xfs_bmbt_to_iomap() 99 if (imap->br_state == XFS_EXT_UNWRITTEN) in xfs_bmbt_to_iomap() 104 iomap->offset = XFS_FSB_TO_B(mp, imap->br_startoff); in xfs_bmbt_to_iomap() 105 iomap->length = XFS_FSB_TO_B(mp, imap->br_blockcount); in xfs_bmbt_to_iomap() 122 struct xfs_bmbt_irec imap; in xfs_fs_map_blocks() local 172 &imap, &nimaps, bmapi_flags); in xfs_fs_map_blocks() 181 ASSERT(imap.br_startblock != DELAYSTARTBLOCK); in xfs_fs_map_blocks() [all …]
|
D | xfs_aops.c | 278 struct xfs_bmbt_irec *imap, in xfs_map_blocks() argument 311 imap, &nimaps, bmapi_flags); in xfs_map_blocks() 318 (!nimaps || isnullstartblock(imap->br_startblock))) { in xfs_map_blocks() 319 error = xfs_iomap_write_allocate(ip, offset, imap); in xfs_map_blocks() 321 trace_xfs_map_blocks_alloc(ip, offset, count, type, imap); in xfs_map_blocks() 328 ASSERT(imap->br_startblock != HOLESTARTBLOCK); in xfs_map_blocks() 329 ASSERT(imap->br_startblock != DELAYSTARTBLOCK); in xfs_map_blocks() 333 trace_xfs_map_blocks_found(ip, offset, count, type, imap); in xfs_map_blocks() 340 struct xfs_bmbt_irec *imap, in xfs_imap_valid() argument 345 return offset >= imap->br_startoff && in xfs_imap_valid() [all …]
|
D | xfs_bmap_util.c | 738 xfs_bmbt_irec_t imap; in xfs_bmap_punch_delalloc_range() local 749 error = xfs_bmapi_read(ip, start_fsb, 1, &imap, &nimaps, in xfs_bmap_punch_delalloc_range() 765 if (imap.br_startblock != DELAYSTARTBLOCK) { in xfs_bmap_punch_delalloc_range() 769 WARN_ON(imap.br_blockcount == 0); in xfs_bmap_punch_delalloc_range() 845 xfs_bmbt_irec_t imap; in xfs_free_eofblocks() local 859 error = xfs_bmapi_read(ip, end_fsb, map_len, &imap, &nimaps, 0); in xfs_free_eofblocks() 863 (imap.br_startblock != HOLESTARTBLOCK || in xfs_free_eofblocks() 1102 xfs_bmbt_irec_t imap; in xfs_zero_remaining_bytes() local 1129 error = xfs_bmapi_read(ip, offset_fsb, 1, &imap, &nimap, 0); in xfs_zero_remaining_bytes() 1134 ASSERT(imap.br_blockcount >= 1); in xfs_zero_remaining_bytes() [all …]
|
D | xfs_file.c | 408 struct xfs_bmbt_irec imap; in xfs_zero_last_block() local 411 error = xfs_bmapi_read(ip, last_fsb, 1, &imap, &nimaps, 0); in xfs_zero_last_block() 422 if (imap.br_startblock == HOLESTARTBLOCK) in xfs_zero_last_block() 459 struct xfs_bmbt_irec imap; in xfs_zero_eof() local 503 &imap, &nimaps, 0); in xfs_zero_eof() 510 if (imap.br_state == XFS_EXT_UNWRITTEN || in xfs_zero_eof() 511 imap.br_startblock == HOLESTARTBLOCK) { in xfs_zero_eof() 512 start_zero_fsb = imap.br_startoff + imap.br_blockcount; in xfs_zero_eof() 521 zero_len = XFS_FSB_TO_B(mp, imap.br_blockcount); in xfs_zero_eof() 531 start_zero_fsb = imap.br_startoff + imap.br_blockcount; in xfs_zero_eof()
|
D | xfs_inode.c | 2153 struct xfs_imap imap; in xfs_iunlink_remove() local 2158 imap.im_blkno = 0; in xfs_iunlink_remove() 2161 error = xfs_imap(mp, tp, next_ino, &imap, 0); in xfs_iunlink_remove() 2169 error = xfs_imap_to_bp(mp, tp, &imap, &last_dip, in xfs_iunlink_remove() 2178 last_offset = imap.im_boffset; in xfs_iunlink_remove()
|
/linux-4.1.27/arch/sparc/kernel/ |
D | prom_irqtrans.c | 47 unsigned long imap, iclr; in psycho_irq_build() local 61 imap = controller_regs + imap_off; in psycho_irq_build() 69 return build_irq(inofixup, iclr, imap); in psycho_irq_build() 227 unsigned long imap, iclr; in sabre_irq_build() local 242 imap = controller_regs + imap_off; in sabre_irq_build() 250 irq = build_irq(inofixup, iclr, imap); in sabre_irq_build() 383 unsigned long imap, iclr; in schizo_irq_build() local 391 imap = schizo_ino_to_imap(pbm_regs, ino); in schizo_irq_build() 412 irq = build_irq(ign_fixup, iclr, imap); in schizo_irq_build() 515 unsigned long imap, iclr; in fire_irq_build() local [all …]
|
D | starfire.c | 76 unsigned int starfire_translate(unsigned long imap, in starfire_translate() argument 83 bus_hwmid = (((unsigned long)imap) >> 33) & 0x7f; in starfire_translate() 89 ((unsigned long)imap)); in starfire_translate() 93 if (p->imap_slots[i] == imap || in starfire_translate() 101 p->imap_slots[i] = imap; in starfire_translate()
|
D | irq_64.c | 208 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() 376 unsigned long cpuid, imap, val; in sun4u_irq_enable() local 380 imap = handler_data->imap; in sun4u_irq_enable() 382 tid = sun4u_compute_tid(imap, cpuid); in sun4u_irq_enable() 384 val = upa_readq(imap); in sun4u_irq_enable() 388 upa_writeq(val, imap); in sun4u_irq_enable() 399 unsigned long cpuid, imap, val; in sun4u_set_affinity() local 403 imap = handler_data->imap; in sun4u_set_affinity() [all …]
|
D | of_device_64.c | 420 const u32 *imap, int imlen, const u32 *imask, in apply_interrupt_map() argument 443 if ((reg[j] & imask[j]) != imap[j]) in apply_interrupt_map() 446 if (imap[na] == irq) { in apply_interrupt_map() 447 handle = imap[na + 1]; in apply_interrupt_map() 448 irq = imap[na + 2]; in apply_interrupt_map() 453 imap += (na + 3); in apply_interrupt_map() 566 const void *imap, *imsk; in build_one_device_irq() local 569 imap = of_get_property(pp, "interrupt-map", &imlen); in build_one_device_irq() 571 if (imap && imsk) { in build_one_device_irq() 576 imap, imlen, imsk, in build_one_device_irq()
|
D | sbus.c | 202 static unsigned long sysio_imap_to_iclr(unsigned long imap) in sysio_imap_to_iclr() argument 205 return imap + diff; in sysio_imap_to_iclr() 212 unsigned long imap, iclr; in sbus_build_irq() local 215 imap = sysio_irq_offsets[ino]; in sbus_build_irq() 216 if (imap == ((unsigned long)-1)) { in sbus_build_irq() 221 imap += reg_base; in sbus_build_irq() 228 iclr = sysio_imap_to_iclr(imap); in sbus_build_irq() 252 return build_irq(sbus_level, iclr, imap); in sbus_build_irq()
|
/linux-4.1.27/drivers/of/ |
D | irq.c | 100 const __be32 *tmp, *imap, *imask, dummy_imask[] = { [0 ... MAX_PHANDLE_ARGS] = ~0 }; in of_irq_parse_raw() local 181 imap = of_get_property(ipar, "interrupt-map", &imaplen); in of_irq_parse_raw() 183 if (imap == NULL) { in of_irq_parse_raw() 201 match &= !((match_array[i] ^ *imap++) & imask[i]); in of_irq_parse_raw() 209 newpar = of_find_node_by_phandle(be32_to_cpup(imap)); in of_irq_parse_raw() 210 imap++; in of_irq_parse_raw() 243 imap += newaddrsize + newintsize; in of_irq_parse_raw() 257 match_array = imap - newaddrsize - newintsize; in of_irq_parse_raw() 259 out_irq->args[i] = be32_to_cpup(imap - newintsize + i); in of_irq_parse_raw()
|
/linux-4.1.27/arch/powerpc/platforms/cell/ |
D | spider-pic.c | 231 const u32 *imap, *tmp; in spider_find_cascade_and_node() local 247 imap = of_get_property(pic->host->of_node, "interrupt-map", &imaplen); in spider_find_cascade_and_node() 248 if (imap == NULL || imaplen < (intsize + 1)) in spider_find_cascade_and_node() 250 iic = of_find_node_by_phandle(imap[intsize]); in spider_find_cascade_and_node() 253 imap += intsize + 1; in spider_find_cascade_and_node() 261 unit = imap[intsize - 1]; in spider_find_cascade_and_node()
|
/linux-4.1.27/drivers/misc/sgi-gru/ |
D | grufault.c | 155 struct gru_tlb_fault_map *imap, in get_clear_fault_map() argument 167 imap->fault_bits[i] = k; in get_clear_fault_map() 531 struct gru_tlb_fault_map imap, dmap; in gru_intr() local 545 get_clear_fault_map(gru, &imap, &dmap); in gru_intr() 549 imap.fault_bits[0], imap.fault_bits[1], in gru_intr() 561 for_each_cbr_in_tfm(cbrnum, imap.fault_bits) { in gru_intr()
|
/linux-4.1.27/arch/sparc/include/asm/ |
D | starfire.h | 16 unsigned int starfire_translate(unsigned long imap, unsigned int upaid);
|
D | irq_64.h | 46 unsigned int build_irq(int inofixup, unsigned long iclr, unsigned long imap);
|
/linux-4.1.27/fs/xfs/libxfs/ |
D | xfs_inode_buf.c | 164 struct xfs_imap *imap, in xfs_imap_to_bp() argument 174 error = xfs_trans_read_buf(mp, tp, mp->m_ddev_targp, imap->im_blkno, in xfs_imap_to_bp() 175 (int)imap->im_len, buf_flags, &bp, in xfs_imap_to_bp() 193 *dipp = (struct xfs_dinode *)xfs_buf_offset(bp, imap->im_boffset); in xfs_imap_to_bp()
|
D | xfs_ialloc.c | 1814 struct xfs_imap *imap, /* location map structure */ in xfs_imap() argument 1891 imap->im_blkno = XFS_AGB_TO_DADDR(mp, agno, agbno); in xfs_imap() 1892 imap->im_len = XFS_FSB_TO_BB(mp, 1); in xfs_imap() 1893 imap->im_boffset = (ushort)(offset << mp->m_sb.sb_inodelog); in xfs_imap() 1919 imap->im_blkno = XFS_AGB_TO_DADDR(mp, agno, cluster_agbno); in xfs_imap() 1920 imap->im_len = XFS_FSB_TO_BB(mp, blks_per_cluster); in xfs_imap() 1921 imap->im_boffset = (ushort)(offset << mp->m_sb.sb_inodelog); in xfs_imap() 1929 if ((imap->im_blkno + imap->im_len) > in xfs_imap() 1933 __func__, (unsigned long long) imap->im_blkno, in xfs_imap() 1934 (unsigned long long) imap->im_len, in xfs_imap()
|
D | xfs_ialloc.h | 104 struct xfs_imap *imap, /* location map structure */
|
/linux-4.1.27/Documentation/devicetree/bindings/pci/ |
D | pci.txt | 9 http://www.openfirmware.org/1275/practice/imap/imap0_9d.pdf
|