[go: nahoru, domu]

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

123

/drivers/s390/cio/
H A Dchp.h32 static inline int chp_test_bit(u8 *bitmap, int num) argument
37 return (bitmap[byte] & mask) ? 1 : 0;
H A Didset.c7 #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...]
/drivers/cpufreq/
H A Dspeedstep-lib.c38 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/wireless/rtlwifi/
H A Dcam.c283 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/base/
H A Ddma-coherent.c16 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/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/misc/vmw_vmci/
H A Dvmci_doorbell.c64 * The max_notify_idx is one larger than the currently known bitmap index in
65 * use, and is used to determine how much of the bitmap needs to be scanned.
71 * within the bitmap (if notify_idx_count + 1 < max_notify_idx).
124 * Find doorbell entry by bitmap index.
156 * bitmap with "not too much" sharing between resources. If we
157 * use less that the full bitmap, we either add to the end if
159 * or we search for unused ones. If we use the full bitmap, we
234 * index in the bitmap in the device backend. A notification state
252 * Unlinks the given doorbell handle from an index in the bitmap in
331 * Register the notification bitmap wit
383 vmci_dbell_scan_notification_entries(u8 *bitmap) argument
[all...]
/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, 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...]
/drivers/net/wireless/ti/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/staging/comedi/drivers/
H A Dni_usb6501.c176 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/hid/
H A Dhid-picolcd_fb.c151 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...]
H A Dhid-picolcd.h132 u8 *bitmap; /* framebuffer */ member in struct:picolcd_fb_data
/drivers/md/bcache/
H A Djournal.c149 __set_bit(b, bitmap); \
160 unsigned long bitmap[SB_JOURNAL_BUCKETS / BITS_PER_LONG]; local
164 bitmap_zero(bitmap, SB_JOURNAL_BUCKETS);
174 if (test_bit(l, bitmap))
187 for (l = find_first_zero_bit(bitmap, ca->sb.njournal_buckets);
189 l = find_next_zero_bit(bitmap, ca->sb.njournal_buckets, l + 1))
201 r = find_next_bit(bitmap, ca->sb.njournal_buckets, l + 1);
233 if (test_bit(l, bitmap))
/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 = 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...]
/drivers/staging/rtl8188eu/hal/
H A Dhal_intf.c251 void rtw_hal_add_ra_tid(struct adapter *adapt, u32 bitmap, u8 arg, argument
255 adapt->HalFunc.Add_RateATid(adapt, bitmap, arg,
H A Drtl8188e_cmd.c169 /* 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/scsi/pm8001/
H A Dpm8001_sas.c67 void *bitmap = pm8001_ha->tags; local
68 clear_bit(tag, bitmap);
79 void *bitmap = pm8001_ha->tags; local
83 tag = find_first_zero_bit(bitmap, pm8001_ha->tags_num);
88 set_bit(tag, bitmap);
/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/media/dt3155v4l/
H A Ddt3155v4l.c838 unsigned long *bitmap; member in struct:dma_coherent_mem
863 mem->bitmap = kzalloc(bitmap_size, GFP_KERNEL);
864 if (!mem->bitmap)
892 kfree(mem->bitmap);
/drivers/staging/rtl8723au/hal/
H A Drtl8723a_cmd.c142 /* bitmap[0:27] = tx_rate_bitmap */
143 /* bitmap[28:31]= Rate Adaptive id */
146 void rtl8723a_add_rateatid(struct rtw_adapter *pAdapter, u32 bitmap, u8 arg, u8 rssi_level) argument
150 u8 raid = (bitmap>>28) & 0x0f;
152 bitmap &= 0x0fffffff;
154 bitmap = ODM_Get_Rate_Bitmap23a(pHalData, macid, bitmap,
157 bitmap |= ((raid<<28)&0xf0000000);
160 rtl8723a_set_raid_cmd(pAdapter, bitmap, arg);
164 init_rate = get_highest_rate_idx23a(bitmap
[all...]
/drivers/vfio/
H A Dvfio_iommu_type1.c385 unsigned long bitmap = PAGE_MASK; local
389 bitmap &= domain->domain->ops->pgsize_bitmap;
392 return bitmap;
/drivers/iommu/
H A Dintel_irq_remapping.c111 index = bitmap_find_free_region(table->bitmap,
254 bitmap_release_region(iommu->ir_table->bitmap, index,
481 unsigned long *bitmap; local
499 bitmap = kcalloc(BITS_TO_LONGS(INTR_REMAP_TABLE_ENTRIES),
501 if (bitmap == NULL) {
502 pr_err("IR%d: failed to allocate bitmap\n", iommu->seq_id);
509 ir_table->bitmap = bitmap;
/drivers/media/pci/zoran/
H A Dzoran_driver.c1141 void __user *bitmap)
1225 * We prefer a bitmap.
1227 if (bitmap) {
1231 if (copy_from_user(fh->overlay_mask, bitmap,
1236 /* write our own bitmap from the clips */
1784 fmt->fmt.win.bitmap);
1789 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, unsigned int clipcount, void __user *bitmap) argument
/drivers/media/usb/uvc/
H A Duvc_ctrl.c1168 s32 bitmap; local
1176 bitmap = mapping->get(mapping, UVC_GET_RES,
1178 if (!(bitmap & menu_info->value)) {
/drivers/net/wireless/ath/wcn36xx/
H A Dsmd.c1689 void set_feat_caps(u32 *bitmap, enum place_holder_in_cap_bitmap cap) argument
1700 bitmap[arr_idx] |= (1 << bit_idx);
1703 int get_feat_caps(u32 *bitmap, enum place_holder_in_cap_bitmap cap) argument
1715 ret = (bitmap[arr_idx] & (1 << bit_idx)) ? 1 : 0;
1719 void clear_feat_caps(u32 *bitmap, enum place_holder_in_cap_bitmap cap) argument
1730 bitmap[arr_idx] &= ~(1 << bit_idx);

Completed in 594 milliseconds

123