Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 129) sorted by relevance

123456

/arch/ia64/kernel/
Dmsi_ia64.c18 struct msi_msg msg; in ia64_set_msi_irq_affinity() local
26 __get_cached_msi_msg(irq_data_get_msi_desc(idata), &msg); in ia64_set_msi_irq_affinity()
28 addr = msg.address_lo; in ia64_set_msi_irq_affinity()
31 msg.address_lo = addr; in ia64_set_msi_irq_affinity()
33 data = msg.data; in ia64_set_msi_irq_affinity()
36 msg.data = data; in ia64_set_msi_irq_affinity()
38 pci_write_msi_msg(irq, &msg); in ia64_set_msi_irq_affinity()
47 struct msi_msg msg; in ia64_setup_msi_irq() local
60 msg.address_hi = 0; in ia64_setup_msi_irq()
61 msg.address_lo = in ia64_setup_msi_irq()
[all …]
/arch/m68k/mac/
Diop.c217 static void iop_free_msg(struct iop_msg *msg) in iop_free_msg() argument
219 msg->status = IOP_MSGSTATUS_UNUSED; in iop_free_msg()
340 void iop_complete_message(struct iop_msg *msg) in iop_complete_message() argument
342 int iop_num = msg->iop_num; in iop_complete_message()
343 int chan = msg->channel; in iop_complete_message()
347 printk("iop_complete(%p): iop %d chan %d\n", msg, msg->iop_num, msg->channel); in iop_complete_message()
350 offset = IOP_ADDR_RECV_MSG + (msg->channel * IOP_MSG_LEN); in iop_complete_message()
353 iop_writeb(iop_base[iop_num], offset, msg->reply[i]); in iop_complete_message()
358 iop_interrupt(iop_base[msg->iop_num]); in iop_complete_message()
360 iop_free_msg(msg); in iop_complete_message()
[all …]
/arch/x86/kernel/apic/
Dhtirq.c37 struct ht_irq_msg msg; in ht_set_affinity() local
40 fetch_ht_irq_msg(data->irq, &msg); in ht_set_affinity()
41 msg.address_lo &= ~(HT_IRQ_LOW_VECTOR_MASK | in ht_set_affinity()
43 msg.address_lo |= HT_IRQ_LOW_VECTOR(cfg->vector) | in ht_set_affinity()
45 msg.address_hi &= ~(HT_IRQ_HIGH_DEST_ID_MASK); in ht_set_affinity()
46 msg.address_hi |= HT_IRQ_HIGH_DEST_ID(cfg->dest_apicid); in ht_set_affinity()
47 write_ht_irq_msg(data->irq, &msg); in ht_set_affinity()
93 ht_cfg->msg.address_lo = 0xffffffff; in htirq_domain_alloc()
94 ht_cfg->msg.address_hi = 0xffffffff; in htirq_domain_alloc()
118 struct ht_irq_msg msg; in htirq_domain_activate() local
[all …]
/arch/s390/mm/
Dcmm.c363 static void cmm_smsg_target(const char *from, char *msg) in cmm_smsg_target() argument
369 if (!cmm_skip_blanks(msg + strlen(SMSG_PREFIX), &msg)) in cmm_smsg_target()
371 if (strncmp(msg, "SHRINK", 6) == 0) { in cmm_smsg_target()
372 if (!cmm_skip_blanks(msg + 6, &msg)) in cmm_smsg_target()
374 nr = simple_strtoul(msg, &msg, 0); in cmm_smsg_target()
375 cmm_skip_blanks(msg, &msg); in cmm_smsg_target()
376 if (*msg == '\0') in cmm_smsg_target()
378 } else if (strncmp(msg, "RELEASE", 7) == 0) { in cmm_smsg_target()
379 if (!cmm_skip_blanks(msg + 7, &msg)) in cmm_smsg_target()
381 nr = simple_strtoul(msg, &msg, 0); in cmm_smsg_target()
[all …]
/arch/x86/include/asm/
Dvirtext.h84 static inline int cpu_has_svm(const char **msg) in cpu_has_svm() argument
89 if (msg) in cpu_has_svm()
90 *msg = "not amd"; in cpu_has_svm()
96 if (msg) in cpu_has_svm()
97 *msg = "can't execute cpuid_8000000a"; in cpu_has_svm()
103 if (msg) in cpu_has_svm()
104 *msg = "svm not available"; in cpu_has_svm()
/arch/powerpc/include/asm/
Ddbell.h40 static inline void _ppc_msgsnd(u32 msg) in _ppc_msgsnd() argument
43 __asm__ __volatile__ (PPC_MSGSND(%0) : : "r" (msg)); in _ppc_msgsnd()
45 __asm__ __volatile__ (PPC_MSGSNDP(%0) : : "r" (msg)); in _ppc_msgsnd()
54 static inline void _ppc_msgsnd(u32 msg) in _ppc_msgsnd() argument
56 __asm__ __volatile__ (PPC_MSGSND(%0) : : "r" (msg)); in _ppc_msgsnd()
67 u32 msg = PPC_DBELL_TYPE(type) | (flags & PPC_DBELL_MSG_BRDCAST) | in ppc_msgsnd() local
70 _ppc_msgsnd(msg); in ppc_msgsnd()
/arch/sparc/kernel/
Dsstate.c21 static void do_set_sstate(unsigned long state, const char *msg) in do_set_sstate() argument
28 err = sun4v_mach_set_soft_state(state, kimage_addr_to_ra(msg)); in do_set_sstate()
32 state, msg, err); in do_set_sstate()
51 const char *msg; in sstate_reboot_call() local
56 msg = rebooting_msg; in sstate_reboot_call()
60 msg = halting_msg; in sstate_reboot_call()
64 msg = poweroff_msg; in sstate_reboot_call()
68 do_set_sstate(HV_SOFT_STATE_TRANSITION, msg); in sstate_reboot_call()
/arch/sh/boards/mach-kfr2r09/
Dsetup.c412 struct i2c_msg msg; in kfr2r09_usb0_gadget_i2c_setup() local
422 msg.addr = 0x09; in kfr2r09_usb0_gadget_i2c_setup()
423 msg.buf = buf; in kfr2r09_usb0_gadget_i2c_setup()
424 msg.len = 1; in kfr2r09_usb0_gadget_i2c_setup()
425 msg.flags = 0; in kfr2r09_usb0_gadget_i2c_setup()
426 ret = i2c_transfer(a, &msg, 1); in kfr2r09_usb0_gadget_i2c_setup()
431 msg.addr = 0x09; in kfr2r09_usb0_gadget_i2c_setup()
432 msg.buf = buf; in kfr2r09_usb0_gadget_i2c_setup()
433 msg.len = 1; in kfr2r09_usb0_gadget_i2c_setup()
434 msg.flags = I2C_M_RD; in kfr2r09_usb0_gadget_i2c_setup()
[all …]
/arch/powerpc/sysdev/
Dpmi.c45 pmi_message_t msg; member
77 data->msg.type = type; in pmi_irq_handler()
78 data->msg.data0 = ioread8(data->pmi_reg + PMI_READ_DATA0); in pmi_irq_handler()
79 data->msg.data1 = ioread8(data->pmi_reg + PMI_READ_DATA1); in pmi_irq_handler()
80 data->msg.data2 = ioread8(data->pmi_reg + PMI_READ_DATA2); in pmi_irq_handler()
90 if (data->msg.type & PMI_ACK) { in pmi_irq_handler()
119 if (handler->type == data->msg.type) in pmi_notify_handlers()
120 handler->handle_pmi_message(data->msg); in pmi_notify_handlers()
218 int pmi_send_message(pmi_message_t msg) in pmi_send_message() argument
228 data->msg = msg; in pmi_send_message()
[all …]
Dppc4xx_hsta_msi.c43 struct msi_msg msg; in hsta_setup_msi_irqs() local
73 msg.address_hi = upper_32_bits(addr); in hsta_setup_msi_irqs()
74 msg.address_lo = lower_32_bits(addr); in hsta_setup_msi_irqs()
77 msg.data = 0; in hsta_setup_msi_irqs()
80 (((u64) msg.address_hi) << 32) | msg.address_lo); in hsta_setup_msi_irqs()
89 pci_write_msi_msg(hwirq, &msg); in hsta_setup_msi_irqs()
/arch/arm/mach-omap1/
Dboard-sx1.c53 struct i2c_msg msg[1]; in sx1_i2c_write_byte() local
59 msg->addr = devaddr; /* I2C address of chip */ in sx1_i2c_write_byte()
60 msg->flags = 0; in sx1_i2c_write_byte()
61 msg->len = 2; in sx1_i2c_write_byte()
62 msg->buf = data; in sx1_i2c_write_byte()
65 err = i2c_transfer(adap, msg, 1); in sx1_i2c_write_byte()
77 struct i2c_msg msg[1]; in sx1_i2c_read_byte() local
84 msg->addr = devaddr; /* I2C address of chip */ in sx1_i2c_read_byte()
85 msg->flags = 0; in sx1_i2c_read_byte()
86 msg->len = 1; in sx1_i2c_read_byte()
[all …]
/arch/powerpc/platforms/powernv/
Dopal-prd.c41 struct opal_prd_msg_header msg; member
170 if (count < sizeof(item->msg)) in opal_prd_read()
200 size = be16_to_cpu(item->msg.size); in opal_prd_read()
206 rc = copy_to_user(buf, &item->msg, size); in opal_prd_read()
229 void *msg; in opal_prd_write() local
244 msg = kmalloc(size, GFP_KERNEL); in opal_prd_write()
245 if (!msg) in opal_prd_write()
248 rc = copy_from_user(msg, buf, size); in opal_prd_write()
254 rc = opal_prd_msg(msg); in opal_prd_write()
261 kfree(msg); in opal_prd_write()
[all …]
Dopal-memory-errors.c40 struct opal_msg msg; member
81 &msg_node->msg.params[0]; in handle_memory_error()
101 unsigned long msg_type, void *msg) in opal_memory_err_event() argument
115 memcpy(&msg_node->msg, msg, sizeof(struct opal_msg)); in opal_memory_err_event()
/arch/score/include/asm/
Dbug.h12 #define die(msg, regs) \ argument
13 __die(msg, regs, __FILE__ ":", __func__, __LINE__)
14 #define die_if_kernel(msg, regs) \ argument
15 __die_if_kernel(msg, regs, __FILE__ ":", __func__, __LINE__)
/arch/um/os-Linux/drivers/
Dtuntap_user.c70 struct msghdr msg; in tuntap_open_tramp() local
87 msg.msg_name = NULL; in tuntap_open_tramp()
88 msg.msg_namelen = 0; in tuntap_open_tramp()
91 msg.msg_iov = &iov; in tuntap_open_tramp()
92 msg.msg_iovlen = 1; in tuntap_open_tramp()
95 msg.msg_iov = NULL; in tuntap_open_tramp()
96 msg.msg_iovlen = 0; in tuntap_open_tramp()
98 msg.msg_control = buf; in tuntap_open_tramp()
99 msg.msg_controllen = sizeof(buf); in tuntap_open_tramp()
100 msg.msg_flags = 0; in tuntap_open_tramp()
[all …]
/arch/arc/kernel/
Dsmp.c217 static void ipi_send_msg_one(int cpu, enum ipi_msg_type msg) in ipi_send_msg_one() argument
223 pr_debug("%d Sending msg [%d] to %d\n", smp_processor_id(), msg, cpu); in ipi_send_msg_one()
233 new |= 1U << msg; in ipi_send_msg_one()
250 static void ipi_send_msg(const struct cpumask *callmap, enum ipi_msg_type msg) in ipi_send_msg() argument
255 ipi_send_msg_one(cpu, msg); in ipi_send_msg()
289 static inline int __do_IPI(unsigned long msg) in __do_IPI() argument
293 switch (msg) { in __do_IPI()
335 unsigned long msg = __ffs(pending); in do_IPI() local
338 rc = __do_IPI(msg); in do_IPI()
342 pr_info("IPI with bogus msg %ld in %ld\n", msg, copy); in do_IPI()
[all …]
/arch/ia64/sn/kernel/
Dmsi_sn.c68 struct msi_msg msg; in sn_setup_msi_irq() local
138 msg.address_hi = (u32)(bus_addr >> 32); in sn_setup_msi_irq()
139 msg.address_lo = (u32)(bus_addr & 0x00000000ffffffff); in sn_setup_msi_irq()
145 msg.data = 0x100 + irq; in sn_setup_msi_irq()
148 pci_write_msi_msg(irq, &msg); in sn_setup_msi_irq()
158 struct msi_msg msg; in sn_set_msi_irq_affinity() local
178 __get_cached_msi_msg(irq_data_get_msi_desc(data), &msg); in sn_set_msi_irq_affinity()
183 bus_addr = (u64)(msg.address_hi) << 32 | (u64)(msg.address_lo); in sn_set_msi_irq_affinity()
205 msg.address_hi = (u32)(bus_addr >> 32); in sn_set_msi_irq_affinity()
206 msg.address_lo = (u32)(bus_addr & 0x00000000ffffffff); in sn_set_msi_irq_affinity()
[all …]
/arch/powerpc/kernel/
Drtas_flash.c243 const char *msg; in get_flash_status_msg() local
248 msg = "error: this partition does not have service authority\n"; in get_flash_status_msg()
251 msg = "info: no firmware image for flash\n"; in get_flash_status_msg()
254 msg = "error: flash image short\n"; in get_flash_status_msg()
257 msg = "error: internal error bad length\n"; in get_flash_status_msg()
260 msg = "error: internal error null data\n"; in get_flash_status_msg()
263 msg = "ready: firmware image ready for flash on reboot\n"; in get_flash_status_msg()
270 len = strlen(msg); in get_flash_status_msg()
271 memcpy(buf, msg, len + 1); in get_flash_status_msg()
280 char msg[RTAS_MSG_MAXLEN]; in rtas_flash_read_msg() local
[all …]
/arch/hexagon/kernel/
Dsmp.c53 unsigned long msg = 0; in __handle_ipi() local
55 msg = find_next_bit(ops, BITS_PER_LONG, msg+1); in __handle_ipi()
57 switch (msg) { in __handle_ipi()
78 } while (msg < BITS_PER_LONG); in __handle_ipi()
105 void send_ipi(const struct cpumask *cpumask, enum ipi_message_type msg) in send_ipi() argument
116 set_bit(msg, &ipi->bits); in send_ipi()
/arch/powerpc/platforms/pasemi/
Dmsi.c87 struct msi_msg msg; in pasemi_msi_setup_msi_irqs() local
95 msg.address_hi = 0; in pasemi_msi_setup_msi_irqs()
96 msg.address_lo = PASEMI_MSI_ADDR; in pasemi_msi_setup_msi_irqs()
131 "addr 0x%x\n", virq, hwirq, msg.address_lo); in pasemi_msi_setup_msi_irqs()
136 msg.data = hwirq-0x200; in pasemi_msi_setup_msi_irqs()
137 pci_write_msi_msg(virq, &msg); in pasemi_msi_setup_msi_irqs()
/arch/s390/kernel/
Dos_info.c77 char *buf, *buf_align, *msg; in os_info_old_alloc() local
82 msg = "not available"; in os_info_old_alloc()
88 msg = "alloc failed"; in os_info_old_alloc()
93 msg = "copy failed"; in os_info_old_alloc()
98 msg = "checksum failed"; in os_info_old_alloc()
102 msg = "copied"; in os_info_old_alloc()
110 nr, msg, addr, size); in os_info_old_alloc()
/arch/powerpc/platforms/ps3/
Dsmp.c42 static void ps3_smp_message_pass(int cpu, int msg) in ps3_smp_message_pass() argument
47 if (msg >= MSG_COUNT) { in ps3_smp_message_pass()
48 DBG("%s:%d: bad msg: %d\n", __func__, __LINE__, msg); in ps3_smp_message_pass()
52 virq = per_cpu(ps3_ipi_virqs, cpu)[msg]; in ps3_smp_message_pass()
57 " (%d)\n", __func__, __LINE__, cpu, msg, result); in ps3_smp_message_pass()
/arch/mips/pci/
Dmsi-octeon.c62 struct msi_msg msg; in arch_setup_msi_irq() local
150 msg.address_lo = in arch_setup_msi_irq()
152 msg.address_hi = ((128ul << 20) + CVMX_PCI_MSI_RCV) >> 32; in arch_setup_msi_irq()
156 msg.address_lo = (0 + CVMX_PCI_MSI_RCV) & 0xffffffff; in arch_setup_msi_irq()
157 msg.address_hi = (0 + CVMX_PCI_MSI_RCV) >> 32; in arch_setup_msi_irq()
162 msg.address_lo = (0 + CVMX_NPEI_PCIE_MSI_RCV) & 0xffffffff; in arch_setup_msi_irq()
163 msg.address_hi = (0 + CVMX_NPEI_PCIE_MSI_RCV) >> 32; in arch_setup_msi_irq()
167 msg.address_lo = (0 + CVMX_SLI_PCIE_MSI_RCV) & 0xffffffff; in arch_setup_msi_irq()
168 msg.address_hi = (0 + CVMX_SLI_PCIE_MSI_RCV) >> 32; in arch_setup_msi_irq()
173 msg.data = irq - OCTEON_IRQ_MSI_BIT0; in arch_setup_msi_irq()
[all …]
/arch/um/drivers/
Dmconsole_user.c43 struct msghdr msg; in mconsole_reply_v0() local
48 msg.msg_name = &(req->origin); in mconsole_reply_v0()
49 msg.msg_namelen = req->originlen; in mconsole_reply_v0()
50 msg.msg_iov = &iov; in mconsole_reply_v0()
51 msg.msg_iovlen = 1; in mconsole_reply_v0()
52 msg.msg_control = NULL; in mconsole_reply_v0()
53 msg.msg_controllen = 0; in mconsole_reply_v0()
54 msg.msg_flags = 0; in mconsole_reply_v0()
56 return sendmsg(req->originating_fd, &msg, 0); in mconsole_reply_v0()
/arch/arm/mach-iop13xx/
Dmsi.c138 struct msi_msg msg; in arch_setup_msi_irq() local
150 msg.address_hi = 0x0; in arch_setup_msi_irq()
151 msg.address_lo = IOP13XX_MU_MIMR_PCI; in arch_setup_msi_irq()
154 msg.data = (id << IOP13XX_MU_MIMR_CORE_SELECT) | (irq & 0x7f); in arch_setup_msi_irq()
156 pci_write_msi_msg(irq, &msg); in arch_setup_msi_irq()

123456