/Linux-v4.19/arch/powerpc/sysdev/ |
D | msi_bitmap.c | 19 int msi_bitmap_alloc_hwirqs(struct msi_bitmap *bmp, int num) in msi_bitmap_alloc_hwirqs() argument 24 spin_lock_irqsave(&bmp->lock, flags); in msi_bitmap_alloc_hwirqs() 26 offset = bitmap_find_next_zero_area(bmp->bitmap, bmp->irq_count, 0, in msi_bitmap_alloc_hwirqs() 28 if (offset > bmp->irq_count) in msi_bitmap_alloc_hwirqs() 31 bitmap_set(bmp->bitmap, offset, num); in msi_bitmap_alloc_hwirqs() 32 spin_unlock_irqrestore(&bmp->lock, flags); in msi_bitmap_alloc_hwirqs() 38 spin_unlock_irqrestore(&bmp->lock, flags); in msi_bitmap_alloc_hwirqs() 43 void msi_bitmap_free_hwirqs(struct msi_bitmap *bmp, unsigned int offset, in msi_bitmap_free_hwirqs() argument 51 spin_lock_irqsave(&bmp->lock, flags); in msi_bitmap_free_hwirqs() 52 bitmap_clear(bmp->bitmap, offset, num); in msi_bitmap_free_hwirqs() [all …]
|
/Linux-v4.19/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 == 0) 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 == 0) { 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 == 0) 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 …]
|
/Linux-v4.19/fs/jfs/ |
D | jfs_dmap.c | 70 #define BMAP_LOCK_INIT(bmp) mutex_init(&bmp->db_bmaplock) argument 71 #define BMAP_LOCK(bmp) mutex_lock(&bmp->db_bmaplock) argument 72 #define BMAP_UNLOCK(bmp) mutex_unlock(&bmp->db_bmaplock) argument 77 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno, 83 static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc, 85 static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results); 86 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno, 88 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno, 91 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno, 93 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks, [all …]
|
D | jfs_discard.c | 81 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; in jfs_ioc_trim() local 99 if (minlen > bmp->db_agsize || in jfs_ioc_trim() 100 start >= bmp->db_mapsize || in jfs_ioc_trim() 104 if (end >= bmp->db_mapsize) in jfs_ioc_trim() 105 end = bmp->db_mapsize - 1; in jfs_ioc_trim()
|
D | resize.c | 70 struct bmap *bmp = sbi->bmap; in jfs_extendfs() local 186 if (newFSSize < bmp->db_mapsize) { in jfs_extendfs() 313 mapSize = bmp->db_mapsize; in jfs_extendfs() 316 old_agsize = bmp->db_agsize; /* We need to know if this changes */ in jfs_extendfs() 338 agsizechanged |= (bmp->db_agsize != old_agsize); in jfs_extendfs() 501 j_sb->s_size = cpu_to_le64(bmp->db_mapsize << in jfs_extendfs() 503 j_sb->s_agsize = cpu_to_le32(bmp->db_agsize); in jfs_extendfs()
|
D | jfs_imap.c | 861 struct metapage *mp, *amp, *bmp, *cmp, *dmp; in diFree() local 1037 amp = bmp = cmp = dmp = NULL; in diFree() 1074 if ((rc = diIAGRead(imap, back, &bmp))) in diFree() 1076 biagp = (struct iag *) bmp->data; in diFree() 1101 ciagp = (struct iag *) bmp->data; in diFree() 1115 diagp = (struct iag *) bmp->data; in diFree() 1226 if (bmp) in diFree() 1227 write_metapage(bmp); in diFree() 1288 if (bmp) in diFree() 1289 release_metapage(bmp); in diFree() [all …]
|
D | jfs_extent.c | 515 struct bmap *bmp = sbi->bmap; in extBalloc() local 524 max = (s64) 1 << bmp->db_maxfreebud; in extBalloc() 553 atomic_inc(&bmp->db_active[ag]); in extBalloc() 556 atomic_dec(&bmp->db_active[ji->active_ag]); in extBalloc() 557 atomic_inc(&bmp->db_active[ag]); in extBalloc()
|
/Linux-v4.19/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()
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | msi_bitmap.h | 25 int msi_bitmap_alloc_hwirqs(struct msi_bitmap *bmp, int num); 26 void msi_bitmap_free_hwirqs(struct msi_bitmap *bmp, unsigned int offset, 28 void msi_bitmap_reserve_hwirq(struct msi_bitmap *bmp, unsigned int hwirq); 30 int msi_bitmap_reserve_dt_hwirqs(struct msi_bitmap *bmp); 32 int msi_bitmap_alloc(struct msi_bitmap *bmp, unsigned int irq_count, 34 void msi_bitmap_free(struct msi_bitmap *bmp);
|
/Linux-v4.19/drivers/uwb/ |
D | drp-avail.c | 125 uwb_mas_bm_copy_le(rc->drp_avail.ie.bmp, &avail); in uwb_drp_avail_ie_update() 227 int uwbd_evt_get_drp_avail(struct uwb_event *evt, unsigned long *bmp) in uwbd_evt_get_drp_avail() argument 241 buffer_to_bmp(bmp, drp_evt->bmp, UWB_NUM_MAS/8); in uwbd_evt_get_drp_avail() 275 DECLARE_BITMAP(bmp, UWB_NUM_MAS); in uwbd_evt_handle_rc_drp_avail() 277 result = uwbd_evt_get_drp_avail(evt, bmp); in uwbd_evt_handle_rc_drp_avail() 282 bitmap_copy(rc->drp_avail.global, bmp, UWB_NUM_MAS); in uwbd_evt_handle_rc_drp_avail()
|
/Linux-v4.19/arch/powerpc/platforms/4xx/ |
D | hsta_msi.c | 31 struct msi_bitmap bmp; member 55 irq = msi_bitmap_alloc_hwirqs(&ppc4xx_hsta_msi.bmp, 1); in hsta_setup_msi_irqs() 86 msi_bitmap_free_hwirqs(&ppc4xx_hsta_msi.bmp, irq, 1); in hsta_setup_msi_irqs() 121 msi_bitmap_free_hwirqs(&ppc4xx_hsta_msi.bmp, irq, 1); in hsta_teardown_msi_irqs() 155 ret = msi_bitmap_alloc(&ppc4xx_hsta_msi.bmp, irq_count, dev->of_node); in hsta_msi_probe() 187 msi_bitmap_free(&ppc4xx_hsta_msi.bmp); in hsta_msi_probe()
|
/Linux-v4.19/arch/powerpc/platforms/ps3/ |
D | interrupt.c | 89 struct ps3_bmp bmp __attribute__ ((aligned (PS3_BMP_MINALIGN))); member 115 clear_bit(63 - d->irq, &pd->bmp.mask); in ps3_chip_mask() 136 set_bit(63 - d->irq, &pd->bmp.mask); in ps3_chip_unmask() 651 _dump_64_bmp("stat", &pd->bmp.status, pd->thread_id, func, line); in _dump_bmp() 652 _dump_64_bmp("mask", (u64*)&pd->bmp.mask, pd->thread_id, func, line); in _dump_bmp() 663 _dump_64_bmp("mask", (u64*)&pd->bmp.mask, pd->thread_id, func, line); in _dump_mask() 716 u64 x = (pd->bmp.status & pd->bmp.mask); in ps3_get_irq() 769 ps3_mm_phys_to_lpar(__pa(&pd->bmp))); in ps3_init_IRQ() 772 pd->thread_id, ps3_mm_phys_to_lpar(__pa(&pd->bmp))); in ps3_init_IRQ()
|
/Linux-v4.19/drivers/gpu/drm/nouveau/ |
D | nouveau_bios.c | 1087 uint8_t *bmp = &bios->data[offset], bmp_version_major, bmp_version_minor; in parse_bmp_structure() local 1097 bmp_version_major = bmp[5]; in parse_bmp_structure() 1098 bmp_version_minor = bmp[6]; in parse_bmp_structure() 1164 if (nv_cksum(bmp, 8)) { in parse_bmp_structure() 1175 bios->feature_byte = bmp[9]; in parse_bmp_structure() 1182 bios->init_script_tbls_ptr = ROM16(bmp[legacy_scripts_offset]); in parse_bmp_structure() 1183 bios->extra_init_script_tbl_ptr = ROM16(bmp[legacy_scripts_offset + 2]); in parse_bmp_structure() 1186 bios->legacy.mem_init_tbl_ptr = ROM16(bmp[24]); in parse_bmp_structure() 1187 bios->legacy.sdr_seq_tbl_ptr = ROM16(bmp[26]); in parse_bmp_structure() 1188 bios->legacy.ddr_seq_tbl_ptr = ROM16(bmp[28]); in parse_bmp_structure() [all …]
|
/Linux-v4.19/drivers/ps3/ |
D | ps3-vuart.c | 116 const struct ports_bmp *bmp, const char *func, int line) in _dump_ports_bmp() argument 118 pr_debug("%s:%d: ports_bmp: %016llxh\n", func, line, bmp->status); in _dump_ports_bmp() 874 struct ports_bmp *bmp; member 898 dump_ports_bmp(bus_priv->bmp); in ps3_vuart_irq_handler() 900 port = (BITS_PER_LONG - 1) - __ilog2(bus_priv->bmp->status); in ps3_vuart_irq_handler() 927 BUG_ON(vuart_bus_priv.bmp); in ps3_vuart_bus_interrupt_get() 929 vuart_bus_priv.bmp = kzalloc(sizeof(struct ports_bmp), GFP_KERNEL); in ps3_vuart_bus_interrupt_get() 931 if (!vuart_bus_priv.bmp) { in ps3_vuart_bus_interrupt_get() 937 result = ps3_vuart_irq_setup(PS3_BINDING_CPU_ANY, vuart_bus_priv.bmp, in ps3_vuart_bus_interrupt_get() 963 kfree(vuart_bus_priv.bmp); in ps3_vuart_bus_interrupt_get() [all …]
|
/Linux-v4.19/drivers/scsi/lpfc/ |
D | lpfc_bsg.c | 306 struct lpfc_dmabuf *bmp, *cmp, *rmp; in lpfc_bsg_send_mgmt_cmd_cmp() local 334 bmp = cmdiocbq->context3; in lpfc_bsg_send_mgmt_cmd_cmp() 366 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_cmd_cmp() 367 kfree(bmp); in lpfc_bsg_send_mgmt_cmd_cmp() 398 struct lpfc_dmabuf *bmp = NULL, *cmp = NULL, *rmp = NULL; in lpfc_bsg_send_mgmt_cmd() local 437 bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_bsg_send_mgmt_cmd() 438 if (!bmp) { in lpfc_bsg_send_mgmt_cmd() 442 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_bsg_send_mgmt_cmd() 443 if (!bmp->virt) { in lpfc_bsg_send_mgmt_cmd() 448 INIT_LIST_HEAD(&bmp->list); in lpfc_bsg_send_mgmt_cmd() [all …]
|
D | lpfc_ct.c | 316 lpfc_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp, in lpfc_gen_req() argument 336 icmd->un.genreq64.bdl.addrHigh = putPaddrHigh(bmp->phys); in lpfc_gen_req() 337 icmd->un.genreq64.bdl.addrLow = putPaddrLow(bmp->phys); in lpfc_gen_req() 344 geniocb->context3 = (uint8_t *) bmp; in lpfc_gen_req() 410 struct lpfc_dmabuf *bmp, struct lpfc_nodelist *ndlp, in lpfc_ct_cmd() argument 416 struct ulp_bde64 *bpl = (struct ulp_bde64 *) bmp->virt; in lpfc_ct_cmd() 434 status = lpfc_gen_req(vport, bmp, inmp, outmp, cmpl, ndlp, 0, in lpfc_ct_cmd() 1315 struct lpfc_dmabuf *mp, *bmp; in lpfc_ns_cmd() local 1347 bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_ns_cmd() 1348 if (!bmp) { in lpfc_ns_cmd() [all …]
|
D | lpfc_nvme.c | 417 lpfc_nvme_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp, in lpfc_nvme_gen_req() argument 440 genwqe->context3 = (uint8_t *)bmp; in lpfc_nvme_gen_req() 455 bpl = (struct ulp_bde64 *)bmp->virt; in lpfc_nvme_gen_req() 521 genwqe, pnvme_lsreq, bmp, xmit_len, first_len); in lpfc_nvme_gen_req() 568 struct lpfc_dmabuf *bmp; in lpfc_nvme_ls_req() local 615 bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_nvme_ls_req() 616 if (!bmp) { in lpfc_nvme_ls_req() 623 INIT_LIST_HEAD(&bmp->list); in lpfc_nvme_ls_req() 624 bmp->virt = lpfc_mbuf_alloc(vport->phba, MEM_PRI, &(bmp->phys)); in lpfc_nvme_ls_req() 625 if (!bmp->virt) { in lpfc_nvme_ls_req() [all …]
|
/Linux-v4.19/net/xfrm/ |
D | xfrm_replay.c | 229 if (replay_esn->bmp[nr] & (1U << bitnr)) in xfrm_replay_check_bmp() 262 replay_esn->bmp[nr] &= ~(1U << bitnr); in xfrm_replay_advance_bmp() 267 replay_esn->bmp[i] = 0; in xfrm_replay_advance_bmp() 283 replay_esn->bmp[nr] |= (1U << bitnr); in xfrm_replay_advance_bmp() 482 if (replay_esn->bmp[nr] & (1U << bitnr)) in xfrm_replay_check_esn() 532 replay_esn->bmp[nr] &= ~(1U << bitnr); in xfrm_replay_advance_esn() 537 replay_esn->bmp[i] = 0; in xfrm_replay_advance_esn() 558 replay_esn->bmp[nr] |= (1U << bitnr); in xfrm_replay_advance_esn()
|
/Linux-v4.19/net/netfilter/ |
D | nf_conntrack_h323_asn1.c | 521 unsigned int ext, bmp, i, opt, len = 0, bmp2, bmp2_len; in decode_seq() local 539 bmp = get_bitmap(bs, f->sz); in decode_seq() 541 *(unsigned int *)base = bmp; in decode_seq() 552 if (!((0x80000000U >> (opt++)) & bmp)) /* Not exist */ in decode_seq() 596 bmp |= bmp2 >> f->sz; in decode_seq() 598 *(unsigned int *)base = bmp; in decode_seq()
|
/Linux-v4.19/include/linux/mlx5/ |
D | accel.h | 89 } bmp; member
|
/Linux-v4.19/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()
|
/Linux-v4.19/include/linux/uwb/ |
D | spec.h | 398 DECLARE_BITMAP(bmp, UWB_NUM_MAS); 728 DECLARE_BITMAP(bmp, UWB_NUM_MAS);
|