/openbmc/bmcweb/test/redfish-core/include/utils/ |
H A D | ip_utils_test.cpp | 44 uint8_t bits = 0; in TEST() local 45 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("128.0.0.0", &bits)); in TEST() 46 EXPECT_EQ(bits, 1); in TEST() 47 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("192.0.0.0", &bits)); in TEST() 48 EXPECT_EQ(bits, 2); in TEST() 49 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("224.0.0.0", &bits)); in TEST() 50 EXPECT_EQ(bits, 3); in TEST() 51 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("240.0.0.0", &bits)); in TEST() 52 EXPECT_EQ(bits, 4); in TEST() 53 EXPECT_TRUE(ipv4VerifyIpAndGetBitcount("248.0.0.0", &bits)); in TEST() [all …]
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A D | pixfmt-srggb10-ipu3.rst | 20 sRGB / Bayer formats with 10 bits per sample with every 25 pixels packed 21 to 32 bytes leaving 6 most significant bits padding in the last byte. 40 - G\ :sub:`0001low`\ (bits 7--2) 42 B\ :sub:`0000high`\ (bits 1--0) 43 - B\ :sub:`0002low`\ (bits 7--4) 45 G\ :sub:`0001high`\ (bits 3--0) 46 - G\ :sub:`0003low`\ (bits 7--6) 48 B\ :sub:`0002high`\ (bits 5--0) 52 - G\ :sub:`0005low`\ (bits 7--2) 54 B\ :sub:`0004high`\ (bits 1--0) [all …]
|
H A D | pixfmt-srggb14p.rst | 24 bits per colour. Every four consecutive samples are packed into seven 25 bytes. Each of the first four bytes contain the eight high order bits 27 significants bits of each pixel, in the same order. 63 - G\ :sub:`01low bits 1--0`\ (bits 7--6) 65 B\ :sub:`00low bits 5--0`\ (bits 5--0) 67 - B\ :sub:`02low bits 3--0`\ (bits 7--4) 69 G\ :sub:`01low bits 5--2`\ (bits 3--0) 71 - G\ :sub:`03low bits 5--0`\ (bits 7--2) 73 B\ :sub:`02low bits 5--4`\ (bits 1--0) 87 - R\ :sub:`11low bits 1--0`\ (bits 7--6) [all …]
|
/openbmc/linux/include/sound/ |
H A D | cs8403.h | 24 SND_CS8403_DECL void SND_CS8403_DECODE(struct snd_aes_iec958 *diga, unsigned char bits) in SND_CS8403_DECODE() argument 26 if (bits & 0x01) { /* consumer */ in SND_CS8403_DECODE() 27 if (!(bits & 0x02)) in SND_CS8403_DECODE() 29 if (!(bits & 0x08)) in SND_CS8403_DECODE() 31 switch (bits & 0x10) { in SND_CS8403_DECODE() 35 if (!(bits & 0x80)) in SND_CS8403_DECODE() 37 switch (bits & 0x60) { in SND_CS8403_DECODE() 43 switch (bits & 0x06) { in SND_CS8403_DECODE() 50 switch (bits & 0x18) { in SND_CS8403_DECODE() 56 switch (bits & 0x60) { in SND_CS8403_DECODE() [all …]
|
/openbmc/u-boot/board/micronas/vct/ |
H A D | dcgu.c | 40 en1.bits.en_clkmsmc = enable; in dcgu_set_clk_switch() 43 en1.bits.en_clkssi_s = enable; in dcgu_set_clk_switch() 46 en1.bits.en_clkssi_m = enable; in dcgu_set_clk_switch() 49 en1.bits.en_clksmc = enable; in dcgu_set_clk_switch() 52 en1.bits.en_clkebi = enable; in dcgu_set_clk_switch() 55 en1.bits.en_usbpll = enable; in dcgu_set_clk_switch() 58 en1.bits.en_clkusb60 = enable; in dcgu_set_clk_switch() 61 en1.bits.en_clkusb24 = enable; in dcgu_set_clk_switch() 64 en1.bits.en_clkuart2 = enable; in dcgu_set_clk_switch() 67 en1.bits.en_clkuart1 = enable; in dcgu_set_clk_switch() [all …]
|
/openbmc/linux/arch/arm/boot/dts/nvidia/ |
H A D | tegra124-peripherals-opp.dtsi | 9 opp-hz = /bits/ 64 <12750000>; 15 opp-hz = /bits/ 64 <12750000>; 21 opp-hz = /bits/ 64 <12750000>; 27 opp-hz = /bits/ 64 <12750000>; 33 opp-hz = /bits/ 64 <20400000>; 39 opp-hz = /bits/ 64 <20400000>; 45 opp-hz = /bits/ 64 <20400000>; 51 opp-hz = /bits/ 64 <20400000>; 57 opp-hz = /bits/ 64 <40800000>; 63 opp-hz = /bits/ 64 <40800000>; [all …]
|
H A D | tegra30-peripherals-opp.dtsi | 59 opp-hz = /bits/ 64 <12750000>; 66 opp-hz = /bits/ 64 <12750000>; 73 opp-hz = /bits/ 64 <12750000>; 80 opp-hz = /bits/ 64 <25500000>; 87 opp-hz = /bits/ 64 <25500000>; 94 opp-hz = /bits/ 64 <25500000>; 101 opp-hz = /bits/ 64 <27000000>; 108 opp-hz = /bits/ 64 <27000000>; 115 opp-hz = /bits/ 64 <27000000>; 122 opp-hz = /bits/ 64 <51000000>; [all …]
|
H A D | tegra20-peripherals-opp.dtsi | 49 opp-hz = /bits/ 64 <36000000>; 56 opp-hz = /bits/ 64 <47500000>; 63 opp-hz = /bits/ 64 <50000000>; 70 opp-hz = /bits/ 64 <54000000>; 77 opp-hz = /bits/ 64 <57000000>; 84 opp-hz = /bits/ 64 <100000000>; 91 opp-hz = /bits/ 64 <108000000>; 98 opp-hz = /bits/ 64 <126666000>; 105 opp-hz = /bits/ 64 <150000000>; 112 opp-hz = /bits/ 64 <190000000>; [all …]
|
H A D | tegra30-cpu-opp.dtsi | 11 opp-hz = /bits/ 64 <51000000>; 17 opp-hz = /bits/ 64 <51000000>; 23 opp-hz = /bits/ 64 <51000000>; 29 opp-hz = /bits/ 64 <102000000>; 35 opp-hz = /bits/ 64 <102000000>; 41 opp-hz = /bits/ 64 <102000000>; 47 opp-hz = /bits/ 64 <204000000>; 54 opp-hz = /bits/ 64 <204000000>; 61 opp-hz = /bits/ 64 <204000000>; 68 opp-hz = /bits/ 64 <312000000>; [all …]
|
H A D | tegra20-cpu-opp.dtsi | 11 opp-hz = /bits/ 64 <216000000>; 18 opp-hz = /bits/ 64 <216000000>; 25 opp-hz = /bits/ 64 <312000000>; 31 opp-hz = /bits/ 64 <312000000>; 37 opp-hz = /bits/ 64 <456000000>; 44 opp-hz = /bits/ 64 <456000000>; 50 opp-hz = /bits/ 64 <456000000>; 56 opp-hz = /bits/ 64 <608000000>; 62 opp-hz = /bits/ 64 <608000000>; 68 opp-hz = /bits/ 64 <608000000>; [all …]
|
/openbmc/linux/drivers/net/wireless/zydas/zd1211rw/ |
H A D | zd_rf_rf2959.c | 32 static int bits(u32 rw, int from, int to) 41 return bits(rw, bit, bit); 46 int reg = bits(rw, 18, 22); 47 int rw_flag = bits(rw, 23, 23); 54 bits(rw, 14, 15), bit(rw, 3), bit(rw, 2), bit(rw, 1), 63 bits(rw, 7, 9), bits(rw, 4, 6), bits(rw, 0, 3)); 67 bits(rw, 6, 17), bits(rw, 0, 5)); 70 PDEBUG("reg3 IFPLL3 num %d", bits(rw, 0, 17)); 74 bits(rw, 8, 16), bits(rw, 4, 7), bits(rw, 0, 3)); 82 bits(rw, 7, 9), bits(rw, 4, 6), bits(rw, 0,3)); [all …]
|
/openbmc/linux/arch/arm64/boot/dts/nvidia/ |
H A D | tegra132-peripherals-opp.dtsi | 10 opp-hz = /bits/ 64 <12750000>; 16 opp-hz = /bits/ 64 <12750000>; 22 opp-hz = /bits/ 64 <12750000>; 28 opp-hz = /bits/ 64 <12750000>; 34 opp-hz = /bits/ 64 <20400000>; 40 opp-hz = /bits/ 64 <20400000>; 46 opp-hz = /bits/ 64 <20400000>; 52 opp-hz = /bits/ 64 <20400000>; 58 opp-hz = /bits/ 64 <40800000>; 64 opp-hz = /bits/ 64 <40800000>; [all …]
|
/openbmc/linux/lib/ |
H A D | base64.c | 35 int bits = 0; in base64_encode() local 41 bits += 8; in base64_encode() 43 bits -= 6; in base64_encode() 44 *cp++ = base64_table[(ac >> bits) & 0x3f]; in base64_encode() 45 } while (bits >= 6); in base64_encode() 47 if (bits) { in base64_encode() 48 *cp++ = base64_table[(ac << (6 - bits)) & 0x3f]; in base64_encode() 49 bits -= 6; in base64_encode() 51 while (bits < 0) { in base64_encode() 53 bits += 2; in base64_encode() [all …]
|
/openbmc/linux/arch/arm64/boot/dts/rockchip/ |
H A D | rk3399-op1-opp.dtsi | 12 opp-hz = /bits/ 64 <408000000>; 17 opp-hz = /bits/ 64 <600000000>; 21 opp-hz = /bits/ 64 <816000000>; 25 opp-hz = /bits/ 64 <1008000000>; 29 opp-hz = /bits/ 64 <1200000000>; 33 opp-hz = /bits/ 64 <1416000000>; 37 opp-hz = /bits/ 64 <1512000000>; 47 opp-hz = /bits/ 64 <408000000>; 52 opp-hz = /bits/ 64 <600000000>; 56 opp-hz = /bits/ 64 <816000000>; [all …]
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/upm/upm/ |
H A D | 0001-Use-stdint-types.patch | 26 - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(20), nullptr, 0); 27 + uint8_t bits = (uint8_t)std::stoul(tok.substr(20), nullptr, 0); 28 setInterruptEnable0(bits); 31 - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(20), nullptr, 0); 32 + uint8_t bits = (uint8_t)std::stoul(tok.substr(20), nullptr, 0); 33 setInterruptEnable1(bits); 36 - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(20), nullptr, 0); 37 + uint8_t bits = (uint8_t)std::stoul(tok.substr(20), nullptr, 0); 38 setInterruptEnable2(bits); 41 - u_int8_t bits = (u_int8_t)std::stoul(tok.substr(17), nullptr, 0); [all …]
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | sa8540p.dtsi | 18 opp-hz = /bits/ 64 <300000000>; 22 opp-hz = /bits/ 64 <403200000>; 26 opp-hz = /bits/ 64 <499200000>; 30 opp-hz = /bits/ 64 <595200000>; 34 opp-hz = /bits/ 64 <710400000>; 38 opp-hz = /bits/ 64 <806400000>; 42 opp-hz = /bits/ 64 <902400000>; 46 opp-hz = /bits/ 64 <1017600000>; 50 opp-hz = /bits/ 64 <1113600000>; 54 opp-hz = /bits/ 64 <1209600000>; [all …]
|
H A D | msm8996pro.dtsi | 24 opp-hz = /bits/ 64 <307200000>; 30 opp-hz = /bits/ 64 <384000000>; 36 opp-hz = /bits/ 64 <460800000>; 42 opp-hz = /bits/ 64 <537600000>; 48 opp-hz = /bits/ 64 <614400000>; 54 opp-hz = /bits/ 64 <691200000>; 60 opp-hz = /bits/ 64 <768000000>; 66 opp-hz = /bits/ 64 <844800000>; 72 opp-hz = /bits/ 64 <902400000>; 78 opp-hz = /bits/ 64 <979200000>; [all …]
|
/openbmc/qemu/scripts/kvm/ |
H A D | vmxcap | 44 def __init__(self, name, bits, cap_msr, true_cap_msr = None): argument 46 self.bits = bits 59 for bit in sorted(self.bits.keys()): 74 print(' %-40s %s' % (self.bits[bit], s)) 84 def __init__(self, name, bits, msr): argument 86 self.bits = bits 97 for bits in sorted(self.bits.keys(), key = first_bit): 98 if type(bits) is tuple: 99 lo, hi = bits 102 lo = hi = bits [all …]
|
/openbmc/linux/drivers/video/fbdev/core/ |
H A D | syscopyarea.c | 29 const unsigned long *src, unsigned src_idx, int bits, unsigned n) in bitcpy() argument 36 last = ~(FB_SHIFT_HIGH(p, ~0UL, (dst_idx+n) % bits)); in bitcpy() 40 if (dst_idx+n <= bits) { in bitcpy() 52 n -= bits - dst_idx; in bitcpy() 56 n /= bits; in bitcpy() 80 right = shift & (bits - 1); in bitcpy() 81 left = -shift & (bits - 1); in bitcpy() 83 if (dst_idx+n <= bits) { in bitcpy() 90 } else if (src_idx+n <= bits) { in bitcpy() 114 n -= bits - dst_idx; in bitcpy() [all …]
|
/openbmc/linux/lib/zlib_inflate/ |
H A D | inffast.c | 83 unsigned bits; /* local strm->bits */ in inflate_fast() local 110 bits = state->bits; in inflate_fast() 119 if (bits < 15) { in inflate_fast() 120 hold += (unsigned long)(*in++) << bits; in inflate_fast() 121 bits += 8; in inflate_fast() 122 hold += (unsigned long)(*in++) << bits; in inflate_fast() 123 bits += 8; in inflate_fast() 127 op = (unsigned)(this.bits); in inflate_fast() 129 bits -= op; in inflate_fast() 138 if (bits < op) { in inflate_fast() [all …]
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | rk3399-op1-opp.dtsi | 12 opp-hz = /bits/ 64 <408000000>; 17 opp-hz = /bits/ 64 <600000000>; 21 opp-hz = /bits/ 64 <816000000>; 25 opp-hz = /bits/ 64 <1008000000>; 29 opp-hz = /bits/ 64 <1200000000>; 33 opp-hz = /bits/ 64 <1416000000>; 37 opp-hz = /bits/ 64 <1512000000>; 47 opp-hz = /bits/ 64 <408000000>; 52 opp-hz = /bits/ 64 <600000000>; 56 opp-hz = /bits/ 64 <816000000>; [all …]
|
/openbmc/linux/include/linux/ |
H A D | nodemask.h | 99 typedef struct { DECLARE_BITMAP(bits, MAX_NUMNODES); } nodemask_t; 116 return m ? m->bits : NULL; in __nodemask_pr_bits() 131 set_bit(node, dstp->bits); in __node_set() 137 clear_bit(node, dstp->bits); in __node_clear() 143 bitmap_fill(dstp->bits, nbits); in __nodes_setall() 149 bitmap_zero(dstp->bits, nbits); in __nodes_clear() 153 #define node_isset(node, nodemask) test_bit((node), (nodemask).bits) 159 return test_and_set_bit(node, addr->bits); in __node_test_and_set() 167 bitmap_and(dstp->bits, src1p->bits, src2p->bits, nbits); in __nodes_and() 175 bitmap_or(dstp->bits, src1p->bits, src2p->bits, nbits); in __nodes_or() [all …]
|
/openbmc/linux/arch/arm/boot/dts/ti/omap/ |
H A D | omap3-echo.dts | 148 clock-mode = /bits/ 8 <0>; /* LP55XX_CLOCK_AUTO */ 158 led-cur = /bits/ 8 <12>; 159 max-cur = /bits/ 8 <15>; 165 led-cur = /bits/ 8 <12>; 166 max-cur = /bits/ 8 <15>; 172 led-cur = /bits/ 8 <12>; 173 max-cur = /bits/ 8 <15>; 185 led-cur = /bits/ 8 <12>; 186 max-cur = /bits/ 8 <15>; 192 led-cur = /bits/ 8 <12>; [all …]
|
/openbmc/linux/drivers/staging/media/atomisp/pci/runtime/isys/src/ |
H A D | rx.c | 26 hrt_data bits = receiver_port_reg_load(RX0_ID, in ia_css_isys_rx_enable_all_interrupts() local 30 bits |= (1U << _HRT_CSS_RECEIVER_IRQ_OVERRUN_BIT) | in ia_css_isys_rx_enable_all_interrupts() 50 _HRT_CSS_RECEIVER_IRQ_ENABLE_REG_IDX, bits); in ia_css_isys_rx_enable_all_interrupts() 104 unsigned int bits; in ia_css_isys_rx_get_irq_info() local 107 bits = ia_css_isys_rx_get_interrupt_reg(port); in ia_css_isys_rx_get_irq_info() 108 *irq_infos = ia_css_isys_rx_translate_irq_infos(bits); in ia_css_isys_rx_get_irq_info() 112 unsigned int ia_css_isys_rx_translate_irq_infos(unsigned int bits) in ia_css_isys_rx_translate_irq_infos() argument 116 if (bits & (1U << _HRT_CSS_RECEIVER_IRQ_OVERRUN_BIT)) in ia_css_isys_rx_translate_irq_infos() 118 if (bits & (1U << _HRT_CSS_RECEIVER_IRQ_INIT_TIMEOUT_BIT)) in ia_css_isys_rx_translate_irq_infos() 120 if (bits & (1U << _HRT_CSS_RECEIVER_IRQ_SLEEP_MODE_ENTRY_BIT)) in ia_css_isys_rx_translate_irq_infos() [all …]
|
/openbmc/linux/drivers/comedi/drivers/ |
H A D | c6xdigio.c | 70 unsigned int *bits, in c6xdigio_get_encoder_bits() argument 80 *bits = val; in c6xdigio_get_encoder_bits() 89 unsigned int bits; in c6xdigio_pwm_write() local 96 bits = (val >> 0) & 0x03; in c6xdigio_pwm_write() 97 c6xdigio_write_data(dev, cmd | bits | (0 << 2), 0x00); in c6xdigio_pwm_write() 98 bits = (val >> 2) & 0x03; in c6xdigio_pwm_write() 99 c6xdigio_write_data(dev, cmd | bits | (1 << 2), 0x80); in c6xdigio_pwm_write() 100 bits = (val >> 4) & 0x03; in c6xdigio_pwm_write() 101 c6xdigio_write_data(dev, cmd | bits | (0 << 2), 0x00); in c6xdigio_pwm_write() 102 bits = (val >> 6) & 0x03; in c6xdigio_pwm_write() [all …]
|