/kernel/linux/linux-5.10/arch/powerpc/sysdev/ |
D | msi_bitmap.c | 14 int msi_bitmap_alloc_hwirqs(struct msi_bitmap *bmp, int num) in msi_bitmap_alloc_hwirqs() argument 19 spin_lock_irqsave(&bmp->lock, flags); in msi_bitmap_alloc_hwirqs() 21 offset = bitmap_find_next_zero_area(bmp->bitmap, bmp->irq_count, 0, in msi_bitmap_alloc_hwirqs() 23 if (offset > bmp->irq_count) in msi_bitmap_alloc_hwirqs() 26 bitmap_set(bmp->bitmap, offset, num); in msi_bitmap_alloc_hwirqs() 27 spin_unlock_irqrestore(&bmp->lock, flags); in msi_bitmap_alloc_hwirqs() 33 spin_unlock_irqrestore(&bmp->lock, flags); in msi_bitmap_alloc_hwirqs() 38 void msi_bitmap_free_hwirqs(struct msi_bitmap *bmp, unsigned int offset, in msi_bitmap_free_hwirqs() argument 46 spin_lock_irqsave(&bmp->lock, flags); in msi_bitmap_free_hwirqs() 47 bitmap_clear(bmp->bitmap, offset, num); in msi_bitmap_free_hwirqs() [all …]
|
/kernel/linux/linux-5.10/tools/power/cpupower/utils/helpers/ |
D | bitmask.c | 26 struct bitmask *bmp; in bitmask_alloc() local 28 bmp = malloc(sizeof(*bmp)); in bitmask_alloc() 29 if (!bmp) in bitmask_alloc() 31 bmp->size = n; in bitmask_alloc() 32 bmp->maskp = calloc(longsperbits(n), sizeof(unsigned long)); in bitmask_alloc() 33 if (!bmp->maskp) { in bitmask_alloc() 34 free(bmp); in bitmask_alloc() 37 return bmp; in bitmask_alloc() 41 void bitmask_free(struct bitmask *bmp) in bitmask_free() argument 43 if (!bmp) in bitmask_free() [all …]
|
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 …]
|
/kernel/linux/linux-5.10/fs/jfs/ |
D | jfs_dmap.c | 57 #define BMAP_LOCK_INIT(bmp) mutex_init(&bmp->db_bmaplock) argument 58 #define BMAP_LOCK(bmp) mutex_lock(&bmp->db_bmaplock) argument 59 #define BMAP_UNLOCK(bmp) mutex_unlock(&bmp->db_bmaplock) argument 64 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno, 70 static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc, 72 static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results); 73 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno, 75 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno, 78 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno, 80 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks, [all …]
|
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()
|
D | resize.c | 58 struct bmap *bmp = sbi->bmap; in jfs_extendfs() local 174 if (newFSSize < bmp->db_mapsize) { in jfs_extendfs() 301 mapSize = bmp->db_mapsize; in jfs_extendfs() 304 old_agsize = bmp->db_agsize; /* We need to know if this changes */ in jfs_extendfs() 326 agsizechanged |= (bmp->db_agsize != old_agsize); in jfs_extendfs() 489 j_sb->s_size = cpu_to_le64(bmp->db_mapsize << in jfs_extendfs() 491 j_sb->s_agsize = cpu_to_le32(bmp->db_agsize); in jfs_extendfs()
|
D | jfs_imap.c | 848 struct metapage *mp, *amp, *bmp, *cmp, *dmp; in diFree() local 1024 amp = bmp = cmp = dmp = NULL; in diFree() 1061 if ((rc = diIAGRead(imap, back, &bmp))) in diFree() 1063 biagp = (struct iag *) bmp->data; in diFree() 1088 ciagp = (struct iag *) bmp->data; in diFree() 1102 diagp = (struct iag *) bmp->data; in diFree() 1213 if (bmp) in diFree() 1214 write_metapage(bmp); in diFree() 1275 if (bmp) in diFree() 1276 release_metapage(bmp); in diFree() [all …]
|
D | jfs_extent.c | 502 struct bmap *bmp = sbi->bmap; in extBalloc() local 511 max = (s64) 1 << bmp->db_maxfreebud; in extBalloc() 540 atomic_inc(&bmp->db_active[ag]); in extBalloc() 543 atomic_dec(&bmp->db_active[ji->active_ag]); in extBalloc() 544 atomic_inc(&bmp->db_active[ag]); in extBalloc()
|
/kernel/linux/linux-5.10/fs/hpfs/ |
D | alloc.c | 72 __le32 *bmp; in chk_if_allocated() local 73 if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "chk"))) goto fail; in chk_if_allocated() 74 if ((le32_to_cpu(bmp[(sec & 0x3fff) >> 5]) >> (sec & 0x1f)) & 1) { in chk_if_allocated() 81 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto fail; in chk_if_allocated() 82 if ((le32_to_cpu(bmp[ssec >> 5]) >> (ssec & 0x1f)) & 1) { in chk_if_allocated() 118 __le32 *bmp; in alloc_in_bmp() local 130 if (!(bmp = hpfs_map_bitmap(s, near >> 14, &qbh, "aib"))) goto uls; in alloc_in_bmp() 132 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto uls; in alloc_in_bmp() 134 if (!tstbits(bmp, nr, n + forward)) { in alloc_in_bmp() 139 while ((a = tstbits(bmp, q, n + forward)) != 0) { in alloc_in_bmp() [all …]
|
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);
|
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()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
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);
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/4xx/ |
D | hsta_msi.c | 27 struct msi_bitmap bmp; member 51 irq = msi_bitmap_alloc_hwirqs(&ppc4xx_hsta_msi.bmp, 1); in hsta_setup_msi_irqs() 82 msi_bitmap_free_hwirqs(&ppc4xx_hsta_msi.bmp, irq, 1); in hsta_setup_msi_irqs() 117 msi_bitmap_free_hwirqs(&ppc4xx_hsta_msi.bmp, irq, 1); in hsta_teardown_msi_irqs() 151 ret = msi_bitmap_alloc(&ppc4xx_hsta_msi.bmp, irq_count, dev->of_node); in hsta_msi_probe() 183 msi_bitmap_free(&ppc4xx_hsta_msi.bmp); in hsta_msi_probe()
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/ps3/ |
D | interrupt.c | 77 struct ps3_bmp bmp __attribute__ ((aligned (PS3_BMP_MINALIGN))); member 103 clear_bit(63 - d->irq, &pd->bmp.mask); in ps3_chip_mask() 124 set_bit(63 - d->irq, &pd->bmp.mask); in ps3_chip_unmask() 639 _dump_64_bmp("stat", &pd->bmp.status, pd->thread_id, func, line); in _dump_bmp() 640 _dump_64_bmp("mask", (u64*)&pd->bmp.mask, pd->thread_id, func, line); in _dump_bmp() 651 _dump_64_bmp("mask", (u64*)&pd->bmp.mask, pd->thread_id, func, line); in _dump_mask() 704 u64 x = (pd->bmp.status & pd->bmp.mask); in ps3_get_irq() 757 ps3_mm_phys_to_lpar(__pa(&pd->bmp))); in ps3_init_IRQ() 760 pd->thread_id, ps3_mm_phys_to_lpar(__pa(&pd->bmp))); in ps3_init_IRQ()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/ |
D | nouveau_bios.c | 1085 uint8_t *bmp = &bios->data[offset], bmp_version_major, bmp_version_minor; in parse_bmp_structure() local 1095 bmp_version_major = bmp[5]; in parse_bmp_structure() 1096 bmp_version_minor = bmp[6]; in parse_bmp_structure() 1162 if (nv_cksum(bmp, 8)) { in parse_bmp_structure() 1173 bios->feature_byte = bmp[9]; in parse_bmp_structure() 1180 bios->init_script_tbls_ptr = ROM16(bmp[legacy_scripts_offset]); in parse_bmp_structure() 1181 bios->extra_init_script_tbl_ptr = ROM16(bmp[legacy_scripts_offset + 2]); in parse_bmp_structure() 1184 bios->legacy.mem_init_tbl_ptr = ROM16(bmp[24]); in parse_bmp_structure() 1185 bios->legacy.sdr_seq_tbl_ptr = ROM16(bmp[26]); in parse_bmp_structure() 1186 bios->legacy.ddr_seq_tbl_ptr = ROM16(bmp[28]); in parse_bmp_structure() [all …]
|
/kernel/linux/linux-5.10/drivers/ps3/ |
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() 917 vuart_bus_priv.bmp = kzalloc(sizeof(struct ports_bmp), GFP_KERNEL); in ps3_vuart_bus_interrupt_get() 919 if (!vuart_bus_priv.bmp) { in ps3_vuart_bus_interrupt_get() 924 result = ps3_vuart_irq_setup(PS3_BINDING_CPU_ANY, vuart_bus_priv.bmp, in ps3_vuart_bus_interrupt_get() 950 kfree(vuart_bus_priv.bmp); in ps3_vuart_bus_interrupt_get() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/lpfc/ |
D | lpfc_bsg.c | 307 struct lpfc_dmabuf *bmp, *cmp, *rmp; in lpfc_bsg_send_mgmt_cmd_cmp() local 335 bmp = cmdiocbq->context3; in lpfc_bsg_send_mgmt_cmd_cmp() 367 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_cmd_cmp() 368 kfree(bmp); in lpfc_bsg_send_mgmt_cmd_cmp() 399 struct lpfc_dmabuf *bmp = NULL, *cmp = NULL, *rmp = NULL; in lpfc_bsg_send_mgmt_cmd() local 438 bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_bsg_send_mgmt_cmd() 439 if (!bmp) { in lpfc_bsg_send_mgmt_cmd() 443 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_bsg_send_mgmt_cmd() 444 if (!bmp->virt) { in lpfc_bsg_send_mgmt_cmd() 449 INIT_LIST_HEAD(&bmp->list); in lpfc_bsg_send_mgmt_cmd() [all …]
|
D | lpfc_ct.c | 315 lpfc_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp, in lpfc_gen_req() argument 335 icmd->un.genreq64.bdl.addrHigh = putPaddrHigh(bmp->phys); in lpfc_gen_req() 336 icmd->un.genreq64.bdl.addrLow = putPaddrLow(bmp->phys); in lpfc_gen_req() 343 geniocb->context3 = (uint8_t *) bmp; in lpfc_gen_req() 411 struct lpfc_dmabuf *bmp, struct lpfc_nodelist *ndlp, in lpfc_ct_cmd() argument 417 struct ulp_bde64 *bpl = (struct ulp_bde64 *) bmp->virt; in lpfc_ct_cmd() 435 status = lpfc_gen_req(vport, bmp, inmp, outmp, cmpl, ndlp, 0, in lpfc_ct_cmd() 1591 struct lpfc_dmabuf *mp, *bmp; in lpfc_ns_cmd() local 1624 bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_ns_cmd() 1625 if (!bmp) { in lpfc_ns_cmd() [all …]
|
D | lpfc_nvme.c | 541 lpfc_nvme_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp, in lpfc_nvme_gen_req() argument 565 genwqe->context3 = (uint8_t *)bmp; in lpfc_nvme_gen_req() 580 bpl = (struct ulp_bde64 *)bmp->virt; in lpfc_nvme_gen_req() 667 genwqe, pnvme_lsreq, bmp, xmit_len, first_len); in lpfc_nvme_gen_req() 693 struct lpfc_dmabuf *bmp; in __lpfc_nvme_ls_req() local 732 bmp = kmalloc(sizeof(*bmp), GFP_KERNEL); in __lpfc_nvme_ls_req() 733 if (!bmp) { in __lpfc_nvme_ls_req() 741 bmp->virt = lpfc_mbuf_alloc(vport->phba, MEM_PRI, &(bmp->phys)); in __lpfc_nvme_ls_req() 742 if (!bmp->virt) { in __lpfc_nvme_ls_req() 747 kfree(bmp); in __lpfc_nvme_ls_req() [all …]
|
/kernel/linux/linux-5.10/net/xfrm/ |
D | xfrm_replay.c | 219 if (replay_esn->bmp[nr] & (1U << bitnr)) in xfrm_replay_check_bmp() 252 replay_esn->bmp[nr] &= ~(1U << bitnr); in xfrm_replay_advance_bmp() 257 replay_esn->bmp[i] = 0; in xfrm_replay_advance_bmp() 273 replay_esn->bmp[nr] |= (1U << bitnr); in xfrm_replay_advance_bmp() 472 if (replay_esn->bmp[nr] & (1U << bitnr)) in xfrm_replay_check_esn() 522 replay_esn->bmp[nr] &= ~(1U << bitnr); in xfrm_replay_advance_esn() 527 replay_esn->bmp[i] = 0; in xfrm_replay_advance_esn() 548 replay_esn->bmp[nr] |= (1U << bitnr); in xfrm_replay_advance_esn()
|
/kernel/linux/linux-5.10/net/netfilter/ |
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()
|
/kernel/linux/linux-5.10/fs/hfsplus/ |
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()
|
/kernel/linux/linux-5.10/include/linux/mlx5/ |
D | accel.h | 89 } bmp; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/enetc/ |
D | enetc_hw.h | 179 #define ENETC_PVCLCTR_OVTPIDL(bmp) ((bmp) & 0xff) /* VLAN_TYPE */ argument 194 #define ENETC_PSICFGR0_SIVC(bmp) (((bmp) & 0xff) << 24) /* VLAN_TYPE */ argument
|
/kernel/linux/linux-5.10/arch/arm/boot/dts/ |
D | aspeed-bmc-opp-witherspoon.dts | 195 io-channels = <&bmp 1>; 354 bmp: bmp280@77 { label
|