/drivers/md/ |
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 = 1, /* 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 ( 176 struct bitmap { struct [all...] |
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 102 bitmap_checkfree(struct bitmap_counts *bitmap, unsigned long page) argument 189 write_sb_page(struct bitmap *bitmap, struct page *page, int wait) argument 263 write_page(struct bitmap *bitmap, struct page *page, int wait) argument 294 struct bitmap *bitmap = bh->b_private; local 334 read_page(struct file *file, unsigned long index, struct bitmap *bitmap, unsigned long count, struct page *page) argument 400 bitmap_update_sb(struct bitmap *bitmap) argument 430 bitmap_print_sb(struct bitmap *bitmap) argument 469 bitmap_new_disk_sb(struct bitmap *bitmap) argument 528 bitmap_read_sb(struct bitmap *bitmap) argument 765 bitmap_file_kick(struct bitmap *bitmap) argument 797 set_page_attr(struct bitmap *bitmap, int pnum, enum bitmap_page_attr attr) argument 803 clear_page_attr(struct bitmap *bitmap, int pnum, enum bitmap_page_attr attr) argument 809 test_page_attr(struct bitmap *bitmap, int pnum, enum bitmap_page_attr attr) argument 815 test_and_clear_page_attr(struct bitmap *bitmap, int pnum, enum bitmap_page_attr attr) argument 828 bitmap_file_set_bit(struct bitmap *bitmap, sector_t block) argument 852 bitmap_file_clear_bit(struct bitmap *bitmap, sector_t block) argument 878 bitmap_unplug(struct bitmap *bitmap) argument 923 bitmap_init_from_disk(struct bitmap *bitmap, sector_t start) argument 1046 bitmap_write_all(struct bitmap *bitmap) argument 1065 bitmap_count_page(struct bitmap_counts *bitmap, sector_t offset, int inc) argument 1074 bitmap_set_pending(struct bitmap_counts *bitmap, sector_t offset) argument 1095 struct bitmap *bitmap; local 1257 bitmap_startwrite(struct bitmap *bitmap, sector_t offset, unsigned long sectors, int behind) argument 1321 bitmap_endwrite(struct bitmap *bitmap, sector_t offset, unsigned long sectors, int success, int behind) argument 1374 __bitmap_start_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int degraded) argument 1402 bitmap_start_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int degraded) argument 1426 bitmap_end_sync(struct bitmap *bitmap, sector_t offset, sector_t *blocks, int aborted) argument 1457 bitmap_close_sync(struct bitmap *bitmap) argument 1474 bitmap_cond_end_sync(struct bitmap *bitmap, sector_t sector) argument 1504 bitmap_set_memory_bits(struct bitmap *bitmap, sector_t offset, int needed) argument 1529 bitmap_dirty_bits(struct bitmap *bitmap, unsigned long s, unsigned long e) argument 1551 struct bitmap *bitmap = mddev->bitmap; local 1573 bitmap_free(struct bitmap *bitmap) argument 1603 struct bitmap *bitmap = mddev->bitmap; local 1626 struct bitmap *bitmap; local 1707 struct bitmap *bitmap = mddev->bitmap; local 1753 bitmap_status(struct seq_file *seq, struct bitmap *bitmap) argument 1780 bitmap_resize(struct bitmap *bitmap, sector_t blocks, int chunksize, int init) argument [all...] |
/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, int use_rr) 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, int use_rr) argument 137 mlx4_bitmap_init(struct mlx4_bitmap *bitmap, u32 num, u32 mask, u32 reserved_bot, u32 reserved_top) argument 161 mlx4_bitmap_cleanup(struct mlx4_bitmap *bitmap) argument [all...] |
H A D | pd.c | 149 uar->index = mlx4_bitmap_alloc(&mlx4_priv(dev)->uar_table.bitmap); 166 mlx4_bitmap_free(&mlx4_priv(dev)->uar_table.bitmap, uar->index, MLX4_USE_RR); 184 if (mlx4_bitmap_avail(&priv->uar_table.bitmap) < MLX4_NUM_RESERVED_UARS) { 278 return mlx4_bitmap_init(&mlx4_priv(dev)->uar_table.bitmap, 285 mlx4_bitmap_cleanup(&mlx4_priv(dev)->uar_table.bitmap);
|
H A D | cq.c | 172 *cqn = mlx4_bitmap_alloc(&cq_table->bitmap); 189 mlx4_bitmap_free(&cq_table->bitmap, *cqn, MLX4_NO_RR); 219 mlx4_bitmap_free(&cq_table->bitmap, cqn, MLX4_NO_RR); 345 err = mlx4_bitmap_init(&cq_table->bitmap, dev->caps.num_cqs, 358 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, MLX4_NO_RR); 147 mlx4_bitmap_free(&srq_table->bitmap, srqn, MLX4_NO_RR); 285 err = mlx4_bitmap_init(&srq_table->bitmap, dev->caps.num_srqs, 297 mlx4_bitmap_cleanup(&mlx4_priv(dev)->srq_table.bitmap);
|
/drivers/s390/cio/ |
H A D | idset.c | 7 #include <linux/bitmap.h> 15 unsigned long bitmap[0]; member in struct:idset 31 memset(set->bitmap, 0, bitmap_size(num_ssid, num_id)); 43 memset(set->bitmap, 0, bitmap_size(set->num_ssid, set->num_id)); 48 memset(set->bitmap, 0xff, bitmap_size(set->num_ssid, set->num_id)); 53 set_bit(ssid * set->num_id + id, set->bitmap); 58 clear_bit(ssid * set->num_id + id, set->bitmap); 63 return test_bit(ssid * set->num_id + id, set->bitmap); 70 bitnum = find_first_bit(set->bitmap, set->num_ssid * set->num_id); 98 bitmap_clear(set->bitmap, po [all...] |
H A D | chp.h | 32 static inline int chp_test_bit(u8 *bitmap, int num) argument 37 return (bitmap[byte] & mask) ? 1 : 0;
|
/drivers/misc/vmw_vmci/ |
H A D | vmci_doorbell.h | 49 void vmci_dbell_scan_notification_entries(u8 *bitmap);
|
/drivers/video/adf/ |
H A D | adf_fops.h | 18 #include <linux/bitmap.h>
|
/drivers/gpu/drm/qxl/ |
H A D | qxl_image.c | 203 image->u.bitmap.format = SPICE_BITMAP_FMT_1BIT_BE; 206 image->u.bitmap.format = SPICE_BITMAP_FMT_24BIT; 209 image->u.bitmap.format = SPICE_BITMAP_FMT_32BIT; 215 image->u.bitmap.flags = QXL_BITMAP_TOP_DOWN; 216 image->u.bitmap.x = width; 217 image->u.bitmap.y = height; 218 image->u.bitmap.stride = chunk_stride; 219 image->u.bitmap.palette = 0; 220 image->u.bitmap.data = qxl_bo_physical_address(qdev, chunk_bo, 0);
|
/drivers/uwb/ |
H A D | ie-rcv.c | 23 #include <linux/bitmap.h>
|
/drivers/block/drbd/ |
H A D | drbd_bitmap.c | 53 * 1 << (38 - 3) bitmap bytes needed 55 * (that's 32 GiB of bitmap for 1 PiB storage) 64 * 22 --> we need that much 4KiB pages of bitmap. 73 * bitmap storage and IO: 75 * core memory. Currently we still hold the full bitmap in core as long 79 * We plan to reduce the amount of in-core bitmap pages by paging them in 120 struct drbd_bitmap *b = device->bitmap; 123 drbd_err(device, "FIXME %s[%d] in %s, bitmap locked for '%s' by %s[%d]\n", 131 struct drbd_bitmap *b = device->bitmap; 135 drbd_err(device, "FIXME no bitmap i [all...] |
/drivers/base/ |
H A D | dma-coherent.c | 16 unsigned long *bitmap; member in struct:dma_coherent_mem 41 dma_mem->bitmap = kzalloc(bitmap_size, GFP_KERNEL); 42 if (!dma_mem->bitmap) 71 kfree(mem->bitmap); 131 err = bitmap_allocate_region(mem->bitmap, pos, get_order(size)); 175 pageno = bitmap_find_free_region(mem->bitmap, mem->size, order); 223 bitmap_release_region(mem->bitmap, page, order);
|
/drivers/crypto/ux500/cryp/ |
H A D | cryp_irq.c | 12 #include <linux/bitmap.h>
|
/drivers/cpufreq/ |
H A D | speedstep-lib.c | 38 u8 bitmap; /* power on configuration bits member in struct:__anon486 61 u8 bitmap; /* power on configuration bits [18: 19] member in struct:__anon487 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/ethernet/mellanox/mlx5/core/ |
H A D | alloc.c | 37 #include <linux/bitmap.h> 145 bitmap_fill(pgdir->bitmap, MLX5_DB_PER_PAGE); 162 i = find_first_bit(pgdir->bitmap, MLX5_DB_PER_PAGE); 166 __clear_bit(i, pgdir->bitmap); 210 __set_bit(db->index, db->u.pgdir->bitmap); 212 if (bitmap_full(db->u.pgdir->bitmap, MLX5_DB_PER_PAGE)) {
|
H A D | uar.c | 145 uuari->bitmap = kcalloc(BITS_TO_LONGS(tot_uuars), sizeof(*uuari->bitmap), 147 if (!uuari->bitmap) { 199 kfree(uuari->bitmap); 219 kfree(uuari->bitmap);
|
/drivers/net/wireless/rtlwifi/ |
H A D | cam.c | 283 u32 bitmap = (rtlpriv->sec.hwsec_cam_bitmap) >> 4; local 300 if ((bitmap & BIT(0)) == 0) { 309 bitmap = bitmap >> 1; 318 u32 bitmap; local 335 bitmap = (rtlpriv->sec.hwsec_cam_bitmap) >> i; 336 if (((bitmap & BIT(0)) == BIT(0)) &&
|
/drivers/net/wireless/ath/wcn36xx/ |
H A D | smd.h | 115 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);
|
/drivers/hid/ |
H A D | hid-picolcd_fb.c | 151 static int picolcd_fb_update_tile(u8 *vbitmap, const u8 *bitmap, int bpp, argument 160 const u8 *bdata = bitmap + tile * 256 + chip * 8 + b * 32; 168 const u8 *bdata = bitmap + (tile * 256 + chip * 8 + b * 32) * 8; 221 memset(fbdata->bitmap, 0, PICOLCDFB_SIZE*fbdata->bpp); 260 fbdata->vbitmap, fbdata->bitmap, 396 o_fb = fbdata->bitmap; 550 fbdata->bitmap = vmalloc(PICOLCDFB_SIZE*8); 551 if (fbdata->bitmap == NULL) { 555 info->screen_base = (char __force __iomem *)fbdata->bitmap; 556 info->fix.smem_start = (unsigned long)fbdata->bitmap; [all...] |
/drivers/staging/rtl8188eu/hal/ |
H A D | rtl8188e_cmd.c | 169 /* bitmap[0:27] = tx_rate_bitmap */ 170 /* bitmap[28:31]= Rate Adaptive id */ 173 void rtl8188e_Add_RateATid(struct adapter *pAdapter, u32 bitmap, u8 arg, u8 rssi_level) argument 181 raid = (bitmap>>28) & 0x0f; 182 bitmap &= 0x0fffffff; 185 bitmap = ODM_Get_Rate_Bitmap(&haldata->odmpriv, macid, bitmap, rssi_level); 187 bitmap |= ((raid<<28)&0xf0000000); 189 init_rate = get_highest_rate_idx(bitmap&0x0fffffff)&0x3f; 196 raid = (bitmap>>2 [all...] |
/drivers/sh/ |
H A D | pm_runtime.c | 20 #include <linux/bitmap.h>
|
/drivers/staging/comedi/drivers/ |
H A D | ni_usb6501.c | 176 const u8 *port, u8 *bitmap) 184 if (command != SET_PORT_DIR && !bitmap) 201 tx[17] = bitmap[0]; 239 bitmap[0] = devpriv->usb_rx_buf[14]; 240 /* mask bitmap for comparing */ 378 u8 bitmap; local 384 bitmap = (s->state >> port * 8) & 0xFF; 386 &port, &bitmap); 395 ret = ni6501_port_command(dev, READ_PORT, &port, &bitmap); 398 data[1] |= bitmap << por 175 ni6501_port_command(struct comedi_device *dev, int command, const u8 *port, u8 *bitmap) argument [all...] |
/drivers/net/wireless/brcm80211/brcmsmac/ |
H A D | ampdu.c | 844 u8 bitmap[8], queue, tid; local 870 memset(bitmap, 0, sizeof(bitmap)); 880 bitmap[0] = (txs->status & TX_STATUS_BA_BMAP03_MASK) >> 886 bitmap[0] |= 889 bitmap[1] = (s1 >> 8) & 0xff; 890 bitmap[2] = (s1 >> 16) & 0xff; 891 bitmap[3] = (s1 >> 24) & 0xff; 893 bitmap[4] = s2 & 0xff; 894 bitmap[ [all...] |