Home
last modified time | relevance | path

Searched full:bit_offset (Results 1 – 25 of 148) sorted by relevance

123456

/OK3568_Linux_fs/kernel/drivers/gpio/
H A Dgpio-xgene.c41 u32 bit_offset; in xgene_gpio_get() local
44 bit_offset = GPIO_BIT_OFFSET(offset); in xgene_gpio_get()
45 return !!(ioread32(chip->base + bank_offset) & BIT(bit_offset)); in xgene_gpio_get()
52 u32 setval, bit_offset; in __xgene_gpio_set() local
55 bit_offset = GPIO_BIT_OFFSET(offset) + XGENE_GPIOS_PER_BANK; in __xgene_gpio_set()
59 setval |= BIT(bit_offset); in __xgene_gpio_set()
61 setval &= ~BIT(bit_offset); in __xgene_gpio_set()
78 unsigned long bank_offset, bit_offset; in xgene_gpio_get_direction() local
81 bit_offset = GPIO_BIT_OFFSET(offset); in xgene_gpio_get_direction()
83 if (ioread32(chip->base + bank_offset) & BIT(bit_offset)) in xgene_gpio_get_direction()
[all …]
/OK3568_Linux_fs/kernel/tools/bpf/bpftool/
H A Dbtf_dumper.c25 __u8 bit_offset, const void *data);
126 __u8 bit_offset, const void *data) in btf_dumper_modifier() argument
134 return btf_dumper_do_type(d, actual_type_id, bit_offset, data); in btf_dumper_modifier()
315 static void btf_dumper_bitfield(__u32 nr_bits, __u8 bit_offset, in btf_dumper_bitfield() argument
324 bits_to_copy = bit_offset + nr_bits; in btf_dumper_bitfield()
329 left_shift_bits = bit_offset; in btf_dumper_bitfield()
342 static void btf_dumper_int_bits(__u32 int_type, __u8 bit_offset, in btf_dumper_int_bits() argument
352 total_bits_offset = bit_offset + BTF_INT_OFFSET(int_type); in btf_dumper_int_bits()
354 bit_offset = BITS_PER_BYTE_MASKED(total_bits_offset); in btf_dumper_int_bits()
355 btf_dumper_bitfield(nr_bits, bit_offset, data, jw, in btf_dumper_int_bits()
[all …]
/OK3568_Linux_fs/kernel/drivers/pinctrl/
H A Dpinctrl-bm1880.c1015 u32 *regval, u32 bit_offset) in bm1880_pinconf_drv_set() argument
1028 _regval &= ~(width << bit_offset); in bm1880_pinconf_drv_set()
1029 _regval |= (0 << bit_offset); in bm1880_pinconf_drv_set()
1032 _regval &= ~(width << bit_offset); in bm1880_pinconf_drv_set()
1033 _regval |= (1 << bit_offset); in bm1880_pinconf_drv_set()
1036 _regval &= ~(width << bit_offset); in bm1880_pinconf_drv_set()
1037 _regval |= (2 << bit_offset); in bm1880_pinconf_drv_set()
1040 _regval &= ~(width << bit_offset); in bm1880_pinconf_drv_set()
1041 _regval |= (3 << bit_offset); in bm1880_pinconf_drv_set()
1044 _regval &= ~(width << bit_offset); in bm1880_pinconf_drv_set()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/
H A Ddhd_bitpack.c63 * bit_offset offset in buffer (bitwise)
71 dhd_bit_pack(char *buf, int buf_len, int bit_offset, uint32 data, int32 bit_length) in dhd_bit_pack() argument
74 int32 byte_shift = (bit_offset / 8); in dhd_bit_pack()
75 int32 local_bit_offset = bit_offset % 8; in dhd_bit_pack()
84 return bit_offset; in dhd_bit_pack()
86 if (BYTE_SIZE(bit_offset + bit_length) > buf_len) { in dhd_bit_pack()
90 return bit_offset; in dhd_bit_pack()
104 return bit_offset; in dhd_bit_pack()
109 local_bit_offset = bit_offset % 8; in dhd_bit_pack()
124 bit_offset += bit_length; in dhd_bit_pack()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/
H A Ddhd_bitpack.c63 * bit_offset offset in buffer (bitwise)
71 dhd_bit_pack(char *buf, int buf_len, int bit_offset, uint32 data, int32 bit_length) in dhd_bit_pack() argument
74 int32 byte_shift = (bit_offset / 8); in dhd_bit_pack()
75 int32 local_bit_offset = bit_offset % 8; in dhd_bit_pack()
84 return bit_offset; in dhd_bit_pack()
86 if (BYTE_SIZE(bit_offset + bit_length) > buf_len) { in dhd_bit_pack()
90 return bit_offset; in dhd_bit_pack()
104 return bit_offset; in dhd_bit_pack()
109 local_bit_offset = bit_offset % 8; in dhd_bit_pack()
124 bit_offset += bit_length; in dhd_bit_pack()
[all …]
/OK3568_Linux_fs/kernel/arch/x86/kernel/acpi/
H A Dcppc_msr.c23 u64 mask = GENMASK_ULL(reg->bit_offset + reg->bit_width - 1, in cpc_read_ffh()
24 reg->bit_offset); in cpc_read_ffh()
27 *val >>= reg->bit_offset; in cpc_read_ffh()
39 u64 mask = GENMASK_ULL(reg->bit_offset + reg->bit_width - 1, in cpc_write_ffh()
40 reg->bit_offset); in cpc_write_ffh()
42 val <<= reg->bit_offset; in cpc_write_ffh()
/OK3568_Linux_fs/u-boot/arch/x86/cpu/quark/
H A Dacpi.c67 fadt->reset_reg.bit_offset = 0; in acpi_create_fadt()
80 fadt->x_pm1a_evt_blk.bit_offset = 0; in acpi_create_fadt()
87 fadt->x_pm1b_evt_blk.bit_offset = 0; in acpi_create_fadt()
94 fadt->x_pm1a_cnt_blk.bit_offset = 0; in acpi_create_fadt()
101 fadt->x_pm1b_cnt_blk.bit_offset = 0; in acpi_create_fadt()
108 fadt->x_pm2_cnt_blk.bit_offset = 0; in acpi_create_fadt()
115 fadt->x_pm_tmr_blk.bit_offset = 0; in acpi_create_fadt()
122 fadt->x_gpe0_blk.bit_offset = 0; in acpi_create_fadt()
129 fadt->x_gpe1_blk.bit_offset = 0; in acpi_create_fadt()
/OK3568_Linux_fs/kernel/drivers/soc/tegra/fuse/
H A Dfuse-tegra.c100 .bit_offset = 0,
106 .bit_offset = 0,
112 .bit_offset = 0,
118 .bit_offset = 0,
124 .bit_offset = 0,
130 .bit_offset = 0,
136 .bit_offset = 0,
142 .bit_offset = 0,
148 .bit_offset = 0,
154 .bit_offset = 0,
[all …]
/OK3568_Linux_fs/u-boot/arch/x86/cpu/baytrail/
H A Dacpi.c72 fadt->reset_reg.bit_offset = 0; in acpi_create_fadt()
85 fadt->x_pm1a_evt_blk.bit_offset = 0; in acpi_create_fadt()
92 fadt->x_pm1b_evt_blk.bit_offset = 0; in acpi_create_fadt()
99 fadt->x_pm1a_cnt_blk.bit_offset = 0; in acpi_create_fadt()
106 fadt->x_pm1b_cnt_blk.bit_offset = 0; in acpi_create_fadt()
113 fadt->x_pm2_cnt_blk.bit_offset = 0; in acpi_create_fadt()
120 fadt->x_pm_tmr_blk.bit_offset = 0; in acpi_create_fadt()
127 fadt->x_gpe0_blk.bit_offset = 0; in acpi_create_fadt()
134 fadt->x_gpe1_blk.bit_offset = 0; in acpi_create_fadt()
/OK3568_Linux_fs/kernel/drivers/pinctrl/sprd/
H A Dpinctrl-sprd.h14 #define BIT_OFFSET (8) macro
20 ((offset) & 0xFF) << BIT_OFFSET | \
31 .bit_offset = (((a) >> BIT_OFFSET) & 0xff), \
48 unsigned long bit_offset; member
/OK3568_Linux_fs/kernel/drivers/acpi/acpica/
H A Dhwregs.c57 * 1. Detected if bit_offset is 0 and bit_width is 8/16/32/64; in acpi_hw_get_access_bit_width()
61 * 1. Detected if bit_offset is not 0 or bit_width is not 8/16/32/64; in acpi_hw_get_access_bit_width()
64 * 3. bit_offset/bit_width fields are used to describe the "region". in acpi_hw_get_access_bit_width()
69 if (!reg->bit_offset && reg->bit_width && in acpi_hw_get_access_bit_width()
77 ACPI_ROUND_UP_POWER_OF_TWO_8(reg->bit_offset + in acpi_hw_get_access_bit_width()
117 * pointer, Address, space_id, bit_width, and bit_offset.
167 ACPI_ROUND_UP(reg->bit_offset + reg->bit_width, access_width); in acpi_hw_validate_register()
200 u8 bit_offset; in acpi_hw_read() local
221 bit_width = reg->bit_offset + reg->bit_width; in acpi_hw_read()
222 bit_offset = reg->bit_offset; in acpi_hw_read()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/omapdrm/
H A Dtcm-sita.c95 unsigned long bit_offset = (offset > 0) ? offset / slot_bytes : 0; in l2r_t2b() local
96 unsigned long curr_bit = bit_offset; in l2r_t2b()
109 if (bit_offset > 0 && (*pos % slots_per_band != bit_offset)) { in l2r_t2b()
110 curr_bit = ALIGN(*pos, slots_per_band) + bit_offset; in l2r_t2b()
116 curr_bit = ALIGN(*pos, slot_stride) + bit_offset; in l2r_t2b()
147 if (bit_offset > 0) in l2r_t2b()
148 curr_bit = ALIGN(*pos, slots_per_band) + bit_offset; in l2r_t2b()
/OK3568_Linux_fs/kernel/drivers/nvmem/
H A Dcore.c51 int bit_offset; member
375 cell->bit_offset = info->bit_offset; in nvmem_cell_info_to_nvmem_cell_nodup()
379 cell->bytes = DIV_ROUND_UP(cell->nbits + cell->bit_offset, in nvmem_cell_info_to_nvmem_cell_nodup()
571 cell->bit_offset = be32_to_cpup(addr++); in nvmem_add_cells_from_of()
577 cell->nbits + cell->bit_offset, in nvmem_add_cells_from_of()
1208 int i, extra, bit_offset = cell->bit_offset; in nvmem_shift_read_buffer_in_place() local
1211 if (bit_offset) { in nvmem_shift_read_buffer_in_place()
1213 *b++ >>= bit_offset; in nvmem_shift_read_buffer_in_place()
1218 *p |= *b << (BITS_PER_BYTE - bit_offset); in nvmem_shift_read_buffer_in_place()
1221 *b++ >>= bit_offset; in nvmem_shift_read_buffer_in_place()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dbit.c30 if (likely(bios->bit_offset)) { in bit_entry()
31 u8 entries = nvbios_rd08(bios, bios->bit_offset + 10); in bit_entry()
32 u32 entry = bios->bit_offset + 12; in bit_entry()
42 entry += nvbios_rd08(bios, bios->bit_offset + 9); in bit_entry()
/OK3568_Linux_fs/kernel/drivers/acpi/apei/
H A Dapei-base.c64 *val >>= entry->register_region.bit_offset; in __apei_exec_read_register()
104 val <<= entry->register_region.bit_offset; in __apei_exec_write_register()
110 valr &= ~(entry->mask << entry->register_region.bit_offset); in __apei_exec_write_register()
574 u32 bit_width, bit_offset, access_size_code, space_id; in apei_check_gar() local
577 bit_offset = reg->bit_offset; in apei_check_gar()
584 *paddr, bit_width, bit_offset, access_size_code, in apei_check_gar()
592 *paddr, bit_width, bit_offset, access_size_code, in apei_check_gar()
599 if (bit_width == 32 && bit_offset == 0 && (*paddr & 0x03) == 0 && in apei_check_gar()
602 else if (bit_width == 64 && bit_offset == 0 && (*paddr & 0x07) == 0 && in apei_check_gar()
606 if ((bit_width + bit_offset) > *access_bit_width) { in apei_check_gar()
[all …]
/OK3568_Linux_fs/yocto/poky/meta/recipes-multimedia/libtiff/tiff/
H A D0001-tiffcrop-Fix-issue-330-and-some-more-from-320-to-349.patch91 - uint32_t col, dst_rowsize, bit_offset;
92 + uint32_t col, dst_rowsize, bit_offset, numcols;
121 - uint32_t col, src_byte, src_bit, bit_offset;
122 + uint32_t col, src_byte, src_bit, bit_offset, numcols;
153 - uint32_t col, src_byte, src_bit, bit_offset;
154 + uint32_t col, src_byte, src_bit, bit_offset, numcols;
183 - uint32_t col, src_byte, src_bit, bit_offset;
184 + uint32_t col, src_byte, src_bit, bit_offset, numcols;
213 - uint32_t col, src_byte, src_bit, bit_offset;
214 + uint32_t col, src_byte, src_bit, bit_offset, numcols;
[all …]
/OK3568_Linux_fs/kernel/include/crypto/
H A Dsha1_base.h75 const int bit_offset = SHA1_BLOCK_SIZE - sizeof(__be64); in sha1_base_do_finalize() local
77 __be64 *bits = (__be64 *)(sctx->buffer + bit_offset); in sha1_base_do_finalize()
81 if (partial > bit_offset) { in sha1_base_do_finalize()
88 memset(sctx->buffer + partial, 0x0, bit_offset - partial); in sha1_base_do_finalize()
H A Dsha256_base.h78 const int bit_offset = SHA256_BLOCK_SIZE - sizeof(__be64); in sha256_base_do_finalize() local
80 __be64 *bits = (__be64 *)(sctx->buf + bit_offset); in sha256_base_do_finalize()
84 if (partial > bit_offset) { in sha256_base_do_finalize()
91 memset(sctx->buf + partial, 0x0, bit_offset - partial); in sha256_base_do_finalize()
H A Dsm3_base.h78 const int bit_offset = SM3_BLOCK_SIZE - sizeof(__be64); in sm3_base_do_finalize() local
80 __be64 *bits = (__be64 *)(sctx->buffer + bit_offset); in sm3_base_do_finalize()
84 if (partial > bit_offset) { in sm3_base_do_finalize()
91 memset(sctx->buffer + partial, 0x0, bit_offset - partial); in sm3_base_do_finalize()
H A Dsha512_base.h98 const int bit_offset = SHA512_BLOCK_SIZE - sizeof(__be64[2]); in sha512_base_do_finalize() local
100 __be64 *bits = (__be64 *)(sctx->buf + bit_offset); in sha512_base_do_finalize()
104 if (partial > bit_offset) { in sha512_base_do_finalize()
111 memset(sctx->buf + partial, 0x0, bit_offset - partial); in sha512_base_do_finalize()
/OK3568_Linux_fs/u-boot/doc/device-tree-bindings/clock/
H A Dst,stm32-rcc.txt38 It is calculated as: index = register_offset / 4 * 32 + bit_offset.
39 Where bit_offset is the bit offset within the register (LSB is 0, MSB is 31).
86 It is calculated as: index = register_offset / 4 * 32 + bit_offset.
87 Where bit_offset is the bit offset within the register.
/OK3568_Linux_fs/kernel/drivers/net/wireless/ralink/rt2x00/
H A Drt2x00reg.h148 u8 bit_offset; member
153 u16 bit_offset; member
158 u32 bit_offset; member
240 ((__field).bit_offset)) & \
248 ((__field).bit_offset); \
/OK3568_Linux_fs/buildroot/dl/qt5location/git/src/3rdparty/mapbox-gl-native/src/mbgl/algorithm/
H A Dgenerate_clip_ids_impl.hpp60 const std::bitset<8> mask = uint64_t(((1ul << bit_count) - 1) << bit_offset); in update()
74 renderable.clip.reference = uint32_t(count++) << bit_offset; in update()
78 bit_offset += bit_count; in update()
85 if (!warned && bit_offset > 8) { in update()
/OK3568_Linux_fs/kernel/drivers/irqchip/
H A Dirq-meson-gpio.c170 unsigned int bit_offset; in meson8_gpio_irq_sel_pin() local
173 bit_offset = REG_PIN_SEL_SHIFT(channel); in meson8_gpio_irq_sel_pin()
176 ctl->params->pin_sel_mask << bit_offset, in meson8_gpio_irq_sel_pin()
177 hwirq << bit_offset); in meson8_gpio_irq_sel_pin()
185 unsigned int bit_offset; in meson_a1_gpio_irq_sel_pin() local
187 bit_offset = ((channel % 2) == 0) ? 0 : 16; in meson_a1_gpio_irq_sel_pin()
191 ctl->params->pin_sel_mask << bit_offset, in meson_a1_gpio_irq_sel_pin()
192 hwirq << bit_offset); in meson_a1_gpio_irq_sel_pin()
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/clock/
H A Dst,stm32-rcc.txt45 It is calculated as: index = register_offset / 4 * 32 + bit_offset.
46 Where bit_offset is the bit offset within the register (LSB is 0, MSB is 31).
129 It is calculated as: index = register_offset / 4 * 32 + bit_offset.
130 Where bit_offset is the bit offset within the register.

123456