/linux-4.4.14/fs/xfs/libxfs/ |
H A D | xfs_bit.c | 46 * start_bit. Size is the size of the bitmap in words. 49 xfs_contig_bits(uint *map, uint size, uint start_bit) xfs_contig_bits() argument 51 uint * p = ((unsigned int *) map) + (start_bit >> BIT_TO_WORD_SHIFT); xfs_contig_bits() 57 ASSERT(start_bit < size); xfs_contig_bits() 58 size -= start_bit & ~(NBWORD - 1); xfs_contig_bits() 59 start_bit &= (NBWORD - 1); xfs_contig_bits() 60 if (start_bit) { xfs_contig_bits() 63 tmp |= (~0U >> (NBWORD-start_bit)); xfs_contig_bits() 75 return result - start_bit; xfs_contig_bits() 77 return result + ffz(tmp) - start_bit; xfs_contig_bits() 88 int xfs_next_bit(uint *map, uint size, uint start_bit) xfs_next_bit() argument 90 uint * p = ((unsigned int *) map) + (start_bit >> BIT_TO_WORD_SHIFT); xfs_next_bit() 91 uint result = start_bit & ~(NBWORD - 1); xfs_next_bit() 96 if (start_bit >= size) xfs_next_bit() 99 start_bit &= (NBWORD - 1); xfs_next_bit() 100 if (start_bit) { xfs_next_bit() 103 tmp &= (~0U << start_bit); xfs_next_bit()
|
H A D | xfs_bit.h | 81 /* Count continuous one bits in map starting with start_bit */ 82 extern int xfs_contig_bits(uint *map, uint size, uint start_bit); 85 extern int xfs_next_bit(uint *map, uint size, uint start_bit);
|
/linux-4.4.14/fs/ntfs/ |
H A D | bitmap.h | 32 extern int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit, 38 * @start_bit: first bit to set 42 * Set @count bits starting at bit @start_bit in the bitmap described by the 48 const s64 start_bit, const s64 count, const u8 value) ntfs_bitmap_set_bits_in_run() 50 return __ntfs_bitmap_set_bits_in_run(vi, start_bit, count, value, ntfs_bitmap_set_bits_in_run() 57 * @start_bit: first bit to set 60 * Set @count bits starting at bit @start_bit in the bitmap described by the 65 static inline int ntfs_bitmap_set_run(struct inode *vi, const s64 start_bit, ntfs_bitmap_set_run() argument 68 return ntfs_bitmap_set_bits_in_run(vi, start_bit, count, 1); ntfs_bitmap_set_run() 74 * @start_bit: first bit to clear 77 * Clear @count bits starting at bit @start_bit in the bitmap described by the 82 static inline int ntfs_bitmap_clear_run(struct inode *vi, const s64 start_bit, ntfs_bitmap_clear_run() argument 85 return ntfs_bitmap_set_bits_in_run(vi, start_bit, count, 0); ntfs_bitmap_clear_run() 47 ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit, const s64 count, const u8 value) ntfs_bitmap_set_bits_in_run() argument
|
H A D | bitmap.c | 34 * @start_bit: first bit to set 39 * Set @count bits starting at bit @start_bit in the bitmap described by the 47 int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit, __ntfs_bitmap_set_bits_in_run() argument 59 ntfs_debug("Entering for i_ino 0x%lx, start_bit 0x%llx, count 0x%llx, " __ntfs_bitmap_set_bits_in_run() 60 "value %u.%s", vi->i_ino, (unsigned long long)start_bit, __ntfs_bitmap_set_bits_in_run() 63 BUG_ON(start_bit < 0); __ntfs_bitmap_set_bits_in_run() 68 * bits, i.e. @start_bit and @start_bit + @cnt - 1, respectively. __ntfs_bitmap_set_bits_in_run() 70 index = start_bit >> (3 + PAGE_CACHE_SHIFT); __ntfs_bitmap_set_bits_in_run() 71 end_index = (start_bit + cnt - 1) >> (3 + PAGE_CACHE_SHIFT); __ntfs_bitmap_set_bits_in_run() 73 /* Get the page containing the first bit (@start_bit). */ __ntfs_bitmap_set_bits_in_run() 84 /* Set @pos to the position of the byte containing @start_bit. */ __ntfs_bitmap_set_bits_in_run() 85 pos = (start_bit >> 3) & ~PAGE_CACHE_MASK; __ntfs_bitmap_set_bits_in_run() 87 /* Calculate the position of @start_bit in the first byte. */ __ntfs_bitmap_set_bits_in_run() 88 bit = start_bit & 7; __ntfs_bitmap_set_bits_in_run() 174 pos = __ntfs_bitmap_set_bits_in_run(vi, start_bit, count - cnt, __ntfs_bitmap_set_bits_in_run()
|
/linux-4.4.14/arch/cris/include/arch-v10/arch/ |
H A D | io_interface_mux.h | 56 const unsigned start_bit, 62 const unsigned start_bit,
|
/linux-4.4.14/lib/ |
H A D | genalloc.c | 276 int nbits, start_bit = 0, end_bit, remain; gen_pool_alloc() local 293 start_bit = pool->algo(chunk->bits, end_bit, start_bit, nbits, gen_pool_alloc() 295 if (start_bit >= end_bit) gen_pool_alloc() 297 remain = bitmap_set_ll(chunk->bits, start_bit, nbits); gen_pool_alloc() 299 remain = bitmap_clear_ll(chunk->bits, start_bit, gen_pool_alloc() 305 addr = chunk->start_addr + ((unsigned long)start_bit << order); gen_pool_alloc() 358 int start_bit, nbits, remain; gen_pool_free() local 369 start_bit = (addr - chunk->start_addr) >> order; gen_pool_free() 370 remain = bitmap_clear_ll(chunk->bits, start_bit, nbits); gen_pool_free() 547 unsigned long start_bit = size; gen_pool_best_fit() local 557 start_bit = index; gen_pool_best_fit() 559 return start_bit; gen_pool_best_fit() 565 return start_bit; gen_pool_best_fit()
|
/linux-4.4.14/arch/cris/arch-v10/kernel/ |
H A D | io_interface_mux.c | 941 const unsigned start_bit, cris_io_interface_allocate_pins() 953 ioif, port, start_bit, stop_bit)); cris_io_interface_allocate_pins() 955 if (!((start_bit <= stop_bit) && cris_io_interface_allocate_pins() 962 tmp_mask = create_mask(start_bit); cris_io_interface_allocate_pins() 966 port, start_bit, stop_bit, mask)); cris_io_interface_allocate_pins() 1002 for (i = start_bit; i <= stop_bit; i++) { cris_io_interface_allocate_pins() 1015 const unsigned start_bit, cris_io_interface_free_pins() 1026 if (!((start_bit <= stop_bit) && cris_io_interface_free_pins() 1033 tmp_mask = create_mask(start_bit); cris_io_interface_free_pins() 1037 port, start_bit, stop_bit, mask)); cris_io_interface_free_pins() 1068 for (i = start_bit; i <= stop_bit; i++) { cris_io_interface_free_pins() 1088 for (i = start_bit; i <= stop_bit; i++) { cris_io_interface_free_pins() 939 cris_io_interface_allocate_pins(const enum cris_io_interface ioif, const char port, const unsigned start_bit, const unsigned stop_bit) cris_io_interface_allocate_pins() argument 1013 cris_io_interface_free_pins(const enum cris_io_interface ioif, const char port, const unsigned start_bit, const unsigned stop_bit) cris_io_interface_free_pins() argument
|
/linux-4.4.14/drivers/i2c/busses/ |
H A D | i2c-riic.c | 123 u8 start_bit; riic_xfer() local 139 for (i = 0, start_bit = ICCR2_ST; i < num; i++) { riic_xfer() 147 writeb(start_bit, riic->base + RIIC_ICCR2); riic_xfer() 156 start_bit = ICCR2_RS; riic_xfer()
|
H A D | i2c-pnx.c | 61 start_bit = 1 << 8, enumerator in enum:__anon5088 166 (slave_addr << 1) | start_bit | alg_data->mif.mode); i2c_pnx_start() 169 iowrite32((slave_addr << 1) | start_bit | alg_data->mif.mode, i2c_pnx_start()
|
/linux-4.4.14/drivers/iio/adc/ |
H A D | mcp320x.c | 76 int start_bit = 1; mcp320x_channel_to_tx_data() local 85 return ((start_bit << 4) | (!differential << 3) | mcp320x_channel_to_tx_data() 91 return ((start_bit << 6) | (!differential << 5) | mcp320x_channel_to_tx_data()
|
/linux-4.4.14/arch/c6x/platforms/ |
H A D | dscr.c | 459 * start_id num_ids reg enable disable start_bit nbits 466 * start_bit is the bit number of the first bit in the range 515 * start_id num_ids reg enable disable start_bit nbits 522 * start_bit is the bit number of the first bit in the range
|
/linux-4.4.14/drivers/input/mouse/ |
H A D | alps.c | 364 point->start_bit = i; alps_get_bitmap_points() 414 x_high.start_bit = x_low.start_bit + i; alps_process_bitmap() 420 y_high.start_bit = y_low.start_bit + i; alps_process_bitmap() 426 (priv->x_max * (2 * x_low.start_bit + x_low.num_bits - 1)) / alps_process_bitmap() 429 (priv->y_max * (2 * y_low.start_bit + y_low.num_bits - 1)) / alps_process_bitmap() 434 (priv->x_max * (2 * x_high.start_bit + x_high.num_bits - 1)) / alps_process_bitmap() 437 (priv->y_max * (2 * y_low.start_bit + y_low.num_bits - 1)) / alps_process_bitmap() 442 (priv->x_max * (2 * x_high.start_bit + x_high.num_bits - 1)) / alps_process_bitmap() 445 (priv->y_max * (2 * y_high.start_bit + y_high.num_bits - 1)) / alps_process_bitmap() 450 (priv->x_max * (2 * x_low.start_bit + x_low.num_bits - 1)) / alps_process_bitmap() 453 (priv->y_max * (2 * y_high.start_bit + y_high.num_bits - 1)) / alps_process_bitmap()
|
H A D | alps.h | 176 int start_bit; member in struct:alps_bitmap_point
|
/linux-4.4.14/fs/ocfs2/ |
H A D | ocfs2_trace.h | 835 unsigned int start_bit, unsigned int count), 836 TP_ARGS(inode, group, start_bit, count), 840 __field(unsigned int, start_bit) 846 __entry->start_bit = start_bit; 850 __entry->start_bit, __entry->count) 855 unsigned int start_bit, unsigned int count), 856 TP_ARGS(bg_blkno, start_blk, start_bit, count), 860 __field(unsigned int, start_bit) 866 __entry->start_bit = start_bit; 870 __entry->start_bit, __entry->count)
|
H A D | suballoc.h | 138 unsigned int start_bit,
|
H A D | suballoc.c | 2437 unsigned int start_bit, _ocfs2_free_suballoc_bits() 2456 BUG_ON((count + start_bit) > ocfs2_bits_per_group(cl)); _ocfs2_free_suballoc_bits() 2461 start_bit, count); _ocfs2_free_suballoc_bits() 2471 BUG_ON((count + start_bit) > le16_to_cpu(group->bg_bits)); _ocfs2_free_suballoc_bits() 2475 start_bit, count, undo_fn); _ocfs2_free_suballoc_bits() 2486 start_bit, count); _ocfs2_free_suballoc_bits() 2507 unsigned int start_bit, ocfs2_free_suballoc_bits() 2512 start_bit, bg_blkno, count, NULL); ocfs2_free_suballoc_bits() 2434 _ocfs2_free_suballoc_bits(handle_t *handle, struct inode *alloc_inode, struct buffer_head *alloc_bh, unsigned int start_bit, u64 bg_blkno, unsigned int count, void (*undo_fn)(unsigned int bit, unsigned long *bitmap)) _ocfs2_free_suballoc_bits() argument 2504 ocfs2_free_suballoc_bits(handle_t *handle, struct inode *alloc_inode, struct buffer_head *alloc_bh, unsigned int start_bit, u64 bg_blkno, unsigned int count) ocfs2_free_suballoc_bits() argument
|
/linux-4.4.14/fs/ext4/ |
H A D | ialloc.c | 52 void ext4_mark_bitmap_end(int start_bit, int end_bit, char *bitmap) ext4_mark_bitmap_end() argument 56 if (start_bit >= end_bit) ext4_mark_bitmap_end() 59 ext4_debug("mark end bits +%d through +%d used\n", start_bit, end_bit); ext4_mark_bitmap_end() 60 for (i = start_bit; i < ((start_bit + 7) & ~7UL); i++) ext4_mark_bitmap_end()
|
H A D | ext4.h | 2441 extern void ext4_mark_bitmap_end(int start_bit, int end_bit, char *bitmap);
|
/linux-4.4.14/arch/cris/include/arch-v32/mach-a3/mach/hwregs/ |
H A D | gio_defs.h | 443 unsigned int start_bit : 1; member in struct:__anon923 516 unsigned int start_bit : 1; member in struct:__anon928
|
/linux-4.4.14/drivers/mmc/host/ |
H A D | mtk-sd.c | 1263 static int get_delay_len(u32 delay, u32 start_bit) get_delay_len() argument 1267 for (i = 0; i < (PAD_DELAY_MAX - start_bit); i++) { get_delay_len() 1268 if (test_delay_bit(delay, start_bit + i) == 0) get_delay_len() 1271 return PAD_DELAY_MAX - start_bit; get_delay_len()
|
H A D | rtsx_pci_sdmmc.c | 656 static int sd_get_phase_len(u32 phase_map, unsigned int start_bit) sd_get_phase_len() argument 661 if (test_phase_bit(phase_map, start_bit + i) == 0) sd_get_phase_len()
|
/linux-4.4.14/drivers/video/fbdev/via/ |
H A D | hw.h | 359 u8 start_bit; member in struct:io_register
|
H A D | hw.c | 994 start_index = reg[i].start_bit; viafb_load_reg()
|
/linux-4.4.14/drivers/edac/ |
H A D | amd64_edac.c | 922 u8 start_bit = 1; get_error_address() local 933 start_bit = 3; get_error_address() 937 addr = m->addr & GENMASK_ULL(end_bit, start_bit); get_error_address()
|
/linux-4.4.14/arch/x86/kvm/ |
H A D | svm.c | 2058 u8 start_bit; nested_svm_intercept_ioio() local 2068 start_bit = port % 8; nested_svm_intercept_ioio() 2069 iopm_len = (start_bit + size > 8) ? 2 : 1; nested_svm_intercept_ioio() 2070 mask = (0xf >> (4 - size)) << start_bit; nested_svm_intercept_ioio()
|