| /linux/fs/minix/ |
| H A D | itree_v2.c | 27 static int block_to_path(struct inode * inode, long block, int offsets[DEPTH]) in block_to_path() 41 offsets[n++] = block; in block_to_path() 43 offsets[n++] = DIRCOUNT; in block_to_path() 44 offsets[n++] = block; in block_to_path() 46 offsets[n++] = DIRCOUNT + 1; in block_to_path() 47 offsets[n++] = block / INDIRCOUNT(sb); in block_to_path() 48 offsets[n++] = block % INDIRCOUNT(sb); in block_to_path() 51 offsets[n++] = DIRCOUNT + 2; in block_to_path() 52 offsets[n++] = (block / INDIRCOUNT(sb)) / INDIRCOUNT(sb); in block_to_path() 53 offsets[n++] = (block / INDIRCOUNT(sb)) % INDIRCOUNT(sb); in block_to_path() [all …]
|
| H A D | itree_v1.c | 25 static int block_to_path(struct inode * inode, long block, int offsets[DEPTH]) in block_to_path() 38 offsets[n++] = block; in block_to_path() 40 offsets[n++] = 7; in block_to_path() 41 offsets[n++] = block; in block_to_path() 44 offsets[n++] = 8; in block_to_path() 45 offsets[n++] = block>>9; in block_to_path() 46 offsets[n++] = block & 511; in block_to_path()
|
| /linux/drivers/net/phy/ |
| H A D | microchip_t1s.c | 167 static int lan865x_generate_cfg_offsets(struct phy_device *phydev, s8 offsets[]) in lan865x_generate_cfg_offsets() argument 180 offsets[i] = ret | 0xE0; in lan865x_generate_cfg_offsets() 182 offsets[i] = ret; in lan865x_generate_cfg_offsets() 221 static int lan865x_setup_cfgparam(struct phy_device *phydev, s8 offsets[]) in lan865x_setup_cfgparam() argument 232 cfg_results[0] = FIELD_PREP(GENMASK(15, 10), 9 + offsets[0]) | in lan865x_setup_cfgparam() 233 FIELD_PREP(GENMASK(9, 4), 14 + offsets[0]) | in lan865x_setup_cfgparam() 235 cfg_results[1] = FIELD_PREP(GENMASK(15, 10), 40 + offsets[1]); in lan865x_setup_cfgparam() 241 static int lan865x_setup_sqi_cfgparam(struct phy_device *phydev, s8 offsets[]) in lan865x_setup_sqi_cfgparam() argument 252 cfg_results[0] = FIELD_PREP(GENMASK(13, 8), 5 + offsets[0]) | in lan865x_setup_sqi_cfgparam() 253 (9 + offsets[0]); in lan865x_setup_sqi_cfgparam() [all …]
|
| /linux/scripts/mod/ |
| H A D | Makefile | 9 devicetable-offsets-file := devicetable-offsets.h 11 $(obj)/$(devicetable-offsets-file): $(obj)/devicetable-offsets.s FORCE 12 $(call filechk,offsets,__DEVICETABLE_OFFSETS_H__) 14 targets += $(devicetable-offsets-file) devicetable-offsets.s 19 $(obj)/file2alias.o: $(obj)/$(devicetable-offsets-file)
|
| /linux/arch/arm/mach-at91/ |
| H A D | Makefile | 22 $(obj)/pm_data-offsets.h: $(obj)/pm_data-offsets.s FORCE 23 $(call filechk,offsets,__PM_DATA_OFFSETS_H__) 25 $(obj)/pm_suspend.o: $(obj)/pm_data-offsets.h 27 targets += pm_data-offsets.s 28 clean-files += pm_data-offsets.h
|
| /linux/arch/x86/hyperv/ |
| H A D | Makefile | 6 $(obj)/mshv_vtl_asm.o: $(obj)/mshv-asm-offsets.h 8 $(obj)/mshv-asm-offsets.h: $(obj)/mshv-asm-offsets.s FORCE 9 $(call filechk,offsets,__MSHV_ASM_OFFSETS_H__) 21 targets += mshv-asm-offsets.s 22 clean-files += mshv-asm-offsets.h
|
| /linux/drivers/mtd/tests/ |
| H A D | stresstest.c | 36 static int *offsets; variable 87 offs = offsets[eb]; in do_write() 92 offs = offsets[eb] = 0; in do_write() 103 offsets[eb + 1] = 0; in do_write() 112 offsets[eb++] = mtd->erasesize; in do_write() 115 offsets[eb] = offs; in do_write() 181 offsets = kmalloc_objs(int, ebcnt); in mtd_stresstest_init() 182 if (!readbuf || !writebuf || !offsets) in mtd_stresstest_init() 185 offsets[i] = mtd->erasesize; in mtd_stresstest_init() 211 kfree(offsets); in mtd_stresstest_init()
|
| /linux/drivers/media/platform/microchip/ |
| H A D | microchip-sama5d2-isc.c | 222 regmap_write(regmap, ISC_CSC_YR_YG + isc->offsets.csc, in isc_sama5d2_config_csc() 224 regmap_write(regmap, ISC_CSC_YB_OY + isc->offsets.csc, in isc_sama5d2_config_csc() 226 regmap_write(regmap, ISC_CSC_CBR_CBG + isc->offsets.csc, in isc_sama5d2_config_csc() 228 regmap_write(regmap, ISC_CSC_CBB_OCB + isc->offsets.csc, in isc_sama5d2_config_csc() 230 regmap_write(regmap, ISC_CSC_CRR_CRG + isc->offsets.csc, in isc_sama5d2_config_csc() 232 regmap_write(regmap, ISC_CSC_CRB_OCR + isc->offsets.csc, in isc_sama5d2_config_csc() 240 regmap_write(regmap, ISC_CBC_BRIGHT + isc->offsets.cbc, in isc_sama5d2_config_cbc() 242 regmap_write(regmap, ISC_CBC_CONTRAST + isc->offsets.cbc, in isc_sama5d2_config_cbc() 302 regmap_update_bits(regmap, ISC_RLP_CFG + isc->offsets.rlp, in isc_sama5d2_config_rlp() 459 isc->offsets.csc = ISC_SAMA5D2_CSC_OFFSET; in microchip_isc_probe() [all …]
|
| /linux/drivers/staging/media/atomisp/pci/isp/kernels/ipu2_io_ls/yuv444_io_ls/ |
| H A D | ia_css_yuv444_io.host.c | 32 if (binary->info->mem_offsets.offsets.param) { in ia_css_yuv444_io_config() 33 size_get = binary->info->mem_offsets.offsets.param->dmem.get.size; in ia_css_yuv444_io_config() 34 offset = binary->info->mem_offsets.offsets.param->dmem.get.offset; in ia_css_yuv444_io_config() 61 if (binary->info->mem_offsets.offsets.param) { in ia_css_yuv444_io_config() 62 size_put = binary->info->mem_offsets.offsets.param->dmem.put.size; in ia_css_yuv444_io_config() 63 offset = binary->info->mem_offsets.offsets.param->dmem.put.offset; in ia_css_yuv444_io_config()
|
| /linux/drivers/staging/media/atomisp/pci/isp/kernels/ipu2_io_ls/bayer_io_ls/ |
| H A D | ia_css_bayer_io.host.c | 31 if (binary->info->mem_offsets.offsets.param) { in ia_css_bayer_io_config() 32 size_get = binary->info->mem_offsets.offsets.param->dmem.get.size; in ia_css_bayer_io_config() 33 offset = binary->info->mem_offsets.offsets.param->dmem.get.offset; in ia_css_bayer_io_config() 59 if (binary->info->mem_offsets.offsets.param) { in ia_css_bayer_io_config() 60 size_put = binary->info->mem_offsets.offsets.param->dmem.put.size; in ia_css_bayer_io_config() 61 offset = binary->info->mem_offsets.offsets.param->dmem.put.offset; in ia_css_bayer_io_config()
|
| /linux/sound/usb/ |
| H A D | mixer_scarlett.c | 165 int offsets[SND_SCARLETT_OFFSETS_MAX]; member 198 .offsets = {}, 207 .offsets = {}, 216 .offsets = {}, 225 .offsets = {}, 234 .offsets = {}, 244 .offsets = {}, 601 static void scarlett_generate_name(int i, char *dst, size_t size, int offsets[]) in scarlett_generate_name() argument 603 if (i > offsets[SCARLETT_OFFSET_MIX]) in scarlett_generate_name() 605 'A'+(i - offsets[SCARLETT_OFFSET_MIX] - 1)); in scarlett_generate_name() [all …]
|
| /linux/tools/lib/bpf/ |
| H A D | elf.c | 413 unsigned long *offsets; in elf_resolve_syms_offsets() local 421 offsets = calloc(cnt, sizeof(*offsets)); in elf_resolve_syms_offsets() 424 if (!offsets || !symbols) { in elf_resolve_syms_offsets() 458 offset = &offsets[found->idx]; in elf_resolve_syms_offsets() 489 *poffsets = offsets; in elf_resolve_syms_offsets() 494 free(offsets); in elf_resolve_syms_offsets() 508 unsigned long *offsets = NULL; in elf_resolve_pattern_offsets() local 531 err = libbpf_ensure_mem((void **) &offsets, &cap, sizeof(*offsets), in elf_resolve_pattern_offsets() 536 offsets[cnt++] = elf_sym_offset(sym); in elf_resolve_pattern_offsets() 547 *poffsets = offsets; in elf_resolve_pattern_offsets() [all …]
|
| /linux/drivers/gpu/drm/amd/display/dc/dce60/ |
| H A D | dce60_timing_generator.c | 83 #define CRTC_REG(reg) (reg + tg110->offsets.crtc) 84 #define DCP_REG(reg) (reg + tg110->offsets.dcp) 85 #define DMIF_REG(reg) (reg + tg110->offsets.dmif) 91 + DCE110TG_FROM_TG(tg)->offsets.dmif; in program_pix_dur() 249 const struct dce110_timing_generator_offsets *offsets) in dce60_timing_generator_construct() argument 253 tg110->offsets = *offsets; in dce60_timing_generator_construct()
|
| /linux/drivers/memory/tegra/ |
| H A D | tegra210-emc-cc-r21021.c | 749 const u16 *offsets = emc->offsets->burst; in tegra210_emc_r21021_set_clock() local 752 if (!offsets[i]) in tegra210_emc_r21021_set_clock() 756 offset = offsets[i]; in tegra210_emc_r21021_set_clock() 829 emc->offsets->burst_per_channel; in tegra210_emc_r21021_set_clock() 863 emc->offsets->vref_per_channel; in tegra210_emc_r21021_set_clock() 881 const u16 *offsets = emc->offsets->trim; in tegra210_emc_r21021_set_clock() local 883 if (!offsets[i]) in tegra210_emc_r21021_set_clock() 887 (offsets[i] == EMC_PMACRO_OB_DDLL_LONG_DQ_RANK0_0 || in tegra210_emc_r21021_set_clock() 888 offsets[i] == EMC_PMACRO_OB_DDLL_LONG_DQ_RANK0_1 || in tegra210_emc_r21021_set_clock() 889 offsets[i] == EMC_PMACRO_OB_DDLL_LONG_DQ_RANK0_2 || in tegra210_emc_r21021_set_clock() [all …]
|
| /linux/drivers/clk/starfive/ |
| H A D | clk-starfive-jh7110-pll.c | 98 } offsets; member 116 .offsets = { \ 284 regmap_read(regmap, info->offsets.pd, &val); in jh7110_pll_regvals_get() 288 regmap_read(regmap, info->offsets.fbdiv, &val); in jh7110_pll_regvals_get() 291 regmap_read(regmap, info->offsets.frac, &val); in jh7110_pll_regvals_get() 295 regmap_read(regmap, info->offsets.prediv, &val); in jh7110_pll_regvals_get() 376 regmap_update_bits(priv->regmap, info->offsets.frac, JH7110_PLL_FRAC_MASK, in jh7110_pll_set_rate() 379 regmap_update_bits(priv->regmap, info->offsets.pd, info->masks.dacpd, in jh7110_pll_set_rate() 381 regmap_update_bits(priv->regmap, info->offsets.pd, info->masks.dsmpd, in jh7110_pll_set_rate() 383 regmap_update_bits(priv->regmap, info->offsets.prediv, JH7110_PLL_PREDIV_MASK, in jh7110_pll_set_rate() [all …]
|
| /linux/fs/ntfs3/lib/ |
| H A D | decompress_common.c | 115 u16 * const offsets = &working_space[1 * (max_codeword_len + 1)]; in make_huffman_decode_table() local 181 offsets[1] = 0; in make_huffman_decode_table() 183 offsets[len + 1] = offsets[len] + len_counts[len]; in make_huffman_decode_table() 191 sorted_syms[offsets[lens[sym]]++] = sym; in make_huffman_decode_table()
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | pyperf.h | 32 OffsetConfig offsets; member 96 frame_ptr + pidData->offsets.PyFrameObject_back); in __get_frame_data() 99 frame_ptr + pidData->offsets.PyFrameObject_code); in __get_frame_data() 106 frame->f_code + pidData->offsets.PyCodeObject_filename); in __get_frame_data() 109 frame->f_code + pidData->offsets.PyCodeObject_name); in __get_frame_data() 115 pidData->offsets.String_data); in __get_frame_data() 120 pidData->offsets.String_data); in __get_frame_data() 272 pidData->offsets.PyThreadState_thread); 287 pidData->offsets.PyThreadState_frame);
|
| /linux/drivers/phy/spacemit/ |
| H A D | phy-k3-combo.c | 61 .offsets = { 70 .offsets = { 79 .offsets = { 88 .offsets = { 97 .offsets = { 106 .offsets = {
|
| /linux/drivers/gpu/drm/i915/gem/selftests/ |
| H A D | i915_gem_coherency.c | 312 u32 *offsets, *values; in igt_gem_coherency() local 324 offsets = kmalloc_array(ncachelines, 2*sizeof(u32), GFP_KERNEL); in igt_gem_coherency() 325 if (!offsets) in igt_gem_coherency() 328 offsets[count] = count * 64 + 4 * (count % 16); in igt_gem_coherency() 330 values = offsets + ncachelines; in igt_gem_coherency() 368 i915_random_reorder(offsets, ncachelines, &prng); in igt_gem_coherency() 373 err = over->set(&ctx, offsets[n], ~values[n]); in igt_gem_coherency() 382 err = write->set(&ctx, offsets[n], values[n]); in igt_gem_coherency() 393 err = read->get(&ctx, offsets[n], &found); in igt_gem_coherency() 405 ~values[n], offsets[n]); in igt_gem_coherency() [all …]
|
| /linux/arch/x86/um/ |
| H A D | Makefile | 40 $(obj)/user-offsets.s: c_flags = -Wp,-MD,$(depfile) $(USER_CFLAGS) \ 42 targets += user-offsets.s 44 include/generated/user_constants.h: $(obj)/user-offsets.s FORCE 45 $(call filechk,offsets,__USER_CONSTANT_H__)
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | uprobe_multi_test.c | 393 opts.uprobe_multi.offsets = &offset; in test_attach_api_fails() 404 .uprobe_multi.offsets = (unsigned long *) &offset, in test_attach_api_fails() 416 opts.uprobe_multi.offsets = (unsigned long *) &offset; in test_attach_api_fails() 425 /* offsets is NULL */ in test_attach_api_fails() 437 /* wrong offsets pointer */ in test_attach_api_fails() 440 .uprobe_multi.offsets = (unsigned long *) 1, in test_attach_api_fails() 453 .uprobe_multi.offsets = (unsigned long *) &offset, in test_attach_api_fails() 466 .uprobe_multi.offsets = (unsigned long *) &offset, in test_attach_api_fails() 479 .uprobe_multi.offsets = (unsigned long *) &offset, in test_attach_api_fails() 492 .uprobe_multi.offsets in test_attach_api_fails() 595 unsigned long offsets[3], ref_ctr_offsets[3]; attach_uprobe_fail_refctr() local 669 unsigned long *offsets = NULL; __test_link_api() local [all...] |
| /linux/scripts/ |
| H A D | recordmcount.pl | 408 my @offsets; # Array of offsets of mcount callers 420 return unless ($ref_func and @offsets); 442 foreach my $cur_offset (@offsets) { 495 undef(@offsets); 522 push(@offsets, (hex $1) + $mcount_adjust);
|
| /linux/drivers/gpio/ |
| H A D | gpio-mpfs.c | 47 const struct mpfs_gpio_reg_offsets *offsets; member 74 regmap_update_bits(mpfs_gpio->regs, mpfs_gpio->offsets->outp, BIT(gpio_index), in mpfs_gpio_direction_output() 98 return regmap_test_bits(mpfs_gpio->regs, mpfs_gpio->offsets->outp, BIT(gpio_index)); in mpfs_gpio_get() 100 return regmap_test_bits(mpfs_gpio->regs, mpfs_gpio->offsets->inp, BIT(gpio_index)); in mpfs_gpio_get() 110 ret = regmap_update_bits(mpfs_gpio->regs, mpfs_gpio->offsets->outp, in mpfs_gpio_set() 215 mpfs_gpio->offsets = device_get_match_data(&pdev->dev); in mpfs_gpio_probe()
|
| /linux/arch/x86/kvm/ |
| H A D | .gitignore | 1 /kvm-asm-offsets.s 2 /kvm-asm-offsets.h
|
| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_framebuffer_test.c | 82 .handles = { 1, 0, 0 }, .offsets = { UINT_MAX - 1, 0, 0 }, 88 .handles = { 1, 0, 0 }, .offsets = { UINT_MAX / 2, 0, 0 }, 99 .handles = { 1, 0, 0 }, .offsets = { UINT_MAX / 2, UINT_MAX / 2, 0 }, 106 .handles = { 1, 0, 0 }, .offsets = { UINT_MAX / 2, 0, 0 }, 112 .handles = { 1, 0, 0 }, .offsets = { UINT_MAX / 2, 0, 0 }, 118 .handles = { 1, 0, 0 }, .offsets = { UINT_MAX / 2, 0, 0 }, 126 .handles = { 1, 0, 0 }, .offsets = { UINT_MAX / 2, 0, 0 }, 133 .handles = { 1, 0, 0 }, .offsets = { UINT_MAX / 2, 0, 0 }, 236 .handles = { 1, 1, 1 }, .offsets = { MAX_WIDTH, MAX_WIDTH + 325 .handles = { 1, 0, 0 }, .offsets = { 0, 0, 3 }, [all …]
|