Home
last modified time | relevance | path

Searched full:lg (Results 1 – 25 of 123) sorted by relevance

12345

/linux-3.3/drivers/lguest/
Dlguest_user.c17 #include "lg.h"
42 * cpu->lg->eventfds before cpu->lg->eventfds is set. Sounds crazy, in send_notify_to_eventfd()
49 map = rcu_dereference(cpu->lg->eventfds); in send_notify_to_eventfd()
61 /* We're done with the rcu-protected variable cpu->lg->eventfds. */ in send_notify_to_eventfd()
82 * element. Then we make the lg eventfd pointer point to the new array.
90 static int add_eventfd(struct lguest *lg, unsigned long addr, int fd) in add_eventfd() argument
92 struct lg_eventfd_map *new, *old = lg->eventfds; in add_eventfd()
126 * doing "lg->eventfds = new", but it uses memory barriers to make in add_eventfd()
133 rcu_assign_pointer(lg->eventfds, new); in add_eventfd()
153 static int attach_eventfd(struct lguest *lg, const unsigned long __user *input) in attach_eventfd() argument
[all …]
Dpage_tables.c20 #include "lg.h"
106 return &cpu->lg->pgdirs[i].pgdir[index]; in spgd_addr()
164 return cpu->lg->pgdirs[cpu->cpu_pgd].gpgdir + index * sizeof(pgd_t); in gpgd_addr()
244 base = (unsigned long)cpu->lg->mem_base / PAGE_SIZE; in gpte_to_spte()
281 pte_pfn(gpte) >= cpu->lg->pfn_limit) in check_gpte()
288 (pgd_pfn(gpgd) >= cpu->lg->pfn_limit)) in check_gpgd()
296 (pmd_pfn(gpmd) >= cpu->lg->pfn_limit)) in check_gpmd()
601 static void flush_user_mappings(struct lguest *lg, int idx) in flush_user_mappings() argument
605 for (i = 0; i < pgd_index(lg->kernel_address); i++) in flush_user_mappings()
606 release_pgd(lg->pgdirs[idx].pgdir + i); in flush_user_mappings()
[all …]
Dhypercalls.c31 #include "lg.h"
72 cpu->lg->dead = ERR_PTR(-ERESTART); in do_hcall()
102 guest_set_pgd(cpu->lg, args->arg1, args->arg2); in do_hcall()
106 guest_set_pmd(cpu->lg, args->arg1, args->arg2); in do_hcall()
145 if (copy_from_user(&st, &cpu->lg->lguest_data->hcall_status, sizeof(st))) in do_async_hcalls()
173 if (copy_from_user(&args, &cpu->lg->lguest_data->hcalls[n], in do_async_hcalls()
183 if (put_user(0xFF, &cpu->lg->lguest_data->hcall_status[n])) { in do_async_hcalls()
213 kill_guest(cpu, "bad guest page %p", cpu->lg->lguest_data); in initialize()
219 if (get_user(cpu->lg->noirq_start, &cpu->lg->lguest_data->noirq_start) in initialize()
220 || get_user(cpu->lg->noirq_end, &cpu->lg->lguest_data->noirq_end)) in initialize()
[all …]
Dlg.h42 struct lguest *lg; member
123 bool lguest_address_ok(const struct lguest *lg,
174 bool check_syscall_vector(struct lguest *lg);
188 int init_guest_pagetable(struct lguest *lg);
189 void free_guest_pagetable(struct lguest *lg);
191 void guest_set_pgd(struct lguest *lg, unsigned long gpgdir, u32 i);
193 void guest_set_pmd(struct lguest *lg, unsigned long gpgdir, u32 i);
251 if (!(cpu)->lg->dead) { \
252 (cpu)->lg->dead = kasprintf(GFP_ATOMIC, fmt); \
253 if (!(cpu)->lg->dead) \
[all …]
Dcore.c21 #include "lg.h"
171 bool lguest_address_ok(const struct lguest *lg, in lguest_address_ok() argument
174 return (addr+len) / PAGE_SIZE < lg->pfn_limit && (addr+len >= addr); in lguest_address_ok()
184 if (!lguest_address_ok(cpu->lg, addr, bytes) in __lgread()
185 || copy_from_user(b, cpu->lg->mem_base + addr, bytes) != 0) { in __lgread()
196 if (!lguest_address_ok(cpu->lg, addr, bytes) in __lgwrite()
197 || copy_to_user(cpu->lg->mem_base + addr, b, bytes) != 0) in __lgwrite()
210 while (!cpu->lg->dead) { in run_guest()
259 if (cpu->lg->dead) in run_guest()
296 if (cpu->lg->dead == ERR_PTR(-ERESTART)) in run_guest()
[all …]
Dinterrupts_and_traps.c20 #include "lg.h"
116 if (get_user(irq_enable, &cpu->lg->lguest_data->irq_enabled) == 0 in set_guest_interrupt()
147 if (put_user(0, &cpu->lg->lguest_data->irq_enabled)) in set_guest_interrupt()
164 if (!cpu->lg->lguest_data) in interrupt_pending()
171 if (copy_from_user(&blk, cpu->lg->lguest_data->blocked_interrupts, in interrupt_pending()
197 if (cpu->regs->eip >= cpu->lg->noirq_start && in try_deliver_interrupt()
198 (cpu->regs->eip < cpu->lg->noirq_end)) in try_deliver_interrupt()
204 if (put_user(X86_EFLAGS_IF, &cpu->lg->lguest_data->irq_enabled)) in try_deliver_interrupt()
210 if (get_user(irq_enabled, &cpu->lg->lguest_data->irq_enabled)) in try_deliver_interrupt()
215 &cpu->lg->lguest_data->irq_pending); in try_deliver_interrupt()
[all …]
DMakefile5 obj-$(CONFIG_LGUEST) += lg.o
6 lg-y = core.o hypercalls.o page_tables.o interrupts_and_traps.o \
9 lg-$(CONFIG_X86_32) += x86/switcher_32.o x86/core.o
/linux-3.3/arch/s390/kernel/
Dentry64.S93 lg %r9,BASED(.Lsie_loop)
116 0: lg %r14,\stack # are we already on the target stack?
122 1: lg %r15,\stack # load target stack
128 lg \scratch,__LC_EXIT_TIMER
132 lg \scratch,__LC_LAST_UPDATE_TIMER
161 lg %r4,__THREAD_info(%r2) # get thread_info of prev
162 lg %r5,__THREAD_info(%r3) # get thread_info of next
169 lg %r15,__THREAD_ksp(%r3) # load kernel stack of next
189 lg %r10,__LC_LAST_BREAK
190 lg %r12,__LC_THREAD_INFO
[all …]
Dmcount64.S31 lg %r3,168(%r15)
33 lg %r14,0(%r14)
36 lg %r2,168(%r15)
37 lg %r3,272(%r15)
47 lg %r14,112(%r15)
Dswsusp_asm64.S75 lg %r0,__LC_LAST_UPDATE_TIMER
80 lg %r0,__LC_LAST_UPDATE_CLOCK
133 lg %r1,0(%r1)
137 lg %r2,8(%r1)
138 lg %r4,0(%r1)
145 lg %r2,8(%r1)
147 lg %r1,16(%r1)
248 lg %r15,0x2f8(%r13)
Dbase.S17 0: lg %r15,__LC_PANIC_STACK # load panic stack
20 lg %r1,0(%r1)
40 lg %r1,0(%r1)
60 lg %r1,0(%r1)
93 lg %r4,0(%r4) # Save PSW
Dhead_kdump.S27 lg %r2,0(%r2) # already relocated:
35 lg %r2,0x418(%r4) # Get kdump base
36 lg %r3,0x420(%r4) # Get kdump size
74 lg %r14,.Lstartup_kdump-0b(%r13)
Dftrace.c36 * lg %r14,8(%r15) # offset 18
41 * > lg %r1,__LC_FTRACE_FUNC # offset 6
44 * lg %r14,8(%15) # offset 18
51 * lg %r14,8(%15) # offset 18
64 " lg %r1,"__stringify(__LC_FTRACE_FUNC)"\n");
/linux-3.3/Documentation/video4linux/
DCARDLIST.tuner26 tuner=25 - LG PAL_I+FM (TAPC-I001D)
27 tuner=26 - LG PAL_I (TAPC-I701D)
28 tuner=27 - LG NTSC+FM (TPI8NSR01F)
29 tuner=28 - LG PAL_BG+FM (TPI8PSB01D)
30 tuner=29 - LG PAL_BG (TPI8PSB11D)
38 tuner=37 - LG PAL (newer TAPC series)
40 tuner=39 - LG NTSC (newer TAPC series)
48 tuner=47 - LG NTSC (TAPE series)
65 tuner=64 - LG TDVS-H06xF
67 tuner=66 - LG TALN series
/linux-3.3/Documentation/dvb/
Dlmedm04.txt31 The LG firmware can be found on the driver
32 disk DM04+_5.1A[LG] in BDADriver/driver
34 for DM04 LME2510 (LG Tuner)
43 dvb-usb-lme2510-lg.fw
46 Other LG firmware can be extracted manually from US280D.sys
49 dd if=US280D.sys ibs=1 skip=42360 count=3924 of=dvb-usb-lme2510-lg.fw
51 for DM04 LME2510C (LG Tuner)
54 dd if=US280D.sys ibs=1 skip=35200 count=3850 of=dvb-usb-lme2510c-lg.fw
/linux-3.3/drivers/media/video/
Dtveeprom.c149 { TUNER_LG_NTSC_FM, "LG TP18NSR01F"},
150 { TUNER_LG_PAL_FM, "LG TP18PSB01D"},
151 { TUNER_LG_PAL, "LG TP18PSB11D"},
152 { TUNER_LG_PAL_I_FM, "LG TAPC-I001D"},
154 { TUNER_LG_PAL_I, "LG TAPC-I701D"},
157 { TUNER_ABSENT, "LG TPI8NSR11F"},
165 { TUNER_PHILIPS_FM1216ME_MK3, "LG S001D MK3"},
166 { TUNER_ABSENT, "LG M001D MK3"},
167 { TUNER_PHILIPS_FM1216ME_MK3, "LG S701D MK3"},
168 { TUNER_ABSENT, "LG M701D MK3"},
[all …]
/linux-3.3/arch/s390/kernel/vdso64/
Dclock_gettime.S33 0: lg %r4,__VDSO_UPD_COUNT(%r5) /* load update counter */
37 lg %r1,48(%r15)
42 lg %r0,__VDSO_XTIME_SEC(%r5)
61 5: lg %r4,__VDSO_UPD_COUNT(%r5) /* load update counter */
65 lg %r1,48(%r15)
70 lg %r0,__VDSO_XTIME_SEC(%r5)
Dgettimeofday.S28 lg %r4,__VDSO_UPD_COUNT(%r5) /* load update counter */
32 lg %r1,48(%r15)
37 lg %r0,__VDSO_XTIME_SEC(%r5) /* xtime.tv_sec */
/linux-3.3/arch/s390/include/asm/
Drwsem.h75 " lg %0,%2\n" in __down_read()
105 " lg %0,%2\n" in __down_read_trylock()
135 " lg %0,%2\n" in __down_write_nested()
168 " lg %0,%1\n" in __down_write_trylock()
196 " lg %0,%2\n" in __up_read()
226 " lg %0,%2\n" in __up_write()
256 " lg %0,%2\n" in __downgrade_write()
284 " lg %0,%2\n" in rwsem_atomic_add()
310 " lg %0,%2\n" in rwsem_atomic_update()
/linux-3.3/Documentation/sound/oss/
Dvwsnd256 int lg, rg;
261 lg = word & 0xFF;
263 lg = (lg * mask + mask / 2) / 100;
265 *left = gp->min_gain + gp->gain_step * lg;
279 int lg, rg;
283 lg = (left - gp->min_gain + round) / gp->gain_step;
285 if (lg >= (1 << gp->nbits) || rg >= (1 << gp->nbits))
287 lg = (100 * lg + mask / 2) / mask;
289 word = lg | rg << 8;
/linux-3.3/arch/s390/boot/compressed/
Dhead64.S21 lg %r15,.Lstack-.LPG1(%r13)
26 lg %r2,.Loffset-.LPG1(%r13)
28 lg %r3,.Lmvsize-.LPG1(%r13)
/linux-3.3/sound/mips/
Dad1843.c312 int lg, rg, lm, rm; in ad1843_get_gain() local
316 ad1843_read_multi(ad1843, 2, gp->lfield, &lg, gp->rfield, &rg); in ad1843_get_gain()
318 lg = mask - lg; in ad1843_get_gain()
324 lg = 0; in ad1843_get_gain()
328 return lg << 0 | rg << 8; in ad1843_get_gain()
342 int lg = (newval >> 0) & mask; in ad1843_set_gain() local
344 int lm = (lg == 0) ? 1 : 0; in ad1843_set_gain()
348 lg = mask - lg; in ad1843_set_gain()
353 ad1843_write_multi(ad1843, 2, gp->lfield, lg, gp->rfield, rg); in ad1843_set_gain()
/linux-3.3/drivers/lguest/x86/
Dcore.c50 #include "../lg.h"
173 : "0"(pages), "1"(__pa(cpu->lg->pgdirs[cpu->cpu_pgd].pgdir)) in run_guest_once()
394 * lg->lguest_data could be NULL in lguest_arch_handle_trap()
396 if (cpu->lg->lguest_data && in lguest_arch_handle_trap()
398 &cpu->lg->lguest_data->cr2)) in lguest_arch_handle_trap()
637 if (!lguest_address_ok(cpu->lg, cpu->hcall->arg1, in lguest_arch_init_hypercalls()
638 sizeof(*cpu->lg->lguest_data))) in lguest_arch_init_hypercalls()
642 * Having checked it, we simply set lg->lguest_data to point straight in lguest_arch_init_hypercalls()
648 cpu->lg->lguest_data = cpu->lg->mem_base + cpu->hcall->arg1; in lguest_arch_init_hypercalls()
663 if (put_user(tsc_speed, &cpu->lg->lguest_data->tsc_khz)) in lguest_arch_init_hypercalls()
[all …]
/linux-3.3/drivers/scsi/qla2xxx/
Dqla_mbx.c1589 struct logio_entry_24xx *lg; in qla24xx_login_fabric() local
1604 lg = dma_pool_alloc(ha->s_dma_pool, GFP_KERNEL, &lg_dma); in qla24xx_login_fabric()
1605 if (lg == NULL) { in qla24xx_login_fabric()
1610 memset(lg, 0, sizeof(struct logio_entry_24xx)); in qla24xx_login_fabric()
1612 lg->entry_type = LOGINOUT_PORT_IOCB_TYPE; in qla24xx_login_fabric()
1613 lg->entry_count = 1; in qla24xx_login_fabric()
1614 lg->handle = MAKE_HANDLE(req->id, lg->handle); in qla24xx_login_fabric()
1615 lg->nport_handle = cpu_to_le16(loop_id); in qla24xx_login_fabric()
1616 lg->control_flags = __constant_cpu_to_le16(LCF_COMMAND_PLOGI); in qla24xx_login_fabric()
1618 lg->control_flags |= __constant_cpu_to_le16(LCF_COND_PLOGI); in qla24xx_login_fabric()
[all …]
/linux-3.3/drivers/media/dvb/dvb-usb/
Dlmedm04.h4 * LME2510C + LG TDQY-P001F
5 * LME2510 + LG TDQY-P001F
11 * LG TDQY - P001F =(TDA8263 + TDA10086H)

12345