/linux-6.3-rc2/arch/powerpc/sysdev/ |
A D | msi_bitmap.c | 22 offset = bitmap_find_next_zero_area(bmp->bitmap, bmp->irq_count, 0, in msi_bitmap_alloc_hwirqs() 80 if (!bmp->of_node) in msi_bitmap_reserve_dt_hwirqs() 96 bitmap_allocate_region(bmp->bitmap, 0, get_count_order(bmp->irq_count)); in msi_bitmap_reserve_dt_hwirqs() 98 spin_lock(&bmp->lock); in msi_bitmap_reserve_dt_hwirqs() 128 if (!bmp->bitmap) in msi_bitmap_alloc() 135 if (!bmp->bitmap) { in msi_bitmap_alloc() 151 kfree(bmp->bitmap); in msi_bitmap_free() 153 bmp->bitmap = NULL; in msi_bitmap_free() 160 struct msi_bitmap bmp; in test_basics() local 212 msi_bitmap_free(&bmp); in test_basics() [all …]
|
/linux-6.3-rc2/tools/power/cpupower/utils/helpers/ |
A D | bitmask.c | 28 bmp = malloc(sizeof(*bmp)); in bitmask_alloc() 29 if (!bmp) in bitmask_alloc() 31 bmp->size = n; in bitmask_alloc() 34 free(bmp); in bitmask_alloc() 37 return bmp; in bitmask_alloc() 43 if (!bmp) in bitmask_free() 45 free(bmp->maskp); in bitmask_free() 47 free(bmp); in bitmask_free() 118 return bmp; in bitmask_setbit() 127 return bmp; in bitmask_setall() [all …]
|
A D | bitmask.h | 17 void bitmask_free(struct bitmask *bmp); 19 struct bitmask *bitmask_setbit(struct bitmask *bmp, unsigned int i); 20 struct bitmask *bitmask_setall(struct bitmask *bmp); 21 struct bitmask *bitmask_clearall(struct bitmask *bmp); 23 unsigned int bitmask_first(const struct bitmask *bmp); 24 unsigned int bitmask_next(const struct bitmask *bmp, unsigned int i); 25 unsigned int bitmask_last(const struct bitmask *bmp); 26 int bitmask_isallclear(const struct bitmask *bmp); 27 int bitmask_isbitset(const struct bitmask *bmp, unsigned int i); 29 int bitmask_parselist(const char *buf, struct bitmask *bmp); [all …]
|
/linux-6.3-rc2/fs/jfs/ |
A D | jfs_dmap.c | 58 #define BMAP_LOCK(bmp) mutex_lock(&bmp->db_bmaplock) argument 59 #define BMAP_UNLOCK(bmp) mutex_unlock(&bmp->db_bmaplock) argument 219 memset(bmp->db_active, 0, sizeof(bmp->db_active)); in dbMount() 626 avgfree = (u32)bmp->db_nfree / bmp->db_numag; in dbNextAG() 2385 if ((bmp->db_agfree[agno] == bmp->db_agsize && agno == bmp->db_maxag) || in dbFreeBits() 2390 if (bmp->db_agfree[bmp->db_maxag] != in dbFreeBits() 2399 if (bmp->db_agpref > bmp->db_maxag) in dbFreeBits() 2400 bmp->db_agpref = bmp->db_maxag; in dbFreeBits() 3392 bmp->db_agfree[n] += bmp->db_agfree[i]; in dbExtendFS() 3404 bmp->db_maxag = bmp->db_maxag / k; in dbExtendFS() [all …]
|
A D | jfs_discard.c | 68 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; in jfs_ioc_trim() local 86 if (minlen > bmp->db_agsize || in jfs_ioc_trim() 87 start >= bmp->db_mapsize || in jfs_ioc_trim() 91 if (end >= bmp->db_mapsize) in jfs_ioc_trim() 92 end = bmp->db_mapsize - 1; in jfs_ioc_trim()
|
A D | resize.c | 58 struct bmap *bmp = sbi->bmap; in jfs_extendfs() local 173 if (newFSSize < bmp->db_mapsize) { in jfs_extendfs() 300 mapSize = bmp->db_mapsize; in jfs_extendfs() 303 old_agsize = bmp->db_agsize; /* We need to know if this changes */ in jfs_extendfs() 325 agsizechanged |= (bmp->db_agsize != old_agsize); in jfs_extendfs() 488 j_sb->s_size = cpu_to_le64(bmp->db_mapsize << in jfs_extendfs() 490 j_sb->s_agsize = cpu_to_le32(bmp->db_agsize); in jfs_extendfs()
|
A D | jfs_extent.c | 305 struct bmap *bmp = sbi->bmap; in extBalloc() local 314 max = (s64) 1 << bmp->db_maxfreebud; in extBalloc() 343 atomic_inc(&bmp->db_active[ag]); in extBalloc() 346 atomic_dec(&bmp->db_active[ji->active_ag]); in extBalloc() 347 atomic_inc(&bmp->db_active[ag]); in extBalloc()
|
A D | jfs_imap.c | 1211 if (bmp) in diFree() 1212 write_metapage(bmp); in diFree() 1273 if (bmp) in diFree() 1274 release_metapage(bmp); in diFree() 2027 &bmp))) { in diAllocBit() 2054 if (bmp) in diAllocBit() 2084 if (bmp) { in diAllocBit() 2086 write_metapage(bmp); in diAllocBit() 2368 if (bmp) in diNewExt() 2369 write_metapage(bmp); in diNewExt() [all …]
|
/linux-6.3-rc2/fs/hpfs/ |
A D | alloc.c | 72 __le32 *bmp; in chk_if_allocated() local 118 __le32 *bmp; in alloc_in_bmp() local 134 if (!tstbits(bmp, nr, n + forward)) { in alloc_in_bmp() 157 if (!le32_to_cpu(bmp[i])) goto cont; in alloc_in_bmp() 299 __le32 *bmp; in hpfs_alloc_if_possible() local 318 __le32 *bmp; in hpfs_free_sectors() local 364 __le32 *bmp; in hpfs_check_free_dnodes() local 387 if (bmp) { in hpfs_check_free_dnodes() 416 __le32 *bmp; in hpfs_free_dnode() local 492 while (tstbits(bmp, *idx, 1)) { in find_run() [all …]
|
A D | hpfs_fn.h | 187 static inline unsigned tstbits(__le32 *bmp, unsigned b, unsigned n) in tstbits() argument 191 if (!((le32_to_cpu(bmp[(b & 0x3fff) >> 5]) >> (b & 0x1f)) & 1)) return 1; in tstbits() 193 if (!((le32_to_cpu(bmp[((b+i) & 0x3fff) >> 5]) >> ((b+i) & 0x1f)) & 1)) in tstbits() 293 __le32 *hpfs_load_bitmap_directory(struct super_block *, secno bmp);
|
A D | map.c | 112 __le32 *hpfs_load_bitmap_directory(struct super_block *s, secno bmp) in hpfs_load_bitmap_directory() argument 123 __le32 *d = hpfs_map_sector(s, bmp+i, &bh, n - i - 1); in hpfs_load_bitmap_directory()
|
/linux-6.3-rc2/arch/powerpc/include/asm/ |
A D | msi_bitmap.h | 20 int msi_bitmap_alloc_hwirqs(struct msi_bitmap *bmp, int num); 21 void msi_bitmap_free_hwirqs(struct msi_bitmap *bmp, unsigned int offset, 23 void msi_bitmap_reserve_hwirq(struct msi_bitmap *bmp, unsigned int hwirq); 25 int msi_bitmap_reserve_dt_hwirqs(struct msi_bitmap *bmp); 27 int msi_bitmap_alloc(struct msi_bitmap *bmp, unsigned int irq_count, 29 void msi_bitmap_free(struct msi_bitmap *bmp);
|
/linux-6.3-rc2/arch/powerpc/platforms/4xx/ |
A D | hsta_msi.c | 28 struct msi_bitmap bmp; member 52 irq = msi_bitmap_alloc_hwirqs(&ppc4xx_hsta_msi.bmp, 1); in hsta_setup_msi_irqs() 83 msi_bitmap_free_hwirqs(&ppc4xx_hsta_msi.bmp, irq, 1); in hsta_setup_msi_irqs() 115 msi_bitmap_free_hwirqs(&ppc4xx_hsta_msi.bmp, irq, 1); in hsta_teardown_msi_irqs() 150 ret = msi_bitmap_alloc(&ppc4xx_hsta_msi.bmp, irq_count, dev->of_node); in hsta_msi_probe() 182 msi_bitmap_free(&ppc4xx_hsta_msi.bmp); in hsta_msi_probe()
|
/linux-6.3-rc2/arch/powerpc/platforms/ps3/ |
A D | interrupt.c | 78 struct ps3_bmp bmp __attribute__ ((aligned (PS3_BMP_MINALIGN))); member 104 clear_bit(63 - d->irq, &pd->bmp.mask); in ps3_chip_mask() 125 set_bit(63 - d->irq, &pd->bmp.mask); in ps3_chip_unmask() 640 _dump_64_bmp("stat", &pd->bmp.status, pd->thread_id, func, line); in _dump_bmp() 641 _dump_64_bmp("mask", (u64*)&pd->bmp.mask, pd->thread_id, func, line); in _dump_bmp() 652 _dump_64_bmp("mask", (u64*)&pd->bmp.mask, pd->thread_id, func, line); in _dump_mask() 705 u64 x = (pd->bmp.status & pd->bmp.mask); in ps3_get_irq() 758 ps3_mm_phys_to_lpar(__pa(&pd->bmp))); in ps3_init_IRQ() 761 pd->thread_id, ps3_mm_phys_to_lpar(__pa(&pd->bmp))); in ps3_init_IRQ()
|
/linux-6.3-rc2/drivers/scsi/lpfc/ |
A D | lpfc_ct.c | 133 if (bmp) { in lpfc_ct_unsol_cmpl() 134 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_ct_unsol_cmpl() 135 kfree(bmp); in lpfc_ct_unsol_cmpl() 181 bmp = kmalloc(sizeof(*bmp), GFP_KERNEL); in lpfc_ct_reject_event() 182 if (!bmp) { in lpfc_ct_reject_event() 187 bmp->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &bmp->phys); in lpfc_ct_reject_event() 259 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_ct_reject_event() 261 kfree(bmp); in lpfc_ct_reject_event() 2153 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_ns_cmd() 3712 bmp = kmalloc(sizeof(*bmp), GFP_KERNEL); in lpfc_vmid_cmd() [all …]
|
A D | lpfc_bsg.c | 358 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_cmd_cmp() 359 kfree(bmp); in lpfc_bsg_send_mgmt_cmd_cmp() 420 if (!bmp) { in lpfc_bsg_send_mgmt_cmd() 424 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_bsg_send_mgmt_cmd() 518 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_cmd() 519 kfree(bmp); in lpfc_bsg_send_mgmt_cmd() 1418 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_issue_ct_rsp_cmp() 1419 kfree(bmp); in lpfc_issue_ct_rsp_cmp() 1595 if (!bmp) { in lpfc_bsg_send_mgmt_rsp() 1600 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_bsg_send_mgmt_rsp() [all …]
|
A D | lpfc_nvme.c | 412 genwqe->bpl_dmabuf = bmp; in lpfc_nvme_gen_req() 434 bpl = (struct ulp_bde64 *)bmp->virt; in lpfc_nvme_gen_req() 547 struct lpfc_dmabuf *bmp; in __lpfc_nvme_ls_req() local 588 bmp = kmalloc(sizeof(*bmp), GFP_KERNEL); in __lpfc_nvme_ls_req() 589 if (!bmp) { in __lpfc_nvme_ls_req() 597 bmp->virt = lpfc_mbuf_alloc(vport->phba, MEM_PRI, &(bmp->phys)); in __lpfc_nvme_ls_req() 598 if (!bmp->virt) { in __lpfc_nvme_ls_req() 603 kfree(bmp); in __lpfc_nvme_ls_req() 607 INIT_LIST_HEAD(&bmp->list); in __lpfc_nvme_ls_req() 638 lpfc_mbuf_free(vport->phba, bmp->virt, bmp->phys); in __lpfc_nvme_ls_req() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/nouveau/ |
A D | nouveau_bios.c | 1098 bmp_version_major = bmp[5]; in parse_bmp_structure() 1099 bmp_version_minor = bmp[6]; in parse_bmp_structure() 1165 if (nv_cksum(bmp, 8)) { in parse_bmp_structure() 1176 bios->feature_byte = bmp[9]; in parse_bmp_structure() 1188 bios->legacy.sdr_seq_tbl_ptr = ROM16(bmp[26]); in parse_bmp_structure() 1189 bios->legacy.ddr_seq_tbl_ptr = ROM16(bmp[28]); in parse_bmp_structure() 1200 bios->fmaxvco = ROM32(bmp[67]); in parse_bmp_structure() 1201 bios->fminvco = ROM32(bmp[71]); in parse_bmp_structure() 1216 bios->fp.fptablepointer = ROM16(bmp[105]); in parse_bmp_structure() 1217 bios->fp.fpxlatetableptr = ROM16(bmp[107]); in parse_bmp_structure() [all …]
|
/linux-6.3-rc2/drivers/ps3/ |
A D | ps3-vuart.c | 104 const struct ports_bmp *bmp, const char *func, int line) in _dump_ports_bmp() argument 106 pr_debug("%s:%d: ports_bmp: %016llxh\n", func, line, bmp->status); in _dump_ports_bmp() 862 struct ports_bmp *bmp; member 886 dump_ports_bmp(bus_priv->bmp); in ps3_vuart_irq_handler() 888 port = (BITS_PER_LONG - 1) - __ilog2(bus_priv->bmp->status); in ps3_vuart_irq_handler() 915 BUG_ON(vuart_bus_priv.bmp); in ps3_vuart_bus_interrupt_get() 919 if (!vuart_bus_priv.bmp) { in ps3_vuart_bus_interrupt_get() 950 kfree(vuart_bus_priv.bmp); in ps3_vuart_bus_interrupt_get() 951 vuart_bus_priv.bmp = NULL; in ps3_vuart_bus_interrupt_get() 974 kfree(vuart_bus_priv.bmp); in ps3_vuart_bus_interrupt_put() [all …]
|
/linux-6.3-rc2/net/xfrm/ |
A D | xfrm_replay.c | 245 if (replay_esn->bmp[nr] & (1U << bitnr)) in xfrm_replay_check_bmp() 278 replay_esn->bmp[nr] &= ~(1U << bitnr); in xfrm_replay_advance_bmp() 283 replay_esn->bmp[i] = 0; in xfrm_replay_advance_bmp() 299 replay_esn->bmp[nr] |= (1U << bitnr); in xfrm_replay_advance_bmp() 498 if (replay_esn->bmp[nr] & (1U << bitnr)) in xfrm_replay_check_esn() 579 replay_esn->bmp[nr] &= ~(1U << bitnr); in xfrm_replay_advance_esn() 584 replay_esn->bmp[i] = 0; in xfrm_replay_advance_esn() 605 replay_esn->bmp[nr] |= (1U << bitnr); in xfrm_replay_advance_esn()
|
/linux-6.3-rc2/net/netfilter/ |
A D | nf_conntrack_h323_asn1.c | 518 unsigned int ext, bmp, i, opt, len = 0, bmp2, bmp2_len; in decode_seq() local 536 bmp = get_bitmap(bs, f->sz); in decode_seq() 538 *(unsigned int *)base = bmp; in decode_seq() 549 if (!((0x80000000U >> (opt++)) & bmp)) /* Not exist */ in decode_seq() 593 bmp |= bmp2 >> f->sz; in decode_seq() 595 *(unsigned int *)base = bmp; in decode_seq()
|
/linux-6.3-rc2/fs/hfsplus/ |
A D | xattr.c | 62 char *bmp; in hfsplus_init_header_node() local 107 bmp = buf + offset; in hfsplus_init_header_node() 112 memset(bmp, 0xFF, used_bmp_bytes); in hfsplus_init_header_node() 113 bmp += used_bmp_bytes; in hfsplus_init_header_node() 116 *bmp = ~(0xFF >> used_nodes); in hfsplus_init_header_node()
|
/linux-6.3-rc2/fs/ntfs3/ |
A D | index.c | 1465 struct ATTRIB *bmp, *alloc; in indx_add_allocate() local 1469 err = indx_find_free(indx, ni, &bit, &bmp); in indx_add_allocate() 1474 bmp = NULL; in indx_add_allocate() 1476 if (bmp->non_res) { in indx_add_allocate() 1477 bmp_size = le64_to_cpu(bmp->nres.data_size); in indx_add_allocate() 1478 bmp_size_v = le64_to_cpu(bmp->nres.valid_size); in indx_add_allocate() 1480 bmp_size = bmp_size_v = le32_to_cpu(bmp->res.data_size); in indx_add_allocate() 1488 if (bmp) { in indx_add_allocate() 1501 if (bmp) in indx_add_allocate() 1511 if (bmp) in indx_add_allocate()
|
/linux-6.3-rc2/drivers/net/ethernet/freescale/enetc/ |
A D | enetc_hw.h | 181 #define ENETC_PVCLCTR_OVTPIDL(bmp) ((bmp) & 0xff) /* VLAN_TYPE */ argument 198 #define ENETC_PSICFGR0_SIVC(bmp) (((bmp) & 0xff) << 24) /* VLAN_TYPE */ argument
|
/linux-6.3-rc2/arch/arm/boot/dts/ |
A D | aspeed-bmc-opp-witherspoon.dts | 195 io-channels = <&bmp 1>; 354 bmp: bmp280@77 { label
|