/openbmc/linux/scripts/gdb/linux/ |
H A D | dmesg.py | 47 off = prb_desc_ring_type.get_type()['count_bits'].bitpos // 8 50 off = prb_desc_ring_type.get_type()['descs'].bitpos // 8 55 off = prb_desc_ring_type.get_type()['infos'].bitpos // 8 65 off = prb_data_ring_type.get_type()['size_bits'].bitpos // 8 67 off = prb_data_ring_type.get_type()['data'].bitpos // 8 70 sv_off = prb_desc_type.get_type()['state_var'].bitpos // 8 72 off = prb_desc_type.get_type()['text_blk_lpos'].bitpos // 8 76 ts_off = printk_info_type.get_type()['ts_nsec'].bitpos // 8 77 len_off = printk_info_type.get_type()['text_len'].bitpos // 8 88 off = prb_desc_ring_type.get_type()['tail_id'].bitpos // 8 [all …]
|
H A D | utils.py | 154 atomic_long_counter_offset = atomic_long_type.get_type()['counter'].bitpos
|
/openbmc/openbmc/meta-security/dynamic-layers/meta-perl/recipes-security/bastille/files/ |
H A D | AccountPermission.pm | 804 my $bitpos; 807 $bitpos = 11; 810 $bitpos = 10; 813 $bitpos = 9; 821 $bitpos =7; 824 $bitpos =6; 832 $bitpos =5; 835 $bitpos =4; 838 $bitpos =3; 846 $bitpos =2; [all …]
|
/openbmc/linux/drivers/misc/mchp_pci1xxxx/ |
H A D | mchp_pci1xxxx_gpio.c | 70 data |= BIT(bitpos); in pci1xxx_assign_bit() 72 data &= ~BIT(bitpos); in pci1xxx_assign_bit() 206 bitpos, false); in pci1xxxx_gpio_set_type() 208 bitpos, false); in pci1xxxx_gpio_set_type() 212 bitpos, true); in pci1xxxx_gpio_set_type() 217 bitpos, false); in pci1xxxx_gpio_set_type() 223 bitpos, true); in pci1xxxx_gpio_set_type() 228 bitpos, true); in pci1xxxx_gpio_set_type() 230 bitpos, false); in pci1xxxx_gpio_set_type() 238 bitpos, false); in pci1xxxx_gpio_set_type() [all …]
|
/openbmc/linux/drivers/gpio/ |
H A D | gpio-siox.c | 49 unsigned int bitpos = 11 - offset; in gpio_siox_get_data() local 50 unsigned int gpiolevel = buf[bitpos / 8] & (1 << bitpos % 8); in gpio_siox_get_data() 52 ddata->getdata[bitpos / 8] & (1 << (bitpos % 8)); in gpio_siox_get_data() 149 unsigned int bitpos = 19 - offset; in gpio_siox_get() local 151 ret = ddata->setdata[0] & (1 << bitpos); in gpio_siox_get() 153 unsigned int bitpos = 11 - offset; in gpio_siox_get() local 155 ret = ddata->getdata[bitpos / 8] & (1 << (bitpos % 8)); in gpio_siox_get()
|
/openbmc/linux/drivers/mfd/ |
H A D | rz-mtu3.c | 217 u8 bitpos; in rz_mtu3_get_tstr_bit_pos() local 225 bitpos = ch->channel_number; in rz_mtu3_get_tstr_bit_pos() 228 bitpos = 6; in rz_mtu3_get_tstr_bit_pos() 231 bitpos = 7; in rz_mtu3_get_tstr_bit_pos() 234 bitpos = 2; in rz_mtu3_get_tstr_bit_pos() 237 bitpos = 3; in rz_mtu3_get_tstr_bit_pos() 240 bitpos = 0; in rz_mtu3_get_tstr_bit_pos() 244 return bitpos; in rz_mtu3_get_tstr_bit_pos() 253 u8 bitpos; in rz_mtu3_start_stop_ch() local 274 u8 bitpos; in rz_mtu3_is_enabled() local [all …]
|
/openbmc/qemu/hw/display/ |
H A D | cirrus_vga_rop2.h | 191 int x, y, bitpos, pattern_y; in glue() local 213 bitpos = 7 - srcskipleft; in glue() 216 if ((bits >> bitpos) & 1) { in glue() 220 bitpos = (bitpos - 1) & 7; in glue() 236 int x, y, bitpos, pattern_y; in glue() local 248 bitpos = 7 - srcskipleft; in glue() 251 col = colors[(bits >> bitpos) & 1]; in glue() 254 bitpos = (bitpos - 1) & 7; in glue()
|
/openbmc/linux/drivers/media/pci/mantis/ |
H A D | mantis_ioc.c | 67 void mantis_gpio_set_bits(struct mantis_pci *mantis, u32 bitpos, u8 value) in mantis_gpio_set_bits() argument 71 dprintk(MANTIS_DEBUG, 1, "Set Bit <%d> to <%d>", bitpos, value); in mantis_gpio_set_bits() 74 mantis->gpio_status = cur | (1 << bitpos); in mantis_gpio_set_bits() 76 mantis->gpio_status = cur & (~(1 << bitpos)); in mantis_gpio_set_bits()
|
H A D | mantis_ioc.h | 35 extern void mantis_gpio_set_bits(struct mantis_pci *mantis, u32 bitpos, u8 value);
|
/openbmc/u-boot/drivers/rtc/ |
H A D | ds1306.c | 216 unsigned char bitpos; /* bit position to receive */ in soft_spi_send() local 220 bitpos = 0x80; in soft_spi_send() 226 if (n & bitpos) in soft_spi_send() 235 bitpos >>= 1; /* Shift for next bit position */ in soft_spi_send() 247 unsigned char bitpos; /* bit position to receive */ in soft_spi_read() local 251 bitpos = 0x80; in soft_spi_read() 258 spi_byte |= bitpos; /* Set data accordingly */ in soft_spi_read() 261 bitpos >>= 1; /* Shift for next bit position */ in soft_spi_read()
|
/openbmc/linux/arch/riscv/kvm/ |
H A D | aia.c | 246 int bitpos = aia_irq2bitpos[irq]; in aia_get_iprio8() local 248 if (bitpos < 0) in aia_get_iprio8() 251 switch (bitpos / BITS_PER_LONG) { in aia_get_iprio8() 273 return (hviprio >> (bitpos % BITS_PER_LONG)) & TOPI_IPRIO_MASK; in aia_get_iprio8() 279 int bitpos = aia_irq2bitpos[irq]; in aia_set_iprio8() local 281 if (bitpos < 0) in aia_set_iprio8() 284 switch (bitpos / BITS_PER_LONG) { in aia_set_iprio8() 306 hviprio &= ~(TOPI_IPRIO_MASK << (bitpos % BITS_PER_LONG)); in aia_set_iprio8() 307 hviprio |= (unsigned long)prio << (bitpos % BITS_PER_LONG); in aia_set_iprio8() 309 switch (bitpos / BITS_PER_LONG) { in aia_set_iprio8()
|
/openbmc/linux/drivers/crypto/intel/qat/qat_common/ |
H A D | icp_qat_fw.h | 8 #define QAT_FIELD_SET(flags, val, bitpos, mask) \ argument 9 { (flags) = (((flags) & (~((mask) << (bitpos)))) | \ 10 (((val) & (mask)) << (bitpos))) ; } 12 #define QAT_FIELD_GET(flags, bitpos, mask) \ argument 13 (((flags) >> (bitpos)) & (mask))
|
/openbmc/u-boot/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common.c | 108 pfd->bitpos = bits % c->sz_reg; in mtk_hw_pin_field_lookup() 115 pfd->next = pfd->bitpos + c->x_bits > c->sz_reg ? c->x_addrs : 0; in mtk_hw_pin_field_lookup() 139 *l = 32 - pf->bitpos; in mtk_hw_bits_part() 150 mtk_rmw(dev, pf->offset, pf->mask << pf->bitpos, in mtk_hw_write_cross_field() 151 (value & pf->mask) << pf->bitpos); in mtk_hw_write_cross_field() 164 l = (mtk_r32(dev, pf->offset) >> pf->bitpos) & (BIT(nbits_l) - 1); in mtk_hw_read_cross_field() 181 mtk_rmw(dev, pf.offset, pf.mask << pf.bitpos, in mtk_hw_set_value() 182 (value & pf.mask) << pf.bitpos); in mtk_hw_set_value() 200 *value = (mtk_r32(dev, pf.offset) >> pf.bitpos) & pf.mask; in mtk_hw_get_value()
|
H A D | pinctrl-mtk-common.h | 73 u8 bitpos; member
|
/openbmc/qemu/hw/arm/ |
H A D | armv7m.c | 43 int bitpos, bit; in bitband_read() local 55 bitpos = (offset >> 2) & ((size * 8) - 1); in bitband_read() 57 bit = (buf[bitpos >> 3] >> (bitpos & 7)) & 1; in bitband_read() 68 int bitpos, bit; in bitband_write() local 80 bitpos = (offset >> 2) & ((size * 8) - 1); in bitband_write() 82 bit = 1 << (bitpos & 7); in bitband_write() 84 buf[bitpos >> 3] |= bit; in bitband_write() 86 buf[bitpos >> 3] &= ~bit; in bitband_write()
|
/openbmc/linux/drivers/clk/renesas/ |
H A D | rzg2l-cpg.h | 54 #define DDIV_PACK(offset, bitpos, size) \ argument 55 (((offset) << 20) | ((bitpos) << 12) | ((size) << 8)) 64 #define SEL_PLL_PACK(offset, bitpos, size) \ argument 65 (((offset) << 20) | ((bitpos) << 12) | ((size) << 8))
|
/openbmc/linux/arch/x86/boot/compressed/ |
H A D | sev.c | 449 int bitpos; in sev_enable() local 480 bitpos = sev_check_cpu_support(); in sev_enable() 481 if (bitpos < 0) { in sev_enable() 513 sme_me_mask = BIT_ULL(bitpos); in sev_enable()
|
/openbmc/linux/include/linux/mtd/ |
H A D | map.h | 353 int bitpos; in map_word_load_partial() local 356 bitpos = i * 8; in map_word_load_partial() 358 bitpos = (map_bankwidth(map) - 1 - i) * 8; in map_word_load_partial() 360 orig.x[0] &= ~(0xff << bitpos); in map_word_load_partial() 361 orig.x[0] |= (unsigned long)buf[i-start] << bitpos; in map_word_load_partial()
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | bitops.h | 403 int bitpos = -1; in fls64() local 410 : "+r" (bitpos) in fls64() 412 return bitpos + 1; in fls64()
|
/openbmc/linux/drivers/pinctrl/mediatek/ |
H A D | pinctrl-mtk-common-v2.c | 133 pfd->bitpos = bits % c->sz_reg; in mtk_hw_pin_field_lookup() 140 pfd->next = pfd->bitpos + c->x_bits > c->sz_reg ? c->x_addrs : 0; in mtk_hw_pin_field_lookup() 159 *l = 32 - pf->bitpos; in mtk_hw_bits_part() 170 mtk_rmw(hw, pf->index, pf->offset, pf->mask << pf->bitpos, in mtk_hw_write_cross_field() 171 (value & pf->mask) << pf->bitpos); in mtk_hw_write_cross_field() 185 >> pf->bitpos) & (BIT(nbits_l) - 1); in mtk_hw_read_cross_field() 206 mtk_rmw(hw, pf.index, pf.offset, pf.mask << pf.bitpos, in mtk_hw_set_value() 207 (value & pf.mask) << pf.bitpos); in mtk_hw_set_value() 227 >> pf.bitpos) & pf.mask; in mtk_hw_get_value()
|
H A D | pinctrl-mtk-common-v2.h | 126 u8 bitpos; member
|
/openbmc/linux/drivers/mtd/nand/raw/ |
H A D | diskonchip.c | 184 int index, bitpos, pos = 1015 - errpos[i]; in doc_ecc_decode() local 194 bitpos = pos & 7; in doc_ecc_decode() 196 val = (uint8_t) (errval[i] >> (2 + bitpos)); in doc_ecc_decode() 202 bitpos = (bitpos + 10) & 7; in doc_ecc_decode() 203 if (bitpos == 0) in doc_ecc_decode() 204 bitpos = 8; in doc_ecc_decode() 206 val = (uint8_t) (errval[i] << (8 - bitpos)); in doc_ecc_decode()
|
/openbmc/linux/drivers/edac/ |
H A D | synopsys_edac.c | 281 u32 bitpos; member 381 p->ceinfo.bitpos = (regval & CE_LOG_BITPOS_MASK) >> CE_LOG_BITPOS_SHIFT; in zynq_get_error_info() 387 edac_dbg(3, "CE bit position: %d data: %d\n", p->ceinfo.bitpos, in zynq_get_error_info() 455 p->ceinfo.bitpos = (regval & ECC_STAT_BITNUM_MASK); in zynqmp_get_error_info() 514 pinf->bitpos, pinf->data); in handle_error() 519 pinf->bitpos, pinf->data); in handle_error()
|
/openbmc/qemu/target/hexagon/ |
H A D | op_helper.c | 396 size4u_t bitpos; in HELPER() local 404 bitpos = fEXTRACTU_RANGE(fGETWORD(0, RttV), 4, 0); in HELPER() 409 range <<= bitpos; in HELPER() 410 offset <<= bitpos; in HELPER() 439 size4u_t bitpos; in HELPER() local 447 bitpos = fEXTRACTU_RANGE(fGETWORD(0, RttV), 4, 0); in HELPER() 452 range <<= bitpos; in HELPER() 453 offset <<= bitpos; in HELPER()
|
/openbmc/linux/drivers/i3c/ |
H A D | master.c | 349 int bitpos = addr * 2; in i3c_bus_get_addr_slot_status() local 354 status = bus->addrslots[bitpos / BITS_PER_LONG]; in i3c_bus_get_addr_slot_status() 355 status >>= bitpos % BITS_PER_LONG; in i3c_bus_get_addr_slot_status() 363 int bitpos = addr * 2; in i3c_bus_set_addr_slot_status() local 369 ptr = bus->addrslots + (bitpos / BITS_PER_LONG); in i3c_bus_set_addr_slot_status() 371 (bitpos % BITS_PER_LONG)); in i3c_bus_set_addr_slot_status() 372 *ptr |= (unsigned long)status << (bitpos % BITS_PER_LONG); in i3c_bus_set_addr_slot_status()
|