Home
last modified time | relevance | path

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

1234

/linux-3.4.99/arch/s390/kernel/
Dmodule.c177 Elf_Addr loc, val; in apply_rela() local
181 loc = base + rela->r_offset; in apply_rela()
198 *(unsigned char *) loc = val; in apply_rela()
200 *(unsigned short *) loc = (val & 0xfff) | in apply_rela()
201 (*(unsigned short *) loc & 0xf000); in apply_rela()
203 *(unsigned short *) loc = val; in apply_rela()
205 *(unsigned int *) loc = in apply_rela()
206 (*(unsigned int *) loc & 0xf00000ff) | in apply_rela()
209 *(unsigned int *) loc = val; in apply_rela()
211 *(unsigned long *) loc = val; in apply_rela()
[all …]
/linux-3.4.99/arch/h8300/kernel/
Dmodule.c27 uint32_t *loc = (uint32_t *)(sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add() local
37 loc = (uint32_t *)((uint32_t)loc - 1); in apply_relocate_add()
38 *loc = (*loc & 0xff000000) | ((*loc & 0xffffff) + v); in apply_relocate_add()
42 *loc += v; in apply_relocate_add()
46 *loc += v; in apply_relocate_add()
49 v -= (unsigned long)loc + 2; in apply_relocate_add()
54 *(unsigned short *)loc = v; in apply_relocate_add()
57 v -= (unsigned long)loc + 1; in apply_relocate_add()
62 *(unsigned char *)loc = v; in apply_relocate_add()
/linux-3.4.99/arch/arm/kernel/
Dmodule.c59 unsigned long loc; in apply_relocate() local
84 loc = dstsec->sh_addr + rel->r_offset; in apply_relocate()
92 *(u32 *)loc += sym->st_value; in apply_relocate()
98 offset = (*(u32 *)loc & 0x00ffffff) << 2; in apply_relocate()
102 offset += sym->st_value - loc; in apply_relocate()
108 ELF32_R_TYPE(rel->r_info), loc, in apply_relocate()
115 *(u32 *)loc &= 0xff000000; in apply_relocate()
116 *(u32 *)loc |= offset & 0x00ffffff; in apply_relocate()
124 *(u32 *)loc &= 0xf000000f; in apply_relocate()
125 *(u32 *)loc |= 0x01a0f000; in apply_relocate()
[all …]
/linux-3.4.99/arch/parisc/kernel/
Dmodule.c101 static inline int in_init(struct module *me, void *loc) in in_init() argument
103 return (loc >= me->module_init && in in_init()
104 loc <= (me->module_init + me->init_size)); in in_init()
107 static inline int in_core(struct module *me, void *loc) in in_core() argument
109 return (loc >= me->module_core && in in_core()
110 loc <= (me->module_core + me->core_size)); in in_core()
113 static inline int in_local(struct module *me, void *loc) in in_local() argument
115 return in_init(me, loc) || in_core(me, loc); in in_local()
553 Elf32_Word *loc; in apply_relocate_add() local
566 loc = (void *)sechdrs[targetsec].sh_addr in apply_relocate_add()
[all …]
/linux-3.4.99/arch/score/kernel/
Dmodule.c41 unsigned long loc; in apply_relocate() local
64 loc = dstsec->sh_addr + rel->r_offset; in apply_relocate()
69 *(unsigned long *)loc += sym->st_value; in apply_relocate()
77 temp_hi = *((unsigned long *)loc - 1); in apply_relocate()
78 temp = *(unsigned long *)loc; in apply_relocate()
91 *((unsigned long *)loc - 1) = temp_hi; in apply_relocate()
96 *(unsigned long *)loc = temp; in apply_relocate()
104 temp = *(unsigned long *)loc; in apply_relocate()
115 *(unsigned long *)loc = temp; in apply_relocate()
/linux-3.4.99/fs/ntfs/
Drunlist.c219 int dsize, runlist_element *src, int ssize, int loc) in ntfs_rl_append() argument
228 if ((loc + 1) < dsize) in ntfs_rl_append()
229 right = ntfs_are_rl_mergeable(src + ssize - 1, dst + loc + 1); in ntfs_rl_append()
242 __ntfs_rl_merge(src + ssize - 1, dst + loc + 1); in ntfs_rl_append()
245 marker = loc + ssize + 1; in ntfs_rl_append()
248 ntfs_rl_mm(dst, marker, loc + 1 + right, dsize - (loc + 1 + right)); in ntfs_rl_append()
249 ntfs_rl_mc(dst, loc + 1, src, 0, ssize); in ntfs_rl_append()
252 dst[loc].length = dst[loc + 1].vcn - dst[loc].vcn; in ntfs_rl_append()
286 int dsize, runlist_element *src, int ssize, int loc) in ntfs_rl_insert() argument
299 if (loc == 0) in ntfs_rl_insert()
[all …]
/linux-3.4.99/arch/x86/kernel/
Dmodule.c97 void *loc; in apply_relocate_add() local
104 loc = (void *)sechdrs[sechdrs[relsec].sh_info].sh_addr in apply_relocate_add()
114 sym->st_value, rel[i].r_addend, (u64)loc); in apply_relocate_add()
122 *(u64 *)loc = val; in apply_relocate_add()
125 *(u32 *)loc = val; in apply_relocate_add()
126 if (val != *(u32 *)loc) in apply_relocate_add()
130 *(s32 *)loc = val; in apply_relocate_add()
131 if ((s64)val != *(s32 *)loc) in apply_relocate_add()
135 val -= (u64)loc; in apply_relocate_add()
136 *(u32 *)loc = val; in apply_relocate_add()
[all …]
/linux-3.4.99/drivers/macintosh/
Dwindfarm_max6690_sensor.c93 u8 addr, const char *loc) in wf_max6690_create() argument
99 if (!strcmp(loc, "BACKSIDE")) in wf_max6690_create()
101 else if (!strcmp(loc, "NB Ambient")) in wf_max6690_create()
103 else if (!strcmp(loc, "GPU Ambient")) in wf_max6690_create()
134 const char *loc; in wf_max6690_attach() local
152 loc = of_get_property(dev, "hwsensor-location", NULL); in wf_max6690_attach()
153 if (loc == NULL || addr == 0) in wf_max6690_attach()
155 printk("found max6690, loc=%s addr=0x%02x\n", loc, addr); in wf_max6690_attach()
156 wf_max6690_create(adapter, addr, loc); in wf_max6690_attach()
Dwindfarm_lm75_sensor.c119 const char *loc) in wf_lm75_create() argument
132 if (!strcmp(loc, "Hard drive") || !strcmp(loc, "DRIVE BAY")) in wf_lm75_create()
134 else if (!strcmp(loc, "Incoming Air Temp")) in wf_lm75_create()
136 else if (!strcmp(loc, "ODD Temp")) in wf_lm75_create()
138 else if (!strcmp(loc, "HD Temp")) in wf_lm75_create()
182 const char *loc = in wf_lm75_attach() local
192 if (loc == NULL || addr == 0) in wf_lm75_attach()
196 wf_lm75_create(adapter, addr, 0, loc); in wf_lm75_attach()
199 wf_lm75_create(adapter, addr, 1, loc); in wf_lm75_attach()
Dwindfarm_smu_sat.c237 const char *loc, *type; in wf_sat_probe() local
260 loc = of_get_property(child, "location", NULL); in wf_sat_probe()
261 if (reg == NULL || loc == NULL) in wf_sat_probe()
270 if (strncmp(loc, "CPU ", 4) != 0) in wf_sat_probe()
272 chip = loc[4] - 'A'; in wf_sat_probe()
273 core = loc[5] - '0'; in wf_sat_probe()
276 "location %s for %s\n", loc, child->full_name); in wf_sat_probe()
284 "multiple CPU chips on one SAT (%s)\n", loc); in wf_sat_probe()
/linux-3.4.99/fs/ocfs2/
Dxattr.c148 int (*xlo_journal_access)(handle_t *handle, struct ocfs2_xa_loc *loc,
150 void (*xlo_journal_dirty)(handle_t *handle, struct ocfs2_xa_loc *loc);
156 void *(*xlo_offset_pointer)(struct ocfs2_xa_loc *loc, int offset);
159 int (*xlo_can_reuse)(struct ocfs2_xa_loc *loc,
163 int (*xlo_check_space)(struct ocfs2_xa_loc *loc,
170 int (*xlo_get_free_start)(struct ocfs2_xa_loc *loc);
176 void (*xlo_wipe_namevalue)(struct ocfs2_xa_loc *loc);
179 void (*xlo_add_entry)(struct ocfs2_xa_loc *loc, u32 name_hash);
182 void (*xlo_add_namevalue)(struct ocfs2_xa_loc *loc, int size);
188 void (*xlo_fill_value_buf)(struct ocfs2_xa_loc *loc,
[all …]
/linux-3.4.99/arch/unicore32/kernel/
Dmodule.c51 unsigned long loc; in apply_relocate() local
75 loc = dstsec->sh_addr + rel->r_offset; in apply_relocate()
83 *(u32 *)loc += sym->st_value; in apply_relocate()
89 offset = (*(u32 *)loc & 0x00ffffff) << 2; in apply_relocate()
93 offset += sym->st_value - loc; in apply_relocate()
106 *(u32 *)loc &= 0xff000000; in apply_relocate()
107 *(u32 *)loc |= offset & 0x00ffffff; in apply_relocate()
/linux-3.4.99/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()
651 static int qib_sd7220_reg_mod(struct qib_devdata *dd, int sdnum, u32 loc, in qib_sd7220_reg_mod() argument
[all …]
/linux-3.4.99/arch/blackfin/kernel/
Dshadow_console.c59 int *loc = (int *)SHADOW_CONSOLE_MAGIC_LOC; in mark_shadow_error() local
60 loc[0] = SHADOW_CONSOLE_MAGIC; in mark_shadow_error()
61 loc[1] = SHADOW_CONSOLE_START; in mark_shadow_error()
81 int *loc = (int *)SHADOW_CONSOLE_MAGIC_LOC; in disable_shadow_console() local
83 loc[0] = 0; in disable_shadow_console()
/linux-3.4.99/tools/perf/scripts/python/
Dnet_dropmonitor.py30 loc = int(line.split()[0], 16)
35 kallsyms.append({ 'loc': loc, 'name' : name})
42 loc = int(sloc)
44 if loc >= i['loc']:
45 return (i['name'], loc - i['loc'])
/linux-3.4.99/arch/cris/kernel/
Dmodule.c61 uint32_t *loc in apply_relocate_add() local
71 *loc = sym->st_value + rela[i].r_addend; in apply_relocate_add()
74 *loc = sym->st_value - (unsigned)loc + rela[i].r_addend - 4; in apply_relocate_add()
/linux-3.4.99/arch/powerpc/kernel/
Drtas-proc.c249 struct individual_sensor *s, int state, int error, const char *loc);
252 struct individual_sensor *s, const char *loc);
432 const char *loc; in ppc_rtas_sensors_show() local
436 loc = of_get_property(rtas_node, rstr, &llen); in ppc_rtas_sensors_show()
443 ppc_rtas_process_sensor(m, p, state, error, loc); in ppc_rtas_sensors_show()
445 if (loc) { in ppc_rtas_sensors_show()
446 offs += strlen(loc) + 1; in ppc_rtas_sensors_show()
447 loc += strlen(loc) + 1; in ppc_rtas_sensors_show()
449 loc = NULL; in ppc_rtas_sensors_show()
516 struct individual_sensor *s, int state, int error, const char *loc) in ppc_rtas_process_sensor() argument
[all …]
/linux-3.4.99/fs/udf/
Dmisc.c49 uint32_t type, uint8_t loc) in udf_add_extendedattr() argument
69 if (loc & 0x01 && offset >= size) { in udf_add_extendedattr()
145 if (loc & 0x02) in udf_add_extendedattr()
262 struct kernel_lb_addr *loc, in udf_read_ptagged() argument
265 return udf_read_tagged(sb, udf_get_lb_pblock(sb, loc, offset), in udf_read_ptagged()
266 loc->logicalBlockNum + offset, ident); in udf_read_ptagged()
280 uint32_t loc, int length) in udf_new_tag() argument
286 tptr->tagLocation = cpu_to_le32(loc); in udf_new_tag()
Dpartition.c53 uint32_t loc; in udf_get_pblock_virt15() local
69 loc = le32_to_cpu(((__le32 *)(iinfo->i_ext.i_data + in udf_get_pblock_virt15()
83 loc = udf_block_map(sbi->s_vat_inode, newblock); in udf_get_pblock_virt15()
85 bh = sb_bread(sb, loc); in udf_get_pblock_virt15()
88 sb, block, partition, loc, index); in udf_get_pblock_virt15()
92 loc = le32_to_cpu(((__le32 *)bh->b_data)[index]); in udf_get_pblock_virt15()
102 return udf_get_pblock(sb, loc, in udf_get_pblock_virt15()
/linux-3.4.99/drivers/input/mouse/
Dtrackpoint.c25 static int trackpoint_read(struct ps2dev *ps2dev, unsigned char loc, unsigned char *results) in trackpoint_read() argument
28 ps2_command(ps2dev, results, MAKE_PS2_CMD(0, 1, loc))) { in trackpoint_read()
35 static int trackpoint_write(struct ps2dev *ps2dev, unsigned char loc, unsigned char val) in trackpoint_write() argument
39 ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, loc)) || in trackpoint_write()
47 static int trackpoint_toggle_bit(struct ps2dev *ps2dev, unsigned char loc, unsigned char mask) in trackpoint_toggle_bit() argument
50 if (loc < 0x20 || loc >= 0x2F) in trackpoint_toggle_bit()
55 ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, loc)) || in trackpoint_toggle_bit()
/linux-3.4.99/arch/powerpc/include/asm/
Dexception-64s.h217 #define STD_EXCEPTION_PSERIES(loc, vec, label) \ argument
218 . = loc; \
226 #define STD_EXCEPTION_HV(loc, vec, label) \ argument
227 . = loc; \
268 #define MASKABLE_EXCEPTION_PSERIES(loc, vec, label) \ argument
269 . = loc; \
275 #define MASKABLE_EXCEPTION_HV(loc, vec, label) \ argument
276 . = loc; \
/linux-3.4.99/lib/reed_solomon/
Ddecode_rs.c36 uint16_t root[nroots], reg[nroots + 1], loc[nroots]; variable
193 loc[count] = k;
246 if (num1 != 0 && loc[j] >= pad) {
258 if (data && (loc[j] < (nn - nroots)))
259 data[loc[j] - pad] ^= cor;
267 eras_pos[i] = loc[i] - pad;
/linux-3.4.99/fs/
Dbinfmt_elf.c576 } *loc; in load_elf_binary() local
578 loc = kmalloc(sizeof(*loc), GFP_KERNEL); in load_elf_binary()
579 if (!loc) { in load_elf_binary()
585 loc->elf_ex = *((struct elfhdr *)bprm->buf); in load_elf_binary()
589 if (memcmp(loc->elf_ex.e_ident, ELFMAG, SELFMAG) != 0) in load_elf_binary()
592 if (loc->elf_ex.e_type != ET_EXEC && loc->elf_ex.e_type != ET_DYN) in load_elf_binary()
594 if (!elf_check_arch(&loc->elf_ex)) in load_elf_binary()
600 if (loc->elf_ex.e_phentsize != sizeof(struct elf_phdr)) in load_elf_binary()
602 if (loc->elf_ex.e_phnum < 1 || in load_elf_binary()
603 loc->elf_ex.e_phnum > 65536U / sizeof(struct elf_phdr)) in load_elf_binary()
[all …]
/linux-3.4.99/security/selinux/ss/
Dsidtab.c150 static void sidtab_update_cache(struct sidtab *s, struct sidtab_node *n, int loc) in sidtab_update_cache() argument
152 BUG_ON(loc >= SIDTAB_CACHE_LEN); in sidtab_update_cache()
154 while (loc > 0) { in sidtab_update_cache()
155 s->cache[loc] = s->cache[loc - 1]; in sidtab_update_cache()
156 loc--; in sidtab_update_cache()
/linux-3.4.99/drivers/rtc/
Drtc-pcf8583.c24 unsigned int loc; member
151 if (mem->loc < 8) in pcf8583_read_mem()
154 addr[0] = mem->loc; in pcf8583_read_mem()
164 if (mem->loc < 8 || mem->nr > 8) in pcf8583_write_mem()
167 buf[0] = mem->loc; in pcf8583_write_mem()

1234