/linux-6.3-rc2/drivers/soc/tegra/fuse/ |
A D | fuse-tegra30.c | 142 .bit_offset = 0, 148 .bit_offset = 0, 154 .bit_offset = 0, 160 .bit_offset = 0, 166 .bit_offset = 0, 172 .bit_offset = 0, 178 .bit_offset = 0, 184 .bit_offset = 0, 190 .bit_offset = 0, 196 .bit_offset = 0, [all …]
|
/linux-6.3-rc2/drivers/gpio/ |
A D | gpio-xgene.c | 41 u32 bit_offset; in xgene_gpio_get() local 44 bit_offset = GPIO_BIT_OFFSET(offset); in xgene_gpio_get() 52 u32 setval, bit_offset; in __xgene_gpio_set() local 59 setval |= BIT(bit_offset); in __xgene_gpio_set() 61 setval &= ~BIT(bit_offset); in __xgene_gpio_set() 81 bit_offset = GPIO_BIT_OFFSET(offset); in xgene_gpio_get_direction() 93 u32 dirval, bit_offset; in xgene_gpio_dir_in() local 96 bit_offset = GPIO_BIT_OFFSET(offset); in xgene_gpio_dir_in() 101 dirval |= BIT(bit_offset); in xgene_gpio_dir_in() 114 u32 dirval, bit_offset; in xgene_gpio_dir_out() local [all …]
|
/linux-6.3-rc2/drivers/pinctrl/ |
A D | pinctrl-bm1880.c | 1031 _regval |= (0 << bit_offset); in bm1880_pinconf_drv_set() 1035 _regval |= (1 << bit_offset); in bm1880_pinconf_drv_set() 1039 _regval |= (2 << bit_offset); in bm1880_pinconf_drv_set() 1222 regval |= BIT(bit_offset); in bm1880_pinconf_cfg_set() 1226 regval |= BIT(bit_offset); in bm1880_pinconf_cfg_set() 1230 regval |= BIT(bit_offset); in bm1880_pinconf_cfg_set() 1235 regval |= BIT(bit_offset); in bm1880_pinconf_cfg_set() 1237 regval &= ~BIT(bit_offset); in bm1880_pinconf_cfg_set() 1242 regval |= BIT(bit_offset); in bm1880_pinconf_cfg_set() 1244 regval &= ~BIT(bit_offset); in bm1880_pinconf_cfg_set() [all …]
|
/linux-6.3-rc2/tools/bpf/bpftool/ |
A D | btf_dumper.c | 25 __u8 bit_offset, const void *data); 136 __u8 bit_offset, const void *data) in btf_dumper_modifier() argument 360 bits_to_copy = bit_offset + nr_bits; in btf_dumper_bitfield() 365 left_shift_bits = bit_offset; in btf_dumper_bitfield() 405 if (bit_offset || BTF_INT_OFFSET(*int_type) || in btf_dumper_int() 485 __u32 bit_offset = m[i].offset; in btf_dumper_struct() local 490 bit_offset = BTF_MEMBER_BIT_OFFSET(bit_offset); in btf_dumper_struct() 497 BITS_PER_BYTE_MASKED(bit_offset), in btf_dumper_struct() 501 BITS_PER_BYTE_MASKED(bit_offset), in btf_dumper_struct() 514 __u8 bit_offset, const void *data) in btf_dumper_var() argument [all …]
|
/linux-6.3-rc2/drivers/acpi/acpica/ |
A D | hwregs.c | 69 if (!reg->bit_offset && reg->bit_width && in acpi_hw_get_access_bit_width() 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() 230 if (bit_offset >= access_width) { in acpi_hw_read() 232 bit_offset -= access_width; in acpi_hw_read() 295 u8 bit_offset; in acpi_hw_write() local 312 bit_width = reg->bit_offset + reg->bit_width; in acpi_hw_write() 313 bit_offset = reg->bit_offset; in acpi_hw_write() 328 if (bit_offset >= access_width) { in acpi_hw_write() [all …]
|
A D | dsopcode.c | 83 u32 bit_offset; in acpi_ds_init_buffer_field() local 127 bit_offset = offset; in acpi_ds_init_buffer_field() 144 bit_offset = offset; in acpi_ds_init_buffer_field() 153 bit_offset = 8 * offset; in acpi_ds_init_buffer_field() 162 bit_offset = 8 * offset; in acpi_ds_init_buffer_field() 171 bit_offset = 8 * offset; in acpi_ds_init_buffer_field() 180 bit_offset = 8 * offset; in acpi_ds_init_buffer_field() 196 if ((bit_offset + bit_count) > (8 * (u32)buffer_desc->buffer.length)) { in acpi_ds_init_buffer_field() 202 bit_offset, bit_count, in acpi_ds_init_buffer_field() 214 bit_offset, bit_count); in acpi_ds_init_buffer_field()
|
/linux-6.3-rc2/arch/x86/kernel/acpi/ |
A D | cppc.c | 41 u64 mask = GENMASK_ULL(reg->bit_offset + reg->bit_width - 1, in cpc_read_ffh() 42 reg->bit_offset); in cpc_read_ffh() 45 *val >>= reg->bit_offset; in cpc_read_ffh() 57 u64 mask = GENMASK_ULL(reg->bit_offset + reg->bit_width - 1, in cpc_write_ffh() 58 reg->bit_offset); in cpc_write_ffh() 60 val <<= reg->bit_offset; in cpc_write_ffh()
|
/linux-6.3-rc2/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
A D | bit.c | 30 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()
|
/linux-6.3-rc2/sound/soc/codecs/ |
A D | cs35l41-lib.c | 701 .bit_offset = 16, 708 .bit_offset = 16, 715 .bit_offset = 16, 722 .bit_offset = 16, 729 .bit_offset = 16, 847 bit_offset = otp_map_match->bit_offset; in cs35l41_otp_unpack() 855 GENMASK(31, bit_offset)) >> bit_offset; in cs35l41_otp_unpack() 858 (32 - bit_offset); in cs35l41_otp_unpack() 862 GENMASK(bit_offset + otp_map[i].size - 1, bit_offset) in cs35l41_otp_unpack() 863 ) >> bit_offset; in cs35l41_otp_unpack() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/omapdrm/ |
A D | tcm-sita.c | 87 unsigned long bit_offset = (offset > 0) ? offset / slot_bytes : 0; in l2r_t2b() local 88 unsigned long curr_bit = bit_offset; in l2r_t2b() 101 if (bit_offset > 0 && (*pos % slots_per_band != bit_offset)) { in l2r_t2b() 102 curr_bit = ALIGN(*pos, slots_per_band) + bit_offset; in l2r_t2b() 108 curr_bit = ALIGN(*pos, slot_stride) + bit_offset; in l2r_t2b() 139 if (bit_offset > 0) in l2r_t2b() 140 curr_bit = ALIGN(*pos, slots_per_band) + bit_offset; in l2r_t2b()
|
/linux-6.3-rc2/drivers/net/wireless/ralink/rt2x00/ |
A D | rt2x00reg.h | 148 u8 bit_offset; member 153 u16 bit_offset; member 158 u32 bit_offset; member 240 ((__field).bit_offset)) & \ 248 ((__field).bit_offset); \
|
/linux-6.3-rc2/include/crypto/ |
A D | sha1_base.h | 76 const int bit_offset = SHA1_BLOCK_SIZE - sizeof(__be64); in sha1_base_do_finalize() local 78 __be64 *bits = (__be64 *)(sctx->buffer + bit_offset); in sha1_base_do_finalize() 82 if (partial > bit_offset) { in sha1_base_do_finalize() 89 memset(sctx->buffer + partial, 0x0, bit_offset - partial); in sha1_base_do_finalize()
|
A D | sm3_base.h | 79 const int bit_offset = SM3_BLOCK_SIZE - sizeof(__be64); in sm3_base_do_finalize() local 81 __be64 *bits = (__be64 *)(sctx->buffer + bit_offset); in sm3_base_do_finalize() 85 if (partial > bit_offset) { in sm3_base_do_finalize() 92 memset(sctx->buffer + partial, 0x0, bit_offset - partial); in sm3_base_do_finalize()
|
A D | sha256_base.h | 79 const int bit_offset = SHA256_BLOCK_SIZE - sizeof(__be64); in sha256_base_do_finalize() local 81 __be64 *bits = (__be64 *)(sctx->buf + bit_offset); in sha256_base_do_finalize() 85 if (partial > bit_offset) { in sha256_base_do_finalize() 92 memset(sctx->buf + partial, 0x0, bit_offset - partial); in sha256_base_do_finalize()
|
A D | sha512_base.h | 99 const int bit_offset = SHA512_BLOCK_SIZE - sizeof(__be64[2]); in sha512_base_do_finalize() local 101 __be64 *bits = (__be64 *)(sctx->buf + bit_offset); in sha512_base_do_finalize() 105 if (partial > bit_offset) { in sha512_base_do_finalize() 112 memset(sctx->buf + partial, 0x0, bit_offset - partial); in sha512_base_do_finalize()
|
/linux-6.3-rc2/tools/lib/bpf/ |
A D | relo_core.c | 344 __u32 bit_offset; in bpf_core_parse_spec() local 350 spec->bit_offset += bit_offset; in bpf_core_parse_spec() 508 __u32 bit_offset; in bpf_core_match_member() local 517 spec->bit_offset += bit_offset; in bpf_core_match_member() 546 spec->bit_offset -= bit_offset; in bpf_core_match_member() 708 *val = spec->bit_offset / 8; in bpf_core_calc_field_relo() 732 bit_off = spec->bit_offset; in bpf_core_calc_field_relo() 1219 if (spec->bit_offset % 8) in bpf_core_format_spec() 1220 append_buf(" @ offset %u.%u)", spec->bit_offset / 8, spec->bit_offset % 8); in bpf_core_format_spec() 1361 } else if (cand_spec->bit_offset != targ_spec->bit_offset) { in bpf_core_calc_relo_insn() [all …]
|
/linux-6.3-rc2/drivers/acpi/apei/ |
A D | apei-base.c | 64 *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() 571 u32 bit_width, bit_offset, access_size_code, space_id; in apei_check_gar() local 574 bit_offset = reg->bit_offset; in apei_check_gar() 581 *paddr, bit_width, bit_offset, access_size_code, in apei_check_gar() 589 *paddr, bit_width, bit_offset, access_size_code, in apei_check_gar() 596 if (bit_width == 32 && bit_offset == 0 && (*paddr & 0x03) == 0 && in apei_check_gar() 603 if ((bit_width + bit_offset) > *access_bit_width) { in apei_check_gar() 606 *paddr, bit_width, bit_offset, access_size_code, in apei_check_gar() [all …]
|
/linux-6.3-rc2/drivers/nvmem/ |
A D | core.c | 53 int bit_offset; member 469 cell->bit_offset = info->bit_offset; in nvmem_cell_info_to_nvmem_cell_entry_nodup() 1385 int i, extra, bit_offset = cell->bit_offset; in nvmem_shift_read_buffer_in_place() local 1388 if (bit_offset) { in nvmem_shift_read_buffer_in_place() 1390 *b++ >>= bit_offset; in nvmem_shift_read_buffer_in_place() 1398 *b++ >>= bit_offset; in nvmem_shift_read_buffer_in_place() 1427 if (cell->bit_offset || cell->nbits) in __nvmem_cell_read() 1480 int i, rc, nbits, bit_offset = cell->bit_offset; in nvmem_cell_prepare_write_buffer() local 1491 if (bit_offset) { in nvmem_cell_prepare_write_buffer() 1493 *b <<= bit_offset; in nvmem_cell_prepare_write_buffer() [all …]
|
/linux-6.3-rc2/drivers/irqchip/ |
A D | irq-meson-gpio.c | 198 unsigned int bit_offset; in meson8_gpio_irq_sel_pin() local 201 bit_offset = REG_PIN_SEL_SHIFT(channel); in meson8_gpio_irq_sel_pin() 204 ctl->params->pin_sel_mask << bit_offset, in meson8_gpio_irq_sel_pin() 205 hwirq << bit_offset); in meson8_gpio_irq_sel_pin() 213 unsigned int bit_offset; in meson_a1_gpio_irq_sel_pin() local 215 bit_offset = ((channel % 2) == 0) ? 0 : 16; in meson_a1_gpio_irq_sel_pin() 219 ctl->params->pin_sel_mask << bit_offset, in meson_a1_gpio_irq_sel_pin() 220 hwirq << bit_offset); in meson_a1_gpio_irq_sel_pin()
|
/linux-6.3-rc2/drivers/pinctrl/sprd/ |
A D | pinctrl-sprd.h | 31 .bit_offset = (((a) >> BIT_OFFSET) & 0xff), \ 48 unsigned long bit_offset; member
|
/linux-6.3-rc2/drivers/acpi/ |
A D | processor_throttling.c | 460 throttling->control_register.bit_offset) > 32) { in acpi_processor_get_throttling_control() 467 throttling->status_register.bit_offset) > 32) { in acpi_processor_get_throttling_control() 752 u32 bit_width, bit_offset; in acpi_read_throttling_status() local 762 bit_offset = throttling->status_register.bit_offset; in acpi_read_throttling_status() 766 (u32) (bit_width + bit_offset)); in acpi_read_throttling_status() 768 *value = (u64) ((ptc_value >> bit_offset) & ptc_mask); in acpi_read_throttling_status() 784 u32 bit_width, bit_offset; in acpi_write_throttling_state() local 794 bit_offset = throttling->control_register.bit_offset; in acpi_write_throttling_state() 800 (u32) (ptc_value << bit_offset), in acpi_write_throttling_state() 801 (u32) (bit_width + bit_offset)); in acpi_write_throttling_state()
|
A D | acpi_lpit.c | 44 u64 mask = GENMASK_ULL(residency_info_ffh.gaddr.bit_offset + in lpit_read_residency_counter_us() 46 residency_info_ffh.gaddr.bit_offset); in lpit_read_residency_counter_us() 49 *counter >>= residency_info_ffh.gaddr.bit_offset; in lpit_read_residency_counter_us()
|
/linux-6.3-rc2/drivers/clk/imx/ |
A D | clk-imx8qxp-lpcg.c | 183 unsigned int bit_offset[IMX_LPCG_MAX_CLKS]; in imx_lpcg_parse_clks_from_dt() local 223 ret = of_property_read_u32_array(np, "clock-indices", bit_offset, in imx_lpcg_parse_clks_from_dt() 250 idx = bit_offset[i] / 4; in imx_lpcg_parse_clks_from_dt() 260 bit_offset[i], false); in imx_lpcg_parse_clks_from_dt() 281 idx = bit_offset[i] / 4; in imx_lpcg_parse_clks_from_dt()
|
/linux-6.3-rc2/include/rdma/ |
A D | iba.h | 118 #define IBA_FIELD_BLOC(field_struct, byte_offset, bit_offset, num_bits) \ argument 120 GENMASK(7 - (bit_offset), 7 - (bit_offset) - (num_bits - 1)), \
|
/linux-6.3-rc2/drivers/watchdog/ |
A D | wdat_wdt.c | 147 x >>= gas->bit_offset; in wdat_wdt_run_action() 157 x >>= gas->bit_offset; in wdat_wdt_run_action() 165 x <<= gas->bit_offset; in wdat_wdt_run_action() 170 y = y & ~(mask << gas->bit_offset); in wdat_wdt_run_action() 181 x <<= gas->bit_offset; in wdat_wdt_run_action() 186 y = y & ~(mask << gas->bit_offset); in wdat_wdt_run_action()
|