Home
last modified time | relevance | path

Searched refs:bmp (Results 1 – 25 of 27) sorted by relevance

12

/linux/arch/powerpc/sysdev/
H A Dmsi_bitmap.c15 int msi_bitmap_alloc_hwirqs(struct msi_bitmap *bmp, int num) in msi_bitmap_alloc_hwirqs() argument
20 spin_lock_irqsave(&bmp->lock, flags); in msi_bitmap_alloc_hwirqs()
22 offset = bitmap_find_next_zero_area(bmp->bitmap, bmp->irq_count, 0, in msi_bitmap_alloc_hwirqs()
24 if (offset > bmp->irq_count) in msi_bitmap_alloc_hwirqs()
27 bitmap_set(bmp->bitmap, offset, num); in msi_bitmap_alloc_hwirqs()
28 spin_unlock_irqrestore(&bmp->lock, flags); in msi_bitmap_alloc_hwirqs()
34 spin_unlock_irqrestore(&bmp->lock, flags); in msi_bitmap_alloc_hwirqs()
39 void msi_bitmap_free_hwirqs(struct msi_bitmap *bmp, unsigned int offset, in msi_bitmap_free_hwirqs() argument
47 spin_lock_irqsave(&bmp in msi_bitmap_free_hwirqs()
53 msi_bitmap_reserve_hwirq(struct msi_bitmap * bmp,unsigned int hwirq) msi_bitmap_reserve_hwirq() argument
75 msi_bitmap_reserve_dt_hwirqs(struct msi_bitmap * bmp) msi_bitmap_reserve_dt_hwirqs() argument
112 msi_bitmap_alloc(struct msi_bitmap * bmp,unsigned int irq_count,struct device_node * of_node) msi_bitmap_alloc() argument
148 msi_bitmap_free(struct msi_bitmap * bmp) msi_bitmap_free() argument
160 struct msi_bitmap bmp; test_basics() local
226 struct msi_bitmap bmp; test_of_node() local
[all...]
/linux/tools/power/cpupower/utils/helpers/
H A Dbitmask.c26 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 …]
H A Dbitmask.h17 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/fs/jfs/
H A Djfs_dmap.c57 #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 …]
H A Djfs_discard.c68 struct bmap *bmp; in jfs_ioc_trim() local
87 bmp = JFS_SBI(ip->i_sb)->bmap; in jfs_ioc_trim()
89 if (minlen > bmp->db_agsize || in jfs_ioc_trim()
90 start >= bmp->db_mapsize || in jfs_ioc_trim()
96 if (end >= bmp->db_mapsize) in jfs_ioc_trim()
97 end = bmp->db_mapsize - 1; in jfs_ioc_trim()
H A Dresize.c58 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()
H A Djfs_extent.c305 struct bmap *bmp = sbi->bmap; in extBalloc() local
316 if (bmp->db_maxfreebud == -1) in extBalloc()
319 max = (s64) 1 << bmp->db_maxfreebud; in extBalloc()
348 atomic_inc(&bmp->db_active[ag]); in extBalloc()
351 atomic_dec(&bmp->db_active[ji->active_ag]); in extBalloc()
352 atomic_inc(&bmp->db_active[ag]); in extBalloc()
H A Djfs_imap.c850 struct metapage *mp, *amp, *bmp, *cmp, *dmp; in diFree() local
1026 amp = bmp = cmp = dmp = NULL; in diFree()
1063 if ((rc = diIAGRead(imap, back, &bmp))) in diFree()
1065 biagp = (struct iag *) bmp->data; in diFree()
1090 ciagp = (struct iag *) bmp->data; in diFree()
1104 diagp = (struct iag *) bmp->data; in diFree()
1215 if (bmp) in diFree()
1216 write_metapage(bmp); in diFree()
1277 if (bmp) in diFree()
1278 release_metapage(bmp); in diFree()
[all …]
/linux/fs/hpfs/
H A Dalloc.c72 __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 …]
H A Dhpfs_fn.h187 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);
H A Dmap.c112 __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/arch/powerpc/include/asm/
H A Dmsi_bitmap.h20 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/arch/powerpc/platforms/44x/
H A Dhsta_msi.c28 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/drivers/scsi/lpfc/
H A Dlpfc_ct.c119 struct lpfc_dmabuf *mp, *bmp; in lpfc_ct_unsol_cmpl() local
126 bmp = cmdiocb->bpl_dmabuf; in lpfc_ct_unsol_cmpl()
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()
161 struct lpfc_dmabuf *bmp = NULL; in lpfc_ct_reject_event() local
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()
188 if (!bmp->virt) { in lpfc_ct_reject_event()
[all …]
H A Dlpfc_nvme.c390 lpfc_nvme_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp, in lpfc_nvme_gen_req() argument
414 genwqe->bpl_dmabuf = bmp; in lpfc_nvme_gen_req()
436 bpl = (struct ulp_bde64 *)bmp->virt; in lpfc_nvme_gen_req()
523 genwqe, pnvme_lsreq, bmp, xmit_len, first_len); in lpfc_nvme_gen_req()
549 struct lpfc_dmabuf *bmp; in __lpfc_nvme_ls_req() local
590 bmp = kmalloc(sizeof(*bmp), GFP_KERNEL); in __lpfc_nvme_ls_req()
591 if (!bmp) { in __lpfc_nvme_ls_req()
599 bmp->virt = lpfc_mbuf_alloc(vport->phba, MEM_PRI, &(bmp->phys)); in __lpfc_nvme_ls_req()
600 if (!bmp->virt) { in __lpfc_nvme_ls_req()
605 kfree(bmp); in __lpfc_nvme_ls_req()
[all …]
H A Dlpfc_bsg.c307 struct lpfc_dmabuf *bmp, *cmp, *rmp; in lpfc_bsg_send_mgmt_cmd_cmp() local
335 bmp = cmdiocbq->bpl_dmabuf; in lpfc_bsg_send_mgmt_cmd_cmp()
368 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_cmd_cmp()
369 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
433 bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_bsg_send_mgmt_cmd()
434 if (!bmp) { in lpfc_bsg_send_mgmt_cmd()
438 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_bsg_send_mgmt_cmd()
439 if (!bmp->virt) { in lpfc_bsg_send_mgmt_cmd()
444 INIT_LIST_HEAD(&bmp->list); in lpfc_bsg_send_mgmt_cmd()
[all …]
H A Dlpfc.h994 struct lpfc_dmabuf *bmp,
998 struct lpfc_dmabuf *bmp, u16 rpi,
1001 struct lpfc_dmabuf *bmp, u16 rpi,
/linux/drivers/gpu/drm/nouveau/
H A Dnouveau_bios.c1086 uint8_t *bmp = &bios->data[offset], bmp_version_major, bmp_version_minor; in parse_bmp_structure() local
1096 bmp_version_major = bmp[5]; in parse_bmp_structure()
1097 bmp_version_minor = bmp[6]; in parse_bmp_structure()
1163 if (nv_cksum(bmp, 8)) { in parse_bmp_structure()
1174 bios->feature_byte = bmp[9]; in parse_bmp_structure()
1181 bios->init_script_tbls_ptr = ROM16(bmp[legacy_scripts_offset]); in parse_bmp_structure()
1182 bios->extra_init_script_tbl_ptr = ROM16(bmp[legacy_scripts_offset + 2]); in parse_bmp_structure()
1185 bios->legacy.mem_init_tbl_ptr = ROM16(bmp[24]); in parse_bmp_structure()
1186 bios->legacy.sdr_seq_tbl_ptr = ROM16(bmp[26]); in parse_bmp_structure()
1187 bios->legacy.ddr_seq_tbl_ptr = ROM16(bmp[28]); in parse_bmp_structure()
[all …]
/linux/net/xfrm/
H A Dxfrm_replay.c245 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/net/netfilter/
H A Dnf_conntrack_h323_asn1.c518 unsigned int ext, bmp, i, opt, len = 0, bmp2, bmp2_len; in decode_seq() local
538 bmp = get_bitmap(bs, f->sz); in decode_seq()
540 *(unsigned int *)base = bmp; in decode_seq()
551 if (!((0x80000000U >> (opt++)) & bmp)) /* Not exist */ in decode_seq()
597 bmp |= bmp2 >> f->sz; in decode_seq()
599 *(unsigned int *)base = bmp; in decode_seq()
/linux/fs/hfsplus/
H A Dxattr.c62 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/fs/ntfs3/
H A Dindex.c1493 struct ATTRIB *bmp, *alloc; in indx_add_allocate() local
1497 err = indx_find_free(indx, ni, &bit, &bmp); in indx_add_allocate()
1502 bmp = NULL; in indx_add_allocate()
1504 if (bmp->non_res) { in indx_add_allocate()
1505 bmp_size = le64_to_cpu(bmp->nres.data_size); in indx_add_allocate()
1506 bmp_size_v = le64_to_cpu(bmp->nres.valid_size); in indx_add_allocate()
1508 bmp_size = bmp_size_v = le32_to_cpu(bmp->res.data_size); in indx_add_allocate()
1516 if (bmp) { in indx_add_allocate()
1530 if (bmp) in indx_add_allocate()
1545 if (bmp) in indx_add_allocate()
/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_hw.h185 #define ENETC_PVCLCTR_OVTPIDL(bmp) ((bmp) & 0xff) /* VLAN_TYPE */ argument
205 #define ENETC_PSICFGR0_SIVC(bmp) (((bmp) & 0xff) << 24) /* VLAN_TYPE */ argument
/linux/arch/arm/boot/dts/aspeed/
H A Daspeed-bmc-opp-witherspoon.dts195 io-channels = <&bmp 1>;
354 bmp: bmp280@77 { label
H A Daspeed-bmc-opp-tacoma.dts102 io-channels = <&bmp 1>;
471 bmp: bmp280@77 { label

12