Searched refs:bitmap (Results 1 - 25 of 101) sorted by relevance

12345

/drivers/md/
H A Dbitmap.c2 * bitmap.c two-level bitmap (C) Peter T. Breuer (ptb@ot.uc3m.es) 2003
4 * bitmap_create - sets up the bitmap structure
5 * bitmap_destroy - destroys the bitmap structure
8 * - added disk storage for bitmap
9 * - changes to allow various bitmap chunk sizes
31 #include "bitmap.h"
33 static inline char *bmname(struct bitmap *bitmap) argument
35 return bitmap
103 bitmap_checkfree(struct bitmap *bitmap, unsigned long page) argument
206 write_sb_page(struct bitmap *bitmap, struct page *page, int wait) argument
275 write_page(struct bitmap *bitmap, struct page *page, int wait) argument
306 struct bitmap *bitmap = bh->b_private; local
346 read_page(struct file *file, unsigned long index, struct bitmap *bitmap, unsigned long count) argument
421 bitmap_update_sb(struct bitmap *bitmap) argument
446 bitmap_print_sb(struct bitmap *bitmap) argument
485 bitmap_new_disk_sb(struct bitmap *bitmap) argument
548 bitmap_read_sb(struct bitmap *bitmap) argument
649 bitmap_mask_state(struct bitmap *bitmap, enum bitmap_state bits, enum bitmap_mask_op op) argument
686 file_page_index(struct bitmap *bitmap, unsigned long chunk) argument
694 file_page_offset(struct bitmap *bitmap, unsigned long chunk) argument
708 filemap_get_page(struct bitmap *bitmap, unsigned long chunk) argument
717 bitmap_file_unmap(struct bitmap *bitmap) argument
745 bitmap_file_put(struct bitmap *bitmap) argument
772 bitmap_file_kick(struct bitmap *bitmap) argument
808 set_page_attr(struct bitmap *bitmap, struct page *page, enum bitmap_page_attr attr) argument
814 clear_page_attr(struct bitmap *bitmap, struct page *page, enum bitmap_page_attr attr) argument
820 test_page_attr(struct bitmap *bitmap, struct page *page, enum bitmap_page_attr attr) argument
833 bitmap_file_set_bit(struct bitmap *bitmap, sector_t block) argument
863 bitmap_unplug(struct bitmap *bitmap) argument
917 bitmap_init_from_disk(struct bitmap *bitmap, sector_t start) argument
1067 bitmap_write_all(struct bitmap *bitmap) argument
1082 bitmap_count_page(struct bitmap *bitmap, sector_t offset, int inc) argument
1100 struct bitmap *bitmap; local
1285 bitmap_startwrite(struct bitmap *bitmap, sector_t offset, unsigned long sectors, int behind) argument
1349 bitmap_endwrite(struct bitmap *bitmap, sector_t offset, unsigned long sectors, int success, int behind) argument
1406 __bitmap_start_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int degraded) argument
1434 bitmap_start_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int degraded) argument
1458 bitmap_end_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int aborted) argument
1491 bitmap_close_sync(struct bitmap *bitmap) argument
1508 bitmap_cond_end_sync(struct bitmap *bitmap, sector_t sector) argument
1538 bitmap_set_memory_bits(struct bitmap *bitmap, sector_t offset, int needed) argument
1565 bitmap_dirty_bits(struct bitmap *bitmap, unsigned long s, unsigned long e) argument
1589 struct bitmap *bitmap = mddev->bitmap; local
1611 bitmap_free(struct bitmap *bitmap) argument
1637 struct bitmap *bitmap = mddev->bitmap; local
1660 struct bitmap *bitmap; local
1764 struct bitmap *bitmap = mddev->bitmap; local
1806 bitmap_status(struct seq_file *seq, struct bitmap *bitmap) argument
[all...]
H A Dbitmap.h2 * bitmap.h: Copyright (C) Peter T. Breuer (ptb@ot.uc3m.es) 2003
10 /* version 4 insists the bitmap is in little-endian order
17 * in-memory bitmap:
107 * bitmap structures:
112 /* use these for bitmap->flags and bitmap->sb->state bit-fields */
114 BITMAP_STALE = 0x002, /* the bitmap file is out of date or had -EIO */
119 /* the superblock at the front of the bitmap file -- little endian */
122 __le32 version; /* 4 the bitmap major for now, could change... */
124 __le64 events; /* 24 event counter for the bitmap (
169 struct bitmap { struct
[all...]
H A Draid1.c18 * - bitmap marked during normal i/o
19 * - bitmap used to skip nondirty blocks during sync
21 * Additions to bitmap code, (C) 2003-2004 Paul Clements, SteelEye Technology:
22 * - persistent bitmap code
42 #include "bitmap.h"
354 /* clear the bitmap if all writes complete successfully */
355 bitmap_endwrite(r1_bio->mddev->bitmap, r1_bio->sector,
693 * bitmap updates get flushed here.
702 /* flush any pending bitmap writes to
704 bitmap_unplug(conf->mddev->bitmap);
880 struct bitmap *bitmap; local
2724 struct bitmap *bitmap = mddev->bitmap; local
[all...]
H A DMakefile14 md-mod-y += md.o bitmap.o
/drivers/net/ethernet/mellanox/mlx4/
H A Dalloc.c38 #include <linux/bitmap.h>
44 u32 mlx4_bitmap_alloc(struct mlx4_bitmap *bitmap) argument
48 spin_lock(&bitmap->lock);
50 obj = find_next_zero_bit(bitmap->table, bitmap->max, bitmap->last);
51 if (obj >= bitmap->max) {
52 bitmap->top = (bitmap->top + bitmap
74 mlx4_bitmap_free(struct mlx4_bitmap *bitmap, u32 obj) argument
79 mlx4_bitmap_alloc_range(struct mlx4_bitmap *bitmap, int cnt, int align) argument
116 mlx4_bitmap_avail(struct mlx4_bitmap *bitmap) argument
121 mlx4_bitmap_free_range(struct mlx4_bitmap *bitmap, u32 obj, int cnt) argument
134 mlx4_bitmap_init(struct mlx4_bitmap *bitmap, u32 num, u32 mask, u32 reserved_bot, u32 reserved_top) argument
158 mlx4_bitmap_cleanup(struct mlx4_bitmap *bitmap) argument
[all...]
H A Dpd.c115 uar->index = mlx4_bitmap_alloc(&mlx4_priv(dev)->uar_table.bitmap);
132 mlx4_bitmap_free(&mlx4_priv(dev)->uar_table.bitmap, uar->index);
150 if (mlx4_bitmap_avail(&priv->uar_table.bitmap) < MLX4_NUM_RESERVED_UARS) {
241 return mlx4_bitmap_init(&mlx4_priv(dev)->uar_table.bitmap,
248 mlx4_bitmap_cleanup(&mlx4_priv(dev)->uar_table.bitmap);
H A Dcq.c177 *cqn = mlx4_bitmap_alloc(&cq_table->bitmap);
194 mlx4_bitmap_free(&cq_table->bitmap, *cqn);
224 mlx4_bitmap_free(&cq_table->bitmap, cqn);
347 err = mlx4_bitmap_init(&cq_table->bitmap, dev->caps.num_cqs,
360 mlx4_bitmap_cleanup(&mlx4_priv(dev)->cq_table.bitmap);
H A Dsrq.c102 *srqn = mlx4_bitmap_alloc(&srq_table->bitmap);
119 mlx4_bitmap_free(&srq_table->bitmap, *srqn);
147 mlx4_bitmap_free(&srq_table->bitmap, srqn);
287 err = mlx4_bitmap_init(&srq_table->bitmap, dev->caps.num_srqs,
299 mlx4_bitmap_cleanup(&mlx4_priv(dev)->srq_table.bitmap);
H A Dmlx4.h550 struct mlx4_bitmap bitmap; member in struct:mlx4_uar_table
563 struct mlx4_bitmap bitmap; member in struct:mlx4_cq_table
571 struct mlx4_bitmap bitmap; member in struct:mlx4_eq_table
584 struct mlx4_bitmap bitmap; member in struct:mlx4_srq_table
592 struct mlx4_bitmap bitmap; member in struct:mlx4_qp_table
605 struct mlx4_bitmap bitmap; member in struct:mlx4_mcg_table
765 u32 mlx4_bitmap_alloc(struct mlx4_bitmap *bitmap);
766 void mlx4_bitmap_free(struct mlx4_bitmap *bitmap, u32 obj);
767 u32 mlx4_bitmap_alloc_range(struct mlx4_bitmap *bitmap, int cnt, int align);
768 void mlx4_bitmap_free_range(struct mlx4_bitmap *bitmap, u3
[all...]
H A Dqp.c186 *base = mlx4_bitmap_alloc_range(&qp_table->bitmap, cnt, align);
223 mlx4_bitmap_free_range(&qp_table->bitmap, base_qpn, cnt);
440 err = mlx4_bitmap_init(&qp_table->bitmap, dev->caps.num_qps,
455 mlx4_bitmap_cleanup(&mlx4_priv(dev)->qp_table.bitmap);
/drivers/s390/cio/
H A Didset.c16 unsigned long bitmap[0]; member in struct:idset
32 memset(set->bitmap, 0, bitmap_size(num_ssid, num_id));
44 memset(set->bitmap, 0, bitmap_size(set->num_ssid, set->num_id));
49 memset(set->bitmap, 0xff, bitmap_size(set->num_ssid, set->num_id));
54 set_bit(ssid * set->num_id + id, set->bitmap);
59 clear_bit(ssid * set->num_id + id, set->bitmap);
64 return test_bit(ssid * set->num_id + id, set->bitmap);
71 bitnum = find_first_bit(set->bitmap, set->num_ssid * set->num_id);
118 bitnum = find_first_bit(set->bitmap, set->num_ssid * set->num_id);
131 to->bitmap[
[all...]
H A Dchp.h34 static inline int chp_test_bit(u8 *bitmap, int num) argument
39 return (bitmap[byte] & mask) ? 1 : 0;
/drivers/base/
H A Ddma-coherent.c15 unsigned long *bitmap; member in struct:dma_coherent_mem
41 dev->dma_mem->bitmap = kzalloc(bitmap_size, GFP_KERNEL);
42 if (!dev->dma_mem->bitmap)
72 kfree(mem->bitmap);
89 err = bitmap_allocate_region(mem->bitmap, pos, get_order(size));
129 pageno = bitmap_find_free_region(mem->bitmap, mem->size, order);
173 bitmap_release_region(mem->bitmap, page, order);
/drivers/sh/intc/
H A Ddynamic.c15 #include <linux/bitmap.h>
21 * The IRQ bitmap provides a global map of bound IRQ vectors for a
/drivers/block/drbd/
H A Ddrbd_bitmap.c51 * 1 << (38 - 3) bitmap bytes needed
53 * (that's 32 GiB of bitmap for 1 PiB storage)
62 * 22 --> we need that much 4KiB pages of bitmap.
71 * bitmap storage and IO:
73 * core memory. Currently we still hold the full bitmap in core as long
77 * We plan to reduce the amount of in-core bitmap pages by paging them in
118 struct drbd_bitmap *b = mdev->bitmap;
121 dev_err(DEV, "FIXME %s in %s, bitmap locked for '%s' by %s\n",
133 struct drbd_bitmap *b = mdev->bitmap;
137 dev_err(DEV, "FIXME no bitmap i
[all...]
/drivers/sh/
H A Dpm_runtime.c20 #include <linux/bitmap.h>
/drivers/uwb/
H A Die-rcv.c23 #include <linux/bitmap.h>
/drivers/cpufreq/
H A Dspeedstep-lib.c38 u8 bitmap; /* power on configuration bits member in struct:__anon419
61 u8 bitmap; /* power on configuration bits [18: 19] member in struct:__anon420
81 while (msr_tmp != msr_decode_fsb[i].bitmap) {
82 if (msr_decode_fsb[i].bitmap == 0xff)
94 while (msr_lo != msr_decode_mult[j].bitmap) {
95 if (msr_decode_mult[j].bitmap == 0xff)
/drivers/net/wireless/rtlwifi/
H A Dcam.c290 u32 bitmap = (rtlpriv->sec.hwsec_cam_bitmap) >> 4; local
306 if ((bitmap & BIT(0)) == 0) {
315 bitmap = bitmap >> 1;
324 u32 bitmap; local
340 bitmap = (rtlpriv->sec.hwsec_cam_bitmap) >> i;
341 if (((bitmap & BIT(0)) == BIT(0)) &&
/drivers/net/wireless/brcm80211/brcmsmac/
H A Dampdu.c902 u8 bitmap[8], queue, tid; local
929 memset(bitmap, 0, sizeof(bitmap));
939 bitmap[0] = (txs->status & TX_STATUS_BA_BMAP03_MASK) >>
945 bitmap[0] |=
948 bitmap[1] = (s1 >> 8) & 0xff;
949 bitmap[2] = (s1 >> 16) & 0xff;
950 bitmap[3] = (s1 >> 24) & 0xff;
952 bitmap[4] = s2 & 0xff;
953 bitmap[
[all...]
/drivers/net/wireless/brcm80211/include/
H A Dbrcmu_wifi.h166 static inline bool ac_bitmap_tst(u8 bitmap, int prec) argument
168 return (bitmap & (1 << (prec))) != 0;
/drivers/infiniband/hw/ehca/
H A Dipz_pt_fn.c152 bit = find_first_zero_bit(page->bitmap, IPZ_SPAGE_PER_KPAGE >> order);
153 __set_bit(bit, page->bitmap);
184 __clear_bit(bit, page->bitmap);
/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_dcb.c237 unsigned long bitmap; local
240 bitmap = cfg->tc_config[i].path[direction].up_to_tc_bitmap;
241 for_each_set_bit(up, &bitmap, MAX_USER_PRIORITY)
/drivers/infiniband/hw/amso1100/
H A Dc2_alloc.c35 #include <linux/bitmap.h>
/drivers/staging/iio/
H A Diio_simple_dummy_buffer.c19 #include <linux/bitmap.h>

Completed in 549 milliseconds

12345