Home
last modified time | relevance | path

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

/linux-4.1.27/arch/powerpc/sysdev/
Dmsi_bitmap.c17 int msi_bitmap_alloc_hwirqs(struct msi_bitmap *bmp, int num) in msi_bitmap_alloc_hwirqs() argument
22 spin_lock_irqsave(&bmp->lock, flags); in msi_bitmap_alloc_hwirqs()
24 offset = bitmap_find_next_zero_area(bmp->bitmap, bmp->irq_count, 0, in msi_bitmap_alloc_hwirqs()
26 if (offset > bmp->irq_count) in msi_bitmap_alloc_hwirqs()
29 bitmap_set(bmp->bitmap, offset, num); in msi_bitmap_alloc_hwirqs()
30 spin_unlock_irqrestore(&bmp->lock, flags); in msi_bitmap_alloc_hwirqs()
36 spin_unlock_irqrestore(&bmp->lock, flags); in msi_bitmap_alloc_hwirqs()
41 void msi_bitmap_free_hwirqs(struct msi_bitmap *bmp, unsigned int offset, in msi_bitmap_free_hwirqs() argument
49 spin_lock_irqsave(&bmp->lock, flags); in msi_bitmap_free_hwirqs()
50 bitmap_clear(bmp->bitmap, offset, num); in msi_bitmap_free_hwirqs()
[all …]
Dppc4xx_hsta_msi.c30 struct msi_bitmap bmp; member
54 irq = msi_bitmap_alloc_hwirqs(&ppc4xx_hsta_msi.bmp, 1); in hsta_setup_msi_irqs()
85 msi_bitmap_free_hwirqs(&ppc4xx_hsta_msi.bmp, irq, 1); in hsta_setup_msi_irqs()
120 msi_bitmap_free_hwirqs(&ppc4xx_hsta_msi.bmp, irq, 1); in hsta_teardown_msi_irqs()
153 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-4.1.27/tools/power/cpupower/utils/helpers/
Dbitmask.c25 struct bitmask *bmp; in bitmask_alloc() local
27 bmp = malloc(sizeof(*bmp)); in bitmask_alloc()
28 if (bmp == 0) in bitmask_alloc()
30 bmp->size = n; in bitmask_alloc()
31 bmp->maskp = calloc(longsperbits(n), sizeof(unsigned long)); in bitmask_alloc()
32 if (bmp->maskp == 0) { in bitmask_alloc()
33 free(bmp); in bitmask_alloc()
36 return bmp; in bitmask_alloc()
40 void bitmask_free(struct bitmask *bmp) in bitmask_free() argument
42 if (bmp == 0) in bitmask_free()
[all …]
Dbitmask.h16 void bitmask_free(struct bitmask *bmp);
18 struct bitmask *bitmask_setbit(struct bitmask *bmp, unsigned int i);
19 struct bitmask *bitmask_setall(struct bitmask *bmp);
20 struct bitmask *bitmask_clearall(struct bitmask *bmp);
22 unsigned int bitmask_first(const struct bitmask *bmp);
23 unsigned int bitmask_next(const struct bitmask *bmp, unsigned int i);
24 unsigned int bitmask_last(const struct bitmask *bmp);
25 int bitmask_isallclear(const struct bitmask *bmp);
26 int bitmask_isbitset(const struct bitmask *bmp, unsigned int i);
28 int bitmask_parselist(const char *buf, struct bitmask *bmp);
[all …]
/linux-4.1.27/fs/jfs/
Djfs_dmap.c70 #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 …]
Djfs_discard.c83 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; in jfs_ioc_trim() local
101 if (minlen > bmp->db_agsize || in jfs_ioc_trim()
102 start >= bmp->db_mapsize || in jfs_ioc_trim()
106 if (end >= bmp->db_mapsize) in jfs_ioc_trim()
107 end = bmp->db_mapsize - 1; in jfs_ioc_trim()
Dresize.c70 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()
495 j_sb->s_size = cpu_to_le64(bmp->db_mapsize << in jfs_extendfs()
497 j_sb->s_agsize = cpu_to_le32(bmp->db_agsize); in jfs_extendfs()
Djfs_extent.c515 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()
Djfs_imap.c868 struct metapage *mp, *amp, *bmp, *cmp, *dmp; in diFree() local
1044 amp = bmp = cmp = dmp = NULL; in diFree()
1081 if ((rc = diIAGRead(imap, back, &bmp))) in diFree()
1083 biagp = (struct iag *) bmp->data; in diFree()
1108 ciagp = (struct iag *) bmp->data; in diFree()
1122 diagp = (struct iag *) bmp->data; in diFree()
1233 if (bmp) in diFree()
1234 write_metapage(bmp); in diFree()
1295 if (bmp) in diFree()
1296 release_metapage(bmp); in diFree()
[all …]
/linux-4.1.27/fs/hpfs/
Dalloc.c71 __le32 *bmp; in chk_if_allocated() local
72 if (!(bmp = hpfs_map_bitmap(s, sec >> 14, &qbh, "chk"))) goto fail; in chk_if_allocated()
73 if ((le32_to_cpu(bmp[(sec & 0x3fff) >> 5]) >> (sec & 0x1f)) & 1) { in chk_if_allocated()
80 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto fail; in chk_if_allocated()
81 if ((le32_to_cpu(bmp[ssec >> 5]) >> (ssec & 0x1f)) & 1) { in chk_if_allocated()
117 __le32 *bmp; in alloc_in_bmp() local
129 if (!(bmp = hpfs_map_bitmap(s, near >> 14, &qbh, "aib"))) goto uls; in alloc_in_bmp()
131 if (!(bmp = hpfs_map_dnode_bitmap(s, &qbh))) goto uls; in alloc_in_bmp()
133 if (!tstbits(bmp, nr, n + forward)) { in alloc_in_bmp()
138 while ((a = tstbits(bmp, q, n + forward)) != 0) { in alloc_in_bmp()
[all …]
Dhpfs_fn.h181 static inline unsigned tstbits(__le32 *bmp, unsigned b, unsigned n) in tstbits() argument
185 if (!((le32_to_cpu(bmp[(b & 0x3fff) >> 5]) >> (b & 0x1f)) & 1)) return 1; in tstbits()
187 if (!((le32_to_cpu(bmp[((b+i) & 0x3fff) >> 5]) >> ((b+i) & 0x1f)) & 1)) in tstbits()
284 __le32 *hpfs_load_bitmap_directory(struct super_block *, secno bmp);
Dmap.c111 __le32 *hpfs_load_bitmap_directory(struct super_block *s, secno bmp) in hpfs_load_bitmap_directory() argument
122 __le32 *d = hpfs_map_sector(s, bmp+i, &bh, n - i - 1); in hpfs_load_bitmap_directory()
/linux-4.1.27/arch/powerpc/include/asm/
Dmsi_bitmap.h24 int msi_bitmap_alloc_hwirqs(struct msi_bitmap *bmp, int num);
25 void msi_bitmap_free_hwirqs(struct msi_bitmap *bmp, unsigned int offset,
27 void msi_bitmap_reserve_hwirq(struct msi_bitmap *bmp, unsigned int hwirq);
29 int msi_bitmap_reserve_dt_hwirqs(struct msi_bitmap *bmp);
31 int msi_bitmap_alloc(struct msi_bitmap *bmp, unsigned int irq_count,
33 void msi_bitmap_free(struct msi_bitmap *bmp);
/linux-4.1.27/drivers/uwb/
Ddrp-avail.c125 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()
Ddrp.c734 drp_availability_ie->bmp, UWB_NUM_MAS); in uwb_drp_availability_process()
Dhwa-rc.c220 memcpy(newda->bmp, (u8 *) ie_hdr + sizeof(*ie_hdr), ie_hdr->length); in hwarc_filter_evt_drp_avail_WUSB_0100()
/linux-4.1.27/arch/powerpc/platforms/ps3/
Dinterrupt.c89 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()
715 u64 x = (pd->bmp.status & pd->bmp.mask); in ps3_get_irq()
768 ps3_mm_phys_to_lpar(__pa(&pd->bmp))); in ps3_init_IRQ()
771 pd->thread_id, ps3_mm_phys_to_lpar(__pa(&pd->bmp))); in ps3_init_IRQ()
/linux-4.1.27/drivers/scsi/lpfc/
Dlpfc_ct.c290 lpfc_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp, in lpfc_gen_req() argument
310 icmd->un.genreq64.bdl.addrHigh = putPaddrHigh(bmp->phys); in lpfc_gen_req()
311 icmd->un.genreq64.bdl.addrLow = putPaddrLow(bmp->phys); in lpfc_gen_req()
318 geniocb->context3 = (uint8_t *) bmp; in lpfc_gen_req()
374 struct lpfc_dmabuf *bmp, struct lpfc_nodelist *ndlp, in lpfc_ct_cmd() argument
380 struct ulp_bde64 *bpl = (struct ulp_bde64 *) bmp->virt; in lpfc_ct_cmd()
398 status = lpfc_gen_req(vport, bmp, inmp, outmp, cmpl, ndlp, 0, in lpfc_ct_cmd()
578 struct lpfc_dmabuf *bmp; in lpfc_cmpl_ct_cmd_gid_ft() local
591 bmp = (struct lpfc_dmabuf *) cmdiocb->context3; in lpfc_cmpl_ct_cmd_gid_ft()
1132 struct lpfc_dmabuf *mp, *bmp; in lpfc_ns_cmd() local
[all …]
Dlpfc_bsg.c302 struct lpfc_dmabuf *bmp, *cmp, *rmp; in lpfc_bsg_send_mgmt_cmd_cmp() local
329 bmp = cmdiocbq->context3; in lpfc_bsg_send_mgmt_cmd_cmp()
361 lpfc_mbuf_free(phba, bmp->virt, bmp->phys); in lpfc_bsg_send_mgmt_cmd_cmp()
362 kfree(bmp); in lpfc_bsg_send_mgmt_cmd_cmp()
391 struct lpfc_dmabuf *bmp = NULL, *cmp = NULL, *rmp = NULL; in lpfc_bsg_send_mgmt_cmd() local
430 bmp = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_bsg_send_mgmt_cmd()
431 if (!bmp) { in lpfc_bsg_send_mgmt_cmd()
435 bmp->virt = lpfc_mbuf_alloc(phba, 0, &bmp->phys); in lpfc_bsg_send_mgmt_cmd()
436 if (!bmp->virt) { in lpfc_bsg_send_mgmt_cmd()
441 INIT_LIST_HEAD(&bmp->list); in lpfc_bsg_send_mgmt_cmd()
[all …]
/linux-4.1.27/drivers/gpu/drm/nouveau/
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-4.1.27/drivers/ps3/
Dps3-vuart.c116 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-4.1.27/net/xfrm/
Dxfrm_replay.c228 if (replay_esn->bmp[nr] & (1U << bitnr)) in xfrm_replay_check_bmp()
261 replay_esn->bmp[nr] &= ~(1U << bitnr); in xfrm_replay_advance_bmp()
266 replay_esn->bmp[i] = 0; in xfrm_replay_advance_bmp()
282 replay_esn->bmp[nr] |= (1U << bitnr); in xfrm_replay_advance_bmp()
481 if (replay_esn->bmp[nr] & (1U << bitnr)) in xfrm_replay_check_esn()
531 replay_esn->bmp[nr] &= ~(1U << bitnr); in xfrm_replay_advance_esn()
536 replay_esn->bmp[i] = 0; in xfrm_replay_advance_esn()
555 replay_esn->bmp[nr] |= (1U << bitnr); in xfrm_replay_advance_esn()
Dxfrm_user.c129 if (rs->bmp_len > XFRMA_REPLAY_ESN_MAX / sizeof(rs->bmp[0]) / 8) in verify_replay()
/linux-4.1.27/net/netfilter/
Dnf_conntrack_h323_asn1.c495 unsigned int ext, bmp, i, opt, len = 0, bmp2, bmp2_len; in decode_seq() local
509 bmp = get_bitmap(bs, f->sz); in decode_seq()
511 *(unsigned int *)base = bmp; in decode_seq()
522 if (!((0x80000000U >> (opt++)) & bmp)) /* Not exist */ in decode_seq()
561 bmp |= bmp2 >> f->sz; in decode_seq()
563 *(unsigned int *)base = bmp; in decode_seq()
/linux-4.1.27/fs/hfsplus/
Dxattr.c67 char *bmp; in hfsplus_init_header_node() local
112 bmp = buf + offset; in hfsplus_init_header_node()
117 memset(bmp, 0xFF, used_bmp_bytes); in hfsplus_init_header_node()
118 bmp += used_bmp_bytes; in hfsplus_init_header_node()
121 *bmp = ~(0xFF >> used_nodes); in hfsplus_init_header_node()
/linux-4.1.27/include/linux/uwb/
Dspec.h398 DECLARE_BITMAP(bmp, UWB_NUM_MAS);
728 DECLARE_BITMAP(bmp, UWB_NUM_MAS);
/linux-4.1.27/include/uapi/linux/
Dxfrm.h98 __u32 bmp[0]; member
/linux-4.1.27/fs/ntfs/
Ddir.c1115 u8 *kaddr, *bmp, *index_end; in ntfs_readdir() local
1264 bmp = (u8*)page_address(bmp_page); in ntfs_readdir()
1266 while (!(bmp[cur_bmp_pos >> 3] & (1 << (cur_bmp_pos & 7)))) { in ntfs_readdir()