bmp                20 arch/powerpc/include/asm/msi_bitmap.h int msi_bitmap_alloc_hwirqs(struct msi_bitmap *bmp, int num);
bmp                21 arch/powerpc/include/asm/msi_bitmap.h void msi_bitmap_free_hwirqs(struct msi_bitmap *bmp, unsigned int offset,
bmp                23 arch/powerpc/include/asm/msi_bitmap.h void msi_bitmap_reserve_hwirq(struct msi_bitmap *bmp, unsigned int hwirq);
bmp                25 arch/powerpc/include/asm/msi_bitmap.h int msi_bitmap_reserve_dt_hwirqs(struct msi_bitmap *bmp);
bmp                27 arch/powerpc/include/asm/msi_bitmap.h int msi_bitmap_alloc(struct msi_bitmap *bmp, unsigned int irq_count,
bmp                29 arch/powerpc/include/asm/msi_bitmap.h void msi_bitmap_free(struct msi_bitmap *bmp);
bmp                27 arch/powerpc/platforms/4xx/hsta_msi.c 	struct msi_bitmap bmp;
bmp                51 arch/powerpc/platforms/4xx/hsta_msi.c 		irq = msi_bitmap_alloc_hwirqs(&ppc4xx_hsta_msi.bmp, 1);
bmp                82 arch/powerpc/platforms/4xx/hsta_msi.c 			msi_bitmap_free_hwirqs(&ppc4xx_hsta_msi.bmp, irq, 1);
bmp               117 arch/powerpc/platforms/4xx/hsta_msi.c 		msi_bitmap_free_hwirqs(&ppc4xx_hsta_msi.bmp, irq, 1);
bmp               151 arch/powerpc/platforms/4xx/hsta_msi.c 	ret = msi_bitmap_alloc(&ppc4xx_hsta_msi.bmp, irq_count, dev->of_node);
bmp               183 arch/powerpc/platforms/4xx/hsta_msi.c 	msi_bitmap_free(&ppc4xx_hsta_msi.bmp);
bmp                77 arch/powerpc/platforms/ps3/interrupt.c 	struct ps3_bmp bmp __attribute__ ((aligned (PS3_BMP_MINALIGN)));
bmp               103 arch/powerpc/platforms/ps3/interrupt.c 	clear_bit(63 - d->irq, &pd->bmp.mask);
bmp               124 arch/powerpc/platforms/ps3/interrupt.c 	set_bit(63 - d->irq, &pd->bmp.mask);
bmp               639 arch/powerpc/platforms/ps3/interrupt.c 	_dump_64_bmp("stat", &pd->bmp.status, pd->thread_id, func, line);
bmp               640 arch/powerpc/platforms/ps3/interrupt.c 	_dump_64_bmp("mask", (u64*)&pd->bmp.mask, pd->thread_id, func, line);
bmp               651 arch/powerpc/platforms/ps3/interrupt.c 	_dump_64_bmp("mask", (u64*)&pd->bmp.mask, pd->thread_id, func, line);
bmp               704 arch/powerpc/platforms/ps3/interrupt.c 	u64 x = (pd->bmp.status & pd->bmp.mask);
bmp               757 arch/powerpc/platforms/ps3/interrupt.c 			ps3_mm_phys_to_lpar(__pa(&pd->bmp)));
bmp               760 arch/powerpc/platforms/ps3/interrupt.c 			pd->thread_id, ps3_mm_phys_to_lpar(__pa(&pd->bmp)));
bmp                14 arch/powerpc/sysdev/msi_bitmap.c int msi_bitmap_alloc_hwirqs(struct msi_bitmap *bmp, int num)
bmp                19 arch/powerpc/sysdev/msi_bitmap.c 	spin_lock_irqsave(&bmp->lock, flags);
bmp                21 arch/powerpc/sysdev/msi_bitmap.c 	offset = bitmap_find_next_zero_area(bmp->bitmap, bmp->irq_count, 0,
bmp                23 arch/powerpc/sysdev/msi_bitmap.c 	if (offset > bmp->irq_count)
bmp                26 arch/powerpc/sysdev/msi_bitmap.c 	bitmap_set(bmp->bitmap, offset, num);
bmp                27 arch/powerpc/sysdev/msi_bitmap.c 	spin_unlock_irqrestore(&bmp->lock, flags);
bmp                33 arch/powerpc/sysdev/msi_bitmap.c 	spin_unlock_irqrestore(&bmp->lock, flags);
bmp                38 arch/powerpc/sysdev/msi_bitmap.c void msi_bitmap_free_hwirqs(struct msi_bitmap *bmp, unsigned int offset,
bmp                46 arch/powerpc/sysdev/msi_bitmap.c 	spin_lock_irqsave(&bmp->lock, flags);
bmp                47 arch/powerpc/sysdev/msi_bitmap.c 	bitmap_clear(bmp->bitmap, offset, num);
bmp                48 arch/powerpc/sysdev/msi_bitmap.c 	spin_unlock_irqrestore(&bmp->lock, flags);
bmp                52 arch/powerpc/sysdev/msi_bitmap.c void msi_bitmap_reserve_hwirq(struct msi_bitmap *bmp, unsigned int hwirq)
bmp                58 arch/powerpc/sysdev/msi_bitmap.c 	spin_lock_irqsave(&bmp->lock, flags);
bmp                59 arch/powerpc/sysdev/msi_bitmap.c 	bitmap_allocate_region(bmp->bitmap, hwirq, 0);
bmp                60 arch/powerpc/sysdev/msi_bitmap.c 	spin_unlock_irqrestore(&bmp->lock, flags);
bmp                74 arch/powerpc/sysdev/msi_bitmap.c int msi_bitmap_reserve_dt_hwirqs(struct msi_bitmap *bmp)
bmp                79 arch/powerpc/sysdev/msi_bitmap.c 	if (!bmp->of_node)
bmp                82 arch/powerpc/sysdev/msi_bitmap.c 	p = of_get_property(bmp->of_node, "msi-available-ranges", &len);
bmp                85 arch/powerpc/sysdev/msi_bitmap.c 			 "found on %pOF\n", bmp->of_node);
bmp                91 arch/powerpc/sysdev/msi_bitmap.c 		       " property on %pOF\n", bmp->of_node);
bmp                95 arch/powerpc/sysdev/msi_bitmap.c 	bitmap_allocate_region(bmp->bitmap, 0, get_count_order(bmp->irq_count));
bmp                97 arch/powerpc/sysdev/msi_bitmap.c 	spin_lock(&bmp->lock);
bmp               103 arch/powerpc/sysdev/msi_bitmap.c 			bitmap_release_region(bmp->bitmap, *p + j, 0);
bmp               106 arch/powerpc/sysdev/msi_bitmap.c 	spin_unlock(&bmp->lock);
bmp               111 arch/powerpc/sysdev/msi_bitmap.c int __ref msi_bitmap_alloc(struct msi_bitmap *bmp, unsigned int irq_count,
bmp               122 arch/powerpc/sysdev/msi_bitmap.c 	bmp->bitmap_from_slab = slab_is_available();
bmp               123 arch/powerpc/sysdev/msi_bitmap.c 	if (bmp->bitmap_from_slab)
bmp               124 arch/powerpc/sysdev/msi_bitmap.c 		bmp->bitmap = kzalloc(size, GFP_KERNEL);
bmp               126 arch/powerpc/sysdev/msi_bitmap.c 		bmp->bitmap = memblock_alloc(size, SMP_CACHE_BYTES);
bmp               127 arch/powerpc/sysdev/msi_bitmap.c 		if (!bmp->bitmap)
bmp               131 arch/powerpc/sysdev/msi_bitmap.c 		kmemleak_not_leak(bmp->bitmap);
bmp               134 arch/powerpc/sysdev/msi_bitmap.c 	if (!bmp->bitmap) {
bmp               140 arch/powerpc/sysdev/msi_bitmap.c 	spin_lock_init(&bmp->lock);
bmp               141 arch/powerpc/sysdev/msi_bitmap.c 	bmp->of_node = of_node_get(of_node);
bmp               142 arch/powerpc/sysdev/msi_bitmap.c 	bmp->irq_count = irq_count;
bmp               147 arch/powerpc/sysdev/msi_bitmap.c void msi_bitmap_free(struct msi_bitmap *bmp)
bmp               149 arch/powerpc/sysdev/msi_bitmap.c 	if (bmp->bitmap_from_slab)
bmp               150 arch/powerpc/sysdev/msi_bitmap.c 		kfree(bmp->bitmap);
bmp               151 arch/powerpc/sysdev/msi_bitmap.c 	of_node_put(bmp->of_node);
bmp               152 arch/powerpc/sysdev/msi_bitmap.c 	bmp->bitmap = NULL;
bmp               159 arch/powerpc/sysdev/msi_bitmap.c 	struct msi_bitmap bmp;
bmp               163 arch/powerpc/sysdev/msi_bitmap.c 	WARN_ON(msi_bitmap_alloc(&bmp, 0, NULL) == 0);
bmp               166 arch/powerpc/sysdev/msi_bitmap.c 	WARN_ON(msi_bitmap_alloc(&bmp, size, NULL));
bmp               169 arch/powerpc/sysdev/msi_bitmap.c 	WARN_ON(bitmap_find_free_region(bmp.bitmap, size, get_count_order(size)));
bmp               170 arch/powerpc/sysdev/msi_bitmap.c 	bitmap_release_region(bmp.bitmap, 0, get_count_order(size));
bmp               173 arch/powerpc/sysdev/msi_bitmap.c 	WARN_ON(msi_bitmap_reserve_dt_hwirqs(&bmp) <= 0);
bmp               176 arch/powerpc/sysdev/msi_bitmap.c 	WARN_ON(bitmap_find_free_region(bmp.bitmap, size, get_count_order(size)));
bmp               177 arch/powerpc/sysdev/msi_bitmap.c 	bitmap_release_region(bmp.bitmap, 0, get_count_order(size));
bmp               181 arch/powerpc/sysdev/msi_bitmap.c 		WARN_ON(msi_bitmap_alloc_hwirqs(&bmp, 1) < 0);
bmp               183 arch/powerpc/sysdev/msi_bitmap.c 	WARN_ON(msi_bitmap_alloc_hwirqs(&bmp, 1) >= 0);
bmp               186 arch/powerpc/sysdev/msi_bitmap.c 	WARN_ON(bitmap_find_free_region(bmp.bitmap, size, 0) >= 0);
bmp               189 arch/powerpc/sysdev/msi_bitmap.c 	msi_bitmap_free_hwirqs(&bmp, size / 2, 1);
bmp               190 arch/powerpc/sysdev/msi_bitmap.c 	WARN_ON(msi_bitmap_alloc_hwirqs(&bmp, 1) != size / 2);
bmp               193 arch/powerpc/sysdev/msi_bitmap.c 	msi_bitmap_free_hwirqs(&bmp, 3, size - 3);
bmp               196 arch/powerpc/sysdev/msi_bitmap.c 	rc = msi_bitmap_alloc_hwirqs(&bmp, 2);
bmp               198 arch/powerpc/sysdev/msi_bitmap.c 	rc = msi_bitmap_alloc_hwirqs(&bmp, 4);
bmp               200 arch/powerpc/sysdev/msi_bitmap.c 	rc = msi_bitmap_alloc_hwirqs(&bmp, 8);
bmp               202 arch/powerpc/sysdev/msi_bitmap.c 	rc = msi_bitmap_alloc_hwirqs(&bmp, 9);
bmp               204 arch/powerpc/sysdev/msi_bitmap.c 	rc = msi_bitmap_alloc_hwirqs(&bmp, 3);
bmp               206 arch/powerpc/sysdev/msi_bitmap.c 	rc = msi_bitmap_alloc_hwirqs(&bmp, 7);
bmp               208 arch/powerpc/sysdev/msi_bitmap.c 	rc = msi_bitmap_alloc_hwirqs(&bmp, 121);
bmp               211 arch/powerpc/sysdev/msi_bitmap.c 	msi_bitmap_free(&bmp);
bmp               214 arch/powerpc/sysdev/msi_bitmap.c 	WARN_ON(bmp.bitmap != NULL);
bmp               225 arch/powerpc/sysdev/msi_bitmap.c 	struct msi_bitmap bmp;
bmp               234 arch/powerpc/sysdev/msi_bitmap.c 	WARN_ON(msi_bitmap_alloc(&bmp, SIZE_EXPECTED, &of_node));
bmp               237 arch/powerpc/sysdev/msi_bitmap.c 	WARN_ON(msi_bitmap_reserve_dt_hwirqs(&bmp) <= 0);
bmp               240 arch/powerpc/sysdev/msi_bitmap.c 	WARN_ON(bitmap_find_free_region(bmp.bitmap, SIZE_EXPECTED,
bmp               242 arch/powerpc/sysdev/msi_bitmap.c 	bitmap_release_region(bmp.bitmap, 0, get_count_order(SIZE_EXPECTED));
bmp               255 arch/powerpc/sysdev/msi_bitmap.c 	WARN_ON(msi_bitmap_reserve_dt_hwirqs(&bmp));
bmp               259 arch/powerpc/sysdev/msi_bitmap.c 	WARN_ON(!bitmap_equal(expected, bmp.bitmap, SIZE_EXPECTED));
bmp               261 arch/powerpc/sysdev/msi_bitmap.c 	msi_bitmap_free(&bmp);
bmp               262 arch/powerpc/sysdev/msi_bitmap.c 	kfree(bmp.bitmap);
bmp              1085 drivers/gpu/drm/nouveau/nouveau_bios.c 	uint8_t *bmp = &bios->data[offset], bmp_version_major, bmp_version_minor;
bmp              1095 drivers/gpu/drm/nouveau/nouveau_bios.c 	bmp_version_major = bmp[5];
bmp              1096 drivers/gpu/drm/nouveau/nouveau_bios.c 	bmp_version_minor = bmp[6];
bmp              1162 drivers/gpu/drm/nouveau/nouveau_bios.c 	if (nv_cksum(bmp, 8)) {
bmp              1173 drivers/gpu/drm/nouveau/nouveau_bios.c 	bios->feature_byte = bmp[9];
bmp              1180 drivers/gpu/drm/nouveau/nouveau_bios.c 	bios->init_script_tbls_ptr = ROM16(bmp[legacy_scripts_offset]);
bmp              1181 drivers/gpu/drm/nouveau/nouveau_bios.c 	bios->extra_init_script_tbl_ptr = ROM16(bmp[legacy_scripts_offset + 2]);
bmp              1184 drivers/gpu/drm/nouveau/nouveau_bios.c 		bios->legacy.mem_init_tbl_ptr = ROM16(bmp[24]);
bmp              1185 drivers/gpu/drm/nouveau/nouveau_bios.c 		bios->legacy.sdr_seq_tbl_ptr = ROM16(bmp[26]);
bmp              1186 drivers/gpu/drm/nouveau/nouveau_bios.c 		bios->legacy.ddr_seq_tbl_ptr = ROM16(bmp[28]);
bmp              1197 drivers/gpu/drm/nouveau/nouveau_bios.c 		bios->fmaxvco = ROM32(bmp[67]);
bmp              1198 drivers/gpu/drm/nouveau/nouveau_bios.c 		bios->fminvco = ROM32(bmp[71]);
bmp              1203 drivers/gpu/drm/nouveau/nouveau_bios.c 		bios->tmds.output0_script_ptr = ROM16(bmp[89]);
bmp              1204 drivers/gpu/drm/nouveau/nouveau_bios.c 		bios->tmds.output1_script_ptr = ROM16(bmp[91]);
bmp              1210 drivers/gpu/drm/nouveau/nouveau_bios.c 		bios->legacy.lvds_single_a_script_ptr = ROM16(bmp[95]);
bmp              1213 drivers/gpu/drm/nouveau/nouveau_bios.c 		bios->fp.fptablepointer = ROM16(bmp[105]);
bmp              1214 drivers/gpu/drm/nouveau/nouveau_bios.c 		bios->fp.fpxlatetableptr = ROM16(bmp[107]);
bmp              1218 drivers/gpu/drm/nouveau/nouveau_bios.c 		bios->fp.lvdsmanufacturerpointer = ROM16(bmp[117]);
bmp              1219 drivers/gpu/drm/nouveau/nouveau_bios.c 		bios->fp.fpxlatemanufacturertableptr = ROM16(bmp[119]);
bmp              1223 drivers/gpu/drm/nouveau/nouveau_bios.c 		bios->pll_limit_tbl_ptr = ROM16(bmp[142]);
bmp              1227 drivers/gpu/drm/nouveau/nouveau_bios.c 		bios->fp.duallink_transition_clk = ROM16(bmp[156]) * 10;
bmp               164 drivers/net/ethernet/freescale/enetc/enetc_hw.h #define ENETC_PVCLCTR_OVTPIDL(bmp)	((bmp) & 0xff) /* VLAN_TYPE */
bmp               179 drivers/net/ethernet/freescale/enetc/enetc_hw.h #define ENETC_PSICFGR0_SIVC(bmp)	(((bmp) & 0xff) << 24) /* VLAN_TYPE */
bmp               104 drivers/ps3/ps3-vuart.c 	const struct ports_bmp *bmp, const char *func, int line)
bmp               106 drivers/ps3/ps3-vuart.c 	pr_debug("%s:%d: ports_bmp: %016llxh\n", func, line, bmp->status);
bmp               862 drivers/ps3/ps3-vuart.c 	struct ports_bmp *bmp;
bmp               886 drivers/ps3/ps3-vuart.c 		dump_ports_bmp(bus_priv->bmp);
bmp               888 drivers/ps3/ps3-vuart.c 		port = (BITS_PER_LONG - 1) - __ilog2(bus_priv->bmp->status);
bmp               915 drivers/ps3/ps3-vuart.c 	BUG_ON(vuart_bus_priv.bmp);
bmp               917 drivers/ps3/ps3-vuart.c 	vuart_bus_priv.bmp = kzalloc(sizeof(struct ports_bmp), GFP_KERNEL);
bmp               919 drivers/ps3/ps3-vuart.c 	if (!vuart_bus_priv.bmp) {
bmp               925 drivers/ps3/ps3-vuart.c 	result = ps3_vuart_irq_setup(PS3_BINDING_CPU_ANY, vuart_bus_priv.bmp,
bmp               951 drivers/ps3/ps3-vuart.c 	kfree(vuart_bus_priv.bmp);
bmp               952 drivers/ps3/ps3-vuart.c 	vuart_bus_priv.bmp = NULL;
bmp               975 drivers/ps3/ps3-vuart.c 	kfree(vuart_bus_priv.bmp);
bmp               976 drivers/ps3/ps3-vuart.c 	vuart_bus_priv.bmp = NULL;
bmp               307 drivers/scsi/lpfc/lpfc_bsg.c 	struct lpfc_dmabuf *bmp, *cmp, *rmp;
bmp               335 drivers/scsi/lpfc/lpfc_bsg.c 	bmp = cmdiocbq->context3;
bmp               367 drivers/scsi/lpfc/lpfc_bsg.c 	lpfc_mbuf_free(phba, bmp->virt, bmp->phys);
bmp               368 drivers/scsi/lpfc/lpfc_bsg.c 	kfree(bmp);
bmp               399 drivers/scsi/lpfc/lpfc_bsg.c 	struct lpfc_dmabuf *bmp = NULL, *cmp = NULL, *rmp = NULL;
bmp               438 drivers/scsi/lpfc/lpfc_bsg.c 	bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
bmp               439 drivers/scsi/lpfc/lpfc_bsg.c 	if (!bmp) {
bmp               443 drivers/scsi/lpfc/lpfc_bsg.c 	bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys);
bmp               444 drivers/scsi/lpfc/lpfc_bsg.c 	if (!bmp->virt) {
bmp               449 drivers/scsi/lpfc/lpfc_bsg.c 	INIT_LIST_HEAD(&bmp->list);
bmp               451 drivers/scsi/lpfc/lpfc_bsg.c 	bpl = (struct ulp_bde64 *) bmp->virt;
bmp               472 drivers/scsi/lpfc/lpfc_bsg.c 	cmd->un.genreq64.bdl.addrHigh = putPaddrHigh(bmp->phys);
bmp               473 drivers/scsi/lpfc/lpfc_bsg.c 	cmd->un.genreq64.bdl.addrLow = putPaddrLow(bmp->phys);
bmp               490 drivers/scsi/lpfc/lpfc_bsg.c 	cmdiocbq->context3 = bmp;
bmp               498 drivers/scsi/lpfc/lpfc_bsg.c 	cmdiocbq->context3 = bmp;
bmp               542 drivers/scsi/lpfc/lpfc_bsg.c 	if (bmp->virt)
bmp               543 drivers/scsi/lpfc/lpfc_bsg.c 		lpfc_mbuf_free(phba, bmp->virt, bmp->phys);
bmp               544 drivers/scsi/lpfc/lpfc_bsg.c 	kfree(bmp);
bmp              1404 drivers/scsi/lpfc/lpfc_bsg.c 	struct lpfc_dmabuf *bmp, *cmp;
bmp              1427 drivers/scsi/lpfc/lpfc_bsg.c 	bmp = cmdiocbq->context3;
bmp              1456 drivers/scsi/lpfc/lpfc_bsg.c 	lpfc_mbuf_free(phba, bmp->virt, bmp->phys);
bmp              1457 drivers/scsi/lpfc/lpfc_bsg.c 	kfree(bmp);
bmp              1482 drivers/scsi/lpfc/lpfc_bsg.c 		  struct lpfc_dmabuf *cmp, struct lpfc_dmabuf *bmp,
bmp              1511 drivers/scsi/lpfc/lpfc_bsg.c 	icmd->un.xseq64.bdl.addrHigh = putPaddrHigh(bmp->phys);
bmp              1512 drivers/scsi/lpfc/lpfc_bsg.c 	icmd->un.xseq64.bdl.addrLow = putPaddrLow(bmp->phys);
bmp              1576 drivers/scsi/lpfc/lpfc_bsg.c 	ctiocb->context3 = bmp;
bmp              1635 drivers/scsi/lpfc/lpfc_bsg.c 	struct lpfc_dmabuf *bmp = NULL, *cmp = NULL;
bmp              1650 drivers/scsi/lpfc/lpfc_bsg.c 	bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
bmp              1651 drivers/scsi/lpfc/lpfc_bsg.c 	if (!bmp) {
bmp              1656 drivers/scsi/lpfc/lpfc_bsg.c 	bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys);
bmp              1657 drivers/scsi/lpfc/lpfc_bsg.c 	if (!bmp->virt) {
bmp              1662 drivers/scsi/lpfc/lpfc_bsg.c 	INIT_LIST_HEAD(&bmp->list);
bmp              1663 drivers/scsi/lpfc/lpfc_bsg.c 	bpl = (struct ulp_bde64 *) bmp->virt;
bmp              1674 drivers/scsi/lpfc/lpfc_bsg.c 	rc = lpfc_issue_ct_rsp(phba, job, tag, cmp, bmp, bpl_entries);
bmp              1684 drivers/scsi/lpfc/lpfc_bsg.c 	if (bmp->virt)
bmp              1685 drivers/scsi/lpfc/lpfc_bsg.c 		lpfc_mbuf_free(phba, bmp->virt, bmp->phys);
bmp              1686 drivers/scsi/lpfc/lpfc_bsg.c 	kfree(bmp);
bmp              5089 drivers/scsi/lpfc/lpfc_bsg.c 	struct lpfc_dmabuf *bmp, *cmp, *rmp;
bmp              5098 drivers/scsi/lpfc/lpfc_bsg.c 	bmp = cmdiocbq->context3;
bmp              5152 drivers/scsi/lpfc/lpfc_bsg.c 	lpfc_mbuf_free(phba, bmp->virt, bmp->phys);
bmp              5153 drivers/scsi/lpfc/lpfc_bsg.c 	kfree(bmp);
bmp              5187 drivers/scsi/lpfc/lpfc_bsg.c 	struct lpfc_dmabuf *bmp = NULL, *cmp = NULL, *rmp = NULL;
bmp              5235 drivers/scsi/lpfc/lpfc_bsg.c 	bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
bmp              5236 drivers/scsi/lpfc/lpfc_bsg.c 	if (!bmp) {
bmp              5241 drivers/scsi/lpfc/lpfc_bsg.c 	bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys);
bmp              5242 drivers/scsi/lpfc/lpfc_bsg.c 	if (!bmp->virt) {
bmp              5247 drivers/scsi/lpfc/lpfc_bsg.c 	INIT_LIST_HEAD(&bmp->list);
bmp              5249 drivers/scsi/lpfc/lpfc_bsg.c 	bpl = (struct ulp_bde64 *)bmp->virt;
bmp              5277 drivers/scsi/lpfc/lpfc_bsg.c 	cmd->un.genreq64.bdl.addrHigh = putPaddrHigh(bmp->phys);
bmp              5278 drivers/scsi/lpfc/lpfc_bsg.c 	cmd->un.genreq64.bdl.addrLow = putPaddrLow(bmp->phys);
bmp              5297 drivers/scsi/lpfc/lpfc_bsg.c 	cmdiocbq->context3 = bmp;
bmp              5328 drivers/scsi/lpfc/lpfc_bsg.c 	if (bmp->virt)
bmp              5329 drivers/scsi/lpfc/lpfc_bsg.c 		lpfc_mbuf_free(phba, bmp->virt, bmp->phys);
bmp              5330 drivers/scsi/lpfc/lpfc_bsg.c 	kfree(bmp);
bmp               316 drivers/scsi/lpfc/lpfc_ct.c lpfc_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp,
bmp               336 drivers/scsi/lpfc/lpfc_ct.c 	icmd->un.genreq64.bdl.addrHigh = putPaddrHigh(bmp->phys);
bmp               337 drivers/scsi/lpfc/lpfc_ct.c 	icmd->un.genreq64.bdl.addrLow = putPaddrLow(bmp->phys);
bmp               344 drivers/scsi/lpfc/lpfc_ct.c 		geniocb->context3 = (uint8_t *) bmp;
bmp               410 drivers/scsi/lpfc/lpfc_ct.c 	    struct lpfc_dmabuf *bmp, struct lpfc_nodelist *ndlp,
bmp               416 drivers/scsi/lpfc/lpfc_ct.c 	struct ulp_bde64 *bpl = (struct ulp_bde64 *) bmp->virt;
bmp               434 drivers/scsi/lpfc/lpfc_ct.c 	status = lpfc_gen_req(vport, bmp, inmp, outmp, cmpl, ndlp, 0,
bmp              1564 drivers/scsi/lpfc/lpfc_ct.c 	struct lpfc_dmabuf *mp, *bmp;
bmp              1597 drivers/scsi/lpfc/lpfc_ct.c 	bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
bmp              1598 drivers/scsi/lpfc/lpfc_ct.c 	if (!bmp) {
bmp              1603 drivers/scsi/lpfc/lpfc_ct.c 	INIT_LIST_HEAD(&bmp->list);
bmp              1604 drivers/scsi/lpfc/lpfc_ct.c 	bmp->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &(bmp->phys));
bmp              1605 drivers/scsi/lpfc/lpfc_ct.c 	if (!bmp->virt) {
bmp              1616 drivers/scsi/lpfc/lpfc_ct.c 	bpl = (struct ulp_bde64 *) bmp->virt;
bmp              1808 drivers/scsi/lpfc/lpfc_ct.c 	if (!lpfc_ct_cmd(vport, mp, bmp, ndlp, cmpl, rsp_size, retry)) {
bmp              1823 drivers/scsi/lpfc/lpfc_ct.c 	lpfc_mbuf_free(phba, bmp->virt, bmp->phys);
bmp              1825 drivers/scsi/lpfc/lpfc_ct.c 	kfree(bmp);
bmp              3019 drivers/scsi/lpfc/lpfc_ct.c 	struct lpfc_dmabuf *mp, *bmp;
bmp              3050 drivers/scsi/lpfc/lpfc_ct.c 	bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
bmp              3051 drivers/scsi/lpfc/lpfc_ct.c 	if (!bmp)
bmp              3054 drivers/scsi/lpfc/lpfc_ct.c 	bmp->virt = lpfc_mbuf_alloc(phba, 0, &(bmp->phys));
bmp              3055 drivers/scsi/lpfc/lpfc_ct.c 	if (!bmp->virt)
bmp              3059 drivers/scsi/lpfc/lpfc_ct.c 	INIT_LIST_HEAD(&bmp->list);
bmp              3214 drivers/scsi/lpfc/lpfc_ct.c 	bpl = (struct ulp_bde64 *)bmp->virt;
bmp              3224 drivers/scsi/lpfc/lpfc_ct.c 	if (!lpfc_ct_cmd(vport, mp, bmp, ndlp, cmpl, rsp_size, 0))
bmp              3234 drivers/scsi/lpfc/lpfc_ct.c 	lpfc_mbuf_free(phba, bmp->virt, bmp->phys);
bmp              3236 drivers/scsi/lpfc/lpfc_ct.c 	kfree(bmp);
bmp               420 drivers/scsi/lpfc/lpfc_nvme.c lpfc_nvme_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp,
bmp               444 drivers/scsi/lpfc/lpfc_nvme.c 	genwqe->context3 = (uint8_t *)bmp;
bmp               459 drivers/scsi/lpfc/lpfc_nvme.c 	bpl = (struct ulp_bde64 *)bmp->virt;
bmp               526 drivers/scsi/lpfc/lpfc_nvme.c 			genwqe, pnvme_lsreq, bmp, xmit_len, first_len);
bmp               573 drivers/scsi/lpfc/lpfc_nvme.c 	struct lpfc_dmabuf *bmp;
bmp               620 drivers/scsi/lpfc/lpfc_nvme.c 	bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
bmp               621 drivers/scsi/lpfc/lpfc_nvme.c 	if (!bmp) {
bmp               628 drivers/scsi/lpfc/lpfc_nvme.c 	INIT_LIST_HEAD(&bmp->list);
bmp               629 drivers/scsi/lpfc/lpfc_nvme.c 	bmp->virt = lpfc_mbuf_alloc(vport->phba, MEM_PRI, &(bmp->phys));
bmp               630 drivers/scsi/lpfc/lpfc_nvme.c 	if (!bmp->virt) {
bmp               634 drivers/scsi/lpfc/lpfc_nvme.c 		kfree(bmp);
bmp               637 drivers/scsi/lpfc/lpfc_nvme.c 	bpl = (struct ulp_bde64 *)bmp->virt;
bmp               666 drivers/scsi/lpfc/lpfc_nvme.c 	ret = lpfc_nvme_gen_req(vport, bmp, pnvme_lsreq->rqstaddr,
bmp               676 drivers/scsi/lpfc/lpfc_nvme.c 		lpfc_mbuf_free(vport->phba, bmp->virt, bmp->phys);
bmp               677 drivers/scsi/lpfc/lpfc_nvme.c 		kfree(bmp);
bmp               113 drivers/staging/uwb/drp-avail.c 	uwb_mas_bm_copy_le(rc->drp_avail.ie.bmp, &avail);
bmp               215 drivers/staging/uwb/drp-avail.c int uwbd_evt_get_drp_avail(struct uwb_event *evt, unsigned long *bmp)
bmp               229 drivers/staging/uwb/drp-avail.c 	buffer_to_bmp(bmp, drp_evt->bmp, UWB_NUM_MAS/8);
bmp               263 drivers/staging/uwb/drp-avail.c 	DECLARE_BITMAP(bmp, UWB_NUM_MAS);
bmp               265 drivers/staging/uwb/drp-avail.c 	result = uwbd_evt_get_drp_avail(evt, bmp);
bmp               270 drivers/staging/uwb/drp-avail.c 	bitmap_copy(rc->drp_avail.global, bmp, UWB_NUM_MAS);
bmp               721 drivers/staging/uwb/drp.c 		    drp_availability_ie->bmp, UWB_NUM_MAS);
bmp               203 drivers/staging/uwb/hwa-rc.c 	memcpy(newda->bmp, (u8 *) ie_hdr + sizeof(*ie_hdr), ie_hdr->length);
bmp               384 drivers/staging/uwb/include/spec.h 	DECLARE_BITMAP(bmp, UWB_NUM_MAS);
bmp               714 drivers/staging/uwb/include/spec.h 	DECLARE_BITMAP(bmp, UWB_NUM_MAS);
bmp                62 fs/hfsplus/xattr.c 	char *bmp;
bmp               107 fs/hfsplus/xattr.c 	bmp = buf + offset;
bmp               112 fs/hfsplus/xattr.c 		memset(bmp, 0xFF, used_bmp_bytes);
bmp               113 fs/hfsplus/xattr.c 		bmp += used_bmp_bytes;
bmp               116 fs/hfsplus/xattr.c 	*bmp = ~(0xFF >> used_nodes);
bmp                72 fs/hpfs/alloc.c 	__le32 *bmp;
bmp                73 fs/hpfs/alloc.c 	if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "chk"))) goto fail;
bmp                74 fs/hpfs/alloc.c 	if ((le32_to_cpu(bmp[(sec & 0x3fff) >> 5]) >> (sec & 0x1f)) & 1) {
bmp                81 fs/hpfs/alloc.c 		if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto fail;
bmp                82 fs/hpfs/alloc.c 		if ((le32_to_cpu(bmp[ssec >> 5]) >> (ssec & 0x1f)) & 1) {
bmp               118 fs/hpfs/alloc.c 	__le32 *bmp;
bmp               130 fs/hpfs/alloc.c 		if (!(bmp = hpfs_map_bitmap(s, near >> 14, &qbh, "aib"))) goto uls;
bmp               132 fs/hpfs/alloc.c 		if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto uls;
bmp               134 fs/hpfs/alloc.c 	if (!tstbits(bmp, nr, n + forward)) {
bmp               139 fs/hpfs/alloc.c 	while ((a = tstbits(bmp, q, n + forward)) != 0) {
bmp               157 fs/hpfs/alloc.c 		if (!le32_to_cpu(bmp[i])) goto cont;
bmp               158 fs/hpfs/alloc.c 		if (n + forward >= 0x3f && le32_to_cpu(bmp[i]) != 0xffffffff) goto cont;
bmp               161 fs/hpfs/alloc.c 			unsigned k = le32_to_cpu(bmp[i-1]);
bmp               167 fs/hpfs/alloc.c 		while ((a = tstbits(bmp, q, n + forward)) != 0) {
bmp               181 fs/hpfs/alloc.c 		if (hpfs_sb(s)->sb_chk && ((ret >> 14) != (bs >> 14) || (le32_to_cpu(bmp[(ret & 0x3fff) >> 5]) | ~(((1 << n) - 1) << (ret & 0x1f))) != 0xffffffff)) {
bmp               186 fs/hpfs/alloc.c 		bmp[(ret & 0x3fff) >> 5] &= cpu_to_le32(~(((1 << n) - 1) << (ret & 0x1f)));
bmp               299 fs/hpfs/alloc.c 	__le32 *bmp;
bmp               300 fs/hpfs/alloc.c 	if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "aip"))) goto end;
bmp               301 fs/hpfs/alloc.c 	if (le32_to_cpu(bmp[(sec & 0x3fff) >> 5]) & (1 << (sec & 0x1f))) {
bmp               302 fs/hpfs/alloc.c 		bmp[(sec & 0x3fff) >> 5] &= cpu_to_le32(~(1 << (sec & 0x1f)));
bmp               318 fs/hpfs/alloc.c 	__le32 *bmp;
bmp               329 fs/hpfs/alloc.c 	if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "free"))) {
bmp               333 fs/hpfs/alloc.c 	if ((le32_to_cpu(bmp[(sec & 0x3fff) >> 5]) >> (sec & 0x1f) & 1)) {
bmp               338 fs/hpfs/alloc.c 	bmp[(sec & 0x3fff) >> 5] |= cpu_to_le32(1 << (sec & 0x1f));
bmp               364 fs/hpfs/alloc.c 	__le32 *bmp;
bmp               366 fs/hpfs/alloc.c 	if ((bmp = hpfs_map_dnode_bitmap(s, &qbh))) {
bmp               369 fs/hpfs/alloc.c 			if (!le32_to_cpu(bmp[j])) continue;
bmp               370 fs/hpfs/alloc.c 			for (k = le32_to_cpu(bmp[j]); k; k >>= 1) if (k & 1) if (!--n) {
bmp               379 fs/hpfs/alloc.c 		bmp = hpfs_map_bitmap(s, b, &qbh, "chkdn1");
bmp               385 fs/hpfs/alloc.c 	bmp = hpfs_map_bitmap(s, i, &qbh, "chkdn2");
bmp               387 fs/hpfs/alloc.c 	if (bmp) {
bmp               390 fs/hpfs/alloc.c 			if (!le32_to_cpu(bmp[j])) continue;
bmp               392 fs/hpfs/alloc.c 				if ((le32_to_cpu(bmp[j]) & k) == k) {
bmp               416 fs/hpfs/alloc.c 		__le32 *bmp;
bmp               418 fs/hpfs/alloc.c 		if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) {
bmp               421 fs/hpfs/alloc.c 		bmp[ssec >> 5] |= cpu_to_le32(1 << (ssec & 0x1f));
bmp               489 fs/hpfs/alloc.c static unsigned find_run(__le32 *bmp, unsigned *idx)
bmp               492 fs/hpfs/alloc.c 	while (tstbits(bmp, *idx, 1)) {
bmp               498 fs/hpfs/alloc.c 	while (!tstbits(bmp, *idx + len, 1))
bmp               530 fs/hpfs/alloc.c 	__le32 *bmp;
bmp               546 fs/hpfs/alloc.c 		if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) {
bmp               551 fs/hpfs/alloc.c 		while ((len = find_run(bmp, &idx)) && !err) {
bmp               567 fs/hpfs/alloc.c 		if (!(bmp = hpfs_map_bitmap(s, start_bmp, &qbh, "trim"))) {
bmp               572 fs/hpfs/alloc.c 		while ((len = find_run(bmp, &idx)) && !err) {
bmp               187 fs/hpfs/hpfs_fn.h static inline unsigned tstbits(__le32 *bmp, unsigned b, unsigned n)
bmp               191 fs/hpfs/hpfs_fn.h 	if (!((le32_to_cpu(bmp[(b & 0x3fff) >> 5]) >> (b & 0x1f)) & 1)) return 1;
bmp               193 fs/hpfs/hpfs_fn.h 		if (!((le32_to_cpu(bmp[((b+i) & 0x3fff) >> 5]) >> ((b+i) & 0x1f)) & 1))
bmp               293 fs/hpfs/hpfs_fn.h __le32 *hpfs_load_bitmap_directory(struct super_block *, secno bmp);
bmp               112 fs/hpfs/map.c  __le32 *hpfs_load_bitmap_directory(struct super_block *s, secno bmp)
bmp               123 fs/hpfs/map.c  		__le32 *d = hpfs_map_sector(s, bmp+i, &bh, n - i - 1);
bmp                68 fs/jfs/jfs_discard.c 	struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap;
bmp                86 fs/jfs/jfs_discard.c 	if (minlen > bmp->db_agsize ||
bmp                87 fs/jfs/jfs_discard.c 	    start >= bmp->db_mapsize ||
bmp                91 fs/jfs/jfs_discard.c 	if (end >= bmp->db_mapsize)
bmp                92 fs/jfs/jfs_discard.c 		end = bmp->db_mapsize - 1;
bmp                57 fs/jfs/jfs_dmap.c #define BMAP_LOCK_INIT(bmp)	mutex_init(&bmp->db_bmaplock)
bmp                58 fs/jfs/jfs_dmap.c #define BMAP_LOCK(bmp)		mutex_lock(&bmp->db_bmaplock)
bmp                59 fs/jfs/jfs_dmap.c #define BMAP_UNLOCK(bmp)	mutex_unlock(&bmp->db_bmaplock)
bmp                64 fs/jfs/jfs_dmap.c static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
bmp                70 fs/jfs/jfs_dmap.c static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc,
bmp                72 fs/jfs/jfs_dmap.c static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results);
bmp                73 fs/jfs/jfs_dmap.c static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno,
bmp                75 fs/jfs/jfs_dmap.c static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno,
bmp                78 fs/jfs/jfs_dmap.c static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
bmp                80 fs/jfs/jfs_dmap.c static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks,
bmp                83 fs/jfs/jfs_dmap.c static int dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb,
bmp                85 fs/jfs/jfs_dmap.c static int dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno,
bmp                89 fs/jfs/jfs_dmap.c static int dbFindCtl(struct bmap * bmp, int l2nb, int level, s64 * blkno);
bmp                91 fs/jfs/jfs_dmap.c static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
bmp                93 fs/jfs/jfs_dmap.c static int dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
bmp               101 fs/jfs/jfs_dmap.c static int dbAllocDmapBU(struct bmap * bmp, struct dmap * dp, s64 blkno,
bmp               154 fs/jfs/jfs_dmap.c 	struct bmap *bmp;
bmp               163 fs/jfs/jfs_dmap.c 	bmp = kmalloc(sizeof(struct bmap), GFP_KERNEL);
bmp               164 fs/jfs/jfs_dmap.c 	if (bmp == NULL)
bmp               172 fs/jfs/jfs_dmap.c 		kfree(bmp);
bmp               178 fs/jfs/jfs_dmap.c 	bmp->db_mapsize = le64_to_cpu(dbmp_le->dn_mapsize);
bmp               179 fs/jfs/jfs_dmap.c 	bmp->db_nfree = le64_to_cpu(dbmp_le->dn_nfree);
bmp               180 fs/jfs/jfs_dmap.c 	bmp->db_l2nbperpage = le32_to_cpu(dbmp_le->dn_l2nbperpage);
bmp               181 fs/jfs/jfs_dmap.c 	bmp->db_numag = le32_to_cpu(dbmp_le->dn_numag);
bmp               182 fs/jfs/jfs_dmap.c 	bmp->db_maxlevel = le32_to_cpu(dbmp_le->dn_maxlevel);
bmp               183 fs/jfs/jfs_dmap.c 	bmp->db_maxag = le32_to_cpu(dbmp_le->dn_maxag);
bmp               184 fs/jfs/jfs_dmap.c 	bmp->db_agpref = le32_to_cpu(dbmp_le->dn_agpref);
bmp               185 fs/jfs/jfs_dmap.c 	bmp->db_aglevel = le32_to_cpu(dbmp_le->dn_aglevel);
bmp               186 fs/jfs/jfs_dmap.c 	bmp->db_agheight = le32_to_cpu(dbmp_le->dn_agheight);
bmp               187 fs/jfs/jfs_dmap.c 	bmp->db_agwidth = le32_to_cpu(dbmp_le->dn_agwidth);
bmp               188 fs/jfs/jfs_dmap.c 	bmp->db_agstart = le32_to_cpu(dbmp_le->dn_agstart);
bmp               189 fs/jfs/jfs_dmap.c 	bmp->db_agl2size = le32_to_cpu(dbmp_le->dn_agl2size);
bmp               191 fs/jfs/jfs_dmap.c 		bmp->db_agfree[i] = le64_to_cpu(dbmp_le->dn_agfree[i]);
bmp               192 fs/jfs/jfs_dmap.c 	bmp->db_agsize = le64_to_cpu(dbmp_le->dn_agsize);
bmp               193 fs/jfs/jfs_dmap.c 	bmp->db_maxfreebud = dbmp_le->dn_maxfreebud;
bmp               199 fs/jfs/jfs_dmap.c 	bmp->db_ipbmap = ipbmap;
bmp               200 fs/jfs/jfs_dmap.c 	JFS_SBI(ipbmap->i_sb)->bmap = bmp;
bmp               202 fs/jfs/jfs_dmap.c 	memset(bmp->db_active, 0, sizeof(bmp->db_active));
bmp               207 fs/jfs/jfs_dmap.c 	BMAP_LOCK_INIT(bmp);
bmp               231 fs/jfs/jfs_dmap.c 	struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap;
bmp               242 fs/jfs/jfs_dmap.c 	kfree(bmp);
bmp               253 fs/jfs/jfs_dmap.c 	struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap;
bmp               270 fs/jfs/jfs_dmap.c 	dbmp_le->dn_mapsize = cpu_to_le64(bmp->db_mapsize);
bmp               271 fs/jfs/jfs_dmap.c 	dbmp_le->dn_nfree = cpu_to_le64(bmp->db_nfree);
bmp               272 fs/jfs/jfs_dmap.c 	dbmp_le->dn_l2nbperpage = cpu_to_le32(bmp->db_l2nbperpage);
bmp               273 fs/jfs/jfs_dmap.c 	dbmp_le->dn_numag = cpu_to_le32(bmp->db_numag);
bmp               274 fs/jfs/jfs_dmap.c 	dbmp_le->dn_maxlevel = cpu_to_le32(bmp->db_maxlevel);
bmp               275 fs/jfs/jfs_dmap.c 	dbmp_le->dn_maxag = cpu_to_le32(bmp->db_maxag);
bmp               276 fs/jfs/jfs_dmap.c 	dbmp_le->dn_agpref = cpu_to_le32(bmp->db_agpref);
bmp               277 fs/jfs/jfs_dmap.c 	dbmp_le->dn_aglevel = cpu_to_le32(bmp->db_aglevel);
bmp               278 fs/jfs/jfs_dmap.c 	dbmp_le->dn_agheight = cpu_to_le32(bmp->db_agheight);
bmp               279 fs/jfs/jfs_dmap.c 	dbmp_le->dn_agwidth = cpu_to_le32(bmp->db_agwidth);
bmp               280 fs/jfs/jfs_dmap.c 	dbmp_le->dn_agstart = cpu_to_le32(bmp->db_agstart);
bmp               281 fs/jfs/jfs_dmap.c 	dbmp_le->dn_agl2size = cpu_to_le32(bmp->db_agl2size);
bmp               283 fs/jfs/jfs_dmap.c 		dbmp_le->dn_agfree[i] = cpu_to_le64(bmp->db_agfree[i]);
bmp               284 fs/jfs/jfs_dmap.c 	dbmp_le->dn_agsize = cpu_to_le64(bmp->db_agsize);
bmp               285 fs/jfs/jfs_dmap.c 	dbmp_le->dn_maxfreebud = bmp->db_maxfreebud;
bmp               325 fs/jfs/jfs_dmap.c 	struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap;
bmp               331 fs/jfs/jfs_dmap.c 	if (unlikely((blkno == 0) || (blkno + nblocks > bmp->db_mapsize))) {
bmp               358 fs/jfs/jfs_dmap.c 		lblkno = BLKTODMAP(blkno, bmp->db_l2nbperpage);
bmp               372 fs/jfs/jfs_dmap.c 		if ((rc = dbFreeDmap(bmp, dp, blkno, nb))) {
bmp               416 fs/jfs/jfs_dmap.c 	struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap;
bmp               426 fs/jfs/jfs_dmap.c 	if (blkno + nblocks > bmp->db_mapsize) {
bmp               446 fs/jfs/jfs_dmap.c 		lblkno = BLKTODMAP(blkno, bmp->db_l2nbperpage);
bmp               452 fs/jfs/jfs_dmap.c 			mp = read_metapage(bmp->db_ipbmap, lblkno, PSIZE,
bmp               597 fs/jfs/jfs_dmap.c 	struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap;
bmp               599 fs/jfs/jfs_dmap.c 	BMAP_LOCK(bmp);
bmp               602 fs/jfs/jfs_dmap.c 	avgfree = (u32)bmp->db_nfree / bmp->db_numag;
bmp               608 fs/jfs/jfs_dmap.c 	agpref = bmp->db_agpref;
bmp               609 fs/jfs/jfs_dmap.c 	if ((atomic_read(&bmp->db_active[agpref]) == 0) &&
bmp               610 fs/jfs/jfs_dmap.c 	    (bmp->db_agfree[agpref] >= avgfree))
bmp               616 fs/jfs/jfs_dmap.c 	for (i = 0 ; i < bmp->db_numag; i++, agpref++) {
bmp               617 fs/jfs/jfs_dmap.c 		if (agpref == bmp->db_numag)
bmp               620 fs/jfs/jfs_dmap.c 		if (atomic_read(&bmp->db_active[agpref]))
bmp               623 fs/jfs/jfs_dmap.c 		if (bmp->db_agfree[agpref] >= avgfree) {
bmp               625 fs/jfs/jfs_dmap.c 			bmp->db_agpref = agpref;
bmp               627 fs/jfs/jfs_dmap.c 		} else if (bmp->db_agfree[agpref] > hwm) {
bmp               629 fs/jfs/jfs_dmap.c 			hwm = bmp->db_agfree[agpref];
bmp               639 fs/jfs/jfs_dmap.c 		bmp->db_agpref = next_best;
bmp               642 fs/jfs/jfs_dmap.c 	BMAP_UNLOCK(bmp);
bmp               646 fs/jfs/jfs_dmap.c 	return (bmp->db_agpref);
bmp               691 fs/jfs/jfs_dmap.c 	struct bmap *bmp;
bmp               708 fs/jfs/jfs_dmap.c 	bmp = JFS_SBI(ip->i_sb)->bmap;
bmp               710 fs/jfs/jfs_dmap.c 	mapSize = bmp->db_mapsize;
bmp               721 fs/jfs/jfs_dmap.c 	if (l2nb > bmp->db_agl2size) {
bmp               724 fs/jfs/jfs_dmap.c 		rc = dbAllocAny(bmp, nblocks, l2nb, results);
bmp               741 fs/jfs/jfs_dmap.c 	if (blkno >= bmp->db_mapsize)
bmp               744 fs/jfs/jfs_dmap.c 	agno = blkno >> bmp->db_agl2size;
bmp               750 fs/jfs/jfs_dmap.c 	if ((blkno & (bmp->db_agsize - 1)) == 0)
bmp               755 fs/jfs/jfs_dmap.c 		if (atomic_read(&bmp->db_active[agno]))
bmp               768 fs/jfs/jfs_dmap.c 		lblkno = BLKTODMAP(blkno, bmp->db_l2nbperpage);
bmp               778 fs/jfs/jfs_dmap.c 		if ((rc = dbAllocNext(bmp, dp, blkno, (int) nblocks))
bmp               789 fs/jfs/jfs_dmap.c 		writers = atomic_read(&bmp->db_active[agno]);
bmp               805 fs/jfs/jfs_dmap.c 		     dbAllocNear(bmp, dp, blkno, (int) nblocks, l2nb, results))
bmp               817 fs/jfs/jfs_dmap.c 		if ((rc = dbAllocDmapLev(bmp, dp, (int) nblocks, l2nb, results))
bmp               834 fs/jfs/jfs_dmap.c 	if ((rc = dbAllocAG(bmp, agno, nblocks, l2nb, results)) != -ENOSPC)
bmp               850 fs/jfs/jfs_dmap.c 	if ((rc = dbAllocAG(bmp, agno, nblocks, l2nb, results)) == -ENOSPC)
bmp               851 fs/jfs/jfs_dmap.c 		rc = dbAllocAny(bmp, nblocks, l2nb, results);
bmp               884 fs/jfs/jfs_dmap.c 	struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap;
bmp               898 fs/jfs/jfs_dmap.c 	if (nblocks <= 0 || nblocks > BPERDMAP || blkno >= bmp->db_mapsize) {
bmp               903 fs/jfs/jfs_dmap.c 	if (nblocks > ((s64) 1 << bmp->db_maxfreebud)) {
bmp               910 fs/jfs/jfs_dmap.c 	lblkno = BLKTODMAP(blkno, bmp->db_l2nbperpage);
bmp               919 fs/jfs/jfs_dmap.c 	rc = dbAllocNext(bmp, dp, blkno, nblocks);
bmp              1022 fs/jfs/jfs_dmap.c 	struct bmap *bmp;
bmp              1042 fs/jfs/jfs_dmap.c 	bmp = sbi->bmap;
bmp              1043 fs/jfs/jfs_dmap.c 	if (lastblkno < 0 || lastblkno >= bmp->db_mapsize) {
bmp              1057 fs/jfs/jfs_dmap.c 	if (addnblocks > BPERDMAP || extblkno >= bmp->db_mapsize ||
bmp              1058 fs/jfs/jfs_dmap.c 	    (extblkno & (bmp->db_agsize - 1)) == 0) {
bmp              1066 fs/jfs/jfs_dmap.c 	lblkno = BLKTODMAP(extblkno, bmp->db_l2nbperpage);
bmp              1078 fs/jfs/jfs_dmap.c 	rc = dbAllocNext(bmp, dp, extblkno, (int) addnblocks);
bmp              1112 fs/jfs/jfs_dmap.c static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno,
bmp              1121 fs/jfs/jfs_dmap.c 		jfs_error(bmp->db_ipbmap->i_sb, "Corrupt dmap page\n");
bmp              1212 fs/jfs/jfs_dmap.c 	return (dbAllocDmap(bmp, dp, blkno, nblocks));
bmp              1244 fs/jfs/jfs_dmap.c dbAllocNear(struct bmap * bmp,
bmp              1251 fs/jfs/jfs_dmap.c 		jfs_error(bmp->db_ipbmap->i_sb, "Corrupt dmap page\n");
bmp              1288 fs/jfs/jfs_dmap.c 		if ((rc = dbAllocDmap(bmp, dp, blkno, nblocks)) == 0)
bmp              1353 fs/jfs/jfs_dmap.c dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb, s64 * results)
bmp              1364 fs/jfs/jfs_dmap.c 	if (l2nb > bmp->db_agl2size) {
bmp              1365 fs/jfs/jfs_dmap.c 		jfs_error(bmp->db_ipbmap->i_sb,
bmp              1373 fs/jfs/jfs_dmap.c 	blkno = (s64) agno << bmp->db_agl2size;
bmp              1392 fs/jfs/jfs_dmap.c 	if (bmp->db_agsize == BPERDMAP
bmp              1393 fs/jfs/jfs_dmap.c 	    || bmp->db_agfree[agno] == bmp->db_agsize) {
bmp              1394 fs/jfs/jfs_dmap.c 		rc = dbAllocCtl(bmp, nblocks, l2nb, blkno, results);
bmp              1396 fs/jfs/jfs_dmap.c 		    (bmp->db_agfree[agno] == bmp->db_agsize)) {
bmp              1400 fs/jfs/jfs_dmap.c 			jfs_error(bmp->db_ipbmap->i_sb,
bmp              1409 fs/jfs/jfs_dmap.c 	lblkno = BLKTOCTL(blkno, bmp->db_l2nbperpage, bmp->db_aglevel);
bmp              1410 fs/jfs/jfs_dmap.c 	mp = read_metapage(bmp->db_ipbmap, lblkno, PSIZE, 0);
bmp              1417 fs/jfs/jfs_dmap.c 		jfs_error(bmp->db_ipbmap->i_sb, "Corrupt dmapctl page\n");
bmp              1430 fs/jfs/jfs_dmap.c 	    (1 << (L2LPERCTL - (bmp->db_agheight << 1))) / bmp->db_agwidth;
bmp              1431 fs/jfs/jfs_dmap.c 	ti = bmp->db_agstart + bmp->db_agwidth * (agno & (agperlev - 1));
bmp              1439 fs/jfs/jfs_dmap.c 	for (i = 0; i < bmp->db_agwidth; i++, ti++) {
bmp              1449 fs/jfs/jfs_dmap.c 		for (k = bmp->db_agheight; k > 0; k--) {
bmp              1457 fs/jfs/jfs_dmap.c 				jfs_error(bmp->db_ipbmap->i_sb,
bmp              1467 fs/jfs/jfs_dmap.c 		if (bmp->db_aglevel == 2)
bmp              1469 fs/jfs/jfs_dmap.c 		else if (bmp->db_aglevel == 1)
bmp              1494 fs/jfs/jfs_dmap.c 			     dbFindCtl(bmp, l2nb, bmp->db_aglevel - 1,
bmp              1497 fs/jfs/jfs_dmap.c 					jfs_error(bmp->db_ipbmap->i_sb,
bmp              1507 fs/jfs/jfs_dmap.c 		rc = dbAllocCtl(bmp, nblocks, l2nb, blkno, results);
bmp              1509 fs/jfs/jfs_dmap.c 			jfs_error(bmp->db_ipbmap->i_sb,
bmp              1551 fs/jfs/jfs_dmap.c static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results)
bmp              1562 fs/jfs/jfs_dmap.c 	if ((rc = dbFindCtl(bmp, l2nb, bmp->db_maxlevel, &blkno)))
bmp              1567 fs/jfs/jfs_dmap.c 	rc = dbAllocCtl(bmp, nblocks, l2nb, blkno, results);
bmp              1569 fs/jfs/jfs_dmap.c 		jfs_error(bmp->db_ipbmap->i_sb, "unable to allocate blocks\n");
bmp              1609 fs/jfs/jfs_dmap.c 	struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap;
bmp              1627 fs/jfs/jfs_dmap.c 	nblocks = bmp->db_agfree[agno];
bmp              1633 fs/jfs/jfs_dmap.c 		jfs_error(bmp->db_ipbmap->i_sb, "no memory for trim array\n");
bmp              1643 fs/jfs/jfs_dmap.c 		rc = dbAllocAG(bmp, agno, nblocks, l2nb, &blkno);
bmp              1650 fs/jfs/jfs_dmap.c 			if (bmp->db_agfree[agno] == 0)
bmp              1654 fs/jfs/jfs_dmap.c 			nblocks = bmp->db_agfree[agno];
bmp              1662 fs/jfs/jfs_dmap.c 			jfs_error(bmp->db_ipbmap->i_sb, "-EIO\n");
bmp              1714 fs/jfs/jfs_dmap.c static int dbFindCtl(struct bmap * bmp, int l2nb, int level, s64 * blkno)
bmp              1731 fs/jfs/jfs_dmap.c 		lblkno = BLKTOCTL(b, bmp->db_l2nbperpage, lev);
bmp              1732 fs/jfs/jfs_dmap.c 		mp = read_metapage(bmp->db_ipbmap, lblkno, PSIZE, 0);
bmp              1739 fs/jfs/jfs_dmap.c 			jfs_error(bmp->db_ipbmap->i_sb,
bmp              1760 fs/jfs/jfs_dmap.c 				jfs_error(bmp->db_ipbmap->i_sb,
bmp              1833 fs/jfs/jfs_dmap.c dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno, s64 * results)
bmp              1845 fs/jfs/jfs_dmap.c 		lblkno = BLKTODMAP(blkno, bmp->db_l2nbperpage);
bmp              1846 fs/jfs/jfs_dmap.c 		mp = read_metapage(bmp->db_ipbmap, lblkno, PSIZE, 0);
bmp              1853 fs/jfs/jfs_dmap.c 		rc = dbAllocDmapLev(bmp, dp, (int) nblocks, l2nb, results);
bmp              1872 fs/jfs/jfs_dmap.c 		lblkno = BLKTODMAP(b, bmp->db_l2nbperpage);
bmp              1873 fs/jfs/jfs_dmap.c 		mp = read_metapage(bmp->db_ipbmap, lblkno, PSIZE, 0);
bmp              1884 fs/jfs/jfs_dmap.c 			jfs_error(bmp->db_ipbmap->i_sb,
bmp              1896 fs/jfs/jfs_dmap.c 		if ((rc = dbAllocDmap(bmp, dp, b, nb))) {
bmp              1925 fs/jfs/jfs_dmap.c 		lblkno = BLKTODMAP(b, bmp->db_l2nbperpage);
bmp              1926 fs/jfs/jfs_dmap.c 		mp = read_metapage(bmp->db_ipbmap, lblkno, PSIZE, 0);
bmp              1931 fs/jfs/jfs_dmap.c 			jfs_error(bmp->db_ipbmap->i_sb,
bmp              1939 fs/jfs/jfs_dmap.c 		if (dbFreeDmap(bmp, dp, b, BPERDMAP)) {
bmp              1944 fs/jfs/jfs_dmap.c 			jfs_error(bmp->db_ipbmap->i_sb, "Block Leakage\n");
bmp              1984 fs/jfs/jfs_dmap.c dbAllocDmapLev(struct bmap * bmp,
bmp              2013 fs/jfs/jfs_dmap.c 	if ((rc = dbAllocDmap(bmp, dp, blkno, nblocks)) == 0)
bmp              2047 fs/jfs/jfs_dmap.c static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
bmp              2059 fs/jfs/jfs_dmap.c 	dbAllocBits(bmp, dp, blkno, nblocks);
bmp              2069 fs/jfs/jfs_dmap.c 	if ((rc = dbAdjCtl(bmp, blkno, dp->tree.stree[ROOT], 1, 0)))
bmp              2070 fs/jfs/jfs_dmap.c 		dbFreeBits(bmp, dp, blkno, nblocks);
bmp              2102 fs/jfs/jfs_dmap.c static int dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
bmp              2114 fs/jfs/jfs_dmap.c 	rc = dbFreeBits(bmp, dp, blkno, nblocks);
bmp              2124 fs/jfs/jfs_dmap.c 	if ((rc = dbAdjCtl(bmp, blkno, dp->tree.stree[ROOT], 0, 0))) {
bmp              2135 fs/jfs/jfs_dmap.c 		dbAllocBits(bmp, dp, blkno, nblocks);
bmp              2164 fs/jfs/jfs_dmap.c static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
bmp              2240 fs/jfs/jfs_dmap.c 					jfs_error(bmp->db_ipbmap->i_sb,
bmp              2271 fs/jfs/jfs_dmap.c 	BMAP_LOCK(bmp);
bmp              2277 fs/jfs/jfs_dmap.c 	agno = blkno >> bmp->db_agl2size;
bmp              2278 fs/jfs/jfs_dmap.c 	if (agno > bmp->db_maxag)
bmp              2279 fs/jfs/jfs_dmap.c 		bmp->db_maxag = agno;
bmp              2282 fs/jfs/jfs_dmap.c 	bmp->db_agfree[agno] -= nblocks;
bmp              2283 fs/jfs/jfs_dmap.c 	bmp->db_nfree -= nblocks;
bmp              2285 fs/jfs/jfs_dmap.c 	BMAP_UNLOCK(bmp);
bmp              2311 fs/jfs/jfs_dmap.c static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
bmp              2415 fs/jfs/jfs_dmap.c 	BMAP_LOCK(bmp);
bmp              2420 fs/jfs/jfs_dmap.c 	agno = blkno >> bmp->db_agl2size;
bmp              2421 fs/jfs/jfs_dmap.c 	bmp->db_nfree += nblocks;
bmp              2422 fs/jfs/jfs_dmap.c 	bmp->db_agfree[agno] += nblocks;
bmp              2429 fs/jfs/jfs_dmap.c 	if ((bmp->db_agfree[agno] == bmp->db_agsize && agno == bmp->db_maxag) ||
bmp              2430 fs/jfs/jfs_dmap.c 	    (agno == bmp->db_numag - 1 &&
bmp              2431 fs/jfs/jfs_dmap.c 	     bmp->db_agfree[agno] == (bmp-> db_mapsize & (BPERDMAP - 1)))) {
bmp              2432 fs/jfs/jfs_dmap.c 		while (bmp->db_maxag > 0) {
bmp              2433 fs/jfs/jfs_dmap.c 			bmp->db_maxag -= 1;
bmp              2434 fs/jfs/jfs_dmap.c 			if (bmp->db_agfree[bmp->db_maxag] !=
bmp              2435 fs/jfs/jfs_dmap.c 			    bmp->db_agsize)
bmp              2443 fs/jfs/jfs_dmap.c 		if (bmp->db_agpref > bmp->db_maxag)
bmp              2444 fs/jfs/jfs_dmap.c 			bmp->db_agpref = bmp->db_maxag;
bmp              2447 fs/jfs/jfs_dmap.c 	BMAP_UNLOCK(bmp);
bmp              2495 fs/jfs/jfs_dmap.c dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc, int level)
bmp              2507 fs/jfs/jfs_dmap.c 	lblkno = BLKTOCTL(blkno, bmp->db_l2nbperpage, level);
bmp              2508 fs/jfs/jfs_dmap.c 	mp = read_metapage(bmp->db_ipbmap, lblkno, PSIZE, 0);
bmp              2514 fs/jfs/jfs_dmap.c 		jfs_error(bmp->db_ipbmap->i_sb, "Corrupt dmapctl page\n");
bmp              2574 fs/jfs/jfs_dmap.c 		if (level < bmp->db_maxlevel) {
bmp              2579 fs/jfs/jfs_dmap.c 			     dbAdjCtl(bmp, blkno, dcp->stree[ROOT], alloc,
bmp              2612 fs/jfs/jfs_dmap.c 			assert(level == bmp->db_maxlevel);
bmp              2613 fs/jfs/jfs_dmap.c 			if (bmp->db_maxfreebud != oldroot) {
bmp              2614 fs/jfs/jfs_dmap.c 				jfs_error(bmp->db_ipbmap->i_sb,
bmp              2617 fs/jfs/jfs_dmap.c 			bmp->db_maxfreebud = dcp->stree[ROOT];
bmp              3202 fs/jfs/jfs_dmap.c 	struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap;
bmp              3207 fs/jfs/jfs_dmap.c 	ASSERT(nblocks <= bmp->db_mapsize - blkno);
bmp              3220 fs/jfs/jfs_dmap.c 		lblkno = BLKTODMAP(blkno, bmp->db_l2nbperpage);
bmp              3234 fs/jfs/jfs_dmap.c 		if ((rc = dbAllocDmapBU(bmp, dp, blkno, nb))) {
bmp              3250 fs/jfs/jfs_dmap.c static int dbAllocDmapBU(struct bmap * bmp, struct dmap * dp, s64 blkno,
bmp              3323 fs/jfs/jfs_dmap.c 	BMAP_LOCK(bmp);
bmp              3329 fs/jfs/jfs_dmap.c 	agno = blkno >> bmp->db_agl2size;
bmp              3330 fs/jfs/jfs_dmap.c 	if (agno > bmp->db_maxag)
bmp              3331 fs/jfs/jfs_dmap.c 		bmp->db_maxag = agno;
bmp              3334 fs/jfs/jfs_dmap.c 	bmp->db_agfree[agno] -= nblocks;
bmp              3335 fs/jfs/jfs_dmap.c 	bmp->db_nfree -= nblocks;
bmp              3337 fs/jfs/jfs_dmap.c 	BMAP_UNLOCK(bmp);
bmp              3347 fs/jfs/jfs_dmap.c 	if ((rc = dbAdjCtl(bmp, blkno, tp->stree[ROOT], 1, 0)))
bmp              3348 fs/jfs/jfs_dmap.c 		dbFreeBits(bmp, dp, blkno, nblocks);
bmp              3382 fs/jfs/jfs_dmap.c 	struct bmap *bmp = sbi->bmap;
bmp              3399 fs/jfs/jfs_dmap.c 	bmp->db_mapsize = newsize;
bmp              3400 fs/jfs/jfs_dmap.c 	bmp->db_maxlevel = BMAPSZTOLEV(bmp->db_mapsize);
bmp              3404 fs/jfs/jfs_dmap.c 	oldl2agsize = bmp->db_agl2size;
bmp              3406 fs/jfs/jfs_dmap.c 	bmp->db_agl2size = l2agsize;
bmp              3407 fs/jfs/jfs_dmap.c 	bmp->db_agsize = 1 << l2agsize;
bmp              3410 fs/jfs/jfs_dmap.c 	agno = bmp->db_numag;
bmp              3411 fs/jfs/jfs_dmap.c 	bmp->db_numag = newsize >> l2agsize;
bmp              3412 fs/jfs/jfs_dmap.c 	bmp->db_numag += ((u32) newsize % (u32) bmp->db_agsize) ? 1 : 0;
bmp              3425 fs/jfs/jfs_dmap.c 	ag_rem = bmp->db_agfree[0];	/* save agfree[0] */
bmp              3427 fs/jfs/jfs_dmap.c 		bmp->db_agfree[n] = 0;	/* init collection point */
bmp              3432 fs/jfs/jfs_dmap.c 			bmp->db_agfree[n] += bmp->db_agfree[i];
bmp              3435 fs/jfs/jfs_dmap.c 	bmp->db_agfree[0] += ag_rem;	/* restore agfree[0] */
bmp              3438 fs/jfs/jfs_dmap.c 		bmp->db_agfree[n] = 0;
bmp              3444 fs/jfs/jfs_dmap.c 	bmp->db_maxag = bmp->db_maxag / k;
bmp              3560 fs/jfs/jfs_dmap.c 				bmp->db_nfree += n;
bmp              3562 fs/jfs/jfs_dmap.c 				bmp->db_agfree[agno] += n;
bmp              3591 fs/jfs/jfs_dmap.c 					bmp->db_maxfreebud = *l1leaf;
bmp              3615 fs/jfs/jfs_dmap.c 				bmp->db_maxfreebud = *l2leaf;
bmp              3645 fs/jfs/jfs_dmap.c 	struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap;
bmp              3660 fs/jfs/jfs_dmap.c 	actags = bmp->db_maxag + 1;
bmp              3661 fs/jfs/jfs_dmap.c 	inactags = bmp->db_numag - actags;
bmp              3662 fs/jfs/jfs_dmap.c 	ag_rem = bmp->db_mapsize & (bmp->db_agsize - 1);	/* ??? */
bmp              3670 fs/jfs/jfs_dmap.c 	    ((inactags - 1) << bmp->db_agl2size) + ag_rem
bmp              3671 fs/jfs/jfs_dmap.c 	    : inactags << bmp->db_agl2size;
bmp              3677 fs/jfs/jfs_dmap.c 	actfree = bmp->db_nfree - inactfree;
bmp              3684 fs/jfs/jfs_dmap.c 	if (bmp->db_agfree[bmp->db_agpref] < avgfree) {
bmp              3685 fs/jfs/jfs_dmap.c 		for (bmp->db_agpref = 0; bmp->db_agpref < actags;
bmp              3686 fs/jfs/jfs_dmap.c 		     bmp->db_agpref++) {
bmp              3687 fs/jfs/jfs_dmap.c 			if (bmp->db_agfree[bmp->db_agpref] >= avgfree)
bmp              3690 fs/jfs/jfs_dmap.c 		if (bmp->db_agpref >= bmp->db_numag) {
bmp              3703 fs/jfs/jfs_dmap.c 	bmp->db_aglevel = BMAPSZTOLEV(bmp->db_agsize);
bmp              3705 fs/jfs/jfs_dmap.c 	    bmp->db_agl2size - (L2BPERDMAP + bmp->db_aglevel * L2LPERCTL);
bmp              3706 fs/jfs/jfs_dmap.c 	bmp->db_agheight = l2nl >> 1;
bmp              3707 fs/jfs/jfs_dmap.c 	bmp->db_agwidth = 1 << (l2nl - (bmp->db_agheight << 1));
bmp              3708 fs/jfs/jfs_dmap.c 	for (i = 5 - bmp->db_agheight, bmp->db_agstart = 0, n = 1; i > 0;
bmp              3710 fs/jfs/jfs_dmap.c 		bmp->db_agstart += n;
bmp               502 fs/jfs/jfs_extent.c 	struct bmap *bmp = sbi->bmap;
bmp               511 fs/jfs/jfs_extent.c 	max = (s64) 1 << bmp->db_maxfreebud;
bmp               540 fs/jfs/jfs_extent.c 			atomic_inc(&bmp->db_active[ag]);
bmp               543 fs/jfs/jfs_extent.c 			atomic_dec(&bmp->db_active[ji->active_ag]);
bmp               544 fs/jfs/jfs_extent.c 			atomic_inc(&bmp->db_active[ag]);
bmp               848 fs/jfs/jfs_imap.c 	struct metapage *mp, *amp, *bmp, *cmp, *dmp;
bmp              1024 fs/jfs/jfs_imap.c 	amp = bmp = cmp = dmp = NULL;
bmp              1061 fs/jfs/jfs_imap.c 				if ((rc = diIAGRead(imap, back, &bmp)))
bmp              1063 fs/jfs/jfs_imap.c 				biagp = (struct iag *) bmp->data;
bmp              1088 fs/jfs/jfs_imap.c 				ciagp = (struct iag *) bmp->data;
bmp              1102 fs/jfs/jfs_imap.c 				diagp = (struct iag *) bmp->data;
bmp              1213 fs/jfs/jfs_imap.c 	if (bmp)
bmp              1214 fs/jfs/jfs_imap.c 		write_metapage(bmp);
bmp              1275 fs/jfs/jfs_imap.c 	if (bmp)
bmp              1276 fs/jfs/jfs_imap.c 		release_metapage(bmp);
bmp              2007 fs/jfs/jfs_imap.c 	struct metapage *amp = NULL, *bmp = NULL;
bmp              2029 fs/jfs/jfs_imap.c 				       &bmp))) {
bmp              2034 fs/jfs/jfs_imap.c 			biagp = (struct iag *) bmp->data;
bmp              2056 fs/jfs/jfs_imap.c 		if (bmp)
bmp              2057 fs/jfs/jfs_imap.c 			release_metapage(bmp);
bmp              2086 fs/jfs/jfs_imap.c 		if (bmp) {
bmp              2088 fs/jfs/jfs_imap.c 			write_metapage(bmp);
bmp              2154 fs/jfs/jfs_imap.c 	struct metapage *amp, *bmp, *cmp, *dmp;
bmp              2175 fs/jfs/jfs_imap.c 	amp = bmp = cmp = NULL;
bmp              2195 fs/jfs/jfs_imap.c 			if ((rc = diIAGRead(imap, back, &bmp)))
bmp              2197 fs/jfs/jfs_imap.c 			biagp = (struct iag *) bmp->data;
bmp              2370 fs/jfs/jfs_imap.c 	if (bmp)
bmp              2371 fs/jfs/jfs_imap.c 		write_metapage(bmp);
bmp              2383 fs/jfs/jfs_imap.c 	if (bmp)
bmp              2384 fs/jfs/jfs_imap.c 		release_metapage(bmp);
bmp                57 fs/jfs/resize.c 	struct bmap *bmp = sbi->bmap;
bmp               173 fs/jfs/resize.c 	if (newFSSize < bmp->db_mapsize) {
bmp               300 fs/jfs/resize.c 	mapSize = bmp->db_mapsize;
bmp               303 fs/jfs/resize.c 	old_agsize = bmp->db_agsize;	/* We need to know if this changes */
bmp               325 fs/jfs/resize.c 	agsizechanged |= (bmp->db_agsize != old_agsize);
bmp               488 fs/jfs/resize.c 	j_sb->s_size = cpu_to_le64(bmp->db_mapsize <<
bmp               490 fs/jfs/resize.c 	j_sb->s_agsize = cpu_to_le32(bmp->db_agsize);
bmp              1101 fs/ntfs/dir.c  	u8 *kaddr, *bmp, *index_end;
bmp              1250 fs/ntfs/dir.c  	bmp = (u8*)page_address(bmp_page);
bmp              1252 fs/ntfs/dir.c  	while (!(bmp[cur_bmp_pos >> 3] & (1 << (cur_bmp_pos & 7)))) {
bmp                89 include/linux/mlx5/accel.h 		} bmp;
bmp              2080 include/rdma/ib_verbs.h 		struct ib_uverbs_flow_action_esp_replay_bmp	bmp;
bmp                99 include/uapi/linux/xfrm.h 	__u32		bmp[0];
bmp               518 net/netfilter/nf_conntrack_h323_asn1.c 	unsigned int ext, bmp, i, opt, len = 0, bmp2, bmp2_len;
bmp               536 net/netfilter/nf_conntrack_h323_asn1.c 	bmp = get_bitmap(bs, f->sz);
bmp               538 net/netfilter/nf_conntrack_h323_asn1.c 		*(unsigned int *)base = bmp;
bmp               549 net/netfilter/nf_conntrack_h323_asn1.c 			if (!((0x80000000U >> (opt++)) & bmp))	/* Not exist */
bmp               593 net/netfilter/nf_conntrack_h323_asn1.c 	bmp |= bmp2 >> f->sz;
bmp               595 net/netfilter/nf_conntrack_h323_asn1.c 		*(unsigned int *)base = bmp;
bmp               217 net/xfrm/xfrm_replay.c 	if (replay_esn->bmp[nr] & (1U << bitnr))
bmp               250 net/xfrm/xfrm_replay.c 				replay_esn->bmp[nr] &=  ~(1U << bitnr);
bmp               255 net/xfrm/xfrm_replay.c 				replay_esn->bmp[i] = 0;
bmp               271 net/xfrm/xfrm_replay.c 	replay_esn->bmp[nr] |= (1U << bitnr);
bmp               470 net/xfrm/xfrm_replay.c 	if (replay_esn->bmp[nr] & (1U << bitnr))
bmp               520 net/xfrm/xfrm_replay.c 				replay_esn->bmp[nr] &=  ~(1U << bitnr);
bmp               525 net/xfrm/xfrm_replay.c 				replay_esn->bmp[i] = 0;
bmp               546 net/xfrm/xfrm_replay.c 	replay_esn->bmp[nr] |= (1U << bitnr);
bmp               131 net/xfrm/xfrm_user.c 	if (rs->bmp_len > XFRMA_REPLAY_ESN_MAX / sizeof(rs->bmp[0]) / 8)
bmp                26 tools/power/cpupower/utils/helpers/bitmask.c 	struct bitmask *bmp;
bmp                28 tools/power/cpupower/utils/helpers/bitmask.c 	bmp = malloc(sizeof(*bmp));
bmp                29 tools/power/cpupower/utils/helpers/bitmask.c 	if (bmp == 0)
bmp                31 tools/power/cpupower/utils/helpers/bitmask.c 	bmp->size = n;
bmp                32 tools/power/cpupower/utils/helpers/bitmask.c 	bmp->maskp = calloc(longsperbits(n), sizeof(unsigned long));
bmp                33 tools/power/cpupower/utils/helpers/bitmask.c 	if (bmp->maskp == 0) {
bmp                34 tools/power/cpupower/utils/helpers/bitmask.c 		free(bmp);
bmp                37 tools/power/cpupower/utils/helpers/bitmask.c 	return bmp;
bmp                41 tools/power/cpupower/utils/helpers/bitmask.c void bitmask_free(struct bitmask *bmp)
bmp                43 tools/power/cpupower/utils/helpers/bitmask.c 	if (bmp == 0)
bmp                45 tools/power/cpupower/utils/helpers/bitmask.c 	free(bmp->maskp);
bmp                46 tools/power/cpupower/utils/helpers/bitmask.c 	bmp->maskp = (unsigned long *)0xdeadcdef;  /* double free tripwire */
bmp                47 tools/power/cpupower/utils/helpers/bitmask.c 	free(bmp);
bmp                62 tools/power/cpupower/utils/helpers/bitmask.c static unsigned int _getbit(const struct bitmask *bmp, unsigned int n)
bmp                64 tools/power/cpupower/utils/helpers/bitmask.c 	if (n < bmp->size)
bmp                65 tools/power/cpupower/utils/helpers/bitmask.c 		return (bmp->maskp[n/bitsperlong] >> (n % bitsperlong)) & 1;
bmp                71 tools/power/cpupower/utils/helpers/bitmask.c static void _setbit(struct bitmask *bmp, unsigned int n, unsigned int v)
bmp                73 tools/power/cpupower/utils/helpers/bitmask.c 	if (n < bmp->size) {
bmp                75 tools/power/cpupower/utils/helpers/bitmask.c 			bmp->maskp[n/bitsperlong] |= 1UL << (n % bitsperlong);
bmp                77 tools/power/cpupower/utils/helpers/bitmask.c 			bmp->maskp[n/bitsperlong] &=
bmp               115 tools/power/cpupower/utils/helpers/bitmask.c struct bitmask *bitmask_setbit(struct bitmask *bmp, unsigned int i)
bmp               117 tools/power/cpupower/utils/helpers/bitmask.c 	_setbit(bmp, i, 1);
bmp               118 tools/power/cpupower/utils/helpers/bitmask.c 	return bmp;
bmp               122 tools/power/cpupower/utils/helpers/bitmask.c struct bitmask *bitmask_setall(struct bitmask *bmp)
bmp               125 tools/power/cpupower/utils/helpers/bitmask.c 	for (i = 0; i < bmp->size; i++)
bmp               126 tools/power/cpupower/utils/helpers/bitmask.c 		_setbit(bmp, i, 1);
bmp               127 tools/power/cpupower/utils/helpers/bitmask.c 	return bmp;
bmp               131 tools/power/cpupower/utils/helpers/bitmask.c struct bitmask *bitmask_clearall(struct bitmask *bmp)
bmp               134 tools/power/cpupower/utils/helpers/bitmask.c 	for (i = 0; i < bmp->size; i++)
bmp               135 tools/power/cpupower/utils/helpers/bitmask.c 		_setbit(bmp, i, 0);
bmp               136 tools/power/cpupower/utils/helpers/bitmask.c 	return bmp;
bmp               140 tools/power/cpupower/utils/helpers/bitmask.c int bitmask_isallclear(const struct bitmask *bmp)
bmp               143 tools/power/cpupower/utils/helpers/bitmask.c 	for (i = 0; i < bmp->size; i++)
bmp               144 tools/power/cpupower/utils/helpers/bitmask.c 		if (_getbit(bmp, i))
bmp               150 tools/power/cpupower/utils/helpers/bitmask.c int bitmask_isbitset(const struct bitmask *bmp, unsigned int i)
bmp               152 tools/power/cpupower/utils/helpers/bitmask.c 	return _getbit(bmp, i);
bmp               156 tools/power/cpupower/utils/helpers/bitmask.c unsigned int bitmask_first(const struct bitmask *bmp)
bmp               158 tools/power/cpupower/utils/helpers/bitmask.c 	return bitmask_next(bmp, 0);
bmp               162 tools/power/cpupower/utils/helpers/bitmask.c unsigned int bitmask_last(const struct bitmask *bmp)
bmp               165 tools/power/cpupower/utils/helpers/bitmask.c 	unsigned int m = bmp->size;
bmp               166 tools/power/cpupower/utils/helpers/bitmask.c 	for (i = 0; i < bmp->size; i++)
bmp               167 tools/power/cpupower/utils/helpers/bitmask.c 		if (_getbit(bmp, i))
bmp               173 tools/power/cpupower/utils/helpers/bitmask.c unsigned int bitmask_next(const struct bitmask *bmp, unsigned int i)
bmp               176 tools/power/cpupower/utils/helpers/bitmask.c 	for (n = i; n < bmp->size; n++)
bmp               177 tools/power/cpupower/utils/helpers/bitmask.c 		if (_getbit(bmp, n))
bmp               192 tools/power/cpupower/utils/helpers/bitmask.c int bitmask_parselist(const char *buf, struct bitmask *bmp)
bmp               196 tools/power/cpupower/utils/helpers/bitmask.c 	bitmask_clearall(bmp);
bmp               227 tools/power/cpupower/utils/helpers/bitmask.c 		if (b >= bmp->size)
bmp               230 tools/power/cpupower/utils/helpers/bitmask.c 			_setbit(bmp, a, 1);
bmp               236 tools/power/cpupower/utils/helpers/bitmask.c 	bitmask_clearall(bmp);
bmp               275 tools/power/cpupower/utils/helpers/bitmask.c int bitmask_displaylist(char *buf, int buflen, const struct bitmask *bmp)
bmp               283 tools/power/cpupower/utils/helpers/bitmask.c 	rbot = cur = bitmask_first(bmp);
bmp               284 tools/power/cpupower/utils/helpers/bitmask.c 	while (cur < bmp->size) {
bmp               286 tools/power/cpupower/utils/helpers/bitmask.c 		cur = bitmask_next(bmp, cur+1);
bmp               287 tools/power/cpupower/utils/helpers/bitmask.c 		if (cur >= bmp->size || cur > rtop + 1) {
bmp                17 tools/power/cpupower/utils/helpers/bitmask.h void bitmask_free(struct bitmask *bmp);
bmp                19 tools/power/cpupower/utils/helpers/bitmask.h struct bitmask *bitmask_setbit(struct bitmask *bmp, unsigned int i);
bmp                20 tools/power/cpupower/utils/helpers/bitmask.h struct bitmask *bitmask_setall(struct bitmask *bmp);
bmp                21 tools/power/cpupower/utils/helpers/bitmask.h struct bitmask *bitmask_clearall(struct bitmask *bmp);
bmp                23 tools/power/cpupower/utils/helpers/bitmask.h unsigned int bitmask_first(const struct bitmask *bmp);
bmp                24 tools/power/cpupower/utils/helpers/bitmask.h unsigned int bitmask_next(const struct bitmask *bmp, unsigned int i);
bmp                25 tools/power/cpupower/utils/helpers/bitmask.h unsigned int bitmask_last(const struct bitmask *bmp);
bmp                26 tools/power/cpupower/utils/helpers/bitmask.h int bitmask_isallclear(const struct bitmask *bmp);
bmp                27 tools/power/cpupower/utils/helpers/bitmask.h int bitmask_isbitset(const struct bitmask *bmp, unsigned int i);
bmp                29 tools/power/cpupower/utils/helpers/bitmask.h int bitmask_parselist(const char *buf, struct bitmask *bmp);
bmp                30 tools/power/cpupower/utils/helpers/bitmask.h int bitmask_displaylist(char *buf, int len, const struct bitmask *bmp);