Home
last modified time | relevance | path

Searched refs:bitmap (Results 1 – 200 of 275) sorted by relevance

12

/linux-4.1.27/drivers/md/
Dbitmap.c33 static inline char *bmname(struct bitmap *bitmap) in bmname() argument
35 return bitmap->mddev ? mdname(bitmap->mddev) : "mdX"; in bmname()
48 static int bitmap_checkpage(struct bitmap_counts *bitmap, in bitmap_checkpage() argument
50 __releases(bitmap->lock) in bitmap_checkpage()
51 __acquires(bitmap->lock) in bitmap_checkpage()
55 if (page >= bitmap->pages) { in bitmap_checkpage()
63 if (bitmap->bp[page].hijacked) /* it's hijacked, don't try to alloc */ in bitmap_checkpage()
66 if (bitmap->bp[page].map) /* page is already allocated, just return */ in bitmap_checkpage()
74 spin_unlock_irq(&bitmap->lock); in bitmap_checkpage()
89 spin_lock_irq(&bitmap->lock); in bitmap_checkpage()
[all …]
Dbitmap.h177 struct bitmap { struct
236 struct bitmap *bitmap_create(struct mddev *mddev, int slot);
241 void bitmap_print_sb(struct bitmap *bitmap);
242 void bitmap_update_sb(struct bitmap *bitmap);
243 void bitmap_status(struct seq_file *seq, struct bitmap *bitmap);
245 int bitmap_setallbits(struct bitmap *bitmap);
246 void bitmap_write_all(struct bitmap *bitmap);
248 void bitmap_dirty_bits(struct bitmap *bitmap, unsigned long s, unsigned long e);
251 int bitmap_startwrite(struct bitmap *bitmap, sector_t offset,
253 void bitmap_endwrite(struct bitmap *bitmap, sector_t offset,
[all …]
Draid1.c377 bitmap_endwrite(r1_bio->mddev->bitmap, r1_bio->sector, in close_write()
787 bitmap_unplug(conf->mddev->bitmap); in flush_pending_writes()
1062 bitmap_unplug(mddev->bitmap); in raid1_unplug()
1086 struct bitmap *bitmap; in make_request() local
1137 bitmap = mddev->bitmap; in make_request()
1179 bitmap) { in make_request()
1184 wait_event(bitmap->behind_wait, in make_request()
1185 atomic_read(&bitmap->behind_writes) == 0); in make_request()
1380 if (bitmap && in make_request()
1381 (atomic_read(&bitmap->behind_writes) in make_request()
[all …]
Dmd.c1142 } else if (mddev->bitmap) { in super_90_validate()
1146 if (ev1 < mddev->bitmap->events_cleared) in super_90_validate()
1254 if (mddev->bitmap && mddev->bitmap_info.file == NULL) in super_90_sync()
1634 } else if (mddev->bitmap) { in super_1_validate()
1638 if (ev1 < mddev->bitmap->events_cleared) in super_1_validate()
1720 if (mddev->bitmap && mddev->bitmap_info.file == NULL) { in super_1_sync()
1731 if (rdev->saved_raid_disk >= 0 && mddev->bitmap) in super_1_sync()
1869 struct bitmap *bitmap; in super_1_allow_new_offset() local
1886 bitmap = rdev->mddev->bitmap; in super_1_allow_new_offset()
1887 if (bitmap && !rdev->mddev->bitmap_info.file && in super_1_allow_new_offset()
[all …]
Dmd.h419 struct bitmap *bitmap; /* the bitmap for the device */ member
Draid10.c419 bitmap_endwrite(r10_bio->mddev->bitmap, r10_bio->sector, in close_write()
951 bitmap_unplug(conf->mddev->bitmap); in flush_pending_writes()
1127 bitmap_unplug(mddev->bitmap); in raid10_unplug()
1440 bitmap_startwrite(mddev->bitmap, r10_bio->sector, r10_bio->sectors, 0); in __make_request()
2913 if (mddev->bitmap == NULL && in sync_request()
2947 bitmap_end_sync(mddev->bitmap, mddev->curr_resync, in sync_request()
2952 bitmap_end_sync(mddev->bitmap, sect, in sync_request()
2957 if ((!mddev->bitmap || conf->fullsync) in sync_request()
2971 bitmap_close_sync(mddev->bitmap); in sync_request()
3049 must_sync = bitmap_start_sync(mddev->bitmap, sect, in sync_request()
[all …]
DMakefile18 md-mod-y += md.o bitmap.o
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dalloc.c44 u32 mlx4_bitmap_alloc(struct mlx4_bitmap *bitmap) in mlx4_bitmap_alloc() argument
48 spin_lock(&bitmap->lock); in mlx4_bitmap_alloc()
50 obj = find_next_zero_bit(bitmap->table, bitmap->max, bitmap->last); in mlx4_bitmap_alloc()
51 if (obj >= bitmap->max) { in mlx4_bitmap_alloc()
52 bitmap->top = (bitmap->top + bitmap->max + bitmap->reserved_top) in mlx4_bitmap_alloc()
53 & bitmap->mask; in mlx4_bitmap_alloc()
54 obj = find_first_zero_bit(bitmap->table, bitmap->max); in mlx4_bitmap_alloc()
57 if (obj < bitmap->max) { in mlx4_bitmap_alloc()
58 set_bit(obj, bitmap->table); in mlx4_bitmap_alloc()
59 bitmap->last = (obj + 1); in mlx4_bitmap_alloc()
[all …]
Dqp.c506 struct mlx4_bitmap (*bitmap)[MLX4_QP_TABLE_ZONE_NUM] = NULL; in mlx4_create_zones() local
517 bitmap = kmalloc(sizeof(*bitmap), GFP_KERNEL); in mlx4_create_zones()
519 if (NULL == bitmap) { in mlx4_create_zones()
524 err = mlx4_bitmap_init(*bitmap + MLX4_QP_TABLE_ZONE_GENERAL, dev->caps.num_qps, in mlx4_create_zones()
533 err = mlx4_zone_add_one(qp_table->zones, *bitmap + MLX4_QP_TABLE_ZONE_GENERAL, in mlx4_create_zones()
541 err = mlx4_bitmap_init(*bitmap + MLX4_QP_TABLE_ZONE_RSS, in mlx4_create_zones()
552 err = mlx4_zone_add_one(qp_table->zones, *bitmap + MLX4_QP_TABLE_ZONE_RSS, in mlx4_create_zones()
570 for (k = MLX4_QP_TABLE_ZONE_RSS + 1; k < sizeof(*bitmap)/sizeof((*bitmap)[0]); in mlx4_create_zones()
633 *bitmap + MLX4_QP_TABLE_ZONE_RSS, in mlx4_create_zones()
644 err = mlx4_bitmap_init(*bitmap + k, roundup_pow_of_two(size), in mlx4_create_zones()
[all …]
Dpd.c149 uar->index = mlx4_bitmap_alloc(&mlx4_priv(dev)->uar_table.bitmap); in mlx4_uar_alloc()
168 mlx4_bitmap_free(&mlx4_priv(dev)->uar_table.bitmap, uar->index, MLX4_USE_RR); in mlx4_uar_free()
186 if (mlx4_bitmap_avail(&priv->uar_table.bitmap) < MLX4_NUM_RESERVED_UARS) { in mlx4_bf_alloc()
279 return mlx4_bitmap_init(&mlx4_priv(dev)->uar_table.bitmap, in mlx4_init_uar_table()
286 mlx4_bitmap_cleanup(&mlx4_priv(dev)->uar_table.bitmap); in mlx4_cleanup_uar_table()
Dsrq.c102 *srqn = mlx4_bitmap_alloc(&srq_table->bitmap); in __mlx4_srq_alloc_icm()
119 mlx4_bitmap_free(&srq_table->bitmap, *srqn, MLX4_NO_RR); in __mlx4_srq_alloc_icm()
147 mlx4_bitmap_free(&srq_table->bitmap, srqn, MLX4_NO_RR); in __mlx4_srq_free_icm()
285 err = mlx4_bitmap_init(&srq_table->bitmap, dev->caps.num_srqs, in mlx4_init_srq_table()
297 mlx4_bitmap_cleanup(&mlx4_priv(dev)->srq_table.bitmap); in mlx4_cleanup_srq_table()
Dcq.c217 *cqn = mlx4_bitmap_alloc(&cq_table->bitmap); in __mlx4_cq_alloc_icm()
234 mlx4_bitmap_free(&cq_table->bitmap, *cqn, MLX4_NO_RR); in __mlx4_cq_alloc_icm()
264 mlx4_bitmap_free(&cq_table->bitmap, cqn, MLX4_NO_RR); in __mlx4_cq_free_icm()
395 err = mlx4_bitmap_init(&cq_table->bitmap, dev->caps.num_cqs, in mlx4_init_cq_table()
408 mlx4_bitmap_cleanup(&mlx4_priv(dev)->cq_table.bitmap); in mlx4_cleanup_cq_table()
Dmlx4.h648 struct mlx4_bitmap bitmap; member
661 struct mlx4_bitmap bitmap; member
669 struct mlx4_bitmap bitmap; member
682 struct mlx4_bitmap bitmap; member
712 struct mlx4_bitmap bitmap; member
903 u32 mlx4_bitmap_alloc(struct mlx4_bitmap *bitmap);
904 void mlx4_bitmap_free(struct mlx4_bitmap *bitmap, u32 obj, int use_rr);
905 u32 mlx4_bitmap_alloc_range(struct mlx4_bitmap *bitmap, int cnt,
907 void mlx4_bitmap_free_range(struct mlx4_bitmap *bitmap, u32 obj, int cnt,
909 u32 mlx4_bitmap_avail(struct mlx4_bitmap *bitmap);
[all …]
Den_netdev.c2686 bitmap_clear(stats_bitmap->bitmap, last_i, NUM_FLOW_STATS); in mlx4_en_update_pfc_stats_bitmap()
2689 bitmap_set(stats_bitmap->bitmap, last_i, in mlx4_en_update_pfc_stats_bitmap()
2694 bitmap_set(stats_bitmap->bitmap, last_i, in mlx4_en_update_pfc_stats_bitmap()
2699 bitmap_set(stats_bitmap->bitmap, last_i, in mlx4_en_update_pfc_stats_bitmap()
2704 bitmap_set(stats_bitmap->bitmap, last_i, in mlx4_en_update_pfc_stats_bitmap()
2720 bitmap_zero(stats_bitmap->bitmap, NUM_ALL_STATS); in mlx4_en_set_stats_bitmap()
2723 bitmap_set(stats_bitmap->bitmap, last_i + in mlx4_en_set_stats_bitmap()
2725 bitmap_set(stats_bitmap->bitmap, last_i + in mlx4_en_set_stats_bitmap()
2727 bitmap_set(stats_bitmap->bitmap, last_i + in mlx4_en_set_stats_bitmap()
2729 bitmap_set(stats_bitmap->bitmap, last_i + in mlx4_en_set_stats_bitmap()
[all …]
Deq.c971 eq->eqn = mlx4_bitmap_alloc(&priv->eq_table.bitmap); in mlx4_create_eq()
1022 mlx4_bitmap_free(&priv->eq_table.bitmap, eq->eqn, MLX4_USE_RR); in mlx4_create_eq()
1066 mlx4_bitmap_free(&priv->eq_table.bitmap, eq->eqn, MLX4_USE_RR); in mlx4_free_eq()
1154 err = mlx4_bitmap_init(&priv->eq_table.bitmap, in mlx4_init_eq_table()
1289 mlx4_bitmap_cleanup(&priv->eq_table.bitmap); in mlx4_init_eq_table()
1314 mlx4_bitmap_cleanup(&priv->eq_table.bitmap); in mlx4_cleanup_eq_table()
Dmcg.c1131 index = mlx4_bitmap_alloc(&priv->mcg_table.bitmap); in mlx4_qp_attach_common()
1197 mlx4_bitmap_free(&priv->mcg_table.bitmap, in mlx4_qp_attach_common()
1293 mlx4_bitmap_free(&priv->mcg_table.bitmap, in mlx4_qp_detach_common()
1313 mlx4_bitmap_free(&priv->mcg_table.bitmap, in mlx4_qp_detach_common()
1619 err = mlx4_bitmap_init(&priv->mcg_table.bitmap, dev->caps.num_amgms, in mlx4_init_mcg_table()
1633 mlx4_bitmap_cleanup(&mlx4_priv(dev)->mcg_table.bitmap); in mlx4_cleanup_mcg_table()
/linux-4.1.27/arch/powerpc/sysdev/
Dmsi_bitmap.c24 offset = bitmap_find_next_zero_area(bmp->bitmap, bmp->irq_count, 0, in msi_bitmap_alloc_hwirqs()
29 bitmap_set(bmp->bitmap, offset, num); in msi_bitmap_alloc_hwirqs()
50 bitmap_clear(bmp->bitmap, offset, num); in msi_bitmap_free_hwirqs()
62 bitmap_allocate_region(bmp->bitmap, hwirq, 0); in msi_bitmap_reserve_hwirq()
98 bitmap_allocate_region(bmp->bitmap, 0, get_count_order(bmp->irq_count)); in msi_bitmap_reserve_dt_hwirqs()
106 bitmap_release_region(bmp->bitmap, *p + j, 0); in msi_bitmap_reserve_dt_hwirqs()
125 bmp->bitmap = zalloc_maybe_bootmem(size, GFP_KERNEL); in msi_bitmap_alloc()
126 if (!bmp->bitmap) { in msi_bitmap_alloc()
143 bmp->bitmap = NULL; in msi_bitmap_free()
160 WARN_ON(bitmap_find_free_region(bmp.bitmap, size, get_count_order(size))); in test_basics()
[all …]
Dppc4xx_msi.c54 struct msi_bitmap bitmap; member
65 err = msi_bitmap_alloc(&msi_data->bitmap, msi_irqs, in ppc4xx_msi_init_allocator()
70 err = msi_bitmap_reserve_dt_hwirqs(&msi_data->bitmap); in ppc4xx_msi_init_allocator()
72 msi_bitmap_free(&msi_data->bitmap); in ppc4xx_msi_init_allocator()
97 int_no = msi_bitmap_alloc_hwirqs(&msi_data->bitmap, 1); in ppc4xx_setup_msi_irqs()
107 msi_bitmap_free_hwirqs(&msi_data->bitmap, int_no, 1); in ppc4xx_setup_msi_irqs()
137 msi_bitmap_free_hwirqs(&msi_data->bitmap, hwirq, 1); in ppc4xx_teardown_msi_irqs()
208 if (msi->bitmap.bitmap) in ppc4xx_of_msi_remove()
209 msi_bitmap_free(&msi->bitmap); in ppc4xx_of_msi_remove()
Dfsl_msi.c112 rc = msi_bitmap_alloc(&msi_data->bitmap, NR_MSI_IRQS_MAX, in fsl_msi_init_allocator()
122 msi_bitmap_reserve_hwirq(&msi_data->bitmap, hwirq); in fsl_msi_init_allocator()
140 msi_bitmap_free_hwirqs(&msi_data->bitmap, hwirq, 1); in fsl_teardown_msi_irqs()
240 hwirq = msi_bitmap_alloc_hwirqs(&msi_data->bitmap, 1); in fsl_setup_msi_irqs()
255 msi_bitmap_free_hwirqs(&msi_data->bitmap, hwirq, 1); in fsl_setup_msi_irqs()
347 if (msi->bitmap.bitmap) in fsl_of_msi_remove()
348 msi_bitmap_free(&msi->bitmap); in fsl_of_msi_remove()
392 msi_bitmap_free_hwirqs(&msi->bitmap, in fsl_msi_setup_hwirq()
Dfsl_msi.h46 struct msi_bitmap bitmap; member
Dmpic_msi.c25 if (!mpic->msi_bitmap.bitmap) in mpic_msi_reserve_hwirq()
/linux-4.1.27/lib/
Dmemweight.c14 const unsigned char *bitmap = ptr; in memweight() local
16 for (; bytes > 0 && ((unsigned long)bitmap) % sizeof(long); in memweight()
17 bytes--, bitmap++) in memweight()
18 ret += hweight8(*bitmap); in memweight()
23 ret += bitmap_weight((unsigned long *)bitmap, in memweight()
26 bitmap += longs * sizeof(long); in memweight()
33 for (; bytes > 0; bytes--, bitmap++) in memweight()
34 ret += hweight8(*bitmap); in memweight()
Didr.c177 __set_bit(id & IDR_MASK, p->bitmap); in idr_mark_full()
184 while (bitmap_full(p->bitmap, IDR_SIZE)) { in idr_mark_full()
188 __set_bit((id & IDR_MASK), p->bitmap); in idr_mark_full()
237 m = find_next_zero_bit(p->bitmap, IDR_SIZE, n); in sub_alloc()
332 bitmap_clear(new->bitmap, 0, IDR_SIZE); in idr_get_empty_slot()
342 if (bitmap_full(p->bitmap, IDR_SIZE)) in idr_get_empty_slot()
343 __set_bit(0, new->bitmap); in idr_get_empty_slot()
521 __clear_bit(n, p->bitmap); in sub_remove()
527 if (likely(p != NULL && test_bit(n, p->bitmap))) { in sub_remove()
528 __clear_bit(n, p->bitmap); in sub_remove()
[all …]
Dbitmap.c237 int __bitmap_weight(const unsigned long *bitmap, unsigned int bits) in __bitmap_weight() argument
243 w += hweight_long(bitmap[k]); in __bitmap_weight()
246 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
936 static int __reg_op(unsigned long *bitmap, unsigned int pos, int order, int reg_op) in __reg_op() argument
968 if (bitmap[index + i] & mask) in __reg_op()
976 bitmap[index + i] |= mask; in __reg_op()
981 bitmap[index + i] &= ~mask; in __reg_op()
1002 int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order) in bitmap_find_free_region() argument
1007 if (!__reg_op(bitmap, pos, order, REG_OP_ISFREE)) in bitmap_find_free_region()
1009 __reg_op(bitmap, pos, order, REG_OP_ALLOC); in bitmap_find_free_region()
[all …]
Dvsprintf.c807 char *bitmap_string(char *buf, char *end, unsigned long *bitmap, in bitmap_string() argument
830 val = (bitmap[word] >> bit) & chunkmask; in bitmap_string()
848 char *bitmap_list_string(char *buf, char *end, unsigned long *bitmap, in bitmap_list_string() argument
859 rbot = cur = find_first_bit(bitmap, nr_bits); in bitmap_list_string()
862 cur = find_next_bit(bitmap, nr_bits, cur + 1); in bitmap_list_string()
DMakefile26 bust_spinlocks.o kasprintf.o bitmap.o scatterlist.o \
/linux-4.1.27/drivers/s390/cio/
Didset.c15 unsigned long bitmap[0]; member
31 memset(set->bitmap, 0, bitmap_size(num_ssid, num_id)); in idset_new()
43 memset(set->bitmap, 0xff, bitmap_size(set->num_ssid, set->num_id)); in idset_fill()
48 set_bit(ssid * set->num_id + id, set->bitmap); in idset_add()
53 clear_bit(ssid * set->num_id + id, set->bitmap); in idset_del()
58 return test_bit(ssid * set->num_id + id, set->bitmap); in idset_contains()
65 bitnum = find_first_bit(set->bitmap, set->num_ssid * set->num_id); in idset_get_first()
93 bitmap_clear(set->bitmap, pos, set->num_id - schid.sch_no); in idset_sch_del_subseq()
103 return bitmap_empty(set->bitmap, set->num_ssid * set->num_id); in idset_is_empty()
110 bitmap_or(to->bitmap, to->bitmap, from->bitmap, len); in idset_add_set()
Dchp.h32 static inline int chp_test_bit(u8 *bitmap, int num) in chp_test_bit() argument
37 return (bitmap[byte] & mask) ? 1 : 0; in chp_test_bit()
/linux-4.1.27/fs/hfs/
Dbitmap.c29 static u32 hfs_find_set_zero_bits(__be32 *bitmap, u32 size, u32 offset, u32 *max) in hfs_find_set_zero_bits() argument
40 curr = bitmap + (offset / 32); in hfs_find_set_zero_bits()
41 end = bitmap + ((size + 31) / 32); in hfs_find_set_zero_bits()
70 start = (curr - bitmap) * 32 + i; in hfs_find_set_zero_bits()
108 *max = (curr - bitmap) * 32 + i - start; in hfs_find_set_zero_bits()
141 void *bitmap; in hfs_vbm_search_free() local
149 bitmap = HFS_SB(sb)->bitmap; in hfs_vbm_search_free()
151 pos = hfs_find_set_zero_bits(bitmap, HFS_SB(sb)->fs_ablocks, goal, num_bits); in hfs_vbm_search_free()
154 pos = hfs_find_set_zero_bits(bitmap, goal, 0, num_bits); in hfs_vbm_search_free()
210 curr = HFS_SB(sb)->bitmap + (start / 32); in hfs_clear_vbm_bits()
Dmdb.c169 HFS_SB(sb)->bitmap = (__be32 *)__get_free_pages(GFP_KERNEL, PAGE_SIZE < 8192 ? 1 : 0); in hfs_mdb_get()
170 if (!HFS_SB(sb)->bitmap) in hfs_mdb_get()
177 ptr = (u8 *)HFS_SB(sb)->bitmap; in hfs_mdb_get()
310 ptr = (u8 *)HFS_SB(sb)->bitmap; in hfs_mdb_commit()
363 free_pages((unsigned long)HFS_SB(sb)->bitmap, PAGE_SIZE < 8192 ? 1 : 0); in hfs_mdb_put()
DMakefile7 hfs-objs := bitmap.o bfind.o bnode.o brec.o btree.o \
Dhfs_fs.h108 __be32 *bitmap; /* The page holding the member
/linux-4.1.27/fs/nfs/
Dnfs4xdr.c1172 static void encode_getattr_one(struct xdr_stream *xdr, uint32_t bitmap, struct compound_hdr *hdr) in encode_getattr_one() argument
1179 *p = cpu_to_be32(bitmap); in encode_getattr_one()
3104 static int decode_attr_bitmap(struct xdr_stream *xdr, uint32_t *bitmap) in decode_attr_bitmap() argument
3114 bitmap[0] = bitmap[1] = bitmap[2] = 0; in decode_attr_bitmap()
3119 bitmap[0] = be32_to_cpup(p++); in decode_attr_bitmap()
3121 bitmap[1] = be32_to_cpup(p++); in decode_attr_bitmap()
3123 bitmap[2] = be32_to_cpup(p); in decode_attr_bitmap()
3147 static int decode_attr_supported(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *bitmask) in decode_attr_supported() argument
3149 if (likely(bitmap[0] & FATTR4_WORD0_SUPPORTED_ATTRS)) { in decode_attr_supported()
3154 bitmap[0] &= ~FATTR4_WORD0_SUPPORTED_ATTRS; in decode_attr_supported()
[all …]
Dcallback_xdr.c121 static __be32 decode_bitmap(struct xdr_stream *xdr, uint32_t *bitmap) in decode_bitmap() argument
134 bitmap[0] = ntohl(*p++); in decode_bitmap()
136 bitmap[1] = ntohl(*p); in decode_bitmap()
202 status = decode_bitmap(xdr, args->bitmap); in decode_getattr_args()
500 uint32_t bitmap[2]; in decode_recallany_args() local
508 status = decode_bitmap(xdr, bitmap); in decode_recallany_args()
511 args->craa_type_mask = bitmap[0]; in decode_recallany_args()
545 static __be32 encode_attr_bitmap(struct xdr_stream *xdr, const uint32_t *bitmap, __be32 **savep) in encode_attr_bitmap() argument
550 bm[0] = htonl(bitmap[0] & CB_SUPPORTED_ATTR0); in encode_attr_bitmap()
551 bm[1] = htonl(bitmap[1] & CB_SUPPORTED_ATTR1); in encode_attr_bitmap()
[all …]
Dcallback_proc.c36 res->bitmap[0] = res->bitmap[1] = 0; in nfs4_callback_getattr()
56 res->bitmap[0] = (FATTR4_WORD0_CHANGE|FATTR4_WORD0_SIZE) & in nfs4_callback_getattr()
57 args->bitmap[0]; in nfs4_callback_getattr()
58 res->bitmap[1] = (FATTR4_WORD1_TIME_METADATA|FATTR4_WORD1_TIME_MODIFY) & in nfs4_callback_getattr()
59 args->bitmap[1]; in nfs4_callback_getattr()
Dcallback.h66 uint32_t bitmap[2]; member
71 uint32_t bitmap[2]; member
/linux-4.1.27/fs/ocfs2/
Docfs2.h856 static inline void _ocfs2_set_bit(unsigned int bit, unsigned long *bitmap) in _ocfs2_set_bit() argument
858 __set_bit_le(bit, bitmap); in _ocfs2_set_bit()
862 static inline void _ocfs2_clear_bit(unsigned int bit, unsigned long *bitmap) in _ocfs2_clear_bit() argument
864 __clear_bit_le(bit, bitmap); in _ocfs2_clear_bit()
886 static inline void ocfs2_set_bit_unaligned(int bit, void *bitmap) in ocfs2_set_bit_unaligned() argument
888 bitmap = correct_addr_and_bit_unaligned(&bit, bitmap); in ocfs2_set_bit_unaligned()
889 ocfs2_set_bit(bit, bitmap); in ocfs2_set_bit_unaligned()
892 static inline void ocfs2_clear_bit_unaligned(int bit, void *bitmap) in ocfs2_clear_bit_unaligned() argument
894 bitmap = correct_addr_and_bit_unaligned(&bit, bitmap); in ocfs2_clear_bit_unaligned()
895 ocfs2_clear_bit(bit, bitmap); in ocfs2_clear_bit_unaligned()
[all …]
Dlocalalloc.c737 void *bitmap; in ocfs2_claim_local_alloc_bits() local
756 bitmap = la->la_bitmap; in ocfs2_claim_local_alloc_bits()
773 ocfs2_set_bit(start++, bitmap); in ocfs2_claim_local_alloc_bits()
793 void *bitmap; in ocfs2_free_local_alloc_bits() local
803 bitmap = la->la_bitmap; in ocfs2_free_local_alloc_bits()
817 ocfs2_clear_bit(start++, bitmap); in ocfs2_free_local_alloc_bits()
845 void *bitmap = NULL; in ocfs2_local_alloc_find_clear_bits() local
877 bitmap = OCFS2_LOCAL_ALLOC(alloc)->la_bitmap; in ocfs2_local_alloc_find_clear_bits()
882 while ((bitoff = ocfs2_find_next_zero_bit(bitmap, left, startoff)) != -1) { in ocfs2_local_alloc_find_clear_bits()
940 static void ocfs2_verify_zero_bits(unsigned long *bitmap,
[all …]
Dreservations.c421 void *bitmap = resmap->m_disk_bitmap; in ocfs2_resmap_find_free_bits() local
431 while ((offset = ocfs2_find_next_zero_bit(bitmap, resmap->m_bitmap_len, in ocfs2_resmap_find_free_bits()
Dsuballoc.c1287 void *bitmap; in ocfs2_block_group_find_clear_bits() local
1297 bitmap = bg->bg_bitmap; in ocfs2_block_group_find_clear_bits()
1299 while((offset = ocfs2_find_next_zero_bit(bitmap, total_bits, start)) != -1) { in ocfs2_block_group_find_clear_bits()
1349 void *bitmap = bg->bg_bitmap; in ocfs2_block_group_set_bits() local
1381 ocfs2_set_bit(bit_off++, bitmap); in ocfs2_block_group_set_bits()
2458 unsigned long *bitmap)) in _ocfs2_free_suballoc_bits() argument
2553 unsigned long *bitmap)) in _ocfs2_free_clusters() argument
/linux-4.1.27/drivers/block/drbd/
Ddrbd_bitmap.c120 struct drbd_bitmap *b = device->bitmap; in __bm_print_lock_info()
131 struct drbd_bitmap *b = device->bitmap; in drbd_bm_lock()
158 struct drbd_bitmap *b = device->bitmap; in drbd_bm_unlock()
164 if (!(BM_LOCKED_MASK & device->bitmap->bm_flags)) in drbd_bm_unlock()
218 struct drbd_bitmap *b = device->bitmap; in bm_page_lock_io()
225 struct drbd_bitmap *b = device->bitmap; in bm_page_unlock_io()
228 wake_up(&device->bitmap->bm_io_wait); in bm_page_unlock_io()
257 if (page_nr >= device->bitmap->bm_number_of_pages) { in drbd_bm_mark_for_writeout()
259 page_nr, (int)device->bitmap->bm_number_of_pages); in drbd_bm_mark_for_writeout()
262 page = device->bitmap->bm_pages[page_nr]; in drbd_bm_mark_for_writeout()
[all …]
DKconfig61 128 kmalloc of bitmap
/linux-4.1.27/fs/reiserfs/
Dresize.c23 struct reiserfs_bitmap_info *bitmap; in reiserfs_resize() local
122 bitmap = in reiserfs_resize()
124 if (!bitmap) { in reiserfs_resize()
133 bitmap[i] = old_bitmap[i]; in reiserfs_resize()
151 vfree(bitmap); in reiserfs_resize()
156 reiserfs_cache_bitmap_metadata(s, bh, bitmap + i); in reiserfs_resize()
164 bitmap[i].free_count = sb_blocksize(sb) * 8 - 1; in reiserfs_resize()
168 SB_AP_BITMAP(s) = bitmap; in reiserfs_resize()
Dbitmap.c1408 unsigned int bitmap) in reiserfs_read_bitmap_block() argument
1410 b_blocknr_t block = (sb->s_blocksize << 3) * bitmap; in reiserfs_read_bitmap_block()
1411 struct reiserfs_bitmap_info *info = SB_AP_BITMAP(sb) + bitmap; in reiserfs_read_bitmap_block()
1420 block = REISERFS_SB(sb)->s_sbh->b_blocknr + 1 + bitmap; in reiserfs_read_bitmap_block()
1421 else if (bitmap == 0) in reiserfs_read_bitmap_block()
1448 struct reiserfs_bitmap_info *bitmap; in reiserfs_init_bitmap_cache() local
1451 bitmap = vmalloc(sizeof(*bitmap) * bmap_nr); in reiserfs_init_bitmap_cache()
1452 if (bitmap == NULL) in reiserfs_init_bitmap_cache()
1455 memset(bitmap, 0xff, sizeof(*bitmap) * bmap_nr); in reiserfs_init_bitmap_cache()
1457 SB_AP_BITMAP(sb) = bitmap; in reiserfs_init_bitmap_cache()
DMakefile7 reiserfs-objs := bitmap.o do_balan.o namei.o inode.o file.o dir.o fix_node.o \
/linux-4.1.27/drivers/gpu/drm/qxl/
Dqxl_image.c203 image->u.bitmap.format = SPICE_BITMAP_FMT_1BIT_BE; in qxl_image_init_helper()
206 image->u.bitmap.format = SPICE_BITMAP_FMT_24BIT; in qxl_image_init_helper()
209 image->u.bitmap.format = SPICE_BITMAP_FMT_32BIT; in qxl_image_init_helper()
215 image->u.bitmap.flags = QXL_BITMAP_TOP_DOWN; in qxl_image_init_helper()
216 image->u.bitmap.x = width; in qxl_image_init_helper()
217 image->u.bitmap.y = height; in qxl_image_init_helper()
218 image->u.bitmap.stride = chunk_stride; in qxl_image_init_helper()
219 image->u.bitmap.palette = 0; in qxl_image_init_helper()
220 image->u.bitmap.data = qxl_bo_physical_address(qdev, chunk_bo, 0); in qxl_image_init_helper()
Dqxl_draw.c223 image->u.bitmap.palette = in qxl_draw_opaque_fb()
240 drawable->u.copy.mask.bitmap = 0; in qxl_draw_opaque_fb()
372 drawable->u.copy.mask.bitmap = 0; in qxl_draw_dirty_fb()
477 drawable->u.fill.mask.bitmap = 0; in qxl_draw_fill()
Dqxl_dev.h516 QXLPHYSICAL bitmap; member
850 struct qxl_bitmap bitmap; member
/linux-4.1.27/net/netlabel/
Dnetlabel_kapi.c485 NETLBL_CATMAP_MAPTYPE bitmap; in netlbl_catmap_walk() local
498 bitmap = iter->bitmap[idx] >> bit; in netlbl_catmap_walk()
501 if (bitmap != 0) { in netlbl_catmap_walk()
502 while ((bitmap & NETLBL_CATMAP_BIT) == 0) { in netlbl_catmap_walk()
503 bitmap >>= 1; in netlbl_catmap_walk()
516 bitmap = iter->bitmap[idx]; in netlbl_catmap_walk()
541 NETLBL_CATMAP_MAPTYPE bitmap; in netlbl_catmap_walkrng() local
557 bitmap = iter->bitmap[idx]; in netlbl_catmap_walkrng()
558 while (bitmask != 0 && (bitmap & bitmask) != 0) { in netlbl_catmap_walkrng()
598 unsigned long *bitmap) in netlbl_catmap_getlong() argument
[all …]
/linux-4.1.27/fs/btrfs/
Dfree-space-cache.c521 void *bitmap) in io_ctl_add_entry() argument
531 entry->type = (bitmap) ? BTRFS_FREE_SPACE_BITMAP : in io_ctl_add_entry()
550 static int io_ctl_add_bitmap(struct btrfs_io_ctl *io_ctl, void *bitmap) in io_ctl_add_bitmap() argument
566 memcpy(io_ctl->cur, bitmap, PAGE_CACHE_SIZE); in io_ctl_add_bitmap()
626 memcpy(entry->bitmap, io_ctl->cur, PAGE_CACHE_SIZE); in io_ctl_read_bitmap()
652 if (e->bitmap || prev->bitmap) in merge_space_tree()
780 e->bitmap = kzalloc(PAGE_CACHE_SIZE, GFP_NOFS); in __load_free_space_cache()
781 if (!e->bitmap) { in __load_free_space_cache()
939 e->bitmap); in write_cache_extent_entries()
943 if (e->bitmap) { in write_cache_extent_entries()
[all …]
Dfree-space-cache.h26 unsigned long *bitmap; member
128 u64 offset, u64 bytes, bool bitmap);
Dscrub.c160 unsigned long bitmap[0]; member
2318 unsigned long *bitmap, in __scrub_mark_bitmap() argument
2326 bitmap_set(bitmap, 0, sparity->nsectors); in __scrub_mark_bitmap()
2336 bitmap_set(bitmap, offset, nsectors); in __scrub_mark_bitmap()
2340 bitmap_set(bitmap, offset, sparity->nsectors - offset); in __scrub_mark_bitmap()
2341 bitmap_set(bitmap, 0, nsectors - (sparity->nsectors - offset)); in __scrub_mark_bitmap()
2800 sparity->dbitmap = sparity->bitmap; in scrub_raid56_parity()
2801 sparity->ebitmap = (void *)sparity->bitmap + bitmap_len; in scrub_raid56_parity()
/linux-4.1.27/fs/nilfs2/
Dalloc.c344 unsigned char *bitmap, in nilfs_palloc_find_available_slot() argument
353 pos = nilfs_find_next_zero_bit(bitmap, end, target); in nilfs_palloc_find_available_slot()
356 nilfs_mdt_bgl_lock(inode, group), pos, bitmap)) in nilfs_palloc_find_available_slot()
367 while (*((unsigned long *)bitmap + curr / BITS_PER_LONG) in nilfs_palloc_find_available_slot()
372 pos = nilfs_find_next_zero_bit(bitmap, end, curr); in nilfs_palloc_find_available_slot()
376 bitmap)) in nilfs_palloc_find_available_slot()
474 unsigned char *bitmap; in nilfs_palloc_prepare_alloc_entry() local
511 bitmap = bitmap_kaddr + bh_offset(bitmap_bh); in nilfs_palloc_prepare_alloc_entry()
513 inode, group, group_offset, bitmap, in nilfs_palloc_prepare_alloc_entry()
574 unsigned char *bitmap; in nilfs_palloc_commit_free_entry() local
[all …]
/linux-4.1.27/fs/udf/
Dballoc.c35 struct udf_bitmap *bitmap, unsigned int block, in read_block_bitmap() argument
42 loc.logicalBlockNum = bitmap->s_extPosition; in read_block_bitmap()
49 bitmap->s_block_bitmap[bitmap_nr] = bh; in read_block_bitmap()
54 struct udf_bitmap *bitmap, in __load_block_bitmap() argument
58 int nr_groups = bitmap->s_nr_groups; in __load_block_bitmap()
65 if (bitmap->s_block_bitmap[block_group]) in __load_block_bitmap()
68 retval = read_block_bitmap(sb, bitmap, block_group, block_group); in __load_block_bitmap()
76 struct udf_bitmap *bitmap, in load_block_bitmap() argument
81 slot = __load_block_bitmap(sb, bitmap, block_group); in load_block_bitmap()
86 if (!bitmap->s_block_bitmap[slot]) in load_block_bitmap()
[all …]
Dsuper.c277 static void udf_sb_free_bitmap(struct udf_bitmap *bitmap) in udf_sb_free_bitmap() argument
280 int nr_groups = bitmap->s_nr_groups; in udf_sb_free_bitmap()
285 if (bitmap->s_block_bitmap[i]) in udf_sb_free_bitmap()
286 brelse(bitmap->s_block_bitmap[i]); in udf_sb_free_bitmap()
289 kfree(bitmap); in udf_sb_free_bitmap()
291 vfree(bitmap); in udf_sb_free_bitmap()
1063 struct udf_bitmap *bitmap; in udf_sb_alloc_bitmap() local
1072 bitmap = kzalloc(size, GFP_KERNEL); in udf_sb_alloc_bitmap()
1074 bitmap = vzalloc(size); /* TODO: get rid of vzalloc */ in udf_sb_alloc_bitmap()
1076 if (bitmap == NULL) in udf_sb_alloc_bitmap()
[all …]
/linux-4.1.27/arch/x86/kernel/
Dioport.c40 unsigned long *bitmap = kmalloc(IO_BITMAP_BYTES, GFP_KERNEL); in sys_ioperm() local
42 if (!bitmap) in sys_ioperm()
45 memset(bitmap, 0xff, IO_BITMAP_BYTES); in sys_ioperm()
46 t->io_bitmap_ptr = bitmap; in sys_ioperm()
Dvm86_32.c426 static inline int is_revectored(int nr, struct revectored_struct *bitmap) in is_revectored() argument
430 :"m" (*bitmap), "r" (nr)); in is_revectored()
/linux-4.1.27/tools/perf/util/
Dbitmap.c10 int __bitmap_weight(const unsigned long *bitmap, int bits) in __bitmap_weight() argument
15 w += hweight_long(bitmap[k]); in __bitmap_weight()
18 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
DBuild21 libperf-y += bitmap.o
/linux-4.1.27/include/linux/
Dbitmap.h90 extern int __bitmap_empty(const unsigned long *bitmap, unsigned int nbits);
91 extern int __bitmap_full(const unsigned long *bitmap, unsigned int nbits);
112 extern int __bitmap_weight(const unsigned long *bitmap, unsigned int nbits);
163 extern int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order);
164 extern void bitmap_release_region(unsigned long *bitmap, unsigned int pos, int order);
165 extern int bitmap_allocate_region(unsigned long *bitmap, unsigned int pos, int order);
171 extern unsigned int bitmap_ord_to_pos(const unsigned long *bitmap, unsigned int ord, unsigned int n…
Didr.h37 DECLARE_BITMAP(bitmap, IDR_SIZE);
151 unsigned long bitmap[IDA_BITMAP_LONGS]; member
Dcpumask.h737 #define to_cpumask(bitmap) \ argument
738 ((struct cpumask *)(1 ? (bitmap) \
739 : (void *)sizeof(__check_is_bitmap(bitmap))))
741 static inline int __check_is_bitmap(const unsigned long *bitmap) in __check_is_bitmap() argument
Dsh_clk.h100 unsigned long *bitmap);
Dintel-iommu.h304 unsigned long *bitmap; member
/linux-4.1.27/drivers/cpufreq/
Dspeedstep-lib.c38 u8 bitmap; /* power on configuration bits in pentium3_get_frequency() member
61 u8 bitmap; /* power on configuration bits [18: 19] in pentium3_get_frequency() member
81 while (msr_tmp != msr_decode_fsb[i].bitmap) { in pentium3_get_frequency()
82 if (msr_decode_fsb[i].bitmap == 0xff) in pentium3_get_frequency()
94 while (msr_lo != msr_decode_mult[j].bitmap) { in pentium3_get_frequency()
95 if (msr_decode_mult[j].bitmap == 0xff) in pentium3_get_frequency()
/linux-4.1.27/drivers/base/
Ddma-coherent.c16 unsigned long *bitmap; member
41 dma_mem->bitmap = kzalloc(bitmap_size, GFP_KERNEL); in dma_init_coherent_memory()
42 if (!dma_mem->bitmap) in dma_init_coherent_memory()
71 kfree(mem->bitmap); in dma_release_coherent_memory()
131 err = bitmap_allocate_region(mem->bitmap, pos, get_order(size)); in dma_mark_declared_memory_occupied()
175 pageno = bitmap_find_free_region(mem->bitmap, mem->size, order); in dma_alloc_from_coherent()
223 bitmap_release_region(mem->bitmap, page, order); in dma_release_from_coherent()
/linux-4.1.27/drivers/staging/comedi/drivers/
Dni_usb6501.c175 const u8 *port, u8 *bitmap) in ni6501_port_command() argument
183 if (command != SET_PORT_DIR && !bitmap) in ni6501_port_command()
200 tx[17] = bitmap[0]; in ni6501_port_command()
238 bitmap[0] = devpriv->usb_rx_buf[14]; in ni6501_port_command()
377 u8 bitmap; in ni6501_dio_insn_bits() local
383 bitmap = (s->state >> port * 8) & 0xFF; in ni6501_dio_insn_bits()
385 &port, &bitmap); in ni6501_dio_insn_bits()
394 ret = ni6501_port_command(dev, READ_PORT, &port, &bitmap); in ni6501_dio_insn_bits()
397 data[1] |= bitmap << port * 8; in ni6501_dio_insn_bits()
/linux-4.1.27/arch/ia64/include/asm/
Dmmu_context.h40 unsigned long *bitmap; /* bitmap size is max_ctx+1 */ member
92 ia64_ctx.next = find_next_zero_bit(ia64_ctx.bitmap, in get_mmu_context()
94 ia64_ctx.limit = find_next_bit(ia64_ctx.bitmap, in get_mmu_context()
100 __set_bit(context, ia64_ctx.bitmap); in get_mmu_context()
/linux-4.1.27/drivers/hid/
Dhid-picolcd_fb.c151 static int picolcd_fb_update_tile(u8 *vbitmap, const u8 *bitmap, int bpp, in picolcd_fb_update_tile() argument
160 const u8 *bdata = bitmap + tile * 256 + chip * 8 + b * 32; in picolcd_fb_update_tile()
168 const u8 *bdata = bitmap + (tile * 256 + chip * 8 + b * 32) * 8; in picolcd_fb_update_tile()
221 memset(fbdata->bitmap, 0, PICOLCDFB_SIZE*fbdata->bpp); in picolcd_fb_reset()
260 fbdata->vbitmap, fbdata->bitmap, in picolcd_fb_update()
396 o_fb = fbdata->bitmap; in picolcd_set_par()
550 fbdata->bitmap = vmalloc(PICOLCDFB_SIZE*8); in picolcd_init_framebuffer()
551 if (fbdata->bitmap == NULL) { in picolcd_init_framebuffer()
555 info->screen_base = (char __force __iomem *)fbdata->bitmap; in picolcd_init_framebuffer()
556 info->fix.smem_start = (unsigned long)fbdata->bitmap; in picolcd_init_framebuffer()
[all …]
Dhid-picolcd.h132 u8 *bitmap; /* framebuffer */ member
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/
Duar.c146 uuari->bitmap = kcalloc(BITS_TO_LONGS(tot_uuars), sizeof(*uuari->bitmap), in mlx5_alloc_uuars()
148 if (!uuari->bitmap) { in mlx5_alloc_uuars()
200 kfree(uuari->bitmap); in mlx5_alloc_uuars()
220 kfree(uuari->bitmap); in mlx5_free_uuars()
Dalloc.c145 bitmap_fill(pgdir->bitmap, MLX5_DB_PER_PAGE); in mlx5_alloc_db_pgdir()
162 i = find_first_bit(pgdir->bitmap, MLX5_DB_PER_PAGE); in mlx5_alloc_db_from_pgdir()
166 __clear_bit(i, pgdir->bitmap); in mlx5_alloc_db_from_pgdir()
213 __set_bit(db->index, db->u.pgdir->bitmap); in mlx5_db_free()
215 if (bitmap_full(db->u.pgdir->bitmap, MLX5_DB_PER_PAGE)) { in mlx5_db_free()
/linux-4.1.27/drivers/staging/rtl8188eu/hal/
Drtl8188e_cmd.c155 void rtl8188e_Add_RateATid(struct adapter *pAdapter, u32 bitmap, u8 arg, u8 rssi_level) in rtl8188e_Add_RateATid() argument
163 raid = (bitmap>>28) & 0x0f; in rtl8188e_Add_RateATid()
164 bitmap &= 0x0fffffff; in rtl8188e_Add_RateATid()
167 bitmap = ODM_Get_Rate_Bitmap(&haldata->odmpriv, macid, bitmap, rssi_level); in rtl8188e_Add_RateATid()
169 bitmap |= ((raid<<28)&0xf0000000); in rtl8188e_Add_RateATid()
171 init_rate = get_highest_rate_idx(bitmap&0x0fffffff)&0x3f; in rtl8188e_Add_RateATid()
178 raid = (bitmap>>28) & 0x0f; in rtl8188e_Add_RateATid()
180 bitmap &= 0x0fffffff; in rtl8188e_Add_RateATid()
183 __func__, macid, raid, bitmap, shortGIrate); in rtl8188e_Add_RateATid()
185 ODM_RA_UpdateRateInfo_8188E(&(haldata->odmpriv), macid, raid, bitmap, shortGIrate); in rtl8188e_Add_RateATid()
Dhal_intf.c251 void rtw_hal_add_ra_tid(struct adapter *adapt, u32 bitmap, u8 arg, in rtw_hal_add_ra_tid() argument
255 adapt->HalFunc.Add_RateATid(adapt, bitmap, arg, in rtw_hal_add_ra_tid()
/linux-4.1.27/drivers/net/wireless/rtlwifi/
Dcam.c283 u32 bitmap = (rtlpriv->sec.hwsec_cam_bitmap) >> 4; in rtl_cam_get_free_entry() local
300 if ((bitmap & BIT(0)) == 0) { in rtl_cam_get_free_entry()
309 bitmap = bitmap >> 1; in rtl_cam_get_free_entry()
318 u32 bitmap; in rtl_cam_del_entry() local
335 bitmap = (rtlpriv->sec.hwsec_cam_bitmap) >> i; in rtl_cam_del_entry()
336 if (((bitmap & BIT(0)) == BIT(0)) && in rtl_cam_del_entry()
/linux-4.1.27/mm/
Dcma.c93 bitmap_clear(cma->bitmap, bitmap_no, bitmap_count); in cma_clear_bitmap()
104 cma->bitmap = kzalloc(bitmap_size, GFP_KERNEL); in cma_activate_area()
106 if (!cma->bitmap) in cma_activate_area()
140 kfree(cma->bitmap); in cma_activate_area()
385 bitmap_no = bitmap_find_next_zero_area_off(cma->bitmap, in cma_alloc()
392 bitmap_set(cma->bitmap, bitmap_no, bitmap_count); in cma_alloc()
Dcma_debug.c42 used = bitmap_weight(cma->bitmap, (int)cma->count); in cma_used_get()
58 start = find_next_zero_bit(cma->bitmap, cma->count, end); in cma_maxchunk_get()
61 end = find_next_bit(cma->bitmap, cma->count, start); in cma_maxchunk_get()
189 debugfs_create_u32_array("bitmap", S_IRUGO, tmp, (u32*)cma->bitmap, u32s); in cma_debugfs_add_one()
Dcma.h7 unsigned long *bitmap; member
/linux-4.1.27/Documentation/
Dmd-cluster.txt6 Separate write-intent-bitmap are used for each cluster node.
40 DLM starts node count from one and bitmap slots start from zero, one is
41 subtracted from the DLM slot number to arrive at the bitmap slot number.
128 - acquires the bitmap<number> lock of the failed node
129 - opens the bitmap
130 - reads the bitmap of the failed node
131 - copies the set bitmap to local node
132 - cleans the bitmap of the failed node
133 - releases bitmap<number> lock of the failed node
134 - initiates resync of the bitmap on the current node
Dmd.txt299 bitmap/location
300 This indicates where the write-intent bitmap for the array is
308 bitmap/chunksize
313 bitmap/time_base
314 The time, in seconds, between looking for bits in the bitmap to
318 bitmap/backlog
325 bitmap/metadata
327 'internal' is the default and means the metadata for the bitmap
330 'external' means that bitmap metadata is managed externally to
332 bitmap/can_clear
[all …]
Dprintk-formats.txt276 bitmap and its derivatives such as cpumask and nodemask:
281 For printing bitmap and its derivatives such as cpumask and nodemask,
282 %*pb output the bitmap with field width as the number of bits and %*pbl
283 output the bitmap as range list with field width as the number of bits.
/linux-4.1.27/include/net/
Dnetlabel.h167 NETLBL_CATMAP_MAPTYPE bitmap[NETLBL_CATMAP_MAPCNT]; member
395 unsigned long *bitmap);
405 unsigned long bitmap,
510 unsigned long *bitmap) in netlbl_catmap_getlong() argument
529 unsigned long bitmap, in netlbl_catmap_setlong() argument
/linux-4.1.27/arch/um/drivers/
Dubd_kern.c124 unsigned long *bitmap; member
157 .bitmap = NULL, \
727 vfree(ubd_dev->cow.bitmap); in ubd_close_dev()
728 ubd_dev->cow.bitmap = NULL; in ubd_close_dev()
771 ubd_dev->cow.bitmap = vmalloc(ubd_dev->cow.bitmap_len); in ubd_open_dev()
772 if(ubd_dev->cow.bitmap == NULL){ in ubd_open_dev()
778 err = read_cow_bitmap(ubd_dev->fd, ubd_dev->cow.bitmap, in ubd_open_dev()
1153 __u64 *cow_offset, unsigned long *bitmap, in cowify_bitmap() argument
1163 if(ubd_test_bit(sector + i, (unsigned char *) bitmap)) in cowify_bitmap()
1167 ubd_set_bit(sector + i, (unsigned char *) bitmap); in cowify_bitmap()
[all …]
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmsmac/
Dampdu.c844 u8 bitmap[8], queue, tid; in brcms_c_ampdu_dotxstatus_complete() local
870 memset(bitmap, 0, sizeof(bitmap)); in brcms_c_ampdu_dotxstatus_complete()
880 bitmap[0] = (txs->status & TX_STATUS_BA_BMAP03_MASK) >> in brcms_c_ampdu_dotxstatus_complete()
886 bitmap[0] |= in brcms_c_ampdu_dotxstatus_complete()
889 bitmap[1] = (s1 >> 8) & 0xff; in brcms_c_ampdu_dotxstatus_complete()
890 bitmap[2] = (s1 >> 16) & 0xff; in brcms_c_ampdu_dotxstatus_complete()
891 bitmap[3] = (s1 >> 24) & 0xff; in brcms_c_ampdu_dotxstatus_complete()
893 bitmap[4] = s2 & 0xff; in brcms_c_ampdu_dotxstatus_complete()
894 bitmap[5] = (s2 >> 8) & 0xff; in brcms_c_ampdu_dotxstatus_complete()
895 bitmap[6] = (s2 >> 16) & 0xff; in brcms_c_ampdu_dotxstatus_complete()
[all …]
/linux-4.1.27/drivers/net/wireless/ath/wcn36xx/
Dsmd.h115 void set_feat_caps(u32 *bitmap, enum place_holder_in_cap_bitmap cap);
116 int get_feat_caps(u32 *bitmap, enum place_holder_in_cap_bitmap cap);
117 void clear_feat_caps(u32 *bitmap, enum place_holder_in_cap_bitmap cap);
Dsmd.c1758 void set_feat_caps(u32 *bitmap, enum place_holder_in_cap_bitmap cap) in set_feat_caps() argument
1769 bitmap[arr_idx] |= (1 << bit_idx); in set_feat_caps()
1772 int get_feat_caps(u32 *bitmap, enum place_holder_in_cap_bitmap cap) in get_feat_caps() argument
1784 ret = (bitmap[arr_idx] & (1 << bit_idx)) ? 1 : 0; in get_feat_caps()
1788 void clear_feat_caps(u32 *bitmap, enum place_holder_in_cap_bitmap cap) in clear_feat_caps() argument
1799 bitmap[arr_idx] &= ~(1 << bit_idx); in clear_feat_caps()
/linux-4.1.27/arch/x86/kvm/
Dlapic.c83 static inline int apic_test_vector(int vec, void *bitmap) in apic_test_vector() argument
85 return test_bit(VEC_POS(vec), (bitmap) + REG_POS(vec)); in apic_test_vector()
96 static inline void apic_set_vector(int vec, void *bitmap) in apic_set_vector() argument
98 set_bit(VEC_POS(vec), (bitmap) + REG_POS(vec)); in apic_set_vector()
101 static inline void apic_clear_vector(int vec, void *bitmap) in apic_clear_vector() argument
103 clear_bit(VEC_POS(vec), (bitmap) + REG_POS(vec)); in apic_clear_vector()
106 static inline int __apic_test_and_set_vector(int vec, void *bitmap) in __apic_test_and_set_vector() argument
108 return __test_and_set_bit(VEC_POS(vec), (bitmap) + REG_POS(vec)); in __apic_test_and_set_vector()
111 static inline int __apic_test_and_clear_vector(int vec, void *bitmap) in __apic_test_and_clear_vector() argument
113 return __test_and_clear_bit(VEC_POS(vec), (bitmap) + REG_POS(vec)); in __apic_test_and_clear_vector()
[all …]
Dirq_comm.c180 unsigned long *bitmap = &kvm->arch.irq_sources_bitmap; in kvm_request_irq_source_id() local
184 irq_source_id = find_first_zero_bit(bitmap, BITS_PER_LONG); in kvm_request_irq_source_id()
194 set_bit(irq_source_id, bitmap); in kvm_request_irq_source_id()
/linux-4.1.27/Documentation/cma/
Ddebugfs.txt14 - [RO] bitmap: The bitmap of page states in the zone.
/linux-4.1.27/Documentation/networking/
Dradiotap-headers.txt18 There is a fixed portion at the start which contains a u32 bitmap that defines
25 [ <possible argument bitmap extensions ... > ]
30 indicates that there is another u32 bitmap following (shown as "possible
31 argument bitmap extensions..." above), and the start of the arguments is moved
81 0x04, 0x0c, 0x00, 0x00, // <-- bitmap
Dmac80211-auth-assoc-deauth.txt27 mac80211->driver: bss_info_changed(set BSSID, basic rate bitmap)
55 mac80211->driver: bss_info_changed(set BSSID, basic rate bitmap)
Drds.txt182 CONG_BITMAP - this is a congestion update bitmap
236 bitmap changes it is sent through all the connections which
237 terminate in the local address of the bitmap which changed.
242 entire bitmap on any bitmap change reasonably efficiently. This
285 wraps the raw congestion bitmap, contains rbnode, waitq, etc.
Dmac80211-injection.txt38 0x04, 0x0c, 0x00, 0x00, // <-- bitmap
Dscaling.txt147 This file implements a bitmap of CPUs. RPS is disabled when it is zero
150 the bitmap.
196 bitmap interface as rps_cpus (see above) when called from procfs:
380 XPS is configured per transmit queue by setting a bitmap of CPUs that
407 configured. To enable XPS, the bitmap of CPUs that may use a transmit
/linux-4.1.27/net/netfilter/ipset/
DKconfig28 tristate "bitmap:ip set support"
31 This option adds the bitmap:ip set type support, by which one
37 tristate "bitmap:ip,mac set support"
40 This option adds the bitmap:ip,mac set type support, by which one
46 tristate "bitmap:port set support"
49 This option adds the bitmap:port set type support, by which one
/linux-4.1.27/Documentation/filesystems/
Dqnx6.txt138 The qnx6fs filesystem allocation bitmap is stored in a tree under bitmap
139 root node in the superblock and each bit in the bitmap represents one
145 Bits at the end of the last bitmap block are set to 1, if the device is
146 smaller than addressing space in the bitmap.
151 The bitmap itself is divided into three parts.
159 blocks represented by the upper half bitmap system area bits.
Dsysv-fs.txt72 - Minix FS a bitmap
78 - Minix FS a bitmap
Df2fs.txt357 : It contains segment information such as valid block count and bitmap for the
444 A dentry block consists of 214 dentry slots and file names. Therein a bitmap is
448 Dentry Block(4 K) = bitmap (27 bytes) + reserved (3 bytes) +
459 | bitmap | reserved | dentries | file names |
575 F2FS manages a bitmap. Each bit represents the validity of a block, and the
576 bitmap is composed of a bit stream covering whole blocks in main area.
Dproc.txt242 SigPnd bitmap of pending signals for the thread
243 ShdPnd bitmap of shared pending signals for the process
244 SigBlk bitmap of blocked signals
245 SigIgn bitmap of ignored signals
246 SigCgt bitmap of caught signals
247 CapInh bitmap of inheritable capabilities
248 CapPrm bitmap of permitted capabilities
249 CapEff bitmap of effective capabilities
250 CapBnd bitmap of capabilities bounding set
309 pending bitmap of pending signals
[all …]
/linux-4.1.27/fs/ext4/
Dbitmap.c13 unsigned int ext4_count_free(char *bitmap, unsigned int numchars) in ext4_count_free() argument
15 return numchars * BITS_PER_BYTE - memweight(bitmap, numchars); in ext4_count_free()
DMakefile7 ext4-y := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o page-io.o \
Dmballoc.c365 static void ext4_mb_generate_from_pa(struct super_block *sb, void *bitmap,
367 static void ext4_mb_generate_from_freelist(struct super_block *sb, void *bitmap,
504 static void mb_cmp_bitmaps(struct ext4_buddy *e4b, void *bitmap) in mb_cmp_bitmaps() argument
506 if (memcmp(e4b->bd_info->bb_bitmap, bitmap, e4b->bd_sb->s_blocksize)) { in mb_cmp_bitmaps()
510 b2 = (unsigned char *) bitmap; in mb_cmp_bitmaps()
535 static inline void mb_cmp_bitmaps(struct ext4_buddy *e4b, void *bitmap) in mb_cmp_bitmaps() argument
722 void *buddy, void *bitmap, ext4_group_t group) in ext4_mb_generate_buddy() argument
736 i = mb_find_next_zero_bit(bitmap, max, 0); in ext4_mb_generate_buddy()
741 i = mb_find_next_bit(bitmap, max, i); in ext4_mb_generate_buddy()
749 i = mb_find_next_zero_bit(bitmap, max, i); in ext4_mb_generate_buddy()
[all …]
Dialloc.c52 void ext4_mark_bitmap_end(int start_bit, int end_bit, char *bitmap) in ext4_mark_bitmap_end() argument
61 ext4_set_bit(i, bitmap); in ext4_mark_bitmap_end()
63 memset(bitmap + (i >> 3), 0xff, (end_bit - i) >> 3); in ext4_mark_bitmap_end()
/linux-4.1.27/drivers/staging/rtl8723au/hal/
Drtl8723a_cmd.c143 void rtl8723a_add_rateatid(struct rtw_adapter *pAdapter, u32 bitmap, u8 arg, u8 rssi_level) in rtl8723a_add_rateatid() argument
147 u32 raid = bitmap & 0xf0000000; in rtl8723a_add_rateatid()
149 bitmap &= 0x0fffffff; in rtl8723a_add_rateatid()
151 bitmap = ODM_Get_Rate_Bitmap23a(pHalData, macid, bitmap, in rtl8723a_add_rateatid()
154 bitmap |= raid; in rtl8723a_add_rateatid()
156 rtl8723a_set_raid_cmd(pAdapter, bitmap, arg); in rtl8723a_add_rateatid()
/linux-4.1.27/Documentation/input/
Dalps.txt166 given axis. Thus the bitmap packet can be used for low-resolution multi-touch
201 byte 6: bitmap data (described below)
202 byte 7: bitmap data (described below)
204 The last two bytes represent a partial bitmap packet, with 3 full packets
205 required to construct a complete bitmap packet. Once assembled, the 6-byte
206 bitmap packet has the following format:
217 1) In the bitmap data, bit 6 of byte 0 serves as a sync byte to
218 identify the first fragment of a bitmap packet.
220 2) The bitmaps represent the same data as in the v3 bitmap packets, although
227 4) There is a 3 to 1 ratio of position packets to bitmap packets. Therefore
/linux-4.1.27/drivers/infiniband/hw/ehca/
Dipz_pt_fn.c152 bit = find_first_zero_bit(page->bitmap, IPZ_SPAGE_PER_KPAGE >> order); in alloc_small_queue_page()
153 __set_bit(bit, page->bitmap); in alloc_small_queue_page()
184 __clear_bit(bit, page->bitmap); in free_small_queue_page()
Dipz_pt_fn.h68 unsigned long bitmap[IPZ_SPAGE_PER_KPAGE / BITS_PER_LONG]; member
/linux-4.1.27/fs/f2fs/
Ddir.c128 if (!test_bit_le(bit_pos, d->bitmap)) { in find_target_dentry()
339 test_and_set_bit_le(0, (void *)d->bitmap); in do_make_empty_dir()
340 test_and_set_bit_le(1, (void *)d->bitmap); in do_make_empty_dir()
453 int room_for_filename(const void *bitmap, int slots, int max_slots) in room_for_filename() argument
458 zero_start = find_next_zero_bit_le(bitmap, max_slots, bit_start); in room_for_filename()
462 zero_end = find_next_bit_le(bitmap, max_slots, zero_start); in room_for_filename()
488 test_and_set_bit_le(bit_pos + i, (void *)d->bitmap); in f2fs_update_dentry()
741 bit_pos = find_next_bit_le(d->bitmap, d->max, bit_pos); in f2fs_fill_dentries()
Dsegment.c1696 unsigned long *bitmap = SIT_I(sbi)->dirty_sentries_bitmap; in add_sits_in_set() local
1699 for_each_set_bit(segno, bitmap, MAIN_SEGS(sbi)) in add_sits_in_set()
1729 unsigned long *bitmap = sit_i->dirty_sentries_bitmap; in flush_sit_entries() local
1780 for_each_set_bit_from(segno, bitmap, end) { in flush_sit_entries()
1805 __clear_bit(segno, bitmap); in flush_sit_entries()
Df2fs.h243 const void *bitmap; member
255 d->bitmap = &t->dentry_bitmap; in make_dentry_ptr()
261 d->bitmap = &t->dentry_bitmap; in make_dentry_ptr()
/linux-4.1.27/drivers/iommu/
Dintel_irq_remapping.c111 index = bitmap_find_free_region(table->bitmap, in alloc_irte()
254 bitmap_release_region(iommu->ir_table->bitmap, index, in clear_entries()
480 unsigned long *bitmap; in intel_setup_irq_remapping() local
498 bitmap = kcalloc(BITS_TO_LONGS(INTR_REMAP_TABLE_ENTRIES), in intel_setup_irq_remapping()
500 if (bitmap == NULL) { in intel_setup_irq_remapping()
506 ir_table->bitmap = bitmap; in intel_setup_irq_remapping()
522 kfree(iommu->ir_table->bitmap); in intel_teardown_irq_remapping()
1289 if (!bitmap_empty(iommu->ir_table->bitmap, in dmar_ir_hotplug()
Damd_iommu.c1506 dma_dom->aperture[0]->bitmap); in dma_ops_unity_map()
1586 __set_bit(page, dom->aperture[index]->bitmap); in dma_ops_reserve_addresses()
1613 dma_dom->aperture[index]->bitmap = (void *)get_zeroed_page(gfp); in alloc_new_range()
1614 if (!dma_dom->aperture[index]->bitmap) in alloc_new_range()
1689 free_page((unsigned long)dma_dom->aperture[index]->bitmap); in alloc_new_range()
1725 address = iommu_area_alloc(dom->aperture[i]->bitmap, in dma_ops_area_alloc()
1796 bitmap_clear(range->bitmap, address, pages); in dma_ops_free_addresses()
1983 free_page((unsigned long)dom->aperture[i]->bitmap); in dma_ops_domain_free()
2028 dma_dom->aperture[0]->bitmap[0] = 1; in dma_ops_domain_alloc()
Damd_iommu_types.h433 unsigned long *bitmap; member
/linux-4.1.27/fs/omfs/
DMakefile4 omfs-y := bitmap.o dir.o file.o inode.o
/linux-4.1.27/fs/qnx4/
DMakefile7 qnx4-objs := inode.o dir.o namei.o bitmap.o
/linux-4.1.27/arch/sparc/mm/
Diommu.c60 unsigned long *bitmap; in sbus_iommu_init() local
111 bitmap = kmalloc(IOMMU_NPTES>>3, GFP_KERNEL); in sbus_iommu_init()
112 if (!bitmap) { in sbus_iommu_init()
117 bit_map_init(&iommu->usemap, bitmap, IOMMU_NPTES); in sbus_iommu_init()
/linux-4.1.27/fs/minix/
DMakefile7 minix-objs := bitmap.o itree_v1.o itree_v2.o namei.o inode.o file.o dir.o
/linux-4.1.27/fs/affs/
DMakefile9 affs-objs := super.o namei.o inode.o file.o dir.o amigaffs.o bitmap.o symlink.o
DChanges22 bitmap flag set valid.
34 - fix for a possible bitmap corruption
79 - new bitmap allocation functions
189 the bitmap was changed, so the bitmap wasn't sync'd.
234 bitmap pointers read only, also allows them
/linux-4.1.27/drivers/md/bcache/
Djournal.c149 __set_bit(b, bitmap); \ in bch_journal_read()
160 unsigned long bitmap[SB_JOURNAL_BUCKETS / BITS_PER_LONG]; in bch_journal_read() local
164 bitmap_zero(bitmap, SB_JOURNAL_BUCKETS); in bch_journal_read()
174 if (test_bit(l, bitmap)) in bch_journal_read()
187 for (l = find_first_zero_bit(bitmap, ca->sb.njournal_buckets); in bch_journal_read()
189 l = find_next_zero_bit(bitmap, ca->sb.njournal_buckets, l + 1)) in bch_journal_read()
201 r = find_next_bit(bitmap, ca->sb.njournal_buckets, l + 1); in bch_journal_read()
233 if (test_bit(l, bitmap)) in bch_journal_read()
/linux-4.1.27/drivers/misc/vmw_vmci/
Dvmci_doorbell.h49 void vmci_dbell_scan_notification_entries(u8 *bitmap);
Dvmci_doorbell.c383 void vmci_dbell_scan_notification_entries(u8 *bitmap) in vmci_dbell_scan_notification_entries() argument
388 if (bitmap[idx] & 0x1) { in vmci_dbell_scan_notification_entries()
389 bitmap[idx] &= ~1; in vmci_dbell_scan_notification_entries()
/linux-4.1.27/drivers/net/wireless/brcm80211/include/
Dbrcmu_wifi.h198 static inline bool ac_bitmap_tst(u8 bitmap, int prec) in ac_bitmap_tst() argument
200 return (bitmap & (1 << (prec))) != 0; in ac_bitmap_tst()
/linux-4.1.27/arch/ia64/mm/
Dtlb.c62 ia64_ctx.bitmap = alloc_bootmem((ia64_ctx.max_ctx+1)>>3); in mmu_context_init()
77 ia64_ctx.bitmap[i] ^= flush_bit; in wrap_mmu_context()
81 ia64_ctx.next = find_next_zero_bit(ia64_ctx.bitmap, in wrap_mmu_context()
83 ia64_ctx.limit = find_next_bit(ia64_ctx.bitmap, in wrap_mmu_context()
/linux-4.1.27/security/selinux/ss/
Debitmap.c147 unsigned long bitmap; in ebitmap_netlbl_import() local
150 rc = netlbl_catmap_getlong(catmap, &offset, &bitmap); in ebitmap_netlbl_import()
157 if (bitmap == 0) { in ebitmap_netlbl_import()
178 e_iter->maps[idx] = bitmap; in ebitmap_netlbl_import()
Dmls.c468 struct ebitmap bitmap; in mls_convert_context() local
484 ebitmap_init(&bitmap); in mls_convert_context()
492 rc = ebitmap_set_bit(&bitmap, catdatum->value - 1, 1); in mls_convert_context()
499 c->range.level[l].cat = bitmap; in mls_convert_context()
/linux-4.1.27/arch/powerpc/include/asm/
Dmsi_bitmap.h19 unsigned long *bitmap; member
/linux-4.1.27/arch/unicore32/mm/
Dinit.c136 phys_addr_t bitmap; in uc32_bootmem_init() local
144 bitmap = memblock_alloc_base(boot_pages << PAGE_SHIFT, L1_CACHE_BYTES, in uc32_bootmem_init()
153 init_bootmem_node(pgdat, __phys_to_pfn(bitmap), start_pfn, end_pfn); in uc32_bootmem_init()
/linux-4.1.27/fs/ext3/
DMakefile7 ext3-y := balloc.o bitmap.o dir.o file.o fsync.o ialloc.o inode.o \
Dresize.c139 static void mark_bitmap_end(int start_bit, int end_bit, char *bitmap) in mark_bitmap_end() argument
148 ext3_set_bit(i, bitmap); in mark_bitmap_end()
150 memset(bitmap + (i >> 3), 0xff, (end_bit - i) >> 3); in mark_bitmap_end()
/linux-4.1.27/net/xfrm/
Dxfrm_replay.c138 if (x->replay.bitmap & (1U << diff)) { in xfrm_replay_check()
160 x->replay.bitmap = ((x->replay.bitmap) << diff) | 1; in xfrm_replay_advance()
162 x->replay.bitmap = 1; in xfrm_replay_advance()
166 x->replay.bitmap |= (1U << diff); in xfrm_replay_advance()
/linux-4.1.27/fs/hfsplus/
DMakefile8 bnode.o brec.o bfind.o tables.o unicode.o wrapper.o bitmap.o part_tbl.o \
/linux-4.1.27/fs/ntfs/
DMakefile9 ntfs-$(CONFIG_NTFS_RW) += bitmap.o lcnalloc.o logfile.o quota.o usnjrnl.o
/linux-4.1.27/net/sched/
Dsch_generic.c462 u32 bitmap; member
487 priv->bitmap |= (1 << band); in pfifo_fast_enqueue()
498 int band = bitmap2band[priv->bitmap]; in pfifo_fast_dequeue()
506 priv->bitmap &= ~(1 << band); in pfifo_fast_dequeue()
517 int band = bitmap2band[priv->bitmap]; in pfifo_fast_peek()
536 priv->bitmap = 0; in pfifo_fast_reset()
Dcls_u32.c564 unsigned long *bitmap = kzalloc(BITS_TO_LONGS(NR_U32_NODE) * sizeof(unsigned long), in gen_new_kid() local
566 if (!bitmap) in gen_new_kid()
572 set_bit(TC_U32_NODE(n->handle), bitmap); in gen_new_kid()
574 i = find_next_zero_bit(bitmap, NR_U32_NODE, 0x800); in gen_new_kid()
576 i = find_next_zero_bit(bitmap, NR_U32_NODE, 1); in gen_new_kid()
578 kfree(bitmap); in gen_new_kid()
Dsch_qfq.c756 unsigned long bitmap) in qfq_ffs() argument
758 int index = __ffs(bitmap); in qfq_ffs()
762 static inline unsigned long mask_from(unsigned long bitmap, int from) in mask_from() argument
764 return bitmap & ~((1UL << from) - 1); in mask_from()
/linux-4.1.27/arch/mips/lasat/
Dpicvue.h29 int pvc_program_cg(int charnum, u8 bitmap[BM_SIZE]);
Dpicvue.c148 int pvc_program_cg(int charnum, u8 bitmap[BM_SIZE]) in pvc_program_cg()
160 pvc_write(bitmap[i], MODE_DATA); in pvc_program_cg()
/linux-4.1.27/include/uapi/linux/
Dvirtio_input.h64 __u8 bitmap[128]; member
Dxfrm.h86 __u32 bitmap; member
/linux-4.1.27/Documentation/DocBook/
D.kernel-api.xml.cmd2 …nel.h lib/kstrtox.c lib/string.c arch/x86/include/asm/bitops.h lib/bitmap.c lib/bitmap.c lib/cmdli…
/linux-4.1.27/arch/mn10300/unit-asb2305/
Dpci-asb2305.h50 u16 bitmap; /* Available IRQs */ member
/linux-4.1.27/Documentation/device-mapper/
Ddm-raid.txt56 Interval between runs of the bitmap daemon that
57 clear bits. A longer interval means less bitmap I/O but
67 logical size of the array. The bitmap records the device
131 # No metadata devices specified to hold superblock/bitmap info
182 (possibly aided by a bitmap).
Dswitch.txt61 a bitmap to look up the location of the I/O and choose the appropriate
62 lower tier device to route the I/O. By using a bitmap we are able to
/linux-4.1.27/Documentation/hwmon/
Dw83791d96 A similar change has occurred for the bitmap corresponding to the alarms. The
97 original legacy method used a single sysfs alarms file containing a bitmap
108 specification as that avoids bitmap problems and is the preferred interface
135 Alarms bitmap vs. beep_mask bitmask
/linux-4.1.27/tools/perf/util/include/linux/
Dbitmap.h10 int __bitmap_weight(const unsigned long *bitmap, int bits);
/linux-4.1.27/arch/mips/dec/prom/
Dmemory.c73 if (bm->bitmap[i] == 0xff) in rex_setup_memory_region()
/linux-4.1.27/drivers/net/ethernet/ti/
Ddavinci_cpdma.c90 unsigned long *bitmap; member
173 pool->bitmap = devm_kzalloc(dev, bitmap_size, GFP_KERNEL); in cpdma_desc_pool_create()
174 if (!pool->bitmap) in cpdma_desc_pool_create()
241 index = bitmap_find_next_zero_area(pool->bitmap, in cpdma_desc_alloc()
244 bitmap_set(pool->bitmap, index, num_desc); in cpdma_desc_alloc()
261 bitmap_clear(pool->bitmap, index, num_desc); in cpdma_desc_free()
732 index = bitmap_find_next_zero_area(pool->bitmap, in cpdma_check_free_tx_desc()
/linux-4.1.27/kernel/events/
Duprobes.c110 unsigned long *bitmap; /* 0 = free slot */ member
1174 area->bitmap = kzalloc(BITS_TO_LONGS(UINSNS_PER_PAGE) * sizeof(long), GFP_KERNEL); in __create_xol_area()
1175 if (!area->bitmap) in __create_xol_area()
1185 set_bit(0, area->bitmap); in __create_xol_area()
1194 kfree(area->bitmap); in __create_xol_area()
1231 kfree(area->bitmap); in uprobe_clear_state()
1265 slot_nr = find_first_zero_bit(area->bitmap, UINSNS_PER_PAGE); in xol_take_insn_slot()
1267 if (!test_and_set_bit(slot_nr, area->bitmap)) in xol_take_insn_slot()
1334 clear_bit(slot_nr, area->bitmap); in xol_free_insn_slot()
/linux-4.1.27/drivers/staging/rtl8188eu/include/
Drtl8188e_cmd.h111 void rtl8188e_Add_RateATid(struct adapter *padapter, u32 bitmap, u8 arg,
Dhal_intf.h205 void (*Add_RateATid)(struct adapter *adapter, u32 bitmap, u8 arg,
295 void rtw_hal_add_ra_tid(struct adapter *adapt, u32 bitmap, u8 arg, u8 level);
/linux-4.1.27/Documentation/ABI/testing/
Dconfigfs-usb-gadget-uvc65 bmControls - bitmap specifying which controls are
88 bmControls - bitmap specifying which controls are
192 wHeight - height of decoded bitmap frame in px
239 wHeight - height of decoded bitmap frame in px
/linux-4.1.27/net/ipv4/
Dcipso_ipv4.c149 static int cipso_v4_bitmap_walk(const unsigned char *bitmap, in cipso_v4_bitmap_walk() argument
161 byte = bitmap[byte_offset]; in cipso_v4_bitmap_walk()
173 byte = bitmap[++byte_offset]; in cipso_v4_bitmap_walk()
191 static void cipso_v4_bitmap_setbit(unsigned char *bitmap, in cipso_v4_bitmap_setbit() argument
202 bitmap[byte_spot] |= bitmask; in cipso_v4_bitmap_setbit()
204 bitmap[byte_spot] &= ~bitmask; in cipso_v4_bitmap_setbit()
828 const unsigned char *bitmap, in cipso_v4_map_cat_rbm_valid() argument
843 cat = cipso_v4_bitmap_walk(bitmap, in cipso_v4_map_cat_rbm_valid()
Dudp.c138 unsigned long *bitmap, in udp_lib_lport_inuse() argument
151 (bitmap || udp_sk(sk2)->udp_port_hash == num) && in udp_lib_lport_inuse()
158 if (!bitmap) in udp_lib_lport_inuse()
160 __set_bit(udp_sk(sk2)->udp_port_hash >> log, bitmap); in udp_lib_lport_inuse()
223 DECLARE_BITMAP(bitmap, PORTS_PER_CHAIN); in udp_lib_get_port()
237 bitmap_zero(bitmap, PORTS_PER_CHAIN); in udp_lib_get_port()
239 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk, in udp_lib_get_port()
250 !test_bit(snum >> udptable->log, bitmap) && in udp_lib_get_port()
/linux-4.1.27/drivers/net/wireless/mwifiex/
Dsdio.c1433 u32 bitmap; in mwifiex_process_int_status() local
1488 bitmap = (u32) card->mp_regs[reg->wr_bitmap_l]; in mwifiex_process_int_status()
1489 bitmap |= ((u32) card->mp_regs[reg->wr_bitmap_u]) << 8; in mwifiex_process_int_status()
1491 bitmap |= in mwifiex_process_int_status()
1493 bitmap |= in mwifiex_process_int_status()
1496 card->mp_wr_bitmap = bitmap; in mwifiex_process_int_status()
1523 bitmap = (u32) card->mp_regs[reg->rd_bitmap_l]; in mwifiex_process_int_status()
1524 bitmap |= ((u32) card->mp_regs[reg->rd_bitmap_u]) << 8; in mwifiex_process_int_status()
1526 bitmap |= in mwifiex_process_int_status()
1528 bitmap |= in mwifiex_process_int_status()
[all …]
DREADME155 mp_rd_bitmap = <SDIO multi-port read bitmap>
156 mp_wr_bitmap = <SDIO multi-port write bitmap>
/linux-4.1.27/arch/powerpc/platforms/cell/spufs/
Dsched.c54 DECLARE_BITMAP(bitmap, MAX_PRIO);
510 set_bit(ctx->prio, spu_prio->bitmap); in __spu_add_to_rq()
533 clear_bit(prio, spu_prio->bitmap); in __spu_del_from_rq()
843 best = find_first_bit(spu_prio->bitmap, prio); in grab_runnable_context()
1122 __clear_bit(i, spu_prio->bitmap); in spu_sched_init()
/linux-4.1.27/include/trace/events/
Dbtrfs.h915 struct btrfs_free_cluster *cluster, u64 size, int bitmap),
917 TP_ARGS(block_group, cluster, size, bitmap),
925 __field( int, bitmap )
934 __entry->bitmap = bitmap;
943 __entry->size, __entry->max_size, __entry->bitmap)
/linux-4.1.27/arch/mips/include/asm/dec/
Dprom.h82 unsigned char bitmap[0]; member
/linux-4.1.27/drivers/sh/clk/
Dcore.c43 unsigned long *bitmap) in clk_rate_table_build() argument
61 if (!div || !mult || (bitmap && !test_bit(i, bitmap))) in clk_rate_table_build()
/linux-4.1.27/block/
Dblk-mq.c1519 static void blk_mq_free_bitmap(struct blk_mq_ctxmap *bitmap) in blk_mq_free_bitmap() argument
1521 kfree(bitmap->map); in blk_mq_free_bitmap()
1524 static int blk_mq_alloc_bitmap(struct blk_mq_ctxmap *bitmap, int node) in blk_mq_alloc_bitmap() argument
1528 bitmap->bits_per_word = bpw; in blk_mq_alloc_bitmap()
1531 bitmap->map = kzalloc_node(num_maps * sizeof(struct blk_align_bitmap), in blk_mq_alloc_bitmap()
1533 if (!bitmap->map) in blk_mq_alloc_bitmap()
1538 bitmap->map[i].depth = min(total, bitmap->bits_per_word); in blk_mq_alloc_bitmap()
1539 total -= bitmap->map[i].depth; in blk_mq_alloc_bitmap()
/linux-4.1.27/drivers/staging/rtl8723au/include/
Drtl8723a_cmd.h154 void rtl8723a_add_rateatid(struct rtw_adapter *padapter, u32 bitmap, u8 arg, u8 rssi_level);
/linux-4.1.27/include/xen/interface/
Dphysdev.h99 uint8_t * bitmap; member
/linux-4.1.27/drivers/video/fbdev/
Dpm2fb.c1322 u8 *bitmap = (u8 *)cursor->image.data; in pm2vfb_cursor() local
1334 u8 data = *bitmap ^ *mask; in pm2vfb_cursor()
1337 data = *mask & *bitmap; in pm2vfb_cursor()
1346 bitmap++; in pm2vfb_cursor()
1429 u8 *bitmap = (u8 *)cursor->image.data; in pm2fb_cursor() local
1442 u8 data = *bitmap ^ *mask; in pm2fb_cursor()
1445 data = *mask & *bitmap; in pm2fb_cursor()
1448 bitmap++; in pm2fb_cursor()
Dpm3fb.c686 u8 *bitmap = (u8 *)cursor->image.data; in pm3fb_cursor() local
696 u8 data = *bitmap ^ *mask; in pm3fb_cursor()
699 data = *mask & *bitmap; in pm3fb_cursor()
708 bitmap++; in pm3fb_cursor()
Dtdfxfb.c1133 u8 *bitmap = (u8 *)cursor->image.data; in tdfxfb_cursor() local
1144 u8 data = *mask ^ *bitmap; in tdfxfb_cursor()
1146 data = *mask & *bitmap; in tdfxfb_cursor()
1152 bitmap++; in tdfxfb_cursor()
/linux-4.1.27/drivers/scsi/pm8001/
Dpm8001_sas.c67 void *bitmap = pm8001_ha->tags; in pm8001_tag_free() local
68 clear_bit(tag, bitmap); in pm8001_tag_free()
79 void *bitmap = pm8001_ha->tags; in pm8001_tag_alloc() local
83 tag = find_first_zero_bit(bitmap, pm8001_ha->tags_num); in pm8001_tag_alloc()
88 set_bit(tag, bitmap); in pm8001_tag_alloc()
/linux-4.1.27/Documentation/blockdev/drbd/
Ddrbd-connection-state-overview.dot39 label="new application (WRITE?) requests blocked\lwhile bitmap is exchanged"
/linux-4.1.27/kernel/
Dsysctl.c2603 unsigned long *bitmap = *(unsigned long **) table->data; in proc_do_large_bitmap() local
2607 if (!bitmap || !bitmap_len || !left || (*ppos && !write)) { in proc_do_large_bitmap()
2681 bit_a = find_next_bit(bitmap, bitmap_len, bit_b); in proc_do_large_bitmap()
2684 bit_b = find_next_zero_bit(bitmap, bitmap_len, in proc_do_large_bitmap()
2713 bitmap_or(bitmap, bitmap, tmp_bitmap, bitmap_len); in proc_do_large_bitmap()
2715 bitmap_copy(bitmap, tmp_bitmap, bitmap_len); in proc_do_large_bitmap()
/linux-4.1.27/drivers/block/
Dxen-blkfront.c286 unsigned long *bitmap, *old; in xlbd_reserve_minors() local
288 bitmap = kcalloc(BITS_TO_LONGS(end), sizeof(*bitmap), in xlbd_reserve_minors()
290 if (bitmap == NULL) in xlbd_reserve_minors()
296 memcpy(bitmap, minors, in xlbd_reserve_minors()
297 BITS_TO_LONGS(nr_minors) * sizeof(*bitmap)); in xlbd_reserve_minors()
298 minors = bitmap; in xlbd_reserve_minors()
301 old = bitmap; in xlbd_reserve_minors()
/linux-4.1.27/arch/x86/include/asm/
Dpci_x86.h68 u16 bitmap; /* Available IRQs */ member
/linux-4.1.27/Documentation/devicetree/bindings/dma/
Dimg-mdc-dma.txt18 - The second cell is a bitmap specifying to which channels the DMA request
/linux-4.1.27/drivers/net/wireless/ti/wl1251/
Dcmd.c169 void *bitmap, u16 bitmap_len, u8 bitmap_control) in wl1251_cmd_vbm() argument
189 memcpy(vbm->tim.pvb_field, bitmap, bitmap_len); in wl1251_cmd_vbm()
Dcmd.h37 void *bitmap, u16 bitmap_len, u8 bitmap_control);
/linux-4.1.27/drivers/infiniband/hw/mlx5/
Dmain.c460 uuari->bitmap = kcalloc(BITS_TO_LONGS(gross_uuars), in mlx5_ib_alloc_ucontext()
461 sizeof(*uuari->bitmap), in mlx5_ib_alloc_ucontext()
463 if (!uuari->bitmap) { in mlx5_ib_alloc_ucontext()
473 set_bit(i, uuari->bitmap); in mlx5_ib_alloc_ucontext()
515 kfree(uuari->bitmap); in mlx5_ib_alloc_ucontext()
538 kfree(uuari->bitmap); in mlx5_ib_dealloc_ucontext()
/linux-4.1.27/drivers/net/wireless/ath/carl9170/
Dtx.c362 WARN_ON_ONCE(!test_and_clear_bit(off, tid_info->bitmap)); in carl9170_tx_shift_bm()
368 if (!bitmap_empty(tid_info->bitmap, off)) in carl9170_tx_shift_bm()
369 off = find_first_bit(tid_info->bitmap, off); in carl9170_tx_shift_bm()
374 bitmap_shift_right(tid_info->bitmap, tid_info->bitmap, in carl9170_tx_shift_bm()
1423 if (WARN_ON_ONCE(test_and_set_bit(off, agg->bitmap))) in carl9170_tx_ampdu_queue()
/linux-4.1.27/drivers/pci/hotplug/
Dibmphp_core.c176 rtable->slots[loop].irq[0].bitmap); in ibmphp_init_devno()
178 rtable->slots[loop].irq[1].bitmap); in ibmphp_init_devno()
180 rtable->slots[loop].irq[2].bitmap); in ibmphp_init_devno()
182 rtable->slots[loop].irq[3].bitmap); in ibmphp_init_devno()
/linux-4.1.27/drivers/staging/media/dt3155v4l/
Ddt3155v4l.c837 unsigned long *bitmap; member
862 mem->bitmap = kzalloc(bitmap_size, GFP_KERNEL); in dt3155_alloc_coherent()
863 if (!mem->bitmap) in dt3155_alloc_coherent()
891 kfree(mem->bitmap); in dt3155_free_coherent()
/linux-4.1.27/drivers/net/wireless/iwlegacy/
D4965-mac.c2522 u64 bitmap, sent_bitmap; in il4965_tx_status_reply_compressed_ba() local
2525 if (unlikely(ba_resp->bitmap)) in il4965_tx_status_reply_compressed_ba()
2545 bitmap = le64_to_cpu(ba_resp->bitmap) >> sh; in il4965_tx_status_reply_compressed_ba()
2549 sent_bitmap = bitmap & agg->bitmap; in il4965_tx_status_reply_compressed_ba()
2563 D_TX_REPLY("Bitmap %llx\n", (unsigned long long)bitmap); in il4965_tx_status_reply_compressed_ba()
2681 agg->bitmap = 0; in il4965_tx_status_reply_tx()
2705 u64 bitmap = 0; in il4965_tx_status_reply_tx() local
2744 bitmap = bitmap << sh; in il4965_tx_status_reply_tx()
2752 bitmap = bitmap << sh; in il4965_tx_status_reply_tx()
2755 bitmap |= 1ULL << sh; in il4965_tx_status_reply_tx()
[all …]
/linux-4.1.27/drivers/media/platform/vivid/
Dvivid-vid-out.c839 win->bitmap = NULL; in vidioc_g_fmt_vid_out_overlay()
840 else if (win->bitmap) { in vidioc_g_fmt_vid_out_overlay()
841 if (copy_to_user(win->bitmap, dev->bitmap_out, in vidioc_g_fmt_vid_out_overlay()
925 if (win->bitmap) { in vidioc_s_fmt_vid_out_overlay()
926 new_bitmap = memdup_user(win->bitmap, bitmap_size); in vidioc_s_fmt_vid_out_overlay()
Dvivid-vid-cap.c1058 win->bitmap = NULL; in vidioc_g_fmt_vid_overlay()
1059 else if (win->bitmap) { in vidioc_g_fmt_vid_overlay()
1060 if (copy_to_user(win->bitmap, dev->bitmap_cap, in vidioc_g_fmt_vid_overlay()
1144 if (win->bitmap) { in vidioc_s_fmt_vid_overlay()
1149 if (copy_from_user(new_bitmap, win->bitmap, bitmap_size)) { in vidioc_s_fmt_vid_overlay()
/linux-4.1.27/drivers/input/
Dinput.c1107 unsigned long *bitmap, int max) in input_seq_print_bitmap() argument
1117 bitmap[i], skip_empty)) { in input_seq_print_bitmap()
1376 static int input_print_bitmap(char *buf, int buf_size, unsigned long *bitmap,
1431 static int input_print_bitmap(char *buf, int buf_size, unsigned long *bitmap, in input_print_bitmap() argument
1440 bitmap[i], skip_empty); in input_print_bitmap()
1526 const char *name, unsigned long *bitmap, int max) in input_add_uevent_bm_var() argument
1535 bitmap, max, false); in input_add_uevent_bm_var()
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dfw-api-tx.h510 __le64 bitmap; member
/linux-4.1.27/drivers/vfio/
Dvfio_iommu_type1.c406 unsigned long bitmap = PAGE_MASK; in vfio_pgsize_bitmap() local
410 bitmap &= domain->domain->ops->pgsize_bitmap; in vfio_pgsize_bitmap()
413 return bitmap; in vfio_pgsize_bitmap()
/linux-4.1.27/kernel/sched/
Drt.c75 __clear_bit(i, array->bitmap); in init_rt_rq()
78 __set_bit(MAX_RT_PRIO, array->bitmap); in init_rt_rq()
1080 sched_find_first_bit(array->bitmap); in dec_rt_prio()
1186 __set_bit(rt_se_prio(rt_se), array->bitmap); in __enqueue_rt_entity()
1198 __clear_bit(rt_se_prio(rt_se), array->bitmap); in __dequeue_rt_entity()
1434 idx = sched_find_first_bit(array->bitmap); in pick_next_rt_entity()
/linux-4.1.27/drivers/atm/
DKconfig225 messages is controlled by a bitmap. This may be specified as a
260 messages is controlled by a bitmap. This may be specified as a
284 messages is controlled by a bitmap. This may be specified as a
316 messages is controlled by a bitmap. This may be specified as a
/linux-4.1.27/arch/frv/kernel/
Dhead-uc-fr451.S71 sethi.p %hi(32768),gr4 ; allow for a maximal allocator bitmap
/linux-4.1.27/include/linux/mlx5/
Ddriver.h157 unsigned long *bitmap; member
554 DECLARE_BITMAP(bitmap, MLX5_DB_PER_PAGE);
/linux-4.1.27/fs/afs/
Ddir.c97 uint8_t bitmap[8]; member
252 if (!(block->pagehdr.bitmap[offset / 8] & in afs_dir_iterate_block()
283 if (!(block->pagehdr.bitmap[next / 8] & in afs_dir_iterate_block()
/linux-4.1.27/drivers/net/wireless/
Dmwl8k.c2180 u32 bitmap);
2199 u32 bitmap = 0; in mwl8k_post_cmd() local
2222 bitmap = priv->running_bsses; in mwl8k_post_cmd()
2223 mwl8k_enable_bsses(hw, false, bitmap); in mwl8k_post_cmd()
2273 if (bitmap) in mwl8k_post_cmd()
2274 mwl8k_enable_bsses(hw, true, bitmap); in mwl8k_post_cmd()
3771 u8 bitmap; member
3774 static int mwl8k_cmd_get_watchdog_bitmap(struct ieee80211_hw *hw, u8 *bitmap) in mwl8k_cmd_get_watchdog_bitmap() argument
3788 *bitmap = cmd->bitmap; in mwl8k_cmd_get_watchdog_bitmap()
3803 u8 bitmap = 0, stream_index; in mwl8k_watchdog_ba_events() local
[all …]
/linux-4.1.27/drivers/irqchip/
Dirq-gic-v3-its.c710 unsigned long *bitmap = NULL; in its_lpi_alloc_chunks() local
731 bitmap = kzalloc(BITS_TO_LONGS(nr_chunks * IRQS_PER_CHUNK) * sizeof (long), in its_lpi_alloc_chunks()
733 if (!bitmap) in its_lpi_alloc_chunks()
745 return bitmap; in its_lpi_alloc_chunks()
/linux-4.1.27/Documentation/devicetree/bindings/arm/
Dfw-cfg.txt43 The interface revision / feature bitmap can be retrieved with key 0x0001. The
/linux-4.1.27/drivers/scsi/mvsas/
Dmv_sas.c41 void *bitmap = mvi->tags; in mvs_tag_clear() local
42 clear_bit(tag, bitmap); in mvs_tag_clear()
52 void *bitmap = mvi->tags; in mvs_tag_set() local
53 set_bit(tag, bitmap); in mvs_tag_set()
59 void *bitmap = mvi->tags; in mvs_tag_alloc() local
61 index = find_first_zero_bit(bitmap, mvi->tags_num); in mvs_tag_alloc()
/linux-4.1.27/fs/ufs/
Dutil.h420 static inline unsigned find_last_zero_bit (unsigned char * bitmap, in find_last_zero_bit() argument
427 mapp = bitmap + (size >> 3); in find_last_zero_bit()
/linux-4.1.27/net/batman-adv/
Dbat_iv_ogm.c1290 unsigned long *bitmap; in batadv_iv_ogm_update_seqnos() local
1337 bitmap = neigh_ifinfo->bat_iv.real_bits; in batadv_iv_ogm_update_seqnos()
1338 need_update |= batadv_bit_get_packet(bat_priv, bitmap, in batadv_iv_ogm_update_seqnos()
1341 packet_count = bitmap_weight(bitmap, in batadv_iv_ogm_update_seqnos()
/linux-4.1.27/Documentation/zh_CN/
DSubmittingPatches310 Subject: [patch 2/5] ext2: improve scalability of bitmap searching
/linux-4.1.27/drivers/scsi/
Dmvumi.h149 u8 bitmap[0]; member
/linux-4.1.27/sound/pci/oxygen/
Doxygen_lib.c784 static inline int is_bit_set(const u32 *bitmap, unsigned int bit) in is_bit_set() argument
786 return bitmap[bit / 32] & (1 << (bit & 31)); in is_bit_set()
/linux-4.1.27/arch/arm/mach-tegra/
Dsleep-tegra30.S182 moveq r4, #(1 << 4) @ wfe bitmap
183 movne r4, #(1 << 8) @ wfi bitmap
/linux-4.1.27/arch/x86/pci/
Dirq.c133 DBG(" %d:%02x/%04x", j, e->irq[j].link, e->irq[j].bitmap); in pirq_peer_trick()
911 mask = info->irq[pin - 1].bitmap; in pcibios_lookup_irq()

12