Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 248) sorted by relevance

12345678910

/arch/powerpc/platforms/powermac/
Dpfunc_core.c95 static u32 pmf_next32(struct pmf_cmd *cmd) in pmf_next32() argument
98 if ((cmd->cmdend - cmd->cmdptr) < 4) { in pmf_next32()
99 cmd->error = 1; in pmf_next32()
102 value = *((u32 *)cmd->cmdptr); in pmf_next32()
103 cmd->cmdptr += 4; in pmf_next32()
107 static const void* pmf_next_blob(struct pmf_cmd *cmd, int count) in pmf_next_blob() argument
110 if ((cmd->cmdend - cmd->cmdptr) < count) { in pmf_next_blob()
111 cmd->error = 1; in pmf_next_blob()
114 value = cmd->cmdptr; in pmf_next_blob()
115 cmd->cmdptr += count; in pmf_next_blob()
[all …]
/arch/m68k/atari/
Datakeyb.c341 static const char cmd[2] = { 0x80, 0x01 }; in ikbd_reset() local
343 ikbd_write(cmd, 2); in ikbd_reset()
354 char cmd[2] = { 0x07, mode }; in ikbd_mouse_button_action() local
356 ikbd_write(cmd, 2); in ikbd_mouse_button_action()
362 static const char cmd[1] = { 0x08 }; in ikbd_mouse_rel_pos() local
364 ikbd_write(cmd, 1); in ikbd_mouse_rel_pos()
371 char cmd[5] = { 0x09, xmax>>8, xmax&0xFF, ymax>>8, ymax&0xFF }; in ikbd_mouse_abs_pos() local
373 ikbd_write(cmd, 5); in ikbd_mouse_abs_pos()
379 char cmd[3] = { 0x0A, dx, dy }; in ikbd_mouse_kbd_mode() local
381 ikbd_write(cmd, 3); in ikbd_mouse_kbd_mode()
[all …]
/arch/arm/mach-msm/
Ddma.c46 void msm_dmov_stop_cmd(unsigned id, struct msm_dmov_cmd *cmd, int graceful) in msm_dmov_stop_cmd() argument
51 void msm_dmov_enqueue_cmd(unsigned id, struct msm_dmov_cmd *cmd) in msm_dmov_enqueue_cmd() argument
67 list_add_tail(&cmd->list, &active_commands[id]); in msm_dmov_enqueue_cmd()
71 writel(cmd->cmdptr, DMOV_CMD_PTR(id)); in msm_dmov_enqueue_cmd()
77 list_add_tail(&cmd->list, &ready_commands[id]); in msm_dmov_enqueue_cmd()
95 …struct msm_dmov_exec_cmdptr_cmd *cmd = container_of(_cmd, struct msm_dmov_exec_cmdptr_cmd, dmov_cm… in dmov_exec_cmdptr_complete_func() local
96 cmd->result = result; in dmov_exec_cmdptr_complete_func()
98 memcpy(&cmd->err, err, sizeof(struct msm_dmov_errdata)); in dmov_exec_cmdptr_complete_func()
100 complete(&cmd->complete); in dmov_exec_cmdptr_complete_func()
105 struct msm_dmov_exec_cmdptr_cmd cmd; in msm_dmov_exec_cmd() local
[all …]
/arch/ia64/xen/
Dxcom_hcall.c50 xencomm_hypercall_console_io(int cmd, int count, char *str) in xencomm_hypercall_console_io() argument
59 (cmd, count, xencomm_map_no_alloc(str, count)); in xencomm_hypercall_console_io()
64 xencomm_hypercall_event_channel_op(int cmd, void *op) in xencomm_hypercall_event_channel_op() argument
71 return xencomm_arch_hypercall_event_channel_op(cmd, desc); in xencomm_hypercall_event_channel_op()
76 xencomm_hypercall_xen_version(int cmd, void *arg) in xencomm_hypercall_xen_version() argument
81 switch (cmd) { in xencomm_hypercall_xen_version()
84 return xencomm_arch_hypercall_xen_version(cmd, 0); in xencomm_hypercall_xen_version()
106 "%s: unknown version op %d\n", __func__, cmd); in xencomm_hypercall_xen_version()
114 return xencomm_arch_hypercall_xen_version(cmd, desc); in xencomm_hypercall_xen_version()
119 xencomm_hypercall_physdev_op(int cmd, void *op) in xencomm_hypercall_physdev_op() argument
[all …]
/arch/ia64/include/asm/xen/
Dhypercall.h43 unsigned long a5, unsigned long cmd);
108 xencomm_arch_hypercall_sched_op(int cmd, struct xencomm_handle *arg) in xencomm_arch_hypercall_sched_op() argument
110 return _hypercall2(int, sched_op_new, cmd, arg); in xencomm_arch_hypercall_sched_op()
129 xencomm_arch_hypercall_memory_op(unsigned int cmd, struct xencomm_handle *arg) in xencomm_arch_hypercall_memory_op() argument
131 return _hypercall2(int, memory_op, cmd, arg); in xencomm_arch_hypercall_memory_op()
135 xencomm_arch_hypercall_event_channel_op(int cmd, struct xencomm_handle *arg) in xencomm_arch_hypercall_event_channel_op() argument
137 return _hypercall2(int, event_channel_op, cmd, arg); in xencomm_arch_hypercall_event_channel_op()
141 xencomm_arch_hypercall_xen_version(int cmd, struct xencomm_handle *arg) in xencomm_arch_hypercall_xen_version() argument
143 return _hypercall2(int, xen_version, cmd, arg); in xencomm_arch_hypercall_xen_version()
147 xencomm_arch_hypercall_console_io(int cmd, int count, in xencomm_arch_hypercall_console_io() argument
[all …]
Dxcom_hcall.h26 extern int xencomm_hypercall_console_io(int cmd, int count, char *str);
28 extern int xencomm_hypercall_event_channel_op(int cmd, void *op);
30 extern int xencomm_hypercall_xen_version(int cmd, void *arg);
32 extern int xencomm_hypercall_physdev_op(int cmd, void *op);
34 extern int xencomm_hypercall_grant_table_op(unsigned int cmd, void *op,
37 extern int xencomm_hypercall_sched_op(int cmd, void *arg);
41 extern int xencomm_hypercall_callback_op(int cmd, void *arg);
43 extern int xencomm_hypercall_memory_op(unsigned int cmd, void *arg);
47 extern long xencomm_hypercall_vcpu_op(int cmd, int cpu, void *arg);
/arch/cris/arch-v10/kernel/
Ddma.c230 *R_DMA_CH0_CMD = IO_STATE(R_DMA_CH0_CMD, cmd, reset); in cris_free_dma()
231 while (IO_EXTRACT(R_DMA_CH0_CMD, cmd, *R_DMA_CH0_CMD) == in cris_free_dma()
232 IO_STATE_VALUE(R_DMA_CH0_CMD, cmd, reset)); in cris_free_dma()
235 *R_DMA_CH1_CMD = IO_STATE(R_DMA_CH1_CMD, cmd, reset); in cris_free_dma()
236 while (IO_EXTRACT(R_DMA_CH1_CMD, cmd, *R_DMA_CH1_CMD) == in cris_free_dma()
237 IO_STATE_VALUE(R_DMA_CH1_CMD, cmd, reset)); in cris_free_dma()
240 *R_DMA_CH2_CMD = IO_STATE(R_DMA_CH2_CMD, cmd, reset); in cris_free_dma()
241 while (IO_EXTRACT(R_DMA_CH2_CMD, cmd, *R_DMA_CH2_CMD) == in cris_free_dma()
242 IO_STATE_VALUE(R_DMA_CH2_CMD, cmd, reset)); in cris_free_dma()
245 *R_DMA_CH3_CMD = IO_STATE(R_DMA_CH3_CMD, cmd, reset); in cris_free_dma()
[all …]
/arch/parisc/hpux/
Dioctl.c43 static int hpux_ioctl_t(int fd, unsigned long cmd, unsigned long arg) in hpux_ioctl_t() argument
46 int nr = _IOC_NR(cmd); in hpux_ioctl_t()
58 int hpux_ioctl(int fd, unsigned long cmd, unsigned long arg) in hpux_ioctl() argument
61 int type = _IOC_TYPE(cmd); in hpux_ioctl()
65 result = sys_ioctl(fd, cmd, arg); in hpux_ioctl()
68 result = hpux_ioctl_t(fd, cmd, arg); in hpux_ioctl()
/arch/x86/kernel/cpu/cpufreq/
Dacpi-cpufreq.c155 struct drv_cmd *cmd = _cmd; in do_drv_read() local
158 switch (cmd->type) { in do_drv_read()
160 rdmsr(cmd->addr.msr.reg, cmd->val, h); in do_drv_read()
163 acpi_os_read_port((acpi_io_address)cmd->addr.io.port, in do_drv_read()
164 &cmd->val, in do_drv_read()
165 (u32)cmd->addr.io.bit_width); in do_drv_read()
175 struct drv_cmd *cmd = _cmd; in do_drv_write() local
178 switch (cmd->type) { in do_drv_write()
180 rdmsr(cmd->addr.msr.reg, lo, hi); in do_drv_write()
181 lo = (lo & ~INTEL_MSR_RANGE) | (cmd->val & INTEL_MSR_RANGE); in do_drv_write()
[all …]
/arch/x86/include/asm/xen/
Dhypercall.h259 HYPERVISOR_callback_op(int cmd, void *arg) in HYPERVISOR_callback_op() argument
261 return _hypercall2(int, callback_op, cmd, arg); in HYPERVISOR_callback_op()
271 HYPERVISOR_sched_op(int cmd, void *arg) in HYPERVISOR_sched_op() argument
273 return _hypercall2(int, sched_op_new, cmd, arg); in HYPERVISOR_sched_op()
303 HYPERVISOR_memory_op(unsigned int cmd, void *arg) in HYPERVISOR_memory_op() argument
305 return _hypercall2(int, memory_op, cmd, arg); in HYPERVISOR_memory_op()
327 HYPERVISOR_event_channel_op(int cmd, void *arg) in HYPERVISOR_event_channel_op() argument
329 int rc = _hypercall2(int, event_channel_op, cmd, arg); in HYPERVISOR_event_channel_op()
332 op.cmd = cmd; in HYPERVISOR_event_channel_op()
341 HYPERVISOR_xen_version(int cmd, void *arg) in HYPERVISOR_xen_version() argument
[all …]
/arch/x86/kernel/
Dcpuid.c56 struct cpuid_regs *cmd = (struct cpuid_regs *)cmd_block; in cpuid_smp_cpuid() local
58 cpuid_count(cmd->eax, cmd->ecx, in cpuid_smp_cpuid()
59 &cmd->eax, &cmd->ebx, &cmd->ecx, &cmd->edx); in cpuid_smp_cpuid()
88 struct cpuid_regs cmd; in cpuid_read() local
98 cmd.eax = pos; in cpuid_read()
99 cmd.ecx = pos >> 32; in cpuid_read()
100 err = smp_call_function_single(cpu, cpuid_smp_cpuid, &cmd, 1); in cpuid_read()
103 if (copy_to_user(tmp, &cmd, 16)) { in cpuid_read()
/arch/powerpc/kernel/
Dsmp-tbsync.c26 volatile int cmd; member
46 int cmd; in smp_generic_take_timebase() local
61 cmd = tbsync->cmd; in smp_generic_take_timebase()
65 if (cmd == kExit) in smp_generic_take_timebase()
70 if (cmd == kSetAndTest) in smp_generic_take_timebase()
77 static int __devinit start_contest(int cmd, long offset, int num) in start_contest() argument
83 tbsync->cmd = cmd; in start_contest()
161 tbsync->cmd = kExit; in smp_generic_give_timebase()
/arch/cris/arch-v32/drivers/pci/
Dbios.c60 u16 cmd, old_cmd; in pcibios_enable_resources() local
64 pci_read_config_word(dev, PCI_COMMAND, &cmd); in pcibios_enable_resources()
65 old_cmd = cmd; in pcibios_enable_resources()
77 cmd |= PCI_COMMAND_IO; in pcibios_enable_resources()
79 cmd |= PCI_COMMAND_MEMORY; in pcibios_enable_resources()
82 cmd |= PCI_COMMAND_MEMORY; in pcibios_enable_resources()
83 if (cmd != old_cmd) { in pcibios_enable_resources()
84 printk("PCI: Enabling device %s (%04x -> %04x)\n", pci_name(dev), old_cmd, cmd); in pcibios_enable_resources()
85 pci_write_config_word(dev, PCI_COMMAND, cmd); in pcibios_enable_resources()
/arch/xtensa/kernel/
Dpci.c97 u16 cmd, old_cmd; in pcibios_enable_resources() local
101 pci_read_config_word(dev, PCI_COMMAND, &cmd); in pcibios_enable_resources()
102 old_cmd = cmd; in pcibios_enable_resources()
111 cmd |= PCI_COMMAND_IO; in pcibios_enable_resources()
113 cmd |= PCI_COMMAND_MEMORY; in pcibios_enable_resources()
116 cmd |= PCI_COMMAND_MEMORY; in pcibios_enable_resources()
117 if (cmd != old_cmd) { in pcibios_enable_resources()
119 pci_name(dev), old_cmd, cmd); in pcibios_enable_resources()
120 pci_write_config_word(dev, PCI_COMMAND, cmd); in pcibios_enable_resources()
241 u16 cmd, old_cmd; in pcibios_enable_device() local
[all …]
/arch/powerpc/include/asm/
Dsmu.h394 u8 cmd; /* command */ member
400 void (*done)(struct smu_cmd *cmd, void *misc);
410 extern int smu_queue_cmd(struct smu_cmd *cmd);
418 struct smu_cmd cmd; member
428 void (*done)(struct smu_cmd *cmd, void *misc),
437 extern void smu_done_complete(struct smu_cmd *cmd, void *misc);
442 extern void smu_spinwait_cmd(struct smu_cmd *cmd);
446 smu_spinwait_cmd(&scmd->cmd); in smu_spinwait_simple()
504 void (*done)(struct smu_i2c_cmd *cmd, void *misc);
523 extern int smu_queue_i2c(struct smu_i2c_cmd *cmd);
[all …]
/arch/mips/lasat/
Dpicvue.c173 static void pvc_funcset(u8 cmd) in pvc_funcset() argument
175 pvc_write(FUNC_SET_CMD | (cmd & (EIGHT_BYTE|TWO_LINES|LARGE_FONT)), in pvc_funcset()
184 static void pvc_entrymode(u8 cmd) in pvc_entrymode() argument
186 pvc_write(ENTRYMODE_CMD | (cmd & (AUTO_INC|CURSOR_FOLLOWS_DISP)), in pvc_entrymode()
195 void pvc_dispcnt(u8 cmd) in pvc_dispcnt() argument
197 pvc_write(DISP_CNT_CMD | (cmd & (DISP_ON|CUR_ON|CUR_BLINK)), MODE_INST); in pvc_dispcnt()
205 void pvc_move(u8 cmd) in pvc_move() argument
207 pvc_write(MOVE_CMD | (cmd & (DISPLAY|RIGHT)), MODE_INST); in pvc_move()
224 u8 cmd = EIGHT_BYTE; in pvc_init() local
227 cmd |= (SMALL_FONT|TWO_LINES); in pvc_init()
[all …]
/arch/mips/kernel/
Dkspd.c40 int cmd; member
147 static int translate_syscall_command(int cmd) in translate_syscall_command() argument
153 if ((cmd == syscall_command_table[i].sp)) in translate_syscall_command()
199 int cmd; in sp_work_handle_request() local
231 switch (sc.cmd) { in sp_work_handle_request()
266 sc.cmd = __NR_open; in sp_work_handle_request()
271 if ((sc.cmd >= __NR_Linux) && in sp_work_handle_request()
272 (sc.cmd <= (__NR_Linux + __NR_Linux_syscalls)) ) in sp_work_handle_request()
273 cmd = sc.cmd; in sp_work_handle_request()
275 cmd = translate_syscall_command(sc.cmd); in sp_work_handle_request()
[all …]
/arch/sh/drivers/pci/
Dpci.c84 u16 cmd, old_cmd; in pcibios_enable_device() local
88 pci_read_config_word(dev, PCI_COMMAND, &cmd); in pcibios_enable_device()
89 old_cmd = cmd; in pcibios_enable_device()
100 cmd |= PCI_COMMAND_IO; in pcibios_enable_device()
102 cmd |= PCI_COMMAND_MEMORY; in pcibios_enable_device()
105 cmd |= PCI_COMMAND_MEMORY; in pcibios_enable_device()
106 if (cmd != old_cmd) { in pcibios_enable_device()
108 pci_name(dev), old_cmd, cmd); in pcibios_enable_device()
109 pci_write_config_word(dev, PCI_COMMAND, cmd); in pcibios_enable_device()
/arch/arm/mach-footbridge/
Ddc21285.c160 unsigned int cmd; in dc21285_abort_irq() local
163 cmd = *CSR_PCICMD; in dc21285_abort_irq()
164 status = cmd >> 16; in dc21285_abort_irq()
165 cmd = cmd & 0xffff; in dc21285_abort_irq()
170 cmd |= PCI_STATUS_REC_MASTER_ABORT << 16; in dc21285_abort_irq()
180 cmd |= PCI_STATUS_REC_TARGET_ABORT << 16; in dc21285_abort_irq()
183 *CSR_PCICMD = cmd; in dc21285_abort_irq()
220 unsigned int cmd; in dc21285_dparity_irq() local
226 cmd = *CSR_PCICMD & 0xffff; in dc21285_dparity_irq()
227 *CSR_PCICMD = cmd | 1 << 24; in dc21285_dparity_irq()
[all …]
/arch/s390/kernel/
Dcpcmd.c75 int __cpcmd(const char *cmd, char *response, int rlen, int *response_code) in __cpcmd() argument
81 cmdlen = strlen(cmd); in __cpcmd()
83 memcpy(cpcmd_buf, cmd, cmdlen); in __cpcmd()
100 int cpcmd(const char *cmd, char *response, int rlen, int *response_code) in cpcmd() argument
115 len = __cpcmd(cmd, lowbuf, rlen, response_code); in cpcmd()
121 len = __cpcmd(cmd, response, rlen, response_code); in cpcmd()
/arch/powerpc/platforms/cell/spufs/
Dspu_save.c67 unsigned int cmd = 0x24; /* PUTL */ in save_upper_240kb() local
78 spu_writech(MFC_Cmd, cmd); in save_upper_240kb()
123 unsigned int cmd = 0x20; /* PUT */ in spill_regs_to_mem() local
134 spu_writech(MFC_Cmd, cmd); in spill_regs_to_mem()
140 unsigned int cmd = 0xCC; in enqueue_sync() local
146 spu_writech(MFC_Cmd, cmd); in enqueue_sync()
/arch/arm/mach-msm/include/mach/
Ddma.h28 void (*complete_func)(struct msm_dmov_cmd *cmd,
33 void msm_dmov_enqueue_cmd(unsigned id, struct msm_dmov_cmd *cmd);
34 void msm_dmov_stop_cmd(unsigned id, struct msm_dmov_cmd *cmd, int graceful);
115 unsigned cmd; member
123 unsigned cmd; member
131 uint32_t cmd; member
/arch/blackfin/mach-common/
Dirqpanic.c48 unsigned int cmd, tag, ca, cache_hi, cache_lo, *pa; in irq_panic() local
65 cmd = (((ca & 0x3000) << 4) | /* ca[13:12] for SBNK[1:0] */ in irq_panic()
71 bfin_write_ITEST_COMMAND(cmd); in irq_panic()
80 cmd = ((((ca + j) & 0x3000) << 4) | /* ca[13:12] for SBNK[1:0] */ in irq_panic()
86 bfin_write_ITEST_COMMAND(cmd); in irq_panic()
/arch/blackfin/mm/
Disram-driver.c67 uint32_t cmd; in isram_write() local
73 cmd = IADDR2DTEST(addr) | 1; /* write */ in isram_write()
86 bfin_write_DTEST_COMMAND(cmd); in isram_write()
97 uint32_t cmd; in isram_read() local
104 cmd = IADDR2DTEST(addr) | 0; /* read */ in isram_read()
113 bfin_write_DTEST_COMMAND(cmd); in isram_read()
/arch/sparc/kernel/
Dreboot.c39 void machine_restart(char *cmd) in machine_restart() argument
46 if (cmd) in machine_restart()
47 prom_reboot(cmd); in machine_restart()

12345678910