/drivers/md/ |
H A D | bitmap.c | 2 * 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 D | bitmap.h | 2 * 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 D | raid1.c | 18 * - 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 D | Makefile | 14 md-mod-y += md.o bitmap.o
|
/drivers/net/ethernet/mellanox/mlx4/ |
H A D | alloc.c | 38 #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 D | pd.c | 115 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 D | cq.c | 177 *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 D | srq.c | 102 *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 D | mlx4.h | 550 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 D | qp.c | 186 *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 D | idset.c | 16 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 D | chp.h | 34 static inline int chp_test_bit(u8 *bitmap, int num) argument 39 return (bitmap[byte] & mask) ? 1 : 0;
|
/drivers/base/ |
H A D | dma-coherent.c | 15 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 D | dynamic.c | 15 #include <linux/bitmap.h> 21 * The IRQ bitmap provides a global map of bound IRQ vectors for a
|
/drivers/block/drbd/ |
H A D | drbd_bitmap.c | 51 * 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 D | pm_runtime.c | 20 #include <linux/bitmap.h>
|
/drivers/uwb/ |
H A D | ie-rcv.c | 23 #include <linux/bitmap.h>
|
/drivers/cpufreq/ |
H A D | speedstep-lib.c | 38 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 D | cam.c | 290 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 D | ampdu.c | 902 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 D | brcmu_wifi.h | 166 static inline bool ac_bitmap_tst(u8 bitmap, int prec) argument 168 return (bitmap & (1 << (prec))) != 0;
|
/drivers/infiniband/hw/ehca/ |
H A D | ipz_pt_fn.c | 152 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 D | ixgbe_dcb.c | 237 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 D | c2_alloc.c | 35 #include <linux/bitmap.h>
|
/drivers/staging/iio/ |
H A D | iio_simple_dummy_buffer.c | 19 #include <linux/bitmap.h>
|