Home
last modified time | relevance | path

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

12

/linux-4.4.14/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.h179 struct bitmap { struct
238 struct bitmap *bitmap_create(struct mddev *mddev, int slot);
243 void bitmap_print_sb(struct bitmap *bitmap);
244 void bitmap_update_sb(struct bitmap *bitmap);
245 void bitmap_status(struct seq_file *seq, struct bitmap *bitmap);
247 int bitmap_setallbits(struct bitmap *bitmap);
248 void bitmap_write_all(struct bitmap *bitmap);
250 void bitmap_dirty_bits(struct bitmap *bitmap, unsigned long s, unsigned long e);
253 int bitmap_startwrite(struct bitmap *bitmap, sector_t offset,
255 void bitmap_endwrite(struct bitmap *bitmap, sector_t offset,
[all …]
Draid1.c380 bitmap_endwrite(r1_bio->mddev->bitmap, r1_bio->sector, in close_write()
756 bitmap_unplug(conf->mddev->bitmap); in flush_pending_writes()
1030 bitmap_unplug(mddev->bitmap); in raid1_unplug()
1054 struct bitmap *bitmap; in make_request() local
1106 bitmap = mddev->bitmap; in make_request()
1148 bitmap) { in make_request()
1153 wait_event(bitmap->behind_wait, in make_request()
1154 atomic_read(&bitmap->behind_writes) == 0); in make_request()
1348 if (bitmap && in make_request()
1349 (atomic_read(&bitmap->behind_writes) in make_request()
[all …]
Dmd.c1127 } else if (mddev->bitmap) { in super_90_validate()
1131 if (ev1 < mddev->bitmap->events_cleared) in super_90_validate()
1239 if (mddev->bitmap && mddev->bitmap_info.file == NULL) in super_90_sync()
1620 } else if (mddev->bitmap) { in super_1_validate()
1624 if (ev1 < mddev->bitmap->events_cleared) in super_1_validate()
1723 if (mddev->bitmap && mddev->bitmap_info.file == NULL) { in super_1_sync()
1734 if (rdev->saved_raid_disk >= 0 && mddev->bitmap) in super_1_sync()
1883 struct bitmap *bitmap; in super_1_allow_new_offset() local
1900 bitmap = rdev->mddev->bitmap; in super_1_allow_new_offset()
1901 if (bitmap && !rdev->mddev->bitmap_info.file && in super_1_allow_new_offset()
[all …]
Draid10.c420 bitmap_endwrite(r10_bio->mddev->bitmap, r10_bio->sector, in close_write()
862 bitmap_unplug(conf->mddev->bitmap); in flush_pending_writes()
1038 bitmap_unplug(mddev->bitmap); in raid10_unplug()
1349 bitmap_startwrite(mddev->bitmap, r10_bio->sector, r10_bio->sectors, 0); in __make_request()
2830 if (mddev->bitmap == NULL && in sync_request()
2864 bitmap_end_sync(mddev->bitmap, mddev->curr_resync, in sync_request()
2869 bitmap_end_sync(mddev->bitmap, sect, in sync_request()
2874 if ((!mddev->bitmap || conf->fullsync) in sync_request()
2888 bitmap_close_sync(mddev->bitmap); in sync_request()
2966 must_sync = bitmap_start_sync(mddev->bitmap, sect, in sync_request()
[all …]
Dmd.h425 struct bitmap *bitmap; /* the bitmap for the device */ member
DMakefile19 md-mod-y += md.o bitmap.o
/linux-4.4.14/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.c523 struct mlx4_bitmap (*bitmap)[MLX4_QP_TABLE_ZONE_NUM] = NULL; in mlx4_create_zones() local
534 bitmap = kmalloc(sizeof(*bitmap), GFP_KERNEL); in mlx4_create_zones()
536 if (NULL == bitmap) { in mlx4_create_zones()
541 err = mlx4_bitmap_init(*bitmap + MLX4_QP_TABLE_ZONE_GENERAL, dev->caps.num_qps, in mlx4_create_zones()
550 err = mlx4_zone_add_one(qp_table->zones, *bitmap + MLX4_QP_TABLE_ZONE_GENERAL, in mlx4_create_zones()
558 err = mlx4_bitmap_init(*bitmap + MLX4_QP_TABLE_ZONE_RSS, in mlx4_create_zones()
569 err = mlx4_zone_add_one(qp_table->zones, *bitmap + MLX4_QP_TABLE_ZONE_RSS, in mlx4_create_zones()
587 for (k = MLX4_QP_TABLE_ZONE_RSS + 1; k < sizeof(*bitmap)/sizeof((*bitmap)[0]); in mlx4_create_zones()
650 *bitmap + MLX4_QP_TABLE_ZONE_RSS, in mlx4_create_zones()
661 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()
398 err = mlx4_bitmap_init(&cq_table->bitmap, dev->caps.num_cqs, in mlx4_init_cq_table()
411 mlx4_bitmap_cleanup(&mlx4_priv(dev)->cq_table.bitmap); in mlx4_cleanup_cq_table()
Dmlx4.h659 struct mlx4_bitmap bitmap; member
672 struct mlx4_bitmap bitmap; member
680 struct mlx4_bitmap bitmap; member
693 struct mlx4_bitmap bitmap; member
723 struct mlx4_bitmap bitmap; member
919 u32 mlx4_bitmap_alloc(struct mlx4_bitmap *bitmap);
920 void mlx4_bitmap_free(struct mlx4_bitmap *bitmap, u32 obj, int use_rr);
921 u32 mlx4_bitmap_alloc_range(struct mlx4_bitmap *bitmap, int cnt,
923 void mlx4_bitmap_free_range(struct mlx4_bitmap *bitmap, u32 obj, int cnt,
925 u32 mlx4_bitmap_avail(struct mlx4_bitmap *bitmap);
[all …]
Den_netdev.c2740 bitmap_clear(stats_bitmap->bitmap, last_i, NUM_FLOW_STATS); in mlx4_en_update_pfc_stats_bitmap()
2743 bitmap_set(stats_bitmap->bitmap, last_i, in mlx4_en_update_pfc_stats_bitmap()
2748 bitmap_set(stats_bitmap->bitmap, last_i, in mlx4_en_update_pfc_stats_bitmap()
2753 bitmap_set(stats_bitmap->bitmap, last_i, in mlx4_en_update_pfc_stats_bitmap()
2758 bitmap_set(stats_bitmap->bitmap, last_i, in mlx4_en_update_pfc_stats_bitmap()
2774 bitmap_zero(stats_bitmap->bitmap, NUM_ALL_STATS); in mlx4_en_set_stats_bitmap()
2777 bitmap_set(stats_bitmap->bitmap, last_i + in mlx4_en_set_stats_bitmap()
2779 bitmap_set(stats_bitmap->bitmap, last_i + in mlx4_en_set_stats_bitmap()
2781 bitmap_set(stats_bitmap->bitmap, last_i + in mlx4_en_set_stats_bitmap()
2783 bitmap_set(stats_bitmap->bitmap, last_i + in mlx4_en_set_stats_bitmap()
[all …]
Deq.c1003 eq->eqn = mlx4_bitmap_alloc(&priv->eq_table.bitmap); in mlx4_create_eq()
1054 mlx4_bitmap_free(&priv->eq_table.bitmap, eq->eqn, MLX4_USE_RR); in mlx4_create_eq()
1098 mlx4_bitmap_free(&priv->eq_table.bitmap, eq->eqn, MLX4_USE_RR); in mlx4_free_eq()
1175 err = mlx4_bitmap_init(&priv->eq_table.bitmap, in mlx4_init_eq_table()
1309 mlx4_bitmap_cleanup(&priv->eq_table.bitmap); in mlx4_init_eq_table()
1342 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()
1198 mlx4_bitmap_free(&priv->mcg_table.bitmap, in mlx4_qp_attach_common()
1294 mlx4_bitmap_free(&priv->mcg_table.bitmap, in mlx4_qp_detach_common()
1314 mlx4_bitmap_free(&priv->mcg_table.bitmap, in mlx4_qp_detach_common()
1620 err = mlx4_bitmap_init(&priv->mcg_table.bitmap, dev->caps.num_amgms, in mlx4_init_mcg_table()
1634 mlx4_bitmap_cleanup(&mlx4_priv(dev)->mcg_table.bitmap); in mlx4_cleanup_mcg_table()
/linux-4.4.14/arch/powerpc/sysdev/
Dmsi_bitmap.c25 offset = bitmap_find_next_zero_area(bmp->bitmap, bmp->irq_count, 0, in msi_bitmap_alloc_hwirqs()
30 bitmap_set(bmp->bitmap, offset, num); in msi_bitmap_alloc_hwirqs()
51 bitmap_clear(bmp->bitmap, offset, num); in msi_bitmap_free_hwirqs()
63 bitmap_allocate_region(bmp->bitmap, hwirq, 0); in msi_bitmap_reserve_hwirq()
99 bitmap_allocate_region(bmp->bitmap, 0, get_count_order(bmp->irq_count)); in msi_bitmap_reserve_dt_hwirqs()
107 bitmap_release_region(bmp->bitmap, *p + j, 0); in msi_bitmap_reserve_dt_hwirqs()
128 bmp->bitmap = kzalloc(size, GFP_KERNEL); in msi_bitmap_alloc()
130 bmp->bitmap = memblock_virt_alloc(size, 0); in msi_bitmap_alloc()
132 kmemleak_not_leak(bmp->bitmap); in msi_bitmap_alloc()
135 if (!bmp->bitmap) { in msi_bitmap_alloc()
[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.4.14/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()
946 static int __reg_op(unsigned long *bitmap, unsigned int pos, int order, int reg_op) in __reg_op() argument
978 if (bitmap[index + i] & mask) in __reg_op()
986 bitmap[index + i] |= mask; in __reg_op()
991 bitmap[index + i] &= ~mask; in __reg_op()
1012 int bitmap_find_free_region(unsigned long *bitmap, unsigned int bits, int order) in bitmap_find_free_region() argument
1017 if (!__reg_op(bitmap, pos, order, REG_OP_ISFREE)) in bitmap_find_free_region()
1019 __reg_op(bitmap, pos, order, REG_OP_ALLOC); in bitmap_find_free_region()
[all …]
Dtest_printf.c292 bitmap(void) in bitmap() function
333 bitmap(); in test_pointer()
Dvsprintf.c808 char *bitmap_string(char *buf, char *end, unsigned long *bitmap, in bitmap_string() argument
831 val = (bitmap[word] >> bit) & chunkmask; in bitmap_string()
849 char *bitmap_list_string(char *buf, char *end, unsigned long *bitmap, in bitmap_list_string() argument
860 rbot = cur = find_first_bit(bitmap, nr_bits); in bitmap_list_string()
863 cur = find_next_bit(bitmap, nr_bits, cur + 1); in bitmap_list_string()
/linux-4.4.14/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.4.14/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.4.14/fs/nfs/
Dnfs4xdr.c1189 static void encode_getattr_one(struct xdr_stream *xdr, uint32_t bitmap, struct compound_hdr *hdr) in encode_getattr_one() argument
1196 *p = cpu_to_be32(bitmap); in encode_getattr_one()
3118 static int decode_attr_bitmap(struct xdr_stream *xdr, uint32_t *bitmap) in decode_attr_bitmap() argument
3128 bitmap[0] = bitmap[1] = bitmap[2] = 0; in decode_attr_bitmap()
3133 bitmap[0] = be32_to_cpup(p++); in decode_attr_bitmap()
3135 bitmap[1] = be32_to_cpup(p++); in decode_attr_bitmap()
3137 bitmap[2] = be32_to_cpup(p); in decode_attr_bitmap()
3161 static int decode_attr_supported(struct xdr_stream *xdr, uint32_t *bitmap, uint32_t *bitmask) in decode_attr_supported() argument
3163 if (likely(bitmap[0] & FATTR4_WORD0_SUPPORTED_ATTRS)) { in decode_attr_supported()
3168 bitmap[0] &= ~FATTR4_WORD0_SUPPORTED_ATTRS; in decode_attr_supported()
[all …]
Dcallback_xdr.c123 static __be32 decode_bitmap(struct xdr_stream *xdr, uint32_t *bitmap) in decode_bitmap() argument
136 bitmap[0] = ntohl(*p++); in decode_bitmap()
138 bitmap[1] = ntohl(*p); in decode_bitmap()
203 status = decode_bitmap(xdr, args->bitmap); in decode_getattr_args()
498 uint32_t bitmap[2]; in decode_recallany_args() local
505 status = decode_bitmap(xdr, bitmap); in decode_recallany_args()
508 args->craa_type_mask = bitmap[0]; in decode_recallany_args()
541 static __be32 encode_attr_bitmap(struct xdr_stream *xdr, const uint32_t *bitmap, __be32 **savep) in encode_attr_bitmap() argument
546 bm[0] = htonl(bitmap[0] & CB_SUPPORTED_ATTR0); in encode_attr_bitmap()
547 bm[1] = htonl(bitmap[1] & CB_SUPPORTED_ATTR1); in encode_attr_bitmap()
[all …]
Dcallback_proc.c34 res->bitmap[0] = res->bitmap[1] = 0; in nfs4_callback_getattr()
57 res->bitmap[0] = (FATTR4_WORD0_CHANGE|FATTR4_WORD0_SIZE) & in nfs4_callback_getattr()
58 args->bitmap[0]; in nfs4_callback_getattr()
59 res->bitmap[1] = (FATTR4_WORD1_TIME_METADATA|FATTR4_WORD1_TIME_MODIFY) & in nfs4_callback_getattr()
60 args->bitmap[1]; in nfs4_callback_getattr()
Dcallback.h65 uint32_t bitmap[2]; member
70 uint32_t bitmap[2]; member
/linux-4.4.14/fs/ocfs2/
Docfs2.h868 static inline void _ocfs2_set_bit(unsigned int bit, unsigned long *bitmap) in _ocfs2_set_bit() argument
870 __set_bit_le(bit, bitmap); in _ocfs2_set_bit()
874 static inline void _ocfs2_clear_bit(unsigned int bit, unsigned long *bitmap) in _ocfs2_clear_bit() argument
876 __clear_bit_le(bit, bitmap); in _ocfs2_clear_bit()
898 static inline void ocfs2_set_bit_unaligned(int bit, void *bitmap) in ocfs2_set_bit_unaligned() argument
900 bitmap = correct_addr_and_bit_unaligned(&bit, bitmap); in ocfs2_set_bit_unaligned()
901 ocfs2_set_bit(bit, bitmap); in ocfs2_set_bit_unaligned()
904 static inline void ocfs2_clear_bit_unaligned(int bit, void *bitmap) in ocfs2_clear_bit_unaligned() argument
906 bitmap = correct_addr_and_bit_unaligned(&bit, bitmap); in ocfs2_clear_bit_unaligned()
907 ocfs2_clear_bit(bit, bitmap); in ocfs2_clear_bit_unaligned()
[all …]
Dlocalalloc.c736 void *bitmap; in ocfs2_claim_local_alloc_bits() local
755 bitmap = la->la_bitmap; in ocfs2_claim_local_alloc_bits()
772 ocfs2_set_bit(start++, bitmap); in ocfs2_claim_local_alloc_bits()
792 void *bitmap; in ocfs2_free_local_alloc_bits() local
802 bitmap = la->la_bitmap; in ocfs2_free_local_alloc_bits()
816 ocfs2_clear_bit(start++, bitmap); in ocfs2_free_local_alloc_bits()
844 void *bitmap = NULL; in ocfs2_local_alloc_find_clear_bits() local
876 bitmap = OCFS2_LOCAL_ALLOC(alloc)->la_bitmap; in ocfs2_local_alloc_find_clear_bits()
881 while ((bitoff = ocfs2_find_next_zero_bit(bitmap, left, startoff)) != -1) { in ocfs2_local_alloc_find_clear_bits()
939 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.c1271 void *bitmap; in ocfs2_block_group_find_clear_bits() local
1281 bitmap = bg->bg_bitmap; in ocfs2_block_group_find_clear_bits()
1283 while((offset = ocfs2_find_next_zero_bit(bitmap, total_bits, start)) != -1) { in ocfs2_block_group_find_clear_bits()
1333 void *bitmap = bg->bg_bitmap; in ocfs2_block_group_set_bits() local
1364 ocfs2_set_bit(bit_off++, bitmap); in ocfs2_block_group_set_bits()
2441 unsigned long *bitmap)) in _ocfs2_free_suballoc_bits() argument
2536 unsigned long *bitmap)) in _ocfs2_free_clusters() argument
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/fs/btrfs/
Dfree-space-cache.c519 void *bitmap) in io_ctl_add_entry() argument
529 entry->type = (bitmap) ? BTRFS_FREE_SPACE_BITMAP : in io_ctl_add_entry()
548 static int io_ctl_add_bitmap(struct btrfs_io_ctl *io_ctl, void *bitmap) in io_ctl_add_bitmap() argument
564 memcpy(io_ctl->cur, bitmap, PAGE_CACHE_SIZE); in io_ctl_add_bitmap()
624 memcpy(entry->bitmap, io_ctl->cur, PAGE_CACHE_SIZE); in io_ctl_read_bitmap()
650 if (e->bitmap || prev->bitmap) in merge_space_tree()
778 e->bitmap = kzalloc(PAGE_CACHE_SIZE, GFP_NOFS); in __load_free_space_cache()
779 if (!e->bitmap) { in __load_free_space_cache()
937 e->bitmap); in write_cache_extent_entries()
941 if (e->bitmap) { in write_cache_extent_entries()
[all …]
Dfree-space-cache.h27 unsigned long *bitmap; member
129 u64 offset, u64 bytes, bool bitmap);
/linux-4.4.14/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()
1069 struct udf_bitmap *bitmap; in udf_sb_alloc_bitmap() local
1078 bitmap = kzalloc(size, GFP_KERNEL); in udf_sb_alloc_bitmap()
1080 bitmap = vzalloc(size); /* TODO: get rid of vzalloc */ in udf_sb_alloc_bitmap()
1082 if (bitmap == NULL) in udf_sb_alloc_bitmap()
[all …]
/linux-4.4.14/fs/nilfs2/
Dalloc.c390 static int nilfs_palloc_find_available_slot(unsigned char *bitmap, in nilfs_palloc_find_available_slot() argument
400 pos = nilfs_find_next_zero_bit(bitmap, end, pos); in nilfs_palloc_find_available_slot()
403 if (!nilfs_set_bit_atomic(lock, pos, bitmap)) in nilfs_palloc_find_available_slot()
412 pos = nilfs_find_next_zero_bit(bitmap, end, pos); in nilfs_palloc_find_available_slot()
415 if (!nilfs_set_bit_atomic(lock, pos, bitmap)) in nilfs_palloc_find_available_slot()
513 unsigned char *bitmap; in nilfs_palloc_prepare_alloc_entry() local
550 bitmap = bitmap_kaddr + bh_offset(bitmap_bh); in nilfs_palloc_prepare_alloc_entry()
552 bitmap, group_offset, in nilfs_palloc_prepare_alloc_entry()
613 unsigned char *bitmap; in nilfs_palloc_commit_free_entry() local
622 bitmap = bitmap_kaddr + bh_offset(req->pr_bitmap_bh); in nilfs_palloc_commit_free_entry()
[all …]
/linux-4.4.14/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.c435 static inline int is_revectored(int nr, struct revectored_struct *bitmap) in is_revectored() argument
439 :"m" (*bitmap), "r" (nr)); in is_revectored()
/linux-4.4.14/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()
/linux-4.4.14/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);
/linux-4.4.14/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.4.14/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.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Dalloc.c111 bitmap_fill(pgdir->bitmap, MLX5_DB_PER_PAGE); in mlx5_alloc_db_pgdir()
129 i = find_first_bit(pgdir->bitmap, MLX5_DB_PER_PAGE); in mlx5_alloc_db_from_pgdir()
133 __clear_bit(i, pgdir->bitmap); in mlx5_alloc_db_from_pgdir()
186 __set_bit(db->index, db->u.pgdir->bitmap); in mlx5_db_free()
188 if (bitmap_full(db->u.pgdir->bitmap, MLX5_DB_PER_PAGE)) { in mlx5_db_free()
Duar.c147 uuari->bitmap = kcalloc(BITS_TO_LONGS(tot_uuars), sizeof(*uuari->bitmap), in mlx5_alloc_uuars()
149 if (!uuari->bitmap) { in mlx5_alloc_uuars()
202 kfree(uuari->bitmap); in mlx5_alloc_uuars()
222 kfree(uuari->bitmap); in mlx5_free_uuars()
Dflow_table.c52 unsigned long *bitmap; member
295 *ix = find_next_zero_bit(ft->bitmap, ft->size, g->start_ix); in alloc_flow_index()
299 __set_bit(*ix, ft->bitmap); in alloc_flow_index()
308 __clear_bit(ix, ft->bitmap); in mlx5_free_flow_index()
367 ft->bitmap = bm; in mlx5_create_flow_table()
410 kfree(ft->bitmap); in mlx5_destroy_flow_table()
/linux-4.4.14/drivers/staging/comedi/drivers/
Dni_usb6501.c175 unsigned int val, u8 *bitmap) in ni6501_port_command() argument
183 if (command != SET_PORT_DIR && !bitmap) in ni6501_port_command()
200 tx[17] = *bitmap; in ni6501_port_command()
238 *bitmap = devpriv->usb_rx_buf[14]; in ni6501_port_command()
372 u8 bitmap; in ni6501_dio_insn_bits() local
378 bitmap = (s->state >> port * 8) & 0xFF; in ni6501_dio_insn_bits()
380 port, &bitmap); in ni6501_dio_insn_bits()
389 ret = ni6501_port_command(dev, READ_PORT, port, &bitmap); in ni6501_dio_insn_bits()
392 data[1] |= bitmap << port * 8; in ni6501_dio_insn_bits()
/linux-4.4.14/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.4.14/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.4.14/drivers/pci/host/
Dpci-xgene-msi.c47 unsigned long *bitmap; member
211 msi_irq = bitmap_find_next_zero_area(msi->bitmap, NR_MSI_VEC, 0, in xgene_irq_domain_alloc()
214 bitmap_set(msi->bitmap, msi_irq, msi->num_cpus); in xgene_irq_domain_alloc()
240 bitmap_clear(msi->bitmap, hwirq, msi->num_cpus); in xgene_irq_domain_free()
283 xgene_msi->bitmap = kzalloc(size, GFP_KERNEL); in xgene_msi_init_allocator()
284 if (!xgene_msi->bitmap) in xgene_msi_init_allocator()
375 kfree(msi->bitmap); in xgene_msi_remove()
376 msi->bitmap = NULL; in xgene_msi_remove()
/linux-4.4.14/drivers/staging/rtl8188eu/hal/
Drtl8188e_cmd.c134 void rtl8188e_Add_RateATid(struct adapter *pAdapter, u32 bitmap, u8 arg, u8 rssi_level) in rtl8188e_Add_RateATid() argument
142 raid = (bitmap>>28) & 0x0f; in rtl8188e_Add_RateATid()
143 bitmap &= 0x0fffffff; in rtl8188e_Add_RateATid()
146 bitmap = ODM_Get_Rate_Bitmap(&haldata->odmpriv, macid, bitmap, rssi_level); in rtl8188e_Add_RateATid()
148 bitmap |= ((raid<<28)&0xf0000000); in rtl8188e_Add_RateATid()
150 init_rate = get_highest_rate_idx(bitmap&0x0fffffff)&0x3f; in rtl8188e_Add_RateATid()
157 raid = (bitmap>>28) & 0x0f; in rtl8188e_Add_RateATid()
159 bitmap &= 0x0fffffff; in rtl8188e_Add_RateATid()
162 __func__, macid, raid, bitmap, shortGIrate); in rtl8188e_Add_RateATid()
164 ODM_RA_UpdateRateInfo_8188E(&(haldata->odmpriv), macid, raid, bitmap, shortGIrate); in rtl8188e_Add_RateATid()
Dhal_intf.c229 void rtw_hal_add_ra_tid(struct adapter *adapt, u32 bitmap, u8 arg, in rtw_hal_add_ra_tid() argument
233 adapt->HalFunc.Add_RateATid(adapt, bitmap, arg, in rtw_hal_add_ra_tid()
/linux-4.4.14/drivers/net/wireless/realtek/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.4.14/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()
389 bitmap_no = bitmap_find_next_zero_area_off(cma->bitmap, in cma_alloc()
396 bitmap_set(cma->bitmap, bitmap_no, bitmap_count); in cma_alloc()
Dcma_debug.c42 used = bitmap_weight(cma->bitmap, (int)cma_bitmap_maxno(cma)); in cma_used_get()
59 start = find_next_zero_bit(cma->bitmap, bitmap_maxno, end); in cma_maxchunk_get()
62 end = find_next_bit(cma->bitmap, bitmap_maxno, start); in cma_maxchunk_get()
190 debugfs_create_u32_array("bitmap", S_IRUGO, tmp, (u32*)cma->bitmap, u32s); in cma_debugfs_add_one()
Dcma.h7 unsigned long *bitmap; member
Dpage_idle.c198 __BIN_ATTR(bitmap, S_IRUSR | S_IWUSR,
/linux-4.4.14/Documentation/vm/
Didle_page_tracking.txt14 it consists of the only read-write file, /sys/kernel/mm/page_idle/bitmap.
16 The file implements a bitmap where each bit corresponds to a memory page. The
17 bitmap is represented by an array of 8-byte integers, and the page at PFN #i is
25 current bitmap value.
35 Reading from or writing to /sys/kernel/mm/page_idle/bitmap will return
44 /sys/kernel/mm/page_idle/bitmap. The pages can be found by reading
51 3. Read /sys/kernel/mm/page_idle/bitmap and count the number of bits set. If
80 is set manually, by writing to /sys/kernel/mm/page_idle/bitmap (see the USER API
97 result noticeably. In order not to stall scanning of the idle page bitmap,
Duserfaultfd.txt135 doesn't need to keep any per-page state bitmap relative to the live
136 migration around and a single per-page bitmap has to be maintained in
138 missing in the destination node. The bitmap in the source node is
141 course the bitmap is updated accordingly. It's also useful to avoid
/linux-4.4.14/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.txt284 bitmap and its derivatives such as cpumask and nodemask:
289 For printing bitmap and its derivatives such as cpumask and nodemask,
290 %*pb output the bitmap with field width as the number of bits and %*pbl
291 output the bitmap as range list with field width as the number of bits.
/linux-4.4.14/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.4.14/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.4.14/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.c147 unsigned long *bitmap = &kvm->arch.irq_sources_bitmap; in kvm_request_irq_source_id() local
151 irq_source_id = find_first_zero_bit(bitmap, BITS_PER_LONG); in kvm_request_irq_source_id()
161 set_bit(irq_source_id, bitmap); in kvm_request_irq_source_id()
/linux-4.4.14/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.4.14/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.c1756 void set_feat_caps(u32 *bitmap, enum place_holder_in_cap_bitmap cap) in set_feat_caps() argument
1767 bitmap[arr_idx] |= (1 << bit_idx); in set_feat_caps()
1770 int get_feat_caps(u32 *bitmap, enum place_holder_in_cap_bitmap cap) in get_feat_caps() argument
1782 ret = (bitmap[arr_idx] & (1 << bit_idx)) ? 1 : 0; in get_feat_caps()
1786 void clear_feat_caps(u32 *bitmap, enum place_holder_in_cap_bitmap cap) in clear_feat_caps() argument
1797 bitmap[arr_idx] &= ~(1 << bit_idx); in clear_feat_caps()
/linux-4.4.14/Documentation/cma/
Ddebugfs.txt14 - [RO] bitmap: The bitmap of page states in the zone.
/linux-4.4.14/Documentation/DocBook/
Dkernel-api.xml.db116 API---bitmap-shift-right
117 API---bitmap-shift-left
118 API-bitmap-find-next-zero-area-off
119 API---bitmap-parse
120 API-bitmap-parse-user
121 API-bitmap-print-to-pagebuf
122 API-bitmap-parselist-user
123 API-bitmap-remap
124 API-bitmap-bitremap
125 API-bitmap-onto
[all …]
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.4.14/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.4.14/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.4.14/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.txt360 : It contains segment information such as valid block count and bitmap for the
447 A dentry block consists of 214 dentry slots and file names. Therein a bitmap is
451 Dentry Block(4 K) = bitmap (27 bytes) + reserved (3 bytes) +
462 | bitmap | reserved | dentries | file names |
578 F2FS manages a bitmap. Each bit represents the validity of a block, and the
579 bitmap is composed of a bit stream covering whole blocks in main area.
/linux-4.4.14/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.c366 static void ext4_mb_generate_from_pa(struct super_block *sb, void *bitmap,
368 static void ext4_mb_generate_from_freelist(struct super_block *sb, void *bitmap,
505 static void mb_cmp_bitmaps(struct ext4_buddy *e4b, void *bitmap) in mb_cmp_bitmaps() argument
507 if (memcmp(e4b->bd_info->bb_bitmap, bitmap, e4b->bd_sb->s_blocksize)) { in mb_cmp_bitmaps()
511 b2 = (unsigned char *) bitmap; in mb_cmp_bitmaps()
536 static inline void mb_cmp_bitmaps(struct ext4_buddy *e4b, void *bitmap) in mb_cmp_bitmaps() argument
723 void *buddy, void *bitmap, ext4_group_t group) in ext4_mb_generate_buddy() argument
737 i = mb_find_next_zero_bit(bitmap, max, 0); in ext4_mb_generate_buddy()
742 i = mb_find_next_bit(bitmap, max, i); in ext4_mb_generate_buddy()
750 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.4.14/drivers/iommu/
Dintel_irq_remapping.c127 index = bitmap_find_free_region(table->bitmap, in alloc_irte()
253 bitmap_release_region(iommu->ir_table->bitmap, index, in clear_entries()
444 bitmap_set(iommu->ir_table->bitmap, i, 1); in iommu_load_old_irte()
512 unsigned long *bitmap; in intel_setup_irq_remapping() local
529 bitmap = kcalloc(BITS_TO_LONGS(INTR_REMAP_TABLE_ENTRIES), in intel_setup_irq_remapping()
531 if (bitmap == NULL) { in intel_setup_irq_remapping()
547 ir_table->bitmap = bitmap; in intel_setup_irq_remapping()
583 kfree(bitmap); in intel_setup_irq_remapping()
607 kfree(iommu->ir_table->bitmap); in intel_teardown_irq_remapping()
1465 if (!bitmap_empty(iommu->ir_table->bitmap, in dmar_ir_hotplug()
Damd_iommu.c292 dma_dom->aperture[0]->bitmap); in alloc_unity_mapping()
1431 __set_bit(page, dom->aperture[index]->bitmap); in dma_ops_reserve_addresses()
1458 dma_dom->aperture[index]->bitmap = (void *)get_zeroed_page(gfp); in alloc_new_range()
1459 if (!dma_dom->aperture[index]->bitmap) in alloc_new_range()
1534 free_page((unsigned long)dma_dom->aperture[index]->bitmap); in alloc_new_range()
1572 address = iommu_area_alloc(dom->aperture[i]->bitmap, in dma_ops_area_alloc()
1643 bitmap_clear(range->bitmap, address, pages); in dma_ops_free_addresses()
1830 free_page((unsigned long)dom->aperture[i]->bitmap); in dma_ops_domain_free()
1871 dma_dom->aperture[0]->bitmap[0] = 1; in dma_ops_domain_alloc()
Damd_iommu_types.h434 unsigned long *bitmap; member
/linux-4.4.14/drivers/staging/rtl8723au/hal/
Drtl8723a_cmd.c142 void rtl8723a_add_rateatid(struct rtw_adapter *pAdapter, u32 bitmap, u8 arg, u8 rssi_level) in rtl8723a_add_rateatid() argument
146 u32 raid = bitmap & 0xf0000000; in rtl8723a_add_rateatid()
148 bitmap &= 0x0fffffff; in rtl8723a_add_rateatid()
150 bitmap = ODM_Get_Rate_Bitmap23a(pHalData, macid, bitmap, in rtl8723a_add_rateatid()
153 bitmap |= raid; in rtl8723a_add_rateatid()
155 rtl8723a_set_raid_cmd(pAdapter, bitmap, arg); in rtl8723a_add_rateatid()
/linux-4.4.14/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.4.14/drivers/staging/rdma/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.4.14/fs/omfs/
DMakefile4 omfs-y := bitmap.o dir.o file.o inode.o
/linux-4.4.14/fs/qnx4/
DMakefile7 qnx4-objs := inode.o dir.o namei.o bitmap.o
/linux-4.4.14/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.4.14/fs/minix/
DMakefile7 minix-objs := bitmap.o itree_v1.o itree_v2.o namei.o inode.o file.o dir.o
/linux-4.4.14/drivers/md/bcache/
Djournal.c149 __set_bit(b, bitmap); \ in bch_journal_read()
160 DECLARE_BITMAP(bitmap, SB_JOURNAL_BUCKETS); in bch_journal_read()
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.4.14/fs/f2fs/
Ddir.c119 if (!test_bit_le(bit_pos, d->bitmap)) { in find_target_dentry()
354 test_and_set_bit_le(0, (void *)d->bitmap); in do_make_empty_dir()
355 test_and_set_bit_le(1, (void *)d->bitmap); in do_make_empty_dir()
474 int room_for_filename(const void *bitmap, int slots, int max_slots) in room_for_filename() argument
479 zero_start = find_next_zero_bit_le(bitmap, max_slots, bit_start); in room_for_filename()
483 zero_end = find_next_bit_le(bitmap, max_slots, zero_start); in room_for_filename()
509 test_and_set_bit_le(bit_pos + i, (void *)d->bitmap); in f2fs_update_dentry()
780 bit_pos = find_next_bit_le(d->bitmap, d->max, bit_pos); in f2fs_fill_dentries()
/linux-4.4.14/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.4.14/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.4.14/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.4.14/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.4.14/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.4.14/arch/powerpc/include/asm/
Dmsi_bitmap.h19 unsigned long *bitmap; member
/linux-4.4.14/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.4.14/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.4.14/net/sched/
Dsch_generic.c457 u32 bitmap; member
482 priv->bitmap |= (1 << band); in pfifo_fast_enqueue()
493 int band = bitmap2band[priv->bitmap]; in pfifo_fast_dequeue()
501 priv->bitmap &= ~(1 << band); in pfifo_fast_dequeue()
512 int band = bitmap2band[priv->bitmap]; in pfifo_fast_peek()
531 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.c751 unsigned long bitmap) in qfq_ffs() argument
753 int index = __ffs(bitmap); in qfq_ffs()
757 static inline unsigned long mask_from(unsigned long bitmap, int from) in mask_from() argument
759 return bitmap & ~((1UL << from) - 1); in mask_from()
/linux-4.4.14/fs/ntfs/
DMakefile9 ntfs-$(CONFIG_NTFS_RW) += bitmap.o lcnalloc.o logfile.o quota.o usnjrnl.o
/linux-4.4.14/fs/hfsplus/
DMakefile8 bnode.o brec.o bfind.o tables.o unicode.o wrapper.o bitmap.o part_tbl.o \
/linux-4.4.14/include/uapi/linux/
Dvirtio_input.h64 __u8 bitmap[128]; member
Dxfrm.h86 __u32 bitmap; member
/linux-4.4.14/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.4.14/arch/mn10300/unit-asb2305/
Dpci-asb2305.h43 u16 bitmap; /* Available IRQs */ member
/linux-4.4.14/drivers/vfio/
Dvfio_iommu_type1.c406 unsigned long bitmap = ULONG_MAX; in vfio_pgsize_bitmap() local
410 bitmap &= domain->domain->ops->pgsize_bitmap; in vfio_pgsize_bitmap()
421 if (bitmap & ~PAGE_MASK) { in vfio_pgsize_bitmap()
422 bitmap &= PAGE_MASK; in vfio_pgsize_bitmap()
423 bitmap |= PAGE_SIZE; in vfio_pgsize_bitmap()
426 return bitmap; in vfio_pgsize_bitmap()
/linux-4.4.14/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.4.14/tools/perf/util/include/linux/
Dbitmap.h10 int __bitmap_weight(const unsigned long *bitmap, int bits);
/linux-4.4.14/arch/mips/dec/prom/
Dmemory.c73 if (bm->bitmap[i] == 0xff) in rex_setup_memory_region()
/linux-4.4.14/drivers/staging/rtl8188eu/include/
Drtl8188e_cmd.h110 void rtl8188e_Add_RateATid(struct adapter *padapter, u32 bitmap, u8 arg,
Dhal_intf.h200 void (*Add_RateATid)(struct adapter *adapter, u32 bitmap, u8 arg,
282 void rtw_hal_add_ra_tid(struct adapter *adapt, u32 bitmap, u8 arg, u8 level);
/linux-4.4.14/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.4.14/fs/xfs/libxfs/
Dxfs_ialloc_btree.c444 uint64_t bitmap = 0; in xfs_inobt_irec_to_allocmask() local
474 bitmap |= (inodespbit << in xfs_inobt_irec_to_allocmask()
480 return bitmap; in xfs_inobt_irec_to_allocmask()
/linux-4.4.14/kernel/events/
Duprobes.c101 unsigned long *bitmap; /* 0 = free slot */ member
1175 area->bitmap = kzalloc(BITS_TO_LONGS(UINSNS_PER_PAGE) * sizeof(long), GFP_KERNEL); in __create_xol_area()
1176 if (!area->bitmap) in __create_xol_area()
1189 set_bit(0, area->bitmap); in __create_xol_area()
1198 kfree(area->bitmap); in __create_xol_area()
1235 kfree(area->bitmap); in uprobe_clear_state()
1269 slot_nr = find_first_zero_bit(area->bitmap, UINSNS_PER_PAGE); in xol_take_insn_slot()
1271 if (!test_and_set_bit(slot_nr, area->bitmap)) in xol_take_insn_slot()
1338 clear_bit(slot_nr, area->bitmap); in xol_free_insn_slot()
/linux-4.4.14/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.4.14/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.c137 unsigned long *bitmap, in udp_lib_lport_inuse() argument
150 (bitmap || udp_sk(sk2)->udp_port_hash == num) && in udp_lib_lport_inuse()
157 if (!bitmap) in udp_lib_lport_inuse()
159 __set_bit(udp_sk(sk2)->udp_port_hash >> log, bitmap); in udp_lib_lport_inuse()
222 DECLARE_BITMAP(bitmap, PORTS_PER_CHAIN); in udp_lib_get_port()
236 bitmap_zero(bitmap, PORTS_PER_CHAIN); in udp_lib_get_port()
238 udp_lib_lport_inuse(net, snum, hslot, bitmap, sk, in udp_lib_get_port()
249 !test_bit(snum >> udptable->log, bitmap) && in udp_lib_get_port()
/linux-4.4.14/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.4.14/drivers/net/wireless/mwifiex/
Dsdio.c1487 u32 bitmap; in mwifiex_process_int_status() local
1542 bitmap = (u32) card->mp_regs[reg->wr_bitmap_l]; in mwifiex_process_int_status()
1543 bitmap |= ((u32) card->mp_regs[reg->wr_bitmap_u]) << 8; in mwifiex_process_int_status()
1545 bitmap |= in mwifiex_process_int_status()
1547 bitmap |= in mwifiex_process_int_status()
1550 card->mp_wr_bitmap = bitmap; in mwifiex_process_int_status()
1578 bitmap = (u32) card->mp_regs[reg->rd_bitmap_l]; in mwifiex_process_int_status()
1579 bitmap |= ((u32) card->mp_regs[reg->rd_bitmap_u]) << 8; in mwifiex_process_int_status()
1581 bitmap |= in mwifiex_process_int_status()
1583 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.4.14/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.4.14/drivers/media/platform/sti/c8sectpfe/
Dc8sectpfe-core.c143 unsigned long *bitmap; in c8sectpfe_start_feed() local
180 bitmap = (unsigned long *) channel->pid_buffer_aligned; in c8sectpfe_start_feed()
189 bitmap_set(bitmap, dvbdmxfeed->pid, 1); in c8sectpfe_start_feed()
265 unsigned long *bitmap; in c8sectpfe_stop_feed() local
276 bitmap = (unsigned long *) channel->pid_buffer_aligned; in c8sectpfe_stop_feed()
283 bitmap_clear(bitmap, dvbdmxfeed->pid, 1); in c8sectpfe_stop_feed()
/linux-4.4.14/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.4.14/arch/mips/include/asm/dec/
Dprom.h82 unsigned char bitmap[0]; member
/linux-4.4.14/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.4.14/block/
Dblk-mq.c1547 static void blk_mq_free_bitmap(struct blk_mq_ctxmap *bitmap) in blk_mq_free_bitmap() argument
1549 kfree(bitmap->map); in blk_mq_free_bitmap()
1552 static int blk_mq_alloc_bitmap(struct blk_mq_ctxmap *bitmap, int node) in blk_mq_alloc_bitmap() argument
1556 bitmap->bits_per_word = bpw; in blk_mq_alloc_bitmap()
1559 bitmap->map = kzalloc_node(num_maps * sizeof(struct blk_align_bitmap), in blk_mq_alloc_bitmap()
1561 if (!bitmap->map) in blk_mq_alloc_bitmap()
1566 bitmap->map[i].depth = min(total, bitmap->bits_per_word); in blk_mq_alloc_bitmap()
1567 total -= bitmap->map[i].depth; in blk_mq_alloc_bitmap()
/linux-4.4.14/drivers/staging/rtl8723au/include/
Drtl8723a_cmd.h154 void rtl8723a_add_rateatid(struct rtw_adapter *padapter, u32 bitmap, u8 arg, u8 rssi_level);
/linux-4.4.14/include/xen/interface/
Dphysdev.h99 uint8_t * bitmap; member
/linux-4.4.14/drivers/video/fbdev/
Dpm2fb.c1315 u8 *bitmap = (u8 *)cursor->image.data; in pm2vfb_cursor() local
1327 u8 data = *bitmap ^ *mask; in pm2vfb_cursor()
1330 data = *mask & *bitmap; in pm2vfb_cursor()
1339 bitmap++; in pm2vfb_cursor()
1422 u8 *bitmap = (u8 *)cursor->image.data; in pm2fb_cursor() local
1435 u8 data = *bitmap ^ *mask; in pm2fb_cursor()
1438 data = *mask & *bitmap; in pm2fb_cursor()
1441 bitmap++; in pm2fb_cursor()
Dpm3fb.c679 u8 *bitmap = (u8 *)cursor->image.data; in pm3fb_cursor() local
689 u8 data = *bitmap ^ *mask; in pm3fb_cursor()
692 data = *mask & *bitmap; in pm3fb_cursor()
701 bitmap++; in pm3fb_cursor()
Dtdfxfb.c1114 u8 *bitmap = (u8 *)cursor->image.data; in tdfxfb_cursor() local
1125 u8 data = *mask ^ *bitmap; in tdfxfb_cursor()
1127 data = *mask & *bitmap; in tdfxfb_cursor()
1133 bitmap++; in tdfxfb_cursor()
/linux-4.4.14/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.4.14/Documentation/blockdev/drbd/
Ddrbd-connection-state-overview.dot39 label="new application (WRITE?) requests blocked\lwhile bitmap is exchanged"
/linux-4.4.14/arch/x86/include/asm/
Dpci_x86.h68 u16 bitmap; /* Available IRQs */ member
/linux-4.4.14/Documentation/devicetree/bindings/dma/
Dimg-mdc-dma.txt18 - The second cell is a bitmap specifying to which channels the DMA request
/linux-4.4.14/drivers/irqchip/
Dirq-gic-v3-its.c685 unsigned long *bitmap = NULL; in its_lpi_alloc_chunks() local
706 bitmap = kzalloc(BITS_TO_LONGS(nr_chunks * IRQS_PER_CHUNK) * sizeof (long), in its_lpi_alloc_chunks()
708 if (!bitmap) in its_lpi_alloc_chunks()
720 if (!bitmap) in its_lpi_alloc_chunks()
723 return bitmap; in its_lpi_alloc_chunks()
/linux-4.4.14/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.4.14/drivers/infiniband/hw/mlx5/
Dmain.c649 uuari->bitmap = kcalloc(BITS_TO_LONGS(gross_uuars), in mlx5_ib_alloc_ucontext()
650 sizeof(*uuari->bitmap), in mlx5_ib_alloc_ucontext()
652 if (!uuari->bitmap) { in mlx5_ib_alloc_ucontext()
662 set_bit(i, uuari->bitmap); in mlx5_ib_alloc_ucontext()
704 kfree(uuari->bitmap); in mlx5_ib_alloc_ucontext()
727 kfree(uuari->bitmap); in mlx5_ib_dealloc_ucontext()
/linux-4.4.14/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.4.14/kernel/
Dsysctl.c2657 unsigned long *bitmap = *(unsigned long **) table->data; in proc_do_large_bitmap() local
2661 if (!bitmap || !bitmap_len || !left || (*ppos && !write)) { in proc_do_large_bitmap()
2735 bit_a = find_next_bit(bitmap, bitmap_len, bit_b); in proc_do_large_bitmap()
2738 bit_b = find_next_zero_bit(bitmap, bitmap_len, in proc_do_large_bitmap()
2767 bitmap_or(bitmap, bitmap, tmp_bitmap, bitmap_len); in proc_do_large_bitmap()
2769 bitmap_copy(bitmap, tmp_bitmap, bitmap_len); in proc_do_large_bitmap()
/linux-4.4.14/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.4.14/drivers/block/
Dxen-blkfront.c363 unsigned long *bitmap, *old; in xlbd_reserve_minors() local
365 bitmap = kcalloc(BITS_TO_LONGS(end), sizeof(*bitmap), in xlbd_reserve_minors()
367 if (bitmap == NULL) in xlbd_reserve_minors()
373 memcpy(bitmap, minors, in xlbd_reserve_minors()
374 BITS_TO_LONGS(nr_minors) * sizeof(*bitmap)); in xlbd_reserve_minors()
375 minors = bitmap; in xlbd_reserve_minors()
378 old = bitmap; in xlbd_reserve_minors()
/linux-4.4.14/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.4.14/drivers/media/platform/vivid/
Dvivid-vid-out.c847 win->bitmap = NULL; in vidioc_g_fmt_vid_out_overlay()
848 else if (win->bitmap) { in vidioc_g_fmt_vid_out_overlay()
849 if (copy_to_user(win->bitmap, dev->bitmap_out, in vidioc_g_fmt_vid_out_overlay()
933 if (win->bitmap) { in vidioc_s_fmt_vid_out_overlay()
934 new_bitmap = memdup_user(win->bitmap, bitmap_size); in vidioc_s_fmt_vid_out_overlay()
Dvivid-vid-cap.c1070 win->bitmap = NULL; in vidioc_g_fmt_vid_overlay()
1071 else if (win->bitmap) { in vidioc_g_fmt_vid_overlay()
1072 if (copy_to_user(win->bitmap, dev->bitmap_cap, in vidioc_g_fmt_vid_overlay()
1156 if (win->bitmap) { in vidioc_s_fmt_vid_overlay()
1161 if (copy_from_user(new_bitmap, win->bitmap, bitmap_size)) { in vidioc_s_fmt_vid_overlay()
/linux-4.4.14/kernel/sched/
Drt.c79 __clear_bit(i, array->bitmap); in init_rt_rq()
82 __set_bit(MAX_RT_PRIO, array->bitmap); in init_rt_rq()
1083 sched_find_first_bit(array->bitmap); in dec_rt_prio()
1189 __set_bit(rt_se_prio(rt_se), array->bitmap); in __enqueue_rt_entity()
1201 __clear_bit(rt_se_prio(rt_se), array->bitmap); in __dequeue_rt_entity()
1437 idx = sched_find_first_bit(array->bitmap); in pick_next_rt_entity()
/linux-4.4.14/drivers/input/
Dinput.c1110 unsigned long *bitmap, int max) in input_seq_print_bitmap() argument
1120 bitmap[i], skip_empty)) { in input_seq_print_bitmap()
1379 static int input_print_bitmap(char *buf, int buf_size, unsigned long *bitmap,
1434 static int input_print_bitmap(char *buf, int buf_size, unsigned long *bitmap, in input_print_bitmap() argument
1443 bitmap[i], skip_empty); in input_print_bitmap()
1529 const char *name, unsigned long *bitmap, int max) in input_add_uevent_bm_var() argument
1538 bitmap, max, false); in input_add_uevent_bm_var()
/linux-4.4.14/drivers/net/wireless/iwlwifi/mvm/
Dfw-api-tx.h522 __le64 bitmap; member
/linux-4.4.14/drivers/hwtracing/stm/
Dcore.c213 static int find_free_channels(unsigned long *bitmap, unsigned int start, in find_free_channels() argument
220 pos = find_next_zero_bit(bitmap, end + 1, pos); in find_free_channels()
227 for (i = 1; i < width && !test_bit(pos + i, bitmap); i++) in find_free_channels()
/linux-4.4.14/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.4.14/drivers/net/wireless/ath/ath10k/
Dwmi-tlv.c2935 struct wmi_tlv_wow_bitmap_pattern *bitmap; in ath10k_wmi_tlv_op_gen_wow_add_pattern() local
2943 sizeof(*tlv) + sizeof(*bitmap) + /* bitmap */ in ath10k_wmi_tlv_op_gen_wow_add_pattern()
2971 tlv->len = __cpu_to_le16(sizeof(*tlv) + sizeof(*bitmap)); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
2977 tlv->len = __cpu_to_le16(sizeof(*bitmap)); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
2978 bitmap = (void *)tlv->value; in ath10k_wmi_tlv_op_gen_wow_add_pattern()
2980 memcpy(bitmap->patternbuf, pattern, pattern_len); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
2981 memcpy(bitmap->bitmaskbuf, bitmask, pattern_len); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
2982 bitmap->pattern_offset = __cpu_to_le32(pattern_offset); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
2983 bitmap->pattern_len = __cpu_to_le32(pattern_len); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
2984 bitmap->bitmask_len = __cpu_to_le32(pattern_len); in ath10k_wmi_tlv_op_gen_wow_add_pattern()
[all …]
/linux-4.4.14/arch/frv/kernel/
Dhead-uc-fr451.S71 sethi.p %hi(32768),gr4 ; allow for a maximal allocator bitmap
/linux-4.4.14/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.4.14/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.4.14/Documentation/devicetree/bindings/arm/
Dfw-cfg.txt43 The interface revision / feature bitmap can be retrieved with key 0x0001. The
/linux-4.4.14/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.4.14/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.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_kms.c468 memcpy(&dev_info.cu_bitmap[0], &cu_info.bitmap[0], sizeof(cu_info.bitmap)); in amdgpu_info_ioctl()
/linux-4.4.14/net/batman-adv/
Dbat_iv_ogm.c1294 unsigned long *bitmap; in batadv_iv_ogm_update_seqnos() local
1341 bitmap = neigh_ifinfo->bat_iv.real_bits; in batadv_iv_ogm_update_seqnos()
1342 need_update |= batadv_bit_get_packet(bat_priv, bitmap, in batadv_iv_ogm_update_seqnos()
1345 packet_count = bitmap_weight(bitmap, in batadv_iv_ogm_update_seqnos()
/linux-4.4.14/Documentation/zh_CN/
DSubmittingPatches310 Subject: [patch 2/5] ext2: improve scalability of bitmap searching
/linux-4.4.14/include/linux/mlx5/
Ddriver.h164 unsigned long *bitmap; member
556 DECLARE_BITMAP(bitmap, MLX5_DB_PER_PAGE);
/linux-4.4.14/drivers/mtd/nand/
Dnand_base.c1131 const unsigned char *bitmap = buf; in nand_check_erased_buf() local
1135 for (; len && ((uintptr_t)bitmap) % sizeof(long); in nand_check_erased_buf()
1136 len--, bitmap++) { in nand_check_erased_buf()
1137 weight = hweight8(*bitmap); in nand_check_erased_buf()
1144 len -= sizeof(long), bitmap += sizeof(long)) { in nand_check_erased_buf()
1145 weight = hweight_long(*((unsigned long *)bitmap)); in nand_check_erased_buf()
1151 for (; len > 0; len--, bitmap++) { in nand_check_erased_buf()
1152 weight = hweight8(*bitmap); in nand_check_erased_buf()
/linux-4.4.14/drivers/scsi/
Dmvumi.h149 u8 bitmap[0]; member

12