Home
last modified time | relevance | path

Searched refs:loc (Results 1 – 25 of 196) sorted by relevance

12345678

/kernel/linux/linux-5.10/arch/s390/kernel/
Dmachine_kexec_reloc.c5 int arch_kexec_do_relocs(int r_type, void *loc, unsigned long val, in arch_kexec_do_relocs() argument
12 *(u8 *)loc = val; in arch_kexec_do_relocs()
15 *(u16 *)loc &= 0xf000; in arch_kexec_do_relocs()
16 *(u16 *)loc |= val & 0xfff; in arch_kexec_do_relocs()
19 *(u16 *)loc = val; in arch_kexec_do_relocs()
22 *(u32 *)loc &= 0xf00000ff; in arch_kexec_do_relocs()
23 *(u32 *)loc |= (val & 0xfff) << 16; /* DL */ in arch_kexec_do_relocs()
24 *(u32 *)loc |= (val & 0xff000) >> 4; /* DH */ in arch_kexec_do_relocs()
27 *(u32 *)loc = val; in arch_kexec_do_relocs()
32 *(u64 *)loc = val; in arch_kexec_do_relocs()
[all …]
Dmodule.c177 static int apply_rela_bits(Elf_Addr loc, Elf_Addr val, in apply_rela_bits() argument
183 void *dest = (void *)loc; in apply_rela_bits()
205 (*(unsigned short *) loc & 0xf000); in apply_rela_bits()
212 (val & 0xff000) >> 4 | (*(unsigned int *) loc & 0xf00000ff); in apply_rela_bits()
229 Elf_Addr loc, val; in apply_rela() local
234 loc = base + rela->r_offset; in apply_rela()
254 rc = apply_rela_bits(loc, val, 0, 8, 0, write); in apply_rela()
256 rc = apply_rela_bits(loc, val, 0, 12, 0, write); in apply_rela()
258 rc = apply_rela_bits(loc, val, 0, 16, 0, write); in apply_rela()
260 rc = apply_rela_bits(loc, val, 1, 20, 0, write); in apply_rela()
[all …]
/kernel/linux/linux-5.10/arch/nds32/kernel/
Dmodule.c29 void do_reloc16(unsigned int val, unsigned int *loc, unsigned int val_mask, in do_reloc16() argument
38 "1:\n":"=r"(tmp):"0"(tmp), "r"(loc), "r"(swap) in do_reloc16()
54 "r"(loc), "r"(swap) in do_reloc16()
58 void do_reloc32(unsigned int val, unsigned int *loc, unsigned int val_mask, in do_reloc32() argument
68 "1:\n":"=r"(tmp):"0"(tmp), "r"(loc), "r"(swap) in do_reloc32()
85 "r"(loc), "r"(swap) in do_reloc32()
124 Elf32_Addr *loc; in apply_relocate_add() local
147 loc = (Elf32_Addr *) (dstsec->sh_addr + rel->r_offset); in apply_relocate_add()
173 do_reloc32(v, loc, 0xffffffff, 0, 0, 0, 0); in apply_relocate_add()
177 do_reloc32(v, loc, 0xfffff000, 12, 0xfff00000, 0, in apply_relocate_add()
[all …]
/kernel/linux/linux-5.10/scripts/
Dsorttable.c214 uint32_t *loc = (uint32_t *)(extab_image + i); in sort_relative_table() local
215 w(r(loc) + i, loc); in sort_relative_table()
224 uint32_t *loc = (uint32_t *)(extab_image + i); in sort_relative_table() local
225 w(r(loc) - i, loc); in sort_relative_table()
235 uint32_t *loc = (uint32_t *)(extab_image + i); in x86_sort_relative_table() local
237 w(r(loc) + i, loc); in x86_sort_relative_table()
238 w(r(loc + 1) + i + 4, loc + 1); in x86_sort_relative_table()
239 w(r(loc + 2) + i + 8, loc + 2); in x86_sort_relative_table()
248 uint32_t *loc = (uint32_t *)(extab_image + i); in x86_sort_relative_table() local
250 w(r(loc) - i, loc); in x86_sort_relative_table()
[all …]
/kernel/linux/linux-5.10/arch/arm/kernel/
Dmodule.c82 unsigned long loc; in apply_relocate() local
108 loc = dstsec->sh_addr + rel->r_offset; in apply_relocate()
117 *(u32 *)loc += sym->st_value; in apply_relocate()
129 offset = __mem_to_opcode_arm(*(u32 *)loc); in apply_relocate()
134 offset += sym->st_value - loc; in apply_relocate()
145 offset = get_module_plt(module, loc, in apply_relocate()
146 offset + loc + 8) in apply_relocate()
147 - loc - 8; in apply_relocate()
153 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate()
161 *(u32 *)loc &= __opcode_to_mem_arm(0xff000000); in apply_relocate()
[all …]
/kernel/linux/linux-5.10/arch/arm64/kernel/
Dmodule.c266 void *loc; in apply_relocate_add() local
272 loc = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
296 ovf = reloc_data(RELOC_OP_ABS, loc, val, 64); in apply_relocate_add()
299 ovf = reloc_data(RELOC_OP_ABS, loc, val, 32); in apply_relocate_add()
302 ovf = reloc_data(RELOC_OP_ABS, loc, val, 16); in apply_relocate_add()
306 ovf = reloc_data(RELOC_OP_PREL, loc, val, 64); in apply_relocate_add()
309 ovf = reloc_data(RELOC_OP_PREL, loc, val, 32); in apply_relocate_add()
312 ovf = reloc_data(RELOC_OP_PREL, loc, val, 16); in apply_relocate_add()
320 ovf = reloc_insn_movw(RELOC_OP_ABS, loc, val, 0, in apply_relocate_add()
327 ovf = reloc_insn_movw(RELOC_OP_ABS, loc, val, 16, in apply_relocate_add()
[all …]
/kernel/linux/linux-5.10/arch/nios2/kernel/
Dmodule.c56 uint32_t *loc in apply_relocate_add() local
74 *loc += v; in apply_relocate_add()
77 v -= (uint32_t)loc + 4; in apply_relocate_add()
84 word = *loc; in apply_relocate_add()
85 *loc = ((((word >> 22) << 16) | (v & 0xffff)) << 6) | in apply_relocate_add()
94 if ((v >> 28) != ((uint32_t)loc >> 28)) { in apply_relocate_add()
99 *loc = (*loc & 0x3f) | ((v >> 2) << 6); in apply_relocate_add()
102 word = *loc; in apply_relocate_add()
103 *loc = ((((word >> 22) << 16) | in apply_relocate_add()
107 word = *loc; in apply_relocate_add()
[all …]
/kernel/linux/linux-5.10/arch/h8300/kernel/
Dmodule.c22 uint32_t *loc = in apply_relocate_add() local
33 loc = (uint32_t *)((uint32_t)loc - 1); in apply_relocate_add()
34 *loc = (*loc & 0xff000000) | ((*loc & 0xffffff) + v); in apply_relocate_add()
38 *loc += v; in apply_relocate_add()
42 *loc += v; in apply_relocate_add()
45 v -= (unsigned long)loc + 2; in apply_relocate_add()
50 *(unsigned short *)loc = v; in apply_relocate_add()
53 v -= (unsigned long)loc + 1; in apply_relocate_add()
58 *(unsigned char *)loc = v; in apply_relocate_add()
/kernel/linux/linux-5.10/arch/parisc/kernel/
Dmodule.c81 static inline int in_init(struct module *me, void *loc) in in_init() argument
83 return (loc >= me->init_layout.base && in in_init()
84 loc <= (me->init_layout.base + me->init_layout.size)); in in_init()
87 static inline int in_core(struct module *me, void *loc) in in_core() argument
89 return (loc >= me->core_layout.base && in in_core()
90 loc <= (me->core_layout.base + me->core_layout.size)); in in_core()
93 static inline int in_local(struct module *me, void *loc) in in_local() argument
95 return in_init(me, loc) || in_core(me, loc); in in_local()
527 Elf32_Word *loc; in apply_relocate_add() local
540 loc = (void *)sechdrs[targetsec].sh_addr in apply_relocate_add()
[all …]
/kernel/linux/linux-5.10/arch/x86/kernel/
Dmodule.c140 void *loc; in __apply_relocate_add() local
147 loc = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in __apply_relocate_add()
157 sym->st_value, rel[i].r_addend, (u64)loc); in __apply_relocate_add()
165 if (*(u64 *)loc != 0) in __apply_relocate_add()
167 write(loc, &val, 8); in __apply_relocate_add()
170 if (*(u32 *)loc != 0) in __apply_relocate_add()
172 write(loc, &val, 4); in __apply_relocate_add()
173 if (val != *(u32 *)loc) in __apply_relocate_add()
177 if (*(s32 *)loc != 0) in __apply_relocate_add()
179 write(loc, &val, 4); in __apply_relocate_add()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_fdir.c509 u8 *loc; in ice_fdir_get_gen_prgm_pkt() local
557 loc = pkt; in ice_fdir_get_gen_prgm_pkt()
567 loc = &pkt[ICE_FDIR_TUN_PKT_OFF]; in ice_fdir_get_gen_prgm_pkt()
575 ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET, in ice_fdir_get_gen_prgm_pkt()
577 ice_pkt_insert_u16(loc, ICE_IPV4_TCP_DST_PORT_OFFSET, in ice_fdir_get_gen_prgm_pkt()
579 ice_pkt_insert_u32(loc, ICE_IPV4_SRC_ADDR_OFFSET, in ice_fdir_get_gen_prgm_pkt()
581 ice_pkt_insert_u16(loc, ICE_IPV4_TCP_SRC_PORT_OFFSET, in ice_fdir_get_gen_prgm_pkt()
584 loc[20] = ICE_FDIR_IPV4_PKT_FLAG_DF; in ice_fdir_get_gen_prgm_pkt()
587 ice_pkt_insert_u32(loc, ICE_IPV4_DST_ADDR_OFFSET, in ice_fdir_get_gen_prgm_pkt()
589 ice_pkt_insert_u16(loc, ICE_IPV4_UDP_DST_PORT_OFFSET, in ice_fdir_get_gen_prgm_pkt()
[all …]
/kernel/linux/linux-5.10/drivers/macintosh/
Dwindfarm_lm75_sensor.c96 const char *name, *loc; in wf_lm75_probe() local
106 loc = of_get_property(client->dev.of_node, "hwsensor-location", NULL); in wf_lm75_probe()
107 if (!loc) { in wf_lm75_probe()
116 if (!strcmp(loc, "Hard drive") || !strcmp(loc, "DRIVE BAY")) in wf_lm75_probe()
118 else if (!strcmp(loc, "Incoming Air Temp")) in wf_lm75_probe()
120 else if (!strcmp(loc, "ODD Temp")) in wf_lm75_probe()
122 else if (!strcmp(loc, "HD Temp")) in wf_lm75_probe()
124 else if (!strcmp(loc, "PCI SLOTS")) in wf_lm75_probe()
126 else if (!strcmp(loc, "CPU A INLET")) in wf_lm75_probe()
128 else if (!strcmp(loc, "CPU B INLET")) in wf_lm75_probe()
Dwindfarm_max6690_sensor.c66 const char *name, *loc; in wf_max6690_probe() local
70 loc = of_get_property(client->dev.of_node, "hwsensor-location", NULL); in wf_max6690_probe()
71 if (!loc) { in wf_max6690_probe()
80 if (!strcmp(loc, "BACKSIDE") || !strcmp(loc, "SYS CTRLR AMBIENT")) in wf_max6690_probe()
82 else if (!strcmp(loc, "NB Ambient")) in wf_max6690_probe()
84 else if (!strcmp(loc, "GPU Ambient")) in wf_max6690_probe()
/kernel/linux/linux-5.10/drivers/gpu/drm/vmwgfx/device_include/
Dsvga3d_surfacedefs.h1563 struct svga3dsurface_loc *loc, in svga3dsurface_get_loc() argument
1571 loc->sheet = offset / cache->sheet_bytes; in svga3dsurface_get_loc()
1572 offset -= loc->sheet * cache->sheet_bytes; in svga3dsurface_get_loc()
1582 loc->sub_resource = svga3dsurface_subres(cache, i, layer); in svga3dsurface_get_loc()
1583 loc->z = offset / mip->img_stride; in svga3dsurface_get_loc()
1584 offset -= loc->z * mip->img_stride; in svga3dsurface_get_loc()
1585 loc->z *= desc->block_size.depth; in svga3dsurface_get_loc()
1586 loc->y = offset / mip->row_stride; in svga3dsurface_get_loc()
1587 offset -= loc->y * mip->row_stride; in svga3dsurface_get_loc()
1588 loc->y *= desc->block_size.height; in svga3dsurface_get_loc()
[all …]
/kernel/linux/linux-5.10/fs/ntfs/
Drunlist.c205 int dsize, runlist_element *src, int ssize, int loc) in ntfs_rl_append() argument
214 if ((loc + 1) < dsize) in ntfs_rl_append()
215 right = ntfs_are_rl_mergeable(src + ssize - 1, dst + loc + 1); in ntfs_rl_append()
228 __ntfs_rl_merge(src + ssize - 1, dst + loc + 1); in ntfs_rl_append()
231 marker = loc + ssize + 1; in ntfs_rl_append()
234 ntfs_rl_mm(dst, marker, loc + 1 + right, dsize - (loc + 1 + right)); in ntfs_rl_append()
235 ntfs_rl_mc(dst, loc + 1, src, 0, ssize); in ntfs_rl_append()
238 dst[loc].length = dst[loc + 1].vcn - dst[loc].vcn; in ntfs_rl_append()
272 int dsize, runlist_element *src, int ssize, int loc) in ntfs_rl_insert() argument
285 if (loc == 0) in ntfs_rl_insert()
[all …]
/kernel/linux/linux-5.10/tools/memory-model/
Dlock.cat41 flag ~empty [M \ IW] ; loc ; [ALL-LOCKS] as mixed-lock-accesses
44 let lk-rmw = ([LKR] ; po-loc ; [LKW]) \ (po ; po)
55 empty ([LKW] ; po-loc ; [LKR]) \ (po-loc ; [UL] ; po-loc) as lock-nest
58 flag ~empty [FW] ; loc ; [ALL-LOCKS] as lock-final
71 let critical = ([LKW] ; po-loc ; [UL]) \ (po-loc ; [LKW | UL] ; po-loc)
77 empty ([UNMATCHED-LKW] ; loc ; [UNMATCHED-LKW]) \ id as unmatched-locks
80 let rfi-lf = ([LKW] ; po-loc ; [LF]) \ ([LKW] ; po-loc ; [UL] ; po-loc)
91 in map pair-to-relation ((LKW * {r}) & loc & ext)
106 let rfi-ru = ([UL] ; po-loc ; [RU]) \ ([UL] ; po-loc ; [LKW] ; po-loc)
112 in map pair-to-relation (((UL | IW) * {r}) & loc & ext)
[all …]
/kernel/linux/linux-5.10/drivers/acpi/numa/
Dhmat.c257 struct memory_locality *loc; in hmat_add_locality() local
259 loc = kzalloc(sizeof(*loc), GFP_KERNEL); in hmat_add_locality()
260 if (!loc) { in hmat_add_locality()
265 loc->hmat_loc = hmat_loc; in hmat_add_locality()
266 list_add_tail(&loc->node, &localities); in hmat_add_locality()
270 localities_types[READ_LATENCY] = loc; in hmat_add_locality()
271 localities_types[WRITE_LATENCY] = loc; in hmat_add_locality()
274 localities_types[READ_LATENCY] = loc; in hmat_add_locality()
277 localities_types[WRITE_LATENCY] = loc; in hmat_add_locality()
280 localities_types[READ_BANDWIDTH] = loc; in hmat_add_locality()
[all …]
/kernel/linux/linux-5.10/fs/ocfs2/
Dxattr.c140 int (*xlo_journal_access)(handle_t *handle, struct ocfs2_xa_loc *loc,
142 void (*xlo_journal_dirty)(handle_t *handle, struct ocfs2_xa_loc *loc);
148 void *(*xlo_offset_pointer)(struct ocfs2_xa_loc *loc, int offset);
151 int (*xlo_can_reuse)(struct ocfs2_xa_loc *loc,
155 int (*xlo_check_space)(struct ocfs2_xa_loc *loc,
162 int (*xlo_get_free_start)(struct ocfs2_xa_loc *loc);
168 void (*xlo_wipe_namevalue)(struct ocfs2_xa_loc *loc);
171 void (*xlo_add_entry)(struct ocfs2_xa_loc *loc, u32 name_hash);
174 void (*xlo_add_namevalue)(struct ocfs2_xa_loc *loc, int size);
180 void (*xlo_fill_value_buf)(struct ocfs2_xa_loc *loc,
[all …]
/kernel/liteos_a/testsuites/unittest/libc/io/full/
DIO_test_strncasecmp_l_002.cpp40 locale_t loc; in testcase1() local
47 ret = strncasecmp_l(a, b, n, loc); in testcase1()
63 locale_t loc; in testcase2() local
70 ret = strncasecmp_l(a, b, n, loc); in testcase2()
86 locale_t loc; in testcase3() local
93 ret = strncasecmp_l(a, b, n, loc); in testcase3()
109 locale_t loc; in testcase4() local
116 ret = strncasecmp_l(a, b, n, loc); in testcase4()
DIO_test_strcasecmp_l_001.cpp39 locale_t loc; in testcase() local
42 if (!strcasecmp_l(a, b, loc)) { in testcase()
45 ICUNIT_ASSERT_EQUAL(strcasecmp_l(a, b, loc), 0, strcasecmp_l(a, b, loc)); in testcase()
DIO_test_strfmon_l_001.cpp39 locale_t loc; in testcase() local
41 ret = strfmon_l(buf, sizeof(buf), loc, "[%^=*#6n] [%=*#6i]", 1234.567, 1234.567); in testcase()
44 ret = strfmon_l(buf, sizeof(buf), loc, "[%^=*#6n] [%=*#6i]", 134.567, 1234.567); in testcase()
47 ret = strfmon_l(buf, sizeof(buf), loc, "[%^=*#6n] [%=*#6i]", 1234.567, 134.567); in testcase()
DIO_test_strncasecmp_l_001.cpp40 locale_t loc; in testcase() local
43 if (!strncasecmp_l(a, b, n, loc)) { in testcase()
46 ICUNIT_ASSERT_EQUAL(strncasecmp_l(a, b, n, loc), 0, strncasecmp_l(a, b, n, loc)); in testcase()
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/
Dqib_sd7220.c98 static int qib_sd7220_reg_mod(struct qib_devdata *dd, int sdnum, u32 loc,
100 static int ibsd_mod_allchnls(struct qib_devdata *dd, int loc, int val,
178 u32 loc; in qib_resync_ibepb() local
183 loc = IB_PGUDP(chn); in qib_resync_ibepb()
184 ret = qib_sd7220_reg_mod(dd, IB_7220_SERDES, loc, 0, 0); in qib_resync_ibepb()
192 ret = qib_sd7220_reg_mod(dd, IB_7220_SERDES, loc, pat, 0xFF); in qib_resync_ibepb()
197 ret = qib_sd7220_reg_mod(dd, IB_7220_SERDES, loc, 0, 0); in qib_resync_ibepb()
206 loc = IB_CMUDONE(chn); in qib_resync_ibepb()
207 ret = qib_sd7220_reg_mod(dd, IB_7220_SERDES, loc, 0, 0); in qib_resync_ibepb()
656 static int qib_sd7220_reg_mod(struct qib_devdata *dd, int sdnum, u32 loc, in qib_sd7220_reg_mod() argument
[all …]
/kernel/linux/linux-5.10/fs/exfat/
Dfatent.c37 static int __exfat_ent_get(struct super_block *sb, unsigned int loc, in __exfat_ent_get() argument
44 sec = FAT_ENT_OFFSET_SECTOR(sb, loc); in __exfat_ent_get()
45 off = FAT_ENT_OFFSET_BYTE_IN_SECTOR(sb, loc); in __exfat_ent_get()
61 int exfat_ent_set(struct super_block *sb, unsigned int loc, in exfat_ent_set() argument
69 sec = FAT_ENT_OFFSET_SECTOR(sb, loc); in exfat_ent_set()
70 off = FAT_ENT_OFFSET_BYTE_IN_SECTOR(sb, loc); in exfat_ent_set()
84 int exfat_ent_get(struct super_block *sb, unsigned int loc, in exfat_ent_get() argument
90 if (!is_valid_cluster(sbi, loc)) { in exfat_ent_get()
92 loc); in exfat_ent_get()
96 err = __exfat_ent_get(sb, loc, content); in exfat_ent_get()
[all …]
/kernel/linux/linux-5.10/tools/perf/scripts/python/
Dnet_dropmonitor.py28 loc = int(line.split()[0], 16)
30 kallsyms.append((loc, name))
34 loc = int(sloc)
41 if loc < kallsyms[pivot][0]:
50 return (name, loc - symloc)

12345678