Searched refs:bit (Results 1 - 25 of 1537) sorted by relevance

1234567891011>>

/linux-master/arch/um/include/asm/
H A Dcpufeature.h23 #define test_cpu_cap(c, bit) \
24 test_bit(bit, (unsigned long *)((c)->x86_capability))
28 * (selected with (bit>>5) give us the word number and the low 5
29 * bits give us the bit/feature number inside the word.
30 * (1UL<<((bit)&31) gives us a mask for the feature_bit so we can
33 #define CHECK_BIT_IN_MASK_WORD(maskname, word, bit) \
34 (((bit)>>5)==(word) && (1UL<<((bit)&31) & maskname##word ))
36 #define cpu_has(c, bit) \
37 test_cpu_cap(c, bit)
76 _static_cpu_has(u16 bit) argument
[all...]
/linux-master/arch/x86/events/
H A Dprobe.c22 unsigned int bit; local
28 for (bit = 0; bit < cnt; bit++) {
29 if (!msr[bit].no_check) {
30 struct attribute_group *grp = msr[bit].grp;
40 if (!msr[bit].msr)
43 if (msr[bit].test && !msr[bit].test(bit, dat
[all...]
/linux-master/include/dt-bindings/mfd/
H A Dstm32f4-rcc.h34 #define STM32F4_AHB1_RESET(bit) (STM32F4_RCC_AHB1_##bit + (0x10 * 8))
35 #define STM32F4_AHB1_CLOCK(bit) (STM32F4_RCC_AHB1_##bit)
44 #define STM32F4_AHB2_RESET(bit) (STM32F4_RCC_AHB2_##bit + (0x14 * 8))
45 #define STM32F4_AHB2_CLOCK(bit) (STM32F4_RCC_AHB2_##bit + 0x20)
51 #define STM32F4_AHB3_RESET(bit) (STM32F4_RCC_AHB3_##bit
[all...]
H A Dstm32f7-rcc.h34 #define STM32F7_AHB1_RESET(bit) (STM32F7_RCC_AHB1_##bit + (0x10 * 8))
35 #define STM32F7_AHB1_CLOCK(bit) (STM32F7_RCC_AHB1_##bit)
45 #define STM32F7_AHB2_RESET(bit) (STM32F7_RCC_AHB2_##bit + (0x14 * 8))
46 #define STM32F7_AHB2_CLOCK(bit) (STM32F7_RCC_AHB2_##bit + 0x20)
52 #define STM32F7_AHB3_RESET(bit) (STM32F7_RCC_AHB3_##bit
[all...]
H A Dstm32h7-rcc.h17 #define STM32H7_AHB3_RESET(bit) (STM32H7_RCC_AHB3_##bit + (0x7C * 8))
28 #define STM32H7_AHB1_RESET(bit) (STM32H7_RCC_AHB1_##bit + (0x80 * 8))
37 #define STM32H7_AHB2_RESET(bit) (STM32H7_RCC_AHB2_##bit + (0x84 * 8))
56 #define STM32H7_AHB4_RESET(bit) (STM32H7_RCC_AHB4_##bit + (0x88 * 8))
62 #define STM32H7_APB3_RESET(bit) (STM32H7_RCC_APB3_##bit
[all...]
/linux-master/scripts/dtc/include-prefixes/dt-bindings/mfd/
H A Dstm32f4-rcc.h34 #define STM32F4_AHB1_RESET(bit) (STM32F4_RCC_AHB1_##bit + (0x10 * 8))
35 #define STM32F4_AHB1_CLOCK(bit) (STM32F4_RCC_AHB1_##bit)
44 #define STM32F4_AHB2_RESET(bit) (STM32F4_RCC_AHB2_##bit + (0x14 * 8))
45 #define STM32F4_AHB2_CLOCK(bit) (STM32F4_RCC_AHB2_##bit + 0x20)
51 #define STM32F4_AHB3_RESET(bit) (STM32F4_RCC_AHB3_##bit
[all...]
H A Dstm32f7-rcc.h34 #define STM32F7_AHB1_RESET(bit) (STM32F7_RCC_AHB1_##bit + (0x10 * 8))
35 #define STM32F7_AHB1_CLOCK(bit) (STM32F7_RCC_AHB1_##bit)
45 #define STM32F7_AHB2_RESET(bit) (STM32F7_RCC_AHB2_##bit + (0x14 * 8))
46 #define STM32F7_AHB2_CLOCK(bit) (STM32F7_RCC_AHB2_##bit + 0x20)
52 #define STM32F7_AHB3_RESET(bit) (STM32F7_RCC_AHB3_##bit
[all...]
H A Dstm32h7-rcc.h17 #define STM32H7_AHB3_RESET(bit) (STM32H7_RCC_AHB3_##bit + (0x7C * 8))
28 #define STM32H7_AHB1_RESET(bit) (STM32H7_RCC_AHB1_##bit + (0x80 * 8))
37 #define STM32H7_AHB2_RESET(bit) (STM32H7_RCC_AHB2_##bit + (0x84 * 8))
56 #define STM32H7_AHB4_RESET(bit) (STM32H7_RCC_AHB4_##bit + (0x88 * 8))
62 #define STM32H7_APB3_RESET(bit) (STM32H7_RCC_APB3_##bit
[all...]
/linux-master/drivers/clk/bcm/
H A Dclk-bcm63xx-gate.c18 u8 bit; member in struct:clk_bcm63xx_table_entry
32 .bit = BCM3368_CLK_MAC,
35 .bit = BCM3368_CLK_TC,
38 .bit = BCM3368_CLK_US_TOP,
41 .bit = BCM3368_CLK_DS_TOP,
44 .bit = BCM3368_CLK_ACM,
47 .bit = BCM3368_CLK_SPI,
50 .bit = BCM3368_CLK_USBS,
53 .bit = BCM3368_CLK_BMU,
56 .bit
[all...]
/linux-master/security/landlock/
H A Dcommon.h20 #define BIT_INDEX(bit) HWEIGHT(bit - 1)
/linux-master/drivers/media/pci/cx25821/
H A Dcx25821-biffuncs.h19 static inline u32 clearBitAtPos(u32 value, u8 bit) argument
21 return value & ~(1 << bit);
24 static inline u32 setBitAtPos(u32 sample, u8 bit) argument
26 sample |= (1 << bit);
/linux-master/arch/mips/loongson2ef/common/
H A Dmem.c24 int bit; local
26 bit = fls(memsize + highmemsize);
27 if (bit != ffs(memsize + highmemsize))
28 bit += 20;
30 bit = bit + 20 - 1;
34 0x80000000ul, (1 << bit));
/linux-master/arch/sh/boards/mach-x3proto/
H A Dilsel.c37 * 1:1 mapping between the bit position and the IRQ number.
46 static inline unsigned int ilsel_offset(unsigned int bit) argument
48 return ILSEL_LEVELS - bit - 1;
51 static inline unsigned long mk_ilsel_addr(unsigned int bit) argument
53 return ILSEL_BASE + ((ilsel_offset(bit) >> 1) & ~0x1);
56 static inline unsigned int mk_ilsel_shift(unsigned int bit) argument
58 return (ilsel_offset(bit) & 0x3) << 2;
61 static void __ilsel_enable(ilsel_source_t set, unsigned int bit) argument
68 addr = mk_ilsel_addr(bit);
69 shift = mk_ilsel_shift(bit);
94 unsigned int bit; local
124 unsigned int bit = ilsel_offset(level - 1); local
[all...]
/linux-master/include/linux/
H A Dtrace_recursion.h70 * To implement set_graph_notrace, if this bit is set, we ignore
80 #define trace_recursion_set(bit) do { (current)->trace_recursion |= (1<<(bit)); } while (0)
81 #define trace_recursion_clear(bit) do { (current)->trace_recursion &= ~(1<<(bit)); } while (0)
82 #define trace_recursion_test(bit) ((current)->trace_recursion & (1<<(bit)))
119 unsigned char bit = interrupt_context_level(); local
121 return TRACE_CTX_NORMAL - bit;
154 * Preemption is promised to be disabled when return bit >
160 int bit; local
194 trace_clear_recursion(int bit) argument
222 ftrace_test_recursion_unlock(int bit) argument
[all...]
/linux-master/drivers/pmdomain/bcm/
H A Dbcm63xx-power.c34 uint8_t bit; member in struct:bcm63xx_power_data
114 max_bit = max(max_bit, entry->bit);
143 pmd->mask = BIT(entry->bit);
156 power->genpd[entry->bit] = &pmd->genpd;
177 .bit = BCM6318_POWER_DOMAIN_PCIE,
180 .bit = BCM6318_POWER_DOMAIN_USB,
183 .bit = BCM6318_POWER_DOMAIN_EPHY0,
186 .bit = BCM6318_POWER_DOMAIN_EPHY1,
189 .bit = BCM6318_POWER_DOMAIN_EPHY2,
192 .bit
[all...]
/linux-master/tools/testing/selftests/kvm/x86_64/
H A Dhwcr_msr_test.c13 void test_hwcr_bit(struct kvm_vcpu *vcpu, unsigned int bit) argument
18 uint64_t val = BIT_ULL(bit);
30 bit, actual, (val & valid));
39 unsigned int bit; local
43 for (bit = 0; bit < BITS_PER_LONG; bit++)
44 test_hwcr_bit(vcpu, bit);
/linux-master/fs/ocfs2/
H A Dheartbeat.h21 int bit);
24 int bit);
27 int bit);
H A Dheartbeat.c65 int bit)
67 if (bit==-1)
69 BUG_ON(bit >= map->num_nodes);
71 set_bit(bit, map->map);
77 int bit)
79 if (bit==-1)
81 BUG_ON(bit >= map->num_nodes);
83 clear_bit(bit, map->map);
89 int bit)
92 if (bit >
63 ocfs2_node_map_set_bit(struct ocfs2_super *osb, struct ocfs2_node_map *map, int bit) argument
75 ocfs2_node_map_clear_bit(struct ocfs2_super *osb, struct ocfs2_node_map *map, int bit) argument
87 ocfs2_node_map_test_bit(struct ocfs2_super *osb, struct ocfs2_node_map *map, int bit) argument
[all...]
/linux-master/arch/x86/include/asm/
H A Dcpufeature.h54 #define test_cpu_cap(c, bit) \
55 arch_test_bit(bit, (unsigned long *)((c)->x86_capability))
59 * (selected with (bit>>5) give us the word number and the low 5
60 * bits give us the bit/feature number inside the word.
61 * (1UL<<((bit)&31) gives us a mask for the feature_bit so we can
64 #define CHECK_BIT_IN_MASK_WORD(maskname, word, bit) \
65 (((bit)>>5)==(word) && (1UL<<((bit)&31) & maskname##word ))
126 #define cpu_has(c, bit) \
127 (__builtin_constant_p(bit)
173 _static_cpu_has(u16 bit) argument
[all...]
/linux-master/arch/s390/include/asm/
H A Dairq.h30 /* Adapter interrupt bit vector */
32 unsigned long *vector; /* Adapter interrupt bit vector */
33 dma_addr_t vector_dma; /* Adapter interrupt bit vector dma */
34 unsigned long *avail; /* Allocation bit mask for the bit vector */
35 unsigned long *bitlock; /* Lock bit mask for the bit vector */
36 unsigned long *ptr; /* Pointer associated with each bit */
37 unsigned int *data; /* 32 bit value associated with each bit */
64 airq_iv_free_bit(struct airq_iv *iv, unsigned long bit) argument
74 airq_iv_lock(struct airq_iv *iv, unsigned long bit) argument
80 airq_iv_unlock(struct airq_iv *iv, unsigned long bit) argument
86 airq_iv_set_data(struct airq_iv *iv, unsigned long bit, unsigned int data) argument
92 airq_iv_get_data(struct airq_iv *iv, unsigned long bit) argument
98 airq_iv_set_ptr(struct airq_iv *iv, unsigned long bit, unsigned long ptr) argument
104 airq_iv_get_ptr(struct airq_iv *iv, unsigned long bit) argument
[all...]
/linux-master/arch/nios2/include/asm/
H A Dasm-macros.h4 * Some of the bit test macro can simplify down to one line
73 * the bit to make sure it is valid 32 value.
78 .macro BT reg1, reg2, bit
79 .if \bit > 31
82 .if \bit < 16
83 andi \reg1, \reg2, (1 << \bit)
85 andhi \reg1, \reg2, (1 << (\bit - 16))
91 * Tests the bit in reg2 and branches to label if the
92 * bit is zero. The result of the bit tes
[all...]
/linux-master/drivers/auxdisplay/
H A Dks0108.c49 * There are not bit definitions because they are not flags,
58 #define bit(n) (((unsigned char)1)<<(n)) macro
68 parport_write_control(ks0108_parport, byte ^ (bit(0) | bit(1) | bit(3)));
73 ks0108_writedata((state ? bit(0) : 0) | bit(1) | bit(2) | bit(3) | bit(
[all...]
/linux-master/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dbit.c25 #include <subdev/bios/bit.h>
28 bit_entry(struct nvkm_bios *bios, u8 id, struct bit_entry *bit) argument
35 bit->id = nvbios_rd08(bios, entry + 0);
36 bit->version = nvbios_rd08(bios, entry + 1);
37 bit->length = nvbios_rd16(bios, entry + 2);
38 bit->offset = nvbios_rd16(bios, entry + 4);
/linux-master/include/uapi/linux/netfilter/
H A Dxt_connlabel.h15 __u16 bit; member in struct:xt_connlabel_mtinfo
/linux-master/arch/mips/include/asm/mach-au1x00/
H A Dgpio-au1300.h32 int bit; local
36 bit = GPIC_GPIO_TO_BIT(gpio);
37 return __raw_readl(roff + AU1300_GPIC_PINVAL) & bit;
43 unsigned long bit; local
48 bit = GPIC_GPIO_TO_BIT(gpio);
49 __raw_writel(bit, roff + AU1300_GPIC_DEVCLR);
58 unsigned long bit; local
63 bit = GPIC_GPIO_TO_BIT(gpio);
64 __raw_writel(bit, roff + (v ? AU1300_GPIC_PINVAL

Completed in 267 milliseconds

1234567891011>>