Home
last modified time | relevance | path

Searched refs:BITS_TO_LONGS (Results 1 – 190 of 190) sorted by relevance

/linux-4.1.27/include/linux/
Dinput.h127 unsigned long propbit[BITS_TO_LONGS(INPUT_PROP_CNT)];
129 unsigned long evbit[BITS_TO_LONGS(EV_CNT)];
130 unsigned long keybit[BITS_TO_LONGS(KEY_CNT)];
131 unsigned long relbit[BITS_TO_LONGS(REL_CNT)];
132 unsigned long absbit[BITS_TO_LONGS(ABS_CNT)];
133 unsigned long mscbit[BITS_TO_LONGS(MSC_CNT)];
134 unsigned long ledbit[BITS_TO_LONGS(LED_CNT)];
135 unsigned long sndbit[BITS_TO_LONGS(SND_CNT)];
136 unsigned long ffbit[BITS_TO_LONGS(FF_CNT)];
137 unsigned long swbit[BITS_TO_LONGS(SW_CNT)];
[all …]
Dcpumask.h257 [0 ... BITS_TO_LONGS(NR_CPUS)-1] = 0UL \
611 return BITS_TO_LONGS(nr_cpumask_bits) * sizeof(long); in cpumask_size()
754 cpu_bit_bitmap[BITS_PER_LONG+1][BITS_TO_LONGS(NR_CPUS)];
768 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
775 [0 ... BITS_TO_LONGS(NR_CPUS)-2] = ~0UL, \
776 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
800 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
805 [0 ... BITS_TO_LONGS(NR_CPUS)-2] = ~0UL, \
806 [BITS_TO_LONGS(NR_CPUS)-1] = BITMAP_LAST_WORD_MASK(NR_CPUS) \
812 [0 ... BITS_TO_LONGS(NR_CPUS)-1] = 0UL \
Dbitmap.h186 unsigned int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long); in bitmap_zero()
193 unsigned int nlongs = BITS_TO_LONGS(nbits); in bitmap_fill()
207 unsigned int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long); in bitmap_copy()
Dnodemask.h292 [BITS_TO_LONGS(MAX_NUMNODES)-1] = NODE_MASK_LAST_WORD \
299 [0 ... BITS_TO_LONGS(MAX_NUMNODES)-2] = ~0UL, \
300 [BITS_TO_LONGS(MAX_NUMNODES)-1] = NODE_MASK_LAST_WORD \
307 [0 ... BITS_TO_LONGS(MAX_NUMNODES)-1] = 0UL \
Ddma-attrs.h24 #define __DMA_ATTRS_LONGS BITS_TO_LONGS(DMA_ATTR_MAX)
Dtypes.h10 unsigned long name[BITS_TO_LONGS(bits)]
Dbitops.h13 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long)) macro
/linux-4.1.27/drivers/base/regmap/
Dregcache-rbtree.c158 mem_size += BITS_TO_LONGS(n->blklen) * sizeof(long); in rbtree_show()
299 if (BITS_TO_LONGS(blklen) > BITS_TO_LONGS(rbnode->blklen)) { in regcache_rbtree_insert_to_block()
301 BITS_TO_LONGS(blklen) * sizeof(*present), in regcache_rbtree_insert_to_block()
308 memset(present + BITS_TO_LONGS(rbnode->blklen), 0, in regcache_rbtree_insert_to_block()
309 (BITS_TO_LONGS(blklen) - BITS_TO_LONGS(rbnode->blklen)) in regcache_rbtree_insert_to_block()
369 rbnode->cache_present = kzalloc(BITS_TO_LONGS(rbnode->blklen) * in regcache_rbtree_node_alloc()
Dregcache-lzo.c155 sync_bmp = kmalloc(BITS_TO_LONGS(bmp_size) * sizeof(long), in regcache_lzo_init()
/linux-4.1.27/drivers/net/wireless/ti/wlcore/
Dwlcore.h236 unsigned long links_map[BITS_TO_LONGS(WLCORE_MAX_LINKS)];
237 unsigned long roles_map[BITS_TO_LONGS(WL12XX_MAX_ROLES)];
238 unsigned long roc_map[BITS_TO_LONGS(WL12XX_MAX_ROLES)];
240 BITS_TO_LONGS(WL12XX_MAX_RATE_POLICIES)];
242 BITS_TO_LONGS(WLCORE_MAX_KLV_TEMPLATES)];
284 unsigned long tx_frames_map[BITS_TO_LONGS(WLCORE_MAX_TX_DESCRIPTORS)];
475 unsigned long rx_filter_enabled[BITS_TO_LONGS(WL1271_MAX_RX_FILTERS)];
Dwlcore_i.h185 unsigned long scanned_ch[BITS_TO_LONGS(WL1271_MAX_CHANNELS)];
371 unsigned long sta_hlid_map[BITS_TO_LONGS(
389 unsigned long links_map[BITS_TO_LONGS(WLCORE_MAX_LINKS)];
Drx.c208 unsigned long active_hlids[BITS_TO_LONGS(WLCORE_MAX_LINKS)] = {0}; in wlcore_rx()
Dtx.c771 unsigned long active_hlids[BITS_TO_LONGS(WLCORE_MAX_LINKS)] = {0}; in wlcore_tx_work_locked()
Dmain.c2468 unsigned long hw_queue_map[BITS_TO_LONGS(WLCORE_NUM_MAC_ADDRESSES)];
/linux-4.1.27/tools/perf/util/include/linux/
Dbitmap.h8 unsigned long name[BITS_TO_LONGS(bits)]
28 int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long); in bitmap_zero()
/linux-4.1.27/fs/ocfs2/dlm/
Ddlmcommon.h68 unsigned long maybe_map[BITS_TO_LONGS(O2NM_MAX_NODES)];
69 unsigned long vote_map[BITS_TO_LONGS(O2NM_MAX_NODES)];
70 unsigned long response_map[BITS_TO_LONGS(O2NM_MAX_NODES)];
71 unsigned long node_map[BITS_TO_LONGS(O2NM_MAX_NODES)];
115 unsigned long node_map[BITS_TO_LONGS(O2NM_MAX_NODES)];
144 unsigned long live_nodes_map[BITS_TO_LONGS(O2NM_MAX_NODES)];
145 unsigned long domain_map[BITS_TO_LONGS(O2NM_MAX_NODES)];
146 unsigned long exit_domain_map[BITS_TO_LONGS(O2NM_MAX_NODES)];
147 unsigned long recovery_map[BITS_TO_LONGS(O2NM_MAX_NODES)];
335 unsigned long refmap[BITS_TO_LONGS(O2NM_MAX_NODES)];
[all …]
Ddlmdomain.c1401 if (map_size != (BITS_TO_LONGS(O2NM_MAX_NODES) * in dlm_send_join_cancels()
1405 map_size, (unsigned)BITS_TO_LONGS(O2NM_MAX_NODES)); in dlm_send_join_cancels()
1572 unsigned long live_map[BITS_TO_LONGS(O2NM_MAX_NODES)];
1573 unsigned long yes_resp_map[BITS_TO_LONGS(O2NM_MAX_NODES)];
Ddlmmaster.c1181 unsigned long diff_bm[BITS_TO_LONGS(O2NM_MAX_NODES)];
1202 for (i = 0; i < BITS_TO_LONGS(O2NM_MAX_NODES); i++) { in dlm_bitmap_diff_iter_init()
2121 unsigned long nodemap[BITS_TO_LONGS(O2NM_MAX_NODES)]; in dlm_assert_master_worker()
/linux-4.1.27/fs/ocfs2/cluster/
Dquorum.c61 unsigned long qs_hb_bm[BITS_TO_LONGS(O2NM_MAX_NODES)];
63 unsigned long qs_conn_bm[BITS_TO_LONGS(O2NM_MAX_NODES)];
65 unsigned long qs_hold_bm[BITS_TO_LONGS(O2NM_MAX_NODES)];
Dnodemanager.h70 unsigned long cl_nodes_bitmap[BITS_TO_LONGS(O2NM_MAX_NODES)];
Dheartbeat.c62 static unsigned long o2hb_live_node_bitmap[BITS_TO_LONGS(O2NM_MAX_NODES)];
74 static unsigned long o2hb_region_bitmap[BITS_TO_LONGS(O2NM_MAX_REGIONS)];
75 static unsigned long o2hb_live_region_bitmap[BITS_TO_LONGS(O2NM_MAX_REGIONS)];
76 static unsigned long o2hb_quorum_region_bitmap[BITS_TO_LONGS(O2NM_MAX_REGIONS)];
77 static unsigned long o2hb_failed_region_bitmap[BITS_TO_LONGS(O2NM_MAX_REGIONS)];
241 unsigned long hr_live_node_bitmap[BITS_TO_LONGS(O2NM_MAX_NODES)];
958 unsigned long configured_nodes[BITS_TO_LONGS(O2NM_MAX_NODES)]; in o2hb_do_disk_heartbeat()
959 unsigned long live_node_bitmap[BITS_TO_LONGS(O2NM_MAX_NODES)]; in o2hb_do_disk_heartbeat()
1176 unsigned long map[BITS_TO_LONGS(O2NM_MAX_NODES)]; in o2hb_debug_open()
1409 BUG_ON(bytes < (BITS_TO_LONGS(O2NM_MAX_NODES) * sizeof(unsigned long))); in o2hb_fill_node_map_from_callback()
[all …]
Dnetdebug.c458 unsigned long map[BITS_TO_LONGS(O2NM_MAX_NODES)]; in o2net_fill_bitmap()
Dtcp.c1015 BUG_ON(bytes < (BITS_TO_LONGS(O2NM_MAX_NODES) * sizeof(unsigned long))); in o2net_fill_node_map()
/linux-4.1.27/drivers/infiniband/hw/nes/
Dnes_verbs.h53 unsigned long allocated_doorbells[BITS_TO_LONGS(NES_MAX_USER_DB_REGIONS)];
56 unsigned long allocated_wqs[BITS_TO_LONGS(NES_MAX_USER_WQ_REGIONS)];
Dnes_hw.c352 adapter_size += sizeof(unsigned long) * BITS_TO_LONGS(max_qp); in nes_init_adapter()
353 adapter_size += sizeof(unsigned long) * BITS_TO_LONGS(max_mr); in nes_init_adapter()
354 adapter_size += sizeof(unsigned long) * BITS_TO_LONGS(max_cq); in nes_init_adapter()
355 adapter_size += sizeof(unsigned long) * BITS_TO_LONGS(num_pds); in nes_init_adapter()
356 adapter_size += sizeof(unsigned long) * BITS_TO_LONGS(arp_table_size); in nes_init_adapter()
441 nesadapter->allocated_cqs = &nesadapter->allocated_qps[BITS_TO_LONGS(max_qp)]; in nes_init_adapter()
442 nesadapter->allocated_mrs = &nesadapter->allocated_cqs[BITS_TO_LONGS(max_cq)]; in nes_init_adapter()
443 nesadapter->allocated_pds = &nesadapter->allocated_mrs[BITS_TO_LONGS(max_mr)]; in nes_init_adapter()
444 nesadapter->allocated_arps = &nesadapter->allocated_pds[BITS_TO_LONGS(num_pds)]; in nes_init_adapter()
445 …nesadapter->qp_table = (struct nes_qp **)(&nesadapter->allocated_arps[BITS_TO_LONGS(arp_table_size… in nes_init_adapter()
Dnes_hw.h918 unsigned long first_frag_overflow[BITS_TO_LONGS(NES_NIC_WQ_SIZE)];
/linux-4.1.27/lib/
Dbitmap.c86 unsigned k, lim = BITS_TO_LONGS(nbits); in __bitmap_shift_right()
132 unsigned int lim = BITS_TO_LONGS(nbits); in __bitmap_shift_left()
173 unsigned int nr = BITS_TO_LONGS(bits); in __bitmap_or()
184 unsigned int nr = BITS_TO_LONGS(bits); in __bitmap_xor()
954 nlongs_reg = BITS_TO_LONGS(nbits_reg); in __reg_op()
Dgenalloc.c187 BITS_TO_LONGS(nbits) * sizeof(long); in gen_pool_add_virt()
/linux-4.1.27/tools/perf/util/
Dbitmap.c27 int nr = BITS_TO_LONGS(bits); in __bitmap_or()
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
Dkfd_pasid.c35 pasid_bitmap = kcalloc(BITS_TO_LONGS(pasid_limit), sizeof(long), GFP_KERNEL); in kfd_pasid_init()
/linux-4.1.27/arch/metag/kernel/perf/
Dperf_event.h52 unsigned long used_mask[BITS_TO_LONGS(MAX_HWEVENTS)];
/linux-4.1.27/tools/include/linux/
Dbitops.h17 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long)) macro
/linux-4.1.27/net/rfkill/
Dinput.c44 static unsigned long rfkill_sw_pending[BITS_TO_LONGS(NUM_RFKILL_TYPES)];
45 static unsigned long rfkill_sw_state[BITS_TO_LONGS(NUM_RFKILL_TYPES)];
/linux-4.1.27/drivers/hid/
Dhid-input.c1390 for (i = 0; i < BITS_TO_LONGS(EV_CNT); i++) in hidinput_has_been_populated()
1393 for (i = 0; i < BITS_TO_LONGS(KEY_CNT); i++) in hidinput_has_been_populated()
1396 for (i = 0; i < BITS_TO_LONGS(REL_CNT); i++) in hidinput_has_been_populated()
1399 for (i = 0; i < BITS_TO_LONGS(ABS_CNT); i++) in hidinput_has_been_populated()
1402 for (i = 0; i < BITS_TO_LONGS(MSC_CNT); i++) in hidinput_has_been_populated()
1405 for (i = 0; i < BITS_TO_LONGS(LED_CNT); i++) in hidinput_has_been_populated()
1408 for (i = 0; i < BITS_TO_LONGS(SND_CNT); i++) in hidinput_has_been_populated()
1411 for (i = 0; i < BITS_TO_LONGS(FF_CNT); i++) in hidinput_has_been_populated()
1414 for (i = 0; i < BITS_TO_LONGS(SW_CNT); i++) in hidinput_has_been_populated()
Dhid-core.c2715 for (i = 0; i < BITS_TO_LONGS(KEY_MAX); i++) in hid_check_keys_pressed()
/linux-4.1.27/include/linux/iio/
Dtrigger.h71 unsigned long pool[BITS_TO_LONGS(CONFIG_IIO_CONSUMERS_PER_TRIGGER)];
/linux-4.1.27/arch/x86/kernel/cpu/
Dperf_event.h56 unsigned long idxmsk[BITS_TO_LONGS(X86_PMC_IDX_MAX)];
168 unsigned long active_mask[BITS_TO_LONGS(X86_PMC_IDX_MAX)];
169 unsigned long running[BITS_TO_LONGS(X86_PMC_IDX_MAX)];
517 unsigned long events_mask[BITS_TO_LONGS(ARCH_PERFMON_EVENTS_COUNT)];
Dperf_event_intel_uncore.h101 unsigned long active_mask[BITS_TO_LONGS(UNCORE_PMC_IDX_MAX)];
Dperf_event_p4.c1208 unsigned long used_mask[BITS_TO_LONGS(X86_PMC_IDX_MAX)]; in p4_pmu_schedule_events()
1209 unsigned long escr_mask[BITS_TO_LONGS(P4_ESCR_MSR_TABLE_SIZE)]; in p4_pmu_schedule_events()
Dperf_event_amd_ibs.c41 unsigned long state[BITS_TO_LONGS(IBS_MAX_STATES)];
Dperf_event.c643 unsigned long used[BITS_TO_LONGS(X86_PMC_IDX_MAX)];
816 unsigned long used_mask[BITS_TO_LONGS(X86_PMC_IDX_MAX)]; in x86_schedule_events()
Dperf_event_intel_uncore.c360 unsigned long used_mask[BITS_TO_LONGS(UNCORE_PMC_IDX_MAX)]; in uncore_assign_events()
/linux-4.1.27/arch/sh/kernel/
Dperf_event.c33 unsigned long used_mask[BITS_TO_LONGS(MAX_HWEVENTS)];
34 unsigned long active_mask[BITS_TO_LONGS(MAX_HWEVENTS)];
/linux-4.1.27/fs/ocfs2/
Dheartbeat.c53 memset(map->map, 0, BITS_TO_LONGS(OCFS2_NODE_MAP_MAX_NODES) * in ocfs2_node_map_init()
Dstack_o2cb.c267 unsigned long hbmap[BITS_TO_LONGS(O2NM_MAX_NODES)]; in o2cb_cluster_check()
268 unsigned long netmap[BITS_TO_LONGS(O2NM_MAX_NODES)]; in o2cb_cluster_check()
Docfs2.h103 unsigned long map[BITS_TO_LONGS(OCFS2_NODE_MAP_MAX_NODES)];
/linux-4.1.27/drivers/infiniband/hw/amso1100/
Dc2_pd.c79 c2dev->pd_table.table = kmalloc(BITS_TO_LONGS(c2dev->props.max_pd) * in c2_init_pd_table()
/linux-4.1.27/net/netfilter/
Dxt_connlabel.c63 words = BITS_TO_LONGS(info->bit+1); in connlabel_mt_check()
/linux-4.1.27/drivers/misc/sgi-gru/
Dgruhandles.h185 unsigned long fault_bits[BITS_TO_LONGS(GRU_NUM_CBE)];
187 unsigned long done_bits[BITS_TO_LONGS(GRU_NUM_CBE)];
Dgrufault.c163 for (i = 0; i < BITS_TO_LONGS(GRU_NUM_CBE); i++) { in get_clear_fault_map()
/linux-4.1.27/drivers/infiniband/hw/cxgb4/
Did_table.c96 alloc->table = kmalloc(BITS_TO_LONGS(num) * sizeof(long), in c4iw_id_table_alloc()
/linux-4.1.27/arch/c6x/mm/
Ddma-coherent.c138 bitmap_phys = memblock_alloc(BITS_TO_LONGS(dma_pages) * sizeof(long), in coherent_mem_init()
/linux-4.1.27/drivers/input/joystick/iforce/
Diforce.h68 unsigned long flags[BITS_TO_LONGS(FF_MODCORE_CNT)];
/linux-4.1.27/drivers/xen/
Dxen-acpi-processor.c398 acpi_id_present = kcalloc(BITS_TO_LONGS(nr_acpi_bits), sizeof(unsigned long), GFP_KERNEL); in check_acpi_ids()
402 acpi_id_cst_present = kcalloc(BITS_TO_LONGS(nr_acpi_bits), sizeof(unsigned long), GFP_KERNEL); in check_acpi_ids()
518 acpi_ids_done = kcalloc(BITS_TO_LONGS(nr_acpi_bits), sizeof(unsigned long), GFP_KERNEL); in xen_acpi_processor_init()
/linux-4.1.27/drivers/net/ethernet/intel/ixgb/
Dixgb.h139 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/net/mac80211/
Dsta_info.h229 unsigned long tid_rx_timer_expired[BITS_TO_LONGS(IEEE80211_NUM_TIDS)];
230 unsigned long tid_rx_stop_requested[BITS_TO_LONGS(IEEE80211_NUM_TIDS)];
Dieee80211_i.h278 u8 tim[sizeof(unsigned long) * BITS_TO_LONGS(IEEE80211_MAX_AID + 1)]
Dsta_info.c1148 BUILD_BUG_ON(BITS_TO_LONGS(IEEE80211_NUM_TIDS) > 1); in ieee80211_sta_ps_deliver_wakeup()
/linux-4.1.27/drivers/net/wireless/iwlwifi/pcie/
Dinternal.h297 unsigned long queue_used[BITS_TO_LONGS(IWL_MAX_HW_QUEUES)];
298 unsigned long queue_stopped[BITS_TO_LONGS(IWL_MAX_HW_QUEUES)];
/linux-4.1.27/drivers/iio/
Dbuffer_cb.c67 = kcalloc(BITS_TO_LONGS(indio_dev->masklength), sizeof(long), in iio_channel_get_all_cb()
Dindustrialio-buffer.c249 av_masks += BITS_TO_LONGS(masklength); in iio_scan_mask_match()
280 BITS_TO_LONGS(indio_dev->masklength), in iio_scan_mask_set()
621 compound_mask = kcalloc(BITS_TO_LONGS(indio_dev->masklength), in __iio_update_buffers()
948 buffer->scan_mask = kcalloc(BITS_TO_LONGS(indio_dev->masklength), in iio_buffer_alloc_sysfs_and_mask()
/linux-4.1.27/drivers/s390/cio/
Didset.c20 return BITS_TO_LONGS(num_ssid * num_id) * sizeof(unsigned long); in bitmap_size()
Dairq.c130 size = BITS_TO_LONGS(bits) * sizeof(unsigned long); in airq_iv_create()
/linux-4.1.27/drivers/gpu/drm/i915/
Di915_gem_tiling.c419 obj->bit_17 = kcalloc(BITS_TO_LONGS(obj->base.size >> PAGE_SHIFT), in i915_gem_set_tiling()
535 obj->bit_17 = kcalloc(BITS_TO_LONGS(page_count), in i915_gem_object_save_bit_17_swizzle()
Di915_gem_gtt.c346 pt->used_ptes = kcalloc(BITS_TO_LONGS(count), sizeof(*pt->used_ptes), in alloc_pt_single()
/linux-4.1.27/arch/x86/include/asm/
Dmpspec.h90 #define PHYSID_ARRAY_SIZE BITS_TO_LONGS(MAX_LOCAL_APIC)
/linux-4.1.27/arch/arm/mach-davinci/
Dcp_intc.c130 unsigned num_reg = BITS_TO_LONGS(num_irq); in cp_intc_of_init()
/linux-4.1.27/drivers/net/ethernet/intel/igbvf/
Digbvf.h185 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/drivers/input/
Devdev.c623 len = BITS_TO_LONGS(maxbit) * sizeof(long); in bits_to_user()
639 BITS_TO_LONGS(maxbit) * sizeof(long); in bits_to_user()
653 int len = BITS_TO_LONGS(maxbit) * sizeof(long); in bits_to_user()
795 len = BITS_TO_LONGS(maxbit) * sizeof(unsigned long); in evdev_handle_get_val()
Dinput.c1115 for (i = BITS_TO_LONGS(max) - 1; i >= 0; i--) { in input_seq_print_bitmap()
1438 for (i = BITS_TO_LONGS(max) - 1; i >= 0; i--) { in input_print_bitmap()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/
Duar.c146 uuari->bitmap = kcalloc(BITS_TO_LONGS(tot_uuars), sizeof(*uuari->bitmap), in mlx5_alloc_uuars()
/linux-4.1.27/arch/powerpc/sysdev/
Dmsi_bitmap.c122 size = BITS_TO_LONGS(irq_count) * sizeof(long); in msi_bitmap_alloc()
Dmpic.c1341 unsigned int mapsize = BITS_TO_LONGS(intvec_top + 1); in mpic_alloc()
/linux-4.1.27/drivers/net/ethernet/intel/e1000/
De1000.h229 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/drivers/net/ethernet/intel/i40evf/
Di40evf.h60 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/drivers/tty/
Dsysrq.c584 unsigned long key_down[BITS_TO_LONGS(KEY_CNT)];
594 unsigned long reset_keybit[BITS_TO_LONGS(KEY_CNT)];
/linux-4.1.27/Documentation/input/
Dff.txt52 #define BITS_TO_LONGS(x) \
54 unsigned long features[BITS_TO_LONGS(FF_CNT)];
Dinput-programming.txt221 1.4 BITS_TO_LONGS(), BIT_WORD(), BIT_MASK()
226 BITS_TO_LONGS(x) - returns the length of a bitfield array in longs for
/linux-4.1.27/drivers/base/
Ddma-coherent.c27 int bitmap_size = BITS_TO_LONGS(pages) * sizeof(long); in dma_init_coherent_memory()
/linux-4.1.27/drivers/net/vmxnet3/
Dvmxnet3_int.h319 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/net/batman-adv/
Dmain.h81 #define BATADV_NUM_WORDS BITS_TO_LONGS(BATADV_TQ_LOCAL_WINDOW_SIZE)
/linux-4.1.27/drivers/irqchip/
Dirq-gic-v2m.c257 v2m->bm = kzalloc(sizeof(long) * BITS_TO_LONGS(v2m->nr_spis), in gicv2m_init_one()
Dirq-gic-v3-its.c697 lpi_bitmap = kzalloc(BITS_TO_LONGS(lpi_chunks) * sizeof(long), in its_lpi_init()
731 bitmap = kzalloc(BITS_TO_LONGS(nr_chunks * IRQS_PER_CHUNK) * sizeof (long), in its_lpi_alloc_chunks()
Dirq-mips-gic.c288 for (i = 0; i < BITS_TO_LONGS(gic_shared_intrs); i++) { in gic_handle_shared_int()
/linux-4.1.27/drivers/net/ethernet/intel/ixgbe/
Dixgbe.h230 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
601 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/drivers/input/keyboard/
Dgpio_keys.c177 bits = kcalloc(BITS_TO_LONGS(n_events), sizeof(*bits), GFP_KERNEL); in gpio_keys_attr_show_helper()
220 bits = kcalloc(BITS_TO_LONGS(n_events), sizeof(*bits), GFP_KERNEL); in gpio_keys_attr_store_helper()
Dsh_keysc.c80 for (k = 0; k < BITS_TO_LONGS(SH_KEYSC_MAXKEYS); k++) in sh_keysc_map_dbg()
/linux-4.1.27/drivers/net/wireless/ath/wil6210/
Dwil6210.h491 unsigned long tid_rx_timer_expired[BITS_TO_LONGS(WIL_STA_TID_NUM)];
492 unsigned long tid_rx_stop_requested[BITS_TO_LONGS(WIL_STA_TID_NUM)];
/linux-4.1.27/mm/
Dcma.c99 int bitmap_size = BITS_TO_LONGS(cma_bitmap_maxno(cma)) * sizeof(long); in cma_activate_area()
Dmempolicy.c1253 nlongs = BITS_TO_LONGS(maxnode); in get_nodes()
1261 if (nlongs > BITS_TO_LONGS(MAX_NUMNODES)) { in get_nodes()
1264 for (k = BITS_TO_LONGS(MAX_NUMNODES); k < nlongs; k++) { in get_nodes()
1274 nlongs = BITS_TO_LONGS(MAX_NUMNODES); in get_nodes()
1289 const int nbytes = BITS_TO_LONGS(MAX_NUMNODES) * sizeof(long); in copy_nodes_to_user()
Dslub.c3208 unsigned long *map = kzalloc(BITS_TO_LONGS(page->objects) * in list_slab_objects()
3945 unsigned long *map = kmalloc(BITS_TO_LONGS(oo_objects(s->max)) * in validate_slab_cache()
4106 unsigned long *map = kmalloc(BITS_TO_LONGS(oo_objects(s->max)) * in list_locations()
Dpercpu.c1628 BITS_TO_LONGS(pcpu_unit_pages) * sizeof(unsigned long); in pcpu_setup_first_chunk()
Dswapfile.c2473 frontswap_map = vzalloc(BITS_TO_LONGS(maxpages) * sizeof(long)); in SYSCALL_DEFINE2()
/linux-4.1.27/arch/x86/include/asm/uv/
Duv_bau.h201 unsigned long bits[BITS_TO_LONGS(UV_DISTRIBUTION_SIZE)];
/linux-4.1.27/drivers/infiniband/hw/mthca/
Dmthca_allocator.c93 alloc->table = kmalloc(BITS_TO_LONGS(num) * sizeof (long), in mthca_alloc_init()
Dmthca_mr.c155 s = BITS_TO_LONGS(1 << (buddy->max_order - i)); in mthca_buddy_init()
/linux-4.1.27/drivers/net/ethernet/brocade/bna/
Dbnad.h295 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/drivers/net/ethernet/neterion/vxge/
Dvxge-main.h336 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/arch/arc/kernel/
Dperf_event.c25 unsigned long used_mask[BITS_TO_LONGS(ARC_PMU_MAX_HWEVENTS)];
/linux-4.1.27/drivers/misc/sgi-xp/
Dxpc_partition.c176 xpc_nasid_mask_nlongs = BITS_TO_LONGS(rp->SAL_nasids_size * in xpc_setup_rsvd_page()
Dxpnet.c538 xpnet_broadcast_partitions = kzalloc(BITS_TO_LONGS(xp_max_npartitions) * in xpnet_init()
/linux-4.1.27/arch/blackfin/kernel/
Dperf_event.c232 unsigned long used_mask[BITS_TO_LONGS(MAX_HWEVENTS)];
/linux-4.1.27/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf.h378 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/virt/kvm/arm/
Dvgic.c128 nr_longs = nr_cpus + BITS_TO_LONGS(nr_irqs - VGIC_NR_PRIVATE_IRQS); in vgic_init_bitmap()
1605 int nr_longs = BITS_TO_LONGS(nr_irqs - VGIC_NR_PRIVATE_IRQS); in vgic_vcpu_init_maps()
1720 dist->irq_pending_on_cpu = kzalloc(BITS_TO_LONGS(nr_cpus) * sizeof(long), in vgic_init()
1722 dist->irq_active_on_cpu = kzalloc(BITS_TO_LONGS(nr_cpus) * sizeof(long), in vgic_init()
/linux-4.1.27/drivers/net/ethernet/intel/igb/
Digb.h353 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/drivers/net/ethernet/amd/xgbe/
Dxgbe.h755 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/arch/powerpc/kernel/
Diommu.c661 sz = BITS_TO_LONGS(tbl->it_size) * sizeof(unsigned long); in iommu_init_table()
741 bitmap_sz = BITS_TO_LONGS(tbl->it_size) * sizeof(unsigned long); in iommu_free_table()
/linux-4.1.27/drivers/net/ethernet/intel/e1000e/
De1000.h217 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/net/bridge/
Dbr_if.c297 inuse = kcalloc(BITS_TO_LONGS(BR_MAX_PORTS), sizeof(unsigned long), in find_portno()
Dbr_vlan.c533 changed = kcalloc(BITS_TO_LONGS(BR_MAX_PORTS), sizeof(unsigned long), in __br_vlan_set_default_pvid()
Dbr_private.h30 #define BR_VLAN_BITMAP_LEN BITS_TO_LONGS(VLAN_N_VID)
/linux-4.1.27/drivers/net/ethernet/intel/fm10k/
Dfm10k.h242 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/drivers/scsi/
Dipr.h1477 unsigned long target_ids[BITS_TO_LONGS(IPR_MAX_SIS64_DEVS)];
1478 unsigned long array_ids[BITS_TO_LONGS(IPR_MAX_SIS64_DEVS)];
1479 unsigned long vset_ids[BITS_TO_LONGS(IPR_MAX_SIS64_DEVS)];
Dscsi_debug.c4916 map_storep = vmalloc(BITS_TO_LONGS(map_size) * sizeof(long)); in scsi_debug_init()
/linux-4.1.27/net/netlink/
Dgenetlink.c190 BITS_TO_LONGS(n_groups); in genl_allocate_reserve_groups()
205 for (i = 0; i < BITS_TO_LONGS(n_groups); i++) in genl_allocate_reserve_groups()
/linux-4.1.27/drivers/net/wireless/ath/carl9170/
Dcarl9170.h111 #define CARL9170_BAW_SIZE (BITS_TO_LONGS(CARL9170_BAW_BITS))
/linux-4.1.27/arch/s390/include/asm/
Dkvm_host.h454 unsigned long idle_mask[BITS_TO_LONGS(KVM_MAX_VCPUS)];
/linux-4.1.27/kernel/
Dcpu.c743 const unsigned long cpu_bit_bitmap[BITS_PER_LONG+1][BITS_TO_LONGS(NR_CPUS)] = {
Dcompat.c906 for (i = 0; i < BITS_TO_LONGS(bitmap_size); i++) { in compat_get_bitmap()
948 for (i = 0; i < BITS_TO_LONGS(bitmap_size); i++) { in compat_put_bitmap()
Dsysctl.c2629 tmp_bitmap = kzalloc(BITS_TO_LONGS(bitmap_len) * sizeof(unsigned long), in proc_do_large_bitmap()
Dworkqueue.c3116 BITS_TO_LONGS(nr_cpumask_bits) * sizeof(long), hash); in wqattrs_hash()
/linux-4.1.27/drivers/thermal/
Dintel_powerclamp.c775 bitmap_size = BITS_TO_LONGS(num_possible_cpus()) * sizeof(long); in powerclamp_init()
/linux-4.1.27/drivers/misc/cxl/
Dirq.c432 ctx->irq_bitmap = kcalloc(BITS_TO_LONGS(count), in afu_register_irqs()
/linux-4.1.27/drivers/net/wireless/iwlwifi/dvm/
Ddev.h667 unsigned long agg_q_alloc[BITS_TO_LONGS(IWL_MAX_HW_QUEUES)];
/linux-4.1.27/drivers/usb/wusbcore/
Dwa-rpipe.c487 wa->rpipe_bm = kzalloc(BITS_TO_LONGS(wa->rpipes)*sizeof(unsigned long), in wa_rpipes_create()
/linux-4.1.27/drivers/scsi/aic94xx/
Daic94xx_hwi.c229 bitmap_bytes = BITS_TO_LONGS(bitmap_bytes*8)*sizeof(unsigned long); in asd_init_scbs()
611 bitmap_bytes = BITS_TO_LONGS(bitmap_bytes*8)*sizeof(unsigned long); in asd_init_ctxmem()
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
Dmvm.h642 unsigned long sta_drained[BITS_TO_LONGS(IWL_MVM_STATION_COUNT)];
712 unsigned long fw_key_table[BITS_TO_LONGS(STA_KEY_MAX_NUM)];
Dmac-ctxt.c84 unsigned long available_mac_ids[BITS_TO_LONGS(NUM_MAC_INDEX_DRIVER)];
85 unsigned long available_tsf_ids[BITS_TO_LONGS(NUM_TSF_IDS)];
/linux-4.1.27/drivers/block/
Dxen-blkfront.c288 bitmap = kcalloc(BITS_TO_LONGS(end), sizeof(*bitmap), in xlbd_reserve_minors()
297 BITS_TO_LONGS(nr_minors) * sizeof(*bitmap)); in xlbd_reserve_minors()
299 nr_minors = BITS_TO_LONGS(end) * BITS_PER_LONG; in xlbd_reserve_minors()
Dcciss.c4816 h->cmd_pool_bits = kmalloc(BITS_TO_LONGS(h->nr_cmds) * in cciss_allocate_cmd_pool()
/linux-4.1.27/drivers/net/ethernet/intel/i40e/
Di40e.h439 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dmlx4_en.h499 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
Dalloc.c188 bitmap->table = kzalloc(BITS_TO_LONGS(bitmap->max) * in mlx4_bitmap_init()
Dmr.c117 s = BITS_TO_LONGS(1 << (buddy->max_order - i)); in mlx4_buddy_init()
/linux-4.1.27/arch/tile/kernel/
Dperf_event.c56 unsigned long active_mask[BITS_TO_LONGS(TILE_MAX_COUNTERS)];
/linux-4.1.27/drivers/iommu/
Dtegra-smmu.c705 size = BITS_TO_LONGS(soc->num_asids) * sizeof(long); in tegra_smmu_probe()
Dintel_irq_remapping.c498 bitmap = kcalloc(BITS_TO_LONGS(INTR_REMAP_TABLE_ENTRIES), in intel_setup_irq_remapping()
Ddmar.c73 static unsigned long dmar_seq_ids[BITS_TO_LONGS(DMAR_UNITS_SUPPORTED)];
Dintel-iommu.c1448 nlongs = BITS_TO_LONGS(ndomains); in iommu_init_domains()
/linux-4.1.27/fs/f2fs/
Dsegment.h97 (BITS_TO_LONGS(nr) * sizeof(unsigned long))
/linux-4.1.27/drivers/media/rc/
Dlirc_dev.c317 bytes_in_key = BITS_TO_LONGS(d->code_length) + in lirc_register_driver()
/linux-4.1.27/drivers/s390/net/
Dqeth_core.h791 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/drivers/gpio/
Dgpiolib.c1319 unsigned long mask[BITS_TO_LONGS(chip->ngpio)]; in gpiod_set_array_priv()
1320 unsigned long bits[BITS_TO_LONGS(chip->ngpio)]; in gpiod_set_array_priv()
/linux-4.1.27/drivers/iio/adc/
Dmax1363.c1457 BITS_TO_LONGS(MAX1363_MAX_CHANNELS) * sizeof(long) * in max1363_alloc_scan_masks()
1463 bitmap_copy(masks + BITS_TO_LONGS(MAX1363_MAX_CHANNELS)*i, in max1363_alloc_scan_masks()
/linux-4.1.27/drivers/net/ethernet/emulex/benet/
Dbe.h528 unsigned long vids[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/drivers/isdn/mISDN/
Dtei.c253 DECLARE_BITMAP(ids, 64) = { [0 ... BITS_TO_LONGS(64) - 1] = 0 }; in get_free_id()
277 DECLARE_BITMAP(ids, 64) = { [0 ... BITS_TO_LONGS(64) - 1] = 0 }; in get_free_tei()
/linux-4.1.27/drivers/net/wireless/p54/
Dfwio.c179 priv->used_rxkeys = kzalloc(BITS_TO_LONGS( in p54_parse_firmware()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Dath9k.h246 unsigned long tx_buf[BITS_TO_LONGS(ATH_TID_MAX_BUFS)];
/linux-4.1.27/drivers/rapidio/
Drio-scan.c886 BITS_TO_LONGS(RIO_MAX_ROUTE_ENTRIES(port->sys_size)), in rio_alloc_net()
/linux-4.1.27/drivers/net/ethernet/via/
Dvia-velocity.h1442 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
Dvia-rhine.c440 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/drivers/net/ethernet/sfc/
Dsiena.c492 [0 ... BITS_TO_LONGS(SIENA_STAT_COUNT) - 1] = ~0UL,
Dptp.c354 [0 ... BITS_TO_LONGS(PTP_STAT_COUNT) - 1] = ~0UL,
Dsiena_sriov.c22 #define VI_MASK_LENGTH BITS_TO_LONGS(1 << EFX_VI_SCALE_MAX)
Dfarch.c2832 table->used_bitmap = kcalloc(BITS_TO_LONGS(table->size), in efx_farch_filter_table_probe()
Dfalcon.c200 [0 ... BITS_TO_LONGS(FALCON_STAT_COUNT) - 1] = ~0UL,
/linux-4.1.27/drivers/bus/
Darm-cci.c104 unsigned long used_mask[BITS_TO_LONGS(CCI_PMU_MAX_HW_EVENTS)];
/linux-4.1.27/drivers/staging/media/dt3155v4l/
Ddt3155v4l.c846 int bitmap_size = BITS_TO_LONGS(pages) * sizeof(long); in dt3155_alloc_coherent()
/linux-4.1.27/net/sched/
Dcls_u32.c564 unsigned long *bitmap = kzalloc(BITS_TO_LONGS(NR_U32_NODE) * sizeof(unsigned long), in gen_new_kid()
/linux-4.1.27/arch/powerpc/kvm/
Dpowerpc.c1368 static unsigned long lpid_inuse[BITS_TO_LONGS(KVMPPC_NR_LPIDS)];
Dmpic.c142 unsigned long queue[BITS_TO_LONGS((MAX_IRQ + 63) & ~63)];
/linux-4.1.27/arch/arm64/kernel/
Dperf_event.c48 static DEFINE_PER_CPU(unsigned long [BITS_TO_LONGS(ARMPMU_MAX_HWEVENTS)], used_mask);
/linux-4.1.27/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c2286 for (i = 0; i < BITS_TO_LONGS(s->egr_sz); i++) in sge_rx_timer_cb()
2374 for (i = 0; i < BITS_TO_LONGS(s->egr_sz); i++) in sge_tx_timer_cb()
Dcxgb4_main.c1663 stid_bmap_size = BITS_TO_LONGS(t->nstids + t->nsftids); in tid_init()
3750 adap->sge.starving_fl = kcalloc(BITS_TO_LONGS(adap->sge.egr_sz), in adap_init0()
3757 adap->sge.txq_maperr = kcalloc(BITS_TO_LONGS(adap->sge.egr_sz), in adap_init0()
/linux-4.1.27/drivers/infiniband/core/
Duser_mad.c669 for (i = 0; i < BITS_TO_LONGS(IB_MGMT_MAX_METHODS); ++i) in ib_umad_reg_agent()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlge/
Dqlge.h2063 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/arch/sparc/mm/
Dsrmmu.c286 __alloc_bootmem(BITS_TO_LONGS(bitmap_bits) * sizeof(long), in srmmu_nocache_init()
Dinit_64.c670 #define CTX_BMAP_SLOTS BITS_TO_LONGS(MAX_CTX_NR)
/linux-4.1.27/arch/mips/kernel/
Dperf_event_mipsxx.c42 unsigned long used_mask[BITS_TO_LONGS(MIPS_MAX_HWEVENTS)];
/linux-4.1.27/drivers/infiniband/hw/qib/
Dqib_init.c1159 qib_cpulist = kzalloc(BITS_TO_LONGS(count) * in qib_alloc_devdata()
/linux-4.1.27/drivers/of/
Dunittest.c1116 static unsigned long overlay_id_bits[BITS_TO_LONGS(MAX_UNITTEST_OVERLAYS)];
/linux-4.1.27/drivers/tty/vt/
Dkeyboard.c123 static unsigned long key_down[BITS_TO_LONGS(KEY_CNT)]; /* keyboard key bitmap */
/linux-4.1.27/kernel/events/
Duprobes.c1174 area->bitmap = kzalloc(BITS_TO_LONGS(UINSNS_PER_PAGE) * sizeof(long), GFP_KERNEL); in __create_xol_area()
/linux-4.1.27/drivers/net/wireless/brcm80211/brcmfmac/
Dmsgbuf.c1380 count = BITS_TO_LONGS(if_msgbuf->nrof_flowrings); in brcmf_proto_msgbuf_attach()
/linux-4.1.27/drivers/infiniband/hw/mlx5/
Dmain.c460 uuari->bitmap = kcalloc(BITS_TO_LONGS(gross_uuars), in mlx5_ib_alloc_ucontext()
/linux-4.1.27/arch/x86/kernel/cpu/mcheck/
Dmce.c98 [0 ... BITS_TO_LONGS(MAX_NR_BANKS)-1] = ~0UL
/linux-4.1.27/drivers/infiniband/hw/ocrdma/
Docrdma_hw.c1461 BITS_TO_LONGS(rsp->pd_count) * sizeof(long); in ocrdma_mbx_alloc_pd_range()
1479 pd_bitmap_size = BITS_TO_LONGS(rsp->pd_count) * sizeof(long); in ocrdma_mbx_alloc_pd_range()
/linux-4.1.27/arch/arm/mm/
Ddma-mapping.c1891 unsigned int bitmap_size = BITS_TO_LONGS(bits) * sizeof(long); in arm_iommu_create_mapping()
/linux-4.1.27/drivers/net/ethernet/adaptec/
Dstarfire.c551 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic.h1159 unsigned long vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/drivers/mtd/nand/
Dnandsim.c591 ns->pages_written = vzalloc(BITS_TO_LONGS(ns->geom.pgnum) * in alloc_device()
/linux-4.1.27/drivers/net/wireless/iwlegacy/
Dcommon.h1302 unsigned long queue_stopped[BITS_TO_LONGS(IL_MAX_HW_QUEUES)];
/linux-4.1.27/drivers/net/ethernet/rocker/
Drocker.c210 #define ROCKER_VLAN_BITMAP_LEN BITS_TO_LONGS(VLAN_N_VID)
211 #define ROCKER_INTERNAL_VLAN_BITMAP_LEN BITS_TO_LONGS(ROCKER_N_INTERNAL_VLANS)
/linux-4.1.27/drivers/md/bcache/
Dsuper.c803 n = BITS_TO_LONGS(d->nr_stripes) * sizeof(unsigned long); in bcache_device_init()
/linux-4.1.27/arch/s390/kvm/
Dinterrupt.c2218 unsigned long sigp_emerg_pending[BITS_TO_LONGS(KVM_MAX_VCPUS)]; in kvm_s390_get_irq_state()
/linux-4.1.27/drivers/atm/
Dhe.c782 he_dev->rbpl_table = kmalloc(BITS_TO_LONGS(RBPL_TABLE_SIZE) in he_init_group()
/linux-4.1.27/drivers/net/ethernet/ti/
Dnetcp_ethss.c691 unsigned long active_vlans[BITS_TO_LONGS(VLAN_N_VID)];
/linux-4.1.27/drivers/infiniband/hw/mlx4/
Dmain.c2323 kmalloc(BITS_TO_LONGS(ibdev->steer_qpn_count) * in mlx4_ib_add()
/linux-4.1.27/drivers/target/iscsi/
Discsi_target.c554 size = BITS_TO_LONGS(ISCSIT_BITMAP_BITS) * sizeof(long); in iscsi_target_init_module()
/linux-4.1.27/drivers/scsi/qla2xxx/
Dqla_os.c3518 ha->loop_id_map = kzalloc(BITS_TO_LONGS(LOOPID_MAP_SIZE) * sizeof(long), in qla2x00_mem_alloc()