Home
last modified time | relevance | path

Searched refs:bitpos (Results 1 – 23 of 23) sorted by relevance

/linux-6.6.21/scripts/gdb/linux/
Ddmesg.py41 off = printk_ringbuffer_type.get_type()['desc_ring'].bitpos // 8
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
59 off = printk_ringbuffer_type.get_type()['text_data_ring'].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
73 begin_off = off + (prb_data_blk_lpos_type.get_type()['begin'].bitpos // 8)
[all …]
Dutils.py154 atomic_long_counter_offset = atomic_long_type.get_type()['counter'].bitpos
/linux-6.6.21/drivers/misc/mchp_pci1xxxx/
Dmchp_pci1xxxx_gpio.c64 unsigned int bitpos, bool set) in pci1xxx_assign_bit() argument
70 data |= BIT(bitpos); in pci1xxx_assign_bit()
72 data &= ~BIT(bitpos); in pci1xxx_assign_bit()
202 unsigned int bitpos = gpio % 32; in pci1xxxx_gpio_set_type() local
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()
218 pci1xxx_assign_bit(priv->reg_base, MODE_OFFSET(gpio), bitpos, in pci1xxxx_gpio_set_type()
223 bitpos, true); in pci1xxxx_gpio_set_type()
[all …]
/linux-6.6.21/drivers/gpio/
Dgpio-siox.c49 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()
/linux-6.6.21/drivers/mfd/
Drz-mtu3.c217 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
256 bitpos = rz_mtu3_get_tstr_bit_pos(ch); in rz_mtu3_start_stop_ch()
[all …]
/linux-6.6.21/drivers/media/pci/mantis/
Dmantis_ioc.c67 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()
Dmantis_ioc.h35 extern void mantis_gpio_set_bits(struct mantis_pci *mantis, u32 bitpos, u8 value);
/linux-6.6.21/arch/riscv/kvm/
Daia.c246 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()
/linux-6.6.21/drivers/crypto/intel/qat/qat_common/
Dicp_qat_fw.h8 #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))
/linux-6.6.21/drivers/clk/renesas/
Drzg2l-cpg.h54 #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))
/linux-6.6.21/arch/x86/boot/compressed/
Dsev.c446 int bitpos; in sev_enable() local
477 bitpos = sev_check_cpu_support(); in sev_enable()
478 if (bitpos < 0) { in sev_enable()
510 sme_me_mask = BIT_ULL(bitpos); in sev_enable()
/linux-6.6.21/include/linux/mtd/
Dmap.h353 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()
/linux-6.6.21/arch/x86/include/asm/
Dbitops.h403 int bitpos = -1; in fls64() local
410 : "+r" (bitpos) in fls64()
412 return bitpos + 1; in fls64()
/linux-6.6.21/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common-v2.c133 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()
Dpinctrl-mtk-common-v2.h126 u8 bitpos; member
/linux-6.6.21/drivers/mtd/nand/raw/
Ddiskonchip.c184 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()
/linux-6.6.21/drivers/edac/
Dsynopsys_edac.c279 u32 bitpos; member
373 p->ceinfo.bitpos = (regval & CE_LOG_BITPOS_MASK) >> CE_LOG_BITPOS_SHIFT; in zynq_get_error_info()
379 edac_dbg(3, "CE bit position: %d data: %d\n", p->ceinfo.bitpos, in zynq_get_error_info()
427 p->ceinfo.bitpos = (regval & ECC_STAT_BITNUM_MASK); in zynqmp_get_error_info()
482 pinf->bitpos, pinf->data); in handle_error()
487 pinf->bitpos, pinf->data); in handle_error()
/linux-6.6.21/drivers/i3c/
Dmaster.c348 int bitpos = addr * 2; in i3c_bus_get_addr_slot_status() local
353 status = bus->addrslots[bitpos / BITS_PER_LONG]; in i3c_bus_get_addr_slot_status()
354 status >>= bitpos % BITS_PER_LONG; in i3c_bus_get_addr_slot_status()
362 int bitpos = addr * 2; in i3c_bus_set_addr_slot_status() local
368 ptr = bus->addrslots + (bitpos / BITS_PER_LONG); in i3c_bus_set_addr_slot_status()
370 (bitpos % BITS_PER_LONG)); in i3c_bus_set_addr_slot_status()
371 *ptr |= (unsigned long)status << (bitpos % BITS_PER_LONG); in i3c_bus_set_addr_slot_status()
/linux-6.6.21/drivers/net/wireless/realtek/rtw88/
Dcoex.h386 void rtw_coex_write_scbd(struct rtw_dev *rtwdev, u16 bitpos, bool set);
Dcoex.c366 void rtw_coex_write_scbd(struct rtw_dev *rtwdev, u16 bitpos, bool set) in rtw_coex_write_scbd() argument
381 if (!chip->new_scbd10_def && (bitpos & COEX_SCBD_FIX2M)) { in rtw_coex_write_scbd()
388 val |= bitpos; in rtw_coex_write_scbd()
390 val &= ~bitpos; in rtw_coex_write_scbd()
/linux-6.6.21/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Ddma.c457 u8 bitpos = 0; in dma_align_sizetobits() local
459 bitpos++; in dma_align_sizetobits()
460 return bitpos; in dma_align_sizetobits()
/linux-6.6.21/drivers/pci/controller/
Dpcie-microchip-host.c446 u32 bitpos = data->hwirq; in mc_msi_bottom_irq_ack() local
448 writel_relaxed(BIT(bitpos), bridge_base_addr + ISTATUS_MSI); in mc_msi_bottom_irq_ack()
/linux-6.6.21/crypto/
Dtestmgr.c921 size_t bitpos; in flip_random_bit() local
923 bitpos = prandom_u32_below(rng, size * 8); in flip_random_bit()
924 buf[bitpos / 8] ^= 1 << (bitpos % 8); in flip_random_bit()