Searched defs:bitmap (Results 1 - 25 of 47) sorted by relevance

12

/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/s390/cio/
H A Dchp.h34 static inline int chp_test_bit(u8 *bitmap, int num) argument
39 return (bitmap[byte] & mask) ? 1 : 0;
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...]
/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/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...]
/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/infiniband/hw/ehca/
H A Dipz_pt_fn.h68 unsigned long bitmap[IPZ_SPAGE_PER_KPAGE / BITS_PER_LONG]; member in struct:ipz_small_queue_page
/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/net/wireless/wl1251/
H A Dcmd.c169 void *bitmap, u16 bitmap_len, u8 bitmap_control)
189 memcpy(vbm->tim.pvb_field, bitmap, bitmap_len);
168 wl1251_cmd_vbm(struct wl1251 *wl, u8 identity, void *bitmap, u16 bitmap_len, u8 bitmap_control) argument
/drivers/md/
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...]
/drivers/media/video/uvc/
H A Duvc_ctrl.c1034 s32 bitmap; local
1042 bitmap = mapping->get(mapping, UVC_GET_RES,
1044 if (!(bitmap & menu_info->value)) {
/drivers/scsi/pm8001/
H A Dpm8001_sas.c61 * pm8001_tag_clear - clear the tags bitmap
67 void *bitmap = pm8001_ha->tags; local
68 clear_bit(tag, bitmap);
78 void *bitmap = pm8001_ha->tags; local
79 set_bit(tag, bitmap);
90 void *bitmap = pm8001_ha->tags; local
92 index = find_first_zero_bit(bitmap, pm8001_ha->tags_num);
/drivers/sh/clk/
H A Dcore.c43 unsigned long *bitmap)
61 if (!div || !mult || (bitmap && !test_bit(i, bitmap)))
39 clk_rate_table_build(struct clk *clk, struct cpufreq_frequency_table *freq_table, int nr_freqs, struct clk_div_mult_table *src_table, unsigned long *bitmap) argument
/drivers/staging/asus_oled/
H A Dasus_oled.c124 uint8_t bitmap[ASUS_OLED_PACKET_BUF_SIZE]; member in struct:asus_oled_packet
176 packet->bitmap[0] = 0xaf;
178 packet->bitmap[0] = 0xae;
268 memcpy(packet->bitmap, buf + (ASUS_OLED_PACKET_BUF_SIZE*i),
289 memcpy(packet->bitmap, buf + offset, len);
/drivers/staging/media/dt3155v4l/
H A Ddt3155v4l.c817 unsigned long *bitmap; member in struct:dma_coherent_mem
842 mem->bitmap = kzalloc(bitmap_size, GFP_KERNEL);
843 if (!mem->bitmap)
871 kfree(mem->bitmap);
/drivers/block/
H A Dxen-blkfront.c46 #include <linux/bitmap.h>
158 unsigned long *bitmap, *old; local
160 bitmap = kcalloc(BITS_TO_LONGS(end), sizeof(*bitmap),
162 if (bitmap == NULL)
168 memcpy(bitmap, minors,
169 BITS_TO_LONGS(nr_minors) * sizeof(*bitmap));
170 minors = bitmap;
173 old = bitmap;
/drivers/media/video/
H A Dv4l2-compat-ioctl32.c44 compat_caddr_t bitmap; member in struct:v4l2_window32
/drivers/media/video/zoran/
H A Dzoran_driver.c1135 struct v4l2_clip __user *clips, int clipcount, void __user *bitmap)
1211 * We prefer a bitmap.
1213 if (bitmap) {
1217 if (copy_from_user(fh->overlay_mask, bitmap,
1222 /* write our own bitmap from the clips */
1793 fmt->fmt.win.bitmap);
1798 fmt->fmt.win.clipcount, fmt->fmt.win.bitmap);
1134 setup_window(struct zoran_fh *fh, int x, int y, int width, int height, struct v4l2_clip __user *clips, int clipcount, void __user *bitmap) argument
/drivers/net/ethernet/ti/
H A Ddavinci_cpdma.c84 unsigned long *bitmap; member in struct:cpdma_desc_pool
159 pool->bitmap = kzalloc(bitmap_size, GFP_KERNEL);
160 if (!pool->bitmap)
178 kfree(pool->bitmap);
192 kfree(pool->bitmap);
227 index = bitmap_find_next_zero_area(pool->bitmap, pool->num_desc, 0,
230 bitmap_set(pool->bitmap, index, num_desc);
247 bitmap_clear(pool->bitmap, index, num_desc);
/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/scsi/
H A D53c700.c499 bitmap_to_number(__u8 bitmap) argument
503 for(i=0; i<8 && !(bitmap &(1<<i)); i++)
1769 * - The tag negotiated bitmap is clear
/drivers/staging/tidspbridge/dynload/
H A Dcload.c1463 * bitmap Bit map of how to swap each 32-bit word; 1 => 2 shorts,
1470 static void swap_words(void *data, unsigned siz, unsigned bitmap) argument
1496 if ((bitmap & 1) == 0) {
1502 bitmap >>= 1;
/drivers/video/
H A Dpm2fb.c1322 u8 *bitmap = (u8 *)cursor->image.data; local
1334 u8 data = *bitmap ^ *mask;
1337 data = *mask & *bitmap;
1338 /* Upper 4 bits of bitmap data */
1342 /* Lower 4 bits of bitmap */
1346 bitmap++;
1429 u8 *bitmap = (u8 *)cursor->image.data; local
1442 u8 data = *bitmap ^ *mask;
1445 data = *mask & *bitmap;
1446 /* bitmap dat
[all...]
H A Dpm3fb.c686 u8 *bitmap = (u8 *)cursor->image.data; local
696 u8 data = *bitmap ^ *mask;
699 data = *mask & *bitmap;
700 /* Upper 4 bits of bitmap data */
704 /* Lower 4 bits of bitmap */
708 bitmap++;
/drivers/input/
H A Dinput.c1011 unsigned long *bitmap, int max)
1021 bitmap[i], skip_empty)) {
1280 static int input_print_bitmap(char *buf, int buf_size, unsigned long *bitmap,
1335 static int input_print_bitmap(char *buf, int buf_size, unsigned long *bitmap, argument
1344 bitmap[i], skip_empty);
1429 const char *name, unsigned long *bitmap, int max)
1438 bitmap, max, false);
1696 * bitmap the function also adjusts dev->evbit.
1010 input_seq_print_bitmap(struct seq_file *seq, const char *name, unsigned long *bitmap, int max) argument
1428 input_add_uevent_bm_var(struct kobj_uevent_env *env, const char *name, unsigned long *bitmap, int max) argument

Completed in 781 milliseconds

12