/linux-master/tools/power/cpupower/utils/helpers/ |
H 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...] |
H A D | bitmask.c | 26 struct bitmask *bmp; local 28 bmp = malloc(sizeof(*bmp)); 29 if (!bmp) 31 bmp->size = n; 32 bmp->maskp = calloc(longsperbits(n), sizeof(unsigned long)); 33 if (!bmp->maskp) { 34 free(bmp); 37 return bmp; 41 void bitmask_free(struct bitmask *bmp) argument 62 _getbit(const struct bitmask *bmp, unsigned int n) argument 71 _setbit(struct bitmask *bmp, unsigned int n, unsigned int v) argument 115 bitmask_setbit(struct bitmask *bmp, unsigned int i) argument 122 bitmask_setall(struct bitmask *bmp) argument 131 bitmask_clearall(struct bitmask *bmp) argument 140 bitmask_isallclear(const struct bitmask *bmp) argument 150 bitmask_isbitset(const struct bitmask *bmp, unsigned int i) argument 156 bitmask_first(const struct bitmask *bmp) argument 162 bitmask_last(const struct bitmask *bmp) argument 173 bitmask_next(const struct bitmask *bmp, unsigned int i) argument 192 bitmask_parselist(const char *buf, struct bitmask *bmp) argument 275 bitmask_displaylist(char *buf, int buflen, const struct bitmask *bmp) argument [all...] |
/linux-master/arch/powerpc/sysdev/ |
H A D | msi_bitmap.c | 15 int msi_bitmap_alloc_hwirqs(struct msi_bitmap *bmp, int num) argument 20 spin_lock_irqsave(&bmp->lock, flags); 22 offset = bitmap_find_next_zero_area(bmp->bitmap, bmp->irq_count, 0, 24 if (offset > bmp->irq_count) 27 bitmap_set(bmp->bitmap, offset, num); 28 spin_unlock_irqrestore(&bmp->lock, flags); 34 spin_unlock_irqrestore(&bmp->lock, flags); 39 void msi_bitmap_free_hwirqs(struct msi_bitmap *bmp, unsigned int offset, argument 47 spin_lock_irqsave(&bmp 53 msi_bitmap_reserve_hwirq(struct msi_bitmap *bmp, unsigned int hwirq) argument 75 msi_bitmap_reserve_dt_hwirqs(struct msi_bitmap *bmp) argument 112 msi_bitmap_alloc(struct msi_bitmap *bmp, unsigned int irq_count, struct device_node *of_node) argument 148 msi_bitmap_free(struct msi_bitmap *bmp) argument 160 struct msi_bitmap bmp; local 226 struct msi_bitmap bmp; local [all...] |
/linux-master/arch/powerpc/include/asm/ |
H 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-master/fs/jfs/ |
H A D | jfs_dmap.c | 57 #define BMAP_LOCK_INIT(bmp) mutex_init(&bmp->db_bmaplock) 58 #define BMAP_LOCK(bmp) mutex_lock(&bmp->db_bmaplock) 59 #define BMAP_UNLOCK(bmp) mutex_unlock(&bmp->db_bmaplock) 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, struc 155 struct bmap *bmp; local 267 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; local 290 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; local 362 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; local 454 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; local 635 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; local 729 struct bmap *bmp; local 992 struct bmap *bmp; local 1082 dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno, int nblocks) argument 1214 dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno, int nblocks, int l2nb, s64 * results) argument 1323 dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb, s64 * results) argument 1521 dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results) argument 1579 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; local 1684 dbFindCtl(struct bmap * bmp, int l2nb, int level, s64 * blkno) argument 1803 dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno, s64 * results) argument 1954 dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks, int l2nb, s64 * results) argument 2020 dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno, int nblocks) argument 2075 dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno, int nblocks) argument 2137 dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno, int nblocks) argument 2284 dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno, int nblocks) argument 2468 dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc, int level) argument 3190 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; local 3238 dbAllocDmapBU(struct bmap * bmp, struct dmap * dp, s64 blkno, int nblocks) argument 3370 struct bmap *bmp = sbi->bmap; local 3633 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; local [all...] |
H A D | jfs_discard.c | 68 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; local 86 if (minlen > bmp->db_agsize || 87 start >= bmp->db_mapsize || 91 if (end >= bmp->db_mapsize) 92 end = bmp->db_mapsize - 1;
|
H A D | jfs_extent.c | 305 struct bmap *bmp = sbi->bmap; local 316 if (bmp->db_maxfreebud == -1) 319 max = (s64) 1 << bmp->db_maxfreebud; 348 atomic_inc(&bmp->db_active[ag]); 351 atomic_dec(&bmp->db_active[ji->active_ag]); 352 atomic_inc(&bmp->db_active[ag]);
|
H A D | resize.c | 58 struct bmap *bmp = sbi->bmap; local 173 if (newFSSize < bmp->db_mapsize) { 300 mapSize = bmp->db_mapsize; 303 old_agsize = bmp->db_agsize; /* We need to know if this changes */ 325 agsizechanged |= (bmp->db_agsize != old_agsize); 488 j_sb->s_size = cpu_to_le64(bmp->db_mapsize << 490 j_sb->s_agsize = cpu_to_le32(bmp->db_agsize);
|
H A D | jfs_imap.c | 847 struct metapage *mp, *amp, *bmp, *cmp, *dmp; local 1023 amp = bmp = cmp = dmp = NULL; 1060 if ((rc = diIAGRead(imap, back, &bmp))) 1062 biagp = (struct iag *) bmp->data; 1087 ciagp = (struct iag *) bmp->data; 1101 diagp = (struct iag *) bmp->data; 1212 if (bmp) 1213 write_metapage(bmp); 1274 if (bmp) 1275 release_metapage(bmp); 2009 struct metapage *amp = NULL, *bmp = NULL; local 2156 struct metapage *amp, *bmp, *cmp, *dmp; local [all...] |
/linux-master/fs/hpfs/ |
H A D | alloc.c | 72 __le32 *bmp; local 73 if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "chk"))) goto fail; 74 if ((le32_to_cpu(bmp[(sec & 0x3fff) >> 5]) >> (sec & 0x1f)) & 1) { 81 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto fail; 82 if ((le32_to_cpu(bmp[ssec >> 5]) >> (ssec & 0x1f)) & 1) { 118 __le32 *bmp; local 130 if (!(bmp = hpfs_map_bitmap(s, near >> 14, &qbh, "aib"))) goto uls; 132 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto uls; 134 if (!tstbits(bmp, nr, n + forward)) { 139 while ((a = tstbits(bmp, 299 __le32 *bmp; local 318 __le32 *bmp; local 364 __le32 *bmp; local 416 __le32 *bmp; local 489 find_run(__le32 *bmp, unsigned *idx) argument 530 __le32 *bmp; local [all...] |
H A D | hpfs_fn.h | 187 static inline unsigned tstbits(__le32 *bmp, unsigned b, unsigned n) argument 191 if (!((le32_to_cpu(bmp[(b & 0x3fff) >> 5]) >> (b & 0x1f)) & 1)) return 1; 193 if (!((le32_to_cpu(bmp[((b+i) & 0x3fff) >> 5]) >> ((b+i) & 0x1f)) & 1)) 293 __le32 *hpfs_load_bitmap_directory(struct super_block *, secno bmp);
|
H A D | map.c | 112 __le32 *hpfs_load_bitmap_directory(struct super_block *s, secno bmp) argument 123 __le32 *d = hpfs_map_sector(s, bmp+i, &bh, n - i - 1);
|
/linux-master/arch/powerpc/platforms/4xx/ |
H A D | hsta_msi.c | 28 struct msi_bitmap bmp; member in struct:ppc4xx_hsta_msi 52 irq = msi_bitmap_alloc_hwirqs(&ppc4xx_hsta_msi.bmp, 1); 83 msi_bitmap_free_hwirqs(&ppc4xx_hsta_msi.bmp, irq, 1); 115 msi_bitmap_free_hwirqs(&ppc4xx_hsta_msi.bmp, irq, 1); 150 ret = msi_bitmap_alloc(&ppc4xx_hsta_msi.bmp, irq_count, dev->of_node); 182 msi_bitmap_free(&ppc4xx_hsta_msi.bmp);
|
/linux-master/arch/powerpc/platforms/ps3/ |
H A D | interrupt.c | 69 * @bmp: ps3_bmp structure 70 * @bmp_lock: Synchronize access to bmp. 78 struct ps3_bmp bmp __attribute__ ((aligned (PS3_BMP_MINALIGN))); member in struct:ps3_private 104 clear_bit(63 - d->irq, &pd->bmp.mask); 125 set_bit(63 - d->irq, &pd->bmp.mask); 640 _dump_64_bmp("stat", &pd->bmp.status, pd->thread_id, func, line); 641 _dump_64_bmp("mask", (u64*)&pd->bmp.mask, pd->thread_id, func, line); 652 _dump_64_bmp("mask", (u64*)&pd->bmp.mask, pd->thread_id, func, line); 705 u64 x = (pd->bmp.status & pd->bmp [all...] |
/linux-master/fs/xfs/scrub/ |
H A D | rmap.c | 288 struct xagb_bitmap *bmp = NULL; local 308 bmp = &cr->fs_owned; 311 bmp = &cr->log_owned; 314 bmp = &cr->ag_owned; 317 bmp = &cr->inobt_owned; 320 bmp = &cr->refcbt_owned; 324 if (!bmp) 327 if (xagb_bitmap_test(bmp, irec->rm_startblock, &fsbcount)) { 348 return xagb_bitmap_clear(bmp, irec->rm_startblock, irec->rm_blockcount);
|
/linux-master/drivers/ps3/ |
H A D | ps3-vuart.c | 104 const struct ports_bmp *bmp, const char *func, int line) 106 pr_debug("%s:%d: ports_bmp: %016llxh\n", func, line, bmp->status); 245 * @bmp: Logical OR of enum vuart_interrupt_mask values. A zero bit disables. 862 struct ports_bmp *bmp; member in struct:vuart_bus_priv 886 dump_ports_bmp(bus_priv->bmp); 888 port = (BITS_PER_LONG - 1) - __ilog2(bus_priv->bmp->status); 915 BUG_ON(vuart_bus_priv.bmp); 917 vuart_bus_priv.bmp = kzalloc(sizeof(struct ports_bmp), GFP_KERNEL); 919 if (!vuart_bus_priv.bmp) { 924 result = ps3_vuart_irq_setup(PS3_BINDING_CPU_ANY, vuart_bus_priv.bmp, 103 _dump_ports_bmp( const struct ports_bmp *bmp, const char *func, int line) argument [all...] |
/linux-master/drivers/scsi/lpfc/ |
H A D | lpfc_ct.c | 119 struct lpfc_dmabuf *mp, *bmp; local 126 bmp = cmdiocb->bpl_dmabuf; 133 if (bmp) { 134 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); 135 kfree(bmp); 161 struct lpfc_dmabuf *bmp = NULL; local 181 bmp = kmalloc(sizeof(*bmp), GFP_KERNEL); 182 if (!bmp) { 586 lpfc_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp, struct lpfc_dmabuf *inp, struct lpfc_dmabuf *outp, void (*cmpl)(struct lpfc_hba *, struct lpfc_iocbq *, struct lpfc_iocbq *), struct lpfc_nodelist *ndlp, uint32_t event_tag, uint32_t num_entry, uint32_t tmo, uint8_t retry) argument 664 lpfc_ct_cmd(struct lpfc_vport *vport, struct lpfc_dmabuf *inmp, struct lpfc_dmabuf *bmp, struct lpfc_nodelist *ndlp, void (*cmpl) (struct lpfc_hba *, struct lpfc_iocbq *, struct lpfc_iocbq *), uint32_t rsp_size, uint8_t retry) argument 1889 struct lpfc_dmabuf *mp, *bmp; local 3667 struct lpfc_dmabuf *mp, *bmp; local [all...] |
H A D | lpfc_bsg.c | 297 struct lpfc_dmabuf *bmp, *cmp, *rmp; local 325 bmp = cmdiocbq->bpl_dmabuf; 358 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); 359 kfree(bmp); 388 struct lpfc_dmabuf *bmp = NULL, *cmp = NULL, *rmp = NULL; local 419 bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); 420 if (!bmp) { 424 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp 1363 struct lpfc_dmabuf *bmp, *cmp; local 1444 lpfc_issue_ct_rsp(struct lpfc_hba *phba, struct bsg_job *job, uint32_t tag, struct lpfc_dmabuf *cmp, struct lpfc_dmabuf *bmp, int num_entry) argument 1579 struct lpfc_dmabuf *bmp = NULL, *cmp = NULL; local [all...] |
H A D | lpfc_nvme.c | 329 "status %x reason x%x cmd:x%px lsreg:x%px bmp:x%px " 390 lpfc_nvme_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp, argument 414 genwqe->bpl_dmabuf = bmp; 436 bpl = (struct ulp_bde64 *)bmp->virt; 520 "bmp:x%px xmit:%d 1st:%d\n", 523 genwqe, pnvme_lsreq, bmp, xmit_len, first_len); 549 struct lpfc_dmabuf *bmp; local 590 bmp = kmalloc(sizeof(*bmp), GFP_KERNEL); 591 if (!bmp) { [all...] |
/linux-master/drivers/gpu/drm/nouveau/ |
H A D | nouveau_bios.c | 1091 uint8_t *bmp = &bios->data[offset], bmp_version_major, bmp_version_minor; local 1101 bmp_version_major = bmp[5]; 1102 bmp_version_minor = bmp[6]; 1168 if (nv_cksum(bmp, 8)) { 1179 bios->feature_byte = bmp[9]; 1186 bios->init_script_tbls_ptr = ROM16(bmp[legacy_scripts_offset]); 1187 bios->extra_init_script_tbl_ptr = ROM16(bmp[legacy_scripts_offset + 2]); 1190 bios->legacy.mem_init_tbl_ptr = ROM16(bmp[24]); 1191 bios->legacy.sdr_seq_tbl_ptr = ROM16(bmp[26]); 1192 bios->legacy.ddr_seq_tbl_ptr = ROM16(bmp[2 [all...] |
/linux-master/drivers/vfio/pci/pds/ |
H A D | dirty.c | 381 const void *bmp; local 387 bmp = (void *)((u64)seq_ack_bmp + offset); 388 page_offset = offset_in_page(bmp); 389 bmp -= page_offset; 402 struct page *page = vmalloc_to_page(bmp); 410 bmp += PAGE_SIZE;
|
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/ |
H A D | nv05.c | 30 #include <subdev/bios/bmp.h>
|
/linux-master/net/xfrm/ |
H A D | xfrm_replay.c | 245 if (replay_esn->bmp[nr] & (1U << bitnr)) 278 replay_esn->bmp[nr] &= ~(1U << bitnr); 283 replay_esn->bmp[i] = 0; 299 replay_esn->bmp[nr] |= (1U << bitnr); 498 if (replay_esn->bmp[nr] & (1U << bitnr)) 579 replay_esn->bmp[nr] &= ~(1U << bitnr); 584 replay_esn->bmp[i] = 0; 605 replay_esn->bmp[nr] |= (1U << bitnr);
|
/linux-master/net/netfilter/ |
H A D | nf_conntrack_h323_asn1.c | 518 unsigned int ext, bmp, i, opt, len = 0, bmp2, bmp2_len; local 538 bmp = get_bitmap(bs, f->sz); 540 *(unsigned int *)base = bmp; 551 if (!((0x80000000U >> (opt++)) & bmp)) /* Not exist */ 597 bmp |= bmp2 >> f->sz; 599 *(unsigned int *)base = bmp;
|
/linux-master/fs/hfsplus/ |
H A D | xattr.c | 62 char *bmp; local 107 bmp = buf + offset; 112 memset(bmp, 0xFF, used_bmp_bytes); 113 bmp += used_bmp_bytes; 116 *bmp = ~(0xFF >> used_nodes);
|