msg 65 arch/alpha/boot/misc.c # define Assert(cond,msg) {if(!(cond)) error(msg);} msg 72 arch/alpha/boot/misc.c # define Assert(cond,msg) msg 837 arch/alpha/kernel/core_cia.c cia_decode_pci_error(struct el_CIA_sysdata_mcheck *cia, const char *msg) msg 876 arch/alpha/kernel/core_cia.c printk(KERN_CRIT "CIA machine check: %s\n", msg); msg 920 arch/alpha/kernel/core_cia.c printk(KERN_CRIT "CIA machine check: %s\n", msg); msg 927 arch/alpha/kernel/core_cia.c printk(KERN_CRIT "CIA machine check: %s\n", msg); msg 936 arch/alpha/kernel/core_cia.c cia_decode_mem_error(struct el_CIA_sysdata_mcheck *cia, const char *msg) msg 947 arch/alpha/kernel/core_cia.c cia_decode_pci_error(cia, msg); msg 949 arch/alpha/kernel/core_cia.c printk(KERN_CRIT "CIA machine check: %s\n", msg); msg 1032 arch/alpha/kernel/core_cia.c cia_decode_ecc_error(struct el_CIA_sysdata_mcheck *cia, const char *msg) msg 1038 arch/alpha/kernel/core_cia.c cia_decode_mem_error(cia, msg); msg 265 arch/arc/kernel/smp.c static void ipi_send_msg_one(int cpu, enum ipi_msg_type msg) msg 271 arch/arc/kernel/smp.c pr_debug("%d Sending msg [%d] to %d\n", smp_processor_id(), msg, cpu); msg 281 arch/arc/kernel/smp.c new |= 1U << msg; msg 298 arch/arc/kernel/smp.c static void ipi_send_msg(const struct cpumask *callmap, enum ipi_msg_type msg) msg 303 arch/arc/kernel/smp.c ipi_send_msg_one(cpu, msg); msg 337 arch/arc/kernel/smp.c static inline int __do_IPI(unsigned long msg) msg 341 arch/arc/kernel/smp.c switch (msg) { msg 383 arch/arc/kernel/smp.c unsigned long msg = __ffs(pending); msg 386 arch/arc/kernel/smp.c rc = __do_IPI(msg); msg 388 arch/arc/kernel/smp.c pr_info("IPI with bogus msg %ld in %ld\n", msg, copy); msg 389 arch/arc/kernel/smp.c pending &= ~(1U << msg); msg 16 arch/arm/boot/compressed/decompress.c # define Assert(cond,msg) {if(!(cond)) error(msg);} msg 23 arch/arm/boot/compressed/decompress.c # define Assert(cond,msg) msg 470 arch/arm/include/asm/assembler.h .macro bug, msg, line msg 63 arch/arm/include/asm/bug.h void die(const char *msg, struct pt_regs *regs, int err); msg 414 arch/arm/kernel/sys_oabi-compat.c asmlinkage long sys_oabi_sendmsg(int fd, struct user_msghdr __user *msg, unsigned flags) msg 419 arch/arm/kernel/sys_oabi-compat.c if (msg && msg 420 arch/arm/kernel/sys_oabi-compat.c get_user(msg_namelen, &msg->msg_namelen) == 0 && msg 422 arch/arm/kernel/sys_oabi-compat.c get_user(addr, &msg->msg_name) == 0 && msg 435 arch/arm/kernel/sys_oabi-compat.c put_user(110, &msg->msg_namelen); msg 437 arch/arm/kernel/sys_oabi-compat.c return sys_sendmsg(fd, msg, flags); msg 578 arch/arm/mach-davinci/board-dm644x-evm.c struct i2c_msg msg[2] = { msg 595 arch/arm/mach-davinci/board-dm644x-evm.c msg[0].addr = dm6446evm_msp->addr; msg 596 arch/arm/mach-davinci/board-dm644x-evm.c msg[1].addr = dm6446evm_msp->addr; msg 602 arch/arm/mach-davinci/board-dm644x-evm.c status = i2c_transfer(dm6446evm_msp->adapter, msg, 2); msg 168 arch/arm/mach-davinci/board-dm646x-evm.c struct i2c_msg msg[2] = { msg 184 arch/arm/mach-davinci/board-dm646x-evm.c i2c_transfer(client->adapter, msg, 1); msg 186 arch/arm/mach-davinci/board-dm646x-evm.c i2c_transfer(client->adapter, msg + 1, 1); msg 50 arch/arm/mach-omap1/board-sx1.c struct i2c_msg msg[1]; msg 56 arch/arm/mach-omap1/board-sx1.c msg->addr = devaddr; /* I2C address of chip */ msg 57 arch/arm/mach-omap1/board-sx1.c msg->flags = 0; msg 58 arch/arm/mach-omap1/board-sx1.c msg->len = 2; msg 59 arch/arm/mach-omap1/board-sx1.c msg->buf = data; msg 62 arch/arm/mach-omap1/board-sx1.c err = i2c_transfer(adap, msg, 1); msg 74 arch/arm/mach-omap1/board-sx1.c struct i2c_msg msg[1]; msg 81 arch/arm/mach-omap1/board-sx1.c msg->addr = devaddr; /* I2C address of chip */ msg 82 arch/arm/mach-omap1/board-sx1.c msg->flags = 0; msg 83 arch/arm/mach-omap1/board-sx1.c msg->len = 1; msg 84 arch/arm/mach-omap1/board-sx1.c msg->buf = data; msg 86 arch/arm/mach-omap1/board-sx1.c err = i2c_transfer(adap, msg, 1); msg 88 arch/arm/mach-omap1/board-sx1.c msg->addr = devaddr; /* I2C address */ msg 89 arch/arm/mach-omap1/board-sx1.c msg->flags = I2C_M_RD; msg 90 arch/arm/mach-omap1/board-sx1.c msg->len = 1; msg 91 arch/arm/mach-omap1/board-sx1.c msg->buf = data; msg 92 arch/arm/mach-omap1/board-sx1.c err = i2c_transfer(adap, msg, 1); msg 125 arch/arm/mm/proc-v7-bugs.c u32 mask, const char *msg) msg 133 arch/arm/mm/proc-v7-bugs.c pr_err("CPU%u: %s", smp_processor_id(), msg); msg 81 arch/arm/plat-samsung/adc.c #define adc_dbg(_adc, msg...) dev_dbg(&(_adc)->pdev->dev, msg) msg 70 arch/arm/plat-samsung/include/plat/pm-common.h extern void s3c_pm_dbg(const char *msg, ...); msg 21 arch/arm64/include/asm/system_misc.h void die(const char *msg, struct pt_regs *regs, int err); msg 139 arch/arm64/kernel/acpi.c const char *msg = acpi_format_exception(status); msg 141 arch/arm64/kernel/acpi.c pr_err("Failed to get FADT table, %s\n", msg); msg 286 arch/arm64/mm/fault.c static void die_kernel_fault(const char *msg, unsigned long addr, msg 291 arch/arm64/mm/fault.c pr_alert("Unable to handle kernel %s at virtual address %016lx\n", msg, msg 305 arch/arm64/mm/fault.c const char *msg; msg 320 arch/arm64/mm/fault.c msg = "write to read-only memory"; msg 322 arch/arm64/mm/fault.c msg = "read from unreadable memory"; msg 324 arch/arm64/mm/fault.c msg = "NULL pointer dereference"; msg 326 arch/arm64/mm/fault.c msg = "paging request"; msg 329 arch/arm64/mm/fault.c die_kernel_fault(msg, addr, esr, regs); msg 23 arch/hexagon/include/asm/smp.h extern void send_ipi(const struct cpumask *cpumask, enum ipi_message_type msg); msg 41 arch/hexagon/kernel/smp.c unsigned long msg = 0; msg 43 arch/hexagon/kernel/smp.c msg = find_next_bit(ops, BITS_PER_LONG, msg+1); msg 45 arch/hexagon/kernel/smp.c switch (msg) { msg 66 arch/hexagon/kernel/smp.c } while (msg < BITS_PER_LONG); msg 93 arch/hexagon/kernel/smp.c void send_ipi(const struct cpumask *cpumask, enum ipi_message_type msg) msg 104 arch/hexagon/kernel/smp.c set_bit(msg, &ipi->bits); msg 309 arch/ia64/hp/common/sba_iommu.c sba_dump_pdir_entry(struct ioc *ioc, char *msg, uint pide) msg 317 arch/ia64/hp/common/sba_iommu.c msg, rptr, pide & (BITS_PER_LONG - 1), *rptr); msg 328 arch/ia64/hp/common/sba_iommu.c printk(KERN_DEBUG "%s", msg); msg 340 arch/ia64/hp/common/sba_iommu.c sba_check_pdir(struct ioc *ioc, char *msg) msg 363 arch/ia64/hp/common/sba_iommu.c sba_dump_pdir_entry(ioc, msg, pide); msg 985 arch/ia64/kernel/mca.c const char *msg; msg 1040 arch/ia64/kernel/mca.c msg = "occurred in user space"; msg 1049 arch/ia64/kernel/mca.c msg = "inconsistent previous current and r13"; msg 1055 arch/ia64/kernel/mca.c msg = "inconsistent r12 and r13"; msg 1059 arch/ia64/kernel/mca.c msg = "inconsistent ar.bspstore and r13"; msg 1064 arch/ia64/kernel/mca.c msg = "old_bspstore is in the wrong region"; msg 1068 arch/ia64/kernel/mca.c msg = "inconsistent ar.bsp and r13"; msg 1073 arch/ia64/kernel/mca.c msg = "no room for blocked state"; msg 1158 arch/ia64/kernel/mca.c smp_processor_id(), type, msg); msg 19 arch/ia64/kernel/msi_ia64.c struct msi_msg msg; msg 27 arch/ia64/kernel/msi_ia64.c __get_cached_msi_msg(irq_data_get_msi_desc(idata), &msg); msg 29 arch/ia64/kernel/msi_ia64.c addr = msg.address_lo; msg 32 arch/ia64/kernel/msi_ia64.c msg.address_lo = addr; msg 34 arch/ia64/kernel/msi_ia64.c data = msg.data; msg 37 arch/ia64/kernel/msi_ia64.c msg.data = data; msg 39 arch/ia64/kernel/msi_ia64.c pci_write_msi_msg(irq, &msg); msg 48 arch/ia64/kernel/msi_ia64.c struct msi_msg msg; msg 61 arch/ia64/kernel/msi_ia64.c msg.address_hi = 0; msg 62 arch/ia64/kernel/msi_ia64.c msg.address_lo = msg 68 arch/ia64/kernel/msi_ia64.c msg.data = msg 74 arch/ia64/kernel/msi_ia64.c pci_write_msi_msg(irq, &msg); msg 121 arch/ia64/kernel/msi_ia64.c struct msi_msg msg; msg 127 arch/ia64/kernel/msi_ia64.c dmar_msi_read(irq, &msg); msg 129 arch/ia64/kernel/msi_ia64.c msg.data &= ~MSI_DATA_VECTOR_MASK; msg 130 arch/ia64/kernel/msi_ia64.c msg.data |= MSI_DATA_VECTOR(cfg->vector); msg 131 arch/ia64/kernel/msi_ia64.c msg.address_lo &= ~MSI_ADDR_DEST_ID_MASK; msg 132 arch/ia64/kernel/msi_ia64.c msg.address_lo |= MSI_ADDR_DEST_ID_CPU(cpu_physical_id(cpu)); msg 134 arch/ia64/kernel/msi_ia64.c dmar_msi_write(irq, &msg); msg 153 arch/ia64/kernel/msi_ia64.c msi_compose_msg(struct pci_dev *pdev, unsigned int irq, struct msi_msg *msg) msg 161 arch/ia64/kernel/msi_ia64.c msg->address_hi = 0; msg 162 arch/ia64/kernel/msi_ia64.c msg->address_lo = msg 168 arch/ia64/kernel/msi_ia64.c msg->data = msg 178 arch/ia64/kernel/msi_ia64.c struct msi_msg msg; msg 185 arch/ia64/kernel/msi_ia64.c msi_compose_msg(NULL, irq, &msg); msg 186 arch/ia64/kernel/msi_ia64.c dmar_msi_write(irq, &msg); msg 784 arch/ia64/kernel/perfmon.c pfm_msg_t *msg; msg 793 arch/ia64/kernel/perfmon.c msg = ctx->ctx_msgq+ctx->ctx_msgq_head; msg 800 arch/ia64/kernel/perfmon.c DPRINT(("ctx=%p head=%d tail=%d type=%d\n", ctx, ctx->ctx_msgq_head, ctx->ctx_msgq_tail, msg->pfm_gen_msg.msg_type)); msg 802 arch/ia64/kernel/perfmon.c return msg; msg 1505 arch/ia64/kernel/perfmon.c pfm_msg_t *msg; msg 1577 arch/ia64/kernel/perfmon.c msg = pfm_get_next_msg(ctx); msg 1578 arch/ia64/kernel/perfmon.c if (msg == NULL) { msg 1583 arch/ia64/kernel/perfmon.c DPRINT(("fd=%d type=%d\n", msg->pfm_gen_msg.msg_ctx_fd, msg->pfm_gen_msg.msg_type)); msg 1586 arch/ia64/kernel/perfmon.c if(copy_to_user(buf, msg, sizeof(pfm_msg_t)) == 0) ret = sizeof(pfm_msg_t); msg 5040 arch/ia64/kernel/perfmon.c pfm_notify_user(pfm_context_t *ctx, pfm_msg_t *msg) msg 5049 arch/ia64/kernel/perfmon.c if (msg) wake_up_interruptible(&ctx->ctx_msgq_wait); msg 5063 arch/ia64/kernel/perfmon.c pfm_msg_t *msg = NULL; msg 5066 arch/ia64/kernel/perfmon.c msg = pfm_get_new_msg(ctx); msg 5067 arch/ia64/kernel/perfmon.c if (msg == NULL) { msg 5072 arch/ia64/kernel/perfmon.c msg->pfm_ovfl_msg.msg_type = PFM_MSG_OVFL; msg 5073 arch/ia64/kernel/perfmon.c msg->pfm_ovfl_msg.msg_ctx_fd = ctx->ctx_fd; msg 5074 arch/ia64/kernel/perfmon.c msg->pfm_ovfl_msg.msg_active_set = 0; msg 5075 arch/ia64/kernel/perfmon.c msg->pfm_ovfl_msg.msg_ovfl_pmds[0] = ovfl_pmds; msg 5076 arch/ia64/kernel/perfmon.c msg->pfm_ovfl_msg.msg_ovfl_pmds[1] = 0UL; msg 5077 arch/ia64/kernel/perfmon.c msg->pfm_ovfl_msg.msg_ovfl_pmds[2] = 0UL; msg 5078 arch/ia64/kernel/perfmon.c msg->pfm_ovfl_msg.msg_ovfl_pmds[3] = 0UL; msg 5079 arch/ia64/kernel/perfmon.c msg->pfm_ovfl_msg.msg_tstamp = 0UL; msg 5083 arch/ia64/kernel/perfmon.c msg, msg 5088 arch/ia64/kernel/perfmon.c return pfm_notify_user(ctx, msg); msg 5094 arch/ia64/kernel/perfmon.c pfm_msg_t *msg; msg 5096 arch/ia64/kernel/perfmon.c msg = pfm_get_new_msg(ctx); msg 5097 arch/ia64/kernel/perfmon.c if (msg == NULL) { msg 5102 arch/ia64/kernel/perfmon.c memset(msg, 0, sizeof(*msg)); msg 5104 arch/ia64/kernel/perfmon.c msg->pfm_end_msg.msg_type = PFM_MSG_END; msg 5105 arch/ia64/kernel/perfmon.c msg->pfm_end_msg.msg_ctx_fd = ctx->ctx_fd; msg 5106 arch/ia64/kernel/perfmon.c msg->pfm_ovfl_msg.msg_tstamp = 0UL; msg 5109 arch/ia64/kernel/perfmon.c msg, msg 5113 arch/ia64/kernel/perfmon.c return pfm_notify_user(ctx, msg); msg 351 arch/m68k/mac/iop.c void iop_complete_message(struct iop_msg *msg) msg 353 arch/m68k/mac/iop.c int iop_num = msg->iop_num; msg 354 arch/m68k/mac/iop.c int chan = msg->channel; msg 357 arch/m68k/mac/iop.c iop_pr_debug("msg %p iop_num %d channel %d\n", msg, msg->iop_num, msg 358 arch/m68k/mac/iop.c msg->channel); msg 360 arch/m68k/mac/iop.c offset = IOP_ADDR_RECV_MSG + (msg->channel * IOP_MSG_LEN); msg 363 arch/m68k/mac/iop.c iop_writeb(iop_base[iop_num], offset, msg->reply[i]); msg 368 arch/m68k/mac/iop.c iop_interrupt(iop_base[msg->iop_num]); msg 370 arch/m68k/mac/iop.c msg->status = IOP_MSGSTATUS_UNUSED; msg 377 arch/m68k/mac/iop.c static void iop_do_send(struct iop_msg *msg) msg 379 arch/m68k/mac/iop.c volatile struct mac_iop *iop = iop_base[msg->iop_num]; msg 382 arch/m68k/mac/iop.c offset = IOP_ADDR_SEND_MSG + (msg->channel * IOP_MSG_LEN); msg 385 arch/m68k/mac/iop.c iop_writeb(iop, offset, msg->message[i]); msg 388 arch/m68k/mac/iop.c iop_writeb(iop, IOP_ADDR_SEND_STATE + msg->channel, IOP_MSG_NEW); msg 401 arch/m68k/mac/iop.c struct iop_msg *msg; msg 408 arch/m68k/mac/iop.c if (!(msg = iop_send_queue[iop_num][chan])) return; msg 410 arch/m68k/mac/iop.c msg->status = IOP_MSGSTATUS_COMPLETE; msg 413 arch/m68k/mac/iop.c msg->reply[i] = iop_readb(iop, offset); msg 415 arch/m68k/mac/iop.c if (msg->handler) (*msg->handler)(msg); msg 416 arch/m68k/mac/iop.c msg->status = IOP_MSGSTATUS_UNUSED; msg 417 arch/m68k/mac/iop.c msg = msg->next; msg 418 arch/m68k/mac/iop.c iop_send_queue[iop_num][chan] = msg; msg 419 arch/m68k/mac/iop.c if (msg) iop_do_send(msg); msg 431 arch/m68k/mac/iop.c struct iop_msg *msg; msg 435 arch/m68k/mac/iop.c msg = iop_get_unused_msg(); msg 436 arch/m68k/mac/iop.c msg->iop_num = iop_num; msg 437 arch/m68k/mac/iop.c msg->channel = chan; msg 438 arch/m68k/mac/iop.c msg->status = IOP_MSGSTATUS_UNSOL; msg 439 arch/m68k/mac/iop.c msg->handler = iop_listeners[iop_num][chan].handler; msg 444 arch/m68k/mac/iop.c msg->message[i] = iop_readb(iop, offset); msg 452 arch/m68k/mac/iop.c if (msg->handler) { msg 453 arch/m68k/mac/iop.c (*msg->handler)(msg); msg 457 arch/m68k/mac/iop.c iop_pr_debug("%*ph\n", IOP_MSG_LEN, msg->message); msg 458 arch/m68k/mac/iop.c iop_complete_message(msg); msg 474 arch/m68k/mac/iop.c struct iop_msg *msg, *q; msg 480 arch/m68k/mac/iop.c msg = iop_get_unused_msg(); msg 481 arch/m68k/mac/iop.c if (!msg) return -ENOMEM; msg 483 arch/m68k/mac/iop.c msg->next = NULL; msg 484 arch/m68k/mac/iop.c msg->status = IOP_MSGSTATUS_WAITING; msg 485 arch/m68k/mac/iop.c msg->iop_num = iop_num; msg 486 arch/m68k/mac/iop.c msg->channel = chan; msg 487 arch/m68k/mac/iop.c msg->caller_priv = privdata; msg 488 arch/m68k/mac/iop.c memcpy(msg->message, msg_data, msg_len); msg 489 arch/m68k/mac/iop.c msg->handler = handler; msg 492 arch/m68k/mac/iop.c iop_send_queue[iop_num][chan] = msg; msg 495 arch/m68k/mac/iop.c q->next = msg; msg 500 arch/m68k/mac/iop.c iop_do_send(msg); msg 77 arch/mips/include/asm/asm.h #define PANIC(msg) \ msg 84 arch/mips/include/asm/asm.h TEXT(msg) msg 101 arch/mips/include/asm/asm.h #define TEXT(msg) \ msg 103 arch/mips/include/asm/asm.h 8: .asciiz msg; \ msg 276 arch/mips/include/asm/netlogic/xlr/fmn.h unsigned int stid, struct nlm_fmn_msg *msg) msg 290 arch/mips/include/asm/netlogic/xlr/fmn.h nlm_write_c2_tx_msg0(msg->msg0); msg 291 arch/mips/include/asm/netlogic/xlr/fmn.h nlm_write_c2_tx_msg1(msg->msg1); msg 292 arch/mips/include/asm/netlogic/xlr/fmn.h nlm_write_c2_tx_msg2(msg->msg2); msg 293 arch/mips/include/asm/netlogic/xlr/fmn.h nlm_write_c2_tx_msg3(msg->msg3); msg 313 arch/mips/include/asm/netlogic/xlr/fmn.h struct nlm_fmn_msg *msg) msg 332 arch/mips/include/asm/netlogic/xlr/fmn.h msg->msg0 = nlm_read_c2_rx_msg0(); msg 333 arch/mips/include/asm/netlogic/xlr/fmn.h msg->msg1 = nlm_read_c2_rx_msg1(); msg 334 arch/mips/include/asm/netlogic/xlr/fmn.h msg->msg2 = nlm_read_c2_rx_msg2(); msg 335 arch/mips/include/asm/netlogic/xlr/fmn.h msg->msg3 = nlm_read_c2_rx_msg3(); msg 74 arch/mips/netlogic/xlr/fmn.c struct nlm_fmn_msg msg; msg 91 arch/mips/netlogic/xlr/fmn.c &msg); msg 102 arch/mips/netlogic/xlr/fmn.c &msg, hndlr->arg); msg 62 arch/mips/pci/msi-octeon.c struct msi_msg msg; msg 150 arch/mips/pci/msi-octeon.c msg.address_lo = msg 152 arch/mips/pci/msi-octeon.c msg.address_hi = ((128ul << 20) + CVMX_PCI_MSI_RCV) >> 32; msg 156 arch/mips/pci/msi-octeon.c msg.address_lo = (0 + CVMX_PCI_MSI_RCV) & 0xffffffff; msg 157 arch/mips/pci/msi-octeon.c msg.address_hi = (0 + CVMX_PCI_MSI_RCV) >> 32; msg 162 arch/mips/pci/msi-octeon.c msg.address_lo = (0 + CVMX_NPEI_PCIE_MSI_RCV) & 0xffffffff; msg 163 arch/mips/pci/msi-octeon.c msg.address_hi = (0 + CVMX_NPEI_PCIE_MSI_RCV) >> 32; msg 167 arch/mips/pci/msi-octeon.c msg.address_lo = (0 + CVMX_SLI_PCIE_MSI_RCV) & 0xffffffff; msg 168 arch/mips/pci/msi-octeon.c msg.address_hi = (0 + CVMX_SLI_PCIE_MSI_RCV) >> 32; msg 173 arch/mips/pci/msi-octeon.c msg.data = irq - OCTEON_IRQ_MSI_BIT0; msg 181 arch/mips/pci/msi-octeon.c pci_write_msi_msg(irq, &msg); msg 297 arch/mips/pci/msi-xlp.c struct msi_msg msg; msg 330 arch/mips/pci/msi-xlp.c msg.address_hi = msiaddr >> 32; msg 331 arch/mips/pci/msi-xlp.c msg.address_lo = msiaddr & 0xffffffff; msg 332 arch/mips/pci/msi-xlp.c msg.data = 0xc00 | msivec; msg 339 arch/mips/pci/msi-xlp.c pci_write_msi_msg(xirq, &msg); msg 404 arch/mips/pci/msi-xlp.c struct msi_msg msg; msg 432 arch/mips/pci/msi-xlp.c msg.address_hi = msixaddr >> 32; msg 433 arch/mips/pci/msi-xlp.c msg.address_lo = msixaddr & 0xffffffff; msg 434 arch/mips/pci/msi-xlp.c msg.data = 0xc00 | msixvec; msg 440 arch/mips/pci/msi-xlp.c pci_write_msi_msg(xirq, &msg); msg 223 arch/mips/pci/pci-xlr.c struct msi_msg msg; msg 250 arch/mips/pci/pci-xlr.c msg.address_hi = MSI_ADDR_BASE_HI; msg 251 arch/mips/pci/pci-xlr.c msg.address_lo = MSI_ADDR_BASE_LO | msg 255 arch/mips/pci/pci-xlr.c msg.data = MSI_DATA_TRIGGER_EDGE | msg 263 arch/mips/pci/pci-xlr.c pci_write_msi_msg(irq, &msg); msg 26 arch/mips/tools/elf-entry.c static void die(const char *msg) msg 28 arch/mips/tools/elf-entry.c fputs(msg, stderr); msg 55 arch/nios2/boot/compressed/misc.c # define Assert(cond, msg) {if (!(cond)) error(msg); } msg 62 arch/nios2/boot/compressed/misc.c # define Assert(cond, msg) msg 11 arch/parisc/include/asm/traps.h void parisc_terminate(char *msg, struct pt_regs *regs, msg 414 arch/parisc/kernel/traps.c void parisc_terminate(char *msg, struct pt_regs *regs, int code, unsigned long offset) msg 418 arch/parisc/kernel/traps.c (void)notify_die(DIE_OOPS, msg, regs, 0, code, SIGTRAP); msg 454 arch/parisc/kernel/traps.c msg, code, trap_name(code), offset); msg 473 arch/parisc/kernel/traps.c panic(msg); msg 35 arch/powerpc/include/asm/dbell.h static inline void _ppc_msgsnd(u32 msg) msg 38 arch/powerpc/include/asm/dbell.h : : "i" (CPU_FTR_HVMODE), "r" (msg)); msg 55 arch/powerpc/include/asm/dbell.h static inline void _ppc_msgclr(u32 msg) msg 58 arch/powerpc/include/asm/dbell.h : : "i" (CPU_FTR_HVMODE), "r" (msg)); msg 63 arch/powerpc/include/asm/dbell.h u32 msg = PPC_DBELL_TYPE(type); msg 65 arch/powerpc/include/asm/dbell.h _ppc_msgclr(msg); msg 72 arch/powerpc/include/asm/dbell.h static inline void _ppc_msgsnd(u32 msg) msg 74 arch/powerpc/include/asm/dbell.h __asm__ __volatile__ (PPC_MSGSND(%0) : : "r" (msg)); msg 97 arch/powerpc/include/asm/dbell.h u32 msg = PPC_DBELL_TYPE(type) | (flags & PPC_DBELL_MSG_BRDCAST) | msg 100 arch/powerpc/include/asm/dbell.h _ppc_msgsnd(msg); msg 134 arch/powerpc/include/asm/fadump-internal.h const char *msg); msg 478 arch/powerpc/include/asm/mpic.h void smp_mpic_message_pass(int target, int msg); msg 211 arch/powerpc/include/asm/opal.h int64_t opal_ipmi_send(uint64_t interface, struct opal_ipmi_msg *msg, msg 213 arch/powerpc/include/asm/opal.h int64_t opal_ipmi_recv(uint64_t interface, struct opal_ipmi_msg *msg, msg 217 arch/powerpc/include/asm/opal.h int64_t opal_prd_msg(struct opal_prd_msg *msg); msg 336 arch/powerpc/include/asm/opal.h extern int opal_async_wait_response(uint64_t token, struct opal_msg *msg); msg 338 arch/powerpc/include/asm/opal.h struct opal_msg *msg); msg 382 arch/powerpc/include/asm/opal.h static inline int opal_get_async_rc(struct opal_msg msg) msg 384 arch/powerpc/include/asm/opal.h if (msg.msg_type != OPAL_MSG_ASYNC_COMP) msg 387 arch/powerpc/include/asm/opal.h return be64_to_cpu(msg.params[1]); msg 24 arch/powerpc/include/asm/pnv-pci.h struct opal_msg *msg); msg 38 arch/powerpc/include/asm/smp.h void (*message_pass)(int cpu, int msg); msg 163 arch/powerpc/include/asm/smp.h extern void smp_muxed_ipi_message_pass(int cpu, int msg); msg 164 arch/powerpc/include/asm/smp.h extern void smp_muxed_ipi_set_message(int cpu, int msg); msg 415 arch/powerpc/kernel/prom_init.c static void __init prom_print(const char *msg) msg 422 arch/powerpc/kernel/prom_init.c for (p = msg; *p != 0; p = q) { msg 239 arch/powerpc/kernel/rtas_flash.c const char *msg; msg 244 arch/powerpc/kernel/rtas_flash.c msg = "error: this partition does not have service authority\n"; msg 247 arch/powerpc/kernel/rtas_flash.c msg = "info: no firmware image for flash\n"; msg 250 arch/powerpc/kernel/rtas_flash.c msg = "error: flash image short\n"; msg 253 arch/powerpc/kernel/rtas_flash.c msg = "error: internal error bad length\n"; msg 256 arch/powerpc/kernel/rtas_flash.c msg = "error: internal error null data\n"; msg 259 arch/powerpc/kernel/rtas_flash.c msg = "ready: firmware image ready for flash on reboot\n"; msg 266 arch/powerpc/kernel/rtas_flash.c len = strlen(msg); msg 267 arch/powerpc/kernel/rtas_flash.c memcpy(buf, msg, len + 1); msg 276 arch/powerpc/kernel/rtas_flash.c char msg[RTAS_MSG_MAXLEN]; msg 285 arch/powerpc/kernel/rtas_flash.c len = get_flash_status_msg(status, msg); msg 286 arch/powerpc/kernel/rtas_flash.c return simple_read_from_buffer(buf, count, ppos, msg, len); msg 293 arch/powerpc/kernel/rtas_flash.c char msg[RTAS_MSG_MAXLEN]; msg 301 arch/powerpc/kernel/rtas_flash.c sprintf(msg, "%d\n", status); msg 302 arch/powerpc/kernel/rtas_flash.c return simple_read_from_buffer(buf, count, ppos, msg, strlen(msg)); msg 390 arch/powerpc/kernel/rtas_flash.c char msg[RTAS_MSG_MAXLEN]; msg 397 arch/powerpc/kernel/rtas_flash.c msglen = sprintf(msg, "%d\n", status); msg 398 arch/powerpc/kernel/rtas_flash.c return simple_read_from_buffer(buf, count, ppos, msg, msglen); msg 466 arch/powerpc/kernel/rtas_flash.c char *msg, int msglen) msg 471 arch/powerpc/kernel/rtas_flash.c n = sprintf(msg, "%d\n", args_buf->update_results); msg 474 arch/powerpc/kernel/rtas_flash.c n += snprintf(msg + n, msglen - n, "%s\n", msg 477 arch/powerpc/kernel/rtas_flash.c n = sprintf(msg, "%d\n", args_buf->status); msg 487 arch/powerpc/kernel/rtas_flash.c char msg[VALIDATE_MSG_LEN]; msg 491 arch/powerpc/kernel/rtas_flash.c msglen = get_validate_flash_msg(args_buf, msg, VALIDATE_MSG_LEN); msg 494 arch/powerpc/kernel/rtas_flash.c return simple_read_from_buffer(buf, count, ppos, msg, msglen); msg 220 arch/powerpc/kernel/smp.c int smp_request_message_ipi(int virq, int msg) msg 224 arch/powerpc/kernel/smp.c if (msg < 0 || msg > PPC_MSG_NMI_IPI) msg 227 arch/powerpc/kernel/smp.c if (msg == PPC_MSG_NMI_IPI) msg 231 arch/powerpc/kernel/smp.c err = request_irq(virq, smp_ipi_action[msg], msg 233 arch/powerpc/kernel/smp.c smp_ipi_name[msg], NULL); msg 235 arch/powerpc/kernel/smp.c virq, smp_ipi_name[msg], err); msg 246 arch/powerpc/kernel/smp.c void smp_muxed_ipi_set_message(int cpu, int msg) msg 255 arch/powerpc/kernel/smp.c message[msg] = 1; msg 258 arch/powerpc/kernel/smp.c void smp_muxed_ipi_message_pass(int cpu, int msg) msg 260 arch/powerpc/kernel/smp.c smp_muxed_ipi_set_message(cpu, msg); msg 320 arch/powerpc/kernel/smp.c static inline void do_message_pass(int cpu, int msg) msg 323 arch/powerpc/kernel/smp.c smp_ops->message_pass(cpu, msg); msg 326 arch/powerpc/kernel/smp.c smp_muxed_ipi_message_pass(cpu, msg); msg 187 arch/powerpc/kvm/book3s_hv.c unsigned long msg = PPC_DBELL_TYPE(PPC_DBELL_SERVER); msg 195 arch/powerpc/kvm/book3s_hv.c msg |= get_hard_smp_processor_id(cpu); msg 197 arch/powerpc/kvm/book3s_hv.c __asm__ __volatile__ (PPC_MSGSND(%0) : : "r" (msg)); msg 206 arch/powerpc/kvm/book3s_hv.c msg |= cpu_thread_in_core(cpu); msg 208 arch/powerpc/kvm/book3s_hv.c __asm__ __volatile__ (PPC_MSGSND(%0) : : "r" (msg)); msg 229 arch/powerpc/kvm/book3s_hv_builtin.c unsigned long msg = PPC_DBELL_TYPE(PPC_DBELL_SERVER); msg 242 arch/powerpc/kvm/book3s_hv_builtin.c msg |= get_hard_smp_processor_id(cpu); msg 243 arch/powerpc/kvm/book3s_hv_builtin.c __asm__ __volatile__ (PPC_MSGSND(%0) : : "r" (msg)); msg 251 arch/powerpc/kvm/book3s_hv_builtin.c msg |= cpu_thread_in_core(cpu); msg 252 arch/powerpc/kvm/book3s_hv_builtin.c __asm__ __volatile__ (PPC_MSGSND(%0) : : "r" (msg)); msg 34 arch/powerpc/kvm/e500_emulate.c int msg = param & PPC_DBELL_TYPE_MASK; msg 37 arch/powerpc/kvm/e500_emulate.c switch (msg) { msg 39 arch/powerpc/platforms/4xx/hsta_msi.c struct msi_msg msg; msg 69 arch/powerpc/platforms/4xx/hsta_msi.c msg.address_hi = upper_32_bits(addr); msg 70 arch/powerpc/platforms/4xx/hsta_msi.c msg.address_lo = lower_32_bits(addr); msg 73 arch/powerpc/platforms/4xx/hsta_msi.c msg.data = 0; msg 76 arch/powerpc/platforms/4xx/hsta_msi.c (((u64) msg.address_hi) << 32) | msg.address_lo); msg 85 arch/powerpc/platforms/4xx/hsta_msi.c pci_write_msi_msg(hwirq, &msg); msg 69 arch/powerpc/platforms/4xx/msi.c struct msi_msg msg; msg 99 arch/powerpc/platforms/4xx/msi.c msg.address_hi = msi_data->msi_addr_hi; msg 100 arch/powerpc/platforms/4xx/msi.c msg.address_lo = msi_data->msi_addr_lo; msg 103 arch/powerpc/platforms/4xx/msi.c msg.data = int_no; msg 104 arch/powerpc/platforms/4xx/msi.c pci_write_msi_msg(virq, &msg); msg 199 arch/powerpc/platforms/cell/axon_msi.c static int setup_msi_msg_address(struct pci_dev *dev, struct msi_msg *msg) msg 234 arch/powerpc/platforms/cell/axon_msi.c msg->address_hi = prop[0]; msg 235 arch/powerpc/platforms/cell/axon_msi.c msg->address_lo = prop[1]; msg 238 arch/powerpc/platforms/cell/axon_msi.c msg->address_hi = 0; msg 239 arch/powerpc/platforms/cell/axon_msi.c msg->address_lo = prop[0]; msg 257 arch/powerpc/platforms/cell/axon_msi.c struct msi_msg msg; msg 264 arch/powerpc/platforms/cell/axon_msi.c rc = setup_msi_msg_address(dev, &msg); msg 278 arch/powerpc/platforms/cell/axon_msi.c msg.data = virq; msg 279 arch/powerpc/platforms/cell/axon_msi.c pci_write_msi_msg(virq, &msg); msg 167 arch/powerpc/platforms/cell/interrupt.c static inline int iic_msg_to_irq(int msg) msg 169 arch/powerpc/platforms/cell/interrupt.c return IIC_IRQ_TYPE_IPI + 0xf - msg; msg 172 arch/powerpc/platforms/cell/interrupt.c void iic_message_pass(int cpu, int msg) msg 174 arch/powerpc/platforms/cell/interrupt.c out_be64(&per_cpu(cpu_iic, cpu).regs->generate, (0xf - msg) << 4); msg 177 arch/powerpc/platforms/cell/interrupt.c static void iic_request_ipi(int msg) msg 181 arch/powerpc/platforms/cell/interrupt.c virq = irq_create_mapping(iic_host, iic_msg_to_irq(msg)); msg 184 arch/powerpc/platforms/cell/interrupt.c "iic: failed to map IPI %s\n", smp_ipi_name[msg]); msg 192 arch/powerpc/platforms/cell/interrupt.c if (smp_request_message_ipi(virq, msg)) msg 79 arch/powerpc/platforms/cell/interrupt.h extern void iic_message_pass(int cpu, int msg); msg 82 arch/powerpc/platforms/pasemi/msi.c struct msi_msg msg; msg 90 arch/powerpc/platforms/pasemi/msi.c msg.address_hi = 0; msg 91 arch/powerpc/platforms/pasemi/msi.c msg.address_lo = PASEMI_MSI_ADDR; msg 126 arch/powerpc/platforms/pasemi/msi.c "addr 0x%x\n", virq, hwirq, msg.address_lo); msg 131 arch/powerpc/platforms/pasemi/msi.c msg.data = hwirq-0x200; msg 132 arch/powerpc/platforms/pasemi/msi.c pci_write_msi_msg(virq, &msg); msg 128 arch/powerpc/platforms/powernv/opal-async.c int opal_async_wait_response(uint64_t token, struct opal_msg *msg) msg 135 arch/powerpc/platforms/powernv/opal-async.c if (!msg) { msg 151 arch/powerpc/platforms/powernv/opal-async.c memcpy(msg, &opal_async_tokens[token].response, sizeof(*msg)); msg 157 arch/powerpc/platforms/powernv/opal-async.c int opal_async_wait_response_interruptible(uint64_t token, struct opal_msg *msg) msg 167 arch/powerpc/platforms/powernv/opal-async.c if (!msg) { msg 205 arch/powerpc/platforms/powernv/opal-async.c memcpy(msg, &opal_async_tokens[token].response, sizeof(*msg)); msg 213 arch/powerpc/platforms/powernv/opal-async.c unsigned long msg_type, void *msg) msg 215 arch/powerpc/platforms/powernv/opal-async.c struct opal_msg *comp_msg = msg; msg 589 arch/powerpc/platforms/powernv/opal-fadump.c const char *msg) msg 601 arch/powerpc/platforms/powernv/opal-fadump.c rc = opal_cec_reboot2(OPAL_REBOOT_MPIPL, msg); msg 271 arch/powerpc/platforms/powernv/opal-hmi.c struct opal_msg msg; msg 301 arch/powerpc/platforms/powernv/opal-hmi.c while (opal_get_msg(__pa(&msg), sizeof(msg)) == OPAL_SUCCESS) { msg 304 arch/powerpc/platforms/powernv/opal-hmi.c type = be32_to_cpu(msg.msg_type); msg 311 arch/powerpc/platforms/powernv/opal-hmi.c hmi_evt = (struct OpalHMIEvent *)&msg.params[0]; msg 325 arch/powerpc/platforms/powernv/opal-hmi.c unsigned long msg_type, void *msg) msg 329 arch/powerpc/platforms/powernv/opal-hmi.c struct opal_msg *hmi_msg = msg; msg 27 arch/powerpc/platforms/powernv/opal-memory-errors.c struct opal_msg msg; msg 68 arch/powerpc/platforms/powernv/opal-memory-errors.c &msg_node->msg.params[0]; msg 88 arch/powerpc/platforms/powernv/opal-memory-errors.c unsigned long msg_type, void *msg) msg 102 arch/powerpc/platforms/powernv/opal-memory-errors.c memcpy(&msg_node->msg, msg, sizeof(msg_node->msg)); msg 79 arch/powerpc/platforms/powernv/opal-power.c unsigned long msg_type, void *msg) msg 95 arch/powerpc/platforms/powernv/opal-power.c type = be64_to_cpu(((struct opal_msg *)msg)->params[0]); msg 35 arch/powerpc/platforms/powernv/opal-powercap.c struct opal_msg msg; msg 52 arch/powerpc/platforms/powernv/opal-powercap.c ret = opal_async_wait_response(token, &msg); msg 58 arch/powerpc/platforms/powernv/opal-powercap.c ret = opal_error_code(opal_get_async_rc(msg)); msg 87 arch/powerpc/platforms/powernv/opal-powercap.c struct opal_msg msg; msg 108 arch/powerpc/platforms/powernv/opal-powercap.c ret = opal_async_wait_response(token, &msg); msg 114 arch/powerpc/platforms/powernv/opal-powercap.c ret = opal_error_code(opal_get_async_rc(msg)); msg 33 arch/powerpc/platforms/powernv/opal-prd.c struct opal_prd_msg_header msg; msg 162 arch/powerpc/platforms/powernv/opal-prd.c if (count < sizeof(item->msg)) msg 192 arch/powerpc/platforms/powernv/opal-prd.c size = be16_to_cpu(item->msg.size); msg 198 arch/powerpc/platforms/powernv/opal-prd.c rc = copy_to_user(buf, &item->msg, size); msg 221 arch/powerpc/platforms/powernv/opal-prd.c void *msg; msg 236 arch/powerpc/platforms/powernv/opal-prd.c msg = memdup_user(buf, size); msg 237 arch/powerpc/platforms/powernv/opal-prd.c if (IS_ERR(msg)) msg 238 arch/powerpc/platforms/powernv/opal-prd.c return PTR_ERR(msg); msg 240 arch/powerpc/platforms/powernv/opal-prd.c rc = opal_prd_msg(msg); msg 246 arch/powerpc/platforms/powernv/opal-prd.c kfree(msg); msg 253 arch/powerpc/platforms/powernv/opal-prd.c struct opal_prd_msg_header msg; msg 255 arch/powerpc/platforms/powernv/opal-prd.c msg.size = cpu_to_be16(sizeof(msg)); msg 256 arch/powerpc/platforms/powernv/opal-prd.c msg.type = OPAL_PRD_MSG_TYPE_FINI; msg 258 arch/powerpc/platforms/powernv/opal-prd.c opal_prd_msg((struct opal_prd_msg *)&msg); msg 341 arch/powerpc/platforms/powernv/opal-prd.c struct opal_msg *msg = _msg; msg 350 arch/powerpc/platforms/powernv/opal-prd.c hdr = (void *)msg->params; msg 352 arch/powerpc/platforms/powernv/opal-prd.c item_size = msg_size + sizeof(*item) - sizeof(item->msg); msg 358 arch/powerpc/platforms/powernv/opal-prd.c memcpy(&item->msg, msg->params, msg_size); msg 29 arch/powerpc/platforms/powernv/opal-psr.c struct opal_msg msg; msg 46 arch/powerpc/platforms/powernv/opal-psr.c ret = opal_async_wait_response(token, &msg); msg 52 arch/powerpc/platforms/powernv/opal-psr.c ret = opal_error_code(opal_get_async_rc(msg)); msg 79 arch/powerpc/platforms/powernv/opal-psr.c struct opal_msg msg; msg 99 arch/powerpc/platforms/powernv/opal-psr.c ret = opal_async_wait_response(token, &msg); msg 105 arch/powerpc/platforms/powernv/opal-psr.c ret = opal_error_code(opal_get_async_rc(msg)); msg 33 arch/powerpc/platforms/powernv/opal-sensor-groups.c struct opal_msg msg; msg 42 arch/powerpc/platforms/powernv/opal-sensor-groups.c ret = opal_async_wait_response(token, &msg); msg 48 arch/powerpc/platforms/powernv/opal-sensor-groups.c ret = opal_error_code(opal_get_async_rc(msg)); msg 63 arch/powerpc/platforms/powernv/opal-sensor-groups.c struct opal_msg msg; msg 87 arch/powerpc/platforms/powernv/opal-sensor-groups.c ret = opal_async_wait_response(token, &msg); msg 93 arch/powerpc/platforms/powernv/opal-sensor-groups.c ret = opal_error_code(opal_get_async_rc(msg)); msg 21 arch/powerpc/platforms/powernv/opal-sensor.c struct opal_msg msg; msg 31 arch/powerpc/platforms/powernv/opal-sensor.c ret = opal_async_wait_response(token, &msg); msg 38 arch/powerpc/platforms/powernv/opal-sensor.c ret = opal_error_code(opal_get_async_rc(msg)); msg 65 arch/powerpc/platforms/powernv/opal-sensor.c struct opal_msg msg; msg 84 arch/powerpc/platforms/powernv/opal-sensor.c ret = opal_async_wait_response(token, &msg); msg 91 arch/powerpc/platforms/powernv/opal-sensor.c ret = opal_error_code(opal_get_async_rc(msg)); msg 31 arch/powerpc/platforms/powernv/opal-sysparam.c struct opal_msg msg; msg 50 arch/powerpc/platforms/powernv/opal-sysparam.c ret = opal_async_wait_response(token, &msg); msg 57 arch/powerpc/platforms/powernv/opal-sysparam.c ret = opal_error_code(opal_get_async_rc(msg)); msg 67 arch/powerpc/platforms/powernv/opal-sysparam.c struct opal_msg msg; msg 86 arch/powerpc/platforms/powernv/opal-sysparam.c ret = opal_async_wait_response(token, &msg); msg 93 arch/powerpc/platforms/powernv/opal-sysparam.c ret = opal_error_code(opal_get_async_rc(msg)); msg 266 arch/powerpc/platforms/powernv/opal.c static void opal_message_do_notify(uint32_t msg_type, void *msg) msg 270 arch/powerpc/platforms/powernv/opal.c msg_type, msg); msg 553 arch/powerpc/platforms/powernv/opal.c void __noreturn pnv_platform_error_reboot(struct pt_regs *regs, const char *msg) msg 557 arch/powerpc/platforms/powernv/opal.c pr_emerg("Hardware platform error: %s\n", msg); msg 568 arch/powerpc/platforms/powernv/opal.c if (opal_cec_reboot2(OPAL_REBOOT_PLATFORM_ERROR, msg) msg 571 arch/powerpc/platforms/powernv/opal.c OPAL_REBOOT_PLATFORM_ERROR, msg); msg 589 arch/powerpc/platforms/powernv/opal.c panic(msg); msg 2801 arch/powerpc/platforms/powernv/pci-ioda.c unsigned int is_64, struct msi_msg *msg) msg 2838 arch/powerpc/platforms/powernv/pci-ioda.c msg->address_hi = be64_to_cpu(addr64) >> 32; msg 2839 arch/powerpc/platforms/powernv/pci-ioda.c msg->address_lo = be64_to_cpu(addr64) & 0xfffffffful; msg 2850 arch/powerpc/platforms/powernv/pci-ioda.c msg->address_hi = 0; msg 2851 arch/powerpc/platforms/powernv/pci-ioda.c msg->address_lo = be32_to_cpu(addr32); msg 2853 arch/powerpc/platforms/powernv/pci-ioda.c msg->data = be32_to_cpu(data); msg 2860 arch/powerpc/platforms/powernv/pci-ioda.c msg->address_hi, msg->address_lo, data, pe->pe_number); msg 122 arch/powerpc/platforms/powernv/pci.c int pnv_pci_set_power_state(uint64_t id, uint8_t state, struct opal_msg *msg) msg 148 arch/powerpc/platforms/powernv/pci.c if (msg) { msg 150 arch/powerpc/platforms/powernv/pci.c memcpy(msg, &m, sizeof(m)); msg 164 arch/powerpc/platforms/powernv/pci.c struct msi_msg msg; msg 195 arch/powerpc/platforms/powernv/pci.c virq, entry->msi_attrib.is_64, &msg); msg 203 arch/powerpc/platforms/powernv/pci.c pci_write_msi_msg(virq, &msg); msg 110 arch/powerpc/platforms/powernv/pci.h unsigned int is_64, struct msi_msg *msg); msg 11 arch/powerpc/platforms/powernv/powernv.h extern void pnv_platform_error_reboot(struct pt_regs *regs, const char *msg) __noreturn; msg 244 arch/powerpc/platforms/powernv/smp.c unsigned long msg = PPC_DBELL_TYPE(PPC_DBELL_SERVER); msg 245 arch/powerpc/platforms/powernv/smp.c asm volatile(PPC_MSGCLR(%0) : : "r" (msg)); msg 30 arch/powerpc/platforms/ps3/smp.c static void ps3_smp_message_pass(int cpu, int msg) msg 35 arch/powerpc/platforms/ps3/smp.c if (msg >= MSG_COUNT) { msg 36 arch/powerpc/platforms/ps3/smp.c DBG("%s:%d: bad msg: %d\n", __func__, __LINE__, msg); msg 40 arch/powerpc/platforms/ps3/smp.c virq = per_cpu(ps3_ipi_virqs, cpu)[msg]; msg 45 arch/powerpc/platforms/ps3/smp.c " (%d)\n", __func__, __LINE__, cpu, msg, result); msg 375 arch/powerpc/platforms/pseries/msi.c struct msi_msg msg; msg 472 arch/powerpc/platforms/pseries/msi.c __pci_read_msi_msg(entry, &msg); msg 473 arch/powerpc/platforms/pseries/msi.c entry->msg = msg; msg 473 arch/powerpc/platforms/pseries/rtas-fadump.c const char *msg) msg 476 arch/powerpc/platforms/pseries/rtas-fadump.c rtas_os_term((char *)msg); msg 142 arch/powerpc/sysdev/fsl_msi.c struct msi_msg *msg, msg 158 arch/powerpc/sysdev/fsl_msi.c msg->address_lo = lower_32_bits(address); msg 159 arch/powerpc/sysdev/fsl_msi.c msg->address_hi = upper_32_bits(address); msg 169 arch/powerpc/sysdev/fsl_msi.c msg->data = __swab32(hwirq); msg 171 arch/powerpc/sysdev/fsl_msi.c msg->data = hwirq; msg 186 arch/powerpc/sysdev/fsl_msi.c struct msi_msg msg; msg 257 arch/powerpc/sysdev/fsl_msi.c fsl_compose_msi_msg(pdev, hwirq, &msg, msi_data); msg 258 arch/powerpc/sysdev/fsl_msi.c pci_write_msi_msg(virq, &msg); msg 1862 arch/powerpc/sysdev/mpic.c void smp_mpic_message_pass(int cpu, int msg) msg 1870 arch/powerpc/sysdev/mpic.c if ((unsigned int)msg > 3) { msg 1872 arch/powerpc/sysdev/mpic.c smp_processor_id(), msg); msg 1877 arch/powerpc/sysdev/mpic.c DBG("%s: send_ipi(ipi_no: %d)\n", mpic->name, msg); msg 1883 arch/powerpc/sysdev/mpic.c msg * MPIC_INFO(CPU_IPI_DISPATCH_STRIDE), physmask); msg 124 arch/powerpc/sysdev/mpic_u3msi.c struct msi_msg msg; msg 149 arch/powerpc/sysdev/mpic_u3msi.c msg.address_lo = addr & 0xFFFFFFFF; msg 150 arch/powerpc/sysdev/mpic_u3msi.c msg.address_hi = addr >> 32; msg 168 arch/powerpc/sysdev/mpic_u3msi.c msg.data = hwirq; msg 169 arch/powerpc/sysdev/mpic_u3msi.c pci_write_msi_msg(virq, &msg); msg 32 arch/powerpc/sysdev/pmi.c pmi_message_t msg; msg 64 arch/powerpc/sysdev/pmi.c data->msg.type = type; msg 65 arch/powerpc/sysdev/pmi.c data->msg.data0 = ioread8(data->pmi_reg + PMI_READ_DATA0); msg 66 arch/powerpc/sysdev/pmi.c data->msg.data1 = ioread8(data->pmi_reg + PMI_READ_DATA1); msg 67 arch/powerpc/sysdev/pmi.c data->msg.data2 = ioread8(data->pmi_reg + PMI_READ_DATA2); msg 77 arch/powerpc/sysdev/pmi.c if (data->msg.type & PMI_ACK) { msg 106 arch/powerpc/sysdev/pmi.c if (handler->type == data->msg.type) msg 107 arch/powerpc/sysdev/pmi.c handler->handle_pmi_message(data->msg); msg 205 arch/powerpc/sysdev/pmi.c int pmi_send_message(pmi_message_t msg) msg 215 arch/powerpc/sysdev/pmi.c data->msg = msg; msg 216 arch/powerpc/sysdev/pmi.c pr_debug("pmi_send_message: msg is %08x\n", *(u32*)&msg); msg 221 arch/powerpc/sysdev/pmi.c iowrite8(msg.data0, data->pmi_reg + PMI_WRITE_DATA0); msg 222 arch/powerpc/sysdev/pmi.c iowrite8(msg.data1, data->pmi_reg + PMI_WRITE_DATA1); msg 223 arch/powerpc/sysdev/pmi.c iowrite8(msg.data2, data->pmi_reg + PMI_WRITE_DATA2); msg 224 arch/powerpc/sysdev/pmi.c iowrite8(msg.type, data->pmi_reg + PMI_WRITE_TYPE); msg 42 arch/powerpc/xmon/nonstdio.c const char msg[] = "[Hit a key (a:all, q:truncate, any:next page)]"; msg 57 arch/powerpc/xmon/nonstdio.c udbg_write(msg, strlen(msg)); msg 304 arch/s390/include/asm/ap.h void *msg, size_t length) msg 308 arch/s390/include/asm/ap.h register unsigned long reg2 asm ("2") = (unsigned long) msg; msg 342 arch/s390/include/asm/ap.h void *msg, size_t length) msg 347 arch/s390/include/asm/ap.h register unsigned long reg4 asm("4") = (unsigned long) msg; msg 78 arch/s390/kernel/os_info.c char *buf, *buf_align, *msg; msg 83 arch/s390/kernel/os_info.c msg = "not available"; msg 89 arch/s390/kernel/os_info.c msg = "alloc failed"; msg 94 arch/s390/kernel/os_info.c msg = "copy failed"; msg 99 arch/s390/kernel/os_info.c msg = "checksum failed"; msg 103 arch/s390/kernel/os_info.c msg = "copied"; msg 111 arch/s390/kernel/os_info.c nr, msg, addr, size); msg 355 arch/s390/mm/cmm.c static void cmm_smsg_target(const char *from, char *msg) msg 361 arch/s390/mm/cmm.c if (!cmm_skip_blanks(msg + strlen(SMSG_PREFIX), &msg)) msg 363 arch/s390/mm/cmm.c if (strncmp(msg, "SHRINK", 6) == 0) { msg 364 arch/s390/mm/cmm.c if (!cmm_skip_blanks(msg + 6, &msg)) msg 366 arch/s390/mm/cmm.c nr = simple_strtoul(msg, &msg, 0); msg 367 arch/s390/mm/cmm.c cmm_skip_blanks(msg, &msg); msg 368 arch/s390/mm/cmm.c if (*msg == '\0') msg 370 arch/s390/mm/cmm.c } else if (strncmp(msg, "RELEASE", 7) == 0) { msg 371 arch/s390/mm/cmm.c if (!cmm_skip_blanks(msg + 7, &msg)) msg 373 arch/s390/mm/cmm.c nr = simple_strtoul(msg, &msg, 0); msg 374 arch/s390/mm/cmm.c cmm_skip_blanks(msg, &msg); msg 375 arch/s390/mm/cmm.c if (*msg == '\0') msg 377 arch/s390/mm/cmm.c } else if (strncmp(msg, "REUSE", 5) == 0) { msg 378 arch/s390/mm/cmm.c if (!cmm_skip_blanks(msg + 5, &msg)) msg 380 arch/s390/mm/cmm.c nr = simple_strtoul(msg, &msg, 0); msg 381 arch/s390/mm/cmm.c if (!cmm_skip_blanks(msg, &msg)) msg 383 arch/s390/mm/cmm.c seconds = simple_strtoul(msg, &msg, 0); msg 384 arch/s390/mm/cmm.c cmm_skip_blanks(msg, &msg); msg 385 arch/s390/mm/cmm.c if (*msg == '\0') msg 105 arch/s390/pci/pci_irq.c struct msi_msg msg = entry->msg; msg 107 arch/s390/pci/pci_irq.c msg.address_lo &= 0xff0000ff; msg 108 arch/s390/pci/pci_irq.c msg.address_lo |= (cpumask_first(dest) << 8); msg 109 arch/s390/pci/pci_irq.c pci_write_msi_msg(data->irq, &msg); msg 240 arch/s390/pci/pci_irq.c struct msi_msg msg; msg 288 arch/s390/pci/pci_irq.c msg.data = hwirq - bit; msg 290 arch/s390/pci/pci_irq.c msg.address_lo = zdev->msi_addr & 0xff0000ff; msg 291 arch/s390/pci/pci_irq.c msg.address_lo |= msi->affinity ? msg 297 arch/s390/pci/pci_irq.c msg.address_lo = zdev->msi_addr & 0xffffffff; msg 300 arch/s390/pci/pci_irq.c msg.address_hi = zdev->msi_addr >> 32; msg 301 arch/s390/pci/pci_irq.c pci_write_msi_msg(irq, &msg); msg 342 arch/s390/pci/pci_irq.c msi->msg.address_lo = 0; msg 343 arch/s390/pci/pci_irq.c msi->msg.address_hi = 0; msg 344 arch/s390/pci/pci_irq.c msi->msg.data = 0; msg 1034 arch/sh/boards/mach-ecovec24/setup.c struct i2c_msg msg[2]; msg 1038 arch/sh/boards/mach-ecovec24/setup.c msg[0].addr = EEPROM_ADDR; msg 1039 arch/sh/boards/mach-ecovec24/setup.c msg[0].flags = 0; msg 1040 arch/sh/boards/mach-ecovec24/setup.c msg[0].len = 1; msg 1041 arch/sh/boards/mach-ecovec24/setup.c msg[0].buf = &command; msg 1043 arch/sh/boards/mach-ecovec24/setup.c msg[1].addr = EEPROM_ADDR; msg 1044 arch/sh/boards/mach-ecovec24/setup.c msg[1].flags = I2C_M_RD; msg 1045 arch/sh/boards/mach-ecovec24/setup.c msg[1].len = 1; msg 1046 arch/sh/boards/mach-ecovec24/setup.c msg[1].buf = &buf; msg 1048 arch/sh/boards/mach-ecovec24/setup.c ret = i2c_transfer(a, msg, 2); msg 355 arch/sh/boards/mach-kfr2r09/setup.c struct i2c_msg msg; msg 365 arch/sh/boards/mach-kfr2r09/setup.c msg.addr = 0x09; msg 366 arch/sh/boards/mach-kfr2r09/setup.c msg.buf = buf; msg 367 arch/sh/boards/mach-kfr2r09/setup.c msg.len = 1; msg 368 arch/sh/boards/mach-kfr2r09/setup.c msg.flags = 0; msg 369 arch/sh/boards/mach-kfr2r09/setup.c ret = i2c_transfer(a, &msg, 1); msg 374 arch/sh/boards/mach-kfr2r09/setup.c msg.addr = 0x09; msg 375 arch/sh/boards/mach-kfr2r09/setup.c msg.buf = buf; msg 376 arch/sh/boards/mach-kfr2r09/setup.c msg.len = 1; msg 377 arch/sh/boards/mach-kfr2r09/setup.c msg.flags = I2C_M_RD; msg 378 arch/sh/boards/mach-kfr2r09/setup.c ret = i2c_transfer(a, &msg, 1); msg 384 arch/sh/boards/mach-kfr2r09/setup.c msg.addr = 0x09; msg 385 arch/sh/boards/mach-kfr2r09/setup.c msg.buf = buf; msg 386 arch/sh/boards/mach-kfr2r09/setup.c msg.len = 2; msg 387 arch/sh/boards/mach-kfr2r09/setup.c msg.flags = 0; msg 388 arch/sh/boards/mach-kfr2r09/setup.c ret = i2c_transfer(a, &msg, 1); msg 398 arch/sh/boards/mach-kfr2r09/setup.c struct i2c_msg msg; msg 408 arch/sh/boards/mach-kfr2r09/setup.c msg.addr = 0x09; msg 409 arch/sh/boards/mach-kfr2r09/setup.c msg.buf = buf; msg 410 arch/sh/boards/mach-kfr2r09/setup.c msg.len = 1; msg 411 arch/sh/boards/mach-kfr2r09/setup.c msg.flags = 0; msg 412 arch/sh/boards/mach-kfr2r09/setup.c ret = i2c_transfer(a, &msg, 1); msg 417 arch/sh/boards/mach-kfr2r09/setup.c msg.addr = 0x09; msg 418 arch/sh/boards/mach-kfr2r09/setup.c msg.buf = buf; msg 419 arch/sh/boards/mach-kfr2r09/setup.c msg.len = 1; msg 420 arch/sh/boards/mach-kfr2r09/setup.c msg.flags = I2C_M_RD; msg 421 arch/sh/boards/mach-kfr2r09/setup.c ret = i2c_transfer(a, &msg, 1); msg 427 arch/sh/boards/mach-kfr2r09/setup.c msg.addr = 0x09; msg 428 arch/sh/boards/mach-kfr2r09/setup.c msg.buf = buf; msg 429 arch/sh/boards/mach-kfr2r09/setup.c msg.len = 2; msg 430 arch/sh/boards/mach-kfr2r09/setup.c msg.flags = 0; msg 431 arch/sh/boards/mach-kfr2r09/setup.c ret = i2c_transfer(a, &msg, 1); msg 37 arch/sh/include/asm/smp.h void smp_message_recv(unsigned int msg); msg 301 arch/sh/kernel/smp.c void smp_message_recv(unsigned int msg) msg 303 arch/sh/kernel/smp.c switch (msg) { msg 320 arch/sh/kernel/smp.c smp_processor_id(), __func__, msg); msg 778 arch/sparc/kernel/ds.c struct ds_var_set_msg msg; msg 798 arch/sparc/kernel/ds.c pkt.header.msg.hdr.type = DS_VAR_SET_REQ; msg 799 arch/sparc/kernel/ds.c base = p = &pkt.header.msg.name_and_value[0]; msg 512 arch/sparc/kernel/ldc.c static int ldc_abort(struct ldc_channel *lp, const char *msg) msg 516 arch/sparc/kernel/ldc.c ldcdbg(STATE, "ABORT[%s]\n", msg); msg 128 arch/sparc/kernel/pci_msi.c struct msi_msg msg; msg 156 arch/sparc/kernel/pci_msi.c msg.address_hi = pbm->msi64_start >> 32; msg 157 arch/sparc/kernel/pci_msi.c msg.address_lo = pbm->msi64_start & 0xffffffff; msg 159 arch/sparc/kernel/pci_msi.c msg.address_hi = 0; msg 160 arch/sparc/kernel/pci_msi.c msg.address_lo = pbm->msi32_start; msg 162 arch/sparc/kernel/pci_msi.c msg.data = msi; msg 165 arch/sparc/kernel/pci_msi.c pci_write_msi_msg(*irq_p, &msg); msg 218 arch/sparc/kernel/prom_32.c char *msg = "OF stdout device is: %s\n"; msg 324 arch/sparc/kernel/prom_32.c printk(msg, of_console_path); msg 599 arch/sparc/kernel/prom_64.c char *msg = "OF stdout device is: %s\n"; msg 632 arch/sparc/kernel/prom_64.c printk(msg, of_console_path); msg 22 arch/sparc/kernel/sstate.c static void do_set_sstate(unsigned long state, const char *msg) msg 29 arch/sparc/kernel/sstate.c err = sun4v_mach_set_soft_state(state, kimage_addr_to_ra(msg)); msg 33 arch/sparc/kernel/sstate.c state, msg, err); msg 52 arch/sparc/kernel/sstate.c const char *msg; msg 57 arch/sparc/kernel/sstate.c msg = rebooting_msg; msg 61 arch/sparc/kernel/sstate.c msg = halting_msg; msg 65 arch/sparc/kernel/sstate.c msg = poweroff_msg; msg 69 arch/sparc/kernel/sstate.c do_set_sstate(HV_SOFT_STATE_TRANSITION, msg); msg 43 arch/um/drivers/mconsole_user.c struct msghdr msg; msg 48 arch/um/drivers/mconsole_user.c msg.msg_name = &(req->origin); msg 49 arch/um/drivers/mconsole_user.c msg.msg_namelen = req->originlen; msg 50 arch/um/drivers/mconsole_user.c msg.msg_iov = &iov; msg 51 arch/um/drivers/mconsole_user.c msg.msg_iovlen = 1; msg 52 arch/um/drivers/mconsole_user.c msg.msg_control = NULL; msg 53 arch/um/drivers/mconsole_user.c msg.msg_controllen = 0; msg 54 arch/um/drivers/mconsole_user.c msg.msg_flags = 0; msg 56 arch/um/drivers/mconsole_user.c return sendmsg(req->originating_fd, &msg, 0); msg 596 arch/um/drivers/vector_kern.c struct user_msghdr *msg) msg 601 arch/um/drivers/vector_kern.c struct iovec *iov = msg->msg_iov; msg 645 arch/um/drivers/vector_kern.c msg->msg_iovlen = iov_index; msg 605 arch/um/drivers/vector_user.c struct msghdr *msg = (struct msghdr *) hdr; msg 607 arch/um/drivers/vector_user.c CATCH_EINTR(n = readv(fd, msg->msg_iov, msg->msg_iovlen)); msg 105 arch/um/drivers/virtio_uml.c static int vhost_user_recv_header(int fd, struct vhost_user_msg *msg) msg 107 arch/um/drivers/virtio_uml.c return full_read(fd, msg, sizeof(msg->header), true); msg 110 arch/um/drivers/virtio_uml.c static int vhost_user_recv(int fd, struct vhost_user_msg *msg, msg 114 arch/um/drivers/virtio_uml.c int rc = vhost_user_recv_header(fd, msg); msg 118 arch/um/drivers/virtio_uml.c size = msg->header.size; msg 121 arch/um/drivers/virtio_uml.c return full_read(fd, &msg->payload, size, false); msg 125 arch/um/drivers/virtio_uml.c struct vhost_user_msg *msg, msg 128 arch/um/drivers/virtio_uml.c int rc = vhost_user_recv(vu_dev->sock, msg, max_payload_size); msg 133 arch/um/drivers/virtio_uml.c if (msg->header.flags != (VHOST_USER_FLAG_REPLY | VHOST_USER_VERSION)) msg 142 arch/um/drivers/virtio_uml.c struct vhost_user_msg msg; msg 143 arch/um/drivers/virtio_uml.c int rc = vhost_user_recv_resp(vu_dev, &msg, msg 144 arch/um/drivers/virtio_uml.c sizeof(msg.payload.integer)); msg 148 arch/um/drivers/virtio_uml.c if (msg.header.size != sizeof(msg.payload.integer)) msg 150 arch/um/drivers/virtio_uml.c *value = msg.payload.integer; msg 155 arch/um/drivers/virtio_uml.c struct vhost_user_msg *msg, msg 158 arch/um/drivers/virtio_uml.c int rc = vhost_user_recv(vu_dev->req_fd, msg, max_payload_size); msg 163 arch/um/drivers/virtio_uml.c if ((msg->header.flags & ~VHOST_USER_FLAG_NEED_REPLY) != msg 171 arch/um/drivers/virtio_uml.c bool need_response, struct vhost_user_msg *msg, msg 174 arch/um/drivers/virtio_uml.c size_t size = sizeof(msg->header) + msg->header.size; msg 178 arch/um/drivers/virtio_uml.c msg->header.flags |= VHOST_USER_VERSION; msg 191 arch/um/drivers/virtio_uml.c msg->header.flags |= VHOST_USER_FLAG_NEED_REPLY; msg 193 arch/um/drivers/virtio_uml.c rc = full_sendmsg_fds(vu_dev->sock, msg, size, fds, num_fds); msg 216 arch/um/drivers/virtio_uml.c struct vhost_user_msg msg = { msg 220 arch/um/drivers/virtio_uml.c return vhost_user_send(vu_dev, need_response, &msg, NULL, 0); msg 226 arch/um/drivers/virtio_uml.c struct vhost_user_msg msg = { msg 230 arch/um/drivers/virtio_uml.c return vhost_user_send(vu_dev, false, &msg, &fd, 1); msg 236 arch/um/drivers/virtio_uml.c struct vhost_user_msg msg = { msg 238 arch/um/drivers/virtio_uml.c .header.size = sizeof(msg.payload.integer), msg 242 arch/um/drivers/virtio_uml.c return vhost_user_send(vu_dev, false, &msg, NULL, 0); msg 286 arch/um/drivers/virtio_uml.c struct vhost_user_msg *msg, int response) msg 294 arch/um/drivers/virtio_uml.c reply.header = msg->header; msg 312 arch/um/drivers/virtio_uml.c struct vhost_user_msg msg; msg 314 arch/um/drivers/virtio_uml.c } msg; msg 317 arch/um/drivers/virtio_uml.c rc = vhost_user_recv_req(vu_dev, &msg.msg, msg 318 arch/um/drivers/virtio_uml.c sizeof(msg.msg.payload) + msg 319 arch/um/drivers/virtio_uml.c sizeof(msg.extra_payload)); msg 324 arch/um/drivers/virtio_uml.c switch (msg.msg.header.request) { msg 335 arch/um/drivers/virtio_uml.c msg.msg.header.request); msg 338 arch/um/drivers/virtio_uml.c if (msg.msg.header.flags & VHOST_USER_FLAG_NEED_REPLY) msg 339 arch/um/drivers/virtio_uml.c vhost_user_reply(vu_dev, &msg.msg, response); msg 413 arch/um/drivers/virtio_uml.c struct vhost_user_msg *msg; msg 414 arch/um/drivers/virtio_uml.c size_t payload_size = sizeof(msg->payload.config) + cfg_size; msg 415 arch/um/drivers/virtio_uml.c size_t msg_size = sizeof(msg->header) + payload_size; msg 422 arch/um/drivers/virtio_uml.c msg = kzalloc(msg_size, GFP_KERNEL); msg 423 arch/um/drivers/virtio_uml.c if (!msg) msg 425 arch/um/drivers/virtio_uml.c msg->header.request = VHOST_USER_GET_CONFIG; msg 426 arch/um/drivers/virtio_uml.c msg->header.size = payload_size; msg 427 arch/um/drivers/virtio_uml.c msg->payload.config.offset = 0; msg 428 arch/um/drivers/virtio_uml.c msg->payload.config.size = cfg_size; msg 430 arch/um/drivers/virtio_uml.c rc = vhost_user_send(vu_dev, true, msg, NULL, 0); msg 437 arch/um/drivers/virtio_uml.c rc = vhost_user_recv_resp(vu_dev, msg, msg_size); msg 445 arch/um/drivers/virtio_uml.c if (msg->header.size != payload_size || msg 446 arch/um/drivers/virtio_uml.c msg->payload.config.size != cfg_size) { msg 450 arch/um/drivers/virtio_uml.c msg->header.size, payload_size, msg 451 arch/um/drivers/virtio_uml.c msg->payload.config.size, cfg_size); msg 454 arch/um/drivers/virtio_uml.c memcpy(buf, msg->payload.config.payload + offset, len); msg 457 arch/um/drivers/virtio_uml.c kfree(msg); msg 463 arch/um/drivers/virtio_uml.c struct vhost_user_msg *msg; msg 464 arch/um/drivers/virtio_uml.c size_t payload_size = sizeof(msg->payload.config) + len; msg 465 arch/um/drivers/virtio_uml.c size_t msg_size = sizeof(msg->header) + payload_size; msg 472 arch/um/drivers/virtio_uml.c msg = kzalloc(msg_size, GFP_KERNEL); msg 473 arch/um/drivers/virtio_uml.c if (!msg) msg 475 arch/um/drivers/virtio_uml.c msg->header.request = VHOST_USER_SET_CONFIG; msg 476 arch/um/drivers/virtio_uml.c msg->header.size = payload_size; msg 477 arch/um/drivers/virtio_uml.c msg->payload.config.offset = offset; msg 478 arch/um/drivers/virtio_uml.c msg->payload.config.size = len; msg 479 arch/um/drivers/virtio_uml.c memcpy(msg->payload.config.payload, buf, len); msg 481 arch/um/drivers/virtio_uml.c rc = vhost_user_send(vu_dev, false, msg, NULL, 0); msg 486 arch/um/drivers/virtio_uml.c kfree(msg); msg 513 arch/um/drivers/virtio_uml.c struct vhost_user_msg msg = { msg 515 arch/um/drivers/virtio_uml.c .header.size = sizeof(msg.payload.mem_regions), msg 559 arch/um/drivers/virtio_uml.c &msg.payload.mem_regions.regions[0]); msg 564 arch/um/drivers/virtio_uml.c msg.payload.mem_regions.num++; msg 566 arch/um/drivers/virtio_uml.c &fds[1], &msg.payload.mem_regions.regions[1]); msg 571 arch/um/drivers/virtio_uml.c return vhost_user_send(vu_dev, false, &msg, fds, msg 572 arch/um/drivers/virtio_uml.c msg.payload.mem_regions.num); msg 578 arch/um/drivers/virtio_uml.c struct vhost_user_msg msg = { msg 580 arch/um/drivers/virtio_uml.c .header.size = sizeof(msg.payload.vring_state), msg 585 arch/um/drivers/virtio_uml.c return vhost_user_send(vu_dev, false, &msg, NULL, 0); msg 606 arch/um/drivers/virtio_uml.c struct vhost_user_msg msg = { msg 608 arch/um/drivers/virtio_uml.c .header.size = sizeof(msg.payload.vring_addr), msg 616 arch/um/drivers/virtio_uml.c return vhost_user_send(vu_dev, false, &msg, NULL, 0); msg 622 arch/um/drivers/virtio_uml.c struct vhost_user_msg msg = { msg 624 arch/um/drivers/virtio_uml.c .header.size = sizeof(msg.payload.integer), msg 631 arch/um/drivers/virtio_uml.c msg.payload.integer |= VHOST_USER_VRING_POLL_MASK; msg 632 arch/um/drivers/virtio_uml.c return vhost_user_send(vu_dev, false, &msg, NULL, 0); msg 634 arch/um/drivers/virtio_uml.c return vhost_user_send(vu_dev, false, &msg, &fd, 1); msg 70 arch/um/os-Linux/drivers/tuntap_user.c struct msghdr msg; msg 87 arch/um/os-Linux/drivers/tuntap_user.c msg.msg_name = NULL; msg 88 arch/um/os-Linux/drivers/tuntap_user.c msg.msg_namelen = 0; msg 91 arch/um/os-Linux/drivers/tuntap_user.c msg.msg_iov = &iov; msg 92 arch/um/os-Linux/drivers/tuntap_user.c msg.msg_iovlen = 1; msg 95 arch/um/os-Linux/drivers/tuntap_user.c msg.msg_iov = NULL; msg 96 arch/um/os-Linux/drivers/tuntap_user.c msg.msg_iovlen = 0; msg 98 arch/um/os-Linux/drivers/tuntap_user.c msg.msg_control = buf; msg 99 arch/um/os-Linux/drivers/tuntap_user.c msg.msg_controllen = sizeof(buf); msg 100 arch/um/os-Linux/drivers/tuntap_user.c msg.msg_flags = 0; msg 101 arch/um/os-Linux/drivers/tuntap_user.c n = recvmsg(me, &msg, 0); msg 111 arch/um/os-Linux/drivers/tuntap_user.c cmsg = CMSG_FIRSTHDR(&msg); msg 506 arch/um/os-Linux/file.c struct msghdr msg; msg 510 arch/um/os-Linux/file.c msg.msg_name = NULL; msg 511 arch/um/os-Linux/file.c msg.msg_namelen = 0; msg 514 arch/um/os-Linux/file.c msg.msg_iov = &iov; msg 515 arch/um/os-Linux/file.c msg.msg_iovlen = 1; msg 516 arch/um/os-Linux/file.c msg.msg_control = buf; msg 517 arch/um/os-Linux/file.c msg.msg_controllen = sizeof(buf); msg 518 arch/um/os-Linux/file.c msg.msg_flags = 0; msg 520 arch/um/os-Linux/file.c n = recvmsg(fd, &msg, 0); msg 526 arch/um/os-Linux/file.c cmsg = CMSG_FIRSTHDR(&msg); msg 646 arch/um/os-Linux/file.c struct msghdr msg = { msg 652 arch/um/os-Linux/file.c struct cmsghdr *cmsg = CMSG_FIRSTHDR(&msg); msg 662 arch/um/os-Linux/file.c err = sendmsg(fd, &msg, 0); msg 15 arch/unicore32/include/asm/bug.h extern void die(const char *msg, struct pt_regs *regs, int err); msg 83 arch/x86/include/asm/hpet.h extern void hpet_msi_write(struct hpet_channel *hc, struct msi_msg *msg); msg 45 arch/x86/include/asm/irq_remapping.h extern void panic_if_irq_remap(const char *msg); msg 72 arch/x86/include/asm/irq_remapping.h static inline void panic_if_irq_remap(const char *msg) msg 507 arch/x86/include/asm/kvm_host.h struct hv_message msg; msg 491 arch/x86/include/asm/uv/uv_bau.h struct bau_pq_entry *msg; msg 82 arch/x86/include/asm/virtext.h static inline int cpu_has_svm(const char **msg) msg 86 arch/x86/include/asm/virtext.h if (msg) msg 87 arch/x86/include/asm/virtext.h *msg = "not amd or hygon"; msg 92 arch/x86/include/asm/virtext.h if (msg) msg 93 arch/x86/include/asm/virtext.h *msg = "can't execute cpuid_8000000a"; msg 98 arch/x86/include/asm/virtext.h if (msg) msg 99 arch/x86/include/asm/virtext.h *msg = "svm not available"; msg 26 arch/x86/kernel/apic/msi.c static void __irq_msi_compose_msg(struct irq_cfg *cfg, struct msi_msg *msg) msg 28 arch/x86/kernel/apic/msi.c msg->address_hi = MSI_ADDR_BASE_HI; msg 31 arch/x86/kernel/apic/msi.c msg->address_hi |= MSI_ADDR_EXT_DEST_ID(cfg->dest_apicid); msg 33 arch/x86/kernel/apic/msi.c msg->address_lo = msg 41 arch/x86/kernel/apic/msi.c msg->data = msg 48 arch/x86/kernel/apic/msi.c static void irq_msi_compose_msg(struct irq_data *data, struct msi_msg *msg) msg 50 arch/x86/kernel/apic/msi.c __irq_msi_compose_msg(irqd_cfg(data), msg); msg 55 arch/x86/kernel/apic/msi.c struct msi_msg msg[2] = { [1] = { }, }; msg 57 arch/x86/kernel/apic/msi.c __irq_msi_compose_msg(cfg, msg); msg 58 arch/x86/kernel/apic/msi.c irq_data_get_irq_chip(irqd)->irq_write_msi_msg(irqd, msg); msg 309 arch/x86/kernel/apic/msi.c static void dmar_msi_write_msg(struct irq_data *data, struct msi_msg *msg) msg 311 arch/x86/kernel/apic/msi.c dmar_msi_write(data->irq, msg); msg 406 arch/x86/kernel/apic/msi.c static void hpet_msi_write_msg(struct irq_data *data, struct msi_msg *msg) msg 408 arch/x86/kernel/apic/msi.c hpet_msi_write(irq_data_get_irq_handler_data(data), msg); msg 457 arch/x86/kernel/apm_32.c char *msg; msg 503 arch/x86/kernel/apm_32.c pr_notice("%s: %s\n", str, error_table[i].msg); msg 313 arch/x86/kernel/cpu/mce/core.c static void mce_panic(const char *msg, struct mce *final, char *exp) msg 367 arch/x86/kernel/cpu/mce/core.c panic(msg); msg 369 arch/x86/kernel/cpu/mce/core.c pr_emerg(HW_ERR "Fake kernel panic: %s\n", msg); msg 809 arch/x86/kernel/cpu/mce/core.c static int mce_no_way_out(struct mce *m, char **msg, unsigned long *validp, msg 827 arch/x86/kernel/cpu/mce/core.c *msg = tmp; msg 848 arch/x86/kernel/cpu/mce/core.c static int mce_timed_out(u64 *t, const char *msg) msg 863 arch/x86/kernel/cpu/mce/core.c mce_panic(msg, NULL, NULL); msg 902 arch/x86/kernel/cpu/mce/core.c char *msg = NULL; msg 915 arch/x86/kernel/cpu/mce/core.c msg = nmsg; msg 927 arch/x86/kernel/cpu/mce/core.c mce_panic("Fatal machine check", m, msg); msg 1231 arch/x86/kernel/cpu/mce/core.c char *msg = "Unknown"; msg 1273 arch/x86/kernel/cpu/mce/core.c no_way_out = mce_no_way_out(&m, &msg, valid_banks, regs); msg 1301 arch/x86/kernel/cpu/mce/core.c mce_panic("Fatal local machine check", &m, msg); msg 1328 arch/x86/kernel/cpu/mce/core.c mce_severity(&m, cfg->tolerant, &msg, true); msg 1329 arch/x86/kernel/cpu/mce/core.c mce_panic("Local fatal machine check!", &m, msg); msg 1340 arch/x86/kernel/cpu/mce/core.c mce_panic("Fatal machine check on current CPU", &m, msg); msg 38 arch/x86/kernel/cpu/mce/internal.h extern int (*mce_severity)(struct mce *a, int tolerant, char **msg, bool is_excp); msg 43 arch/x86/kernel/cpu/mce/severity.c char *msg; msg 45 arch/x86/kernel/cpu/mce/severity.c #define MCESEV(s, m, c...) { .sev = MCE_ ## s ## _SEVERITY, .msg = m, ## c } msg 252 arch/x86/kernel/cpu/mce/severity.c static int mce_severity_amd(struct mce *m, int tolerant, char **msg, bool is_excp) msg 304 arch/x86/kernel/cpu/mce/severity.c static int mce_severity_intel(struct mce *m, int tolerant, char **msg, bool is_excp) msg 323 arch/x86/kernel/cpu/mce/severity.c if (msg) msg 324 arch/x86/kernel/cpu/mce/severity.c *msg = s->msg; msg 335 arch/x86/kernel/cpu/mce/severity.c int (*mce_severity)(struct mce *m, int tolerant, char **msg, bool is_excp) = msg 367 arch/x86/kernel/cpu/mce/severity.c seq_printf(f, "%d\t%s\n", ser->covered, ser->msg); msg 860 arch/x86/kernel/e820.c static void __init early_panic(char *msg) msg 862 arch/x86/kernel/e820.c early_printk(msg); msg 863 arch/x86/kernel/e820.c panic(msg); msg 492 arch/x86/kernel/hpet.c void hpet_msi_write(struct hpet_channel *hc, struct msi_msg *msg) msg 494 arch/x86/kernel/hpet.c hpet_writel(msg->data, HPET_Tn_ROUTE(hc->num)); msg 495 arch/x86/kernel/hpet.c hpet_writel(msg->address_lo, HPET_Tn_ROUTE(hc->num) + 4); msg 502 arch/x86/kernel/hpet.c struct msi_msg msg; msg 505 arch/x86/kernel/hpet.c irq_chip_compose_msi_msg(data, &msg); msg 506 arch/x86/kernel/hpet.c hpet_msi_write(hc, &msg); msg 624 arch/x86/kvm/hyperv.c struct hv_message *msg = &stimer->msg; msg 626 arch/x86/kvm/hyperv.c (struct hv_timer_message_payload *)&msg->u.payload; msg 637 arch/x86/kvm/hyperv.c stimer->config.sintx, msg, msg 731 arch/x86/kvm/hyperv.c struct hv_message *msg = &stimer->msg; msg 733 arch/x86/kvm/hyperv.c (struct hv_timer_message_payload *)&msg->u.payload; msg 735 arch/x86/kvm/hyperv.c memset(&msg->header, 0, sizeof(msg->header)); msg 736 arch/x86/kvm/hyperv.c msg->header.message_type = HVMSG_TIMER_EXPIRED; msg 737 arch/x86/kvm/hyperv.c msg->header.payload_size = sizeof(*payload); msg 888 arch/x86/kvm/svm.c const char *msg; msg 890 arch/x86/kvm/svm.c if (!cpu_has_svm(&msg)) { msg 891 arch/x86/kvm/svm.c printk(KERN_INFO "has_svm: %s\n", msg); msg 1482 arch/x86/kvm/trace.h TP_PROTO(const char *msg, u32 err), msg 1483 arch/x86/kvm/trace.h TP_ARGS(msg, err), msg 1486 arch/x86/kvm/trace.h __field(const char *, msg) msg 1491 arch/x86/kvm/trace.h __entry->msg = msg; msg 1495 arch/x86/kvm/trace.h TP_printk("%s%s", __entry->msg, !__entry->err ? "" : msg 167 arch/x86/mm/pat.c static enum page_cache_mode pat_get_cache_mode(unsigned pat_val, char *msg) msg 182 arch/x86/mm/pat.c memcpy(msg, cache_mode, 4); msg 890 arch/x86/pci/irq.c char *msg = NULL; msg 967 arch/x86/pci/irq.c msg = "hardcoded"; msg 970 arch/x86/pci/irq.c msg = "found"; msg 976 arch/x86/pci/irq.c msg = "assigned"; msg 983 arch/x86/pci/irq.c msg = "guessed"; msg 990 arch/x86/pci/irq.c dev_info(&dev->dev, "%s PCI INT %c -> IRQ %d\n", msg, 'A' + pin - 1, irq); msg 1203 arch/x86/pci/irq.c char *msg = ""; msg 1247 arch/x86/pci/irq.c msg = "; probably buggy MP table"; msg 1250 arch/x86/pci/irq.c msg = ""; msg 1252 arch/x86/pci/irq.c msg = "; please try using pci=biosirq"; msg 1263 arch/x86/pci/irq.c 'A' + pin - 1, msg); msg 213 arch/x86/pci/xen.c struct msi_msg *msg) msg 218 arch/x86/pci/xen.c msg->address_hi = MSI_ADDR_BASE_HI | MSI_ADDR_EXT_DEST_ID(pirq); msg 219 arch/x86/pci/xen.c msg->address_lo = msg 225 arch/x86/pci/xen.c msg->data = XEN_PIRQ_MSI_DATA; msg 232 arch/x86/pci/xen.c struct msi_msg msg; msg 243 arch/x86/pci/xen.c xen_msi_compose_msg(dev, pirq, &msg); msg 244 arch/x86/pci/xen.c __pci_write_msi_msg(msidesc, &msg); msg 211 arch/x86/platform/uv/tlb_uv.c struct bau_pq_entry *msg; msg 213 arch/x86/platform/uv/tlb_uv.c msg = mdp->msg; msg 214 arch/x86/platform/uv/tlb_uv.c if (!msg->canceled && do_acknowledge) { msg 215 arch/x86/platform/uv/tlb_uv.c dw = (msg->swack_vec << UV_SW_ACK_NPENDING) | msg->swack_vec; msg 218 arch/x86/platform/uv/tlb_uv.c msg->replied_to = 1; msg 219 arch/x86/platform/uv/tlb_uv.c msg->swack_vec = 0; msg 232 arch/x86/platform/uv/tlb_uv.c struct bau_pq_entry *msg = mdp->msg; msg 240 arch/x86/platform/uv/tlb_uv.c for (msg2 = msg+1, i = 0; i < DEST_Q_SIZE; msg2++, i++) { msg 243 arch/x86/platform/uv/tlb_uv.c if (msg2 == msg) msg 249 arch/x86/platform/uv/tlb_uv.c msg->swack_vec) == 0) && msg 250 arch/x86/platform/uv/tlb_uv.c (msg2->sending_cpu == msg->sending_cpu) && msg 289 arch/x86/platform/uv/tlb_uv.c struct bau_pq_entry *msg = mdp->msg; msg 295 arch/x86/platform/uv/tlb_uv.c if (msg->address == TLB_FLUSH_ALL) { msg 299 arch/x86/platform/uv/tlb_uv.c __flush_tlb_one_user(msg->address); msg 310 arch/x86/platform/uv/tlb_uv.c if (msg->msg_type == MSG_RETRY && bcp == bcp->uvhub_master) msg 329 arch/x86/platform/uv/tlb_uv.c asp = (struct atomic_short *)&msg->acknowledge_count; msg 375 arch/x86/platform/uv/tlb_uv.c struct bau_pq_entry *msg; msg 385 arch/x86/platform/uv/tlb_uv.c for (msg = bcp->queue_first, i = 0; i < DEST_Q_SIZE; msg++, i++) { msg 389 arch/x86/platform/uv/tlb_uv.c if ((msg->replied_to == 0) && msg 390 arch/x86/platform/uv/tlb_uv.c (msg->canceled == 0) && msg 391 arch/x86/platform/uv/tlb_uv.c (msg->sending_cpu == rap->sender) && msg 392 arch/x86/platform/uv/tlb_uv.c (msg->swack_vec) && msg 393 arch/x86/platform/uv/tlb_uv.c (msg->msg_type != MSG_NOOP)) { msg 399 arch/x86/platform/uv/tlb_uv.c msg->canceled = 1; msg 404 arch/x86/platform/uv/tlb_uv.c msg_res = msg->swack_vec; msg 1192 arch/x86/platform/uv/tlb_uv.c static struct bau_pq_entry *find_another_by_swack(struct bau_pq_entry *msg, msg 1195 arch/x86/platform/uv/tlb_uv.c struct bau_pq_entry *msg_next = msg + 1; msg 1196 arch/x86/platform/uv/tlb_uv.c unsigned char swack_vec = msg->swack_vec; msg 1200 arch/x86/platform/uv/tlb_uv.c while (msg_next != msg) { msg 1220 arch/x86/platform/uv/tlb_uv.c struct bau_pq_entry *msg = mdp->msg; msg 1224 arch/x86/platform/uv/tlb_uv.c swack_vec = msg->swack_vec; msg 1236 arch/x86/platform/uv/tlb_uv.c other_msg = find_another_by_swack(msg, bcp); msg 1279 arch/x86/platform/uv/tlb_uv.c struct bau_pq_entry *msg; msg 1294 arch/x86/platform/uv/tlb_uv.c msg = bcp->bau_msg_head; msg 1295 arch/x86/platform/uv/tlb_uv.c while (msg->swack_vec) { msg 1298 arch/x86/platform/uv/tlb_uv.c msgdesc.msg_slot = msg - msgdesc.queue_first; msg 1299 arch/x86/platform/uv/tlb_uv.c msgdesc.msg = msg; msg 1306 arch/x86/platform/uv/tlb_uv.c msg++; msg 1307 arch/x86/platform/uv/tlb_uv.c if (msg > msgdesc.queue_last) msg 1308 arch/x86/platform/uv/tlb_uv.c msg = msgdesc.queue_first; msg 1309 arch/x86/platform/uv/tlb_uv.c bcp->bau_msg_head = msg; msg 76 arch/x86/purgatory/purgatory.c void warn(const char *msg) {} msg 85 arch/x86/tools/insn_sanity.c static void dump_stream(FILE *fp, const char *msg, unsigned long nr_iter, msg 90 arch/x86/tools/insn_sanity.c fprintf(fp, "%s:\n", msg); msg 1069 arch/x86/xen/enlighten_pv.c static void xen_restart(char *msg) msg 416 arch/xtensa/kernel/smp.c unsigned int msg; msg 418 arch/xtensa/kernel/smp.c msg = get_er(MIPICAUSE(cpu)); msg 419 arch/xtensa/kernel/smp.c set_er(msg, MIPICAUSE(cpu)); msg 421 arch/xtensa/kernel/smp.c if (!msg) msg 424 arch/xtensa/kernel/smp.c if (msg & (1 << IPI_CALL_FUNC)) { msg 429 arch/xtensa/kernel/smp.c if (msg & (1 << IPI_RESCHEDULE)) { msg 434 arch/xtensa/kernel/smp.c if (msg & (1 << IPI_CPU_STOP)) { msg 245 block/blk-core.c void blk_dump_rq_flags(struct request *rq, char *msg) msg 247 block/blk-core.c printk(KERN_INFO "%s: dev %s: flags=%llx\n", msg, msg 287 block/blk-wbt.c static void rwb_trace_step(struct rq_wb *rwb, const char *msg) msg 292 block/blk-wbt.c trace_wbt_step(bdi, msg, rqd->scale_step, rwb->cur_win_nsec, msg 69 crypto/aegis128-core.c void crypto_aegis128_update_simd(struct aegis_state *state, const void *msg); msg 88 crypto/aegis128-core.c const union aegis_block *msg) msg 91 crypto/aegis128-core.c crypto_aegis128_update_simd(state, msg); msg 96 crypto/aegis128-core.c crypto_aegis_block_xor(&state->blocks[0], msg); msg 99 crypto/aegis128-core.c static void crypto_aegis128_update_u(struct aegis_state *state, const void *msg) msg 102 crypto/aegis128-core.c crypto_aegis128_update_simd(state, msg); msg 107 crypto/aegis128-core.c crypto_xor(state->blocks[0].bytes, msg, AEGIS_BLOCK_SIZE); msg 203 crypto/aegis128-core.c union aegis_block msg = {}; msg 204 crypto/aegis128-core.c memcpy(msg.bytes, src, size); msg 211 crypto/aegis128-core.c crypto_aegis128_update_a(state, &msg); msg 213 crypto/aegis128-core.c crypto_aegis_block_xor(&msg, &tmp); msg 215 crypto/aegis128-core.c memcpy(dst, msg.bytes, size); msg 264 crypto/aegis128-core.c union aegis_block msg = {}; msg 265 crypto/aegis128-core.c memcpy(msg.bytes, src, size); msg 271 crypto/aegis128-core.c crypto_aegis_block_xor(&msg, &tmp); msg 273 crypto/aegis128-core.c memset(msg.bytes + size, 0, AEGIS_BLOCK_SIZE - size); msg 275 crypto/aegis128-core.c crypto_aegis128_update_a(state, &msg); msg 277 crypto/aegis128-core.c memcpy(dst, msg.bytes, size); msg 135 crypto/aegis128-neon-inner.c void crypto_aegis128_update_neon(void *state, const void *msg) msg 141 crypto/aegis128-neon-inner.c st = aegis128_update_neon(st, vld1q_u8(msg)); msg 150 crypto/aegis128-neon-inner.c uint8x16_t msg; msg 157 crypto/aegis128-neon-inner.c msg = vld1q_u8(src); msg 158 crypto/aegis128-neon-inner.c st = aegis128_update_neon(st, msg); msg 159 crypto/aegis128-neon-inner.c vst1q_u8(dst, msg ^ s); msg 171 crypto/aegis128-neon-inner.c msg = vld1q_u8(buf); msg 172 crypto/aegis128-neon-inner.c st = aegis128_update_neon(st, msg); msg 173 crypto/aegis128-neon-inner.c vst1q_u8(buf, msg ^ s); msg 184 crypto/aegis128-neon-inner.c uint8x16_t msg; msg 189 crypto/aegis128-neon-inner.c msg = vld1q_u8(src) ^ st.v[1] ^ (st.v[2] & st.v[3]) ^ st.v[4]; msg 190 crypto/aegis128-neon-inner.c st = aegis128_update_neon(st, msg); msg 191 crypto/aegis128-neon-inner.c vst1q_u8(dst, msg); msg 204 crypto/aegis128-neon-inner.c msg = vld1q_u8(buf) ^ s; msg 205 crypto/aegis128-neon-inner.c vst1q_u8(buf, msg); msg 208 crypto/aegis128-neon-inner.c st = aegis128_update_neon(st, msg); msg 11 crypto/aegis128-neon.c void crypto_aegis128_update_neon(void *state, const void *msg); msg 28 crypto/aegis128-neon.c void crypto_aegis128_update_simd(union aegis_block *state, const void *msg) msg 31 crypto/aegis128-neon.c crypto_aegis128_update_neon(state, msg); msg 440 crypto/af_alg.c static int af_alg_cmsg_send(struct msghdr *msg, struct af_alg_control *con) msg 444 crypto/af_alg.c for_each_cmsghdr(cmsg, msg) { msg 445 crypto/af_alg.c if (!CMSG_OK(msg, cmsg)) msg 815 crypto/af_alg.c int af_alg_sendmsg(struct socket *sock, struct msghdr *msg, size_t size, msg 828 crypto/af_alg.c if (msg->msg_controllen) { msg 829 crypto/af_alg.c err = af_alg_cmsg_send(msg, &con); msg 878 crypto/af_alg.c msg, len); msg 893 crypto/af_alg.c err = af_alg_wait_for_wmem(sk, msg->msg_flags); msg 923 crypto/af_alg.c msg, plen); msg 946 crypto/af_alg.c ctx->more = msg->msg_flags & MSG_MORE; msg 1114 crypto/af_alg.c int af_alg_get_rsgl(struct sock *sk, struct msghdr *msg, int flags, msg 1122 crypto/af_alg.c while (maxsize > len && msg_data_left(msg)) { msg 1132 crypto/af_alg.c msg_data_left(msg)); msg 1146 crypto/af_alg.c err = af_alg_make_sg(&rsgl->sgl, &msg->msg_iter, seglen); msg 1160 crypto/af_alg.c iov_iter_advance(&msg->msg_iter, err); msg 264 crypto/algboss.c static int cryptomgr_notify(struct notifier_block *this, unsigned long msg, msg 267 crypto/algboss.c switch (msg) { msg 61 crypto/algif_aead.c static int aead_sendmsg(struct socket *sock, struct msghdr *msg, size_t size) msg 71 crypto/algif_aead.c return af_alg_sendmsg(sock, msg, size, ivsize); msg 88 crypto/algif_aead.c static int _aead_recvmsg(struct socket *sock, struct msghdr *msg, msg 159 crypto/algif_aead.c err = af_alg_get_rsgl(sk, msg, flags, areq, outlen, &usedpages); msg 285 crypto/algif_aead.c if (msg->msg_iocb && !is_sync_kiocb(msg->msg_iocb)) { msg 288 crypto/algif_aead.c areq->iocb = msg->msg_iocb; msg 322 crypto/algif_aead.c static int aead_recvmsg(struct socket *sock, struct msghdr *msg, msg 329 crypto/algif_aead.c while (msg_data_left(msg)) { msg 330 crypto/algif_aead.c int err = _aead_recvmsg(sock, msg, ignored, flags); msg 415 crypto/algif_aead.c static int aead_sendmsg_nokey(struct socket *sock, struct msghdr *msg, msg 424 crypto/algif_aead.c return aead_sendmsg(sock, msg, size); msg 439 crypto/algif_aead.c static int aead_recvmsg_nokey(struct socket *sock, struct msghdr *msg, msg 448 crypto/algif_aead.c return aead_recvmsg(sock, msg, ignored, flags); msg 63 crypto/algif_hash.c static int hash_sendmsg(struct socket *sock, struct msghdr *msg, msg 78 crypto/algif_hash.c if ((msg->msg_flags & MSG_MORE)) msg 88 crypto/algif_hash.c while (msg_data_left(msg)) { msg 89 crypto/algif_hash.c int len = msg_data_left(msg); msg 94 crypto/algif_hash.c len = af_alg_make_sg(&ctx->sgl, &msg->msg_iter, len); msg 109 crypto/algif_hash.c iov_iter_advance(&msg->msg_iter, len); msg 114 crypto/algif_hash.c ctx->more = msg->msg_flags & MSG_MORE; msg 183 crypto/algif_hash.c static int hash_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, msg 196 crypto/algif_hash.c msg->msg_flags |= MSG_TRUNC; msg 221 crypto/algif_hash.c err = memcpy_to_msg(msg, ctx->result, len); msg 332 crypto/algif_hash.c static int hash_sendmsg_nokey(struct socket *sock, struct msghdr *msg, msg 341 crypto/algif_hash.c return hash_sendmsg(sock, msg, size); msg 356 crypto/algif_hash.c static int hash_recvmsg_nokey(struct socket *sock, struct msghdr *msg, msg 365 crypto/algif_hash.c return hash_recvmsg(sock, msg, ignored, flags); msg 58 crypto/algif_rng.c static int rng_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, msg 89 crypto/algif_rng.c err = memcpy_to_msg(msg, result, len); msg 37 crypto/algif_skcipher.c static int skcipher_sendmsg(struct socket *sock, struct msghdr *msg, msg 47 crypto/algif_skcipher.c return af_alg_sendmsg(sock, msg, size, ivsize); msg 50 crypto/algif_skcipher.c static int _skcipher_recvmsg(struct socket *sock, struct msghdr *msg, msg 77 crypto/algif_skcipher.c err = af_alg_get_rsgl(sk, msg, flags, areq, -1, &len); msg 114 crypto/algif_skcipher.c if (msg->msg_iocb && !is_sync_kiocb(msg->msg_iocb)) { msg 117 crypto/algif_skcipher.c areq->iocb = msg->msg_iocb; msg 153 crypto/algif_skcipher.c static int skcipher_recvmsg(struct socket *sock, struct msghdr *msg, msg 160 crypto/algif_skcipher.c while (msg_data_left(msg)) { msg 161 crypto/algif_skcipher.c int err = _skcipher_recvmsg(sock, msg, ignored, flags); msg 246 crypto/algif_skcipher.c static int skcipher_sendmsg_nokey(struct socket *sock, struct msghdr *msg, msg 255 crypto/algif_skcipher.c return skcipher_sendmsg(sock, msg, size); msg 270 crypto/algif_skcipher.c static int skcipher_recvmsg_nokey(struct socket *sock, struct msghdr *msg, msg 279 crypto/algif_skcipher.c return skcipher_recvmsg(sock, msg, ignored, flags); msg 24 crypto/asymmetric_keys/pkcs7_parser.c struct pkcs7_message *msg; /* Message being constructed */ msg 86 crypto/asymmetric_keys/pkcs7_parser.c static int pkcs7_check_authattrs(struct pkcs7_message *msg) msg 91 crypto/asymmetric_keys/pkcs7_parser.c sinfo = msg->signed_infos; msg 97 crypto/asymmetric_keys/pkcs7_parser.c msg->have_authattrs = true; msg 118 crypto/asymmetric_keys/pkcs7_parser.c struct pkcs7_message *msg = ERR_PTR(-ENOMEM); msg 124 crypto/asymmetric_keys/pkcs7_parser.c ctx->msg = kzalloc(sizeof(struct pkcs7_message), GFP_KERNEL); msg 125 crypto/asymmetric_keys/pkcs7_parser.c if (!ctx->msg) msg 137 crypto/asymmetric_keys/pkcs7_parser.c ctx->ppsinfo = &ctx->msg->signed_infos; msg 142 crypto/asymmetric_keys/pkcs7_parser.c msg = ERR_PTR(ret); msg 146 crypto/asymmetric_keys/pkcs7_parser.c ret = pkcs7_check_authattrs(ctx->msg); msg 148 crypto/asymmetric_keys/pkcs7_parser.c msg = ERR_PTR(ret); msg 152 crypto/asymmetric_keys/pkcs7_parser.c msg = ctx->msg; msg 153 crypto/asymmetric_keys/pkcs7_parser.c ctx->msg = NULL; msg 164 crypto/asymmetric_keys/pkcs7_parser.c pkcs7_free_message(ctx->msg); msg 168 crypto/asymmetric_keys/pkcs7_parser.c return msg; msg 309 crypto/asymmetric_keys/pkcs7_parser.c ctx->msg->version = version = *(const u8 *)value; msg 349 crypto/asymmetric_keys/pkcs7_parser.c if (ctx->msg->version != 1) msg 355 crypto/asymmetric_keys/pkcs7_parser.c if (ctx->msg->version == 1) msg 424 crypto/asymmetric_keys/pkcs7_parser.c *ctx->ppcerts = ctx->msg->certs; msg 425 crypto/asymmetric_keys/pkcs7_parser.c ctx->msg->certs = ctx->certs; msg 446 crypto/asymmetric_keys/pkcs7_parser.c ctx->msg->data_type = ctx->last_oid; msg 462 crypto/asymmetric_keys/pkcs7_parser.c ctx->msg->data = value; msg 463 crypto/asymmetric_keys/pkcs7_parser.c ctx->msg->data_len = vlen; msg 464 crypto/asymmetric_keys/pkcs7_parser.c ctx->msg->data_hdrlen = hdrlen; msg 486 crypto/asymmetric_keys/pkcs7_parser.c if (content_type != ctx->msg->data_type) { msg 488 crypto/asymmetric_keys/pkcs7_parser.c ctx->msg->data_type, sinfo->index, msg 515 crypto/asymmetric_keys/pkcs7_parser.c if (ctx->msg->data_type != OID_msIndirectData) { msg 535 crypto/asymmetric_keys/pkcs7_parser.c if (ctx->msg->data_type != OID_msIndirectData) { msg 567 crypto/asymmetric_keys/pkcs7_parser.c if (ctx->msg->data_type != OID_msIndirectData && msg 649 crypto/asymmetric_keys/pkcs7_parser.c if (ctx->msg->data_type == OID_msIndirectData && !sinfo->authattrs) { msg 307 drivers/acpi/acpi_dbg.c static ssize_t acpi_aml_write_log(const char *msg) msg 314 drivers/acpi/acpi_dbg.c if (msg) msg 315 drivers/acpi/acpi_dbg.c count = strlen(msg); msg 318 drivers/acpi/acpi_dbg.c ret = acpi_aml_write_kern(msg + size, count); msg 347 drivers/acpi/acpi_dbg.c static ssize_t acpi_aml_read_cmd(char *msg, size_t count) msg 375 drivers/acpi/acpi_dbg.c *(msg + size) = (char)ret; msg 383 drivers/acpi/acpi_dbg.c *(msg + size - 1) = '\0'; msg 95 drivers/acpi/acpi_ipmi.c static void ipmi_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data); msg 244 drivers/acpi/acpi_ipmi.c struct kernel_ipmi_msg *msg; msg 249 drivers/acpi/acpi_ipmi.c msg = &tx_msg->tx_message; msg 255 drivers/acpi/acpi_ipmi.c msg->netfn = IPMI_OP_RGN_NETFN(address); msg 256 drivers/acpi/acpi_ipmi.c msg->cmd = IPMI_OP_RGN_CMD(address); msg 257 drivers/acpi/acpi_ipmi.c msg->data = tx_msg->data; msg 272 drivers/acpi/acpi_ipmi.c msg->data_len = buffer->length; msg 273 drivers/acpi/acpi_ipmi.c memcpy(tx_msg->data, buffer->data, msg->data_len); msg 297 drivers/acpi/acpi_ipmi.c static void acpi_format_ipmi_response(struct acpi_ipmi_msg *msg, msg 312 drivers/acpi/acpi_ipmi.c buffer->status = msg->msg_done; msg 313 drivers/acpi/acpi_ipmi.c if (msg->msg_done != ACPI_IPMI_OK) msg 320 drivers/acpi/acpi_ipmi.c buffer->length = msg->rx_len; msg 321 drivers/acpi/acpi_ipmi.c memcpy(buffer->data, msg->data, msg->rx_len); msg 354 drivers/acpi/acpi_ipmi.c struct acpi_ipmi_msg *msg) msg 362 drivers/acpi/acpi_ipmi.c if (msg == tx_msg) { msg 374 drivers/acpi/acpi_ipmi.c static void ipmi_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data) msg 382 drivers/acpi/acpi_ipmi.c if (msg->user != ipmi_device->user_interface) { msg 385 drivers/acpi/acpi_ipmi.c msg->user, ipmi_device->user_interface); msg 391 drivers/acpi/acpi_ipmi.c if (msg->msgid == tx_msg->tx_msgid) { msg 402 drivers/acpi/acpi_ipmi.c msg->msgid); msg 407 drivers/acpi/acpi_ipmi.c if (msg->msg.data_len > ACPI_IPMI_MAX_MSG_LENGTH) { msg 410 drivers/acpi/acpi_ipmi.c msg->msg.data_len); msg 415 drivers/acpi/acpi_ipmi.c msg->recv_type = IPMI_RESPONSE_RECV_TYPE; msg 416 drivers/acpi/acpi_ipmi.c if (msg->recv_type == IPMI_RESPONSE_RECV_TYPE && msg 417 drivers/acpi/acpi_ipmi.c msg->msg.data_len == 1) { msg 418 drivers/acpi/acpi_ipmi.c if (msg->msg.data[0] == IPMI_TIMEOUT_COMPLETION_CODE) { msg 425 drivers/acpi/acpi_ipmi.c tx_msg->rx_len = msg->msg.data_len; msg 426 drivers/acpi/acpi_ipmi.c memcpy(tx_msg->data, msg->msg.data, tx_msg->rx_len); msg 433 drivers/acpi/acpi_ipmi.c ipmi_free_recv_msg(msg); msg 185 drivers/acpi/acpica/acnamesp.h const char *msg, u32 level, u32 component); msg 384 drivers/acpi/acpica/acnamesp.h acpi_ns_print_node_pathname(struct acpi_namespace_node *node, const char *msg); msg 104 drivers/acpi/acpica/nsdump.c const char *msg, u32 level, u32 component) msg 117 drivers/acpi/acpica/nsdump.c acpi_ns_print_node_pathname(handle, msg); msg 1116 drivers/acpi/apei/erst.c const char *msg = acpi_format_exception(status); msg 1117 drivers/acpi/apei/erst.c pr_err("Failed to get table, %s\n", msg); msg 244 drivers/acpi/apei/hest.c const char *msg = acpi_format_exception(status); msg 245 drivers/acpi/apei/hest.c pr_err(HEST_PFX "Failed to get table, %s\n", msg); msg 1632 drivers/acpi/arm64/iort.c const char *msg = acpi_format_exception(status); msg 1634 drivers/acpi/arm64/iort.c pr_err("Failed to get table, %s\n", msg); msg 343 drivers/acpi/cppc_acpi.c static void cppc_chan_tx_done(struct mbox_client *cl, void *msg, int ret) msg 347 drivers/acpi/cppc_acpi.c *(u16 *)msg, ret); msg 350 drivers/acpi/cppc_acpi.c *(u16 *)msg, ret); msg 912 drivers/acpi/osl.c ssize_t acpi_debugger_write_log(const char *msg) msg 933 drivers/acpi/osl.c ret = func(msg); msg 146 drivers/acpi/pci_root.c static void decode_osc_bits(struct acpi_pci_root *root, char *msg, u32 word, msg 159 drivers/acpi/pci_root.c dev_info(&root->device->dev, "_OSC: %s [%s]\n", msg, buf); msg 162 drivers/acpi/pci_root.c static void decode_osc_support(struct acpi_pci_root *root, char *msg, u32 word) msg 164 drivers/acpi/pci_root.c decode_osc_bits(root, msg, word, pci_osc_support_bit, msg 168 drivers/acpi/pci_root.c static void decode_osc_control(struct acpi_pci_root *root, char *msg, u32 word) msg 170 drivers/acpi/pci_root.c decode_osc_bits(root, msg, word, pci_osc_control_bit, msg 291 drivers/ata/libahci.c u32 em_ctl, msg; msg 329 drivers/ata/libahci.c msg = readl(em_mmio + i); msg 330 drivers/ata/libahci.c buf[i] = msg & 0xff; msg 331 drivers/ata/libahci.c buf[i + 1] = (msg >> 8) & 0xff; msg 332 drivers/ata/libahci.c buf[i + 2] = (msg >> 16) & 0xff; msg 333 drivers/ata/libahci.c buf[i + 3] = (msg >> 24) & 0xff; msg 352 drivers/ata/libahci.c u32 em_ctl, msg; msg 373 drivers/ata/libahci.c msg = msg_buf[i] | msg_buf[i + 1] << 8 | msg 375 drivers/ata/libahci.c writel(msg, em_mmio + i); msg 654 drivers/ata/libata-acpi.c char msg[60]; msg 676 drivers/ata/libata-acpi.c snprintf(msg, sizeof(msg), "succeeded"); msg 682 drivers/ata/libata-acpi.c snprintf(msg, sizeof(msg), msg 690 drivers/ata/libata-acpi.c snprintf(msg, sizeof(msg), msg 698 drivers/ata/libata-acpi.c snprintf(msg, sizeof(msg), "filtered out"); msg 707 drivers/ata/libata-acpi.c (descr ? descr : "unknown"), msg); msg 1658 drivers/atm/ambassador.c const char *msg; msg 1666 drivers/atm/ambassador.c msg = "bad command"; msg 1670 drivers/atm/ambassador.c msg = "command in progress"; msg 1674 drivers/atm/ambassador.c msg = "command passed test"; msg 1678 drivers/atm/ambassador.c msg = "command failed test"; msg 1682 drivers/atm/ambassador.c msg = "command read data ok"; msg 1686 drivers/atm/ambassador.c msg = "command read bad address"; msg 1690 drivers/atm/ambassador.c msg = "command write data ok"; msg 1694 drivers/atm/ambassador.c msg = "command write bad address"; msg 1698 drivers/atm/ambassador.c msg = "command write flash failure"; msg 1702 drivers/atm/ambassador.c msg = "command complete"; msg 1706 drivers/atm/ambassador.c msg = "command flash erase failure"; msg 1710 drivers/atm/ambassador.c msg = "command write bad data"; msg 1714 drivers/atm/ambassador.c msg = "unknown error"; msg 1721 drivers/atm/ambassador.c PRINTK (KERN_ERR, "%s", msg); msg 1842 drivers/atm/ambassador.c static inline void sf (const char * msg) msg 1844 drivers/atm/ambassador.c PRINTK (KERN_ERR, "self-test failed: %s", msg); msg 44 drivers/atm/atmtcp.c const struct atmtcp_control *msg,int flag) msg 55 drivers/atm/atmtcp.c skb = alloc_skb(sizeof(*msg),GFP_KERNEL); msg 65 drivers/atm/atmtcp.c *new_msg = *msg; msg 89 drivers/atm/atmtcp.c static int atmtcp_recv_control(const struct atmtcp_control *msg) msg 91 drivers/atm/atmtcp.c struct atm_vcc *vcc = *(struct atm_vcc **) &msg->vcc; msg 93 drivers/atm/atmtcp.c vcc->vpi = msg->addr.sap_addr.vpi; msg 94 drivers/atm/atmtcp.c vcc->vci = msg->addr.sap_addr.vci; msg 95 drivers/atm/atmtcp.c vcc->qos = msg->qos; msg 96 drivers/atm/atmtcp.c sk_atm(vcc)->sk_err = -msg->result; msg 97 drivers/atm/atmtcp.c switch (msg->type) { msg 106 drivers/atm/atmtcp.c msg->type); msg 122 drivers/atm/atmtcp.c struct atmtcp_control msg; msg 127 drivers/atm/atmtcp.c memset(&msg,0,sizeof(msg)); msg 128 drivers/atm/atmtcp.c msg.addr.sap_family = AF_ATMPVC; msg 129 drivers/atm/atmtcp.c msg.hdr.vpi = htons(vpi); msg 130 drivers/atm/atmtcp.c msg.addr.sap_addr.vpi = vpi; msg 131 drivers/atm/atmtcp.c msg.hdr.vci = htons(vci); msg 132 drivers/atm/atmtcp.c msg.addr.sap_addr.vci = vci; msg 134 drivers/atm/atmtcp.c msg.type = ATMTCP_CTRL_OPEN; msg 135 drivers/atm/atmtcp.c msg.qos = vcc->qos; msg 138 drivers/atm/atmtcp.c error = atmtcp_send_control(vcc,ATMTCP_CTRL_OPEN,&msg,ATM_VF_READY); msg 146 drivers/atm/atmtcp.c struct atmtcp_control msg; msg 148 drivers/atm/atmtcp.c memset(&msg,0,sizeof(msg)); msg 149 drivers/atm/atmtcp.c msg.addr.sap_family = AF_ATMPVC; msg 150 drivers/atm/atmtcp.c msg.addr.sap_addr.vpi = vcc->vpi; msg 151 drivers/atm/atmtcp.c msg.addr.sap_addr.vci = vcc->vci; msg 153 drivers/atm/atmtcp.c (void) atmtcp_send_control(vcc,ATMTCP_CTRL_CLOSE,&msg,ATM_VF_ADDR); msg 1002 drivers/atm/solos-pci.c char msg[500]; msg 1008 drivers/atm/solos-pci.c sprintf(msg, "%02X: ", i); msg 1011 drivers/atm/solos-pci.c strcat(msg, item); msg 1014 drivers/atm/solos-pci.c strcat(msg, item); msg 1015 drivers/atm/solos-pci.c printk(KERN_DEBUG "%s", msg); msg 1020 drivers/atm/solos-pci.c strcat(msg, item); msg 1021 drivers/atm/solos-pci.c printk(KERN_DEBUG "%s", msg); msg 269 drivers/auxdisplay/img-ascii-lcd.c const char *msg, ssize_t count) msg 277 drivers/auxdisplay/img-ascii-lcd.c count = strlen(msg); msg 280 drivers/auxdisplay/img-ascii-lcd.c if (msg[count - 1] == '\n') msg 287 drivers/auxdisplay/img-ascii-lcd.c memcpy(new_msg, msg, count); msg 79 drivers/base/platform-msi.c static void platform_msi_write_msg(struct irq_data *data, struct msi_msg *msg) msg 86 drivers/base/platform-msi.c priv_data->write_msg(desc, msg); msg 38 drivers/block/aoe/aoechr.c char *msg; msg 126 drivers/block/aoe/aoechr.c aoechr_error(char *msg) msg 132 drivers/block/aoe/aoechr.c n = strlen(msg); msg 142 drivers/block/aoe/aoechr.c mp = kmemdup(msg, n, GFP_ATOMIC); msg 148 drivers/block/aoe/aoechr.c em->msg = mp; msg 254 drivers/block/aoe/aoechr.c mp = em->msg; msg 256 drivers/block/aoe/aoechr.c em->msg = NULL; msg 1845 drivers/block/drbd/drbd_main.c struct msghdr msg = {.msg_flags = msg_flags | MSG_NOSIGNAL}; msg 1853 drivers/block/drbd/drbd_main.c iov_iter_kvec(&msg.msg_iter, WRITE, &iov, 1, size); msg 1862 drivers/block/drbd/drbd_main.c rv = sock_sendmsg(sock, &msg); msg 4588 drivers/block/drbd/drbd_nl.c struct sk_buff *msg; msg 4594 drivers/block/drbd/drbd_nl.c msg = genlmsg_new(NLMSG_GOODSIZE, GFP_NOIO); msg 4595 drivers/block/drbd/drbd_nl.c if (!msg) msg 4599 drivers/block/drbd/drbd_nl.c d_out = genlmsg_put(msg, 0, seq, &drbd_genl_family, 0, DRBD_EVENT); msg 4605 drivers/block/drbd/drbd_nl.c if (nla_put_status_info(msg, device, sib)) msg 4607 drivers/block/drbd/drbd_nl.c genlmsg_end(msg, d_out); msg 4608 drivers/block/drbd/drbd_nl.c err = drbd_genl_multicast_events(msg, GFP_NOWAIT); msg 4616 drivers/block/drbd/drbd_nl.c nlmsg_free(msg); msg 4623 drivers/block/drbd/drbd_nl.c static int nla_put_notification_header(struct sk_buff *msg, msg 4630 drivers/block/drbd/drbd_nl.c return drbd_notification_header_to_skb(msg, &nh, true); msg 504 drivers/block/drbd/drbd_receiver.c struct msghdr msg = { msg 507 drivers/block/drbd/drbd_receiver.c iov_iter_kvec(&msg.msg_iter, READ, &iov, 1, size); msg 508 drivers/block/drbd/drbd_receiver.c return sock_recvmsg(sock, &msg, msg.msg_flags); msg 631 drivers/block/floppy.c static inline void debugt(const char *func, const char *msg) msg 634 drivers/block/floppy.c pr_info("%s:%s dtime=%lu\n", func, msg, jiffies - debugtimer); msg 638 drivers/block/floppy.c static inline void debugt(const char *func, const char *msg) { } msg 2241 drivers/block/floppy.c char msg[sizeof("request done ") + sizeof(int) * 3]; msg 2244 drivers/block/floppy.c snprintf(msg, sizeof(msg), "request done %d", uptodate); msg 2245 drivers/block/floppy.c reschedule_timeout(MAXTIMEOUT, msg); msg 470 drivers/block/mtip32xx/mtip32xx.c char *msg, msg 482 drivers/block/mtip32xx/mtip32xx.c "%d command(s) %s: tagmap [%s]", cnt, msg, tagmap); msg 465 drivers/block/nbd.c struct msghdr msg; msg 475 drivers/block/nbd.c msg.msg_iter = *iter; msg 480 drivers/block/nbd.c msg.msg_name = NULL; msg 481 drivers/block/nbd.c msg.msg_namelen = 0; msg 482 drivers/block/nbd.c msg.msg_control = NULL; msg 483 drivers/block/nbd.c msg.msg_controllen = 0; msg 484 drivers/block/nbd.c msg.msg_flags = msg_flags | MSG_NOSIGNAL; msg 487 drivers/block/nbd.c result = sock_sendmsg(sock, &msg); msg 489 drivers/block/nbd.c result = sock_recvmsg(sock, &msg, msg.msg_flags); msg 498 drivers/block/nbd.c } while (msg_data_left(&msg)); msg 377 drivers/block/paride/pcd.c static int pcd_wait(struct pcd_unit *cd, int go, int stop, char *fun, char *msg) msg 395 drivers/block/paride/pcd.c cd->name, fun, msg, r, s, e, j, p); msg 529 drivers/block/paride/pcd.c #define DBMSG(msg) ((verbose>1)?(msg):NULL) msg 286 drivers/block/paride/pd.c static void pd_print_error(struct pd_unit *disk, char *msg, int status) msg 290 drivers/block/paride/pd.c printk("%s: %s: status = 0x%x =", disk->name, msg, status); msg 305 drivers/block/paride/pd.c #define DBMSG(msg) ((verbose>1)?(msg):NULL) msg 307 drivers/block/paride/pd.c static int pd_wait_for(struct pd_unit *disk, int w, char *msg) msg 322 drivers/block/paride/pd.c if ((e & (STAT_ERR | ERR_TMO)) && (msg != NULL)) msg 323 drivers/block/paride/pd.c pd_print_error(disk, msg, e); msg 426 drivers/block/paride/pf.c static int pf_wait(struct pf_unit *pf, int go, int stop, char *fun, char *msg) msg 444 drivers/block/paride/pf.c pf->name, fun, msg, r, s, e, j, p); msg 288 drivers/block/paride/pg.c static int pg_wait(struct pg *dev, int go, int stop, unsigned long tmo, char *msg) msg 311 drivers/block/paride/pg.c dev->name, msg, s, e, p, to ? " timeout" : ""); msg 272 drivers/block/paride/pt.c static int pt_wait(struct pt_unit *tape, int go, int stop, char *fun, char *msg) msg 291 drivers/block/paride/pt.c tape->name, fun, msg, r, s, e, j, p); msg 394 drivers/block/paride/pt.c static int pt_poll_dsc(struct pt_unit *tape, int pause, int tmo, char *msg) msg 415 drivers/block/paride/pt.c printk("%s: %s DSC timeout\n", tape->name, msg); msg 417 drivers/block/paride/pt.c printk("%s: %s stat=0x%x err=0x%x\n", tape->name, msg, s, msg 449 drivers/block/paride/pt.c #define DBMSG(msg) ((verbose>1)?(msg):NULL) msg 2505 drivers/block/pktcdvd.c char *msg; msg 2516 drivers/block/pktcdvd.c msg = "Packet"; msg 2518 drivers/block/pktcdvd.c msg = "Unknown"; msg 2519 drivers/block/pktcdvd.c seq_printf(m, "\twrite type:\t\t%s\n", msg); msg 2527 drivers/block/pktcdvd.c msg = "Mode 1"; msg 2529 drivers/block/pktcdvd.c msg = "Mode 2"; msg 2531 drivers/block/pktcdvd.c msg = "Unknown"; msg 2532 drivers/block/pktcdvd.c seq_printf(m, "\tblock mode:\t\t%s\n", msg); msg 477 drivers/block/sx8.c u32 msg = (u32) carm_ref_msg_dma(host, tag); msg 495 drivers/block/sx8.c writel(msg | (cm_bucket << 1), mmio + CARM_IHQP); msg 710 drivers/block/sx8.c struct carm_msg_rw *msg; msg 748 drivers/block/sx8.c msg = (struct carm_msg_rw *) carm_ref_msg(host, rq->tag); msg 751 drivers/block/sx8.c msg->type = CARM_MSG_WRITE; msg 754 drivers/block/sx8.c msg->type = CARM_MSG_READ; msg 758 drivers/block/sx8.c msg->id = port->port_no; msg 759 drivers/block/sx8.c msg->sg_count = n_elem; msg 760 drivers/block/sx8.c msg->sg_type = SGT_32BIT; msg 761 drivers/block/sx8.c msg->handle = cpu_to_le32(TAG_ENCODE(rq->tag)); msg 762 drivers/block/sx8.c msg->lba = cpu_to_le32(blk_rq_pos(rq) & 0xffffffff); msg 764 drivers/block/sx8.c msg->lba_high = cpu_to_le16( (u16) tmp ); msg 765 drivers/block/sx8.c msg->lba_count = cpu_to_le16(blk_rq_sectors(rq)); msg 767 drivers/block/sx8.c msg_size = sizeof(struct carm_msg_rw) - sizeof(msg->sg); msg 769 drivers/block/sx8.c struct carm_msg_sg *carm_sg = &msg->sg[i]; msg 72 drivers/bus/fsl-mc/fsl-mc-msi.c if (msi_desc->msg.address_lo == 0x0 && msi_desc->msg.address_hi == 0x0) msg 78 drivers/bus/fsl-mc/fsl-mc-msi.c irq_cfg.paddr = ((u64)msi_desc->msg.address_hi << 32) | msg 79 drivers/bus/fsl-mc/fsl-mc-msi.c msi_desc->msg.address_lo; msg 80 drivers/bus/fsl-mc/fsl-mc-msi.c irq_cfg.val = msi_desc->msg.data; msg 118 drivers/bus/fsl-mc/fsl-mc-msi.c struct msi_msg *msg) msg 126 drivers/bus/fsl-mc/fsl-mc-msi.c msi_desc->msg = *msg; msg 78 drivers/char/ipmi/ipmb_dev_int.c struct ipmb_msg msg; msg 81 drivers/char/ipmi/ipmb_dev_int.c memset(&msg, 0, sizeof(msg)); msg 101 drivers/char/ipmi/ipmb_dev_int.c memcpy(&msg, &queue_elem->request, sizeof(msg)); msg 108 drivers/char/ipmi/ipmb_dev_int.c count = min_t(size_t, count, msg.len + 1); msg 109 drivers/char/ipmi/ipmb_dev_int.c if (copy_to_user(buf, &msg, count)) msg 121 drivers/char/ipmi/ipmb_dev_int.c u8 msg[MAX_MSG_LEN]; msg 124 drivers/char/ipmi/ipmb_dev_int.c if (count > sizeof(msg)) msg 127 drivers/char/ipmi/ipmb_dev_int.c if (copy_from_user(&msg, buf, count)) msg 130 drivers/char/ipmi/ipmb_dev_int.c if (count < msg[0]) msg 133 drivers/char/ipmi/ipmb_dev_int.c rq_sa = GET_7BIT_ADDR(msg[RQ_SA_8BIT_IDX]); msg 134 drivers/char/ipmi/ipmb_dev_int.c netf_rq_lun = msg[NETFN_LUN_IDX]; msg 143 drivers/char/ipmi/ipmb_dev_int.c msg_len = msg[IPMB_MSG_LEN_IDX] - SMBUS_MSG_HEADER_LENGTH; msg 148 drivers/char/ipmi/ipmb_dev_int.c memcpy(&data.block[1], msg + SMBUS_MSG_IDX_OFFSET, msg_len); msg 39 drivers/char/ipmi/ipmi_devintf.c static void file_receive_handler(struct ipmi_recv_msg *msg, msg 48 drivers/char/ipmi/ipmi_devintf.c list_add_tail(&msg->link, &priv->recv_msgs); msg 126 drivers/char/ipmi/ipmi_devintf.c struct ipmi_recv_msg *msg, *next; msg 132 drivers/char/ipmi/ipmi_devintf.c list_for_each_entry_safe(msg, next, &priv->recv_msgs, link) msg 133 drivers/char/ipmi/ipmi_devintf.c ipmi_free_recv_msg(msg); msg 147 drivers/char/ipmi/ipmi_devintf.c struct kernel_ipmi_msg msg; msg 155 drivers/char/ipmi/ipmi_devintf.c msg.netfn = req->msg.netfn; msg 156 drivers/char/ipmi/ipmi_devintf.c msg.cmd = req->msg.cmd; msg 157 drivers/char/ipmi/ipmi_devintf.c msg.data_len = req->msg.data_len; msg 158 drivers/char/ipmi/ipmi_devintf.c msg.data = kmalloc(IPMI_MAX_MSG_LENGTH, GFP_KERNEL); msg 159 drivers/char/ipmi/ipmi_devintf.c if (!msg.data) msg 169 drivers/char/ipmi/ipmi_devintf.c if (req->msg.data != NULL) { msg 170 drivers/char/ipmi/ipmi_devintf.c if (req->msg.data_len > IPMI_MAX_MSG_LENGTH) { msg 175 drivers/char/ipmi/ipmi_devintf.c if (copy_from_user(msg.data, msg 176 drivers/char/ipmi/ipmi_devintf.c req->msg.data, msg 177 drivers/char/ipmi/ipmi_devintf.c req->msg.data_len)) { msg 182 drivers/char/ipmi/ipmi_devintf.c msg.data_len = 0; msg 188 drivers/char/ipmi/ipmi_devintf.c &msg, msg 194 drivers/char/ipmi/ipmi_devintf.c kfree(msg.data); msg 205 drivers/char/ipmi/ipmi_devintf.c struct ipmi_recv_msg *msg; msg 227 drivers/char/ipmi/ipmi_devintf.c msg = list_entry(entry, struct ipmi_recv_msg, link); msg 231 drivers/char/ipmi/ipmi_devintf.c addr_len = ipmi_addr_length(msg->addr.addr_type); msg 237 drivers/char/ipmi/ipmi_devintf.c if (copy_to_user(rsp->addr, &msg->addr, addr_len)) { msg 243 drivers/char/ipmi/ipmi_devintf.c rsp->recv_type = msg->recv_type; msg 244 drivers/char/ipmi/ipmi_devintf.c rsp->msgid = msg->msgid; msg 245 drivers/char/ipmi/ipmi_devintf.c rsp->msg.netfn = msg->msg.netfn; msg 246 drivers/char/ipmi/ipmi_devintf.c rsp->msg.cmd = msg->msg.cmd; msg 248 drivers/char/ipmi/ipmi_devintf.c if (msg->msg.data_len > 0) { msg 249 drivers/char/ipmi/ipmi_devintf.c if (rsp->msg.data_len < msg->msg.data_len) { msg 252 drivers/char/ipmi/ipmi_devintf.c msg->msg.data_len = rsp->msg.data_len; msg 257 drivers/char/ipmi/ipmi_devintf.c if (copy_to_user(rsp->msg.data, msg 258 drivers/char/ipmi/ipmi_devintf.c msg->msg.data, msg 259 drivers/char/ipmi/ipmi_devintf.c msg->msg.data_len)) { msg 263 drivers/char/ipmi/ipmi_devintf.c rsp->msg.data_len = msg->msg.data_len; msg 265 drivers/char/ipmi/ipmi_devintf.c rsp->msg.data_len = 0; msg 273 drivers/char/ipmi/ipmi_devintf.c ipmi_free_recv_msg(msg); msg 643 drivers/char/ipmi/ipmi_devintf.c struct compat_ipmi_msg msg; msg 651 drivers/char/ipmi/ipmi_devintf.c struct compat_ipmi_msg msg; msg 678 drivers/char/ipmi/ipmi_devintf.c get_compat_ipmi_msg(&p64->msg, &p32->msg); msg 697 drivers/char/ipmi/ipmi_devintf.c get_compat_ipmi_msg(&p64->msg, &p32->msg); msg 708 drivers/char/ipmi/ipmi_devintf.c v32.msg.netfn = p64->msg.netfn; msg 709 drivers/char/ipmi/ipmi_devintf.c v32.msg.cmd = p64->msg.cmd; msg 710 drivers/char/ipmi/ipmi_devintf.c v32.msg.data_len = p64->msg.data_len; msg 711 drivers/char/ipmi/ipmi_devintf.c v32.msg.data = ptr_to_compat(p64->msg.data); msg 45 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_smi_msg *msg); msg 590 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_recv_msg *msg); msg 683 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_recv_msg *msg, *msg2; msg 685 drivers/char/ipmi/ipmi_msghandler.c list_for_each_entry_safe(msg, msg2, q, link) { msg 686 drivers/char/ipmi/ipmi_msghandler.c list_del(&msg->link); msg 687 drivers/char/ipmi/ipmi_msghandler.c ipmi_free_recv_msg(msg); msg 693 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_smi_msg *msg, *msg2; msg 695 drivers/char/ipmi/ipmi_msghandler.c list_for_each_entry_safe(msg, msg2, q, link) { msg 696 drivers/char/ipmi/ipmi_msghandler.c list_del(&msg->link); msg 697 drivers/char/ipmi/ipmi_msghandler.c ipmi_free_smi_msg(msg); msg 896 drivers/char/ipmi/ipmi_msghandler.c static int deliver_response(struct ipmi_smi *intf, struct ipmi_recv_msg *msg) msg 900 drivers/char/ipmi/ipmi_msghandler.c if (!msg->user) { msg 903 drivers/char/ipmi/ipmi_msghandler.c intf->null_user_handler(intf, msg); msg 908 drivers/char/ipmi/ipmi_msghandler.c ipmi_free_recv_msg(msg); msg 915 drivers/char/ipmi/ipmi_msghandler.c ipmi_free_recv_msg(msg); msg 918 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_user *user = acquire_ipmi_user(msg->user, &index); msg 921 drivers/char/ipmi/ipmi_msghandler.c user->handler->ipmi_recv_hndl(msg, user->handler_data); msg 925 drivers/char/ipmi/ipmi_msghandler.c ipmi_free_recv_msg(msg); msg 934 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_recv_msg *msg) msg 936 drivers/char/ipmi/ipmi_msghandler.c if (deliver_response(intf, msg)) msg 943 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_recv_msg *msg, int err) msg 945 drivers/char/ipmi/ipmi_msghandler.c msg->recv_type = IPMI_RESPONSE_RECV_TYPE; msg 946 drivers/char/ipmi/ipmi_msghandler.c msg->msg_data[0] = err; msg 947 drivers/char/ipmi/ipmi_msghandler.c msg->msg.netfn |= 1; /* Convert to a response. */ msg 948 drivers/char/ipmi/ipmi_msghandler.c msg->msg.data_len = 1; msg 949 drivers/char/ipmi/ipmi_msghandler.c msg->msg.data = msg->msg_data; msg 950 drivers/char/ipmi/ipmi_msghandler.c deliver_local_response(intf, msg); msg 1086 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_recv_msg *msg = intf->seq_table[seq].recv_msg; msg 1088 drivers/char/ipmi/ipmi_msghandler.c if ((msg->addr.channel == channel) && (msg->msg.cmd == cmd) msg 1089 drivers/char/ipmi/ipmi_msghandler.c && (msg->msg.netfn == netfn) msg 1090 drivers/char/ipmi/ipmi_msghandler.c && (ipmi_addr_equal(addr, &msg->addr))) { msg 1091 drivers/char/ipmi/ipmi_msghandler.c *recv_msg = msg; msg 1140 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_recv_msg *msg = NULL; msg 1156 drivers/char/ipmi/ipmi_msghandler.c msg = ent->recv_msg; msg 1161 drivers/char/ipmi/ipmi_msghandler.c if (msg) msg 1162 drivers/char/ipmi/ipmi_msghandler.c deliver_err_response(intf, msg, err); msg 1553 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_recv_msg *msg, *msg2; msg 1585 drivers/char/ipmi/ipmi_msghandler.c list_for_each_entry_safe(msg, msg2, &intf->waiting_events, link) msg 1586 drivers/char/ipmi/ipmi_msghandler.c list_move_tail(&msg->link, &msgs); msg 1596 drivers/char/ipmi/ipmi_msghandler.c list_for_each_entry_safe(msg, msg2, &msgs, link) { msg 1597 drivers/char/ipmi/ipmi_msghandler.c msg->user = user; msg 1599 drivers/char/ipmi/ipmi_msghandler.c deliver_local_response(intf, msg); msg 1746 drivers/char/ipmi/ipmi_msghandler.c struct kernel_ipmi_msg *msg, msg 1763 drivers/char/ipmi/ipmi_msghandler.c smi_msg->data[i+4] = (msg->netfn << 2) | (ipmb_addr->lun & 0x3); msg 1767 drivers/char/ipmi/ipmi_msghandler.c smi_msg->data[i+8] = msg->cmd; msg 1770 drivers/char/ipmi/ipmi_msghandler.c if (msg->data_len > 0) msg 1771 drivers/char/ipmi/ipmi_msghandler.c memcpy(&smi_msg->data[i + 9], msg->data, msg->data_len); msg 1772 drivers/char/ipmi/ipmi_msghandler.c smi_msg->data_size = msg->data_len + 9; msg 1788 drivers/char/ipmi/ipmi_msghandler.c struct kernel_ipmi_msg *msg, msg 1800 drivers/char/ipmi/ipmi_msghandler.c smi_msg->data[5] = (msg->netfn << 2) | (lan_addr->lun & 0x3); msg 1804 drivers/char/ipmi/ipmi_msghandler.c smi_msg->data[9] = msg->cmd; msg 1807 drivers/char/ipmi/ipmi_msghandler.c if (msg->data_len > 0) msg 1808 drivers/char/ipmi/ipmi_msghandler.c memcpy(&smi_msg->data[10], msg->data, msg->data_len); msg 1809 drivers/char/ipmi/ipmi_msghandler.c smi_msg->data_size = msg->data_len + 10; msg 1859 drivers/char/ipmi/ipmi_msghandler.c static bool is_maintenance_mode_cmd(struct kernel_ipmi_msg *msg) msg 1861 drivers/char/ipmi/ipmi_msghandler.c return (((msg->netfn == IPMI_NETFN_APP_REQUEST) msg 1862 drivers/char/ipmi/ipmi_msghandler.c && ((msg->cmd == IPMI_COLD_RESET_CMD) msg 1863 drivers/char/ipmi/ipmi_msghandler.c || (msg->cmd == IPMI_WARM_RESET_CMD))) msg 1864 drivers/char/ipmi/ipmi_msghandler.c || (msg->netfn == IPMI_NETFN_FIRMWARE_REQUEST)); msg 1870 drivers/char/ipmi/ipmi_msghandler.c struct kernel_ipmi_msg *msg, msg 1878 drivers/char/ipmi/ipmi_msghandler.c if (msg->netfn & 1) msg 1890 drivers/char/ipmi/ipmi_msghandler.c if ((msg->netfn == IPMI_NETFN_APP_REQUEST) msg 1891 drivers/char/ipmi/ipmi_msghandler.c && ((msg->cmd == IPMI_SEND_MSG_CMD) msg 1892 drivers/char/ipmi/ipmi_msghandler.c || (msg->cmd == IPMI_GET_MSG_CMD) msg 1893 drivers/char/ipmi/ipmi_msghandler.c || (msg->cmd == IPMI_READ_EVENT_MSG_BUFFER_CMD))) { msg 1902 drivers/char/ipmi/ipmi_msghandler.c if (is_maintenance_mode_cmd(msg)) { msg 1917 drivers/char/ipmi/ipmi_msghandler.c if (msg->data_len + 2 > IPMI_MAX_MSG_LENGTH) { msg 1922 drivers/char/ipmi/ipmi_msghandler.c smi_msg->data[0] = (msg->netfn << 2) | (smi_addr->lun & 0x3); msg 1923 drivers/char/ipmi/ipmi_msghandler.c smi_msg->data[1] = msg->cmd; msg 1926 drivers/char/ipmi/ipmi_msghandler.c if (msg->data_len > 0) msg 1927 drivers/char/ipmi/ipmi_msghandler.c memcpy(&smi_msg->data[2], msg->data, msg->data_len); msg 1928 drivers/char/ipmi/ipmi_msghandler.c smi_msg->data_size = msg->data_len + 2; msg 1937 drivers/char/ipmi/ipmi_msghandler.c struct kernel_ipmi_msg *msg, msg 1979 drivers/char/ipmi/ipmi_msghandler.c if ((msg->data_len + 10 + broadcast) > IPMI_MAX_MSG_LENGTH) { msg 1992 drivers/char/ipmi/ipmi_msghandler.c if (recv_msg->msg.netfn & 0x1) { msg 1998 drivers/char/ipmi/ipmi_msghandler.c format_ipmb_msg(smi_msg, msg, ipmb_addr, msgid, msg 2013 drivers/char/ipmi/ipmi_msghandler.c if (is_maintenance_mode_cmd(msg)) msg 2046 drivers/char/ipmi/ipmi_msghandler.c format_ipmb_msg(smi_msg, msg, ipmb_addr, msg 2057 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data = recv_msg->msg_data; msg 2058 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data_len = smi_msg->data_size; msg 2078 drivers/char/ipmi/ipmi_msghandler.c struct kernel_ipmi_msg *msg, msg 2107 drivers/char/ipmi/ipmi_msghandler.c if ((msg->data_len + 12) > IPMI_MAX_MSG_LENGTH) { msg 2120 drivers/char/ipmi/ipmi_msghandler.c if (recv_msg->msg.netfn & 0x1) { msg 2126 drivers/char/ipmi/ipmi_msghandler.c format_lan_msg(smi_msg, msg, lan_addr, msgid, msg 2165 drivers/char/ipmi/ipmi_msghandler.c format_lan_msg(smi_msg, msg, lan_addr, msg 2175 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data = recv_msg->msg_data; msg 2176 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data_len = smi_msg->data_size; msg 2203 drivers/char/ipmi/ipmi_msghandler.c struct kernel_ipmi_msg *msg, msg 2255 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg = *msg; msg 2258 drivers/char/ipmi/ipmi_msghandler.c rv = i_ipmi_req_sysintf(intf, addr, msgid, msg, smi_msg, msg 2261 drivers/char/ipmi/ipmi_msghandler.c rv = i_ipmi_req_ipmb(intf, addr, msgid, msg, smi_msg, recv_msg, msg 2265 drivers/char/ipmi/ipmi_msghandler.c rv = i_ipmi_req_lan(intf, addr, msgid, msg, smi_msg, recv_msg, msg 2304 drivers/char/ipmi/ipmi_msghandler.c struct kernel_ipmi_msg *msg, msg 2326 drivers/char/ipmi/ipmi_msghandler.c msg, msg 2343 drivers/char/ipmi/ipmi_msghandler.c struct kernel_ipmi_msg *msg, msg 2365 drivers/char/ipmi/ipmi_msghandler.c msg, msg 2380 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_recv_msg *msg) msg 2384 drivers/char/ipmi/ipmi_msghandler.c if ((msg->addr.addr_type != IPMI_SYSTEM_INTERFACE_ADDR_TYPE) msg 2385 drivers/char/ipmi/ipmi_msghandler.c || (msg->msg.netfn != IPMI_NETFN_APP_RESPONSE) msg 2386 drivers/char/ipmi/ipmi_msghandler.c || (msg->msg.cmd != IPMI_GET_DEVICE_ID_CMD)) { msg 2389 drivers/char/ipmi/ipmi_msghandler.c msg->addr.addr_type, msg->msg.netfn, msg->msg.cmd); msg 2393 drivers/char/ipmi/ipmi_msghandler.c rv = ipmi_demangle_device_id(msg->msg.netfn, msg->msg.cmd, msg 2394 drivers/char/ipmi/ipmi_msghandler.c msg->msg.data, msg->msg.data_len, &intf->bmc->fetch_id); msg 2414 drivers/char/ipmi/ipmi_msghandler.c struct kernel_ipmi_msg msg; msg 2420 drivers/char/ipmi/ipmi_msghandler.c msg.netfn = IPMI_NETFN_APP_REQUEST; msg 2421 drivers/char/ipmi/ipmi_msghandler.c msg.cmd = IPMI_GET_DEVICE_ID_CMD; msg 2422 drivers/char/ipmi/ipmi_msghandler.c msg.data = NULL; msg 2423 drivers/char/ipmi/ipmi_msghandler.c msg.data_len = 0; msg 2429 drivers/char/ipmi/ipmi_msghandler.c &msg, msg 3139 drivers/char/ipmi/ipmi_msghandler.c struct kernel_ipmi_msg msg; msg 3146 drivers/char/ipmi/ipmi_msghandler.c msg.netfn = IPMI_NETFN_APP_REQUEST; msg 3147 drivers/char/ipmi/ipmi_msghandler.c msg.cmd = IPMI_GET_DEVICE_GUID_CMD; msg 3148 drivers/char/ipmi/ipmi_msghandler.c msg.data = NULL; msg 3149 drivers/char/ipmi/ipmi_msghandler.c msg.data_len = 0; msg 3154 drivers/char/ipmi/ipmi_msghandler.c &msg, msg 3164 drivers/char/ipmi/ipmi_msghandler.c static void guid_handler(struct ipmi_smi *intf, struct ipmi_recv_msg *msg) msg 3168 drivers/char/ipmi/ipmi_msghandler.c if ((msg->addr.addr_type != IPMI_SYSTEM_INTERFACE_ADDR_TYPE) msg 3169 drivers/char/ipmi/ipmi_msghandler.c || (msg->msg.netfn != IPMI_NETFN_APP_RESPONSE) msg 3170 drivers/char/ipmi/ipmi_msghandler.c || (msg->msg.cmd != IPMI_GET_DEVICE_GUID_CMD)) msg 3174 drivers/char/ipmi/ipmi_msghandler.c if (msg->msg.data[0] != 0) { msg 3180 drivers/char/ipmi/ipmi_msghandler.c if (msg->msg.data_len < UUID_SIZE + 1) { msg 3184 drivers/char/ipmi/ipmi_msghandler.c msg->msg.data_len, UUID_SIZE + 1); msg 3188 drivers/char/ipmi/ipmi_msghandler.c guid_copy(&bmc->fetch_guid, (guid_t *)(msg->msg.data + 1)); msg 3222 drivers/char/ipmi/ipmi_msghandler.c struct kernel_ipmi_msg msg; msg 3230 drivers/char/ipmi/ipmi_msghandler.c msg.netfn = IPMI_NETFN_APP_REQUEST; msg 3231 drivers/char/ipmi/ipmi_msghandler.c msg.cmd = IPMI_GET_CHANNEL_INFO_CMD; msg 3232 drivers/char/ipmi/ipmi_msghandler.c msg.data = data; msg 3233 drivers/char/ipmi/ipmi_msghandler.c msg.data_len = 1; msg 3239 drivers/char/ipmi/ipmi_msghandler.c &msg, msg 3250 drivers/char/ipmi/ipmi_msghandler.c channel_handler(struct ipmi_smi *intf, struct ipmi_recv_msg *msg) msg 3257 drivers/char/ipmi/ipmi_msghandler.c if ((msg->addr.addr_type == IPMI_SYSTEM_INTERFACE_ADDR_TYPE) msg 3258 drivers/char/ipmi/ipmi_msghandler.c && (msg->msg.netfn == IPMI_NETFN_APP_RESPONSE) msg 3259 drivers/char/ipmi/ipmi_msghandler.c && (msg->msg.cmd == IPMI_GET_CHANNEL_INFO_CMD)) { msg 3261 drivers/char/ipmi/ipmi_msghandler.c if (msg->msg.data[0] != 0) { msg 3264 drivers/char/ipmi/ipmi_msghandler.c if (msg->msg.data[0] == IPMI_INVALID_COMMAND_ERR) { msg 3283 drivers/char/ipmi/ipmi_msghandler.c if (msg->msg.data_len < 4) { msg 3289 drivers/char/ipmi/ipmi_msghandler.c chans[ch].medium = msg->msg.data[2] & 0x7f; msg 3290 drivers/char/ipmi/ipmi_msghandler.c chans[ch].protocol = msg->msg.data[3] & 0x1f; msg 3532 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_smi_msg *msg, msg 3535 drivers/char/ipmi/ipmi_msghandler.c msg->rsp[0] = msg->data[0] | 4; msg 3536 drivers/char/ipmi/ipmi_msghandler.c msg->rsp[1] = msg->data[1]; msg 3537 drivers/char/ipmi/ipmi_msghandler.c msg->rsp[2] = err; msg 3538 drivers/char/ipmi/ipmi_msghandler.c msg->rsp_size = 3; msg 3540 drivers/char/ipmi/ipmi_msghandler.c handle_one_recv_msg(intf, msg); msg 3547 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_smi_msg *msg; msg 3571 drivers/char/ipmi/ipmi_msghandler.c msg = list_entry(entry, struct ipmi_smi_msg, link); msg 3572 drivers/char/ipmi/ipmi_msghandler.c deliver_smi_err_response(intf, msg, IPMI_ERR_UNSPECIFIED); msg 3629 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_smi_msg *msg) msg 3638 drivers/char/ipmi/ipmi_msghandler.c if (msg->rsp_size < 11) { msg 3644 drivers/char/ipmi/ipmi_msghandler.c if (msg->rsp[2] != 0) { msg 3650 drivers/char/ipmi/ipmi_msghandler.c ipmb_addr.slave_addr = msg->rsp[6]; msg 3651 drivers/char/ipmi/ipmi_msghandler.c ipmb_addr.channel = msg->rsp[3] & 0x0f; msg 3652 drivers/char/ipmi/ipmi_msghandler.c ipmb_addr.lun = msg->rsp[7] & 3; msg 3659 drivers/char/ipmi/ipmi_msghandler.c msg->rsp[7] >> 2, msg 3660 drivers/char/ipmi/ipmi_msghandler.c msg->rsp[3] & 0x0f, msg 3661 drivers/char/ipmi/ipmi_msghandler.c msg->rsp[8], msg 3662 drivers/char/ipmi/ipmi_msghandler.c (msg->rsp[4] >> 2) & (~1), msg 3673 drivers/char/ipmi/ipmi_msghandler.c memcpy(recv_msg->msg_data, &msg->rsp[9], msg->rsp_size - 9); msg 3679 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.netfn = msg->rsp[4] >> 2; msg 3680 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data = recv_msg->msg_data; msg 3681 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data_len = msg->rsp_size - 10; msg 3692 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_smi_msg *msg) msg 3703 drivers/char/ipmi/ipmi_msghandler.c if (msg->rsp_size < 10) { msg 3709 drivers/char/ipmi/ipmi_msghandler.c if (msg->rsp[2] != 0) { msg 3714 drivers/char/ipmi/ipmi_msghandler.c netfn = msg->rsp[4] >> 2; msg 3715 drivers/char/ipmi/ipmi_msghandler.c cmd = msg->rsp[8]; msg 3716 drivers/char/ipmi/ipmi_msghandler.c chan = msg->rsp[3] & 0xf; msg 3731 drivers/char/ipmi/ipmi_msghandler.c msg->data[0] = (IPMI_NETFN_APP_REQUEST << 2); msg 3732 drivers/char/ipmi/ipmi_msghandler.c msg->data[1] = IPMI_SEND_MSG_CMD; msg 3733 drivers/char/ipmi/ipmi_msghandler.c msg->data[2] = msg->rsp[3]; msg 3734 drivers/char/ipmi/ipmi_msghandler.c msg->data[3] = msg->rsp[6]; msg 3735 drivers/char/ipmi/ipmi_msghandler.c msg->data[4] = ((netfn + 1) << 2) | (msg->rsp[7] & 0x3); msg 3736 drivers/char/ipmi/ipmi_msghandler.c msg->data[5] = ipmb_checksum(&msg->data[3], 2); msg 3737 drivers/char/ipmi/ipmi_msghandler.c msg->data[6] = intf->addrinfo[msg->rsp[3] & 0xf].address; msg 3739 drivers/char/ipmi/ipmi_msghandler.c msg->data[7] = (msg->rsp[7] & 0xfc) | (msg->rsp[4] & 0x3); msg 3740 drivers/char/ipmi/ipmi_msghandler.c msg->data[8] = msg->rsp[8]; /* cmd */ msg 3741 drivers/char/ipmi/ipmi_msghandler.c msg->data[9] = IPMI_INVALID_CMD_COMPLETION_CODE; msg 3742 drivers/char/ipmi/ipmi_msghandler.c msg->data[10] = ipmb_checksum(&msg->data[6], 4); msg 3743 drivers/char/ipmi/ipmi_msghandler.c msg->data_size = 11; msg 3745 drivers/char/ipmi/ipmi_msghandler.c ipmi_debug_msg("Invalid command:", msg->data, msg->data_size); msg 3749 drivers/char/ipmi/ipmi_msghandler.c smi_send(intf, intf->handlers, msg, 0); msg 3772 drivers/char/ipmi/ipmi_msghandler.c ipmb_addr->slave_addr = msg->rsp[6]; msg 3773 drivers/char/ipmi/ipmi_msghandler.c ipmb_addr->lun = msg->rsp[7] & 3; msg 3774 drivers/char/ipmi/ipmi_msghandler.c ipmb_addr->channel = msg->rsp[3] & 0xf; msg 3782 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msgid = msg->rsp[7] >> 2; msg 3783 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.netfn = msg->rsp[4] >> 2; msg 3784 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.cmd = msg->rsp[8]; msg 3785 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data = recv_msg->msg_data; msg 3791 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data_len = msg->rsp_size - 10; msg 3792 drivers/char/ipmi/ipmi_msghandler.c memcpy(recv_msg->msg_data, &msg->rsp[9], msg 3793 drivers/char/ipmi/ipmi_msghandler.c msg->rsp_size - 10); msg 3805 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_smi_msg *msg) msg 3815 drivers/char/ipmi/ipmi_msghandler.c if (msg->rsp_size < 13) { msg 3821 drivers/char/ipmi/ipmi_msghandler.c if (msg->rsp[2] != 0) { msg 3827 drivers/char/ipmi/ipmi_msghandler.c lan_addr.session_handle = msg->rsp[4]; msg 3828 drivers/char/ipmi/ipmi_msghandler.c lan_addr.remote_SWID = msg->rsp[8]; msg 3829 drivers/char/ipmi/ipmi_msghandler.c lan_addr.local_SWID = msg->rsp[5]; msg 3830 drivers/char/ipmi/ipmi_msghandler.c lan_addr.channel = msg->rsp[3] & 0x0f; msg 3831 drivers/char/ipmi/ipmi_msghandler.c lan_addr.privilege = msg->rsp[3] >> 4; msg 3832 drivers/char/ipmi/ipmi_msghandler.c lan_addr.lun = msg->rsp[9] & 3; msg 3839 drivers/char/ipmi/ipmi_msghandler.c msg->rsp[9] >> 2, msg 3840 drivers/char/ipmi/ipmi_msghandler.c msg->rsp[3] & 0x0f, msg 3841 drivers/char/ipmi/ipmi_msghandler.c msg->rsp[10], msg 3842 drivers/char/ipmi/ipmi_msghandler.c (msg->rsp[6] >> 2) & (~1), msg 3853 drivers/char/ipmi/ipmi_msghandler.c memcpy(recv_msg->msg_data, &msg->rsp[11], msg->rsp_size - 11); msg 3859 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.netfn = msg->rsp[6] >> 2; msg 3860 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data = recv_msg->msg_data; msg 3861 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data_len = msg->rsp_size - 12; msg 3872 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_smi_msg *msg) msg 3883 drivers/char/ipmi/ipmi_msghandler.c if (msg->rsp_size < 12) { msg 3889 drivers/char/ipmi/ipmi_msghandler.c if (msg->rsp[2] != 0) { msg 3894 drivers/char/ipmi/ipmi_msghandler.c netfn = msg->rsp[6] >> 2; msg 3895 drivers/char/ipmi/ipmi_msghandler.c cmd = msg->rsp[10]; msg 3896 drivers/char/ipmi/ipmi_msghandler.c chan = msg->rsp[3] & 0xf; msg 3929 drivers/char/ipmi/ipmi_msghandler.c lan_addr->session_handle = msg->rsp[4]; msg 3930 drivers/char/ipmi/ipmi_msghandler.c lan_addr->remote_SWID = msg->rsp[8]; msg 3931 drivers/char/ipmi/ipmi_msghandler.c lan_addr->local_SWID = msg->rsp[5]; msg 3932 drivers/char/ipmi/ipmi_msghandler.c lan_addr->lun = msg->rsp[9] & 3; msg 3933 drivers/char/ipmi/ipmi_msghandler.c lan_addr->channel = msg->rsp[3] & 0xf; msg 3934 drivers/char/ipmi/ipmi_msghandler.c lan_addr->privilege = msg->rsp[3] >> 4; msg 3942 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msgid = msg->rsp[9] >> 2; msg 3943 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.netfn = msg->rsp[6] >> 2; msg 3944 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.cmd = msg->rsp[10]; msg 3945 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data = recv_msg->msg_data; msg 3951 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data_len = msg->rsp_size - 12; msg 3952 drivers/char/ipmi/ipmi_msghandler.c memcpy(recv_msg->msg_data, &msg->rsp[11], msg 3953 drivers/char/ipmi/ipmi_msghandler.c msg->rsp_size - 12); msg 3971 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_smi_msg *msg) msg 3986 drivers/char/ipmi/ipmi_msghandler.c if (msg->rsp_size < 4) { msg 3992 drivers/char/ipmi/ipmi_msghandler.c if (msg->rsp[2] != 0) { msg 4001 drivers/char/ipmi/ipmi_msghandler.c netfn = msg->rsp[0] >> 2; msg 4002 drivers/char/ipmi/ipmi_msghandler.c cmd = msg->rsp[1]; msg 4003 drivers/char/ipmi/ipmi_msghandler.c chan = msg->rsp[3] & 0xf; msg 4045 drivers/char/ipmi/ipmi_msghandler.c smi_addr->lun = msg->rsp[0] & 3; msg 4050 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.netfn = msg->rsp[0] >> 2; msg 4051 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.cmd = msg->rsp[1]; msg 4052 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data = recv_msg->msg_data; msg 4058 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data_len = msg->rsp_size - 4; msg 4059 drivers/char/ipmi/ipmi_msghandler.c memcpy(recv_msg->msg_data, &msg->rsp[4], msg 4060 drivers/char/ipmi/ipmi_msghandler.c msg->rsp_size - 4); msg 4072 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_smi_msg *msg) msg 4080 drivers/char/ipmi/ipmi_msghandler.c smi_addr->lun = msg->rsp[0] & 3; msg 4082 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.netfn = msg->rsp[0] >> 2; msg 4083 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.cmd = msg->rsp[1]; msg 4084 drivers/char/ipmi/ipmi_msghandler.c memcpy(recv_msg->msg_data, &msg->rsp[3], msg->rsp_size - 3); msg 4085 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data = recv_msg->msg_data; msg 4086 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data_len = msg->rsp_size - 3; msg 4090 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_smi_msg *msg) msg 4098 drivers/char/ipmi/ipmi_msghandler.c if (msg->rsp_size < 19) { msg 4104 drivers/char/ipmi/ipmi_msghandler.c if (msg->rsp[2] != 0) { msg 4143 drivers/char/ipmi/ipmi_msghandler.c copy_event_into_recv_msg(recv_msg, msg); msg 4172 drivers/char/ipmi/ipmi_msghandler.c copy_event_into_recv_msg(recv_msg, msg); msg 4192 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_smi_msg *msg) msg 4197 drivers/char/ipmi/ipmi_msghandler.c recv_msg = (struct ipmi_recv_msg *) msg->user_data; msg 4205 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msgid = msg->msgid; msg 4210 drivers/char/ipmi/ipmi_msghandler.c smi_addr->lun = msg->rsp[0] & 3; msg 4211 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.netfn = msg->rsp[0] >> 2; msg 4212 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.cmd = msg->rsp[1]; msg 4213 drivers/char/ipmi/ipmi_msghandler.c memcpy(recv_msg->msg_data, &msg->rsp[2], msg->rsp_size - 2); msg 4214 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data = recv_msg->msg_data; msg 4215 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data_len = msg->rsp_size - 2; msg 4227 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_smi_msg *msg) msg 4232 drivers/char/ipmi/ipmi_msghandler.c ipmi_debug_msg("Recv:", msg->rsp, msg->rsp_size); msg 4234 drivers/char/ipmi/ipmi_msghandler.c if ((msg->data_size >= 2) msg 4235 drivers/char/ipmi/ipmi_msghandler.c && (msg->data[0] == (IPMI_NETFN_APP_REQUEST << 2)) msg 4236 drivers/char/ipmi/ipmi_msghandler.c && (msg->data[1] == IPMI_SEND_MSG_CMD) msg 4237 drivers/char/ipmi/ipmi_msghandler.c && (msg->user_data == NULL)) { msg 4255 drivers/char/ipmi/ipmi_msghandler.c if ((msg->rsp_size >= 3) && (msg->rsp[2] != 0) msg 4256 drivers/char/ipmi/ipmi_msghandler.c && (msg->rsp[2] != IPMI_NODE_BUSY_ERR) msg 4257 drivers/char/ipmi/ipmi_msghandler.c && (msg->rsp[2] != IPMI_LOST_ARBITRATION_ERR) msg 4258 drivers/char/ipmi/ipmi_msghandler.c && (msg->rsp[2] != IPMI_BUS_ERR) msg 4259 drivers/char/ipmi/ipmi_msghandler.c && (msg->rsp[2] != IPMI_NAK_ON_WRITE_ERR)) { msg 4260 drivers/char/ipmi/ipmi_msghandler.c int ch = msg->rsp[3] & 0xf; msg 4271 drivers/char/ipmi/ipmi_msghandler.c intf_err_seq(intf, msg->msgid, msg->rsp[2]); msg 4274 drivers/char/ipmi/ipmi_msghandler.c intf_start_seq_timer(intf, msg->msgid); msg 4279 drivers/char/ipmi/ipmi_msghandler.c } else if (msg->rsp_size < 2) { msg 4283 drivers/char/ipmi/ipmi_msghandler.c (msg->data[0] >> 2) | 1, msg->data[1], msg->rsp_size); msg 4286 drivers/char/ipmi/ipmi_msghandler.c msg->rsp[0] = msg->data[0] | (1 << 2); msg 4287 drivers/char/ipmi/ipmi_msghandler.c msg->rsp[1] = msg->data[1]; msg 4288 drivers/char/ipmi/ipmi_msghandler.c msg->rsp[2] = IPMI_ERR_UNSPECIFIED; msg 4289 drivers/char/ipmi/ipmi_msghandler.c msg->rsp_size = 3; msg 4290 drivers/char/ipmi/ipmi_msghandler.c } else if (((msg->rsp[0] >> 2) != ((msg->data[0] >> 2) | 1)) msg 4291 drivers/char/ipmi/ipmi_msghandler.c || (msg->rsp[1] != msg->data[1])) { msg 4298 drivers/char/ipmi/ipmi_msghandler.c (msg->data[0] >> 2) | 1, msg->data[1], msg 4299 drivers/char/ipmi/ipmi_msghandler.c msg->rsp[0] >> 2, msg->rsp[1]); msg 4302 drivers/char/ipmi/ipmi_msghandler.c msg->rsp[0] = msg->data[0] | (1 << 2); msg 4303 drivers/char/ipmi/ipmi_msghandler.c msg->rsp[1] = msg->data[1]; msg 4304 drivers/char/ipmi/ipmi_msghandler.c msg->rsp[2] = IPMI_ERR_UNSPECIFIED; msg 4305 drivers/char/ipmi/ipmi_msghandler.c msg->rsp_size = 3; msg 4308 drivers/char/ipmi/ipmi_msghandler.c if ((msg->rsp[0] == ((IPMI_NETFN_APP_REQUEST|1) << 2)) msg 4309 drivers/char/ipmi/ipmi_msghandler.c && (msg->rsp[1] == IPMI_SEND_MSG_CMD) msg 4310 drivers/char/ipmi/ipmi_msghandler.c && (msg->user_data != NULL)) { msg 4315 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_recv_msg *recv_msg = msg->user_data; msg 4318 drivers/char/ipmi/ipmi_msghandler.c if (msg->rsp_size < 2) msg 4322 drivers/char/ipmi/ipmi_msghandler.c chan = msg->data[2] & 0x0f; msg 4331 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data = recv_msg->msg_data; msg 4332 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg.data_len = 1; msg 4333 drivers/char/ipmi/ipmi_msghandler.c recv_msg->msg_data[0] = msg->rsp[2]; msg 4335 drivers/char/ipmi/ipmi_msghandler.c } else if ((msg->rsp[0] == ((IPMI_NETFN_APP_REQUEST|1) << 2)) msg 4336 drivers/char/ipmi/ipmi_msghandler.c && (msg->rsp[1] == IPMI_GET_MSG_CMD)) { msg 4340 drivers/char/ipmi/ipmi_msghandler.c chan = msg->rsp[3] & 0xf; msg 4362 drivers/char/ipmi/ipmi_msghandler.c if (msg->rsp[4] & 0x04) { msg 4367 drivers/char/ipmi/ipmi_msghandler.c requeue = handle_ipmb_get_msg_rsp(intf, msg); msg 4373 drivers/char/ipmi/ipmi_msghandler.c requeue = handle_ipmb_get_msg_cmd(intf, msg); msg 4379 drivers/char/ipmi/ipmi_msghandler.c if (msg->rsp[6] & 0x04) { msg 4384 drivers/char/ipmi/ipmi_msghandler.c requeue = handle_lan_get_msg_rsp(intf, msg); msg 4390 drivers/char/ipmi/ipmi_msghandler.c requeue = handle_lan_get_msg_cmd(intf, msg); msg 4400 drivers/char/ipmi/ipmi_msghandler.c requeue = handle_oem_get_msg_cmd(intf, msg); msg 4410 drivers/char/ipmi/ipmi_msghandler.c } else if ((msg->rsp[0] == ((IPMI_NETFN_APP_REQUEST|1) << 2)) msg 4411 drivers/char/ipmi/ipmi_msghandler.c && (msg->rsp[1] == IPMI_READ_EVENT_MSG_BUFFER_CMD)) { msg 4413 drivers/char/ipmi/ipmi_msghandler.c requeue = handle_read_event_rsp(intf, msg); msg 4416 drivers/char/ipmi/ipmi_msghandler.c requeue = handle_bmc_rsp(intf, msg); msg 4531 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_smi_msg *msg) msg 4542 drivers/char/ipmi/ipmi_msghandler.c list_add_tail(&msg->link, &intf->waiting_rcv_msgs); msg 4553 drivers/char/ipmi/ipmi_msghandler.c if (msg == intf->curr_msg) msg 4587 drivers/char/ipmi/ipmi_msghandler.c memcpy(smi_msg->data, recv_msg->msg.data, recv_msg->msg.data_len); msg 4588 drivers/char/ipmi/ipmi_msghandler.c smi_msg->data_size = recv_msg->msg.data_len; msg 4602 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_recv_msg *msg; msg 4620 drivers/char/ipmi/ipmi_msghandler.c msg = ent->recv_msg; msg 4621 drivers/char/ipmi/ipmi_msghandler.c list_add_tail(&msg->link, timeouts); msg 4681 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_recv_msg *msg, *msg2; msg 4713 drivers/char/ipmi/ipmi_msghandler.c list_for_each_entry_safe(msg, msg2, &timeouts, link) msg 4714 drivers/char/ipmi/ipmi_msghandler.c deliver_err_response(intf, msg, IPMI_TIMEOUT_COMPLETION_CODE); msg 4796 drivers/char/ipmi/ipmi_msghandler.c static void free_smi_msg(struct ipmi_smi_msg *msg) msg 4799 drivers/char/ipmi/ipmi_msghandler.c kfree(msg); msg 4815 drivers/char/ipmi/ipmi_msghandler.c static void free_recv_msg(struct ipmi_recv_msg *msg) msg 4818 drivers/char/ipmi/ipmi_msghandler.c kfree(msg); msg 4834 drivers/char/ipmi/ipmi_msghandler.c void ipmi_free_recv_msg(struct ipmi_recv_msg *msg) msg 4836 drivers/char/ipmi/ipmi_msghandler.c if (msg->user) msg 4837 drivers/char/ipmi/ipmi_msghandler.c kref_put(&msg->user->refcount, free_user); msg 4838 drivers/char/ipmi/ipmi_msghandler.c msg->done(msg); msg 4844 drivers/char/ipmi/ipmi_msghandler.c static void dummy_smi_done_handler(struct ipmi_smi_msg *msg) msg 4849 drivers/char/ipmi/ipmi_msghandler.c static void dummy_recv_done_handler(struct ipmi_recv_msg *msg) msg 4859 drivers/char/ipmi/ipmi_msghandler.c struct kernel_ipmi_msg *msg) msg 4872 drivers/char/ipmi/ipmi_msghandler.c msg, msg 4890 drivers/char/ipmi/ipmi_msghandler.c struct ipmi_recv_msg *msg) msg 4892 drivers/char/ipmi/ipmi_msghandler.c if ((msg->addr.addr_type == IPMI_SYSTEM_INTERFACE_ADDR_TYPE) msg 4893 drivers/char/ipmi/ipmi_msghandler.c && (msg->msg.netfn == IPMI_NETFN_SENSOR_EVENT_RESPONSE) msg 4894 drivers/char/ipmi/ipmi_msghandler.c && (msg->msg.cmd == IPMI_GET_EVENT_RECEIVER_CMD) msg 4895 drivers/char/ipmi/ipmi_msghandler.c && (msg->msg.data[0] == IPMI_CC_NO_ERROR)) { msg 4897 drivers/char/ipmi/ipmi_msghandler.c intf->event_receiver = msg->msg.data[1]; msg 4898 drivers/char/ipmi/ipmi_msghandler.c intf->event_receiver_lun = msg->msg.data[2] & 0x3; msg 4902 drivers/char/ipmi/ipmi_msghandler.c static void device_id_fetcher(struct ipmi_smi *intf, struct ipmi_recv_msg *msg) msg 4904 drivers/char/ipmi/ipmi_msghandler.c if ((msg->addr.addr_type == IPMI_SYSTEM_INTERFACE_ADDR_TYPE) msg 4905 drivers/char/ipmi/ipmi_msghandler.c && (msg->msg.netfn == IPMI_NETFN_APP_RESPONSE) msg 4906 drivers/char/ipmi/ipmi_msghandler.c && (msg->msg.cmd == IPMI_GET_DEVICE_ID_CMD) msg 4907 drivers/char/ipmi/ipmi_msghandler.c && (msg->msg.data[0] == IPMI_CC_NO_ERROR)) { msg 4912 drivers/char/ipmi/ipmi_msghandler.c intf->local_sel_device = (msg->msg.data[6] >> 2) & 1; msg 4913 drivers/char/ipmi/ipmi_msghandler.c intf->local_event_generator = (msg->msg.data[6] >> 5) & 1; msg 4919 drivers/char/ipmi/ipmi_msghandler.c struct kernel_ipmi_msg msg; msg 4936 drivers/char/ipmi/ipmi_msghandler.c msg.netfn = 0x04; /* Sensor or Event. */ msg 4937 drivers/char/ipmi/ipmi_msghandler.c msg.cmd = 2; /* Platform event command. */ msg 4938 drivers/char/ipmi/ipmi_msghandler.c msg.data = data; msg 4939 drivers/char/ipmi/ipmi_msghandler.c msg.data_len = 8; msg 4957 drivers/char/ipmi/ipmi_msghandler.c ipmi_panic_request_and_wait(intf, &addr, &msg); msg 4988 drivers/char/ipmi/ipmi_msghandler.c msg.netfn = IPMI_NETFN_APP_REQUEST; msg 4989 drivers/char/ipmi/ipmi_msghandler.c msg.cmd = IPMI_GET_DEVICE_ID_CMD; msg 4990 drivers/char/ipmi/ipmi_msghandler.c msg.data = NULL; msg 4991 drivers/char/ipmi/ipmi_msghandler.c msg.data_len = 0; msg 4993 drivers/char/ipmi/ipmi_msghandler.c ipmi_panic_request_and_wait(intf, &addr, &msg); msg 4997 drivers/char/ipmi/ipmi_msghandler.c msg.netfn = IPMI_NETFN_SENSOR_EVENT_REQUEST; msg 4998 drivers/char/ipmi/ipmi_msghandler.c msg.cmd = IPMI_GET_EVENT_RECEIVER_CMD; msg 4999 drivers/char/ipmi/ipmi_msghandler.c msg.data = NULL; msg 5000 drivers/char/ipmi/ipmi_msghandler.c msg.data_len = 0; msg 5002 drivers/char/ipmi/ipmi_msghandler.c ipmi_panic_request_and_wait(intf, &addr, &msg); msg 5036 drivers/char/ipmi/ipmi_msghandler.c msg.netfn = IPMI_NETFN_STORAGE_REQUEST; /* Storage. */ msg 5037 drivers/char/ipmi/ipmi_msghandler.c msg.cmd = IPMI_ADD_SEL_ENTRY_CMD; msg 5038 drivers/char/ipmi/ipmi_msghandler.c msg.data = data; msg 5039 drivers/char/ipmi/ipmi_msghandler.c msg.data_len = 16; msg 5059 drivers/char/ipmi/ipmi_msghandler.c ipmi_panic_request_and_wait(intf, &addr, &msg); msg 45 drivers/char/ipmi/ipmi_powernv.c struct ipmi_smi_msg *msg, u8 completion_code) msg 47 drivers/char/ipmi/ipmi_powernv.c msg->rsp[0] = msg->data[0] | 0x4; msg 48 drivers/char/ipmi/ipmi_powernv.c msg->rsp[1] = msg->data[1]; msg 49 drivers/char/ipmi/ipmi_powernv.c msg->rsp[2] = completion_code; msg 50 drivers/char/ipmi/ipmi_powernv.c msg->rsp_size = 3; msg 51 drivers/char/ipmi/ipmi_powernv.c ipmi_smi_msg_received(smi->intf, msg); msg 54 drivers/char/ipmi/ipmi_powernv.c static void ipmi_powernv_send(void *send_info, struct ipmi_smi_msg *msg) msg 63 drivers/char/ipmi/ipmi_powernv.c if (msg->data_size > IPMI_MAX_MSG_LENGTH) { msg 69 drivers/char/ipmi/ipmi_powernv.c if (msg->data_size < 2) { msg 84 drivers/char/ipmi/ipmi_powernv.c opal_msg->netfn = msg->data[0]; msg 85 drivers/char/ipmi/ipmi_powernv.c opal_msg->cmd = msg->data[1]; msg 86 drivers/char/ipmi/ipmi_powernv.c if (msg->data_size > 2) msg 87 drivers/char/ipmi/ipmi_powernv.c memcpy(opal_msg->data, msg->data + 2, msg->data_size - 2); msg 90 drivers/char/ipmi/ipmi_powernv.c size = sizeof(*opal_msg) + msg->data_size - 2; msg 98 drivers/char/ipmi/ipmi_powernv.c smi->cur_msg = msg; msg 107 drivers/char/ipmi/ipmi_powernv.c send_error_reply(smi, msg, comp); msg 113 drivers/char/ipmi/ipmi_powernv.c struct ipmi_smi_msg *msg; msg 129 drivers/char/ipmi/ipmi_powernv.c msg = smi->cur_msg; msg 149 drivers/char/ipmi/ipmi_powernv.c send_error_reply(smi, msg, IPMI_ERR_UNSPECIFIED); msg 166 drivers/char/ipmi/ipmi_powernv.c msg->rsp[0] = opal_msg->netfn; msg 167 drivers/char/ipmi/ipmi_powernv.c msg->rsp[1] = opal_msg->cmd; msg 169 drivers/char/ipmi/ipmi_powernv.c memcpy(&msg->rsp[2], opal_msg->data, size - sizeof(*opal_msg)); msg 170 drivers/char/ipmi/ipmi_powernv.c msg->rsp_size = 2 + size - sizeof(*opal_msg); msg 174 drivers/char/ipmi/ipmi_powernv.c ipmi_smi_msg_received(smi->intf, msg); msg 89 drivers/char/ipmi/ipmi_poweroff.c static void dummy_smi_free(struct ipmi_smi_msg *msg) msg 93 drivers/char/ipmi/ipmi_poweroff.c static void dummy_recv_free(struct ipmi_recv_msg *msg) msg 138 drivers/char/ipmi/ipmi_poweroff.c return halt_recv_msg.msg.data[0]; msg 164 drivers/char/ipmi/ipmi_poweroff.c return halt_recv_msg.msg.data[0]; msg 349 drivers/char/ipmi/ipmi_poweroff.c slot = halt_recv_msg.msg.data[1]; msg 364 drivers/char/ipmi/ipmi_poweroff.c aer_addr = halt_recv_msg.msg.data[1]; msg 365 drivers/char/ipmi/ipmi_poweroff.c aer_lun = halt_recv_msg.msg.data[2]; msg 599 drivers/char/ipmi/ipmi_poweroff.c if (halt_recv_msg.msg.data_len < 12) { msg 601 drivers/char/ipmi/ipmi_poweroff.c halt_recv_msg.msg.data_len, 12); msg 605 drivers/char/ipmi/ipmi_poweroff.c mfg_id = (halt_recv_msg.msg.data[7] msg 606 drivers/char/ipmi/ipmi_poweroff.c | (halt_recv_msg.msg.data[8] << 8) msg 607 drivers/char/ipmi/ipmi_poweroff.c | (halt_recv_msg.msg.data[9] << 16)); msg 608 drivers/char/ipmi/ipmi_poweroff.c prod_id = (halt_recv_msg.msg.data[10] msg 609 drivers/char/ipmi/ipmi_poweroff.c | (halt_recv_msg.msg.data[11] << 8)); msg 610 drivers/char/ipmi/ipmi_poweroff.c capabilities = halt_recv_msg.msg.data[6]; msg 611 drivers/char/ipmi/ipmi_poweroff.c ipmi_version = halt_recv_msg.msg.data[5]; msg 266 drivers/char/ipmi/ipmi_si_intf.c void debug_timestamp(char *msg) msg 271 drivers/char/ipmi/ipmi_si_intf.c pr_debug("**%s: %ld.%9.9ld\n", msg, (long) t.tv_sec, t.tv_nsec); msg 284 drivers/char/ipmi/ipmi_si_intf.c struct ipmi_smi_msg *msg) msg 287 drivers/char/ipmi/ipmi_si_intf.c ipmi_smi_msg_received(smi_info->intf, msg); msg 292 drivers/char/ipmi/ipmi_si_intf.c struct ipmi_smi_msg *msg = smi_info->curr_msg; msg 299 drivers/char/ipmi/ipmi_si_intf.c msg->rsp[0] = msg->data[0] | 4; msg 300 drivers/char/ipmi/ipmi_si_intf.c msg->rsp[1] = msg->data[1]; msg 301 drivers/char/ipmi/ipmi_si_intf.c msg->rsp[2] = cCode; msg 302 drivers/char/ipmi/ipmi_si_intf.c msg->rsp_size = 3; msg 305 drivers/char/ipmi/ipmi_si_intf.c deliver_recv_msg(smi_info, msg); msg 352 drivers/char/ipmi/ipmi_si_intf.c static void start_new_msg(struct smi_info *smi_info, unsigned char *msg, msg 360 drivers/char/ipmi/ipmi_si_intf.c smi_info->handlers->start_transaction(smi_info->si_sm, msg, size); msg 365 drivers/char/ipmi/ipmi_si_intf.c unsigned char msg[2]; msg 367 drivers/char/ipmi/ipmi_si_intf.c msg[0] = (IPMI_NETFN_APP_REQUEST << 2); msg 368 drivers/char/ipmi/ipmi_si_intf.c msg[1] = IPMI_GET_BMC_GLOBAL_ENABLES_CMD; msg 370 drivers/char/ipmi/ipmi_si_intf.c start_new_msg(smi_info, msg, 2); msg 376 drivers/char/ipmi/ipmi_si_intf.c unsigned char msg[3]; msg 379 drivers/char/ipmi/ipmi_si_intf.c msg[0] = (IPMI_NETFN_APP_REQUEST << 2); msg 380 drivers/char/ipmi/ipmi_si_intf.c msg[1] = IPMI_CLEAR_MSG_FLAGS_CMD; msg 381 drivers/char/ipmi/ipmi_si_intf.c msg[2] = WDT_PRE_TIMEOUT_INT; msg 383 drivers/char/ipmi/ipmi_si_intf.c start_new_msg(smi_info, msg, 3); msg 446 drivers/char/ipmi/ipmi_si_intf.c struct ipmi_smi_msg *msg; msg 448 drivers/char/ipmi/ipmi_si_intf.c msg = ipmi_alloc_smi_msg(); msg 449 drivers/char/ipmi/ipmi_si_intf.c if (!msg) { msg 453 drivers/char/ipmi/ipmi_si_intf.c ipmi_free_smi_msg(msg); msg 454 drivers/char/ipmi/ipmi_si_intf.c msg = NULL; msg 456 drivers/char/ipmi/ipmi_si_intf.c return msg; msg 538 drivers/char/ipmi/ipmi_si_intf.c struct ipmi_smi_msg *msg; msg 557 drivers/char/ipmi/ipmi_si_intf.c msg = smi_info->curr_msg; msg 559 drivers/char/ipmi/ipmi_si_intf.c deliver_recv_msg(smi_info, msg); msg 564 drivers/char/ipmi/ipmi_si_intf.c unsigned char msg[4]; msg 568 drivers/char/ipmi/ipmi_si_intf.c len = smi_info->handlers->get_result(smi_info->si_sm, msg, 4); msg 569 drivers/char/ipmi/ipmi_si_intf.c if (msg[2] != 0) { msg 579 drivers/char/ipmi/ipmi_si_intf.c smi_info->msg_flags = msg[3]; msg 587 drivers/char/ipmi/ipmi_si_intf.c unsigned char msg[3]; msg 590 drivers/char/ipmi/ipmi_si_intf.c smi_info->handlers->get_result(smi_info->si_sm, msg, 3); msg 591 drivers/char/ipmi/ipmi_si_intf.c if (msg[2] != 0) { msg 594 drivers/char/ipmi/ipmi_si_intf.c "Error clearing flags: %2.2x\n", msg[2]); msg 613 drivers/char/ipmi/ipmi_si_intf.c msg = smi_info->curr_msg; msg 615 drivers/char/ipmi/ipmi_si_intf.c if (msg->rsp[2] != 0) { msg 617 drivers/char/ipmi/ipmi_si_intf.c msg->done(msg); msg 633 drivers/char/ipmi/ipmi_si_intf.c deliver_recv_msg(smi_info, msg); msg 651 drivers/char/ipmi/ipmi_si_intf.c msg = smi_info->curr_msg; msg 653 drivers/char/ipmi/ipmi_si_intf.c if (msg->rsp[2] != 0) { msg 655 drivers/char/ipmi/ipmi_si_intf.c msg->done(msg); msg 671 drivers/char/ipmi/ipmi_si_intf.c deliver_recv_msg(smi_info, msg); msg 678 drivers/char/ipmi/ipmi_si_intf.c unsigned char msg[4]; msg 683 drivers/char/ipmi/ipmi_si_intf.c smi_info->handlers->get_result(smi_info->si_sm, msg, 4); msg 684 drivers/char/ipmi/ipmi_si_intf.c if (msg[2] != 0) { msg 686 drivers/char/ipmi/ipmi_si_intf.c "Couldn't get irq info: %x.\n", msg[2]); msg 696 drivers/char/ipmi/ipmi_si_intf.c if (enables != (msg[3] & GLOBAL_ENABLES_MASK)) { msg 698 drivers/char/ipmi/ipmi_si_intf.c msg[0] = (IPMI_NETFN_APP_REQUEST << 2); msg 699 drivers/char/ipmi/ipmi_si_intf.c msg[1] = IPMI_SET_BMC_GLOBAL_ENABLES_CMD; msg 700 drivers/char/ipmi/ipmi_si_intf.c msg[2] = enables | (msg[3] & ~GLOBAL_ENABLES_MASK); msg 702 drivers/char/ipmi/ipmi_si_intf.c smi_info->si_sm, msg, 3); msg 719 drivers/char/ipmi/ipmi_si_intf.c unsigned char msg[4]; msg 721 drivers/char/ipmi/ipmi_si_intf.c smi_info->handlers->get_result(smi_info->si_sm, msg, 4); msg 722 drivers/char/ipmi/ipmi_si_intf.c if (msg[2] != 0) msg 725 drivers/char/ipmi/ipmi_si_intf.c msg[2]); msg 795 drivers/char/ipmi/ipmi_si_intf.c unsigned char msg[2]; msg 814 drivers/char/ipmi/ipmi_si_intf.c msg[0] = (IPMI_NETFN_APP_REQUEST << 2); msg 815 drivers/char/ipmi/ipmi_si_intf.c msg[1] = IPMI_GET_MSG_FLAGS_CMD; msg 817 drivers/char/ipmi/ipmi_si_intf.c start_new_msg(smi_info, msg, 2); msg 898 drivers/char/ipmi/ipmi_si_intf.c struct ipmi_smi_msg *msg) msg 910 drivers/char/ipmi/ipmi_si_intf.c smi_info->waiting_msg = msg; msg 923 drivers/char/ipmi/ipmi_si_intf.c smi_info->waiting_msg = msg; msg 1329 drivers/char/ipmi/ipmi_si_intf.c unsigned char msg[2]; msg 1342 drivers/char/ipmi/ipmi_si_intf.c msg[0] = IPMI_NETFN_APP_REQUEST << 2; msg 1343 drivers/char/ipmi/ipmi_si_intf.c msg[1] = IPMI_GET_DEVICE_ID_CMD; msg 1344 drivers/char/ipmi/ipmi_si_intf.c smi_info->handlers->start_transaction(smi_info->si_sm, msg, 2); msg 1364 drivers/char/ipmi/ipmi_si_intf.c unsigned char msg[3]; msg 1373 drivers/char/ipmi/ipmi_si_intf.c msg[0] = IPMI_NETFN_APP_REQUEST << 2; msg 1374 drivers/char/ipmi/ipmi_si_intf.c msg[1] = IPMI_GET_BMC_GLOBAL_ENABLES_CMD; msg 1375 drivers/char/ipmi/ipmi_si_intf.c smi_info->handlers->start_transaction(smi_info->si_sm, msg, 2); msg 1411 drivers/char/ipmi/ipmi_si_intf.c unsigned char msg[3]; msg 1420 drivers/char/ipmi/ipmi_si_intf.c msg[0] = IPMI_NETFN_APP_REQUEST << 2; msg 1421 drivers/char/ipmi/ipmi_si_intf.c msg[1] = IPMI_SET_BMC_GLOBAL_ENABLES_CMD; msg 1422 drivers/char/ipmi/ipmi_si_intf.c msg[2] = enables; msg 1423 drivers/char/ipmi/ipmi_si_intf.c smi_info->handlers->start_transaction(smi_info->si_sm, msg, 3); msg 1530 drivers/char/ipmi/ipmi_si_intf.c unsigned char msg[3]; msg 1539 drivers/char/ipmi/ipmi_si_intf.c msg[0] = IPMI_NETFN_APP_REQUEST << 2; msg 1540 drivers/char/ipmi/ipmi_si_intf.c msg[1] = IPMI_GET_BMC_GLOBAL_ENABLES_CMD; msg 1541 drivers/char/ipmi/ipmi_si_intf.c smi_info->handlers->start_transaction(smi_info->si_sm, msg, 2); msg 1567 drivers/char/ipmi/ipmi_si_intf.c msg[0] = IPMI_NETFN_APP_REQUEST << 2; msg 1568 drivers/char/ipmi/ipmi_si_intf.c msg[1] = IPMI_SET_BMC_GLOBAL_ENABLES_CMD; msg 1569 drivers/char/ipmi/ipmi_si_intf.c msg[2] = resp[3] | IPMI_BMC_EVT_MSG_BUFF; msg 1570 drivers/char/ipmi/ipmi_si_intf.c smi_info->handlers->start_transaction(smi_info->si_sm, msg, 3); msg 1753 drivers/char/ipmi/ipmi_si_intf.c struct ipmi_smi_msg *msg = smi_info->curr_msg; msg 1756 drivers/char/ipmi/ipmi_si_intf.c msg->rsp[0] = msg->data[0] | 4; msg 1757 drivers/char/ipmi/ipmi_si_intf.c msg->rsp[1] = msg->data[1]; msg 1758 drivers/char/ipmi/ipmi_si_intf.c msg->rsp[2] = CANNOT_RETURN_REQUESTED_LENGTH; msg 1759 drivers/char/ipmi/ipmi_si_intf.c msg->rsp_size = 3; msg 1761 drivers/char/ipmi/ipmi_si_intf.c deliver_recv_msg(smi_info, msg); msg 308 drivers/char/ipmi/ipmi_ssif.c struct ipmi_smi_msg *msg); msg 328 drivers/char/ipmi/ipmi_ssif.c struct ipmi_smi_msg *msg) msg 330 drivers/char/ipmi/ipmi_ssif.c if (msg->rsp_size < 0) { msg 331 drivers/char/ipmi/ipmi_ssif.c return_hosed_msg(ssif_info, msg); msg 334 drivers/char/ipmi/ipmi_ssif.c __func__, msg->rsp_size); msg 336 drivers/char/ipmi/ipmi_ssif.c ipmi_smi_msg_received(ssif_info->intf, msg); msg 341 drivers/char/ipmi/ipmi_ssif.c struct ipmi_smi_msg *msg) msg 346 drivers/char/ipmi/ipmi_ssif.c msg->rsp[0] = msg->data[0] | 4; msg 347 drivers/char/ipmi/ipmi_ssif.c msg->rsp[1] = msg->data[1]; msg 348 drivers/char/ipmi/ipmi_ssif.c msg->rsp[2] = 0xFF; /* Unknown error. */ msg 349 drivers/char/ipmi/ipmi_ssif.c msg->rsp_size = 3; msg 351 drivers/char/ipmi/ipmi_ssif.c deliver_recv_msg(ssif_info, msg); msg 362 drivers/char/ipmi/ipmi_ssif.c unsigned char msg[3]; msg 369 drivers/char/ipmi/ipmi_ssif.c msg[0] = (IPMI_NETFN_APP_REQUEST << 2); msg 370 drivers/char/ipmi/ipmi_ssif.c msg[1] = IPMI_CLEAR_MSG_FLAGS_CMD; msg 371 drivers/char/ipmi/ipmi_ssif.c msg[2] = WDT_PRE_TIMEOUT_INT; msg 373 drivers/char/ipmi/ipmi_ssif.c if (start_send(ssif_info, msg, 3) != 0) { msg 394 drivers/char/ipmi/ipmi_ssif.c struct ipmi_smi_msg *msg) msg 396 drivers/char/ipmi/ipmi_ssif.c if (start_send(ssif_info, msg->data, msg->data_size) != 0) { msg 403 drivers/char/ipmi/ipmi_ssif.c ipmi_free_smi_msg(msg); msg 409 drivers/char/ipmi/ipmi_ssif.c struct ipmi_smi_msg *msg; msg 413 drivers/char/ipmi/ipmi_ssif.c msg = ipmi_alloc_smi_msg(); msg 414 drivers/char/ipmi/ipmi_ssif.c if (!msg) { msg 420 drivers/char/ipmi/ipmi_ssif.c ssif_info->curr_msg = msg; msg 424 drivers/char/ipmi/ipmi_ssif.c msg->data[0] = (IPMI_NETFN_APP_REQUEST << 2); msg 425 drivers/char/ipmi/ipmi_ssif.c msg->data[1] = IPMI_READ_EVENT_MSG_BUFFER_CMD; msg 426 drivers/char/ipmi/ipmi_ssif.c msg->data_size = 2; msg 428 drivers/char/ipmi/ipmi_ssif.c check_start_send(ssif_info, flags, msg); msg 434 drivers/char/ipmi/ipmi_ssif.c struct ipmi_smi_msg *msg; msg 436 drivers/char/ipmi/ipmi_ssif.c msg = ipmi_alloc_smi_msg(); msg 437 drivers/char/ipmi/ipmi_ssif.c if (!msg) { msg 443 drivers/char/ipmi/ipmi_ssif.c ssif_info->curr_msg = msg; msg 447 drivers/char/ipmi/ipmi_ssif.c msg->data[0] = (IPMI_NETFN_APP_REQUEST << 2); msg 448 drivers/char/ipmi/ipmi_ssif.c msg->data[1] = IPMI_GET_MSG_CMD; msg 449 drivers/char/ipmi/ipmi_ssif.c msg->data_size = 2; msg 451 drivers/char/ipmi/ipmi_ssif.c check_start_send(ssif_info, flags, msg); msg 626 drivers/char/ipmi/ipmi_ssif.c struct ipmi_smi_msg *msg; msg 776 drivers/char/ipmi/ipmi_ssif.c msg = ssif_info->curr_msg; msg 777 drivers/char/ipmi/ipmi_ssif.c if (msg) { msg 781 drivers/char/ipmi/ipmi_ssif.c memcpy(msg->rsp, data, len); msg 785 drivers/char/ipmi/ipmi_ssif.c msg->rsp_size = len; msg 792 drivers/char/ipmi/ipmi_ssif.c if (!msg) msg 796 drivers/char/ipmi/ipmi_ssif.c return_hosed_msg(ssif_info, msg); msg 798 drivers/char/ipmi/ipmi_ssif.c deliver_recv_msg(ssif_info, msg); msg 848 drivers/char/ipmi/ipmi_ssif.c if ((result < 0) || (len < 3) || (msg->rsp[2] != 0)) { msg 850 drivers/char/ipmi/ipmi_ssif.c msg->done(msg); msg 855 drivers/char/ipmi/ipmi_ssif.c } else if (msg->rsp[0] != (IPMI_NETFN_APP_REQUEST | 1) << 2 msg 856 drivers/char/ipmi/ipmi_ssif.c || msg->rsp[1] != IPMI_READ_EVENT_MSG_BUFFER_CMD) { msg 859 drivers/char/ipmi/ipmi_ssif.c msg->rsp[0], msg->rsp[1]); msg 860 drivers/char/ipmi/ipmi_ssif.c msg->done(msg); msg 867 drivers/char/ipmi/ipmi_ssif.c deliver_recv_msg(ssif_info, msg); msg 872 drivers/char/ipmi/ipmi_ssif.c if ((result < 0) || (len < 3) || (msg->rsp[2] != 0)) { msg 874 drivers/char/ipmi/ipmi_ssif.c msg->done(msg); msg 879 drivers/char/ipmi/ipmi_ssif.c } else if (msg->rsp[0] != (IPMI_NETFN_APP_REQUEST | 1) << 2 msg 880 drivers/char/ipmi/ipmi_ssif.c || msg->rsp[1] != IPMI_GET_MSG_CMD) { msg 883 drivers/char/ipmi/ipmi_ssif.c msg->rsp[0], msg->rsp[1]); msg 884 drivers/char/ipmi/ipmi_ssif.c msg->done(msg); msg 892 drivers/char/ipmi/ipmi_ssif.c deliver_recv_msg(ssif_info, msg); msg 1068 drivers/char/ipmi/ipmi_ssif.c struct ipmi_smi_msg *msg; msg 1090 drivers/char/ipmi/ipmi_ssif.c msg = ssif_info->curr_msg; msg 1092 drivers/char/ipmi/ipmi_ssif.c return_hosed_msg(ssif_info, msg); msg 1100 drivers/char/ipmi/ipmi_ssif.c struct ipmi_smi_msg *msg) msg 1106 drivers/char/ipmi/ipmi_ssif.c ssif_info->waiting_msg = msg; msg 1117 drivers/char/ipmi/ipmi_ssif.c msg->data[0], msg->data[1], msg 1351 drivers/char/ipmi/ipmi_ssif.c static int do_cmd(struct i2c_client *client, int len, unsigned char *msg, msg 1359 drivers/char/ipmi/ipmi_ssif.c ret = i2c_smbus_write_block_data(client, SSIF_IPMI_REQUEST, len, msg); msg 1371 drivers/char/ipmi/ipmi_ssif.c (resp[0] != (msg[0] | (1 << 2))) || msg 1372 drivers/char/ipmi/ipmi_ssif.c (resp[1] != msg[1])) msg 1388 drivers/char/ipmi/ipmi_ssif.c unsigned char msg[3]; msg 1397 drivers/char/ipmi/ipmi_ssif.c msg[0] = IPMI_NETFN_APP_REQUEST << 2; msg 1398 drivers/char/ipmi/ipmi_ssif.c msg[1] = IPMI_GET_DEVICE_ID_CMD; msg 1399 drivers/char/ipmi/ipmi_ssif.c rv = do_cmd(client, 2, msg, &len, resp); msg 1493 drivers/char/ipmi/ipmi_ssif.c unsigned char *msg, bool do_middle) msg 1500 drivers/char/ipmi/ipmi_ssif.c 32, msg); msg 1514 drivers/char/ipmi/ipmi_ssif.c 32, msg + 32); msg 1527 drivers/char/ipmi/ipmi_ssif.c unsigned char msg[65]; msg 1536 drivers/char/ipmi/ipmi_ssif.c memset(msg, 0, sizeof(msg)); msg 1537 drivers/char/ipmi/ipmi_ssif.c msg[0] = IPMI_NETFN_APP_REQUEST << 2; msg 1538 drivers/char/ipmi/ipmi_ssif.c msg[1] = IPMI_GET_DEVICE_ID_CMD; msg 1565 drivers/char/ipmi/ipmi_ssif.c ret = start_multipart_test(client, msg, do_middle); msg 1571 drivers/char/ipmi/ipmi_ssif.c 1, msg + 64); msg 1582 drivers/char/ipmi/ipmi_ssif.c ret = start_multipart_test(client, msg, do_middle); msg 1590 drivers/char/ipmi/ipmi_ssif.c 0, msg + 64); msg 1669 drivers/char/ipmi/ipmi_ssif.c unsigned char msg[3]; msg 1731 drivers/char/ipmi/ipmi_ssif.c msg[0] = IPMI_NETFN_APP_REQUEST << 2; msg 1732 drivers/char/ipmi/ipmi_ssif.c msg[1] = IPMI_GET_SYSTEM_INTERFACE_CAPABILITIES_CMD; msg 1733 drivers/char/ipmi/ipmi_ssif.c msg[2] = 0; /* SSIF */ msg 1734 drivers/char/ipmi/ipmi_ssif.c rv = do_cmd(client, 3, msg, &len, resp); msg 1789 drivers/char/ipmi/ipmi_ssif.c msg[0] = IPMI_NETFN_APP_REQUEST << 2; msg 1790 drivers/char/ipmi/ipmi_ssif.c msg[1] = IPMI_CLEAR_MSG_FLAGS_CMD; msg 1791 drivers/char/ipmi/ipmi_ssif.c msg[2] = WDT_PRE_TIMEOUT_INT; msg 1792 drivers/char/ipmi/ipmi_ssif.c rv = do_cmd(client, 3, msg, &len, resp); msg 1799 drivers/char/ipmi/ipmi_ssif.c msg[0] = IPMI_NETFN_APP_REQUEST << 2; msg 1800 drivers/char/ipmi/ipmi_ssif.c msg[1] = IPMI_GET_BMC_GLOBAL_ENABLES_CMD; msg 1801 drivers/char/ipmi/ipmi_ssif.c rv = do_cmd(client, 2, msg, &len, resp); msg 1818 drivers/char/ipmi/ipmi_ssif.c msg[0] = IPMI_NETFN_APP_REQUEST << 2; msg 1819 drivers/char/ipmi/ipmi_ssif.c msg[1] = IPMI_SET_BMC_GLOBAL_ENABLES_CMD; msg 1820 drivers/char/ipmi/ipmi_ssif.c msg[2] = ssif_info->global_enables | IPMI_BMC_EVT_MSG_BUFF; msg 1821 drivers/char/ipmi/ipmi_ssif.c rv = do_cmd(client, 3, msg, &len, resp); msg 1840 drivers/char/ipmi/ipmi_ssif.c msg[0] = IPMI_NETFN_APP_REQUEST << 2; msg 1841 drivers/char/ipmi/ipmi_ssif.c msg[1] = IPMI_SET_BMC_GLOBAL_ENABLES_CMD; msg 1842 drivers/char/ipmi/ipmi_ssif.c msg[2] = ssif_info->global_enables | IPMI_BMC_RCV_MSG_INTR; msg 1843 drivers/char/ipmi/ipmi_ssif.c rv = do_cmd(client, 3, msg, &len, resp); msg 338 drivers/char/ipmi/ipmi_watchdog.c static void msg_free_smi(struct ipmi_smi_msg *msg) msg 343 drivers/char/ipmi/ipmi_watchdog.c static void msg_free_recv(struct ipmi_recv_msg *msg) msg 359 drivers/char/ipmi/ipmi_watchdog.c struct kernel_ipmi_msg msg; msg 397 drivers/char/ipmi/ipmi_watchdog.c msg.netfn = 0x06; msg 398 drivers/char/ipmi/ipmi_watchdog.c msg.cmd = IPMI_WDOG_SET_TIMER; msg 399 drivers/char/ipmi/ipmi_watchdog.c msg.data = data; msg 400 drivers/char/ipmi/ipmi_watchdog.c msg.data_len = sizeof(data); msg 404 drivers/char/ipmi/ipmi_watchdog.c &msg, msg 456 drivers/char/ipmi/ipmi_watchdog.c static void panic_smi_free(struct ipmi_smi_msg *msg) msg 460 drivers/char/ipmi/ipmi_watchdog.c static void panic_recv_free(struct ipmi_recv_msg *msg) msg 474 drivers/char/ipmi/ipmi_watchdog.c struct kernel_ipmi_msg msg; msg 489 drivers/char/ipmi/ipmi_watchdog.c msg.netfn = 0x06; msg 490 drivers/char/ipmi/ipmi_watchdog.c msg.cmd = IPMI_WDOG_RESET_TIMER; msg 491 drivers/char/ipmi/ipmi_watchdog.c msg.data = NULL; msg 492 drivers/char/ipmi/ipmi_watchdog.c msg.data_len = 0; msg 497 drivers/char/ipmi/ipmi_watchdog.c &msg, msg 544 drivers/char/ipmi/ipmi_watchdog.c struct kernel_ipmi_msg msg; msg 563 drivers/char/ipmi/ipmi_watchdog.c msg.netfn = 0x06; msg 564 drivers/char/ipmi/ipmi_watchdog.c msg.cmd = IPMI_WDOG_RESET_TIMER; msg 565 drivers/char/ipmi/ipmi_watchdog.c msg.data = NULL; msg 566 drivers/char/ipmi/ipmi_watchdog.c msg.data_len = 0; msg 570 drivers/char/ipmi/ipmi_watchdog.c &msg, msg 583 drivers/char/ipmi/ipmi_watchdog.c if (recv_msg.msg.data[0] == IPMI_WDOG_TIMER_NOT_INIT_RESP) { msg 607 drivers/char/ipmi/ipmi_watchdog.c } else if (recv_msg.msg.data[0] != 0) { msg 908 drivers/char/ipmi/ipmi_watchdog.c static void ipmi_wdog_msg_handler(struct ipmi_recv_msg *msg, msg 911 drivers/char/ipmi/ipmi_watchdog.c if (msg->msg.cmd == IPMI_WDOG_RESET_TIMER && msg 912 drivers/char/ipmi/ipmi_watchdog.c msg->msg.data[0] == IPMI_WDOG_TIMER_NOT_INIT_RESP) msg 914 drivers/char/ipmi/ipmi_watchdog.c else if (msg->msg.data[0] != 0) msg 916 drivers/char/ipmi/ipmi_watchdog.c msg->msg.data[0], msg 917 drivers/char/ipmi/ipmi_watchdog.c msg->msg.cmd); msg 919 drivers/char/ipmi/ipmi_watchdog.c ipmi_free_recv_msg(msg); msg 52 drivers/char/powernv-op-panel.c struct opal_msg msg; msg 66 drivers/char/powernv-op-panel.c rc = opal_async_wait_response(token, &msg); msg 72 drivers/char/powernv-op-panel.c rc = opal_get_async_rc(msg); msg 87 drivers/char/tpm/tpm_ibmvtpm.c u8 valid, u8 msg, u16 len, u32 data) msg 89 drivers/char/tpm/tpm_ibmvtpm.c u64 w1 = ((u64)valid << 56) | ((u64)msg << 48) | ((u64)len << 32) | msg 506 drivers/char/tpm/tpm_ibmvtpm.c switch (crq->msg) { msg 518 drivers/char/tpm/tpm_ibmvtpm.c dev_err(ibmvtpm->dev, "Unknown crq message type: %d\n", crq->msg); msg 522 drivers/char/tpm/tpm_ibmvtpm.c switch (crq->msg) { msg 19 drivers/char/tpm/tpm_ibmvtpm.h u8 msg; msg 70 drivers/clk/bcm/clk-raspberrypi.c struct raspberrypi_firmware_prop msg = { msg 77 drivers/clk/bcm/clk-raspberrypi.c ret = rpi_firmware_property(firmware, tag, &msg, sizeof(msg)); msg 81 drivers/clk/bcm/clk-raspberrypi.c *val = le32_to_cpu(msg.val); msg 1472 drivers/clk/clk.c static int __clk_notify(struct clk_core *core, unsigned long msg, msg 1485 drivers/clk/clk.c ret = srcu_notifier_call_chain(&cn->notifier_head, msg, msg 1580 drivers/clk/clk.c static void __clk_recalc_rates(struct clk_core *core, unsigned long msg) msg 1599 drivers/clk/clk.c if (core->notifier_count && msg) msg 1600 drivers/clk/clk.c __clk_notify(core, msg, old_rate, core->rate); msg 1603 drivers/clk/clk.c __clk_recalc_rates(child, msg); msg 50 drivers/clk/hisilicon/clk-hi3660-stub.c unsigned int msg[8]; msg 85 drivers/clk/hisilicon/clk-hi3660-stub.c stub_clk->msg[0] = stub_clk->cmd; msg 86 drivers/clk/hisilicon/clk-hi3660-stub.c stub_clk->msg[1] = rate / MHZ; msg 89 drivers/clk/hisilicon/clk-hi3660-stub.c stub_clk->msg[0], stub_clk->msg[1]); msg 91 drivers/clk/hisilicon/clk-hi3660-stub.c mbox_send_message(stub_clk_chan.mbox, stub_clk->msg); msg 64 drivers/clk/hisilicon/clk-hi6220-stub.c struct hi6220_mbox_msg msg; msg 84 drivers/clk/hisilicon/clk-hi6220-stub.c data.msg.type = HI6220_MBOX_FREQ; msg 85 drivers/clk/hisilicon/clk-hi6220-stub.c data.msg.cmd = HI6220_MBOX_CMD_SET; msg 86 drivers/clk/hisilicon/clk-hi6220-stub.c data.msg.obj = HI6220_MBOX_OBJ_AP; msg 87 drivers/clk/hisilicon/clk-hi6220-stub.c data.msg.src = HI6220_MBOX_OBJ_AP; msg 148 drivers/clk/imx/clk-scu.c struct imx_sc_msg_get_clock_rate msg; msg 149 drivers/clk/imx/clk-scu.c struct imx_sc_rpc_msg *hdr = &msg.hdr; msg 157 drivers/clk/imx/clk-scu.c msg.data.req.resource = cpu_to_le16(clk->rsrc_id); msg 158 drivers/clk/imx/clk-scu.c msg.data.req.clk = clk->clk_type; msg 160 drivers/clk/imx/clk-scu.c ret = imx_scu_call_rpc(ccm_ipc_handle, &msg, true); msg 167 drivers/clk/imx/clk-scu.c return le32_to_cpu(msg.data.resp.rate); msg 220 drivers/clk/imx/clk-scu.c struct imx_sc_msg_req_set_clock_rate msg; msg 221 drivers/clk/imx/clk-scu.c struct imx_sc_rpc_msg *hdr = &msg.hdr; msg 228 drivers/clk/imx/clk-scu.c msg.rate = cpu_to_le32(rate); msg 229 drivers/clk/imx/clk-scu.c msg.resource = cpu_to_le16(clk->rsrc_id); msg 230 drivers/clk/imx/clk-scu.c msg.clk = clk->clk_type; msg 232 drivers/clk/imx/clk-scu.c return imx_scu_call_rpc(ccm_ipc_handle, &msg, true); msg 238 drivers/clk/imx/clk-scu.c struct imx_sc_msg_get_clock_parent msg; msg 239 drivers/clk/imx/clk-scu.c struct imx_sc_rpc_msg *hdr = &msg.hdr; msg 247 drivers/clk/imx/clk-scu.c msg.data.req.resource = cpu_to_le16(clk->rsrc_id); msg 248 drivers/clk/imx/clk-scu.c msg.data.req.clk = clk->clk_type; msg 250 drivers/clk/imx/clk-scu.c ret = imx_scu_call_rpc(ccm_ipc_handle, &msg, true); msg 257 drivers/clk/imx/clk-scu.c return msg.data.resp.parent; msg 263 drivers/clk/imx/clk-scu.c struct imx_sc_msg_set_clock_parent msg; msg 264 drivers/clk/imx/clk-scu.c struct imx_sc_rpc_msg *hdr = &msg.hdr; msg 271 drivers/clk/imx/clk-scu.c msg.resource = cpu_to_le16(clk->rsrc_id); msg 272 drivers/clk/imx/clk-scu.c msg.clk = clk->clk_type; msg 273 drivers/clk/imx/clk-scu.c msg.parent = index; msg 275 drivers/clk/imx/clk-scu.c return imx_scu_call_rpc(ccm_ipc_handle, &msg, true); msg 281 drivers/clk/imx/clk-scu.c struct imx_sc_msg_req_clock_enable msg; msg 282 drivers/clk/imx/clk-scu.c struct imx_sc_rpc_msg *hdr = &msg.hdr; msg 289 drivers/clk/imx/clk-scu.c msg.resource = cpu_to_le16(resource); msg 290 drivers/clk/imx/clk-scu.c msg.clk = clk; msg 291 drivers/clk/imx/clk-scu.c msg.enable = enable; msg 292 drivers/clk/imx/clk-scu.c msg.autog = autog; msg 294 drivers/clk/imx/clk-scu.c return imx_scu_call_rpc(ccm_ipc_handle, &msg, true); msg 63 drivers/clk/tegra/clk-bpmp.c struct tegra_bpmp_message msg; msg 79 drivers/clk/tegra/clk-bpmp.c memset(&msg, 0, sizeof(msg)); msg 80 drivers/clk/tegra/clk-bpmp.c msg.mrq = MRQ_CLK; msg 81 drivers/clk/tegra/clk-bpmp.c msg.tx.data = &request; msg 82 drivers/clk/tegra/clk-bpmp.c msg.tx.size = sizeof(request); msg 83 drivers/clk/tegra/clk-bpmp.c msg.rx.data = clk->rx.data; msg 84 drivers/clk/tegra/clk-bpmp.c msg.rx.size = clk->rx.size; msg 86 drivers/clk/tegra/clk-bpmp.c err = tegra_bpmp_transfer(bpmp, &msg); msg 89 drivers/clk/tegra/clk-bpmp.c else if (msg.rx.ret < 0) msg 98 drivers/clk/tegra/clk-bpmp.c struct tegra_bpmp_clk_message msg; msg 100 drivers/clk/tegra/clk-bpmp.c memset(&msg, 0, sizeof(msg)); msg 101 drivers/clk/tegra/clk-bpmp.c msg.cmd = CMD_CLK_ENABLE; msg 102 drivers/clk/tegra/clk-bpmp.c msg.id = clk->id; msg 104 drivers/clk/tegra/clk-bpmp.c return tegra_bpmp_clk_transfer(clk->bpmp, &msg); msg 110 drivers/clk/tegra/clk-bpmp.c struct tegra_bpmp_clk_message msg; msg 113 drivers/clk/tegra/clk-bpmp.c memset(&msg, 0, sizeof(msg)); msg 114 drivers/clk/tegra/clk-bpmp.c msg.cmd = CMD_CLK_DISABLE; msg 115 drivers/clk/tegra/clk-bpmp.c msg.id = clk->id; msg 117 drivers/clk/tegra/clk-bpmp.c err = tegra_bpmp_clk_transfer(clk->bpmp, &msg); msg 127 drivers/clk/tegra/clk-bpmp.c struct tegra_bpmp_clk_message msg; msg 130 drivers/clk/tegra/clk-bpmp.c memset(&msg, 0, sizeof(msg)); msg 131 drivers/clk/tegra/clk-bpmp.c msg.cmd = CMD_CLK_IS_ENABLED; msg 132 drivers/clk/tegra/clk-bpmp.c msg.id = clk->id; msg 133 drivers/clk/tegra/clk-bpmp.c msg.rx.data = &response; msg 134 drivers/clk/tegra/clk-bpmp.c msg.rx.size = sizeof(response); msg 136 drivers/clk/tegra/clk-bpmp.c err = tegra_bpmp_clk_transfer(clk->bpmp, &msg); msg 149 drivers/clk/tegra/clk-bpmp.c struct tegra_bpmp_clk_message msg; msg 152 drivers/clk/tegra/clk-bpmp.c memset(&msg, 0, sizeof(msg)); msg 153 drivers/clk/tegra/clk-bpmp.c msg.cmd = CMD_CLK_GET_RATE; msg 154 drivers/clk/tegra/clk-bpmp.c msg.id = clk->id; msg 155 drivers/clk/tegra/clk-bpmp.c msg.tx.data = &request; msg 156 drivers/clk/tegra/clk-bpmp.c msg.tx.size = sizeof(request); msg 157 drivers/clk/tegra/clk-bpmp.c msg.rx.data = &response; msg 158 drivers/clk/tegra/clk-bpmp.c msg.rx.size = sizeof(response); msg 160 drivers/clk/tegra/clk-bpmp.c err = tegra_bpmp_clk_transfer(clk->bpmp, &msg); msg 173 drivers/clk/tegra/clk-bpmp.c struct tegra_bpmp_clk_message msg; msg 179 drivers/clk/tegra/clk-bpmp.c memset(&msg, 0, sizeof(msg)); msg 180 drivers/clk/tegra/clk-bpmp.c msg.cmd = CMD_CLK_ROUND_RATE; msg 181 drivers/clk/tegra/clk-bpmp.c msg.id = clk->id; msg 182 drivers/clk/tegra/clk-bpmp.c msg.tx.data = &request; msg 183 drivers/clk/tegra/clk-bpmp.c msg.tx.size = sizeof(request); msg 184 drivers/clk/tegra/clk-bpmp.c msg.rx.data = &response; msg 185 drivers/clk/tegra/clk-bpmp.c msg.rx.size = sizeof(response); msg 187 drivers/clk/tegra/clk-bpmp.c err = tegra_bpmp_clk_transfer(clk->bpmp, &msg); msg 199 drivers/clk/tegra/clk-bpmp.c struct tegra_bpmp_clk_message msg; msg 205 drivers/clk/tegra/clk-bpmp.c memset(&msg, 0, sizeof(msg)); msg 206 drivers/clk/tegra/clk-bpmp.c msg.cmd = CMD_CLK_SET_PARENT; msg 207 drivers/clk/tegra/clk-bpmp.c msg.id = clk->id; msg 208 drivers/clk/tegra/clk-bpmp.c msg.tx.data = &request; msg 209 drivers/clk/tegra/clk-bpmp.c msg.tx.size = sizeof(request); msg 210 drivers/clk/tegra/clk-bpmp.c msg.rx.data = &response; msg 211 drivers/clk/tegra/clk-bpmp.c msg.rx.size = sizeof(response); msg 213 drivers/clk/tegra/clk-bpmp.c err = tegra_bpmp_clk_transfer(clk->bpmp, &msg); msg 226 drivers/clk/tegra/clk-bpmp.c struct tegra_bpmp_clk_message msg; msg 230 drivers/clk/tegra/clk-bpmp.c memset(&msg, 0, sizeof(msg)); msg 231 drivers/clk/tegra/clk-bpmp.c msg.cmd = CMD_CLK_GET_PARENT; msg 232 drivers/clk/tegra/clk-bpmp.c msg.id = clk->id; msg 233 drivers/clk/tegra/clk-bpmp.c msg.rx.data = &response; msg 234 drivers/clk/tegra/clk-bpmp.c msg.rx.size = sizeof(response); msg 236 drivers/clk/tegra/clk-bpmp.c err = tegra_bpmp_clk_transfer(clk->bpmp, &msg); msg 256 drivers/clk/tegra/clk-bpmp.c struct tegra_bpmp_clk_message msg; msg 261 drivers/clk/tegra/clk-bpmp.c memset(&msg, 0, sizeof(msg)); msg 262 drivers/clk/tegra/clk-bpmp.c msg.cmd = CMD_CLK_SET_RATE; msg 263 drivers/clk/tegra/clk-bpmp.c msg.id = clk->id; msg 264 drivers/clk/tegra/clk-bpmp.c msg.tx.data = &request; msg 265 drivers/clk/tegra/clk-bpmp.c msg.tx.size = sizeof(request); msg 266 drivers/clk/tegra/clk-bpmp.c msg.rx.data = &response; msg 267 drivers/clk/tegra/clk-bpmp.c msg.rx.size = sizeof(response); msg 269 drivers/clk/tegra/clk-bpmp.c return tegra_bpmp_clk_transfer(clk->bpmp, &msg); msg 311 drivers/clk/tegra/clk-bpmp.c struct tegra_bpmp_clk_message msg; msg 314 drivers/clk/tegra/clk-bpmp.c memset(&msg, 0, sizeof(msg)); msg 315 drivers/clk/tegra/clk-bpmp.c msg.cmd = CMD_CLK_GET_MAX_CLK_ID; msg 316 drivers/clk/tegra/clk-bpmp.c msg.rx.data = &response; msg 317 drivers/clk/tegra/clk-bpmp.c msg.rx.size = sizeof(response); msg 319 drivers/clk/tegra/clk-bpmp.c err = tegra_bpmp_clk_transfer(bpmp, &msg); msg 333 drivers/clk/tegra/clk-bpmp.c struct tegra_bpmp_clk_message msg; msg 337 drivers/clk/tegra/clk-bpmp.c memset(&msg, 0, sizeof(msg)); msg 338 drivers/clk/tegra/clk-bpmp.c msg.cmd = CMD_CLK_GET_ALL_INFO; msg 339 drivers/clk/tegra/clk-bpmp.c msg.id = id; msg 340 drivers/clk/tegra/clk-bpmp.c msg.rx.data = &response; msg 341 drivers/clk/tegra/clk-bpmp.c msg.rx.size = sizeof(response); msg 343 drivers/clk/tegra/clk-bpmp.c err = tegra_bpmp_clk_transfer(bpmp, &msg); msg 44 drivers/connector/cn_proc.c static inline void send_msg(struct cn_msg *msg) msg 48 drivers/connector/cn_proc.c msg->seq = __this_cpu_inc_return(proc_event_counts) - 1; msg 49 drivers/connector/cn_proc.c ((struct proc_event *)msg->data)->cpu = smp_processor_id(); msg 57 drivers/connector/cn_proc.c cn_netlink_send(msg, 0, CN_IDX_PROC, GFP_NOWAIT); msg 64 drivers/connector/cn_proc.c struct cn_msg *msg; msg 72 drivers/connector/cn_proc.c msg = buffer_to_cn_msg(buffer); msg 73 drivers/connector/cn_proc.c ev = (struct proc_event *)msg->data; msg 85 drivers/connector/cn_proc.c memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); msg 86 drivers/connector/cn_proc.c msg->ack = 0; /* not used */ msg 87 drivers/connector/cn_proc.c msg->len = sizeof(*ev); msg 88 drivers/connector/cn_proc.c msg->flags = 0; /* not used */ msg 89 drivers/connector/cn_proc.c send_msg(msg); msg 94 drivers/connector/cn_proc.c struct cn_msg *msg; msg 101 drivers/connector/cn_proc.c msg = buffer_to_cn_msg(buffer); msg 102 drivers/connector/cn_proc.c ev = (struct proc_event *)msg->data; msg 109 drivers/connector/cn_proc.c memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); msg 110 drivers/connector/cn_proc.c msg->ack = 0; /* not used */ msg 111 drivers/connector/cn_proc.c msg->len = sizeof(*ev); msg 112 drivers/connector/cn_proc.c msg->flags = 0; /* not used */ msg 113 drivers/connector/cn_proc.c send_msg(msg); msg 118 drivers/connector/cn_proc.c struct cn_msg *msg; msg 126 drivers/connector/cn_proc.c msg = buffer_to_cn_msg(buffer); msg 127 drivers/connector/cn_proc.c ev = (struct proc_event *)msg->data; msg 147 drivers/connector/cn_proc.c memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); msg 148 drivers/connector/cn_proc.c msg->ack = 0; /* not used */ msg 149 drivers/connector/cn_proc.c msg->len = sizeof(*ev); msg 150 drivers/connector/cn_proc.c msg->flags = 0; /* not used */ msg 151 drivers/connector/cn_proc.c send_msg(msg); msg 156 drivers/connector/cn_proc.c struct cn_msg *msg; msg 163 drivers/connector/cn_proc.c msg = buffer_to_cn_msg(buffer); msg 164 drivers/connector/cn_proc.c ev = (struct proc_event *)msg->data; msg 171 drivers/connector/cn_proc.c memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); msg 172 drivers/connector/cn_proc.c msg->ack = 0; /* not used */ msg 173 drivers/connector/cn_proc.c msg->len = sizeof(*ev); msg 174 drivers/connector/cn_proc.c msg->flags = 0; /* not used */ msg 175 drivers/connector/cn_proc.c send_msg(msg); msg 180 drivers/connector/cn_proc.c struct cn_msg *msg; msg 187 drivers/connector/cn_proc.c msg = buffer_to_cn_msg(buffer); msg 188 drivers/connector/cn_proc.c ev = (struct proc_event *)msg->data; msg 203 drivers/connector/cn_proc.c memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); msg 204 drivers/connector/cn_proc.c msg->ack = 0; /* not used */ msg 205 drivers/connector/cn_proc.c msg->len = sizeof(*ev); msg 206 drivers/connector/cn_proc.c msg->flags = 0; /* not used */ msg 207 drivers/connector/cn_proc.c send_msg(msg); msg 212 drivers/connector/cn_proc.c struct cn_msg *msg; msg 219 drivers/connector/cn_proc.c msg = buffer_to_cn_msg(buffer); msg 220 drivers/connector/cn_proc.c ev = (struct proc_event *)msg->data; msg 228 drivers/connector/cn_proc.c memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); msg 229 drivers/connector/cn_proc.c msg->ack = 0; /* not used */ msg 230 drivers/connector/cn_proc.c msg->len = sizeof(*ev); msg 231 drivers/connector/cn_proc.c msg->flags = 0; /* not used */ msg 232 drivers/connector/cn_proc.c send_msg(msg); msg 237 drivers/connector/cn_proc.c struct cn_msg *msg; msg 245 drivers/connector/cn_proc.c msg = buffer_to_cn_msg(buffer); msg 246 drivers/connector/cn_proc.c ev = (struct proc_event *)msg->data; msg 261 drivers/connector/cn_proc.c memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); msg 262 drivers/connector/cn_proc.c msg->ack = 0; /* not used */ msg 263 drivers/connector/cn_proc.c msg->len = sizeof(*ev); msg 264 drivers/connector/cn_proc.c msg->flags = 0; /* not used */ msg 265 drivers/connector/cn_proc.c send_msg(msg); msg 270 drivers/connector/cn_proc.c struct cn_msg *msg; msg 278 drivers/connector/cn_proc.c msg = buffer_to_cn_msg(buffer); msg 279 drivers/connector/cn_proc.c ev = (struct proc_event *)msg->data; msg 296 drivers/connector/cn_proc.c memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); msg 297 drivers/connector/cn_proc.c msg->ack = 0; /* not used */ msg 298 drivers/connector/cn_proc.c msg->len = sizeof(*ev); msg 299 drivers/connector/cn_proc.c msg->flags = 0; /* not used */ msg 300 drivers/connector/cn_proc.c send_msg(msg); msg 313 drivers/connector/cn_proc.c struct cn_msg *msg; msg 320 drivers/connector/cn_proc.c msg = buffer_to_cn_msg(buffer); msg 321 drivers/connector/cn_proc.c ev = (struct proc_event *)msg->data; msg 323 drivers/connector/cn_proc.c msg->seq = rcvd_seq; msg 328 drivers/connector/cn_proc.c memcpy(&msg->id, &cn_proc_event_id, sizeof(msg->id)); msg 329 drivers/connector/cn_proc.c msg->ack = rcvd_ack + 1; msg 330 drivers/connector/cn_proc.c msg->len = sizeof(*ev); msg 331 drivers/connector/cn_proc.c msg->flags = 0; /* not used */ msg 332 drivers/connector/cn_proc.c send_msg(msg); msg 339 drivers/connector/cn_proc.c static void cn_proc_mcast_ctl(struct cn_msg *msg, msg 345 drivers/connector/cn_proc.c if (msg->len != sizeof(*mc_op)) msg 363 drivers/connector/cn_proc.c mc_op = (enum proc_cn_mcast_op *)msg->data; msg 377 drivers/connector/cn_proc.c cn_proc_ack(err, msg->seq, msg->ack); msg 61 drivers/connector/connector.c int cn_netlink_send_mult(struct cn_msg *msg, u16 len, u32 portid, u32 __group, msg 79 drivers/connector/connector.c if (cn_cb_equal(&__cbq->id.id, &msg->id)) { msg 94 drivers/connector/connector.c size = sizeof(*msg) + len; msg 100 drivers/connector/connector.c nlh = nlmsg_put(skb, 0, msg->seq, NLMSG_DONE, size, 0); msg 108 drivers/connector/connector.c memcpy(data, msg, size); msg 121 drivers/connector/connector.c int cn_netlink_send(struct cn_msg *msg, u32 portid, u32 __group, msg 124 drivers/connector/connector.c return cn_netlink_send_mult(msg, msg->len, portid, __group, gfp_mask); msg 136 drivers/connector/connector.c struct cn_msg *msg = nlmsg_data(nlmsg_hdr(skb)); msg 142 drivers/connector/connector.c if (nlh->nlmsg_len < NLMSG_HDRLEN + sizeof(struct cn_msg) + msg->len) msg 147 drivers/connector/connector.c if (cn_cb_equal(&i->id.id, &msg->id)) { msg 156 drivers/connector/connector.c cbq->callback(msg, nsp); msg 28 drivers/cpufreq/highbank-cpufreq.c u32 msg[HB_CPUFREQ_IPC_LEN] = {HB_CPUFREQ_CHANGE_NOTE, freq / 1000000}; msg 30 drivers/cpufreq/highbank-cpufreq.c return pl320_ipc_transmit(msg); msg 933 drivers/cpufreq/powernv-cpufreq.c struct opal_msg *msg = _msg; msg 940 drivers/cpufreq/powernv-cpufreq.c omsg.type = be64_to_cpu(msg->params[0]); msg 963 drivers/cpufreq/powernv-cpufreq.c omsg.chip = be64_to_cpu(msg->params[1]); msg 964 drivers/cpufreq/powernv-cpufreq.c omsg.throttle_status = be64_to_cpu(msg->params[2]); msg 109 drivers/cpufreq/tegra186-cpufreq.c struct tegra_bpmp_message msg; msg 126 drivers/cpufreq/tegra186-cpufreq.c memset(&msg, 0, sizeof(msg)); msg 127 drivers/cpufreq/tegra186-cpufreq.c msg.mrq = MRQ_CPU_VHINT; msg 128 drivers/cpufreq/tegra186-cpufreq.c msg.tx.data = &req; msg 129 drivers/cpufreq/tegra186-cpufreq.c msg.tx.size = sizeof(req); msg 131 drivers/cpufreq/tegra186-cpufreq.c err = tegra_bpmp_transfer(bpmp, &msg); msg 1662 drivers/crypto/bcm/cipher.c static void spu_rx_callback(struct mbox_client *cl, void *msg) msg 1665 drivers/crypto/bcm/cipher.c struct brcm_message *mssg = msg; msg 27 drivers/crypto/bcm/util.h #define flow_dump(msg, var, var_len) \ msg 30 drivers/crypto/bcm/util.h print_hex_dump(KERN_ALERT, msg, DUMP_PREFIX_NONE, \ msg 45 drivers/crypto/bcm/util.h #define packet_dump(msg, var, var_len) \ msg 48 drivers/crypto/bcm/util.h print_hex_dump(KERN_ALERT, msg, DUMP_PREFIX_NONE, \ msg 62 drivers/crypto/bcm/util.h #define flow_dump(msg, var, var_len) do {} while (0) msg 64 drivers/crypto/bcm/util.h #define packet_dump(msg, var, var_len) do {} while (0) msg 142 drivers/crypto/caam/qi.c const union qm_mr_entry *msg) msg 149 drivers/crypto/caam/qi.c fd = &msg->ern.fd; msg 138 drivers/crypto/cavium/cpt/cpt_common.h u64 msg; /* Message type MBOX[0] */ msg 14 drivers/crypto/cavium/cpt/cptpf_mbox.c cpt_write_csr64(cpt->reg_base, CPTX_PF_VFX_MBOXX(0, vf, 0), mbx->msg); msg 24 drivers/crypto/cavium/cpt/cptpf_mbox.c mbx->msg = CPT_MBOX_MSG_TYPE_ACK; msg 96 drivers/crypto/cavium/cpt/cptpf_mbox.c mbx.msg = cpt_read_csr64(cpt->reg_base, CPTX_PF_VFX_MBOXX(0, vf, 0)); msg 98 drivers/crypto/cavium/cpt/cptpf_mbox.c dev_dbg(dev, "%s: Mailbox msg 0x%llx from VF%d", __func__, mbx.msg, vf); msg 99 drivers/crypto/cavium/cpt/cptpf_mbox.c switch (mbx.msg) { msg 106 drivers/crypto/cavium/cpt/cptpf_mbox.c mbx.msg = CPT_MSG_READY; msg 129 drivers/crypto/cavium/cpt/cptpf_mbox.c mbx.msg = CPT_MSG_QBIND_GRP; msg 141 drivers/crypto/cavium/cpt/cptpf_mbox.c vf, mbx.msg); msg 12 drivers/crypto/cavium/cpt/cptvf_mbox.c mbx->msg); msg 26 drivers/crypto/cavium/cpt/cptvf_mbox.c mbx.msg = cpt_read_csr64(cptvf->reg_base, CPTX_VFX_PF_MBOXX(0, 0, 0)); msg 29 drivers/crypto/cavium/cpt/cptvf_mbox.c __func__, mbx.msg); msg 30 drivers/crypto/cavium/cpt/cptvf_mbox.c switch (mbx.msg) { msg 53 drivers/crypto/cavium/cpt/cptvf_mbox.c mbx.msg); msg 77 drivers/crypto/cavium/cpt/cptvf_mbox.c (mbx->msg & 0xFF), cptvf->vfid); msg 94 drivers/crypto/cavium/cpt/cptvf_mbox.c mbx.msg = CPT_MSG_READY; msg 112 drivers/crypto/cavium/cpt/cptvf_mbox.c mbx.msg = CPT_MSG_QLEN; msg 130 drivers/crypto/cavium/cpt/cptvf_mbox.c mbx.msg = CPT_MSG_QBIND_GRP; msg 149 drivers/crypto/cavium/cpt/cptvf_mbox.c mbx.msg = CPT_MSG_VQ_PRIORITY; msg 167 drivers/crypto/cavium/cpt/cptvf_mbox.c mbx.msg = CPT_MSG_VF_UP; msg 184 drivers/crypto/cavium/cpt/cptvf_mbox.c mbx.msg = CPT_MSG_VF_DOWN; msg 147 drivers/crypto/cavium/nitrox/nitrox_dev.h union mbox_msg msg; msg 56 drivers/crypto/cavium/nitrox/nitrox_mbx.c union mbox_msg msg; msg 58 drivers/crypto/cavium/nitrox/nitrox_mbx.c msg.value = vfdev->msg.value; msg 60 drivers/crypto/cavium/nitrox/nitrox_mbx.c switch (vfdev->msg.opcode) { msg 62 drivers/crypto/cavium/nitrox/nitrox_mbx.c msg.data = ndev->mode; msg 65 drivers/crypto/cavium/nitrox/nitrox_mbx.c vfdev->nr_queues = vfdev->msg.data; msg 69 drivers/crypto/cavium/nitrox/nitrox_mbx.c msg.id.chipid = ndev->idx; msg 70 drivers/crypto/cavium/nitrox/nitrox_mbx.c msg.id.vfid = vfdev->vfno; msg 77 drivers/crypto/cavium/nitrox/nitrox_mbx.c msg.type = MBX_MSG_TYPE_NOP; msg 81 drivers/crypto/cavium/nitrox/nitrox_mbx.c if (msg.type == MBX_MSG_TYPE_NOP) msg 85 drivers/crypto/cavium/nitrox/nitrox_mbx.c msg.type = MBX_MSG_TYPE_ACK; msg 86 drivers/crypto/cavium/nitrox/nitrox_mbx.c pf2vf_write_mbox(ndev, msg.value, vfdev->ring); msg 88 drivers/crypto/cavium/nitrox/nitrox_mbx.c vfdev->msg.value = 0; msg 99 drivers/crypto/cavium/nitrox/nitrox_mbx.c switch (vfdev->msg.type) { msg 129 drivers/crypto/cavium/nitrox/nitrox_mbx.c vfdev->msg.value = pf2vf_read_mbox(ndev, vfdev->ring); msg 151 drivers/crypto/cavium/nitrox/nitrox_mbx.c vfdev->msg.value = pf2vf_read_mbox(ndev, vfdev->ring); msg 474 drivers/crypto/chelsio/chtls/chtls.h int chtls_sendmsg(struct sock *sk, struct msghdr *msg, size_t size); msg 475 drivers/crypto/chelsio/chtls/chtls.h int chtls_recvmsg(struct sock *sk, struct msghdr *msg, msg 984 drivers/crypto/chelsio/chtls/chtls_io.c int chtls_sendmsg(struct sock *sk, struct msghdr *msg, size_t size) msg 996 drivers/crypto/chelsio/chtls/chtls_io.c flags = msg->msg_flags; msg 1013 drivers/crypto/chelsio/chtls/chtls_io.c while (msg_data_left(msg)) { msg 1027 drivers/crypto/chelsio/chtls/chtls_io.c recordsz = tls_header_read(&hdr, &msg->msg_iter); msg 1070 drivers/crypto/chelsio/chtls/chtls_io.c &msg->msg_iter, copy); msg 1124 drivers/crypto/chelsio/chtls/chtls_io.c err = chtls_skb_copy_to_page_nocache(sk, &msg->msg_iter, msg 1397 drivers/crypto/chelsio/chtls/chtls_io.c static int chtls_pt_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, msg 1524 drivers/crypto/chelsio/chtls/chtls_io.c if (skb_copy_datagram_msg(skb, offset, msg, avail)) { msg 1563 drivers/crypto/chelsio/chtls/chtls_io.c static int peekmsg(struct sock *sk, struct msghdr *msg, msg 1669 drivers/crypto/chelsio/chtls/chtls_io.c if (skb_copy_datagram_msg(skb, offset, msg, len)) { msg 1684 drivers/crypto/chelsio/chtls/chtls_io.c int chtls_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, msg 1698 drivers/crypto/chelsio/chtls/chtls_io.c return tcp_prot.recvmsg(sk, msg, len, nonblock, flags, msg 1702 drivers/crypto/chelsio/chtls/chtls_io.c return peekmsg(sk, msg, len, nonblock, flags); msg 1713 drivers/crypto/chelsio/chtls/chtls_io.c return chtls_pt_recvmsg(sk, msg, len, nonblock, msg 1827 drivers/crypto/chelsio/chtls/chtls_io.c msg, avail)) { msg 290 drivers/crypto/hisilicon/qm.c const char *msg; msg 294 drivers/crypto/hisilicon/qm.c { .int_msk = BIT(0), .msg = "qm_axi_rresp" }, msg 295 drivers/crypto/hisilicon/qm.c { .int_msk = BIT(1), .msg = "qm_axi_bresp" }, msg 296 drivers/crypto/hisilicon/qm.c { .int_msk = BIT(2), .msg = "qm_ecc_mbit" }, msg 297 drivers/crypto/hisilicon/qm.c { .int_msk = BIT(3), .msg = "qm_ecc_1bit" }, msg 298 drivers/crypto/hisilicon/qm.c { .int_msk = BIT(4), .msg = "qm_acc_get_task_timeout" }, msg 299 drivers/crypto/hisilicon/qm.c { .int_msk = BIT(5), .msg = "qm_acc_do_task_timeout" }, msg 300 drivers/crypto/hisilicon/qm.c { .int_msk = BIT(6), .msg = "qm_acc_wb_not_ready_timeout" }, msg 301 drivers/crypto/hisilicon/qm.c { .int_msk = BIT(7), .msg = "qm_sq_cq_vf_invalid" }, msg 302 drivers/crypto/hisilicon/qm.c { .int_msk = BIT(8), .msg = "qm_cq_vf_invalid" }, msg 303 drivers/crypto/hisilicon/qm.c { .int_msk = BIT(9), .msg = "qm_sq_vf_invalid" }, msg 304 drivers/crypto/hisilicon/qm.c { .int_msk = BIT(10), .msg = "qm_db_timeout" }, msg 305 drivers/crypto/hisilicon/qm.c { .int_msk = BIT(11), .msg = "qm_of_fifo_of" }, msg 306 drivers/crypto/hisilicon/qm.c { .int_msk = BIT(12), .msg = "qm_db_random_invalid" }, msg 579 drivers/crypto/hisilicon/qm.c while (err->msg) { msg 582 drivers/crypto/hisilicon/qm.c err->msg, err->int_msk); msg 1018 drivers/crypto/hisilicon/qm.c while (err->msg) { msg 1021 drivers/crypto/hisilicon/qm.c err->msg, err->int_msk); msg 1357 drivers/crypto/hisilicon/qm.c int hisi_qp_send(struct hisi_qp *qp, const void *msg) msg 1372 drivers/crypto/hisilicon/qm.c memcpy(sqe, msg, qp->qm->sqe_size); msg 206 drivers/crypto/hisilicon/qm.h int hisi_qp_send(struct hisi_qp *qp, const void *msg); msg 685 drivers/crypto/hisilicon/sec/sec_drv.c struct sec_bd_info *msg; msg 694 drivers/crypto/hisilicon/sec/sec_drv.c msg = msg_ring->vaddr + q_id; msg 696 drivers/crypto/hisilicon/sec/sec_drv.c while ((ooo_write != ooo_read) && msg->w0 & SEC_BD_W0_DONE) { msg 705 drivers/crypto/hisilicon/sec/sec_drv.c msg = msg_ring->vaddr + queue->expected; msg 706 drivers/crypto/hisilicon/sec/sec_drv.c msg->w0 &= ~SEC_BD_W0_DONE; msg 707 drivers/crypto/hisilicon/sec/sec_drv.c msg_ring->callback(msg, msg 720 drivers/crypto/hisilicon/sec/sec_drv.c msg = msg_ring->vaddr + q_id; msg 857 drivers/crypto/hisilicon/sec/sec_drv.c int sec_queue_send(struct sec_queue *queue, struct sec_bd_info *msg, void *ctx) msg 870 drivers/crypto/hisilicon/sec/sec_drv.c memcpy(msg_ring->vaddr + write, msg, sizeof(*msg)); msg 417 drivers/crypto/hisilicon/sec/sec_drv.h int sec_queue_send(struct sec_queue *queue, struct sec_bd_info *msg, void *ctx); msg 127 drivers/crypto/hisilicon/zip/zip_main.c const char *msg; msg 131 drivers/crypto/hisilicon/zip/zip_main.c { .int_msk = BIT(0), .msg = "zip_ecc_1bitt_err" }, msg 132 drivers/crypto/hisilicon/zip/zip_main.c { .int_msk = BIT(1), .msg = "zip_ecc_2bit_err" }, msg 133 drivers/crypto/hisilicon/zip/zip_main.c { .int_msk = BIT(2), .msg = "zip_axi_rresp_err" }, msg 134 drivers/crypto/hisilicon/zip/zip_main.c { .int_msk = BIT(3), .msg = "zip_axi_bresp_err" }, msg 135 drivers/crypto/hisilicon/zip/zip_main.c { .int_msk = BIT(4), .msg = "zip_src_addr_parse_err" }, msg 136 drivers/crypto/hisilicon/zip/zip_main.c { .int_msk = BIT(5), .msg = "zip_dst_addr_parse_err" }, msg 137 drivers/crypto/hisilicon/zip/zip_main.c { .int_msk = BIT(6), .msg = "zip_pre_in_addr_err" }, msg 138 drivers/crypto/hisilicon/zip/zip_main.c { .int_msk = BIT(7), .msg = "zip_pre_in_data_err" }, msg 139 drivers/crypto/hisilicon/zip/zip_main.c { .int_msk = BIT(8), .msg = "zip_com_inf_err" }, msg 140 drivers/crypto/hisilicon/zip/zip_main.c { .int_msk = BIT(9), .msg = "zip_enc_inf_err" }, msg 141 drivers/crypto/hisilicon/zip/zip_main.c { .int_msk = BIT(10), .msg = "zip_pre_out_err" }, msg 867 drivers/crypto/hisilicon/zip/zip_main.c while (err->msg) { msg 870 drivers/crypto/hisilicon/zip/zip_main.c err->msg, err->int_msk); msg 432 drivers/crypto/ixp4xx_crypto.c u32 msg[2] = { 0, 0 }; msg 447 drivers/crypto/ixp4xx_crypto.c if (npe_recv_message(npe_c, msg, "STATUS_MSG")) msg 450 drivers/crypto/ixp4xx_crypto.c if (npe_send_message(npe_c, msg, "STATUS_MSG")) msg 453 drivers/crypto/ixp4xx_crypto.c if (npe_recv_message(npe_c, msg, "STATUS_MSG")) msg 457 drivers/crypto/ixp4xx_crypto.c switch ((msg[1]>>16) & 0xff) { msg 167 drivers/crypto/nx/nx-842-powernv.c #define CSB_ERR(csb, msg, ...) \ msg 168 drivers/crypto/nx/nx-842-powernv.c pr_err("ERROR: " msg " : %02x %02x %02x %02x %08x\n", \ msg 173 drivers/crypto/nx/nx-842-powernv.c #define CSB_ERR_ADDR(csb, msg, ...) \ msg 174 drivers/crypto/nx/nx-842-powernv.c CSB_ERR(csb, msg " at %lx", ##__VA_ARGS__, \ msg 109 drivers/crypto/qat/qat_common/adf_common_drv.h int adf_iov_putmsg(struct adf_accel_dev *accel_dev, u32 msg, u8 vf_nr); msg 126 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c static int __adf_iov_putmsg(struct adf_accel_dev *accel_dev, u32 msg, u8 vf_nr) msg 169 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c msg &= ~local_in_use_mask; msg 170 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c msg |= local_in_use_pattern; msg 171 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c ADF_CSR_WR(pmisc_bar_addr, pf2vf_offset, msg); msg 190 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c ADF_CSR_WR(pmisc_bar_addr, pf2vf_offset, msg | int_bit); msg 221 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c int adf_iov_putmsg(struct adf_accel_dev *accel_dev, u32 msg, u8 vf_nr) msg 227 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c ret = __adf_iov_putmsg(accel_dev, msg, vf_nr); msg 243 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c u32 msg, resp = 0, vf_nr = vf_info->vf_nr; msg 246 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c msg = ADF_CSR_RD(pmisc_addr, hw_data->get_pf2vf_offset(vf_nr)); msg 249 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c msg &= ~ADF_VF2PF_INT; msg 250 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c ADF_CSR_WR(pmisc_addr, hw_data->get_pf2vf_offset(vf_nr), msg); msg 252 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c if (!(msg & ADF_VF2PF_MSGORIGIN_SYSTEM)) msg 256 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c switch ((msg & ADF_VF2PF_MSGTYPE_MASK) >> ADF_VF2PF_MSGTYPE_SHIFT) { msg 259 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c u8 vf_compat_ver = msg >> ADF_VF2PF_COMPAT_VER_REQ_SHIFT; msg 295 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c vf_nr + 1, msg); msg 311 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c vf_nr + 1, msg); msg 319 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c vf_nr + 1, msg); msg 335 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c vf_nr + 1, msg); msg 341 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c u32 msg = (ADF_PF2VF_MSGORIGIN_SYSTEM | msg 346 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c if (vf->init && adf_iov_putmsg(accel_dev, msg, i)) msg 356 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c u32 msg = 0; msg 359 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c msg = ADF_VF2PF_MSGORIGIN_SYSTEM; msg 360 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c msg |= ADF_VF2PF_MSGTYPE_COMPAT_VER_REQ << ADF_VF2PF_MSGTYPE_SHIFT; msg 361 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c msg |= ADF_PFVF_COMPATIBILITY_VERSION << ADF_VF2PF_COMPAT_VER_REQ_SHIFT; msg 365 drivers/crypto/qat/qat_common/adf_pf2vf_msg.c ret = adf_iov_putmsg(accel_dev, msg, 0); msg 117 drivers/crypto/qat/qat_common/adf_transport.c int adf_send_message(struct adf_etr_ring_data *ring, uint32_t *msg) msg 125 drivers/crypto/qat/qat_common/adf_transport.c memcpy((void *)((uintptr_t)ring->base_addr + ring->tail), msg, msg 140 drivers/crypto/qat/qat_common/adf_transport.c uint32_t *msg = (uint32_t *)((uintptr_t)ring->base_addr + ring->head); msg 142 drivers/crypto/qat/qat_common/adf_transport.c while (*msg != ADF_RING_EMPTY_SIG) { msg 143 drivers/crypto/qat/qat_common/adf_transport.c ring->callback((uint32_t *)msg); msg 145 drivers/crypto/qat/qat_common/adf_transport.c *msg = ADF_RING_EMPTY_SIG; msg 150 drivers/crypto/qat/qat_common/adf_transport.c msg = (uint32_t *)((uintptr_t)ring->base_addr + ring->head); msg 61 drivers/crypto/qat/qat_common/adf_transport.h int adf_send_message(struct adf_etr_ring_data *ring, uint32_t *msg); msg 61 drivers/crypto/qat/qat_common/adf_vf2pf_msg.c u32 msg = (ADF_VF2PF_MSGORIGIN_SYSTEM | msg 64 drivers/crypto/qat/qat_common/adf_vf2pf_msg.c if (adf_iov_putmsg(accel_dev, msg, 0)) { msg 84 drivers/crypto/qat/qat_common/adf_vf2pf_msg.c u32 msg = (ADF_VF2PF_MSGORIGIN_SYSTEM | msg 88 drivers/crypto/qat/qat_common/adf_vf2pf_msg.c if (adf_iov_putmsg(accel_dev, msg, 0)) msg 122 drivers/crypto/qat/qat_common/adf_vf_isr.c u32 msg; msg 125 drivers/crypto/qat/qat_common/adf_vf_isr.c msg = ADF_CSR_RD(pmisc_bar_addr, hw_data->get_pf2vf_offset(0)); msg 127 drivers/crypto/qat/qat_common/adf_vf_isr.c if (!(msg & ADF_PF2VF_MSGORIGIN_SYSTEM)) msg 131 drivers/crypto/qat/qat_common/adf_vf_isr.c switch ((msg & ADF_PF2VF_MSGTYPE_MASK) >> ADF_PF2VF_MSGTYPE_SHIFT) { msg 136 drivers/crypto/qat/qat_common/adf_vf_isr.c "Restarting msg received from PF 0x%x\n", msg); msg 151 drivers/crypto/qat/qat_common/adf_vf_isr.c msg &= ~ADF_PF2VF_INT; msg 152 drivers/crypto/qat/qat_common/adf_vf_isr.c ADF_CSR_WR(pmisc_bar_addr, hw_data->get_pf2vf_offset(0), msg); msg 157 drivers/crypto/qat/qat_common/adf_vf_isr.c "Version resp received from PF 0x%x\n", msg); msg 159 drivers/crypto/qat/qat_common/adf_vf_isr.c (msg & ADF_PF2VF_VERSION_RESP_VERS_MASK) >> msg 162 drivers/crypto/qat/qat_common/adf_vf_isr.c (msg & ADF_PF2VF_VERSION_RESP_RESULT_MASK) >> msg 171 drivers/crypto/qat/qat_common/adf_vf_isr.c msg &= ~ADF_PF2VF_INT; msg 172 drivers/crypto/qat/qat_common/adf_vf_isr.c ADF_CSR_WR(pmisc_bar_addr, hw_data->get_pf2vf_offset(0), msg); msg 180 drivers/crypto/qat/qat_common/adf_vf_isr.c msg); msg 873 drivers/crypto/qat/qat_common/qat_algs.c struct icp_qat_fw_la_bulk_req *msg; msg 881 drivers/crypto/qat/qat_common/qat_algs.c msg = &qat_req->req; msg 882 drivers/crypto/qat/qat_common/qat_algs.c *msg = ctx->dec_fw_req; msg 897 drivers/crypto/qat/qat_common/qat_algs.c ret = adf_send_message(ctx->inst->sym_tx, (uint32_t *)msg); msg 915 drivers/crypto/qat/qat_common/qat_algs.c struct icp_qat_fw_la_bulk_req *msg; msg 923 drivers/crypto/qat/qat_common/qat_algs.c msg = &qat_req->req; msg 924 drivers/crypto/qat/qat_common/qat_algs.c *msg = ctx->enc_fw_req; msg 942 drivers/crypto/qat/qat_common/qat_algs.c ret = adf_send_message(ctx->inst->sym_tx, (uint32_t *)msg); msg 1055 drivers/crypto/qat/qat_common/qat_algs.c struct icp_qat_fw_la_bulk_req *msg; msg 1074 drivers/crypto/qat/qat_common/qat_algs.c msg = &qat_req->req; msg 1075 drivers/crypto/qat/qat_common/qat_algs.c *msg = ctx->enc_fw_req; msg 1088 drivers/crypto/qat/qat_common/qat_algs.c ret = adf_send_message(ctx->inst->sym_tx, (uint32_t *)msg); msg 1115 drivers/crypto/qat/qat_common/qat_algs.c struct icp_qat_fw_la_bulk_req *msg; msg 1134 drivers/crypto/qat/qat_common/qat_algs.c msg = &qat_req->req; msg 1135 drivers/crypto/qat/qat_common/qat_algs.c *msg = ctx->dec_fw_req; msg 1148 drivers/crypto/qat/qat_common/qat_algs.c ret = adf_send_message(ctx->inst->sym_tx, (uint32_t *)msg); msg 265 drivers/crypto/qat/qat_common/qat_asym_algs.c struct icp_qat_fw_pke_request *msg = &qat_req->req; msg 276 drivers/crypto/qat/qat_common/qat_asym_algs.c memset(msg, '\0', sizeof(*msg)); msg 277 drivers/crypto/qat/qat_common/qat_asym_algs.c ICP_QAT_FW_PKE_HDR_VALID_FLAG_SET(msg->pke_hdr, msg 280 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->pke_hdr.cd_pars.func_id = qat_dh_fn_id(ctx->p_size, msg 282 drivers/crypto/qat/qat_common/qat_asym_algs.c if (unlikely(!msg->pke_hdr.cd_pars.func_id)) msg 288 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->pke_hdr.service_type = ICP_QAT_FW_COMN_REQ_CPM_FW_PKE; msg 289 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->pke_hdr.comn_req_flags = msg 385 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->pke_mid.src_data_addr = qat_req->phy_in; msg 386 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->pke_mid.dest_data_addr = qat_req->phy_out; msg 387 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->pke_mid.opaque = (uint64_t)(__force long)qat_req; msg 388 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->input_param_count = n_input_params; msg 389 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->output_param_count = 1; msg 392 drivers/crypto/qat/qat_common/qat_asym_algs.c ret = adf_send_message(ctx->inst->pke_tx, (uint32_t *)msg); msg 694 drivers/crypto/qat/qat_common/qat_asym_algs.c struct icp_qat_fw_pke_request *msg = &qat_req->req; msg 704 drivers/crypto/qat/qat_common/qat_asym_algs.c memset(msg, '\0', sizeof(*msg)); msg 705 drivers/crypto/qat/qat_common/qat_asym_algs.c ICP_QAT_FW_PKE_HDR_VALID_FLAG_SET(msg->pke_hdr, msg 707 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->pke_hdr.cd_pars.func_id = qat_rsa_enc_fn_id(ctx->key_sz); msg 708 drivers/crypto/qat/qat_common/qat_asym_algs.c if (unlikely(!msg->pke_hdr.cd_pars.func_id)) msg 714 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->pke_hdr.service_type = ICP_QAT_FW_COMN_REQ_CPM_FW_PKE; msg 715 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->pke_hdr.comn_req_flags = msg 780 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->pke_mid.src_data_addr = qat_req->phy_in; msg 781 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->pke_mid.dest_data_addr = qat_req->phy_out; msg 782 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->pke_mid.opaque = (uint64_t)(__force long)qat_req; msg 783 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->input_param_count = 3; msg 784 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->output_param_count = 1; msg 786 drivers/crypto/qat/qat_common/qat_asym_algs.c ret = adf_send_message(ctx->inst->pke_tx, (uint32_t *)msg); msg 828 drivers/crypto/qat/qat_common/qat_asym_algs.c struct icp_qat_fw_pke_request *msg = &qat_req->req; msg 838 drivers/crypto/qat/qat_common/qat_asym_algs.c memset(msg, '\0', sizeof(*msg)); msg 839 drivers/crypto/qat/qat_common/qat_asym_algs.c ICP_QAT_FW_PKE_HDR_VALID_FLAG_SET(msg->pke_hdr, msg 841 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->pke_hdr.cd_pars.func_id = ctx->crt_mode ? msg 844 drivers/crypto/qat/qat_common/qat_asym_algs.c if (unlikely(!msg->pke_hdr.cd_pars.func_id)) msg 850 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->pke_hdr.service_type = ICP_QAT_FW_COMN_REQ_CPM_FW_PKE; msg 851 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->pke_hdr.comn_req_flags = msg 928 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->pke_mid.src_data_addr = qat_req->phy_in; msg 929 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->pke_mid.dest_data_addr = qat_req->phy_out; msg 930 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->pke_mid.opaque = (uint64_t)(__force long)qat_req; msg 932 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->input_param_count = 6; msg 934 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->input_param_count = 3; msg 936 drivers/crypto/qat/qat_common/qat_asym_algs.c msg->output_param_count = 1; msg 938 drivers/crypto/qat/qat_common/qat_asym_algs.c ret = adf_send_message(ctx->inst->pke_tx, (uint32_t *)msg); msg 120 drivers/dma/bcm-sba-raid.c struct brcm_message msg; msg 367 drivers/dma/bcm-sba-raid.c req->msg.error = 0; msg 368 drivers/dma/bcm-sba-raid.c ret = mbox_send_message(sba->mchan, &req->msg); msg 375 drivers/dma/bcm-sba-raid.c ret = req->msg.error; msg 565 drivers/dma/bcm-sba-raid.c struct brcm_message *msg) msg 615 drivers/dma/bcm-sba-raid.c msg->type = BRCM_MESSAGE_SBA; msg 616 drivers/dma/bcm-sba-raid.c msg->sba.cmds = cmds; msg 617 drivers/dma/bcm-sba-raid.c msg->sba.cmds_count = cmdsp - cmds; msg 618 drivers/dma/bcm-sba-raid.c msg->ctx = req; msg 619 drivers/dma/bcm-sba-raid.c msg->error = 0; msg 640 drivers/dma/bcm-sba-raid.c sba_fillup_interrupt_msg(req, req->cmds, &req->msg); msg 651 drivers/dma/bcm-sba-raid.c struct brcm_message *msg, msg 703 drivers/dma/bcm-sba-raid.c msg->type = BRCM_MESSAGE_SBA; msg 704 drivers/dma/bcm-sba-raid.c msg->sba.cmds = cmds; msg 705 drivers/dma/bcm-sba-raid.c msg->sba.cmds_count = cmdsp - cmds; msg 706 drivers/dma/bcm-sba-raid.c msg->ctx = req; msg 707 drivers/dma/bcm-sba-raid.c msg->error = 0; msg 725 drivers/dma/bcm-sba-raid.c sba_fillup_memcpy_msg(req, req->cmds, &req->msg, msg 770 drivers/dma/bcm-sba-raid.c struct brcm_message *msg, msg 842 drivers/dma/bcm-sba-raid.c msg->type = BRCM_MESSAGE_SBA; msg 843 drivers/dma/bcm-sba-raid.c msg->sba.cmds = cmds; msg 844 drivers/dma/bcm-sba-raid.c msg->sba.cmds_count = cmdsp - cmds; msg 845 drivers/dma/bcm-sba-raid.c msg->ctx = req; msg 846 drivers/dma/bcm-sba-raid.c msg->error = 0; msg 864 drivers/dma/bcm-sba-raid.c sba_fillup_xor_msg(req, req->cmds, &req->msg, msg 914 drivers/dma/bcm-sba-raid.c struct brcm_message *msg, msg 1053 drivers/dma/bcm-sba-raid.c msg->type = BRCM_MESSAGE_SBA; msg 1054 drivers/dma/bcm-sba-raid.c msg->sba.cmds = cmds; msg 1055 drivers/dma/bcm-sba-raid.c msg->sba.cmds_count = cmdsp - cmds; msg 1056 drivers/dma/bcm-sba-raid.c msg->ctx = req; msg 1057 drivers/dma/bcm-sba-raid.c msg->error = 0; msg 1076 drivers/dma/bcm-sba-raid.c req->cmds, &req->msg, msg 1089 drivers/dma/bcm-sba-raid.c struct brcm_message *msg, msg 1307 drivers/dma/bcm-sba-raid.c msg->type = BRCM_MESSAGE_SBA; msg 1308 drivers/dma/bcm-sba-raid.c msg->sba.cmds = cmds; msg 1309 drivers/dma/bcm-sba-raid.c msg->sba.cmds_count = cmdsp - cmds; msg 1310 drivers/dma/bcm-sba-raid.c msg->ctx = req; msg 1311 drivers/dma/bcm-sba-raid.c msg->error = 0; msg 1331 drivers/dma/bcm-sba-raid.c req->cmds, &req->msg, off, len, msg 1442 drivers/dma/bcm-sba-raid.c static void sba_receive_message(struct mbox_client *cl, void *msg) msg 1444 drivers/dma/bcm-sba-raid.c struct brcm_message *m = msg; msg 1519 drivers/dma/bcm-sba-raid.c memset(&req->msg, 0, sizeof(req->msg)); msg 613 drivers/dma/mv_xor_v2.c static void mv_xor_v2_set_msi_msg(struct msi_desc *desc, struct msi_msg *msg) msg 617 drivers/dma/mv_xor_v2.c writel(msg->address_lo, msg 619 drivers/dma/mv_xor_v2.c writel(msg->address_hi & 0xFFFF, msg 621 drivers/dma/mv_xor_v2.c writel(msg->data, msg 670 drivers/dma/qcom/hidma.c static void hidma_write_msi_msg(struct msi_desc *desc, struct msi_msg *msg) msg 676 drivers/dma/qcom/hidma.c writel(msg->address_lo, dmadev->dev_evca + 0x118); msg 677 drivers/dma/qcom/hidma.c writel(msg->address_hi, dmadev->dev_evca + 0x11C); msg 678 drivers/dma/qcom/hidma.c writel(msg->data, dmadev->dev_evca + 0x120); msg 78 drivers/edac/armada_xp_edac.c char msg[128]; msg 132 drivers/edac/armada_xp_edac.c char *msg = drvdata->msg; msg 195 drivers/edac/armada_xp_edac.c msg += sprintf(msg, "row=0x%04x ", row_val); /* 11 chars */ msg 196 drivers/edac/armada_xp_edac.c msg += sprintf(msg, "bank=0x%x ", bank_val); /* 9 chars */ msg 197 drivers/edac/armada_xp_edac.c msg += sprintf(msg, "col=0x%04x ", col_val); /* 11 chars */ msg 198 drivers/edac/armada_xp_edac.c msg += sprintf(msg, "cs=%d", cs_val); /* 4 chars */ msg 207 drivers/edac/armada_xp_edac.c mci->ctl_name, drvdata->msg); msg 215 drivers/edac/armada_xp_edac.c mci->ctl_name, drvdata->msg); msg 386 drivers/edac/armada_xp_edac.c char msg[128]; msg 412 drivers/edac/armada_xp_edac.c char *msg = drvdata->msg; msg 413 drivers/edac/armada_xp_edac.c size_t size = sizeof(drvdata->msg); msg 432 drivers/edac/armada_xp_edac.c len += snprintf(msg+len, size-len, "src=CPU%d ", src); msg 434 drivers/edac/armada_xp_edac.c len += snprintf(msg+len, size-len, "src=IO "); msg 439 drivers/edac/armada_xp_edac.c len += snprintf(msg+len, size-len, "txn=Data-Read "); msg 442 drivers/edac/armada_xp_edac.c len += snprintf(msg+len, size-len, "txn=Isn-Read "); msg 445 drivers/edac/armada_xp_edac.c len += snprintf(msg+len, size-len, "txn=Clean-Flush "); msg 448 drivers/edac/armada_xp_edac.c len += snprintf(msg+len, size-len, "txn=Eviction "); msg 451 drivers/edac/armada_xp_edac.c len += snprintf(msg+len, size-len, msg 459 drivers/edac/armada_xp_edac.c len += snprintf(msg+len, size-len, "err=CorrECC "); msg 462 drivers/edac/armada_xp_edac.c len += snprintf(msg+len, size-len, "err=UnCorrECC "); msg 465 drivers/edac/armada_xp_edac.c len += snprintf(msg+len, size-len, "err=TagParity "); msg 469 drivers/edac/armada_xp_edac.c len += snprintf(msg+len, size-len, "addr=0x%x ", addr_cap & AURORA_ERR_ADDR_CAP_ADDR_MASK); msg 470 drivers/edac/armada_xp_edac.c len += snprintf(msg+len, size-len, "index=0x%x ", (way_cap & AURORA_ERR_WAY_IDX_MSK) >> AURORA_ERR_WAY_IDX_OFF); msg 471 drivers/edac/armada_xp_edac.c len += snprintf(msg+len, size-len, "way=0x%x", (way_cap & AURORA_ERR_WAY_CAP_WAY_MASK) >> AURORA_ERR_WAY_CAP_WAY_OFFSET); msg 479 drivers/edac/armada_xp_edac.c edac_device_handle_ue(dci, 0, 0, drvdata->msg); msg 483 drivers/edac/armada_xp_edac.c edac_device_handle_ce(dci, 0, 0, drvdata->msg); msg 559 drivers/edac/edac_device.c int inst_nr, int block_nr, const char *msg) msg 596 drivers/edac/edac_device.c block ? block->name : "N/A", msg); msg 601 drivers/edac/edac_device.c int inst_nr, int block_nr, const char *msg) msg 638 drivers/edac/edac_device.c block ? block->name : "N/A", msg); msg 643 drivers/edac/edac_device.c block ? block->name : "N/A", msg); msg 298 drivers/edac/edac_device.h int inst_nr, int block_nr, const char *msg); msg 309 drivers/edac/edac_device.h int inst_nr, int block_nr, const char *msg); msg 955 drivers/edac/edac_mc.c const char *msg, msg 968 drivers/edac/edac_mc.c if (*msg) msg 975 drivers/edac/edac_mc.c error_count, msg, msg_aux, label, msg 980 drivers/edac/edac_mc.c error_count, msg, msg_aux, label, msg 1009 drivers/edac/edac_mc.c const char *msg, msg 1018 drivers/edac/edac_mc.c if (*msg) msg 1025 drivers/edac/edac_mc.c error_count, msg, msg_aux, label, msg 1030 drivers/edac/edac_mc.c error_count, msg, msg_aux, label, msg 1037 drivers/edac/edac_mc.c msg, msg_aux, label, location, detail, other_detail); msg 1040 drivers/edac/edac_mc.c msg, msg_aux, label, location, detail); msg 1059 drivers/edac/edac_mc.c edac_ce_error(mci, e->error_count, pos, e->msg, e->location, e->label, msg 1067 drivers/edac/edac_mc.c edac_ue_error(mci, e->error_count, pos, e->msg, e->location, e->label, msg 1084 drivers/edac/edac_mc.c const char *msg, msg 1105 drivers/edac/edac_mc.c e->msg = msg; msg 1239 drivers/edac/edac_mc.c trace_mc_event(type, e->msg, e->label, e->error_count, msg 254 drivers/edac/edac_mc.h const char *msg, msg 116 drivers/edac/edac_module.h extern void edac_pci_handle_pe(struct edac_pci_ctl_info *pci, const char *msg); msg 118 drivers/edac/edac_module.h const char *msg); msg 685 drivers/edac/edac_pci_sysfs.c void edac_pci_handle_pe(struct edac_pci_ctl_info *pci, const char *msg) msg 694 drivers/edac/edac_pci_sysfs.c pci->ctl_name, pci->pci_idx, msg); msg 710 drivers/edac/edac_pci_sysfs.c void edac_pci_handle_npe(struct edac_pci_ctl_info *pci, const char *msg) msg 719 drivers/edac/edac_pci_sysfs.c pci->ctl_name, pci->pci_idx, msg); msg 26 drivers/edac/ghes_edac.c char msg[80]; msg 236 drivers/edac/ghes_edac.c e->msg = pvt->msg; msg 242 drivers/edac/ghes_edac.c *pvt->msg = '\0'; msg 264 drivers/edac/ghes_edac.c p = pvt->msg; msg 319 drivers/edac/ghes_edac.c strcpy(pvt->msg, "unknown error"); msg 455 drivers/edac/ghes_edac.c trace_mc_event(type, e->msg, e->label, e->error_count, msg 464 drivers/edac/i5000_edac.c char msg[EDAC_MC_LABEL_LEN + 1 + 160]; msg 523 drivers/edac/i5000_edac.c snprintf(msg, sizeof(msg), msg 531 drivers/edac/i5000_edac.c msg); msg 545 drivers/edac/i5000_edac.c char msg[EDAC_MC_LABEL_LEN + 1 + 170]; msg 622 drivers/edac/i5000_edac.c snprintf(msg, sizeof(msg), msg 630 drivers/edac/i5000_edac.c msg); msg 674 drivers/edac/i5000_edac.c snprintf(msg, sizeof(msg), msg 684 drivers/edac/i5000_edac.c msg); msg 723 drivers/edac/i5000_edac.c snprintf(msg, sizeof(msg), msg 729 drivers/edac/i5000_edac.c "Misc error", msg); msg 444 drivers/edac/i5100_edac.c const char *msg) msg 456 drivers/edac/i5100_edac.c msg, detail); msg 466 drivers/edac/i5100_edac.c const char *msg) msg 478 drivers/edac/i5100_edac.c msg, detail); msg 506 drivers/edac/i5100_edac.c const char *msg; msg 520 drivers/edac/i5100_edac.c msg = i5100_err_msg(ferr); msg 522 drivers/edac/i5100_edac.c msg = i5100_err_msg(nerr); msg 524 drivers/edac/i5100_edac.c i5100_handle_ce(mci, chan, bank, rank, syndrome, cas, ras, msg); msg 528 drivers/edac/i5100_edac.c const char *msg; msg 542 drivers/edac/i5100_edac.c msg = i5100_err_msg(ferr); msg 544 drivers/edac/i5100_edac.c msg = i5100_err_msg(nerr); msg 546 drivers/edac/i5100_edac.c i5100_handle_ue(mci, chan, bank, rank, syndrome, cas, ras, msg); msg 515 drivers/edac/i5400_edac.c char msg[EDAC_MC_LABEL_LEN + 1 + 90 + 80]; msg 559 drivers/edac/i5400_edac.c snprintf(msg, sizeof(msg), msg 566 drivers/edac/i5400_edac.c msg); msg 579 drivers/edac/i5400_edac.c char msg[EDAC_MC_LABEL_LEN + 1 + 90 + 80]; msg 629 drivers/edac/i5400_edac.c snprintf(msg, sizeof(msg), msg 638 drivers/edac/i5400_edac.c msg); msg 42 drivers/edac/octeon_edac-lmc.c char msg[64]; msg 48 drivers/edac/octeon_edac-lmc.c snprintf(msg, sizeof(msg), msg 56 drivers/edac/octeon_edac-lmc.c -1, -1, -1, msg, ""); msg 63 drivers/edac/octeon_edac-lmc.c -1, -1, -1, msg, ""); msg 76 drivers/edac/octeon_edac-lmc.c char msg[64]; msg 99 drivers/edac/octeon_edac-lmc.c snprintf(msg, sizeof(msg), msg 107 drivers/edac/octeon_edac-lmc.c -1, -1, -1, msg, ""); msg 114 drivers/edac/octeon_edac-lmc.c -1, -1, -1, msg, ""); msg 93 drivers/edac/pnd2_edac.c struct dram_addr *daddr, char *msg); msg 646 drivers/edac/pnd2_edac.c static int sys2pmi(const u64 addr, u32 *pmiidx, u64 *pmiaddr, char *msg) msg 669 drivers/edac/pnd2_edac.c snprintf(msg, PND2_MSG_SIZE, "Error address 0x%llx is not DRAM", addr); msg 927 drivers/edac/pnd2_edac.c struct dram_addr *daddr, char *msg) msg 940 drivers/edac/pnd2_edac.c snprintf(msg, PND2_MSG_SIZE, "Bad dimm_geometry[] table\n"); msg 976 drivers/edac/pnd2_edac.c snprintf(msg, PND2_MSG_SIZE, "Bad translation\n"); msg 997 drivers/edac/pnd2_edac.c struct dram_addr *daddr, char *msg) msg 1118 drivers/edac/pnd2_edac.c struct dram_addr *daddr, char *msg) msg 1124 drivers/edac/pnd2_edac.c ret = sys2pmi(addr, &pmiidx, &pmiaddr, msg); msg 1133 drivers/edac/pnd2_edac.c ret = ops->pmi2mem(mci, pmiaddr, pmiidx, daddr, msg); msg 1147 drivers/edac/pnd2_edac.c char *optype, msg[PND2_MSG_SIZE]; msg 1201 drivers/edac/pnd2_edac.c rc = get_memory_error_data(mci, m->addr, daddr, msg); msg 1205 drivers/edac/pnd2_edac.c snprintf(msg, sizeof(msg), msg 1210 drivers/edac/pnd2_edac.c edac_dbg(0, "%s\n", msg); msg 1214 drivers/edac/pnd2_edac.c m->addr & ~PAGE_MASK, 0, daddr->chan, daddr->dimm, -1, optype, msg); msg 1219 drivers/edac/pnd2_edac.c edac_mc_handle_error(tp_event, mci, core_err_cnt, 0, 0, 0, -1, -1, -1, msg, ""); msg 1932 drivers/edac/sb_edac.c char **area_type, char *msg) msg 1957 drivers/edac/sb_edac.c sprintf(msg, "Error at TOLM area, on addr 0x%08Lx", addr); msg 1961 drivers/edac/sb_edac.c sprintf(msg, "Error at MMIOH area, on addr 0x%016Lx", addr); msg 1977 drivers/edac/sb_edac.c sprintf(msg, "Can't discover the memory socket"); msg 1985 drivers/edac/sb_edac.c sprintf(msg, "Can't discover the memory socket"); msg 2029 drivers/edac/sb_edac.c sprintf(msg, "Can't discover socket interleave"); msg 2082 drivers/edac/sb_edac.c sprintf(msg, "Struct for socket #%u wasn't initialized", msg 2098 drivers/edac/sb_edac.c sprintf(msg, "Can't discover the memory channel"); msg 2106 drivers/edac/sb_edac.c sprintf(msg, "Can't discover the memory channel"); msg 2139 drivers/edac/sb_edac.c sprintf(msg, "Can't discover the TAD target"); msg 2155 drivers/edac/sb_edac.c sprintf(msg, "Invalid mirror set. Can't decode addr"); msg 2185 drivers/edac/sb_edac.c sprintf(msg, "Can't calculate ch addr: TAD offset 0x%08Lx is too high for addr 0x%08Lx!", msg 2216 drivers/edac/sb_edac.c sprintf(msg, "Can't discover the memory rank for ch addr 0x%08Lx", msg 2244 drivers/edac/sb_edac.c char *msg) msg 2253 drivers/edac/sb_edac.c sprintf(msg, "Invalid channel 0x%x", channel); msg 2259 drivers/edac/sb_edac.c sprintf(msg, "No get_ha()"); msg 2264 drivers/edac/sb_edac.c sprintf(msg, "Impossible bank %d", m->bank); msg 2271 drivers/edac/sb_edac.c strcpy(msg, "mci socket got corrupted!"); msg 2955 drivers/edac/sb_edac.c char *type, *optype, msg[256]; msg 3047 drivers/edac/sb_edac.c snprintf(msg, sizeof(msg), msg 3056 drivers/edac/sb_edac.c optype, msg); msg 3062 drivers/edac/sb_edac.c &area_type, msg); msg 3065 drivers/edac/sb_edac.c &channel_mask, msg); msg 3072 drivers/edac/sb_edac.c strcpy(msg, "Error: socket got corrupted!"); msg 3098 drivers/edac/sb_edac.c snprintf(msg, sizeof(msg), msg 3108 drivers/edac/sb_edac.c edac_dbg(0, "%s\n", msg); msg 3119 drivers/edac/sb_edac.c optype, msg); msg 3124 drivers/edac/sb_edac.c msg, ""); msg 30 drivers/edac/sifive_edac.c const char *msg = (char *)ptr; msg 36 drivers/edac/sifive_edac.c edac_device_handle_ue(p->dci, 0, 0, msg); msg 38 drivers/edac/sifive_edac.c edac_device_handle_ce(p->dci, 0, 0, msg); msg 584 drivers/edac/thunderx_edac.c char *msg; msg 587 drivers/edac/thunderx_edac.c msg = kmalloc(LMC_MESSAGE_SIZE, GFP_KERNEL); msg 590 drivers/edac/thunderx_edac.c if (!msg || !other) msg 610 drivers/edac/thunderx_edac.c snprintf(msg, LMC_MESSAGE_SIZE, msg 627 drivers/edac/thunderx_edac.c 0, -1, -1, -1, msg, other); msg 632 drivers/edac/thunderx_edac.c 0, -1, -1, -1, msg, other); msg 640 drivers/edac/thunderx_edac.c kfree(msg); msg 1115 drivers/edac/thunderx_edac.c char *msg; msg 1118 drivers/edac/thunderx_edac.c msg = kmalloc(OCX_MESSAGE_SIZE, GFP_KERNEL); msg 1121 drivers/edac/thunderx_edac.c if (!msg || !other) msg 1130 drivers/edac/thunderx_edac.c snprintf(msg, OCX_MESSAGE_SIZE, "%s: OCX_COM_INT: %016llx", msg 1136 drivers/edac/thunderx_edac.c strncat(msg, other, OCX_MESSAGE_SIZE); msg 1145 drivers/edac/thunderx_edac.c strncat(msg, other, OCX_MESSAGE_SIZE); msg 1150 drivers/edac/thunderx_edac.c strncat(msg, other, OCX_MESSAGE_SIZE); msg 1154 drivers/edac/thunderx_edac.c edac_device_handle_ce(ocx->edac_dev, 0, 0, msg); msg 1163 drivers/edac/thunderx_edac.c kfree(msg); msg 1196 drivers/edac/thunderx_edac.c char *msg; msg 1199 drivers/edac/thunderx_edac.c msg = kmalloc(OCX_MESSAGE_SIZE, GFP_KERNEL); msg 1202 drivers/edac/thunderx_edac.c if (!msg || !other) msg 1212 drivers/edac/thunderx_edac.c snprintf(msg, OCX_MESSAGE_SIZE, msg 1220 drivers/edac/thunderx_edac.c strncat(msg, other, OCX_MESSAGE_SIZE); msg 1223 drivers/edac/thunderx_edac.c edac_device_handle_ue(ocx->edac_dev, 0, 0, msg); msg 1225 drivers/edac/thunderx_edac.c edac_device_handle_ce(ocx->edac_dev, 0, 0, msg); msg 1233 drivers/edac/thunderx_edac.c kfree(msg); msg 1856 drivers/edac/thunderx_edac.c char *msg; msg 1859 drivers/edac/thunderx_edac.c msg = kmalloc(OCX_MESSAGE_SIZE, GFP_KERNEL); msg 1862 drivers/edac/thunderx_edac.c if (!msg || !other) msg 1892 drivers/edac/thunderx_edac.c snprintf(msg, L2C_MESSAGE_SIZE, msg 1899 drivers/edac/thunderx_edac.c strncat(msg, other, L2C_MESSAGE_SIZE); msg 1902 drivers/edac/thunderx_edac.c edac_device_handle_ue(l2c->edac_dev, 0, 0, msg); msg 1904 drivers/edac/thunderx_edac.c edac_device_handle_ce(l2c->edac_dev, 0, 0, msg); msg 1913 drivers/edac/thunderx_edac.c kfree(msg); msg 68 drivers/extcon/extcon-usbc-cros-ec.c struct cros_ec_command *msg; msg 71 drivers/extcon/extcon-usbc-cros-ec.c msg = kzalloc(sizeof(*msg) + max(outsize, insize), GFP_KERNEL); msg 72 drivers/extcon/extcon-usbc-cros-ec.c if (!msg) msg 75 drivers/extcon/extcon-usbc-cros-ec.c msg->version = version; msg 76 drivers/extcon/extcon-usbc-cros-ec.c msg->command = command; msg 77 drivers/extcon/extcon-usbc-cros-ec.c msg->outsize = outsize; msg 78 drivers/extcon/extcon-usbc-cros-ec.c msg->insize = insize; msg 81 drivers/extcon/extcon-usbc-cros-ec.c memcpy(msg->data, outdata, outsize); msg 83 drivers/extcon/extcon-usbc-cros-ec.c ret = cros_ec_cmd_xfer_status(info->ec, msg); msg 85 drivers/extcon/extcon-usbc-cros-ec.c memcpy(indata, msg->data, insize); msg 87 drivers/extcon/extcon-usbc-cros-ec.c kfree(msg); msg 485 drivers/firmware/arm_scmi/perf.c static bool scmi_perf_fc_size_is_valid(u32 msg, u32 size) msg 487 drivers/firmware/arm_scmi/perf.c if ((msg == PERF_LEVEL_GET || msg == PERF_LEVEL_SET) && size == 4) msg 489 drivers/firmware/arm_scmi/perf.c if ((msg == PERF_LIMITS_GET || msg == PERF_LIMITS_SET) && size == 8) msg 409 drivers/firmware/arm_scpi.c static void scpi_handle_remote_msg(struct mbox_client *c, void *msg) msg 421 drivers/firmware/arm_scpi.c static void scpi_tx_prepare(struct mbox_client *c, void *msg) msg 424 drivers/firmware/arm_scpi.c struct scpi_xfer *t = msg; msg 476 drivers/firmware/arm_scpi.c struct scpi_xfer *msg; msg 491 drivers/firmware/arm_scpi.c msg = get_scpi_xfer(scpi_chan); msg 492 drivers/firmware/arm_scpi.c if (!msg) msg 496 drivers/firmware/arm_scpi.c msg->cmd = PACK_LEGACY_SCPI_CMD(cmd, tx_len); msg 497 drivers/firmware/arm_scpi.c msg->slot = msg->cmd; msg 499 drivers/firmware/arm_scpi.c msg->slot = BIT(SCPI_SLOT); msg 500 drivers/firmware/arm_scpi.c msg->cmd = PACK_SCPI_CMD(cmd, tx_len); msg 502 drivers/firmware/arm_scpi.c msg->tx_buf = tx_buf; msg 503 drivers/firmware/arm_scpi.c msg->tx_len = tx_len; msg 504 drivers/firmware/arm_scpi.c msg->rx_buf = rx_buf; msg 505 drivers/firmware/arm_scpi.c msg->rx_len = rx_len; msg 506 drivers/firmware/arm_scpi.c reinit_completion(&msg->done); msg 508 drivers/firmware/arm_scpi.c ret = mbox_send_message(scpi_chan->chan, msg); msg 512 drivers/firmware/arm_scpi.c if (!wait_for_completion_timeout(&msg->done, MAX_RX_TIMEOUT)) msg 516 drivers/firmware/arm_scpi.c ret = msg->status; msg 519 drivers/firmware/arm_scpi.c scpi_process_cmd(scpi_chan, msg->cmd); msg 521 drivers/firmware/arm_scpi.c put_scpi_xfer(msg, scpi_chan); msg 1106 drivers/firmware/arm_sdei.c const char *msg = acpi_format_exception(status); msg 1108 drivers/firmware/arm_sdei.c pr_info("Failed to get ACPI:SDEI table, %s\n", msg); msg 216 drivers/firmware/efi/cper.c static int cper_mem_err_location(struct cper_mem_err_compact *mem, char *msg) msg 220 drivers/firmware/efi/cper.c if (!msg) msg 226 drivers/firmware/efi/cper.c n += scnprintf(msg + n, len - n, "node: %d ", mem->node); msg 228 drivers/firmware/efi/cper.c n += scnprintf(msg + n, len - n, "card: %d ", mem->card); msg 230 drivers/firmware/efi/cper.c n += scnprintf(msg + n, len - n, "module: %d ", mem->module); msg 232 drivers/firmware/efi/cper.c n += scnprintf(msg + n, len - n, "rank: %d ", mem->rank); msg 234 drivers/firmware/efi/cper.c n += scnprintf(msg + n, len - n, "bank: %d ", mem->bank); msg 236 drivers/firmware/efi/cper.c n += scnprintf(msg + n, len - n, "device: %d ", mem->device); msg 238 drivers/firmware/efi/cper.c n += scnprintf(msg + n, len - n, "row: %d ", mem->row); msg 240 drivers/firmware/efi/cper.c n += scnprintf(msg + n, len - n, "column: %d ", mem->column); msg 242 drivers/firmware/efi/cper.c n += scnprintf(msg + n, len - n, "bit_position: %d ", msg 245 drivers/firmware/efi/cper.c n += scnprintf(msg + n, len - n, "requestor_id: 0x%016llx ", msg 248 drivers/firmware/efi/cper.c n += scnprintf(msg + n, len - n, "responder_id: 0x%016llx ", msg 251 drivers/firmware/efi/cper.c scnprintf(msg + n, len - n, "target_id: 0x%016llx ", msg 254 drivers/firmware/efi/cper.c msg[n] = '\0'; msg 258 drivers/firmware/efi/cper.c static int cper_dimm_err_location(struct cper_mem_err_compact *mem, char *msg) msg 263 drivers/firmware/efi/cper.c if (!msg || !(mem->validation_bits & CPER_MEM_VALID_MODULE_HANDLE)) msg 270 drivers/firmware/efi/cper.c n = snprintf(msg, len, "DIMM location: %s %s ", bank, device); msg 272 drivers/firmware/efi/cper.c n = snprintf(msg, len, msg 276 drivers/firmware/efi/cper.c msg[n] = '\0'; msg 32 drivers/firmware/efi/libstub/efistub.h #define pr_efi(sys_table, msg) do { \ msg 33 drivers/firmware/efi/libstub/efistub.h if (!is_quiet()) efi_printk(sys_table, "EFI stub: "msg); \ msg 36 drivers/firmware/efi/libstub/efistub.h #define pr_efi_err(sys_table, msg) efi_printk(sys_table, "EFI stub: ERROR: "msg) msg 51 drivers/firmware/imx/imx-dsp.c static void imx_dsp_handle_rx(struct mbox_client *c, void *msg) msg 67 drivers/firmware/imx/imx-scu-irq.c struct imx_sc_msg_irq_get_status msg; msg 68 drivers/firmware/imx/imx-scu-irq.c struct imx_sc_rpc_msg *hdr = &msg.hdr; msg 79 drivers/firmware/imx/imx-scu-irq.c msg.data.req.resource = mu_resource_id; msg 80 drivers/firmware/imx/imx-scu-irq.c msg.data.req.group = i; msg 82 drivers/firmware/imx/imx-scu-irq.c ret = imx_scu_call_rpc(imx_sc_irq_ipc_handle, &msg, true); msg 89 drivers/firmware/imx/imx-scu-irq.c irq_status = msg.data.resp.status; msg 99 drivers/firmware/imx/imx-scu-irq.c struct imx_sc_msg_irq_enable msg; msg 100 drivers/firmware/imx/imx-scu-irq.c struct imx_sc_rpc_msg *hdr = &msg.hdr; msg 111 drivers/firmware/imx/imx-scu-irq.c msg.resource = mu_resource_id; msg 112 drivers/firmware/imx/imx-scu-irq.c msg.group = group; msg 113 drivers/firmware/imx/imx-scu-irq.c msg.mask = mask; msg 114 drivers/firmware/imx/imx-scu-irq.c msg.enable = enable; msg 116 drivers/firmware/imx/imx-scu-irq.c ret = imx_scu_call_rpc(imx_sc_irq_ipc_handle, &msg, true); msg 125 drivers/firmware/imx/imx-scu-irq.c static void imx_scu_irq_callback(struct mbox_client *c, void *msg) msg 44 drivers/firmware/imx/imx-scu.c u32 *msg; msg 113 drivers/firmware/imx/imx-scu.c static void imx_scu_rx_callback(struct mbox_client *c, void *msg) msg 118 drivers/firmware/imx/imx-scu.c u32 *data = msg; msg 121 drivers/firmware/imx/imx-scu.c if (!sc_ipc->msg) { msg 128 drivers/firmware/imx/imx-scu.c hdr = msg; msg 130 drivers/firmware/imx/imx-scu.c sc_ipc->msg[0] = *data++; msg 133 drivers/firmware/imx/imx-scu.c sc_ipc->msg[i] = *data++; msg 141 drivers/firmware/imx/imx-scu.c hdr = msg; msg 149 drivers/firmware/imx/imx-scu.c sc_ipc->msg[sc_chan->idx] = *data; msg 159 drivers/firmware/imx/imx-scu.c static int imx_scu_ipc_write(struct imx_sc_ipc *sc_ipc, void *msg) msg 161 drivers/firmware/imx/imx-scu.c struct imx_sc_rpc_msg hdr = *(struct imx_sc_rpc_msg *)msg; msg 163 drivers/firmware/imx/imx-scu.c u32 *data = msg; msg 204 drivers/firmware/imx/imx-scu.c int imx_scu_call_rpc(struct imx_sc_ipc *sc_ipc, void *msg, bool have_resp) msg 209 drivers/firmware/imx/imx-scu.c if (WARN_ON(!sc_ipc || !msg)) msg 216 drivers/firmware/imx/imx-scu.c sc_ipc->msg = msg; msg 218 drivers/firmware/imx/imx-scu.c ret = imx_scu_ipc_write(sc_ipc, msg); msg 233 drivers/firmware/imx/imx-scu.c hdr = msg; msg 238 drivers/firmware/imx/imx-scu.c sc_ipc->msg = NULL; msg 54 drivers/firmware/imx/misc.c struct imx_sc_msg_req_misc_set_ctrl msg; msg 55 drivers/firmware/imx/misc.c struct imx_sc_rpc_msg *hdr = &msg.hdr; msg 62 drivers/firmware/imx/misc.c msg.ctrl = ctrl; msg 63 drivers/firmware/imx/misc.c msg.val = val; msg 64 drivers/firmware/imx/misc.c msg.resource = resource; msg 66 drivers/firmware/imx/misc.c return imx_scu_call_rpc(ipc, &msg, true); msg 84 drivers/firmware/imx/misc.c struct imx_sc_msg_req_misc_get_ctrl msg; msg 86 drivers/firmware/imx/misc.c struct imx_sc_rpc_msg *hdr = &msg.hdr; msg 94 drivers/firmware/imx/misc.c msg.ctrl = ctrl; msg 95 drivers/firmware/imx/misc.c msg.resource = resource; msg 97 drivers/firmware/imx/misc.c ret = imx_scu_call_rpc(ipc, &msg, true); msg 101 drivers/firmware/imx/misc.c resp = (struct imx_sc_msg_resp_misc_get_ctrl *)&msg; msg 122 drivers/firmware/imx/misc.c struct imx_sc_msg_req_cpu_start msg; msg 123 drivers/firmware/imx/misc.c struct imx_sc_rpc_msg *hdr = &msg.hdr; msg 130 drivers/firmware/imx/misc.c msg.address_hi = phys_addr >> 32; msg 131 drivers/firmware/imx/misc.c msg.address_lo = phys_addr; msg 132 drivers/firmware/imx/misc.c msg.resource = resource; msg 133 drivers/firmware/imx/misc.c msg.enable = enable; msg 135 drivers/firmware/imx/misc.c return imx_scu_call_rpc(ipc, &msg, true); msg 178 drivers/firmware/imx/scu-pd.c struct imx_sc_msg_req_set_resource_power_mode msg; msg 179 drivers/firmware/imx/scu-pd.c struct imx_sc_rpc_msg *hdr = &msg.hdr; msg 190 drivers/firmware/imx/scu-pd.c msg.resource = pd->rsrc; msg 191 drivers/firmware/imx/scu-pd.c msg.mode = power_on ? IMX_SC_PM_PW_MODE_ON : IMX_SC_PM_PW_MODE_LP; msg 193 drivers/firmware/imx/scu-pd.c ret = imx_scu_call_rpc(pm_ipc_handle, &msg, true); msg 18 drivers/firmware/raspberrypi.c #define MBOX_CHAN(msg) ((msg) & 0xf) msg 19 drivers/firmware/raspberrypi.c #define MBOX_DATA28(msg) ((msg) & ~0xf) msg 34 drivers/firmware/raspberrypi.c static void response_callback(struct mbox_client *cl, void *msg) msg 161 drivers/firmware/stratix10-rsu.c struct stratix10_svc_client_msg msg; msg 168 drivers/firmware/stratix10-rsu.c msg.command = command; msg 170 drivers/firmware/stratix10-rsu.c msg.arg[0] = arg; msg 172 drivers/firmware/stratix10-rsu.c ret = stratix10_svc_send(priv->chan, &msg); msg 796 drivers/firmware/stratix10-svc.c int stratix10_svc_send(struct stratix10_svc_chan *chan, void *msg) msg 799 drivers/firmware/stratix10-svc.c *p_msg = (struct stratix10_svc_client_msg *)msg; msg 114 drivers/firmware/tegra/bpmp-debugfs.c struct tegra_bpmp_message msg = { msg 127 drivers/firmware/tegra/bpmp-debugfs.c err = tegra_bpmp_transfer(bpmp, &msg); msg 149 drivers/firmware/tegra/bpmp-debugfs.c struct tegra_bpmp_message msg = { msg 157 drivers/firmware/tegra/bpmp-debugfs.c return tegra_bpmp_transfer(bpmp, &msg); msg 171 drivers/firmware/tegra/bpmp-debugfs.c struct tegra_bpmp_message msg = { msg 184 drivers/firmware/tegra/bpmp-debugfs.c err = tegra_bpmp_transfer(bpmp, &msg); msg 93 drivers/firmware/tegra/bpmp.c static bool tegra_bpmp_message_valid(const struct tegra_bpmp_message *msg) msg 95 drivers/firmware/tegra/bpmp.c return (msg->tx.size <= MSG_DATA_MIN_SZ) && msg 96 drivers/firmware/tegra/bpmp.c (msg->rx.size <= MSG_DATA_MIN_SZ) && msg 97 drivers/firmware/tegra/bpmp.c (msg->tx.size == 0 || msg->tx.data) && msg 98 drivers/firmware/tegra/bpmp.c (msg->rx.size == 0 || msg->rx.data); msg 317 drivers/firmware/tegra/bpmp.c struct tegra_bpmp_message *msg) msg 325 drivers/firmware/tegra/bpmp.c if (!tegra_bpmp_message_valid(msg)) msg 332 drivers/firmware/tegra/bpmp.c err = tegra_bpmp_channel_write(channel, msg->mrq, MSG_ACK, msg 333 drivers/firmware/tegra/bpmp.c msg->tx.data, msg->tx.size); msg 349 drivers/firmware/tegra/bpmp.c return __tegra_bpmp_channel_read(channel, msg->rx.data, msg->rx.size, msg 350 drivers/firmware/tegra/bpmp.c &msg->rx.ret); msg 355 drivers/firmware/tegra/bpmp.c struct tegra_bpmp_message *msg) msg 364 drivers/firmware/tegra/bpmp.c if (!tegra_bpmp_message_valid(msg)) msg 367 drivers/firmware/tegra/bpmp.c channel = tegra_bpmp_write_threaded(bpmp, msg->mrq, msg->tx.data, msg 368 drivers/firmware/tegra/bpmp.c msg->tx.size); msg 382 drivers/firmware/tegra/bpmp.c return tegra_bpmp_channel_read(channel, msg->rx.data, msg->rx.size, msg 383 drivers/firmware/tegra/bpmp.c &msg->rx.ret); msg 506 drivers/firmware/tegra/bpmp.c struct tegra_bpmp_message msg = { msg 519 drivers/firmware/tegra/bpmp.c ret = tegra_bpmp_transfer(bpmp, &msg); msg 520 drivers/firmware/tegra/bpmp.c if (ret || msg.rx.ret) msg 546 drivers/firmware/tegra/bpmp.c struct tegra_bpmp_message msg; msg 556 drivers/firmware/tegra/bpmp.c memset(&msg, 0, sizeof(msg)); msg 557 drivers/firmware/tegra/bpmp.c msg.mrq = MRQ_PING; msg 558 drivers/firmware/tegra/bpmp.c msg.tx.data = &request; msg 559 drivers/firmware/tegra/bpmp.c msg.tx.size = sizeof(request); msg 560 drivers/firmware/tegra/bpmp.c msg.rx.data = &response; msg 561 drivers/firmware/tegra/bpmp.c msg.rx.size = sizeof(response); msg 565 drivers/firmware/tegra/bpmp.c err = tegra_bpmp_transfer_atomic(bpmp, &msg); msg 583 drivers/firmware/tegra/bpmp.c struct tegra_bpmp_message msg; msg 600 drivers/firmware/tegra/bpmp.c memset(&msg, 0, sizeof(msg)); msg 601 drivers/firmware/tegra/bpmp.c msg.mrq = MRQ_QUERY_TAG; msg 602 drivers/firmware/tegra/bpmp.c msg.tx.data = &request; msg 603 drivers/firmware/tegra/bpmp.c msg.tx.size = sizeof(request); msg 606 drivers/firmware/tegra/bpmp.c err = tegra_bpmp_transfer_atomic(bpmp, &msg); msg 622 drivers/firmware/tegra/bpmp.c struct tegra_bpmp_message msg = { msg 634 drivers/firmware/tegra/bpmp.c err = tegra_bpmp_transfer(bpmp, &msg); msg 638 drivers/firmware/tegra/bpmp.c if (msg.rx.ret < 0) msg 159 drivers/firmware/turris-mox-rwtm.c struct armada_37xx_rwtm_rx_msg *msg = data; msg 161 drivers/firmware/turris-mox-rwtm.c rwtm->reply = *msg; msg 177 drivers/firmware/turris-mox-rwtm.c struct armada_37xx_rwtm_tx_msg msg; msg 181 drivers/firmware/turris-mox-rwtm.c msg.command = MBOX_CMD_BOARD_INFO; msg 182 drivers/firmware/turris-mox-rwtm.c ret = mbox_send_message(rwtm->mbox, &msg); msg 214 drivers/firmware/turris-mox-rwtm.c msg.command = MBOX_CMD_ECDSA_PUB_KEY; msg 215 drivers/firmware/turris-mox-rwtm.c ret = mbox_send_message(rwtm->mbox, &msg); msg 244 drivers/firmware/turris-mox-rwtm.c struct armada_37xx_rwtm_tx_msg msg; msg 250 drivers/firmware/turris-mox-rwtm.c msg.command = MBOX_CMD_GET_RANDOM; msg 251 drivers/firmware/turris-mox-rwtm.c msg.args[0] = 1; msg 252 drivers/firmware/turris-mox-rwtm.c msg.args[1] = rwtm->buf_phys; msg 253 drivers/firmware/turris-mox-rwtm.c msg.args[2] = (max + 3) & ~3; msg 262 drivers/firmware/turris-mox-rwtm.c ret = mbox_send_message(rwtm->mbox, &msg); msg 68 drivers/fpga/machxo2-spi.c struct spi_message msg; msg 79 drivers/fpga/machxo2-spi.c spi_message_init(&msg); msg 80 drivers/fpga/machxo2-spi.c spi_message_add_tail(&tx, &msg); msg 81 drivers/fpga/machxo2-spi.c spi_message_add_tail(&rx, &msg); msg 82 drivers/fpga/machxo2-spi.c ret = spi_sync(spi, &msg); msg 138 drivers/fpga/machxo2-spi.c struct spi_message msg; msg 145 drivers/fpga/machxo2-spi.c spi_message_init(&msg); msg 148 drivers/fpga/machxo2-spi.c spi_message_add_tail(&tx[0], &msg); msg 149 drivers/fpga/machxo2-spi.c ret = spi_sync(spi, &msg); msg 157 drivers/fpga/machxo2-spi.c spi_message_init(&msg); msg 161 drivers/fpga/machxo2-spi.c spi_message_add_tail(&tx[1], &msg); msg 162 drivers/fpga/machxo2-spi.c ret = spi_sync(spi, &msg); msg 191 drivers/fpga/machxo2-spi.c struct spi_message msg; msg 208 drivers/fpga/machxo2-spi.c spi_message_init(&msg); msg 212 drivers/fpga/machxo2-spi.c spi_message_add_tail(&tx[0], &msg); msg 216 drivers/fpga/machxo2-spi.c spi_message_add_tail(&tx[1], &msg); msg 217 drivers/fpga/machxo2-spi.c ret = spi_sync(spi, &msg); msg 230 drivers/fpga/machxo2-spi.c spi_message_init(&msg); msg 233 drivers/fpga/machxo2-spi.c spi_message_add_tail(&tx[2], &msg); msg 234 drivers/fpga/machxo2-spi.c ret = spi_sync(spi, &msg); msg 252 drivers/fpga/machxo2-spi.c struct spi_message msg; msg 269 drivers/fpga/machxo2-spi.c spi_message_init(&msg); msg 273 drivers/fpga/machxo2-spi.c spi_message_add_tail(&tx, &msg); msg 274 drivers/fpga/machxo2-spi.c ret = spi_sync(spi, &msg); msg 290 drivers/fpga/machxo2-spi.c struct spi_message msg; msg 298 drivers/fpga/machxo2-spi.c spi_message_init(&msg); msg 301 drivers/fpga/machxo2-spi.c spi_message_add_tail(&tx[0], &msg); msg 302 drivers/fpga/machxo2-spi.c ret = spi_sync(spi, &msg); msg 317 drivers/fpga/machxo2-spi.c spi_message_init(&msg); msg 321 drivers/fpga/machxo2-spi.c spi_message_add_tail(&tx[1], &msg); msg 322 drivers/fpga/machxo2-spi.c ret = spi_sync(spi, &msg); msg 51 drivers/fpga/stratix10-soc.c struct stratix10_svc_client_msg msg; msg 57 drivers/fpga/stratix10-soc.c msg.command = command; msg 58 drivers/fpga/stratix10-soc.c msg.payload = payload; msg 59 drivers/fpga/stratix10-soc.c msg.payload_length = payload_length; msg 61 drivers/fpga/stratix10-soc.c ret = stratix10_svc_send(chan, &msg); msg 123 drivers/fsi/fsi-master-ast-cf.c uint64_t msg; msg 130 drivers/fsi/fsi-master-ast-cf.c static void msg_push_bits(struct fsi_msg *msg, uint64_t data, int bits) msg 132 drivers/fsi/fsi-master-ast-cf.c msg->msg <<= bits; msg 133 drivers/fsi/fsi-master-ast-cf.c msg->msg |= data & ((1ull << bits) - 1); msg 134 drivers/fsi/fsi-master-ast-cf.c msg->bits += bits; msg 137 drivers/fsi/fsi-master-ast-cf.c static void msg_push_crc(struct fsi_msg *msg) msg 142 drivers/fsi/fsi-master-ast-cf.c top = msg->bits & 0x3; msg 145 drivers/fsi/fsi-master-ast-cf.c crc = crc4(0, 1 << top | msg->msg >> (msg->bits - top), top + 1); msg 148 drivers/fsi/fsi-master-ast-cf.c crc = crc4(crc, msg->msg, msg->bits - top); msg 150 drivers/fsi/fsi-master-ast-cf.c msg_push_bits(msg, crc, 4); msg 156 drivers/fsi/fsi-master-ast-cf.c cmd->msg <<= (64 - cmd->bits); msg 219 drivers/fsi/fsi-master-ast-cf.c cmd->msg = 0; msg 277 drivers/fsi/fsi-master-ast-cf.c cmd->msg = 0; msg 288 drivers/fsi/fsi-master-ast-cf.c cmd->msg = 0; msg 299 drivers/fsi/fsi-master-ast-cf.c cmd->msg = 0; msg 366 drivers/fsi/fsi-master-ast-cf.c iowrite32be((cmd->msg >> 32), master->sram + CMD_DATA); msg 367 drivers/fsi/fsi-master-ast-cf.c iowrite32be((cmd->msg & 0xffffffff), master->sram + CMD_DATA + 4); msg 45 drivers/fsi/fsi-master-gpio.c uint64_t msg; msg 112 drivers/fsi/fsi-master-gpio.c static void serial_in(struct fsi_master_gpio *master, struct fsi_gpio_msg *msg, msg 121 drivers/fsi/fsi-master-gpio.c msg->msg <<= 1; msg 122 drivers/fsi/fsi-master-gpio.c msg->msg |= ~in_bit & 0x1; /* Data is active low */ msg 124 drivers/fsi/fsi-master-gpio.c msg->bits += num_bits; msg 126 drivers/fsi/fsi-master-gpio.c trace_fsi_master_gpio_in(master, num_bits, msg->msg); msg 133 drivers/fsi/fsi-master-gpio.c uint64_t msg = ~cmd->msg; /* Data is active low */ msg 138 drivers/fsi/fsi-master-gpio.c trace_fsi_master_gpio_out(master, cmd->bits, cmd->msg); msg 152 drivers/fsi/fsi-master-gpio.c next_bit = (msg & sda_mask) >> (cmd->bits - 1); msg 158 drivers/fsi/fsi-master-gpio.c msg <<= 1; msg 162 drivers/fsi/fsi-master-gpio.c static void msg_push_bits(struct fsi_gpio_msg *msg, uint64_t data, int bits) msg 164 drivers/fsi/fsi-master-gpio.c msg->msg <<= bits; msg 165 drivers/fsi/fsi-master-gpio.c msg->msg |= data & ((1ull << bits) - 1); msg 166 drivers/fsi/fsi-master-gpio.c msg->bits += bits; msg 169 drivers/fsi/fsi-master-gpio.c static void msg_push_crc(struct fsi_gpio_msg *msg) msg 174 drivers/fsi/fsi-master-gpio.c top = msg->bits & 0x3; msg 177 drivers/fsi/fsi-master-gpio.c crc = crc4(0, 1 << top | msg->msg >> (msg->bits - top), top + 1); msg 180 drivers/fsi/fsi-master-gpio.c crc = crc4(crc, msg->msg, msg->bits - top); msg 182 drivers/fsi/fsi-master-gpio.c msg_push_bits(msg, crc, 4); msg 244 drivers/fsi/fsi-master-gpio.c cmd->msg = 0; msg 301 drivers/fsi/fsi-master-gpio.c cmd->msg = 0; msg 311 drivers/fsi/fsi-master-gpio.c cmd->msg = 0; msg 321 drivers/fsi/fsi-master-gpio.c cmd->msg = 0; msg 337 drivers/fsi/fsi-master-gpio.c struct fsi_gpio_msg msg; msg 347 drivers/fsi/fsi-master-gpio.c msg.bits = 0; msg 348 drivers/fsi/fsi-master-gpio.c msg.msg = 0; msg 349 drivers/fsi/fsi-master-gpio.c serial_in(master, &msg, 1); msg 350 drivers/fsi/fsi-master-gpio.c if (msg.msg) msg 360 drivers/fsi/fsi-master-gpio.c msg.bits = 0; msg 361 drivers/fsi/fsi-master-gpio.c msg.msg = 0; msg 364 drivers/fsi/fsi-master-gpio.c serial_in(master, &msg, 4); msg 366 drivers/fsi/fsi-master-gpio.c tag = msg.msg & 0x3; msg 370 drivers/fsi/fsi-master-gpio.c serial_in(master, &msg, data_size * 8); msg 373 drivers/fsi/fsi-master-gpio.c serial_in(master, &msg, FSI_CRC_SIZE); msg 379 drivers/fsi/fsi-master-gpio.c crc = crc4(crc, msg.msg, msg.bits); msg 382 drivers/fsi/fsi-master-gpio.c if (((~msg.msg) & ((1ull << msg.bits) - 1)) == 0) msg 385 drivers/fsi/fsi-master-gpio.c msg.msg, msg.bits); msg 390 drivers/fsi/fsi-master-gpio.c *msgp = msg; msg 463 drivers/fsi/fsi-master-gpio.c uint64_t val = response.msg; msg 499 drivers/fsi/fsi-master-gpio.c dev_dbg(master->dev, "ERRA received: 0x%x\n", (int)response.msg); msg 503 drivers/fsi/fsi-master-gpio.c dev_dbg(master->dev, "ERRC received: 0x%x\n", (int)response.msg); msg 321 drivers/gpio/gpio-max732x.c uint16_t msg; msg 335 drivers/gpio/gpio-max732x.c msg = (chip->irq_mask << 8) | chip->reg_out[0]; msg 336 drivers/gpio/gpio-max732x.c max732x_writew(chip, msg); msg 340 drivers/gpio/gpio-max732x.c msg = chip->irq_mask | chip->reg_out[0]; msg 341 drivers/gpio/gpio-max732x.c max732x_writeb(chip, 1, (uint8_t)msg); msg 323 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c struct i2c_msg msg = { msg 333 drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c if (i2c_transfer(&i2c_bus->adapter, &msg, 1) != 1) msg 85 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c struct i2c_msg msg = { msg 96 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c ret = i2c_transfer(&control->eeprom_accessor, &msg, 1); msg 111 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c struct i2c_msg msg = { msg 135 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c ret = i2c_transfer(&control->eeprom_accessor, &msg, 1); msg 378 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c struct i2c_msg *msg = &msgs[i]; msg 386 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c msg->addr = EEPROM_I2C_TARGET_ADDR | msg 388 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c msg->flags = write ? 0 : I2C_M_RD; msg 389 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c msg->len = EEPROM_ADDRESS_SIZE + EEPROM_TABLE_RECORD_SIZE; msg 390 drivers/gpu/drm/amd/amdgpu/amdgpu_ras_eeprom.c msg->buf = buff; msg 514 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c static int amdgpu_uvd_cs_msg_decode(struct amdgpu_device *adev, uint32_t *msg, msg 517 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c unsigned stream_type = msg[4]; msg 518 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c unsigned width = msg[6]; msg 519 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c unsigned height = msg[7]; msg 520 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c unsigned dpb_size = msg[9]; msg 521 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c unsigned pitch = msg[28]; msg 522 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c unsigned level = msg[57]; msg 670 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c num_dpb_buffer = (le32_to_cpu(msg[59]) & 0xff) + 2; msg 714 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c int32_t *msg, msg_type, handle; msg 730 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c msg = ptr + offset; msg 732 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c msg_type = msg[1]; msg 733 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c handle = msg[2]; msg 764 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c r = amdgpu_uvd_cs_msg_decode(adev, msg, ctx->buf_sizes); msg 1126 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c uint32_t *msg; msg 1131 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c &bo, NULL, (void **)&msg); msg 1136 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c msg[0] = cpu_to_le32(0x00000de4); msg 1137 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c msg[1] = cpu_to_le32(0x00000000); msg 1138 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c msg[2] = cpu_to_le32(handle); msg 1139 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c msg[3] = cpu_to_le32(0x00000000); msg 1140 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c msg[4] = cpu_to_le32(0x00000000); msg 1141 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c msg[5] = cpu_to_le32(0x00000000); msg 1142 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c msg[6] = cpu_to_le32(0x00000000); msg 1143 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c msg[7] = cpu_to_le32(0x00000780); msg 1144 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c msg[8] = cpu_to_le32(0x00000440); msg 1145 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c msg[9] = cpu_to_le32(0x00000000); msg 1146 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c msg[10] = cpu_to_le32(0x01b37000); msg 1148 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c msg[i] = cpu_to_le32(0x0); msg 1158 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c uint32_t *msg; msg 1163 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c &bo, NULL, (void **)&msg); msg 1168 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c msg[0] = cpu_to_le32(0x00000de4); msg 1169 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c msg[1] = cpu_to_le32(0x00000002); msg 1170 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c msg[2] = cpu_to_le32(handle); msg 1171 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c msg[3] = cpu_to_le32(0x00000000); msg 1173 drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c msg[i] = cpu_to_le32(0x0); msg 464 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c uint32_t *msg; msg 469 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c &bo, NULL, (void **)&msg); msg 473 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[0] = cpu_to_le32(0x00000028); msg 474 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[1] = cpu_to_le32(0x00000038); msg 475 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[2] = cpu_to_le32(0x00000001); msg 476 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[3] = cpu_to_le32(0x00000000); msg 477 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[4] = cpu_to_le32(handle); msg 478 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[5] = cpu_to_le32(0x00000000); msg 479 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[6] = cpu_to_le32(0x00000001); msg 480 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[7] = cpu_to_le32(0x00000028); msg 481 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[8] = cpu_to_le32(0x00000010); msg 482 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[9] = cpu_to_le32(0x00000000); msg 483 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[10] = cpu_to_le32(0x00000007); msg 484 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[11] = cpu_to_le32(0x00000000); msg 485 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[12] = cpu_to_le32(0x00000780); msg 486 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[13] = cpu_to_le32(0x00000440); msg 488 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[i] = cpu_to_le32(0x0); msg 498 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c uint32_t *msg; msg 503 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c &bo, NULL, (void **)&msg); msg 507 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[0] = cpu_to_le32(0x00000028); msg 508 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[1] = cpu_to_le32(0x00000018); msg 509 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[2] = cpu_to_le32(0x00000000); msg 510 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[3] = cpu_to_le32(0x00000002); msg 511 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[4] = cpu_to_le32(handle); msg 512 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[5] = cpu_to_le32(0x00000000); msg 514 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c msg[i] = cpu_to_le32(0x0); msg 127 drivers/gpu/drm/amd/amdgpu/atombios_dp.c amdgpu_atombios_dp_aux_transfer(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg) msg 136 drivers/gpu/drm/amd/amdgpu/atombios_dp.c if (WARN_ON(msg->size > 16)) msg 139 drivers/gpu/drm/amd/amdgpu/atombios_dp.c tx_buf[0] = msg->address & 0xff; msg 140 drivers/gpu/drm/amd/amdgpu/atombios_dp.c tx_buf[1] = msg->address >> 8; msg 141 drivers/gpu/drm/amd/amdgpu/atombios_dp.c tx_buf[2] = (msg->request << 4) | msg 142 drivers/gpu/drm/amd/amdgpu/atombios_dp.c ((msg->address >> 16) & 0xf); msg 143 drivers/gpu/drm/amd/amdgpu/atombios_dp.c tx_buf[3] = msg->size ? (msg->size - 1) : 0; msg 145 drivers/gpu/drm/amd/amdgpu/atombios_dp.c switch (msg->request & ~DP_AUX_I2C_MOT) { msg 151 drivers/gpu/drm/amd/amdgpu/atombios_dp.c tx_size = HEADER_SIZE + msg->size; msg 152 drivers/gpu/drm/amd/amdgpu/atombios_dp.c if (msg->size == 0) msg 156 drivers/gpu/drm/amd/amdgpu/atombios_dp.c memcpy(tx_buf + HEADER_SIZE, msg->buffer, msg->size); msg 161 drivers/gpu/drm/amd/amdgpu/atombios_dp.c ret = msg->size; msg 169 drivers/gpu/drm/amd/amdgpu/atombios_dp.c if (msg->size == 0) msg 174 drivers/gpu/drm/amd/amdgpu/atombios_dp.c tx_buf, tx_size, msg->buffer, msg->size, delay, &ack); msg 182 drivers/gpu/drm/amd/amdgpu/atombios_dp.c msg->reply = ack >> 4; msg 340 drivers/gpu/drm/amd/amdgpu/atombios_dp.c u8 msg[DP_DPCD_SIZE]; msg 344 drivers/gpu/drm/amd/amdgpu/atombios_dp.c msg, DP_DPCD_SIZE); msg 346 drivers/gpu/drm/amd/amdgpu/atombios_dp.c memcpy(dig_connector->dpcd, msg, DP_DPCD_SIZE); msg 220 drivers/gpu/drm/amd/amdgpu/kv_dpm.h PPSMC_Msg msg, u32 parameter); msg 69 drivers/gpu/drm/amd/amdgpu/kv_smc.c PPSMC_Msg msg, u32 parameter) msg 74 drivers/gpu/drm/amd/amdgpu/kv_smc.c return amdgpu_kv_notify_message_to_smu(adev, msg); msg 3845 drivers/gpu/drm/amd/amdgpu/si_dpm.c PPSMC_Msg msg, u32 parameter) msg 3848 drivers/gpu/drm/amd/amdgpu/si_dpm.c return amdgpu_si_send_msg_to_smc(adev, msg); msg 4094 drivers/gpu/drm/amd/amdgpu/si_dpm.c PPSMC_Msg msg = has_display ? msg 4097 drivers/gpu/drm/amd/amdgpu/si_dpm.c return (amdgpu_si_send_msg_to_smc(adev, msg) == PPSMC_Result_OK) ? msg 165 drivers/gpu/drm/amd/amdgpu/si_smc.c PPSMC_Msg msg) msg 173 drivers/gpu/drm/amd/amdgpu/si_smc.c WREG32(SMC_MESSAGE_0, msg); msg 414 drivers/gpu/drm/amd/amdgpu/sislands_smc.h PPSMC_Result amdgpu_si_send_msg_to_smc(struct amdgpu_device *adev, PPSMC_Msg msg); msg 342 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c static const char msg[] = "[dtn begin]\n"; msg 345 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c pr_info("%s", msg); msg 349 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c dm_dtn_log_append_v(ctx, log_ctx, "%s", msg); msg 354 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c const char *msg, ...) msg 364 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c vaf.fmt = msg; msg 367 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c va_start(args, msg); msg 375 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c va_start(args, msg); msg 376 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c n = vsnprintf(NULL, 0, msg, args); msg 401 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c va_start(args, msg); msg 405 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c msg, msg 416 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c static const char msg[] = "[dtn end]\n"; msg 419 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c pr_info("%s", msg); msg 423 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c dm_dtn_log_append_v(ctx, log_ctx, "%s", msg); msg 83 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c struct drm_dp_aux_msg *msg) msg 89 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c if (WARN_ON(msg->size > 16)) msg 92 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c payload.address = msg->address; msg 93 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c payload.data = msg->buffer; msg 94 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c payload.length = msg->size; msg 95 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c payload.reply = &msg->reply; msg 96 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c payload.i2c_over_aux = (msg->request & DP_AUX_NATIVE_WRITE) == 0; msg 97 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c payload.write = (msg->request & DP_AUX_I2C_READ) == 0; msg 98 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c payload.mot = (msg->request & DP_AUX_I2C_MOT) != 0; msg 105 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c result = msg->size; msg 365 drivers/gpu/drm/amd/display/dc/dm_services.h const char *msg, ...); msg 134 drivers/gpu/drm/amd/display/include/logger_interface.h #define DTN_INFO(msg, ...) \ msg 135 drivers/gpu/drm/amd/display/include/logger_interface.h dm_dtn_log_append_v(dc_ctx, log_ctx, msg, ##__VA_ARGS__) msg 154 drivers/gpu/drm/amd/display/include/logger_interface.h #define DISPLAY_STATS(msg, ...) DC_LOG_PERF_TRACE(msg, __VA_ARGS__) msg 158 drivers/gpu/drm/amd/display/include/logger_interface.h #define LOG_GAMMA_WRITE(msg, ...) msg 44 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c #define MSG_MAP(msg, index) \ msg 45 drivers/gpu/drm/amd/powerplay/arcturus_ppt.c [SMU_MSG_##msg] = {1, (index)} msg 62 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c PPSMC_Msg msg; msg 68 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c msg = PPSMC_MSG_SetHardMinDcefclkByFreq; msg 72 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c msg = PPSMC_MSG_SetHardMinSocclkByFreq; msg 78 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c msg = PPSMC_MSG_SetHardMinFclkByFreq; msg 84 drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c smum_send_msg_to_smc_with_parameter(hwmgr, msg, clk_freq); msg 167 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c PPSMC_Msg msg; msg 178 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c msg = ((*msg_id & PP_STATE_MASK) & PP_STATE_CG) ? msg 184 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c hwmgr, msg, value)) msg 188 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c msg = (*msg_id & PP_STATE_MASK) & PP_STATE_LS msg 194 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c hwmgr, msg, value)) msg 201 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c msg = ((*msg_id & PP_STATE_MASK) & PP_STATE_CG) ? msg 207 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c hwmgr, msg, value)) msg 212 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c msg = (*msg_id & PP_STATE_MASK) & PP_STATE_LS ? msg 218 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c hwmgr, msg, value)) msg 225 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c msg = (*msg_id & PP_STATE_MASK) & PP_STATE_LS ? msg 231 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c hwmgr, msg, value)) msg 238 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c msg = (*msg_id & PP_STATE_MASK) & PP_STATE_LS ? msg 244 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c hwmgr, msg, value)) msg 251 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c msg = ((*msg_id & PP_STATE_MASK) & PP_STATE_CG) ? msg 258 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c hwmgr, msg, value)) msg 272 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c msg = (*msg_id & PP_STATE_MASK) & PP_STATE_CG ? msg 278 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c hwmgr, msg, value)) msg 282 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c msg = (*msg_id & PP_STATE_MASK) & PP_STATE_LS ? msg 288 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c hwmgr, msg, value)) msg 295 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c msg = ((*msg_id & PP_STATE_MASK) & PP_STATE_CG) ? msg 301 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c hwmgr, msg, value)) msg 306 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c msg = (*msg_id & PP_STATE_MASK) & PP_STATE_LS ? msg 312 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c hwmgr, msg, value)) msg 319 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c msg = (*msg_id & PP_STATE_MASK) & PP_STATE_CG ? msg 325 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c hwmgr, msg, value)) msg 329 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c msg = (*msg_id & PP_STATE_MASK) & PP_STATE_LS ? msg 335 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c hwmgr, msg, value)) msg 342 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c msg = ((*msg_id & PP_STATE_MASK) & PP_STATE_CG) ? msg 348 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c hwmgr, msg, value)) msg 353 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c msg = (*msg_id & PP_STATE_MASK) & PP_STATE_LS ? msg 359 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c hwmgr, msg, value)) msg 366 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c msg = ((*msg_id & PP_STATE_MASK) & PP_STATE_CG) ? msg 372 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c hwmgr, msg, value)) msg 377 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c msg = (*msg_id & PP_STATE_MASK) & PP_STATE_LS ? msg 383 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c hwmgr, msg, value)) msg 390 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c msg = ((*msg_id & PP_STATE_MASK) & PP_STATE_CG) ? msg 396 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_clockpowergating.c hwmgr, msg, value)) msg 4043 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c PPSMC_Msg msg = has_display ? (PPSMC_Msg)PPSMC_HasDisplay : (PPSMC_Msg)PPSMC_NoDisplay; msg 4045 drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c return (smum_send_msg_to_smc(hwmgr, msg) == 0) ? 0 : -1; msg 69 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c uint32_t clock, uint32_t msg) msg 75 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c switch (msg) { msg 100 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c uint32_t clock, uint32_t msg) msg 106 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c switch (msg) { msg 130 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c uint32_t clock, uint32_t msg) msg 136 drivers/gpu/drm/amd/powerplay/hwmgr/smu8_hwmgr.c switch (msg) { msg 5224 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c uint16_t msg; msg 5229 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c msg = PPSMC_MSG_PrepareMp1ForUnload; msg 5238 drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c PP_ASSERT_WITH_CODE((ret = smum_send_msg_to_smc(hwmgr, msg)) == 0, msg 2645 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c uint16_t msg; msg 2650 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c msg = PPSMC_MSG_PrepareMp1ForUnload; msg 2659 drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c PP_ASSERT_WITH_CODE((ret = smum_send_msg_to_smc(hwmgr, msg)) == 0, msg 3121 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c uint16_t msg; msg 3126 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c msg = PPSMC_MSG_PrepareMp1ForShutdown; msg 3129 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c msg = PPSMC_MSG_PrepareMp1ForUnload; msg 3132 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c msg = PPSMC_MSG_PrepareMp1ForReset; msg 3139 drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c PP_ASSERT_WITH_CODE((ret = smum_send_msg_to_smc(hwmgr, msg)) == 0, msg 492 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h int (*send_smc_msg)(struct smu_context *smu, uint16_t msg); msg 493 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h int (*send_smc_msg_with_param)(struct smu_context *smu, uint16_t msg, uint32_t param); msg 602 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h #define smu_send_smc_msg(smu, msg) \ msg 603 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h ((smu)->funcs->send_smc_msg? (smu)->funcs->send_smc_msg((smu), (msg)) : 0) msg 604 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h #define smu_send_smc_msg_with_param(smu, msg, param) \ msg 605 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h ((smu)->funcs->send_smc_msg_with_param? (smu)->funcs->send_smc_msg_with_param((smu), (msg), (param)) : 0) msg 689 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h #define smu_msg_get_index(smu, msg) \ msg 690 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h ((smu)->ppt_funcs? ((smu)->ppt_funcs->get_smu_msg_index? (smu)->ppt_funcs->get_smu_msg_index((smu), (msg)) : -EINVAL) : -EINVAL) msg 691 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h #define smu_clk_get_index(smu, msg) \ msg 692 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h ((smu)->ppt_funcs? ((smu)->ppt_funcs->get_smu_clk_index? (smu)->ppt_funcs->get_smu_clk_index((smu), (msg)) : -EINVAL) : -EINVAL) msg 693 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h #define smu_feature_get_index(smu, msg) \ msg 694 drivers/gpu/drm/amd/powerplay/inc/amdgpu_smu.h ((smu)->ppt_funcs? ((smu)->ppt_funcs->get_smu_feature_index? (smu)->ppt_funcs->get_smu_feature_index((smu), (msg)) : -EINVAL) : -EINVAL) msg 211 drivers/gpu/drm/amd/powerplay/inc/hwmgr.h int (*send_msg_to_smc)(struct pp_hwmgr *hwmgr, uint16_t msg); msg 213 drivers/gpu/drm/amd/powerplay/inc/hwmgr.h uint16_t msg, uint32_t parameter); msg 37 drivers/gpu/drm/amd/powerplay/inc/pp_debug.h #define PP_ASSERT_WITH_CODE(cond, msg, code) \ msg 40 drivers/gpu/drm/amd/powerplay/inc/pp_debug.h pr_warn("%s\n", msg); \ msg 45 drivers/gpu/drm/amd/powerplay/inc/pp_debug.h #define PP_ASSERT(cond, msg) \ msg 48 drivers/gpu/drm/amd/powerplay/inc/pp_debug.h pr_warn("%s\n", msg); \ msg 90 drivers/gpu/drm/amd/powerplay/inc/smumgr.h extern int smum_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg); msg 93 drivers/gpu/drm/amd/powerplay/inc/smumgr.h uint16_t msg, uint32_t parameter); msg 52 drivers/gpu/drm/amd/powerplay/navi10_ppt.c #define MSG_MAP(msg, index) \ msg 53 drivers/gpu/drm/amd/powerplay/navi10_ppt.c [SMU_MSG_##msg] = {1, (index)} msg 33 drivers/gpu/drm/amd/powerplay/renoir_ppt.c #define MSG_MAP(msg, index) \ msg 34 drivers/gpu/drm/amd/powerplay/renoir_ppt.c [SMU_MSG_##msg] = {1, (index)} msg 57 drivers/gpu/drm/amd/powerplay/smu_v11_0.c uint16_t msg) msg 60 drivers/gpu/drm/amd/powerplay/smu_v11_0.c WREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_66, msg); msg 91 drivers/gpu/drm/amd/powerplay/smu_v11_0.c static int smu_v11_0_send_msg(struct smu_context *smu, uint16_t msg) msg 96 drivers/gpu/drm/amd/powerplay/smu_v11_0.c index = smu_msg_get_index(smu, msg); msg 110 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu_get_message_name(smu, msg), index, ret); msg 117 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu_v11_0_send_msg_with_param(struct smu_context *smu, uint16_t msg, msg 124 drivers/gpu/drm/amd/powerplay/smu_v11_0.c index = smu_msg_get_index(smu, msg); msg 131 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu_get_message_name(smu, msg), index, param, ret); msg 142 drivers/gpu/drm/amd/powerplay/smu_v11_0.c smu_get_message_name(smu, msg), index, param, ret); msg 45 drivers/gpu/drm/amd/powerplay/smu_v12_0.c uint16_t msg) msg 49 drivers/gpu/drm/amd/powerplay/smu_v12_0.c WREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_66, msg); msg 80 drivers/gpu/drm/amd/powerplay/smu_v12_0.c static int smu_v12_0_send_msg(struct smu_context *smu, uint16_t msg) msg 85 drivers/gpu/drm/amd/powerplay/smu_v12_0.c index = smu_msg_get_index(smu, msg); msg 106 drivers/gpu/drm/amd/powerplay/smu_v12_0.c smu_v12_0_send_msg_with_param(struct smu_context *smu, uint16_t msg, msg 112 drivers/gpu/drm/amd/powerplay/smu_v12_0.c index = smu_msg_get_index(smu, msg); msg 208 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c static int ci_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) msg 213 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c cgs_write_register(hwmgr->device, mmSMC_MESSAGE_0, msg); msg 220 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c pr_info("\n failed to send message %x ret is %d\n", msg, ret); msg 226 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c uint16_t msg, uint32_t parameter) msg 229 drivers/gpu/drm/amd/powerplay/smumgr/ci_smumgr.c return ci_send_msg_to_smc(hwmgr, msg); msg 63 drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c uint16_t msg) msg 67 drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c WREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_66, msg); msg 79 drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c static int smu10_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) msg 87 drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c smu10_send_msg_to_smc_without_waiting(hwmgr, msg); msg 90 drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c printk("Failed to send Message %x.\n", msg); msg 97 drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c uint16_t msg, uint32_t parameter) msg 107 drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c smu10_send_msg_to_smc_without_waiting(hwmgr, msg); msg 111 drivers/gpu/drm/amd/powerplay/smumgr/smu10_smumgr.c printk("Failed to send Message %x.\n", msg); msg 166 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c int smu7_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) msg 180 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c cgs_write_register(hwmgr->device, mmSMC_MESSAGE_0, msg); msg 187 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c pr_debug("message %x was not supported\n", msg); msg 189 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c pr_info("\n failed to send message %x ret is %d \n", msg, ret); msg 194 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c int smu7_send_msg_to_smc_without_waiting(struct pp_hwmgr *hwmgr, uint16_t msg) msg 196 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c cgs_write_register(hwmgr->device, mmSMC_MESSAGE_0, msg); msg 201 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c int smu7_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, uint16_t msg, uint32_t parameter) msg 207 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c return smu7_send_msg_to_smc(hwmgr, msg); msg 210 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c int smu7_send_msg_to_smc_with_parameter_without_waiting(struct pp_hwmgr *hwmgr, uint16_t msg, uint32_t parameter) msg 214 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.c return smu7_send_msg_to_smc_without_waiting(hwmgr, msg); msg 62 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.h int smu7_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg); msg 63 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.h int smu7_send_msg_to_smc_without_waiting(struct pp_hwmgr *hwmgr, uint16_t msg); msg 64 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.h int smu7_send_msg_to_smc_with_parameter(struct pp_hwmgr *hwmgr, uint16_t msg, msg 67 drivers/gpu/drm/amd/powerplay/smumgr/smu7_smumgr.h uint16_t msg, uint32_t parameter); msg 67 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c uint16_t msg, uint32_t parameter) msg 83 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c __func__, msg, val); msg 91 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c cgs_write_register(hwmgr->device, mmSMU_MP1_SRBM2P_MSG_0, msg); msg 99 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c __func__, msg, parameter, elapsed_us); msg 104 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c static int smu8_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) msg 106 drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c return smu8_send_msg_to_smc_with_parameter(hwmgr, msg, 0); msg 82 drivers/gpu/drm/amd/powerplay/smumgr/smu9_smumgr.c uint16_t msg) msg 86 drivers/gpu/drm/amd/powerplay/smumgr/smu9_smumgr.c WREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_66, msg); msg 97 drivers/gpu/drm/amd/powerplay/smumgr/smu9_smumgr.c int smu9_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) msg 106 drivers/gpu/drm/amd/powerplay/smumgr/smu9_smumgr.c smu9_send_msg_to_smc_without_waiting(hwmgr, msg); msg 110 drivers/gpu/drm/amd/powerplay/smumgr/smu9_smumgr.c pr_err("Failed to send message: 0x%x, ret value: 0x%x\n", msg, ret); msg 123 drivers/gpu/drm/amd/powerplay/smumgr/smu9_smumgr.c uint16_t msg, uint32_t parameter) msg 134 drivers/gpu/drm/amd/powerplay/smumgr/smu9_smumgr.c smu9_send_msg_to_smc_without_waiting(hwmgr, msg); msg 138 drivers/gpu/drm/amd/powerplay/smumgr/smu9_smumgr.c pr_err("Failed message: 0x%x, input parameter: 0x%x, error code: 0x%x\n", msg, parameter, ret); msg 27 drivers/gpu/drm/amd/powerplay/smumgr/smu9_smumgr.h int smu9_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg); msg 29 drivers/gpu/drm/amd/powerplay/smumgr/smu9_smumgr.h uint16_t msg, uint32_t parameter); msg 138 drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c int smum_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) msg 143 drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c return hwmgr->smumgr_funcs->send_msg_to_smc(hwmgr, msg); msg 147 drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c uint16_t msg, uint32_t parameter) msg 153 drivers/gpu/drm/amd/powerplay/smumgr/smumgr.c hwmgr, msg, parameter); msg 100 drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c int msg = enable ? PPSMC_MSG_EnableSmuFeatures : msg 104 drivers/gpu/drm/amd/powerplay/smumgr/vega10_smumgr.c msg, feature_mask); msg 88 drivers/gpu/drm/amd/powerplay/smumgr/vega20_smumgr.c uint16_t msg) msg 92 drivers/gpu/drm/amd/powerplay/smumgr/vega20_smumgr.c WREG32_SOC15(MP1, 0, mmMP1_SMN_C2PMSG_66, msg); msg 103 drivers/gpu/drm/amd/powerplay/smumgr/vega20_smumgr.c static int vega20_send_msg_to_smc(struct pp_hwmgr *hwmgr, uint16_t msg) msg 112 drivers/gpu/drm/amd/powerplay/smumgr/vega20_smumgr.c vega20_send_msg_to_smc_without_waiting(hwmgr, msg); msg 116 drivers/gpu/drm/amd/powerplay/smumgr/vega20_smumgr.c pr_err("Failed to send message 0x%x, response 0x%x\n", msg, ret); msg 129 drivers/gpu/drm/amd/powerplay/smumgr/vega20_smumgr.c uint16_t msg, uint32_t parameter) msg 140 drivers/gpu/drm/amd/powerplay/smumgr/vega20_smumgr.c vega20_send_msg_to_smc_without_waiting(hwmgr, msg); msg 144 drivers/gpu/drm/amd/powerplay/smumgr/vega20_smumgr.c pr_err("Failed to send message 0x%x, response 0x%x\n", msg, ret); msg 49 drivers/gpu/drm/amd/powerplay/vega20_ppt.c #define MSG_MAP(msg) \ msg 50 drivers/gpu/drm/amd/powerplay/vega20_ppt.c [SMU_MSG_##msg] = {1, PPSMC_MSG_##msg} msg 94 drivers/gpu/drm/bridge/adv7511/adv7511_cec.c struct cec_msg msg = {}; msg 109 drivers/gpu/drm/bridge/adv7511/adv7511_cec.c msg.len = len & 0x1f; msg 111 drivers/gpu/drm/bridge/adv7511/adv7511_cec.c if (msg.len > 16) msg 112 drivers/gpu/drm/bridge/adv7511/adv7511_cec.c msg.len = 16; msg 114 drivers/gpu/drm/bridge/adv7511/adv7511_cec.c if (!msg.len) msg 117 drivers/gpu/drm/bridge/adv7511/adv7511_cec.c for (i = 0; i < msg.len; i++) { msg 120 drivers/gpu/drm/bridge/adv7511/adv7511_cec.c msg.msg[i] = val; msg 128 drivers/gpu/drm/bridge/adv7511/adv7511_cec.c cec_received_msg(adv7511->cec_adap, &msg); msg 248 drivers/gpu/drm/bridge/adv7511/adv7511_cec.c u32 signal_free_time, struct cec_msg *msg) msg 253 drivers/gpu/drm/bridge/adv7511/adv7511_cec.c u8 len = msg->len; msg 272 drivers/gpu/drm/bridge/adv7511/adv7511_cec.c msg->msg[i]); msg 184 drivers/gpu/drm/bridge/analogix-anx78xx.c struct drm_dp_aux_msg *msg) msg 187 drivers/gpu/drm/bridge/analogix-anx78xx.c u8 ctrl1 = msg->request; msg 189 drivers/gpu/drm/bridge/analogix-anx78xx.c u8 *buffer = msg->buffer; msg 193 drivers/gpu/drm/bridge/analogix-anx78xx.c if (WARN_ON(msg->size > AUX_CH_BUFFER_SIZE)) msg 197 drivers/gpu/drm/bridge/analogix-anx78xx.c if (msg->size < 1) msg 200 drivers/gpu/drm/bridge/analogix-anx78xx.c ctrl1 |= (msg->size - 1) << SP_AUX_LENGTH_SHIFT; msg 202 drivers/gpu/drm/bridge/analogix-anx78xx.c if ((msg->request & DP_AUX_I2C_READ) == 0) { msg 206 drivers/gpu/drm/bridge/analogix-anx78xx.c msg->size); msg 212 drivers/gpu/drm/bridge/analogix-anx78xx.c err = anx78xx_aux_address(anx78xx, msg->address); msg 232 drivers/gpu/drm/bridge/analogix-anx78xx.c msg->reply = DP_AUX_I2C_REPLY_ACK; msg 234 drivers/gpu/drm/bridge/analogix-anx78xx.c if ((msg->size > 0) && (msg->request & DP_AUX_I2C_READ)) { msg 238 drivers/gpu/drm/bridge/analogix-anx78xx.c msg->size); msg 248 drivers/gpu/drm/bridge/analogix-anx78xx.c return msg->size; msg 1630 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c struct drm_dp_aux_msg *msg) msg 1634 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c return analogix_dp_transfer(dp, msg); msg 257 drivers/gpu/drm/bridge/analogix/analogix_dp_core.h struct drm_dp_aux_msg *msg); msg 1102 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c struct drm_dp_aux_msg *msg) msg 1106 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c u8 *buffer = msg->buffer; msg 1112 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c if (WARN_ON(msg->size > 16)) msg 1119 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c switch (msg->request & ~DP_AUX_I2C_MOT) { msg 1122 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c if (msg->request & DP_AUX_I2C_MOT) msg 1128 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c if (msg->request & DP_AUX_I2C_MOT) msg 1144 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c reg |= AUX_LENGTH(msg->size); msg 1148 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c reg = AUX_ADDR_7_0(msg->address); msg 1150 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c reg = AUX_ADDR_15_8(msg->address); msg 1152 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c reg = AUX_ADDR_19_16(msg->address); msg 1155 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c if (!(msg->request & DP_AUX_I2C_READ)) { msg 1156 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c for (i = 0; i < msg->size; i++) { msg 1168 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c if (msg->size < 1) msg 1203 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c if (msg->request & DP_AUX_I2C_READ) { msg 1204 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c for (i = 0; i < msg->size; i++) { msg 1215 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c msg->reply = DP_AUX_NATIVE_REPLY_DEFER; msg 1217 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c msg->reply = DP_AUX_I2C_REPLY_DEFER; msg 1218 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c else if ((msg->request & ~DP_AUX_I2C_MOT) == DP_AUX_I2C_WRITE || msg 1219 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c (msg->request & ~DP_AUX_I2C_MOT) == DP_AUX_I2C_READ) msg 1220 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c msg->reply = DP_AUX_I2C_REPLY_ACK; msg 1221 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c else if ((msg->request & ~DP_AUX_I2C_MOT) == DP_AUX_NATIVE_WRITE || msg 1222 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c (msg->request & ~DP_AUX_I2C_MOT) == DP_AUX_NATIVE_READ) msg 1223 drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c msg->reply = DP_AUX_NATIVE_REPLY_ACK; msg 1022 drivers/gpu/drm/bridge/cdns-dsi.c const struct mipi_dsi_msg *msg) msg 1035 drivers/gpu/drm/bridge/cdns-dsi.c ret = mipi_dsi_create_packet(&packet, msg); msg 1039 drivers/gpu/drm/bridge/cdns-dsi.c tx_len = msg->tx_buf ? msg->tx_len : 0; msg 1040 drivers/gpu/drm/bridge/cdns-dsi.c rx_len = msg->rx_buf ? msg->rx_len : 0; msg 1060 drivers/gpu/drm/bridge/cdns-dsi.c cmd = CMD_SIZE(tx_len) | CMD_VCHAN_ID(msg->channel) | msg 1061 drivers/gpu/drm/bridge/cdns-dsi.c CMD_DATATYPE(msg->type); msg 1063 drivers/gpu/drm/bridge/cdns-dsi.c if (msg->flags & MIPI_DSI_MSG_USE_LPM) msg 1066 drivers/gpu/drm/bridge/cdns-dsi.c if (mipi_dsi_packet_format_is_long(msg->type)) msg 1073 drivers/gpu/drm/bridge/cdns-dsi.c } else if (msg->flags & MIPI_DSI_MSG_REQ_ACK) { msg 1085 drivers/gpu/drm/bridge/cdns-dsi.c const u8 *buf = msg->tx_buf; msg 1124 drivers/gpu/drm/bridge/cdns-dsi.c u8 *buf = msg->rx_buf; msg 76 drivers/gpu/drm/bridge/parade-ps8622.c struct i2c_msg msg; msg 79 drivers/gpu/drm/bridge/parade-ps8622.c msg.addr = client->addr + page; msg 80 drivers/gpu/drm/bridge/parade-ps8622.c msg.flags = 0; msg 81 drivers/gpu/drm/bridge/parade-ps8622.c msg.len = sizeof(data); msg 82 drivers/gpu/drm/bridge/parade-ps8622.c msg.buf = data; msg 84 drivers/gpu/drm/bridge/parade-ps8622.c ret = i2c_transfer(adap, &msg, 1); msg 106 drivers/gpu/drm/bridge/sil-sii8620.c struct sii8620_mt_msg *msg); msg 149 drivers/gpu/drm/bridge/sil-sii8620.c struct i2c_msg msg[] = { msg 168 drivers/gpu/drm/bridge/sil-sii8620.c ret = i2c_transfer(client->adapter, msg, 2); msg 192 drivers/gpu/drm/bridge/sil-sii8620.c struct i2c_msg msg = { msg 203 drivers/gpu/drm/bridge/sil-sii8620.c msg.buf = kmalloc(len + 1, GFP_KERNEL); msg 204 drivers/gpu/drm/bridge/sil-sii8620.c if (!msg.buf) { msg 208 drivers/gpu/drm/bridge/sil-sii8620.c memcpy(msg.buf + 1, buf, len); msg 210 drivers/gpu/drm/bridge/sil-sii8620.c msg.buf = data; msg 211 drivers/gpu/drm/bridge/sil-sii8620.c msg.buf[1] = *buf; msg 214 drivers/gpu/drm/bridge/sil-sii8620.c msg.buf[0] = addr; msg 216 drivers/gpu/drm/bridge/sil-sii8620.c ret = i2c_transfer(client->adapter, &msg, 1); msg 226 drivers/gpu/drm/bridge/sil-sii8620.c kfree(msg.buf); msg 268 drivers/gpu/drm/bridge/sil-sii8620.c struct sii8620_mt_msg *msg, *n; msg 270 drivers/gpu/drm/bridge/sil-sii8620.c list_for_each_entry_safe(msg, n, &ctx->mt_queue, node) { msg 271 drivers/gpu/drm/bridge/sil-sii8620.c list_del(&msg->node); msg 272 drivers/gpu/drm/bridge/sil-sii8620.c kfree(msg); msg 279 drivers/gpu/drm/bridge/sil-sii8620.c struct sii8620_mt_msg *msg; msg 288 drivers/gpu/drm/bridge/sil-sii8620.c msg = list_first_entry(&ctx->mt_queue, struct sii8620_mt_msg, msg 290 drivers/gpu/drm/bridge/sil-sii8620.c list_del(&msg->node); msg 291 drivers/gpu/drm/bridge/sil-sii8620.c if (msg->recv) msg 292 drivers/gpu/drm/bridge/sil-sii8620.c msg->recv(ctx, msg); msg 293 drivers/gpu/drm/bridge/sil-sii8620.c if (msg->continuation) msg 294 drivers/gpu/drm/bridge/sil-sii8620.c msg->continuation(ctx, msg->ret); msg 295 drivers/gpu/drm/bridge/sil-sii8620.c kfree(msg); msg 302 drivers/gpu/drm/bridge/sil-sii8620.c msg = list_first_entry(&ctx->mt_queue, struct sii8620_mt_msg, node); msg 303 drivers/gpu/drm/bridge/sil-sii8620.c if (msg->send) msg 304 drivers/gpu/drm/bridge/sil-sii8620.c msg->send(ctx, msg); msg 351 drivers/gpu/drm/bridge/sil-sii8620.c struct sii8620_mt_msg *msg) msg 353 drivers/gpu/drm/bridge/sil-sii8620.c if (msg->reg[0] == MHL_SET_INT && msg 354 drivers/gpu/drm/bridge/sil-sii8620.c msg->reg[1] == MHL_INT_REG(RCHANGE) && msg 355 drivers/gpu/drm/bridge/sil-sii8620.c msg->reg[2] == MHL_INT_RC_FEAT_REQ) msg 360 drivers/gpu/drm/bridge/sil-sii8620.c switch (msg->reg[0]) { msg 363 drivers/gpu/drm/bridge/sil-sii8620.c sii8620_write_buf(ctx, REG_MSC_CMD_OR_OFFSET, msg->reg + 1, 2); msg 368 drivers/gpu/drm/bridge/sil-sii8620.c sii8620_write_buf(ctx, REG_MSC_CMD_OR_OFFSET, msg->reg, 3); msg 374 drivers/gpu/drm/bridge/sil-sii8620.c sii8620_write(ctx, REG_MSC_CMD_OR_OFFSET, msg->reg[1]); msg 380 drivers/gpu/drm/bridge/sil-sii8620.c msg->reg[0]); msg 386 drivers/gpu/drm/bridge/sil-sii8620.c struct sii8620_mt_msg *msg = kzalloc(sizeof(*msg), GFP_KERNEL); msg 388 drivers/gpu/drm/bridge/sil-sii8620.c if (!msg) msg 391 drivers/gpu/drm/bridge/sil-sii8620.c list_add_tail(&msg->node, &ctx->mt_queue); msg 393 drivers/gpu/drm/bridge/sil-sii8620.c return msg; msg 398 drivers/gpu/drm/bridge/sil-sii8620.c struct sii8620_mt_msg *msg; msg 407 drivers/gpu/drm/bridge/sil-sii8620.c msg = list_last_entry(&ctx->mt_queue, struct sii8620_mt_msg, node); msg 408 drivers/gpu/drm/bridge/sil-sii8620.c msg->continuation = cont; msg 413 drivers/gpu/drm/bridge/sil-sii8620.c struct sii8620_mt_msg *msg = sii8620_mt_msg_new(ctx); msg 415 drivers/gpu/drm/bridge/sil-sii8620.c if (!msg) msg 418 drivers/gpu/drm/bridge/sil-sii8620.c msg->reg[0] = cmd; msg 419 drivers/gpu/drm/bridge/sil-sii8620.c msg->reg[1] = arg1; msg 420 drivers/gpu/drm/bridge/sil-sii8620.c msg->reg[2] = arg2; msg 421 drivers/gpu/drm/bridge/sil-sii8620.c msg->send = sii8620_mt_msc_cmd_send; msg 455 drivers/gpu/drm/bridge/sil-sii8620.c struct sii8620_mt_msg *msg) msg 461 drivers/gpu/drm/bridge/sil-sii8620.c if (msg->reg[0] == MHL_READ_XDEVCAP) msg 539 drivers/gpu/drm/bridge/sil-sii8620.c struct sii8620_mt_msg *msg) msg 545 drivers/gpu/drm/bridge/sil-sii8620.c if (msg->reg[0] == MHL_READ_XDEVCAP) msg 555 drivers/gpu/drm/bridge/sil-sii8620.c if (msg->reg[0] == MHL_READ_XDEVCAP) msg 563 drivers/gpu/drm/bridge/sil-sii8620.c struct sii8620_mt_msg *msg = sii8620_mt_msg_new(ctx); msg 565 drivers/gpu/drm/bridge/sil-sii8620.c if (!msg) msg 568 drivers/gpu/drm/bridge/sil-sii8620.c msg->reg[0] = xdevcap ? MHL_READ_XDEVCAP : MHL_READ_DEVCAP; msg 569 drivers/gpu/drm/bridge/sil-sii8620.c msg->send = sii8620_mt_read_devcap_send; msg 570 drivers/gpu/drm/bridge/sil-sii8620.c msg->recv = sii8620_mt_read_devcap_recv; msg 574 drivers/gpu/drm/bridge/sil-sii8620.c struct sii8620_mt_msg *msg) msg 576 drivers/gpu/drm/bridge/sil-sii8620.c u8 reg = msg->reg[1] & 0x7f; msg 578 drivers/gpu/drm/bridge/sil-sii8620.c if (msg->reg[1] & 0x80) msg 579 drivers/gpu/drm/bridge/sil-sii8620.c ctx->xdevcap[reg] = msg->ret; msg 581 drivers/gpu/drm/bridge/sil-sii8620.c ctx->devcap[reg] = msg->ret; msg 586 drivers/gpu/drm/bridge/sil-sii8620.c struct sii8620_mt_msg *msg = sii8620_mt_msg_new(ctx); msg 588 drivers/gpu/drm/bridge/sil-sii8620.c if (!msg) msg 591 drivers/gpu/drm/bridge/sil-sii8620.c msg->reg[0] = (reg & 0x80) ? MHL_READ_XDEVCAP_REG : MHL_READ_DEVCAP_REG; msg 592 drivers/gpu/drm/bridge/sil-sii8620.c msg->reg[1] = reg; msg 593 drivers/gpu/drm/bridge/sil-sii8620.c msg->send = sii8620_mt_msc_cmd_send; msg 594 drivers/gpu/drm/bridge/sil-sii8620.c msg->recv = sii8620_mt_read_devcap_reg_recv; msg 1818 drivers/gpu/drm/bridge/sil-sii8620.c struct sii8620_mt_msg *msg = sii8620_msc_msg_first(ctx); msg 1820 drivers/gpu/drm/bridge/sil-sii8620.c if (!msg) msg 1823 drivers/gpu/drm/bridge/sil-sii8620.c msg->ret = sii8620_readb(ctx, REG_MSC_MT_RCVD_DATA0); msg 1829 drivers/gpu/drm/bridge/sil-sii8620.c struct sii8620_mt_msg *msg; msg 1836 drivers/gpu/drm/bridge/sil-sii8620.c msg = sii8620_msc_msg_first(ctx); msg 1837 drivers/gpu/drm/bridge/sil-sii8620.c if (!msg) msg 1839 drivers/gpu/drm/bridge/sil-sii8620.c msg->ret = buf[1]; msg 93 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c u32 signal_free_time, struct cec_msg *msg) msg 111 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c for (i = 0; i < msg->len; i++) msg 112 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, msg->msg[i], HDMI_CEC_TX_DATA0 + i); msg 114 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c dw_hdmi_write(cec, msg->len, HDMI_CEC_TX_CNT); msg 150 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c if (len > sizeof(cec->rx_msg.msg)) msg 151 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c len = sizeof(cec->rx_msg.msg); msg 154 drivers/gpu/drm/bridge/synopsys/dw-hdmi-cec.c cec->rx_msg.msg[i] = msg 358 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c const struct mipi_dsi_msg *msg) msg 360 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c bool lpm = msg->flags & MIPI_DSI_MSG_USE_LPM; msg 363 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c if (msg->flags & MIPI_DSI_MSG_REQ_ACK) msg 436 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c const struct mipi_dsi_msg *msg) msg 438 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c int i, j, ret, len = msg->rx_len; msg 439 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c u8 *buf = msg->rx_buf; msg 470 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c const struct mipi_dsi_msg *msg) msg 476 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c ret = mipi_dsi_create_packet(&packet, msg); msg 482 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c dw_mipi_message_config(dsi, msg); msg 484 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c dw_mipi_message_config(dsi->slave, msg); msg 495 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c if (msg->rx_buf && msg->rx_len) { msg 496 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c ret = dw_mipi_dsi_read(dsi, msg); msg 499 drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c nb_bytes = msg->rx_len; msg 329 drivers/gpu/drm/bridge/tc358767.c static u32 tc_auxcfg0(struct drm_dp_aux_msg *msg, size_t size) msg 331 drivers/gpu/drm/bridge/tc358767.c u32 auxcfg0 = msg->request; msg 342 drivers/gpu/drm/bridge/tc358767.c struct drm_dp_aux_msg *msg) msg 345 drivers/gpu/drm/bridge/tc358767.c size_t size = min_t(size_t, DP_AUX_MAX_PAYLOAD_BYTES - 1, msg->size); msg 346 drivers/gpu/drm/bridge/tc358767.c u8 request = msg->request & ~DP_AUX_I2C_MOT; msg 361 drivers/gpu/drm/bridge/tc358767.c ret = tc_aux_write_data(tc, msg->buffer, size); msg 371 drivers/gpu/drm/bridge/tc358767.c ret = regmap_write(tc->regmap, DP0_AUXADDR, msg->address); msg 375 drivers/gpu/drm/bridge/tc358767.c ret = regmap_write(tc->regmap, DP0_AUXCFG0, tc_auxcfg0(msg, size)); msg 397 drivers/gpu/drm/bridge/tc358767.c msg->reply = FIELD_GET(AUX_STATUS, auxstatus); msg 403 drivers/gpu/drm/bridge/tc358767.c return tc_aux_read_data(tc, msg->buffer, size); msg 613 drivers/gpu/drm/bridge/ti-sn65dsi86.c struct drm_dp_aux_msg *msg) msg 616 drivers/gpu/drm/bridge/ti-sn65dsi86.c u32 request = msg->request & ~DP_AUX_I2C_MOT; msg 617 drivers/gpu/drm/bridge/ti-sn65dsi86.c u32 request_val = AUX_CMD_REQ(msg->request); msg 618 drivers/gpu/drm/bridge/ti-sn65dsi86.c u8 *buf = (u8 *)msg->buffer; msg 622 drivers/gpu/drm/bridge/ti-sn65dsi86.c if (msg->size > SN_AUX_MAX_PAYLOAD_BYTES) msg 637 drivers/gpu/drm/bridge/ti-sn65dsi86.c (msg->address >> 16) & 0xF); msg 639 drivers/gpu/drm/bridge/ti-sn65dsi86.c (msg->address >> 8) & 0xFF); msg 640 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_AUX_ADDR_7_0_REG, msg->address & 0xFF); msg 642 drivers/gpu/drm/bridge/ti-sn65dsi86.c regmap_write(pdata->regmap, SN_AUX_LENGTH_REG, msg->size); msg 645 drivers/gpu/drm/bridge/ti-sn65dsi86.c for (i = 0; i < msg->size; i++) msg 667 drivers/gpu/drm/bridge/ti-sn65dsi86.c return msg->size; msg 669 drivers/gpu/drm/bridge/ti-sn65dsi86.c for (i = 0; i < msg->size; i++) { msg 680 drivers/gpu/drm/bridge/ti-sn65dsi86.c return msg->size; msg 115 drivers/gpu/drm/drm_dp_cec.c u32 signal_free_time, struct cec_msg *msg) msg 122 drivers/gpu/drm/drm_dp_cec.c msg->msg, msg->len); msg 127 drivers/gpu/drm/drm_dp_cec.c (msg->len - 1) | (retries << 4) | msg 188 drivers/gpu/drm/drm_dp_cec.c struct cec_msg msg; msg 199 drivers/gpu/drm/drm_dp_cec.c msg.len = (rx_msg_info & DP_CEC_RX_MESSAGE_LEN_MASK) + 1; msg 200 drivers/gpu/drm/drm_dp_cec.c err = drm_dp_dpcd_read(aux, DP_CEC_RX_MESSAGE_BUFFER, msg.msg, msg.len); msg 204 drivers/gpu/drm/drm_dp_cec.c cec_received_msg(adap, &msg); msg 107 drivers/gpu/drm/drm_dp_dual_mode_helper.c struct i2c_msg msg = { msg 116 drivers/gpu/drm/drm_dp_dual_mode_helper.c data = kmalloc(msg.len, GFP_KERNEL); msg 120 drivers/gpu/drm/drm_dp_dual_mode_helper.c msg.buf = data; msg 125 drivers/gpu/drm/drm_dp_dual_mode_helper.c ret = i2c_transfer(adapter, &msg, 1); msg 198 drivers/gpu/drm/drm_dp_helper.c struct drm_dp_aux_msg msg; msg 202 drivers/gpu/drm/drm_dp_helper.c memset(&msg, 0, sizeof(msg)); msg 203 drivers/gpu/drm/drm_dp_helper.c msg.address = offset; msg 204 drivers/gpu/drm/drm_dp_helper.c msg.request = request; msg 205 drivers/gpu/drm/drm_dp_helper.c msg.buffer = buffer; msg 206 drivers/gpu/drm/drm_dp_helper.c msg.size = size; msg 222 drivers/gpu/drm/drm_dp_helper.c ret = aux->transfer(aux, &msg); msg 225 drivers/gpu/drm/drm_dp_helper.c native_reply = msg.reply & DP_AUX_NATIVE_REPLY_MASK; msg 654 drivers/gpu/drm/drm_dp_helper.c static void drm_dp_i2c_msg_write_status_update(struct drm_dp_aux_msg *msg) msg 661 drivers/gpu/drm/drm_dp_helper.c if ((msg->request & ~DP_AUX_I2C_MOT) == DP_AUX_I2C_WRITE) { msg 662 drivers/gpu/drm/drm_dp_helper.c msg->request &= DP_AUX_I2C_MOT; msg 663 drivers/gpu/drm/drm_dp_helper.c msg->request |= DP_AUX_I2C_WRITE_STATUS_UPDATE; msg 679 drivers/gpu/drm/drm_dp_helper.c static int drm_dp_aux_req_duration(const struct drm_dp_aux_msg *msg) msg 684 drivers/gpu/drm/drm_dp_helper.c if ((msg->request & DP_AUX_I2C_READ) == 0) msg 685 drivers/gpu/drm/drm_dp_helper.c len += msg->size * 8; msg 690 drivers/gpu/drm/drm_dp_helper.c static int drm_dp_aux_reply_duration(const struct drm_dp_aux_msg *msg) msg 699 drivers/gpu/drm/drm_dp_helper.c if (msg->request & DP_AUX_I2C_READ) msg 700 drivers/gpu/drm/drm_dp_helper.c len += msg->size * 8; msg 718 drivers/gpu/drm/drm_dp_helper.c static int drm_dp_i2c_msg_duration(const struct drm_dp_aux_msg *msg, msg 723 drivers/gpu/drm/drm_dp_helper.c msg->size * I2C_DATA_LEN + msg 732 drivers/gpu/drm/drm_dp_helper.c static int drm_dp_i2c_retry_count(const struct drm_dp_aux_msg *msg, msg 735 drivers/gpu/drm/drm_dp_helper.c int aux_time_us = drm_dp_aux_req_duration(msg) + msg 736 drivers/gpu/drm/drm_dp_helper.c drm_dp_aux_reply_duration(msg); msg 737 drivers/gpu/drm/drm_dp_helper.c int i2c_time_us = drm_dp_i2c_msg_duration(msg, i2c_speed_khz); msg 759 drivers/gpu/drm/drm_dp_helper.c static int drm_dp_i2c_do_msg(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg) msg 770 drivers/gpu/drm/drm_dp_helper.c int max_retries = max(7, drm_dp_i2c_retry_count(msg, dp_aux_i2c_speed_khz)); msg 773 drivers/gpu/drm/drm_dp_helper.c ret = aux->transfer(aux, msg); msg 793 drivers/gpu/drm/drm_dp_helper.c switch (msg->reply & DP_AUX_NATIVE_REPLY_MASK) { msg 802 drivers/gpu/drm/drm_dp_helper.c DRM_DEBUG_KMS("native nack (result=%d, size=%zu)\n", ret, msg->size); msg 820 drivers/gpu/drm/drm_dp_helper.c DRM_ERROR("invalid native reply %#04x\n", msg->reply); msg 824 drivers/gpu/drm/drm_dp_helper.c switch (msg->reply & DP_AUX_I2C_REPLY_MASK) { msg 830 drivers/gpu/drm/drm_dp_helper.c if (ret != msg->size) msg 831 drivers/gpu/drm/drm_dp_helper.c drm_dp_i2c_msg_write_status_update(msg); msg 836 drivers/gpu/drm/drm_dp_helper.c ret, msg->size); msg 850 drivers/gpu/drm/drm_dp_helper.c drm_dp_i2c_msg_write_status_update(msg); msg 855 drivers/gpu/drm/drm_dp_helper.c DRM_ERROR("invalid I2C reply %#04x\n", msg->reply); msg 864 drivers/gpu/drm/drm_dp_helper.c static void drm_dp_i2c_msg_set_request(struct drm_dp_aux_msg *msg, msg 867 drivers/gpu/drm/drm_dp_helper.c msg->request = (i2c_msg->flags & I2C_M_RD) ? msg 870 drivers/gpu/drm/drm_dp_helper.c msg->request |= DP_AUX_I2C_MOT; msg 881 drivers/gpu/drm/drm_dp_helper.c struct drm_dp_aux_msg msg = *orig_msg; msg 883 drivers/gpu/drm/drm_dp_helper.c while (msg.size > 0) { msg 884 drivers/gpu/drm/drm_dp_helper.c err = drm_dp_i2c_do_msg(aux, &msg); msg 888 drivers/gpu/drm/drm_dp_helper.c if (err < msg.size && err < ret) { msg 890 drivers/gpu/drm/drm_dp_helper.c msg.size, err); msg 894 drivers/gpu/drm/drm_dp_helper.c msg.size -= err; msg 895 drivers/gpu/drm/drm_dp_helper.c msg.buffer += err; msg 917 drivers/gpu/drm/drm_dp_helper.c struct drm_dp_aux_msg msg; msg 922 drivers/gpu/drm/drm_dp_helper.c memset(&msg, 0, sizeof(msg)); msg 925 drivers/gpu/drm/drm_dp_helper.c msg.address = msgs[i].addr; msg 926 drivers/gpu/drm/drm_dp_helper.c drm_dp_i2c_msg_set_request(&msg, &msgs[i]); msg 931 drivers/gpu/drm/drm_dp_helper.c msg.buffer = NULL; msg 932 drivers/gpu/drm/drm_dp_helper.c msg.size = 0; msg 933 drivers/gpu/drm/drm_dp_helper.c err = drm_dp_i2c_do_msg(aux, &msg); msg 939 drivers/gpu/drm/drm_dp_helper.c drm_dp_i2c_msg_set_request(&msg, &msgs[i]); msg 948 drivers/gpu/drm/drm_dp_helper.c for (j = 0; j < msgs[i].len; j += msg.size) { msg 949 drivers/gpu/drm/drm_dp_helper.c msg.buffer = msgs[i].buf + j; msg 950 drivers/gpu/drm/drm_dp_helper.c msg.size = min(transfer_size, msgs[i].len - j); msg 952 drivers/gpu/drm/drm_dp_helper.c err = drm_dp_i2c_drain_msg(aux, &msg); msg 958 drivers/gpu/drm/drm_dp_helper.c drm_dp_i2c_msg_set_request(&msg, &msgs[i]); msg 973 drivers/gpu/drm/drm_dp_helper.c msg.request &= ~DP_AUX_I2C_MOT; msg 974 drivers/gpu/drm/drm_dp_helper.c msg.buffer = NULL; msg 975 drivers/gpu/drm/drm_dp_helper.c msg.size = 0; msg 976 drivers/gpu/drm/drm_dp_helper.c (void)drm_dp_i2c_do_msg(aux, &msg); msg 270 drivers/gpu/drm/drm_dp_mst_topology.c u8 *buf = raw->msg; msg 372 drivers/gpu/drm/drm_dp_mst_topology.c static void drm_dp_crc_sideband_chunk_req(u8 *msg, u8 len) msg 375 drivers/gpu/drm/drm_dp_mst_topology.c crc4 = drm_dp_msg_data_crc4(msg, len); msg 376 drivers/gpu/drm/drm_dp_mst_topology.c msg[len] = crc4; msg 383 drivers/gpu/drm/drm_dp_mst_topology.c u8 *buf = raw->msg; msg 391 drivers/gpu/drm/drm_dp_mst_topology.c static bool drm_dp_sideband_msg_build(struct drm_dp_sideband_msg_rx *msg, msg 410 drivers/gpu/drm/drm_dp_mst_topology.c if (!recv_hdr.somt && !msg->have_somt) msg 414 drivers/gpu/drm/drm_dp_mst_topology.c msg->curchunk_len = recv_hdr.msg_len; msg 415 drivers/gpu/drm/drm_dp_mst_topology.c msg->curchunk_hdrlen = hdrlen; msg 418 drivers/gpu/drm/drm_dp_mst_topology.c if (recv_hdr.somt && msg->have_somt) msg 422 drivers/gpu/drm/drm_dp_mst_topology.c memcpy(&msg->initial_hdr, &recv_hdr, sizeof(struct drm_dp_sideband_msg_hdr)); msg 423 drivers/gpu/drm/drm_dp_mst_topology.c msg->have_somt = true; msg 426 drivers/gpu/drm/drm_dp_mst_topology.c msg->have_eomt = true; msg 429 drivers/gpu/drm/drm_dp_mst_topology.c msg->curchunk_idx = min(msg->curchunk_len, (u8)(replybuflen - hdrlen)); msg 430 drivers/gpu/drm/drm_dp_mst_topology.c memcpy(&msg->chunk[0], replybuf + hdrlen, msg->curchunk_idx); msg 432 drivers/gpu/drm/drm_dp_mst_topology.c memcpy(&msg->chunk[msg->curchunk_idx], replybuf, replybuflen); msg 433 drivers/gpu/drm/drm_dp_mst_topology.c msg->curchunk_idx += replybuflen; msg 436 drivers/gpu/drm/drm_dp_mst_topology.c if (msg->curchunk_idx >= msg->curchunk_len) { msg 438 drivers/gpu/drm/drm_dp_mst_topology.c crc4 = drm_dp_msg_data_crc4(msg->chunk, msg->curchunk_len - 1); msg 440 drivers/gpu/drm/drm_dp_mst_topology.c memcpy(&msg->msg[msg->curlen], msg->chunk, msg->curchunk_len - 1); msg 441 drivers/gpu/drm/drm_dp_mst_topology.c msg->curlen += msg->curchunk_len - 1; msg 451 drivers/gpu/drm/drm_dp_mst_topology.c memcpy(repmsg->u.link_addr.guid, &raw->msg[idx], 16); msg 453 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.link_addr.nports = raw->msg[idx] & 0xf; msg 458 drivers/gpu/drm/drm_dp_mst_topology.c if (raw->msg[idx] & 0x80) msg 461 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.link_addr.ports[i].peer_device_type = (raw->msg[idx] >> 4) & 0x7; msg 462 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.link_addr.ports[i].port_number = (raw->msg[idx] & 0xf); msg 467 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.link_addr.ports[i].mcs = (raw->msg[idx] >> 7) & 0x1; msg 468 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.link_addr.ports[i].ddps = (raw->msg[idx] >> 6) & 0x1; msg 470 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.link_addr.ports[i].legacy_device_plug_status = (raw->msg[idx] >> 5) & 0x1; msg 475 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.link_addr.ports[i].dpcd_revision = (raw->msg[idx]); msg 479 drivers/gpu/drm/drm_dp_mst_topology.c memcpy(repmsg->u.link_addr.ports[i].peer_guid, &raw->msg[idx], 16); msg 483 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.link_addr.ports[i].num_sdp_streams = (raw->msg[idx] >> 4) & 0xf; msg 484 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.link_addr.ports[i].num_sdp_stream_sinks = (raw->msg[idx] & 0xf); msg 502 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.remote_dpcd_read_ack.port_number = raw->msg[idx] & 0xf; msg 506 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.remote_dpcd_read_ack.num_bytes = raw->msg[idx]; msg 511 drivers/gpu/drm/drm_dp_mst_topology.c memcpy(repmsg->u.remote_dpcd_read_ack.bytes, &raw->msg[idx], repmsg->u.remote_dpcd_read_ack.num_bytes); msg 522 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.remote_dpcd_write_ack.port_number = raw->msg[idx] & 0xf; msg 537 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.remote_i2c_read_ack.port_number = (raw->msg[idx] & 0xf); msg 541 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.remote_i2c_read_ack.num_bytes = raw->msg[idx]; msg 544 drivers/gpu/drm/drm_dp_mst_topology.c memcpy(repmsg->u.remote_i2c_read_ack.bytes, &raw->msg[idx], repmsg->u.remote_i2c_read_ack.num_bytes); msg 555 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.path_resources.port_number = (raw->msg[idx] >> 4) & 0xf; msg 559 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.path_resources.full_payload_bw_number = (raw->msg[idx] << 8) | (raw->msg[idx+1]); msg 563 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.path_resources.avail_payload_bw_number = (raw->msg[idx] << 8) | (raw->msg[idx+1]); msg 577 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.allocate_payload.port_number = (raw->msg[idx] >> 4) & 0xf; msg 581 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.allocate_payload.vcpi = raw->msg[idx]; msg 585 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.allocate_payload.allocated_pbn = (raw->msg[idx] << 8) | (raw->msg[idx+1]); msg 599 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.query_payload.port_number = (raw->msg[idx] >> 4) & 0xf; msg 603 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.query_payload.allocated_pbn = (raw->msg[idx] << 8) | (raw->msg[idx + 1]); msg 618 drivers/gpu/drm/drm_dp_mst_topology.c repmsg->u.port_number.port_number = (raw->msg[idx] >> 4) & 0xf; msg 629 drivers/gpu/drm/drm_dp_mst_topology.c struct drm_dp_sideband_msg_reply_body *msg) msg 631 drivers/gpu/drm/drm_dp_mst_topology.c memset(msg, 0, sizeof(*msg)); msg 632 drivers/gpu/drm/drm_dp_mst_topology.c msg->reply_type = (raw->msg[0] & 0x80) >> 7; msg 633 drivers/gpu/drm/drm_dp_mst_topology.c msg->req_type = (raw->msg[0] & 0x7f); msg 635 drivers/gpu/drm/drm_dp_mst_topology.c if (msg->reply_type == DP_SIDEBAND_REPLY_NAK) { msg 636 drivers/gpu/drm/drm_dp_mst_topology.c memcpy(msg->u.nak.guid, &raw->msg[1], 16); msg 637 drivers/gpu/drm/drm_dp_mst_topology.c msg->u.nak.reason = raw->msg[17]; msg 638 drivers/gpu/drm/drm_dp_mst_topology.c msg->u.nak.nak_data = raw->msg[18]; msg 642 drivers/gpu/drm/drm_dp_mst_topology.c switch (msg->req_type) { msg 644 drivers/gpu/drm/drm_dp_mst_topology.c return drm_dp_sideband_parse_link_address(raw, msg); msg 646 drivers/gpu/drm/drm_dp_mst_topology.c return drm_dp_sideband_parse_query_payload_ack(raw, msg); msg 648 drivers/gpu/drm/drm_dp_mst_topology.c return drm_dp_sideband_parse_remote_dpcd_read(raw, msg); msg 650 drivers/gpu/drm/drm_dp_mst_topology.c return drm_dp_sideband_parse_remote_dpcd_write(raw, msg); msg 652 drivers/gpu/drm/drm_dp_mst_topology.c return drm_dp_sideband_parse_remote_i2c_read_ack(raw, msg); msg 654 drivers/gpu/drm/drm_dp_mst_topology.c return drm_dp_sideband_parse_enum_path_resources_ack(raw, msg); msg 656 drivers/gpu/drm/drm_dp_mst_topology.c return drm_dp_sideband_parse_allocate_payload_ack(raw, msg); msg 659 drivers/gpu/drm/drm_dp_mst_topology.c return drm_dp_sideband_parse_power_updown_phy_ack(raw, msg); msg 661 drivers/gpu/drm/drm_dp_mst_topology.c DRM_ERROR("Got unknown reply 0x%02x (%s)\n", msg->req_type, msg 662 drivers/gpu/drm/drm_dp_mst_topology.c drm_dp_mst_req_type_str(msg->req_type)); msg 668 drivers/gpu/drm/drm_dp_mst_topology.c struct drm_dp_sideband_msg_req_body *msg) msg 672 drivers/gpu/drm/drm_dp_mst_topology.c msg->u.conn_stat.port_number = (raw->msg[idx] & 0xf0) >> 4; msg 677 drivers/gpu/drm/drm_dp_mst_topology.c memcpy(msg->u.conn_stat.guid, &raw->msg[idx], 16); msg 682 drivers/gpu/drm/drm_dp_mst_topology.c msg->u.conn_stat.legacy_device_plug_status = (raw->msg[idx] >> 6) & 0x1; msg 683 drivers/gpu/drm/drm_dp_mst_topology.c msg->u.conn_stat.displayport_device_plug_status = (raw->msg[idx] >> 5) & 0x1; msg 684 drivers/gpu/drm/drm_dp_mst_topology.c msg->u.conn_stat.message_capability_status = (raw->msg[idx] >> 4) & 0x1; msg 685 drivers/gpu/drm/drm_dp_mst_topology.c msg->u.conn_stat.input_port = (raw->msg[idx] >> 3) & 0x1; msg 686 drivers/gpu/drm/drm_dp_mst_topology.c msg->u.conn_stat.peer_device_type = (raw->msg[idx] & 0x7); msg 695 drivers/gpu/drm/drm_dp_mst_topology.c struct drm_dp_sideband_msg_req_body *msg) msg 699 drivers/gpu/drm/drm_dp_mst_topology.c msg->u.resource_stat.port_number = (raw->msg[idx] & 0xf0) >> 4; msg 704 drivers/gpu/drm/drm_dp_mst_topology.c memcpy(msg->u.resource_stat.guid, &raw->msg[idx], 16); msg 709 drivers/gpu/drm/drm_dp_mst_topology.c msg->u.resource_stat.available_pbn = (raw->msg[idx] << 8) | (raw->msg[idx + 1]); msg 718 drivers/gpu/drm/drm_dp_mst_topology.c struct drm_dp_sideband_msg_req_body *msg) msg 720 drivers/gpu/drm/drm_dp_mst_topology.c memset(msg, 0, sizeof(*msg)); msg 721 drivers/gpu/drm/drm_dp_mst_topology.c msg->req_type = (raw->msg[0] & 0x7f); msg 723 drivers/gpu/drm/drm_dp_mst_topology.c switch (msg->req_type) { msg 725 drivers/gpu/drm/drm_dp_mst_topology.c return drm_dp_sideband_parse_connection_status_notify(raw, msg); msg 727 drivers/gpu/drm/drm_dp_mst_topology.c return drm_dp_sideband_parse_resource_status_notify(raw, msg); msg 729 drivers/gpu/drm/drm_dp_mst_topology.c DRM_ERROR("Got unknown request 0x%02x (%s)\n", msg->req_type, msg 730 drivers/gpu/drm/drm_dp_mst_topology.c drm_dp_mst_req_type_str(msg->req_type)); msg 735 drivers/gpu/drm/drm_dp_mst_topology.c static int build_dpcd_write(struct drm_dp_sideband_msg_tx *msg, u8 port_num, u32 offset, u8 num_bytes, u8 *bytes) msg 744 drivers/gpu/drm/drm_dp_mst_topology.c drm_dp_encode_sideband_req(&req, msg); msg 749 drivers/gpu/drm/drm_dp_mst_topology.c static int build_link_address(struct drm_dp_sideband_msg_tx *msg) msg 754 drivers/gpu/drm/drm_dp_mst_topology.c drm_dp_encode_sideband_req(&req, msg); msg 758 drivers/gpu/drm/drm_dp_mst_topology.c static int build_enum_path_resources(struct drm_dp_sideband_msg_tx *msg, int port_num) msg 764 drivers/gpu/drm/drm_dp_mst_topology.c drm_dp_encode_sideband_req(&req, msg); msg 765 drivers/gpu/drm/drm_dp_mst_topology.c msg->path_msg = true; msg 769 drivers/gpu/drm/drm_dp_mst_topology.c static int build_allocate_payload(struct drm_dp_sideband_msg_tx *msg, int port_num, msg 783 drivers/gpu/drm/drm_dp_mst_topology.c drm_dp_encode_sideband_req(&req, msg); msg 784 drivers/gpu/drm/drm_dp_mst_topology.c msg->path_msg = true; msg 788 drivers/gpu/drm/drm_dp_mst_topology.c static int build_power_updown_phy(struct drm_dp_sideband_msg_tx *msg, msg 799 drivers/gpu/drm/drm_dp_mst_topology.c drm_dp_encode_sideband_req(&req, msg); msg 800 drivers/gpu/drm/drm_dp_mst_topology.c msg->path_msg = true; msg 1911 drivers/gpu/drm/drm_dp_mst_topology.c static int build_dpcd_read(struct drm_dp_sideband_msg_tx *msg, u8 port_num, u32 offset, u8 num_bytes) msg 1919 drivers/gpu/drm/drm_dp_mst_topology.c drm_dp_encode_sideband_req(&req, msg); msg 1925 drivers/gpu/drm/drm_dp_mst_topology.c bool up, u8 *msg, int len) msg 1939 drivers/gpu/drm/drm_dp_mst_topology.c &msg[offset], msg 1978 drivers/gpu/drm/drm_dp_mst_topology.c req_type = txmsg->msg[0] & 0x7f; msg 2032 drivers/gpu/drm/drm_dp_mst_topology.c memcpy(&chunk[idx], &txmsg->msg[txmsg->cur_offset], tosend); msg 2626 drivers/gpu/drm/drm_dp_mst_topology.c static int drm_dp_encode_up_ack_reply(struct drm_dp_sideband_msg_tx *msg, u8 req_type) msg 2632 drivers/gpu/drm/drm_dp_mst_topology.c drm_dp_encode_sideband_reply(&reply, msg); msg 2855 drivers/gpu/drm/drm_dp_mst_topology.c struct drm_dp_sideband_msg_rx *msg; msg 2857 drivers/gpu/drm/drm_dp_mst_topology.c msg = up ? &mgr->up_req_recv : &mgr->down_rep_recv; msg 2866 drivers/gpu/drm/drm_dp_mst_topology.c ret = drm_dp_sideband_msg_build(msg, replyblock, len, true); msg 2871 drivers/gpu/drm/drm_dp_mst_topology.c replylen = msg->curchunk_len + msg->curchunk_hdrlen; msg 2886 drivers/gpu/drm/drm_dp_mst_topology.c ret = drm_dp_sideband_msg_build(msg, replyblock, len, false); msg 2935 drivers/gpu/drm/drm_dp_mst_topology.c mgr->down_rep_recv.msg[0]); msg 2975 drivers/gpu/drm/drm_dp_mst_topology.c struct drm_dp_sideband_msg_req_body msg; msg 2991 drivers/gpu/drm/drm_dp_mst_topology.c drm_dp_sideband_parse_req(&mgr->up_req_recv, &msg); msg 2993 drivers/gpu/drm/drm_dp_mst_topology.c if (msg.req_type == DP_CONNECTION_STATUS_NOTIFY) { msg 2994 drivers/gpu/drm/drm_dp_mst_topology.c drm_dp_send_up_ack_reply(mgr, mgr->mst_primary, msg.req_type, seqno, false); msg 2997 drivers/gpu/drm/drm_dp_mst_topology.c mstb = drm_dp_get_mst_branch_device_by_guid(mgr, msg.u.conn_stat.guid); msg 3005 drivers/gpu/drm/drm_dp_mst_topology.c drm_dp_update_port(mstb, &msg.u.conn_stat); msg 3007 drivers/gpu/drm/drm_dp_mst_topology.c DRM_DEBUG_KMS("Got CSN: pn: %d ldps:%d ddps: %d mcs: %d ip: %d pdt: %d\n", msg.u.conn_stat.port_number, msg.u.conn_stat.legacy_device_plug_status, msg.u.conn_stat.displayport_device_plug_status, msg.u.conn_stat.message_capability_status, msg.u.conn_stat.input_port, msg.u.conn_stat.peer_device_type); msg 3010 drivers/gpu/drm/drm_dp_mst_topology.c } else if (msg.req_type == DP_RESOURCE_STATUS_NOTIFY) { msg 3011 drivers/gpu/drm/drm_dp_mst_topology.c drm_dp_send_up_ack_reply(mgr, mgr->mst_primary, msg.req_type, seqno, false); msg 3013 drivers/gpu/drm/drm_dp_mst_topology.c mstb = drm_dp_get_mst_branch_device_by_guid(mgr, msg.u.resource_stat.guid); msg 3021 drivers/gpu/drm/drm_dp_mst_topology.c DRM_DEBUG_KMS("Got RSN: pn: %d avail_pbn %d\n", msg.u.resource_stat.port_number, msg.u.resource_stat.available_pbn); msg 4046 drivers/gpu/drm/drm_dp_mst_topology.c struct drm_dp_sideband_msg_req_body msg; msg 4060 drivers/gpu/drm/drm_dp_mst_topology.c memset(&msg, 0, sizeof(msg)); msg 4061 drivers/gpu/drm/drm_dp_mst_topology.c msg.req_type = DP_REMOTE_I2C_READ; msg 4062 drivers/gpu/drm/drm_dp_mst_topology.c msg.u.i2c_read.num_transactions = num - 1; msg 4063 drivers/gpu/drm/drm_dp_mst_topology.c msg.u.i2c_read.port_number = port->port_num; msg 4065 drivers/gpu/drm/drm_dp_mst_topology.c msg.u.i2c_read.transactions[i].i2c_dev_id = msgs[i].addr; msg 4066 drivers/gpu/drm/drm_dp_mst_topology.c msg.u.i2c_read.transactions[i].num_bytes = msgs[i].len; msg 4067 drivers/gpu/drm/drm_dp_mst_topology.c msg.u.i2c_read.transactions[i].bytes = msgs[i].buf; msg 4068 drivers/gpu/drm/drm_dp_mst_topology.c msg.u.i2c_read.transactions[i].no_stop_bit = !(msgs[i].flags & I2C_M_STOP); msg 4070 drivers/gpu/drm/drm_dp_mst_topology.c msg.u.i2c_read.read_i2c_device_id = msgs[num - 1].addr; msg 4071 drivers/gpu/drm/drm_dp_mst_topology.c msg.u.i2c_read.num_bytes_read = msgs[num - 1].len; msg 4080 drivers/gpu/drm/drm_dp_mst_topology.c drm_dp_encode_sideband_req(&msg, txmsg); msg 349 drivers/gpu/drm/drm_mipi_dsi.c struct mipi_dsi_msg *msg) msg 357 drivers/gpu/drm/drm_mipi_dsi.c msg->flags |= MIPI_DSI_MSG_USE_LPM; msg 359 drivers/gpu/drm/drm_mipi_dsi.c return ops->transfer(dsi->host, msg); msg 440 drivers/gpu/drm/drm_mipi_dsi.c const struct mipi_dsi_msg *msg) msg 442 drivers/gpu/drm/drm_mipi_dsi.c if (!packet || !msg) msg 446 drivers/gpu/drm/drm_mipi_dsi.c if (!mipi_dsi_packet_format_is_short(msg->type) && msg 447 drivers/gpu/drm/drm_mipi_dsi.c !mipi_dsi_packet_format_is_long(msg->type)) msg 450 drivers/gpu/drm/drm_mipi_dsi.c if (msg->channel > 3) msg 454 drivers/gpu/drm/drm_mipi_dsi.c packet->header[0] = ((msg->channel & 0x3) << 6) | (msg->type & 0x3f); msg 465 drivers/gpu/drm/drm_mipi_dsi.c if (mipi_dsi_packet_format_is_long(msg->type)) { msg 466 drivers/gpu/drm/drm_mipi_dsi.c packet->header[1] = (msg->tx_len >> 0) & 0xff; msg 467 drivers/gpu/drm/drm_mipi_dsi.c packet->header[2] = (msg->tx_len >> 8) & 0xff; msg 469 drivers/gpu/drm/drm_mipi_dsi.c packet->payload_length = msg->tx_len; msg 470 drivers/gpu/drm/drm_mipi_dsi.c packet->payload = msg->tx_buf; msg 472 drivers/gpu/drm/drm_mipi_dsi.c const u8 *tx = msg->tx_buf; msg 474 drivers/gpu/drm/drm_mipi_dsi.c packet->header[1] = (msg->tx_len > 0) ? tx[0] : 0; msg 475 drivers/gpu/drm/drm_mipi_dsi.c packet->header[2] = (msg->tx_len > 1) ? tx[1] : 0; msg 492 drivers/gpu/drm/drm_mipi_dsi.c struct mipi_dsi_msg msg = { msg 498 drivers/gpu/drm/drm_mipi_dsi.c int ret = mipi_dsi_device_transfer(dsi, &msg); msg 512 drivers/gpu/drm/drm_mipi_dsi.c struct mipi_dsi_msg msg = { msg 518 drivers/gpu/drm/drm_mipi_dsi.c int ret = mipi_dsi_device_transfer(dsi, &msg); msg 537 drivers/gpu/drm/drm_mipi_dsi.c struct mipi_dsi_msg msg = { msg 543 drivers/gpu/drm/drm_mipi_dsi.c int ret = mipi_dsi_device_transfer(dsi, &msg); msg 564 drivers/gpu/drm/drm_mipi_dsi.c struct mipi_dsi_msg msg = { msg 572 drivers/gpu/drm/drm_mipi_dsi.c msg.type = MIPI_DSI_GENERIC_SHORT_WRITE_0_PARAM; msg 576 drivers/gpu/drm/drm_mipi_dsi.c msg.type = MIPI_DSI_GENERIC_SHORT_WRITE_1_PARAM; msg 580 drivers/gpu/drm/drm_mipi_dsi.c msg.type = MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM; msg 584 drivers/gpu/drm/drm_mipi_dsi.c msg.type = MIPI_DSI_GENERIC_LONG_WRITE; msg 588 drivers/gpu/drm/drm_mipi_dsi.c return mipi_dsi_device_transfer(dsi, &msg); msg 609 drivers/gpu/drm/drm_mipi_dsi.c struct mipi_dsi_msg msg = { msg 619 drivers/gpu/drm/drm_mipi_dsi.c msg.type = MIPI_DSI_GENERIC_READ_REQUEST_0_PARAM; msg 623 drivers/gpu/drm/drm_mipi_dsi.c msg.type = MIPI_DSI_GENERIC_READ_REQUEST_1_PARAM; msg 627 drivers/gpu/drm/drm_mipi_dsi.c msg.type = MIPI_DSI_GENERIC_READ_REQUEST_2_PARAM; msg 634 drivers/gpu/drm/drm_mipi_dsi.c return mipi_dsi_device_transfer(dsi, &msg); msg 653 drivers/gpu/drm/drm_mipi_dsi.c struct mipi_dsi_msg msg = { msg 664 drivers/gpu/drm/drm_mipi_dsi.c msg.type = MIPI_DSI_DCS_SHORT_WRITE; msg 668 drivers/gpu/drm/drm_mipi_dsi.c msg.type = MIPI_DSI_DCS_SHORT_WRITE_PARAM; msg 672 drivers/gpu/drm/drm_mipi_dsi.c msg.type = MIPI_DSI_DCS_LONG_WRITE; msg 676 drivers/gpu/drm/drm_mipi_dsi.c return mipi_dsi_device_transfer(dsi, &msg); msg 736 drivers/gpu/drm/drm_mipi_dsi.c struct mipi_dsi_msg msg = { msg 745 drivers/gpu/drm/drm_mipi_dsi.c return mipi_dsi_device_transfer(dsi, &msg); msg 96 drivers/gpu/drm/drm_scdc_helper.c struct i2c_msg msg = { msg 109 drivers/gpu/drm/drm_scdc_helper.c msg.buf = data; msg 114 drivers/gpu/drm/drm_scdc_helper.c err = i2c_transfer(adapter, &msg, 1); msg 1601 drivers/gpu/drm/exynos/exynos_drm_dsi.c const struct mipi_dsi_msg *msg) msg 1617 drivers/gpu/drm/exynos/exynos_drm_dsi.c ret = mipi_dsi_create_packet(&xfer.packet, msg); msg 1621 drivers/gpu/drm/exynos/exynos_drm_dsi.c xfer.rx_len = msg->rx_len; msg 1622 drivers/gpu/drm/exynos/exynos_drm_dsi.c xfer.rx_payload = msg->rx_buf; msg 1623 drivers/gpu/drm/exynos/exynos_drm_dsi.c xfer.flags = msg->flags; msg 675 drivers/gpu/drm/gma500/cdv_intel_dp.c uint8_t msg[20]; msg 681 drivers/gpu/drm/gma500/cdv_intel_dp.c msg[0] = DP_AUX_NATIVE_WRITE << 4; msg 682 drivers/gpu/drm/gma500/cdv_intel_dp.c msg[1] = address >> 8; msg 683 drivers/gpu/drm/gma500/cdv_intel_dp.c msg[2] = address & 0xff; msg 684 drivers/gpu/drm/gma500/cdv_intel_dp.c msg[3] = send_bytes - 1; msg 685 drivers/gpu/drm/gma500/cdv_intel_dp.c memcpy(&msg[4], send, send_bytes); msg 688 drivers/gpu/drm/gma500/cdv_intel_dp.c ret = cdv_intel_dp_aux_ch(encoder, msg, msg_bytes, &ack, 1); msg 715 drivers/gpu/drm/gma500/cdv_intel_dp.c uint8_t msg[4]; msg 722 drivers/gpu/drm/gma500/cdv_intel_dp.c msg[0] = DP_AUX_NATIVE_READ << 4; msg 723 drivers/gpu/drm/gma500/cdv_intel_dp.c msg[1] = address >> 8; msg 724 drivers/gpu/drm/gma500/cdv_intel_dp.c msg[2] = address & 0xff; msg 725 drivers/gpu/drm/gma500/cdv_intel_dp.c msg[3] = recv_bytes - 1; msg 731 drivers/gpu/drm/gma500/cdv_intel_dp.c ret = cdv_intel_dp_aux_ch(encoder, msg, msg_bytes, msg 759 drivers/gpu/drm/gma500/cdv_intel_dp.c uint8_t msg[5]; msg 768 drivers/gpu/drm/gma500/cdv_intel_dp.c msg[0] = DP_AUX_I2C_READ << 4; msg 770 drivers/gpu/drm/gma500/cdv_intel_dp.c msg[0] = DP_AUX_I2C_WRITE << 4; msg 773 drivers/gpu/drm/gma500/cdv_intel_dp.c msg[0] |= DP_AUX_I2C_MOT << 4; msg 775 drivers/gpu/drm/gma500/cdv_intel_dp.c msg[1] = address >> 8; msg 776 drivers/gpu/drm/gma500/cdv_intel_dp.c msg[2] = address; msg 780 drivers/gpu/drm/gma500/cdv_intel_dp.c msg[3] = 0; msg 781 drivers/gpu/drm/gma500/cdv_intel_dp.c msg[4] = write_byte; msg 786 drivers/gpu/drm/gma500/cdv_intel_dp.c msg[3] = 0; msg 798 drivers/gpu/drm/gma500/cdv_intel_dp.c msg, msg_bytes, msg 73 drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c struct i2c_msg *msg; msg 100 drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c i2c_dev->msg = pmsg; msg 178 drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c struct i2c_msg *msg = i2c_dev->msg; msg 179 drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c u8 *buf = msg->buf; msg 383 drivers/gpu/drm/i2c/sil164_drv.c struct i2c_msg msg = { msg 391 drivers/gpu/drm/i2c/sil164_drv.c if (i2c_transfer(adap, &msg, 1) != 1) { msg 75 drivers/gpu/drm/i2c/tda9950.c struct i2c_msg msg; msg 85 drivers/gpu/drm/i2c/tda9950.c msg.addr = client->addr; msg 86 drivers/gpu/drm/i2c/tda9950.c msg.flags = 0; msg 87 drivers/gpu/drm/i2c/tda9950.c msg.len = cnt + 1; msg 88 drivers/gpu/drm/i2c/tda9950.c msg.buf = buf; msg 92 drivers/gpu/drm/i2c/tda9950.c ret = i2c_transfer(client->adapter, &msg, 1); msg 105 drivers/gpu/drm/i2c/tda9950.c struct i2c_msg msg[2]; msg 108 drivers/gpu/drm/i2c/tda9950.c msg[0].addr = client->addr; msg 109 drivers/gpu/drm/i2c/tda9950.c msg[0].flags = 0; msg 110 drivers/gpu/drm/i2c/tda9950.c msg[0].len = 1; msg 111 drivers/gpu/drm/i2c/tda9950.c msg[0].buf = &addr; msg 112 drivers/gpu/drm/i2c/tda9950.c msg[1].addr = client->addr; msg 113 drivers/gpu/drm/i2c/tda9950.c msg[1].flags = I2C_M_RD; msg 114 drivers/gpu/drm/i2c/tda9950.c msg[1].len = cnt; msg 115 drivers/gpu/drm/i2c/tda9950.c msg[1].buf = p; msg 117 drivers/gpu/drm/i2c/tda9950.c ret = i2c_transfer(client->adapter, msg, 2); msg 202 drivers/gpu/drm/i2c/tda9950.c memcpy(priv->rx_msg.msg, buf + 2, priv->rx_msg.len); msg 216 drivers/gpu/drm/i2c/tda9950.c u32 signal_free_time, struct cec_msg *msg) msg 221 drivers/gpu/drm/i2c/tda9950.c buf[0] = 2 + msg->len; msg 223 drivers/gpu/drm/i2c/tda9950.c memcpy(buf + 2, msg->msg, msg->len); msg 230 drivers/gpu/drm/i2c/tda9950.c return tda9950_write_range(priv->client, REG_CDR0, buf, 2 + msg->len); msg 406 drivers/gpu/drm/i2c/tda998x_drv.c struct i2c_msg msg = { msg 413 drivers/gpu/drm/i2c/tda998x_drv.c ret = i2c_transfer(priv->hdmi->adapter, &msg, 1); msg 423 drivers/gpu/drm/i2c/tda998x_drv.c struct i2c_msg msg[2] = { msg 437 drivers/gpu/drm/i2c/tda998x_drv.c ret = i2c_transfer(priv->hdmi->adapter, msg, ARRAY_SIZE(msg)); msg 191 drivers/gpu/drm/i915/display/dvo_ch7017.c struct i2c_msg msg = { msg 197 drivers/gpu/drm/i915/display/dvo_ch7017.c return i2c_transfer(dvo->i2c_bus, &msg, 1) == 1; msg 179 drivers/gpu/drm/i915/display/dvo_ch7xxx.c struct i2c_msg msg = { msg 189 drivers/gpu/drm/i915/display/dvo_ch7xxx.c if (i2c_transfer(adapter, &msg, 1) == 1) msg 240 drivers/gpu/drm/i915/display/dvo_ivch.c struct i2c_msg msg = { msg 251 drivers/gpu/drm/i915/display/dvo_ivch.c if (i2c_transfer(adapter, &msg, 1) == 1) msg 444 drivers/gpu/drm/i915/display/dvo_ns2501.c struct i2c_msg msg = { msg 454 drivers/gpu/drm/i915/display/dvo_ns2501.c if (i2c_transfer(adapter, &msg, 1) == 1) { msg 111 drivers/gpu/drm/i915/display/dvo_sil164.c struct i2c_msg msg = { msg 121 drivers/gpu/drm/i915/display/dvo_sil164.c if (i2c_transfer(adapter, &msg, 1) == 1) msg 136 drivers/gpu/drm/i915/display/dvo_tfp410.c struct i2c_msg msg = { msg 146 drivers/gpu/drm/i915/display/dvo_tfp410.c if (i2c_transfer(adapter, &msg, 1) == 1) msg 1380 drivers/gpu/drm/i915/display/icl_dsi.c const struct mipi_dsi_msg *msg) msg 1387 drivers/gpu/drm/i915/display/icl_dsi.c ret = mipi_dsi_create_packet(&dsi_pkt, msg); msg 1391 drivers/gpu/drm/i915/display/icl_dsi.c if (msg->flags & MIPI_DSI_MSG_USE_LPM) msg 1400 drivers/gpu/drm/i915/display/icl_dsi.c if (mipi_dsi_packet_format_is_long(msg->type)) { msg 1474 drivers/gpu/drm/i915/display/intel_dp.c const struct drm_dp_aux_msg *msg) msg 1476 drivers/gpu/drm/i915/display/intel_dp.c txbuf[0] = (msg->request << 4) | ((msg->address >> 16) & 0xf); msg 1477 drivers/gpu/drm/i915/display/intel_dp.c txbuf[1] = (msg->address >> 8) & 0xff; msg 1478 drivers/gpu/drm/i915/display/intel_dp.c txbuf[2] = msg->address & 0xff; msg 1479 drivers/gpu/drm/i915/display/intel_dp.c txbuf[3] = msg->size - 1; msg 1483 drivers/gpu/drm/i915/display/intel_dp.c intel_dp_aux_transfer(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg) msg 1490 drivers/gpu/drm/i915/display/intel_dp.c intel_dp_aux_header(txbuf, msg); msg 1492 drivers/gpu/drm/i915/display/intel_dp.c switch (msg->request & ~DP_AUX_I2C_MOT) { msg 1496 drivers/gpu/drm/i915/display/intel_dp.c txsize = msg->size ? HEADER_SIZE + msg->size : BARE_ADDRESS_SIZE; msg 1502 drivers/gpu/drm/i915/display/intel_dp.c WARN_ON(!msg->buffer != !msg->size); msg 1504 drivers/gpu/drm/i915/display/intel_dp.c if (msg->buffer) msg 1505 drivers/gpu/drm/i915/display/intel_dp.c memcpy(txbuf + HEADER_SIZE, msg->buffer, msg->size); msg 1510 drivers/gpu/drm/i915/display/intel_dp.c msg->reply = rxbuf[0] >> 4; msg 1514 drivers/gpu/drm/i915/display/intel_dp.c ret = clamp_t(int, rxbuf[1], 0, msg->size); msg 1517 drivers/gpu/drm/i915/display/intel_dp.c ret = msg->size; msg 1524 drivers/gpu/drm/i915/display/intel_dp.c txsize = msg->size ? HEADER_SIZE : BARE_ADDRESS_SIZE; msg 1525 drivers/gpu/drm/i915/display/intel_dp.c rxsize = msg->size + 1; msg 1533 drivers/gpu/drm/i915/display/intel_dp.c msg->reply = rxbuf[0] >> 4; msg 1541 drivers/gpu/drm/i915/display/intel_dp.c memcpy(msg->buffer, rxbuf + 1, ret); msg 5607 drivers/gpu/drm/i915/display/intel_dp.c static const struct drm_dp_aux_msg msg = { msg 5631 drivers/gpu/drm/i915/display/intel_dp.c intel_dp_aux_header(txbuf, &msg); msg 5633 drivers/gpu/drm/i915/display/intel_dp.c ret = intel_dp_aux_xfer(intel_dp, txbuf, HEADER_SIZE + msg.size, msg 452 drivers/gpu/drm/i915/display/intel_gmbus.c gmbus_xfer_read(struct drm_i915_private *dev_priv, struct i2c_msg *msg, msg 455 drivers/gpu/drm/i915/display/intel_gmbus.c u8 *buf = msg->buf; msg 456 drivers/gpu/drm/i915/display/intel_gmbus.c unsigned int rx_size = msg->len; msg 466 drivers/gpu/drm/i915/display/intel_gmbus.c ret = gmbus_xfer_read_chunk(dev_priv, msg->addr, buf, len, msg 517 drivers/gpu/drm/i915/display/intel_gmbus.c gmbus_xfer_write(struct drm_i915_private *dev_priv, struct i2c_msg *msg, msg 520 drivers/gpu/drm/i915/display/intel_gmbus.c u8 *buf = msg->buf; msg 521 drivers/gpu/drm/i915/display/intel_gmbus.c unsigned int tx_size = msg->len; msg 528 drivers/gpu/drm/i915/display/intel_gmbus.c ret = gmbus_xfer_write_chunk(dev_priv, msg->addr, buf, len, msg 1282 drivers/gpu/drm/i915/display/intel_hdmi.c struct i2c_msg msg; msg 1291 drivers/gpu/drm/i915/display/intel_hdmi.c msg.addr = DRM_HDCP_DDC_ADDR; msg 1292 drivers/gpu/drm/i915/display/intel_hdmi.c msg.flags = 0, msg 1293 drivers/gpu/drm/i915/display/intel_hdmi.c msg.len = size + 1, msg 1294 drivers/gpu/drm/i915/display/intel_hdmi.c msg.buf = write_buf; msg 1296 drivers/gpu/drm/i915/display/intel_hdmi.c ret = i2c_transfer(adapter, &msg, 1); msg 123 drivers/gpu/drm/i915/display/vlv_dsi.c const struct mipi_dsi_msg *msg) msg 135 drivers/gpu/drm/i915/display/vlv_dsi.c ret = mipi_dsi_create_packet(&packet, msg); msg 142 drivers/gpu/drm/i915/display/vlv_dsi.c if (msg->flags & MIPI_DSI_MSG_USE_LPM) { msg 164 drivers/gpu/drm/i915/display/vlv_dsi.c if (msg->rx_len) { msg 176 drivers/gpu/drm/i915/display/vlv_dsi.c if (msg->rx_len) { msg 182 drivers/gpu/drm/i915/display/vlv_dsi.c read_data(dev_priv, data_reg, msg->rx_buf, msg->rx_len); msg 229 drivers/gpu/drm/i915/gt/intel_hangcheck.c char msg[80]; msg 237 drivers/gpu/drm/i915/gt/intel_hangcheck.c len = scnprintf(msg, sizeof(msg), msg 240 drivers/gpu/drm/i915/gt/intel_hangcheck.c len += scnprintf(msg + len, sizeof(msg) - len, msg 242 drivers/gpu/drm/i915/gt/intel_hangcheck.c msg[len-2] = '\0'; msg 244 drivers/gpu/drm/i915/gt/intel_hangcheck.c return intel_gt_handle_error(gt, hung, I915_ERROR_CAPTURE, "%s", msg); msg 711 drivers/gpu/drm/i915/gt/intel_lrc.c const char *msg, msg 718 drivers/gpu/drm/i915/gt/intel_lrc.c engine->name, msg, msg 730 drivers/gpu/drm/i915/gt/intel_lrc.c const char *msg) msg 735 drivers/gpu/drm/i915/gt/intel_lrc.c trace_ports(execlists, msg, execlists->pending); msg 1029 drivers/gpu/drm/i915/gt/intel_reset.c int intel_engine_reset(struct intel_engine_cs *engine, const char *msg) msg 1042 drivers/gpu/drm/i915/gt/intel_reset.c if (msg) msg 1044 drivers/gpu/drm/i915/gt/intel_reset.c "Resetting %s for %s\n", engine->name, msg); msg 1133 drivers/gpu/drm/i915/gt/intel_reset.c char *msg = NULL; msg 1142 drivers/gpu/drm/i915/gt/intel_reset.c msg = error_msg; msg 1157 drivers/gpu/drm/i915/gt/intel_reset.c i915_capture_error_state(gt->i915, engine_mask, msg); msg 1172 drivers/gpu/drm/i915/gt/intel_reset.c if (intel_engine_reset(engine, msg) == 0) msg 1202 drivers/gpu/drm/i915/gt/intel_reset.c intel_gt_reset_global(gt, engine_mask, msg); msg 414 drivers/gpu/drm/i915/gt/uc/intel_guc.c u32 msg; msg 420 drivers/gpu/drm/i915/gt/uc/intel_guc.c msg = payload[0] & guc->msg_enabled_mask; msg 422 drivers/gpu/drm/i915/gt/uc/intel_guc.c if (msg & (INTEL_GUC_RECV_MSG_FLUSH_LOG_BUFFER | msg 25 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c u32 msg[]; msg 624 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c static int ct_handle_response(struct intel_guc_ct *ct, const u32 *msg) msg 626 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c u32 header = msg[0]; msg 640 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c DRM_ERROR("CT: corrupted response %*ph\n", 4 * msglen, msg); msg 644 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c fence = msg[1]; msg 645 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c status = msg[2]; msg 650 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c DRM_ERROR("CT: corrupted response %*ph\n", 4 * msglen, msg); msg 665 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c req->fence, 4 * msglen, msg); msg 669 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c memcpy(req->response_buf, msg + 3, 4 * datalen); msg 678 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c DRM_ERROR("CT: unsolicited response %*ph\n", 4 * msglen, msg); msg 724 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c header = request->msg[0]; msg 725 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c payload = &request->msg[1]; msg 763 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c static int ct_handle_request(struct intel_guc_ct *ct, const u32 *msg) msg 765 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c u32 header = msg[0]; msg 775 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c DRM_ERROR("CT: dropping request %*ph\n", 4 * msglen, msg); msg 778 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c memcpy(request->msg, msg, 4 * msglen); msg 792 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c u32 msg[GUC_CT_MSG_LEN_MASK + 1]; /* one extra dw for the header */ msg 799 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c err = ctb_read(ctb, msg); msg 803 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c if (ct_header_is_response(msg[0])) msg 804 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c err = ct_handle_response(ct, msg); msg 806 drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c err = ct_handle_request(ct, msg); msg 478 drivers/gpu/drm/i915/gvt/edid.c int msg, addr, ctrl, op; msg 490 drivers/gpu/drm/i915/gvt/edid.c msg = vgpu_vreg(vgpu, offset + 4); msg 491 drivers/gpu/drm/i915/gvt/edid.c addr = (msg >> 8) & 0xffff; msg 492 drivers/gpu/drm/i915/gvt/edid.c ctrl = (msg >> 24) & 0xff; msg 905 drivers/gpu/drm/i915/gvt/handlers.c int msg, addr, ctrl, op, len; msg 939 drivers/gpu/drm/i915/gvt/handlers.c msg = vgpu_vreg(vgpu, offset + 4); msg 940 drivers/gpu/drm/i915/gvt/handlers.c addr = (msg >> 8) & 0xffff; msg 941 drivers/gpu/drm/i915/gvt/handlers.c ctrl = (msg >> 24) & 0xff; msg 942 drivers/gpu/drm/i915/gvt/handlers.c len = msg & 0xff; msg 833 drivers/gpu/drm/i915/i915_gem_gtt.c enum vgt_g2v_type msg; msg 849 drivers/gpu/drm/i915/i915_gem_gtt.c msg = (create ? VGT_G2V_PPGTT_L4_PAGE_TABLE_CREATE : msg 859 drivers/gpu/drm/i915/i915_gem_gtt.c msg = (create ? VGT_G2V_PPGTT_L3_PAGE_TABLE_CREATE : msg 864 drivers/gpu/drm/i915/i915_gem_gtt.c I915_WRITE(vgtif_reg(g2v_notify), msg); msg 1597 drivers/gpu/drm/i915/i915_gpu_error.c intel_engine_mask_t engines, const char *msg) msg 1613 drivers/gpu/drm/i915/i915_gpu_error.c if (msg) msg 1616 drivers/gpu/drm/i915/i915_gpu_error.c ", %s", msg); msg 1736 drivers/gpu/drm/i915/i915_gpu_error.c const char *msg) msg 1752 drivers/gpu/drm/i915/i915_gpu_error.c dev_info(i915->drm.dev, "%s\n", error_msg(error, engine_mask, msg)); msg 175 drivers/gpu/drm/mcde/mcde_dsi.c const struct mipi_dsi_msg *msg) msg 179 drivers/gpu/drm/mcde/mcde_dsi.c const u8 *tx = msg->tx_buf; msg 181 drivers/gpu/drm/mcde/mcde_dsi.c size_t txlen = msg->tx_len; msg 182 drivers/gpu/drm/mcde/mcde_dsi.c size_t rxlen = msg->rx_len; msg 200 drivers/gpu/drm/mcde/mcde_dsi.c msg->channel, txlen, rxlen); msg 203 drivers/gpu/drm/mcde/mcde_dsi.c if (MCDE_DSI_HOST_IS_READ(msg->type)) msg 214 drivers/gpu/drm/mcde/mcde_dsi.c if (mipi_dsi_packet_format_is_long(msg->type)) msg 219 drivers/gpu/drm/mcde/mcde_dsi.c val |= msg->type << DSI_DIRECT_CMD_MAIN_SETTINGS_CMD_HEAD_SHIFT; msg 254 drivers/gpu/drm/mcde/mcde_dsi.c if (MCDE_DSI_HOST_IS_READ(msg->type)) { msg 291 drivers/gpu/drm/mcde/mcde_dsi.c if (!MCDE_DSI_HOST_IS_READ(msg->type)) { msg 298 drivers/gpu/drm/mcde/mcde_dsi.c u8 *rx = msg->rx_buf; msg 936 drivers/gpu/drm/mediatek/mtk_dsi.c static void mtk_dsi_cmdq(struct mtk_dsi *dsi, const struct mipi_dsi_msg *msg) msg 938 drivers/gpu/drm/mediatek/mtk_dsi.c const char *tx_buf = msg->tx_buf; msg 939 drivers/gpu/drm/mediatek/mtk_dsi.c u8 config, cmdq_size, cmdq_off, type = msg->type; msg 945 drivers/gpu/drm/mediatek/mtk_dsi.c config = (msg->tx_len > 2) ? LONG_PACKET : SHORT_PACKET; msg 947 drivers/gpu/drm/mediatek/mtk_dsi.c if (msg->tx_len > 2) { msg 948 drivers/gpu/drm/mediatek/mtk_dsi.c cmdq_size = 1 + (msg->tx_len + 3) / 4; msg 951 drivers/gpu/drm/mediatek/mtk_dsi.c reg_val = (msg->tx_len << 16) | (type << 8) | config; msg 959 drivers/gpu/drm/mediatek/mtk_dsi.c for (i = 0; i < msg->tx_len; i++) msg 967 drivers/gpu/drm/mediatek/mtk_dsi.c const struct mipi_dsi_msg *msg, u8 flag) msg 971 drivers/gpu/drm/mediatek/mtk_dsi.c mtk_dsi_cmdq(dsi, msg); msg 981 drivers/gpu/drm/mediatek/mtk_dsi.c const struct mipi_dsi_msg *msg) msg 994 drivers/gpu/drm/mediatek/mtk_dsi.c if (MTK_DSI_HOST_IS_READ(msg->type)) msg 997 drivers/gpu/drm/mediatek/mtk_dsi.c if (mtk_dsi_host_send_cmd(dsi, msg, irq_flag) < 0) msg 1000 drivers/gpu/drm/mediatek/mtk_dsi.c if (!MTK_DSI_HOST_IS_READ(msg->type)) msg 1003 drivers/gpu/drm/mediatek/mtk_dsi.c if (!msg->rx_buf) { msg 1021 drivers/gpu/drm/mediatek/mtk_dsi.c if (recv_cnt > msg->rx_len) msg 1022 drivers/gpu/drm/mediatek/mtk_dsi.c recv_cnt = msg->rx_len; msg 1025 drivers/gpu/drm/mediatek/mtk_dsi.c memcpy(msg->rx_buf, src_addr, recv_cnt); msg 1028 drivers/gpu/drm/mediatek/mtk_dsi.c recv_cnt, *((u8 *)(msg->tx_buf))); msg 110 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c static int mtk_hdmi_ddc_read_msg(struct mtk_hdmi_ddc *ddc, struct i2c_msg *msg) msg 119 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c sif_write_mask(ddc, DDC_DDCMD0, 0xff, 0, (msg->addr << 1) | 0x01); msg 130 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c remain_count = msg->len; msg 131 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c ack_count = (msg->len - 1) / 8; msg 173 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c msg->buf[index + i - 1] = sif_read_mask(ddc, offset, msg 185 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c static int mtk_hdmi_ddc_write_msg(struct mtk_hdmi_ddc *ddc, struct i2c_msg *msg) msg 191 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c sif_write_mask(ddc, DDC_DDCMD0, DDCM_DATA0, 0, msg->addr << 1); msg 192 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c sif_write_mask(ddc, DDC_DDCMD0, DDCM_DATA1, 8, msg->buf[0]); msg 234 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c struct i2c_msg *msg = &msgs[i]; msg 237 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c msg->addr, msg->flags, msg->len); msg 239 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c if (msg->flags & I2C_M_RD) msg 240 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c ret = mtk_hdmi_ddc_read_msg(ddc, msg); msg 242 drivers/gpu/drm/mediatek/mtk_hdmi_ddc.c ret = mtk_hdmi_ddc_write_msg(ddc, msg); msg 176 drivers/gpu/drm/msm/adreno/a6xx_hfi.c struct a6xx_hfi_msg_gmu_init_cmd msg = { 0 }; msg 178 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.dbg_buffer_addr = (u32) gmu->debug->iova; msg 179 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.dbg_buffer_size = (u32) gmu->debug->size; msg 180 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.boot_state = boot_state; msg 182 drivers/gpu/drm/msm/adreno/a6xx_hfi.c return a6xx_hfi_send_msg(gmu, HFI_H2F_MSG_INIT, &msg, sizeof(msg), msg 188 drivers/gpu/drm/msm/adreno/a6xx_hfi.c struct a6xx_hfi_msg_fw_version msg = { 0 }; msg 191 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.supported_version = (1 << 28) | (1 << 16); msg 193 drivers/gpu/drm/msm/adreno/a6xx_hfi.c return a6xx_hfi_send_msg(gmu, HFI_H2F_MSG_FW_VERSION, &msg, sizeof(msg), msg 199 drivers/gpu/drm/msm/adreno/a6xx_hfi.c struct a6xx_hfi_msg_perf_table msg = { 0 }; msg 202 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.num_gpu_levels = gmu->nr_gpu_freqs; msg 203 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.num_gmu_levels = gmu->nr_gmu_freqs; msg 206 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.gx_votes[i].vote = gmu->gx_arc_votes[i]; msg 207 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.gx_votes[i].freq = gmu->gpu_freqs[i] / 1000; msg 211 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.cx_votes[i].vote = gmu->cx_arc_votes[i]; msg 212 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.cx_votes[i].freq = gmu->gmu_freqs[i] / 1000; msg 215 drivers/gpu/drm/msm/adreno/a6xx_hfi.c return a6xx_hfi_send_msg(gmu, HFI_H2F_MSG_PERF_TABLE, &msg, sizeof(msg), msg 221 drivers/gpu/drm/msm/adreno/a6xx_hfi.c struct a6xx_hfi_msg_bw_table msg = { 0 }; msg 229 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.bw_level_num = 1; msg 231 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.ddr_cmds_num = 3; msg 232 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.ddr_wait_bitmask = 0x07; msg 234 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.ddr_cmds_addrs[0] = 0x50000; msg 235 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.ddr_cmds_addrs[1] = 0x5005c; msg 236 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.ddr_cmds_addrs[2] = 0x5000c; msg 238 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.ddr_cmds_data[0][0] = 0x40000000; msg 239 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.ddr_cmds_data[0][1] = 0x40000000; msg 240 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.ddr_cmds_data[0][2] = 0x40000000; msg 247 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.cnoc_cmds_num = 3; msg 248 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.cnoc_wait_bitmask = 0x05; msg 250 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.cnoc_cmds_addrs[0] = 0x50034; msg 251 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.cnoc_cmds_addrs[1] = 0x5007c; msg 252 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.cnoc_cmds_addrs[2] = 0x5004c; msg 254 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.cnoc_cmds_data[0][0] = 0x40000000; msg 255 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.cnoc_cmds_data[0][1] = 0x00000000; msg 256 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.cnoc_cmds_data[0][2] = 0x40000000; msg 258 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.cnoc_cmds_data[1][0] = 0x60000001; msg 259 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.cnoc_cmds_data[1][1] = 0x20000001; msg 260 drivers/gpu/drm/msm/adreno/a6xx_hfi.c msg.cnoc_cmds_data[1][2] = 0x60000001; msg 262 drivers/gpu/drm/msm/adreno/a6xx_hfi.c return a6xx_hfi_send_msg(gmu, HFI_H2F_MSG_BW_TABLE, &msg, sizeof(msg), msg 268 drivers/gpu/drm/msm/adreno/a6xx_hfi.c struct a6xx_hfi_msg_test msg = { 0 }; msg 270 drivers/gpu/drm/msm/adreno/a6xx_hfi.c return a6xx_hfi_send_msg(gmu, HFI_H2F_MSG_TEST, &msg, sizeof(msg), msg 44 drivers/gpu/drm/msm/adreno/a6xx_hfi.h #define HFI_HEADER_ID(msg) ((msg) & 0xff) msg 45 drivers/gpu/drm/msm/adreno/a6xx_hfi.h #define HFI_HEADER_SIZE(msg) (((msg) >> 8) & 0xff) msg 46 drivers/gpu/drm/msm/adreno/a6xx_hfi.h #define HFI_HEADER_SEQNUM(msg) (((msg) >> 20) & 0xfff) msg 89 drivers/gpu/drm/msm/dsi/dsi.h int msm_dsi_manager_cmd_xfer(int id, const struct mipi_dsi_msg *msg); msg 146 drivers/gpu/drm/msm/dsi/dsi.h const struct mipi_dsi_msg *msg); msg 148 drivers/gpu/drm/msm/dsi/dsi.h const struct mipi_dsi_msg *msg); msg 150 drivers/gpu/drm/msm/dsi/dsi.h const struct mipi_dsi_msg *msg); msg 152 drivers/gpu/drm/msm/dsi/dsi.h const struct mipi_dsi_msg *msg); msg 1146 drivers/gpu/drm/msm/dsi/dsi_host.c const struct mipi_dsi_msg *msg) msg 1154 drivers/gpu/drm/msm/dsi/dsi_host.c ret = mipi_dsi_create_packet(&packet, msg); msg 1178 drivers/gpu/drm/msm/dsi/dsi_host.c if (mipi_dsi_packet_format_is_long(msg->type)) msg 1180 drivers/gpu/drm/msm/dsi/dsi_host.c if (msg->rx_buf && msg->rx_len) msg 1200 drivers/gpu/drm/msm/dsi/dsi_host.c static int dsi_short_read1_resp(u8 *buf, const struct mipi_dsi_msg *msg) msg 1202 drivers/gpu/drm/msm/dsi/dsi_host.c u8 *data = msg->rx_buf; msg 1203 drivers/gpu/drm/msm/dsi/dsi_host.c if (data && (msg->rx_len >= 1)) { msg 1208 drivers/gpu/drm/msm/dsi/dsi_host.c __func__, msg->rx_len); msg 1216 drivers/gpu/drm/msm/dsi/dsi_host.c static int dsi_short_read2_resp(u8 *buf, const struct mipi_dsi_msg *msg) msg 1218 drivers/gpu/drm/msm/dsi/dsi_host.c u8 *data = msg->rx_buf; msg 1219 drivers/gpu/drm/msm/dsi/dsi_host.c if (data && (msg->rx_len >= 2)) { msg 1225 drivers/gpu/drm/msm/dsi/dsi_host.c __func__, msg->rx_len); msg 1230 drivers/gpu/drm/msm/dsi/dsi_host.c static int dsi_long_read_resp(u8 *buf, const struct mipi_dsi_msg *msg) msg 1233 drivers/gpu/drm/msm/dsi/dsi_host.c if (msg->rx_buf && msg->rx_len) msg 1234 drivers/gpu/drm/msm/dsi/dsi_host.c memcpy(msg->rx_buf, buf + 4, msg->rx_len); msg 1236 drivers/gpu/drm/msm/dsi/dsi_host.c return msg->rx_len; msg 1344 drivers/gpu/drm/msm/dsi/dsi_host.c const struct mipi_dsi_msg *msg) msg 1350 drivers/gpu/drm/msm/dsi/dsi_host.c len = dsi_cmd_dma_add(msm_host, msg); msg 1353 drivers/gpu/drm/msm/dsi/dsi_host.c __func__, msg->type); msg 1375 drivers/gpu/drm/msm/dsi/dsi_host.c __func__, msg->type, (*(u8 *)(msg->tx_buf)), len); msg 1622 drivers/gpu/drm/msm/dsi/dsi_host.c const struct mipi_dsi_msg *msg) msg 1627 drivers/gpu/drm/msm/dsi/dsi_host.c if (!msg || !msm_host->power_on) msg 1631 drivers/gpu/drm/msm/dsi/dsi_host.c ret = msm_dsi_manager_cmd_xfer(msm_host->id, msg); msg 1984 drivers/gpu/drm/msm/dsi/dsi_host.c const struct mipi_dsi_msg *msg) msg 2004 drivers/gpu/drm/msm/dsi/dsi_host.c if (!(msg->flags & MIPI_DSI_MSG_USE_LPM)) msg 2018 drivers/gpu/drm/msm/dsi/dsi_host.c const struct mipi_dsi_msg *msg) msg 2026 drivers/gpu/drm/msm/dsi/dsi_host.c if (!(msg->flags & MIPI_DSI_MSG_USE_LPM)) msg 2036 drivers/gpu/drm/msm/dsi/dsi_host.c const struct mipi_dsi_msg *msg) msg 2040 drivers/gpu/drm/msm/dsi/dsi_host.c return dsi_cmds2buf_tx(msm_host, msg); msg 2044 drivers/gpu/drm/msm/dsi/dsi_host.c const struct mipi_dsi_msg *msg) msg 2051 drivers/gpu/drm/msm/dsi/dsi_host.c int rlen = msg->rx_len; msg 2073 drivers/gpu/drm/msm/dsi/dsi_host.c .channel = msg->channel, msg 2099 drivers/gpu/drm/msm/dsi/dsi_host.c ret = dsi_cmds2buf_tx(msm_host, msg); msg 2100 drivers/gpu/drm/msm/dsi/dsi_host.c if (ret < msg->tx_len) { msg 2160 drivers/gpu/drm/msm/dsi/dsi_host.c ret = dsi_short_read1_resp(buf, msg); msg 2164 drivers/gpu/drm/msm/dsi/dsi_host.c ret = dsi_short_read2_resp(buf, msg); msg 2168 drivers/gpu/drm/msm/dsi/dsi_host.c ret = dsi_long_read_resp(buf, msg); msg 722 drivers/gpu/drm/msm/dsi/dsi_manager.c int msm_dsi_manager_cmd_xfer(int id, const struct mipi_dsi_msg *msg) msg 727 drivers/gpu/drm/msm/dsi/dsi_manager.c bool is_read = (msg->rx_buf && msg->rx_len); msg 731 drivers/gpu/drm/msm/dsi/dsi_manager.c if (!msg->tx_buf || !msg->tx_len) msg 740 drivers/gpu/drm/msm/dsi/dsi_manager.c return is_read ? msg->rx_len : msg->tx_len; msg 743 drivers/gpu/drm/msm/dsi/dsi_manager.c ret = msm_dsi_host_xfer_prepare(msm_dsi0->host, msg); msg 750 drivers/gpu/drm/msm/dsi/dsi_manager.c ret = msm_dsi_host_xfer_prepare(host, msg); msg 756 drivers/gpu/drm/msm/dsi/dsi_manager.c ret = is_read ? msm_dsi_host_cmd_rx(host, msg) : msg 757 drivers/gpu/drm/msm/dsi/dsi_manager.c msm_dsi_host_cmd_tx(host, msg); msg 759 drivers/gpu/drm/msm/dsi/dsi_manager.c msm_dsi_host_xfer_restore(host, msg); msg 763 drivers/gpu/drm/msm/dsi/dsi_manager.c msm_dsi_host_xfer_restore(msm_dsi0->host, msg); msg 33 drivers/gpu/drm/msm/edp/edp_aux.c static int edp_msg_fifo_tx(struct edp_aux *aux, struct drm_dp_aux_msg *msg) msg 37 drivers/gpu/drm/msm/edp/edp_aux.c bool native = msg->request & (DP_AUX_NATIVE_WRITE & DP_AUX_NATIVE_READ); msg 38 drivers/gpu/drm/msm/edp/edp_aux.c bool read = msg->request & (DP_AUX_I2C_READ & DP_AUX_NATIVE_READ); msg 39 drivers/gpu/drm/msm/edp/edp_aux.c u8 *msgdata = msg->buffer; msg 45 drivers/gpu/drm/msm/edp/edp_aux.c len = msg->size + 4; msg 54 drivers/gpu/drm/msm/edp/edp_aux.c data[0] = (msg->address >> 16) & 0xf; /* addr[19:16] */ msg 58 drivers/gpu/drm/msm/edp/edp_aux.c data[1] = (msg->address >> 8) & 0xff; /* addr[15:8] */ msg 59 drivers/gpu/drm/msm/edp/edp_aux.c data[2] = msg->address & 0xff; /* addr[7:0] */ msg 60 drivers/gpu/drm/msm/edp/edp_aux.c data[3] = (msg->size - 1) & 0xff; /* len[7:0] */ msg 80 drivers/gpu/drm/msm/edp/edp_aux.c static int edp_msg_fifo_rx(struct edp_aux *aux, struct drm_dp_aux_msg *msg) msg 85 drivers/gpu/drm/msm/edp/edp_aux.c u32 len = msg->size; msg 90 drivers/gpu/drm/msm/edp/edp_aux.c dp = msg->buffer; msg 111 drivers/gpu/drm/msm/edp/edp_aux.c struct drm_dp_aux_msg *msg) msg 116 drivers/gpu/drm/msm/edp/edp_aux.c bool native = msg->request & (DP_AUX_NATIVE_WRITE & DP_AUX_NATIVE_READ); msg 117 drivers/gpu/drm/msm/edp/edp_aux.c bool read = msg->request & (DP_AUX_I2C_READ & DP_AUX_NATIVE_READ); msg 120 drivers/gpu/drm/msm/edp/edp_aux.c if ((msg->size == 0) || (msg->buffer == NULL)) { msg 121 drivers/gpu/drm/msm/edp/edp_aux.c msg->reply = native ? msg 123 drivers/gpu/drm/msm/edp/edp_aux.c return msg->size; msg 127 drivers/gpu/drm/msm/edp/edp_aux.c if ((native && (msg->size > AUX_CMD_NATIVE_MAX)) || msg 128 drivers/gpu/drm/msm/edp/edp_aux.c (msg->size > AUX_CMD_I2C_MAX)) { msg 130 drivers/gpu/drm/msm/edp/edp_aux.c __func__, msg->size, msg->request); msg 139 drivers/gpu/drm/msm/edp/edp_aux.c ret = edp_msg_fifo_tx(aux, msg); msg 161 drivers/gpu/drm/msm/edp/edp_aux.c ret = edp_msg_fifo_rx(aux, msg); msg 166 drivers/gpu/drm/msm/edp/edp_aux.c msg->reply = native ? msg 170 drivers/gpu/drm/msm/edp/edp_aux.c msg->reply = native ? msg 180 drivers/gpu/drm/msm/edp/edp_aux.c ret = msg->size; msg 348 drivers/gpu/drm/msm/msm_rd.c char msg[256]; msg 363 drivers/gpu/drm/msm/msm_rd.c n = vscnprintf(msg, sizeof(msg), fmt, args); msg 366 drivers/gpu/drm/msm/msm_rd.c rd_write_section(rd, RD_CMD, msg, ALIGN(n, 4)); msg 372 drivers/gpu/drm/msm/msm_rd.c n = scnprintf(msg, sizeof(msg), "%.*s/%d: fence=%u", msg 376 drivers/gpu/drm/msm/msm_rd.c n = scnprintf(msg, sizeof(msg), "???/%d: fence=%u", msg 381 drivers/gpu/drm/msm/msm_rd.c rd_write_section(rd, RD_CMD, msg, ALIGN(n, 4)); msg 1194 drivers/gpu/drm/nouveau/nouveau_connector.c nouveau_connector_aux_xfer(struct drm_dp_aux *obj, struct drm_dp_aux_msg *msg) msg 1200 drivers/gpu/drm/nouveau/nouveau_connector.c u8 size = msg->size; msg 1206 drivers/gpu/drm/nouveau/nouveau_connector.c if (WARN_ON(msg->size > 16)) msg 1213 drivers/gpu/drm/nouveau/nouveau_connector.c ret = nvkm_i2c_aux_xfer(aux, false, msg->request, msg->address, msg 1214 drivers/gpu/drm/nouveau/nouveau_connector.c msg->buffer, &size); msg 1217 drivers/gpu/drm/nouveau/nouveau_connector.c msg->reply = ret; msg 91 drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c char msg[128]; msg 95 drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c nvkm_snprintbf(msg, sizeof(msg), g84_cipher_intr_mask, stat); msg 97 drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c "mthd %04x data %08x\n", stat, msg, msg 418 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c char msg[128]; msg 428 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c nvkm_snprintbf(msg, sizeof(msg), gf100_fifo_pbdma_intr, show); msg 432 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c unit, show, msg, chid, chan ? chan->inst->addr : 0, msg 698 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c char msg[128]; msg 710 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c nvkm_snprintbf(msg, sizeof(msg), gk104_fifo_pbdma_intr_0, show); msg 714 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c unit, show, msg, chid, chan ? chan->inst->addr : 0, msg 740 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c char msg[128]; msg 743 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c nvkm_snprintbf(msg, sizeof(msg), gk104_fifo_pbdma_intr_1, stat); msg 745 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c unit, stat, msg, chid, msg 101 drivers/gpu/drm/nouveau/nvkm/engine/gr/g84.c char msg[64]; msg 110 drivers/gpu/drm/nouveau/nvkm/engine/gr/g84.c nvkm_snprintbf(msg, sizeof(msg), units, mask); msg 111 drivers/gpu/drm/nouveau/nvkm/engine/gr/g84.c nvkm_error(subdev, "PGRAPH_VSTATUS%d: %08x [%s]\n", r, stat, msg); msg 1288 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c char msg[128], src[128], sta[128]; msg 1313 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c nvkm_snprintbf(msg, sizeof(msg), nv04_gr_intr_name, show); msg 1319 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv04.c show, msg, nsource, src, nstatus, sta, chid, msg 1096 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c char msg[128], src[128], sta[128]; msg 1121 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c nvkm_snprintbf(msg, sizeof(msg), nv10_gr_intr_name, show); msg 1127 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv10.c show, msg, nsource, src, nstatus, sta, chid, msg 196 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c char msg[128], src[128], sta[128]; msg 205 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c nvkm_snprintbf(msg, sizeof(msg), nv10_gr_intr_name, show); msg 211 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv20.c show, msg, nsource, src, nstatus, sta, chid, msg 248 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c char msg[128], src[128], sta[128]; msg 271 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c nvkm_snprintbf(msg, sizeof(msg), nv10_gr_intr_name, show); msg 277 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c show, msg, nsource, src, nstatus, sta, msg 251 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c char msg[128]; msg 272 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c nvkm_snprintbf(msg, sizeof(msg), nv50_gr_trap_prop, ustatus); msg 275 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c tp, ustatus, msg, e14, e10); msg 288 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c char msg[128]; msg 307 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c nvkm_snprintbf(msg, sizeof(msg), msg 312 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c tpid, i, status, msg, pc & 0xffffff, msg 333 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c char msg[128]; msg 354 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c nvkm_snprintbf(msg, sizeof(msg), msg 358 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c name, i, ustatus, msg); msg 369 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c nvkm_snprintbf(msg, sizeof(msg), msg 372 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c name, i, ustatus, msg); msg 402 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c char msg[128]; msg 488 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c nvkm_snprintbf(msg, sizeof(msg), msg 491 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c ustatus, msg); msg 511 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c nvkm_snprintbf(msg, sizeof(msg), msg 514 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c ustatus, msg); msg 531 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c nvkm_snprintbf(msg, sizeof(msg), msg 534 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c ustatus, msg); msg 554 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c nvkm_snprintbf(msg, sizeof(msg), msg 557 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c ustatus, msg); msg 637 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c char msg[128]; msg 665 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c nvkm_snprintbf(msg, sizeof(msg), nv50_gr_intr_name, show); msg 668 drivers/gpu/drm/nouveau/nvkm/engine/gr/nv50.c stat, msg, chid, (u64)inst << 12, name, msg 202 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0137c63d.c } *msg = (void *)hdr; msg 205 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0137c63d.c if (msg->error_code) { msg 207 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0137c63d.c msg->error_code); msg 251 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0137c63d.c } *msg = (void *)hdr; msg 253 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0137c63d.c u32 falcon_id = msg->falcon_id; msg 307 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0137c63d.c } *msg = (void *)hdr; msg 309 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0137c63d.c unsigned long falcon_mask = msg->falcon_mask; msg 318 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0137c63d.c if (falcon_treated != msg->falcon_mask) { msg 321 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0137c63d.c msg->falcon_mask); msg 173 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0148cdec.c } *msg = (void *)hdr; msg 175 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0148cdec.c u32 falcon_id = msg->falcon_id; msg 177 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0148cdec.c if (msg->error_code) { msg 180 drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue_0148cdec.c msg->error_code); msg 1078 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct i2c_msg msg = { msg 1083 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c if (adap && (ret = i2c_transfer(adap, &msg, 1)) != 1) msg 2172 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c struct i2c_msg msg[] = { msg 2178 drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c ret = i2c_transfer(adap, msg, 2); msg 48 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c struct i2c_msg *msg = msgs; msg 60 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c if ( (msg->flags & I2C_M_RD) && msg->addr == 0x50) { msg 61 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c nvkm_wri2cr(adap, bus->addr, 0x40, msg->addr << 1); msg 64 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c nvkm_wri2cr(adap, bus->addr, 0x44, msg->len); msg 67 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c for (i = 0; i < msg->len; i++) { msg 74 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c msg->buf[i] = nvkm_rdi2cr(adap, bus->addr, 0x47); msg 77 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c if (!(msg->flags & I2C_M_RD)) { msg 78 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c if (msg->addr == 0x50 && msg->len == 0x01) { msg 79 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c off = msg->buf[0]; msg 81 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c if (msg->addr == 0x30 && msg->len == 0x01) { msg 82 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c seg = msg->buf[0]; msg 88 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/anx9805.c msg++; msg 31 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c struct i2c_msg *msg = msgs; msg 39 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c u8 remaining = msg->len; msg 40 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c u8 *ptr = msg->buf; msg 45 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c if (msg->flags & I2C_M_RD) msg 58 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c msg->addr, ptr, &cnt); msg 72 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c msg++; msg 174 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c i2c_addr(struct nvkm_i2c_bus *bus, struct i2c_msg *msg) msg 176 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c u32 addr = msg->addr << 1; msg 177 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c if (msg->flags & I2C_M_RD) msg 185 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c struct i2c_msg *msg = msgs; msg 189 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c u8 remaining = msg->len; msg 190 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c u8 *ptr = msg->buf; msg 194 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c ret = i2c_addr(bus, msg); msg 196 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c if (msg->flags & I2C_M_RD) { msg 204 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/bit.c msg++; msg 100 drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c char msg[128]; msg 103 drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c nvkm_snprintbf(msg, sizeof(msg), gf100_ltc_lts_intr_name, stat); msg 104 drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c nvkm_error(subdev, "LTC%d_LTS%d: %08x [%s]\n", c, s, stat, msg); msg 79 drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gm107.c char msg[128]; msg 82 drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gm107.c nvkm_snprintbf(msg, sizeof(msg), gf100_ltc_lts_intr_name, stat); msg 83 drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gm107.c nvkm_error(subdev, "LTC%d_LTS%d: %08x [%s]\n", c, s, intr, msg); msg 76 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c struct cec_msg msg = {}; msg 80 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c msg.len = cnt & 0xf; msg 81 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c if (msg.len > CEC_MAX_MSG_SIZE - 2) msg 82 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c msg.len = CEC_MAX_MSG_SIZE - 2; msg 83 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c msg.msg[0] = hdmi_read_reg(core->base, msg 85 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c msg.msg[1] = hdmi_read_reg(core->base, msg 87 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c for (i = 0; i < msg.len; i++) { msg 90 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c msg.msg[2 + i] = msg 93 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c msg.len += 2; msg 94 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c cec_received_msg(core->adap, &msg); msg 279 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c u32 signal_free_time, struct cec_msg *msg) msg 303 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c hdmi_write_reg(core->base, HDMI_CEC_TX_INIT, cec_msg_initiator(msg)); msg 306 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c temp = cec_msg_destination(msg); msg 307 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c if (msg->len == 1) msg 310 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c if (msg->len == 1) msg 314 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c hdmi_write_reg(core->base, HDMI_CEC_TX_COMMAND, msg->msg[1]); msg 316 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c for (i = 0; i < msg->len - 2; i++) msg 318 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c msg->msg[2 + i]); msg 322 drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c (msg->len - 2) | 0x10); msg 34 drivers/gpu/drm/panel/panel-lg-lb035q02.c struct spi_message msg; msg 44 drivers/gpu/drm/panel/panel-lg-lb035q02.c spi_message_init(&msg); msg 51 drivers/gpu/drm/panel/panel-lg-lb035q02.c spi_message_add_tail(&index_xfer, &msg); msg 58 drivers/gpu/drm/panel/panel-lg-lb035q02.c spi_message_add_tail(&value_xfer, &msg); msg 60 drivers/gpu/drm/panel/panel-lg-lb035q02.c return spi_sync(lcd->spi, &msg); msg 46 drivers/gpu/drm/panel/panel-lg-lg4573.c struct spi_message msg; msg 50 drivers/gpu/drm/panel/panel-lg-lg4573.c spi_message_init(&msg); msg 51 drivers/gpu/drm/panel/panel-lg-lg4573.c spi_message_add_tail(&xfer, &msg); msg 53 drivers/gpu/drm/panel/panel-lg-lg4573.c return spi_sync(ctx->spi, &msg); msg 240 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c u8 msg[] = { msg 249 drivers/gpu/drm/panel/panel-raspberrypi-touchscreen.c mipi_dsi_generic_write(ts->dsi, msg, sizeof(msg)); msg 134 drivers/gpu/drm/panel/panel-samsung-ld9040.c struct spi_message msg; msg 136 drivers/gpu/drm/panel/panel-samsung-ld9040.c spi_message_init(&msg); msg 137 drivers/gpu/drm/panel/panel-samsung-ld9040.c spi_message_add_tail(&xfer, &msg); msg 139 drivers/gpu/drm/panel/panel-samsung-ld9040.c return spi_sync(spi, &msg); msg 146 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c struct spi_message msg; msg 148 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c spi_message_init(&msg); msg 149 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c spi_message_add_tail(&xfer, &msg); msg 151 drivers/gpu/drm/panel/panel-samsung-s6e63m0.c return spi_sync(spi, &msg); msg 137 drivers/gpu/drm/panel/panel-sitronix-st7789v.c struct spi_message msg; msg 140 drivers/gpu/drm/panel/panel-sitronix-st7789v.c spi_message_init(&msg); msg 146 drivers/gpu/drm/panel/panel-sitronix-st7789v.c spi_message_add_tail(&xfer, &msg); msg 147 drivers/gpu/drm/panel/panel-sitronix-st7789v.c return spi_sync(ctx->spi, &msg); msg 76 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c struct spi_message msg; msg 81 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c spi_message_init(&msg); msg 89 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c spi_message_add_tail(&xfer, &msg); msg 91 drivers/gpu/drm/panel/panel-tpo-td043mtea1.c ret = spi_sync(lcd->spi, &msg); msg 342 drivers/gpu/drm/r128/r128_state.c static void r128_print_dirty(const char *msg, unsigned int flags) msg 345 drivers/gpu/drm/r128/r128_state.c msg, msg 159 drivers/gpu/drm/radeon/atombios_dp.c radeon_dp_aux_transfer_atom(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg) msg 168 drivers/gpu/drm/radeon/atombios_dp.c if (WARN_ON(msg->size > 16)) msg 171 drivers/gpu/drm/radeon/atombios_dp.c tx_buf[0] = msg->address & 0xff; msg 172 drivers/gpu/drm/radeon/atombios_dp.c tx_buf[1] = (msg->address >> 8) & 0xff; msg 173 drivers/gpu/drm/radeon/atombios_dp.c tx_buf[2] = (msg->request << 4) | msg 174 drivers/gpu/drm/radeon/atombios_dp.c ((msg->address >> 16) & 0xf); msg 175 drivers/gpu/drm/radeon/atombios_dp.c tx_buf[3] = msg->size ? (msg->size - 1) : 0; msg 177 drivers/gpu/drm/radeon/atombios_dp.c switch (msg->request & ~DP_AUX_I2C_MOT) { msg 186 drivers/gpu/drm/radeon/atombios_dp.c if (WARN_ON_ONCE(msg->size > 12)) msg 191 drivers/gpu/drm/radeon/atombios_dp.c tx_size = HEADER_SIZE + msg->size; msg 192 drivers/gpu/drm/radeon/atombios_dp.c if (msg->size == 0) msg 196 drivers/gpu/drm/radeon/atombios_dp.c memcpy(tx_buf + HEADER_SIZE, msg->buffer, msg->size); msg 201 drivers/gpu/drm/radeon/atombios_dp.c ret = msg->size; msg 209 drivers/gpu/drm/radeon/atombios_dp.c if (msg->size == 0) msg 214 drivers/gpu/drm/radeon/atombios_dp.c tx_buf, tx_size, msg->buffer, msg->size, delay, &ack); msg 222 drivers/gpu/drm/radeon/atombios_dp.c msg->reply = ack >> 4; msg 389 drivers/gpu/drm/radeon/atombios_dp.c u8 msg[DP_DPCD_SIZE]; msg 392 drivers/gpu/drm/radeon/atombios_dp.c ret = drm_dp_dpcd_read(&radeon_connector->ddc_bus->aux, DP_DPCD_REV, msg, msg 395 drivers/gpu/drm/radeon/atombios_dp.c memcpy(dig_connector->dpcd, msg, DP_DPCD_SIZE); msg 189 drivers/gpu/drm/radeon/ci_dpm.c static PPSMC_Result ci_send_msg_to_smc(struct radeon_device *rdev, PPSMC_Msg msg); msg 191 drivers/gpu/drm/radeon/ci_dpm.c PPSMC_Msg msg, u32 parameter); msg 1657 drivers/gpu/drm/radeon/ci_dpm.c static PPSMC_Result ci_send_msg_to_smc(struct radeon_device *rdev, PPSMC_Msg msg) msg 1665 drivers/gpu/drm/radeon/ci_dpm.c WREG32(SMC_MESSAGE_0, msg); msg 1679 drivers/gpu/drm/radeon/ci_dpm.c PPSMC_Msg msg, u32 parameter) msg 1682 drivers/gpu/drm/radeon/ci_dpm.c return ci_send_msg_to_smc(rdev, msg); msg 1686 drivers/gpu/drm/radeon/ci_dpm.c PPSMC_Msg msg, u32 *parameter) msg 1690 drivers/gpu/drm/radeon/ci_dpm.c smc_result = ci_send_msg_to_smc(rdev, msg); msg 1957 drivers/gpu/drm/radeon/ci_dpm.c PPSMC_Msg msg = has_display ? PPSMC_MSG_HasDisplay : PPSMC_MSG_NoDisplay; msg 1959 drivers/gpu/drm/radeon/ci_dpm.c return (ci_send_msg_to_smc(rdev, msg) == PPSMC_Result_OK) ? 0 : -EINVAL; msg 266 drivers/gpu/drm/radeon/cypress_dpm.c PPSMC_Msg msg = has_display ? msg 269 drivers/gpu/drm/radeon/cypress_dpm.c if (rv770_send_msg_to_smc(rdev, msg) != PPSMC_Result_OK) msg 191 drivers/gpu/drm/radeon/kv_dpm.h PPSMC_Msg msg, u32 parameter); msg 66 drivers/gpu/drm/radeon/kv_smc.c PPSMC_Msg msg, u32 parameter) msg 71 drivers/gpu/drm/radeon/kv_smc.c return kv_notify_message_to_smu(rdev, msg); msg 1039 drivers/gpu/drm/radeon/ni_dpm.c PPSMC_Msg msg, u32 parameter) msg 1042 drivers/gpu/drm/radeon/ni_dpm.c return rv770_send_msg_to_smc(rdev, msg); msg 55 drivers/gpu/drm/radeon/radeon_dp_auxch.c radeon_dp_aux_transfer_native(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg) msg 65 drivers/gpu/drm/radeon/radeon_dp_auxch.c u8 *buf = msg->buffer; msg 71 drivers/gpu/drm/radeon/radeon_dp_auxch.c if (WARN_ON(msg->size > 16)) msg 74 drivers/gpu/drm/radeon/radeon_dp_auxch.c switch (msg->request & ~DP_AUX_I2C_MOT) { msg 89 drivers/gpu/drm/radeon/radeon_dp_auxch.c if (msg->size) { msg 90 drivers/gpu/drm/radeon/radeon_dp_auxch.c msize = msg->size - 1; msg 93 drivers/gpu/drm/radeon/radeon_dp_auxch.c bytes += msg->size; msg 120 drivers/gpu/drm/radeon/radeon_dp_auxch.c byte = (msg->request << 4) | ((msg->address >> 16) & 0xf); msg 124 drivers/gpu/drm/radeon/radeon_dp_auxch.c byte = (msg->address >> 8) & 0xff; msg 128 drivers/gpu/drm/radeon/radeon_dp_auxch.c byte = msg->address & 0xff; msg 138 drivers/gpu/drm/radeon/radeon_dp_auxch.c for (i = 0; i < msg->size; i++) { msg 197 drivers/gpu/drm/radeon/radeon_dp_auxch.c ret = msg->size; msg 202 drivers/gpu/drm/radeon/radeon_dp_auxch.c msg->reply = ack >> 4; msg 670 drivers/gpu/drm/radeon/radeon_dp_mst.c u8 msg[1]; msg 681 drivers/gpu/drm/radeon/radeon_dp_mst.c ret = drm_dp_dpcd_read(&radeon_connector->ddc_bus->aux, DP_MSTM_CAP, msg, msg 684 drivers/gpu/drm/radeon/radeon_dp_mst.c if (msg[0] & DP_MST_CAP) { msg 1089 drivers/gpu/drm/radeon/radeon_i2c.c struct i2c_msg msg = { msg 1099 drivers/gpu/drm/radeon/radeon_i2c.c if (i2c_transfer(&i2c_bus->adapter, &msg, 1) != 1) msg 763 drivers/gpu/drm/radeon/radeon_mode.h radeon_dp_aux_transfer_native(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg); msg 354 drivers/gpu/drm/radeon/radeon_uvd.c static int radeon_uvd_cs_msg_decode(uint32_t *msg, unsigned buf_sizes[]) msg 356 drivers/gpu/drm/radeon/radeon_uvd.c unsigned stream_type = msg[4]; msg 357 drivers/gpu/drm/radeon/radeon_uvd.c unsigned width = msg[6]; msg 358 drivers/gpu/drm/radeon/radeon_uvd.c unsigned height = msg[7]; msg 359 drivers/gpu/drm/radeon/radeon_uvd.c unsigned dpb_size = msg[9]; msg 360 drivers/gpu/drm/radeon/radeon_uvd.c unsigned pitch = msg[28]; msg 468 drivers/gpu/drm/radeon/radeon_uvd.c int32_t *msg, msg_type, handle; msg 495 drivers/gpu/drm/radeon/radeon_uvd.c msg = ptr + offset; msg 497 drivers/gpu/drm/radeon/radeon_uvd.c msg_type = msg[1]; msg 498 drivers/gpu/drm/radeon/radeon_uvd.c handle = msg[2]; msg 508 drivers/gpu/drm/radeon/radeon_uvd.c img_size = msg[7] * msg[8]; msg 510 drivers/gpu/drm/radeon/radeon_uvd.c r = radeon_uvd_validate_codec(p, msg[4]); msg 534 drivers/gpu/drm/radeon/radeon_uvd.c r = radeon_uvd_validate_codec(p, msg[4]); msg 536 drivers/gpu/drm/radeon/radeon_uvd.c r = radeon_uvd_cs_msg_decode(msg, buf_sizes); msg 784 drivers/gpu/drm/radeon/radeon_uvd.c uint32_t *msg = rdev->uvd.cpu_addr + offs; msg 794 drivers/gpu/drm/radeon/radeon_uvd.c msg[0] = cpu_to_le32(0x00000de4); msg 795 drivers/gpu/drm/radeon/radeon_uvd.c msg[1] = cpu_to_le32(0x00000000); msg 796 drivers/gpu/drm/radeon/radeon_uvd.c msg[2] = cpu_to_le32(handle); msg 797 drivers/gpu/drm/radeon/radeon_uvd.c msg[3] = cpu_to_le32(0x00000000); msg 798 drivers/gpu/drm/radeon/radeon_uvd.c msg[4] = cpu_to_le32(0x00000000); msg 799 drivers/gpu/drm/radeon/radeon_uvd.c msg[5] = cpu_to_le32(0x00000000); msg 800 drivers/gpu/drm/radeon/radeon_uvd.c msg[6] = cpu_to_le32(0x00000000); msg 801 drivers/gpu/drm/radeon/radeon_uvd.c msg[7] = cpu_to_le32(0x00000780); msg 802 drivers/gpu/drm/radeon/radeon_uvd.c msg[8] = cpu_to_le32(0x00000440); msg 803 drivers/gpu/drm/radeon/radeon_uvd.c msg[9] = cpu_to_le32(0x00000000); msg 804 drivers/gpu/drm/radeon/radeon_uvd.c msg[10] = cpu_to_le32(0x01b37000); msg 806 drivers/gpu/drm/radeon/radeon_uvd.c msg[i] = cpu_to_le32(0x0); msg 820 drivers/gpu/drm/radeon/radeon_uvd.c uint32_t *msg = rdev->uvd.cpu_addr + offs; msg 830 drivers/gpu/drm/radeon/radeon_uvd.c msg[0] = cpu_to_le32(0x00000de4); msg 831 drivers/gpu/drm/radeon/radeon_uvd.c msg[1] = cpu_to_le32(0x00000002); msg 832 drivers/gpu/drm/radeon/radeon_uvd.c msg[2] = cpu_to_le32(handle); msg 833 drivers/gpu/drm/radeon/radeon_uvd.c msg[3] = cpu_to_le32(0x00000000); msg 835 drivers/gpu/drm/radeon/radeon_uvd.c msg[i] = cpu_to_le32(0x0); msg 1479 drivers/gpu/drm/radeon/rv770_dpm.c PPSMC_Msg msg; msg 1484 drivers/gpu/drm/radeon/rv770_dpm.c msg = PPSMC_MSG_ForceHigh; msg 1488 drivers/gpu/drm/radeon/rv770_dpm.c msg = (PPSMC_Msg)(PPSMC_MSG_TwoLevelsDisabled); msg 1492 drivers/gpu/drm/radeon/rv770_dpm.c msg = (PPSMC_Msg)(PPSMC_MSG_ZeroLevelsDisabled); msg 1495 drivers/gpu/drm/radeon/rv770_dpm.c if (rv770_send_msg_to_smc(rdev, msg) != PPSMC_Result_OK) msg 424 drivers/gpu/drm/radeon/rv770_smc.c PPSMC_Result rv770_send_msg_to_smc(struct radeon_device *rdev, PPSMC_Msg msg) msg 433 drivers/gpu/drm/radeon/rv770_smc.c WREG32_P(SMC_MSG, HOST_SMC_MSG(msg), ~HOST_SMC_MSG_MASK); msg 198 drivers/gpu/drm/radeon/rv770_smc.h PPSMC_Result rv770_send_msg_to_smc(struct radeon_device *rdev, PPSMC_Msg msg); msg 3386 drivers/gpu/drm/radeon/si_dpm.c PPSMC_Msg msg, u32 parameter) msg 3389 drivers/gpu/drm/radeon/si_dpm.c return si_send_msg_to_smc(rdev, msg); msg 3634 drivers/gpu/drm/radeon/si_dpm.c PPSMC_Msg msg = has_display ? msg 3637 drivers/gpu/drm/radeon/si_dpm.c return (si_send_msg_to_smc(rdev, msg) == PPSMC_Result_OK) ? msg 172 drivers/gpu/drm/radeon/si_smc.c PPSMC_Result si_send_msg_to_smc(struct radeon_device *rdev, PPSMC_Msg msg) msg 180 drivers/gpu/drm/radeon/si_smc.c WREG32(SMC_MESSAGE_0, msg); msg 415 drivers/gpu/drm/radeon/sislands_smc.h PPSMC_Result si_send_msg_to_smc(struct radeon_device *rdev, PPSMC_Msg msg); msg 186 drivers/gpu/drm/rockchip/cdn-dp-reg.c u8 msg[6]; msg 188 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[0] = (addr >> 8) & 0xff; msg 189 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[1] = addr & 0xff; msg 190 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[2] = (val >> 24) & 0xff; msg 191 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[3] = (val >> 16) & 0xff; msg 192 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[4] = (val >> 8) & 0xff; msg 193 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[5] = val & 0xff; msg 195 drivers/gpu/drm/rockchip/cdn-dp-reg.c sizeof(msg), msg); msg 218 drivers/gpu/drm/rockchip/cdn-dp-reg.c u8 msg[5], reg[5]; msg 221 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[0] = (len >> 8) & 0xff; msg 222 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[1] = len & 0xff; msg 223 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[2] = (addr >> 16) & 0xff; msg 224 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[3] = (addr >> 8) & 0xff; msg 225 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[4] = addr & 0xff; msg 227 drivers/gpu/drm/rockchip/cdn-dp-reg.c sizeof(msg), msg); msg 249 drivers/gpu/drm/rockchip/cdn-dp-reg.c u8 msg[6], reg[5]; msg 252 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[0] = 0; msg 253 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[1] = 1; msg 254 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[2] = (addr >> 16) & 0xff; msg 255 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[3] = (addr >> 8) & 0xff; msg 256 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[4] = addr & 0xff; msg 257 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[5] = value; msg 259 drivers/gpu/drm/rockchip/cdn-dp-reg.c sizeof(msg), msg); msg 325 drivers/gpu/drm/rockchip/cdn-dp-reg.c u8 msg[5]; msg 328 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[0] = GENERAL_MAIN_CONTROL; msg 329 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[1] = MB_MODULE_ID_GENERAL; msg 330 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[2] = 0; msg 331 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[3] = 1; msg 332 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[4] = enable ? FW_ACTIVE : FW_STANDBY; msg 334 drivers/gpu/drm/rockchip/cdn-dp-reg.c for (i = 0; i < sizeof(msg); i++) { msg 335 drivers/gpu/drm/rockchip/cdn-dp-reg.c ret = cdp_dp_mailbox_write(dp, msg[i]); msg 341 drivers/gpu/drm/rockchip/cdn-dp-reg.c for (i = 0; i < sizeof(msg); i++) { msg 346 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[i] = ret; msg 359 drivers/gpu/drm/rockchip/cdn-dp-reg.c u8 msg[8]; msg 362 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[0] = CDN_DP_MAX_LINK_RATE; msg 363 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[1] = lanes | SCRAMBLER_EN; msg 364 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[2] = VOLTAGE_LEVEL_2; msg 365 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[3] = PRE_EMPHASIS_LEVEL_3; msg 366 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[4] = PTS1 | PTS2 | PTS3 | PTS4; msg 367 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[5] = FAST_LT_NOT_SUPPORT; msg 368 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[6] = flip ? LANE_MAPPING_FLIPPED : LANE_MAPPING_NORMAL; msg 369 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[7] = ENHANCED; msg 373 drivers/gpu/drm/rockchip/cdn-dp-reg.c sizeof(msg), msg); msg 388 drivers/gpu/drm/rockchip/cdn-dp-reg.c u8 msg[5]; msg 391 drivers/gpu/drm/rockchip/cdn-dp-reg.c memset(msg, 0, sizeof(msg)); msg 393 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[0] = DPTX_EVENT_ENABLE_HPD | DPTX_EVENT_ENABLE_TRAINING; msg 396 drivers/gpu/drm/rockchip/cdn-dp-reg.c sizeof(msg), msg); msg 438 drivers/gpu/drm/rockchip/cdn-dp-reg.c u8 msg[2], reg[2], i; msg 442 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[0] = block / 2; msg 443 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg[1] = block % 2; msg 446 drivers/gpu/drm/rockchip/cdn-dp-reg.c sizeof(msg), msg); msg 478 drivers/gpu/drm/rockchip/cdn-dp-reg.c u8 msg, event[2]; msg 481 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg = LINK_TRAINING_RUN; msg 485 drivers/gpu/drm/rockchip/cdn-dp-reg.c sizeof(msg), &msg); msg 570 drivers/gpu/drm/rockchip/cdn-dp-reg.c u8 msg; msg 573 drivers/gpu/drm/rockchip/cdn-dp-reg.c msg = !!active; msg 576 drivers/gpu/drm/rockchip/cdn-dp-reg.c sizeof(msg), &msg); msg 6 drivers/gpu/drm/selftests/test-drm_modeset_common.h #define FAIL(test, msg, ...) \ msg 9 drivers/gpu/drm/selftests/test-drm_modeset_common.h pr_err("%s/%u: " msg, __FUNCTION__, __LINE__, ##__VA_ARGS__); \ msg 70 drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c static int xfer_msg(struct sun4i_hdmi *hdmi, struct i2c_msg *msg) msg 79 drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c reg |= (msg->flags & I2C_M_RD) ? msg 89 drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c regmap_field_write(hdmi->field_ddc_slave_addr, msg->addr); msg 106 drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c regmap_field_write(hdmi->field_ddc_byte_count, msg->len); msg 110 drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c msg->flags & I2C_M_RD ? msg 124 drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c for (i = 0; i < msg->len; i += len) { msg 125 drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c len = fifo_transfer(hdmi, msg->buf + i, msg->len - i, msg 126 drivers/gpu/drm/sun4i/sun4i_hdmi_i2c.c msg->flags & I2C_M_RD); msg 829 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c const struct mipi_dsi_msg *msg) msg 831 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c u32 pkt = msg->type; msg 833 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c if (msg->type == MIPI_DSI_DCS_LONG_WRITE) { msg 834 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c pkt |= ((msg->tx_len + 1) & 0xffff) << 8; msg 835 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c pkt |= (((msg->tx_len + 1) >> 8) & 0xffff) << 16; msg 837 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c pkt |= (((u8 *)msg->tx_buf)[0] << 8); msg 838 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c if (msg->tx_len > 1) msg 839 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c pkt |= (((u8 *)msg->tx_buf)[1] << 16); msg 848 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c const struct mipi_dsi_msg *msg) msg 851 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c sun6i_dsi_dcs_build_pkt_hdr(dsi, msg)); msg 857 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c return msg->tx_len; msg 861 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c const struct mipi_dsi_msg *msg) msg 868 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c sun6i_dsi_dcs_build_pkt_hdr(dsi, msg)); msg 870 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c bounce = kzalloc(msg->tx_len + sizeof(crc), GFP_KERNEL); msg 874 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c memcpy(bounce, msg->tx_buf, msg->tx_len); msg 875 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c len += msg->tx_len; msg 877 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c crc = sun6i_dsi_crc_compute(bounce, msg->tx_len); msg 878 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c memcpy((u8 *)bounce + msg->tx_len, &crc, sizeof(crc)); msg 898 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c return msg->tx_len; msg 902 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c const struct mipi_dsi_msg *msg) msg 909 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c sun6i_dsi_dcs_build_pkt_hdr(dsi, msg)); msg 935 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c ((u8 *)msg->rx_buf)[0] = (val >> 8); msg 967 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c const struct mipi_dsi_msg *msg) msg 981 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c switch (msg->type) { msg 985 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c ret = sun6i_dsi_dcs_write_short(dsi, msg); msg 989 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c ret = sun6i_dsi_dcs_write_long(dsi, msg); msg 993 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c if (msg->rx_len == 1) { msg 994 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c ret = sun6i_dsi_dcs_read(dsi, msg); msg 117 drivers/gpu/drm/tegra/dpaux.c struct drm_dp_aux_msg *msg) msg 126 drivers/gpu/drm/tegra/dpaux.c if (msg->size > 16) msg 133 drivers/gpu/drm/tegra/dpaux.c if (msg->size < 1) { msg 134 drivers/gpu/drm/tegra/dpaux.c switch (msg->request & ~DP_AUX_I2C_MOT) { msg 146 drivers/gpu/drm/tegra/dpaux.c value = DPAUX_DP_AUXCTL_CMDLEN(msg->size - 1); msg 149 drivers/gpu/drm/tegra/dpaux.c switch (msg->request & ~DP_AUX_I2C_MOT) { msg 151 drivers/gpu/drm/tegra/dpaux.c if (msg->request & DP_AUX_I2C_MOT) msg 159 drivers/gpu/drm/tegra/dpaux.c if (msg->request & DP_AUX_I2C_MOT) msg 167 drivers/gpu/drm/tegra/dpaux.c if (msg->request & DP_AUX_I2C_MOT) msg 186 drivers/gpu/drm/tegra/dpaux.c tegra_dpaux_writel(dpaux, msg->address, DPAUX_DP_AUXADDR); msg 189 drivers/gpu/drm/tegra/dpaux.c if ((msg->request & DP_AUX_I2C_READ) == 0) { msg 190 drivers/gpu/drm/tegra/dpaux.c tegra_dpaux_write_fifo(dpaux, msg->buffer, msg->size); msg 191 drivers/gpu/drm/tegra/dpaux.c ret = msg->size; msg 217 drivers/gpu/drm/tegra/dpaux.c msg->reply = DP_AUX_NATIVE_REPLY_ACK; msg 221 drivers/gpu/drm/tegra/dpaux.c msg->reply = DP_AUX_NATIVE_REPLY_NACK; msg 225 drivers/gpu/drm/tegra/dpaux.c msg->reply = DP_AUX_NATIVE_REPLY_DEFER; msg 229 drivers/gpu/drm/tegra/dpaux.c msg->reply = DP_AUX_I2C_REPLY_NACK; msg 233 drivers/gpu/drm/tegra/dpaux.c msg->reply = DP_AUX_I2C_REPLY_DEFER; msg 237 drivers/gpu/drm/tegra/dpaux.c if ((msg->size > 0) && (msg->reply == DP_AUX_NATIVE_REPLY_ACK)) { msg 238 drivers/gpu/drm/tegra/dpaux.c if (msg->request & DP_AUX_I2C_READ) { msg 241 drivers/gpu/drm/tegra/dpaux.c if (WARN_ON(count != msg->size)) msg 242 drivers/gpu/drm/tegra/dpaux.c count = min_t(size_t, count, msg->size); msg 244 drivers/gpu/drm/tegra/dpaux.c tegra_dpaux_read_fifo(dpaux, msg->buffer, count); msg 1119 drivers/gpu/drm/tegra/dsi.c const struct mipi_dsi_msg *msg, msg 1122 drivers/gpu/drm/tegra/dsi.c u8 *rx = msg->rx_buf; msg 1167 drivers/gpu/drm/tegra/dsi.c size = min(size, msg->rx_len); msg 1169 drivers/gpu/drm/tegra/dsi.c if (msg->rx_buf && size > 0) { msg 1171 drivers/gpu/drm/tegra/dsi.c u8 *rx = msg->rx_buf + j; msg 1175 drivers/gpu/drm/tegra/dsi.c for (k = 0; k < 4 && (j + k) < msg->rx_len; k++) msg 1238 drivers/gpu/drm/tegra/dsi.c const struct mipi_dsi_msg *msg) msg 1247 drivers/gpu/drm/tegra/dsi.c err = mipi_dsi_create_packet(&packet, msg); msg 1274 drivers/gpu/drm/tegra/dsi.c if ((msg->flags & MIPI_DSI_MSG_USE_LPM) == 0) msg 1290 drivers/gpu/drm/tegra/dsi.c if ((msg->flags & MIPI_DSI_MSG_REQ_ACK) || msg 1291 drivers/gpu/drm/tegra/dsi.c (msg->rx_buf && msg->rx_len > 0)) { msg 1313 drivers/gpu/drm/tegra/dsi.c if ((msg->flags & MIPI_DSI_MSG_REQ_ACK) || msg 1314 drivers/gpu/drm/tegra/dsi.c (msg->rx_buf && msg->rx_len > 0)) { msg 1341 drivers/gpu/drm/tegra/dsi.c err = tegra_dsi_read_response(dsi, msg, count); msg 1084 drivers/gpu/drm/vc4/vc4_dsi.c const struct mipi_dsi_msg *msg) msg 1090 drivers/gpu/drm/vc4/vc4_dsi.c bool is_long = mipi_dsi_packet_format_is_long(msg->type); msg 1093 drivers/gpu/drm/vc4/vc4_dsi.c mipi_dsi_create_packet(&packet, msg); msg 1124 drivers/gpu/drm/vc4/vc4_dsi.c if (msg->rx_len) { msg 1144 drivers/gpu/drm/vc4/vc4_dsi.c if (msg->flags & MIPI_DSI_MSG_USE_LPM) msg 1167 drivers/gpu/drm/vc4/vc4_dsi.c if (msg->rx_len) { msg 1194 drivers/gpu/drm/vc4/vc4_dsi.c if (ret == 0 && msg->rx_len) { msg 1196 drivers/gpu/drm/vc4/vc4_dsi.c u8 *msg_rx = msg->rx_buf; msg 1202 drivers/gpu/drm/vc4/vc4_dsi.c if (rxlen != msg->rx_len) { msg 1204 drivers/gpu/drm/vc4/vc4_dsi.c rxlen, (int)msg->rx_len); msg 1209 drivers/gpu/drm/vc4/vc4_dsi.c for (i = 0; i < msg->rx_len; i++) msg 1216 drivers/gpu/drm/vc4/vc4_dsi.c if (msg->rx_len > 1) { msg 1170 drivers/gpu/drm/vc4/vc4_hdmi.c struct cec_msg *msg = &vc4->hdmi->cec_rx_msg; msg 1173 drivers/gpu/drm/vc4/vc4_hdmi.c msg->len = 1 + ((cntrl1 & VC4_HDMI_CEC_REC_WRD_CNT_MASK) >> msg 1175 drivers/gpu/drm/vc4/vc4_hdmi.c for (i = 0; i < msg->len; i += 4) { msg 1178 drivers/gpu/drm/vc4/vc4_hdmi.c msg->msg[i] = val & 0xff; msg 1179 drivers/gpu/drm/vc4/vc4_hdmi.c msg->msg[i + 1] = (val >> 8) & 0xff; msg 1180 drivers/gpu/drm/vc4/vc4_hdmi.c msg->msg[i + 2] = (val >> 16) & 0xff; msg 1181 drivers/gpu/drm/vc4/vc4_hdmi.c msg->msg[i + 3] = (val >> 24) & 0xff; msg 1267 drivers/gpu/drm/vc4/vc4_hdmi.c u32 signal_free_time, struct cec_msg *msg) msg 1273 drivers/gpu/drm/vc4/vc4_hdmi.c for (i = 0; i < msg->len; i += 4) msg 1275 drivers/gpu/drm/vc4/vc4_hdmi.c (msg->msg[i]) | msg 1276 drivers/gpu/drm/vc4/vc4_hdmi.c (msg->msg[i + 1] << 8) | msg 1277 drivers/gpu/drm/vc4/vc4_hdmi.c (msg->msg[i + 2] << 16) | msg 1278 drivers/gpu/drm/vc4/vc4_hdmi.c (msg->msg[i + 3] << 24)); msg 1284 drivers/gpu/drm/vc4/vc4_hdmi.c val |= (msg->len - 1) << VC4_HDMI_CEC_MESSAGE_LENGTH_SHIFT; msg 146 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c const char *msg, bool hb) msg 149 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c unsigned long msg_len = strlen(msg); msg 154 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c si = (uintptr_t) msg; msg 174 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c memcpy(&word, msg, bytes); msg 176 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c msg += bytes; msg 255 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c static int vmw_send_msg(struct rpc_channel *channel, const char *msg) msg 258 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c size_t msg_len = strlen(msg); msg 280 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c ebx = vmw_port_hb_out(channel, msg, msg 307 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c static int vmw_recv_msg(struct rpc_channel *channel, void **msg, msg 317 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c *msg = NULL; msg 394 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c *msg = reply; msg 417 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c char *msg, *reply = NULL; msg 426 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c msg = kasprintf(GFP_KERNEL, "info-get %s", guest_info_param); msg 427 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c if (!msg) { msg 436 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c if (vmw_send_msg(&channel, msg) || msg 455 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c kfree(msg); msg 464 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c kfree(msg); msg 482 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c char *msg; msg 492 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c msg = kasprintf(GFP_KERNEL, "log %s", log); msg 493 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c if (!msg) { msg 501 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c if (vmw_send_msg(&channel, msg)) msg 505 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c kfree(msg); msg 512 drivers/gpu/drm/vmwgfx/vmwgfx_msg.c kfree(msg); msg 498 drivers/gpu/drm/zte/zx_hdmi.c static int zx_hdmi_i2c_read(struct zx_hdmi *hdmi, struct i2c_msg *msg) msg 500 drivers/gpu/drm/zte/zx_hdmi.c int len = msg->len; msg 501 drivers/gpu/drm/zte/zx_hdmi.c u8 *buf = msg->buf; msg 541 drivers/gpu/drm/zte/zx_hdmi.c static int zx_hdmi_i2c_write(struct zx_hdmi *hdmi, struct i2c_msg *msg) msg 547 drivers/gpu/drm/zte/zx_hdmi.c if ((msg->len != 1) || msg 548 drivers/gpu/drm/zte/zx_hdmi.c ((msg->addr != DDC_ADDR) && (msg->addr != DDC_SEGMENT_ADDR))) msg 551 drivers/gpu/drm/zte/zx_hdmi.c if (msg->addr == DDC_SEGMENT_ADDR) msg 552 drivers/gpu/drm/zte/zx_hdmi.c hdmi_writeb(hdmi, ZX_DDC_SEGM, msg->addr << 1); msg 553 drivers/gpu/drm/zte/zx_hdmi.c else if (msg->addr == DDC_ADDR) msg 554 drivers/gpu/drm/zte/zx_hdmi.c hdmi_writeb(hdmi, ZX_DDC_ADDR, msg->addr << 1); msg 556 drivers/gpu/drm/zte/zx_hdmi.c hdmi_writeb(hdmi, ZX_DDC_OFFSET, msg->buf[0]); msg 220 drivers/gpu/drm/zte/zx_vga.c static int zx_vga_i2c_read(struct zx_vga *vga, struct i2c_msg *msg) msg 222 drivers/gpu/drm/zte/zx_vga.c int len = msg->len; msg 223 drivers/gpu/drm/zte/zx_vga.c u8 *buf = msg->buf; msg 268 drivers/gpu/drm/zte/zx_vga.c static int zx_vga_i2c_write(struct zx_vga *vga, struct i2c_msg *msg) msg 274 drivers/gpu/drm/zte/zx_vga.c if ((msg->len != 1) || ((msg->addr != DDC_ADDR))) msg 278 drivers/gpu/drm/zte/zx_vga.c zx_writel(vga->mmio + VGA_DEVICE_ADDR, msg->addr); msg 56 drivers/hid/hid-google-hammer.c struct cros_ec_command *msg; msg 59 drivers/hid/hid-google-hammer.c msg = kzalloc(sizeof(*msg) + max(sizeof(u32), sizeof(*params)), msg 61 drivers/hid/hid-google-hammer.c if (!msg) msg 64 drivers/hid/hid-google-hammer.c msg->command = EC_CMD_MKBP_INFO; msg 65 drivers/hid/hid-google-hammer.c msg->version = 1; msg 66 drivers/hid/hid-google-hammer.c msg->outsize = sizeof(*params); msg 67 drivers/hid/hid-google-hammer.c msg->insize = sizeof(u32); msg 68 drivers/hid/hid-google-hammer.c params = (struct ec_params_mkbp_info *)msg->data; msg 73 drivers/hid/hid-google-hammer.c ret = cros_ec_cmd_xfer_status(ec_dev, msg); msg 80 drivers/hid/hid-google-hammer.c *state = cbas_parse_base_state(msg->data); msg 85 drivers/hid/hid-google-hammer.c kfree(msg); msg 122 drivers/hid/hid-gt683r.c static int gt683r_led_snd_msg(struct gt683r_led *led, u8 *msg) msg 126 drivers/hid/hid-gt683r.c ret = hid_hw_raw_request(led->hdev, msg[0], msg, GT683R_BUFFER_SIZE, msg 50 drivers/hid/hid-u2fzero.c struct u2f_hid_msg msg; msg 155 drivers/hid/hid-u2fzero.c .msg.cid = CID_BROADCAST, msg 156 drivers/hid/hid-u2fzero.c .msg.init = { msg 183 drivers/hid/hid-u2fzero.c .msg.cid = CID_BROADCAST, msg 184 drivers/hid/hid-u2fzero.c .msg.init = { msg 218 drivers/hid/i2c-hid/i2c-hid-core.c struct i2c_msg msg[2]; msg 243 drivers/hid/i2c-hid/i2c-hid-core.c msg[0].addr = client->addr; msg 244 drivers/hid/i2c-hid/i2c-hid-core.c msg[0].flags = client->flags & I2C_M_TEN; msg 245 drivers/hid/i2c-hid/i2c-hid-core.c msg[0].len = length; msg 246 drivers/hid/i2c-hid/i2c-hid-core.c msg[0].buf = cmd->data; msg 248 drivers/hid/i2c-hid/i2c-hid-core.c msg[1].addr = client->addr; msg 249 drivers/hid/i2c-hid/i2c-hid-core.c msg[1].flags = client->flags & I2C_M_TEN; msg 250 drivers/hid/i2c-hid/i2c-hid-core.c msg[1].flags |= I2C_M_RD; msg 251 drivers/hid/i2c-hid/i2c-hid-core.c msg[1].len = data_len; msg 252 drivers/hid/i2c-hid/i2c-hid-core.c msg[1].buf = buf_recv; msg 260 drivers/hid/i2c-hid/i2c-hid-core.c ret = i2c_transfer(client->adapter, msg, msg_num); msg 355 drivers/hid/intel-ish-hid/ipc/ipc.c unsigned char *msg, int length) msg 375 drivers/hid/intel-ish-hid/ipc/ipc.c memcpy(ipc_link->inline_data, msg, length); msg 397 drivers/hid/intel-ish-hid/ipc/ipc.c void *msg, size_t size) msg 403 drivers/hid/intel-ish-hid/ipc/ipc.c memcpy(ipc_msg + sizeof(uint32_t), msg, size); msg 366 drivers/hid/intel-ish-hid/ishtp-hid-client.c struct hostif_msg *msg = (struct hostif_msg *)buf; msg 379 drivers/hid/intel-ish-hid/ishtp-hid-client.c memset(msg, 0, sizeof(struct hostif_msg)); msg 380 drivers/hid/intel-ish-hid/ishtp-hid-client.c msg->hdr.command = HOSTIF_SET_FEATURE_REPORT; msg 383 drivers/hid/intel-ish-hid/ishtp-hid-client.c msg->hdr.device_id = msg 412 drivers/hid/intel-ish-hid/ishtp-hid-client.c struct hostif_msg_to_sensor msg = {}; msg 424 drivers/hid/intel-ish-hid/ishtp-hid-client.c msg.hdr.command = (report_type == HID_FEATURE_REPORT) ? msg 428 drivers/hid/intel-ish-hid/ishtp-hid-client.c msg.hdr.device_id = msg 437 drivers/hid/intel-ish-hid/ishtp-hid-client.c msg.report_id = report_id; msg 438 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = ishtp_cl_send(client_data->hid_ishtp_cl, (uint8_t *)&msg, msg 439 drivers/hid/intel-ish-hid/ishtp-hid-client.c sizeof(msg)); msg 485 drivers/hid/intel-ish-hid/ishtp-hid-client.c struct hostif_msg msg; msg 491 drivers/hid/intel-ish-hid/ishtp-hid-client.c memset(&msg, 0, sizeof(struct hostif_msg)); msg 492 drivers/hid/intel-ish-hid/ishtp-hid-client.c msg.hdr.command = HOSTIF_DM_ENUM_DEVICES; msg 493 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = ishtp_cl_send(hid_ishtp_cl, (unsigned char *)&msg, msg 508 drivers/hid/intel-ish-hid/ishtp-hid-client.c (unsigned char *) &msg, msg 541 drivers/hid/intel-ish-hid/ishtp-hid-client.c struct hostif_msg msg; msg 547 drivers/hid/intel-ish-hid/ishtp-hid-client.c memset(&msg, 0, sizeof(struct hostif_msg)); msg 548 drivers/hid/intel-ish-hid/ishtp-hid-client.c msg.hdr.command = HOSTIF_GET_HID_DESCRIPTOR; msg 549 drivers/hid/intel-ish-hid/ishtp-hid-client.c msg.hdr.device_id = client_data->hid_devices[index].dev_id; msg 550 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = ishtp_cl_send(hid_ishtp_cl, (unsigned char *) &msg, msg 588 drivers/hid/intel-ish-hid/ishtp-hid-client.c struct hostif_msg msg; msg 594 drivers/hid/intel-ish-hid/ishtp-hid-client.c memset(&msg, 0, sizeof(struct hostif_msg)); msg 595 drivers/hid/intel-ish-hid/ishtp-hid-client.c msg.hdr.command = HOSTIF_GET_REPORT_DESCRIPTOR; msg 596 drivers/hid/intel-ish-hid/ishtp-hid-client.c msg.hdr.device_id = client_data->hid_devices[index].dev_id; msg 597 drivers/hid/intel-ish-hid/ishtp-hid-client.c rv = ishtp_cl_send(hid_ishtp_cl, (unsigned char *) &msg, msg 85 drivers/hid/intel-ish-hid/ishtp/bus.c void *msg, void(*ipc_send_compl)(void *), msg 97 drivers/hid/intel-ish-hid/ishtp/bus.c memcpy(ipc_msg + 2 * sizeof(uint32_t), msg, hdr->length); msg 55 drivers/hid/intel-ish-hid/ishtp/bus.h struct ishtp_msg_hdr *hdr, void *msg, msg 950 drivers/hid/intel-ish-hid/ishtp/client.c void recv_ishtp_cl_msg_dma(struct ishtp_device *dev, void *msg, msg 1000 drivers/hid/intel-ish-hid/ishtp/client.c memcpy(buffer, msg, hbm->msg_length); msg 128 drivers/hid/intel-ish-hid/ishtp/client.h void recv_ishtp_cl_msg_dma(struct ishtp_device *dev, void *msg, msg 442 drivers/hid/intel-ish-hid/ishtp/hbm.c void *msg; msg 463 drivers/hid/intel-ish-hid/ishtp/hbm.c msg = (unsigned char *)dev->ishtp_host_dma_tx_buf + offs; msg 464 drivers/hid/intel-ish-hid/ishtp/hbm.c ishtp_cl_release_dma_acked_mem(dev, msg, dma_xfer->msg_length); msg 476 drivers/hid/intel-ish-hid/ishtp/hbm.c (unsigned char *)msg && msg 478 drivers/hid/intel-ish-hid/ishtp/hbm.c (unsigned char *)msg + msg 505 drivers/hid/intel-ish-hid/ishtp/hbm.c void *msg; msg 526 drivers/hid/intel-ish-hid/ishtp/hbm.c msg = dev->ishtp_host_dma_rx_buf + offs; msg 527 drivers/hid/intel-ish-hid/ishtp/hbm.c recv_ishtp_cl_msg_dma(dev, msg, dma_xfer); msg 115 drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h unsigned char *msg, int length); msg 33 drivers/hsi/clients/cmt_speech.c u32 msg; msg 150 drivers/hsi/clients/cmt_speech.c entry->msg = message; msg 168 drivers/hsi/clients/cmt_speech.c data = entry->msg; msg 197 drivers/hsi/clients/cmt_speech.c static inline void cs_set_cmd(struct hsi_msg *msg, u32 cmd) msg 199 drivers/hsi/clients/cmt_speech.c u32 *data = sg_virt(msg->sgt.sgl); msg 203 drivers/hsi/clients/cmt_speech.c static inline u32 cs_get_cmd(struct hsi_msg *msg) msg 205 drivers/hsi/clients/cmt_speech.c u32 *data = sg_virt(msg->sgt.sgl); msg 209 drivers/hsi/clients/cmt_speech.c static void cs_release_cmd(struct hsi_msg *msg) msg 211 drivers/hsi/clients/cmt_speech.c struct cs_hsi_iface *hi = msg->context; msg 213 drivers/hsi/clients/cmt_speech.c list_add_tail(&msg->link, &hi->cmdqueue); msg 216 drivers/hsi/clients/cmt_speech.c static void cs_cmd_destructor(struct hsi_msg *msg) msg 218 drivers/hsi/clients/cmt_speech.c struct cs_hsi_iface *hi = msg->context; msg 227 drivers/hsi/clients/cmt_speech.c if (msg->ttype == HSI_MSG_READ) msg 230 drivers/hsi/clients/cmt_speech.c else if (msg->ttype == HSI_MSG_WRITE && msg 234 drivers/hsi/clients/cmt_speech.c cs_release_cmd(msg); msg 241 drivers/hsi/clients/cmt_speech.c struct hsi_msg *msg; msg 245 drivers/hsi/clients/cmt_speech.c msg = list_first_entry(&ssi->cmdqueue, struct hsi_msg, link); msg 246 drivers/hsi/clients/cmt_speech.c list_del(&msg->link); msg 247 drivers/hsi/clients/cmt_speech.c msg->destructor = cs_cmd_destructor; msg 249 drivers/hsi/clients/cmt_speech.c return msg; msg 254 drivers/hsi/clients/cmt_speech.c struct hsi_msg *msg, *tmp; msg 256 drivers/hsi/clients/cmt_speech.c list_for_each_entry_safe(msg, tmp, &ssi->cmdqueue, link) { msg 257 drivers/hsi/clients/cmt_speech.c list_del(&msg->link); msg 258 drivers/hsi/clients/cmt_speech.c msg->destructor = NULL; msg 259 drivers/hsi/clients/cmt_speech.c kfree(sg_virt(msg->sgt.sgl)); msg 260 drivers/hsi/clients/cmt_speech.c hsi_free_msg(msg); msg 266 drivers/hsi/clients/cmt_speech.c struct hsi_msg *msg; msg 273 drivers/hsi/clients/cmt_speech.c msg = hsi_alloc_msg(1, GFP_KERNEL); msg 274 drivers/hsi/clients/cmt_speech.c if (!msg) msg 278 drivers/hsi/clients/cmt_speech.c hsi_free_msg(msg); msg 281 drivers/hsi/clients/cmt_speech.c sg_init_one(msg->sgt.sgl, buf, sizeof(*buf)); msg 282 drivers/hsi/clients/cmt_speech.c msg->channel = cs_char_data.channel_id_cmd; msg 283 drivers/hsi/clients/cmt_speech.c msg->context = hi; msg 284 drivers/hsi/clients/cmt_speech.c list_add_tail(&msg->link, &hi->cmdqueue); msg 294 drivers/hsi/clients/cmt_speech.c static void cs_hsi_data_destructor(struct hsi_msg *msg) msg 296 drivers/hsi/clients/cmt_speech.c struct cs_hsi_iface *hi = msg->context; msg 297 drivers/hsi/clients/cmt_speech.c const char *dir = (msg->ttype == HSI_MSG_READ) ? "TX" : "RX"; msg 305 drivers/hsi/clients/cmt_speech.c if (msg->ttype == HSI_MSG_READ) msg 311 drivers/hsi/clients/cmt_speech.c msg->status = HSI_STATUS_COMPLETED; msg 352 drivers/hsi/clients/cmt_speech.c static void cs_hsi_free_data_msg(struct hsi_msg *msg) msg 354 drivers/hsi/clients/cmt_speech.c WARN_ON(msg->status != HSI_STATUS_COMPLETED && msg 355 drivers/hsi/clients/cmt_speech.c msg->status != HSI_STATUS_ERROR); msg 356 drivers/hsi/clients/cmt_speech.c hsi_free_msg(msg); msg 366 drivers/hsi/clients/cmt_speech.c struct hsi_msg *msg, const char *info, msg 371 drivers/hsi/clients/cmt_speech.c info, msg->status, *state); msg 392 drivers/hsi/clients/cmt_speech.c struct hsi_msg *msg) msg 394 drivers/hsi/clients/cmt_speech.c __cs_hsi_error_pre(hi, msg, "control read", &hi->control_state); msg 395 drivers/hsi/clients/cmt_speech.c cs_release_cmd(msg); msg 401 drivers/hsi/clients/cmt_speech.c struct hsi_msg *msg) msg 403 drivers/hsi/clients/cmt_speech.c __cs_hsi_error_pre(hi, msg, "control write", &hi->control_state); msg 404 drivers/hsi/clients/cmt_speech.c cs_release_cmd(msg); msg 410 drivers/hsi/clients/cmt_speech.c static void cs_hsi_data_read_error(struct cs_hsi_iface *hi, struct hsi_msg *msg) msg 412 drivers/hsi/clients/cmt_speech.c __cs_hsi_error_pre(hi, msg, "data read", &hi->data_state); msg 418 drivers/hsi/clients/cmt_speech.c struct hsi_msg *msg) msg 420 drivers/hsi/clients/cmt_speech.c __cs_hsi_error_pre(hi, msg, "data write", &hi->data_state); msg 425 drivers/hsi/clients/cmt_speech.c static void cs_hsi_read_on_control_complete(struct hsi_msg *msg) msg 427 drivers/hsi/clients/cmt_speech.c u32 cmd = cs_get_cmd(msg); msg 428 drivers/hsi/clients/cmt_speech.c struct cs_hsi_iface *hi = msg->context; msg 432 drivers/hsi/clients/cmt_speech.c if (msg->status == HSI_STATUS_ERROR) { msg 435 drivers/hsi/clients/cmt_speech.c cs_hsi_control_read_error(hi, msg); msg 439 drivers/hsi/clients/cmt_speech.c cs_release_cmd(msg); msg 458 drivers/hsi/clients/cmt_speech.c static void cs_hsi_peek_on_control_complete(struct hsi_msg *msg) msg 460 drivers/hsi/clients/cmt_speech.c struct cs_hsi_iface *hi = msg->context; msg 463 drivers/hsi/clients/cmt_speech.c if (msg->status == HSI_STATUS_ERROR) { msg 465 drivers/hsi/clients/cmt_speech.c cs_hsi_control_read_error(hi, msg); msg 472 drivers/hsi/clients/cmt_speech.c msg->sgt.nents = 1; msg 473 drivers/hsi/clients/cmt_speech.c msg->complete = cs_hsi_read_on_control_complete; msg 474 drivers/hsi/clients/cmt_speech.c ret = hsi_async_read(hi->cl, msg); msg 476 drivers/hsi/clients/cmt_speech.c cs_hsi_control_read_error(hi, msg); msg 481 drivers/hsi/clients/cmt_speech.c struct hsi_msg *msg; msg 499 drivers/hsi/clients/cmt_speech.c msg = cs_claim_cmd(hi); msg 502 drivers/hsi/clients/cmt_speech.c msg->sgt.nents = 0; msg 503 drivers/hsi/clients/cmt_speech.c msg->complete = cs_hsi_peek_on_control_complete; msg 504 drivers/hsi/clients/cmt_speech.c ret = hsi_async_read(hi->cl, msg); msg 506 drivers/hsi/clients/cmt_speech.c cs_hsi_control_read_error(hi, msg); msg 509 drivers/hsi/clients/cmt_speech.c static void cs_hsi_write_on_control_complete(struct hsi_msg *msg) msg 511 drivers/hsi/clients/cmt_speech.c struct cs_hsi_iface *hi = msg->context; msg 512 drivers/hsi/clients/cmt_speech.c if (msg->status == HSI_STATUS_COMPLETED) { msg 515 drivers/hsi/clients/cmt_speech.c cs_release_cmd(msg); msg 517 drivers/hsi/clients/cmt_speech.c } else if (msg->status == HSI_STATUS_ERROR) { msg 518 drivers/hsi/clients/cmt_speech.c cs_hsi_control_write_error(hi, msg); msg 522 drivers/hsi/clients/cmt_speech.c msg->status); msg 528 drivers/hsi/clients/cmt_speech.c struct hsi_msg *msg; msg 543 drivers/hsi/clients/cmt_speech.c msg = cs_claim_cmd(hi); msg 546 drivers/hsi/clients/cmt_speech.c cs_set_cmd(msg, message); msg 547 drivers/hsi/clients/cmt_speech.c msg->sgt.nents = 1; msg 548 drivers/hsi/clients/cmt_speech.c msg->complete = cs_hsi_write_on_control_complete; msg 551 drivers/hsi/clients/cmt_speech.c ret = hsi_async_write(hi->cl, msg); msg 555 drivers/hsi/clients/cmt_speech.c cs_hsi_control_write_error(hi, msg); msg 573 drivers/hsi/clients/cmt_speech.c static void cs_hsi_read_on_data_complete(struct hsi_msg *msg) msg 575 drivers/hsi/clients/cmt_speech.c struct cs_hsi_iface *hi = msg->context; msg 578 drivers/hsi/clients/cmt_speech.c if (unlikely(msg->status == HSI_STATUS_ERROR)) { msg 579 drivers/hsi/clients/cmt_speech.c cs_hsi_data_read_error(hi, msg); msg 600 drivers/hsi/clients/cmt_speech.c static void cs_hsi_peek_on_data_complete(struct hsi_msg *msg) msg 602 drivers/hsi/clients/cmt_speech.c struct cs_hsi_iface *hi = msg->context; msg 606 drivers/hsi/clients/cmt_speech.c if (unlikely(msg->status == HSI_STATUS_ERROR)) { msg 607 drivers/hsi/clients/cmt_speech.c cs_hsi_data_read_error(hi, msg); msg 612 drivers/hsi/clients/cmt_speech.c cs_hsi_data_read_error(hi, msg); msg 624 drivers/hsi/clients/cmt_speech.c sg_init_one(msg->sgt.sgl, address, hi->buf_size); msg 625 drivers/hsi/clients/cmt_speech.c msg->sgt.nents = 1; msg 626 drivers/hsi/clients/cmt_speech.c msg->complete = cs_hsi_read_on_data_complete; msg 627 drivers/hsi/clients/cmt_speech.c ret = hsi_async_read(hi->cl, msg); msg 629 drivers/hsi/clients/cmt_speech.c cs_hsi_data_read_error(hi, msg); msg 676 drivers/hsi/clients/cmt_speech.c static void cs_hsi_write_on_data_complete(struct hsi_msg *msg) msg 678 drivers/hsi/clients/cmt_speech.c struct cs_hsi_iface *hi = msg->context; msg 680 drivers/hsi/clients/cmt_speech.c if (msg->status == HSI_STATUS_COMPLETED) { msg 687 drivers/hsi/clients/cmt_speech.c cs_hsi_data_write_error(hi, msg); msg 116 drivers/hsi/clients/hsi_char.c static void hsc_add_tail(struct hsc_channel *channel, struct hsi_msg *msg, msg 122 drivers/hsi/clients/hsi_char.c list_add_tail(&msg->link, queue); msg 129 drivers/hsi/clients/hsi_char.c struct hsi_msg *msg = NULL; msg 137 drivers/hsi/clients/hsi_char.c msg = list_first_entry(queue, struct hsi_msg, link); msg 138 drivers/hsi/clients/hsi_char.c list_del(&msg->link); msg 142 drivers/hsi/clients/hsi_char.c return msg; msg 145 drivers/hsi/clients/hsi_char.c static inline void hsc_msg_free(struct hsi_msg *msg) msg 147 drivers/hsi/clients/hsi_char.c kfree(sg_virt(msg->sgt.sgl)); msg 148 drivers/hsi/clients/hsi_char.c hsi_free_msg(msg); msg 153 drivers/hsi/clients/hsi_char.c struct hsi_msg *msg, *tmp; msg 155 drivers/hsi/clients/hsi_char.c list_for_each_entry_safe(msg, tmp, list, link) { msg 156 drivers/hsi/clients/hsi_char.c list_del(&msg->link); msg 157 drivers/hsi/clients/hsi_char.c hsc_msg_free(msg); msg 175 drivers/hsi/clients/hsi_char.c struct hsi_msg *msg; msg 178 drivers/hsi/clients/hsi_char.c msg = hsi_alloc_msg(1, GFP_KERNEL); msg 179 drivers/hsi/clients/hsi_char.c if (!msg) msg 183 drivers/hsi/clients/hsi_char.c hsi_free_msg(msg); msg 186 drivers/hsi/clients/hsi_char.c sg_init_one(msg->sgt.sgl, buf, alloc_size); msg 190 drivers/hsi/clients/hsi_char.c return msg; msg 197 drivers/hsi/clients/hsi_char.c struct hsi_msg *msg; msg 201 drivers/hsi/clients/hsi_char.c msg = hsc_msg_alloc(max_data_size); msg 202 drivers/hsi/clients/hsi_char.c if (!msg) msg 204 drivers/hsi/clients/hsi_char.c msg->channel = channel->ch; msg 205 drivers/hsi/clients/hsi_char.c list_add_tail(&msg->link, &channel->free_msgs_list); msg 215 drivers/hsi/clients/hsi_char.c static inline unsigned int hsc_msg_len_get(struct hsi_msg *msg) msg 217 drivers/hsi/clients/hsi_char.c return msg->sgt.sgl->length; msg 220 drivers/hsi/clients/hsi_char.c static inline void hsc_msg_len_set(struct hsi_msg *msg, unsigned int len) msg 222 drivers/hsi/clients/hsi_char.c msg->sgt.sgl->length = len; msg 225 drivers/hsi/clients/hsi_char.c static void hsc_rx_completed(struct hsi_msg *msg) msg 227 drivers/hsi/clients/hsi_char.c struct hsc_client_data *cl_data = hsi_client_drvdata(msg->cl); msg 228 drivers/hsi/clients/hsi_char.c struct hsc_channel *channel = cl_data->channels + msg->channel; msg 231 drivers/hsi/clients/hsi_char.c hsc_add_tail(channel, msg, &channel->rx_msgs_queue); msg 234 drivers/hsi/clients/hsi_char.c hsc_add_tail(channel, msg, &channel->free_msgs_list); msg 238 drivers/hsi/clients/hsi_char.c static void hsc_rx_msg_destructor(struct hsi_msg *msg) msg 240 drivers/hsi/clients/hsi_char.c msg->status = HSI_STATUS_ERROR; msg 241 drivers/hsi/clients/hsi_char.c hsc_msg_len_set(msg, 0); msg 242 drivers/hsi/clients/hsi_char.c hsc_rx_completed(msg); msg 245 drivers/hsi/clients/hsi_char.c static void hsc_tx_completed(struct hsi_msg *msg) msg 247 drivers/hsi/clients/hsi_char.c struct hsc_client_data *cl_data = hsi_client_drvdata(msg->cl); msg 248 drivers/hsi/clients/hsi_char.c struct hsc_channel *channel = cl_data->channels + msg->channel; msg 251 drivers/hsi/clients/hsi_char.c hsc_add_tail(channel, msg, &channel->tx_msgs_queue); msg 254 drivers/hsi/clients/hsi_char.c hsc_add_tail(channel, msg, &channel->free_msgs_list); msg 258 drivers/hsi/clients/hsi_char.c static void hsc_tx_msg_destructor(struct hsi_msg *msg) msg 260 drivers/hsi/clients/hsi_char.c msg->status = HSI_STATUS_ERROR; msg 261 drivers/hsi/clients/hsi_char.c hsc_msg_len_set(msg, 0); msg 262 drivers/hsi/clients/hsi_char.c hsc_tx_completed(msg); msg 265 drivers/hsi/clients/hsi_char.c static void hsc_break_req_destructor(struct hsi_msg *msg) msg 267 drivers/hsi/clients/hsi_char.c struct hsc_client_data *cl_data = hsi_client_drvdata(msg->cl); msg 269 drivers/hsi/clients/hsi_char.c hsi_free_msg(msg); msg 273 drivers/hsi/clients/hsi_char.c static void hsc_break_received(struct hsi_msg *msg) msg 275 drivers/hsi/clients/hsi_char.c struct hsc_client_data *cl_data = hsi_client_drvdata(msg->cl); msg 294 drivers/hsi/clients/hsi_char.c hsi_flush(msg->cl); msg 295 drivers/hsi/clients/hsi_char.c ret = hsi_async_read(msg->cl, msg); msg 297 drivers/hsi/clients/hsi_char.c hsc_break_req_destructor(msg); msg 303 drivers/hsi/clients/hsi_char.c struct hsi_msg *msg; msg 309 drivers/hsi/clients/hsi_char.c msg = hsi_alloc_msg(0, GFP_KERNEL); msg 310 drivers/hsi/clients/hsi_char.c if (!msg) { msg 314 drivers/hsi/clients/hsi_char.c msg->break_frame = 1; msg 315 drivers/hsi/clients/hsi_char.c msg->complete = hsc_break_received; msg 316 drivers/hsi/clients/hsi_char.c msg->destructor = hsc_break_req_destructor; msg 317 drivers/hsi/clients/hsi_char.c ret = hsi_async_read(cl, msg); msg 319 drivers/hsi/clients/hsi_char.c hsc_break_req_destructor(msg); msg 326 drivers/hsi/clients/hsi_char.c struct hsi_msg *msg; msg 329 drivers/hsi/clients/hsi_char.c msg = hsi_alloc_msg(0, GFP_ATOMIC); msg 330 drivers/hsi/clients/hsi_char.c if (!msg) msg 332 drivers/hsi/clients/hsi_char.c msg->break_frame = 1; msg 333 drivers/hsi/clients/hsi_char.c msg->complete = hsi_free_msg; msg 334 drivers/hsi/clients/hsi_char.c msg->destructor = hsi_free_msg; msg 335 drivers/hsi/clients/hsi_char.c ret = hsi_async_write(cl, msg); msg 337 drivers/hsi/clients/hsi_char.c hsi_free_msg(msg); msg 416 drivers/hsi/clients/hsi_char.c struct hsi_msg *msg; msg 429 drivers/hsi/clients/hsi_char.c msg = hsc_get_first_msg(channel, &channel->free_msgs_list); msg 430 drivers/hsi/clients/hsi_char.c if (!msg) { msg 434 drivers/hsi/clients/hsi_char.c hsc_msg_len_set(msg, len); msg 435 drivers/hsi/clients/hsi_char.c msg->complete = hsc_rx_completed; msg 436 drivers/hsi/clients/hsi_char.c msg->destructor = hsc_rx_msg_destructor; msg 437 drivers/hsi/clients/hsi_char.c ret = hsi_async_read(channel->cl, msg); msg 439 drivers/hsi/clients/hsi_char.c hsc_add_tail(channel, msg, &channel->free_msgs_list); msg 451 drivers/hsi/clients/hsi_char.c msg = hsc_get_first_msg(channel, &channel->rx_msgs_queue); msg 452 drivers/hsi/clients/hsi_char.c if (msg) { msg 453 drivers/hsi/clients/hsi_char.c if (msg->status != HSI_STATUS_ERROR) { msg 455 drivers/hsi/clients/hsi_char.c sg_virt(msg->sgt.sgl), hsc_msg_len_get(msg)); msg 459 drivers/hsi/clients/hsi_char.c ret = hsc_msg_len_get(msg); msg 463 drivers/hsi/clients/hsi_char.c hsc_add_tail(channel, msg, &channel->free_msgs_list); msg 475 drivers/hsi/clients/hsi_char.c struct hsi_msg *msg; msg 486 drivers/hsi/clients/hsi_char.c msg = hsc_get_first_msg(channel, &channel->free_msgs_list); msg 487 drivers/hsi/clients/hsi_char.c if (!msg) { msg 491 drivers/hsi/clients/hsi_char.c if (copy_from_user(sg_virt(msg->sgt.sgl), (void __user *)buf, len)) { msg 495 drivers/hsi/clients/hsi_char.c hsc_msg_len_set(msg, len); msg 496 drivers/hsi/clients/hsi_char.c msg->complete = hsc_tx_completed; msg 497 drivers/hsi/clients/hsi_char.c msg->destructor = hsc_tx_msg_destructor; msg 498 drivers/hsi/clients/hsi_char.c ret = hsi_async_write(channel->cl, msg); msg 510 drivers/hsi/clients/hsi_char.c msg = hsc_get_first_msg(channel, &channel->tx_msgs_queue); msg 511 drivers/hsi/clients/hsi_char.c if (msg) { msg 512 drivers/hsi/clients/hsi_char.c if (msg->status == HSI_STATUS_ERROR) msg 515 drivers/hsi/clients/hsi_char.c ret = hsc_msg_len_get(msg); msg 517 drivers/hsi/clients/hsi_char.c hsc_add_tail(channel, msg, &channel->free_msgs_list); msg 151 drivers/hsi/clients/ssi_protocol.c static void ssip_rxcmd_complete(struct hsi_msg *msg); msg 153 drivers/hsi/clients/ssi_protocol.c static inline void ssip_set_cmd(struct hsi_msg *msg, u32 cmd) msg 157 drivers/hsi/clients/ssi_protocol.c data = sg_virt(msg->sgt.sgl); msg 161 drivers/hsi/clients/ssi_protocol.c static inline u32 ssip_get_cmd(struct hsi_msg *msg) msg 165 drivers/hsi/clients/ssi_protocol.c data = sg_virt(msg->sgt.sgl); msg 170 drivers/hsi/clients/ssi_protocol.c static void ssip_skb_to_msg(struct sk_buff *skb, struct hsi_msg *msg) msg 176 drivers/hsi/clients/ssi_protocol.c BUG_ON(msg->sgt.nents != (unsigned int)(skb_shinfo(skb)->nr_frags + 1)); msg 178 drivers/hsi/clients/ssi_protocol.c sg = msg->sgt.sgl; msg 189 drivers/hsi/clients/ssi_protocol.c static void ssip_free_data(struct hsi_msg *msg) msg 193 drivers/hsi/clients/ssi_protocol.c skb = msg->context; msg 194 drivers/hsi/clients/ssi_protocol.c pr_debug("free data: msg %p context %p skb %p\n", msg, msg->context, msg 196 drivers/hsi/clients/ssi_protocol.c msg->destructor = NULL; msg 198 drivers/hsi/clients/ssi_protocol.c hsi_free_msg(msg); msg 204 drivers/hsi/clients/ssi_protocol.c struct hsi_msg *msg; msg 206 drivers/hsi/clients/ssi_protocol.c msg = hsi_alloc_msg(skb_shinfo(skb)->nr_frags + 1, flags); msg 207 drivers/hsi/clients/ssi_protocol.c if (!msg) msg 209 drivers/hsi/clients/ssi_protocol.c ssip_skb_to_msg(skb, msg); msg 210 drivers/hsi/clients/ssi_protocol.c msg->destructor = ssip_free_data; msg 211 drivers/hsi/clients/ssi_protocol.c msg->channel = ssi->channel_id_data; msg 212 drivers/hsi/clients/ssi_protocol.c msg->context = skb; msg 214 drivers/hsi/clients/ssi_protocol.c return msg; msg 217 drivers/hsi/clients/ssi_protocol.c static inline void ssip_release_cmd(struct hsi_msg *msg) msg 219 drivers/hsi/clients/ssi_protocol.c struct ssi_protocol *ssi = hsi_client_drvdata(msg->cl); msg 221 drivers/hsi/clients/ssi_protocol.c dev_dbg(&msg->cl->device, "Release cmd 0x%08x\n", ssip_get_cmd(msg)); msg 223 drivers/hsi/clients/ssi_protocol.c list_add_tail(&msg->link, &ssi->cmdqueue); msg 229 drivers/hsi/clients/ssi_protocol.c struct hsi_msg *msg; msg 234 drivers/hsi/clients/ssi_protocol.c msg = list_first_entry(&ssi->cmdqueue, struct hsi_msg, link); msg 235 drivers/hsi/clients/ssi_protocol.c list_del(&msg->link); msg 237 drivers/hsi/clients/ssi_protocol.c msg->destructor = ssip_release_cmd; msg 239 drivers/hsi/clients/ssi_protocol.c return msg; msg 244 drivers/hsi/clients/ssi_protocol.c struct hsi_msg *msg, *tmp; msg 246 drivers/hsi/clients/ssi_protocol.c list_for_each_entry_safe(msg, tmp, &ssi->cmdqueue, link) { msg 247 drivers/hsi/clients/ssi_protocol.c list_del(&msg->link); msg 248 drivers/hsi/clients/ssi_protocol.c msg->destructor = NULL; msg 249 drivers/hsi/clients/ssi_protocol.c kfree(sg_virt(msg->sgt.sgl)); msg 250 drivers/hsi/clients/ssi_protocol.c hsi_free_msg(msg); msg 256 drivers/hsi/clients/ssi_protocol.c struct hsi_msg *msg; msg 261 drivers/hsi/clients/ssi_protocol.c msg = hsi_alloc_msg(1, GFP_KERNEL); msg 262 drivers/hsi/clients/ssi_protocol.c if (!msg) msg 266 drivers/hsi/clients/ssi_protocol.c hsi_free_msg(msg); msg 269 drivers/hsi/clients/ssi_protocol.c sg_init_one(msg->sgt.sgl, buf, sizeof(*buf)); msg 270 drivers/hsi/clients/ssi_protocol.c msg->channel = ssi->channel_id_cmd; msg 271 drivers/hsi/clients/ssi_protocol.c list_add_tail(&msg->link, &ssi->cmdqueue); msg 391 drivers/hsi/clients/ssi_protocol.c struct hsi_msg *msg; msg 413 drivers/hsi/clients/ssi_protocol.c msg = list_entry(head, struct hsi_msg, link); msg 416 drivers/hsi/clients/ssi_protocol.c ssip_free_data(msg); msg 425 drivers/hsi/clients/ssi_protocol.c struct hsi_msg *msg; msg 438 drivers/hsi/clients/ssi_protocol.c list_for_each_entry(msg, &ssi->txqueue, link) msg 439 drivers/hsi/clients/ssi_protocol.c dev_err(&cl->device, "pending TX data (%p)\n", msg); msg 446 drivers/hsi/clients/ssi_protocol.c struct hsi_msg *msg; msg 450 drivers/hsi/clients/ssi_protocol.c msg = ssip_claim_cmd(ssi); msg 451 drivers/hsi/clients/ssi_protocol.c msg->complete = ssip_rxcmd_complete; msg 452 drivers/hsi/clients/ssi_protocol.c hsi_async_read(cl, msg); msg 503 drivers/hsi/clients/ssi_protocol.c struct hsi_msg *msg; msg 506 drivers/hsi/clients/ssi_protocol.c msg = ssip_claim_cmd(ssi); msg 507 drivers/hsi/clients/ssi_protocol.c ssip_set_cmd(msg, SSIP_BOOTINFO_REQ_CMD(SSIP_LOCAL_VERID)); msg 508 drivers/hsi/clients/ssi_protocol.c msg->complete = ssip_release_cmd; msg 509 drivers/hsi/clients/ssi_protocol.c hsi_async_write(cl, msg); msg 511 drivers/hsi/clients/ssi_protocol.c msg = ssip_claim_cmd(ssi); msg 512 drivers/hsi/clients/ssi_protocol.c msg->complete = ssip_rxcmd_complete; msg 513 drivers/hsi/clients/ssi_protocol.c hsi_async_read(cl, msg); msg 519 drivers/hsi/clients/ssi_protocol.c struct hsi_msg *msg; msg 535 drivers/hsi/clients/ssi_protocol.c msg = ssip_claim_cmd(ssi); msg 536 drivers/hsi/clients/ssi_protocol.c ssip_set_cmd(msg, SSIP_READY_CMD); msg 537 drivers/hsi/clients/ssi_protocol.c msg->complete = ssip_release_cmd; msg 539 drivers/hsi/clients/ssi_protocol.c hsi_async_write(cl, msg); msg 553 drivers/hsi/clients/ssi_protocol.c static void ssip_free_strans(struct hsi_msg *msg) msg 555 drivers/hsi/clients/ssi_protocol.c ssip_free_data(msg->context); msg 556 drivers/hsi/clients/ssi_protocol.c ssip_release_cmd(msg); msg 559 drivers/hsi/clients/ssi_protocol.c static void ssip_strans_complete(struct hsi_msg *msg) msg 561 drivers/hsi/clients/ssi_protocol.c struct hsi_client *cl = msg->cl; msg 565 drivers/hsi/clients/ssi_protocol.c data = msg->context; msg 566 drivers/hsi/clients/ssi_protocol.c ssip_release_cmd(msg); msg 576 drivers/hsi/clients/ssi_protocol.c struct hsi_msg *msg, *dmsg; msg 589 drivers/hsi/clients/ssi_protocol.c msg = ssip_claim_cmd(ssi); msg 591 drivers/hsi/clients/ssi_protocol.c msg->context = dmsg; msg 592 drivers/hsi/clients/ssi_protocol.c msg->complete = ssip_strans_complete; msg 593 drivers/hsi/clients/ssi_protocol.c msg->destructor = ssip_free_strans; msg 596 drivers/hsi/clients/ssi_protocol.c ssip_set_cmd(msg, SSIP_START_TRANS_CMD(SSIP_BYTES_TO_FRAMES(skb->len), msg 605 drivers/hsi/clients/ssi_protocol.c return hsi_async_write(cl, msg); msg 640 drivers/hsi/clients/ssi_protocol.c static void ssip_rx_data_complete(struct hsi_msg *msg) msg 642 drivers/hsi/clients/ssi_protocol.c struct hsi_client *cl = msg->cl; msg 646 drivers/hsi/clients/ssi_protocol.c if (msg->status == HSI_STATUS_ERROR) { msg 648 drivers/hsi/clients/ssi_protocol.c ssip_free_data(msg); msg 653 drivers/hsi/clients/ssi_protocol.c skb = msg->context; msg 655 drivers/hsi/clients/ssi_protocol.c hsi_free_msg(msg); msg 661 drivers/hsi/clients/ssi_protocol.c struct hsi_msg *msg; msg 688 drivers/hsi/clients/ssi_protocol.c msg = ssip_claim_cmd(ssi); msg 689 drivers/hsi/clients/ssi_protocol.c ssip_set_cmd(msg, SSIP_BOOTINFO_RESP_CMD(SSIP_LOCAL_VERID)); msg 690 drivers/hsi/clients/ssi_protocol.c msg->complete = ssip_release_cmd; msg 691 drivers/hsi/clients/ssi_protocol.c hsi_async_write(cl, msg); msg 774 drivers/hsi/clients/ssi_protocol.c struct hsi_msg *msg; msg 801 drivers/hsi/clients/ssi_protocol.c msg = ssip_alloc_data(ssi, skb, GFP_ATOMIC); msg 802 drivers/hsi/clients/ssi_protocol.c if (unlikely(!msg)) { msg 806 drivers/hsi/clients/ssi_protocol.c msg->complete = ssip_rx_data_complete; msg 807 drivers/hsi/clients/ssi_protocol.c hsi_async_read(cl, msg); msg 816 drivers/hsi/clients/ssi_protocol.c static void ssip_rxcmd_complete(struct hsi_msg *msg) msg 818 drivers/hsi/clients/ssi_protocol.c struct hsi_client *cl = msg->cl; msg 819 drivers/hsi/clients/ssi_protocol.c u32 cmd = ssip_get_cmd(msg); msg 822 drivers/hsi/clients/ssi_protocol.c if (msg->status == HSI_STATUS_ERROR) { msg 824 drivers/hsi/clients/ssi_protocol.c ssip_release_cmd(msg); msg 828 drivers/hsi/clients/ssi_protocol.c hsi_async_read(cl, msg); msg 855 drivers/hsi/clients/ssi_protocol.c static void ssip_swbreak_complete(struct hsi_msg *msg) msg 857 drivers/hsi/clients/ssi_protocol.c struct hsi_client *cl = msg->cl; msg 860 drivers/hsi/clients/ssi_protocol.c ssip_release_cmd(msg); msg 877 drivers/hsi/clients/ssi_protocol.c static void ssip_tx_data_complete(struct hsi_msg *msg) msg 879 drivers/hsi/clients/ssi_protocol.c struct hsi_client *cl = msg->cl; msg 883 drivers/hsi/clients/ssi_protocol.c if (msg->status == HSI_STATUS_ERROR) { msg 902 drivers/hsi/clients/ssi_protocol.c ssip_free_data(msg); msg 975 drivers/hsi/clients/ssi_protocol.c struct hsi_msg *msg; msg 994 drivers/hsi/clients/ssi_protocol.c msg = ssip_alloc_data(ssi, skb, GFP_ATOMIC); msg 995 drivers/hsi/clients/ssi_protocol.c if (!msg) { msg 999 drivers/hsi/clients/ssi_protocol.c msg->complete = ssip_tx_data_complete; msg 1007 drivers/hsi/clients/ssi_protocol.c list_add_tail(&msg->link, &ssi->txqueue); msg 1032 drivers/hsi/clients/ssi_protocol.c hsi_free_msg(msg); msg 114 drivers/hsi/controllers/omap_ssi.h struct hsi_msg *msg; msg 170 drivers/hsi/controllers/omap_ssi_core.c struct hsi_msg *msg = omap_ssi->gdd_trn[lch].msg; msg 171 drivers/hsi/controllers/omap_ssi_core.c struct hsi_port *port = to_hsi_port(msg->cl->device.parent); msg 183 drivers/hsi/controllers/omap_ssi_core.c if (msg->ttype == HSI_MSG_READ) { msg 185 drivers/hsi/controllers/omap_ssi_core.c val = SSI_DATAAVAILABLE(msg->channel); msg 189 drivers/hsi/controllers/omap_ssi_core.c val = SSI_DATAACCEPT(msg->channel); msg 192 drivers/hsi/controllers/omap_ssi_core.c dma_unmap_sg(&ssi->device, msg->sgt.sgl, msg->sgt.nents, dir); msg 194 drivers/hsi/controllers/omap_ssi_core.c omap_ssi->gdd_trn[lch].msg = NULL; /* release GDD lch */ msg 196 drivers/hsi/controllers/omap_ssi_core.c msg->channel, msg->ttype); msg 199 drivers/hsi/controllers/omap_ssi_core.c msg->status = HSI_STATUS_ERROR; msg 200 drivers/hsi/controllers/omap_ssi_core.c msg->actual_len = 0; msg 202 drivers/hsi/controllers/omap_ssi_core.c list_del(&msg->link); /* Dequeue msg */ msg 205 drivers/hsi/controllers/omap_ssi_core.c list_add_tail(&msg->link, &omap_port->errqueue); msg 214 drivers/hsi/controllers/omap_ssi_core.c msg->status = HSI_STATUS_COMPLETED; msg 215 drivers/hsi/controllers/omap_ssi_core.c msg->actual_len = sg_dma_len(msg->sgt.sgl); msg 23 drivers/hsi/controllers/omap_ssi_port.c static inline int hsi_dummy_msg(struct hsi_msg *msg __maybe_unused) msg 178 drivers/hsi/controllers/omap_ssi_port.c struct hsi_msg *msg; msg 183 drivers/hsi/controllers/omap_ssi_port.c msg = list_entry(head, struct hsi_msg, link); msg 184 drivers/hsi/controllers/omap_ssi_port.c msg->complete(msg); msg 189 drivers/hsi/controllers/omap_ssi_port.c static int ssi_claim_lch(struct hsi_msg *msg) msg 192 drivers/hsi/controllers/omap_ssi_port.c struct hsi_port *port = hsi_get_port(msg->cl); msg 198 drivers/hsi/controllers/omap_ssi_port.c if (!omap_ssi->gdd_trn[lch].msg) { msg 199 drivers/hsi/controllers/omap_ssi_port.c omap_ssi->gdd_trn[lch].msg = msg; msg 200 drivers/hsi/controllers/omap_ssi_port.c omap_ssi->gdd_trn[lch].sg = msg->sgt.sgl; msg 207 drivers/hsi/controllers/omap_ssi_port.c static int ssi_start_dma(struct hsi_msg *msg, int lch) msg 209 drivers/hsi/controllers/omap_ssi_port.c struct hsi_port *port = hsi_get_port(msg->cl); msg 230 drivers/hsi/controllers/omap_ssi_port.c if (msg->ttype == HSI_MSG_READ) { msg 231 drivers/hsi/controllers/omap_ssi_port.c err = dma_map_sg(&ssi->device, msg->sgt.sgl, msg->sgt.nents, msg 241 drivers/hsi/controllers/omap_ssi_port.c ccr = msg->channel + 0x10 + (port->num * 8); /* Sync */ msg 245 drivers/hsi/controllers/omap_ssi_port.c SSI_SSR_BUFFER_CH_REG(msg->channel); msg 246 drivers/hsi/controllers/omap_ssi_port.c d_addr = sg_dma_address(msg->sgt.sgl); msg 248 drivers/hsi/controllers/omap_ssi_port.c err = dma_map_sg(&ssi->device, msg->sgt.sgl, msg->sgt.nents, msg 258 drivers/hsi/controllers/omap_ssi_port.c ccr = (msg->channel + 1 + (port->num * 8)) & 0xf; /* Sync */ msg 261 drivers/hsi/controllers/omap_ssi_port.c s_addr = sg_dma_address(msg->sgt.sgl); msg 263 drivers/hsi/controllers/omap_ssi_port.c SSI_SST_BUFFER_CH_REG(msg->channel); msg 272 drivers/hsi/controllers/omap_ssi_port.c writew_relaxed(SSI_BYTES_TO_FRAMES(msg->sgt.sgl->length), msg 281 drivers/hsi/controllers/omap_ssi_port.c msg->status = HSI_STATUS_PROCEEDING; msg 286 drivers/hsi/controllers/omap_ssi_port.c static int ssi_start_pio(struct hsi_msg *msg) msg 288 drivers/hsi/controllers/omap_ssi_port.c struct hsi_port *port = hsi_get_port(msg->cl); msg 302 drivers/hsi/controllers/omap_ssi_port.c if (msg->ttype == HSI_MSG_WRITE) { msg 303 drivers/hsi/controllers/omap_ssi_port.c val = SSI_DATAACCEPT(msg->channel); msg 307 drivers/hsi/controllers/omap_ssi_port.c val = SSI_DATAAVAILABLE(msg->channel) | SSI_ERROROCCURED; msg 310 drivers/hsi/controllers/omap_ssi_port.c msg->ttype ? "write" : "read"); msg 314 drivers/hsi/controllers/omap_ssi_port.c msg->actual_len = 0; msg 315 drivers/hsi/controllers/omap_ssi_port.c msg->status = HSI_STATUS_PROCEEDING; msg 322 drivers/hsi/controllers/omap_ssi_port.c struct hsi_msg *msg; msg 327 drivers/hsi/controllers/omap_ssi_port.c msg = list_first_entry(queue, struct hsi_msg, link); msg 328 drivers/hsi/controllers/omap_ssi_port.c if (msg->status != HSI_STATUS_QUEUED) msg 330 drivers/hsi/controllers/omap_ssi_port.c if ((msg->sgt.nents) && (msg->sgt.sgl->length > sizeof(u32))) msg 331 drivers/hsi/controllers/omap_ssi_port.c lch = ssi_claim_lch(msg); msg 333 drivers/hsi/controllers/omap_ssi_port.c return ssi_start_dma(msg, lch); msg 335 drivers/hsi/controllers/omap_ssi_port.c return ssi_start_pio(msg); msg 338 drivers/hsi/controllers/omap_ssi_port.c static int ssi_async_break(struct hsi_msg *msg) msg 340 drivers/hsi/controllers/omap_ssi_port.c struct hsi_port *port = hsi_get_port(msg->cl); msg 348 drivers/hsi/controllers/omap_ssi_port.c if (msg->ttype == HSI_MSG_WRITE) { msg 354 drivers/hsi/controllers/omap_ssi_port.c msg->status = HSI_STATUS_COMPLETED; msg 355 drivers/hsi/controllers/omap_ssi_port.c msg->complete(msg); msg 366 drivers/hsi/controllers/omap_ssi_port.c msg->status = HSI_STATUS_PROCEEDING; msg 367 drivers/hsi/controllers/omap_ssi_port.c list_add_tail(&msg->link, &omap_port->brkqueue); msg 377 drivers/hsi/controllers/omap_ssi_port.c static int ssi_async(struct hsi_msg *msg) msg 379 drivers/hsi/controllers/omap_ssi_port.c struct hsi_port *port = hsi_get_port(msg->cl); msg 384 drivers/hsi/controllers/omap_ssi_port.c BUG_ON(!msg); msg 386 drivers/hsi/controllers/omap_ssi_port.c if (msg->sgt.nents > 1) msg 389 drivers/hsi/controllers/omap_ssi_port.c if (msg->break_frame) msg 390 drivers/hsi/controllers/omap_ssi_port.c return ssi_async_break(msg); msg 392 drivers/hsi/controllers/omap_ssi_port.c if (msg->ttype) { msg 393 drivers/hsi/controllers/omap_ssi_port.c BUG_ON(msg->channel >= omap_port->sst.channels); msg 394 drivers/hsi/controllers/omap_ssi_port.c queue = &omap_port->txqueue[msg->channel]; msg 396 drivers/hsi/controllers/omap_ssi_port.c BUG_ON(msg->channel >= omap_port->ssr.channels); msg 397 drivers/hsi/controllers/omap_ssi_port.c queue = &omap_port->rxqueue[msg->channel]; msg 399 drivers/hsi/controllers/omap_ssi_port.c msg->status = HSI_STATUS_QUEUED; msg 403 drivers/hsi/controllers/omap_ssi_port.c list_add_tail(&msg->link, queue); msg 406 drivers/hsi/controllers/omap_ssi_port.c list_del(&msg->link); msg 407 drivers/hsi/controllers/omap_ssi_port.c msg->status = HSI_STATUS_ERROR; msg 413 drivers/hsi/controllers/omap_ssi_port.c msg->status, msg->ttype, msg->channel); msg 437 drivers/hsi/controllers/omap_ssi_port.c struct hsi_msg *msg; msg 440 drivers/hsi/controllers/omap_ssi_port.c msg = list_entry(node, struct hsi_msg, link); msg 441 drivers/hsi/controllers/omap_ssi_port.c if ((cl) && (cl != msg->cl)) msg 445 drivers/hsi/controllers/omap_ssi_port.c msg->channel, msg, msg->sgt.sgl->length, msg 446 drivers/hsi/controllers/omap_ssi_port.c msg->ttype, msg->context); msg 447 drivers/hsi/controllers/omap_ssi_port.c if (msg->destructor) msg 448 drivers/hsi/controllers/omap_ssi_port.c msg->destructor(msg); msg 450 drivers/hsi/controllers/omap_ssi_port.c hsi_free_msg(msg); msg 525 drivers/hsi/controllers/omap_ssi_port.c struct hsi_msg *msg; msg 540 drivers/hsi/controllers/omap_ssi_port.c msg = omap_ssi->gdd_trn[i].msg; msg 541 drivers/hsi/controllers/omap_ssi_port.c if (!msg || (port != hsi_get_port(msg->cl))) msg 544 drivers/hsi/controllers/omap_ssi_port.c if (msg->ttype == HSI_MSG_READ) msg 546 drivers/hsi/controllers/omap_ssi_port.c omap_ssi->gdd_trn[i].msg = NULL; msg 644 drivers/hsi/controllers/omap_ssi_port.c struct hsi_msg *msg; msg 652 drivers/hsi/controllers/omap_ssi_port.c msg = list_first_entry(queue, struct hsi_msg, link); msg 653 drivers/hsi/controllers/omap_ssi_port.c msg->status = HSI_STATUS_ERROR; msg 654 drivers/hsi/controllers/omap_ssi_port.c msg->actual_len = 0; msg 655 drivers/hsi/controllers/omap_ssi_port.c list_del(&msg->link); msg 657 drivers/hsi/controllers/omap_ssi_port.c msg->complete(msg); msg 672 drivers/hsi/controllers/omap_ssi_port.c struct hsi_msg *msg; msg 686 drivers/hsi/controllers/omap_ssi_port.c msg = list_first_entry(&omap_port->txqueue[i], struct hsi_msg, msg 688 drivers/hsi/controllers/omap_ssi_port.c if ((msg->cl == cl) && (msg->status == HSI_STATUS_PROCEEDING)) { msg 700 drivers/hsi/controllers/omap_ssi_port.c msg = list_first_entry(&omap_port->rxqueue[i], struct hsi_msg, msg 702 drivers/hsi/controllers/omap_ssi_port.c if ((msg->cl == cl) && (msg->status == HSI_STATUS_PROCEEDING)) { msg 732 drivers/hsi/controllers/omap_ssi_port.c struct hsi_msg *msg; msg 738 drivers/hsi/controllers/omap_ssi_port.c msg = omap_ssi->gdd_trn[i].msg; msg 739 drivers/hsi/controllers/omap_ssi_port.c if ((!msg) || (msg->cl != cl)) msg 747 drivers/hsi/controllers/omap_ssi_port.c if (msg->ttype == HSI_MSG_READ) { msg 751 drivers/hsi/controllers/omap_ssi_port.c omap_ssi->gdd_trn[i].msg = NULL; msg 810 drivers/hsi/controllers/omap_ssi_port.c struct hsi_msg *msg; msg 826 drivers/hsi/controllers/omap_ssi_port.c msg = omap_ssi->gdd_trn[i].msg; msg 827 drivers/hsi/controllers/omap_ssi_port.c if ((msg) && (msg->ttype == HSI_MSG_READ)) { msg 830 drivers/hsi/controllers/omap_ssi_port.c omap_ssi->gdd_trn[i].msg = NULL; msg 850 drivers/hsi/controllers/omap_ssi_port.c msg = list_first_entry(&omap_port->rxqueue[i], struct hsi_msg, msg 852 drivers/hsi/controllers/omap_ssi_port.c list_del(&msg->link); msg 853 drivers/hsi/controllers/omap_ssi_port.c msg->status = HSI_STATUS_ERROR; msg 855 drivers/hsi/controllers/omap_ssi_port.c msg->complete(msg); msg 868 drivers/hsi/controllers/omap_ssi_port.c struct hsi_msg *msg; msg 883 drivers/hsi/controllers/omap_ssi_port.c list_for_each_entry_safe(msg, tmp, &omap_port->brkqueue, link) { msg 884 drivers/hsi/controllers/omap_ssi_port.c msg->status = HSI_STATUS_COMPLETED; msg 886 drivers/hsi/controllers/omap_ssi_port.c list_del(&msg->link); msg 888 drivers/hsi/controllers/omap_ssi_port.c msg->complete(msg); msg 898 drivers/hsi/controllers/omap_ssi_port.c struct hsi_msg *msg; msg 904 drivers/hsi/controllers/omap_ssi_port.c msg = list_first_entry(queue, struct hsi_msg, link); msg 905 drivers/hsi/controllers/omap_ssi_port.c if ((!msg->sgt.nents) || (!msg->sgt.sgl->length)) { msg 906 drivers/hsi/controllers/omap_ssi_port.c msg->actual_len = 0; msg 907 drivers/hsi/controllers/omap_ssi_port.c msg->status = HSI_STATUS_PENDING; msg 909 drivers/hsi/controllers/omap_ssi_port.c if (msg->ttype == HSI_MSG_WRITE) msg 910 drivers/hsi/controllers/omap_ssi_port.c val = SSI_DATAACCEPT(msg->channel); msg 912 drivers/hsi/controllers/omap_ssi_port.c val = SSI_DATAAVAILABLE(msg->channel); msg 913 drivers/hsi/controllers/omap_ssi_port.c if (msg->status == HSI_STATUS_PROCEEDING) { msg 914 drivers/hsi/controllers/omap_ssi_port.c buf = sg_virt(msg->sgt.sgl) + msg->actual_len; msg 915 drivers/hsi/controllers/omap_ssi_port.c if (msg->ttype == HSI_MSG_WRITE) msg 917 drivers/hsi/controllers/omap_ssi_port.c SSI_SST_BUFFER_CH_REG(msg->channel)); msg 920 drivers/hsi/controllers/omap_ssi_port.c SSI_SSR_BUFFER_CH_REG(msg->channel)); msg 921 drivers/hsi/controllers/omap_ssi_port.c dev_dbg(&port->device, "ch %d ttype %d 0x%08x\n", msg->channel, msg 922 drivers/hsi/controllers/omap_ssi_port.c msg->ttype, *buf); msg 923 drivers/hsi/controllers/omap_ssi_port.c msg->actual_len += sizeof(*buf); msg 924 drivers/hsi/controllers/omap_ssi_port.c if (msg->actual_len >= msg->sgt.sgl->length) msg 925 drivers/hsi/controllers/omap_ssi_port.c msg->status = HSI_STATUS_COMPLETED; msg 930 drivers/hsi/controllers/omap_ssi_port.c if ((msg->status == HSI_STATUS_PROCEEDING) || msg 931 drivers/hsi/controllers/omap_ssi_port.c ((msg->status == HSI_STATUS_COMPLETED) && msg 932 drivers/hsi/controllers/omap_ssi_port.c (msg->ttype == HSI_MSG_WRITE))) { msg 943 drivers/hsi/controllers/omap_ssi_port.c if (msg->ttype == HSI_MSG_WRITE) { msg 951 drivers/hsi/controllers/omap_ssi_port.c list_del(&msg->link); msg 953 drivers/hsi/controllers/omap_ssi_port.c msg->complete(msg); msg 422 drivers/hsi/hsi_core.c static inline int hsi_dummy_msg(struct hsi_msg *msg __maybe_unused) msg 516 drivers/hsi/hsi_core.c void hsi_free_msg(struct hsi_msg *msg) msg 518 drivers/hsi/hsi_core.c if (!msg) msg 520 drivers/hsi/hsi_core.c sg_free_table(&msg->sgt); msg 521 drivers/hsi/hsi_core.c kfree(msg); msg 538 drivers/hsi/hsi_core.c struct hsi_msg *msg; msg 541 drivers/hsi/hsi_core.c msg = kzalloc(sizeof(*msg), flags); msg 542 drivers/hsi/hsi_core.c if (!msg) msg 546 drivers/hsi/hsi_core.c return msg; msg 548 drivers/hsi/hsi_core.c err = sg_alloc_table(&msg->sgt, nents, flags); msg 550 drivers/hsi/hsi_core.c kfree(msg); msg 551 drivers/hsi/hsi_core.c msg = NULL; msg 554 drivers/hsi/hsi_core.c return msg; msg 577 drivers/hsi/hsi_core.c int hsi_async(struct hsi_client *cl, struct hsi_msg *msg) msg 584 drivers/hsi/hsi_core.c WARN_ON_ONCE(!msg->destructor || !msg->complete); msg 585 drivers/hsi/hsi_core.c msg->cl = cl; msg 587 drivers/hsi/hsi_core.c return port->async(msg); msg 173 drivers/hv/channel.c open_msg = (struct vmbus_channel_open_channel *)open_info->msg; msg 330 drivers/hv/channel.c msgheader->msg; msg 380 drivers/hv/channel.c (struct vmbus_channel_gpadl_body *)msgbody->msg; msg 411 drivers/hv/channel.c msgheader->msg; msg 461 drivers/hv/channel.c gpadlmsg = (struct vmbus_channel_gpadl_header *)msginfo->msg; msg 489 drivers/hv/channel.c (struct vmbus_channel_gpadl_body *)submsginfo->msg; msg 542 drivers/hv/channel.c struct vmbus_channel_gpadl_teardown *msg; msg 555 drivers/hv/channel.c msg = (struct vmbus_channel_gpadl_teardown *)info->msg; msg 557 drivers/hv/channel.c msg->header.msgtype = CHANNELMSG_GPADL_TEARDOWN; msg 558 drivers/hv/channel.c msg->child_relid = channel->offermsg.child_relid; msg 559 drivers/hv/channel.c msg->gpadl = gpadl_handle; msg 569 drivers/hv/channel.c ret = vmbus_post_msg(msg, sizeof(struct vmbus_channel_gpadl_teardown), msg 572 drivers/hv/channel.c trace_vmbus_teardown_gpadl(msg, ret); msg 633 drivers/hv/channel.c struct vmbus_channel_close_channel *msg; msg 652 drivers/hv/channel.c msg = &channel->close_msg.msg; msg 654 drivers/hv/channel.c msg->header.msgtype = CHANNELMSG_CLOSECHANNEL; msg 655 drivers/hv/channel.c msg->child_relid = channel->offermsg.child_relid; msg 657 drivers/hv/channel.c ret = vmbus_post_msg(msg, sizeof(struct vmbus_channel_close_channel), msg 660 drivers/hv/channel.c trace_vmbus_close_internal(msg, ret); msg 362 drivers/hv/channel_mgmt.c struct vmbus_channel_relid_released msg; msg 365 drivers/hv/channel_mgmt.c memset(&msg, 0, sizeof(struct vmbus_channel_relid_released)); msg 366 drivers/hv/channel_mgmt.c msg.child_relid = relid; msg 367 drivers/hv/channel_mgmt.c msg.header.msgtype = CHANNELMSG_RELID_RELEASED; msg 368 drivers/hv/channel_mgmt.c ret = vmbus_post_msg(&msg, sizeof(struct vmbus_channel_relid_released), msg 371 drivers/hv/channel_mgmt.c trace_vmbus_release_relid(&msg, ret); msg 770 drivers/hv/channel_mgmt.c struct hv_message *msg; msg 792 drivers/hv/channel_mgmt.c msg = (struct hv_message *)page_addr msg 795 drivers/hv/channel_mgmt.c message_type = READ_ONCE(msg->header.message_type); msg 800 drivers/hv/channel_mgmt.c msg->u.payload; msg 805 drivers/hv/channel_mgmt.c vmbus_signal_eom(msg, message_type); msg 821 drivers/hv/channel_mgmt.c msg = (struct hv_message *)page_addr + VMBUS_MESSAGE_SINT; msg 822 drivers/hv/channel_mgmt.c msg->header.message_type = HVMSG_NONE; msg 1180 drivers/hv/channel_mgmt.c (struct vmbus_channel_message_header *)msginfo->msg; msg 1184 drivers/hv/channel_mgmt.c (struct vmbus_channel_open_channel *)msginfo->msg; msg 1227 drivers/hv/channel_mgmt.c (struct vmbus_channel_message_header *)msginfo->msg; msg 1276 drivers/hv/channel_mgmt.c (struct vmbus_channel_message_header *)msginfo->msg; msg 1319 drivers/hv/channel_mgmt.c (struct vmbus_channel_message_header *)msginfo->msg; msg 1366 drivers/hv/channel_mgmt.c struct hv_message *msg = context; msg 1370 drivers/hv/channel_mgmt.c hdr = (struct vmbus_channel_message_header *)msg->u.payload; msg 1371 drivers/hv/channel_mgmt.c size = msg->header.payload_size; msg 1379 drivers/hv/channel_mgmt.c (unsigned char *)msg->u.payload, size); msg 1394 drivers/hv/channel_mgmt.c struct vmbus_channel_message_header *msg; msg 1404 drivers/hv/channel_mgmt.c msg = (struct vmbus_channel_message_header *)msginfo->msg; msg 1406 drivers/hv/channel_mgmt.c msg->msgtype = CHANNELMSG_REQUESTOFFERS; msg 1408 drivers/hv/channel_mgmt.c ret = vmbus_post_msg(msg, sizeof(struct vmbus_channel_message_header), msg 71 drivers/hv/connection.c struct vmbus_channel_initiate_contact *msg; msg 76 drivers/hv/connection.c msg = (struct vmbus_channel_initiate_contact *)msginfo->msg; msg 78 drivers/hv/connection.c memset(msg, 0, sizeof(*msg)); msg 79 drivers/hv/connection.c msg->header.msgtype = CHANNELMSG_INITIATE_CONTACT; msg 80 drivers/hv/connection.c msg->vmbus_version_requested = version; msg 94 drivers/hv/connection.c msg->msg_sint = VMBUS_MESSAGE_SINT; msg 97 drivers/hv/connection.c msg->interrupt_page = virt_to_phys(vmbus_connection.int_page); msg 101 drivers/hv/connection.c msg->monitor_page1 = virt_to_phys(vmbus_connection.monitor_pages[0]); msg 102 drivers/hv/connection.c msg->monitor_page2 = virt_to_phys(vmbus_connection.monitor_pages[1]); msg 114 drivers/hv/connection.c msg->target_vcpu = hv_cpu_number_to_vp_number(cur_cpu); msg 118 drivers/hv/connection.c msg->target_vcpu = 0; msg 132 drivers/hv/connection.c ret = vmbus_post_msg(msg, msg 136 drivers/hv/connection.c trace_vmbus_negotiate_version(msg, ret); msg 1067 drivers/hv/hv_balloon.c static void process_info(struct hv_dynmem_device *dm, struct dm_info_msg *msg) msg 1071 drivers/hv/hv_balloon.c info_hdr = (struct dm_info_header *)msg->info; msg 289 drivers/hv/hv_fcopy.c static int fcopy_on_msg(void *msg, int len) msg 291 drivers/hv/hv_fcopy.c int *val = (int *)msg; msg 92 drivers/hv/hv_kvp.c static void kvp_respond_to_host(struct hv_kvp_msg *msg, int error); msg 165 drivers/hv/hv_kvp.c static int kvp_handle_handshake(struct hv_kvp_msg *msg) msg 167 drivers/hv/hv_kvp.c switch (msg->kvp_hdr.operation) { msg 179 drivers/hv/hv_kvp.c KVP_OP_REGISTER1, msg->kvp_hdr.operation); msg 187 drivers/hv/hv_kvp.c msg->kvp_hdr.operation); msg 198 drivers/hv/hv_kvp.c static int kvp_on_msg(void *msg, int len) msg 200 drivers/hv/hv_kvp.c struct hv_kvp_msg *message = (struct hv_kvp_msg *)msg; msg 57 drivers/hv/hv_snapshot.c struct hv_vss_msg *msg; /* current message */ msg 129 drivers/hv/hv_snapshot.c static int vss_on_msg(void *msg, int len) msg 131 drivers/hv/hv_snapshot.c struct hv_vss_msg *vss_msg = (struct hv_vss_msg *)msg; msg 154 drivers/hv/hv_snapshot.c vss_transaction.msg->vss_cf.flags = msg 173 drivers/hv/hv_snapshot.c int op = vss_transaction.msg->vss_hdr.operation; msg 208 drivers/hv/hv_snapshot.c switch (vss_transaction.msg->vss_hdr.operation) { msg 227 drivers/hv/hv_snapshot.c vss_transaction.msg->vss_hdr.operation); msg 232 drivers/hv/hv_snapshot.c vss_transaction.msg->dm_info.flags = 0; msg 329 drivers/hv/hv_snapshot.c vss_transaction.msg = (struct hv_vss_msg *)vss_msg; msg 136 drivers/hv/hv_trace.h TP_PROTO(const struct vmbus_channel_open_channel *msg, int ret), msg 137 drivers/hv/hv_trace.h TP_ARGS(msg, ret), msg 147 drivers/hv/hv_trace.h __entry->child_relid = msg->child_relid; msg 148 drivers/hv/hv_trace.h __entry->openid = msg->openid; msg 149 drivers/hv/hv_trace.h __entry->gpadlhandle = msg->ringbuffer_gpadlhandle; msg 150 drivers/hv/hv_trace.h __entry->target_vp = msg->target_vp; msg 151 drivers/hv/hv_trace.h __entry->offset = msg->downstream_ringbuffer_pageoffset; msg 163 drivers/hv/hv_trace.h TP_PROTO(const struct vmbus_channel_close_channel *msg, int ret), msg 164 drivers/hv/hv_trace.h TP_ARGS(msg, ret), msg 170 drivers/hv/hv_trace.h __entry->child_relid = msg->child_relid; msg 178 drivers/hv/hv_trace.h TP_PROTO(const struct vmbus_channel_gpadl_header *msg, int ret), msg 179 drivers/hv/hv_trace.h TP_ARGS(msg, ret), msg 188 drivers/hv/hv_trace.h __entry->child_relid = msg->child_relid; msg 189 drivers/hv/hv_trace.h __entry->gpadl = msg->gpadl; msg 190 drivers/hv/hv_trace.h __entry->range_buflen = msg->range_buflen; msg 191 drivers/hv/hv_trace.h __entry->rangecount = msg->rangecount; msg 202 drivers/hv/hv_trace.h TP_PROTO(const struct vmbus_channel_gpadl_body *msg, int ret), msg 203 drivers/hv/hv_trace.h TP_ARGS(msg, ret), msg 210 drivers/hv/hv_trace.h __entry->msgnumber = msg->msgnumber; msg 211 drivers/hv/hv_trace.h __entry->gpadl = msg->gpadl; msg 220 drivers/hv/hv_trace.h TP_PROTO(const struct vmbus_channel_gpadl_teardown *msg, int ret), msg 221 drivers/hv/hv_trace.h TP_ARGS(msg, ret), msg 228 drivers/hv/hv_trace.h __entry->child_relid = msg->child_relid; msg 229 drivers/hv/hv_trace.h __entry->gpadl = msg->gpadl; msg 238 drivers/hv/hv_trace.h TP_PROTO(const struct vmbus_channel_initiate_contact *msg, int ret), msg 239 drivers/hv/hv_trace.h TP_ARGS(msg, ret), msg 249 drivers/hv/hv_trace.h __entry->ver = msg->vmbus_version_requested; msg 250 drivers/hv/hv_trace.h __entry->target_vcpu = msg->target_vcpu; msg 251 drivers/hv/hv_trace.h __entry->int_page = msg->interrupt_page; msg 252 drivers/hv/hv_trace.h __entry->mon_page1 = msg->monitor_page1; msg 253 drivers/hv/hv_trace.h __entry->mon_page2 = msg->monitor_page2; msg 264 drivers/hv/hv_trace.h TP_PROTO(const struct vmbus_channel_relid_released *msg, int ret), msg 265 drivers/hv/hv_trace.h TP_ARGS(msg, ret), msg 271 drivers/hv/hv_trace.h __entry->child_relid = msg->child_relid; msg 280 drivers/hv/hv_trace.h TP_PROTO(const struct vmbus_channel_tl_connect_request *msg, msg 282 drivers/hv/hv_trace.h TP_ARGS(msg, ret), msg 289 drivers/hv/hv_trace.h memcpy(__entry->guest_id, &msg->guest_endpoint_id.b, 16); msg 290 drivers/hv/hv_trace.h memcpy(__entry->host_id, &msg->host_service_id.b, 16); msg 184 drivers/hv/hv_utils_transport.c static void hvt_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) msg 190 drivers/hv/hv_utils_transport.c if (hvt->cn_id.idx == msg->id.idx && msg 191 drivers/hv/hv_utils_transport.c hvt->cn_id.val == msg->id.val) { msg 211 drivers/hv/hv_utils_transport.c hvt_found->on_msg(msg->data, msg->len); msg 217 drivers/hv/hv_utils_transport.c int hvutil_transport_send(struct hvutil_transport *hvt, void *msg, int len, msg 233 drivers/hv/hv_utils_transport.c memcpy(cn_msg->data, msg, len); msg 259 drivers/hv/hv_utils_transport.c memcpy(hvt->outmsg, msg, len); msg 41 drivers/hv/hv_utils_transport.h int hvutil_transport_send(struct hvutil_transport *hvt, void *msg, int len, msg 295 drivers/hv/hyperv_vmbus.h unsigned char msg[0]; msg 319 drivers/hv/hyperv_vmbus.h void (*message_handler)(struct vmbus_channel_message_header *msg); msg 1034 drivers/hv/vmbus_drv.c struct hv_message msg; msg 1047 drivers/hv/vmbus_drv.c vmbus_onmessage(&ctx->msg); msg 1055 drivers/hv/vmbus_drv.c struct hv_message *msg = (struct hv_message *)page_addr + msg 1060 drivers/hv/vmbus_drv.c u32 message_type = msg->header.message_type; msg 1066 drivers/hv/vmbus_drv.c hdr = (struct vmbus_channel_message_header *)msg->u.payload; msg 1082 drivers/hv/vmbus_drv.c memcpy(&ctx->msg, msg, sizeof(*msg)); msg 1114 drivers/hv/vmbus_drv.c vmbus_signal_eom(msg, message_type); msg 1139 drivers/hv/vmbus_drv.c ctx->msg.header.message_type = 1; msg 1140 drivers/hv/vmbus_drv.c ctx->msg.header.payload_size = sizeof(*rescind); msg 1143 drivers/hv/vmbus_drv.c rescind = (struct vmbus_channel_rescind_offer *)ctx->msg.u.payload; msg 1242 drivers/hv/vmbus_drv.c struct hv_message *msg; msg 1277 drivers/hv/vmbus_drv.c msg = (struct hv_message *)page_addr + VMBUS_MESSAGE_SINT; msg 1280 drivers/hv/vmbus_drv.c if (msg->header.message_type != HVMSG_NONE) { msg 1281 drivers/hv/vmbus_drv.c if (msg->header.message_type == HVMSG_TIMER_EXPIRED) { msg 1283 drivers/hv/vmbus_drv.c vmbus_signal_eom(msg, HVMSG_TIMER_EXPIRED); msg 234 drivers/hwmon/ibmaem.c static void aem_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data); msg 313 drivers/hwmon/ibmaem.c static void aem_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data) msg 318 drivers/hwmon/ibmaem.c if (msg->msgid != data->tx_msgid) { msg 321 drivers/hwmon/ibmaem.c (int)msg->msgid, msg 323 drivers/hwmon/ibmaem.c ipmi_free_recv_msg(msg); msg 327 drivers/hwmon/ibmaem.c data->rx_recv_type = msg->recv_type; msg 328 drivers/hwmon/ibmaem.c if (msg->msg.data_len > 0) msg 329 drivers/hwmon/ibmaem.c data->rx_result = msg->msg.data[0]; msg 333 drivers/hwmon/ibmaem.c if (msg->msg.data_len > 1) { msg 334 drivers/hwmon/ibmaem.c rx_len = msg->msg.data_len - 1; msg 338 drivers/hwmon/ibmaem.c memcpy(data->rx_msg_data, msg->msg.data + 1, data->rx_msg_len); msg 342 drivers/hwmon/ibmaem.c ipmi_free_recv_msg(msg); msg 52 drivers/hwmon/ibmpex.c static void ibmpex_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data); msg 546 drivers/hwmon/ibmpex.c static void ibmpex_msg_handler(struct ipmi_recv_msg *msg, void *user_msg_data) msg 550 drivers/hwmon/ibmpex.c if (msg->msgid != data->tx_msgid) { msg 553 drivers/hwmon/ibmpex.c (int)msg->msgid, msg 555 drivers/hwmon/ibmpex.c ipmi_free_recv_msg(msg); msg 559 drivers/hwmon/ibmpex.c data->rx_recv_type = msg->recv_type; msg 560 drivers/hwmon/ibmpex.c if (msg->msg.data_len > 0) msg 561 drivers/hwmon/ibmpex.c data->rx_result = msg->msg.data[0]; msg 565 drivers/hwmon/ibmpex.c if (msg->msg.data_len > 1) { msg 566 drivers/hwmon/ibmpex.c data->rx_msg_len = msg->msg.data_len - 1; msg 567 drivers/hwmon/ibmpex.c memcpy(data->rx_msg_data, msg->msg.data + 1, data->rx_msg_len); msg 571 drivers/hwmon/ibmpex.c ipmi_free_recv_msg(msg); msg 39 drivers/hwmon/max1111.c struct spi_message msg; msg 62 drivers/hwmon/max1111.c err = spi_sync(data->spi, &data->msg); msg 165 drivers/hwmon/max1111.c m = &data->msg; msg 93 drivers/hwmon/pmbus/ibm-cffps.c struct i2c_msg msg[2] = { msg 114 drivers/hwmon/pmbus/ibm-cffps.c rc = i2c_transfer(psu->client->adapter, msg, 2); msg 58 drivers/hwmon/pmbus/max31785.c struct i2c_msg msg[2] = { msg 79 drivers/hwmon/pmbus/max31785.c rc = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg)); msg 88 drivers/hwmon/xgene-hwmon.c u32 msg; msg 131 drivers/hwmon/xgene-hwmon.c static int xgene_hwmon_pcc_rd(struct xgene_hwmon_dev *ctx, u32 *msg) msg 148 drivers/hwmon/xgene-hwmon.c cpu_to_le16(MSG_TYPE(msg[0]) | PCCC_GENERATE_DB_INT)); msg 157 drivers/hwmon/xgene-hwmon.c WRITE_ONCE(ptr[i], cpu_to_le32(msg[i])); msg 160 drivers/hwmon/xgene-hwmon.c rc = mbox_send_message(ctx->mbox_chan, msg); msg 173 drivers/hwmon/xgene-hwmon.c if (MSG_TYPE(ctx->sync_msg.msg) == MSG_TYPE_ERR) { msg 178 drivers/hwmon/xgene-hwmon.c msg[0] = ctx->sync_msg.msg; msg 179 drivers/hwmon/xgene-hwmon.c msg[1] = ctx->sync_msg.param1; msg 180 drivers/hwmon/xgene-hwmon.c msg[2] = ctx->sync_msg.param2; msg 189 drivers/hwmon/xgene-hwmon.c static int xgene_hwmon_rd(struct xgene_hwmon_dev *ctx, u32 *msg) msg 197 drivers/hwmon/xgene-hwmon.c rc = mbox_send_message(ctx->mbox_chan, msg); msg 211 drivers/hwmon/xgene-hwmon.c if (MSG_TYPE(ctx->sync_msg.msg) == MSG_TYPE_ERR) { msg 216 drivers/hwmon/xgene-hwmon.c msg[0] = ctx->sync_msg.msg; msg 217 drivers/hwmon/xgene-hwmon.c msg[1] = ctx->sync_msg.param1; msg 218 drivers/hwmon/xgene-hwmon.c msg[2] = ctx->sync_msg.param2; msg 229 drivers/hwmon/xgene-hwmon.c u32 msg[3]; msg 232 drivers/hwmon/xgene-hwmon.c msg[0] = SENSOR_RD_MSG; msg 233 drivers/hwmon/xgene-hwmon.c msg[1] = SENSOR_RD_EN_ADDR(addr); msg 234 drivers/hwmon/xgene-hwmon.c msg[2] = 0; msg 237 drivers/hwmon/xgene-hwmon.c rc = xgene_hwmon_rd(ctx, msg); msg 239 drivers/hwmon/xgene-hwmon.c rc = xgene_hwmon_pcc_rd(ctx, msg); msg 247 drivers/hwmon/xgene-hwmon.c if (msg[1] & SENSOR_INVALID_DATA) msg 250 drivers/hwmon/xgene-hwmon.c *data = msg[1]; msg 258 drivers/hwmon/xgene-hwmon.c u32 msg[3]; msg 261 drivers/hwmon/xgene-hwmon.c msg[0] = TPC_EN_MSG(PWRMGMT_SUBTYPE_TPC, TPC_GET_ALARM, 0); msg 262 drivers/hwmon/xgene-hwmon.c msg[1] = 0; msg 263 drivers/hwmon/xgene-hwmon.c msg[2] = 0; msg 265 drivers/hwmon/xgene-hwmon.c rc = xgene_hwmon_pcc_rd(ctx, msg); msg 269 drivers/hwmon/xgene-hwmon.c amsg[0] = msg[0]; msg 270 drivers/hwmon/xgene-hwmon.c amsg[1] = msg[1]; msg 271 drivers/hwmon/xgene-hwmon.c amsg[2] = msg[2]; msg 428 drivers/hwmon/xgene-hwmon.c if ((MSG_SUBTYPE(amsg->msg) == PWRMGMT_SUBTYPE_TPC) && msg 429 drivers/hwmon/xgene-hwmon.c (TPC_CMD(amsg->msg) == TPC_ALARM)) msg 457 drivers/hwmon/xgene-hwmon.c if (MSG_TYPE(amsg.msg) == MSG_TYPE_PWRMGMT) msg 462 drivers/hwmon/xgene-hwmon.c static int xgene_hwmon_rx_ready(struct xgene_hwmon_dev *ctx, void *msg) msg 466 drivers/hwmon/xgene-hwmon.c kfifo_in_spinlocked(&ctx->async_msg_fifo, msg, msg 478 drivers/hwmon/xgene-hwmon.c static void xgene_hwmon_rx_cb(struct mbox_client *cl, void *msg) msg 488 drivers/hwmon/xgene-hwmon.c if (xgene_hwmon_rx_ready(ctx, msg) < 0) msg 502 drivers/hwmon/xgene-hwmon.c ((MSG_TYPE(((u32 *)msg)[0]) == MSG_TYPE_ERR) || msg 503 drivers/hwmon/xgene-hwmon.c (MSG_TYPE(((u32 *)msg)[0]) == MSG_TYPE_DBG && msg 504 drivers/hwmon/xgene-hwmon.c MSG_SUBTYPE(((u32 *)msg)[0]) == DBG_SUBTYPE_SENSOR_READ) || msg 505 drivers/hwmon/xgene-hwmon.c (MSG_TYPE(((u32 *)msg)[0]) == MSG_TYPE_PWRMGMT && msg 506 drivers/hwmon/xgene-hwmon.c MSG_SUBTYPE(((u32 *)msg)[0]) == PWRMGMT_SUBTYPE_TPC && msg 507 drivers/hwmon/xgene-hwmon.c TPC_CMD(((u32 *)msg)[0]) == TPC_ALARM))) { msg 508 drivers/hwmon/xgene-hwmon.c ctx->sync_msg.msg = ((u32 *)msg)[0]; msg 509 drivers/hwmon/xgene-hwmon.c ctx->sync_msg.param1 = ((u32 *)msg)[1]; msg 510 drivers/hwmon/xgene-hwmon.c ctx->sync_msg.param2 = ((u32 *)msg)[2]; msg 519 drivers/hwmon/xgene-hwmon.c kfifo_in_spinlocked(&ctx->async_msg_fifo, msg, msg 528 drivers/hwmon/xgene-hwmon.c static void xgene_hwmon_pcc_rx_cb(struct mbox_client *cl, void *msg) msg 543 drivers/hwmon/xgene-hwmon.c msg = generic_comm_base + 1; msg 560 drivers/hwmon/xgene-hwmon.c ((MSG_TYPE(((u32 *)msg)[0]) == MSG_TYPE_ERR) || msg 561 drivers/hwmon/xgene-hwmon.c (MSG_TYPE(((u32 *)msg)[0]) == MSG_TYPE_DBG && msg 562 drivers/hwmon/xgene-hwmon.c MSG_SUBTYPE(((u32 *)msg)[0]) == DBG_SUBTYPE_SENSOR_READ) || msg 563 drivers/hwmon/xgene-hwmon.c (MSG_TYPE(((u32 *)msg)[0]) == MSG_TYPE_PWRMGMT && msg 564 drivers/hwmon/xgene-hwmon.c MSG_SUBTYPE(((u32 *)msg)[0]) == PWRMGMT_SUBTYPE_TPC && msg 565 drivers/hwmon/xgene-hwmon.c TPC_CMD(((u32 *)msg)[0]) == TPC_ALARM))) { msg 569 drivers/hwmon/xgene-hwmon.c ctx->sync_msg.msg = ((u32 *)msg)[0]; msg 570 drivers/hwmon/xgene-hwmon.c ctx->sync_msg.param1 = ((u32 *)msg)[1]; msg 571 drivers/hwmon/xgene-hwmon.c ctx->sync_msg.param2 = ((u32 *)msg)[2]; msg 594 drivers/hwmon/xgene-hwmon.c static void xgene_hwmon_tx_done(struct mbox_client *cl, void *msg, int ret) msg 598 drivers/hwmon/xgene-hwmon.c *(u16 *)msg, ret); msg 601 drivers/hwmon/xgene-hwmon.c *(u16 *)msg, ret); msg 359 drivers/i2c/algos/i2c-algo-bit.c static int sendbytes(struct i2c_adapter *i2c_adap, struct i2c_msg *msg) msg 361 drivers/i2c/algos/i2c-algo-bit.c const unsigned char *temp = msg->buf; msg 362 drivers/i2c/algos/i2c-algo-bit.c int count = msg->len; msg 363 drivers/i2c/algos/i2c-algo-bit.c unsigned short nak_ok = msg->flags & I2C_M_IGNORE_NAK; msg 416 drivers/i2c/algos/i2c-algo-bit.c static int readbytes(struct i2c_adapter *i2c_adap, struct i2c_msg *msg) msg 420 drivers/i2c/algos/i2c-algo-bit.c unsigned char *temp = msg->buf; msg 421 drivers/i2c/algos/i2c-algo-bit.c int count = msg->len; msg 422 drivers/i2c/algos/i2c-algo-bit.c const unsigned flags = msg->flags; msg 451 drivers/i2c/algos/i2c-algo-bit.c msg->len += inval; msg 477 drivers/i2c/algos/i2c-algo-bit.c static int bit_doAddress(struct i2c_adapter *i2c_adap, struct i2c_msg *msg) msg 479 drivers/i2c/algos/i2c-algo-bit.c unsigned short flags = msg->flags; msg 480 drivers/i2c/algos/i2c-algo-bit.c unsigned short nak_ok = msg->flags & I2C_M_IGNORE_NAK; msg 490 drivers/i2c/algos/i2c-algo-bit.c addr = 0xf0 | ((msg->addr >> 7) & 0x06); msg 500 drivers/i2c/algos/i2c-algo-bit.c ret = i2c_outb(i2c_adap, msg->addr & 0xff); msg 520 drivers/i2c/algos/i2c-algo-bit.c addr = i2c_8bit_addr_from_msg(msg); msg 103 drivers/i2c/algos/i2c-algo-pca.c struct i2c_msg *msg) msg 106 drivers/i2c/algos/i2c-algo-pca.c int addr = i2c_8bit_addr_from_msg(msg); msg 109 drivers/i2c/algos/i2c-algo-pca.c msg->addr, msg->flags & I2C_M_RD ? 'R' : 'W', addr); msg 173 drivers/i2c/algos/i2c-algo-pca.c struct i2c_msg *msg = NULL; msg 196 drivers/i2c/algos/i2c-algo-pca.c msg = &msgs[curmsg]; msg 198 drivers/i2c/algos/i2c-algo-pca.c addr = (0x7f & msg->addr) ; msg 200 drivers/i2c/algos/i2c-algo-pca.c if (msg->flags & I2C_M_RD) msg 202 drivers/i2c/algos/i2c-algo-pca.c curmsg, msg->len, addr, (addr << 1) | 1); msg 205 drivers/i2c/algos/i2c-algo-pca.c curmsg, msg->len, addr, addr << 1, msg 206 drivers/i2c/algos/i2c-algo-pca.c msg->len == 0 ? "" : ", "); msg 207 drivers/i2c/algos/i2c-algo-pca.c for (i = 0; i < msg->len; i++) msg 208 drivers/i2c/algos/i2c-algo-pca.c printk("%#04x%s", msg->buf[i], i == msg->len - 1 ? "" : ", "); msg 220 drivers/i2c/algos/i2c-algo-pca.c msg = &msgs[curmsg]; msg 229 drivers/i2c/algos/i2c-algo-pca.c completed = pca_address(adap, msg); msg 234 drivers/i2c/algos/i2c-algo-pca.c if (numbytes < msg->len) { msg 236 drivers/i2c/algos/i2c-algo-pca.c msg->buf[numbytes]); msg 254 drivers/i2c/algos/i2c-algo-pca.c completed = pca_rx_ack(adap, msg->len > 1); msg 258 drivers/i2c/algos/i2c-algo-pca.c if (numbytes < msg->len) { msg 259 drivers/i2c/algos/i2c-algo-pca.c pca_rx_byte(adap, &msg->buf[numbytes], 1); msg 262 drivers/i2c/algos/i2c-algo-pca.c numbytes < msg->len - 1); msg 298 drivers/i2c/algos/i2c-algo-pca.c if (numbytes == msg->len - 1) { msg 299 drivers/i2c/algos/i2c-algo-pca.c pca_rx_byte(adap, &msg->buf[numbytes], 0); msg 308 drivers/i2c/algos/i2c-algo-pca.c numbytes, msg->len); msg 283 drivers/i2c/algos/i2c-algo-pcf.c struct i2c_msg *msg) msg 285 drivers/i2c/algos/i2c-algo-pcf.c unsigned char addr = i2c_8bit_addr_from_msg(msg); msg 287 drivers/i2c/algos/i2c-algo-pcf.c if (msg->flags & I2C_M_REV_DIR_ADDR) msg 77 drivers/i2c/busses/i2c-altera.c struct i2c_msg *msg; msg 251 drivers/i2c/busses/i2c-altera.c if (!idev->msg) { msg 256 drivers/i2c/busses/i2c-altera.c read = (idev->msg->flags & I2C_M_RD) != 0; msg 313 drivers/i2c/busses/i2c-altera.c static int altr_i2c_xfer_msg(struct altr_i2c_dev *idev, struct i2c_msg *msg) msg 318 drivers/i2c/busses/i2c-altera.c u8 addr = i2c_8bit_addr_from_msg(msg); msg 321 drivers/i2c/busses/i2c-altera.c idev->msg = msg; msg 322 drivers/i2c/busses/i2c-altera.c idev->msg_len = msg->len; msg 323 drivers/i2c/busses/i2c-altera.c idev->buf = msg->buf; msg 335 drivers/i2c/busses/i2c-altera.c if ((msg->flags & I2C_M_RD) != 0) { msg 83 drivers/i2c/busses/i2c-amd-mp2-pci.c i2c_cmd_base->s.slave_addr = i2c_common->msg->addr; msg 84 drivers/i2c/busses/i2c-amd-mp2-pci.c i2c_cmd_base->s.length = i2c_common->msg->len; msg 95 drivers/i2c/busses/i2c-amd-mp2-pci.c if (i2c_common->msg->len <= 32) { msg 99 drivers/i2c/busses/i2c-amd-mp2-pci.c i2c_common->msg->buf, msg 100 drivers/i2c/busses/i2c-amd-mp2-pci.c i2c_common->msg->len); msg 118 drivers/i2c/busses/i2c-amd-mp2-pci.c if (unlikely(len != i2c_common->msg->len)) { msg 121 drivers/i2c/busses/i2c-amd-mp2-pci.c len, i2c_common->msg->len); msg 125 drivers/i2c/busses/i2c-amd-mp2-pci.c if (unlikely(slave_addr != i2c_common->msg->addr)) { msg 128 drivers/i2c/busses/i2c-amd-mp2-pci.c slave_addr, i2c_common->msg->addr); msg 154 drivers/i2c/busses/i2c-amd-mp2-pci.c memcpy_fromio(i2c_common->msg->buf, msg 46 drivers/i2c/busses/i2c-amd-mp2-plat.c i2c_common->msg->flags & I2C_M_RD ? msg 49 drivers/i2c/busses/i2c-amd-mp2-plat.c i2c_common->dma_buf = i2c_get_dma_safe_msg_buf(i2c_common->msg, 0); msg 51 drivers/i2c/busses/i2c-amd-mp2-plat.c i2c_common->msg->len, msg 68 drivers/i2c/busses/i2c-amd-mp2-plat.c i2c_common->msg->flags & I2C_M_RD ? msg 72 drivers/i2c/busses/i2c-amd-mp2-plat.c i2c_common->msg->len, dma_direction); msg 74 drivers/i2c/busses/i2c-amd-mp2-plat.c i2c_put_dma_safe_msg_buf(i2c_common->dma_buf, i2c_common->msg, true); msg 93 drivers/i2c/busses/i2c-amd-mp2-plat.c i2c_common->msg->buf); msg 108 drivers/i2c/busses/i2c-amd-mp2-plat.c i2c_common->msg->len > 32) msg 139 drivers/i2c/busses/i2c-amd-mp2-plat.c i2c_common->msg = pmsg; msg 155 drivers/i2c/busses/i2c-amd-mp2.h struct i2c_msg *msg; msg 342 drivers/i2c/busses/i2c-aspeed.c struct i2c_msg *msg = &bus->msgs[bus->msgs_index]; msg 343 drivers/i2c/busses/i2c-aspeed.c u8 slave_addr = i2c_8bit_addr_from_msg(msg); msg 360 drivers/i2c/busses/i2c-aspeed.c if (msg->flags & I2C_M_RD) { msg 363 drivers/i2c/busses/i2c-aspeed.c if (msg->len == 1 && !(msg->flags & I2C_M_RECV_LEN)) msg 405 drivers/i2c/busses/i2c-aspeed.c struct i2c_msg *msg; msg 447 drivers/i2c/busses/i2c-aspeed.c msg = &bus->msgs[bus->msgs_index]; msg 479 drivers/i2c/busses/i2c-aspeed.c pr_devel("no slave present at %02x\n", msg->addr); msg 486 drivers/i2c/busses/i2c-aspeed.c if (msg->len == 0) { /* SMBUS_QUICK */ msg 490 drivers/i2c/busses/i2c-aspeed.c if (msg->flags & I2C_M_RD) msg 509 drivers/i2c/busses/i2c-aspeed.c if (bus->buf_index < msg->len) { msg 511 drivers/i2c/busses/i2c-aspeed.c writel(msg->buf[bus->buf_index++], msg 532 drivers/i2c/busses/i2c-aspeed.c msg->buf[bus->buf_index++] = recv_byte; msg 534 drivers/i2c/busses/i2c-aspeed.c if (msg->flags & I2C_M_RECV_LEN) { msg 540 drivers/i2c/busses/i2c-aspeed.c msg->len = recv_byte + msg 541 drivers/i2c/busses/i2c-aspeed.c ((msg->flags & I2C_CLIENT_PEC) ? 2 : 1); msg 542 drivers/i2c/busses/i2c-aspeed.c msg->flags &= ~I2C_M_RECV_LEN; msg 545 drivers/i2c/busses/i2c-aspeed.c if (bus->buf_index < msg->len) { msg 548 drivers/i2c/busses/i2c-aspeed.c if (bus->buf_index + 1 == msg->len) msg 253 drivers/i2c/busses/i2c-at91-master.c if (unlikely(dev->msg->flags & I2C_M_RECV_LEN)) { msg 256 drivers/i2c/busses/i2c-at91-master.c dev->msg->flags &= ~I2C_M_RECV_LEN; msg 258 drivers/i2c/busses/i2c-at91-master.c dev->msg->len = dev->buf_len + 1; msg 488 drivers/i2c/busses/i2c-at91-master.c (dev->msg->flags & I2C_M_RD) ? "read" : "write", dev->buf_len); msg 514 drivers/i2c/busses/i2c-at91-master.c } else if (dev->msg->flags & I2C_M_RD) { msg 519 drivers/i2c/busses/i2c-at91-master.c !(dev->msg->flags & I2C_M_RECV_LEN)) msg 605 drivers/i2c/busses/i2c-at91-master.c static int at91_twi_xfer(struct i2c_adapter *adap, struct i2c_msg *msg, int num) msg 610 drivers/i2c/busses/i2c-at91-master.c struct i2c_msg *m_start = msg; msg 624 drivers/i2c/busses/i2c-at91-master.c m_start = &msg[1]; msg 625 drivers/i2c/busses/i2c-at91-master.c for (i = 0; i < msg->len; ++i) { msg 626 drivers/i2c/busses/i2c-at91-master.c const unsigned addr = msg->buf[msg->len - 1 - i]; msg 656 drivers/i2c/busses/i2c-at91-master.c dev->msg = m_start; msg 131 drivers/i2c/busses/i2c-at91.h struct i2c_msg *msg; msg 137 drivers/i2c/busses/i2c-axxia.c struct i2c_msg *msg; msg 251 drivers/i2c/busses/i2c-axxia.c static int i2c_m_rd(const struct i2c_msg *msg) msg 253 drivers/i2c/busses/i2c-axxia.c return (msg->flags & I2C_M_RD) != 0; msg 256 drivers/i2c/busses/i2c-axxia.c static int i2c_m_ten(const struct i2c_msg *msg) msg 258 drivers/i2c/busses/i2c-axxia.c return (msg->flags & I2C_M_TEN) != 0; msg 261 drivers/i2c/busses/i2c-axxia.c static int i2c_m_recv_len(const struct i2c_msg *msg) msg 263 drivers/i2c/busses/i2c-axxia.c return (msg->flags & I2C_M_RECV_LEN) != 0; msg 272 drivers/i2c/busses/i2c-axxia.c struct i2c_msg *msg = idev->msg_r; msg 274 drivers/i2c/busses/i2c-axxia.c int bytes_to_transfer = min(rx_fifo_avail, msg->len - idev->msg_xfrd_r); msg 279 drivers/i2c/busses/i2c-axxia.c if (idev->msg_xfrd_r == 0 && i2c_m_recv_len(msg)) { msg 289 drivers/i2c/busses/i2c-axxia.c msg->len = 1 + c; msg 290 drivers/i2c/busses/i2c-axxia.c writel(msg->len, idev->base + MST_RX_XFER); msg 292 drivers/i2c/busses/i2c-axxia.c msg->buf[idev->msg_xfrd_r++] = c; msg 304 drivers/i2c/busses/i2c-axxia.c struct i2c_msg *msg = idev->msg; msg 306 drivers/i2c/busses/i2c-axxia.c int bytes_to_transfer = min(tx_fifo_avail, msg->len - idev->msg_xfrd); msg 307 drivers/i2c/busses/i2c-axxia.c int ret = msg->len - idev->msg_xfrd - bytes_to_transfer; msg 310 drivers/i2c/busses/i2c-axxia.c writel(msg->buf[idev->msg_xfrd++], idev->base + MST_DATA); msg 378 drivers/i2c/busses/i2c-axxia.c if (!idev->msg) { msg 388 drivers/i2c/busses/i2c-axxia.c if (!i2c_m_rd(idev->msg) && (status & MST_STATUS_TFL)) { msg 404 drivers/i2c/busses/i2c-axxia.c idev->msg->addr, msg 436 drivers/i2c/busses/i2c-axxia.c static void axxia_i2c_set_addr(struct axxia_i2c_dev *idev, struct i2c_msg *msg) msg 440 drivers/i2c/busses/i2c-axxia.c if (i2c_m_ten(msg)) { msg 445 drivers/i2c/busses/i2c-axxia.c addr_1 = 0xF0 | ((msg->addr >> 7) & 0x06); msg 446 drivers/i2c/busses/i2c-axxia.c if (i2c_m_rd(msg)) msg 448 drivers/i2c/busses/i2c-axxia.c addr_2 = msg->addr & 0xFF; msg 454 drivers/i2c/busses/i2c-axxia.c addr_1 = i2c_8bit_addr_from_msg(msg); msg 490 drivers/i2c/busses/i2c-axxia.c idev->msg = &msgs[0]; msg 524 drivers/i2c/busses/i2c-axxia.c static int axxia_i2c_xfer_msg(struct axxia_i2c_dev *idev, struct i2c_msg *msg, msg 532 drivers/i2c/busses/i2c-axxia.c idev->msg = msg; msg 533 drivers/i2c/busses/i2c-axxia.c idev->msg_r = msg; msg 539 drivers/i2c/busses/i2c-axxia.c axxia_i2c_set_addr(idev, msg); msg 541 drivers/i2c/busses/i2c-axxia.c if (i2c_m_rd(msg)) { msg 543 drivers/i2c/busses/i2c-axxia.c rx_xfer = i2c_m_recv_len(msg) ? I2C_SMBUS_BLOCK_MAX : msg->len; msg 548 drivers/i2c/busses/i2c-axxia.c tx_xfer = msg->len; msg 554 drivers/i2c/busses/i2c-axxia.c if (i2c_m_rd(msg)) msg 197 drivers/i2c/busses/i2c-bcm-iproc.c struct i2c_msg *msg; msg 397 drivers/i2c/busses/i2c-bcm-iproc.c struct i2c_msg *msg = iproc_i2c->msg; msg 401 drivers/i2c/busses/i2c-bcm-iproc.c while (iproc_i2c->rx_bytes < msg->len) { msg 408 drivers/i2c/busses/i2c-bcm-iproc.c msg->buf[iproc_i2c->rx_bytes] = msg 416 drivers/i2c/busses/i2c-bcm-iproc.c struct i2c_msg *msg = iproc_i2c->msg; msg 417 drivers/i2c/busses/i2c-bcm-iproc.c unsigned int tx_bytes = msg->len - iproc_i2c->tx_bytes; msg 427 drivers/i2c/busses/i2c-bcm-iproc.c val = msg->buf[idx]; msg 430 drivers/i2c/busses/i2c-bcm-iproc.c if (idx == msg->len - 1) { msg 457 drivers/i2c/busses/i2c-bcm-iproc.c struct i2c_msg *msg = iproc_i2c->msg; msg 461 drivers/i2c/busses/i2c-bcm-iproc.c bytes_left = msg->len - iproc_i2c->rx_bytes; msg 575 drivers/i2c/busses/i2c-bcm-iproc.c struct i2c_msg *msg) msg 591 drivers/i2c/busses/i2c-bcm-iproc.c dev_dbg(iproc_i2c->device, "NAK addr:0x%02x\n", msg->addr); msg 623 drivers/i2c/busses/i2c-bcm-iproc.c struct i2c_msg *msg, msg 670 drivers/i2c/busses/i2c-bcm-iproc.c ret = bcm_iproc_i2c_check_status(iproc_i2c, msg); msg 682 drivers/i2c/busses/i2c-bcm-iproc.c struct i2c_msg *msg) msg 696 drivers/i2c/busses/i2c-bcm-iproc.c iproc_i2c->msg = msg; msg 699 drivers/i2c/busses/i2c-bcm-iproc.c addr = i2c_8bit_addr_from_msg(msg); msg 707 drivers/i2c/busses/i2c-bcm-iproc.c tx_bytes = min_t(unsigned int, msg->len, M_TX_RX_FIFO_SIZE - 1); msg 708 drivers/i2c/busses/i2c-bcm-iproc.c if (!(msg->flags & I2C_M_RD)) { msg 710 drivers/i2c/busses/i2c-bcm-iproc.c val = msg->buf[i]; msg 713 drivers/i2c/busses/i2c-bcm-iproc.c if (i == msg->len - 1) msg 739 drivers/i2c/busses/i2c-bcm-iproc.c if (!(msg->flags & I2C_M_RD) && msg 740 drivers/i2c/busses/i2c-bcm-iproc.c msg->len > iproc_i2c->tx_bytes) msg 748 drivers/i2c/busses/i2c-bcm-iproc.c if (msg->flags & I2C_M_RD) { msg 750 drivers/i2c/busses/i2c-bcm-iproc.c if (msg->len > M_RX_FIFO_MAX_THLD_VALUE) msg 753 drivers/i2c/busses/i2c-bcm-iproc.c iproc_i2c->thld_bytes = msg->len; msg 765 drivers/i2c/busses/i2c-bcm-iproc.c (msg->len << M_CMD_RD_CNT_SHIFT); msg 773 drivers/i2c/busses/i2c-bcm-iproc.c return bcm_iproc_i2c_xfer_wait(iproc_i2c, msg, val); msg 327 drivers/i2c/busses/i2c-bcm-kona.c struct i2c_msg *msg) msg 334 drivers/i2c/busses/i2c-bcm-kona.c uint8_t *tmp_buf = msg->buf; msg 336 drivers/i2c/busses/i2c-bcm-kona.c while (bytes_read < msg->len) { msg 337 drivers/i2c/busses/i2c-bcm-kona.c if (msg->len - bytes_read <= MAX_RX_FIFO_SIZE) { msg 339 drivers/i2c/busses/i2c-bcm-kona.c bytes_to_read = msg->len - bytes_read; msg 452 drivers/i2c/busses/i2c-bcm-kona.c struct i2c_msg *msg) msg 458 drivers/i2c/busses/i2c-bcm-kona.c uint8_t *tmp_buf = msg->buf; msg 460 drivers/i2c/busses/i2c-bcm-kona.c while (bytes_written < msg->len) { msg 461 drivers/i2c/busses/i2c-bcm-kona.c if (msg->len - bytes_written <= MAX_TX_FIFO_SIZE) msg 462 drivers/i2c/busses/i2c-bcm-kona.c bytes_to_write = msg->len - bytes_written; msg 478 drivers/i2c/busses/i2c-bcm-kona.c struct i2c_msg *msg) msg 482 drivers/i2c/busses/i2c-bcm-kona.c if (msg->flags & I2C_M_TEN) { msg 484 drivers/i2c/busses/i2c-bcm-kona.c addr = 0xF0 | ((msg->addr & 0x300) >> 7); msg 489 drivers/i2c/busses/i2c-bcm-kona.c addr = msg->addr & 0xFF; msg 493 drivers/i2c/busses/i2c-bcm-kona.c if (msg->flags & I2C_M_RD) { msg 499 drivers/i2c/busses/i2c-bcm-kona.c addr = 0xF0 | ((msg->addr & 0x300) >> 7) | 0x01; msg 504 drivers/i2c/busses/i2c-bcm-kona.c addr = i2c_8bit_addr_from_msg(msg); msg 234 drivers/i2c/busses/i2c-bcm2835.c struct i2c_msg *msg = i2c_dev->curr_msg; msg 241 drivers/i2c/busses/i2c-bcm2835.c i2c_dev->msg_buf = msg->buf; msg 242 drivers/i2c/busses/i2c-bcm2835.c i2c_dev->msg_buf_remaining = msg->len; msg 244 drivers/i2c/busses/i2c-bcm2835.c if (msg->flags & I2C_M_RD) msg 252 drivers/i2c/busses/i2c-bcm2835.c bcm2835_i2c_writel(i2c_dev, BCM2835_I2C_A, msg->addr); msg 253 drivers/i2c/busses/i2c-bcm2835.c bcm2835_i2c_writel(i2c_dev, BCM2835_I2C_DLEN, msg->len); msg 421 drivers/i2c/busses/i2c-brcmstb.c struct i2c_msg *msg) msg 425 drivers/i2c/busses/i2c-brcmstb.c if (msg->flags & I2C_M_TEN) { msg 427 drivers/i2c/busses/i2c-brcmstb.c addr = 0xF0 | ((msg->addr & 0x300) >> 7); msg 431 drivers/i2c/busses/i2c-brcmstb.c addr = msg->addr & 0xFF; msg 435 drivers/i2c/busses/i2c-brcmstb.c if (msg->flags & I2C_M_RD) { msg 440 drivers/i2c/busses/i2c-brcmstb.c addr = 0xF0 | ((msg->addr & 0x300) >> 7) | 0x01; msg 446 drivers/i2c/busses/i2c-brcmstb.c addr = i2c_8bit_addr_from_msg(msg); msg 511 drivers/i2c/busses/i2c-cadence.c static int cdns_i2c_process_msg(struct cdns_i2c *id, struct i2c_msg *msg, msg 517 drivers/i2c/busses/i2c-cadence.c id->p_msg = msg; msg 523 drivers/i2c/busses/i2c-cadence.c if (msg->flags & I2C_M_TEN) { msg 534 drivers/i2c/busses/i2c-cadence.c if (msg->flags & I2C_M_RD) msg 87 drivers/i2c/busses/i2c-cros-ec-tunnel.c struct ec_params_i2c_passthru_msg *msg = ¶ms->msg[i]; msg 89 drivers/i2c/busses/i2c-cros-ec-tunnel.c msg->len = i2c_msg->len; msg 90 drivers/i2c/busses/i2c-cros-ec-tunnel.c msg->addr_flags = i2c_msg->addr; msg 96 drivers/i2c/busses/i2c-cros-ec-tunnel.c msg->addr_flags |= EC_I2C_FLAG_READ; msg 98 drivers/i2c/busses/i2c-cros-ec-tunnel.c memcpy(out_data, i2c_msg->buf, msg->len); msg 99 drivers/i2c/busses/i2c-cros-ec-tunnel.c out_data += msg->len; msg 183 drivers/i2c/busses/i2c-cros-ec-tunnel.c struct cros_ec_command *msg; msg 199 drivers/i2c/busses/i2c-cros-ec-tunnel.c msg = kmalloc(sizeof(*msg) + alloc_size, GFP_KERNEL); msg 200 drivers/i2c/busses/i2c-cros-ec-tunnel.c if (!msg) msg 203 drivers/i2c/busses/i2c-cros-ec-tunnel.c result = ec_i2c_construct_message(msg->data, i2c_msgs, num, bus_num); msg 209 drivers/i2c/busses/i2c-cros-ec-tunnel.c msg->version = 0; msg 210 drivers/i2c/busses/i2c-cros-ec-tunnel.c msg->command = EC_CMD_I2C_PASSTHRU; msg 211 drivers/i2c/busses/i2c-cros-ec-tunnel.c msg->outsize = request_len; msg 212 drivers/i2c/busses/i2c-cros-ec-tunnel.c msg->insize = response_len; msg 214 drivers/i2c/busses/i2c-cros-ec-tunnel.c result = cros_ec_cmd_xfer_status(bus->ec, msg); msg 220 drivers/i2c/busses/i2c-cros-ec-tunnel.c result = ec_i2c_parse_response(msg->data, i2c_msgs, &num); msg 227 drivers/i2c/busses/i2c-cros-ec-tunnel.c kfree(msg); msg 414 drivers/i2c/busses/i2c-davinci.c i2c_davinci_xfer_msg(struct i2c_adapter *adap, struct i2c_msg *msg, int stop) msg 422 drivers/i2c/busses/i2c-davinci.c if (msg->addr == DAVINCI_I2C_OWN_ADDRESS) { msg 432 drivers/i2c/busses/i2c-davinci.c davinci_i2c_write_reg(dev, DAVINCI_I2C_SAR_REG, msg->addr); msg 434 drivers/i2c/busses/i2c-davinci.c dev->buf = msg->buf; msg 435 drivers/i2c/busses/i2c-davinci.c dev->buf_len = msg->len; msg 447 drivers/i2c/busses/i2c-davinci.c if (msg->flags & I2C_M_TEN) msg 449 drivers/i2c/busses/i2c-davinci.c if (!(msg->flags & I2C_M_RD)) msg 451 drivers/i2c/busses/i2c-davinci.c if (msg->len == 0) msg 456 drivers/i2c/busses/i2c-davinci.c if (msg->flags & I2C_M_RD) msg 478 drivers/i2c/busses/i2c-davinci.c if ((!(msg->flags & I2C_M_RD)) && dev->buf_len) { msg 485 drivers/i2c/busses/i2c-davinci.c if (stop && msg->len != 0) msg 511 drivers/i2c/busses/i2c-davinci.c return msg->len; msg 520 drivers/i2c/busses/i2c-davinci.c if (msg->flags & I2C_M_IGNORE_NAK) msg 521 drivers/i2c/busses/i2c-davinci.c return msg->len; msg 54 drivers/i2c/busses/i2c-digicolor.c struct i2c_msg *msg; msg 77 drivers/i2c/busses/i2c-digicolor.c static u8 dc_i2c_addr_cmd(struct i2c_msg *msg) msg 79 drivers/i2c/busses/i2c-digicolor.c u8 addr = (msg->addr & 0x7f) << 1; msg 81 drivers/i2c/busses/i2c-digicolor.c if (msg->flags & I2C_M_RD) msg 100 drivers/i2c/busses/i2c-digicolor.c dc_i2c_write_byte(i2c, i2c->msg->buf[i2c->msgbuf_ptr++]); msg 105 drivers/i2c/busses/i2c-digicolor.c bool last = (i2c->msgbuf_ptr + 1 == i2c->msg->len); msg 126 drivers/i2c/busses/i2c-digicolor.c i2c->msg->buf[i2c->msgbuf_ptr++] = dc_i2c_read_byte(i2c); msg 146 drivers/i2c/busses/i2c-digicolor.c struct i2c_msg *msg = i2c->msg; msg 148 drivers/i2c/busses/i2c-digicolor.c if (!(msg->flags & I2C_M_NOSTART)) { msg 151 drivers/i2c/busses/i2c-digicolor.c } else if (msg->flags & I2C_M_RD) { msg 180 drivers/i2c/busses/i2c-digicolor.c addr_cmd = dc_i2c_addr_cmd(i2c->msg); msg 185 drivers/i2c/busses/i2c-digicolor.c if (i2c->msg->flags & I2C_M_RD) { msg 193 drivers/i2c/busses/i2c-digicolor.c if (i2c->msgbuf_ptr < i2c->msg->len) msg 199 drivers/i2c/busses/i2c-digicolor.c if (i2c->msgbuf_ptr < i2c->msg->len) msg 215 drivers/i2c/busses/i2c-digicolor.c static int dc_i2c_xfer_msg(struct dc_i2c *i2c, struct i2c_msg *msg, int first, msg 222 drivers/i2c/busses/i2c-digicolor.c i2c->msg = msg; msg 139 drivers/i2c/busses/i2c-emev2.c static int __em_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msg, msg 143 drivers/i2c/busses/i2c-emev2.c int count, status, read = !!(msg->flags & I2C_M_RD); msg 150 drivers/i2c/busses/i2c-emev2.c writeb(i2c_8bit_addr_from_msg(msg), priv->base + I2C_OFS_IIC0); msg 176 drivers/i2c/busses/i2c-emev2.c for (count = 0; count < msg->len; count++) { msg 178 drivers/i2c/busses/i2c-emev2.c msg->buf[count] = readb(priv->base + I2C_OFS_IIC0); msg 189 drivers/i2c/busses/i2c-emev2.c writeb(msg->buf[count], priv->base + I2C_OFS_IIC0); msg 184 drivers/i2c/busses/i2c-exynos5.c struct i2c_msg *msg; msg 474 drivers/i2c/busses/i2c-exynos5.c if ((i2c->msg->flags & I2C_M_RD) && (int_status & msg 478 drivers/i2c/busses/i2c-exynos5.c len = min(fifo_level, i2c->msg->len - i2c->msg_ptr); msg 483 drivers/i2c/busses/i2c-exynos5.c i2c->msg->buf[i2c->msg_ptr++] = byte; msg 492 drivers/i2c/busses/i2c-exynos5.c if (len > (i2c->msg->len - i2c->msg_ptr)) { msg 497 drivers/i2c/busses/i2c-exynos5.c len = i2c->msg->len - i2c->msg_ptr; msg 501 drivers/i2c/busses/i2c-exynos5.c byte = i2c->msg->buf[i2c->msg_ptr++]; msg 509 drivers/i2c/busses/i2c-exynos5.c if ((i2c->trans_done && (i2c->msg->len == i2c->msg_ptr)) || msg 626 drivers/i2c/busses/i2c-exynos5.c if (i2c->msg->flags & I2C_M_RD) { msg 631 drivers/i2c/busses/i2c-exynos5.c trig_lvl = (i2c->msg->len > i2c->variant->fifo_depth) ? msg 632 drivers/i2c/busses/i2c-exynos5.c (i2c->variant->fifo_depth * 3 / 4) : i2c->msg->len; msg 640 drivers/i2c/busses/i2c-exynos5.c trig_lvl = (i2c->msg->len > i2c->variant->fifo_depth) ? msg 641 drivers/i2c/busses/i2c-exynos5.c (i2c->variant->fifo_depth * 1 / 4) : i2c->msg->len; msg 647 drivers/i2c/busses/i2c-exynos5.c writel(HSI2C_SLV_ADDR_MAS(i2c->msg->addr), i2c->regs + HSI2C_ADDR); msg 663 drivers/i2c/busses/i2c-exynos5.c i2c_auto_conf |= i2c->msg->len; msg 675 drivers/i2c/busses/i2c-exynos5.c i2c->msg = msgs; msg 236 drivers/i2c/busses/i2c-fsi.c static int fsi_i2c_start(struct fsi_i2c_port *port, struct i2c_msg *msg, msg 244 drivers/i2c/busses/i2c-fsi.c if (msg->flags & I2C_M_RD) msg 247 drivers/i2c/busses/i2c-fsi.c if (stop || msg->flags & I2C_M_STOP) msg 250 drivers/i2c/busses/i2c-fsi.c cmd |= FIELD_PREP(I2C_CMD_ADDR, msg->addr); msg 251 drivers/i2c/busses/i2c-fsi.c cmd |= FIELD_PREP(I2C_CMD_LEN, msg->len); msg 266 drivers/i2c/busses/i2c-fsi.c static int fsi_i2c_write_fifo(struct fsi_i2c_port *port, struct i2c_msg *msg, msg 273 drivers/i2c/busses/i2c-fsi.c int bytes_remaining = msg->len - port->xfrd; msg 281 drivers/i2c/busses/i2c-fsi.c &msg->buf[port->xfrd], write); msg 292 drivers/i2c/busses/i2c-fsi.c static int fsi_i2c_read_fifo(struct fsi_i2c_port *port, struct i2c_msg *msg, msg 299 drivers/i2c/busses/i2c-fsi.c int xfr_remaining = msg->len - port->xfrd; msg 309 drivers/i2c/busses/i2c-fsi.c &msg->buf[port->xfrd], read); msg 526 drivers/i2c/busses/i2c-fsi.c struct i2c_msg *msg, u32 status) msg 558 drivers/i2c/busses/i2c-fsi.c if (msg->flags & I2C_M_RD) msg 559 drivers/i2c/busses/i2c-fsi.c return fsi_i2c_read_fifo(port, msg, fifo_count); msg 561 drivers/i2c/busses/i2c-fsi.c return fsi_i2c_write_fifo(port, msg, fifo_count); msg 565 drivers/i2c/busses/i2c-fsi.c if (port->xfrd < msg->len) msg 568 drivers/i2c/busses/i2c-fsi.c return msg->len; msg 574 drivers/i2c/busses/i2c-fsi.c static int fsi_i2c_wait(struct fsi_i2c_port *port, struct i2c_msg *msg, msg 588 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_handle_status(port, msg, status); msg 593 drivers/i2c/busses/i2c-fsi.c if (rc == msg->len) msg 613 drivers/i2c/busses/i2c-fsi.c struct i2c_msg *msg; msg 622 drivers/i2c/busses/i2c-fsi.c msg = msgs + i; msg 625 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_start(port, msg, i == num - 1); msg 629 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_wait(port, msg, msg 83 drivers/i2c/busses/i2c-hix5hd2.c struct i2c_msg *msg; msg 217 drivers/i2c/busses/i2c-hix5hd2.c data = priv->msg->buf[priv->msg_idx++]; msg 232 drivers/i2c/busses/i2c-hix5hd2.c if (priv->msg->flags & I2C_M_RD) { msg 234 drivers/i2c/busses/i2c-hix5hd2.c priv->msg->buf[priv->msg_idx++] = data; msg 278 drivers/i2c/busses/i2c-hix5hd2.c if (priv->msg->flags & I2C_M_RD) msg 289 drivers/i2c/busses/i2c-hix5hd2.c priv->msg->len == priv->msg_idx) || msg 309 drivers/i2c/busses/i2c-hix5hd2.c writel_relaxed(i2c_8bit_addr_from_msg(priv->msg), msg 322 drivers/i2c/busses/i2c-hix5hd2.c priv->msg = msgs; msg 324 drivers/i2c/busses/i2c-hix5hd2.c priv->msg_len = priv->msg->len; msg 516 drivers/i2c/busses/i2c-ibm_iic.c static inline void iic_address(struct ibm_iic_private* dev, struct i2c_msg* msg) msg 519 drivers/i2c/busses/i2c-ibm_iic.c u16 addr = msg->addr; msg 522 drivers/i2c/busses/i2c-ibm_iic.c addr, msg->flags & I2C_M_TEN ? 10 : 7); msg 524 drivers/i2c/busses/i2c-ibm_iic.c if (msg->flags & I2C_M_TEN){ msg 381 drivers/i2c/busses/i2c-img-scb.c struct i2c_msg msg; msg 548 drivers/i2c/busses/i2c-img-scb.c while (i2c->msg.len) { msg 558 drivers/i2c/busses/i2c-img-scb.c *i2c->msg.buf = data; msg 561 drivers/i2c/busses/i2c-img-scb.c i2c->msg.len--; msg 562 drivers/i2c/busses/i2c-img-scb.c i2c->msg.buf++; msg 569 drivers/i2c/busses/i2c-img-scb.c while (i2c->msg.len) { msg 577 drivers/i2c/busses/i2c-img-scb.c img_i2c_writel(i2c, SCB_WRITE_DATA_REG, *i2c->msg.buf); msg 578 drivers/i2c/busses/i2c-img-scb.c i2c->msg.len--; msg 579 drivers/i2c/busses/i2c-img-scb.c i2c->msg.buf++; msg 583 drivers/i2c/busses/i2c-img-scb.c if (!i2c->msg.len) msg 595 drivers/i2c/busses/i2c-img-scb.c img_i2c_writel(i2c, SCB_READ_ADDR_REG, i2c->msg.addr); msg 596 drivers/i2c/busses/i2c-img-scb.c img_i2c_writel(i2c, SCB_READ_COUNT_REG, i2c->msg.len); msg 608 drivers/i2c/busses/i2c-img-scb.c img_i2c_writel(i2c, SCB_WRITE_ADDR_REG, i2c->msg.addr); msg 609 drivers/i2c/busses/i2c-img-scb.c img_i2c_writel(i2c, SCB_WRITE_COUNT_REG, i2c->msg.len); msg 757 drivers/i2c/busses/i2c-img-scb.c next_data = i2c_8bit_addr_from_msg(&i2c->msg); msg 766 drivers/i2c/busses/i2c-img-scb.c i2c->msg.flags & I2C_M_IGNORE_NAK)) { msg 767 drivers/i2c/busses/i2c-img-scb.c if (i2c->msg.len == 0) { msg 769 drivers/i2c/busses/i2c-img-scb.c } else if (i2c->msg.flags & I2C_M_RD) { msg 773 drivers/i2c/busses/i2c-img-scb.c next_data = *i2c->msg.buf; msg 774 drivers/i2c/busses/i2c-img-scb.c --i2c->msg.len; msg 775 drivers/i2c/busses/i2c-img-scb.c ++i2c->msg.buf; msg 784 drivers/i2c/busses/i2c-img-scb.c *i2c->msg.buf = (i2c->line_status & msg 787 drivers/i2c/busses/i2c-img-scb.c --i2c->msg.len; msg 788 drivers/i2c/busses/i2c-img-scb.c ++i2c->msg.buf; msg 789 drivers/i2c/busses/i2c-img-scb.c if (i2c->msg.len) msg 863 drivers/i2c/busses/i2c-img-scb.c if ((i2c->msg.flags & I2C_M_RD) && msg 883 drivers/i2c/busses/i2c-img-scb.c if (i2c->msg.flags & I2C_M_RD) msg 888 drivers/i2c/busses/i2c-img-scb.c if (i2c->msg.flags & I2C_M_RD) { msg 891 drivers/i2c/busses/i2c-img-scb.c if (i2c->msg.len == 0) msg 897 drivers/i2c/busses/i2c-img-scb.c i2c->msg.len == 0) msg 954 drivers/i2c/busses/i2c-img-scb.c (i2c->msg.flags & I2C_M_RD) ? "reading" : "writing", msg 955 drivers/i2c/busses/i2c-img-scb.c i2c->msg.addr); msg 1065 drivers/i2c/busses/i2c-img-scb.c struct i2c_msg *msg = &msgs[i]; msg 1074 drivers/i2c/busses/i2c-img-scb.c i2c->msg = *msg; msg 1105 drivers/i2c/busses/i2c-img-scb.c if (msg->flags & I2C_M_RD) msg 46 drivers/i2c/busses/i2c-iop3xx.c iic_cook_addr(struct i2c_msg *msg) msg 50 drivers/i2c/busses/i2c-iop3xx.c addr = i2c_8bit_addr_from_msg(msg); msg 229 drivers/i2c/busses/i2c-iop3xx.c struct i2c_msg* msg) msg 238 drivers/i2c/busses/i2c-iop3xx.c if (msg->addr == MYSAR) { msg 242 drivers/i2c/busses/i2c-iop3xx.c __raw_writel(iic_cook_addr(msg), iop3xx_adap->ioaddr + DBR_OFFSET); msg 640 drivers/i2c/busses/i2c-jz4780.c static int jz4780_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msg, msg 653 drivers/i2c/busses/i2c-jz4780.c if (msg->addr != jz4780_i2c_readw(i2c, JZ4780_I2C_TAR)) { msg 654 drivers/i2c/busses/i2c-jz4780.c ret = jz4780_i2c_set_target(i2c, msg->addr); msg 658 drivers/i2c/busses/i2c-jz4780.c for (i = 0; i < count; i++, msg++) { msg 659 drivers/i2c/busses/i2c-jz4780.c if (msg->flags & I2C_M_RD) msg 660 drivers/i2c/busses/i2c-jz4780.c ret = jz4780_i2c_xfer_read(i2c, msg->buf, msg->len, msg 663 drivers/i2c/busses/i2c-jz4780.c ret = jz4780_i2c_xfer_write(i2c, msg->buf, msg->len, msg 59 drivers/i2c/busses/i2c-kempld.c struct i2c_msg *msg; msg 86 drivers/i2c/busses/i2c-kempld.c struct i2c_msg *msg = i2c->msg; msg 117 drivers/i2c/busses/i2c-kempld.c if (i2c->msg->flags & I2C_M_TEN) { msg 118 drivers/i2c/busses/i2c-kempld.c addr = 0xf0 | ((i2c->msg->addr >> 7) & 0x6); msg 120 drivers/i2c/busses/i2c-kempld.c addr |= (i2c->msg->flags & I2C_M_RD) ? 1 : 0; msg 123 drivers/i2c/busses/i2c-kempld.c addr = i2c_8bit_addr_from_msg(i2c->msg); msg 135 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_DATA, i2c->msg->addr & 0xff); msg 143 drivers/i2c/busses/i2c-kempld.c i2c->state = (msg->flags & I2C_M_RD) ? STATE_READ : STATE_WRITE; msg 151 drivers/i2c/busses/i2c-kempld.c msg->buf[i2c->pos++] = kempld_read8(pld, KEMPLD_I2C_DATA); msg 154 drivers/i2c/busses/i2c-kempld.c if (i2c->pos >= msg->len) { msg 156 drivers/i2c/busses/i2c-kempld.c i2c->msg++; msg 158 drivers/i2c/busses/i2c-kempld.c msg = i2c->msg; msg 161 drivers/i2c/busses/i2c-kempld.c if (!(msg->flags & I2C_M_NOSTART)) { msg 165 drivers/i2c/busses/i2c-kempld.c i2c->state = (msg->flags & I2C_M_RD) msg 176 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_CMD, i2c->pos == (msg->len - 1) ? msg 179 drivers/i2c/busses/i2c-kempld.c kempld_write8(pld, KEMPLD_I2C_DATA, msg->buf[i2c->pos++]); msg 194 drivers/i2c/busses/i2c-kempld.c i2c->msg = msgs; msg 78 drivers/i2c/busses/i2c-lpc2k.c struct i2c_msg *msg; msg 131 drivers/i2c/busses/i2c-lpc2k.c data = i2c_8bit_addr_from_msg(i2c->msg); msg 143 drivers/i2c/busses/i2c-lpc2k.c if (i2c->msg_idx < i2c->msg->len) { msg 144 drivers/i2c/busses/i2c-lpc2k.c writel(i2c->msg->buf[i2c->msg_idx], msg 162 drivers/i2c/busses/i2c-lpc2k.c if (i2c->msg->len == 1) { msg 181 drivers/i2c/busses/i2c-lpc2k.c if (i2c->msg_idx < i2c->msg->len) { msg 182 drivers/i2c/busses/i2c-lpc2k.c i2c->msg->buf[i2c->msg_idx] = msg 187 drivers/i2c/busses/i2c-lpc2k.c if (i2c->msg_idx >= i2c->msg->len - 1 && i2c->is_last) { msg 194 drivers/i2c/busses/i2c-lpc2k.c if (i2c->msg_idx >= i2c->msg->len - 1) { msg 203 drivers/i2c/busses/i2c-lpc2k.c if (i2c->msg_idx >= i2c->msg->len - 2) { msg 263 drivers/i2c/busses/i2c-lpc2k.c if (unlikely(i2c->msg->flags & I2C_M_NOSTART)) { msg 264 drivers/i2c/busses/i2c-lpc2k.c WARN_ON(i2c->msg->len == 0); msg 266 drivers/i2c/busses/i2c-lpc2k.c if (!(i2c->msg->flags & I2C_M_RD)) { msg 268 drivers/i2c/busses/i2c-lpc2k.c writel(i2c->msg->buf[0], msg 310 drivers/i2c/busses/i2c-lpc2k.c i2c->msg = &msgs[i]; msg 87 drivers/i2c/busses/i2c-meson.c struct i2c_msg *msg; msg 191 drivers/i2c/busses/i2c-meson.c bool write = !(i2c->msg->flags & I2C_M_RD); msg 194 drivers/i2c/busses/i2c-meson.c i2c->count = min(i2c->msg->len - i2c->pos, 8); msg 200 drivers/i2c/busses/i2c-meson.c if (write || i2c->pos + i2c->count < i2c->msg->len) msg 207 drivers/i2c/busses/i2c-meson.c meson_i2c_put_data(i2c, i2c->msg->buf + i2c->pos, i2c->count); msg 209 drivers/i2c/busses/i2c-meson.c if (i2c->last && i2c->pos + i2c->count >= i2c->msg->len) msg 250 drivers/i2c/busses/i2c-meson.c meson_i2c_get_data(i2c, i2c->msg->buf + i2c->pos, i2c->count); msg 254 drivers/i2c/busses/i2c-meson.c if (i2c->pos >= i2c->msg->len) { msg 269 drivers/i2c/busses/i2c-meson.c static void meson_i2c_do_start(struct meson_i2c *i2c, struct i2c_msg *msg) msg 273 drivers/i2c/busses/i2c-meson.c token = (msg->flags & I2C_M_RD) ? TOKEN_SLAVE_ADDR_READ : msg 276 drivers/i2c/busses/i2c-meson.c writel(msg->addr << 1, i2c->regs + REG_SLAVE_ADDR); msg 281 drivers/i2c/busses/i2c-meson.c static int meson_i2c_xfer_msg(struct meson_i2c *i2c, struct i2c_msg *msg, msg 287 drivers/i2c/busses/i2c-meson.c i2c->msg = msg; msg 295 drivers/i2c/busses/i2c-meson.c flags = (msg->flags & I2C_M_IGNORE_NAK) ? REG_CTRL_ACK_IGNORE : 0; msg 298 drivers/i2c/busses/i2c-meson.c if (!(msg->flags & I2C_M_NOSTART)) msg 299 drivers/i2c/busses/i2c-meson.c meson_i2c_do_start(i2c, msg); msg 301 drivers/i2c/busses/i2c-meson.c i2c->state = (msg->flags & I2C_M_RD) ? STATE_READ : STATE_WRITE; msg 80 drivers/i2c/busses/i2c-mlxcpld.c struct i2c_msg *msg; msg 230 drivers/i2c/busses/i2c-mlxcpld.c priv->xfer.msg = msgs; msg 324 drivers/i2c/busses/i2c-mlxcpld.c if (!priv->xfer.msg[i].buf) msg 349 drivers/i2c/busses/i2c-mlxcpld.c priv->xfer.msg[i].buf, datalen); msg 372 drivers/i2c/busses/i2c-mlxcpld.c priv->xfer.msg[1].len == 1 && msg 373 drivers/i2c/busses/i2c-mlxcpld.c (priv->xfer.msg[1].flags & I2C_M_RECV_LEN) && msg 374 drivers/i2c/busses/i2c-mlxcpld.c (priv->xfer.msg[1].flags & I2C_M_RD)) msg 380 drivers/i2c/busses/i2c-mlxcpld.c if ((priv->xfer.msg[i].flags & I2C_M_RD) != I2C_M_RD) { msg 383 drivers/i2c/busses/i2c-mlxcpld.c len, priv->xfer.msg[i].buf, msg 384 drivers/i2c/busses/i2c-mlxcpld.c priv->xfer.msg[i].len); msg 385 drivers/i2c/busses/i2c-mlxcpld.c len += priv->xfer.msg[i].len; msg 393 drivers/i2c/busses/i2c-mlxcpld.c cmd = (priv->xfer.msg[0].addr << 1) | priv->xfer.cmd; msg 141 drivers/i2c/busses/i2c-mv64xxx.c struct i2c_msg *msg; msg 174 drivers/i2c/busses/i2c-mv64xxx.c struct i2c_msg *msg) msg 181 drivers/i2c/busses/i2c-mv64xxx.c if (msg->flags & I2C_M_RD) msg 184 drivers/i2c/busses/i2c-mv64xxx.c if (msg->flags & I2C_M_TEN) { msg 185 drivers/i2c/busses/i2c-mv64xxx.c drv_data->addr1 = 0xf0 | (((u32)msg->addr & 0x300) >> 7) | dir; msg 186 drivers/i2c/busses/i2c-mv64xxx.c drv_data->addr2 = (u32)msg->addr & 0xff; msg 188 drivers/i2c/busses/i2c-mv64xxx.c drv_data->addr1 = MV64XXX_I2C_ADDR_ADDR((u32)msg->addr) | dir; msg 248 drivers/i2c/busses/i2c-mv64xxx.c if (drv_data->msg->flags & I2C_M_TEN) { msg 279 drivers/i2c/busses/i2c-mv64xxx.c if (drv_data->msg->flags & I2C_M_TEN) { msg 324 drivers/i2c/busses/i2c-mv64xxx.c drv_data->state, status, drv_data->msg->addr, msg 325 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msg->flags); msg 334 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msg = drv_data->msgs; msg 336 drivers/i2c/busses/i2c-mv64xxx.c drv_data->bytes_left = drv_data->msg->len; msg 388 drivers/i2c/busses/i2c-mv64xxx.c writel(drv_data->msg->buf[drv_data->byte_posn++], msg 395 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msg->buf[drv_data->byte_posn++] = msg 402 drivers/i2c/busses/i2c-mv64xxx.c drv_data->msg->buf[drv_data->byte_posn++] = msg 434 drivers/i2c/busses/i2c-mv64xxx.c struct i2c_msg *msg) msg 441 drivers/i2c/busses/i2c-mv64xxx.c memcpy(msg->buf, buf, msg->len); msg 572 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_execute_msg(struct mv64xxx_i2c_data *drv_data, struct i2c_msg *msg, msg 593 drivers/i2c/busses/i2c-mv64xxx.c struct i2c_msg *msg = drv_data->msgs; msg 596 drivers/i2c/busses/i2c-mv64xxx.c memcpy(buf, msg->buf, msg->len); msg 662 drivers/i2c/busses/i2c-mv64xxx.c mv64xxx_i2c_valid_offload_sz(struct i2c_msg *msg) msg 664 drivers/i2c/busses/i2c-mv64xxx.c return msg->len <= 8 && msg->len >= 1; msg 173 drivers/i2c/busses/i2c-mxs.c struct i2c_msg *msg, uint32_t flags) msg 178 drivers/i2c/busses/i2c-mxs.c i2c->addr_data = i2c_8bit_addr_from_msg(msg); msg 180 drivers/i2c/busses/i2c-mxs.c if (msg->flags & I2C_M_RD) { msg 216 drivers/i2c/busses/i2c-mxs.c MXS_I2C_CTRL0_XFER_COUNT(msg->len); msg 227 drivers/i2c/busses/i2c-mxs.c sg_init_one(&i2c->sg_io[1], msg->buf, msg->len); msg 246 drivers/i2c/busses/i2c-mxs.c MXS_I2C_CTRL0_XFER_COUNT(msg->len + 1); msg 259 drivers/i2c/busses/i2c-mxs.c sg_set_buf(&i2c->sg_io[1], msg->buf, msg->len); msg 366 drivers/i2c/busses/i2c-mxs.c struct i2c_msg *msg, uint32_t flags) msg 369 drivers/i2c/busses/i2c-mxs.c uint32_t addr_data = i2c_8bit_addr_from_msg(msg); msg 394 drivers/i2c/busses/i2c-mxs.c if (msg->flags & I2C_M_RD) { msg 407 drivers/i2c/busses/i2c-mxs.c BUG_ON(msg->len > 4); msg 423 drivers/i2c/busses/i2c-mxs.c MXS_I2C_CTRL0_XFER_COUNT(msg->len)); msg 433 drivers/i2c/busses/i2c-mxs.c for (i = 0; i < msg->len; i++) { msg 434 drivers/i2c/busses/i2c-mxs.c msg->buf[i] = data & 0xff; msg 459 drivers/i2c/busses/i2c-mxs.c if (msg->len > 3) msg 462 drivers/i2c/busses/i2c-mxs.c for (i = 0; i < msg->len; i++) { msg 464 drivers/i2c/busses/i2c-mxs.c data |= (msg->buf[i] << 24); msg 469 drivers/i2c/busses/i2c-mxs.c if (i + 1 == msg->len) { msg 504 drivers/i2c/busses/i2c-mxs.c xlen, i, msg->len, msg 556 drivers/i2c/busses/i2c-mxs.c static int mxs_i2c_xfer_msg(struct i2c_adapter *adap, struct i2c_msg *msg, msg 568 drivers/i2c/busses/i2c-mxs.c msg->addr, msg->len, msg->flags, stop); msg 575 drivers/i2c/busses/i2c-mxs.c if ((msg->flags & I2C_M_RD) && (msg->len <= 4)) msg 577 drivers/i2c/busses/i2c-mxs.c if (!(msg->flags & I2C_M_RD) && (msg->len < 7)) msg 582 drivers/i2c/busses/i2c-mxs.c ret = mxs_i2c_pio_setup_xfer(adap, msg, flags); msg 588 drivers/i2c/busses/i2c-mxs.c ret = mxs_i2c_dma_setup_xfer(adap, msg, flags); msg 41 drivers/i2c/busses/i2c-ocores.c struct i2c_msg *msg; msg 162 drivers/i2c/busses/i2c-ocores.c struct i2c_msg *msg = i2c->msg; msg 187 drivers/i2c/busses/i2c-ocores.c (msg->flags & I2C_M_RD) ? STATE_READ : STATE_WRITE; msg 195 drivers/i2c/busses/i2c-ocores.c msg->buf[i2c->pos++] = oc_getreg(i2c, OCI2C_DATA); msg 199 drivers/i2c/busses/i2c-ocores.c if (i2c->pos == msg->len) { msg 201 drivers/i2c/busses/i2c-ocores.c i2c->msg++; msg 203 drivers/i2c/busses/i2c-ocores.c msg = i2c->msg; msg 207 drivers/i2c/busses/i2c-ocores.c if (!(msg->flags & I2C_M_NOSTART)) { msg 208 drivers/i2c/busses/i2c-ocores.c u8 addr = i2c_8bit_addr_from_msg(msg); msg 216 drivers/i2c/busses/i2c-ocores.c i2c->state = (msg->flags & I2C_M_RD) msg 226 drivers/i2c/busses/i2c-ocores.c oc_setreg(i2c, OCI2C_CMD, i2c->pos == (msg->len-1) ? msg 229 drivers/i2c/busses/i2c-ocores.c oc_setreg(i2c, OCI2C_DATA, msg->buf[i2c->pos++]); msg 383 drivers/i2c/busses/i2c-ocores.c i2c->msg = msgs; msg 388 drivers/i2c/busses/i2c-ocores.c oc_setreg(i2c, OCI2C_DATA, i2c_8bit_addr_from_msg(i2c->msg)); msg 660 drivers/i2c/busses/i2c-omap.c struct i2c_msg *msg, int stop, bool polling) msg 668 drivers/i2c/busses/i2c-omap.c msg->addr, msg->len, msg->flags, stop); msg 670 drivers/i2c/busses/i2c-omap.c omap->receiver = !!(msg->flags & I2C_M_RD); msg 671 drivers/i2c/busses/i2c-omap.c omap_i2c_resize_fifo(omap, msg->len, omap->receiver); msg 673 drivers/i2c/busses/i2c-omap.c omap_i2c_write_reg(omap, OMAP_I2C_SA_REG, msg->addr); msg 676 drivers/i2c/busses/i2c-omap.c omap->buf = msg->buf; msg 677 drivers/i2c/busses/i2c-omap.c omap->buf_len = msg->len; msg 699 drivers/i2c/busses/i2c-omap.c if (msg->flags & I2C_M_STOP) msg 701 drivers/i2c/busses/i2c-omap.c if (msg->flags & I2C_M_TEN) msg 703 drivers/i2c/busses/i2c-omap.c if (!(msg->flags & I2C_M_RD)) msg 775 drivers/i2c/busses/i2c-omap.c if (msg->flags & I2C_M_IGNORE_NAK) msg 41 drivers/i2c/busses/i2c-opal.c struct opal_msg msg; msg 58 drivers/i2c/busses/i2c-opal.c rc = opal_async_wait_response(token, &msg); msg 62 drivers/i2c/busses/i2c-opal.c rc = opal_get_async_rc(msg); msg 95 drivers/i2c/busses/i2c-owl.c struct i2c_msg *msg; msg 170 drivers/i2c/busses/i2c-owl.c struct i2c_msg *msg = i2c_dev->msg; msg 193 drivers/i2c/busses/i2c-owl.c if (msg->flags & I2C_M_RD) { msg 195 drivers/i2c/busses/i2c-owl.c OWL_I2C_FIFOSTAT_RFE) && i2c_dev->msg_ptr < msg->len) { msg 196 drivers/i2c/busses/i2c-owl.c msg->buf[i2c_dev->msg_ptr++] = readl(i2c_dev->base + msg 202 drivers/i2c/busses/i2c-owl.c OWL_I2C_FIFOSTAT_TFF) && i2c_dev->msg_ptr < msg->len) { msg 203 drivers/i2c/busses/i2c-owl.c writel(msg->buf[i2c_dev->msg_ptr++], msg 245 drivers/i2c/busses/i2c-owl.c struct i2c_msg *msg; msg 314 drivers/i2c/busses/i2c-owl.c msg = &msgs[1]; msg 318 drivers/i2c/busses/i2c-owl.c msg = &msgs[0]; msg 321 drivers/i2c/busses/i2c-owl.c i2c_dev->msg = msg; msg 325 drivers/i2c/busses/i2c-owl.c writel(msg->len, i2c_dev->base + OWL_I2C_REG_DATCNT); msg 327 drivers/i2c/busses/i2c-owl.c addr = i2c_8bit_addr_from_msg(msg); msg 330 drivers/i2c/busses/i2c-owl.c if (!(msg->flags & I2C_M_RD)) { msg 332 drivers/i2c/busses/i2c-owl.c for (idx = 0; idx < msg->len; idx++) { msg 338 drivers/i2c/busses/i2c-owl.c writel(msg->buf[idx], msg 346 drivers/i2c/busses/i2c-owl.c if (msg->flags & I2C_M_IGNORE_NAK) msg 108 drivers/i2c/busses/i2c-pasemi.c struct i2c_msg *msg, int stop) msg 114 drivers/i2c/busses/i2c-pasemi.c read = msg->flags & I2C_M_RD ? 1 : 0; msg 116 drivers/i2c/busses/i2c-pasemi.c TXFIFO_WR(smbus, MTXFIFO_START | i2c_8bit_addr_from_msg(msg)); msg 119 drivers/i2c/busses/i2c-pasemi.c TXFIFO_WR(smbus, msg->len | MTXFIFO_READ | msg 126 drivers/i2c/busses/i2c-pasemi.c for (i = 0; i < msg->len; i++) { msg 132 drivers/i2c/busses/i2c-pasemi.c msg->buf[i] = rd & MRXFIFO_DATA_M; msg 135 drivers/i2c/busses/i2c-pasemi.c for (i = 0; i < msg->len - 1; i++) msg 136 drivers/i2c/busses/i2c-pasemi.c TXFIFO_WR(smbus, msg->buf[i]); msg 138 drivers/i2c/busses/i2c-pasemi.c TXFIFO_WR(smbus, msg->buf[msg->len-1] | msg 496 drivers/i2c/busses/i2c-pmcmsp.c struct i2c_msg *msg, int num) msg 504 drivers/i2c/busses/i2c-pmcmsp.c struct i2c_msg *nextmsg = msg + 1; msg 507 drivers/i2c/busses/i2c-pmcmsp.c cmd.write_len = msg->len; msg 508 drivers/i2c/busses/i2c-pmcmsp.c cmd.write_data = msg->buf; msg 511 drivers/i2c/busses/i2c-pmcmsp.c } else if (msg->flags & I2C_M_RD) { msg 513 drivers/i2c/busses/i2c-pmcmsp.c cmd.read_len = msg->len; msg 514 drivers/i2c/busses/i2c-pmcmsp.c cmd.read_data = msg->buf; msg 521 drivers/i2c/busses/i2c-pmcmsp.c cmd.write_len = msg->len; msg 522 drivers/i2c/busses/i2c-pmcmsp.c cmd.write_data = msg->buf; msg 525 drivers/i2c/busses/i2c-pmcmsp.c cmd.addr = msg->addr; msg 527 drivers/i2c/busses/i2c-pmcmsp.c if (msg->flags & I2C_M_TEN) { msg 540 drivers/i2c/busses/i2c-pmcmsp.c if (msg->flags & I2C_M_TEN) msg 544 drivers/i2c/busses/i2c-pmcmsp.c (msg->flags & I2C_M_RD) ? "read" : "write", msg->len, msg 173 drivers/i2c/busses/i2c-pxa.c struct i2c_msg *msg; msg 619 drivers/i2c/busses/i2c-pxa.c if (i2c->msg) msg 669 drivers/i2c/busses/i2c-pxa.c if (i2c->msg) msg 678 drivers/i2c/busses/i2c-pxa.c static inline unsigned int i2c_pxa_addr_byte(struct i2c_msg *msg) msg 680 drivers/i2c/busses/i2c-pxa.c unsigned int addr = (msg->addr & 0x7f) << 1; msg 682 drivers/i2c/busses/i2c-pxa.c if (msg->flags & I2C_M_RD) msg 695 drivers/i2c/busses/i2c-pxa.c writel(i2c_pxa_addr_byte(i2c->msg), _IDBR(i2c)); msg 696 drivers/i2c/busses/i2c-pxa.c i2c->req_slave_addr = i2c_pxa_addr_byte(i2c->msg); msg 774 drivers/i2c/busses/i2c-pxa.c struct i2c_msg *msg, int num) msg 783 drivers/i2c/busses/i2c-pxa.c i2c->msg = msg; msg 815 drivers/i2c/busses/i2c-pxa.c static int i2c_pxa_do_xfer(struct pxa_i2c *i2c, struct i2c_msg *msg, int num) msg 848 drivers/i2c/busses/i2c-pxa.c i2c->msg = msg; msg 913 drivers/i2c/busses/i2c-pxa.c i2c->msg = NULL; msg 947 drivers/i2c/busses/i2c-pxa.c (!((i2c->msg->flags & I2C_M_IGNORE_NAK) && msg 968 drivers/i2c/busses/i2c-pxa.c if (i2c->msg_ptr == i2c->msg->len - 1 && msg 973 drivers/i2c/busses/i2c-pxa.c } else if (i2c->msg_ptr < i2c->msg->len) { msg 977 drivers/i2c/busses/i2c-pxa.c writel(i2c->msg->buf[i2c->msg_ptr++], _IDBR(i2c)); msg 985 drivers/i2c/busses/i2c-pxa.c if ((i2c->msg_ptr == i2c->msg->len) && msg 986 drivers/i2c/busses/i2c-pxa.c ((i2c->msg->flags & I2C_M_STOP) || msg 996 drivers/i2c/busses/i2c-pxa.c i2c->msg++; msg 1003 drivers/i2c/busses/i2c-pxa.c if (i2c->msg->flags & I2C_M_NOSTART) msg 1009 drivers/i2c/busses/i2c-pxa.c writel(i2c_pxa_addr_byte(i2c->msg), _IDBR(i2c)); msg 1010 drivers/i2c/busses/i2c-pxa.c i2c->req_slave_addr = i2c_pxa_addr_byte(i2c->msg); msg 1018 drivers/i2c/busses/i2c-pxa.c if (i2c->msg->len == 0) { msg 1042 drivers/i2c/busses/i2c-pxa.c i2c->msg->buf[i2c->msg_ptr++] = readl(_IDBR(i2c)); msg 1044 drivers/i2c/busses/i2c-pxa.c if (i2c->msg_ptr < i2c->msg->len) { msg 1049 drivers/i2c/busses/i2c-pxa.c if (i2c->msg_ptr == i2c->msg->len - 1) msg 1098 drivers/i2c/busses/i2c-pxa.c } else if (i2c->msg && (!i2c->highmode_enter)) { msg 94 drivers/i2c/busses/i2c-qcom-geni.c const char *msg; msg 197 drivers/i2c/busses/i2c-qcom-geni.c dev_err(gi2c->se.dev, "%s\n", gi2c_log[err].msg); msg 353 drivers/i2c/busses/i2c-qcom-geni.c static int geni_i2c_rx_one_msg(struct geni_i2c_dev *gi2c, struct i2c_msg *msg, msg 360 drivers/i2c/busses/i2c-qcom-geni.c size_t len = msg->len; msg 363 drivers/i2c/busses/i2c-qcom-geni.c dma_buf = i2c_get_dma_safe_msg_buf(msg, 32); msg 375 drivers/i2c/busses/i2c-qcom-geni.c i2c_put_dma_safe_msg_buf(dma_buf, msg, false); msg 388 drivers/i2c/busses/i2c-qcom-geni.c i2c_put_dma_safe_msg_buf(dma_buf, msg, !gi2c->err); msg 394 drivers/i2c/busses/i2c-qcom-geni.c static int geni_i2c_tx_one_msg(struct geni_i2c_dev *gi2c, struct i2c_msg *msg, msg 401 drivers/i2c/busses/i2c-qcom-geni.c size_t len = msg->len; msg 404 drivers/i2c/busses/i2c-qcom-geni.c dma_buf = i2c_get_dma_safe_msg_buf(msg, 32); msg 416 drivers/i2c/busses/i2c-qcom-geni.c i2c_put_dma_safe_msg_buf(dma_buf, msg, false); msg 432 drivers/i2c/busses/i2c-qcom-geni.c i2c_put_dma_safe_msg_buf(dma_buf, msg, !gi2c->err); msg 248 drivers/i2c/busses/i2c-qup.c struct i2c_msg *msg; msg 297 drivers/i2c/busses/i2c-qup.c if (!qup->msg) { msg 340 drivers/i2c/busses/i2c-qup.c if (qup->msg->flags & I2C_M_RD) msg 359 drivers/i2c/busses/i2c-qup.c if (qup->msg->flags & I2C_M_RD) { msg 464 drivers/i2c/busses/i2c-qup.c struct i2c_msg *msg = qup->msg; msg 465 drivers/i2c/busses/i2c-qup.c u32 addr = i2c_8bit_addr_from_msg(msg); msg 479 drivers/i2c/busses/i2c-qup.c while (blk->tx_fifo_free && qup->pos < msg->len) { msg 480 drivers/i2c/busses/i2c-qup.c if (qup->pos == msg->len - 1) msg 486 drivers/i2c/busses/i2c-qup.c val |= (qup_tag | msg->buf[qup->pos]) << QUP_MSW_SHIFT; msg 488 drivers/i2c/busses/i2c-qup.c val = qup_tag | msg->buf[qup->pos]; msg 491 drivers/i2c/busses/i2c-qup.c if (idx & 1 || qup->pos == msg->len - 1) msg 501 drivers/i2c/busses/i2c-qup.c struct i2c_msg *msg) msg 504 drivers/i2c/busses/i2c-qup.c qup->blk.data_len = msg->len; msg 505 drivers/i2c/busses/i2c-qup.c qup->blk.count = DIV_ROUND_UP(msg->len, qup->blk_xfer_limit); msg 520 drivers/i2c/busses/i2c-qup.c static bool qup_i2c_check_msg_len(struct i2c_msg *msg) msg 522 drivers/i2c/busses/i2c-qup.c return ((msg->flags & I2C_M_RD) && (msg->flags & I2C_M_RECV_LEN)); msg 526 drivers/i2c/busses/i2c-qup.c struct i2c_msg *msg) msg 537 drivers/i2c/busses/i2c-qup.c if (msg->flags & I2C_M_TEN) msg 548 drivers/i2c/busses/i2c-qup.c struct i2c_msg *msg) msg 550 drivers/i2c/busses/i2c-qup.c u16 addr = i2c_8bit_addr_from_msg(msg); msg 557 drivers/i2c/busses/i2c-qup.c if (qup_i2c_check_msg_len(msg)) msg 558 drivers/i2c/busses/i2c-qup.c return qup_i2c_set_tags_smb(addr, tags, qup, msg); msg 564 drivers/i2c/busses/i2c-qup.c if (msg->flags & I2C_M_TEN) msg 570 drivers/i2c/busses/i2c-qup.c if (msg->flags & I2C_M_RD) msg 575 drivers/i2c/busses/i2c-qup.c if (msg->flags & I2C_M_RD) msg 653 drivers/i2c/busses/i2c-qup.c static int qup_i2c_bam_make_desc(struct qup_i2c_dev *qup, struct i2c_msg *msg) msg 661 drivers/i2c/busses/i2c-qup.c qup_i2c_set_blk_data(qup, msg); msg 664 drivers/i2c/busses/i2c-qup.c rem = msg->len - (blocks - 1) * limit; msg 666 drivers/i2c/busses/i2c-qup.c if (msg->flags & I2C_M_RD) { msg 670 drivers/i2c/busses/i2c-qup.c len += qup_i2c_set_tags(tags, qup, msg); msg 682 drivers/i2c/busses/i2c-qup.c &msg->buf[limit * i], msg 702 drivers/i2c/busses/i2c-qup.c len = qup_i2c_set_tags(tags, qup, msg); msg 713 drivers/i2c/busses/i2c-qup.c &msg->buf[limit * i], msg 840 drivers/i2c/busses/i2c-qup.c static int qup_i2c_bam_xfer(struct i2c_adapter *adap, struct i2c_msg *msg, msg 871 drivers/i2c/busses/i2c-qup.c qup->msg = msg + idx; msg 874 drivers/i2c/busses/i2c-qup.c ret = qup_i2c_bam_make_desc(qup, qup->msg); msg 899 drivers/i2c/busses/i2c-qup.c qup->msg = NULL; msg 904 drivers/i2c/busses/i2c-qup.c struct i2c_msg *msg) msg 924 drivers/i2c/busses/i2c-qup.c struct i2c_msg *msg = qup->msg; msg 928 drivers/i2c/busses/i2c-qup.c while (blk->fifo_available && qup->pos < msg->len) { msg 932 drivers/i2c/busses/i2c-qup.c msg->buf[qup->pos++] = val & 0xFF; msg 934 drivers/i2c/busses/i2c-qup.c msg->buf[qup->pos++] = val >> QUP_MSW_SHIFT; msg 940 drivers/i2c/busses/i2c-qup.c if (qup->pos == msg->len) msg 946 drivers/i2c/busses/i2c-qup.c struct i2c_msg *msg = qup->msg; msg 949 drivers/i2c/busses/i2c-qup.c addr = i2c_8bit_addr_from_msg(msg); msg 952 drivers/i2c/busses/i2c-qup.c len = (msg->len == QUP_READ_LIMIT) ? 0 : msg->len; msg 1034 drivers/i2c/busses/i2c-qup.c ret = qup_i2c_wait_for_complete(qup, qup->msg); msg 1047 drivers/i2c/busses/i2c-qup.c struct i2c_msg *msg = qup->msg; msg 1051 drivers/i2c/busses/i2c-qup.c blk->total_tx_len = msg->len + 1; msg 1063 drivers/i2c/busses/i2c-qup.c blk->total_rx_len = qup->msg->len; msg 1101 drivers/i2c/busses/i2c-qup.c qup->msg = &msgs[idx]; msg 1354 drivers/i2c/busses/i2c-qup.c struct i2c_msg *msg = qup->msg; msg 1362 drivers/i2c/busses/i2c-qup.c if (qup_i2c_check_msg_len(msg)) { msg 1413 drivers/i2c/busses/i2c-qup.c ret = qup_i2c_wait_for_complete(qup, msg); msg 1438 drivers/i2c/busses/i2c-qup.c struct i2c_msg *msg = qup->msg; msg 1440 drivers/i2c/busses/i2c-qup.c u8 *msg_buf = msg->buf; msg 1443 drivers/i2c/busses/i2c-qup.c qup_i2c_set_blk_data(qup, msg); msg 1451 drivers/i2c/busses/i2c-qup.c qup_i2c_set_tags(blk->cur_tx_tags, qup, qup->msg); msg 1470 drivers/i2c/busses/i2c-qup.c if (qup_i2c_check_msg_len(msg) && msg->len == 1 && msg 1472 drivers/i2c/busses/i2c-qup.c if (msg->buf[0] > I2C_SMBUS_BLOCK_MAX) msg 1475 drivers/i2c/busses/i2c-qup.c msg->len = msg->buf[0]; msg 1482 drivers/i2c/busses/i2c-qup.c msg->len += 1; msg 1584 drivers/i2c/busses/i2c-qup.c qup->msg = &msgs[idx]; msg 1592 drivers/i2c/busses/i2c-qup.c qup->msg = NULL; msg 122 drivers/i2c/busses/i2c-rcar.c struct i2c_msg *msg; msg 146 drivers/i2c/busses/i2c-rcar.c #define rcar_i2c_is_recv(p) ((p)->msg->flags & I2C_M_RD) msg 336 drivers/i2c/busses/i2c-rcar.c rcar_i2c_write(priv, ICMAR, i2c_8bit_addr_from_msg(priv->msg)); msg 357 drivers/i2c/busses/i2c-rcar.c priv->msg++; msg 406 drivers/i2c/busses/i2c-rcar.c struct i2c_msg *msg = priv->msg; msg 407 drivers/i2c/busses/i2c-rcar.c bool read = msg->flags & I2C_M_RD; msg 417 drivers/i2c/busses/i2c-rcar.c if (IS_ERR(chan) || msg->len < RCAR_MIN_DMA_LEN || msg 418 drivers/i2c/busses/i2c-rcar.c !(msg->flags & I2C_M_DMA_SAFE) || (read && priv->flags & ID_P_NO_RXDMA)) msg 426 drivers/i2c/busses/i2c-rcar.c buf = priv->msg->buf; msg 427 drivers/i2c/busses/i2c-rcar.c len = priv->msg->len - 2; msg 432 drivers/i2c/busses/i2c-rcar.c buf = priv->msg->buf + 1; msg 433 drivers/i2c/busses/i2c-rcar.c len = priv->msg->len - 1; msg 478 drivers/i2c/busses/i2c-rcar.c struct i2c_msg *msg = priv->msg; msg 488 drivers/i2c/busses/i2c-rcar.c if (priv->pos < msg->len) { msg 496 drivers/i2c/busses/i2c-rcar.c rcar_i2c_write(priv, ICRXTX, msg->buf[priv->pos]); msg 525 drivers/i2c/busses/i2c-rcar.c struct i2c_msg *msg = priv->msg; msg 537 drivers/i2c/busses/i2c-rcar.c } else if (priv->pos < msg->len) { msg 539 drivers/i2c/busses/i2c-rcar.c msg->buf[priv->pos] = rcar_i2c_read(priv, ICRXTX); msg 544 drivers/i2c/busses/i2c-rcar.c if (priv->pos + 1 == msg->len) { msg 553 drivers/i2c/busses/i2c-rcar.c if (priv->pos == msg->len && !(priv->flags & ID_LAST_MSG)) msg 720 drivers/i2c/busses/i2c-rcar.c struct i2c_msg *msg) msg 727 drivers/i2c/busses/i2c-rcar.c read = msg->flags & I2C_M_RD; msg 806 drivers/i2c/busses/i2c-rcar.c priv->msg = msgs; msg 92 drivers/i2c/busses/i2c-riic.c struct i2c_msg *msg; msg 134 drivers/i2c/busses/i2c-riic.c riic->msg = &msgs[i]; msg 166 drivers/i2c/busses/i2c-riic.c if (riic->msg->flags & I2C_M_RD) msg 171 drivers/i2c/busses/i2c-riic.c riic->bytes_left = riic->msg->len; msg 173 drivers/i2c/busses/i2c-riic.c val = i2c_8bit_addr_from_msg(riic->msg); msg 231 drivers/i2c/busses/i2c-riic.c riic->bytes_left = riic->msg->len; msg 212 drivers/i2c/busses/i2c-rk3x.c struct i2c_msg *msg; msg 253 drivers/i2c/busses/i2c-rk3x.c if (!(i2c->msg->flags & I2C_M_IGNORE_NAK)) msg 269 drivers/i2c/busses/i2c-rk3x.c i2c->msg = NULL; msg 304 drivers/i2c/busses/i2c-rk3x.c unsigned int len = i2c->msg->len - i2c->processed; msg 343 drivers/i2c/busses/i2c-rk3x.c if ((i2c->processed == i2c->msg->len) && (cnt != 0)) msg 349 drivers/i2c/busses/i2c-rk3x.c byte = i2c->msg->buf[i2c->processed++]; msg 357 drivers/i2c/busses/i2c-rk3x.c if (i2c->processed == i2c->msg->len) msg 408 drivers/i2c/busses/i2c-rk3x.c if (i2c->processed == i2c->msg->len) msg 417 drivers/i2c/busses/i2c-rk3x.c unsigned int len = i2c->msg->len - i2c->processed; msg 438 drivers/i2c/busses/i2c-rk3x.c i2c->msg->buf[i2c->processed++] = byte; msg 442 drivers/i2c/busses/i2c-rk3x.c if (i2c->processed == i2c->msg->len) msg 503 drivers/i2c/busses/i2c-rk3x.c if (!(i2c->msg->flags & I2C_M_IGNORE_NAK)) msg 998 drivers/i2c/busses/i2c-rk3x.c i2c->msg = &msgs[1]; msg 1027 drivers/i2c/busses/i2c-rk3x.c i2c->msg = &msgs[0]; msg 99 drivers/i2c/busses/i2c-s3c2410.c struct i2c_msg *msg; msg 178 drivers/i2c/busses/i2c-s3c2410.c i2c->msg = NULL; msg 242 drivers/i2c/busses/i2c-s3c2410.c struct i2c_msg *msg) msg 244 drivers/i2c/busses/i2c-s3c2410.c unsigned int addr = (msg->addr & 0x7f) << 1; msg 251 drivers/i2c/busses/i2c-s3c2410.c if (msg->flags & I2C_M_RD) { msg 257 drivers/i2c/busses/i2c-s3c2410.c if (msg->flags & I2C_M_REV_DIR_ADDR) msg 370 drivers/i2c/busses/i2c-s3c2410.c if (i2c->msg->flags & I2C_M_RECV_LEN && i2c->msg->len == 1) msg 373 drivers/i2c/busses/i2c-s3c2410.c return i2c->msg_ptr == i2c->msg->len-1; msg 381 drivers/i2c/busses/i2c-s3c2410.c return i2c->msg_ptr >= i2c->msg->len; msg 410 drivers/i2c/busses/i2c-s3c2410.c !(i2c->msg->flags & I2C_M_IGNORE_NAK)) { msg 417 drivers/i2c/busses/i2c-s3c2410.c if (i2c->msg->flags & I2C_M_RD) msg 426 drivers/i2c/busses/i2c-s3c2410.c if (is_lastmsg(i2c) && i2c->msg->len == 0) { msg 445 drivers/i2c/busses/i2c-s3c2410.c if (!(i2c->msg->flags & I2C_M_IGNORE_NAK)) { msg 457 drivers/i2c/busses/i2c-s3c2410.c byte = i2c->msg->buf[i2c->msg_ptr++]; msg 476 drivers/i2c/busses/i2c-s3c2410.c i2c->msg++; msg 479 drivers/i2c/busses/i2c-s3c2410.c if (i2c->msg->flags & I2C_M_NOSTART) { msg 481 drivers/i2c/busses/i2c-s3c2410.c if (i2c->msg->flags & I2C_M_RD) { msg 493 drivers/i2c/busses/i2c-s3c2410.c s3c24xx_i2c_message_start(i2c, i2c->msg); msg 510 drivers/i2c/busses/i2c-s3c2410.c i2c->msg->buf[i2c->msg_ptr++] = byte; msg 513 drivers/i2c/busses/i2c-s3c2410.c if (i2c->msg->flags & I2C_M_RECV_LEN && i2c->msg->len == 1) msg 514 drivers/i2c/busses/i2c-s3c2410.c i2c->msg->len += byte; msg 538 drivers/i2c/busses/i2c-s3c2410.c i2c->msg++; msg 704 drivers/i2c/busses/i2c-s3c2410.c i2c->msg = msgs; msg 86 drivers/i2c/busses/i2c-sh7760.c struct i2c_msg *msg; msg 115 drivers/i2c/busses/i2c-sh7760.c struct i2c_msg *msg = id->msg; msg 116 drivers/i2c/busses/i2c-sh7760.c char *data = msg->buf; msg 165 drivers/i2c/busses/i2c-sh7760.c if (msg->len <= len) { msg 181 drivers/i2c/busses/i2c-sh7760.c while (msg->len && len) { msg 183 drivers/i2c/busses/i2c-sh7760.c msg->len--; msg 187 drivers/i2c/busses/i2c-sh7760.c if (msg->len) { msg 188 drivers/i2c/busses/i2c-sh7760.c len = (msg->len >= FIFO_SIZE) ? FIFO_SIZE - 1 msg 189 drivers/i2c/busses/i2c-sh7760.c : msg->len - 1; msg 195 drivers/i2c/busses/i2c-sh7760.c if ((fsr & FSR_TEND) && (msg->len < 1)) { msg 208 drivers/i2c/busses/i2c-sh7760.c while (msg->len && (IN32(id, I2CTFDR) < FIFO_SIZE)) { msg 210 drivers/i2c/busses/i2c-sh7760.c msg->len--; msg 213 drivers/i2c/busses/i2c-sh7760.c if (msg->len < 1) { msg 217 drivers/i2c/busses/i2c-sh7760.c len = (msg->len >= FIFO_SIZE) ? 2 : 0; msg 227 drivers/i2c/busses/i2c-sh7760.c id->msg = NULL; msg 248 drivers/i2c/busses/i2c-sh7760.c OUT32(id, I2CMAR, (id->msg->addr << 1) | 1); msg 251 drivers/i2c/busses/i2c-sh7760.c if (id->msg->len >= FIFO_SIZE) msg 254 drivers/i2c/busses/i2c-sh7760.c len = id->msg->len - 1; /* trigger before all received */ msg 274 drivers/i2c/busses/i2c-sh7760.c OUT32(id, I2CMAR, (id->msg->addr << 1) | 0); msg 277 drivers/i2c/busses/i2c-sh7760.c if (id->msg->len >= FIFO_SIZE) msg 285 drivers/i2c/busses/i2c-sh7760.c while (id->msg->len && IN32(id, I2CTFDR) < FIFO_SIZE) { msg 286 drivers/i2c/busses/i2c-sh7760.c OUT32(id, I2CRXTX, *(id->msg->buf)); msg 287 drivers/i2c/busses/i2c-sh7760.c (id->msg->len)--; msg 288 drivers/i2c/busses/i2c-sh7760.c (id->msg->buf)++; msg 295 drivers/i2c/busses/i2c-sh7760.c OUT32(id, I2CFIER, FIER_TEIE | (id->msg->len ? FIER_TXIE : 0)); msg 321 drivers/i2c/busses/i2c-sh7760.c id->msg = msgs; msg 356 drivers/i2c/busses/i2c-sh7760.c id->msg = NULL; msg 127 drivers/i2c/busses/i2c-sh_mobile.c struct i2c_msg *msg; msg 320 drivers/i2c/busses/i2c-sh_mobile.c iic_wr(pd, ICDR, i2c_8bit_addr_from_msg(pd->msg)); msg 323 drivers/i2c/busses/i2c-sh_mobile.c iic_wr(pd, ICDR, pd->msg->buf[pd->pos]); msg 356 drivers/i2c/busses/i2c-sh_mobile.c if (pd->pos == pd->msg->len) { msg 382 drivers/i2c/busses/i2c-sh_mobile.c } else if (pd->pos == pd->msg->len) { msg 399 drivers/i2c/busses/i2c-sh_mobile.c pd->msg->buf[real_pos] = data; msg 402 drivers/i2c/busses/i2c-sh_mobile.c return pd->pos == (pd->msg->len + 2); msg 415 drivers/i2c/busses/i2c-sh_mobile.c (pd->msg->flags & I2C_M_RD) ? "read" : "write", msg 416 drivers/i2c/busses/i2c-sh_mobile.c pd->pos, pd->msg->len); msg 424 drivers/i2c/busses/i2c-sh_mobile.c else if (pd->msg->flags & I2C_M_RD) msg 453 drivers/i2c/busses/i2c-sh_mobile.c pd->msg->len, pd->dma_direction); msg 475 drivers/i2c/busses/i2c-sh_mobile.c pd->pos = pd->msg->len; msg 519 drivers/i2c/busses/i2c-sh_mobile.c bool read = pd->msg->flags & I2C_M_RD; msg 538 drivers/i2c/busses/i2c-sh_mobile.c dma_addr = dma_map_single(chan->device->dev, pd->dma_buf, pd->msg->len, dir); msg 544 drivers/i2c/busses/i2c-sh_mobile.c sg_dma_len(&pd->sg) = pd->msg->len; msg 586 drivers/i2c/busses/i2c-sh_mobile.c pd->msg = usr_msg; msg 590 drivers/i2c/busses/i2c-sh_mobile.c pd->dma_buf = i2c_get_dma_safe_msg_buf(pd->msg, 8); msg 651 drivers/i2c/busses/i2c-sh_mobile.c struct i2c_msg *msg; msg 662 drivers/i2c/busses/i2c-sh_mobile.c msg = &msgs[i]; msg 663 drivers/i2c/busses/i2c-sh_mobile.c pd->send_stop = i == num - 1 || msg->flags & I2C_M_STOP; msg 666 drivers/i2c/busses/i2c-sh_mobile.c start_ch(pd, msg, do_start); msg 677 drivers/i2c/busses/i2c-sh_mobile.c i2c_put_dma_safe_msg_buf(pd->dma_buf, pd->msg, pd->stop_after_dma); msg 181 drivers/i2c/busses/i2c-sirf.c struct i2c_msg *msg) msg 187 drivers/i2c/busses/i2c-sirf.c if (siic->last && (msg->len == 0)) msg 192 drivers/i2c/busses/i2c-sirf.c addr = i2c_8bit_addr_from_msg(msg); msg 195 drivers/i2c/busses/i2c-sirf.c if (msg->flags & I2C_M_REV_DIR_ADDR) msg 201 drivers/i2c/busses/i2c-sirf.c static int i2c_sirfsoc_xfer_msg(struct sirfsoc_i2c *siic, struct i2c_msg *msg) msg 205 drivers/i2c/busses/i2c-sirf.c int timeout = msecs_to_jiffies((msg->len + 1) * 50); msg 207 drivers/i2c/busses/i2c-sirf.c i2c_sirfsoc_set_address(siic, msg); msg 81 drivers/i2c/busses/i2c-sprd.c struct i2c_msg *msg; msg 214 drivers/i2c/busses/i2c-sprd.c struct i2c_msg *msg = i2c_dev->msg; msg 216 drivers/i2c/busses/i2c-sprd.c if (msg->flags & I2C_M_RD) { msg 244 drivers/i2c/busses/i2c-sprd.c struct i2c_msg *msg, bool is_last_msg) msg 248 drivers/i2c/busses/i2c-sprd.c i2c_dev->msg = msg; msg 249 drivers/i2c/busses/i2c-sprd.c i2c_dev->buf = msg->buf; msg 250 drivers/i2c/busses/i2c-sprd.c i2c_dev->count = msg->len; msg 254 drivers/i2c/busses/i2c-sprd.c sprd_i2c_set_devaddr(i2c_dev, msg); msg 255 drivers/i2c/busses/i2c-sprd.c sprd_i2c_set_count(i2c_dev, msg->len); msg 257 drivers/i2c/busses/i2c-sprd.c if (msg->flags & I2C_M_RD) { msg 269 drivers/i2c/busses/i2c-sprd.c if (msg->flags & I2C_M_RD) msg 366 drivers/i2c/busses/i2c-sprd.c struct i2c_msg *msg = i2c_dev->msg; msg 370 drivers/i2c/busses/i2c-sprd.c if (msg->flags & I2C_M_RD) msg 396 drivers/i2c/busses/i2c-sprd.c else if (msg->flags & I2C_M_RD && i2c_dev->count) msg 410 drivers/i2c/busses/i2c-sprd.c struct i2c_msg *msg = i2c_dev->msg; msg 414 drivers/i2c/busses/i2c-sprd.c if (msg->flags & I2C_M_RD) msg 645 drivers/i2c/busses/i2c-st.c static int st_i2c_xfer_msg(struct st_i2c_dev *i2c_dev, struct i2c_msg *msg, msg 653 drivers/i2c/busses/i2c-st.c c->addr = i2c_8bit_addr_from_msg(msg); msg 654 drivers/i2c/busses/i2c-st.c c->buf = msg->buf; msg 655 drivers/i2c/busses/i2c-st.c c->count = msg->len; msg 131 drivers/i2c/busses/i2c-stm32f4.c struct stm32f4_i2c_msg msg; msg 333 drivers/i2c/busses/i2c-stm32f4.c struct stm32f4_i2c_msg *msg = &i2c_dev->msg; msg 335 drivers/i2c/busses/i2c-stm32f4.c stm32f4_i2c_write_byte(i2c_dev, *msg->buf++); msg 336 drivers/i2c/busses/i2c-stm32f4.c msg->count--; msg 341 drivers/i2c/busses/i2c-stm32f4.c struct stm32f4_i2c_msg *msg = &i2c_dev->msg; msg 345 drivers/i2c/busses/i2c-stm32f4.c *msg->buf++ = rbuf; msg 346 drivers/i2c/busses/i2c-stm32f4.c msg->count--; msg 351 drivers/i2c/busses/i2c-stm32f4.c struct stm32f4_i2c_msg *msg = &i2c_dev->msg; msg 357 drivers/i2c/busses/i2c-stm32f4.c if (msg->stop) msg 371 drivers/i2c/busses/i2c-stm32f4.c struct stm32f4_i2c_msg *msg = &i2c_dev->msg; msg 374 drivers/i2c/busses/i2c-stm32f4.c if (msg->count) { msg 376 drivers/i2c/busses/i2c-stm32f4.c if (!msg->count) { msg 396 drivers/i2c/busses/i2c-stm32f4.c struct stm32f4_i2c_msg *msg = &i2c_dev->msg; msg 399 drivers/i2c/busses/i2c-stm32f4.c switch (msg->count) { msg 436 drivers/i2c/busses/i2c-stm32f4.c struct stm32f4_i2c_msg *msg = &i2c_dev->msg; msg 441 drivers/i2c/busses/i2c-stm32f4.c switch (msg->count) { msg 452 drivers/i2c/busses/i2c-stm32f4.c if (msg->stop) msg 488 drivers/i2c/busses/i2c-stm32f4.c struct stm32f4_i2c_msg *msg = &i2c_dev->msg; msg 491 drivers/i2c/busses/i2c-stm32f4.c switch (msg->count) { msg 512 drivers/i2c/busses/i2c-stm32f4.c if (msg->stop) msg 559 drivers/i2c/busses/i2c-stm32f4.c struct stm32f4_i2c_msg *msg = &i2c_dev->msg; msg 581 drivers/i2c/busses/i2c-stm32f4.c stm32f4_i2c_write_byte(i2c_dev, msg->addr); msg 585 drivers/i2c/busses/i2c-stm32f4.c if (msg->addr & I2C_M_RD) msg 599 drivers/i2c/busses/i2c-stm32f4.c if ((event & STM32F4_I2C_SR1_TXE) && !(msg->addr & I2C_M_RD)) msg 603 drivers/i2c/busses/i2c-stm32f4.c if ((event & STM32F4_I2C_SR1_RXNE) && (msg->addr & I2C_M_RD)) msg 614 drivers/i2c/busses/i2c-stm32f4.c if (msg->addr & I2C_M_RD) msg 631 drivers/i2c/busses/i2c-stm32f4.c struct stm32f4_i2c_msg *msg = &i2c_dev->msg; msg 641 drivers/i2c/busses/i2c-stm32f4.c msg->result = -EAGAIN; msg 649 drivers/i2c/busses/i2c-stm32f4.c if (!(msg->addr & I2C_M_RD)) { msg 655 drivers/i2c/busses/i2c-stm32f4.c msg->result = -EIO; msg 662 drivers/i2c/busses/i2c-stm32f4.c msg->result = -EIO; msg 679 drivers/i2c/busses/i2c-stm32f4.c struct i2c_msg *msg, bool is_first, msg 682 drivers/i2c/busses/i2c-stm32f4.c struct stm32f4_i2c_msg *f4_msg = &i2c_dev->msg; msg 688 drivers/i2c/busses/i2c-stm32f4.c f4_msg->addr = i2c_8bit_addr_from_msg(msg); msg 689 drivers/i2c/busses/i2c-stm32f4.c f4_msg->buf = msg->buf; msg 690 drivers/i2c/busses/i2c-stm32f4.c f4_msg->count = msg->len; msg 293 drivers/i2c/busses/i2c-stm32f7.c struct i2c_msg *msg; msg 771 drivers/i2c/busses/i2c-stm32f7.c struct i2c_msg *msg) msg 778 drivers/i2c/busses/i2c-stm32f7.c f7_msg->addr = msg->addr; msg 779 drivers/i2c/busses/i2c-stm32f7.c f7_msg->buf = msg->buf; msg 780 drivers/i2c/busses/i2c-stm32f7.c f7_msg->count = msg->len; msg 791 drivers/i2c/busses/i2c-stm32f7.c if (msg->flags & I2C_M_RD) msg 796 drivers/i2c/busses/i2c-stm32f7.c if (msg->flags & I2C_M_TEN) { msg 826 drivers/i2c/busses/i2c-stm32f7.c msg->flags & I2C_M_RD, msg 837 drivers/i2c/busses/i2c-stm32f7.c if (msg->flags & I2C_M_RD) msg 842 drivers/i2c/busses/i2c-stm32f7.c if (msg->flags & I2C_M_RD) msg 1446 drivers/i2c/busses/i2c-stm32f7.c i2c_dev->msg++; msg 1447 drivers/i2c/busses/i2c-stm32f7.c stm32f7_i2c_xfer_msg(i2c_dev, i2c_dev->msg); msg 1488 drivers/i2c/busses/i2c-stm32f7.c i2c_dev->msg++; msg 1489 drivers/i2c/busses/i2c-stm32f7.c stm32f7_i2c_xfer_msg(i2c_dev, i2c_dev->msg); msg 1562 drivers/i2c/busses/i2c-stm32f7.c i2c_dev->msg = msgs; msg 1583 drivers/i2c/busses/i2c-stm32f7.c i2c_dev->msg->addr); msg 587 drivers/i2c/busses/i2c-stu300.c struct i2c_msg *msg, int resend) msg 592 drivers/i2c/busses/i2c-stu300.c if (msg->flags & I2C_M_TEN) { msg 594 drivers/i2c/busses/i2c-stu300.c val = (0xf0 | (((u32) msg->addr & 0x300) >> 7)) & msg 596 drivers/i2c/busses/i2c-stu300.c if (msg->flags & I2C_M_RD) msg 600 drivers/i2c/busses/i2c-stu300.c val = i2c_8bit_addr_from_msg(msg); msg 604 drivers/i2c/busses/i2c-stu300.c if (msg->flags & I2C_M_RD) msg 613 drivers/i2c/busses/i2c-stu300.c if (msg->flags & I2C_M_TEN) { msg 619 drivers/i2c/busses/i2c-stu300.c val = msg->addr & I2C_DR_D_MASK; msg 645 drivers/i2c/busses/i2c-stu300.c struct i2c_msg *msg, int stop) msg 660 drivers/i2c/busses/i2c-stu300.c msg->addr, msg->len, msg->flags, stop); msg 690 drivers/i2c/busses/i2c-stu300.c if (!(msg->flags & I2C_M_NOSTART)) msg 692 drivers/i2c/busses/i2c-stu300.c if ((msg->flags & I2C_M_RD) && (msg->len > 1)) msg 696 drivers/i2c/busses/i2c-stu300.c if (!(msg->flags & I2C_M_NOSTART)) { msg 708 drivers/i2c/busses/i2c-stu300.c ret = stu300_send_address(dev, msg, attempts != 0); msg 730 drivers/i2c/busses/i2c-stu300.c if (msg->flags & I2C_M_RD) { msg 732 drivers/i2c/busses/i2c-stu300.c for (i = 0; i < msg->len; i++) { msg 733 drivers/i2c/busses/i2c-stu300.c if (i == msg->len-1) { msg 751 drivers/i2c/busses/i2c-stu300.c msg->buf[i] = (u8) stu300_r8(dev->virtbase + I2C_DR); msg 755 drivers/i2c/busses/i2c-stu300.c for (i = 0; i < msg->len; i++) { msg 757 drivers/i2c/busses/i2c-stu300.c stu300_wr8(msg->buf[i], msg 769 drivers/i2c/busses/i2c-stu300.c if (!(msg->flags & I2C_M_IGNORE_NAK)) { msg 133 drivers/i2c/busses/i2c-synquacer.c struct i2c_msg *msg; msg 156 drivers/i2c/busses/i2c-synquacer.c return i2c->msg_ptr == (i2c->msg->len - 1); msg 161 drivers/i2c/busses/i2c-synquacer.c return i2c->msg_ptr >= i2c->msg->len; msg 189 drivers/i2c/busses/i2c-synquacer.c i2c->msg = NULL; msg 326 drivers/i2c/busses/i2c-synquacer.c i2c->msg = msgs; msg 332 drivers/i2c/busses/i2c-synquacer.c ret = synquacer_i2c_master_start(i2c, i2c->msg); msg 389 drivers/i2c/busses/i2c-synquacer.c if (i2c->msg->flags & I2C_M_RD) msg 394 drivers/i2c/busses/i2c-synquacer.c if (is_lastmsg(i2c) && i2c->msg->len == 0) { msg 412 drivers/i2c/busses/i2c-synquacer.c writeb(i2c->msg->buf[i2c->msg_ptr++], msg 430 drivers/i2c/busses/i2c-synquacer.c i2c->msg++; msg 433 drivers/i2c/busses/i2c-synquacer.c ret = synquacer_i2c_master_start(i2c, i2c->msg); msg 445 drivers/i2c/busses/i2c-synquacer.c i2c->msg->buf[i2c->msg_ptr++] = byte; msg 475 drivers/i2c/busses/i2c-synquacer.c i2c->msg++; msg 477 drivers/i2c/busses/i2c-synquacer.c ret = synquacer_i2c_master_start(i2c, i2c->msg); msg 110 drivers/i2c/busses/i2c-tegra-bpmp.c struct i2c_msg *msg = &msgs[i]; msg 113 drivers/i2c/busses/i2c-tegra-bpmp.c err = tegra_bpmp_xlate_flags(msg->flags, &flags); msg 117 drivers/i2c/busses/i2c-tegra-bpmp.c buf[pos++] = msg->addr & 0xff; msg 118 drivers/i2c/busses/i2c-tegra-bpmp.c buf[pos++] = (msg->addr & 0xff00) >> 8; msg 121 drivers/i2c/busses/i2c-tegra-bpmp.c buf[pos++] = msg->len & 0xff; msg 122 drivers/i2c/busses/i2c-tegra-bpmp.c buf[pos++] = (msg->len & 0xff00) >> 8; msg 125 drivers/i2c/busses/i2c-tegra-bpmp.c for (j = 0; j < msg->len; j++) msg 126 drivers/i2c/busses/i2c-tegra-bpmp.c buf[pos++] = msg->buf[j]; msg 202 drivers/i2c/busses/i2c-tegra-bpmp.c struct tegra_bpmp_message msg; msg 208 drivers/i2c/busses/i2c-tegra-bpmp.c memset(&msg, 0, sizeof(msg)); msg 209 drivers/i2c/busses/i2c-tegra-bpmp.c msg.mrq = MRQ_I2C; msg 210 drivers/i2c/busses/i2c-tegra-bpmp.c msg.tx.data = request; msg 211 drivers/i2c/busses/i2c-tegra-bpmp.c msg.tx.size = sizeof(*request); msg 212 drivers/i2c/busses/i2c-tegra-bpmp.c msg.rx.data = response; msg 213 drivers/i2c/busses/i2c-tegra-bpmp.c msg.rx.size = sizeof(*response); msg 216 drivers/i2c/busses/i2c-tegra-bpmp.c err = tegra_bpmp_transfer_atomic(i2c->bpmp, &msg); msg 218 drivers/i2c/busses/i2c-tegra-bpmp.c err = tegra_bpmp_transfer(i2c->bpmp, &msg); msg 1041 drivers/i2c/busses/i2c-tegra.c struct i2c_msg *msg, msg 1056 drivers/i2c/busses/i2c-tegra.c i2c_dev->msg_buf = msg->buf; msg 1057 drivers/i2c/busses/i2c-tegra.c i2c_dev->msg_buf_remaining = msg->len; msg 1059 drivers/i2c/busses/i2c-tegra.c i2c_dev->msg_read = (msg->flags & I2C_M_RD); msg 1063 drivers/i2c/busses/i2c-tegra.c xfer_size = msg->len; msg 1065 drivers/i2c/busses/i2c-tegra.c xfer_size = msg->len + I2C_PACKET_HEADER_SIZE; msg 1114 drivers/i2c/busses/i2c-tegra.c packet_header = msg->len - 1; msg 1125 drivers/i2c/busses/i2c-tegra.c if (msg->flags & I2C_M_TEN) { msg 1126 drivers/i2c/busses/i2c-tegra.c packet_header |= msg->addr; msg 1129 drivers/i2c/busses/i2c-tegra.c packet_header |= msg->addr << I2C_HEADER_SLAVE_ADDR_SHIFT; msg 1131 drivers/i2c/busses/i2c-tegra.c if (msg->flags & I2C_M_IGNORE_NAK) msg 1133 drivers/i2c/busses/i2c-tegra.c if (msg->flags & I2C_M_RD) msg 1142 drivers/i2c/busses/i2c-tegra.c memcpy(buffer, msg->buf, msg->len); msg 1162 drivers/i2c/busses/i2c-tegra.c if (msg->flags & I2C_M_RD) msg 1196 drivers/i2c/busses/i2c-tegra.c msg->len); msg 1233 drivers/i2c/busses/i2c-tegra.c if (msg->flags & I2C_M_IGNORE_NAK) msg 316 drivers/i2c/busses/i2c-uniphier-f.c struct i2c_msg *msg, bool repeat, msg 320 drivers/i2c/busses/i2c-uniphier-f.c bool is_read = msg->flags & I2C_M_RD; msg 323 drivers/i2c/busses/i2c-uniphier-f.c priv->len = msg->len; msg 324 drivers/i2c/busses/i2c-uniphier-f.c priv->buf = msg->buf; msg 340 drivers/i2c/busses/i2c-uniphier-f.c uniphier_fi2c_rx_init(priv, msg->addr); msg 342 drivers/i2c/busses/i2c-uniphier-f.c uniphier_fi2c_tx_init(priv, msg->addr, repeat); msg 412 drivers/i2c/busses/i2c-uniphier-f.c struct i2c_msg *msg, *emsg = msgs + num; msg 420 drivers/i2c/busses/i2c-uniphier-f.c for (msg = msgs; msg < emsg; msg++) { msg 422 drivers/i2c/busses/i2c-uniphier-f.c bool stop = (msg + 1 == emsg) || (msg->flags & I2C_M_STOP); msg 424 drivers/i2c/busses/i2c-uniphier-f.c ret = uniphier_fi2c_master_xfer_one(adap, msg, repeat, stop); msg 161 drivers/i2c/busses/i2c-uniphier.c struct i2c_msg *msg, bool stop) msg 163 drivers/i2c/busses/i2c-uniphier.c bool is_read = msg->flags & I2C_M_RD; msg 168 drivers/i2c/busses/i2c-uniphier.c ret = uniphier_i2c_rx(adap, msg->addr, msg->len, msg->buf); msg 170 drivers/i2c/busses/i2c-uniphier.c ret = uniphier_i2c_tx(adap, msg->addr, msg->len, msg->buf); msg 222 drivers/i2c/busses/i2c-uniphier.c struct i2c_msg *msg, *emsg = msgs + num; msg 229 drivers/i2c/busses/i2c-uniphier.c for (msg = msgs; msg < emsg; msg++) { msg 231 drivers/i2c/busses/i2c-uniphier.c bool stop = (msg + 1 == emsg) || (msg->flags & I2C_M_STOP); msg 233 drivers/i2c/busses/i2c-uniphier.c ret = uniphier_i2c_master_xfer_one(adap, msg, stop); msg 102 drivers/i2c/busses/i2c-viapro.c static void vt596_dump_regs(const char *msg, u8 size) msg 105 drivers/i2c/busses/i2c-viapro.c "DAT=%02x,%02x\n", msg, inb_p(SMBHSTSTS), inb_p(SMBHSTCNT), msg 124 drivers/i2c/busses/i2c-viapro.c static inline void vt596_dump_regs(const char *msg, u8 size) { } msg 113 drivers/i2c/busses/i2c-viperboard.c static int vprbrd_i2c_read(struct vprbrd *vb, struct i2c_msg *msg) msg 120 drivers/i2c/busses/i2c-viperboard.c remain_len = msg->len; msg 204 drivers/i2c/busses/i2c-viperboard.c memcpy(msg->buf + start, rmsg, len1); msg 212 drivers/i2c/busses/i2c-viperboard.c memcpy(msg->buf + start + 512, rmsg, len2); msg 218 drivers/i2c/busses/i2c-viperboard.c static int vprbrd_i2c_write(struct vprbrd *vb, struct i2c_msg *msg) msg 226 drivers/i2c/busses/i2c-viperboard.c remain_len = msg->len; msg 252 drivers/i2c/busses/i2c-viperboard.c memcpy(wmsg->data, msg->buf + start, msg 156 drivers/i2c/busses/i2c-xgene-slimpro.c static void slimpro_i2c_pcc_rx_cb(struct mbox_client *cl, void *msg) msg 168 drivers/i2c/busses/i2c-xgene-slimpro.c msg = generic_comm_base + 1; msg 172 drivers/i2c/busses/i2c-xgene-slimpro.c *ctx->resp_msg = ((u32 *)msg)[1]; msg 178 drivers/i2c/busses/i2c-xgene-slimpro.c static void slimpro_i2c_pcc_tx_prepare(struct slimpro_i2c_dev *ctx, u32 *msg) msg 189 drivers/i2c/busses/i2c-xgene-slimpro.c cpu_to_le16(SLIMPRO_MSG_TYPE(msg[0]) | PCC_CMD_GENERATE_DB_INT)); msg 197 drivers/i2c/busses/i2c-xgene-slimpro.c WRITE_ONCE(ptr[i], cpu_to_le32(msg[i])); msg 216 drivers/i2c/busses/i2c-xgene-slimpro.c u32 *msg, msg 225 drivers/i2c/busses/i2c-xgene-slimpro.c slimpro_i2c_pcc_tx_prepare(ctx, msg); msg 228 drivers/i2c/busses/i2c-xgene-slimpro.c rc = mbox_send_message(ctx->mbox_chan, msg); msg 247 drivers/i2c/busses/i2c-xgene-slimpro.c u32 msg[3]; msg 249 drivers/i2c/busses/i2c-xgene-slimpro.c msg[0] = SLIMPRO_IIC_ENCODE_MSG(SLIMPRO_IIC_BUS, chip, msg 251 drivers/i2c/busses/i2c-xgene-slimpro.c msg[1] = SLIMPRO_IIC_ENCODE_ADDR(addr); msg 252 drivers/i2c/busses/i2c-xgene-slimpro.c msg[2] = 0; msg 254 drivers/i2c/busses/i2c-xgene-slimpro.c return slimpro_i2c_send_msg(ctx, msg, data); msg 261 drivers/i2c/busses/i2c-xgene-slimpro.c u32 msg[3]; msg 263 drivers/i2c/busses/i2c-xgene-slimpro.c msg[0] = SLIMPRO_IIC_ENCODE_MSG(SLIMPRO_IIC_BUS, chip, msg 265 drivers/i2c/busses/i2c-xgene-slimpro.c msg[1] = SLIMPRO_IIC_ENCODE_ADDR(addr); msg 266 drivers/i2c/busses/i2c-xgene-slimpro.c msg[2] = data; msg 268 drivers/i2c/busses/i2c-xgene-slimpro.c return slimpro_i2c_send_msg(ctx, msg, msg); msg 276 drivers/i2c/busses/i2c-xgene-slimpro.c u32 msg[3]; msg 286 drivers/i2c/busses/i2c-xgene-slimpro.c msg[0] = SLIMPRO_IIC_ENCODE_MSG(SLIMPRO_IIC_BUS, chip, SLIMPRO_IIC_READ, msg 288 drivers/i2c/busses/i2c-xgene-slimpro.c msg[1] = SLIMPRO_IIC_ENCODE_FLAG_BUFADDR | msg 292 drivers/i2c/busses/i2c-xgene-slimpro.c msg[2] = (u32)paddr; msg 294 drivers/i2c/busses/i2c-xgene-slimpro.c rc = slimpro_i2c_send_msg(ctx, msg, msg); msg 308 drivers/i2c/busses/i2c-xgene-slimpro.c u32 msg[3]; msg 320 drivers/i2c/busses/i2c-xgene-slimpro.c msg[0] = SLIMPRO_IIC_ENCODE_MSG(SLIMPRO_IIC_BUS, chip, SLIMPRO_IIC_WRITE, msg 322 drivers/i2c/busses/i2c-xgene-slimpro.c msg[1] = SLIMPRO_IIC_ENCODE_FLAG_BUFADDR | msg 325 drivers/i2c/busses/i2c-xgene-slimpro.c msg[2] = (u32)paddr; msg 330 drivers/i2c/busses/i2c-xgene-slimpro.c rc = slimpro_i2c_send_msg(ctx, msg, msg); msg 525 drivers/i2c/busses/i2c-xiic.c struct i2c_msg *msg = i2c->rx_msg = i2c->tx_msg; msg 537 drivers/i2c/busses/i2c-xiic.c rx_watermark = msg->len; msg 543 drivers/i2c/busses/i2c-xiic.c if (!(msg->flags & I2C_M_NOSTART)) msg 546 drivers/i2c/busses/i2c-xiic.c i2c_8bit_addr_from_msg(msg) | XIIC_TX_DYN_START_MASK); msg 551 drivers/i2c/busses/i2c-xiic.c msg->len | ((i2c->nmsgs == 1) ? XIIC_TX_DYN_STOP_MASK : 0)); msg 559 drivers/i2c/busses/i2c-xiic.c i2c->tx_pos = msg->len; msg 564 drivers/i2c/busses/i2c-xiic.c struct i2c_msg *msg = i2c->tx_msg; msg 569 drivers/i2c/busses/i2c-xiic.c __func__, msg, msg->len); msg 574 drivers/i2c/busses/i2c-xiic.c if (!(msg->flags & I2C_M_NOSTART)) { msg 576 drivers/i2c/busses/i2c-xiic.c u16 data = i2c_8bit_addr_from_msg(msg) | msg 578 drivers/i2c/busses/i2c-xiic.c if ((i2c->nmsgs == 1) && msg->len == 0) msg 325 drivers/i2c/busses/i2c-xlp9xx.c static int xlp9xx_i2c_xfer_msg(struct xlp9xx_i2c_dev *priv, struct i2c_msg *msg, msg 331 drivers/i2c/busses/i2c-xlp9xx.c priv->msg_buf = msg->buf; msg 332 drivers/i2c/busses/i2c-xlp9xx.c priv->msg_buf_remaining = priv->msg_len = msg->len; msg 334 drivers/i2c/busses/i2c-xlp9xx.c priv->msg_read = (msg->flags & I2C_M_RD); msg 343 drivers/i2c/busses/i2c-xlp9xx.c (msg->addr << XLP9XX_I2C_SLAVEADDR_ADDR_SHIFT) | msg 353 drivers/i2c/busses/i2c-xlp9xx.c if (msg->flags & I2C_M_TEN) msg 358 drivers/i2c/busses/i2c-xlp9xx.c priv->len_recv = msg->flags & I2C_M_RECV_LEN; msg 359 drivers/i2c/busses/i2c-xlp9xx.c len = priv->len_recv ? I2C_SMBUS_BLOCK_MAX + 2 : msg->len; msg 360 drivers/i2c/busses/i2c-xlp9xx.c priv->client_pec = msg->flags & I2C_CLIENT_PEC; msg 381 drivers/i2c/busses/i2c-xlp9xx.c if (msg->len == 0) msg 384 drivers/i2c/busses/i2c-xlp9xx.c if (msg->len == 0) msg 393 drivers/i2c/busses/i2c-xlp9xx.c if (msg->len) msg 419 drivers/i2c/busses/i2c-xlp9xx.c if (msg->flags & I2C_M_RECV_LEN) { msg 422 drivers/i2c/busses/i2c-xlp9xx.c msg->len = priv->msg_len; msg 87 drivers/i2c/busses/i2c-xlr.c struct i2c_msg *msg; msg 120 drivers/i2c/busses/i2c-xlr.c struct i2c_msg *msg = priv->msg; msg 124 drivers/i2c/busses/i2c-xlr.c msg->buf[priv->pos++]); msg 129 drivers/i2c/busses/i2c-xlr.c struct i2c_msg *msg = priv->msg; msg 132 drivers/i2c/busses/i2c-xlr.c msg->buf[priv->pos++] = msg 139 drivers/i2c/busses/i2c-xlr.c struct i2c_msg *msg = priv->msg; msg 148 drivers/i2c/busses/i2c-xlr.c if (!msg) msg 153 drivers/i2c/busses/i2c-xlr.c if (priv->pos < msg->len) { msg 154 drivers/i2c/busses/i2c-xlr.c if (msg->flags & I2C_M_RD) msg 293 drivers/i2c/busses/i2c-xlr.c struct i2c_msg *msg; msg 307 drivers/i2c/busses/i2c-xlr.c msg = &msgs[i]; msg 308 drivers/i2c/busses/i2c-xlr.c priv->msg = msg; msg 309 drivers/i2c/busses/i2c-xlr.c if (msg->flags & I2C_M_RD) msg 310 drivers/i2c/busses/i2c-xlr.c ret = xlr_i2c_rx(priv, msg->len, &msg->buf[0], msg 311 drivers/i2c/busses/i2c-xlr.c msg->addr); msg 313 drivers/i2c/busses/i2c-xlr.c ret = xlr_i2c_tx(priv, msg->len, &msg->buf[0], msg 314 drivers/i2c/busses/i2c-xlr.c msg->addr); msg 321 drivers/i2c/busses/i2c-xlr.c priv->msg = NULL; msg 275 drivers/i2c/busses/i2c-zx2967.c struct i2c_msg *msg) msg 282 drivers/i2c/busses/i2c-zx2967.c i2c->cur_trans = msg->buf; msg 283 drivers/i2c/busses/i2c-zx2967.c i2c->residue = msg->len; msg 284 drivers/i2c/busses/i2c-zx2967.c i2c->access_cnt = msg->len / I2C_FIFO_MAX; msg 285 drivers/i2c/busses/i2c-zx2967.c i2c->msg_rd = msg->flags & I2C_M_RD; msg 1892 drivers/i2c/i2c-core-base.c static int i2c_quirk_error(struct i2c_adapter *adap, struct i2c_msg *msg, char *err_msg) msg 1895 drivers/i2c/i2c-core-base.c err_msg, msg->addr, msg->len, msg 1896 drivers/i2c/i2c-core-base.c msg->flags & I2C_M_RD ? "read" : "write"); msg 2083 drivers/i2c/i2c-core-base.c struct i2c_msg msg = { msg 2090 drivers/i2c/i2c-core-base.c ret = i2c_transfer(client->adapter, &msg, 1); msg 2374 drivers/i2c/i2c-core-base.c u8 *i2c_get_dma_safe_msg_buf(struct i2c_msg *msg, unsigned int threshold) msg 2379 drivers/i2c/i2c-core-base.c msg->addr); msg 2380 drivers/i2c/i2c-core-base.c if (msg->len < threshold || msg->len == 0) msg 2383 drivers/i2c/i2c-core-base.c if (msg->flags & I2C_M_DMA_SAFE) msg 2384 drivers/i2c/i2c-core-base.c return msg->buf; msg 2387 drivers/i2c/i2c-core-base.c msg->addr, msg->len); msg 2389 drivers/i2c/i2c-core-base.c if (msg->flags & I2C_M_RD) msg 2390 drivers/i2c/i2c-core-base.c return kzalloc(msg->len, GFP_KERNEL); msg 2392 drivers/i2c/i2c-core-base.c return kmemdup(msg->buf, msg->len, GFP_KERNEL); msg 2402 drivers/i2c/i2c-core-base.c void i2c_put_dma_safe_msg_buf(u8 *buf, struct i2c_msg *msg, bool xferred) msg 2404 drivers/i2c/i2c-core-base.c if (!buf || buf == msg->buf) msg 2407 drivers/i2c/i2c-core-base.c if (xferred && msg->flags & I2C_M_RD) msg 2408 drivers/i2c/i2c-core-base.c memcpy(msg->buf, buf, msg->len); msg 51 drivers/i2c/i2c-core-smbus.c static u8 i2c_smbus_msg_pec(u8 pec, struct i2c_msg *msg) msg 54 drivers/i2c/i2c-core-smbus.c u8 addr = i2c_8bit_addr_from_msg(msg); msg 58 drivers/i2c/i2c-core-smbus.c return i2c_smbus_pec(pec, msg->buf, msg->len); msg 62 drivers/i2c/i2c-core-smbus.c static inline void i2c_smbus_add_pec(struct i2c_msg *msg) msg 64 drivers/i2c/i2c-core-smbus.c msg->buf[msg->len] = i2c_smbus_msg_pec(0, msg); msg 65 drivers/i2c/i2c-core-smbus.c msg->len++; msg 73 drivers/i2c/i2c-core-smbus.c static int i2c_smbus_check_pec(u8 cpec, struct i2c_msg *msg) msg 75 drivers/i2c/i2c-core-smbus.c u8 rpec = msg->buf[--msg->len]; msg 76 drivers/i2c/i2c-core-smbus.c cpec = i2c_smbus_msg_pec(cpec, msg); msg 293 drivers/i2c/i2c-core-smbus.c static void i2c_smbus_try_get_dmabuf(struct i2c_msg *msg, u8 init_val) msg 295 drivers/i2c/i2c-core-smbus.c bool is_read = msg->flags & I2C_M_RD; msg 302 drivers/i2c/i2c-core-smbus.c msg->buf = dma_buf; msg 303 drivers/i2c/i2c-core-smbus.c msg->flags |= I2C_M_DMA_SAFE; msg 306 drivers/i2c/i2c-core-smbus.c msg->buf[0] = init_val; msg 330 drivers/i2c/i2c-core-smbus.c struct i2c_msg msg[2] = { msg 347 drivers/i2c/i2c-core-smbus.c msg[0].len = 0; msg 349 drivers/i2c/i2c-core-smbus.c msg[0].flags = flags | (read_write == I2C_SMBUS_READ ? msg 356 drivers/i2c/i2c-core-smbus.c msg[0].flags = I2C_M_RD | flags; msg 362 drivers/i2c/i2c-core-smbus.c msg[1].len = 1; msg 364 drivers/i2c/i2c-core-smbus.c msg[0].len = 2; msg 370 drivers/i2c/i2c-core-smbus.c msg[1].len = 2; msg 372 drivers/i2c/i2c-core-smbus.c msg[0].len = 3; msg 380 drivers/i2c/i2c-core-smbus.c msg[0].len = 3; msg 381 drivers/i2c/i2c-core-smbus.c msg[1].len = 2; msg 387 drivers/i2c/i2c-core-smbus.c msg[1].flags |= I2C_M_RECV_LEN; msg 388 drivers/i2c/i2c-core-smbus.c msg[1].len = 1; /* block length will be added by msg 390 drivers/i2c/i2c-core-smbus.c i2c_smbus_try_get_dmabuf(&msg[1], 0); msg 392 drivers/i2c/i2c-core-smbus.c msg[0].len = data->block[0] + 2; msg 393 drivers/i2c/i2c-core-smbus.c if (msg[0].len > I2C_SMBUS_BLOCK_MAX + 2) { msg 400 drivers/i2c/i2c-core-smbus.c i2c_smbus_try_get_dmabuf(&msg[0], command); msg 401 drivers/i2c/i2c-core-smbus.c for (i = 1; i < msg[0].len; i++) msg 402 drivers/i2c/i2c-core-smbus.c msg[0].buf[i] = data->block[i - 1]; msg 415 drivers/i2c/i2c-core-smbus.c msg[0].len = data->block[0] + 2; msg 416 drivers/i2c/i2c-core-smbus.c i2c_smbus_try_get_dmabuf(&msg[0], command); msg 417 drivers/i2c/i2c-core-smbus.c for (i = 1; i < msg[0].len; i++) msg 418 drivers/i2c/i2c-core-smbus.c msg[0].buf[i] = data->block[i - 1]; msg 420 drivers/i2c/i2c-core-smbus.c msg[1].flags |= I2C_M_RECV_LEN; msg 421 drivers/i2c/i2c-core-smbus.c msg[1].len = 1; /* block length will be added by msg 423 drivers/i2c/i2c-core-smbus.c i2c_smbus_try_get_dmabuf(&msg[1], 0); msg 434 drivers/i2c/i2c-core-smbus.c msg[1].len = data->block[0]; msg 435 drivers/i2c/i2c-core-smbus.c i2c_smbus_try_get_dmabuf(&msg[1], 0); msg 437 drivers/i2c/i2c-core-smbus.c msg[0].len = data->block[0] + 1; msg 439 drivers/i2c/i2c-core-smbus.c i2c_smbus_try_get_dmabuf(&msg[0], command); msg 441 drivers/i2c/i2c-core-smbus.c msg[0].buf[i] = data->block[i]; msg 453 drivers/i2c/i2c-core-smbus.c if (!(msg[0].flags & I2C_M_RD)) { msg 455 drivers/i2c/i2c-core-smbus.c i2c_smbus_add_pec(&msg[0]); msg 457 drivers/i2c/i2c-core-smbus.c partial_pec = i2c_smbus_msg_pec(0, &msg[0]); msg 460 drivers/i2c/i2c-core-smbus.c if (msg[num-1].flags & I2C_M_RD) msg 461 drivers/i2c/i2c-core-smbus.c msg[num-1].len++; msg 464 drivers/i2c/i2c-core-smbus.c status = __i2c_transfer(adapter, msg, num); msg 474 drivers/i2c/i2c-core-smbus.c if (i && (msg[num-1].flags & I2C_M_RD)) { msg 475 drivers/i2c/i2c-core-smbus.c status = i2c_smbus_check_pec(partial_pec, &msg[num-1]); msg 494 drivers/i2c/i2c-core-smbus.c data->block[i + 1] = msg[1].buf[i]; msg 498 drivers/i2c/i2c-core-smbus.c for (i = 0; i < msg[1].buf[0] + 1; i++) msg 499 drivers/i2c/i2c-core-smbus.c data->block[i] = msg[1].buf[i]; msg 504 drivers/i2c/i2c-core-smbus.c if (msg[0].flags & I2C_M_DMA_SAFE) msg 505 drivers/i2c/i2c-core-smbus.c kfree(msg[0].buf); msg 506 drivers/i2c/i2c-core-smbus.c if (msg[1].flags & I2C_M_DMA_SAFE) msg 507 drivers/i2c/i2c-core-smbus.c kfree(msg[1].buf); msg 115 drivers/ide/ide-eh.c ide_startstop_t ide_error(ide_drive_t *drive, const char *msg, u8 stat) msg 120 drivers/ide/ide-eh.c err = ide_dump_status(drive, msg, stat); msg 108 drivers/ide/ide-lib.c u8 ide_dump_status(ide_drive_t *drive, const char *msg, u8 stat) msg 112 drivers/ide/ide-lib.c printk(KERN_ERR "%s: %s: status=0x%02x { ", drive->name, msg, stat); msg 134 drivers/ide/ide-lib.c printk(KERN_ERR "%s: %s: error=0x%02x ", drive->name, msg, err); msg 38 drivers/iio/adc/ad7476.c struct spi_message msg; msg 74 drivers/iio/adc/ad7476.c b_sent = spi_sync(st->spi, &st->msg); msg 96 drivers/iio/adc/ad7476.c ret = spi_sync(st->spi, &st->msg); msg 274 drivers/iio/adc/ad7476.c spi_message_init(&st->msg); msg 275 drivers/iio/adc/ad7476.c spi_message_add_tail(&st->xfer, &st->msg); msg 45 drivers/iio/adc/ad7766.c struct spi_message msg; msg 74 drivers/iio/adc/ad7766.c ret = spi_sync(ad7766->spi, &ad7766->msg); msg 288 drivers/iio/adc/ad7766.c spi_message_init(&ad7766->msg); msg 289 drivers/iio/adc/ad7766.c spi_message_add_tail(&ad7766->xfer, &ad7766->msg); msg 58 drivers/iio/adc/ad7887.c struct spi_message msg[3]; msg 83 drivers/iio/adc/ad7887.c st->ring_msg = &st->msg[AD7887_CH0]; msg 86 drivers/iio/adc/ad7887.c st->ring_msg = &st->msg[AD7887_CH1]; msg 91 drivers/iio/adc/ad7887.c st->ring_msg = &st->msg[AD7887_CH0_CH1]; msg 103 drivers/iio/adc/ad7887.c return spi_sync(st->spi, &st->msg[AD7887_CH0]); msg 140 drivers/iio/adc/ad7887.c int ret = spi_sync(st->spi, &st->msg[ch]); msg 284 drivers/iio/adc/ad7887.c spi_message_init(&st->msg[AD7887_CH0]); msg 285 drivers/iio/adc/ad7887.c spi_message_add_tail(&st->xfer[0], &st->msg[AD7887_CH0]); msg 298 drivers/iio/adc/ad7887.c spi_message_init(&st->msg[AD7887_CH0_CH1]); msg 299 drivers/iio/adc/ad7887.c spi_message_add_tail(&st->xfer[1], &st->msg[AD7887_CH0_CH1]); msg 300 drivers/iio/adc/ad7887.c spi_message_add_tail(&st->xfer[2], &st->msg[AD7887_CH0_CH1]); msg 306 drivers/iio/adc/ad7887.c spi_message_init(&st->msg[AD7887_CH1]); msg 307 drivers/iio/adc/ad7887.c spi_message_add_tail(&st->xfer[3], &st->msg[AD7887_CH1]); msg 66 drivers/iio/adc/ad7949.c struct spi_message msg; msg 77 drivers/iio/adc/ad7949.c spi_message_init_with_transfers(&msg, tx, 1); msg 78 drivers/iio/adc/ad7949.c ret = spi_sync(ad7949_adc->spi, &msg); msg 95 drivers/iio/adc/ad7949.c struct spi_message msg; msg 122 drivers/iio/adc/ad7949.c spi_message_init_with_transfers(&msg, tx, 1); msg 123 drivers/iio/adc/ad7949.c ret = spi_sync(ad7949_adc->spi, &msg); msg 85 drivers/iio/adc/mcp320x.c struct spi_message msg; msg 138 drivers/iio/adc/mcp320x.c ret = spi_sync(adc->spi, &adc->msg); msg 408 drivers/iio/adc/mcp320x.c spi_message_init_with_transfers(&adc->msg, msg 411 drivers/iio/adc/mcp320x.c spi_message_init_with_transfers(&adc->msg, adc->transfer, msg 63 drivers/iio/chemical/ams-iaq-core.c struct i2c_msg msg = { msg 70 drivers/iio/chemical/ams-iaq-core.c ret = i2c_transfer(client->adapter, &msg, 1); msg 178 drivers/iio/chemical/vz89x.c struct i2c_msg msg[2]; msg 182 drivers/iio/chemical/vz89x.c msg[0].addr = client->addr; msg 183 drivers/iio/chemical/vz89x.c msg[0].flags = client->flags; msg 184 drivers/iio/chemical/vz89x.c msg[0].len = chip->write_size; msg 185 drivers/iio/chemical/vz89x.c msg[0].buf = (char *) &buf; msg 187 drivers/iio/chemical/vz89x.c msg[1].addr = client->addr; msg 188 drivers/iio/chemical/vz89x.c msg[1].flags = client->flags | I2C_M_RD; msg 189 drivers/iio/chemical/vz89x.c msg[1].len = chip->read_size; msg 190 drivers/iio/chemical/vz89x.c msg[1].buf = (char *) &data->buffer; msg 192 drivers/iio/chemical/vz89x.c ret = i2c_transfer(client->adapter, msg, 2); msg 34 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c struct cros_ec_command msg; msg 40 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c .msg = { msg 48 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c ret = cros_ec_cmd_xfer_status(ec_dev, &buf.msg); msg 99 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c state->msg = devm_kzalloc(&pdev->dev, msg 102 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c if (!state->msg) msg 105 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c state->resp = (struct ec_response_motion_sense *)state->msg->data; msg 117 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c state->msg->version = fls(ver_mask) - 1; msg 118 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c state->msg->command = EC_CMD_MOTION_SENSE_CMD + ec->cmd_offset; msg 119 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c state->msg->outsize = sizeof(struct ec_params_motion_sense); msg 145 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c if (state->msg->version < 3) { msg 167 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c state->msg->insize = min(opt_length, state->ec->max_response); msg 169 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c state->msg->insize = state->ec->max_response; msg 171 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c memcpy(state->msg->data, &state->param, sizeof(state->param)); msg 173 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c ret = cros_ec_cmd_xfer_status(state->ec, state->msg); msg 178 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c state->resp != (struct ec_response_motion_sense *)state->msg->data) msg 179 drivers/iio/common/cros_ec_sensors/cros_ec_sensors_core.c memcpy(state->resp, state->msg->data, ret); msg 193 drivers/iio/common/ms_sensors/ms_sensors_i2c.c struct i2c_msg msg[2] = { msg 209 drivers/iio/common/ms_sensors/ms_sensors_i2c.c msg[1].len = 8; msg 210 drivers/iio/common/ms_sensors/ms_sensors_i2c.c ret = i2c_transfer(client->adapter, msg, 2); msg 231 drivers/iio/common/ms_sensors/ms_sensors_i2c.c msg[1].len = 6; msg 233 drivers/iio/common/ms_sensors/ms_sensors_i2c.c ret = i2c_transfer(client->adapter, msg, 2); msg 78 drivers/iio/common/ssp_sensors/ssp_spi.c struct ssp_msg *msg; msg 80 drivers/iio/common/ssp_sensors/ssp_spi.c msg = kzalloc(sizeof(*msg), GFP_KERNEL); msg 81 drivers/iio/common/ssp_sensors/ssp_spi.c if (!msg) msg 89 drivers/iio/common/ssp_sensors/ssp_spi.c msg->buffer = kzalloc(SSP_HEADER_SIZE_ALIGNED + len, msg 91 drivers/iio/common/ssp_sensors/ssp_spi.c if (!msg->buffer) { msg 92 drivers/iio/common/ssp_sensors/ssp_spi.c kfree(msg); msg 96 drivers/iio/common/ssp_sensors/ssp_spi.c msg->length = len; msg 97 drivers/iio/common/ssp_sensors/ssp_spi.c msg->options = opt; msg 99 drivers/iio/common/ssp_sensors/ssp_spi.c memcpy(msg->buffer, &h, SSP_HEADER_SIZE); msg 101 drivers/iio/common/ssp_sensors/ssp_spi.c return msg; msg 177 drivers/iio/common/ssp_sensors/ssp_spi.c static int ssp_do_transfer(struct ssp_data *data, struct ssp_msg *msg, msg 185 drivers/iio/common/ssp_sensors/ssp_spi.c const bool use_no_irq = msg->length == 0; msg 190 drivers/iio/common/ssp_sensors/ssp_spi.c msg->done = done; msg 198 drivers/iio/common/ssp_sensors/ssp_spi.c status = spi_write(data->spi, msg->buffer, SSP_HEADER_SIZE); msg 207 drivers/iio/common/ssp_sensors/ssp_spi.c list_add_tail(&msg->list, &data->pending_list); msg 215 drivers/iio/common/ssp_sensors/ssp_spi.c list_del(&msg->list); msg 228 drivers/iio/common/ssp_sensors/ssp_spi.c list_del(&msg->list); msg 244 drivers/iio/common/ssp_sensors/ssp_spi.c struct ssp_msg *msg) msg 246 drivers/iio/common/ssp_sensors/ssp_spi.c return ssp_do_transfer(data, msg, NULL, 0); msg 249 drivers/iio/common/ssp_sensors/ssp_spi.c static int ssp_spi_sync(struct ssp_data *data, struct ssp_msg *msg, msg 254 drivers/iio/common/ssp_sensors/ssp_spi.c if (WARN_ON(!msg->length)) msg 257 drivers/iio/common/ssp_sensors/ssp_spi.c return ssp_do_transfer(data, msg, &done, timeout); msg 332 drivers/iio/common/ssp_sensors/ssp_spi.c struct ssp_msg *msg, *n; msg 358 drivers/iio/common/ssp_sensors/ssp_spi.c list_for_each_entry_safe(msg, n, &data->pending_list, list) { msg 359 drivers/iio/common/ssp_sensors/ssp_spi.c if (msg->options == msg_options) { msg 360 drivers/iio/common/ssp_sensors/ssp_spi.c list_del(&msg->list); msg 393 drivers/iio/common/ssp_sensors/ssp_spi.c &msg->buffer[SSP_HEADER_SIZE_ALIGNED], msg 394 drivers/iio/common/ssp_sensors/ssp_spi.c msg->length); msg 398 drivers/iio/common/ssp_sensors/ssp_spi.c &msg->buffer[SSP_HEADER_SIZE_ALIGNED], msg 399 drivers/iio/common/ssp_sensors/ssp_spi.c msg->length); msg 401 drivers/iio/common/ssp_sensors/ssp_spi.c msg->options = msg 403 drivers/iio/common/ssp_sensors/ssp_spi.c msg->length = 1; msg 405 drivers/iio/common/ssp_sensors/ssp_spi.c list_add_tail(&msg->list, &data->pending_list); msg 410 drivers/iio/common/ssp_sensors/ssp_spi.c if (msg->done) msg 411 drivers/iio/common/ssp_sensors/ssp_spi.c if (!completion_done(msg->done)) msg 412 drivers/iio/common/ssp_sensors/ssp_spi.c complete(msg->done); msg 443 drivers/iio/common/ssp_sensors/ssp_spi.c struct ssp_msg *msg, *n; msg 446 drivers/iio/common/ssp_sensors/ssp_spi.c list_for_each_entry_safe(msg, n, &data->pending_list, list) { msg 447 drivers/iio/common/ssp_sensors/ssp_spi.c list_del(&msg->list); msg 449 drivers/iio/common/ssp_sensors/ssp_spi.c if (msg->done) msg 450 drivers/iio/common/ssp_sensors/ssp_spi.c if (!completion_done(msg->done)) msg 451 drivers/iio/common/ssp_sensors/ssp_spi.c complete(msg->done); msg 459 drivers/iio/common/ssp_sensors/ssp_spi.c struct ssp_msg *msg; msg 461 drivers/iio/common/ssp_sensors/ssp_spi.c msg = ssp_create_msg(command, 0, SSP_AP2HUB_WRITE, arg); msg 462 drivers/iio/common/ssp_sensors/ssp_spi.c if (!msg) msg 467 drivers/iio/common/ssp_sensors/ssp_spi.c ret = ssp_spi_sync_command(data, msg); msg 468 drivers/iio/common/ssp_sensors/ssp_spi.c ssp_clean_msg(msg); msg 477 drivers/iio/common/ssp_sensors/ssp_spi.c struct ssp_msg *msg; msg 490 drivers/iio/common/ssp_sensors/ssp_spi.c msg = ssp_create_msg(inst, length + 2, SSP_AP2HUB_WRITE, 0); msg 491 drivers/iio/common/ssp_sensors/ssp_spi.c if (!msg) msg 494 drivers/iio/common/ssp_sensors/ssp_spi.c ssp_fill_buffer(msg, 0, &sensor_type, 1); msg 495 drivers/iio/common/ssp_sensors/ssp_spi.c ssp_fill_buffer(msg, 1, send_buf, length); msg 500 drivers/iio/common/ssp_sensors/ssp_spi.c ret = ssp_spi_sync(data, msg, 1000); msg 501 drivers/iio/common/ssp_sensors/ssp_spi.c ssp_clean_msg(msg); msg 510 drivers/iio/common/ssp_sensors/ssp_spi.c struct ssp_msg *msg; msg 512 drivers/iio/common/ssp_sensors/ssp_spi.c msg = ssp_create_msg(SSP_MSG2SSP_AP_WHOAMI, 1, SSP_AP2HUB_READ, 0); msg 513 drivers/iio/common/ssp_sensors/ssp_spi.c if (!msg) msg 516 drivers/iio/common/ssp_sensors/ssp_spi.c ret = ssp_spi_sync(data, msg, 1000); msg 518 drivers/iio/common/ssp_sensors/ssp_spi.c buffer = SSP_GET_BUFFER_AT_INDEX(msg, 0); msg 520 drivers/iio/common/ssp_sensors/ssp_spi.c ssp_clean_msg(msg); msg 528 drivers/iio/common/ssp_sensors/ssp_spi.c struct ssp_msg *msg; msg 530 drivers/iio/common/ssp_sensors/ssp_spi.c msg = ssp_create_msg(SSP_MSG2SSP_AP_SET_MAGNETIC_STATIC_MATRIX, msg 533 drivers/iio/common/ssp_sensors/ssp_spi.c if (!msg) msg 536 drivers/iio/common/ssp_sensors/ssp_spi.c ssp_fill_buffer(msg, 0, data->sensorhub_info->mag_table, msg 539 drivers/iio/common/ssp_sensors/ssp_spi.c ret = ssp_spi_sync(data, msg, 1000); msg 540 drivers/iio/common/ssp_sensors/ssp_spi.c ssp_clean_msg(msg); msg 551 drivers/iio/common/ssp_sensors/ssp_spi.c struct ssp_msg *msg = ssp_create_msg(SSP_MSG2SSP_AP_SENSOR_SCANNING, 4, msg 553 drivers/iio/common/ssp_sensors/ssp_spi.c if (!msg) msg 556 drivers/iio/common/ssp_sensors/ssp_spi.c ret = ssp_spi_sync(data, msg, 1000); msg 562 drivers/iio/common/ssp_sensors/ssp_spi.c ssp_get_buffer(msg, 0, &result, 4); msg 568 drivers/iio/common/ssp_sensors/ssp_spi.c ssp_clean_msg(msg); msg 577 drivers/iio/common/ssp_sensors/ssp_spi.c struct ssp_msg *msg = ssp_create_msg(SSP_MSG2SSP_AP_FIRMWARE_REV, 4, msg 579 drivers/iio/common/ssp_sensors/ssp_spi.c if (!msg) msg 582 drivers/iio/common/ssp_sensors/ssp_spi.c ret = ssp_spi_sync(data, msg, 1000); msg 589 drivers/iio/common/ssp_sensors/ssp_spi.c ssp_get_buffer(msg, 0, &result, 4); msg 593 drivers/iio/common/ssp_sensors/ssp_spi.c ssp_clean_msg(msg); msg 27 drivers/iio/dac/ad5624r_spi.c u8 msg[3]; msg 38 drivers/iio/dac/ad5624r_spi.c msg[0] = data >> 16; msg 39 drivers/iio/dac/ad5624r_spi.c msg[1] = data >> 8; msg 40 drivers/iio/dac/ad5624r_spi.c msg[2] = data; msg 42 drivers/iio/dac/ad5624r_spi.c return spi_write(spi, msg, 3); msg 18 drivers/iio/dac/ad5696-i2c.c struct i2c_msg msg[2] = { msg 38 drivers/iio/dac/ad5696-i2c.c ret = i2c_transfer(i2c->adapter, msg, 2); msg 66 drivers/iio/dac/ltc2632.c u8 msg[3]; msg 76 drivers/iio/dac/ltc2632.c msg[0] = data >> 16; msg 77 drivers/iio/dac/ltc2632.c msg[1] = data >> 8; msg 78 drivers/iio/dac/ltc2632.c msg[2] = data; msg 80 drivers/iio/dac/ltc2632.c return spi_write(spi, msg, sizeof(msg)); msg 26 drivers/iio/gyro/itg3200_buffer.c struct i2c_msg msg[2] = { msg 41 drivers/iio/gyro/itg3200_buffer.c return i2c_transfer(i2c->adapter, msg, 2); msg 61 drivers/iio/gyro/itg3200_core.c struct i2c_msg msg[2] = { msg 77 drivers/iio/gyro/itg3200_core.c ret = i2c_transfer(client->adapter, msg, 2); msg 34 drivers/iio/imu/adis.c struct spi_message msg; msg 75 drivers/iio/imu/adis.c spi_message_init(&msg); msg 80 drivers/iio/imu/adis.c spi_message_add_tail(&xfers[0], &msg); msg 106 drivers/iio/imu/adis.c spi_message_add_tail(&xfers[i], &msg); msg 108 drivers/iio/imu/adis.c ret = spi_sync(adis->spi, &msg); msg 133 drivers/iio/imu/adis.c struct spi_message msg; msg 170 drivers/iio/imu/adis.c spi_message_init(&msg); msg 175 drivers/iio/imu/adis.c spi_message_add_tail(&xfers[0], &msg); msg 182 drivers/iio/imu/adis.c spi_message_add_tail(&xfers[1], &msg); msg 187 drivers/iio/imu/adis.c spi_message_add_tail(&xfers[2], &msg); msg 188 drivers/iio/imu/adis.c spi_message_add_tail(&xfers[3], &msg); msg 195 drivers/iio/imu/adis.c ret = spi_sync(adis->spi, &msg); msg 664 drivers/iio/imu/adis16400.c ret = spi_sync(adis->spi, &adis->msg); msg 55 drivers/iio/imu/adis_buffer.c spi_message_init(&adis->msg); msg 56 drivers/iio/imu/adis_buffer.c spi_message_add_tail(&adis->xfer[0], &adis->msg); msg 57 drivers/iio/imu/adis_buffer.c spi_message_add_tail(&adis->xfer[1], &adis->msg); msg 93 drivers/iio/imu/adis_buffer.c spi_message_init(&adis->msg); msg 105 drivers/iio/imu/adis_buffer.c spi_message_add_tail(&adis->xfer[j], &adis->msg); msg 140 drivers/iio/imu/adis_buffer.c ret = spi_sync(adis->spi, &adis->msg); msg 48 drivers/iio/potentiometer/max5481.c u8 msg[3] ____cacheline_aligned; msg 68 drivers/iio/potentiometer/max5481.c data->msg[0] = cmd; msg 72 drivers/iio/potentiometer/max5481.c data->msg[1] = val >> 2; msg 73 drivers/iio/potentiometer/max5481.c data->msg[2] = (val & 0x3) << 6; msg 74 drivers/iio/potentiometer/max5481.c return spi_write(spi, data->msg, 3); msg 78 drivers/iio/potentiometer/max5481.c return spi_write(spi, data->msg, 1); msg 67 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c struct i2c_msg msg[2]; msg 70 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c msg[0].addr = client->addr; msg 71 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c msg[0].flags = client->flags | I2C_M_STOP; msg 72 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c msg[0].len = 1; msg 73 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c msg[0].buf = (char *) ® msg 75 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c msg[1].addr = client->addr; msg 76 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c msg[1].flags = client->flags | I2C_M_RD; msg 77 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c msg[1].len = len; msg 78 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c msg[1].buf = (char *) val; msg 80 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c ret = i2c_transfer(client->adapter, msg, 2); msg 271 drivers/infiniband/core/cm.c struct ib_mad_send_buf *msg; msg 316 drivers/infiniband/core/cm.c struct ib_mad_send_buf **msg) msg 370 drivers/infiniband/core/cm.c *msg = m; msg 388 drivers/infiniband/core/cm.c struct ib_mad_send_buf *msg) msg 397 drivers/infiniband/core/cm.c msg->ah = ah; msg 401 drivers/infiniband/core/cm.c static void cm_free_msg(struct ib_mad_send_buf *msg) msg 403 drivers/infiniband/core/cm.c if (msg->ah) msg 404 drivers/infiniband/core/cm.c rdma_destroy_ah(msg->ah, 0); msg 405 drivers/infiniband/core/cm.c if (msg->context[0]) msg 406 drivers/infiniband/core/cm.c cm_deref_id(msg->context[0]); msg 407 drivers/infiniband/core/cm.c ib_free_send_mad(msg); msg 412 drivers/infiniband/core/cm.c struct ib_mad_send_buf **msg) msg 427 drivers/infiniband/core/cm.c *msg = m; msg 1032 drivers/infiniband/core/cm.c ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); msg 1046 drivers/infiniband/core/cm.c ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); msg 1066 drivers/infiniband/core/cm.c ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); msg 1082 drivers/infiniband/core/cm.c ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); msg 1458 drivers/infiniband/core/cm.c ret = cm_alloc_msg(cm_id_priv, &cm_id_priv->msg); msg 1462 drivers/infiniband/core/cm.c req_msg = (struct cm_req_msg *) cm_id_priv->msg->mad; msg 1465 drivers/infiniband/core/cm.c cm_id_priv->msg->timeout_ms = cm_id_priv->timeout_ms; msg 1466 drivers/infiniband/core/cm.c cm_id_priv->msg->context[1] = (void *) (unsigned long) IB_CM_REQ_SENT; msg 1472 drivers/infiniband/core/cm.c ret = ib_post_send_mad(cm_id_priv->msg, NULL); msg 1482 drivers/infiniband/core/cm.c error2: cm_free_msg(cm_id_priv->msg); msg 1494 drivers/infiniband/core/cm.c struct ib_mad_send_buf *msg = NULL; msg 1498 drivers/infiniband/core/cm.c ret = cm_alloc_response_msg(port, mad_recv_wc, &msg); msg 1504 drivers/infiniband/core/cm.c rej_msg = (struct cm_rej_msg *) msg->mad; msg 1517 drivers/infiniband/core/cm.c ret = ib_post_send_mad(msg, NULL); msg 1519 drivers/infiniband/core/cm.c cm_free_msg(msg); msg 1800 drivers/infiniband/core/cm.c struct ib_mad_send_buf *msg = NULL; msg 1810 drivers/infiniband/core/cm.c ret = cm_alloc_response_msg(work->port, work->mad_recv_wc, &msg); msg 1817 drivers/infiniband/core/cm.c cm_format_mra((struct cm_mra_msg *) msg->mad, cm_id_priv, msg 1823 drivers/infiniband/core/cm.c cm_format_rej((struct cm_rej_msg *) msg->mad, cm_id_priv, msg 1831 drivers/infiniband/core/cm.c ret = ib_post_send_mad(msg, NULL); msg 1837 drivers/infiniband/core/cm.c free: cm_free_msg(msg); msg 2094 drivers/infiniband/core/cm.c struct ib_mad_send_buf *msg; msg 2113 drivers/infiniband/core/cm.c ret = cm_alloc_msg(cm_id_priv, &msg); msg 2117 drivers/infiniband/core/cm.c rep_msg = (struct cm_rep_msg *) msg->mad; msg 2119 drivers/infiniband/core/cm.c msg->timeout_ms = cm_id_priv->timeout_ms; msg 2120 drivers/infiniband/core/cm.c msg->context[1] = (void *) (unsigned long) IB_CM_REP_SENT; msg 2122 drivers/infiniband/core/cm.c ret = ib_post_send_mad(msg, NULL); msg 2125 drivers/infiniband/core/cm.c cm_free_msg(msg); msg 2130 drivers/infiniband/core/cm.c cm_id_priv->msg = msg; msg 2159 drivers/infiniband/core/cm.c struct ib_mad_send_buf *msg; msg 2181 drivers/infiniband/core/cm.c ret = cm_alloc_msg(cm_id_priv, &msg); msg 2185 drivers/infiniband/core/cm.c cm_format_rtu((struct cm_rtu_msg *) msg->mad, cm_id_priv, msg 2188 drivers/infiniband/core/cm.c ret = ib_post_send_mad(msg, NULL); msg 2191 drivers/infiniband/core/cm.c cm_free_msg(msg); msg 2232 drivers/infiniband/core/cm.c struct ib_mad_send_buf *msg = NULL; msg 2243 drivers/infiniband/core/cm.c ret = cm_alloc_response_msg(work->port, work->mad_recv_wc, &msg); msg 2249 drivers/infiniband/core/cm.c cm_format_rtu((struct cm_rtu_msg *) msg->mad, cm_id_priv, msg 2253 drivers/infiniband/core/cm.c cm_format_mra((struct cm_mra_msg *) msg->mad, cm_id_priv, msg 2261 drivers/infiniband/core/cm.c ret = ib_post_send_mad(msg, NULL); msg 2267 drivers/infiniband/core/cm.c free: cm_free_msg(msg); msg 2366 drivers/infiniband/core/cm.c ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); msg 2399 drivers/infiniband/core/cm.c ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); msg 2439 drivers/infiniband/core/cm.c ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); msg 2475 drivers/infiniband/core/cm.c struct ib_mad_send_buf *msg; msg 2493 drivers/infiniband/core/cm.c ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); msg 2495 drivers/infiniband/core/cm.c ret = cm_alloc_msg(cm_id_priv, &msg); msg 2501 drivers/infiniband/core/cm.c cm_format_dreq((struct cm_dreq_msg *) msg->mad, cm_id_priv, msg 2503 drivers/infiniband/core/cm.c msg->timeout_ms = cm_id_priv->timeout_ms; msg 2504 drivers/infiniband/core/cm.c msg->context[1] = (void *) (unsigned long) IB_CM_DREQ_SENT; msg 2506 drivers/infiniband/core/cm.c ret = ib_post_send_mad(msg, NULL); msg 2510 drivers/infiniband/core/cm.c cm_free_msg(msg); msg 2515 drivers/infiniband/core/cm.c cm_id_priv->msg = msg; msg 2539 drivers/infiniband/core/cm.c struct ib_mad_send_buf *msg; msg 2564 drivers/infiniband/core/cm.c ret = cm_alloc_msg(cm_id_priv, &msg); msg 2568 drivers/infiniband/core/cm.c cm_format_drep((struct cm_drep_msg *) msg->mad, cm_id_priv, msg 2571 drivers/infiniband/core/cm.c ret = ib_post_send_mad(msg, NULL); msg 2574 drivers/infiniband/core/cm.c cm_free_msg(msg); msg 2586 drivers/infiniband/core/cm.c struct ib_mad_send_buf *msg = NULL; msg 2591 drivers/infiniband/core/cm.c ret = cm_alloc_response_msg(port, mad_recv_wc, &msg); msg 2596 drivers/infiniband/core/cm.c drep_msg = (struct cm_drep_msg *) msg->mad; msg 2602 drivers/infiniband/core/cm.c ret = ib_post_send_mad(msg, NULL); msg 2604 drivers/infiniband/core/cm.c cm_free_msg(msg); msg 2613 drivers/infiniband/core/cm.c struct ib_mad_send_buf *msg = NULL; msg 2638 drivers/infiniband/core/cm.c ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); msg 2643 drivers/infiniband/core/cm.c ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); msg 2650 drivers/infiniband/core/cm.c msg = cm_alloc_response_msg_no_ah(work->port, work->mad_recv_wc); msg 2651 drivers/infiniband/core/cm.c if (IS_ERR(msg)) msg 2654 drivers/infiniband/core/cm.c cm_format_drep((struct cm_drep_msg *) msg->mad, cm_id_priv, msg 2659 drivers/infiniband/core/cm.c if (cm_create_response_msg_ah(work->port, work->mad_recv_wc, msg) || msg 2660 drivers/infiniband/core/cm.c ib_post_send_mad(msg, NULL)) msg 2661 drivers/infiniband/core/cm.c cm_free_msg(msg); msg 2713 drivers/infiniband/core/cm.c ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); msg 2737 drivers/infiniband/core/cm.c struct ib_mad_send_buf *msg; msg 2755 drivers/infiniband/core/cm.c ret = cm_alloc_msg(cm_id_priv, &msg); msg 2757 drivers/infiniband/core/cm.c cm_format_rej((struct cm_rej_msg *) msg->mad, msg 2765 drivers/infiniband/core/cm.c ret = cm_alloc_msg(cm_id_priv, &msg); msg 2767 drivers/infiniband/core/cm.c cm_format_rej((struct cm_rej_msg *) msg->mad, msg 2783 drivers/infiniband/core/cm.c ret = ib_post_send_mad(msg, NULL); msg 2785 drivers/infiniband/core/cm.c cm_free_msg(msg); msg 2857 drivers/infiniband/core/cm.c ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); msg 2867 drivers/infiniband/core/cm.c ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); msg 2878 drivers/infiniband/core/cm.c cm_id_priv->msg); msg 2913 drivers/infiniband/core/cm.c struct ib_mad_send_buf *msg; msg 2959 drivers/infiniband/core/cm.c ret = cm_alloc_msg(cm_id_priv, &msg); msg 2963 drivers/infiniband/core/cm.c cm_format_mra((struct cm_mra_msg *) msg->mad, cm_id_priv, msg 2966 drivers/infiniband/core/cm.c ret = ib_post_send_mad(msg, NULL); msg 2984 drivers/infiniband/core/cm.c cm_free_msg(msg); msg 3025 drivers/infiniband/core/cm.c cm_id_priv->msg, timeout)) msg 3032 drivers/infiniband/core/cm.c cm_id_priv->msg, timeout)) msg 3040 drivers/infiniband/core/cm.c cm_id_priv->msg, timeout)) { msg 3061 drivers/infiniband/core/cm.c cm_id_priv->msg->context[1] = (void *) (unsigned long) msg 3129 drivers/infiniband/core/cm.c struct ib_mad_send_buf *msg; msg 3153 drivers/infiniband/core/cm.c ret = cm_alloc_msg(cm_id_priv, &msg); msg 3157 drivers/infiniband/core/cm.c cm_format_lap((struct cm_lap_msg *) msg->mad, cm_id_priv, msg 3159 drivers/infiniband/core/cm.c msg->timeout_ms = cm_id_priv->timeout_ms; msg 3160 drivers/infiniband/core/cm.c msg->context[1] = (void *) (unsigned long) IB_CM_ESTABLISHED; msg 3162 drivers/infiniband/core/cm.c ret = ib_post_send_mad(msg, NULL); msg 3165 drivers/infiniband/core/cm.c cm_free_msg(msg); msg 3170 drivers/infiniband/core/cm.c cm_id_priv->msg = msg; msg 3221 drivers/infiniband/core/cm.c struct ib_mad_send_buf *msg = NULL; msg 3259 drivers/infiniband/core/cm.c msg = cm_alloc_response_msg_no_ah(work->port, work->mad_recv_wc); msg 3260 drivers/infiniband/core/cm.c if (IS_ERR(msg)) msg 3263 drivers/infiniband/core/cm.c cm_format_mra((struct cm_mra_msg *) msg->mad, cm_id_priv, msg 3270 drivers/infiniband/core/cm.c if (cm_create_response_msg_ah(work->port, work->mad_recv_wc, msg) || msg 3271 drivers/infiniband/core/cm.c ib_post_send_mad(msg, NULL)) msg 3272 drivers/infiniband/core/cm.c cm_free_msg(msg); msg 3341 drivers/infiniband/core/cm.c struct ib_mad_send_buf *msg; msg 3358 drivers/infiniband/core/cm.c ret = cm_alloc_msg(cm_id_priv, &msg); msg 3362 drivers/infiniband/core/cm.c cm_format_apr((struct cm_apr_msg *) msg->mad, cm_id_priv, status, msg 3364 drivers/infiniband/core/cm.c ret = ib_post_send_mad(msg, NULL); msg 3367 drivers/infiniband/core/cm.c cm_free_msg(msg); msg 3409 drivers/infiniband/core/cm.c ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); msg 3410 drivers/infiniband/core/cm.c cm_id_priv->msg = NULL; msg 3484 drivers/infiniband/core/cm.c struct ib_mad_send_buf *msg; msg 3503 drivers/infiniband/core/cm.c ret = cm_alloc_msg(cm_id_priv, &msg); msg 3507 drivers/infiniband/core/cm.c cm_format_sidr_req((struct cm_sidr_req_msg *) msg->mad, cm_id_priv, msg 3509 drivers/infiniband/core/cm.c msg->timeout_ms = cm_id_priv->timeout_ms; msg 3510 drivers/infiniband/core/cm.c msg->context[1] = (void *) (unsigned long) IB_CM_SIDR_REQ_SENT; msg 3514 drivers/infiniband/core/cm.c ret = ib_post_send_mad(msg, NULL); msg 3520 drivers/infiniband/core/cm.c cm_free_msg(msg); msg 3524 drivers/infiniband/core/cm.c cm_id_priv->msg = msg; msg 3637 drivers/infiniband/core/cm.c struct ib_mad_send_buf *msg; msg 3653 drivers/infiniband/core/cm.c ret = cm_alloc_msg(cm_id_priv, &msg); msg 3657 drivers/infiniband/core/cm.c cm_format_sidr_rep((struct cm_sidr_rep_msg *) msg->mad, cm_id_priv, msg 3659 drivers/infiniband/core/cm.c ret = ib_post_send_mad(msg, NULL); msg 3662 drivers/infiniband/core/cm.c cm_free_msg(msg); msg 3716 drivers/infiniband/core/cm.c ib_cancel_mad(cm_id_priv->av.port->mad_agent, cm_id_priv->msg); msg 3727 drivers/infiniband/core/cm.c static void cm_process_send_error(struct ib_mad_send_buf *msg, msg 3736 drivers/infiniband/core/cm.c cm_id_priv = msg->context[0]; msg 3740 drivers/infiniband/core/cm.c state = (enum ib_cm_state) (unsigned long) msg->context[1]; msg 3741 drivers/infiniband/core/cm.c if (msg != cm_id_priv->msg || state != cm_id_priv->id.state) msg 3773 drivers/infiniband/core/cm.c cm_free_msg(msg); msg 3779 drivers/infiniband/core/cm.c cm_free_msg(msg); msg 3785 drivers/infiniband/core/cm.c struct ib_mad_send_buf *msg = mad_send_wc->send_buf; msg 3791 drivers/infiniband/core/cm.c msg->mad)->attr_id) - CM_ATTR_ID_OFFSET; msg 3798 drivers/infiniband/core/cm.c if (!msg->context[0] && (attr_index != CM_REJ_COUNTER)) msg 3799 drivers/infiniband/core/cm.c msg->retries = 1; msg 3801 drivers/infiniband/core/cm.c atomic_long_add(1 + msg->retries, msg 3803 drivers/infiniband/core/cm.c if (msg->retries) msg 3804 drivers/infiniband/core/cm.c atomic_long_add(msg->retries, msg 3811 drivers/infiniband/core/cm.c cm_free_msg(msg); msg 3814 drivers/infiniband/core/cm.c if (msg->context[0] && msg->context[1]) msg 3815 drivers/infiniband/core/cm.c cm_process_send_error(msg, mad_send_wc->status); msg 3817 drivers/infiniband/core/cm.c cm_free_msg(msg); msg 433 drivers/infiniband/core/cm_msgs.h static inline void cm_mra_set_msg_mraed(struct cm_mra_msg *mra_msg, u8 msg) msg 435 drivers/infiniband/core/cm_msgs.h mra_msg->offset8 = (u8) ((mra_msg->offset8 & 0x3F) | (msg << 6)); msg 471 drivers/infiniband/core/cm_msgs.h static inline void cm_rej_set_msg_rejected(struct cm_rej_msg *rej_msg, u8 msg) msg 473 drivers/infiniband/core/cm_msgs.h rej_msg->offset8 = (u8) ((rej_msg->offset8 & 0x3F) | (msg << 6)); msg 533 drivers/infiniband/core/iwpm_util.c void iwpm_print_sockaddr(struct sockaddr_storage *sockaddr, char *msg) msg 542 drivers/infiniband/core/iwpm_util.c msg, &sockaddr_v4->sin_addr, msg 549 drivers/infiniband/core/iwpm_util.c msg, &sockaddr_v6->sin6_addr, msg 269 drivers/infiniband/core/iwpm_util.h void iwpm_print_sockaddr(struct sockaddr_storage *sockaddr, char *msg); msg 115 drivers/infiniband/core/mad_rmpp.c static void format_ack(struct ib_mad_send_buf *msg, msg 119 drivers/infiniband/core/mad_rmpp.c struct ib_rmpp_mad *ack = msg->mad; msg 122 drivers/infiniband/core/mad_rmpp.c memcpy(ack, &data->mad_hdr, msg->hdr_len); msg 138 drivers/infiniband/core/mad_rmpp.c struct ib_mad_send_buf *msg; msg 142 drivers/infiniband/core/mad_rmpp.c msg = ib_create_send_mad(&rmpp_recv->agent->agent, recv_wc->wc->src_qp, msg 146 drivers/infiniband/core/mad_rmpp.c if (IS_ERR(msg)) msg 149 drivers/infiniband/core/mad_rmpp.c format_ack(msg, (struct ib_rmpp_mad *) recv_wc->recv_buf.mad, rmpp_recv); msg 150 drivers/infiniband/core/mad_rmpp.c msg->ah = rmpp_recv->ah; msg 151 drivers/infiniband/core/mad_rmpp.c ret = ib_post_send_mad(msg, NULL); msg 153 drivers/infiniband/core/mad_rmpp.c ib_free_send_mad(msg); msg 159 drivers/infiniband/core/mad_rmpp.c struct ib_mad_send_buf *msg; msg 169 drivers/infiniband/core/mad_rmpp.c msg = ib_create_send_mad(agent, recv_wc->wc->src_qp, msg 173 drivers/infiniband/core/mad_rmpp.c if (IS_ERR(msg)) msg 176 drivers/infiniband/core/mad_rmpp.c msg->ah = ah; msg 177 drivers/infiniband/core/mad_rmpp.c msg->context[0] = ah; msg 180 drivers/infiniband/core/mad_rmpp.c return msg; msg 186 drivers/infiniband/core/mad_rmpp.c struct ib_mad_send_buf *msg; msg 190 drivers/infiniband/core/mad_rmpp.c msg = alloc_response_msg(&agent->agent, recv_wc); msg 191 drivers/infiniband/core/mad_rmpp.c if (IS_ERR(msg)) msg 194 drivers/infiniband/core/mad_rmpp.c rmpp_mad = msg->mad; msg 195 drivers/infiniband/core/mad_rmpp.c memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len); msg 202 drivers/infiniband/core/mad_rmpp.c ret = ib_post_send_mad(msg, NULL); msg 204 drivers/infiniband/core/mad_rmpp.c rdma_destroy_ah(msg->ah, RDMA_DESTROY_AH_SLEEPABLE); msg 205 drivers/infiniband/core/mad_rmpp.c ib_free_send_mad(msg); msg 220 drivers/infiniband/core/mad_rmpp.c struct ib_mad_send_buf *msg; msg 224 drivers/infiniband/core/mad_rmpp.c msg = alloc_response_msg(&agent->agent, recv_wc); msg 225 drivers/infiniband/core/mad_rmpp.c if (IS_ERR(msg)) msg 228 drivers/infiniband/core/mad_rmpp.c rmpp_mad = msg->mad; msg 229 drivers/infiniband/core/mad_rmpp.c memcpy(rmpp_mad, recv_wc->recv_buf.mad, msg->hdr_len); msg 239 drivers/infiniband/core/mad_rmpp.c ret = ib_post_send_mad(msg, NULL); msg 241 drivers/infiniband/core/mad_rmpp.c rdma_destroy_ah(msg->ah, RDMA_DESTROY_AH_SLEEPABLE); msg 242 drivers/infiniband/core/mad_rmpp.c ib_free_send_mad(msg); msg 146 drivers/infiniband/core/nldev.c static int put_driver_name_print_type(struct sk_buff *msg, const char *name, msg 149 drivers/infiniband/core/nldev.c if (nla_put_string(msg, RDMA_NLDEV_ATTR_DRIVER_STRING, name)) msg 152 drivers/infiniband/core/nldev.c nla_put_u8(msg, RDMA_NLDEV_ATTR_DRIVER_PRINT_TYPE, print_type)) msg 158 drivers/infiniband/core/nldev.c static int _rdma_nl_put_driver_u32(struct sk_buff *msg, const char *name, msg 162 drivers/infiniband/core/nldev.c if (put_driver_name_print_type(msg, name, print_type)) msg 164 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_DRIVER_U32, value)) msg 170 drivers/infiniband/core/nldev.c static int _rdma_nl_put_driver_u64(struct sk_buff *msg, const char *name, msg 174 drivers/infiniband/core/nldev.c if (put_driver_name_print_type(msg, name, print_type)) msg 176 drivers/infiniband/core/nldev.c if (nla_put_u64_64bit(msg, RDMA_NLDEV_ATTR_DRIVER_U64, value, msg 183 drivers/infiniband/core/nldev.c int rdma_nl_put_driver_u32(struct sk_buff *msg, const char *name, u32 value) msg 185 drivers/infiniband/core/nldev.c return _rdma_nl_put_driver_u32(msg, name, RDMA_NLDEV_PRINT_TYPE_UNSPEC, msg 190 drivers/infiniband/core/nldev.c int rdma_nl_put_driver_u32_hex(struct sk_buff *msg, const char *name, msg 193 drivers/infiniband/core/nldev.c return _rdma_nl_put_driver_u32(msg, name, RDMA_NLDEV_PRINT_TYPE_HEX, msg 198 drivers/infiniband/core/nldev.c int rdma_nl_put_driver_u64(struct sk_buff *msg, const char *name, u64 value) msg 200 drivers/infiniband/core/nldev.c return _rdma_nl_put_driver_u64(msg, name, RDMA_NLDEV_PRINT_TYPE_UNSPEC, msg 205 drivers/infiniband/core/nldev.c int rdma_nl_put_driver_u64_hex(struct sk_buff *msg, const char *name, u64 value) msg 207 drivers/infiniband/core/nldev.c return _rdma_nl_put_driver_u64(msg, name, RDMA_NLDEV_PRINT_TYPE_HEX, msg 212 drivers/infiniband/core/nldev.c static int fill_nldev_handle(struct sk_buff *msg, struct ib_device *device) msg 214 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_DEV_INDEX, device->index)) msg 216 drivers/infiniband/core/nldev.c if (nla_put_string(msg, RDMA_NLDEV_ATTR_DEV_NAME, msg 223 drivers/infiniband/core/nldev.c static int fill_dev_info(struct sk_buff *msg, struct ib_device *device) msg 229 drivers/infiniband/core/nldev.c if (fill_nldev_handle(msg, device)) msg 232 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_PORT_INDEX, rdma_end_port(device))) msg 236 drivers/infiniband/core/nldev.c if (nla_put_u64_64bit(msg, RDMA_NLDEV_ATTR_CAP_FLAGS, msg 243 drivers/infiniband/core/nldev.c if (strlen(fw) && nla_put_string(msg, RDMA_NLDEV_ATTR_FW_VERSION, fw)) msg 246 drivers/infiniband/core/nldev.c if (nla_put_u64_64bit(msg, RDMA_NLDEV_ATTR_NODE_GUID, msg 250 drivers/infiniband/core/nldev.c if (nla_put_u64_64bit(msg, RDMA_NLDEV_ATTR_SYS_IMAGE_GUID, msg 254 drivers/infiniband/core/nldev.c if (nla_put_u8(msg, RDMA_NLDEV_ATTR_DEV_NODE_TYPE, device->node_type)) msg 256 drivers/infiniband/core/nldev.c if (nla_put_u8(msg, RDMA_NLDEV_ATTR_DEV_DIM, device->use_cq_dim)) msg 266 drivers/infiniband/core/nldev.c ret = nla_put_string(msg, RDMA_NLDEV_ATTR_DEV_PROTOCOL, "opa"); msg 268 drivers/infiniband/core/nldev.c ret = nla_put_string(msg, RDMA_NLDEV_ATTR_DEV_PROTOCOL, "ib"); msg 270 drivers/infiniband/core/nldev.c ret = nla_put_string(msg, RDMA_NLDEV_ATTR_DEV_PROTOCOL, "iw"); msg 272 drivers/infiniband/core/nldev.c ret = nla_put_string(msg, RDMA_NLDEV_ATTR_DEV_PROTOCOL, "roce"); msg 274 drivers/infiniband/core/nldev.c ret = nla_put_string(msg, RDMA_NLDEV_ATTR_DEV_PROTOCOL, msg 279 drivers/infiniband/core/nldev.c static int fill_port_info(struct sk_buff *msg, msg 288 drivers/infiniband/core/nldev.c if (fill_nldev_handle(msg, device)) msg 291 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_PORT_INDEX, port)) msg 303 drivers/infiniband/core/nldev.c if (nla_put_u64_64bit(msg, RDMA_NLDEV_ATTR_CAP_FLAGS, msg 306 drivers/infiniband/core/nldev.c if (nla_put_u64_64bit(msg, RDMA_NLDEV_ATTR_SUBNET_PREFIX, msg 309 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_LID, attr.lid)) msg 311 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_SM_LID, attr.sm_lid)) msg 313 drivers/infiniband/core/nldev.c if (nla_put_u8(msg, RDMA_NLDEV_ATTR_LMC, attr.lmc)) msg 316 drivers/infiniband/core/nldev.c if (nla_put_u8(msg, RDMA_NLDEV_ATTR_PORT_STATE, attr.state)) msg 318 drivers/infiniband/core/nldev.c if (nla_put_u8(msg, RDMA_NLDEV_ATTR_PORT_PHYS_STATE, attr.phys_state)) msg 323 drivers/infiniband/core/nldev.c ret = nla_put_u32(msg, msg 327 drivers/infiniband/core/nldev.c ret = nla_put_string(msg, msg 337 drivers/infiniband/core/nldev.c static int fill_res_info_entry(struct sk_buff *msg, msg 342 drivers/infiniband/core/nldev.c entry_attr = nla_nest_start_noflag(msg, msg 347 drivers/infiniband/core/nldev.c if (nla_put_string(msg, RDMA_NLDEV_ATTR_RES_SUMMARY_ENTRY_NAME, name)) msg 349 drivers/infiniband/core/nldev.c if (nla_put_u64_64bit(msg, RDMA_NLDEV_ATTR_RES_SUMMARY_ENTRY_CURR, curr, msg 353 drivers/infiniband/core/nldev.c nla_nest_end(msg, entry_attr); msg 357 drivers/infiniband/core/nldev.c nla_nest_cancel(msg, entry_attr); msg 361 drivers/infiniband/core/nldev.c static int fill_res_info(struct sk_buff *msg, struct ib_device *device) msg 375 drivers/infiniband/core/nldev.c if (fill_nldev_handle(msg, device)) msg 378 drivers/infiniband/core/nldev.c table_attr = nla_nest_start_noflag(msg, RDMA_NLDEV_ATTR_RES_SUMMARY); msg 386 drivers/infiniband/core/nldev.c ret = fill_res_info_entry(msg, names[i], curr); msg 391 drivers/infiniband/core/nldev.c nla_nest_end(msg, table_attr); msg 395 drivers/infiniband/core/nldev.c nla_nest_cancel(msg, table_attr); msg 399 drivers/infiniband/core/nldev.c static int fill_res_name_pid(struct sk_buff *msg, msg 407 drivers/infiniband/core/nldev.c if (nla_put_string(msg, RDMA_NLDEV_ATTR_RES_KERN_NAME, msg 411 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_PID, msg 418 drivers/infiniband/core/nldev.c static bool fill_res_entry(struct ib_device *dev, struct sk_buff *msg, msg 423 drivers/infiniband/core/nldev.c return dev->ops.fill_res_entry(msg, res); msg 426 drivers/infiniband/core/nldev.c static int fill_res_qp_entry(struct sk_buff *msg, bool has_cap_net_admin, msg 444 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_PORT_INDEX, qp_attr.port_num)) msg 447 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_LQPN, qp->qp_num)) msg 450 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_RQPN, msg 453 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_RQ_PSN, msg 458 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_SQ_PSN, qp_attr.sq_psn)) msg 463 drivers/infiniband/core/nldev.c if (nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_PATH_MIG_STATE, msg 467 drivers/infiniband/core/nldev.c if (nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_TYPE, qp->qp_type)) msg 469 drivers/infiniband/core/nldev.c if (nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_STATE, qp_attr.qp_state)) msg 473 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_PDN, qp->pd->res.id)) msg 476 drivers/infiniband/core/nldev.c if (fill_res_name_pid(msg, res)) msg 479 drivers/infiniband/core/nldev.c if (fill_res_entry(dev, msg, res)) msg 487 drivers/infiniband/core/nldev.c static int fill_res_cm_id_entry(struct sk_buff *msg, bool has_cap_net_admin, msg 499 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_PORT_INDEX, cm_id->port_num)) msg 503 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_LQPN, id_priv->qp_num)) msg 505 drivers/infiniband/core/nldev.c if (nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_TYPE, cm_id->qp_type)) msg 509 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_PS, cm_id->ps)) msg 512 drivers/infiniband/core/nldev.c if (nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_STATE, id_priv->state)) msg 516 drivers/infiniband/core/nldev.c nla_put(msg, RDMA_NLDEV_ATTR_RES_SRC_ADDR, msg 521 drivers/infiniband/core/nldev.c nla_put(msg, RDMA_NLDEV_ATTR_RES_DST_ADDR, msg 526 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_CM_IDN, res->id)) msg 529 drivers/infiniband/core/nldev.c if (fill_res_name_pid(msg, res)) msg 532 drivers/infiniband/core/nldev.c if (fill_res_entry(dev, msg, res)) msg 540 drivers/infiniband/core/nldev.c static int fill_res_cq_entry(struct sk_buff *msg, bool has_cap_net_admin, msg 546 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_CQE, cq->cqe)) msg 548 drivers/infiniband/core/nldev.c if (nla_put_u64_64bit(msg, RDMA_NLDEV_ATTR_RES_USECNT, msg 554 drivers/infiniband/core/nldev.c nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_POLL_CTX, cq->poll_ctx)) msg 557 drivers/infiniband/core/nldev.c if (nla_put_u8(msg, RDMA_NLDEV_ATTR_DEV_DIM, (cq->dim != NULL))) msg 560 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_CQN, res->id)) msg 563 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_CTXN, msg 567 drivers/infiniband/core/nldev.c if (fill_res_name_pid(msg, res)) msg 570 drivers/infiniband/core/nldev.c if (fill_res_entry(dev, msg, res)) msg 578 drivers/infiniband/core/nldev.c static int fill_res_mr_entry(struct sk_buff *msg, bool has_cap_net_admin, msg 585 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_RKEY, mr->rkey)) msg 587 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_LKEY, mr->lkey)) msg 591 drivers/infiniband/core/nldev.c if (nla_put_u64_64bit(msg, RDMA_NLDEV_ATTR_RES_MRLEN, mr->length, msg 595 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_MRN, res->id)) msg 599 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_PDN, mr->pd->res.id)) msg 602 drivers/infiniband/core/nldev.c if (fill_res_name_pid(msg, res)) msg 605 drivers/infiniband/core/nldev.c if (fill_res_entry(dev, msg, res)) msg 613 drivers/infiniband/core/nldev.c static int fill_res_pd_entry(struct sk_buff *msg, bool has_cap_net_admin, msg 620 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_LOCAL_DMA_LKEY, msg 624 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_UNSAFE_GLOBAL_RKEY, msg 628 drivers/infiniband/core/nldev.c if (nla_put_u64_64bit(msg, RDMA_NLDEV_ATTR_RES_USECNT, msg 632 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_PDN, res->id)) msg 636 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_CTXN, msg 640 drivers/infiniband/core/nldev.c if (fill_res_name_pid(msg, res)) msg 643 drivers/infiniband/core/nldev.c if (fill_res_entry(dev, msg, res)) msg 651 drivers/infiniband/core/nldev.c static int fill_stat_counter_mode(struct sk_buff *msg, msg 656 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_STAT_MODE, m->mode)) msg 661 drivers/infiniband/core/nldev.c nla_put_u8(msg, RDMA_NLDEV_ATTR_RES_TYPE, m->param.qp_type)) msg 667 drivers/infiniband/core/nldev.c static int fill_stat_counter_qp_entry(struct sk_buff *msg, u32 qpn) msg 671 drivers/infiniband/core/nldev.c entry_attr = nla_nest_start(msg, RDMA_NLDEV_ATTR_RES_QP_ENTRY); msg 675 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_LQPN, qpn)) msg 678 drivers/infiniband/core/nldev.c nla_nest_end(msg, entry_attr); msg 682 drivers/infiniband/core/nldev.c nla_nest_cancel(msg, entry_attr); msg 686 drivers/infiniband/core/nldev.c static int fill_stat_counter_qps(struct sk_buff *msg, msg 696 drivers/infiniband/core/nldev.c table_attr = nla_nest_start(msg, RDMA_NLDEV_ATTR_RES_QP); msg 711 drivers/infiniband/core/nldev.c ret = fill_stat_counter_qp_entry(msg, qp->qp_num); msg 717 drivers/infiniband/core/nldev.c nla_nest_end(msg, table_attr); msg 722 drivers/infiniband/core/nldev.c nla_nest_cancel(msg, table_attr); msg 726 drivers/infiniband/core/nldev.c static int fill_stat_hwcounter_entry(struct sk_buff *msg, msg 731 drivers/infiniband/core/nldev.c entry_attr = nla_nest_start(msg, RDMA_NLDEV_ATTR_STAT_HWCOUNTER_ENTRY); msg 735 drivers/infiniband/core/nldev.c if (nla_put_string(msg, RDMA_NLDEV_ATTR_STAT_HWCOUNTER_ENTRY_NAME, msg 738 drivers/infiniband/core/nldev.c if (nla_put_u64_64bit(msg, RDMA_NLDEV_ATTR_STAT_HWCOUNTER_ENTRY_VALUE, msg 742 drivers/infiniband/core/nldev.c nla_nest_end(msg, entry_attr); msg 746 drivers/infiniband/core/nldev.c nla_nest_cancel(msg, entry_attr); msg 750 drivers/infiniband/core/nldev.c static int fill_stat_counter_hwcounters(struct sk_buff *msg, msg 757 drivers/infiniband/core/nldev.c table_attr = nla_nest_start(msg, RDMA_NLDEV_ATTR_STAT_HWCOUNTERS); msg 762 drivers/infiniband/core/nldev.c if (fill_stat_hwcounter_entry(msg, st->names[i], st->value[i])) msg 765 drivers/infiniband/core/nldev.c nla_nest_end(msg, table_attr); msg 769 drivers/infiniband/core/nldev.c nla_nest_cancel(msg, table_attr); msg 773 drivers/infiniband/core/nldev.c static int fill_res_counter_entry(struct sk_buff *msg, bool has_cap_net_admin, msg 786 drivers/infiniband/core/nldev.c if (nla_put_u32(msg, RDMA_NLDEV_ATTR_PORT_INDEX, counter->port) || msg 787 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_STAT_COUNTER_ID, counter->id) || msg 788 drivers/infiniband/core/nldev.c fill_res_name_pid(msg, &counter->res) || msg 789 drivers/infiniband/core/nldev.c fill_stat_counter_mode(msg, counter) || msg 790 drivers/infiniband/core/nldev.c fill_stat_counter_qps(msg, counter) || msg 791 drivers/infiniband/core/nldev.c fill_stat_counter_hwcounters(msg, counter)) msg 802 drivers/infiniband/core/nldev.c struct sk_buff *msg; msg 817 drivers/infiniband/core/nldev.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 818 drivers/infiniband/core/nldev.c if (!msg) { msg 823 drivers/infiniband/core/nldev.c nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, msg 827 drivers/infiniband/core/nldev.c err = fill_dev_info(msg, device); msg 831 drivers/infiniband/core/nldev.c nlmsg_end(msg, nlh); msg 834 drivers/infiniband/core/nldev.c return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid); msg 837 drivers/infiniband/core/nldev.c nlmsg_free(msg); msg 938 drivers/infiniband/core/nldev.c struct sk_buff *msg; msg 961 drivers/infiniband/core/nldev.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 962 drivers/infiniband/core/nldev.c if (!msg) { msg 967 drivers/infiniband/core/nldev.c nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, msg 971 drivers/infiniband/core/nldev.c err = fill_port_info(msg, device, port, sock_net(skb->sk)); msg 975 drivers/infiniband/core/nldev.c nlmsg_end(msg, nlh); msg 978 drivers/infiniband/core/nldev.c return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid); msg 981 drivers/infiniband/core/nldev.c nlmsg_free(msg); msg 1050 drivers/infiniband/core/nldev.c struct sk_buff *msg; msg 1064 drivers/infiniband/core/nldev.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 1065 drivers/infiniband/core/nldev.c if (!msg) { msg 1070 drivers/infiniband/core/nldev.c nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, msg 1074 drivers/infiniband/core/nldev.c ret = fill_res_info(msg, device); msg 1078 drivers/infiniband/core/nldev.c nlmsg_end(msg, nlh); msg 1080 drivers/infiniband/core/nldev.c return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid); msg 1083 drivers/infiniband/core/nldev.c nlmsg_free(msg); msg 1124 drivers/infiniband/core/nldev.c int (*fill_res_func)(struct sk_buff *msg, bool has_cap_net_admin, msg 1195 drivers/infiniband/core/nldev.c struct sk_buff *msg; msg 1234 drivers/infiniband/core/nldev.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 1235 drivers/infiniband/core/nldev.c if (!msg) { msg 1240 drivers/infiniband/core/nldev.c nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, msg 1244 drivers/infiniband/core/nldev.c if (fill_nldev_handle(msg, device)) { msg 1250 drivers/infiniband/core/nldev.c ret = fe->fill_res_func(msg, has_cap_net_admin, res, port); msg 1255 drivers/infiniband/core/nldev.c nlmsg_end(msg, nlh); msg 1257 drivers/infiniband/core/nldev.c return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid); msg 1260 drivers/infiniband/core/nldev.c nlmsg_free(msg); msg 1537 drivers/infiniband/core/nldev.c struct sk_buff *msg; msg 1568 drivers/infiniband/core/nldev.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 1569 drivers/infiniband/core/nldev.c if (!msg) { msg 1573 drivers/infiniband/core/nldev.c nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, msg 1578 drivers/infiniband/core/nldev.c data.nl_msg = msg; msg 1583 drivers/infiniband/core/nldev.c err = nla_put_u64_64bit(msg, RDMA_NLDEV_ATTR_CHARDEV, msg 1588 drivers/infiniband/core/nldev.c err = nla_put_u64_64bit(msg, RDMA_NLDEV_ATTR_CHARDEV_ABI, data.abi, msg 1592 drivers/infiniband/core/nldev.c if (nla_put_string(msg, RDMA_NLDEV_ATTR_CHARDEV_NAME, msg 1598 drivers/infiniband/core/nldev.c nlmsg_end(msg, nlh); msg 1602 drivers/infiniband/core/nldev.c return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid); msg 1607 drivers/infiniband/core/nldev.c nlmsg_free(msg); msg 1618 drivers/infiniband/core/nldev.c struct sk_buff *msg; msg 1626 drivers/infiniband/core/nldev.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 1627 drivers/infiniband/core/nldev.c if (!msg) msg 1630 drivers/infiniband/core/nldev.c nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, msg 1635 drivers/infiniband/core/nldev.c err = nla_put_u8(msg, RDMA_NLDEV_SYS_ATTR_NETNS_MODE, msg 1638 drivers/infiniband/core/nldev.c nlmsg_free(msg); msg 1641 drivers/infiniband/core/nldev.c nlmsg_end(msg, nlh); msg 1642 drivers/infiniband/core/nldev.c return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid); msg 1672 drivers/infiniband/core/nldev.c struct sk_buff *msg; msg 1697 drivers/infiniband/core/nldev.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 1698 drivers/infiniband/core/nldev.c if (!msg) { msg 1702 drivers/infiniband/core/nldev.c nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, msg 1731 drivers/infiniband/core/nldev.c if (fill_nldev_handle(msg, device) || msg 1732 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_PORT_INDEX, port) || msg 1733 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_STAT_COUNTER_ID, cntn) || msg 1734 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_LQPN, qpn)) { msg 1740 drivers/infiniband/core/nldev.c nlmsg_end(msg, nlh); msg 1742 drivers/infiniband/core/nldev.c return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid); msg 1747 drivers/infiniband/core/nldev.c nlmsg_free(msg); msg 1758 drivers/infiniband/core/nldev.c struct sk_buff *msg; msg 1784 drivers/infiniband/core/nldev.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 1785 drivers/infiniband/core/nldev.c if (!msg) { msg 1789 drivers/infiniband/core/nldev.c nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, msg 1796 drivers/infiniband/core/nldev.c if (fill_nldev_handle(msg, device) || msg 1797 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_PORT_INDEX, port) || msg 1798 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_STAT_COUNTER_ID, cntn) || msg 1799 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_RES_LQPN, qpn)) { msg 1808 drivers/infiniband/core/nldev.c nlmsg_end(msg, nlh); msg 1810 drivers/infiniband/core/nldev.c return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid); msg 1813 drivers/infiniband/core/nldev.c nlmsg_free(msg); msg 1828 drivers/infiniband/core/nldev.c struct sk_buff *msg; msg 1851 drivers/infiniband/core/nldev.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 1852 drivers/infiniband/core/nldev.c if (!msg) { msg 1857 drivers/infiniband/core/nldev.c nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, msg 1862 drivers/infiniband/core/nldev.c if (fill_nldev_handle(msg, device) || msg 1863 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_PORT_INDEX, port)) { msg 1881 drivers/infiniband/core/nldev.c table_attr = nla_nest_start(msg, RDMA_NLDEV_ATTR_STAT_HWCOUNTERS); msg 1889 drivers/infiniband/core/nldev.c if (fill_stat_hwcounter_entry(msg, stats->names[i], v)) { msg 1894 drivers/infiniband/core/nldev.c nla_nest_end(msg, table_attr); msg 1897 drivers/infiniband/core/nldev.c nlmsg_end(msg, nlh); msg 1899 drivers/infiniband/core/nldev.c return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid); msg 1902 drivers/infiniband/core/nldev.c nla_nest_cancel(msg, table_attr); msg 1906 drivers/infiniband/core/nldev.c nlmsg_free(msg); msg 1919 drivers/infiniband/core/nldev.c struct sk_buff *msg; msg 1941 drivers/infiniband/core/nldev.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 1942 drivers/infiniband/core/nldev.c if (!msg) { msg 1947 drivers/infiniband/core/nldev.c nlh = nlmsg_put(msg, NETLINK_CB(skb).portid, nlh->nlmsg_seq, msg 1956 drivers/infiniband/core/nldev.c if (fill_nldev_handle(msg, device) || msg 1957 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_PORT_INDEX, port) || msg 1958 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_STAT_MODE, mode)) { msg 1964 drivers/infiniband/core/nldev.c nla_put_u32(msg, RDMA_NLDEV_ATTR_STAT_AUTO_MODE_MASK, mask)) { msg 1969 drivers/infiniband/core/nldev.c nlmsg_end(msg, nlh); msg 1971 drivers/infiniband/core/nldev.c return rdma_nl_unicast(sock_net(skb->sk), msg, NETLINK_CB(skb).portid); msg 1974 drivers/infiniband/core/nldev.c nlmsg_free(msg); msg 127 drivers/infiniband/core/user_mad.c struct ib_mad_send_buf *msg; msg 216 drivers/infiniband/core/user_mad.c rdma_destroy_ah(packet->msg->ah, RDMA_DESTROY_AH_SLEEPABLE); msg 217 drivers/infiniband/core/user_mad.c ib_free_send_mad(packet->msg); msg 418 drivers/infiniband/core/user_mad.c static int copy_rmpp_mad(struct ib_mad_send_buf *msg, const char __user *buf) msg 423 drivers/infiniband/core/user_mad.c if ((msg->hdr_len > IB_MGMT_RMPP_HDR) && msg 424 drivers/infiniband/core/user_mad.c copy_from_user(msg->mad + IB_MGMT_RMPP_HDR, buf + IB_MGMT_RMPP_HDR, msg 425 drivers/infiniband/core/user_mad.c msg->hdr_len - IB_MGMT_RMPP_HDR)) msg 429 drivers/infiniband/core/user_mad.c for (seg = 1, left = msg->data_len, buf += msg->hdr_len; left > 0; msg 430 drivers/infiniband/core/user_mad.c seg++, left -= msg->seg_size, buf += msg->seg_size) { msg 431 drivers/infiniband/core/user_mad.c if (copy_from_user(ib_get_rmpp_segment(msg, seg), buf, msg 432 drivers/infiniband/core/user_mad.c min(left, msg->seg_size))) msg 568 drivers/infiniband/core/user_mad.c packet->msg = ib_create_send_mad(agent, msg 573 drivers/infiniband/core/user_mad.c if (IS_ERR(packet->msg)) { msg 574 drivers/infiniband/core/user_mad.c ret = PTR_ERR(packet->msg); msg 578 drivers/infiniband/core/user_mad.c packet->msg->ah = ah; msg 579 drivers/infiniband/core/user_mad.c packet->msg->timeout_ms = packet->mad.hdr.timeout_ms; msg 580 drivers/infiniband/core/user_mad.c packet->msg->retries = packet->mad.hdr.retries; msg 581 drivers/infiniband/core/user_mad.c packet->msg->context[0] = packet; msg 584 drivers/infiniband/core/user_mad.c memcpy(packet->msg->mad, packet->mad.data, IB_MGMT_MAD_HDR); msg 587 drivers/infiniband/core/user_mad.c if (copy_from_user(packet->msg->mad + copy_offset, msg 594 drivers/infiniband/core/user_mad.c ret = copy_rmpp_mad(packet->msg, buf); msg 604 drivers/infiniband/core/user_mad.c if (!ib_response_mad(packet->msg->mad)) { msg 605 drivers/infiniband/core/user_mad.c tid = &((struct ib_mad_hdr *) packet->msg->mad)->tid; msg 629 drivers/infiniband/core/user_mad.c ret = ib_post_send_mad(packet->msg, NULL); msg 639 drivers/infiniband/core/user_mad.c ib_free_send_mad(packet->msg); msg 361 drivers/infiniband/hw/bnxt_re/main.c static void bnxt_re_fill_fw_msg(struct bnxt_fw_msg *fw_msg, void *msg, msg 365 drivers/infiniband/hw/bnxt_re/main.c fw_msg->msg = msg; msg 1056 drivers/infiniband/hw/cxgb4/iw_cxgb4.h typedef int c4iw_restrack_func(struct sk_buff *msg, msg 460 drivers/infiniband/hw/cxgb4/provider.c static int fill_res_entry(struct sk_buff *msg, struct rdma_restrack_entry *res) msg 464 drivers/infiniband/hw/cxgb4/provider.c c4iw_restrack_funcs[res->type](msg, res) : 0; msg 39 drivers/infiniband/hw/cxgb4/restrack.c static int fill_sq(struct sk_buff *msg, struct t4_wq *wq) msg 42 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "sqid", wq->sq.qid)) msg 44 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "flushed", wq->flushed)) msg 46 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "memsize", wq->sq.memsize)) msg 48 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "cidx", wq->sq.cidx)) msg 50 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "pidx", wq->sq.pidx)) msg 52 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "wq_pidx", wq->sq.wq_pidx)) msg 54 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "flush_cidx", wq->sq.flush_cidx)) msg 56 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "in_use", wq->sq.in_use)) msg 58 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "size", wq->sq.size)) msg 60 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32_hex(msg, "flags", wq->sq.flags)) msg 67 drivers/infiniband/hw/cxgb4/restrack.c static int fill_rq(struct sk_buff *msg, struct t4_wq *wq) msg 70 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "rqid", wq->rq.qid)) msg 72 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "memsize", wq->rq.memsize)) msg 74 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "cidx", wq->rq.cidx)) msg 76 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "pidx", wq->rq.pidx)) msg 78 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "wq_pidx", wq->rq.wq_pidx)) msg 80 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "msn", wq->rq.msn)) msg 82 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32_hex(msg, "rqt_hwaddr", wq->rq.rqt_hwaddr)) msg 84 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "rqt_size", wq->rq.rqt_size)) msg 86 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "in_use", wq->rq.in_use)) msg 88 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "size", wq->rq.size)) msg 95 drivers/infiniband/hw/cxgb4/restrack.c static int fill_swsqe(struct sk_buff *msg, struct t4_sq *sq, u16 idx, msg 98 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "idx", idx)) msg 100 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "opcode", sqe->opcode)) msg 102 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "complete", sqe->complete)) msg 105 drivers/infiniband/hw/cxgb4/restrack.c rdma_nl_put_driver_u32(msg, "cqe_status", CQE_STATUS(&sqe->cqe))) msg 107 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "signaled", sqe->signaled)) msg 109 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "flushed", sqe->flushed)) msg 119 drivers/infiniband/hw/cxgb4/restrack.c static int fill_swsqes(struct sk_buff *msg, struct t4_sq *sq, msg 125 drivers/infiniband/hw/cxgb4/restrack.c if (fill_swsqe(msg, sq, first_idx, first_sqe)) msg 129 drivers/infiniband/hw/cxgb4/restrack.c if (fill_swsqe(msg, sq, last_idx, last_sqe)) msg 137 drivers/infiniband/hw/cxgb4/restrack.c static int fill_res_qp_entry(struct sk_buff *msg, msg 152 drivers/infiniband/hw/cxgb4/restrack.c table_attr = nla_nest_start_noflag(msg, RDMA_NLDEV_ATTR_DRIVER); msg 175 drivers/infiniband/hw/cxgb4/restrack.c if (fill_sq(msg, &wq)) msg 178 drivers/infiniband/hw/cxgb4/restrack.c if (fill_swsqes(msg, &wq.sq, first_sq_idx, fsp, last_sq_idx, lsp)) msg 181 drivers/infiniband/hw/cxgb4/restrack.c if (fill_rq(msg, &wq)) msg 184 drivers/infiniband/hw/cxgb4/restrack.c nla_nest_end(msg, table_attr); msg 188 drivers/infiniband/hw/cxgb4/restrack.c nla_nest_cancel(msg, table_attr); msg 198 drivers/infiniband/hw/cxgb4/restrack.c static int fill_res_ep_entry(struct sk_buff *msg, msg 219 drivers/infiniband/hw/cxgb4/restrack.c table_attr = nla_nest_start_noflag(msg, RDMA_NLDEV_ATTR_DRIVER); msg 237 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "state", epcp->state)) msg 239 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u64_hex(msg, "flags", epcp->flags)) msg 241 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u64_hex(msg, "history", epcp->history)) msg 245 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "stid", listen_ep->stid)) msg 247 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "backlog", listen_ep->backlog)) msg 250 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "hwtid", ep->hwtid)) msg 252 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "ord", ep->ord)) msg 254 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "ird", ep->ird)) msg 256 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "emss", ep->emss)) msg 259 drivers/infiniband/hw/cxgb4/restrack.c if (!ep->parent_ep && rdma_nl_put_driver_u32(msg, "atid", msg 263 drivers/infiniband/hw/cxgb4/restrack.c nla_nest_end(msg, table_attr); msg 268 drivers/infiniband/hw/cxgb4/restrack.c nla_nest_cancel(msg, table_attr); msg 274 drivers/infiniband/hw/cxgb4/restrack.c static int fill_cq(struct sk_buff *msg, struct t4_cq *cq) msg 276 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "cqid", cq->cqid)) msg 278 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "memsize", cq->memsize)) msg 280 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "size", cq->size)) msg 282 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "cidx", cq->cidx)) msg 284 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "cidx_inc", cq->cidx_inc)) msg 286 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "sw_cidx", cq->sw_cidx)) msg 288 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "sw_pidx", cq->sw_pidx)) msg 290 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "sw_in_use", cq->sw_in_use)) msg 292 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "vector", cq->vector)) msg 294 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "gen", cq->gen)) msg 296 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "error", cq->error)) msg 298 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u64_hex(msg, "bits_type_ts", msg 301 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u64_hex(msg, "flags", cq->flags)) msg 310 drivers/infiniband/hw/cxgb4/restrack.c static int fill_cqe(struct sk_buff *msg, struct t4_cqe *cqe, u16 idx, msg 313 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, qstr, idx)) msg 315 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32_hex(msg, "header", msg 318 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "len", be32_to_cpu(cqe->len))) msg 320 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32_hex(msg, "wrid_hi", msg 323 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32_hex(msg, "wrid_low", msg 326 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u64_hex(msg, "bits_type_ts", msg 336 drivers/infiniband/hw/cxgb4/restrack.c static int fill_hwcqes(struct sk_buff *msg, struct t4_cq *cq, msg 342 drivers/infiniband/hw/cxgb4/restrack.c if (fill_cqe(msg, cqes, idx, "hwcq_idx")) msg 345 drivers/infiniband/hw/cxgb4/restrack.c if (fill_cqe(msg, cqes + 1, idx, "hwcq_idx")) msg 353 drivers/infiniband/hw/cxgb4/restrack.c static int fill_swcqes(struct sk_buff *msg, struct t4_cq *cq, msg 362 drivers/infiniband/hw/cxgb4/restrack.c if (fill_cqe(msg, cqes, idx, "swcq_idx")) msg 367 drivers/infiniband/hw/cxgb4/restrack.c if (fill_cqe(msg, cqes + 1, idx, "swcq_idx")) msg 375 drivers/infiniband/hw/cxgb4/restrack.c static int fill_res_cq_entry(struct sk_buff *msg, msg 390 drivers/infiniband/hw/cxgb4/restrack.c table_attr = nla_nest_start_noflag(msg, RDMA_NLDEV_ATTR_DRIVER); msg 418 drivers/infiniband/hw/cxgb4/restrack.c if (fill_cq(msg, &cq)) msg 421 drivers/infiniband/hw/cxgb4/restrack.c if (fill_swcqes(msg, &cq, swcqes)) msg 424 drivers/infiniband/hw/cxgb4/restrack.c if (fill_hwcqes(msg, &cq, hwcqes)) msg 427 drivers/infiniband/hw/cxgb4/restrack.c nla_nest_end(msg, table_attr); msg 431 drivers/infiniband/hw/cxgb4/restrack.c nla_nest_cancel(msg, table_attr); msg 436 drivers/infiniband/hw/cxgb4/restrack.c static int fill_res_mr_entry(struct sk_buff *msg, msg 450 drivers/infiniband/hw/cxgb4/restrack.c table_attr = nla_nest_start_noflag(msg, RDMA_NLDEV_ATTR_DRIVER); msg 461 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32_hex(msg, "idx", stag >> 8)) msg 463 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "valid", msg 466 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32_hex(msg, "key", stag & 0xff)) msg 468 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "state", msg 471 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "pdid", msg 474 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32_hex(msg, "perm", msg 477 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32(msg, "ps", msg 480 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u64(msg, "len", msg 483 drivers/infiniband/hw/cxgb4/restrack.c if (rdma_nl_put_driver_u32_hex(msg, "pbl_addr", msg 487 drivers/infiniband/hw/cxgb4/restrack.c nla_nest_end(msg, table_attr); msg 491 drivers/infiniband/hw/cxgb4/restrack.c nla_nest_cancel(msg, table_attr); msg 6683 drivers/infiniband/hw/hfi1/chip.c u64 msg; msg 6690 drivers/infiniband/hw/hfi1/chip.c ret = read_idle_sma(dd, &msg); msg 6693 drivers/infiniband/hw/hfi1/chip.c dd_dev_info(dd, "%s: SMA message 0x%llx\n", __func__, msg); msg 6697 drivers/infiniband/hw/hfi1/chip.c switch (msg & 0xff) { msg 6729 drivers/infiniband/hw/hfi1/chip.c __func__, msg); msg 2247 drivers/infiniband/hw/hfi1/hfi.h const char *msg; msg 2254 drivers/infiniband/hw/hfi1/hfi.h size_t nhwerrmsgs, char *msg, size_t lmsg); msg 98 drivers/infiniband/hw/hfi1/intr.c static void format_hwmsg(char *msg, size_t msgl, const char *hwmsg) msg 100 drivers/infiniband/hw/hfi1/intr.c strlcat(msg, "[", msgl); msg 101 drivers/infiniband/hw/hfi1/intr.c strlcat(msg, hwmsg, msgl); msg 102 drivers/infiniband/hw/hfi1/intr.c strlcat(msg, "]", msgl); msg 114 drivers/infiniband/hw/hfi1/intr.c size_t nhwerrmsgs, char *msg, size_t msgl) msg 120 drivers/infiniband/hw/hfi1/intr.c format_hwmsg(msg, msgl, hwerrmsgs[i].msg); msg 70 drivers/infiniband/hw/hfi1/trace_dbg.h __dynamic_array(char, msg, MAX_MSG_LEN) msg 74 drivers/infiniband/hw/hfi1/trace_dbg.h (__get_dynamic_array(msg), msg 81 drivers/infiniband/hw/hfi1/trace_dbg.h __get_str(msg)) msg 352 drivers/infiniband/hw/hfi1/trace_tid.h TP_PROTO(struct rvt_qp *qp, const char *msg, u64 more), msg 353 drivers/infiniband/hw/hfi1/trace_tid.h TP_ARGS(qp, msg, more), msg 356 drivers/infiniband/hw/hfi1/trace_tid.h __string(msg, msg) msg 361 drivers/infiniband/hw/hfi1/trace_tid.h __assign_str(msg, msg); msg 367 drivers/infiniband/hw/hfi1/trace_tid.h __get_str(msg), msg 374 drivers/infiniband/hw/hfi1/trace_tid.h TP_PROTO(struct rvt_qp *qp, const char *msg, u64 more), msg 375 drivers/infiniband/hw/hfi1/trace_tid.h TP_ARGS(qp, msg, more) msg 380 drivers/infiniband/hw/hfi1/trace_tid.h TP_PROTO(struct rvt_qp *qp, const char *msg, u64 more), msg 381 drivers/infiniband/hw/hfi1/trace_tid.h TP_ARGS(qp, msg, more) msg 386 drivers/infiniband/hw/hfi1/trace_tid.h TP_PROTO(struct rvt_qp *qp, const char *msg, u64 more), msg 387 drivers/infiniband/hw/hfi1/trace_tid.h TP_ARGS(qp, msg, more) msg 392 drivers/infiniband/hw/hfi1/trace_tid.h TP_PROTO(struct rvt_qp *qp, const char *msg, u64 more), msg 393 drivers/infiniband/hw/hfi1/trace_tid.h TP_ARGS(qp, msg, more) msg 398 drivers/infiniband/hw/hfi1/trace_tid.h TP_PROTO(struct rvt_qp *qp, const char *msg, u64 more), msg 399 drivers/infiniband/hw/hfi1/trace_tid.h TP_ARGS(qp, msg, more) msg 404 drivers/infiniband/hw/hfi1/trace_tid.h TP_PROTO(struct rvt_qp *qp, const char *msg, u64 more), msg 405 drivers/infiniband/hw/hfi1/trace_tid.h TP_ARGS(qp, msg, more) msg 410 drivers/infiniband/hw/hfi1/trace_tid.h TP_PROTO(struct rvt_qp *qp, const char *msg, u64 more), msg 411 drivers/infiniband/hw/hfi1/trace_tid.h TP_ARGS(qp, msg, more) msg 638 drivers/infiniband/hw/hfi1/trace_tid.h TP_PROTO(struct rvt_qp *qp, const char *msg, u32 index, u32 base, msg 640 drivers/infiniband/hw/hfi1/trace_tid.h TP_ARGS(qp, msg, index, base, map, used, cnt), msg 644 drivers/infiniband/hw/hfi1/trace_tid.h __string(msg, msg) msg 654 drivers/infiniband/hw/hfi1/trace_tid.h __assign_str(msg, msg); msg 665 drivers/infiniband/hw/hfi1/trace_tid.h __get_str(msg), msg 676 drivers/infiniband/hw/hfi1/trace_tid.h TP_PROTO(struct rvt_qp *qp, const char *msg, u32 index, u32 base, msg 678 drivers/infiniband/hw/hfi1/trace_tid.h TP_ARGS(qp, msg, index, base, map, used, cnt) msg 1283 drivers/infiniband/hw/hns/hns_roce_device.h int hns_roce_fill_res_entry(struct sk_buff *msg, msg 12 drivers/infiniband/hw/hns/hns_roce_restrack.c static int hns_roce_fill_cq(struct sk_buff *msg, msg 15 drivers/infiniband/hw/hns/hns_roce_restrack.c if (rdma_nl_put_driver_u32(msg, "state", msg 21 drivers/infiniband/hw/hns/hns_roce_restrack.c if (rdma_nl_put_driver_u32(msg, "ceqn", msg 27 drivers/infiniband/hw/hns/hns_roce_restrack.c if (rdma_nl_put_driver_u32(msg, "cqn", msg 33 drivers/infiniband/hw/hns/hns_roce_restrack.c if (rdma_nl_put_driver_u32(msg, "hopnum", msg 40 drivers/infiniband/hw/hns/hns_roce_restrack.c msg, "pi", msg 47 drivers/infiniband/hw/hns/hns_roce_restrack.c msg, "ci", msg 54 drivers/infiniband/hw/hns/hns_roce_restrack.c msg, "coalesce", msg 61 drivers/infiniband/hw/hns/hns_roce_restrack.c msg, "period", msg 67 drivers/infiniband/hw/hns/hns_roce_restrack.c if (rdma_nl_put_driver_u32(msg, "cnt", msg 79 drivers/infiniband/hw/hns/hns_roce_restrack.c static int hns_roce_fill_res_cq_entry(struct sk_buff *msg, msg 100 drivers/infiniband/hw/hns/hns_roce_restrack.c table_attr = nla_nest_start(msg, RDMA_NLDEV_ATTR_DRIVER); msg 106 drivers/infiniband/hw/hns/hns_roce_restrack.c if (hns_roce_fill_cq(msg, context)) { msg 111 drivers/infiniband/hw/hns/hns_roce_restrack.c nla_nest_end(msg, table_attr); msg 117 drivers/infiniband/hw/hns/hns_roce_restrack.c nla_nest_cancel(msg, table_attr); msg 123 drivers/infiniband/hw/hns/hns_roce_restrack.c int hns_roce_fill_res_entry(struct sk_buff *msg, msg 127 drivers/infiniband/hw/hns/hns_roce_restrack.c return hns_roce_fill_res_cq_entry(msg, res); msg 88 drivers/infiniband/hw/i40iw/i40iw_main.c u32 vf_id, u8 *msg, u16 len); msg 1932 drivers/infiniband/hw/i40iw/i40iw_main.c u8 *msg, msg 1940 drivers/infiniband/hw/i40iw/i40iw_main.c if (!len || !msg) msg 1951 drivers/infiniband/hw/i40iw/i40iw_main.c ret_code = dev->vchnl_if.vchnl_recv(dev, vf_id, msg, len); msg 2005 drivers/infiniband/hw/i40iw/i40iw_main.c u8 *msg, msg 2018 drivers/infiniband/hw/i40iw/i40iw_main.c return ldev->ops->virtchnl_send(ldev, &i40iw_client, vf_id, msg, len); msg 427 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c u8 *msg, msg 430 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c struct i40iw_virtchnl_op_buf *vchnl_msg = (struct i40iw_virtchnl_op_buf *)msg; msg 440 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c if (!dev || !msg || !len) msg 563 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c u8 *msg, msg 566 drivers/infiniband/hw/i40iw/i40iw_virtchnl.c struct i40iw_virtchnl_resp_buf *vchnl_msg_resp = (struct i40iw_virtchnl_resp_buf *)msg; msg 87 drivers/infiniband/hw/i40iw/i40iw_virtchnl.h u8 *msg, msg 92 drivers/infiniband/hw/i40iw/i40iw_virtchnl.h u8 *msg, msg 78 drivers/infiniband/hw/mlx4/cm.c struct cm_sidr_generic_msg *msg = msg 80 drivers/infiniband/hw/mlx4/cm.c msg->request_id = cpu_to_be32(cm_id); msg 85 drivers/infiniband/hw/mlx4/cm.c struct cm_generic_msg *msg = (struct cm_generic_msg *)mad; msg 86 drivers/infiniband/hw/mlx4/cm.c msg->local_comm_id = cpu_to_be32(cm_id); msg 93 drivers/infiniband/hw/mlx4/cm.c struct cm_sidr_generic_msg *msg = msg 95 drivers/infiniband/hw/mlx4/cm.c return be32_to_cpu(msg->request_id); msg 100 drivers/infiniband/hw/mlx4/cm.c struct cm_generic_msg *msg = (struct cm_generic_msg *)mad; msg 101 drivers/infiniband/hw/mlx4/cm.c return be32_to_cpu(msg->local_comm_id); msg 108 drivers/infiniband/hw/mlx4/cm.c struct cm_sidr_generic_msg *msg = msg 110 drivers/infiniband/hw/mlx4/cm.c msg->request_id = cpu_to_be32(cm_id); msg 115 drivers/infiniband/hw/mlx4/cm.c struct cm_generic_msg *msg = (struct cm_generic_msg *)mad; msg 116 drivers/infiniband/hw/mlx4/cm.c msg->remote_comm_id = cpu_to_be32(cm_id); msg 123 drivers/infiniband/hw/mlx4/cm.c struct cm_sidr_generic_msg *msg = msg 125 drivers/infiniband/hw/mlx4/cm.c return be32_to_cpu(msg->request_id); msg 130 drivers/infiniband/hw/mlx4/cm.c struct cm_generic_msg *msg = (struct cm_generic_msg *)mad; msg 131 drivers/infiniband/hw/mlx4/cm.c return be32_to_cpu(msg->remote_comm_id); msg 137 drivers/infiniband/hw/mlx4/cm.c struct cm_req_msg *msg = (struct cm_req_msg *)mad; msg 139 drivers/infiniband/hw/mlx4/cm.c return msg->primary_path_sgid; msg 1505 drivers/infiniband/hw/qib/qib.h const char *msg; msg 1509 drivers/infiniband/hw/qib/qib.h #define QLOGIC_IB_HWE_MSG(a, b) { .mask = a, .msg = b } msg 1514 drivers/infiniband/hw/qib/qib.h size_t nhwerrmsgs, char *msg, size_t lmsg); msg 725 drivers/infiniband/hw/qib/qib_common.h __u32 msg:8; msg 745 drivers/infiniband/hw/qib/qib_iba6120.c static void qib_handle_6120_hwerrors(struct qib_devdata *dd, char *msg, msg 811 drivers/infiniband/hw/qib/qib_iba6120.c *msg = '\0'; msg 815 drivers/infiniband/hw/qib/qib_iba6120.c strlcat(msg, msg 824 drivers/infiniband/hw/qib/qib_iba6120.c ARRAY_SIZE(qib_6120_hwerror_msgs), msg, msgl); msg 834 drivers/infiniband/hw/qib/qib_iba6120.c strlcat(msg, bitsmsg, msgl); msg 842 drivers/infiniband/hw/qib/qib_iba6120.c strlcat(msg, bitsmsg, msgl); msg 864 drivers/infiniband/hw/qib/qib_iba6120.c qib_dev_err(dd, "%s hardware error\n", msg); msg 866 drivers/infiniband/hw/qib/qib_iba6120.c *msg = 0; /* recovered from all of them */ msg 878 drivers/infiniband/hw/qib/qib_iba6120.c "{%s}", msg); msg 999 drivers/infiniband/hw/qib/qib_iba6120.c char *msg; msg 1007 drivers/infiniband/hw/qib/qib_iba6120.c msg = dd->cspec->emsgbuf; msg 1011 drivers/infiniband/hw/qib/qib_iba6120.c qib_handle_6120_hwerrors(dd, msg, sizeof(dd->cspec->emsgbuf)); msg 1055 drivers/infiniband/hw/qib/qib_iba6120.c qib_decode_6120_err(dd, msg, sizeof(dd->cspec->emsgbuf), errs & ~mask); msg 1094 drivers/infiniband/hw/qib/qib_iba6120.c if (*msg && iserr) msg 1095 drivers/infiniband/hw/qib/qib_iba6120.c qib_dev_porterr(dd, ppd->port, "%s error\n", msg); msg 816 drivers/infiniband/hw/qib/qib_iba7220.c const char *msg; msg 849 drivers/infiniband/hw/qib/qib_iba7220.c "%s ", errs[i].msg); msg 901 drivers/infiniband/hw/qib/qib_iba7220.c char *msg; msg 905 drivers/infiniband/hw/qib/qib_iba7220.c msg = dd->cspec->sdmamsgbuf; msg 906 drivers/infiniband/hw/qib/qib_iba7220.c qib_decode_7220_sdma_errs(ppd, errs, msg, msg 1096 drivers/infiniband/hw/qib/qib_iba7220.c char *msg; msg 1104 drivers/infiniband/hw/qib/qib_iba7220.c msg = dd->cspec->emsgbuf; msg 1108 drivers/infiniband/hw/qib/qib_iba7220.c qib_7220_handle_hwerrors(dd, msg, sizeof(dd->cspec->emsgbuf)); msg 1158 drivers/infiniband/hw/qib/qib_iba7220.c qib_decode_7220_err(dd, msg, sizeof(dd->cspec->emsgbuf), errs & ~mask); msg 1203 drivers/infiniband/hw/qib/qib_iba7220.c if (*msg && iserr) msg 1204 drivers/infiniband/hw/qib/qib_iba7220.c qib_dev_porterr(dd, ppd->port, "%s error\n", msg); msg 1295 drivers/infiniband/hw/qib/qib_iba7220.c static void qib_7220_handle_hwerrors(struct qib_devdata *dd, char *msg, msg 1357 drivers/infiniband/hw/qib/qib_iba7220.c *msg = '\0'; msg 1361 drivers/infiniband/hw/qib/qib_iba7220.c strlcat(msg, msg 1370 drivers/infiniband/hw/qib/qib_iba7220.c ARRAY_SIZE(qib_7220_hwerror_msgs), msg, msgl); msg 1380 drivers/infiniband/hw/qib/qib_iba7220.c strlcat(msg, bitsmsg, msgl); msg 1391 drivers/infiniband/hw/qib/qib_iba7220.c strlcat(msg, bitsmsg, msgl); msg 1406 drivers/infiniband/hw/qib/qib_iba7220.c qib_dev_err(dd, "%s hardware error\n", msg); msg 1418 drivers/infiniband/hw/qib/qib_iba7220.c "{%s}", msg); msg 1201 drivers/infiniband/hw/qib/qib_iba7322.c .msg = #fldname , .sz = sizeof(#fldname) } msg 1203 drivers/infiniband/hw/qib/qib_iba7322.c fldname##Mask##_##port), .msg = #fldname , .sz = sizeof(#fldname) } msg 1225 drivers/infiniband/hw/qib/qib_iba7322.c .msg = #fldname, .sz = sizeof(#fldname) } msg 1227 drivers/infiniband/hw/qib/qib_iba7322.c .msg = #fldname, .sz = sizeof(#fldname) } msg 1253 drivers/infiniband/hw/qib/qib_iba7322.c {.mask = SYM_MASK(ErrMask_0, SDmaHaltErrMask), .msg = "SDmaHalted", msg 1298 drivers/infiniband/hw/qib/qib_iba7322.c .msg = #fldname, .sz = sizeof(#fldname) } msg 1303 drivers/infiniband/hw/qib/qib_iba7322.c .msg = #fldname "_P", .sz = sizeof(#fldname "_P") } msg 1308 drivers/infiniband/hw/qib/qib_iba7322.c .msg = #fldname "_P", .sz = sizeof(#fldname "_P") } msg 1316 drivers/infiniband/hw/qib/qib_iba7322.c .msg = #fldname "_C", .sz = sizeof(#fldname "_C") } msg 1320 drivers/infiniband/hw/qib/qib_iba7322.c .msg = #fldname, .sz = sizeof(#fldname) } msg 1368 drivers/infiniband/hw/qib/qib_iba7322.c static void err_decode(char *msg, size_t len, u64 errs, msg 1382 drivers/infiniband/hw/qib/qib_iba7322.c *msg++ = ','; msg 1387 drivers/infiniband/hw/qib/qib_iba7322.c memcpy(msg, msp->msg, took); msg 1389 drivers/infiniband/hw/qib/qib_iba7322.c msg += took; msg 1391 drivers/infiniband/hw/qib/qib_iba7322.c *msg = '\0'; msg 1402 drivers/infiniband/hw/qib/qib_iba7322.c took = scnprintf(msg, len, "_%d", idx); msg 1404 drivers/infiniband/hw/qib/qib_iba7322.c msg += took; msg 1411 drivers/infiniband/hw/qib/qib_iba7322.c snprintf(msg, len, "%sMORE:%llX", n ? "," : "", msg 1652 drivers/infiniband/hw/qib/qib_iba7322.c char *msg; msg 1667 drivers/infiniband/hw/qib/qib_iba7322.c msg = dd->cspec->emsgbuf; msg 1671 drivers/infiniband/hw/qib/qib_iba7322.c *msg = '\0'; msg 1672 drivers/infiniband/hw/qib/qib_iba7322.c qib_7322_handle_hwerrors(dd, msg, sizeof(dd->cspec->emsgbuf)); msg 1692 drivers/infiniband/hw/qib/qib_iba7322.c *msg = '\0'; msg 1694 drivers/infiniband/hw/qib/qib_iba7322.c err_decode(msg, sizeof(dd->cspec->emsgbuf), errs & ~mask, msg 1714 drivers/infiniband/hw/qib/qib_iba7322.c if (*msg && iserr) msg 1715 drivers/infiniband/hw/qib/qib_iba7322.c qib_dev_err(dd, "%s error\n", msg); msg 1859 drivers/infiniband/hw/qib/qib_iba7322.c char *msg; msg 1878 drivers/infiniband/hw/qib/qib_iba7322.c msg = ppd->cpspec->epmsgbuf; msg 1879 drivers/infiniband/hw/qib/qib_iba7322.c *msg = '\0'; msg 1882 drivers/infiniband/hw/qib/qib_iba7322.c err_decode(msg, sizeof(ppd->cpspec->epmsgbuf), msg 1884 drivers/infiniband/hw/qib/qib_iba7322.c if (!*msg) msg 1885 drivers/infiniband/hw/qib/qib_iba7322.c snprintf(msg, sizeof(ppd->cpspec->epmsgbuf), msg 1889 drivers/infiniband/hw/qib/qib_iba7322.c (errs & ~QIB_E_P_BITSEXTANT), msg); msg 1890 drivers/infiniband/hw/qib/qib_iba7322.c *msg = '\0'; msg 1899 drivers/infiniband/hw/qib/qib_iba7322.c err_decode(msg, sizeof(ppd->cpspec->epmsgbuf), symptom, msg 1901 drivers/infiniband/hw/qib/qib_iba7322.c *msg = '\0'; msg 1915 drivers/infiniband/hw/qib/qib_iba7322.c err_decode(msg, sizeof(ppd->cpspec->epmsgbuf), msg 1918 drivers/infiniband/hw/qib/qib_iba7322.c *msg = '\0'; msg 1931 drivers/infiniband/hw/qib/qib_iba7322.c err_decode(msg, sizeof(ppd->cpspec->epmsgbuf), errs, msg 1934 drivers/infiniband/hw/qib/qib_iba7322.c *msg = '\0'; msg 2003 drivers/infiniband/hw/qib/qib_iba7322.c if (*msg && iserr) msg 2004 drivers/infiniband/hw/qib/qib_iba7322.c qib_dev_porterr(dd, ppd->port, "%s error\n", msg); msg 2097 drivers/infiniband/hw/qib/qib_iba7322.c static void qib_7322_handle_hwerrors(struct qib_devdata *dd, char *msg, msg 2149 drivers/infiniband/hw/qib/qib_iba7322.c strlcpy(msg, msg 2157 drivers/infiniband/hw/qib/qib_iba7322.c err_decode(msg, msgl, hwerrs, qib_7322_hwerror_msgs); msg 2161 drivers/infiniband/hw/qib/qib_iba7322.c qib_dev_err(dd, "%s hardware error\n", msg); msg 2197 drivers/infiniband/hw/qib/qib_iba7322.c "{%s}", msg); msg 2941 drivers/infiniband/hw/qib/qib_iba7322.c char msg[128]; msg 2946 drivers/infiniband/hw/qib/qib_iba7322.c (unsigned long long) kills, msg); msg 47 drivers/infiniband/hw/qib/qib_intr.c static void qib_format_hwmsg(char *msg, size_t msgl, const char *hwmsg) msg 49 drivers/infiniband/hw/qib/qib_intr.c strlcat(msg, "[", msgl); msg 50 drivers/infiniband/hw/qib/qib_intr.c strlcat(msg, hwmsg, msgl); msg 51 drivers/infiniband/hw/qib/qib_intr.c strlcat(msg, "]", msgl); msg 63 drivers/infiniband/hw/qib/qib_intr.c size_t nhwerrmsgs, char *msg, size_t msgl) msg 69 drivers/infiniband/hw/qib/qib_intr.c qib_format_hwmsg(msg, msgl, hwerrmsgs[i].msg); msg 61 drivers/infiniband/sw/rdmavt/trace_rvt.h const char *msg), msg 62 drivers/infiniband/sw/rdmavt/trace_rvt.h TP_ARGS(rdi, msg), msg 65 drivers/infiniband/sw/rdmavt/trace_rvt.h __string(msg, msg) msg 69 drivers/infiniband/sw/rdmavt/trace_rvt.h __assign_str(msg, msg); msg 71 drivers/infiniband/sw/rdmavt/trace_rvt.h TP_printk("[%s]: %s", __get_str(dev), __get_str(msg)) msg 458 drivers/infiniband/sw/siw/siw_cm.c struct msghdr msg; msg 463 drivers/infiniband/sw/siw/siw_cm.c memset(&msg, 0, sizeof(msg)); msg 486 drivers/infiniband/sw/siw/siw_cm.c rv = kernel_sendmsg(s, &msg, iov, iovec_num + 1, mpa_len); msg 109 drivers/infiniband/sw/siw/siw_cm.h struct msghdr msg = { .msg_name = NULL, .msg_flags = flags }; msg 111 drivers/infiniband/sw/siw/siw_cm.h return kernel_recvmsg(sock, &msg, &iov, 1, size, flags); msg 389 drivers/infiniband/sw/siw/siw_qp.c struct msghdr msg = { .msg_flags = MSG_DONTWAIT | MSG_EOR }; msg 598 drivers/infiniband/sw/siw/siw_qp.c rv = kernel_sendmsg(s, &msg, iov, num_frags, len_terminate); msg 296 drivers/infiniband/sw/siw/siw_qp_tx.c struct msghdr msg = { .msg_flags = flags }; msg 301 drivers/infiniband/sw/siw/siw_qp_tx.c int rv = kernel_sendmsg(s, &msg, &iov, 1, msg 430 drivers/infiniband/sw/siw/siw_qp_tx.c struct msghdr msg = { .msg_flags = MSG_DONTWAIT | MSG_EOR }; msg 585 drivers/infiniband/sw/siw/siw_qp_tx.c rv = kernel_sendmsg(s, &msg, &iov[seg], 1, trl_len); msg 592 drivers/infiniband/sw/siw/siw_qp_tx.c rv = kernel_sendmsg(s, &msg, iov, seg + 1, msg 74 drivers/input/joystick/as5011.c struct i2c_msg msg = { msg 82 drivers/input/joystick/as5011.c error = i2c_transfer(client->adapter, &msg, 1); msg 18 drivers/input/joystick/iforce/iforce-packets.c void iforce_dump_packet(struct iforce *iforce, char *msg, u16 cmd, unsigned char *data) msg 21 drivers/input/joystick/iforce/iforce-packets.c __func__, msg, cmd, LO(cmd), data); msg 132 drivers/input/joystick/iforce/iforce.h void iforce_dump_packet(struct iforce *iforce, char *msg, u16 cmd, unsigned char *data); msg 541 drivers/input/keyboard/applespi.c struct spi_message *msg = &applespi->rd_m; msg 553 drivers/input/keyboard/applespi.c spi_message_init(msg); msg 554 drivers/input/keyboard/applespi.c spi_message_add_tail(dl_t, msg); msg 555 drivers/input/keyboard/applespi.c spi_message_add_tail(rd_t, msg); msg 560 drivers/input/keyboard/applespi.c struct spi_message *msg = &applespi->wr_m; msg 589 drivers/input/keyboard/applespi.c spi_message_init(msg); msg 590 drivers/input/keyboard/applespi.c spi_message_add_tail(wt_t, msg); msg 591 drivers/input/keyboard/applespi.c spi_message_add_tail(dl_t, msg); msg 592 drivers/input/keyboard/applespi.c spi_message_add_tail(wr_t, msg); msg 593 drivers/input/keyboard/applespi.c spi_message_add_tail(st_t, msg); msg 336 drivers/input/keyboard/cros_ec_keyb.c struct cros_ec_command *msg; msg 339 drivers/input/keyboard/cros_ec_keyb.c msg = kzalloc(sizeof(*msg) + max_t(size_t, result_size, msg 341 drivers/input/keyboard/cros_ec_keyb.c if (!msg) msg 344 drivers/input/keyboard/cros_ec_keyb.c msg->command = EC_CMD_MKBP_INFO; msg 345 drivers/input/keyboard/cros_ec_keyb.c msg->version = 1; msg 346 drivers/input/keyboard/cros_ec_keyb.c msg->outsize = sizeof(*params); msg 347 drivers/input/keyboard/cros_ec_keyb.c msg->insize = result_size; msg 348 drivers/input/keyboard/cros_ec_keyb.c params = (struct ec_params_mkbp_info *)msg->data; msg 352 drivers/input/keyboard/cros_ec_keyb.c ret = cros_ec_cmd_xfer(ec_dev, msg); msg 356 drivers/input/keyboard/cros_ec_keyb.c } else if (msg->result == EC_RES_INVALID_VERSION) { msg 360 drivers/input/keyboard/cros_ec_keyb.c } else if (msg->result != EC_RES_SUCCESS) { msg 362 drivers/input/keyboard/cros_ec_keyb.c (int)info_type, (int)event_type, msg->result); msg 370 drivers/input/keyboard/cros_ec_keyb.c memcpy(result, msg->data, result_size); msg 374 drivers/input/keyboard/cros_ec_keyb.c kfree(msg); msg 41 drivers/input/keyboard/ipaq-micro-keys.c static void micro_key_receive(void *data, int len, unsigned char *msg) msg 46 drivers/input/keyboard/ipaq-micro-keys.c down = 0x80 & msg[0]; msg 47 drivers/input/keyboard/ipaq-micro-keys.c key = 0x7f & msg[0]; msg 88 drivers/input/misc/atmel_captouch.c struct i2c_msg msg[2]; msg 97 drivers/input/misc/atmel_captouch.c msg[0].addr = client->addr; msg 98 drivers/input/misc/atmel_captouch.c msg[0].flags = 0; msg 99 drivers/input/misc/atmel_captouch.c msg[0].buf = capdev->xfer_buf; msg 100 drivers/input/misc/atmel_captouch.c msg[0].len = 2; msg 102 drivers/input/misc/atmel_captouch.c msg[1].addr = client->addr; msg 103 drivers/input/misc/atmel_captouch.c msg[1].flags = I2C_M_RD; msg 104 drivers/input/misc/atmel_captouch.c msg[1].buf = capdev->xfer_buf; msg 105 drivers/input/misc/atmel_captouch.c msg[1].len = len + 2; msg 107 drivers/input/misc/atmel_captouch.c err = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg)); msg 108 drivers/input/misc/atmel_captouch.c if (err != ARRAY_SIZE(msg)) msg 73 drivers/input/misc/cma3000_d0x.c #define CMA3000_READ(data, reg, msg) \ msg 74 drivers/input/misc/cma3000_d0x.c (data->bus_ops->read(data->dev, reg, msg)) msg 75 drivers/input/misc/cma3000_d0x.c #define CMA3000_SET(data, reg, val, msg) \ msg 76 drivers/input/misc/cma3000_d0x.c ((data)->bus_ops->write(data->dev, reg, val, msg)) msg 15 drivers/input/misc/cma3000_d0x_i2c.c u8 reg, u8 val, char *msg) msg 23 drivers/input/misc/cma3000_d0x_i2c.c "%s failed (%s, %d)\n", __func__, msg, ret); msg 27 drivers/input/misc/cma3000_d0x_i2c.c static int cma3000_i2c_read(struct device *dev, u8 reg, char *msg) msg 35 drivers/input/misc/cma3000_d0x_i2c.c "%s failed (%s, %d)\n", __func__, msg, ret); msg 219 drivers/input/mouse/appletouch.c #define dbg_dump(msg, tab) \ msg 222 drivers/input/mouse/appletouch.c printk(KERN_DEBUG "appletouch: %s", msg); \ msg 112 drivers/input/mouse/elan_i2c_i2c.c struct i2c_msg msg = { msg 120 drivers/input/mouse/elan_i2c_i2c.c ret = i2c_transfer(client->adapter, &msg, 1); msg 119 drivers/input/rmi4/rmi_spi.c struct spi_message msg; msg 128 drivers/input/rmi4/rmi_spi.c spi_message_init(&msg); msg 192 drivers/input/rmi4/rmi_spi.c spi_message_add_tail(xfer, &msg); msg 199 drivers/input/rmi4/rmi_spi.c spi_message_add_tail(xfer, &msg); msg 214 drivers/input/rmi4/rmi_spi.c spi_message_add_tail(xfer, &msg); msg 221 drivers/input/rmi4/rmi_spi.c spi_message_add_tail(xfer, &msg); msg 225 drivers/input/rmi4/rmi_spi.c ret = spi_sync(spi, &msg); msg 101 drivers/input/serio/hyperv-keyboard.c struct synth_kbd_msg *msg, u32 msg_length) msg 106 drivers/input/serio/hyperv-keyboard.c u32 msg_type = __le32_to_cpu(msg->header.type); msg 125 drivers/input/serio/hyperv-keyboard.c memcpy(&kbd_dev->protocol_resp, msg, msg 144 drivers/input/serio/hyperv-keyboard.c ks_msg = (struct synth_kbd_keystroke *)msg; msg 187 drivers/input/serio/hyperv-keyboard.c struct synth_kbd_msg *msg; msg 226 drivers/input/serio/hyperv-keyboard.c msg = (void *)desc + (desc->offset8 << 3); msg 227 drivers/input/serio/hyperv-keyboard.c hv_kbd_on_receive(hv_dev, msg, msg_sz); msg 146 drivers/input/touchscreen/ad7877.c struct spi_message msg; msg 178 drivers/input/touchscreen/ad7877.c struct spi_message msg; msg 208 drivers/input/touchscreen/ad7877.c spi_message_init(&req->msg); msg 219 drivers/input/touchscreen/ad7877.c spi_message_add_tail(&req->xfer[0], &req->msg); msg 220 drivers/input/touchscreen/ad7877.c spi_message_add_tail(&req->xfer[1], &req->msg); msg 222 drivers/input/touchscreen/ad7877.c status = spi_sync(spi, &req->msg); msg 239 drivers/input/touchscreen/ad7877.c spi_message_init(&req->msg); msg 245 drivers/input/touchscreen/ad7877.c spi_message_add_tail(&req->xfer[0], &req->msg); msg 247 drivers/input/touchscreen/ad7877.c status = spi_sync(spi, &req->msg); msg 266 drivers/input/touchscreen/ad7877.c spi_message_init(&req->msg); msg 307 drivers/input/touchscreen/ad7877.c spi_message_add_tail(&req->xfer[i], &req->msg); msg 309 drivers/input/touchscreen/ad7877.c status = spi_sync(spi, &req->msg); msg 390 drivers/input/touchscreen/ad7877.c error = spi_sync(ts->spi, &ts->msg); msg 640 drivers/input/touchscreen/ad7877.c m = &ts->msg; msg 117 drivers/input/touchscreen/ads7846.c struct spi_message msg[5]; msg 292 drivers/input/touchscreen/ads7846.c struct spi_message msg; msg 303 drivers/input/touchscreen/ads7846.c struct spi_message msg; msg 323 drivers/input/touchscreen/ads7846.c spi_message_init(&req->msg); msg 330 drivers/input/touchscreen/ads7846.c spi_message_add_tail(&req->xfer[0], &req->msg); msg 337 drivers/input/touchscreen/ads7846.c spi_message_add_tail(&req->xfer[1], &req->msg); msg 350 drivers/input/touchscreen/ads7846.c spi_message_add_tail(&req->xfer[2], &req->msg); msg 354 drivers/input/touchscreen/ads7846.c spi_message_add_tail(&req->xfer[3], &req->msg); msg 362 drivers/input/touchscreen/ads7846.c spi_message_add_tail(&req->xfer[4], &req->msg); msg 367 drivers/input/touchscreen/ads7846.c spi_message_add_tail(&req->xfer[5], &req->msg); msg 371 drivers/input/touchscreen/ads7846.c status = spi_sync(spi, &req->msg); msg 397 drivers/input/touchscreen/ads7846.c spi_message_init(&req->msg); msg 403 drivers/input/touchscreen/ads7846.c spi_message_add_tail(&req->xfer[0], &req->msg); msg 407 drivers/input/touchscreen/ads7846.c status = spi_sync(spi, &req->msg); msg 708 drivers/input/touchscreen/ads7846.c m = &ts->msg[msg_idx]; msg 975 drivers/input/touchscreen/ads7846.c struct spi_message *m = &ts->msg[0]; msg 419 drivers/input/touchscreen/atmel_mxt_ts.c struct i2c_msg msg; msg 421 drivers/input/touchscreen/atmel_mxt_ts.c msg.addr = data->bootloader_addr; msg 422 drivers/input/touchscreen/atmel_mxt_ts.c msg.flags = data->client->flags & I2C_M_TEN; msg 423 drivers/input/touchscreen/atmel_mxt_ts.c msg.flags |= I2C_M_RD; msg 424 drivers/input/touchscreen/atmel_mxt_ts.c msg.len = count; msg 425 drivers/input/touchscreen/atmel_mxt_ts.c msg.buf = val; msg 427 drivers/input/touchscreen/atmel_mxt_ts.c ret = i2c_transfer(data->client->adapter, &msg, 1); msg 443 drivers/input/touchscreen/atmel_mxt_ts.c struct i2c_msg msg; msg 445 drivers/input/touchscreen/atmel_mxt_ts.c msg.addr = data->bootloader_addr; msg 446 drivers/input/touchscreen/atmel_mxt_ts.c msg.flags = data->client->flags & I2C_M_TEN; msg 447 drivers/input/touchscreen/atmel_mxt_ts.c msg.len = count; msg 448 drivers/input/touchscreen/atmel_mxt_ts.c msg.buf = (u8 *)val; msg 450 drivers/input/touchscreen/atmel_mxt_ts.c ret = i2c_transfer(data->client->adapter, &msg, 1); msg 709 drivers/input/touchscreen/atmel_mxt_ts.c static void mxt_proc_t6_messages(struct mxt_data *data, u8 *msg) msg 712 drivers/input/touchscreen/atmel_mxt_ts.c u8 status = msg[1]; msg 713 drivers/input/touchscreen/atmel_mxt_ts.c u32 crc = msg[2] | (msg[3] << 8) | (msg[4] << 16); msg 59 drivers/input/touchscreen/chipone_icn8318.c struct i2c_msg msg[2] = { msg 73 drivers/input/touchscreen/chipone_icn8318.c return i2c_transfer(client->adapter, msg, 2); msg 82 drivers/input/touchscreen/chipone_icn8505.c struct i2c_msg msg[2] = { msg 99 drivers/input/touchscreen/chipone_icn8505.c ret = i2c_transfer(client->adapter, msg, 2); msg 100 drivers/input/touchscreen/chipone_icn8505.c if (ret != ARRAY_SIZE(msg)) { msg 119 drivers/input/touchscreen/chipone_icn8505.c struct i2c_msg msg = { msg 133 drivers/input/touchscreen/chipone_icn8505.c ret = i2c_transfer(client->adapter, &msg, 1); msg 88 drivers/input/touchscreen/cy8ctmg110_ts.c struct i2c_msg msg[2] = { msg 104 drivers/input/touchscreen/cy8ctmg110_ts.c ret = i2c_transfer(client->adapter, msg, 2); msg 40 drivers/input/touchscreen/cyttsp4_spi.c struct spi_message msg; msg 64 drivers/input/touchscreen/cyttsp4_spi.c spi_message_init(&msg); msg 75 drivers/input/touchscreen/cyttsp4_spi.c spi_message_add_tail(&xfer[0], &msg); msg 80 drivers/input/touchscreen/cyttsp4_spi.c spi_message_add_tail(&xfer[0], &msg); msg 84 drivers/input/touchscreen/cyttsp4_spi.c spi_message_add_tail(&xfer[1], &msg); msg 92 drivers/input/touchscreen/cyttsp4_spi.c retval = spi_sync(spi, &msg); msg 37 drivers/input/touchscreen/cyttsp_spi.c struct spi_message msg; msg 61 drivers/input/touchscreen/cyttsp_spi.c spi_message_init(&msg); msg 72 drivers/input/touchscreen/cyttsp_spi.c spi_message_add_tail(&xfer[0], &msg); msg 77 drivers/input/touchscreen/cyttsp_spi.c spi_message_add_tail(&xfer[0], &msg); msg 81 drivers/input/touchscreen/cyttsp_spi.c spi_message_add_tail(&xfer[1], &msg); msg 89 drivers/input/touchscreen/cyttsp_spi.c retval = spi_sync(spi, &msg); msg 212 drivers/input/touchscreen/goodix.c struct i2c_msg msg; msg 223 drivers/input/touchscreen/goodix.c msg.flags = 0; msg 224 drivers/input/touchscreen/goodix.c msg.addr = client->addr; msg 225 drivers/input/touchscreen/goodix.c msg.buf = addr_buf; msg 226 drivers/input/touchscreen/goodix.c msg.len = len + 2; msg 228 drivers/input/touchscreen/goodix.c ret = i2c_transfer(client->adapter, &msg, 1); msg 183 drivers/input/touchscreen/hideep.c struct i2c_msg msg = { msg 198 drivers/input/touchscreen/hideep.c ret = i2c_transfer(ts->client->adapter, &msg, 1); msg 210 drivers/input/touchscreen/hideep.c struct i2c_msg msg[] = { msg 232 drivers/input/touchscreen/hideep.c ret = i2c_transfer(ts->client->adapter, msg, ARRAY_SIZE(msg)); msg 233 drivers/input/touchscreen/hideep.c if (ret != ARRAY_SIZE(msg)) msg 51 drivers/input/touchscreen/ili210x.c struct i2c_msg msg[2] = { msg 67 drivers/input/touchscreen/ili210x.c if (i2c_transfer(client->adapter, msg, 1) != 1) { msg 74 drivers/input/touchscreen/ili210x.c if (i2c_transfer(client->adapter, msg + 1, 1) != 1) { msg 79 drivers/input/touchscreen/ili210x.c if (i2c_transfer(client->adapter, msg, 2) != 2) { msg 90 drivers/input/touchscreen/ili210x.c struct i2c_msg msg = { msg 97 drivers/input/touchscreen/ili210x.c if (i2c_transfer(client->adapter, &msg, 1) != 1) { msg 27 drivers/input/touchscreen/ipaq-micro-ts.c static void micro_ts_receive(void *data, int len, unsigned char *msg) msg 33 drivers/input/touchscreen/ipaq-micro-ts.c be16_to_cpup((__be16 *) &msg[2])); msg 35 drivers/input/touchscreen/ipaq-micro-ts.c be16_to_cpup((__be16 *) &msg[0])); msg 134 drivers/input/touchscreen/iqs5xx.c struct i2c_msg msg[] = { msg 155 drivers/input/touchscreen/iqs5xx.c ret = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg)); msg 156 drivers/input/touchscreen/iqs5xx.c if (ret == ARRAY_SIZE(msg)) msg 249 drivers/input/touchscreen/iqs5xx.c struct i2c_msg msg; msg 253 drivers/input/touchscreen/iqs5xx.c msg.addr = client->addr ^ IQS5XX_BL_ADDR_MASK; msg 254 drivers/input/touchscreen/iqs5xx.c msg.flags = 0; msg 255 drivers/input/touchscreen/iqs5xx.c msg.len = sizeof(bl_cmd); msg 256 drivers/input/touchscreen/iqs5xx.c msg.buf = mbuf; msg 266 drivers/input/touchscreen/iqs5xx.c msg.len += sizeof(bl_addr); msg 273 drivers/input/touchscreen/iqs5xx.c ret = i2c_transfer(client->adapter, &msg, 1); msg 279 drivers/input/touchscreen/iqs5xx.c msg.len = sizeof(u16); msg 282 drivers/input/touchscreen/iqs5xx.c msg.len = sizeof(u8); msg 297 drivers/input/touchscreen/iqs5xx.c msg.flags = I2C_M_RD; msg 299 drivers/input/touchscreen/iqs5xx.c ret = i2c_transfer(client->adapter, &msg, 1); msg 356 drivers/input/touchscreen/iqs5xx.c struct i2c_msg msg; msg 363 drivers/input/touchscreen/iqs5xx.c msg.addr = client->addr ^ IQS5XX_BL_ADDR_MASK; msg 364 drivers/input/touchscreen/iqs5xx.c msg.flags = 0; msg 365 drivers/input/touchscreen/iqs5xx.c msg.len = sizeof(mbuf); msg 366 drivers/input/touchscreen/iqs5xx.c msg.buf = mbuf; msg 373 drivers/input/touchscreen/iqs5xx.c ret = i2c_transfer(client->adapter, &msg, 1); msg 395 drivers/input/touchscreen/iqs5xx.c struct i2c_msg msg; msg 402 drivers/input/touchscreen/iqs5xx.c msg.addr = client->addr ^ IQS5XX_BL_ADDR_MASK; msg 403 drivers/input/touchscreen/iqs5xx.c msg.flags = I2C_M_RD; msg 404 drivers/input/touchscreen/iqs5xx.c msg.len = sizeof(bl_data); msg 405 drivers/input/touchscreen/iqs5xx.c msg.buf = bl_data; msg 412 drivers/input/touchscreen/iqs5xx.c ret = i2c_transfer(client->adapter, &msg, 1); msg 183 drivers/input/touchscreen/melfas_mip4.c struct i2c_msg msg[] = { msg 201 drivers/input/touchscreen/melfas_mip4.c res = i2c_transfer(ts->client->adapter, msg, ARRAY_SIZE(msg)); msg 202 drivers/input/touchscreen/melfas_mip4.c if (res == ARRAY_SIZE(msg)) msg 710 drivers/input/touchscreen/melfas_mip4.c struct i2c_msg msg[] = { msg 728 drivers/input/touchscreen/melfas_mip4.c ret = i2c_transfer(ts->client->adapter, msg, ARRAY_SIZE(msg)); msg 729 drivers/input/touchscreen/melfas_mip4.c if (ret != ARRAY_SIZE(msg)) { msg 773 drivers/input/touchscreen/melfas_mip4.c struct i2c_msg msg[] = { msg 809 drivers/input/touchscreen/melfas_mip4.c ret = i2c_transfer(ts->client->adapter, msg, ARRAY_SIZE(msg)); msg 810 drivers/input/touchscreen/melfas_mip4.c if (ret != ARRAY_SIZE(msg)) { msg 848 drivers/input/touchscreen/melfas_mip4.c struct i2c_msg msg[] = { msg 864 drivers/input/touchscreen/melfas_mip4.c ret = i2c_transfer(ts->client->adapter, msg, ARRAY_SIZE(msg)); msg 865 drivers/input/touchscreen/melfas_mip4.c if (ret != ARRAY_SIZE(msg)) { msg 972 drivers/input/touchscreen/melfas_mip4.c struct i2c_msg msg[] = { msg 1032 drivers/input/touchscreen/melfas_mip4.c msg[1].buf = read_buf = kmalloc(MIP4_BL_PACKET_SIZE, GFP_KERNEL); msg 1043 drivers/input/touchscreen/melfas_mip4.c ret = i2c_transfer(ts->client->adapter, msg, ARRAY_SIZE(msg)); msg 1044 drivers/input/touchscreen/melfas_mip4.c if (ret != ARRAY_SIZE(msg)) { msg 286 drivers/input/touchscreen/rohm_bu21023.c struct i2c_msg msg[2]; msg 289 drivers/input/touchscreen/rohm_bu21023.c msg[0].addr = client->addr; msg 290 drivers/input/touchscreen/rohm_bu21023.c msg[0].flags = 0; msg 291 drivers/input/touchscreen/rohm_bu21023.c msg[0].len = 1; msg 292 drivers/input/touchscreen/rohm_bu21023.c msg[0].buf = &start; msg 294 drivers/input/touchscreen/rohm_bu21023.c msg[1].addr = client->addr; msg 295 drivers/input/touchscreen/rohm_bu21023.c msg[1].flags = I2C_M_RD; msg 296 drivers/input/touchscreen/rohm_bu21023.c msg[1].len = len; msg 297 drivers/input/touchscreen/rohm_bu21023.c msg[1].buf = buf; msg 302 drivers/input/touchscreen/rohm_bu21023.c if (__i2c_transfer(adap, &msg[i], 1) < 0) { msg 60 drivers/input/touchscreen/st1232.c struct i2c_msg msg[2]; msg 67 drivers/input/touchscreen/st1232.c msg[0].addr = client->addr; msg 68 drivers/input/touchscreen/st1232.c msg[0].flags = 0; msg 69 drivers/input/touchscreen/st1232.c msg[0].len = 1; msg 70 drivers/input/touchscreen/st1232.c msg[0].buf = &start_reg; msg 72 drivers/input/touchscreen/st1232.c msg[1].addr = ts->client->addr; msg 73 drivers/input/touchscreen/st1232.c msg[1].flags = I2C_M_RD; msg 74 drivers/input/touchscreen/st1232.c msg[1].len = ts->read_buf_len; msg 75 drivers/input/touchscreen/st1232.c msg[1].buf = buf; msg 77 drivers/input/touchscreen/st1232.c error = i2c_transfer(client->adapter, msg, 2); msg 32 drivers/input/touchscreen/tsc2005.c struct spi_message msg; msg 36 drivers/input/touchscreen/tsc2005.c spi_message_init(&msg); msg 37 drivers/input/touchscreen/tsc2005.c spi_message_add_tail(&xfer, &msg); msg 39 drivers/input/touchscreen/tsc2005.c error = spi_sync(spi, &msg); msg 4170 drivers/iommu/amd_iommu.c struct msi_msg *msg = &data->msi_entry; msg 4201 drivers/iommu/amd_iommu.c msg->address_hi = MSI_ADDR_BASE_HI; msg 4202 drivers/iommu/amd_iommu.c msg->address_lo = MSI_ADDR_BASE_LO; msg 4203 drivers/iommu/amd_iommu.c msg->data = irte_info->index; msg 4555 drivers/iommu/amd_iommu.c static void ir_compose_msi_msg(struct irq_data *irq_data, struct msi_msg *msg) msg 4559 drivers/iommu/amd_iommu.c *msg = ir_data->msi_entry; msg 3006 drivers/iommu/arm-smmu-v3.c static void arm_smmu_write_msi_msg(struct msi_desc *desc, struct msi_msg *msg) msg 3013 drivers/iommu/arm-smmu-v3.c doorbell = (((u64)msg->address_hi) << 32) | msg->address_lo; msg 3017 drivers/iommu/arm-smmu-v3.c writel_relaxed(msg->data, smmu->base + cfg[1]); msg 1205 drivers/iommu/dma-iommu.c struct msi_msg *msg) msg 1216 drivers/iommu/dma-iommu.c msg->address_hi = upper_32_bits(msi_page->iova); msg 1217 drivers/iommu/dma-iommu.c msg->address_lo &= cookie_msi_granule(domain->iova_cookie) - 1; msg 1218 drivers/iommu/dma-iommu.c msg->address_lo += lower_32_bits(msi_page->iova); msg 1658 drivers/iommu/dmar.c void dmar_msi_write(int irq, struct msi_msg *msg) msg 1665 drivers/iommu/dmar.c writel(msg->data, iommu->reg + reg + 4); msg 1666 drivers/iommu/dmar.c writel(msg->address_lo, iommu->reg + reg + 8); msg 1667 drivers/iommu/dmar.c writel(msg->address_hi, iommu->reg + reg + 12); msg 1671 drivers/iommu/dmar.c void dmar_msi_read(int irq, struct msi_msg *msg) msg 1678 drivers/iommu/dmar.c msg->data = readl(iommu->reg + reg + 4); msg 1679 drivers/iommu/dmar.c msg->address_lo = readl(iommu->reg + reg + 8); msg 1680 drivers/iommu/dmar.c msg->address_hi = readl(iommu->reg + reg + 12); msg 1208 drivers/iommu/intel_irq_remapping.c struct msi_msg *msg) msg 1212 drivers/iommu/intel_irq_remapping.c *msg = ir_data->msi_entry; msg 1266 drivers/iommu/intel_irq_remapping.c struct msi_msg *msg = &data->msi_entry; msg 1307 drivers/iommu/intel_irq_remapping.c msg->address_hi = MSI_ADDR_BASE_HI; msg 1308 drivers/iommu/intel_irq_remapping.c msg->data = sub_handle; msg 1309 drivers/iommu/intel_irq_remapping.c msg->address_lo = MSI_ADDR_BASE_LO | MSI_ADDR_IR_EXT_INT | msg 1083 drivers/iommu/iommu.c struct iommu_page_response *msg) msg 1098 drivers/iommu/iommu.c if (msg->version != IOMMU_PAGE_RESP_VERSION_1 || msg 1099 drivers/iommu/iommu.c msg->flags & ~IOMMU_PAGE_RESP_PASID_VALID) msg 1116 drivers/iommu/iommu.c if ((pasid_valid && prm->pasid != msg->pasid) || msg 1117 drivers/iommu/iommu.c prm->grpid != msg->grpid) msg 1121 drivers/iommu/iommu.c msg->flags = pasid_valid ? IOMMU_PAGE_RESP_PASID_VALID : 0; msg 1123 drivers/iommu/iommu.c ret = domain->ops->page_response(dev, evt, msg); msg 156 drivers/iommu/irq_remapping.c void panic_if_irq_remap(const char *msg) msg 159 drivers/iommu/irq_remapping.c panic(msg); msg 92 drivers/irqchip/irq-alpine-msi.c struct msi_msg *msg) msg 99 drivers/irqchip/irq-alpine-msi.c msg->address_hi = upper_32_bits(msg_addr); msg 100 drivers/irqchip/irq-alpine-msi.c msg->address_lo = lower_32_bits(msg_addr); msg 101 drivers/irqchip/irq-alpine-msi.c msg->data = 0; msg 210 drivers/irqchip/irq-armada-370-xp.c static void armada_370_xp_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) msg 212 drivers/irqchip/irq-armada-370-xp.c msg->address_lo = lower_32_bits(msi_doorbell_addr); msg 213 drivers/irqchip/irq-armada-370-xp.c msg->address_hi = upper_32_bits(msi_doorbell_addr); msg 214 drivers/irqchip/irq-armada-370-xp.c msg->data = 0xf00 | (data->hwirq + PCI_MSI_DOORBELL_START); msg 107 drivers/irqchip/irq-gic-v2m.c static void gicv2m_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) msg 112 drivers/irqchip/irq-gic-v2m.c msg->address_hi = upper_32_bits(addr); msg 113 drivers/irqchip/irq-gic-v2m.c msg->address_lo = lower_32_bits(addr); msg 116 drivers/irqchip/irq-gic-v2m.c msg->data = 0; msg 118 drivers/irqchip/irq-gic-v2m.c msg->data = data->hwirq; msg 120 drivers/irqchip/irq-gic-v2m.c msg->data -= v2m->spi_offset; msg 122 drivers/irqchip/irq-gic-v2m.c iommu_dma_compose_msi_msg(irq_data_get_msi_desc(data), msg); msg 1185 drivers/irqchip/irq-gic-v3-its.c static void its_irq_compose_msi_msg(struct irq_data *d, struct msi_msg *msg) msg 1194 drivers/irqchip/irq-gic-v3-its.c msg->address_lo = lower_32_bits(addr); msg 1195 drivers/irqchip/irq-gic-v3-its.c msg->address_hi = upper_32_bits(addr); msg 1196 drivers/irqchip/irq-gic-v3-its.c msg->data = its_get_event_id(d); msg 1198 drivers/irqchip/irq-gic-v3-its.c iommu_dma_compose_msi_msg(irq_data_get_msi_desc(d), msg); msg 145 drivers/irqchip/irq-gic-v3-mbi.c static void mbi_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) msg 147 drivers/irqchip/irq-gic-v3-mbi.c msg[0].address_hi = upper_32_bits(mbi_phys_base + GICD_SETSPI_NSR); msg 148 drivers/irqchip/irq-gic-v3-mbi.c msg[0].address_lo = lower_32_bits(mbi_phys_base + GICD_SETSPI_NSR); msg 149 drivers/irqchip/irq-gic-v3-mbi.c msg[0].data = data->parent_data->hwirq; msg 151 drivers/irqchip/irq-gic-v3-mbi.c iommu_dma_compose_msi_msg(irq_data_get_msi_desc(data), msg); msg 203 drivers/irqchip/irq-gic-v3-mbi.c static void mbi_compose_mbi_msg(struct irq_data *data, struct msi_msg *msg) msg 205 drivers/irqchip/irq-gic-v3-mbi.c mbi_compose_msi_msg(data, msg); msg 207 drivers/irqchip/irq-gic-v3-mbi.c msg[1].address_hi = upper_32_bits(mbi_phys_base + GICD_CLRSPI_NSR); msg 208 drivers/irqchip/irq-gic-v3-mbi.c msg[1].address_lo = lower_32_bits(mbi_phys_base + GICD_CLRSPI_NSR); msg 209 drivers/irqchip/irq-gic-v3-mbi.c msg[1].data = data->parent_data->hwirq; msg 211 drivers/irqchip/irq-gic-v3-mbi.c iommu_dma_compose_msi_msg(irq_data_get_msi_desc(data), &msg[1]); msg 85 drivers/irqchip/irq-ls-scfg-msi.c static void ls_scfg_msi_compose_msg(struct irq_data *data, struct msi_msg *msg) msg 89 drivers/irqchip/irq-ls-scfg-msi.c msg->address_hi = upper_32_bits(msi_data->msiir_addr); msg 90 drivers/irqchip/irq-ls-scfg-msi.c msg->address_lo = lower_32_bits(msi_data->msiir_addr); msg 91 drivers/irqchip/irq-ls-scfg-msi.c msg->data = data->hwirq; msg 97 drivers/irqchip/irq-ls-scfg-msi.c msg->data |= cpumask_first(mask); msg 100 drivers/irqchip/irq-ls-scfg-msi.c iommu_dma_compose_msi_msg(irq_data_get_msi_desc(data), msg); msg 147 drivers/irqchip/irq-mbigen.c static void mbigen_write_msg(struct msi_desc *desc, struct msi_msg *msg) msg 153 drivers/irqchip/irq-mbigen.c if (!msg->address_lo && !msg->address_hi) msg 160 drivers/irqchip/irq-mbigen.c val |= (msg->data << IRQ_EVENT_ID_SHIFT); msg 56 drivers/irqchip/irq-mvebu-gicp.c static void gicp_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) msg 62 drivers/irqchip/irq-mvebu-gicp.c msg[0].data = data->hwirq; msg 63 drivers/irqchip/irq-mvebu-gicp.c msg[0].address_lo = lower_32_bits(setspi); msg 64 drivers/irqchip/irq-mvebu-gicp.c msg[0].address_hi = upper_32_bits(setspi); msg 65 drivers/irqchip/irq-mvebu-gicp.c msg[1].data = data->hwirq; msg 66 drivers/irqchip/irq-mvebu-gicp.c msg[1].address_lo = lower_32_bits(clrspi); msg 67 drivers/irqchip/irq-mvebu-gicp.c msg[1].address_hi = upper_32_bits(clrspi); msg 73 drivers/irqchip/irq-mvebu-icu.c struct msi_msg *msg) msg 81 drivers/irqchip/irq-mvebu-icu.c writel_relaxed(msg[0].address_hi, icu->base + subset->offset_set_ah); msg 82 drivers/irqchip/irq-mvebu-icu.c writel_relaxed(msg[0].address_lo, icu->base + subset->offset_set_al); msg 88 drivers/irqchip/irq-mvebu-icu.c writel_relaxed(msg[1].address_hi, icu->base + subset->offset_clr_ah); msg 89 drivers/irqchip/irq-mvebu-icu.c writel_relaxed(msg[1].address_lo, icu->base + subset->offset_clr_al); msg 92 drivers/irqchip/irq-mvebu-icu.c static void mvebu_icu_write_msg(struct msi_desc *desc, struct msi_msg *msg) msg 100 drivers/irqchip/irq-mvebu-icu.c if (msg->address_lo || msg->address_hi) { msg 102 drivers/irqchip/irq-mvebu-icu.c mvebu_icu_init(icu, msi_data, msg); msg 104 drivers/irqchip/irq-mvebu-icu.c icu_int = msg->data | ICU_INT_ENABLE; msg 50 drivers/irqchip/irq-mvebu-odmi.c static void odmi_compose_msi_msg(struct irq_data *d, struct msi_msg *msg) msg 64 drivers/irqchip/irq-mvebu-odmi.c msg->address_hi = upper_32_bits(addr); msg 65 drivers/irqchip/irq-mvebu-odmi.c msg->address_lo = lower_32_bits(addr); msg 66 drivers/irqchip/irq-mvebu-odmi.c msg->data = odmin << GICP_ODMI_INT_NUM_SHIFT; msg 139 drivers/irqchip/irq-mvebu-sei.c struct msi_msg *msg) msg 144 drivers/irqchip/irq-mvebu-sei.c msg->data = data->hwirq + sei->caps->cp_range.first; msg 145 drivers/irqchip/irq-mvebu-sei.c msg->address_lo = lower_32_bits(set); msg 146 drivers/irqchip/irq-mvebu-sei.c msg->address_hi = upper_32_bits(set); msg 315 drivers/isdn/capi/capiutil.c unsigned capi_cmsg2message(_cmsg *cmsg, u8 *msg) msg 317 drivers/isdn/capi/capiutil.c cmsg->m = msg; msg 326 drivers/isdn/capi/capiutil.c wordTLcpy(msg + 0, &cmsg->l); msg 387 drivers/isdn/capi/capiutil.c unsigned capi_message2cmsg(_cmsg *cmsg, u8 *msg) msg 390 drivers/isdn/capi/capiutil.c cmsg->m = msg; msg 401 drivers/isdn/capi/capiutil.c wordTRcpy(msg + 0, &cmsg->l); msg 768 drivers/isdn/capi/capiutil.c _cdebbuf *capi_message2str(u8 *msg) msg 784 drivers/isdn/capi/capiutil.c cmsg->m = msg; msg 793 drivers/isdn/capi/capiutil.c ((unsigned short *) msg)[1], msg 794 drivers/isdn/capi/capiutil.c ((unsigned short *) msg)[3], msg 795 drivers/isdn/capi/capiutil.c ((unsigned short *) msg)[0]); msg 869 drivers/isdn/capi/capiutil.c _cdebbuf *capi_message2str(u8 *msg) msg 2367 drivers/isdn/hardware/mISDN/hfcmulti.c signal_state_up(struct dchannel *dch, int info, char *msg) msg 2373 drivers/isdn/hardware/mISDN/hfcmulti.c printk(KERN_DEBUG "%s: %s\n", __func__, msg); msg 57 drivers/isdn/hardware/mISDN/mISDNisar.c send_mbox(struct isar_hw *isar, u8 his, u8 creg, u8 len, u8 *msg) msg 65 drivers/isdn/hardware/mISDN/mISDNisar.c if (!msg) msg 66 drivers/isdn/hardware/mISDN/mISDNisar.c msg = isar->buf; msg 67 drivers/isdn/hardware/mISDN/mISDNisar.c if (msg && len) { msg 68 drivers/isdn/hardware/mISDN/mISDNisar.c isar->write_fifo(isar->hw, ISAR_MBOX, msg, len); msg 73 drivers/isdn/hardware/mISDN/mISDNisar.c hex_dump_to_buffer(msg + l, len - l, 32, 1, msg 91 drivers/isdn/hardware/mISDN/mISDNisar.c rcv_mbox(struct isar_hw *isar, u8 *msg) msg 93 drivers/isdn/hardware/mISDN/mISDNisar.c if (!msg) msg 94 drivers/isdn/hardware/mISDN/mISDNisar.c msg = isar->buf; msg 96 drivers/isdn/hardware/mISDN/mISDNisar.c if (msg && isar->clsb) { msg 97 drivers/isdn/hardware/mISDN/mISDNisar.c isar->read_fifo(isar->hw, ISAR_MBOX, msg, isar->clsb); msg 102 drivers/isdn/hardware/mISDN/mISDNisar.c hex_dump_to_buffer(msg + l, isar->clsb - l, 32, msg 1240 drivers/isdn/hardware/mISDN/mISDNisar.c u8 cmsb = IOM_CTRL_ENA, msg[5] = {IOM_P1_TXD, 0, 0, 0, 0}; msg 1243 drivers/isdn/hardware/mISDN/mISDNisar.c msg[1] = 1; msg 1244 drivers/isdn/hardware/mISDN/mISDNisar.c msg[3] = 1; msg 1250 drivers/isdn/hardware/mISDN/mISDNisar.c msg[1] = ch->dpath + 2; msg 1251 drivers/isdn/hardware/mISDN/mISDNisar.c msg[3] = ch->dpath + 2; msg 1266 drivers/isdn/hardware/mISDN/mISDNisar.c send_mbox(ch->is, dps | ISAR_HIS_IOM2CFG, cmsb, 5, msg); msg 1450 drivers/isdn/hardware/mISDN/mISDNisar.c u8 msg; msg 1454 drivers/isdn/hardware/mISDN/mISDNisar.c msg = 61; msg 1458 drivers/isdn/hardware/mISDN/mISDNisar.c ISAR_HIS_P12CFG, 4, 1, &msg); msg 1459 drivers/isdn/hardware/mISDN/mISDNisar.c isar->ch[i].mml = msg; msg 636 drivers/isdn/mISDN/l1oip_core.c struct msghdr msg = {.msg_name = &sin_rx, msg 707 drivers/isdn/mISDN/l1oip_core.c iov_iter_kvec(&msg.msg_iter, READ, &iov, 1, recvbuf_size); msg 708 drivers/isdn/mISDN/l1oip_core.c recvlen = sock_recvmsg(socket, &msg, 0); msg 95 drivers/isdn/mISDN/socket.c mISDN_sock_cmsg(struct sock *sk, struct msghdr *msg, struct sk_buff *skb) msg 101 drivers/isdn/mISDN/socket.c put_cmsg(msg, SOL_MISDN, MISDN_TIME_STAMP, sizeof(tv), &tv); msg 106 drivers/isdn/mISDN/socket.c mISDN_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, msg 128 drivers/isdn/mISDN/socket.c if (msg->msg_name) { msg 129 drivers/isdn/mISDN/socket.c DECLARE_SOCKADDR(struct sockaddr_mISDN *, maddr, msg->msg_name); msg 143 drivers/isdn/mISDN/socket.c msg->msg_namelen = sizeof(*maddr); msg 157 drivers/isdn/mISDN/socket.c err = skb_copy_datagram_msg(skb, 0, msg, copied); msg 159 drivers/isdn/mISDN/socket.c mISDN_sock_cmsg(sk, msg, skb); msg 167 drivers/isdn/mISDN/socket.c mISDN_sock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) msg 175 drivers/isdn/mISDN/socket.c __func__, (int)len, msg->msg_flags, _pms(sk)->ch.nr, msg 178 drivers/isdn/mISDN/socket.c if (msg->msg_flags & MSG_OOB) msg 181 drivers/isdn/mISDN/socket.c if (msg->msg_flags & ~(MSG_DONTWAIT | MSG_NOSIGNAL | MSG_ERRQUEUE)) msg 196 drivers/isdn/mISDN/socket.c if (memcpy_from_msg(skb_put(skb, len), msg, len)) { msg 204 drivers/isdn/mISDN/socket.c if (msg->msg_namelen >= sizeof(struct sockaddr_mISDN)) { msg 206 drivers/isdn/mISDN/socket.c DECLARE_SOCKADDR(struct sockaddr_mISDN *, maddr, msg->msg_name); msg 37 drivers/leds/leds-ipaq-micro.c struct ipaq_micro_msg msg = { msg 42 drivers/leds/leds-ipaq-micro.c msg.tx_data[0] = LED_GREEN; msg 43 drivers/leds/leds-ipaq-micro.c msg.tx_data[1] = 0; msg 45 drivers/leds/leds-ipaq-micro.c msg.tx_data[2] = 0; /* Duty cycle 256 */ msg 46 drivers/leds/leds-ipaq-micro.c msg.tx_data[3] = 1; msg 48 drivers/leds/leds-ipaq-micro.c msg.tx_data[2] = 1; msg 49 drivers/leds/leds-ipaq-micro.c msg.tx_data[3] = 0; /* Duty cycle 256 */ msg 51 drivers/leds/leds-ipaq-micro.c return ipaq_micro_tx_msg_sync(micro, &msg); msg 74 drivers/leds/leds-ipaq-micro.c struct ipaq_micro_msg msg = { msg 79 drivers/leds/leds-ipaq-micro.c msg.tx_data[0] = LED_GREEN; msg 89 drivers/leds/leds-ipaq-micro.c msg.tx_data[1] = 0; msg 91 drivers/leds/leds-ipaq-micro.c msg.tx_data[2] = 0; msg 93 drivers/leds/leds-ipaq-micro.c msg.tx_data[2] = (u8) DIV_ROUND_CLOSEST(*delay_on, 100); msg 95 drivers/leds/leds-ipaq-micro.c msg.tx_data[3] = 0; msg 97 drivers/leds/leds-ipaq-micro.c msg.tx_data[3] = (u8) DIV_ROUND_CLOSEST(*delay_off, 100); msg 98 drivers/leds/leds-ipaq-micro.c return ipaq_micro_tx_msg_sync(micro, &msg); msg 82 drivers/leds/leds-powernv.c struct opal_msg msg; msg 109 drivers/leds/leds-powernv.c rc = opal_async_wait_response(token, &msg); msg 117 drivers/leds/leds-powernv.c rc = opal_get_async_rc(msg); msg 1193 drivers/lightnvm/pblk.h char *msg, int error) msg 1199 drivers/lightnvm/pblk.h msg, error, (u64)p->c.line); msg 1202 drivers/lightnvm/pblk.h msg, error, msg 1207 drivers/lightnvm/pblk.h msg, error, msg 80 drivers/macintosh/adb-iop.c static void adb_iop_complete(struct iop_msg *msg) msg 102 drivers/macintosh/adb-iop.c static void adb_iop_listen(struct iop_msg *msg) msg 104 drivers/macintosh/adb-iop.c struct adb_iopmsg *amsg = (struct adb_iopmsg *)msg->message; msg 130 drivers/macintosh/adb-iop.c msg->reply[0] = ADB_IOP_TIMEOUT | ADB_IOP_AUTOPOLL; msg 131 drivers/macintosh/adb-iop.c msg->reply[1] = 0; msg 132 drivers/macintosh/adb-iop.c msg->reply[2] = 0; msg 148 drivers/macintosh/adb-iop.c memcpy(msg->reply, msg->message, IOP_MSG_LEN); msg 150 drivers/macintosh/adb-iop.c iop_complete_message(msg); msg 81 drivers/macintosh/smu.c int msg; msg 544 drivers/macintosh/smu.c smu->msg = *data; msg 545 drivers/macintosh/smu.c if (smu->msg < 0x50) msg 546 drivers/macintosh/smu.c smu->msg += 0x50; msg 80 drivers/mailbox/armada-37xx-rwtm-mailbox.c struct armada_37xx_rwtm_tx_msg *msg = data; msg 97 drivers/mailbox/armada-37xx-rwtm-mailbox.c writel(msg->args[i], mbox->base + RWTM_MBOX_PARAM(i)); msg 98 drivers/mailbox/armada-37xx-rwtm-mailbox.c writel(msg->command, mbox->base + RWTM_MBOX_COMMAND); msg 574 drivers/mailbox/bcm-flexrm-mailbox.c static bool flexrm_spu_sanity_check(struct brcm_message *msg) msg 578 drivers/mailbox/bcm-flexrm-mailbox.c if (!msg->spu.src || !msg->spu.dst) msg 580 drivers/mailbox/bcm-flexrm-mailbox.c for (sg = msg->spu.src; sg; sg = sg_next(sg)) { msg 589 drivers/mailbox/bcm-flexrm-mailbox.c for (sg = msg->spu.dst; sg; sg = sg_next(sg)) { msg 602 drivers/mailbox/bcm-flexrm-mailbox.c static u32 flexrm_spu_estimate_nonheader_desc_count(struct brcm_message *msg) msg 606 drivers/mailbox/bcm-flexrm-mailbox.c struct scatterlist *src_sg = msg->spu.src, *dst_sg = msg->spu.dst; msg 629 drivers/mailbox/bcm-flexrm-mailbox.c static int flexrm_spu_dma_map(struct device *dev, struct brcm_message *msg) msg 633 drivers/mailbox/bcm-flexrm-mailbox.c rc = dma_map_sg(dev, msg->spu.src, sg_nents(msg->spu.src), msg 638 drivers/mailbox/bcm-flexrm-mailbox.c rc = dma_map_sg(dev, msg->spu.dst, sg_nents(msg->spu.dst), msg 641 drivers/mailbox/bcm-flexrm-mailbox.c dma_unmap_sg(dev, msg->spu.src, sg_nents(msg->spu.src), msg 649 drivers/mailbox/bcm-flexrm-mailbox.c static void flexrm_spu_dma_unmap(struct device *dev, struct brcm_message *msg) msg 651 drivers/mailbox/bcm-flexrm-mailbox.c dma_unmap_sg(dev, msg->spu.dst, sg_nents(msg->spu.dst), msg 653 drivers/mailbox/bcm-flexrm-mailbox.c dma_unmap_sg(dev, msg->spu.src, sg_nents(msg->spu.src), msg 657 drivers/mailbox/bcm-flexrm-mailbox.c static void *flexrm_spu_write_descs(struct brcm_message *msg, u32 nhcnt, msg 665 drivers/mailbox/bcm-flexrm-mailbox.c struct scatterlist *src_sg = msg->spu.src, *dst_sg = msg->spu.dst; msg 715 drivers/mailbox/bcm-flexrm-mailbox.c static bool flexrm_sba_sanity_check(struct brcm_message *msg) msg 719 drivers/mailbox/bcm-flexrm-mailbox.c if (!msg->sba.cmds || !msg->sba.cmds_count) msg 722 drivers/mailbox/bcm-flexrm-mailbox.c for (i = 0; i < msg->sba.cmds_count; i++) { msg 723 drivers/mailbox/bcm-flexrm-mailbox.c if (((msg->sba.cmds[i].flags & BRCM_SBA_CMD_TYPE_B) || msg 724 drivers/mailbox/bcm-flexrm-mailbox.c (msg->sba.cmds[i].flags & BRCM_SBA_CMD_TYPE_C)) && msg 725 drivers/mailbox/bcm-flexrm-mailbox.c (msg->sba.cmds[i].flags & BRCM_SBA_CMD_HAS_OUTPUT)) msg 727 drivers/mailbox/bcm-flexrm-mailbox.c if ((msg->sba.cmds[i].flags & BRCM_SBA_CMD_TYPE_B) && msg 728 drivers/mailbox/bcm-flexrm-mailbox.c (msg->sba.cmds[i].data_len > SRCT_LENGTH_MASK)) msg 730 drivers/mailbox/bcm-flexrm-mailbox.c if ((msg->sba.cmds[i].flags & BRCM_SBA_CMD_TYPE_C) && msg 731 drivers/mailbox/bcm-flexrm-mailbox.c (msg->sba.cmds[i].data_len > SRCT_LENGTH_MASK)) msg 733 drivers/mailbox/bcm-flexrm-mailbox.c if ((msg->sba.cmds[i].flags & BRCM_SBA_CMD_HAS_RESP) && msg 734 drivers/mailbox/bcm-flexrm-mailbox.c (msg->sba.cmds[i].resp_len > DSTT_LENGTH_MASK)) msg 736 drivers/mailbox/bcm-flexrm-mailbox.c if ((msg->sba.cmds[i].flags & BRCM_SBA_CMD_HAS_OUTPUT) && msg 737 drivers/mailbox/bcm-flexrm-mailbox.c (msg->sba.cmds[i].data_len > DSTT_LENGTH_MASK)) msg 744 drivers/mailbox/bcm-flexrm-mailbox.c static u32 flexrm_sba_estimate_nonheader_desc_count(struct brcm_message *msg) msg 749 drivers/mailbox/bcm-flexrm-mailbox.c for (i = 0; i < msg->sba.cmds_count; i++) { msg 752 drivers/mailbox/bcm-flexrm-mailbox.c if ((msg->sba.cmds[i].flags & BRCM_SBA_CMD_TYPE_B) || msg 753 drivers/mailbox/bcm-flexrm-mailbox.c (msg->sba.cmds[i].flags & BRCM_SBA_CMD_TYPE_C)) msg 756 drivers/mailbox/bcm-flexrm-mailbox.c if (msg->sba.cmds[i].flags & BRCM_SBA_CMD_HAS_RESP) msg 759 drivers/mailbox/bcm-flexrm-mailbox.c if (msg->sba.cmds[i].flags & BRCM_SBA_CMD_HAS_OUTPUT) msg 766 drivers/mailbox/bcm-flexrm-mailbox.c static void *flexrm_sba_write_descs(struct brcm_message *msg, u32 nhcnt, msg 776 drivers/mailbox/bcm-flexrm-mailbox.c for (i = 0; i < msg->sba.cmds_count; i++) { msg 777 drivers/mailbox/bcm-flexrm-mailbox.c c = &msg->sba.cmds[i]; msg 844 drivers/mailbox/bcm-flexrm-mailbox.c static bool flexrm_sanity_check(struct brcm_message *msg) msg 846 drivers/mailbox/bcm-flexrm-mailbox.c if (!msg) msg 849 drivers/mailbox/bcm-flexrm-mailbox.c switch (msg->type) { msg 851 drivers/mailbox/bcm-flexrm-mailbox.c return flexrm_spu_sanity_check(msg); msg 853 drivers/mailbox/bcm-flexrm-mailbox.c return flexrm_sba_sanity_check(msg); msg 859 drivers/mailbox/bcm-flexrm-mailbox.c static u32 flexrm_estimate_nonheader_desc_count(struct brcm_message *msg) msg 861 drivers/mailbox/bcm-flexrm-mailbox.c if (!msg) msg 864 drivers/mailbox/bcm-flexrm-mailbox.c switch (msg->type) { msg 866 drivers/mailbox/bcm-flexrm-mailbox.c return flexrm_spu_estimate_nonheader_desc_count(msg); msg 868 drivers/mailbox/bcm-flexrm-mailbox.c return flexrm_sba_estimate_nonheader_desc_count(msg); msg 874 drivers/mailbox/bcm-flexrm-mailbox.c static int flexrm_dma_map(struct device *dev, struct brcm_message *msg) msg 876 drivers/mailbox/bcm-flexrm-mailbox.c if (!dev || !msg) msg 879 drivers/mailbox/bcm-flexrm-mailbox.c switch (msg->type) { msg 881 drivers/mailbox/bcm-flexrm-mailbox.c return flexrm_spu_dma_map(dev, msg); msg 889 drivers/mailbox/bcm-flexrm-mailbox.c static void flexrm_dma_unmap(struct device *dev, struct brcm_message *msg) msg 891 drivers/mailbox/bcm-flexrm-mailbox.c if (!dev || !msg) msg 894 drivers/mailbox/bcm-flexrm-mailbox.c switch (msg->type) { msg 896 drivers/mailbox/bcm-flexrm-mailbox.c flexrm_spu_dma_unmap(dev, msg); msg 903 drivers/mailbox/bcm-flexrm-mailbox.c static void *flexrm_write_descs(struct brcm_message *msg, u32 nhcnt, msg 907 drivers/mailbox/bcm-flexrm-mailbox.c if (!msg || !desc_ptr || !start_desc || !end_desc) msg 913 drivers/mailbox/bcm-flexrm-mailbox.c switch (msg->type) { msg 915 drivers/mailbox/bcm-flexrm-mailbox.c return flexrm_spu_write_descs(msg, nhcnt, reqid, msg 919 drivers/mailbox/bcm-flexrm-mailbox.c return flexrm_sba_write_descs(msg, nhcnt, reqid, msg 987 drivers/mailbox/bcm-flexrm-mailbox.c struct brcm_message *msg) msg 997 drivers/mailbox/bcm-flexrm-mailbox.c if (!flexrm_sanity_check(msg)) msg 999 drivers/mailbox/bcm-flexrm-mailbox.c msg->error = 0; msg 1008 drivers/mailbox/bcm-flexrm-mailbox.c ring->requests[reqid] = msg; msg 1011 drivers/mailbox/bcm-flexrm-mailbox.c ret = flexrm_dma_map(ring->mbox->dev, msg); msg 1031 drivers/mailbox/bcm-flexrm-mailbox.c nhcnt = flexrm_estimate_nonheader_desc_count(msg); msg 1052 drivers/mailbox/bcm-flexrm-mailbox.c next = flexrm_write_descs(msg, nhcnt, reqid, msg 1070 drivers/mailbox/bcm-flexrm-mailbox.c msg->error = ret; msg 1074 drivers/mailbox/bcm-flexrm-mailbox.c flexrm_dma_unmap(ring->mbox->dev, msg); msg 1089 drivers/mailbox/bcm-flexrm-mailbox.c struct brcm_message *msg = NULL; msg 1133 drivers/mailbox/bcm-flexrm-mailbox.c msg = ring->requests[reqid]; msg 1134 drivers/mailbox/bcm-flexrm-mailbox.c if (!msg) { msg 1148 drivers/mailbox/bcm-flexrm-mailbox.c flexrm_dma_unmap(ring->mbox->dev, msg); msg 1151 drivers/mailbox/bcm-flexrm-mailbox.c msg->error = err; msg 1152 drivers/mailbox/bcm-flexrm-mailbox.c mbox_chan_received_data(chan, msg); msg 1207 drivers/mailbox/bcm-flexrm-mailbox.c struct brcm_message *msg = data; msg 1209 drivers/mailbox/bcm-flexrm-mailbox.c if (msg->type == BRCM_MESSAGE_BATCH) { msg 1210 drivers/mailbox/bcm-flexrm-mailbox.c for (i = msg->batch.msgs_queued; msg 1211 drivers/mailbox/bcm-flexrm-mailbox.c i < msg->batch.msgs_count; i++) { msg 1212 drivers/mailbox/bcm-flexrm-mailbox.c rc = flexrm_new_request(ring, msg, msg 1213 drivers/mailbox/bcm-flexrm-mailbox.c &msg->batch.msgs[i]); msg 1215 drivers/mailbox/bcm-flexrm-mailbox.c msg->error = rc; msg 1218 drivers/mailbox/bcm-flexrm-mailbox.c msg->batch.msgs_queued++; msg 1373 drivers/mailbox/bcm-flexrm-mailbox.c struct brcm_message *msg; msg 1408 drivers/mailbox/bcm-flexrm-mailbox.c msg = ring->requests[reqid]; msg 1409 drivers/mailbox/bcm-flexrm-mailbox.c if (!msg) msg 1416 drivers/mailbox/bcm-flexrm-mailbox.c flexrm_dma_unmap(ring->mbox->dev, msg); msg 1419 drivers/mailbox/bcm-flexrm-mailbox.c msg->error = -EIO; msg 1420 drivers/mailbox/bcm-flexrm-mailbox.c mbox_chan_received_data(chan, msg); msg 1483 drivers/mailbox/bcm-flexrm-mailbox.c static void flexrm_mbox_msi_write(struct msi_desc *desc, struct msi_msg *msg) msg 1490 drivers/mailbox/bcm-flexrm-mailbox.c writel_relaxed(msg->address_lo, ring->regs + RING_MSI_ADDR_LS); msg 1491 drivers/mailbox/bcm-flexrm-mailbox.c writel_relaxed(msg->address_hi, ring->regs + RING_MSI_ADDR_MS); msg 1492 drivers/mailbox/bcm-flexrm-mailbox.c writel_relaxed(msg->data, ring->regs + RING_MSI_DATA_VALUE); msg 73 drivers/mailbox/bcm2835-mailbox.c u32 msg = readl(mbox->regs + MAIL0_RD); msg 74 drivers/mailbox/bcm2835-mailbox.c dev_dbg(dev, "Reply 0x%08X\n", msg); msg 75 drivers/mailbox/bcm2835-mailbox.c mbox_chan_received_data(link, &msg); msg 83 drivers/mailbox/bcm2835-mailbox.c u32 msg = *(u32 *)data; msg 86 drivers/mailbox/bcm2835-mailbox.c writel(msg, mbox->regs + MAIL1_WRT); msg 87 drivers/mailbox/bcm2835-mailbox.c dev_dbg(mbox->controller.dev, "Request 0x%08X\n", msg); msg 175 drivers/mailbox/hi3660-mailbox.c static int hi3660_mbox_send_data(struct mbox_chan *chan, void *msg) msg 181 drivers/mailbox/hi3660-mailbox.c u32 *buf = msg; msg 122 drivers/mailbox/hi6220-mailbox.c static int hi6220_mbox_send_data(struct mbox_chan *chan, void *msg) msg 127 drivers/mailbox/hi6220-mailbox.c u32 *buf = msg; msg 154 drivers/mailbox/hi6220-mailbox.c u32 msg[MBOX_MSG_LEN]; msg 179 drivers/mailbox/hi6220-mailbox.c msg[i] = readl(mbox->base + msg 182 drivers/mailbox/hi6220-mailbox.c mbox_chan_received_data(chan, (void *)msg); msg 68 drivers/mailbox/mailbox-xgene-slimpro.c static void mb_chan_send_msg(struct slimpro_mbox_chan *mb_chan, u32 *msg) msg 70 drivers/mailbox/mailbox-xgene-slimpro.c writel(msg[1], mb_chan->reg + REG_DB_DOUT0); msg 71 drivers/mailbox/mailbox-xgene-slimpro.c writel(msg[2], mb_chan->reg + REG_DB_DOUT1); msg 72 drivers/mailbox/mailbox-xgene-slimpro.c writel(msg[0], mb_chan->reg + REG_DB_OUT); msg 118 drivers/mailbox/mailbox-xgene-slimpro.c static int slimpro_mbox_send_data(struct mbox_chan *chan, void *msg) msg 122 drivers/mailbox/mailbox-xgene-slimpro.c mb_chan_send_msg(mb_chan, msg); msg 55 drivers/mailbox/omap-mailbox.c unsigned long msg; msg 148 drivers/mailbox/omap-mailbox.c return mbox_read_reg(mbox->parent, fifo->msg); msg 151 drivers/mailbox/omap-mailbox.c static void mbox_fifo_write(struct omap_mbox *mbox, u32 msg) msg 155 drivers/mailbox/omap-mailbox.c mbox_write_reg(mbox->parent, msg, fifo->msg); msg 260 drivers/mailbox/omap-mailbox.c u32 msg; msg 263 drivers/mailbox/omap-mailbox.c while (kfifo_len(&mq->fifo) >= sizeof(msg)) { msg 264 drivers/mailbox/omap-mailbox.c len = kfifo_out(&mq->fifo, (unsigned char *)&msg, sizeof(msg)); msg 265 drivers/mailbox/omap-mailbox.c WARN_ON(len != sizeof(msg)); msg 266 drivers/mailbox/omap-mailbox.c data = msg; msg 291 drivers/mailbox/omap-mailbox.c u32 msg; msg 295 drivers/mailbox/omap-mailbox.c if (unlikely(kfifo_avail(&mq->fifo) < sizeof(msg))) { msg 301 drivers/mailbox/omap-mailbox.c msg = mbox_fifo_read(mbox); msg 303 drivers/mailbox/omap-mailbox.c len = kfifo_in(&mq->fifo, (unsigned char *)&msg, sizeof(msg)); msg 304 drivers/mailbox/omap-mailbox.c WARN_ON(len != sizeof(msg)); msg 545 drivers/mailbox/omap-mailbox.c static int omap_mbox_chan_send_noirq(struct omap_mbox *mbox, u32 msg) msg 551 drivers/mailbox/omap-mailbox.c mbox_fifo_write(mbox, msg); msg 563 drivers/mailbox/omap-mailbox.c static int omap_mbox_chan_send(struct omap_mbox *mbox, u32 msg) msg 568 drivers/mailbox/omap-mailbox.c mbox_fifo_write(mbox, msg); msg 581 drivers/mailbox/omap-mailbox.c u32 msg = omap_mbox_message(data); msg 587 drivers/mailbox/omap-mailbox.c ret = omap_mbox_chan_send_noirq(mbox, msg); msg 589 drivers/mailbox/omap-mailbox.c ret = omap_mbox_chan_send(mbox, msg); msg 805 drivers/mailbox/omap-mailbox.c fifo->msg = MAILBOX_MESSAGE(finfo->tx_id); msg 813 drivers/mailbox/omap-mailbox.c fifo->msg = MAILBOX_MESSAGE(finfo->rx_id); msg 37 drivers/mailbox/rockchip-mailbox.c struct rockchip_mbox_msg *msg; msg 55 drivers/mailbox/rockchip-mailbox.c struct rockchip_mbox_msg *msg = data; msg 58 drivers/mailbox/rockchip-mailbox.c if (!msg) msg 61 drivers/mailbox/rockchip-mailbox.c if (msg->rx_size > mb->buf_size) { msg 68 drivers/mailbox/rockchip-mailbox.c chans->idx, msg->cmd); msg 70 drivers/mailbox/rockchip-mailbox.c mb->chans[chans->idx].msg = msg; msg 72 drivers/mailbox/rockchip-mailbox.c writel_relaxed(msg->cmd, mb->mbox_base + MAILBOX_A2B_CMD(chans->idx)); msg 73 drivers/mailbox/rockchip-mailbox.c writel_relaxed(msg->rx_size, mb->mbox_base + msg 98 drivers/mailbox/rockchip-mailbox.c mb->chans[chans->idx].msg = NULL; msg 128 drivers/mailbox/rockchip-mailbox.c struct rockchip_mbox_msg *msg = NULL; msg 135 drivers/mailbox/rockchip-mailbox.c msg = mb->chans[idx].msg; msg 136 drivers/mailbox/rockchip-mailbox.c if (!msg) { msg 142 drivers/mailbox/rockchip-mailbox.c mbox_chan_received_data(&mb->mbox.chans[idx], msg); msg 143 drivers/mailbox/rockchip-mailbox.c mb->chans[idx].msg = NULL; msg 146 drivers/mailbox/rockchip-mailbox.c idx, msg->cmd); msg 239 drivers/mailbox/rockchip-mailbox.c mb->chans[i].msg = NULL; msg 208 drivers/mailbox/tegra-hsp.c void *msg; msg 248 drivers/mailbox/tegra-hsp.c msg = (void *)(unsigned long)value; msg 249 drivers/mailbox/tegra-hsp.c mbox_chan_received_data(mb->channel.chan, msg); msg 152 drivers/mailbox/zynqmp-ipi-mailbox.c struct zynqmp_ipi_message *msg; msg 168 drivers/mailbox/zynqmp-ipi-mailbox.c msg = mchan->rx_buf; msg 169 drivers/mailbox/zynqmp-ipi-mailbox.c msg->len = mchan->req_buf_size; msg 170 drivers/mailbox/zynqmp-ipi-mailbox.c memcpy_fromio(msg->data, mchan->req_buf, msg 171 drivers/mailbox/zynqmp-ipi-mailbox.c msg->len); msg 172 drivers/mailbox/zynqmp-ipi-mailbox.c mbox_chan_received_data(chan, (void *)msg); msg 270 drivers/mailbox/zynqmp-ipi-mailbox.c struct zynqmp_ipi_message *msg = data; msg 281 drivers/mailbox/zynqmp-ipi-mailbox.c if (msg && msg->len > mchan->req_buf_size) { msg 283 drivers/mailbox/zynqmp-ipi-mailbox.c mchan->chan_type, (unsigned int)msg->len, msg 287 drivers/mailbox/zynqmp-ipi-mailbox.c if (msg && msg->len) msg 288 drivers/mailbox/zynqmp-ipi-mailbox.c memcpy_toio(mchan->req_buf, msg->data, msg->len); msg 294 drivers/mailbox/zynqmp-ipi-mailbox.c if (msg && msg->len > mchan->resp_buf_size) { msg 296 drivers/mailbox/zynqmp-ipi-mailbox.c mchan->chan_type, (unsigned int)msg->len, msg 300 drivers/mailbox/zynqmp-ipi-mailbox.c if (msg && msg->len) msg 301 drivers/mailbox/zynqmp-ipi-mailbox.c memcpy_toio(mchan->resp_buf, msg->data, msg->len); msg 327 drivers/md/dm-integrity.c static void __DEBUG_bytes(__u8 *bytes, size_t len, const char *msg, ...) msg 330 drivers/md/dm-integrity.c va_start(args, msg); msg 331 drivers/md/dm-integrity.c vprintk(msg, args); msg 342 drivers/md/dm-integrity.c #define DEBUG_bytes(bytes, len, msg, ...) __DEBUG_bytes(bytes, len, KERN_DEBUG msg, ##__VA_ARGS__) msg 345 drivers/md/dm-integrity.c #define DEBUG_bytes(bytes, len, msg, ...) do { } while (0) msg 371 drivers/md/dm-integrity.c static void dm_integrity_io_error(struct dm_integrity_c *ic, const char *msg, int err) msg 376 drivers/md/dm-integrity.c DMERR("Error on %s: %d", msg, err); msg 59 drivers/md/dm-log-userspace-transfer.c struct cn_msg *msg = prealloced_cn_msg; msg 61 drivers/md/dm-log-userspace-transfer.c memset(msg, 0, sizeof(struct cn_msg)); msg 63 drivers/md/dm-log-userspace-transfer.c msg->id.idx = ulog_cn_id.idx; msg 64 drivers/md/dm-log-userspace-transfer.c msg->id.val = ulog_cn_id.val; msg 65 drivers/md/dm-log-userspace-transfer.c msg->ack = 0; msg 66 drivers/md/dm-log-userspace-transfer.c msg->seq = tfr->seq; msg 67 drivers/md/dm-log-userspace-transfer.c msg->len = sizeof(struct dm_ulog_request) + tfr->data_size; msg 69 drivers/md/dm-log-userspace-transfer.c r = cn_netlink_send(msg, 0, 0, gfp_any()); msg 82 drivers/md/dm-log-userspace-transfer.c static int fill_pkg(struct cn_msg *msg, struct dm_ulog_request *tfr) msg 84 drivers/md/dm-log-userspace-transfer.c uint32_t rtn_seq = (msg) ? msg->seq : (tfr) ? tfr->seq : 0; msg 101 drivers/md/dm-log-userspace-transfer.c if (msg) { msg 102 drivers/md/dm-log-userspace-transfer.c pkg->error = -msg->ack; msg 133 drivers/md/dm-log-userspace-transfer.c static void cn_ulog_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) msg 135 drivers/md/dm-log-userspace-transfer.c struct dm_ulog_request *tfr = (struct dm_ulog_request *)(msg + 1); msg 141 drivers/md/dm-log-userspace-transfer.c if (msg->len == 0) msg 142 drivers/md/dm-log-userspace-transfer.c fill_pkg(msg, NULL); msg 143 drivers/md/dm-log-userspace-transfer.c else if (msg->len < sizeof(*tfr)) msg 145 drivers/md/dm-log-userspace-transfer.c (unsigned)sizeof(*tfr), msg->len, msg->seq); msg 404 drivers/md/dm-writecache.c #define writecache_error(wc, err, msg, arg...) \ msg 407 drivers/md/dm-writecache.c DMERR(msg, ##arg); \ msg 526 drivers/md/md-cluster.c static void process_metadata_update(struct mddev *mddev, struct cluster_msg *msg) msg 530 drivers/md/md-cluster.c mddev->good_device_nr = le32_to_cpu(msg->raid_slot); msg 541 drivers/md/md-cluster.c static void process_remove_disk(struct mddev *mddev, struct cluster_msg *msg) msg 546 drivers/md/md-cluster.c rdev = md_find_rdev_nr_rcu(mddev, le32_to_cpu(msg->raid_slot)); msg 554 drivers/md/md-cluster.c __func__, __LINE__, le32_to_cpu(msg->raid_slot)); msg 558 drivers/md/md-cluster.c static void process_readd_disk(struct mddev *mddev, struct cluster_msg *msg) msg 563 drivers/md/md-cluster.c rdev = md_find_rdev_nr_rcu(mddev, le32_to_cpu(msg->raid_slot)); msg 568 drivers/md/md-cluster.c __func__, __LINE__, le32_to_cpu(msg->raid_slot)); msg 572 drivers/md/md-cluster.c static int process_recvd_msg(struct mddev *mddev, struct cluster_msg *msg) msg 576 drivers/md/md-cluster.c if (WARN(mddev->cluster_info->slot_number - 1 == le32_to_cpu(msg->slot), msg 577 drivers/md/md-cluster.c "node %d received it's own msg\n", le32_to_cpu(msg->slot))) msg 579 drivers/md/md-cluster.c switch (le32_to_cpu(msg->type)) { msg 581 drivers/md/md-cluster.c process_metadata_update(mddev, msg); msg 589 drivers/md/md-cluster.c process_suspend_info(mddev, le32_to_cpu(msg->slot), msg 590 drivers/md/md-cluster.c le64_to_cpu(msg->low), msg 591 drivers/md/md-cluster.c le64_to_cpu(msg->high)); msg 594 drivers/md/md-cluster.c process_add_new_disk(mddev, msg); msg 597 drivers/md/md-cluster.c process_remove_disk(mddev, msg); msg 600 drivers/md/md-cluster.c process_readd_disk(mddev, msg); msg 603 drivers/md/md-cluster.c __recover_slot(mddev, le32_to_cpu(msg->slot)); msg 606 drivers/md/md-cluster.c if (le64_to_cpu(msg->high) != mddev->pers->size(mddev, 0, 0)) msg 608 drivers/md/md-cluster.c le64_to_cpu(msg->high), 0, 0); msg 613 drivers/md/md-cluster.c __func__, __LINE__, msg->slot); msg 626 drivers/md/md-cluster.c struct cluster_msg msg; msg 638 drivers/md/md-cluster.c memcpy(&msg, message_lockres->lksb.sb_lvbptr, sizeof(struct cluster_msg)); msg 639 drivers/md/md-cluster.c ret = process_recvd_msg(thread->mddev, &msg); msg 27 drivers/media/cec/cec-adap.c struct cec_msg *msg, msg 228 drivers/media/cec/cec-adap.c static void cec_queue_msg_fh(struct cec_fh *fh, const struct cec_msg *msg) msg 242 drivers/media/cec/cec-adap.c entry->msg = *msg; msg 282 drivers/media/cec/cec-adap.c const struct cec_msg *msg, msg 292 drivers/media/cec/cec-adap.c cec_queue_msg_fh(fh, msg); msg 301 drivers/media/cec/cec-adap.c const struct cec_msg *msg) msg 308 drivers/media/cec/cec-adap.c cec_queue_msg_fh(fh, msg); msg 358 drivers/media/cec/cec-adap.c cec_queue_msg_fh(data->fh, &data->msg); msg 380 drivers/media/cec/cec-adap.c if (!(data->msg.tx_status & CEC_TX_STATUS_OK)) msg 385 drivers/media/cec/cec-adap.c if (data->msg.tx_status & CEC_TX_STATUS_OK) { msg 386 drivers/media/cec/cec-adap.c data->msg.rx_ts = ktime_get_ns(); msg 387 drivers/media/cec/cec-adap.c data->msg.rx_status = CEC_RX_STATUS_ABORTED; msg 389 drivers/media/cec/cec-adap.c data->msg.tx_ts = ktime_get_ns(); msg 390 drivers/media/cec/cec-adap.c data->msg.tx_status |= tx_status | msg 392 drivers/media/cec/cec-adap.c data->msg.tx_error_cnt++; msg 397 drivers/media/cec/cec-adap.c cec_queue_msg_monitor(data->adap, &data->msg, 1); msg 512 drivers/media/cec/cec-adap.c adap->transmitting->msg.len, msg 513 drivers/media/cec/cec-adap.c adap->transmitting->msg.msg); msg 548 drivers/media/cec/cec-adap.c if (data->msg.len == 1 && adap->is_configured) msg 558 drivers/media/cec/cec-adap.c cec_msg_initiator(&data->msg)) { msg 561 drivers/media/cec/cec-adap.c adap->last_initiator = cec_msg_initiator(&data->msg); msg 574 drivers/media/cec/cec-adap.c signal_free_time, &data->msg)) msg 596 drivers/media/cec/cec-adap.c struct cec_msg *msg; msg 620 drivers/media/cec/cec-adap.c msg = &data->msg; msg 624 drivers/media/cec/cec-adap.c msg->tx_ts = ktime_to_ns(ts); msg 625 drivers/media/cec/cec-adap.c msg->tx_status |= status; msg 626 drivers/media/cec/cec-adap.c msg->tx_arb_lost_cnt += arb_lost_cnt; msg 627 drivers/media/cec/cec-adap.c msg->tx_nack_cnt += nack_cnt; msg 628 drivers/media/cec/cec-adap.c msg->tx_low_drive_cnt += low_drive_cnt; msg 629 drivers/media/cec/cec-adap.c msg->tx_error_cnt += error_cnt; msg 643 drivers/media/cec/cec-adap.c if (msg->timeout) msg 645 drivers/media/cec/cec-adap.c msg->len, msg->msg, data->attempts, msg->reply); msg 648 drivers/media/cec/cec-adap.c msg->len, msg->msg, data->attempts); msg 659 drivers/media/cec/cec-adap.c msg->tx_status |= CEC_TX_STATUS_MAX_RETRIES; msg 662 drivers/media/cec/cec-adap.c cec_queue_msg_monitor(adap, msg, 1); msg 665 drivers/media/cec/cec-adap.c msg->timeout) { msg 672 drivers/media/cec/cec-adap.c msecs_to_jiffies(msg->timeout)); msg 733 drivers/media/cec/cec-adap.c data->msg.rx_ts = ktime_get_ns(); msg 734 drivers/media/cec/cec-adap.c data->msg.rx_status = CEC_RX_STATUS_TIMEOUT; msg 746 drivers/media/cec/cec-adap.c int cec_transmit_msg_fh(struct cec_adapter *adap, struct cec_msg *msg, msg 750 drivers/media/cec/cec-adap.c bool is_raw = msg_is_raw(msg); msg 752 drivers/media/cec/cec-adap.c msg->rx_ts = 0; msg 753 drivers/media/cec/cec-adap.c msg->tx_ts = 0; msg 754 drivers/media/cec/cec-adap.c msg->rx_status = 0; msg 755 drivers/media/cec/cec-adap.c msg->tx_status = 0; msg 756 drivers/media/cec/cec-adap.c msg->tx_arb_lost_cnt = 0; msg 757 drivers/media/cec/cec-adap.c msg->tx_nack_cnt = 0; msg 758 drivers/media/cec/cec-adap.c msg->tx_low_drive_cnt = 0; msg 759 drivers/media/cec/cec-adap.c msg->tx_error_cnt = 0; msg 760 drivers/media/cec/cec-adap.c msg->sequence = 0; msg 762 drivers/media/cec/cec-adap.c if (msg->reply && msg->timeout == 0) { msg 764 drivers/media/cec/cec-adap.c msg->timeout = 1000; msg 766 drivers/media/cec/cec-adap.c msg->flags &= CEC_MSG_FL_REPLY_TO_FOLLOWERS | CEC_MSG_FL_RAW; msg 768 drivers/media/cec/cec-adap.c if (!msg->timeout) msg 769 drivers/media/cec/cec-adap.c msg->flags &= ~CEC_MSG_FL_REPLY_TO_FOLLOWERS; msg 772 drivers/media/cec/cec-adap.c if (msg->len == 0 || msg->len > CEC_MAX_MSG_SIZE) { msg 773 drivers/media/cec/cec-adap.c dprintk(1, "%s: invalid length %d\n", __func__, msg->len); msg 777 drivers/media/cec/cec-adap.c memset(msg->msg + msg->len, 0, sizeof(msg->msg) - msg->len); msg 779 drivers/media/cec/cec-adap.c if (msg->timeout) msg 781 drivers/media/cec/cec-adap.c __func__, msg->len, msg->msg, msg->reply, msg 785 drivers/media/cec/cec-adap.c __func__, msg->len, msg->msg, !block ? " (nb)" : ""); msg 787 drivers/media/cec/cec-adap.c if (msg->timeout && msg->len == 1) { msg 798 drivers/media/cec/cec-adap.c (msg->len == 1 || msg->msg[1] != CEC_MSG_CDC_MESSAGE)) { msg 803 drivers/media/cec/cec-adap.c if (msg->len >= 4 && msg->msg[1] == CEC_MSG_CDC_MESSAGE) { msg 804 drivers/media/cec/cec-adap.c msg->msg[2] = adap->phys_addr >> 8; msg 805 drivers/media/cec/cec-adap.c msg->msg[3] = adap->phys_addr & 0xff; msg 808 drivers/media/cec/cec-adap.c if (msg->len == 1) { msg 809 drivers/media/cec/cec-adap.c if (cec_msg_destination(msg) == 0xf) { msg 814 drivers/media/cec/cec-adap.c if (cec_has_log_addr(adap, cec_msg_destination(msg))) { msg 823 drivers/media/cec/cec-adap.c msg->tx_ts = ktime_get_ns(); msg 824 drivers/media/cec/cec-adap.c msg->tx_status = CEC_TX_STATUS_NACK | msg 826 drivers/media/cec/cec-adap.c msg->tx_nack_cnt = 1; msg 827 drivers/media/cec/cec-adap.c msg->sequence = ++adap->sequence; msg 828 drivers/media/cec/cec-adap.c if (!msg->sequence) msg 829 drivers/media/cec/cec-adap.c msg->sequence = ++adap->sequence; msg 833 drivers/media/cec/cec-adap.c if (msg->len > 1 && !cec_msg_is_broadcast(msg) && msg 834 drivers/media/cec/cec-adap.c cec_has_log_addr(adap, cec_msg_destination(msg))) { msg 839 drivers/media/cec/cec-adap.c if (msg->len > 1 && adap->is_configured && msg 840 drivers/media/cec/cec-adap.c !cec_has_log_addr(adap, cec_msg_initiator(msg))) { msg 842 drivers/media/cec/cec-adap.c __func__, cec_msg_initiator(msg)); msg 852 drivers/media/cec/cec-adap.c (msg->len > 2 || msg 853 drivers/media/cec/cec-adap.c cec_msg_destination(msg) != CEC_LOG_ADDR_TV || msg 854 drivers/media/cec/cec-adap.c (msg->len == 2 && msg->msg[1] != CEC_MSG_IMAGE_VIEW_ON && msg 855 drivers/media/cec/cec-adap.c msg->msg[1] != CEC_MSG_TEXT_VIEW_ON))) { msg 867 drivers/media/cec/cec-adap.c if (msg->reply) { msg 882 drivers/media/cec/cec-adap.c msg->sequence = ++adap->sequence; msg 883 drivers/media/cec/cec-adap.c if (!msg->sequence) msg 884 drivers/media/cec/cec-adap.c msg->sequence = ++adap->sequence; msg 886 drivers/media/cec/cec-adap.c data->msg = *msg; msg 920 drivers/media/cec/cec-adap.c *msg = data->msg; msg 926 drivers/media/cec/cec-adap.c int cec_transmit_msg(struct cec_adapter *adap, struct cec_msg *msg, msg 932 drivers/media/cec/cec-adap.c ret = cec_transmit_msg_fh(adap, msg, NULL, block); msg 943 drivers/media/cec/cec-adap.c static int cec_receive_notify(struct cec_adapter *adap, struct cec_msg *msg, msg 1037 drivers/media/cec/cec-adap.c struct cec_msg *msg, ktime_t ts) msg 1040 drivers/media/cec/cec-adap.c u8 msg_init = cec_msg_initiator(msg); msg 1041 drivers/media/cec/cec-adap.c u8 msg_dest = cec_msg_destination(msg); msg 1042 drivers/media/cec/cec-adap.c u8 cmd = msg->msg[1]; msg 1047 drivers/media/cec/cec-adap.c if (WARN_ON(!msg->len || msg->len > CEC_MAX_MSG_SIZE)) msg 1065 drivers/media/cec/cec-adap.c msg->rx_ts = ktime_to_ns(ts); msg 1066 drivers/media/cec/cec-adap.c msg->rx_status = CEC_RX_STATUS_OK; msg 1067 drivers/media/cec/cec-adap.c msg->sequence = msg->reply = msg->timeout = 0; msg 1068 drivers/media/cec/cec-adap.c msg->tx_status = 0; msg 1069 drivers/media/cec/cec-adap.c msg->tx_ts = 0; msg 1070 drivers/media/cec/cec-adap.c msg->tx_arb_lost_cnt = 0; msg 1071 drivers/media/cec/cec-adap.c msg->tx_nack_cnt = 0; msg 1072 drivers/media/cec/cec-adap.c msg->tx_low_drive_cnt = 0; msg 1073 drivers/media/cec/cec-adap.c msg->tx_error_cnt = 0; msg 1074 drivers/media/cec/cec-adap.c msg->flags = 0; msg 1075 drivers/media/cec/cec-adap.c memset(msg->msg + msg->len, 0, sizeof(msg->msg) - msg->len); msg 1078 drivers/media/cec/cec-adap.c dprintk(2, "%s: %*ph\n", __func__, msg->len, msg->msg); msg 1083 drivers/media/cec/cec-adap.c if (!cec_msg_is_broadcast(msg)) msg 1092 drivers/media/cec/cec-adap.c if (valid_la && msg->len > 1 && cec_msg_size[cmd]) { msg 1096 drivers/media/cec/cec-adap.c if (msg->len < min_len) msg 1098 drivers/media/cec/cec-adap.c else if (!cec_msg_is_broadcast(msg) && !(dir_fl & DIRECTED)) msg 1100 drivers/media/cec/cec-adap.c else if (cec_msg_is_broadcast(msg) && !(dir_fl & BCAST)) msg 1102 drivers/media/cec/cec-adap.c else if (cec_msg_is_broadcast(msg) && msg 1111 drivers/media/cec/cec-adap.c if (msg->msg[2] & 0x10) { msg 1112 drivers/media/cec/cec-adap.c switch (msg->msg[2] & 0xf) { msg 1115 drivers/media/cec/cec-adap.c if (msg->len < 5) msg 1119 drivers/media/cec/cec-adap.c } else if ((msg->msg[2] & 0xf) == CEC_OP_PROG_ERROR_DUPLICATE) { msg 1120 drivers/media/cec/cec-adap.c if (msg->len < 5) msg 1125 drivers/media/cec/cec-adap.c switch (msg->msg[2]) { msg 1129 drivers/media/cec/cec-adap.c if (msg->len < 10) msg 1133 drivers/media/cec/cec-adap.c if (msg->len < 7) msg 1137 drivers/media/cec/cec-adap.c if (msg->len < 4) msg 1141 drivers/media/cec/cec-adap.c if (msg->len < 5) msg 1150 drivers/media/cec/cec-adap.c if (valid_la && msg->len > 1 && cmd != CEC_MSG_CDC_MESSAGE) { msg 1155 drivers/media/cec/cec-adap.c cmd = msg->msg[2]; msg 1162 drivers/media/cec/cec-adap.c struct cec_msg *dst = &data->msg; msg 1169 drivers/media/cec/cec-adap.c if (!abort && dst->msg[1] == CEC_MSG_INITIATE_ARC && msg 1177 drivers/media/cec/cec-adap.c if ((abort && cmd != dst->msg[1]) || msg 1187 drivers/media/cec/cec-adap.c memcpy(dst->msg, msg->msg, msg->len); msg 1188 drivers/media/cec/cec-adap.c dst->len = msg->len; msg 1189 drivers/media/cec/cec-adap.c dst->rx_ts = msg->rx_ts; msg 1190 drivers/media/cec/cec-adap.c dst->rx_status = msg->rx_status; msg 1193 drivers/media/cec/cec-adap.c msg->flags = dst->flags; msg 1216 drivers/media/cec/cec-adap.c cec_queue_msg_monitor(adap, msg, valid_la); msg 1219 drivers/media/cec/cec-adap.c if (!valid_la || msg->len <= 1) msg 1230 drivers/media/cec/cec-adap.c cec_receive_notify(adap, msg, is_reply); msg 1246 drivers/media/cec/cec-adap.c struct cec_msg msg = { }; msg 1255 drivers/media/cec/cec-adap.c msg.len = 1; msg 1256 drivers/media/cec/cec-adap.c msg.msg[0] = (log_addr << 4) | log_addr; msg 1259 drivers/media/cec/cec-adap.c err = cec_transmit_msg_fh(adap, &msg, NULL, true); msg 1275 drivers/media/cec/cec-adap.c if (msg.tx_status & CEC_TX_STATUS_ABORTED) msg 1277 drivers/media/cec/cec-adap.c if (msg.tx_status & CEC_TX_STATUS_OK) msg 1279 drivers/media/cec/cec-adap.c if (msg.tx_status & CEC_TX_STATUS_NACK) msg 1477 drivers/media/cec/cec-adap.c struct cec_msg msg = {}; msg 1483 drivers/media/cec/cec-adap.c msg.msg[0] = (las->log_addr[i] << 4) | 0x0f; msg 1488 drivers/media/cec/cec-adap.c cec_fill_msg_report_features(adap, &msg, i); msg 1489 drivers/media/cec/cec-adap.c cec_transmit_msg_fh(adap, &msg, NULL, false); msg 1493 drivers/media/cec/cec-adap.c cec_msg_report_physical_addr(&msg, adap->phys_addr, msg 1498 drivers/media/cec/cec-adap.c cec_transmit_msg_fh(adap, &msg, NULL, false); msg 1502 drivers/media/cec/cec-adap.c cec_msg_device_vendor_id(&msg, msg 1504 drivers/media/cec/cec-adap.c cec_transmit_msg_fh(adap, &msg, NULL, false); msg 1825 drivers/media/cec/cec-adap.c struct cec_msg *msg, msg 1834 drivers/media/cec/cec-adap.c msg->msg[0] = (las->log_addr[la_idx] << 4) | 0x0f; msg 1835 drivers/media/cec/cec-adap.c msg->len = 4; msg 1836 drivers/media/cec/cec-adap.c msg->msg[1] = CEC_MSG_REPORT_FEATURES; msg 1837 drivers/media/cec/cec-adap.c msg->msg[2] = adap->log_addrs.cec_version; msg 1838 drivers/media/cec/cec-adap.c msg->msg[3] = las->all_device_types[la_idx]; msg 1842 drivers/media/cec/cec-adap.c msg->msg[msg->len++] = features[idx]; msg 1853 drivers/media/cec/cec-adap.c struct cec_msg *msg, u8 reason) msg 1861 drivers/media/cec/cec-adap.c if (msg->msg[1] == CEC_MSG_FEATURE_ABORT) msg 1864 drivers/media/cec/cec-adap.c if (cec_msg_initiator(msg) == CEC_LOG_ADDR_UNREGISTERED) msg 1866 drivers/media/cec/cec-adap.c cec_msg_set_reply_to(&tx_msg, msg); msg 1867 drivers/media/cec/cec-adap.c cec_msg_feature_abort(&tx_msg, msg->msg[1], reason); msg 1871 drivers/media/cec/cec-adap.c static int cec_feature_abort(struct cec_adapter *adap, struct cec_msg *msg) msg 1873 drivers/media/cec/cec-adap.c return cec_feature_abort_reason(adap, msg, msg 1877 drivers/media/cec/cec-adap.c static int cec_feature_refused(struct cec_adapter *adap, struct cec_msg *msg) msg 1879 drivers/media/cec/cec-adap.c return cec_feature_abort_reason(adap, msg, msg 1890 drivers/media/cec/cec-adap.c static int cec_receive_notify(struct cec_adapter *adap, struct cec_msg *msg, msg 1893 drivers/media/cec/cec-adap.c bool is_broadcast = cec_msg_is_broadcast(msg); msg 1894 drivers/media/cec/cec-adap.c u8 dest_laddr = cec_msg_destination(msg); msg 1895 drivers/media/cec/cec-adap.c u8 init_laddr = cec_msg_initiator(msg); msg 1901 drivers/media/cec/cec-adap.c dprintk(2, "%s: %*ph\n", __func__, msg->len, msg->msg); msg 1905 drivers/media/cec/cec-adap.c msg->msg[1] != CEC_MSG_CDC_MESSAGE) msg 1910 drivers/media/cec/cec-adap.c if (adap->ops->received(adap, msg) != -ENOMSG) msg 1920 drivers/media/cec/cec-adap.c switch (msg->msg[1]) { msg 1968 drivers/media/cec/cec-adap.c cec_msg_set_reply_to(&tx_cec_msg, msg); msg 1970 drivers/media/cec/cec-adap.c switch (msg->msg[1]) { msg 1973 drivers/media/cec/cec-adap.c u16 pa = (msg->msg[2] << 8) | msg->msg[3]; msg 1988 drivers/media/cec/cec-adap.c switch (msg->msg[2]) { msg 1994 drivers/media/cec/cec-adap.c if (msg->len == 2) msg 1996 drivers/media/cec/cec-adap.c msg->msg[2], 0); msg 1999 drivers/media/cec/cec-adap.c msg->msg[2] << 8 | msg->msg[3], 0); msg 2014 drivers/media/cec/cec-adap.c rc_keydown(adap->rc, RC_PROTO_CEC, msg->msg[2], 0); msg 2046 drivers/media/cec/cec-adap.c return cec_feature_abort(adap, msg); msg 2054 drivers/media/cec/cec-adap.c return cec_feature_refused(adap, msg); msg 2058 drivers/media/cec/cec-adap.c return cec_feature_abort(adap, msg); msg 2065 drivers/media/cec/cec-adap.c return cec_feature_abort(adap, msg); msg 2075 drivers/media/cec/cec-adap.c !adap->cec_follower && msg->msg[1] != CEC_MSG_FEATURE_ABORT) msg 2076 drivers/media/cec/cec-adap.c return cec_feature_abort(adap, msg); msg 2082 drivers/media/cec/cec-adap.c if (is_reply && !(msg->flags & CEC_MSG_FL_REPLY_TO_FOLLOWERS)) msg 2090 drivers/media/cec/cec-adap.c cec_queue_msg_fh(adap->cec_follower, msg); msg 2092 drivers/media/cec/cec-adap.c cec_queue_msg_followers(adap, msg); msg 2175 drivers/media/cec/cec-adap.c data->msg.len, data->msg.msg, data->msg.reply, msg 2176 drivers/media/cec/cec-adap.c data->msg.timeout); msg 2180 drivers/media/cec/cec-adap.c data->msg.len, data->msg.msg, data->msg.reply, msg 2181 drivers/media/cec/cec-adap.c data->msg.timeout); msg 2185 drivers/media/cec/cec-adap.c data->msg.len, data->msg.msg, data->msg.reply, msg 2186 drivers/media/cec/cec-adap.c data->msg.timeout); msg 193 drivers/media/cec/cec-api.c struct cec_msg msg = {}; msg 198 drivers/media/cec/cec-api.c if (copy_from_user(&msg, parg, sizeof(msg))) msg 209 drivers/media/cec/cec-api.c err = cec_transmit_msg_fh(adap, &msg, fh, block); msg 213 drivers/media/cec/cec-api.c if (copy_to_user(parg, &msg, sizeof(msg))) msg 219 drivers/media/cec/cec-api.c static int cec_receive_msg(struct cec_fh *fh, struct cec_msg *msg, bool block) msg 221 drivers/media/cec/cec-api.c u32 timeout = msg->timeout; msg 234 drivers/media/cec/cec-api.c *msg = entry->msg; msg 239 drivers/media/cec/cec-api.c msg->timeout = timeout; msg 250 drivers/media/cec/cec-api.c if (msg->timeout) { msg 254 drivers/media/cec/cec-api.c msecs_to_jiffies(msg->timeout)); msg 272 drivers/media/cec/cec-api.c struct cec_msg msg = {}; msg 275 drivers/media/cec/cec-api.c if (copy_from_user(&msg, parg, sizeof(msg))) msg 278 drivers/media/cec/cec-api.c err = cec_receive_msg(fh, &msg, block); msg 281 drivers/media/cec/cec-api.c msg.flags = 0; msg 282 drivers/media/cec/cec-api.c if (copy_to_user(parg, &msg, sizeof(msg))) msg 56 drivers/media/cec/cec-pin-error-inj.c cmd = pin->rx_msg.msg[1]; msg 67 drivers/media/cec/cec-pin-error-inj.c cmd = pin->tx_msg.msg[1]; msg 331 drivers/media/cec/cec-pin.c memset(pin->rx_msg.msg, 0, sizeof(pin->rx_msg.msg)); msg 503 drivers/media/cec/cec-pin.c val = pin->tx_msg.msg[idx]; msg 583 drivers/media/cec/cec-pin.c memset(pin->rx_msg.msg, 0, sizeof(pin->rx_msg.msg)); msg 584 drivers/media/cec/cec-pin.c pin->rx_msg.msg[0] = pin->tx_msg.msg[0]; msg 585 drivers/media/cec/cec-pin.c pin->rx_msg.msg[0] &= (0xff << (8 - pin->rx_bit)); msg 728 drivers/media/cec/cec-pin.c pin->rx_msg.msg[pin->rx_bit / 10] |= msg 1046 drivers/media/cec/cec-pin.c struct cec_msg *msg = &pin->work_rx_msg; msg 1048 drivers/media/cec/cec-pin.c if (msg->len > 1 && msg->len < CEC_MAX_MSG_SIZE && msg 1051 drivers/media/cec/cec-pin.c msg->msg[msg->len++] = 0x55; msg 1053 drivers/media/cec/cec-pin.c if (msg->len > 2 && rx_remove_byte(pin)) { msg 1055 drivers/media/cec/cec-pin.c msg->len--; msg 1057 drivers/media/cec/cec-pin.c if (msg->len > CEC_MAX_MSG_SIZE) msg 1058 drivers/media/cec/cec-pin.c msg->len = CEC_MAX_MSG_SIZE; msg 1059 drivers/media/cec/cec-pin.c cec_received_msg_ts(adap, msg, msg 1061 drivers/media/cec/cec-pin.c msg->len = 0; msg 1168 drivers/media/cec/cec-pin.c u32 signal_free_time, struct cec_msg *msg) msg 1183 drivers/media/cec/cec-pin.c pin->tx_msg = *msg; msg 1184 drivers/media/cec/cec-pin.c if (msg->len > 1) { msg 1188 drivers/media/cec/cec-pin.c if (msg->len > 2 && tx_remove_byte(pin)) { msg 23 drivers/media/cec/cec-priv.h static inline bool msg_is_raw(const struct cec_msg *msg) msg 25 drivers/media/cec/cec-priv.h return msg->flags & CEC_MSG_FL_RAW; msg 43 drivers/media/cec/cec-priv.h int cec_transmit_msg_fh(struct cec_adapter *adap, struct cec_msg *msg, msg 129 drivers/media/common/b2c2/flexcop-fe-tuner.c int len, u8 *msg, unsigned long burst) msg 137 drivers/media/common/b2c2/flexcop-fe-tuner.c flexcop_diseqc_send_byte(fe,msg[i]); msg 157 drivers/media/common/b2c2/flexcop-fe-tuner.c return flexcop_send_diseqc_msg(fe, cmd->msg_len, cmd->msg, 0); msg 382 drivers/media/common/saa7146/saa7146_i2c.c static int saa7146_i2c_xfer(struct i2c_adapter* adapter, struct i2c_msg *msg, int num) msg 388 drivers/media/common/saa7146/saa7146_i2c.c return saa7146_i2c_transfer(dev, msg, num, adapter->retries); msg 375 drivers/media/common/siano/smscoreapi.c char *msg; msg 380 drivers/media/common/siano/smscoreapi.c msg = siano_msgs[i]; msg 382 drivers/media/common/siano/smscoreapi.c if (!*msg) msg 385 drivers/media/common/siano/smscoreapi.c return msg; msg 791 drivers/media/common/siano/smscoreapi.c struct sms_msg_data2 *msg = msg 795 drivers/media/common/siano/smscoreapi.c SMS_INIT_MSG(&msg->x_msg_header, msg 798 drivers/media/common/siano/smscoreapi.c msg->msg_data[0] = coredev->ir.controller; msg 799 drivers/media/common/siano/smscoreapi.c msg->msg_data[1] = coredev->ir.timeout; msg 801 drivers/media/common/siano/smscoreapi.c rc = smscore_sendrequest_and_wait(coredev, msg, msg 802 drivers/media/common/siano/smscoreapi.c msg->x_msg_header. msg_length, msg 911 drivers/media/common/siano/smscoreapi.c struct sms_msg_data4 *msg; msg 930 drivers/media/common/siano/smscoreapi.c msg = kmalloc(PAGE_SIZE, GFP_KERNEL | coredev->gfp_buf_flags); msg 931 drivers/media/common/siano/smscoreapi.c if (!msg) msg 936 drivers/media/common/siano/smscoreapi.c SMS_INIT_MSG(&msg->x_msg_header, MSG_SW_RELOAD_START_REQ, msg 938 drivers/media/common/siano/smscoreapi.c rc = smscore_sendrequest_and_wait(coredev, msg, msg 939 drivers/media/common/siano/smscoreapi.c msg->x_msg_header.msg_length, msg 954 drivers/media/common/siano/smscoreapi.c (struct sms_data_download *) msg; msg 957 drivers/media/common/siano/smscoreapi.c SMS_INIT_MSG(&msg->x_msg_header, MSG_SMS_DATA_DOWNLOAD_REQ, msg 978 drivers/media/common/siano/smscoreapi.c SMS_INIT_MSG(&msg->x_msg_header, MSG_SMS_DATA_VALIDITY_REQ, msg 979 drivers/media/common/siano/smscoreapi.c sizeof(msg->x_msg_header) + msg 981 drivers/media/common/siano/smscoreapi.c msg->msg_data[0] = firmware->start_address; msg 983 drivers/media/common/siano/smscoreapi.c msg->msg_data[1] = firmware->length; msg 984 drivers/media/common/siano/smscoreapi.c msg->msg_data[2] = 0; /* Regular checksum*/ msg 985 drivers/media/common/siano/smscoreapi.c rc = smscore_sendrequest_and_wait(coredev, msg, msg 986 drivers/media/common/siano/smscoreapi.c msg->x_msg_header.msg_length, msg 993 drivers/media/common/siano/smscoreapi.c (struct sms_msg_data *) msg; msg 996 drivers/media/common/siano/smscoreapi.c SMS_INIT_MSG(&msg->x_msg_header, msg 1012 drivers/media/common/siano/smscoreapi.c SMS_INIT_MSG(&msg->x_msg_header, MSG_SW_RELOAD_EXEC_REQ, msg 1014 drivers/media/common/siano/smscoreapi.c rc = coredev->sendrequest_handler(coredev->context, msg, msg 1015 drivers/media/common/siano/smscoreapi.c msg->x_msg_header.msg_length); msg 1028 drivers/media/common/siano/smscoreapi.c kfree(msg); msg 1258 drivers/media/common/siano/smscoreapi.c struct sms_msg_hdr *msg = msg 1265 drivers/media/common/siano/smscoreapi.c SMS_INIT_MSG(msg, MSG_SMS_GET_VERSION_EX_REQ, msg 1268 drivers/media/common/siano/smscoreapi.c rc = smscore_sendrequest_and_wait(coredev, msg, msg->msg_length, msg 1276 drivers/media/common/siano/smscoreapi.c coredev, msg, msg->msg_length, msg 1302 drivers/media/common/siano/smscoreapi.c struct sms_msg_data *msg; msg 1310 drivers/media/common/siano/smscoreapi.c msg = (struct sms_msg_data *)SMS_ALIGN_ADDRESS(buffer); msg 1311 drivers/media/common/siano/smscoreapi.c SMS_INIT_MSG(&msg->x_msg_header, MSG_SMS_INIT_DEVICE_REQ, msg 1313 drivers/media/common/siano/smscoreapi.c msg->msg_data[0] = mode; msg 1315 drivers/media/common/siano/smscoreapi.c rc = smscore_sendrequest_and_wait(coredev, msg, msg 1316 drivers/media/common/siano/smscoreapi.c msg->x_msg_header. msg_length, msg 1397 drivers/media/common/siano/smscoreapi.c struct sms_msg_data *msg = (struct sms_msg_data *) SMS_ALIGN_ADDRESS(buffer); msg 1399 drivers/media/common/siano/smscoreapi.c SMS_INIT_MSG(&msg->x_msg_header, MSG_SMS_INIT_DEVICE_REQ, msg 1401 drivers/media/common/siano/smscoreapi.c msg->msg_data[0] = mode; msg 1404 drivers/media/common/siano/smscoreapi.c coredev, msg, msg->x_msg_header.msg_length, msg 1827 drivers/media/common/siano/smscoreapi.c } msg; msg 1830 drivers/media/common/siano/smscoreapi.c msg.hdr.msg_src_id = DVBT_BDA_CONTROL_MSG_ID; msg 1831 drivers/media/common/siano/smscoreapi.c msg.hdr.msg_dst_id = HIF_TASK; msg 1832 drivers/media/common/siano/smscoreapi.c msg.hdr.msg_flags = 0; msg 1833 drivers/media/common/siano/smscoreapi.c msg.hdr.msg_type = MSG_SMS_GPIO_CONFIG_EX_REQ; msg 1834 drivers/media/common/siano/smscoreapi.c msg.hdr.msg_length = sizeof(msg); msg 1836 drivers/media/common/siano/smscoreapi.c msg.data[0] = pin; msg 1837 drivers/media/common/siano/smscoreapi.c msg.data[1] = pinconfig->pullupdown; msg 1840 drivers/media/common/siano/smscoreapi.c msg.data[2] = pinconfig->outputslewrate == 0 ? 3 : 0; msg 1844 drivers/media/common/siano/smscoreapi.c msg.data[3] = 7; /* Nova - 16mA */ msg 1847 drivers/media/common/siano/smscoreapi.c msg.data[3] = 5; /* Nova - 11mA */ msg 1850 drivers/media/common/siano/smscoreapi.c msg.data[3] = 3; /* Nova - 7mA */ msg 1854 drivers/media/common/siano/smscoreapi.c msg.data[3] = 2; /* Nova - 4mA */ msg 1858 drivers/media/common/siano/smscoreapi.c msg.data[4] = pinconfig->direction; msg 1859 drivers/media/common/siano/smscoreapi.c msg.data[5] = 0; msg 1864 drivers/media/common/siano/smscoreapi.c &msg, sizeof(msg)); msg 1872 drivers/media/common/siano/smscoreapi.c } msg; msg 1877 drivers/media/common/siano/smscoreapi.c msg.hdr.msg_src_id = DVBT_BDA_CONTROL_MSG_ID; msg 1878 drivers/media/common/siano/smscoreapi.c msg.hdr.msg_dst_id = HIF_TASK; msg 1879 drivers/media/common/siano/smscoreapi.c msg.hdr.msg_flags = 0; msg 1880 drivers/media/common/siano/smscoreapi.c msg.hdr.msg_type = MSG_SMS_GPIO_SET_LEVEL_REQ; msg 1881 drivers/media/common/siano/smscoreapi.c msg.hdr.msg_length = sizeof(msg); msg 1883 drivers/media/common/siano/smscoreapi.c msg.data[0] = pin; msg 1884 drivers/media/common/siano/smscoreapi.c msg.data[1] = level ? 1 : 0; msg 1885 drivers/media/common/siano/smscoreapi.c msg.data[2] = 0; msg 1888 drivers/media/common/siano/smscoreapi.c &msg, sizeof(msg)); msg 702 drivers/media/common/siano/smsdvb-main.c struct sms_msg_hdr msg; msg 710 drivers/media/common/siano/smsdvb-main.c msg.msg_src_id = DVBT_BDA_CONTROL_MSG_ID; msg 711 drivers/media/common/siano/smsdvb-main.c msg.msg_dst_id = HIF_TASK; msg 712 drivers/media/common/siano/smsdvb-main.c msg.msg_flags = 0; msg 713 drivers/media/common/siano/smsdvb-main.c msg.msg_length = sizeof(msg); msg 722 drivers/media/common/siano/smsdvb-main.c msg.msg_type = MSG_SMS_GET_STATISTICS_EX_REQ; msg 724 drivers/media/common/siano/smsdvb-main.c msg.msg_type = MSG_SMS_GET_STATISTICS_REQ; msg 727 drivers/media/common/siano/smsdvb-main.c msg.msg_type = MSG_SMS_GET_STATISTICS_REQ; msg 730 drivers/media/common/siano/smsdvb-main.c rc = smsdvb_sendrequest_and_wait(client, &msg, sizeof(msg), msg 853 drivers/media/common/siano/smsdvb-main.c struct sms_msg_hdr msg; msg 855 drivers/media/common/siano/smsdvb-main.c } msg; msg 864 drivers/media/common/siano/smsdvb-main.c msg.msg.msg_src_id = DVBT_BDA_CONTROL_MSG_ID; msg 865 drivers/media/common/siano/smsdvb-main.c msg.msg.msg_dst_id = HIF_TASK; msg 866 drivers/media/common/siano/smsdvb-main.c msg.msg.msg_flags = 0; msg 867 drivers/media/common/siano/smsdvb-main.c msg.msg.msg_type = MSG_SMS_RF_TUNE_REQ; msg 868 drivers/media/common/siano/smsdvb-main.c msg.msg.msg_length = sizeof(msg); msg 869 drivers/media/common/siano/smsdvb-main.c msg.Data[0] = c->frequency; msg 870 drivers/media/common/siano/smsdvb-main.c msg.Data[2] = 12000000; msg 877 drivers/media/common/siano/smsdvb-main.c msg.Data[1] = BW_8_MHZ; msg 880 drivers/media/common/siano/smsdvb-main.c msg.Data[1] = BW_7_MHZ; msg 883 drivers/media/common/siano/smsdvb-main.c msg.Data[1] = BW_6_MHZ; msg 896 drivers/media/common/siano/smsdvb-main.c ret = smsdvb_sendrequest_and_wait(client, &msg, sizeof(msg), msg 908 drivers/media/common/siano/smsdvb-main.c return smsdvb_sendrequest_and_wait(client, &msg, sizeof(msg), msg 923 drivers/media/common/siano/smsdvb-main.c struct sms_msg_hdr msg; msg 925 drivers/media/common/siano/smsdvb-main.c } msg; msg 929 drivers/media/common/siano/smsdvb-main.c msg.msg.msg_src_id = DVBT_BDA_CONTROL_MSG_ID; msg 930 drivers/media/common/siano/smsdvb-main.c msg.msg.msg_dst_id = HIF_TASK; msg 931 drivers/media/common/siano/smsdvb-main.c msg.msg.msg_flags = 0; msg 932 drivers/media/common/siano/smsdvb-main.c msg.msg.msg_type = MSG_SMS_ISDBT_TUNE_REQ; msg 933 drivers/media/common/siano/smsdvb-main.c msg.msg.msg_length = sizeof(msg); msg 941 drivers/media/common/siano/smsdvb-main.c msg.Data[0] = c->frequency; msg 942 drivers/media/common/siano/smsdvb-main.c msg.Data[1] = BW_ISDBT_1SEG; msg 943 drivers/media/common/siano/smsdvb-main.c msg.Data[2] = 12000000; msg 944 drivers/media/common/siano/smsdvb-main.c msg.Data[3] = c->isdbt_sb_segment_idx; msg 949 drivers/media/common/siano/smsdvb-main.c msg.Data[1] = BW_ISDBT_13SEG; msg 951 drivers/media/common/siano/smsdvb-main.c msg.Data[1] = BW_ISDBT_3SEG; msg 953 drivers/media/common/siano/smsdvb-main.c msg.Data[1] = BW_ISDBT_13SEG; msg 967 drivers/media/common/siano/smsdvb-main.c ret = smsdvb_sendrequest_and_wait(client, &msg, sizeof(msg), msg 978 drivers/media/common/siano/smsdvb-main.c return smsdvb_sendrequest_and_wait(client, &msg, sizeof(msg), msg 20 drivers/media/common/siano/smsendian.c struct sms_msg_data *msg = (struct sms_msg_data *)buffer; msg 24 drivers/media/common/siano/smsendian.c switch (msg->x_msg_header.msg_type) { msg 27 drivers/media/common/siano/smsendian.c msg->msg_data[0] = le32_to_cpu((__force __le32)(msg->msg_data[0])); msg 32 drivers/media/common/siano/smsendian.c msg_words = (msg->x_msg_header.msg_length - msg 36 drivers/media/common/siano/smsendian.c msg->msg_data[i] = le32_to_cpu((__force __le32)msg->msg_data[i]); msg 47 drivers/media/common/siano/smsendian.c struct sms_msg_data *msg = (struct sms_msg_data *)buffer; msg 51 drivers/media/common/siano/smsendian.c switch (msg->x_msg_header.msg_type) { msg 55 drivers/media/common/siano/smsendian.c (struct sms_version_res *) msg; msg 69 drivers/media/common/siano/smsendian.c msg_words = (msg->x_msg_header.msg_length - msg 73 drivers/media/common/siano/smsendian.c msg->msg_data[i] = le32_to_cpu((__force __le32)msg->msg_data[i]); msg 82 drivers/media/common/siano/smsendian.c void smsendian_handle_message_header(void *msg) msg 85 drivers/media/common/siano/smsendian.c struct sms_msg_hdr *phdr = (struct sms_msg_hdr *)msg; msg 18 drivers/media/common/siano/smsendian.h extern void smsendian_handle_message_header(void *msg); msg 2521 drivers/media/dvb-core/dvb_frontend.c if (cmd->msg_len > sizeof(cmd->msg)) { msg 1284 drivers/media/dvb-frontends/af9013.c struct i2c_msg msg[1] = { msg 1305 drivers/media/dvb-frontends/af9013.c ret = __i2c_transfer(client->adapter, msg, 1); msg 1326 drivers/media/dvb-frontends/af9013.c struct i2c_msg msg[2] = { msg 1346 drivers/media/dvb-frontends/af9013.c ret = __i2c_transfer(client->adapter, msg, 2); msg 117 drivers/media/dvb-frontends/ascot2e.c struct i2c_msg msg[1] = { msg 135 drivers/media/dvb-frontends/ascot2e.c ret = i2c_transfer(priv->i2c, msg, 1); msg 158 drivers/media/dvb-frontends/ascot2e.c struct i2c_msg msg[2] = { msg 172 drivers/media/dvb-frontends/ascot2e.c ret = i2c_transfer(priv->i2c, &msg[0], 1); msg 181 drivers/media/dvb-frontends/ascot2e.c ret = i2c_transfer(priv->i2c, &msg[1], 1); msg 35 drivers/media/dvb-frontends/au8522_common.c struct i2c_msg msg = { .addr = state->config.demod_address, msg 38 drivers/media/dvb-frontends/au8522_common.c ret = i2c_transfer(state->i2c, &msg, 1); msg 54 drivers/media/dvb-frontends/au8522_common.c struct i2c_msg msg[] = { msg 60 drivers/media/dvb-frontends/au8522_common.c ret = i2c_transfer(state->i2c, msg, 2); msg 85 drivers/media/dvb-frontends/bcm3510.c struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = b, .len = len + 1 }; msg 94 drivers/media/dvb-frontends/bcm3510.c if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { msg 106 drivers/media/dvb-frontends/bcm3510.c struct i2c_msg msg[] = { msg 114 drivers/media/dvb-frontends/bcm3510.c if ((err = i2c_transfer (state->i2c, msg, 2)) != 2) { msg 61 drivers/media/dvb-frontends/bsbe1.h struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = sizeof(data) }; msg 75 drivers/media/dvb-frontends/bsbe1.h ret = i2c_transfer(i2c, &msg, 1); msg 92 drivers/media/dvb-frontends/bsru6.h struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = buf, .len = sizeof(buf) }; msg 109 drivers/media/dvb-frontends/bsru6.h if (i2c_transfer(i2c, &msg, 1) != 1) msg 62 drivers/media/dvb-frontends/cx22700.c struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; msg 66 drivers/media/dvb-frontends/cx22700.c ret = i2c_transfer (state->i2c, &msg, 1); msg 80 drivers/media/dvb-frontends/cx22700.c struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 }, msg 85 drivers/media/dvb-frontends/cx22700.c ret = i2c_transfer (state->i2c, msg, 2); msg 77 drivers/media/dvb-frontends/cx22702.c struct i2c_msg msg = { msg 81 drivers/media/dvb-frontends/cx22702.c ret = i2c_transfer(state->i2c, &msg, 1); msg 98 drivers/media/dvb-frontends/cx22702.c struct i2c_msg msg[] = { msg 104 drivers/media/dvb-frontends/cx22702.c ret = i2c_transfer(state->i2c, msg, 2); msg 106 drivers/media/dvb-frontends/cx24110.c struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; msg 109 drivers/media/dvb-frontends/cx24110.c if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) { msg 123 drivers/media/dvb-frontends/cx24110.c struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 }, msg 126 drivers/media/dvb-frontends/cx24110.c ret = i2c_transfer(state->i2c, msg, 2); msg 409 drivers/media/dvb-frontends/cx24110.c cx24110_writereg(state, 0x79 + i, cmd->msg[i]); msg 93 drivers/media/dvb-frontends/cx24113.c struct i2c_msg msg = { .addr = state->config->i2c_addr, msg 95 drivers/media/dvb-frontends/cx24113.c int err = i2c_transfer(state->i2c, &msg, 1); msg 109 drivers/media/dvb-frontends/cx24113.c struct i2c_msg msg[] = { msg 116 drivers/media/dvb-frontends/cx24113.c ret = i2c_transfer(state->i2c, msg, 2); msg 190 drivers/media/dvb-frontends/cx24116.c struct i2c_msg msg = { .addr = state->config->demod_address, msg 198 drivers/media/dvb-frontends/cx24116.c err = i2c_transfer(state->i2c, &msg, 1); msg 213 drivers/media/dvb-frontends/cx24116.c struct i2c_msg msg; msg 223 drivers/media/dvb-frontends/cx24116.c msg.addr = state->config->demod_address; msg 224 drivers/media/dvb-frontends/cx24116.c msg.flags = 0; msg 225 drivers/media/dvb-frontends/cx24116.c msg.buf = buf; msg 226 drivers/media/dvb-frontends/cx24116.c msg.len = len + 1; msg 232 drivers/media/dvb-frontends/cx24116.c ret = i2c_transfer(state->i2c, &msg, 1); msg 249 drivers/media/dvb-frontends/cx24116.c struct i2c_msg msg[] = { msg 256 drivers/media/dvb-frontends/cx24116.c ret = i2c_transfer(state->i2c, msg, 2); msg 953 drivers/media/dvb-frontends/cx24116.c if (d->msg_len > sizeof(d->msg)) msg 960 drivers/media/dvb-frontends/cx24116.c printk(KERN_INFO "0x%02x", d->msg[i]); msg 969 drivers/media/dvb-frontends/cx24116.c state->dsec_cmd.args[CX24116_DISEQC_MSGOFS + i] = d->msg[i]; msg 1006 drivers/media/dvb-frontends/cx24116.c if (d->msg_len >= 4 && d->msg[2] == 0x38) msg 1008 drivers/media/dvb-frontends/cx24116.c ((d->msg[3] & 4) >> 2); msg 260 drivers/media/dvb-frontends/cx24117.c struct i2c_msg msg = { .addr = state->priv->demod_address, msg 268 drivers/media/dvb-frontends/cx24117.c ret = i2c_transfer(state->priv->i2c, &msg, 1); msg 281 drivers/media/dvb-frontends/cx24117.c struct i2c_msg msg; msg 292 drivers/media/dvb-frontends/cx24117.c msg.addr = state->priv->demod_address; msg 293 drivers/media/dvb-frontends/cx24117.c msg.flags = 0; msg 294 drivers/media/dvb-frontends/cx24117.c msg.len = cmd->len+1; msg 295 drivers/media/dvb-frontends/cx24117.c msg.buf = buf; msg 296 drivers/media/dvb-frontends/cx24117.c ret = i2c_transfer(state->priv->i2c, &msg, 1); msg 310 drivers/media/dvb-frontends/cx24117.c struct i2c_msg msg[] = { msg 317 drivers/media/dvb-frontends/cx24117.c ret = i2c_transfer(state->priv->i2c, msg, 2); msg 335 drivers/media/dvb-frontends/cx24117.c struct i2c_msg msg[] = { msg 342 drivers/media/dvb-frontends/cx24117.c ret = i2c_transfer(state->priv->i2c, msg, 2); msg 547 drivers/media/dvb-frontends/cx24117.c struct i2c_msg msg; msg 615 drivers/media/dvb-frontends/cx24117.c msg.addr = state->priv->demod_address; msg 616 drivers/media/dvb-frontends/cx24117.c msg.flags = 0; msg 617 drivers/media/dvb-frontends/cx24117.c msg.len = fw->size + 1; msg 618 drivers/media/dvb-frontends/cx24117.c msg.buf = buf; msg 621 drivers/media/dvb-frontends/cx24117.c ret = i2c_transfer(state->priv->i2c, &msg, 1); msg 1034 drivers/media/dvb-frontends/cx24117.c dev_dbg(&state->priv->i2c->dev, "0x%02x ", d->msg[i]); msg 1038 drivers/media/dvb-frontends/cx24117.c if (d->msg_len > sizeof(d->msg)) msg 1043 drivers/media/dvb-frontends/cx24117.c state->dsec_cmd.args[CX24117_DISEQC_MSGOFS + i] = d->msg[i]; msg 1070 drivers/media/dvb-frontends/cx24117.c if (d->msg_len >= 4 && d->msg[2] == 0x38) msg 1072 drivers/media/dvb-frontends/cx24117.c ((d->msg[3] & 4) >> 2); msg 166 drivers/media/dvb-frontends/cx24120.c struct i2c_msg msg[] = { msg 180 drivers/media/dvb-frontends/cx24120.c ret = i2c_transfer(state->i2c, msg, 2); msg 195 drivers/media/dvb-frontends/cx24120.c struct i2c_msg msg = { msg 203 drivers/media/dvb-frontends/cx24120.c ret = i2c_transfer(state->i2c, &msg, 1); msg 224 drivers/media/dvb-frontends/cx24120.c struct i2c_msg msg = { msg 229 drivers/media/dvb-frontends/cx24120.c msg.buf = kmalloc(max + 1, GFP_KERNEL); msg 230 drivers/media/dvb-frontends/cx24120.c if (!msg.buf) msg 234 drivers/media/dvb-frontends/cx24120.c msg.buf[0] = reg; msg 235 drivers/media/dvb-frontends/cx24120.c msg.len = len > max ? max : len; msg 236 drivers/media/dvb-frontends/cx24120.c memcpy(&msg.buf[1], values, msg.len); msg 238 drivers/media/dvb-frontends/cx24120.c len -= msg.len; /* data length revers counter */ msg 239 drivers/media/dvb-frontends/cx24120.c values += msg.len; /* incr data pointer */ msg 242 drivers/media/dvb-frontends/cx24120.c reg += msg.len; msg 243 drivers/media/dvb-frontends/cx24120.c msg.len++; /* don't forget the addr byte */ msg 245 drivers/media/dvb-frontends/cx24120.c ret = i2c_transfer(state->i2c, &msg, 1); msg 252 drivers/media/dvb-frontends/cx24120.c reg, msg.len - 1, msg.buf + 1); msg 258 drivers/media/dvb-frontends/cx24120.c kfree(msg.buf); msg 583 drivers/media/dvb-frontends/cx24120.c memcpy(&cmd.arg[6], &d->msg, d->msg_len); msg 236 drivers/media/dvb-frontends/cx24123.c struct i2c_msg msg = { msg 243 drivers/media/dvb-frontends/cx24123.c err = i2c_transfer(state->i2c, &msg, 1); msg 257 drivers/media/dvb-frontends/cx24123.c struct i2c_msg msg[] = { msg 262 drivers/media/dvb-frontends/cx24123.c ret = i2c_transfer(state->i2c, msg, 2); msg 768 drivers/media/dvb-frontends/cx24123.c cx24123_writereg(state, 0x2C + i, cmd->msg[i]); msg 1013 drivers/media/dvb-frontends/cx24123.c struct i2c_msg msg[], int num) msg 1018 drivers/media/dvb-frontends/cx24123.c return i2c_transfer(state->i2c, msg, num); msg 218 drivers/media/dvb-frontends/cxd2841er.c struct i2c_msg msg[1] = { msg 237 drivers/media/dvb-frontends/cxd2841er.c ret = i2c_transfer(priv->i2c, msg, 1); msg 263 drivers/media/dvb-frontends/cxd2841er.c struct i2c_msg msg[2] = { msg 277 drivers/media/dvb-frontends/cxd2841er.c ret = i2c_transfer(priv->i2c, msg, 2); msg 3706 drivers/media/dvb-frontends/cxd2841er.c data[i] = cmd->msg[i]; msg 18 drivers/media/dvb-frontends/cxd2880/cxd2880_spi_device.c struct spi_message msg; msg 31 drivers/media/dvb-frontends/cxd2880/cxd2880_spi_device.c spi_message_init(&msg); msg 32 drivers/media/dvb-frontends/cxd2880/cxd2880_spi_device.c spi_message_add_tail(&tx, &msg); msg 33 drivers/media/dvb-frontends/cxd2880/cxd2880_spi_device.c result = spi_sync(spi_device->spi, &msg); msg 63 drivers/media/dvb-frontends/dib0070.c struct i2c_msg msg[2]; msg 80 drivers/media/dvb-frontends/dib0070.c memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); msg 81 drivers/media/dvb-frontends/dib0070.c state->msg[0].addr = state->cfg->i2c_address; msg 82 drivers/media/dvb-frontends/dib0070.c state->msg[0].flags = 0; msg 83 drivers/media/dvb-frontends/dib0070.c state->msg[0].buf = state->i2c_write_buffer; msg 84 drivers/media/dvb-frontends/dib0070.c state->msg[0].len = 1; msg 85 drivers/media/dvb-frontends/dib0070.c state->msg[1].addr = state->cfg->i2c_address; msg 86 drivers/media/dvb-frontends/dib0070.c state->msg[1].flags = I2C_M_RD; msg 87 drivers/media/dvb-frontends/dib0070.c state->msg[1].buf = state->i2c_read_buffer; msg 88 drivers/media/dvb-frontends/dib0070.c state->msg[1].len = 2; msg 90 drivers/media/dvb-frontends/dib0070.c if (i2c_transfer(state->i2c, state->msg, 2) != 2) { msg 113 drivers/media/dvb-frontends/dib0070.c memset(state->msg, 0, sizeof(struct i2c_msg)); msg 114 drivers/media/dvb-frontends/dib0070.c state->msg[0].addr = state->cfg->i2c_address; msg 115 drivers/media/dvb-frontends/dib0070.c state->msg[0].flags = 0; msg 116 drivers/media/dvb-frontends/dib0070.c state->msg[0].buf = state->i2c_write_buffer; msg 117 drivers/media/dvb-frontends/dib0070.c state->msg[0].len = 3; msg 119 drivers/media/dvb-frontends/dib0070.c if (i2c_transfer(state->i2c, state->msg, 1) != 1) { msg 181 drivers/media/dvb-frontends/dib0090.c struct i2c_msg msg[2]; msg 194 drivers/media/dvb-frontends/dib0090.c struct i2c_msg msg; msg 211 drivers/media/dvb-frontends/dib0090.c memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); msg 212 drivers/media/dvb-frontends/dib0090.c state->msg[0].addr = state->config->i2c_address; msg 213 drivers/media/dvb-frontends/dib0090.c state->msg[0].flags = 0; msg 214 drivers/media/dvb-frontends/dib0090.c state->msg[0].buf = state->i2c_write_buffer; msg 215 drivers/media/dvb-frontends/dib0090.c state->msg[0].len = 1; msg 216 drivers/media/dvb-frontends/dib0090.c state->msg[1].addr = state->config->i2c_address; msg 217 drivers/media/dvb-frontends/dib0090.c state->msg[1].flags = I2C_M_RD; msg 218 drivers/media/dvb-frontends/dib0090.c state->msg[1].buf = state->i2c_read_buffer; msg 219 drivers/media/dvb-frontends/dib0090.c state->msg[1].len = 2; msg 221 drivers/media/dvb-frontends/dib0090.c if (i2c_transfer(state->i2c, state->msg, 2) != 2) { msg 245 drivers/media/dvb-frontends/dib0090.c memset(state->msg, 0, sizeof(struct i2c_msg)); msg 246 drivers/media/dvb-frontends/dib0090.c state->msg[0].addr = state->config->i2c_address; msg 247 drivers/media/dvb-frontends/dib0090.c state->msg[0].flags = 0; msg 248 drivers/media/dvb-frontends/dib0090.c state->msg[0].buf = state->i2c_write_buffer; msg 249 drivers/media/dvb-frontends/dib0090.c state->msg[0].len = 3; msg 251 drivers/media/dvb-frontends/dib0090.c if (i2c_transfer(state->i2c, state->msg, 1) != 1) { msg 272 drivers/media/dvb-frontends/dib0090.c memset(&state->msg, 0, sizeof(struct i2c_msg)); msg 273 drivers/media/dvb-frontends/dib0090.c state->msg.addr = reg; msg 274 drivers/media/dvb-frontends/dib0090.c state->msg.flags = I2C_M_RD; msg 275 drivers/media/dvb-frontends/dib0090.c state->msg.buf = state->i2c_read_buffer; msg 276 drivers/media/dvb-frontends/dib0090.c state->msg.len = 2; msg 277 drivers/media/dvb-frontends/dib0090.c if (i2c_transfer(state->i2c, &state->msg, 1) != 1) { msg 300 drivers/media/dvb-frontends/dib0090.c memset(&state->msg, 0, sizeof(struct i2c_msg)); msg 301 drivers/media/dvb-frontends/dib0090.c state->msg.addr = reg; msg 302 drivers/media/dvb-frontends/dib0090.c state->msg.flags = 0; msg 303 drivers/media/dvb-frontends/dib0090.c state->msg.buf = state->i2c_write_buffer; msg 304 drivers/media/dvb-frontends/dib0090.c state->msg.len = 2; msg 305 drivers/media/dvb-frontends/dib0090.c if (i2c_transfer(state->i2c, &state->msg, 1) != 1) { msg 55 drivers/media/dvb-frontends/dib3000mb.c struct i2c_msg msg[] = { msg 60 drivers/media/dvb-frontends/dib3000mb.c if (i2c_transfer(state->i2c, msg, 2) != 2) msg 75 drivers/media/dvb-frontends/dib3000mb.c struct i2c_msg msg[] = { msg 80 drivers/media/dvb-frontends/dib3000mb.c return i2c_transfer(state->i2c,msg, 1) != 1 ? -EREMOTEIO : 0; msg 55 drivers/media/dvb-frontends/dib3000mc.c struct i2c_msg msg[2] = { msg 71 drivers/media/dvb-frontends/dib3000mc.c msg[0].buf = b; msg 72 drivers/media/dvb-frontends/dib3000mc.c msg[1].buf = b + 2; msg 74 drivers/media/dvb-frontends/dib3000mc.c if (i2c_transfer(state->i2c_adap, msg, 2) != 2) msg 85 drivers/media/dvb-frontends/dib3000mc.c struct i2c_msg msg = { msg 100 drivers/media/dvb-frontends/dib3000mc.c msg.buf = b; msg 102 drivers/media/dvb-frontends/dib3000mc.c rc = i2c_transfer(state->i2c_adap, &msg, 1) != 1 ? -EREMOTEIO : 0; msg 60 drivers/media/dvb-frontends/dib7000m.c struct i2c_msg msg[2]; msg 88 drivers/media/dvb-frontends/dib7000m.c memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); msg 89 drivers/media/dvb-frontends/dib7000m.c state->msg[0].addr = state->i2c_addr >> 1; msg 90 drivers/media/dvb-frontends/dib7000m.c state->msg[0].flags = 0; msg 91 drivers/media/dvb-frontends/dib7000m.c state->msg[0].buf = state->i2c_write_buffer; msg 92 drivers/media/dvb-frontends/dib7000m.c state->msg[0].len = 2; msg 93 drivers/media/dvb-frontends/dib7000m.c state->msg[1].addr = state->i2c_addr >> 1; msg 94 drivers/media/dvb-frontends/dib7000m.c state->msg[1].flags = I2C_M_RD; msg 95 drivers/media/dvb-frontends/dib7000m.c state->msg[1].buf = state->i2c_read_buffer; msg 96 drivers/media/dvb-frontends/dib7000m.c state->msg[1].len = 2; msg 98 drivers/media/dvb-frontends/dib7000m.c if (i2c_transfer(state->i2c_adap, state->msg, 2) != 2) msg 121 drivers/media/dvb-frontends/dib7000m.c memset(&state->msg[0], 0, sizeof(struct i2c_msg)); msg 122 drivers/media/dvb-frontends/dib7000m.c state->msg[0].addr = state->i2c_addr >> 1; msg 123 drivers/media/dvb-frontends/dib7000m.c state->msg[0].flags = 0; msg 124 drivers/media/dvb-frontends/dib7000m.c state->msg[0].buf = state->i2c_write_buffer; msg 125 drivers/media/dvb-frontends/dib7000m.c state->msg[0].len = 4; msg 127 drivers/media/dvb-frontends/dib7000m.c ret = (i2c_transfer(state->i2c_adap, state->msg, 1) != 1 ? msg 74 drivers/media/dvb-frontends/dib7000p.c struct i2c_msg msg[2]; msg 112 drivers/media/dvb-frontends/dib7000p.c memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); msg 113 drivers/media/dvb-frontends/dib7000p.c state->msg[0].addr = state->i2c_addr >> 1; msg 114 drivers/media/dvb-frontends/dib7000p.c state->msg[0].flags = 0; msg 115 drivers/media/dvb-frontends/dib7000p.c state->msg[0].buf = state->i2c_write_buffer; msg 116 drivers/media/dvb-frontends/dib7000p.c state->msg[0].len = 2; msg 117 drivers/media/dvb-frontends/dib7000p.c state->msg[1].addr = state->i2c_addr >> 1; msg 118 drivers/media/dvb-frontends/dib7000p.c state->msg[1].flags = I2C_M_RD; msg 119 drivers/media/dvb-frontends/dib7000p.c state->msg[1].buf = state->i2c_read_buffer; msg 120 drivers/media/dvb-frontends/dib7000p.c state->msg[1].len = 2; msg 122 drivers/media/dvb-frontends/dib7000p.c if (i2c_transfer(state->i2c_adap, state->msg, 2) != 2) msg 144 drivers/media/dvb-frontends/dib7000p.c memset(&state->msg[0], 0, sizeof(struct i2c_msg)); msg 145 drivers/media/dvb-frontends/dib7000p.c state->msg[0].addr = state->i2c_addr >> 1; msg 146 drivers/media/dvb-frontends/dib7000p.c state->msg[0].flags = 0; msg 147 drivers/media/dvb-frontends/dib7000p.c state->msg[0].buf = state->i2c_write_buffer; msg 148 drivers/media/dvb-frontends/dib7000p.c state->msg[0].len = 4; msg 150 drivers/media/dvb-frontends/dib7000p.c ret = (i2c_transfer(state->i2c_adap, state->msg, 1) != 1 ? msg 2015 drivers/media/dvb-frontends/dib7000p.c struct i2c_msg msg[2] = { msg 2030 drivers/media/dvb-frontends/dib7000p.c msg[0].buf = tx; msg 2031 drivers/media/dvb-frontends/dib7000p.c msg[1].buf = rx; msg 2036 drivers/media/dvb-frontends/dib7000p.c if (i2c_transfer(i2c_adap, msg, 2) == 2) msg 2043 drivers/media/dvb-frontends/dib7000p.c msg[0].addr = msg[1].addr = 0x40; msg 2045 drivers/media/dvb-frontends/dib7000p.c if (i2c_transfer(i2c_adap, msg, 2) == 2) msg 2177 drivers/media/dvb-frontends/dib7000p.c static int map_addr_to_serpar_number(struct i2c_msg *msg) msg 2179 drivers/media/dvb-frontends/dib7000p.c if ((msg->buf[0] <= 15)) msg 2180 drivers/media/dvb-frontends/dib7000p.c msg->buf[0] -= 1; msg 2181 drivers/media/dvb-frontends/dib7000p.c else if (msg->buf[0] == 17) msg 2182 drivers/media/dvb-frontends/dib7000p.c msg->buf[0] = 15; msg 2183 drivers/media/dvb-frontends/dib7000p.c else if (msg->buf[0] == 16) msg 2184 drivers/media/dvb-frontends/dib7000p.c msg->buf[0] = 17; msg 2185 drivers/media/dvb-frontends/dib7000p.c else if (msg->buf[0] == 19) msg 2186 drivers/media/dvb-frontends/dib7000p.c msg->buf[0] = 16; msg 2187 drivers/media/dvb-frontends/dib7000p.c else if (msg->buf[0] >= 21 && msg->buf[0] <= 25) msg 2188 drivers/media/dvb-frontends/dib7000p.c msg->buf[0] -= 3; msg 2189 drivers/media/dvb-frontends/dib7000p.c else if (msg->buf[0] == 28) msg 2190 drivers/media/dvb-frontends/dib7000p.c msg->buf[0] = 23; msg 2196 drivers/media/dvb-frontends/dib7000p.c static int w7090p_tuner_write_serpar(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int num) msg 2201 drivers/media/dvb-frontends/dib7000p.c u16 serpar_num = msg[0].buf[0]; msg 2210 drivers/media/dvb-frontends/dib7000p.c dib7000p_write_word(state, 1986, (msg[0].buf[1] << 8) | msg[0].buf[2]); msg 2215 drivers/media/dvb-frontends/dib7000p.c static int w7090p_tuner_read_serpar(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int num) msg 2220 drivers/media/dvb-frontends/dib7000p.c u16 serpar_num = msg[0].buf[0]; msg 2239 drivers/media/dvb-frontends/dib7000p.c msg[1].buf[0] = (read_word >> 8) & 0xff; msg 2240 drivers/media/dvb-frontends/dib7000p.c msg[1].buf[1] = (read_word) & 0xff; msg 2245 drivers/media/dvb-frontends/dib7000p.c static int w7090p_tuner_rw_serpar(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int num) msg 2247 drivers/media/dvb-frontends/dib7000p.c if (map_addr_to_serpar_number(&msg[0]) == 0) { /* else = Tuner regs to ignore : DIG_CFG, CTRL_RF_LT, PLL_CFG, PWM1_REG, ADCCLK, DIG_CFG_3; SLEEP_EN... */ msg 2249 drivers/media/dvb-frontends/dib7000p.c return w7090p_tuner_write_serpar(i2c_adap, msg, 1); msg 2251 drivers/media/dvb-frontends/dib7000p.c return w7090p_tuner_read_serpar(i2c_adap, msg, 2); msg 2258 drivers/media/dvb-frontends/dib7000p.c struct i2c_msg msg[], int num, u16 apb_address) msg 2264 drivers/media/dvb-frontends/dib7000p.c dib7000p_write_word(state, apb_address, ((msg[0].buf[1] << 8) | (msg[0].buf[2]))); msg 2267 drivers/media/dvb-frontends/dib7000p.c msg[1].buf[0] = (word >> 8) & 0xff; msg 2268 drivers/media/dvb-frontends/dib7000p.c msg[1].buf[1] = (word) & 0xff; msg 2274 drivers/media/dvb-frontends/dib7000p.c static int dib7090_tuner_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int num) msg 2280 drivers/media/dvb-frontends/dib7000p.c switch (msg[0].buf[0]) { msg 2368 drivers/media/dvb-frontends/dib7000p.c msg[1].buf[0] = (word >> 8) & 0xff; msg 2369 drivers/media/dvb-frontends/dib7000p.c msg[1].buf[1] = (word) & 0xff; msg 2373 drivers/media/dvb-frontends/dib7000p.c word = (u16) ((msg[0].buf[1] << 8) | msg[0].buf[2]); msg 2382 drivers/media/dvb-frontends/dib7000p.c return dib7090p_rw_on_apb(i2c_adap, msg, num, apb_address); msg 2384 drivers/media/dvb-frontends/dib7000p.c return w7090p_tuner_rw_serpar(i2c_adap, msg, num); msg 100 drivers/media/dvb-frontends/dib8000.c struct i2c_msg msg[2]; msg 148 drivers/media/dvb-frontends/dib8000.c struct i2c_msg msg[2] = { msg 158 drivers/media/dvb-frontends/dib8000.c msg[0].buf = i2c->i2c_write_buffer; msg 159 drivers/media/dvb-frontends/dib8000.c msg[0].buf[0] = reg >> 8; msg 160 drivers/media/dvb-frontends/dib8000.c msg[0].buf[1] = reg & 0xff; msg 161 drivers/media/dvb-frontends/dib8000.c msg[1].buf = i2c->i2c_read_buffer; msg 163 drivers/media/dvb-frontends/dib8000.c if (i2c_transfer(i2c->adap, msg, 2) != 2) msg 166 drivers/media/dvb-frontends/dib8000.c ret = (msg[1].buf[0] << 8) | msg[1].buf[1]; msg 178 drivers/media/dvb-frontends/dib8000.c memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); msg 179 drivers/media/dvb-frontends/dib8000.c state->msg[0].addr = state->i2c.addr >> 1; msg 180 drivers/media/dvb-frontends/dib8000.c state->msg[0].flags = 0; msg 181 drivers/media/dvb-frontends/dib8000.c state->msg[0].buf = state->i2c_write_buffer; msg 182 drivers/media/dvb-frontends/dib8000.c state->msg[0].len = 2; msg 183 drivers/media/dvb-frontends/dib8000.c state->msg[1].addr = state->i2c.addr >> 1; msg 184 drivers/media/dvb-frontends/dib8000.c state->msg[1].flags = I2C_M_RD; msg 185 drivers/media/dvb-frontends/dib8000.c state->msg[1].buf = state->i2c_read_buffer; msg 186 drivers/media/dvb-frontends/dib8000.c state->msg[1].len = 2; msg 188 drivers/media/dvb-frontends/dib8000.c if (i2c_transfer(state->i2c.adap, state->msg, 2) != 2) msg 231 drivers/media/dvb-frontends/dib8000.c struct i2c_msg msg = {.addr = i2c->addr >> 1, .flags = 0, .len = 4}; msg 239 drivers/media/dvb-frontends/dib8000.c msg.buf = i2c->i2c_write_buffer; msg 240 drivers/media/dvb-frontends/dib8000.c msg.buf[0] = (reg >> 8) & 0xff; msg 241 drivers/media/dvb-frontends/dib8000.c msg.buf[1] = reg & 0xff; msg 242 drivers/media/dvb-frontends/dib8000.c msg.buf[2] = (val >> 8) & 0xff; msg 243 drivers/media/dvb-frontends/dib8000.c msg.buf[3] = val & 0xff; msg 245 drivers/media/dvb-frontends/dib8000.c ret = i2c_transfer(i2c->adap, &msg, 1) != 1 ? -EREMOTEIO : 0; msg 265 drivers/media/dvb-frontends/dib8000.c memset(&state->msg[0], 0, sizeof(struct i2c_msg)); msg 266 drivers/media/dvb-frontends/dib8000.c state->msg[0].addr = state->i2c.addr >> 1; msg 267 drivers/media/dvb-frontends/dib8000.c state->msg[0].flags = 0; msg 268 drivers/media/dvb-frontends/dib8000.c state->msg[0].buf = state->i2c_write_buffer; msg 269 drivers/media/dvb-frontends/dib8000.c state->msg[0].len = 4; msg 271 drivers/media/dvb-frontends/dib8000.c ret = (i2c_transfer(state->i2c.adap, state->msg, 1) != 1 ? msg 1652 drivers/media/dvb-frontends/dib8000.c static int map_addr_to_serpar_number(struct i2c_msg *msg) msg 1654 drivers/media/dvb-frontends/dib8000.c if (msg->buf[0] <= 15) msg 1655 drivers/media/dvb-frontends/dib8000.c msg->buf[0] -= 1; msg 1656 drivers/media/dvb-frontends/dib8000.c else if (msg->buf[0] == 17) msg 1657 drivers/media/dvb-frontends/dib8000.c msg->buf[0] = 15; msg 1658 drivers/media/dvb-frontends/dib8000.c else if (msg->buf[0] == 16) msg 1659 drivers/media/dvb-frontends/dib8000.c msg->buf[0] = 17; msg 1660 drivers/media/dvb-frontends/dib8000.c else if (msg->buf[0] == 19) msg 1661 drivers/media/dvb-frontends/dib8000.c msg->buf[0] = 16; msg 1662 drivers/media/dvb-frontends/dib8000.c else if (msg->buf[0] >= 21 && msg->buf[0] <= 25) msg 1663 drivers/media/dvb-frontends/dib8000.c msg->buf[0] -= 3; msg 1664 drivers/media/dvb-frontends/dib8000.c else if (msg->buf[0] == 28) msg 1665 drivers/media/dvb-frontends/dib8000.c msg->buf[0] = 23; msg 1666 drivers/media/dvb-frontends/dib8000.c else if (msg->buf[0] == 99) msg 1667 drivers/media/dvb-frontends/dib8000.c msg->buf[0] = 99; msg 1674 drivers/media/dvb-frontends/dib8000.c struct i2c_msg msg[], int num) msg 1679 drivers/media/dvb-frontends/dib8000.c u16 serpar_num = msg[0].buf[0]; msg 1688 drivers/media/dvb-frontends/dib8000.c dib8000_write_word(state, 1986, (msg[0].buf[1] << 8) | msg[0].buf[2]); msg 1694 drivers/media/dvb-frontends/dib8000.c struct i2c_msg msg[], int num) msg 1699 drivers/media/dvb-frontends/dib8000.c u16 serpar_num = msg[0].buf[0]; msg 1719 drivers/media/dvb-frontends/dib8000.c msg[1].buf[0] = (read_word >> 8) & 0xff; msg 1720 drivers/media/dvb-frontends/dib8000.c msg[1].buf[1] = (read_word) & 0xff; msg 1726 drivers/media/dvb-frontends/dib8000.c struct i2c_msg msg[], int num) msg 1728 drivers/media/dvb-frontends/dib8000.c if (map_addr_to_serpar_number(&msg[0]) == 0) { msg 1730 drivers/media/dvb-frontends/dib8000.c return dib8096p_tuner_write_serpar(i2c_adap, msg, 1); msg 1732 drivers/media/dvb-frontends/dib8000.c return dib8096p_tuner_read_serpar(i2c_adap, msg, 2); msg 1738 drivers/media/dvb-frontends/dib8000.c struct i2c_msg msg[], int num, u16 apb_address) msg 1745 drivers/media/dvb-frontends/dib8000.c ((msg[0].buf[1] << 8) | (msg[0].buf[2]))); msg 1748 drivers/media/dvb-frontends/dib8000.c msg[1].buf[0] = (word >> 8) & 0xff; msg 1749 drivers/media/dvb-frontends/dib8000.c msg[1].buf[1] = (word) & 0xff; msg 1755 drivers/media/dvb-frontends/dib8000.c struct i2c_msg msg[], int num) msg 1761 drivers/media/dvb-frontends/dib8000.c switch (msg[0].buf[0]) { msg 1850 drivers/media/dvb-frontends/dib8000.c msg[1].buf[0] = (word >> 8) & 0xff; msg 1851 drivers/media/dvb-frontends/dib8000.c msg[1].buf[1] = (word) & 0xff; msg 1855 drivers/media/dvb-frontends/dib8000.c word = (u16) ((msg[0].buf[1] << 8) | msg 1856 drivers/media/dvb-frontends/dib8000.c msg[0].buf[2]); msg 1868 drivers/media/dvb-frontends/dib8000.c return dib8096p_rw_on_apb(i2c_adap, msg, num, apb_address); msg 1870 drivers/media/dvb-frontends/dib8000.c return dib8096p_tuner_rw_serpar(i2c_adap, msg, num); msg 106 drivers/media/dvb-frontends/dib9000.c struct i2c_msg msg[2]; msg 242 drivers/media/dvb-frontends/dib9000.c memset(state->msg, 0, 2 * sizeof(struct i2c_msg)); msg 243 drivers/media/dvb-frontends/dib9000.c state->msg[0].addr = state->i2c.i2c_addr >> 1; msg 244 drivers/media/dvb-frontends/dib9000.c state->msg[0].flags = 0; msg 245 drivers/media/dvb-frontends/dib9000.c state->msg[0].buf = state->i2c_write_buffer; msg 246 drivers/media/dvb-frontends/dib9000.c state->msg[0].len = 2; msg 247 drivers/media/dvb-frontends/dib9000.c state->msg[1].addr = state->i2c.i2c_addr >> 1; msg 248 drivers/media/dvb-frontends/dib9000.c state->msg[1].flags = I2C_M_RD; msg 249 drivers/media/dvb-frontends/dib9000.c state->msg[1].buf = b; msg 250 drivers/media/dvb-frontends/dib9000.c state->msg[1].len = len; msg 262 drivers/media/dvb-frontends/dib9000.c state->msg[1].len = l; msg 263 drivers/media/dvb-frontends/dib9000.c state->msg[1].buf = b; msg 264 drivers/media/dvb-frontends/dib9000.c ret = i2c_transfer(state->i2c.i2c_adap, state->msg, 2) != 2 ? -EREMOTEIO : 0; msg 282 drivers/media/dvb-frontends/dib9000.c struct i2c_msg msg[2] = { msg 292 drivers/media/dvb-frontends/dib9000.c if (i2c_transfer(i2c->i2c_adap, msg, 2) != 2) { msg 330 drivers/media/dvb-frontends/dib9000.c memset(&state->msg[0], 0, sizeof(struct i2c_msg)); msg 331 drivers/media/dvb-frontends/dib9000.c state->msg[0].addr = state->i2c.i2c_addr >> 1; msg 332 drivers/media/dvb-frontends/dib9000.c state->msg[0].flags = 0; msg 333 drivers/media/dvb-frontends/dib9000.c state->msg[0].buf = state->i2c_write_buffer; msg 334 drivers/media/dvb-frontends/dib9000.c state->msg[0].len = len + 2; msg 346 drivers/media/dvb-frontends/dib9000.c state->msg[0].len = l + 2; msg 349 drivers/media/dvb-frontends/dib9000.c ret = i2c_transfer(state->i2c.i2c_adap, state->msg, 1) != 1 ? -EREMOTEIO : 0; msg 363 drivers/media/dvb-frontends/dib9000.c struct i2c_msg msg = { msg 373 drivers/media/dvb-frontends/dib9000.c return i2c_transfer(i2c->i2c_adap, &msg, 1) != 1 ? -EREMOTEIO : 0; msg 393 drivers/media/dvb-frontends/dib9000.c #define dib9000_mbx_get_message(state, id, msg, len) dib9000_mbx_get_message_attr(state, id, msg, len, 0) msg 728 drivers/media/dvb-frontends/dib9000.c static int dib9000_mbx_get_message_attr(struct dib9000_state *state, u16 id, u16 * msg, u8 * size, u16 attr) msg 734 drivers/media/dvb-frontends/dib9000.c *msg = 0; msg 741 drivers/media/dvb-frontends/dib9000.c memcpy(msg, block + 1, (*size) * 2); msg 1585 drivers/media/dvb-frontends/dib9000.c static int dib9000_tuner_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int num) msg 1591 drivers/media/dvb-frontends/dib9000.c if (msg[index_msg].flags & I2C_M_RD) { /* read */ msg 1592 drivers/media/dvb-frontends/dib9000.c len = msg[index_msg].len; msg 1599 drivers/media/dvb-frontends/dib9000.c dib9000_write_word(state, 784, (u16) (msg[index_msg].addr)); msg 1612 drivers/media/dvb-frontends/dib9000.c msg[index_msg].buf[i] = (t >> 8) & 0xff; msg 1613 drivers/media/dvb-frontends/dib9000.c msg[index_msg].buf[i + 1] = (t) & 0xff; msg 1624 drivers/media/dvb-frontends/dib9000.c len = msg[index_msg].len; msg 1629 drivers/media/dvb-frontends/dib9000.c dib9000_write_word(state, 785, (msg[index_msg].buf[i] << 8) | msg[index_msg].buf[i + 1]); msg 1630 drivers/media/dvb-frontends/dib9000.c dib9000_write_word(state, 784, (u16) msg[index_msg].addr); msg 1653 drivers/media/dvb-frontends/dib9000.c static int dib9000_fw_component_bus_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int num) msg 1664 drivers/media/dvb-frontends/dib9000.c p[2] = msg[0].addr << 1; msg 1672 drivers/media/dvb-frontends/dib9000.c p[9] = (u8) (msg[0].len); msg 1673 drivers/media/dvb-frontends/dib9000.c p[10] = (u8) (msg[0].len >> 8); msg 1674 drivers/media/dvb-frontends/dib9000.c if ((num > 1) && (msg[1].flags & I2C_M_RD)) { msg 1675 drivers/media/dvb-frontends/dib9000.c p[11] = (u8) (msg[1].len); msg 1676 drivers/media/dvb-frontends/dib9000.c p[12] = (u8) (msg[1].len >> 8); msg 1690 drivers/media/dvb-frontends/dib9000.c dib9000_risc_mem_setup_cmd(state, m->addr, msg[0].len, 0); msg 1691 drivers/media/dvb-frontends/dib9000.c dib9000_risc_mem_write_chunks(state, msg[0].buf, msg[0].len); msg 1701 drivers/media/dvb-frontends/dib9000.c if ((num > 1) && (msg[1].flags & I2C_M_RD)) msg 1702 drivers/media/dvb-frontends/dib9000.c dib9000_risc_mem_read(state, FE_MM_RW_COMPONENT_ACCESS_BUFFER, msg[1].buf, msg[1].len); msg 34 drivers/media/dvb-frontends/dibx000_common.c memset(mst->msg, 0, sizeof(struct i2c_msg)); msg 35 drivers/media/dvb-frontends/dibx000_common.c mst->msg[0].addr = mst->i2c_addr; msg 36 drivers/media/dvb-frontends/dibx000_common.c mst->msg[0].flags = 0; msg 37 drivers/media/dvb-frontends/dibx000_common.c mst->msg[0].buf = mst->i2c_write_buffer; msg 38 drivers/media/dvb-frontends/dibx000_common.c mst->msg[0].len = 4; msg 40 drivers/media/dvb-frontends/dibx000_common.c ret = i2c_transfer(mst->i2c_adap, mst->msg, 1) != 1 ? -EREMOTEIO : 0; msg 58 drivers/media/dvb-frontends/dibx000_common.c memset(mst->msg, 0, 2 * sizeof(struct i2c_msg)); msg 59 drivers/media/dvb-frontends/dibx000_common.c mst->msg[0].addr = mst->i2c_addr; msg 60 drivers/media/dvb-frontends/dibx000_common.c mst->msg[0].flags = 0; msg 61 drivers/media/dvb-frontends/dibx000_common.c mst->msg[0].buf = mst->i2c_write_buffer; msg 62 drivers/media/dvb-frontends/dibx000_common.c mst->msg[0].len = 2; msg 63 drivers/media/dvb-frontends/dibx000_common.c mst->msg[1].addr = mst->i2c_addr; msg 64 drivers/media/dvb-frontends/dibx000_common.c mst->msg[1].flags = I2C_M_RD; msg 65 drivers/media/dvb-frontends/dibx000_common.c mst->msg[1].buf = mst->i2c_read_buffer; msg 66 drivers/media/dvb-frontends/dibx000_common.c mst->msg[1].len = 2; msg 68 drivers/media/dvb-frontends/dibx000_common.c if (i2c_transfer(mst->i2c_adap, mst->msg, 2) != 2) msg 96 drivers/media/dvb-frontends/dibx000_common.c static int dibx000_master_i2c_write(struct dibx000_i2c_master *mst, struct i2c_msg *msg, u8 stop) msg 101 drivers/media/dvb-frontends/dibx000_common.c u16 txlen = msg->len, len; msg 102 drivers/media/dvb-frontends/dibx000_common.c const u8 *b = msg->buf; msg 114 drivers/media/dvb-frontends/dibx000_common.c da = (((u8) (msg->addr)) << 9) | msg 123 drivers/media/dvb-frontends/dibx000_common.c if (txlen == msg->len) msg 139 drivers/media/dvb-frontends/dibx000_common.c static int dibx000_master_i2c_read(struct dibx000_i2c_master *mst, struct i2c_msg *msg) msg 142 drivers/media/dvb-frontends/dibx000_common.c u8 *b = msg->buf; msg 143 drivers/media/dvb-frontends/dibx000_common.c u16 rxlen = msg->len, len; msg 147 drivers/media/dvb-frontends/dibx000_common.c da = (((u8) (msg->addr)) << 9) | msg 156 drivers/media/dvb-frontends/dibx000_common.c if (rxlen == msg->len) msg 209 drivers/media/dvb-frontends/dibx000_common.c static int dibx000_i2c_master_xfer_gpio12(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int num) msg 217 drivers/media/dvb-frontends/dibx000_common.c if (msg[msg_index].flags & I2C_M_RD) { msg 218 drivers/media/dvb-frontends/dibx000_common.c ret = dibx000_master_i2c_read(mst, &msg[msg_index]); msg 222 drivers/media/dvb-frontends/dibx000_common.c ret = dibx000_master_i2c_write(mst, &msg[msg_index], 1); msg 231 drivers/media/dvb-frontends/dibx000_common.c static int dibx000_i2c_master_xfer_gpio34(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int num) msg 239 drivers/media/dvb-frontends/dibx000_common.c if (msg[msg_index].flags & I2C_M_RD) { msg 240 drivers/media/dvb-frontends/dibx000_common.c ret = dibx000_master_i2c_read(mst, &msg[msg_index]); msg 244 drivers/media/dvb-frontends/dibx000_common.c ret = dibx000_master_i2c_write(mst, &msg[msg_index], 1); msg 286 drivers/media/dvb-frontends/dibx000_common.c struct i2c_msg msg[], int num) msg 304 drivers/media/dvb-frontends/dibx000_common.c memset(mst->msg, 0, sizeof(struct i2c_msg) * (2 + num)); msg 307 drivers/media/dvb-frontends/dibx000_common.c dibx000_i2c_gate_ctrl(mst, &mst->i2c_write_buffer[0], msg[0].addr, 1); msg 308 drivers/media/dvb-frontends/dibx000_common.c mst->msg[0].addr = mst->i2c_addr; msg 309 drivers/media/dvb-frontends/dibx000_common.c mst->msg[0].buf = &mst->i2c_write_buffer[0]; msg 310 drivers/media/dvb-frontends/dibx000_common.c mst->msg[0].len = 4; msg 312 drivers/media/dvb-frontends/dibx000_common.c memcpy(&mst->msg[1], msg, sizeof(struct i2c_msg) * num); msg 316 drivers/media/dvb-frontends/dibx000_common.c mst->msg[num + 1].addr = mst->i2c_addr; msg 317 drivers/media/dvb-frontends/dibx000_common.c mst->msg[num + 1].buf = &mst->i2c_write_buffer[4]; msg 318 drivers/media/dvb-frontends/dibx000_common.c mst->msg[num + 1].len = 4; msg 320 drivers/media/dvb-frontends/dibx000_common.c ret = (i2c_transfer(mst->i2c_adap, mst->msg, 2 + num) == 2 + num ? msg 333 drivers/media/dvb-frontends/dibx000_common.c struct i2c_msg msg[], int num) msg 350 drivers/media/dvb-frontends/dibx000_common.c memset(mst->msg, 0, sizeof(struct i2c_msg) * (2 + num)); msg 353 drivers/media/dvb-frontends/dibx000_common.c dibx000_i2c_gate_ctrl(mst, &mst->i2c_write_buffer[0], msg[0].addr, 1); msg 354 drivers/media/dvb-frontends/dibx000_common.c mst->msg[0].addr = mst->i2c_addr; msg 355 drivers/media/dvb-frontends/dibx000_common.c mst->msg[0].buf = &mst->i2c_write_buffer[0]; msg 356 drivers/media/dvb-frontends/dibx000_common.c mst->msg[0].len = 4; msg 358 drivers/media/dvb-frontends/dibx000_common.c memcpy(&mst->msg[1], msg, sizeof(struct i2c_msg) * num); msg 362 drivers/media/dvb-frontends/dibx000_common.c mst->msg[num + 1].addr = mst->i2c_addr; msg 363 drivers/media/dvb-frontends/dibx000_common.c mst->msg[num + 1].buf = &mst->i2c_write_buffer[4]; msg 364 drivers/media/dvb-frontends/dibx000_common.c mst->msg[num + 1].len = 4; msg 366 drivers/media/dvb-frontends/dibx000_common.c ret = (i2c_transfer(mst->i2c_adap, mst->msg, 2 + num) == 2 + num ? msg 447 drivers/media/dvb-frontends/dibx000_common.c memset(mst->msg, 0, sizeof(struct i2c_msg)); msg 448 drivers/media/dvb-frontends/dibx000_common.c mst->msg[0].addr = i2c_addr >> 1; msg 449 drivers/media/dvb-frontends/dibx000_common.c mst->msg[0].flags = 0; msg 450 drivers/media/dvb-frontends/dibx000_common.c mst->msg[0].buf = mst->i2c_write_buffer; msg 451 drivers/media/dvb-frontends/dibx000_common.c mst->msg[0].len = 4; msg 489 drivers/media/dvb-frontends/dibx000_common.c ret = (i2c_transfer(i2c_adap, mst->msg, 1) == 1); msg 34 drivers/media/dvb-frontends/dibx000_common.h struct i2c_msg msg[34]; msg 1315 drivers/media/dvb-frontends/drx39xyj/drxj.c struct i2c_msg msg[2]; msg 1321 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[0].addr = r_dev_addr->i2c_addr >> 1; msg 1322 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[0].flags = I2C_M_RD; msg 1323 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[0].buf = r_data; msg 1324 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[0].len = r_count; msg 1329 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[0].addr = w_dev_addr->i2c_addr >> 1; msg 1330 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[0].flags = 0; msg 1331 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[0].buf = wData; msg 1332 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[0].len = w_count; msg 1337 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[0].addr = w_dev_addr->i2c_addr >> 1; msg 1338 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[0].flags = 0; msg 1339 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[0].buf = wData; msg 1340 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[0].len = w_count; msg 1341 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[1].addr = r_dev_addr->i2c_addr >> 1; msg 1342 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[1].flags = I2C_M_RD; msg 1343 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[1].buf = r_data; msg 1344 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[1].len = r_count; msg 1352 drivers/media/dvb-frontends/drx39xyj/drxj.c if (i2c_transfer(state->i2c, msg, num_msgs) != num_msgs) { msg 1366 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[0].addr = w_dev_addr->i2c_addr; msg 1367 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[0].flags = 0; msg 1368 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[0].buf = wData; msg 1369 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[0].len = w_count; msg 1370 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[1].addr = r_dev_addr->i2c_addr; msg 1371 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[1].flags = I2C_M_RD; msg 1372 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[1].buf = r_data; msg 1373 drivers/media/dvb-frontends/drx39xyj/drxj.c msg[1].len = r_count; msg 1379 drivers/media/dvb-frontends/drx39xyj/drxj.c if (i2c_transfer(state->i2c, msg, 2) != 2) { msg 191 drivers/media/dvb-frontends/drxd_hard.c struct i2c_msg msg = {.addr = adr, .flags = 0, .buf = data, .len = len }; msg 193 drivers/media/dvb-frontends/drxd_hard.c if (i2c_transfer(adap, &msg, 1) != 1) msg 199 drivers/media/dvb-frontends/drxd_hard.c u8 adr, u8 *msg, int len, u8 *answ, int alen) msg 204 drivers/media/dvb-frontends/drxd_hard.c .buf = msg, .len = len msg 240 drivers/media/dvb-frontends/drxk_hard.c struct i2c_msg msg = { msg 250 drivers/media/dvb-frontends/drxk_hard.c status = drxk_i2c_transfer(state, &msg, 1); msg 261 drivers/media/dvb-frontends/drxk_hard.c u8 adr, u8 *msg, int len, u8 *answ, int alen) msg 266 drivers/media/dvb-frontends/drxk_hard.c .buf = msg, .len = len}, msg 285 drivers/media/dvb-frontends/drxk_hard.c pr_cont(" %02x", msg[i]); msg 231 drivers/media/dvb-frontends/ds3000.c struct i2c_msg msg = { .addr = state->config->demod_address, msg 237 drivers/media/dvb-frontends/ds3000.c err = i2c_transfer(state->i2c, &msg, 1); msg 264 drivers/media/dvb-frontends/ds3000.c struct i2c_msg msg; msg 273 drivers/media/dvb-frontends/ds3000.c msg.addr = state->config->demod_address; msg 274 drivers/media/dvb-frontends/ds3000.c msg.flags = 0; msg 275 drivers/media/dvb-frontends/ds3000.c msg.buf = buf; msg 276 drivers/media/dvb-frontends/ds3000.c msg.len = 33; msg 283 drivers/media/dvb-frontends/ds3000.c ret = i2c_transfer(state->i2c, &msg, 1); msg 304 drivers/media/dvb-frontends/ds3000.c struct i2c_msg msg[] = { msg 318 drivers/media/dvb-frontends/ds3000.c ret = i2c_transfer(state->i2c, msg, 2); msg 700 drivers/media/dvb-frontends/ds3000.c dprintk("0x%02x", d->msg[i]); msg 712 drivers/media/dvb-frontends/ds3000.c ds3000_writereg(state, 0xa3 + i, d->msg[i]); msg 343 drivers/media/dvb-frontends/dvb-pll.c struct i2c_msg msg = { msg 355 drivers/media/dvb-frontends/dvb-pll.c result = i2c_transfer(priv->i2c, &msg, 1); msg 414 drivers/media/dvb-frontends/dvb-pll.c struct i2c_msg msg = { msg 425 drivers/media/dvb-frontends/dvb-pll.c result = i2c_transfer(priv->i2c, &msg, 1); msg 648 drivers/media/dvb-frontends/dvb-pll.c struct i2c_msg msg = { .flags = 0, msg 657 drivers/media/dvb-frontends/dvb-pll.c if ((result = i2c_transfer(priv->i2c, &msg, 1)) != 1) { msg 671 drivers/media/dvb-frontends/dvb-pll.c struct i2c_msg msg = msg 688 drivers/media/dvb-frontends/dvb-pll.c if ((result = i2c_transfer(priv->i2c, &msg, 1)) != 1) { msg 745 drivers/media/dvb-frontends/dvb-pll.c struct i2c_msg msg = { .flags = 0, msg 753 drivers/media/dvb-frontends/dvb-pll.c result = i2c_transfer(priv->i2c, &msg, 1); msg 757 drivers/media/dvb-frontends/dvb-pll.c msg.buf = priv->pll_desc->initdata2 + 1; msg 758 drivers/media/dvb-frontends/dvb-pll.c msg.len = priv->pll_desc->initdata2[0]; msg 761 drivers/media/dvb-frontends/dvb-pll.c result = i2c_transfer(priv->i2c, &msg, 1); msg 786 drivers/media/dvb-frontends/dvb-pll.c struct i2c_msg msg = { .addr = pll_addr, .flags = I2C_M_RD, .len = 1 }; msg 797 drivers/media/dvb-frontends/dvb-pll.c msg.buf = b1; msg 816 drivers/media/dvb-frontends/dvb-pll.c ret = i2c_transfer (i2c, &msg, 1); msg 24 drivers/media/dvb-frontends/ec100.c struct i2c_msg msg[1] = { msg 33 drivers/media/dvb-frontends/ec100.c ret = i2c_transfer(state->i2c, msg, 1); msg 49 drivers/media/dvb-frontends/ec100.c struct i2c_msg msg[2] = { msg 63 drivers/media/dvb-frontends/ec100.c ret = i2c_transfer(state->i2c, msg, 2); msg 245 drivers/media/dvb-frontends/gp8psk-fe.c if (st->ops->out(st->priv, SEND_DISEQC_COMMAND, m->msg[0], 0, msg 246 drivers/media/dvb-frontends/gp8psk-fe.c m->msg, m->msg_len)) { msg 292 drivers/media/dvb-frontends/helene.c struct i2c_msg msg[1] = { msg 311 drivers/media/dvb-frontends/helene.c ret = i2c_transfer(priv->i2c, msg, 1); msg 334 drivers/media/dvb-frontends/helene.c struct i2c_msg msg[2] = { msg 348 drivers/media/dvb-frontends/helene.c ret = i2c_transfer(priv->i2c, &msg[0], 1); msg 357 drivers/media/dvb-frontends/helene.c ret = i2c_transfer(priv->i2c, &msg[1], 1); msg 51 drivers/media/dvb-frontends/horus3a.c struct i2c_msg msg[1] = { msg 69 drivers/media/dvb-frontends/horus3a.c ret = i2c_transfer(priv->i2c, msg, 1); msg 33 drivers/media/dvb-frontends/isl6405.c struct i2c_msg msg = { .addr = isl6405->i2c_addr, .flags = 0, msg 69 drivers/media/dvb-frontends/isl6405.c return (i2c_transfer(isl6405->i2c, &msg, 1) == 1) ? 0 : -EIO; msg 75 drivers/media/dvb-frontends/isl6405.c struct i2c_msg msg = { .addr = isl6405->i2c_addr, .flags = 0, msg 93 drivers/media/dvb-frontends/isl6405.c return (i2c_transfer(isl6405->i2c, &msg, 1) == 1) ? 0 : -EIO; msg 37 drivers/media/dvb-frontends/isl6421.c struct i2c_msg msg[2] = { msg 81 drivers/media/dvb-frontends/isl6421.c ret = i2c_transfer(isl6421->i2c, msg, 2); msg 99 drivers/media/dvb-frontends/isl6421.c ret = i2c_transfer(isl6421->i2c, msg, 2); msg 109 drivers/media/dvb-frontends/isl6421.c ret = i2c_transfer(isl6421->i2c, msg, 1); msg 127 drivers/media/dvb-frontends/isl6421.c struct i2c_msg msg = { .addr = isl6421->i2c_addr, .flags = 0, msg 139 drivers/media/dvb-frontends/isl6421.c return (i2c_transfer(isl6421->i2c, &msg, 1) == 1) ? 0 : -EIO; msg 146 drivers/media/dvb-frontends/isl6421.c struct i2c_msg msg = { .addr = isl6421->i2c_addr, .flags = 0, msg 164 drivers/media/dvb-frontends/isl6421.c return (i2c_transfer(isl6421->i2c, &msg, 1) == 1) ? 0 : -EIO; msg 62 drivers/media/dvb-frontends/isl6423.c struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = ®, .len = 1 }; msg 65 drivers/media/dvb-frontends/isl6423.c err = i2c_transfer(i2c, &msg, 1); msg 45 drivers/media/dvb-frontends/itd1000.c struct i2c_msg msg = { msg 61 drivers/media/dvb-frontends/itd1000.c if (i2c_transfer(state->i2c, &msg, 1) != 1) { msg 71 drivers/media/dvb-frontends/itd1000.c struct i2c_msg msg[2] = { msg 79 drivers/media/dvb-frontends/itd1000.c if (i2c_transfer(state->i2c, msg, 2) != 2) { msg 55 drivers/media/dvb-frontends/ix2505v.c struct i2c_msg msg[1] = { msg 59 drivers/media/dvb-frontends/ix2505v.c ret = i2c_transfer(state->i2c, msg, 1); msg 67 drivers/media/dvb-frontends/ix2505v.c struct i2c_msg msg[1] = { msg 74 drivers/media/dvb-frontends/ix2505v.c ret = i2c_transfer(state->i2c, msg, 1); msg 44 drivers/media/dvb-frontends/l64781.c struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; msg 46 drivers/media/dvb-frontends/l64781.c if ((ret = i2c_transfer(state->i2c, &msg, 1)) != 1) msg 58 drivers/media/dvb-frontends/l64781.c struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 }, msg 61 drivers/media/dvb-frontends/l64781.c ret = i2c_transfer(state->i2c, msg, 2); msg 102 drivers/media/dvb-frontends/l64781.c struct i2c_msg msg = { .addr = 0x00, .flags = 0, .buf = buf, .len = 1 }; msg 105 drivers/media/dvb-frontends/l64781.c return (i2c_transfer(state->i2c, &msg, 1) == 1) ? 0 : -ENODEV; msg 496 drivers/media/dvb-frontends/l64781.c struct i2c_msg msg [] = { { .addr = config->demod_address, .flags = 0, .buf = b0, .len = 1 }, msg 518 drivers/media/dvb-frontends/l64781.c if (i2c_transfer(state->i2c, msg, 2) != 2) { msg 57 drivers/media/dvb-frontends/lg2160.c struct i2c_msg msg = { msg 64 drivers/media/dvb-frontends/lg2160.c ret = i2c_transfer(state->i2c_adap, &msg, 1); msg 68 drivers/media/dvb-frontends/lg2160.c msg.buf[0], msg.buf[1], msg.buf[2], ret); msg 81 drivers/media/dvb-frontends/lg2160.c struct i2c_msg msg[] = { msg 90 drivers/media/dvb-frontends/lg2160.c ret = i2c_transfer(state->i2c_adap, msg, 2); msg 105 drivers/media/dvb-frontends/lgdt3305.c struct i2c_msg msg = { msg 112 drivers/media/dvb-frontends/lgdt3305.c ret = i2c_transfer(state->i2c_adap, &msg, 1); msg 116 drivers/media/dvb-frontends/lgdt3305.c msg.buf[0], msg.buf[1], msg.buf[2], ret); msg 129 drivers/media/dvb-frontends/lgdt3305.c struct i2c_msg msg[] = { msg 138 drivers/media/dvb-frontends/lgdt3305.c ret = i2c_transfer(state->i2c_adap, msg, 2); msg 127 drivers/media/dvb-frontends/lgdt3306a.c struct i2c_msg msg = { msg 134 drivers/media/dvb-frontends/lgdt3306a.c ret = i2c_transfer(state->i2c_adap, &msg, 1); msg 138 drivers/media/dvb-frontends/lgdt3306a.c msg.buf[0], msg.buf[1], msg.buf[2], ret); msg 151 drivers/media/dvb-frontends/lgdt3306a.c struct i2c_msg msg[] = { msg 158 drivers/media/dvb-frontends/lgdt3306a.c ret = i2c_transfer(state->i2c_adap, msg, 2); msg 96 drivers/media/dvb-frontends/lgdt330x.c struct i2c_msg msg[] = { msg 111 drivers/media/dvb-frontends/lgdt330x.c ret = i2c_transfer(state->client->adapter, msg, 2); msg 64 drivers/media/dvb-frontends/lgs8gl5.c struct i2c_msg msg = { msg 71 drivers/media/dvb-frontends/lgs8gl5.c ret = i2c_transfer(state->i2c, &msg, 1); msg 86 drivers/media/dvb-frontends/lgs8gl5.c struct i2c_msg msg[2] = { msg 101 drivers/media/dvb-frontends/lgs8gl5.c ret = i2c_transfer(state->i2c, msg, 2); msg 127 drivers/media/dvb-frontends/lgs8gl5.c struct i2c_msg msg[3] = { msg 148 drivers/media/dvb-frontends/lgs8gl5.c ret = i2c_transfer(state->i2c, msg, 3); msg 44 drivers/media/dvb-frontends/lgs8gxx.c struct i2c_msg msg = { .flags = 0, .buf = buf, .len = 2 }; msg 46 drivers/media/dvb-frontends/lgs8gxx.c msg.addr = priv->config->demod_address; msg 48 drivers/media/dvb-frontends/lgs8gxx.c msg.addr += 0x02; msg 53 drivers/media/dvb-frontends/lgs8gxx.c ret = i2c_transfer(priv->i2c, &msg, 1); msg 69 drivers/media/dvb-frontends/lgs8gxx.c struct i2c_msg msg[] = { msg 77 drivers/media/dvb-frontends/lgs8gxx.c msg[1].addr = msg[0].addr = dev_addr; msg 79 drivers/media/dvb-frontends/lgs8gxx.c ret = i2c_transfer(priv->i2c, msg, 2); msg 45 drivers/media/dvb-frontends/lnbh25.c struct i2c_msg msg[2] = { msg 60 drivers/media/dvb-frontends/lnbh25.c ret = i2c_transfer(priv->i2c, &msg[i], 1); msg 88 drivers/media/dvb-frontends/lnbh25.c struct i2c_msg msg = { msg 116 drivers/media/dvb-frontends/lnbh25.c ret = i2c_transfer(priv->i2c, &msg, 1); msg 45 drivers/media/dvb-frontends/lnbh29.c struct i2c_msg msg[2] = { msg 59 drivers/media/dvb-frontends/lnbh29.c ret = i2c_transfer(priv->i2c, msg, 2); msg 84 drivers/media/dvb-frontends/lnbh29.c struct i2c_msg msg = { msg 107 drivers/media/dvb-frontends/lnbh29.c ret = i2c_transfer(priv->i2c, &msg, 1); msg 34 drivers/media/dvb-frontends/lnbp21.c struct i2c_msg msg = { .addr = lnbp21->i2c_addr, .flags = 0, msg 56 drivers/media/dvb-frontends/lnbp21.c return (i2c_transfer(lnbp21->i2c, &msg, 1) == 1) ? 0 : -EIO; msg 62 drivers/media/dvb-frontends/lnbp21.c struct i2c_msg msg = { .addr = lnbp21->i2c_addr, .flags = 0, msg 74 drivers/media/dvb-frontends/lnbp21.c return (i2c_transfer(lnbp21->i2c, &msg, 1) == 1) ? 0 : -EIO; msg 81 drivers/media/dvb-frontends/lnbp21.c struct i2c_msg msg = { .addr = lnbp21->i2c_addr, .flags = 0, msg 99 drivers/media/dvb-frontends/lnbp21.c return (i2c_transfer(lnbp21->i2c, &msg, 1) == 1) ? 0 : -EIO; msg 38 drivers/media/dvb-frontends/lnbp22.c struct i2c_msg msg = { msg 63 drivers/media/dvb-frontends/lnbp22.c return (i2c_transfer(lnbp22->i2c, &msg, 1) == 1) ? 0 : -EIO; msg 69 drivers/media/dvb-frontends/lnbp22.c struct i2c_msg msg = { msg 82 drivers/media/dvb-frontends/lnbp22.c return (i2c_transfer(lnbp22->i2c, &msg, 1) == 1) ? 0 : -EIO; msg 1061 drivers/media/dvb-frontends/m88ds3103.c diseqc_cmd->msg_len, diseqc_cmd->msg); msg 1078 drivers/media/dvb-frontends/m88ds3103.c ret = regmap_bulk_write(dev->regmap, 0xa3, diseqc_cmd->msg, msg 1230 drivers/media/dvb-frontends/m88ds3103.c struct i2c_msg msg = { msg 1238 drivers/media/dvb-frontends/m88ds3103.c ret = __i2c_transfer(client->adapter, &msg, 1); msg 56 drivers/media/dvb-frontends/m88rs2000.c struct i2c_msg msg = { msg 63 drivers/media/dvb-frontends/m88rs2000.c ret = i2c_transfer(state->i2c, &msg, 1); msg 78 drivers/media/dvb-frontends/m88rs2000.c struct i2c_msg msg[] = { msg 92 drivers/media/dvb-frontends/m88rs2000.c ret = i2c_transfer(state->i2c, msg, 2); msg 206 drivers/media/dvb-frontends/m88rs2000.c m88rs2000_writereg(state, 0xb3 + i, m->msg[i]); msg 67 drivers/media/dvb-frontends/mb86a16.c struct i2c_msg msg = { msg 78 drivers/media/dvb-frontends/mb86a16.c ret = i2c_transfer(state->i2c_adap, &msg, 1); msg 89 drivers/media/dvb-frontends/mb86a16.c struct i2c_msg msg[] = { msg 102 drivers/media/dvb-frontends/mb86a16.c ret = i2c_transfer(state->i2c_adap, msg, 2); msg 1520 drivers/media/dvb-frontends/mb86a16.c if (mb86a16_write(state, regs, cmd->msg[i]) < 0) msg 216 drivers/media/dvb-frontends/mb86a20s.c struct i2c_msg msg = { msg 221 drivers/media/dvb-frontends/mb86a20s.c rc = i2c_transfer(state->i2c, &msg, 1); msg 251 drivers/media/dvb-frontends/mb86a20s.c struct i2c_msg msg[] = { msg 256 drivers/media/dvb-frontends/mb86a20s.c rc = i2c_transfer(state->i2c, msg, 2); msg 54 drivers/media/dvb-frontends/mt312.c struct i2c_msg msg[2]; msg 57 drivers/media/dvb-frontends/mt312.c msg[0].addr = state->config->demod_address; msg 58 drivers/media/dvb-frontends/mt312.c msg[0].flags = 0; msg 59 drivers/media/dvb-frontends/mt312.c msg[0].buf = regbuf; msg 60 drivers/media/dvb-frontends/mt312.c msg[0].len = 1; msg 61 drivers/media/dvb-frontends/mt312.c msg[1].addr = state->config->demod_address; msg 62 drivers/media/dvb-frontends/mt312.c msg[1].flags = I2C_M_RD; msg 63 drivers/media/dvb-frontends/mt312.c msg[1].buf = buf; msg 64 drivers/media/dvb-frontends/mt312.c msg[1].len = count; msg 66 drivers/media/dvb-frontends/mt312.c ret = i2c_transfer(state->i2c, msg, 2); msg 89 drivers/media/dvb-frontends/mt312.c struct i2c_msg msg; msg 108 drivers/media/dvb-frontends/mt312.c msg.addr = state->config->demod_address; msg 109 drivers/media/dvb-frontends/mt312.c msg.flags = 0; msg 110 drivers/media/dvb-frontends/mt312.c msg.buf = buf; msg 111 drivers/media/dvb-frontends/mt312.c msg.len = count + 1; msg 113 drivers/media/dvb-frontends/mt312.c ret = i2c_transfer(state->i2c, &msg, 1); msg 343 drivers/media/dvb-frontends/mt312.c if ((c->msg_len == 0) || (c->msg_len > sizeof(c->msg))) msg 350 drivers/media/dvb-frontends/mt312.c ret = mt312_write(state, (0x80 | DISEQC_INSTR), c->msg, c->msg_len); msg 364 drivers/media/dvb-frontends/mt312.c if (c->msg[0] & 0x02) { msg 48 drivers/media/dvb-frontends/mt352.c struct i2c_msg msg = { .addr = state->config.demod_address, .flags = 0, msg 50 drivers/media/dvb-frontends/mt352.c int err = i2c_transfer(state->i2c, &msg, 1); msg 73 drivers/media/dvb-frontends/mt352.c struct i2c_msg msg [] = { { .addr = state->config.demod_address, msg 80 drivers/media/dvb-frontends/mt352.c ret = i2c_transfer(state->i2c, msg, 2); msg 133 drivers/media/dvb-frontends/mxl5xx.c struct i2c_msg msg = {.addr = adr, .flags = 0, msg 136 drivers/media/dvb-frontends/mxl5xx.c return (i2c_transfer(adap, &msg, 1) == 1) ? 0 : -1; msg 142 drivers/media/dvb-frontends/mxl5xx.c struct i2c_msg msg = {.addr = adr, .flags = I2C_M_RD, msg 145 drivers/media/dvb-frontends/mxl5xx.c return (i2c_transfer(adap, &msg, 1) == 1) ? 0 : -1; msg 61 drivers/media/dvb-frontends/nxt200x.c struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = buf, .len = len }; msg 63 drivers/media/dvb-frontends/nxt200x.c if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { msg 74 drivers/media/dvb-frontends/nxt200x.c struct i2c_msg msg = { .addr = addr, .flags = I2C_M_RD, .buf = buf, .len = len }; msg 76 drivers/media/dvb-frontends/nxt200x.c if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { msg 89 drivers/media/dvb-frontends/nxt200x.c struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf2, .len = len + 1 }; msg 100 drivers/media/dvb-frontends/nxt200x.c if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { msg 112 drivers/media/dvb-frontends/nxt200x.c struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = reg2, .len = 1 }, msg 117 drivers/media/dvb-frontends/nxt200x.c if ((err = i2c_transfer (state->i2c, msg, 2)) != 2) { msg 41 drivers/media/dvb-frontends/nxt6000.c struct i2c_msg msg = {.addr = state->config->demod_address,.flags = 0,.buf = buf,.len = 2 }; msg 44 drivers/media/dvb-frontends/nxt6000.c if ((ret = i2c_transfer(state->i2c, &msg, 1)) != 1) msg 63 drivers/media/dvb-frontends/or51132.c struct i2c_msg msg = { .addr = state->config->demod_address, msg 67 drivers/media/dvb-frontends/or51132.c if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) { msg 69 drivers/media/dvb-frontends/or51132.c msg.addr, msg.len, err); msg 86 drivers/media/dvb-frontends/or51132.c struct i2c_msg msg = { .addr = state->config->demod_address, msg 90 drivers/media/dvb-frontends/or51132.c if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) { msg 92 drivers/media/dvb-frontends/or51132.c msg.addr, msg.len, err); msg 102 drivers/media/dvb-frontends/or51132.c struct i2c_msg msg[2] = { msg 109 drivers/media/dvb-frontends/or51132.c if ((err = i2c_transfer(state->i2c, msg, 2)) != 2) { msg 62 drivers/media/dvb-frontends/or51211.c struct i2c_msg msg; msg 63 drivers/media/dvb-frontends/or51211.c msg.addr = reg; msg 64 drivers/media/dvb-frontends/or51211.c msg.flags = 0; msg 65 drivers/media/dvb-frontends/or51211.c msg.len = len; msg 66 drivers/media/dvb-frontends/or51211.c msg.buf = (u8 *)buf; msg 68 drivers/media/dvb-frontends/or51211.c if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { msg 79 drivers/media/dvb-frontends/or51211.c struct i2c_msg msg; msg 80 drivers/media/dvb-frontends/or51211.c msg.addr = reg; msg 81 drivers/media/dvb-frontends/or51211.c msg.flags = I2C_M_RD; msg 82 drivers/media/dvb-frontends/or51211.c msg.len = len; msg 83 drivers/media/dvb-frontends/or51211.c msg.buf = buf; msg 85 drivers/media/dvb-frontends/or51211.c if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { msg 695 drivers/media/dvb-frontends/rtl2830.c struct i2c_msg msg[2] = { msg 709 drivers/media/dvb-frontends/rtl2830.c ret = __i2c_transfer(client->adapter, msg, 2); msg 723 drivers/media/dvb-frontends/rtl2830.c struct i2c_msg msg[1] = { msg 732 drivers/media/dvb-frontends/rtl2830.c ret = __i2c_transfer(client->adapter, msg, 1); msg 749 drivers/media/dvb-frontends/rtl2830.c struct i2c_msg msg[1] = { msg 761 drivers/media/dvb-frontends/rtl2830.c ret = __i2c_transfer(client->adapter, msg, 1); msg 306 drivers/media/dvb-frontends/s5h1409.c struct i2c_msg msg = { .addr = state->config->demod_address, msg 309 drivers/media/dvb-frontends/s5h1409.c ret = i2c_transfer(state->i2c, &msg, 1); msg 324 drivers/media/dvb-frontends/s5h1409.c struct i2c_msg msg[] = { msg 330 drivers/media/dvb-frontends/s5h1409.c ret = i2c_transfer(state->i2c, msg, 2); msg 336 drivers/media/dvb-frontends/s5h1411.c struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = buf, .len = 3 }; msg 338 drivers/media/dvb-frontends/s5h1411.c ret = i2c_transfer(state->i2c, &msg, 1); msg 353 drivers/media/dvb-frontends/s5h1411.c struct i2c_msg msg[] = { msg 357 drivers/media/dvb-frontends/s5h1411.c ret = i2c_transfer(state->i2c, msg, 2); msg 69 drivers/media/dvb-frontends/s5h1420.c struct i2c_msg msg[] = { msg 79 drivers/media/dvb-frontends/s5h1420.c ret = i2c_transfer(state->i2c, msg, 3); msg 83 drivers/media/dvb-frontends/s5h1420.c ret = i2c_transfer(state->i2c, &msg[1], 1); msg 86 drivers/media/dvb-frontends/s5h1420.c ret = i2c_transfer(state->i2c, &msg[2], 1); msg 99 drivers/media/dvb-frontends/s5h1420.c struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; msg 103 drivers/media/dvb-frontends/s5h1420.c err = i2c_transfer(state->i2c, &msg, 1); msg 171 drivers/media/dvb-frontends/s5h1420.c if (cmd->msg_len > sizeof(cmd->msg)) msg 181 drivers/media/dvb-frontends/s5h1420.c s5h1420_writereg(state, 0x3d + i, cmd->msg[i]); msg 243 drivers/media/dvb-frontends/s5h1420.c if (length > sizeof(reply->msg)) { msg 251 drivers/media/dvb-frontends/s5h1420.c reply->msg[i] = s5h1420_readreg(state, 0x3d + i); msg 833 drivers/media/dvb-frontends/s5h1420.c static int s5h1420_tuner_i2c_tuner_xfer(struct i2c_adapter *i2c_adap, struct i2c_msg msg[], int num) msg 852 drivers/media/dvb-frontends/s5h1420.c memcpy(&m[1], msg, sizeof(struct i2c_msg) * num); msg 48 drivers/media/dvb-frontends/s5h1432.c struct i2c_msg msg = {.addr = addr, .flags = 0, .buf = buf, .len = 2 }; msg 50 drivers/media/dvb-frontends/s5h1432.c ret = i2c_transfer(state->i2c, &msg, 1); msg 65 drivers/media/dvb-frontends/s5h1432.c struct i2c_msg msg[] = { msg 70 drivers/media/dvb-frontends/s5h1432.c ret = i2c_transfer(state->i2c, msg, 2); msg 202 drivers/media/dvb-frontends/s921.c struct i2c_msg msg = { msg 207 drivers/media/dvb-frontends/s921.c rc = i2c_transfer(state->i2c, &msg, 1); msg 234 drivers/media/dvb-frontends/s921.c struct i2c_msg msg[] = { msg 239 drivers/media/dvb-frontends/s921.c rc = i2c_transfer(state->i2c, msg, 2); msg 227 drivers/media/dvb-frontends/si21xx.c struct i2c_msg msg = { msg 237 drivers/media/dvb-frontends/si21xx.c msg.buf[0] = reg1; msg 238 drivers/media/dvb-frontends/si21xx.c memcpy(msg.buf + 1, data, len); msg 240 drivers/media/dvb-frontends/si21xx.c ret = i2c_transfer(state->i2c, &msg, 1); msg 253 drivers/media/dvb-frontends/si21xx.c struct i2c_msg msg = { msg 260 drivers/media/dvb-frontends/si21xx.c ret = i2c_transfer(state->i2c, &msg, 1); msg 284 drivers/media/dvb-frontends/si21xx.c struct i2c_msg msg[] = { msg 298 drivers/media/dvb-frontends/si21xx.c ret = i2c_transfer(state->i2c, msg, 2); msg 310 drivers/media/dvb-frontends/si21xx.c struct i2c_msg msg[] = { msg 324 drivers/media/dvb-frontends/si21xx.c ret = i2c_transfer(state->i2c, msg, 2); msg 395 drivers/media/dvb-frontends/si21xx.c status |= si21_writeregs(state, LNB_FIFO_REGS_0, m->msg, m->msg_len); msg 22 drivers/media/dvb-frontends/sp2.c struct i2c_msg msg[] = { msg 36 drivers/media/dvb-frontends/sp2.c ret = i2c_transfer(adap, msg, 2); msg 59 drivers/media/dvb-frontends/sp2.c struct i2c_msg msg = { msg 75 drivers/media/dvb-frontends/sp2.c ret = i2c_transfer(adap, &msg, 1); msg 56 drivers/media/dvb-frontends/sp8870.c struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 4 }; msg 59 drivers/media/dvb-frontends/sp8870.c if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { msg 72 drivers/media/dvb-frontends/sp8870.c struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 2 }, msg 75 drivers/media/dvb-frontends/sp8870.c ret = i2c_transfer (state->i2c, msg, 2); msg 87 drivers/media/dvb-frontends/sp8870.c struct i2c_msg msg; msg 116 drivers/media/dvb-frontends/sp8870.c msg.addr = state->config->demod_address; msg 117 drivers/media/dvb-frontends/sp8870.c msg.flags = 0; msg 118 drivers/media/dvb-frontends/sp8870.c msg.buf = tx_buf; msg 119 drivers/media/dvb-frontends/sp8870.c msg.len = tx_len + 2; msg 120 drivers/media/dvb-frontends/sp8870.c if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { msg 42 drivers/media/dvb-frontends/sp887x.c struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = len }; msg 45 drivers/media/dvb-frontends/sp887x.c if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { msg 57 drivers/media/dvb-frontends/sp887x.c struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 4 }; msg 60 drivers/media/dvb-frontends/sp887x.c if ((ret = i2c_transfer(state->i2c, &msg, 1)) != 1) { msg 81 drivers/media/dvb-frontends/sp887x.c struct i2c_msg msg[] = {{ .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 2 }, msg 84 drivers/media/dvb-frontends/sp887x.c if ((ret = i2c_transfer(state->i2c, msg, 2)) != 2) { msg 220 drivers/media/dvb-frontends/stb0899_drv.c struct i2c_msg msg[] = { msg 234 drivers/media/dvb-frontends/stb0899_drv.c ret = i2c_transfer(state->i2c, msg, 2); msg 446 drivers/media/dvb-frontends/stb0899_drv.c struct i2c_msg msg[] = { msg 460 drivers/media/dvb-frontends/stb0899_drv.c status = i2c_transfer(state->i2c, msg, 2); msg 691 drivers/media/dvb-frontends/stb0899_drv.c if (cmd->msg_len > sizeof(cmd->msg)) msg 703 drivers/media/dvb-frontends/stb0899_drv.c stb0899_write_reg(state, STB0899_DISFIFO, cmd->msg[i]); msg 744 drivers/media/dvb-frontends/stb0899_drv.c if (length > sizeof (reply->msg)) { msg 752 drivers/media/dvb-frontends/stb0899_drv.c reply->msg[i] = stb0899_read_reg(state, STB0899_DISFIFO); msg 42 drivers/media/dvb-frontends/stb6000.c struct i2c_msg msg = { msg 54 drivers/media/dvb-frontends/stb6000.c ret = i2c_transfer(priv->i2c, &msg, 1); msg 73 drivers/media/dvb-frontends/stb6000.c struct i2c_msg msg = { msg 135 drivers/media/dvb-frontends/stb6000.c ret = i2c_transfer(priv->i2c, &msg, 1); msg 148 drivers/media/dvb-frontends/stb6000.c msg.len = 5; msg 153 drivers/media/dvb-frontends/stb6000.c ret = i2c_transfer(priv->i2c, &msg, 1); msg 193 drivers/media/dvb-frontends/stb6000.c struct i2c_msg msg[2] = { msg 214 drivers/media/dvb-frontends/stb6000.c ret = i2c_transfer(i2c, msg, 2); msg 124 drivers/media/dvb-frontends/stb6100.c struct i2c_msg msg = { msg 131 drivers/media/dvb-frontends/stb6100.c rc = i2c_transfer(state->i2c, &msg, 1); msg 152 drivers/media/dvb-frontends/stb6100.c struct i2c_msg msg = { msg 159 drivers/media/dvb-frontends/stb6100.c i2c_transfer(state->i2c, &msg, 1); msg 177 drivers/media/dvb-frontends/stb6100.c struct i2c_msg msg = { msg 206 drivers/media/dvb-frontends/stb6100.c rc = i2c_transfer(state->i2c, &msg, 1); msg 55 drivers/media/dvb-frontends/stv0288.c struct i2c_msg msg = { msg 62 drivers/media/dvb-frontends/stv0288.c ret = i2c_transfer(state->i2c, &msg, 1); msg 86 drivers/media/dvb-frontends/stv0288.c struct i2c_msg msg[] = { msg 100 drivers/media/dvb-frontends/stv0288.c ret = i2c_transfer(state->i2c, msg, 2); msg 157 drivers/media/dvb-frontends/stv0288.c if (stv0288_writeregI(state, 0x06, m->msg[i])) msg 43 drivers/media/dvb-frontends/stv0297.c struct i2c_msg msg = {.addr = state->config->demod_address,.flags = 0,.buf = buf,.len = 2 }; msg 45 drivers/media/dvb-frontends/stv0297.c ret = i2c_transfer(state->i2c, &msg, 1); msg 59 drivers/media/dvb-frontends/stv0297.c struct i2c_msg msg[] = { {.addr = state->config->demod_address,.flags = 0,.buf = b0,.len = 1}, msg 65 drivers/media/dvb-frontends/stv0297.c if ((ret = i2c_transfer(state->i2c, &msg[0], 1)) != 1) { msg 69 drivers/media/dvb-frontends/stv0297.c if ((ret = i2c_transfer(state->i2c, &msg[1], 1)) != 1) { msg 74 drivers/media/dvb-frontends/stv0297.c if ((ret = i2c_transfer(state->i2c, msg, 2)) != 2) { msg 98 drivers/media/dvb-frontends/stv0297.c struct i2c_msg msg[] = { {.addr = state->config->demod_address,.flags = 0,.buf = msg 105 drivers/media/dvb-frontends/stv0297.c if ((ret = i2c_transfer(state->i2c, &msg[0], 1)) != 1) { msg 109 drivers/media/dvb-frontends/stv0297.c if ((ret = i2c_transfer(state->i2c, &msg[1], 1)) != 1) { msg 114 drivers/media/dvb-frontends/stv0297.c if ((ret = i2c_transfer(state->i2c, msg, 2)) != 2) { msg 74 drivers/media/dvb-frontends/stv0299.c struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; msg 76 drivers/media/dvb-frontends/stv0299.c ret = i2c_transfer (state->i2c, &msg, 1); msg 100 drivers/media/dvb-frontends/stv0299.c struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 }, msg 103 drivers/media/dvb-frontends/stv0299.c ret = i2c_transfer (state->i2c, msg, 2); msg 115 drivers/media/dvb-frontends/stv0299.c struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = ®1, .len = 1 }, msg 118 drivers/media/dvb-frontends/stv0299.c ret = i2c_transfer (state->i2c, msg, 2); msg 284 drivers/media/dvb-frontends/stv0299.c if (stv0299_writeregI (state, 0x09, m->msg[i])) msg 125 drivers/media/dvb-frontends/stv0367.c struct i2c_msg msg = { msg 149 drivers/media/dvb-frontends/stv0367.c ret = i2c_transfer(state->i2c, &msg, 1); msg 168 drivers/media/dvb-frontends/stv0367.c struct i2c_msg msg[] = { msg 186 drivers/media/dvb-frontends/stv0367.c ret = i2c_transfer(state->i2c, msg, 2); msg 144 drivers/media/dvb-frontends/stv0900_core.c struct i2c_msg msg[] = { msg 158 drivers/media/dvb-frontends/stv0900_core.c ret = i2c_transfer(intp->i2c_adap, msg, 2); msg 1731 drivers/media/dvb-frontends/stv0900_core.c cmd->msg, msg 1780 drivers/media/dvb-frontends/stv0900_core.c reply->msg[i] = stv0900_read_reg(intp, DISRXDATA); msg 691 drivers/media/dvb-frontends/stv090x.c struct i2c_msg msg[] = { msg 696 drivers/media/dvb-frontends/stv090x.c ret = i2c_transfer(state->i2c, msg, 2); msg 3805 drivers/media/dvb-frontends/stv090x.c if (STV090x_WRITE_DEMOD(state, DISTXDATA, cmd->msg[i]) < 0) msg 3901 drivers/media/dvb-frontends/stv090x.c reply->msg[i] = STV090x_READ_DEMOD(state, DISRXDATA); msg 145 drivers/media/dvb-frontends/stv0910.c struct i2c_msg msg = {.addr = state->base->adr, .flags = 0, msg 148 drivers/media/dvb-frontends/stv0910.c if (i2c_transfer(adap, &msg, 1) != 1) { msg 159 drivers/media/dvb-frontends/stv0910.c u8 msg[2] = {reg >> 8, reg & 0xff}; msg 161 drivers/media/dvb-frontends/stv0910.c .buf = msg, .len = 2}, msg 1687 drivers/media/dvb-frontends/stv0910.c SET_REG(DISTXFIFO, cmd->msg[i]); msg 60 drivers/media/dvb-frontends/stv6110.c struct i2c_msg msg = { msg 85 drivers/media/dvb-frontends/stv6110.c rc = i2c_transfer(priv->i2c, &msg, 1); msg 101 drivers/media/dvb-frontends/stv6110.c struct i2c_msg msg[] = { msg 118 drivers/media/dvb-frontends/stv6110.c rc = i2c_transfer(priv->i2c, msg, 2); msg 386 drivers/media/dvb-frontends/stv6110.c struct i2c_msg msg[] = { msg 403 drivers/media/dvb-frontends/stv6110.c ret = i2c_transfer(i2c, msg, 1); msg 36 drivers/media/dvb-frontends/stv6110x.c struct i2c_msg msg[] = { msg 41 drivers/media/dvb-frontends/stv6110x.c ret = i2c_transfer(stv6110x->i2c, msg, 2); msg 57 drivers/media/dvb-frontends/stv6110x.c struct i2c_msg msg = { msg 77 drivers/media/dvb-frontends/stv6110x.c ret = i2c_transfer(stv6110x->i2c, &msg, 1); msg 305 drivers/media/dvb-frontends/stv6111.c u8 adr, u8 *msg, int len, u8 *answ, int alen) msg 308 drivers/media/dvb-frontends/stv6111.c .buf = msg, .len = len}, msg 320 drivers/media/dvb-frontends/stv6111.c struct i2c_msg msg = {.addr = adr, .flags = 0, msg 323 drivers/media/dvb-frontends/stv6111.c if (i2c_transfer(adap, &msg, 1) != 1) { msg 49 drivers/media/dvb-frontends/tc90522.c struct i2c_msg msg; msg 52 drivers/media/dvb-frontends/tc90522.c msg.addr = state->i2c_client->addr; msg 53 drivers/media/dvb-frontends/tc90522.c msg.flags = 0; msg 54 drivers/media/dvb-frontends/tc90522.c msg.len = 2; msg 56 drivers/media/dvb-frontends/tc90522.c msg.buf = (u8 *)®s[i]; msg 57 drivers/media/dvb-frontends/tc90522.c ret = i2c_transfer(state->i2c_client->adapter, &msg, 1); msg 63 drivers/media/dvb-frontends/tda10021.c struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; msg 66 drivers/media/dvb-frontends/tda10021.c ret = i2c_transfer (state->i2c, &msg, 1); msg 79 drivers/media/dvb-frontends/tda10021.c struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 }, msg 83 drivers/media/dvb-frontends/tda10021.c ret = i2c_transfer (state->i2c, msg, 2); msg 95 drivers/media/dvb-frontends/tda10021.c struct i2c_msg msg = {.addr=state->config->demod_address, .flags=0, .buf=buf, .len=2}; msg 97 drivers/media/dvb-frontends/tda10021.c if(i2c_transfer(state->i2c, &msg, 1) != 1) msg 56 drivers/media/dvb-frontends/tda10023.c struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 1 }, msg 60 drivers/media/dvb-frontends/tda10023.c ret = i2c_transfer (state->i2c, msg, 2); msg 72 drivers/media/dvb-frontends/tda10023.c struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; msg 75 drivers/media/dvb-frontends/tda10023.c ret = i2c_transfer (state->i2c, &msg, 1); msg 120 drivers/media/dvb-frontends/tda10023.c struct i2c_msg msg = {.addr=state->config->demod_address, .flags=0, .buf=buf, .len=2}; msg 122 drivers/media/dvb-frontends/tda10023.c if(i2c_transfer(state->i2c, &msg, 1) != 1) msg 214 drivers/media/dvb-frontends/tda10048.c struct i2c_msg msg = { msg 220 drivers/media/dvb-frontends/tda10048.c ret = i2c_transfer(state->i2c, &msg, 1); msg 234 drivers/media/dvb-frontends/tda10048.c struct i2c_msg msg[] = { msg 242 drivers/media/dvb-frontends/tda10048.c ret = i2c_transfer(state->i2c, msg, 2); msg 256 drivers/media/dvb-frontends/tda10048.c struct i2c_msg msg; msg 270 drivers/media/dvb-frontends/tda10048.c msg.addr = config->demod_address; msg 271 drivers/media/dvb-frontends/tda10048.c msg.flags = 0; msg 272 drivers/media/dvb-frontends/tda10048.c msg.buf = buf; msg 273 drivers/media/dvb-frontends/tda10048.c msg.len = len + 1; msg 276 drivers/media/dvb-frontends/tda10048.c __func__, msg.len); msg 278 drivers/media/dvb-frontends/tda10048.c ret = i2c_transfer(state->i2c, &msg, 1); msg 119 drivers/media/dvb-frontends/tda1004x.c struct i2c_msg msg = { .flags = 0, .buf = buf, .len = 2 }; msg 123 drivers/media/dvb-frontends/tda1004x.c msg.addr = state->config->demod_address; msg 124 drivers/media/dvb-frontends/tda1004x.c ret = i2c_transfer(state->i2c, &msg, 1); msg 140 drivers/media/dvb-frontends/tda1004x.c struct i2c_msg msg[] = {{ .flags = 0, .buf = b0, .len = 1 }, msg 145 drivers/media/dvb-frontends/tda1004x.c msg[0].addr = state->config->demod_address; msg 146 drivers/media/dvb-frontends/tda1004x.c msg[1].addr = state->config->demod_address; msg 147 drivers/media/dvb-frontends/tda1004x.c ret = i2c_transfer(state->i2c, msg, 2); msg 227 drivers/media/dvb-frontends/tda10071.c memcpy(&cmd.args[7], diseqc_cmd->msg, diseqc_cmd->msg_len); msg 277 drivers/media/dvb-frontends/tda10071.c if (reply->msg_len > sizeof(reply->msg)) msg 278 drivers/media/dvb-frontends/tda10071.c reply->msg_len = sizeof(reply->msg); /* truncate API max */ msg 288 drivers/media/dvb-frontends/tda10071.c ret = regmap_bulk_read(dev->regmap, cmd.len, reply->msg, msg 43 drivers/media/dvb-frontends/tda10086.c struct i2c_msg msg = { .flags = 0, .buf = b0, .len = 2 }; msg 45 drivers/media/dvb-frontends/tda10086.c msg.addr = state->config->demod_address; msg 46 drivers/media/dvb-frontends/tda10086.c ret = i2c_transfer(state->i2c, &msg, 1); msg 60 drivers/media/dvb-frontends/tda10086.c struct i2c_msg msg[] = {{ .flags = 0, .buf = b0, .len = 1 }, msg 63 drivers/media/dvb-frontends/tda10086.c msg[0].addr = state->config->demod_address; msg 64 drivers/media/dvb-frontends/tda10086.c msg[1].addr = state->config->demod_address; msg 65 drivers/media/dvb-frontends/tda10086.c ret = i2c_transfer(state->i2c, msg, 2); msg 217 drivers/media/dvb-frontends/tda10086.c tda10086_write_byte(state, 0x48+i, cmd->msg[i]); msg 114 drivers/media/dvb-frontends/tda18271c2dd.c struct i2c_msg msg = {.addr = adr, .flags = 0, msg 117 drivers/media/dvb-frontends/tda18271c2dd.c if (i2c_transfer(adap, &msg, 1) != 1) { msg 143 drivers/media/dvb-frontends/tda18271c2dd.c u8 msg[2] = {SubAddr, Reg}; msg 145 drivers/media/dvb-frontends/tda18271c2dd.c return i2c_write(state->i2c, state->adr, msg, 2); msg 29 drivers/media/dvb-frontends/tda665x.c struct i2c_msg msg = { .addr = config->addr, .flags = I2C_M_RD, .buf = buf, .len = 2 }; msg 31 drivers/media/dvb-frontends/tda665x.c err = i2c_transfer(state->i2c, &msg, 1); msg 45 drivers/media/dvb-frontends/tda665x.c struct i2c_msg msg = { .addr = config->addr, .flags = 0, .buf = buf, .len = length }; msg 47 drivers/media/dvb-frontends/tda665x.c err = i2c_transfer(state->i2c, &msg, 1); msg 53 drivers/media/dvb-frontends/tda8083.c struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 2 }; msg 55 drivers/media/dvb-frontends/tda8083.c ret = i2c_transfer(state->i2c, &msg, 1); msg 67 drivers/media/dvb-frontends/tda8083.c struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = ®1, .len = 1 }, msg 70 drivers/media/dvb-frontends/tda8083.c ret = i2c_transfer(state->i2c, msg, 2); msg 228 drivers/media/dvb-frontends/tda8083.c tda8083_writereg (state, 0x23 + i, m->msg[i]); msg 31 drivers/media/dvb-frontends/tda8261.c struct i2c_msg msg = { .addr = config->addr, .flags = I2C_M_RD,.buf = buf, .len = 1 }; msg 33 drivers/media/dvb-frontends/tda8261.c if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) msg 43 drivers/media/dvb-frontends/tda8261.c struct i2c_msg msg = { .addr = config->addr, .flags = 0, .buf = buf, .len = 4 }; msg 45 drivers/media/dvb-frontends/tda8261.c if ((err = i2c_transfer(state->i2c, &msg, 1)) != 1) msg 42 drivers/media/dvb-frontends/tda826x.c struct i2c_msg msg = { .addr = priv->i2c_address, .flags = 0, .buf = buf, .len = 2 }; msg 51 drivers/media/dvb-frontends/tda826x.c if ((ret = i2c_transfer (priv->i2c, &msg, 1)) != 1) { msg 69 drivers/media/dvb-frontends/tda826x.c struct i2c_msg msg = { .addr = priv->i2c_address, .flags = 0, .buf = buf, .len = 11 }; msg 100 drivers/media/dvb-frontends/tda826x.c if ((ret = i2c_transfer (priv->i2c, &msg, 1)) != 1) { msg 134 drivers/media/dvb-frontends/tda826x.c struct i2c_msg msg[2] = { msg 144 drivers/media/dvb-frontends/tda826x.c ret = i2c_transfer (i2c, msg, 2); msg 32 drivers/media/dvb-frontends/tdhd1.h struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = sizeof(data) }; msg 52 drivers/media/dvb-frontends/tdhd1.h if (i2c_transfer(i2c, &msg, 1) != 1) msg 44 drivers/media/dvb-frontends/tua6100.c struct i2c_msg msg = { .addr = priv->i2c_address, .flags = 0, .buf = reg0, .len = 2 }; msg 48 drivers/media/dvb-frontends/tua6100.c if ((ret = i2c_transfer (priv->i2c, &msg, 1)) != 1) { msg 165 drivers/media/dvb-frontends/tua6100.c struct i2c_msg msg [] = { { .addr = addr, .flags = 0, .buf = b1, .len = 1 }, msg 171 drivers/media/dvb-frontends/tua6100.c ret = i2c_transfer (i2c, msg, 2); msg 50 drivers/media/dvb-frontends/ves1820.c struct i2c_msg msg = {.addr = state->config->demod_address,.flags = 0,.buf = buf,.len = 3 }; msg 53 drivers/media/dvb-frontends/ves1820.c ret = i2c_transfer(state->i2c, &msg, 1); msg 66 drivers/media/dvb-frontends/ves1820.c struct i2c_msg msg[] = { msg 72 drivers/media/dvb-frontends/ves1820.c ret = i2c_transfer(state->i2c, msg, 2); msg 85 drivers/media/dvb-frontends/ves1x93.c struct i2c_msg msg = { .addr = state->config->demod_address, .flags = 0, .buf = buf, .len = 3 }; msg 88 drivers/media/dvb-frontends/ves1x93.c if ((err = i2c_transfer (state->i2c, &msg, 1)) != 1) { msg 101 drivers/media/dvb-frontends/ves1x93.c struct i2c_msg msg [] = { { .addr = state->config->demod_address, .flags = 0, .buf = b0, .len = 2 }, msg 104 drivers/media/dvb-frontends/ves1x93.c ret = i2c_transfer (state->i2c, msg, 2); msg 310 drivers/media/dvb-frontends/zd1301_demod.c struct i2c_msg msg[], int num) msg 325 drivers/media/dvb-frontends/zd1301_demod.c if (ZD1301_IS_I2C_XFER_WRITE_READ(msg, num)) { msg 327 drivers/media/dvb-frontends/zd1301_demod.c msg[0].len, msg[1].len); msg 328 drivers/media/dvb-frontends/zd1301_demod.c if (msg[0].len > 1 || msg[1].len > 8) { msg 339 drivers/media/dvb-frontends/zd1301_demod.c ret = zd1301_demod_wreg(dev, 0x6813, msg[1].addr << 1); msg 342 drivers/media/dvb-frontends/zd1301_demod.c ret = zd1301_demod_wreg(dev, 0x6801, msg[0].buf[0]); msg 354 drivers/media/dvb-frontends/zd1301_demod.c ret = zd1301_demod_wreg(dev, 0x6804, msg[1].len); msg 368 drivers/media/dvb-frontends/zd1301_demod.c for (i = 0; i < msg[1].len; i++) { msg 369 drivers/media/dvb-frontends/zd1301_demod.c ret = zd1301_demod_rreg(dev, 0x0600 + i, &msg[1].buf[i]); msg 373 drivers/media/dvb-frontends/zd1301_demod.c } else if (ZD1301_IS_I2C_XFER_WRITE(msg, num)) { msg 374 drivers/media/dvb-frontends/zd1301_demod.c dev_dbg(&pdev->dev, "write msg[0].len=%u\n", msg[0].len); msg 375 drivers/media/dvb-frontends/zd1301_demod.c if (msg[0].len > 1 + 8) { msg 386 drivers/media/dvb-frontends/zd1301_demod.c ret = zd1301_demod_wreg(dev, 0x6813, msg[0].addr << 1); msg 389 drivers/media/dvb-frontends/zd1301_demod.c ret = zd1301_demod_wreg(dev, 0x6800, msg[0].buf[0]); msg 399 drivers/media/dvb-frontends/zd1301_demod.c for (i = 0; i < msg[0].len - 1; i++) { msg 400 drivers/media/dvb-frontends/zd1301_demod.c ret = zd1301_demod_wreg(dev, 0x0600 + i, msg[0].buf[1 + i]); msg 408 drivers/media/dvb-frontends/zd1301_demod.c ret = zd1301_demod_wreg(dev, 0x6804, msg[0].len - 1); msg 422 drivers/media/dvb-frontends/zd1301_demod.c dev_dbg(&pdev->dev, "unknown msg[0].len=%u\n", msg[0].len); msg 62 drivers/media/dvb-frontends/zl10036.c struct i2c_msg msg[1] = { msg 67 drivers/media/dvb-frontends/zl10036.c if (i2c_transfer(state->i2c, msg, 1) != 1) { msg 84 drivers/media/dvb-frontends/zl10036.c struct i2c_msg msg[1] = { msg 116 drivers/media/dvb-frontends/zl10036.c ret = i2c_transfer(state->i2c, msg, 1); msg 62 drivers/media/dvb-frontends/zl10039.c struct i2c_msg msg[] = { msg 78 drivers/media/dvb-frontends/zl10039.c if (i2c_transfer(state->i2c, msg, 2) != 2) { msg 91 drivers/media/dvb-frontends/zl10039.c struct i2c_msg msg = { msg 109 drivers/media/dvb-frontends/zl10039.c if (i2c_transfer(state->i2c, &msg, 1) != 1) { msg 43 drivers/media/dvb-frontends/zl10353.c struct i2c_msg msg = { .addr = state->config.demod_address, .flags = 0, msg 45 drivers/media/dvb-frontends/zl10353.c int err = i2c_transfer(state->i2c, &msg, 1); msg 68 drivers/media/dvb-frontends/zl10353.c struct i2c_msg msg[2] = { { .addr = state->config.demod_address, msg 75 drivers/media/dvb-frontends/zl10353.c ret = i2c_transfer(state->i2c, msg, 2); msg 223 drivers/media/firewire/firedtv-avc.c static void debug_pmt(char *msg, int length) msg 227 drivers/media/firewire/firedtv-avc.c 16, 1, msg, length, false); msg 854 drivers/media/firewire/firedtv-avc.c c->operand[pos++] = diseqcmd[j].msg[k]; msg 1091 drivers/media/firewire/firedtv-avc.c int avc_ca_pmt(struct firedtv *fdtv, char *msg, int length) msg 1105 drivers/media/firewire/firedtv-avc.c debug_pmt(msg, length); msg 1113 drivers/media/firewire/firedtv-avc.c if (msg[0] != EN50221_LIST_MANAGEMENT_ONLY) { msg 1115 drivers/media/firewire/firedtv-avc.c msg[0] = EN50221_LIST_MANAGEMENT_ONLY; msg 1118 drivers/media/firewire/firedtv-avc.c list_management = msg[0]; msg 1119 drivers/media/firewire/firedtv-avc.c program_info_length = ((msg[4] & 0x0f) << 8) + msg[5]; msg 1122 drivers/media/firewire/firedtv-avc.c pmt_cmd_id = msg[6]; msg 1140 drivers/media/firewire/firedtv-avc.c c->operand[15] = msg[1]; /* Program number */ msg 1141 drivers/media/firewire/firedtv-avc.c c->operand[16] = msg[2]; msg 1142 drivers/media/firewire/firedtv-avc.c c->operand[17] = msg[3]; /* Version number and current/next */ msg 1154 drivers/media/firewire/firedtv-avc.c pmt_cmd_id = msg[read_pos++]; msg 1163 drivers/media/firewire/firedtv-avc.c memcpy(&c->operand[write_pos], &msg[read_pos], msg 1169 drivers/media/firewire/firedtv-avc.c c->operand[write_pos++] = msg[read_pos++]; msg 1170 drivers/media/firewire/firedtv-avc.c c->operand[write_pos++] = msg[read_pos++]; msg 1171 drivers/media/firewire/firedtv-avc.c c->operand[write_pos++] = msg[read_pos++]; msg 1173 drivers/media/firewire/firedtv-avc.c ((msg[read_pos] & 0x0f) << 8) + msg[read_pos + 1]; msg 1180 drivers/media/firewire/firedtv-avc.c pmt_cmd_id = msg[read_pos++]; msg 1191 drivers/media/firewire/firedtv-avc.c memcpy(&c->operand[write_pos], &msg[read_pos], msg 77 drivers/media/firewire/firedtv-ci.c return avc_ca_app_info(fdtv, reply->msg, &reply->length); msg 84 drivers/media/firewire/firedtv-ci.c return avc_ca_info(fdtv, reply->msg, &reply->length); msg 91 drivers/media/firewire/firedtv-ci.c return avc_ca_get_mmi(fdtv, reply->msg, &reply->length); msg 124 drivers/media/firewire/firedtv-ci.c struct ca_msg *msg = arg; msg 130 drivers/media/firewire/firedtv-ci.c if (msg->msg[3] & 0x80) { msg 132 drivers/media/firewire/firedtv-ci.c for (i = 0; i < (msg->msg[3] & 0x7f); i++) msg 133 drivers/media/firewire/firedtv-ci.c data_length = (data_length << 8) + msg->msg[data_pos++]; msg 135 drivers/media/firewire/firedtv-ci.c data_length = msg->msg[3]; msg 138 drivers/media/firewire/firedtv-ci.c return avc_ca_pmt(fdtv, &msg->msg[data_pos], data_length); msg 143 drivers/media/firewire/firedtv-ci.c struct ca_msg *msg = arg; msg 148 drivers/media/firewire/firedtv-ci.c (msg->msg[0] << 16) + (msg->msg[1] << 8) + msg->msg[2]; msg 59 drivers/media/i2c/ad5820.c struct i2c_msg msg; msg 67 drivers/media/i2c/ad5820.c msg.addr = client->addr; msg 68 drivers/media/i2c/ad5820.c msg.flags = 0; msg 69 drivers/media/i2c/ad5820.c msg.len = 2; msg 70 drivers/media/i2c/ad5820.c msg.buf = (u8 *)&be_data; msg 72 drivers/media/i2c/ad5820.c r = i2c_transfer(client->adapter, &msg, 1); msg 818 drivers/media/i2c/adv7511-v4l2.c u32 signal_free_time, struct cec_msg *msg) msg 822 drivers/media/i2c/adv7511-v4l2.c u8 len = msg->len; msg 844 drivers/media/i2c/adv7511-v4l2.c adv7511_cec_write(sd, i, msg->msg[i]); msg 973 drivers/media/i2c/adv7511-v4l2.c struct cec_msg msg; msg 975 drivers/media/i2c/adv7511-v4l2.c msg.len = adv7511_cec_read(sd, 0x25) & 0x1f; msg 978 drivers/media/i2c/adv7511-v4l2.c msg.len); msg 980 drivers/media/i2c/adv7511-v4l2.c if (msg.len > 16) msg 981 drivers/media/i2c/adv7511-v4l2.c msg.len = 16; msg 983 drivers/media/i2c/adv7511-v4l2.c if (msg.len) { msg 986 drivers/media/i2c/adv7511-v4l2.c for (i = 0; i < msg.len; i++) msg 987 drivers/media/i2c/adv7511-v4l2.c msg.msg[i] = adv7511_cec_read(sd, i + 0x15); msg 991 drivers/media/i2c/adv7511-v4l2.c cec_received_msg(state->cec_adap, &msg); msg 2023 drivers/media/i2c/adv7604.c struct cec_msg msg; msg 2025 drivers/media/i2c/adv7604.c msg.len = cec_read(sd, 0x25) & 0x1f; msg 2026 drivers/media/i2c/adv7604.c if (msg.len > 16) msg 2027 drivers/media/i2c/adv7604.c msg.len = 16; msg 2029 drivers/media/i2c/adv7604.c if (msg.len) { msg 2032 drivers/media/i2c/adv7604.c for (i = 0; i < msg.len; i++) msg 2033 drivers/media/i2c/adv7604.c msg.msg[i] = cec_read(sd, i + 0x15); msg 2036 drivers/media/i2c/adv7604.c cec_received_msg(state->cec_adap, &msg); msg 2140 drivers/media/i2c/adv7604.c u32 signal_free_time, struct cec_msg *msg) msg 2144 drivers/media/i2c/adv7604.c u8 len = msg->len; msg 2161 drivers/media/i2c/adv7604.c cec_write(sd, i, msg->msg[i]); msg 2227 drivers/media/i2c/adv7842.c struct cec_msg msg; msg 2229 drivers/media/i2c/adv7842.c msg.len = cec_read(sd, 0x25) & 0x1f; msg 2230 drivers/media/i2c/adv7842.c if (msg.len > 16) msg 2231 drivers/media/i2c/adv7842.c msg.len = 16; msg 2233 drivers/media/i2c/adv7842.c if (msg.len) { msg 2236 drivers/media/i2c/adv7842.c for (i = 0; i < msg.len; i++) msg 2237 drivers/media/i2c/adv7842.c msg.msg[i] = cec_read(sd, i + 0x15); msg 2239 drivers/media/i2c/adv7842.c cec_received_msg(state->cec_adap, &msg); msg 2333 drivers/media/i2c/adv7842.c u32 signal_free_time, struct cec_msg *msg) msg 2337 drivers/media/i2c/adv7842.c u8 len = msg->len; msg 2354 drivers/media/i2c/adv7842.c cec_write(sd, i, msg->msg[i]); msg 145 drivers/media/i2c/et8ek8/et8ek8_driver.c struct i2c_msg msg; msg 153 drivers/media/i2c/et8ek8/et8ek8_driver.c msg.addr = client->addr; msg 154 drivers/media/i2c/et8ek8/et8ek8_driver.c msg.flags = 0; msg 155 drivers/media/i2c/et8ek8/et8ek8_driver.c msg.len = 2; msg 156 drivers/media/i2c/et8ek8/et8ek8_driver.c msg.buf = data; msg 161 drivers/media/i2c/et8ek8/et8ek8_driver.c r = i2c_transfer(client->adapter, &msg, 1); msg 165 drivers/media/i2c/et8ek8/et8ek8_driver.c msg.len = data_length; msg 166 drivers/media/i2c/et8ek8/et8ek8_driver.c msg.flags = I2C_M_RD; msg 167 drivers/media/i2c/et8ek8/et8ek8_driver.c r = i2c_transfer(client->adapter, &msg, 1); msg 187 drivers/media/i2c/et8ek8/et8ek8_driver.c u32 val, struct i2c_msg *msg, msg 190 drivers/media/i2c/et8ek8/et8ek8_driver.c msg->addr = client->addr; msg 191 drivers/media/i2c/et8ek8/et8ek8_driver.c msg->flags = 0; /* Write */ msg 192 drivers/media/i2c/et8ek8/et8ek8_driver.c msg->len = 2 + len; msg 193 drivers/media/i2c/et8ek8/et8ek8_driver.c msg->buf = buf; msg 222 drivers/media/i2c/et8ek8/et8ek8_driver.c struct i2c_msg msg[ET8EK8_MAX_MSG]; msg 237 drivers/media/i2c/et8ek8/et8ek8_driver.c val, &msg[wcnt], &data[wcnt][0]); msg 245 drivers/media/i2c/et8ek8/et8ek8_driver.c rval = i2c_transfer(client->adapter, msg, wcnt); msg 253 drivers/media/i2c/et8ek8/et8ek8_driver.c rval = i2c_transfer(client->adapter, msg, wcnt); msg 339 drivers/media/i2c/et8ek8/et8ek8_driver.c struct i2c_msg msg; msg 347 drivers/media/i2c/et8ek8/et8ek8_driver.c et8ek8_i2c_create_msg(client, data_length, reg, val, &msg, data); msg 349 drivers/media/i2c/et8ek8/et8ek8_driver.c r = i2c_transfer(client->adapter, &msg, 1); msg 1091 drivers/media/i2c/et8ek8/et8ek8_driver.c struct i2c_msg msg; msg 1120 drivers/media/i2c/et8ek8/et8ek8_driver.c msg.addr = client->addr; msg 1121 drivers/media/i2c/et8ek8/et8ek8_driver.c msg.flags = 0; msg 1122 drivers/media/i2c/et8ek8/et8ek8_driver.c msg.len = 2; msg 1123 drivers/media/i2c/et8ek8/et8ek8_driver.c msg.buf = buffer; msg 1128 drivers/media/i2c/et8ek8/et8ek8_driver.c rval = i2c_transfer(client->adapter, &msg, 1); msg 1133 drivers/media/i2c/et8ek8/et8ek8_driver.c msg.addr = client->addr; msg 1134 drivers/media/i2c/et8ek8/et8ek8_driver.c msg.len = bytes; msg 1135 drivers/media/i2c/et8ek8/et8ek8_driver.c msg.flags = I2C_M_RD; msg 1136 drivers/media/i2c/et8ek8/et8ek8_driver.c msg.buf = buffer; msg 1139 drivers/media/i2c/et8ek8/et8ek8_driver.c rval = i2c_transfer(client->adapter, &msg, 1); msg 245 drivers/media/i2c/ir-kbd-i2c.c struct i2c_msg msg[] = { { .addr = ir->c->addr, .flags = 0, msg 250 drivers/media/i2c/ir-kbd-i2c.c if (2 != i2c_transfer(ir->c->adapter, msg, 2)) { msg 259 drivers/media/i2c/ir-kbd-i2c.c msg[1].buf = &keygroup; msg 260 drivers/media/i2c/ir-kbd-i2c.c if (2 != i2c_transfer(ir->c->adapter, msg, 2)) { msg 333 drivers/media/i2c/ks0127.c char msg[] = { reg, val }; msg 335 drivers/media/i2c/ks0127.c if (i2c_master_send(client, msg, sizeof(msg)) != sizeof(msg)) msg 146 drivers/media/i2c/m5mols/m5mols_core.c struct i2c_msg msg[2]; msg 153 drivers/media/i2c/m5mols/m5mols_core.c msg[0].addr = client->addr; msg 154 drivers/media/i2c/m5mols/m5mols_core.c msg[0].flags = 0; msg 155 drivers/media/i2c/m5mols/m5mols_core.c msg[0].len = 5; msg 156 drivers/media/i2c/m5mols/m5mols_core.c msg[0].buf = wbuf; msg 163 drivers/media/i2c/m5mols/m5mols_core.c msg[1].addr = client->addr; msg 164 drivers/media/i2c/m5mols/m5mols_core.c msg[1].flags = I2C_M_RD; msg 165 drivers/media/i2c/m5mols/m5mols_core.c msg[1].len = size + 1; msg 166 drivers/media/i2c/m5mols/m5mols_core.c msg[1].buf = rbuf; msg 171 drivers/media/i2c/m5mols/m5mols_core.c ret = i2c_transfer(client->adapter, msg, 2); msg 248 drivers/media/i2c/m5mols/m5mols_core.c struct i2c_msg msg[1]; msg 259 drivers/media/i2c/m5mols/m5mols_core.c msg->addr = client->addr; msg 260 drivers/media/i2c/m5mols/m5mols_core.c msg->flags = 0; msg 261 drivers/media/i2c/m5mols/m5mols_core.c msg->len = (u16)size + 4; msg 262 drivers/media/i2c/m5mols/m5mols_core.c msg->buf = wbuf; msg 273 drivers/media/i2c/m5mols/m5mols_core.c ret = i2c_transfer(client->adapter, msg, 1); msg 152 drivers/media/i2c/mt9t112.c struct i2c_msg msg[2]; msg 158 drivers/media/i2c/mt9t112.c msg[0].addr = client->addr; msg 159 drivers/media/i2c/mt9t112.c msg[0].flags = 0; msg 160 drivers/media/i2c/mt9t112.c msg[0].len = 2; msg 161 drivers/media/i2c/mt9t112.c msg[0].buf = (u8 *)&command; msg 163 drivers/media/i2c/mt9t112.c msg[1].addr = client->addr; msg 164 drivers/media/i2c/mt9t112.c msg[1].flags = I2C_M_RD; msg 165 drivers/media/i2c/mt9t112.c msg[1].len = 2; msg 166 drivers/media/i2c/mt9t112.c msg[1].buf = buf; msg 172 drivers/media/i2c/mt9t112.c ret = i2c_transfer(client->adapter, msg, 2); msg 184 drivers/media/i2c/mt9t112.c struct i2c_msg msg; msg 194 drivers/media/i2c/mt9t112.c msg.addr = client->addr; msg 195 drivers/media/i2c/mt9t112.c msg.flags = 0; msg 196 drivers/media/i2c/mt9t112.c msg.len = 4; msg 197 drivers/media/i2c/mt9t112.c msg.buf = buf; msg 203 drivers/media/i2c/mt9t112.c ret = i2c_transfer(client->adapter, &msg, 1); msg 222 drivers/media/i2c/mt9v111.c struct i2c_msg msg[2]; msg 226 drivers/media/i2c/mt9v111.c msg[0].addr = c->addr; msg 227 drivers/media/i2c/mt9v111.c msg[0].flags = 0; msg 228 drivers/media/i2c/mt9v111.c msg[0].len = 1; msg 229 drivers/media/i2c/mt9v111.c msg[0].buf = ® msg 231 drivers/media/i2c/mt9v111.c msg[1].addr = c->addr; msg 232 drivers/media/i2c/mt9v111.c msg[1].flags = I2C_M_RD; msg 233 drivers/media/i2c/mt9v111.c msg[1].len = 2; msg 234 drivers/media/i2c/mt9v111.c msg[1].buf = (char *)&buf; msg 236 drivers/media/i2c/mt9v111.c ret = i2c_transfer(c->adapter, msg, 2); msg 251 drivers/media/i2c/mt9v111.c struct i2c_msg msg; msg 259 drivers/media/i2c/mt9v111.c msg.addr = c->addr; msg 260 drivers/media/i2c/mt9v111.c msg.flags = 0; msg 261 drivers/media/i2c/mt9v111.c msg.len = 3; msg 262 drivers/media/i2c/mt9v111.c msg.buf = (char *)buf; msg 266 drivers/media/i2c/mt9v111.c ret = i2c_transfer(c->adapter, &msg, 1); msg 278 drivers/media/i2c/noon010pc30.c const struct i2c_regval *msg) msg 280 drivers/media/i2c/noon010pc30.c while (msg->addr != REG_TERM) { msg 281 drivers/media/i2c/noon010pc30.c int ret = cam_i2c_write(sd, msg->addr, msg->val); msg 285 drivers/media/i2c/noon010pc30.c msg++; msg 844 drivers/media/i2c/ov2659.c struct i2c_msg msg; msg 852 drivers/media/i2c/ov2659.c msg.addr = client->addr; msg 853 drivers/media/i2c/ov2659.c msg.flags = client->flags; msg 854 drivers/media/i2c/ov2659.c msg.buf = buf; msg 855 drivers/media/i2c/ov2659.c msg.len = sizeof(buf); msg 857 drivers/media/i2c/ov2659.c ret = i2c_transfer(client->adapter, &msg, 1); msg 870 drivers/media/i2c/ov2659.c struct i2c_msg msg[2]; msg 877 drivers/media/i2c/ov2659.c msg[0].addr = client->addr; msg 878 drivers/media/i2c/ov2659.c msg[0].flags = client->flags; msg 879 drivers/media/i2c/ov2659.c msg[0].buf = buf; msg 880 drivers/media/i2c/ov2659.c msg[0].len = sizeof(buf); msg 882 drivers/media/i2c/ov2659.c msg[1].addr = client->addr; msg 883 drivers/media/i2c/ov2659.c msg[1].flags = client->flags | I2C_M_RD; msg 884 drivers/media/i2c/ov2659.c msg[1].buf = buf; msg 885 drivers/media/i2c/ov2659.c msg[1].len = 1; msg 887 drivers/media/i2c/ov2659.c ret = i2c_transfer(client->adapter, msg, 2); msg 592 drivers/media/i2c/ov5640.c struct i2c_msg msg; msg 603 drivers/media/i2c/ov5640.c msg.addr = OV5640_DEFAULT_SLAVE_ID; msg 604 drivers/media/i2c/ov5640.c msg.flags = 0; msg 605 drivers/media/i2c/ov5640.c msg.buf = buf; msg 606 drivers/media/i2c/ov5640.c msg.len = sizeof(buf); msg 608 drivers/media/i2c/ov5640.c ret = i2c_transfer(client->adapter, &msg, 1); msg 620 drivers/media/i2c/ov5640.c struct i2c_msg msg; msg 628 drivers/media/i2c/ov5640.c msg.addr = client->addr; msg 629 drivers/media/i2c/ov5640.c msg.flags = client->flags; msg 630 drivers/media/i2c/ov5640.c msg.buf = buf; msg 631 drivers/media/i2c/ov5640.c msg.len = sizeof(buf); msg 633 drivers/media/i2c/ov5640.c ret = i2c_transfer(client->adapter, &msg, 1); msg 646 drivers/media/i2c/ov5640.c struct i2c_msg msg[2]; msg 653 drivers/media/i2c/ov5640.c msg[0].addr = client->addr; msg 654 drivers/media/i2c/ov5640.c msg[0].flags = client->flags; msg 655 drivers/media/i2c/ov5640.c msg[0].buf = buf; msg 656 drivers/media/i2c/ov5640.c msg[0].len = sizeof(buf); msg 658 drivers/media/i2c/ov5640.c msg[1].addr = client->addr; msg 659 drivers/media/i2c/ov5640.c msg[1].flags = client->flags | I2C_M_RD; msg 660 drivers/media/i2c/ov5640.c msg[1].buf = buf; msg 661 drivers/media/i2c/ov5640.c msg[1].len = 1; msg 663 drivers/media/i2c/ov5640.c ret = i2c_transfer(client->adapter, msg, 2); msg 232 drivers/media/i2c/ov6650.c struct i2c_msg msg = { msg 239 drivers/media/i2c/ov6650.c ret = i2c_transfer(client->adapter, &msg, 1); msg 243 drivers/media/i2c/ov6650.c msg.flags = I2C_M_RD; msg 244 drivers/media/i2c/ov6650.c ret = i2c_transfer(client->adapter, &msg, 1); msg 261 drivers/media/i2c/ov6650.c struct i2c_msg msg = { msg 268 drivers/media/i2c/ov6650.c ret = i2c_transfer(client->adapter, &msg, 1); msg 512 drivers/media/i2c/ov7670.c struct i2c_msg msg; msg 518 drivers/media/i2c/ov7670.c msg.addr = client->addr; msg 519 drivers/media/i2c/ov7670.c msg.flags = 0; msg 520 drivers/media/i2c/ov7670.c msg.len = 1; msg 521 drivers/media/i2c/ov7670.c msg.buf = &data; msg 522 drivers/media/i2c/ov7670.c ret = i2c_transfer(client->adapter, &msg, 1); msg 530 drivers/media/i2c/ov7670.c msg.flags = I2C_M_RD; msg 531 drivers/media/i2c/ov7670.c ret = i2c_transfer(client->adapter, &msg, 1); msg 544 drivers/media/i2c/ov7670.c struct i2c_msg msg; msg 548 drivers/media/i2c/ov7670.c msg.addr = client->addr; msg 549 drivers/media/i2c/ov7670.c msg.flags = 0; msg 550 drivers/media/i2c/ov7670.c msg.len = 2; msg 551 drivers/media/i2c/ov7670.c msg.buf = data; msg 552 drivers/media/i2c/ov7670.c ret = i2c_transfer(client->adapter, &msg, 1); msg 175 drivers/media/i2c/ov9640.c struct i2c_msg msg = { msg 182 drivers/media/i2c/ov9640.c ret = i2c_transfer(client->adapter, &msg, 1); msg 186 drivers/media/i2c/ov9640.c msg.flags = I2C_M_RD; msg 187 drivers/media/i2c/ov9640.c ret = i2c_transfer(client->adapter, &msg, 1); msg 205 drivers/media/i2c/ov9640.c struct i2c_msg msg = { msg 212 drivers/media/i2c/ov9640.c ret = i2c_transfer(client->adapter, &msg, 1); msg 144 drivers/media/i2c/s5c73m3/s5c73m3-core.c struct i2c_msg msg[2] = { msg 161 drivers/media/i2c/s5c73m3/s5c73m3-core.c ret = i2c_transfer(client->adapter, msg, 2); msg 308 drivers/media/i2c/s5c73m3/s5c73m3-core.c const char *msg; msg 321 drivers/media/i2c/s5c73m3/s5c73m3-core.c msg = "failed"; msg 325 drivers/media/i2c/s5c73m3/s5c73m3-core.c msg = "succeeded"; msg 330 drivers/media/i2c/s5c73m3/s5c73m3-core.c msg = "timed out"; msg 337 drivers/media/i2c/s5c73m3/s5c73m3-core.c msg, jiffies_to_msecs(jiffies - start)); msg 36 drivers/media/i2c/s5c73m3/s5c73m3-spi.c struct spi_message msg; msg 52 drivers/media/i2c/s5c73m3/s5c73m3-spi.c spi_message_init(&msg); msg 53 drivers/media/i2c/s5c73m3/s5c73m3-spi.c spi_message_add_tail(&xfer, &msg); msg 55 drivers/media/i2c/s5c73m3/s5c73m3-spi.c r = spi_sync(spi_dev, &msg); msg 204 drivers/media/i2c/s5k4ecgx.c struct i2c_msg msg[2]; msg 208 drivers/media/i2c/s5k4ecgx.c msg[0].addr = client->addr; msg 209 drivers/media/i2c/s5k4ecgx.c msg[0].flags = 0; msg 210 drivers/media/i2c/s5k4ecgx.c msg[0].len = 2; msg 211 drivers/media/i2c/s5k4ecgx.c msg[0].buf = wbuf; msg 213 drivers/media/i2c/s5k4ecgx.c msg[1].addr = client->addr; msg 214 drivers/media/i2c/s5k4ecgx.c msg[1].flags = I2C_M_RD; msg 215 drivers/media/i2c/s5k4ecgx.c msg[1].len = 2; msg 216 drivers/media/i2c/s5k4ecgx.c msg[1].buf = rbuf; msg 218 drivers/media/i2c/s5k4ecgx.c ret = i2c_transfer(client->adapter, msg, 2); msg 424 drivers/media/i2c/s5k5baf.c struct i2c_msg msg[] = { msg 436 drivers/media/i2c/s5k5baf.c ret = i2c_transfer(c->adapter, msg, 2); msg 332 drivers/media/i2c/s5k6aa.c struct i2c_msg msg[2]; msg 336 drivers/media/i2c/s5k6aa.c msg[0].addr = client->addr; msg 337 drivers/media/i2c/s5k6aa.c msg[0].flags = 0; msg 338 drivers/media/i2c/s5k6aa.c msg[0].len = 2; msg 339 drivers/media/i2c/s5k6aa.c msg[0].buf = wbuf; msg 341 drivers/media/i2c/s5k6aa.c msg[1].addr = client->addr; msg 342 drivers/media/i2c/s5k6aa.c msg[1].flags = I2C_M_RD; msg 343 drivers/media/i2c/s5k6aa.c msg[1].len = 2; msg 344 drivers/media/i2c/s5k6aa.c msg[1].buf = rbuf; msg 346 drivers/media/i2c/s5k6aa.c ret = i2c_transfer(client->adapter, msg, 2); msg 383 drivers/media/i2c/s5k6aa.c const struct s5k6aa_regval *msg) msg 389 drivers/media/i2c/s5k6aa.c while (msg->addr != S5K6AA_TERM) { msg 392 drivers/media/i2c/s5k6aa.c msg->addr); msg 395 drivers/media/i2c/s5k6aa.c ret = s5k6aa_i2c_write(client, REG_CMDBUF0_ADDR, msg->val); msg 399 drivers/media/i2c/s5k6aa.c addr_incr = (msg + 1)->addr - msg->addr; msg 400 drivers/media/i2c/s5k6aa.c msg++; msg 92 drivers/media/i2c/saa717x.c struct i2c_msg msg; msg 94 drivers/media/i2c/saa717x.c msg.flags = 0; msg 95 drivers/media/i2c/saa717x.c msg.addr = client->addr; msg 106 drivers/media/i2c/saa717x.c msg.len = fw_addr ? 5 : 3; /* Long Registers have *only* three bytes! */ msg 107 drivers/media/i2c/saa717x.c msg.buf = mm1; msg 109 drivers/media/i2c/saa717x.c return i2c_transfer(adap, &msg, 1) == 1; msg 71 drivers/media/i2c/smiapp/smiapp-regs.c struct i2c_msg msg; msg 76 drivers/media/i2c/smiapp/smiapp-regs.c msg.addr = client->addr; msg 77 drivers/media/i2c/smiapp/smiapp-regs.c msg.flags = 0; msg 78 drivers/media/i2c/smiapp/smiapp-regs.c msg.len = 2; msg 79 drivers/media/i2c/smiapp/smiapp-regs.c msg.buf = data; msg 84 drivers/media/i2c/smiapp/smiapp-regs.c r = i2c_transfer(client->adapter, &msg, 1); msg 91 drivers/media/i2c/smiapp/smiapp-regs.c msg.len = len; msg 92 drivers/media/i2c/smiapp/smiapp-regs.c msg.flags = I2C_M_RD; msg 93 drivers/media/i2c/smiapp/smiapp-regs.c r = i2c_transfer(client->adapter, &msg, 1); msg 214 drivers/media/i2c/smiapp/smiapp-regs.c struct i2c_msg msg; msg 229 drivers/media/i2c/smiapp/smiapp-regs.c msg.addr = client->addr; msg 230 drivers/media/i2c/smiapp/smiapp-regs.c msg.flags = 0; /* Write */ msg 231 drivers/media/i2c/smiapp/smiapp-regs.c msg.len = 2 + len; msg 232 drivers/media/i2c/smiapp/smiapp-regs.c msg.buf = data; msg 262 drivers/media/i2c/smiapp/smiapp-regs.c r = i2c_transfer(client->adapter, &msg, 1); msg 50 drivers/media/i2c/sony-btf-mpx.c struct i2c_msg msg; msg 57 drivers/media/i2c/sony-btf-mpx.c msg.addr = client->addr; msg 58 drivers/media/i2c/sony-btf-mpx.c msg.flags = 0; msg 59 drivers/media/i2c/sony-btf-mpx.c msg.len = 5; msg 60 drivers/media/i2c/sony-btf-mpx.c msg.buf = buffer; msg 61 drivers/media/i2c/sony-btf-mpx.c i2c_transfer(client->adapter, &msg, 1); msg 162 drivers/media/i2c/sony-btf-mpx.c struct i2c_msg msg; msg 169 drivers/media/i2c/sony-btf-mpx.c msg.addr = client->addr; msg 170 drivers/media/i2c/sony-btf-mpx.c msg.flags = 0; msg 171 drivers/media/i2c/sony-btf-mpx.c msg.len = 3; msg 172 drivers/media/i2c/sony-btf-mpx.c msg.buf = buffer; msg 173 drivers/media/i2c/sony-btf-mpx.c i2c_transfer(client->adapter, &msg, 1); msg 175 drivers/media/i2c/sony-btf-mpx.c i2c_transfer(client->adapter, &msg, 1); msg 323 drivers/media/i2c/sr030pc30.c const struct i2c_regval *msg) msg 325 drivers/media/i2c/sr030pc30.c while (msg->addr != REG_TERM) { msg 326 drivers/media/i2c/sr030pc30.c int ret = cam_i2c_write(sd, msg->addr, msg->val); msg 329 drivers/media/i2c/sr030pc30.c msg++; msg 221 drivers/media/i2c/st-mipid02.c struct i2c_msg msg[2]; msg 228 drivers/media/i2c/st-mipid02.c msg[0].addr = client->addr; msg 229 drivers/media/i2c/st-mipid02.c msg[0].flags = client->flags; msg 230 drivers/media/i2c/st-mipid02.c msg[0].buf = buf; msg 231 drivers/media/i2c/st-mipid02.c msg[0].len = sizeof(buf); msg 233 drivers/media/i2c/st-mipid02.c msg[1].addr = client->addr; msg 234 drivers/media/i2c/st-mipid02.c msg[1].flags = client->flags | I2C_M_RD; msg 235 drivers/media/i2c/st-mipid02.c msg[1].buf = val; msg 236 drivers/media/i2c/st-mipid02.c msg[1].len = 1; msg 238 drivers/media/i2c/st-mipid02.c ret = i2c_transfer(client->adapter, msg, 2); msg 251 drivers/media/i2c/st-mipid02.c struct i2c_msg msg; msg 259 drivers/media/i2c/st-mipid02.c msg.addr = client->addr; msg 260 drivers/media/i2c/st-mipid02.c msg.flags = client->flags; msg 261 drivers/media/i2c/st-mipid02.c msg.buf = buf; msg 262 drivers/media/i2c/st-mipid02.c msg.len = sizeof(buf); msg 264 drivers/media/i2c/st-mipid02.c ret = i2c_transfer(client->adapter, &msg, 1); msg 146 drivers/media/i2c/tc358743.c struct i2c_msg msg; msg 155 drivers/media/i2c/tc358743.c msg.addr = client->addr; msg 156 drivers/media/i2c/tc358743.c msg.buf = data; msg 157 drivers/media/i2c/tc358743.c msg.len = 2 + n; msg 158 drivers/media/i2c/tc358743.c msg.flags = 0; msg 166 drivers/media/i2c/tc358743.c err = i2c_transfer(client->adapter, &msg, 1); msg 899 drivers/media/i2c/tc358743.c u32 signal_free_time, struct cec_msg *msg) msg 906 drivers/media/i2c/tc358743.c (cec_msg_is_broadcast(msg) ? MASK_CECBRD : 0) | msg 908 drivers/media/i2c/tc358743.c for (i = 0; i < msg->len; i++) msg 910 drivers/media/i2c/tc358743.c msg->msg[i] | ((i == msg->len - 1) ? MASK_CECTEOM : 0)); msg 960 drivers/media/i2c/tc358743.c struct cec_msg msg = {}; msg 965 drivers/media/i2c/tc358743.c msg.len = v & 0x1f; msg 966 drivers/media/i2c/tc358743.c for (i = 0; i < msg.len; i++) { msg 968 drivers/media/i2c/tc358743.c msg.msg[i] = v & 0xff; msg 970 drivers/media/i2c/tc358743.c cec_received_msg(state->cec_adap, &msg); msg 125 drivers/media/pci/bt8xx/bttv-i2c.c bttv_i2c_sendbytes(struct bttv *btv, const struct i2c_msg *msg, int last) msg 131 drivers/media/pci/bt8xx/bttv-i2c.c if (0 == msg->len) msg 135 drivers/media/pci/bt8xx/bttv-i2c.c xmit = (msg->addr << 25) | (msg->buf[0] << 16) | I2C_HW; msg 136 drivers/media/pci/bt8xx/bttv-i2c.c if (msg->len > 1 || !last) msg 145 drivers/media/pci/bt8xx/bttv-i2c.c pr_cont(" <W %02x %02x", msg->addr << 1, msg->buf[0]); msg 148 drivers/media/pci/bt8xx/bttv-i2c.c for (cnt = 1; cnt < msg->len; cnt++ ) { msg 150 drivers/media/pci/bt8xx/bttv-i2c.c xmit = (msg->buf[cnt] << 24) | I2C_HW | BT878_I2C_NOSTART; msg 151 drivers/media/pci/bt8xx/bttv-i2c.c if (cnt < msg->len-1 || !last) msg 160 drivers/media/pci/bt8xx/bttv-i2c.c pr_cont(" %02x", msg->buf[cnt]); msg 164 drivers/media/pci/bt8xx/bttv-i2c.c return msg->len; msg 175 drivers/media/pci/bt8xx/bttv-i2c.c bttv_i2c_readbytes(struct bttv *btv, const struct i2c_msg *msg, int last) msg 181 drivers/media/pci/bt8xx/bttv-i2c.c for (cnt = 0; cnt < msg->len; cnt++) { msg 182 drivers/media/pci/bt8xx/bttv-i2c.c xmit = (msg->addr << 25) | (1 << 24) | I2C_HW; msg 183 drivers/media/pci/bt8xx/bttv-i2c.c if (cnt < msg->len-1) msg 185 drivers/media/pci/bt8xx/bttv-i2c.c if (cnt < msg->len-1 || !last) msg 192 drivers/media/pci/bt8xx/bttv-i2c.c pr_cont(" <R %02x", (msg->addr << 1) +1); msg 201 drivers/media/pci/bt8xx/bttv-i2c.c msg->buf[cnt] = ((u32)btread(BT848_I2C) >> 8) & 0xff; msg 203 drivers/media/pci/bt8xx/bttv-i2c.c pr_cont(" =%02x", msg->buf[cnt]); msg 210 drivers/media/pci/bt8xx/bttv-i2c.c return msg->len; msg 229 drivers/media/pci/bt8xx/dst.c struct i2c_msg msg = { msg 242 drivers/media/pci/bt8xx/dst.c if ((err = i2c_transfer(state->i2c, &msg, 1)) < 0) { msg 263 drivers/media/pci/bt8xx/dst.c struct i2c_msg msg = { msg 274 drivers/media/pci/bt8xx/dst.c if ((err = i2c_transfer(state->i2c, &msg, 1)) < 0) { msg 1426 drivers/media/pci/bt8xx/dst.c memcpy(&packet[3], cmd->msg, cmd->msg_len); msg 1428 drivers/media/pci/bt8xx/dst.c memcpy(&packet[2], cmd->msg, cmd->msg_len); msg 298 drivers/media/pci/bt8xx/dst_ca.c 3, p_ca_message->msg); msg 301 drivers/media/pci/bt8xx/dst_ca.c command = command | p_ca_message->msg[i]; msg 309 drivers/media/pci/bt8xx/dst_ca.c memcpy(p_ca_message->msg, state->messages, 128); msg 314 drivers/media/pci/bt8xx/dst_ca.c memcpy(p_ca_message->msg, state->messages, 128); msg 326 drivers/media/pci/bt8xx/dst_ca.c hw_buffer->msg[2] = p_ca_message->msg[1]; /* MSB */ msg 327 drivers/media/pci/bt8xx/dst_ca.c hw_buffer->msg[3] = p_ca_message->msg[2]; /* LSB */ msg 333 drivers/media/pci/bt8xx/dst_ca.c hw_buffer->msg[0] = (length & 0xff) + 7; msg 334 drivers/media/pci/bt8xx/dst_ca.c hw_buffer->msg[1] = 0x40; msg 335 drivers/media/pci/bt8xx/dst_ca.c hw_buffer->msg[2] = 0x03; msg 336 drivers/media/pci/bt8xx/dst_ca.c hw_buffer->msg[3] = 0x00; msg 337 drivers/media/pci/bt8xx/dst_ca.c hw_buffer->msg[4] = 0x03; msg 338 drivers/media/pci/bt8xx/dst_ca.c hw_buffer->msg[5] = length & 0xff; msg 339 drivers/media/pci/bt8xx/dst_ca.c hw_buffer->msg[6] = 0x00; msg 345 drivers/media/pci/bt8xx/dst_ca.c memcpy(&hw_buffer->msg[7], &p_ca_message->msg[4], length); msg 353 drivers/media/pci/bt8xx/dst_ca.c if ((dst_put_ci(state, hw_buffer->msg, length, hw_buffer->msg, reply)) < 0) { msg 385 drivers/media/pci/bt8xx/dst_ca.c static int debug_string(u8 *msg, u32 length, u32 offset) msg 391 drivers/media/pci/bt8xx/dst_ca.c dprintk(verbose, DST_CA_DEBUG, 0, "%02x ", msg[i]); msg 403 drivers/media/pci/bt8xx/dst_ca.c length = asn_1_decode(&p_ca_message->msg[3]); msg 405 drivers/media/pci/bt8xx/dst_ca.c debug_string(&p_ca_message->msg[4], length, 0); /* length is excluding tag & length */ msg 407 drivers/media/pci/bt8xx/dst_ca.c memset(hw_buffer->msg, '\0', length); msg 409 drivers/media/pci/bt8xx/dst_ca.c put_checksum(hw_buffer->msg, hw_buffer->msg[0]); msg 411 drivers/media/pci/bt8xx/dst_ca.c debug_string(hw_buffer->msg, (length + tag_length), 0); /* tags too */ msg 471 drivers/media/pci/bt8xx/dst_ca.c command = command | p_ca_message->msg[i]; msg 268 drivers/media/pci/bt8xx/dvb-bt8xx.c struct i2c_msg msg = { .addr = 0x60, .flags = 0, .buf = data, .len = sizeof(data) }; msg 298 drivers/media/pci/bt8xx/dvb-bt8xx.c i2c_transfer(card->i2c_adapter, &msg, 1); msg 459 drivers/media/pci/bt8xx/dvb-bt8xx.c struct i2c_msg msg = { .addr = 0x60, .flags = 0, .buf = buf, .len = sizeof(buf) }; msg 479 drivers/media/pci/bt8xx/dvb-bt8xx.c i2c_transfer(card->i2c_adapter, &msg, 1); msg 86 drivers/media/pci/cx23885/cimax2.c struct i2c_msg msg[] = { msg 100 drivers/media/pci/cx23885/cimax2.c ret = i2c_transfer(i2c_adap, msg, 2); msg 121 drivers/media/pci/cx23885/cimax2.c struct i2c_msg msg = { msg 137 drivers/media/pci/cx23885/cimax2.c ret = i2c_transfer(i2c_adap, &msg, 1); msg 68 drivers/media/pci/cx23885/cx23885-i2c.c const struct i2c_msg *msg, int joined_rlen) msg 77 drivers/media/pci/cx23885/cx23885-i2c.c msg->len, joined_rlen); msg 79 drivers/media/pci/cx23885/cx23885-i2c.c dprintk(1, "%s(msg->len=%d)\n", __func__, msg->len); msg 82 drivers/media/pci/cx23885/cx23885-i2c.c if (msg->len == 0) { msg 83 drivers/media/pci/cx23885/cx23885-i2c.c cx_write(bus->reg_addr, msg->addr << 25); msg 96 drivers/media/pci/cx23885/cx23885-i2c.c addr = (msg->addr << 25) | msg->buf[0]; msg 97 drivers/media/pci/cx23885/cx23885-i2c.c wdata = msg->buf[0]; msg 100 drivers/media/pci/cx23885/cx23885-i2c.c if (msg->len > 1) msg 112 drivers/media/pci/cx23885/cx23885-i2c.c printk(KERN_DEBUG " <W %02x %02x", msg->addr << 1, msg->buf[0]); msg 117 drivers/media/pci/cx23885/cx23885-i2c.c for (cnt = 1; cnt < msg->len; cnt++) { msg 119 drivers/media/pci/cx23885/cx23885-i2c.c wdata = msg->buf[cnt]; msg 122 drivers/media/pci/cx23885/cx23885-i2c.c if (cnt < msg->len - 1) msg 134 drivers/media/pci/cx23885/cx23885-i2c.c pr_cont(" %02x", msg->buf[cnt]); msg 139 drivers/media/pci/cx23885/cx23885-i2c.c return msg->len; msg 149 drivers/media/pci/cx23885/cx23885-i2c.c const struct i2c_msg *msg, int joined) msg 158 drivers/media/pci/cx23885/cx23885-i2c.c dprintk(1, "%s(msg->len=%d)\n", __func__, msg->len); msg 161 drivers/media/pci/cx23885/cx23885-i2c.c if (msg->len == 0) { msg 162 drivers/media/pci/cx23885/cx23885-i2c.c cx_write(bus->reg_addr, msg->addr << 25); msg 178 drivers/media/pci/cx23885/cx23885-i2c.c dprintk(1, " <R %02x", (msg->addr << 1) + 1); msg 181 drivers/media/pci/cx23885/cx23885-i2c.c for (cnt = 0; cnt < msg->len; cnt++) { msg 185 drivers/media/pci/cx23885/cx23885-i2c.c if (cnt < msg->len - 1) msg 188 drivers/media/pci/cx23885/cx23885-i2c.c cx_write(bus->reg_addr, msg->addr << 25); msg 193 drivers/media/pci/cx23885/cx23885-i2c.c msg->buf[cnt] = cx_read(bus->reg_rdata) & 0xff; msg 195 drivers/media/pci/cx23885/cx23885-i2c.c dprintk(1, " %02x", msg->buf[cnt]); msg 200 drivers/media/pci/cx23885/cx23885-i2c.c return msg->len; msg 357 drivers/media/pci/cx23885/cx23885-i2c.c struct i2c_msg msg; msg 368 drivers/media/pci/cx23885/cx23885-i2c.c msg.addr = 0x44; msg 369 drivers/media/pci/cx23885/cx23885-i2c.c msg.flags = I2C_M_TEN; msg 370 drivers/media/pci/cx23885/cx23885-i2c.c msg.len = 3; msg 371 drivers/media/pci/cx23885/cx23885-i2c.c msg.buf = buffer; msg 373 drivers/media/pci/cx23885/cx23885-i2c.c i2c_xfer(&dev->i2c_bus[2].i2c_adap, &msg, 1); msg 168 drivers/media/pci/cx23885/cx23885-video.c struct i2c_msg msg = { .addr = 0x98 >> 1, msg 171 drivers/media/pci/cx23885/cx23885-video.c return i2c_transfer(&dev->i2c_bus[2].i2c_adap, &msg, 1); msg 181 drivers/media/pci/cx23885/cx23885-video.c struct i2c_msg msg[] = { msg 186 drivers/media/pci/cx23885/cx23885-video.c ret = i2c_transfer(&dev->i2c_bus[2].i2c_adap, &msg[0], 2); msg 24 drivers/media/pci/cx23885/netup-eeprom.c struct i2c_msg msg[] = { msg 42 drivers/media/pci/cx23885/netup-eeprom.c ret = i2c_transfer(i2c_adap, msg, 2); msg 58 drivers/media/pci/cx23885/netup-eeprom.c struct i2c_msg msg[] = { msg 70 drivers/media/pci/cx23885/netup-eeprom.c ret = i2c_transfer(i2c_adap, msg, 1); msg 19 drivers/media/pci/cx23885/netup-init.c struct i2c_msg msg = { msg 30 drivers/media/pci/cx23885/netup-init.c ret = i2c_transfer(i2c, &msg, 1); msg 40 drivers/media/pci/cx23885/netup-init.c struct i2c_msg msg = { msg 54 drivers/media/pci/cx23885/netup-init.c ret = i2c_transfer(i2c, &msg, 1); msg 64 drivers/media/pci/cx23885/netup-init.c struct i2c_msg msg = { msg 74 drivers/media/pci/cx23885/netup-init.c ret = i2c_transfer(i2c, &msg, 1); msg 79 drivers/media/pci/cx23885/netup-init.c msg.flags = I2C_M_RD; msg 80 drivers/media/pci/cx23885/netup-init.c msg.len = 1; msg 82 drivers/media/pci/cx23885/netup-init.c ret = i2c_transfer(i2c, &msg, 1); msg 67 drivers/media/pci/cx25821/cx25821-i2c.c const struct i2c_msg *msg, int joined_rlen) msg 76 drivers/media/pci/cx25821/cx25821-i2c.c msg->len, joined_rlen); msg 78 drivers/media/pci/cx25821/cx25821-i2c.c dprintk(1, "%s(msg->len=%d)\n", __func__, msg->len); msg 81 drivers/media/pci/cx25821/cx25821-i2c.c if (msg->len == 0) { msg 82 drivers/media/pci/cx25821/cx25821-i2c.c cx_write(bus->reg_addr, msg->addr << 25); msg 96 drivers/media/pci/cx25821/cx25821-i2c.c addr = (msg->addr << 25) | msg->buf[0]; msg 97 drivers/media/pci/cx25821/cx25821-i2c.c wdata = msg->buf[0]; msg 101 drivers/media/pci/cx25821/cx25821-i2c.c if (msg->len > 1) msg 122 drivers/media/pci/cx25821/cx25821-i2c.c for (cnt = 1; cnt < msg->len; cnt++) { msg 124 drivers/media/pci/cx25821/cx25821-i2c.c wdata = msg->buf[cnt]; msg 127 drivers/media/pci/cx25821/cx25821-i2c.c if (cnt < msg->len - 1) msg 144 drivers/media/pci/cx25821/cx25821-i2c.c dprintk(1, " %02x", msg->buf[cnt]); msg 150 drivers/media/pci/cx25821/cx25821-i2c.c return msg->len; msg 161 drivers/media/pci/cx25821/cx25821-i2c.c const struct i2c_msg *msg, int joined) msg 169 drivers/media/pci/cx25821/cx25821-i2c.c dprintk(1, "6-%s(msg->len=%d)\n", __func__, msg->len); msg 172 drivers/media/pci/cx25821/cx25821-i2c.c if (msg->len == 0) { msg 173 drivers/media/pci/cx25821/cx25821-i2c.c cx_write(bus->reg_addr, msg->addr << 25); msg 188 drivers/media/pci/cx25821/cx25821-i2c.c dprintk(1, " <R %02x", (msg->addr << 1) + 1); msg 191 drivers/media/pci/cx25821/cx25821-i2c.c for (cnt = 0; cnt < msg->len; cnt++) { msg 195 drivers/media/pci/cx25821/cx25821-i2c.c if (cnt < msg->len - 1) msg 198 drivers/media/pci/cx25821/cx25821-i2c.c cx_write(bus->reg_addr, msg->addr << 25); msg 206 drivers/media/pci/cx25821/cx25821-i2c.c msg->buf[cnt] = cx_read(bus->reg_rdata) & 0xff; msg 209 drivers/media/pci/cx25821/cx25821-i2c.c dprintk(1, " %02x", msg->buf[cnt]); msg 215 drivers/media/pci/cx25821/cx25821-i2c.c return msg->len; msg 324 drivers/media/pci/cx25821/cx25821-i2c.c struct i2c_msg msg; msg 335 drivers/media/pci/cx25821/cx25821-i2c.c msg.addr = 0x44; msg 336 drivers/media/pci/cx25821/cx25821-i2c.c msg.flags = I2C_M_TEN; msg 337 drivers/media/pci/cx25821/cx25821-i2c.c msg.len = 3; msg 338 drivers/media/pci/cx25821/cx25821-i2c.c msg.buf = buffer; msg 340 drivers/media/pci/cx25821/cx25821-i2c.c i2c_xfer(&dev->i2c_bus[0].i2c_adap, &msg, 1); msg 3078 drivers/media/pci/cx88/cx88-cards.c struct i2c_msg msg = { .addr = 0x45, .flags = 0 }; msg 3097 drivers/media/pci/cx88/cx88-cards.c msg.buf = init_bufs[i]; msg 3098 drivers/media/pci/cx88/cx88-cards.c msg.len = (i != 12 ? 5 : 2); msg 3099 drivers/media/pci/cx88/cx88-cards.c err = i2c_transfer(&core->i2c_adap, &msg, 1); msg 860 drivers/media/pci/cx88/cx88-dvb.c struct i2c_msg msg = { msg 879 drivers/media/pci/cx88/cx88-dvb.c if (i2c_transfer(&dev->core->i2c_adap, &msg, 1) != 1) msg 914 drivers/media/pci/cx88/cx88-dvb.c struct i2c_msg msg = { msg 937 drivers/media/pci/cx88/cx88-dvb.c return (i2c_transfer(&dev->core->i2c_adap, &msg, 1) == 1) ? 0 : -EIO; msg 85 drivers/media/pci/ddbridge/ddbridge-i2c.c struct i2c_msg msg[], int num) msg 91 drivers/media/pci/ddbridge/ddbridge-i2c.c addr = msg[0].addr; msg 92 drivers/media/pci/ddbridge/ddbridge-i2c.c if (msg[0].len > i2c->bsize) msg 96 drivers/media/pci/ddbridge/ddbridge-i2c.c if (msg[0].flags & I2C_M_RD) { msg 97 drivers/media/pci/ddbridge/ddbridge-i2c.c ddbwritel(dev, msg[0].len << 16, msg 101 drivers/media/pci/ddbridge/ddbridge-i2c.c ddbcpyfrom(dev, msg[0].buf, msg 102 drivers/media/pci/ddbridge/ddbridge-i2c.c i2c->rbuf, msg[0].len); msg 105 drivers/media/pci/ddbridge/ddbridge-i2c.c ddbcpyto(dev, i2c->wbuf, msg[0].buf, msg[0].len); msg 106 drivers/media/pci/ddbridge/ddbridge-i2c.c ddbwritel(dev, msg[0].len, i2c->regs + I2C_TASKLENGTH); msg 111 drivers/media/pci/ddbridge/ddbridge-i2c.c if ((msg[0].flags & I2C_M_RD) == I2C_M_RD) msg 113 drivers/media/pci/ddbridge/ddbridge-i2c.c if ((msg[1].flags & I2C_M_RD) != I2C_M_RD) msg 115 drivers/media/pci/ddbridge/ddbridge-i2c.c if (msg[1].len > i2c->bsize) msg 117 drivers/media/pci/ddbridge/ddbridge-i2c.c ddbcpyto(dev, i2c->wbuf, msg[0].buf, msg[0].len); msg 118 drivers/media/pci/ddbridge/ddbridge-i2c.c ddbwritel(dev, msg[0].len | (msg[1].len << 16), msg 122 drivers/media/pci/ddbridge/ddbridge-i2c.c ddbcpyfrom(dev, msg[1].buf, msg 124 drivers/media/pci/ddbridge/ddbridge-i2c.c msg[1].len); msg 47 drivers/media/pci/ddbridge/ddbridge-i2c.h struct i2c_msg msg = { .addr = adr, .flags = 0, msg 50 drivers/media/pci/ddbridge/ddbridge-i2c.h return (i2c_transfer(adap, &msg, 1) == 1) ? 0 : -1; msg 75 drivers/media/pci/ddbridge/ddbridge-i2c.h u8 msg[2] = { reg >> 8, reg & 0xff }; msg 77 drivers/media/pci/ddbridge/ddbridge-i2c.h .buf = msg, .len = 2 }, msg 87 drivers/media/pci/ddbridge/ddbridge-i2c.h u8 msg[3] = { reg >> 8, reg & 0xff, val }; msg 89 drivers/media/pci/ddbridge/ddbridge-i2c.h return i2c_write(adap, adr, msg, 3); msg 95 drivers/media/pci/ddbridge/ddbridge-i2c.h u8 msg[2] = { reg, val }; msg 97 drivers/media/pci/ddbridge/ddbridge-i2c.h return i2c_write(adap, adr, msg, 2); msg 95 drivers/media/pci/ddbridge/ddbridge-max.c ddbwritel(dev, cmd->msg[i], tag | LNB_BUF_WRITE(dvb->input)); msg 109 drivers/media/pci/ddbridge/ddbridge-max.c ddbwritel(dev, cmd->msg[i], tag | LNB_BUF_WRITE(input)); msg 118 drivers/media/pci/ddbridge/ddbridge-max.c .msg = {0xe0, 0x10, 0x38, 0xf0, 0x00, 0x00}, msg 121 drivers/media/pci/ddbridge/ddbridge-max.c cmd.msg[3] = 0xf0 | (((sat << 2) & 0x0c) | (band ? 1 : 0) | msg 951 drivers/media/pci/dm1105/dm1105.c struct i2c_msg msg[] = { msg 965 drivers/media/pci/dm1105/dm1105.c dm1105_i2c_xfer(&dev->i2c_adap, msg , 2); msg 21 drivers/media/pci/mantis/mantis_core.c struct i2c_msg msg[] = { msg 35 drivers/media/pci/mantis/mantis_core.c err = i2c_transfer(&mantis->adapter, msg, 2); msg 26 drivers/media/pci/mantis/mantis_i2c.c static int mantis_i2c_read(struct mantis_pci *mantis, const struct i2c_msg *msg) msg 31 drivers/media/pci/mantis/mantis_i2c.c __func__, msg->addr); msg 33 drivers/media/pci/mantis/mantis_i2c.c for (i = 0; i < msg->len; i++) { msg 34 drivers/media/pci/mantis/mantis_i2c.c rxd = (msg->addr << 25) | (1 << 24) msg 39 drivers/media/pci/mantis/mantis_i2c.c if (i == (msg->len - 1)) msg 64 drivers/media/pci/mantis/mantis_i2c.c msg->buf[i] = (u8)((rxd >> 8) & 0xFF); msg 65 drivers/media/pci/mantis/mantis_i2c.c dprintk(MANTIS_INFO, 0, "%02x ", msg->buf[i]); msg 72 drivers/media/pci/mantis/mantis_i2c.c static int mantis_i2c_write(struct mantis_pci *mantis, const struct i2c_msg *msg) msg 78 drivers/media/pci/mantis/mantis_i2c.c __func__, msg->addr); msg 80 drivers/media/pci/mantis/mantis_i2c.c for (i = 0; i < msg->len; i++) { msg 81 drivers/media/pci/mantis/mantis_i2c.c dprintk(MANTIS_INFO, 0, "%02x ", msg->buf[i]); msg 82 drivers/media/pci/mantis/mantis_i2c.c txd = (msg->addr << 25) | (msg->buf[i] << 8) msg 87 drivers/media/pci/mantis/mantis_i2c.c if (i == (msg->len - 1)) msg 33 drivers/media/pci/mantis/mantis_ioc.c struct i2c_msg msg[] = { msg 38 drivers/media/pci/mantis/mantis_ioc.c err = i2c_transfer(adapter, msg, 2); msg 84 drivers/media/pci/mantis/mantis_vp1033.c struct i2c_msg msg = {.addr = 0x61, .flags = 0, .buf = buf, .len = sizeof(buf)}; msg 97 drivers/media/pci/mantis/mantis_vp1033.c if (i2c_transfer(adapter, &msg, 1) < 0) { msg 44 drivers/media/pci/mantis/mantis_vp2033.c struct i2c_msg msg[] = { msg 49 drivers/media/pci/mantis/mantis_vp2033.c if ((i2c_transfer(adapter, msg, 2) != 2) msg 63 drivers/media/pci/mantis/mantis_vp2033.c struct i2c_msg msg = {.addr = 0x60, .flags = 0, .buf = buf, .len = sizeof(buf)}; msg 82 drivers/media/pci/mantis/mantis_vp2033.c if (i2c_transfer(adapter, &msg, 1) != 1) msg 86 drivers/media/pci/mantis/mantis_vp2033.c msg.flags = I2C_M_RD; msg 87 drivers/media/pci/mantis/mantis_vp2033.c msg.len = 1; msg 92 drivers/media/pci/mantis/mantis_vp2033.c if (i2c_transfer(adapter, &msg, 1) == 1 && (buf[0] & 0x40)) msg 99 drivers/media/pci/mantis/mantis_vp2033.c msg.flags = 0; msg 100 drivers/media/pci/mantis/mantis_vp2033.c msg.len = 2; msg 101 drivers/media/pci/mantis/mantis_vp2033.c msg.buf = &buf[2]; msg 106 drivers/media/pci/mantis/mantis_vp2033.c if (i2c_transfer(adapter, &msg, 1) != 1) msg 45 drivers/media/pci/mantis/mantis_vp2040.c struct i2c_msg msg = {.addr = 0x60, .flags = 0, .buf = buf, .len = sizeof(buf)}; msg 64 drivers/media/pci/mantis/mantis_vp2040.c if (i2c_transfer(adapter, &msg, 1) != 1) msg 68 drivers/media/pci/mantis/mantis_vp2040.c msg.flags = I2C_M_RD; msg 69 drivers/media/pci/mantis/mantis_vp2040.c msg.len = 1; msg 74 drivers/media/pci/mantis/mantis_vp2040.c if (i2c_transfer(adapter, &msg, 1) == 1 && (buf[0] & 0x40)) msg 81 drivers/media/pci/mantis/mantis_vp2040.c msg.flags = 0; msg 82 drivers/media/pci/mantis/mantis_vp2040.c msg.len = 2; msg 83 drivers/media/pci/mantis/mantis_vp2040.c msg.buf = &buf[2]; msg 88 drivers/media/pci/mantis/mantis_vp2040.c if (i2c_transfer(adapter, &msg, 1) != 1) msg 100 drivers/media/pci/mantis/mantis_vp2040.c struct i2c_msg msg[] = { msg 105 drivers/media/pci/mantis/mantis_vp2040.c if ((i2c_transfer(adapter, msg, 2) != 2) msg 86 drivers/media/pci/netup_unidvb/netup_unidvb.h struct i2c_msg *msg; msg 136 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c u32 msg_length = i2c->msg->len - i2c->xmit_size; msg 140 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c data = i2c->msg->buf[i2c->xmit_size++]; msg 145 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c if (i2c->xmit_size < i2c->msg->len) { msg 162 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c if ((i2c->msg->flags & I2C_M_RD) != 0 && msg 163 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c i2c->xmit_size < i2c->msg->len) { msg 164 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c i2c->msg->buf[i2c->xmit_size++] = data; msg 169 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c if (i2c->xmit_size < i2c->msg->len) { msg 179 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c u16 rdflag = ((i2c->msg->flags & I2C_M_RD) ? 1 : 0); msg 183 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c writew(i2c->msg->len, &i2c->regs->length); msg 184 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c writew(TWI_TRANSFER | (i2c->msg->addr << 1) | rdflag, msg 217 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c i2c->msg = &msgs[i]; msg 234 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c if ((i2c->msg->flags & I2C_M_RD) != 0 && msg 235 drivers/media/pci/netup_unidvb/netup_unidvb_i2c.c i2c->xmit_size != i2c->msg->len) msg 97 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c struct spi_message *msg) msg 107 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c list_for_each_entry(t, &msg->transfers, transfer_list) { msg 116 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c &msg->transfers) && msg 159 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c msg->actual_length += frag_size; msg 163 drivers/media/pci/netup_unidvb/netup_unidvb_spi.c msg->status = result; msg 56 drivers/media/pci/ngene/ngene-cards.c struct i2c_msg msg = {.addr = adr, .flags = 0, msg 59 drivers/media/pci/ngene/ngene-cards.c return (i2c_transfer(adap, &msg, 1) == 1) ? 0 : -1; msg 65 drivers/media/pci/ngene/ngene-cards.c u8 msg[2] = {reg, val}; msg 67 drivers/media/pci/ngene/ngene-cards.c return i2c_write(adap, adr, msg, 2); msg 80 drivers/media/pci/ngene/ngene-cards.c u8 msg[2] = {reg >> 8, reg & 0xff}; msg 82 drivers/media/pci/ngene/ngene-cards.c .buf = msg, .len = 2}, msg 792 drivers/media/pci/ngene/ngene-cards.c struct i2c_msg msg = {.addr = adr, .flags = 0, .buf = m, msg 795 drivers/media/pci/ngene/ngene-cards.c if (i2c_transfer(adapter, &msg, 1) != 1) { msg 806 drivers/media/pci/ngene/ngene-cards.c u8 msg[2] = {(reg >> 8), (reg & 0xff)}; msg 808 drivers/media/pci/ngene/ngene-cards.c .buf = msg, .len = 2 }, msg 102 drivers/media/pci/ngene/ngene-i2c.c struct i2c_msg msg[], int num) msg 111 drivers/media/pci/ngene/ngene-i2c.c if (num == 2 && msg[1].flags & I2C_M_RD && !(msg[0].flags & I2C_M_RD)) msg 112 drivers/media/pci/ngene/ngene-i2c.c if (!ngene_command_i2c_read(dev, msg[0].addr, msg 113 drivers/media/pci/ngene/ngene-i2c.c msg[0].buf, msg[0].len, msg 114 drivers/media/pci/ngene/ngene-i2c.c msg[1].buf, msg[1].len, 0)) msg 117 drivers/media/pci/ngene/ngene-i2c.c if (num == 1 && !(msg[0].flags & I2C_M_RD)) msg 118 drivers/media/pci/ngene/ngene-i2c.c if (!ngene_command_i2c_write(dev, msg[0].addr, msg 119 drivers/media/pci/ngene/ngene-i2c.c msg[0].buf, msg[0].len)) msg 121 drivers/media/pci/ngene/ngene-i2c.c if (num == 1 && (msg[0].flags & I2C_M_RD)) msg 122 drivers/media/pci/ngene/ngene-i2c.c if (!ngene_command_i2c_read(dev, msg[0].addr, NULL, 0, msg 123 drivers/media/pci/ngene/ngene-i2c.c msg[0].buf, msg[0].len, 0)) msg 438 drivers/media/pci/pluto2/pluto2.c struct i2c_msg msg; msg 470 drivers/media/pci/pluto2/pluto2.c msg.addr = I2C_ADDR_TUA6034 >> 1; msg 471 drivers/media/pci/pluto2/pluto2.c msg.flags = 0; msg 472 drivers/media/pci/pluto2/pluto2.c msg.buf = buf; msg 473 drivers/media/pci/pluto2/pluto2.c msg.len = sizeof(buf); msg 477 drivers/media/pci/pluto2/pluto2.c ret = i2c_transfer(&pluto->i2c_adap, &msg, 1); msg 201 drivers/media/pci/pt1/pt1.c struct i2c_msg msg[2]; msg 205 drivers/media/pci/pt1/pt1.c msg[0].addr = cl->addr; msg 206 drivers/media/pci/pt1/pt1.c msg[0].flags = 0; msg 207 drivers/media/pci/pt1/pt1.c msg[0].len = 1; msg 208 drivers/media/pci/pt1/pt1.c msg[0].buf = &wbuf; msg 210 drivers/media/pci/pt1/pt1.c msg[1].addr = cl->addr; msg 211 drivers/media/pci/pt1/pt1.c msg[1].flags = I2C_M_RD; msg 212 drivers/media/pci/pt1/pt1.c msg[1].len = 1; msg 213 drivers/media/pci/pt1/pt1.c msg[1].buf = &rbuf; msg 214 drivers/media/pci/pt1/pt1.c ret = i2c_transfer(cl->adapter, msg, 2); msg 1087 drivers/media/pci/pt1/pt1.c pt1_i2c_write_msg(struct pt1 *pt1, int addr, int *addrp, struct i2c_msg *msg) msg 1091 drivers/media/pci/pt1/pt1.c pt1_i2c_write_byte(pt1, addr, &addr, msg->addr << 1); msg 1092 drivers/media/pci/pt1/pt1.c for (i = 0; i < msg->len; i++) msg 1093 drivers/media/pci/pt1/pt1.c pt1_i2c_write_byte(pt1, addr, &addr, msg->buf[i]); msg 1098 drivers/media/pci/pt1/pt1.c pt1_i2c_read_msg(struct pt1 *pt1, int addr, int *addrp, struct i2c_msg *msg) msg 1102 drivers/media/pci/pt1/pt1.c pt1_i2c_write_byte(pt1, addr, &addr, msg->addr << 1 | 1); msg 1103 drivers/media/pci/pt1/pt1.c for (i = 0; i < msg->len; i++) msg 1104 drivers/media/pci/pt1/pt1.c pt1_i2c_read_byte(pt1, addr, &addr, i == msg->len - 1); msg 1144 drivers/media/pci/pt1/pt1.c struct i2c_msg *msg, *next_msg; msg 1152 drivers/media/pci/pt1/pt1.c msg = &msgs[i]; msg 1153 drivers/media/pci/pt1/pt1.c if (msg->flags & I2C_M_RD) msg 1169 drivers/media/pci/pt1/pt1.c pt1_i2c_write_msg(pt1, addr, &addr, msg); msg 1182 drivers/media/pci/pt1/pt1.c pt1_i2c_write_msg(pt1, addr, &addr, msg); msg 94 drivers/media/pci/pt3/pt3.c struct i2c_msg msg; msg 98 drivers/media/pci/pt3/pt3.c msg.addr = adap->i2c_demod->addr; msg 99 drivers/media/pci/pt3/pt3.c msg.flags = 0; msg 100 drivers/media/pci/pt3/pt3.c msg.len = 2; msg 102 drivers/media/pci/pt3/pt3.c msg.buf = (u8 *)&data[i]; msg 103 drivers/media/pci/pt3/pt3.c ret = i2c_transfer(adap->i2c_demod->adapter, &msg, 1); msg 7737 drivers/media/pci/saa7134/saa7134-cards.c struct i2c_msg msg[] = {{.addr = 0x50, .flags = 0, .buf = &subaddr, .len = 1}, msg 7747 drivers/media/pci/saa7134/saa7134-cards.c ret = i2c_transfer(&dev->i2c_adap, msg, 2); msg 7753 drivers/media/pci/saa7134/saa7134-cards.c msg[1].len = 2; msg 7754 drivers/media/pci/saa7134/saa7134-cards.c i2c_transfer(&dev->i2c_adap, msg, 2); msg 7770 drivers/media/pci/saa7134/saa7134-cards.c msg[1].len = 1; msg 7771 drivers/media/pci/saa7134/saa7134-cards.c i2c_transfer(&dev->i2c_adap, msg, 2); msg 7773 drivers/media/pci/saa7134/saa7134-cards.c msg[1].len = 2; msg 7774 drivers/media/pci/saa7134/saa7134-cards.c i2c_transfer(&dev->i2c_adap, msg, 2); msg 7827 drivers/media/pci/saa7134/saa7134-cards.c struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)}; msg 7828 drivers/media/pci/saa7134/saa7134-cards.c i2c_transfer(&dev->i2c_adap, &msg, 1); msg 7836 drivers/media/pci/saa7134/saa7134-cards.c struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)}; msg 7846 drivers/media/pci/saa7134/saa7134-cards.c i2c_transfer(&dev->i2c_adap, &msg, 1); msg 7849 drivers/media/pci/saa7134/saa7134-cards.c i2c_transfer(&dev->i2c_adap, &msg, 1); msg 7889 drivers/media/pci/saa7134/saa7134-cards.c struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)}; msg 7890 drivers/media/pci/saa7134/saa7134-cards.c i2c_transfer(&dev->i2c_adap, &msg, 1); msg 7896 drivers/media/pci/saa7134/saa7134-cards.c struct i2c_msg msg = {.addr = 0x0b, .flags = 0, .buf = data, msg 7898 drivers/media/pci/saa7134/saa7134-cards.c i2c_transfer(&dev->i2c_adap, &msg, 1); msg 7904 drivers/media/pci/saa7134/saa7134-cards.c struct i2c_msg msg = {.addr = 0x0b, .flags = 0, .buf = data, msg 7906 drivers/media/pci/saa7134/saa7134-cards.c i2c_transfer(&dev->i2c_adap, &msg, 1); msg 7914 drivers/media/pci/saa7134/saa7134-cards.c struct i2c_msg msg = {.addr=0x09, .flags=0, .buf=data, .len = sizeof(data)}; msg 7915 drivers/media/pci/saa7134/saa7134-cards.c i2c_transfer(&dev->i2c_adap, &msg, 1); msg 7921 drivers/media/pci/saa7134/saa7134-cards.c msg.buf = &temp; msg 7922 drivers/media/pci/saa7134/saa7134-cards.c msg.addr = 0x0b; msg 7923 drivers/media/pci/saa7134/saa7134-cards.c msg.len = 1; msg 7924 drivers/media/pci/saa7134/saa7134-cards.c if (1 != i2c_transfer(&dev->i2c_adap, &msg, 1)) { msg 7928 drivers/media/pci/saa7134/saa7134-cards.c msg.flags = I2C_M_RD; msg 7929 drivers/media/pci/saa7134/saa7134-cards.c rc = i2c_transfer(&dev->i2c_adap, &msg, 1); msg 7931 drivers/media/pci/saa7134/saa7134-cards.c dev->name, msg.addr, msg 7943 drivers/media/pci/saa7134/saa7134-cards.c struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)}; msg 7944 drivers/media/pci/saa7134/saa7134-cards.c i2c_transfer(&dev->i2c_adap, &msg, 1); msg 7952 drivers/media/pci/saa7134/saa7134-cards.c struct i2c_msg msg = {.addr=0x08, .flags=0, .buf=data, .len = sizeof(data)}; msg 7953 drivers/media/pci/saa7134/saa7134-cards.c i2c_transfer(&dev->i2c_adap, &msg, 1); msg 7982 drivers/media/pci/saa7134/saa7134-cards.c struct i2c_msg msg = { .addr = 0x0a, .flags = 0 }; msg 7993 drivers/media/pci/saa7134/saa7134-cards.c msg.buf = &buffer[i][0]; msg 7994 drivers/media/pci/saa7134/saa7134-cards.c msg.len = ARRAY_SIZE(buffer[0]); msg 7995 drivers/media/pci/saa7134/saa7134-cards.c if (i2c_transfer(&dev->i2c_adap, &msg, 1) != 1) msg 8004 drivers/media/pci/saa7134/saa7134-cards.c struct i2c_msg msg = {.addr = 0x61, .flags = 0, .buf = data, msg 8012 drivers/media/pci/saa7134/saa7134-cards.c if (i2c_transfer(&dev->i2c_adap, &msg, 1) != 1) msg 101 drivers/media/pci/saa7134/saa7134-core.c void saa7134_track_gpio(struct saa7134_dev *dev, const char *msg) msg 113 drivers/media/pci/saa7134/saa7134-core.c dev->name, mode, (~mode) & status, mode & status, msg); msg 168 drivers/media/pci/saa7134/saa7134-dvb.c struct i2c_msg msg = {.addr=0x43, .flags=0, .buf=off, .len = sizeof(off)}; msg 179 drivers/media/pci/saa7134/saa7134-dvb.c i2c_transfer(&dev->i2c_adap, &msg, 1); msg 181 drivers/media/pci/saa7134/saa7134-dvb.c msg.buf = on; msg 184 drivers/media/pci/saa7134/saa7134-dvb.c i2c_transfer(&dev->i2c_adap, &msg, 1); msg 234 drivers/media/pci/saa7134/saa7134-dvb.c struct i2c_msg msg = {.addr = 0x4b, .flags = 0, .buf = initmsg, .len = 2}; msg 236 drivers/media/pci/saa7134/saa7134-dvb.c if (i2c_transfer(&dev->i2c_adap, &msg, 1) != 1) { msg 241 drivers/media/pci/saa7134/saa7134-dvb.c msg.buf = msg_enable; msg 243 drivers/media/pci/saa7134/saa7134-dvb.c msg.buf = msg_disable; msg 244 drivers/media/pci/saa7134/saa7134-dvb.c if (i2c_transfer(&dev->i2c_adap, &msg, 1) != 1) { msg 406 drivers/media/pci/saa7134/saa7134-dvb.c static u8 msg[] = { 0x0b, 0xf5, 0x86, 0xab }; msg 407 drivers/media/pci/saa7134/saa7134-dvb.c struct i2c_msg init_msg = {.addr = addr,.flags = 0,.buf = msg,.len = sizeof(msg) }; msg 427 drivers/media/pci/saa7134/saa7134-dvb.c static u8 msg[] = { 0x0b, 0xdc, 0x86, 0xa4 }; msg 428 drivers/media/pci/saa7134/saa7134-dvb.c struct i2c_msg analog_msg = {.addr = addr,.flags = 0,.buf = msg,.len = sizeof(msg) }; msg 443 drivers/media/pci/saa7134/saa7134-dvb.c static u8 msg[] = { 0x00, 0x40}; msg 444 drivers/media/pci/saa7134/saa7134-dvb.c struct i2c_msg init_msg = {.addr = 0x43,.flags = 0,.buf = msg,.len = sizeof(msg) }; msg 460 drivers/media/pci/saa7134/saa7134-dvb.c static u8 msg[] = { 0x00, 0x14 }; msg 461 drivers/media/pci/saa7134/saa7134-dvb.c struct i2c_msg analog_msg = {.addr = 0x43,.flags = 0,.buf = msg,.len = sizeof(msg) }; msg 1010 drivers/media/pci/saa7134/saa7134-dvb.c struct i2c_msg msg[] = { { .addr = 0x08, .flags = 0, .buf = wbuf, .len = 1 }, msg 1013 drivers/media/pci/saa7134/saa7134-dvb.c if (i2c_transfer(&dev->i2c_adap, msg, 2) != 2) msg 1020 drivers/media/pci/saa7134/saa7134-dvb.c msg[0].len = 2; msg 1021 drivers/media/pci/saa7134/saa7134-dvb.c i2c_transfer(&dev->i2c_adap, msg, 1); msg 1449 drivers/media/pci/saa7134/saa7134-dvb.c struct i2c_msg msg = {.addr = 0x08, .flags = 0, .len = 1}; msg 1469 drivers/media/pci/saa7134/saa7134-dvb.c msg.buf = &data; msg 1470 drivers/media/pci/saa7134/saa7134-dvb.c i2c_transfer(&dev->i2c_adap, &msg, 1); msg 1943 drivers/media/pci/saa7134/saa7134-dvb.c struct i2c_msg msg = {.addr = 0x08, .buf = &data, .flags = 0, .len = 1}; msg 1948 drivers/media/pci/saa7134/saa7134-dvb.c i2c_transfer(&dev->i2c_adap, &msg, 1); msg 750 drivers/media/pci/saa7134/saa7134.h void saa7134_track_gpio(struct saa7134_dev *dev, const char *msg); msg 339 drivers/media/pci/saa7146/mxb.c struct i2c_msg msg; msg 392 drivers/media/pci/saa7146/mxb.c msg.addr = 0x1b; msg 393 drivers/media/pci/saa7146/mxb.c msg.flags = 0; msg 394 drivers/media/pci/saa7146/mxb.c msg.len = mxb_saa7740_init[0].length; msg 395 drivers/media/pci/saa7146/mxb.c msg.buf = &mxb_saa7740_init[0].data[0]; msg 397 drivers/media/pci/saa7146/mxb.c err = i2c_transfer(&mxb->i2c_adapter, &msg, 1); msg 409 drivers/media/pci/saa7146/mxb.c msg.len = mxb_saa7740_init[i].length; msg 410 drivers/media/pci/saa7146/mxb.c msg.buf = &mxb_saa7740_init[i].data[0]; msg 411 drivers/media/pci/saa7146/mxb.c err = i2c_transfer(&mxb->i2c_adapter, &msg, 1); msg 120 drivers/media/pci/saa7164/saa7164-bus.c int saa7164_bus_set(struct saa7164_dev *dev, struct tmComResInfo* msg, msg 129 drivers/media/pci/saa7164/saa7164-bus.c if (!msg) { msg 138 drivers/media/pci/saa7164/saa7164-bus.c if (msg->size > dev->bus.m_wMaxReqSize) { msg 144 drivers/media/pci/saa7164/saa7164-bus.c if ((msg->size > 0) && (buf == NULL)) { msg 152 drivers/media/pci/saa7164/saa7164-bus.c bytes_to_write = sizeof(*msg) + msg->size; msg 213 drivers/media/pci/saa7164/saa7164-bus.c size = msg->size; msg 215 drivers/media/pci/saa7164/saa7164-bus.c msg->size = (__force u16)cpu_to_le16(msg->size); msg 216 drivers/media/pci/saa7164/saa7164-bus.c msg->command = (__force u32)cpu_to_le32(msg->command); msg 217 drivers/media/pci/saa7164/saa7164-bus.c msg->controlselector = (__force u16)cpu_to_le16(msg->controlselector); msg 233 drivers/media/pci/saa7164/saa7164-bus.c (u32)sizeof(*msg)); msg 235 drivers/media/pci/saa7164/saa7164-bus.c if (space_rem < sizeof(*msg)) { msg 239 drivers/media/pci/saa7164/saa7164-bus.c memcpy_toio(bus->m_pdwSetRing + curr_swp, msg, space_rem); msg 240 drivers/media/pci/saa7164/saa7164-bus.c memcpy_toio(bus->m_pdwSetRing, (u8 *)msg + space_rem, msg 241 drivers/media/pci/saa7164/saa7164-bus.c sizeof(*msg) - space_rem); msg 243 drivers/media/pci/saa7164/saa7164-bus.c memcpy_toio(bus->m_pdwSetRing + sizeof(*msg) - space_rem, msg 246 drivers/media/pci/saa7164/saa7164-bus.c } else if (space_rem == sizeof(*msg)) { msg 250 drivers/media/pci/saa7164/saa7164-bus.c memcpy_toio(bus->m_pdwSetRing + curr_swp, msg, sizeof(*msg)); msg 255 drivers/media/pci/saa7164/saa7164-bus.c memcpy_toio(bus->m_pdwSetRing + curr_swp, msg, sizeof(*msg)); msg 258 drivers/media/pci/saa7164/saa7164-bus.c sizeof(*msg), buf, space_rem - msg 259 drivers/media/pci/saa7164/saa7164-bus.c sizeof(*msg)); msg 261 drivers/media/pci/saa7164/saa7164-bus.c space_rem - sizeof(*msg), msg 272 drivers/media/pci/saa7164/saa7164-bus.c memcpy_toio(bus->m_pdwSetRing + curr_swp, msg, sizeof(*msg)); msg 273 drivers/media/pci/saa7164/saa7164-bus.c memcpy_toio(bus->m_pdwSetRing + curr_swp + sizeof(*msg), buf, msg 283 drivers/media/pci/saa7164/saa7164-bus.c msg->size = le16_to_cpu((__force __le16)msg->size); msg 284 drivers/media/pci/saa7164/saa7164-bus.c msg->command = le32_to_cpu((__force __le32)msg->command); msg 285 drivers/media/pci/saa7164/saa7164-bus.c msg->controlselector = le16_to_cpu((__force __le16)msg->controlselector); msg 305 drivers/media/pci/saa7164/saa7164-bus.c int saa7164_bus_get(struct saa7164_dev *dev, struct tmComResInfo* msg, msg 316 drivers/media/pci/saa7164/saa7164-bus.c if (msg == NULL) msg 319 drivers/media/pci/saa7164/saa7164-bus.c if (msg->size > dev->bus.m_wMaxReqSize) { msg 325 drivers/media/pci/saa7164/saa7164-bus.c if ((peekonly == 0) && (msg->size > 0) && (buf == NULL)) { msg 328 drivers/media/pci/saa7164/saa7164-bus.c __func__, msg->size); msg 345 drivers/media/pci/saa7164/saa7164-bus.c bytes_to_read = sizeof(*msg); msg 382 drivers/media/pci/saa7164/saa7164-bus.c memcpy(msg, &msg_tmp, sizeof(*msg)); msg 391 drivers/media/pci/saa7164/saa7164-bus.c if ((msg_tmp.id != msg->id) || (msg_tmp.command != msg->command) || msg 392 drivers/media/pci/saa7164/saa7164-bus.c (msg_tmp.controlselector != msg->controlselector) || msg 393 drivers/media/pci/saa7164/saa7164-bus.c (msg_tmp.seqno != msg->seqno) || (msg_tmp.size != msg->size)) { msg 396 drivers/media/pci/saa7164/saa7164-bus.c saa7164_bus_dumpmsg(dev, msg, buf); msg 403 drivers/media/pci/saa7164/saa7164-bus.c buf_size = msg->size; msg 405 drivers/media/pci/saa7164/saa7164-bus.c bytes_to_read = sizeof(*msg) + msg->size; msg 430 drivers/media/pci/saa7164/saa7164-bus.c if (space_rem < sizeof(*msg)) { msg 432 drivers/media/pci/saa7164/saa7164-bus.c memcpy_fromio(buf, bus->m_pdwGetRing + sizeof(*msg) - msg 435 drivers/media/pci/saa7164/saa7164-bus.c } else if (space_rem == sizeof(*msg)) { msg 442 drivers/media/pci/saa7164/saa7164-bus.c sizeof(*msg), space_rem - sizeof(*msg)); msg 443 drivers/media/pci/saa7164/saa7164-bus.c memcpy_fromio(buf + space_rem - sizeof(*msg), msg 453 drivers/media/pci/saa7164/saa7164-bus.c memcpy_fromio(buf, bus->m_pdwGetRing + curr_grp + sizeof(*msg), msg 172 drivers/media/pci/saa7164/saa7164-cmd.c static int saa7164_cmd_set(struct saa7164_dev *dev, struct tmComResInfo *msg, msg 182 drivers/media/pci/saa7164/saa7164-cmd.c if (!msg) { msg 187 drivers/media/pci/saa7164/saa7164-cmd.c mutex_lock(&dev->cmds[msg->id].lock); msg 189 drivers/media/pci/saa7164/saa7164-cmd.c size = msg->size; msg 200 drivers/media/pci/saa7164/saa7164-cmd.c msg->flags |= SAA_CMDFLAG_CONTINUE; msg 201 drivers/media/pci/saa7164/saa7164-cmd.c msg->size = bus->m_wMaxReqSize; msg 204 drivers/media/pci/saa7164/saa7164-cmd.c ret = saa7164_bus_set(dev, msg, tmp); msg 220 drivers/media/pci/saa7164/saa7164-cmd.c msg->flags &= ~SAA_CMDFLAG_CONTINUE; msg 222 drivers/media/pci/saa7164/saa7164-cmd.c msg->size = size - idx * bus->m_wMaxReqSize; msg 224 drivers/media/pci/saa7164/saa7164-cmd.c ret = saa7164_bus_set(dev, msg, buf + idx * bus->m_wMaxReqSize); msg 238 drivers/media/pci/saa7164/saa7164-cmd.c mutex_unlock(&dev->cmds[msg->id].lock); msg 503 drivers/media/pci/saa7164/saa7164.h int saa7164_bus_set(struct saa7164_dev *dev, struct tmComResInfo* msg, msg 505 drivers/media/pci/saa7164/saa7164.h int saa7164_bus_get(struct saa7164_dev *dev, struct tmComResInfo* msg, msg 240 drivers/media/pci/smipcie/smipcie-main.c struct i2c_msg msg[] = { msg 247 drivers/media/pci/smipcie/smipcie-main.c ret = i2c_transfer(i2c, msg, 2); msg 1162 drivers/media/pci/ttpci/av7110.c return av7110_diseqc_send(av7110, cmd->msg_len, cmd->msg, -1); msg 1407 drivers/media/pci/ttpci/av7110.c u8 msg[2] = { reg, val }; msg 1413 drivers/media/pci/ttpci/av7110.c msgs.buf = msg; msg 1542 drivers/media/pci/ttpci/av7110.c struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = buf, .len = sizeof(buf) }; msg 1568 drivers/media/pci/ttpci/av7110.c if (i2c_transfer (&av7110->i2c_adap, &msg, 1) != 1) msg 1585 drivers/media/pci/ttpci/av7110.c struct i2c_msg msg = { .addr = 0x62, .flags = 0, .buf = data, .len = sizeof(data) }; msg 1596 drivers/media/pci/ttpci/av7110.c if (i2c_transfer(&av7110->i2c_adap, &msg, 1) != 1) msg 1617 drivers/media/pci/ttpci/av7110.c struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = sizeof(data) }; msg 1627 drivers/media/pci/ttpci/av7110.c if (i2c_transfer(&av7110->i2c_adap, &msg, 1) != 1) msg 1645 drivers/media/pci/ttpci/av7110.c struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = sizeof(data) }; msg 1656 drivers/media/pci/ttpci/av7110.c if (i2c_transfer(&av7110->i2c_adap, &msg, 1) != 1) msg 1676 drivers/media/pci/ttpci/av7110.c struct i2c_msg msg = { .addr = 0x60, .flags = 0, .buf = data, .len = sizeof(data) }; msg 1692 drivers/media/pci/ttpci/av7110.c if (i2c_transfer(&av7110->i2c_adap, &msg, 1) != 1) msg 1814 drivers/media/pci/ttpci/av7110.c struct i2c_msg msg = { .addr = 0x63, .flags = 0, .buf = data, .len = sizeof(data) }; msg 1837 drivers/media/pci/ttpci/av7110.c if (i2c_transfer(&av7110->i2c_adap, &msg, 1) != 1) { msg 1871 drivers/media/pci/ttpci/av7110.c struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = sizeof(data) }; msg 1902 drivers/media/pci/ttpci/av7110.c if (i2c_transfer (&av7110->i2c_adap, &msg, 1) != 1) return -EIO; msg 2080 drivers/media/pci/ttpci/av7110.c struct i2c_msg msg[] = { { .addr = 0x50,.flags = 0,.buf = &b,.len = 1 }, msg 2083 drivers/media/pci/ttpci/av7110.c if ((i2c_transfer(&av7110->i2c_adap, msg, 2) != 2) || (pwm == 0xff)) msg 112 drivers/media/pci/ttpci/av7110_ca.c u8 msg[8] = { 0x00, 0x06, 0x00, 0x00, 0xff, 0x02, 0x00, 0x00 }; msg 124 drivers/media/pci/ttpci/av7110_ca.c msg[2] = i; msg 125 drivers/media/pci/ttpci/av7110_ca.c dvb_ringbuffer_write(cibuf, msg, 8); msg 659 drivers/media/pci/ttpci/av7110_hw.c int av7110_diseqc_send(struct av7110 *av7110, int len, u8 *msg, unsigned long burst) msg 679 drivers/media/pci/ttpci/av7110_hw.c buf[i + 4] = msg[i]; msg 486 drivers/media/pci/ttpci/av7110_hw.h extern int av7110_diseqc_send(struct av7110 *av7110, int len, u8 *msg, unsigned long burst); msg 29 drivers/media/pci/ttpci/av7110_v4l.c u8 msg[5] = { dev, reg >> 8, reg & 0xff, val >> 8 , val & 0xff }; msg 30 drivers/media/pci/ttpci/av7110_v4l.c struct i2c_msg msgs = { .flags = 0, .len = 5, .buf = msg }; msg 126 drivers/media/pci/ttpci/av7110_v4l.c struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = buf, .len = 3 }; msg 130 drivers/media/pci/ttpci/av7110_v4l.c if (1 != i2c_transfer(&av7110->i2c_adap, &msg, 1)) msg 138 drivers/media/pci/ttpci/av7110_v4l.c struct i2c_msg msg = { .addr = addr, .flags = 0, .buf = data, .len = 4 }; msg 142 drivers/media/pci/ttpci/av7110_v4l.c if (1 != i2c_transfer(&av7110->i2c_adap, &msg, 1)) msg 113 drivers/media/pci/ttpci/budget-av.c u8 msg[2] = { reg, val }; msg 119 drivers/media/pci/ttpci/budget-av.c msgs.buf = msg; msg 494 drivers/media/pci/ttpci/budget-av.c struct i2c_msg msg = {.addr = 0x61,.flags = 0,.buf = buf,.len = sizeof(buf) }; msg 519 drivers/media/pci/ttpci/budget-av.c if (i2c_transfer(&budget->i2c_adap, &msg, 1) != 1) msg 608 drivers/media/pci/ttpci/budget-av.c struct i2c_msg msg = {.addr = 0x60,.flags = 0,.buf = buf,.len = sizeof(buf) }; msg 626 drivers/media/pci/ttpci/budget-av.c if (i2c_transfer(&budget->i2c_adap, &msg, 1) != 1) msg 630 drivers/media/pci/ttpci/budget-av.c msg.flags = I2C_M_RD; msg 631 drivers/media/pci/ttpci/budget-av.c msg.len = 1; msg 635 drivers/media/pci/ttpci/budget-av.c if (i2c_transfer(&budget->i2c_adap, &msg, 1) == 1 && (buf[0] & 0x40)) msg 641 drivers/media/pci/ttpci/budget-av.c msg.flags = 0; msg 642 drivers/media/pci/ttpci/budget-av.c msg.len = 2; msg 643 drivers/media/pci/ttpci/budget-av.c msg.buf = &buf[2]; msg 647 drivers/media/pci/ttpci/budget-av.c if (i2c_transfer(&budget->i2c_adap, &msg, 1) != 1) msg 1155 drivers/media/pci/ttpci/budget-av.c struct i2c_msg msg[] = { {.addr = 0x50,.flags = 0,.buf = &b,.len = 1}, msg 1159 drivers/media/pci/ttpci/budget-av.c if ((i2c_transfer(&budget_av->budget.i2c_adap, msg, 2) != 2) msg 653 drivers/media/pci/ttpci/budget-ci.c struct i2c_msg msg = {.addr = 0x60,.flags = 0,.buf = buf,.len = sizeof(buf) }; msg 678 drivers/media/pci/ttpci/budget-ci.c if (i2c_transfer(&budget_ci->budget.i2c_adap, &msg, 1) != 1) msg 84 drivers/media/pci/ttpci/budget-patch.c static int SendDiSEqCMsg (struct budget *budget, int len, u8 *msg, unsigned long burst) msg 95 drivers/media/pci/ttpci/budget-patch.c DiseqcSendByte(budget, msg[i]); msg 140 drivers/media/pci/ttpci/budget-patch.c SendDiSEqCMsg (budget, cmd->msg_len, cmd->msg, 0); msg 184 drivers/media/pci/ttpci/budget-patch.c static int av7110_send_diseqc_msg(struct budget_patch *budget, int len, u8 *msg, int burst) msg 204 drivers/media/pci/ttpci/budget-patch.c buf[i+4]=msg[i]; msg 235 drivers/media/pci/ttpci/budget-patch.c av7110_send_diseqc_msg (budget, cmd->msg_len, cmd->msg, 0); msg 256 drivers/media/pci/ttpci/budget-patch.c struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = buf, .len = sizeof(buf) }; msg 281 drivers/media/pci/ttpci/budget-patch.c if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) msg 298 drivers/media/pci/ttpci/budget-patch.c struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = sizeof(data) }; msg 308 drivers/media/pci/ttpci/budget-patch.c if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) msg 82 drivers/media/pci/ttpci/budget.c static int SendDiSEqCMsg (struct budget *budget, int len, u8 *msg, unsigned long burst) msg 93 drivers/media/pci/ttpci/budget.c DiseqcSendByte(budget, msg[i]); msg 177 drivers/media/pci/ttpci/budget.c SendDiSEqCMsg (budget, cmd->msg_len, cmd->msg, 0); msg 198 drivers/media/pci/ttpci/budget.c struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = buf, .len = sizeof(buf) }; msg 223 drivers/media/pci/ttpci/budget.c if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; msg 240 drivers/media/pci/ttpci/budget.c struct i2c_msg msg = { .addr = 0x62, .flags = 0, .buf = data, .len = sizeof(data) }; msg 251 drivers/media/pci/ttpci/budget.c if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; msg 270 drivers/media/pci/ttpci/budget.c struct i2c_msg msg = { .flags = 0, .buf = data, .len = sizeof(data) }; msg 273 drivers/media/pci/ttpci/budget.c msg.addr = *tuner_addr; msg 275 drivers/media/pci/ttpci/budget.c msg.addr = 0x61; msg 306 drivers/media/pci/ttpci/budget.c if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; msg 326 drivers/media/pci/ttpci/budget.c struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = sizeof(data) }; msg 336 drivers/media/pci/ttpci/budget.c if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; msg 350 drivers/media/pci/ttpci/budget.c struct i2c_msg msg = { .addr = 0x61, .flags = 0, .buf = data, .len = sizeof(data) }; msg 368 drivers/media/pci/ttpci/budget.c if (i2c_transfer (&budget->i2c_adap, &msg, 1) != 1) return -EIO; msg 417 drivers/media/pci/ttpci/budget.c struct i2c_msg msg[] = { msg 422 drivers/media/pci/ttpci/budget.c return (i2c_transfer(i2c, msg, 2) != 2) ? -EIO : val; msg 429 drivers/media/pci/ttpci/budget.c struct i2c_msg msg[] = { { .addr = 0x50,.flags = 0,.buf = &b,.len = 1 }, msg 432 drivers/media/pci/ttpci/budget.c if ((i2c_transfer(&budget->i2c_adap, msg, 2) != 2) || (pwm == 0xff)) msg 111 drivers/media/pci/ttpci/ttpci-eeprom.c struct i2c_msg msg[] = { msg 118 drivers/media/pci/ttpci/ttpci-eeprom.c ret = i2c_transfer(adapter, msg, 2); msg 49 drivers/media/platform/cros-ec-cec/cros-ec-cec.c memcpy(cros_ec_cec->rx_msg.msg, cec_message, len); msg 98 drivers/media/platform/cros-ec-cec/cros-ec-cec.c struct cros_ec_command msg; msg 100 drivers/media/platform/cros-ec-cec/cros-ec-cec.c } __packed msg = {}; msg 103 drivers/media/platform/cros-ec-cec/cros-ec-cec.c msg.msg.command = EC_CMD_CEC_SET; msg 104 drivers/media/platform/cros-ec-cec/cros-ec-cec.c msg.msg.outsize = sizeof(msg.data); msg 105 drivers/media/platform/cros-ec-cec/cros-ec-cec.c msg.data.cmd = CEC_CMD_LOGICAL_ADDRESS; msg 106 drivers/media/platform/cros-ec-cec/cros-ec-cec.c msg.data.val = logical_addr; msg 108 drivers/media/platform/cros-ec-cec/cros-ec-cec.c ret = cros_ec_cmd_xfer_status(cros_ec, &msg.msg); msg 124 drivers/media/platform/cros-ec-cec/cros-ec-cec.c struct cros_ec_command msg; msg 126 drivers/media/platform/cros-ec-cec/cros-ec-cec.c } __packed msg = {}; msg 129 drivers/media/platform/cros-ec-cec/cros-ec-cec.c msg.msg.command = EC_CMD_CEC_WRITE_MSG; msg 130 drivers/media/platform/cros-ec-cec/cros-ec-cec.c msg.msg.outsize = cec_msg->len; msg 131 drivers/media/platform/cros-ec-cec/cros-ec-cec.c memcpy(msg.data.msg, cec_msg->msg, cec_msg->len); msg 133 drivers/media/platform/cros-ec-cec/cros-ec-cec.c ret = cros_ec_cmd_xfer_status(cros_ec, &msg.msg); msg 148 drivers/media/platform/cros-ec-cec/cros-ec-cec.c struct cros_ec_command msg; msg 150 drivers/media/platform/cros-ec-cec/cros-ec-cec.c } __packed msg = {}; msg 153 drivers/media/platform/cros-ec-cec/cros-ec-cec.c msg.msg.command = EC_CMD_CEC_SET; msg 154 drivers/media/platform/cros-ec-cec/cros-ec-cec.c msg.msg.outsize = sizeof(msg.data); msg 155 drivers/media/platform/cros-ec-cec/cros-ec-cec.c msg.data.cmd = CEC_CMD_ENABLE; msg 156 drivers/media/platform/cros-ec-cec/cros-ec-cec.c msg.data.val = enable; msg 158 drivers/media/platform/cros-ec-cec/cros-ec-cec.c ret = cros_ec_cmd_xfer_status(cros_ec, &msg.msg); msg 442 drivers/media/platform/meson/ao-cec-g12a.c ao_cec->rx_msg.msg[i] = val & 0xff; msg 530 drivers/media/platform/meson/ao-cec-g12a.c u32 signal_free_time, struct cec_msg *msg) msg 565 drivers/media/platform/meson/ao-cec-g12a.c for (i = 0; i < msg->len; i++) msg 567 drivers/media/platform/meson/ao-cec-g12a.c msg->msg[i]); msg 569 drivers/media/platform/meson/ao-cec-g12a.c ret |= regmap_write(ao_cec->regmap_cec, CECB_TX_CNT, msg->len); msg 450 drivers/media/platform/meson/ao-cec.c ao_cec->rx_msg.msg[i] = byte; msg 516 drivers/media/platform/meson/ao-cec.c u32 signal_free_time, struct cec_msg *msg) msg 532 drivers/media/platform/meson/ao-cec.c for (i = 0; i < msg->len; i++) { msg 534 drivers/media/platform/meson/ao-cec.c msg->msg[i], &ret); msg 537 drivers/media/platform/meson/ao-cec.c meson_ao_cec_write(ao_cec, CEC_TX_MSG_LENGTH, msg->len - 1, &ret); msg 18 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c static void mtk_mdp_vpu_handle_init_ack(struct mdp_ipi_comm_ack *msg) msg 21 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c (unsigned long)msg->ap_inst; msg 25 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c vpu_mapping_dm_addr(vpu->pdev, msg->vpu_inst_addr); msg 26 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c vpu->inst_addr = msg->vpu_inst_addr; msg 32 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c struct mdp_ipi_comm_ack *msg = (struct mdp_ipi_comm_ack *)data; msg 34 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c (unsigned long)msg->ap_inst; msg 37 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c vpu->failure = msg->status; msg 74 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c static int mtk_mdp_vpu_send_msg(void *msg, int len, struct mtk_mdp_vpu *vpu, msg 86 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c err = vpu_ipi_send(vpu->pdev, (enum ipi_id)id, msg, len); msg 98 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c struct mdp_ipi_comm msg; msg 100 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c msg.msg_id = msg_id; msg 101 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c msg.ipi_id = IPI_MDP; msg 102 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c msg.vpu_inst_addr = vpu->inst_addr; msg 103 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c msg.ap_inst = (unsigned long)vpu; msg 104 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c err = mtk_mdp_vpu_send_msg((void *)&msg, sizeof(msg), vpu, IPI_MDP); msg 114 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c struct mdp_ipi_init msg; msg 119 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c msg.msg_id = AP_MDP_INIT; msg 120 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c msg.ipi_id = IPI_MDP; msg 121 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c msg.ap_inst = (unsigned long)vpu; msg 122 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c err = mtk_mdp_vpu_send_msg((void *)&msg, sizeof(msg), vpu, IPI_MDP); msg 12 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c static void handle_init_ack_msg(struct vdec_vpu_ipi_init_ack *msg) msg 15 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c (unsigned long)msg->ap_inst_addr; msg 17 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c mtk_vcodec_debug(vpu, "+ ap_inst_addr = 0x%llx", msg->ap_inst_addr); msg 21 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c vpu->vsi = vpu_mapping_dm_addr(vpu->dev, msg->vpu_inst_addr); msg 22 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c vpu->inst_addr = msg->vpu_inst_addr; msg 33 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c struct vdec_vpu_ipi_ack *msg = data; msg 35 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c (unsigned long)msg->ap_inst_addr; msg 37 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c mtk_vcodec_debug(vpu, "+ id=%X", msg->msg_id); msg 39 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c if (msg->status == 0) { msg 40 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c switch (msg->msg_id) { msg 52 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c mtk_vcodec_err(vpu, "invalid msg=%X", msg->msg_id); msg 57 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c mtk_vcodec_debug(vpu, "- id=%X", msg->msg_id); msg 58 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c vpu->failure = msg->status; msg 62 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c static int vcodec_vpu_send_msg(struct vdec_vpu_inst *vpu, void *msg, int len) msg 66 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c mtk_vcodec_debug(vpu, "id=%X", *(uint32_t *)msg); msg 71 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c err = vpu_ipi_send(vpu->dev, vpu->id, msg, len); msg 74 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c vpu->id, *(uint32_t *)msg, err); msg 83 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c struct vdec_ap_ipi_cmd msg; msg 88 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c memset(&msg, 0, sizeof(msg)); msg 89 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c msg.msg_id = msg_id; msg 90 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c msg.vpu_inst_addr = vpu->inst_addr; msg 92 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c err = vcodec_vpu_send_msg(vpu, &msg, sizeof(msg)); msg 99 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c struct vdec_ap_ipi_init msg; msg 112 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c memset(&msg, 0, sizeof(msg)); msg 113 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c msg.msg_id = AP_IPIMSG_DEC_INIT; msg 114 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c msg.ap_inst_addr = (unsigned long)vpu; msg 118 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c err = vcodec_vpu_send_msg(vpu, (void *)&msg, sizeof(msg)); msg 125 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c struct vdec_ap_ipi_dec_start msg; msg 131 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c if (len > ARRAY_SIZE(msg.data)) { msg 136 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c memset(&msg, 0, sizeof(msg)); msg 137 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c msg.msg_id = AP_IPIMSG_DEC_START; msg 138 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c msg.vpu_inst_addr = vpu->inst_addr; msg 141 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c msg.data[i] = data[i]; msg 143 drivers/media/platform/mtk-vcodec/vdec_vpu_if.c err = vcodec_vpu_send_msg(vpu, (void *)&msg, sizeof(msg)); msg 13 drivers/media/platform/mtk-vcodec/venc_vpu_if.c struct venc_vpu_ipi_msg_init *msg = data; msg 15 drivers/media/platform/mtk-vcodec/venc_vpu_if.c vpu->inst_addr = msg->vpu_inst_addr; msg 16 drivers/media/platform/mtk-vcodec/venc_vpu_if.c vpu->vsi = vpu_mapping_dm_addr(vpu->dev, msg->vpu_inst_addr); msg 21 drivers/media/platform/mtk-vcodec/venc_vpu_if.c struct venc_vpu_ipi_msg_enc *msg = data; msg 23 drivers/media/platform/mtk-vcodec/venc_vpu_if.c vpu->state = msg->state; msg 24 drivers/media/platform/mtk-vcodec/venc_vpu_if.c vpu->bs_size = msg->bs_size; msg 25 drivers/media/platform/mtk-vcodec/venc_vpu_if.c vpu->is_key_frm = msg->is_key_frm; msg 30 drivers/media/platform/mtk-vcodec/venc_vpu_if.c struct venc_vpu_ipi_msg_common *msg = data; msg 32 drivers/media/platform/mtk-vcodec/venc_vpu_if.c (struct venc_vpu_inst *)(unsigned long)msg->venc_inst; msg 35 drivers/media/platform/mtk-vcodec/venc_vpu_if.c msg->msg_id, vpu, msg->status); msg 37 drivers/media/platform/mtk-vcodec/venc_vpu_if.c switch (msg->msg_id) { msg 49 drivers/media/platform/mtk-vcodec/venc_vpu_if.c mtk_vcodec_err(vpu, "unknown msg id %x", msg->msg_id); msg 54 drivers/media/platform/mtk-vcodec/venc_vpu_if.c vpu->failure = (msg->status != VENC_IPI_MSG_STATUS_OK); msg 59 drivers/media/platform/mtk-vcodec/venc_vpu_if.c static int vpu_enc_send_msg(struct venc_vpu_inst *vpu, void *msg, msg 71 drivers/media/platform/mtk-vcodec/venc_vpu_if.c status = vpu_ipi_send(vpu->dev, vpu->id, msg, len); msg 74 drivers/media/platform/mtk-vcodec/venc_vpu_if.c *(uint32_t *)msg, len, status); msg 69 drivers/media/platform/s5p-cec/s5p_cec.c u32 signal_free_time, struct cec_msg *msg) msg 77 drivers/media/platform/s5p-cec/s5p_cec.c s5p_cec_copy_packet(cec, msg->msg, msg->len, max(1, attempts - 1)); msg 114 drivers/media/platform/s5p-cec/s5p_cec.c cec->msg.len = status >> 24; msg 115 drivers/media/platform/s5p-cec/s5p_cec.c cec->msg.rx_status = CEC_RX_STATUS_OK; msg 116 drivers/media/platform/s5p-cec/s5p_cec.c s5p_cec_get_rx_buf(cec, cec->msg.len, msg 117 drivers/media/platform/s5p-cec/s5p_cec.c cec->msg.msg); msg 158 drivers/media/platform/s5p-cec/s5p_cec.c cec_received_msg(cec->adap, &cec->msg); msg 73 drivers/media/platform/s5p-cec/s5p_cec.h struct cec_msg msg; msg 184 drivers/media/platform/seco-cec/seco-cec.c u32 signal_free_time, struct cec_msg *msg) msg 192 drivers/media/platform/seco-cec/seco-cec.c payload_id_len = msg->len - 1; msg 201 drivers/media/platform/seco-cec/seco-cec.c status = smb_wr16(SECOCEC_WRITE_OPERATION_ID, msg->msg[1]); msg 208 drivers/media/platform/seco-cec/seco-cec.c payload_len = msg->len - 2; msg 209 drivers/media/platform/seco-cec/seco-cec.c payload_msg = &msg->msg[2]; msg 225 drivers/media/platform/seco-cec/seco-cec.c destination = msg->msg[0]; msg 258 drivers/media/platform/seco-cec/seco-cec.c struct cec_msg msg = { }; msg 283 drivers/media/platform/seco-cec/seco-cec.c msg.len = min(val + 1, CEC_MAX_MSG_SIZE); msg 291 drivers/media/platform/seco-cec/seco-cec.c msg.msg[0] = val; msg 298 drivers/media/platform/seco-cec/seco-cec.c msg.msg[1] = val; msg 301 drivers/media/platform/seco-cec/seco-cec.c if (msg.len > 1) { msg 302 drivers/media/platform/seco-cec/seco-cec.c payload_len = msg.len - 2; msg 303 drivers/media/platform/seco-cec/seco-cec.c payload_msg = &msg.msg[2]; msg 319 drivers/media/platform/seco-cec/seco-cec.c cec_received_msg(cec->cec_adap, &msg); msg 204 drivers/media/platform/sti/cec/stih-cec.c u32 signal_free_time, struct cec_msg *msg) msg 210 drivers/media/platform/sti/cec/stih-cec.c for (i = 0; i < msg->len; i++) msg 211 drivers/media/platform/sti/cec/stih-cec.c writeb(msg->msg[i], cec->regs + CEC_TX_DATA_BASE + i); msg 218 drivers/media/platform/sti/cec/stih-cec.c msg->len, cec->regs + CEC_TX_ARRAY_CTRL); msg 245 drivers/media/platform/sti/cec/stih-cec.c struct cec_msg msg = {}; msg 254 drivers/media/platform/sti/cec/stih-cec.c msg.len = readl(cec->regs + CEC_DATA_ARRAY_STATUS) & 0x1f; msg 256 drivers/media/platform/sti/cec/stih-cec.c if (!msg.len) msg 259 drivers/media/platform/sti/cec/stih-cec.c if (msg.len > 16) msg 260 drivers/media/platform/sti/cec/stih-cec.c msg.len = 16; msg 262 drivers/media/platform/sti/cec/stih-cec.c for (i = 0; i < msg.len; i++) msg 263 drivers/media/platform/sti/cec/stih-cec.c msg.msg[i] = readl(cec->regs + CEC_RX_DATA_BASE + i); msg 265 drivers/media/platform/sti/cec/stih-cec.c cec_received_msg(cec->adap, &msg); msg 38 drivers/media/platform/sti/delta/delta-ipc.c #define msg_to_ctx(msg) ((struct delta_ipc_ctx *)(msg)->header.host_hdl) msg 39 drivers/media/platform/sti/delta/delta-ipc.c #define msg_to_copro_hdl(msg) ((msg)->header.copro_hdl) msg 117 drivers/media/platform/sti/delta/delta-ipc.c struct delta_ipc_open_msg msg; msg 173 drivers/media/platform/sti/delta/delta-ipc.c build_msg_header(ctx, DELTA_IPC_OPEN, &msg.header); msg 175 drivers/media/platform/sti/delta/delta-ipc.c msg.ipc_buf_size = ipc_buf_size; msg 176 drivers/media/platform/sti/delta/delta-ipc.c msg.ipc_buf_paddr = ctx->ipc_buf->paddr; msg 178 drivers/media/platform/sti/delta/delta-ipc.c memcpy(msg.name, name, sizeof(msg.name)); msg 179 drivers/media/platform/sti/delta/delta-ipc.c msg.name[sizeof(msg.name) - 1] = 0; msg 181 drivers/media/platform/sti/delta/delta-ipc.c msg.param_size = param->size; msg 182 drivers/media/platform/sti/delta/delta-ipc.c memcpy(ctx->ipc_buf->vaddr, param->data, msg.param_size); msg 183 drivers/media/platform/sti/delta/delta-ipc.c msg.param_paddr = ctx->ipc_buf->paddr; msg 186 drivers/media/platform/sti/delta/delta-ipc.c ret = rpmsg_send(rpmsg_device->ept, &msg, sizeof(msg)); msg 235 drivers/media/platform/sti/delta/delta-ipc.c struct delta_ipc_set_stream_msg msg; msg 279 drivers/media/platform/sti/delta/delta-ipc.c build_msg_header(ctx, DELTA_IPC_SET_STREAM, &msg.header); msg 281 drivers/media/platform/sti/delta/delta-ipc.c msg.param_size = param->size; msg 282 drivers/media/platform/sti/delta/delta-ipc.c msg.param_paddr = to_paddr(ctx, param->data); msg 285 drivers/media/platform/sti/delta/delta-ipc.c ret = rpmsg_send(rpmsg_device->ept, &msg, sizeof(msg)); msg 326 drivers/media/platform/sti/delta/delta-ipc.c struct delta_ipc_decode_msg msg; msg 390 drivers/media/platform/sti/delta/delta-ipc.c build_msg_header(ctx, DELTA_IPC_DECODE, &msg.header); msg 392 drivers/media/platform/sti/delta/delta-ipc.c msg.param_size = param->size; msg 393 drivers/media/platform/sti/delta/delta-ipc.c msg.param_paddr = to_paddr(ctx, param->data); msg 395 drivers/media/platform/sti/delta/delta-ipc.c msg.status_size = status->size; msg 396 drivers/media/platform/sti/delta/delta-ipc.c msg.status_paddr = to_paddr(ctx, status->data); msg 399 drivers/media/platform/sti/delta/delta-ipc.c ret = rpmsg_send(rpmsg_device->ept, &msg, sizeof(msg)); msg 439 drivers/media/platform/sti/delta/delta-ipc.c struct delta_ipc_close_msg msg; msg 462 drivers/media/platform/sti/delta/delta-ipc.c build_msg_header(ctx, DELTA_IPC_CLOSE, &msg.header); msg 465 drivers/media/platform/sti/delta/delta-ipc.c ret = rpmsg_send(rpmsg_device->ept, &msg, sizeof(msg)); msg 497 drivers/media/platform/sti/delta/delta-ipc.c struct delta_ipc_cb_msg *msg; msg 511 drivers/media/platform/sti/delta/delta-ipc.c if (len != sizeof(*msg)) { msg 514 drivers/media/platform/sti/delta/delta-ipc.c len, src, sizeof(*msg)); msg 518 drivers/media/platform/sti/delta/delta-ipc.c msg = (struct delta_ipc_cb_msg *)data; msg 519 drivers/media/platform/sti/delta/delta-ipc.c if (msg->header.tag != IPC_SANITY_TAG) { msg 522 drivers/media/platform/sti/delta/delta-ipc.c src, msg->header.tag, IPC_SANITY_TAG); msg 526 drivers/media/platform/sti/delta/delta-ipc.c ctx = msg_to_ctx(msg); msg 539 drivers/media/platform/sti/delta/delta-ipc.c ctx->copro_hdl = msg_to_copro_hdl(msg); msg 545 drivers/media/platform/sti/delta/delta-ipc.c ctx->cb_err = msg->err; msg 527 drivers/media/platform/sti/hva/hva-h264.c u8 msg = 0; msg 554 drivers/media/platform/sti/hva/hva-h264.c msg = info.field_views_flag << offset--; msg 557 drivers/media/platform/sti/hva/hva-h264.c msg |= info.top_field_is_left_view_flag << msg 560 drivers/media/platform/sti/hva/hva-h264.c msg |= info.current_frame_is_left_view_flag << msg 562 drivers/media/platform/sti/hva/hva-h264.c msg |= info.next_frame_is_second_view_flag << msg 565 drivers/media/platform/sti/hva/hva-h264.c msg |= info.left_view_self_contained_flag << offset--; msg 566 drivers/media/platform/sti/hva/hva-h264.c msg |= info.right_view_self_contained_flag << offset--; msg 568 drivers/media/platform/sti/hva/hva-h264.c addr[*size] = msg; msg 114 drivers/media/platform/stm32/stm32-cec.c cec->tx_msg.msg[cec->tx_cnt++]); msg 136 drivers/media/platform/stm32/stm32-cec.c cec->rx_msg.msg[cec->rx_msg.len++] = val & 0xFF; msg 216 drivers/media/platform/stm32/stm32-cec.c u32 signal_free_time, struct cec_msg *msg) msg 221 drivers/media/platform/stm32/stm32-cec.c cec->tx_msg = *msg; msg 235 drivers/media/platform/stm32/stm32-cec.c regmap_write(cec->regmap, CEC_TXDR, cec->tx_msg.msg[0]); msg 82 drivers/media/platform/tegra-cec/tegra_cec.c struct cec_msg msg = {}; msg 84 drivers/media/platform/tegra-cec/tegra_cec.c msg.len = cec->rx_buf_cnt; msg 85 drivers/media/platform/tegra-cec/tegra_cec.c memcpy(msg.msg, cec->rx_buf, msg.len); msg 86 drivers/media/platform/tegra-cec/tegra_cec.c cec_received_msg(cec->adap, &msg); msg 279 drivers/media/platform/tegra-cec/tegra_cec.c u32 signal_free_time_ms, struct cec_msg *msg) msg 287 drivers/media/platform/tegra-cec/tegra_cec.c if (cec_msg_is_broadcast(msg)) msg 291 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_buf_cnt = msg->len; msg 293 drivers/media/platform/tegra-cec/tegra_cec.c for (i = 0; i < msg->len; i++) { msg 294 drivers/media/platform/tegra-cec/tegra_cec.c cec->tx_buf[i] = mode | msg->msg[i]; msg 297 drivers/media/platform/tegra-cec/tegra_cec.c if (i == msg->len - 1) msg 65 drivers/media/platform/vivid/vivid-cec.c const struct cec_msg *msg, bool nacked) msg 67 drivers/media/platform/vivid/vivid-cec.c unsigned int len = nacked ? 1 : msg->len; msg 90 drivers/media/platform/vivid/vivid-cec.c bit = msg->msg[i / 10] & (0x80 >> (i % 10)); msg 93 drivers/media/platform/vivid/vivid-cec.c bit = i / 10 == msg->len - 1; msg 96 drivers/media/platform/vivid/vivid-cec.c bit = cec_msg_is_broadcast(msg) ^ nacked; msg 113 drivers/media/platform/vivid/vivid-cec.c const struct cec_msg *msg, bool nacked) msg 118 drivers/media/platform/vivid/vivid-cec.c vivid_cec_pin_adap_events(dev->cec_rx_adap, ts, msg, nacked); msg 120 drivers/media/platform/vivid/vivid-cec.c vivid_cec_pin_adap_events(dev->cec_tx_adap[i], ts, msg, nacked); msg 129 drivers/media/platform/vivid/vivid-cec.c u8 dest = cec_msg_destination(&cw->msg); msg 133 drivers/media/platform/vivid/vivid-cec.c valid_dest = cec_msg_is_broadcast(&cw->msg); msg 143 drivers/media/platform/vivid/vivid-cec.c vivid_cec_pin_events(dev, &cw->msg, !valid_dest); msg 148 drivers/media/platform/vivid/vivid-cec.c cec_received_msg(dev->cec_rx_adap, &cw->msg); msg 151 drivers/media/platform/vivid/vivid-cec.c cec_received_msg(dev->cec_tx_adap[i], &cw->msg); msg 194 drivers/media/platform/vivid/vivid-cec.c u32 signal_free_time, struct cec_msg *msg) msg 205 drivers/media/platform/vivid/vivid-cec.c msg->len * USECS_PER_BYTE; msg 206 drivers/media/platform/vivid/vivid-cec.c cw->msg = *msg; msg 225 drivers/media/platform/vivid/vivid-cec.c static int vivid_received(struct cec_adapter *adap, struct cec_msg *msg) msg 229 drivers/media/platform/vivid/vivid-cec.c u8 dest = cec_msg_destination(msg); msg 233 drivers/media/platform/vivid/vivid-cec.c if (cec_msg_is_broadcast(msg)) msg 235 drivers/media/platform/vivid/vivid-cec.c cec_msg_init(&reply, dest, cec_msg_initiator(msg)); msg 237 drivers/media/platform/vivid/vivid-cec.c switch (cec_msg_opcode(msg)) { msg 241 drivers/media/platform/vivid/vivid-cec.c cec_ops_set_osd_string(msg, &disp_ctl, osd); msg 256 drivers/media/platform/vivid/vivid-cec.c cec_msg_feature_abort(&reply, cec_msg_opcode(msg), msg 121 drivers/media/platform/vivid/vivid-core.h struct cec_msg msg; msg 99 drivers/media/radio/radio-wl1273.c struct i2c_msg msg; msg 102 drivers/media/radio/radio-wl1273.c msg.addr = client->addr; msg 103 drivers/media/radio/radio-wl1273.c msg.flags = 0; msg 106 drivers/media/radio/radio-wl1273.c msg.len = fw[0]; msg 107 drivers/media/radio/radio-wl1273.c msg.buf = fw + 1; msg 109 drivers/media/radio/radio-wl1273.c fw += msg.len + 1; msg 110 drivers/media/radio/radio-wl1273.c dev_dbg(&client->dev, "%s:len[%d]: %d\n", __func__, i, msg.len); msg 112 drivers/media/radio/radio-wl1273.c r = i2c_transfer(client->adapter, &msg, 1); msg 138 drivers/media/radio/radio-wl1273.c struct i2c_msg msg[] = { msg 168 drivers/media/radio/radio-wl1273.c r = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg)); msg 169 drivers/media/radio/radio-wl1273.c if (r != ARRAY_SIZE(msg)) { msg 191 drivers/media/radio/saa7706h.c struct i2c_msg msg[] = { msg 205 drivers/media/radio/saa7706h.c err = saa7706h_i2c_transfer(client, msg, ARRAY_SIZE(msg)); msg 41 drivers/media/rc/ir-sharp-decoder.c u32 msg, echo, address, command, scancode; msg 141 drivers/media/rc/ir-sharp-decoder.c msg = (data->bits >> 15) & 0x7fff; msg 143 drivers/media/rc/ir-sharp-decoder.c if ((msg ^ echo) != 0x3ff) { msg 146 drivers/media/rc/ir-sharp-decoder.c msg, echo); msg 150 drivers/media/rc/ir-sharp-decoder.c address = bitrev8((msg >> 7) & 0xf8); msg 151 drivers/media/rc/ir-sharp-decoder.c command = bitrev8((msg >> 2) & 0xff); msg 64 drivers/media/spi/cxd2880-spi.c struct spi_message msg; msg 75 drivers/media/spi/cxd2880-spi.c spi_message_init(&msg); msg 76 drivers/media/spi/cxd2880-spi.c spi_message_add_tail(&tx, &msg); msg 78 drivers/media/spi/cxd2880-spi.c return spi_sync(spi, &msg); msg 145 drivers/media/spi/gs1662.c struct spi_message msg; msg 158 drivers/media/spi/gs1662.c spi_message_init(&msg); msg 159 drivers/media/spi/gs1662.c spi_message_add_tail(&tx[0], &msg); msg 160 drivers/media/spi/gs1662.c spi_message_add_tail(&tx[1], &msg); msg 161 drivers/media/spi/gs1662.c ret = spi_sync(spi, &msg); msg 173 drivers/media/spi/gs1662.c struct spi_message msg; msg 186 drivers/media/spi/gs1662.c spi_message_init(&msg); msg 187 drivers/media/spi/gs1662.c spi_message_add_tail(&tx[0], &msg); msg 188 drivers/media/spi/gs1662.c spi_message_add_tail(&tx[1], &msg); msg 189 drivers/media/spi/gs1662.c ret = spi_sync(spi, &msg); msg 70 drivers/media/tuners/fc0011.c struct i2c_msg msg = { .addr = priv->addr, msg 73 drivers/media/tuners/fc0011.c if (i2c_transfer(priv->i2c, &msg, 1) != 1) { msg 86 drivers/media/tuners/fc0011.c struct i2c_msg msg[2] = { msg 93 drivers/media/tuners/fc0011.c if (i2c_transfer(priv->i2c, msg, 2) != 2) { msg 14 drivers/media/tuners/fc0012.c struct i2c_msg msg = { msg 18 drivers/media/tuners/fc0012.c if (i2c_transfer(priv->i2c, &msg, 1) != 1) { msg 29 drivers/media/tuners/fc0012.c struct i2c_msg msg[2] = { msg 36 drivers/media/tuners/fc0012.c if (i2c_transfer(priv->i2c, msg, 2) != 2) { msg 16 drivers/media/tuners/fc0013.c struct i2c_msg msg = { msg 20 drivers/media/tuners/fc0013.c if (i2c_transfer(priv->i2c, &msg, 1) != 1) { msg 29 drivers/media/tuners/fc0013.c struct i2c_msg msg[2] = { msg 34 drivers/media/tuners/fc0013.c if (i2c_transfer(priv->i2c, msg, 2) != 2) { msg 36 drivers/media/tuners/max2165.c struct i2c_msg msg = { .flags = 0, .buf = buf, .len = 2 }; msg 38 drivers/media/tuners/max2165.c msg.addr = priv->config->i2c_address; msg 43 drivers/media/tuners/max2165.c ret = i2c_transfer(priv->i2c, &msg, 1); msg 59 drivers/media/tuners/max2165.c struct i2c_msg msg[] = { msg 64 drivers/media/tuners/max2165.c ret = i2c_transfer(priv->i2c, msg, 2); msg 26 drivers/media/tuners/mc44s803.c struct i2c_msg msg = { msg 34 drivers/media/tuners/mc44s803.c if (i2c_transfer(priv->i2c, &msg, 1) != 1) { msg 47 drivers/media/tuners/mc44s803.c struct i2c_msg msg[] = { msg 59 drivers/media/tuners/mc44s803.c if (i2c_transfer(priv->i2c, msg, 1) != 1) { msg 30 drivers/media/tuners/mt2060.c struct i2c_msg msg[2] = { msg 44 drivers/media/tuners/mt2060.c msg[0].buf = b; msg 45 drivers/media/tuners/mt2060.c msg[1].buf = b + 1; msg 47 drivers/media/tuners/mt2060.c if (i2c_transfer(priv->i2c, msg, 2) != 2) { msg 60 drivers/media/tuners/mt2060.c struct i2c_msg msg = { msg 73 drivers/media/tuners/mt2060.c msg.buf = buf; msg 75 drivers/media/tuners/mt2060.c if (i2c_transfer(priv->i2c, &msg, 1) != 1) { msg 89 drivers/media/tuners/mt2060.c struct i2c_msg msg = { msg 97 drivers/media/tuners/mt2060.c msg.buf = xfer_buf; msg 101 drivers/media/tuners/mt2060.c msg.len = 1 + val_len; msg 105 drivers/media/tuners/mt2060.c if (i2c_transfer(priv->i2c, &msg, 1) != 1) { msg 244 drivers/media/tuners/mt2063.c struct i2c_msg msg = { msg 253 drivers/media/tuners/mt2063.c msg.buf[0] = reg; msg 254 drivers/media/tuners/mt2063.c memcpy(msg.buf + 1, data, len); msg 258 drivers/media/tuners/mt2063.c ret = i2c_transfer(state->i2c, &msg, 1); msg 306 drivers/media/tuners/mt2063.c struct i2c_msg msg[] = { msg 320 drivers/media/tuners/mt2063.c status = i2c_transfer(state->i2c, msg, 2); msg 41 drivers/media/tuners/mt2131.c struct i2c_msg msg[2] = { msg 48 drivers/media/tuners/mt2131.c if (i2c_transfer(priv->i2c, msg, 2) != 2) { msg 58 drivers/media/tuners/mt2131.c struct i2c_msg msg = { .addr = priv->cfg->i2c_address, .flags = 0, msg 61 drivers/media/tuners/mt2131.c if (i2c_transfer(priv->i2c, &msg, 1) != 1) { msg 70 drivers/media/tuners/mt2131.c struct i2c_msg msg = { .addr = priv->cfg->i2c_address, msg 73 drivers/media/tuners/mt2131.c if (i2c_transfer(priv->i2c, &msg, 1) != 1) { msg 50 drivers/media/tuners/mt2266.c struct i2c_msg msg[2] = { msg 54 drivers/media/tuners/mt2266.c if (i2c_transfer(priv->i2c, msg, 2) != 2) { msg 65 drivers/media/tuners/mt2266.c struct i2c_msg msg = { msg 68 drivers/media/tuners/mt2266.c if (i2c_transfer(priv->i2c, &msg, 1) != 1) { msg 78 drivers/media/tuners/mt2266.c struct i2c_msg msg = { msg 81 drivers/media/tuners/mt2266.c if (i2c_transfer(priv->i2c, &msg, 1) != 1) { msg 3853 drivers/media/tuners/mxl5005s.c struct i2c_msg msg = { .addr = state->config->i2c_address, .flags = 0, msg 3861 drivers/media/tuners/mxl5005s.c if (i2c_transfer(state->i2c, &msg, 1) != 1) { msg 3879 drivers/media/tuners/mxl5005s.c struct i2c_msg msg = { .addr = state->config->i2c_address, .flags = 0, msg 3883 drivers/media/tuners/mxl5005s.c msg.len = 2; msg 3885 drivers/media/tuners/mxl5005s.c dprintk(2, "%s(0x%x, 0x%x, 0x%x)\n", __func__, reg, val, msg.addr); msg 3887 drivers/media/tuners/mxl5005s.c if (i2c_transfer(state->i2c, &msg, 1) != 1) { msg 451 drivers/media/tuners/mxl5007t.c struct i2c_msg msg = { .addr = state->i2c_props.addr, .flags = 0, msg 455 drivers/media/tuners/mxl5007t.c ret = i2c_transfer(state->i2c_props.adap, &msg, 1); msg 480 drivers/media/tuners/mxl5007t.c struct i2c_msg msg[] = { msg 488 drivers/media/tuners/mxl5007t.c ret = i2c_transfer(state->i2c_props.adap, msg, 2); msg 499 drivers/media/tuners/mxl5007t.c struct i2c_msg msg = { msg 503 drivers/media/tuners/mxl5007t.c int ret = i2c_transfer(state->i2c_props.adap, &msg, 1); msg 14 drivers/media/tuners/qt1010.c struct i2c_msg msg[2] = { msg 21 drivers/media/tuners/qt1010.c if (i2c_transfer(priv->i2c, msg, 2) != 2) { msg 33 drivers/media/tuners/qt1010.c struct i2c_msg msg = { .addr = priv->cfg->i2c_address, msg 36 drivers/media/tuners/qt1010.c if (i2c_transfer(priv->i2c, &msg, 1) != 1) { msg 18 drivers/media/tuners/tda18218.c struct i2c_msg msg[1] = { msg 39 drivers/media/tuners/tda18218.c msg[0].len = 1 + len2; msg 43 drivers/media/tuners/tda18218.c ret = i2c_transfer(priv->i2c, msg, 1); msg 64 drivers/media/tuners/tda18218.c struct i2c_msg msg[2] = { msg 85 drivers/media/tuners/tda18218.c ret = i2c_transfer(priv->i2c, msg, 2); msg 115 drivers/media/tuners/tda18271-common.c struct i2c_msg msg[] = { msg 125 drivers/media/tuners/tda18271-common.c ret = i2c_transfer(priv->i2c_props.adap, msg, 2); msg 145 drivers/media/tuners/tda18271-common.c struct i2c_msg msg[] = { msg 155 drivers/media/tuners/tda18271-common.c ret = i2c_transfer(priv->i2c_props.adap, msg, 2); msg 184 drivers/media/tuners/tda18271-common.c struct i2c_msg msg = { .addr = priv->i2c_props.addr, .flags = 0, msg 226 drivers/media/tuners/tda18271-common.c msg.len = max + 1; msg 229 drivers/media/tuners/tda18271-common.c ret = __i2c_transfer(priv->i2c_props.adap, &msg, 1); msg 124 drivers/media/tuners/tda827x.c struct i2c_msg *msg, msg 132 drivers/media/tuners/tda827x.c rc = i2c_transfer(priv->i2c_adap, msg, size); msg 149 drivers/media/tuners/tda827x.c struct i2c_msg msg = { .addr = priv->i2c_addr, .flags = 0, msg 193 drivers/media/tuners/tda827x.c msg.len = 14; msg 194 drivers/media/tuners/tda827x.c rc = tuner_transfer(fe, &msg, 1); msg 202 drivers/media/tuners/tda827x.c msg.len = 2; msg 204 drivers/media/tuners/tda827x.c rc = tuner_transfer(fe, &msg, 1); msg 223 drivers/media/tuners/tda827x.c struct i2c_msg msg = { .addr = priv->i2c_addr, .flags = 0, msg 227 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 245 drivers/media/tuners/tda827x.c struct i2c_msg msg = { .addr = priv->i2c_addr, .flags = 0 }; msg 275 drivers/media/tuners/tda827x.c msg.buf = tuner_reg; msg 276 drivers/media/tuners/tda827x.c msg.len = 8; msg 277 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 279 drivers/media/tuners/tda827x.c msg.buf = reg2; msg 280 drivers/media/tuners/tda827x.c msg.len = 2; msg 283 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 287 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 291 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 296 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 301 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 306 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 310 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 314 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 325 drivers/media/tuners/tda827x.c struct i2c_msg msg = { .addr = priv->i2c_addr, .flags = 0, msg 328 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 435 drivers/media/tuners/tda827x.c struct i2c_msg msg = { .addr = priv->i2c_addr, .flags = 0, msg 440 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 455 drivers/media/tuners/tda827x.c struct i2c_msg msg = { .flags = 0, .buf = buf, .len = sizeof(buf) }; msg 461 drivers/media/tuners/tda827x.c msg.addr = priv->cfg->switch_addr; msg 491 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 508 drivers/media/tuners/tda827x.c struct i2c_msg msg = { .addr = priv->i2c_addr, .flags = 0, msg 562 drivers/media/tuners/tda827x.c msg.len = 11; msg 563 drivers/media/tuners/tda827x.c rc = tuner_transfer(fe, &msg, 1); msg 572 drivers/media/tuners/tda827x.c msg.len = 5; msg 573 drivers/media/tuners/tda827x.c rc = tuner_transfer(fe, &msg, 1); msg 579 drivers/media/tuners/tda827x.c msg.len = 2; msg 580 drivers/media/tuners/tda827x.c rc = tuner_transfer(fe, &msg, 1); msg 585 drivers/media/tuners/tda827x.c msg.flags = I2C_M_RD; msg 586 drivers/media/tuners/tda827x.c rc = tuner_transfer(fe, &msg, 1); msg 589 drivers/media/tuners/tda827x.c msg.flags = 0; msg 597 drivers/media/tuners/tda827x.c rc = tuner_transfer(fe, &msg, 1); msg 604 drivers/media/tuners/tda827x.c rc = tuner_transfer(fe, &msg, 1); msg 610 drivers/media/tuners/tda827x.c rc = tuner_transfer(fe, &msg, 1); msg 617 drivers/media/tuners/tda827x.c rc = tuner_transfer(fe, &msg, 1); msg 624 drivers/media/tuners/tda827x.c rc = tuner_transfer(fe, &msg, 1); msg 632 drivers/media/tuners/tda827x.c rc = tuner_transfer(fe, &msg, 1); msg 655 drivers/media/tuners/tda827x.c struct i2c_msg msg = { .addr = priv->i2c_addr, .flags = 0, msg 691 drivers/media/tuners/tda827x.c msg.len = 11; msg 692 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 699 drivers/media/tuners/tda827x.c msg.len = 5; msg 700 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 704 drivers/media/tuners/tda827x.c msg.len = 2; msg 705 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 709 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 711 drivers/media/tuners/tda827x.c msg.flags = I2C_M_RD; msg 712 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 713 drivers/media/tuners/tda827x.c msg.flags = 0; msg 722 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 727 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 731 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 735 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 739 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 750 drivers/media/tuners/tda827x.c struct i2c_msg msg = {.addr = priv->i2c_addr, .flags = 0, msg 752 drivers/media/tuners/tda827x.c tuner_transfer(fe, &msg, 1); msg 844 drivers/media/tuners/tda827x.c struct i2c_msg msg = { .addr = priv->i2c_addr, .flags = I2C_M_RD, msg 847 drivers/media/tuners/tda827x.c rc = tuner_transfer(fe, &msg, 1); msg 851 drivers/media/tuners/tda827x.c __func__, msg.addr << 1); msg 56 drivers/media/tuners/tda8290.c unsigned char *msg; msg 59 drivers/media/tuners/tda8290.c msg = enable; msg 60 drivers/media/tuners/tda8290.c tuner_i2c_xfer_send(&priv->i2c_props, msg, 2); msg 64 drivers/media/tuners/tda8290.c msg = disable; msg 65 drivers/media/tuners/tda8290.c tuner_i2c_xfer_send(&priv->i2c_props, msg, 2); msg 78 drivers/media/tuners/tda8290.c unsigned char *msg; msg 81 drivers/media/tuners/tda8290.c msg = enable; msg 82 drivers/media/tuners/tda8290.c tuner_i2c_xfer_send(&priv->i2c_props, msg, 2); msg 86 drivers/media/tuners/tda8290.c msg = disable; msg 87 drivers/media/tuners/tda8290.c tuner_i2c_xfer_send_recv(&priv->i2c_props, msg, 1, &msg[1], 1); msg 89 drivers/media/tuners/tda8290.c buf[2] = msg[1]; msg 94 drivers/media/tuners/tda8290.c msg[1] |= 0x04; msg 95 drivers/media/tuners/tda8290.c tuner_i2c_xfer_send(&priv->i2c_props, msg, 2); msg 462 drivers/media/tuners/tda8290.c struct i2c_msg msg = {.addr = priv->tda827x_addr, .flags=0, .buf=cb1, .len = 2}; msg 468 drivers/media/tuners/tda8290.c i2c_transfer(priv->i2c_props.adap, &msg, 1); msg 536 drivers/media/tuners/tda8290.c struct i2c_msg msg = {.addr = priv->tda827x_addr, .flags=0, msg 539 drivers/media/tuners/tda8290.c msg.buf = tda8275a_init; msg 543 drivers/media/tuners/tda8290.c i2c_transfer(priv->i2c_props.adap, &msg, 1); msg 574 drivers/media/tuners/tda8290.c struct i2c_msg msg = { .flags = I2C_M_RD, .buf = &data, .len = 1 }; msg 583 drivers/media/tuners/tda8290.c msg.addr = i; msg 584 drivers/media/tuners/tda8290.c ret = i2c_transfer(priv->i2c_props.adap, &msg, 1); msg 600 drivers/media/tuners/tda8290.c msg.addr = tuner_addrs & 0xff; msg 601 drivers/media/tuners/tda8290.c ret = i2c_transfer(priv->i2c_props.adap, &msg, 1); msg 617 drivers/media/tuners/tda8290.c msg.addr = tuner_addrs; msg 621 drivers/media/tuners/tda8290.c ret = i2c_transfer(priv->i2c_props.adap, &msg, 1); msg 27 drivers/media/tuners/tuner-i2c.h struct i2c_msg msg = { .addr = props->addr, .flags = 0, msg 29 drivers/media/tuners/tuner-i2c.h int ret = i2c_transfer(props->adap, &msg, 1); msg 37 drivers/media/tuners/tuner-i2c.h struct i2c_msg msg = { .addr = props->addr, .flags = I2C_M_RD, msg 39 drivers/media/tuners/tuner-i2c.h int ret = i2c_transfer(props->adap, &msg, 1); msg 48 drivers/media/tuners/tuner-i2c.h struct i2c_msg msg[2] = { { .addr = props->addr, .flags = 0, msg 52 drivers/media/tuners/tuner-i2c.h int ret = i2c_transfer(props->adap, msg, 2); msg 1067 drivers/media/tuners/tuner-simple.c struct i2c_msg msg = { msg 1075 drivers/media/tuners/tuner-simple.c if (1 != i2c_transfer(i2c_adap, &msg, 1)) msg 243 drivers/media/tuners/xc4000.c struct i2c_msg msg = { .addr = priv->i2c_props.addr, msg 245 drivers/media/tuners/xc4000.c if (i2c_transfer(priv->i2c_props.adap, &msg, 1) != 1) { msg 535 drivers/media/tuners/xc4000.c struct i2c_msg msg[2] = { msg 542 drivers/media/tuners/xc4000.c if (i2c_transfer(priv->i2c_props.adap, msg, 2) != 2) { msg 246 drivers/media/tuners/xc5000.c struct i2c_msg msg = { .addr = priv->i2c_props.addr, msg 249 drivers/media/tuners/xc5000.c if (i2c_transfer(priv->i2c_props.adap, &msg, 1) != 1) { msg 262 drivers/media/tuners/xc5000.c struct i2c_msg msg = { .addr = priv->i2c_props.addr, msg 265 drivers/media/tuners/xc5000.c if (i2c_transfer(priv->i2c_props.adap, &msg, 1) != 1) { msg 277 drivers/media/tuners/xc5000.c struct i2c_msg msg[2] = { msg 284 drivers/media/tuners/xc5000.c if (i2c_transfer(priv->i2c_props.adap, msg, 2) != 2) { msg 127 drivers/media/usb/au0828/au0828-i2c.c const struct i2c_msg *msg, int joined_rlen) msg 139 drivers/media/usb/au0828/au0828-i2c.c (dev->board.tuner_addr == msg->addr)) { msg 145 drivers/media/usb/au0828/au0828-i2c.c if (msg->len == 64) msg 154 drivers/media/usb/au0828/au0828-i2c.c au0828_write(dev, AU0828_I2C_DEST_ADDR_203, msg->addr << 1); msg 156 drivers/media/usb/au0828/au0828-i2c.c dprintk(4, "SEND: %02x\n", msg->addr); msg 159 drivers/media/usb/au0828/au0828-i2c.c if (msg->len == 0) { msg 178 drivers/media/usb/au0828/au0828-i2c.c for (i = 0; i < msg->len;) { msg 180 drivers/media/usb/au0828/au0828-i2c.c dprintk(4, " %02x\n", msg->buf[i]); msg 182 drivers/media/usb/au0828/au0828-i2c.c au0828_write(dev, AU0828_I2C_WRITE_FIFO_205, msg->buf[i]); msg 187 drivers/media/usb/au0828/au0828-i2c.c if ((strobe >= 4) || (i >= msg->len)) { msg 190 drivers/media/usb/au0828/au0828-i2c.c if (i < msg->len) msg 212 drivers/media/usb/au0828/au0828-i2c.c return msg->len; msg 217 drivers/media/usb/au0828/au0828-i2c.c const struct i2c_msg *msg, int joined) msg 233 drivers/media/usb/au0828/au0828-i2c.c (dev->board.tuner_addr == msg->addr)) msg 240 drivers/media/usb/au0828/au0828-i2c.c au0828_write(dev, AU0828_I2C_DEST_ADDR_203, msg->addr << 1); msg 245 drivers/media/usb/au0828/au0828-i2c.c if (msg->len == 0) { msg 254 drivers/media/usb/au0828/au0828-i2c.c for (i = 0; i < msg->len;) { msg 258 drivers/media/usb/au0828/au0828-i2c.c if (i < msg->len) msg 269 drivers/media/usb/au0828/au0828-i2c.c msg->buf[i-1] = au0828_read(dev, AU0828_I2C_READ_FIFO_209) & msg 272 drivers/media/usb/au0828/au0828-i2c.c dprintk(4, " %02x\n", msg->buf[i-1]); msg 279 drivers/media/usb/au0828/au0828-i2c.c return msg->len; msg 47 drivers/media/usb/au0828/au0828-input.c struct i2c_msg msg = { .addr = ir->i2c_dev_addr, .flags = 0, msg 50 drivers/media/usb/au0828/au0828-input.c rc = i2c_transfer(ir->dev->i2c_client.adapter, &msg, 1); msg 63 drivers/media/usb/au0828/au0828-input.c struct i2c_msg msg[2] = { { .addr = ir->i2c_dev_addr, .flags = 0, msg 72 drivers/media/usb/au0828/au0828-input.c msg[0].len++; msg 75 drivers/media/usb/au0828/au0828-input.c rc = i2c_transfer(ir->dev->i2c_client.adapter, msg, 2); msg 53 drivers/media/usb/cx231xx/cx231xx-i2c.c const struct i2c_msg *msg, int tuner_type) msg 60 drivers/media/usb/cx231xx/cx231xx-i2c.c if (msg->addr != dev->board.tuner_addr) msg 73 drivers/media/usb/cx231xx/cx231xx-i2c.c const struct i2c_msg *msg) msg 86 drivers/media/usb/cx231xx/cx231xx-i2c.c if (is_tuner(dev, bus, msg, TUNER_XC5000)) { msg 87 drivers/media/usb/cx231xx/cx231xx-i2c.c size = msg->len; msg 94 drivers/media/usb/cx231xx/cx231xx-i2c.c if (msg->len >= 2) msg 95 drivers/media/usb/cx231xx/cx231xx-i2c.c saddr = msg->buf[0] << 8 | msg->buf[1]; msg 96 drivers/media/usb/cx231xx/cx231xx-i2c.c else if (msg->len == 1) msg 97 drivers/media/usb/cx231xx/cx231xx-i2c.c saddr = msg->buf[0]; msg 120 drivers/media/usb/cx231xx/cx231xx-i2c.c msg->addr, msg->len, saddr); msg 123 drivers/media/usb/cx231xx/cx231xx-i2c.c msg->addr, msg 124 drivers/media/usb/cx231xx/cx231xx-i2c.c msg->buf, msg 125 drivers/media/usb/cx231xx/cx231xx-i2c.c msg->len); msg 134 drivers/media/usb/cx231xx/cx231xx-i2c.c buf_ptr = (u8 *) (msg->buf + 1); msg 138 drivers/media/usb/cx231xx/cx231xx-i2c.c req_data.dev_addr = msg->addr; msg 139 drivers/media/usb/cx231xx/cx231xx-i2c.c req_data.direction = msg->flags; msg 141 drivers/media/usb/cx231xx/cx231xx-i2c.c req_data.saddr_dat = msg->buf[0]; msg 165 drivers/media/usb/cx231xx/cx231xx-i2c.c req_data.dev_addr = msg->addr; msg 166 drivers/media/usb/cx231xx/cx231xx-i2c.c req_data.direction = msg->flags; msg 169 drivers/media/usb/cx231xx/cx231xx-i2c.c req_data.buf_size = msg->len; msg 170 drivers/media/usb/cx231xx/cx231xx-i2c.c req_data.p_buffer = msg->buf; msg 184 drivers/media/usb/cx231xx/cx231xx-i2c.c const struct i2c_msg *msg) msg 193 drivers/media/usb/cx231xx/cx231xx-i2c.c if (is_tuner(dev, bus, msg, TUNER_XC5000)) { msg 194 drivers/media/usb/cx231xx/cx231xx-i2c.c if (msg->len == 2) msg 195 drivers/media/usb/cx231xx/cx231xx-i2c.c saddr = msg->buf[0] << 8 | msg->buf[1]; msg 196 drivers/media/usb/cx231xx/cx231xx-i2c.c else if (msg->len == 1) msg 197 drivers/media/usb/cx231xx/cx231xx-i2c.c saddr = msg->buf[0]; msg 206 drivers/media/usb/cx231xx/cx231xx-i2c.c msg->buf[0] = 0; msg 207 drivers/media/usb/cx231xx/cx231xx-i2c.c if (msg->len == 2) msg 208 drivers/media/usb/cx231xx/cx231xx-i2c.c msg->buf[1] = 0; msg 222 drivers/media/usb/cx231xx/cx231xx-i2c.c msg->addr, msg->len, msg 223 drivers/media/usb/cx231xx/cx231xx-i2c.c msg->buf[0] << 8 | msg->buf[1]); msg 226 drivers/media/usb/cx231xx/cx231xx-i2c.c dev->cx231xx_gpio_i2c_write(dev, msg->addr, msg 227 drivers/media/usb/cx231xx/cx231xx-i2c.c msg->buf, msg 228 drivers/media/usb/cx231xx/cx231xx-i2c.c msg->len); msg 230 drivers/media/usb/cx231xx/cx231xx-i2c.c dev->cx231xx_gpio_i2c_read(dev, msg->addr, msg 231 drivers/media/usb/cx231xx/cx231xx-i2c.c msg->buf, msg 232 drivers/media/usb/cx231xx/cx231xx-i2c.c msg->len); msg 238 drivers/media/usb/cx231xx/cx231xx-i2c.c req_data.dev_addr = msg->addr; msg 239 drivers/media/usb/cx231xx/cx231xx-i2c.c req_data.direction = msg->flags; msg 240 drivers/media/usb/cx231xx/cx231xx-i2c.c req_data.saddr_len = msg->len; msg 241 drivers/media/usb/cx231xx/cx231xx-i2c.c req_data.saddr_dat = msg->buf[0] << 8 | msg->buf[1]; msg 242 drivers/media/usb/cx231xx/cx231xx-i2c.c req_data.buf_size = msg->len; msg 243 drivers/media/usb/cx231xx/cx231xx-i2c.c req_data.p_buffer = msg->buf; msg 251 drivers/media/usb/cx231xx/cx231xx-i2c.c req_data.dev_addr = msg->addr; msg 252 drivers/media/usb/cx231xx/cx231xx-i2c.c req_data.direction = msg->flags; msg 255 drivers/media/usb/cx231xx/cx231xx-i2c.c req_data.buf_size = msg->len; msg 256 drivers/media/usb/cx231xx/cx231xx-i2c.c req_data.p_buffer = msg->buf; msg 334 drivers/media/usb/cx231xx/cx231xx-i2c.c const struct i2c_msg *msg) msg 343 drivers/media/usb/cx231xx/cx231xx-i2c.c req_data.dev_addr = msg->addr; msg 481 drivers/media/usb/cx231xx/cx231xx-i2c.c struct i2c_msg msg = { msg 495 drivers/media/usb/cx231xx/cx231xx-i2c.c msg.addr = i; msg 496 drivers/media/usb/cx231xx/cx231xx-i2c.c rc = i2c_transfer(adap, &msg, 1); msg 138 drivers/media/usb/dvb-usb-v2/af9015.c static int af9015_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], msg 173 drivers/media/usb/dvb-usb-v2/af9015.c if (msg[0].len == 0 || msg[0].flags & I2C_M_RD) { msg 177 drivers/media/usb/dvb-usb-v2/af9015.c } else if (msg[0].len == 1) { msg 178 drivers/media/usb/dvb-usb-v2/af9015.c addr = msg[0].buf[0]; msg 181 drivers/media/usb/dvb-usb-v2/af9015.c } else if (msg[0].len == 2) { msg 182 drivers/media/usb/dvb-usb-v2/af9015.c addr = msg[0].buf[0] << 8 | msg[0].buf[1] << 0; msg 186 drivers/media/usb/dvb-usb-v2/af9015.c addr = msg[0].buf[0] << 8 | msg[0].buf[1] << 0; msg 187 drivers/media/usb/dvb-usb-v2/af9015.c mbox = msg[0].buf[2]; msg 191 drivers/media/usb/dvb-usb-v2/af9015.c if (num == 1 && !(msg[0].flags & I2C_M_RD)) { msg 193 drivers/media/usb/dvb-usb-v2/af9015.c if (msg[0].len > 21) { msg 197 drivers/media/usb/dvb-usb-v2/af9015.c if (msg[0].addr == state->af9013_i2c_addr[0]) msg 201 drivers/media/usb/dvb-usb-v2/af9015.c req.i2c_addr = msg[0].addr; msg 205 drivers/media/usb/dvb-usb-v2/af9015.c req.data_len = msg[0].len - addr_len; msg 206 drivers/media/usb/dvb-usb-v2/af9015.c req.data = &msg[0].buf[addr_len]; msg 208 drivers/media/usb/dvb-usb-v2/af9015.c } else if (num == 2 && !(msg[0].flags & I2C_M_RD) && msg 209 drivers/media/usb/dvb-usb-v2/af9015.c (msg[1].flags & I2C_M_RD)) { msg 211 drivers/media/usb/dvb-usb-v2/af9015.c if (msg[0].len > 3 || msg[1].len > 61) { msg 215 drivers/media/usb/dvb-usb-v2/af9015.c if (msg[0].addr == state->af9013_i2c_addr[0]) msg 219 drivers/media/usb/dvb-usb-v2/af9015.c req.i2c_addr = msg[0].addr; msg 223 drivers/media/usb/dvb-usb-v2/af9015.c req.data_len = msg[1].len; msg 224 drivers/media/usb/dvb-usb-v2/af9015.c req.data = &msg[1].buf[0]; msg 226 drivers/media/usb/dvb-usb-v2/af9015.c } else if (num == 1 && (msg[0].flags & I2C_M_RD)) { msg 228 drivers/media/usb/dvb-usb-v2/af9015.c if (msg[0].len > 61) { msg 232 drivers/media/usb/dvb-usb-v2/af9015.c if (msg[0].addr == state->af9013_i2c_addr[0]) { msg 237 drivers/media/usb/dvb-usb-v2/af9015.c req.i2c_addr = msg[0].addr; msg 241 drivers/media/usb/dvb-usb-v2/af9015.c req.data_len = msg[0].len; msg 242 drivers/media/usb/dvb-usb-v2/af9015.c req.data = &msg[0].buf[0]; msg 267 drivers/media/usb/dvb-usb-v2/af9035.c struct i2c_msg msg[], int num) msg 318 drivers/media/usb/dvb-usb-v2/af9035.c if (AF9035_IS_I2C_XFER_WRITE_READ(msg, num)) { msg 319 drivers/media/usb/dvb-usb-v2/af9035.c if (msg[0].len > 40 || msg[1].len > 40) { msg 322 drivers/media/usb/dvb-usb-v2/af9035.c } else if ((msg[0].addr == state->af9033_i2c_addr[0]) || msg 323 drivers/media/usb/dvb-usb-v2/af9035.c (msg[0].addr == state->af9033_i2c_addr[1])) { msg 325 drivers/media/usb/dvb-usb-v2/af9035.c u32 reg = msg[0].buf[0] << 16 | msg[0].buf[1] << 8 | msg 326 drivers/media/usb/dvb-usb-v2/af9035.c msg[0].buf[2]; msg 328 drivers/media/usb/dvb-usb-v2/af9035.c if (msg[0].addr == state->af9033_i2c_addr[1]) msg 331 drivers/media/usb/dvb-usb-v2/af9035.c ret = af9035_rd_regs(d, reg, &msg[1].buf[0], msg 332 drivers/media/usb/dvb-usb-v2/af9035.c msg[1].len); msg 334 drivers/media/usb/dvb-usb-v2/af9035.c memset(msg[1].buf, 0, msg[1].len); msg 339 drivers/media/usb/dvb-usb-v2/af9035.c struct usb_req req = { CMD_I2C_RD, 0, 5 + msg[0].len, msg 340 drivers/media/usb/dvb-usb-v2/af9035.c buf, msg[1].len, msg[1].buf }; msg 344 drivers/media/usb/dvb-usb-v2/af9035.c req.wlen = 3 + msg[0].len; msg 346 drivers/media/usb/dvb-usb-v2/af9035.c req.mbox |= ((msg[0].addr & 0x80) >> 3); msg 348 drivers/media/usb/dvb-usb-v2/af9035.c buf[0] = msg[1].len; msg 351 drivers/media/usb/dvb-usb-v2/af9035.c buf[2] = msg[0].addr << 1; msg 352 drivers/media/usb/dvb-usb-v2/af9035.c memcpy(&buf[3], msg[0].buf, msg[0].len); msg 354 drivers/media/usb/dvb-usb-v2/af9035.c buf[1] = msg[0].addr << 1; msg 359 drivers/media/usb/dvb-usb-v2/af9035.c if (msg[0].len > 2) { msg 361 drivers/media/usb/dvb-usb-v2/af9035.c memcpy(&buf[5], msg[0].buf, msg[0].len); msg 366 drivers/media/usb/dvb-usb-v2/af9035.c buf[2] = msg[0].len; msg 367 drivers/media/usb/dvb-usb-v2/af9035.c if (msg[0].len == 2) { msg 368 drivers/media/usb/dvb-usb-v2/af9035.c buf[3] = msg[0].buf[0]; msg 369 drivers/media/usb/dvb-usb-v2/af9035.c buf[4] = msg[0].buf[1]; msg 370 drivers/media/usb/dvb-usb-v2/af9035.c } else if (msg[0].len == 1) { msg 371 drivers/media/usb/dvb-usb-v2/af9035.c buf[4] = msg[0].buf[0]; msg 377 drivers/media/usb/dvb-usb-v2/af9035.c } else if (AF9035_IS_I2C_XFER_WRITE(msg, num)) { msg 378 drivers/media/usb/dvb-usb-v2/af9035.c if (msg[0].len > 40) { msg 381 drivers/media/usb/dvb-usb-v2/af9035.c } else if ((msg[0].addr == state->af9033_i2c_addr[0]) || msg 382 drivers/media/usb/dvb-usb-v2/af9035.c (msg[0].addr == state->af9033_i2c_addr[1])) { msg 384 drivers/media/usb/dvb-usb-v2/af9035.c u32 reg = msg[0].buf[0] << 16 | msg[0].buf[1] << 8 | msg 385 drivers/media/usb/dvb-usb-v2/af9035.c msg[0].buf[2]; msg 387 drivers/media/usb/dvb-usb-v2/af9035.c if (msg[0].addr == state->af9033_i2c_addr[1]) msg 390 drivers/media/usb/dvb-usb-v2/af9035.c ret = (msg[0].len >= 3) ? af9035_wr_regs(d, reg, msg 391 drivers/media/usb/dvb-usb-v2/af9035.c &msg[0].buf[3], msg 392 drivers/media/usb/dvb-usb-v2/af9035.c msg[0].len - 3) msg 397 drivers/media/usb/dvb-usb-v2/af9035.c struct usb_req req = { CMD_I2C_WR, 0, 5 + msg[0].len, msg 402 drivers/media/usb/dvb-usb-v2/af9035.c req.wlen = 3 + msg[0].len; msg 405 drivers/media/usb/dvb-usb-v2/af9035.c req.mbox |= ((msg[0].addr & 0x80) >> 3); msg 406 drivers/media/usb/dvb-usb-v2/af9035.c buf[0] = msg[0].len; msg 409 drivers/media/usb/dvb-usb-v2/af9035.c buf[2] = msg[0].addr << 1; msg 410 drivers/media/usb/dvb-usb-v2/af9035.c memcpy(&buf[3], msg[0].buf, msg[0].len); msg 412 drivers/media/usb/dvb-usb-v2/af9035.c buf[1] = msg[0].addr << 1; msg 416 drivers/media/usb/dvb-usb-v2/af9035.c memcpy(&buf[5], msg[0].buf, msg[0].len); msg 420 drivers/media/usb/dvb-usb-v2/af9035.c } else if (AF9035_IS_I2C_XFER_READ(msg, num)) { msg 421 drivers/media/usb/dvb-usb-v2/af9035.c if (msg[0].len > 40) { msg 425 drivers/media/usb/dvb-usb-v2/af9035.c memset(msg[0].buf, 0, msg[0].len); msg 431 drivers/media/usb/dvb-usb-v2/af9035.c buf, msg[0].len, msg[0].buf }; msg 437 drivers/media/usb/dvb-usb-v2/af9035.c req.mbox |= ((msg[0].addr & 0x80) >> 3); msg 438 drivers/media/usb/dvb-usb-v2/af9035.c buf[0] = msg[0].len; msg 441 drivers/media/usb/dvb-usb-v2/af9035.c buf[2] = msg[0].addr << 1; msg 443 drivers/media/usb/dvb-usb-v2/af9035.c buf[1] = msg[0].addr << 1; msg 1347 drivers/media/usb/dvb-usb-v2/af9035.c struct i2c_msg msg[1]; msg 1512 drivers/media/usb/dvb-usb-v2/af9035.c msg[0].addr = 0x63; msg 1513 drivers/media/usb/dvb-usb-v2/af9035.c msg[0].flags = 0; msg 1514 drivers/media/usb/dvb-usb-v2/af9035.c msg[0].len = 2; msg 1515 drivers/media/usb/dvb-usb-v2/af9035.c msg[0].buf = "\x0d\x02"; msg 1516 drivers/media/usb/dvb-usb-v2/af9035.c ret = i2c_transfer(&d->i2c_adap, msg, 1); msg 193 drivers/media/usb/dvb-usb-v2/anysee.c static int anysee_master_xfer(struct i2c_adapter *adap, struct i2c_msg *msg, msg 204 drivers/media/usb/dvb-usb-v2/anysee.c if (num > i + 1 && (msg[i+1].flags & I2C_M_RD)) { msg 205 drivers/media/usb/dvb-usb-v2/anysee.c if (msg[i].len > 2 || msg[i+1].len > 60) { msg 210 drivers/media/usb/dvb-usb-v2/anysee.c buf[1] = (msg[i].addr << 1) | 0x01; msg 211 drivers/media/usb/dvb-usb-v2/anysee.c buf[2] = msg[i].buf[0]; msg 212 drivers/media/usb/dvb-usb-v2/anysee.c buf[3] = msg[i].buf[1]; msg 213 drivers/media/usb/dvb-usb-v2/anysee.c buf[4] = msg[i].len-1; msg 214 drivers/media/usb/dvb-usb-v2/anysee.c buf[5] = msg[i+1].len; msg 215 drivers/media/usb/dvb-usb-v2/anysee.c ret = anysee_ctrl_msg(d, buf, 6, msg[i+1].buf, msg 216 drivers/media/usb/dvb-usb-v2/anysee.c msg[i+1].len); msg 219 drivers/media/usb/dvb-usb-v2/anysee.c if (msg[i].len > 48) { msg 224 drivers/media/usb/dvb-usb-v2/anysee.c buf[1] = (msg[i].addr << 1); msg 225 drivers/media/usb/dvb-usb-v2/anysee.c buf[2] = msg[i].len; msg 227 drivers/media/usb/dvb-usb-v2/anysee.c memcpy(&buf[4], msg[i].buf, msg[i].len); msg 228 drivers/media/usb/dvb-usb-v2/anysee.c ret = anysee_ctrl_msg(d, buf, 4 + msg[i].len, NULL, 0); msg 712 drivers/media/usb/dvb-usb-v2/anysee.c struct i2c_msg msg[2] = { msg 796 drivers/media/usb/dvb-usb-v2/anysee.c ret = i2c_transfer(&d->i2c_adap, msg, 2); msg 83 drivers/media/usb/dvb-usb-v2/au6610.c static int au6610_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], msg 97 drivers/media/usb/dvb-usb-v2/au6610.c if (i+1 < num && (msg[i+1].flags & I2C_M_RD)) { msg 98 drivers/media/usb/dvb-usb-v2/au6610.c if (au6610_i2c_msg(d, msg[i].addr, msg[i].buf, msg 99 drivers/media/usb/dvb-usb-v2/au6610.c msg[i].len, msg[i+1].buf, msg 100 drivers/media/usb/dvb-usb-v2/au6610.c msg[i+1].len) < 0) msg 103 drivers/media/usb/dvb-usb-v2/au6610.c } else if (au6610_i2c_msg(d, msg[i].addr, msg[i].buf, msg 104 drivers/media/usb/dvb-usb-v2/au6610.c msg[i].len, NULL, 0) < 0) msg 943 drivers/media/usb/dvb-usb-v2/az6007.c static int az6007_suspend(struct usb_interface *intf, pm_message_t msg) msg 948 drivers/media/usb/dvb-usb-v2/az6007.c return dvb_usbv2_suspend(intf, msg); msg 86 drivers/media/usb/dvb-usb-v2/ce6230.c struct i2c_msg msg[], int num) msg 101 drivers/media/usb/dvb-usb-v2/ce6230.c if (num > i + 1 && (msg[i+1].flags & I2C_M_RD)) { msg 102 drivers/media/usb/dvb-usb-v2/ce6230.c if (msg[i].addr == msg 105 drivers/media/usb/dvb-usb-v2/ce6230.c req.value = msg[i].addr >> 1; msg 106 drivers/media/usb/dvb-usb-v2/ce6230.c req.index = msg[i].buf[0]; msg 107 drivers/media/usb/dvb-usb-v2/ce6230.c req.data_len = msg[i+1].len; msg 108 drivers/media/usb/dvb-usb-v2/ce6230.c req.data = &msg[i+1].buf[0]; msg 118 drivers/media/usb/dvb-usb-v2/ce6230.c if (msg[i].addr == msg 121 drivers/media/usb/dvb-usb-v2/ce6230.c req.value = msg[i].addr >> 1; msg 122 drivers/media/usb/dvb-usb-v2/ce6230.c req.index = msg[i].buf[0]; msg 123 drivers/media/usb/dvb-usb-v2/ce6230.c req.data_len = msg[i].len-1; msg 124 drivers/media/usb/dvb-usb-v2/ce6230.c req.data = &msg[i].buf[1]; msg 128 drivers/media/usb/dvb-usb-v2/ce6230.c req.value = 0x2000 + (msg[i].addr >> 1); msg 130 drivers/media/usb/dvb-usb-v2/ce6230.c req.data_len = msg[i].len; msg 131 drivers/media/usb/dvb-usb-v2/ce6230.c req.data = &msg[i].buf[0]; msg 1031 drivers/media/usb/dvb-usb-v2/dvb_usb_core.c int dvb_usbv2_suspend(struct usb_interface *intf, pm_message_t msg) msg 98 drivers/media/usb/dvb-usb-v2/dvbsky.c static int dvbsky_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], msg 116 drivers/media/usb/dvb-usb-v2/dvbsky.c if (msg[0].len > 60) { msg 119 drivers/media/usb/dvb-usb-v2/dvbsky.c msg[0].len); msg 123 drivers/media/usb/dvb-usb-v2/dvbsky.c if (msg[0].flags & I2C_M_RD) { msg 127 drivers/media/usb/dvb-usb-v2/dvbsky.c obuf[2] = msg[0].len; msg 128 drivers/media/usb/dvb-usb-v2/dvbsky.c obuf[3] = msg[0].addr; msg 130 drivers/media/usb/dvb-usb-v2/dvbsky.c ibuf, msg[0].len + 1); msg 132 drivers/media/usb/dvb-usb-v2/dvbsky.c memcpy(msg[0].buf, &ibuf[1], msg[0].len); msg 136 drivers/media/usb/dvb-usb-v2/dvbsky.c obuf[1] = msg[0].addr; msg 137 drivers/media/usb/dvb-usb-v2/dvbsky.c obuf[2] = msg[0].len; msg 138 drivers/media/usb/dvb-usb-v2/dvbsky.c memcpy(&obuf[3], msg[0].buf, msg[0].len); msg 140 drivers/media/usb/dvb-usb-v2/dvbsky.c msg[0].len + 3, ibuf, 1); msg 143 drivers/media/usb/dvb-usb-v2/dvbsky.c if ((msg[0].len > 60) || (msg[1].len > 60)) { msg 146 drivers/media/usb/dvb-usb-v2/dvbsky.c msg[0].len, msg[1].len); msg 152 drivers/media/usb/dvb-usb-v2/dvbsky.c obuf[1] = msg[0].len; msg 153 drivers/media/usb/dvb-usb-v2/dvbsky.c obuf[2] = msg[1].len; msg 154 drivers/media/usb/dvb-usb-v2/dvbsky.c obuf[3] = msg[0].addr; msg 155 drivers/media/usb/dvb-usb-v2/dvbsky.c memcpy(&obuf[4], msg[0].buf, msg[0].len); msg 157 drivers/media/usb/dvb-usb-v2/dvbsky.c msg[0].len + 4, ibuf, msg[1].len + 1); msg 159 drivers/media/usb/dvb-usb-v2/dvbsky.c memcpy(msg[1].buf, &ibuf[1], msg[1].len); msg 236 drivers/media/usb/dvb-usb-v2/dvbsky.c struct i2c_msg msg[] = { msg 250 drivers/media/usb/dvb-usb-v2/dvbsky.c if (i2c_transfer(&d->i2c_adap, msg, 2) == 2) msg 101 drivers/media/usb/dvb-usb-v2/ec168.c static int ec168_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], msg 116 drivers/media/usb/dvb-usb-v2/ec168.c if (num > i + 1 && (msg[i+1].flags & I2C_M_RD)) { msg 117 drivers/media/usb/dvb-usb-v2/ec168.c if (msg[i].addr == ec168_ec100_config.demod_address) { msg 120 drivers/media/usb/dvb-usb-v2/ec168.c req.index = 0xff00 + msg[i].buf[0]; /* reg */ msg 121 drivers/media/usb/dvb-usb-v2/ec168.c req.size = msg[i+1].len; /* bytes to read */ msg 122 drivers/media/usb/dvb-usb-v2/ec168.c req.data = &msg[i+1].buf[0]; msg 133 drivers/media/usb/dvb-usb-v2/ec168.c if (msg[i].addr == ec168_ec100_config.demod_address) { msg 135 drivers/media/usb/dvb-usb-v2/ec168.c req.value = msg[i].buf[1]; /* val */ msg 136 drivers/media/usb/dvb-usb-v2/ec168.c req.index = 0xff00 + msg[i].buf[0]; /* reg */ msg 143 drivers/media/usb/dvb-usb-v2/ec168.c req.value = msg[i].buf[0]; /* val */ msg 144 drivers/media/usb/dvb-usb-v2/ec168.c req.index = 0x0100 + msg[i].addr; /* I2C addr */ msg 145 drivers/media/usb/dvb-usb-v2/ec168.c req.size = msg[i].len-1; msg 146 drivers/media/usb/dvb-usb-v2/ec168.c req.data = &msg[i].buf[1]; msg 67 drivers/media/usb/dvb-usb-v2/gl861.c static int gl861_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], msg 81 drivers/media/usb/dvb-usb-v2/gl861.c if (i+1 < num && (msg[i+1].flags & I2C_M_RD)) { msg 82 drivers/media/usb/dvb-usb-v2/gl861.c if (gl861_i2c_msg(d, msg[i].addr, msg[i].buf, msg 83 drivers/media/usb/dvb-usb-v2/gl861.c msg[i].len, msg[i+1].buf, msg[i+1].len) < 0) msg 87 drivers/media/usb/dvb-usb-v2/gl861.c if (gl861_i2c_msg(d, msg[i].addr, msg[i].buf, msg 88 drivers/media/usb/dvb-usb-v2/gl861.c msg[i].len, NULL, 0) < 0) msg 243 drivers/media/usb/dvb-usb-v2/gl861.c friio_i2c_tuner_read(struct dvb_usb_device *d, struct i2c_msg *msg) msg 250 drivers/media/usb/dvb-usb-v2/gl861.c return gl861_i2c_read_ex(d, addr, msg->buf, msg->len); msg 254 drivers/media/usb/dvb-usb-v2/gl861.c friio_i2c_tuner_write(struct dvb_usb_device *d, struct i2c_msg *msg) msg 262 drivers/media/usb/dvb-usb-v2/gl861.c if (msg->len < 1) msg 265 drivers/media/usb/dvb-usb-v2/gl861.c buf = kmalloc(msg->len + 1, GFP_KERNEL); msg 268 drivers/media/usb/dvb-usb-v2/gl861.c buf[0] = msg->addr << 1; msg 269 drivers/media/usb/dvb-usb-v2/gl861.c memcpy(buf + 1, msg->buf, msg->len); msg 274 drivers/media/usb/dvb-usb-v2/gl861.c 0xFE, buf, msg->len + 1, 2000); msg 279 drivers/media/usb/dvb-usb-v2/gl861.c static int friio_tuner_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], msg 294 drivers/media/usb/dvb-usb-v2/gl861.c if (msg[i].flags & I2C_M_RD) msg 295 drivers/media/usb/dvb-usb-v2/gl861.c ret = friio_i2c_tuner_read(d, &msg[i]); msg 297 drivers/media/usb/dvb-usb-v2/gl861.c ret = friio_i2c_tuner_write(d, &msg[i]); msg 329 drivers/media/usb/dvb-usb-v2/gl861.c struct i2c_msg msg; msg 338 drivers/media/usb/dvb-usb-v2/gl861.c msg.addr = 0x00; msg 339 drivers/media/usb/dvb-usb-v2/gl861.c msg.flags = 0; msg 340 drivers/media/usb/dvb-usb-v2/gl861.c msg.len = 2; msg 341 drivers/media/usb/dvb-usb-v2/gl861.c msg.buf = buf; msg 346 drivers/media/usb/dvb-usb-v2/gl861.c ret = i2c_transfer(&d->i2c_adap, &msg, 1); msg 348 drivers/media/usb/dvb-usb-v2/gl861.c ret += i2c_transfer(&d->i2c_adap, &msg, 1); msg 351 drivers/media/usb/dvb-usb-v2/gl861.c ret += i2c_transfer(&d->i2c_adap, &msg, 1); msg 353 drivers/media/usb/dvb-usb-v2/gl861.c ret += i2c_transfer(&d->i2c_adap, &msg, 1); msg 361 drivers/media/usb/dvb-usb-v2/gl861.c ret += i2c_transfer(&d->i2c_adap, &msg, 1); msg 363 drivers/media/usb/dvb-usb-v2/gl861.c ret += i2c_transfer(&d->i2c_adap, &msg, 1); msg 369 drivers/media/usb/dvb-usb-v2/gl861.c ret += i2c_transfer(&d->i2c_adap, &msg, 1); msg 371 drivers/media/usb/dvb-usb-v2/gl861.c ret += i2c_transfer(&d->i2c_adap, &msg, 1); msg 481 drivers/media/usb/dvb-usb-v2/lmedm04.c static int lme2510_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], msg 497 drivers/media/usb/dvb-usb-v2/lmedm04.c read_o = msg[i].flags & I2C_M_RD; msg 498 drivers/media/usb/dvb-usb-v2/lmedm04.c read = i + 1 < num && msg[i + 1].flags & I2C_M_RD; msg 500 drivers/media/usb/dvb-usb-v2/lmedm04.c gate = (msg[i].addr == st->i2c_tuner_addr) msg 507 drivers/media/usb/dvb-usb-v2/lmedm04.c obuf[1] = (read) ? 2 : msg[i].len + 1; msg 509 drivers/media/usb/dvb-usb-v2/lmedm04.c obuf[1] = msg[i].len + read + 1; msg 511 drivers/media/usb/dvb-usb-v2/lmedm04.c obuf[2] = msg[i].addr << 1; msg 517 drivers/media/usb/dvb-usb-v2/lmedm04.c memcpy(&obuf[3], msg[i].buf, msg[i].len); msg 518 drivers/media/usb/dvb-usb-v2/lmedm04.c obuf[msg[i].len+3] = msg[i+1].len; msg 519 drivers/media/usb/dvb-usb-v2/lmedm04.c len = msg[i].len+4; msg 522 drivers/media/usb/dvb-usb-v2/lmedm04.c memcpy(&obuf[3], msg[i].buf, msg[i].len); msg 523 drivers/media/usb/dvb-usb-v2/lmedm04.c len = msg[i].len+3; msg 534 drivers/media/usb/dvb-usb-v2/lmedm04.c memcpy(msg[i].buf, &ibuf[1], msg[i].len); msg 536 drivers/media/usb/dvb-usb-v2/lmedm04.c memcpy(msg[i+1].buf, &ibuf[1], msg[i+1].len); msg 574 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c struct i2c_msg msg[] = { msg 584 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c i2c_transfer(&state->d->i2c_adap, msg, 2); msg 587 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c msg[0].len = 2; msg 600 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c i2c_transfer(&state->d->i2c_adap, &msg[0], 1); msg 609 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c struct i2c_msg msg = { msg 616 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c i2c_transfer(&state->d->i2c_adap, &msg, 1); msg 622 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c i2c_transfer(&state->d->i2c_adap, &msg, 1); msg 648 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c struct i2c_msg msg[] = { msg 655 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c msg[0].addr = 0x70 >> 1; msg 656 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c msg[1].addr = 0x70 >> 1; msg 659 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c ret = i2c_transfer(&state->d->i2c_adap, msg, 2); msg 661 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c state->port_expander_addr = msg[0].addr; msg 668 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c msg[0].addr = 0x40 >> 1; msg 669 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c msg[1].addr = 0x40 >> 1; msg 671 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c ret = i2c_transfer(&state->d->i2c_adap, msg, 2); msg 673 drivers/media/usb/dvb-usb-v2/mxl111sf-gpio.c state->port_expander_addr = msg[0].addr; msg 226 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c struct i2c_msg *msg) msg 232 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c if (msg->flags & I2C_M_RD) { msg 239 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c (msg->addr << 1) | 0x01); msg 245 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c for (i = 0; i < msg->len; i++) { msg 247 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c &msg->buf[i]); msg 253 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c if (i < msg->len - 1) msg 270 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c (msg->addr << 1) & 0xfe); msg 276 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c for (i = 0; i < msg->len; i++) { msg 278 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c msg->buf[i]); msg 428 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c struct i2c_msg *msg) msg 441 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c msg->addr, (msg->flags & I2C_M_RD) ? msg->len : 0, msg 442 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c (!(msg->flags & I2C_M_RD)) ? msg->len : 0); msg 478 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c if (!(msg->flags & I2C_M_RD) && (msg->len > 0)) { msg 479 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c mxl_i2c("%d\t%02x", msg->len, msg->buf[0]); msg 488 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c buf[6] = (msg->addr); msg 496 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c msg->addr); msg 508 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c block_len = (msg->len / 8); msg 509 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c left_over_len = (msg->len % 8); msg 518 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c buf[3+(i*3)] = msg->buf[(index*8)+i]; msg 527 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c msg->addr); msg 548 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c buf[3+(i*3)] = msg->buf[(index*8)+i]; msg 550 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c index, i, msg->buf[(index*8)+i]); msg 558 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c msg->addr); msg 578 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c if ((msg->flags & I2C_M_RD) && (msg->len > 0)) { msg 579 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c mxl_i2c("read buf len %d", msg->len); msg 589 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c buf[6] = (msg->len & 0xFF); msg 594 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c buf[9] = msg->addr; msg 602 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c msg->addr); msg 615 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c block_len = ((msg->len) / 8); msg 616 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c left_over_len = ((msg->len) % 8); msg 639 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c msg->addr); msg 657 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c msg->buf[(index*8)+i] = msg 669 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c msg->buf[(index*8)+(k+i+1)] = msg 672 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c msg->buf[(index*8)+(k+i)], msg 675 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c msg->buf[(index*8)+(k+i+1)], msg 684 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c msg->buf[(index*8)+i] = msg 688 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c msg->buf[(index*8)+i] = msg 715 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c msg->addr); msg 726 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c msg->buf[(block_len*8)+i] = msg 800 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c struct i2c_msg msg[], int num) msg 812 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c mxl111sf_i2c_hw_xfer_msg(state, &msg[i]) : msg 813 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c mxl111sf_i2c_sw_xfer_msg(state, &msg[i]); msg 817 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c (msg[i].flags & I2C_M_RD) ? msg 819 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.c msg[i].len, msg[i].addr); msg 14 drivers/media/usb/dvb-usb-v2/mxl111sf-i2c.h struct i2c_msg msg[], int num); msg 928 drivers/media/usb/dvb-usb-v2/mxl111sf.c struct i2c_msg msg[2] = { msg 945 drivers/media/usb/dvb-usb-v2/mxl111sf.c ret = i2c_transfer(&d->i2c_adap, msg, 2); msg 130 drivers/media/usb/dvb-usb-v2/rtl28xxu.c static int rtl28xxu_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], msg 163 drivers/media/usb/dvb-usb-v2/rtl28xxu.c if (num == 2 && !(msg[0].flags & I2C_M_RD) && msg 164 drivers/media/usb/dvb-usb-v2/rtl28xxu.c (msg[1].flags & I2C_M_RD)) { msg 165 drivers/media/usb/dvb-usb-v2/rtl28xxu.c if (msg[0].len > 24 || msg[1].len > 24) { msg 169 drivers/media/usb/dvb-usb-v2/rtl28xxu.c } else if (msg[0].addr == 0x10) { msg 171 drivers/media/usb/dvb-usb-v2/rtl28xxu.c if (msg[0].buf[0] == 0x00) { msg 173 drivers/media/usb/dvb-usb-v2/rtl28xxu.c msg[1].buf[0] = dev->page; msg 176 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.value = (msg[0].buf[0] << 8) | (msg[0].addr << 1); msg 178 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.size = msg[1].len; msg 179 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.data = &msg[1].buf[0]; msg 182 drivers/media/usb/dvb-usb-v2/rtl28xxu.c } else if (msg[0].len < 2) { msg 184 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.value = (msg[0].buf[0] << 8) | (msg[0].addr << 1); msg 186 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.size = msg[1].len; msg 187 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.data = &msg[1].buf[0]; msg 191 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.value = (msg[0].addr << 1); msg 193 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.size = msg[0].len; msg 194 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.data = msg[0].buf; msg 199 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.value = (msg[0].addr << 1); msg 201 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.size = msg[1].len; msg 202 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.data = msg[1].buf; msg 205 drivers/media/usb/dvb-usb-v2/rtl28xxu.c } else if (num == 1 && !(msg[0].flags & I2C_M_RD)) { msg 206 drivers/media/usb/dvb-usb-v2/rtl28xxu.c if (msg[0].len > 22) { msg 210 drivers/media/usb/dvb-usb-v2/rtl28xxu.c } else if (msg[0].addr == 0x10) { msg 212 drivers/media/usb/dvb-usb-v2/rtl28xxu.c if (msg[0].buf[0] == 0x00) { msg 214 drivers/media/usb/dvb-usb-v2/rtl28xxu.c dev->page = msg[0].buf[1]; msg 217 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.value = (msg[0].buf[0] << 8) | msg 218 drivers/media/usb/dvb-usb-v2/rtl28xxu.c (msg[0].addr << 1); msg 220 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.size = msg[0].len-1; msg 221 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.data = &msg[0].buf[1]; msg 224 drivers/media/usb/dvb-usb-v2/rtl28xxu.c } else if ((msg[0].len < 23) && (!dev->new_i2c_write)) { msg 226 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.value = (msg[0].buf[0] << 8) | (msg[0].addr << 1); msg 228 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.size = msg[0].len-1; msg 229 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.data = &msg[0].buf[1]; msg 233 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.value = (msg[0].addr << 1); msg 235 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.size = msg[0].len; msg 236 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.data = msg[0].buf; msg 239 drivers/media/usb/dvb-usb-v2/rtl28xxu.c } else if (num == 1 && (msg[0].flags & I2C_M_RD)) { msg 240 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.value = (msg[0].addr << 1); msg 242 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.size = msg[0].len; msg 243 drivers/media/usb/dvb-usb-v2/rtl28xxu.c req.data = msg[0].buf; msg 400 drivers/media/usb/dvb-usb/af9005.c static int af9005_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], msg 418 drivers/media/usb/dvb-usb/af9005.c reg = *msg[0].buf; msg 419 drivers/media/usb/dvb-usb/af9005.c addr = msg[0].addr; msg 420 drivers/media/usb/dvb-usb/af9005.c value = msg[1].buf; msg 426 drivers/media/usb/dvb-usb/af9005.c reg = msg[0].buf[0]; msg 427 drivers/media/usb/dvb-usb/af9005.c addr = msg[0].addr; msg 428 drivers/media/usb/dvb-usb/af9005.c value = &msg[0].buf[1]; msg 429 drivers/media/usb/dvb-usb/af9005.c ret = af9005_i2c_write(d, addr, reg, value, msg[0].len - 1); msg 950 drivers/media/usb/dvb-usb/az6027.c static int az6027_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], int num) msg 974 drivers/media/usb/dvb-usb/az6027.c if (msg[i].addr == 0x99) { msg 977 drivers/media/usb/dvb-usb/az6027.c value = msg[i].buf[0] & 0x00ff; msg 982 drivers/media/usb/dvb-usb/az6027.c if (msg[i].addr == 0xd0) { msg 984 drivers/media/usb/dvb-usb/az6027.c if (i + 1 < num && (msg[i + 1].flags & I2C_M_RD)) { msg 986 drivers/media/usb/dvb-usb/az6027.c index = (((msg[i].buf[0] << 8) & 0xff00) | (msg[i].buf[1] & 0x00ff)); msg 987 drivers/media/usb/dvb-usb/az6027.c value = msg[i].addr + (msg[i].len << 8); msg 988 drivers/media/usb/dvb-usb/az6027.c length = msg[i + 1].len + 6; msg 990 drivers/media/usb/dvb-usb/az6027.c len = msg[i + 1].len; msg 992 drivers/media/usb/dvb-usb/az6027.c msg[i + 1].buf[j] = data[j + 5]; msg 999 drivers/media/usb/dvb-usb/az6027.c index = (((msg[i].buf[0] << 8) & 0xff00) | (msg[i].buf[1] & 0x00ff)); msg 1000 drivers/media/usb/dvb-usb/az6027.c value = msg[i].addr + (2 << 8); msg 1001 drivers/media/usb/dvb-usb/az6027.c length = msg[i].len - 2; msg 1002 drivers/media/usb/dvb-usb/az6027.c len = msg[i].len - 2; msg 1004 drivers/media/usb/dvb-usb/az6027.c data[j] = msg[i].buf[j + 2]; msg 1009 drivers/media/usb/dvb-usb/az6027.c if (msg[i].addr == 0xc0) { msg 1010 drivers/media/usb/dvb-usb/az6027.c if (msg[i].flags & I2C_M_RD) { msg 1014 drivers/media/usb/dvb-usb/az6027.c value = msg[i].addr; msg 1015 drivers/media/usb/dvb-usb/az6027.c length = msg[i].len + 6; msg 1017 drivers/media/usb/dvb-usb/az6027.c len = msg[i].len; msg 1019 drivers/media/usb/dvb-usb/az6027.c msg[i].buf[j] = data[j + 5]; msg 1024 drivers/media/usb/dvb-usb/az6027.c index = msg[i].buf[0] & 0x00FF; msg 1025 drivers/media/usb/dvb-usb/az6027.c value = msg[i].addr + (1 << 8); msg 1026 drivers/media/usb/dvb-usb/az6027.c length = msg[i].len - 1; msg 1027 drivers/media/usb/dvb-usb/az6027.c len = msg[i].len - 1; msg 1030 drivers/media/usb/dvb-usb/az6027.c data[j] = msg[i].buf[j + 1]; msg 182 drivers/media/usb/dvb-usb/cxusb.c static int cxusb_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], msg 194 drivers/media/usb/dvb-usb/cxusb.c switch (msg[i].addr) { msg 203 drivers/media/usb/dvb-usb/cxusb.c if (msg[i].flags & I2C_M_RD) { msg 207 drivers/media/usb/dvb-usb/cxusb.c if (1 + msg[i].len > sizeof(ibuf)) { msg 209 drivers/media/usb/dvb-usb/cxusb.c msg[i].len); msg 214 drivers/media/usb/dvb-usb/cxusb.c obuf[1] = msg[i].len; msg 215 drivers/media/usb/dvb-usb/cxusb.c obuf[2] = msg[i].addr; msg 218 drivers/media/usb/dvb-usb/cxusb.c ibuf, 1 + msg[i].len) < 0) { msg 222 drivers/media/usb/dvb-usb/cxusb.c memcpy(msg[i].buf, &ibuf[1], msg[i].len); msg 223 drivers/media/usb/dvb-usb/cxusb.c } else if (i + 1 < num && (msg[i + 1].flags & I2C_M_RD) && msg 224 drivers/media/usb/dvb-usb/cxusb.c msg[i].addr == msg[i + 1].addr) { msg 228 drivers/media/usb/dvb-usb/cxusb.c if (3 + msg[i].len > sizeof(obuf)) { msg 230 drivers/media/usb/dvb-usb/cxusb.c msg[i].len); msg 234 drivers/media/usb/dvb-usb/cxusb.c if (1 + msg[i + 1].len > sizeof(ibuf)) { msg 236 drivers/media/usb/dvb-usb/cxusb.c msg[i + 1].len); msg 240 drivers/media/usb/dvb-usb/cxusb.c obuf[0] = msg[i].len; msg 241 drivers/media/usb/dvb-usb/cxusb.c obuf[1] = msg[i + 1].len; msg 242 drivers/media/usb/dvb-usb/cxusb.c obuf[2] = msg[i].addr; msg 243 drivers/media/usb/dvb-usb/cxusb.c memcpy(&obuf[3], msg[i].buf, msg[i].len); msg 246 drivers/media/usb/dvb-usb/cxusb.c obuf, 3 + msg[i].len, msg 247 drivers/media/usb/dvb-usb/cxusb.c ibuf, 1 + msg[i + 1].len) < 0) msg 253 drivers/media/usb/dvb-usb/cxusb.c memcpy(msg[i + 1].buf, &ibuf[1], msg[i + 1].len); msg 260 drivers/media/usb/dvb-usb/cxusb.c if (2 + msg[i].len > sizeof(obuf)) { msg 262 drivers/media/usb/dvb-usb/cxusb.c msg[i].len); msg 266 drivers/media/usb/dvb-usb/cxusb.c obuf[0] = msg[i].addr; msg 267 drivers/media/usb/dvb-usb/cxusb.c obuf[1] = msg[i].len; msg 268 drivers/media/usb/dvb-usb/cxusb.c memcpy(&obuf[2], msg[i].buf, msg[i].len); msg 271 drivers/media/usb/dvb-usb/cxusb.c 2 + msg[i].len, &ibuf, 1) < 0) msg 536 drivers/media/usb/dvb-usb/cxusb.c struct i2c_msg msg = { msg 543 drivers/media/usb/dvb-usb/cxusb.c if (cxusb_i2c_xfer(&d->i2c_adap, &msg, 1) != 1) msg 995 drivers/media/usb/dvb-usb/cxusb.c struct i2c_msg msg = { msg 1022 drivers/media/usb/dvb-usb/cxusb.c if (cxusb_i2c_xfer(&adap->dev->i2c_adap, &msg, 1) != 1) msg 158 drivers/media/usb/dvb-usb/dib0700_core.c static int dib0700_i2c_xfer_new(struct i2c_adapter *adap, struct i2c_msg *msg, msg 181 drivers/media/usb/dvb-usb/dib0700_core.c } else if (!(msg[i].flags & I2C_M_NOSTART)) { msg 194 drivers/media/usb/dvb-usb/dib0700_core.c if (msg[i].flags & I2C_M_RD) { msg 199 drivers/media/usb/dvb-usb/dib0700_core.c i2c_dest = (msg[i].addr << 1); msg 201 drivers/media/usb/dvb-usb/dib0700_core.c (msg[i].len & 0x3F)) << 8 | i2c_dest; msg 211 drivers/media/usb/dvb-usb/dib0700_core.c msg[i].len, msg 218 drivers/media/usb/dvb-usb/dib0700_core.c if (msg[i].len > sizeof(st->buf)) { msg 220 drivers/media/usb/dvb-usb/dib0700_core.c msg[i].len); msg 225 drivers/media/usb/dvb-usb/dib0700_core.c memcpy(msg[i].buf, st->buf, msg[i].len); msg 228 drivers/media/usb/dvb-usb/dib0700_core.c debug_dump(msg[i].buf, msg[i].len, deb_data); msg 238 drivers/media/usb/dvb-usb/dib0700_core.c st->buf[1] = msg[i].addr << 1; msg 240 drivers/media/usb/dvb-usb/dib0700_core.c (msg[i].len & 0x3F); msg 245 drivers/media/usb/dvb-usb/dib0700_core.c if (msg[i].len > sizeof(st->buf) - 4) { msg 247 drivers/media/usb/dvb-usb/dib0700_core.c msg[i].len); msg 254 drivers/media/usb/dvb-usb/dib0700_core.c memcpy(&st->buf[4], msg[i].buf, msg[i].len); msg 257 drivers/media/usb/dvb-usb/dib0700_core.c debug_dump(st->buf, msg[i].len + 4, deb_data); msg 263 drivers/media/usb/dvb-usb/dib0700_core.c 0, 0, st->buf, msg[i].len + 4, msg 283 drivers/media/usb/dvb-usb/dib0700_core.c struct i2c_msg *msg, int num) msg 299 drivers/media/usb/dvb-usb/dib0700_core.c st->buf[1] = msg[i].addr << 1; msg 301 drivers/media/usb/dvb-usb/dib0700_core.c if (msg[i].len > sizeof(st->buf) - 2) { msg 303 drivers/media/usb/dvb-usb/dib0700_core.c msg[i].len); msg 307 drivers/media/usb/dvb-usb/dib0700_core.c memcpy(&st->buf[2], msg[i].buf, msg[i].len); msg 310 drivers/media/usb/dvb-usb/dib0700_core.c if (i+1 < num && (msg[i+1].flags & I2C_M_RD)) { msg 315 drivers/media/usb/dvb-usb/dib0700_core.c len = dib0700_ctrl_rd(d, st->buf, msg[i].len + 2, msg 316 drivers/media/usb/dvb-usb/dib0700_core.c st->buf, msg[i + 1].len); msg 319 drivers/media/usb/dvb-usb/dib0700_core.c msg[i].addr); msg 324 drivers/media/usb/dvb-usb/dib0700_core.c if (msg[i + 1].len > sizeof(st->buf)) { msg 326 drivers/media/usb/dvb-usb/dib0700_core.c msg[i].len); msg 330 drivers/media/usb/dvb-usb/dib0700_core.c memcpy(msg[i + 1].buf, st->buf, msg[i + 1].len); msg 332 drivers/media/usb/dvb-usb/dib0700_core.c msg[i+1].len = len; msg 337 drivers/media/usb/dvb-usb/dib0700_core.c result = dib0700_ctrl_wr(d, st->buf, msg[i].len + 2); msg 350 drivers/media/usb/dvb-usb/dib0700_core.c static int dib0700_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msg, msg 358 drivers/media/usb/dvb-usb/dib0700_core.c return dib0700_i2c_xfer_new(adap, msg, num); msg 361 drivers/media/usb/dvb-usb/dib0700_core.c return dib0700_i2c_xfer_legacy(adap, msg, num); msg 111 drivers/media/usb/dvb-usb/dib0700_devices.c struct i2c_msg msg[2] = { msg 115 drivers/media/usb/dvb-usb/dib0700_devices.c if (i2c_transfer(adap, msg, 2) != 2) return -EREMOTEIO; msg 2230 drivers/media/usb/dvb-usb/dib0700_devices.c struct i2c_msg msg[2] = { msg 2238 drivers/media/usb/dvb-usb/dib0700_devices.c if (i2c_transfer(i2c, msg, 2) != 2) msg 2263 drivers/media/usb/dvb-usb/dib0700_devices.c msg[0].len = 2; msg 2264 drivers/media/usb/dvb-usb/dib0700_devices.c if (i2c_transfer(i2c, msg, 2) != 2) msg 2272 drivers/media/usb/dvb-usb/dib0700_devices.c msg[0].len = 4; msg 2273 drivers/media/usb/dvb-usb/dib0700_devices.c if (i2c_transfer(i2c, &msg[0], 1) != 1) msg 178 drivers/media/usb/dvb-usb/dibusb-common.c static int dibusb_i2c_xfer(struct i2c_adapter *adap,struct i2c_msg msg[],int num) msg 188 drivers/media/usb/dvb-usb/dibusb-common.c if (i+1 < num && (msg[i].flags & I2C_M_RD) == 0 msg 189 drivers/media/usb/dvb-usb/dibusb-common.c && (msg[i+1].flags & I2C_M_RD)) { msg 190 drivers/media/usb/dvb-usb/dibusb-common.c if (dibusb_i2c_msg(d, msg[i].addr, msg[i].buf,msg[i].len, msg 191 drivers/media/usb/dvb-usb/dibusb-common.c msg[i+1].buf,msg[i+1].len) < 0) msg 194 drivers/media/usb/dvb-usb/dibusb-common.c } else if ((msg[i].flags & I2C_M_RD) == 0) { msg 195 drivers/media/usb/dvb-usb/dibusb-common.c if (dibusb_i2c_msg(d, msg[i].addr, msg[i].buf,msg[i].len,NULL,0) < 0) msg 197 drivers/media/usb/dvb-usb/dibusb-common.c } else if (msg[i].addr != 0x50) { msg 201 drivers/media/usb/dvb-usb/dibusb-common.c if (dibusb_i2c_msg(d, msg[i].addr, NULL, 0, msg[i].buf, msg[i].len) < 0) msg 70 drivers/media/usb/dvb-usb/dibusb-mb.c struct i2c_msg msg[2] = { msg 77 drivers/media/usb/dvb-usb/dibusb-mb.c msg[0].addr = msg[1].addr = st->tuner_addr = 0x60; msg 82 drivers/media/usb/dvb-usb/dibusb-mb.c if (i2c_transfer(&adap->dev->i2c_adap, msg, 2) != 2) { msg 54 drivers/media/usb/dvb-usb/digitv.c static int digitv_i2c_xfer(struct i2c_adapter *adap,struct i2c_msg msg[],int num) msg 67 drivers/media/usb/dvb-usb/digitv.c if (i+1 < num && (msg[i+1].flags & I2C_M_RD)) { msg 68 drivers/media/usb/dvb-usb/digitv.c if (digitv_ctrl_msg(d, USB_READ_COFDM, msg[i].buf[0], NULL, 0, msg 69 drivers/media/usb/dvb-usb/digitv.c msg[i+1].buf,msg[i+1].len) < 0) msg 73 drivers/media/usb/dvb-usb/digitv.c if (digitv_ctrl_msg(d,USB_WRITE_COFDM, msg[i].buf[0], msg 74 drivers/media/usb/dvb-usb/digitv.c &msg[i].buf[1],msg[i].len-1,NULL,0) < 0) msg 63 drivers/media/usb/dvb-usb/dtv5100.c static int dtv5100_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], msg 77 drivers/media/usb/dvb-usb/dtv5100.c if (i+1 < num && (msg[i+1].flags & I2C_M_RD)) { msg 78 drivers/media/usb/dvb-usb/dtv5100.c if (dtv5100_i2c_msg(d, msg[i].addr, msg[i].buf, msg 79 drivers/media/usb/dvb-usb/dtv5100.c msg[i].len, msg[i+1].buf, msg 80 drivers/media/usb/dvb-usb/dtv5100.c msg[i+1].len) < 0) msg 83 drivers/media/usb/dvb-usb/dtv5100.c } else if (dtv5100_i2c_msg(d, msg[i].addr, msg[i].buf, msg 84 drivers/media/usb/dvb-usb/dtv5100.c msg[i].len, NULL, 0) < 0) msg 116 drivers/media/usb/dvb-usb/dw2102.c static int dw2102_i2c_transfer(struct i2c_adapter *adap, struct i2c_msg msg[], msg 132 drivers/media/usb/dvb-usb/dw2102.c value = msg[0].buf[0];/* register */ msg 133 drivers/media/usb/dvb-usb/dw2102.c for (i = 0; i < msg[1].len; i++) { msg 136 drivers/media/usb/dvb-usb/dw2102.c msg[1].buf[i] = buf6[0]; msg 140 drivers/media/usb/dvb-usb/dw2102.c switch (msg[0].addr) { msg 144 drivers/media/usb/dvb-usb/dw2102.c buf6[1] = msg[0].buf[0]; msg 145 drivers/media/usb/dvb-usb/dw2102.c buf6[2] = msg[0].buf[1]; msg 150 drivers/media/usb/dvb-usb/dw2102.c if (msg[0].flags == 0) { msg 155 drivers/media/usb/dvb-usb/dw2102.c buf6[3] = msg[0].buf[0]; msg 156 drivers/media/usb/dvb-usb/dw2102.c buf6[4] = msg[0].buf[1]; msg 157 drivers/media/usb/dvb-usb/dw2102.c buf6[5] = msg[0].buf[2]; msg 158 drivers/media/usb/dvb-usb/dw2102.c buf6[6] = msg[0].buf[3]; msg 165 drivers/media/usb/dvb-usb/dw2102.c msg[0].buf[0] = buf6[0]; msg 171 drivers/media/usb/dvb-usb/dw2102.c msg[0].buf[0] = buf6[0]; msg 172 drivers/media/usb/dvb-usb/dw2102.c msg[0].buf[1] = buf6[1]; msg 176 drivers/media/usb/dvb-usb/dw2102.c buf6[1] = msg[0].buf[0]; msg 190 drivers/media/usb/dvb-usb/dw2102.c struct i2c_msg msg[], int num) msg 202 drivers/media/usb/dvb-usb/dw2102.c if (msg[0].len != 1) { msg 204 drivers/media/usb/dvb-usb/dw2102.c msg[0].len); msg 209 drivers/media/usb/dvb-usb/dw2102.c if (2 + msg[1].len > sizeof(buf6)) { msg 211 drivers/media/usb/dvb-usb/dw2102.c msg[1].len); msg 217 drivers/media/usb/dvb-usb/dw2102.c buf6[0] = msg[0].addr << 1; msg 218 drivers/media/usb/dvb-usb/dw2102.c buf6[1] = msg[0].len; msg 219 drivers/media/usb/dvb-usb/dw2102.c buf6[2] = msg[0].buf[0]; msg 221 drivers/media/usb/dvb-usb/dw2102.c buf6, msg[0].len + 2, DW210X_WRITE_MSG); msg 224 drivers/media/usb/dvb-usb/dw2102.c buf6, msg[1].len + 2, DW210X_READ_MSG); msg 225 drivers/media/usb/dvb-usb/dw2102.c memcpy(msg[1].buf, buf6 + 2, msg[1].len); msg 229 drivers/media/usb/dvb-usb/dw2102.c switch (msg[0].addr) { msg 231 drivers/media/usb/dvb-usb/dw2102.c if (2 + msg[0].len > sizeof(buf6)) { msg 233 drivers/media/usb/dvb-usb/dw2102.c msg[0].len); msg 239 drivers/media/usb/dvb-usb/dw2102.c buf6[0] = msg[0].addr << 1; msg 240 drivers/media/usb/dvb-usb/dw2102.c buf6[1] = msg[0].len; msg 241 drivers/media/usb/dvb-usb/dw2102.c memcpy(buf6 + 2, msg[0].buf, msg[0].len); msg 243 drivers/media/usb/dvb-usb/dw2102.c msg[0].len + 2, DW210X_WRITE_MSG); msg 248 drivers/media/usb/dvb-usb/dw2102.c msg[0].buf[0] = buf6[0]; msg 249 drivers/media/usb/dvb-usb/dw2102.c msg[0].buf[1] = buf6[1]; msg 253 drivers/media/usb/dvb-usb/dw2102.c buf6[1] = msg[0].buf[0]; msg 265 drivers/media/usb/dvb-usb/dw2102.c static int dw2102_earda_i2c_transfer(struct i2c_adapter *adap, struct i2c_msg msg[], int num) msg 281 drivers/media/usb/dvb-usb/dw2102.c if (2 + msg[0].len != sizeof(obuf)) { msg 283 drivers/media/usb/dvb-usb/dw2102.c msg[0].len); msg 288 drivers/media/usb/dvb-usb/dw2102.c if (2 + msg[1].len > sizeof(ibuf)) { msg 290 drivers/media/usb/dvb-usb/dw2102.c msg[1].len); msg 295 drivers/media/usb/dvb-usb/dw2102.c obuf[0] = msg[0].addr << 1; msg 296 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = msg[0].len; msg 297 drivers/media/usb/dvb-usb/dw2102.c obuf[2] = msg[0].buf[0]; msg 299 drivers/media/usb/dvb-usb/dw2102.c obuf, msg[0].len + 2, DW210X_WRITE_MSG); msg 302 drivers/media/usb/dvb-usb/dw2102.c ibuf, msg[1].len + 2, DW210X_READ_MSG); msg 303 drivers/media/usb/dvb-usb/dw2102.c memcpy(msg[1].buf, ibuf + 2, msg[1].len); msg 308 drivers/media/usb/dvb-usb/dw2102.c switch (msg[0].addr) { msg 313 drivers/media/usb/dvb-usb/dw2102.c if (2 + msg[0].len > sizeof(obuf)) { msg 315 drivers/media/usb/dvb-usb/dw2102.c msg[1].len); msg 320 drivers/media/usb/dvb-usb/dw2102.c obuf[0] = msg[0].addr << 1; msg 321 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = msg[0].len; msg 322 drivers/media/usb/dvb-usb/dw2102.c memcpy(obuf + 2, msg[0].buf, msg[0].len); msg 324 drivers/media/usb/dvb-usb/dw2102.c obuf, msg[0].len + 2, DW210X_WRITE_MSG); msg 331 drivers/media/usb/dvb-usb/dw2102.c if (2 + msg[0].len > sizeof(obuf)) { msg 333 drivers/media/usb/dvb-usb/dw2102.c msg[1].len); msg 338 drivers/media/usb/dvb-usb/dw2102.c obuf[0] = msg[0].addr << 1; msg 339 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = msg[0].len; msg 340 drivers/media/usb/dvb-usb/dw2102.c memcpy(obuf + 2, msg[0].buf, msg[0].len); msg 342 drivers/media/usb/dvb-usb/dw2102.c obuf, msg[0].len + 2, DW210X_WRITE_MSG); msg 349 drivers/media/usb/dvb-usb/dw2102.c memcpy(msg[0].buf, ibuf , 2); msg 355 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = msg[0].buf[0]; msg 371 drivers/media/usb/dvb-usb/dw2102.c static int dw2104_i2c_transfer(struct i2c_adapter *adap, struct i2c_msg msg[], int num) msg 382 drivers/media/usb/dvb-usb/dw2102.c switch (msg[j].addr) { msg 387 drivers/media/usb/dvb-usb/dw2102.c memcpy(msg[j].buf, ibuf , 2); msg 393 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = msg[j].buf[0]; msg 403 drivers/media/usb/dvb-usb/dw2102.c if (msg[j].flags == I2C_M_RD) { msg 407 drivers/media/usb/dvb-usb/dw2102.c if (2 + msg[j].len > sizeof(ibuf)) { msg 409 drivers/media/usb/dvb-usb/dw2102.c msg[j].len); msg 415 drivers/media/usb/dvb-usb/dw2102.c (msg[j].addr << 1) + 1, 0, msg 416 drivers/media/usb/dvb-usb/dw2102.c ibuf, msg[j].len + 2, msg 418 drivers/media/usb/dvb-usb/dw2102.c memcpy(msg[j].buf, ibuf + 2, msg[j].len); msg 420 drivers/media/usb/dvb-usb/dw2102.c } else if (((msg[j].buf[0] == 0xb0) && msg 421 drivers/media/usb/dvb-usb/dw2102.c (msg[j].addr == 0x68)) || msg 422 drivers/media/usb/dvb-usb/dw2102.c ((msg[j].buf[0] == 0xf7) && msg 423 drivers/media/usb/dvb-usb/dw2102.c (msg[j].addr == 0x55))) { msg 426 drivers/media/usb/dvb-usb/dw2102.c obuf[0] = msg[j].addr << 1; msg 427 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = (msg[j].len > 15 ? 17 : msg[j].len); msg 428 drivers/media/usb/dvb-usb/dw2102.c obuf[2] = msg[j].buf[0]; msg 429 drivers/media/usb/dvb-usb/dw2102.c len = msg[j].len - 1; msg 432 drivers/media/usb/dvb-usb/dw2102.c memcpy(obuf + 3, msg[j].buf + i, msg 444 drivers/media/usb/dvb-usb/dw2102.c if (2 + msg[j].len > sizeof(obuf)) { msg 446 drivers/media/usb/dvb-usb/dw2102.c msg[j].len); msg 451 drivers/media/usb/dvb-usb/dw2102.c obuf[0] = msg[j].addr << 1; msg 452 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = msg[j].len; msg 453 drivers/media/usb/dvb-usb/dw2102.c memcpy(obuf + 2, msg[j].buf, msg[j].len); msg 455 drivers/media/usb/dvb-usb/dw2102.c obuf, msg[j].len + 2, msg 470 drivers/media/usb/dvb-usb/dw2102.c static int dw3101_i2c_transfer(struct i2c_adapter *adap, struct i2c_msg msg[], msg 488 drivers/media/usb/dvb-usb/dw2102.c if (2 + msg[0].len != sizeof(obuf)) { msg 490 drivers/media/usb/dvb-usb/dw2102.c msg[0].len); msg 494 drivers/media/usb/dvb-usb/dw2102.c if (2 + msg[1].len > sizeof(ibuf)) { msg 496 drivers/media/usb/dvb-usb/dw2102.c msg[1].len); msg 500 drivers/media/usb/dvb-usb/dw2102.c obuf[0] = msg[0].addr << 1; msg 501 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = msg[0].len; msg 502 drivers/media/usb/dvb-usb/dw2102.c obuf[2] = msg[0].buf[0]; msg 504 drivers/media/usb/dvb-usb/dw2102.c obuf, msg[0].len + 2, DW210X_WRITE_MSG); msg 507 drivers/media/usb/dvb-usb/dw2102.c ibuf, msg[1].len + 2, DW210X_READ_MSG); msg 508 drivers/media/usb/dvb-usb/dw2102.c memcpy(msg[1].buf, ibuf + 2, msg[1].len); msg 513 drivers/media/usb/dvb-usb/dw2102.c switch (msg[0].addr) { msg 519 drivers/media/usb/dvb-usb/dw2102.c if (2 + msg[0].len > sizeof(obuf)) { msg 521 drivers/media/usb/dvb-usb/dw2102.c msg[0].len); msg 525 drivers/media/usb/dvb-usb/dw2102.c obuf[0] = msg[0].addr << 1; msg 526 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = msg[0].len; msg 527 drivers/media/usb/dvb-usb/dw2102.c memcpy(obuf + 2, msg[0].buf, msg[0].len); msg 529 drivers/media/usb/dvb-usb/dw2102.c obuf, msg[0].len + 2, DW210X_WRITE_MSG); msg 536 drivers/media/usb/dvb-usb/dw2102.c memcpy(msg[0].buf, ibuf , 2); msg 545 drivers/media/usb/dvb-usb/dw2102.c deb_xfer("%02x:%02x: %s ", i, msg[i].addr, msg 546 drivers/media/usb/dvb-usb/dw2102.c msg[i].flags == 0 ? ">>>" : "<<<"); msg 547 drivers/media/usb/dvb-usb/dw2102.c debug_dump(msg[i].buf, msg[i].len, deb_xfer); msg 556 drivers/media/usb/dvb-usb/dw2102.c static int s6x0_i2c_transfer(struct i2c_adapter *adap, struct i2c_msg msg[], msg 570 drivers/media/usb/dvb-usb/dw2102.c switch (msg[j].addr) { msg 575 drivers/media/usb/dvb-usb/dw2102.c memcpy(msg[j].buf, ibuf + 3, 2); msg 582 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = msg[j].buf[1];/* off-on */ msg 586 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = msg[j].buf[0];/* 13v-18v */ msg 595 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = msg[j].buf[0]; msg 606 drivers/media/usb/dvb-usb/dw2102.c if (msg[j].flags == I2C_M_RD) { msg 610 drivers/media/usb/dvb-usb/dw2102.c if (msg[j].len > sizeof(ibuf)) { msg 612 drivers/media/usb/dvb-usb/dw2102.c msg[j].len); msg 618 drivers/media/usb/dvb-usb/dw2102.c ibuf, msg[j].len, msg 620 drivers/media/usb/dvb-usb/dw2102.c memcpy(msg[j].buf, ibuf, msg[j].len); msg 622 drivers/media/usb/dvb-usb/dw2102.c } else if ((msg[j].buf[0] == 0xb0) && msg 623 drivers/media/usb/dvb-usb/dw2102.c (msg[j].addr == 0x68)) { msg 626 drivers/media/usb/dvb-usb/dw2102.c obuf[0] = (msg[j].len > 16 ? msg 627 drivers/media/usb/dvb-usb/dw2102.c 18 : msg[j].len + 1); msg 628 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = msg[j].addr << 1; msg 629 drivers/media/usb/dvb-usb/dw2102.c obuf[2] = msg[j].buf[0]; msg 630 drivers/media/usb/dvb-usb/dw2102.c len = msg[j].len - 1; msg 633 drivers/media/usb/dvb-usb/dw2102.c memcpy(obuf + 3, msg[j].buf + i, msg 645 drivers/media/usb/dvb-usb/dw2102.c if (2 + msg[j].len > sizeof(obuf)) { msg 647 drivers/media/usb/dvb-usb/dw2102.c msg[j].len); msg 652 drivers/media/usb/dvb-usb/dw2102.c obuf[0] = msg[j + 1].len; msg 653 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = (msg[j].addr << 1); msg 654 drivers/media/usb/dvb-usb/dw2102.c memcpy(obuf + 2, msg[j].buf, msg[j].len); msg 658 drivers/media/usb/dvb-usb/dw2102.c obuf, msg[j].len + 2, msg 665 drivers/media/usb/dvb-usb/dw2102.c if (2 + msg[j].len > sizeof(obuf)) { msg 667 drivers/media/usb/dvb-usb/dw2102.c msg[j].len); msg 671 drivers/media/usb/dvb-usb/dw2102.c obuf[0] = msg[j].len + 1; msg 672 drivers/media/usb/dvb-usb/dw2102.c obuf[1] = (msg[j].addr << 1); msg 673 drivers/media/usb/dvb-usb/dw2102.c memcpy(obuf + 2, msg[j].buf, msg[j].len); msg 675 drivers/media/usb/dvb-usb/dw2102.c obuf, msg[j].len + 2, msg 690 drivers/media/usb/dvb-usb/dw2102.c static int su3000_i2c_transfer(struct i2c_adapter *adap, struct i2c_msg msg[], msg 710 drivers/media/usb/dvb-usb/dw2102.c switch (msg[0].addr) { msg 712 drivers/media/usb/dvb-usb/dw2102.c state->data[0] = msg[0].buf[0] + 0x36; msg 724 drivers/media/usb/dvb-usb/dw2102.c msg[0].buf[1] = state->data[0]; msg 725 drivers/media/usb/dvb-usb/dw2102.c msg[0].buf[0] = state->data[1]; msg 728 drivers/media/usb/dvb-usb/dw2102.c if (3 + msg[0].len > sizeof(state->data)) { msg 730 drivers/media/usb/dvb-usb/dw2102.c msg[0].len); msg 737 drivers/media/usb/dvb-usb/dw2102.c state->data[1] = msg[0].addr; msg 738 drivers/media/usb/dvb-usb/dw2102.c state->data[2] = msg[0].len; msg 740 drivers/media/usb/dvb-usb/dw2102.c memcpy(&state->data[3], msg[0].buf, msg[0].len); msg 742 drivers/media/usb/dvb-usb/dw2102.c if (dvb_usb_generic_rw(d, state->data, msg[0].len + 3, msg 750 drivers/media/usb/dvb-usb/dw2102.c if (4 + msg[0].len > sizeof(state->data)) { msg 752 drivers/media/usb/dvb-usb/dw2102.c msg[0].len); msg 756 drivers/media/usb/dvb-usb/dw2102.c if (1 + msg[1].len > sizeof(state->data)) { msg 758 drivers/media/usb/dvb-usb/dw2102.c msg[1].len); msg 764 drivers/media/usb/dvb-usb/dw2102.c state->data[1] = msg[0].len; msg 765 drivers/media/usb/dvb-usb/dw2102.c state->data[2] = msg[1].len; msg 766 drivers/media/usb/dvb-usb/dw2102.c state->data[3] = msg[0].addr; msg 767 drivers/media/usb/dvb-usb/dw2102.c memcpy(&state->data[4], msg[0].buf, msg[0].len); msg 769 drivers/media/usb/dvb-usb/dw2102.c if (dvb_usb_generic_rw(d, state->data, msg[0].len + 4, msg 770 drivers/media/usb/dvb-usb/dw2102.c state->data, msg[1].len + 1, 0) < 0) msg 773 drivers/media/usb/dvb-usb/dw2102.c memcpy(msg[1].buf, &state->data[1], msg[1].len); msg 853 drivers/media/usb/dvb-usb/dw2102.c struct i2c_msg msg[] = { msg 869 drivers/media/usb/dvb-usb/dw2102.c ret = s6x0_i2c_transfer(&d->i2c_adap, msg, 2); msg 892 drivers/media/usb/dvb-usb/dw2102.c struct i2c_msg msg = { msg 899 drivers/media/usb/dvb-usb/dw2102.c i2c_transfer(&adap->dev->i2c_adap, &msg, 1); msg 931 drivers/media/usb/dvb-usb/dw2102.c struct i2c_msg msg[] = { msg 948 drivers/media/usb/dvb-usb/dw2102.c if (i2c_transfer(&d->i2c_adap, msg, 2) != 2) msg 974 drivers/media/usb/dvb-usb/dw2102.c struct i2c_msg msg = { msg 984 drivers/media/usb/dvb-usb/dw2102.c msg.buf = command_18v; msg 986 drivers/media/usb/dvb-usb/dw2102.c msg.buf = command_13v; msg 988 drivers/media/usb/dvb-usb/dw2102.c i2c_transfer(&udev_adap->dev->i2c_adap, &msg, 1); msg 1011 drivers/media/usb/dvb-usb/dw2102.c struct i2c_msg msg = { msg 1021 drivers/media/usb/dvb-usb/dw2102.c msg.buf = led_on; msg 1022 drivers/media/usb/dvb-usb/dw2102.c i2c_transfer(&udev_adap->dev->i2c_adap, &msg, 1); msg 1658 drivers/media/usb/dvb-usb/dw2102.c struct i2c_msg msg = { msg 1665 drivers/media/usb/dvb-usb/dw2102.c if (d->props.i2c_algo->master_xfer(&d->i2c_adap, &msg, 1) == 1) { msg 1666 drivers/media/usb/dvb-usb/dw2102.c if (msg.buf[0] != 0xff) { msg 1679 drivers/media/usb/dvb-usb/dw2102.c struct i2c_msg msg = { msg 1686 drivers/media/usb/dvb-usb/dw2102.c if (d->props.i2c_algo->master_xfer(&d->i2c_adap, &msg, 1) == 1) { msg 1687 drivers/media/usb/dvb-usb/dw2102.c if (msg.buf[0] != 0xff) { msg 1701 drivers/media/usb/dvb-usb/dw2102.c struct i2c_msg msg = { msg 1708 drivers/media/usb/dvb-usb/dw2102.c if (d->props.i2c_algo->master_xfer(&d->i2c_adap, &msg, 1) == 1) { msg 1709 drivers/media/usb/dvb-usb/dw2102.c if (msg.buf[0] != 0xff) { msg 249 drivers/media/usb/dvb-usb/m920x.c static int m920x_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], int num) msg 259 drivers/media/usb/dvb-usb/m920x.c if (msg[i].flags & (I2C_M_NO_RD_ACK | I2C_M_IGNORE_NAK | I2C_M_TEN) || msg[i].len == 0) { msg 269 drivers/media/usb/dvb-usb/m920x.c if (!(msg[i].flags & I2C_M_NOSTART)) { msg 271 drivers/media/usb/dvb-usb/m920x.c (msg[i].addr << 1) | msg 272 drivers/media/usb/dvb-usb/m920x.c (msg[i].flags & I2C_M_RD ? 0x01 : 0), 0x80)) != 0) msg 276 drivers/media/usb/dvb-usb/m920x.c if (msg[i].flags & I2C_M_RD) { msg 277 drivers/media/usb/dvb-usb/m920x.c for (j = 0; j < msg[i].len; j++) { msg 280 drivers/media/usb/dvb-usb/m920x.c int stop = (i+1 == num && j+1 == msg[i].len) ? 0x40 : 0x01; msg 284 drivers/media/usb/dvb-usb/m920x.c &msg[i].buf[j], 1)) != 0) msg 288 drivers/media/usb/dvb-usb/m920x.c for (j = 0; j < msg[i].len; j++) { msg 290 drivers/media/usb/dvb-usb/m920x.c int stop = (i+1 == num && j+1 == msg[i].len) ? 0x40 : 0x00; msg 292 drivers/media/usb/dvb-usb/m920x.c if ((ret = m920x_write(d->udev, M9206_I2C, msg[i].buf[j], stop)) != 0) msg 131 drivers/media/usb/dvb-usb/opera1.c static int opera1_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], msg 144 drivers/media/usb/dvb-usb/opera1.c (msg[i].addr<<1)|(msg[i].flags&I2C_M_RD?0x01:0), msg 145 drivers/media/usb/dvb-usb/opera1.c msg[i].buf, msg 146 drivers/media/usb/dvb-usb/opera1.c msg[i].len msg 147 drivers/media/usb/dvb-usb/opera1.c )) != msg[i].len) { msg 151 drivers/media/usb/dvb-usb/opera1.c info("sending i2c message %d %d", tmp, msg[i].len); msg 172 drivers/media/usb/dvb-usb/opera1.c struct i2c_msg msg[] = { msg 178 drivers/media/usb/dvb-usb/opera1.c msg[0].addr = ADDR_B601_VOLTAGE_18V; msg 179 drivers/media/usb/dvb-usb/opera1.c msg[0].buf = command_18v; msg 181 drivers/media/usb/dvb-usb/opera1.c i2c_transfer(&udev_adap->dev->i2c_adap, msg, 1); msg 310 drivers/media/usb/dvb-usb/opera1.c struct i2c_msg msg[] = { msg 319 drivers/media/usb/dvb-usb/opera1.c i2c_transfer(&adap->dev->i2c_adap, msg, 1); msg 327 drivers/media/usb/dvb-usb/opera1.c struct i2c_msg msg[] = { msg 336 drivers/media/usb/dvb-usb/opera1.c i2c_transfer(&adap->dev->i2c_adap, msg, 1); msg 465 drivers/media/usb/dvb-usb/pctv452e.c static int pctv452e_i2c_xfer(struct i2c_adapter *adapter, struct i2c_msg *msg, msg 478 drivers/media/usb/dvb-usb/pctv452e.c if (msg[i].flags & I2C_M_RD) { msg 479 drivers/media/usb/dvb-usb/pctv452e.c addr = msg[i].addr; msg 482 drivers/media/usb/dvb-usb/pctv452e.c rcv_buf = msg[i].buf; msg 483 drivers/media/usb/dvb-usb/pctv452e.c rcv_len = msg[i].len; msg 485 drivers/media/usb/dvb-usb/pctv452e.c addr = msg[i].addr; msg 486 drivers/media/usb/dvb-usb/pctv452e.c snd_buf = msg[i].buf; msg 487 drivers/media/usb/dvb-usb/pctv452e.c snd_len = msg[i].len; msg 161 drivers/media/usb/dvb-usb/technisat-usb2.c static int technisat_usb2_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg *msg, msg 173 drivers/media/usb/dvb-usb/technisat-usb2.c if (i+1 < num && msg[i+1].flags & I2C_M_RD) { msg 174 drivers/media/usb/dvb-usb/technisat-usb2.c ret = technisat_usb2_i2c_access(d->udev, msg[i+1].addr, msg 175 drivers/media/usb/dvb-usb/technisat-usb2.c msg[i].buf, msg[i].len, msg 176 drivers/media/usb/dvb-usb/technisat-usb2.c msg[i+1].buf, msg[i+1].len); msg 181 drivers/media/usb/dvb-usb/technisat-usb2.c ret = technisat_usb2_i2c_access(d->udev, msg[i].addr, msg 182 drivers/media/usb/dvb-usb/technisat-usb2.c msg[i].buf, msg[i].len, msg 420 drivers/media/usb/dvb-usb/technisat-usb2.c struct i2c_msg msg[] = { msg 436 drivers/media/usb/dvb-usb/technisat-usb2.c if (i2c_transfer(&d->i2c_adap, msg, 2) != 2) msg 368 drivers/media/usb/dvb-usb/ttusb2.c static int ttusb2_i2c_xfer(struct i2c_adapter *adap,struct i2c_msg msg[],int num) msg 381 drivers/media/usb/dvb-usb/ttusb2.c write_read = i+1 < num && (msg[i+1].flags & I2C_M_RD); msg 382 drivers/media/usb/dvb-usb/ttusb2.c read = msg[i].flags & I2C_M_RD; msg 384 drivers/media/usb/dvb-usb/ttusb2.c if (3 + msg[i].len > sizeof(obuf)) { msg 385 drivers/media/usb/dvb-usb/ttusb2.c err("i2c wr len=%d too high", msg[i].len); msg 389 drivers/media/usb/dvb-usb/ttusb2.c if (3 + msg[i+1].len > sizeof(ibuf)) { msg 390 drivers/media/usb/dvb-usb/ttusb2.c err("i2c rd len=%d too high", msg[i+1].len); msg 394 drivers/media/usb/dvb-usb/ttusb2.c if (3 + msg[i].len > sizeof(ibuf)) { msg 395 drivers/media/usb/dvb-usb/ttusb2.c err("i2c rd len=%d too high", msg[i].len); msg 400 drivers/media/usb/dvb-usb/ttusb2.c obuf[0] = (msg[i].addr << 1) | (write_read | read); msg 404 drivers/media/usb/dvb-usb/ttusb2.c obuf[1] = msg[i].len; msg 408 drivers/media/usb/dvb-usb/ttusb2.c obuf[2] = msg[i+1].len; msg 410 drivers/media/usb/dvb-usb/ttusb2.c obuf[2] = msg[i].len; msg 414 drivers/media/usb/dvb-usb/ttusb2.c memcpy(&obuf[3], msg[i].buf, msg[i].len); msg 422 drivers/media/usb/dvb-usb/ttusb2.c memcpy(msg[i+1].buf, &ibuf[3], msg[i+1].len); msg 425 drivers/media/usb/dvb-usb/ttusb2.c memcpy(msg[i].buf, &ibuf[3], msg[i].len); msg 228 drivers/media/usb/dvb-usb/vp702x-fe.c memcpy(&cmd[3], m->msg, m->msg_len); msg 495 drivers/media/usb/em28xx/em28xx-i2c.c struct i2c_msg msg) msg 498 drivers/media/usb/em28xx/em28xx-i2c.c u16 addr = msg.addr << 1; msg 502 drivers/media/usb/em28xx/em28xx-i2c.c rc = em28xx_i2c_recv_bytes(dev, addr, msg.buf, msg.len); msg 504 drivers/media/usb/em28xx/em28xx-i2c.c rc = em2800_i2c_recv_bytes(dev, addr, msg.buf, msg.len); msg 506 drivers/media/usb/em28xx/em28xx-i2c.c rc = em25xx_bus_B_recv_bytes(dev, addr, msg.buf, msg.len); msg 511 drivers/media/usb/em28xx/em28xx-i2c.c struct i2c_msg msg, int stop) msg 514 drivers/media/usb/em28xx/em28xx-i2c.c u16 addr = msg.addr << 1; msg 518 drivers/media/usb/em28xx/em28xx-i2c.c rc = em28xx_i2c_send_bytes(dev, addr, msg.buf, msg.len, stop); msg 520 drivers/media/usb/em28xx/em28xx-i2c.c rc = em2800_i2c_send_bytes(dev, addr, msg.buf, msg.len); msg 522 drivers/media/usb/em28xx/em28xx-i2c.c rc = em25xx_bus_B_send_bytes(dev, addr, msg.buf, msg.len); msg 168 drivers/media/usb/em28xx/em28xx-input.c struct i2c_msg msg[] = { msg 182 drivers/media/usb/em28xx/em28xx-input.c if (i2c_transfer(i2c_dev->adapter, msg, 2) != 2) msg 188 drivers/media/usb/em28xx/em28xx-input.c msg[1].buf = &key; msg 189 drivers/media/usb/em28xx/em28xx-input.c if (i2c_transfer(i2c_dev->adapter, msg, 2) != 2) msg 209 drivers/media/usb/em28xx/em28xx-input.c u8 msg[3] = { 0, 0, 0 }; msg 216 drivers/media/usb/em28xx/em28xx-input.c msg, sizeof(msg)); msg 221 drivers/media/usb/em28xx/em28xx-input.c poll_result->toggle_bit = (msg[0] >> 7); msg 224 drivers/media/usb/em28xx/em28xx-input.c poll_result->read_count = (msg[0] & 0x7f); msg 230 drivers/media/usb/em28xx/em28xx-input.c poll_result->scancode = RC_SCANCODE_RC5(msg[1], msg[2]); msg 235 drivers/media/usb/em28xx/em28xx-input.c poll_result->scancode = RC_SCANCODE_NEC(msg[1], msg[2]); msg 240 drivers/media/usb/em28xx/em28xx-input.c poll_result->scancode = msg[1] << 8 | msg[2]; msg 252 drivers/media/usb/em28xx/em28xx-input.c u8 msg[5] = { 0, 0, 0, 0, 0 }; msg 259 drivers/media/usb/em28xx/em28xx-input.c msg, sizeof(msg)); msg 264 drivers/media/usb/em28xx/em28xx-input.c poll_result->toggle_bit = (msg[0] >> 7); msg 267 drivers/media/usb/em28xx/em28xx-input.c poll_result->read_count = (msg[0] & 0x7f); msg 276 drivers/media/usb/em28xx/em28xx-input.c poll_result->scancode = RC_SCANCODE_RC5(msg[1], msg[2]); msg 280 drivers/media/usb/em28xx/em28xx-input.c poll_result->scancode = ir_nec_bytes_to_scancode(msg[1], msg[2], msg[3], msg[4], msg 286 drivers/media/usb/em28xx/em28xx-input.c poll_result->scancode = RC_SCANCODE_RC6_0(msg[1], msg[2]); msg 291 drivers/media/usb/em28xx/em28xx-input.c poll_result->scancode = (msg[1] << 24) | (msg[2] << 16) | msg 292 drivers/media/usb/em28xx/em28xx-input.c (msg[3] << 8) | msg[4]; msg 177 drivers/media/usb/pulse8-cec/pulse8-cec.c struct cec_msg *msg = &pulse8->rx_msg; msg 185 drivers/media/usb/pulse8-cec/pulse8-cec.c msg->len = 1; msg 186 drivers/media/usb/pulse8-cec/pulse8-cec.c msg->msg[0] = pulse8->buf[1]; msg 189 drivers/media/usb/pulse8-cec/pulse8-cec.c if (msg->len == CEC_MAX_MSG_SIZE) msg 191 drivers/media/usb/pulse8-cec/pulse8-cec.c msg->msg[msg->len++] = pulse8->buf[1]; msg 597 drivers/media/usb/pulse8-cec/pulse8-cec.c u32 signal_free_time, struct cec_msg *msg) msg 609 drivers/media/usb/pulse8-cec/pulse8-cec.c cmd[1] = cec_msg_is_broadcast(msg); msg 613 drivers/media/usb/pulse8-cec/pulse8-cec.c cmd[0] = msg->len == 1 ? MSGCODE_TRANSMIT_EOM : MSGCODE_TRANSMIT; msg 614 drivers/media/usb/pulse8-cec/pulse8-cec.c cmd[1] = msg->msg[0]; msg 618 drivers/media/usb/pulse8-cec/pulse8-cec.c if (!err && msg->len > 1) { msg 619 drivers/media/usb/pulse8-cec/pulse8-cec.c cmd[0] = msg->len == 2 ? MSGCODE_TRANSMIT_EOM : msg 621 drivers/media/usb/pulse8-cec/pulse8-cec.c cmd[1] = msg->msg[1]; msg 624 drivers/media/usb/pulse8-cec/pulse8-cec.c for (i = 0; !err && i + 2 < msg->len; i++) { msg 625 drivers/media/usb/pulse8-cec/pulse8-cec.c cmd[0] = (i + 2 == msg->len - 1) ? msg 627 drivers/media/usb/pulse8-cec/pulse8-cec.c cmd[1] = msg->msg[i + 2]; msg 636 drivers/media/usb/pulse8-cec/pulse8-cec.c static int pulse8_received(struct cec_adapter *adap, struct cec_msg *msg) msg 33 drivers/media/usb/pvrusb2/pvrusb2-eeprom.c struct i2c_msg msg[2]; msg 66 drivers/media/usb/pvrusb2/pvrusb2-eeprom.c msg[0].addr = addr; msg 67 drivers/media/usb/pvrusb2/pvrusb2-eeprom.c msg[0].flags = 0; msg 68 drivers/media/usb/pvrusb2/pvrusb2-eeprom.c msg[0].len = mode16 ? 2 : 1; msg 69 drivers/media/usb/pvrusb2/pvrusb2-eeprom.c msg[0].buf = iadd; msg 70 drivers/media/usb/pvrusb2/pvrusb2-eeprom.c msg[1].addr = addr; msg 71 drivers/media/usb/pvrusb2/pvrusb2-eeprom.c msg[1].flags = I2C_M_RD; msg 87 drivers/media/usb/pvrusb2/pvrusb2-eeprom.c msg[1].len = pcnt; msg 88 drivers/media/usb/pvrusb2/pvrusb2-eeprom.c msg[1].buf = eeprom+tcnt; msg 90 drivers/media/usb/pvrusb2/pvrusb2-eeprom.c msg,ARRAY_SIZE(msg))) != 2) { msg 3323 drivers/media/usb/pvrusb2/pvrusb2-hdw.c struct i2c_msg msg[2]; msg 3356 drivers/media/usb/pvrusb2/pvrusb2-hdw.c msg[0].addr = addr; msg 3357 drivers/media/usb/pvrusb2/pvrusb2-hdw.c msg[0].flags = 0; msg 3358 drivers/media/usb/pvrusb2/pvrusb2-hdw.c msg[0].len = mode16 ? 2 : 1; msg 3359 drivers/media/usb/pvrusb2/pvrusb2-hdw.c msg[0].buf = iadd; msg 3360 drivers/media/usb/pvrusb2/pvrusb2-hdw.c msg[1].addr = addr; msg 3361 drivers/media/usb/pvrusb2/pvrusb2-hdw.c msg[1].flags = I2C_M_RD; msg 3377 drivers/media/usb/pvrusb2/pvrusb2-hdw.c msg[1].len = pcnt; msg 3378 drivers/media/usb/pvrusb2/pvrusb2-hdw.c msg[1].buf = eeprom+tcnt; msg 3380 drivers/media/usb/pvrusb2/pvrusb2-hdw.c msg,ARRAY_SIZE(msg))) != 2) { msg 519 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c struct i2c_msg msg[1]; msg 521 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c msg[0].addr = 0; msg 522 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c msg[0].flags = I2C_M_RD; msg 523 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c msg[0].len = 0; msg 524 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c msg[0].buf = NULL; msg 525 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c msg[0].addr = addr; msg 526 drivers/media/usb/pvrusb2/pvrusb2-i2c-core.c rc = i2c_transfer(&hdw->i2c_adap, msg, ARRAY_SIZE(msg)); msg 99 drivers/media/usb/pvrusb2/pvrusb2-io.c static void pvr2_buffer_describe(struct pvr2_buffer *bp, const char *msg) msg 103 drivers/media/usb/pvrusb2/pvrusb2-io.c (msg ? " " : ""), msg 104 drivers/media/usb/pvrusb2/pvrusb2-io.c (msg ? msg : ""), msg 832 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c char msg[80]; msg 838 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c mcnt = scnprintf(msg, sizeof(msg) - 1, msg 842 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c msg[mcnt] = 0; msg 854 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c pr_info("%s\n", msg); msg 67 drivers/media/usb/rainshadow-cec/rainshadow-cec.c struct cec_msg msg = {}; msg 75 drivers/media/usb/rainshadow-cec/rainshadow-cec.c if (msg.len == CEC_MAX_MSG_SIZE) msg 77 drivers/media/usb/rainshadow-cec/rainshadow-cec.c if (hex2bin(msg.msg + msg.len, cmd, 1)) msg 79 drivers/media/usb/rainshadow-cec/rainshadow-cec.c msg.len++; msg 90 drivers/media/usb/rainshadow-cec/rainshadow-cec.c cec_received_msg(rain->adap, &msg); msg 275 drivers/media/usb/rainshadow-cec/rainshadow-cec.c u32 signal_free_time, struct cec_msg *msg) msg 282 drivers/media/usb/rainshadow-cec/rainshadow-cec.c if (msg->len == 1) { msg 283 drivers/media/usb/rainshadow-cec/rainshadow-cec.c snprintf(cmd, sizeof(cmd), "x%x", cec_msg_destination(msg)); msg 288 drivers/media/usb/rainshadow-cec/rainshadow-cec.c cec_msg_destination(msg), msg->msg[1]); msg 289 drivers/media/usb/rainshadow-cec/rainshadow-cec.c for (i = 2; i < msg->len; i++) { msg 290 drivers/media/usb/rainshadow-cec/rainshadow-cec.c snprintf(hex, sizeof(hex), "%02x", msg->msg[i]); msg 325 drivers/media/usb/siano/smsusb.c struct sms_msg_hdr msg = { MSG_SW_RELOAD_REQ, 0, HIF_TASK, msg 333 drivers/media/usb/siano/smsusb.c return smsusb_sendrequest(context, &msg, sizeof(msg)); msg 579 drivers/media/usb/siano/smsusb.c static int smsusb_suspend(struct usb_interface *intf, pm_message_t msg) msg 582 drivers/media/usb/siano/smsusb.c printk(KERN_INFO "%s Entering status %d.\n", __func__, msg.event); msg 242 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c static int master_xfer(struct i2c_adapter* adapter, struct i2c_msg *msg, int num) msg 255 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c if (num > i + 1 && (msg[i + 1].flags & I2C_M_RD)) { msg 256 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c addr = msg[i].addr; msg 257 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c snd_buf = msg[i].buf; msg 258 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c snd_len = msg[i].len; msg 259 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c rcv_buf = msg[i + 1].buf; msg 260 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c rcv_len = msg[i + 1].len; msg 263 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c addr = msg[i].addr; msg 264 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c snd_buf = msg[i].buf; msg 265 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c snd_len = msg[i].len; msg 480 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c memcpy(b + 5, cmd->msg, cmd->msg_len); msg 1012 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c struct i2c_msg msg = {.addr=0x61, .flags=0, .buf=data, .len=sizeof(data) }; msg 1024 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c if (i2c_transfer(&ttusb->i2c_adap, &msg, 1) != 1) return -EIO; msg 1275 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c struct i2c_msg msg = {.addr = 0x61,.flags = 0,.buf = buf,.len = sizeof(buf) }; msg 1295 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c if (i2c_transfer(&ttusb->i2c_adap, &msg, 1) != 1) msg 1319 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c struct i2c_msg msg = {.addr = 0x61,.flags = 0,.buf = buf,.len = sizeof(buf) }; msg 1330 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c if (i2c_transfer(&ttusb->i2c_adap, &msg, 1) != 1) msg 1347 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c struct i2c_msg msg = { .addr = 0x62, .flags = 0, .buf = data, .len = sizeof(data) }; msg 1358 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c if (i2c_transfer (&ttusb->i2c_adap, &msg, 1) != 1) msg 1376 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c struct i2c_msg msg[] = { { .addr = 0x50,.flags = 0,.buf = &b,.len = 1 }, msg 1379 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c if ((i2c_transfer(&ttusb->i2c_adap, msg, 2) != 2) || (pwm == 0xff)) msg 148 drivers/media/usb/ttusb-dec/ttusbdecfe.c memcpy(&b[4], cmd->msg, cmd->msg_len); msg 93 drivers/media/usb/usbvision/usbvision-i2c.c struct i2c_msg *msg, int retries, msg 96 drivers/media/usb/usbvision/usbvision-i2c.c unsigned short flags = msg->flags; msg 101 drivers/media/usb/usbvision/usbvision-i2c.c addr = (msg->addr << 1); msg 722 drivers/media/usb/uvc/uvcvideo.h #define uvc_trace(flag, msg...) \ msg 725 drivers/media/usb/uvc/uvcvideo.h printk(KERN_DEBUG "uvcvideo: " msg); \ msg 728 drivers/media/usb/uvc/uvcvideo.h #define uvc_warn_once(dev, warn, msg...) \ msg 731 drivers/media/usb/uvc/uvcvideo.h printk(KERN_INFO "uvcvideo: " msg); \ msg 734 drivers/media/usb/uvc/uvcvideo.h #define uvc_printk(level, msg...) \ msg 735 drivers/media/usb/uvc/uvcvideo.h printk(level "uvcvideo: " msg) msg 334 drivers/memory/brcmstb_dpfe.c static unsigned int get_msg_chksum(const u32 msg[], unsigned int max) msg 341 drivers/memory/brcmstb_dpfe.c sum += msg[i]; msg 401 drivers/memory/brcmstb_dpfe.c const u32 *msg = priv->dpfe_api->command[cmd]; msg 426 drivers/memory/brcmstb_dpfe.c writel_relaxed(msg[i], regs + DCPU_MSG_RAM(i)); msg 248 drivers/memory/tegra/tegra20-emc.c unsigned long msg, void *data) msg 254 drivers/memory/tegra/tegra20-emc.c switch (msg) { msg 89 drivers/mfd/88pm860x-i2c.c struct i2c_msg msg[2] = { msg 107 drivers/mfd/88pm860x-i2c.c msg[1].len = bytes; msg 112 drivers/mfd/88pm860x-i2c.c ret = adap->algo->master_xfer(adap, msg, num); msg 124 drivers/mfd/88pm860x-i2c.c struct i2c_msg msg; msg 129 drivers/mfd/88pm860x-i2c.c msg.addr = i2c->addr; msg 130 drivers/mfd/88pm860x-i2c.c msg.flags = 0; msg 131 drivers/mfd/88pm860x-i2c.c msg.len = bytes + 1; msg 132 drivers/mfd/88pm860x-i2c.c msg.buf = buf; msg 134 drivers/mfd/88pm860x-i2c.c ret = adap->algo->master_xfer(adap, &msg, 1); msg 125 drivers/mfd/aat2870-core.c u8 msg[2]; msg 139 drivers/mfd/aat2870-core.c msg[0] = addr; msg 140 drivers/mfd/aat2870-core.c msg[1] = val; msg 141 drivers/mfd/aat2870-core.c ret = i2c_master_send(aat2870->client, msg, 2); msg 117 drivers/mfd/cros_ec_dev.c struct cros_ec_command *msg; msg 122 drivers/mfd/cros_ec_dev.c msg = kzalloc(sizeof(*msg) + sizeof(ec->features), GFP_KERNEL); msg 123 drivers/mfd/cros_ec_dev.c if (!msg) msg 126 drivers/mfd/cros_ec_dev.c msg->command = EC_CMD_GET_FEATURES + ec->cmd_offset; msg 127 drivers/mfd/cros_ec_dev.c msg->insize = sizeof(ec->features); msg 129 drivers/mfd/cros_ec_dev.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); msg 132 drivers/mfd/cros_ec_dev.c ret, msg->result); msg 135 drivers/mfd/cros_ec_dev.c memcpy(ec->features, msg->data, sizeof(ec->features)); msg 141 drivers/mfd/cros_ec_dev.c kfree(msg); msg 164 drivers/mfd/cros_ec_dev.c struct cros_ec_command *msg; msg 166 drivers/mfd/cros_ec_dev.c msg = kzalloc(sizeof(struct cros_ec_command) + msg 168 drivers/mfd/cros_ec_dev.c if (msg == NULL) msg 171 drivers/mfd/cros_ec_dev.c msg->version = 2; msg 172 drivers/mfd/cros_ec_dev.c msg->command = EC_CMD_MOTION_SENSE_CMD + ec->cmd_offset; msg 173 drivers/mfd/cros_ec_dev.c msg->outsize = sizeof(*params); msg 174 drivers/mfd/cros_ec_dev.c msg->insize = sizeof(*resp); msg 176 drivers/mfd/cros_ec_dev.c params = (struct ec_params_motion_sense *)msg->data; msg 179 drivers/mfd/cros_ec_dev.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); msg 182 drivers/mfd/cros_ec_dev.c ret, msg->result); msg 186 drivers/mfd/cros_ec_dev.c resp = (struct ec_response_motion_sense *)msg->data; msg 207 drivers/mfd/cros_ec_dev.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); msg 210 drivers/mfd/cros_ec_dev.c i, ret, msg->result); msg 271 drivers/mfd/cros_ec_dev.c kfree(msg); msg 34 drivers/mfd/ipaq-micro.c struct ipaq_micro_msg *msg = micro->msg; msg 42 drivers/mfd/ipaq-micro.c checksum = ((msg->id & 0x0f) << 4) | (msg->tx_len & 0x0f); msg 45 drivers/mfd/ipaq-micro.c for (i = 0; i < msg->tx_len; i++) { msg 46 drivers/mfd/ipaq-micro.c tx->buf[bp++] = msg->tx_data[i]; msg 47 drivers/mfd/ipaq-micro.c checksum += msg->tx_data[i]; msg 60 drivers/mfd/ipaq-micro.c int ipaq_micro_tx_msg(struct ipaq_micro *micro, struct ipaq_micro_msg *msg) msg 64 drivers/mfd/ipaq-micro.c dev_dbg(micro->dev, "TX msg: %02x, %d bytes\n", msg->id, msg->tx_len); msg 67 drivers/mfd/ipaq-micro.c if (micro->msg) { msg 68 drivers/mfd/ipaq-micro.c list_add_tail(&msg->node, µ->queue); msg 72 drivers/mfd/ipaq-micro.c micro->msg = msg; msg 95 drivers/mfd/ipaq-micro.c if (micro->msg && micro->msg->id == id) { msg 96 drivers/mfd/ipaq-micro.c struct ipaq_micro_msg *msg = micro->msg; msg 98 drivers/mfd/ipaq-micro.c memcpy(msg->rx_data, data, len); msg 99 drivers/mfd/ipaq-micro.c msg->rx_len = len; msg 100 drivers/mfd/ipaq-micro.c complete(µ->msg->ack); msg 102 drivers/mfd/ipaq-micro.c micro->msg = list_entry(micro->queue.next, msg 105 drivers/mfd/ipaq-micro.c list_del_init(µ->msg->node); msg 108 drivers/mfd/ipaq-micro.c micro->msg = NULL; msg 113 drivers/mfd/ipaq-micro.c if (!micro->msg) msg 117 drivers/mfd/ipaq-micro.c micro->msg->id); msg 190 drivers/mfd/ipaq-micro.c struct ipaq_micro_msg msg = { msg 194 drivers/mfd/ipaq-micro.c ipaq_micro_tx_msg_sync(micro, &msg); msg 195 drivers/mfd/ipaq-micro.c if (msg.rx_len == 4) { msg 196 drivers/mfd/ipaq-micro.c memcpy(micro->version, msg.rx_data, 4); msg 198 drivers/mfd/ipaq-micro.c } else if (msg.rx_len == 9) { msg 199 drivers/mfd/ipaq-micro.c memcpy(micro->version, msg.rx_data, 4); msg 204 drivers/mfd/ipaq-micro.c "illegal version message %d bytes\n", msg.rx_len); msg 211 drivers/mfd/ipaq-micro.c struct ipaq_micro_msg msg = { msg 217 drivers/mfd/ipaq-micro.c msg.tx_data[0] = address + i; msg 218 drivers/mfd/ipaq-micro.c msg.tx_data[1] = 1; msg 219 drivers/mfd/ipaq-micro.c msg.tx_len = 2; msg 220 drivers/mfd/ipaq-micro.c ipaq_micro_tx_msg_sync(micro, &msg); msg 221 drivers/mfd/ipaq-micro.c memcpy(data + (i * 2), msg.rx_data, 2); msg 303 drivers/mfd/ipaq-micro.c if (micro->msg) msg 304 drivers/mfd/ipaq-micro.c complete(µ->msg->ack); msg 888 drivers/mfd/menelaus.c struct i2c_msg msg[2]; msg 895 drivers/mfd/menelaus.c msg[0].addr = MENELAUS_I2C_ADDRESS; msg 896 drivers/mfd/menelaus.c msg[0].flags = 0; msg 897 drivers/mfd/menelaus.c msg[0].len = 1; msg 898 drivers/mfd/menelaus.c msg[0].buf = regs; msg 900 drivers/mfd/menelaus.c msg[1].addr = MENELAUS_I2C_ADDRESS; msg 901 drivers/mfd/menelaus.c msg[1].flags = I2C_M_RD; msg 902 drivers/mfd/menelaus.c msg[1].len = sizeof(regs); msg 903 drivers/mfd/menelaus.c msg[1].buf = regs; msg 905 drivers/mfd/menelaus.c status = i2c_transfer(the_menelaus->client->adapter, msg, 2); msg 943 drivers/mfd/menelaus.c struct i2c_msg msg[2]; msg 950 drivers/mfd/menelaus.c msg[0].addr = MENELAUS_I2C_ADDRESS; msg 951 drivers/mfd/menelaus.c msg[0].flags = 0; msg 952 drivers/mfd/menelaus.c msg[0].len = 1; msg 953 drivers/mfd/menelaus.c msg[0].buf = regs; msg 955 drivers/mfd/menelaus.c msg[1].addr = MENELAUS_I2C_ADDRESS; msg 956 drivers/mfd/menelaus.c msg[1].flags = I2C_M_RD; msg 957 drivers/mfd/menelaus.c msg[1].len = sizeof(regs); msg 958 drivers/mfd/menelaus.c msg[1].buf = regs; msg 960 drivers/mfd/menelaus.c status = i2c_transfer(the_menelaus->client->adapter, msg, 2); msg 70 drivers/mfd/tps6507x.c u8 msg[TPS6507X_MAX_REGISTER + 1]; msg 76 drivers/mfd/tps6507x.c msg[0] = reg; msg 77 drivers/mfd/tps6507x.c memcpy(&msg[1], src, bytes); msg 79 drivers/mfd/tps6507x.c ret = i2c_master_send(i2c, msg, bytes + 1); msg 56 drivers/mfd/wl1273-core.c struct i2c_msg msg; msg 59 drivers/mfd/wl1273-core.c msg.addr = client->addr; msg 60 drivers/mfd/wl1273-core.c msg.flags = 0; msg 61 drivers/mfd/wl1273-core.c msg.buf = data; msg 62 drivers/mfd/wl1273-core.c msg.len = len; msg 64 drivers/mfd/wl1273-core.c r = i2c_transfer(client->adapter, &msg, 1); msg 60 drivers/misc/cb710/debug.c char msg[100], *p; \ msg 66 drivers/misc/cb710/debug.c p = msg; \ msg 76 drivers/misc/cb710/debug.c dev_dbg(dev, "%s 0x%02X %s\n", prefix[i], i << 4, msg); \ msg 162 drivers/misc/fastrpc.c struct fastrpc_msg msg; msg 888 drivers/misc/fastrpc.c struct fastrpc_msg *msg = &ctx->msg; msg 891 drivers/misc/fastrpc.c msg->pid = fl->tgid; msg 892 drivers/misc/fastrpc.c msg->tid = current->pid; msg 895 drivers/misc/fastrpc.c msg->pid = 0; msg 897 drivers/misc/fastrpc.c msg->ctx = ctx->ctxid | fl->pd; msg 898 drivers/misc/fastrpc.c msg->handle = handle; msg 899 drivers/misc/fastrpc.c msg->sc = ctx->sc; msg 900 drivers/misc/fastrpc.c msg->addr = ctx->buf ? ctx->buf->phys : 0; msg 901 drivers/misc/fastrpc.c msg->size = roundup(ctx->msg_sz, PAGE_SIZE); msg 904 drivers/misc/fastrpc.c return rpmsg_send(cctx->rpdev->ept, (void *)msg, sizeof(*msg)); msg 65 drivers/misc/habanalabs/firmware_if.c int hl_fw_send_cpu_message(struct hl_device *hdev, u32 hw_queue_id, u32 *msg, msg 81 drivers/misc/habanalabs/firmware_if.c memcpy(pkt, msg, len); msg 2950 drivers/misc/habanalabs/goya/goya.c int goya_send_cpu_message(struct hl_device *hdev, u32 *msg, u16 len, msg 2961 drivers/misc/habanalabs/goya/goya.c return hl_fw_send_cpu_message(hdev, GOYA_QUEUE_ID_CPU_PQ, msg, len, msg 197 drivers/misc/habanalabs/goya/goyaP.h int goya_send_cpu_message(struct hl_device *hdev, u32 *msg, u16 len, msg 578 drivers/misc/habanalabs/habanalabs.h int (*send_cpu_message)(struct hl_device *hdev, u32 *msg, msg 1535 drivers/misc/habanalabs/habanalabs.h int hl_fw_send_cpu_message(struct hl_device *hdev, u32 hw_queue_id, u32 *msg, msg 31 drivers/misc/ibmasm/ibmasm.h #define err(msg) printk(KERN_ERR "%s: " msg "\n", DRIVER_NAME) msg 32 drivers/misc/ibmasm/ibmasm.h #define info(msg) printk(KERN_INFO "%s: " msg "\n", DRIVER_NAME) msg 62 drivers/misc/ibmasm/lowlevel.c struct i2o_message *msg = get_i2o_message(base_address, mfa); msg 63 drivers/misc/ibmasm/lowlevel.c ibmasm_receive_message(sp, &msg->data, incoming_data_size(msg)); msg 209 drivers/misc/mic/cosm/cosm_main.c struct cosm_msg msg = { .id = COSM_MSG_SHUTDOWN }; msg 227 drivers/misc/mic/cosm/cosm_main.c rc = scif_send(cdev->epd, &msg, sizeof(msg), SCIF_SEND_BLOCK); msg 128 drivers/misc/mic/cosm/cosm_scif_server.c struct cosm_msg msg; msg 132 drivers/misc/mic/cosm/cosm_scif_server.c rc = scif_recv(cdev->epd, &msg, sizeof(msg), 0); msg 141 drivers/misc/mic/cosm/cosm_scif_server.c __func__, __LINE__, rc, msg.id); msg 143 drivers/misc/mic/cosm/cosm_scif_server.c switch (msg.id) { msg 145 drivers/misc/mic/cosm/cosm_scif_server.c cosm_shutdown_status_int(cdev, msg.shutdown_status); msg 152 drivers/misc/mic/cosm/cosm_scif_server.c __func__, __LINE__, msg.id); msg 169 drivers/misc/mic/cosm/cosm_scif_server.c struct cosm_msg msg = { .id = COSM_MSG_SYNC_TIME }; msg 174 drivers/misc/mic/cosm/cosm_scif_server.c msg.timespec.tv_sec = ts.tv_sec; msg 175 drivers/misc/mic/cosm/cosm_scif_server.c msg.timespec.tv_nsec = ts.tv_nsec; msg 177 drivers/misc/mic/cosm/cosm_scif_server.c rc = scif_send(cdev->epd, &msg, sizeof(msg), SCIF_SEND_BLOCK); msg 31 drivers/misc/mic/cosm_client/cosm_scif_client.c struct cosm_msg msg = { .id = COSM_MSG_SHUTDOWN_STATUS }; msg 38 drivers/misc/mic/cosm_client/cosm_scif_client.c msg.shutdown_status = event; msg 39 drivers/misc/mic/cosm_client/cosm_scif_client.c rc = scif_send(client_epd, &msg, sizeof(msg), SCIF_SEND_BLOCK); msg 52 drivers/misc/mic/cosm_client/cosm_scif_client.c static void cosm_set_time(struct cosm_msg *msg) msg 55 drivers/misc/mic/cosm_client/cosm_scif_client.c .tv_sec = msg->timespec.tv_sec, msg 56 drivers/misc/mic/cosm_client/cosm_scif_client.c .tv_nsec = msg->timespec.tv_nsec, msg 68 drivers/misc/mic/cosm_client/cosm_scif_client.c struct cosm_msg msg; msg 72 drivers/misc/mic/cosm_client/cosm_scif_client.c rc = scif_recv(client_epd, &msg, sizeof(msg), 0); msg 82 drivers/misc/mic/cosm_client/cosm_scif_client.c __func__, __LINE__, rc, msg.id); msg 84 drivers/misc/mic/cosm_client/cosm_scif_client.c switch (msg.id) { msg 86 drivers/misc/mic/cosm_client/cosm_scif_client.c cosm_set_time(&msg); msg 93 drivers/misc/mic/cosm_client/cosm_scif_client.c __func__, __LINE__, msg.id); msg 147 drivers/misc/mic/cosm_client/cosm_scif_client.c struct cosm_msg msg = { .id = COSM_MSG_HEARTBEAT }; msg 169 drivers/misc/mic/cosm_client/cosm_scif_client.c msg.id = COSM_MSG_HEARTBEAT; msg 170 drivers/misc/mic/cosm_client/cosm_scif_client.c rc = scif_send(client_epd, &msg, sizeof(msg), SCIF_SEND_BLOCK); msg 85 drivers/misc/mic/scif/scif_api.c struct scifmsg msg; msg 137 drivers/misc/mic/scif/scif_api.c msg.uop = SCIF_DISCNCT; msg 138 drivers/misc/mic/scif/scif_api.c msg.src = ep->port; msg 139 drivers/misc/mic/scif/scif_api.c msg.dst = ep->peer; msg 140 drivers/misc/mic/scif/scif_api.c msg.payload[0] = (u64)ep; msg 141 drivers/misc/mic/scif/scif_api.c msg.payload[1] = ep->remote_ep; msg 143 drivers/misc/mic/scif/scif_api.c err = scif_nodeqp_send(ep->remote_dev, &msg); msg 214 drivers/misc/mic/scif/scif_api.c struct scifmsg msg; msg 274 drivers/misc/mic/scif/scif_api.c msg.uop = SCIF_CNCT_REJ; msg 275 drivers/misc/mic/scif/scif_api.c msg.dst.node = conreq->msg.src.node; msg 276 drivers/misc/mic/scif/scif_api.c msg.dst.port = conreq->msg.src.port; msg 277 drivers/misc/mic/scif/scif_api.c msg.payload[0] = conreq->msg.payload[0]; msg 278 drivers/misc/mic/scif/scif_api.c msg.payload[1] = conreq->msg.payload[1]; msg 284 drivers/misc/mic/scif/scif_api.c scif_nodeqp_send(&scif_dev[conreq->msg.src.node], msg 285 drivers/misc/mic/scif/scif_api.c &msg); msg 465 drivers/misc/mic/scif/scif_api.c struct scifmsg msg; msg 492 drivers/misc/mic/scif/scif_api.c msg.src = ep->port; msg 493 drivers/misc/mic/scif/scif_api.c msg.dst = ep->conn_port; msg 494 drivers/misc/mic/scif/scif_api.c msg.uop = SCIF_CNCT_REQ; msg 495 drivers/misc/mic/scif/scif_api.c msg.payload[0] = (u64)ep; msg 496 drivers/misc/mic/scif/scif_api.c msg.payload[1] = ep->qp_info.qp_offset; msg 497 drivers/misc/mic/scif/scif_api.c err = _scif_nodeqp_send(ep->remote_dev, &msg); msg 528 drivers/misc/mic/scif/scif_api.c msg.uop = SCIF_CNCT_GNTNACK; msg 529 drivers/misc/mic/scif/scif_api.c msg.payload[0] = ep->remote_ep; msg 530 drivers/misc/mic/scif/scif_api.c _scif_nodeqp_send(ep->remote_dev, &msg); msg 535 drivers/misc/mic/scif/scif_api.c msg.uop = SCIF_CNCT_GNTACK; msg 536 drivers/misc/mic/scif/scif_api.c msg.payload[0] = ep->remote_ep; msg 537 drivers/misc/mic/scif/scif_api.c err = _scif_nodeqp_send(ep->remote_dev, &msg); msg 743 drivers/misc/mic/scif/scif_api.c struct scifmsg msg; msg 794 drivers/misc/mic/scif/scif_api.c peer->node = conreq->msg.src.node; msg 795 drivers/misc/mic/scif/scif_api.c peer->port = conreq->msg.src.port; msg 807 drivers/misc/mic/scif/scif_api.c cep->remote_ep = conreq->msg.payload[0]; msg 835 drivers/misc/mic/scif/scif_api.c conreq->msg.payload[1], SCIF_ENDPT_QP_SIZE, msg 853 drivers/misc/mic/scif/scif_api.c msg.uop = SCIF_CNCT_GNT; msg 854 drivers/misc/mic/scif/scif_api.c msg.src = cep->port; msg 855 drivers/misc/mic/scif/scif_api.c msg.payload[0] = cep->remote_ep; msg 856 drivers/misc/mic/scif/scif_api.c msg.payload[1] = cep->qp_info.qp_offset; msg 857 drivers/misc/mic/scif/scif_api.c msg.payload[2] = (u64)cep; msg 859 drivers/misc/mic/scif/scif_api.c err = _scif_nodeqp_send(cep->remote_dev, &msg); msg 904 drivers/misc/mic/scif/scif_api.c msg.uop = SCIF_CNCT_REJ; msg 905 drivers/misc/mic/scif/scif_api.c msg.dst.node = conreq->msg.src.node; msg 906 drivers/misc/mic/scif/scif_api.c msg.dst.port = conreq->msg.src.port; msg 907 drivers/misc/mic/scif/scif_api.c msg.payload[0] = conreq->msg.payload[0]; msg 908 drivers/misc/mic/scif/scif_api.c msg.payload[1] = conreq->msg.payload[1]; msg 909 drivers/misc/mic/scif/scif_api.c scif_nodeqp_send(&scif_dev[conreq->msg.src.node], &msg); msg 936 drivers/misc/mic/scif/scif_api.c static int _scif_send(scif_epd_t epd, void *msg, int len, int flags) msg 953 drivers/misc/mic/scif/scif_api.c ret = scif_rb_write(&qp->outbound_q, msg, msg 970 drivers/misc/mic/scif/scif_api.c msg = msg + curr_xfer_len; msg 998 drivers/misc/mic/scif/scif_api.c static int _scif_recv(scif_epd_t epd, void *msg, int len, int flags) msg 1021 drivers/misc/mic/scif/scif_api.c msg, curr_recv_len); msg 1044 drivers/misc/mic/scif/scif_api.c msg = msg + curr_recv_len; msg 1094 drivers/misc/mic/scif/scif_api.c int scif_user_send(scif_epd_t epd, void __user *msg, int len, int flags) msg 1126 drivers/misc/mic/scif/scif_api.c if (copy_from_user(tmp, msg, loop_len)) { msg 1134 drivers/misc/mic/scif/scif_api.c msg += err; msg 1155 drivers/misc/mic/scif/scif_api.c int scif_user_recv(scif_epd_t epd, void __user *msg, int len, int flags) msg 1190 drivers/misc/mic/scif/scif_api.c if (copy_to_user(msg, tmp, err)) { msg 1195 drivers/misc/mic/scif/scif_api.c msg += err; msg 1216 drivers/misc/mic/scif/scif_api.c int scif_send(scif_epd_t epd, void *msg, int len, int flags) msg 1240 drivers/misc/mic/scif/scif_api.c ret = _scif_send(epd, msg, len, flags); msg 1258 drivers/misc/mic/scif/scif_api.c int scif_recv(scif_epd_t epd, void *msg, int len, int flags) msg 1280 drivers/misc/mic/scif/scif_api.c ret = _scif_recv(epd, msg, len, flags); msg 119 drivers/misc/mic/scif/scif_epd.c void scif_cnctreq(struct scif_dev *scifdev, struct scifmsg *msg) msg 129 drivers/misc/mic/scif/scif_epd.c ep = scif_find_listen_ep(msg->dst.port); msg 142 drivers/misc/mic/scif/scif_epd.c conreq->msg = *msg; msg 152 drivers/misc/mic/scif/scif_epd.c msg->uop = SCIF_CNCT_REJ; msg 153 drivers/misc/mic/scif/scif_epd.c scif_nodeqp_send(&scif_dev[msg->src.node], msg); msg 165 drivers/misc/mic/scif/scif_epd.c void scif_cnctgnt(struct scif_dev *scifdev, struct scifmsg *msg) msg 167 drivers/misc/mic/scif/scif_epd.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; msg 171 drivers/misc/mic/scif/scif_epd.c ep->peer.node = msg->src.node; msg 172 drivers/misc/mic/scif/scif_epd.c ep->peer.port = msg->src.port; msg 173 drivers/misc/mic/scif/scif_epd.c ep->qp_info.gnt_pld = msg->payload[1]; msg 174 drivers/misc/mic/scif/scif_epd.c ep->remote_ep = msg->payload[2]; msg 190 drivers/misc/mic/scif/scif_epd.c void scif_cnctgnt_ack(struct scif_dev *scifdev, struct scifmsg *msg) msg 192 drivers/misc/mic/scif/scif_epd.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; msg 212 drivers/misc/mic/scif/scif_epd.c void scif_cnctgnt_nack(struct scif_dev *scifdev, struct scifmsg *msg) msg 214 drivers/misc/mic/scif/scif_epd.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; msg 229 drivers/misc/mic/scif/scif_epd.c void scif_cnctrej(struct scif_dev *scifdev, struct scifmsg *msg) msg 231 drivers/misc/mic/scif/scif_epd.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; msg 254 drivers/misc/mic/scif/scif_epd.c void scif_discnct(struct scif_dev *scifdev, struct scifmsg *msg) msg 269 drivers/misc/mic/scif/scif_epd.c if (((u64)tmpep == msg->payload[1]) && msg 270 drivers/misc/mic/scif/scif_epd.c ((u64)tmpep->remote_ep == msg->payload[0])) { msg 298 drivers/misc/mic/scif/scif_epd.c msg->uop = SCIF_DISCNT_ACK; msg 299 drivers/misc/mic/scif/scif_epd.c scif_nodeqp_send(&scif_dev[msg->src.node], msg); msg 308 drivers/misc/mic/scif/scif_epd.c void scif_discnt_ack(struct scif_dev *scifdev, struct scifmsg *msg) msg 310 drivers/misc/mic/scif/scif_epd.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; msg 324 drivers/misc/mic/scif/scif_epd.c void scif_clientsend(struct scif_dev *scifdev, struct scifmsg *msg) msg 326 drivers/misc/mic/scif/scif_epd.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; msg 340 drivers/misc/mic/scif/scif_epd.c void scif_clientrcvd(struct scif_dev *scifdev, struct scifmsg *msg) msg 342 drivers/misc/mic/scif/scif_epd.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; msg 38 drivers/misc/mic/scif/scif_epd.h struct scifmsg msg; msg 182 drivers/misc/mic/scif/scif_epd.h int scif_user_send(scif_epd_t epd, void __user *msg, int len, int flags); msg 183 drivers/misc/mic/scif/scif_epd.h int scif_user_recv(scif_epd_t epd, void __user *msg, int len, int flags); msg 184 drivers/misc/mic/scif/scif_epd.h void scif_cnctreq(struct scif_dev *scifdev, struct scifmsg *msg); msg 185 drivers/misc/mic/scif/scif_epd.h void scif_cnctgnt(struct scif_dev *scifdev, struct scifmsg *msg); msg 186 drivers/misc/mic/scif/scif_epd.h void scif_cnctgnt_ack(struct scif_dev *scifdev, struct scifmsg *msg); msg 187 drivers/misc/mic/scif/scif_epd.h void scif_cnctgnt_nack(struct scif_dev *scifdev, struct scifmsg *msg); msg 188 drivers/misc/mic/scif/scif_epd.h void scif_cnctrej(struct scif_dev *scifdev, struct scifmsg *msg); msg 189 drivers/misc/mic/scif/scif_epd.h void scif_discnct(struct scif_dev *scifdev, struct scifmsg *msg); msg 190 drivers/misc/mic/scif/scif_epd.h void scif_discnt_ack(struct scif_dev *scifdev, struct scifmsg *msg); msg 191 drivers/misc/mic/scif/scif_epd.h void scif_clientsend(struct scif_dev *scifdev, struct scifmsg *msg); msg 192 drivers/misc/mic/scif/scif_epd.h void scif_clientrcvd(struct scif_dev *scifdev, struct scifmsg *msg); msg 216 drivers/misc/mic/scif/scif_fd.c err = scif_user_send(priv, (void __user *)request.msg, msg 241 drivers/misc/mic/scif/scif_fd.c err = scif_user_recv(priv, (void __user *)request.msg, msg 18 drivers/misc/mic/scif/scif_fence.c void scif_recv_mark(struct scif_dev *scifdev, struct scifmsg *msg) msg 20 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; msg 26 drivers/misc/mic/scif/scif_fence.c msg->uop = SCIF_MARK_NACK; msg 28 drivers/misc/mic/scif/scif_fence.c msg->uop = SCIF_MARK_ACK; msg 29 drivers/misc/mic/scif/scif_fence.c msg->payload[0] = ep->remote_ep; msg 30 drivers/misc/mic/scif/scif_fence.c msg->payload[2] = mark; msg 31 drivers/misc/mic/scif/scif_fence.c scif_nodeqp_send(ep->remote_dev, msg); msg 40 drivers/misc/mic/scif/scif_fence.c void scif_recv_mark_resp(struct scif_dev *scifdev, struct scifmsg *msg) msg 42 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; msg 44 drivers/misc/mic/scif/scif_fence.c (struct scif_fence_info *)msg->payload[1]; msg 47 drivers/misc/mic/scif/scif_fence.c if (msg->uop == SCIF_MARK_ACK) { msg 49 drivers/misc/mic/scif/scif_fence.c fence_req->dma_mark = (int)msg->payload[2]; msg 63 drivers/misc/mic/scif/scif_fence.c void scif_recv_wait(struct scif_dev *scifdev, struct scifmsg *msg) msg 65 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; msg 75 drivers/misc/mic/scif/scif_fence.c msg->payload[0] = ep->remote_ep; msg 76 drivers/misc/mic/scif/scif_fence.c msg->uop = SCIF_WAIT_NACK; msg 77 drivers/misc/mic/scif/scif_fence.c scif_nodeqp_send(ep->remote_dev, msg); msg 82 drivers/misc/mic/scif/scif_fence.c memcpy(&fence->msg, msg, sizeof(struct scifmsg)); msg 100 drivers/misc/mic/scif/scif_fence.c void scif_recv_wait_resp(struct scif_dev *scifdev, struct scifmsg *msg) msg 102 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; msg 104 drivers/misc/mic/scif/scif_fence.c (struct scif_fence_info *)msg->payload[1]; msg 107 drivers/misc/mic/scif/scif_fence.c if (msg->uop == SCIF_WAIT_ACK) msg 121 drivers/misc/mic/scif/scif_fence.c void scif_recv_sig_local(struct scif_dev *scifdev, struct scifmsg *msg) msg 123 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; msg 126 drivers/misc/mic/scif/scif_fence.c err = scif_prog_signal(ep, msg->payload[1], msg->payload[2], msg 129 drivers/misc/mic/scif/scif_fence.c msg->uop = SCIF_SIG_NACK; msg 131 drivers/misc/mic/scif/scif_fence.c msg->uop = SCIF_SIG_ACK; msg 132 drivers/misc/mic/scif/scif_fence.c msg->payload[0] = ep->remote_ep; msg 133 drivers/misc/mic/scif/scif_fence.c scif_nodeqp_send(ep->remote_dev, msg); msg 142 drivers/misc/mic/scif/scif_fence.c void scif_recv_sig_remote(struct scif_dev *scifdev, struct scifmsg *msg) msg 144 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; msg 147 drivers/misc/mic/scif/scif_fence.c err = scif_prog_signal(ep, msg->payload[1], msg->payload[2], msg 150 drivers/misc/mic/scif/scif_fence.c msg->uop = SCIF_SIG_NACK; msg 152 drivers/misc/mic/scif/scif_fence.c msg->uop = SCIF_SIG_ACK; msg 153 drivers/misc/mic/scif/scif_fence.c msg->payload[0] = ep->remote_ep; msg 154 drivers/misc/mic/scif/scif_fence.c scif_nodeqp_send(ep->remote_dev, msg); msg 163 drivers/misc/mic/scif/scif_fence.c void scif_recv_sig_resp(struct scif_dev *scifdev, struct scifmsg *msg) msg 165 drivers/misc/mic/scif/scif_fence.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; msg 167 drivers/misc/mic/scif/scif_fence.c (struct scif_fence_info *)msg->payload[3]; msg 170 drivers/misc/mic/scif/scif_fence.c if (msg->uop == SCIF_SIG_ACK) msg 380 drivers/misc/mic/scif/scif_fence.c ep = (struct scif_endpt *)fence->msg.payload[0]; msg 381 drivers/misc/mic/scif/scif_fence.c mark = fence->msg.payload[2]; msg 384 drivers/misc/mic/scif/scif_fence.c fence->msg.uop = SCIF_WAIT_NACK; msg 386 drivers/misc/mic/scif/scif_fence.c fence->msg.uop = SCIF_WAIT_ACK; msg 387 drivers/misc/mic/scif/scif_fence.c fence->msg.payload[0] = ep->remote_ep; msg 388 drivers/misc/mic/scif/scif_fence.c scif_nodeqp_send(ep->remote_dev, &fence->msg); msg 399 drivers/misc/mic/scif/scif_fence.c struct scifmsg msg; msg 412 drivers/misc/mic/scif/scif_fence.c msg.src = ep->port; msg 413 drivers/misc/mic/scif/scif_fence.c msg.uop = uop; msg 414 drivers/misc/mic/scif/scif_fence.c msg.payload[0] = ep->remote_ep; msg 415 drivers/misc/mic/scif/scif_fence.c msg.payload[1] = (u64)fence_req; msg 417 drivers/misc/mic/scif/scif_fence.c msg.payload[2] = mark; msg 420 drivers/misc/mic/scif/scif_fence.c err = scif_nodeqp_send(ep->remote_dev, &msg); msg 517 drivers/misc/mic/scif/scif_fence.c struct scifmsg msg; msg 529 drivers/misc/mic/scif/scif_fence.c msg.src = ep->port; msg 531 drivers/misc/mic/scif/scif_fence.c msg.uop = SCIF_SIG_LOCAL; msg 532 drivers/misc/mic/scif/scif_fence.c msg.payload[0] = ep->remote_ep; msg 533 drivers/misc/mic/scif/scif_fence.c msg.payload[1] = roff; msg 534 drivers/misc/mic/scif/scif_fence.c msg.payload[2] = rval; msg 535 drivers/misc/mic/scif/scif_fence.c msg.payload[3] = (u64)fence_req; msg 538 drivers/misc/mic/scif/scif_fence.c err = scif_nodeqp_send(ep->remote_dev, &msg); msg 551 drivers/misc/mic/scif/scif_fence.c msg.uop = SCIF_SIG_REMOTE; msg 552 drivers/misc/mic/scif/scif_fence.c msg.payload[0] = ep->remote_ep; msg 553 drivers/misc/mic/scif/scif_fence.c msg.payload[1] = loff; msg 554 drivers/misc/mic/scif/scif_fence.c msg.payload[2] = lval; msg 555 drivers/misc/mic/scif/scif_fence.c msg.payload[3] = (u64)fence_req; msg 558 drivers/misc/mic/scif/scif_fence.c err = scif_nodeqp_send(ep->remote_dev, &msg); msg 22 drivers/misc/mic/scif/scif_mmap.c void scif_recv_munmap(struct scif_dev *scifdev, struct scifmsg *msg) msg 27 drivers/misc/mic/scif/scif_mmap.c (struct scif_window *)msg->payload[0]; msg 37 drivers/misc/mic/scif/scif_mmap.c msg->payload[0] = ep->remote_ep; msg 44 drivers/misc/mic/scif/scif_mmap.c msg->uop = SCIF_UNREGISTER_ACK; msg 314 drivers/misc/mic/scif/scif_mmap.c struct scifmsg msg; msg 345 drivers/misc/mic/scif/scif_mmap.c msg.uop = SCIF_MUNMAP; msg 346 drivers/misc/mic/scif/scif_mmap.c msg.src = ep->port; msg 347 drivers/misc/mic/scif/scif_mmap.c msg.payload[0] = window->peer_window; msg 349 drivers/misc/mic/scif/scif_mmap.c scif_nodeqp_send(ep->remote_dev, &msg); msg 452 drivers/misc/mic/scif/scif_mmap.c struct scifmsg msg; msg 459 drivers/misc/mic/scif/scif_mmap.c msg.uop = SCIF_MUNMAP; msg 460 drivers/misc/mic/scif/scif_mmap.c msg.src = ep->port; msg 476 drivers/misc/mic/scif/scif_mmap.c msg.payload[0] = window->peer_window; msg 478 drivers/misc/mic/scif/scif_mmap.c scif_nodeqp_send(ep->remote_dev, &msg); msg 83 drivers/misc/mic/scif/scif_nm.c struct scifmsg msg; msg 86 drivers/misc/mic/scif/scif_nm.c msg.uop = SCIF_NODE_REMOVE_ACK; msg 87 drivers/misc/mic/scif/scif_nm.c msg.src.node = scif_info.nodeid; msg 88 drivers/misc/mic/scif/scif_nm.c msg.dst.node = SCIF_MGMT_NODE; msg 89 drivers/misc/mic/scif/scif_nm.c msg.payload[0] = dev->node; msg 90 drivers/misc/mic/scif/scif_nm.c scif_nodeqp_send(&scif_dev[SCIF_MGMT_NODE], &msg); msg 94 drivers/misc/mic/scif/scif_nm.c msg.uop = SCIF_EXIT_ACK; msg 95 drivers/misc/mic/scif/scif_nm.c msg.src.node = scif_info.nodeid; msg 96 drivers/misc/mic/scif/scif_nm.c msg.dst.node = dev->node; msg 97 drivers/misc/mic/scif/scif_nm.c scif_nodeqp_send(dev, &msg); msg 215 drivers/misc/mic/scif/scif_nm.c struct scifmsg msg; msg 218 drivers/misc/mic/scif/scif_nm.c msg.uop = SCIF_GET_NODE_INFO; msg 219 drivers/misc/mic/scif/scif_nm.c msg.src.node = scif_info.nodeid; msg 220 drivers/misc/mic/scif/scif_nm.c msg.dst.node = SCIF_MGMT_NODE; msg 221 drivers/misc/mic/scif/scif_nm.c msg.payload[3] = (u64)&node_info; msg 223 drivers/misc/mic/scif/scif_nm.c if ((scif_nodeqp_send(&scif_dev[SCIF_MGMT_NODE], &msg))) msg 289 drivers/misc/mic/scif/scif_nodeqp.c struct scifmsg msg; msg 297 drivers/misc/mic/scif/scif_nodeqp.c msg.uop = SCIF_INIT; msg 298 drivers/misc/mic/scif/scif_nodeqp.c msg.dst.node = scifdev->node; msg 299 drivers/misc/mic/scif/scif_nodeqp.c err = scif_nodeqp_send(scifdev, &msg); msg 306 drivers/misc/mic/scif/scif_nodeqp.c struct scifmsg msg; msg 310 drivers/misc/mic/scif/scif_nodeqp.c msg.uop = SCIF_EXIT; msg 311 drivers/misc/mic/scif/scif_nodeqp.c msg.src.node = scif_info.nodeid; msg 312 drivers/misc/mic/scif/scif_nodeqp.c msg.dst.node = scifdev->node; msg 313 drivers/misc/mic/scif/scif_nodeqp.c ret = scif_nodeqp_send(scifdev, &msg); msg 459 drivers/misc/mic/scif/scif_nodeqp.c struct scifmsg msg; msg 497 drivers/misc/mic/scif/scif_nodeqp.c msg.uop = SCIF_NODE_ADD; msg 498 drivers/misc/mic/scif/scif_nodeqp.c msg.src.node = dev_j->node; msg 499 drivers/misc/mic/scif/scif_nodeqp.c msg.dst.node = dev_i->node; msg 501 drivers/misc/mic/scif/scif_nodeqp.c msg.payload[0] = p2p_ji->ppi_da[SCIF_PPI_APER]; msg 502 drivers/misc/mic/scif/scif_nodeqp.c msg.payload[1] = p2p_ij->ppi_da[SCIF_PPI_MMIO]; msg 503 drivers/misc/mic/scif/scif_nodeqp.c msg.payload[2] = p2p_ij->ppi_da[SCIF_PPI_APER]; msg 504 drivers/misc/mic/scif/scif_nodeqp.c msg.payload[3] = p2p_ij->ppi_len[SCIF_PPI_APER] << PAGE_SHIFT; msg 506 drivers/misc/mic/scif/scif_nodeqp.c err = scif_nodeqp_send(dev_i, &msg); msg 514 drivers/misc/mic/scif/scif_nodeqp.c msg.uop = SCIF_NODE_ADD; msg 515 drivers/misc/mic/scif/scif_nodeqp.c msg.src.node = dev_i->node; msg 516 drivers/misc/mic/scif/scif_nodeqp.c msg.dst.node = dev_j->node; msg 518 drivers/misc/mic/scif/scif_nodeqp.c tmppayload = msg.payload[0]; msg 519 drivers/misc/mic/scif/scif_nodeqp.c msg.payload[0] = msg.payload[2]; msg 520 drivers/misc/mic/scif/scif_nodeqp.c msg.payload[2] = tmppayload; msg 521 drivers/misc/mic/scif/scif_nodeqp.c msg.payload[1] = p2p_ji->ppi_da[SCIF_PPI_MMIO]; msg 522 drivers/misc/mic/scif/scif_nodeqp.c msg.payload[3] = p2p_ji->ppi_len[SCIF_PPI_APER] << PAGE_SHIFT; msg 524 drivers/misc/mic/scif/scif_nodeqp.c scif_nodeqp_send(dev_j, &msg); msg 592 drivers/misc/mic/scif/scif_nodeqp.c scif_display_message(struct scif_dev *scifdev, struct scifmsg *msg, msg 597 drivers/misc/mic/scif/scif_nodeqp.c if (msg->uop > SCIF_MAX_MSG) { msg 599 drivers/misc/mic/scif/scif_nodeqp.c "%s: unknown msg type %d\n", label, msg->uop); msg 604 drivers/misc/mic/scif/scif_nodeqp.c label, message_types[msg->uop], msg->src.node, msg->src.port, msg 605 drivers/misc/mic/scif/scif_nodeqp.c msg->dst.node, msg->dst.port, msg->payload[0], msg->payload[1], msg 606 drivers/misc/mic/scif/scif_nodeqp.c msg->payload[2], msg->payload[3]); msg 609 drivers/misc/mic/scif/scif_nodeqp.c int _scif_nodeqp_send(struct scif_dev *scifdev, struct scifmsg *msg) msg 614 drivers/misc/mic/scif/scif_nodeqp.c scif_display_message(scifdev, msg, "Sent"); msg 622 drivers/misc/mic/scif/scif_nodeqp.c msg, sizeof(struct scifmsg)))) { msg 648 drivers/misc/mic/scif/scif_nodeqp.c __func__, __LINE__, err, msg->uop); msg 657 drivers/misc/mic/scif/scif_nodeqp.c int scif_nodeqp_send(struct scif_dev *scifdev, struct scifmsg *msg) msg 662 drivers/misc/mic/scif/scif_nodeqp.c if (msg->uop > SCIF_EXIT_ACK) { msg 672 drivers/misc/mic/scif/scif_nodeqp.c err = _scif_nodeqp_send(scifdev, msg); msg 673 drivers/misc/mic/scif/scif_nodeqp.c if (msg->uop > SCIF_EXIT_ACK) msg 702 drivers/misc/mic/scif/scif_nodeqp.c scif_init(struct scif_dev *scifdev, struct scifmsg *msg) msg 768 drivers/misc/mic/scif/scif_nodeqp.c scif_node_add(struct scif_dev *scifdev, struct scifmsg *msg) msg 777 drivers/misc/mic/scif/scif_nodeqp.c scifdev->node, msg->dst.node, msg->src.node); msg 780 drivers/misc/mic/scif/scif_nodeqp.c msg->payload[0]); msg 781 drivers/misc/mic/scif/scif_nodeqp.c newdev = &scif_dev[msg->src.node]; msg 782 drivers/misc/mic/scif/scif_nodeqp.c newdev->node = msg->src.node; msg 788 drivers/misc/mic/scif/scif_nodeqp.c "failed to setup interrupts for %d\n", msg->src.node); msg 791 drivers/misc/mic/scif/scif_nodeqp.c newdev->mmio.va = ioremap_nocache(msg->payload[1], sdev->mmio->len); msg 794 drivers/misc/mic/scif/scif_nodeqp.c "failed to map mmio for %d\n", msg->src.node); msg 804 drivers/misc/mic/scif/scif_nodeqp.c newdev->base_addr = msg->payload[0]; msg 823 drivers/misc/mic/scif/scif_nodeqp.c msg->uop = SCIF_NODE_ADD_ACK; msg 824 drivers/misc/mic/scif/scif_nodeqp.c msg->dst.node = msg->src.node; msg 825 drivers/misc/mic/scif/scif_nodeqp.c msg->src.node = scif_info.nodeid; msg 826 drivers/misc/mic/scif/scif_nodeqp.c msg->payload[0] = qp_offset; msg 827 drivers/misc/mic/scif/scif_nodeqp.c msg->payload[2] = newdev->db; msg 828 drivers/misc/mic/scif/scif_nodeqp.c scif_nodeqp_send(&scif_dev[SCIF_MGMT_NODE], msg); msg 839 drivers/misc/mic/scif/scif_nodeqp.c "node add failed for node %d\n", msg->src.node); msg 840 drivers/misc/mic/scif/scif_nodeqp.c msg->uop = SCIF_NODE_ADD_NACK; msg 841 drivers/misc/mic/scif/scif_nodeqp.c msg->dst.node = msg->src.node; msg 842 drivers/misc/mic/scif/scif_nodeqp.c msg->src.node = scif_info.nodeid; msg 843 drivers/misc/mic/scif/scif_nodeqp.c scif_nodeqp_send(&scif_dev[SCIF_MGMT_NODE], msg); msg 886 drivers/misc/mic/scif/scif_nodeqp.c scif_node_add_ack(struct scif_dev *scifdev, struct scifmsg *msg) msg 890 drivers/misc/mic/scif/scif_nodeqp.c struct scif_dev *dst_dev = &scif_dev[msg->dst.node]; msg 894 drivers/misc/mic/scif/scif_nodeqp.c scifdev->node, msg->src.node, msg->dst.node); msg 896 drivers/misc/mic/scif/scif_nodeqp.c "payload %llx %llx %llx %llx\n", msg->payload[0], msg 897 drivers/misc/mic/scif/scif_nodeqp.c msg->payload[1], msg->payload[2], msg->payload[3]); msg 906 drivers/misc/mic/scif/scif_nodeqp.c msg->payload[1] = scif_info.maxid; msg 907 drivers/misc/mic/scif/scif_nodeqp.c scif_nodeqp_send(dst_dev, msg); msg 911 drivers/misc/mic/scif/scif_nodeqp.c peerdev = &scif_dev[msg->src.node]; msg 913 drivers/misc/mic/scif/scif_nodeqp.c peerdev->node = msg->src.node; msg 918 drivers/misc/mic/scif/scif_nodeqp.c msg->payload[0]))) msg 920 drivers/misc/mic/scif/scif_nodeqp.c peerdev->rdb = msg->payload[2]; msg 938 drivers/misc/mic/scif/scif_nodeqp.c scif_node_add_nack(struct scif_dev *scifdev, struct scifmsg *msg) msg 941 drivers/misc/mic/scif/scif_nodeqp.c struct scif_dev *dst_dev = &scif_dev[msg->dst.node]; msg 945 drivers/misc/mic/scif/scif_nodeqp.c scif_nodeqp_send(dst_dev, msg); msg 956 drivers/misc/mic/scif/scif_nodeqp.c scif_node_remove(struct scif_dev *scifdev, struct scifmsg *msg) msg 958 drivers/misc/mic/scif/scif_nodeqp.c int node = msg->payload[0]; msg 972 drivers/misc/mic/scif/scif_nodeqp.c scif_node_remove_ack(struct scif_dev *scifdev, struct scifmsg *msg) msg 974 drivers/misc/mic/scif/scif_nodeqp.c struct scif_dev *sdev = &scif_dev[msg->payload[0]]; msg 987 drivers/misc/mic/scif/scif_nodeqp.c scif_get_node_info_resp(struct scif_dev *scifdev, struct scifmsg *msg) msg 990 drivers/misc/mic/scif/scif_nodeqp.c swap(msg->dst.node, msg->src.node); msg 992 drivers/misc/mic/scif/scif_nodeqp.c msg->payload[1] = scif_info.maxid; msg 993 drivers/misc/mic/scif/scif_nodeqp.c msg->payload[2] = scif_info.total; msg 995 drivers/misc/mic/scif/scif_nodeqp.c scif_nodeqp_send(scifdev, msg); msg 998 drivers/misc/mic/scif/scif_nodeqp.c (struct completion *)msg->payload[3]; msg 1001 drivers/misc/mic/scif/scif_nodeqp.c scif_info.maxid = msg->payload[1]; msg 1002 drivers/misc/mic/scif/scif_nodeqp.c scif_info.total = msg->payload[2]; msg 1009 drivers/misc/mic/scif/scif_nodeqp.c scif_msg_unknown(struct scif_dev *scifdev, struct scifmsg *msg) msg 1014 drivers/misc/mic/scif/scif_nodeqp.c msg->uop, scifdev->node); msg 1018 drivers/misc/mic/scif/scif_nodeqp.c (struct scif_dev *, struct scifmsg *msg) = { msg 1074 drivers/misc/mic/scif/scif_nodeqp.c struct scif_qp *qp, struct scifmsg *msg) msg 1076 drivers/misc/mic/scif/scif_nodeqp.c scif_display_message(scifdev, msg, "Rcvd"); msg 1078 drivers/misc/mic/scif/scif_nodeqp.c if (msg->uop > (u32)scif_max_msg_id) { msg 1082 drivers/misc/mic/scif/scif_nodeqp.c msg->uop, scifdev->node); msg 1086 drivers/misc/mic/scif/scif_nodeqp.c scif_intr_func[msg->uop](scifdev, msg); msg 1100 drivers/misc/mic/scif/scif_nodeqp.c struct scifmsg msg; msg 1104 drivers/misc/mic/scif/scif_nodeqp.c read_size = scif_rb_get_next(&qp->inbound_q, &msg, sizeof(msg)); msg 1107 drivers/misc/mic/scif/scif_nodeqp.c scif_nodeqp_msg_handler(scifdev, qp, &msg); msg 1112 drivers/misc/mic/scif/scif_nodeqp.c if (SCIF_EXIT_ACK == msg.uop) msg 1132 drivers/misc/mic/scif/scif_nodeqp.c struct scif_loopb_msg *msg; msg 1135 drivers/misc/mic/scif/scif_nodeqp.c msg = NULL; msg 1138 drivers/misc/mic/scif/scif_nodeqp.c msg = list_first_entry(&scif_info.loopb_recv_q, msg 1141 drivers/misc/mic/scif/scif_nodeqp.c list_del(&msg->list); msg 1145 drivers/misc/mic/scif/scif_nodeqp.c if (msg) { msg 1146 drivers/misc/mic/scif/scif_nodeqp.c scif_nodeqp_msg_handler(scifdev, qp, &msg->msg); msg 1147 drivers/misc/mic/scif/scif_nodeqp.c kfree(msg); msg 1149 drivers/misc/mic/scif/scif_nodeqp.c } while (msg); msg 1188 drivers/misc/mic/scif/scif_nodeqp.c struct scif_loopb_msg *msg; msg 1191 drivers/misc/mic/scif/scif_nodeqp.c msg = kmalloc(sizeof(*msg), GFP_KERNEL); msg 1192 drivers/misc/mic/scif/scif_nodeqp.c if (!msg) msg 1194 drivers/misc/mic/scif/scif_nodeqp.c read_size = scif_rb_get_next(&qp->inbound_q, &msg->msg, msg 1197 drivers/misc/mic/scif/scif_nodeqp.c kfree(msg); msg 1202 drivers/misc/mic/scif/scif_nodeqp.c list_add_tail(&msg->list, &scif_info.loopb_recv_q); msg 180 drivers/misc/mic/scif/scif_nodeqp.h struct scifmsg msg; msg 184 drivers/misc/mic/scif/scif_nodeqp.h int scif_nodeqp_send(struct scif_dev *scifdev, struct scifmsg *msg); msg 185 drivers/misc/mic/scif/scif_nodeqp.h int _scif_nodeqp_send(struct scif_dev *scifdev, struct scifmsg *msg); msg 40 drivers/misc/mic/scif/scif_rb.c void *msg, u32 size) msg 48 drivers/misc/mic/scif/scif_rb.c memcpy_toio((void __iomem __force *)header, msg, size1); msg 50 drivers/misc/mic/scif/scif_rb.c msg + size1, size2); msg 52 drivers/misc/mic/scif/scif_rb.c memcpy_toio((void __iomem __force *)header, msg, size); msg 58 drivers/misc/mic/scif/scif_rb.c void *msg, u32 size) msg 66 drivers/misc/mic/scif/scif_rb.c memcpy_fromio(msg, (void __iomem __force *)header, size1); msg 67 drivers/misc/mic/scif/scif_rb.c memcpy_fromio(msg + size1, msg 70 drivers/misc/mic/scif/scif_rb.c memcpy_fromio(msg, (void __iomem __force *)header, size); msg 102 drivers/misc/mic/scif/scif_rb.c int scif_rb_write(struct scif_rb *rb, void *msg, u32 size) msg 109 drivers/misc/mic/scif/scif_rb.c memcpy_torb(rb, header, msg, size); msg 171 drivers/misc/mic/scif/scif_rb.c u32 scif_rb_get_next(struct scif_rb *rb, void *msg, u32 size) msg 183 drivers/misc/mic/scif/scif_rb.c memcpy_fromrb(rb, header, msg, size); msg 87 drivers/misc/mic/scif/scif_rb.h int scif_rb_write(struct scif_rb *rb, void *msg, u32 size); msg 95 drivers/misc/mic/scif/scif_rb.h u32 scif_rb_get_next(struct scif_rb *rb, void *msg, u32 size); msg 190 drivers/misc/mic/scif/scif_rma.c struct scifmsg msg; msg 202 drivers/misc/mic/scif/scif_rma.c msg.uop = SCIF_FREE_VIRT; msg 203 drivers/misc/mic/scif/scif_rma.c msg.src = ep->port; msg 204 drivers/misc/mic/scif/scif_rma.c msg.payload[0] = ep->remote_ep; msg 205 drivers/misc/mic/scif/scif_rma.c msg.payload[1] = window->alloc_handle.vaddr; msg 206 drivers/misc/mic/scif/scif_rma.c msg.payload[2] = (u64)window; msg 207 drivers/misc/mic/scif/scif_rma.c msg.payload[3] = SCIF_REGISTER; msg 208 drivers/misc/mic/scif/scif_rma.c _scif_nodeqp_send(ep->remote_dev, &msg); msg 630 drivers/misc/mic/scif/scif_rma.c struct scifmsg msg; msg 632 drivers/misc/mic/scif/scif_rma.c msg.uop = SCIF_UNREGISTER; msg 633 drivers/misc/mic/scif/scif_rma.c msg.src = ep->port; msg 634 drivers/misc/mic/scif/scif_rma.c msg.payload[0] = window->alloc_handle.vaddr; msg 635 drivers/misc/mic/scif/scif_rma.c msg.payload[1] = (u64)window; msg 636 drivers/misc/mic/scif/scif_rma.c return scif_nodeqp_send(ep->remote_dev, &msg); msg 743 drivers/misc/mic/scif/scif_rma.c struct scifmsg msg; msg 751 drivers/misc/mic/scif/scif_rma.c msg.uop = SCIF_ALLOC_REQ; msg 752 drivers/misc/mic/scif/scif_rma.c msg.payload[1] = window->nr_pages; msg 753 drivers/misc/mic/scif/scif_rma.c msg.payload[2] = (u64)&window->alloc_handle; msg 754 drivers/misc/mic/scif/scif_rma.c return _scif_nodeqp_send(ep->remote_dev, &msg); msg 768 drivers/misc/mic/scif/scif_rma.c struct scifmsg msg; msg 809 drivers/misc/mic/scif/scif_rma.c msg.uop = SCIF_FREE_VIRT; msg 810 drivers/misc/mic/scif/scif_rma.c msg.src = ep->port; msg 811 drivers/misc/mic/scif/scif_rma.c msg.payload[0] = ep->remote_ep; msg 812 drivers/misc/mic/scif/scif_rma.c msg.payload[1] = window->alloc_handle.vaddr; msg 813 drivers/misc/mic/scif/scif_rma.c msg.payload[2] = (u64)window; msg 814 drivers/misc/mic/scif/scif_rma.c msg.payload[3] = SCIF_REGISTER; msg 817 drivers/misc/mic/scif/scif_rma.c err = _scif_nodeqp_send(ep->remote_dev, &msg); msg 946 drivers/misc/mic/scif/scif_rma.c struct scifmsg msg; msg 948 drivers/misc/mic/scif/scif_rma.c msg.src = ep->port; msg 949 drivers/misc/mic/scif/scif_rma.c msg.payload[0] = ep->remote_ep; msg 950 drivers/misc/mic/scif/scif_rma.c msg.payload[1] = window->alloc_handle.vaddr; msg 951 drivers/misc/mic/scif/scif_rma.c msg.payload[2] = (u64)window; msg 954 drivers/misc/mic/scif/scif_rma.c msg.uop = SCIF_REGISTER; msg 956 drivers/misc/mic/scif/scif_rma.c err = _scif_nodeqp_send(ep->remote_dev, &msg); msg 972 drivers/misc/mic/scif/scif_rma.c msg.uop = SCIF_FREE_VIRT; msg 973 drivers/misc/mic/scif/scif_rma.c msg.payload[3] = SCIF_REGISTER; msg 974 drivers/misc/mic/scif/scif_rma.c err = _scif_nodeqp_send(ep->remote_dev, &msg); msg 1041 drivers/misc/mic/scif/scif_rma.c void scif_alloc_req(struct scif_dev *scifdev, struct scifmsg *msg) msg 1045 drivers/misc/mic/scif/scif_rma.c int nr_pages = msg->payload[1]; msg 1054 drivers/misc/mic/scif/scif_rma.c msg->uop = SCIF_ALLOC_GNT; msg 1055 drivers/misc/mic/scif/scif_rma.c msg->payload[0] = (u64)window; msg 1056 drivers/misc/mic/scif/scif_rma.c msg->payload[1] = window->mapped_offset; msg 1057 drivers/misc/mic/scif/scif_rma.c err = scif_nodeqp_send(scifdev, msg); msg 1066 drivers/misc/mic/scif/scif_rma.c msg->uop = SCIF_ALLOC_REJ; msg 1067 drivers/misc/mic/scif/scif_rma.c scif_nodeqp_send(scifdev, msg); msg 1076 drivers/misc/mic/scif/scif_rma.c void scif_alloc_gnt_rej(struct scif_dev *scifdev, struct scifmsg *msg) msg 1078 drivers/misc/mic/scif/scif_rma.c struct scif_allocmsg *handle = (struct scif_allocmsg *)msg->payload[2]; msg 1084 drivers/misc/mic/scif/scif_rma.c handle->vaddr = msg->payload[0]; msg 1085 drivers/misc/mic/scif/scif_rma.c handle->phys_addr = msg->payload[1]; msg 1086 drivers/misc/mic/scif/scif_rma.c if (msg->uop == SCIF_ALLOC_GNT) msg 1100 drivers/misc/mic/scif/scif_rma.c void scif_free_virt(struct scif_dev *scifdev, struct scifmsg *msg) msg 1102 drivers/misc/mic/scif/scif_rma.c struct scif_window *window = (struct scif_window *)msg->payload[1]; msg 1138 drivers/misc/mic/scif/scif_rma.c void scif_recv_reg(struct scif_dev *scifdev, struct scifmsg *msg) msg 1140 drivers/misc/mic/scif/scif_rma.c struct scif_endpt *ep = (struct scif_endpt *)msg->payload[0]; msg 1142 drivers/misc/mic/scif/scif_rma.c (struct scif_window *)msg->payload[1]; msg 1147 drivers/misc/mic/scif/scif_rma.c msg->uop = SCIF_REGISTER_ACK; msg 1148 drivers/misc/mic/scif/scif_rma.c scif_nodeqp_send(ep->remote_dev, msg); msg 1153 drivers/misc/mic/scif/scif_rma.c msg->uop = SCIF_REGISTER_NACK; msg 1154 drivers/misc/mic/scif/scif_rma.c scif_nodeqp_send(ep->remote_dev, msg); msg 1164 drivers/misc/mic/scif/scif_rma.c if (msg->uop == SCIF_REGISTER_NACK) msg 1174 drivers/misc/mic/scif/scif_rma.c void scif_recv_unreg(struct scif_dev *scifdev, struct scifmsg *msg) msg 1179 drivers/misc/mic/scif/scif_rma.c (struct scif_window *)msg->payload[0]; msg 1190 drivers/misc/mic/scif/scif_rma.c msg->payload[0] = ep->remote_ep; msg 1197 drivers/misc/mic/scif/scif_rma.c msg->uop = SCIF_UNREGISTER_ACK; msg 1209 drivers/misc/mic/scif/scif_rma.c msg->uop = SCIF_UNREGISTER_ACK; msg 1216 drivers/misc/mic/scif/scif_rma.c msg->uop = SCIF_UNREGISTER_NACK; msg 1220 drivers/misc/mic/scif/scif_rma.c msg->uop = SCIF_UNREGISTER_ACK; msg 1228 drivers/misc/mic/scif/scif_rma.c scif_nodeqp_send(ep->remote_dev, msg); msg 1239 drivers/misc/mic/scif/scif_rma.c void scif_recv_reg_ack(struct scif_dev *scifdev, struct scifmsg *msg) msg 1242 drivers/misc/mic/scif/scif_rma.c (struct scif_window *)msg->payload[2]; msg 1258 drivers/misc/mic/scif/scif_rma.c void scif_recv_reg_nack(struct scif_dev *scifdev, struct scifmsg *msg) msg 1261 drivers/misc/mic/scif/scif_rma.c (struct scif_window *)msg->payload[2]; msg 1276 drivers/misc/mic/scif/scif_rma.c void scif_recv_unreg_ack(struct scif_dev *scifdev, struct scifmsg *msg) msg 1279 drivers/misc/mic/scif/scif_rma.c (struct scif_window *)msg->payload[1]; msg 1295 drivers/misc/mic/scif/scif_rma.c void scif_recv_unreg_nack(struct scif_dev *scifdev, struct scifmsg *msg) msg 1298 drivers/misc/mic/scif/scif_rma.c (struct scif_window *)msg->payload[1]; msg 137 drivers/misc/mic/scif/scif_rma.h struct scifmsg msg; msg 353 drivers/misc/mic/scif/scif_rma.h void scif_alloc_req(struct scif_dev *scifdev, struct scifmsg *msg); msg 354 drivers/misc/mic/scif/scif_rma.h void scif_alloc_gnt_rej(struct scif_dev *scifdev, struct scifmsg *msg); msg 355 drivers/misc/mic/scif/scif_rma.h void scif_free_virt(struct scif_dev *scifdev, struct scifmsg *msg); msg 356 drivers/misc/mic/scif/scif_rma.h void scif_recv_reg(struct scif_dev *scifdev, struct scifmsg *msg); msg 357 drivers/misc/mic/scif/scif_rma.h void scif_recv_unreg(struct scif_dev *scifdev, struct scifmsg *msg); msg 358 drivers/misc/mic/scif/scif_rma.h void scif_recv_reg_ack(struct scif_dev *scifdev, struct scifmsg *msg); msg 359 drivers/misc/mic/scif/scif_rma.h void scif_recv_reg_nack(struct scif_dev *scifdev, struct scifmsg *msg); msg 360 drivers/misc/mic/scif/scif_rma.h void scif_recv_unreg_ack(struct scif_dev *scifdev, struct scifmsg *msg); msg 361 drivers/misc/mic/scif/scif_rma.h void scif_recv_unreg_nack(struct scif_dev *scifdev, struct scifmsg *msg); msg 362 drivers/misc/mic/scif/scif_rma.h void scif_recv_munmap(struct scif_dev *scifdev, struct scifmsg *msg); msg 363 drivers/misc/mic/scif/scif_rma.h void scif_recv_mark(struct scif_dev *scifdev, struct scifmsg *msg); msg 364 drivers/misc/mic/scif/scif_rma.h void scif_recv_mark_resp(struct scif_dev *scifdev, struct scifmsg *msg); msg 365 drivers/misc/mic/scif/scif_rma.h void scif_recv_wait(struct scif_dev *scifdev, struct scifmsg *msg); msg 366 drivers/misc/mic/scif/scif_rma.h void scif_recv_wait_resp(struct scif_dev *scifdev, struct scifmsg *msg); msg 367 drivers/misc/mic/scif/scif_rma.h void scif_recv_sig_local(struct scif_dev *scifdev, struct scifmsg *msg); msg 368 drivers/misc/mic/scif/scif_rma.h void scif_recv_sig_remote(struct scif_dev *scifdev, struct scifmsg *msg); msg 369 drivers/misc/mic/scif/scif_rma.h void scif_recv_sig_resp(struct scif_dev *scifdev, struct scifmsg *msg); msg 336 drivers/misc/sgi-xp/xpc_uv.c xpc_send_gru_msg(struct gru_message_queue_desc *gru_mq_desc, void *msg, msg 343 drivers/misc/sgi-xp/xpc_uv.c ret = gru_send_message_gpa(gru_mq_desc, msg, msg_size); msg 440 drivers/misc/sgi-xp/xpc_uv.c struct xpc_activate_mq_msg_activate_req_uv *msg; msg 447 drivers/misc/sgi-xp/xpc_uv.c msg = container_of(msg_hdr, struct msg 454 drivers/misc/sgi-xp/xpc_uv.c part->remote_rp_pa = msg->rp_gpa; /* !!! _pa is _gpa */ msg 456 drivers/misc/sgi-xp/xpc_uv.c part_uv->heartbeat_gpa = msg->heartbeat_gpa; msg 458 drivers/misc/sgi-xp/xpc_uv.c if (msg->activate_gru_mq_desc_gpa != msg 464 drivers/misc/sgi-xp/xpc_uv.c msg->activate_gru_mq_desc_gpa; msg 472 drivers/misc/sgi-xp/xpc_uv.c struct xpc_activate_mq_msg_deactivate_req_uv *msg; msg 474 drivers/misc/sgi-xp/xpc_uv.c msg = container_of(msg_hdr, struct msg 481 drivers/misc/sgi-xp/xpc_uv.c part_uv->reason = msg->reason; msg 488 drivers/misc/sgi-xp/xpc_uv.c struct xpc_activate_mq_msg_chctl_closerequest_uv *msg; msg 493 drivers/misc/sgi-xp/xpc_uv.c msg = container_of(msg_hdr, struct msg 496 drivers/misc/sgi-xp/xpc_uv.c args = &part->remote_openclose_args[msg->ch_number]; msg 497 drivers/misc/sgi-xp/xpc_uv.c args->reason = msg->reason; msg 500 drivers/misc/sgi-xp/xpc_uv.c part->chctl.flags[msg->ch_number] |= XPC_CHCTL_CLOSEREQUEST; msg 507 drivers/misc/sgi-xp/xpc_uv.c struct xpc_activate_mq_msg_chctl_closereply_uv *msg; msg 512 drivers/misc/sgi-xp/xpc_uv.c msg = container_of(msg_hdr, struct msg 517 drivers/misc/sgi-xp/xpc_uv.c part->chctl.flags[msg->ch_number] |= XPC_CHCTL_CLOSEREPLY; msg 524 drivers/misc/sgi-xp/xpc_uv.c struct xpc_activate_mq_msg_chctl_openrequest_uv *msg; msg 529 drivers/misc/sgi-xp/xpc_uv.c msg = container_of(msg_hdr, struct msg 532 drivers/misc/sgi-xp/xpc_uv.c args = &part->remote_openclose_args[msg->ch_number]; msg 533 drivers/misc/sgi-xp/xpc_uv.c args->entry_size = msg->entry_size; msg 534 drivers/misc/sgi-xp/xpc_uv.c args->local_nentries = msg->local_nentries; msg 537 drivers/misc/sgi-xp/xpc_uv.c part->chctl.flags[msg->ch_number] |= XPC_CHCTL_OPENREQUEST; msg 544 drivers/misc/sgi-xp/xpc_uv.c struct xpc_activate_mq_msg_chctl_openreply_uv *msg; msg 549 drivers/misc/sgi-xp/xpc_uv.c msg = container_of(msg_hdr, struct msg 551 drivers/misc/sgi-xp/xpc_uv.c args = &part->remote_openclose_args[msg->ch_number]; msg 552 drivers/misc/sgi-xp/xpc_uv.c args->remote_nentries = msg->remote_nentries; msg 553 drivers/misc/sgi-xp/xpc_uv.c args->local_nentries = msg->local_nentries; msg 554 drivers/misc/sgi-xp/xpc_uv.c args->local_msgqueue_pa = msg->notify_gru_mq_desc_gpa; msg 557 drivers/misc/sgi-xp/xpc_uv.c part->chctl.flags[msg->ch_number] |= XPC_CHCTL_OPENREPLY; msg 564 drivers/misc/sgi-xp/xpc_uv.c struct xpc_activate_mq_msg_chctl_opencomplete_uv *msg; msg 569 drivers/misc/sgi-xp/xpc_uv.c msg = container_of(msg_hdr, struct msg 572 drivers/misc/sgi-xp/xpc_uv.c part->chctl.flags[msg->ch_number] |= XPC_CHCTL_OPENCOMPLETE; msg 676 drivers/misc/sgi-xp/xpc_uv.c xpc_send_activate_IRQ_uv(struct xpc_partition *part, void *msg, size_t msg_size, msg 679 drivers/misc/sgi-xp/xpc_uv.c struct xpc_activate_mq_msghdr_uv *msg_hdr = msg; msg 719 drivers/misc/sgi-xp/xpc_uv.c ret = xpc_send_gru_msg(part_uv->cached_activate_gru_mq_desc, msg, msg 732 drivers/misc/sgi-xp/xpc_uv.c xpc_send_activate_IRQ_part_uv(struct xpc_partition *part, void *msg, msg 737 drivers/misc/sgi-xp/xpc_uv.c ret = xpc_send_activate_IRQ_uv(part, msg, msg_size, msg_type); msg 744 drivers/misc/sgi-xp/xpc_uv.c void *msg, size_t msg_size, int msg_type) msg 749 drivers/misc/sgi-xp/xpc_uv.c ret = xpc_send_activate_IRQ_uv(part, msg, msg_size, msg_type); msg 902 drivers/misc/sgi-xp/xpc_uv.c struct xpc_activate_mq_msg_activate_req_uv msg; msg 915 drivers/misc/sgi-xp/xpc_uv.c msg.rp_gpa = uv_gpa(xpc_rsvd_page); msg 916 drivers/misc/sgi-xp/xpc_uv.c msg.heartbeat_gpa = xpc_rsvd_page->sn.uv.heartbeat_gpa; msg 917 drivers/misc/sgi-xp/xpc_uv.c msg.activate_gru_mq_desc_gpa = msg 919 drivers/misc/sgi-xp/xpc_uv.c xpc_send_activate_IRQ_part_uv(part, &msg, sizeof(msg), msg 936 drivers/misc/sgi-xp/xpc_uv.c struct xpc_activate_mq_msg_deactivate_req_uv msg; msg 945 drivers/misc/sgi-xp/xpc_uv.c msg.reason = part->reason; msg 946 drivers/misc/sgi-xp/xpc_uv.c xpc_send_activate_IRQ_part_uv(part, &msg, sizeof(msg), msg 1044 drivers/misc/sgi-xp/xpc_uv.c struct xpc_activate_mq_msg_uv msg; msg 1051 drivers/misc/sgi-xp/xpc_uv.c xpc_send_activate_IRQ_part_uv(part, &msg, sizeof(msg), msg 1206 drivers/misc/sgi-xp/xpc_uv.c struct xpc_activate_mq_msg_chctl_closerequest_uv msg; msg 1208 drivers/misc/sgi-xp/xpc_uv.c msg.ch_number = ch->number; msg 1209 drivers/misc/sgi-xp/xpc_uv.c msg.reason = ch->reason; msg 1210 drivers/misc/sgi-xp/xpc_uv.c xpc_send_activate_IRQ_ch_uv(ch, irq_flags, &msg, sizeof(msg), msg 1217 drivers/misc/sgi-xp/xpc_uv.c struct xpc_activate_mq_msg_chctl_closereply_uv msg; msg 1219 drivers/misc/sgi-xp/xpc_uv.c msg.ch_number = ch->number; msg 1220 drivers/misc/sgi-xp/xpc_uv.c xpc_send_activate_IRQ_ch_uv(ch, irq_flags, &msg, sizeof(msg), msg 1227 drivers/misc/sgi-xp/xpc_uv.c struct xpc_activate_mq_msg_chctl_openrequest_uv msg; msg 1229 drivers/misc/sgi-xp/xpc_uv.c msg.ch_number = ch->number; msg 1230 drivers/misc/sgi-xp/xpc_uv.c msg.entry_size = ch->entry_size; msg 1231 drivers/misc/sgi-xp/xpc_uv.c msg.local_nentries = ch->local_nentries; msg 1232 drivers/misc/sgi-xp/xpc_uv.c xpc_send_activate_IRQ_ch_uv(ch, irq_flags, &msg, sizeof(msg), msg 1239 drivers/misc/sgi-xp/xpc_uv.c struct xpc_activate_mq_msg_chctl_openreply_uv msg; msg 1241 drivers/misc/sgi-xp/xpc_uv.c msg.ch_number = ch->number; msg 1242 drivers/misc/sgi-xp/xpc_uv.c msg.local_nentries = ch->local_nentries; msg 1243 drivers/misc/sgi-xp/xpc_uv.c msg.remote_nentries = ch->remote_nentries; msg 1244 drivers/misc/sgi-xp/xpc_uv.c msg.notify_gru_mq_desc_gpa = uv_gpa(xpc_notify_mq_uv->gru_mq_desc); msg 1245 drivers/misc/sgi-xp/xpc_uv.c xpc_send_activate_IRQ_ch_uv(ch, irq_flags, &msg, sizeof(msg), msg 1252 drivers/misc/sgi-xp/xpc_uv.c struct xpc_activate_mq_msg_chctl_opencomplete_uv msg; msg 1254 drivers/misc/sgi-xp/xpc_uv.c msg.ch_number = ch->number; msg 1255 drivers/misc/sgi-xp/xpc_uv.c xpc_send_activate_IRQ_ch_uv(ch, irq_flags, &msg, sizeof(msg), msg 1285 drivers/misc/sgi-xp/xpc_uv.c struct xpc_activate_mq_msg_uv msg; msg 1287 drivers/misc/sgi-xp/xpc_uv.c xpc_send_activate_IRQ_part_uv(part, &msg, sizeof(msg), msg 1294 drivers/misc/sgi-xp/xpc_uv.c struct xpc_activate_mq_msg_uv msg; msg 1296 drivers/misc/sgi-xp/xpc_uv.c xpc_send_activate_IRQ_part_uv(part, &msg, sizeof(msg), msg 1393 drivers/misc/sgi-xp/xpc_uv.c struct xpc_notify_mq_msg_uv *msg) msg 1396 drivers/misc/sgi-xp/xpc_uv.c int entry = msg->hdr.msg_slot_number % ch->local_nentries; msg 1400 drivers/misc/sgi-xp/xpc_uv.c BUG_ON(msg_slot->msg_slot_number != msg->hdr.msg_slot_number); msg 1411 drivers/misc/sgi-xp/xpc_uv.c struct xpc_notify_mq_msg_uv *msg) msg 1418 drivers/misc/sgi-xp/xpc_uv.c int ch_number = msg->hdr.ch_number; msg 1446 drivers/misc/sgi-xp/xpc_uv.c if (msg->hdr.size == 0) { msg 1447 drivers/misc/sgi-xp/xpc_uv.c xpc_handle_notify_mq_ack_uv(ch, msg); msg 1456 drivers/misc/sgi-xp/xpc_uv.c (msg->hdr.msg_slot_number % ch->remote_nentries) * ch->entry_size; msg 1460 drivers/misc/sgi-xp/xpc_uv.c memcpy(msg_slot, msg, msg->hdr.size); msg 1481 drivers/misc/sgi-xp/xpc_uv.c struct xpc_notify_mq_msg_uv *msg; msg 1485 drivers/misc/sgi-xp/xpc_uv.c while ((msg = gru_get_next_message(xpc_notify_mq_uv->gru_mq_desc)) != msg 1488 drivers/misc/sgi-xp/xpc_uv.c partid = msg->hdr.partid; msg 1496 drivers/misc/sgi-xp/xpc_uv.c xpc_handle_notify_mq_msg_uv(part, msg); msg 1501 drivers/misc/sgi-xp/xpc_uv.c gru_free_message(xpc_notify_mq_uv->gru_mq_desc, msg); msg 1540 drivers/misc/sgi-xp/xpc_uv.c struct xpc_notify_mq_msg_uv *msg; msg 1578 drivers/misc/sgi-xp/xpc_uv.c msg = (struct xpc_notify_mq_msg_uv *)&msg_buffer; msg 1579 drivers/misc/sgi-xp/xpc_uv.c msg->hdr.partid = xp_partition_id; msg 1580 drivers/misc/sgi-xp/xpc_uv.c msg->hdr.ch_number = ch->number; msg 1581 drivers/misc/sgi-xp/xpc_uv.c msg->hdr.size = msg_size; msg 1582 drivers/misc/sgi-xp/xpc_uv.c msg->hdr.msg_slot_number = msg_slot->msg_slot_number; msg 1583 drivers/misc/sgi-xp/xpc_uv.c memcpy(&msg->payload, payload, payload_size); msg 1585 drivers/misc/sgi-xp/xpc_uv.c ret = xpc_send_gru_msg(ch->sn.uv.cached_notify_gru_mq_desc, msg, msg 1650 drivers/misc/sgi-xp/xpc_uv.c struct xpc_notify_mq_msg_uv *msg; msg 1656 drivers/misc/sgi-xp/xpc_uv.c msg = container_of(entry, struct xpc_notify_mq_msg_uv, msg 1658 drivers/misc/sgi-xp/xpc_uv.c payload = &msg->payload; msg 1667 drivers/misc/sgi-xp/xpc_uv.c struct xpc_notify_mq_msg_uv *msg; msg 1670 drivers/misc/sgi-xp/xpc_uv.c msg = container_of(payload, struct xpc_notify_mq_msg_uv, payload); msg 1674 drivers/misc/sgi-xp/xpc_uv.c msg->hdr.partid = xp_partition_id; msg 1675 drivers/misc/sgi-xp/xpc_uv.c msg->hdr.size = 0; /* size of zero indicates this is an ACK */ msg 1677 drivers/misc/sgi-xp/xpc_uv.c ret = xpc_send_gru_msg(ch->sn.uv.cached_notify_gru_mq_desc, msg, msg 83 drivers/misc/sgi-xp/xpnet.c && (msg->magic == XPNET_MAGIC)) msg 149 drivers/misc/sgi-xp/xpnet.c xpnet_receive(short partid, int channel, struct xpnet_message *msg) msg 155 drivers/misc/sgi-xp/xpnet.c if (!XPNET_VALID_MSG(msg)) { msg 159 drivers/misc/sgi-xp/xpnet.c xpc_received(partid, channel, (void *)msg); msg 165 drivers/misc/sgi-xp/xpnet.c dev_dbg(xpnet, "received 0x%lx, %d, %d, %d\n", msg->buf_pa, msg->size, msg 166 drivers/misc/sgi-xp/xpnet.c msg->leadin_ignore, msg->tailout_ignore); msg 169 drivers/misc/sgi-xp/xpnet.c skb = dev_alloc_skb(msg->size + L1_CACHE_BYTES); msg 172 drivers/misc/sgi-xp/xpnet.c msg->size + L1_CACHE_BYTES); msg 174 drivers/misc/sgi-xp/xpnet.c xpc_received(partid, channel, (void *)msg); msg 188 drivers/misc/sgi-xp/xpnet.c msg->leadin_ignore)); msg 194 drivers/misc/sgi-xp/xpnet.c skb_put(skb, (msg->size - msg->leadin_ignore - msg->tailout_ignore)); msg 199 drivers/misc/sgi-xp/xpnet.c if ((XPNET_VERSION_MINOR(msg->version) == 1) && msg 200 drivers/misc/sgi-xp/xpnet.c (msg->embedded_bytes != 0)) { msg 202 drivers/misc/sgi-xp/xpnet.c "%lu)\n", skb->data, &msg->data, msg 203 drivers/misc/sgi-xp/xpnet.c (size_t)msg->embedded_bytes); msg 205 drivers/misc/sgi-xp/xpnet.c skb_copy_to_linear_data(skb, &msg->data, msg 206 drivers/misc/sgi-xp/xpnet.c (size_t)msg->embedded_bytes); msg 211 drivers/misc/sgi-xp/xpnet.c (void *)msg->buf_pa, msg->size); msg 213 drivers/misc/sgi-xp/xpnet.c ret = xp_remote_memcpy(xp_pa(dst), msg->buf_pa, msg->size); msg 222 drivers/misc/sgi-xp/xpnet.c (void *)msg->buf_pa, msg->size, ret); msg 224 drivers/misc/sgi-xp/xpnet.c xpc_received(partid, channel, (void *)msg); msg 250 drivers/misc/sgi-xp/xpnet.c xpc_received(partid, channel, (void *)msg); msg 366 drivers/misc/sgi-xp/xpnet.c struct xpnet_message *msg = (struct xpnet_message *)&msg_buffer; msg 370 drivers/misc/sgi-xp/xpnet.c msg->embedded_bytes = embedded_bytes; msg 372 drivers/misc/sgi-xp/xpnet.c msg->version = XPNET_VERSION_EMBED; msg 374 drivers/misc/sgi-xp/xpnet.c &msg->data, skb->data, (size_t)embedded_bytes); msg 375 drivers/misc/sgi-xp/xpnet.c skb_copy_from_linear_data(skb, &msg->data, msg 379 drivers/misc/sgi-xp/xpnet.c msg->version = XPNET_VERSION; msg 381 drivers/misc/sgi-xp/xpnet.c msg->magic = XPNET_MAGIC; msg 382 drivers/misc/sgi-xp/xpnet.c msg->size = end_addr - start_addr; msg 383 drivers/misc/sgi-xp/xpnet.c msg->leadin_ignore = (u64)skb->data - start_addr; msg 384 drivers/misc/sgi-xp/xpnet.c msg->tailout_ignore = end_addr - (u64)skb_tail_pointer(skb); msg 385 drivers/misc/sgi-xp/xpnet.c msg->buf_pa = xp_pa((void *)start_addr); msg 390 drivers/misc/sgi-xp/xpnet.c dest_partid, XPC_NET_CHANNEL, msg->buf_pa, msg->size, msg 391 drivers/misc/sgi-xp/xpnet.c msg->leadin_ignore, msg->tailout_ignore); msg 395 drivers/misc/sgi-xp/xpnet.c ret = xpc_send_notify(dest_partid, XPC_NET_CHANNEL, XPC_NOWAIT, msg, msg 250 drivers/misc/vmw_vmci/vmci_context.c ev.msg.hdr.dst = vmci_handle_arr_get_entry(subscriber_array, i); msg 251 drivers/misc/vmw_vmci/vmci_context.c ev.msg.hdr.src = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID, msg 253 drivers/misc/vmw_vmci/vmci_context.c ev.msg.hdr.payload_size = sizeof(ev) - sizeof(ev.msg.hdr); msg 254 drivers/misc/vmw_vmci/vmci_context.c ev.msg.event_data.event = VMCI_EVENT_CTX_REMOVED; msg 258 drivers/misc/vmw_vmci/vmci_context.c &ev.msg.hdr, false); msg 261 drivers/misc/vmw_vmci/vmci_context.c ev.msg.event_data.event, msg 262 drivers/misc/vmw_vmci/vmci_context.c ev.msg.hdr.dst.context); msg 40 drivers/misc/vmw_vmci/vmci_datagram.c struct vmci_datagram msg; msg 141 drivers/misc/vmw_vmci/vmci_datagram.c dg_info->entry->recv_cb(dg_info->entry->client_data, &dg_info->msg); msg 237 drivers/misc/vmw_vmci/vmci_datagram.c memcpy(&dg_info->msg, dg, dg_size); msg 380 drivers/misc/vmw_vmci/vmci_datagram.c memcpy(&dg_info->msg, dg, VMCI_DG_SIZE(dg)); msg 487 drivers/misc/vmw_vmci/vmci_datagram.c int vmci_datagram_send(struct vmci_datagram *msg) msg 489 drivers/misc/vmw_vmci/vmci_datagram.c if (msg == NULL) msg 492 drivers/misc/vmw_vmci/vmci_datagram.c return vmci_datagram_dispatch(VMCI_INVALID_ID, msg, false); msg 103 drivers/misc/vmw_vmci/vmci_event.c int vmci_event_dispatch(struct vmci_datagram *msg) msg 105 drivers/misc/vmw_vmci/vmci_event.c struct vmci_event_msg *event_msg = (struct vmci_event_msg *)msg; msg 107 drivers/misc/vmw_vmci/vmci_event.c if (msg->payload_size < sizeof(u32) || msg 108 drivers/misc/vmw_vmci/vmci_event.c msg->payload_size > sizeof(struct vmci_event_data_max)) msg 15 drivers/misc/vmw_vmci/vmci_event.h int vmci_event_dispatch(struct vmci_datagram *msg); msg 166 drivers/misc/vmw_vmci/vmci_guest.c struct vmci_resource_query_msg *msg; msg 181 drivers/misc/vmw_vmci/vmci_guest.c msg = (struct vmci_resource_query_msg *)VMCI_DG_PAYLOAD(check_msg); msg 183 drivers/misc/vmw_vmci/vmci_guest.c msg->num_resources = VMCI_UTIL_NUM_RESOURCES; msg 184 drivers/misc/vmw_vmci/vmci_guest.c msg->resources[0] = VMCI_GET_CONTEXT_ID; msg 850 drivers/misc/vmw_vmci/vmci_queue_pair.c ev.msg.hdr.dst = vmci_make_handle(context_id, VMCI_EVENT_HANDLER); msg 851 drivers/misc/vmw_vmci/vmci_queue_pair.c ev.msg.hdr.src = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID, msg 853 drivers/misc/vmw_vmci/vmci_queue_pair.c ev.msg.hdr.payload_size = sizeof(ev) - sizeof(ev.msg.hdr); msg 854 drivers/misc/vmw_vmci/vmci_queue_pair.c ev.msg.event_data.event = msg 859 drivers/misc/vmw_vmci/vmci_queue_pair.c return vmci_event_dispatch(&ev.msg.hdr); msg 1463 drivers/misc/vmw_vmci/vmci_queue_pair.c ev.msg.hdr.dst = vmci_make_handle(peer_id, VMCI_EVENT_HANDLER); msg 1464 drivers/misc/vmw_vmci/vmci_queue_pair.c ev.msg.hdr.src = vmci_make_handle(VMCI_HYPERVISOR_CONTEXT_ID, msg 1466 drivers/misc/vmw_vmci/vmci_queue_pair.c ev.msg.hdr.payload_size = sizeof(ev) - sizeof(ev.msg.hdr); msg 1467 drivers/misc/vmw_vmci/vmci_queue_pair.c ev.msg.event_data.event = attach ? msg 1473 drivers/misc/vmw_vmci/vmci_queue_pair.c &ev.msg.hdr, false); msg 3145 drivers/misc/vmw_vmci/vmci_queue_pair.c struct msghdr *msg, msg 3160 drivers/misc/vmw_vmci/vmci_queue_pair.c &msg->msg_iter); msg 3186 drivers/misc/vmw_vmci/vmci_queue_pair.c struct msghdr *msg, msg 3201 drivers/misc/vmw_vmci/vmci_queue_pair.c &msg->msg_iter, true); msg 3228 drivers/misc/vmw_vmci/vmci_queue_pair.c struct msghdr *msg, msg 3243 drivers/misc/vmw_vmci/vmci_queue_pair.c &msg->msg_iter, false); msg 153 drivers/mtd/devices/mtd_dataflash.c struct spi_message msg; msg 168 drivers/mtd/devices/mtd_dataflash.c spi_message_init(&msg); msg 172 drivers/mtd/devices/mtd_dataflash.c spi_message_add_tail(&x, &msg); msg 197 drivers/mtd/devices/mtd_dataflash.c status = spi_sync(spi, &msg); msg 234 drivers/mtd/devices/mtd_dataflash.c struct spi_message msg; msg 251 drivers/mtd/devices/mtd_dataflash.c spi_message_init(&msg); msg 255 drivers/mtd/devices/mtd_dataflash.c spi_message_add_tail(&x[0], &msg); msg 259 drivers/mtd/devices/mtd_dataflash.c spi_message_add_tail(&x[1], &msg); msg 273 drivers/mtd/devices/mtd_dataflash.c status = spi_sync(priv->spi, &msg); msg 277 drivers/mtd/devices/mtd_dataflash.c *retlen = msg.actual_length - 8; msg 299 drivers/mtd/devices/mtd_dataflash.c struct spi_message msg; msg 309 drivers/mtd/devices/mtd_dataflash.c spi_message_init(&msg); msg 313 drivers/mtd/devices/mtd_dataflash.c spi_message_add_tail(&x[0], &msg); msg 355 drivers/mtd/devices/mtd_dataflash.c status = spi_sync(spi, &msg); msg 375 drivers/mtd/devices/mtd_dataflash.c spi_message_add_tail(x + 1, &msg); msg 376 drivers/mtd/devices/mtd_dataflash.c status = spi_sync(spi, &msg); msg 397 drivers/mtd/devices/mtd_dataflash.c status = spi_sync(spi, &msg); msg 52 drivers/mtd/devices/powernv_flash.c struct opal_msg msg; msg 84 drivers/mtd/devices/powernv_flash.c rc = opal_async_wait_response_interruptible(token, &msg); msg 99 drivers/mtd/devices/powernv_flash.c if (opal_async_wait_response(token, &msg)) msg 103 drivers/mtd/devices/powernv_flash.c rc = opal_get_async_rc(msg); msg 70 drivers/mtd/maps/pismo.c struct i2c_msg msg[] = { msg 83 drivers/mtd/maps/pismo.c ret = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg)); msg 85 drivers/mtd/maps/pismo.c return ret == ARRAY_SIZE(msg) ? size : -EIO; msg 129 drivers/mtd/nand/onenand/omap2.c static void wait_err(char *msg, int state, unsigned int ctrl, unsigned int intr) msg 132 drivers/mtd/nand/onenand/omap2.c msg, state, ctrl, intr); msg 135 drivers/mtd/nand/onenand/omap2.c static void wait_warn(char *msg, int state, unsigned int ctrl, msg 139 drivers/mtd/nand/onenand/omap2.c "intr 0x%04x\n", msg, state, ctrl, intr); msg 2208 drivers/mtd/nand/raw/brcmnand/brcmnand.c char msg[128]; msg 2312 drivers/mtd/nand/raw/brcmnand/brcmnand.c brcmnand_print_cfg(host, msg, cfg); msg 2313 drivers/mtd/nand/raw/brcmnand/brcmnand.c dev_info(ctrl->dev, "detected %s\n", msg); msg 771 drivers/net/arcnet/arcnet.c char *msg; msg 775 drivers/net/arcnet/arcnet.c msg = " - missed IRQ?"; msg 777 drivers/net/arcnet/arcnet.c msg = ""; msg 793 drivers/net/arcnet/arcnet.c msg, status, lp->intmask, lp->lasttrans_dest); msg 308 drivers/net/can/janz-ican3.c static int ican3_old_recv_msg(struct ican3_dev *mod, struct ican3_msg *msg) msg 333 drivers/net/can/janz-ican3.c memcpy_fromio(msg, mod->dpm, sizeof(*msg)); msg 353 drivers/net/can/janz-ican3.c static int ican3_old_send_msg(struct ican3_dev *mod, struct ican3_msg *msg) msg 375 drivers/net/can/janz-ican3.c memcpy_toio(mod->dpm, msg, sizeof(*msg)); msg 557 drivers/net/can/janz-ican3.c static int ican3_new_send_msg(struct ican3_dev *mod, struct ican3_msg *msg) msg 573 drivers/net/can/janz-ican3.c memcpy_toio(mod->dpm, msg, sizeof(*msg)); msg 588 drivers/net/can/janz-ican3.c static int ican3_new_recv_msg(struct ican3_dev *mod, struct ican3_msg *msg) msg 604 drivers/net/can/janz-ican3.c memcpy_fromio(msg, mod->dpm, sizeof(*msg)); msg 620 drivers/net/can/janz-ican3.c static int ican3_send_msg(struct ican3_dev *mod, struct ican3_msg *msg) msg 628 drivers/net/can/janz-ican3.c ret = ican3_old_send_msg(mod, msg); msg 630 drivers/net/can/janz-ican3.c ret = ican3_new_send_msg(mod, msg); msg 636 drivers/net/can/janz-ican3.c static int ican3_recv_msg(struct ican3_dev *mod, struct ican3_msg *msg) msg 644 drivers/net/can/janz-ican3.c ret = ican3_old_recv_msg(mod, msg); msg 646 drivers/net/can/janz-ican3.c ret = ican3_new_recv_msg(mod, msg); msg 658 drivers/net/can/janz-ican3.c struct ican3_msg msg; msg 660 drivers/net/can/janz-ican3.c memset(&msg, 0, sizeof(msg)); msg 661 drivers/net/can/janz-ican3.c msg.spec = MSG_CONNECTI; msg 662 drivers/net/can/janz-ican3.c msg.len = cpu_to_le16(0); msg 664 drivers/net/can/janz-ican3.c return ican3_send_msg(mod, &msg); msg 669 drivers/net/can/janz-ican3.c struct ican3_msg msg; msg 671 drivers/net/can/janz-ican3.c memset(&msg, 0, sizeof(msg)); msg 672 drivers/net/can/janz-ican3.c msg.spec = MSG_DISCONNECT; msg 673 drivers/net/can/janz-ican3.c msg.len = cpu_to_le16(0); msg 675 drivers/net/can/janz-ican3.c return ican3_send_msg(mod, &msg); msg 680 drivers/net/can/janz-ican3.c struct ican3_msg msg; msg 683 drivers/net/can/janz-ican3.c memset(&msg, 0, sizeof(msg)); msg 684 drivers/net/can/janz-ican3.c msg.spec = MSG_NEWHOSTIF; msg 685 drivers/net/can/janz-ican3.c msg.len = cpu_to_le16(0); msg 690 drivers/net/can/janz-ican3.c ret = ican3_send_msg(mod, &msg); msg 701 drivers/net/can/janz-ican3.c struct ican3_msg msg; msg 704 drivers/net/can/janz-ican3.c memset(&msg, 0, sizeof(msg)); msg 705 drivers/net/can/janz-ican3.c msg.spec = MSG_INITFDPMQUEUE; msg 706 drivers/net/can/janz-ican3.c msg.len = cpu_to_le16(8); msg 710 drivers/net/can/janz-ican3.c msg.data[0] = addr & 0xff; msg 711 drivers/net/can/janz-ican3.c msg.data[1] = (addr >> 8) & 0xff; msg 712 drivers/net/can/janz-ican3.c msg.data[2] = (addr >> 16) & 0xff; msg 713 drivers/net/can/janz-ican3.c msg.data[3] = (addr >> 24) & 0xff; msg 717 drivers/net/can/janz-ican3.c msg.data[4] = addr & 0xff; msg 718 drivers/net/can/janz-ican3.c msg.data[5] = (addr >> 8) & 0xff; msg 719 drivers/net/can/janz-ican3.c msg.data[6] = (addr >> 16) & 0xff; msg 720 drivers/net/can/janz-ican3.c msg.data[7] = (addr >> 24) & 0xff; msg 725 drivers/net/can/janz-ican3.c return ican3_send_msg(mod, &msg); msg 734 drivers/net/can/janz-ican3.c struct ican3_msg msg; msg 738 drivers/net/can/janz-ican3.c memset(&msg, 0, sizeof(msg)); msg 739 drivers/net/can/janz-ican3.c msg.spec = MSG_SETAFILMASK; msg 740 drivers/net/can/janz-ican3.c msg.len = cpu_to_le16(5); msg 741 drivers/net/can/janz-ican3.c msg.data[0] = 0x00; /* IDLo LSB */ msg 742 drivers/net/can/janz-ican3.c msg.data[1] = 0x00; /* IDLo MSB */ msg 743 drivers/net/can/janz-ican3.c msg.data[2] = 0xff; /* IDHi LSB */ msg 744 drivers/net/can/janz-ican3.c msg.data[3] = 0x07; /* IDHi MSB */ msg 747 drivers/net/can/janz-ican3.c msg.data[4] = accept ? SETAFILMASK_FASTIF : SETAFILMASK_REJECT; msg 749 drivers/net/can/janz-ican3.c ret = ican3_send_msg(mod, &msg); msg 754 drivers/net/can/janz-ican3.c memset(&msg, 0, sizeof(msg)); msg 755 drivers/net/can/janz-ican3.c msg.spec = MSG_SETAFILMASK; msg 756 drivers/net/can/janz-ican3.c msg.len = cpu_to_le16(13); msg 757 drivers/net/can/janz-ican3.c msg.data[0] = 0; /* MUX = 0 */ msg 758 drivers/net/can/janz-ican3.c msg.data[1] = 0x00; /* IDLo LSB */ msg 759 drivers/net/can/janz-ican3.c msg.data[2] = 0x00; msg 760 drivers/net/can/janz-ican3.c msg.data[3] = 0x00; msg 761 drivers/net/can/janz-ican3.c msg.data[4] = 0x20; /* IDLo MSB */ msg 762 drivers/net/can/janz-ican3.c msg.data[5] = 0xff; /* IDHi LSB */ msg 763 drivers/net/can/janz-ican3.c msg.data[6] = 0xff; msg 764 drivers/net/can/janz-ican3.c msg.data[7] = 0xff; msg 765 drivers/net/can/janz-ican3.c msg.data[8] = 0x3f; /* IDHi MSB */ msg 768 drivers/net/can/janz-ican3.c msg.data[9] = accept ? SETAFILMASK_FASTIF : SETAFILMASK_REJECT; msg 770 drivers/net/can/janz-ican3.c return ican3_send_msg(mod, &msg); msg 779 drivers/net/can/janz-ican3.c struct ican3_msg msg; msg 795 drivers/net/can/janz-ican3.c memset(&msg, 0, sizeof(msg)); msg 796 drivers/net/can/janz-ican3.c msg.spec = MSG_CBTRREQ; msg 797 drivers/net/can/janz-ican3.c msg.len = cpu_to_le16(4); msg 798 drivers/net/can/janz-ican3.c msg.data[0] = 0x00; msg 799 drivers/net/can/janz-ican3.c msg.data[1] = 0x00; msg 800 drivers/net/can/janz-ican3.c msg.data[2] = btr0; msg 801 drivers/net/can/janz-ican3.c msg.data[3] = btr1; msg 803 drivers/net/can/janz-ican3.c res = ican3_send_msg(mod, &msg); msg 809 drivers/net/can/janz-ican3.c memset(&msg, 0, sizeof(msg)); msg 810 drivers/net/can/janz-ican3.c msg.spec = on ? MSG_CONREQ : MSG_COFFREQ; msg 811 drivers/net/can/janz-ican3.c msg.len = cpu_to_le16(0); msg 813 drivers/net/can/janz-ican3.c return ican3_send_msg(mod, &msg); msg 817 drivers/net/can/janz-ican3.c memset(&msg, 0, sizeof(msg)); msg 818 drivers/net/can/janz-ican3.c msg.spec = MSG_LMTS; msg 820 drivers/net/can/janz-ican3.c msg.len = cpu_to_le16(4); msg 821 drivers/net/can/janz-ican3.c msg.data[0] = LMTS_BUSON_REQ; msg 822 drivers/net/can/janz-ican3.c msg.data[1] = 0; msg 823 drivers/net/can/janz-ican3.c msg.data[2] = btr0; msg 824 drivers/net/can/janz-ican3.c msg.data[3] = btr1; msg 826 drivers/net/can/janz-ican3.c msg.len = cpu_to_le16(2); msg 827 drivers/net/can/janz-ican3.c msg.data[0] = LMTS_BUSOFF_REQ; msg 828 drivers/net/can/janz-ican3.c msg.data[1] = 0; msg 830 drivers/net/can/janz-ican3.c res = ican3_send_msg(mod, &msg); msg 840 drivers/net/can/janz-ican3.c memset(&msg, 0, sizeof(msg)); msg 841 drivers/net/can/janz-ican3.c msg.spec = MSG_NMTS; msg 842 drivers/net/can/janz-ican3.c msg.len = cpu_to_le16(11); msg 843 drivers/net/can/janz-ican3.c msg.data[0] = NMTS_CREATE_NODE_REQ; msg 844 drivers/net/can/janz-ican3.c msg.data[1] = 0; msg 845 drivers/net/can/janz-ican3.c msg.data[2] = 2; /* node class */ msg 846 drivers/net/can/janz-ican3.c msg.data[3] = 1; /* node id */ msg 847 drivers/net/can/janz-ican3.c strcpy(msg.data + 4, "locnod1"); /* node name */ msg 848 drivers/net/can/janz-ican3.c return ican3_send_msg(mod, &msg); msg 857 drivers/net/can/janz-ican3.c struct ican3_msg msg; msg 859 drivers/net/can/janz-ican3.c memset(&msg, 0, sizeof(msg)); msg 860 drivers/net/can/janz-ican3.c msg.spec = MSG_HWCONF; msg 861 drivers/net/can/janz-ican3.c msg.len = cpu_to_le16(2); msg 862 drivers/net/can/janz-ican3.c msg.data[0] = 0x00; msg 863 drivers/net/can/janz-ican3.c msg.data[1] = on ? HWCONF_TERMINATE_ON : HWCONF_TERMINATE_OFF; msg 865 drivers/net/can/janz-ican3.c return ican3_send_msg(mod, &msg); msg 870 drivers/net/can/janz-ican3.c struct ican3_msg msg; msg 872 drivers/net/can/janz-ican3.c memset(&msg, 0, sizeof(msg)); msg 873 drivers/net/can/janz-ican3.c msg.spec = MSG_INQUIRY; msg 874 drivers/net/can/janz-ican3.c msg.len = cpu_to_le16(2); msg 875 drivers/net/can/janz-ican3.c msg.data[0] = subspec; msg 876 drivers/net/can/janz-ican3.c msg.data[1] = 0x00; msg 878 drivers/net/can/janz-ican3.c return ican3_send_msg(mod, &msg); msg 883 drivers/net/can/janz-ican3.c struct ican3_msg msg; msg 886 drivers/net/can/janz-ican3.c memset(&msg, 0, sizeof(msg)); msg 887 drivers/net/can/janz-ican3.c msg.spec = MSG_CCONFREQ; msg 888 drivers/net/can/janz-ican3.c msg.len = cpu_to_le16(2); msg 889 drivers/net/can/janz-ican3.c msg.data[0] = 0x00; msg 890 drivers/net/can/janz-ican3.c msg.data[1] = quota; msg 892 drivers/net/can/janz-ican3.c memset(&msg, 0, sizeof(msg)); msg 893 drivers/net/can/janz-ican3.c msg.spec = MSG_LMTS; msg 894 drivers/net/can/janz-ican3.c msg.len = cpu_to_le16(4); msg 895 drivers/net/can/janz-ican3.c msg.data[0] = LMTS_CAN_CONF_REQ; msg 896 drivers/net/can/janz-ican3.c msg.data[1] = 0x00; msg 897 drivers/net/can/janz-ican3.c msg.data[2] = 0x00; msg 898 drivers/net/can/janz-ican3.c msg.data[3] = quota; msg 902 drivers/net/can/janz-ican3.c return ican3_send_msg(mod, &msg); msg 985 drivers/net/can/janz-ican3.c static void ican3_handle_idvers(struct ican3_dev *mod, struct ican3_msg *msg) msg 987 drivers/net/can/janz-ican3.c netdev_dbg(mod->ndev, "IDVERS response: %s\n", msg->data); msg 990 drivers/net/can/janz-ican3.c static void ican3_handle_msglost(struct ican3_dev *mod, struct ican3_msg *msg) msg 1002 drivers/net/can/janz-ican3.c if (msg->spec == MSG_MSGLOST) { msg 1003 drivers/net/can/janz-ican3.c netdev_err(mod->ndev, "lost %d control messages\n", msg->data[0]); msg 1032 drivers/net/can/janz-ican3.c static int ican3_handle_cevtind(struct ican3_dev *mod, struct ican3_msg *msg) msg 1042 drivers/net/can/janz-ican3.c if (msg->data[1] != CEVTIND_CHIP_SJA1000) { msg 1048 drivers/net/can/janz-ican3.c if (le16_to_cpu(msg->len) < 6) { msg 1053 drivers/net/can/janz-ican3.c isrc = msg->data[0]; msg 1054 drivers/net/can/janz-ican3.c ecc = msg->data[2]; msg 1055 drivers/net/can/janz-ican3.c status = msg->data[3]; msg 1056 drivers/net/can/janz-ican3.c rxerr = msg->data[4]; msg 1057 drivers/net/can/janz-ican3.c txerr = msg->data[5]; msg 1178 drivers/net/can/janz-ican3.c static void ican3_handle_inquiry(struct ican3_dev *mod, struct ican3_msg *msg) msg 1180 drivers/net/can/janz-ican3.c switch (msg->data[0]) { msg 1183 drivers/net/can/janz-ican3.c mod->bec.rxerr = msg->data[5]; msg 1184 drivers/net/can/janz-ican3.c mod->bec.txerr = msg->data[6]; msg 1188 drivers/net/can/janz-ican3.c mod->termination_enabled = msg->data[6] & HWCONF_TERMINATE_ON; msg 1198 drivers/net/can/janz-ican3.c static void ican3_handle_nmtsind(struct ican3_dev *mod, struct ican3_msg *msg) msg 1202 drivers/net/can/janz-ican3.c subspec = msg->data[0] + msg->data[1] * 0x100; msg 1204 drivers/net/can/janz-ican3.c switch (msg->data[2]) { msg 1210 drivers/net/can/janz-ican3.c le16_add_cpu(&msg->len, -3); msg 1211 drivers/net/can/janz-ican3.c memmove(msg->data, msg->data + 3, le16_to_cpu(msg->len)); msg 1212 drivers/net/can/janz-ican3.c ican3_handle_cevtind(mod, msg); msg 1220 drivers/net/can/janz-ican3.c msg->data[2]); msg 1233 drivers/net/can/janz-ican3.c struct ican3_msg *msg) msg 1236 drivers/net/can/janz-ican3.c msg->spec, le16_to_cpu(msg->len)); msg 1242 drivers/net/can/janz-ican3.c static void ican3_handle_message(struct ican3_dev *mod, struct ican3_msg *msg) msg 1245 drivers/net/can/janz-ican3.c mod->num, msg->spec, le16_to_cpu(msg->len)); msg 1247 drivers/net/can/janz-ican3.c switch (msg->spec) { msg 1249 drivers/net/can/janz-ican3.c ican3_handle_idvers(mod, msg); msg 1253 drivers/net/can/janz-ican3.c ican3_handle_msglost(mod, msg); msg 1256 drivers/net/can/janz-ican3.c ican3_handle_cevtind(mod, msg); msg 1259 drivers/net/can/janz-ican3.c ican3_handle_inquiry(mod, msg); msg 1262 drivers/net/can/janz-ican3.c ican3_handle_nmtsind(mod, msg); msg 1265 drivers/net/can/janz-ican3.c ican3_handle_unknown_message(mod, msg); msg 1454 drivers/net/can/janz-ican3.c struct ican3_msg uninitialized_var(msg); msg 1455 drivers/net/can/janz-ican3.c ret = ican3_recv_msg(mod, &msg); msg 1459 drivers/net/can/janz-ican3.c ican3_handle_message(mod, &msg); msg 100 drivers/net/can/led.c static int can_led_notifier(struct notifier_block *nb, unsigned long msg, msg 113 drivers/net/can/led.c if (msg == NETDEV_CHANGENAME) { msg 237 drivers/net/can/peak_canfd/peak_canfd.c struct pucan_rx_msg *msg) msg 242 drivers/net/can/peak_canfd/peak_canfd.c const u16 rx_msg_flags = le16_to_cpu(msg->flags); msg 246 drivers/net/can/peak_canfd/peak_canfd.c cf_len = can_dlc2len(get_canfd_dlc(pucan_msg_get_dlc(msg))); msg 248 drivers/net/can/peak_canfd/peak_canfd.c cf_len = get_can_dlc(pucan_msg_get_dlc(msg)); msg 256 drivers/net/can/peak_canfd/peak_canfd.c can_get_echo_skb(priv->ndev, msg->client); msg 288 drivers/net/can/peak_canfd/peak_canfd.c cf->can_id = le32_to_cpu(msg->can_id); msg 297 drivers/net/can/peak_canfd/peak_canfd.c memcpy(cf->data, msg->d, cf->len); msg 309 drivers/net/can/peak_canfd/peak_canfd.c struct pucan_error_msg *msg) msg 311 drivers/net/can/peak_canfd/peak_canfd.c priv->bec.txerr = msg->tx_err_cnt; msg 312 drivers/net/can/peak_canfd/peak_canfd.c priv->bec.rxerr = msg->rx_err_cnt; msg 319 drivers/net/can/peak_canfd/peak_canfd.c struct pucan_status_msg *msg) msg 327 drivers/net/can/peak_canfd/peak_canfd.c if (pucan_status_is_rx_barrier(msg)) { msg 345 drivers/net/can/peak_canfd/peak_canfd.c if (pucan_status_is_busoff(msg)) { msg 353 drivers/net/can/peak_canfd/peak_canfd.c } else if (pucan_status_is_passive(msg)) { msg 366 drivers/net/can/peak_canfd/peak_canfd.c } else if (pucan_status_is_warning(msg)) { msg 432 drivers/net/can/peak_canfd/peak_canfd.c struct pucan_rx_msg *msg) msg 434 drivers/net/can/peak_canfd/peak_canfd.c u16 msg_type = le16_to_cpu(msg->type); msg 435 drivers/net/can/peak_canfd/peak_canfd.c int msg_size = le16_to_cpu(msg->size); msg 445 drivers/net/can/peak_canfd/peak_canfd.c err = pucan_handle_can_rx(priv, (struct pucan_rx_msg *)msg); msg 448 drivers/net/can/peak_canfd/peak_canfd.c err = pucan_handle_error(priv, (struct pucan_error_msg *)msg); msg 451 drivers/net/can/peak_canfd/peak_canfd.c err = pucan_handle_status(priv, (struct pucan_status_msg *)msg); msg 632 drivers/net/can/peak_canfd/peak_canfd.c struct pucan_tx_msg *msg; msg 642 drivers/net/can/peak_canfd/peak_canfd.c msg_size = ALIGN(sizeof(*msg) + cf->len, 4); msg 643 drivers/net/can/peak_canfd/peak_canfd.c msg = priv->alloc_tx_msg(priv, msg_size, &room_left); msg 648 drivers/net/can/peak_canfd/peak_canfd.c if (!msg) { msg 654 drivers/net/can/peak_canfd/peak_canfd.c msg->size = cpu_to_le16(msg_size); msg 655 drivers/net/can/peak_canfd/peak_canfd.c msg->type = cpu_to_le16(PUCAN_MSG_CAN_TX); msg 660 drivers/net/can/peak_canfd/peak_canfd.c msg->can_id = cpu_to_le32(cf->can_id & CAN_EFF_MASK); msg 662 drivers/net/can/peak_canfd/peak_canfd.c msg->can_id = cpu_to_le32(cf->can_id & CAN_SFF_MASK); msg 691 drivers/net/can/peak_canfd/peak_canfd.c msg->flags = cpu_to_le16(msg_flags); msg 692 drivers/net/can/peak_canfd/peak_canfd.c msg->channel_dlc = PUCAN_MSG_CHANNEL_DLC(priv->index, can_dlc); msg 693 drivers/net/can/peak_canfd/peak_canfd.c memcpy(msg->d, cf->data, cf->len); msg 696 drivers/net/can/peak_canfd/peak_canfd.c msg->client = priv->echo_idx; msg 715 drivers/net/can/peak_canfd/peak_canfd.c (sizeof(*msg) + CANFD_MAX_DLEN)); msg 718 drivers/net/can/peak_canfd/peak_canfd.c (sizeof(*msg) + CAN_MAX_DLEN)); msg 726 drivers/net/can/peak_canfd/peak_canfd.c priv->write_tx_msg(priv, msg); msg 38 drivers/net/can/peak_canfd/peak_canfd_user.h struct pucan_tx_msg *msg); msg 44 drivers/net/can/peak_canfd/peak_canfd_user.h struct pucan_rx_msg *msg); msg 150 drivers/net/can/peak_canfd/peak_pciefd_main.c struct pucan_rx_msg msg[0]; msg 334 drivers/net/can/peak_canfd/peak_pciefd_main.c rx_dma->msg, msg 510 drivers/net/can/peak_canfd/peak_pciefd_main.c void *msg; msg 553 drivers/net/can/peak_canfd/peak_pciefd_main.c msg = page->vbase + page->offset; msg 558 drivers/net/can/peak_canfd/peak_pciefd_main.c return msg; msg 562 drivers/net/can/peak_canfd/peak_pciefd_main.c struct pucan_tx_msg *msg) msg 568 drivers/net/can/peak_canfd/peak_pciefd_main.c page->offset += le16_to_cpu(msg->size); msg 245 drivers/net/can/sja1000/peak_pci.c struct i2c_msg msg = { msg 256 drivers/net/can/sja1000/peak_pci.c ret = i2c_transfer(&card->led_chip, &msg, 1); msg 82 drivers/net/can/softing/softing.h const char *msg); msg 101 drivers/net/can/softing/softing.h int softing_netdev_rx(struct net_device *netdev, const struct can_frame *msg, msg 20 drivers/net/can/softing/softing_fw.c const char *msg) msg 49 drivers/net/can/softing/softing_fw.c dev_alert(&card->pdev->dev, "firmware %s failed (%i)\n", msg, ret); msg 53 drivers/net/can/softing/softing_fw.c static int softing_fct_cmd(struct softing *card, int16_t cmd, const char *msg) msg 57 drivers/net/can/softing/softing_fw.c ret = _softing_fct_cmd(card, cmd, 0, msg); msg 59 drivers/net/can/softing/softing_fw.c dev_alert(&card->pdev->dev, "%s returned %u\n", msg, ret); msg 66 drivers/net/can/softing/softing_fw.c const char *msg) msg 90 drivers/net/can/softing/softing_fw.c dev_alert(&card->pdev->dev, "bootloader %s failed (%i)\n", msg, ret); msg 425 drivers/net/can/softing/softing_fw.c struct can_frame msg; msg 625 drivers/net/can/softing/softing_fw.c memset(&msg, 0, sizeof(msg)); msg 626 drivers/net/can/softing/softing_fw.c msg.can_id = CAN_ERR_FLAG | CAN_ERR_RESTARTED; msg 627 drivers/net/can/softing/softing_fw.c msg.can_dlc = CAN_ERR_DLC; msg 639 drivers/net/can/softing/softing_fw.c softing_netdev_rx(netdev, &msg, 0); msg 131 drivers/net/can/softing/softing_main.c int softing_netdev_rx(struct net_device *netdev, const struct can_frame *msg, msg 140 drivers/net/can/softing/softing_main.c memcpy(cf, msg, sizeof(*msg)); msg 154 drivers/net/can/softing/softing_main.c struct can_frame msg; msg 161 drivers/net/can/softing/softing_main.c memset(&msg, 0, sizeof(msg)); msg 169 drivers/net/can/softing/softing_main.c msg.can_id = CAN_ERR_FLAG | CAN_ERR_CRTL; msg 170 drivers/net/can/softing/softing_main.c msg.can_dlc = CAN_ERR_DLC; msg 171 drivers/net/can/softing/softing_main.c msg.data[1] = CAN_ERR_CRTL_RX_OVERFLOW; msg 184 drivers/net/can/softing/softing_main.c softing_netdev_rx(netdev, &msg, 0); msg 187 drivers/net/can/softing/softing_main.c memset(&msg, 0, sizeof(msg)); msg 220 drivers/net/can/softing/softing_main.c msg.can_id = CAN_ERR_FLAG; msg 221 drivers/net/can/softing/softing_main.c msg.can_dlc = CAN_ERR_DLC; msg 225 drivers/net/can/softing/softing_main.c msg.can_id |= CAN_ERR_BUSOFF; msg 229 drivers/net/can/softing/softing_main.c msg.can_id |= CAN_ERR_CRTL; msg 230 drivers/net/can/softing/softing_main.c msg.data[1] = CAN_ERR_CRTL_TX_PASSIVE; msg 234 drivers/net/can/softing/softing_main.c msg.can_id |= CAN_ERR_CRTL; msg 258 drivers/net/can/softing/softing_main.c softing_netdev_rx(netdev, &msg, ktime); msg 263 drivers/net/can/softing/softing_main.c msg.can_id |= CAN_RTR_FLAG; msg 264 drivers/net/can/softing/softing_main.c msg.can_dlc = get_can_dlc(*ptr++); msg 266 drivers/net/can/softing/softing_main.c msg.can_id |= CAN_EFF_FLAG; msg 267 drivers/net/can/softing/softing_main.c msg.can_id |= le32_to_cpup((void *)ptr); msg 270 drivers/net/can/softing/softing_main.c msg.can_id |= le16_to_cpup((void *)ptr); msg 277 drivers/net/can/softing/softing_main.c if (!(msg.can_id & CAN_RTR_FLAG)) msg 278 drivers/net/can/softing/softing_main.c memcpy(&msg.data[0], ptr, 8); msg 296 drivers/net/can/softing/softing_main.c if (!(msg.can_id & CAN_RTR_FLAG)) msg 297 drivers/net/can/softing/softing_main.c netdev->stats.tx_bytes += msg.can_dlc; msg 301 drivers/net/can/softing/softing_main.c ret = softing_netdev_rx(netdev, &msg, ktime); msg 304 drivers/net/can/softing/softing_main.c if (!(msg.can_id & CAN_RTR_FLAG)) msg 305 drivers/net/can/softing/softing_main.c netdev->stats.rx_bytes += msg.can_dlc; msg 119 drivers/net/can/usb/ems_usb.c u8 msg[8]; msg 206 drivers/net/can/usb/ems_usb.c } msg; msg 297 drivers/net/can/usb/ems_usb.c static void ems_usb_rx_can_msg(struct ems_usb *dev, struct ems_cpc_msg *msg) msg 308 drivers/net/can/usb/ems_usb.c cf->can_id = le32_to_cpu(msg->msg.can_msg.id); msg 309 drivers/net/can/usb/ems_usb.c cf->can_dlc = get_can_dlc(msg->msg.can_msg.length & 0xF); msg 311 drivers/net/can/usb/ems_usb.c if (msg->type == CPC_MSG_TYPE_EXT_CAN_FRAME || msg 312 drivers/net/can/usb/ems_usb.c msg->type == CPC_MSG_TYPE_EXT_RTR_FRAME) msg 315 drivers/net/can/usb/ems_usb.c if (msg->type == CPC_MSG_TYPE_RTR_FRAME || msg 316 drivers/net/can/usb/ems_usb.c msg->type == CPC_MSG_TYPE_EXT_RTR_FRAME) { msg 320 drivers/net/can/usb/ems_usb.c cf->data[i] = msg->msg.can_msg.msg[i]; msg 328 drivers/net/can/usb/ems_usb.c static void ems_usb_rx_err(struct ems_usb *dev, struct ems_cpc_msg *msg) msg 338 drivers/net/can/usb/ems_usb.c if (msg->type == CPC_MSG_TYPE_CAN_STATE) { msg 339 drivers/net/can/usb/ems_usb.c u8 state = msg->msg.can_state; msg 354 drivers/net/can/usb/ems_usb.c } else if (msg->type == CPC_MSG_TYPE_CAN_FRAME_ERROR) { msg 355 drivers/net/can/usb/ems_usb.c u8 ecc = msg->msg.error.cc.regs.sja1000.ecc; msg 356 drivers/net/can/usb/ems_usb.c u8 txerr = msg->msg.error.cc.regs.sja1000.txerr; msg 357 drivers/net/can/usb/ems_usb.c u8 rxerr = msg->msg.error.cc.regs.sja1000.rxerr; msg 390 drivers/net/can/usb/ems_usb.c } else if (msg->type == CPC_MSG_TYPE_OVERRUN) { msg 430 drivers/net/can/usb/ems_usb.c struct ems_cpc_msg *msg; msg 439 drivers/net/can/usb/ems_usb.c msg = (struct ems_cpc_msg *)&ibuf[start]; msg 441 drivers/net/can/usb/ems_usb.c switch (msg->type) { msg 444 drivers/net/can/usb/ems_usb.c ems_usb_rx_err(dev, msg); msg 451 drivers/net/can/usb/ems_usb.c ems_usb_rx_can_msg(dev, msg); msg 456 drivers/net/can/usb/ems_usb.c ems_usb_rx_err(dev, msg); msg 461 drivers/net/can/usb/ems_usb.c ems_usb_rx_err(dev, msg); msg 465 drivers/net/can/usb/ems_usb.c start += CPC_MSG_HEADER_LEN + msg->length; msg 531 drivers/net/can/usb/ems_usb.c static int ems_usb_command_msg(struct ems_usb *dev, struct ems_cpc_msg *msg) msg 536 drivers/net/can/usb/ems_usb.c memcpy(&dev->tx_msg_buffer[CPC_HEADER_SIZE], msg, msg 537 drivers/net/can/usb/ems_usb.c msg->length + CPC_MSG_HEADER_LEN); msg 544 drivers/net/can/usb/ems_usb.c msg->length + CPC_MSG_HEADER_LEN + CPC_HEADER_SIZE, msg 553 drivers/net/can/usb/ems_usb.c dev->active_params.msg.can_params.cc_params.sja1000.mode = mode; msg 571 drivers/net/can/usb/ems_usb.c cmd.msg.generic[0] = val; msg 733 drivers/net/can/usb/ems_usb.c struct ems_cpc_msg *msg; msg 755 drivers/net/can/usb/ems_usb.c msg = (struct ems_cpc_msg *)&buf[CPC_HEADER_SIZE]; msg 757 drivers/net/can/usb/ems_usb.c msg->msg.can_msg.id = cpu_to_le32(cf->can_id & CAN_ERR_MASK); msg 758 drivers/net/can/usb/ems_usb.c msg->msg.can_msg.length = cf->can_dlc; msg 761 drivers/net/can/usb/ems_usb.c msg->type = cf->can_id & CAN_EFF_FLAG ? msg 764 drivers/net/can/usb/ems_usb.c msg->length = CPC_CAN_MSG_MIN_SIZE; msg 766 drivers/net/can/usb/ems_usb.c msg->type = cf->can_id & CAN_EFF_FLAG ? msg 770 drivers/net/can/usb/ems_usb.c msg->msg.can_msg.msg[i] = cf->data[i]; msg 772 drivers/net/can/usb/ems_usb.c msg->length = CPC_CAN_MSG_MIN_SIZE + cf->can_dlc; msg 921 drivers/net/can/usb/ems_usb.c dev->active_params.msg.can_params.cc_params.sja1000.btr0 = btr0; msg 922 drivers/net/can/usb/ems_usb.c dev->active_params.msg.can_params.cc_params.sja1000.btr1 = btr1; msg 927 drivers/net/can/usb/ems_usb.c static void init_params_sja1000(struct ems_cpc_msg *msg) msg 930 drivers/net/can/usb/ems_usb.c &msg->msg.can_params.cc_params.sja1000; msg 932 drivers/net/can/usb/ems_usb.c msg->type = CPC_CMD_TYPE_CAN_PARAMS; msg 933 drivers/net/can/usb/ems_usb.c msg->length = sizeof(struct cpc_can_params); msg 934 drivers/net/can/usb/ems_usb.c msg->msgid = 0; msg 936 drivers/net/can/usb/ems_usb.c msg->msg.can_params.cc_type = CPC_CC_TYPE_SJA1000; msg 171 drivers/net/can/usb/esd_usb2.c } msg; msg 215 drivers/net/can/usb/esd_usb2.c struct esd_usb2_msg *msg) msg 220 drivers/net/can/usb/esd_usb2.c u32 id = le32_to_cpu(msg->msg.rx.id) & ESD_IDMASK; msg 223 drivers/net/can/usb/esd_usb2.c u8 state = msg->msg.rx.data[0]; msg 224 drivers/net/can/usb/esd_usb2.c u8 ecc = msg->msg.rx.data[1]; msg 225 drivers/net/can/usb/esd_usb2.c u8 txerr = msg->msg.rx.data[2]; msg 226 drivers/net/can/usb/esd_usb2.c u8 rxerr = msg->msg.rx.data[3]; msg 301 drivers/net/can/usb/esd_usb2.c struct esd_usb2_msg *msg) msg 312 drivers/net/can/usb/esd_usb2.c id = le32_to_cpu(msg->msg.rx.id); msg 315 drivers/net/can/usb/esd_usb2.c esd_usb2_rx_event(priv, msg); msg 324 drivers/net/can/usb/esd_usb2.c cf->can_dlc = get_can_dlc(msg->msg.rx.dlc & ~ESD_RTR); msg 329 drivers/net/can/usb/esd_usb2.c if (msg->msg.rx.dlc & ESD_RTR) { msg 333 drivers/net/can/usb/esd_usb2.c cf->data[i] = msg->msg.rx.data[i]; msg 345 drivers/net/can/usb/esd_usb2.c struct esd_usb2_msg *msg) msg 354 drivers/net/can/usb/esd_usb2.c context = &priv->tx_contexts[msg->msg.txdone.hnd & (MAX_TX_URBS - 1)]; msg 356 drivers/net/can/usb/esd_usb2.c if (!msg->msg.txdone.status) { msg 396 drivers/net/can/usb/esd_usb2.c struct esd_usb2_msg *msg; msg 398 drivers/net/can/usb/esd_usb2.c msg = (struct esd_usb2_msg *)(urb->transfer_buffer + pos); msg 400 drivers/net/can/usb/esd_usb2.c switch (msg->msg.hdr.cmd) { msg 402 drivers/net/can/usb/esd_usb2.c if (msg->msg.rx.net >= dev->net_count) { msg 407 drivers/net/can/usb/esd_usb2.c esd_usb2_rx_can_msg(dev->nets[msg->msg.rx.net], msg); msg 411 drivers/net/can/usb/esd_usb2.c if (msg->msg.txdone.net >= dev->net_count) { msg 416 drivers/net/can/usb/esd_usb2.c esd_usb2_tx_done_msg(dev->nets[msg->msg.txdone.net], msg 417 drivers/net/can/usb/esd_usb2.c msg); msg 421 drivers/net/can/usb/esd_usb2.c pos += msg->msg.hdr.len << 2; msg 512 drivers/net/can/usb/esd_usb2.c static int esd_usb2_send_msg(struct esd_usb2 *dev, struct esd_usb2_msg *msg) msg 518 drivers/net/can/usb/esd_usb2.c msg, msg 519 drivers/net/can/usb/esd_usb2.c msg->msg.hdr.len << 2, msg 525 drivers/net/can/usb/esd_usb2.c struct esd_usb2_msg *msg) msg 531 drivers/net/can/usb/esd_usb2.c msg, msg 532 drivers/net/can/usb/esd_usb2.c sizeof(*msg), msg 608 drivers/net/can/usb/esd_usb2.c struct esd_usb2_msg *msg; msg 611 drivers/net/can/usb/esd_usb2.c msg = kmalloc(sizeof(*msg), GFP_KERNEL); msg 612 drivers/net/can/usb/esd_usb2.c if (!msg) { msg 630 drivers/net/can/usb/esd_usb2.c msg->msg.hdr.cmd = CMD_IDADD; msg 631 drivers/net/can/usb/esd_usb2.c msg->msg.hdr.len = 2 + ESD_MAX_ID_SEGMENT; msg 632 drivers/net/can/usb/esd_usb2.c msg->msg.filter.net = priv->index; msg 633 drivers/net/can/usb/esd_usb2.c msg->msg.filter.option = ESD_ID_ENABLE; /* start with segment 0 */ msg 635 drivers/net/can/usb/esd_usb2.c msg->msg.filter.mask[i] = cpu_to_le32(0xffffffff); msg 637 drivers/net/can/usb/esd_usb2.c msg->msg.filter.mask[ESD_MAX_ID_SEGMENT] = cpu_to_le32(0x00000001); msg 639 drivers/net/can/usb/esd_usb2.c err = esd_usb2_send_msg(dev, msg); msg 655 drivers/net/can/usb/esd_usb2.c kfree(msg); msg 708 drivers/net/can/usb/esd_usb2.c struct esd_usb2_msg *msg; msg 735 drivers/net/can/usb/esd_usb2.c msg = (struct esd_usb2_msg *)buf; msg 737 drivers/net/can/usb/esd_usb2.c msg->msg.hdr.len = 3; /* minimal length */ msg 738 drivers/net/can/usb/esd_usb2.c msg->msg.hdr.cmd = CMD_CAN_TX; msg 739 drivers/net/can/usb/esd_usb2.c msg->msg.tx.net = priv->index; msg 740 drivers/net/can/usb/esd_usb2.c msg->msg.tx.dlc = cf->can_dlc; msg 741 drivers/net/can/usb/esd_usb2.c msg->msg.tx.id = cpu_to_le32(cf->can_id & CAN_ERR_MASK); msg 744 drivers/net/can/usb/esd_usb2.c msg->msg.tx.dlc |= ESD_RTR; msg 747 drivers/net/can/usb/esd_usb2.c msg->msg.tx.id |= cpu_to_le32(ESD_EXTID); msg 750 drivers/net/can/usb/esd_usb2.c msg->msg.tx.data[i] = cf->data[i]; msg 752 drivers/net/can/usb/esd_usb2.c msg->msg.hdr.len += (cf->can_dlc + 3) >> 2; msg 775 drivers/net/can/usb/esd_usb2.c msg->msg.tx.hnd = 0x80000000 | i; /* returned in TX done message */ msg 778 drivers/net/can/usb/esd_usb2.c msg->msg.hdr.len << 2, msg 833 drivers/net/can/usb/esd_usb2.c struct esd_usb2_msg *msg; msg 836 drivers/net/can/usb/esd_usb2.c msg = kmalloc(sizeof(*msg), GFP_KERNEL); msg 837 drivers/net/can/usb/esd_usb2.c if (!msg) msg 841 drivers/net/can/usb/esd_usb2.c msg->msg.hdr.cmd = CMD_IDADD; msg 842 drivers/net/can/usb/esd_usb2.c msg->msg.hdr.len = 2 + ESD_MAX_ID_SEGMENT; msg 843 drivers/net/can/usb/esd_usb2.c msg->msg.filter.net = priv->index; msg 844 drivers/net/can/usb/esd_usb2.c msg->msg.filter.option = ESD_ID_ENABLE; /* start with segment 0 */ msg 846 drivers/net/can/usb/esd_usb2.c msg->msg.filter.mask[i] = 0; msg 847 drivers/net/can/usb/esd_usb2.c if (esd_usb2_send_msg(priv->usb2, msg) < 0) msg 851 drivers/net/can/usb/esd_usb2.c msg->msg.hdr.len = 2; msg 852 drivers/net/can/usb/esd_usb2.c msg->msg.hdr.cmd = CMD_SETBAUD; msg 853 drivers/net/can/usb/esd_usb2.c msg->msg.setbaud.net = priv->index; msg 854 drivers/net/can/usb/esd_usb2.c msg->msg.setbaud.rsvd = 0; msg 855 drivers/net/can/usb/esd_usb2.c msg->msg.setbaud.baud = cpu_to_le32(ESD_USB2_NO_BAUDRATE); msg 856 drivers/net/can/usb/esd_usb2.c if (esd_usb2_send_msg(priv->usb2, msg) < 0) msg 865 drivers/net/can/usb/esd_usb2.c kfree(msg); msg 893 drivers/net/can/usb/esd_usb2.c struct esd_usb2_msg *msg; msg 920 drivers/net/can/usb/esd_usb2.c msg = kmalloc(sizeof(*msg), GFP_KERNEL); msg 921 drivers/net/can/usb/esd_usb2.c if (!msg) msg 924 drivers/net/can/usb/esd_usb2.c msg->msg.hdr.len = 2; msg 925 drivers/net/can/usb/esd_usb2.c msg->msg.hdr.cmd = CMD_SETBAUD; msg 926 drivers/net/can/usb/esd_usb2.c msg->msg.setbaud.net = priv->index; msg 927 drivers/net/can/usb/esd_usb2.c msg->msg.setbaud.rsvd = 0; msg 928 drivers/net/can/usb/esd_usb2.c msg->msg.setbaud.baud = cpu_to_le32(canbtr); msg 932 drivers/net/can/usb/esd_usb2.c err = esd_usb2_send_msg(priv->usb2, msg); msg 934 drivers/net/can/usb/esd_usb2.c kfree(msg); msg 1038 drivers/net/can/usb/esd_usb2.c struct esd_usb2_msg *msg; msg 1053 drivers/net/can/usb/esd_usb2.c msg = kmalloc(sizeof(*msg), GFP_KERNEL); msg 1054 drivers/net/can/usb/esd_usb2.c if (!msg) { msg 1060 drivers/net/can/usb/esd_usb2.c msg->msg.hdr.cmd = CMD_VERSION; msg 1061 drivers/net/can/usb/esd_usb2.c msg->msg.hdr.len = 2; msg 1062 drivers/net/can/usb/esd_usb2.c msg->msg.version.rsvd = 0; msg 1063 drivers/net/can/usb/esd_usb2.c msg->msg.version.flags = 0; msg 1064 drivers/net/can/usb/esd_usb2.c msg->msg.version.drv_version = 0; msg 1066 drivers/net/can/usb/esd_usb2.c err = esd_usb2_send_msg(dev, msg); msg 1072 drivers/net/can/usb/esd_usb2.c err = esd_usb2_wait_msg(dev, msg); msg 1078 drivers/net/can/usb/esd_usb2.c dev->net_count = (int)msg->msg.version_reply.nets; msg 1079 drivers/net/can/usb/esd_usb2.c dev->version = le32_to_cpu(msg->msg.version_reply.version); msg 1098 drivers/net/can/usb/esd_usb2.c kfree(msg); msg 419 drivers/net/can/usb/mcba_usb.c struct mcba_usb_msg_can *msg) msg 430 drivers/net/can/usb/mcba_usb.c sid = get_unaligned_be16(&msg->sid); msg 443 drivers/net/can/usb/mcba_usb.c cf->can_id |= get_unaligned_be16(&msg->eid); msg 451 drivers/net/can/usb/mcba_usb.c if (msg->dlc & MCBA_DLC_RTR_MASK) msg 454 drivers/net/can/usb/mcba_usb.c cf->can_dlc = get_can_dlc(msg->dlc & MCBA_DLC_MASK); msg 456 drivers/net/can/usb/mcba_usb.c memcpy(cf->data, msg->data, cf->can_dlc); msg 466 drivers/net/can/usb/mcba_usb.c struct mcba_usb_msg_ka_usb *msg) msg 470 drivers/net/can/usb/mcba_usb.c msg->soft_ver_major, msg->soft_ver_minor); msg 475 drivers/net/can/usb/mcba_usb.c if (msg->termination_state) msg 481 drivers/net/can/usb/mcba_usb.c static u32 convert_can2host_bitrate(struct mcba_usb_msg_ka_can *msg) msg 483 drivers/net/can/usb/mcba_usb.c const u32 bitrate = get_unaligned_be16(&msg->can_bitrate); msg 492 drivers/net/can/usb/mcba_usb.c struct mcba_usb_msg_ka_can *msg) msg 496 drivers/net/can/usb/mcba_usb.c msg->soft_ver_major, msg->soft_ver_minor); msg 502 drivers/net/can/usb/mcba_usb.c const u32 bitrate = convert_can2host_bitrate(msg); msg 513 drivers/net/can/usb/mcba_usb.c priv->bec.txerr = msg->tx_err_cnt; msg 514 drivers/net/can/usb/mcba_usb.c priv->bec.rxerr = msg->rx_err_cnt; msg 516 drivers/net/can/usb/mcba_usb.c if (msg->tx_bus_off) msg 529 drivers/net/can/usb/mcba_usb.c struct mcba_usb_msg *msg) msg 531 drivers/net/can/usb/mcba_usb.c switch (msg->cmd_id) { msg 534 drivers/net/can/usb/mcba_usb.c (struct mcba_usb_msg_ka_can *)msg); msg 539 drivers/net/can/usb/mcba_usb.c (struct mcba_usb_msg_ka_usb *)msg); msg 543 drivers/net/can/usb/mcba_usb.c mcba_usb_process_can(priv, (struct mcba_usb_msg_can *)msg); msg 558 drivers/net/can/usb/mcba_usb.c msg->cmd_id); msg 596 drivers/net/can/usb/mcba_usb.c struct mcba_usb_msg *msg; msg 603 drivers/net/can/usb/mcba_usb.c msg = (struct mcba_usb_msg *)(urb->transfer_buffer + pos); msg 604 drivers/net/can/usb/mcba_usb.c mcba_usb_process_rx(priv, msg); msg 228 drivers/net/can/usb/ucan.c } msg; msg 248 drivers/net/can/usb/ucan.c } __aligned(0x4) msg; msg 252 drivers/net/can/usb/ucan.c #define UCAN_OUT_HDR_SIZE offsetof(struct ucan_message_out, msg) msg 254 drivers/net/can/usb/ucan.c #define UCAN_IN_HDR_SIZE offsetof(struct ucan_message_in, msg) msg 306 drivers/net/can/usb/ucan.c static u8 ucan_get_can_dlc(struct ucan_can_msg *msg, u16 len) msg 308 drivers/net/can/usb/ucan.c if (le32_to_cpu(msg->id) & CAN_RTR_FLAG) msg 309 drivers/net/can/usb/ucan.c return get_can_dlc(msg->dlc); msg 311 drivers/net/can/usb/ucan.c return get_can_dlc(len - (UCAN_IN_HDR_SIZE + sizeof(msg->id))); msg 505 drivers/net/can/usb/ucan.c u8 d1 = m->msg.can_msg.data[1]; msg 523 drivers/net/can/usb/ucan.c u8 d2 = m->msg.can_msg.data[2]; msg 577 drivers/net/can/usb/ucan.c if (len < UCAN_IN_HDR_SIZE + sizeof(m->msg.can_msg.id)) { msg 583 drivers/net/can/usb/ucan.c canid = le32_to_cpu(m->msg.can_msg.id); msg 617 drivers/net/can/usb/ucan.c cf->can_dlc = ucan_get_can_dlc(&m->msg.can_msg, len); msg 621 drivers/net/can/usb/ucan.c memcpy(cf->data, m->msg.can_msg.data, cf->can_dlc); msg 650 drivers/net/can/usb/ucan.c echo_index = m->msg.can_tx_complete_msg[i].echo_index; msg 670 drivers/net/can/usb/ucan.c if (m->msg.can_tx_complete_msg[i].flags & msg 1075 drivers/net/can/usb/ucan.c m->msg.can_msg.id = cpu_to_le32(cf->can_id); msg 1080 drivers/net/can/usb/ucan.c sizeof(m->msg.can_msg.dlc); msg 1081 drivers/net/can/usb/ucan.c m->msg.can_msg.dlc = cf->can_dlc; msg 1084 drivers/net/can/usb/ucan.c sizeof(m->msg.can_msg.id) + cf->can_dlc; msg 1085 drivers/net/can/usb/ucan.c memcpy(m->msg.can_msg.data, cf->data, cf->can_dlc); msg 176 drivers/net/can/usb/usb_8dev.c static int usb_8dev_send_cmd_msg(struct usb_8dev_priv *priv, u8 *msg, int size) msg 182 drivers/net/can/usb/usb_8dev.c msg, size, &actual_length, USB_8DEV_CMD_TIMEOUT); msg 185 drivers/net/can/usb/usb_8dev.c static int usb_8dev_wait_cmd_msg(struct usb_8dev_priv *priv, u8 *msg, int size, msg 190 drivers/net/can/usb/usb_8dev.c msg, size, actual_length, USB_8DEV_CMD_TIMEOUT); msg 336 drivers/net/can/usb/usb_8dev.c struct usb_8dev_rx_msg *msg) msg 350 drivers/net/can/usb/usb_8dev.c u8 state = msg->data[0]; msg 351 drivers/net/can/usb/usb_8dev.c u8 rxerr = msg->data[1] & USB_8DEV_RP_MASK; msg 352 drivers/net/can/usb/usb_8dev.c u8 txerr = msg->data[2]; msg 458 drivers/net/can/usb/usb_8dev.c struct usb_8dev_rx_msg *msg) msg 464 drivers/net/can/usb/usb_8dev.c if (msg->type == USB_8DEV_TYPE_ERROR_FRAME && msg 465 drivers/net/can/usb/usb_8dev.c msg->flags == USB_8DEV_ERR_FLAG) { msg 466 drivers/net/can/usb/usb_8dev.c usb_8dev_rx_err_msg(priv, msg); msg 467 drivers/net/can/usb/usb_8dev.c } else if (msg->type == USB_8DEV_TYPE_CAN_FRAME) { msg 472 drivers/net/can/usb/usb_8dev.c cf->can_id = be32_to_cpu(msg->id); msg 473 drivers/net/can/usb/usb_8dev.c cf->can_dlc = get_can_dlc(msg->dlc & 0xF); msg 475 drivers/net/can/usb/usb_8dev.c if (msg->flags & USB_8DEV_EXTID) msg 478 drivers/net/can/usb/usb_8dev.c if (msg->flags & USB_8DEV_RTR) msg 481 drivers/net/can/usb/usb_8dev.c memcpy(cf->data, msg->data, cf->can_dlc); msg 490 drivers/net/can/usb/usb_8dev.c msg->type); msg 528 drivers/net/can/usb/usb_8dev.c struct usb_8dev_rx_msg *msg; msg 535 drivers/net/can/usb/usb_8dev.c msg = (struct usb_8dev_rx_msg *)(urb->transfer_buffer + pos); msg 536 drivers/net/can/usb/usb_8dev.c usb_8dev_rx_can_msg(priv, msg); msg 605 drivers/net/can/usb/usb_8dev.c struct usb_8dev_tx_msg *msg; msg 629 drivers/net/can/usb/usb_8dev.c msg = (struct usb_8dev_tx_msg *)buf; msg 630 drivers/net/can/usb/usb_8dev.c msg->begin = USB_8DEV_DATA_START; msg 631 drivers/net/can/usb/usb_8dev.c msg->flags = 0x00; msg 634 drivers/net/can/usb/usb_8dev.c msg->flags |= USB_8DEV_RTR; msg 637 drivers/net/can/usb/usb_8dev.c msg->flags |= USB_8DEV_EXTID; msg 639 drivers/net/can/usb/usb_8dev.c msg->id = cpu_to_be32(cf->can_id & CAN_ERR_MASK); msg 640 drivers/net/can/usb/usb_8dev.c msg->dlc = cf->can_dlc; msg 641 drivers/net/can/usb/usb_8dev.c memcpy(msg->data, cf->data, cf->can_dlc); msg 642 drivers/net/can/usb/usb_8dev.c msg->end = USB_8DEV_DATA_END; msg 26 drivers/net/dsa/sja1105/sja1105_spi.c struct spi_message msg; msg 35 drivers/net/dsa/sja1105/sja1105_spi.c spi_message_init(&msg); msg 36 drivers/net/dsa/sja1105/sja1105_spi.c spi_message_add_tail(&transfer, &msg); msg 38 drivers/net/dsa/sja1105/sja1105_spi.c rc = spi_sync(spi, &msg); msg 48 drivers/net/dsa/sja1105/sja1105_spi.c sja1105_spi_message_pack(void *buf, const struct sja1105_spi_message *msg) msg 54 drivers/net/dsa/sja1105/sja1105_spi.c sja1105_pack(buf, &msg->access, 31, 31, size); msg 55 drivers/net/dsa/sja1105/sja1105_spi.c sja1105_pack(buf, &msg->read_count, 30, 25, size); msg 56 drivers/net/dsa/sja1105/sja1105_spi.c sja1105_pack(buf, &msg->address, 24, 4, size); msg 76 drivers/net/dsa/sja1105/sja1105_spi.c struct sja1105_spi_message msg = {0}; msg 82 drivers/net/dsa/sja1105/sja1105_spi.c msg.access = rw; msg 83 drivers/net/dsa/sja1105/sja1105_spi.c msg.address = reg_addr; msg 85 drivers/net/dsa/sja1105/sja1105_spi.c msg.read_count = size_bytes / 4; msg 87 drivers/net/dsa/sja1105/sja1105_spi.c sja1105_spi_message_pack(tx_buf, &msg); msg 1105 drivers/net/ethernet/8390/axnet_cs.c const char *msg; msg 1108 drivers/net/ethernet/8390/axnet_cs.c msg = "Interrupted while interrupts are masked!"; msg 1110 drivers/net/ethernet/8390/axnet_cs.c msg = "Reentering the interrupt handler!"; msg 1112 drivers/net/ethernet/8390/axnet_cs.c msg, msg 932 drivers/net/ethernet/amd/nmclan_cs.c const char *msg; msg 934 drivers/net/ethernet/amd/nmclan_cs.c msg = "Interrupt with tx_irq_disabled"; msg 936 drivers/net/ethernet/amd/nmclan_cs.c msg = "Re-entering the interrupt handler"; msg 938 drivers/net/ethernet/amd/nmclan_cs.c msg, msg 512 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c u16 msg; msg 516 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c msg = XGBE_XNP_MCF_NULL_MESSAGE; msg 517 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c msg |= XGBE_XNP_MP_FORMATTED; msg 521 drivers/net/ethernet/amd/xgbe/xgbe-mdio.c XMDIO_WRITE(pdata, MDIO_MMD_AN, MDIO_AN_XNP, msg); msg 393 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c struct fw2x_msg_wol *msg = NULL; msg 402 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c msg = (struct fw2x_msg_wol *)rpc; msg 404 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c memset(msg, 0, sizeof(*msg)); msg 406 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c msg->msg_id = HAL_ATLANTIC_UTILS_FW2X_MSG_WOL; msg 407 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c msg->magic_packet_enabled = true; msg 408 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c memcpy(msg->hw_addr, mac, ETH_ALEN); msg 415 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils_fw2x.c err = hw_atl_utils_fw_rpc_call(self, sizeof(*msg)); msg 1968 drivers/net/ethernet/broadcom/bnx2.c u32 msg; msg 1972 drivers/net/ethernet/broadcom/bnx2.c msg = (u32) (++bp->fw_drv_pulse_wr_seq & BNX2_DRV_PULSE_SEQ_MASK); msg 1975 drivers/net/ethernet/broadcom/bnx2.c BNX2_WR(bp, BNX2_PCICFG_REG_WINDOW, msg); msg 1982 drivers/net/ethernet/broadcom/bnx2.c u32 msg; msg 1986 drivers/net/ethernet/broadcom/bnx2.c msg = bnx2_shmem_rd(bp, BNX2_LINK_STATUS); msg 1988 drivers/net/ethernet/broadcom/bnx2.c if (msg & BNX2_LINK_STATUS_HEART_BEAT_EXPIRED) msg 1991 drivers/net/ethernet/broadcom/bnx2.c msg &= ~BNX2_LINK_STATUS_HEART_BEAT_EXPIRED; msg 1993 drivers/net/ethernet/broadcom/bnx2.c if ((msg & BNX2_LINK_STATUS_LINK_UP) == BNX2_LINK_STATUS_LINK_DOWN) msg 1999 drivers/net/ethernet/broadcom/bnx2.c speed = msg & BNX2_LINK_STATUS_SPEED_MASK; msg 2038 drivers/net/ethernet/broadcom/bnx2.c if (msg & BNX2_LINK_STATUS_TX_FC_ENABLED) msg 2040 drivers/net/ethernet/broadcom/bnx2.c if (msg & BNX2_LINK_STATUS_RX_FC_ENABLED) msg 2045 drivers/net/ethernet/broadcom/bnx2.c if (msg & BNX2_LINK_STATUS_SERDES_LINK) msg 7370 drivers/net/ethernet/broadcom/bnx2.h #define BNX2_BC_STATE_RESET_TYPE_VALUE(msg) (BNX2_BC_STATE_RESET_TYPE_SIG | \ msg 7371 drivers/net/ethernet/broadcom/bnx2.h (msg)) msg 2053 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h char *msg, u32 poll_cnt); msg 1286 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c char *msg, u32 poll_cnt) msg 1290 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c BNX2X_ERR("%s usage count=%d\n", msg, val); msg 6625 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bp->strm->msg); msg 1604 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c BP_VF_MBX(bp, vfid)->msg = (struct bnx2x_vf_mbx_msg *) msg 270 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h struct bnx2x_vf_mbx_msg *msg; msg 1134 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c bnx2x_add_tlv(bp, &mbx->msg->resp, 0, type, length); msg 1135 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c bnx2x_add_tlv(bp, &mbx->msg->resp, length, CHANNEL_TLV_LIST_END, msg 1144 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c struct pfvf_general_resp_tlv *resp = &mbx->msg->resp.general_resp; msg 1258 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c struct pfvf_acquire_resp_tlv *resp = &mbx->msg->resp.acquire_resp; msg 1339 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c bnx2x_add_tlv(bp, &mbx->msg->resp, 0, CHANNEL_TLV_ACQUIRE, length); msg 1345 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c if (bnx2x_search_tlv_list(bp, &mbx->msg->req, msg 1347 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c bnx2x_vf_mbx_resp_phys_port(bp, vf, &mbx->msg->resp, &length); msg 1353 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c bnx2x_vf_mbx_resp_fp_hsi_ver(bp, vf, &mbx->msg->resp, &length); msg 1355 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c bnx2x_add_tlv(bp, &mbx->msg->resp, length, CHANNEL_TLV_LIST_END, msg 1386 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c if (bnx2x_search_tlv_list(bp, &mbx->msg->req, msg 1391 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c if (bnx2x_vf_mbx_is_windows_vm(bp, &mbx->msg->req.acquire)) msg 1401 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c struct vfpf_acquire_tlv *acquire = &mbx->msg->req.acquire; msg 1427 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c if (bnx2x_vf_mbx_is_windows_vm(bp, &mbx->msg->req.acquire)) msg 1470 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c struct vfpf_init_tlv *init = &mbx->msg->req.init; msg 1521 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c struct vfpf_setup_q_tlv *setup_q = &mbx->msg->req.setup_q; msg 1735 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c struct vfpf_set_q_filters_tlv *msg = msg 1736 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c &BP_VF_MBX(bp, vf->index)->msg->req.set_q_filters; msg 1739 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c if (msg->flags & VFPF_SET_Q_FILTERS_MAC_VLAN_CHANGED) { msg 1743 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c rc = bnx2x_vf_mbx_macvlan_list(bp, vf, msg, &fl, msg 1752 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c msg->vf_qid, msg 1761 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c rc = bnx2x_vf_mbx_macvlan_list(bp, vf, msg, &fl, msg 1769 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c msg->vf_qid, msg 1778 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c rc = bnx2x_vf_mbx_macvlan_list(bp, vf, msg, &fl, msg 1786 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c msg->vf_qid, msg 1794 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c if (msg->flags & VFPF_SET_Q_FILTERS_RX_MASK_CHANGED) { msg 1800 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c if (msg->rx_mask != VFPF_RX_MASK_ACCEPT_NONE) { msg 1814 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c msg->rx_mask & VFPF_RX_MASK_ACCEPT_ANY_VLAN)) msg 1818 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c rc = bnx2x_vf_rxmode(bp, vf, msg->vf_qid, accept); msg 1823 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c if (msg->flags & VFPF_SET_Q_FILTERS_MULTICAST_CHANGED) { msg 1825 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c rc = bnx2x_vf_mcast(bp, vf, msg->multicast, msg 1826 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c msg->n_multicast, false); msg 1833 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c vf->abs_vfid, msg->vf_qid, rc); msg 1921 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c struct vfpf_set_q_filters_tlv *filters = &mbx->msg->req.set_q_filters; msg 1947 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c int qid = mbx->msg->req.q_op.vf_qid; msg 1983 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c struct vfpf_rss_tlv *rss_tlv = &mbx->msg->req.update_rss; msg 2067 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c struct vfpf_tpa_tlv *tpa_tlv = &mbx->msg->req.update_tpa; msg 2172 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c mbx->msg->req.tlv_buf_size.tlv_buffer[i]); msg 2264 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c mbx->first_tlv = mbx->msg->req.first_tlv; msg 2269 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c memset(&mbx->msg->resp, 0, sizeof(union pfvf_tlvs)); msg 4177 drivers/net/ethernet/broadcom/bnxt/bnxt.c static int bnxt_hwrm_do_send_msg(struct bnxt *bp, void *msg, u32 msg_len, msg 4181 drivers/net/ethernet/broadcom/bnxt/bnxt.c struct input *req = msg; msg 4182 drivers/net/ethernet/broadcom/bnxt/bnxt.c u32 *data = msg; msg 4364 drivers/net/ethernet/broadcom/bnxt/bnxt.c int _hwrm_send_message(struct bnxt *bp, void *msg, u32 msg_len, int timeout) msg 4366 drivers/net/ethernet/broadcom/bnxt/bnxt.c return bnxt_hwrm_do_send_msg(bp, msg, msg_len, timeout, false); msg 4369 drivers/net/ethernet/broadcom/bnxt/bnxt.c int _hwrm_send_message_silent(struct bnxt *bp, void *msg, u32 msg_len, msg 4372 drivers/net/ethernet/broadcom/bnxt/bnxt.c return bnxt_hwrm_do_send_msg(bp, msg, msg_len, timeout, true); msg 4375 drivers/net/ethernet/broadcom/bnxt/bnxt.c int hwrm_send_message(struct bnxt *bp, void *msg, u32 msg_len, int timeout) msg 4380 drivers/net/ethernet/broadcom/bnxt/bnxt.c rc = _hwrm_send_message(bp, msg, msg_len, timeout); msg 4385 drivers/net/ethernet/broadcom/bnxt/bnxt.c int hwrm_send_message_silent(struct bnxt *bp, void *msg, u32 msg_len, msg 4391 drivers/net/ethernet/broadcom/bnxt/bnxt.c rc = bnxt_hwrm_do_send_msg(bp, msg, msg_len, timeout, true); msg 1968 drivers/net/ethernet/broadcom/bnxt/bnxt.h int _hwrm_send_message_silent(struct bnxt *bp, void *msg, u32 len, int timeout); msg 292 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c static int bnxt_hwrm_nvm_req(struct bnxt *bp, u32 param_id, void *msg, msg 295 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c struct hwrm_nvm_get_variable_input *req = msg; msg 335 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c rc = hwrm_send_message(bp, msg, msg_len, HWRM_CMD_TIMEOUT); msg 337 drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c rc = hwrm_send_message_silent(bp, msg, msg_len, msg 3017 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c static int bnxt_hwrm_dbg_dma_data(struct bnxt *bp, void *msg, int msg_len, msg 3021 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c struct hwrm_dbg_cmn_input *cmn_req = msg; msg 3022 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c __le16 *seq_ptr = msg + info->seq_off; msg 3041 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c rc = _hwrm_send_message(bp, msg, msg_len, HWRM_CMD_TIMEOUT); msg 237 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c req = fw_msg->msg; msg 239 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.c rc = _hwrm_send_message(bp, fw_msg->msg, fw_msg->msg_len, msg 41 drivers/net/ethernet/broadcom/bnxt/bnxt_ulp.h void *msg; msg 2947 drivers/net/ethernet/broadcom/tg3.c u32 msg = 0; msg 2954 drivers/net/ethernet/broadcom/tg3.c msg = TG3_GPIO_MSG_NEED_VAUX; msg 2956 drivers/net/ethernet/broadcom/tg3.c msg = tg3_set_function_status(tp, msg); msg 2958 drivers/net/ethernet/broadcom/tg3.c if (msg & TG3_GPIO_MSG_ALL_DRVR_PRES_MASK) msg 2961 drivers/net/ethernet/broadcom/tg3.c if (msg & TG3_GPIO_MSG_ALL_NEED_VAUX_MASK) msg 171 drivers/net/ethernet/brocade/bna/bfa_cee.c cmd = (struct bfi_cee_get_req *) cee->get_cfg_mb.msg; msg 190 drivers/net/ethernet/brocade/bna/bfa_cee.c union bfi_cee_i2h_msg_u *msg; msg 193 drivers/net/ethernet/brocade/bna/bfa_cee.c msg = (union bfi_cee_i2h_msg_u *) m; msg 195 drivers/net/ethernet/brocade/bna/bfa_cee.c switch (msg->mh.msg_id) { msg 2156 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_ioc_mbox_send(ioc, cmd->msg, sizeof(cmd->msg)); msg 2439 drivers/net/ethernet/brocade/bna/bfa_ioc.c union bfi_ioc_i2h_msg_u *msg; msg 2442 drivers/net/ethernet/brocade/bna/bfa_ioc.c msg = (union bfi_ioc_i2h_msg_u *) m; msg 2446 drivers/net/ethernet/brocade/bna/bfa_ioc.c switch (msg->mh.msg_id) { msg 2452 drivers/net/ethernet/brocade/bna/bfa_ioc.c (enum bfa_mode)msg->fw_event.port_mode, msg 2453 drivers/net/ethernet/brocade/bna/bfa_ioc.c msg->fw_event.cap_bm); msg 2674 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_ioc_mbox_send(ioc, cmd->msg, sizeof(cmd->msg)); msg 3060 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfi_flash_write_req *msg = msg 3061 drivers/net/ethernet/brocade/bna/bfa_ioc.c (struct bfi_flash_write_req *) flash->mb.msg; msg 3064 drivers/net/ethernet/brocade/bna/bfa_ioc.c msg->type = be32_to_cpu(flash->type); msg 3065 drivers/net/ethernet/brocade/bna/bfa_ioc.c msg->instance = flash->instance; msg 3066 drivers/net/ethernet/brocade/bna/bfa_ioc.c msg->offset = be32_to_cpu(flash->addr_off + flash->offset); msg 3069 drivers/net/ethernet/brocade/bna/bfa_ioc.c msg->length = be32_to_cpu(len); msg 3072 drivers/net/ethernet/brocade/bna/bfa_ioc.c msg->last = (len == flash->residue) ? 1 : 0; msg 3074 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfi_h2i_set(msg->mh, BFI_MC_FLASH, BFI_FLASH_H2I_WRITE_REQ, msg 3076 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_alen_set(&msg->alen, len, flash->dbuf_pa); msg 3093 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfi_flash_read_req *msg = msg 3094 drivers/net/ethernet/brocade/bna/bfa_ioc.c (struct bfi_flash_read_req *) flash->mb.msg; msg 3097 drivers/net/ethernet/brocade/bna/bfa_ioc.c msg->type = be32_to_cpu(flash->type); msg 3098 drivers/net/ethernet/brocade/bna/bfa_ioc.c msg->instance = flash->instance; msg 3099 drivers/net/ethernet/brocade/bna/bfa_ioc.c msg->offset = be32_to_cpu(flash->addr_off + flash->offset); msg 3102 drivers/net/ethernet/brocade/bna/bfa_ioc.c msg->length = be32_to_cpu(len); msg 3103 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfi_h2i_set(msg->mh, BFI_MC_FLASH, BFI_FLASH_H2I_READ_REQ, msg 3105 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_alen_set(&msg->alen, len, flash->dbuf_pa); msg 3116 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_flash_intr(void *flasharg, struct bfi_mbmsg *msg) msg 3125 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfi_mbmsg *msg; msg 3128 drivers/net/ethernet/brocade/bna/bfa_ioc.c m.msg = msg; msg 3131 drivers/net/ethernet/brocade/bna/bfa_ioc.c if (!flash->op_busy && msg->mh.msg_id != BFI_FLASH_I2H_EVENT) msg 3134 drivers/net/ethernet/brocade/bna/bfa_ioc.c switch (msg->mh.msg_id) { msg 3257 drivers/net/ethernet/brocade/bna/bfa_ioc.c struct bfi_flash_query_req *msg = msg 3258 drivers/net/ethernet/brocade/bna/bfa_ioc.c (struct bfi_flash_query_req *) flash->mb.msg; msg 3271 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfi_h2i_set(msg->mh, BFI_MC_FLASH, BFI_FLASH_H2I_QUERY_REQ, msg 3273 drivers/net/ethernet/brocade/bna/bfa_ioc.c bfa_alen_set(&msg->alen, sizeof(struct bfa_flash_attr), flash->dbuf_pa); msg 103 drivers/net/ethernet/brocade/bna/bfa_ioc.h u32 msg[BFI_IOC_MSGSZ]; msg 188 drivers/net/ethernet/brocade/bna/bfa_msgq.c (struct bfi_msgq_h2i_db *)(&cmdq->dbell_mb.msg[0]); msg 280 drivers/net/ethernet/brocade/bna/bfa_msgq.c (struct bfi_msgq_h2i_cmdq_copy_rsp *)&cmdq->copy_mb.msg[0]; msg 446 drivers/net/ethernet/brocade/bna/bfa_msgq.c (struct bfi_msgq_h2i_db *)(&rspq->dbell_mb.msg[0]); msg 511 drivers/net/ethernet/brocade/bna/bfa_msgq.c (struct bfi_msgq_cfg_req *)&msgq->init_mb.msg[0]; msg 526 drivers/net/ethernet/brocade/bna/bfa_msgq.c bfa_msgq_isr(void *cbarg, struct bfi_mbmsg *msg) msg 530 drivers/net/ethernet/brocade/bna/bfa_msgq.c switch (msg->mh.msg_id) { msg 532 drivers/net/ethernet/brocade/bna/bfa_msgq.c bfa_msgq_init_rsp(msgq, msg); msg 536 drivers/net/ethernet/brocade/bna/bfa_msgq.c bfa_msgq_rspq_pi_update(&msgq->rspq, msg); msg 540 drivers/net/ethernet/brocade/bna/bfa_msgq.c bfa_msgq_cmdq_ci_update(&msgq->cmdq, msg); msg 544 drivers/net/ethernet/brocade/bna/bfa_msgq.c bfa_msgq_cmdq_copy_req(&msgq->cmdq, msg); msg 1445 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox_cmd.msg.u64 = 0; msg 1446 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox_cmd.msg.s.type = OCTEON_MBOX_REQUEST; msg 1447 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox_cmd.msg.s.resp_needed = 0; msg 1448 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox_cmd.msg.s.cmd = OCTEON_PF_CHANGED_VF_MACADDR; msg 1449 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox_cmd.msg.s.len = 1; msg 1454 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c ether_addr_copy(mbox_cmd.msg.s.params, mac); msg 1484 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox_cmd.msg.u64 = 0; msg 1485 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox_cmd.msg.s.type = OCTEON_MBOX_REQUEST; msg 1486 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox_cmd.msg.s.resp_needed = 1; msg 1487 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox_cmd.msg.s.cmd = OCTEON_GET_VF_STATS; msg 1488 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c mbox_cmd.msg.s.len = 1; msg 376 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c mbox_cmd.msg.u64 = 0; msg 377 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c mbox_cmd.msg.s.type = OCTEON_MBOX_REQUEST; msg 378 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c mbox_cmd.msg.s.resp_needed = 0; msg 379 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c mbox_cmd.msg.s.cmd = OCTEON_VF_FLR_REQUEST; msg 380 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c mbox_cmd.msg.s.len = 1; msg 396 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c memcpy((uint8_t *)&oct->pfvf_hsword, cmd->msg.s.params, msg 418 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c mbox_cmd.msg.u64 = 0; msg 419 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c mbox_cmd.msg.s.type = OCTEON_MBOX_REQUEST; msg 420 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c mbox_cmd.msg.s.resp_needed = 1; msg 421 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c mbox_cmd.msg.s.cmd = OCTEON_VF_ACTIVE; msg 422 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c mbox_cmd.msg.s.len = 2; msg 38 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c union octeon_mbox_message msg; msg 43 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c msg.u64 = readq(mbox->mbox_read_reg); msg 45 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if ((msg.u64 == OCTEON_PFVFACK) || (msg.u64 == OCTEON_PFVFSIG)) { msg 51 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->mbox_req.data[mbox->mbox_req.recv_len - 1] = msg.u64; msg 56 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c msg.u64; msg 60 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c (msg.s.type == OCTEON_MBOX_REQUEST)) { msg 64 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->mbox_req.msg.u64 = msg.u64; msg 70 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c (msg.s.type == OCTEON_MBOX_RESPONSE)) { msg 76 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->mbox_resp.msg.u64 = msg.u64; msg 91 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if (mbox->mbox_req.recv_len < mbox->mbox_req.msg.s.len) { msg 101 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox->mbox_resp.msg.s.len) { msg 141 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if ((mbox_cmd->msg.s.type == OCTEON_MBOX_RESPONSE) && msg 147 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if ((mbox_cmd->msg.s.type == OCTEON_MBOX_REQUEST) && msg 153 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if (mbox_cmd->msg.s.type == OCTEON_MBOX_REQUEST) { msg 172 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c writeq(mbox_cmd->msg.u64, mbox->mbox_write_reg); msg 173 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c for (i = 0; i < (u32)(mbox_cmd->msg.s.len - 1); i++) { msg 191 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if (mbox_cmd->msg.s.type == OCTEON_MBOX_RESPONSE) { msg 195 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if ((!mbox_cmd->msg.s.resp_needed) || msg 241 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c switch (mbox_cmd->msg.s.cmd) { msg 244 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox_cmd->msg.s.type = OCTEON_MBOX_RESPONSE; msg 245 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox_cmd->msg.s.resp_needed = 1; msg 246 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox_cmd->msg.s.len = 2; msg 254 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c memcpy(mbox_cmd->msg.s.params, (uint8_t *)&oct->pfvf_hsword, 6); msg 269 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox_cmd->msg.s.params); msg 274 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox_cmd->msg.s.type = OCTEON_MBOX_RESPONSE; msg 275 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox_cmd->msg.s.resp_needed = 1; msg 276 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c mbox_cmd->msg.s.len = 1 + msg 335 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.c if (!mbox_cmd.msg.s.resp_needed) { msg 63 drivers/net/ethernet/cavium/liquidio/octeon_mailbox.h union octeon_mbox_message msg; msg 426 drivers/net/ethernet/cavium/thunder/nic.h u8 msg; msg 437 drivers/net/ethernet/cavium/thunder/nic.h u8 msg; msg 445 drivers/net/ethernet/cavium/thunder/nic.h u8 msg; msg 453 drivers/net/ethernet/cavium/thunder/nic.h u8 msg; msg 462 drivers/net/ethernet/cavium/thunder/nic.h u8 msg; msg 469 drivers/net/ethernet/cavium/thunder/nic.h u8 msg; msg 476 drivers/net/ethernet/cavium/thunder/nic.h u8 msg; msg 484 drivers/net/ethernet/cavium/thunder/nic.h u8 msg; msg 491 drivers/net/ethernet/cavium/thunder/nic.h u8 msg; msg 501 drivers/net/ethernet/cavium/thunder/nic.h u8 msg; msg 510 drivers/net/ethernet/cavium/thunder/nic.h u8 msg; msg 519 drivers/net/ethernet/cavium/thunder/nic.h u8 msg; msg 525 drivers/net/ethernet/cavium/thunder/nic.h u8 msg; msg 534 drivers/net/ethernet/cavium/thunder/nic.h u8 msg; msg 541 drivers/net/ethernet/cavium/thunder/nic.h u8 msg; msg 565 drivers/net/ethernet/cavium/thunder/nic.h u8 msg; msg 573 drivers/net/ethernet/cavium/thunder/nic.h u8 msg; msg 578 drivers/net/ethernet/cavium/thunder/nic.h u8 msg; msg 585 drivers/net/ethernet/cavium/thunder/nic.h struct { u8 msg; } msg; msg 136 drivers/net/ethernet/cavium/thunder/nic_main.c u64 *msg = (u64 *)mbx; msg 146 drivers/net/ethernet/cavium/thunder/nic_main.c writeq_relaxed(msg[0], mbx_addr); msg 147 drivers/net/ethernet/cavium/thunder/nic_main.c writeq_relaxed(msg[1], mbx_addr + 8); msg 149 drivers/net/ethernet/cavium/thunder/nic_main.c writeq_relaxed(msg[1], mbx_addr + 8); msg 150 drivers/net/ethernet/cavium/thunder/nic_main.c writeq_relaxed(msg[0], mbx_addr); msg 164 drivers/net/ethernet/cavium/thunder/nic_main.c mbx.nic_cfg.msg = NIC_MBOX_MSG_READY; msg 192 drivers/net/ethernet/cavium/thunder/nic_main.c mbx.msg.msg = NIC_MBOX_MSG_ACK; msg 204 drivers/net/ethernet/cavium/thunder/nic_main.c mbx.msg.msg = NIC_MBOX_MSG_NACK; msg 239 drivers/net/ethernet/cavium/thunder/nic_main.c mbx.bgx_stats.msg = NIC_MBOX_MSG_BGX_STATS; msg 554 drivers/net/ethernet/cavium/thunder/nic_main.c mbx.rss_size.msg = NIC_MBOX_MSG_RSS_SIZE; msg 700 drivers/net/ethernet/cavium/thunder/nic_main.c mbx.nicvf.msg = NIC_MBOX_MSG_PNICVF_PTR; msg 711 drivers/net/ethernet/cavium/thunder/nic_main.c mbx.nicvf.msg = NIC_MBOX_MSG_SNICVF_PTR; msg 754 drivers/net/ethernet/cavium/thunder/nic_main.c mbx.sqs_alloc.msg = NIC_MBOX_MSG_ALLOC_SQS; msg 874 drivers/net/ethernet/cavium/thunder/nic_main.c mbx.pfc.msg = NIC_MBOX_MSG_PFC; msg 933 drivers/net/ethernet/cavium/thunder/nic_main.c mbx.link_status.msg = NIC_MBOX_MSG_BGX_LINK_CHANGE; msg 974 drivers/net/ethernet/cavium/thunder/nic_main.c __func__, mbx.msg.msg, vf); msg 975 drivers/net/ethernet/cavium/thunder/nic_main.c switch (mbx.msg.msg) { msg 1133 drivers/net/ethernet/cavium/thunder/nic_main.c "Invalid msg from VF%d, msg 0x%x\n", vf, mbx.msg.msg); msg 1139 drivers/net/ethernet/cavium/thunder/nic_main.c } else if (mbx.msg.msg != NIC_MBOX_MSG_READY) { msg 1141 drivers/net/ethernet/cavium/thunder/nic_main.c mbx.msg.msg, vf); msg 790 drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c mbx.pfc.msg = NIC_MBOX_MSG_PFC; msg 814 drivers/net/ethernet/cavium/thunder/nicvf_ethtool.c mbx.pfc.msg = NIC_MBOX_MSG_PFC; msg 121 drivers/net/ethernet/cavium/thunder/nicvf_main.c u64 *msg = (u64 *)mbx; msg 123 drivers/net/ethernet/cavium/thunder/nicvf_main.c nicvf_reg_write(nic, NIC_VF_PF_MAILBOX_0_1 + 0, msg[0]); msg 124 drivers/net/ethernet/cavium/thunder/nicvf_main.c nicvf_reg_write(nic, NIC_VF_PF_MAILBOX_0_1 + 8, msg[1]); msg 145 drivers/net/ethernet/cavium/thunder/nicvf_main.c (mbx->msg.msg & 0xFF), nic->vf_id); msg 156 drivers/net/ethernet/cavium/thunder/nicvf_main.c (mbx->msg.msg & 0xFF), nic->vf_id); msg 172 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.msg.msg = NIC_MBOX_MSG_READY; msg 186 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.msg.msg = NIC_MBOX_MSG_CFG_DONE; msg 217 drivers/net/ethernet/cavium/thunder/nicvf_main.c netdev_dbg(nic->netdev, "Mbox message: msg: 0x%x\n", mbx.msg.msg); msg 218 drivers/net/ethernet/cavium/thunder/nicvf_main.c switch (mbx.msg.msg) { msg 297 drivers/net/ethernet/cavium/thunder/nicvf_main.c "Invalid message from PF, msg 0x%x\n", mbx.msg.msg); msg 307 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.mac.msg = NIC_MBOX_MSG_SET_MAC; msg 318 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.cpi_cfg.msg = NIC_MBOX_MSG_CPI_CFG; msg 330 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.rss_size.msg = NIC_MBOX_MSG_RSS_SIZE; msg 348 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.rss_cfg.msg = mbx.rss_cfg.tbl_offset ? msg 414 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.sqs_alloc.msg = NIC_MBOX_MSG_ALLOC_SQS; msg 436 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.nicvf.msg = NIC_MBOX_MSG_SNICVF_PTR; msg 479 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.nicvf.msg = NIC_MBOX_MSG_NICVF_PTR; msg 489 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.nicvf.msg = NIC_MBOX_MSG_PNICVF_PTR; msg 1341 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.msg.msg = NIC_MBOX_MSG_SHUTDOWN; msg 1423 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.ptp.msg = NIC_MBOX_MSG_PTP_CFG; msg 1433 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.frs.msg = NIC_MBOX_MSG_SET_MAX_FRS; msg 1446 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.msg.msg = NIC_MBOX_MSG_BGX_LINK_CHANGE; msg 1639 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.bgx_stats.msg = NIC_MBOX_MSG_BGX_STATS; msg 1773 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.lbk.msg = NIC_MBOX_MSG_LOOPBACK; msg 2002 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.xcast.msg = NIC_MBOX_MSG_RESET_XCAST; msg 2010 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.xcast.msg = NIC_MBOX_MSG_ADD_MCAST; msg 2020 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.xcast.msg = NIC_MBOX_MSG_ADD_MCAST; msg 2028 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.xcast.msg = NIC_MBOX_MSG_SET_XCAST; msg 644 drivers/net/ethernet/cavium/thunder/nicvf_queues.c mbx.msg.msg = NIC_MBOX_MSG_RQ_SW_SYNC; msg 735 drivers/net/ethernet/cavium/thunder/nicvf_queues.c mbx.reset_stat.msg = NIC_MBOX_MSG_RESET_STAT_COUNTER; msg 776 drivers/net/ethernet/cavium/thunder/nicvf_queues.c mbx.rq.msg = NIC_MBOX_MSG_RQ_CFG; msg 785 drivers/net/ethernet/cavium/thunder/nicvf_queues.c mbx.rq.msg = NIC_MBOX_MSG_RQ_BP_CFG; msg 794 drivers/net/ethernet/cavium/thunder/nicvf_queues.c mbx.rq.msg = NIC_MBOX_MSG_RQ_DROP_CFG; msg 880 drivers/net/ethernet/cavium/thunder/nicvf_queues.c mbx.sq.msg = NIC_MBOX_MSG_SQ_CFG; msg 969 drivers/net/ethernet/cavium/thunder/nicvf_queues.c mbx.qs.msg = NIC_MBOX_MSG_QS_CFG; msg 1412 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c const char *msg; /* message to print or NULL */ msg 1446 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c acts->msg, status & acts->mask); msg 1448 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c } else if (acts->msg) msg 1450 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c acts->msg, status & acts->mask); msg 4298 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c const char *msg; /* message to print or NULL */ msg 4329 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c dev_alert(adapter->pdev_dev, "%s (0x%x)\n", acts->msg, msg 4331 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c } else if (acts->msg && printk_ratelimit()) msg 4332 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c dev_warn(adapter->pdev_dev, "%s (0x%x)\n", acts->msg, msg 141 drivers/net/ethernet/davicom/dm9000.c #define dm9000_dbg(db, lev, msg...) do { \ msg 143 drivers/net/ethernet/davicom/dm9000.c dev_dbg(db->dev, msg); \ msg 151 drivers/net/ethernet/dec/tulip/dmfe.c #define DMFE_DBUG(dbug_now, msg, value) \ msg 155 drivers/net/ethernet/dec/tulip/dmfe.c (msg), (long) (value)); \ msg 80 drivers/net/ethernet/dec/tulip/uli526x.c #define ULI526X_DBUG(dbug_now, msg, value) \ msg 83 drivers/net/ethernet/dec/tulip/uli526x.c pr_err("%s %lx\n", (msg), (long) (value)); \ msg 1356 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c const union qm_mr_entry *msg) msg 1358 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c switch (msg->ern.rc & QM_MR_RC_MASK) { msg 2422 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c const union qm_mr_entry *msg) msg 2424 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c const struct qm_fd *fd = &msg->ern.fd; msg 2436 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c count_ern(percpu_priv, msg); msg 69 drivers/net/ethernet/freescale/enetc/enetc_msg.c struct enetc_msg_swbd *msg; msg 72 drivers/net/ethernet/freescale/enetc/enetc_msg.c msg = &pf->rxmsg[idx]; msg 74 drivers/net/ethernet/freescale/enetc/enetc_msg.c msg->size = ENETC_DEFAULT_MSG_SIZE; msg 76 drivers/net/ethernet/freescale/enetc/enetc_msg.c msg->vaddr = dma_alloc_coherent(dev, msg->size, &msg->dma, msg 78 drivers/net/ethernet/freescale/enetc/enetc_msg.c if (!msg->vaddr) { msg 80 drivers/net/ethernet/freescale/enetc/enetc_msg.c msg->size); msg 85 drivers/net/ethernet/freescale/enetc/enetc_msg.c val = lower_32_bits(msg->dma); msg 87 drivers/net/ethernet/freescale/enetc/enetc_msg.c val = upper_32_bits(msg->dma); msg 97 drivers/net/ethernet/freescale/enetc/enetc_msg.c struct enetc_msg_swbd *msg; msg 99 drivers/net/ethernet/freescale/enetc/enetc_msg.c msg = &pf->rxmsg[idx]; msg 100 drivers/net/ethernet/freescale/enetc/enetc_msg.c dma_free_coherent(&si->pdev->dev, msg->size, msg->vaddr, msg->dma); msg 101 drivers/net/ethernet/freescale/enetc/enetc_msg.c memset(msg, 0, sizeof(*msg)); msg 581 drivers/net/ethernet/freescale/enetc/enetc_pf.c struct enetc_msg_swbd *msg = &pf->rxmsg[vf_id]; msg 587 drivers/net/ethernet/freescale/enetc/enetc_pf.c cmd = (struct enetc_msg_cmd_set_primary_mac *)msg->vaddr; msg 604 drivers/net/ethernet/freescale/enetc/enetc_pf.c struct enetc_msg_swbd *msg = &pf->rxmsg[vf_id]; msg 610 drivers/net/ethernet/freescale/enetc/enetc_pf.c cmd_hdr = (struct enetc_msg_cmd_header *)msg->vaddr; msg 18 drivers/net/ethernet/freescale/enetc/enetc_vf.c struct enetc_msg_swbd *msg) msg 22 drivers/net/ethernet/freescale/enetc/enetc_vf.c val = enetc_vsi_set_msize(msg->size) | lower_32_bits(msg->dma); msg 23 drivers/net/ethernet/freescale/enetc/enetc_vf.c enetc_wr(hw, ENETC_VSIMSGSNDAR1, upper_32_bits(msg->dma)); msg 27 drivers/net/ethernet/freescale/enetc/enetc_vf.c static int enetc_msg_vsi_send(struct enetc_si *si, struct enetc_msg_swbd *msg) msg 32 drivers/net/ethernet/freescale/enetc/enetc_vf.c enetc_msg_vsi_write_msg(&si->hw, msg); msg 59 drivers/net/ethernet/freescale/enetc/enetc_vf.c struct enetc_msg_swbd msg; msg 62 drivers/net/ethernet/freescale/enetc/enetc_vf.c msg.size = ALIGN(sizeof(struct enetc_msg_cmd_set_primary_mac), 64); msg 63 drivers/net/ethernet/freescale/enetc/enetc_vf.c msg.vaddr = dma_alloc_coherent(priv->dev, msg.size, &msg.dma, msg 65 drivers/net/ethernet/freescale/enetc/enetc_vf.c if (!msg.vaddr) { msg 67 drivers/net/ethernet/freescale/enetc/enetc_vf.c msg.size); msg 71 drivers/net/ethernet/freescale/enetc/enetc_vf.c cmd = (struct enetc_msg_cmd_set_primary_mac *)msg.vaddr; msg 77 drivers/net/ethernet/freescale/enetc/enetc_vf.c err = enetc_msg_vsi_send(priv->si, &msg); msg 79 drivers/net/ethernet/freescale/enetc/enetc_vf.c dma_free_coherent(priv->dev, msg.size, msg.vaddr, msg.dma); msg 93 drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h u8 msg[HCLGE_MBX_MAX_MSG_SIZE]; msg 103 drivers/net/ethernet/hisilicon/hns3/hclge_mbx.h u16 msg[8]; msg 4508 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c .msg = "PPU poison" }, msg 4510 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c .msg = "IMP CMDQ error" }, msg 4512 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c .msg = "IMP RD poison" }, msg 4523 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c hns3_hw_err[i].msg); msg 557 drivers/net/ethernet/hisilicon/hns3/hns3_enet.h const char *msg; msg 7 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(1), .msg = "imp_itcm0_ecc_mbit_err", msg 9 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(3), .msg = "imp_itcm1_ecc_mbit_err", msg 11 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(5), .msg = "imp_itcm2_ecc_mbit_err", msg 13 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(7), .msg = "imp_itcm3_ecc_mbit_err", msg 15 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(9), .msg = "imp_dtcm0_mem0_ecc_mbit_err", msg 17 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(11), .msg = "imp_dtcm0_mem1_ecc_mbit_err", msg 19 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(13), .msg = "imp_dtcm1_mem0_ecc_mbit_err", msg 21 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(15), .msg = "imp_dtcm1_mem1_ecc_mbit_err", msg 23 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(17), .msg = "imp_itcm4_ecc_mbit_err", msg 29 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(1), .msg = "cmdq_nic_rx_depth_ecc_mbit_err", msg 31 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(3), .msg = "cmdq_nic_tx_depth_ecc_mbit_err", msg 33 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(5), .msg = "cmdq_nic_rx_tail_ecc_mbit_err", msg 35 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(7), .msg = "cmdq_nic_tx_tail_ecc_mbit_err", msg 37 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(9), .msg = "cmdq_nic_rx_head_ecc_mbit_err", msg 39 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(11), .msg = "cmdq_nic_tx_head_ecc_mbit_err", msg 41 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(13), .msg = "cmdq_nic_rx_addr_ecc_mbit_err", msg 43 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(15), .msg = "cmdq_nic_tx_addr_ecc_mbit_err", msg 45 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(17), .msg = "cmdq_rocee_rx_depth_ecc_mbit_err", msg 47 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(19), .msg = "cmdq_rocee_tx_depth_ecc_mbit_err", msg 49 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(21), .msg = "cmdq_rocee_rx_tail_ecc_mbit_err", msg 51 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(23), .msg = "cmdq_rocee_tx_tail_ecc_mbit_err", msg 53 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(25), .msg = "cmdq_rocee_rx_head_ecc_mbit_err", msg 55 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(27), .msg = "cmdq_rocee_tx_head_ecc_mbit_err", msg 57 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(29), .msg = "cmdq_rocee_rx_addr_ecc_mbit_err", msg 59 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(31), .msg = "cmdq_rocee_tx_addr_ecc_mbit_err", msg 65 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(6), .msg = "tqp_int_cfg_even_ecc_mbit_err", msg 67 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(7), .msg = "tqp_int_cfg_odd_ecc_mbit_err", msg 69 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(8), .msg = "tqp_int_ctrl_even_ecc_mbit_err", msg 71 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(9), .msg = "tqp_int_ctrl_odd_ecc_mbit_err", msg 73 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(10), .msg = "tx_que_scan_int_ecc_mbit_err", msg 75 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(11), .msg = "rx_que_scan_int_ecc_mbit_err", msg 81 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(1), .msg = "msix_nic_ecc_mbit_err", msg 83 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(3), .msg = "msix_rocee_ecc_mbit_err", msg 89 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(0), .msg = "igu_rx_buf0_ecc_mbit_err", msg 91 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(2), .msg = "igu_rx_buf1_ecc_mbit_err", msg 97 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(0), .msg = "rx_buf_overflow", msg 99 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(1), .msg = "rx_stp_fifo_overflow", msg 101 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(2), .msg = "rx_stp_fifo_underflow", msg 103 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(3), .msg = "tx_buf_overflow", msg 105 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(4), .msg = "tx_buf_underrun", msg 107 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(5), .msg = "rx_stp_buf_overflow", msg 113 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(1), .msg = "ncsi_tx_ecc_mbit_err", msg 119 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(0), .msg = "vf_vlan_ad_mem_ecc_mbit_err", msg 121 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(1), .msg = "umv_mcast_group_mem_ecc_mbit_err", msg 123 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(2), .msg = "umv_key_mem0_ecc_mbit_err", msg 125 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(3), .msg = "umv_key_mem1_ecc_mbit_err", msg 127 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(4), .msg = "umv_key_mem2_ecc_mbit_err", msg 129 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(5), .msg = "umv_key_mem3_ecc_mbit_err", msg 131 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(6), .msg = "umv_ad_mem_ecc_mbit_err", msg 133 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(7), .msg = "rss_tc_mode_mem_ecc_mbit_err", msg 135 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(8), .msg = "rss_idt_mem0_ecc_mbit_err", msg 137 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(9), .msg = "rss_idt_mem1_ecc_mbit_err", msg 139 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(10), .msg = "rss_idt_mem2_ecc_mbit_err", msg 141 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(11), .msg = "rss_idt_mem3_ecc_mbit_err", msg 143 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(12), .msg = "rss_idt_mem4_ecc_mbit_err", msg 145 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(13), .msg = "rss_idt_mem5_ecc_mbit_err", msg 147 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(14), .msg = "rss_idt_mem6_ecc_mbit_err", msg 149 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(15), .msg = "rss_idt_mem7_ecc_mbit_err", msg 151 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(16), .msg = "rss_idt_mem8_ecc_mbit_err", msg 153 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(17), .msg = "rss_idt_mem9_ecc_mbit_err", msg 155 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(18), .msg = "rss_idt_mem10_ecc_m1bit_err", msg 157 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(19), .msg = "rss_idt_mem11_ecc_mbit_err", msg 159 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(20), .msg = "rss_idt_mem12_ecc_mbit_err", msg 161 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(21), .msg = "rss_idt_mem13_ecc_mbit_err", msg 163 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(22), .msg = "rss_idt_mem14_ecc_mbit_err", msg 165 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(23), .msg = "rss_idt_mem15_ecc_mbit_err", msg 167 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(24), .msg = "port_vlan_mem_ecc_mbit_err", msg 169 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(25), .msg = "mcast_linear_table_mem_ecc_mbit_err", msg 171 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(26), .msg = "mcast_result_mem_ecc_mbit_err", msg 173 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(27), .msg = "flow_director_ad_mem0_ecc_mbit_err", msg 175 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(28), .msg = "flow_director_ad_mem1_ecc_mbit_err", msg 177 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(29), .msg = "rx_vlan_tag_memory_ecc_mbit_err", msg 179 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(30), .msg = "Tx_UP_mapping_config_mem_ecc_mbit_err", msg 185 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(0), .msg = "tx_vlan_tag_err", msg 187 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(1), .msg = "rss_list_tc_unassigned_queue_err", msg 193 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(0), .msg = "hfs_fifo_mem_ecc_mbit_err", msg 195 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(1), .msg = "rslt_descr_fifo_mem_ecc_mbit_err", msg 197 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(2), .msg = "tx_vlan_tag_mem_ecc_mbit_err", msg 199 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(3), .msg = "FD_CN0_memory_ecc_mbit_err", msg 201 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(4), .msg = "FD_CN1_memory_ecc_mbit_err", msg 203 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(5), .msg = "GRO_AD_memory_ecc_mbit_err", msg 209 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(1), .msg = "tm_sch_ecc_mbit_err", msg 211 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(2), .msg = "tm_sch_port_shap_sub_fifo_wr_err", msg 213 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(3), .msg = "tm_sch_port_shap_sub_fifo_rd_err", msg 215 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(4), .msg = "tm_sch_pg_pshap_sub_fifo_wr_err", msg 217 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(5), .msg = "tm_sch_pg_pshap_sub_fifo_rd_err", msg 219 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(6), .msg = "tm_sch_pg_cshap_sub_fifo_wr_err", msg 221 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(7), .msg = "tm_sch_pg_cshap_sub_fifo_rd_err", msg 223 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(8), .msg = "tm_sch_pri_pshap_sub_fifo_wr_err", msg 225 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(9), .msg = "tm_sch_pri_pshap_sub_fifo_rd_err", msg 227 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(10), .msg = "tm_sch_pri_cshap_sub_fifo_wr_err", msg 229 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(11), .msg = "tm_sch_pri_cshap_sub_fifo_rd_err", msg 231 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(12), .msg = "tm_sch_port_shap_offset_fifo_wr_err", msg 233 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(13), .msg = "tm_sch_port_shap_offset_fifo_rd_err", msg 235 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(14), .msg = "tm_sch_pg_pshap_offset_fifo_wr_err", msg 237 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(15), .msg = "tm_sch_pg_pshap_offset_fifo_rd_err", msg 239 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(16), .msg = "tm_sch_pg_cshap_offset_fifo_wr_err", msg 241 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(17), .msg = "tm_sch_pg_cshap_offset_fifo_rd_err", msg 243 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(18), .msg = "tm_sch_pri_pshap_offset_fifo_wr_err", msg 245 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(19), .msg = "tm_sch_pri_pshap_offset_fifo_rd_err", msg 247 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(20), .msg = "tm_sch_pri_cshap_offset_fifo_wr_err", msg 249 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(21), .msg = "tm_sch_pri_cshap_offset_fifo_rd_err", msg 251 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(22), .msg = "tm_sch_rq_fifo_wr_err", msg 253 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(23), .msg = "tm_sch_rq_fifo_rd_err", msg 255 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(24), .msg = "tm_sch_nq_fifo_wr_err", msg 257 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(25), .msg = "tm_sch_nq_fifo_rd_err", msg 259 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(26), .msg = "tm_sch_roce_up_fifo_wr_err", msg 261 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(27), .msg = "tm_sch_roce_up_fifo_rd_err", msg 263 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(28), .msg = "tm_sch_rcb_byte_fifo_wr_err", msg 265 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(29), .msg = "tm_sch_rcb_byte_fifo_rd_err", msg 267 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(30), .msg = "tm_sch_ssu_byte_fifo_wr_err", msg 269 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(31), .msg = "tm_sch_ssu_byte_fifo_rd_err", msg 275 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(0), .msg = "qcn_shap_gp0_sch_fifo_rd_err", msg 277 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(1), .msg = "qcn_shap_gp0_sch_fifo_wr_err", msg 279 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(2), .msg = "qcn_shap_gp1_sch_fifo_rd_err", msg 281 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(3), .msg = "qcn_shap_gp1_sch_fifo_wr_err", msg 283 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(4), .msg = "qcn_shap_gp2_sch_fifo_rd_err", msg 285 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(5), .msg = "qcn_shap_gp2_sch_fifo_wr_err", msg 287 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(6), .msg = "qcn_shap_gp3_sch_fifo_rd_err", msg 289 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(7), .msg = "qcn_shap_gp3_sch_fifo_wr_err", msg 291 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(8), .msg = "qcn_shap_gp0_offset_fifo_rd_err", msg 293 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(9), .msg = "qcn_shap_gp0_offset_fifo_wr_err", msg 295 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(10), .msg = "qcn_shap_gp1_offset_fifo_rd_err", msg 297 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(11), .msg = "qcn_shap_gp1_offset_fifo_wr_err", msg 299 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(12), .msg = "qcn_shap_gp2_offset_fifo_rd_err", msg 301 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(13), .msg = "qcn_shap_gp2_offset_fifo_wr_err", msg 303 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(14), .msg = "qcn_shap_gp3_offset_fifo_rd_err", msg 305 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(15), .msg = "qcn_shap_gp3_offset_fifo_wr_err", msg 307 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(16), .msg = "qcn_byte_info_fifo_rd_err", msg 309 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(17), .msg = "qcn_byte_info_fifo_wr_err", msg 315 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(1), .msg = "qcn_byte_mem_ecc_mbit_err", msg 317 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(3), .msg = "qcn_time_mem_ecc_mbit_err", msg 319 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(5), .msg = "qcn_fb_mem_ecc_mbit_err", msg 321 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(7), .msg = "qcn_link_mem_ecc_mbit_err", msg 323 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(9), .msg = "qcn_rate_mem_ecc_mbit_err", msg 325 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(11), .msg = "qcn_tmplt_mem_ecc_mbit_err", msg 327 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(13), .msg = "qcn_shap_cfg_mem_ecc_mbit_err", msg 329 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(15), .msg = "qcn_gp0_barrel_mem_ecc_mbit_err", msg 331 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(17), .msg = "qcn_gp1_barrel_mem_ecc_mbit_err", msg 333 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(19), .msg = "qcn_gp2_barrel_mem_ecc_mbit_err", msg 335 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(21), .msg = "qcn_gp3_barral_mem_ecc_mbit_err", msg 341 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(0), .msg = "egu_cge_afifo_ecc_1bit_err", msg 343 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(1), .msg = "egu_cge_afifo_ecc_mbit_err", msg 345 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(2), .msg = "egu_lge_afifo_ecc_1bit_err", msg 347 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(3), .msg = "egu_lge_afifo_ecc_mbit_err", msg 349 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(4), .msg = "cge_igu_afifo_ecc_1bit_err", msg 351 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(5), .msg = "cge_igu_afifo_ecc_mbit_err", msg 353 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(6), .msg = "lge_igu_afifo_ecc_1bit_err", msg 355 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(7), .msg = "lge_igu_afifo_ecc_mbit_err", msg 357 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(8), .msg = "cge_igu_afifo_overflow_err", msg 359 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(9), .msg = "lge_igu_afifo_overflow_err", msg 361 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(10), .msg = "egu_cge_afifo_underrun_err", msg 363 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(11), .msg = "egu_lge_afifo_underrun_err", msg 365 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(12), .msg = "egu_ge_afifo_underrun_err", msg 367 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(13), .msg = "ge_igu_afifo_overflow_err", msg 373 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(13), .msg = "rpu_rx_pkt_bit32_ecc_mbit_err", msg 375 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(14), .msg = "rpu_rx_pkt_bit33_ecc_mbit_err", msg 377 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(15), .msg = "rpu_rx_pkt_bit34_ecc_mbit_err", msg 379 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(16), .msg = "rpu_rx_pkt_bit35_ecc_mbit_err", msg 381 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(17), .msg = "rcb_tx_ring_ecc_mbit_err", msg 383 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(18), .msg = "rcb_rx_ring_ecc_mbit_err", msg 385 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(19), .msg = "rcb_tx_fbd_ecc_mbit_err", msg 387 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(20), .msg = "rcb_rx_ebd_ecc_mbit_err", msg 389 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(21), .msg = "rcb_tso_info_ecc_mbit_err", msg 391 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(22), .msg = "rcb_tx_int_info_ecc_mbit_err", msg 393 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(23), .msg = "rcb_rx_int_info_ecc_mbit_err", msg 395 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(24), .msg = "tpu_tx_pkt_0_ecc_mbit_err", msg 397 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(25), .msg = "tpu_tx_pkt_1_ecc_mbit_err", msg 399 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(26), .msg = "rd_bus_err", msg 401 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(27), .msg = "wr_bus_err", msg 403 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(28), .msg = "reg_search_miss", msg 405 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(29), .msg = "rx_q_search_miss", msg 407 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(30), .msg = "ooo_ecc_err_detect", msg 409 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(31), .msg = "ooo_ecc_err_multpl", msg 415 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(4), .msg = "gro_bd_ecc_mbit_err", msg 417 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(5), .msg = "gro_context_ecc_mbit_err", msg 419 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(6), .msg = "rx_stash_cfg_ecc_mbit_err", msg 421 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(7), .msg = "axi_rd_fbd_ecc_mbit_err", msg 427 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(0), .msg = "over_8bd_no_fe", msg 429 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(1), .msg = "tso_mss_cmp_min_err", msg 431 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(2), .msg = "tso_mss_cmp_max_err", msg 433 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(3), .msg = "tx_rd_fbd_poison", msg 435 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(4), .msg = "rx_rd_ebd_poison", msg 437 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(5), .msg = "buf_wait_timeout", msg 443 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(0), .msg = "buf_sum_err", msg 445 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(1), .msg = "ppp_mb_num_err", msg 447 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(2), .msg = "ppp_mbid_err", msg 449 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(3), .msg = "ppp_rlt_mac_err", msg 451 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(4), .msg = "ppp_rlt_host_err", msg 453 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(5), .msg = "cks_edit_position_err", msg 455 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(6), .msg = "cks_edit_condition_err", msg 457 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(7), .msg = "vlan_edit_condition_err", msg 459 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(8), .msg = "vlan_num_ot_err", msg 461 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(9), .msg = "vlan_num_in_err", msg 467 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(x), .msg = "ssu_mem" #x "_ecc_mbit_err", \ msg 507 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(0), .msg = "roc_pkt_without_key_port", msg 509 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(1), .msg = "tpu_pkt_without_key_port", msg 511 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(2), .msg = "igu_pkt_without_key_port", msg 513 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(3), .msg = "roc_eof_mis_match_port", msg 515 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(4), .msg = "tpu_eof_mis_match_port", msg 517 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(5), .msg = "igu_eof_mis_match_port", msg 519 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(6), .msg = "roc_sof_mis_match_port", msg 521 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(7), .msg = "tpu_sof_mis_match_port", msg 523 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(8), .msg = "igu_sof_mis_match_port", msg 525 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(11), .msg = "ets_rd_int_rx_port", msg 527 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(12), .msg = "ets_wr_int_rx_port", msg 529 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(13), .msg = "ets_rd_int_tx_port", msg 531 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(14), .msg = "ets_wr_int_tx_port", msg 537 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(0), .msg = "ig_mac_inf_int", msg 539 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(1), .msg = "ig_host_inf_int", msg 541 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(2), .msg = "ig_roc_buf_int", msg 543 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(3), .msg = "ig_host_data_fifo_int", msg 545 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(4), .msg = "ig_host_key_fifo_int", msg 547 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(5), .msg = "tx_qcn_fifo_int", msg 549 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(6), .msg = "rx_qcn_fifo_int", msg 551 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(7), .msg = "tx_pf_rd_fifo_int", msg 553 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(8), .msg = "rx_pf_rd_fifo_int", msg 555 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(9), .msg = "qm_eof_fifo_int", msg 557 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(10), .msg = "mb_rlt_fifo_int", msg 559 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(11), .msg = "dup_uncopy_fifo_int", msg 561 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(12), .msg = "dup_cnt_rd_fifo_int", msg 563 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(13), .msg = "dup_cnt_drop_fifo_int", msg 565 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(14), .msg = "dup_cnt_wrb_fifo_int", msg 567 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(15), .msg = "host_cmd_fifo_int", msg 569 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(16), .msg = "mac_cmd_fifo_int", msg 571 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(17), .msg = "host_cmd_bitmap_empty_int", msg 573 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(18), .msg = "mac_cmd_bitmap_empty_int", msg 575 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(19), .msg = "dup_bitmap_empty_int", msg 577 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(20), .msg = "out_queue_bitmap_empty_int", msg 579 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(21), .msg = "bank2_bitmap_empty_int", msg 581 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(22), .msg = "bank1_bitmap_empty_int", msg 583 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(23), .msg = "bank0_bitmap_empty_int", msg 589 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(0), .msg = "ets_rd_int_rx_tcg", msg 591 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(1), .msg = "ets_wr_int_rx_tcg", msg 593 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(2), .msg = "ets_rd_int_tx_tcg", msg 595 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(3), .msg = "ets_wr_int_tx_tcg", msg 601 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(0), .msg = "roc_pkt_without_key_port", msg 603 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(9), .msg = "low_water_line_err_port", msg 605 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = BIT(10), .msg = "hi_water_line_err_port", msg 611 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0, .msg = "rocee qmm ovf: sgid invalid err" }, msg 612 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0x4, .msg = "rocee qmm ovf: sgid ovf err" }, msg 613 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0x8, .msg = "rocee qmm ovf: smac invalid err" }, msg 614 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0xC, .msg = "rocee qmm ovf: smac ovf err" }, msg 615 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0x10, .msg = "rocee qmm ovf: cqc invalid err" }, msg 616 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0x11, .msg = "rocee qmm ovf: cqc ovf err" }, msg 617 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0x12, .msg = "rocee qmm ovf: cqc hopnum err" }, msg 618 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0x13, .msg = "rocee qmm ovf: cqc ba0 err" }, msg 619 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0x14, .msg = "rocee qmm ovf: srqc invalid err" }, msg 620 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0x15, .msg = "rocee qmm ovf: srqc ovf err" }, msg 621 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0x16, .msg = "rocee qmm ovf: srqc hopnum err" }, msg 622 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0x17, .msg = "rocee qmm ovf: srqc ba0 err" }, msg 623 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0x18, .msg = "rocee qmm ovf: mpt invalid err" }, msg 624 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0x19, .msg = "rocee qmm ovf: mpt ovf err" }, msg 625 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0x1A, .msg = "rocee qmm ovf: mpt hopnum err" }, msg 626 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0x1B, .msg = "rocee qmm ovf: mpt ba0 err" }, msg 627 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0x1C, .msg = "rocee qmm ovf: qpc invalid err" }, msg 628 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0x1D, .msg = "rocee qmm ovf: qpc ovf err" }, msg 629 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0x1E, .msg = "rocee qmm ovf: qpc hopnum err" }, msg 630 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c { .int_msk = 0x1F, .msg = "rocee qmm ovf: qpc ba0 err" }, msg 638 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c while (err->msg) { msg 641 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c reg, err->msg, err_sts); msg 1457 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c while (err->msg) { msg 1460 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.c err->msg, msg 125 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_err.h const char *msg; msg 43 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c resp_pf_to_vf->msg[0] = HCLGE_MBX_PF_VF_RESP; msg 44 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c resp_pf_to_vf->msg[1] = vf_to_pf_req->msg[0]; msg 45 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c resp_pf_to_vf->msg[2] = vf_to_pf_req->msg[1]; msg 46 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c resp_pf_to_vf->msg[3] = (resp_status == 0) ? 0 : 1; msg 49 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c memcpy(&resp_pf_to_vf->msg[4], resp_data, resp_data_len); msg 59 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c static int hclge_send_mbx_msg(struct hclge_vport *vport, u8 *msg, u16 msg_len, msg 73 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c resp_pf_to_vf->msg[0] = mbx_opcode; msg 75 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c memcpy(&resp_pf_to_vf->msg[1], msg, msg_len); msg 141 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c ring_num = req->msg[2]; msg 148 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c hnae3_set_bit(ring_chain->flag, HNAE3_RING_TYPE_B, req->msg[3]); msg 150 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c hclge_get_queue_id(vport->nic.kinfo.tqp[req->msg[4]]); msg 153 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c req->msg[5]); msg 163 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c req->msg[HCLGE_MBX_RING_NODE_VARIABLE_NUM * i + msg 168 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c [req->msg[HCLGE_MBX_RING_NODE_VARIABLE_NUM * i + msg 173 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c req->msg[HCLGE_MBX_RING_NODE_VARIABLE_NUM * i + msg 190 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c int vector_id = req->msg[1]; msg 208 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c bool en_bc = req->msg[1] ? true : false; msg 219 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c const u8 *mac_addr = (const u8 *)(&mbx_req->msg[2]); msg 223 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c if (mbx_req->msg[1] == HCLGE_MBX_MAC_VLAN_UC_MODIFY) { msg 224 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c const u8 *old_addr = (const u8 *)(&mbx_req->msg[8]); msg 236 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c } else if (mbx_req->msg[1] == HCLGE_MBX_MAC_VLAN_UC_ADD) { msg 241 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c } else if (mbx_req->msg[1] == HCLGE_MBX_MAC_VLAN_UC_REMOVE) { msg 249 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c mbx_req->msg[1]); msg 263 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c const u8 *mac_addr = (const u8 *)(&mbx_req->msg[2]); msg 269 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c if (mbx_req->msg[1] == HCLGE_MBX_MAC_VLAN_MC_ADD) { msg 274 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c } else if (mbx_req->msg[1] == HCLGE_MBX_MAC_VLAN_MC_REMOVE) { msg 282 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c mbx_req->msg[1]); msg 316 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c msg_cmd = (struct hclge_vf_vlan_cfg *)mbx_req->msg; msg 332 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c } else if (mbx_req->msg[1] == HCLGE_MBX_PORT_BASE_VLAN_CFG) { msg 336 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c state = (u16 *)&mbx_req->msg[2]; msg 337 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c vlan_info = (struct hclge_vlan_info *)&mbx_req->msg[4]; msg 340 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c } else if (mbx_req->msg[1] == HCLGE_MBX_GET_PORT_BASE_VLAN_STATE) { msg 355 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c bool alive = !!mbx_req->msg[2]; msg 464 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c msg_data[0] = mbx_req->msg[2]; msg 478 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c memcpy(&queue_id, &mbx_req->msg[2], sizeof(queue_id)); msg 511 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c memcpy(&mtu, &mbx_req->msg[2], sizeof(mtu)); msg 523 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c memcpy(&queue_id, &mbx_req->msg[2], sizeof(queue_id)); msg 538 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c index = mbx_req->msg[2]; msg 574 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c if (!req->msg[LINK_STATUS_OFFSET]) msg 575 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c hclge_link_fail_parse(hdev, req->msg[LINK_FAIL_CODE_OFFSET]); msg 618 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c req->msg[0]); msg 628 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c switch (req->msg[0]) { msg 758 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c req->msg[0]); msg 1016 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c req->msg[0] = type; msg 1017 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c req->msg[1] = vector_id; msg 1020 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c req->msg[idx_offset] = msg 1022 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c req->msg[idx_offset + 1] = node->tqp_index; msg 1023 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c req->msg[idx_offset + 2] = hnae3_get_field(node->int_gl_idx, msg 1032 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c req->msg[2] = i; msg 1045 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c req->msg[0] = type; msg 1046 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c req->msg[1] = vector_id; msg 1125 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c req->msg[0] = HCLGE_MBX_SET_PROMISC_MODE; msg 1126 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c req->msg[1] = en_bc_pmc ? 1 : 0; msg 103 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c req->msg[0] = code; msg 104 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c req->msg[1] = subcode; msg 106 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c memcpy(&req->msg[2], msg_data, msg_len); msg 172 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c req->msg[0]); msg 186 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c switch (req->msg[0]) { msg 191 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c req->msg[1]); msg 194 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c resp->origin_mbx_msg = (req->msg[1] << 16); msg 195 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c resp->origin_mbx_msg |= req->msg[2]; msg 196 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c resp->resp_status = req->msg[3]; msg 198 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c temp = (u8 *)&req->msg[4]; msg 222 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c req->msg[1]); msg 228 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c memcpy(&msg_q[0], req->msg, msg 239 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c req->msg[0]); msg 149 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c static void prepare_mgmt_cmd(u8 *mgmt_cmd, u64 *header, u8 *msg, u16 msg_len) msg 157 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c memcpy(mgmt_cmd, msg, msg_len); msg 290 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c memcpy(buf_out, recv_msg->msg, recv_msg->msg_len); msg 398 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c recv_msg->msg, recv_msg->msg_len, msg 449 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c memcpy(recv_msg->msg + seq_id * SEGMENT_LEN, msg_body, seg_len); msg 500 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c recv_msg->msg = devm_kzalloc(&pdev->dev, MAX_PF_MGMT_BUF_SIZE, msg 502 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.c if (!recv_msg->msg) msg 86 drivers/net/ethernet/huawei/hinic/hinic_hw_mgmt.h u8 *msg; msg 113 drivers/net/ethernet/ibm/ehea/ehea.h void ehea_dump(void *adr, int len, char *msg); msg 123 drivers/net/ethernet/ibm/ehea/ehea_main.c void ehea_dump(void *adr, int len, char *msg) msg 129 drivers/net/ethernet/ibm/ehea/ehea_main.c msg, deb, x, *((u64 *)&deb[0]), *((u64 *)&deb[8])); msg 237 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c const u32 *msg, u16 tail_offset, u16 len) msg 247 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c memcpy(fifo->buffer, msg + end, (len - end) << 2); msg 252 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c memcpy(tail, msg, end << 2); msg 264 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c static s32 fm10k_fifo_enqueue(struct fm10k_mbx_fifo *fifo, const u32 *msg) msg 266 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c u16 len = FM10K_TLV_DWORD_LEN(*msg); msg 277 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c fm10k_fifo_write_copy(fifo, msg, 0, len); msg 306 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c u32 *msg; msg 308 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c msg = fifo->buffer + fm10k_fifo_tail_offset(fifo, total_len); msg 309 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c msg_len = FM10K_TLV_DWORD_LEN(*msg); msg 740 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c struct fm10k_mbx_info *mbx, const u32 *msg) msg 754 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c err = fm10k_fifo_enqueue(&mbx->tx, msg); msg 761 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c err = fm10k_fifo_enqueue(&mbx->tx, msg); msg 1933 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c u32 *msg; msg 1935 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c msg = fifo->buffer + fm10k_fifo_head_offset(fifo, len); msg 1937 drivers/net/ethernet/intel/fm10k/fm10k_mbx.c len += FM10K_TLV_DWORD_LEN(*msg); msg 309 drivers/net/ethernet/intel/fm10k/fm10k_pf.c u32 msg[5]; msg 331 drivers/net/ethernet/intel/fm10k/fm10k_pf.c fm10k_tlv_msg_init(msg, FM10K_PF_MSG_ID_UPDATE_MAC_FWD_RULE); msg 332 drivers/net/ethernet/intel/fm10k/fm10k_pf.c fm10k_tlv_attr_put_le_struct(msg, FM10K_PF_ATTR_ID_MAC_UPDATE, msg 336 drivers/net/ethernet/intel/fm10k/fm10k_pf.c return mbx->ops.enqueue_tx(hw, mbx, msg); msg 395 drivers/net/ethernet/intel/fm10k/fm10k_pf.c u32 msg[3], xcast_mode; msg 411 drivers/net/ethernet/intel/fm10k/fm10k_pf.c fm10k_tlv_msg_init(msg, FM10K_PF_MSG_ID_XCAST_MODES); msg 412 drivers/net/ethernet/intel/fm10k/fm10k_pf.c fm10k_tlv_attr_put_u32(msg, FM10K_PF_ATTR_ID_XCAST_MODE, xcast_mode); msg 415 drivers/net/ethernet/intel/fm10k/fm10k_pf.c return mbx->ops.enqueue_tx(hw, mbx, msg); msg 463 drivers/net/ethernet/intel/fm10k/fm10k_pf.c u32 msg[3], lport_msg; msg 481 drivers/net/ethernet/intel/fm10k/fm10k_pf.c fm10k_tlv_msg_init(msg, enable ? FM10K_PF_MSG_ID_LPORT_CREATE : msg 483 drivers/net/ethernet/intel/fm10k/fm10k_pf.c fm10k_tlv_attr_put_u32(msg, FM10K_PF_ATTR_ID_PORT, lport_msg); msg 486 drivers/net/ethernet/intel/fm10k/fm10k_pf.c return mbx->ops.enqueue_tx(hw, mbx, msg); msg 832 drivers/net/ethernet/intel/fm10k/fm10k_pf.c u32 msg[4], txdctl, txqctl, tdbal = 0, tdbah = 0; msg 860 drivers/net/ethernet/intel/fm10k/fm10k_pf.c fm10k_tlv_msg_init(msg, FM10K_VF_MSG_ID_MAC_VLAN); msg 861 drivers/net/ethernet/intel/fm10k/fm10k_pf.c fm10k_tlv_attr_put_mac_vlan(msg, FM10K_MAC_VLAN_MSG_DEFAULT_MAC, msg 878 drivers/net/ethernet/intel/fm10k/fm10k_pf.c err = vf_info->mbx.ops.enqueue_tx(hw, &vf_info->mbx, msg); msg 1108 drivers/net/ethernet/intel/fm10k/fm10k_pf.c u32 msg[1]; msg 1116 drivers/net/ethernet/intel/fm10k/fm10k_pf.c fm10k_tlv_msg_init(msg, FM10K_VF_MSG_ID_LPORT_STATE); msg 1117 drivers/net/ethernet/intel/fm10k/fm10k_pf.c vf_info->mbx.ops.enqueue_tx(hw, &vf_info->mbx, msg); msg 1356 drivers/net/ethernet/intel/fm10k/fm10k_pf.c u32 msg[2]; msg 1401 drivers/net/ethernet/intel/fm10k/fm10k_pf.c fm10k_tlv_msg_init(msg, FM10K_VF_MSG_ID_LPORT_STATE); msg 1402 drivers/net/ethernet/intel/fm10k/fm10k_pf.c fm10k_tlv_attr_put_bool(msg, FM10K_LPORT_STATE_MSG_READY); msg 1403 drivers/net/ethernet/intel/fm10k/fm10k_pf.c mbx->ops.enqueue_tx(hw, mbx, msg); msg 1595 drivers/net/ethernet/intel/fm10k/fm10k_pf.c u32 msg[1]; msg 1598 drivers/net/ethernet/intel/fm10k/fm10k_pf.c fm10k_tlv_msg_init(msg, FM10K_PF_MSG_ID_LPORT_MAP); msg 1601 drivers/net/ethernet/intel/fm10k/fm10k_pf.c return mbx->ops.enqueue_tx(hw, mbx, msg); msg 97 drivers/net/ethernet/intel/fm10k/fm10k_pf.h #define FM10K_PF_MSG_ERR_HANDLER(msg, func) \ msg 98 drivers/net/ethernet/intel/fm10k/fm10k_pf.h FM10K_MSG_HANDLER(FM10K_PF_MSG_ID_##msg, fm10k_err_msg_attr, func) msg 13 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c s32 fm10k_tlv_msg_init(u32 *msg, u16 msg_id) msg 16 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c if (!msg) msg 19 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c *msg = (FM10K_TLV_FLAGS_MSG << FM10K_TLV_FLAGS_SHIFT) | msg_id; msg 34 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c static s32 fm10k_tlv_attr_put_null_string(u32 *msg, u16 attr_id, msg 41 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c if (!string || !msg) msg 44 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr = &msg[FM10K_TLV_DWORD_LEN(*msg)]; msg 70 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c *msg += FM10K_TLV_LEN_ALIGN(len); msg 112 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c s32 fm10k_tlv_attr_put_mac_vlan(u32 *msg, u16 attr_id, msg 119 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c if (!msg || !mac_addr) msg 122 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr = &msg[FM10K_TLV_DWORD_LEN(*msg)]; msg 134 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c *msg += FM10K_TLV_LEN_ALIGN(len); msg 172 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c s32 fm10k_tlv_attr_put_bool(u32 *msg, u16 attr_id) msg 175 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c if (!msg) msg 179 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c msg[FM10K_TLV_DWORD_LEN(*msg)] = attr_id; msg 182 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c *msg += FM10K_TLV_HDR_LEN << FM10K_TLV_LEN_SHIFT; msg 198 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c s32 fm10k_tlv_attr_put_value(u32 *msg, u16 attr_id, s64 value, u32 len) msg 203 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c if (!msg || !len || len > 8 || (len & (len - 1))) msg 206 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr = &msg[FM10K_TLV_DWORD_LEN(*msg)]; msg 222 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c *msg += FM10K_TLV_LEN_ALIGN(len); msg 270 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c s32 fm10k_tlv_attr_put_le_struct(u32 *msg, u16 attr_id, msg 278 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c if (!msg || !len || (len % 4)) msg 281 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr = &msg[FM10K_TLV_DWORD_LEN(*msg)]; msg 293 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c *msg += FM10K_TLV_LEN_ALIGN(len); msg 340 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c static u32 *fm10k_tlv_attr_nest_start(u32 *msg, u16 attr_id) msg 345 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c if (!msg) msg 348 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr = &msg[FM10K_TLV_DWORD_LEN(*msg)]; msg 365 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c static s32 fm10k_tlv_attr_nest_stop(u32 *msg) msg 371 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c if (!msg) msg 375 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c attr = &msg[FM10K_TLV_DWORD_LEN(*msg)]; msg 381 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c *msg += len; msg 544 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c s32 fm10k_tlv_msg_parse(struct fm10k_hw *hw, u32 *msg, msg 553 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c if (!msg || !data) msg 557 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c if (!(*msg & (FM10K_TLV_FLAGS_MSG << FM10K_TLV_FLAGS_SHIFT))) msg 561 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c msg_id = *msg & FM10K_TLV_ID_MASK; msg 573 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c err = fm10k_tlv_attr_parse(msg, results, data->attr); msg 640 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c static void fm10k_tlv_msg_test_generate_data(u32 *msg, u32 attr_flags) msg 643 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c fm10k_tlv_attr_put_null_string(msg, FM10K_TEST_MSG_STRING, msg 646 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c fm10k_tlv_attr_put_mac_vlan(msg, FM10K_TEST_MSG_MAC_ADDR, msg 649 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c fm10k_tlv_attr_put_u8(msg, FM10K_TEST_MSG_U8, test_u8); msg 651 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c fm10k_tlv_attr_put_u16(msg, FM10K_TEST_MSG_U16, test_u16); msg 653 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c fm10k_tlv_attr_put_u32(msg, FM10K_TEST_MSG_U32, test_u32); msg 655 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c fm10k_tlv_attr_put_u64(msg, FM10K_TEST_MSG_U64, test_u64); msg 657 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c fm10k_tlv_attr_put_s8(msg, FM10K_TEST_MSG_S8, test_s8); msg 659 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c fm10k_tlv_attr_put_s16(msg, FM10K_TEST_MSG_S16, test_s16); msg 661 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c fm10k_tlv_attr_put_s32(msg, FM10K_TEST_MSG_S32, test_s32); msg 663 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c fm10k_tlv_attr_put_s64(msg, FM10K_TEST_MSG_S64, test_s64); msg 665 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c fm10k_tlv_attr_put_le_struct(msg, FM10K_TEST_MSG_LE_STRUCT, msg 677 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c void fm10k_tlv_msg_test_create(u32 *msg, u32 attr_flags) msg 681 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c fm10k_tlv_msg_init(msg, FM10K_TLV_MSG_ID_TEST); msg 683 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c fm10k_tlv_msg_test_generate_data(msg, attr_flags); msg 689 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c nest = fm10k_tlv_attr_nest_start(msg, FM10K_TEST_MSG_NESTED); msg 693 drivers/net/ethernet/intel/fm10k/fm10k_tlv.c fm10k_tlv_attr_nest_stop(msg); msg 96 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h #define fm10k_tlv_attr_put_u8(msg, attr_id, val) \ msg 97 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h fm10k_tlv_attr_put_value(msg, attr_id, val, 1) msg 98 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h #define fm10k_tlv_attr_put_u16(msg, attr_id, val) \ msg 99 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h fm10k_tlv_attr_put_value(msg, attr_id, val, 2) msg 100 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h #define fm10k_tlv_attr_put_u32(msg, attr_id, val) \ msg 101 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h fm10k_tlv_attr_put_value(msg, attr_id, val, 4) msg 102 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h #define fm10k_tlv_attr_put_u64(msg, attr_id, val) \ msg 103 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h fm10k_tlv_attr_put_value(msg, attr_id, val, 8) msg 104 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h #define fm10k_tlv_attr_put_s8(msg, attr_id, val) \ msg 105 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h fm10k_tlv_attr_put_value(msg, attr_id, val, 1) msg 106 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h #define fm10k_tlv_attr_put_s16(msg, attr_id, val) \ msg 107 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h fm10k_tlv_attr_put_value(msg, attr_id, val, 2) msg 108 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h #define fm10k_tlv_attr_put_s32(msg, attr_id, val) \ msg 109 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h fm10k_tlv_attr_put_value(msg, attr_id, val, 4) msg 110 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h #define fm10k_tlv_attr_put_s64(msg, attr_id, val) \ msg 111 drivers/net/ethernet/intel/fm10k/fm10k_tlv.h fm10k_tlv_attr_put_value(msg, attr_id, val, 8) msg 170 drivers/net/ethernet/intel/fm10k/fm10k_vf.c u32 msg[4]; msg 185 drivers/net/ethernet/intel/fm10k/fm10k_vf.c fm10k_tlv_msg_init(msg, FM10K_VF_MSG_ID_MAC_VLAN); msg 186 drivers/net/ethernet/intel/fm10k/fm10k_vf.c fm10k_tlv_attr_put_u32(msg, FM10K_MAC_VLAN_MSG_VLAN, vid); msg 189 drivers/net/ethernet/intel/fm10k/fm10k_vf.c return mbx->ops.enqueue_tx(hw, mbx, msg); msg 276 drivers/net/ethernet/intel/fm10k/fm10k_vf.c u32 msg[7]; msg 296 drivers/net/ethernet/intel/fm10k/fm10k_vf.c fm10k_tlv_msg_init(msg, FM10K_VF_MSG_ID_MAC_VLAN); msg 297 drivers/net/ethernet/intel/fm10k/fm10k_vf.c fm10k_tlv_attr_put_mac_vlan(msg, FM10K_MAC_VLAN_MSG_MAC, mac, vid); msg 300 drivers/net/ethernet/intel/fm10k/fm10k_vf.c return mbx->ops.enqueue_tx(hw, mbx, msg); msg 319 drivers/net/ethernet/intel/fm10k/fm10k_vf.c u32 msg[7]; msg 334 drivers/net/ethernet/intel/fm10k/fm10k_vf.c fm10k_tlv_msg_init(msg, FM10K_VF_MSG_ID_MAC_VLAN); msg 335 drivers/net/ethernet/intel/fm10k/fm10k_vf.c fm10k_tlv_attr_put_mac_vlan(msg, FM10K_MAC_VLAN_MSG_MULTICAST, msg 339 drivers/net/ethernet/intel/fm10k/fm10k_vf.c return mbx->ops.enqueue_tx(hw, mbx, msg); msg 352 drivers/net/ethernet/intel/fm10k/fm10k_vf.c u32 msg[1]; msg 355 drivers/net/ethernet/intel/fm10k/fm10k_vf.c fm10k_tlv_msg_init(msg, FM10K_VF_MSG_ID_MSIX); msg 358 drivers/net/ethernet/intel/fm10k/fm10k_vf.c mbx->ops.enqueue_tx(hw, mbx, msg); msg 403 drivers/net/ethernet/intel/fm10k/fm10k_vf.c u32 msg[2]; msg 409 drivers/net/ethernet/intel/fm10k/fm10k_vf.c fm10k_tlv_msg_init(msg, FM10K_VF_MSG_ID_LPORT_STATE); msg 411 drivers/net/ethernet/intel/fm10k/fm10k_vf.c fm10k_tlv_attr_put_bool(msg, FM10K_LPORT_STATE_MSG_DISABLE); msg 414 drivers/net/ethernet/intel/fm10k/fm10k_vf.c return mbx->ops.enqueue_tx(hw, mbx, msg); msg 431 drivers/net/ethernet/intel/fm10k/fm10k_vf.c u32 msg[3]; msg 437 drivers/net/ethernet/intel/fm10k/fm10k_vf.c fm10k_tlv_msg_init(msg, FM10K_VF_MSG_ID_LPORT_STATE); msg 438 drivers/net/ethernet/intel/fm10k/fm10k_vf.c fm10k_tlv_attr_put_u8(msg, FM10K_LPORT_STATE_MSG_XCAST_MODE, mode); msg 441 drivers/net/ethernet/intel/fm10k/fm10k_vf.c return mbx->ops.enqueue_tx(hw, mbx, msg); msg 1048 drivers/net/ethernet/intel/i40e/i40e.h u8 *msg, u16 len); msg 18 drivers/net/ethernet/intel/i40e/i40e_client.c u32 vf_id, u8 *msg, u16 len); msg 84 drivers/net/ethernet/intel/i40e/i40e_client.c i40e_notify_client_of_vf_msg(struct i40e_vsi *vsi, u32 vf_id, u8 *msg, u16 len) msg 101 drivers/net/ethernet/intel/i40e/i40e_client.c vf_id, msg, len); msg 550 drivers/net/ethernet/intel/i40e/i40e_client.c u32 vf_id, u8 *msg, u16 len) msg 557 drivers/net/ethernet/intel/i40e/i40e_client.c 0, msg, len, NULL); msg 120 drivers/net/ethernet/intel/i40e/i40e_client.h u32 vf_id, u8 *msg, u16 len); msg 157 drivers/net/ethernet/intel/i40e/i40e_client.h u8 *msg, u16 len); msg 2939 drivers/net/ethernet/intel/i40e/i40e_common.c u32 v_opcode, u32 v_retval, u8 *msg, u16 msglen, msg 2959 drivers/net/ethernet/intel/i40e/i40e_common.c status = i40e_asq_send_command(hw, &desc, msg, msglen, cmd_details); msg 5566 drivers/net/ethernet/intel/i40e/i40e_common.c u8 *msg = NULL; msg 5580 drivers/net/ethernet/intel/i40e/i40e_common.c msg = &aq->data[0]; msg 5583 drivers/net/ethernet/intel/i40e/i40e_common.c status = i40e_asq_send_command(hw, &desc, msg, msglen, NULL); msg 162 drivers/net/ethernet/intel/i40e/i40e_prototype.h u32 v_opcode, u32 v_retval, u8 *msg, u16 msglen, msg 383 drivers/net/ethernet/intel/i40e/i40e_prototype.h struct virtchnl_vf_resource *msg); msg 388 drivers/net/ethernet/intel/i40e/i40e_prototype.h u8 *msg, u16 msglen, msg 20 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c i40e_status v_retval, u8 *msg, msg 38 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c msg, msglen, NULL); msg 1736 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c u32 v_retval, u8 *msg, u16 msglen) msg 1771 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c msg, msglen, NULL); msg 1804 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_get_version_msg(struct i40e_vf *vf, u8 *msg) msg 1810 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c vf->vf_ver = *(struct virtchnl_version_info *)msg; msg 1847 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_get_vf_resources_msg(struct i40e_vf *vf, u8 *msg) msg 1870 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c vf->driver_caps = *(u32 *)msg; msg 2003 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_config_promiscuous_mode_msg(struct i40e_vf *vf, u8 *msg) msg 2006 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c (struct virtchnl_promisc_info *)msg; msg 2088 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_config_queues_msg(struct i40e_vf *vf, u8 *msg) msg 2091 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c (struct virtchnl_vsi_queue_config_info *)msg; msg 2232 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_config_irq_map_msg(struct i40e_vf *vf, u8 *msg) msg 2235 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c (struct virtchnl_irq_map_info *)msg; msg 2348 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_enable_queues_msg(struct i40e_vf *vf, u8 *msg) msg 2351 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c (struct virtchnl_queue_select *)msg; msg 2408 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_disable_queues_msg(struct i40e_vf *vf, u8 *msg) msg 2411 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c (struct virtchnl_queue_select *)msg; msg 2460 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_request_queues_msg(struct i40e_vf *vf, u8 *msg) msg 2463 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c (struct virtchnl_vf_res_request *)msg; msg 2503 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_get_stats_msg(struct i40e_vf *vf, u8 *msg) msg 2506 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c (struct virtchnl_queue_select *)msg; msg 2614 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_add_mac_addr_msg(struct i40e_vf *vf, u8 *msg) msg 2617 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c (struct virtchnl_ether_addr_list *)msg; msg 2683 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_del_mac_addr_msg(struct i40e_vf *vf, u8 *msg) msg 2686 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c (struct virtchnl_ether_addr_list *)msg; msg 2751 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_add_vlan_msg(struct i40e_vf *vf, u8 *msg) msg 2754 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c (struct virtchnl_vlan_filter_list *)msg; msg 2822 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_remove_vlan_msg(struct i40e_vf *vf, u8 *msg) msg 2825 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c (struct virtchnl_vlan_filter_list *)msg; msg 2880 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_iwarp_msg(struct i40e_vf *vf, u8 *msg, u16 msglen) msg 2893 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c msg, msglen); msg 2909 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_iwarp_qvmap_msg(struct i40e_vf *vf, u8 *msg, bool config) msg 2912 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c (struct virtchnl_iwarp_qvlist_info *)msg; msg 2943 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_config_rss_key(struct i40e_vf *vf, u8 *msg) msg 2946 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c (struct virtchnl_rss_key *)msg; msg 2973 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_config_rss_lut(struct i40e_vf *vf, u8 *msg) msg 2976 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c (struct virtchnl_rss_lut *)msg; msg 3010 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_get_rss_hena(struct i40e_vf *vf, u8 *msg) msg 3045 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_set_rss_hena(struct i40e_vf *vf, u8 *msg) msg 3048 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c (struct virtchnl_rss_hena *)msg; msg 3073 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_enable_vlan_stripping(struct i40e_vf *vf, u8 *msg) msg 3099 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_disable_vlan_stripping(struct i40e_vf *vf, u8 *msg) msg 3319 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_del_cloud_filter(struct i40e_vf *vf, u8 *msg) msg 3321 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c struct virtchnl_filter *vcf = (struct virtchnl_filter *)msg; msg 3451 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_add_cloud_filter(struct i40e_vf *vf, u8 *msg) msg 3453 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c struct virtchnl_filter *vcf = (struct virtchnl_filter *)msg; msg 3561 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_add_qch_msg(struct i40e_vf *vf, u8 *msg) msg 3564 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c (struct virtchnl_tc_info *)msg; msg 3701 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c static int i40e_vc_del_qch_msg(struct i40e_vf *vf, u8 *msg) msg 3749 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c u32 __always_unused v_retval, u8 *msg, u16 msglen) msg 3766 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = virtchnl_vc_validate_vf_msg(&vf->vf_ver, v_opcode, msg, msglen); msg 3782 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_get_version_msg(vf, msg); msg 3785 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_get_vf_resources_msg(vf, msg); msg 3793 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_config_promiscuous_mode_msg(vf, msg); msg 3796 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_config_queues_msg(vf, msg); msg 3799 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_config_irq_map_msg(vf, msg); msg 3802 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_enable_queues_msg(vf, msg); msg 3806 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_disable_queues_msg(vf, msg); msg 3809 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_add_mac_addr_msg(vf, msg); msg 3812 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_del_mac_addr_msg(vf, msg); msg 3815 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_add_vlan_msg(vf, msg); msg 3818 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_remove_vlan_msg(vf, msg); msg 3821 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_get_stats_msg(vf, msg); msg 3824 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_iwarp_msg(vf, msg, msglen); msg 3827 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_iwarp_qvmap_msg(vf, msg, true); msg 3830 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_iwarp_qvmap_msg(vf, msg, false); msg 3833 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_config_rss_key(vf, msg); msg 3836 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_config_rss_lut(vf, msg); msg 3839 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_get_rss_hena(vf, msg); msg 3842 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_set_rss_hena(vf, msg); msg 3845 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_enable_vlan_stripping(vf, msg); msg 3848 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_disable_vlan_stripping(vf, msg); msg 3851 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_request_queues_msg(vf, msg); msg 3854 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_add_qch_msg(vf, msg); msg 3857 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_del_qch_msg(vf, msg); msg 3860 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_add_cloud_filter(vf, msg); msg 3863 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c ret = i40e_vc_del_cloud_filter(vf, msg); msg 122 drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.h u32 v_retval, u8 *msg, u16 msglen); msg 405 drivers/net/ethernet/intel/iavf/iavf.h enum iavf_status v_retval, u8 *msg, u16 msglen); msg 410 drivers/net/ethernet/intel/iavf/iavf.h void iavf_notify_client_message(struct iavf_vsi *vsi, u8 *msg, u16 len); msg 19 drivers/net/ethernet/intel/iavf/iavf_client.c u8 *msg, u16 len); msg 58 drivers/net/ethernet/intel/iavf/iavf_client.c void iavf_notify_client_message(struct iavf_vsi *vsi, u8 *msg, u16 len) msg 73 drivers/net/ethernet/intel/iavf/iavf_client.c msg, len); msg 420 drivers/net/ethernet/intel/iavf/iavf_client.c u8 *msg, u16 len) msg 429 drivers/net/ethernet/intel/iavf/iavf_client.c IAVF_SUCCESS, msg, len, NULL); msg 113 drivers/net/ethernet/intel/iavf/iavf_client.h u8 *msg, u16 len); msg 141 drivers/net/ethernet/intel/iavf/iavf_client.h u8 *msg, u16 len); msg 883 drivers/net/ethernet/intel/iavf/iavf_common.c u8 *msg, u16 msglen, msg 906 drivers/net/ethernet/intel/iavf/iavf_common.c status = iavf_asq_send_command(hw, &desc, msg, msglen, cmd_details); msg 919 drivers/net/ethernet/intel/iavf/iavf_common.c struct virtchnl_vf_resource *msg) msg 924 drivers/net/ethernet/intel/iavf/iavf_common.c vsi_res = &msg->vsi_res[0]; msg 926 drivers/net/ethernet/intel/iavf/iavf_common.c hw->dev_caps.num_vsis = msg->num_vsis; msg 927 drivers/net/ethernet/intel/iavf/iavf_common.c hw->dev_caps.num_rx_qp = msg->num_queue_pairs; msg 928 drivers/net/ethernet/intel/iavf/iavf_common.c hw->dev_caps.num_tx_qp = msg->num_queue_pairs; msg 929 drivers/net/ethernet/intel/iavf/iavf_common.c hw->dev_caps.num_msix_vectors_vf = msg->max_vectors; msg 930 drivers/net/ethernet/intel/iavf/iavf_common.c hw->dev_caps.dcb = msg->vf_cap_flags & msg 933 drivers/net/ethernet/intel/iavf/iavf_common.c for (i = 0; i < msg->num_vsis; i++) { msg 62 drivers/net/ethernet/intel/iavf/iavf_prototype.h struct virtchnl_vf_resource *msg); msg 67 drivers/net/ethernet/intel/iavf/iavf_prototype.h u8 *msg, u16 msglen, msg 22 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c enum virtchnl_ops op, u8 *msg, u16 len) msg 30 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c err = iavf_aq_send_msg_to_pf(hw, op, 0, msg, len, NULL); msg 1183 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c enum iavf_status v_retval, u8 *msg, u16 msglen) msg 1189 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c (struct virtchnl_pf_event *)msg; msg 1331 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c (struct iavf_eth_stats *)msg; msg 1350 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c memcpy(adapter->vf_res, msg, min(msglen, len)); msg 1396 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c iavf_notify_client_message(&adapter->vsi, msg, msglen); msg 1404 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c struct virtchnl_rss_hena *vrh = (struct virtchnl_rss_hena *)msg; msg 1415 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c (struct virtchnl_vf_res_request *)msg; msg 24 drivers/net/ethernet/intel/ice/ice_sriov.c u8 *msg, u16 msglen, struct ice_sq_cd *cd) msg 40 drivers/net/ethernet/intel/ice/ice_sriov.c return ice_sq_send_cmd(hw, &hw->mailboxq, &desc, msg, msglen, cd); msg 12 drivers/net/ethernet/intel/ice/ice_sriov.h u8 *msg, u16 msglen, struct ice_sq_cd *cd); msg 19 drivers/net/ethernet/intel/ice/ice_sriov.h u32 __always_unused v_retval, u8 __always_unused *msg, msg 48 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c enum virtchnl_status_code v_retval, u8 *msg, u16 msglen) msg 63 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c ice_aq_send_msg_to_vf(hw, vf->vf_id, v_opcode, v_retval, msg, msg 1525 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c enum virtchnl_status_code v_retval, u8 *msg, u16 msglen) msg 1556 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c msg, msglen, NULL); msg 1574 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c static int ice_vc_get_ver_msg(struct ice_vf *vf, u8 *msg) msg 1580 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c vf->vf_ver = *(struct virtchnl_version_info *)msg; msg 1597 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c static int ice_vc_get_vf_res_msg(struct ice_vf *vf, u8 *msg) msg 1620 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c vf->driver_caps = *(u32 *)msg; msg 1776 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c static int ice_vc_config_rss_key(struct ice_vf *vf, u8 *msg) msg 1780 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c (struct virtchnl_rss_key *)msg; msg 1824 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c static int ice_vc_config_rss_lut(struct ice_vf *vf, u8 *msg) msg 1826 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c struct virtchnl_rss_lut *vrl = (struct virtchnl_rss_lut *)msg; msg 1871 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c static int ice_vc_get_stats_msg(struct ice_vf *vf, u8 *msg) msg 1875 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c (struct virtchnl_queue_select *)msg; msg 1913 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c static int ice_vc_ena_qs_msg(struct ice_vf *vf, u8 *msg) msg 1917 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c (struct virtchnl_queue_select *)msg; msg 2011 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c static int ice_vc_dis_qs_msg(struct ice_vf *vf, u8 *msg) msg 2015 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c (struct virtchnl_queue_select *)msg; msg 2126 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c static int ice_vc_cfg_irq_map_msg(struct ice_vf *vf, u8 *msg) msg 2138 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c irqmap_info = (struct virtchnl_irq_map_info *)msg; msg 2229 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c static int ice_vc_cfg_qs_msg(struct ice_vf *vf, u8 *msg) msg 2233 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c (struct virtchnl_vsi_queue_config_info *)msg; msg 2362 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c ice_vc_handle_mac_addr_msg(struct ice_vf *vf, u8 *msg, bool set) msg 2366 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c (struct virtchnl_ether_addr_list *)msg; msg 2480 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c static int ice_vc_add_mac_addr_msg(struct ice_vf *vf, u8 *msg) msg 2482 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c return ice_vc_handle_mac_addr_msg(vf, msg, true); msg 2492 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c static int ice_vc_del_mac_addr_msg(struct ice_vf *vf, u8 *msg) msg 2494 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c return ice_vc_handle_mac_addr_msg(vf, msg, false); msg 2507 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c static int ice_vc_request_qs_msg(struct ice_vf *vf, u8 *msg) msg 2511 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c (struct virtchnl_vf_res_request *)msg; msg 2651 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c static int ice_vc_process_vlan_msg(struct ice_vf *vf, u8 *msg, bool add_v) msg 2655 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c (struct virtchnl_vlan_filter_list *)msg; msg 2820 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c static int ice_vc_add_vlan_msg(struct ice_vf *vf, u8 *msg) msg 2822 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c return ice_vc_process_vlan_msg(vf, msg, true); msg 2832 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c static int ice_vc_remove_vlan_msg(struct ice_vf *vf, u8 *msg) msg 2834 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c return ice_vc_process_vlan_msg(vf, msg, false); msg 2907 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c u8 *msg = event->msg_buf; msg 2925 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c err = virtchnl_vc_validate_vf_msg(&vf->vf_ver, v_opcode, msg, msglen); msg 2944 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c err = ice_vc_get_ver_msg(vf, msg); msg 2947 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c err = ice_vc_get_vf_res_msg(vf, msg); msg 2954 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c err = ice_vc_add_mac_addr_msg(vf, msg); msg 2957 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c err = ice_vc_del_mac_addr_msg(vf, msg); msg 2960 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c err = ice_vc_cfg_qs_msg(vf, msg); msg 2963 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c err = ice_vc_ena_qs_msg(vf, msg); msg 2967 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c err = ice_vc_dis_qs_msg(vf, msg); msg 2970 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c err = ice_vc_request_qs_msg(vf, msg); msg 2973 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c err = ice_vc_cfg_irq_map_msg(vf, msg); msg 2976 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c err = ice_vc_config_rss_key(vf, msg); msg 2979 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c err = ice_vc_config_rss_lut(vf, msg); msg 2982 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c err = ice_vc_get_stats_msg(vf, msg); msg 2985 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c err = ice_vc_add_vlan_msg(vf, msg); msg 2988 drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c err = ice_vc_remove_vlan_msg(vf, msg); msg 476 drivers/net/ethernet/intel/igb/e1000_hw.h s32 (*read)(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id, msg 478 drivers/net/ethernet/intel/igb/e1000_hw.h s32 (*write)(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id); msg 479 drivers/net/ethernet/intel/igb/e1000_hw.h s32 (*read_posted)(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id); msg 480 drivers/net/ethernet/intel/igb/e1000_hw.h s32 (*write_posted)(struct e1000_hw *hw, u32 *msg, u16 size, msg 15 drivers/net/ethernet/intel/igb/e1000_mbx.c s32 igb_read_mbx(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id, msg 26 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = mbx->ops.read(hw, msg, size, mbx_id, unlock); msg 40 drivers/net/ethernet/intel/igb/e1000_mbx.c s32 igb_write_mbx(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id) msg 49 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = mbx->ops.write(hw, msg, size, mbx_id); msg 194 drivers/net/ethernet/intel/igb/e1000_mbx.c static s32 igb_read_posted_mbx(struct e1000_hw *hw, u32 *msg, u16 size, msg 206 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = mbx->ops.read(hw, msg, size, mbx_id, true); msg 221 drivers/net/ethernet/intel/igb/e1000_mbx.c static s32 igb_write_posted_mbx(struct e1000_hw *hw, u32 *msg, u16 size, msg 232 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = mbx->ops.write(hw, msg, size, mbx_id); msg 371 drivers/net/ethernet/intel/igb/e1000_mbx.c static s32 igb_write_mbx_pf(struct e1000_hw *hw, u32 *msg, u16 size, msg 388 drivers/net/ethernet/intel/igb/e1000_mbx.c array_wr32(E1000_VMBMEM(vf_number), i, msg[i]); msg 413 drivers/net/ethernet/intel/igb/e1000_mbx.c static s32 igb_read_mbx_pf(struct e1000_hw *hw, u32 *msg, u16 size, msg 426 drivers/net/ethernet/intel/igb/e1000_mbx.c msg[i] = array_rd32(E1000_VMBMEM(vf_number), i); msg 50 drivers/net/ethernet/intel/igb/e1000_mbx.h s32 igb_read_mbx(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id, msg 52 drivers/net/ethernet/intel/igb/e1000_mbx.h s32 igb_write_mbx(struct e1000_hw *hw, u32 *msg, u16 size, u16 mbx_id); msg 7415 drivers/net/ethernet/intel/igb/igb_main.c static int igb_set_vf_mac_addr(struct igb_adapter *adapter, u32 *msg, int vf) msg 7419 drivers/net/ethernet/intel/igb/igb_main.c u32 info = msg[0] & E1000_VT_MSGINFO_MASK; msg 7424 drivers/net/ethernet/intel/igb/igb_main.c unsigned char *addr = (unsigned char *)&msg[1]; msg 7455 drivers/net/ethernet/intel/igb/igb_main.c u32 msg = E1000_VT_MSGTYPE_NACK; msg 7460 drivers/net/ethernet/intel/igb/igb_main.c igb_write_mbx(hw, &msg, 1, vf); msg 67 drivers/net/ethernet/intel/igbvf/mbx.c static s32 e1000_read_posted_mbx(struct e1000_hw *hw, u32 *msg, u16 size) msg 79 drivers/net/ethernet/intel/igbvf/mbx.c ret_val = mbx->ops.read(hw, msg, size); msg 93 drivers/net/ethernet/intel/igbvf/mbx.c static s32 e1000_write_posted_mbx(struct e1000_hw *hw, u32 *msg, u16 size) msg 103 drivers/net/ethernet/intel/igbvf/mbx.c ret_val = mbx->ops.write(hw, msg, size); msg 239 drivers/net/ethernet/intel/igbvf/mbx.c static s32 e1000_write_mbx_vf(struct e1000_hw *hw, u32 *msg, u16 size) msg 257 drivers/net/ethernet/intel/igbvf/mbx.c array_ew32(VMBMEM(0), i, msg[i]); msg 277 drivers/net/ethernet/intel/igbvf/mbx.c static s32 e1000_read_mbx_vf(struct e1000_hw *hw, u32 *msg, u16 size) msg 291 drivers/net/ethernet/intel/igbvf/mbx.c msg[i] = array_er32(VMBMEM(0), i); msg 18 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c s32 ixgbe_read_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size, u16 mbx_id) msg 29 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c return mbx->ops->read(hw, msg, size, mbx_id); msg 41 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c s32 ixgbe_write_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size, u16 mbx_id) msg 51 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c return mbx->ops->write(hw, msg, size, mbx_id); msg 165 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c static s32 ixgbe_read_posted_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size, msg 179 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c return mbx->ops->read(hw, msg, size, mbx_id); msg 192 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c static s32 ixgbe_write_posted_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size, msg 203 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c ret_val = mbx->ops->write(hw, msg, size, mbx_id); msg 332 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c static s32 ixgbe_write_mbx_pf(struct ixgbe_hw *hw, u32 *msg, u16 size, msg 349 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c IXGBE_WRITE_REG_ARRAY(hw, IXGBE_PFMBMEM(vf_number), i, msg[i]); msg 371 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c static s32 ixgbe_read_mbx_pf(struct ixgbe_hw *hw, u32 *msg, u16 size, msg 384 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c msg[i] = IXGBE_READ_REG_ARRAY(hw, IXGBE_PFMBMEM(vf_number), i); msg 1300 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c u32 msg = IXGBE_VT_MSGTYPE_NACK; msg 1304 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c ixgbe_write_mbx(hw, &msg, 1, vf); msg 62 drivers/net/ethernet/intel/ixgbevf/mbx.c static s32 ixgbevf_read_posted_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size) msg 74 drivers/net/ethernet/intel/ixgbevf/mbx.c ret_val = mbx->ops.read(hw, msg, size); msg 88 drivers/net/ethernet/intel/ixgbevf/mbx.c static s32 ixgbevf_write_posted_mbx(struct ixgbe_hw *hw, u32 *msg, u16 size) msg 98 drivers/net/ethernet/intel/ixgbevf/mbx.c ret_val = mbx->ops.write(hw, msg, size); msg 228 drivers/net/ethernet/intel/ixgbevf/mbx.c static s32 ixgbevf_write_mbx_vf(struct ixgbe_hw *hw, u32 *msg, u16 size) msg 244 drivers/net/ethernet/intel/ixgbevf/mbx.c IXGBE_WRITE_REG_ARRAY(hw, IXGBE_VFMBMEM, i, msg[i]); msg 264 drivers/net/ethernet/intel/ixgbevf/mbx.c static s32 ixgbevf_read_mbx_vf(struct ixgbe_hw *hw, u32 *msg, u16 size) msg 276 drivers/net/ethernet/intel/ixgbevf/mbx.c msg[i] = IXGBE_READ_REG_ARRAY(hw, IXGBE_VFMBMEM, i); msg 13 drivers/net/ethernet/intel/ixgbevf/vf.c static inline s32 ixgbevf_write_msg_read_ack(struct ixgbe_hw *hw, u32 *msg, msg 17 drivers/net/ethernet/intel/ixgbevf/vf.c s32 retval = mbx->ops.write_posted(hw, msg, size); msg 846 drivers/net/ethernet/intel/ixgbevf/vf.c u32 msg[3]; msg 849 drivers/net/ethernet/intel/ixgbevf/vf.c msg[0] = IXGBE_VF_API_NEGOTIATE; msg 850 drivers/net/ethernet/intel/ixgbevf/vf.c msg[1] = api; msg 851 drivers/net/ethernet/intel/ixgbevf/vf.c msg[2] = 0; msg 853 drivers/net/ethernet/intel/ixgbevf/vf.c err = ixgbevf_write_msg_read_ack(hw, msg, msg, ARRAY_SIZE(msg)); msg 855 drivers/net/ethernet/intel/ixgbevf/vf.c msg[0] &= ~IXGBE_VT_MSGTYPE_CTS; msg 858 drivers/net/ethernet/intel/ixgbevf/vf.c if (msg[0] == (IXGBE_VF_API_NEGOTIATE | IXGBE_VT_MSGTYPE_ACK)) { msg 888 drivers/net/ethernet/intel/ixgbevf/vf.c u32 msg[5]; msg 902 drivers/net/ethernet/intel/ixgbevf/vf.c msg[0] = IXGBE_VF_GET_QUEUE; msg 903 drivers/net/ethernet/intel/ixgbevf/vf.c msg[1] = msg[2] = msg[3] = msg[4] = 0; msg 905 drivers/net/ethernet/intel/ixgbevf/vf.c err = ixgbevf_write_msg_read_ack(hw, msg, msg, ARRAY_SIZE(msg)); msg 907 drivers/net/ethernet/intel/ixgbevf/vf.c msg[0] &= ~IXGBE_VT_MSGTYPE_CTS; msg 913 drivers/net/ethernet/intel/ixgbevf/vf.c if (msg[0] != (IXGBE_VF_GET_QUEUE | IXGBE_VT_MSGTYPE_ACK)) msg 917 drivers/net/ethernet/intel/ixgbevf/vf.c hw->mac.max_tx_queues = msg[IXGBE_VF_TX_QUEUES]; msg 922 drivers/net/ethernet/intel/ixgbevf/vf.c hw->mac.max_rx_queues = msg[IXGBE_VF_RX_QUEUES]; msg 927 drivers/net/ethernet/intel/ixgbevf/vf.c *num_tcs = msg[IXGBE_VF_TRANS_VLAN]; msg 932 drivers/net/ethernet/intel/ixgbevf/vf.c *default_tc = msg[IXGBE_VF_DEF_QUEUE]; msg 1175 drivers/net/ethernet/jme.h const char *msg, u32 val, u32 reg) msg 1192 drivers/net/ethernet/jme.h msg, val, regname); msg 1196 drivers/net/ethernet/jme.h const char *msg, u32 val, u32 reg) {} msg 232 drivers/net/ethernet/marvell/octeontx2/af/mbox.c struct mbox_msghdr *msg) msg 246 drivers/net/ethernet/marvell/octeontx2/af/mbox.c if (msg == pmsg) { msg 105 drivers/net/ethernet/marvell/octeontx2/af/mbox.h struct mbox_msghdr *msg); msg 1422 drivers/net/ethernet/marvell/octeontx2/af/rvu.c struct mbox_msghdr *msg; msg 1449 drivers/net/ethernet/marvell/octeontx2/af/rvu.c msg = mdev->mbase + offset; msg 1454 drivers/net/ethernet/marvell/octeontx2/af/rvu.c msg->pcifunc &= msg 1456 drivers/net/ethernet/marvell/octeontx2/af/rvu.c msg->pcifunc |= (devid << RVU_PFVF_PF_SHIFT); msg 1459 drivers/net/ethernet/marvell/octeontx2/af/rvu.c msg->pcifunc &= msg 1461 drivers/net/ethernet/marvell/octeontx2/af/rvu.c msg->pcifunc |= (devid << RVU_PFVF_FUNC_SHIFT) + 1; msg 1465 drivers/net/ethernet/marvell/octeontx2/af/rvu.c err = rvu_process_mbox_msg(mbox, devid, msg); msg 1467 drivers/net/ethernet/marvell/octeontx2/af/rvu.c offset = mbox->rx_start + msg->next_msgoff; msg 1471 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (msg->pcifunc & RVU_PFVF_FUNC_MASK) msg 1473 drivers/net/ethernet/marvell/octeontx2/af/rvu.c err, otx2_mbox_id2name(msg->id), msg 1474 drivers/net/ethernet/marvell/octeontx2/af/rvu.c msg->id, devid, msg 1475 drivers/net/ethernet/marvell/octeontx2/af/rvu.c (msg->pcifunc & RVU_PFVF_FUNC_MASK) - 1); msg 1478 drivers/net/ethernet/marvell/octeontx2/af/rvu.c err, otx2_mbox_id2name(msg->id), msg 1479 drivers/net/ethernet/marvell/octeontx2/af/rvu.c msg->id, devid); msg 1505 drivers/net/ethernet/marvell/octeontx2/af/rvu.c struct mbox_msghdr *msg; msg 1534 drivers/net/ethernet/marvell/octeontx2/af/rvu.c msg = mdev->mbase + offset; msg 1536 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (msg->id >= MBOX_MSG_MAX) { msg 1538 drivers/net/ethernet/marvell/octeontx2/af/rvu.c "Mbox msg with unknown ID 0x%x\n", msg->id); msg 1542 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (msg->sig != OTX2_MBOX_RSP_SIG) { msg 1545 drivers/net/ethernet/marvell/octeontx2/af/rvu.c msg->sig, msg->id); msg 1549 drivers/net/ethernet/marvell/octeontx2/af/rvu.c switch (msg->id) { msg 1553 drivers/net/ethernet/marvell/octeontx2/af/rvu.c if (msg->rc) msg 1556 drivers/net/ethernet/marvell/octeontx2/af/rvu.c msg->rc, msg->id); msg 1560 drivers/net/ethernet/marvell/octeontx2/af/rvu.c offset = mbox->rx_start + msg->next_msgoff; msg 162 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c struct cgx_link_info_msg *msg; msg 182 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c msg = otx2_mbox_alloc_msg_cgx_link_event(rvu, pfid); msg 183 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c if (!msg) msg 185 drivers/net/ethernet/marvell/octeontx2/af/rvu_cgx.c msg->link_info = *linfo; msg 140 drivers/net/ethernet/mellanox/mlx5/core/cmd.c static int mlx5_calc_cmd_blocks(struct mlx5_cmd_msg *msg) msg 142 drivers/net/ethernet/mellanox/mlx5/core/cmd.c int size = msg->len; msg 143 drivers/net/ethernet/mellanox/mlx5/core/cmd.c int blen = size - min_t(int, sizeof(msg->first.data), size); msg 184 drivers/net/ethernet/mellanox/mlx5/core/cmd.c static void calc_chain_sig(struct mlx5_cmd_msg *msg) msg 186 drivers/net/ethernet/mellanox/mlx5/core/cmd.c struct mlx5_cmd_mailbox *next = msg->next; msg 187 drivers/net/ethernet/mellanox/mlx5/core/cmd.c int n = mlx5_calc_cmd_blocks(msg); msg 772 drivers/net/ethernet/mellanox/mlx5/core/cmd.c struct mlx5_cmd_msg *msg = input ? ent->in : ent->out; msg 774 drivers/net/ethernet/mellanox/mlx5/core/cmd.c struct mlx5_cmd_mailbox *next = msg->next; msg 775 drivers/net/ethernet/mellanox/mlx5/core/cmd.c int n = mlx5_calc_cmd_blocks(msg); msg 808 drivers/net/ethernet/mellanox/mlx5/core/cmd.c dump_len = min_t(int, MLX5_CMD_DATA_BLOCK_SIZE, msg->len - offset); msg 847 drivers/net/ethernet/mellanox/mlx5/core/cmd.c static void free_msg(struct mlx5_core_dev *dev, struct mlx5_cmd_msg *msg); msg 849 drivers/net/ethernet/mellanox/mlx5/core/cmd.c struct mlx5_cmd_msg *msg); msg 1217 drivers/net/ethernet/mellanox/mlx5/core/cmd.c struct mlx5_cmd_msg *msg; msg 1222 drivers/net/ethernet/mellanox/mlx5/core/cmd.c msg = kzalloc(sizeof(*msg), flags); msg 1223 drivers/net/ethernet/mellanox/mlx5/core/cmd.c if (!msg) msg 1226 drivers/net/ethernet/mellanox/mlx5/core/cmd.c msg->len = size; msg 1227 drivers/net/ethernet/mellanox/mlx5/core/cmd.c n = mlx5_calc_cmd_blocks(msg); msg 1244 drivers/net/ethernet/mellanox/mlx5/core/cmd.c msg->next = head; msg 1245 drivers/net/ethernet/mellanox/mlx5/core/cmd.c return msg; msg 1253 drivers/net/ethernet/mellanox/mlx5/core/cmd.c kfree(msg); msg 1259 drivers/net/ethernet/mellanox/mlx5/core/cmd.c struct mlx5_cmd_msg *msg) msg 1261 drivers/net/ethernet/mellanox/mlx5/core/cmd.c struct mlx5_cmd_mailbox *head = msg->next; msg 1269 drivers/net/ethernet/mellanox/mlx5/core/cmd.c kfree(msg); msg 1452 drivers/net/ethernet/mellanox/mlx5/core/cmd.c static void free_msg(struct mlx5_core_dev *dev, struct mlx5_cmd_msg *msg) msg 1456 drivers/net/ethernet/mellanox/mlx5/core/cmd.c if (msg->parent) { msg 1457 drivers/net/ethernet/mellanox/mlx5/core/cmd.c spin_lock_irqsave(&msg->parent->lock, flags); msg 1458 drivers/net/ethernet/mellanox/mlx5/core/cmd.c list_add_tail(&msg->list, &msg->parent->head); msg 1459 drivers/net/ethernet/mellanox/mlx5/core/cmd.c spin_unlock_irqrestore(&msg->parent->lock, flags); msg 1461 drivers/net/ethernet/mellanox/mlx5/core/cmd.c mlx5_free_cmd_msg(dev, msg); msg 1633 drivers/net/ethernet/mellanox/mlx5/core/cmd.c struct mlx5_cmd_msg *msg = ERR_PTR(-ENOMEM); msg 1650 drivers/net/ethernet/mellanox/mlx5/core/cmd.c msg = list_entry(ch->head.next, typeof(*msg), list); msg 1654 drivers/net/ethernet/mellanox/mlx5/core/cmd.c msg->len = in_size; msg 1655 drivers/net/ethernet/mellanox/mlx5/core/cmd.c list_del(&msg->list); msg 1660 drivers/net/ethernet/mellanox/mlx5/core/cmd.c if (!IS_ERR(msg)) msg 1661 drivers/net/ethernet/mellanox/mlx5/core/cmd.c return msg; msg 1664 drivers/net/ethernet/mellanox/mlx5/core/cmd.c msg = mlx5_alloc_cmd_msg(dev, gfp, in_size, 0); msg 1665 drivers/net/ethernet/mellanox/mlx5/core/cmd.c return msg; msg 1821 drivers/net/ethernet/mellanox/mlx5/core/cmd.c struct mlx5_cmd_msg *msg; msg 1827 drivers/net/ethernet/mellanox/mlx5/core/cmd.c list_for_each_entry_safe(msg, n, &ch->head, list) { msg 1828 drivers/net/ethernet/mellanox/mlx5/core/cmd.c list_del(&msg->list); msg 1829 drivers/net/ethernet/mellanox/mlx5/core/cmd.c mlx5_free_cmd_msg(dev, msg); msg 1850 drivers/net/ethernet/mellanox/mlx5/core/cmd.c struct mlx5_cmd_msg *msg; msg 1862 drivers/net/ethernet/mellanox/mlx5/core/cmd.c msg = mlx5_alloc_cmd_msg(dev, GFP_KERNEL | __GFP_NOWARN, msg 1864 drivers/net/ethernet/mellanox/mlx5/core/cmd.c if (IS_ERR(msg)) msg 1866 drivers/net/ethernet/mellanox/mlx5/core/cmd.c msg->parent = ch; msg 1867 drivers/net/ethernet/mellanox/mlx5/core/cmd.c list_add_tail(&msg->list, &ch->head); msg 540 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c u8 event_id, char *msg) msg 549 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c strscpy_pad(trace_data->msg, msg, TRACE_STR_MSG); msg 880 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c err = devlink_fmsg_string_pair_put(fmsg, "msg", trace_data->msg); msg 63 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.h char msg[TRACE_STR_MSG]; msg 45 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer_tracepoint.h bool lost, u8 event_id, const char *msg), msg 47 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer_tracepoint.h TP_ARGS(tracer, trace_timestamp, lost, event_id, msg), msg 54 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer_tracepoint.h __string(msg, msg) msg 63 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer_tracepoint.h __assign_str(msg, msg); msg 70 drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer_tracepoint.h __get_str(msg)) msg 63 drivers/net/ethernet/mellanox/mlxfw/mlxfw.h const char *msg, const char *comp_name, msg 43 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c const char *msg, const char *comp_name, msg 48 drivers/net/ethernet/mellanox/mlxfw/mlxfw_fsm.c mlxfw_dev->ops->status_notify(mlxfw_dev, msg, comp_name, msg 333 drivers/net/ethernet/mellanox/mlxsw/spectrum.c const char *msg, const char *comp_name, msg 341 drivers/net/ethernet/mellanox/mlxsw/spectrum.c msg, comp_name, msg 172 drivers/net/ethernet/micrel/ks8851.c struct spi_message *msg = &ks->spi_msg1; msg 183 drivers/net/ethernet/micrel/ks8851.c ret = spi_sync(ks->spidev, msg); msg 199 drivers/net/ethernet/micrel/ks8851.c struct spi_message *msg = &ks->spi_msg1; msg 213 drivers/net/ethernet/micrel/ks8851.c ret = spi_sync(ks->spidev, msg); msg 232 drivers/net/ethernet/micrel/ks8851.c struct spi_message *msg; msg 240 drivers/net/ethernet/micrel/ks8851.c msg = &ks->spi_msg2; msg 252 drivers/net/ethernet/micrel/ks8851.c msg = &ks->spi_msg1; msg 260 drivers/net/ethernet/micrel/ks8851.c ret = spi_sync(ks->spidev, msg); msg 456 drivers/net/ethernet/micrel/ks8851.c struct spi_message *msg = &ks->spi_msg2; msg 475 drivers/net/ethernet/micrel/ks8851.c ret = spi_sync(ks->spidev, msg); msg 702 drivers/net/ethernet/micrel/ks8851.c struct spi_message *msg = &ks->spi_msg2; msg 729 drivers/net/ethernet/micrel/ks8851.c ret = spi_sync(ks->spidev, msg); msg 98 drivers/net/ethernet/microchip/enc28j60.c struct spi_message msg; msg 103 drivers/net/ethernet/microchip/enc28j60.c spi_message_init(&msg); msg 104 drivers/net/ethernet/microchip/enc28j60.c spi_message_add_tail(&tx, &msg); msg 105 drivers/net/ethernet/microchip/enc28j60.c spi_message_add_tail(&rx, &msg); msg 107 drivers/net/ethernet/microchip/enc28j60.c ret = spi_sync(priv->spi, &msg); msg 110 drivers/net/ethernet/microchip/enc28j60.c ret = msg.status; msg 527 drivers/net/ethernet/microchip/enc28j60.c static void enc28j60_dump_regs(struct enc28j60_net *priv, const char *msg) msg 544 drivers/net/ethernet/microchip/enc28j60.c msg, nolock_regb_read(priv, EREVID), msg 817 drivers/net/ethernet/microchip/enc28j60.c static void enc28j60_dump_tsv(struct enc28j60_net *priv, const char *msg, msg 823 drivers/net/ethernet/microchip/enc28j60.c dev_printk(KERN_DEBUG, dev, "%s - TSV:\n", msg); msg 863 drivers/net/ethernet/microchip/enc28j60.c static void enc28j60_dump_rsv(struct enc28j60_net *priv, const char *msg, msg 868 drivers/net/ethernet/microchip/enc28j60.c dev_printk(KERN_DEBUG, dev, "%s - NextPk: 0x%04x - RSV:\n", msg, pk_ptr); msg 891 drivers/net/ethernet/microchip/enc28j60.c static void dump_packet(const char *msg, int len, const char *data) msg 893 drivers/net/ethernet/microchip/enc28j60.c printk(KERN_DEBUG DRV_NAME ": %s - packet len:%d\n", msg, len); msg 65 drivers/net/ethernet/microchip/encx24j600.c static void dump_packet(const char *msg, int len, const char *data) msg 67 drivers/net/ethernet/microchip/encx24j600.c pr_debug(DRV_NAME ": %s - packet len:%d\n", msg, len); msg 71 drivers/net/ethernet/microchip/encx24j600.c static void encx24j600_dump_rsv(struct encx24j600_priv *priv, const char *msg, msg 77 drivers/net/ethernet/microchip/encx24j600.c netdev_dbg(dev, "%s - NextPk: 0x%04x\n", msg, msg 551 drivers/net/ethernet/microchip/encx24j600.c const char *msg) msg 553 drivers/net/ethernet/microchip/encx24j600.c pr_info(DRV_NAME ": %s\n", msg); msg 21 drivers/net/ethernet/netronome/nfp/bpf/main.h #define cmsg_warn(bpf, msg...) nn_dp_warn(&(bpf)->app->ctrl->dp, msg) msg 10 drivers/net/ethernet/netronome/nfp/ccm.c #define ccm_warn(app, msg...) nn_dp_warn(&(app)->ctrl->dp, msg) msg 46 drivers/net/ethernet/netronome/nfp/flower/cmsg.c struct nfp_flower_cmsg_mac_repr *msg; msg 49 drivers/net/ethernet/netronome/nfp/flower/cmsg.c skb = nfp_flower_cmsg_alloc(app, struct_size(msg, ports, num_ports), msg 54 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg = nfp_flower_cmsg_get_data(skb); msg 55 drivers/net/ethernet/netronome/nfp/flower/cmsg.c memset(msg->reserved, 0, sizeof(msg->reserved)); msg 56 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg->num_ports = num_ports; msg 66 drivers/net/ethernet/netronome/nfp/flower/cmsg.c struct nfp_flower_cmsg_mac_repr *msg; msg 68 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg = nfp_flower_cmsg_get_data(skb); msg 69 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg->ports[idx].idx = idx; msg 70 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg->ports[idx].info = nbi & NFP_FLOWER_CMSG_MAC_REPR_NBI; msg 71 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg->ports[idx].nbi_port = nbi_port; msg 72 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg->ports[idx].phys_port = phys_port; msg 78 drivers/net/ethernet/netronome/nfp/flower/cmsg.c struct nfp_flower_cmsg_portmod *msg; msg 81 drivers/net/ethernet/netronome/nfp/flower/cmsg.c skb = nfp_flower_cmsg_alloc(repr->app, sizeof(*msg), msg 86 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg = nfp_flower_cmsg_get_data(skb); msg 87 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg->portnum = cpu_to_be32(repr->dst->u.port_info.port_id); msg 88 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg->reserved = 0; msg 89 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg->info = carrier_ok; msg 92 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg->info |= NFP_FLOWER_CMSG_PORTMOD_MTU_CHANGE_ONLY; msg 94 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg->mtu = cpu_to_be16(mtu); msg 103 drivers/net/ethernet/netronome/nfp/flower/cmsg.c struct nfp_flower_cmsg_portreify *msg; msg 106 drivers/net/ethernet/netronome/nfp/flower/cmsg.c skb = nfp_flower_cmsg_alloc(repr->app, sizeof(*msg), msg 112 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg = nfp_flower_cmsg_get_data(skb); msg 113 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg->portnum = cpu_to_be32(repr->dst->u.port_info.port_id); msg 114 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg->reserved = 0; msg 115 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg->info = cpu_to_be16(exists); msg 126 drivers/net/ethernet/netronome/nfp/flower/cmsg.c struct nfp_flower_cmsg_portmod *msg; msg 128 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg = nfp_flower_cmsg_get_data(skb); msg 130 drivers/net/ethernet/netronome/nfp/flower/cmsg.c if (!(msg->info & NFP_FLOWER_CMSG_PORTMOD_MTU_CHANGE_ONLY)) msg 135 drivers/net/ethernet/netronome/nfp/flower/cmsg.c app_priv->mtu_conf.portnum != be32_to_cpu(msg->portnum) || msg 136 drivers/net/ethernet/netronome/nfp/flower/cmsg.c be16_to_cpu(msg->mtu) != app_priv->mtu_conf.requested_val) { msg 153 drivers/net/ethernet/netronome/nfp/flower/cmsg.c struct nfp_flower_cmsg_portmod *msg; msg 157 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg = nfp_flower_cmsg_get_data(skb); msg 158 drivers/net/ethernet/netronome/nfp/flower/cmsg.c link = msg->info & NFP_FLOWER_CMSG_PORTMOD_INFO_LINK; msg 162 drivers/net/ethernet/netronome/nfp/flower/cmsg.c netdev = nfp_app_dev_get(app, be32_to_cpu(msg->portnum), NULL); msg 166 drivers/net/ethernet/netronome/nfp/flower/cmsg.c be32_to_cpu(msg->portnum)); msg 172 drivers/net/ethernet/netronome/nfp/flower/cmsg.c u16 mtu = be16_to_cpu(msg->mtu); msg 189 drivers/net/ethernet/netronome/nfp/flower/cmsg.c struct nfp_flower_cmsg_portreify *msg; msg 192 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg = nfp_flower_cmsg_get_data(skb); msg 195 drivers/net/ethernet/netronome/nfp/flower/cmsg.c exists = !!nfp_app_dev_get(app, be32_to_cpu(msg->portnum), NULL); msg 199 drivers/net/ethernet/netronome/nfp/flower/cmsg.c be32_to_cpu(msg->portnum)); msg 211 drivers/net/ethernet/netronome/nfp/flower/cmsg.c struct nfp_flower_cmsg_merge_hint *msg; msg 215 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg = nfp_flower_cmsg_get_data(skb); msg 217 drivers/net/ethernet/netronome/nfp/flower/cmsg.c flow_cnt = msg->count + 1; msg 219 drivers/net/ethernet/netronome/nfp/flower/cmsg.c if (msg_len < struct_size(msg, flow, flow_cnt)) { msg 221 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg_len, struct_size(msg, flow, flow_cnt)); msg 233 drivers/net/ethernet/netronome/nfp/flower/cmsg.c u32 ctx = be32_to_cpu(msg->flow[i].host_ctx); msg 117 drivers/net/ethernet/netronome/nfp/flower/metadata.c unsigned char *msg; msg 121 drivers/net/ethernet/netronome/nfp/flower/metadata.c msg = nfp_flower_cmsg_get_data(skb); msg 125 drivers/net/ethernet/netronome/nfp/flower/metadata.c stats = (struct nfp_fl_stats_frame *)msg + i; msg 90 drivers/net/ethernet/netronome/nfp/flower/offload.c unsigned char *msg; msg 110 drivers/net/ethernet/netronome/nfp/flower/offload.c msg = nfp_flower_cmsg_get_data(skb); msg 111 drivers/net/ethernet/netronome/nfp/flower/offload.c memcpy(msg, &nfp_flow->meta, meta_len); msg 112 drivers/net/ethernet/netronome/nfp/flower/offload.c memcpy(&msg[meta_len], nfp_flow->unmasked_data, key_len); msg 113 drivers/net/ethernet/netronome/nfp/flower/offload.c memcpy(&msg[meta_len + key_len], nfp_flow->mask_data, mask_len); msg 114 drivers/net/ethernet/netronome/nfp/flower/offload.c memcpy(&msg[meta_len + key_len + mask_len], msg 185 drivers/net/ethernet/netronome/nfp/flower/qos_conf.c struct nfp_police_stats_reply *msg; msg 192 drivers/net/ethernet/netronome/nfp/flower/qos_conf.c msg = nfp_flower_cmsg_get_data(skb); msg 193 drivers/net/ethernet/netronome/nfp/flower/qos_conf.c netdev_port_id = be32_to_cpu(msg->head.port); msg 205 drivers/net/ethernet/netronome/nfp/flower/qos_conf.c curr_stats->pkts = be64_to_cpu(msg->pass_pkts) + msg 206 drivers/net/ethernet/netronome/nfp/flower/qos_conf.c be64_to_cpu(msg->drop_pkts); msg 207 drivers/net/ethernet/netronome/nfp/flower/qos_conf.c curr_stats->bytes = be64_to_cpu(msg->pass_bytes) + msg 208 drivers/net/ethernet/netronome/nfp/flower/qos_conf.c be64_to_cpu(msg->drop_bytes); msg 214 drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c unsigned char *msg; msg 220 drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c msg = nfp_flower_cmsg_get_data(skb); msg 221 drivers/net/ethernet/netronome/nfp/flower/tunnel_conf.c memcpy(msg, pdata, nfp_flower_cmsg_get_data_len(skb)); msg 18 drivers/net/ethernet/netronome/nfp/nfp_net_sriov.c nfp_net_sriov_check(struct nfp_app *app, int vf, u16 cap, const char *msg) msg 27 drivers/net/ethernet/netronome/nfp/nfp_net_sriov.c nfp_warn(app->pf->cpp, "ndo_set_vf_%s not supported\n", msg); msg 40 drivers/net/ethernet/netronome/nfp/nfp_net_sriov.c nfp_net_sriov_update(struct nfp_app *app, int vf, u16 update, const char *msg) msg 58 drivers/net/ethernet/netronome/nfp/nfp_net_sriov.c "FW refused VF %s update with errno: %d\n", msg, ret); msg 566 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c char *msg, *end; msg 568 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c msg = status_msg + msg 619 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c msg += snprintf(msg, end - msg, "0.0: General/MSI-X SRAM, "); msg 664 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c msg += snprintf(msg, end - msg, "0.1: PCIe XPB/MSI-X PBA, "); msg 683 drivers/net/ethernet/netronome/nfp/nfpcore/nfp6000_pcie.c msg += snprintf(msg, end - msg, msg 117 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c const char *msg; msg 224 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c nfp_err(state->cpp, "err msg: %s\n", nsp_errors[i].msg); msg 977 drivers/net/ethernet/pasemi/pasemi_mac.c int msg; msg 1023 drivers/net/ethernet/pasemi/pasemi_mac.c msg = mac->link != dev->phydev->link || flags != new_flags; msg 1032 drivers/net/ethernet/pasemi/pasemi_mac.c if (msg && netif_msg_link(mac)) msg 1386 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c netxen_handle_linkevent(struct netxen_adapter *adapter, nx_fw_msg_t *msg) msg 1396 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c cable_OUI = msg->body[1] & 0xffffffff; msg 1397 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c cable_len = (msg->body[1] >> 32) & 0xffff; msg 1398 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c link_speed = (msg->body[1] >> 48) & 0xffff; msg 1400 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c link_status = msg->body[2] & 0xff; msg 1401 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c duplex = (msg->body[2] >> 16) & 0xff; msg 1402 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c autoneg = (msg->body[2] >> 24) & 0xff; msg 1404 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c module = (msg->body[2] >> 8) & 0xff; msg 1429 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c nx_fw_msg_t msg; msg 1435 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c msg.words[i++] = le64_to_cpu(desc->status_desc_data[0]); msg 1436 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c msg.words[i++] = le64_to_cpu(desc->status_desc_data[1]); msg 1442 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c opcode = netxen_get_nic_msg_opcode(msg.body[0]); msg 1445 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c netxen_handle_linkevent(sds_ring->adapter, &msg); msg 1814 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c netxen_ctx_msg msg = 0; msg 1852 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c netxen_set_msg_peg_id(msg, NETXEN_RCV_PEG_DB_ID); msg 1853 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c netxen_set_msg_privid(msg); msg 1854 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c netxen_set_msg_count(msg, msg 1857 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c netxen_set_msg_ctxid(msg, adapter->portnum); msg 1858 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c netxen_set_msg_opcode(msg, NETXEN_RCV_PRODUCER(ringid)); msg 1860 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c NETXEN_RCV_PRODUCER_OFFSET), msg); msg 12900 drivers/net/ethernet/qlogic/qed/qed_hsi.h u32 msg[MFW_DRV_MSG_MAX_DWORDS(MFW_DRV_MSG_MAX)]; msg 1009 drivers/net/ethernet/qlogic/qed/qed_main.c p_hwfn->stream->msg, rc); msg 104 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h static inline void qlcnic_dcb_aen_handler(struct qlcnic_dcb *dcb, void *msg) msg 107 drivers/net/ethernet/qlogic/qlcnic/qlcnic_dcb.h dcb->ops->aen_handler(dcb, msg); msg 1033 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c struct qlcnic_fw_msg *msg) msg 1042 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c cable_OUI = msg->body[1] & 0xffffffff; msg 1043 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c cable_len = (msg->body[1] >> 32) & 0xffff; msg 1044 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c link_speed = (msg->body[1] >> 48) & 0xffff; msg 1046 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c link_status = msg->body[2] & 0xff; msg 1047 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c duplex = (msg->body[2] >> 16) & 0xff; msg 1048 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c autoneg = (msg->body[2] >> 24) & 0xff; msg 1049 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c lb_status = (msg->body[2] >> 32) & 0x3; msg 1051 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c module = (msg->body[2] >> 8) & 0xff; msg 1085 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c struct qlcnic_fw_msg msg; msg 1093 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c msg.words[i++] = le64_to_cpu(desc->status_desc_data[0]); msg 1094 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c msg.words[i++] = le64_to_cpu(desc->status_desc_data[1]); msg 1102 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c opcode = qlcnic_get_nic_msg_opcode(msg.body[0]); msg 1106 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c qlcnic_handle_linkevent(adapter, &msg); msg 1109 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c ret = (u32)(msg.body[1]); msg 1131 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c qlcnic_dcb_aen_handler(adapter->dcb, (void *)&msg); msg 1300 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c char *msg[] = {mesg, NULL}; msg 1397 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c kobject_uevent_env(&dev->kobj, KOBJ_CHANGE, msg); msg 49 drivers/net/ethernet/qualcomm/qca_7k.c struct spi_message msg; msg 54 drivers/net/ethernet/qualcomm/qca_7k.c spi_message_init(&msg); msg 64 drivers/net/ethernet/qualcomm/qca_7k.c spi_message_add_tail(&transfer[0], &msg); msg 67 drivers/net/ethernet/qualcomm/qca_7k.c spi_sync(qca->spi_dev, &msg); msg 68 drivers/net/ethernet/qualcomm/qca_7k.c spi_message_init(&msg); msg 70 drivers/net/ethernet/qualcomm/qca_7k.c spi_message_add_tail(&transfer[1], &msg); msg 71 drivers/net/ethernet/qualcomm/qca_7k.c ret = spi_sync(qca->spi_dev, &msg); msg 74 drivers/net/ethernet/qualcomm/qca_7k.c ret = msg.status; msg 89 drivers/net/ethernet/qualcomm/qca_7k.c struct spi_message msg; msg 94 drivers/net/ethernet/qualcomm/qca_7k.c spi_message_init(&msg); msg 104 drivers/net/ethernet/qualcomm/qca_7k.c spi_message_add_tail(&transfer[0], &msg); msg 106 drivers/net/ethernet/qualcomm/qca_7k.c spi_sync(qca->spi_dev, &msg); msg 107 drivers/net/ethernet/qualcomm/qca_7k.c spi_message_init(&msg); msg 109 drivers/net/ethernet/qualcomm/qca_7k.c spi_message_add_tail(&transfer[1], &msg); msg 110 drivers/net/ethernet/qualcomm/qca_7k.c ret = spi_sync(qca->spi_dev, &msg); msg 113 drivers/net/ethernet/qualcomm/qca_7k.c ret = msg.status; msg 108 drivers/net/ethernet/qualcomm/qca_spi.c struct spi_message msg; msg 113 drivers/net/ethernet/qualcomm/qca_spi.c spi_message_init(&msg); msg 121 drivers/net/ethernet/qualcomm/qca_spi.c spi_message_add_tail(&transfer[0], &msg); msg 122 drivers/net/ethernet/qualcomm/qca_spi.c spi_message_add_tail(&transfer[1], &msg); msg 123 drivers/net/ethernet/qualcomm/qca_spi.c ret = spi_sync(qca->spi_dev, &msg); msg 125 drivers/net/ethernet/qualcomm/qca_spi.c if (ret || (msg.actual_length != QCASPI_CMD_LEN + len)) { msg 136 drivers/net/ethernet/qualcomm/qca_spi.c struct spi_message msg; msg 141 drivers/net/ethernet/qualcomm/qca_spi.c spi_message_init(&msg); msg 146 drivers/net/ethernet/qualcomm/qca_spi.c spi_message_add_tail(&transfer, &msg); msg 147 drivers/net/ethernet/qualcomm/qca_spi.c ret = spi_sync(qca->spi_dev, &msg); msg 149 drivers/net/ethernet/qualcomm/qca_spi.c if (ret || (msg.actual_length != len)) { msg 160 drivers/net/ethernet/qualcomm/qca_spi.c struct spi_message msg; msg 166 drivers/net/ethernet/qualcomm/qca_spi.c spi_message_init(&msg); msg 174 drivers/net/ethernet/qualcomm/qca_spi.c spi_message_add_tail(&transfer[0], &msg); msg 175 drivers/net/ethernet/qualcomm/qca_spi.c spi_message_add_tail(&transfer[1], &msg); msg 176 drivers/net/ethernet/qualcomm/qca_spi.c ret = spi_sync(qca->spi_dev, &msg); msg 178 drivers/net/ethernet/qualcomm/qca_spi.c if (ret || (msg.actual_length != QCASPI_CMD_LEN + len)) { msg 189 drivers/net/ethernet/qualcomm/qca_spi.c struct spi_message msg; msg 194 drivers/net/ethernet/qualcomm/qca_spi.c spi_message_init(&msg); msg 199 drivers/net/ethernet/qualcomm/qca_spi.c spi_message_add_tail(&transfer, &msg); msg 200 drivers/net/ethernet/qualcomm/qca_spi.c ret = spi_sync(qca->spi_dev, &msg); msg 202 drivers/net/ethernet/qualcomm/qca_spi.c if (ret || (msg.actual_length != len)) { msg 214 drivers/net/ethernet/qualcomm/qca_spi.c struct spi_message msg; msg 220 drivers/net/ethernet/qualcomm/qca_spi.c spi_message_init(&msg); msg 225 drivers/net/ethernet/qualcomm/qca_spi.c spi_message_add_tail(&transfer, &msg); msg 227 drivers/net/ethernet/qualcomm/qca_spi.c ret = spi_sync(qca->spi_dev, &msg); msg 230 drivers/net/ethernet/qualcomm/qca_spi.c ret = msg.status; msg 780 drivers/net/ethernet/realtek/r8169_main.c const char *msg; msg 800 drivers/net/ethernet/realtek/r8169_main.c c->msg, !high, n, d); msg 837 drivers/net/ethernet/realtek/r8169_main.c .msg = #name \ msg 46 drivers/net/ethernet/sfc/falcon/selftest.c char msg[64]; msg 337 drivers/net/ethernet/sfc/falcon/selftest.c if (memcmp(&received->msg, &payload->msg, sizeof(received->msg)) != 0) { msg 402 drivers/net/ethernet/sfc/falcon/selftest.c memcpy(&payload->msg, payload_msg, sizeof(payload_msg)); msg 46 drivers/net/ethernet/sfc/selftest.c char msg[64]; msg 337 drivers/net/ethernet/sfc/selftest.c if (memcmp(&received->msg, &payload->msg, sizeof(received->msg)) != 0) { msg 402 drivers/net/ethernet/sfc/selftest.c memcpy(&payload->msg, payload_msg, sizeof(payload_msg)); msg 944 drivers/net/ethernet/sis/sis190.c const char *msg; msg 1010 drivers/net/ethernet/sis/sis190.c netif_info(tp, link, dev, "link on %s mode\n", p->msg); msg 1661 drivers/net/ethernet/toshiba/tc35815.c const char *msg = NULL; msg 1685 drivers/net/ethernet/toshiba/tc35815.c msg = "Excessive Collision."; msg 1689 drivers/net/ethernet/toshiba/tc35815.c msg = "Tx FIFO Underrun."; msg 1696 drivers/net/ethernet/toshiba/tc35815.c msg = "Tx FIFO Underrun.Change Tx threshold to max."; msg 1702 drivers/net/ethernet/toshiba/tc35815.c msg = "Excessive Deferral."; msg 1706 drivers/net/ethernet/toshiba/tc35815.c msg = "Lost Carrier Sense."; msg 1710 drivers/net/ethernet/toshiba/tc35815.c msg = "Late Collision."; msg 1714 drivers/net/ethernet/toshiba/tc35815.c msg = "Transmit Parity Error."; msg 1718 drivers/net/ethernet/toshiba/tc35815.c msg = "Signal Quality Error."; msg 1720 drivers/net/ethernet/toshiba/tc35815.c if (msg && netif_msg_tx_err(lp)) msg 1721 drivers/net/ethernet/toshiba/tc35815.c printk(KERN_WARNING "%s: %s (%#x)\n", dev->name, msg, status); msg 1169 drivers/net/ethernet/xscale/ixp4xx_eth.c struct msg msg; msg 1177 drivers/net/ethernet/xscale/ixp4xx_eth.c if (npe_recv_message(npe, &msg, "ETH_GET_STATUS")) { msg 1182 drivers/net/ethernet/xscale/ixp4xx_eth.c port->firmware[0] = msg.byte4; msg 1183 drivers/net/ethernet/xscale/ixp4xx_eth.c port->firmware[1] = msg.byte5; msg 1184 drivers/net/ethernet/xscale/ixp4xx_eth.c port->firmware[2] = msg.byte6; msg 1185 drivers/net/ethernet/xscale/ixp4xx_eth.c port->firmware[3] = msg.byte7; msg 1188 drivers/net/ethernet/xscale/ixp4xx_eth.c memset(&msg, 0, sizeof(msg)); msg 1189 drivers/net/ethernet/xscale/ixp4xx_eth.c msg.cmd = NPE_VLAN_SETRXQOSENTRY; msg 1190 drivers/net/ethernet/xscale/ixp4xx_eth.c msg.eth_id = port->id; msg 1191 drivers/net/ethernet/xscale/ixp4xx_eth.c msg.byte5 = port->plat->rxq | 0x80; msg 1192 drivers/net/ethernet/xscale/ixp4xx_eth.c msg.byte7 = port->plat->rxq << 4; msg 1194 drivers/net/ethernet/xscale/ixp4xx_eth.c msg.byte3 = i; msg 1195 drivers/net/ethernet/xscale/ixp4xx_eth.c if (npe_send_recv_message(port->npe, &msg, "ETH_SET_RXQ")) msg 1199 drivers/net/ethernet/xscale/ixp4xx_eth.c msg.cmd = NPE_EDB_SETPORTADDRESS; msg 1200 drivers/net/ethernet/xscale/ixp4xx_eth.c msg.eth_id = PHYSICAL_ID(port->id); msg 1201 drivers/net/ethernet/xscale/ixp4xx_eth.c msg.byte2 = dev->dev_addr[0]; msg 1202 drivers/net/ethernet/xscale/ixp4xx_eth.c msg.byte3 = dev->dev_addr[1]; msg 1203 drivers/net/ethernet/xscale/ixp4xx_eth.c msg.byte4 = dev->dev_addr[2]; msg 1204 drivers/net/ethernet/xscale/ixp4xx_eth.c msg.byte5 = dev->dev_addr[3]; msg 1205 drivers/net/ethernet/xscale/ixp4xx_eth.c msg.byte6 = dev->dev_addr[4]; msg 1206 drivers/net/ethernet/xscale/ixp4xx_eth.c msg.byte7 = dev->dev_addr[5]; msg 1207 drivers/net/ethernet/xscale/ixp4xx_eth.c if (npe_send_recv_message(port->npe, &msg, "ETH_SET_MAC")) msg 1210 drivers/net/ethernet/xscale/ixp4xx_eth.c memset(&msg, 0, sizeof(msg)); msg 1211 drivers/net/ethernet/xscale/ixp4xx_eth.c msg.cmd = NPE_FW_SETFIREWALLMODE; msg 1212 drivers/net/ethernet/xscale/ixp4xx_eth.c msg.eth_id = port->id; msg 1213 drivers/net/ethernet/xscale/ixp4xx_eth.c if (npe_send_recv_message(port->npe, &msg, "ETH_SET_FIREWALL_MODE")) msg 1274 drivers/net/ethernet/xscale/ixp4xx_eth.c struct msg msg; msg 1286 drivers/net/ethernet/xscale/ixp4xx_eth.c memset(&msg, 0, sizeof(msg)); msg 1287 drivers/net/ethernet/xscale/ixp4xx_eth.c msg.cmd = NPE_SETLOOPBACK_MODE; msg 1288 drivers/net/ethernet/xscale/ixp4xx_eth.c msg.eth_id = port->id; msg 1289 drivers/net/ethernet/xscale/ixp4xx_eth.c msg.byte3 = 1; msg 1290 drivers/net/ethernet/xscale/ixp4xx_eth.c if (npe_send_recv_message(port->npe, &msg, "ETH_ENABLE_LOOPBACK")) msg 1342 drivers/net/ethernet/xscale/ixp4xx_eth.c msg.byte3 = 0; msg 1343 drivers/net/ethernet/xscale/ixp4xx_eth.c if (npe_send_recv_message(port->npe, &msg, "ETH_DISABLE_LOOPBACK")) msg 659 drivers/net/fddi/skfp/h/cmtdef.h #define SMT_PANIC(smc,nr,msg) smt_panic (smc, msg) msg 663 drivers/net/fddi/skfp/h/cmtdef.h #define SMT_ERR_LOG(smc,nr,msg) SMT_PANIC (smc, nr, msg) msg 48 drivers/net/fddi/skfp/h/osdef1st.h #define SMT_PANIC(smc, nr, msg) printk(KERN_INFO "SMT PANIC: code: %d, msg: %s\n",nr,msg) msg 166 drivers/net/hamradio/6pack.c unsigned char *msg, *p = icp; msg 170 drivers/net/hamradio/6pack.c msg = "oversized transmit packet!"; msg 175 drivers/net/hamradio/6pack.c msg = "oversized transmit packet!"; msg 180 drivers/net/hamradio/6pack.c msg = "invalid KISS command"; msg 185 drivers/net/hamradio/6pack.c msg = "KISS control packet too long"; msg 190 drivers/net/hamradio/6pack.c msg = "bad AX.25 packet to transmit"; msg 241 drivers/net/hamradio/6pack.c printk(KERN_DEBUG "%s: %s - dropped.\n", sp->dev->name, msg); msg 476 drivers/net/hamradio/6pack.c char *msg; msg 481 drivers/net/hamradio/6pack.c msg = "Synchronizing with TNC"; msg 484 drivers/net/hamradio/6pack.c msg = "Lost synchronization with TNC\n"; msg 487 drivers/net/hamradio/6pack.c msg = "Found TNC"; msg 492 drivers/net/hamradio/6pack.c printk(KERN_INFO "%s: %s\n", sp->dev->name, msg); msg 792 drivers/net/hyperv/hyperv_net.h union nvsp_all_messages msg; msg 1637 drivers/net/hyperv/hyperv_net.h union rndis_message_container msg; msg 1645 drivers/net/hyperv/hyperv_net.h #define RNDIS_MESSAGE_SIZE(msg) \ msg 1646 drivers/net/hyperv/hyperv_net.h (sizeof(msg) + (sizeof(struct rndis_message) - \ msg 43 drivers/net/hyperv/netvsc.c init_pkt->msg.v4_msg.active_dp.active_datapath = msg 46 drivers/net/hyperv/netvsc.c init_pkt->msg.v4_msg.active_dp.active_datapath = msg 156 drivers/net/hyperv/netvsc.c revoke_packet->msg.v1_msg. msg 206 drivers/net/hyperv/netvsc.c revoke_packet->msg.v1_msg.revoke_send_buf.id = msg 344 drivers/net/hyperv/netvsc.c init_packet->msg.v1_msg.send_recv_buf. msg 346 drivers/net/hyperv/netvsc.c init_packet->msg.v1_msg. msg 366 drivers/net/hyperv/netvsc.c resp = &init_packet->msg.v1_msg.send_recv_buf_complete; msg 426 drivers/net/hyperv/netvsc.c init_packet->msg.v1_msg.send_send_buf.gpadl_handle = msg 428 drivers/net/hyperv/netvsc.c init_packet->msg.v1_msg.send_send_buf.id = NETVSC_SEND_BUFFER_ID; msg 447 drivers/net/hyperv/netvsc.c if (init_packet->msg.v1_msg. msg 451 drivers/net/hyperv/netvsc.c init_packet->msg.v1_msg. msg 458 drivers/net/hyperv/netvsc.c net_device->send_section_size = init_packet->msg. msg 499 drivers/net/hyperv/netvsc.c init_packet->msg.init_msg.init.min_protocol_ver = nvsp_ver; msg 500 drivers/net/hyperv/netvsc.c init_packet->msg.init_msg.init.max_protocol_ver = nvsp_ver; msg 515 drivers/net/hyperv/netvsc.c if (init_packet->msg.init_msg.init_complete.status != msg 525 drivers/net/hyperv/netvsc.c init_packet->msg.v2_msg.send_ndis_config.mtu = ndev->mtu + ETH_HLEN; msg 526 drivers/net/hyperv/netvsc.c init_packet->msg.v2_msg.send_ndis_config.capability.ieee8021q = 1; msg 529 drivers/net/hyperv/netvsc.c init_packet->msg.v2_msg.send_ndis_config.capability.sriov = 1; msg 532 drivers/net/hyperv/netvsc.c init_packet->msg.v2_msg.send_ndis_config.capability.teaming = 1; msg 536 drivers/net/hyperv/netvsc.c init_packet->msg.v2_msg.send_ndis_config.capability.rsc = 1; msg 587 drivers/net/hyperv/netvsc.c init_packet->msg.v1_msg. msg 590 drivers/net/hyperv/netvsc.c init_packet->msg.v1_msg. msg 812 drivers/net/hyperv/netvsc.c &nvmsg.msg.v1_msg.send_rndis_pkt; msg 1033 drivers/net/hyperv/netvsc.c struct recv_comp_msg msg = { msg 1042 drivers/net/hyperv/netvsc.c msg.status = rcd->status; msg 1043 drivers/net/hyperv/netvsc.c ret = vmbus_sendpacket(nvchan->channel, &msg, sizeof(msg), msg 1189 drivers/net/hyperv/netvsc.c count = nvmsg->msg.v5_msg.send_table.count; msg 1190 drivers/net/hyperv/netvsc.c offset = nvmsg->msg.v5_msg.send_table.offset; msg 1224 drivers/net/hyperv/netvsc.c net_device_ctx->vf_alloc = nvmsg->msg.v4_msg.vf_assoc.allocated; msg 1225 drivers/net/hyperv/netvsc.c net_device_ctx->vf_serial = nvmsg->msg.v4_msg.vf_assoc.serial; msg 226 drivers/net/hyperv/netvsc_drv.c static inline void *init_ppi_data(struct rndis_message *msg, msg 229 drivers/net/hyperv/netvsc_drv.c struct rndis_packet *rndis_pkt = &msg->msg.pkt; msg 589 drivers/net/hyperv/netvsc_drv.c rndis_msg->msg.pkt = (struct rndis_packet) { msg 718 drivers/net/hyperv/netvsc_drv.c struct rndis_indicate_status *indicate = &resp->msg.indicate_status; msg 44 drivers/net/hyperv/netvsc_trace.h const struct rndis_message *msg), msg 45 drivers/net/hyperv/netvsc_trace.h TP_ARGS(ndev, q, msg), msg 56 drivers/net/hyperv/netvsc_trace.h __entry->req_id = msg->msg.init_req.req_id; msg 57 drivers/net/hyperv/netvsc_trace.h __entry->msg_type = msg->ndis_msg_type; msg 58 drivers/net/hyperv/netvsc_trace.h __entry->msg_len = msg->msg_len; msg 67 drivers/net/hyperv/netvsc_trace.h const struct rndis_message *msg), msg 68 drivers/net/hyperv/netvsc_trace.h TP_ARGS(ndev, q, msg) msg 73 drivers/net/hyperv/netvsc_trace.h const struct rndis_message *msg), msg 74 drivers/net/hyperv/netvsc_trace.h TP_ARGS(ndev, q, msg) msg 117 drivers/net/hyperv/netvsc_trace.h const struct nvsp_message *msg), msg 118 drivers/net/hyperv/netvsc_trace.h TP_ARGS(ndev, msg), msg 125 drivers/net/hyperv/netvsc_trace.h __entry->msg_type = msg->hdr.msg_type; msg 160 drivers/net/hyperv/netvsc_trace.h const struct nvsp_message *msg), msg 161 drivers/net/hyperv/netvsc_trace.h TP_ARGS(ndev, chan, msg), msg 170 drivers/net/hyperv/netvsc_trace.h __entry->msg_type = msg->hdr.msg_type; msg 105 drivers/net/hyperv/rndis_filter.c set = &rndis_msg->msg.set_req; msg 138 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.pkt.data_offset, msg 139 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.pkt.data_len, msg 140 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.pkt.num_oob_data_elements, msg 141 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.pkt.oob_data_offset, msg 142 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.pkt.oob_data_len, msg 143 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.pkt.per_pkt_info_offset, msg 144 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.pkt.per_pkt_info_len); msg 153 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.init_complete.req_id, msg 154 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.init_complete.status, msg 155 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.init_complete.major_ver, msg 156 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.init_complete.minor_ver, msg 157 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.init_complete.dev_flags, msg 158 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.init_complete.max_xfer_size, msg 159 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.init_complete. msg 161 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.init_complete. msg 170 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.query_complete.req_id, msg 171 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.query_complete.status, msg 172 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.query_complete. msg 174 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.query_complete. msg 182 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.set_complete.req_id, msg 183 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.set_complete.status); msg 190 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.indicate_status.status, msg 191 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.indicate_status.status_buflen, msg 192 drivers/net/hyperv/rndis_filter.c rndis_msg->msg.indicate_status.status_buf_offset); msg 250 drivers/net/hyperv/rndis_filter.c query_complete = &request->response_msg.msg.query_complete; msg 284 drivers/net/hyperv/rndis_filter.c if (request->request_msg.msg.init_req.req_id msg 285 drivers/net/hyperv/rndis_filter.c == resp->msg.init_complete.req_id) { msg 298 drivers/net/hyperv/rndis_filter.c RNDIS_MSG_QUERY && request->request_msg.msg. msg 311 drivers/net/hyperv/rndis_filter.c request->response_msg.msg.reset_complete. msg 314 drivers/net/hyperv/rndis_filter.c request->response_msg.msg. msg 325 drivers/net/hyperv/rndis_filter.c resp->msg.init_complete.req_id, msg 381 drivers/net/hyperv/rndis_filter.c struct rndis_message *msg, msg 384 drivers/net/hyperv/rndis_filter.c struct rndis_packet *rndis_pkt = &msg->msg.pkt; msg 416 drivers/net/hyperv/rndis_filter.c data = (void *)msg + data_offset; msg 519 drivers/net/hyperv/rndis_filter.c query = &request->request_msg.msg.query_req; msg 571 drivers/net/hyperv/rndis_filter.c query_complete = &request->response_msg.msg.query_complete; msg 663 drivers/net/hyperv/rndis_filter.c set = &request->request_msg.msg.set_req; msg 699 drivers/net/hyperv/rndis_filter.c set_complete = &request->response_msg.msg.set_complete; msg 736 drivers/net/hyperv/rndis_filter.c set = &request->request_msg.msg.set_req; msg 754 drivers/net/hyperv/rndis_filter.c set_complete = &request->response_msg.msg.set_complete; msg 787 drivers/net/hyperv/rndis_filter.c set = &request->request_msg.msg.set_req; msg 821 drivers/net/hyperv/rndis_filter.c set_complete = &request->response_msg.msg.set_complete; msg 900 drivers/net/hyperv/rndis_filter.c set = &request->request_msg.msg.set_req; msg 962 drivers/net/hyperv/rndis_filter.c init = &request->request_msg.msg.init_req; msg 977 drivers/net/hyperv/rndis_filter.c init_complete = &request->response_msg.msg.init_complete; msg 1026 drivers/net/hyperv/rndis_filter.c halt = &request->request_msg.msg.halt_req; msg 1141 drivers/net/hyperv/rndis_filter.c init_packet->msg.v5_msg.subchn_req.op = NVSP_SUBCHANNEL_ALLOCATE; msg 1142 drivers/net/hyperv/rndis_filter.c init_packet->msg.v5_msg.subchn_req.num_subchannels = msg 1157 drivers/net/hyperv/rndis_filter.c if (init_packet->msg.v5_msg.subchn_comp.status != NVSP_STAT_SUCCESS) { msg 1163 drivers/net/hyperv/rndis_filter.c init_packet->msg.v5_msg.subchn_comp.num_subchannels; msg 364 drivers/net/ieee802154/adf7242.c struct spi_message msg; msg 375 drivers/net/ieee802154/adf7242.c spi_message_init(&msg); msg 376 drivers/net/ieee802154/adf7242.c spi_message_add_tail(&xfer_head, &msg); msg 377 drivers/net/ieee802154/adf7242.c spi_message_add_tail(&xfer_buf, &msg); msg 385 drivers/net/ieee802154/adf7242.c status = spi_sync(lp->spi, &msg); msg 396 drivers/net/ieee802154/adf7242.c struct spi_message msg; msg 407 drivers/net/ieee802154/adf7242.c spi_message_init(&msg); msg 408 drivers/net/ieee802154/adf7242.c spi_message_add_tail(&xfer_head, &msg); msg 409 drivers/net/ieee802154/adf7242.c spi_message_add_tail(&xfer_buf, &msg); msg 424 drivers/net/ieee802154/adf7242.c status = spi_sync(lp->spi, &msg); msg 434 drivers/net/ieee802154/adf7242.c struct spi_message msg; msg 450 drivers/net/ieee802154/adf7242.c spi_message_init(&msg); msg 451 drivers/net/ieee802154/adf7242.c spi_message_add_tail(&xfer, &msg); msg 453 drivers/net/ieee802154/adf7242.c status = spi_sync(lp->spi, &msg); msg 454 drivers/net/ieee802154/adf7242.c if (msg.status) msg 455 drivers/net/ieee802154/adf7242.c status = msg.status; msg 506 drivers/net/ieee802154/adf7242.c struct spi_message msg; msg 519 drivers/net/ieee802154/adf7242.c spi_message_init(&msg); msg 520 drivers/net/ieee802154/adf7242.c spi_message_add_tail(&xfer_head, &msg); msg 521 drivers/net/ieee802154/adf7242.c spi_message_add_tail(&xfer_buf, &msg); msg 530 drivers/net/ieee802154/adf7242.c status = spi_sync(lp->spi, &msg); msg 68 drivers/net/ieee802154/at86rf230.c struct spi_message msg; msg 381 drivers/net/ieee802154/at86rf230.c ctx->msg.complete = complete; msg 382 drivers/net/ieee802154/at86rf230.c rc = spi_async(lp->spi, &ctx->msg); msg 396 drivers/net/ieee802154/at86rf230.c ctx->msg.complete = complete; msg 397 drivers/net/ieee802154/at86rf230.c rc = spi_async(lp->spi, &ctx->msg); msg 752 drivers/net/ieee802154/at86rf230.c ctx->msg.complete = at86rf230_rx_read_frame_complete; msg 753 drivers/net/ieee802154/at86rf230.c rc = spi_async(lp->spi, &ctx->msg); msg 801 drivers/net/ieee802154/at86rf230.c spi_message_init(&state->msg); msg 802 drivers/net/ieee802154/at86rf230.c state->msg.context = state; msg 806 drivers/net/ieee802154/at86rf230.c spi_message_add_tail(&state->trx, &state->msg); msg 830 drivers/net/ieee802154/at86rf230.c ctx->msg.complete = at86rf230_irq_status; msg 831 drivers/net/ieee802154/at86rf230.c rc = spi_async(lp->spi, &ctx->msg); msg 871 drivers/net/ieee802154/at86rf230.c ctx->msg.complete = at86rf230_write_frame_complete; msg 872 drivers/net/ieee802154/at86rf230.c rc = spi_async(lp->spi, &ctx->msg); msg 306 drivers/net/ieee802154/ca8210.c struct spi_message msg; msg 941 drivers/net/ieee802154/ca8210.c spi_message_init(&cas_ctl->msg); msg 952 drivers/net/ieee802154/ca8210.c cas_ctl->msg.complete = ca8210_spi_transfer_complete; msg 953 drivers/net/ieee802154/ca8210.c cas_ctl->msg.context = cas_ctl; msg 957 drivers/net/ieee802154/ca8210.c &cas_ctl->msg msg 960 drivers/net/ieee802154/ca8210.c status = spi_async(spi, &cas_ctl->msg); msg 222 drivers/net/ieee802154/cc2520.c struct spi_message msg; msg 229 drivers/net/ieee802154/cc2520.c spi_message_init(&msg); msg 230 drivers/net/ieee802154/cc2520.c spi_message_add_tail(&xfer, &msg); msg 238 drivers/net/ieee802154/cc2520.c ret = spi_sync(priv->spi, &msg); msg 252 drivers/net/ieee802154/cc2520.c struct spi_message msg; msg 259 drivers/net/ieee802154/cc2520.c spi_message_init(&msg); msg 260 drivers/net/ieee802154/cc2520.c spi_message_add_tail(&xfer, &msg); msg 267 drivers/net/ieee802154/cc2520.c ret = spi_sync(priv->spi, &msg); msg 281 drivers/net/ieee802154/cc2520.c struct spi_message msg; msg 288 drivers/net/ieee802154/cc2520.c spi_message_init(&msg); msg 289 drivers/net/ieee802154/cc2520.c spi_message_add_tail(&xfer, &msg); msg 301 drivers/net/ieee802154/cc2520.c status = spi_sync(priv->spi, &msg); msg 302 drivers/net/ieee802154/cc2520.c if (msg.status) msg 303 drivers/net/ieee802154/cc2520.c status = msg.status; msg 314 drivers/net/ieee802154/cc2520.c struct spi_message msg; msg 331 drivers/net/ieee802154/cc2520.c spi_message_init(&msg); msg 332 drivers/net/ieee802154/cc2520.c spi_message_add_tail(&xfer_head, &msg); msg 333 drivers/net/ieee802154/cc2520.c spi_message_add_tail(&xfer_buf, &msg); msg 335 drivers/net/ieee802154/cc2520.c status = spi_sync(priv->spi, &msg); msg 337 drivers/net/ieee802154/cc2520.c if (msg.status) msg 338 drivers/net/ieee802154/cc2520.c status = msg.status; msg 348 drivers/net/ieee802154/cc2520.c struct spi_message msg; msg 360 drivers/net/ieee802154/cc2520.c spi_message_init(&msg); msg 361 drivers/net/ieee802154/cc2520.c spi_message_add_tail(&xfer1, &msg); msg 362 drivers/net/ieee802154/cc2520.c spi_message_add_tail(&xfer2, &msg); msg 368 drivers/net/ieee802154/cc2520.c status = spi_sync(priv->spi, &msg); msg 371 drivers/net/ieee802154/cc2520.c if (msg.status) msg 372 drivers/net/ieee802154/cc2520.c status = msg.status; msg 389 drivers/net/ieee802154/cc2520.c struct spi_message msg; msg 405 drivers/net/ieee802154/cc2520.c spi_message_init(&msg); msg 406 drivers/net/ieee802154/cc2520.c spi_message_add_tail(&xfer_head, &msg); msg 407 drivers/net/ieee802154/cc2520.c spi_message_add_tail(&xfer_len, &msg); msg 408 drivers/net/ieee802154/cc2520.c spi_message_add_tail(&xfer_buf, &msg); msg 415 drivers/net/ieee802154/cc2520.c status = spi_sync(priv->spi, &msg); msg 417 drivers/net/ieee802154/cc2520.c if (msg.status) msg 418 drivers/net/ieee802154/cc2520.c status = msg.status; msg 430 drivers/net/ieee802154/cc2520.c struct spi_message msg; msg 442 drivers/net/ieee802154/cc2520.c spi_message_init(&msg); msg 443 drivers/net/ieee802154/cc2520.c spi_message_add_tail(&xfer_head, &msg); msg 444 drivers/net/ieee802154/cc2520.c spi_message_add_tail(&xfer_buf, &msg); msg 452 drivers/net/ieee802154/cc2520.c status = spi_sync(priv->spi, &msg); msg 454 drivers/net/ieee802154/cc2520.c if (msg.status) msg 455 drivers/net/ieee802154/cc2520.c status = msg.status; msg 177 drivers/net/ieee802154/mac802154_hwsim.c static int hwsim_new_radio_nl(struct sk_buff *msg, struct genl_info *info) msg 182 drivers/net/ieee802154/mac802154_hwsim.c static int hwsim_del_radio_nl(struct sk_buff *msg, struct genl_info *info) msg 293 drivers/net/ieee802154/mac802154_hwsim.c static int hwsim_get_radio_nl(struct sk_buff *msg, struct genl_info *info) msg 414 drivers/net/ieee802154/mac802154_hwsim.c static int hwsim_new_edge_nl(struct sk_buff *msg, struct genl_info *info) msg 476 drivers/net/ieee802154/mac802154_hwsim.c static int hwsim_del_edge_nl(struct sk_buff *msg, struct genl_info *info) msg 522 drivers/net/ieee802154/mac802154_hwsim.c static int hwsim_set_edge_lqi(struct sk_buff *msg, struct genl_info *info) msg 735 drivers/net/netconsole.c const char *msg = "had an event"; msg 738 drivers/net/netconsole.c msg = "unregistered"; msg 741 drivers/net/netconsole.c msg = "released slaves"; msg 744 drivers/net/netconsole.c msg = "is joining a master device"; msg 748 drivers/net/netconsole.c dev->name, msg); msg 769 drivers/net/netconsole.c static void send_ext_msg_udp(struct netconsole_target *nt, const char *msg, msg 778 drivers/net/netconsole.c netpoll_send_udp(&nt->np, msg, msg_len); msg 783 drivers/net/netconsole.c header = msg; msg 784 drivers/net/netconsole.c body = memchr(msg, ';', msg_len); msg 819 drivers/net/netconsole.c static void write_ext_msg(struct console *con, const char *msg, msg 831 drivers/net/netconsole.c send_ext_msg_udp(nt, msg, len); msg 835 drivers/net/netconsole.c static void write_msg(struct console *con, const char *msg, unsigned int len) msg 857 drivers/net/netconsole.c tmp = msg; msg 28 drivers/net/netdevsim/netdevsim.h #define NSIM_EA(extack, msg) NL_SET_ERR_MSG_MOD((extack), msg) msg 62 drivers/net/phy/mdio-i2c.c struct i2c_msg msg; msg 73 drivers/net/phy/mdio-i2c.c msg.addr = i2c_mii_phy_addr(phy_id); msg 74 drivers/net/phy/mdio-i2c.c msg.flags = 0; msg 75 drivers/net/phy/mdio-i2c.c msg.len = 3; msg 76 drivers/net/phy/mdio-i2c.c msg.buf = data; msg 78 drivers/net/phy/mdio-i2c.c ret = i2c_transfer(i2c, &msg, 1); msg 464 drivers/net/ppp/ppp_deflate.c state->unit, r, (state->strm.msg? state->strm.msg: "")); msg 547 drivers/net/ppp/ppp_deflate.c state->unit, r, (state->strm.msg? state->strm.msg: "")); msg 2253 drivers/net/team/team.c struct sk_buff *msg; msg 2257 drivers/net/team/team.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 2258 drivers/net/team/team.c if (!msg) msg 2261 drivers/net/team/team.c hdr = genlmsg_put(msg, info->snd_portid, info->snd_seq, msg 2268 drivers/net/team/team.c genlmsg_end(msg, hdr); msg 2270 drivers/net/team/team.c return genlmsg_unicast(genl_info_net(info), msg, info->snd_portid); msg 2273 drivers/net/team/team.c nlmsg_free(msg); msg 310 drivers/net/usb/cdc_mbim.c struct nd_msg *msg = (void *)(iph + 1); msg 344 drivers/net/usb/cdc_mbim.c ipv6_stub->ndisc_send_na(netdev, &iph->saddr, &msg->target, msg 356 drivers/net/usb/cdc_mbim.c struct nd_msg *msg = (void *)(iph + 1); msg 360 drivers/net/usb/cdc_mbim.c msg->icmph.icmp6_code == 0 && msg 361 drivers/net/usb/cdc_mbim.c msg->icmph.icmp6_type == NDISC_NEIGHBOUR_SOLICITATION); msg 57 drivers/net/usb/rndis_host.c static void rndis_msg_indicate(struct usbnet *dev, struct rndis_indicate *msg, msg 64 drivers/net/usb/rndis_host.c dev->driver_info->indication(dev, msg, buflen); msg 66 drivers/net/usb/rndis_host.c u32 status = le32_to_cpu(msg->status); msg 176 drivers/net/usb/rndis_host.c struct rndis_keepalive_c *msg = (void *)buf; msg 178 drivers/net/usb/rndis_host.c msg->msg_type = cpu_to_le32(RNDIS_MSG_KEEPALIVE_C); msg 179 drivers/net/usb/rndis_host.c msg->msg_len = cpu_to_le32(sizeof *msg); msg 180 drivers/net/usb/rndis_host.c msg->status = cpu_to_le32(RNDIS_STATUS_SUCCESS); msg 186 drivers/net/usb/rndis_host.c msg, sizeof *msg, msg 1992 drivers/net/vxlan.c struct nd_msg *msg; msg 2000 drivers/net/vxlan.c msg = (struct nd_msg *)(iphdr + 1); msg 2003 drivers/net/vxlan.c ipv6_addr_is_multicast(&msg->target)) msg 2006 drivers/net/vxlan.c n = neigh_lookup(ipv6_stub->nd_tbl, &msg->target, dev); msg 2037 drivers/net/vxlan.c .sin6.sin6_addr = msg->target, msg 357 drivers/net/wan/ixp4xx_hss.c static void hss_npe_send(struct port *port, struct msg *msg, const char* what) msg 359 drivers/net/wan/ixp4xx_hss.c u32 *val = (u32*)msg; msg 360 drivers/net/wan/ixp4xx_hss.c if (npe_send_message(port->npe, msg, what)) { msg 369 drivers/net/wan/ixp4xx_hss.c struct msg msg; msg 372 drivers/net/wan/ixp4xx_hss.c memset(&msg, 0, sizeof(msg)); msg 373 drivers/net/wan/ixp4xx_hss.c msg.cmd = PORT_CONFIG_WRITE; msg 374 drivers/net/wan/ixp4xx_hss.c msg.hss_port = port->id; msg 377 drivers/net/wan/ixp4xx_hss.c msg.data32 >>= 2; msg 378 drivers/net/wan/ixp4xx_hss.c msg.data32 |= TDMMAP_HDLC << 30; msg 381 drivers/net/wan/ixp4xx_hss.c msg.index = HSS_CONFIG_TX_LUT + ((ch / 4) & ~3); msg 382 drivers/net/wan/ixp4xx_hss.c hss_npe_send(port, &msg, "HSS_SET_TX_LUT"); msg 384 drivers/net/wan/ixp4xx_hss.c msg.index += HSS_CONFIG_RX_LUT - HSS_CONFIG_TX_LUT; msg 385 drivers/net/wan/ixp4xx_hss.c hss_npe_send(port, &msg, "HSS_SET_RX_LUT"); msg 392 drivers/net/wan/ixp4xx_hss.c struct msg msg; msg 394 drivers/net/wan/ixp4xx_hss.c memset(&msg, 0, sizeof(msg)); msg 395 drivers/net/wan/ixp4xx_hss.c msg.cmd = PORT_CONFIG_WRITE; msg 396 drivers/net/wan/ixp4xx_hss.c msg.hss_port = port->id; msg 397 drivers/net/wan/ixp4xx_hss.c msg.index = HSS_CONFIG_TX_PCR; msg 398 drivers/net/wan/ixp4xx_hss.c msg.data32 = PCR_FRM_PULSE_DISABLED | PCR_MSB_ENDIAN | msg 401 drivers/net/wan/ixp4xx_hss.c msg.data32 |= PCR_SYNC_CLK_DIR_OUTPUT; msg 402 drivers/net/wan/ixp4xx_hss.c hss_npe_send(port, &msg, "HSS_SET_TX_PCR"); msg 404 drivers/net/wan/ixp4xx_hss.c msg.index = HSS_CONFIG_RX_PCR; msg 405 drivers/net/wan/ixp4xx_hss.c msg.data32 ^= PCR_TX_DATA_ENABLE | PCR_DCLK_EDGE_RISING; msg 406 drivers/net/wan/ixp4xx_hss.c hss_npe_send(port, &msg, "HSS_SET_RX_PCR"); msg 408 drivers/net/wan/ixp4xx_hss.c memset(&msg, 0, sizeof(msg)); msg 409 drivers/net/wan/ixp4xx_hss.c msg.cmd = PORT_CONFIG_WRITE; msg 410 drivers/net/wan/ixp4xx_hss.c msg.hss_port = port->id; msg 411 drivers/net/wan/ixp4xx_hss.c msg.index = HSS_CONFIG_CORE_CR; msg 412 drivers/net/wan/ixp4xx_hss.c msg.data32 = (port->loopback ? CCR_LOOPBACK : 0) | msg 414 drivers/net/wan/ixp4xx_hss.c hss_npe_send(port, &msg, "HSS_SET_CORE_CR"); msg 416 drivers/net/wan/ixp4xx_hss.c memset(&msg, 0, sizeof(msg)); msg 417 drivers/net/wan/ixp4xx_hss.c msg.cmd = PORT_CONFIG_WRITE; msg 418 drivers/net/wan/ixp4xx_hss.c msg.hss_port = port->id; msg 419 drivers/net/wan/ixp4xx_hss.c msg.index = HSS_CONFIG_CLOCK_CR; msg 420 drivers/net/wan/ixp4xx_hss.c msg.data32 = port->clock_reg; msg 421 drivers/net/wan/ixp4xx_hss.c hss_npe_send(port, &msg, "HSS_SET_CLOCK_CR"); msg 423 drivers/net/wan/ixp4xx_hss.c memset(&msg, 0, sizeof(msg)); msg 424 drivers/net/wan/ixp4xx_hss.c msg.cmd = PORT_CONFIG_WRITE; msg 425 drivers/net/wan/ixp4xx_hss.c msg.hss_port = port->id; msg 426 drivers/net/wan/ixp4xx_hss.c msg.index = HSS_CONFIG_TX_FCR; msg 427 drivers/net/wan/ixp4xx_hss.c msg.data16a = FRAME_OFFSET; msg 428 drivers/net/wan/ixp4xx_hss.c msg.data16b = FRAME_SIZE - 1; msg 429 drivers/net/wan/ixp4xx_hss.c hss_npe_send(port, &msg, "HSS_SET_TX_FCR"); msg 431 drivers/net/wan/ixp4xx_hss.c memset(&msg, 0, sizeof(msg)); msg 432 drivers/net/wan/ixp4xx_hss.c msg.cmd = PORT_CONFIG_WRITE; msg 433 drivers/net/wan/ixp4xx_hss.c msg.hss_port = port->id; msg 434 drivers/net/wan/ixp4xx_hss.c msg.index = HSS_CONFIG_RX_FCR; msg 435 drivers/net/wan/ixp4xx_hss.c msg.data16a = FRAME_OFFSET; msg 436 drivers/net/wan/ixp4xx_hss.c msg.data16b = FRAME_SIZE - 1; msg 437 drivers/net/wan/ixp4xx_hss.c hss_npe_send(port, &msg, "HSS_SET_RX_FCR"); msg 441 drivers/net/wan/ixp4xx_hss.c memset(&msg, 0, sizeof(msg)); msg 442 drivers/net/wan/ixp4xx_hss.c msg.cmd = PORT_CONFIG_LOAD; msg 443 drivers/net/wan/ixp4xx_hss.c msg.hss_port = port->id; msg 444 drivers/net/wan/ixp4xx_hss.c hss_npe_send(port, &msg, "HSS_LOAD_CONFIG"); msg 446 drivers/net/wan/ixp4xx_hss.c if (npe_recv_message(port->npe, &msg, "HSS_LOAD_CONFIG") || msg 448 drivers/net/wan/ixp4xx_hss.c msg.cmd != PORT_CONFIG_LOAD || msg.data32) { msg 454 drivers/net/wan/ixp4xx_hss.c npe_recv_message(port->npe, &msg, "FLUSH_IT"); msg 459 drivers/net/wan/ixp4xx_hss.c struct msg msg; msg 461 drivers/net/wan/ixp4xx_hss.c memset(&msg, 0, sizeof(msg)); msg 462 drivers/net/wan/ixp4xx_hss.c msg.cmd = PKT_PIPE_HDLC_CFG_WRITE; msg 463 drivers/net/wan/ixp4xx_hss.c msg.hss_port = port->id; msg 464 drivers/net/wan/ixp4xx_hss.c msg.data8a = port->hdlc_cfg; /* rx_cfg */ msg 465 drivers/net/wan/ixp4xx_hss.c msg.data8b = port->hdlc_cfg | (PKT_EXTRA_FLAGS << 3); /* tx_cfg */ msg 466 drivers/net/wan/ixp4xx_hss.c hss_npe_send(port, &msg, "HSS_SET_HDLC_CFG"); msg 471 drivers/net/wan/ixp4xx_hss.c struct msg msg; msg 473 drivers/net/wan/ixp4xx_hss.c memset(&msg, 0, sizeof(msg)); msg 474 drivers/net/wan/ixp4xx_hss.c msg.cmd = PORT_ERROR_READ; msg 475 drivers/net/wan/ixp4xx_hss.c msg.hss_port = port->id; msg 476 drivers/net/wan/ixp4xx_hss.c hss_npe_send(port, &msg, "PORT_ERROR_READ"); msg 477 drivers/net/wan/ixp4xx_hss.c if (npe_recv_message(port->npe, &msg, "PORT_ERROR_READ")) { msg 482 drivers/net/wan/ixp4xx_hss.c return msg.data32; msg 487 drivers/net/wan/ixp4xx_hss.c struct msg msg; msg 489 drivers/net/wan/ixp4xx_hss.c memset(&msg, 0, sizeof(msg)); msg 490 drivers/net/wan/ixp4xx_hss.c msg.cmd = PKT_PIPE_FLOW_ENABLE; msg 491 drivers/net/wan/ixp4xx_hss.c msg.hss_port = port->id; msg 492 drivers/net/wan/ixp4xx_hss.c msg.data32 = 0; msg 493 drivers/net/wan/ixp4xx_hss.c hss_npe_send(port, &msg, "HSS_ENABLE_PKT_PIPE"); msg 498 drivers/net/wan/ixp4xx_hss.c struct msg msg; msg 500 drivers/net/wan/ixp4xx_hss.c memset(&msg, 0, sizeof(msg)); msg 501 drivers/net/wan/ixp4xx_hss.c msg.cmd = PKT_PIPE_FLOW_DISABLE; msg 502 drivers/net/wan/ixp4xx_hss.c msg.hss_port = port->id; msg 503 drivers/net/wan/ixp4xx_hss.c hss_npe_send(port, &msg, "HSS_DISABLE_PKT_PIPE"); msg 509 drivers/net/wan/ixp4xx_hss.c struct msg msg; msg 521 drivers/net/wan/ixp4xx_hss.c memset(&msg, 0, sizeof(msg)); msg 522 drivers/net/wan/ixp4xx_hss.c msg.cmd = PKT_NUM_PIPES_WRITE; msg 523 drivers/net/wan/ixp4xx_hss.c msg.hss_port = port->id; msg 524 drivers/net/wan/ixp4xx_hss.c msg.data8a = PKT_NUM_PIPES; msg 525 drivers/net/wan/ixp4xx_hss.c hss_npe_send(port, &msg, "HSS_SET_PKT_PIPES"); msg 527 drivers/net/wan/ixp4xx_hss.c msg.cmd = PKT_PIPE_FIFO_SIZEW_WRITE; msg 528 drivers/net/wan/ixp4xx_hss.c msg.data8a = PKT_PIPE_FIFO_SIZEW; msg 529 drivers/net/wan/ixp4xx_hss.c hss_npe_send(port, &msg, "HSS_SET_PKT_FIFO"); msg 531 drivers/net/wan/ixp4xx_hss.c msg.cmd = PKT_PIPE_MODE_WRITE; msg 532 drivers/net/wan/ixp4xx_hss.c msg.data8a = NPE_PKT_MODE_HDLC; msg 535 drivers/net/wan/ixp4xx_hss.c hss_npe_send(port, &msg, "HSS_SET_PKT_MODE"); msg 537 drivers/net/wan/ixp4xx_hss.c msg.cmd = PKT_PIPE_RX_SIZE_WRITE; msg 538 drivers/net/wan/ixp4xx_hss.c msg.data16a = HDLC_MAX_MRU; /* including CRC */ msg 539 drivers/net/wan/ixp4xx_hss.c hss_npe_send(port, &msg, "HSS_SET_PKT_RX_SIZE"); msg 541 drivers/net/wan/ixp4xx_hss.c msg.cmd = PKT_PIPE_IDLE_PATTERN_WRITE; msg 542 drivers/net/wan/ixp4xx_hss.c msg.data32 = 0x7F7F7F7F; /* ??? FIXME */ msg 543 drivers/net/wan/ixp4xx_hss.c hss_npe_send(port, &msg, "HSS_SET_PKT_IDLE"); msg 65 drivers/net/wan/lmc/lmc_debug.c void lmc_trace(struct net_device *dev, char *msg){ msg 70 drivers/net/wan/lmc/lmc_debug.c printk("%s: * %s\n", dev->name, msg); msg 75 drivers/net/wan/lmc/lmc_debug.c printk("%s: %s\n", dev->name, msg); msg 51 drivers/net/wan/lmc/lmc_debug.h void lmc_trace(struct net_device *dev, char *msg); msg 247 drivers/net/wimax/i2400m/control.c char *msg; msg 295 drivers/net/wimax/i2400m/control.c str = ms_to_errno[status].msg; msg 510 drivers/net/wimax/i2400m/tx.c struct i2400m_msg_hdr *msg = i2400m->tx_buf + tx_in; msg 513 drivers/net/wimax/i2400m/tx.c BUG_ON(tail_room < sizeof(*msg)); msg 514 drivers/net/wimax/i2400m/tx.c msg->size = tail_room | I2400M_TX_SKIP; msg 2689 drivers/net/wireless/ath/ath10k/debug.c const char *msg, const char *prefix, msg 2697 drivers/net/wireless/ath/ath10k/debug.c if (msg) msg 2698 drivers/net/wireless/ath/ath10k/debug.c __ath10k_dbg(ar, mask, "%s\n", msg); msg 2715 drivers/net/wireless/ath/ath10k/debug.c trace_ath10k_log_dbg_dump(ar, msg ? msg : "", prefix ? prefix : "", msg 251 drivers/net/wireless/ath/ath10k/debug.h const char *msg, const char *prefix, msg 264 drivers/net/wireless/ath/ath10k/debug.h const char *msg, const char *prefix, msg 478 drivers/net/wireless/ath/ath10k/htc.c struct ath10k_htc_msg *msg = (struct ath10k_htc_msg *)skb->data; msg 480 drivers/net/wireless/ath/ath10k/htc.c switch (__le16_to_cpu(msg->hdr.message_id)) { msg 589 drivers/net/wireless/ath/ath10k/htc.c struct ath10k_htc_msg *msg; msg 619 drivers/net/wireless/ath/ath10k/htc.c if (htc->control_resp_len < sizeof(msg->hdr) + sizeof(msg->ready)) { msg 625 drivers/net/wireless/ath/ath10k/htc.c msg = (struct ath10k_htc_msg *)htc->control_resp_buffer; msg 626 drivers/net/wireless/ath/ath10k/htc.c message_id = __le16_to_cpu(msg->hdr.message_id); msg 633 drivers/net/wireless/ath/ath10k/htc.c htc->total_transmit_credits = __le16_to_cpu(msg->ready.credit_count); msg 634 drivers/net/wireless/ath/ath10k/htc.c htc->target_credit_size = __le16_to_cpu(msg->ready.credit_size); msg 651 drivers/net/wireless/ath/ath10k/htc.c sizeof(msg->hdr) + sizeof(msg->ready_ext)) { msg 653 drivers/net/wireless/ath/ath10k/htc.c min_t(u8, msg->ready_ext.max_msgs_per_htc_bundle, msg 668 drivers/net/wireless/ath/ath10k/htc.c struct ath10k_htc_msg *msg; msg 704 drivers/net/wireless/ath/ath10k/htc.c length = sizeof(msg->hdr) + sizeof(msg->connect_service); msg 708 drivers/net/wireless/ath/ath10k/htc.c msg = (struct ath10k_htc_msg *)skb->data; msg 709 drivers/net/wireless/ath/ath10k/htc.c msg->hdr.message_id = msg 720 drivers/net/wireless/ath/ath10k/htc.c req_msg = &msg->connect_service; msg 741 drivers/net/wireless/ath/ath10k/htc.c msg = (struct ath10k_htc_msg *)htc->control_resp_buffer; msg 742 drivers/net/wireless/ath/ath10k/htc.c resp_msg = &msg->connect_service_response; msg 743 drivers/net/wireless/ath/ath10k/htc.c message_id = __le16_to_cpu(msg->hdr.message_id); msg 747 drivers/net/wireless/ath/ath10k/htc.c (htc->control_resp_len < sizeof(msg->hdr) + msg 748 drivers/net/wireless/ath/ath10k/htc.c sizeof(msg->connect_service_response))) { msg 895 drivers/net/wireless/ath/ath10k/htc.c struct ath10k_htc_msg *msg; msg 901 drivers/net/wireless/ath/ath10k/htc.c skb_put(skb, sizeof(msg->hdr) + sizeof(msg->setup_complete_ext)); msg 904 drivers/net/wireless/ath/ath10k/htc.c msg = (struct ath10k_htc_msg *)skb->data; msg 905 drivers/net/wireless/ath/ath10k/htc.c msg->hdr.message_id = msg 910 drivers/net/wireless/ath/ath10k/htc.c msg->setup_complete_ext.flags = msg 912 drivers/net/wireless/ath/ath10k/htc.c msg->setup_complete_ext.max_msgs_per_bundled_recv = msg 226 drivers/net/wireless/ath/ath10k/htc.h struct ath10k_htc_msg msg; msg 55 drivers/net/wireless/ath/ath10k/trace.h __dynamic_array(char, msg, ATH10K_MSG_MAX) msg 60 drivers/net/wireless/ath/ath10k/trace.h WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg), msg 69 drivers/net/wireless/ath/ath10k/trace.h __get_str(msg) msg 95 drivers/net/wireless/ath/ath10k/trace.h __dynamic_array(char, msg, ATH10K_MSG_MAX) msg 101 drivers/net/wireless/ath/ath10k/trace.h WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg), msg 110 drivers/net/wireless/ath/ath10k/trace.h __get_str(msg) msg 115 drivers/net/wireless/ath/ath10k/trace.h TP_PROTO(struct ath10k *ar, const char *msg, const char *prefix, msg 118 drivers/net/wireless/ath/ath10k/trace.h TP_ARGS(ar, msg, prefix, buf, buf_len), msg 123 drivers/net/wireless/ath/ath10k/trace.h __string(msg, msg) msg 132 drivers/net/wireless/ath/ath10k/trace.h __assign_str(msg, msg); msg 143 drivers/net/wireless/ath/ath10k/trace.h __get_str(msg) msg 150 drivers/net/wireless/ath/ath6kl/debug.c const char *msg, const char *prefix, msg 154 drivers/net/wireless/ath/ath6kl/debug.c if (msg) msg 155 drivers/net/wireless/ath/ath6kl/debug.c ath6kl_dbg(mask, "%s\n", msg); msg 161 drivers/net/wireless/ath/ath6kl/debug.c trace_ath6kl_log_dbg_dump(msg ? msg : "", prefix ? prefix : "", msg 69 drivers/net/wireless/ath/ath6kl/debug.h const char *msg, const char *prefix, msg 94 drivers/net/wireless/ath/ath6kl/debug.h const char *msg, const char *prefix, msg 1470 drivers/net/wireless/ath/ath6kl/htc_mbox.c u32 lk_ahds[], int msg, msg 1481 drivers/net/wireless/ath/ath6kl/htc_mbox.c for (i = 0; i < msg; i++) { msg 256 drivers/net/wireless/ath/ath6kl/trace.h __dynamic_array(char, msg, ATH6KL_MSG_MAX) msg 259 drivers/net/wireless/ath/ath6kl/trace.h WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg), msg 264 drivers/net/wireless/ath/ath6kl/trace.h TP_printk("%s", __get_str(msg)) msg 287 drivers/net/wireless/ath/ath6kl/trace.h __dynamic_array(char, msg, ATH6KL_MSG_MAX) msg 291 drivers/net/wireless/ath/ath6kl/trace.h WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg), msg 296 drivers/net/wireless/ath/ath6kl/trace.h TP_printk("%s", __get_str(msg)) msg 300 drivers/net/wireless/ath/ath6kl/trace.h TP_PROTO(const char *msg, const char *prefix, msg 303 drivers/net/wireless/ath/ath6kl/trace.h TP_ARGS(msg, prefix, buf, buf_len), msg 306 drivers/net/wireless/ath/ath6kl/trace.h __string(msg, msg) msg 313 drivers/net/wireless/ath/ath6kl/trace.h __assign_str(msg, msg); msg 320 drivers/net/wireless/ath/ath6kl/trace.h "%s/%s\n", __get_str(prefix), __get_str(msg) msg 43 drivers/net/wireless/ath/trace.h __dynamic_array(char, msg, ATH_DBG_MAX_LEN) msg 49 drivers/net/wireless/ath/trace.h WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg), msg 59 drivers/net/wireless/ath/trace.h __get_str(msg) msg 1223 drivers/net/wireless/ath/wcn36xx/smd.c struct wcn36xx_hal_config_sta_req_msg msg; msg 1228 drivers/net/wireless/ath/wcn36xx/smd.c INIT_HAL_MSG(msg, WCN36XX_HAL_CONFIG_STA_REQ); msg 1230 drivers/net/wireless/ath/wcn36xx/smd.c sta_params = &msg.sta_params; msg 1235 drivers/net/wireless/ath/wcn36xx/smd.c ret = wcn36xx_smd_config_sta_v1(wcn, &msg); msg 1237 drivers/net/wireless/ath/wcn36xx/smd.c PREPARE_HAL_BUF(wcn->hal_buf, msg); msg 1245 drivers/net/wireless/ath/wcn36xx/smd.c ret = wcn36xx_smd_send_and_wait(wcn, msg.header.len); msg 1431 drivers/net/wireless/ath/wcn36xx/smd.c struct wcn36xx_hal_config_bss_req_msg *msg; msg 1438 drivers/net/wireless/ath/wcn36xx/smd.c msg = kzalloc(sizeof(*msg), GFP_KERNEL); msg 1439 drivers/net/wireless/ath/wcn36xx/smd.c if (!msg) { msg 1443 drivers/net/wireless/ath/wcn36xx/smd.c INIT_HAL_MSG((*msg), WCN36XX_HAL_CONFIG_BSS_REQ); msg 1445 drivers/net/wireless/ath/wcn36xx/smd.c bss = &msg->bss_params; msg 1540 drivers/net/wireless/ath/wcn36xx/smd.c ret = wcn36xx_smd_config_bss_v1(wcn, msg); msg 1542 drivers/net/wireless/ath/wcn36xx/smd.c PREPARE_HAL_BUF(wcn->hal_buf, (*msg)); msg 1544 drivers/net/wireless/ath/wcn36xx/smd.c ret = wcn36xx_smd_send_and_wait(wcn, msg->header.len); msg 1560 drivers/net/wireless/ath/wcn36xx/smd.c kfree(msg); msg 1679 drivers/net/wireless/ath/wcn36xx/smd.c struct wcn36xx_hal_send_probe_resp_req_msg msg; msg 1683 drivers/net/wireless/ath/wcn36xx/smd.c INIT_HAL_MSG(msg, WCN36XX_HAL_UPDATE_PROBE_RSP_TEMPLATE_REQ); msg 1692 drivers/net/wireless/ath/wcn36xx/smd.c msg.probe_resp_template_len = skb->len; msg 1693 drivers/net/wireless/ath/wcn36xx/smd.c memcpy(&msg.probe_resp_template, skb->data, skb->len); msg 1695 drivers/net/wireless/ath/wcn36xx/smd.c memcpy(msg.bssid, vif->addr, ETH_ALEN); msg 1697 drivers/net/wireless/ath/wcn36xx/smd.c PREPARE_HAL_BUF(wcn->hal_buf, msg); msg 1701 drivers/net/wireless/ath/wcn36xx/smd.c msg.probe_resp_template_len, msg.bssid); msg 1703 drivers/net/wireless/ath/wcn36xx/smd.c ret = wcn36xx_smd_send_and_wait(wcn, msg.header.len); msg 2535 drivers/net/wireless/ath/wcn36xx/smd.c memcpy(msg_ind->msg, buf, len); msg 2574 drivers/net/wireless/ath/wcn36xx/smd.c msg_header = (struct wcn36xx_hal_msg_header *)hal_ind_msg->msg; msg 2583 drivers/net/wireless/ath/wcn36xx/smd.c hal_ind_msg->msg, msg 2588 drivers/net/wireless/ath/wcn36xx/smd.c hal_ind_msg->msg, msg 2593 drivers/net/wireless/ath/wcn36xx/smd.c hal_ind_msg->msg, msg 2598 drivers/net/wireless/ath/wcn36xx/smd.c hal_ind_msg->msg, msg 2602 drivers/net/wireless/ath/wcn36xx/smd.c wcn36xx_smd_hw_scan_ind(wcn, hal_ind_msg->msg, msg 2628 drivers/net/wireless/ath/wcn36xx/smd.c struct wcn36xx_hal_ind_msg *msg, *tmp; msg 2633 drivers/net/wireless/ath/wcn36xx/smd.c list_for_each_entry_safe(msg, tmp, &wcn->hal_ind_queue, list) msg 2634 drivers/net/wireless/ath/wcn36xx/smd.c kfree(msg); msg 50 drivers/net/wireless/ath/wcn36xx/smd.h u8 msg[]; msg 48 drivers/net/wireless/ath/wcn36xx/testmode.c struct ftm_rsp_msg *msg, *rsp = NULL; msg 56 drivers/net/wireless/ath/wcn36xx/testmode.c msg = (struct ftm_rsp_msg *)buf; msg 60 drivers/net/wireless/ath/wcn36xx/testmode.c msg->msg_id, msg->msg_body_length, msg 65 drivers/net/wireless/ath/wcn36xx/testmode.c if (msg->msg_id == MSG_GET_BUILD_RELEASE_NUMBER) { msg 68 drivers/net/wireless/ath/wcn36xx/testmode.c msg->msg_response; msg 77 drivers/net/wireless/ath/wcn36xx/testmode.c rsp = msg; msg 82 drivers/net/wireless/ath/wcn36xx/testmode.c msg->msg_body_length); msg 84 drivers/net/wireless/ath/wcn36xx/testmode.c msg->resp_status = wcn36xx_smd_process_ptt_msg(wcn, vif, msg, msg 85 drivers/net/wireless/ath/wcn36xx/testmode.c msg->msg_body_length, (void *)(&rsp)); msg 89 drivers/net/wireless/ath/wcn36xx/testmode.c msg->resp_status); msg 97 drivers/net/wireless/ath/wcn36xx/testmode.c rsp = msg; msg 105 drivers/net/wireless/ath/wcn36xx/testmode.c nla_total_size(msg->msg_body_length)); msg 120 drivers/net/wireless/ath/wcn36xx/testmode.c if (rsp != msg) msg 2839 drivers/net/wireless/ath/wil6210/cfg80211.c struct sk_buff *msg; msg 2896 drivers/net/wireless/ath/wil6210/cfg80211.c msg = cfg80211_vendor_cmd_alloc_reply_skb( msg 2898 drivers/net/wireless/ath/wil6210/cfg80211.c if (!msg) msg 2901 drivers/net/wireless/ath/wil6210/cfg80211.c if (nla_put_u64_64bit(msg, QCA_ATTR_TSF, msg 2906 drivers/net/wireless/ath/wil6210/cfg80211.c nl_cfgs = nla_nest_start_noflag(msg, QCA_ATTR_DMG_RF_SECTOR_CFG); msg 2912 drivers/net/wireless/ath/wil6210/cfg80211.c nl_cfg = nla_nest_start_noflag(msg, i); msg 2916 drivers/net/wireless/ath/wil6210/cfg80211.c if (nla_put_u8(msg, QCA_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX, msg 2918 drivers/net/wireless/ath/wil6210/cfg80211.c nla_put_u32(msg, QCA_ATTR_DMG_RF_SECTOR_CFG_ETYPE0, msg 2920 drivers/net/wireless/ath/wil6210/cfg80211.c nla_put_u32(msg, QCA_ATTR_DMG_RF_SECTOR_CFG_ETYPE1, msg 2922 drivers/net/wireless/ath/wil6210/cfg80211.c nla_put_u32(msg, QCA_ATTR_DMG_RF_SECTOR_CFG_ETYPE2, msg 2924 drivers/net/wireless/ath/wil6210/cfg80211.c nla_put_u32(msg, QCA_ATTR_DMG_RF_SECTOR_CFG_PSH_HI, msg 2926 drivers/net/wireless/ath/wil6210/cfg80211.c nla_put_u32(msg, QCA_ATTR_DMG_RF_SECTOR_CFG_PSH_LO, msg 2928 drivers/net/wireless/ath/wil6210/cfg80211.c nla_put_u32(msg, QCA_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16, msg 2931 drivers/net/wireless/ath/wil6210/cfg80211.c nla_nest_end(msg, nl_cfg); msg 2934 drivers/net/wireless/ath/wil6210/cfg80211.c nla_nest_end(msg, nl_cfgs); msg 2935 drivers/net/wireless/ath/wil6210/cfg80211.c rc = cfg80211_vendor_cmd_reply(msg); msg 2938 drivers/net/wireless/ath/wil6210/cfg80211.c kfree_skb(msg); msg 3071 drivers/net/wireless/ath/wil6210/cfg80211.c struct sk_buff *msg; msg 3123 drivers/net/wireless/ath/wil6210/cfg80211.c msg = cfg80211_vendor_cmd_alloc_reply_skb( msg 3125 drivers/net/wireless/ath/wil6210/cfg80211.c if (!msg) msg 3128 drivers/net/wireless/ath/wil6210/cfg80211.c if (nla_put_u64_64bit(msg, QCA_ATTR_TSF, msg 3131 drivers/net/wireless/ath/wil6210/cfg80211.c nla_put_u16(msg, QCA_ATTR_DMG_RF_SECTOR_INDEX, msg 3135 drivers/net/wireless/ath/wil6210/cfg80211.c rc = cfg80211_vendor_cmd_reply(msg); msg 3138 drivers/net/wireless/ath/wil6210/cfg80211.c kfree_skb(msg); msg 32 drivers/net/wireless/ath/wil6210/fw_inc.c u32 size, const char *msg) msg 36 drivers/net/wireless/ath/wil6210/fw_inc.c wil_err_fw(wil, "bad %s: 0x%08x\n", msg, le32_to_cpu(val)); msg 84 drivers/net/wireless/ath/wil6210/trace.h __dynamic_array(char, msg, WIL6210_MSG_MAX) msg 87 drivers/net/wireless/ath/wil6210/trace.h WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg), msg 92 drivers/net/wireless/ath/wil6210/trace.h TP_printk("%s", __get_str(msg)) msg 193 drivers/net/wireless/ath/wil6210/trace.h void *msg), msg 194 drivers/net/wireless/ath/wil6210/trace.h TP_ARGS(wil, use_compressed, buff_id, msg), msg 208 drivers/net/wireless/ath/wil6210/trace.h __entry->len = wil_rx_status_get_length(msg); msg 209 drivers/net/wireless/ath/wil6210/trace.h __entry->mid = wil_rx_status_get_mid(msg); msg 210 drivers/net/wireless/ath/wil6210/trace.h __entry->cid = wil_rx_status_get_cid(msg); msg 211 drivers/net/wireless/ath/wil6210/trace.h __entry->tid = wil_rx_status_get_tid(msg); msg 213 drivers/net/wireless/ath/wil6210/trace.h msg); msg 214 drivers/net/wireless/ath/wil6210/trace.h __entry->subtype = wil_rx_status_get_fc1(wil, msg); msg 215 drivers/net/wireless/ath/wil6210/trace.h __entry->seq = wil_rx_status_get_seq(wil, msg); msg 216 drivers/net/wireless/ath/wil6210/trace.h __entry->mcs = wil_rx_status_get_mcs(msg); msg 265 drivers/net/wireless/ath/wil6210/trace.h TP_PROTO(struct wil_ring_tx_status *msg, u16 index, msg 267 drivers/net/wireless/ath/wil6210/trace.h TP_ARGS(msg, index, len), msg 278 drivers/net/wireless/ath/wil6210/trace.h __entry->num_descs = msg->num_descriptors; msg 279 drivers/net/wireless/ath/wil6210/trace.h __entry->ring_id = msg->ring_id; msg 280 drivers/net/wireless/ath/wil6210/trace.h __entry->status = msg->status; msg 281 drivers/net/wireless/ath/wil6210/trace.h __entry->mcs = wil_tx_status_get_mcs(msg); msg 225 drivers/net/wireless/ath/wil6210/txrx_edma.c void *msg) msg 234 drivers/net/wireless/ath/wil6210/txrx_edma.c memcpy(msg, (void *)_msg, sring->elem_size); msg 588 drivers/net/wireless/ath/wil6210/txrx_edma.c void *msg = &msg1; msg 597 drivers/net/wireless/ath/wil6210/txrx_edma.c wil_get_next_rx_status_msg(sring, &dr_bit, msg); msg 768 drivers/net/wireless/ath/wil6210/txrx_edma.c static int wil_check_bar(struct wil6210_priv *wil, void *msg, int cid, msg 778 drivers/net/wireless/ath/wil6210/txrx_edma.c ftype = wil_rx_status_get_frame_type(wil, msg); msg 782 drivers/net/wireless/ath/wil6210/txrx_edma.c fc1 = wil_rx_status_get_fc1(wil, msg); msg 783 drivers/net/wireless/ath/wil6210/txrx_edma.c mid = wil_rx_status_get_mid(msg); msg 784 drivers/net/wireless/ath/wil6210/txrx_edma.c tid = wil_rx_status_get_tid(msg); msg 785 drivers/net/wireless/ath/wil6210/txrx_edma.c seq = le16_to_cpu(wil_rx_status_get_seq(wil, msg)); msg 815 drivers/net/wireless/ath/wil6210/txrx_edma.c (const void *)msg, sz, false); msg 828 drivers/net/wireless/ath/wil6210/txrx_edma.c void *msg = wil_skb_rxstatus(skb); msg 830 drivers/net/wireless/ath/wil6210/txrx_edma.c l2_rx_status = wil_rx_status_get_l2_rx_status(msg); msg 858 drivers/net/wireless/ath/wil6210/txrx_edma.c skb->ip_summed = wil_rx_status_get_checksum(msg, stats); msg 868 drivers/net/wireless/ath/wil6210/txrx_edma.c void *msg = &msg1; msg 888 drivers/net/wireless/ath/wil6210/txrx_edma.c wil_get_next_rx_status_msg(sring, &dr_bit, msg); msg 895 drivers/net/wireless/ath/wil6210/txrx_edma.c buff_id = le16_to_cpu(wil_rx_status_get_buff_id(msg)); msg 910 drivers/net/wireless/ath/wil6210/txrx_edma.c *(struct wil_rx_status_extended *)msg = *s; msg 911 drivers/net/wireless/ath/wil6210/txrx_edma.c buff_id = le16_to_cpu(wil_rx_status_get_buff_id(msg)); msg 942 drivers/net/wireless/ath/wil6210/txrx_edma.c dmalen = le16_to_cpu(wil_rx_status_get_length(msg)); msg 945 drivers/net/wireless/ath/wil6210/txrx_edma.c msg); msg 949 drivers/net/wireless/ath/wil6210/txrx_edma.c (const void *)msg, wil->use_compressed_rx_status ? msg 957 drivers/net/wireless/ath/wil6210/txrx_edma.c eop = wil_rx_status_get_eop(msg); msg 959 drivers/net/wireless/ath/wil6210/txrx_edma.c cid = wil_rx_status_get_cid(msg); msg 1029 drivers/net/wireless/ath/wil6210/txrx_edma.c stats->last_mcs_rx = wil_rx_status_get_mcs(msg); msg 1033 drivers/net/wireless/ath/wil6210/txrx_edma.c stats->last_cb_mode_rx = wil_rx_status_get_cb_mode(msg); msg 1037 drivers/net/wireless/ath/wil6210/txrx_edma.c wil_check_bar(wil, msg, cid, skb, stats) == -EAGAIN) { msg 1045 drivers/net/wireless/ath/wil6210/txrx_edma.c data_offset = wil_rx_status_get_data_offset(msg); msg 1062 drivers/net/wireless/ath/wil6210/txrx_edma.c memcpy(s, msg, sring->elem_size); msg 1095 drivers/net/wireless/ath/wil6210/txrx_edma.c void *msg = wil_skb_rxstatus(skb); msg 1096 drivers/net/wireless/ath/wil6210/txrx_edma.c int mid = wil_rx_status_get_mid(msg); msg 1145 drivers/net/wireless/ath/wil6210/txrx_edma.c struct wil_ring_tx_status *msg) msg 1153 drivers/net/wireless/ath/wil6210/txrx_edma.c *msg = *_msg; msg 1176 drivers/net/wireless/ath/wil6210/txrx_edma.c struct wil_ring_tx_status msg; msg 1181 drivers/net/wireless/ath/wil6210/txrx_edma.c wil_get_next_tx_status_msg(sring, &dr_bit, &msg); msg 1185 drivers/net/wireless/ath/wil6210/txrx_edma.c num_descs = msg.num_descriptors; msg 1192 drivers/net/wireless/ath/wil6210/txrx_edma.c ring_id = msg.ring_id; msg 1239 drivers/net/wireless/ath/wil6210/txrx_edma.c trace_wil6210_tx_status(&msg, ring->swtail, dmalen); msg 1243 drivers/net/wireless/ath/wil6210/txrx_edma.c msg.status); msg 1245 drivers/net/wireless/ath/wil6210/txrx_edma.c (const void *)&msg, sizeof(msg), msg 1253 drivers/net/wireless/ath/wil6210/txrx_edma.c if (likely(msg.status == 0)) { msg 1272 drivers/net/wireless/ath/wil6210/txrx_edma.c wil_consume_skb(skb, msg.status == 0); msg 1304 drivers/net/wireless/ath/wil6210/txrx_edma.c wil_get_next_tx_status_msg(sring, &dr_bit, &msg); msg 358 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline __le16 wil_rx_status_get_length(void *msg) msg 360 drivers/net/wireless/ath/wil6210/txrx_edma.h return ((struct wil_rx_status_compressed *)msg)->length; msg 363 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline u8 wil_rx_status_get_mcs(void *msg) msg 365 drivers/net/wireless/ath/wil6210/txrx_edma.h return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d1, msg 369 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline u8 wil_rx_status_get_cb_mode(void *msg) msg 371 drivers/net/wireless/ath/wil6210/txrx_edma.h return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d1, msg 375 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline u16 wil_rx_status_get_flow_id(void *msg) msg 377 drivers/net/wireless/ath/wil6210/txrx_edma.h return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, msg 381 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline u8 wil_rx_status_get_mcast(void *msg) msg 383 drivers/net/wireless/ath/wil6210/txrx_edma.h return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, msg 397 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline u8 wil_rx_status_get_cid(void *msg) msg 399 drivers/net/wireless/ath/wil6210/txrx_edma.h u16 val = wil_rx_status_get_flow_id(msg); msg 411 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline u8 wil_rx_status_get_tid(void *msg) msg 413 drivers/net/wireless/ath/wil6210/txrx_edma.h u16 val = wil_rx_status_get_flow_id(msg); msg 424 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline int wil_rx_status_get_eop(void *msg) /* EoP = End of Packet */ msg 426 drivers/net/wireless/ath/wil6210/txrx_edma.h return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, msg 436 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline __le16 wil_rx_status_get_buff_id(void *msg) msg 438 drivers/net/wireless/ath/wil6210/txrx_edma.h return ((struct wil_rx_status_compressed *)msg)->buff_id; msg 441 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline u8 wil_rx_status_get_data_offset(void *msg) msg 443 drivers/net/wireless/ath/wil6210/txrx_edma.h u8 val = WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d1, msg 454 drivers/net/wireless/ath/wil6210/txrx_edma.h void *msg) msg 459 drivers/net/wireless/ath/wil6210/txrx_edma.h return WIL_GET_BITS(((struct wil_rx_status_extended *)msg)->ext.d1, msg 463 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline int wil_rx_status_get_fc1(struct wil6210_priv *wil, void *msg) msg 468 drivers/net/wireless/ath/wil6210/txrx_edma.h return WIL_GET_BITS(((struct wil_rx_status_extended *)msg)->ext.d1, msg 472 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline __le16 wil_rx_status_get_seq(struct wil6210_priv *wil, void *msg) msg 477 drivers/net/wireless/ath/wil6210/txrx_edma.h return ((struct wil_rx_status_extended *)msg)->ext.seq_num; msg 480 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline u8 wil_rx_status_get_retry(void *msg) msg 486 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline int wil_rx_status_get_mid(void *msg) msg 488 drivers/net/wireless/ath/wil6210/txrx_edma.h if (!(((struct wil_rx_status_compressed *)msg)->d0 & msg 492 drivers/net/wireless/ath/wil6210/txrx_edma.h return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, msg 496 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline int wil_rx_status_get_error(void *msg) msg 498 drivers/net/wireless/ath/wil6210/txrx_edma.h return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, msg 502 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline int wil_rx_status_get_l2_rx_status(void *msg) msg 504 drivers/net/wireless/ath/wil6210/txrx_edma.h return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, msg 508 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline int wil_rx_status_get_l3_rx_status(void *msg) msg 510 drivers/net/wireless/ath/wil6210/txrx_edma.h return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, msg 514 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline int wil_rx_status_get_l4_rx_status(void *msg) msg 516 drivers/net/wireless/ath/wil6210/txrx_edma.h return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, msg 534 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline int wil_rx_status_get_checksum(void *msg, msg 537 drivers/net/wireless/ath/wil6210/txrx_edma.h int l3_rx_status = wil_rx_status_get_l3_rx_status(msg); msg 538 drivers/net/wireless/ath/wil6210/txrx_edma.h int l4_rx_status = wil_rx_status_get_l4_rx_status(msg); msg 559 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline int wil_rx_status_get_security(void *msg) msg 561 drivers/net/wireless/ath/wil6210/txrx_edma.h return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d0, msg 565 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline u8 wil_rx_status_get_key_id(void *msg) msg 567 drivers/net/wireless/ath/wil6210/txrx_edma.h return WIL_GET_BITS(((struct wil_rx_status_compressed *)msg)->d1, msg 571 drivers/net/wireless/ath/wil6210/txrx_edma.h static inline u8 wil_tx_status_get_mcs(struct wil_ring_tx_status *msg) msg 573 drivers/net/wireless/ath/wil6210/txrx_edma.h return WIL_GET_BITS(msg->d2, 0, 4); msg 93 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c struct brcmf_proto_bcdc_dcmd msg; msg 111 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c struct brcmf_proto_bcdc_dcmd *msg = &bcdc->msg; msg 116 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c memset(msg, 0, sizeof(struct brcmf_proto_bcdc_dcmd)); msg 118 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c msg->cmd = cpu_to_le32(cmd); msg 119 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c msg->len = cpu_to_le32(len); msg 125 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c msg->flags = cpu_to_le32(flags); msg 130 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c len += sizeof(*msg); msg 135 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c return brcmf_bus_txctl(drvr->bus_if, (unsigned char *)&bcdc->msg, len); msg 146 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c ret = brcmf_bus_rxctl(drvr->bus_if, (unsigned char *)&bcdc->msg, msg 150 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c } while (BCDC_DCMD_ID(le32_to_cpu(bcdc->msg.flags)) != id); msg 160 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c struct brcmf_proto_bcdc_dcmd *msg = &bcdc->msg; msg 181 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c flags = le32_to_cpu(msg->flags); msg 208 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c *fwerr = le32_to_cpu(msg->status); msg 218 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c struct brcmf_proto_bcdc_dcmd *msg = &bcdc->msg; msg 233 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c flags = le32_to_cpu(msg->flags); msg 248 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c *fwerr = le32_to_cpu(msg->status); msg 451 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcdc.c if ((unsigned long)(&bcdc->msg + 1) != (unsigned long)bcdc->buf) { msg 74 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h int (*txctl)(struct device *dev, unsigned char *msg, uint len); msg 75 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h int (*rxctl)(struct device *dev, unsigned char *msg, uint len); msg 178 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h int brcmf_bus_txctl(struct brcmf_bus *bus, unsigned char *msg, uint len) msg 180 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h return bus->ops->txctl(bus->dev, msg, len); msg 184 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h int brcmf_bus_rxctl(struct brcmf_bus *bus, unsigned char *msg, uint len) msg 186 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bus.h return bus->ops->rxctl(bus->dev, msg, len); msg 400 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c code = get_unaligned_be32(&event_packet->msg.event_type); msg 401 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c datalen = get_unaligned_be32(&event_packet->msg.datalen); msg 422 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c event->ifidx = event_packet->msg.ifidx; msg 425 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.c memcpy(&event->emsg, &event_packet->msg, sizeof(event->emsg)); msg 246 drivers/net/wireless/broadcom/brcm80211/brcmfmac/fweh.h struct brcmf_event_msg_be msg; msg 83 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct msgbuf_common_hdr msg; msg 94 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct msgbuf_common_hdr msg; msg 106 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct msgbuf_common_hdr msg; msg 115 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct msgbuf_common_hdr msg; msg 129 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct msgbuf_common_hdr msg; msg 137 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct msgbuf_common_hdr msg; msg 144 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct msgbuf_common_hdr msg; msg 152 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct msgbuf_common_hdr msg; msg 161 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct msgbuf_common_hdr msg; msg 168 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct msgbuf_common_hdr msg; msg 180 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct msgbuf_common_hdr msg; msg 195 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct msgbuf_common_hdr msg; msg 202 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct msgbuf_common_hdr msg; msg 208 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct msgbuf_common_hdr msg; msg 214 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct msgbuf_common_hdr msg; msg 448 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c request->msg.msgtype = MSGBUF_TYPE_IOCTLPTR_REQ; msg 449 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c request->msg.ifidx = (u8)ifidx; msg 450 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c request->msg.flags = 0; msg 451 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c request->msg.request_id = cpu_to_le32(BRCMF_IOCTL_REQ_PKTID); msg 617 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c create->msg.msgtype = MSGBUF_TYPE_FLOW_RING_CREATE; msg 618 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c create->msg.ifidx = work->ifidx; msg 619 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c create->msg.request_id = 0; msg 739 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c tx_msghdr->msg.msgtype = MSGBUF_TYPE_TX_POST; msg 740 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c tx_msghdr->msg.request_id = cpu_to_le32(pktid + 1); msg 741 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c tx_msghdr->msg.ifidx = brcmf_flowring_ifidx_get(flow, flowid); msg 857 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c msgbuf->ioctl_resp_pktid = le32_to_cpu(ioctl_resp->msg.request_id); msg 877 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c idx = le32_to_cpu(tx_status->msg.request_id) - 1; msg 889 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c brcmf_txfinalize(brcmf_get_ifp(msgbuf->drvr, tx_status->msg.ifidx), msg 952 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c rx_bufpost->msg.msgtype = MSGBUF_TYPE_RXBUF_POST; msg 953 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c rx_bufpost->msg.request_id = cpu_to_le32(pktid); msg 1049 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c rx_bufpost->msg.msgtype = MSGBUF_TYPE_EVENT_BUF_POST; msg 1051 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c rx_bufpost->msg.msgtype = msg 1053 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c rx_bufpost->msg.request_id = cpu_to_le32(pktid); msg 1104 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c idx = le32_to_cpu(event->msg.request_id); msg 1121 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c ifp = brcmf_get_ifp(msgbuf->drvr, event->msg.ifidx); msg 1124 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c event->msg.ifidx); msg 1154 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c idx = le32_to_cpu(rx_complete->msg.request_id); msg 1183 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c ifp = brcmf_get_ifp(msgbuf->drvr, rx_complete->msg.ifidx); msg 1186 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c rx_complete->msg.ifidx); msg 1282 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c struct msgbuf_common_hdr *msg; msg 1284 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c msg = (struct msgbuf_common_hdr *)buf; msg 1285 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c switch (msg->msgtype) { msg 1322 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c bphy_err(drvr, "Unsupported msgtype %d\n", msg->msgtype); msg 1422 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c delete->msg.msgtype = MSGBUF_TYPE_FLOW_RING_DELETE; msg 1423 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c delete->msg.ifidx = ifidx; msg 1424 drivers/net/wireless/broadcom/brcm80211/brcmfmac/msgbuf.c delete->msg.request_id = 0; msg 1356 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static int brcmf_pcie_tx_ctlpkt(struct device *dev, unsigned char *msg, msg 1363 drivers/net/wireless/broadcom/brcm80211/brcmfmac/pcie.c static int brcmf_pcie_rx_ctlpkt(struct device *dev, unsigned char *msg, msg 2888 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_bus_txctl(struct device *dev, unsigned char *msg, uint msglen) msg 2900 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c bus->ctrl_frame_buf = msg; msg 3198 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c brcmf_sdio_bus_rxctl(struct device *dev, unsigned char *msg, uint msglen) msg 3217 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c memcpy(msg, bus->rxctl, min(msglen, rxlen)); msg 36 drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.h __dynamic_array(char, msg, MAX_MSG_LEN) msg 40 drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.h WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg), msg 44 drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.h TP_printk("%s: %s", __get_str(func), __get_str(msg)) msg 53 drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.h __dynamic_array(char, msg, MAX_MSG_LEN) msg 58 drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.h WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg), msg 62 drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.h TP_printk("%s: %s", __get_str(func), __get_str(msg)) msg 31 drivers/net/wireless/broadcom/brcm80211/brcmsmac/brcms_trace_brcmsmac_msg.h __dynamic_array(char, msg, MAX_MSG_LEN) msg 34 drivers/net/wireless/broadcom/brcm80211/brcmsmac/brcms_trace_brcmsmac_msg.h WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg), msg 38 drivers/net/wireless/broadcom/brcm80211/brcmsmac/brcms_trace_brcmsmac_msg.h TP_printk("%s", __get_str(msg)) msg 67 drivers/net/wireless/broadcom/brcm80211/brcmsmac/brcms_trace_brcmsmac_msg.h __dynamic_array(char, msg, MAX_MSG_LEN) msg 72 drivers/net/wireless/broadcom/brcm80211/brcmsmac/brcms_trace_brcmsmac_msg.h WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg), msg 76 drivers/net/wireless/broadcom/brcm80211/brcmsmac/brcms_trace_brcmsmac_msg.h TP_printk("%s: %s", __get_str(func), __get_str(msg)) msg 298 drivers/net/wireless/broadcom/brcm80211/brcmutil/utils.c void brcmu_prpkt(const char *msg, struct sk_buff *p0) msg 302 drivers/net/wireless/broadcom/brcm80211/brcmutil/utils.c if (msg && (msg[0] != '\0')) msg 303 drivers/net/wireless/broadcom/brcm80211/brcmutil/utils.c pr_debug("%s:\n", msg); msg 194 drivers/net/wireless/broadcom/brcm80211/include/brcmu_utils.h void brcmu_prpkt(const char *msg, struct sk_buff *p0); msg 26 drivers/net/wireless/intel/iwlwifi/iwl-devtrace-msg.h __dynamic_array(char, msg, MAX_MSG_LEN) msg 29 drivers/net/wireless/intel/iwlwifi/iwl-devtrace-msg.h WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg), msg 33 drivers/net/wireless/intel/iwlwifi/iwl-devtrace-msg.h TP_printk("%s", __get_str(msg)) msg 64 drivers/net/wireless/intel/iwlwifi/iwl-devtrace-msg.h __dynamic_array(char, msg, MAX_MSG_LEN) msg 70 drivers/net/wireless/intel/iwlwifi/iwl-devtrace-msg.h WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg), msg 74 drivers/net/wireless/intel/iwlwifi/iwl-devtrace-msg.h TP_printk("%s", __get_str(msg)) msg 81 drivers/net/wireless/intel/iwlwifi/iwl-devtrace-msg.h #define TRACE_INCLUDE_FILE iwl-devtrace-msg msg 313 drivers/net/wireless/intel/iwlwifi/mvm/time-event.c const char *msg; msg 316 drivers/net/wireless/intel/iwlwifi/mvm/time-event.c msg = "Time Event start notification failure"; msg 318 drivers/net/wireless/intel/iwlwifi/mvm/time-event.c msg = "Time Event end notification failure"; msg 320 drivers/net/wireless/intel/iwlwifi/mvm/time-event.c IWL_DEBUG_TE(mvm, "%s\n", msg); msg 322 drivers/net/wireless/intel/iwlwifi/mvm/time-event.c if (iwl_mvm_te_check_disconnect(mvm, te_data->vif, msg)) { msg 3466 drivers/net/wireless/mac80211_hwsim.c static int hwsim_new_radio_nl(struct sk_buff *msg, struct genl_info *info) msg 3591 drivers/net/wireless/mac80211_hwsim.c static int hwsim_del_radio_nl(struct sk_buff *msg, struct genl_info *info) msg 3638 drivers/net/wireless/mac80211_hwsim.c static int hwsim_get_radio_nl(struct sk_buff *msg, struct genl_info *info) msg 80 drivers/net/wireless/mediatek/mt76/mt76x02_mcu.c } __packed __aligned(4) msg = { msg 89 drivers/net/wireless/mediatek/mt76/mt76x02_mcu.c return mt76_mcu_send_msg(dev, CMD_FUN_SET_OP, &msg, sizeof(msg), wait); msg 98 drivers/net/wireless/mediatek/mt76/mt76x02_mcu.c } __packed __aligned(4) msg = { msg 103 drivers/net/wireless/mediatek/mt76/mt76x02_mcu.c return mt76_mcu_send_msg(dev, CMD_POWER_SAVING_OP, &msg, sizeof(msg), msg 113 drivers/net/wireless/mediatek/mt76/mt76x02_mcu.c } __packed __aligned(4) msg = { msg 123 drivers/net/wireless/mediatek/mt76/mt76x02_mcu.c ret = mt76_mcu_send_msg(dev, CMD_CALIBRATION_OP, &msg, sizeof(msg), msg 28 drivers/net/wireless/mediatek/mt76/mt76x2/mcu.c } __packed __aligned(4) msg = { msg 36 drivers/net/wireless/mediatek/mt76/mt76x2/mcu.c mt76_mcu_send_msg(dev, CMD_SWITCH_CHANNEL_OP, &msg, sizeof(msg), true); msg 40 drivers/net/wireless/mediatek/mt76/mt76x2/mcu.c msg.ext_chan = 0xe0 + bw_index; msg 41 drivers/net/wireless/mediatek/mt76/mt76x2/mcu.c return mt76_mcu_send_msg(dev, CMD_SWITCH_CHANNEL_OP, &msg, sizeof(msg), msg 56 drivers/net/wireless/mediatek/mt76/mt76x2/mcu.c } __packed __aligned(4) msg = { msg 66 drivers/net/wireless/mediatek/mt76/mt76x2/mcu.c msg.cfg = cpu_to_le32(val); msg 69 drivers/net/wireless/mediatek/mt76/mt76x2/mcu.c return mt76_mcu_send_msg(dev, CMD_LOAD_CR, &msg, sizeof(msg), true); msg 79 drivers/net/wireless/mediatek/mt76/mt76x2/mcu.c } __packed __aligned(4) msg = { msg 85 drivers/net/wireless/mediatek/mt76/mt76x2/mcu.c msg.channel |= cpu_to_le32(BIT(31)); msg 87 drivers/net/wireless/mediatek/mt76/mt76x2/mcu.c return mt76_mcu_send_msg(dev, CMD_INIT_GAIN_OP, &msg, sizeof(msg), msg 98 drivers/net/wireless/mediatek/mt76/mt76x2/mcu.c } __packed __aligned(4) msg = { msg 103 drivers/net/wireless/mediatek/mt76/mt76x2/mcu.c return mt76_mcu_send_msg(dev, CMD_CALIBRATION_OP, &msg, sizeof(msg), msg 160 drivers/net/wireless/mediatek/mt7601u/mcu.c } __packed __aligned(4) msg = { msg 165 drivers/net/wireless/mediatek/mt7601u/mcu.c skb = mt7601u_mcu_msg_alloc(&msg, sizeof(msg)); msg 197 drivers/net/wireless/mediatek/mt7601u/mcu.c } __packed __aligned(4) msg = { msg 202 drivers/net/wireless/mediatek/mt7601u/mcu.c skb = mt7601u_mcu_msg_alloc(&msg, sizeof(msg)); msg 2420 drivers/net/wireless/ray_cs.c struct ray_rx_msg *msg = (struct ray_rx_msg *) buff; msg 2428 drivers/net/wireless/ray_cs.c msg->var[0], msg->var[1], msg->var[2], msg->var[3], msg 2429 drivers/net/wireless/ray_cs.c msg->var[4], msg->var[5]); msg 2430 drivers/net/wireless/ray_cs.c if (msg->var[2] == 1) { msg 2433 drivers/net/wireless/ray_cs.c (local, msg->mac.addr_2, OPEN_AUTH_RESPONSE)) { msg 2435 drivers/net/wireless/ray_cs.c memcpy(local->auth_id, msg->mac.addr_2, msg 2443 drivers/net/wireless/ray_cs.c if (msg->var[2] == 2) { msg 2444 drivers/net/wireless/ray_cs.c if ((msg->var[3] | msg->var[4]) == 0) { msg 3013 drivers/net/wireless/rndis_wlan.c struct rndis_indicate *msg, int buflen) msg 3019 drivers/net/wireless/rndis_wlan.c le32_to_cpu(msg->offset); msg 3020 drivers/net/wireless/rndis_wlan.c len = le32_to_cpu(msg->length); msg 3034 drivers/net/wireless/rndis_wlan.c indication = (void *)((u8 *)msg + offset); msg 3064 drivers/net/wireless/rndis_wlan.c struct rndis_indicate *msg = ind; msg 3066 drivers/net/wireless/rndis_wlan.c switch (le32_to_cpu(msg->status)) { msg 3096 drivers/net/wireless/rndis_wlan.c rndis_wlan_media_specific_indication(usbdev, msg, buflen); msg 3101 drivers/net/wireless/rndis_wlan.c le32_to_cpu(msg->status)); msg 69 drivers/net/wireless/rsi/rsi_91x_coex.c int rsi_coex_recv_pkt(struct rsi_common *common, u8 *msg) msg 71 drivers/net/wireless/rsi/rsi_91x_coex.c u8 msg_type = msg[RSI_RX_DESC_MSG_TYPE_OFFSET]; msg 77 drivers/net/wireless/rsi/rsi_91x_coex.c rsi_handle_card_ready(common, msg); msg 81 drivers/net/wireless/rsi/rsi_91x_coex.c rsi_mgmt_pkt_recv(common, msg); msg 485 drivers/net/wireless/rsi/rsi_91x_mgmt.c u8 *msg, msg 491 drivers/net/wireless/rsi/rsi_91x_mgmt.c u8 pad_bytes = msg[4]; msg 510 drivers/net/wireless/rsi/rsi_91x_mgmt.c (u8 *)(msg + FRAME_DESC_SZ + pad_bytes), msg 515 drivers/net/wireless/rsi/rsi_91x_mgmt.c rx_params->rssi = rsi_get_rssi(msg); msg 516 drivers/net/wireless/rsi/rsi_91x_mgmt.c rx_params->channel = rsi_get_channel(msg); msg 1918 drivers/net/wireless/rsi/rsi_91x_mgmt.c u8 *msg) msg 1921 drivers/net/wireless/rsi/rsi_91x_mgmt.c u8 sub_type = (msg[15] & 0xff); msg 1922 drivers/net/wireless/rsi/rsi_91x_mgmt.c u16 msg_len = ((u16 *)msg)[0] & 0xfff; msg 1966 drivers/net/wireless/rsi/rsi_91x_mgmt.c if (msg[16] != MAGIC_WORD) { msg 1975 drivers/net/wireless/rsi/rsi_91x_mgmt.c memcpy(common->mac_addr, &msg[offset], ETH_ALEN); msg 1988 drivers/net/wireless/rsi/rsi_91x_mgmt.c if ((msg[17] & 0x3) == 0x3) { msg 1992 drivers/net/wireless/rsi/rsi_91x_mgmt.c } else if ((msg[17] & 0x3) == 0x1) { msg 2077 drivers/net/wireless/rsi/rsi_91x_mgmt.c return rsi_handle_ps_confirm(adapter, msg); msg 2104 drivers/net/wireless/rsi/rsi_91x_mgmt.c int rsi_handle_card_ready(struct rsi_common *common, u8 *msg) msg 2120 drivers/net/wireless/rsi/rsi_91x_mgmt.c if (msg[16] != MAGIC_WORD) { msg 2127 drivers/net/wireless/rsi/rsi_91x_mgmt.c memcpy(common->mac_addr, &msg[20], ETH_ALEN); msg 2131 drivers/net/wireless/rsi/rsi_91x_mgmt.c common->priv->usb_buffer_status_reg = *(u32 *)&msg[8]; msg 2163 drivers/net/wireless/rsi/rsi_91x_mgmt.c int rsi_mgmt_pkt_recv(struct rsi_common *common, u8 *msg) msg 2165 drivers/net/wireless/rsi/rsi_91x_mgmt.c s32 msg_len = (le16_to_cpu(*(__le16 *)&msg[0]) & 0x0fff); msg 2166 drivers/net/wireless/rsi/rsi_91x_mgmt.c u16 msg_type = (msg[2]); msg 2173 drivers/net/wireless/rsi/rsi_91x_mgmt.c return rsi_handle_ta_confirm_type(common, msg); msg 2178 drivers/net/wireless/rsi/rsi_91x_mgmt.c return rsi_handle_card_ready(common, msg); msg 2180 drivers/net/wireless/rsi/rsi_91x_mgmt.c switch (msg[RSI_TX_STATUS_TYPE]) { msg 2187 drivers/net/wireless/rsi/rsi_91x_mgmt.c if (msg[RSI_TX_STATUS]) { msg 2206 drivers/net/wireless/rsi/rsi_91x_mgmt.c rsi_dbg(ERR_ZONE, "\n\nWakeup Type: %x\n", msg[15]); msg 2207 drivers/net/wireless/rsi/rsi_91x_mgmt.c switch (msg[15]) { msg 2235 drivers/net/wireless/rsi/rsi_91x_mgmt.c return rsi_mgmt_pkt_to_core(common, msg, msg_len); msg 124 drivers/net/wireless/rsi/rsi_91x_ps.c int rsi_handle_ps_confirm(struct rsi_hw *adapter, u8 *msg) msg 126 drivers/net/wireless/rsi/rsi_91x_ps.c u16 cfm_type = get_unaligned_le16(msg + PS_CONFIRM_INDEX); msg 35 drivers/net/wireless/rsi/rsi_coex.h int rsi_coex_recv_pkt(struct rsi_common *common, u8 *msg); msg 713 drivers/net/wireless/rsi/rsi_mgmt.h int rsi_handle_card_ready(struct rsi_common *common, u8 *msg); msg 714 drivers/net/wireless/rsi/rsi_mgmt.h int rsi_mgmt_pkt_recv(struct rsi_common *common, u8 *msg); msg 60 drivers/net/wireless/rsi/rsi_ps.h int rsi_handle_ps_confirm(struct rsi_hw *adapter, u8 *msg); msg 25 drivers/nfc/s3fwrn5/firmware.c struct sk_buff *msg, struct sk_buff **rsp) msg 33 drivers/nfc/s3fwrn5/firmware.c ret = s3fwrn5_write(info, msg); msg 54 drivers/nfc/s3fwrn5/firmware.c struct sk_buff **msg, u8 type, u8 code, const void *data, u16 len) msg 72 drivers/nfc/s3fwrn5/firmware.c *msg = skb; msg 80 drivers/nfc/s3fwrn5/firmware.c struct sk_buff *msg, *rsp = NULL; msg 86 drivers/nfc/s3fwrn5/firmware.c ret = s3fwrn5_fw_prep_msg(fw_info, &msg, S3FWRN5_FW_MSG_CMD, msg 91 drivers/nfc/s3fwrn5/firmware.c ret = s3fwrn5_fw_send_msg(fw_info, msg, &rsp); msg 92 drivers/nfc/s3fwrn5/firmware.c kfree_skb(msg); msg 114 drivers/nfc/s3fwrn5/firmware.c struct sk_buff *msg, *rsp = NULL; msg 123 drivers/nfc/s3fwrn5/firmware.c ret = s3fwrn5_fw_prep_msg(fw_info, &msg, S3FWRN5_FW_MSG_CMD, msg 128 drivers/nfc/s3fwrn5/firmware.c ret = s3fwrn5_fw_send_msg(fw_info, msg, &rsp); msg 129 drivers/nfc/s3fwrn5/firmware.c kfree_skb(msg); msg 143 drivers/nfc/s3fwrn5/firmware.c ret = s3fwrn5_fw_prep_msg(fw_info, &msg, S3FWRN5_FW_MSG_DATA, 0, msg 148 drivers/nfc/s3fwrn5/firmware.c ret = s3fwrn5_fw_send_msg(fw_info, msg, &rsp); msg 149 drivers/nfc/s3fwrn5/firmware.c kfree_skb(msg); msg 163 drivers/nfc/s3fwrn5/firmware.c ret = s3fwrn5_fw_prep_msg(fw_info, &msg, S3FWRN5_FW_MSG_DATA, 0, msg 168 drivers/nfc/s3fwrn5/firmware.c ret = s3fwrn5_fw_send_msg(fw_info, msg, &rsp); msg 169 drivers/nfc/s3fwrn5/firmware.c kfree_skb(msg); msg 186 drivers/nfc/s3fwrn5/firmware.c struct sk_buff *msg, *rsp = NULL; msg 194 drivers/nfc/s3fwrn5/firmware.c ret = s3fwrn5_fw_prep_msg(fw_info, &msg, S3FWRN5_FW_MSG_CMD, msg 199 drivers/nfc/s3fwrn5/firmware.c ret = s3fwrn5_fw_send_msg(fw_info, msg, &rsp); msg 200 drivers/nfc/s3fwrn5/firmware.c kfree_skb(msg); msg 215 drivers/nfc/s3fwrn5/firmware.c ret = s3fwrn5_fw_prep_msg(fw_info, &msg, msg 220 drivers/nfc/s3fwrn5/firmware.c ret = s3fwrn5_fw_send_msg(fw_info, msg, &rsp); msg 221 drivers/nfc/s3fwrn5/firmware.c kfree_skb(msg); msg 243 drivers/nfc/s3fwrn5/firmware.c struct sk_buff *msg, *rsp = NULL; msg 249 drivers/nfc/s3fwrn5/firmware.c ret = s3fwrn5_fw_prep_msg(fw_info, &msg, S3FWRN5_FW_MSG_CMD, msg 254 drivers/nfc/s3fwrn5/firmware.c ret = s3fwrn5_fw_send_msg(fw_info, msg, &rsp); msg 255 drivers/nfc/s3fwrn5/firmware.c kfree_skb(msg); msg 95 drivers/nfc/st-nci/vendor_cmds.c struct sk_buff *msg, *skb; msg 103 drivers/nfc/st-nci/vendor_cmds.c msg = nfc_vendor_cmd_alloc_reply_skb(dev, ST_NCI_VENDOR_OUI, msg 105 drivers/nfc/st-nci/vendor_cmds.c if (!msg) { msg 110 drivers/nfc/st-nci/vendor_cmds.c if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { msg 111 drivers/nfc/st-nci/vendor_cmds.c kfree_skb(msg); msg 116 drivers/nfc/st-nci/vendor_cmds.c r = nfc_vendor_cmd_reply(msg); msg 128 drivers/nfc/st-nci/vendor_cmds.c struct sk_buff *msg, *skb; msg 136 drivers/nfc/st-nci/vendor_cmds.c msg = nfc_vendor_cmd_alloc_reply_skb(dev, ST_NCI_VENDOR_OUI, msg 138 drivers/nfc/st-nci/vendor_cmds.c if (!msg) { msg 143 drivers/nfc/st-nci/vendor_cmds.c if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { msg 144 drivers/nfc/st-nci/vendor_cmds.c kfree_skb(msg); msg 149 drivers/nfc/st-nci/vendor_cmds.c r = nfc_vendor_cmd_reply(msg); msg 210 drivers/nfc/st-nci/vendor_cmds.c struct sk_buff *msg, *skb; msg 221 drivers/nfc/st-nci/vendor_cmds.c msg = nfc_vendor_cmd_alloc_reply_skb(dev, ST_NCI_VENDOR_OUI, msg 223 drivers/nfc/st-nci/vendor_cmds.c if (!msg) { msg 228 drivers/nfc/st-nci/vendor_cmds.c if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { msg 229 drivers/nfc/st-nci/vendor_cmds.c kfree_skb(msg); msg 234 drivers/nfc/st-nci/vendor_cmds.c r = nfc_vendor_cmd_reply(msg); msg 255 drivers/nfc/st-nci/vendor_cmds.c struct sk_buff *msg, *skb; msg 267 drivers/nfc/st-nci/vendor_cmds.c msg = nfc_vendor_cmd_alloc_reply_skb(dev, ST_NCI_VENDOR_OUI, msg 269 drivers/nfc/st-nci/vendor_cmds.c if (!msg) { msg 274 drivers/nfc/st-nci/vendor_cmds.c if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { msg 275 drivers/nfc/st-nci/vendor_cmds.c kfree_skb(msg); msg 280 drivers/nfc/st-nci/vendor_cmds.c r = nfc_vendor_cmd_reply(msg); msg 292 drivers/nfc/st-nci/vendor_cmds.c struct sk_buff *msg, *skb; msg 304 drivers/nfc/st-nci/vendor_cmds.c msg = nfc_vendor_cmd_alloc_reply_skb(dev, ST_NCI_VENDOR_OUI, msg 306 drivers/nfc/st-nci/vendor_cmds.c if (!msg) { msg 311 drivers/nfc/st-nci/vendor_cmds.c if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { msg 312 drivers/nfc/st-nci/vendor_cmds.c kfree_skb(msg); msg 317 drivers/nfc/st-nci/vendor_cmds.c r = nfc_vendor_cmd_reply(msg); msg 329 drivers/nfc/st-nci/vendor_cmds.c struct sk_buff *msg, *skb; msg 339 drivers/nfc/st-nci/vendor_cmds.c msg = nfc_vendor_cmd_alloc_reply_skb(dev, ST_NCI_VENDOR_OUI, msg 341 drivers/nfc/st-nci/vendor_cmds.c if (!msg) { msg 346 drivers/nfc/st-nci/vendor_cmds.c if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { msg 347 drivers/nfc/st-nci/vendor_cmds.c kfree_skb(msg); msg 352 drivers/nfc/st-nci/vendor_cmds.c r = nfc_vendor_cmd_reply(msg); msg 361 drivers/nfc/st-nci/vendor_cmds.c struct sk_buff *msg; msg 364 drivers/nfc/st-nci/vendor_cmds.c msg = nfc_vendor_cmd_alloc_reply_skb(dev, ST_NCI_VENDOR_OUI, msg 367 drivers/nfc/st-nci/vendor_cmds.c if (!msg) msg 370 drivers/nfc/st-nci/vendor_cmds.c if (nla_put(msg, NFC_ATTR_VENDOR_DATA, sizeof(ndev->manufact_specific_info), msg 372 drivers/nfc/st-nci/vendor_cmds.c kfree_skb(msg); msg 376 drivers/nfc/st-nci/vendor_cmds.c return nfc_vendor_cmd_reply(msg); msg 90 drivers/nfc/st21nfca/vendor_cmds.c struct sk_buff *msg, *skb; msg 100 drivers/nfc/st21nfca/vendor_cmds.c msg = nfc_vendor_cmd_alloc_reply_skb(dev, ST21NFCA_VENDOR_OUI, msg 102 drivers/nfc/st21nfca/vendor_cmds.c if (!msg) { msg 107 drivers/nfc/st21nfca/vendor_cmds.c if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { msg 108 drivers/nfc/st21nfca/vendor_cmds.c kfree_skb(msg); msg 113 drivers/nfc/st21nfca/vendor_cmds.c r = nfc_vendor_cmd_reply(msg); msg 125 drivers/nfc/st21nfca/vendor_cmds.c struct sk_buff *msg, *skb; msg 135 drivers/nfc/st21nfca/vendor_cmds.c msg = nfc_vendor_cmd_alloc_reply_skb(dev, ST21NFCA_VENDOR_OUI, msg 137 drivers/nfc/st21nfca/vendor_cmds.c if (!msg) { msg 142 drivers/nfc/st21nfca/vendor_cmds.c if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { msg 143 drivers/nfc/st21nfca/vendor_cmds.c kfree_skb(msg); msg 148 drivers/nfc/st21nfca/vendor_cmds.c r = nfc_vendor_cmd_reply(msg); msg 187 drivers/nfc/st21nfca/vendor_cmds.c struct sk_buff *msg, *skb; msg 198 drivers/nfc/st21nfca/vendor_cmds.c msg = nfc_vendor_cmd_alloc_reply_skb(dev, ST21NFCA_VENDOR_OUI, msg 200 drivers/nfc/st21nfca/vendor_cmds.c if (!msg) { msg 205 drivers/nfc/st21nfca/vendor_cmds.c if (nla_put(msg, NFC_ATTR_VENDOR_DATA, skb->len, skb->data)) { msg 206 drivers/nfc/st21nfca/vendor_cmds.c kfree_skb(msg); msg 211 drivers/nfc/st21nfca/vendor_cmds.c r = nfc_vendor_cmd_reply(msg); msg 251 drivers/nfc/st21nfca/vendor_cmds.c struct sk_buff *msg; msg 275 drivers/nfc/st21nfca/vendor_cmds.c msg = nfc_vendor_cmd_alloc_reply_skb(hdev->ndev, msg 279 drivers/nfc/st21nfca/vendor_cmds.c if (!msg) { msg 284 drivers/nfc/st21nfca/vendor_cmds.c if (nla_put(msg, NFC_ATTR_VENDOR_DATA, info->vendor_info.rx_skb->len, msg 286 drivers/nfc/st21nfca/vendor_cmds.c kfree_skb(msg); msg 291 drivers/nfc/st21nfca/vendor_cmds.c r = nfc_vendor_cmd_reply(msg); msg 1788 drivers/ntb/hw/idt/ntb_hw_idt.c u32 msg) msg 1808 drivers/ntb/hw/idt/ntb_hw_idt.c idt_nt_write(ndev, ntdata_tbl.msgs[midx].out, msg); msg 161 drivers/ntb/hw/mscc/ntb_hw_switchtec.c iowrite32(val, &sndev->mmio_peer_dbmsg->omsg[idx].msg); msg 542 drivers/ntb/hw/mscc/ntb_hw_switchtec.c enum switchtec_msg msg) msg 544 drivers/ntb/hw/mscc/ntb_hw_switchtec.c if (msg == MSG_LINK_FORCE_DOWN) msg 1392 drivers/ntb/hw/mscc/ntb_hw_switchtec.c u64 msg = ioread64(&sndev->mmio_self_dbmsg->imsg[i]); msg 1394 drivers/ntb/hw/mscc/ntb_hw_switchtec.c if (msg & NTB_DBMSG_IMSG_STATUS) { msg 1396 drivers/ntb/hw/mscc/ntb_hw_switchtec.c i, (u32)msg); msg 1400 drivers/ntb/hw/mscc/ntb_hw_switchtec.c switchtec_ntb_check_link(sndev, msg); msg 112 drivers/ntb/msi.c addr = desc->msg.address_lo + ((uint64_t)desc->msg.address_hi << 32); msg 200 drivers/ntb/msi.c addr = entry->msg.address_lo + msg 201 drivers/ntb/msi.c ((uint64_t)entry->msg.address_hi << 32); msg 212 drivers/ntb/msi.c msi_desc->data = entry->msg.data; msg 1280 drivers/ntb/test/ntb_tool.c struct tool_msg *msg = filep->private_data; msg 1286 drivers/ntb/test/ntb_tool.c data = ntb_msg_read(msg->tc->ntb, &pidx, msg->midx); msg 1301 drivers/ntb/test/ntb_tool.c struct tool_msg *msg = filep->private_data; msg 1309 drivers/ntb/test/ntb_tool.c ret = ntb_peer_msg_write(msg->tc->ntb, msg->pidx, msg->midx, val); msg 964 drivers/nvme/host/tcp.c struct msghdr msg = { .msg_flags = MSG_DONTWAIT | MSG_EOR }; msg 970 drivers/nvme/host/tcp.c ret = kernel_sendmsg(queue->sock, &msg, &iov, 1, iov.iov_len); msg 1155 drivers/nvme/host/tcp.c struct msghdr msg = {}; msg 1184 drivers/nvme/host/tcp.c ret = kernel_sendmsg(queue->sock, &msg, &iov, 1, iov.iov_len); msg 1188 drivers/nvme/host/tcp.c memset(&msg, 0, sizeof(msg)); msg 1191 drivers/nvme/host/tcp.c ret = kernel_recvmsg(queue->sock, &msg, &iov, 1, msg 1192 drivers/nvme/host/tcp.c iov.iov_len, msg.msg_flags); msg 628 drivers/nvme/target/tcp.c struct msghdr msg = { .msg_flags = MSG_DONTWAIT }; msg 635 drivers/nvme/target/tcp.c ret = kernel_sendmsg(queue->sock, &msg, &iov, 1, iov.iov_len); msg 762 drivers/nvme/target/tcp.c struct msghdr msg = {}; msg 806 drivers/nvme/target/tcp.c ret = kernel_sendmsg(queue->sock, &msg, &iov, 1, iov.iov_len); msg 980 drivers/nvme/target/tcp.c struct msghdr msg = { .msg_flags = MSG_DONTWAIT }; msg 985 drivers/nvme/target/tcp.c len = kernel_recvmsg(queue->sock, &msg, &iov, 1, msg 986 drivers/nvme/target/tcp.c iov.iov_len, msg.msg_flags); msg 1072 drivers/nvme/target/tcp.c struct msghdr msg = { .msg_flags = MSG_DONTWAIT }; msg 1078 drivers/nvme/target/tcp.c ret = kernel_recvmsg(queue->sock, &msg, &iov, 1, msg 1079 drivers/nvme/target/tcp.c iov.iov_len, msg.msg_flags); msg 51 drivers/nvmem/imx-ocotp-scu.c struct imx_sc_msg_misc_fuse_read msg; msg 52 drivers/nvmem/imx-ocotp-scu.c struct imx_sc_rpc_msg *hdr = &msg.hdr; msg 60 drivers/nvmem/imx-ocotp-scu.c msg.word = word; msg 62 drivers/nvmem/imx-ocotp-scu.c ret = imx_scu_call_rpc(ipc, &msg, true); msg 66 drivers/nvmem/imx-ocotp-scu.c *val = msg.word; msg 1266 drivers/of/base.c void of_print_phandle_args(const char *msg, const struct of_phandle_args *args) msg 1269 drivers/of/base.c printk("%s %pOF", msg, args->np); msg 46 drivers/parisc/eisa.c #define EISA_DBG(msg, arg...) printk(KERN_DEBUG "eisa: " msg, ## arg) msg 48 drivers/parisc/eisa.c #define EISA_DBG(msg, arg...) msg 91 drivers/parisc/power.c static const char msg[] = "Shutting down..."; msg 92 drivers/parisc/power.c printk(KERN_INFO KTHREAD_NAME ": %s\n", msg); msg 93 drivers/parisc/power.c lcd_print(msg); msg 197 drivers/parisc/sba_iommu.c sba_dump_pdir_entry(struct ioc *ioc, char *msg, uint pide) msg 205 drivers/parisc/sba_iommu.c msg, msg 217 drivers/parisc/sba_iommu.c printk(KERN_DEBUG "%s", msg); msg 229 drivers/parisc/sba_iommu.c sba_check_pdir(struct ioc *ioc, char *msg) msg 249 drivers/parisc/sba_iommu.c sba_dump_pdir_entry(ioc, msg, pide); msg 170 drivers/pci/controller/dwc/pci-keystone.c static void ks_pcie_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) msg 181 drivers/pci/controller/dwc/pci-keystone.c msg->address_lo = lower_32_bits(msi_target); msg 182 drivers/pci/controller/dwc/pci-keystone.c msg->address_hi = upper_32_bits(msi_target); msg 183 drivers/pci/controller/dwc/pci-keystone.c msg->data = data->hwirq; msg 186 drivers/pci/controller/dwc/pci-keystone.c (int)data->hwirq, msg->address_hi, msg->address_lo); msg 124 drivers/pci/controller/dwc/pcie-designware-host.c static void dw_pci_setup_msi_msg(struct irq_data *d, struct msi_msg *msg) msg 132 drivers/pci/controller/dwc/pcie-designware-host.c msg->address_lo = lower_32_bits(msi_target); msg 133 drivers/pci/controller/dwc/pcie-designware-host.c msg->address_hi = upper_32_bits(msi_target); msg 135 drivers/pci/controller/dwc/pcie-designware-host.c msg->data = d->hwirq; msg 138 drivers/pci/controller/dwc/pcie-designware-host.c (int)d->hwirq, msg->address_hi, msg->address_lo); msg 998 drivers/pci/controller/dwc/pcie-tegra194.c struct tegra_bpmp_message msg; msg 1012 drivers/pci/controller/dwc/pcie-tegra194.c memset(&msg, 0, sizeof(msg)); msg 1013 drivers/pci/controller/dwc/pcie-tegra194.c msg.mrq = MRQ_UPHY; msg 1014 drivers/pci/controller/dwc/pcie-tegra194.c msg.tx.data = &req; msg 1015 drivers/pci/controller/dwc/pcie-tegra194.c msg.tx.size = sizeof(req); msg 1016 drivers/pci/controller/dwc/pcie-tegra194.c msg.rx.data = &resp; msg 1017 drivers/pci/controller/dwc/pcie-tegra194.c msg.rx.size = sizeof(resp); msg 1019 drivers/pci/controller/dwc/pcie-tegra194.c return tegra_bpmp_transfer(pcie->bpmp, &msg); msg 669 drivers/pci/controller/pci-aardvark.c struct msi_msg *msg) msg 674 drivers/pci/controller/pci-aardvark.c msg->address_lo = lower_32_bits(msi_msg); msg 675 drivers/pci/controller/pci-aardvark.c msg->address_hi = upper_32_bits(msi_msg); msg 676 drivers/pci/controller/pci-aardvark.c msg->data = data->irq; msg 1211 drivers/pci/controller/pci-hyperv.c params->int_entry.address = msi_desc->msg.address_lo; msg 1212 drivers/pci/controller/pci-hyperv.c params->int_entry.data = msi_desc->msg.data; msg 1351 drivers/pci/controller/pci-hyperv.c static void hv_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) msg 1486 drivers/pci/controller/pci-hyperv.c msg->address_hi = comp.int_desc.address >> 32; msg 1487 drivers/pci/controller/pci-hyperv.c msg->address_lo = comp.int_desc.address & 0xffffffff; msg 1488 drivers/pci/controller/pci-hyperv.c msg->data = comp.int_desc.data; msg 1498 drivers/pci/controller/pci-hyperv.c msg->address_hi = 0; msg 1499 drivers/pci/controller/pci-hyperv.c msg->address_lo = 0; msg 1500 drivers/pci/controller/pci-hyperv.c msg->data = 0; msg 1689 drivers/pci/controller/pci-tegra.c struct msi_msg msg; msg 1705 drivers/pci/controller/pci-tegra.c msg.address_lo = lower_32_bits(msi->phys); msg 1706 drivers/pci/controller/pci-tegra.c msg.address_hi = upper_32_bits(msi->phys); msg 1707 drivers/pci/controller/pci-tegra.c msg.data = hwirq; msg 1709 drivers/pci/controller/pci-tegra.c pci_write_msi_msg(irq, &msg); msg 141 drivers/pci/controller/pci-xgene-msi.c static void xgene_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) msg 148 drivers/pci/controller/pci-xgene-msi.c msg->address_hi = upper_32_bits(target_addr); msg 149 drivers/pci/controller/pci-xgene-msi.c msg->address_lo = lower_32_bits(target_addr); msg 150 drivers/pci/controller/pci-xgene-msi.c msg->data = hwirq_to_msi_data(data->hwirq); msg 91 drivers/pci/controller/pcie-altera-msi.c static void altera_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) msg 96 drivers/pci/controller/pcie-altera-msi.c msg->address_lo = lower_32_bits(addr); msg 97 drivers/pci/controller/pcie-altera-msi.c msg->address_hi = upper_32_bits(addr); msg 98 drivers/pci/controller/pcie-altera-msi.c msg->data = data->hwirq; msg 101 drivers/pci/controller/pcie-altera-msi.c (int)data->hwirq, msg->address_hi, msg->address_lo); msg 224 drivers/pci/controller/pcie-iproc-msi.c struct msi_msg *msg) msg 230 drivers/pci/controller/pcie-iproc-msi.c msg->address_lo = lower_32_bits(addr); msg 231 drivers/pci/controller/pcie-iproc-msi.c msg->address_hi = upper_32_bits(addr); msg 232 drivers/pci/controller/pcie-iproc-msi.c msg->data = data->hwirq << 5; msg 296 drivers/pci/controller/pcie-iproc-msi.c u32 *msg, hwirq; msg 300 drivers/pci/controller/pcie-iproc-msi.c msg = (u32 *)(msi->eq_cpu + offs); msg 301 drivers/pci/controller/pcie-iproc-msi.c hwirq = readl(msg); msg 398 drivers/pci/controller/pcie-mediatek.c static void mtk_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) msg 405 drivers/pci/controller/pcie-mediatek.c msg->address_hi = 0; msg 406 drivers/pci/controller/pcie-mediatek.c msg->address_lo = lower_32_bits(addr); msg 408 drivers/pci/controller/pcie-mediatek.c msg->data = data->hwirq; msg 411 drivers/pci/controller/pcie-mediatek.c (int)data->hwirq, msg->address_hi, msg->address_lo); msg 733 drivers/pci/controller/pcie-mobiveil.c static void mobiveil_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) msg 738 drivers/pci/controller/pcie-mobiveil.c msg->address_lo = lower_32_bits(addr); msg 739 drivers/pci/controller/pcie-mobiveil.c msg->address_hi = upper_32_bits(addr); msg 740 drivers/pci/controller/pcie-mobiveil.c msg->data = data->hwirq; msg 743 drivers/pci/controller/pcie-mobiveil.c (int)data->hwirq, msg->address_hi, msg->address_lo); msg 776 drivers/pci/controller/pcie-rcar.c struct msi_msg msg; msg 792 drivers/pci/controller/pcie-rcar.c msg.address_lo = rcar_pci_read_reg(pcie, PCIEMSIALR) & ~MSIFE; msg 793 drivers/pci/controller/pcie-rcar.c msg.address_hi = rcar_pci_read_reg(pcie, PCIEMSIAUR); msg 794 drivers/pci/controller/pcie-rcar.c msg.data = hwirq; msg 796 drivers/pci/controller/pcie-rcar.c pci_write_msi_msg(irq, &msg); msg 807 drivers/pci/controller/pcie-rcar.c struct msi_msg msg; msg 844 drivers/pci/controller/pcie-rcar.c msg.address_lo = rcar_pci_read_reg(pcie, PCIEMSIALR) & ~MSIFE; msg 845 drivers/pci/controller/pcie-rcar.c msg.address_hi = rcar_pci_read_reg(pcie, PCIEMSIAUR); msg 846 drivers/pci/controller/pcie-rcar.c msg.data = hwirq; msg 848 drivers/pci/controller/pcie-rcar.c pci_write_msi_msg(irq, &msg); msg 88 drivers/pci/controller/pcie-tango.c static void tango_compose_msi_msg(struct irq_data *d, struct msi_msg *msg) msg 91 drivers/pci/controller/pcie-tango.c msg->address_lo = lower_32_bits(pcie->msi_doorbell); msg 92 drivers/pci/controller/pcie-tango.c msg->address_hi = upper_32_bits(pcie->msi_doorbell); msg 93 drivers/pci/controller/pcie-tango.c msg->data = d->hwirq; msg 454 drivers/pci/controller/pcie-xilinx-nwl.c static void nwl_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) msg 459 drivers/pci/controller/pcie-xilinx-nwl.c msg->address_lo = lower_32_bits(msi_addr); msg 460 drivers/pci/controller/pcie-xilinx-nwl.c msg->address_hi = upper_32_bits(msi_addr); msg 461 drivers/pci/controller/pcie-xilinx-nwl.c msg->data = data->hwirq; msg 274 drivers/pci/controller/pcie-xilinx.c struct msi_msg msg; msg 289 drivers/pci/controller/pcie-xilinx.c msg.address_hi = 0; msg 290 drivers/pci/controller/pcie-xilinx.c msg.address_lo = msg_addr; msg 291 drivers/pci/controller/pcie-xilinx.c msg.data = irq; msg 293 drivers/pci/controller/pcie-xilinx.c pci_write_msi_msg(irq, &msg); msg 125 drivers/pci/controller/vmd.c static void vmd_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) msg 131 drivers/pci/controller/vmd.c msg->address_hi = MSI_ADDR_BASE_HI; msg 132 drivers/pci/controller/vmd.c msg->address_lo = MSI_ADDR_BASE_LO | msg 134 drivers/pci/controller/vmd.c msg->data = 0; msg 339 drivers/pci/hotplug/pnv_php.c struct opal_msg msg; msg 342 drivers/pci/hotplug/pnv_php.c ret = pnv_pci_set_power_state(php_slot->id, state, &msg); msg 344 drivers/pci/hotplug/pnv_php.c if (be64_to_cpu(msg.params[1]) != php_slot->dn->phandle || msg 345 drivers/pci/hotplug/pnv_php.c be64_to_cpu(msg.params[2]) != state || msg 346 drivers/pci/hotplug/pnv_php.c be64_to_cpu(msg.params[3]) != OPAL_SUCCESS) { msg 348 drivers/pci/hotplug/pnv_php.c be64_to_cpu(msg.params[1]), msg 349 drivers/pci/hotplug/pnv_php.c be64_to_cpu(msg.params[2]), msg 350 drivers/pci/hotplug/pnv_php.c be64_to_cpu(msg.params[3])); msg 151 drivers/pci/msi.c __pci_write_msi_msg(entry, &entry->msg); msg 276 drivers/pci/msi.c void __pci_read_msi_msg(struct msi_desc *entry, struct msi_msg *msg) msg 290 drivers/pci/msi.c msg->address_lo = readl(base + PCI_MSIX_ENTRY_LOWER_ADDR); msg 291 drivers/pci/msi.c msg->address_hi = readl(base + PCI_MSIX_ENTRY_UPPER_ADDR); msg 292 drivers/pci/msi.c msg->data = readl(base + PCI_MSIX_ENTRY_DATA); msg 298 drivers/pci/msi.c &msg->address_lo); msg 301 drivers/pci/msi.c &msg->address_hi); msg 304 drivers/pci/msi.c msg->address_hi = 0; msg 307 drivers/pci/msi.c msg->data = data; msg 311 drivers/pci/msi.c void __pci_write_msi_msg(struct msi_desc *entry, struct msi_msg *msg) msg 323 drivers/pci/msi.c writel(msg->address_lo, base + PCI_MSIX_ENTRY_LOWER_ADDR); msg 324 drivers/pci/msi.c writel(msg->address_hi, base + PCI_MSIX_ENTRY_UPPER_ADDR); msg 325 drivers/pci/msi.c writel(msg->data, base + PCI_MSIX_ENTRY_DATA); msg 336 drivers/pci/msi.c msg->address_lo); msg 339 drivers/pci/msi.c msg->address_hi); msg 341 drivers/pci/msi.c msg->data); msg 344 drivers/pci/msi.c msg->data); msg 349 drivers/pci/msi.c entry->msg = *msg; msg 356 drivers/pci/msi.c void pci_write_msi_msg(unsigned int irq, struct msi_msg *msg) msg 360 drivers/pci/msi.c __pci_write_msi_msg(entry, msg); msg 602 drivers/pci/msi.c if (!dev->no_64bit_msi || !entry->msg.address_hi) msg 1355 drivers/pci/msi.c void pci_msi_domain_write_msg(struct irq_data *irq_data, struct msi_msg *msg) msg 1364 drivers/pci/msi.c __pci_write_msi_msg(desc, msg); msg 640 drivers/perf/arm_smmuv3_pmu.c static void smmu_pmu_write_msi_msg(struct msi_desc *desc, struct msi_msg *msg) msg 646 drivers/perf/arm_smmuv3_pmu.c doorbell = (((u64)msg->address_hi) << 32) | msg->address_lo; msg 650 drivers/perf/arm_smmuv3_pmu.c writel_relaxed(msg->data, pmu->reg_base + SMMU_PMCG_IRQ_CFG1); msg 48 drivers/pinctrl/freescale/pinctrl-scu.c struct imx_sc_msg_req_pad_get msg; msg 50 drivers/pinctrl/freescale/pinctrl-scu.c struct imx_sc_rpc_msg *hdr = &msg.hdr; msg 58 drivers/pinctrl/freescale/pinctrl-scu.c msg.pad = pin_id; msg 60 drivers/pinctrl/freescale/pinctrl-scu.c ret = imx_scu_call_rpc(pinctrl_ipc_handle, &msg, true); msg 64 drivers/pinctrl/freescale/pinctrl-scu.c resp = (struct imx_sc_msg_resp_pad_get *)&msg; msg 74 drivers/pinctrl/freescale/pinctrl-scu.c struct imx_sc_msg_req_pad_set msg; msg 75 drivers/pinctrl/freescale/pinctrl-scu.c struct imx_sc_rpc_msg *hdr = &msg.hdr; msg 94 drivers/pinctrl/freescale/pinctrl-scu.c msg.pad = pin_id; msg 95 drivers/pinctrl/freescale/pinctrl-scu.c msg.val = val; msg 97 drivers/pinctrl/freescale/pinctrl-scu.c ret = imx_scu_call_rpc(pinctrl_ipc_handle, &msg, true); msg 60 drivers/platform/chrome/cros_ec.c struct cros_ec_command msg; msg 75 drivers/platform/chrome/cros_ec.c buf.msg.outsize = sizeof(buf.u.req1); msg 78 drivers/platform/chrome/cros_ec.c buf.msg.insize = sizeof(buf.u.resp1); msg 80 drivers/platform/chrome/cros_ec.c buf.msg.version = 1; msg 84 drivers/platform/chrome/cros_ec.c buf.msg.outsize = sizeof(buf.u.req0); msg 87 drivers/platform/chrome/cros_ec.c buf.msg.command = EC_CMD_HOST_SLEEP_EVENT; msg 89 drivers/platform/chrome/cros_ec.c ret = cros_ec_cmd_xfer(ec_dev, &buf.msg); msg 61 drivers/platform/chrome/cros_ec_chardev.c struct cros_ec_command *msg; msg 64 drivers/platform/chrome/cros_ec_chardev.c msg = kzalloc(sizeof(*msg) + sizeof(*resp), GFP_KERNEL); msg 65 drivers/platform/chrome/cros_ec_chardev.c if (!msg) msg 68 drivers/platform/chrome/cros_ec_chardev.c msg->command = EC_CMD_GET_VERSION + ec->cmd_offset; msg 69 drivers/platform/chrome/cros_ec_chardev.c msg->insize = sizeof(*resp); msg 71 drivers/platform/chrome/cros_ec_chardev.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); msg 75 drivers/platform/chrome/cros_ec_chardev.c msg->result); msg 79 drivers/platform/chrome/cros_ec_chardev.c resp = (struct ec_response_get_version *)msg->data; msg 89 drivers/platform/chrome/cros_ec_chardev.c kfree(msg); msg 204 drivers/platform/chrome/cros_ec_chardev.c char msg[sizeof(struct ec_response_get_version) + msg 241 drivers/platform/chrome/cros_ec_chardev.c ret = ec_get_version(ec_dev, msg, sizeof(msg)); msg 245 drivers/platform/chrome/cros_ec_chardev.c count = min(length, strlen(msg)); msg 247 drivers/platform/chrome/cros_ec_chardev.c if (copy_to_user(buffer, msg, count)) msg 203 drivers/platform/chrome/cros_ec_debugfs.c struct cros_ec_command msg; msg 209 drivers/platform/chrome/cros_ec_debugfs.c struct cros_ec_command *msg; msg 214 drivers/platform/chrome/cros_ec_debugfs.c msg = &ec_buf.msg; msg 215 drivers/platform/chrome/cros_ec_debugfs.c params = (struct ec_params_usb_pd_control *)msg->data; msg 216 drivers/platform/chrome/cros_ec_debugfs.c resp = (struct ec_response_usb_pd_control_v1 *)msg->data; msg 218 drivers/platform/chrome/cros_ec_debugfs.c msg->command = EC_CMD_USB_PD_CONTROL; msg 219 drivers/platform/chrome/cros_ec_debugfs.c msg->version = 1; msg 220 drivers/platform/chrome/cros_ec_debugfs.c msg->insize = sizeof(*resp); msg 221 drivers/platform/chrome/cros_ec_debugfs.c msg->outsize = sizeof(*params); msg 233 drivers/platform/chrome/cros_ec_debugfs.c if (cros_ec_cmd_xfer_status(ec_dev, msg) < 0) msg 254 drivers/platform/chrome/cros_ec_debugfs.c } __packed msg = {}; msg 259 drivers/platform/chrome/cros_ec_debugfs.c resp = (struct ec_response_uptime_info *)&msg.resp; msg 261 drivers/platform/chrome/cros_ec_debugfs.c msg.cmd.command = EC_CMD_GET_UPTIME_INFO; msg 262 drivers/platform/chrome/cros_ec_debugfs.c msg.cmd.insize = sizeof(*resp); msg 264 drivers/platform/chrome/cros_ec_debugfs.c ret = cros_ec_cmd_xfer_status(ec_dev, &msg.cmd); msg 303 drivers/platform/chrome/cros_ec_debugfs.c struct cros_ec_command *msg; msg 305 drivers/platform/chrome/cros_ec_debugfs.c msg = kzalloc(sizeof(*msg) + max(sizeof(*params), sizeof(*response)), msg 307 drivers/platform/chrome/cros_ec_debugfs.c if (!msg) msg 310 drivers/platform/chrome/cros_ec_debugfs.c msg->command = EC_CMD_GET_CMD_VERSIONS + ec->cmd_offset; msg 311 drivers/platform/chrome/cros_ec_debugfs.c msg->outsize = sizeof(*params); msg 312 drivers/platform/chrome/cros_ec_debugfs.c msg->insize = sizeof(*response); msg 314 drivers/platform/chrome/cros_ec_debugfs.c params = (struct ec_params_get_cmd_versions_v1 *)msg->data; msg 316 drivers/platform/chrome/cros_ec_debugfs.c response = (struct ec_response_get_cmd_versions *)msg->data; msg 318 drivers/platform/chrome/cros_ec_debugfs.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg) >= 0 && msg 321 drivers/platform/chrome/cros_ec_debugfs.c kfree(msg); msg 386 drivers/platform/chrome/cros_ec_debugfs.c struct cros_ec_command *msg; msg 391 drivers/platform/chrome/cros_ec_debugfs.c msg = devm_kzalloc(debug_info->ec->dev, msg 392 drivers/platform/chrome/cros_ec_debugfs.c sizeof(*msg) + insize, GFP_KERNEL); msg 393 drivers/platform/chrome/cros_ec_debugfs.c if (!msg) msg 396 drivers/platform/chrome/cros_ec_debugfs.c msg->command = EC_CMD_GET_PANIC_INFO; msg 397 drivers/platform/chrome/cros_ec_debugfs.c msg->insize = insize; msg 399 drivers/platform/chrome/cros_ec_debugfs.c ret = cros_ec_cmd_xfer_status(ec_dev, msg); msg 409 drivers/platform/chrome/cros_ec_debugfs.c debug_info->panicinfo_blob.data = msg->data; msg 418 drivers/platform/chrome/cros_ec_debugfs.c devm_kfree(debug_info->ec->dev, msg); msg 51 drivers/platform/chrome/cros_ec_i2c.c struct cros_ec_command *msg) msg 72 drivers/platform/chrome/cros_ec_i2c.c packet_len = msg->insize + response_header_size; msg 78 drivers/platform/chrome/cros_ec_i2c.c packet_len = msg->outsize + request_header_size; msg 89 drivers/platform/chrome/cros_ec_i2c.c ret = cros_ec_prepare_tx(ec_dev, msg); msg 104 drivers/platform/chrome/cros_ec_i2c.c msg->result = ec_response_i2c->result; msg 107 drivers/platform/chrome/cros_ec_i2c.c switch (msg->result) { msg 113 drivers/platform/chrome/cros_ec_i2c.c msg->command); msg 118 drivers/platform/chrome/cros_ec_i2c.c msg->command, msg->result); msg 142 drivers/platform/chrome/cros_ec_i2c.c if (msg->insize < ec_response->data_len) { msg 145 drivers/platform/chrome/cros_ec_i2c.c msg->insize, msg 156 drivers/platform/chrome/cros_ec_i2c.c memcpy(msg->data, msg 160 drivers/platform/chrome/cros_ec_i2c.c sum += msg->data[i]; msg 172 drivers/platform/chrome/cros_ec_i2c.c if (msg->command == EC_CMD_REBOOT_EC) msg 179 drivers/platform/chrome/cros_ec_i2c.c struct cros_ec_command *msg) msg 200 drivers/platform/chrome/cros_ec_i2c.c packet_len = msg->insize + 3; msg 211 drivers/platform/chrome/cros_ec_i2c.c packet_len = msg->outsize + 4; msg 218 drivers/platform/chrome/cros_ec_i2c.c out_buf[0] = EC_CMD_VERSION0 + msg->version; msg 219 drivers/platform/chrome/cros_ec_i2c.c out_buf[1] = msg->command; msg 220 drivers/platform/chrome/cros_ec_i2c.c out_buf[2] = msg->outsize; msg 224 drivers/platform/chrome/cros_ec_i2c.c for (i = 0; i < msg->outsize; i++) { msg 225 drivers/platform/chrome/cros_ec_i2c.c out_buf[3 + i] = msg->data[i]; msg 228 drivers/platform/chrome/cros_ec_i2c.c out_buf[3 + msg->outsize] = sum; msg 242 drivers/platform/chrome/cros_ec_i2c.c msg->result = i2c_msg[1].buf[0]; msg 243 drivers/platform/chrome/cros_ec_i2c.c ret = cros_ec_check_result(ec_dev, msg); msg 248 drivers/platform/chrome/cros_ec_i2c.c if (len > msg->insize) { msg 250 drivers/platform/chrome/cros_ec_i2c.c len, msg->insize); msg 258 drivers/platform/chrome/cros_ec_i2c.c msg->data[i] = in_buf[2 + i]; msg 273 drivers/platform/chrome/cros_ec_i2c.c if (msg->command == EC_CMD_REBOOT_EC) msg 416 drivers/platform/chrome/cros_ec_ishtp.c struct cros_ec_command *msg) msg 422 drivers/platform/chrome/cros_ec_ishtp.c msg->result = in_msg->ec_response.result; msg 423 drivers/platform/chrome/cros_ec_ishtp.c rv = cros_ec_check_result(ec_dev, msg); msg 427 drivers/platform/chrome/cros_ec_ishtp.c if (in_msg->ec_response.data_len > msg->insize) { msg 429 drivers/platform/chrome/cros_ec_ishtp.c in_msg->ec_response.data_len, msg->insize); msg 439 drivers/platform/chrome/cros_ec_ishtp.c sum += msg->data[i] = ((u8 *)in_msg)[offset + i]; msg 450 drivers/platform/chrome/cros_ec_ishtp.c struct cros_ec_command *msg) msg 459 drivers/platform/chrome/cros_ec_ishtp.c size_t in_size = sizeof(struct cros_ish_in_msg) + msg->insize; msg 460 drivers/platform/chrome/cros_ec_ishtp.c size_t out_size = sizeof(struct cros_ish_out_msg) + msg->outsize; msg 489 drivers/platform/chrome/cros_ec_ishtp.c cros_ec_prepare_tx(ec_dev, msg); msg 507 drivers/platform/chrome/cros_ec_ishtp.c rv = prepare_cros_ec_rx(ec_dev, in_msg, msg); msg 521 drivers/platform/chrome/cros_ec_ishtp.c if (msg->command == EC_CMD_REBOOT_EC) msg 88 drivers/platform/chrome/cros_ec_lightbar.c struct cros_ec_command *msg; msg 94 drivers/platform/chrome/cros_ec_lightbar.c msg = kmalloc(sizeof(*msg) + len, GFP_KERNEL); msg 95 drivers/platform/chrome/cros_ec_lightbar.c if (!msg) msg 98 drivers/platform/chrome/cros_ec_lightbar.c msg->version = 0; msg 99 drivers/platform/chrome/cros_ec_lightbar.c msg->command = EC_CMD_LIGHTBAR_CMD + ec->cmd_offset; msg 100 drivers/platform/chrome/cros_ec_lightbar.c msg->outsize = sizeof(struct ec_params_lightbar); msg 101 drivers/platform/chrome/cros_ec_lightbar.c msg->insize = sizeof(struct ec_response_lightbar); msg 103 drivers/platform/chrome/cros_ec_lightbar.c return msg; msg 111 drivers/platform/chrome/cros_ec_lightbar.c struct cros_ec_command *msg; msg 114 drivers/platform/chrome/cros_ec_lightbar.c msg = alloc_lightbar_cmd_msg(ec); msg 115 drivers/platform/chrome/cros_ec_lightbar.c if (!msg) msg 118 drivers/platform/chrome/cros_ec_lightbar.c param = (struct ec_params_lightbar *)msg->data; msg 120 drivers/platform/chrome/cros_ec_lightbar.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); msg 126 drivers/platform/chrome/cros_ec_lightbar.c switch (msg->result) { msg 137 drivers/platform/chrome/cros_ec_lightbar.c resp = (struct ec_response_lightbar *)msg->data; msg 151 drivers/platform/chrome/cros_ec_lightbar.c kfree(msg); msg 178 drivers/platform/chrome/cros_ec_lightbar.c struct cros_ec_command *msg; msg 186 drivers/platform/chrome/cros_ec_lightbar.c msg = alloc_lightbar_cmd_msg(ec); msg 187 drivers/platform/chrome/cros_ec_lightbar.c if (!msg) msg 190 drivers/platform/chrome/cros_ec_lightbar.c param = (struct ec_params_lightbar *)msg->data; msg 197 drivers/platform/chrome/cros_ec_lightbar.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); msg 201 drivers/platform/chrome/cros_ec_lightbar.c if (msg->result != EC_RES_SUCCESS) { msg 208 drivers/platform/chrome/cros_ec_lightbar.c kfree(msg); msg 224 drivers/platform/chrome/cros_ec_lightbar.c struct cros_ec_command *msg; msg 229 drivers/platform/chrome/cros_ec_lightbar.c msg = alloc_lightbar_cmd_msg(ec); msg 230 drivers/platform/chrome/cros_ec_lightbar.c if (!msg) msg 246 drivers/platform/chrome/cros_ec_lightbar.c param = (struct ec_params_lightbar *)msg->data; msg 262 drivers/platform/chrome/cros_ec_lightbar.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); msg 266 drivers/platform/chrome/cros_ec_lightbar.c if (msg->result != EC_RES_SUCCESS) msg 280 drivers/platform/chrome/cros_ec_lightbar.c kfree(msg); msg 295 drivers/platform/chrome/cros_ec_lightbar.c struct cros_ec_command *msg; msg 299 drivers/platform/chrome/cros_ec_lightbar.c msg = alloc_lightbar_cmd_msg(ec); msg 300 drivers/platform/chrome/cros_ec_lightbar.c if (!msg) msg 303 drivers/platform/chrome/cros_ec_lightbar.c param = (struct ec_params_lightbar *)msg->data; msg 309 drivers/platform/chrome/cros_ec_lightbar.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); msg 313 drivers/platform/chrome/cros_ec_lightbar.c if (msg->result != EC_RES_SUCCESS) { msg 315 drivers/platform/chrome/cros_ec_lightbar.c "ERROR: EC returned %d\n", msg->result); msg 319 drivers/platform/chrome/cros_ec_lightbar.c resp = (struct ec_response_lightbar *)msg->data; msg 327 drivers/platform/chrome/cros_ec_lightbar.c kfree(msg); msg 334 drivers/platform/chrome/cros_ec_lightbar.c struct cros_ec_command *msg; msg 337 drivers/platform/chrome/cros_ec_lightbar.c msg = alloc_lightbar_cmd_msg(ec); msg 338 drivers/platform/chrome/cros_ec_lightbar.c if (!msg) msg 341 drivers/platform/chrome/cros_ec_lightbar.c param = (struct ec_params_lightbar *)msg->data; msg 348 drivers/platform/chrome/cros_ec_lightbar.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); msg 351 drivers/platform/chrome/cros_ec_lightbar.c if (msg->result != EC_RES_SUCCESS) { msg 357 drivers/platform/chrome/cros_ec_lightbar.c kfree(msg); msg 365 drivers/platform/chrome/cros_ec_lightbar.c struct cros_ec_command *msg; msg 368 drivers/platform/chrome/cros_ec_lightbar.c msg = alloc_lightbar_cmd_msg(ec); msg 369 drivers/platform/chrome/cros_ec_lightbar.c if (!msg) msg 372 drivers/platform/chrome/cros_ec_lightbar.c param = (struct ec_params_lightbar *)msg->data; msg 381 drivers/platform/chrome/cros_ec_lightbar.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); msg 384 drivers/platform/chrome/cros_ec_lightbar.c if (msg->result != EC_RES_SUCCESS) { msg 390 drivers/platform/chrome/cros_ec_lightbar.c kfree(msg); msg 399 drivers/platform/chrome/cros_ec_lightbar.c struct cros_ec_command *msg; msg 418 drivers/platform/chrome/cros_ec_lightbar.c msg = alloc_lightbar_cmd_msg(ec); msg 419 drivers/platform/chrome/cros_ec_lightbar.c if (!msg) msg 422 drivers/platform/chrome/cros_ec_lightbar.c param = (struct ec_params_lightbar *)msg->data; msg 429 drivers/platform/chrome/cros_ec_lightbar.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); msg 433 drivers/platform/chrome/cros_ec_lightbar.c if (msg->result != EC_RES_SUCCESS) { msg 440 drivers/platform/chrome/cros_ec_lightbar.c kfree(msg); msg 449 drivers/platform/chrome/cros_ec_lightbar.c struct cros_ec_command *msg; msg 468 drivers/platform/chrome/cros_ec_lightbar.c msg = alloc_lightbar_cmd_msg(ec); msg 469 drivers/platform/chrome/cros_ec_lightbar.c if (!msg) msg 478 drivers/platform/chrome/cros_ec_lightbar.c param = (struct ec_params_lightbar *)msg->data; msg 489 drivers/platform/chrome/cros_ec_lightbar.c msg->outsize = count + extra_bytes; msg 491 drivers/platform/chrome/cros_ec_lightbar.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); msg 494 drivers/platform/chrome/cros_ec_lightbar.c if (msg->result != EC_RES_SUCCESS) { msg 501 drivers/platform/chrome/cros_ec_lightbar.c kfree(msg); msg 43 drivers/platform/chrome/cros_ec_lpc.c u8 (*write)(unsigned int offset, unsigned int length, const u8 *msg); msg 72 drivers/platform/chrome/cros_ec_lpc.c const u8 *msg) msg 78 drivers/platform/chrome/cros_ec_lpc.c outb(msg[i], offset + i); msg 79 drivers/platform/chrome/cros_ec_lpc.c sum += msg[i]; msg 110 drivers/platform/chrome/cros_ec_lpc.c const u8 *msg) msg 120 drivers/platform/chrome/cros_ec_lpc.c length, (u8 *)msg) : msg 121 drivers/platform/chrome/cros_ec_lpc.c cros_ec_lpc_write_bytes(offset, length, msg); msg 141 drivers/platform/chrome/cros_ec_lpc.c struct cros_ec_command *msg) msg 148 drivers/platform/chrome/cros_ec_lpc.c ret = cros_ec_prepare_tx(ec, msg); msg 164 drivers/platform/chrome/cros_ec_lpc.c msg->result = cros_ec_lpc_ops.read(EC_LPC_ADDR_HOST_DATA, 1, &sum); msg 165 drivers/platform/chrome/cros_ec_lpc.c ret = cros_ec_check_result(ec, msg); msg 174 drivers/platform/chrome/cros_ec_lpc.c msg->result = response.result; msg 176 drivers/platform/chrome/cros_ec_lpc.c if (response.data_len > msg->insize) { msg 179 drivers/platform/chrome/cros_ec_lpc.c response.data_len, msg->insize); msg 187 drivers/platform/chrome/cros_ec_lpc.c msg->data); msg 204 drivers/platform/chrome/cros_ec_lpc.c struct cros_ec_command *msg) msg 210 drivers/platform/chrome/cros_ec_lpc.c if (msg->outsize > EC_PROTO2_MAX_PARAM_SIZE || msg 211 drivers/platform/chrome/cros_ec_lpc.c msg->insize > EC_PROTO2_MAX_PARAM_SIZE) { msg 214 drivers/platform/chrome/cros_ec_lpc.c msg->outsize, msg->insize); msg 220 drivers/platform/chrome/cros_ec_lpc.c args.command_version = msg->version; msg 221 drivers/platform/chrome/cros_ec_lpc.c args.data_size = msg->outsize; msg 224 drivers/platform/chrome/cros_ec_lpc.c sum = msg->command + args.flags + args.command_version + args.data_size; msg 227 drivers/platform/chrome/cros_ec_lpc.c sum += cros_ec_lpc_ops.write(EC_LPC_ADDR_HOST_PARAM, msg->outsize, msg 228 drivers/platform/chrome/cros_ec_lpc.c msg->data); msg 236 drivers/platform/chrome/cros_ec_lpc.c sum = msg->command; msg 246 drivers/platform/chrome/cros_ec_lpc.c msg->result = cros_ec_lpc_ops.read(EC_LPC_ADDR_HOST_DATA, 1, &sum); msg 247 drivers/platform/chrome/cros_ec_lpc.c ret = cros_ec_check_result(ec, msg); msg 254 drivers/platform/chrome/cros_ec_lpc.c if (args.data_size > msg->insize) { msg 257 drivers/platform/chrome/cros_ec_lpc.c args.data_size, msg->insize); msg 263 drivers/platform/chrome/cros_ec_lpc.c sum = msg->command + args.flags + args.command_version + args.data_size; msg 267 drivers/platform/chrome/cros_ec_lpc.c msg->data); msg 19 drivers/platform/chrome/cros_ec_proto.c struct cros_ec_command *msg) msg 27 drivers/platform/chrome/cros_ec_proto.c BUG_ON(msg->outsize + sizeof(*request) > ec_dev->dout_size); msg 33 drivers/platform/chrome/cros_ec_proto.c request->command = msg->command; msg 34 drivers/platform/chrome/cros_ec_proto.c request->command_version = msg->version; msg 36 drivers/platform/chrome/cros_ec_proto.c request->data_len = msg->outsize; msg 42 drivers/platform/chrome/cros_ec_proto.c memcpy(out + sizeof(*request), msg->data, msg->outsize); msg 43 drivers/platform/chrome/cros_ec_proto.c for (i = 0; i < msg->outsize; i++) msg 44 drivers/platform/chrome/cros_ec_proto.c csum += msg->data[i]; msg 48 drivers/platform/chrome/cros_ec_proto.c return sizeof(*request) + msg->outsize; msg 52 drivers/platform/chrome/cros_ec_proto.c struct cros_ec_command *msg) msg 55 drivers/platform/chrome/cros_ec_proto.c int (*xfer_fxn)(struct cros_ec_device *ec, struct cros_ec_command *msg); msg 57 drivers/platform/chrome/cros_ec_proto.c trace_cros_ec_cmd(msg); msg 75 drivers/platform/chrome/cros_ec_proto.c ret = (*xfer_fxn)(ec_dev, msg); msg 76 drivers/platform/chrome/cros_ec_proto.c if (msg->result == EC_RES_IN_PROGRESS) { msg 104 drivers/platform/chrome/cros_ec_proto.c msg->result = status_msg->result; msg 121 drivers/platform/chrome/cros_ec_proto.c struct cros_ec_command *msg) msg 128 drivers/platform/chrome/cros_ec_proto.c return prepare_packet(ec_dev, msg); msg 130 drivers/platform/chrome/cros_ec_proto.c BUG_ON(msg->outsize > EC_PROTO2_MAX_PARAM_SIZE); msg 132 drivers/platform/chrome/cros_ec_proto.c out[0] = EC_CMD_VERSION0 + msg->version; msg 133 drivers/platform/chrome/cros_ec_proto.c out[1] = msg->command; msg 134 drivers/platform/chrome/cros_ec_proto.c out[2] = msg->outsize; msg 136 drivers/platform/chrome/cros_ec_proto.c for (i = 0; i < msg->outsize; i++) msg 137 drivers/platform/chrome/cros_ec_proto.c csum += out[EC_MSG_TX_HEADER_BYTES + i] = msg->data[i]; msg 138 drivers/platform/chrome/cros_ec_proto.c out[EC_MSG_TX_HEADER_BYTES + msg->outsize] = csum; msg 140 drivers/platform/chrome/cros_ec_proto.c return EC_MSG_TX_PROTO_BYTES + msg->outsize; msg 145 drivers/platform/chrome/cros_ec_proto.c struct cros_ec_command *msg) msg 147 drivers/platform/chrome/cros_ec_proto.c switch (msg->result) { msg 152 drivers/platform/chrome/cros_ec_proto.c msg->command); msg 156 drivers/platform/chrome/cros_ec_proto.c msg->command, msg->result); msg 176 drivers/platform/chrome/cros_ec_proto.c struct cros_ec_command *msg, msg 182 drivers/platform/chrome/cros_ec_proto.c msg->command = EC_CMD_HOST_EVENT_GET_WAKE_MASK; msg 183 drivers/platform/chrome/cros_ec_proto.c msg->version = 0; msg 184 drivers/platform/chrome/cros_ec_proto.c msg->outsize = 0; msg 185 drivers/platform/chrome/cros_ec_proto.c msg->insize = sizeof(*r); msg 187 drivers/platform/chrome/cros_ec_proto.c ret = send_command(ec_dev, msg); msg 189 drivers/platform/chrome/cros_ec_proto.c r = (struct ec_response_host_event_mask *)msg->data; msg 198 drivers/platform/chrome/cros_ec_proto.c struct cros_ec_command *msg) msg 211 drivers/platform/chrome/cros_ec_proto.c memset(msg, 0, sizeof(*msg)); msg 212 drivers/platform/chrome/cros_ec_proto.c msg->command = EC_CMD_PASSTHRU_OFFSET(devidx) | EC_CMD_GET_PROTOCOL_INFO; msg 213 drivers/platform/chrome/cros_ec_proto.c msg->insize = sizeof(struct ec_response_get_protocol_info); msg 215 drivers/platform/chrome/cros_ec_proto.c ret = send_command(ec_dev, msg); msg 224 drivers/platform/chrome/cros_ec_proto.c if (devidx > 0 && msg->result == EC_RES_INVALID_COMMAND) msg 226 drivers/platform/chrome/cros_ec_proto.c else if (msg->result != EC_RES_SUCCESS) msg 227 drivers/platform/chrome/cros_ec_proto.c return msg->result; msg 234 drivers/platform/chrome/cros_ec_proto.c struct cros_ec_command *msg; msg 240 drivers/platform/chrome/cros_ec_proto.c msg = kmalloc(sizeof(*msg) + len, GFP_KERNEL); msg 241 drivers/platform/chrome/cros_ec_proto.c if (!msg) msg 244 drivers/platform/chrome/cros_ec_proto.c msg->version = 0; msg 245 drivers/platform/chrome/cros_ec_proto.c msg->command = EC_CMD_HELLO; msg 246 drivers/platform/chrome/cros_ec_proto.c hello_params = (struct ec_params_hello *)msg->data; msg 247 drivers/platform/chrome/cros_ec_proto.c msg->outsize = sizeof(*hello_params); msg 248 drivers/platform/chrome/cros_ec_proto.c hello_response = (struct ec_response_hello *)msg->data; msg 249 drivers/platform/chrome/cros_ec_proto.c msg->insize = sizeof(*hello_response); msg 253 drivers/platform/chrome/cros_ec_proto.c ret = send_command(ec_dev, msg); msg 260 drivers/platform/chrome/cros_ec_proto.c } else if (msg->result != EC_RES_SUCCESS) { msg 263 drivers/platform/chrome/cros_ec_proto.c msg->result); msg 264 drivers/platform/chrome/cros_ec_proto.c ret = msg->result; msg 277 drivers/platform/chrome/cros_ec_proto.c kfree(msg); msg 302 drivers/platform/chrome/cros_ec_proto.c struct cros_ec_command *msg; msg 305 drivers/platform/chrome/cros_ec_proto.c msg = kmalloc(sizeof(*msg) + max(sizeof(*rver), sizeof(*pver)), msg 307 drivers/platform/chrome/cros_ec_proto.c if (!msg) msg 310 drivers/platform/chrome/cros_ec_proto.c msg->version = 0; msg 311 drivers/platform/chrome/cros_ec_proto.c msg->command = EC_CMD_GET_CMD_VERSIONS; msg 312 drivers/platform/chrome/cros_ec_proto.c msg->insize = sizeof(*rver); msg 313 drivers/platform/chrome/cros_ec_proto.c msg->outsize = sizeof(*pver); msg 315 drivers/platform/chrome/cros_ec_proto.c pver = (struct ec_params_get_cmd_versions *)msg->data; msg 318 drivers/platform/chrome/cros_ec_proto.c ret = send_command(ec_dev, msg); msg 320 drivers/platform/chrome/cros_ec_proto.c rver = (struct ec_response_get_cmd_versions *)msg->data; msg 324 drivers/platform/chrome/cros_ec_proto.c kfree(msg); msg 457 drivers/platform/chrome/cros_ec_proto.c struct cros_ec_command *msg) msg 472 drivers/platform/chrome/cros_ec_proto.c if (msg->insize > ec_dev->max_response) { msg 474 drivers/platform/chrome/cros_ec_proto.c msg->insize = ec_dev->max_response; msg 477 drivers/platform/chrome/cros_ec_proto.c if (msg->command < EC_CMD_PASSTHRU_OFFSET(1)) { msg 478 drivers/platform/chrome/cros_ec_proto.c if (msg->outsize > ec_dev->max_request) { msg 481 drivers/platform/chrome/cros_ec_proto.c msg->outsize, msg 487 drivers/platform/chrome/cros_ec_proto.c if (msg->outsize > ec_dev->max_passthru) { msg 490 drivers/platform/chrome/cros_ec_proto.c msg->outsize, msg 496 drivers/platform/chrome/cros_ec_proto.c ret = send_command(ec_dev, msg); msg 504 drivers/platform/chrome/cros_ec_proto.c struct cros_ec_command *msg) msg 508 drivers/platform/chrome/cros_ec_proto.c ret = cros_ec_cmd_xfer(ec_dev, msg); msg 511 drivers/platform/chrome/cros_ec_proto.c } else if (msg->result != EC_RES_SUCCESS) { msg 512 drivers/platform/chrome/cros_ec_proto.c dev_dbg(ec_dev->dev, "Command result (err: %d)\n", msg->result); msg 521 drivers/platform/chrome/cros_ec_proto.c struct cros_ec_command *msg, msg 526 drivers/platform/chrome/cros_ec_proto.c msg->version = version; msg 527 drivers/platform/chrome/cros_ec_proto.c msg->command = EC_CMD_GET_NEXT_EVENT; msg 528 drivers/platform/chrome/cros_ec_proto.c msg->insize = size; msg 529 drivers/platform/chrome/cros_ec_proto.c msg->outsize = 0; msg 531 drivers/platform/chrome/cros_ec_proto.c ret = cros_ec_cmd_xfer(ec_dev, msg); msg 534 drivers/platform/chrome/cros_ec_proto.c memcpy(&ec_dev->event_data, msg->data, ret); msg 543 drivers/platform/chrome/cros_ec_proto.c struct cros_ec_command *msg = (struct cros_ec_command *)&buffer; msg 553 drivers/platform/chrome/cros_ec_proto.c ret = get_next_event_xfer(ec_dev, msg, cmd_version, msg 555 drivers/platform/chrome/cros_ec_proto.c if (ret < 0 || msg->result != EC_RES_INVALID_VERSION) msg 562 drivers/platform/chrome/cros_ec_proto.c ret = get_next_event_xfer(ec_dev, msg, cmd_version, msg 572 drivers/platform/chrome/cros_ec_proto.c struct cros_ec_command *msg = (struct cros_ec_command *)&buffer; msg 574 drivers/platform/chrome/cros_ec_proto.c msg->version = 0; msg 575 drivers/platform/chrome/cros_ec_proto.c msg->command = EC_CMD_MKBP_STATE; msg 576 drivers/platform/chrome/cros_ec_proto.c msg->insize = sizeof(ec_dev->event_data.data); msg 577 drivers/platform/chrome/cros_ec_proto.c msg->outsize = 0; msg 579 drivers/platform/chrome/cros_ec_proto.c ec_dev->event_size = cros_ec_cmd_xfer(ec_dev, msg); msg 581 drivers/platform/chrome/cros_ec_proto.c memcpy(&ec_dev->event_data.data, msg->data, msg 118 drivers/platform/chrome/cros_ec_spi.c struct spi_message msg; msg 126 drivers/platform/chrome/cros_ec_spi.c spi_message_init(&msg); msg 129 drivers/platform/chrome/cros_ec_spi.c spi_message_add_tail(&trans, &msg); msg 131 drivers/platform/chrome/cros_ec_spi.c ret = spi_sync_locked(ec_spi->spi, &msg); msg 153 drivers/platform/chrome/cros_ec_spi.c struct spi_message msg; msg 163 drivers/platform/chrome/cros_ec_spi.c spi_message_init(&msg); msg 164 drivers/platform/chrome/cros_ec_spi.c spi_message_add_tail(&trans, &msg); msg 165 drivers/platform/chrome/cros_ec_spi.c ret = spi_sync_locked(ec_spi->spi, &msg); msg 387 drivers/platform/chrome/cros_ec_spi.c struct spi_message msg; msg 414 drivers/platform/chrome/cros_ec_spi.c spi_message_init(&msg); msg 418 drivers/platform/chrome/cros_ec_spi.c spi_message_add_tail(&trans_delay, &msg); msg 427 drivers/platform/chrome/cros_ec_spi.c spi_message_add_tail(&trans, &msg); msg 428 drivers/platform/chrome/cros_ec_spi.c ret = spi_sync_locked(ec_spi->spi, &msg); msg 529 drivers/platform/chrome/cros_ec_spi.c struct spi_message msg; msg 559 drivers/platform/chrome/cros_ec_spi.c spi_message_init(&msg); msg 560 drivers/platform/chrome/cros_ec_spi.c spi_message_add_tail(&trans, &msg); msg 561 drivers/platform/chrome/cros_ec_spi.c ret = spi_sync_locked(ec_spi->spi, &msg); msg 55 drivers/platform/chrome/cros_ec_sysfs.c struct cros_ec_command *msg; msg 62 drivers/platform/chrome/cros_ec_sysfs.c msg = kmalloc(sizeof(*msg) + sizeof(*param), GFP_KERNEL); msg 63 drivers/platform/chrome/cros_ec_sysfs.c if (!msg) msg 66 drivers/platform/chrome/cros_ec_sysfs.c param = (struct ec_params_reboot_ec *)msg->data; msg 99 drivers/platform/chrome/cros_ec_sysfs.c msg->version = 0; msg 100 drivers/platform/chrome/cros_ec_sysfs.c msg->command = EC_CMD_REBOOT_EC + ec->cmd_offset; msg 101 drivers/platform/chrome/cros_ec_sysfs.c msg->outsize = sizeof(*param); msg 102 drivers/platform/chrome/cros_ec_sysfs.c msg->insize = 0; msg 103 drivers/platform/chrome/cros_ec_sysfs.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); msg 107 drivers/platform/chrome/cros_ec_sysfs.c kfree(msg); msg 118 drivers/platform/chrome/cros_ec_sysfs.c struct cros_ec_command *msg; msg 123 drivers/platform/chrome/cros_ec_sysfs.c msg = kmalloc(sizeof(*msg) + EC_HOST_PARAM_SIZE, GFP_KERNEL); msg 124 drivers/platform/chrome/cros_ec_sysfs.c if (!msg) msg 128 drivers/platform/chrome/cros_ec_sysfs.c msg->version = 0; msg 129 drivers/platform/chrome/cros_ec_sysfs.c msg->command = EC_CMD_GET_VERSION + ec->cmd_offset; msg 130 drivers/platform/chrome/cros_ec_sysfs.c msg->insize = sizeof(*r_ver); msg 131 drivers/platform/chrome/cros_ec_sysfs.c msg->outsize = 0; msg 132 drivers/platform/chrome/cros_ec_sysfs.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); msg 137 drivers/platform/chrome/cros_ec_sysfs.c r_ver = (struct ec_response_get_version *)msg->data; msg 151 drivers/platform/chrome/cros_ec_sysfs.c msg->command = EC_CMD_GET_BUILD_INFO + ec->cmd_offset; msg 152 drivers/platform/chrome/cros_ec_sysfs.c msg->insize = EC_HOST_PARAM_SIZE; msg 153 drivers/platform/chrome/cros_ec_sysfs.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); msg 157 drivers/platform/chrome/cros_ec_sysfs.c else if (msg->result != EC_RES_SUCCESS) msg 159 drivers/platform/chrome/cros_ec_sysfs.c "Build info: EC error %d\n", msg->result); msg 161 drivers/platform/chrome/cros_ec_sysfs.c msg->data[EC_HOST_PARAM_SIZE - 1] = '\0'; msg 163 drivers/platform/chrome/cros_ec_sysfs.c "Build info: %s\n", msg->data); msg 167 drivers/platform/chrome/cros_ec_sysfs.c msg->command = EC_CMD_GET_CHIP_INFO + ec->cmd_offset; msg 168 drivers/platform/chrome/cros_ec_sysfs.c msg->insize = sizeof(*r_chip); msg 169 drivers/platform/chrome/cros_ec_sysfs.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); msg 173 drivers/platform/chrome/cros_ec_sysfs.c else if (msg->result != EC_RES_SUCCESS) msg 175 drivers/platform/chrome/cros_ec_sysfs.c "Chip info: EC error %d\n", msg->result); msg 177 drivers/platform/chrome/cros_ec_sysfs.c r_chip = (struct ec_response_get_chip_info *)msg->data; msg 191 drivers/platform/chrome/cros_ec_sysfs.c msg->command = EC_CMD_GET_BOARD_VERSION + ec->cmd_offset; msg 192 drivers/platform/chrome/cros_ec_sysfs.c msg->insize = sizeof(*r_board); msg 193 drivers/platform/chrome/cros_ec_sysfs.c ret = cros_ec_cmd_xfer(ec->ec_dev, msg); msg 197 drivers/platform/chrome/cros_ec_sysfs.c else if (msg->result != EC_RES_SUCCESS) msg 199 drivers/platform/chrome/cros_ec_sysfs.c "Board version: EC error %d\n", msg->result); msg 201 drivers/platform/chrome/cros_ec_sysfs.c r_board = (struct ec_response_board_version *)msg->data; msg 209 drivers/platform/chrome/cros_ec_sysfs.c kfree(msg); msg 217 drivers/platform/chrome/cros_ec_sysfs.c struct cros_ec_command *msg; msg 221 drivers/platform/chrome/cros_ec_sysfs.c msg = kmalloc(sizeof(*msg) + sizeof(*resp), GFP_KERNEL); msg 222 drivers/platform/chrome/cros_ec_sysfs.c if (!msg) msg 226 drivers/platform/chrome/cros_ec_sysfs.c msg->version = 0; msg 227 drivers/platform/chrome/cros_ec_sysfs.c msg->command = EC_CMD_FLASH_INFO + ec->cmd_offset; msg 228 drivers/platform/chrome/cros_ec_sysfs.c msg->insize = sizeof(*resp); msg 229 drivers/platform/chrome/cros_ec_sysfs.c msg->outsize = 0; msg 230 drivers/platform/chrome/cros_ec_sysfs.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); msg 234 drivers/platform/chrome/cros_ec_sysfs.c resp = (struct ec_response_flash_info *)msg->data; msg 242 drivers/platform/chrome/cros_ec_sysfs.c kfree(msg); msg 253 drivers/platform/chrome/cros_ec_sysfs.c struct cros_ec_command *msg; msg 256 drivers/platform/chrome/cros_ec_sysfs.c msg = kmalloc(sizeof(*msg) + EC_HOST_PARAM_SIZE, GFP_KERNEL); msg 257 drivers/platform/chrome/cros_ec_sysfs.c if (!msg) msg 260 drivers/platform/chrome/cros_ec_sysfs.c param = (struct ec_params_motion_sense *)msg->data; msg 261 drivers/platform/chrome/cros_ec_sysfs.c msg->command = EC_CMD_MOTION_SENSE_CMD + ec->cmd_offset; msg 262 drivers/platform/chrome/cros_ec_sysfs.c msg->version = 2; msg 265 drivers/platform/chrome/cros_ec_sysfs.c msg->outsize = sizeof(*param); msg 266 drivers/platform/chrome/cros_ec_sysfs.c msg->insize = sizeof(*resp); msg 268 drivers/platform/chrome/cros_ec_sysfs.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); msg 272 drivers/platform/chrome/cros_ec_sysfs.c resp = (struct ec_response_motion_sense *)msg->data; msg 275 drivers/platform/chrome/cros_ec_sysfs.c kfree(msg); msg 285 drivers/platform/chrome/cros_ec_sysfs.c struct cros_ec_command *msg; msg 293 drivers/platform/chrome/cros_ec_sysfs.c msg = kmalloc(sizeof(*msg) + EC_HOST_PARAM_SIZE, GFP_KERNEL); msg 294 drivers/platform/chrome/cros_ec_sysfs.c if (!msg) msg 297 drivers/platform/chrome/cros_ec_sysfs.c param = (struct ec_params_motion_sense *)msg->data; msg 298 drivers/platform/chrome/cros_ec_sysfs.c msg->command = EC_CMD_MOTION_SENSE_CMD + ec->cmd_offset; msg 299 drivers/platform/chrome/cros_ec_sysfs.c msg->version = 2; msg 302 drivers/platform/chrome/cros_ec_sysfs.c msg->outsize = sizeof(*param); msg 303 drivers/platform/chrome/cros_ec_sysfs.c msg->insize = sizeof(struct ec_response_motion_sense); msg 305 drivers/platform/chrome/cros_ec_sysfs.c ret = cros_ec_cmd_xfer_status(ec->ec_dev, msg); msg 306 drivers/platform/chrome/cros_ec_sysfs.c kfree(msg); msg 25 drivers/platform/chrome/cros_ec_vbc.c struct cros_ec_command *msg; msg 31 drivers/platform/chrome/cros_ec_vbc.c msg = kmalloc(sizeof(*msg) + payload, GFP_KERNEL); msg 32 drivers/platform/chrome/cros_ec_vbc.c if (!msg) msg 36 drivers/platform/chrome/cros_ec_vbc.c params = (struct ec_params_vbnvcontext *)msg->data; msg 39 drivers/platform/chrome/cros_ec_vbc.c msg->version = EC_VER_VBNV_CONTEXT; msg 40 drivers/platform/chrome/cros_ec_vbc.c msg->command = EC_CMD_VBNV_CONTEXT; msg 41 drivers/platform/chrome/cros_ec_vbc.c msg->outsize = para_sz; msg 42 drivers/platform/chrome/cros_ec_vbc.c msg->insize = resp_sz; msg 44 drivers/platform/chrome/cros_ec_vbc.c err = cros_ec_cmd_xfer(ecdev, msg); msg 47 drivers/platform/chrome/cros_ec_vbc.c kfree(msg); msg 51 drivers/platform/chrome/cros_ec_vbc.c memcpy(buf, msg->data, resp_sz); msg 53 drivers/platform/chrome/cros_ec_vbc.c kfree(msg); msg 65 drivers/platform/chrome/cros_ec_vbc.c struct cros_ec_command *msg; msg 74 drivers/platform/chrome/cros_ec_vbc.c msg = kmalloc(sizeof(*msg) + para_sz, GFP_KERNEL); msg 75 drivers/platform/chrome/cros_ec_vbc.c if (!msg) msg 78 drivers/platform/chrome/cros_ec_vbc.c params = (struct ec_params_vbnvcontext *)msg->data; msg 82 drivers/platform/chrome/cros_ec_vbc.c msg->version = EC_VER_VBNV_CONTEXT; msg 83 drivers/platform/chrome/cros_ec_vbc.c msg->command = EC_CMD_VBNV_CONTEXT; msg 84 drivers/platform/chrome/cros_ec_vbc.c msg->outsize = para_sz; msg 85 drivers/platform/chrome/cros_ec_vbc.c msg->insize = 0; msg 87 drivers/platform/chrome/cros_ec_vbc.c err = cros_ec_cmd_xfer(ecdev, msg); msg 90 drivers/platform/chrome/cros_ec_vbc.c kfree(msg); msg 94 drivers/platform/chrome/cros_ec_vbc.c kfree(msg); msg 65 drivers/platform/chrome/cros_usbpd_logger.c struct cros_ec_command *msg; msg 68 drivers/platform/chrome/cros_usbpd_logger.c msg = (struct cros_ec_command *)logger->ec_buffer; msg 70 drivers/platform/chrome/cros_usbpd_logger.c msg->command = ec_dev->cmd_offset + EC_CMD_PD_GET_LOG_ENTRY; msg 71 drivers/platform/chrome/cros_usbpd_logger.c msg->insize = CROS_USBPD_LOG_RESP_SIZE; msg 73 drivers/platform/chrome/cros_usbpd_logger.c ret = cros_ec_cmd_xfer_status(ec_dev->ec_dev, msg); msg 77 drivers/platform/chrome/cros_usbpd_logger.c return (struct ec_response_pd_log *)msg->data; msg 99 drivers/platform/chrome/wilco_ec/debugfs.c struct wilco_ec_message msg; msg 119 drivers/platform/chrome/wilco_ec/debugfs.c msg.type = request_data[0] << 8 | request_data[1]; msg 120 drivers/platform/chrome/wilco_ec/debugfs.c msg.flags = 0; msg 121 drivers/platform/chrome/wilco_ec/debugfs.c msg.request_data = request_data + 2; msg 122 drivers/platform/chrome/wilco_ec/debugfs.c msg.request_size = ret - 2; msg 124 drivers/platform/chrome/wilco_ec/debugfs.c msg.response_data = debug_info->raw_data; msg 125 drivers/platform/chrome/wilco_ec/debugfs.c msg.response_size = EC_MAILBOX_DATA_SIZE; msg 127 drivers/platform/chrome/wilco_ec/debugfs.c ret = wilco_ec_mailbox(debug_info->ec, &msg); msg 180 drivers/platform/chrome/wilco_ec/debugfs.c struct wilco_ec_message msg; msg 187 drivers/platform/chrome/wilco_ec/debugfs.c memset(&msg, 0, sizeof(msg)); msg 188 drivers/platform/chrome/wilco_ec/debugfs.c msg.type = WILCO_EC_MSG_LEGACY; msg 189 drivers/platform/chrome/wilco_ec/debugfs.c msg.request_data = &rq; msg 190 drivers/platform/chrome/wilco_ec/debugfs.c msg.request_size = sizeof(rq); msg 191 drivers/platform/chrome/wilco_ec/debugfs.c msg.response_data = &rs; msg 192 drivers/platform/chrome/wilco_ec/debugfs.c msg.response_size = sizeof(rs); msg 193 drivers/platform/chrome/wilco_ec/debugfs.c ret = wilco_ec_mailbox(ec, &msg); msg 91 drivers/platform/chrome/wilco_ec/mailbox.c static void wilco_ec_prepare(struct wilco_ec_message *msg, msg 96 drivers/platform/chrome/wilco_ec/mailbox.c rq->mailbox_id = msg->type; msg 98 drivers/platform/chrome/wilco_ec/mailbox.c rq->data_size = msg->request_size; msg 102 drivers/platform/chrome/wilco_ec/mailbox.c rq->checksum += wilco_ec_checksum(msg->request_data, msg->request_size); msg 116 drivers/platform/chrome/wilco_ec/mailbox.c struct wilco_ec_message *msg, msg 125 drivers/platform/chrome/wilco_ec/mailbox.c cros_ec_lpc_io_bytes_mec(MEC_IO_WRITE, sizeof(*rq), msg->request_size, msg 126 drivers/platform/chrome/wilco_ec/mailbox.c msg->request_data); msg 132 drivers/platform/chrome/wilco_ec/mailbox.c if (msg->flags & WILCO_EC_FLAG_NO_RESPONSE) { msg 171 drivers/platform/chrome/wilco_ec/mailbox.c if (rs->data_size < msg->response_size) { msg 173 drivers/platform/chrome/wilco_ec/mailbox.c rs->data_size, msg->response_size); msg 177 drivers/platform/chrome/wilco_ec/mailbox.c memcpy(msg->response_data, rs->data, msg->response_size); msg 196 drivers/platform/chrome/wilco_ec/mailbox.c int wilco_ec_mailbox(struct wilco_ec_device *ec, struct wilco_ec_message *msg) msg 202 drivers/platform/chrome/wilco_ec/mailbox.c msg->type, msg->flags, msg->response_size, msg->request_size); msg 207 drivers/platform/chrome/wilco_ec/mailbox.c wilco_ec_prepare(msg, rq); msg 209 drivers/platform/chrome/wilco_ec/mailbox.c ret = wilco_ec_transfer(ec, msg, rq); msg 104 drivers/platform/chrome/wilco_ec/properties.c struct wilco_ec_property_msg msg; msg 107 drivers/platform/chrome/wilco_ec/properties.c msg.property_id = property_id; msg 109 drivers/platform/chrome/wilco_ec/properties.c ret = wilco_ec_get_property(ec, &msg); msg 112 drivers/platform/chrome/wilco_ec/properties.c if (msg.length != 1) msg 115 drivers/platform/chrome/wilco_ec/properties.c *val = msg.data[0]; msg 124 drivers/platform/chrome/wilco_ec/properties.c struct wilco_ec_property_msg msg; msg 126 drivers/platform/chrome/wilco_ec/properties.c msg.property_id = property_id; msg 127 drivers/platform/chrome/wilco_ec/properties.c msg.data[0] = val; msg 128 drivers/platform/chrome/wilco_ec/properties.c msg.length = 1; msg 130 drivers/platform/chrome/wilco_ec/properties.c return wilco_ec_set_property(ec, &msg); msg 51 drivers/platform/chrome/wilco_ec/sysfs.c struct wilco_ec_message msg; msg 66 drivers/platform/chrome/wilco_ec/sysfs.c memset(&msg, 0, sizeof(msg)); msg 67 drivers/platform/chrome/wilco_ec/sysfs.c msg.type = WILCO_EC_MSG_LEGACY; msg 68 drivers/platform/chrome/wilco_ec/sysfs.c msg.request_data = &rq; msg 69 drivers/platform/chrome/wilco_ec/sysfs.c msg.request_size = sizeof(rq); msg 70 drivers/platform/chrome/wilco_ec/sysfs.c ret = wilco_ec_mailbox(ec, &msg); msg 86 drivers/platform/chrome/wilco_ec/sysfs.c struct wilco_ec_message msg = { msg 94 drivers/platform/chrome/wilco_ec/sysfs.c ret = wilco_ec_mailbox(ec, &msg); msg 269 drivers/platform/chrome/wilco_ec/telemetry.c struct wilco_ec_message msg = {}; msg 282 drivers/platform/chrome/wilco_ec/telemetry.c msg.type = WILCO_EC_MSG_TELEMETRY; msg 283 drivers/platform/chrome/wilco_ec/telemetry.c msg.request_data = &sess_data->request; msg 284 drivers/platform/chrome/wilco_ec/telemetry.c msg.request_size = sizeof(sess_data->request); msg 285 drivers/platform/chrome/wilco_ec/telemetry.c msg.response_data = sess_data->response; msg 286 drivers/platform/chrome/wilco_ec/telemetry.c msg.response_size = sizeof(sess_data->response); msg 288 drivers/platform/chrome/wilco_ec/telemetry.c ret = wilco_ec_mailbox(sess_data->dev_data->ec, &msg); msg 225 drivers/platform/olpc/olpc-xo175-ec.c struct spi_message msg; msg 283 drivers/platform/olpc/olpc-xo175-ec.c spi_message_init_with_transfers(&priv->msg, &priv->xfer, 1); msg 285 drivers/platform/olpc/olpc-xo175-ec.c priv->msg.complete = olpc_xo175_ec_complete; msg 286 drivers/platform/olpc/olpc-xo175-ec.c priv->msg.context = priv; msg 288 drivers/platform/olpc/olpc-xo175-ec.c ret = spi_async(priv->spi, &priv->msg); msg 310 drivers/platform/olpc/olpc-xo175-ec.c ret = priv->msg.status; msg 190 drivers/power/supply/bq2415x_charger.c struct i2c_msg msg[2]; msg 197 drivers/power/supply/bq2415x_charger.c msg[0].addr = client->addr; msg 198 drivers/power/supply/bq2415x_charger.c msg[0].flags = 0; msg 199 drivers/power/supply/bq2415x_charger.c msg[0].buf = ® msg 200 drivers/power/supply/bq2415x_charger.c msg[0].len = sizeof(reg); msg 201 drivers/power/supply/bq2415x_charger.c msg[1].addr = client->addr; msg 202 drivers/power/supply/bq2415x_charger.c msg[1].flags = I2C_M_RD; msg 203 drivers/power/supply/bq2415x_charger.c msg[1].buf = &val; msg 204 drivers/power/supply/bq2415x_charger.c msg[1].len = sizeof(val); msg 207 drivers/power/supply/bq2415x_charger.c ret = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg)); msg 245 drivers/power/supply/bq2415x_charger.c struct i2c_msg msg[1]; msg 252 drivers/power/supply/bq2415x_charger.c msg[0].addr = client->addr; msg 253 drivers/power/supply/bq2415x_charger.c msg[0].flags = 0; msg 254 drivers/power/supply/bq2415x_charger.c msg[0].buf = data; msg 255 drivers/power/supply/bq2415x_charger.c msg[0].len = ARRAY_SIZE(data); msg 258 drivers/power/supply/bq2415x_charger.c ret = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg)); msg 873 drivers/power/supply/bq2415x_charger.c static void bq2415x_timer_error(struct bq2415x_device *bq, const char *msg) msg 875 drivers/power/supply/bq2415x_charger.c bq->timer_error = msg; msg 877 drivers/power/supply/bq2415x_charger.c dev_err(bq->dev, "%s\n", msg); msg 40 drivers/power/supply/bq27xxx_battery_i2c.c struct i2c_msg msg[2]; msg 47 drivers/power/supply/bq27xxx_battery_i2c.c msg[0].addr = client->addr; msg 48 drivers/power/supply/bq27xxx_battery_i2c.c msg[0].flags = 0; msg 49 drivers/power/supply/bq27xxx_battery_i2c.c msg[0].buf = ® msg 50 drivers/power/supply/bq27xxx_battery_i2c.c msg[0].len = sizeof(reg); msg 51 drivers/power/supply/bq27xxx_battery_i2c.c msg[1].addr = client->addr; msg 52 drivers/power/supply/bq27xxx_battery_i2c.c msg[1].flags = I2C_M_RD; msg 53 drivers/power/supply/bq27xxx_battery_i2c.c msg[1].buf = data; msg 55 drivers/power/supply/bq27xxx_battery_i2c.c msg[1].len = 1; msg 57 drivers/power/supply/bq27xxx_battery_i2c.c msg[1].len = 2; msg 59 drivers/power/supply/bq27xxx_battery_i2c.c ret = i2c_transfer(client->adapter, msg, ARRAY_SIZE(msg)); msg 75 drivers/power/supply/bq27xxx_battery_i2c.c struct i2c_msg msg; msg 85 drivers/power/supply/bq27xxx_battery_i2c.c msg.len = 2; msg 88 drivers/power/supply/bq27xxx_battery_i2c.c msg.len = 3; msg 91 drivers/power/supply/bq27xxx_battery_i2c.c msg.buf = data; msg 92 drivers/power/supply/bq27xxx_battery_i2c.c msg.addr = client->addr; msg 93 drivers/power/supply/bq27xxx_battery_i2c.c msg.flags = 0; msg 95 drivers/power/supply/bq27xxx_battery_i2c.c ret = i2c_transfer(client->adapter, &msg, 1); msg 124 drivers/power/supply/bq27xxx_battery_i2c.c struct i2c_msg msg; msg 134 drivers/power/supply/bq27xxx_battery_i2c.c msg.buf = buf; msg 135 drivers/power/supply/bq27xxx_battery_i2c.c msg.addr = client->addr; msg 136 drivers/power/supply/bq27xxx_battery_i2c.c msg.flags = 0; msg 137 drivers/power/supply/bq27xxx_battery_i2c.c msg.len = len + 1; msg 139 drivers/power/supply/bq27xxx_battery_i2c.c ret = i2c_transfer(client->adapter, &msg, 1); msg 2013 drivers/power/supply/charger-manager.c char *msg) msg 2047 drivers/power/supply/charger-manager.c uevent_notify(cm, msg ? msg : default_event_names[type]); msg 104 drivers/power/supply/cros_usbpd-charger.c struct cros_ec_command *msg; msg 107 drivers/power/supply/cros_usbpd-charger.c msg = kzalloc(sizeof(*msg) + max(outsize, insize), GFP_KERNEL); msg 108 drivers/power/supply/cros_usbpd-charger.c if (!msg) msg 111 drivers/power/supply/cros_usbpd-charger.c msg->version = version; msg 112 drivers/power/supply/cros_usbpd-charger.c msg->command = ec_dev->cmd_offset + command; msg 113 drivers/power/supply/cros_usbpd-charger.c msg->outsize = outsize; msg 114 drivers/power/supply/cros_usbpd-charger.c msg->insize = insize; msg 117 drivers/power/supply/cros_usbpd-charger.c memcpy(msg->data, outdata, outsize); msg 119 drivers/power/supply/cros_usbpd-charger.c ret = cros_ec_cmd_xfer_status(charger->ec_device, msg); msg 121 drivers/power/supply/cros_usbpd-charger.c memcpy(indata, msg->data, insize); msg 123 drivers/power/supply/cros_usbpd-charger.c kfree(msg); msg 36 drivers/pwm/pwm-cros-ec.c struct cros_ec_command msg; msg 40 drivers/pwm/pwm-cros-ec.c struct cros_ec_command *msg = &buf.msg; msg 44 drivers/pwm/pwm-cros-ec.c msg->version = 0; msg 45 drivers/pwm/pwm-cros-ec.c msg->command = EC_CMD_PWM_SET_DUTY; msg 46 drivers/pwm/pwm-cros-ec.c msg->insize = 0; msg 47 drivers/pwm/pwm-cros-ec.c msg->outsize = sizeof(*params); msg 53 drivers/pwm/pwm-cros-ec.c return cros_ec_cmd_xfer_status(ec, msg); msg 60 drivers/pwm/pwm-cros-ec.c struct cros_ec_command msg; msg 68 drivers/pwm/pwm-cros-ec.c struct cros_ec_command *msg = &buf.msg; msg 73 drivers/pwm/pwm-cros-ec.c msg->version = 0; msg 74 drivers/pwm/pwm-cros-ec.c msg->command = EC_CMD_PWM_GET_DUTY; msg 75 drivers/pwm/pwm-cros-ec.c msg->insize = sizeof(*resp); msg 76 drivers/pwm/pwm-cros-ec.c msg->outsize = sizeof(*params); msg 81 drivers/pwm/pwm-cros-ec.c ret = cros_ec_cmd_xfer_status(ec, msg); msg 83 drivers/pwm/pwm-cros-ec.c *result = msg->result; msg 1509 drivers/rapidio/devices/rio_mport_cdev.c static int rio_mport_match_pw(union rio_pw_msg *msg, msg 1512 drivers/rapidio/devices/rio_mport_cdev.c if ((msg->em.comptag & filter->mask) < filter->low || msg 1513 drivers/rapidio/devices/rio_mport_cdev.c (msg->em.comptag & filter->mask) > filter->high) msg 1519 drivers/rapidio/devices/rio_mport_cdev.c union rio_pw_msg *msg, int step) msg 1528 drivers/rapidio/devices/rio_mport_cdev.c memcpy(event.u.portwrite.payload, msg->raw, RIO_PW_MSG_SIZE); msg 1533 drivers/rapidio/devices/rio_mport_cdev.c if (rio_mport_match_pw(msg, &pw_filter->filter)) { msg 1544 drivers/rapidio/devices/rio_mport_cdev.c mport->id, msg->em.comptag); msg 392 drivers/rapidio/devices/tsi721.c u64 msg; msg 409 drivers/rapidio/devices/tsi721.c idb.msg = *idb_entry; msg 39 drivers/rapidio/rio.c union rio_pw_msg *msg, int step); msg 564 drivers/rapidio/rio.c void *context, union rio_pw_msg *msg, int step)) msg 591 drivers/rapidio/rio.c void *context, union rio_pw_msg *msg, int step)) msg 621 drivers/rapidio/rio.c int (*pwcback)(struct rio_dev *rdev, union rio_pw_msg *msg, int step)) msg 302 drivers/rapidio/rio_cm.c void *msg; msg 305 drivers/rapidio/rio_cm.c msg = rio_get_inb_message(cm->mport, cmbox); msg 306 drivers/rapidio/rio_cm.c if (msg) { msg 308 drivers/rapidio/rio_cm.c if (cm->rx_buf[i] == msg) { msg 316 drivers/rapidio/rio_cm.c riocm_warn("no record for buffer 0x%p", msg); msg 319 drivers/rapidio/rio_cm.c return msg; msg 1835 drivers/rapidio/rio_cm.c struct rio_cm_msg msg; msg 1839 drivers/rapidio/rio_cm.c if (copy_from_user(&msg, arg, sizeof(msg))) msg 1841 drivers/rapidio/rio_cm.c if (msg.size > RIO_MAX_MSG_SIZE) msg 1844 drivers/rapidio/rio_cm.c buf = memdup_user((void __user *)(uintptr_t)msg.msg, msg.size); msg 1848 drivers/rapidio/rio_cm.c ret = riocm_ch_send(msg.ch_num, buf, msg.size); msg 1860 drivers/rapidio/rio_cm.c struct rio_cm_msg msg; msg 1866 drivers/rapidio/rio_cm.c if (copy_from_user(&msg, arg, sizeof(msg))) msg 1869 drivers/rapidio/rio_cm.c if (msg.ch_num == 0 || msg.size == 0) msg 1872 drivers/rapidio/rio_cm.c ch = riocm_get_channel(msg.ch_num); msg 1876 drivers/rapidio/rio_cm.c rxto = msg.rxto ? msecs_to_jiffies(msg.rxto) : MAX_SCHEDULE_TIMEOUT; msg 1882 drivers/rapidio/rio_cm.c msg_size = min(msg.size, (u16)(RIO_MAX_MSG_SIZE)); msg 1884 drivers/rapidio/rio_cm.c if (copy_to_user((void __user *)(uintptr_t)msg.msg, buf, msg_size)) msg 155 drivers/regulator/twl-regulator.c static int twl4030_send_pb_msg(unsigned msg) msg 176 drivers/regulator/twl-regulator.c ret = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, msg >> 8, msg 181 drivers/regulator/twl-regulator.c ret = twl_i2c_write_u8(TWL_MODULE_PM_MASTER, msg & 0xff, msg 62 drivers/remoteproc/omap_remoteproc.c u32 msg = (u32)data; msg 64 drivers/remoteproc/omap_remoteproc.c dev_dbg(dev, "mbox msg: 0x%x\n", msg); msg 66 drivers/remoteproc/omap_remoteproc.c switch (msg) { msg 76 drivers/remoteproc/omap_remoteproc.c if (rproc_vq_interrupt(oproc->rproc, msg) == IRQ_NONE) msg 77 drivers/remoteproc/omap_remoteproc.c dev_dbg(dev, "no message was found in vqid %d\n", msg); msg 56 drivers/remoteproc/qcom_q6v5.c char *msg; msg 64 drivers/remoteproc/qcom_q6v5.c msg = qcom_smem_get(QCOM_SMEM_HOST_ANY, q6v5->crash_reason, &len); msg 65 drivers/remoteproc/qcom_q6v5.c if (!IS_ERR(msg) && len > 0 && msg[0]) msg 66 drivers/remoteproc/qcom_q6v5.c dev_err(q6v5->dev, "watchdog received: %s\n", msg); msg 79 drivers/remoteproc/qcom_q6v5.c char *msg; msg 81 drivers/remoteproc/qcom_q6v5.c msg = qcom_smem_get(QCOM_SMEM_HOST_ANY, q6v5->crash_reason, &len); msg 82 drivers/remoteproc/qcom_q6v5.c if (!IS_ERR(msg) && len > 0 && msg[0]) msg 83 drivers/remoteproc/qcom_q6v5.c dev_err(q6v5->dev, "fatal error received: %s\n", msg); msg 323 drivers/remoteproc/qcom_wcnss.c char *msg; msg 325 drivers/remoteproc/qcom_wcnss.c msg = qcom_smem_get(QCOM_SMEM_HOST_ANY, WCNSS_CRASH_REASON_SMEM, &len); msg 326 drivers/remoteproc/qcom_wcnss.c if (!IS_ERR(msg) && len > 0 && msg[0]) msg 327 drivers/remoteproc/qcom_wcnss.c dev_err(wcnss->dev, "fatal error received: %s\n", msg); msg 56 drivers/remoteproc/st_remoteproc.c static void st_rproc_mbox_callback(struct device *dev, u32 msg) msg 60 drivers/remoteproc/st_remoteproc.c if (rproc_vq_interrupt(rproc, msg) == IRQ_NONE) msg 61 drivers/remoteproc/st_remoteproc.c dev_dbg(dev, "no message was found in vqid %d\n", msg); msg 22 drivers/reset/tegra/reset-bpmp.c struct tegra_bpmp_message msg; msg 28 drivers/reset/tegra/reset-bpmp.c memset(&msg, 0, sizeof(msg)); msg 29 drivers/reset/tegra/reset-bpmp.c msg.mrq = MRQ_RESET; msg 30 drivers/reset/tegra/reset-bpmp.c msg.tx.data = &request; msg 31 drivers/reset/tegra/reset-bpmp.c msg.tx.size = sizeof(request); msg 33 drivers/reset/tegra/reset-bpmp.c return tegra_bpmp_transfer(bpmp, &msg); msg 51 drivers/rpmsg/qcom_glink_native.c struct glink_msg msg; msg 345 drivers/rpmsg/qcom_glink_native.c struct glink_msg msg; msg 347 drivers/rpmsg/qcom_glink_native.c msg.cmd = cpu_to_le16(RPM_CMD_VERSION); msg 348 drivers/rpmsg/qcom_glink_native.c msg.param1 = cpu_to_le16(GLINK_VERSION_1); msg 349 drivers/rpmsg/qcom_glink_native.c msg.param2 = cpu_to_le32(glink->features); msg 351 drivers/rpmsg/qcom_glink_native.c return qcom_glink_tx(glink, &msg, sizeof(msg), NULL, 0, true); msg 356 drivers/rpmsg/qcom_glink_native.c struct glink_msg msg; msg 358 drivers/rpmsg/qcom_glink_native.c msg.cmd = cpu_to_le16(RPM_CMD_VERSION_ACK); msg 359 drivers/rpmsg/qcom_glink_native.c msg.param1 = cpu_to_le16(GLINK_VERSION_1); msg 360 drivers/rpmsg/qcom_glink_native.c msg.param2 = cpu_to_le32(glink->features); msg 362 drivers/rpmsg/qcom_glink_native.c qcom_glink_tx(glink, &msg, sizeof(msg), NULL, 0, true); msg 368 drivers/rpmsg/qcom_glink_native.c struct glink_msg msg; msg 370 drivers/rpmsg/qcom_glink_native.c msg.cmd = cpu_to_le16(RPM_CMD_OPEN_ACK); msg 371 drivers/rpmsg/qcom_glink_native.c msg.param1 = cpu_to_le16(channel->rcid); msg 372 drivers/rpmsg/qcom_glink_native.c msg.param2 = cpu_to_le32(0); msg 374 drivers/rpmsg/qcom_glink_native.c qcom_glink_tx(glink, &msg, sizeof(msg), NULL, 0, true); msg 409 drivers/rpmsg/qcom_glink_native.c struct glink_msg msg; msg 413 drivers/rpmsg/qcom_glink_native.c int req_len = ALIGN(sizeof(req.msg) + name_len, 8); msg 429 drivers/rpmsg/qcom_glink_native.c req.msg.cmd = cpu_to_le16(RPM_CMD_OPEN); msg 430 drivers/rpmsg/qcom_glink_native.c req.msg.param1 = cpu_to_le16(channel->lcid); msg 431 drivers/rpmsg/qcom_glink_native.c req.msg.param2 = cpu_to_le32(name_len); msg 607 drivers/rpmsg/qcom_glink_native.c struct glink_msg msg; msg 609 drivers/rpmsg/qcom_glink_native.c msg.cmd = cpu_to_le16(RPM_CMD_RX_INTENT_REQ_ACK); msg 610 drivers/rpmsg/qcom_glink_native.c msg.param1 = cpu_to_le16(channel->lcid); msg 611 drivers/rpmsg/qcom_glink_native.c msg.param2 = cpu_to_le32(granted); msg 613 drivers/rpmsg/qcom_glink_native.c qcom_glink_tx(glink, &msg, sizeof(msg), NULL, 0, true); msg 774 drivers/rpmsg/qcom_glink_native.c qcom_glink_rx_peak(glink, &dcmd->msg, 0, sizeof(dcmd->msg) + extra); msg 781 drivers/rpmsg/qcom_glink_native.c qcom_glink_rx_advance(glink, sizeof(dcmd->msg) + extra); msg 791 drivers/rpmsg/qcom_glink_native.c struct glink_msg msg; msg 816 drivers/rpmsg/qcom_glink_native.c rcid = le16_to_cpu(hdr.msg.param1); msg 850 drivers/rpmsg/qcom_glink_native.c liid = le32_to_cpu(hdr.msg.param2); msg 912 drivers/rpmsg/qcom_glink_native.c struct glink_msg msg; msg 914 drivers/rpmsg/qcom_glink_native.c } __packed * msg; msg 916 drivers/rpmsg/qcom_glink_native.c const size_t msglen = struct_size(msg, intents, count); msg 934 drivers/rpmsg/qcom_glink_native.c msg = kmalloc(msglen, GFP_ATOMIC); msg 935 drivers/rpmsg/qcom_glink_native.c if (!msg) msg 938 drivers/rpmsg/qcom_glink_native.c qcom_glink_rx_peak(glink, msg, 0, msglen); msg 945 drivers/rpmsg/qcom_glink_native.c intent->id = le32_to_cpu(msg->intents[i].iid); msg 946 drivers/rpmsg/qcom_glink_native.c intent->size = le32_to_cpu(msg->intents[i].size); msg 957 drivers/rpmsg/qcom_glink_native.c kfree(msg); msg 981 drivers/rpmsg/qcom_glink_native.c struct glink_msg msg; msg 990 drivers/rpmsg/qcom_glink_native.c if (avail < sizeof(msg)) msg 993 drivers/rpmsg/qcom_glink_native.c qcom_glink_rx_peak(glink, &msg, 0, sizeof(msg)); msg 995 drivers/rpmsg/qcom_glink_native.c cmd = le16_to_cpu(msg.cmd); msg 996 drivers/rpmsg/qcom_glink_native.c param1 = le16_to_cpu(msg.param1); msg 997 drivers/rpmsg/qcom_glink_native.c param2 = le32_to_cpu(msg.param2); msg 1009 drivers/rpmsg/qcom_glink_native.c qcom_glink_rx_advance(glink, ALIGN(sizeof(msg), 8)); msg 1019 drivers/rpmsg/qcom_glink_native.c qcom_glink_rx_advance(glink, ALIGN(sizeof(msg), 8)); msg 1029 drivers/rpmsg/qcom_glink_native.c qcom_glink_rx_advance(glink, ALIGN(sizeof(msg), 8)); msg 1033 drivers/rpmsg/qcom_glink_native.c qcom_glink_rx_advance(glink, ALIGN(sizeof(msg), 8)); msg 1037 drivers/rpmsg/qcom_glink_native.c qcom_glink_rx_advance(glink, ALIGN(sizeof(msg), 8)); msg 1267 drivers/rpmsg/qcom_glink_native.c struct glink_msg msg; msg 1306 drivers/rpmsg/qcom_glink_native.c req.msg.cmd = cpu_to_le16(RPM_CMD_TX_DATA); msg 1307 drivers/rpmsg/qcom_glink_native.c req.msg.param1 = cpu_to_le16(channel->lcid); msg 1308 drivers/rpmsg/qcom_glink_native.c req.msg.param2 = cpu_to_le32(iid); msg 1515 drivers/rpmsg/qcom_glink_native.c struct glink_msg *msg; msg 1532 drivers/rpmsg/qcom_glink_native.c msg = &dcmd->msg; msg 1533 drivers/rpmsg/qcom_glink_native.c cmd = le16_to_cpu(msg->cmd); msg 1534 drivers/rpmsg/qcom_glink_native.c param1 = le16_to_cpu(msg->param1); msg 1535 drivers/rpmsg/qcom_glink_native.c param2 = le32_to_cpu(msg->param2); msg 1545 drivers/rpmsg/qcom_glink_native.c qcom_glink_rx_open(glink, param1, msg->data); msg 562 drivers/rpmsg/virtio_rpmsg_bus.c struct rpmsg_hdr *msg; msg 586 drivers/rpmsg/virtio_rpmsg_bus.c msg = get_a_tx_buf(vrp); msg 587 drivers/rpmsg/virtio_rpmsg_bus.c if (!msg && !wait) msg 591 drivers/rpmsg/virtio_rpmsg_bus.c while (!msg) { msg 602 drivers/rpmsg/virtio_rpmsg_bus.c (msg = get_a_tx_buf(vrp)), msg 615 drivers/rpmsg/virtio_rpmsg_bus.c msg->len = len; msg 616 drivers/rpmsg/virtio_rpmsg_bus.c msg->flags = 0; msg 617 drivers/rpmsg/virtio_rpmsg_bus.c msg->src = src; msg 618 drivers/rpmsg/virtio_rpmsg_bus.c msg->dst = dst; msg 619 drivers/rpmsg/virtio_rpmsg_bus.c msg->reserved = 0; msg 620 drivers/rpmsg/virtio_rpmsg_bus.c memcpy(msg->data, data, len); msg 623 drivers/rpmsg/virtio_rpmsg_bus.c msg->src, msg->dst, msg->len, msg->flags, msg->reserved); msg 626 drivers/rpmsg/virtio_rpmsg_bus.c msg, sizeof(*msg) + msg->len, true); msg 629 drivers/rpmsg/virtio_rpmsg_bus.c rpmsg_sg_init(&sg, msg, sizeof(*msg) + len); msg 634 drivers/rpmsg/virtio_rpmsg_bus.c err = virtqueue_add_outbuf(vrp->svq, &sg, 1, msg, GFP_KERNEL); msg 703 drivers/rpmsg/virtio_rpmsg_bus.c struct rpmsg_hdr *msg, unsigned int len) msg 710 drivers/rpmsg/virtio_rpmsg_bus.c msg->src, msg->dst, msg->len, msg->flags, msg->reserved); msg 713 drivers/rpmsg/virtio_rpmsg_bus.c msg, sizeof(*msg) + msg->len, true); msg 721 drivers/rpmsg/virtio_rpmsg_bus.c msg->len > (len - sizeof(struct rpmsg_hdr))) { msg 722 drivers/rpmsg/virtio_rpmsg_bus.c dev_warn(dev, "inbound msg too big: (%d, %d)\n", len, msg->len); msg 729 drivers/rpmsg/virtio_rpmsg_bus.c ept = idr_find(&vrp->endpoints, msg->dst); msg 742 drivers/rpmsg/virtio_rpmsg_bus.c ept->cb(ept->rpdev, msg->data, msg->len, ept->priv, msg 743 drivers/rpmsg/virtio_rpmsg_bus.c msg->src); msg 753 drivers/rpmsg/virtio_rpmsg_bus.c rpmsg_sg_init(&sg, msg, vrp->buf_size); msg 756 drivers/rpmsg/virtio_rpmsg_bus.c err = virtqueue_add_inbuf(vrp->rvq, &sg, 1, msg, GFP_KERNEL); msg 770 drivers/rpmsg/virtio_rpmsg_bus.c struct rpmsg_hdr *msg; msg 774 drivers/rpmsg/virtio_rpmsg_bus.c msg = virtqueue_get_buf(rvq, &len); msg 775 drivers/rpmsg/virtio_rpmsg_bus.c if (!msg) { msg 780 drivers/rpmsg/virtio_rpmsg_bus.c while (msg) { msg 781 drivers/rpmsg/virtio_rpmsg_bus.c err = rpmsg_recv_single(vrp, dev, msg, len); msg 787 drivers/rpmsg/virtio_rpmsg_bus.c msg = virtqueue_get_buf(rvq, &len); msg 818 drivers/rpmsg/virtio_rpmsg_bus.c struct rpmsg_ns_msg *msg = data; msg 830 drivers/rpmsg/virtio_rpmsg_bus.c if (len != sizeof(*msg)) { msg 847 drivers/rpmsg/virtio_rpmsg_bus.c msg->name[RPMSG_NAME_SIZE - 1] = '\0'; msg 850 drivers/rpmsg/virtio_rpmsg_bus.c msg->flags & RPMSG_NS_DESTROY ? "destroy" : "creat", msg 851 drivers/rpmsg/virtio_rpmsg_bus.c msg->name, msg->addr); msg 853 drivers/rpmsg/virtio_rpmsg_bus.c strncpy(chinfo.name, msg->name, sizeof(chinfo.name)); msg 855 drivers/rpmsg/virtio_rpmsg_bus.c chinfo.dst = msg->addr; msg 857 drivers/rpmsg/virtio_rpmsg_bus.c if (msg->flags & RPMSG_NS_DESTROY) { msg 38 drivers/rtc/rtc-cros-ec.c struct cros_ec_command msg; msg 40 drivers/rtc/rtc-cros-ec.c } __packed msg; msg 42 drivers/rtc/rtc-cros-ec.c memset(&msg, 0, sizeof(msg)); msg 43 drivers/rtc/rtc-cros-ec.c msg.msg.command = command; msg 44 drivers/rtc/rtc-cros-ec.c msg.msg.insize = sizeof(msg.data); msg 46 drivers/rtc/rtc-cros-ec.c ret = cros_ec_cmd_xfer_status(cros_ec, &msg.msg); msg 55 drivers/rtc/rtc-cros-ec.c *response = msg.data.time; msg 65 drivers/rtc/rtc-cros-ec.c struct cros_ec_command msg; msg 67 drivers/rtc/rtc-cros-ec.c } __packed msg; msg 69 drivers/rtc/rtc-cros-ec.c memset(&msg, 0, sizeof(msg)); msg 70 drivers/rtc/rtc-cros-ec.c msg.msg.command = command; msg 71 drivers/rtc/rtc-cros-ec.c msg.msg.outsize = sizeof(msg.data); msg 72 drivers/rtc/rtc-cros-ec.c msg.data.time = param; msg 74 drivers/rtc/rtc-cros-ec.c ret = cros_ec_cmd_xfer_status(cros_ec, &msg.msg); msg 85 drivers/rtc/rtc-em3027.c struct i2c_msg msg = { msg 101 drivers/rtc/rtc-em3027.c if ((i2c_transfer(client->adapter, &msg, 1)) != 1) { msg 49 drivers/rtc/rtc-fm3130.c struct i2c_msg msg[4]; msg 107 drivers/rtc/rtc-fm3130.c tmp = i2c_transfer(fm3130->client->adapter, fm3130->msg, 2); msg 199 drivers/rtc/rtc-fm3130.c tmp = i2c_transfer(fm3130->client->adapter, &fm3130->msg[2], 2); msg 366 drivers/rtc/rtc-fm3130.c fm3130->msg[0].addr = client->addr; msg 367 drivers/rtc/rtc-fm3130.c fm3130->msg[0].flags = 0; msg 368 drivers/rtc/rtc-fm3130.c fm3130->msg[0].len = 1; msg 369 drivers/rtc/rtc-fm3130.c fm3130->msg[0].buf = &fm3130->reg_addr_time; msg 371 drivers/rtc/rtc-fm3130.c fm3130->msg[1].addr = client->addr; msg 372 drivers/rtc/rtc-fm3130.c fm3130->msg[1].flags = I2C_M_RD; msg 373 drivers/rtc/rtc-fm3130.c fm3130->msg[1].len = FM3130_CLOCK_REGS; msg 374 drivers/rtc/rtc-fm3130.c fm3130->msg[1].buf = &fm3130->regs[FM3130_RTC_SECONDS]; msg 377 drivers/rtc/rtc-fm3130.c fm3130->msg[2].addr = client->addr; msg 378 drivers/rtc/rtc-fm3130.c fm3130->msg[2].flags = 0; msg 379 drivers/rtc/rtc-fm3130.c fm3130->msg[2].len = 1; msg 380 drivers/rtc/rtc-fm3130.c fm3130->msg[2].buf = &fm3130->reg_addr_alarm; msg 382 drivers/rtc/rtc-fm3130.c fm3130->msg[3].addr = client->addr; msg 383 drivers/rtc/rtc-fm3130.c fm3130->msg[3].flags = I2C_M_RD; msg 384 drivers/rtc/rtc-fm3130.c fm3130->msg[3].len = FM3130_ALARM_REGS; msg 385 drivers/rtc/rtc-fm3130.c fm3130->msg[3].buf = &fm3130->regs[FM3130_ALARM_SECONDS]; msg 390 drivers/rtc/rtc-fm3130.c tmp = i2c_transfer(adapter, fm3130->msg, 4); msg 44 drivers/rtc/rtc-imx-sc.c struct imx_sc_msg_timer_get_rtc_time msg; msg 45 drivers/rtc/rtc-imx-sc.c struct imx_sc_rpc_msg *hdr = &msg.hdr; msg 53 drivers/rtc/rtc-imx-sc.c ret = imx_scu_call_rpc(rtc_ipc_handle, &msg, true); msg 59 drivers/rtc/rtc-imx-sc.c rtc_time64_to_tm(msg.time, tm); msg 95 drivers/rtc/rtc-imx-sc.c struct imx_sc_msg_timer_rtc_set_alarm msg; msg 96 drivers/rtc/rtc-imx-sc.c struct imx_sc_rpc_msg *hdr = &msg.hdr; msg 105 drivers/rtc/rtc-imx-sc.c msg.year = alrm_tm->tm_year + 1900; msg 106 drivers/rtc/rtc-imx-sc.c msg.mon = alrm_tm->tm_mon + 1; msg 107 drivers/rtc/rtc-imx-sc.c msg.day = alrm_tm->tm_mday; msg 108 drivers/rtc/rtc-imx-sc.c msg.hour = alrm_tm->tm_hour; msg 109 drivers/rtc/rtc-imx-sc.c msg.min = alrm_tm->tm_min; msg 110 drivers/rtc/rtc-imx-sc.c msg.sec = alrm_tm->tm_sec; msg 112 drivers/rtc/rtc-imx-sc.c ret = imx_scu_call_rpc(rtc_ipc_handle, &msg, true); msg 78 drivers/rtc/rtc-isl12026.c struct i2c_msg msg = { msg 89 drivers/rtc/rtc-isl12026.c msg.len = 3; msg 90 drivers/rtc/rtc-isl12026.c ret = i2c_transfer(client->adapter, &msg, 1); msg 99 drivers/rtc/rtc-isl12026.c msg.len = 3; msg 100 drivers/rtc/rtc-isl12026.c ret = i2c_transfer(client->adapter, &msg, 1); msg 117 drivers/rtc/rtc-isl12026.c struct i2c_msg msg = { msg 124 drivers/rtc/rtc-isl12026.c ret = i2c_transfer(client->adapter, &msg, 1); msg 140 drivers/rtc/rtc-isl12026.c struct i2c_msg msg = { msg 151 drivers/rtc/rtc-isl12026.c ret = i2c_transfer(client->adapter, &msg, 1); msg 170 drivers/rtc/rtc-isl12026.c struct i2c_msg msg = { msg 192 drivers/rtc/rtc-isl12026.c ret = i2c_transfer(client->adapter, &msg, 1); msg 117 drivers/rtc/rtc-opal.c struct opal_msg msg; msg 136 drivers/rtc/rtc-opal.c rc = opal_async_wait_response(token, &msg); msg 142 drivers/rtc/rtc-opal.c rc = opal_get_async_rc(msg); msg 171 drivers/rtc/rtc-opal.c struct opal_msg msg; msg 200 drivers/rtc/rtc-opal.c rc = opal_async_wait_response(token, &msg); msg 206 drivers/rtc/rtc-opal.c rc = opal_get_async_rc(msg); msg 70 drivers/rtc/rtc-pcf8523.c struct i2c_msg msg; msg 73 drivers/rtc/rtc-pcf8523.c msg.addr = client->addr; msg 74 drivers/rtc/rtc-pcf8523.c msg.flags = 0; msg 75 drivers/rtc/rtc-pcf8523.c msg.len = sizeof(buffer); msg 76 drivers/rtc/rtc-pcf8523.c msg.buf = buffer; msg 78 drivers/rtc/rtc-pcf8523.c err = i2c_transfer(client->adapter, &msg, 1); msg 229 drivers/rtc/rtc-pcf8523.c struct i2c_msg msg; msg 258 drivers/rtc/rtc-pcf8523.c msg.addr = client->addr; msg 259 drivers/rtc/rtc-pcf8523.c msg.flags = 0; msg 260 drivers/rtc/rtc-pcf8523.c msg.len = sizeof(regs); msg 261 drivers/rtc/rtc-pcf8523.c msg.buf = regs; msg 263 drivers/rtc/rtc-pcf8523.c err = i2c_transfer(client->adapter, &msg, 1); msg 74 drivers/rtc/rtc-s35390a.c struct i2c_msg msg[] = { msg 82 drivers/rtc/rtc-s35390a.c if ((i2c_transfer(client->adapter, msg, 1)) != 1) msg 91 drivers/rtc/rtc-s35390a.c struct i2c_msg msg[] = { msg 100 drivers/rtc/rtc-s35390a.c if ((i2c_transfer(client->adapter, msg, 1)) != 1) msg 93 drivers/rtc/rtc-wilco-ec.c struct wilco_ec_message msg; msg 96 drivers/rtc/rtc-wilco-ec.c memset(&msg, 0, sizeof(msg)); msg 97 drivers/rtc/rtc-wilco-ec.c msg.type = WILCO_EC_MSG_LEGACY; msg 98 drivers/rtc/rtc-wilco-ec.c msg.request_data = &read_rq; msg 99 drivers/rtc/rtc-wilco-ec.c msg.request_size = sizeof(read_rq); msg 100 drivers/rtc/rtc-wilco-ec.c msg.response_data = &rtc; msg 101 drivers/rtc/rtc-wilco-ec.c msg.response_size = sizeof(rtc); msg 103 drivers/rtc/rtc-wilco-ec.c ret = wilco_ec_mailbox(ec, &msg); msg 125 drivers/rtc/rtc-wilco-ec.c struct wilco_ec_message msg; msg 146 drivers/rtc/rtc-wilco-ec.c memset(&msg, 0, sizeof(msg)); msg 147 drivers/rtc/rtc-wilco-ec.c msg.type = WILCO_EC_MSG_LEGACY; msg 148 drivers/rtc/rtc-wilco-ec.c msg.request_data = &rtc; msg 149 drivers/rtc/rtc-wilco-ec.c msg.request_size = sizeof(rtc); msg 151 drivers/rtc/rtc-wilco-ec.c ret = wilco_ec_mailbox(ec, &msg); msg 43 drivers/s390/char/monreader.c struct iucv_message msg; msg 107 drivers/s390/char/monreader.c return *(u32 *) &monmsg->msg.rmmsg; msg 112 drivers/s390/char/monreader.c return *(u32 *) &monmsg->msg.rmmsg[4]; msg 155 drivers/s390/char/monreader.c rc = iucv_message_reply(monpriv->path, &monmsg->msg, msg 254 drivers/s390/char/monreader.c struct iucv_message *msg) msg 258 drivers/s390/char/monreader.c memcpy(&monpriv->msg_array[monpriv->write_index]->msg, msg 259 drivers/s390/char/monreader.c msg, sizeof(*msg)); msg 80 drivers/s390/char/sclp_early_core.c struct msg_buf msg; msg 89 drivers/s390/char/sclp_early_core.c struct msg_buf *msg; msg 97 drivers/s390/char/sclp_early_core.c ptr = (unsigned char *) &sccb->msg.mdb.mto; msg 115 drivers/s390/char/sclp_early_core.c msg = &sccb->msg; msg 116 drivers/s390/char/sclp_early_core.c msg->header.type = EVTYP_MSG; msg 117 drivers/s390/char/sclp_early_core.c msg->header.length = len - offsetof(struct write_sccb, msg.header); msg 118 drivers/s390/char/sclp_early_core.c mdb = &msg->mdb; msg 122 drivers/s390/char/sclp_early_core.c mdb->header.length = len - offsetof(struct write_sccb, msg.mdb.header); msg 134 drivers/s390/char/sclp_early_core.c } msg; msg 146 drivers/s390/char/sclp_early_core.c memcpy(&sccb->msg.data, str, len); msg 148 drivers/s390/char/sclp_early_core.c sccb->msg.header.length = sizeof(sccb->msg) + len; msg 149 drivers/s390/char/sclp_early_core.c sccb->msg.header.type = EVTYP_VT220MSG; msg 93 drivers/s390/char/sclp_rw.c struct msg_buf *msg; msg 107 drivers/s390/char/sclp_rw.c msg = (struct msg_buf *)((addr_t) sccb + sccb->length); msg 108 drivers/s390/char/sclp_rw.c memset(msg, 0, sizeof(struct msg_buf)); msg 109 drivers/s390/char/sclp_rw.c msg->header.length = sizeof(struct msg_buf); msg 110 drivers/s390/char/sclp_rw.c msg->header.type = EVTYP_MSG; msg 112 drivers/s390/char/sclp_rw.c mdb = &msg->mdb; msg 128 drivers/s390/char/sclp_rw.c buffer->current_msg = msg; msg 143 drivers/s390/char/sclp_rw.c struct msg_buf *msg; msg 150 drivers/s390/char/sclp_rw.c msg = buffer->current_msg; msg 151 drivers/s390/char/sclp_rw.c msg->header.length += buffer->current_length; msg 152 drivers/s390/char/sclp_rw.c msg->mdb.header.length += buffer->current_length; msg 153 drivers/s390/char/sclp_rw.c msg->mdb.mto.length += buffer->current_length; msg 154 drivers/s390/char/sclp_rw.c sccb->length += msg->header.length; msg 177 drivers/s390/char/sclp_rw.c sclp_write(struct sclp_buffer *buffer, const unsigned char *msg, int count) msg 206 drivers/s390/char/sclp_rw.c switch (msg[i_msg]) { msg 286 drivers/s390/char/sclp_rw.c if (!isprint(msg[i_msg])) msg 295 drivers/s390/char/sclp_rw.c *buffer->current_line++ = sclp_ascebc(msg[i_msg]); msg 311 drivers/s390/char/sclp_vt220.c const unsigned char *msg, int count, int convertlf) msg 333 drivers/s390/char/sclp_vt220.c c = msg[from]; msg 349 drivers/s390/char/sclp_vt220.c memcpy(buffer, (const void *) msg, count); msg 198 drivers/s390/char/vmlogrdr.c struct iucv_message *msg) msg 208 drivers/s390/char/vmlogrdr.c memcpy(&logptr->local_interrupt_buffer, msg, sizeof(*msg)); msg 71 drivers/s390/crypto/ap_queue.c __ap_send(ap_qid_t qid, unsigned long long psmid, void *msg, size_t length, msg 76 drivers/s390/crypto/ap_queue.c return ap_nqap(qid, psmid, msg, length); msg 79 drivers/s390/crypto/ap_queue.c int ap_send(ap_qid_t qid, unsigned long long psmid, void *msg, size_t length) msg 83 drivers/s390/crypto/ap_queue.c status = __ap_send(qid, psmid, msg, length, 0); msg 98 drivers/s390/crypto/ap_queue.c int ap_recv(ap_qid_t qid, unsigned long long *psmid, void *msg, size_t length) msg 102 drivers/s390/crypto/ap_queue.c if (msg == NULL) msg 104 drivers/s390/crypto/ap_queue.c status = ap_dqap(qid, psmid, msg, length); msg 86 drivers/s390/crypto/zcrypt_cex2c.c } __packed *msg; msg 96 drivers/s390/crypto/zcrypt_cex2c.c msg = ap_msg.message; msg 97 drivers/s390/crypto/zcrypt_cex2c.c msg->cprbx.domain = AP_QID_QUEUE(aq->qid); msg 417 drivers/s390/crypto/zcrypt_msgtype50.c struct ap_message *msg, msg 438 drivers/s390/crypto/zcrypt_msgtype50.c memcpy(msg->message, reply->message, length); msg 440 drivers/s390/crypto/zcrypt_msgtype50.c memcpy(msg->message, reply->message, sizeof(error_reply)); msg 442 drivers/s390/crypto/zcrypt_msgtype50.c complete((struct completion *) msg->private); msg 269 drivers/s390/crypto/zcrypt_msgtype6.c } __packed * msg = ap_msg->message; msg 281 drivers/s390/crypto/zcrypt_msgtype6.c msg->length = mex->inputdatalength + 2; msg 282 drivers/s390/crypto/zcrypt_msgtype6.c if (copy_from_user(msg->text, mex->inputdata, mex->inputdatalength)) msg 286 drivers/s390/crypto/zcrypt_msgtype6.c size = zcrypt_type6_mex_key_en(mex, msg->text+mex->inputdatalength); msg 289 drivers/s390/crypto/zcrypt_msgtype6.c size += sizeof(*msg) + mex->inputdatalength; msg 292 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr = static_type6_hdrX; msg 293 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr.ToCardLen1 = size - sizeof(msg->hdr); msg 294 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr.FromCardLen1 = CEXXC_MAX_ICA_RESPONSE_SIZE - sizeof(msg->hdr); msg 296 drivers/s390/crypto/zcrypt_msgtype6.c msg->cprbx = static_cprbx; msg 297 drivers/s390/crypto/zcrypt_msgtype6.c msg->cprbx.domain = AP_QID_QUEUE(zq->queue->qid); msg 298 drivers/s390/crypto/zcrypt_msgtype6.c msg->cprbx.rpl_msgbl = msg->hdr.FromCardLen1; msg 300 drivers/s390/crypto/zcrypt_msgtype6.c msg->fr = static_pke_fnr; msg 302 drivers/s390/crypto/zcrypt_msgtype6.c msg->cprbx.req_parml = size - sizeof(msg->hdr) - sizeof(msg->cprbx); msg 339 drivers/s390/crypto/zcrypt_msgtype6.c } __packed * msg = ap_msg->message; msg 351 drivers/s390/crypto/zcrypt_msgtype6.c msg->length = crt->inputdatalength + 2; msg 352 drivers/s390/crypto/zcrypt_msgtype6.c if (copy_from_user(msg->text, crt->inputdata, crt->inputdatalength)) msg 356 drivers/s390/crypto/zcrypt_msgtype6.c size = zcrypt_type6_crt_key(crt, msg->text + crt->inputdatalength); msg 359 drivers/s390/crypto/zcrypt_msgtype6.c size += sizeof(*msg) + crt->inputdatalength; /* total size of msg */ msg 362 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr = static_type6_hdrX; msg 363 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr.ToCardLen1 = size - sizeof(msg->hdr); msg 364 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr.FromCardLen1 = CEXXC_MAX_ICA_RESPONSE_SIZE - sizeof(msg->hdr); msg 366 drivers/s390/crypto/zcrypt_msgtype6.c msg->cprbx = static_cprbx; msg 367 drivers/s390/crypto/zcrypt_msgtype6.c msg->cprbx.domain = AP_QID_QUEUE(zq->queue->qid); msg 368 drivers/s390/crypto/zcrypt_msgtype6.c msg->cprbx.req_parml = msg->cprbx.rpl_msgbl = msg 369 drivers/s390/crypto/zcrypt_msgtype6.c size - sizeof(msg->hdr) - sizeof(msg->cprbx); msg 371 drivers/s390/crypto/zcrypt_msgtype6.c msg->fr = static_pkd_fnr; msg 403 drivers/s390/crypto/zcrypt_msgtype6.c } __packed * msg = ap_msg->message; msg 457 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr = static_type6_hdrX; msg 458 drivers/s390/crypto/zcrypt_msgtype6.c memcpy(msg->hdr.agent_id, &(xcRB->agent_ID), sizeof(xcRB->agent_ID)); msg 459 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr.ToCardLen1 = xcRB->request_control_blk_length; msg 461 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr.offset2 = msg->hdr.offset1 + rcblen; msg 462 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr.ToCardLen2 = xcRB->request_data_length; msg 464 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr.FromCardLen1 = xcRB->reply_control_blk_length; msg 465 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr.FromCardLen2 = xcRB->reply_data_length; msg 468 drivers/s390/crypto/zcrypt_msgtype6.c if (copy_from_user(&(msg->cprbx), xcRB->request_control_blk_addr, msg 471 drivers/s390/crypto/zcrypt_msgtype6.c if (msg->cprbx.cprb_len + sizeof(msg->hdr.function_code) > msg 474 drivers/s390/crypto/zcrypt_msgtype6.c function_code = ((unsigned char *)&msg->cprbx) + msg->cprbx.cprb_len; msg 475 drivers/s390/crypto/zcrypt_msgtype6.c memcpy(msg->hdr.function_code, function_code, msg 476 drivers/s390/crypto/zcrypt_msgtype6.c sizeof(msg->hdr.function_code)); msg 478 drivers/s390/crypto/zcrypt_msgtype6.c *fcode = (msg->hdr.function_code[0] << 8) | msg->hdr.function_code[1]; msg 479 drivers/s390/crypto/zcrypt_msgtype6.c *dom = (unsigned short *)&msg->cprbx.domain; msg 515 drivers/s390/crypto/zcrypt_msgtype6.c } __packed * msg = ap_msg->message; msg 543 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr = static_type6_ep11_hdr; msg 544 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr.ToCardLen1 = xcRB->req_len; msg 545 drivers/s390/crypto/zcrypt_msgtype6.c msg->hdr.FromCardLen1 = xcRB->resp_len; msg 548 drivers/s390/crypto/zcrypt_msgtype6.c if (copy_from_user(&(msg->cprbx.cprb_len), msg 553 drivers/s390/crypto/zcrypt_msgtype6.c if ((msg->pld_lenfmt & 0x80) == 0x80) { /*ext.len.fmt 2 or 3*/ msg 554 drivers/s390/crypto/zcrypt_msgtype6.c switch (msg->pld_lenfmt & 0x03) { msg 567 drivers/s390/crypto/zcrypt_msgtype6.c payload_hdr = (struct pld_hdr *)((&(msg->pld_lenfmt))+lfmt); msg 571 drivers/s390/crypto/zcrypt_msgtype6.c if (msg->cprbx.flags & 0x20) msg 642 drivers/s390/crypto/zcrypt_msgtype6.c struct type86x_reply *msg = reply->message; msg 647 drivers/s390/crypto/zcrypt_msgtype6.c service_rc = msg->cprbx.ccp_rtcode; msg 649 drivers/s390/crypto/zcrypt_msgtype6.c service_rs = msg->cprbx.ccp_rscode; msg 673 drivers/s390/crypto/zcrypt_msgtype6.c data = msg->text; msg 674 drivers/s390/crypto/zcrypt_msgtype6.c reply_len = msg->length - 2; msg 716 drivers/s390/crypto/zcrypt_msgtype6.c struct type86_fmt2_msg *msg = reply->message; msg 721 drivers/s390/crypto/zcrypt_msgtype6.c data + msg->fmt2.offset1, msg->fmt2.count1)) msg 723 drivers/s390/crypto/zcrypt_msgtype6.c xcRB->reply_control_blk_length = msg->fmt2.count1; msg 726 drivers/s390/crypto/zcrypt_msgtype6.c if (msg->fmt2.count2) msg 728 drivers/s390/crypto/zcrypt_msgtype6.c data + msg->fmt2.offset2, msg->fmt2.count2)) msg 730 drivers/s390/crypto/zcrypt_msgtype6.c xcRB->reply_data_length = msg->fmt2.count2; msg 747 drivers/s390/crypto/zcrypt_msgtype6.c struct type86_fmt2_msg *msg = reply->message; msg 750 drivers/s390/crypto/zcrypt_msgtype6.c if (xcRB->resp_len < msg->fmt2.count1) msg 755 drivers/s390/crypto/zcrypt_msgtype6.c data + msg->fmt2.offset1, msg->fmt2.count1)) msg 757 drivers/s390/crypto/zcrypt_msgtype6.c xcRB->resp_len = msg->fmt2.count1; msg 769 drivers/s390/crypto/zcrypt_msgtype6.c } __packed * msg = reply->message; msg 772 drivers/s390/crypto/zcrypt_msgtype6.c if (msg->cprbx.ccp_rtcode != 0 || msg->cprbx.ccp_rscode != 0) msg 774 drivers/s390/crypto/zcrypt_msgtype6.c memcpy(buffer, data + msg->fmt2.offset2, msg->fmt2.count2); msg 775 drivers/s390/crypto/zcrypt_msgtype6.c return msg->fmt2.count2; msg 783 drivers/s390/crypto/zcrypt_msgtype6.c struct type86x_reply *msg = reply->message; msg 785 drivers/s390/crypto/zcrypt_msgtype6.c switch (msg->hdr.type) { msg 790 drivers/s390/crypto/zcrypt_msgtype6.c if (msg->cprbx.ccp_rtcode && msg 791 drivers/s390/crypto/zcrypt_msgtype6.c (msg->cprbx.ccp_rscode == 0x14f) && msg 799 drivers/s390/crypto/zcrypt_msgtype6.c if (msg->hdr.reply_code) msg 801 drivers/s390/crypto/zcrypt_msgtype6.c if (msg->cprbx.cprb_ver_id == 0x02) msg 814 drivers/s390/crypto/zcrypt_msgtype6.c (int) msg->hdr.type); msg 823 drivers/s390/crypto/zcrypt_msgtype6.c struct type86x_reply *msg = reply->message; msg 825 drivers/s390/crypto/zcrypt_msgtype6.c switch (msg->hdr.type) { msg 831 drivers/s390/crypto/zcrypt_msgtype6.c if (msg->hdr.reply_code) { msg 832 drivers/s390/crypto/zcrypt_msgtype6.c memcpy(&(xcRB->status), msg->fmt2.apfs, sizeof(u32)); msg 835 drivers/s390/crypto/zcrypt_msgtype6.c if (msg->cprbx.cprb_ver_id == 0x02) msg 848 drivers/s390/crypto/zcrypt_msgtype6.c (int) msg->hdr.type); msg 856 drivers/s390/crypto/zcrypt_msgtype6.c struct type86_ep11_reply *msg = reply->message; msg 858 drivers/s390/crypto/zcrypt_msgtype6.c switch (msg->hdr.type) { msg 863 drivers/s390/crypto/zcrypt_msgtype6.c if (msg->hdr.reply_code) msg 865 drivers/s390/crypto/zcrypt_msgtype6.c if (msg->cprbx.cprb_ver_id == 0x04) msg 877 drivers/s390/crypto/zcrypt_msgtype6.c (int) msg->hdr.type); msg 886 drivers/s390/crypto/zcrypt_msgtype6.c struct type86x_reply *msg = reply->message; msg 888 drivers/s390/crypto/zcrypt_msgtype6.c switch (msg->hdr.type) { msg 893 drivers/s390/crypto/zcrypt_msgtype6.c if (msg->hdr.reply_code) msg 895 drivers/s390/crypto/zcrypt_msgtype6.c if (msg->cprbx.cprb_ver_id == 0x02) msg 907 drivers/s390/crypto/zcrypt_msgtype6.c (int) msg->hdr.type); msg 921 drivers/s390/crypto/zcrypt_msgtype6.c struct ap_message *msg, msg 929 drivers/s390/crypto/zcrypt_msgtype6.c (struct response_type *) msg->private; msg 944 drivers/s390/crypto/zcrypt_msgtype6.c memcpy(msg->message, reply->message, length); msg 949 drivers/s390/crypto/zcrypt_msgtype6.c memcpy(msg->message, reply->message, length); msg 952 drivers/s390/crypto/zcrypt_msgtype6.c memcpy(msg->message, &error_reply, msg 956 drivers/s390/crypto/zcrypt_msgtype6.c memcpy(msg->message, reply->message, sizeof(error_reply)); msg 970 drivers/s390/crypto/zcrypt_msgtype6.c struct ap_message *msg, msg 978 drivers/s390/crypto/zcrypt_msgtype6.c (struct response_type *)msg->private; msg 992 drivers/s390/crypto/zcrypt_msgtype6.c memcpy(msg->message, reply->message, length); msg 995 drivers/s390/crypto/zcrypt_msgtype6.c memcpy(msg->message, &error_reply, sizeof(error_reply)); msg 998 drivers/s390/crypto/zcrypt_msgtype6.c memcpy(msg->message, reply->message, sizeof(error_reply)); msg 1196 drivers/s390/crypto/zcrypt_msgtype6.c } __packed * msg = ap_msg->message; msg 1215 drivers/s390/crypto/zcrypt_msgtype6.c if (!((msg->cprbx.flags & 0x80) == 0x80)) { msg 1216 drivers/s390/crypto/zcrypt_msgtype6.c msg->cprbx.target_id = (unsigned int) msg 1219 drivers/s390/crypto/zcrypt_msgtype6.c if ((msg->pld_lenfmt & 0x80) == 0x80) { /*ext.len.fmt 2 or 3*/ msg 1220 drivers/s390/crypto/zcrypt_msgtype6.c switch (msg->pld_lenfmt & 0x03) { msg 1233 drivers/s390/crypto/zcrypt_msgtype6.c payload_hdr = (struct pld_hdr *)((&(msg->pld_lenfmt))+lfmt); msg 1293 drivers/s390/crypto/zcrypt_msgtype6.c } __packed * msg = ap_msg->message; msg 1297 drivers/s390/crypto/zcrypt_msgtype6.c msg->cprbx.domain = AP_QID_QUEUE(zq->queue->qid); msg 130 drivers/s390/crypto/zcrypt_msgtype6.h } __packed * msg = ap_msg->message; msg 136 drivers/s390/crypto/zcrypt_msgtype6.h .ToCardLen1 = sizeof(*msg) - sizeof(msg->hdr), msg 137 drivers/s390/crypto/zcrypt_msgtype6.h .FromCardLen1 = sizeof(*msg) - sizeof(msg->hdr), msg 143 drivers/s390/crypto/zcrypt_msgtype6.h .req_parml = sizeof(*msg) - sizeof(msg->hdr) - msg 144 drivers/s390/crypto/zcrypt_msgtype6.h sizeof(msg->cprbx), msg 145 drivers/s390/crypto/zcrypt_msgtype6.h .rpl_msgbl = sizeof(*msg) - sizeof(msg->hdr), msg 148 drivers/s390/crypto/zcrypt_msgtype6.h msg->hdr = static_type6_hdrX; msg 149 drivers/s390/crypto/zcrypt_msgtype6.h msg->hdr.FromCardLen2 = random_number_length, msg 150 drivers/s390/crypto/zcrypt_msgtype6.h msg->cprbx = local_cprbx; msg 151 drivers/s390/crypto/zcrypt_msgtype6.h msg->cprbx.rpl_datal = random_number_length, msg 152 drivers/s390/crypto/zcrypt_msgtype6.h memcpy(msg->function_code, msg->hdr.function_code, 0x02); msg 153 drivers/s390/crypto/zcrypt_msgtype6.h msg->rule_length = 0x0a; msg 154 drivers/s390/crypto/zcrypt_msgtype6.h memcpy(msg->rule, "RANDOM ", 8); msg 155 drivers/s390/crypto/zcrypt_msgtype6.h msg->verb_length = 0x02; msg 156 drivers/s390/crypto/zcrypt_msgtype6.h msg->key_length = 0x02; msg 157 drivers/s390/crypto/zcrypt_msgtype6.h ap_msg->length = sizeof(*msg); msg 158 drivers/s390/crypto/zcrypt_msgtype6.h *domain = (unsigned short)msg->cprbx.domain; msg 191 drivers/s390/net/ctcm_fsms.c void ctcm_ccw_check_rc(struct channel *ch, int rc, char *msg) msg 195 drivers/s390/net/ctcm_fsms.c CTCM_FUNTAIL, ch->id, msg, rc); msg 160 drivers/s390/net/ctcm_fsms.h void ctcm_ccw_check_rc(struct channel *ch, int rc, char *msg); msg 515 drivers/s390/net/netiucv.c struct iucv_message *msg) msg 521 drivers/s390/net/netiucv.c ev.data = msg; msg 526 drivers/s390/net/netiucv.c struct iucv_message *msg) msg 532 drivers/s390/net/netiucv.c ev.data = msg; msg 673 drivers/s390/net/netiucv.c struct iucv_message *msg = ev->data; msg 680 drivers/s390/net/netiucv.c iucv_message_reject(conn->path, msg); msg 685 drivers/s390/net/netiucv.c if (msg->length > conn->max_buffsize) { msg 686 drivers/s390/net/netiucv.c iucv_message_reject(conn->path, msg); msg 689 drivers/s390/net/netiucv.c msg->length, conn->max_buffsize); msg 695 drivers/s390/net/netiucv.c rc = iucv_message_receive(conn->path, msg, 0, conn->rx_buff->data, msg 696 drivers/s390/net/netiucv.c msg->length, NULL); msg 697 drivers/s390/net/netiucv.c if (rc || msg->length < 5) { msg 709 drivers/s390/net/netiucv.c struct iucv_message *msg = ev->data; msg 712 drivers/s390/net/netiucv.c u32 single_flag = msg->tag; msg 1150 drivers/s390/net/netiucv.c struct iucv_message msg; msg 1204 drivers/s390/net/netiucv.c msg.tag = 1; msg 1205 drivers/s390/net/netiucv.c msg.class = 0; msg 1206 drivers/s390/net/netiucv.c rc = iucv_message_send(conn->path, &msg, 0, 0, msg 139 drivers/s390/net/qeth_core_mpc.c const char *msg; msg 214 drivers/s390/net/qeth_core_mpc.c return qeth_ipa_rc_msg[x].msg; msg 215 drivers/s390/net/qeth_core_mpc.c return qeth_ipa_rc_msg[x].msg; msg 56 drivers/s390/net/smsgiucv.c struct iucv_message *msg) msg 63 drivers/s390/net/smsgiucv.c buffer = kmalloc(msg->length + 1, GFP_ATOMIC | GFP_DMA); msg 65 drivers/s390/net/smsgiucv.c iucv_message_reject(path, msg); msg 68 drivers/s390/net/smsgiucv.c rc = iucv_message_receive(path, msg, 0, buffer, msg->length, NULL); msg 70 drivers/s390/net/smsgiucv.c buffer[msg->length] = 0; msg 71 drivers/s390/net/smsgiucv.c EBCASC(buffer, msg->length); msg 38 drivers/s390/net/smsgiucv_app.c #define ENV_TEXT_LEN(msg) (strlen(ENV_TEXT_STR) + strlen((msg)) + 1) msg 68 drivers/s390/net/smsgiucv_app.c const char *msg) msg 77 drivers/s390/net/smsgiucv_app.c ENV_TEXT_LEN(msg), GFP_ATOMIC); msg 92 drivers/s390/net/smsgiucv_app.c snprintf(ev->envp[2], ENV_TEXT_LEN(msg), ENV_TEXT_STR "%s", msg); msg 121 drivers/s390/net/smsgiucv_app.c static void smsg_app_callback(const char *from, char *msg) msg 131 drivers/s390/net/smsgiucv_app.c msg += strlen(SMSG_PREFIX); msg 132 drivers/s390/net/smsgiucv_app.c while (*msg && isspace(*msg)) msg 133 drivers/s390/net/smsgiucv_app.c msg++; msg 134 drivers/s390/net/smsgiucv_app.c if (*msg == '\0') msg 138 drivers/s390/net/smsgiucv_app.c se = smsg_app_event_alloc(from, msg); msg 275 drivers/scsi/3w-xxxx.h #define dprintk(msg...) printk(msg) msg 277 drivers/scsi/3w-xxxx.h #define dprintk(msg...) do { } while(0) msg 1096 drivers/scsi/BusLogic.c static bool blogic_failure(struct blogic_adapter *adapter, char *msg) msg 1105 drivers/scsi/BusLogic.c blogic_err("%s FAILED - DETACHING\n", adapter, msg); msg 2009 drivers/scsi/NCR5380.c unsigned char msg[3]; msg 2064 drivers/scsi/NCR5380.c msg[0] = NCR5380_read(CURRENT_SCSI_DATA_REG); msg 2068 drivers/scsi/NCR5380.c unsigned char *data = msg; msg 2080 drivers/scsi/NCR5380.c if (!(msg[0] & 0x80)) { msg 2082 drivers/scsi/NCR5380.c spi_print_msg(msg); msg 2087 drivers/scsi/NCR5380.c lun = msg[0] & 0x07; msg 621 drivers/scsi/aha152x.c static void aha152x_error(struct Scsi_Host *shpnt, char *msg); msg 2397 drivers/scsi/aha152x.c static void aha152x_error(struct Scsi_Host *shpnt, char *msg) msg 2399 drivers/scsi/aha152x.c shost_printk(KERN_EMERG, shpnt, "%s\n", msg); msg 265 drivers/scsi/arm/acornscsi.c acornscsi_sbic_wait(AS_Host *host, int stat_mask, int stat, int timeout, char *msg) msg 278 drivers/scsi/arm/acornscsi.c printk("scsi%d: timeout while %s\n", host->host->host_no, msg); msg 1326 drivers/scsi/arm/acornscsi.c struct message *msg; msg 1349 drivers/scsi/arm/acornscsi.c msg = msgqueue_getmsg(&host->scsi.msgs, 0); msg 1353 drivers/scsi/arm/acornscsi.c sbic_arm_write(host, SBIC_DATA, msg->msg[0]); msg 1355 drivers/scsi/arm/acornscsi.c host->scsi.last_message = msg->msg[0]; msg 1357 drivers/scsi/arm/acornscsi.c spi_print_msg(msg->msg); msg 1376 drivers/scsi/arm/acornscsi.c while ((msg = msgqueue_getmsg(&host->scsi.msgs, msgnr++)) != NULL) { msg 1379 drivers/scsi/arm/acornscsi.c spi_print_msg(msg); msg 1382 drivers/scsi/arm/acornscsi.c if (acornscsi_write_pio(host, msg->msg, &i, msg->length, 1000000)) msg 1385 drivers/scsi/arm/acornscsi.c host->scsi.last_message = msg->msg[0]; msg 1386 drivers/scsi/arm/acornscsi.c if (msg->msg[0] == EXTENDED_MESSAGE) msg 1387 drivers/scsi/arm/acornscsi.c host->scsi.last_message |= msg->msg[2] << 8; msg 1389 drivers/scsi/arm/acornscsi.c if (i != msg->length) msg 415 drivers/scsi/arm/fas216.c struct message *msg; msg 418 drivers/scsi/arm/fas216.c while ((msg = msgqueue_getmsg(&info->scsi.msgs, msgnr++)) != NULL) { msg 419 drivers/scsi/arm/fas216.c if (pos >= msg->fifo) msg 423 drivers/scsi/arm/fas216.c if (msg) { msg 424 drivers/scsi/arm/fas216.c if (msg->msg[0] == EXTENDED_MESSAGE) msg 425 drivers/scsi/arm/fas216.c packed_msg = EXTENDED_MESSAGE | msg->msg[2] << 8; msg 427 drivers/scsi/arm/fas216.c packed_msg = msg->msg[0]; msg 513 drivers/scsi/arm/fas216.c static void fas216_handlesync(FAS216_Info *info, char *msg) msg 519 drivers/scsi/arm/fas216.c switch (msg[0]) { msg 555 drivers/scsi/arm/fas216.c if (msg[4] > info->ifcfg.sync_max_depth) msg 556 drivers/scsi/arm/fas216.c msg[4] = info->ifcfg.sync_max_depth; msg 557 drivers/scsi/arm/fas216.c if (msg[3] < 1000 / info->ifcfg.clockrate) msg 558 drivers/scsi/arm/fas216.c msg[3] = 1000 / info->ifcfg.clockrate; msg 563 drivers/scsi/arm/fas216.c msg[3], msg[4]); msg 581 drivers/scsi/arm/fas216.c if (msg[4] <= info->ifcfg.sync_max_depth && msg 582 drivers/scsi/arm/fas216.c msg[3] >= 1000 / info->ifcfg.clockrate) { msg 595 drivers/scsi/arm/fas216.c dev->period = msg[3]; msg 596 drivers/scsi/arm/fas216.c dev->sof = msg[4]; msg 597 drivers/scsi/arm/fas216.c dev->stp = fas216_syncperiod(info, msg[3] * 4); msg 941 drivers/scsi/arm/fas216.c unsigned char msg[4]; msg 963 drivers/scsi/arm/fas216.c msg[i] = fas216_readb(info, REG_FF); msg 965 drivers/scsi/arm/fas216.c if (!(msg[0] & (1 << info->host->this_id)) || msg 966 drivers/scsi/arm/fas216.c !(msg[1] & 0x80)) msg 969 drivers/scsi/arm/fas216.c target = msg[0] & ~(1 << info->host->this_id); msg 971 drivers/scsi/arm/fas216.c lun = msg[1] & 7; msg 975 drivers/scsi/arm/fas216.c if (msg[2] != SIMPLE_QUEUE_TAG) msg 978 drivers/scsi/arm/fas216.c tag = msg[3]; msg 1042 drivers/scsi/arm/fas216.c printk(" %02x", msg[i]); msg 1321 drivers/scsi/arm/fas216.c struct message *msg; msg 1324 drivers/scsi/arm/fas216.c while ((msg = msgqueue_getmsg(&info->scsi.msgs, msgnr++)) != NULL) { msg 1327 drivers/scsi/arm/fas216.c for (i = start; i < msg->length; i++) msg 1328 drivers/scsi/arm/fas216.c fas216_writeb(info, REG_FF, msg->msg[i]); msg 1330 drivers/scsi/arm/fas216.c msg->fifo = tot_msglen - (fas216_readb(info, REG_CFIS) & CFIS_CF); msg 1691 drivers/scsi/arm/fas216.c struct message *msg; msg 1696 drivers/scsi/arm/fas216.c while ((msg = msgqueue_getmsg(&info->scsi.msgs, msgnr++)) != NULL) { msg 1698 drivers/scsi/arm/fas216.c for (i = 0; i < msg->length; i++) msg 1699 drivers/scsi/arm/fas216.c printk("%02x ", msg->msg[i]); msg 1710 drivers/scsi/arm/fas216.c struct message *msg; msg 1716 drivers/scsi/arm/fas216.c while ((msg = msgqueue_getmsg(&info->scsi.msgs, msgnr++)) != NULL) { msg 1717 drivers/scsi/arm/fas216.c for (i = 0; i < msg->length; i++) msg 1718 drivers/scsi/arm/fas216.c fas216_writeb(info, REG_FF, msg->msg[i]); msg 1719 drivers/scsi/arm/fas216.c msg->fifo = tot_msglen - (fas216_readb(info, REG_CFIS) & CFIS_CF); msg 1736 drivers/scsi/arm/fas216.c struct message *msg = msgqueue_getmsg(&info->scsi.msgs, 0); msg 1738 drivers/scsi/arm/fas216.c fas216_writeb(info, REG_FF, msg->msg[0]); msg 1739 drivers/scsi/arm/fas216.c msg->fifo = 1; msg 1853 drivers/scsi/arm/fas216.c struct message *msg; msg 1882 drivers/scsi/arm/fas216.c msg = msgqueue_getmsg(&info->scsi.msgs, 0); msg 1885 drivers/scsi/arm/fas216.c msg->fifo = 1; msg 86 drivers/scsi/arm/msgqueue.c length += mq->msg.length; msg 104 drivers/scsi/arm/msgqueue.c return mq ? &mq->msg : NULL; msg 126 drivers/scsi/arm/msgqueue.c mq->msg.msg[i] = va_arg(ap, unsigned int); msg 129 drivers/scsi/arm/msgqueue.c mq->msg.length = length; msg 130 drivers/scsi/arm/msgqueue.c mq->msg.fifo = 0; msg 13 drivers/scsi/arm/msgqueue.h char msg[8]; msg 19 drivers/scsi/arm/msgqueue.h struct message msg; msg 406 drivers/scsi/be2iscsi/be_cmds.c char *msg = NULL; msg 435 drivers/scsi/be2iscsi/be_cmds.c msg = (ASYNC_SLI_LINK_EFFECT_STATE(le)) ? msg 450 drivers/scsi/be2iscsi/be_cmds.c !msg ? "" : msg); msg 302 drivers/scsi/bfa/bfa.h void bfa_iocfc_isr(void *bfa, struct bfi_mbmsg_s *msg); msg 1332 drivers/scsi/bfa/bfa_core.c bfa_iocfc_process_faa_addr(struct bfa_s *bfa, struct bfi_faa_addr_msg_s *msg) msg 1337 drivers/scsi/bfa/bfa_core.c cfgrsp->pbc_cfg.pbc_pwwn = msg->pwwn; msg 1338 drivers/scsi/bfa/bfa_core.c cfgrsp->pbc_cfg.pbc_nwwn = msg->nwwn; msg 1340 drivers/scsi/bfa/bfa_core.c bfa->ioc.attr->pwwn = msg->pwwn; msg 1341 drivers/scsi/bfa/bfa_core.c bfa->ioc.attr->nwwn = msg->nwwn; msg 1583 drivers/scsi/bfa/bfa_core.c union bfi_iocfc_i2h_msg_u *msg; msg 1585 drivers/scsi/bfa/bfa_core.c msg = (union bfi_iocfc_i2h_msg_u *) m; msg 1586 drivers/scsi/bfa/bfa_core.c bfa_trc(bfa, msg->mh.msg_id); msg 1588 drivers/scsi/bfa/bfa_core.c switch (msg->mh.msg_id) { msg 1597 drivers/scsi/bfa/bfa_core.c (struct bfi_faa_addr_msg_s *)msg); msg 1600 drivers/scsi/bfa/bfa_core.c bfa_faa_query_reply(iocfc, (bfi_faa_query_rsp_t *)msg); msg 1358 drivers/scsi/bfa/bfa_fcpim.c union bfi_itn_i2h_msg_u msg; msg 1363 drivers/scsi/bfa/bfa_fcpim.c msg.msg = m; msg 1368 drivers/scsi/bfa/bfa_fcpim.c msg.create_rsp->bfa_handle); msg 1369 drivers/scsi/bfa/bfa_fcpim.c WARN_ON(msg.create_rsp->status != BFA_STATUS_OK); msg 1376 drivers/scsi/bfa/bfa_fcpim.c msg.delete_rsp->bfa_handle); msg 1377 drivers/scsi/bfa/bfa_fcpim.c WARN_ON(msg.delete_rsp->status != BFA_STATUS_OK); msg 1384 drivers/scsi/bfa/bfa_fcpim.c msg.sler_event->bfa_handle); msg 3782 drivers/scsi/bfa/bfa_fcpim.c union bfi_itn_i2h_msg_u msg; msg 3785 drivers/scsi/bfa/bfa_fcpim.c msg.msg = m; msg 3786 drivers/scsi/bfa/bfa_fcpim.c itn = BFA_ITN_FROM_TAG(fcp, msg.create_rsp->bfa_handle); msg 271 drivers/scsi/bfa/bfa_fcpim.h void bfa_ioim_isr(struct bfa_s *bfa, struct bfi_msg_s *msg); msg 273 drivers/scsi/bfa/bfa_fcpim.h struct bfi_msg_s *msg); msg 281 drivers/scsi/bfa/bfa_fcpim.h void bfa_tskim_isr(struct bfa_s *bfa, struct bfi_msg_s *msg); msg 290 drivers/scsi/bfa/bfa_fcpim.h void bfa_itnim_isr(struct bfa_s *bfa, struct bfi_msg_s *msg); msg 2020 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_send(ioc, cmd->msg, sizeof(cmd->msg)); msg 2323 drivers/scsi/bfa/bfa_ioc.c union bfi_ioc_i2h_msg_u *msg; msg 2326 drivers/scsi/bfa/bfa_ioc.c msg = (union bfi_ioc_i2h_msg_u *) m; msg 2330 drivers/scsi/bfa/bfa_ioc.c switch (msg->mh.msg_id) { msg 2336 drivers/scsi/bfa/bfa_ioc.c (enum bfa_mode_s)msg->fw_event.port_mode; msg 2337 drivers/scsi/bfa/bfa_ioc.c ioc->ad_cap_bm = msg->fw_event.cap_bm; msg 2350 drivers/scsi/bfa/bfa_ioc.c bfa_trc(ioc, msg->mh.msg_id); msg 2590 drivers/scsi/bfa/bfa_ioc.c bfa_ioc_mbox_send(ioc, cmd->msg, sizeof(cmd->msg)); msg 2990 drivers/scsi/bfa/bfa_ioc.c struct bfi_ioc_ctrl_req_s *req = (struct bfi_ioc_ctrl_req_s *) cmd.msg; msg 3284 drivers/scsi/bfa/bfa_ioc.c bfa_ablk_isr(void *cbarg, struct bfi_mbmsg_s *msg) msg 3287 drivers/scsi/bfa/bfa_ioc.c struct bfi_ablk_i2h_rsp_s *rsp = (struct bfi_ablk_i2h_rsp_s *)msg; msg 3290 drivers/scsi/bfa/bfa_ioc.c WARN_ON(msg->mh.msg_class != BFI_MC_ABLK); msg 3291 drivers/scsi/bfa/bfa_ioc.c bfa_trc(ablk->ioc, msg->mh.msg_id); msg 3293 drivers/scsi/bfa/bfa_ioc.c switch (msg->mh.msg_id) { msg 3409 drivers/scsi/bfa/bfa_ioc.c m = (struct bfi_ablk_h2i_query_s *)ablk->mb.msg; msg 3441 drivers/scsi/bfa/bfa_ioc.c m = (struct bfi_ablk_h2i_pf_req_s *)ablk->mb.msg; msg 3473 drivers/scsi/bfa/bfa_ioc.c m = (struct bfi_ablk_h2i_pf_req_s *)ablk->mb.msg; msg 3502 drivers/scsi/bfa/bfa_ioc.c m = (struct bfi_ablk_h2i_cfg_req_s *)ablk->mb.msg; msg 3533 drivers/scsi/bfa/bfa_ioc.c m = (struct bfi_ablk_h2i_cfg_req_s *)ablk->mb.msg; msg 3565 drivers/scsi/bfa/bfa_ioc.c m = (struct bfi_ablk_h2i_pf_req_s *)ablk->mb.msg; msg 3595 drivers/scsi/bfa/bfa_ioc.c m = (struct bfi_ablk_h2i_optrom_s *)ablk->mb.msg; msg 3622 drivers/scsi/bfa/bfa_ioc.c m = (struct bfi_ablk_h2i_optrom_s *)ablk->mb.msg; msg 3759 drivers/scsi/bfa/bfa_ioc.c struct bfi_sfp_req_s *req = (struct bfi_sfp_req_s *)sfp->mbcmd.msg; msg 3777 drivers/scsi/bfa/bfa_ioc.c struct bfi_sfp_req_s *req = (struct bfi_sfp_req_s *)sfp->mbcmd.msg; msg 3796 drivers/scsi/bfa/bfa_ioc.c bfa_sfp_scn(struct bfa_sfp_s *sfp, struct bfi_mbmsg_s *msg) msg 3798 drivers/scsi/bfa/bfa_ioc.c struct bfi_sfp_scn_s *rsp = (struct bfi_sfp_scn_s *) msg; msg 3840 drivers/scsi/bfa/bfa_ioc.c bfa_sfp_show_comp(struct bfa_sfp_s *sfp, struct bfi_mbmsg_s *msg) msg 3842 drivers/scsi/bfa/bfa_ioc.c struct bfi_sfp_rsp_s *rsp = (struct bfi_sfp_rsp_s *) msg; msg 3896 drivers/scsi/bfa/bfa_ioc.c struct bfi_sfp_req_s *req = (struct bfi_sfp_req_s *)sfp->mbcmd.msg; msg 3990 drivers/scsi/bfa/bfa_ioc.c bfa_sfp_intr(void *sfparg, struct bfi_mbmsg_s *msg) msg 3994 drivers/scsi/bfa/bfa_ioc.c switch (msg->mh.msg_id) { msg 3996 drivers/scsi/bfa/bfa_ioc.c bfa_sfp_show_comp(sfp, msg); msg 4000 drivers/scsi/bfa/bfa_ioc.c bfa_sfp_scn(sfp, msg); msg 4004 drivers/scsi/bfa/bfa_ioc.c bfa_trc(sfp, msg->mh.msg_id); msg 4250 drivers/scsi/bfa/bfa_ioc.c struct bfi_flash_query_req_s *msg = msg 4251 drivers/scsi/bfa/bfa_ioc.c (struct bfi_flash_query_req_s *) flash->mb.msg; msg 4253 drivers/scsi/bfa/bfa_ioc.c bfi_h2i_set(msg->mh, BFI_MC_FLASH, BFI_FLASH_H2I_QUERY_REQ, msg 4255 drivers/scsi/bfa/bfa_ioc.c bfa_alen_set(&msg->alen, sizeof(struct bfa_flash_attr_s), msg 4268 drivers/scsi/bfa/bfa_ioc.c struct bfi_flash_write_req_s *msg = msg 4269 drivers/scsi/bfa/bfa_ioc.c (struct bfi_flash_write_req_s *) flash->mb.msg; msg 4272 drivers/scsi/bfa/bfa_ioc.c msg->type = be32_to_cpu(flash->type); msg 4273 drivers/scsi/bfa/bfa_ioc.c msg->instance = flash->instance; msg 4274 drivers/scsi/bfa/bfa_ioc.c msg->offset = be32_to_cpu(flash->addr_off + flash->offset); msg 4277 drivers/scsi/bfa/bfa_ioc.c msg->length = be32_to_cpu(len); msg 4280 drivers/scsi/bfa/bfa_ioc.c msg->last = (len == flash->residue) ? 1 : 0; msg 4282 drivers/scsi/bfa/bfa_ioc.c bfi_h2i_set(msg->mh, BFI_MC_FLASH, BFI_FLASH_H2I_WRITE_REQ, msg 4284 drivers/scsi/bfa/bfa_ioc.c bfa_alen_set(&msg->alen, len, flash->dbuf_pa); msg 4301 drivers/scsi/bfa/bfa_ioc.c struct bfi_flash_read_req_s *msg = msg 4302 drivers/scsi/bfa/bfa_ioc.c (struct bfi_flash_read_req_s *) flash->mb.msg; msg 4305 drivers/scsi/bfa/bfa_ioc.c msg->type = be32_to_cpu(flash->type); msg 4306 drivers/scsi/bfa/bfa_ioc.c msg->instance = flash->instance; msg 4307 drivers/scsi/bfa/bfa_ioc.c msg->offset = be32_to_cpu(flash->addr_off + flash->offset); msg 4310 drivers/scsi/bfa/bfa_ioc.c msg->length = be32_to_cpu(len); msg 4311 drivers/scsi/bfa/bfa_ioc.c bfi_h2i_set(msg->mh, BFI_MC_FLASH, BFI_FLASH_H2I_READ_REQ, msg 4313 drivers/scsi/bfa/bfa_ioc.c bfa_alen_set(&msg->alen, len, flash->dbuf_pa); msg 4326 drivers/scsi/bfa/bfa_ioc.c struct bfi_flash_erase_req_s *msg = msg 4327 drivers/scsi/bfa/bfa_ioc.c (struct bfi_flash_erase_req_s *) flash->mb.msg; msg 4329 drivers/scsi/bfa/bfa_ioc.c msg->type = be32_to_cpu(flash->type); msg 4330 drivers/scsi/bfa/bfa_ioc.c msg->instance = flash->instance; msg 4331 drivers/scsi/bfa/bfa_ioc.c bfi_h2i_set(msg->mh, BFI_MC_FLASH, BFI_FLASH_H2I_ERASE_REQ, msg 4343 drivers/scsi/bfa/bfa_ioc.c bfa_flash_intr(void *flasharg, struct bfi_mbmsg_s *msg) msg 4354 drivers/scsi/bfa/bfa_ioc.c struct bfi_mbmsg_s *msg; msg 4357 drivers/scsi/bfa/bfa_ioc.c m.msg = msg; msg 4358 drivers/scsi/bfa/bfa_ioc.c bfa_trc(flash, msg->mh.msg_id); msg 4360 drivers/scsi/bfa/bfa_ioc.c if (!flash->op_busy && msg->mh.msg_id != BFI_FLASH_I2H_EVENT) { msg 4366 drivers/scsi/bfa/bfa_ioc.c switch (msg->mh.msg_id) { msg 4829 drivers/scsi/bfa/bfa_ioc.c fwping_req = (struct bfi_diag_fwping_req_s *)diag->fwping.mbcmd.msg; msg 4906 drivers/scsi/bfa/bfa_ioc.c struct bfi_diag_ts_req_s *msg; msg 4908 drivers/scsi/bfa/bfa_ioc.c msg = (struct bfi_diag_ts_req_s *)diag->tsensor.mbcmd.msg; msg 4909 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, msg->temp); msg 4911 drivers/scsi/bfa/bfa_ioc.c bfi_h2i_set(msg->mh, BFI_MC_DIAG, BFI_DIAG_H2I_TEMPSENSOR, msg 4962 drivers/scsi/bfa/bfa_ioc.c struct bfi_diag_ledtest_req_s *msg; msg 4964 drivers/scsi/bfa/bfa_ioc.c msg = (struct bfi_diag_ledtest_req_s *)diag->ledtest.mbcmd.msg; msg 4966 drivers/scsi/bfa/bfa_ioc.c bfi_h2i_set(msg->mh, BFI_MC_DIAG, BFI_DIAG_H2I_LEDTEST, msg 4981 drivers/scsi/bfa/bfa_ioc.c msg->cmd = (u8) ledtest->cmd; msg 4982 drivers/scsi/bfa/bfa_ioc.c msg->color = (u8) ledtest->color; msg 4983 drivers/scsi/bfa/bfa_ioc.c msg->portid = bfa_ioc_portid(diag->ioc); msg 4984 drivers/scsi/bfa/bfa_ioc.c msg->led = ledtest->led; msg 4985 drivers/scsi/bfa/bfa_ioc.c msg->freq = cpu_to_be16(ledtest->freq); msg 4992 drivers/scsi/bfa/bfa_ioc.c diag_ledtest_comp(struct bfa_diag_s *diag, struct bfi_diag_ledtest_rsp_s *msg) msg 5005 drivers/scsi/bfa/bfa_ioc.c struct bfi_diag_portbeacon_req_s *msg; msg 5007 drivers/scsi/bfa/bfa_ioc.c msg = (struct bfi_diag_portbeacon_req_s *)diag->beacon.mbcmd.msg; msg 5009 drivers/scsi/bfa/bfa_ioc.c bfi_h2i_set(msg->mh, BFI_MC_DIAG, BFI_DIAG_H2I_PORTBEACON, msg 5011 drivers/scsi/bfa/bfa_ioc.c msg->beacon = beacon; msg 5012 drivers/scsi/bfa/bfa_ioc.c msg->period = cpu_to_be32(sec); msg 5030 drivers/scsi/bfa/bfa_ioc.c bfa_diag_intr(void *diagarg, struct bfi_mbmsg_s *msg) msg 5034 drivers/scsi/bfa/bfa_ioc.c switch (msg->mh.msg_id) { msg 5039 drivers/scsi/bfa/bfa_ioc.c diag_fwping_comp(diag, (struct bfi_diag_fwping_rsp_s *) msg); msg 5042 drivers/scsi/bfa/bfa_ioc.c diag_tempsensor_comp(diag, (bfi_diag_ts_rsp_t *) msg); msg 5045 drivers/scsi/bfa/bfa_ioc.c diag_ledtest_comp(diag, (struct bfi_diag_ledtest_rsp_s *) msg); msg 5048 drivers/scsi/bfa/bfa_ioc.c bfa_trc(diag, msg->mh.msg_id); msg 5347 drivers/scsi/bfa/bfa_ioc.c struct bfi_phy_query_req_s *msg = msg 5348 drivers/scsi/bfa/bfa_ioc.c (struct bfi_phy_query_req_s *) phy->mb.msg; msg 5350 drivers/scsi/bfa/bfa_ioc.c msg->instance = phy->instance; msg 5351 drivers/scsi/bfa/bfa_ioc.c bfi_h2i_set(msg->mh, BFI_MC_PHY, BFI_PHY_H2I_QUERY_REQ, msg 5353 drivers/scsi/bfa/bfa_ioc.c bfa_alen_set(&msg->alen, sizeof(struct bfa_phy_attr_s), phy->dbuf_pa); msg 5366 drivers/scsi/bfa/bfa_ioc.c struct bfi_phy_write_req_s *msg = msg 5367 drivers/scsi/bfa/bfa_ioc.c (struct bfi_phy_write_req_s *) phy->mb.msg; msg 5372 drivers/scsi/bfa/bfa_ioc.c msg->instance = phy->instance; msg 5373 drivers/scsi/bfa/bfa_ioc.c msg->offset = cpu_to_be32(phy->addr_off + phy->offset); msg 5376 drivers/scsi/bfa/bfa_ioc.c msg->length = cpu_to_be32(len); msg 5379 drivers/scsi/bfa/bfa_ioc.c msg->last = (len == phy->residue) ? 1 : 0; msg 5381 drivers/scsi/bfa/bfa_ioc.c bfi_h2i_set(msg->mh, BFI_MC_PHY, BFI_PHY_H2I_WRITE_REQ, msg 5383 drivers/scsi/bfa/bfa_ioc.c bfa_alen_set(&msg->alen, len, phy->dbuf_pa); msg 5406 drivers/scsi/bfa/bfa_ioc.c struct bfi_phy_read_req_s *msg = msg 5407 drivers/scsi/bfa/bfa_ioc.c (struct bfi_phy_read_req_s *) phy->mb.msg; msg 5410 drivers/scsi/bfa/bfa_ioc.c msg->instance = phy->instance; msg 5411 drivers/scsi/bfa/bfa_ioc.c msg->offset = cpu_to_be32(phy->addr_off + phy->offset); msg 5414 drivers/scsi/bfa/bfa_ioc.c msg->length = cpu_to_be32(len); msg 5415 drivers/scsi/bfa/bfa_ioc.c bfi_h2i_set(msg->mh, BFI_MC_PHY, BFI_PHY_H2I_READ_REQ, msg 5417 drivers/scsi/bfa/bfa_ioc.c bfa_alen_set(&msg->alen, len, phy->dbuf_pa); msg 5430 drivers/scsi/bfa/bfa_ioc.c struct bfi_phy_stats_req_s *msg = msg 5431 drivers/scsi/bfa/bfa_ioc.c (struct bfi_phy_stats_req_s *) phy->mb.msg; msg 5433 drivers/scsi/bfa/bfa_ioc.c msg->instance = phy->instance; msg 5434 drivers/scsi/bfa/bfa_ioc.c bfi_h2i_set(msg->mh, BFI_MC_PHY, BFI_PHY_H2I_STATS_REQ, msg 5436 drivers/scsi/bfa/bfa_ioc.c bfa_alen_set(&msg->alen, sizeof(struct bfa_phy_stats_s), phy->dbuf_pa); msg 5704 drivers/scsi/bfa/bfa_ioc.c bfa_phy_intr(void *phyarg, struct bfi_mbmsg_s *msg) msg 5714 drivers/scsi/bfa/bfa_ioc.c struct bfi_mbmsg_s *msg; msg 5717 drivers/scsi/bfa/bfa_ioc.c m.msg = msg; msg 5718 drivers/scsi/bfa/bfa_ioc.c bfa_trc(phy, msg->mh.msg_id); msg 5726 drivers/scsi/bfa/bfa_ioc.c switch (msg->mh.msg_id) { msg 6223 drivers/scsi/bfa/bfa_ioc.c struct bfi_fru_write_req_s *msg = msg 6224 drivers/scsi/bfa/bfa_ioc.c (struct bfi_fru_write_req_s *) fru->mb.msg; msg 6227 drivers/scsi/bfa/bfa_ioc.c msg->offset = cpu_to_be32(fru->addr_off + fru->offset); msg 6230 drivers/scsi/bfa/bfa_ioc.c msg->length = cpu_to_be32(len); msg 6235 drivers/scsi/bfa/bfa_ioc.c msg->last = (len == fru->residue) ? 1 : 0; msg 6237 drivers/scsi/bfa/bfa_ioc.c msg->trfr_cmpl = (len == fru->residue) ? fru->trfr_cmpl : 0; msg 6238 drivers/scsi/bfa/bfa_ioc.c bfi_h2i_set(msg->mh, BFI_MC_FRU, msg_type, bfa_ioc_portid(fru->ioc)); msg 6239 drivers/scsi/bfa/bfa_ioc.c bfa_alen_set(&msg->alen, len, fru->dbuf_pa); msg 6257 drivers/scsi/bfa/bfa_ioc.c struct bfi_fru_read_req_s *msg = msg 6258 drivers/scsi/bfa/bfa_ioc.c (struct bfi_fru_read_req_s *) fru->mb.msg; msg 6261 drivers/scsi/bfa/bfa_ioc.c msg->offset = cpu_to_be32(fru->addr_off + fru->offset); msg 6264 drivers/scsi/bfa/bfa_ioc.c msg->length = cpu_to_be32(len); msg 6265 drivers/scsi/bfa/bfa_ioc.c bfi_h2i_set(msg->mh, BFI_MC_FRU, msg_type, bfa_ioc_portid(fru->ioc)); msg 6266 drivers/scsi/bfa/bfa_ioc.c bfa_alen_set(&msg->alen, len, fru->dbuf_pa); msg 6557 drivers/scsi/bfa/bfa_ioc.c bfa_fru_intr(void *fruarg, struct bfi_mbmsg_s *msg) msg 6560 drivers/scsi/bfa/bfa_ioc.c struct bfi_fru_rsp_s *rsp = (struct bfi_fru_rsp_s *)msg; msg 6563 drivers/scsi/bfa/bfa_ioc.c bfa_trc(fru, msg->mh.msg_id); msg 6573 drivers/scsi/bfa/bfa_ioc.c switch (msg->mh.msg_id) { msg 6586 drivers/scsi/bfa/bfa_ioc.c if (msg->mh.msg_id == BFI_FRUVPD_I2H_WRITE_RSP) msg 6620 drivers/scsi/bfa/bfa_ioc.c if (msg->mh.msg_id == BFI_FRUVPD_I2H_READ_RSP) msg 230 drivers/scsi/bfa/bfa_ioc.h u32 msg[BFI_IOC_MSGSZ]; msg 453 drivers/scsi/bfa/bfa_ioc.h void bfa_sfp_intr(void *bfaarg, struct bfi_mbmsg_s *msg); msg 707 drivers/scsi/bfa/bfa_ioc.h void bfa_phy_intr(void *phyarg, struct bfi_mbmsg_s *msg); msg 757 drivers/scsi/bfa/bfa_ioc.h void bfa_fru_intr(void *fruarg, struct bfi_mbmsg_s *msg); msg 892 drivers/scsi/bfa/bfa_ioc.h void bfa_ioc_isr(struct bfa_ioc_s *ioc, struct bfi_mbmsg_s *msg); msg 251 drivers/scsi/bfa/bfa_port.c m = (struct bfi_port_generic_req_s *) port->endis_mb.msg; msg 307 drivers/scsi/bfa/bfa_port.c m = (struct bfi_port_generic_req_s *) port->endis_mb.msg; msg 346 drivers/scsi/bfa/bfa_port.c m = (struct bfi_port_get_stats_req_s *) port->stats_mb.msg; msg 385 drivers/scsi/bfa/bfa_port.c m = (struct bfi_port_generic_req_s *) port->stats_mb.msg; msg 661 drivers/scsi/bfa/bfa_port.c cmd = (struct bfi_cee_get_req_s *) cee->get_cfg_mb.msg; msg 701 drivers/scsi/bfa/bfa_port.c cmd = (struct bfi_cee_get_req_s *) cee->get_stats_mb.msg; msg 739 drivers/scsi/bfa/bfa_port.c cmd = (struct bfi_cee_reset_stats_s *) cee->reset_stats_mb.msg; msg 762 drivers/scsi/bfa/bfa_port.c union bfi_cee_i2h_msg_u *msg; msg 765 drivers/scsi/bfa/bfa_port.c msg = (union bfi_cee_i2h_msg_u *) m; msg 767 drivers/scsi/bfa/bfa_port.c bfa_trc(cee, msg->mh.msg_id); msg 768 drivers/scsi/bfa/bfa_port.c switch (msg->mh.msg_id) { msg 1122 drivers/scsi/bfa/bfa_svc.c bfa_fcxp_isr(struct bfa_s *bfa, struct bfi_msg_s *msg) msg 1124 drivers/scsi/bfa/bfa_svc.c switch (msg->mhdr.msg_id) { msg 1126 drivers/scsi/bfa/bfa_svc.c hal_fcxp_send_comp(bfa, (struct bfi_fcxp_send_rsp_s *) msg); msg 1130 drivers/scsi/bfa/bfa_svc.c bfa_trc(bfa, msg->mhdr.msg_id); msg 1978 drivers/scsi/bfa/bfa_svc.c union bfi_lps_i2h_msg_u msg; msg 1981 drivers/scsi/bfa/bfa_svc.c msg.msg = m; msg 1985 drivers/scsi/bfa/bfa_svc.c bfa_lps_login_rsp(bfa, msg.login_rsp); msg 1989 drivers/scsi/bfa/bfa_svc.c bfa_lps_logout_rsp(bfa, msg.logout_rsp); msg 1993 drivers/scsi/bfa/bfa_svc.c bfa_lps_rx_cvl_event(bfa, msg.cvl_event); msg 3324 drivers/scsi/bfa/bfa_svc.c struct bfi_fcport_req_s *msg; msg 3326 drivers/scsi/bfa/bfa_svc.c msg = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT); msg 3328 drivers/scsi/bfa/bfa_svc.c if (!msg) { msg 3338 drivers/scsi/bfa/bfa_svc.c memset(msg, 0, sizeof(struct bfi_fcport_req_s)); msg 3339 drivers/scsi/bfa/bfa_svc.c bfi_h2i_set(msg->mh, BFI_MC_FCPORT, BFI_FCPORT_H2I_STATS_GET_REQ, msg 3341 drivers/scsi/bfa/bfa_svc.c bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT, msg->mh); msg 3389 drivers/scsi/bfa/bfa_svc.c struct bfi_fcport_req_s *msg; msg 3391 drivers/scsi/bfa/bfa_svc.c msg = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT); msg 3393 drivers/scsi/bfa/bfa_svc.c if (!msg) { msg 3403 drivers/scsi/bfa/bfa_svc.c memset(msg, 0, sizeof(struct bfi_fcport_req_s)); msg 3404 drivers/scsi/bfa/bfa_svc.c bfi_h2i_set(msg->mh, BFI_MC_FCPORT, BFI_FCPORT_H2I_STATS_CLEAR_REQ, msg 3406 drivers/scsi/bfa/bfa_svc.c bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT, msg->mh); msg 3545 drivers/scsi/bfa/bfa_svc.c bfa_fcport_isr(struct bfa_s *bfa, struct bfi_msg_s *msg) msg 3550 drivers/scsi/bfa/bfa_svc.c i2hmsg.msg = msg; msg 3553 drivers/scsi/bfa/bfa_svc.c bfa_trc(bfa, msg->mhdr.msg_id); msg 3556 drivers/scsi/bfa/bfa_svc.c switch (msg->mhdr.msg_id) { msg 4986 drivers/scsi/bfa/bfa_svc.c union bfi_rport_i2h_msg_u msg; msg 4991 drivers/scsi/bfa/bfa_svc.c msg.msg = m; msg 4995 drivers/scsi/bfa/bfa_svc.c rp = BFA_RPORT_FROM_TAG(bfa, msg.create_rsp->bfa_handle); msg 4996 drivers/scsi/bfa/bfa_svc.c rp->fw_handle = msg.create_rsp->fw_handle; msg 4997 drivers/scsi/bfa/bfa_svc.c rp->qos_attr = msg.create_rsp->qos_attr; msg 4999 drivers/scsi/bfa/bfa_svc.c WARN_ON(msg.create_rsp->status != BFA_STATUS_OK); msg 5004 drivers/scsi/bfa/bfa_svc.c rp = BFA_RPORT_FROM_TAG(bfa, msg.delete_rsp->bfa_handle); msg 5005 drivers/scsi/bfa/bfa_svc.c WARN_ON(msg.delete_rsp->status != BFA_STATUS_OK); msg 5011 drivers/scsi/bfa/bfa_svc.c rp = BFA_RPORT_FROM_TAG(bfa, msg.qos_scn_evt->bfa_handle); msg 5012 drivers/scsi/bfa/bfa_svc.c rp->event_arg.fw_msg = msg.qos_scn_evt; msg 5018 drivers/scsi/bfa/bfa_svc.c &msg.lip_scn->loop_info); msg 5027 drivers/scsi/bfa/bfa_svc.c rp = BFA_RPORT_FROM_TAG(bfa, msg.lip_scn->bfa_handle); msg 5613 drivers/scsi/bfa/bfa_svc.c bfa_uf_isr(struct bfa_s *bfa, struct bfi_msg_s *msg) msg 5615 drivers/scsi/bfa/bfa_svc.c bfa_trc(bfa, msg->mhdr.msg_id); msg 5617 drivers/scsi/bfa/bfa_svc.c switch (msg->mhdr.msg_id) { msg 5619 drivers/scsi/bfa/bfa_svc.c uf_recv(bfa, (struct bfi_uf_frm_rcvd_s *) msg); msg 5623 drivers/scsi/bfa/bfa_svc.c bfa_trc(bfa, msg->mhdr.msg_id); msg 5689 drivers/scsi/bfa/bfa_svc.c struct bfi_diag_dport_rsp_s *msg); msg 5691 drivers/scsi/bfa/bfa_svc.c struct bfi_diag_dport_scn_s *msg); msg 5903 drivers/scsi/bfa/bfa_svc.c bfa_fcdiag_intr(struct bfa_s *bfa, struct bfi_msg_s *msg) msg 5907 drivers/scsi/bfa/bfa_svc.c switch (msg->mhdr.msg_id) { msg 5910 drivers/scsi/bfa/bfa_svc.c (struct bfi_diag_lb_rsp_s *) msg); msg 5913 drivers/scsi/bfa/bfa_svc.c bfa_fcdiag_queuetest_comp(fcdiag, (bfi_diag_qtest_rsp_t *)msg); msg 5917 drivers/scsi/bfa/bfa_svc.c (struct bfi_diag_dport_rsp_s *)msg); msg 5921 drivers/scsi/bfa/bfa_svc.c (struct bfi_diag_dport_scn_s *)msg); msg 5924 drivers/scsi/bfa/bfa_svc.c bfa_trc(fcdiag, msg->mhdr.msg_id); msg 6517 drivers/scsi/bfa/bfa_svc.c bfa_dport_req_comp(struct bfa_dport_s *dport, struct bfi_diag_dport_rsp_s *msg) msg 6519 drivers/scsi/bfa/bfa_svc.c msg->status = cpu_to_be32(msg->status); msg 6520 drivers/scsi/bfa/bfa_svc.c dport->i2hmsg.rsp.status = msg->status; msg 6521 drivers/scsi/bfa/bfa_svc.c dport->rp_pwwn = msg->pwwn; msg 6522 drivers/scsi/bfa/bfa_svc.c dport->rp_nwwn = msg->nwwn; msg 6524 drivers/scsi/bfa/bfa_svc.c if ((msg->status == BFA_STATUS_OK) || msg 6525 drivers/scsi/bfa/bfa_svc.c (msg->status == BFA_STATUS_DPORT_NO_SFP)) { msg 6526 drivers/scsi/bfa/bfa_svc.c bfa_trc(dport->bfa, msg->status); msg 6532 drivers/scsi/bfa/bfa_svc.c bfa_trc(dport->bfa, msg->status); msg 6535 drivers/scsi/bfa/bfa_svc.c bfa_cb_fcdiag_dport(dport, msg->status); msg 6554 drivers/scsi/bfa/bfa_svc.c bfa_dport_scn(struct bfa_dport_s *dport, struct bfi_diag_dport_scn_s *msg) msg 6559 drivers/scsi/bfa/bfa_svc.c bfa_trc(dport->bfa, msg->state); msg 6560 drivers/scsi/bfa/bfa_svc.c dport->i2hmsg.scn.state = msg->state; msg 6567 drivers/scsi/bfa/bfa_svc.c dport->result.status = msg->info.testcomp.status; msg 6571 drivers/scsi/bfa/bfa_svc.c cpu_to_be32(msg->info.testcomp.latency); msg 6573 drivers/scsi/bfa/bfa_svc.c cpu_to_be32(msg->info.testcomp.distance); msg 6575 drivers/scsi/bfa/bfa_svc.c be16_to_cpu(msg->info.testcomp.numbuffer); msg 6577 drivers/scsi/bfa/bfa_svc.c dport->result.frmsz = be16_to_cpu(msg->info.testcomp.frm_sz); msg 6578 drivers/scsi/bfa/bfa_svc.c dport->result.speed = msg->info.testcomp.speed; msg 6588 drivers/scsi/bfa/bfa_svc.c msg->info.testcomp.subtest_status[i]; msg 6602 drivers/scsi/bfa/bfa_svc.c dport->rp_pwwn = msg->info.teststart.pwwn; msg 6603 drivers/scsi/bfa/bfa_svc.c dport->rp_nwwn = msg->info.teststart.nwwn; msg 6604 drivers/scsi/bfa/bfa_svc.c dport->lpcnt = cpu_to_be32(msg->info.teststart.numfrm); msg 6605 drivers/scsi/bfa/bfa_svc.c bfa_dport_result_start(dport, msg->info.teststart.mode); msg 6609 drivers/scsi/bfa/bfa_svc.c subtesttype = msg->info.teststart.type; msg 6628 drivers/scsi/bfa/bfa_svc.c bfa_sm_fault(dport->bfa, msg->state); msg 227 drivers/scsi/bfa/bfa_svc.h void bfa_fcxp_isr(struct bfa_s *bfa, struct bfi_msg_s *msg); msg 269 drivers/scsi/bfa/bfa_svc.h void bfa_rport_isr(struct bfa_s *bfa, struct bfi_msg_s *msg); msg 377 drivers/scsi/bfa/bfa_svc.h void bfa_uf_isr(struct bfa_s *bfa, struct bfi_msg_s *msg); msg 433 drivers/scsi/bfa/bfa_svc.h void bfa_lps_isr(struct bfa_s *bfa, struct bfi_msg_s *msg); msg 519 drivers/scsi/bfa/bfa_svc.h void bfa_fcport_isr(struct bfa_s *bfa, struct bfi_msg_s *msg); msg 736 drivers/scsi/bfa/bfa_svc.h void bfa_fcdiag_intr(struct bfa_s *bfa, struct bfi_msg_s *msg); msg 320 drivers/scsi/bfa/bfi_ms.h struct bfi_msg_s *msg; msg 472 drivers/scsi/bfa/bfi_ms.h struct bfi_mhdr_s *msg; msg 479 drivers/scsi/bfa/bfi_ms.h struct bfi_msg_s *msg; msg 559 drivers/scsi/bfa/bfi_ms.h struct bfi_msg_s *msg; msg 566 drivers/scsi/bfa/bfi_ms.h struct bfi_msg_s *msg; msg 627 drivers/scsi/bfa/bfi_ms.h struct bfi_msg_s *msg; msg 634 drivers/scsi/bfa/bfi_ms.h struct bfi_msg_s *msg; msg 980 drivers/scsi/bnx2fc/bnx2fc_hwi.c u32 msg; msg 985 drivers/scsi/bnx2fc/bnx2fc_hwi.c msg = *((u32 *)rx_db); msg 986 drivers/scsi/bnx2fc/bnx2fc_hwi.c writel(cpu_to_le32(msg), tgt->ctx_base); msg 1395 drivers/scsi/bnx2fc/bnx2fc_hwi.c u32 msg; msg 1400 drivers/scsi/bnx2fc/bnx2fc_hwi.c msg = *((u32 *)sq_db); msg 1401 drivers/scsi/bnx2fc/bnx2fc_hwi.c writel(cpu_to_le32(msg), tgt->ctx_base); msg 213 drivers/scsi/bnx2i/bnx2i_hwi.c u32 msg; msg 218 drivers/scsi/bnx2i/bnx2i_hwi.c msg = *((u32 *)&dbell); msg 220 drivers/scsi/bnx2i/bnx2i_hwi.c writel(cpu_to_le32(msg), conn->ep->qp.ctx_base); msg 3126 drivers/scsi/csiostor/csio_hw.c acts->msg, status & acts->mask); msg 3127 drivers/scsi/csiostor/csio_hw.c } else if (acts->msg) msg 3129 drivers/scsi/csiostor/csio_hw.c acts->msg, status & acts->mask); msg 3937 drivers/scsi/csiostor/csio_hw.c void *msg = NULL; msg 3949 drivers/scsi/csiostor/csio_hw.c msg = (void *) flb; msg 3956 drivers/scsi/csiostor/csio_hw.c msg = (void *)((uintptr_t)wr + sizeof(__be64)); msg 3969 drivers/scsi/csiostor/csio_hw.c if (csio_enqueue_evt_lock(hw, CSIO_EVT_FW, msg, msg 3981 drivers/scsi/csiostor/csio_hw.c struct cpl_fw6_msg *msg; msg 4009 drivers/scsi/csiostor/csio_hw.c msg = (struct cpl_fw6_msg *)(evt_msg->data); msg 4011 drivers/scsi/csiostor/csio_hw.c if ((msg->opcode == CPL_FW6_MSG || msg 4012 drivers/scsi/csiostor/csio_hw.c msg->opcode == CPL_FW4_MSG) && msg 4013 drivers/scsi/csiostor/csio_hw.c !msg->type) { msg 4015 drivers/scsi/csiostor/csio_hw.c msg->data); msg 4020 drivers/scsi/csiostor/csio_hw.c msg->opcode, msg->data); msg 4021 drivers/scsi/csiostor/csio_hw.c } else if (msg->opcode == CPL_FW6_PLD) { msg 4024 drivers/scsi/csiostor/csio_hw.c msg->opcode, msg->data); msg 4028 drivers/scsi/csiostor/csio_hw.c msg->opcode, msg->type); msg 113 drivers/scsi/csiostor/csio_hw_chip.h const char *msg; /* message to print or NULL */ msg 170 drivers/scsi/dc395x.c #define MK_RES(drv,did,msg,tgt) ((int)(drv)<<24 | (int)(did)<<16 | (int)(msg)<<8 | (int)(tgt)) msg 171 drivers/scsi/dc395x.c #define MK_RES_LNX(drv,did,msg,tgt) ((int)(drv)<<24 | (int)(did)<<16 | (int)(msg)<<8 | (int)(tgt)<<1) msg 175 drivers/scsi/dc395x.c #define SET_RES_MSG(who,msg) { who &= ~RES_ENDMSG; who |= (int)(msg) << 8; } msg 315 drivers/scsi/dpt_i2o.c u32 msg[17]; msg 327 drivers/scsi/dpt_i2o.c memset(msg, 0, sizeof(msg)); msg 344 drivers/scsi/dpt_i2o.c msg[0] = reqlen<<16 | SGL_OFFSET_12; msg 345 drivers/scsi/dpt_i2o.c msg[1] = (0xff<<24|HOST_TID<<12|ADAPTER_TID); msg 346 drivers/scsi/dpt_i2o.c msg[2] = 0; msg 347 drivers/scsi/dpt_i2o.c msg[3] = 0; msg 349 drivers/scsi/dpt_i2o.c msg[4] = I2O_CMD_SCSI_EXEC|DPT_ORGANIZATION_ID<<16; msg 350 drivers/scsi/dpt_i2o.c msg[5] = ADAPTER_TID | 1<<16 /* Interpret*/; msg 355 drivers/scsi/dpt_i2o.c msg[6] = scsidir|0x20a00000| 6 /* cmd len*/; msg 357 drivers/scsi/dpt_i2o.c mptr=msg+7; msg 387 drivers/scsi/dpt_i2o.c rcode = adpt_i2o_post_wait(pHba, msg, reqlen<<2, 120); msg 642 drivers/scsi/dpt_i2o.c u32 msg[5]; msg 652 drivers/scsi/dpt_i2o.c memset(msg, 0, sizeof(msg)); msg 653 drivers/scsi/dpt_i2o.c msg[0] = FIVE_WORD_MSG_SIZE|SGL_OFFSET_0; msg 654 drivers/scsi/dpt_i2o.c msg[1] = I2O_CMD_SCSI_ABORT<<24|HOST_TID<<12|dptdevice->tid; msg 655 drivers/scsi/dpt_i2o.c msg[2] = 0; msg 656 drivers/scsi/dpt_i2o.c msg[3]= 0; msg 658 drivers/scsi/dpt_i2o.c msg[4] = cmd->request->tag + 1; msg 661 drivers/scsi/dpt_i2o.c rcode = adpt_i2o_post_wait(pHba, msg, sizeof(msg), FOREVER); msg 684 drivers/scsi/dpt_i2o.c u32 msg[4]; msg 695 drivers/scsi/dpt_i2o.c memset(msg, 0, sizeof(msg)); msg 696 drivers/scsi/dpt_i2o.c msg[0] = FOUR_WORD_MSG_SIZE|SGL_OFFSET_0; msg 697 drivers/scsi/dpt_i2o.c msg[1] = (I2O_DEVICE_RESET<<24|HOST_TID<<12|d->tid); msg 698 drivers/scsi/dpt_i2o.c msg[2] = 0; msg 699 drivers/scsi/dpt_i2o.c msg[3] = 0; msg 705 drivers/scsi/dpt_i2o.c rcode = adpt_i2o_post_wait(pHba, msg,sizeof(msg), FOREVER); msg 728 drivers/scsi/dpt_i2o.c u32 msg[4]; msg 732 drivers/scsi/dpt_i2o.c memset(msg, 0, sizeof(msg)); msg 734 drivers/scsi/dpt_i2o.c msg[0] = FOUR_WORD_MSG_SIZE|SGL_OFFSET_0; msg 735 drivers/scsi/dpt_i2o.c msg[1] = (I2O_HBA_BUS_RESET<<24|HOST_TID<<12|pHba->channel[cmd->device->channel].tid); msg 736 drivers/scsi/dpt_i2o.c msg[2] = 0; msg 737 drivers/scsi/dpt_i2o.c msg[3] = 0; msg 740 drivers/scsi/dpt_i2o.c rcode = adpt_i2o_post_wait(pHba, msg,sizeof(msg), FOREVER); msg 1146 drivers/scsi/dpt_i2o.c static int adpt_i2o_post_wait(adpt_hba* pHba, u32* msg, int len, int timeout) msg 1181 drivers/scsi/dpt_i2o.c msg[2] |= 0x80000000 | ((u32)wait_data->id); msg 1183 drivers/scsi/dpt_i2o.c if((status = adpt_i2o_post_this(pHba, msg, len)) == 0){ msg 1237 drivers/scsi/dpt_i2o.c u32 __iomem *msg; msg 1252 drivers/scsi/dpt_i2o.c msg = pHba->msg_addr_virt + m; msg 1253 drivers/scsi/dpt_i2o.c memcpy_toio(msg, data, len); msg 1303 drivers/scsi/dpt_i2o.c u32 msg[8]; msg 1336 drivers/scsi/dpt_i2o.c msg[0]=EIGHT_WORD_MSG_SIZE|SGL_OFFSET_0; msg 1337 drivers/scsi/dpt_i2o.c msg[1]=I2O_CMD_ADAPTER_RESET<<24|HOST_TID<<12|ADAPTER_TID; msg 1338 drivers/scsi/dpt_i2o.c msg[2]=0; msg 1339 drivers/scsi/dpt_i2o.c msg[3]=0; msg 1340 drivers/scsi/dpt_i2o.c msg[4]=0; msg 1341 drivers/scsi/dpt_i2o.c msg[5]=0; msg 1342 drivers/scsi/dpt_i2o.c msg[6]=dma_low(addr); msg 1343 drivers/scsi/dpt_i2o.c msg[7]=dma_high(addr); msg 1345 drivers/scsi/dpt_i2o.c memcpy_toio(pHba->msg_addr_virt+m, msg, sizeof(msg)); msg 1658 drivers/scsi/dpt_i2o.c u32 msg[MAX_MESSAGE_SIZE]; msg 1674 drivers/scsi/dpt_i2o.c memset(&msg, 0, MAX_MESSAGE_SIZE*4); msg 1688 drivers/scsi/dpt_i2o.c if(copy_from_user(msg, user_msg, size)) { msg 1702 drivers/scsi/dpt_i2o.c sg_offset = (msg[0]>>4)&0xf; msg 1703 drivers/scsi/dpt_i2o.c msg[2] = 0x40000000; // IOCTL context msg 1704 drivers/scsi/dpt_i2o.c msg[3] = adpt_ioctl_to_context(pHba, reply); msg 1705 drivers/scsi/dpt_i2o.c if (msg[3] == (u32)-1) { msg 1717 drivers/scsi/dpt_i2o.c struct sg_simple_element *sg = (struct sg_simple_element*) (msg+sg_offset); msg 1766 drivers/scsi/dpt_i2o.c rcode = adpt_i2o_post_wait(pHba, msg, size, FOREVER); msg 1788 drivers/scsi/dpt_i2o.c memset(&msg, 0, MAX_MESSAGE_SIZE*4); msg 1801 drivers/scsi/dpt_i2o.c if (copy_from_user (msg, user_msg, size)) { msg 1808 drivers/scsi/dpt_i2o.c sg = (struct sg_simple_element*)(msg + sg_offset); msg 1840 drivers/scsi/dpt_i2o.c (struct sg_simple_element*) (msg +sg_offset); msg 2126 drivers/scsi/dpt_i2o.c void __iomem *msg; msg 2135 drivers/scsi/dpt_i2o.c msg = pHba->msg_addr_virt + old_m; msg 2136 drivers/scsi/dpt_i2o.c old_context = readl(msg+12); msg 2192 drivers/scsi/dpt_i2o.c u32 msg[MAX_MESSAGE_SIZE]; msg 2204 drivers/scsi/dpt_i2o.c memset(msg, 0 , sizeof(msg)); msg 2240 drivers/scsi/dpt_i2o.c msg[1] = ((0xff<<24)|(HOST_TID<<12)|d->tid); msg 2241 drivers/scsi/dpt_i2o.c msg[2] = 0; msg 2243 drivers/scsi/dpt_i2o.c msg[3] = cmd->request->tag + 1; msg 2246 drivers/scsi/dpt_i2o.c msg[4] = I2O_CMD_SCSI_EXEC|(DPT_ORGANIZATION_ID<<16); msg 2247 drivers/scsi/dpt_i2o.c msg[5] = d->tid; msg 2252 drivers/scsi/dpt_i2o.c msg[6] = scsidir|0x20a00000|cmd->cmd_len; msg 2254 drivers/scsi/dpt_i2o.c mptr=msg+7; msg 2288 drivers/scsi/dpt_i2o.c reqlen = mptr - msg; msg 2301 drivers/scsi/dpt_i2o.c msg[0] = reqlen<<16 | ((reqlen > 12) ? SGL_OFFSET_12 : SGL_OFFSET_0); msg 2304 drivers/scsi/dpt_i2o.c rcode = adpt_i2o_post_this(pHba, msg, reqlen<<2); msg 2748 drivers/scsi/dpt_i2o.c u32 __iomem *msg; msg 2763 drivers/scsi/dpt_i2o.c msg = (u32 __iomem *)(pHba->msg_addr_virt + m); msg 2764 drivers/scsi/dpt_i2o.c writel( THREE_WORD_MSG_SIZE | SGL_OFFSET_0,&msg[0]); msg 2765 drivers/scsi/dpt_i2o.c writel( I2O_CMD_UTIL_NOP << 24 | HOST_TID << 12 | 0,&msg[1]); msg 2766 drivers/scsi/dpt_i2o.c writel( 0,&msg[2]); msg 2778 drivers/scsi/dpt_i2o.c u32 __iomem *msg = NULL; msg 2797 drivers/scsi/dpt_i2o.c msg=(u32 __iomem *)(pHba->msg_addr_virt+m); msg 2808 drivers/scsi/dpt_i2o.c writel(EIGHT_WORD_MSG_SIZE| SGL_OFFSET_6, &msg[0]); msg 2809 drivers/scsi/dpt_i2o.c writel(I2O_CMD_OUTBOUND_INIT<<24 | HOST_TID<<12 | ADAPTER_TID, &msg[1]); msg 2810 drivers/scsi/dpt_i2o.c writel(0, &msg[2]); msg 2811 drivers/scsi/dpt_i2o.c writel(0x0106, &msg[3]); /* Transaction context */ msg 2812 drivers/scsi/dpt_i2o.c writel(4096, &msg[4]); /* Host page frame size */ msg 2813 drivers/scsi/dpt_i2o.c writel((REPLY_FRAME_SIZE)<<16|0x80, &msg[5]); /* Outbound msg frame size and Initcode */ msg 2814 drivers/scsi/dpt_i2o.c writel(0xD0000004, &msg[6]); /* Simple SG LE, EOB */ msg 2815 drivers/scsi/dpt_i2o.c writel((u32)addr, &msg[7]); msg 2887 drivers/scsi/dpt_i2o.c u32 __iomem *msg; msg 2919 drivers/scsi/dpt_i2o.c msg=(u32 __iomem *)(pHba->msg_addr_virt+m); msg 2921 drivers/scsi/dpt_i2o.c writel(NINE_WORD_MSG_SIZE|SGL_OFFSET_0, &msg[0]); msg 2922 drivers/scsi/dpt_i2o.c writel(I2O_CMD_STATUS_GET<<24|HOST_TID<<12|ADAPTER_TID, &msg[1]); msg 2923 drivers/scsi/dpt_i2o.c writel(1, &msg[2]); msg 2924 drivers/scsi/dpt_i2o.c writel(0, &msg[3]); msg 2925 drivers/scsi/dpt_i2o.c writel(0, &msg[4]); msg 2926 drivers/scsi/dpt_i2o.c writel(0, &msg[5]); msg 2927 drivers/scsi/dpt_i2o.c writel( dma_low(pHba->status_block_pa), &msg[6]); msg 2928 drivers/scsi/dpt_i2o.c writel( dma_high(pHba->status_block_pa), &msg[7]); msg 2929 drivers/scsi/dpt_i2o.c writel(sizeof(i2o_status_block), &msg[8]); // 88 bytes msg 3009 drivers/scsi/dpt_i2o.c u32 msg[8]; msg 3029 drivers/scsi/dpt_i2o.c msg[0] = EIGHT_WORD_MSG_SIZE|SGL_OFFSET_6; msg 3030 drivers/scsi/dpt_i2o.c msg[1] = I2O_CMD_LCT_NOTIFY<<24 | HOST_TID<<12 | ADAPTER_TID; msg 3031 drivers/scsi/dpt_i2o.c msg[2] = 0; msg 3032 drivers/scsi/dpt_i2o.c msg[3] = 0; msg 3033 drivers/scsi/dpt_i2o.c msg[4] = 0xFFFFFFFF; /* All devices */ msg 3034 drivers/scsi/dpt_i2o.c msg[5] = 0x00000000; /* Report now */ msg 3035 drivers/scsi/dpt_i2o.c msg[6] = 0xD0000000|pHba->lct_size; msg 3036 drivers/scsi/dpt_i2o.c msg[7] = (u32)pHba->lct_pa; msg 3038 drivers/scsi/dpt_i2o.c if ((ret=adpt_i2o_post_wait(pHba, msg, sizeof(msg), 360))) { msg 3251 drivers/scsi/dpt_i2o.c u32 msg[6]; msg 3264 drivers/scsi/dpt_i2o.c msg[0]= SIX_WORD_MSG_SIZE| SGL_OFFSET_4; msg 3265 drivers/scsi/dpt_i2o.c msg[1]= I2O_CMD_HRT_GET<<24 | HOST_TID<<12 | ADAPTER_TID; msg 3266 drivers/scsi/dpt_i2o.c msg[2]= 0; msg 3267 drivers/scsi/dpt_i2o.c msg[3]= 0; msg 3268 drivers/scsi/dpt_i2o.c msg[4]= (0xD0000000 | size); /* Simple transaction */ msg 3269 drivers/scsi/dpt_i2o.c msg[5]= (u32)pHba->hrt_pa; /* Dump it here */ msg 3271 drivers/scsi/dpt_i2o.c if ((ret = adpt_i2o_post_wait(pHba, msg, sizeof(msg),20))) { msg 3361 drivers/scsi/dpt_i2o.c u32 msg[9]; msg 3365 drivers/scsi/dpt_i2o.c msg[0] = NINE_WORD_MSG_SIZE | SGL_OFFSET_5; msg 3366 drivers/scsi/dpt_i2o.c msg[1] = cmd << 24 | HOST_TID << 12 | tid; msg 3367 drivers/scsi/dpt_i2o.c msg[2] = 0; msg 3368 drivers/scsi/dpt_i2o.c msg[3] = 0; msg 3369 drivers/scsi/dpt_i2o.c msg[4] = 0; msg 3370 drivers/scsi/dpt_i2o.c msg[5] = 0x54000000 | oplen; /* OperationBlock */ msg 3371 drivers/scsi/dpt_i2o.c msg[6] = (u32)opblk_pa; msg 3372 drivers/scsi/dpt_i2o.c msg[7] = 0xD0000000 | reslen; /* ResultBlock */ msg 3373 drivers/scsi/dpt_i2o.c msg[8] = (u32)resblk_pa; msg 3375 drivers/scsi/dpt_i2o.c if ((wait_status = adpt_i2o_post_wait(pHba, msg, sizeof(msg), 20))) { msg 3396 drivers/scsi/dpt_i2o.c u32 msg[4]; msg 3408 drivers/scsi/dpt_i2o.c msg[0] = FOUR_WORD_MSG_SIZE|SGL_OFFSET_0; msg 3409 drivers/scsi/dpt_i2o.c msg[1] = I2O_CMD_SYS_QUIESCE<<24|HOST_TID<<12|ADAPTER_TID; msg 3410 drivers/scsi/dpt_i2o.c msg[2] = 0; msg 3411 drivers/scsi/dpt_i2o.c msg[3] = 0; msg 3413 drivers/scsi/dpt_i2o.c if((ret = adpt_i2o_post_wait(pHba, msg, sizeof(msg), 240))) { msg 3430 drivers/scsi/dpt_i2o.c u32 msg[4]; msg 3444 drivers/scsi/dpt_i2o.c msg[0]=FOUR_WORD_MSG_SIZE|SGL_OFFSET_0; msg 3445 drivers/scsi/dpt_i2o.c msg[1]=I2O_CMD_SYS_ENABLE<<24|HOST_TID<<12|ADAPTER_TID; msg 3446 drivers/scsi/dpt_i2o.c msg[2]= 0; msg 3447 drivers/scsi/dpt_i2o.c msg[3]= 0; msg 3449 drivers/scsi/dpt_i2o.c if ((ret = adpt_i2o_post_wait(pHba, msg, sizeof(msg), 240))) { msg 3463 drivers/scsi/dpt_i2o.c u32 msg[12]; msg 3466 drivers/scsi/dpt_i2o.c msg[0] = I2O_MESSAGE_SIZE(12) | SGL_OFFSET_6; msg 3467 drivers/scsi/dpt_i2o.c msg[1] = I2O_CMD_SYS_TAB_SET<<24 | HOST_TID<<12 | ADAPTER_TID; msg 3468 drivers/scsi/dpt_i2o.c msg[2] = 0; msg 3469 drivers/scsi/dpt_i2o.c msg[3] = 0; msg 3470 drivers/scsi/dpt_i2o.c msg[4] = (0<<16) | ((pHba->unit+2) << 12); /* Host 0 IOP ID (unit + 2) */ msg 3471 drivers/scsi/dpt_i2o.c msg[5] = 0; /* Segment 0 */ msg 3478 drivers/scsi/dpt_i2o.c msg[6] = 0x54000000 | sys_tbl_len; msg 3479 drivers/scsi/dpt_i2o.c msg[7] = (u32)sys_tbl_pa; msg 3480 drivers/scsi/dpt_i2o.c msg[8] = 0x54000000 | 0; msg 3481 drivers/scsi/dpt_i2o.c msg[9] = 0; msg 3482 drivers/scsi/dpt_i2o.c msg[10] = 0xD4000000 | 0; msg 3483 drivers/scsi/dpt_i2o.c msg[11] = 0; msg 3485 drivers/scsi/dpt_i2o.c if ((ret=adpt_i2o_post_wait(pHba, msg, sizeof(msg), 120))) { msg 277 drivers/scsi/dpti.h static int adpt_i2o_post_wait(adpt_hba* pHba, u32* msg, int len, int timeout); msg 1171 drivers/scsi/esas2r/esas2r_init.c u32 msg = a->init_msg; msg 1176 drivers/scsi/esas2r/esas2r_init.c switch (msg) { msg 1242 drivers/scsi/esas2r/esas2r_init.c if (msg == ESAS2R_INIT_MSG_GET_INIT) { msg 2645 drivers/scsi/gdth.c gdth_msg_str *msg; msg 2655 drivers/scsi/gdth.c msg = ha->pmsg; msg 2657 drivers/scsi/gdth.c msg->msg_len,msg->msg_answer,msg->msg_ext,msg->msg_alen)); msg 2658 drivers/scsi/gdth.c if (msg->msg_len > MSGLEN+1) msg 2659 drivers/scsi/gdth.c msg->msg_len = MSGLEN+1; msg 2660 drivers/scsi/gdth.c if (msg->msg_len) msg 2661 drivers/scsi/gdth.c if (!(msg->msg_answer && msg->msg_ext)) { msg 2662 drivers/scsi/gdth.c msg->msg_text[msg->msg_len] = '\0'; msg 2663 drivers/scsi/gdth.c printk("%s",msg->msg_text); msg 2666 drivers/scsi/gdth.c if (msg->msg_ext && !msg->msg_answer) { msg 2676 drivers/scsi/gdth.c cmdp->u.screen.su.msg.msg_handle= msg->msg_handle; msg 2677 drivers/scsi/gdth.c cmdp->u.screen.su.msg.msg_addr = ha->msg_phys; msg 2679 drivers/scsi/gdth.c ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.screen.su.msg.msg_addr) msg 2687 drivers/scsi/gdth.c if (msg->msg_answer && msg->msg_alen) { msg 2689 drivers/scsi/gdth.c if (msg->msg_alen == 1) { msg 2690 drivers/scsi/gdth.c msg->msg_alen = 0; msg 2691 drivers/scsi/gdth.c msg->msg_len = 1; msg 2692 drivers/scsi/gdth.c msg->msg_text[0] = 0; msg 2694 drivers/scsi/gdth.c msg->msg_alen -= 2; msg 2695 drivers/scsi/gdth.c msg->msg_len = 2; msg 2696 drivers/scsi/gdth.c msg->msg_text[0] = 1; msg 2697 drivers/scsi/gdth.c msg->msg_text[1] = 0; msg 2699 drivers/scsi/gdth.c msg->msg_ext = 0; msg 2700 drivers/scsi/gdth.c msg->msg_answer = 0; msg 2710 drivers/scsi/gdth.c cmdp->u.screen.su.msg.msg_handle= msg->msg_handle; msg 2711 drivers/scsi/gdth.c cmdp->u.screen.su.msg.msg_addr = ha->msg_phys; msg 2713 drivers/scsi/gdth.c ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.screen.su.msg.msg_addr) msg 3027 drivers/scsi/gdth.c cmdp->u.screen.su.msg.msg_handle= MSG_INV_HANDLE; msg 3028 drivers/scsi/gdth.c cmdp->u.screen.su.msg.msg_addr = ha->msg_phys; msg 3030 drivers/scsi/gdth.c ha->cmd_len = GDTOFFSOF(gdth_cmd_str,u.screen.su.msg.msg_addr) msg 78 drivers/scsi/gdth_ioctl.h } __attribute__((packed)) msg; msg 115 drivers/scsi/hisi_sas/hisi_sas.h const char *msg; msg 425 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "hgc_dqe_ecc1b_intr", msg 432 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "hgc_iost_ecc1b_intr", msg 439 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "hgc_itct_ecc1b_intr", msg 446 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "hgc_iostl_ecc1b_intr", msg 453 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "hgc_itctl_ecc1b_intr", msg 460 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "hgc_cqe_ecc1b_intr", msg 467 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "rxm_mem0_ecc1b_intr", msg 474 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "rxm_mem1_ecc1b_intr", msg 481 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "rxm_mem2_ecc1b_intr", msg 488 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "rxm_mem3_ecc1b_intr", msg 498 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "hgc_dqe_eccbad_intr", msg 505 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "hgc_iost_eccbad_intr", msg 512 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "hgc_itct_eccbad_intr", msg 519 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "hgc_iostl_eccbad_intr", msg 526 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "hgc_itctl_eccbad_intr", msg 533 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "hgc_cqe_eccbad_intr", msg 540 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "rxm_mem0_eccbad_intr", msg 547 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "rxm_mem1_eccbad_intr", msg 554 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "rxm_mem2_eccbad_intr", msg 561 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "rxm_mem3_eccbad_intr", msg 2834 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "dmac_tx_ecc_bad_err", msg 2838 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "dmac_rx_ecc_bad_err", msg 2842 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "dma_tx_axi_wr_err", msg 2846 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "dma_tx_axi_rd_err", msg 2850 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "dma_rx_axi_wr_err", msg 2854 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "dma_rx_axi_rd_err", msg 2892 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c error->msg, phy_no, irq_value1); msg 2951 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ecc_error->msg, val); msg 2971 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c ecc_error->msg, irq_value, val); msg 3000 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c { .msk = BIT(0), .msg = "IOST_AXI_W_ERR" }, msg 3001 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c { .msk = BIT(1), .msg = "IOST_AXI_R_ERR" }, msg 3002 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c { .msk = BIT(2), .msg = "ITCT_AXI_W_ERR" }, msg 3003 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c { .msk = BIT(3), .msg = "ITCT_AXI_R_ERR" }, msg 3004 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c { .msk = BIT(4), .msg = "SATA_AXI_W_ERR" }, msg 3005 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c { .msk = BIT(5), .msg = "SATA_AXI_R_ERR" }, msg 3006 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c { .msk = BIT(6), .msg = "DQE_AXI_R_ERR" }, msg 3007 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c { .msk = BIT(7), .msg = "CQE_AXI_W_ERR" }, msg 3012 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c { .msk = BIT(8), .msg = "CQE_WINFO_FIFO" }, msg 3013 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c { .msk = BIT(9), .msg = "CQE_MSG_FIFIO" }, msg 3014 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c { .msk = BIT(10), .msg = "GETDQE_FIFO" }, msg 3015 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c { .msk = BIT(11), .msg = "CMDP_FIFO" }, msg 3016 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c { .msk = BIT(12), .msg = "AWTCTRL_FIFO" }, msg 3023 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "write pointer and depth", msg 3027 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "iptt no match slot", msg 3031 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "read pointer and depth", msg 3045 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "LM add/fetch list", msg 3049 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c .msg = "SAS_HGC_ABT fetch LM list", msg 3077 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c for (; sub->msk || sub->msg; sub++) { msg 3081 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c sub->msg, irq_value); msg 3086 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c axi_error->msg, irq_value); msg 1630 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "dmac_tx_ecc_bad_err", msg 1634 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "dmac_rx_ecc_bad_err", msg 1638 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "dma_tx_axi_wr_err", msg 1642 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "dma_tx_axi_rd_err", msg 1646 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "dma_rx_axi_wr_err", msg 1650 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "dma_rx_axi_rd_err", msg 1654 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "dma_tx_fifo_err", msg 1658 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "dma_rx_fifo_err", msg 1662 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "dma_tx_axi_ruser_err", msg 1666 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "dma_rx_axi_ruser_err", msg 1688 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c error->msg, phy_no, irq_value); msg 1837 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "hgc_dqe_eccbad_intr", msg 1844 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "hgc_iost_eccbad_intr", msg 1851 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "hgc_itct_eccbad_intr", msg 1858 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "hgc_iostl_eccbad_intr", msg 1865 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "hgc_itctl_eccbad_intr", msg 1872 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "hgc_cqe_eccbad_intr", msg 1879 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "rxm_mem0_eccbad_intr", msg 1886 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "rxm_mem1_eccbad_intr", msg 1893 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "rxm_mem2_eccbad_intr", msg 1900 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "rxm_mem3_eccbad_intr", msg 1907 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "ooo_ram_eccbad_intr", msg 1927 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c ecc_error->msg, irq_value, val); msg 1949 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c { .msk = BIT(0), .msg = "IOST_AXI_W_ERR" }, msg 1950 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c { .msk = BIT(1), .msg = "IOST_AXI_R_ERR" }, msg 1951 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c { .msk = BIT(2), .msg = "ITCT_AXI_W_ERR" }, msg 1952 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c { .msk = BIT(3), .msg = "ITCT_AXI_R_ERR" }, msg 1953 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c { .msk = BIT(4), .msg = "SATA_AXI_W_ERR" }, msg 1954 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c { .msk = BIT(5), .msg = "SATA_AXI_R_ERR" }, msg 1955 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c { .msk = BIT(6), .msg = "DQE_AXI_R_ERR" }, msg 1956 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c { .msk = BIT(7), .msg = "CQE_AXI_W_ERR" }, msg 1961 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c { .msk = BIT(8), .msg = "CQE_WINFO_FIFO" }, msg 1962 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c { .msk = BIT(9), .msg = "CQE_MSG_FIFIO" }, msg 1963 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c { .msk = BIT(10), .msg = "GETDQE_FIFO" }, msg 1964 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c { .msk = BIT(11), .msg = "CMDP_FIFO" }, msg 1965 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c { .msk = BIT(12), .msg = "AWTCTRL_FIFO" }, msg 1972 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "write pointer and depth", msg 1976 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "iptt no match slot", msg 1980 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "read pointer and depth", msg 1994 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "LM add/fetch list", msg 1998 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "SAS_HGC_ABT fetch LM list", msg 2002 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "read dqe poison", msg 2006 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "read iost poison", msg 2010 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "read itct poison", msg 2014 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c .msg = "read itct ncq poison", msg 2043 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c for (; sub->msk || sub->msg; sub++) { msg 2048 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c sub->msg, irq_value); msg 2053 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c error->msg, irq_value); msg 5970 drivers/scsi/hpsa.c char msg[48]; msg 6001 drivers/scsi/hpsa.c snprintf(msg, sizeof(msg), msg 6004 drivers/scsi/hpsa.c hpsa_show_dev_msg(KERN_WARNING, h, dev, msg); msg 6011 drivers/scsi/hpsa.c snprintf(msg, sizeof(msg), msg 6014 drivers/scsi/hpsa.c hpsa_show_dev_msg(KERN_WARNING, h, dev, msg); msg 6030 drivers/scsi/hpsa.c sprintf(msg, "resetting %s", msg 6032 drivers/scsi/hpsa.c hpsa_show_dev_msg(KERN_WARNING, h, dev, msg); msg 6052 drivers/scsi/hpsa.c sprintf(msg, "reset %s %s", msg 6055 drivers/scsi/hpsa.c hpsa_show_dev_msg(KERN_WARNING, h, dev, msg); msg 39 drivers/scsi/hptiop.c static int iop_send_sync_msg(struct hptiop_hba *hba, u32 msg, u32 millisec); msg 44 drivers/scsi/hptiop.c static void hptiop_message_callback(struct hptiop_hba *hba, u32 msg); msg 126 drivers/scsi/hptiop.c u32 msg = readl(&iop->outbound_msgaddr0); msg 128 drivers/scsi/hptiop.c dprintk("received outbound msg %x\n", msg); msg 130 drivers/scsi/hptiop.c hptiop_message_callback(hba, msg); msg 212 drivers/scsi/hptiop.c u32 msg; msg 213 drivers/scsi/hptiop.c msg = readl(&hba->u.mv.mu->outbound_msg); msg 214 drivers/scsi/hptiop.c dprintk("received outbound msg %x\n", msg); msg 215 drivers/scsi/hptiop.c hptiop_message_callback(hba, msg); msg 265 drivers/scsi/hptiop.c u32 msg = readl(&(hba->u.mvfrey.mu->cpu_to_f0_msg_a)); msg 266 drivers/scsi/hptiop.c dprintk("received outbound msg %x\n", msg); msg 267 drivers/scsi/hptiop.c hptiop_message_callback(hba, msg); msg 360 drivers/scsi/hptiop.c static void hptiop_post_msg_itl(struct hptiop_hba *hba, u32 msg) msg 362 drivers/scsi/hptiop.c writel(msg, &hba->u.itl.iop->inbound_msgaddr0); msg 366 drivers/scsi/hptiop.c static void hptiop_post_msg_mv(struct hptiop_hba *hba, u32 msg) msg 368 drivers/scsi/hptiop.c writel(msg, &hba->u.mv.mu->inbound_msg); msg 373 drivers/scsi/hptiop.c static void hptiop_post_msg_mvfrey(struct hptiop_hba *hba, u32 msg) msg 375 drivers/scsi/hptiop.c writel(msg, &(hba->u.mvfrey.mu->f0_to_cpu_msg_a)); msg 379 drivers/scsi/hptiop.c static int iop_send_sync_msg(struct hptiop_hba *hba, u32 msg, u32 millisec) msg 385 drivers/scsi/hptiop.c hba->ops->post_msg(hba, msg); msg 677 drivers/scsi/hptiop.c static void hptiop_message_callback(struct hptiop_hba *hba, u32 msg) msg 679 drivers/scsi/hptiop.c dprintk("iop message 0x%x\n", msg); msg 681 drivers/scsi/hptiop.c if (msg == IOPMU_INBOUND_MSG0_NOP || msg 682 drivers/scsi/hptiop.c msg == IOPMU_INBOUND_MSG0_RESET_COMM) msg 688 drivers/scsi/hptiop.c if (msg == IOPMU_INBOUND_MSG0_RESET) { msg 692 drivers/scsi/hptiop.c else if (msg <= IOPMU_INBOUND_MSG0_MAX) msg 358 drivers/scsi/hptiop.h void (*post_msg)(struct hptiop_hba *hba, u32 msg); msg 1781 drivers/scsi/initio.c u8 msg; msg 1799 drivers/scsi/initio.c msg = inb(host->addr + TUL_SFifo); msg 1809 drivers/scsi/initio.c if (msg == 0) { /* Command complete */ msg 1818 drivers/scsi/initio.c if (msg == MSG_LINK_COMP || msg == MSG_LINK_FLAG) { msg 1902 drivers/scsi/initio.c u8 tag, msg = 0; msg 1931 drivers/scsi/initio.c msg = inb(host->addr + TUL_SFifo); /* Read Tag Message */ msg 1933 drivers/scsi/initio.c if (msg < MSG_STAG || msg > MSG_OTAG) /* Is simple Tag */ msg 2135 drivers/scsi/initio.c host->msg[0] = len; msg 2144 drivers/scsi/initio.c host->msg[idx++] = inb(host->addr + TUL_SFifo); msg 2146 drivers/scsi/initio.c if (host->msg[1] == 1) { /* if it's synchronous data transfer request */ msg 2148 drivers/scsi/initio.c if (host->msg[0] != 3) /* if length is not right */ msg 2151 drivers/scsi/initio.c host->msg[3] = 0; msg 2173 drivers/scsi/initio.c outb(host->msg[2], host->addr + TUL_SFifo); msg 2174 drivers/scsi/initio.c outb(host->msg[3], host->addr + TUL_SFifo); msg 2178 drivers/scsi/initio.c if (host->msg[0] != 2 || host->msg[1] != 3) msg 2182 drivers/scsi/initio.c host->msg[2] = 0; msg 2184 drivers/scsi/initio.c if (host->msg[2] > 2) /* > 32 bits */ msg 2186 drivers/scsi/initio.c if (host->msg[2] == 2) { /* == 32 */ msg 2187 drivers/scsi/initio.c host->msg[2] = 1; msg 2205 drivers/scsi/initio.c outb(host->msg[2], host->addr + TUL_SFifo); msg 2215 drivers/scsi/initio.c if (host->msg[3] > MAX_OFFSET) { msg 2216 drivers/scsi/initio.c host->msg[3] = MAX_OFFSET; msg 2217 drivers/scsi/initio.c if (host->msg[2] < default_period) { msg 2218 drivers/scsi/initio.c host->msg[2] = default_period; msg 2221 drivers/scsi/initio.c if (host->msg[2] >= 59) /* Change to async */ msg 2222 drivers/scsi/initio.c host->msg[3] = 0; msg 2226 drivers/scsi/initio.c if (host->msg[3] == 0) { msg 2229 drivers/scsi/initio.c if (host->msg[2] < default_period) { msg 2230 drivers/scsi/initio.c host->msg[2] = default_period; msg 2233 drivers/scsi/initio.c if (host->msg[2] >= 59) { msg 2234 drivers/scsi/initio.c host->msg[3] = 0; msg 2246 drivers/scsi/initio.c if (host->msg[2]) /* if 16 bit */ msg 2261 drivers/scsi/initio.c if (host->msg[3]) { msg 2262 drivers/scsi/initio.c host->active_tc->js_period |= host->msg[3]; msg 2264 drivers/scsi/initio.c if (initio_rate_tbl[i] >= host->msg[2]) /* pick the big one */ msg 518 drivers/scsi/initio.h u8 msg[8]; /* 14 */ msg 5703 drivers/scsi/ipr.c static void ipr_isr_eh(struct ipr_ioa_cfg *ioa_cfg, char *msg, u16 number) msg 5706 drivers/scsi/ipr.c dev_err(&ioa_cfg->pdev->dev, "%s %d\n", msg, number); msg 286 drivers/scsi/iscsi_tcp.c struct msghdr msg = { .msg_flags = flags }; msg 292 drivers/scsi/iscsi_tcp.c r = kernel_sendmsg(sk, &msg, &iov, 1, copy); msg 81 drivers/scsi/libfc/fc_elsct.c const char *msg; msg 88 drivers/scsi/libfc/fc_elsct.c msg = "response no error"; msg 91 drivers/scsi/libfc/fc_elsct.c msg = "response timeout"; msg 94 drivers/scsi/libfc/fc_elsct.c msg = "response closed"; msg 97 drivers/scsi/libfc/fc_elsct.c msg = "response unknown error"; msg 106 drivers/scsi/libfc/fc_elsct.c msg = "accept"; msg 109 drivers/scsi/libfc/fc_elsct.c msg = "reject"; msg 112 drivers/scsi/libfc/fc_elsct.c msg = "response unknown ELS"; msg 121 drivers/scsi/libfc/fc_elsct.c msg = "CT accept"; msg 124 drivers/scsi/libfc/fc_elsct.c msg = "CT reject"; msg 127 drivers/scsi/libfc/fc_elsct.c msg = "response unknown CT"; msg 131 drivers/scsi/libfc/fc_elsct.c msg = "short CT response"; msg 135 drivers/scsi/libfc/fc_elsct.c msg = "response not ELS or CT"; msg 139 drivers/scsi/libfc/fc_elsct.c return msg; msg 2001 drivers/scsi/libsas/sas_expander.c char msg[80] = ""; msg 2005 drivers/scsi/libsas/sas_expander.c sprintf(msg, ", part of a wide port with phy%02d", sibling); msg 2008 drivers/scsi/libsas/sas_expander.c SAS_ADDR(dev->sas_addr), phy_id, msg); msg 12140 drivers/scsi/lpfc/lpfc_init.c lpfc_pci_suspend_one_s3(struct pci_dev *pdev, pm_message_t msg) msg 12946 drivers/scsi/lpfc/lpfc_init.c lpfc_pci_suspend_one_s4(struct pci_dev *pdev, pm_message_t msg) msg 13341 drivers/scsi/lpfc/lpfc_init.c lpfc_pci_suspend_one(struct pci_dev *pdev, pm_message_t msg) msg 13349 drivers/scsi/lpfc/lpfc_init.c rc = lpfc_pci_suspend_one_s3(pdev, msg); msg 13352 drivers/scsi/lpfc/lpfc_init.c rc = lpfc_pci_suspend_one_s4(pdev, msg); msg 1677 drivers/scsi/mvumi.c static void mvumi_notification(struct mvumi_hba *mhba, u8 msg, void *buffer) msg 1679 drivers/scsi/mvumi.c if (msg == APICDB1_EVENT_GETEVENT) { msg 1694 drivers/scsi/mvumi.c } else if (msg == APICDB1_HOST_GETEVENT) { msg 1699 drivers/scsi/mvumi.c static int mvumi_get_event(struct mvumi_hba *mhba, unsigned char msg) msg 1718 drivers/scsi/mvumi.c frame->cdb[1] = msg; msg 1955 drivers/scsi/myrb.c const char *msg; msg 2025 drivers/scsi/myrb.c msg = "Attempt to Rebuild Online or Unresponsive Drive"; msg 2028 drivers/scsi/myrb.c msg = "New Disk Failed During Rebuild"; msg 2031 drivers/scsi/myrb.c msg = "Invalid Device Address"; msg 2034 drivers/scsi/myrb.c msg = "Already in Progress"; msg 2037 drivers/scsi/myrb.c msg = NULL; msg 2040 drivers/scsi/myrb.c if (msg) msg 2042 drivers/scsi/myrb.c "Rebuild Failed - %s\n", msg); msg 2062 drivers/scsi/myrb.c const char *msg; msg 2132 drivers/scsi/myrb.c msg = "Dependent Physical Device is DEAD"; msg 2135 drivers/scsi/myrb.c msg = "New Disk Failed During Rebuild"; msg 2138 drivers/scsi/myrb.c msg = "Invalid or Nonredundant Logical Drive"; msg 2141 drivers/scsi/myrb.c msg = "Already in Progress"; msg 2144 drivers/scsi/myrb.c msg = NULL; msg 2147 drivers/scsi/myrb.c if (msg) msg 2149 drivers/scsi/myrb.c "Check Consistency Failed - %s\n", msg); msg 147 drivers/scsi/myrs.c unsigned char *msg, unsigned long blocks, msg 152 drivers/scsi/myrs.c ldev_num, msg, msg 1919 drivers/scsi/ncr53c8xx.c static void ncr_init (struct ncb *np, int reset, char * msg, u_long code); msg 3667 drivers/scsi/ncr53c8xx.c static void ncr_print_msg(struct ccb *cp, char *label, u_char *msg) msg 3671 drivers/scsi/ncr53c8xx.c spi_print_msg(msg); msg 5196 drivers/scsi/ncr53c8xx.c void ncr_init (struct ncb *np, int reset, char * msg, u_long code) msg 5217 drivers/scsi/ncr53c8xx.c if (msg) printk (KERN_INFO "%s: restart (%s).\n", ncr_name (np), msg); msg 6160 drivers/scsi/ncr53c8xx.c int msg = -1; msg 6192 drivers/scsi/ncr53c8xx.c msg = MSG_PARITY_ERROR; msg 6194 drivers/scsi/ncr53c8xx.c msg = INITIATOR_ERROR; msg 6211 drivers/scsi/ncr53c8xx.c np->msgout[0] = msg; msg 1927 drivers/scsi/nsp32.c unsigned char msg; msg 1940 drivers/scsi/nsp32.c msg = nsp32_read1(base, SCSI_DATA_IN); msg 1941 drivers/scsi/nsp32.c data->msginbuf[(unsigned char)data->msgin_len] = msg; msg 1945 drivers/scsi/nsp32.c data->msgin_len, msg, msgtype); msg 1990 drivers/scsi/nsp32.c "unexpected message of AutoSCSI MsgIn: 0x%x", msg); msg 2208 drivers/scsi/nsp32.c msg, data->msgin_len, msgtype); msg 1467 drivers/scsi/pmcraid.c pinstance->ccn.msg, msg 1482 drivers/scsi/pmcraid.c pinstance->ldn.msg, msg 1499 drivers/scsi/pmcraid.c &pinstance->scn.msg, msg 4743 drivers/scsi/pmcraid.c if (pinstance->ccn.msg != NULL) { msg 4747 drivers/scsi/pmcraid.c pinstance->ccn.msg, msg 4750 drivers/scsi/pmcraid.c pinstance->ccn.msg = NULL; msg 4755 drivers/scsi/pmcraid.c if (pinstance->ldn.msg != NULL) { msg 4759 drivers/scsi/pmcraid.c pinstance->ldn.msg, msg 4762 drivers/scsi/pmcraid.c pinstance->ldn.msg = NULL; msg 4777 drivers/scsi/pmcraid.c pinstance->ccn.msg = dma_alloc_coherent(&pinstance->pdev->dev, msg 4782 drivers/scsi/pmcraid.c pinstance->ldn.msg = dma_alloc_coherent(&pinstance->pdev->dev, msg 4787 drivers/scsi/pmcraid.c if (pinstance->ldn.msg == NULL || pinstance->ccn.msg == NULL) { msg 4791 drivers/scsi/pmcraid.c (void *)pinstance->ccn.msg + PMCRAID_AEN_HDR_SIZE; msg 4793 drivers/scsi/pmcraid.c (void *)pinstance->ldn.msg + PMCRAID_AEN_HDR_SIZE; msg 4799 drivers/scsi/pmcraid.c return (pinstance->ldn.msg == NULL) ? -ENOMEM : 0; msg 631 drivers/scsi/pmcraid.h struct pmcraid_aen_msg msg; msg 644 drivers/scsi/pmcraid.h struct pmcraid_aen_msg *msg; msg 127 drivers/scsi/qedf/qedf_attr.c char msg[40]; msg 144 drivers/scsi/qedf/qedf_attr.c memset(msg, 0, sizeof(msg)); msg 135 drivers/scsi/qedf/qedf_dbg.c qedf_uevent_emit(struct Scsi_Host *shost, u32 code, char *msg) msg 143 drivers/scsi/qedf/qedf_dbg.c if (msg) msg 144 drivers/scsi/qedf/qedf_dbg.c strscpy(event_string, msg, sizeof(event_string)); msg 110 drivers/scsi/qedf/qedf_dbg.h extern void qedf_uevent_emit(struct Scsi_Host *shost, u32 code, char *msg); msg 1541 drivers/scsi/qedi/qedi_iscsi.c char *msg = NULL; msg 1545 drivers/scsi/qedi/qedi_iscsi.c msg = qedi_iscsi_error[i].err_string; msg 1549 drivers/scsi/qedi/qedi_iscsi.c return msg; msg 1563 drivers/scsi/qedi/qedi_iscsi.c char *msg; msg 1585 drivers/scsi/qedi/qedi_iscsi.c msg = qedi_get_iscsi_error(data->error_code); msg 1586 drivers/scsi/qedi/qedi_iscsi.c if (!msg) { msg 1588 drivers/scsi/qedi/qedi_iscsi.c msg = unknown_msg; msg 1593 drivers/scsi/qedi/qedi_iscsi.c "qedi: %s - %s\n", message, msg); msg 385 drivers/scsi/scsi_logging.c void scsi_print_result(const struct scsi_cmnd *cmd, const char *msg, msg 404 drivers/scsi/scsi_logging.c if (msg) { msg 406 drivers/scsi/scsi_logging.c "%s: ", msg); msg 1172 drivers/scsi/scsi_transport_spi.c int spi_populate_width_msg(unsigned char *msg, int width) msg 1174 drivers/scsi/scsi_transport_spi.c msg[0] = EXTENDED_MESSAGE; msg 1175 drivers/scsi/scsi_transport_spi.c msg[1] = 2; msg 1176 drivers/scsi/scsi_transport_spi.c msg[2] = EXTENDED_WDTR; msg 1177 drivers/scsi/scsi_transport_spi.c msg[3] = width; msg 1182 drivers/scsi/scsi_transport_spi.c int spi_populate_sync_msg(unsigned char *msg, int period, int offset) msg 1184 drivers/scsi/scsi_transport_spi.c msg[0] = EXTENDED_MESSAGE; msg 1185 drivers/scsi/scsi_transport_spi.c msg[1] = 3; msg 1186 drivers/scsi/scsi_transport_spi.c msg[2] = EXTENDED_SDTR; msg 1187 drivers/scsi/scsi_transport_spi.c msg[3] = period; msg 1188 drivers/scsi/scsi_transport_spi.c msg[4] = offset; msg 1193 drivers/scsi/scsi_transport_spi.c int spi_populate_ppr_msg(unsigned char *msg, int period, int offset, msg 1196 drivers/scsi/scsi_transport_spi.c msg[0] = EXTENDED_MESSAGE; msg 1197 drivers/scsi/scsi_transport_spi.c msg[1] = 6; msg 1198 drivers/scsi/scsi_transport_spi.c msg[2] = EXTENDED_PPR; msg 1199 drivers/scsi/scsi_transport_spi.c msg[3] = period; msg 1200 drivers/scsi/scsi_transport_spi.c msg[4] = 0; msg 1201 drivers/scsi/scsi_transport_spi.c msg[5] = offset; msg 1202 drivers/scsi/scsi_transport_spi.c msg[6] = width; msg 1203 drivers/scsi/scsi_transport_spi.c msg[7] = options; msg 1218 drivers/scsi/scsi_transport_spi.c int spi_populate_tag_msg(unsigned char *msg, struct scsi_cmnd *cmd) msg 1221 drivers/scsi/scsi_transport_spi.c *msg++ = SIMPLE_QUEUE_TAG; msg 1222 drivers/scsi/scsi_transport_spi.c *msg++ = cmd->request->tag; msg 1253 drivers/scsi/scsi_transport_spi.c static void print_nego(const unsigned char *msg, int per, int off, int width) msg 1257 drivers/scsi/scsi_transport_spi.c period_to_str(buf, msg[per]); msg 1262 drivers/scsi/scsi_transport_spi.c printk("offset = %d ", msg[off]); msg 1264 drivers/scsi/scsi_transport_spi.c printk("width = %d ", 8 << msg[width]); msg 1267 drivers/scsi/scsi_transport_spi.c static void print_ptr(const unsigned char *msg, int msb, const char *desc) msg 1269 drivers/scsi/scsi_transport_spi.c int ptr = (msg[msb] << 24) | (msg[msb+1] << 16) | (msg[msb+2] << 8) | msg 1270 drivers/scsi/scsi_transport_spi.c msg[msb+3]; msg 1274 drivers/scsi/scsi_transport_spi.c int spi_print_msg(const unsigned char *msg) msg 1277 drivers/scsi/scsi_transport_spi.c if (msg[0] == EXTENDED_MESSAGE) { msg 1278 drivers/scsi/scsi_transport_spi.c len = 2 + msg[1]; msg 1281 drivers/scsi/scsi_transport_spi.c if (msg[2] < ARRAY_SIZE(extended_msgs)) msg 1282 drivers/scsi/scsi_transport_spi.c printk ("%s ", extended_msgs[msg[2]]); msg 1285 drivers/scsi/scsi_transport_spi.c (int) msg[2]); msg 1286 drivers/scsi/scsi_transport_spi.c switch (msg[2]) { msg 1288 drivers/scsi/scsi_transport_spi.c print_ptr(msg, 3, "pointer"); msg 1291 drivers/scsi/scsi_transport_spi.c print_nego(msg, 3, 4, 0); msg 1294 drivers/scsi/scsi_transport_spi.c print_nego(msg, 0, 0, 3); msg 1297 drivers/scsi/scsi_transport_spi.c print_nego(msg, 3, 5, 6); msg 1300 drivers/scsi/scsi_transport_spi.c print_ptr(msg, 3, "out"); msg 1301 drivers/scsi/scsi_transport_spi.c print_ptr(msg, 7, "in"); msg 1305 drivers/scsi/scsi_transport_spi.c printk("%02x ", msg[i]); msg 1308 drivers/scsi/scsi_transport_spi.c } else if (msg[0] & 0x80) { msg 1310 drivers/scsi/scsi_transport_spi.c (msg[0] & 0x40) ? "" : "not ", msg 1311 drivers/scsi/scsi_transport_spi.c (msg[0] & 0x20) ? "target routine" : "lun", msg 1312 drivers/scsi/scsi_transport_spi.c msg[0] & 0x7); msg 1314 drivers/scsi/scsi_transport_spi.c } else if (msg[0] < 0x1f) { msg 1315 drivers/scsi/scsi_transport_spi.c if (msg[0] < ARRAY_SIZE(one_byte_msgs) && one_byte_msgs[msg[0]]) msg 1316 drivers/scsi/scsi_transport_spi.c printk("%s ", one_byte_msgs[msg[0]]); msg 1318 drivers/scsi/scsi_transport_spi.c printk("reserved (%02x) ", msg[0]); msg 1319 drivers/scsi/scsi_transport_spi.c } else if (msg[0] == 0x55) { msg 1322 drivers/scsi/scsi_transport_spi.c } else if (msg[0] <= 0x2f) { msg 1323 drivers/scsi/scsi_transport_spi.c if ((msg[0] - 0x20) < ARRAY_SIZE(two_byte_msgs)) msg 1324 drivers/scsi/scsi_transport_spi.c printk("%s %02x ", two_byte_msgs[msg[0] - 0x20], msg 1325 drivers/scsi/scsi_transport_spi.c msg[1]); msg 1328 drivers/scsi/scsi_transport_spi.c msg[0], msg[1]); msg 1338 drivers/scsi/scsi_transport_spi.c int spi_print_msg(const unsigned char *msg) msg 1342 drivers/scsi/scsi_transport_spi.c if (msg[0] == EXTENDED_MESSAGE) { msg 1343 drivers/scsi/scsi_transport_spi.c len = 2 + msg[1]; msg 1347 drivers/scsi/scsi_transport_spi.c printk("%02x ", msg[i]); msg 1349 drivers/scsi/scsi_transport_spi.c } else if (msg[0] & 0x80) { msg 1350 drivers/scsi/scsi_transport_spi.c printk("%02x ", msg[0]); msg 1352 drivers/scsi/scsi_transport_spi.c } else if ((msg[0] < 0x1f) || (msg[0] == 0x55)) { msg 1353 drivers/scsi/scsi_transport_spi.c printk("%02x ", msg[0]); msg 1355 drivers/scsi/scsi_transport_spi.c } else if (msg[0] <= 0x2f) { msg 1356 drivers/scsi/scsi_transport_spi.c printk("%02x %02x", msg[0], msg[1]); msg 1359 drivers/scsi/scsi_transport_spi.c printk("%02x ", msg[0]); msg 3725 drivers/scsi/sd.c static void sd_print_result(const struct scsi_disk *sdkp, const char *msg, msg 3733 drivers/scsi/sd.c "%s: Result: hostbyte=%s driverbyte=%s\n", msg, msg 3739 drivers/scsi/sd.c msg, host_byte(result), driver_byte(result)); msg 60 drivers/scsi/sym53c8xx_2/sym_hipd.c static void sym_print_msg(struct sym_ccb *cp, char *label, u_char *msg) msg 64 drivers/scsi/sym53c8xx_2/sym_hipd.c spi_print_msg(msg); msg 68 drivers/scsi/sym53c8xx_2/sym_hipd.c static void sym_print_nego_msg(struct sym_hcb *np, int target, char *label, u_char *msg) msg 73 drivers/scsi/sym53c8xx_2/sym_hipd.c spi_print_msg(msg); msg 352 drivers/scsi/wd33c93.c uchar msg[2]) msg 361 drivers/scsi/wd33c93.c msg[0] = period; msg 362 drivers/scsi/wd33c93.c msg[1] = offset; msg 799 drivers/scsi/wd33c93.c uchar asr, sr, phs, id, lun, *ucp, msg; msg 988 drivers/scsi/wd33c93.c msg = read_1_byte(regs); msg 992 drivers/scsi/wd33c93.c hostdata->incoming_msg[hostdata->incoming_ptr] = msg; msg 994 drivers/scsi/wd33c93.c msg = EXTENDED_MESSAGE; msg 998 drivers/scsi/wd33c93.c cmd->SCp.Message = msg; msg 999 drivers/scsi/wd33c93.c switch (msg) { msg 1149 drivers/scsi/wd33c93.c printk("Rejecting Unknown Message(%02x) ", msg); msg 27 drivers/slimbus/messaging.c struct slim_val_inf *msg; msg 37 drivers/slimbus/messaging.c msg = txn->msg; msg 38 drivers/slimbus/messaging.c if (msg == NULL || msg->rbuf == NULL) { msg 45 drivers/slimbus/messaging.c memcpy(msg->rbuf, reply, len); msg 142 drivers/slimbus/messaging.c if (!txn->msg->comp) msg 150 drivers/slimbus/messaging.c if (!ret && need_tid && !txn->msg->comp) { msg 179 drivers/slimbus/messaging.c struct slim_val_inf *msg, u8 mc) msg 181 drivers/slimbus/messaging.c if (!msg || msg->num_bytes > 16 || msg 182 drivers/slimbus/messaging.c (msg->start_offset + msg->num_bytes) > 0xC00) msg 187 drivers/slimbus/messaging.c if (msg->rbuf != NULL) msg 193 drivers/slimbus/messaging.c if (msg->wbuf != NULL) msg 199 drivers/slimbus/messaging.c if (msg->rbuf != NULL && msg->wbuf != NULL) msg 204 drivers/slimbus/messaging.c if (msg) msg 206 drivers/slimbus/messaging.c msg->start_offset, mc); msg 232 drivers/slimbus/messaging.c int slim_xfer_msg(struct slim_device *sbdev, struct slim_val_inf *msg, msg 235 drivers/slimbus/messaging.c DEFINE_SLIM_LDEST_TXN(txn_stack, mc, 6, sbdev->laddr, msg); msg 244 drivers/slimbus/messaging.c ret = slim_val_inf_sanity(ctrl, msg, mc); msg 248 drivers/slimbus/messaging.c sl = slim_slicesize(msg->num_bytes); msg 251 drivers/slimbus/messaging.c msg->start_offset, msg->num_bytes, mc, sl); msg 253 drivers/slimbus/messaging.c txn->ec = ((sl | (1 << 3)) | ((msg->start_offset & 0xFFF) << 4)); msg 260 drivers/slimbus/messaging.c txn->rl += msg->num_bytes; msg 272 drivers/slimbus/messaging.c static void slim_fill_msg(struct slim_val_inf *msg, u32 addr, msg 275 drivers/slimbus/messaging.c msg->start_offset = addr; msg 276 drivers/slimbus/messaging.c msg->num_bytes = count; msg 277 drivers/slimbus/messaging.c msg->rbuf = rbuf; msg 278 drivers/slimbus/messaging.c msg->wbuf = wbuf; msg 279 drivers/slimbus/messaging.c msg->comp = NULL; msg 296 drivers/slimbus/messaging.c struct slim_val_inf msg; msg 298 drivers/slimbus/messaging.c slim_fill_msg(&msg, addr, count, val, NULL); msg 300 drivers/slimbus/messaging.c return slim_xfer_msg(sdev, &msg, SLIM_MSG_MC_REQUEST_VALUE); msg 339 drivers/slimbus/messaging.c struct slim_val_inf msg; msg 341 drivers/slimbus/messaging.c slim_fill_msg(&msg, addr, count, NULL, val); msg 343 drivers/slimbus/messaging.c return slim_xfer_msg(sdev, &msg, SLIM_MSG_MC_CHANGE_VALUE); msg 373 drivers/slimbus/qcom-ctrl.c if (txn->msg && txn->msg->wbuf) msg 374 drivers/slimbus/qcom-ctrl.c memcpy(puc, txn->msg->wbuf, txn->msg->num_bytes); msg 400 drivers/slimbus/qcom-ctrl.c struct slim_val_inf msg = {0}; msg 402 drivers/slimbus/qcom-ctrl.c 10, laddr, &msg); msg 411 drivers/slimbus/qcom-ctrl.c msg.wbuf = (void *)&p; msg 412 drivers/slimbus/qcom-ctrl.c msg.num_bytes = 7; msg 788 drivers/slimbus/qcom-ngd-ctrl.c if (txn->msg->num_bytes > SLIM_MSGQ_BUF_LEN || msg 823 drivers/slimbus/qcom-ngd-ctrl.c wbuf[i++] = txn->msg->wbuf[0]; msg 825 drivers/slimbus/qcom-ngd-ctrl.c wbuf[i++] = txn->msg->wbuf[1]; msg 836 drivers/slimbus/qcom-ngd-ctrl.c txn->msg->num_bytes = i; msg 837 drivers/slimbus/qcom-ngd-ctrl.c txn->msg->wbuf = wbuf; msg 838 drivers/slimbus/qcom-ngd-ctrl.c txn->msg->rbuf = rbuf; msg 839 drivers/slimbus/qcom-ngd-ctrl.c txn->rl = txn->msg->num_bytes + 4; msg 864 drivers/slimbus/qcom-ngd-ctrl.c if (txn->msg && txn->msg->wbuf) msg 865 drivers/slimbus/qcom-ngd-ctrl.c memcpy(puc, txn->msg->wbuf, txn->msg->num_bytes); msg 917 drivers/slimbus/qcom-ngd-ctrl.c struct slim_val_inf msg = {0}; msg 927 drivers/slimbus/qcom-ngd-ctrl.c txn.msg = &msg; msg 928 drivers/slimbus/qcom-ngd-ctrl.c txn.msg->num_bytes = 0; msg 929 drivers/slimbus/qcom-ngd-ctrl.c txn.msg->wbuf = wbuf; msg 930 drivers/slimbus/qcom-ngd-ctrl.c txn.msg->rbuf = rbuf; msg 935 drivers/slimbus/qcom-ngd-ctrl.c if (txn.msg->num_bytes == 0) { msg 939 drivers/slimbus/qcom-ngd-ctrl.c wbuf[txn.msg->num_bytes++] = sdev->laddr; msg 940 drivers/slimbus/qcom-ngd-ctrl.c wbuf[txn.msg->num_bytes] = rt->bps >> 2 | msg 946 drivers/slimbus/qcom-ngd-ctrl.c wbuf[txn.msg->num_bytes] |= BIT(5); msg 948 drivers/slimbus/qcom-ngd-ctrl.c txn.msg->num_bytes++; msg 949 drivers/slimbus/qcom-ngd-ctrl.c wbuf[txn.msg->num_bytes++] = exp << 4 | rt->prot; msg 952 drivers/slimbus/qcom-ngd-ctrl.c wbuf[txn.msg->num_bytes++] = msg 956 drivers/slimbus/qcom-ngd-ctrl.c wbuf[txn.msg->num_bytes++] = port->ch.prrate; msg 963 drivers/slimbus/qcom-ngd-ctrl.c wbuf[txn.msg->num_bytes++] = txn.tid; msg 965 drivers/slimbus/qcom-ngd-ctrl.c wbuf[txn.msg->num_bytes++] = port->ch.id; msg 969 drivers/slimbus/qcom-ngd-ctrl.c txn.rl = txn.msg->num_bytes + 4; msg 979 drivers/slimbus/qcom-ngd-ctrl.c txn.msg->num_bytes = 2; msg 981 drivers/slimbus/qcom-ngd-ctrl.c txn.rl = txn.msg->num_bytes + 4; msg 1003 drivers/slimbus/qcom-ngd-ctrl.c struct slim_val_inf msg = {0}; msg 1017 drivers/slimbus/qcom-ngd-ctrl.c txn.msg = &msg; msg 1018 drivers/slimbus/qcom-ngd-ctrl.c txn.msg->num_bytes = 7; msg 1019 drivers/slimbus/qcom-ngd-ctrl.c txn.msg->wbuf = wbuf; msg 1020 drivers/slimbus/qcom-ngd-ctrl.c txn.msg->rbuf = rbuf; msg 1153 drivers/slimbus/qcom-ngd-ctrl.c struct slim_val_inf msg = {0}; msg 1168 drivers/slimbus/qcom-ngd-ctrl.c txn.msg = &msg; msg 1169 drivers/slimbus/qcom-ngd-ctrl.c txn.msg->wbuf = wbuf; msg 1170 drivers/slimbus/qcom-ngd-ctrl.c txn.msg->num_bytes = 4; msg 30 drivers/slimbus/sched.c struct slim_val_inf msg = {0, 0, NULL, NULL}; msg 33 drivers/slimbus/sched.c 3, SLIM_LA_MANAGER, &msg); msg 98 drivers/slimbus/sched.c msg.num_bytes = 1; msg 99 drivers/slimbus/sched.c msg.wbuf = &restart; msg 106 drivers/slimbus/sched.c msg.num_bytes = 1; msg 107 drivers/slimbus/sched.c msg.wbuf = NULL; msg 135 drivers/slimbus/slimbus.h struct slim_val_inf *msg; msg 140 drivers/slimbus/slimbus.h #define DEFINE_SLIM_LDEST_TXN(name, mc, rl, la, msg) \ msg 142 drivers/slimbus/slimbus.h 0, la, msg, } msg 144 drivers/slimbus/slimbus.h #define DEFINE_SLIM_BCAST_TXN(name, mc, rl, la, msg) \ msg 146 drivers/slimbus/slimbus.h 0, la, msg, } msg 148 drivers/slimbus/slimbus.h #define DEFINE_SLIM_EDEST_TXN(name, mc, rl, la, msg) \ msg 150 drivers/slimbus/slimbus.h 0, la, msg, } msg 128 drivers/slimbus/stream.c struct slim_val_inf msg = {0, 2, NULL, wbuf, NULL}; msg 130 drivers/slimbus/stream.c DEFINE_SLIM_LDEST_TXN(txn, mc, 6, stream->dev->laddr, &msg); msg 148 drivers/slimbus/stream.c struct slim_val_inf msg = {0, 1, NULL, wbuf, NULL}; msg 150 drivers/slimbus/stream.c DEFINE_SLIM_LDEST_TXN(txn, mc, 5, stream->dev->laddr, &msg); msg 164 drivers/slimbus/stream.c struct slim_val_inf msg = {0, 1, NULL, wbuf, NULL}; msg 166 drivers/slimbus/stream.c DEFINE_SLIM_LDEST_TXN(txn, mc, 5, stream->dev->laddr, &msg); msg 268 drivers/slimbus/stream.c struct slim_val_inf msg = {0, 4, NULL, wbuf, NULL}; msg 270 drivers/slimbus/stream.c DEFINE_SLIM_LDEST_TXN(txn, mc, 8, stream->dev->laddr, &msg); msg 303 drivers/slimbus/stream.c struct slim_val_inf msg = {0, 4, NULL, wbuf, NULL}; msg 305 drivers/slimbus/stream.c DEFINE_SLIM_LDEST_TXN(txn, mc, 8, stream->dev->laddr, &msg); msg 327 drivers/slimbus/stream.c struct slim_val_inf msg = {0, 1, NULL, wbuf, NULL}; msg 329 drivers/slimbus/stream.c DEFINE_SLIM_LDEST_TXN(txn, mc, 5, stream->dev->laddr, &msg); msg 331 drivers/slimbus/stream.c txn.msg->num_bytes = 1; msg 332 drivers/slimbus/stream.c txn.msg->wbuf = wbuf; msg 1193 drivers/soc/fsl/qbman/qman.c const union qm_mr_entry *msg; msg 1196 drivers/soc/fsl/qbman/qman.c msg = qm_mr_current(p); msg 1197 drivers/soc/fsl/qbman/qman.c if (!msg) { msg 1214 drivers/soc/fsl/qbman/qman.c msg = qm_mr_current(p); msg 1215 drivers/soc/fsl/qbman/qman.c if (!msg) msg 1218 drivers/soc/fsl/qbman/qman.c if ((msg->verb & QM_MR_VERB_TYPE_MASK) != QM_MR_VERB_FQRNI) { msg 1220 drivers/soc/fsl/qbman/qman.c pr_err("Found verb 0x%x in MR\n", msg->verb); msg 1431 drivers/soc/fsl/qbman/qman.c const union qm_mr_entry *msg, u8 verb) msg 1443 drivers/soc/fsl/qbman/qman.c if (msg->fq.fqs & QM_MR_FQS_NOTEMPTY) msg 1445 drivers/soc/fsl/qbman/qman.c if (msg->fq.fqs & QM_MR_FQS_ORLPRESENT) msg 1492 drivers/soc/fsl/qbman/qman.c const union qm_mr_entry *msg; msg 1500 drivers/soc/fsl/qbman/qman.c msg = qm_mr_current(&p->p); msg 1501 drivers/soc/fsl/qbman/qman.c if (!msg) msg 1504 drivers/soc/fsl/qbman/qman.c verb = msg->verb & QM_MR_VERB_TYPE_MASK; msg 1514 drivers/soc/fsl/qbman/qman.c fq = fqid_to_fq(qm_fqid_get(&msg->fq)); msg 1517 drivers/soc/fsl/qbman/qman.c fq_state_change(p, fq, msg, verb); msg 1519 drivers/soc/fsl/qbman/qman.c fq->cb.fqs(p, fq, msg); msg 1523 drivers/soc/fsl/qbman/qman.c fq = tag_to_fq(be32_to_cpu(msg->fq.context_b)); msg 1524 drivers/soc/fsl/qbman/qman.c fq_state_change(p, fq, msg, verb); msg 1526 drivers/soc/fsl/qbman/qman.c fq->cb.fqs(p, fq, msg); msg 1537 drivers/soc/fsl/qbman/qman.c fq = tag_to_fq(be32_to_cpu(msg->ern.tag)); msg 1538 drivers/soc/fsl/qbman/qman.c fq->cb.ern(p, fq, msg); msg 2067 drivers/soc/fsl/qbman/qman.c union qm_mr_entry msg; msg 2069 drivers/soc/fsl/qbman/qman.c msg.verb = QM_MR_VERB_FQRNI; msg 2070 drivers/soc/fsl/qbman/qman.c msg.fq.fqs = mcr->alterfq.fqs; msg 2071 drivers/soc/fsl/qbman/qman.c qm_fqid_set(&msg.fq, fq->fqid); msg 2072 drivers/soc/fsl/qbman/qman.c msg.fq.context_b = cpu_to_be32(fq_to_tag(fq)); msg 2073 drivers/soc/fsl/qbman/qman.c fq->cb.fqs(p, fq, &msg); msg 2564 drivers/soc/fsl/qbman/qman.c const union qm_mr_entry *msg; msg 2568 drivers/soc/fsl/qbman/qman.c msg = qm_mr_current(p); msg 2569 drivers/soc/fsl/qbman/qman.c while (msg) { msg 2570 drivers/soc/fsl/qbman/qman.c if ((msg->verb & QM_MR_VERB_TYPE_MASK) == v) msg 2575 drivers/soc/fsl/qbman/qman.c msg = qm_mr_current(p); msg 226 drivers/soc/fsl/qbman/qman_test_api.c const union qm_mr_entry *msg) msg 233 drivers/soc/fsl/qbman/qman_test_api.c const union qm_mr_entry *msg) msg 235 drivers/soc/fsl/qbman/qman_test_api.c u8 verb = (msg->verb & QM_MR_VERB_TYPE_MASK); msg 39 drivers/soc/imx/soc-imx-scu.c struct imx_sc_msg_misc_get_soc_uid msg; msg 40 drivers/soc/imx/soc-imx-scu.c struct imx_sc_rpc_msg *hdr = &msg.hdr; msg 49 drivers/soc/imx/soc-imx-scu.c ret = imx_scu_call_rpc(soc_ipc_handle, &msg, true); msg 55 drivers/soc/imx/soc-imx-scu.c soc_uid = msg.uid_high; msg 57 drivers/soc/imx/soc-imx-scu.c soc_uid |= msg.uid_low; msg 66 drivers/soc/imx/soc-imx-scu.c struct imx_sc_msg_misc_get_soc_id msg; msg 67 drivers/soc/imx/soc-imx-scu.c struct imx_sc_rpc_msg *hdr = &msg.hdr; msg 75 drivers/soc/imx/soc-imx-scu.c msg.data.req.control = IMX_SC_C_ID; msg 76 drivers/soc/imx/soc-imx-scu.c msg.data.req.resource = IMX_SC_R_SYSTEM; msg 78 drivers/soc/imx/soc-imx-scu.c ret = imx_scu_call_rpc(soc_ipc_handle, &msg, true); msg 84 drivers/soc/imx/soc-imx-scu.c return msg.data.resp.id; msg 405 drivers/soc/ixp4xx/ixp4xx-npe.c int npe_send_message(struct npe *npe, const void *msg, const char *what) msg 407 drivers/soc/ixp4xx/ixp4xx-npe.c const u32 *send = msg; msg 444 drivers/soc/ixp4xx/ixp4xx-npe.c int npe_recv_message(struct npe *npe, void *msg, const char *what) msg 446 drivers/soc/ixp4xx/ixp4xx-npe.c u32 *recv = msg; msg 482 drivers/soc/ixp4xx/ixp4xx-npe.c int npe_send_recv_message(struct npe *npe, void *msg, const char *what) msg 485 drivers/soc/ixp4xx/ixp4xx-npe.c u32 *send = msg, recv[2]; msg 487 drivers/soc/ixp4xx/ixp4xx-npe.c if ((result = npe_send_message(npe, msg, what)) != 0) msg 60 drivers/soc/qcom/glink_ssr.c struct cleanup_done_msg *msg = data; msg 63 drivers/soc/qcom/glink_ssr.c if (len < sizeof(*msg)) { msg 68 drivers/soc/qcom/glink_ssr.c if (le32_to_cpu(msg->version) != 0) msg 71 drivers/soc/qcom/glink_ssr.c if (le32_to_cpu(msg->response) != GLINK_SSR_CLEANUP_DONE) msg 74 drivers/soc/qcom/glink_ssr.c if (le32_to_cpu(msg->seq_num) != ssr->seq_num) { msg 88 drivers/soc/qcom/glink_ssr.c struct do_cleanup_msg msg; msg 95 drivers/soc/qcom/glink_ssr.c memset(&msg, 0, sizeof(msg)); msg 96 drivers/soc/qcom/glink_ssr.c msg.command = cpu_to_le32(GLINK_SSR_DO_CLEANUP); msg 97 drivers/soc/qcom/glink_ssr.c msg.seq_num = cpu_to_le32(ssr->seq_num); msg 98 drivers/soc/qcom/glink_ssr.c msg.name_len = cpu_to_le32(strlen(ssr_name)); msg 99 drivers/soc/qcom/glink_ssr.c strlcpy(msg.name, ssr_name, sizeof(msg.name)); msg 101 drivers/soc/qcom/glink_ssr.c ret = rpmsg_send(ssr->ept, &msg, sizeof(msg)); msg 721 drivers/soc/qcom/qmi_encdec.c void *msg; msg 734 drivers/soc/qcom/qmi_encdec.c msg = kzalloc(sizeof(*hdr) + *len, GFP_KERNEL); msg 735 drivers/soc/qcom/qmi_encdec.c if (!msg) msg 740 drivers/soc/qcom/qmi_encdec.c msglen = qmi_encode(ei, msg + sizeof(*hdr), c_struct, *len, 1); msg 742 drivers/soc/qcom/qmi_encdec.c kfree(msg); msg 747 drivers/soc/qcom/qmi_encdec.c hdr = msg; msg 755 drivers/soc/qcom/qmi_encdec.c return msg; msg 168 drivers/soc/qcom/qmi_interface.c struct msghdr msg = { }; msg 181 drivers/soc/qcom/qmi_interface.c msg.msg_name = &sq; msg 182 drivers/soc/qcom/qmi_interface.c msg.msg_namelen = sizeof(sq); msg 186 drivers/soc/qcom/qmi_interface.c ret = kernel_sendmsg(qmi->sock, &msg, &iv, 1, sizeof(pkt)); msg 231 drivers/soc/qcom/qmi_interface.c struct msghdr msg = { }; msg 246 drivers/soc/qcom/qmi_interface.c msg.msg_name = &sq; msg 247 drivers/soc/qcom/qmi_interface.c msg.msg_namelen = sizeof(sq); msg 251 drivers/soc/qcom/qmi_interface.c ret = kernel_sendmsg(qmi->sock, &msg, &iv, 1, sizeof(pkt)); msg 527 drivers/soc/qcom/qmi_interface.c struct msghdr msg = { .msg_name = &sq, .msg_namelen = sizeof(sq) }; msg 537 drivers/soc/qcom/qmi_interface.c msglen = kernel_recvmsg(qmi->sock, &msg, &iv, 1, msg 739 drivers/soc/qcom/qmi_interface.c void *msg; msg 742 drivers/soc/qcom/qmi_interface.c msg = qmi_encode_message(type, msg 746 drivers/soc/qcom/qmi_interface.c if (IS_ERR(msg)) msg 747 drivers/soc/qcom/qmi_interface.c return PTR_ERR(msg); msg 749 drivers/soc/qcom/qmi_interface.c iv.iov_base = msg; msg 767 drivers/soc/qcom/qmi_interface.c kfree(msg); msg 60 drivers/soc/qcom/rpmh-internal.h struct tcs_request msg; msg 107 drivers/soc/qcom/rpmh-internal.h int rpmh_rsc_send_data(struct rsc_drv *drv, const struct tcs_request *msg); msg 109 drivers/soc/qcom/rpmh-internal.h const struct tcs_request *msg); msg 112 drivers/soc/qcom/rpmh-internal.h void rpmh_tx_done(const struct tcs_request *msg, int r); msg 149 drivers/soc/qcom/rpmh-rsc.c const struct tcs_request *msg) msg 154 drivers/soc/qcom/rpmh-rsc.c switch (msg->state) { msg 177 drivers/soc/qcom/rpmh-rsc.c if (msg->state == RPMH_ACTIVE_ONLY_STATE && !tcs->num_tcs) { msg 256 drivers/soc/qcom/rpmh-rsc.c const struct tcs_request *msg) msg 265 drivers/soc/qcom/rpmh-rsc.c cmd_msgid |= msg->wait_for_compl ? CMD_MSGID_RESP_REQ : 0; msg 270 drivers/soc/qcom/rpmh-rsc.c for (i = 0, j = cmd_id; i < msg->num_cmds; i++, j++) { msg 271 drivers/soc/qcom/rpmh-rsc.c cmd = &msg->cmds[i]; msg 311 drivers/soc/qcom/rpmh-rsc.c const struct tcs_request *msg) msg 326 drivers/soc/qcom/rpmh-rsc.c for (k = 0; k < msg->num_cmds; k++) { msg 327 drivers/soc/qcom/rpmh-rsc.c if (addr == msg->cmds[k].addr) msg 348 drivers/soc/qcom/rpmh-rsc.c static int tcs_write(struct rsc_drv *drv, const struct tcs_request *msg) msg 355 drivers/soc/qcom/rpmh-rsc.c tcs = get_tcs_for_msg(drv, msg); msg 365 drivers/soc/qcom/rpmh-rsc.c ret = check_for_req_inflight(drv, tcs, msg); msg 378 drivers/soc/qcom/rpmh-rsc.c tcs->req[tcs_id - tcs->offset] = msg; msg 382 drivers/soc/qcom/rpmh-rsc.c __tcs_buffer_write(drv, tcs_id, 0, msg); msg 400 drivers/soc/qcom/rpmh-rsc.c int rpmh_rsc_send_data(struct rsc_drv *drv, const struct tcs_request *msg) msg 404 drivers/soc/qcom/rpmh-rsc.c if (!msg || !msg->cmds || !msg->num_cmds || msg 405 drivers/soc/qcom/rpmh-rsc.c msg->num_cmds > MAX_RPMH_PAYLOAD) { msg 411 drivers/soc/qcom/rpmh-rsc.c ret = tcs_write(drv, msg); msg 414 drivers/soc/qcom/rpmh-rsc.c msg->cmds[0].addr); msg 447 drivers/soc/qcom/rpmh-rsc.c static int find_slots(struct tcs_group *tcs, const struct tcs_request *msg, msg 454 drivers/soc/qcom/rpmh-rsc.c slot = find_match(tcs, msg->cmds, msg->num_cmds); msg 461 drivers/soc/qcom/rpmh-rsc.c i, msg->num_cmds, 0); msg 465 drivers/soc/qcom/rpmh-rsc.c } while (slot + msg->num_cmds - 1 >= i); msg 468 drivers/soc/qcom/rpmh-rsc.c bitmap_set(tcs->slots, slot, msg->num_cmds); msg 470 drivers/soc/qcom/rpmh-rsc.c for (i = 0; i < msg->num_cmds; i++) msg 471 drivers/soc/qcom/rpmh-rsc.c tcs->cmd_cache[slot + i] = msg->cmds[i].addr; msg 480 drivers/soc/qcom/rpmh-rsc.c static int tcs_ctrl_write(struct rsc_drv *drv, const struct tcs_request *msg) msg 487 drivers/soc/qcom/rpmh-rsc.c tcs = get_tcs_for_msg(drv, msg); msg 493 drivers/soc/qcom/rpmh-rsc.c ret = find_slots(tcs, msg, &tcs_id, &cmd_id); msg 495 drivers/soc/qcom/rpmh-rsc.c __tcs_buffer_write(drv, tcs_id, cmd_id, msg); msg 509 drivers/soc/qcom/rpmh-rsc.c int rpmh_rsc_write_ctrl_data(struct rsc_drv *drv, const struct tcs_request *msg) msg 511 drivers/soc/qcom/rpmh-rsc.c if (!msg || !msg->cmds || !msg->num_cmds || msg 512 drivers/soc/qcom/rpmh-rsc.c msg->num_cmds > MAX_RPMH_PAYLOAD) { msg 518 drivers/soc/qcom/rpmh-rsc.c if (msg->state == RPMH_ACTIVE_ONLY_STATE) msg 521 drivers/soc/qcom/rpmh-rsc.c return tcs_ctrl_write(drv, msg); msg 28 drivers/soc/qcom/rpmh.c .msg = { \ msg 78 drivers/soc/qcom/rpmh.c void rpmh_tx_done(const struct tcs_request *msg, int r) msg 80 drivers/soc/qcom/rpmh.c struct rpmh_request *rpm_msg = container_of(msg, struct rpmh_request, msg 81 drivers/soc/qcom/rpmh.c msg); msg 89 drivers/soc/qcom/rpmh.c rpm_msg->msg.cmds[0].addr, r); msg 181 drivers/soc/qcom/rpmh.c rpm_msg->msg.state = state; msg 184 drivers/soc/qcom/rpmh.c for (i = 0; i < rpm_msg->msg.num_cmds; i++) { msg 185 drivers/soc/qcom/rpmh.c req = cache_rpm_request(ctrlr, state, &rpm_msg->msg.cmds[i]); msg 190 drivers/soc/qcom/rpmh.c rpm_msg->msg.state = state; msg 194 drivers/soc/qcom/rpmh.c ret = rpmh_rsc_send_data(ctrlr_to_drv(ctrlr), &rpm_msg->msg); msg 198 drivers/soc/qcom/rpmh.c rpmh_tx_done(&rpm_msg->msg, ret); msg 212 drivers/soc/qcom/rpmh.c req->msg.state = state; msg 213 drivers/soc/qcom/rpmh.c req->msg.cmds = req->cmd; msg 214 drivers/soc/qcom/rpmh.c req->msg.num_cmds = n; msg 272 drivers/soc/qcom/rpmh.c rpm_msg.msg.num_cmds = n; msg 307 drivers/soc/qcom/rpmh.c &rpm_msg->msg); msg 393 drivers/soc/qcom/rpmh.c ret = rpmh_rsc_send_data(ctrlr_to_drv(ctrlr), &rpm_msgs[i].msg); msg 396 drivers/soc/qcom/rpmh.c ret, rpm_msgs[i].msg.cmds[0].addr); msg 437 drivers/soc/qcom/rpmh.c rpm_msg.msg.wait_for_compl = (state == RPMH_WAKE_ONLY_STATE); msg 440 drivers/soc/qcom/rpmh.c rpm_msg.msg.num_cmds = 1; msg 442 drivers/soc/qcom/rpmh.c return rpmh_rsc_write_ctrl_data(ctrlr_to_drv(ctrlr), &rpm_msg.msg); msg 153 drivers/soc/qcom/smd-rpm.c const struct qcom_rpm_message *msg; msg 168 drivers/soc/qcom/smd-rpm.c msg = (struct qcom_rpm_message *)buf; msg 169 drivers/soc/qcom/smd-rpm.c msg_length = le32_to_cpu(msg->length); msg 170 drivers/soc/qcom/smd-rpm.c switch (le32_to_cpu(msg->msg_type)) { msg 175 drivers/soc/qcom/smd-rpm.c memcpy_fromio(msgbuf, msg->message, len); msg 172 drivers/soc/qcom/wcnss_ctrl.c struct wcnss_msg_hdr msg; msg 175 drivers/soc/qcom/wcnss_ctrl.c msg.type = WCNSS_VERSION_REQ; msg 176 drivers/soc/qcom/wcnss_ctrl.c msg.len = sizeof(msg); msg 177 drivers/soc/qcom/wcnss_ctrl.c ret = rpmsg_send(wcnss->channel, &msg, sizeof(msg)); msg 36 drivers/soc/tegra/powergate-bpmp.c struct tegra_bpmp_message msg; msg 44 drivers/soc/tegra/powergate-bpmp.c memset(&msg, 0, sizeof(msg)); msg 45 drivers/soc/tegra/powergate-bpmp.c msg.mrq = MRQ_PG; msg 46 drivers/soc/tegra/powergate-bpmp.c msg.tx.data = &request; msg 47 drivers/soc/tegra/powergate-bpmp.c msg.tx.size = sizeof(request); msg 49 drivers/soc/tegra/powergate-bpmp.c err = tegra_bpmp_transfer(bpmp, &msg); msg 52 drivers/soc/tegra/powergate-bpmp.c else if (msg.rx.ret < 0) msg 63 drivers/soc/tegra/powergate-bpmp.c struct tegra_bpmp_message msg; msg 72 drivers/soc/tegra/powergate-bpmp.c memset(&msg, 0, sizeof(msg)); msg 73 drivers/soc/tegra/powergate-bpmp.c msg.mrq = MRQ_PG; msg 74 drivers/soc/tegra/powergate-bpmp.c msg.tx.data = &request; msg 75 drivers/soc/tegra/powergate-bpmp.c msg.tx.size = sizeof(request); msg 76 drivers/soc/tegra/powergate-bpmp.c msg.rx.data = &response; msg 77 drivers/soc/tegra/powergate-bpmp.c msg.rx.size = sizeof(response); msg 79 drivers/soc/tegra/powergate-bpmp.c err = tegra_bpmp_transfer(bpmp, &msg); msg 82 drivers/soc/tegra/powergate-bpmp.c else if (msg.rx.ret < 0) msg 92 drivers/soc/tegra/powergate-bpmp.c struct tegra_bpmp_message msg; msg 100 drivers/soc/tegra/powergate-bpmp.c memset(&msg, 0, sizeof(msg)); msg 101 drivers/soc/tegra/powergate-bpmp.c msg.mrq = MRQ_PG; msg 102 drivers/soc/tegra/powergate-bpmp.c msg.tx.data = &request; msg 103 drivers/soc/tegra/powergate-bpmp.c msg.tx.size = sizeof(request); msg 104 drivers/soc/tegra/powergate-bpmp.c msg.rx.data = &response; msg 105 drivers/soc/tegra/powergate-bpmp.c msg.rx.size = sizeof(response); msg 107 drivers/soc/tegra/powergate-bpmp.c err = tegra_bpmp_transfer(bpmp, &msg); msg 110 drivers/soc/tegra/powergate-bpmp.c else if (msg.rx.ret < 0) msg 121 drivers/soc/tegra/powergate-bpmp.c struct tegra_bpmp_message msg; msg 130 drivers/soc/tegra/powergate-bpmp.c memset(&msg, 0, sizeof(msg)); msg 131 drivers/soc/tegra/powergate-bpmp.c msg.mrq = MRQ_PG; msg 132 drivers/soc/tegra/powergate-bpmp.c msg.tx.data = &request; msg 133 drivers/soc/tegra/powergate-bpmp.c msg.tx.size = sizeof(request); msg 134 drivers/soc/tegra/powergate-bpmp.c msg.rx.data = &response; msg 135 drivers/soc/tegra/powergate-bpmp.c msg.rx.size = sizeof(response); msg 137 drivers/soc/tegra/powergate-bpmp.c err = tegra_bpmp_transfer(bpmp, &msg); msg 138 drivers/soc/tegra/powergate-bpmp.c if (err < 0 || msg.rx.ret < 0) msg 19 drivers/soc/ti/ti_sci_inta_msi.c struct msi_msg *msg) msg 25 drivers/soc/ti/ti_sci_inta_msi.c struct msi_msg *msg) msg 165 drivers/soundwire/bus.c static inline int do_transfer(struct sdw_bus *bus, struct sdw_msg *msg) msg 172 drivers/soundwire/bus.c resp = bus->ops->xfer_msg(bus, msg); msg 184 drivers/soundwire/bus.c struct sdw_msg *msg, msg 191 drivers/soundwire/bus.c defer->msg = msg; msg 192 drivers/soundwire/bus.c defer->length = msg->len; msg 196 drivers/soundwire/bus.c resp = bus->ops->xfer_msg_defer(bus, msg, defer); msg 228 drivers/soundwire/bus.c int sdw_transfer(struct sdw_bus *bus, struct sdw_msg *msg) msg 234 drivers/soundwire/bus.c ret = do_transfer(bus, msg); msg 237 drivers/soundwire/bus.c msg->dev_num, ret); msg 239 drivers/soundwire/bus.c if (msg->page) msg 240 drivers/soundwire/bus.c sdw_reset_page(bus, msg->dev_num); msg 255 drivers/soundwire/bus.c int sdw_transfer_defer(struct sdw_bus *bus, struct sdw_msg *msg, msg 263 drivers/soundwire/bus.c ret = do_transfer_defer(bus, msg, defer); msg 266 drivers/soundwire/bus.c msg->dev_num, ret); msg 268 drivers/soundwire/bus.c if (msg->page) msg 269 drivers/soundwire/bus.c sdw_reset_page(bus, msg->dev_num); msg 274 drivers/soundwire/bus.c int sdw_fill_msg(struct sdw_msg *msg, struct sdw_slave *slave, msg 277 drivers/soundwire/bus.c memset(msg, 0, sizeof(*msg)); msg 278 drivers/soundwire/bus.c msg->addr = addr; /* addr is 16 bit and truncated here */ msg 279 drivers/soundwire/bus.c msg->len = count; msg 280 drivers/soundwire/bus.c msg->dev_num = dev_num; msg 281 drivers/soundwire/bus.c msg->flags = flags; msg 282 drivers/soundwire/bus.c msg->buf = buf; msg 312 drivers/soundwire/bus.c msg->addr_page1 = (addr >> SDW_REG_SHIFT(SDW_SCP_ADDRPAGE1_MASK)); msg 313 drivers/soundwire/bus.c msg->addr_page2 = (addr >> SDW_REG_SHIFT(SDW_SCP_ADDRPAGE2_MASK)); msg 314 drivers/soundwire/bus.c msg->addr |= BIT(15); msg 315 drivers/soundwire/bus.c msg->page = true; msg 329 drivers/soundwire/bus.c struct sdw_msg msg; msg 332 drivers/soundwire/bus.c ret = sdw_fill_msg(&msg, slave, addr, count, msg 341 drivers/soundwire/bus.c ret = sdw_transfer(slave->bus, &msg); msg 357 drivers/soundwire/bus.c struct sdw_msg msg; msg 360 drivers/soundwire/bus.c ret = sdw_fill_msg(&msg, slave, addr, count, msg 369 drivers/soundwire/bus.c ret = sdw_transfer(slave->bus, &msg); msg 525 drivers/soundwire/bus.c struct sdw_msg msg; msg 531 drivers/soundwire/bus.c ret = sdw_fill_msg(&msg, NULL, SDW_SCP_DEVID_0, msg 537 drivers/soundwire/bus.c ret = sdw_transfer(bus, &msg); msg 144 drivers/soundwire/bus.h int sdw_transfer(struct sdw_bus *bus, struct sdw_msg *msg); msg 145 drivers/soundwire/bus.h int sdw_transfer_defer(struct sdw_bus *bus, struct sdw_msg *msg, msg 150 drivers/soundwire/bus.h int sdw_fill_msg(struct sdw_msg *msg, struct sdw_slave *slave, msg 345 drivers/soundwire/cadence_master.c struct sdw_msg *msg, int count, int offset) msg 363 drivers/soundwire/cadence_master.c dev_err_ratelimited(cdns->dev, "Msg NACKed for Slave %d\n", msg->dev_num); msg 366 drivers/soundwire/cadence_master.c dev_dbg_ratelimited(cdns->dev, "Msg ignored for Slave %d\n", msg->dev_num); msg 372 drivers/soundwire/cadence_master.c msg->buf[i + offset] = cdns->response_buf[i] >> msg 379 drivers/soundwire/cadence_master.c _cdns_xfer_msg(struct sdw_cdns *cdns, struct sdw_msg *msg, int cmd, msg 393 drivers/soundwire/cadence_master.c addr = msg->addr; msg 396 drivers/soundwire/cadence_master.c data = msg->dev_num << SDW_REG_SHIFT(CDNS_MCP_CMD_DEV_ADDR); msg 400 drivers/soundwire/cadence_master.c if (msg->flags == SDW_MSG_FLAG_WRITE) msg 401 drivers/soundwire/cadence_master.c data |= msg->buf[i + offset]; msg 403 drivers/soundwire/cadence_master.c data |= msg->ssp_sync << SDW_REG_SHIFT(CDNS_MCP_CMD_SSP_TAG); msg 416 drivers/soundwire/cadence_master.c msg->len = 0; msg 420 drivers/soundwire/cadence_master.c return cdns_fill_msg_resp(cdns, msg, count, offset); msg 424 drivers/soundwire/cadence_master.c cdns_program_scp_addr(struct sdw_cdns *cdns, struct sdw_msg *msg) msg 437 drivers/soundwire/cadence_master.c data[0] = msg->dev_num << SDW_REG_SHIFT(CDNS_MCP_CMD_DEV_ADDR); msg 444 drivers/soundwire/cadence_master.c data[0] |= msg->addr_page1; msg 445 drivers/soundwire/cadence_master.c data[1] |= msg->addr_page2; msg 456 drivers/soundwire/cadence_master.c msg->len = 0; msg 475 drivers/soundwire/cadence_master.c "SCP_addrpage NACKed for Slave %d\n", msg->dev_num); msg 479 drivers/soundwire/cadence_master.c "SCP_addrpage ignored for Slave %d\n", msg->dev_num); msg 486 drivers/soundwire/cadence_master.c static int cdns_prep_msg(struct sdw_cdns *cdns, struct sdw_msg *msg, int *cmd) msg 490 drivers/soundwire/cadence_master.c if (msg->page) { msg 491 drivers/soundwire/cadence_master.c ret = cdns_program_scp_addr(cdns, msg); msg 493 drivers/soundwire/cadence_master.c msg->len = 0; msg 498 drivers/soundwire/cadence_master.c switch (msg->flags) { msg 508 drivers/soundwire/cadence_master.c dev_err(cdns->dev, "Invalid msg cmd: %d\n", msg->flags); msg 516 drivers/soundwire/cadence_master.c cdns_xfer_msg(struct sdw_bus *bus, struct sdw_msg *msg) msg 521 drivers/soundwire/cadence_master.c ret = cdns_prep_msg(cdns, msg, &cmd); msg 525 drivers/soundwire/cadence_master.c for (i = 0; i < msg->len / CDNS_MCP_CMD_LEN; i++) { msg 526 drivers/soundwire/cadence_master.c ret = _cdns_xfer_msg(cdns, msg, cmd, i * CDNS_MCP_CMD_LEN, msg 532 drivers/soundwire/cadence_master.c if (!(msg->len % CDNS_MCP_CMD_LEN)) msg 535 drivers/soundwire/cadence_master.c ret = _cdns_xfer_msg(cdns, msg, cmd, i * CDNS_MCP_CMD_LEN, msg 536 drivers/soundwire/cadence_master.c msg->len % CDNS_MCP_CMD_LEN, false); msg 545 drivers/soundwire/cadence_master.c struct sdw_msg *msg, struct sdw_defer *defer) msg 551 drivers/soundwire/cadence_master.c if (msg->len > 1) msg 554 drivers/soundwire/cadence_master.c ret = cdns_prep_msg(cdns, msg, &cmd); msg 559 drivers/soundwire/cadence_master.c cdns->defer->length = msg->len; msg 561 drivers/soundwire/cadence_master.c return _cdns_xfer_msg(cdns, msg, cmd, 0, msg->len, true); msg 569 drivers/soundwire/cadence_master.c struct sdw_msg msg; msg 572 drivers/soundwire/cadence_master.c memset(&msg, 0, sizeof(msg)); msg 573 drivers/soundwire/cadence_master.c msg.dev_num = dev_num; msg 575 drivers/soundwire/cadence_master.c return cdns_program_scp_addr(cdns, &msg); msg 683 drivers/soundwire/cadence_master.c cdns_fill_msg_resp(cdns, cdns->defer->msg, msg 188 drivers/soundwire/cadence_master.h cdns_xfer_msg(struct sdw_bus *bus, struct sdw_msg *msg); msg 192 drivers/soundwire/cadence_master.h struct sdw_msg *msg, struct sdw_defer *defer); msg 653 drivers/soundwire/stream.c bus->defer_msg.msg = wr_msg; msg 694 drivers/soundwire/stream.c bus->defer_msg.msg = NULL; msg 734 drivers/soundwire/stream.c if (bus->defer_msg.msg) { msg 735 drivers/soundwire/stream.c kfree(bus->defer_msg.msg->buf); msg 736 drivers/soundwire/stream.c kfree(bus->defer_msg.msg); msg 829 drivers/soundwire/stream.c kfree(bus->defer_msg.msg->buf); msg 830 drivers/soundwire/stream.c kfree(bus->defer_msg.msg); msg 886 drivers/spi/spi-atmel.c struct spi_message *msg, msg 902 drivers/spi/spi-atmel.c if (msg->spi->bits_per_word > 8) msg 907 drivers/spi/spi-atmel.c dev_dbg(&msg->spi->dev, msg 921 drivers/spi/spi-atmel.c if (msg->spi->bits_per_word > 8) msg 926 drivers/spi/spi-atmel.c dev_dbg(&msg->spi->dev, msg 1245 drivers/spi/spi-atmel.c struct spi_message *msg, msg 1249 drivers/spi/spi-atmel.c struct spi_device *spi = msg->spi; msg 1276 drivers/spi/spi-atmel.c if ((!msg->is_dma_mapped) msg 1282 drivers/spi/spi-atmel.c atmel_spi_set_xfer_speed(as, msg->spi, xfer); msg 1291 drivers/spi/spi-atmel.c atmel_spi_pdc_next_xfer(master, msg, xfer); msg 1353 drivers/spi/spi-atmel.c if (!msg->is_dma_mapped msg 1361 drivers/spi/spi-atmel.c msg->actual_length += xfer->len; msg 1364 drivers/spi/spi-atmel.c if (!msg->is_dma_mapped msg 1373 drivers/spi/spi-atmel.c &msg->transfers)) { msg 1376 drivers/spi/spi-atmel.c cs_deactivate(as, msg->spi); msg 1378 drivers/spi/spi-atmel.c cs_activate(as, msg->spi); msg 1386 drivers/spi/spi-atmel.c struct spi_message *msg) msg 1390 drivers/spi/spi-atmel.c struct spi_device *spi = msg->spi; msg 1396 drivers/spi/spi-atmel.c msg, dev_name(&spi->dev)); msg 1403 drivers/spi/spi-atmel.c msg->status = 0; msg 1404 drivers/spi/spi-atmel.c msg->actual_length = 0; msg 1406 drivers/spi/spi-atmel.c list_for_each_entry(xfer, &msg->transfers, transfer_list) { msg 1407 drivers/spi/spi-atmel.c trace_spi_transfer_start(msg, xfer); msg 1409 drivers/spi/spi-atmel.c ret = atmel_spi_one_transfer(master, msg, xfer); msg 1413 drivers/spi/spi-atmel.c trace_spi_transfer_stop(msg, xfer); msg 1419 drivers/spi/spi-atmel.c list_for_each_entry(xfer, &msg->transfers, transfer_list) { msg 1429 drivers/spi/spi-atmel.c cs_deactivate(as, msg->spi); msg 1433 drivers/spi/spi-atmel.c msg->status = as->done_status; msg 89 drivers/spi/spi-axi-spi-engine.c struct spi_message *msg; msg 195 drivers/spi/spi-axi-spi-engine.c struct spi_message *msg, bool dry, struct spi_engine_program *p) msg 197 drivers/spi/spi-axi-spi-engine.c struct spi_device *spi = msg->spi; msg 208 drivers/spi/spi-axi-spi-engine.c list_for_each_entry(xfer, &msg->transfers, transfer_list) { msg 225 drivers/spi/spi-axi-spi-engine.c if (list_is_last(&xfer->transfer_list, &msg->transfers)) msg 238 drivers/spi/spi-axi-spi-engine.c struct spi_message *msg = spi_engine->msg; msg 242 drivers/spi/spi-axi-spi-engine.c xfer = list_first_entry(&msg->transfers, msg 244 drivers/spi/spi-axi-spi-engine.c } else if (list_is_last(&xfer->transfer_list, &msg->transfers)) { msg 385 drivers/spi/spi-axi-spi-engine.c if (spi_engine->msg && msg 387 drivers/spi/spi-axi-spi-engine.c struct spi_message *msg = spi_engine->msg; msg 390 drivers/spi/spi-axi-spi-engine.c msg->status = 0; msg 391 drivers/spi/spi-axi-spi-engine.c msg->actual_length = msg->frame_length; msg 392 drivers/spi/spi-axi-spi-engine.c spi_engine->msg = NULL; msg 410 drivers/spi/spi-axi-spi-engine.c struct spi_message *msg) msg 419 drivers/spi/spi-axi-spi-engine.c spi_engine_compile_message(spi_engine, msg, true, &p_dry); msg 425 drivers/spi/spi-axi-spi-engine.c spi_engine_compile_message(spi_engine, msg, false, p); msg 432 drivers/spi/spi-axi-spi-engine.c spi_engine->msg = msg; msg 1129 drivers/spi/spi-bcm2835.c struct spi_message *msg) msg 1131 drivers/spi/spi-bcm2835.c struct spi_device *spi = msg->spi; msg 1141 drivers/spi/spi-bcm2835.c ret = spi_split_transfers_maxsize(ctlr, msg, 65532, msg 1157 drivers/spi/spi-bcm2835.c struct spi_message *msg) msg 405 drivers/spi/spi-bcm2835aux.c struct spi_message *msg) msg 407 drivers/spi/spi-bcm2835aux.c struct spi_device *spi = msg->spi; msg 429 drivers/spi/spi-bcm2835aux.c struct spi_message *msg) msg 439 drivers/spi/spi-bcm2835aux.c struct spi_message *msg) msg 261 drivers/spi/spi-bcm63xx-hsspi.c struct spi_message *msg) msg 265 drivers/spi/spi-bcm63xx-hsspi.c struct spi_device *spi = msg->spi; msg 287 drivers/spi/spi-bcm63xx-hsspi.c list_for_each_entry(t, &msg->transfers, transfer_list) { msg 292 drivers/spi/spi-bcm63xx-hsspi.c msg->actual_length += t->len; msg 308 drivers/spi/spi-bcm63xx-hsspi.c msg->status = status; msg 391 drivers/spi/spi-cadence.c struct spi_message *msg) msg 393 drivers/spi/spi-cadence.c cdns_spi_config_clock_mode(msg->spi); msg 29 drivers/spi/spi-cavium.c struct spi_message *msg, msg 33 drivers/spi/spi-cavium.c struct spi_device *spi = msg->spi; msg 129 drivers/spi/spi-cavium.c struct spi_message *msg) msg 136 drivers/spi/spi-cavium.c list_for_each_entry(xfer, &msg->transfers, transfer_list) { msg 138 drivers/spi/spi-cavium.c &msg->transfers); msg 139 drivers/spi/spi-cavium.c int r = octeon_spi_do_transfer(p, msg, xfer, last_xfer); msg 147 drivers/spi/spi-cavium.c msg->status = status; msg 148 drivers/spi/spi-cavium.c msg->actual_length = total_len; msg 32 drivers/spi/spi-cavium.h struct spi_message *msg); msg 36 drivers/spi/spi-clps711x.c struct spi_message *msg) msg 39 drivers/spi/spi-clps711x.c struct spi_device *spi = msg->spi; msg 223 drivers/spi/spi-dw.c static void int_error_stop(struct dw_spi *dws, const char *msg) msg 227 drivers/spi/spi-dw.c dev_err(&dws->master->dev, "%s\n", msg); msg 397 drivers/spi/spi-dw.c struct spi_message *msg) msg 516 drivers/spi/spi-ep93xx.c struct spi_message *msg) msg 644 drivers/spi/spi-fsl-dspi.c struct spi_message *msg = dspi->cur_msg; msg 655 drivers/spi/spi-fsl-dspi.c msg->actual_length += spi_tcnt * dspi->bytes_per_word; msg 231 drivers/spi/spi-fsl-lpspi.c struct spi_message *msg) msg 235 drivers/spi/spi-fsl-lpspi.c struct spi_device *spi = msg->spi; msg 123 drivers/spi/spi-geni-qcom.c struct spi_message *msg) msg 393 drivers/spi/spi-img-spfi.c struct spi_message *msg) msg 413 drivers/spi/spi-img-spfi.c static int img_spfi_prepare(struct spi_master *master, struct spi_message *msg) msg 421 drivers/spi/spi-img-spfi.c val |= msg->spi->chip_select << SPFI_PORT_STATE_DEV_SEL_SHIFT; msg 422 drivers/spi/spi-img-spfi.c if (msg->spi->mode & SPI_CPHA) msg 423 drivers/spi/spi-img-spfi.c val |= SPFI_PORT_STATE_CK_PHASE(msg->spi->chip_select); msg 425 drivers/spi/spi-img-spfi.c val &= ~SPFI_PORT_STATE_CK_PHASE(msg->spi->chip_select); msg 426 drivers/spi/spi-img-spfi.c if (msg->spi->mode & SPI_CPOL) msg 427 drivers/spi/spi-img-spfi.c val |= SPFI_PORT_STATE_CK_POL(msg->spi->chip_select); msg 429 drivers/spi/spi-img-spfi.c val &= ~SPFI_PORT_STATE_CK_POL(msg->spi->chip_select); msg 436 drivers/spi/spi-img-spfi.c struct spi_message *msg) msg 498 drivers/spi/spi-imx.c struct spi_message *msg) msg 500 drivers/spi/spi-imx.c struct spi_device *spi = msg->spi; msg 691 drivers/spi/spi-imx.c struct spi_message *msg) msg 796 drivers/spi/spi-imx.c struct spi_message *msg) msg 872 drivers/spi/spi-imx.c struct spi_message *msg) msg 1537 drivers/spi/spi-imx.c spi_imx_prepare_message(struct spi_master *master, struct spi_message *msg) msg 1552 drivers/spi/spi-imx.c ret = spi_imx->devtype_data->prepare_message(spi_imx, msg); msg 1562 drivers/spi/spi-imx.c spi_imx_unprepare_message(struct spi_master *master, struct spi_message *msg) msg 399 drivers/spi/spi-loopback-test.c struct spi_message *msg, msg 406 drivers/spi/spi-loopback-test.c dev_info(&spi->dev, " spi_msg@%pK\n", msg); msg 407 drivers/spi/spi-loopback-test.c if (msg->status) msg 409 drivers/spi/spi-loopback-test.c msg->status); msg 411 drivers/spi/spi-loopback-test.c msg->frame_length); msg 413 drivers/spi/spi-loopback-test.c msg->actual_length); msg 415 drivers/spi/spi-loopback-test.c list_for_each_entry(xfer, &msg->transfers, transfer_list) { msg 464 drivers/spi/spi-loopback-test.c struct spi_message *msg, msg 475 drivers/spi/spi-loopback-test.c list_for_each_entry(xfer, &msg->transfers, transfer_list) { msg 559 drivers/spi/spi-loopback-test.c struct spi_message *msg, msg 569 drivers/spi/spi-loopback-test.c ret = spi_check_rx_ranges(spi, msg, rx); msg 579 drivers/spi/spi-loopback-test.c list_for_each_entry(xfer, &msg->transfers, transfer_list) { msg 751 drivers/spi/spi-loopback-test.c struct spi_message *msg = &test->msg; msg 756 drivers/spi/spi-loopback-test.c spi_message_init_no_memset(msg); msg 778 drivers/spi/spi-loopback-test.c spi_message_add_tail(x, msg); msg 892 drivers/spi/spi-loopback-test.c struct spi_message *msg = &test->msg; msg 902 drivers/spi/spi-loopback-test.c spi_test_dump_message(spi, msg, true); msg 906 drivers/spi/spi-loopback-test.c ret = spi_sync(spi, msg); msg 914 drivers/spi/spi-loopback-test.c ret = spi_sync(spi, msg); msg 924 drivers/spi/spi-loopback-test.c if (msg->frame_length != msg->actual_length) { msg 932 drivers/spi/spi-loopback-test.c ret = spi_test_check_loopback_result(spi, msg, tx, rx); msg 942 drivers/spi/spi-loopback-test.c spi_test_dump_message(spi, msg, msg 278 drivers/spi/spi-mem.c struct spi_message msg; msg 319 drivers/spi/spi-mem.c spi_message_init(&msg); msg 325 drivers/spi/spi-mem.c spi_message_add_tail(&xfers[xferpos], &msg); msg 339 drivers/spi/spi-mem.c spi_message_add_tail(&xfers[xferpos], &msg); msg 349 drivers/spi/spi-mem.c spi_message_add_tail(&xfers[xferpos], &msg); msg 364 drivers/spi/spi-mem.c spi_message_add_tail(&xfers[xferpos], &msg); msg 369 drivers/spi/spi-mem.c ret = spi_sync(mem->spi, &msg); msg 376 drivers/spi/spi-mem.c if (msg.actual_length != totalxferlen) msg 193 drivers/spi/spi-mt65xx.c struct spi_message *msg) msg 197 drivers/spi/spi-mt65xx.c struct spi_device *spi = msg->spi; msg 1264 drivers/spi/spi-omap2-mcspi.c struct spi_message *msg) msg 1276 drivers/spi/spi-omap2-mcspi.c if (msg->spi->controller_state == cs) msg 340 drivers/spi/spi-pic32-sqi.c struct spi_message *msg) msg 342 drivers/spi/spi-pic32-sqi.c struct spi_device *spi = msg->spi; msg 353 drivers/spi/spi-pic32-sqi.c msg->actual_length = 0; msg 386 drivers/spi/spi-pic32-sqi.c list_for_each_entry(xfer, &msg->transfers, transfer_list) { msg 387 drivers/spi/spi-pic32-sqi.c ret = pic32_sqi_one_transfer(sqi, msg, xfer); msg 417 drivers/spi/spi-pic32-sqi.c msg->status = ret; msg 420 drivers/spi/spi-pic32-sqi.c msg->status = 0; msg 433 drivers/spi/spi-pic32-sqi.c msg->actual_length += rdesc->xfer_len; msg 219 drivers/spi/spi-pic32.c static void pic32_err_stop(struct pic32_spi *pic32s, const char *msg) msg 227 drivers/spi/spi-pic32.c dev_err(&pic32s->master->dev, "%s\n", msg); msg 444 drivers/spi/spi-pic32.c struct spi_message *msg) msg 447 drivers/spi/spi-pic32.c struct spi_device *spi = msg->spi; msg 565 drivers/spi/spi-pic32.c struct spi_message *msg) msg 777 drivers/spi/spi-pl022.c struct spi_message *msg = pl022->cur_msg; msg 781 drivers/spi/spi-pl022.c if (trans->transfer_list.next != &msg->transfers) { msg 809 drivers/spi/spi-pl022.c struct spi_message *msg = pl022->cur_msg; msg 855 drivers/spi/spi-pl022.c msg->actual_length += pl022->cur_transfer->len; msg 857 drivers/spi/spi-pl022.c msg->state = next_transfer(pl022); msg 858 drivers/spi/spi-pl022.c if (msg->state != STATE_DONE && pl022->cur_transfer->cs_change) msg 1253 drivers/spi/spi-pl022.c struct spi_message *msg = pl022->cur_msg; msg 1256 drivers/spi/spi-pl022.c if (unlikely(!msg)) { msg 1294 drivers/spi/spi-pl022.c msg->state = STATE_ERROR; msg 1326 drivers/spi/spi-pl022.c msg->actual_length += pl022->cur_transfer->len; msg 1328 drivers/spi/spi-pl022.c msg->state = next_transfer(pl022); msg 1329 drivers/spi/spi-pl022.c if (msg->state != STATE_DONE && pl022->cur_transfer->cs_change) msg 1583 drivers/spi/spi-pl022.c struct spi_message *msg) msg 1588 drivers/spi/spi-pl022.c pl022->cur_msg = msg; msg 1589 drivers/spi/spi-pl022.c msg->state = STATE_START; msg 1591 drivers/spi/spi-pl022.c pl022->cur_transfer = list_entry(msg->transfers.next, msg 1595 drivers/spi/spi-pl022.c pl022->cur_chip = spi_get_ctldata(msg->spi); msg 1596 drivers/spi/spi-pl022.c pl022->cur_cs = pl022->chipselects[msg->spi->chip_select]; msg 23 drivers/spi/spi-pxa2xx-dma.c struct spi_message *msg = drv_data->controller->cur_msg; msg 56 drivers/spi/spi-pxa2xx-dma.c msg->status = -EIO; msg 603 drivers/spi/spi-pxa2xx.c static void int_error_stop(struct driver_data *drv_data, const char* msg) msg 614 drivers/spi/spi-pxa2xx.c dev_err(&drv_data->pdev->dev, "%s\n", msg); msg 1154 drivers/spi/spi-pxa2xx.c struct spi_message *msg) msg 213 drivers/spi/spi-qcom-qspi.c struct spi_message *msg) msg 248 drivers/spi/spi-rockchip.c struct spi_message *msg) msg 884 drivers/spi/spi-rspi.c const struct spi_message *msg) msg 890 drivers/spi/spi-rspi.c list_for_each_entry(xfer, &msg->transfers, transfer_list) { msg 904 drivers/spi/spi-rspi.c dev_err(&msg->spi->dev, msg 925 drivers/spi/spi-rspi.c struct spi_message *msg) msg 928 drivers/spi/spi-rspi.c struct spi_device *spi = msg->spi; msg 946 drivers/spi/spi-rspi.c if (msg->spi->mode & msg 949 drivers/spi/spi-rspi.c ret = qspi_setup_sequencer(rspi, msg); msg 960 drivers/spi/spi-rspi.c struct spi_message *msg) msg 620 drivers/spi/spi-s3c64xx.c struct spi_message *msg) msg 623 drivers/spi/spi-s3c64xx.c struct spi_device *spi = msg->spi; msg 65 drivers/spi/spi-sc18is602.c static int sc18is602_txrx(struct sc18is602 *hw, struct spi_message *msg, msg 73 drivers/spi/spi-sc18is602.c hw->buffer[0] = 1 << msg->spi->chip_select; msg 96 drivers/spi/spi-sh-hspi.c struct spi_message *msg, msg 99 drivers/spi/spi-sh-hspi.c struct spi_device *spi = msg->spi; msg 144 drivers/spi/spi-sh-hspi.c struct spi_message *msg) msg 158 drivers/spi/spi-sh-hspi.c list_for_each_entry(t, &msg->transfers, transfer_list) { msg 161 drivers/spi/spi-sh-hspi.c hspi_hw_setup(hspi, msg, t); msg 191 drivers/spi/spi-sh-hspi.c msg->actual_length += t->len; msg 203 drivers/spi/spi-sh-hspi.c msg->status = ret; msg 582 drivers/spi/spi-sh-msiof.c struct spi_message *msg) msg 585 drivers/spi/spi-sh-msiof.c const struct spi_device *spi = msg->spi; msg 131 drivers/spi/spi-sifive.c sifive_spi_prepare_message(struct spi_master *master, struct spi_message *msg) msg 134 drivers/spi/spi-sifive.c struct spi_device *device = msg->spi; msg 113 drivers/spi/spi-slave-mt27xx.c struct spi_message *msg) msg 116 drivers/spi/spi-slave-mt27xx.c struct spi_device *spi = msg->spi; msg 42 drivers/spi/spi-slave-system-control.c struct spi_message msg; msg 55 drivers/spi/spi-slave-system-control.c if (priv->msg.status) msg 101 drivers/spi/spi-slave-system-control.c spi_message_init_with_transfers(&priv->msg, &priv->xfer, 1); msg 103 drivers/spi/spi-slave-system-control.c priv->msg.complete = spi_slave_system_control_complete; msg 104 drivers/spi/spi-slave-system-control.c priv->msg.context = priv; msg 106 drivers/spi/spi-slave-system-control.c ret = spi_async(priv->spi, &priv->msg); msg 37 drivers/spi/spi-slave-time.c struct spi_message msg; msg 48 drivers/spi/spi-slave-time.c ret = priv->msg.status; msg 75 drivers/spi/spi-slave-time.c spi_message_init_with_transfers(&priv->msg, &priv->xfer, 1); msg 77 drivers/spi/spi-slave-time.c priv->msg.complete = spi_slave_time_complete; msg 78 drivers/spi/spi-slave-time.c priv->msg.context = priv; msg 80 drivers/spi/spi-slave-time.c ret = spi_async(priv->spi, &priv->msg); msg 1003 drivers/spi/spi-stm32.c struct spi_message *msg) msg 1006 drivers/spi/spi-stm32.c struct spi_device *spi_dev = msg->spi; msg 1687 drivers/spi/spi-stm32.c struct spi_message *msg) msg 1033 drivers/spi/spi-tegra114.c struct spi_message *msg) msg 1038 drivers/spi/spi-tegra114.c struct spi_device *spi = msg->spi; msg 1043 drivers/spi/spi-tegra114.c msg->status = 0; msg 1044 drivers/spi/spi-tegra114.c msg->actual_length = 0; msg 1046 drivers/spi/spi-tegra114.c single_xfer = list_is_singular(&msg->transfers); msg 1047 drivers/spi/spi-tegra114.c list_for_each_entry(xfer, &msg->transfers, transfer_list) { msg 1096 drivers/spi/spi-tegra114.c msg->actual_length += xfer->len; msg 1104 drivers/spi/spi-tegra114.c &msg->transfers)) { msg 1119 drivers/spi/spi-tegra114.c msg->status = ret; msg 307 drivers/spi/spi-tegra20-sflash.c struct spi_message *msg) msg 313 drivers/spi/spi-tegra20-sflash.c struct spi_device *spi = msg->spi; msg 316 drivers/spi/spi-tegra20-sflash.c msg->status = 0; msg 317 drivers/spi/spi-tegra20-sflash.c msg->actual_length = 0; msg 318 drivers/spi/spi-tegra20-sflash.c single_xfer = list_is_singular(&msg->transfers); msg 319 drivers/spi/spi-tegra20-sflash.c list_for_each_entry(xfer, &msg->transfers, transfer_list) { msg 343 drivers/spi/spi-tegra20-sflash.c msg->actual_length += xfer->len; msg 353 drivers/spi/spi-tegra20-sflash.c msg->status = ret; msg 778 drivers/spi/spi-tegra20-slink.c struct spi_message *msg) msg 781 drivers/spi/spi-tegra20-slink.c struct spi_device *spi = msg->spi; msg 835 drivers/spi/spi-tegra20-slink.c struct spi_message *msg) msg 74 drivers/spi/spi-test.h struct spi_message msg; msg 65 drivers/spi/spi-tle62x0.c struct spi_message msg; msg 72 drivers/spi/spi-tle62x0.c spi_message_init(&msg); msg 73 drivers/spi/spi-tle62x0.c spi_message_add_tail(&xfer, &msg); msg 75 drivers/spi/spi-tle62x0.c return spi_sync(st->us, &msg); msg 136 drivers/spi/spi-xcomm.c struct spi_message *msg) msg 140 drivers/spi/spi-xcomm.c struct spi_device *spi = msg->spi; msg 149 drivers/spi/spi-xcomm.c list_for_each_entry(t, &msg->transfers, transfer_list) { msg 160 drivers/spi/spi-xcomm.c is_last = list_is_last(&t->transfer_list, &msg->transfers); msg 187 drivers/spi/spi-xcomm.c msg->actual_length += status; msg 200 drivers/spi/spi-xcomm.c msg->status = status; msg 896 drivers/spi/spi.c static int __spi_map_msg(struct spi_controller *ctlr, struct spi_message *msg) msg 915 drivers/spi/spi.c list_for_each_entry(xfer, &msg->transfers, transfer_list) { msg 916 drivers/spi/spi.c if (!ctlr->can_dma(ctlr, msg->spi, xfer)) msg 944 drivers/spi/spi.c static int __spi_unmap_msg(struct spi_controller *ctlr, struct spi_message *msg) msg 962 drivers/spi/spi.c list_for_each_entry(xfer, &msg->transfers, transfer_list) { msg 963 drivers/spi/spi.c if (!ctlr->can_dma(ctlr, msg->spi, xfer)) msg 974 drivers/spi/spi.c struct spi_message *msg) msg 980 drivers/spi/spi.c struct spi_message *msg) msg 987 drivers/spi/spi.c struct spi_message *msg) msg 991 drivers/spi/spi.c list_for_each_entry(xfer, &msg->transfers, transfer_list) { msg 1002 drivers/spi/spi.c return __spi_unmap_msg(ctlr, msg); msg 1005 drivers/spi/spi.c static int spi_map_msg(struct spi_controller *ctlr, struct spi_message *msg) msg 1015 drivers/spi/spi.c list_for_each_entry(xfer, &msg->transfers, transfer_list) { msg 1042 drivers/spi/spi.c list_for_each_entry(xfer, &msg->transfers, msg 1054 drivers/spi/spi.c return __spi_map_msg(ctlr, msg); msg 1058 drivers/spi/spi.c struct spi_message *msg, msg 1062 drivers/spi/spi.c struct spi_statistics *stats = &msg->spi->statistics; msg 1067 drivers/spi/spi.c dev_dbg(&msg->spi->dev, "SPI transfer interrupted\n"); msg 1084 drivers/spi/spi.c dev_err(&msg->spi->dev, msg 1109 drivers/spi/spi.c static void _spi_transfer_cs_change_delay(struct spi_message *msg, msg 1138 drivers/spi/spi.c dev_err_once(&msg->spi->dev, msg 1155 drivers/spi/spi.c struct spi_message *msg) msg 1161 drivers/spi/spi.c struct spi_statistics *stats = &msg->spi->statistics; msg 1163 drivers/spi/spi.c spi_set_cs(msg->spi, true); msg 1168 drivers/spi/spi.c list_for_each_entry(xfer, &msg->transfers, transfer_list) { msg 1169 drivers/spi/spi.c trace_spi_transfer_start(msg, xfer); msg 1177 drivers/spi/spi.c ret = ctlr->transfer_one(ctlr, msg->spi, xfer); msg 1183 drivers/spi/spi.c dev_err(&msg->spi->dev, msg 1189 drivers/spi/spi.c ret = spi_transfer_wait(ctlr, msg, xfer); msg 1191 drivers/spi/spi.c msg->status = ret; msg 1195 drivers/spi/spi.c dev_err(&msg->spi->dev, msg 1200 drivers/spi/spi.c trace_spi_transfer_stop(msg, xfer); msg 1202 drivers/spi/spi.c if (msg->status != -EINPROGRESS) msg 1210 drivers/spi/spi.c &msg->transfers)) { msg 1213 drivers/spi/spi.c spi_set_cs(msg->spi, false); msg 1214 drivers/spi/spi.c _spi_transfer_cs_change_delay(msg, xfer); msg 1215 drivers/spi/spi.c spi_set_cs(msg->spi, true); msg 1219 drivers/spi/spi.c msg->actual_length += xfer->len; msg 1224 drivers/spi/spi.c spi_set_cs(msg->spi, false); msg 1226 drivers/spi/spi.c if (msg->status == -EINPROGRESS) msg 1227 drivers/spi/spi.c msg->status = ret; msg 1229 drivers/spi/spi.c if (msg->status && ctlr->handle_err) msg 1230 drivers/spi/spi.c ctlr->handle_err(ctlr, msg); msg 1232 drivers/spi/spi.c spi_res_release(ctlr, msg); msg 1268 drivers/spi/spi.c struct spi_message *msg; msg 1329 drivers/spi/spi.c msg = list_first_entry(&ctlr->queue, struct spi_message, queue); msg 1330 drivers/spi/spi.c ctlr->cur_msg = msg; msg 1332 drivers/spi/spi.c list_del_init(&msg->queue); msg 1365 drivers/spi/spi.c msg->status = ret; msg 1373 drivers/spi/spi.c trace_spi_message_start(msg); msg 1376 drivers/spi/spi.c ret = ctlr->prepare_message(ctlr, msg); msg 1380 drivers/spi/spi.c msg->status = ret; msg 1387 drivers/spi/spi.c ret = spi_map_msg(ctlr, msg); msg 1389 drivers/spi/spi.c msg->status = ret; msg 1394 drivers/spi/spi.c ret = ctlr->transfer_one_message(ctlr, msg); msg 1616 drivers/spi/spi.c struct spi_message *msg, msg 1628 drivers/spi/spi.c msg->actual_length = 0; msg 1629 drivers/spi/spi.c msg->status = -EINPROGRESS; msg 1631 drivers/spi/spi.c list_add_tail(&msg->queue, &ctlr->queue); msg 1646 drivers/spi/spi.c static int spi_queued_transfer(struct spi_device *spi, struct spi_message *msg) msg 1648 drivers/spi/spi.c return __spi_queued_transfer(spi, msg, true); msg 2764 drivers/spi/spi.c struct spi_message *msg, msg 2772 drivers/spi/spi.c rxfer->release(ctlr, msg, res); msg 2798 drivers/spi/spi.c struct spi_message *msg, msg 2811 drivers/spi/spi.c rxfer = spi_res_alloc(msg->spi, __spi_replace_transfers_release, msg 2840 drivers/spi/spi.c if (rxfer->replaced_after->next == &msg->transfers) { msg 2841 drivers/spi/spi.c dev_err(&msg->spi->dev, msg 2885 drivers/spi/spi.c spi_res_add(msg, rxfer); msg 2892 drivers/spi/spi.c struct spi_message *msg, msg 2906 drivers/spi/spi.c srt = spi_replace_transfers(msg, xfer, 1, count, NULL, 0, gfp); msg 2950 drivers/spi/spi.c SPI_STATISTICS_INCREMENT_FIELD(&msg->spi->statistics, msg 2968 drivers/spi/spi.c struct spi_message *msg, msg 2981 drivers/spi/spi.c list_for_each_entry(xfer, &msg->transfers, transfer_list) { msg 2983 drivers/spi/spi.c ret = __spi_split_transfer_maxsize(ctlr, msg, &xfer, msg 201 drivers/spi/spidev.c struct spi_message msg; msg 209 drivers/spi/spidev.c spi_message_init(&msg); msg 285 drivers/spi/spidev.c spi_message_add_tail(k_tmp, &msg); msg 288 drivers/spi/spidev.c status = spidev_sync(spidev, &msg); msg 992 drivers/staging/fbtft/fbtft-core.c char msg[128]; msg 1039 drivers/staging/fbtft/fbtft-core.c strcpy(msg, ""); msg 1043 drivers/staging/fbtft/fbtft-core.c strcat(msg, str); msg 1048 drivers/staging/fbtft/fbtft-core.c par->init_sequence[i], msg); msg 263 drivers/staging/fieldbus/anybuss/host.c u8 msg[MAX_MBOX_MSG_SZ]; msg 714 drivers/staging/fieldbus/anybuss/host.c pd->msg, pd->msg_in_sz); msg 739 drivers/staging/fieldbus/anybuss/host.c pd->msg, pd->msg_out_sz); msg 779 drivers/staging/fieldbus/anybuss/host.c u8 *pmsg = mpriv->msg; msg 841 drivers/staging/fieldbus/anybuss/host.c memcpy(pd->msg, msg_out, msg_out_sz); msg 854 drivers/staging/fieldbus/anybuss/host.c memcpy(msg_in, pd->msg, msg_in_sz); msg 1013 drivers/staging/fieldbus/anybuss/host.c struct msg_anybus_init msg = { msg 1037 drivers/staging/fieldbus/anybuss/host.c msg.op_mode = cpu_to_be16(op_mode | OP_MODE_CD); msg 1043 drivers/staging/fieldbus/anybuss/host.c &msg, sizeof(msg), NULL, 0, NULL, 0); msg 520 drivers/staging/gdm724x/gdm_lte.c void *msg, int len) msg 524 drivers/staging/gdm724x/gdm_lte.c nic->phy_dev->send_hci_func(nic->phy_dev->priv_dev, msg, len, NULL, msg 27 drivers/staging/gdm724x/netlink_k.c static void (*rcv_cb)(struct net_device *dev, u16 type, void *msg, int len); msg 34 drivers/staging/gdm724x/netlink_k.c void *msg; msg 56 drivers/staging/gdm724x/netlink_k.c msg = ND_NLMSG_DATA(nlh); msg 61 drivers/staging/gdm724x/netlink_k.c rcv_cb(dev, nlh->nlmsg_type, msg, mlen); msg 77 drivers/staging/gdm724x/netlink_k.c void *msg, int len)) msg 92 drivers/staging/gdm724x/netlink_k.c int netlink_send(struct sock *sock, int group, u16 type, void *msg, int len) msg 112 drivers/staging/gdm724x/netlink_k.c memcpy(NLMSG_DATA(nlh), msg, len); msg 12 drivers/staging/gdm724x/netlink_k.h u16 type, void *msg, int len)); msg 13 drivers/staging/gdm724x/netlink_k.h int netlink_send(struct sock *sock, int group, u16 type, void *msg, int len); msg 68 drivers/staging/greybus/i2c.c gb_i2c_fill_transfer_op(struct gb_i2c_transfer_op *op, struct i2c_msg *msg) msg 70 drivers/staging/greybus/i2c.c u16 flags = gb_i2c_transfer_op_flags_map(msg->flags); msg 72 drivers/staging/greybus/i2c.c op->addr = cpu_to_le16(msg->addr); msg 74 drivers/staging/greybus/i2c.c op->size = cpu_to_le16(msg->len); msg 85 drivers/staging/greybus/i2c.c struct i2c_msg *msg; msg 104 drivers/staging/greybus/i2c.c msg = msgs; msg 105 drivers/staging/greybus/i2c.c for (i = 0; i < msg_count; i++, msg++) msg 106 drivers/staging/greybus/i2c.c if (msg->flags & I2C_M_RD) msg 107 drivers/staging/greybus/i2c.c data_in_size += (u32)msg->len; msg 109 drivers/staging/greybus/i2c.c data_out_size += (u32)msg->len; msg 125 drivers/staging/greybus/i2c.c msg = msgs; msg 127 drivers/staging/greybus/i2c.c gb_i2c_fill_transfer_op(op++, msg++); msg 134 drivers/staging/greybus/i2c.c msg = msgs; msg 136 drivers/staging/greybus/i2c.c if (!(msg->flags & I2C_M_RD)) { msg 137 drivers/staging/greybus/i2c.c memcpy(data, msg->buf, msg->len); msg 138 drivers/staging/greybus/i2c.c data += msg->len; msg 140 drivers/staging/greybus/i2c.c msg++; msg 149 drivers/staging/greybus/i2c.c struct i2c_msg *msg = msgs; msg 157 drivers/staging/greybus/i2c.c if (msg->flags & I2C_M_RD) { msg 158 drivers/staging/greybus/i2c.c memcpy(msg->buf, data, msg->len); msg 159 drivers/staging/greybus/i2c.c data += msg->len; msg 161 drivers/staging/greybus/i2c.c msg++; msg 54 drivers/staging/greybus/log.c receive->msg[len - 1] = '\0'; msg 60 drivers/staging/greybus/log.c dev_dbg(dev, "%s", receive->msg); msg 116 drivers/staging/greybus/spilib.c static int setup_next_xfer(struct gb_spilib *spi, struct spi_message *msg) msg 120 drivers/staging/greybus/spilib.c if (msg->state != GB_SPI_STATE_OP_DONE) msg 131 drivers/staging/greybus/spilib.c if (last_xfer == list_last_entry(&msg->transfers, msg 134 drivers/staging/greybus/spilib.c msg->state = GB_SPI_STATE_MSG_DONE; msg 152 drivers/staging/greybus/spilib.c struct spi_message *msg) msg 154 drivers/staging/greybus/spilib.c if (xfer == list_last_entry(&msg->transfers, struct spi_transfer, msg 163 drivers/staging/greybus/spilib.c struct gb_connection *connection, struct spi_message *msg) msg 166 drivers/staging/greybus/spilib.c struct spi_device *dev = msg->spi; msg 182 drivers/staging/greybus/spilib.c while (msg->state != GB_SPI_STATE_OP_READY) { msg 183 drivers/staging/greybus/spilib.c msg->state = GB_SPI_STATE_MSG_RUNNING; msg 189 drivers/staging/greybus/spilib.c msg->state = GB_SPI_STATE_MSG_ERROR; msg 218 drivers/staging/greybus/spilib.c xfer = get_next_xfer(xfer, msg); msg 220 drivers/staging/greybus/spilib.c msg->state = GB_SPI_STATE_OP_READY; msg 247 drivers/staging/greybus/spilib.c while (msg->state != GB_SPI_STATE_OP_DONE) { msg 280 drivers/staging/greybus/spilib.c msg->state = GB_SPI_STATE_OP_DONE; msg 285 drivers/staging/greybus/spilib.c xfer = get_next_xfer(xfer, msg); msg 288 drivers/staging/greybus/spilib.c msg->actual_length += total_len; msg 294 drivers/staging/greybus/spilib.c struct spi_message *msg, msg 324 drivers/staging/greybus/spilib.c struct spi_message *msg) msg 332 drivers/staging/greybus/spilib.c spi->first_xfer = list_first_entry_or_null(&msg->transfers, msg 340 drivers/staging/greybus/spilib.c msg->state = GB_SPI_STATE_MSG_IDLE; msg 342 drivers/staging/greybus/spilib.c while (msg->state != GB_SPI_STATE_MSG_DONE && msg 343 drivers/staging/greybus/spilib.c msg->state != GB_SPI_STATE_MSG_ERROR) { msg 344 drivers/staging/greybus/spilib.c operation = gb_spi_operation_create(spi, connection, msg); msg 346 drivers/staging/greybus/spilib.c msg->state = GB_SPI_STATE_MSG_ERROR; msg 356 drivers/staging/greybus/spilib.c gb_spi_decode_response(spi, msg, response); msg 360 drivers/staging/greybus/spilib.c msg->state = GB_SPI_STATE_MSG_ERROR; msg 364 drivers/staging/greybus/spilib.c setup_next_xfer(spi, msg); msg 368 drivers/staging/greybus/spilib.c msg->status = ret; msg 104 drivers/staging/iio/frequency/ad9832.c struct spi_message msg; msg 203 drivers/staging/iio/frequency/ad9832.c ret = spi_sync(st->spi, &st->msg); msg 216 drivers/staging/iio/frequency/ad9832.c ret = spi_sync(st->spi, &st->msg); msg 229 drivers/staging/iio/frequency/ad9832.c ret = spi_sync(st->spi, &st->msg); msg 240 drivers/staging/iio/frequency/ad9832.c ret = spi_sync(st->spi, &st->msg); msg 361 drivers/staging/iio/frequency/ad9832.c spi_message_init(&st->msg); msg 362 drivers/staging/iio/frequency/ad9832.c spi_message_add_tail(&st->xfer, &st->msg); msg 395 drivers/staging/iio/frequency/ad9832.c ret = spi_sync(st->spi, &st->msg); msg 78 drivers/staging/iio/frequency/ad9834.c struct spi_message msg; msg 139 drivers/staging/iio/frequency/ad9834.c return spi_sync(st->spi, &st->msg); msg 179 drivers/staging/iio/frequency/ad9834.c ret = spi_sync(st->spi, &st->msg); msg 187 drivers/staging/iio/frequency/ad9834.c ret = spi_sync(st->spi, &st->msg); msg 201 drivers/staging/iio/frequency/ad9834.c ret = spi_sync(st->spi, &st->msg); msg 210 drivers/staging/iio/frequency/ad9834.c ret = spi_sync(st->spi, &st->msg); msg 272 drivers/staging/iio/frequency/ad9834.c ret = spi_sync(st->spi, &st->msg); msg 452 drivers/staging/iio/frequency/ad9834.c spi_message_init(&st->msg); msg 453 drivers/staging/iio/frequency/ad9834.c spi_message_add_tail(&st->xfer, &st->msg); msg 472 drivers/staging/iio/frequency/ad9834.c ret = spi_sync(st->spi, &st->msg); msg 328 drivers/staging/isdn/gigaset/capi.c u8 *msg; msg 336 drivers/staging/isdn/gigaset/capi.c msg = __skb_put(cskb, CAPI_DATA_B3_CONF_LEN); msg 337 drivers/staging/isdn/gigaset/capi.c CAPIMSG_SETLEN(msg, CAPI_DATA_B3_CONF_LEN); msg 338 drivers/staging/isdn/gigaset/capi.c CAPIMSG_SETAPPID(msg, appl); msg 339 drivers/staging/isdn/gigaset/capi.c CAPIMSG_SETCOMMAND(msg, CAPI_DATA_B3); msg 340 drivers/staging/isdn/gigaset/capi.c CAPIMSG_SETSUBCOMMAND(msg, CAPI_CONF); msg 341 drivers/staging/isdn/gigaset/capi.c CAPIMSG_SETMSGID(msg, msgid); msg 342 drivers/staging/isdn/gigaset/capi.c CAPIMSG_SETCONTROLLER(msg, ctr->cnr); msg 343 drivers/staging/isdn/gigaset/capi.c CAPIMSG_SETPLCI_PART(msg, channel); msg 344 drivers/staging/isdn/gigaset/capi.c CAPIMSG_SETNCCI_PART(msg, 1); msg 345 drivers/staging/isdn/gigaset/capi.c CAPIMSG_SETHANDLE_CONF(msg, handle); msg 346 drivers/staging/isdn/gigaset/capi.c CAPIMSG_SETINFO_CONF(msg, info); msg 349 drivers/staging/isdn/gigaset/capi.c dump_rawmsg(DEBUG_MCMD, __func__, msg); msg 48 drivers/staging/isdn/gigaset/common.c void gigaset_dbg_buffer(enum debuglevel level, const unsigned char *msg, msg 82 drivers/staging/isdn/gigaset/common.c gig_dbg(level, "%s (%u bytes): %s", msg, (unsigned) len, outbuf); msg 106 drivers/staging/isdn/gigaset/gigaset.h void gigaset_dbg_buffer(enum debuglevel level, const unsigned char *msg, msg 893 drivers/staging/media/allegro-dvt/allegro-core.c struct mcu_msg_init_request msg; msg 895 drivers/staging/media/allegro-dvt/allegro-core.c memset(&msg, 0, sizeof(msg)); msg 897 drivers/staging/media/allegro-dvt/allegro-core.c msg.header.type = MCU_MSG_TYPE_INIT; msg 898 drivers/staging/media/allegro-dvt/allegro-core.c msg.header.length = sizeof(msg) - sizeof(msg.header); msg 900 drivers/staging/media/allegro-dvt/allegro-core.c msg.suballoc_dma = lower_32_bits(suballoc_dma) | MCU_CACHE_OFFSET; msg 901 drivers/staging/media/allegro-dvt/allegro-core.c msg.suballoc_size = suballoc_size; msg 904 drivers/staging/media/allegro-dvt/allegro-core.c msg.l2_cache[0] = -1; msg 905 drivers/staging/media/allegro-dvt/allegro-core.c msg.l2_cache[1] = -1; msg 906 drivers/staging/media/allegro-dvt/allegro-core.c msg.l2_cache[2] = -1; msg 908 drivers/staging/media/allegro-dvt/allegro-core.c allegro_mbox_write(dev, &dev->mbox_command, &msg, sizeof(msg)); msg 1010 drivers/staging/media/allegro-dvt/allegro-core.c struct mcu_msg_create_channel msg; msg 1012 drivers/staging/media/allegro-dvt/allegro-core.c memset(&msg, 0, sizeof(msg)); msg 1014 drivers/staging/media/allegro-dvt/allegro-core.c msg.header.type = MCU_MSG_TYPE_CREATE_CHANNEL; msg 1015 drivers/staging/media/allegro-dvt/allegro-core.c msg.header.length = sizeof(msg) - sizeof(msg.header); msg 1017 drivers/staging/media/allegro-dvt/allegro-core.c msg.user_id = channel->user_id; msg 1018 drivers/staging/media/allegro-dvt/allegro-core.c msg.width = channel->width; msg 1019 drivers/staging/media/allegro-dvt/allegro-core.c msg.height = channel->height; msg 1020 drivers/staging/media/allegro-dvt/allegro-core.c msg.format = v4l2_pixelformat_to_mcu_format(channel->pixelformat); msg 1021 drivers/staging/media/allegro-dvt/allegro-core.c msg.colorspace = v4l2_colorspace_to_mcu_colorspace(channel->colorspace); msg 1022 drivers/staging/media/allegro-dvt/allegro-core.c msg.src_mode = 0x0; msg 1023 drivers/staging/media/allegro-dvt/allegro-core.c msg.profile = v4l2_profile_to_mcu_profile(channel->profile); msg 1024 drivers/staging/media/allegro-dvt/allegro-core.c msg.constraint_set_flags = BIT(1); msg 1025 drivers/staging/media/allegro-dvt/allegro-core.c msg.codec = v4l2_pixelformat_to_mcu_codec(channel->codec); msg 1026 drivers/staging/media/allegro-dvt/allegro-core.c msg.level = v4l2_level_to_mcu_level(channel->level); msg 1027 drivers/staging/media/allegro-dvt/allegro-core.c msg.tier = 0; msg 1028 drivers/staging/media/allegro-dvt/allegro-core.c msg.sps_param = BIT(20) | 0x4a; msg 1029 drivers/staging/media/allegro-dvt/allegro-core.c msg.pps_param = BIT(2); msg 1030 drivers/staging/media/allegro-dvt/allegro-core.c msg.enc_option = AL_OPT_RDO_COST_MODE | AL_OPT_LF_X_TILE | msg 1032 drivers/staging/media/allegro-dvt/allegro-core.c msg.beta_offset = -1; msg 1033 drivers/staging/media/allegro-dvt/allegro-core.c msg.tc_offset = -1; msg 1034 drivers/staging/media/allegro-dvt/allegro-core.c msg.num_slices = 1; msg 1035 drivers/staging/media/allegro-dvt/allegro-core.c msg.me_range[0] = 8; msg 1036 drivers/staging/media/allegro-dvt/allegro-core.c msg.me_range[1] = 8; msg 1037 drivers/staging/media/allegro-dvt/allegro-core.c msg.me_range[2] = 16; msg 1038 drivers/staging/media/allegro-dvt/allegro-core.c msg.me_range[3] = 16; msg 1039 drivers/staging/media/allegro-dvt/allegro-core.c msg.max_cu_size = ilog2(SIZE_MACROBLOCK); msg 1040 drivers/staging/media/allegro-dvt/allegro-core.c msg.min_cu_size = ilog2(8); msg 1041 drivers/staging/media/allegro-dvt/allegro-core.c msg.max_tu_size = 2; msg 1042 drivers/staging/media/allegro-dvt/allegro-core.c msg.min_tu_size = 2; msg 1043 drivers/staging/media/allegro-dvt/allegro-core.c msg.max_transfo_depth_intra = 1; msg 1044 drivers/staging/media/allegro-dvt/allegro-core.c msg.max_transfo_depth_inter = 1; msg 1046 drivers/staging/media/allegro-dvt/allegro-core.c msg.rate_control_mode = msg 1049 drivers/staging/media/allegro-dvt/allegro-core.c msg.initial_rem_delay = msg 1052 drivers/staging/media/allegro-dvt/allegro-core.c msg.cpb_size = msg 1054 drivers/staging/media/allegro-dvt/allegro-core.c msg.framerate = 25; msg 1055 drivers/staging/media/allegro-dvt/allegro-core.c msg.clk_ratio = 1000; msg 1056 drivers/staging/media/allegro-dvt/allegro-core.c msg.target_bitrate = channel->bitrate; msg 1057 drivers/staging/media/allegro-dvt/allegro-core.c msg.max_bitrate = channel->bitrate_peak; msg 1058 drivers/staging/media/allegro-dvt/allegro-core.c msg.initial_qp = 25; msg 1059 drivers/staging/media/allegro-dvt/allegro-core.c msg.min_qp = 10; msg 1060 drivers/staging/media/allegro-dvt/allegro-core.c msg.max_qp = 51; msg 1061 drivers/staging/media/allegro-dvt/allegro-core.c msg.ip_delta = -1; msg 1062 drivers/staging/media/allegro-dvt/allegro-core.c msg.pb_delta = -1; msg 1063 drivers/staging/media/allegro-dvt/allegro-core.c msg.golden_ref = 0; msg 1064 drivers/staging/media/allegro-dvt/allegro-core.c msg.golden_delta = 2; msg 1065 drivers/staging/media/allegro-dvt/allegro-core.c msg.golden_ref_frequency = 10; msg 1066 drivers/staging/media/allegro-dvt/allegro-core.c msg.rate_control_option = 0x00000000; msg 1068 drivers/staging/media/allegro-dvt/allegro-core.c msg.gop_ctrl_mode = 0x00000000; msg 1069 drivers/staging/media/allegro-dvt/allegro-core.c msg.freq_ird = 0x7fffffff; msg 1070 drivers/staging/media/allegro-dvt/allegro-core.c msg.freq_lt = 0; msg 1071 drivers/staging/media/allegro-dvt/allegro-core.c msg.gdr_mode = 0x00000000; msg 1072 drivers/staging/media/allegro-dvt/allegro-core.c msg.gop_length = channel->gop_size; msg 1073 drivers/staging/media/allegro-dvt/allegro-core.c msg.subframe_latency = 0x00000000; msg 1074 drivers/staging/media/allegro-dvt/allegro-core.c msg.lda_control_mode = 0x700d0000; msg 1076 drivers/staging/media/allegro-dvt/allegro-core.c allegro_mbox_write(dev, &dev->mbox_command, &msg, sizeof(msg)); msg 1085 drivers/staging/media/allegro-dvt/allegro-core.c struct mcu_msg_destroy_channel msg; msg 1087 drivers/staging/media/allegro-dvt/allegro-core.c memset(&msg, 0, sizeof(msg)); msg 1089 drivers/staging/media/allegro-dvt/allegro-core.c msg.header.type = MCU_MSG_TYPE_DESTROY_CHANNEL; msg 1090 drivers/staging/media/allegro-dvt/allegro-core.c msg.header.length = sizeof(msg) - sizeof(msg.header); msg 1092 drivers/staging/media/allegro-dvt/allegro-core.c msg.channel_id = channel->mcu_channel_id; msg 1094 drivers/staging/media/allegro-dvt/allegro-core.c allegro_mbox_write(dev, &dev->mbox_command, &msg, sizeof(msg)); msg 1105 drivers/staging/media/allegro-dvt/allegro-core.c struct mcu_msg_put_stream_buffer msg; msg 1107 drivers/staging/media/allegro-dvt/allegro-core.c memset(&msg, 0, sizeof(msg)); msg 1109 drivers/staging/media/allegro-dvt/allegro-core.c msg.header.type = MCU_MSG_TYPE_PUT_STREAM_BUFFER; msg 1110 drivers/staging/media/allegro-dvt/allegro-core.c msg.header.length = sizeof(msg) - sizeof(msg.header); msg 1112 drivers/staging/media/allegro-dvt/allegro-core.c msg.channel_id = channel->mcu_channel_id; msg 1113 drivers/staging/media/allegro-dvt/allegro-core.c msg.dma_addr = paddr; msg 1114 drivers/staging/media/allegro-dvt/allegro-core.c msg.mcu_addr = paddr | MCU_CACHE_OFFSET; msg 1115 drivers/staging/media/allegro-dvt/allegro-core.c msg.size = size; msg 1116 drivers/staging/media/allegro-dvt/allegro-core.c msg.offset = ENCODER_STREAM_OFFSET; msg 1117 drivers/staging/media/allegro-dvt/allegro-core.c msg.stream_id = 0; /* copied to mcu_msg_encode_frame_response */ msg 1119 drivers/staging/media/allegro-dvt/allegro-core.c allegro_mbox_write(dev, &dev->mbox_command, &msg, sizeof(msg)); msg 1129 drivers/staging/media/allegro-dvt/allegro-core.c struct mcu_msg_encode_frame msg; msg 1131 drivers/staging/media/allegro-dvt/allegro-core.c memset(&msg, 0, sizeof(msg)); msg 1133 drivers/staging/media/allegro-dvt/allegro-core.c msg.header.type = MCU_MSG_TYPE_ENCODE_FRAME; msg 1134 drivers/staging/media/allegro-dvt/allegro-core.c msg.header.length = sizeof(msg) - sizeof(msg.header); msg 1136 drivers/staging/media/allegro-dvt/allegro-core.c msg.channel_id = channel->mcu_channel_id; msg 1137 drivers/staging/media/allegro-dvt/allegro-core.c msg.encoding_options = AL_OPT_FORCE_LOAD; msg 1138 drivers/staging/media/allegro-dvt/allegro-core.c msg.pps_qp = 26; /* qp are relative to 26 */ msg 1139 drivers/staging/media/allegro-dvt/allegro-core.c msg.user_param = 0; /* copied to mcu_msg_encode_frame_response */ msg 1140 drivers/staging/media/allegro-dvt/allegro-core.c msg.src_handle = 0; /* copied to mcu_msg_encode_frame_response */ msg 1141 drivers/staging/media/allegro-dvt/allegro-core.c msg.src_y = src_y; msg 1142 drivers/staging/media/allegro-dvt/allegro-core.c msg.src_uv = src_uv; msg 1143 drivers/staging/media/allegro-dvt/allegro-core.c msg.stride = channel->stride; msg 1144 drivers/staging/media/allegro-dvt/allegro-core.c msg.ep2 = 0x0; msg 1145 drivers/staging/media/allegro-dvt/allegro-core.c msg.ep2_v = msg.ep2 | MCU_CACHE_OFFSET; msg 1147 drivers/staging/media/allegro-dvt/allegro-core.c allegro_mbox_write(dev, &dev->mbox_command, &msg, sizeof(msg)); msg 1171 drivers/staging/media/allegro-dvt/allegro-core.c struct mcu_msg_push_buffers_internal *msg; msg 1192 drivers/staging/media/allegro-dvt/allegro-core.c size = struct_size(msg, buffer, num_buffers); msg 1194 drivers/staging/media/allegro-dvt/allegro-core.c msg = kmalloc(size, GFP_KERNEL); msg 1195 drivers/staging/media/allegro-dvt/allegro-core.c if (!msg) msg 1198 drivers/staging/media/allegro-dvt/allegro-core.c msg->header.length = size - sizeof(msg->header); msg 1199 drivers/staging/media/allegro-dvt/allegro-core.c msg->header.type = type; msg 1200 drivers/staging/media/allegro-dvt/allegro-core.c msg->channel_id = channel->mcu_channel_id; msg 1202 drivers/staging/media/allegro-dvt/allegro-core.c buffer = msg->buffer; msg 1211 drivers/staging/media/allegro-dvt/allegro-core.c err = allegro_mbox_write(dev, &dev->mbox_command, msg, size); msg 1217 drivers/staging/media/allegro-dvt/allegro-core.c kfree(msg); msg 1473 drivers/staging/media/allegro-dvt/allegro-core.c struct mcu_msg_encode_frame_response *msg) msg 1492 drivers/staging/media/allegro-dvt/allegro-core.c if (msg->error_code) { msg 1495 drivers/staging/media/allegro-dvt/allegro-core.c channel->mcu_channel_id, msg->error_code); msg 1499 drivers/staging/media/allegro-dvt/allegro-core.c if (msg->partition_table_size != 1) { msg 1502 drivers/staging/media/allegro-dvt/allegro-core.c channel->mcu_channel_id, msg->partition_table_size); msg 1505 drivers/staging/media/allegro-dvt/allegro-core.c if (msg->partition_table_offset + msg 1506 drivers/staging/media/allegro-dvt/allegro-core.c msg->partition_table_size * sizeof(*partition) > msg 1515 drivers/staging/media/allegro-dvt/allegro-core.c vb2_plane_vaddr(&dst_buf->vb2_buf, 0) + msg->partition_table_offset; msg 1538 drivers/staging/media/allegro-dvt/allegro-core.c if (msg->is_idr) { msg 1553 drivers/staging/media/allegro-dvt/allegro-core.c if (msg->slice_type == AL_ENC_SLICE_TYPE_I) { msg 1590 drivers/staging/media/allegro-dvt/allegro-core.c if (msg->is_idr) msg 1599 drivers/staging/media/allegro-dvt/allegro-core.c msg->is_idr ? "IDR, " : "", msg 1600 drivers/staging/media/allegro-dvt/allegro-core.c msg->slice_type == AL_ENC_SLICE_TYPE_I ? "I slice" : msg 1601 drivers/staging/media/allegro-dvt/allegro-core.c msg->slice_type == AL_ENC_SLICE_TYPE_P ? "P slice" : "unknown", msg 1613 drivers/staging/media/allegro-dvt/allegro-core.c struct mcu_msg_init_response *msg) msg 1622 drivers/staging/media/allegro-dvt/allegro-core.c struct mcu_msg_create_channel_response *msg) msg 1627 drivers/staging/media/allegro-dvt/allegro-core.c channel = allegro_find_channel_by_user_id(dev, msg->user_id); msg 1631 drivers/staging/media/allegro-dvt/allegro-core.c msg_type_name(msg->header.type), msg 1632 drivers/staging/media/allegro-dvt/allegro-core.c msg->user_id); msg 1636 drivers/staging/media/allegro-dvt/allegro-core.c if (msg->error_code) { msg 1639 drivers/staging/media/allegro-dvt/allegro-core.c channel->user_id, msg->error_code); msg 1644 drivers/staging/media/allegro-dvt/allegro-core.c channel->mcu_channel_id = msg->channel_id; msg 1652 drivers/staging/media/allegro-dvt/allegro-core.c msg->int_buffers_count, msg->int_buffers_size); msg 1653 drivers/staging/media/allegro-dvt/allegro-core.c err = allocate_intermediate_buffers(channel, msg->int_buffers_count, msg 1654 drivers/staging/media/allegro-dvt/allegro-core.c msg->int_buffers_size); msg 1668 drivers/staging/media/allegro-dvt/allegro-core.c msg->rec_buffers_count, msg->rec_buffers_size); msg 1669 drivers/staging/media/allegro-dvt/allegro-core.c err = allocate_reference_buffers(channel, msg->rec_buffers_count, msg 1670 drivers/staging/media/allegro-dvt/allegro-core.c msg->rec_buffers_size); msg 1691 drivers/staging/media/allegro-dvt/allegro-core.c struct mcu_msg_destroy_channel_response *msg) msg 1695 drivers/staging/media/allegro-dvt/allegro-core.c channel = allegro_find_channel_by_channel_id(dev, msg->channel_id); msg 1699 drivers/staging/media/allegro-dvt/allegro-core.c msg_type_name(msg->header.type), msg 1700 drivers/staging/media/allegro-dvt/allegro-core.c msg->channel_id); msg 1714 drivers/staging/media/allegro-dvt/allegro-core.c struct mcu_msg_encode_frame_response *msg) msg 1718 drivers/staging/media/allegro-dvt/allegro-core.c channel = allegro_find_channel_by_channel_id(dev, msg->channel_id); msg 1722 drivers/staging/media/allegro-dvt/allegro-core.c msg_type_name(msg->header.type), msg 1723 drivers/staging/media/allegro-dvt/allegro-core.c msg->channel_id); msg 1727 drivers/staging/media/allegro-dvt/allegro-core.c allegro_channel_finish_frame(channel, msg); msg 1734 drivers/staging/media/allegro-dvt/allegro-core.c union mcu_msg_response *msg; msg 1738 drivers/staging/media/allegro-dvt/allegro-core.c msg = kmalloc(sizeof(*msg), GFP_KERNEL); msg 1739 drivers/staging/media/allegro-dvt/allegro-core.c if (!msg) msg 1742 drivers/staging/media/allegro-dvt/allegro-core.c size = allegro_mbox_read(dev, &dev->mbox_status, msg, sizeof(*msg)); msg 1743 drivers/staging/media/allegro-dvt/allegro-core.c if (size < sizeof(msg->header)) { msg 1746 drivers/staging/media/allegro-dvt/allegro-core.c size, sizeof(msg->header)); msg 1751 drivers/staging/media/allegro-dvt/allegro-core.c switch (msg->header.type) { msg 1753 drivers/staging/media/allegro-dvt/allegro-core.c err = allegro_handle_init(dev, &msg->init); msg 1756 drivers/staging/media/allegro-dvt/allegro-core.c err = allegro_handle_create_channel(dev, &msg->create_channel); msg 1760 drivers/staging/media/allegro-dvt/allegro-core.c &msg->destroy_channel); msg 1763 drivers/staging/media/allegro-dvt/allegro-core.c err = allegro_handle_encode_frame(dev, &msg->encode_frame); msg 1768 drivers/staging/media/allegro-dvt/allegro-core.c __func__, msg_type_name(msg->header.type)); msg 1774 drivers/staging/media/allegro-dvt/allegro-core.c kfree(msg); msg 104 drivers/staging/media/soc_camera/imx074.c struct i2c_msg msg; msg 108 drivers/staging/media/soc_camera/imx074.c msg.addr = client->addr; msg 109 drivers/staging/media/soc_camera/imx074.c msg.buf = tx; msg 110 drivers/staging/media/soc_camera/imx074.c msg.len = 3; msg 111 drivers/staging/media/soc_camera/imx074.c msg.flags = 0; msg 117 drivers/staging/media/soc_camera/imx074.c ret = i2c_transfer(adap, &msg, 1); msg 399 drivers/staging/media/soc_camera/soc_ov9740.c struct i2c_msg msg[] = { msg 416 drivers/staging/media/soc_camera/soc_ov9740.c ret = i2c_transfer(client->adapter, msg, 2); msg 428 drivers/staging/media/soc_camera/soc_ov9740.c struct i2c_msg msg; msg 440 drivers/staging/media/soc_camera/soc_ov9740.c msg.addr = client->addr; msg 441 drivers/staging/media/soc_camera/soc_ov9740.c msg.flags = 0; msg 442 drivers/staging/media/soc_camera/soc_ov9740.c msg.len = 3; msg 443 drivers/staging/media/soc_camera/soc_ov9740.c msg.buf = (u8 *)&buf; msg 445 drivers/staging/media/soc_camera/soc_ov9740.c ret = i2c_transfer(client->adapter, &msg, 1); msg 194 drivers/staging/most/i2c/i2c.c unsigned char msg[MAX_BUF_SIZE_CONTROL]; msg 199 drivers/staging/most/i2c/i2c.c ret = i2c_master_recv(dev->client, msg, 2); msg 205 drivers/staging/most/i2c/i2c.c pml = (msg[0] << 8) | msg[1]; msg 212 drivers/staging/most/i2c/i2c.c ret = i2c_master_recv(dev->client, msg, data_size); msg 222 drivers/staging/most/i2c/i2c.c memcpy(mbo->virt_address, msg, mbo->processed_length); msg 57 drivers/staging/netlogic/xlr_net.c struct nlm_fmn_msg msg; msg 62 drivers/staging/netlogic/xlr_net.c msg.msg0 = (u64)paddr & 0xffffffffe0ULL; msg 63 drivers/staging/netlogic/xlr_net.c msg.msg1 = 0; msg 64 drivers/staging/netlogic/xlr_net.c msg.msg2 = 0; msg 65 drivers/staging/netlogic/xlr_net.c msg.msg3 = 0; msg 69 drivers/staging/netlogic/xlr_net.c ret = nlm_fmn_send(1, 0, stnid, &msg); msg 97 drivers/staging/netlogic/xlr_net.c struct nlm_fmn_msg *msg, void *arg) msg 107 drivers/staging/netlogic/xlr_net.c length = (msg->msg0 >> 40) & 0x3fff; msg 109 drivers/staging/netlogic/xlr_net.c addr = bus_to_virt(msg->msg0 & 0xffffffffffULL); msg 115 drivers/staging/netlogic/xlr_net.c bus_to_virt(msg->msg0 & 0xffffffffe0ULL); msg 117 drivers/staging/netlogic/xlr_net.c port = ((int)msg->msg0) & 0x0f; msg 227 drivers/staging/netlogic/xlr_net.c static void xlr_make_tx_desc(struct nlm_fmn_msg *msg, unsigned long addr, msg 234 drivers/staging/netlogic/xlr_net.c msg->msg0 = (((u64)1 << 63) | /* End of packet descriptor */ msg 238 drivers/staging/netlogic/xlr_net.c msg->msg1 = (((u64)1 << 63) | msg 242 drivers/staging/netlogic/xlr_net.c msg->msg2 = 0; msg 243 drivers/staging/netlogic/xlr_net.c msg->msg3 = 0; msg 249 drivers/staging/netlogic/xlr_net.c struct nlm_fmn_msg msg; msg 254 drivers/staging/netlogic/xlr_net.c xlr_make_tx_desc(&msg, virt_to_phys(skb->data), skb); msg 256 drivers/staging/netlogic/xlr_net.c ret = nlm_fmn_send(2, 0, priv->tx_stnid, &msg); msg 139 drivers/staging/nvec/nvec.c unsigned char *msg = data; msg 146 drivers/staging/nvec/nvec.c msg, msg[1] + 2, true); msg 190 drivers/staging/nvec/nvec.c void nvec_msg_free(struct nvec_chip *nvec, struct nvec_msg *msg) msg 192 drivers/staging/nvec/nvec.c if (msg != &nvec->tx_scratch) msg 193 drivers/staging/nvec/nvec.c dev_vdbg(nvec->dev, "INFO: Free %ti\n", msg - nvec->msg_pool); msg 194 drivers/staging/nvec/nvec.c atomic_set(&msg->used, 0); msg 202 drivers/staging/nvec/nvec.c static bool nvec_msg_is_event(struct nvec_msg *msg) msg 204 drivers/staging/nvec/nvec.c return msg->data[0] >> 7; msg 213 drivers/staging/nvec/nvec.c static size_t nvec_msg_size(struct nvec_msg *msg) msg 215 drivers/staging/nvec/nvec.c bool is_event = nvec_msg_is_event(msg); msg 216 drivers/staging/nvec/nvec.c int event_length = (msg->data[0] & 0x60) >> 5; msg 220 drivers/staging/nvec/nvec.c return (msg->pos || msg->size) ? (msg->data[1] + 2) : 0; msg 257 drivers/staging/nvec/nvec.c struct nvec_msg *msg; msg 260 drivers/staging/nvec/nvec.c msg = nvec_msg_alloc(nvec, NVEC_MSG_TX); msg 262 drivers/staging/nvec/nvec.c if (!msg) msg 265 drivers/staging/nvec/nvec.c msg->data[0] = size; msg 266 drivers/staging/nvec/nvec.c memcpy(msg->data + 1, data, size); msg 267 drivers/staging/nvec/nvec.c msg->size = size + 1; msg 270 drivers/staging/nvec/nvec.c list_add_tail(&msg->node, &nvec->tx_data); msg 298 drivers/staging/nvec/nvec.c struct nvec_msg **msg) msg 302 drivers/staging/nvec/nvec.c *msg = NULL; msg 322 drivers/staging/nvec/nvec.c *msg = nvec->last_sync_msg; msg 378 drivers/staging/nvec/nvec.c struct nvec_msg *msg; msg 382 drivers/staging/nvec/nvec.c msg = list_first_entry(&nvec->tx_data, struct nvec_msg, node); msg 391 drivers/staging/nvec/nvec.c msg->pos = 0; msg 397 drivers/staging/nvec/nvec.c list_del_init(&msg->node); msg 398 drivers/staging/nvec/nvec.c nvec_msg_free(nvec, msg); msg 412 drivers/staging/nvec/nvec.c static int parse_msg(struct nvec_chip *nvec, struct nvec_msg *msg) msg 414 drivers/staging/nvec/nvec.c if ((msg->data[0] & 1 << 7) == 0 && msg->data[3]) { msg 415 drivers/staging/nvec/nvec.c dev_err(nvec->dev, "ec responded %*ph\n", 4, msg->data); msg 419 drivers/staging/nvec/nvec.c if ((msg->data[0] >> 7) == 1 && (msg->data[0] & 0x0f) == 5) msg 421 drivers/staging/nvec/nvec.c DUMP_PREFIX_NONE, 16, 1, msg->data, msg 422 drivers/staging/nvec/nvec.c msg->data[1] + 2, true); msg 424 drivers/staging/nvec/nvec.c atomic_notifier_call_chain(&nvec->notifier_list, msg->data[0] & 0x8f, msg 425 drivers/staging/nvec/nvec.c msg->data); msg 441 drivers/staging/nvec/nvec.c struct nvec_msg *msg; msg 445 drivers/staging/nvec/nvec.c msg = list_first_entry(&nvec->rx_data, struct nvec_msg, node); msg 446 drivers/staging/nvec/nvec.c list_del_init(&msg->node); msg 450 drivers/staging/nvec/nvec.c (msg->data[2] << 8) + msg->data[0]) { msg 453 drivers/staging/nvec/nvec.c nvec->last_sync_msg = msg; msg 456 drivers/staging/nvec/nvec.c parse_msg(nvec, msg); msg 457 drivers/staging/nvec/nvec.c nvec_msg_free(nvec, msg); msg 769 drivers/staging/nvec/nvec.c struct nvec_msg *msg; msg 854 drivers/staging/nvec/nvec.c err = nvec_write_sync(nvec, get_firmware_version, 2, &msg); msg 859 drivers/staging/nvec/nvec.c msg->data[4], msg->data[5], msg 860 drivers/staging/nvec/nvec.c msg->data[6], msg->data[7]); msg 862 drivers/staging/nvec/nvec.c nvec_msg_free(nvec, msg); msg 904 drivers/staging/nvec/nvec.c struct nvec_msg *msg; msg 912 drivers/staging/nvec/nvec.c err = nvec_write_sync(nvec, ap_suspend, sizeof(ap_suspend), &msg); msg 914 drivers/staging/nvec/nvec.c nvec_msg_free(nvec, msg); msg 169 drivers/staging/nvec/nvec.h struct nvec_msg **msg); msg 177 drivers/staging/nvec/nvec.h void nvec_msg_free(struct nvec_chip *nvec, struct nvec_msg *msg); msg 57 drivers/staging/nvec/nvec_kbd.c unsigned char *msg = data; msg 60 drivers/staging/nvec/nvec_kbd.c int _size = (msg[0] & (3 << 5)) >> 5; msg 67 drivers/staging/nvec/nvec_kbd.c msg++; msg 69 drivers/staging/nvec/nvec_kbd.c code = msg[1] & 0x7f; msg 70 drivers/staging/nvec/nvec_kbd.c state = msg[1] & 0x80; msg 77 drivers/staging/nvec/nvec_ps2.c unsigned char *msg = data; msg 81 drivers/staging/nvec/nvec_ps2.c for (i = 0; i < msg[1]; i++) msg 82 drivers/staging/nvec/nvec_ps2.c serio_interrupt(ps2_dev.ser_dev, msg[2 + i], 0); msg 83 drivers/staging/nvec/nvec_ps2.c NVEC_PHD("ps/2 mouse event: ", &msg[2], msg[1]); msg 87 drivers/staging/nvec/nvec_ps2.c if (msg[2] == 1) { msg 88 drivers/staging/nvec/nvec_ps2.c for (i = 0; i < (msg[1] - 2); i++) msg 89 drivers/staging/nvec/nvec_ps2.c serio_interrupt(ps2_dev.ser_dev, msg[i + 4], 0); msg 90 drivers/staging/nvec/nvec_ps2.c NVEC_PHD("ps/2 mouse reply: ", &msg[4], msg[1] - 2); msg 93 drivers/staging/nvec/nvec_ps2.c else if (msg[1] != 2) /* !ack */ msg 94 drivers/staging/nvec/nvec_ps2.c NVEC_PHD("unhandled mouse event: ", msg, msg[1] + 2); msg 2090 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c char msg[64]; msg 2097 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c cnt += sprintf((msg+cnt), "%s(token:%u)", action_public_str(action), token); msg 2098 drivers/staging/rtl8723bs/core/rtw_mlme_ext.c rtw_cfg80211_rx_action(adapter, pframe, frame_len, msg); msg 392 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c void rtw_set_ps_mode(struct adapter *padapter, u8 ps_mode, u8 smart_ps, u8 bcn_ant_mode, const char *msg) msg 421 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c FUNC_ADPT_ARG(padapter), msg); msg 462 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c FUNC_ADPT_ARG(padapter), msg); msg 532 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c void LPS_Enter(struct adapter *padapter, const char *msg) msg 559 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c sprintf(buf, "WIFI-%s", msg); msg 574 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c void LPS_Leave(struct adapter *padapter, const char *msg) msg 589 drivers/staging/rtl8723bs/core/rtw_pwrctrl.c sprintf(buf, "WIFI-%s", msg); msg 319 drivers/staging/rtl8723bs/core/rtw_wlan_util.c char msg[128] = {0}; msg 329 drivers/staging/rtl8723bs/core/rtw_wlan_util.c cnt += snprintf(msg+cnt, len-cnt, "switch to ch %3u", ch); msg 333 drivers/staging/rtl8723bs/core/rtw_wlan_util.c cnt += snprintf(msg+cnt, len-cnt, " ["ADPT_FMT":", ADPT_ARG(iface)); msg 335 drivers/staging/rtl8723bs/core/rtw_wlan_util.c cnt += snprintf(msg+cnt, len-cnt, "C"); msg 337 drivers/staging/rtl8723bs/core/rtw_wlan_util.c cnt += snprintf(msg+cnt, len-cnt, "_"); msg 339 drivers/staging/rtl8723bs/core/rtw_wlan_util.c cnt += snprintf(msg+cnt, len-cnt, "L"); msg 341 drivers/staging/rtl8723bs/core/rtw_wlan_util.c cnt += snprintf(msg+cnt, len-cnt, "_"); msg 342 drivers/staging/rtl8723bs/core/rtw_wlan_util.c cnt += snprintf(msg+cnt, len-cnt, "]"); msg 345 drivers/staging/rtl8723bs/core/rtw_wlan_util.c DBG_871X(FUNC_ADPT_FMT" %s\n", FUNC_ADPT_ARG(adapter), msg); msg 3010 drivers/staging/rtl8723bs/core/rtw_xmit.c int rtw_sctx_wait(struct submit_ctx *sctx, const char *msg) msg 3020 drivers/staging/rtl8723bs/core/rtw_xmit.c DBG_871X("%s timeout: %s\n", __func__, msg); msg 110 drivers/staging/rtl8723bs/include/ioctl_cfg80211.h void rtw_cfg80211_rx_action(struct adapter *adapter, u8 *frame, uint frame_len, const char*msg); msg 346 drivers/staging/rtl8723bs/include/rtw_pwrctrl.h void LPS_Enter(struct adapter *padapter, const char *msg); msg 347 drivers/staging/rtl8723bs/include/rtw_pwrctrl.h void LPS_Leave(struct adapter *padapter, const char *msg); msg 349 drivers/staging/rtl8723bs/include/rtw_pwrctrl.h void rtw_set_ps_mode(struct adapter *padapter, u8 ps_mode, u8 smart_ps, u8 bcn_ant_mode, const char *msg); msg 245 drivers/staging/rtl8723bs/include/rtw_xmit.h int rtw_sctx_wait(struct submit_ctx *sctx, const char *msg); msg 2987 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c void rtw_cfg80211_rx_action(struct adapter *adapter, u8 *frame, uint frame_len, const char*msg) msg 2998 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c if (msg) msg 2999 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c DBG_871X("RTW_Rx:%s\n", msg); msg 147 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg *msg; msg 229 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg *msg, u32 msg_len) msg 233 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg->u.event_to_host.client_component, msg 234 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg->u.event_to_host.port_type, msg 235 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg->u.event_to_host.port_num, msg 236 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg->u.event_to_host.cmd, msg->u.event_to_host.length); msg 301 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg *msg, msg 306 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c rd_len = msg->u.buffer_from_host.buffer_header.length; msg 335 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.dts = msg->u.buffer_from_host.buffer_header.dts; msg 336 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.pts = msg->u.buffer_from_host.buffer_header.pts; msg 346 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg *msg, msg 350 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg->u.buffer_from_host.short_data, msg 351 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg->u.buffer_from_host.payload_in_message); msg 354 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg->u.buffer_from_host.payload_in_message; msg 440 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg *msg, u32 msg_len) msg 446 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c __func__, instance, msg, msg_len); msg 448 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c if (msg->u.buffer_from_host.drvbuf.magic == MMAL_MAGIC) { msg 449 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c handle = msg->u.buffer_from_host.drvbuf.client_context; msg 463 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg->u.buffer_from_host.buffer_header.flags; msg 465 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c if (msg->h.status != MMAL_MSG_STATUS_SUCCESS) { msg 467 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c pr_warn("error %d in reply\n", msg->h.status); msg 469 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.status = msg->h.status; msg 471 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c } else if (msg->u.buffer_from_host.buffer_header.length == 0) { msg 473 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c if (msg->u.buffer_from_host.buffer_header.flags & msg 476 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c bulk_receive(instance, msg, msg_context); msg 486 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c } else if (msg->u.buffer_from_host.payload_in_message == 0) { msg 489 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c bulk_receive(instance, msg, msg_context); msg 499 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c } else if (msg->u.buffer_from_host.payload_in_message <= msg 502 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.bulk.status = inline_receive(instance, msg, msg 510 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg->u.buffer_from_host.payload_in_message; msg 544 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg *msg; msg 555 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c status = vchi_msg_hold(instance->handle, (void **)&msg, msg 562 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c DBG_DUMP_MSG(msg, msg_len, "<<< reply message"); msg 565 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c switch (msg->h.type) { msg 571 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c event_to_host_cb(instance, msg, msg_len); msg 577 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c buffer_to_host_cb(instance, msg, msg_len); msg 583 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c if (!msg->h.context) { msg 590 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg->h.context); msg 593 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg->h.context); msg 600 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg_context->u.sync.msg = msg; msg 640 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c struct mmal_msg *msg, msg 664 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg->h.magic = MMAL_MAGIC; msg 665 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg->h.context = msg_context->handle; msg 666 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg->h.status = 0; msg 668 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c DBG_DUMP_MSG(msg, (sizeof(struct mmal_msg_header) + payload_len), msg 674 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c msg, msg 696 drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c *msg_out = msg_context->u.sync.msg; msg 139 drivers/staging/wilc1000/wilc_hif.c struct host_if_msg *msg; msg 144 drivers/staging/wilc1000/wilc_hif.c msg = kzalloc(sizeof(*msg), GFP_ATOMIC); msg 145 drivers/staging/wilc1000/wilc_hif.c if (!msg) msg 147 drivers/staging/wilc1000/wilc_hif.c msg->fn = work_fun; msg 148 drivers/staging/wilc1000/wilc_hif.c msg->vif = vif; msg 149 drivers/staging/wilc1000/wilc_hif.c msg->is_sync = is_sync; msg 151 drivers/staging/wilc1000/wilc_hif.c init_completion(&msg->work_comp); msg 153 drivers/staging/wilc1000/wilc_hif.c return msg; msg 156 drivers/staging/wilc1000/wilc_hif.c static int wilc_enqueue_work(struct host_if_msg *msg) msg 158 drivers/staging/wilc1000/wilc_hif.c INIT_WORK(&msg->work, msg->fn); msg 160 drivers/staging/wilc1000/wilc_hif.c if (!msg->vif || !msg->vif->wilc || !msg->vif->wilc->hif_workqueue) msg 163 drivers/staging/wilc1000/wilc_hif.c if (!queue_work(msg->vif->wilc->hif_workqueue, &msg->work)) msg 399 drivers/staging/wilc1000/wilc_hif.c struct host_if_msg *msg = container_of(work, struct host_if_msg, work); msg 400 drivers/staging/wilc1000/wilc_hif.c struct wilc_vif *vif = msg->vif; msg 436 drivers/staging/wilc1000/wilc_hif.c kfree(msg); msg 576 drivers/staging/wilc1000/wilc_hif.c struct host_if_msg *msg = container_of(work, struct host_if_msg, work); msg 577 drivers/staging/wilc1000/wilc_hif.c struct wilc_rcvd_net_info *rcvd_info = &msg->body.net_info; msg 578 drivers/staging/wilc1000/wilc_hif.c struct wilc_user_scan_req *scan_req = &msg->vif->hif_drv->usr_scan_req; msg 606 drivers/staging/wilc1000/wilc_hif.c kfree(msg); msg 728 drivers/staging/wilc1000/wilc_hif.c struct host_if_msg *msg = container_of(work, struct host_if_msg, work); msg 729 drivers/staging/wilc1000/wilc_hif.c struct wilc_vif *vif = msg->vif; msg 730 drivers/staging/wilc1000/wilc_hif.c struct wilc_rcvd_mac_info *mac_info = &msg->body.mac_info; msg 755 drivers/staging/wilc1000/wilc_hif.c kfree(msg); msg 860 drivers/staging/wilc1000/wilc_hif.c struct host_if_msg *msg = container_of(work, struct host_if_msg, work); msg 861 drivers/staging/wilc1000/wilc_hif.c struct wilc_vif *vif = msg->vif; msg 862 drivers/staging/wilc1000/wilc_hif.c struct rf_info *stats = (struct rf_info *)msg->body.data; msg 866 drivers/staging/wilc1000/wilc_hif.c kfree(msg); msg 981 drivers/staging/wilc1000/wilc_hif.c struct host_if_msg *msg = container_of(work, struct host_if_msg, work); msg 983 drivers/staging/wilc1000/wilc_hif.c wilc_handle_roc_expired(msg->vif, msg->body.remain_on_ch.cookie); msg 984 drivers/staging/wilc1000/wilc_hif.c kfree(msg); msg 993 drivers/staging/wilc1000/wilc_hif.c struct host_if_msg *msg; msg 997 drivers/staging/wilc1000/wilc_hif.c msg = wilc_alloc_work(vif, wilc_handle_listen_state_expired, false); msg 998 drivers/staging/wilc1000/wilc_hif.c if (IS_ERR(msg)) msg 1001 drivers/staging/wilc1000/wilc_hif.c msg->body.remain_on_ch.cookie = vif->hif_drv->remain_on_ch.cookie; msg 1003 drivers/staging/wilc1000/wilc_hif.c result = wilc_enqueue_work(msg); msg 1006 drivers/staging/wilc1000/wilc_hif.c kfree(msg); msg 1012 drivers/staging/wilc1000/wilc_hif.c struct host_if_msg *msg = container_of(work, struct host_if_msg, work); msg 1013 drivers/staging/wilc1000/wilc_hif.c struct wilc_vif *vif = msg->vif; msg 1014 drivers/staging/wilc1000/wilc_hif.c struct wilc_set_multicast *set_mc = &msg->body.mc_info; msg 1043 drivers/staging/wilc1000/wilc_hif.c kfree(msg); msg 1048 drivers/staging/wilc1000/wilc_hif.c struct host_if_msg *msg = container_of(work, struct host_if_msg, work); msg 1050 drivers/staging/wilc1000/wilc_hif.c handle_scan_done(msg->vif, SCAN_EVENT_ABORTED); msg 1051 drivers/staging/wilc1000/wilc_hif.c kfree(msg); msg 1056 drivers/staging/wilc1000/wilc_hif.c struct host_if_msg *msg = container_of(work, struct host_if_msg, work); msg 1058 drivers/staging/wilc1000/wilc_hif.c del_timer(&msg->vif->hif_drv->scan_timer); msg 1060 drivers/staging/wilc1000/wilc_hif.c handle_scan_done(msg->vif, SCAN_EVENT_DONE); msg 1062 drivers/staging/wilc1000/wilc_hif.c kfree(msg); msg 1069 drivers/staging/wilc1000/wilc_hif.c struct host_if_msg *msg; msg 1072 drivers/staging/wilc1000/wilc_hif.c msg = wilc_alloc_work(vif, handle_scan_timer, false); msg 1073 drivers/staging/wilc1000/wilc_hif.c if (IS_ERR(msg)) msg 1076 drivers/staging/wilc1000/wilc_hif.c result = wilc_enqueue_work(msg); msg 1078 drivers/staging/wilc1000/wilc_hif.c kfree(msg); msg 1086 drivers/staging/wilc1000/wilc_hif.c struct host_if_msg *msg; msg 1089 drivers/staging/wilc1000/wilc_hif.c msg = wilc_alloc_work(vif, handle_connect_timeout, false); msg 1090 drivers/staging/wilc1000/wilc_hif.c if (IS_ERR(msg)) msg 1093 drivers/staging/wilc1000/wilc_hif.c result = wilc_enqueue_work(msg); msg 1095 drivers/staging/wilc1000/wilc_hif.c kfree(msg); msg 1487 drivers/staging/wilc1000/wilc_hif.c struct host_if_msg *msg; msg 1489 drivers/staging/wilc1000/wilc_hif.c msg = wilc_alloc_work(vif, handle_get_statistics, false); msg 1490 drivers/staging/wilc1000/wilc_hif.c if (IS_ERR(msg)) msg 1491 drivers/staging/wilc1000/wilc_hif.c return PTR_ERR(msg); msg 1493 drivers/staging/wilc1000/wilc_hif.c msg->body.data = (char *)stats; msg 1495 drivers/staging/wilc1000/wilc_hif.c result = wilc_enqueue_work(msg); msg 1498 drivers/staging/wilc1000/wilc_hif.c kfree(msg); msg 1625 drivers/staging/wilc1000/wilc_hif.c struct host_if_msg *msg; msg 1641 drivers/staging/wilc1000/wilc_hif.c msg = wilc_alloc_work(vif, handle_rcvd_ntwrk_info, false); msg 1642 drivers/staging/wilc1000/wilc_hif.c if (IS_ERR(msg)) msg 1645 drivers/staging/wilc1000/wilc_hif.c msg->body.net_info.frame_len = get_unaligned_le16(&buffer[6]) - 1; msg 1646 drivers/staging/wilc1000/wilc_hif.c msg->body.net_info.rssi = buffer[8]; msg 1647 drivers/staging/wilc1000/wilc_hif.c msg->body.net_info.mgmt = kmemdup(&buffer[9], msg 1648 drivers/staging/wilc1000/wilc_hif.c msg->body.net_info.frame_len, msg 1650 drivers/staging/wilc1000/wilc_hif.c if (!msg->body.net_info.mgmt) { msg 1651 drivers/staging/wilc1000/wilc_hif.c kfree(msg); msg 1655 drivers/staging/wilc1000/wilc_hif.c result = wilc_enqueue_work(msg); msg 1658 drivers/staging/wilc1000/wilc_hif.c kfree(msg->body.net_info.mgmt); msg 1659 drivers/staging/wilc1000/wilc_hif.c kfree(msg); msg 1666 drivers/staging/wilc1000/wilc_hif.c struct host_if_msg *msg; msg 1693 drivers/staging/wilc1000/wilc_hif.c msg = wilc_alloc_work(vif, handle_rcvd_gnrl_async_info, false); msg 1694 drivers/staging/wilc1000/wilc_hif.c if (IS_ERR(msg)) { msg 1699 drivers/staging/wilc1000/wilc_hif.c msg->body.mac_info.status = buffer[7]; msg 1700 drivers/staging/wilc1000/wilc_hif.c result = wilc_enqueue_work(msg); msg 1703 drivers/staging/wilc1000/wilc_hif.c kfree(msg); msg 1726 drivers/staging/wilc1000/wilc_hif.c struct host_if_msg *msg; msg 1728 drivers/staging/wilc1000/wilc_hif.c msg = wilc_alloc_work(vif, handle_scan_complete, false); msg 1729 drivers/staging/wilc1000/wilc_hif.c if (IS_ERR(msg)) msg 1732 drivers/staging/wilc1000/wilc_hif.c result = wilc_enqueue_work(msg); msg 1736 drivers/staging/wilc1000/wilc_hif.c kfree(msg); msg 2000 drivers/staging/wilc1000/wilc_hif.c struct host_if_msg *msg; msg 2002 drivers/staging/wilc1000/wilc_hif.c msg = wilc_alloc_work(vif, handle_set_mcast_filter, false); msg 2003 drivers/staging/wilc1000/wilc_hif.c if (IS_ERR(msg)) msg 2004 drivers/staging/wilc1000/wilc_hif.c return PTR_ERR(msg); msg 2006 drivers/staging/wilc1000/wilc_hif.c msg->body.mc_info.enabled = enabled; msg 2007 drivers/staging/wilc1000/wilc_hif.c msg->body.mc_info.cnt = count; msg 2008 drivers/staging/wilc1000/wilc_hif.c msg->body.mc_info.mc_list = mc_list; msg 2010 drivers/staging/wilc1000/wilc_hif.c result = wilc_enqueue_work(msg); msg 2013 drivers/staging/wilc1000/wilc_hif.c kfree(msg); msg 170 drivers/staging/wilc1000/wilc_spi.c struct spi_message msg; msg 186 drivers/staging/wilc1000/wilc_spi.c memset(&msg, 0, sizeof(msg)); msg 187 drivers/staging/wilc1000/wilc_spi.c spi_message_init(&msg); msg 188 drivers/staging/wilc1000/wilc_spi.c msg.spi = spi; msg 189 drivers/staging/wilc1000/wilc_spi.c msg.is_dma_mapped = USE_SPI_DMA; msg 190 drivers/staging/wilc1000/wilc_spi.c spi_message_add_tail(&tr, &msg); msg 192 drivers/staging/wilc1000/wilc_spi.c ret = spi_sync(spi, &msg); msg 213 drivers/staging/wilc1000/wilc_spi.c struct spi_message msg; msg 227 drivers/staging/wilc1000/wilc_spi.c memset(&msg, 0, sizeof(msg)); msg 228 drivers/staging/wilc1000/wilc_spi.c spi_message_init(&msg); msg 229 drivers/staging/wilc1000/wilc_spi.c msg.spi = spi; msg 230 drivers/staging/wilc1000/wilc_spi.c msg.is_dma_mapped = USE_SPI_DMA; msg 231 drivers/staging/wilc1000/wilc_spi.c spi_message_add_tail(&tr, &msg); msg 233 drivers/staging/wilc1000/wilc_spi.c ret = spi_sync(spi, &msg); msg 253 drivers/staging/wilc1000/wilc_spi.c struct spi_message msg; msg 263 drivers/staging/wilc1000/wilc_spi.c memset(&msg, 0, sizeof(msg)); msg 264 drivers/staging/wilc1000/wilc_spi.c spi_message_init(&msg); msg 265 drivers/staging/wilc1000/wilc_spi.c msg.spi = spi; msg 266 drivers/staging/wilc1000/wilc_spi.c msg.is_dma_mapped = USE_SPI_DMA; msg 268 drivers/staging/wilc1000/wilc_spi.c spi_message_add_tail(&tr, &msg); msg 269 drivers/staging/wilc1000/wilc_spi.c ret = spi_sync(spi, &msg); msg 76 drivers/staging/wlan-ng/cfg80211.c struct p80211msg_dot11req_mibset msg; msg 78 drivers/staging/wlan-ng/cfg80211.c (struct p80211item_uint32 *)&msg.mibattribute.data; msg 80 drivers/staging/wlan-ng/cfg80211.c msg.msgcode = DIDMSG_DOT11REQ_MIBSET; msg 84 drivers/staging/wlan-ng/cfg80211.c return p80211req_dorequest(wlandev, (u8 *)&msg); msg 90 drivers/staging/wlan-ng/cfg80211.c struct p80211msg_dot11req_mibset msg; msg 92 drivers/staging/wlan-ng/cfg80211.c (struct p80211item_pstr32 *)&msg.mibattribute.data; msg 94 drivers/staging/wlan-ng/cfg80211.c msg.msgcode = DIDMSG_DOT11REQ_MIBSET; msg 99 drivers/staging/wlan-ng/cfg80211.c return p80211req_dorequest(wlandev, (u8 *)&msg); msg 606 drivers/staging/wlan-ng/cfg80211.c struct p80211msg_dot11req_mibget msg; msg 611 drivers/staging/wlan-ng/cfg80211.c mibitem = (struct p80211item_uint32 *)&msg.mibattribute.data; msg 612 drivers/staging/wlan-ng/cfg80211.c msg.msgcode = DIDMSG_DOT11REQ_MIBGET; msg 615 drivers/staging/wlan-ng/cfg80211.c result = p80211req_dorequest(wlandev, (u8 *)&msg); msg 185 drivers/staging/wlan-ng/p80211netdev.h int (*mlmerequest)(struct wlandevice *wlandev, struct p80211msg *msg); msg 77 drivers/staging/wlan-ng/p80211req.c struct p80211msg *msg); msg 116 drivers/staging/wlan-ng/p80211req.c struct p80211msg *msg = (struct p80211msg *)msgbuf; msg 120 drivers/staging/wlan-ng/p80211req.c msg->msgcode == DIDMSG_LNXREQ_IFSTATE) || msg 128 drivers/staging/wlan-ng/p80211req.c (msg->msgcode != DIDMSG_DOT11REQ_MIBGET)) { msg 142 drivers/staging/wlan-ng/p80211req.c p80211req_handlemsg(wlandev, msg); msg 146 drivers/staging/wlan-ng/p80211req.c wlandev->mlmerequest(wlandev, msg); msg 172 drivers/staging/wlan-ng/p80211req.c struct p80211msg *msg) msg 174 drivers/staging/wlan-ng/p80211req.c switch (msg->msgcode) { msg 177 drivers/staging/wlan-ng/p80211req.c (struct p80211msg_lnxreq_hostwep *)msg; msg 189 drivers/staging/wlan-ng/p80211req.c int isget = (msg->msgcode == DIDMSG_DOT11REQ_MIBGET); msg 191 drivers/staging/wlan-ng/p80211req.c (struct p80211msg_dot11req_mibget *)msg; msg 780 drivers/staging/wlan-ng/prism2fw.c struct p80211msg_p2req_readpda *msg; msg 782 drivers/staging/wlan-ng/prism2fw.c msg = kzalloc(sizeof(*msg), GFP_KERNEL); msg 783 drivers/staging/wlan-ng/prism2fw.c if (!msg) msg 787 drivers/staging/wlan-ng/prism2fw.c msg->msgcode = DIDMSG_P2REQ_READPDA; msg 788 drivers/staging/wlan-ng/prism2fw.c msg->msglen = sizeof(msg); msg 789 drivers/staging/wlan-ng/prism2fw.c strcpy(msg->devname, wlandev->name); msg 790 drivers/staging/wlan-ng/prism2fw.c msg->pda.did = DIDMSG_P2REQ_READPDA_PDA; msg 791 drivers/staging/wlan-ng/prism2fw.c msg->pda.len = HFA384x_PDA_LEN_MAX; msg 792 drivers/staging/wlan-ng/prism2fw.c msg->pda.status = P80211ENUM_msgitem_status_no_value; msg 793 drivers/staging/wlan-ng/prism2fw.c msg->resultcode.did = DIDMSG_P2REQ_READPDA_RESULTCODE; msg 794 drivers/staging/wlan-ng/prism2fw.c msg->resultcode.len = sizeof(u32); msg 795 drivers/staging/wlan-ng/prism2fw.c msg->resultcode.status = P80211ENUM_msgitem_status_no_value; msg 797 drivers/staging/wlan-ng/prism2fw.c if (prism2mgmt_readpda(wlandev, msg) != 0) { msg 800 drivers/staging/wlan-ng/prism2fw.c } else if (msg->resultcode.data == P80211ENUM_resultcode_success) { msg 801 drivers/staging/wlan-ng/prism2fw.c memcpy(pda->buf, msg->pda.data, HFA384x_PDA_LEN_MAX); msg 808 drivers/staging/wlan-ng/prism2fw.c kfree(msg); msg 133 drivers/staging/wlan-ng/prism2mgmt.c struct p80211msg_dot11req_scan *msg = msgp; msg 148 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = P80211ENUM_resultcode_not_supported; msg 161 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 174 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 184 drivers/staging/wlan-ng/prism2mgmt.c if (msg->scantype.data != P80211ENUM_scantype_active) msg 185 drivers/staging/wlan-ng/prism2mgmt.c word = msg->maxchanneltime.data; msg 204 drivers/staging/wlan-ng/prism2mgmt.c for (i = 0; i < msg->channellist.data.len; i++) { msg 205 drivers/staging/wlan-ng/prism2mgmt.c u8 channel = msg->channellist.data.data[i]; msg 215 drivers/staging/wlan-ng/prism2mgmt.c scanreq.ssid.len = cpu_to_le16(msg->ssid.data.len); msg 216 drivers/staging/wlan-ng/prism2mgmt.c memcpy(scanreq.ssid.data, msg->ssid.data.data, msg->ssid.data.len); msg 223 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 237 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 251 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 261 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 272 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 283 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 292 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 300 drivers/staging/wlan-ng/prism2mgmt.c timeout = msg->channellist.data.len * msg->maxchanneltime.data; msg 313 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 321 drivers/staging/wlan-ng/prism2mgmt.c msg->numbss.status = P80211ENUM_msgitem_status_data_ok; msg 325 drivers/staging/wlan-ng/prism2mgmt.c msg->numbss.data = hw->scanflag; msg 336 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 348 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 354 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = P80211ENUM_resultcode_success; msg 357 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; msg 548 drivers/staging/wlan-ng/prism2mgmt.c struct p80211msg_dot11req_start *msg = msgp; msg 558 drivers/staging/wlan-ng/prism2mgmt.c memcpy(&wlandev->ssid, &msg->ssid.data, sizeof(msg->ssid.data)); msg 567 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; msg 568 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = P80211ENUM_resultcode_not_supported; msg 572 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; msg 577 drivers/staging/wlan-ng/prism2mgmt.c pstr = (struct p80211pstrd *)&msg->ssid.data; msg 598 drivers/staging/wlan-ng/prism2mgmt.c word = msg->beaconperiod.data; msg 607 drivers/staging/wlan-ng/prism2mgmt.c word = msg->dschannel.data; msg 615 drivers/staging/wlan-ng/prism2mgmt.c word = p80211rate_to_p2bit(msg->basicrate1.data); msg 616 drivers/staging/wlan-ng/prism2mgmt.c if (msg->basicrate2.status == P80211ENUM_msgitem_status_data_ok) msg 617 drivers/staging/wlan-ng/prism2mgmt.c word |= p80211rate_to_p2bit(msg->basicrate2.data); msg 619 drivers/staging/wlan-ng/prism2mgmt.c if (msg->basicrate3.status == P80211ENUM_msgitem_status_data_ok) msg 620 drivers/staging/wlan-ng/prism2mgmt.c word |= p80211rate_to_p2bit(msg->basicrate3.data); msg 622 drivers/staging/wlan-ng/prism2mgmt.c if (msg->basicrate4.status == P80211ENUM_msgitem_status_data_ok) msg 623 drivers/staging/wlan-ng/prism2mgmt.c word |= p80211rate_to_p2bit(msg->basicrate4.data); msg 625 drivers/staging/wlan-ng/prism2mgmt.c if (msg->basicrate5.status == P80211ENUM_msgitem_status_data_ok) msg 626 drivers/staging/wlan-ng/prism2mgmt.c word |= p80211rate_to_p2bit(msg->basicrate5.data); msg 628 drivers/staging/wlan-ng/prism2mgmt.c if (msg->basicrate6.status == P80211ENUM_msgitem_status_data_ok) msg 629 drivers/staging/wlan-ng/prism2mgmt.c word |= p80211rate_to_p2bit(msg->basicrate6.data); msg 631 drivers/staging/wlan-ng/prism2mgmt.c if (msg->basicrate7.status == P80211ENUM_msgitem_status_data_ok) msg 632 drivers/staging/wlan-ng/prism2mgmt.c word |= p80211rate_to_p2bit(msg->basicrate7.data); msg 634 drivers/staging/wlan-ng/prism2mgmt.c if (msg->basicrate8.status == P80211ENUM_msgitem_status_data_ok) msg 635 drivers/staging/wlan-ng/prism2mgmt.c word |= p80211rate_to_p2bit(msg->basicrate8.data); msg 645 drivers/staging/wlan-ng/prism2mgmt.c word = p80211rate_to_p2bit(msg->operationalrate1.data); msg 646 drivers/staging/wlan-ng/prism2mgmt.c if (msg->operationalrate2.status == P80211ENUM_msgitem_status_data_ok) msg 647 drivers/staging/wlan-ng/prism2mgmt.c word |= p80211rate_to_p2bit(msg->operationalrate2.data); msg 649 drivers/staging/wlan-ng/prism2mgmt.c if (msg->operationalrate3.status == P80211ENUM_msgitem_status_data_ok) msg 650 drivers/staging/wlan-ng/prism2mgmt.c word |= p80211rate_to_p2bit(msg->operationalrate3.data); msg 652 drivers/staging/wlan-ng/prism2mgmt.c if (msg->operationalrate4.status == P80211ENUM_msgitem_status_data_ok) msg 653 drivers/staging/wlan-ng/prism2mgmt.c word |= p80211rate_to_p2bit(msg->operationalrate4.data); msg 655 drivers/staging/wlan-ng/prism2mgmt.c if (msg->operationalrate5.status == P80211ENUM_msgitem_status_data_ok) msg 656 drivers/staging/wlan-ng/prism2mgmt.c word |= p80211rate_to_p2bit(msg->operationalrate5.data); msg 658 drivers/staging/wlan-ng/prism2mgmt.c if (msg->operationalrate6.status == P80211ENUM_msgitem_status_data_ok) msg 659 drivers/staging/wlan-ng/prism2mgmt.c word |= p80211rate_to_p2bit(msg->operationalrate6.data); msg 661 drivers/staging/wlan-ng/prism2mgmt.c if (msg->operationalrate7.status == P80211ENUM_msgitem_status_data_ok) msg 662 drivers/staging/wlan-ng/prism2mgmt.c word |= p80211rate_to_p2bit(msg->operationalrate7.data); msg 664 drivers/staging/wlan-ng/prism2mgmt.c if (msg->operationalrate8.status == P80211ENUM_msgitem_status_data_ok) msg 665 drivers/staging/wlan-ng/prism2mgmt.c word |= p80211rate_to_p2bit(msg->operationalrate8.data); msg 682 drivers/staging/wlan-ng/prism2mgmt.c if (msg->bsstype.data == P80211ENUM_bsstype_independent) { msg 696 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = P80211ENUM_resultcode_success; msg 702 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = P80211ENUM_resultcode_invalid_parameters; msg 730 drivers/staging/wlan-ng/prism2mgmt.c struct p80211msg_p2req_readpda *msg = msgp; msg 739 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 741 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; msg 747 drivers/staging/wlan-ng/prism2mgmt.c msg->pda.data, msg 754 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 756 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.status = msg 760 drivers/staging/wlan-ng/prism2mgmt.c msg->pda.status = P80211ENUM_msgitem_status_data_ok; msg 761 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = P80211ENUM_resultcode_success; msg 762 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; msg 797 drivers/staging/wlan-ng/prism2mgmt.c struct p80211msg_p2req_ramdl_state *msg = msgp; msg 802 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 804 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; msg 813 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; msg 814 drivers/staging/wlan-ng/prism2mgmt.c if (msg->enable.data == P80211ENUM_truth_true) { msg 815 drivers/staging/wlan-ng/prism2mgmt.c if (hfa384x_drvr_ramdl_enable(hw, msg->exeaddr.data)) { msg 816 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 819 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = P80211ENUM_resultcode_success; msg 823 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = P80211ENUM_resultcode_success; msg 853 drivers/staging/wlan-ng/prism2mgmt.c struct p80211msg_p2req_ramdl_write *msg = msgp; msg 861 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 863 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; msg 867 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; msg 869 drivers/staging/wlan-ng/prism2mgmt.c if (msg->len.data > sizeof(msg->data.data)) { msg 870 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.status = msg 875 drivers/staging/wlan-ng/prism2mgmt.c addr = msg->addr.data; msg 876 drivers/staging/wlan-ng/prism2mgmt.c len = msg->len.data; msg 877 drivers/staging/wlan-ng/prism2mgmt.c buf = msg->data.data; msg 879 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = P80211ENUM_resultcode_refused; msg 881 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = P80211ENUM_resultcode_success; msg 916 drivers/staging/wlan-ng/prism2mgmt.c struct p80211msg_p2req_flashdl_state *msg = msgp; msg 921 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 923 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; msg 932 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; msg 933 drivers/staging/wlan-ng/prism2mgmt.c if (msg->enable.data == P80211ENUM_truth_true) { msg 935 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 938 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = P80211ENUM_resultcode_success; msg 942 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = P80211ENUM_resultcode_success; msg 956 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 987 drivers/staging/wlan-ng/prism2mgmt.c struct p80211msg_p2req_flashdl_write *msg = msgp; msg 995 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 997 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; msg 1006 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; msg 1008 drivers/staging/wlan-ng/prism2mgmt.c if (msg->len.data > sizeof(msg->data.data)) { msg 1009 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.status = msg 1014 drivers/staging/wlan-ng/prism2mgmt.c addr = msg->addr.data; msg 1015 drivers/staging/wlan-ng/prism2mgmt.c len = msg->len.data; msg 1016 drivers/staging/wlan-ng/prism2mgmt.c buf = msg->data.data; msg 1018 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = P80211ENUM_resultcode_refused; msg 1020 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = P80211ENUM_resultcode_success; msg 1051 drivers/staging/wlan-ng/prism2mgmt.c struct p80211msg_lnxreq_autojoin *msg = msgp; msg 1059 drivers/staging/wlan-ng/prism2mgmt.c memcpy(&wlandev->ssid, &msg->ssid.data, sizeof(msg->ssid.data)); msg 1069 drivers/staging/wlan-ng/prism2mgmt.c if (msg->authtype.data == P80211ENUM_authalg_sharedkey) msg 1078 drivers/staging/wlan-ng/prism2mgmt.c pstr = (struct p80211pstrd *)&msg->ssid.data; msg 1091 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; msg 1092 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = P80211ENUM_resultcode_success; msg 1120 drivers/staging/wlan-ng/prism2mgmt.c struct p80211msg_lnxreq_wlansniff *msg = msgp; msg 1125 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; msg 1126 drivers/staging/wlan-ng/prism2mgmt.c switch (msg->enable.data) { msg 1130 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = msg 1193 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = P80211ENUM_resultcode_success; msg 1244 drivers/staging/wlan-ng/prism2mgmt.c word = msg->channel.data; msg 1271 drivers/staging/wlan-ng/prism2mgmt.c if ((msg->keepwepflags.status == msg 1273 drivers/staging/wlan-ng/prism2mgmt.c (msg->keepwepflags.data != P80211ENUM_truth_true)) { msg 1293 drivers/staging/wlan-ng/prism2mgmt.c if ((msg->stripfcs.status == msg 1295 drivers/staging/wlan-ng/prism2mgmt.c (msg->stripfcs.data == P80211ENUM_truth_true)) { msg 1302 drivers/staging/wlan-ng/prism2mgmt.c if (msg->packet_trunc.status == msg 1304 drivers/staging/wlan-ng/prism2mgmt.c hw->sniff_truncate = msg->packet_trunc.data; msg 1332 drivers/staging/wlan-ng/prism2mgmt.c if ((msg->prismheader.status == msg 1334 drivers/staging/wlan-ng/prism2mgmt.c (msg->prismheader.data == P80211ENUM_truth_true)) { msg 1337 drivers/staging/wlan-ng/prism2mgmt.c } else if ((msg->wlanheader.status == msg 1339 drivers/staging/wlan-ng/prism2mgmt.c (msg->wlanheader.data == P80211ENUM_truth_true)) { msg 1346 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = P80211ENUM_resultcode_success; msg 1349 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = P80211ENUM_resultcode_invalid_parameters; msg 1354 drivers/staging/wlan-ng/prism2mgmt.c msg->resultcode.data = P80211ENUM_resultcode_refused; msg 93 drivers/staging/wlan-ng/prism2mib.c struct p80211msg_dot11req_mibset *msg, void *data); msg 100 drivers/staging/wlan-ng/prism2mib.c struct p80211msg_dot11req_mibset *msg, msg 107 drivers/staging/wlan-ng/prism2mib.c struct p80211msg_dot11req_mibset *msg, void *data); msg 113 drivers/staging/wlan-ng/prism2mib.c struct p80211msg_dot11req_mibset *msg, void *data); msg 119 drivers/staging/wlan-ng/prism2mib.c struct p80211msg_dot11req_mibset *msg, msg 126 drivers/staging/wlan-ng/prism2mib.c struct p80211msg_dot11req_mibset *msg, msg 134 drivers/staging/wlan-ng/prism2mib.c struct p80211msg_dot11req_mibset *msg, msg 141 drivers/staging/wlan-ng/prism2mib.c struct p80211msg_dot11req_mibset *msg, void *data); msg 262 drivers/staging/wlan-ng/prism2mib.c struct p80211msg_dot11req_mibset *msg = msgp; msg 265 drivers/staging/wlan-ng/prism2mib.c msg->resultcode.status = P80211ENUM_msgitem_status_data_ok; msg 266 drivers/staging/wlan-ng/prism2mib.c msg->resultcode.data = P80211ENUM_resultcode_success; msg 281 drivers/staging/wlan-ng/prism2mib.c mibitem = (struct p80211itemd *)msg->mibattribute.data; msg 288 drivers/staging/wlan-ng/prism2mib.c msg->resultcode.data = P80211ENUM_resultcode_not_supported; msg 298 drivers/staging/wlan-ng/prism2mib.c isget = (msg->msgcode == DIDMSG_DOT11REQ_MIBGET); msg 302 drivers/staging/wlan-ng/prism2mib.c msg->resultcode.data = msg 308 drivers/staging/wlan-ng/prism2mib.c msg->resultcode.data = msg 322 drivers/staging/wlan-ng/prism2mib.c result = mib->func(mib, isget, wlandev, hw, msg, (void *)mibitem->data); msg 324 drivers/staging/wlan-ng/prism2mib.c if (msg->resultcode.data == P80211ENUM_resultcode_success) { msg 327 drivers/staging/wlan-ng/prism2mib.c msg->resultcode.data = msg 331 drivers/staging/wlan-ng/prism2mib.c msg->mibattribute.status = msg 372 drivers/staging/wlan-ng/prism2mib.c struct p80211msg_dot11req_mibset *msg, msg 422 drivers/staging/wlan-ng/prism2mib.c struct p80211msg_dot11req_mibset *msg, void *data) msg 469 drivers/staging/wlan-ng/prism2mib.c struct p80211msg_dot11req_mibset *msg, void *data) msg 526 drivers/staging/wlan-ng/prism2mib.c struct p80211msg_dot11req_mibset *msg, msg 576 drivers/staging/wlan-ng/prism2mib.c struct p80211msg_dot11req_mibset *msg, msg 586 drivers/staging/wlan-ng/prism2mib.c return prism2mib_flag(mib, isget, wlandev, hw, msg, data); msg 619 drivers/staging/wlan-ng/prism2mib.c struct p80211msg_dot11req_mibset *msg, msg 628 drivers/staging/wlan-ng/prism2mib.c msg->resultcode.data = msg 633 drivers/staging/wlan-ng/prism2mib.c return prism2mib_uint32(mib, isget, wlandev, hw, msg, data); msg 665 drivers/staging/wlan-ng/prism2mib.c struct p80211msg_dot11req_mibset *msg, void *data) msg 109 drivers/staging/wlan-ng/prism2sta.c struct p80211msg *msg); msg 284 drivers/staging/wlan-ng/prism2sta.c struct p80211msg *msg) msg 290 drivers/staging/wlan-ng/prism2sta.c switch (msg->msgcode) { msg 293 drivers/staging/wlan-ng/prism2sta.c result = prism2mgmt_mibset_mibget(wlandev, msg); msg 297 drivers/staging/wlan-ng/prism2sta.c result = prism2mgmt_mibset_mibget(wlandev, msg); msg 301 drivers/staging/wlan-ng/prism2sta.c result = prism2mgmt_scan(wlandev, msg); msg 305 drivers/staging/wlan-ng/prism2sta.c result = prism2mgmt_scan_results(wlandev, msg); msg 309 drivers/staging/wlan-ng/prism2sta.c result = prism2mgmt_start(wlandev, msg); msg 316 drivers/staging/wlan-ng/prism2sta.c result = prism2mgmt_readpda(wlandev, msg); msg 320 drivers/staging/wlan-ng/prism2sta.c result = prism2mgmt_ramdl_state(wlandev, msg); msg 324 drivers/staging/wlan-ng/prism2sta.c result = prism2mgmt_ramdl_write(wlandev, msg); msg 328 drivers/staging/wlan-ng/prism2sta.c result = prism2mgmt_flashdl_state(wlandev, msg); msg 332 drivers/staging/wlan-ng/prism2sta.c result = prism2mgmt_flashdl_write(wlandev, msg); msg 343 drivers/staging/wlan-ng/prism2sta.c ifstatemsg = (struct p80211msg_lnxreq_ifstate *)msg; msg 354 drivers/staging/wlan-ng/prism2sta.c result = prism2mgmt_wlansniff(wlandev, msg); msg 358 drivers/staging/wlan-ng/prism2sta.c result = prism2mgmt_autojoin(wlandev, msg); msg 365 drivers/staging/wlan-ng/prism2sta.c qualmsg = (struct p80211msg_lnxreq_commsquality *)msg; msg 381 drivers/staging/wlan-ng/prism2sta.c msg->msgcode); msg 1915 drivers/staging/wlan-ng/prism2sta.c struct p80211msg_dot11req_mibget msg; msg 1917 drivers/staging/wlan-ng/prism2sta.c &msg.mibattribute.data; msg 1946 drivers/staging/wlan-ng/prism2sta.c msg.msgcode = DIDMSG_DOT11REQ_MIBGET; msg 1948 drivers/staging/wlan-ng/prism2sta.c result = p80211req_dorequest(wlandev, (u8 *)&msg); msg 1236 drivers/target/iscsi/iscsi_target_util.c struct msghdr msg; msg 1241 drivers/target/iscsi/iscsi_target_util.c memset(&msg, 0, sizeof(struct msghdr)); msg 1242 drivers/target/iscsi/iscsi_target_util.c iov_iter_kvec(&msg.msg_iter, READ, count->iov, count->iov_count, data); msg 1244 drivers/target/iscsi/iscsi_target_util.c while (msg_data_left(&msg)) { msg 1245 drivers/target/iscsi/iscsi_target_util.c rx_loop = sock_recvmsg(conn->sock, &msg, MSG_WAITALL); msg 1285 drivers/target/iscsi/iscsi_target_util.c struct msghdr msg; msg 1296 drivers/target/iscsi/iscsi_target_util.c memset(&msg, 0, sizeof(struct msghdr)); msg 1298 drivers/target/iscsi/iscsi_target_util.c iov_iter_kvec(&msg.msg_iter, WRITE, iov, iov_count, data); msg 1300 drivers/target/iscsi/iscsi_target_util.c while (msg_data_left(&msg)) { msg 1301 drivers/target/iscsi/iscsi_target_util.c int tx_loop = sock_sendmsg(conn->sock, &msg); msg 38 drivers/thermal/tegra/tegra-bpmp-thermal.c struct tegra_bpmp_message msg; msg 45 drivers/thermal/tegra/tegra-bpmp-thermal.c memset(&msg, 0, sizeof(msg)); msg 46 drivers/thermal/tegra/tegra-bpmp-thermal.c msg.mrq = MRQ_THERMAL; msg 47 drivers/thermal/tegra/tegra-bpmp-thermal.c msg.tx.data = &req; msg 48 drivers/thermal/tegra/tegra-bpmp-thermal.c msg.tx.size = sizeof(req); msg 49 drivers/thermal/tegra/tegra-bpmp-thermal.c msg.rx.data = &reply; msg 50 drivers/thermal/tegra/tegra-bpmp-thermal.c msg.rx.size = sizeof(reply); msg 52 drivers/thermal/tegra/tegra-bpmp-thermal.c err = tegra_bpmp_transfer(zone->tegra->bpmp, &msg); msg 65 drivers/thermal/tegra/tegra-bpmp-thermal.c struct tegra_bpmp_message msg; msg 74 drivers/thermal/tegra/tegra-bpmp-thermal.c memset(&msg, 0, sizeof(msg)); msg 75 drivers/thermal/tegra/tegra-bpmp-thermal.c msg.mrq = MRQ_THERMAL; msg 76 drivers/thermal/tegra/tegra-bpmp-thermal.c msg.tx.data = &req; msg 77 drivers/thermal/tegra/tegra-bpmp-thermal.c msg.tx.size = sizeof(req); msg 79 drivers/thermal/tegra/tegra-bpmp-thermal.c return tegra_bpmp_transfer(zone->tegra->bpmp, &msg); msg 127 drivers/thermal/tegra/tegra-bpmp-thermal.c struct tegra_bpmp_message msg; msg 133 drivers/thermal/tegra/tegra-bpmp-thermal.c memset(&msg, 0, sizeof(msg)); msg 134 drivers/thermal/tegra/tegra-bpmp-thermal.c msg.mrq = MRQ_THERMAL; msg 135 drivers/thermal/tegra/tegra-bpmp-thermal.c msg.tx.data = &req; msg 136 drivers/thermal/tegra/tegra-bpmp-thermal.c msg.tx.size = sizeof(req); msg 137 drivers/thermal/tegra/tegra-bpmp-thermal.c msg.rx.data = &reply; msg 138 drivers/thermal/tegra/tegra-bpmp-thermal.c msg.rx.size = sizeof(reply); msg 140 drivers/thermal/tegra/tegra-bpmp-thermal.c err = tegra_bpmp_transfer(bpmp, &msg); msg 86 drivers/tty/hvc/hvc_iucv.c struct iucv_message msg; /* store an IUCV message */ msg 162 drivers/tty/hvc/hvc_iucv.c bufp->msg.length = MSG_SIZE(size); msg 163 drivers/tty/hvc/hvc_iucv.c bufp->mbuf = kmalloc(bufp->msg.length, flags | GFP_DMA); msg 246 drivers/tty/hvc/hvc_iucv.c rb->mbuf = kmalloc(rb->msg.length, GFP_ATOMIC | GFP_DMA); msg 250 drivers/tty/hvc/hvc_iucv.c rc = __iucv_message_receive(priv->path, &rb->msg, 0, msg 251 drivers/tty/hvc/hvc_iucv.c rb->mbuf, rb->msg.length, NULL); msg 264 drivers/tty/hvc/hvc_iucv.c (rb->msg.length != MSG_SIZE(rb->mbuf->datalen))) msg 411 drivers/tty/hvc/hvc_iucv.c sb->msg.length = MSG_SIZE(sb->mbuf->datalen); msg 415 drivers/tty/hvc/hvc_iucv.c rc = __iucv_message_send(priv->path, &sb->msg, 0, 0, msg 416 drivers/tty/hvc/hvc_iucv.c (void *) sb->mbuf, sb->msg.length); msg 904 drivers/tty/hvc/hvc_iucv.c struct iucv_message *msg) msg 910 drivers/tty/hvc/hvc_iucv.c if (msg->length > MSG_SIZE(MSG_MAX_DATALEN)) { msg 911 drivers/tty/hvc/hvc_iucv.c iucv_message_reject(path, msg); msg 919 drivers/tty/hvc/hvc_iucv.c iucv_message_reject(path, msg); msg 926 drivers/tty/hvc/hvc_iucv.c iucv_message_reject(path, msg); msg 929 drivers/tty/hvc/hvc_iucv.c rb->msg = *msg; msg 952 drivers/tty/hvc/hvc_iucv.c struct iucv_message *msg) msg 960 drivers/tty/hvc/hvc_iucv.c if (ent->msg.id == msg->id) { msg 670 drivers/tty/n_gsm.c struct gsm_msg *msg, *nmsg; msg 674 drivers/tty/n_gsm.c list_for_each_entry_safe(msg, nmsg, &gsm->tx_list, list) { msg 675 drivers/tty/n_gsm.c if (gsm->constipated && msg->addr) msg 679 drivers/tty/n_gsm.c len = gsm_stuff_frame(msg->data, msg 680 drivers/tty/n_gsm.c gsm->txframe + 1, msg->len); msg 685 drivers/tty/n_gsm.c memcpy(gsm->txframe + 1 , msg->data, msg->len); msg 686 drivers/tty/n_gsm.c gsm->txframe[msg->len + 1] = GSM0_SOF; msg 687 drivers/tty/n_gsm.c len = msg->len + 2; msg 699 drivers/tty/n_gsm.c gsm->tx_bytes -= msg->len; msg 704 drivers/tty/n_gsm.c list_del(&msg->list); msg 705 drivers/tty/n_gsm.c kfree(msg); msg 719 drivers/tty/n_gsm.c static void __gsm_data_queue(struct gsm_dlci *dlci, struct gsm_msg *msg) msg 722 drivers/tty/n_gsm.c u8 *dp = msg->data; msg 723 drivers/tty/n_gsm.c u8 *fcs = dp + msg->len; msg 727 drivers/tty/n_gsm.c if (msg->len < 128) msg 728 drivers/tty/n_gsm.c *--dp = (msg->len << 1) | EA; msg 730 drivers/tty/n_gsm.c *--dp = (msg->len >> 7); /* bits 7 - 15 */ msg 731 drivers/tty/n_gsm.c *--dp = (msg->len & 127) << 1; /* bits 0 - 6 */ msg 735 drivers/tty/n_gsm.c *--dp = msg->ctrl; msg 737 drivers/tty/n_gsm.c *--dp = (msg->addr << 2) | 2 | EA; msg 739 drivers/tty/n_gsm.c *--dp = (msg->addr << 2) | EA; msg 740 drivers/tty/n_gsm.c *fcs = gsm_fcs_add_block(INIT_FCS, dp , msg->data - dp); msg 742 drivers/tty/n_gsm.c if (msg->ctrl == UI || msg->ctrl == (UI|PF)) msg 743 drivers/tty/n_gsm.c *fcs = gsm_fcs_add_block(*fcs, msg->data, msg->len); msg 746 drivers/tty/n_gsm.c gsm_print_packet("Q> ", msg->addr, gsm->initiator, msg->ctrl, msg 747 drivers/tty/n_gsm.c msg->data, msg->len); msg 751 drivers/tty/n_gsm.c msg->len += (msg->data - dp) + 1; msg 752 drivers/tty/n_gsm.c msg->data = dp; msg 755 drivers/tty/n_gsm.c list_add_tail(&msg->list, &gsm->tx_list); msg 756 drivers/tty/n_gsm.c gsm->tx_bytes += msg->len; msg 770 drivers/tty/n_gsm.c static void gsm_data_queue(struct gsm_dlci *dlci, struct gsm_msg *msg) msg 774 drivers/tty/n_gsm.c __gsm_data_queue(dlci, msg); msg 792 drivers/tty/n_gsm.c struct gsm_msg *msg; msg 809 drivers/tty/n_gsm.c msg = gsm_data_alloc(gsm, dlci->addr, size, gsm->ftype); msg 812 drivers/tty/n_gsm.c if (msg == NULL) msg 814 drivers/tty/n_gsm.c dp = msg->data; msg 824 drivers/tty/n_gsm.c __gsm_data_queue(dlci, msg); msg 846 drivers/tty/n_gsm.c struct gsm_msg *msg; msg 878 drivers/tty/n_gsm.c msg = gsm_data_alloc(gsm, dlci->addr, size, gsm->ftype); msg 882 drivers/tty/n_gsm.c if (msg == NULL) { msg 887 drivers/tty/n_gsm.c dp = msg->data; msg 896 drivers/tty/n_gsm.c __gsm_data_queue(dlci, msg); msg 994 drivers/tty/n_gsm.c struct gsm_msg *msg; msg 995 drivers/tty/n_gsm.c msg = gsm_data_alloc(gsm, 0, dlen + 2, gsm->ftype); msg 996 drivers/tty/n_gsm.c if (msg == NULL) msg 998 drivers/tty/n_gsm.c msg->data[0] = (cmd & 0xFE) << 1 | EA; /* Clear C/R */ msg 999 drivers/tty/n_gsm.c msg->data[1] = (dlen << 1) | EA; msg 1000 drivers/tty/n_gsm.c memcpy(msg->data + 2, data, dlen); msg 1001 drivers/tty/n_gsm.c gsm_data_queue(gsm->dlci[0], msg); msg 1297 drivers/tty/n_gsm.c struct gsm_msg *msg = gsm_data_alloc(gsm, 0, ctrl->len + 1, gsm->ftype); msg 1298 drivers/tty/n_gsm.c if (msg == NULL) msg 1300 drivers/tty/n_gsm.c msg->data[0] = (ctrl->cmd << 1) | 2 | EA; /* command */ msg 1301 drivers/tty/n_gsm.c memcpy(msg->data + 1, ctrl->data, ctrl->len); msg 1302 drivers/tty/n_gsm.c gsm_data_queue(gsm->dlci[0], msg); msg 55 drivers/tty/serial/tegra-tcu.c void *msg; msg 58 drivers/tty/serial/tegra-tcu.c msg = (void *)(unsigned long)value; msg 59 drivers/tty/serial/tegra-tcu.c mbox_send_message(tcu->tx, msg); msg 161 drivers/tty/serial/tegra-tcu.c static void tegra_tcu_receive(struct mbox_client *cl, void *msg) msg 165 drivers/tty/serial/tegra-tcu.c u32 value = (u32)(unsigned long)msg; msg 995 drivers/tty/tty_io.c void tty_write_message(struct tty_struct *tty, char *msg) msg 1001 drivers/tty/tty_io.c tty->ops->write(tty, msg, strlen(msg)); msg 76 drivers/usb/c67x00/c67x00-drv.c u16 msg, int_status; msg 87 drivers/usb/c67x00/c67x00-drv.c msg = 0; msg 89 drivers/usb/c67x00/c67x00-drv.c msg = c67x00_ll_fetch_siemsg(c67x00, i); msg 91 drivers/usb/c67x00/c67x00-drv.c sie->irq(sie, int_status, msg); msg 236 drivers/usb/c67x00/c67x00-hcd.c static void c67x00_hcd_irq(struct c67x00_sie *sie, u16 int_status, u16 msg) msg 242 drivers/usb/c67x00/c67x00-hcd.c if (msg) { msg 243 drivers/usb/c67x00/c67x00-hcd.c if (msg & HUSB_TDListDone) msg 247 drivers/usb/c67x00/c67x00-hcd.c "Unknown SIE msg flag(s): 0x%04x\n", msg); msg 112 drivers/usb/c67x00/c67x00-hcd.h void c67x00_hcd_msg_received(struct c67x00_sie *sie, u16 msg); msg 136 drivers/usb/c67x00/c67x00-sched.c static void dbg_td(struct c67x00_hcd *c67x00, struct c67x00_td *td, char *msg) msg 140 drivers/usb/c67x00/c67x00-sched.c dev_dbg(dev, "### %s at 0x%04x\n", msg, td->td_addr); msg 196 drivers/usb/c67x00/c67x00.h void (*irq) (struct c67x00_sie *sie, u16 int_status, u16 msg); msg 45 drivers/usb/cdns3/trace.h TP_PROTO(struct cdns3_endpoint *ep_priv, char *msg), msg 46 drivers/usb/cdns3/trace.h TP_ARGS(ep_priv, msg), msg 49 drivers/usb/cdns3/trace.h __string(msg, msg) msg 53 drivers/usb/cdns3/trace.h __assign_str(msg, msg); msg 55 drivers/usb/cdns3/trace.h TP_printk("WA1: %s %s", __get_str(ep_name), __get_str(msg)) msg 59 drivers/usb/cdns3/trace.h TP_PROTO(struct cdns3_endpoint *ep_priv, char *msg), msg 60 drivers/usb/cdns3/trace.h TP_ARGS(ep_priv, msg), msg 63 drivers/usb/cdns3/trace.h __string(msg, msg) msg 67 drivers/usb/cdns3/trace.h __assign_str(msg, msg); msg 69 drivers/usb/cdns3/trace.h TP_printk("WA2: %s %s", __get_str(ep_name), __get_str(msg)) msg 1021 drivers/usb/class/usbtmc.c struct usbtmc_message msg; msg 1026 drivers/usb/class/usbtmc.c if (copy_from_user(&msg, arg, sizeof(struct usbtmc_message))) msg 1029 drivers/usb/class/usbtmc.c retval = usbtmc_generic_read(file_data, msg.message, msg 1030 drivers/usb/class/usbtmc.c msg.transfer_size, &msg.transferred, msg 1031 drivers/usb/class/usbtmc.c msg.flags); msg 1033 drivers/usb/class/usbtmc.c if (put_user(msg.transferred, msg 1232 drivers/usb/class/usbtmc.c struct usbtmc_message msg; msg 1237 drivers/usb/class/usbtmc.c if (copy_from_user(&msg, arg, sizeof(struct usbtmc_message))) msg 1240 drivers/usb/class/usbtmc.c retval = usbtmc_generic_write(file_data, msg.message, msg 1241 drivers/usb/class/usbtmc.c msg.transfer_size, &msg.transferred, msg 1242 drivers/usb/class/usbtmc.c msg.flags); msg 1244 drivers/usb/class/usbtmc.c if (put_user(msg.transferred, msg 719 drivers/usb/core/devio.c static int driver_suspend(struct usb_interface *intf, pm_message_t msg) msg 1136 drivers/usb/core/driver.c static int usb_suspend_device(struct usb_device *udev, pm_message_t msg) msg 1152 drivers/usb/core/driver.c status = udriver->suspend(udev, msg); msg 1159 drivers/usb/core/driver.c static int usb_resume_device(struct usb_device *udev, pm_message_t msg) msg 1176 drivers/usb/core/driver.c if (!PMSG_IS_AUTO(msg) && udev->parent && udev->bus->hs_companion) msg 1184 drivers/usb/core/driver.c status = udriver->resume(udev, msg); msg 1192 drivers/usb/core/driver.c struct usb_interface *intf, pm_message_t msg) msg 1203 drivers/usb/core/driver.c status = driver->suspend(intf, msg); msg 1204 drivers/usb/core/driver.c if (status && !PMSG_IS_AUTO(msg)) msg 1213 drivers/usb/core/driver.c struct usb_interface *intf, pm_message_t msg, int reset_resume) msg 1293 drivers/usb/core/driver.c static int usb_suspend_both(struct usb_device *udev, pm_message_t msg) msg 1308 drivers/usb/core/driver.c status = usb_suspend_interface(udev, intf, msg); msg 1311 drivers/usb/core/driver.c if (!PMSG_IS_AUTO(msg)) msg 1318 drivers/usb/core/driver.c status = usb_suspend_device(udev, msg); msg 1326 drivers/usb/core/driver.c if (udev->parent && !PMSG_IS_AUTO(msg)) msg 1351 drivers/usb/core/driver.c msg.event ^= (PM_EVENT_SUSPEND | PM_EVENT_RESUME); msg 1354 drivers/usb/core/driver.c usb_resume_interface(udev, intf, msg, 0); msg 1394 drivers/usb/core/driver.c static int usb_resume_both(struct usb_device *udev, pm_message_t msg) msg 1408 drivers/usb/core/driver.c status = usb_resume_device(udev, msg); msg 1414 drivers/usb/core/driver.c usb_resume_interface(udev, intf, msg, msg 1427 drivers/usb/core/driver.c static void choose_wakeup(struct usb_device *udev, pm_message_t msg) msg 1435 drivers/usb/core/driver.c if (msg.event == PM_EVENT_FREEZE || msg.event == PM_EVENT_QUIESCE) { msg 1455 drivers/usb/core/driver.c int usb_suspend(struct device *dev, pm_message_t msg) msg 1466 drivers/usb/core/driver.c choose_wakeup(udev, msg); msg 1467 drivers/usb/core/driver.c r = usb_suspend_both(udev, msg); msg 1491 drivers/usb/core/driver.c int usb_resume(struct device *dev, pm_message_t msg) msg 1503 drivers/usb/core/driver.c status = usb_resume_both(udev, msg); msg 237 drivers/usb/core/generic.c static int generic_suspend(struct usb_device *udev, pm_message_t msg) msg 247 drivers/usb/core/generic.c rc = hcd_bus_suspend(udev, msg); msg 254 drivers/usb/core/generic.c else if ((msg.event == PM_EVENT_FREEZE || msg.event == PM_EVENT_PRETHAW) msg 258 drivers/usb/core/generic.c rc = usb_port_suspend(udev, msg); msg 265 drivers/usb/core/generic.c static int generic_resume(struct usb_device *udev, pm_message_t msg) msg 275 drivers/usb/core/generic.c rc = hcd_bus_resume(udev, msg); msg 277 drivers/usb/core/generic.c rc = usb_port_resume(udev, msg); msg 2110 drivers/usb/core/hcd.c int hcd_bus_suspend(struct usb_device *rhdev, pm_message_t msg) msg 2117 drivers/usb/core/hcd.c (PMSG_IS_AUTO(msg) ? "auto-" : ""), msg 2135 drivers/usb/core/hcd.c if (!PMSG_IS_AUTO(msg)) msg 2163 drivers/usb/core/hcd.c int hcd_bus_resume(struct usb_device *rhdev, pm_message_t msg) msg 2170 drivers/usb/core/hcd.c (PMSG_IS_AUTO(msg) ? "auto-" : "")); msg 2176 drivers/usb/core/hcd.c if (!PMSG_IS_AUTO(msg)) { msg 3260 drivers/usb/core/hub.c int usb_port_suspend(struct usb_device *udev, pm_message_t msg) msg 3282 drivers/usb/core/hub.c if (PMSG_IS_AUTO(msg)) msg 3293 drivers/usb/core/hub.c if (PMSG_IS_AUTO(msg)) msg 3312 drivers/usb/core/hub.c else if (PMSG_IS_AUTO(msg) || usb_wakeup_enabled_descendants(udev) > 0) msg 3333 drivers/usb/core/hub.c if (!PMSG_IS_AUTO(msg)) msg 3337 drivers/usb/core/hub.c (PMSG_IS_AUTO(msg) ? "auto-" : ""), msg 3531 drivers/usb/core/hub.c int usb_port_resume(struct usb_device *udev, pm_message_t msg) msg 3569 drivers/usb/core/hub.c (PMSG_IS_AUTO(msg) ? "auto-" : "")); msg 3696 drivers/usb/core/hub.c static int hub_suspend(struct usb_interface *intf, pm_message_t msg) msg 3714 drivers/usb/core/hub.c if (PMSG_IS_AUTO(msg)) msg 3725 drivers/usb/core/hub.c if (PMSG_IS_AUTO(msg)) msg 85 drivers/usb/core/usb.h extern int usb_suspend(struct device *dev, pm_message_t msg); msg 86 drivers/usb/core/usb.h extern int usb_resume(struct device *dev, pm_message_t msg); msg 89 drivers/usb/core/usb.h extern int usb_port_suspend(struct usb_device *dev, pm_message_t msg); msg 90 drivers/usb/core/usb.h extern int usb_port_resume(struct usb_device *dev, pm_message_t msg); msg 106 drivers/usb/core/usb.h static inline int usb_port_suspend(struct usb_device *udev, pm_message_t msg) msg 111 drivers/usb/core/usb.h static inline int usb_port_resume(struct usb_device *udev, pm_message_t msg) msg 1601 drivers/usb/dwc3/core.c static int dwc3_suspend_common(struct dwc3 *dwc, pm_message_t msg) msg 1615 drivers/usb/dwc3/core.c if (!PMSG_IS_AUTO(msg)) { msg 1637 drivers/usb/dwc3/core.c if (PMSG_IS_AUTO(msg)) msg 1658 drivers/usb/dwc3/core.c static int dwc3_resume_common(struct dwc3 *dwc, pm_message_t msg) msg 1676 drivers/usb/dwc3/core.c if (!PMSG_IS_AUTO(msg)) { msg 1698 drivers/usb/dwc3/core.c if (PMSG_IS_AUTO(msg)) msg 49 drivers/usb/gadget/function/uvc.h #define uvc_trace(flag, msg...) \ msg 52 drivers/usb/gadget/function/uvc.h printk(KERN_DEBUG "uvcvideo: " msg); \ msg 520 drivers/usb/host/isp116x.h static void urb_dbg(struct urb *urb, char *msg) msg 525 drivers/usb/host/isp116x.h DBG("%s: zero urb\n", msg); msg 529 drivers/usb/host/isp116x.h DBG("%s: FA %d ep%d%s %s: len %d/%d %s\n", msg, msg 537 drivers/usb/host/isp116x.h #define urb_dbg(urb,msg) do{}while(0) msg 358 drivers/usb/host/max3421-hcd.c struct spi_message msg; msg 362 drivers/usb/host/max3421-hcd.c spi_message_init(&msg); msg 372 drivers/usb/host/max3421-hcd.c spi_message_add_tail(&transfer, &msg); msg 373 drivers/usb/host/max3421-hcd.c spi_sync(spi, &msg); msg 384 drivers/usb/host/max3421-hcd.c struct spi_message msg; msg 388 drivers/usb/host/max3421-hcd.c spi_message_init(&msg); msg 398 drivers/usb/host/max3421-hcd.c spi_message_add_tail(&transfer, &msg); msg 399 drivers/usb/host/max3421-hcd.c spi_sync(spi, &msg); msg 408 drivers/usb/host/max3421-hcd.c struct spi_message msg; msg 412 drivers/usb/host/max3421-hcd.c spi_message_init(&msg); msg 423 drivers/usb/host/max3421-hcd.c spi_message_add_tail(&transfer[0], &msg); msg 424 drivers/usb/host/max3421-hcd.c spi_message_add_tail(&transfer[1], &msg); msg 425 drivers/usb/host/max3421-hcd.c spi_sync(spi, &msg); msg 434 drivers/usb/host/max3421-hcd.c struct spi_message msg; msg 438 drivers/usb/host/max3421-hcd.c spi_message_init(&msg); msg 450 drivers/usb/host/max3421-hcd.c spi_message_add_tail(&transfer[0], &msg); msg 451 drivers/usb/host/max3421-hcd.c spi_message_add_tail(&transfer[1], &msg); msg 452 drivers/usb/host/max3421-hcd.c spi_sync(spi, &msg); msg 210 drivers/usb/host/ohci-sm501.c static int ohci_sm501_suspend(struct platform_device *pdev, pm_message_t msg) msg 362 drivers/usb/host/xhci-tegra.c static inline u32 tegra_xusb_mbox_pack(const struct tegra_xusb_mbox_msg *msg) msg 364 drivers/usb/host/xhci-tegra.c return (msg->cmd & CMD_TYPE_MASK) << CMD_TYPE_SHIFT | msg 365 drivers/usb/host/xhci-tegra.c (msg->data & CMD_DATA_MASK) << CMD_DATA_SHIFT; msg 367 drivers/usb/host/xhci-tegra.c static inline void tegra_xusb_mbox_unpack(struct tegra_xusb_mbox_msg *msg, msg 370 drivers/usb/host/xhci-tegra.c msg->cmd = (value >> CMD_TYPE_SHIFT) & CMD_TYPE_MASK; msg 371 drivers/usb/host/xhci-tegra.c msg->data = (value >> CMD_DATA_SHIFT) & CMD_DATA_MASK; msg 388 drivers/usb/host/xhci-tegra.c const struct tegra_xusb_mbox_msg *msg) msg 397 drivers/usb/host/xhci-tegra.c if (!(msg->cmd == MBOX_CMD_ACK || msg->cmd == MBOX_CMD_NAK)) { msg 415 drivers/usb/host/xhci-tegra.c value = tegra_xusb_mbox_pack(msg); msg 459 drivers/usb/host/xhci-tegra.c const struct tegra_xusb_mbox_msg *msg) msg 472 drivers/usb/host/xhci-tegra.c switch (msg->cmd) { msg 476 drivers/usb/host/xhci-tegra.c if (rsp.data != msg->data) msg 486 drivers/usb/host/xhci-tegra.c err = tegra_xusb_set_ss_clk(tegra, msg->data * 1000); msg 495 drivers/usb/host/xhci-tegra.c rsp.data = msg->data; msg 509 drivers/usb/host/xhci-tegra.c err = tegra_xusb_padctl_usb3_save_context(padctl, msg->data); msg 512 drivers/usb/host/xhci-tegra.c msg->data, err); msg 518 drivers/usb/host/xhci-tegra.c rsp.data = msg->data; msg 523 drivers/usb/host/xhci-tegra.c if (msg->cmd == MBOX_CMD_STOP_HSIC_IDLE) msg 528 drivers/usb/host/xhci-tegra.c mask = extract_field(msg->data, 1 + soc->ports.hsic.offset, msg 546 drivers/usb/host/xhci-tegra.c rsp.data = msg->data; msg 551 drivers/usb/host/xhci-tegra.c if (msg->cmd == MBOX_CMD_DISABLE_SS_LFPS_DETECTION) msg 556 drivers/usb/host/xhci-tegra.c mask = extract_field(msg->data, 1 + soc->ports.usb3.offset, msg 576 drivers/usb/host/xhci-tegra.c rsp.data = msg->data; msg 580 drivers/usb/host/xhci-tegra.c dev_warn(dev, "unknown message: %#x\n", msg->cmd); msg 596 drivers/usb/host/xhci-tegra.c struct tegra_xusb_mbox_msg msg; msg 602 drivers/usb/host/xhci-tegra.c tegra_xusb_mbox_unpack(&msg, value); msg 609 drivers/usb/host/xhci-tegra.c if (!tegra_xusb_mbox_cmd_requires_ack(msg.cmd)) msg 612 drivers/usb/host/xhci-tegra.c tegra_xusb_mbox_handle(tegra, &msg); msg 963 drivers/usb/host/xhci-tegra.c struct tegra_xusb_mbox_msg msg; msg 1243 drivers/usb/host/xhci-tegra.c msg.cmd = MBOX_CMD_MSG_ENABLED; msg 1244 drivers/usb/host/xhci-tegra.c msg.data = 0; msg 1246 drivers/usb/host/xhci-tegra.c err = tegra_xusb_mbox_send(tegra, &msg); msg 33 drivers/usb/host/xhci-trace.h TP_STRUCT__entry(__dynamic_array(char, msg, XHCI_MSG_MAX)), msg 35 drivers/usb/host/xhci-trace.h vsnprintf(__get_str(msg), XHCI_MSG_MAX, vaf->fmt, *vaf->va); msg 37 drivers/usb/host/xhci-trace.h TP_printk("%s", __get_str(msg)) msg 28 drivers/usb/mtu3/mtu3_trace.h __dynamic_array(char, msg, MTU3_MSG_MAX) msg 32 drivers/usb/mtu3/mtu3_trace.h vsnprintf(__get_str(msg), MTU3_MSG_MAX, vaf->fmt, *vaf->va); msg 34 drivers/usb/mtu3/mtu3_trace.h TP_printk("%s: %s", __get_str(name), __get_str(msg)) msg 31 drivers/usb/musb/musb_trace.h __dynamic_array(char, msg, MUSB_MSG_MAX) msg 35 drivers/usb/musb/musb_trace.h vsnprintf(__get_str(msg), MUSB_MSG_MAX, vaf->fmt, *vaf->va); msg 37 drivers/usb/musb/musb_trace.h TP_printk("%s: %s", __get_str(name), __get_str(msg)) msg 414 drivers/usb/renesas_usbhs/mod_gadget.c char *msg; msg 425 drivers/usb/renesas_usbhs/mod_gadget.c msg = "DEVICE"; msg 429 drivers/usb/renesas_usbhs/mod_gadget.c msg = "INTERFACE"; msg 433 drivers/usb/renesas_usbhs/mod_gadget.c msg = "ENDPOINT"; msg 443 drivers/usb/renesas_usbhs/mod_gadget.c dev_dbg(dev, "%s (pipe %d :%s)\n", handler->name, nth, msg); msg 877 drivers/usb/serial/keyspan.c struct keyspan_usa26_portStatusMessage *msg; msg 896 drivers/usb/serial/keyspan.c msg = (struct keyspan_usa26_portStatusMessage *)data; msg 899 drivers/usb/serial/keyspan.c if (msg->port >= serial->num_ports) { msg 900 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - Unexpected port number %d\n", __func__, msg->port); msg 903 drivers/usb/serial/keyspan.c port = serial->port[msg->port]; msg 910 drivers/usb/serial/keyspan.c p_priv->cts_state = ((msg->hskia_cts) ? 1 : 0); msg 911 drivers/usb/serial/keyspan.c p_priv->dsr_state = ((msg->dsr) ? 1 : 0); msg 912 drivers/usb/serial/keyspan.c p_priv->dcd_state = ((msg->gpia_dcd) ? 1 : 0); msg 913 drivers/usb/serial/keyspan.c p_priv->ri_state = ((msg->ri) ? 1 : 0); msg 996 drivers/usb/serial/keyspan.c struct keyspan_usa28_portStatusMessage *msg; msg 1016 drivers/usb/serial/keyspan.c msg = (struct keyspan_usa28_portStatusMessage *)data; msg 1019 drivers/usb/serial/keyspan.c if (msg->port >= serial->num_ports) { msg 1020 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - Unexpected port number %d\n", __func__, msg->port); msg 1023 drivers/usb/serial/keyspan.c port = serial->port[msg->port]; msg 1030 drivers/usb/serial/keyspan.c p_priv->cts_state = ((msg->cts) ? 1 : 0); msg 1031 drivers/usb/serial/keyspan.c p_priv->dsr_state = ((msg->dsr) ? 1 : 0); msg 1032 drivers/usb/serial/keyspan.c p_priv->dcd_state = ((msg->dcd) ? 1 : 0); msg 1033 drivers/usb/serial/keyspan.c p_priv->ri_state = ((msg->ri) ? 1 : 0); msg 1079 drivers/usb/serial/keyspan.c struct keyspan_usa49_portStatusMessage *msg; msg 1100 drivers/usb/serial/keyspan.c msg = (struct keyspan_usa49_portStatusMessage *)data; msg 1103 drivers/usb/serial/keyspan.c if (msg->portNumber >= serial->num_ports) { msg 1105 drivers/usb/serial/keyspan.c __func__, msg->portNumber); msg 1108 drivers/usb/serial/keyspan.c port = serial->port[msg->portNumber]; msg 1115 drivers/usb/serial/keyspan.c p_priv->cts_state = ((msg->cts) ? 1 : 0); msg 1116 drivers/usb/serial/keyspan.c p_priv->dsr_state = ((msg->dsr) ? 1 : 0); msg 1117 drivers/usb/serial/keyspan.c p_priv->dcd_state = ((msg->dcd) ? 1 : 0); msg 1118 drivers/usb/serial/keyspan.c p_priv->ri_state = ((msg->ri) ? 1 : 0); msg 1337 drivers/usb/serial/keyspan.c struct keyspan_usa90_portStatusMessage *msg; msg 1356 drivers/usb/serial/keyspan.c msg = (struct keyspan_usa90_portStatusMessage *)data; msg 1367 drivers/usb/serial/keyspan.c p_priv->cts_state = ((msg->cts) ? 1 : 0); msg 1368 drivers/usb/serial/keyspan.c p_priv->dsr_state = ((msg->dsr) ? 1 : 0); msg 1369 drivers/usb/serial/keyspan.c p_priv->dcd_state = ((msg->dcd) ? 1 : 0); msg 1370 drivers/usb/serial/keyspan.c p_priv->ri_state = ((msg->ri) ? 1 : 0); msg 1403 drivers/usb/serial/keyspan.c struct keyspan_usa67_portStatusMessage *msg; msg 1426 drivers/usb/serial/keyspan.c msg = (struct keyspan_usa67_portStatusMessage *)data; msg 1429 drivers/usb/serial/keyspan.c if (msg->port >= serial->num_ports) { msg 1430 drivers/usb/serial/keyspan.c dev_dbg(&urb->dev->dev, "%s - Unexpected port number %d\n", __func__, msg->port); msg 1434 drivers/usb/serial/keyspan.c port = serial->port[msg->port]; msg 1441 drivers/usb/serial/keyspan.c p_priv->cts_state = ((msg->hskia_cts) ? 1 : 0); msg 1442 drivers/usb/serial/keyspan.c p_priv->dcd_state = ((msg->gpia_dcd) ? 1 : 0); msg 2049 drivers/usb/serial/keyspan.c struct keyspan_usa26_portControlMessage msg; msg 2084 drivers/usb/serial/keyspan.c memset(&msg, 0, sizeof(struct keyspan_usa26_portControlMessage)); msg 2089 drivers/usb/serial/keyspan.c msg.setClocking = 0xff; msg 2091 drivers/usb/serial/keyspan.c &msg.baudHi, &msg.baudLo, &msg.prescaler, msg 2095 drivers/usb/serial/keyspan.c msg.baudLo = 0; msg 2096 drivers/usb/serial/keyspan.c msg.baudHi = 125; /* Values for 9600 baud */ msg 2097 drivers/usb/serial/keyspan.c msg.prescaler = 10; msg 2099 drivers/usb/serial/keyspan.c msg.setPrescaler = 0xff; msg 2102 drivers/usb/serial/keyspan.c msg.lcr = (p_priv->cflag & CSTOPB) ? STOPBITS_678_2 : STOPBITS_5678_1; msg 2105 drivers/usb/serial/keyspan.c msg.lcr |= USA_DATABITS_5; msg 2108 drivers/usb/serial/keyspan.c msg.lcr |= USA_DATABITS_6; msg 2111 drivers/usb/serial/keyspan.c msg.lcr |= USA_DATABITS_7; msg 2114 drivers/usb/serial/keyspan.c msg.lcr |= USA_DATABITS_8; msg 2119 drivers/usb/serial/keyspan.c msg.lcr |= (p_priv->cflag & PARODD) ? msg 2122 drivers/usb/serial/keyspan.c msg.setLcr = 0xff; msg 2124 drivers/usb/serial/keyspan.c msg.ctsFlowControl = (p_priv->flow_control == flow_cts); msg 2125 drivers/usb/serial/keyspan.c msg.xonFlowControl = 0; msg 2126 drivers/usb/serial/keyspan.c msg.setFlowControl = 0xff; msg 2127 drivers/usb/serial/keyspan.c msg.forwardingLength = 16; msg 2128 drivers/usb/serial/keyspan.c msg.xonChar = 17; msg 2129 drivers/usb/serial/keyspan.c msg.xoffChar = 19; msg 2133 drivers/usb/serial/keyspan.c msg._txOn = 1; msg 2134 drivers/usb/serial/keyspan.c msg._txOff = 0; msg 2135 drivers/usb/serial/keyspan.c msg.txFlush = 0; msg 2136 drivers/usb/serial/keyspan.c msg.txBreak = 0; msg 2137 drivers/usb/serial/keyspan.c msg.rxOn = 1; msg 2138 drivers/usb/serial/keyspan.c msg.rxOff = 0; msg 2139 drivers/usb/serial/keyspan.c msg.rxFlush = 1; msg 2140 drivers/usb/serial/keyspan.c msg.rxForward = 0; msg 2141 drivers/usb/serial/keyspan.c msg.returnStatus = 0; msg 2142 drivers/usb/serial/keyspan.c msg.resetDataToggle = 0xff; msg 2147 drivers/usb/serial/keyspan.c msg._txOn = 0; msg 2148 drivers/usb/serial/keyspan.c msg._txOff = 1; msg 2149 drivers/usb/serial/keyspan.c msg.txFlush = 0; msg 2150 drivers/usb/serial/keyspan.c msg.txBreak = 0; msg 2151 drivers/usb/serial/keyspan.c msg.rxOn = 0; msg 2152 drivers/usb/serial/keyspan.c msg.rxOff = 1; msg 2153 drivers/usb/serial/keyspan.c msg.rxFlush = 1; msg 2154 drivers/usb/serial/keyspan.c msg.rxForward = 0; msg 2155 drivers/usb/serial/keyspan.c msg.returnStatus = 0; msg 2156 drivers/usb/serial/keyspan.c msg.resetDataToggle = 0; msg 2161 drivers/usb/serial/keyspan.c msg._txOn = (!p_priv->break_on); msg 2162 drivers/usb/serial/keyspan.c msg._txOff = 0; msg 2163 drivers/usb/serial/keyspan.c msg.txFlush = 0; msg 2164 drivers/usb/serial/keyspan.c msg.txBreak = (p_priv->break_on); msg 2165 drivers/usb/serial/keyspan.c msg.rxOn = 0; msg 2166 drivers/usb/serial/keyspan.c msg.rxOff = 0; msg 2167 drivers/usb/serial/keyspan.c msg.rxFlush = 0; msg 2168 drivers/usb/serial/keyspan.c msg.rxForward = 0; msg 2169 drivers/usb/serial/keyspan.c msg.returnStatus = 0; msg 2170 drivers/usb/serial/keyspan.c msg.resetDataToggle = 0x0; msg 2174 drivers/usb/serial/keyspan.c msg.setTxTriState_setRts = 0xff; msg 2175 drivers/usb/serial/keyspan.c msg.txTriState_rts = p_priv->rts_state; msg 2177 drivers/usb/serial/keyspan.c msg.setHskoa_setDtr = 0xff; msg 2178 drivers/usb/serial/keyspan.c msg.hskoa_dtr = p_priv->dtr_state; msg 2181 drivers/usb/serial/keyspan.c memcpy(this_urb->transfer_buffer, &msg, sizeof(msg)); msg 2184 drivers/usb/serial/keyspan.c this_urb->transfer_buffer_length = sizeof(msg); msg 2196 drivers/usb/serial/keyspan.c struct keyspan_usa28_portControlMessage msg; msg 2225 drivers/usb/serial/keyspan.c memset(&msg, 0, sizeof(struct keyspan_usa28_portControlMessage)); msg 2227 drivers/usb/serial/keyspan.c msg.setBaudRate = 1; msg 2229 drivers/usb/serial/keyspan.c &msg.baudHi, &msg.baudLo, NULL, msg 2233 drivers/usb/serial/keyspan.c msg.baudLo = 0xff; msg 2234 drivers/usb/serial/keyspan.c msg.baudHi = 0xb2; /* Values for 9600 baud */ msg 2238 drivers/usb/serial/keyspan.c msg.parity = 0; /* XXX for now */ msg 2240 drivers/usb/serial/keyspan.c msg.ctsFlowControl = (p_priv->flow_control == flow_cts); msg 2241 drivers/usb/serial/keyspan.c msg.xonFlowControl = 0; msg 2244 drivers/usb/serial/keyspan.c msg.rts = p_priv->rts_state; msg 2245 drivers/usb/serial/keyspan.c msg.dtr = p_priv->dtr_state; msg 2247 drivers/usb/serial/keyspan.c msg.forwardingLength = 16; msg 2248 drivers/usb/serial/keyspan.c msg.forwardMs = 10; msg 2249 drivers/usb/serial/keyspan.c msg.breakThreshold = 45; msg 2250 drivers/usb/serial/keyspan.c msg.xonChar = 17; msg 2251 drivers/usb/serial/keyspan.c msg.xoffChar = 19; msg 2257 drivers/usb/serial/keyspan.c msg._txOn = 1; msg 2258 drivers/usb/serial/keyspan.c msg._txOff = 0; msg 2259 drivers/usb/serial/keyspan.c msg.txFlush = 0; msg 2260 drivers/usb/serial/keyspan.c msg.txForceXoff = 0; msg 2261 drivers/usb/serial/keyspan.c msg.txBreak = 0; msg 2262 drivers/usb/serial/keyspan.c msg.rxOn = 1; msg 2263 drivers/usb/serial/keyspan.c msg.rxOff = 0; msg 2264 drivers/usb/serial/keyspan.c msg.rxFlush = 1; msg 2265 drivers/usb/serial/keyspan.c msg.rxForward = 0; msg 2266 drivers/usb/serial/keyspan.c msg.returnStatus = 0; msg 2267 drivers/usb/serial/keyspan.c msg.resetDataToggle = 0xff; msg 2271 drivers/usb/serial/keyspan.c msg._txOn = 0; msg 2272 drivers/usb/serial/keyspan.c msg._txOff = 1; msg 2273 drivers/usb/serial/keyspan.c msg.txFlush = 0; msg 2274 drivers/usb/serial/keyspan.c msg.txForceXoff = 0; msg 2275 drivers/usb/serial/keyspan.c msg.txBreak = 0; msg 2276 drivers/usb/serial/keyspan.c msg.rxOn = 0; msg 2277 drivers/usb/serial/keyspan.c msg.rxOff = 1; msg 2278 drivers/usb/serial/keyspan.c msg.rxFlush = 1; msg 2279 drivers/usb/serial/keyspan.c msg.rxForward = 0; msg 2280 drivers/usb/serial/keyspan.c msg.returnStatus = 0; msg 2281 drivers/usb/serial/keyspan.c msg.resetDataToggle = 0; msg 2285 drivers/usb/serial/keyspan.c msg._txOn = (!p_priv->break_on); msg 2286 drivers/usb/serial/keyspan.c msg._txOff = 0; msg 2287 drivers/usb/serial/keyspan.c msg.txFlush = 0; msg 2288 drivers/usb/serial/keyspan.c msg.txForceXoff = 0; msg 2289 drivers/usb/serial/keyspan.c msg.txBreak = (p_priv->break_on); msg 2290 drivers/usb/serial/keyspan.c msg.rxOn = 0; msg 2291 drivers/usb/serial/keyspan.c msg.rxOff = 0; msg 2292 drivers/usb/serial/keyspan.c msg.rxFlush = 0; msg 2293 drivers/usb/serial/keyspan.c msg.rxForward = 0; msg 2294 drivers/usb/serial/keyspan.c msg.returnStatus = 0; msg 2295 drivers/usb/serial/keyspan.c msg.resetDataToggle = 0x0; msg 2299 drivers/usb/serial/keyspan.c memcpy(this_urb->transfer_buffer, &msg, sizeof(msg)); msg 2302 drivers/usb/serial/keyspan.c this_urb->transfer_buffer_length = sizeof(msg); msg 2315 drivers/usb/serial/keyspan.c struct keyspan_usa49_portControlMessage msg; msg 2352 drivers/usb/serial/keyspan.c memset(&msg, 0, sizeof(struct keyspan_usa49_portControlMessage)); msg 2354 drivers/usb/serial/keyspan.c msg.portNumber = device_port; msg 2359 drivers/usb/serial/keyspan.c msg.setClocking = 0xff; msg 2361 drivers/usb/serial/keyspan.c &msg.baudHi, &msg.baudLo, &msg.prescaler, msg 2365 drivers/usb/serial/keyspan.c msg.baudLo = 0; msg 2366 drivers/usb/serial/keyspan.c msg.baudHi = 125; /* Values for 9600 baud */ msg 2367 drivers/usb/serial/keyspan.c msg.prescaler = 10; msg 2372 drivers/usb/serial/keyspan.c msg.lcr = (p_priv->cflag & CSTOPB) ? STOPBITS_678_2 : STOPBITS_5678_1; msg 2375 drivers/usb/serial/keyspan.c msg.lcr |= USA_DATABITS_5; msg 2378 drivers/usb/serial/keyspan.c msg.lcr |= USA_DATABITS_6; msg 2381 drivers/usb/serial/keyspan.c msg.lcr |= USA_DATABITS_7; msg 2384 drivers/usb/serial/keyspan.c msg.lcr |= USA_DATABITS_8; msg 2389 drivers/usb/serial/keyspan.c msg.lcr |= (p_priv->cflag & PARODD) ? msg 2392 drivers/usb/serial/keyspan.c msg.setLcr = 0xff; msg 2394 drivers/usb/serial/keyspan.c msg.ctsFlowControl = (p_priv->flow_control == flow_cts); msg 2395 drivers/usb/serial/keyspan.c msg.xonFlowControl = 0; msg 2396 drivers/usb/serial/keyspan.c msg.setFlowControl = 0xff; msg 2398 drivers/usb/serial/keyspan.c msg.forwardingLength = 16; msg 2399 drivers/usb/serial/keyspan.c msg.xonChar = 17; msg 2400 drivers/usb/serial/keyspan.c msg.xoffChar = 19; msg 2404 drivers/usb/serial/keyspan.c msg._txOn = 1; msg 2405 drivers/usb/serial/keyspan.c msg._txOff = 0; msg 2406 drivers/usb/serial/keyspan.c msg.txFlush = 0; msg 2407 drivers/usb/serial/keyspan.c msg.txBreak = 0; msg 2408 drivers/usb/serial/keyspan.c msg.rxOn = 1; msg 2409 drivers/usb/serial/keyspan.c msg.rxOff = 0; msg 2410 drivers/usb/serial/keyspan.c msg.rxFlush = 1; msg 2411 drivers/usb/serial/keyspan.c msg.rxForward = 0; msg 2412 drivers/usb/serial/keyspan.c msg.returnStatus = 0; msg 2413 drivers/usb/serial/keyspan.c msg.resetDataToggle = 0xff; msg 2414 drivers/usb/serial/keyspan.c msg.enablePort = 1; msg 2415 drivers/usb/serial/keyspan.c msg.disablePort = 0; msg 2419 drivers/usb/serial/keyspan.c msg._txOn = 0; msg 2420 drivers/usb/serial/keyspan.c msg._txOff = 1; msg 2421 drivers/usb/serial/keyspan.c msg.txFlush = 0; msg 2422 drivers/usb/serial/keyspan.c msg.txBreak = 0; msg 2423 drivers/usb/serial/keyspan.c msg.rxOn = 0; msg 2424 drivers/usb/serial/keyspan.c msg.rxOff = 1; msg 2425 drivers/usb/serial/keyspan.c msg.rxFlush = 1; msg 2426 drivers/usb/serial/keyspan.c msg.rxForward = 0; msg 2427 drivers/usb/serial/keyspan.c msg.returnStatus = 0; msg 2428 drivers/usb/serial/keyspan.c msg.resetDataToggle = 0; msg 2429 drivers/usb/serial/keyspan.c msg.enablePort = 0; msg 2430 drivers/usb/serial/keyspan.c msg.disablePort = 1; msg 2434 drivers/usb/serial/keyspan.c msg._txOn = (!p_priv->break_on); msg 2435 drivers/usb/serial/keyspan.c msg._txOff = 0; msg 2436 drivers/usb/serial/keyspan.c msg.txFlush = 0; msg 2437 drivers/usb/serial/keyspan.c msg.txBreak = (p_priv->break_on); msg 2438 drivers/usb/serial/keyspan.c msg.rxOn = 0; msg 2439 drivers/usb/serial/keyspan.c msg.rxOff = 0; msg 2440 drivers/usb/serial/keyspan.c msg.rxFlush = 0; msg 2441 drivers/usb/serial/keyspan.c msg.rxForward = 0; msg 2442 drivers/usb/serial/keyspan.c msg.returnStatus = 0; msg 2443 drivers/usb/serial/keyspan.c msg.resetDataToggle = 0x0; msg 2444 drivers/usb/serial/keyspan.c msg.enablePort = 0; msg 2445 drivers/usb/serial/keyspan.c msg.disablePort = 0; msg 2449 drivers/usb/serial/keyspan.c msg.setRts = 0xff; msg 2450 drivers/usb/serial/keyspan.c msg.rts = p_priv->rts_state; msg 2452 drivers/usb/serial/keyspan.c msg.setDtr = 0xff; msg 2453 drivers/usb/serial/keyspan.c msg.dtr = p_priv->dtr_state; msg 2466 drivers/usb/serial/keyspan.c dr->wLength = cpu_to_le16(sizeof(msg)); msg 2468 drivers/usb/serial/keyspan.c memcpy(s_priv->glocont_buf, &msg, sizeof(msg)); msg 2473 drivers/usb/serial/keyspan.c sizeof(msg), usa49_glocont_callback, serial); msg 2476 drivers/usb/serial/keyspan.c memcpy(this_urb->transfer_buffer, &msg, sizeof(msg)); msg 2479 drivers/usb/serial/keyspan.c this_urb->transfer_buffer_length = sizeof(msg); msg 2492 drivers/usb/serial/keyspan.c struct keyspan_usa90_portControlMessage msg; msg 2521 drivers/usb/serial/keyspan.c memset(&msg, 0, sizeof(struct keyspan_usa90_portControlMessage)); msg 2526 drivers/usb/serial/keyspan.c msg.setClocking = 0x01; msg 2528 drivers/usb/serial/keyspan.c &msg.baudHi, &msg.baudLo, &prescaler, 0) == KEYSPAN_INVALID_BAUD_RATE) { msg 2533 drivers/usb/serial/keyspan.c &msg.baudHi, &msg.baudLo, &prescaler, 0); msg 2535 drivers/usb/serial/keyspan.c msg.setRxMode = 1; msg 2536 drivers/usb/serial/keyspan.c msg.setTxMode = 1; msg 2541 drivers/usb/serial/keyspan.c msg.rxMode = RXMODE_DMA; msg 2542 drivers/usb/serial/keyspan.c msg.txMode = TXMODE_DMA; msg 2544 drivers/usb/serial/keyspan.c msg.rxMode = RXMODE_BYHAND; msg 2545 drivers/usb/serial/keyspan.c msg.txMode = TXMODE_BYHAND; msg 2548 drivers/usb/serial/keyspan.c msg.lcr = (p_priv->cflag & CSTOPB) ? STOPBITS_678_2 : STOPBITS_5678_1; msg 2551 drivers/usb/serial/keyspan.c msg.lcr |= USA_DATABITS_5; msg 2554 drivers/usb/serial/keyspan.c msg.lcr |= USA_DATABITS_6; msg 2557 drivers/usb/serial/keyspan.c msg.lcr |= USA_DATABITS_7; msg 2560 drivers/usb/serial/keyspan.c msg.lcr |= USA_DATABITS_8; msg 2565 drivers/usb/serial/keyspan.c msg.lcr |= (p_priv->cflag & PARODD) ? msg 2570 drivers/usb/serial/keyspan.c msg.setLcr = 0x01; msg 2574 drivers/usb/serial/keyspan.c msg.txFlowControl = TXFLOW_CTS; msg 2575 drivers/usb/serial/keyspan.c msg.setTxFlowControl = 0x01; msg 2576 drivers/usb/serial/keyspan.c msg.setRxFlowControl = 0x01; msg 2578 drivers/usb/serial/keyspan.c msg.rxForwardingLength = 16; msg 2579 drivers/usb/serial/keyspan.c msg.rxForwardingTimeout = 16; msg 2580 drivers/usb/serial/keyspan.c msg.txAckSetting = 0; msg 2581 drivers/usb/serial/keyspan.c msg.xonChar = 17; msg 2582 drivers/usb/serial/keyspan.c msg.xoffChar = 19; msg 2586 drivers/usb/serial/keyspan.c msg.portEnabled = 1; msg 2587 drivers/usb/serial/keyspan.c msg.rxFlush = 1; msg 2588 drivers/usb/serial/keyspan.c msg.txBreak = (p_priv->break_on); msg 2592 drivers/usb/serial/keyspan.c msg.portEnabled = 0; msg 2595 drivers/usb/serial/keyspan.c msg.portEnabled = 1; msg 2596 drivers/usb/serial/keyspan.c msg.txBreak = (p_priv->break_on); msg 2600 drivers/usb/serial/keyspan.c msg.setRts = 0x01; msg 2601 drivers/usb/serial/keyspan.c msg.rts = p_priv->rts_state; msg 2603 drivers/usb/serial/keyspan.c msg.setDtr = 0x01; msg 2604 drivers/usb/serial/keyspan.c msg.dtr = p_priv->dtr_state; msg 2607 drivers/usb/serial/keyspan.c memcpy(this_urb->transfer_buffer, &msg, sizeof(msg)); msg 2610 drivers/usb/serial/keyspan.c this_urb->transfer_buffer_length = sizeof(msg); msg 2622 drivers/usb/serial/keyspan.c struct keyspan_usa67_portControlMessage msg; msg 2654 drivers/usb/serial/keyspan.c memset(&msg, 0, sizeof(struct keyspan_usa67_portControlMessage)); msg 2656 drivers/usb/serial/keyspan.c msg.port = device_port; msg 2661 drivers/usb/serial/keyspan.c msg.setClocking = 0xff; msg 2663 drivers/usb/serial/keyspan.c &msg.baudHi, &msg.baudLo, &msg.prescaler, msg 2667 drivers/usb/serial/keyspan.c msg.baudLo = 0; msg 2668 drivers/usb/serial/keyspan.c msg.baudHi = 125; /* Values for 9600 baud */ msg 2669 drivers/usb/serial/keyspan.c msg.prescaler = 10; msg 2671 drivers/usb/serial/keyspan.c msg.setPrescaler = 0xff; msg 2674 drivers/usb/serial/keyspan.c msg.lcr = (p_priv->cflag & CSTOPB) ? STOPBITS_678_2 : STOPBITS_5678_1; msg 2677 drivers/usb/serial/keyspan.c msg.lcr |= USA_DATABITS_5; msg 2680 drivers/usb/serial/keyspan.c msg.lcr |= USA_DATABITS_6; msg 2683 drivers/usb/serial/keyspan.c msg.lcr |= USA_DATABITS_7; msg 2686 drivers/usb/serial/keyspan.c msg.lcr |= USA_DATABITS_8; msg 2691 drivers/usb/serial/keyspan.c msg.lcr |= (p_priv->cflag & PARODD) ? msg 2694 drivers/usb/serial/keyspan.c msg.setLcr = 0xff; msg 2696 drivers/usb/serial/keyspan.c msg.ctsFlowControl = (p_priv->flow_control == flow_cts); msg 2697 drivers/usb/serial/keyspan.c msg.xonFlowControl = 0; msg 2698 drivers/usb/serial/keyspan.c msg.setFlowControl = 0xff; msg 2699 drivers/usb/serial/keyspan.c msg.forwardingLength = 16; msg 2700 drivers/usb/serial/keyspan.c msg.xonChar = 17; msg 2701 drivers/usb/serial/keyspan.c msg.xoffChar = 19; msg 2705 drivers/usb/serial/keyspan.c msg._txOn = 1; msg 2706 drivers/usb/serial/keyspan.c msg._txOff = 0; msg 2707 drivers/usb/serial/keyspan.c msg.txFlush = 0; msg 2708 drivers/usb/serial/keyspan.c msg.txBreak = 0; msg 2709 drivers/usb/serial/keyspan.c msg.rxOn = 1; msg 2710 drivers/usb/serial/keyspan.c msg.rxOff = 0; msg 2711 drivers/usb/serial/keyspan.c msg.rxFlush = 1; msg 2712 drivers/usb/serial/keyspan.c msg.rxForward = 0; msg 2713 drivers/usb/serial/keyspan.c msg.returnStatus = 0; msg 2714 drivers/usb/serial/keyspan.c msg.resetDataToggle = 0xff; msg 2717 drivers/usb/serial/keyspan.c msg._txOn = 0; msg 2718 drivers/usb/serial/keyspan.c msg._txOff = 1; msg 2719 drivers/usb/serial/keyspan.c msg.txFlush = 0; msg 2720 drivers/usb/serial/keyspan.c msg.txBreak = 0; msg 2721 drivers/usb/serial/keyspan.c msg.rxOn = 0; msg 2722 drivers/usb/serial/keyspan.c msg.rxOff = 1; msg 2723 drivers/usb/serial/keyspan.c msg.rxFlush = 1; msg 2724 drivers/usb/serial/keyspan.c msg.rxForward = 0; msg 2725 drivers/usb/serial/keyspan.c msg.returnStatus = 0; msg 2726 drivers/usb/serial/keyspan.c msg.resetDataToggle = 0; msg 2729 drivers/usb/serial/keyspan.c msg._txOn = (!p_priv->break_on); msg 2730 drivers/usb/serial/keyspan.c msg._txOff = 0; msg 2731 drivers/usb/serial/keyspan.c msg.txFlush = 0; msg 2732 drivers/usb/serial/keyspan.c msg.txBreak = (p_priv->break_on); msg 2733 drivers/usb/serial/keyspan.c msg.rxOn = 0; msg 2734 drivers/usb/serial/keyspan.c msg.rxOff = 0; msg 2735 drivers/usb/serial/keyspan.c msg.rxFlush = 0; msg 2736 drivers/usb/serial/keyspan.c msg.rxForward = 0; msg 2737 drivers/usb/serial/keyspan.c msg.returnStatus = 0; msg 2738 drivers/usb/serial/keyspan.c msg.resetDataToggle = 0x0; msg 2742 drivers/usb/serial/keyspan.c msg.setTxTriState_setRts = 0xff; msg 2743 drivers/usb/serial/keyspan.c msg.txTriState_rts = p_priv->rts_state; msg 2745 drivers/usb/serial/keyspan.c msg.setHskoa_setDtr = 0xff; msg 2746 drivers/usb/serial/keyspan.c msg.hskoa_dtr = p_priv->dtr_state; msg 2750 drivers/usb/serial/keyspan.c memcpy(this_urb->transfer_buffer, &msg, sizeof(msg)); msg 2753 drivers/usb/serial/keyspan.c this_urb->transfer_buffer_length = sizeof(msg); msg 634 drivers/usb/storage/usb.c int msg = -1; msg 638 drivers/usb/storage/usb.c msg += 1; msg 641 drivers/usb/storage/usb.c msg += 2; msg 642 drivers/usb/storage/usb.c if (msg >= 0 && !(us->fflags & US_FL_NEED_OVERRIDE)) msg 655 drivers/usb/storage/usb.c msgs[msg], msg 954 drivers/usb/typec/tcpm/fusb302.c const struct pd_message *msg) msg 967 drivers/usb/typec/tcpm/fusb302.c len = pd_header_cnt_le(msg->header) * 4; msg 977 drivers/usb/typec/tcpm/fusb302.c memcpy(&buf[pos], &msg->header, sizeof(msg->header)); msg 978 drivers/usb/typec/tcpm/fusb302.c pos += sizeof(msg->header); msg 981 drivers/usb/typec/tcpm/fusb302.c memcpy(&buf[pos], msg->payload, len); msg 996 drivers/usb/typec/tcpm/fusb302.c fusb302_log(chip, "sending PD message header: %x", msg->header); msg 1020 drivers/usb/typec/tcpm/fusb302.c const struct pd_message *msg) msg 1029 drivers/usb/typec/tcpm/fusb302.c ret = fusb302_pd_send_message(chip, msg); msg 1414 drivers/usb/typec/tcpm/fusb302.c struct pd_message *msg) msg 1426 drivers/usb/typec/tcpm/fusb302.c (u8 *)&msg->header); msg 1429 drivers/usb/typec/tcpm/fusb302.c len = pd_header_cnt_le(msg->header) * 4; msg 1437 drivers/usb/typec/tcpm/fusb302.c (u8 *)msg->payload); msg 1445 drivers/usb/typec/tcpm/fusb302.c fusb302_log(chip, "PD message header: %x", msg->header); msg 1458 drivers/usb/typec/tcpm/fusb302.c if ((!len) && (pd_header_type_le(msg->header) == PD_CTRL_GOOD_CRC)) msg 1461 drivers/usb/typec/tcpm/fusb302.c tcpm_pd_receive(chip->tcpm_port, msg); msg 317 drivers/usb/typec/tcpm/tcpci.c const struct pd_message *msg) msg 320 drivers/usb/typec/tcpm/tcpci.c u16 header = msg ? le16_to_cpu(msg->header) : 0; msg 324 drivers/usb/typec/tcpm/tcpci.c cnt = msg ? pd_header_cnt(header) * 4 : 0; msg 335 drivers/usb/typec/tcpm/tcpci.c &msg->payload, cnt); msg 434 drivers/usb/typec/tcpm/tcpci.c struct pd_message msg; msg 446 drivers/usb/typec/tcpm/tcpci.c payload_cnt = cnt - (1 + sizeof(msg.header)); msg 451 drivers/usb/typec/tcpm/tcpci.c msg.header = cpu_to_le16(header); msg 453 drivers/usb/typec/tcpm/tcpci.c if (WARN_ON(payload_cnt > sizeof(msg.payload))) msg 454 drivers/usb/typec/tcpm/tcpci.c payload_cnt = sizeof(msg.payload); msg 458 drivers/usb/typec/tcpm/tcpci.c &msg.payload, payload_cnt); msg 463 drivers/usb/typec/tcpm/tcpci.c tcpm_pd_receive(tcpci->port, &msg); msg 337 drivers/usb/typec/tcpm/tcpm.c struct pd_message msg; msg 502 drivers/usb/typec/tcpm/tcpm.c char msg[64]; msg 506 drivers/usb/typec/tcpm/tcpm.c scnprintf(msg, sizeof(msg), msg 524 drivers/usb/typec/tcpm/tcpm.c scnprintf(msg, sizeof(msg), msg 531 drivers/usb/typec/tcpm/tcpm.c scnprintf(msg, sizeof(msg), msg 539 drivers/usb/typec/tcpm/tcpm.c scnprintf(msg, sizeof(msg), msg 545 drivers/usb/typec/tcpm/tcpm.c strcpy(msg, "undefined APDO"); msg 548 drivers/usb/typec/tcpm/tcpm.c strcpy(msg, "undefined"); msg 552 drivers/usb/typec/tcpm/tcpm.c i, type, msg); msg 613 drivers/usb/typec/tcpm/tcpm.c const struct pd_message *msg) msg 618 drivers/usb/typec/tcpm/tcpm.c if (msg) msg 619 drivers/usb/typec/tcpm/tcpm.c tcpm_log(port, "PD TX, header: %#x", le16_to_cpu(msg->header)); msg 624 drivers/usb/typec/tcpm/tcpm.c ret = port->tcpc->pd_transmit(port->tcpc, type, msg); msg 838 drivers/usb/typec/tcpm/tcpm.c struct pd_message msg; msg 841 drivers/usb/typec/tcpm/tcpm.c memset(&msg, 0, sizeof(msg)); msg 844 drivers/usb/typec/tcpm/tcpm.c msg.header = PD_HEADER_LE(PD_CTRL_REJECT, msg 850 drivers/usb/typec/tcpm/tcpm.c msg.header = PD_HEADER_LE(PD_DATA_SOURCE_CAP, msg 858 drivers/usb/typec/tcpm/tcpm.c msg.payload[i] = cpu_to_le32(port->src_pdo[i]); msg 860 drivers/usb/typec/tcpm/tcpm.c return tcpm_pd_transmit(port, TCPC_TX_SOP, &msg); msg 865 drivers/usb/typec/tcpm/tcpm.c struct pd_message msg; msg 868 drivers/usb/typec/tcpm/tcpm.c memset(&msg, 0, sizeof(msg)); msg 871 drivers/usb/typec/tcpm/tcpm.c msg.header = PD_HEADER_LE(PD_CTRL_REJECT, msg 877 drivers/usb/typec/tcpm/tcpm.c msg.header = PD_HEADER_LE(PD_DATA_SINK_CAP, msg 885 drivers/usb/typec/tcpm/tcpm.c msg.payload[i] = cpu_to_le32(port->snk_pdo[i]); msg 887 drivers/usb/typec/tcpm/tcpm.c return tcpm_pd_transmit(port, TCPC_TX_SOP, &msg); msg 1280 drivers/usb/typec/tcpm/tcpm.c struct pd_message msg; msg 1299 drivers/usb/typec/tcpm/tcpm.c memset(&msg, 0, sizeof(msg)); msg 1300 drivers/usb/typec/tcpm/tcpm.c msg.header = PD_HEADER_LE(PD_DATA_VENDOR_DEF, msg 1306 drivers/usb/typec/tcpm/tcpm.c msg.payload[i] = cpu_to_le32(port->vdo_data[i]); msg 1307 drivers/usb/typec/tcpm/tcpm.c res = tcpm_pd_transmit(port, TCPC_TX_SOP, &msg); msg 1578 drivers/usb/typec/tcpm/tcpm.c const struct pd_message *msg) msg 1580 drivers/usb/typec/tcpm/tcpm.c enum pd_data_msg_type type = pd_header_type_le(msg->header); msg 1581 drivers/usb/typec/tcpm/tcpm.c unsigned int cnt = pd_header_cnt_le(msg->header); msg 1582 drivers/usb/typec/tcpm/tcpm.c unsigned int rev = pd_header_rev_le(msg->header); msg 1591 drivers/usb/typec/tcpm/tcpm.c port->source_caps[i] = le32_to_cpu(msg->payload[i]); msg 1646 drivers/usb/typec/tcpm/tcpm.c port->sink_request = le32_to_cpu(msg->payload[0]); msg 1652 drivers/usb/typec/tcpm/tcpm.c port->sink_caps[i] = le32_to_cpu(msg->payload[i]); msg 1656 drivers/usb/typec/tcpm/tcpm.c tcpm_handle_vdm_request(port, msg->payload, cnt); msg 1660 drivers/usb/typec/tcpm/tcpm.c port->bist_request = le32_to_cpu(msg->payload[0]); msg 1665 drivers/usb/typec/tcpm/tcpm.c tcpm_handle_alert(port, msg->payload, cnt); msg 1688 drivers/usb/typec/tcpm/tcpm.c const struct pd_message *msg) msg 1690 drivers/usb/typec/tcpm/tcpm.c enum pd_ctrl_msg_type type = pd_header_type_le(msg->header); msg 1889 drivers/usb/typec/tcpm/tcpm.c const struct pd_message *msg) msg 1891 drivers/usb/typec/tcpm/tcpm.c enum pd_ext_msg_type type = pd_header_type_le(msg->header); msg 1892 drivers/usb/typec/tcpm/tcpm.c unsigned int data_size = pd_ext_header_data_size_le(msg->ext_msg.header); msg 1894 drivers/usb/typec/tcpm/tcpm.c if (!(msg->ext_msg.header & PD_EXT_HDR_CHUNKED)) { msg 1910 drivers/usb/typec/tcpm/tcpm.c if (msg->ext_msg.data[USB_PD_EXT_SDB_EVENT_FLAGS] & msg 1947 drivers/usb/typec/tcpm/tcpm.c const struct pd_message *msg = &event->msg; msg 1948 drivers/usb/typec/tcpm/tcpm.c unsigned int cnt = pd_header_cnt_le(msg->header); msg 1953 drivers/usb/typec/tcpm/tcpm.c tcpm_log(port, "PD RX, header: %#x [%d]", le16_to_cpu(msg->header), msg 1957 drivers/usb/typec/tcpm/tcpm.c enum pd_ctrl_msg_type type = pd_header_type_le(msg->header); msg 1958 drivers/usb/typec/tcpm/tcpm.c unsigned int msgid = pd_header_msgid_le(msg->header); msg 1977 drivers/usb/typec/tcpm/tcpm.c if (!!(le16_to_cpu(msg->header) & PD_HEADER_DATA_ROLE) == msg 1983 drivers/usb/typec/tcpm/tcpm.c if (msg->header & PD_HEADER_EXT_HDR) msg 1984 drivers/usb/typec/tcpm/tcpm.c tcpm_pd_ext_msg_request(port, msg); msg 1986 drivers/usb/typec/tcpm/tcpm.c tcpm_pd_data_request(port, msg); msg 1988 drivers/usb/typec/tcpm/tcpm.c tcpm_pd_ctrl_request(port, msg); msg 1997 drivers/usb/typec/tcpm/tcpm.c void tcpm_pd_receive(struct tcpm_port *port, const struct pd_message *msg) msg 2007 drivers/usb/typec/tcpm/tcpm.c memcpy(&event->msg, msg, sizeof(*msg)); msg 2015 drivers/usb/typec/tcpm/tcpm.c struct pd_message msg; msg 2017 drivers/usb/typec/tcpm/tcpm.c memset(&msg, 0, sizeof(msg)); msg 2018 drivers/usb/typec/tcpm/tcpm.c msg.header = PD_HEADER_LE(type, port->pwr_role, msg 2023 drivers/usb/typec/tcpm/tcpm.c return tcpm_pd_transmit(port, TCPC_TX_SOP, &msg); msg 2409 drivers/usb/typec/tcpm/tcpm.c struct pd_message msg; msg 2417 drivers/usb/typec/tcpm/tcpm.c memset(&msg, 0, sizeof(msg)); msg 2418 drivers/usb/typec/tcpm/tcpm.c msg.header = PD_HEADER_LE(PD_DATA_REQUEST, msg 2423 drivers/usb/typec/tcpm/tcpm.c msg.payload[0] = cpu_to_le32(rdo); msg 2425 drivers/usb/typec/tcpm/tcpm.c return tcpm_pd_transmit(port, TCPC_TX_SOP, &msg); msg 2506 drivers/usb/typec/tcpm/tcpm.c struct pd_message msg; msg 2514 drivers/usb/typec/tcpm/tcpm.c memset(&msg, 0, sizeof(msg)); msg 2515 drivers/usb/typec/tcpm/tcpm.c msg.header = PD_HEADER_LE(PD_DATA_REQUEST, msg 2520 drivers/usb/typec/tcpm/tcpm.c msg.payload[0] = cpu_to_le32(rdo); msg 2522 drivers/usb/typec/tcpm/tcpm.c return tcpm_pd_transmit(port, TCPC_TX_SOP, &msg); msg 359 drivers/usb/typec/tcpm/wcove.c const struct pd_message *msg) msg 376 drivers/usb/typec/tcpm/wcove.c if (msg) { msg 377 drivers/usb/typec/tcpm/wcove.c const u8 *data = (void *)msg; msg 380 drivers/usb/typec/tcpm/wcove.c for (i = 0; i < pd_header_cnt(msg->header) * 4 + 2; i++) { msg 446 drivers/usb/typec/tcpm/wcove.c static int wcove_read_rx_buffer(struct wcove_typec *wcove, void *msg) msg 459 drivers/usb/typec/tcpm/wcove.c ret = regmap_read(wcove->regmap, USBC_RX_DATA + i, msg + i); msg 528 drivers/usb/typec/tcpm/wcove.c struct pd_message msg; msg 530 drivers/usb/typec/tcpm/wcove.c ret = wcove_read_rx_buffer(wcove, &msg); msg 537 drivers/usb/typec/tcpm/wcove.c tcpm_pd_receive(wcove->tcpm, &msg); msg 155 drivers/usb/usbip/stub_tx.c struct msghdr msg; msg 173 drivers/usb/usbip/stub_tx.c memset(&msg, 0, sizeof(msg)); msg 316 drivers/usb/usbip/stub_tx.c ret = kernel_sendmsg(sdev->ud.tcp_socket, &msg, msg 366 drivers/usb/usbip/stub_tx.c struct msghdr msg; msg 378 drivers/usb/usbip/stub_tx.c memset(&msg, 0, sizeof(msg)); msg 391 drivers/usb/usbip/stub_tx.c ret = kernel_sendmsg(sdev->ud.tcp_socket, &msg, iov, msg 306 drivers/usb/usbip/usbip_common.c struct msghdr msg = {.msg_flags = MSG_NOSIGNAL}; msg 312 drivers/usb/usbip/usbip_common.c iov_iter_kvec(&msg.msg_iter, READ, &iov, 1, size); msg 319 drivers/usb/usbip/usbip_common.c result = sock_recvmsg(sock, &msg, MSG_WAITALL); msg 324 drivers/usb/usbip/usbip_common.c } while (msg_data_left(&msg)); msg 335 drivers/usb/usbip/usbip_common.c size, result, msg_data_left(&msg), total); msg 58 drivers/usb/usbip/vhci_tx.c struct msghdr msg; msg 74 drivers/usb/usbip/vhci_tx.c memset(&msg, 0, sizeof(msg)); msg 139 drivers/usb/usbip/vhci_tx.c ret = kernel_sendmsg(vdev->ud.tcp_socket, &msg, iov, iovnum, msg 191 drivers/usb/usbip/vhci_tx.c struct msghdr msg; msg 201 drivers/usb/usbip/vhci_tx.c memset(&msg, 0, sizeof(msg)); msg 219 drivers/usb/usbip/vhci_tx.c ret = kernel_sendmsg(vdev->ud.tcp_socket, &msg, &iov, 1, txsize); msg 40 drivers/usb/usbip/vudc_tx.c struct msghdr msg; msg 49 drivers/usb/usbip/vudc_tx.c memset(&msg, 0, sizeof(msg)); msg 60 drivers/usb/usbip/vudc_tx.c ret = kernel_sendmsg(udc->ud.tcp_socket, &msg, iov, msg 82 drivers/usb/usbip/vudc_tx.c struct msghdr msg; msg 86 drivers/usb/usbip/vudc_tx.c memset(&msg, 0, sizeof(msg)); msg 166 drivers/usb/usbip/vudc_tx.c ret = kernel_sendmsg(udc->ud.tcp_socket, &msg, msg 327 drivers/vfio/pci/vfio_pci_intrs.c struct msi_msg msg; msg 329 drivers/vfio/pci/vfio_pci_intrs.c get_cached_msi_msg(irq, &msg); msg 330 drivers/vfio/pci/vfio_pci_intrs.c pci_write_msi_msg(irq, &msg); msg 608 drivers/vhost/net.c struct msghdr *msg, msg 615 drivers/vhost/net.c ret = vhost_net_tx_get_vq_desc(net, nvq, out, in, msg, busyloop_intr); msg 627 drivers/vhost/net.c *len = init_iov_iter(vq, &msg->msg_iter, nvq->vhost_hlen, *out); msg 763 drivers/vhost/net.c struct msghdr msg = { msg 779 drivers/vhost/net.c vhost_tx_batch(net, nvq, sock, &msg); msg 781 drivers/vhost/net.c head = get_tx_bufs(net, nvq, &msg, &out, &in, &len, msg 804 drivers/vhost/net.c err = vhost_net_build_xdp(nvq, &msg.msg_iter); msg 808 drivers/vhost/net.c vhost_tx_batch(net, nvq, sock, &msg); msg 818 drivers/vhost/net.c vhost_tx_batch(net, nvq, sock, &msg); msg 819 drivers/vhost/net.c msg.msg_control = NULL; msg 822 drivers/vhost/net.c msg.msg_flags |= MSG_MORE; msg 824 drivers/vhost/net.c msg.msg_flags &= ~MSG_MORE; msg 828 drivers/vhost/net.c err = sock->ops->sendmsg(sock, &msg, len); msg 843 drivers/vhost/net.c vhost_tx_batch(net, nvq, sock, &msg); msg 852 drivers/vhost/net.c struct msghdr msg = { msg 873 drivers/vhost/net.c head = get_tx_bufs(net, nvq, &msg, &out, &in, &len, msg 904 drivers/vhost/net.c msg.msg_control = &ctl; msg 907 drivers/vhost/net.c msg.msg_controllen = sizeof(ctl); msg 912 drivers/vhost/net.c msg.msg_control = NULL; msg 918 drivers/vhost/net.c msg.msg_flags |= MSG_MORE; msg 920 drivers/vhost/net.c msg.msg_flags &= ~MSG_MORE; msg 924 drivers/vhost/net.c err = sock->ops->sendmsg(sock, &msg, len); msg 1101 drivers/vhost/net.c struct msghdr msg = { msg 1170 drivers/vhost/net.c msg.msg_control = vhost_net_buf_consume(&nvq->rxq); msg 1173 drivers/vhost/net.c iov_iter_init(&msg.msg_iter, READ, vq->iov, 1, 1); msg 1174 drivers/vhost/net.c err = sock->ops->recvmsg(sock, &msg, msg 1180 drivers/vhost/net.c iov_iter_init(&msg.msg_iter, READ, vq->iov, in, vhost_len); msg 1181 drivers/vhost/net.c fixup = msg.msg_iter; msg 1186 drivers/vhost/net.c iov_iter_advance(&msg.msg_iter, vhost_hlen); msg 1188 drivers/vhost/net.c err = sock->ops->recvmsg(sock, &msg, msg 1059 drivers/vhost/vhost.c struct vhost_iotlb_msg *msg) msg 1066 drivers/vhost/vhost.c struct vhost_iotlb_msg *vq_msg = &node->msg.iotlb; msg 1067 drivers/vhost/vhost.c if (msg->iova <= vq_msg->iova && msg 1068 drivers/vhost/vhost.c msg->iova + msg->size - 1 >= vq_msg->iova && msg 1097 drivers/vhost/vhost.c struct vhost_iotlb_msg *msg) msg 1103 drivers/vhost/vhost.c switch (msg->type) { msg 1109 drivers/vhost/vhost.c if (!umem_access_ok(msg->uaddr, msg->size, msg->perm)) { msg 1114 drivers/vhost/vhost.c if (vhost_new_umem_range(dev->iotlb, msg->iova, msg->size, msg 1115 drivers/vhost/vhost.c msg->iova + msg->size - 1, msg 1116 drivers/vhost/vhost.c msg->uaddr, msg->perm)) { msg 1120 drivers/vhost/vhost.c vhost_iotlb_notify_vq(dev, msg); msg 1128 drivers/vhost/vhost.c vhost_del_umem_range(dev->iotlb, msg->iova, msg 1129 drivers/vhost/vhost.c msg->iova + msg->size - 1); msg 1144 drivers/vhost/vhost.c struct vhost_iotlb_msg msg; msg 1170 drivers/vhost/vhost.c ret = copy_from_iter(&msg, sizeof(msg), from); msg 1171 drivers/vhost/vhost.c if (ret != sizeof(msg)) { msg 1175 drivers/vhost/vhost.c if (vhost_process_iotlb_msg(dev, &msg)) { msg 1240 drivers/vhost/vhost.c struct vhost_iotlb_msg *msg; msg 1241 drivers/vhost/vhost.c void *start = &node->msg; msg 1243 drivers/vhost/vhost.c switch (node->msg.type) { msg 1245 drivers/vhost/vhost.c size = sizeof(node->msg); msg 1246 drivers/vhost/vhost.c msg = &node->msg.iotlb; msg 1250 drivers/vhost/vhost.c msg = &node->msg_v2.iotlb; msg 1258 drivers/vhost/vhost.c if (ret != size || msg->type != VHOST_IOTLB_MISS) { msg 1273 drivers/vhost/vhost.c struct vhost_iotlb_msg *msg; msg 1282 drivers/vhost/vhost.c msg = &node->msg_v2.iotlb; msg 1284 drivers/vhost/vhost.c msg = &node->msg.iotlb; msg 1287 drivers/vhost/vhost.c msg->type = VHOST_IOTLB_MISS; msg 1288 drivers/vhost/vhost.c msg->iova = iova; msg 1289 drivers/vhost/vhost.c msg->perm = access; msg 2585 drivers/vhost/vhost.c memset(&node->msg, 0, sizeof node->msg); msg 2587 drivers/vhost/vhost.c node->msg.type = type; msg 152 drivers/vhost/vhost.h struct vhost_msg msg; msg 162 drivers/video/backlight/ams369fg06.c struct spi_message msg; msg 171 drivers/video/backlight/ams369fg06.c spi_message_init(&msg); msg 172 drivers/video/backlight/ams369fg06.c spi_message_add_tail(&xfer, &msg); msg 174 drivers/video/backlight/ams369fg06.c return spi_sync(lcd->spi, &msg); msg 173 drivers/video/backlight/corgi_lcd.c struct spi_message msg; msg 181 drivers/video/backlight/corgi_lcd.c spi_message_init(&msg); msg 182 drivers/video/backlight/corgi_lcd.c spi_message_add_tail(&xfer, &msg); msg 184 drivers/video/backlight/corgi_lcd.c return spi_sync(lcd->spi_dev, &msg); msg 218 drivers/video/backlight/hx8357.c struct spi_message msg; msg 224 drivers/video/backlight/hx8357.c spi_message_init(&msg); msg 243 drivers/video/backlight/hx8357.c spi_message_add_tail(&xfer[0], &msg); msg 250 drivers/video/backlight/hx8357.c spi_message_add_tail(&xfer[1], &msg); msg 253 drivers/video/backlight/hx8357.c ret = spi_sync(lcd->spi, &msg); msg 149 drivers/video/backlight/ili922x.c struct spi_message msg; msg 156 drivers/video/backlight/ili922x.c spi_message_init(&msg); msg 173 drivers/video/backlight/ili922x.c spi_message_add_tail(&xfer, &msg); msg 174 drivers/video/backlight/ili922x.c ret = spi_sync(spi, &msg); msg 192 drivers/video/backlight/ili922x.c struct spi_message msg; msg 200 drivers/video/backlight/ili922x.c spi_message_init(&msg); msg 212 drivers/video/backlight/ili922x.c spi_message_add_tail(&xfer_regindex, &msg); msg 227 drivers/video/backlight/ili922x.c spi_message_add_tail(&xfer_regvalue, &msg); msg 228 drivers/video/backlight/ili922x.c ret = spi_sync(spi, &msg); msg 246 drivers/video/backlight/ili922x.c struct spi_message msg; msg 255 drivers/video/backlight/ili922x.c spi_message_init(&msg); msg 267 drivers/video/backlight/ili922x.c spi_message_add_tail(&xfer_regindex, &msg); msg 269 drivers/video/backlight/ili922x.c ret = spi_sync(spi, &msg); msg 271 drivers/video/backlight/ili922x.c spi_message_init(&msg); msg 283 drivers/video/backlight/ili922x.c spi_message_add_tail(&xfer_regvalue, &msg); msg 285 drivers/video/backlight/ili922x.c ret = spi_sync(spi, &msg); msg 319 drivers/video/backlight/ili922x.c struct spi_message msg; msg 325 drivers/video/backlight/ili922x.c spi_message_init(&msg); msg 336 drivers/video/backlight/ili922x.c spi_message_add_tail(&xfer, &msg); msg 337 drivers/video/backlight/ili922x.c spi_sync(spi, &msg); msg 20 drivers/video/backlight/ipaq_micro_bl.c struct ipaq_micro_msg msg = { msg 36 drivers/video/backlight/ipaq_micro_bl.c msg.tx_data[0] = 0x01; msg 37 drivers/video/backlight/ipaq_micro_bl.c msg.tx_data[1] = intensity > 0 ? 1 : 0; msg 38 drivers/video/backlight/ipaq_micro_bl.c msg.tx_data[2] = intensity; msg 39 drivers/video/backlight/ipaq_micro_bl.c return ipaq_micro_tx_msg_sync(micro, &msg); msg 115 drivers/video/backlight/lms501kf03.c struct spi_message msg; msg 124 drivers/video/backlight/lms501kf03.c spi_message_init(&msg); msg 125 drivers/video/backlight/lms501kf03.c spi_message_add_tail(&xfer, &msg); msg 127 drivers/video/backlight/lms501kf03.c return spi_sync(lcd->spi, &msg); msg 39 drivers/video/backlight/ltv350qv.c struct spi_message msg; msg 48 drivers/video/backlight/ltv350qv.c spi_message_init(&msg); msg 55 drivers/video/backlight/ltv350qv.c spi_message_add_tail(&index_xfer, &msg); msg 62 drivers/video/backlight/ltv350qv.c spi_message_add_tail(&value_xfer, &msg); msg 64 drivers/video/backlight/ltv350qv.c return spi_sync(lcd->spi, &msg); msg 29 drivers/video/backlight/tdo24m.c struct spi_message msg; msg 209 drivers/video/backlight/tdo24m.c err = spi_sync(lcd->spi_dev, &lcd->msg); msg 364 drivers/video/backlight/tdo24m.c m = &lcd->msg; msg 45 drivers/video/backlight/tosa_lcd.c struct spi_message msg; msg 53 drivers/video/backlight/tosa_lcd.c spi_message_init(&msg); msg 54 drivers/video/backlight/tosa_lcd.c spi_message_add_tail(&xfer, &msg); msg 56 drivers/video/backlight/tosa_lcd.c return spi_sync(spi, &msg); msg 114 drivers/video/fbdev/aty/atyfb_base.c #define FAIL(msg) do { \ msg 116 drivers/video/fbdev/aty/atyfb_base.c printk(KERN_CRIT "atyfb: " msg "\n"); \ msg 119 drivers/video/fbdev/aty/atyfb_base.c #define FAIL_MAX(msg, x, _max_) do { \ msg 122 drivers/video/fbdev/aty/atyfb_base.c printk(KERN_CRIT "atyfb: " msg " %x(%x)\n", x, _max_); \ msg 232 drivers/video/fbdev/hyperv_fb.c struct synthvid_msg *msg) msg 237 drivers/video/fbdev/hyperv_fb.c msg->pipe_hdr.type = PIPE_MSG_DATA; msg 238 drivers/video/fbdev/hyperv_fb.c msg->pipe_hdr.size = msg->vid_hdr.size; msg 240 drivers/video/fbdev/hyperv_fb.c ret = vmbus_sendpacket(hdev->channel, msg, msg 241 drivers/video/fbdev/hyperv_fb.c msg->vid_hdr.size + sizeof(struct pipe_msg_hdr), msg 256 drivers/video/fbdev/hyperv_fb.c struct synthvid_msg msg; msg 261 drivers/video/fbdev/hyperv_fb.c memset(&msg, 0, sizeof(struct synthvid_msg)); msg 263 drivers/video/fbdev/hyperv_fb.c msg.vid_hdr.type = SYNTHVID_SITUATION_UPDATE; msg 264 drivers/video/fbdev/hyperv_fb.c msg.vid_hdr.size = sizeof(struct synthvid_msg_hdr) + msg 266 drivers/video/fbdev/hyperv_fb.c msg.situ.user_ctx = 0; msg 267 drivers/video/fbdev/hyperv_fb.c msg.situ.video_output_count = 1; msg 268 drivers/video/fbdev/hyperv_fb.c msg.situ.video_output[0].active = 1; msg 269 drivers/video/fbdev/hyperv_fb.c msg.situ.video_output[0].vram_offset = 0; msg 270 drivers/video/fbdev/hyperv_fb.c msg.situ.video_output[0].depth_bits = info->var.bits_per_pixel; msg 271 drivers/video/fbdev/hyperv_fb.c msg.situ.video_output[0].width_pixels = info->var.xres; msg 272 drivers/video/fbdev/hyperv_fb.c msg.situ.video_output[0].height_pixels = info->var.yres; msg 273 drivers/video/fbdev/hyperv_fb.c msg.situ.video_output[0].pitch_bytes = info->fix.line_length; msg 275 drivers/video/fbdev/hyperv_fb.c synthvid_send(hdev, &msg); msg 283 drivers/video/fbdev/hyperv_fb.c struct synthvid_msg msg; msg 285 drivers/video/fbdev/hyperv_fb.c memset(&msg, 0, sizeof(struct synthvid_msg)); msg 286 drivers/video/fbdev/hyperv_fb.c msg.vid_hdr.type = SYNTHVID_POINTER_POSITION; msg 287 drivers/video/fbdev/hyperv_fb.c msg.vid_hdr.size = sizeof(struct synthvid_msg_hdr) + msg 289 drivers/video/fbdev/hyperv_fb.c msg.ptr_pos.is_visible = 1; msg 290 drivers/video/fbdev/hyperv_fb.c msg.ptr_pos.video_output = 0; msg 291 drivers/video/fbdev/hyperv_fb.c msg.ptr_pos.image_x = 0; msg 292 drivers/video/fbdev/hyperv_fb.c msg.ptr_pos.image_y = 0; msg 293 drivers/video/fbdev/hyperv_fb.c synthvid_send(hdev, &msg); msg 295 drivers/video/fbdev/hyperv_fb.c memset(&msg, 0, sizeof(struct synthvid_msg)); msg 296 drivers/video/fbdev/hyperv_fb.c msg.vid_hdr.type = SYNTHVID_POINTER_SHAPE; msg 297 drivers/video/fbdev/hyperv_fb.c msg.vid_hdr.size = sizeof(struct synthvid_msg_hdr) + msg 299 drivers/video/fbdev/hyperv_fb.c msg.ptr_shape.part_idx = CURSOR_COMPLETE; msg 300 drivers/video/fbdev/hyperv_fb.c msg.ptr_shape.is_argb = 1; msg 301 drivers/video/fbdev/hyperv_fb.c msg.ptr_shape.width = 1; msg 302 drivers/video/fbdev/hyperv_fb.c msg.ptr_shape.height = 1; msg 303 drivers/video/fbdev/hyperv_fb.c msg.ptr_shape.hot_x = 0; msg 304 drivers/video/fbdev/hyperv_fb.c msg.ptr_shape.hot_y = 0; msg 305 drivers/video/fbdev/hyperv_fb.c msg.ptr_shape.data[0] = 0; msg 306 drivers/video/fbdev/hyperv_fb.c msg.ptr_shape.data[1] = 1; msg 307 drivers/video/fbdev/hyperv_fb.c msg.ptr_shape.data[2] = 1; msg 308 drivers/video/fbdev/hyperv_fb.c msg.ptr_shape.data[3] = 1; msg 309 drivers/video/fbdev/hyperv_fb.c synthvid_send(hdev, &msg); msg 318 drivers/video/fbdev/hyperv_fb.c struct synthvid_msg msg; msg 320 drivers/video/fbdev/hyperv_fb.c memset(&msg, 0, sizeof(struct synthvid_msg)); msg 322 drivers/video/fbdev/hyperv_fb.c msg.vid_hdr.type = SYNTHVID_DIRT; msg 323 drivers/video/fbdev/hyperv_fb.c msg.vid_hdr.size = sizeof(struct synthvid_msg_hdr) + msg 325 drivers/video/fbdev/hyperv_fb.c msg.dirt.video_output = 0; msg 326 drivers/video/fbdev/hyperv_fb.c msg.dirt.dirt_count = 1; msg 327 drivers/video/fbdev/hyperv_fb.c msg.dirt.rect[0].x1 = 0; msg 328 drivers/video/fbdev/hyperv_fb.c msg.dirt.rect[0].y1 = 0; msg 329 drivers/video/fbdev/hyperv_fb.c msg.dirt.rect[0].x2 = info->var.xres; msg 330 drivers/video/fbdev/hyperv_fb.c msg.dirt.rect[0].y2 = info->var.yres; msg 332 drivers/video/fbdev/hyperv_fb.c synthvid_send(hdev, &msg); msg 347 drivers/video/fbdev/hyperv_fb.c struct synthvid_msg *msg; msg 353 drivers/video/fbdev/hyperv_fb.c msg = (struct synthvid_msg *)par->recv_buf; msg 356 drivers/video/fbdev/hyperv_fb.c if (msg->vid_hdr.type == SYNTHVID_VERSION_RESPONSE || msg 357 drivers/video/fbdev/hyperv_fb.c msg->vid_hdr.type == SYNTHVID_VRAM_LOCATION_ACK) { msg 358 drivers/video/fbdev/hyperv_fb.c memcpy(par->init_buf, msg, MAX_VMBUS_PKT_SIZE); msg 364 drivers/video/fbdev/hyperv_fb.c if (msg->vid_hdr.type == SYNTHVID_FEATURE_CHANGE) { msg 370 drivers/video/fbdev/hyperv_fb.c par->update = msg->feature_chg.is_dirt_needed; msg 408 drivers/video/fbdev/hyperv_fb.c struct synthvid_msg *msg = (struct synthvid_msg *)par->init_buf; msg 412 drivers/video/fbdev/hyperv_fb.c memset(msg, 0, sizeof(struct synthvid_msg)); msg 413 drivers/video/fbdev/hyperv_fb.c msg->vid_hdr.type = SYNTHVID_VERSION_REQUEST; msg 414 drivers/video/fbdev/hyperv_fb.c msg->vid_hdr.size = sizeof(struct synthvid_msg_hdr) + msg 416 drivers/video/fbdev/hyperv_fb.c msg->ver_req.version = ver; msg 417 drivers/video/fbdev/hyperv_fb.c synthvid_send(hdev, msg); msg 425 drivers/video/fbdev/hyperv_fb.c if (!msg->ver_resp.is_accepted) { msg 482 drivers/video/fbdev/hyperv_fb.c struct synthvid_msg *msg = (struct synthvid_msg *)par->init_buf; msg 487 drivers/video/fbdev/hyperv_fb.c memset(msg, 0, sizeof(struct synthvid_msg)); msg 488 drivers/video/fbdev/hyperv_fb.c msg->vid_hdr.type = SYNTHVID_VRAM_LOCATION; msg 489 drivers/video/fbdev/hyperv_fb.c msg->vid_hdr.size = sizeof(struct synthvid_msg_hdr) + msg 491 drivers/video/fbdev/hyperv_fb.c msg->vram.user_ctx = msg->vram.vram_gpa = info->fix.smem_start; msg 492 drivers/video/fbdev/hyperv_fb.c msg->vram.is_vram_gpa_specified = 1; msg 493 drivers/video/fbdev/hyperv_fb.c synthvid_send(hdev, msg); msg 501 drivers/video/fbdev/hyperv_fb.c if (msg->vram_ack.user_ctx != info->fix.smem_start) { msg 59 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c struct spi_message msg; msg 69 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c spi_message_init(&msg); msg 76 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c spi_message_add_tail(&index_xfer, &msg); msg 83 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c spi_message_add_tail(&value_xfer, &msg); msg 85 drivers/video/fbdev/omap2/omapfb/displays/panel-lgphilips-lb035q02.c return spi_sync(spi, &msg); msg 65 drivers/video/fbdev/pxa3xx-gcu.c #define QDUMP(msg) \ msg 67 drivers/video/fbdev/pxa3xx-gcu.c QPRINT(priv, KERN_DEBUG, msg); \ msg 70 drivers/video/fbdev/pxa3xx-gcu.c #define QDUMP(msg) do {} while (0) msg 73 drivers/video/fbdev/pxa3xx-gcu.c #define QERROR(msg) \ msg 75 drivers/video/fbdev/pxa3xx-gcu.c QPRINT(priv, KERN_ERR, msg); \ msg 116 drivers/video/fbdev/pxa3xx-gcu.c #define QPRINT(priv, level, msg) \ msg 132 drivers/video/fbdev/pxa3xx-gcu.c __func__, msg, \ msg 53 drivers/video/fbdev/s3c2410fb.c #define dprintk(msg...) \ msg 56 drivers/video/fbdev/s3c2410fb.c pr_debug(msg); \ msg 841 drivers/video/fbdev/skeletonfb.c static int xxxfb_suspend(struct pci_dev *dev, pm_message_t msg) msg 920 drivers/video/fbdev/skeletonfb.c static int xxxfb_suspend(struct platform_device *dev, pm_message_t msg) msg 72 drivers/video/fbdev/uvesafb.c static void uvesafb_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) msg 80 drivers/video/fbdev/uvesafb.c if (msg->seq >= UVESAFB_TASKS_MAX) msg 84 drivers/video/fbdev/uvesafb.c task = uvfb_tasks[msg->seq]; msg 86 drivers/video/fbdev/uvesafb.c if (!task || msg->ack != task->ack) { msg 91 drivers/video/fbdev/uvesafb.c utask = (struct uvesafb_task *)msg->data; msg 95 drivers/video/fbdev/uvesafb.c utask->buf_len > msg->len - sizeof(*utask)) { msg 100 drivers/video/fbdev/uvesafb.c uvfb_tasks[msg->seq] = NULL; msg 58 drivers/video/fbdev/via/via_aux.h struct i2c_msg msg[2] = { msg 62 drivers/video/fbdev/via/via_aux.h return i2c_transfer(drv->bus->adap, msg, 2) == 2; msg 134 drivers/video/fbdev/via/via_i2c.c u8 msg[2] = { index, data }; msg 142 drivers/video/fbdev/via/via_i2c.c msgs.buf = msg; msg 1410 drivers/virt/vboxguest/vboxguest_core.c log->u.in.msg); msg 211 drivers/visorbus/visorchannel.c void *msg) msg 223 drivers/visorbus/visorchannel.c error = sig_read_data(channel, queue, &sig_hdr, sig_hdr.tail, msg); msg 251 drivers/visorbus/visorchannel.c void *msg) msg 258 drivers/visorbus/visorchannel.c rc = signalremove_inner(channel, queue, msg); msg 261 drivers/visorbus/visorchannel.c rc = signalremove_inner(channel, queue, msg); msg 301 drivers/visorbus/visorchannel.c void *msg) msg 317 drivers/visorbus/visorchannel.c err = sig_write_data(channel, queue, &sig_hdr, sig_hdr.head, msg); msg 419 drivers/visorbus/visorchannel.c void *msg) msg 426 drivers/visorbus/visorchannel.c rc = signalinsert_inner(channel, queue, msg); msg 429 drivers/visorbus/visorchannel.c rc = signalinsert_inner(channel, queue, msg); msg 105 drivers/visorbus/visorchipset.c struct controlvm_message msg; msg 282 drivers/visorbus/visorchipset.c static void controlvm_init_response(struct controlvm_message *msg, msg 286 drivers/visorbus/visorchipset.c memset(msg, 0, sizeof(struct controlvm_message)); msg 287 drivers/visorbus/visorchipset.c memcpy(&msg->hdr, msg_hdr, sizeof(struct controlvm_message_header)); msg 288 drivers/visorbus/visorchipset.c msg->hdr.payload_bytes = 0; msg 289 drivers/visorbus/visorchipset.c msg->hdr.payload_vm_offset = 0; msg 290 drivers/visorbus/visorchipset.c msg->hdr.payload_max_bytes = 0; msg 292 drivers/visorbus/visorchipset.c msg->hdr.flags.failed = 1; msg 293 drivers/visorbus/visorchipset.c msg->hdr.completion_status = (u32)(-response); msg 360 drivers/visorbus/visorchipset.c static int save_crash_message(struct controlvm_message *msg, msg 394 drivers/visorbus/visorchipset.c local_crash_msg_offset, msg, msg 404 drivers/visorbus/visorchipset.c local_crash_msg_offset, msg, msg 877 drivers/visorbus/visorchipset.c struct controlvm_message *msg) msg 886 drivers/visorbus/visorchipset.c req->msg = *msg; msg 931 drivers/visorbus/visorchipset.c req->msg.cmd.device_change_state.state.active = active; msg 932 drivers/visorbus/visorchipset.c if (req->msg.hdr.flags.response_expected) msg 934 drivers/visorbus/visorchipset.c &req->msg.hdr, CONTROLVM_RESP_SUCCESS, msg 935 drivers/visorbus/visorchipset.c &req->msg.cmd.device_change_state.state); msg 1039 drivers/visorbus/visorchipset.c struct controlvm_message_packet *cmd = &req->msg.cmd; msg 1213 drivers/visorbus/visorchipset.c struct controlvm_message msg = { msg 1224 drivers/visorbus/visorchipset.c chipset_init(&msg); msg 1459 drivers/visorbus/visorchipset.c static int read_controlvm_event(struct controlvm_message *msg) msg 1462 drivers/visorbus/visorchipset.c CONTROLVM_QUEUE_EVENT, msg); msg 1467 drivers/visorbus/visorchipset.c if (msg->hdr.flags.test_message == 1) msg 1489 drivers/visorbus/visorchipset.c if (req->msg.hdr.flags.response_expected) msg 1491 drivers/visorbus/visorchipset.c &req->msg.hdr, msg 1493 drivers/visorbus/visorchipset.c &req->msg.cmd.device_change_state.state); msg 723 drivers/w1/w1.c struct w1_netlink_msg msg; msg 738 drivers/w1/w1.c memset(&msg, 0, sizeof(msg)); msg 777 drivers/w1/w1.c memcpy(msg.id.id, rn, sizeof(msg.id)); msg 778 drivers/w1/w1.c msg.type = W1_SLAVE_ADD; msg 779 drivers/w1/w1.c w1_netlink_send(dev, &msg); msg 791 drivers/w1/w1.c struct w1_netlink_msg msg; msg 798 drivers/w1/w1.c memset(&msg, 0, sizeof(msg)); msg 799 drivers/w1/w1.c memcpy(msg.id.id, &sl->reg_num, sizeof(msg.id)); msg 800 drivers/w1/w1.c msg.type = W1_SLAVE_REMOVE; msg 801 drivers/w1/w1.c w1_netlink_send(sl->master, &msg); msg 97 drivers/w1/w1_int.c struct w1_netlink_msg msg; msg 153 drivers/w1/w1_int.c memset(&msg, 0, sizeof(msg)); msg 154 drivers/w1/w1_int.c msg.id.mst.id = dev->id; msg 155 drivers/w1/w1_int.c msg.type = W1_MASTER_ADD; msg 156 drivers/w1/w1_int.c w1_netlink_send(dev, &msg); msg 176 drivers/w1/w1_int.c struct w1_netlink_msg msg; msg 212 drivers/w1/w1_int.c memset(&msg, 0, sizeof(msg)); msg 213 drivers/w1/w1_int.c msg.id.mst.id = dev->id; msg 214 drivers/w1/w1_int.c msg.type = W1_MASTER_REMOVE; msg 215 drivers/w1/w1_int.c w1_netlink_send(dev, &msg); msg 27 drivers/w1/w1_netlink.c struct w1_netlink_msg *msg; /* advances as w1_netlink_msg is appened */ msg 42 drivers/w1/w1_netlink.c struct w1_netlink_msg *msg; msg 89 drivers/w1/w1_netlink.c block->msg = NULL; msg 113 drivers/w1/w1_netlink.c block->msg = (struct w1_netlink_msg *)(block->cn->data + block->cn->len); msg 125 drivers/w1/w1_netlink.c block->msg = (struct w1_netlink_msg *)block->cn->data; msg 145 drivers/w1/w1_netlink.c memcpy(block->msg, block->cur_msg, sizeof(*block->msg)); msg 146 drivers/w1/w1_netlink.c block->cn->len += sizeof(*block->msg); msg 147 drivers/w1/w1_netlink.c block->msg->len = 0; msg 148 drivers/w1/w1_netlink.c block->cmd = (struct w1_netlink_cmd *)(block->msg->data); msg 154 drivers/w1/w1_netlink.c block->msg->len += space; msg 168 drivers/w1/w1_netlink.c memcpy(block->msg, req_msg, sizeof(*req_msg)); msg 170 drivers/w1/w1_netlink.c block->msg->len = 0; msg 171 drivers/w1/w1_netlink.c block->msg->status = (u8)-error; msg 173 drivers/w1/w1_netlink.c struct w1_netlink_cmd *cmd = (struct w1_netlink_cmd *)block->msg->data; msg 176 drivers/w1/w1_netlink.c block->msg->len += sizeof(*cmd); msg 192 drivers/w1/w1_netlink.c static void w1_netlink_send_error(struct cn_msg *cn, struct w1_netlink_msg *msg, msg 197 drivers/w1/w1_netlink.c struct w1_netlink_msg msg; msg 200 drivers/w1/w1_netlink.c memcpy(&packet.msg, msg, sizeof(packet.msg)); msg 201 drivers/w1/w1_netlink.c packet.cn.len = sizeof(packet.msg); msg 202 drivers/w1/w1_netlink.c packet.msg.len = 0; msg 203 drivers/w1/w1_netlink.c packet.msg.status = (u8)-error; msg 214 drivers/w1/w1_netlink.c void w1_netlink_send(struct w1_master *dev, struct w1_netlink_msg *msg) msg 218 drivers/w1/w1_netlink.c struct w1_netlink_msg msg; msg 226 drivers/w1/w1_netlink.c packet.cn.len = sizeof(*msg); msg 228 drivers/w1/w1_netlink.c memcpy(&packet.msg, msg, sizeof(*msg)); msg 229 drivers/w1/w1_netlink.c packet.msg.len = 0; msg 252 drivers/w1/w1_netlink.c block->msg->len += sizeof(*data); msg 401 drivers/w1/w1_netlink.c struct w1_netlink_msg *msg; msg 414 drivers/w1/w1_netlink.c msg = (struct w1_netlink_msg *)cn->data; msg 416 drivers/w1/w1_netlink.c msg->type = W1_LIST_MASTERS; msg 417 drivers/w1/w1_netlink.c msg->status = 0; msg 418 drivers/w1/w1_netlink.c msg->len = 0; msg 419 drivers/w1/w1_netlink.c id = (u32 *)msg->data; msg 426 drivers/w1/w1_netlink.c msg->len = 0; msg 427 drivers/w1/w1_netlink.c id = (u32 *)msg->data; msg 431 drivers/w1/w1_netlink.c msg->len += sizeof(*id); msg 446 drivers/w1/w1_netlink.c u16 mlen = node->msg->len; msg 450 drivers/w1/w1_netlink.c struct w1_netlink_cmd *cmd = (struct w1_netlink_cmd *)node->msg->data; msg 456 drivers/w1/w1_netlink.c node->block->cur_msg = node->msg; msg 470 drivers/w1/w1_netlink.c w1_netlink_queue_status(node->block, node->msg, cmd, err); msg 479 drivers/w1/w1_netlink.c w1_netlink_queue_status(node->block, node->msg, cmd, err); msg 498 drivers/w1/w1_netlink.c static void w1_list_count_cmds(struct w1_netlink_msg *msg, int *cmd_count, msg 501 drivers/w1/w1_netlink.c struct w1_netlink_cmd *cmd = (struct w1_netlink_cmd *)msg->data; msg 502 drivers/w1/w1_netlink.c u16 mlen = msg->len; msg 522 drivers/w1/w1_netlink.c struct w1_master *dev = w1_search_master_id(msg->id.mst.id); msg 537 drivers/w1/w1_netlink.c struct w1_netlink_msg *msg = (struct w1_netlink_msg *)(cn + 1); msg 553 drivers/w1/w1_netlink.c w1_netlink_send_error(cn, msg, nsp->portid, -EINVAL); msg 562 drivers/w1/w1_netlink.c if (msg->len + sizeof(struct w1_netlink_msg) > msg_len) { msg 570 drivers/w1/w1_netlink.c if (msg->type == W1_MASTER_CMD || msg->type == W1_SLAVE_CMD) { msg 572 drivers/w1/w1_netlink.c w1_list_count_cmds(msg, &cmd_count, &slave_len); msg 575 drivers/w1/w1_netlink.c msg_len -= sizeof(struct w1_netlink_msg) + msg->len; msg 576 drivers/w1/w1_netlink.c msg = (struct w1_netlink_msg *)(((u8 *)msg) + msg 577 drivers/w1/w1_netlink.c sizeof(struct w1_netlink_msg) + msg->len); msg 579 drivers/w1/w1_netlink.c msg = (struct w1_netlink_msg *)(cn + 1); msg 609 drivers/w1/w1_netlink.c w1_netlink_send_error(cn, msg, nsp->portid, -ENOMEM); msg 637 drivers/w1/w1_netlink.c if (msg->len + sizeof(struct w1_netlink_msg) > msg_len) { msg 643 drivers/w1/w1_netlink.c if (msg->type == W1_LIST_MASTERS) { msg 651 drivers/w1/w1_netlink.c if (!msg->len) { msg 657 drivers/w1/w1_netlink.c if (msg->type == W1_MASTER_CMD) { msg 658 drivers/w1/w1_netlink.c dev = w1_search_master_id(msg->id.mst.id); msg 659 drivers/w1/w1_netlink.c } else if (msg->type == W1_SLAVE_CMD) { msg 660 drivers/w1/w1_netlink.c sl = w1_search_slave((struct w1_reg_num *)msg->id.id); msg 666 drivers/w1/w1_netlink.c msg->type, msg->len); msg 681 drivers/w1/w1_netlink.c node->msg = (struct w1_netlink_msg *)((u8 *)&block->request_cn + msg 682 drivers/w1/w1_netlink.c (size_t)((u8 *)msg - (u8 *)cn)); msg 698 drivers/w1/w1_netlink.c w1_netlink_send_error(cn, msg, nsp->portid, err); msg 699 drivers/w1/w1_netlink.c msg_len -= sizeof(struct w1_netlink_msg) + msg->len; msg 700 drivers/w1/w1_netlink.c msg = (struct w1_netlink_msg *)(((u8 *)msg) + msg 701 drivers/w1/w1_netlink.c sizeof(struct w1_netlink_msg) + msg->len); msg 225 drivers/xen/privcmd.c struct privcmd_mmap_entry *msg = data; msg 231 drivers/xen/privcmd.c if ((msg->npages > (LONG_MAX >> PAGE_SHIFT)) || msg 232 drivers/xen/privcmd.c ((unsigned long)(msg->npages << PAGE_SHIFT) >= -st->va)) msg 236 drivers/xen/privcmd.c if ((msg->va != st->va) || msg 237 drivers/xen/privcmd.c ((msg->va+(msg->npages<<PAGE_SHIFT)) > vma->vm_end)) msg 241 drivers/xen/privcmd.c msg->va & PAGE_MASK, msg 242 drivers/xen/privcmd.c msg->mfn, msg->npages, msg 248 drivers/xen/privcmd.c st->va += msg->npages << PAGE_SHIFT; msg 286 drivers/xen/privcmd.c struct privcmd_mmap_entry *msg = page_address(page); msg 288 drivers/xen/privcmd.c vma = find_vma(mm, msg->va); msg 291 drivers/xen/privcmd.c if (!vma || (msg->va != vma->vm_start) || vma->vm_private_data) msg 93 drivers/xen/pvcalls-back.c struct msghdr msg; msg 127 drivers/xen/pvcalls-back.c memset(&msg, 0, sizeof(msg)); msg 131 drivers/xen/pvcalls-back.c iov_iter_kvec(&msg.msg_iter, WRITE, vec, 1, wanted); msg 137 drivers/xen/pvcalls-back.c iov_iter_kvec(&msg.msg_iter, WRITE, vec, 2, wanted); msg 141 drivers/xen/pvcalls-back.c ret = inet_recvmsg(map->sock, &msg, wanted, MSG_DONTWAIT); msg 170 drivers/xen/pvcalls-back.c struct msghdr msg; msg 185 drivers/xen/pvcalls-back.c memset(&msg, 0, sizeof(msg)); msg 186 drivers/xen/pvcalls-back.c msg.msg_flags |= MSG_DONTWAIT; msg 190 drivers/xen/pvcalls-back.c iov_iter_kvec(&msg.msg_iter, READ, vec, 1, size); msg 196 drivers/xen/pvcalls-back.c iov_iter_kvec(&msg.msg_iter, READ, vec, 2, size); msg 200 drivers/xen/pvcalls-back.c ret = inet_sendmsg(map->sock, &msg, size); msg 531 drivers/xen/pvcalls-front.c int pvcalls_front_sendmsg(struct socket *sock, struct msghdr *msg, msg 538 drivers/xen/pvcalls-front.c flags = msg->msg_flags; msg 558 drivers/xen/pvcalls-front.c &map->active.data, &msg->msg_iter, msg 624 drivers/xen/pvcalls-front.c int pvcalls_front_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, msg 646 drivers/xen/pvcalls-front.c &msg->msg_iter, len, flags); msg 17 drivers/xen/pvcalls-front.h struct msghdr *msg, msg 20 drivers/xen/pvcalls-front.h struct msghdr *msg, msg 78 drivers/xen/xenbus/xenbus.h struct xsd_sockmsg msg; msg 134 drivers/xen/xenbus/xenbus.h int xenbus_dev_request_and_reply(struct xsd_sockmsg *msg, void *par); msg 216 drivers/xen/xenbus/xenbus_comms.c struct xsd_sockmsg msg; msg 254 drivers/xen/xenbus/xenbus_comms.c if (state.read != sizeof(state.msg)) { msg 255 drivers/xen/xenbus/xenbus_comms.c err = xb_read((void *)&state.msg + state.read, msg 256 drivers/xen/xenbus/xenbus_comms.c sizeof(state.msg) - state.read); msg 260 drivers/xen/xenbus/xenbus_comms.c if (state.read != sizeof(state.msg)) msg 262 drivers/xen/xenbus/xenbus_comms.c if (state.msg.len > XENSTORE_PAYLOAD_MAX) { msg 268 drivers/xen/xenbus/xenbus_comms.c len = state.msg.len + 1; msg 269 drivers/xen/xenbus/xenbus_comms.c if (state.msg.type == XS_WATCH_EVENT) msg 276 drivers/xen/xenbus/xenbus_comms.c if (state.msg.type == XS_WATCH_EVENT) msg 284 drivers/xen/xenbus/xenbus_comms.c err = xb_read(state.body + state.read, state.msg.len - state.read); msg 289 drivers/xen/xenbus/xenbus_comms.c if (state.read != state.msg.len) msg 292 drivers/xen/xenbus/xenbus_comms.c state.body[state.msg.len] = '\0'; msg 294 drivers/xen/xenbus/xenbus_comms.c if (state.msg.type == XS_WATCH_EVENT) { msg 295 drivers/xen/xenbus/xenbus_comms.c state.watch->len = state.msg.len; msg 301 drivers/xen/xenbus/xenbus_comms.c if (req->msg.req_id == state.msg.req_id) { msg 312 drivers/xen/xenbus/xenbus_comms.c req->msg.req_id = req->caller_req_id; msg 313 drivers/xen/xenbus/xenbus_comms.c req->msg.type = state.msg.type; msg 314 drivers/xen/xenbus/xenbus_comms.c req->msg.len = state.msg.len; msg 366 drivers/xen/xenbus/xenbus_comms.c base = &state.req->msg; msg 367 drivers/xen/xenbus/xenbus_comms.c len = sizeof(state.req->msg); msg 394 drivers/xen/xenbus/xenbus_comms.c state.req->msg.type = XS_ERROR; msg 85 drivers/xen/xenbus/xenbus_dev_frontend.c char msg[]; msg 110 drivers/xen/xenbus/xenbus_dev_frontend.c struct xsd_sockmsg msg; msg 153 drivers/xen/xenbus/xenbus_dev_frontend.c ret = copy_to_user(ubuf + i, &rb->msg[rb->cons], sz); msg 205 drivers/xen/xenbus/xenbus_dev_frontend.c memcpy(rb->msg, data, len); msg 378 drivers/xen/xenbus/xenbus_dev_frontend.c if (req->msg.type == XS_ERROR) { msg 387 drivers/xen/xenbus/xenbus_dev_frontend.c trans = xenbus_get_transaction(u, req->msg.tx_id); msg 397 drivers/xen/xenbus/xenbus_dev_frontend.c rc = queue_reply(&staging_q, &req->msg, sizeof(req->msg)); msg 399 drivers/xen/xenbus/xenbus_dev_frontend.c rc = queue_reply(&staging_q, req->body, req->msg.len); msg 425 drivers/xen/xenbus/xenbus_dev_frontend.c } msg; msg 428 drivers/xen/xenbus/xenbus_dev_frontend.c msg.hdr = u->u.msg; msg 429 drivers/xen/xenbus/xenbus_dev_frontend.c msg.hdr.type = msg_type; msg 430 drivers/xen/xenbus/xenbus_dev_frontend.c msg.hdr.len = strlen(reply) + 1; msg 431 drivers/xen/xenbus/xenbus_dev_frontend.c if (msg.hdr.len > sizeof(msg.body)) msg 433 drivers/xen/xenbus/xenbus_dev_frontend.c memcpy(&msg.body, reply, msg.hdr.len); msg 436 drivers/xen/xenbus/xenbus_dev_frontend.c rc = queue_reply(&u->read_buffers, &msg, sizeof(msg.hdr) + msg.hdr.len); msg 454 drivers/xen/xenbus/xenbus_dev_frontend.c } *msg = (void *)u->u.buffer; msg 464 drivers/xen/xenbus/xenbus_dev_frontend.c } else if (msg->hdr.tx_id != 0 && msg 465 drivers/xen/xenbus/xenbus_dev_frontend.c !xenbus_get_transaction(u, msg->hdr.tx_id)) msg 468 drivers/xen/xenbus/xenbus_dev_frontend.c !(msg->hdr.len == 2 && msg 469 drivers/xen/xenbus/xenbus_dev_frontend.c (!strcmp(msg->body, "T") || !strcmp(msg->body, "F")))) msg 472 drivers/xen/xenbus/xenbus_dev_frontend.c trans = xenbus_get_transaction(u, msg->hdr.tx_id); msg 476 drivers/xen/xenbus/xenbus_dev_frontend.c if (!strcmp(msg->body, "T")) msg 486 drivers/xen/xenbus/xenbus_dev_frontend.c rc = xenbus_dev_request_and_reply(&msg->hdr, u); msg 502 drivers/xen/xenbus/xenbus_dev_frontend.c path = u->u.buffer + sizeof(u->u.msg); msg 503 drivers/xen/xenbus/xenbus_dev_frontend.c token = memchr(path, 0, u->u.msg.len); msg 509 drivers/xen/xenbus/xenbus_dev_frontend.c if (memchr(token, 0, u->u.msg.len - (token - path)) == NULL) { msg 602 drivers/xen/xenbus/xenbus_dev_frontend.c if (u->len < sizeof(u->u.msg)) msg 607 drivers/xen/xenbus/xenbus_dev_frontend.c if ((sizeof(u->u.msg) + u->u.msg.len) > sizeof(u->u.buffer)) { msg 613 drivers/xen/xenbus/xenbus_dev_frontend.c if (u->len < (sizeof(u->u.msg) + u->u.msg.len)) msg 622 drivers/xen/xenbus/xenbus_dev_frontend.c msg_type = u->u.msg.type; msg 119 drivers/xen/xenbus/xenbus_xs.c req->type = req->msg.type; msg 143 drivers/xen/xenbus/xenbus_xs.c if ((req->type == XS_TRANSACTION_START && req->msg.type == XS_ERROR) || msg 145 drivers/xen/xenbus/xenbus_xs.c !WARN_ON_ONCE(req->msg.type == XS_ERROR && msg 227 drivers/xen/xenbus/xenbus_xs.c static void xs_send(struct xb_req_data *req, struct xsd_sockmsg *msg) msg 231 drivers/xen/xenbus/xenbus_xs.c req->msg = *msg; msg 237 drivers/xen/xenbus/xenbus_xs.c req->caller_req_id = req->msg.req_id; msg 238 drivers/xen/xenbus/xenbus_xs.c req->msg.req_id = xs_request_enter(req); msg 249 drivers/xen/xenbus/xenbus_xs.c static void *xs_wait_for_reply(struct xb_req_data *req, struct xsd_sockmsg *msg) msg 257 drivers/xen/xenbus/xenbus_xs.c msg->type = req->msg.type; msg 258 drivers/xen/xenbus/xenbus_xs.c msg->len = req->msg.len; msg 276 drivers/xen/xenbus/xenbus_xs.c int xenbus_dev_request_and_reply(struct xsd_sockmsg *msg, void *par) msg 286 drivers/xen/xenbus/xenbus_xs.c vec->iov_len = msg->len; msg 287 drivers/xen/xenbus/xenbus_xs.c vec->iov_base = msg + 1; msg 295 drivers/xen/xenbus/xenbus_xs.c xs_send(req, msg); msg 309 drivers/xen/xenbus/xenbus_xs.c struct xsd_sockmsg msg; msg 323 drivers/xen/xenbus/xenbus_xs.c msg.req_id = 0; msg 324 drivers/xen/xenbus/xenbus_xs.c msg.tx_id = t.id; msg 325 drivers/xen/xenbus/xenbus_xs.c msg.type = type; msg 326 drivers/xen/xenbus/xenbus_xs.c msg.len = 0; msg 328 drivers/xen/xenbus/xenbus_xs.c msg.len += iovec[i].iov_len; msg 330 drivers/xen/xenbus/xenbus_xs.c xs_send(req, &msg); msg 332 drivers/xen/xenbus/xenbus_xs.c ret = xs_wait_for_reply(req, &msg); msg 334 drivers/xen/xenbus/xenbus_xs.c *len = msg.len; msg 339 drivers/xen/xenbus/xenbus_xs.c if (msg.type == XS_ERROR) { msg 345 drivers/xen/xenbus/xenbus_xs.c if (msg.type != type) { msg 347 drivers/xen/xenbus/xenbus_xs.c msg.type, type); msg 282 fs/afs/rxrpc.c static void afs_load_bvec(struct afs_call *call, struct msghdr *msg, msg 293 fs/afs/rxrpc.c msg->msg_flags |= MSG_MORE; msg 298 fs/afs/rxrpc.c msg->msg_flags &= ~MSG_MORE; msg 307 fs/afs/rxrpc.c iov_iter_bvec(&msg->msg_iter, WRITE, bv, nr, bytes); msg 325 fs/afs/rxrpc.c static int afs_send_pages(struct afs_call *call, struct msghdr *msg) msg 336 fs/afs/rxrpc.c afs_load_bvec(call, msg, bv, first, last, offset); msg 337 fs/afs/rxrpc.c trace_afs_send_pages(call, msg, first, last, offset); msg 340 fs/afs/rxrpc.c bytes = msg->msg_iter.count; msg 341 fs/afs/rxrpc.c nr = msg->msg_iter.nr_segs; msg 343 fs/afs/rxrpc.c ret = rxrpc_kernel_send_data(call->net->socket, call->rxcall, msg, msg 365 fs/afs/rxrpc.c struct msghdr msg; msg 436 fs/afs/rxrpc.c msg.msg_name = NULL; msg 437 fs/afs/rxrpc.c msg.msg_namelen = 0; msg 438 fs/afs/rxrpc.c iov_iter_kvec(&msg.msg_iter, WRITE, iov, 1, call->request_size); msg 439 fs/afs/rxrpc.c msg.msg_control = NULL; msg 440 fs/afs/rxrpc.c msg.msg_controllen = 0; msg 441 fs/afs/rxrpc.c msg.msg_flags = MSG_WAITALL | (call->send_pages ? MSG_MORE : 0); msg 444 fs/afs/rxrpc.c &msg, call->request_size, msg 450 fs/afs/rxrpc.c ret = afs_send_pages(call, &msg); msg 468 fs/afs/rxrpc.c iov_iter_kvec(&msg.msg_iter, READ, NULL, 0, 0); msg 470 fs/afs/rxrpc.c &msg.msg_iter, false, msg 849 fs/afs/rxrpc.c struct msghdr msg; msg 855 fs/afs/rxrpc.c msg.msg_name = NULL; msg 856 fs/afs/rxrpc.c msg.msg_namelen = 0; msg 857 fs/afs/rxrpc.c iov_iter_kvec(&msg.msg_iter, WRITE, NULL, 0, 0); msg 858 fs/afs/rxrpc.c msg.msg_control = NULL; msg 859 fs/afs/rxrpc.c msg.msg_controllen = 0; msg 860 fs/afs/rxrpc.c msg.msg_flags = 0; msg 862 fs/afs/rxrpc.c switch (rxrpc_kernel_send_data(net->socket, call->rxcall, &msg, 0, msg 885 fs/afs/rxrpc.c struct msghdr msg; msg 895 fs/afs/rxrpc.c msg.msg_name = NULL; msg 896 fs/afs/rxrpc.c msg.msg_namelen = 0; msg 897 fs/afs/rxrpc.c iov_iter_kvec(&msg.msg_iter, WRITE, iov, 1, len); msg 898 fs/afs/rxrpc.c msg.msg_control = NULL; msg 899 fs/afs/rxrpc.c msg.msg_controllen = 0; msg 900 fs/afs/rxrpc.c msg.msg_flags = 0; msg 902 fs/afs/rxrpc.c n = rxrpc_kernel_send_data(net->socket, call->rxcall, &msg, len, msg 295 fs/binfmt_flat.c ret, strm.msg); msg 131 fs/buffer.c static void buffer_io_error(struct buffer_head *bh, char *msg) msg 136 fs/buffer.c bh->b_bdev, (unsigned long long)bh->b_blocknr, msg); msg 1138 fs/ceph/caps.c struct ceph_msg *msg; msg 1156 fs/ceph/caps.c msg = ceph_msg_new(CEPH_MSG_CLIENT_CAPS, sizeof(*fc) + extra_len, msg 1158 fs/ceph/caps.c if (!msg) msg 1161 fs/ceph/caps.c msg->hdr.version = cpu_to_le16(10); msg 1162 fs/ceph/caps.c msg->hdr.tid = cpu_to_le64(arg->flush_tid); msg 1164 fs/ceph/caps.c fc = msg->front.iov_base; msg 1191 fs/ceph/caps.c msg->middle = ceph_buffer_get(arg->xattr_buf); msg 1193 fs/ceph/caps.c msg->hdr.middle_len = cpu_to_le32(arg->xattr_buf->vec.iov_len); msg 1233 fs/ceph/caps.c ceph_con_send(&arg->session->s_con, msg); msg 3802 fs/ceph/caps.c struct ceph_msg *msg) msg 3812 fs/ceph/caps.c int msg_version = le16_to_cpu(msg->hdr.version); msg 3823 fs/ceph/caps.c end = msg->front.iov_base + msg->front.iov_len; msg 3824 fs/ceph/caps.c if (msg->front.iov_len < sizeof(*h)) msg 3826 fs/ceph/caps.c h = msg->front.iov_base; msg 3947 fs/ceph/caps.c handle_cap_flushsnap_ack(inode, le64_to_cpu(msg->hdr.tid), msg 3969 fs/ceph/caps.c h, msg->middle, &extra_info); msg 3993 fs/ceph/caps.c h, msg->middle, &extra_info); msg 3997 fs/ceph/caps.c handle_cap_flush_ack(inode, le64_to_cpu(msg->hdr.tid), msg 4030 fs/ceph/caps.c ceph_msg_dump(msg); msg 467 fs/ceph/mds_client.c static int parse_reply_info(struct ceph_msg *msg, msg 475 fs/ceph/mds_client.c info->head = msg->front.iov_base; msg 476 fs/ceph/mds_client.c p = msg->front.iov_base + sizeof(struct ceph_mds_reply_head); msg 477 fs/ceph/mds_client.c end = p + msg->front.iov_len - sizeof(struct ceph_mds_reply_head); msg 1032 fs/ceph/mds_client.c struct ceph_msg *msg; msg 1035 fs/ceph/mds_client.c msg = ceph_msg_new(CEPH_MSG_CLIENT_SESSION, sizeof(*h), GFP_NOFS, msg 1037 fs/ceph/mds_client.c if (!msg) { msg 1041 fs/ceph/mds_client.c h = msg->front.iov_base; msg 1045 fs/ceph/mds_client.c return msg; msg 1075 fs/ceph/mds_client.c struct ceph_msg *msg; msg 1103 fs/ceph/mds_client.c msg = ceph_msg_new(CEPH_MSG_CLIENT_SESSION, sizeof(*h) + extra_bytes, msg 1105 fs/ceph/mds_client.c if (!msg) { msg 1109 fs/ceph/mds_client.c p = msg->front.iov_base; msg 1110 fs/ceph/mds_client.c end = p + msg->front.iov_len; msg 1122 fs/ceph/mds_client.c msg->hdr.version = cpu_to_le16(3); msg 1123 fs/ceph/mds_client.c msg->hdr.compat_version = cpu_to_le16(1); msg 1145 fs/ceph/mds_client.c msg->front.iov_len = p - msg->front.iov_base; msg 1146 fs/ceph/mds_client.c msg->hdr.front_len = cpu_to_le32(msg->front.iov_len); msg 1148 fs/ceph/mds_client.c return msg; msg 1159 fs/ceph/mds_client.c struct ceph_msg *msg; msg 1171 fs/ceph/mds_client.c msg = create_session_open_msg(mdsc, session->s_seq); msg 1172 fs/ceph/mds_client.c if (!msg) msg 1174 fs/ceph/mds_client.c ceph_con_send(&session->s_con, msg); msg 1586 fs/ceph/mds_client.c struct ceph_msg *msg; msg 1605 fs/ceph/mds_client.c msg = create_session_msg(CEPH_SESSION_REQUEST_RENEWCAPS, msg 1607 fs/ceph/mds_client.c if (!msg) msg 1609 fs/ceph/mds_client.c ceph_con_send(&session->s_con, msg); msg 1616 fs/ceph/mds_client.c struct ceph_msg *msg; msg 1620 fs/ceph/mds_client.c msg = create_session_msg(CEPH_SESSION_FLUSHMSG_ACK, seq); msg 1621 fs/ceph/mds_client.c if (!msg) msg 1623 fs/ceph/mds_client.c ceph_con_send(&session->s_con, msg); msg 1668 fs/ceph/mds_client.c struct ceph_msg *msg; msg 1673 fs/ceph/mds_client.c msg = create_session_msg(CEPH_SESSION_REQUEST_CLOSE, session->s_seq); msg 1674 fs/ceph/mds_client.c if (!msg) msg 1676 fs/ceph/mds_client.c ceph_con_send(&session->s_con, msg); msg 1860 fs/ceph/mds_client.c struct ceph_msg *msg = NULL; msg 1881 fs/ceph/mds_client.c if (!msg) { msg 1882 fs/ceph/mds_client.c msg = ceph_msg_new(CEPH_MSG_CLIENT_CAPRELEASE, msg 1884 fs/ceph/mds_client.c if (!msg) msg 1886 fs/ceph/mds_client.c head = msg->front.iov_base; msg 1888 fs/ceph/mds_client.c msg->front.iov_len = sizeof(*head); msg 1890 fs/ceph/mds_client.c msg->hdr.version = cpu_to_le16(2); msg 1891 fs/ceph/mds_client.c msg->hdr.compat_version = cpu_to_le16(1); msg 1899 fs/ceph/mds_client.c head = msg->front.iov_base; msg 1902 fs/ceph/mds_client.c item = msg->front.iov_base + msg->front.iov_len; msg 1907 fs/ceph/mds_client.c msg->front.iov_len += sizeof(*item); msg 1913 fs/ceph/mds_client.c cap_barrier = msg->front.iov_base + msg->front.iov_len; msg 1915 fs/ceph/mds_client.c msg->front.iov_len += sizeof(*cap_barrier); msg 1917 fs/ceph/mds_client.c msg->hdr.front_len = cpu_to_le32(msg->front.iov_len); msg 1918 fs/ceph/mds_client.c dout("send_cap_releases mds%d %p\n", session->s_mds, msg); msg 1919 fs/ceph/mds_client.c ceph_con_send(&session->s_con, msg); msg 1920 fs/ceph/mds_client.c msg = NULL; msg 1931 fs/ceph/mds_client.c if (msg) { msg 1933 fs/ceph/mds_client.c cap_barrier = msg->front.iov_base + msg->front.iov_len; msg 1935 fs/ceph/mds_client.c msg->front.iov_len += sizeof(*cap_barrier); msg 1937 fs/ceph/mds_client.c msg->hdr.front_len = cpu_to_le32(msg->front.iov_len); msg 1938 fs/ceph/mds_client.c dout("send_cap_releases mds%d %p\n", session->s_mds, msg); msg 1939 fs/ceph/mds_client.c ceph_con_send(&session->s_con, msg); msg 2288 fs/ceph/mds_client.c struct ceph_msg *msg; msg 2306 fs/ceph/mds_client.c msg = ERR_PTR(ret); msg 2316 fs/ceph/mds_client.c msg = ERR_PTR(ret); msg 2333 fs/ceph/mds_client.c msg = ceph_msg_new2(CEPH_MSG_CLIENT_REQUEST, len, 1, GFP_NOFS, false); msg 2334 fs/ceph/mds_client.c if (!msg) { msg 2335 fs/ceph/mds_client.c msg = ERR_PTR(-ENOMEM); msg 2339 fs/ceph/mds_client.c msg->hdr.version = cpu_to_le16(2); msg 2340 fs/ceph/mds_client.c msg->hdr.tid = cpu_to_le64(req->r_tid); msg 2342 fs/ceph/mds_client.c head = msg->front.iov_base; msg 2343 fs/ceph/mds_client.c p = msg->front.iov_base + sizeof(*head); msg 2344 fs/ceph/mds_client.c end = msg->front.iov_base + msg->front.iov_len; msg 2356 fs/ceph/mds_client.c req->r_request_release_offset = p - msg->front.iov_base; msg 2380 fs/ceph/mds_client.c p = msg->front.iov_base + req->r_request_release_offset; msg 2393 fs/ceph/mds_client.c msg->front.iov_len = p - msg->front.iov_base; msg 2394 fs/ceph/mds_client.c msg->hdr.front_len = cpu_to_le32(msg->front.iov_len); msg 2398 fs/ceph/mds_client.c ceph_msg_data_add_pagelist(msg, pagelist); msg 2399 fs/ceph/mds_client.c msg->hdr.data_len = cpu_to_le32(pagelist->length); msg 2401 fs/ceph/mds_client.c msg->hdr.data_len = 0; msg 2404 fs/ceph/mds_client.c msg->hdr.data_off = cpu_to_le16(0); msg 2413 fs/ceph/mds_client.c return msg; msg 2436 fs/ceph/mds_client.c struct ceph_msg *msg; msg 2460 fs/ceph/mds_client.c msg = req->r_request; msg 2461 fs/ceph/mds_client.c rhead = msg->front.iov_base; msg 2476 fs/ceph/mds_client.c p = msg->front.iov_base + req->r_request_release_offset; msg 2483 fs/ceph/mds_client.c msg->front.iov_len = p - msg->front.iov_base; msg 2484 fs/ceph/mds_client.c msg->hdr.front_len = cpu_to_le32(msg->front.iov_len); msg 2492 fs/ceph/mds_client.c msg = create_request_message(mdsc, req, mds, drop_cap_releases); msg 2493 fs/ceph/mds_client.c if (IS_ERR(msg)) { msg 2494 fs/ceph/mds_client.c req->r_err = PTR_ERR(msg); msg 2495 fs/ceph/mds_client.c return PTR_ERR(msg); msg 2497 fs/ceph/mds_client.c req->r_request = msg; msg 2499 fs/ceph/mds_client.c rhead = msg->front.iov_base; msg 2788 fs/ceph/mds_client.c static void handle_reply(struct ceph_mds_session *session, struct ceph_msg *msg) msg 2792 fs/ceph/mds_client.c struct ceph_mds_reply_head *head = msg->front.iov_base; msg 2799 fs/ceph/mds_client.c if (msg->front.iov_len < sizeof(*head)) { msg 2801 fs/ceph/mds_client.c ceph_msg_dump(msg); msg 2806 fs/ceph/mds_client.c tid = le64_to_cpu(msg->hdr.tid); msg 2907 fs/ceph/mds_client.c err = parse_reply_info(msg, rinfo, (u64)-1); msg 2909 fs/ceph/mds_client.c err = parse_reply_info(msg, rinfo, session->s_con.peer_features); msg 2915 fs/ceph/mds_client.c ceph_msg_dump(msg); msg 2967 fs/ceph/mds_client.c req->r_reply = ceph_msg_get(msg); msg 2991 fs/ceph/mds_client.c struct ceph_msg *msg) msg 2994 fs/ceph/mds_client.c u64 tid = le64_to_cpu(msg->hdr.tid); msg 2998 fs/ceph/mds_client.c void *p = msg->front.iov_base; msg 2999 fs/ceph/mds_client.c void *end = p + msg->front.iov_len; msg 3066 fs/ceph/mds_client.c struct ceph_msg *msg) msg 3070 fs/ceph/mds_client.c int msg_version = le16_to_cpu(msg->hdr.version); msg 3071 fs/ceph/mds_client.c void *p = msg->front.iov_base; msg 3072 fs/ceph/mds_client.c void *end = p + msg->front.iov_len; msg 3200 fs/ceph/mds_client.c (int)msg->front.iov_len); msg 3201 fs/ceph/mds_client.c ceph_msg_dump(msg); msg 3864 fs/ceph/mds_client.c struct ceph_msg *msg) msg 3871 fs/ceph/mds_client.c struct ceph_mds_lease *h = msg->front.iov_base; msg 3880 fs/ceph/mds_client.c if (msg->front.iov_len < sizeof(*h) + sizeof(u32)) msg 3886 fs/ceph/mds_client.c if (msg->front.iov_len < sizeof(*h) + sizeof(u32) + dname.len) msg 3954 fs/ceph/mds_client.c ceph_msg_get(msg); msg 3955 fs/ceph/mds_client.c ceph_con_send(&session->s_con, msg); msg 3965 fs/ceph/mds_client.c ceph_msg_dump(msg); msg 3972 fs/ceph/mds_client.c struct ceph_msg *msg; msg 3980 fs/ceph/mds_client.c msg = ceph_msg_new(CEPH_MSG_CLIENT_LEASE, len, GFP_NOFS, false); msg 3981 fs/ceph/mds_client.c if (!msg) msg 3983 fs/ceph/mds_client.c lease = msg->front.iov_base; msg 4001 fs/ceph/mds_client.c msg->more_to_follow = (action == CEPH_MDS_LEASE_RELEASE); msg 4003 fs/ceph/mds_client.c ceph_con_send(&session->s_con, msg); msg 4459 fs/ceph/mds_client.c void ceph_mdsc_handle_fsmap(struct ceph_mds_client *mdsc, struct ceph_msg *msg) msg 4463 fs/ceph/mds_client.c void *p = msg->front.iov_base; msg 4464 fs/ceph/mds_client.c void *end = p + msg->front.iov_len; msg 4538 fs/ceph/mds_client.c void ceph_mdsc_handle_mdsmap(struct ceph_mds_client *mdsc, struct ceph_msg *msg) msg 4542 fs/ceph/mds_client.c void *p = msg->front.iov_base; msg 4543 fs/ceph/mds_client.c void *end = p + msg->front.iov_len; msg 4631 fs/ceph/mds_client.c static void dispatch(struct ceph_connection *con, struct ceph_msg *msg) msg 4635 fs/ceph/mds_client.c int type = le16_to_cpu(msg->hdr.type); msg 4646 fs/ceph/mds_client.c ceph_mdsc_handle_mdsmap(mdsc, msg); msg 4649 fs/ceph/mds_client.c ceph_mdsc_handle_fsmap(mdsc, msg); msg 4652 fs/ceph/mds_client.c handle_session(s, msg); msg 4655 fs/ceph/mds_client.c handle_reply(s, msg); msg 4658 fs/ceph/mds_client.c handle_forward(mdsc, s, msg); msg 4661 fs/ceph/mds_client.c ceph_handle_caps(s, msg); msg 4664 fs/ceph/mds_client.c ceph_handle_snap(mdsc, s, msg); msg 4667 fs/ceph/mds_client.c handle_lease(mdsc, s, msg); msg 4670 fs/ceph/mds_client.c ceph_handle_quota(mdsc, s, msg); msg 4678 fs/ceph/mds_client.c ceph_msg_put(msg); msg 4751 fs/ceph/mds_client.c struct ceph_msg *msg; msg 4759 fs/ceph/mds_client.c msg = ceph_msg_new(type, front_len, GFP_NOFS, false); msg 4760 fs/ceph/mds_client.c if (!msg) { msg 4766 fs/ceph/mds_client.c return msg; msg 4769 fs/ceph/mds_client.c static int mds_sign_message(struct ceph_msg *msg) msg 4771 fs/ceph/mds_client.c struct ceph_mds_session *s = msg->con->private; msg 4774 fs/ceph/mds_client.c return ceph_auth_sign_message(auth, msg); msg 4777 fs/ceph/mds_client.c static int mds_check_message_signature(struct ceph_msg *msg) msg 4779 fs/ceph/mds_client.c struct ceph_mds_session *s = msg->con->private; msg 4782 fs/ceph/mds_client.c return ceph_auth_check_message_signature(auth, msg); msg 457 fs/ceph/mds_client.h struct ceph_msg *msg, int mds); msg 514 fs/ceph/mds_client.h struct ceph_msg *msg); msg 516 fs/ceph/mds_client.h struct ceph_msg *msg); msg 39 fs/ceph/quota.c struct ceph_msg *msg) msg 42 fs/ceph/quota.c struct ceph_mds_quota *h = msg->front.iov_base; msg 47 fs/ceph/quota.c if (msg->front.iov_len < sizeof(*h)) { msg 49 fs/ceph/quota.c session->s_mds, (int)msg->front.iov_len); msg 50 fs/ceph/quota.c ceph_msg_dump(msg); msg 844 fs/ceph/snap.c struct ceph_msg *msg) msg 852 fs/ceph/snap.c void *p = msg->front.iov_base; msg 853 fs/ceph/snap.c void *e = p + msg->front.iov_len; msg 861 fs/ceph/snap.c if (msg->front.iov_len < sizeof(*h)) msg 1003 fs/ceph/snap.c ceph_msg_dump(msg); msg 661 fs/ceph/super.c static int extra_mon_dispatch(struct ceph_client *client, struct ceph_msg *msg) msg 664 fs/ceph/super.c int type = le16_to_cpu(msg->hdr.type); msg 668 fs/ceph/super.c ceph_mdsc_handle_mdsmap(fsc->mdsc, msg); msg 671 fs/ceph/super.c ceph_mdsc_handle_fsmap(fsc->mdsc, msg); msg 871 fs/ceph/super.h struct ceph_msg *msg); msg 1035 fs/ceph/super.h struct ceph_msg *msg); msg 1171 fs/ceph/super.h struct ceph_msg *msg); msg 178 fs/cifs/cifs_spnego.c struct cifs_spnego_msg *msg = spnego_key->payload.data[0]; msg 179 fs/cifs/cifs_spnego.c cifs_dump_mem("SPNEGO reply blob:", msg->data, min(1024U, msg 180 fs/cifs/cifs_spnego.c msg->secblob_len + msg->sesskey_len)); msg 1028 fs/cifs/sess.c struct cifs_spnego_msg *msg; msg 1048 fs/cifs/sess.c msg = spnego_key->payload.data[0]; msg 1053 fs/cifs/sess.c if (msg->version != CIFS_SPNEGO_UPCALL_VERSION) { msg 1056 fs/cifs/sess.c CIFS_SPNEGO_UPCALL_VERSION, msg->version); msg 1061 fs/cifs/sess.c ses->auth_key.response = kmemdup(msg->data, msg->sesskey_len, msg 1065 fs/cifs/sess.c msg->sesskey_len); msg 1069 fs/cifs/sess.c ses->auth_key.len = msg->sesskey_len; msg 1074 fs/cifs/sess.c sess_data->iov[1].iov_base = msg->data + msg->sesskey_len; msg 1075 fs/cifs/sess.c sess_data->iov[1].iov_len = msg->secblob_len; msg 1315 fs/cifs/smb2pdu.c struct cifs_spnego_msg *msg; msg 1330 fs/cifs/smb2pdu.c msg = spnego_key->payload.data[0]; msg 1335 fs/cifs/smb2pdu.c if (msg->version != CIFS_SPNEGO_UPCALL_VERSION) { msg 1338 fs/cifs/smb2pdu.c CIFS_SPNEGO_UPCALL_VERSION, msg->version); msg 1343 fs/cifs/smb2pdu.c ses->auth_key.response = kmemdup(msg->data, msg->sesskey_len, msg 1348 fs/cifs/smb2pdu.c msg->sesskey_len); msg 1352 fs/cifs/smb2pdu.c ses->auth_key.len = msg->sesskey_len; msg 1354 fs/cifs/smb2pdu.c sess_data->iov[1].iov_base = msg->data + msg->sesskey_len; msg 1355 fs/cifs/smb2pdu.c sess_data->iov[1].iov_len = msg->secblob_len; msg 2021 fs/cifs/smbdirect.c int smbd_recv(struct smbd_connection *info, struct msghdr *msg) msg 2028 fs/cifs/smbdirect.c if (iov_iter_rw(&msg->msg_iter) == WRITE) { msg 2031 fs/cifs/smbdirect.c iov_iter_rw(&msg->msg_iter)); msg 2036 fs/cifs/smbdirect.c switch (iov_iter_type(&msg->msg_iter)) { msg 2038 fs/cifs/smbdirect.c buf = msg->msg_iter.kvec->iov_base; msg 2039 fs/cifs/smbdirect.c to_read = msg->msg_iter.kvec->iov_len; msg 2044 fs/cifs/smbdirect.c page = msg->msg_iter.bvec->bv_page; msg 2045 fs/cifs/smbdirect.c page_offset = msg->msg_iter.bvec->bv_offset; msg 2046 fs/cifs/smbdirect.c to_read = msg->msg_iter.bvec->bv_len; msg 2053 fs/cifs/smbdirect.c iov_iter_type(&msg->msg_iter)); msg 2060 fs/cifs/smbdirect.c msg->msg_iter.count = 0; msg 277 fs/cifs/smbdirect.h int smbd_recv(struct smbd_connection *info, struct msghdr *msg); msg 318 fs/cifs/smbdirect.h static inline int smbd_recv(struct smbd_connection *info, struct msghdr *msg) {return -1; } msg 626 fs/dlm/lowcomms.c struct msghdr msg = {}; msg 675 fs/dlm/lowcomms.c iov_iter_kvec(&msg.msg_iter, READ, iov, nvec, len); msg 677 fs/dlm/lowcomms.c r = ret = sock_recvmsg(con->sock, &msg, MSG_DONTWAIT | MSG_NOSIGNAL); msg 398 fs/ecryptfs/ecryptfs_kernel.h struct ecryptfs_message *msg; msg 619 fs/ecryptfs/ecryptfs_kernel.h struct ecryptfs_message *msg, u32 seq); msg 200 fs/ecryptfs/keystore.c struct ecryptfs_message *msg) msg 218 fs/ecryptfs/keystore.c message_len = msg->data_len; msg 219 fs/ecryptfs/keystore.c data = msg->data; msg 347 fs/ecryptfs/keystore.c struct ecryptfs_message *msg) msg 362 fs/ecryptfs/keystore.c message_len = msg->data_len; msg 363 fs/ecryptfs/keystore.c data = msg->data; msg 1130 fs/ecryptfs/keystore.c struct ecryptfs_message *msg = NULL; msg 1154 fs/ecryptfs/keystore.c rc = ecryptfs_wait_for_response(msg_ctx, &msg); msg 1162 fs/ecryptfs/keystore.c &cipher_code, msg); msg 1185 fs/ecryptfs/keystore.c kfree(msg); msg 1968 fs/ecryptfs/keystore.c struct ecryptfs_message *msg; msg 1988 fs/ecryptfs/keystore.c rc = ecryptfs_wait_for_response(msg_ctx, &msg); msg 1995 fs/ecryptfs/keystore.c rc = parse_tag_67_packet(key_rec, msg); msg 1998 fs/ecryptfs/keystore.c kfree(msg); msg 87 fs/ecryptfs/messaging.c kfree(msg_ctx->msg); msg 88 fs/ecryptfs/messaging.c msg_ctx->msg = NULL; msg 206 fs/ecryptfs/messaging.c struct ecryptfs_message *msg, u32 seq) msg 212 fs/ecryptfs/messaging.c if (msg->index >= ecryptfs_message_buf_len) { msg 216 fs/ecryptfs/messaging.c "allowable is [%d]\n", __func__, msg->index, msg 220 fs/ecryptfs/messaging.c msg_ctx = &ecryptfs_msg_ctx_arr[msg->index]; msg 234 fs/ecryptfs/messaging.c msg_size = (sizeof(*msg) + msg->data_len); msg 235 fs/ecryptfs/messaging.c msg_ctx->msg = kmemdup(msg, msg_size, GFP_KERNEL); msg 236 fs/ecryptfs/messaging.c if (!msg_ctx->msg) { msg 325 fs/ecryptfs/messaging.c struct ecryptfs_message **msg) msg 342 fs/ecryptfs/messaging.c *msg = msg_ctx->msg; msg 343 fs/ecryptfs/messaging.c msg_ctx->msg = NULL; msg 398 fs/ecryptfs/messaging.c ecryptfs_msg_ctx_arr[i].msg = NULL; msg 419 fs/ecryptfs/messaging.c kfree(ecryptfs_msg_ctx_arr[i].msg); msg 150 fs/ecryptfs/miscdev.c struct ecryptfs_message *msg; msg 152 fs/ecryptfs/miscdev.c msg = kmalloc((sizeof(*msg) + data_size), GFP_KERNEL); msg 153 fs/ecryptfs/miscdev.c if (!msg) msg 157 fs/ecryptfs/miscdev.c msg_ctx->msg = msg; msg 158 fs/ecryptfs/miscdev.c msg_ctx->msg->index = msg_ctx->index; msg 159 fs/ecryptfs/miscdev.c msg_ctx->msg->data_len = data_size; msg 161 fs/ecryptfs/miscdev.c memcpy(msg_ctx->msg->data, data, data_size); msg 162 fs/ecryptfs/miscdev.c msg_ctx->msg_size = (sizeof(*msg_ctx->msg) + data_size); msg 259 fs/ecryptfs/miscdev.c if (msg_ctx->msg) { msg 289 fs/ecryptfs/miscdev.c if (msg_ctx->msg) { msg 293 fs/ecryptfs/miscdev.c if (copy_to_user(&buf[i], msg_ctx->msg, msg_ctx->msg_size)) msg 299 fs/ecryptfs/miscdev.c kfree(msg_ctx->msg); msg 300 fs/ecryptfs/miscdev.c msg_ctx->msg = NULL; msg 324 fs/ecryptfs/miscdev.c struct ecryptfs_message *msg = (struct ecryptfs_message *)data; msg 327 fs/ecryptfs/miscdev.c if ((sizeof(*msg) + msg->data_len) != data_size) { msg 330 fs/ecryptfs/miscdev.c (sizeof(*msg) + msg->data_len), data_size); msg 334 fs/ecryptfs/miscdev.c rc = ecryptfs_process_response(daemon, msg, seq); msg 2768 fs/ext4/ext4.h #define dump_mmp_msg(sb, mmp, msg) \ msg 2769 fs/ext4/ext4.h __dump_mmp_msg(sb, mmp, __func__, __LINE__, msg) msg 2811 fs/ext4/ext4.h #define dump_mmp_msg(sb, mmp, msg) \ msg 135 fs/ext4/hash.c static void str2hashbuf_signed(const char *msg, int len, __u32 *buf, int num) msg 139 fs/ext4/hash.c const signed char *scp = (const signed char *) msg; msg 161 fs/ext4/hash.c static void str2hashbuf_unsigned(const char *msg, int len, __u32 *buf, int num) msg 165 fs/ext4/hash.c const unsigned char *ucp = (const unsigned char *) msg; msg 119 fs/ext4/mmp.c const char *function, unsigned int line, const char *msg) msg 121 fs/ext4/mmp.c __ext4_warning(sb, function, line, "%s", msg); msg 43 fs/f2fs/hash.c static void str2hashbuf(const unsigned char *msg, size_t len, msg 58 fs/f2fs/hash.c val = msg[i] + (val << 8); msg 510 fs/gfs2/dir.c const char *msg = "gfs2_dirent too small"; msg 513 fs/gfs2/dir.c msg = "gfs2_dirent misaligned"; msg 516 fs/gfs2/dir.c msg = "gfs2_dirent points beyond end of block"; msg 519 fs/gfs2/dir.c msg = "zero inode number"; msg 522 fs/gfs2/dir.c msg = "name length is greater than space in dirent"; msg 530 fs/gfs2/dir.c __func__, msg, first ? "first in block" : "not first in block"); msg 1473 fs/gfs2/quota.c static void quotad_error(struct gfs2_sbd *sdp, const char *msg, int error) msg 1478 fs/gfs2/quota.c fs_err(sdp, "gfs2_quotad: %s error %d\n", msg, error); msg 1484 fs/gfs2/quota.c static void quotad_check_timeo(struct gfs2_sbd *sdp, const char *msg, msg 1491 fs/gfs2/quota.c quotad_error(sdp, msg, error); msg 69 fs/hpfs/alloc.c static int chk_if_allocated(struct super_block *s, secno sec, char *msg) msg 75 fs/hpfs/alloc.c hpfs_error(s, "sector '%s' - %08x not allocated in bitmap", msg, sec); msg 83 fs/hpfs/alloc.c hpfs_error(s, "sector '%s' - %08x not allocated in directory bitmap", msg, sec); msg 100 fs/hpfs/alloc.c int hpfs_chk_sectors(struct super_block *s, secno start, int len, char *msg) msg 104 fs/hpfs/alloc.c hpfs_error(s, "sector(s) '%s' badly placed at %08x", msg, start); msg 110 fs/hpfs/alloc.c if (chk_if_allocated(s, start + i, msg)) return 1; msg 102 fs/hpfs/super.c char *msg) msg 105 fs/hpfs/super.c hpfs_error(s, "cycle detected on key %08x in %s", key, msg); msg 1663 fs/io_uring.c struct user_msghdr __user *msg; msg 1677 fs/io_uring.c msg = (struct user_msghdr __user *) (unsigned long) msg 1680 fs/io_uring.c ret = fn(sock, msg, flags); msg 267 fs/lockd/clntproc.c struct rpc_message msg = { msg 284 fs/lockd/clntproc.c msg.rpc_proc = &clnt->cl_procinfo[proc]; msg 287 fs/lockd/clntproc.c if ((status = rpc_call_sync(clnt, &msg, 0)) < 0) { msg 339 fs/lockd/clntproc.c static struct rpc_task *__nlm_async_call(struct nlm_rqst *req, u32 proc, struct rpc_message *msg, const struct rpc_call_ops *tk_ops) msg 344 fs/lockd/clntproc.c .rpc_message = msg, msg 357 fs/lockd/clntproc.c msg->rpc_proc = &clnt->cl_procinfo[proc]; msg 367 fs/lockd/clntproc.c static int nlm_do_async_call(struct nlm_rqst *req, u32 proc, struct rpc_message *msg, const struct rpc_call_ops *tk_ops) msg 371 fs/lockd/clntproc.c task = __nlm_async_call(req, proc, msg, tk_ops); msg 383 fs/lockd/clntproc.c struct rpc_message msg = { msg 387 fs/lockd/clntproc.c return nlm_do_async_call(req, proc, &msg, tk_ops); msg 392 fs/lockd/clntproc.c struct rpc_message msg = { msg 395 fs/lockd/clntproc.c return nlm_do_async_call(req, proc, &msg, tk_ops); msg 408 fs/lockd/clntproc.c struct rpc_message msg = { msg 416 fs/lockd/clntproc.c task = __nlm_async_call(req, proc, &msg, tk_ops); msg 104 fs/lockd/mon.c struct rpc_message msg = { msg 119 fs/lockd/mon.c msg.rpc_proc = &clnt->cl_procinfo[proc]; msg 120 fs/lockd/mon.c status = rpc_call_sync(clnt, &msg, RPC_TASK_SOFTCONN); msg 125 fs/lockd/mon.c status = rpc_call_sync(clnt, &msg, RPC_TASK_SOFTCONN); msg 36 fs/lockd/svcsubs.c static inline void nlm_debug_print_fh(char *msg, struct nfs_fh *f) msg 42 fs/lockd/svcsubs.c msg, fhp[0], fhp[1], fhp[2], fhp[3], msg 46 fs/lockd/svcsubs.c static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) msg 51 fs/lockd/svcsubs.c msg, inode->i_sb->s_id, inode->i_ino); msg 54 fs/lockd/svcsubs.c static inline void nlm_debug_print_fh(char *msg, struct nfs_fh *f) msg 59 fs/lockd/svcsubs.c static inline void nlm_debug_print_file(char *msg, struct nlm_file *file) msg 159 fs/nfs/blocklayout/blocklayout.h struct rpc_pipe_msg msg; msg 60 fs/nfs/blocklayout/rpc_pipefs.c struct rpc_pipe_msg *msg = &bl_pipe_msg.msg; msg 75 fs/nfs/blocklayout/rpc_pipefs.c memset(msg, 0, sizeof(*msg)); msg 76 fs/nfs/blocklayout/rpc_pipefs.c msg->len = sizeof(*bl_msg) + b->simple.len; msg 77 fs/nfs/blocklayout/rpc_pipefs.c msg->data = kzalloc(msg->len, gfp_mask); msg 78 fs/nfs/blocklayout/rpc_pipefs.c if (!msg->data) msg 81 fs/nfs/blocklayout/rpc_pipefs.c bl_msg = msg->data; msg 84 fs/nfs/blocklayout/rpc_pipefs.c nfs4_encode_simple(msg->data + sizeof(*bl_msg), b); msg 88 fs/nfs/blocklayout/rpc_pipefs.c rc = rpc_queue_upcall(nn->bl_device_pipe, msg); msg 106 fs/nfs/blocklayout/rpc_pipefs.c kfree(msg->data); msg 129 fs/nfs/blocklayout/rpc_pipefs.c static void bl_pipe_destroy_msg(struct rpc_pipe_msg *msg) msg 132 fs/nfs/blocklayout/rpc_pipefs.c container_of(msg, struct bl_pipe_msg, msg); msg 134 fs/nfs/blocklayout/rpc_pipefs.c if (msg->errno >= 0) msg 154 fs/nfs/mount_clnt.c struct rpc_message msg = { msg 187 fs/nfs/mount_clnt.c msg.rpc_proc = &mnt_clnt->cl_procinfo[MOUNTPROC3_MNT]; msg 189 fs/nfs/mount_clnt.c msg.rpc_proc = &mnt_clnt->cl_procinfo[MOUNTPROC_MNT]; msg 191 fs/nfs/mount_clnt.c status = rpc_call_sync(mnt_clnt, &msg, RPC_TASK_SOFT|RPC_TASK_TIMEOUT); msg 256 fs/nfs/mount_clnt.c struct rpc_message msg = { msg 276 fs/nfs/mount_clnt.c msg.rpc_proc = &clnt->cl_procinfo[MOUNTPROC3_UMNT]; msg 278 fs/nfs/mount_clnt.c msg.rpc_proc = &clnt->cl_procinfo[MOUNTPROC_UMNT]; msg 280 fs/nfs/mount_clnt.c status = rpc_call_sync(clnt, &msg, 0); msg 59 fs/nfs/nfs3acl.c struct rpc_message msg = { msg 86 fs/nfs/nfs3acl.c msg.rpc_proc = &server->client_acl->cl_procinfo[ACLPROC3_GETACL]; msg 96 fs/nfs/nfs3acl.c status = rpc_call_sync(server->client_acl, &msg, 0); msg 170 fs/nfs/nfs3acl.c struct rpc_message msg = { msg 215 fs/nfs/nfs3acl.c msg.rpc_proc = &server->client_acl->cl_procinfo[ACLPROC3_SETACL]; msg 216 fs/nfs/nfs3acl.c msg.rpc_resp = fattr; msg 217 fs/nfs/nfs3acl.c status = rpc_call_sync(server->client_acl, &msg, 0); msg 32 fs/nfs/nfs3proc.c nfs3_rpc_wrapper(struct rpc_clnt *clnt, struct rpc_message *msg, int flags) msg 36 fs/nfs/nfs3proc.c res = rpc_call_sync(clnt, msg, flags); msg 45 fs/nfs/nfs3proc.c #define rpc_call_sync(clnt, msg, flags) nfs3_rpc_wrapper(clnt, msg, flags) msg 64 fs/nfs/nfs3proc.c struct rpc_message msg = { msg 73 fs/nfs/nfs3proc.c status = rpc_call_sync(client, &msg, 0); msg 76 fs/nfs/nfs3proc.c msg.rpc_proc = &nfs3_procedures[NFS3PROC_GETATTR]; msg 77 fs/nfs/nfs3proc.c msg.rpc_resp = info->fattr; msg 78 fs/nfs/nfs3proc.c status = rpc_call_sync(client, &msg, 0); msg 107 fs/nfs/nfs3proc.c struct rpc_message msg = { msg 116 fs/nfs/nfs3proc.c status = rpc_call_sync(server->client, &msg, 0); msg 130 fs/nfs/nfs3proc.c struct rpc_message msg = { msg 139 fs/nfs/nfs3proc.c msg.rpc_cred = nfs_file_cred(sattr->ia_file); msg 141 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); msg 165 fs/nfs/nfs3proc.c struct rpc_message msg = { msg 178 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); msg 181 fs/nfs/nfs3proc.c msg.rpc_proc = &nfs3_procedures[NFS3PROC_GETATTR]; msg 182 fs/nfs/nfs3proc.c msg.rpc_argp = fhandle; msg 183 fs/nfs/nfs3proc.c msg.rpc_resp = fattr; msg 184 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); msg 198 fs/nfs/nfs3proc.c struct rpc_message msg = { msg 211 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); msg 231 fs/nfs/nfs3proc.c struct rpc_message msg = { msg 241 fs/nfs/nfs3proc.c msg.rpc_resp = fattr; msg 243 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); msg 252 fs/nfs/nfs3proc.c struct rpc_message msg; msg 271 fs/nfs/nfs3proc.c data->msg.rpc_argp = &data->arg; msg 272 fs/nfs/nfs3proc.c data->msg.rpc_resp = &data->res; msg 287 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(dir), &data->msg, 0); msg 318 fs/nfs/nfs3proc.c data->msg.rpc_proc = &nfs3_procedures[NFS3PROC_CREATE]; msg 406 fs/nfs/nfs3proc.c struct rpc_message msg = { msg 418 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); msg 427 fs/nfs/nfs3proc.c nfs3_proc_unlink_setup(struct rpc_message *msg, msg 431 fs/nfs/nfs3proc.c msg->rpc_proc = &nfs3_procedures[NFS3PROC_REMOVE]; msg 451 fs/nfs/nfs3proc.c nfs3_proc_rename_setup(struct rpc_message *msg, msg 455 fs/nfs/nfs3proc.c msg->rpc_proc = &nfs3_procedures[NFS3PROC_RENAME]; msg 488 fs/nfs/nfs3proc.c struct rpc_message msg = { msg 501 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); msg 527 fs/nfs/nfs3proc.c data->msg.rpc_proc = &nfs3_procedures[NFS3PROC_SYMLINK]; msg 565 fs/nfs/nfs3proc.c data->msg.rpc_proc = &nfs3_procedures[NFS3PROC_MKDIR]; msg 601 fs/nfs/nfs3proc.c struct rpc_message msg = { msg 612 fs/nfs/nfs3proc.c msg.rpc_resp = dir_attr; msg 613 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); msg 648 fs/nfs/nfs3proc.c struct rpc_message msg = { msg 657 fs/nfs/nfs3proc.c msg.rpc_proc = &nfs3_procedures[NFS3PROC_READDIRPLUS]; msg 666 fs/nfs/nfs3proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); msg 698 fs/nfs/nfs3proc.c data->msg.rpc_proc = &nfs3_procedures[NFS3PROC_MKNOD]; msg 747 fs/nfs/nfs3proc.c struct rpc_message msg = { msg 756 fs/nfs/nfs3proc.c status = rpc_call_sync(server->client, &msg, 0); msg 765 fs/nfs/nfs3proc.c struct rpc_message msg = { msg 774 fs/nfs/nfs3proc.c status = rpc_call_sync(client, &msg, 0); msg 799 fs/nfs/nfs3proc.c struct rpc_message msg = { msg 808 fs/nfs/nfs3proc.c status = rpc_call_sync(server->client, &msg, 0); msg 833 fs/nfs/nfs3proc.c struct rpc_message *msg) msg 835 fs/nfs/nfs3proc.c msg->rpc_proc = &nfs3_procedures[NFS3PROC_READ]; msg 861 fs/nfs/nfs3proc.c struct rpc_message *msg, msg 864 fs/nfs/nfs3proc.c msg->rpc_proc = &nfs3_procedures[NFS3PROC_WRITE]; msg 883 fs/nfs/nfs3proc.c static void nfs3_proc_commit_setup(struct nfs_commit_data *data, struct rpc_message *msg, msg 886 fs/nfs/nfs3proc.c msg->rpc_proc = &nfs3_procedures[NFS3PROC_COMMIT]; msg 22 fs/nfs/nfs42proc.c static int _nfs42_proc_fallocate(struct rpc_message *msg, struct file *filep, msg 38 fs/nfs/nfs42proc.c msg->rpc_argp = &args; msg 39 fs/nfs/nfs42proc.c msg->rpc_resp = &res; msg 50 fs/nfs/nfs42proc.c status = nfs4_call_sync(server->client, server, msg, msg 59 fs/nfs/nfs42proc.c static int nfs42_proc_fallocate(struct rpc_message *msg, struct file *filep, msg 75 fs/nfs/nfs42proc.c err = _nfs42_proc_fallocate(msg, filep, lock, offset, len); msg 89 fs/nfs/nfs42proc.c struct rpc_message msg = { msg 100 fs/nfs/nfs42proc.c err = nfs42_proc_fallocate(&msg, filep, offset, len); msg 110 fs/nfs/nfs42proc.c struct rpc_message msg = { msg 124 fs/nfs/nfs42proc.c err = nfs42_proc_fallocate(&msg, filep, offset, len); msg 227 fs/nfs/nfs42proc.c struct rpc_message msg = { msg 268 fs/nfs/nfs42proc.c status = nfs4_call_sync(server->client, server, &msg, msg 423 fs/nfs/nfs42proc.c struct rpc_message msg = { msg 429 fs/nfs/nfs42proc.c .rpc_message = &msg, msg 447 fs/nfs/nfs42proc.c msg.rpc_argp = &data->args; msg 448 fs/nfs/nfs42proc.c msg.rpc_resp = &data->res; msg 473 fs/nfs/nfs42proc.c struct rpc_message msg = { msg 494 fs/nfs/nfs42proc.c status = nfs4_call_sync(server->client, server, &msg, msg 645 fs/nfs/nfs42proc.c struct rpc_message msg = { msg 652 fs/nfs/nfs42proc.c .rpc_message = &msg, msg 801 fs/nfs/nfs42proc.c struct rpc_message msg = { msg 805 fs/nfs/nfs42proc.c .rpc_message = &msg, msg 823 fs/nfs/nfs42proc.c msg.rpc_argp = &data->args; msg 824 fs/nfs/nfs42proc.c msg.rpc_resp = &data->res; msg 836 fs/nfs/nfs42proc.c static int _nfs42_proc_clone(struct rpc_message *msg, struct file *src_f, msg 857 fs/nfs/nfs42proc.c msg->rpc_argp = &args; msg 858 fs/nfs/nfs42proc.c msg->rpc_resp = &res; msg 874 fs/nfs/nfs42proc.c status = nfs4_call_sync(server->client, server, msg, msg 886 fs/nfs/nfs42proc.c struct rpc_message msg = { msg 917 fs/nfs/nfs42proc.c err = _nfs42_proc_clone(&msg, src_f, dst_f, src_lock, dst_lock, msg 341 fs/nfs/nfs4_fs.h struct rpc_clnt **clntp, struct rpc_message *msg) msg 357 fs/nfs/nfs4_fs.h msg->rpc_cred = rpc_machine_cred(); msg 377 fs/nfs/nfs4_fs.h struct rpc_clnt **clntp, struct rpc_message *msg) msg 379 fs/nfs/nfs4_fs.h _nfs4_state_protect(clp, sp4_mode, clntp, msg); msg 389 fs/nfs/nfs4_fs.h struct rpc_message *msg, struct nfs_pgio_header *hdr) msg 391 fs/nfs/nfs4_fs.h if (_nfs4_state_protect(clp, NFS_SP4_MACH_CRED_WRITE, clntp, msg) && msg 410 fs/nfs/nfs4_fs.h struct rpc_clnt **clntp, struct rpc_message *msg) msg 416 fs/nfs/nfs4_fs.h struct rpc_message *msg, struct nfs_pgio_header *hdr) msg 512 fs/nfs/nfs4idmap.c struct rpc_pipe_msg *msg) msg 544 fs/nfs/nfs4idmap.c msg->data = im; msg 545 fs/nfs/nfs4idmap.c msg->len = sizeof(struct idmap_msg); msg 585 fs/nfs/nfs4idmap.c struct rpc_pipe_msg *msg; msg 600 fs/nfs/nfs4idmap.c msg = &data->pipe_msg; msg 605 fs/nfs/nfs4idmap.c ret = nfs_idmap_prepare_message(key->description, idmap, im, msg); msg 613 fs/nfs/nfs4idmap.c ret = rpc_queue_upcall(idmap->idmap_pipe, msg); msg 722 fs/nfs/nfs4idmap.c idmap_pipe_destroy_msg(struct rpc_pipe_msg *msg) msg 724 fs/nfs/nfs4idmap.c struct idmap_legacy_upcalldata *data = container_of(msg, msg 729 fs/nfs/nfs4idmap.c if (msg->errno) msg 730 fs/nfs/nfs4idmap.c nfs_idmap_abort_pipe_upcall(idmap, msg->errno); msg 1102 fs/nfs/nfs4proc.c struct rpc_message *msg, msg 1114 fs/nfs/nfs4proc.c .rpc_message = msg, msg 1124 fs/nfs/nfs4proc.c struct rpc_message *msg, msg 1130 fs/nfs/nfs4proc.c return nfs4_call_sync_sequence(clnt, server, msg, args, res); msg 2325 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 2333 fs/nfs/nfs4proc.c .rpc_message = &msg, msg 2490 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 2498 fs/nfs/nfs4proc.c .rpc_message = &msg, msg 3229 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 3266 fs/nfs/nfs4proc.c msg.rpc_cred = delegation_cred; msg 3268 fs/nfs/nfs4proc.c status = nfs4_call_sync(server->client, server, &msg, &arg->seq_args, &res->seq_res, 1); msg 3631 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 3637 fs/nfs/nfs4proc.c .rpc_message = &msg, msg 3645 fs/nfs/nfs4proc.c &task_setup_data.rpc_client, &msg); msg 3669 fs/nfs/nfs4proc.c &calldata->lr.arg, &calldata->lr.res, msg.rpc_cred); msg 3676 fs/nfs/nfs4proc.c msg.rpc_argp = &calldata->arg; msg 3677 fs/nfs/nfs4proc.c msg.rpc_resp = &calldata->res; msg 3736 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 3752 fs/nfs/nfs4proc.c status = nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0); msg 3848 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 3862 fs/nfs/nfs4proc.c return nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0); msg 4081 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 4090 fs/nfs/nfs4proc.c return nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0); msg 4194 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 4205 fs/nfs/nfs4proc.c status = nfs4_call_sync(clnt, server, &msg, &args.seq_args, &res.seq_res, 0); msg 4308 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 4319 fs/nfs/nfs4proc.c status = nfs4_call_sync(clnt, server, &msg, &args.seq_args, msg 4351 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 4365 fs/nfs/nfs4proc.c status = nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0); msg 4422 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 4428 fs/nfs/nfs4proc.c return nfs4_call_sync(NFS_SERVER(inode)->client, NFS_SERVER(inode), &msg, &args.seq_args, &res.seq_res, 0); msg 4490 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 4498 fs/nfs/nfs4proc.c status = nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 1); msg 4549 fs/nfs/nfs4proc.c static void nfs4_proc_unlink_setup(struct rpc_message *msg, msg 4553 fs/nfs/nfs4proc.c struct nfs_removeargs *args = msg->rpc_argp; msg 4554 fs/nfs/nfs4proc.c struct nfs_removeres *res = msg->rpc_resp; msg 4557 fs/nfs/nfs4proc.c msg->rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_REMOVE]; msg 4590 fs/nfs/nfs4proc.c static void nfs4_proc_rename_setup(struct rpc_message *msg, msg 4594 fs/nfs/nfs4proc.c struct nfs_renameargs *arg = msg->rpc_argp; msg 4595 fs/nfs/nfs4proc.c struct nfs_renameres *res = msg->rpc_resp; msg 4603 fs/nfs/nfs4proc.c msg->rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_RENAME]; msg 4658 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 4678 fs/nfs/nfs4proc.c status = nfs4_call_sync(server->client, server, &msg, &arg.seq_args, &res.seq_res, 1); msg 4709 fs/nfs/nfs4proc.c struct rpc_message msg; msg 4730 fs/nfs/nfs4proc.c data->msg.rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_CREATE]; msg 4731 fs/nfs/nfs4proc.c data->msg.rpc_argp = &data->arg; msg 4732 fs/nfs/nfs4proc.c data->msg.rpc_resp = &data->res; msg 4754 fs/nfs/nfs4proc.c int status = nfs4_call_sync(NFS_SERVER(dir)->client, NFS_SERVER(dir), &data->msg, msg 4790 fs/nfs/nfs4proc.c data->msg.rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_SYMLINK]; msg 4880 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 4893 fs/nfs/nfs4proc.c status = nfs4_call_sync(NFS_SERVER(dir)->client, NFS_SERVER(dir), &msg, &args.seq_args, &res.seq_res, 0); msg 4993 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 5000 fs/nfs/nfs4proc.c return nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0); msg 5027 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 5033 fs/nfs/nfs4proc.c return nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0); msg 5080 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 5093 fs/nfs/nfs4proc.c return nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0); msg 5203 fs/nfs/nfs4proc.c struct rpc_message *msg) msg 5208 fs/nfs/nfs4proc.c msg->rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_READ]; msg 5293 fs/nfs/nfs4proc.c struct rpc_message *msg, msg 5309 fs/nfs/nfs4proc.c msg->rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_WRITE]; msg 5311 fs/nfs/nfs4proc.c nfs4_state_protect_write(server->nfs_client, clnt, msg, hdr); msg 5342 fs/nfs/nfs4proc.c static void nfs4_proc_commit_setup(struct nfs_commit_data *data, struct rpc_message *msg, msg 5350 fs/nfs/nfs4proc.c msg->rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_COMMIT]; msg 5352 fs/nfs/nfs4proc.c nfs4_state_protect(server->nfs_client, NFS_SP4_MACH_CRED_COMMIT, clnt, msg); msg 5360 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 5367 fs/nfs/nfs4proc.c return nfs4_call_sync(server->client, server, &msg, msg 5442 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 5460 fs/nfs/nfs4proc.c return rpc_call_async(clp->cl_rpcclient, &msg, RPC_TASK_TIMEOUT, msg 5466 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 5474 fs/nfs/nfs4proc.c status = rpc_call_sync(clp->cl_rpcclient, &msg, RPC_TASK_TIMEOUT); msg 5610 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 5637 fs/nfs/nfs4proc.c &msg, &args.seq_args, &res.seq_res, 0); msg 5714 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 5730 fs/nfs/nfs4proc.c ret = nfs4_call_sync(server->client, server, &msg, &arg.seq_args, &res.seq_res, 1); msg 5784 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 5793 fs/nfs/nfs4proc.c ret = nfs4_call_sync(server->client, server, &msg, &arg.seq_args, &res.seq_res, 0); msg 5844 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 5853 fs/nfs/nfs4proc.c status = nfs4_call_sync(server->client, server, &msg, &arg.seq_args, &res.seq_res, 1); msg 6090 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 6098 fs/nfs/nfs4proc.c .rpc_message = &msg, msg 6157 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 6167 fs/nfs/nfs4proc.c status = rpc_call_sync(clp->cl_rpcclient, &msg, msg 6303 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 6309 fs/nfs/nfs4proc.c .rpc_message = &msg, msg 6322 fs/nfs/nfs4proc.c &task_setup_data.rpc_client, &msg); msg 6349 fs/nfs/nfs4proc.c msg.rpc_argp = &data->args; msg 6350 fs/nfs/nfs4proc.c msg.rpc_resp = &data->res; msg 6396 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 6412 fs/nfs/nfs4proc.c status = nfs4_call_sync(server->client, server, &msg, &arg.seq_args, &res.seq_res, 1); msg 6612 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 6618 fs/nfs/nfs4proc.c .rpc_message = &msg, msg 6625 fs/nfs/nfs4proc.c NFS_SP4_MACH_CRED_CLEANUP, &task_setup_data.rpc_client, &msg); msg 6641 fs/nfs/nfs4proc.c msg.rpc_argp = &data->arg; msg 6642 fs/nfs/nfs4proc.c msg.rpc_resp = &data->res; msg 6885 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 6891 fs/nfs/nfs4proc.c .rpc_message = &msg, msg 6908 fs/nfs/nfs4proc.c msg.rpc_argp = &data->arg; msg 6909 fs/nfs/nfs4proc.c msg.rpc_resp = &data->res; msg 7283 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 7299 fs/nfs/nfs4proc.c msg.rpc_argp = &data->args; msg 7300 fs/nfs/nfs4proc.c msg.rpc_resp = &data->res; msg 7302 fs/nfs/nfs4proc.c rpc_call_async(server->client, &msg, 0, &nfs4_release_lockowner_ops, data); msg 7411 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 7433 fs/nfs/nfs4proc.c status = nfs4_call_sync(client, server, &msg, &args.seq_args, &res.seq_res, 0); msg 7486 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 7500 fs/nfs/nfs4proc.c status = nfs4_call_sync_sequence(clnt, server, &msg, msg 7540 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 7553 fs/nfs/nfs4proc.c status = nfs4_call_sync_sequence(clnt, server, &msg, msg 7628 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 7642 fs/nfs/nfs4proc.c status = nfs4_call_sync_sequence(clnt, server, &msg, msg 7670 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 7683 fs/nfs/nfs4proc.c status = nfs4_call_sync_sequence(clnt, server, &msg, msg 7753 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 7765 fs/nfs/nfs4proc.c .rpc_message = &msg, msg 7777 fs/nfs/nfs4proc.c msg.rpc_cred = cred; msg 7782 fs/nfs/nfs4proc.c nfs4_state_protect(clp, NFS_SP4_MACH_CRED_SECINFO, &clnt, &msg); msg 7895 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 7906 fs/nfs/nfs4proc.c .rpc_message = &msg, msg 8131 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 8138 fs/nfs/nfs4proc.c .rpc_message = &msg, msg 8200 fs/nfs/nfs4proc.c msg.rpc_argp = &calldata->args; msg 8201 fs/nfs/nfs4proc.c msg.rpc_resp = &calldata->res; msg 8360 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 8367 fs/nfs/nfs4proc.c status = rpc_call_sync(clp->cl_rpcclient, &msg, msg 8485 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 8492 fs/nfs/nfs4proc.c .rpc_message = &msg, msg 8634 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 8645 fs/nfs/nfs4proc.c status = rpc_call_sync(session->clp->cl_rpcclient, &msg, msg 8709 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 8722 fs/nfs/nfs4proc.c status = rpc_call_sync(session->clp->cl_rpcclient, &msg, msg 8815 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 8821 fs/nfs/nfs4proc.c .rpc_message = &msg, msg 8837 fs/nfs/nfs4proc.c msg.rpc_argp = &calldata->args; msg 8838 fs/nfs/nfs4proc.c msg.rpc_resp = &calldata->res; msg 8966 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 8972 fs/nfs/nfs4proc.c .rpc_message = &msg, msg 8986 fs/nfs/nfs4proc.c msg.rpc_argp = &calldata->arg; msg 8987 fs/nfs/nfs4proc.c msg.rpc_resp = &calldata->res; msg 9135 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 9143 fs/nfs/nfs4proc.c .rpc_message = &msg, msg 9276 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 9284 fs/nfs/nfs4proc.c .rpc_message = &msg, msg 9292 fs/nfs/nfs4proc.c &task_setup_data.rpc_client, &msg); msg 9328 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 9337 fs/nfs/nfs4proc.c status = nfs4_call_sync(server->client, server, &msg, &args.seq_args, &res.seq_res, 0); msg 9421 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 9430 fs/nfs/nfs4proc.c .rpc_message = &msg, msg 9477 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 9490 fs/nfs/nfs4proc.c .rpc_message = &msg, msg 9503 fs/nfs/nfs4proc.c msg.rpc_cred = cred; msg 9633 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 9642 fs/nfs/nfs4proc.c &rpc_client, &msg); msg 9646 fs/nfs/nfs4proc.c status = nfs4_call_sync_sequence(rpc_client, server, &msg, msg 9754 fs/nfs/nfs4proc.c struct rpc_message msg = { msg 9760 fs/nfs/nfs4proc.c .rpc_message = &msg, msg 9768 fs/nfs/nfs4proc.c &task_setup.rpc_client, &msg); msg 9779 fs/nfs/nfs4proc.c msg.rpc_argp = &data->args; msg 9780 fs/nfs/nfs4proc.c msg.rpc_resp = &data->res; msg 618 fs/nfs/pagelist.c struct rpc_message msg = { msg 626 fs/nfs/pagelist.c .rpc_message = &msg, msg 634 fs/nfs/pagelist.c hdr->rw_ops->rw_initiate(hdr, &msg, rpc_ops, &task_setup_data, how); msg 59 fs/nfs/proc.c struct rpc_message msg = { msg 68 fs/nfs/proc.c status = rpc_call_sync(server->client, &msg, 0); msg 71 fs/nfs/proc.c status = rpc_call_sync(server->nfs_client->cl_rpcclient, &msg, 0); msg 76 fs/nfs/proc.c msg.rpc_proc = &nfs_procedures[NFSPROC_STATFS]; msg 77 fs/nfs/proc.c msg.rpc_resp = &fsinfo; msg 78 fs/nfs/proc.c status = rpc_call_sync(server->client, &msg, 0); msg 81 fs/nfs/proc.c status = rpc_call_sync(server->nfs_client->cl_rpcclient, &msg, 0); msg 105 fs/nfs/proc.c struct rpc_message msg = { msg 114 fs/nfs/proc.c status = rpc_call_sync(server->client, &msg, 0); msg 128 fs/nfs/proc.c struct rpc_message msg = { msg 140 fs/nfs/proc.c msg.rpc_cred = nfs_file_cred(sattr->ia_file); msg 142 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); msg 163 fs/nfs/proc.c struct rpc_message msg = { msg 172 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); msg 186 fs/nfs/proc.c struct rpc_message msg = { msg 193 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); msg 235 fs/nfs/proc.c struct rpc_message msg = { msg 244 fs/nfs/proc.c msg.rpc_argp = &data->arg; msg 245 fs/nfs/proc.c msg.rpc_resp = &data->res; msg 246 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); msg 264 fs/nfs/proc.c struct rpc_message msg = { msg 284 fs/nfs/proc.c msg.rpc_argp = &data->arg; msg 285 fs/nfs/proc.c msg.rpc_resp = &data->res; msg 287 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); msg 293 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); msg 310 fs/nfs/proc.c struct rpc_message msg = { msg 317 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); msg 325 fs/nfs/proc.c nfs_proc_unlink_setup(struct rpc_message *msg, msg 329 fs/nfs/proc.c msg->rpc_proc = &nfs_procedures[NFSPROC_REMOVE]; msg 344 fs/nfs/proc.c nfs_proc_rename_setup(struct rpc_message *msg, msg 348 fs/nfs/proc.c msg->rpc_proc = &nfs_procedures[NFSPROC_RENAME]; msg 374 fs/nfs/proc.c struct rpc_message msg = { msg 381 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(inode), &msg, 0); msg 402 fs/nfs/proc.c struct rpc_message msg = { msg 419 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); msg 442 fs/nfs/proc.c struct rpc_message msg = { msg 451 fs/nfs/proc.c msg.rpc_argp = &data->arg; msg 452 fs/nfs/proc.c msg.rpc_resp = &data->res; msg 454 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); msg 472 fs/nfs/proc.c struct rpc_message msg = { msg 479 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); msg 503 fs/nfs/proc.c struct rpc_message msg = { msg 511 fs/nfs/proc.c status = rpc_call_sync(NFS_CLIENT(dir), &msg, 0); msg 524 fs/nfs/proc.c struct rpc_message msg = { msg 533 fs/nfs/proc.c status = rpc_call_sync(server->client, &msg, 0); msg 552 fs/nfs/proc.c struct rpc_message msg = { msg 561 fs/nfs/proc.c status = rpc_call_sync(server->client, &msg, 0); msg 605 fs/nfs/proc.c struct rpc_message *msg) msg 607 fs/nfs/proc.c msg->rpc_proc = &nfs_procedures[NFSPROC_READ]; msg 627 fs/nfs/proc.c struct rpc_message *msg, msg 632 fs/nfs/proc.c msg->rpc_proc = &nfs_procedures[NFSPROC_WRITE]; msg 641 fs/nfs/proc.c nfs_proc_commit_setup(struct nfs_commit_data *data, struct rpc_message *msg, msg 208 fs/nfs/read.c struct rpc_message *msg, msg 216 fs/nfs/read.c rpc_ops->read_setup(hdr, msg); msg 91 fs/nfs/unlink.c struct rpc_message msg = { msg 97 fs/nfs/unlink.c .rpc_message = &msg, msg 109 fs/nfs/unlink.c NFS_PROTO(dir)->unlink_setup(&msg, data->dentry, inode); msg 338 fs/nfs/unlink.c struct rpc_message msg = { }; msg 340 fs/nfs/unlink.c .rpc_message = &msg, msg 354 fs/nfs/unlink.c msg.rpc_argp = &data->args; msg 355 fs/nfs/unlink.c msg.rpc_resp = &data->res; msg 356 fs/nfs/unlink.c msg.rpc_cred = data->cred; msg 381 fs/nfs/unlink.c NFS_PROTO(data->old_dir)->rename_setup(&msg, old_dentry, new_dentry); msg 1407 fs/nfs/write.c struct rpc_message *msg, msg 1414 fs/nfs/write.c rpc_ops->write_setup(hdr, msg, &task_setup_data->rpc_client); msg 1696 fs/nfs/write.c struct rpc_message msg = { msg 1704 fs/nfs/write.c .rpc_message = &msg, msg 1712 fs/nfs/write.c nfs_ops->commit_setup(data, &msg, &task_setup_data.rpc_client); msg 761 fs/nfsd/nfs4recover.c struct rpc_pipe_msg msg; msg 766 fs/nfsd/nfs4recover.c memset(&msg, 0, sizeof(msg)); msg 767 fs/nfsd/nfs4recover.c msg.data = cmsg; msg 768 fs/nfsd/nfs4recover.c msg.len = nn->client_tracking_ops->msglen; msg 770 fs/nfsd/nfs4recover.c ret = rpc_queue_upcall(pipe, &msg); msg 777 fs/nfsd/nfs4recover.c if (msg.errno < 0) msg 778 fs/nfsd/nfs4recover.c ret = msg.errno; msg 923 fs/nfsd/nfs4recover.c cld_pipe_destroy_msg(struct rpc_pipe_msg *msg) msg 925 fs/nfsd/nfs4recover.c struct cld_msg *cmsg = msg->data; msg 930 fs/nfsd/nfs4recover.c if (msg->errno >= 0) msg 808 fs/nilfs2/ioctl.c const char *msg; msg 817 fs/nilfs2/ioctl.c msg = "cannot delete checkpoints"; msg 826 fs/nilfs2/ioctl.c msg = "cannot delete virtual blocks from DAT file"; msg 834 fs/nilfs2/ioctl.c msg = "cannot mark copying blocks dirty"; msg 841 fs/nilfs2/ioctl.c msg); msg 50 fs/nilfs2/recovery.c const char *msg = NULL; msg 57 fs/nilfs2/recovery.c msg = "Magic number mismatch"; msg 60 fs/nilfs2/recovery.c msg = "Sequence number mismatch"; msg 63 fs/nilfs2/recovery.c msg = "Checksum error in super root"; msg 66 fs/nilfs2/recovery.c msg = "Checksum error in segment payload"; msg 69 fs/nilfs2/recovery.c msg = "Inconsistency found"; msg 72 fs/nilfs2/recovery.c msg = "No super root in the last segment"; msg 78 fs/nilfs2/recovery.c nilfs_msg(sb, KERN_WARNING, "invalid segment: %s", msg); msg 1196 fs/nilfs2/super.c const char *msg = NULL; msg 1200 fs/nilfs2/super.c msg = "read-only option is not specified"; msg 1207 fs/nilfs2/super.c msg = "too large checkpoint number"; msg 1209 fs/nilfs2/super.c msg = "malformed argument"; msg 1212 fs/nilfs2/super.c msg = "invalid checkpoint number 0"; msg 1219 fs/nilfs2/super.c nilfs_msg(NULL, KERN_ERR, "invalid option \"%s\": %s", option, msg); msg 355 fs/ocfs2/cluster/heartbeat.c struct o2hb_nego_msg msg; msg 358 fs/ocfs2/cluster/heartbeat.c msg.node_num = o2nm_this_node(); msg 360 fs/ocfs2/cluster/heartbeat.c ret = o2net_send_message(type, key, &msg, sizeof(msg), msg 437 fs/ocfs2/cluster/heartbeat.c static int o2hb_nego_timeout_handler(struct o2net_msg *msg, u32 len, void *data, msg 443 fs/ocfs2/cluster/heartbeat.c nego_msg = (struct o2hb_nego_msg *)msg->buf; msg 454 fs/ocfs2/cluster/heartbeat.c static int o2hb_nego_approve_handler(struct o2net_msg *msg, u32 len, void *data, msg 904 fs/ocfs2/cluster/tcp.c struct msghdr msg = { .msg_flags = MSG_DONTWAIT, }; msg 905 fs/ocfs2/cluster/tcp.c iov_iter_kvec(&msg.msg_iter, READ, &vec, 1, len); msg 906 fs/ocfs2/cluster/tcp.c return sock_recvmsg(sock, &msg, MSG_DONTWAIT); msg 913 fs/ocfs2/cluster/tcp.c struct msghdr msg = {.msg_flags = 0,}; msg 920 fs/ocfs2/cluster/tcp.c ret = kernel_sendmsg(sock, &msg, vec, veclen, total); msg 960 fs/ocfs2/cluster/tcp.c static void o2net_init_msg(struct o2net_msg *msg, u16 data_len, u16 msg_type, u32 key) msg 962 fs/ocfs2/cluster/tcp.c memset(msg, 0, sizeof(struct o2net_msg)); msg 963 fs/ocfs2/cluster/tcp.c msg->magic = cpu_to_be16(O2NET_MSG_MAGIC); msg 964 fs/ocfs2/cluster/tcp.c msg->data_len = cpu_to_be16(data_len); msg 965 fs/ocfs2/cluster/tcp.c msg->msg_type = cpu_to_be16(msg_type); msg 966 fs/ocfs2/cluster/tcp.c msg->sys_status = cpu_to_be32(O2NET_ERR_NONE); msg 967 fs/ocfs2/cluster/tcp.c msg->status = 0; msg 968 fs/ocfs2/cluster/tcp.c msg->key = cpu_to_be32(key); msg 1018 fs/ocfs2/cluster/tcp.c struct o2net_msg *msg = NULL; msg 1072 fs/ocfs2/cluster/tcp.c msg = kmalloc(sizeof(struct o2net_msg), GFP_ATOMIC); msg 1073 fs/ocfs2/cluster/tcp.c if (!msg) { msg 1079 fs/ocfs2/cluster/tcp.c o2net_init_msg(msg, caller_bytes, msg_type, key); msg 1082 fs/ocfs2/cluster/tcp.c vec[0].iov_base = msg; msg 1089 fs/ocfs2/cluster/tcp.c msg->msg_num = cpu_to_be32(nsw.ns_id); msg 1100 fs/ocfs2/cluster/tcp.c msglog(msg, "sending returned %d\n", ret); msg 1126 fs/ocfs2/cluster/tcp.c kfree(msg); msg 38 fs/ocfs2/cluster/tcp.h typedef int (o2net_msg_handler_func)(struct o2net_msg *msg, u32 len, void *data, msg 226 fs/ocfs2/dir.c static void str2hashbuf(const char *msg, int len, __u32 *buf, int num) msg 240 fs/ocfs2/dir.c val = msg[i] + (val << 8); msg 268 fs/ocfs2/dlm/dlmast.c int dlm_proxy_ast_handler(struct o2net_msg *msg, u32 len, void *data, msg 276 fs/ocfs2/dlm/dlmast.c struct dlm_proxy_ast *past = (struct dlm_proxy_ast *) msg->buf; msg 827 fs/ocfs2/dlm/dlmcommon.h int dlm_create_lock_handler(struct o2net_msg *msg, u32 len, void *data, msg 829 fs/ocfs2/dlm/dlmcommon.h int dlm_convert_lock_handler(struct o2net_msg *msg, u32 len, void *data, msg 831 fs/ocfs2/dlm/dlmcommon.h int dlm_proxy_ast_handler(struct o2net_msg *msg, u32 len, void *data, msg 839 fs/ocfs2/dlm/dlmcommon.h int dlm_unlock_lock_handler(struct o2net_msg *msg, u32 len, void *data, msg 963 fs/ocfs2/dlm/dlmcommon.h int dlm_master_request_handler(struct o2net_msg *msg, u32 len, void *data, msg 965 fs/ocfs2/dlm/dlmcommon.h int dlm_assert_master_handler(struct o2net_msg *msg, u32 len, void *data, msg 968 fs/ocfs2/dlm/dlmcommon.h int dlm_deref_lockres_handler(struct o2net_msg *msg, u32 len, void *data, msg 970 fs/ocfs2/dlm/dlmcommon.h int dlm_deref_lockres_done_handler(struct o2net_msg *msg, u32 len, void *data, msg 972 fs/ocfs2/dlm/dlmcommon.h int dlm_migrate_request_handler(struct o2net_msg *msg, u32 len, void *data, msg 974 fs/ocfs2/dlm/dlmcommon.h int dlm_mig_lockres_handler(struct o2net_msg *msg, u32 len, void *data, msg 976 fs/ocfs2/dlm/dlmcommon.h int dlm_master_requery_handler(struct o2net_msg *msg, u32 len, void *data, msg 978 fs/ocfs2/dlm/dlmcommon.h int dlm_request_all_locks_handler(struct o2net_msg *msg, u32 len, void *data, msg 980 fs/ocfs2/dlm/dlmcommon.h int dlm_reco_data_done_handler(struct o2net_msg *msg, u32 len, void *data, msg 982 fs/ocfs2/dlm/dlmcommon.h int dlm_begin_reco_handler(struct o2net_msg *msg, u32 len, void *data, msg 984 fs/ocfs2/dlm/dlmcommon.h int dlm_finalize_reco_handler(struct o2net_msg *msg, u32 len, void *data, msg 431 fs/ocfs2/dlm/dlmconvert.c int dlm_convert_lock_handler(struct o2net_msg *msg, u32 len, void *data, msg 435 fs/ocfs2/dlm/dlmconvert.c struct dlm_convert_lock *cnv = (struct dlm_convert_lock *)msg->buf; msg 132 fs/ocfs2/dlm/dlmdomain.c static int dlm_query_join_handler(struct o2net_msg *msg, u32 len, void *data, msg 134 fs/ocfs2/dlm/dlmdomain.c static int dlm_assert_joined_handler(struct o2net_msg *msg, u32 len, void *data, msg 136 fs/ocfs2/dlm/dlmdomain.c static int dlm_cancel_join_handler(struct o2net_msg *msg, u32 len, void *data, msg 138 fs/ocfs2/dlm/dlmdomain.c static int dlm_query_region_handler(struct o2net_msg *msg, u32 len, msg 140 fs/ocfs2/dlm/dlmdomain.c static int dlm_exit_domain_handler(struct o2net_msg *msg, u32 len, void *data, msg 486 fs/ocfs2/dlm/dlmdomain.c static int dlm_begin_exit_domain_handler(struct o2net_msg *msg, u32 len, msg 491 fs/ocfs2/dlm/dlmdomain.c struct dlm_exit_domain *exit_msg = (struct dlm_exit_domain *) msg->buf; msg 546 fs/ocfs2/dlm/dlmdomain.c static int dlm_exit_domain_handler(struct o2net_msg *msg, u32 len, void *data, msg 551 fs/ocfs2/dlm/dlmdomain.c struct dlm_exit_domain *exit_msg = (struct dlm_exit_domain *) msg->buf; msg 553 fs/ocfs2/dlm/dlmdomain.c mlog(0, "%p %u %p", msg, len, data); msg 791 fs/ocfs2/dlm/dlmdomain.c static int dlm_query_join_handler(struct o2net_msg *msg, u32 len, void *data, msg 802 fs/ocfs2/dlm/dlmdomain.c query = (struct dlm_query_join_request *) msg->buf; msg 911 fs/ocfs2/dlm/dlmdomain.c static int dlm_assert_joined_handler(struct o2net_msg *msg, u32 len, void *data, msg 917 fs/ocfs2/dlm/dlmdomain.c assert = (struct dlm_assert_joined *) msg->buf; msg 1097 fs/ocfs2/dlm/dlmdomain.c static int dlm_query_region_handler(struct o2net_msg *msg, u32 len, msg 1105 fs/ocfs2/dlm/dlmdomain.c qr = (struct dlm_query_region *) msg->buf; msg 1274 fs/ocfs2/dlm/dlmdomain.c static int dlm_query_nodeinfo_handler(struct o2net_msg *msg, u32 len, msg 1281 fs/ocfs2/dlm/dlmdomain.c qn = (struct dlm_query_nodeinfo *) msg->buf; msg 1323 fs/ocfs2/dlm/dlmdomain.c static int dlm_cancel_join_handler(struct o2net_msg *msg, u32 len, void *data, msg 1329 fs/ocfs2/dlm/dlmdomain.c cancel = (struct dlm_cancel_join *) msg->buf; msg 442 fs/ocfs2/dlm/dlmlock.c int dlm_create_lock_handler(struct o2net_msg *msg, u32 len, void *data, msg 446 fs/ocfs2/dlm/dlmlock.c struct dlm_create_lock *create = (struct dlm_create_lock *)msg->buf; msg 1402 fs/ocfs2/dlm/dlmmaster.c int dlm_master_request_handler(struct o2net_msg *msg, u32 len, void *data, msg 1408 fs/ocfs2/dlm/dlmmaster.c struct dlm_master_request *request = (struct dlm_master_request *) msg->buf; msg 1761 fs/ocfs2/dlm/dlmmaster.c int dlm_assert_master_handler(struct o2net_msg *msg, u32 len, void *data, msg 1766 fs/ocfs2/dlm/dlmmaster.c struct dlm_assert_master *assert = (struct dlm_assert_master *)msg->buf; msg 2251 fs/ocfs2/dlm/dlmmaster.c int dlm_deref_lockres_handler(struct o2net_msg *msg, u32 len, void *data, msg 2255 fs/ocfs2/dlm/dlmmaster.c struct dlm_deref_lockres *deref = (struct dlm_deref_lockres *)msg->buf; msg 2345 fs/ocfs2/dlm/dlmmaster.c int dlm_deref_lockres_done_handler(struct o2net_msg *msg, u32 len, void *data, msg 2350 fs/ocfs2/dlm/dlmmaster.c = (struct dlm_deref_lockres_done *)msg->buf; msg 3104 fs/ocfs2/dlm/dlmmaster.c int dlm_migrate_request_handler(struct o2net_msg *msg, u32 len, void *data, msg 3109 fs/ocfs2/dlm/dlmmaster.c struct dlm_migrate_request *migrate = (struct dlm_migrate_request *) msg->buf; msg 822 fs/ocfs2/dlm/dlmrecovery.c int dlm_request_all_locks_handler(struct o2net_msg *msg, u32 len, void *data, msg 826 fs/ocfs2/dlm/dlmrecovery.c struct dlm_lock_request *lr = (struct dlm_lock_request *)msg->buf; msg 978 fs/ocfs2/dlm/dlmrecovery.c int dlm_reco_data_done_handler(struct o2net_msg *msg, u32 len, void *data, msg 982 fs/ocfs2/dlm/dlmrecovery.c struct dlm_reco_data_done *done = (struct dlm_reco_data_done *)msg->buf; msg 1354 fs/ocfs2/dlm/dlmrecovery.c int dlm_mig_lockres_handler(struct o2net_msg *msg, u32 len, void *data, msg 1359 fs/ocfs2/dlm/dlmrecovery.c (struct dlm_migratable_lockres *)msg->buf; msg 1395 fs/ocfs2/dlm/dlmrecovery.c buf = kmalloc(be16_to_cpu(msg->data_len), GFP_NOFS); msg 1516 fs/ocfs2/dlm/dlmrecovery.c memcpy(buf, msg->buf, be16_to_cpu(msg->data_len)); /* copy the whole message */ msg 1706 fs/ocfs2/dlm/dlmrecovery.c int dlm_master_requery_handler(struct o2net_msg *msg, u32 len, void *data, msg 1710 fs/ocfs2/dlm/dlmrecovery.c struct dlm_master_requery *req = (struct dlm_master_requery *)msg->buf; msg 2765 fs/ocfs2/dlm/dlmrecovery.c int dlm_begin_reco_handler(struct o2net_msg *msg, u32 len, void *data, msg 2769 fs/ocfs2/dlm/dlmrecovery.c struct dlm_begin_reco *br = (struct dlm_begin_reco *)msg->buf; msg 2897 fs/ocfs2/dlm/dlmrecovery.c int dlm_finalize_reco_handler(struct o2net_msg *msg, u32 len, void *data, msg 2901 fs/ocfs2/dlm/dlmrecovery.c struct dlm_finalize_reco *fr = (struct dlm_finalize_reco *)msg->buf; msg 391 fs/ocfs2/dlm/dlmunlock.c int dlm_unlock_lock_handler(struct o2net_msg *msg, u32 len, void *data, msg 395 fs/ocfs2/dlm/dlmunlock.c struct dlm_unlock_lock *unlock = (struct dlm_unlock_lock *)msg->buf; msg 361 fs/ocfs2/stack_user.c struct ocfs2_control_message_setn *msg) msg 371 fs/ocfs2/stack_user.c if (strncmp(msg->tag, OCFS2_CONTROL_MESSAGE_SETNODE_OP, msg 375 fs/ocfs2/stack_user.c if ((msg->space != ' ') || (msg->newline != '\n')) msg 377 fs/ocfs2/stack_user.c msg->space = msg->newline = '\0'; msg 379 fs/ocfs2/stack_user.c nodenum = simple_strtol(msg->nodestr, &ptr, 16); msg 392 fs/ocfs2/stack_user.c struct ocfs2_control_message_setv *msg) msg 404 fs/ocfs2/stack_user.c if (strncmp(msg->tag, OCFS2_CONTROL_MESSAGE_SETVERSION_OP, msg 408 fs/ocfs2/stack_user.c if ((msg->space1 != ' ') || (msg->space2 != ' ') || msg 409 fs/ocfs2/stack_user.c (msg->newline != '\n')) msg 411 fs/ocfs2/stack_user.c msg->space1 = msg->space2 = msg->newline = '\0'; msg 413 fs/ocfs2/stack_user.c major = simple_strtol(msg->major, &ptr, 16); msg 416 fs/ocfs2/stack_user.c minor = simple_strtol(msg->minor, &ptr, 16); msg 442 fs/ocfs2/stack_user.c struct ocfs2_control_message_down *msg) msg 451 fs/ocfs2/stack_user.c if (strncmp(msg->tag, OCFS2_CONTROL_MESSAGE_DOWN_OP, msg 455 fs/ocfs2/stack_user.c if ((msg->space1 != ' ') || (msg->space2 != ' ') || msg 456 fs/ocfs2/stack_user.c (msg->newline != '\n')) msg 458 fs/ocfs2/stack_user.c msg->space1 = msg->space2 = msg->newline = '\0'; msg 460 fs/ocfs2/stack_user.c nodenum = simple_strtol(msg->nodestr, &p, 16); msg 468 fs/ocfs2/stack_user.c ocfs2_control_send_down(msg->uuid, nodenum); msg 478 fs/ocfs2/stack_user.c union ocfs2_control_message msg; msg 482 fs/ocfs2/stack_user.c (sizeof(msg.u_down.tag) + sizeof(msg.u_down.space1))); msg 484 fs/ocfs2/stack_user.c memset(&msg, 0, sizeof(union ocfs2_control_message)); msg 485 fs/ocfs2/stack_user.c ret = ocfs2_control_cfu(&msg, count, buf, count); msg 490 fs/ocfs2/stack_user.c !strncmp(msg.tag, OCFS2_CONTROL_MESSAGE_SETNODE_OP, msg 492 fs/ocfs2/stack_user.c ret = ocfs2_control_do_setnode_msg(file, &msg.u_setn); msg 494 fs/ocfs2/stack_user.c !strncmp(msg.tag, OCFS2_CONTROL_MESSAGE_SETVERSION_OP, msg 496 fs/ocfs2/stack_user.c ret = ocfs2_control_do_setversion_msg(file, &msg.u_setv); msg 498 fs/ocfs2/stack_user.c !strncmp(msg.tag, OCFS2_CONTROL_MESSAGE_DOWN_OP, msg 500 fs/ocfs2/stack_user.c ret = ocfs2_control_do_down_msg(file, &msg.u_down); msg 1184 fs/quota/dquot.c char *msg = NULL; msg 1205 fs/quota/dquot.c msg = " file limit reached.\r\n"; msg 1208 fs/quota/dquot.c msg = " file quota exceeded too long.\r\n"; msg 1211 fs/quota/dquot.c msg = " file quota exceeded.\r\n"; msg 1214 fs/quota/dquot.c msg = " block limit reached.\r\n"; msg 1217 fs/quota/dquot.c msg = " block quota exceeded too long.\r\n"; msg 1220 fs/quota/dquot.c msg = " block quota exceeded.\r\n"; msg 1223 fs/quota/dquot.c tty_write_message(tty, msg); msg 44 fs/reiserfs/hashes.c u32 keyed_hash(const signed char *msg, int len) msg 59 fs/reiserfs/hashes.c a = (u32) msg[0] | msg 60 fs/reiserfs/hashes.c (u32) msg[1] << 8 | (u32) msg[2] << 16 | (u32) msg[3] << 24; msg 61 fs/reiserfs/hashes.c b = (u32) msg[4] | msg 62 fs/reiserfs/hashes.c (u32) msg[5] << 8 | (u32) msg[6] << 16 | (u32) msg[7] << 24; msg 63 fs/reiserfs/hashes.c c = (u32) msg[8] | msg 64 fs/reiserfs/hashes.c (u32) msg[9] << 8 | msg 65 fs/reiserfs/hashes.c (u32) msg[10] << 16 | (u32) msg[11] << 24; msg 66 fs/reiserfs/hashes.c d = (u32) msg[12] | msg 67 fs/reiserfs/hashes.c (u32) msg[13] << 8 | msg 68 fs/reiserfs/hashes.c (u32) msg[14] << 16 | (u32) msg[15] << 24; msg 73 fs/reiserfs/hashes.c msg += 16; msg 77 fs/reiserfs/hashes.c a = (u32) msg[0] | msg 78 fs/reiserfs/hashes.c (u32) msg[1] << 8 | (u32) msg[2] << 16 | (u32) msg[3] << 24; msg 79 fs/reiserfs/hashes.c b = (u32) msg[4] | msg 80 fs/reiserfs/hashes.c (u32) msg[5] << 8 | (u32) msg[6] << 16 | (u32) msg[7] << 24; msg 81 fs/reiserfs/hashes.c c = (u32) msg[8] | msg 82 fs/reiserfs/hashes.c (u32) msg[9] << 8 | msg 83 fs/reiserfs/hashes.c (u32) msg[10] << 16 | (u32) msg[11] << 24; msg 88 fs/reiserfs/hashes.c d |= msg[i]; msg 91 fs/reiserfs/hashes.c a = (u32) msg[0] | msg 92 fs/reiserfs/hashes.c (u32) msg[1] << 8 | (u32) msg[2] << 16 | (u32) msg[3] << 24; msg 93 fs/reiserfs/hashes.c b = (u32) msg[4] | msg 94 fs/reiserfs/hashes.c (u32) msg[5] << 8 | (u32) msg[6] << 16 | (u32) msg[7] << 24; msg 99 fs/reiserfs/hashes.c c |= msg[i]; msg 102 fs/reiserfs/hashes.c a = (u32) msg[0] | msg 103 fs/reiserfs/hashes.c (u32) msg[1] << 8 | (u32) msg[2] << 16 | (u32) msg[3] << 24; msg 108 fs/reiserfs/hashes.c b |= msg[i]; msg 114 fs/reiserfs/hashes.c a |= msg[i]; msg 128 fs/reiserfs/hashes.c u32 yura_hash(const signed char *msg, int len) msg 138 fs/reiserfs/hashes.c a = msg[0] - 48; msg 140 fs/reiserfs/hashes.c a = (msg[0] - 48) * pow; msg 143 fs/reiserfs/hashes.c c = msg[i] - 48; msg 167 fs/reiserfs/hashes.c u32 r5_hash(const signed char *msg, int len) msg 170 fs/reiserfs/hashes.c while (*msg) { msg 171 fs/reiserfs/hashes.c a += *msg << 4; msg 172 fs/reiserfs/hashes.c a += *msg >> 4; msg 174 fs/reiserfs/hashes.c msg++; msg 3387 fs/reiserfs/reiserfs.h __u32 keyed_hash(const signed char *msg, int len); msg 3388 fs/reiserfs/reiserfs.h __u32 yura_hash(const signed char *msg, int len); msg 3389 fs/reiserfs/reiserfs.h __u32 r5_hash(const signed char *msg, int len); msg 455 fs/reiserfs/xattr.c static inline __u32 xattr_hash(const char *msg, int len) msg 466 fs/reiserfs/xattr.c return csum_partial(msg, len, 0); msg 95 fs/userfaultfd.c struct uffd_msg msg; msg 119 fs/userfaultfd.c if (len && (start > uwq->msg.arg.pagefault.address || msg 120 fs/userfaultfd.c start + len <= uwq->msg.arg.pagefault.address)) msg 180 fs/userfaultfd.c static inline void msg_init(struct uffd_msg *msg) msg 187 fs/userfaultfd.c memset(msg, 0, sizeof(struct uffd_msg)); msg 195 fs/userfaultfd.c struct uffd_msg msg; msg 196 fs/userfaultfd.c msg_init(&msg); msg 197 fs/userfaultfd.c msg.event = UFFD_EVENT_PAGEFAULT; msg 198 fs/userfaultfd.c msg.arg.pagefault.address = address; msg 207 fs/userfaultfd.c msg.arg.pagefault.flags |= UFFD_PAGEFAULT_FLAG_WRITE; msg 216 fs/userfaultfd.c msg.arg.pagefault.flags |= UFFD_PAGEFAULT_FLAG_WP; msg 218 fs/userfaultfd.c msg.arg.pagefault.feat.ptid = task_pid_vnr(current); msg 219 fs/userfaultfd.c return msg; msg 460 fs/userfaultfd.c uwq.msg = userfault_msg(vmf->address, vmf->flags, reason, msg 604 fs/userfaultfd.c if (ewq->msg.event == 0) msg 615 fs/userfaultfd.c if (ewq->msg.event == UFFD_EVENT_FORK) { msg 620 fs/userfaultfd.c ewq->msg.arg.reserved.reserved1; msg 666 fs/userfaultfd.c ewq->msg.event = 0; msg 725 fs/userfaultfd.c msg_init(&ewq.msg); msg 727 fs/userfaultfd.c ewq.msg.event = UFFD_EVENT_FORK; msg 728 fs/userfaultfd.c ewq.msg.arg.reserved.reserved1 = (unsigned long)fctx->new; msg 780 fs/userfaultfd.c msg_init(&ewq.msg); msg 782 fs/userfaultfd.c ewq.msg.event = UFFD_EVENT_REMAP; msg 783 fs/userfaultfd.c ewq.msg.arg.remap.from = from; msg 784 fs/userfaultfd.c ewq.msg.arg.remap.to = to; msg 785 fs/userfaultfd.c ewq.msg.arg.remap.len = len; msg 805 fs/userfaultfd.c msg_init(&ewq.msg); msg 807 fs/userfaultfd.c ewq.msg.event = UFFD_EVENT_REMOVE; msg 808 fs/userfaultfd.c ewq.msg.arg.remove.start = start; msg 809 fs/userfaultfd.c ewq.msg.arg.remove.end = end; msg 862 fs/userfaultfd.c msg_init(&ewq.msg); msg 864 fs/userfaultfd.c ewq.msg.event = UFFD_EVENT_UNMAP; msg 865 fs/userfaultfd.c ewq.msg.arg.remove.start = ctx->start; msg 866 fs/userfaultfd.c ewq.msg.arg.remove.end = ctx->end; msg 1021 fs/userfaultfd.c struct uffd_msg *msg) msg 1030 fs/userfaultfd.c msg->arg.reserved.reserved1 = 0; msg 1031 fs/userfaultfd.c msg->arg.fork.ufd = fd; msg 1036 fs/userfaultfd.c struct uffd_msg *msg) msg 1095 fs/userfaultfd.c *msg = uwq->msg; msg 1105 fs/userfaultfd.c *msg = uwq->msg; msg 1107 fs/userfaultfd.c if (uwq->msg.event == UFFD_EVENT_FORK) { msg 1110 fs/userfaultfd.c uwq->msg.arg.reserved.reserved1; msg 1146 fs/userfaultfd.c if (!ret && msg->event == UFFD_EVENT_FORK) { msg 1147 fs/userfaultfd.c ret = resolve_userfault_fork(ctx, fork_nctx, msg); msg 1205 fs/userfaultfd.c struct uffd_msg msg; msg 1212 fs/userfaultfd.c if (count < sizeof(msg)) msg 1214 fs/userfaultfd.c _ret = userfaultfd_ctx_read(ctx, no_wait, &msg); msg 1217 fs/userfaultfd.c if (copy_to_user((__u64 __user *) buf, &msg, sizeof(msg))) msg 1219 fs/userfaultfd.c ret += sizeof(msg); msg 1220 fs/userfaultfd.c buf += sizeof(msg); msg 1221 fs/userfaultfd.c count -= sizeof(msg); msg 58 include/asm-generic/mshyperv.h static inline void vmbus_signal_eom(struct hv_message *msg, u32 old_msg_type) msg 70 include/asm-generic/mshyperv.h if (cmpxchg(&msg->header.message_type, old_msg_type, msg 82 include/asm-generic/mshyperv.h if (msg->header.message_flags.msg_pending) { msg 230 include/crypto/if_alg.h int af_alg_sendmsg(struct socket *sock, struct msghdr *msg, size_t size, msg 240 include/crypto/if_alg.h int af_alg_get_rsgl(struct sock *sk, struct msghdr *msg, int flags, msg 1299 include/drm/drm_dp_helper.h struct drm_dp_aux_msg *msg); msg 238 include/drm/drm_dp_mst_helper.h u8 msg[256]; msg 391 include/drm/drm_dp_mst_helper.h u8 msg[256]; msg 63 include/drm/drm_mipi_dsi.h const struct mipi_dsi_msg *msg); msg 89 include/drm/drm_mipi_dsi.h const struct mipi_dsi_msg *msg); msg 146 include/linux/acpi.h ssize_t (*write_log)(const char *msg); msg 164 include/linux/acpi.h ssize_t acpi_debugger_write_log(const char *msg); msg 190 include/linux/acpi.h static inline int acpi_debugger_write_log(const char *msg) msg 677 include/linux/avf/virtchnl.h u8 *msg, u16 msglen) msg 703 include/linux/avf/virtchnl.h (struct virtchnl_vsi_queue_config_info *)msg; msg 715 include/linux/avf/virtchnl.h (struct virtchnl_irq_map_info *)msg; msg 731 include/linux/avf/virtchnl.h (struct virtchnl_ether_addr_list *)msg; msg 743 include/linux/avf/virtchnl.h (struct virtchnl_vlan_filter_list *)msg; msg 771 include/linux/avf/virtchnl.h (struct virtchnl_iwarp_qvlist_info *)msg; msg 784 include/linux/avf/virtchnl.h (struct virtchnl_rss_key *)msg; msg 792 include/linux/avf/virtchnl.h (struct virtchnl_rss_lut *)msg; msg 811 include/linux/avf/virtchnl.h (struct virtchnl_tc_info *)msg; msg 39 include/linux/build_bug.h #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) msg 78 include/linux/build_bug.h #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) msg 213 include/linux/can/dev/peak_canfd.h static inline int pucan_error_get_channel(const struct pucan_error_msg *msg) msg 215 include/linux/can/dev/peak_canfd.h return msg->channel_type_d & 0x0f; msg 232 include/linux/can/dev/peak_canfd.h static inline int pucan_status_get_channel(const struct pucan_status_msg *msg) msg 234 include/linux/can/dev/peak_canfd.h return msg->channel_p_w_b & 0x0f; msg 237 include/linux/can/dev/peak_canfd.h static inline int pucan_status_is_rx_barrier(const struct pucan_status_msg *msg) msg 239 include/linux/can/dev/peak_canfd.h return msg->channel_p_w_b & PUCAN_RX_BARRIER; msg 242 include/linux/can/dev/peak_canfd.h static inline int pucan_status_is_passive(const struct pucan_status_msg *msg) msg 244 include/linux/can/dev/peak_canfd.h return msg->channel_p_w_b & PUCAN_BUS_PASSIVE; msg 247 include/linux/can/dev/peak_canfd.h static inline int pucan_status_is_warning(const struct pucan_status_msg *msg) msg 249 include/linux/can/dev/peak_canfd.h return msg->channel_p_w_b & PUCAN_BUS_WARNING; msg 252 include/linux/can/dev/peak_canfd.h static inline int pucan_status_is_busoff(const struct pucan_status_msg *msg) msg 254 include/linux/can/dev/peak_canfd.h return msg->channel_p_w_b & PUCAN_BUS_BUSOFF; msg 279 include/linux/can/dev/peak_canfd.h static inline int pucan_msg_get_channel(const struct pucan_rx_msg *msg) msg 281 include/linux/can/dev/peak_canfd.h return msg->channel_dlc & 0xf; msg 285 include/linux/can/dev/peak_canfd.h static inline int pucan_msg_get_dlc(const struct pucan_rx_msg *msg) msg 287 include/linux/can/dev/peak_canfd.h return msg->channel_dlc >> 4; msg 290 include/linux/can/dev/peak_canfd.h static inline int pucan_ermsg_get_channel(const struct pucan_error_msg *msg) msg 292 include/linux/can/dev/peak_canfd.h return msg->channel_type_d & 0x0f; msg 295 include/linux/can/dev/peak_canfd.h static inline int pucan_stmsg_get_channel(const struct pucan_status_msg *msg) msg 297 include/linux/can/dev/peak_canfd.h return msg->channel_p_w_b & 0x0f; msg 29 include/linux/ceph/auth.h struct ceph_msg *msg); msg 31 include/linux/ceph/auth.h struct ceph_msg *msg); msg 82 include/linux/ceph/auth.h struct ceph_msg *msg); msg 84 include/linux/ceph/auth.h struct ceph_msg *msg); msg 135 include/linux/ceph/auth.h struct ceph_msg *msg) msg 138 include/linux/ceph/auth.h return auth->sign_message(auth, msg); msg 144 include/linux/ceph/auth.h struct ceph_msg *msg) msg 147 include/linux/ceph/auth.h return auth->check_message_signature(auth, msg); msg 51 include/linux/ceph/messenger.h void (*reencode_message) (struct ceph_msg *msg); msg 53 include/linux/ceph/messenger.h int (*sign_message) (struct ceph_msg *msg); msg 54 include/linux/ceph/messenger.h int (*check_message_signature) (struct ceph_msg *msg); msg 351 include/linux/ceph/messenger.h extern void ceph_con_send(struct ceph_connection *con, struct ceph_msg *msg); msg 353 include/linux/ceph/messenger.h extern void ceph_msg_revoke(struct ceph_msg *msg); msg 354 include/linux/ceph/messenger.h extern void ceph_msg_revoke_incoming(struct ceph_msg *msg); msg 360 include/linux/ceph/messenger.h void ceph_msg_data_add_pages(struct ceph_msg *msg, struct page **pages, msg 362 include/linux/ceph/messenger.h extern void ceph_msg_data_add_pagelist(struct ceph_msg *msg, msg 365 include/linux/ceph/messenger.h void ceph_msg_data_add_bio(struct ceph_msg *msg, struct ceph_bio_iter *bio_pos, msg 368 include/linux/ceph/messenger.h void ceph_msg_data_add_bvecs(struct ceph_msg *msg, msg 376 include/linux/ceph/messenger.h extern struct ceph_msg *ceph_msg_get(struct ceph_msg *msg); msg 377 include/linux/ceph/messenger.h extern void ceph_msg_put(struct ceph_msg *msg); msg 379 include/linux/ceph/messenger.h extern void ceph_msg_dump(struct ceph_msg *msg); msg 387 include/linux/ceph/osd_client.h struct ceph_msg *msg); msg 389 include/linux/ceph/osd_client.h struct ceph_msg *msg); msg 772 include/linux/compat.h asmlinkage long compat_sys_sendmsg(int fd, struct compat_msghdr __user *msg, msg 774 include/linux/compat.h asmlinkage long compat_sys_recvmsg(int fd, struct compat_msghdr __user *msg, msg 327 include/linux/compiler.h # define __compiletime_assert(condition, msg, prefix, suffix) \ msg 329 include/linux/compiler.h extern void prefix ## suffix(void) __compiletime_error(msg); \ msg 334 include/linux/compiler.h # define __compiletime_assert(condition, msg, prefix, suffix) do { } while (0) msg 337 include/linux/compiler.h #define _compiletime_assert(condition, msg, prefix, suffix) \ msg 338 include/linux/compiler.h __compiletime_assert(condition, msg, prefix, suffix) msg 349 include/linux/compiler.h #define compiletime_assert(condition, msg) \ msg 350 include/linux/compiler.h _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) msg 99 include/linux/connector.h int cn_netlink_send_mult(struct cn_msg *msg, u16 len, u32 portid, u32 group, gfp_t gfp_mask); msg 122 include/linux/connector.h int cn_netlink_send(struct cn_msg *msg, u32 portid, u32 group, gfp_t gfp_mask); msg 36 include/linux/dma-iommu.h struct msi_msg *msg); msg 73 include/linux/dma-iommu.h struct msi_msg *msg) msg 276 include/linux/dmar.h extern void dmar_msi_read(int irq, struct msi_msg *msg); msg 277 include/linux/dmar.h extern void dmar_msi_write(int irq, struct msi_msg *msg); msg 547 include/linux/edac.h const char *msg; msg 49 include/linux/firmware/imx/ipc.h int imx_scu_call_rpc(struct imx_sc_ipc *ipc, void *msg, bool have_resp); msg 214 include/linux/firmware/intel/stratix10-svc-client.h int stratix10_svc_send(struct stratix10_svc_chan *chan, void *msg); msg 2174 include/linux/greybus/greybus_protocols.h __u8 msg[0]; msg 191 include/linux/hsi/hsi.h void (*complete)(struct hsi_msg *msg); msg 192 include/linux/hsi/hsi.h void (*destructor)(struct hsi_msg *msg); msg 202 include/linux/hsi/hsi.h void hsi_free_msg(struct hsi_msg *msg); msg 229 include/linux/hsi/hsi.h int (*async)(struct hsi_msg *msg); msg 319 include/linux/hsi/hsi.h int hsi_async(struct hsi_client *cl, struct hsi_msg *msg); msg 384 include/linux/hsi/hsi.h static inline int hsi_async_read(struct hsi_client *cl, struct hsi_msg *msg) msg 386 include/linux/hsi/hsi.h msg->ttype = HSI_MSG_READ; msg 387 include/linux/hsi/hsi.h return hsi_async(cl, msg); msg 397 include/linux/hsi/hsi.h static inline int hsi_async_write(struct hsi_client *cl, struct hsi_msg *msg) msg 399 include/linux/hsi/hsi.h msg->ttype = HSI_MSG_WRITE; msg 400 include/linux/hsi/hsi.h return hsi_async(cl, msg); msg 671 include/linux/hyperv.h unsigned char msg[0]; msg 676 include/linux/hyperv.h struct vmbus_channel_close_channel msg; msg 893 include/linux/i2c.h static inline u8 i2c_8bit_addr_from_msg(const struct i2c_msg *msg) msg 895 include/linux/i2c.h return (msg->addr << 1) | (msg->flags & I2C_M_RD ? 1 : 0); msg 898 include/linux/i2c.h u8 *i2c_get_dma_safe_msg_buf(struct i2c_msg *msg, unsigned int threshold); msg 899 include/linux/i2c.h void i2c_put_dma_safe_msg_buf(u8 *buf, struct i2c_msg *msg, bool xferred); msg 59 include/linux/iio/common/cros_ec_sensors_core.h struct cros_ec_command *msg; msg 65 include/linux/iio/imu/adis.h struct spi_message msg; msg 308 include/linux/iommu.h struct iommu_page_response *msg); msg 479 include/linux/iommu.h struct iommu_page_response *msg); msg 846 include/linux/iommu.h struct iommu_page_response *msg) msg 51 include/linux/ipmi.h struct kernel_ipmi_msg msg; msg 66 include/linux/ipmi.h void (*done)(struct ipmi_recv_msg *msg); msg 76 include/linux/ipmi.h void ipmi_free_recv_msg(struct ipmi_recv_msg *msg); msg 86 include/linux/ipmi.h void (*ipmi_recv_hndl)(struct ipmi_recv_msg *msg, msg 169 include/linux/ipmi.h struct kernel_ipmi_msg *msg, msg 187 include/linux/ipmi.h struct kernel_ipmi_msg *msg, msg 70 include/linux/ipmi_smi.h void (*done)(struct ipmi_smi_msg *msg); msg 108 include/linux/ipmi_smi.h struct ipmi_smi_msg *msg); msg 249 include/linux/ipmi_smi.h struct ipmi_smi_msg *msg); msg 255 include/linux/ipmi_smi.h static inline void ipmi_free_smi_msg(struct ipmi_smi_msg *msg) msg 257 include/linux/ipmi_smi.h msg->done(msg); msg 502 include/linux/irq.h void (*irq_compose_msi_msg)(struct irq_data *data, struct msi_msg *msg); msg 503 include/linux/irq.h void (*irq_write_msi_msg)(struct irq_data *data, struct msi_msg *msg); msg 625 include/linux/irq.h extern int irq_chip_compose_msi_msg(struct irq_data *data, struct msi_msg *msg); msg 150 include/linux/isdn/capiutil.h unsigned capi_cmsg2message(_cmsg * cmsg, __u8 * msg); msg 156 include/linux/isdn/capiutil.h unsigned capi_message2cmsg(_cmsg * cmsg, __u8 * msg); msg 190 include/linux/isdn/capiutil.h _cdebbuf *capi_message2str(__u8 *msg); msg 323 include/linux/kernel.h void nmi_panic(struct pt_regs *regs, const char *msg); msg 329 include/linux/kgdb.h extern void kgdb_panic(const char *msg); msg 333 include/linux/kgdb.h static inline void kgdb_panic(const char *msg) {} msg 1659 include/linux/lsm_hooks.h int (*msg_msg_alloc_security)(struct msg_msg *msg); msg 1660 include/linux/lsm_hooks.h void (*msg_msg_free_security)(struct msg_msg *msg); msg 1666 include/linux/lsm_hooks.h int (*msg_queue_msgsnd)(struct kern_ipc_perm *perm, struct msg_msg *msg, msg 1668 include/linux/lsm_hooks.h int (*msg_queue_msgrcv)(struct kern_ipc_perm *perm, struct msg_msg *msg, msg 1717 include/linux/lsm_hooks.h int (*socket_sendmsg)(struct socket *sock, struct msghdr *msg, msg 1719 include/linux/lsm_hooks.h int (*socket_recvmsg)(struct socket *sock, struct msghdr *msg, msg 117 include/linux/mfd/ipaq-micro.h struct ipaq_micro_msg *msg; msg 126 include/linux/mfd/ipaq-micro.h ipaq_micro_tx_msg(struct ipaq_micro *micro, struct ipaq_micro_msg *msg); msg 130 include/linux/mfd/ipaq-micro.h struct ipaq_micro_msg *msg) msg 134 include/linux/mfd/ipaq-micro.h init_completion(&msg->ack); msg 135 include/linux/mfd/ipaq-micro.h ret = ipaq_micro_tx_msg(micro, msg); msg 136 include/linux/mfd/ipaq-micro.h wait_for_completion(&msg->ack); msg 143 include/linux/mfd/ipaq-micro.h struct ipaq_micro_msg *msg) msg 145 include/linux/mfd/ipaq-micro.h init_completion(&msg->ack); msg 146 include/linux/mfd/ipaq-micro.h return ipaq_micro_tx_msg(micro, msg); msg 20 include/linux/msi.h void __get_cached_msi_msg(struct msi_desc *entry, struct msi_msg *msg); msg 22 include/linux/msi.h void get_cached_msi_msg(unsigned int irq, struct msi_msg *msg); msg 24 include/linux/msi.h static inline void get_cached_msi_msg(unsigned int irq, struct msi_msg *msg) msg 30 include/linux/msi.h struct msi_msg *msg); msg 91 include/linux/msi.h struct msi_msg msg; msg 173 include/linux/msi.h void pci_write_msi_msg(unsigned int irq, struct msi_msg *msg); msg 179 include/linux/msi.h static inline void pci_write_msi_msg(unsigned int irq, struct msi_msg *msg) msg 187 include/linux/msi.h void __pci_read_msi_msg(struct msi_desc *entry, struct msi_msg *msg); msg 188 include/linux/msi.h void __pci_write_msi_msg(struct msi_desc *entry, struct msi_msg *msg); msg 368 include/linux/msi.h void pci_msi_domain_write_msg(struct irq_data *irq_data, struct msi_msg *msg); msg 202 include/linux/net.h int (*sendmsg_locked)(struct sock *sk, struct msghdr *msg, msg 238 include/linux/net.h int sock_sendmsg(struct socket *sock, struct msghdr *msg); msg 239 include/linux/net.h int sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags); msg 291 include/linux/net.h int kernel_sendmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec, msg 293 include/linux/net.h int kernel_sendmsg_locked(struct sock *sk, struct msghdr *msg, msg 295 include/linux/net.h int kernel_recvmsg(struct socket *sock, struct msghdr *msg, struct kvec *vec, msg 13 include/linux/netfilter/nf_conntrack_pptp.h const char *pptp_msg_name(u_int16_t msg); msg 111 include/linux/netfilter/nf_conntrack_sip.h unsigned int (*msg)(struct sk_buff *skb, msg 87 include/linux/netlink.h #define NL_SET_ERR_MSG(extack, msg) do { \ msg 88 include/linux/netlink.h static const char __msg[] = msg; \ msg 95 include/linux/netlink.h #define NL_SET_ERR_MSG_MOD(extack, msg) \ msg 96 include/linux/netlink.h NL_SET_ERR_MSG((extack), KBUILD_MODNAME ": " msg) msg 103 include/linux/netlink.h #define NL_SET_ERR_MSG_ATTR(extack, attr, msg) do { \ msg 104 include/linux/netlink.h static const char __msg[] = msg; \ msg 58 include/linux/netpoll.h void netpoll_send_udp(struct netpoll *np, const char *msg, int len); msg 1664 include/linux/nfs_xdr.h void (*rename_setup) (struct rpc_message *msg, msg 331 include/linux/ntb.h int (*peer_msg_write)(struct ntb_dev *ntb, int pidx, int midx, u32 msg); msg 1558 include/linux/ntb.h u32 msg) msg 1563 include/linux/ntb.h return ntb->ops->peer_msg_write(ntb, pidx, midx, msg); msg 363 include/linux/of.h extern void of_print_phandle_args(const char *msg, const struct of_phandle_args *args); msg 3917 include/linux/platform_data/cros_ec_commands.h struct ec_params_i2c_passthru_msg msg[]; msg 4412 include/linux/platform_data/cros_ec_commands.h uint8_t msg[MAX_CEC_MSG_LEN]; msg 152 include/linux/platform_data/cros_ec_proto.h struct cros_ec_command *msg); msg 154 include/linux/platform_data/cros_ec_proto.h struct cros_ec_command *msg); msg 222 include/linux/platform_data/cros_ec_proto.h struct cros_ec_command *msg); msg 235 include/linux/platform_data/cros_ec_proto.h struct cros_ec_command *msg); msg 248 include/linux/platform_data/cros_ec_proto.h struct cros_ec_command *msg); msg 263 include/linux/platform_data/cros_ec_proto.h struct cros_ec_command *msg); msg 121 include/linux/platform_data/wilco-ec.h int wilco_ec_mailbox(struct wilco_ec_device *ec, struct wilco_ec_message *msg); msg 471 include/linux/pm.h #define PMSG_IS_AUTO(msg) (((msg).event & PM_EVENT_AUTO) != 0) msg 253 include/linux/power/charger-manager.h enum cm_event_types type, char *msg); msg 256 include/linux/power/charger-manager.h enum cm_event_types type, char *msg) { } msg 199 include/linux/rio.h int (*pwcback) (struct rio_dev *rdev, union rio_pw_msg *msg, int step); msg 379 include/linux/rio_drv.h union rio_pw_msg *msg, int step)); msg 382 include/linux/rio_drv.h union rio_pw_msg *msg, int step)); msg 419 include/linux/scif.h int scif_send(scif_epd_t epd, void *msg, int len, int flags); msg 471 include/linux/scif.h int scif_recv(scif_epd_t epd, void *msg, int len, int flags); msg 412 include/linux/security.h int security_msg_msg_alloc(struct msg_msg *msg); msg 413 include/linux/security.h void security_msg_msg_free(struct msg_msg *msg); msg 419 include/linux/security.h struct msg_msg *msg, int msqflg); msg 420 include/linux/security.h int security_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg, msg 1122 include/linux/security.h static inline int security_msg_msg_alloc(struct msg_msg *msg) msg 1127 include/linux/security.h static inline void security_msg_msg_free(struct msg_msg *msg) msg 1150 include/linux/security.h struct msg_msg *msg, int msqflg) msg 1156 include/linux/security.h struct msg_msg *msg, msg 1289 include/linux/security.h int security_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size); msg 1290 include/linux/security.h int security_socket_recvmsg(struct socket *sock, struct msghdr *msg, msg 1388 include/linux/security.h struct msghdr *msg, int size) msg 1394 include/linux/security.h struct msghdr *msg, int size, msg 502 include/linux/skbuff.h int skb_zerocopy_iter_dgram(struct sk_buff *skb, struct msghdr *msg, int len); msg 504 include/linux/skbuff.h struct msghdr *msg, int len, msg 3489 include/linux/skbuff.h struct msghdr *msg, int size) msg 3491 include/linux/skbuff.h return skb_copy_datagram_iter(from, offset, &msg->msg_iter, size); msg 3494 include/linux/skbuff.h struct msghdr *msg); msg 3542 include/linux/skbuff.h static inline int memcpy_from_msg(void *data, struct msghdr *msg, int len) msg 3544 include/linux/skbuff.h return copy_from_iter_full(data, len, &msg->msg_iter) ? 0 : -EFAULT; msg 3547 include/linux/skbuff.h static inline int memcpy_to_msg(struct msghdr *msg, void *data, int len) msg 3549 include/linux/skbuff.h return copy_to_iter(data, len, &msg->msg_iter) == len ? 0 : -EFAULT; msg 111 include/linux/skmsg.h int sk_msg_alloc(struct sock *sk, struct sk_msg *msg, int len, msg 115 include/linux/skmsg.h void sk_msg_trim(struct sock *sk, struct sk_msg *msg, int len); msg 116 include/linux/skmsg.h int sk_msg_free(struct sock *sk, struct sk_msg *msg); msg 117 include/linux/skmsg.h int sk_msg_free_nocharge(struct sock *sk, struct sk_msg *msg); msg 118 include/linux/skmsg.h void sk_msg_free_partial(struct sock *sk, struct sk_msg *msg, u32 bytes); msg 119 include/linux/skmsg.h void sk_msg_free_partial_nocharge(struct sock *sk, struct sk_msg *msg, msg 122 include/linux/skmsg.h void sk_msg_return(struct sock *sk, struct sk_msg *msg, int bytes); msg 123 include/linux/skmsg.h void sk_msg_return_zero(struct sock *sk, struct sk_msg *msg, int bytes); msg 126 include/linux/skmsg.h struct sk_msg *msg, u32 bytes); msg 128 include/linux/skmsg.h struct sk_msg *msg, u32 bytes); msg 130 include/linux/skmsg.h static inline void sk_msg_check_to_free(struct sk_msg *msg, u32 i, u32 bytes) msg 132 include/linux/skmsg.h WARN_ON(i == msg->sg.end && bytes); msg 165 include/linux/skmsg.h #define sk_msg_iter_prev(msg, which) \ msg 166 include/linux/skmsg.h sk_msg_iter_var_prev(msg->sg.which) msg 168 include/linux/skmsg.h #define sk_msg_iter_next(msg, which) \ msg 169 include/linux/skmsg.h sk_msg_iter_var_next(msg->sg.which) msg 171 include/linux/skmsg.h static inline void sk_msg_clear_meta(struct sk_msg *msg) msg 173 include/linux/skmsg.h memset(&msg->sg, 0, offsetofend(struct sk_msg_sg, copy)); msg 176 include/linux/skmsg.h static inline void sk_msg_init(struct sk_msg *msg) msg 178 include/linux/skmsg.h BUILD_BUG_ON(ARRAY_SIZE(msg->sg.data) - 1 != NR_MSG_FRAG_IDS); msg 179 include/linux/skmsg.h memset(msg, 0, sizeof(*msg)); msg 180 include/linux/skmsg.h sg_init_marker(msg->sg.data, NR_MSG_FRAG_IDS); msg 200 include/linux/skmsg.h static inline bool sk_msg_full(const struct sk_msg *msg) msg 202 include/linux/skmsg.h return sk_msg_iter_dist(msg->sg.start, msg->sg.end) == MAX_MSG_FRAGS; msg 205 include/linux/skmsg.h static inline u32 sk_msg_elem_used(const struct sk_msg *msg) msg 207 include/linux/skmsg.h return sk_msg_iter_dist(msg->sg.start, msg->sg.end); msg 210 include/linux/skmsg.h static inline struct scatterlist *sk_msg_elem(struct sk_msg *msg, int which) msg 212 include/linux/skmsg.h return &msg->sg.data[which]; msg 215 include/linux/skmsg.h static inline struct scatterlist sk_msg_elem_cpy(struct sk_msg *msg, int which) msg 217 include/linux/skmsg.h return msg->sg.data[which]; msg 220 include/linux/skmsg.h static inline struct page *sk_msg_page(struct sk_msg *msg, int which) msg 222 include/linux/skmsg.h return sg_page(sk_msg_elem(msg, which)); msg 225 include/linux/skmsg.h static inline bool sk_msg_to_ingress(const struct sk_msg *msg) msg 227 include/linux/skmsg.h return msg->flags & BPF_F_INGRESS; msg 230 include/linux/skmsg.h static inline void sk_msg_compute_data_pointers(struct sk_msg *msg) msg 232 include/linux/skmsg.h struct scatterlist *sge = sk_msg_elem(msg, msg->sg.start); msg 234 include/linux/skmsg.h if (msg->sg.copy[msg->sg.start]) { msg 235 include/linux/skmsg.h msg->data = NULL; msg 236 include/linux/skmsg.h msg->data_end = NULL; msg 238 include/linux/skmsg.h msg->data = sg_virt(sge); msg 239 include/linux/skmsg.h msg->data_end = msg->data + sge->length; msg 243 include/linux/skmsg.h static inline void sk_msg_page_add(struct sk_msg *msg, struct page *page, msg 249 include/linux/skmsg.h sge = sk_msg_elem(msg, msg->sg.end); msg 253 include/linux/skmsg.h msg->sg.copy[msg->sg.end] = true; msg 254 include/linux/skmsg.h msg->sg.size += len; msg 255 include/linux/skmsg.h sk_msg_iter_next(msg, end); msg 258 include/linux/skmsg.h static inline void sk_msg_sg_copy(struct sk_msg *msg, u32 i, bool copy_state) msg 261 include/linux/skmsg.h msg->sg.copy[i] = copy_state; msg 263 include/linux/skmsg.h if (i == msg->sg.end) msg 268 include/linux/skmsg.h static inline void sk_msg_sg_copy_set(struct sk_msg *msg, u32 start) msg 270 include/linux/skmsg.h sk_msg_sg_copy(msg, start, true); msg 273 include/linux/skmsg.h static inline void sk_msg_sg_copy_clear(struct sk_msg *msg, u32 start) msg 275 include/linux/skmsg.h sk_msg_sg_copy(msg, start, false); msg 284 include/linux/skmsg.h struct sk_msg *msg) msg 286 include/linux/skmsg.h list_add_tail(&msg->list, &psock->ingress_msg); msg 309 include/linux/skmsg.h struct sk_msg *msg); msg 194 include/linux/slimbus.h int slim_xfer_msg(struct slim_device *sbdev, struct slim_val_inf *msg, msg 31 include/linux/soc/ixp4xx/npe.h int npe_send_message(struct npe *npe, const void *msg, const char *what); msg 32 include/linux/soc/ixp4xx/npe.h int npe_recv_message(struct npe *npe, void *msg, const char *what); msg 33 include/linux/soc/ixp4xx/npe.h int npe_send_recv_message(struct npe *npe, void *msg, const char *what); msg 104 include/linux/socket.h #define CMSG_FIRSTHDR(msg) __CMSG_FIRSTHDR((msg)->msg_control, (msg)->msg_controllen) msg 109 include/linux/socket.h #define for_each_cmsghdr(cmsg, msg) \ msg 110 include/linux/socket.h for (cmsg = CMSG_FIRSTHDR(msg); \ msg 112 include/linux/socket.h cmsg = CMSG_NXTHDR(msg, cmsg)) msg 144 include/linux/socket.h static inline size_t msg_data_left(struct msghdr *msg) msg 146 include/linux/socket.h return iov_iter_count(&msg->msg_iter); msg 364 include/linux/socket.h extern void put_cmsg_scm_timestamping64(struct msghdr *msg, struct scm_timestamping_internal *tss); msg 365 include/linux/socket.h extern void put_cmsg_scm_timestamping(struct msghdr *msg, struct scm_timestamping_internal *tss); msg 370 include/linux/socket.h extern long __sys_recvmsg(int fd, struct user_msghdr __user *msg, msg 372 include/linux/socket.h extern long __sys_sendmsg(int fd, struct user_msghdr __user *msg, msg 382 include/linux/socket.h struct user_msghdr __user *msg, msg 385 include/linux/socket.h struct user_msghdr __user *msg, msg 692 include/linux/soundwire/sdw.h struct sdw_msg *msg; msg 709 include/linux/soundwire/sdw.h (struct sdw_bus *bus, struct sdw_msg *msg); msg 711 include/linux/soundwire/sdw.h (struct sdw_bus *bus, struct sdw_msg *msg, msg 678 include/linux/spi/spi.h struct spi_message *msg, msg 1043 include/linux/spi/spi.h struct spi_message *msg, msg 1074 include/linux/spi/spi.h struct spi_message *msg, msg 1087 include/linux/spi/spi.h struct spi_message *msg, msg 1120 include/linux/spi/spi.h struct spi_message msg; msg 1122 include/linux/spi/spi.h spi_message_init_with_transfers(&msg, xfers, num_xfers); msg 1124 include/linux/spi/spi.h return spi_sync(spi, &msg); msg 184 include/linux/sunrpc/clnt.h const struct rpc_message *msg, int flags, msg 188 include/linux/sunrpc/clnt.h const struct rpc_message *msg, int flags); msg 265 include/linux/switchtec.h u32 msg; msg 270 include/linux/switchtec.h u32 msg; msg 815 include/linux/syscalls.h asmlinkage long sys_sendmsg(int fd, struct user_msghdr __user *msg, unsigned flags); msg 816 include/linux/syscalls.h asmlinkage long sys_recvmsg(int fd, struct user_msghdr __user *msg, unsigned flags); msg 906 include/linux/syscalls.h asmlinkage long sys_recvmmsg(int fd, struct mmsghdr __user *msg, msg 909 include/linux/syscalls.h asmlinkage long sys_recvmmsg_time32(int fd, struct mmsghdr __user *msg, msg 935 include/linux/syscalls.h asmlinkage long sys_sendmmsg(int fd, struct mmsghdr __user *msg, msg 26 include/linux/torture.h #define torture_param(type, name, init, msg) \ msg 29 include/linux/torture.h MODULE_PARM_DESC(name, msg); msg 488 include/linux/tty.h extern void tty_write_message(struct tty_struct *tty, char *msg); msg 121 include/linux/udp.h static inline void udp_cmsg_recv(struct msghdr *msg, struct sock *sk, msg 128 include/linux/udp.h put_cmsg(msg, SOL_UDP, UDP_GRO, sizeof(gso_size), &gso_size); msg 672 include/linux/usb/hcd.h extern int hcd_bus_suspend(struct usb_device *rhdev, pm_message_t msg); msg 673 include/linux/usb/hcd.h extern int hcd_bus_resume(struct usb_device *rhdev, pm_message_t msg); msg 146 include/linux/usb/tcpm.h const struct pd_message *msg); msg 157 include/linux/usb/tcpm.h const struct pd_message *msg); msg 64 include/linux/virtio_vsock.h struct msghdr *msg; msg 82 include/linux/virtio_vsock.h struct msghdr *msg, msg 87 include/linux/virtio_vsock.h struct msghdr *msg, msg 143 include/linux/virtio_vsock.h struct msghdr *msg, msg 148 include/linux/virtio_vsock.h struct msghdr *msg, msg 335 include/linux/visorbus.h void *msg); msg 337 include/linux/visorbus.h void *msg); msg 32 include/linux/vmw_vmci_api.h int vmci_datagram_send(struct vmci_datagram *msg); msg 69 include/linux/vmw_vmci_api.h struct msghdr *msg, size_t iov_size, int mode); msg 71 include/linux/vmw_vmci_api.h struct msghdr *msg, size_t iov_size, int mode); msg 72 include/linux/vmw_vmci_api.h ssize_t vmci_qpair_peekv(struct vmci_qp *qpair, struct msghdr *msg, size_t iov_size, msg 667 include/linux/vmw_vmci_defs.h struct vmci_event_msg msg; msg 673 include/linux/vmw_vmci_defs.h struct vmci_event_msg msg; msg 713 include/linux/vmw_vmci_defs.h struct vmci_datagram *msg); msg 93 include/linux/zlib.h char *msg; /* last error message, NULL if no error */ msg 64 include/media/cec.h struct cec_msg msg; msg 75 include/media/cec.h struct cec_msg msg; msg 118 include/media/cec.h u32 signal_free_time, struct cec_msg *msg); msg 127 include/media/cec.h int (*received)(struct cec_adapter *adap, struct cec_msg *msg); msg 285 include/media/cec.h int cec_transmit_msg(struct cec_adapter *adap, struct cec_msg *msg, msg 315 include/media/cec.h struct cec_msg *msg, ktime_t ts); msg 318 include/media/cec.h struct cec_msg *msg) msg 320 include/media/cec.h cec_received_msg_ts(adap, msg, ktime_get()); msg 218 include/net/6lowpan.h static inline void raw_dump_inline(const char *caller, char *msg, msg 221 include/net/6lowpan.h if (msg) msg 222 include/net/6lowpan.h pr_debug("%s():%s: ", caller, msg); msg 233 include/net/6lowpan.h static inline void raw_dump_table(const char *caller, char *msg, msg 236 include/net/6lowpan.h if (msg) msg 237 include/net/6lowpan.h pr_debug("%s():%s:\n", caller, msg); msg 242 include/net/6lowpan.h static inline void raw_dump_table(const char *caller, char *msg, msg 244 include/net/6lowpan.h static inline void raw_dump_inline(const char *caller, char *msg, msg 105 include/net/af_vsock.h int (*dgram_dequeue)(struct vsock_sock *vsk, struct msghdr *msg, msg 270 include/net/bluetooth/bluetooth.h int bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, msg 272 include/net/bluetooth/bluetooth.h int bt_sock_stream_recvmsg(struct socket *sock, struct msghdr *msg, msg 935 include/net/bluetooth/l2cap.h int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len); msg 947 include/net/devlink.h const char *msg, void *priv_ctx); msg 114 include/net/genetlink.h #define GENL_SET_ERR_MSG(info, msg) NL_SET_ERR_MSG((info)->extack, msg) msg 29 include/net/inet_common.h int inet_sendmsg(struct socket *sock, struct msghdr *msg, size_t size); msg 32 include/net/inet_common.h int inet_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, msg 46 include/net/inet_common.h int inet_recv_error(struct sock *sk, struct msghdr *msg, int len, msg 726 include/net/ip.h void ip_cmsg_recv_offset(struct msghdr *msg, struct sock *sk, msg 728 include/net/ip.h int ip_cmsg_send(struct sock *sk, struct msghdr *msg, msg 741 include/net/ip.h int ip_recv_error(struct sock *sk, struct msghdr *msg, int len, int *addr_len); msg 747 include/net/ip.h static inline void ip_cmsg_recv(struct msghdr *msg, struct sk_buff *skb) msg 749 include/net/ip.h ip_cmsg_recv_offset(msg, skb->sk, skb, 0, 0); msg 210 include/net/ip_vs.h #define IP_VS_DBG_BUF(level, msg, ...) \ msg 215 include/net/ip_vs.h printk(KERN_DEBUG pr_fmt(msg), ##__VA_ARGS__); \ msg 217 include/net/ip_vs.h #define IP_VS_ERR_BUF(msg...) \ msg 221 include/net/ip_vs.h pr_err(msg); \ msg 230 include/net/ip_vs.h #define IP_VS_DBG(level, msg, ...) \ msg 233 include/net/ip_vs.h printk(KERN_DEBUG pr_fmt(msg), ##__VA_ARGS__); \ msg 235 include/net/ip_vs.h #define IP_VS_DBG_RL(msg, ...) \ msg 238 include/net/ip_vs.h printk(KERN_DEBUG pr_fmt(msg), ##__VA_ARGS__); \ msg 240 include/net/ip_vs.h #define IP_VS_DBG_PKT(level, af, pp, skb, ofs, msg) \ msg 243 include/net/ip_vs.h pp->debug_packet(af, pp, skb, ofs, msg); \ msg 245 include/net/ip_vs.h #define IP_VS_DBG_RL_PKT(level, af, pp, skb, ofs, msg) \ msg 249 include/net/ip_vs.h pp->debug_packet(af, pp, skb, ofs, msg); \ msg 252 include/net/ip_vs.h #define IP_VS_DBG_BUF(level, msg...) do {} while (0) msg 253 include/net/ip_vs.h #define IP_VS_ERR_BUF(msg...) do {} while (0) msg 254 include/net/ip_vs.h #define IP_VS_DBG(level, msg...) do {} while (0) msg 255 include/net/ip_vs.h #define IP_VS_DBG_RL(msg...) do {} while (0) msg 256 include/net/ip_vs.h #define IP_VS_DBG_PKT(level, af, pp, skb, ofs, msg) do {} while (0) msg 257 include/net/ip_vs.h #define IP_VS_DBG_RL_PKT(level, af, pp, skb, ofs, msg) do {} while (0) msg 261 include/net/ip_vs.h #define IP_VS_ERR_RL(msg, ...) \ msg 264 include/net/ip_vs.h pr_err(msg, ##__VA_ARGS__); \ msg 471 include/net/ip_vs.h const char *msg); msg 1369 include/net/ip_vs.h const char *msg); msg 1396 include/net/ip_vs.h void ip_vs_scheduler_err(struct ip_vs_service *svc, const char *msg); msg 1094 include/net/ipv6.h int ipv6_recv_error(struct sock *sk, struct msghdr *msg, int len, msg 1096 include/net/ipv6.h int ipv6_recv_rxpmtu(struct sock *sk, struct msghdr *msg, int len, msg 150 include/net/ipx.h struct msghdr *msg, size_t len, int noblock); msg 57 include/net/iucv/af_iucv.h struct iucv_message msg; msg 326 include/net/iucv/iucv.h int iucv_message_purge(struct iucv_path *path, struct iucv_message *msg, msg 346 include/net/iucv/iucv.h int iucv_message_receive(struct iucv_path *path, struct iucv_message *msg, msg 366 include/net/iucv/iucv.h int __iucv_message_receive(struct iucv_path *path, struct iucv_message *msg, msg 381 include/net/iucv/iucv.h int iucv_message_reject(struct iucv_path *path, struct iucv_message *msg); msg 398 include/net/iucv/iucv.h int iucv_message_reply(struct iucv_path *path, struct iucv_message *msg, msg 418 include/net/iucv/iucv.h int iucv_message_send(struct iucv_path *path, struct iucv_message *msg, msg 438 include/net/iucv/iucv.h int __iucv_message_send(struct iucv_path *path, struct iucv_message *msg, msg 460 include/net/iucv/iucv.h int iucv_message_send2way(struct iucv_path *path, struct iucv_message *msg, msg 465 include/net/iucv/iucv.h int (*message_receive)(struct iucv_path *path, struct iucv_message *msg, msg 468 include/net/iucv/iucv.h struct iucv_message *msg, u8 flags, void *buffer, size_t size, msg 470 include/net/iucv/iucv.h int (*message_reply)(struct iucv_path *path, struct iucv_message *msg, msg 472 include/net/iucv/iucv.h int (*message_reject)(struct iucv_path *path, struct iucv_message *msg); msg 473 include/net/iucv/iucv.h int (*message_send)(struct iucv_path *path, struct iucv_message *msg, msg 475 include/net/iucv/iucv.h int (*__message_send)(struct iucv_path *path, struct iucv_message *msg, msg 478 include/net/iucv/iucv.h struct iucv_message *msg, u8 flags, u32 srccls, void *buffer, msg 480 include/net/iucv/iucv.h int (*message_purge)(struct iucv_path *path, struct iucv_message *msg, msg 30 include/net/ping.h int (*ipv6_recv_error)(struct sock *sk, struct msghdr *msg, int len, msg 33 include/net/ping.h struct msghdr *msg, msg 36 include/net/ping.h struct msghdr *msg, msg 58 include/net/ping.h struct msghdr *msg; msg 74 include/net/ping.h int ping_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int noblock, msg 76 include/net/ping.h int ping_common_sendmsg(int family, struct msghdr *msg, size_t len, msg 52 include/net/rsi_91x.h int (*recv_pkt)(void *priv, const u8 *msg); msg 40 include/net/scm.h void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm); msg 41 include/net/scm.h void scm_detach_fds_compat(struct msghdr *msg, struct scm_cookie *scm); msg 42 include/net/scm.h int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm); msg 78 include/net/scm.h static __inline__ int scm_send(struct socket *sock, struct msghdr *msg, msg 87 include/net/scm.h if (msg->msg_controllen <= 0) msg 89 include/net/scm.h return __scm_send(sock, msg, scm); msg 93 include/net/scm.h static inline void scm_passec(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm) msg 103 include/net/scm.h put_cmsg(msg, SOL_SOCKET, SCM_SECURITY, seclen, secdata); msg 109 include/net/scm.h static inline void scm_passec(struct socket *sock, struct msghdr *msg, struct scm_cookie *scm) msg 113 include/net/scm.h static __inline__ void scm_recv(struct socket *sock, struct msghdr *msg, msg 116 include/net/scm.h if (!msg->msg_control) { msg 118 include/net/scm.h msg->msg_flags |= MSG_CTRUNC; msg 130 include/net/scm.h put_cmsg(msg, SOL_SOCKET, SCM_CREDENTIALS, sizeof(ucreds), &ucreds); msg 135 include/net/scm.h scm_passec(sock, msg, scm); msg 140 include/net/scm.h scm_detach_fds(msg, scm); msg 124 include/net/sctp/command.h struct sctp_datamsg *msg; msg 165 include/net/sctp/command.h SCTP_ARG_CONSTRUCTOR(DATAMSG, struct sctp_datamsg *, msg) msg 33 include/net/sctp/stream_sched.h void (*enqueue)(struct sctp_outq *q, struct sctp_datamsg *msg); msg 632 include/net/sctp/structs.h struct sctp_datamsg *msg; msg 81 include/net/sock.h #define SOCK_DEBUG(sk, msg...) do { if ((sk) && sock_flag((sk), SOCK_DBG)) \ msg 82 include/net/sock.h printk(KERN_DEBUG msg); } while (0) msg 86 include/net/sock.h void SOCK_DEBUG(const struct sock *sk, const char *msg, ...) msg 1110 include/net/sock.h int (*sendmsg)(struct sock *sk, struct msghdr *msg, msg 1112 include/net/sock.h int (*recvmsg)(struct sock *sk, struct msghdr *msg, msg 1653 include/net/sock.h int __sock_cmsg_send(struct sock *sk, struct msghdr *msg, struct cmsghdr *cmsg, msg 1655 include/net/sock.h int sock_cmsg_send(struct sock *sk, struct msghdr *msg, msg 1673 include/net/sock.h int sock_no_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t len); msg 1688 include/net/sock.h int sock_common_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, msg 2365 include/net/sock.h void __sock_recv_timestamp(struct msghdr *msg, struct sock *sk, msg 2367 include/net/sock.h void __sock_recv_wifi_status(struct msghdr *msg, struct sock *sk, msg 2371 include/net/sock.h sock_recv_timestamp(struct msghdr *msg, struct sock *sk, struct sk_buff *skb) msg 2387 include/net/sock.h __sock_recv_timestamp(msg, sk, skb); msg 2392 include/net/sock.h __sock_recv_wifi_status(msg, sk, skb); msg 2395 include/net/sock.h void __sock_recv_ts_and_drops(struct msghdr *msg, struct sock *sk, msg 2399 include/net/sock.h static inline void sock_recv_ts_and_drops(struct msghdr *msg, struct sock *sk, msg 2408 include/net/sock.h __sock_recv_ts_and_drops(msg, sk, skb); msg 2537 include/net/sock.h int sock_recv_errqueue(struct sock *sk, struct msghdr *msg, int len, int level, msg 323 include/net/tcp.h int tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size); msg 324 include/net/tcp.h int tcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t size); msg 404 include/net/tcp.h int tcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock, msg 459 include/net/tcp.h int tcp_send_rcvq(struct sock *sk, struct msghdr *msg, size_t size); msg 2176 include/net/tcp.h int tcp_bpf_sendmsg_redir(struct sock *sk, struct sk_msg *msg, u32 bytes, msg 2178 include/net/tcp.h int tcp_bpf_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, msg 2181 include/net/tcp.h struct msghdr *msg, int len, int flags); msg 361 include/net/tls.h int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size); msg 372 include/net/tls.h int tls_sw_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, msg 379 include/net/tls.h int tls_device_sendmsg(struct sock *sk, struct msghdr *msg, size_t size); msg 654 include/net/tls.h int tls_proccess_cmsg(struct sock *sk, struct msghdr *msg, msg 37 include/net/transp_v6.h void ip6_datagram_recv_ctl(struct sock *sk, struct msghdr *msg, msg 39 include/net/transp_v6.h void ip6_datagram_recv_common_ctl(struct sock *sk, struct msghdr *msg, msg 41 include/net/transp_v6.h void ip6_datagram_recv_specific_ctl(struct sock *sk, struct msghdr *msg, msg 44 include/net/transp_v6.h int ip6_datagram_send_ctl(struct net *net, struct sock *sk, struct msghdr *msg, msg 284 include/net/udp.h int udp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len); msg 287 include/net/udp.h int udp_cmsg_send(struct sock *sk, struct msghdr *msg, u16 *gso_size); msg 23 include/net/udplite.h struct msghdr *msg = from; msg 24 include/net/udplite.h return copy_from_iter_full(to, len, &msg->msg_iter) ? 0 : -EFAULT; msg 119 include/ras/ras_event.h __string( msg, error_msg ) msg 134 include/ras/ras_event.h __assign_str(msg, error_msg); msg 151 include/ras/ras_event.h __get_str(msg)[0] ? " " : "", msg 152 include/ras/ras_event.h __get_str(msg), msg 2513 include/rdma/ib_verbs.h int (*fill_res_entry)(struct sk_buff *msg, msg 153 include/rdma/restrack.h int rdma_nl_put_driver_u32(struct sk_buff *msg, const char *name, u32 value); msg 154 include/rdma/restrack.h int rdma_nl_put_driver_u32_hex(struct sk_buff *msg, const char *name, msg 156 include/rdma/restrack.h int rdma_nl_put_driver_u64(struct sk_buff *msg, const char *name, u64 value); msg 157 include/rdma/restrack.h int rdma_nl_put_driver_u64_hex(struct sk_buff *msg, const char *name, msg 143 include/scsi/scsi_transport_spi.h int spi_populate_width_msg(unsigned char *msg, int width); msg 144 include/scsi/scsi_transport_spi.h int spi_populate_sync_msg(unsigned char *msg, int period, int offset); msg 145 include/scsi/scsi_transport_spi.h int spi_populate_ppr_msg(unsigned char *msg, int period, int offset, int width, msg 147 include/scsi/scsi_transport_spi.h int spi_populate_tag_msg(unsigned char *msg, struct scsi_cmnd *cmd); msg 66 include/soc/arc/mcip.h msg:1, sem:1, ipi:1, slv:1, msg 70 include/soc/arc/mcip.h slv:1, ipi:1, sem:1, msg:1, msg 113 include/soc/tegra/bpmp.h struct tegra_bpmp_message *msg); msg 115 include/soc/tegra/bpmp.h struct tegra_bpmp_message *msg); msg 133 include/soc/tegra/bpmp.h struct tegra_bpmp_message *msg) msg 138 include/soc/tegra/bpmp.h struct tegra_bpmp_message *msg) msg 766 include/trace/events/afs.h TP_PROTO(struct afs_call *call, struct msghdr *msg, msg 769 include/trace/events/afs.h TP_ARGS(call, msg, first, last, offset), msg 785 include/trace/events/afs.h __entry->nr = msg->msg_iter.nr_segs; msg 786 include/trace/events/afs.h __entry->bytes = msg->msg_iter.count; msg 788 include/trace/events/afs.h __entry->flags = msg->msg_flags; msg 53 include/trace/events/devlink.h TP_PROTO(const struct devlink *devlink, int err, const char *msg), msg 55 include/trace/events/devlink.h TP_ARGS(devlink, err, msg), msg 62 include/trace/events/devlink.h __string(msg, msg) msg 70 include/trace/events/devlink.h __assign_str(msg, msg); msg 75 include/trace/events/devlink.h __get_str(driver_name), __entry->err, __get_str(msg)) msg 83 include/trace/events/devlink.h const char *msg), msg 85 include/trace/events/devlink.h TP_ARGS(devlink, reporter_name, msg), msg 91 include/trace/events/devlink.h __string(reporter_name, msg) msg 92 include/trace/events/devlink.h __string(msg, msg) msg 100 include/trace/events/devlink.h __assign_str(msg, msg); msg 106 include/trace/events/devlink.h __get_str(msg)) msg 193 include/trace/events/devlink.h int err, const char *msg) msg 1397 include/trace/events/f2fs.h TP_PROTO(struct super_block *sb, int reason, char *msg), msg 1399 include/trace/events/f2fs.h TP_ARGS(sb, reason, msg), msg 1404 include/trace/events/f2fs.h __field(char *, msg) msg 1410 include/trace/events/f2fs.h __entry->msg = msg; msg 1416 include/trace/events/f2fs.h __entry->msg) msg 31 include/trace/events/fsi_master_ast_cf.h __field(uint64_t, msg) msg 37 include/trace/events/fsi_master_ast_cf.h __entry->msg = cmd->msg; msg 42 include/trace/events/fsi_master_ast_cf.h __entry->master_idx, (unsigned long long)__entry->msg, msg 12 include/trace/events/fsi_master_gpio.h TP_PROTO(const struct fsi_master_gpio *master, int bits, uint64_t msg), msg 13 include/trace/events/fsi_master_gpio.h TP_ARGS(master, bits, msg), msg 17 include/trace/events/fsi_master_gpio.h __field(uint64_t, msg) msg 22 include/trace/events/fsi_master_gpio.h __entry->msg = msg & ((1ull<<bits) - 1); msg 27 include/trace/events/fsi_master_gpio.h __entry->msg, msg 33 include/trace/events/fsi_master_gpio.h TP_PROTO(const struct fsi_master_gpio *master, int bits, uint64_t msg), msg 34 include/trace/events/fsi_master_gpio.h TP_ARGS(master, bits, msg), msg 38 include/trace/events/fsi_master_gpio.h __field(uint64_t, msg) msg 43 include/trace/events/fsi_master_gpio.h __entry->msg = msg & ((1ull<<bits) - 1); msg 48 include/trace/events/fsi_master_gpio.h __entry->msg, msg 26 include/trace/events/i2c.h TP_PROTO(const struct i2c_adapter *adap, const struct i2c_msg *msg, msg 28 include/trace/events/i2c.h TP_ARGS(adap, msg, num), msg 35 include/trace/events/i2c.h __dynamic_array(__u8, buf, msg->len) ), msg 39 include/trace/events/i2c.h __entry->addr = msg->addr; msg 40 include/trace/events/i2c.h __entry->flags = msg->flags; msg 41 include/trace/events/i2c.h __entry->len = msg->len; msg 42 include/trace/events/i2c.h memcpy(__get_dynamic_array(buf), msg->buf, msg->len); msg 59 include/trace/events/i2c.h TP_PROTO(const struct i2c_adapter *adap, const struct i2c_msg *msg, msg 61 include/trace/events/i2c.h TP_ARGS(adap, msg, num), msg 72 include/trace/events/i2c.h __entry->addr = msg->addr; msg 73 include/trace/events/i2c.h __entry->flags = msg->flags; msg 74 include/trace/events/i2c.h __entry->len = msg->len; msg 90 include/trace/events/i2c.h TP_PROTO(const struct i2c_adapter *adap, const struct i2c_msg *msg, msg 92 include/trace/events/i2c.h TP_ARGS(adap, msg, num), msg 99 include/trace/events/i2c.h __dynamic_array(__u8, buf, msg->len) ), msg 103 include/trace/events/i2c.h __entry->addr = msg->addr; msg 104 include/trace/events/i2c.h __entry->flags = msg->flags; msg 105 include/trace/events/i2c.h __entry->len = msg->len; msg 106 include/trace/events/i2c.h memcpy(__get_dynamic_array(buf), msg->buf, msg->len); msg 29 include/trace/events/iscsi.h __dynamic_array(char, msg, ISCSI_MSG_MAX ) msg 34 include/trace/events/iscsi.h vsnprintf(__get_str(msg), ISCSI_MSG_MAX, vaf->fmt, *vaf->va); msg 37 include/trace/events/iscsi.h TP_printk("%s: %s",__get_str(dname), __get_str(msg) msg 16 include/trace/events/printk.h __dynamic_array(char, msg, len + 1) msg 28 include/trace/events/printk.h memcpy(__get_str(msg), text, len); msg 29 include/trace/events/printk.h __get_str(msg)[len] = 0; msg 32 include/trace/events/printk.h TP_printk("%s", __get_str(msg)) msg 255 include/trace/events/rpcgss.h __string(msg, buf) msg 259 include/trace/events/rpcgss.h __assign_str(msg, buf) msg 262 include/trace/events/rpcgss.h TP_printk("msg='%s'", __get_str(msg)) msg 47 include/trace/events/spi.h TP_PROTO(struct spi_message *msg), msg 49 include/trace/events/spi.h TP_ARGS(msg), msg 54 include/trace/events/spi.h __field( struct spi_message *, msg ) msg 58 include/trace/events/spi.h __entry->bus_num = msg->spi->controller->bus_num; msg 59 include/trace/events/spi.h __entry->chip_select = msg->spi->chip_select; msg 60 include/trace/events/spi.h __entry->msg = msg; msg 65 include/trace/events/spi.h (struct spi_message *)__entry->msg) msg 70 include/trace/events/spi.h TP_PROTO(struct spi_message *msg), msg 72 include/trace/events/spi.h TP_ARGS(msg) msg 78 include/trace/events/spi.h TP_PROTO(struct spi_message *msg), msg 80 include/trace/events/spi.h TP_ARGS(msg) msg 86 include/trace/events/spi.h TP_PROTO(struct spi_message *msg), msg 88 include/trace/events/spi.h TP_ARGS(msg), msg 93 include/trace/events/spi.h __field( struct spi_message *, msg ) msg 99 include/trace/events/spi.h __entry->bus_num = msg->spi->controller->bus_num; msg 100 include/trace/events/spi.h __entry->chip_select = msg->spi->chip_select; msg 101 include/trace/events/spi.h __entry->msg = msg; msg 102 include/trace/events/spi.h __entry->frame = msg->frame_length; msg 103 include/trace/events/spi.h __entry->actual = msg->actual_length; msg 108 include/trace/events/spi.h (struct spi_message *)__entry->msg, msg 117 include/trace/events/spi.h #define spi_valid_txbuf(msg, xfer) \ msg 118 include/trace/events/spi.h (xfer->tx_buf && xfer->tx_buf != msg->spi->controller->dummy_tx) msg 119 include/trace/events/spi.h #define spi_valid_rxbuf(msg, xfer) \ msg 120 include/trace/events/spi.h (xfer->rx_buf && xfer->rx_buf != msg->spi->controller->dummy_rx) msg 124 include/trace/events/spi.h TP_PROTO(struct spi_message *msg, struct spi_transfer *xfer), msg 126 include/trace/events/spi.h TP_ARGS(msg, xfer), msg 134 include/trace/events/spi.h spi_valid_rxbuf(msg, xfer) ? msg 137 include/trace/events/spi.h spi_valid_txbuf(msg, xfer) ? msg 142 include/trace/events/spi.h __entry->bus_num = msg->spi->controller->bus_num; msg 143 include/trace/events/spi.h __entry->chip_select = msg->spi->chip_select; msg 147 include/trace/events/spi.h if (spi_valid_txbuf(msg, xfer)) msg 151 include/trace/events/spi.h if (spi_valid_rxbuf(msg, xfer)) msg 165 include/trace/events/spi.h TP_PROTO(struct spi_message *msg, struct spi_transfer *xfer), msg 167 include/trace/events/spi.h TP_ARGS(msg, xfer) msg 173 include/trace/events/spi.h TP_PROTO(struct spi_message *msg, struct spi_transfer *xfer), msg 175 include/trace/events/spi.h TP_ARGS(msg, xfer) msg 91 include/trace/events/wbt.h TP_PROTO(struct backing_dev_info *bdi, const char *msg, msg 95 include/trace/events/wbt.h TP_ARGS(bdi, msg, step, window, bg, normal, max), msg 99 include/trace/events/wbt.h __field(const char *, msg) msg 110 include/trace/events/wbt.h __entry->msg = msg; msg 119 include/trace/events/wbt.h __entry->name, __entry->msg, __entry->step, __entry->window, msg 14 include/uapi/linux/cec-funcs.h static inline void cec_msg_active_source(struct cec_msg *msg, __u16 phys_addr) msg 16 include/uapi/linux/cec-funcs.h msg->len = 4; msg 17 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 18 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_ACTIVE_SOURCE; msg 19 include/uapi/linux/cec-funcs.h msg->msg[2] = phys_addr >> 8; msg 20 include/uapi/linux/cec-funcs.h msg->msg[3] = phys_addr & 0xff; msg 23 include/uapi/linux/cec-funcs.h static inline void cec_ops_active_source(const struct cec_msg *msg, msg 26 include/uapi/linux/cec-funcs.h *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; msg 29 include/uapi/linux/cec-funcs.h static inline void cec_msg_image_view_on(struct cec_msg *msg) msg 31 include/uapi/linux/cec-funcs.h msg->len = 2; msg 32 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_IMAGE_VIEW_ON; msg 35 include/uapi/linux/cec-funcs.h static inline void cec_msg_text_view_on(struct cec_msg *msg) msg 37 include/uapi/linux/cec-funcs.h msg->len = 2; msg 38 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_TEXT_VIEW_ON; msg 43 include/uapi/linux/cec-funcs.h static inline void cec_msg_inactive_source(struct cec_msg *msg, msg 46 include/uapi/linux/cec-funcs.h msg->len = 4; msg 47 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_INACTIVE_SOURCE; msg 48 include/uapi/linux/cec-funcs.h msg->msg[2] = phys_addr >> 8; msg 49 include/uapi/linux/cec-funcs.h msg->msg[3] = phys_addr & 0xff; msg 52 include/uapi/linux/cec-funcs.h static inline void cec_ops_inactive_source(const struct cec_msg *msg, msg 55 include/uapi/linux/cec-funcs.h *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; msg 58 include/uapi/linux/cec-funcs.h static inline void cec_msg_request_active_source(struct cec_msg *msg, msg 61 include/uapi/linux/cec-funcs.h msg->len = 2; msg 62 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 63 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_REQUEST_ACTIVE_SOURCE; msg 64 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_ACTIVE_SOURCE : 0; msg 67 include/uapi/linux/cec-funcs.h static inline void cec_msg_routing_information(struct cec_msg *msg, msg 70 include/uapi/linux/cec-funcs.h msg->len = 4; msg 71 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 72 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_ROUTING_INFORMATION; msg 73 include/uapi/linux/cec-funcs.h msg->msg[2] = phys_addr >> 8; msg 74 include/uapi/linux/cec-funcs.h msg->msg[3] = phys_addr & 0xff; msg 77 include/uapi/linux/cec-funcs.h static inline void cec_ops_routing_information(const struct cec_msg *msg, msg 80 include/uapi/linux/cec-funcs.h *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; msg 83 include/uapi/linux/cec-funcs.h static inline void cec_msg_routing_change(struct cec_msg *msg, msg 88 include/uapi/linux/cec-funcs.h msg->len = 6; msg 89 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 90 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_ROUTING_CHANGE; msg 91 include/uapi/linux/cec-funcs.h msg->msg[2] = orig_phys_addr >> 8; msg 92 include/uapi/linux/cec-funcs.h msg->msg[3] = orig_phys_addr & 0xff; msg 93 include/uapi/linux/cec-funcs.h msg->msg[4] = new_phys_addr >> 8; msg 94 include/uapi/linux/cec-funcs.h msg->msg[5] = new_phys_addr & 0xff; msg 95 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_ROUTING_INFORMATION : 0; msg 98 include/uapi/linux/cec-funcs.h static inline void cec_ops_routing_change(const struct cec_msg *msg, msg 102 include/uapi/linux/cec-funcs.h *orig_phys_addr = (msg->msg[2] << 8) | msg->msg[3]; msg 103 include/uapi/linux/cec-funcs.h *new_phys_addr = (msg->msg[4] << 8) | msg->msg[5]; msg 106 include/uapi/linux/cec-funcs.h static inline void cec_msg_set_stream_path(struct cec_msg *msg, __u16 phys_addr) msg 108 include/uapi/linux/cec-funcs.h msg->len = 4; msg 109 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 110 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_SET_STREAM_PATH; msg 111 include/uapi/linux/cec-funcs.h msg->msg[2] = phys_addr >> 8; msg 112 include/uapi/linux/cec-funcs.h msg->msg[3] = phys_addr & 0xff; msg 115 include/uapi/linux/cec-funcs.h static inline void cec_ops_set_stream_path(const struct cec_msg *msg, msg 118 include/uapi/linux/cec-funcs.h *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; msg 123 include/uapi/linux/cec-funcs.h static inline void cec_msg_standby(struct cec_msg *msg) msg 125 include/uapi/linux/cec-funcs.h msg->len = 2; msg 126 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_STANDBY; msg 131 include/uapi/linux/cec-funcs.h static inline void cec_msg_record_off(struct cec_msg *msg, int reply) msg 133 include/uapi/linux/cec-funcs.h msg->len = 2; msg 134 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_RECORD_OFF; msg 135 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_RECORD_STATUS : 0; msg 190 include/uapi/linux/cec-funcs.h static inline void cec_set_digital_service_id(__u8 *msg, msg 193 include/uapi/linux/cec-funcs.h *msg++ = (digital->service_id_method << 7) | digital->dig_bcast_system; msg 195 include/uapi/linux/cec-funcs.h *msg++ = (digital->channel.channel_number_fmt << 2) | msg 197 include/uapi/linux/cec-funcs.h *msg++ = digital->channel.major & 0xff; msg 198 include/uapi/linux/cec-funcs.h *msg++ = digital->channel.minor >> 8; msg 199 include/uapi/linux/cec-funcs.h *msg++ = digital->channel.minor & 0xff; msg 200 include/uapi/linux/cec-funcs.h *msg++ = 0; msg 201 include/uapi/linux/cec-funcs.h *msg++ = 0; msg 209 include/uapi/linux/cec-funcs.h *msg++ = digital->atsc.transport_id >> 8; msg 210 include/uapi/linux/cec-funcs.h *msg++ = digital->atsc.transport_id & 0xff; msg 211 include/uapi/linux/cec-funcs.h *msg++ = digital->atsc.program_number >> 8; msg 212 include/uapi/linux/cec-funcs.h *msg++ = digital->atsc.program_number & 0xff; msg 213 include/uapi/linux/cec-funcs.h *msg++ = 0; msg 214 include/uapi/linux/cec-funcs.h *msg++ = 0; msg 217 include/uapi/linux/cec-funcs.h *msg++ = digital->dvb.transport_id >> 8; msg 218 include/uapi/linux/cec-funcs.h *msg++ = digital->dvb.transport_id & 0xff; msg 219 include/uapi/linux/cec-funcs.h *msg++ = digital->dvb.service_id >> 8; msg 220 include/uapi/linux/cec-funcs.h *msg++ = digital->dvb.service_id & 0xff; msg 221 include/uapi/linux/cec-funcs.h *msg++ = digital->dvb.orig_network_id >> 8; msg 222 include/uapi/linux/cec-funcs.h *msg++ = digital->dvb.orig_network_id & 0xff; msg 227 include/uapi/linux/cec-funcs.h static inline void cec_get_digital_service_id(const __u8 *msg, msg 230 include/uapi/linux/cec-funcs.h digital->service_id_method = msg[0] >> 7; msg 231 include/uapi/linux/cec-funcs.h digital->dig_bcast_system = msg[0] & 0x7f; msg 233 include/uapi/linux/cec-funcs.h digital->channel.channel_number_fmt = msg[1] >> 2; msg 234 include/uapi/linux/cec-funcs.h digital->channel.major = ((msg[1] & 3) << 6) | msg[2]; msg 235 include/uapi/linux/cec-funcs.h digital->channel.minor = (msg[3] << 8) | msg[4]; msg 238 include/uapi/linux/cec-funcs.h digital->dvb.transport_id = (msg[1] << 8) | msg[2]; msg 239 include/uapi/linux/cec-funcs.h digital->dvb.service_id = (msg[3] << 8) | msg[4]; msg 240 include/uapi/linux/cec-funcs.h digital->dvb.orig_network_id = (msg[5] << 8) | msg[6]; msg 243 include/uapi/linux/cec-funcs.h static inline void cec_msg_record_on_own(struct cec_msg *msg) msg 245 include/uapi/linux/cec-funcs.h msg->len = 3; msg 246 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_RECORD_ON; msg 247 include/uapi/linux/cec-funcs.h msg->msg[2] = CEC_OP_RECORD_SRC_OWN; msg 250 include/uapi/linux/cec-funcs.h static inline void cec_msg_record_on_digital(struct cec_msg *msg, msg 253 include/uapi/linux/cec-funcs.h msg->len = 10; msg 254 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_RECORD_ON; msg 255 include/uapi/linux/cec-funcs.h msg->msg[2] = CEC_OP_RECORD_SRC_DIGITAL; msg 256 include/uapi/linux/cec-funcs.h cec_set_digital_service_id(msg->msg + 3, digital); msg 259 include/uapi/linux/cec-funcs.h static inline void cec_msg_record_on_analog(struct cec_msg *msg, msg 264 include/uapi/linux/cec-funcs.h msg->len = 7; msg 265 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_RECORD_ON; msg 266 include/uapi/linux/cec-funcs.h msg->msg[2] = CEC_OP_RECORD_SRC_ANALOG; msg 267 include/uapi/linux/cec-funcs.h msg->msg[3] = ana_bcast_type; msg 268 include/uapi/linux/cec-funcs.h msg->msg[4] = ana_freq >> 8; msg 269 include/uapi/linux/cec-funcs.h msg->msg[5] = ana_freq & 0xff; msg 270 include/uapi/linux/cec-funcs.h msg->msg[6] = bcast_system; msg 273 include/uapi/linux/cec-funcs.h static inline void cec_msg_record_on_plug(struct cec_msg *msg, msg 276 include/uapi/linux/cec-funcs.h msg->len = 4; msg 277 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_RECORD_ON; msg 278 include/uapi/linux/cec-funcs.h msg->msg[2] = CEC_OP_RECORD_SRC_EXT_PLUG; msg 279 include/uapi/linux/cec-funcs.h msg->msg[3] = plug; msg 282 include/uapi/linux/cec-funcs.h static inline void cec_msg_record_on_phys_addr(struct cec_msg *msg, msg 285 include/uapi/linux/cec-funcs.h msg->len = 5; msg 286 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_RECORD_ON; msg 287 include/uapi/linux/cec-funcs.h msg->msg[2] = CEC_OP_RECORD_SRC_EXT_PHYS_ADDR; msg 288 include/uapi/linux/cec-funcs.h msg->msg[3] = phys_addr >> 8; msg 289 include/uapi/linux/cec-funcs.h msg->msg[4] = phys_addr & 0xff; msg 292 include/uapi/linux/cec-funcs.h static inline void cec_msg_record_on(struct cec_msg *msg, msg 298 include/uapi/linux/cec-funcs.h cec_msg_record_on_own(msg); msg 301 include/uapi/linux/cec-funcs.h cec_msg_record_on_digital(msg, &rec_src->digital); msg 304 include/uapi/linux/cec-funcs.h cec_msg_record_on_analog(msg, msg 310 include/uapi/linux/cec-funcs.h cec_msg_record_on_plug(msg, rec_src->ext_plug.plug); msg 313 include/uapi/linux/cec-funcs.h cec_msg_record_on_phys_addr(msg, msg 317 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_RECORD_STATUS : 0; msg 320 include/uapi/linux/cec-funcs.h static inline void cec_ops_record_on(const struct cec_msg *msg, msg 323 include/uapi/linux/cec-funcs.h rec_src->type = msg->msg[2]; msg 328 include/uapi/linux/cec-funcs.h cec_get_digital_service_id(msg->msg + 3, &rec_src->digital); msg 331 include/uapi/linux/cec-funcs.h rec_src->analog.ana_bcast_type = msg->msg[3]; msg 333 include/uapi/linux/cec-funcs.h (msg->msg[4] << 8) | msg->msg[5]; msg 334 include/uapi/linux/cec-funcs.h rec_src->analog.bcast_system = msg->msg[6]; msg 337 include/uapi/linux/cec-funcs.h rec_src->ext_plug.plug = msg->msg[3]; msg 341 include/uapi/linux/cec-funcs.h (msg->msg[3] << 8) | msg->msg[4]; msg 346 include/uapi/linux/cec-funcs.h static inline void cec_msg_record_status(struct cec_msg *msg, __u8 rec_status) msg 348 include/uapi/linux/cec-funcs.h msg->len = 3; msg 349 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_RECORD_STATUS; msg 350 include/uapi/linux/cec-funcs.h msg->msg[2] = rec_status; msg 353 include/uapi/linux/cec-funcs.h static inline void cec_ops_record_status(const struct cec_msg *msg, msg 356 include/uapi/linux/cec-funcs.h *rec_status = msg->msg[2]; msg 359 include/uapi/linux/cec-funcs.h static inline void cec_msg_record_tv_screen(struct cec_msg *msg, msg 362 include/uapi/linux/cec-funcs.h msg->len = 2; msg 363 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_RECORD_TV_SCREEN; msg 364 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_RECORD_ON : 0; msg 369 include/uapi/linux/cec-funcs.h static inline void cec_msg_timer_status(struct cec_msg *msg, msg 377 include/uapi/linux/cec-funcs.h msg->len = 3; msg 378 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_TIMER_STATUS; msg 379 include/uapi/linux/cec-funcs.h msg->msg[2] = (timer_overlap_warning << 7) | msg 386 include/uapi/linux/cec-funcs.h msg->len += 2; msg 387 include/uapi/linux/cec-funcs.h msg->msg[3] = ((duration_hr / 10) << 4) | (duration_hr % 10); msg 388 include/uapi/linux/cec-funcs.h msg->msg[4] = ((duration_min / 10) << 4) | (duration_min % 10); msg 392 include/uapi/linux/cec-funcs.h static inline void cec_ops_timer_status(const struct cec_msg *msg, msg 400 include/uapi/linux/cec-funcs.h *timer_overlap_warning = msg->msg[2] >> 7; msg 401 include/uapi/linux/cec-funcs.h *media_info = (msg->msg[2] >> 5) & 3; msg 402 include/uapi/linux/cec-funcs.h if (msg->msg[2] & 0x10) { msg 403 include/uapi/linux/cec-funcs.h *prog_info = msg->msg[2] & 0xf; msg 407 include/uapi/linux/cec-funcs.h *prog_error = msg->msg[2] & 0xf; msg 412 include/uapi/linux/cec-funcs.h *duration_hr = (msg->msg[3] >> 4) * 10 + (msg->msg[3] & 0xf); msg 413 include/uapi/linux/cec-funcs.h *duration_min = (msg->msg[4] >> 4) * 10 + (msg->msg[4] & 0xf); msg 419 include/uapi/linux/cec-funcs.h static inline void cec_msg_timer_cleared_status(struct cec_msg *msg, msg 422 include/uapi/linux/cec-funcs.h msg->len = 3; msg 423 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_TIMER_CLEARED_STATUS; msg 424 include/uapi/linux/cec-funcs.h msg->msg[2] = timer_cleared_status; msg 427 include/uapi/linux/cec-funcs.h static inline void cec_ops_timer_cleared_status(const struct cec_msg *msg, msg 430 include/uapi/linux/cec-funcs.h *timer_cleared_status = msg->msg[2]; msg 433 include/uapi/linux/cec-funcs.h static inline void cec_msg_clear_analogue_timer(struct cec_msg *msg, msg 446 include/uapi/linux/cec-funcs.h msg->len = 13; msg 447 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_CLEAR_ANALOGUE_TIMER; msg 448 include/uapi/linux/cec-funcs.h msg->msg[2] = day; msg 449 include/uapi/linux/cec-funcs.h msg->msg[3] = month; msg 451 include/uapi/linux/cec-funcs.h msg->msg[4] = ((start_hr / 10) << 4) | (start_hr % 10); msg 452 include/uapi/linux/cec-funcs.h msg->msg[5] = ((start_min / 10) << 4) | (start_min % 10); msg 453 include/uapi/linux/cec-funcs.h msg->msg[6] = ((duration_hr / 10) << 4) | (duration_hr % 10); msg 454 include/uapi/linux/cec-funcs.h msg->msg[7] = ((duration_min / 10) << 4) | (duration_min % 10); msg 455 include/uapi/linux/cec-funcs.h msg->msg[8] = recording_seq; msg 456 include/uapi/linux/cec-funcs.h msg->msg[9] = ana_bcast_type; msg 457 include/uapi/linux/cec-funcs.h msg->msg[10] = ana_freq >> 8; msg 458 include/uapi/linux/cec-funcs.h msg->msg[11] = ana_freq & 0xff; msg 459 include/uapi/linux/cec-funcs.h msg->msg[12] = bcast_system; msg 460 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_TIMER_CLEARED_STATUS : 0; msg 463 include/uapi/linux/cec-funcs.h static inline void cec_ops_clear_analogue_timer(const struct cec_msg *msg, msg 475 include/uapi/linux/cec-funcs.h *day = msg->msg[2]; msg 476 include/uapi/linux/cec-funcs.h *month = msg->msg[3]; msg 478 include/uapi/linux/cec-funcs.h *start_hr = (msg->msg[4] >> 4) * 10 + (msg->msg[4] & 0xf); msg 479 include/uapi/linux/cec-funcs.h *start_min = (msg->msg[5] >> 4) * 10 + (msg->msg[5] & 0xf); msg 480 include/uapi/linux/cec-funcs.h *duration_hr = (msg->msg[6] >> 4) * 10 + (msg->msg[6] & 0xf); msg 481 include/uapi/linux/cec-funcs.h *duration_min = (msg->msg[7] >> 4) * 10 + (msg->msg[7] & 0xf); msg 482 include/uapi/linux/cec-funcs.h *recording_seq = msg->msg[8]; msg 483 include/uapi/linux/cec-funcs.h *ana_bcast_type = msg->msg[9]; msg 484 include/uapi/linux/cec-funcs.h *ana_freq = (msg->msg[10] << 8) | msg->msg[11]; msg 485 include/uapi/linux/cec-funcs.h *bcast_system = msg->msg[12]; msg 488 include/uapi/linux/cec-funcs.h static inline void cec_msg_clear_digital_timer(struct cec_msg *msg, msg 499 include/uapi/linux/cec-funcs.h msg->len = 16; msg 500 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_TIMER_CLEARED_STATUS : 0; msg 501 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_CLEAR_DIGITAL_TIMER; msg 502 include/uapi/linux/cec-funcs.h msg->msg[2] = day; msg 503 include/uapi/linux/cec-funcs.h msg->msg[3] = month; msg 505 include/uapi/linux/cec-funcs.h msg->msg[4] = ((start_hr / 10) << 4) | (start_hr % 10); msg 506 include/uapi/linux/cec-funcs.h msg->msg[5] = ((start_min / 10) << 4) | (start_min % 10); msg 507 include/uapi/linux/cec-funcs.h msg->msg[6] = ((duration_hr / 10) << 4) | (duration_hr % 10); msg 508 include/uapi/linux/cec-funcs.h msg->msg[7] = ((duration_min / 10) << 4) | (duration_min % 10); msg 509 include/uapi/linux/cec-funcs.h msg->msg[8] = recording_seq; msg 510 include/uapi/linux/cec-funcs.h cec_set_digital_service_id(msg->msg + 9, digital); msg 513 include/uapi/linux/cec-funcs.h static inline void cec_ops_clear_digital_timer(const struct cec_msg *msg, msg 523 include/uapi/linux/cec-funcs.h *day = msg->msg[2]; msg 524 include/uapi/linux/cec-funcs.h *month = msg->msg[3]; msg 526 include/uapi/linux/cec-funcs.h *start_hr = (msg->msg[4] >> 4) * 10 + (msg->msg[4] & 0xf); msg 527 include/uapi/linux/cec-funcs.h *start_min = (msg->msg[5] >> 4) * 10 + (msg->msg[5] & 0xf); msg 528 include/uapi/linux/cec-funcs.h *duration_hr = (msg->msg[6] >> 4) * 10 + (msg->msg[6] & 0xf); msg 529 include/uapi/linux/cec-funcs.h *duration_min = (msg->msg[7] >> 4) * 10 + (msg->msg[7] & 0xf); msg 530 include/uapi/linux/cec-funcs.h *recording_seq = msg->msg[8]; msg 531 include/uapi/linux/cec-funcs.h cec_get_digital_service_id(msg->msg + 9, digital); msg 534 include/uapi/linux/cec-funcs.h static inline void cec_msg_clear_ext_timer(struct cec_msg *msg, msg 547 include/uapi/linux/cec-funcs.h msg->len = 13; msg 548 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_CLEAR_EXT_TIMER; msg 549 include/uapi/linux/cec-funcs.h msg->msg[2] = day; msg 550 include/uapi/linux/cec-funcs.h msg->msg[3] = month; msg 552 include/uapi/linux/cec-funcs.h msg->msg[4] = ((start_hr / 10) << 4) | (start_hr % 10); msg 553 include/uapi/linux/cec-funcs.h msg->msg[5] = ((start_min / 10) << 4) | (start_min % 10); msg 554 include/uapi/linux/cec-funcs.h msg->msg[6] = ((duration_hr / 10) << 4) | (duration_hr % 10); msg 555 include/uapi/linux/cec-funcs.h msg->msg[7] = ((duration_min / 10) << 4) | (duration_min % 10); msg 556 include/uapi/linux/cec-funcs.h msg->msg[8] = recording_seq; msg 557 include/uapi/linux/cec-funcs.h msg->msg[9] = ext_src_spec; msg 558 include/uapi/linux/cec-funcs.h msg->msg[10] = plug; msg 559 include/uapi/linux/cec-funcs.h msg->msg[11] = phys_addr >> 8; msg 560 include/uapi/linux/cec-funcs.h msg->msg[12] = phys_addr & 0xff; msg 561 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_TIMER_CLEARED_STATUS : 0; msg 564 include/uapi/linux/cec-funcs.h static inline void cec_ops_clear_ext_timer(const struct cec_msg *msg, msg 576 include/uapi/linux/cec-funcs.h *day = msg->msg[2]; msg 577 include/uapi/linux/cec-funcs.h *month = msg->msg[3]; msg 579 include/uapi/linux/cec-funcs.h *start_hr = (msg->msg[4] >> 4) * 10 + (msg->msg[4] & 0xf); msg 580 include/uapi/linux/cec-funcs.h *start_min = (msg->msg[5] >> 4) * 10 + (msg->msg[5] & 0xf); msg 581 include/uapi/linux/cec-funcs.h *duration_hr = (msg->msg[6] >> 4) * 10 + (msg->msg[6] & 0xf); msg 582 include/uapi/linux/cec-funcs.h *duration_min = (msg->msg[7] >> 4) * 10 + (msg->msg[7] & 0xf); msg 583 include/uapi/linux/cec-funcs.h *recording_seq = msg->msg[8]; msg 584 include/uapi/linux/cec-funcs.h *ext_src_spec = msg->msg[9]; msg 585 include/uapi/linux/cec-funcs.h *plug = msg->msg[10]; msg 586 include/uapi/linux/cec-funcs.h *phys_addr = (msg->msg[11] << 8) | msg->msg[12]; msg 589 include/uapi/linux/cec-funcs.h static inline void cec_msg_set_analogue_timer(struct cec_msg *msg, msg 602 include/uapi/linux/cec-funcs.h msg->len = 13; msg 603 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_SET_ANALOGUE_TIMER; msg 604 include/uapi/linux/cec-funcs.h msg->msg[2] = day; msg 605 include/uapi/linux/cec-funcs.h msg->msg[3] = month; msg 607 include/uapi/linux/cec-funcs.h msg->msg[4] = ((start_hr / 10) << 4) | (start_hr % 10); msg 608 include/uapi/linux/cec-funcs.h msg->msg[5] = ((start_min / 10) << 4) | (start_min % 10); msg 609 include/uapi/linux/cec-funcs.h msg->msg[6] = ((duration_hr / 10) << 4) | (duration_hr % 10); msg 610 include/uapi/linux/cec-funcs.h msg->msg[7] = ((duration_min / 10) << 4) | (duration_min % 10); msg 611 include/uapi/linux/cec-funcs.h msg->msg[8] = recording_seq; msg 612 include/uapi/linux/cec-funcs.h msg->msg[9] = ana_bcast_type; msg 613 include/uapi/linux/cec-funcs.h msg->msg[10] = ana_freq >> 8; msg 614 include/uapi/linux/cec-funcs.h msg->msg[11] = ana_freq & 0xff; msg 615 include/uapi/linux/cec-funcs.h msg->msg[12] = bcast_system; msg 616 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_TIMER_STATUS : 0; msg 619 include/uapi/linux/cec-funcs.h static inline void cec_ops_set_analogue_timer(const struct cec_msg *msg, msg 631 include/uapi/linux/cec-funcs.h *day = msg->msg[2]; msg 632 include/uapi/linux/cec-funcs.h *month = msg->msg[3]; msg 634 include/uapi/linux/cec-funcs.h *start_hr = (msg->msg[4] >> 4) * 10 + (msg->msg[4] & 0xf); msg 635 include/uapi/linux/cec-funcs.h *start_min = (msg->msg[5] >> 4) * 10 + (msg->msg[5] & 0xf); msg 636 include/uapi/linux/cec-funcs.h *duration_hr = (msg->msg[6] >> 4) * 10 + (msg->msg[6] & 0xf); msg 637 include/uapi/linux/cec-funcs.h *duration_min = (msg->msg[7] >> 4) * 10 + (msg->msg[7] & 0xf); msg 638 include/uapi/linux/cec-funcs.h *recording_seq = msg->msg[8]; msg 639 include/uapi/linux/cec-funcs.h *ana_bcast_type = msg->msg[9]; msg 640 include/uapi/linux/cec-funcs.h *ana_freq = (msg->msg[10] << 8) | msg->msg[11]; msg 641 include/uapi/linux/cec-funcs.h *bcast_system = msg->msg[12]; msg 644 include/uapi/linux/cec-funcs.h static inline void cec_msg_set_digital_timer(struct cec_msg *msg, msg 655 include/uapi/linux/cec-funcs.h msg->len = 16; msg 656 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_TIMER_STATUS : 0; msg 657 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_SET_DIGITAL_TIMER; msg 658 include/uapi/linux/cec-funcs.h msg->msg[2] = day; msg 659 include/uapi/linux/cec-funcs.h msg->msg[3] = month; msg 661 include/uapi/linux/cec-funcs.h msg->msg[4] = ((start_hr / 10) << 4) | (start_hr % 10); msg 662 include/uapi/linux/cec-funcs.h msg->msg[5] = ((start_min / 10) << 4) | (start_min % 10); msg 663 include/uapi/linux/cec-funcs.h msg->msg[6] = ((duration_hr / 10) << 4) | (duration_hr % 10); msg 664 include/uapi/linux/cec-funcs.h msg->msg[7] = ((duration_min / 10) << 4) | (duration_min % 10); msg 665 include/uapi/linux/cec-funcs.h msg->msg[8] = recording_seq; msg 666 include/uapi/linux/cec-funcs.h cec_set_digital_service_id(msg->msg + 9, digital); msg 669 include/uapi/linux/cec-funcs.h static inline void cec_ops_set_digital_timer(const struct cec_msg *msg, msg 679 include/uapi/linux/cec-funcs.h *day = msg->msg[2]; msg 680 include/uapi/linux/cec-funcs.h *month = msg->msg[3]; msg 682 include/uapi/linux/cec-funcs.h *start_hr = (msg->msg[4] >> 4) * 10 + (msg->msg[4] & 0xf); msg 683 include/uapi/linux/cec-funcs.h *start_min = (msg->msg[5] >> 4) * 10 + (msg->msg[5] & 0xf); msg 684 include/uapi/linux/cec-funcs.h *duration_hr = (msg->msg[6] >> 4) * 10 + (msg->msg[6] & 0xf); msg 685 include/uapi/linux/cec-funcs.h *duration_min = (msg->msg[7] >> 4) * 10 + (msg->msg[7] & 0xf); msg 686 include/uapi/linux/cec-funcs.h *recording_seq = msg->msg[8]; msg 687 include/uapi/linux/cec-funcs.h cec_get_digital_service_id(msg->msg + 9, digital); msg 690 include/uapi/linux/cec-funcs.h static inline void cec_msg_set_ext_timer(struct cec_msg *msg, msg 703 include/uapi/linux/cec-funcs.h msg->len = 13; msg 704 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_SET_EXT_TIMER; msg 705 include/uapi/linux/cec-funcs.h msg->msg[2] = day; msg 706 include/uapi/linux/cec-funcs.h msg->msg[3] = month; msg 708 include/uapi/linux/cec-funcs.h msg->msg[4] = ((start_hr / 10) << 4) | (start_hr % 10); msg 709 include/uapi/linux/cec-funcs.h msg->msg[5] = ((start_min / 10) << 4) | (start_min % 10); msg 710 include/uapi/linux/cec-funcs.h msg->msg[6] = ((duration_hr / 10) << 4) | (duration_hr % 10); msg 711 include/uapi/linux/cec-funcs.h msg->msg[7] = ((duration_min / 10) << 4) | (duration_min % 10); msg 712 include/uapi/linux/cec-funcs.h msg->msg[8] = recording_seq; msg 713 include/uapi/linux/cec-funcs.h msg->msg[9] = ext_src_spec; msg 714 include/uapi/linux/cec-funcs.h msg->msg[10] = plug; msg 715 include/uapi/linux/cec-funcs.h msg->msg[11] = phys_addr >> 8; msg 716 include/uapi/linux/cec-funcs.h msg->msg[12] = phys_addr & 0xff; msg 717 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_TIMER_STATUS : 0; msg 720 include/uapi/linux/cec-funcs.h static inline void cec_ops_set_ext_timer(const struct cec_msg *msg, msg 732 include/uapi/linux/cec-funcs.h *day = msg->msg[2]; msg 733 include/uapi/linux/cec-funcs.h *month = msg->msg[3]; msg 735 include/uapi/linux/cec-funcs.h *start_hr = (msg->msg[4] >> 4) * 10 + (msg->msg[4] & 0xf); msg 736 include/uapi/linux/cec-funcs.h *start_min = (msg->msg[5] >> 4) * 10 + (msg->msg[5] & 0xf); msg 737 include/uapi/linux/cec-funcs.h *duration_hr = (msg->msg[6] >> 4) * 10 + (msg->msg[6] & 0xf); msg 738 include/uapi/linux/cec-funcs.h *duration_min = (msg->msg[7] >> 4) * 10 + (msg->msg[7] & 0xf); msg 739 include/uapi/linux/cec-funcs.h *recording_seq = msg->msg[8]; msg 740 include/uapi/linux/cec-funcs.h *ext_src_spec = msg->msg[9]; msg 741 include/uapi/linux/cec-funcs.h *plug = msg->msg[10]; msg 742 include/uapi/linux/cec-funcs.h *phys_addr = (msg->msg[11] << 8) | msg->msg[12]; msg 745 include/uapi/linux/cec-funcs.h static inline void cec_msg_set_timer_program_title(struct cec_msg *msg, msg 752 include/uapi/linux/cec-funcs.h msg->len = 2 + len; msg 753 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_SET_TIMER_PROGRAM_TITLE; msg 754 include/uapi/linux/cec-funcs.h memcpy(msg->msg + 2, prog_title, len); msg 757 include/uapi/linux/cec-funcs.h static inline void cec_ops_set_timer_program_title(const struct cec_msg *msg, msg 760 include/uapi/linux/cec-funcs.h unsigned int len = msg->len > 2 ? msg->len - 2 : 0; msg 764 include/uapi/linux/cec-funcs.h memcpy(prog_title, msg->msg + 2, len); msg 769 include/uapi/linux/cec-funcs.h static inline void cec_msg_cec_version(struct cec_msg *msg, __u8 cec_version) msg 771 include/uapi/linux/cec-funcs.h msg->len = 3; msg 772 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_CEC_VERSION; msg 773 include/uapi/linux/cec-funcs.h msg->msg[2] = cec_version; msg 776 include/uapi/linux/cec-funcs.h static inline void cec_ops_cec_version(const struct cec_msg *msg, msg 779 include/uapi/linux/cec-funcs.h *cec_version = msg->msg[2]; msg 782 include/uapi/linux/cec-funcs.h static inline void cec_msg_get_cec_version(struct cec_msg *msg, msg 785 include/uapi/linux/cec-funcs.h msg->len = 2; msg 786 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_GET_CEC_VERSION; msg 787 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_CEC_VERSION : 0; msg 790 include/uapi/linux/cec-funcs.h static inline void cec_msg_report_physical_addr(struct cec_msg *msg, msg 793 include/uapi/linux/cec-funcs.h msg->len = 5; msg 794 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 795 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_REPORT_PHYSICAL_ADDR; msg 796 include/uapi/linux/cec-funcs.h msg->msg[2] = phys_addr >> 8; msg 797 include/uapi/linux/cec-funcs.h msg->msg[3] = phys_addr & 0xff; msg 798 include/uapi/linux/cec-funcs.h msg->msg[4] = prim_devtype; msg 801 include/uapi/linux/cec-funcs.h static inline void cec_ops_report_physical_addr(const struct cec_msg *msg, msg 804 include/uapi/linux/cec-funcs.h *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; msg 805 include/uapi/linux/cec-funcs.h *prim_devtype = msg->msg[4]; msg 808 include/uapi/linux/cec-funcs.h static inline void cec_msg_give_physical_addr(struct cec_msg *msg, msg 811 include/uapi/linux/cec-funcs.h msg->len = 2; msg 812 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_GIVE_PHYSICAL_ADDR; msg 813 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_REPORT_PHYSICAL_ADDR : 0; msg 816 include/uapi/linux/cec-funcs.h static inline void cec_msg_set_menu_language(struct cec_msg *msg, msg 819 include/uapi/linux/cec-funcs.h msg->len = 5; msg 820 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 821 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_SET_MENU_LANGUAGE; msg 822 include/uapi/linux/cec-funcs.h memcpy(msg->msg + 2, language, 3); msg 825 include/uapi/linux/cec-funcs.h static inline void cec_ops_set_menu_language(const struct cec_msg *msg, msg 828 include/uapi/linux/cec-funcs.h memcpy(language, msg->msg + 2, 3); msg 832 include/uapi/linux/cec-funcs.h static inline void cec_msg_get_menu_language(struct cec_msg *msg, msg 835 include/uapi/linux/cec-funcs.h msg->len = 2; msg 836 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_GET_MENU_LANGUAGE; msg 837 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_SET_MENU_LANGUAGE : 0; msg 848 include/uapi/linux/cec-funcs.h static inline void cec_msg_report_features(struct cec_msg *msg, msg 852 include/uapi/linux/cec-funcs.h msg->len = 6; msg 853 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 854 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_REPORT_FEATURES; msg 855 include/uapi/linux/cec-funcs.h msg->msg[2] = cec_version; msg 856 include/uapi/linux/cec-funcs.h msg->msg[3] = all_device_types; msg 857 include/uapi/linux/cec-funcs.h msg->msg[4] = rc_profile; msg 858 include/uapi/linux/cec-funcs.h msg->msg[5] = dev_features; msg 861 include/uapi/linux/cec-funcs.h static inline void cec_ops_report_features(const struct cec_msg *msg, msg 865 include/uapi/linux/cec-funcs.h const __u8 *p = &msg->msg[4]; msg 867 include/uapi/linux/cec-funcs.h *cec_version = msg->msg[2]; msg 868 include/uapi/linux/cec-funcs.h *all_device_types = msg->msg[3]; msg 871 include/uapi/linux/cec-funcs.h while (p < &msg->msg[14] && (*p & CEC_OP_FEAT_EXT)) msg 875 include/uapi/linux/cec-funcs.h while (p < &msg->msg[15] && (*p & CEC_OP_FEAT_EXT)) msg 882 include/uapi/linux/cec-funcs.h static inline void cec_msg_give_features(struct cec_msg *msg, msg 885 include/uapi/linux/cec-funcs.h msg->len = 2; msg 886 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_GIVE_FEATURES; msg 887 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_REPORT_FEATURES : 0; msg 891 include/uapi/linux/cec-funcs.h static inline void cec_msg_deck_control(struct cec_msg *msg, msg 894 include/uapi/linux/cec-funcs.h msg->len = 3; msg 895 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_DECK_CONTROL; msg 896 include/uapi/linux/cec-funcs.h msg->msg[2] = deck_control_mode; msg 899 include/uapi/linux/cec-funcs.h static inline void cec_ops_deck_control(const struct cec_msg *msg, msg 902 include/uapi/linux/cec-funcs.h *deck_control_mode = msg->msg[2]; msg 905 include/uapi/linux/cec-funcs.h static inline void cec_msg_deck_status(struct cec_msg *msg, msg 908 include/uapi/linux/cec-funcs.h msg->len = 3; msg 909 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_DECK_STATUS; msg 910 include/uapi/linux/cec-funcs.h msg->msg[2] = deck_info; msg 913 include/uapi/linux/cec-funcs.h static inline void cec_ops_deck_status(const struct cec_msg *msg, msg 916 include/uapi/linux/cec-funcs.h *deck_info = msg->msg[2]; msg 919 include/uapi/linux/cec-funcs.h static inline void cec_msg_give_deck_status(struct cec_msg *msg, msg 923 include/uapi/linux/cec-funcs.h msg->len = 3; msg 924 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_GIVE_DECK_STATUS; msg 925 include/uapi/linux/cec-funcs.h msg->msg[2] = status_req; msg 926 include/uapi/linux/cec-funcs.h msg->reply = (reply && status_req != CEC_OP_STATUS_REQ_OFF) ? msg 930 include/uapi/linux/cec-funcs.h static inline void cec_ops_give_deck_status(const struct cec_msg *msg, msg 933 include/uapi/linux/cec-funcs.h *status_req = msg->msg[2]; msg 936 include/uapi/linux/cec-funcs.h static inline void cec_msg_play(struct cec_msg *msg, msg 939 include/uapi/linux/cec-funcs.h msg->len = 3; msg 940 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_PLAY; msg 941 include/uapi/linux/cec-funcs.h msg->msg[2] = play_mode; msg 944 include/uapi/linux/cec-funcs.h static inline void cec_ops_play(const struct cec_msg *msg, msg 947 include/uapi/linux/cec-funcs.h *play_mode = msg->msg[2]; msg 966 include/uapi/linux/cec-funcs.h static inline void cec_msg_tuner_device_status_analog(struct cec_msg *msg, msg 973 include/uapi/linux/cec-funcs.h msg->len = 7; msg 974 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_TUNER_DEVICE_STATUS; msg 975 include/uapi/linux/cec-funcs.h msg->msg[2] = (rec_flag << 7) | tuner_display_info; msg 976 include/uapi/linux/cec-funcs.h msg->msg[3] = ana_bcast_type; msg 977 include/uapi/linux/cec-funcs.h msg->msg[4] = ana_freq >> 8; msg 978 include/uapi/linux/cec-funcs.h msg->msg[5] = ana_freq & 0xff; msg 979 include/uapi/linux/cec-funcs.h msg->msg[6] = bcast_system; msg 982 include/uapi/linux/cec-funcs.h static inline void cec_msg_tuner_device_status_digital(struct cec_msg *msg, msg 986 include/uapi/linux/cec-funcs.h msg->len = 10; msg 987 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_TUNER_DEVICE_STATUS; msg 988 include/uapi/linux/cec-funcs.h msg->msg[2] = (rec_flag << 7) | tuner_display_info; msg 989 include/uapi/linux/cec-funcs.h cec_set_digital_service_id(msg->msg + 3, digital); msg 992 include/uapi/linux/cec-funcs.h static inline void cec_msg_tuner_device_status(struct cec_msg *msg, msg 996 include/uapi/linux/cec-funcs.h cec_msg_tuner_device_status_analog(msg, msg 1003 include/uapi/linux/cec-funcs.h cec_msg_tuner_device_status_digital(msg, msg 1009 include/uapi/linux/cec-funcs.h static inline void cec_ops_tuner_device_status(const struct cec_msg *msg, msg 1012 include/uapi/linux/cec-funcs.h tuner_dev_info->is_analog = msg->len < 10; msg 1013 include/uapi/linux/cec-funcs.h tuner_dev_info->rec_flag = msg->msg[2] >> 7; msg 1014 include/uapi/linux/cec-funcs.h tuner_dev_info->tuner_display_info = msg->msg[2] & 0x7f; msg 1016 include/uapi/linux/cec-funcs.h tuner_dev_info->analog.ana_bcast_type = msg->msg[3]; msg 1017 include/uapi/linux/cec-funcs.h tuner_dev_info->analog.ana_freq = (msg->msg[4] << 8) | msg->msg[5]; msg 1018 include/uapi/linux/cec-funcs.h tuner_dev_info->analog.bcast_system = msg->msg[6]; msg 1021 include/uapi/linux/cec-funcs.h cec_get_digital_service_id(msg->msg + 3, &tuner_dev_info->digital); msg 1024 include/uapi/linux/cec-funcs.h static inline void cec_msg_give_tuner_device_status(struct cec_msg *msg, msg 1028 include/uapi/linux/cec-funcs.h msg->len = 3; msg 1029 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_GIVE_TUNER_DEVICE_STATUS; msg 1030 include/uapi/linux/cec-funcs.h msg->msg[2] = status_req; msg 1031 include/uapi/linux/cec-funcs.h msg->reply = (reply && status_req != CEC_OP_STATUS_REQ_OFF) ? msg 1035 include/uapi/linux/cec-funcs.h static inline void cec_ops_give_tuner_device_status(const struct cec_msg *msg, msg 1038 include/uapi/linux/cec-funcs.h *status_req = msg->msg[2]; msg 1041 include/uapi/linux/cec-funcs.h static inline void cec_msg_select_analogue_service(struct cec_msg *msg, msg 1046 include/uapi/linux/cec-funcs.h msg->len = 6; msg 1047 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_SELECT_ANALOGUE_SERVICE; msg 1048 include/uapi/linux/cec-funcs.h msg->msg[2] = ana_bcast_type; msg 1049 include/uapi/linux/cec-funcs.h msg->msg[3] = ana_freq >> 8; msg 1050 include/uapi/linux/cec-funcs.h msg->msg[4] = ana_freq & 0xff; msg 1051 include/uapi/linux/cec-funcs.h msg->msg[5] = bcast_system; msg 1054 include/uapi/linux/cec-funcs.h static inline void cec_ops_select_analogue_service(const struct cec_msg *msg, msg 1059 include/uapi/linux/cec-funcs.h *ana_bcast_type = msg->msg[2]; msg 1060 include/uapi/linux/cec-funcs.h *ana_freq = (msg->msg[3] << 8) | msg->msg[4]; msg 1061 include/uapi/linux/cec-funcs.h *bcast_system = msg->msg[5]; msg 1064 include/uapi/linux/cec-funcs.h static inline void cec_msg_select_digital_service(struct cec_msg *msg, msg 1067 include/uapi/linux/cec-funcs.h msg->len = 9; msg 1068 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_SELECT_DIGITAL_SERVICE; msg 1069 include/uapi/linux/cec-funcs.h cec_set_digital_service_id(msg->msg + 2, digital); msg 1072 include/uapi/linux/cec-funcs.h static inline void cec_ops_select_digital_service(const struct cec_msg *msg, msg 1075 include/uapi/linux/cec-funcs.h cec_get_digital_service_id(msg->msg + 2, digital); msg 1078 include/uapi/linux/cec-funcs.h static inline void cec_msg_tuner_step_decrement(struct cec_msg *msg) msg 1080 include/uapi/linux/cec-funcs.h msg->len = 2; msg 1081 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_TUNER_STEP_DECREMENT; msg 1084 include/uapi/linux/cec-funcs.h static inline void cec_msg_tuner_step_increment(struct cec_msg *msg) msg 1086 include/uapi/linux/cec-funcs.h msg->len = 2; msg 1087 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_TUNER_STEP_INCREMENT; msg 1092 include/uapi/linux/cec-funcs.h static inline void cec_msg_device_vendor_id(struct cec_msg *msg, __u32 vendor_id) msg 1094 include/uapi/linux/cec-funcs.h msg->len = 5; msg 1095 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 1096 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_DEVICE_VENDOR_ID; msg 1097 include/uapi/linux/cec-funcs.h msg->msg[2] = vendor_id >> 16; msg 1098 include/uapi/linux/cec-funcs.h msg->msg[3] = (vendor_id >> 8) & 0xff; msg 1099 include/uapi/linux/cec-funcs.h msg->msg[4] = vendor_id & 0xff; msg 1102 include/uapi/linux/cec-funcs.h static inline void cec_ops_device_vendor_id(const struct cec_msg *msg, msg 1105 include/uapi/linux/cec-funcs.h *vendor_id = (msg->msg[2] << 16) | (msg->msg[3] << 8) | msg->msg[4]; msg 1108 include/uapi/linux/cec-funcs.h static inline void cec_msg_give_device_vendor_id(struct cec_msg *msg, msg 1111 include/uapi/linux/cec-funcs.h msg->len = 2; msg 1112 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_GIVE_DEVICE_VENDOR_ID; msg 1113 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_DEVICE_VENDOR_ID : 0; msg 1116 include/uapi/linux/cec-funcs.h static inline void cec_msg_vendor_command(struct cec_msg *msg, msg 1121 include/uapi/linux/cec-funcs.h msg->len = 2 + size; msg 1122 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_VENDOR_COMMAND; msg 1123 include/uapi/linux/cec-funcs.h memcpy(msg->msg + 2, vendor_cmd, size); msg 1126 include/uapi/linux/cec-funcs.h static inline void cec_ops_vendor_command(const struct cec_msg *msg, msg 1130 include/uapi/linux/cec-funcs.h *size = msg->len - 2; msg 1134 include/uapi/linux/cec-funcs.h *vendor_cmd = msg->msg + 2; msg 1137 include/uapi/linux/cec-funcs.h static inline void cec_msg_vendor_command_with_id(struct cec_msg *msg, msg 1143 include/uapi/linux/cec-funcs.h msg->len = 5 + size; msg 1144 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_VENDOR_COMMAND_WITH_ID; msg 1145 include/uapi/linux/cec-funcs.h msg->msg[2] = vendor_id >> 16; msg 1146 include/uapi/linux/cec-funcs.h msg->msg[3] = (vendor_id >> 8) & 0xff; msg 1147 include/uapi/linux/cec-funcs.h msg->msg[4] = vendor_id & 0xff; msg 1148 include/uapi/linux/cec-funcs.h memcpy(msg->msg + 5, vendor_cmd, size); msg 1151 include/uapi/linux/cec-funcs.h static inline void cec_ops_vendor_command_with_id(const struct cec_msg *msg, msg 1155 include/uapi/linux/cec-funcs.h *size = msg->len - 5; msg 1159 include/uapi/linux/cec-funcs.h *vendor_id = (msg->msg[2] << 16) | (msg->msg[3] << 8) | msg->msg[4]; msg 1160 include/uapi/linux/cec-funcs.h *vendor_cmd = msg->msg + 5; msg 1163 include/uapi/linux/cec-funcs.h static inline void cec_msg_vendor_remote_button_down(struct cec_msg *msg, msg 1169 include/uapi/linux/cec-funcs.h msg->len = 2 + size; msg 1170 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_VENDOR_REMOTE_BUTTON_DOWN; msg 1171 include/uapi/linux/cec-funcs.h memcpy(msg->msg + 2, rc_code, size); msg 1174 include/uapi/linux/cec-funcs.h static inline void cec_ops_vendor_remote_button_down(const struct cec_msg *msg, msg 1178 include/uapi/linux/cec-funcs.h *size = msg->len - 2; msg 1182 include/uapi/linux/cec-funcs.h *rc_code = msg->msg + 2; msg 1185 include/uapi/linux/cec-funcs.h static inline void cec_msg_vendor_remote_button_up(struct cec_msg *msg) msg 1187 include/uapi/linux/cec-funcs.h msg->len = 2; msg 1188 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_VENDOR_REMOTE_BUTTON_UP; msg 1193 include/uapi/linux/cec-funcs.h static inline void cec_msg_set_osd_string(struct cec_msg *msg, msg 1201 include/uapi/linux/cec-funcs.h msg->len = 3 + len; msg 1202 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_SET_OSD_STRING; msg 1203 include/uapi/linux/cec-funcs.h msg->msg[2] = disp_ctl; msg 1204 include/uapi/linux/cec-funcs.h memcpy(msg->msg + 3, osd, len); msg 1207 include/uapi/linux/cec-funcs.h static inline void cec_ops_set_osd_string(const struct cec_msg *msg, msg 1211 include/uapi/linux/cec-funcs.h unsigned int len = msg->len > 3 ? msg->len - 3 : 0; msg 1213 include/uapi/linux/cec-funcs.h *disp_ctl = msg->msg[2]; msg 1216 include/uapi/linux/cec-funcs.h memcpy(osd, msg->msg + 3, len); msg 1222 include/uapi/linux/cec-funcs.h static inline void cec_msg_set_osd_name(struct cec_msg *msg, const char *name) msg 1228 include/uapi/linux/cec-funcs.h msg->len = 2 + len; msg 1229 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_SET_OSD_NAME; msg 1230 include/uapi/linux/cec-funcs.h memcpy(msg->msg + 2, name, len); msg 1233 include/uapi/linux/cec-funcs.h static inline void cec_ops_set_osd_name(const struct cec_msg *msg, msg 1236 include/uapi/linux/cec-funcs.h unsigned int len = msg->len > 2 ? msg->len - 2 : 0; msg 1240 include/uapi/linux/cec-funcs.h memcpy(name, msg->msg + 2, len); msg 1244 include/uapi/linux/cec-funcs.h static inline void cec_msg_give_osd_name(struct cec_msg *msg, msg 1247 include/uapi/linux/cec-funcs.h msg->len = 2; msg 1248 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_GIVE_OSD_NAME; msg 1249 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_SET_OSD_NAME : 0; msg 1254 include/uapi/linux/cec-funcs.h static inline void cec_msg_menu_status(struct cec_msg *msg, msg 1257 include/uapi/linux/cec-funcs.h msg->len = 3; msg 1258 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_MENU_STATUS; msg 1259 include/uapi/linux/cec-funcs.h msg->msg[2] = menu_state; msg 1262 include/uapi/linux/cec-funcs.h static inline void cec_ops_menu_status(const struct cec_msg *msg, msg 1265 include/uapi/linux/cec-funcs.h *menu_state = msg->msg[2]; msg 1268 include/uapi/linux/cec-funcs.h static inline void cec_msg_menu_request(struct cec_msg *msg, msg 1272 include/uapi/linux/cec-funcs.h msg->len = 3; msg 1273 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_MENU_REQUEST; msg 1274 include/uapi/linux/cec-funcs.h msg->msg[2] = menu_req; msg 1275 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_MENU_STATUS : 0; msg 1278 include/uapi/linux/cec-funcs.h static inline void cec_ops_menu_request(const struct cec_msg *msg, msg 1281 include/uapi/linux/cec-funcs.h *menu_req = msg->msg[2]; msg 1298 include/uapi/linux/cec-funcs.h static inline void cec_msg_user_control_pressed(struct cec_msg *msg, msg 1301 include/uapi/linux/cec-funcs.h msg->len = 3; msg 1302 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_USER_CONTROL_PRESSED; msg 1303 include/uapi/linux/cec-funcs.h msg->msg[2] = ui_cmd->ui_cmd; msg 1314 include/uapi/linux/cec-funcs.h msg->len++; msg 1315 include/uapi/linux/cec-funcs.h msg->msg[3] = ui_cmd->play_mode; msg 1318 include/uapi/linux/cec-funcs.h msg->len += 4; msg 1319 include/uapi/linux/cec-funcs.h msg->msg[3] = (ui_cmd->channel_identifier.channel_number_fmt << 2) | msg 1321 include/uapi/linux/cec-funcs.h msg->msg[4] = ui_cmd->channel_identifier.major & 0xff; msg 1322 include/uapi/linux/cec-funcs.h msg->msg[5] = ui_cmd->channel_identifier.minor >> 8; msg 1323 include/uapi/linux/cec-funcs.h msg->msg[6] = ui_cmd->channel_identifier.minor & 0xff; msg 1328 include/uapi/linux/cec-funcs.h static inline void cec_ops_user_control_pressed(const struct cec_msg *msg, msg 1331 include/uapi/linux/cec-funcs.h ui_cmd->ui_cmd = msg->msg[2]; msg 1333 include/uapi/linux/cec-funcs.h if (msg->len == 3) msg 1343 include/uapi/linux/cec-funcs.h ui_cmd->play_mode = msg->msg[3]; msg 1347 include/uapi/linux/cec-funcs.h if (msg->len < 7) msg 1350 include/uapi/linux/cec-funcs.h ui_cmd->channel_identifier.channel_number_fmt = msg->msg[3] >> 2; msg 1351 include/uapi/linux/cec-funcs.h ui_cmd->channel_identifier.major = ((msg->msg[3] & 3) << 6) | msg->msg[4]; msg 1352 include/uapi/linux/cec-funcs.h ui_cmd->channel_identifier.minor = (msg->msg[5] << 8) | msg->msg[6]; msg 1357 include/uapi/linux/cec-funcs.h static inline void cec_msg_user_control_released(struct cec_msg *msg) msg 1359 include/uapi/linux/cec-funcs.h msg->len = 2; msg 1360 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_USER_CONTROL_RELEASED; msg 1366 include/uapi/linux/cec-funcs.h static inline void cec_msg_report_power_status(struct cec_msg *msg, msg 1369 include/uapi/linux/cec-funcs.h msg->len = 3; msg 1370 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_REPORT_POWER_STATUS; msg 1371 include/uapi/linux/cec-funcs.h msg->msg[2] = pwr_state; msg 1374 include/uapi/linux/cec-funcs.h static inline void cec_ops_report_power_status(const struct cec_msg *msg, msg 1377 include/uapi/linux/cec-funcs.h *pwr_state = msg->msg[2]; msg 1380 include/uapi/linux/cec-funcs.h static inline void cec_msg_give_device_power_status(struct cec_msg *msg, msg 1383 include/uapi/linux/cec-funcs.h msg->len = 2; msg 1384 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_GIVE_DEVICE_POWER_STATUS; msg 1385 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_REPORT_POWER_STATUS : 0; msg 1389 include/uapi/linux/cec-funcs.h static inline void cec_msg_feature_abort(struct cec_msg *msg, msg 1392 include/uapi/linux/cec-funcs.h msg->len = 4; msg 1393 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_FEATURE_ABORT; msg 1394 include/uapi/linux/cec-funcs.h msg->msg[2] = abort_msg; msg 1395 include/uapi/linux/cec-funcs.h msg->msg[3] = reason; msg 1398 include/uapi/linux/cec-funcs.h static inline void cec_ops_feature_abort(const struct cec_msg *msg, msg 1401 include/uapi/linux/cec-funcs.h *abort_msg = msg->msg[2]; msg 1402 include/uapi/linux/cec-funcs.h *reason = msg->msg[3]; msg 1406 include/uapi/linux/cec-funcs.h static inline void cec_msg_reply_feature_abort(struct cec_msg *msg, __u8 reason) msg 1408 include/uapi/linux/cec-funcs.h cec_msg_set_reply_to(msg, msg); msg 1409 include/uapi/linux/cec-funcs.h msg->len = 4; msg 1410 include/uapi/linux/cec-funcs.h msg->msg[2] = msg->msg[1]; msg 1411 include/uapi/linux/cec-funcs.h msg->msg[3] = reason; msg 1412 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_FEATURE_ABORT; msg 1415 include/uapi/linux/cec-funcs.h static inline void cec_msg_abort(struct cec_msg *msg) msg 1417 include/uapi/linux/cec-funcs.h msg->len = 2; msg 1418 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_ABORT; msg 1423 include/uapi/linux/cec-funcs.h static inline void cec_msg_report_audio_status(struct cec_msg *msg, msg 1427 include/uapi/linux/cec-funcs.h msg->len = 3; msg 1428 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_REPORT_AUDIO_STATUS; msg 1429 include/uapi/linux/cec-funcs.h msg->msg[2] = (aud_mute_status << 7) | (aud_vol_status & 0x7f); msg 1432 include/uapi/linux/cec-funcs.h static inline void cec_ops_report_audio_status(const struct cec_msg *msg, msg 1436 include/uapi/linux/cec-funcs.h *aud_mute_status = msg->msg[2] >> 7; msg 1437 include/uapi/linux/cec-funcs.h *aud_vol_status = msg->msg[2] & 0x7f; msg 1440 include/uapi/linux/cec-funcs.h static inline void cec_msg_give_audio_status(struct cec_msg *msg, msg 1443 include/uapi/linux/cec-funcs.h msg->len = 2; msg 1444 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_GIVE_AUDIO_STATUS; msg 1445 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_REPORT_AUDIO_STATUS : 0; msg 1448 include/uapi/linux/cec-funcs.h static inline void cec_msg_set_system_audio_mode(struct cec_msg *msg, msg 1451 include/uapi/linux/cec-funcs.h msg->len = 3; msg 1452 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_SET_SYSTEM_AUDIO_MODE; msg 1453 include/uapi/linux/cec-funcs.h msg->msg[2] = sys_aud_status; msg 1456 include/uapi/linux/cec-funcs.h static inline void cec_ops_set_system_audio_mode(const struct cec_msg *msg, msg 1459 include/uapi/linux/cec-funcs.h *sys_aud_status = msg->msg[2]; msg 1462 include/uapi/linux/cec-funcs.h static inline void cec_msg_system_audio_mode_request(struct cec_msg *msg, msg 1466 include/uapi/linux/cec-funcs.h msg->len = phys_addr == 0xffff ? 2 : 4; msg 1467 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_SYSTEM_AUDIO_MODE_REQUEST; msg 1468 include/uapi/linux/cec-funcs.h msg->msg[2] = phys_addr >> 8; msg 1469 include/uapi/linux/cec-funcs.h msg->msg[3] = phys_addr & 0xff; msg 1470 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_SET_SYSTEM_AUDIO_MODE : 0; msg 1474 include/uapi/linux/cec-funcs.h static inline void cec_ops_system_audio_mode_request(const struct cec_msg *msg, msg 1477 include/uapi/linux/cec-funcs.h if (msg->len < 4) msg 1480 include/uapi/linux/cec-funcs.h *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; msg 1483 include/uapi/linux/cec-funcs.h static inline void cec_msg_system_audio_mode_status(struct cec_msg *msg, msg 1486 include/uapi/linux/cec-funcs.h msg->len = 3; msg 1487 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_SYSTEM_AUDIO_MODE_STATUS; msg 1488 include/uapi/linux/cec-funcs.h msg->msg[2] = sys_aud_status; msg 1491 include/uapi/linux/cec-funcs.h static inline void cec_ops_system_audio_mode_status(const struct cec_msg *msg, msg 1494 include/uapi/linux/cec-funcs.h *sys_aud_status = msg->msg[2]; msg 1497 include/uapi/linux/cec-funcs.h static inline void cec_msg_give_system_audio_mode_status(struct cec_msg *msg, msg 1500 include/uapi/linux/cec-funcs.h msg->len = 2; msg 1501 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_GIVE_SYSTEM_AUDIO_MODE_STATUS; msg 1502 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_SYSTEM_AUDIO_MODE_STATUS : 0; msg 1505 include/uapi/linux/cec-funcs.h static inline void cec_msg_report_short_audio_descriptor(struct cec_msg *msg, msg 1513 include/uapi/linux/cec-funcs.h msg->len = 2 + num_descriptors * 3; msg 1514 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_REPORT_SHORT_AUDIO_DESCRIPTOR; msg 1516 include/uapi/linux/cec-funcs.h msg->msg[2 + i * 3] = (descriptors[i] >> 16) & 0xff; msg 1517 include/uapi/linux/cec-funcs.h msg->msg[3 + i * 3] = (descriptors[i] >> 8) & 0xff; msg 1518 include/uapi/linux/cec-funcs.h msg->msg[4 + i * 3] = descriptors[i] & 0xff; msg 1522 include/uapi/linux/cec-funcs.h static inline void cec_ops_report_short_audio_descriptor(const struct cec_msg *msg, msg 1528 include/uapi/linux/cec-funcs.h *num_descriptors = (msg->len - 2) / 3; msg 1532 include/uapi/linux/cec-funcs.h descriptors[i] = (msg->msg[2 + i * 3] << 16) | msg 1533 include/uapi/linux/cec-funcs.h (msg->msg[3 + i * 3] << 8) | msg 1534 include/uapi/linux/cec-funcs.h msg->msg[4 + i * 3]; msg 1537 include/uapi/linux/cec-funcs.h static inline void cec_msg_request_short_audio_descriptor(struct cec_msg *msg, msg 1547 include/uapi/linux/cec-funcs.h msg->len = 2 + num_descriptors; msg 1548 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_REQUEST_SHORT_AUDIO_DESCRIPTOR; msg 1549 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_REPORT_SHORT_AUDIO_DESCRIPTOR : 0; msg 1551 include/uapi/linux/cec-funcs.h msg->msg[2 + i] = (audio_format_id[i] << 6) | msg 1555 include/uapi/linux/cec-funcs.h static inline void cec_ops_request_short_audio_descriptor(const struct cec_msg *msg, msg 1562 include/uapi/linux/cec-funcs.h *num_descriptors = msg->len - 2; msg 1566 include/uapi/linux/cec-funcs.h audio_format_id[i] = msg->msg[2 + i] >> 6; msg 1567 include/uapi/linux/cec-funcs.h audio_format_code[i] = msg->msg[2 + i] & 0x3f; msg 1573 include/uapi/linux/cec-funcs.h static inline void cec_msg_set_audio_rate(struct cec_msg *msg, msg 1576 include/uapi/linux/cec-funcs.h msg->len = 3; msg 1577 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_SET_AUDIO_RATE; msg 1578 include/uapi/linux/cec-funcs.h msg->msg[2] = audio_rate; msg 1581 include/uapi/linux/cec-funcs.h static inline void cec_ops_set_audio_rate(const struct cec_msg *msg, msg 1584 include/uapi/linux/cec-funcs.h *audio_rate = msg->msg[2]; msg 1589 include/uapi/linux/cec-funcs.h static inline void cec_msg_report_arc_initiated(struct cec_msg *msg) msg 1591 include/uapi/linux/cec-funcs.h msg->len = 2; msg 1592 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_REPORT_ARC_INITIATED; msg 1595 include/uapi/linux/cec-funcs.h static inline void cec_msg_initiate_arc(struct cec_msg *msg, msg 1598 include/uapi/linux/cec-funcs.h msg->len = 2; msg 1599 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_INITIATE_ARC; msg 1600 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_REPORT_ARC_INITIATED : 0; msg 1603 include/uapi/linux/cec-funcs.h static inline void cec_msg_request_arc_initiation(struct cec_msg *msg, msg 1606 include/uapi/linux/cec-funcs.h msg->len = 2; msg 1607 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_REQUEST_ARC_INITIATION; msg 1608 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_INITIATE_ARC : 0; msg 1611 include/uapi/linux/cec-funcs.h static inline void cec_msg_report_arc_terminated(struct cec_msg *msg) msg 1613 include/uapi/linux/cec-funcs.h msg->len = 2; msg 1614 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_REPORT_ARC_TERMINATED; msg 1617 include/uapi/linux/cec-funcs.h static inline void cec_msg_terminate_arc(struct cec_msg *msg, msg 1620 include/uapi/linux/cec-funcs.h msg->len = 2; msg 1621 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_TERMINATE_ARC; msg 1622 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_REPORT_ARC_TERMINATED : 0; msg 1625 include/uapi/linux/cec-funcs.h static inline void cec_msg_request_arc_termination(struct cec_msg *msg, msg 1628 include/uapi/linux/cec-funcs.h msg->len = 2; msg 1629 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_REQUEST_ARC_TERMINATION; msg 1630 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_TERMINATE_ARC : 0; msg 1636 include/uapi/linux/cec-funcs.h static inline void cec_msg_report_current_latency(struct cec_msg *msg, msg 1643 include/uapi/linux/cec-funcs.h msg->len = 6; msg 1644 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 1645 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_REPORT_CURRENT_LATENCY; msg 1646 include/uapi/linux/cec-funcs.h msg->msg[2] = phys_addr >> 8; msg 1647 include/uapi/linux/cec-funcs.h msg->msg[3] = phys_addr & 0xff; msg 1648 include/uapi/linux/cec-funcs.h msg->msg[4] = video_latency; msg 1649 include/uapi/linux/cec-funcs.h msg->msg[5] = (low_latency_mode << 2) | audio_out_compensated; msg 1651 include/uapi/linux/cec-funcs.h msg->msg[msg->len++] = audio_out_delay; msg 1654 include/uapi/linux/cec-funcs.h static inline void cec_ops_report_current_latency(const struct cec_msg *msg, msg 1661 include/uapi/linux/cec-funcs.h *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; msg 1662 include/uapi/linux/cec-funcs.h *video_latency = msg->msg[4]; msg 1663 include/uapi/linux/cec-funcs.h *low_latency_mode = (msg->msg[5] >> 2) & 1; msg 1664 include/uapi/linux/cec-funcs.h *audio_out_compensated = msg->msg[5] & 3; msg 1665 include/uapi/linux/cec-funcs.h if (*audio_out_compensated == 3 && msg->len >= 7) msg 1666 include/uapi/linux/cec-funcs.h *audio_out_delay = msg->msg[6]; msg 1671 include/uapi/linux/cec-funcs.h static inline void cec_msg_request_current_latency(struct cec_msg *msg, msg 1675 include/uapi/linux/cec-funcs.h msg->len = 4; msg 1676 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 1677 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_REQUEST_CURRENT_LATENCY; msg 1678 include/uapi/linux/cec-funcs.h msg->msg[2] = phys_addr >> 8; msg 1679 include/uapi/linux/cec-funcs.h msg->msg[3] = phys_addr & 0xff; msg 1680 include/uapi/linux/cec-funcs.h msg->reply = reply ? CEC_MSG_REPORT_CURRENT_LATENCY : 0; msg 1683 include/uapi/linux/cec-funcs.h static inline void cec_ops_request_current_latency(const struct cec_msg *msg, msg 1686 include/uapi/linux/cec-funcs.h *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; msg 1691 include/uapi/linux/cec-funcs.h static inline void cec_msg_cdc_hec_inquire_state(struct cec_msg *msg, msg 1695 include/uapi/linux/cec-funcs.h msg->len = 9; msg 1696 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 1697 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_CDC_MESSAGE; msg 1699 include/uapi/linux/cec-funcs.h msg->msg[4] = CEC_MSG_CDC_HEC_INQUIRE_STATE; msg 1700 include/uapi/linux/cec-funcs.h msg->msg[5] = phys_addr1 >> 8; msg 1701 include/uapi/linux/cec-funcs.h msg->msg[6] = phys_addr1 & 0xff; msg 1702 include/uapi/linux/cec-funcs.h msg->msg[7] = phys_addr2 >> 8; msg 1703 include/uapi/linux/cec-funcs.h msg->msg[8] = phys_addr2 & 0xff; msg 1706 include/uapi/linux/cec-funcs.h static inline void cec_ops_cdc_hec_inquire_state(const struct cec_msg *msg, msg 1711 include/uapi/linux/cec-funcs.h *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; msg 1712 include/uapi/linux/cec-funcs.h *phys_addr1 = (msg->msg[5] << 8) | msg->msg[6]; msg 1713 include/uapi/linux/cec-funcs.h *phys_addr2 = (msg->msg[7] << 8) | msg->msg[8]; msg 1716 include/uapi/linux/cec-funcs.h static inline void cec_msg_cdc_hec_report_state(struct cec_msg *msg, msg 1725 include/uapi/linux/cec-funcs.h msg->len = has_field ? 10 : 8; msg 1726 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 1727 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_CDC_MESSAGE; msg 1729 include/uapi/linux/cec-funcs.h msg->msg[4] = CEC_MSG_CDC_HEC_REPORT_STATE; msg 1730 include/uapi/linux/cec-funcs.h msg->msg[5] = target_phys_addr >> 8; msg 1731 include/uapi/linux/cec-funcs.h msg->msg[6] = target_phys_addr & 0xff; msg 1732 include/uapi/linux/cec-funcs.h msg->msg[7] = (hec_func_state << 6) | msg 1737 include/uapi/linux/cec-funcs.h msg->msg[8] = hec_field >> 8; msg 1738 include/uapi/linux/cec-funcs.h msg->msg[9] = hec_field & 0xff; msg 1742 include/uapi/linux/cec-funcs.h static inline void cec_ops_cdc_hec_report_state(const struct cec_msg *msg, msg 1752 include/uapi/linux/cec-funcs.h *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; msg 1753 include/uapi/linux/cec-funcs.h *target_phys_addr = (msg->msg[5] << 8) | msg->msg[6]; msg 1754 include/uapi/linux/cec-funcs.h *hec_func_state = msg->msg[7] >> 6; msg 1755 include/uapi/linux/cec-funcs.h *host_func_state = (msg->msg[7] >> 4) & 3; msg 1756 include/uapi/linux/cec-funcs.h *enc_func_state = (msg->msg[7] >> 4) & 3; msg 1757 include/uapi/linux/cec-funcs.h *cdc_errcode = msg->msg[7] & 3; msg 1758 include/uapi/linux/cec-funcs.h *has_field = msg->len >= 10; msg 1759 include/uapi/linux/cec-funcs.h *hec_field = *has_field ? ((msg->msg[8] << 8) | msg->msg[9]) : 0; msg 1762 include/uapi/linux/cec-funcs.h static inline void cec_msg_cdc_hec_set_state(struct cec_msg *msg, msg 1770 include/uapi/linux/cec-funcs.h msg->len = 10; msg 1771 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 1772 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_CDC_MESSAGE; msg 1774 include/uapi/linux/cec-funcs.h msg->msg[4] = CEC_MSG_CDC_HEC_INQUIRE_STATE; msg 1775 include/uapi/linux/cec-funcs.h msg->msg[5] = phys_addr1 >> 8; msg 1776 include/uapi/linux/cec-funcs.h msg->msg[6] = phys_addr1 & 0xff; msg 1777 include/uapi/linux/cec-funcs.h msg->msg[7] = phys_addr2 >> 8; msg 1778 include/uapi/linux/cec-funcs.h msg->msg[8] = phys_addr2 & 0xff; msg 1779 include/uapi/linux/cec-funcs.h msg->msg[9] = hec_set_state; msg 1781 include/uapi/linux/cec-funcs.h msg->msg[msg->len++] = phys_addr3 >> 8; msg 1782 include/uapi/linux/cec-funcs.h msg->msg[msg->len++] = phys_addr3 & 0xff; msg 1784 include/uapi/linux/cec-funcs.h msg->msg[msg->len++] = phys_addr4 >> 8; msg 1785 include/uapi/linux/cec-funcs.h msg->msg[msg->len++] = phys_addr4 & 0xff; msg 1787 include/uapi/linux/cec-funcs.h msg->msg[msg->len++] = phys_addr5 >> 8; msg 1788 include/uapi/linux/cec-funcs.h msg->msg[msg->len++] = phys_addr5 & 0xff; msg 1794 include/uapi/linux/cec-funcs.h static inline void cec_ops_cdc_hec_set_state(const struct cec_msg *msg, msg 1803 include/uapi/linux/cec-funcs.h *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; msg 1804 include/uapi/linux/cec-funcs.h *phys_addr1 = (msg->msg[5] << 8) | msg->msg[6]; msg 1805 include/uapi/linux/cec-funcs.h *phys_addr2 = (msg->msg[7] << 8) | msg->msg[8]; msg 1806 include/uapi/linux/cec-funcs.h *hec_set_state = msg->msg[9]; msg 1808 include/uapi/linux/cec-funcs.h if (msg->len >= 12) msg 1809 include/uapi/linux/cec-funcs.h *phys_addr3 = (msg->msg[10] << 8) | msg->msg[11]; msg 1810 include/uapi/linux/cec-funcs.h if (msg->len >= 14) msg 1811 include/uapi/linux/cec-funcs.h *phys_addr4 = (msg->msg[12] << 8) | msg->msg[13]; msg 1812 include/uapi/linux/cec-funcs.h if (msg->len >= 16) msg 1813 include/uapi/linux/cec-funcs.h *phys_addr5 = (msg->msg[14] << 8) | msg->msg[15]; msg 1816 include/uapi/linux/cec-funcs.h static inline void cec_msg_cdc_hec_set_state_adjacent(struct cec_msg *msg, msg 1820 include/uapi/linux/cec-funcs.h msg->len = 8; msg 1821 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 1822 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_CDC_MESSAGE; msg 1824 include/uapi/linux/cec-funcs.h msg->msg[4] = CEC_MSG_CDC_HEC_SET_STATE_ADJACENT; msg 1825 include/uapi/linux/cec-funcs.h msg->msg[5] = phys_addr1 >> 8; msg 1826 include/uapi/linux/cec-funcs.h msg->msg[6] = phys_addr1 & 0xff; msg 1827 include/uapi/linux/cec-funcs.h msg->msg[7] = hec_set_state; msg 1830 include/uapi/linux/cec-funcs.h static inline void cec_ops_cdc_hec_set_state_adjacent(const struct cec_msg *msg, msg 1835 include/uapi/linux/cec-funcs.h *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; msg 1836 include/uapi/linux/cec-funcs.h *phys_addr1 = (msg->msg[5] << 8) | msg->msg[6]; msg 1837 include/uapi/linux/cec-funcs.h *hec_set_state = msg->msg[7]; msg 1840 include/uapi/linux/cec-funcs.h static inline void cec_msg_cdc_hec_request_deactivation(struct cec_msg *msg, msg 1845 include/uapi/linux/cec-funcs.h msg->len = 11; msg 1846 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 1847 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_CDC_MESSAGE; msg 1849 include/uapi/linux/cec-funcs.h msg->msg[4] = CEC_MSG_CDC_HEC_REQUEST_DEACTIVATION; msg 1850 include/uapi/linux/cec-funcs.h msg->msg[5] = phys_addr1 >> 8; msg 1851 include/uapi/linux/cec-funcs.h msg->msg[6] = phys_addr1 & 0xff; msg 1852 include/uapi/linux/cec-funcs.h msg->msg[7] = phys_addr2 >> 8; msg 1853 include/uapi/linux/cec-funcs.h msg->msg[8] = phys_addr2 & 0xff; msg 1854 include/uapi/linux/cec-funcs.h msg->msg[9] = phys_addr3 >> 8; msg 1855 include/uapi/linux/cec-funcs.h msg->msg[10] = phys_addr3 & 0xff; msg 1858 include/uapi/linux/cec-funcs.h static inline void cec_ops_cdc_hec_request_deactivation(const struct cec_msg *msg, msg 1864 include/uapi/linux/cec-funcs.h *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; msg 1865 include/uapi/linux/cec-funcs.h *phys_addr1 = (msg->msg[5] << 8) | msg->msg[6]; msg 1866 include/uapi/linux/cec-funcs.h *phys_addr2 = (msg->msg[7] << 8) | msg->msg[8]; msg 1867 include/uapi/linux/cec-funcs.h *phys_addr3 = (msg->msg[9] << 8) | msg->msg[10]; msg 1870 include/uapi/linux/cec-funcs.h static inline void cec_msg_cdc_hec_notify_alive(struct cec_msg *msg) msg 1872 include/uapi/linux/cec-funcs.h msg->len = 5; msg 1873 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 1874 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_CDC_MESSAGE; msg 1876 include/uapi/linux/cec-funcs.h msg->msg[4] = CEC_MSG_CDC_HEC_NOTIFY_ALIVE; msg 1879 include/uapi/linux/cec-funcs.h static inline void cec_ops_cdc_hec_notify_alive(const struct cec_msg *msg, msg 1882 include/uapi/linux/cec-funcs.h *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; msg 1885 include/uapi/linux/cec-funcs.h static inline void cec_msg_cdc_hec_discover(struct cec_msg *msg) msg 1887 include/uapi/linux/cec-funcs.h msg->len = 5; msg 1888 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 1889 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_CDC_MESSAGE; msg 1891 include/uapi/linux/cec-funcs.h msg->msg[4] = CEC_MSG_CDC_HEC_DISCOVER; msg 1894 include/uapi/linux/cec-funcs.h static inline void cec_ops_cdc_hec_discover(const struct cec_msg *msg, msg 1897 include/uapi/linux/cec-funcs.h *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; msg 1900 include/uapi/linux/cec-funcs.h static inline void cec_msg_cdc_hpd_set_state(struct cec_msg *msg, msg 1904 include/uapi/linux/cec-funcs.h msg->len = 6; msg 1905 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 1906 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_CDC_MESSAGE; msg 1908 include/uapi/linux/cec-funcs.h msg->msg[4] = CEC_MSG_CDC_HPD_SET_STATE; msg 1909 include/uapi/linux/cec-funcs.h msg->msg[5] = (input_port << 4) | hpd_state; msg 1912 include/uapi/linux/cec-funcs.h static inline void cec_ops_cdc_hpd_set_state(const struct cec_msg *msg, msg 1917 include/uapi/linux/cec-funcs.h *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; msg 1918 include/uapi/linux/cec-funcs.h *input_port = msg->msg[5] >> 4; msg 1919 include/uapi/linux/cec-funcs.h *hpd_state = msg->msg[5] & 0xf; msg 1922 include/uapi/linux/cec-funcs.h static inline void cec_msg_cdc_hpd_report_state(struct cec_msg *msg, msg 1926 include/uapi/linux/cec-funcs.h msg->len = 6; msg 1927 include/uapi/linux/cec-funcs.h msg->msg[0] |= 0xf; /* broadcast */ msg 1928 include/uapi/linux/cec-funcs.h msg->msg[1] = CEC_MSG_CDC_MESSAGE; msg 1930 include/uapi/linux/cec-funcs.h msg->msg[4] = CEC_MSG_CDC_HPD_REPORT_STATE; msg 1931 include/uapi/linux/cec-funcs.h msg->msg[5] = (hpd_state << 4) | hpd_error; msg 1934 include/uapi/linux/cec-funcs.h static inline void cec_ops_cdc_hpd_report_state(const struct cec_msg *msg, msg 1939 include/uapi/linux/cec-funcs.h *phys_addr = (msg->msg[2] << 8) | msg->msg[3]; msg 1940 include/uapi/linux/cec-funcs.h *hpd_state = msg->msg[5] >> 4; msg 1941 include/uapi/linux/cec-funcs.h *hpd_error = msg->msg[5] & 0xf; msg 64 include/uapi/linux/cec.h __u8 msg[CEC_MAX_MSG_SIZE]; msg 78 include/uapi/linux/cec.h static inline __u8 cec_msg_initiator(const struct cec_msg *msg) msg 80 include/uapi/linux/cec.h return msg->msg[0] >> 4; msg 87 include/uapi/linux/cec.h static inline __u8 cec_msg_destination(const struct cec_msg *msg) msg 89 include/uapi/linux/cec.h return msg->msg[0] & 0xf; msg 96 include/uapi/linux/cec.h static inline int cec_msg_opcode(const struct cec_msg *msg) msg 98 include/uapi/linux/cec.h return msg->len > 1 ? msg->msg[1] : -1; msg 105 include/uapi/linux/cec.h static inline int cec_msg_is_broadcast(const struct cec_msg *msg) msg 107 include/uapi/linux/cec.h return (msg->msg[0] & 0xf) == 0xf; msg 119 include/uapi/linux/cec.h static inline void cec_msg_init(struct cec_msg *msg, msg 122 include/uapi/linux/cec.h memset(msg, 0, sizeof(*msg)); msg 123 include/uapi/linux/cec.h msg->msg[0] = (initiator << 4) | destination; msg 124 include/uapi/linux/cec.h msg->len = 1; msg 136 include/uapi/linux/cec.h static inline void cec_msg_set_reply_to(struct cec_msg *msg, msg 140 include/uapi/linux/cec.h msg->msg[0] = (cec_msg_destination(orig) << 4) | msg 142 include/uapi/linux/cec.h msg->reply = msg->timeout = 0; msg 164 include/uapi/linux/cec.h static inline int cec_msg_status_is_ok(const struct cec_msg *msg) msg 166 include/uapi/linux/cec.h if (msg->tx_status && !(msg->tx_status & CEC_TX_STATUS_OK)) msg 168 include/uapi/linux/cec.h if (msg->rx_status && !(msg->rx_status & CEC_RX_STATUS_OK)) msg 170 include/uapi/linux/cec.h if (!msg->tx_status && !msg->rx_status) msg 172 include/uapi/linux/cec.h return !(msg->rx_status & CEC_RX_STATUS_FEATURE_ABORT); msg 119 include/uapi/linux/dvb/ca.h unsigned char msg[256]; msg 174 include/uapi/linux/dvb/frontend.h __u8 msg[6]; msg 196 include/uapi/linux/dvb/frontend.h __u8 msg[4]; msg 51 include/uapi/linux/i2o-dev.h __u32 msg; /* message */ msg 56 include/uapi/linux/i2o-dev.h void __user *msg; /* message */ msg 243 include/uapi/linux/ipmi.h struct ipmi_msg msg; msg 297 include/uapi/linux/ipmi.h struct ipmi_msg msg; /* The data field must point to a buffer. msg 20 include/uapi/linux/msg.h struct msg *msg_first; /* first message on queue,unused */ msg 21 include/uapi/linux/msg.h struct msg *msg_last; /* last message in queue,unused */ msg 111 include/uapi/linux/netlink.h struct nlmsghdr msg; msg 55 include/uapi/linux/rio_cm_cdev.h __u64 msg; msg 104 include/uapi/linux/scif_ioctl.h __u64 msg; msg 399 include/uapi/linux/tipc_config.h static inline int TCM_SET(void *msg, __u16 cmd, __u16 flags, msg 406 include/uapi/linux/tipc_config.h tcm_hdr = (struct tipc_cfg_msg_hdr *)msg; msg 411 include/uapi/linux/tipc_config.h memcpy(TCM_DATA(msg), data, data_len); msg 412 include/uapi/linux/tipc_config.h memset(TCM_DATA(msg) + data_len, 0, TCM_SPACE(data_len) - msg_len); msg 196 include/uapi/linux/vboxguest.h char msg[1]; msg 69 ipc/mqueue.c struct msg_msg *msg; /* ptr of loaded message */ msg 132 ipc/mqueue.c static int msg_insert(struct msg_msg *msg, struct mqueue_inode_info *info) msg 143 ipc/mqueue.c if (likely(leaf->priority == msg->m_type)) msg 145 ipc/mqueue.c else if (msg->m_type < leaf->priority) { msg 160 ipc/mqueue.c leaf->priority = msg->m_type; msg 169 ipc/mqueue.c info->qsize += msg->m_ts; msg 170 ipc/mqueue.c list_add_tail(&msg->m_list, &leaf->msg_list); msg 194 ipc/mqueue.c struct msg_msg *msg; msg 220 ipc/mqueue.c msg = list_first_entry(&leaf->msg_list, msg 222 ipc/mqueue.c list_del(&msg->m_list); msg 228 ipc/mqueue.c info->qsize -= msg->m_ts; msg 229 ipc/mqueue.c return msg; msg 443 ipc/mqueue.c struct msg_msg *msg, *nmsg; msg 454 ipc/mqueue.c while ((msg = msg_get(info)) != NULL) msg 455 ipc/mqueue.c list_add_tail(&msg->m_list, &tmp_msg); msg 459 ipc/mqueue.c list_for_each_entry_safe(msg, nmsg, &tmp_msg, m_list) { msg 460 ipc/mqueue.c list_del(&msg->m_list); msg 461 ipc/mqueue.c free_msg(msg); msg 946 ipc/mqueue.c receiver->msg = message; msg 972 ipc/mqueue.c if (msg_insert(sender->msg, info)) msg 1063 ipc/mqueue.c wait.msg = (void *) msg_ptr; msg 1169 ipc/mqueue.c msg_ptr = wait.msg; msg 255 ipc/msg.c struct msg_msg *msg, *t; msg 266 ipc/msg.c list_for_each_entry_safe(msg, t, &msq->q_messages, m_list) { msg 268 ipc/msg.c free_msg(msg); msg 767 ipc/msg.c static int testmsg(struct msg_msg *msg, long type, int mode) msg 774 ipc/msg.c if (msg->m_type <= type) msg 778 ipc/msg.c if (msg->m_type == type) msg 782 ipc/msg.c if (msg->m_type != type) msg 789 ipc/msg.c static inline int pipelined_send(struct msg_queue *msq, struct msg_msg *msg, msg 795 ipc/msg.c if (testmsg(msg, msr->r_msgtype, msr->r_mode) && msg 796 ipc/msg.c !security_msg_queue_msgrcv(&msq->q_perm, msg, msr->r_tsk, msg 800 ipc/msg.c if (msr->r_maxsize < msg->m_ts) { msg 808 ipc/msg.c WRITE_ONCE(msr->r_msg, msg); msg 821 ipc/msg.c struct msg_msg *msg; msg 833 ipc/msg.c msg = load_msg(mtext, msgsz); msg 834 ipc/msg.c if (IS_ERR(msg)) msg 835 ipc/msg.c return PTR_ERR(msg); msg 837 ipc/msg.c msg->m_type = mtype; msg 838 ipc/msg.c msg->m_ts = msgsz; msg 862 ipc/msg.c err = security_msg_queue_msgsnd(&msq->q_perm, msg, msgflg); msg 908 ipc/msg.c if (!pipelined_send(msq, msg, &wake_q)) { msg 910 ipc/msg.c list_add_tail(&msg->m_list, &msq->q_messages); msg 918 ipc/msg.c msg = NULL; msg 925 ipc/msg.c if (msg != NULL) msg 926 ipc/msg.c free_msg(msg); msg 995 ipc/msg.c static long do_msg_fill(void __user *dest, struct msg_msg *msg, size_t bufsz) msg 1000 ipc/msg.c if (put_user(msg->m_type, &msgp->mtype)) msg 1003 ipc/msg.c msgsz = (bufsz > msg->m_ts) ? msg->m_ts : bufsz; msg 1004 ipc/msg.c if (store_msg(msgp->mtext, msg, msgsz)) msg 1045 ipc/msg.c struct msg_msg *msg, *found = NULL; msg 1048 ipc/msg.c list_for_each_entry(msg, &msq->q_messages, m_list) { msg 1049 ipc/msg.c if (testmsg(msg, *msgtyp, mode) && msg 1050 ipc/msg.c !security_msg_queue_msgrcv(&msq->q_perm, msg, current, msg 1052 ipc/msg.c if (mode == SEARCH_LESSEQUAL && msg->m_type != 1) { msg 1053 ipc/msg.c *msgtyp = msg->m_type - 1; msg 1054 ipc/msg.c found = msg; msg 1057 ipc/msg.c return msg; msg 1059 ipc/msg.c return msg; msg 1073 ipc/msg.c struct msg_msg *msg, *copy = NULL; msg 1101 ipc/msg.c msg = ERR_PTR(-EACCES); msg 1109 ipc/msg.c msg = ERR_PTR(-EIDRM); msg 1113 ipc/msg.c msg = find_msg(msq, &msgtyp, mode); msg 1114 ipc/msg.c if (!IS_ERR(msg)) { msg 1119 ipc/msg.c if ((bufsz < msg->m_ts) && !(msgflg & MSG_NOERROR)) { msg 1120 ipc/msg.c msg = ERR_PTR(-E2BIG); msg 1128 ipc/msg.c msg = copy_msg(msg, copy); msg 1132 ipc/msg.c list_del(&msg->m_list); msg 1136 ipc/msg.c msq->q_cbytes -= msg->m_ts; msg 1137 ipc/msg.c atomic_sub(msg->m_ts, &ns->msg_bytes); msg 1146 ipc/msg.c msg = ERR_PTR(-ENOMSG); msg 1186 ipc/msg.c msg = READ_ONCE(msr_d.r_msg); msg 1187 ipc/msg.c if (msg != ERR_PTR(-EAGAIN)) msg 1196 ipc/msg.c msg = msr_d.r_msg; msg 1197 ipc/msg.c if (msg != ERR_PTR(-EAGAIN)) msg 1202 ipc/msg.c msg = ERR_PTR(-ERESTARTNOHAND); msg 1214 ipc/msg.c if (IS_ERR(msg)) { msg 1216 ipc/msg.c return PTR_ERR(msg); msg 1219 ipc/msg.c bufsz = msg_handler(buf, msg, bufsz); msg 1220 ipc/msg.c free_msg(msg); msg 1238 ipc/msg.c static long compat_do_msg_fill(void __user *dest, struct msg_msg *msg, size_t bufsz) msg 1243 ipc/msg.c if (put_user(msg->m_type, &msgp->mtype)) msg 1246 ipc/msg.c msgsz = (bufsz > msg->m_ts) ? msg->m_ts : bufsz; msg 1247 ipc/msg.c if (store_msg(msgp->mtext, msg, msgsz)) msg 48 ipc/msgutil.c struct msg_msg *msg; msg 53 ipc/msgutil.c msg = kmalloc(sizeof(*msg) + alen, GFP_KERNEL_ACCOUNT); msg 54 ipc/msgutil.c if (msg == NULL) msg 57 ipc/msgutil.c msg->next = NULL; msg 58 ipc/msgutil.c msg->security = NULL; msg 61 ipc/msgutil.c pseg = &msg->next; msg 77 ipc/msgutil.c return msg; msg 80 ipc/msgutil.c free_msg(msg); msg 86 ipc/msgutil.c struct msg_msg *msg; msg 91 ipc/msgutil.c msg = alloc_msg(len); msg 92 ipc/msgutil.c if (msg == NULL) msg 96 ipc/msgutil.c if (copy_from_user(msg + 1, src, alen)) msg 99 ipc/msgutil.c for (seg = msg->next; seg != NULL; seg = seg->next) { msg 107 ipc/msgutil.c err = security_msg_msg_alloc(msg); msg 111 ipc/msgutil.c return msg; msg 114 ipc/msgutil.c free_msg(msg); msg 150 ipc/msgutil.c int store_msg(void __user *dest, struct msg_msg *msg, size_t len) msg 156 ipc/msgutil.c if (copy_to_user(dest, msg + 1, alen)) msg 159 ipc/msgutil.c for (seg = msg->next; seg != NULL; seg = seg->next) { msg 169 ipc/msgutil.c void free_msg(struct msg_msg *msg) msg 173 ipc/msgutil.c security_msg_msg_free(msg); msg 175 ipc/msgutil.c seg = msg->next; msg 176 ipc/msgutil.c kfree(msg); msg 196 ipc/util.h extern void free_msg(struct msg_msg *msg); msg 199 ipc/util.h extern int store_msg(void __user *dest, struct msg_msg *msg, size_t len); msg 1404 kernel/auditsc.c char *msg = "(null)"; msg 1405 kernel/auditsc.c int len = strlen(msg); msg 1437 kernel/auditsc.c msg = context->proctitle.value; msg 1440 kernel/auditsc.c audit_log_n_untrustedstring(ab, msg, len); msg 896 kernel/debug/debug_core.c void kgdb_panic(const char *msg) msg 910 kernel/debug/debug_core.c kdb_printf("PANIC: %s\n", msg); msg 1786 kernel/events/uprobes.c static void uprobe_warn(struct task_struct *t, const char *msg) msg 1789 kernel/events/uprobes.c current->comm, current->pid, msg); msg 1510 kernel/irq/chip.c int irq_chip_compose_msi_msg(struct irq_data *data, struct msi_msg *msg) msg 1522 kernel/irq/chip.c pos->chip->irq_compose_msi_msg(pos, msg); msg 59 kernel/irq/msi.c void __get_cached_msi_msg(struct msi_desc *entry, struct msi_msg *msg) msg 61 kernel/irq/msi.c *msg = entry->msg; msg 64 kernel/irq/msi.c void get_cached_msi_msg(unsigned int irq, struct msi_msg *msg) msg 68 kernel/irq/msi.c __get_cached_msi_msg(entry, msg); msg 74 kernel/irq/msi.c struct msi_msg *msg) msg 76 kernel/irq/msi.c data->chip->irq_write_msi_msg(data, msg); msg 79 kernel/irq/msi.c static void msi_check_level(struct irq_domain *domain, struct msi_msg *msg) msg 89 kernel/irq/msi.c (msg[1].address_lo || msg[1].address_hi || msg[1].data)); msg 105 kernel/irq/msi.c struct msi_msg msg[2] = { [1] = { }, }; msg 110 kernel/irq/msi.c BUG_ON(irq_chip_compose_msi_msg(irq_data, msg)); msg 111 kernel/irq/msi.c msi_check_level(irq_data->domain, msg); msg 112 kernel/irq/msi.c irq_chip_write_msi_msg(irq_data, msg); msg 121 kernel/irq/msi.c struct msi_msg msg[2] = { [1] = { }, }; msg 123 kernel/irq/msi.c BUG_ON(irq_chip_compose_msi_msg(irq_data, msg)); msg 124 kernel/irq/msi.c msi_check_level(irq_data->domain, msg); msg 125 kernel/irq/msi.c irq_chip_write_msi_msg(irq_data, msg); msg 132 kernel/irq/msi.c struct msi_msg msg[2]; msg 134 kernel/irq/msi.c memset(msg, 0, sizeof(msg)); msg 135 kernel/irq/msi.c irq_chip_write_msi_msg(irq_data, msg); msg 52 kernel/locking/spinlock_debug.c static void spin_dump(raw_spinlock_t *lock, const char *msg) msg 59 kernel/locking/spinlock_debug.c msg, raw_smp_processor_id(), msg 70 kernel/locking/spinlock_debug.c static void spin_bug(raw_spinlock_t *lock, const char *msg) msg 75 kernel/locking/spinlock_debug.c spin_dump(lock, msg); msg 78 kernel/locking/spinlock_debug.c #define SPIN_BUG_ON(cond, lock, msg) if (unlikely(cond)) spin_bug(lock, msg) msg 142 kernel/locking/spinlock_debug.c static void rwlock_bug(rwlock_t *lock, const char *msg) msg 148 kernel/locking/spinlock_debug.c msg, raw_smp_processor_id(), current->comm, msg 153 kernel/locking/spinlock_debug.c #define RWLOCK_BUG_ON(cond, lock, msg) if (unlikely(cond)) rwlock_bug(lock, msg) msg 124 kernel/panic.c void nmi_panic(struct pt_regs *regs, const char *msg) msg 132 kernel/panic.c panic("%s", msg); msg 240 kernel/power/hibernate.c unsigned nr_pages, char *msg) msg 256 kernel/power/hibernate.c msg, k, centisecs / 100, centisecs % 100, kps / 1000, msg 353 kernel/power/hibernate.c pm_message_t msg; msg 406 kernel/power/hibernate.c msg = in_suspend ? (error ? PMSG_RECOVER : PMSG_THAW) : PMSG_RESTORE; msg 407 kernel/power/hibernate.c dpm_resume(msg); msg 413 kernel/power/hibernate.c dpm_complete(msg); msg 488 kernel/printk/printk.c static char *log_text(const struct printk_log *msg) msg 490 kernel/printk/printk.c return (char *)msg + sizeof(struct printk_log); msg 494 kernel/printk/printk.c static char *log_dict(const struct printk_log *msg) msg 496 kernel/printk/printk.c return (char *)msg + sizeof(struct printk_log) + msg->text_len; msg 502 kernel/printk/printk.c struct printk_log *msg = (struct printk_log *)(log_buf + idx); msg 508 kernel/printk/printk.c if (!msg->len) msg 510 kernel/printk/printk.c return msg; msg 516 kernel/printk/printk.c struct printk_log *msg = (struct printk_log *)(log_buf + idx); msg 524 kernel/printk/printk.c if (!msg->len) { msg 525 kernel/printk/printk.c msg = (struct printk_log *)log_buf; msg 526 kernel/printk/printk.c return msg->len; msg 528 kernel/printk/printk.c return idx + msg->len; msg 621 kernel/printk/printk.c struct printk_log *msg; msg 648 kernel/printk/printk.c msg = (struct printk_log *)(log_buf + log_next_idx); msg 649 kernel/printk/printk.c memcpy(log_text(msg), text, text_len); msg 650 kernel/printk/printk.c msg->text_len = text_len; msg 652 kernel/printk/printk.c memcpy(log_text(msg) + text_len, trunc_msg, trunc_msg_len); msg 653 kernel/printk/printk.c msg->text_len += trunc_msg_len; msg 655 kernel/printk/printk.c memcpy(log_dict(msg), dict, dict_len); msg 656 kernel/printk/printk.c msg->dict_len = dict_len; msg 657 kernel/printk/printk.c msg->facility = facility; msg 658 kernel/printk/printk.c msg->level = level & 7; msg 659 kernel/printk/printk.c msg->flags = flags & 0x1f; msg 661 kernel/printk/printk.c msg->ts_nsec = ts_nsec; msg 663 kernel/printk/printk.c msg->ts_nsec = local_clock(); msg 665 kernel/printk/printk.c msg->caller_id = caller_id; msg 667 kernel/printk/printk.c memset(log_dict(msg) + dict_len, 0, pad_len); msg 668 kernel/printk/printk.c msg->len = size; msg 671 kernel/printk/printk.c log_next_idx += msg->len; msg 674 kernel/printk/printk.c return msg->text_len; msg 727 kernel/printk/printk.c struct printk_log *msg, u64 seq) msg 729 kernel/printk/printk.c u64 ts_usec = msg->ts_nsec; msg 732 kernel/printk/printk.c u32 id = msg->caller_id; msg 743 kernel/printk/printk.c (msg->facility << 3) | msg->level, seq, ts_usec, msg 744 kernel/printk/printk.c msg->flags & LOG_CONT ? 'c' : '-', caller); msg 884 kernel/printk/printk.c struct printk_log *msg; msg 920 kernel/printk/printk.c msg = log_from_idx(user->idx); msg 922 kernel/printk/printk.c msg, user->seq); msg 924 kernel/printk/printk.c log_dict(msg), msg->dict_len, msg 925 kernel/printk/printk.c log_text(msg), msg->text_len); msg 1316 kernel/printk/printk.c static size_t print_prefix(const struct printk_log *msg, bool syslog, msg 1322 kernel/printk/printk.c len = print_syslog((msg->facility << 3) | msg->level, buf); msg 1325 kernel/printk/printk.c len += print_time(msg->ts_nsec, buf + len); msg 1327 kernel/printk/printk.c len += print_caller(msg->caller_id, buf + len); msg 1337 kernel/printk/printk.c static size_t msg_print_text(const struct printk_log *msg, bool syslog, msg 1340 kernel/printk/printk.c const char *text = log_text(msg); msg 1341 kernel/printk/printk.c size_t text_size = msg->text_len; msg 1344 kernel/printk/printk.c const size_t prefix_len = print_prefix(msg, syslog, time, prefix); msg 1381 kernel/printk/printk.c struct printk_log *msg; msg 1412 kernel/printk/printk.c msg = log_from_idx(syslog_idx); msg 1413 kernel/printk/printk.c n = msg_print_text(msg, true, syslog_time, text, msg 1469 kernel/printk/printk.c struct printk_log *msg = log_from_idx(idx); msg 1471 kernel/printk/printk.c len += msg_print_text(msg, true, time, NULL, 0); msg 1480 kernel/printk/printk.c struct printk_log *msg = log_from_idx(idx); msg 1482 kernel/printk/printk.c len -= msg_print_text(msg, true, time, NULL, 0); msg 1492 kernel/printk/printk.c struct printk_log *msg = log_from_idx(idx); msg 1493 kernel/printk/printk.c int textlen = msg_print_text(msg, true, time, text, msg 1622 kernel/printk/printk.c struct printk_log *msg = log_from_idx(idx); msg 1624 kernel/printk/printk.c error += msg_print_text(msg, true, time, NULL, msg 2105 kernel/printk/printk.c static char *log_text(const struct printk_log *msg) { return NULL; } msg 2106 kernel/printk/printk.c static char *log_dict(const struct printk_log *msg) { return NULL; } msg 2110 kernel/printk/printk.c struct printk_log *msg, msg 2119 kernel/printk/printk.c static size_t msg_print_text(const struct printk_log *msg, bool syslog, msg 2437 kernel/printk/printk.c struct printk_log *msg; msg 2458 kernel/printk/printk.c msg = log_from_idx(console_idx); msg 2459 kernel/printk/printk.c if (suppress_message_printing(msg->level)) { msg 2476 kernel/printk/printk.c len += msg_print_text(msg, msg 2482 kernel/printk/printk.c msg, console_seq); msg 2485 kernel/printk/printk.c log_dict(msg), msg->dict_len, msg 2486 kernel/printk/printk.c log_text(msg), msg->text_len); msg 3200 kernel/printk/printk.c struct printk_log *msg; msg 3217 kernel/printk/printk.c msg = log_from_idx(dumper->cur_idx); msg 3218 kernel/printk/printk.c l = msg_print_text(msg, syslog, printk_time, line, size); msg 3311 kernel/printk/printk.c struct printk_log *msg = log_from_idx(idx); msg 3313 kernel/printk/printk.c l += msg_print_text(msg, true, time, NULL, 0); msg 3322 kernel/printk/printk.c struct printk_log *msg = log_from_idx(idx); msg 3324 kernel/printk/printk.c l -= msg_print_text(msg, true, time, NULL, 0); msg 3335 kernel/printk/printk.c struct printk_log *msg = log_from_idx(idx); msg 3337 kernel/printk/printk.c l += msg_print_text(msg, syslog, time, buf + l, size - l); msg 209 kernel/printk/printk_safe.c const char *msg = "printk_safe_flush: internal error\n"; msg 211 kernel/printk/printk_safe.c printk_safe_flush_line(msg, strlen(msg)); msg 391 kernel/trace/blktrace.c char *msg; msg 397 kernel/trace/blktrace.c msg = memdup_user_nul(buffer, count); msg 398 kernel/trace/blktrace.c if (IS_ERR(msg)) msg 399 kernel/trace/blktrace.c return PTR_ERR(msg); msg 402 kernel/trace/blktrace.c __trace_note_message(bt, NULL, "%s", msg); msg 403 kernel/trace/blktrace.c kfree(msg); msg 250 kernel/trace/trace_mmiotrace.c const char *msg = print->buf; msg 257 kernel/trace/trace_mmiotrace.c trace_seq_printf(s, "MARK %u.%06lu %s", secs, usec_rem, msg); msg 476 lib/debugobjects.c static void debug_print_object(struct debug_obj *obj, char *msg) msg 487 lib/debugobjects.c msg, obj_states[obj->state], obj->astate, msg 30 lib/digsig.c static const char *pkcs_1_v1_5_decode_emsa(const unsigned char *msg, msg 44 lib/digsig.c if (msg[0] != 0x00 || msg[1] != 0x01) msg 48 lib/digsig.c if (msg[i] != 0xFF) msg 52 lib/digsig.c if (msg[i] != 0) msg 61 lib/digsig.c return msg + 2 + ps_len + 1; msg 114 lib/dynamic_debug.c static void vpr_info_dq(const struct ddebug_query *query, const char *msg) msg 126 lib/dynamic_debug.c msg, msg 9 lib/interval_tree_test.c #define __param(type, name, init, msg) \ msg 12 lib/interval_tree_test.c MODULE_PARM_DESC(name, msg); msg 198 lib/kobject_uevent.c const char *msg = NULL, *devpath; msg 203 lib/kobject_uevent.c msg = "unknown uevent action string"; msg 215 lib/kobject_uevent.c msg = "incorrect uevent action arguments"; msg 229 lib/kobject_uevent.c msg ?: "failed to send uevent"); msg 9 lib/rbtree_test.c #define __param(type, name, init, msg) \ msg 12 lib/rbtree_test.c MODULE_PARM_DESC(name, msg); msg 27 lib/reed_solomon/test_rslib.c #define __param(type, name, init, msg) \ msg 30 lib/reed_solomon/test_rslib.c MODULE_PARM_DESC(name, msg) msg 34 lib/test_user_copy.c #define test(condition, msg, ...) \ msg 38 lib/test_user_copy.c pr_warn("[%d] " msg "\n", __LINE__, ##__VA_ARGS__); \ msg 19 lib/test_vmalloc.c #define __param(type, name, init, msg) \ msg 22 lib/test_vmalloc.c MODULE_PARM_DESC(name, msg) \ msg 188 lib/zlib_deflate/deflate.c strm->msg = NULL; msg 263 lib/zlib_deflate/deflate.c strm->msg = NULL; msg 193 lib/zlib_inflate/inffast.c strm->msg = (char *)"invalid distance too far back"; msg 204 lib/zlib_inflate/inffast.c strm->msg = (char *)"invalid distance too far back"; msg 312 lib/zlib_inflate/inffast.c strm->msg = (char *)"invalid distance code"; msg 326 lib/zlib_inflate/inffast.c strm->msg = (char *)"invalid literal/length code"; msg 30 lib/zlib_inflate/inflate.c strm->msg = NULL; msg 53 lib/zlib_inflate/inflate.c strm->msg = NULL; /* in case we return an error */ msg 359 lib/zlib_inflate/inflate.c strm->msg = (char *)"incorrect header check"; msg 364 lib/zlib_inflate/inflate.c strm->msg = (char *)"unknown compression method"; msg 371 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid window size"; msg 418 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid block type"; msg 427 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid stored block lengths"; msg 461 lib/zlib_inflate/inflate.c strm->msg = (char *)"too many length or distance symbols"; msg 483 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid code lengths set"; msg 507 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid bit length repeat"; msg 530 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid bit length repeat"; msg 549 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid literal/lengths set"; msg 558 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid distances set"; msg 597 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid literal/length code"; msg 630 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid distance code"; msg 646 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid distance too far back"; msg 652 lib/zlib_inflate/inflate.c strm->msg = (char *)"invalid distance too far back"; msg 701 lib/zlib_inflate/inflate.c strm->msg = (char *)"incorrect data check"; msg 436 mm/slab.c #define slab_error(cachep, msg) __slab_error(__func__, cachep, msg) msg 439 mm/slab.c char *msg) msg 442 mm/slab.c function, cachep->name, msg); msg 199 mm/zswap.c #define zswap_pool_debug(msg, p) \ msg 200 mm/zswap.c pr_debug("%s pool %s/%s\n", msg, (p)->tfm_name, \ msg 1560 net/appletalk/ddp.c static int atalk_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) msg 1564 net/appletalk/ddp.c DECLARE_SOCKADDR(struct sockaddr_at *, usat, msg->msg_name); msg 1565 net/appletalk/ddp.c int flags = msg->msg_flags; msg 1589 net/appletalk/ddp.c if (msg->msg_namelen < sizeof(*usat) || msg 1659 net/appletalk/ddp.c err = memcpy_from_msg(skb_put(skb, len), msg, len); msg 1728 net/appletalk/ddp.c static int atalk_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, msg 1756 net/appletalk/ddp.c msg->msg_flags |= MSG_TRUNC; msg 1758 net/appletalk/ddp.c err = skb_copy_datagram_msg(skb, offset, msg, copied); msg 1760 net/appletalk/ddp.c if (!err && msg->msg_name) { msg 1761 net/appletalk/ddp.c DECLARE_SOCKADDR(struct sockaddr_at *, sat, msg->msg_name); msg 1766 net/appletalk/ddp.c msg->msg_namelen = sizeof(*sat); msg 522 net/atm/common.c int vcc_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, msg 550 net/atm/common.c msg->msg_flags |= MSG_TRUNC; msg 553 net/atm/common.c error = skb_copy_datagram_msg(skb, 0, msg, copied); msg 556 net/atm/common.c sock_recv_ts_and_drops(msg, sk, skb); msg 17 net/atm/common.h int vcc_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, msg 69 net/atm/mpc.c static void MPOA_trigger_rcvd(struct k_message *msg, struct mpoa_client *mpc); msg 70 net/atm/mpc.c static void MPOA_res_reply_rcvd(struct k_message *msg, struct mpoa_client *mpc); msg 71 net/atm/mpc.c static void ingress_purge_rcvd(struct k_message *msg, struct mpoa_client *mpc); msg 72 net/atm/mpc.c static void egress_purge_rcvd(struct k_message *msg, struct mpoa_client *mpc); msg 73 net/atm/mpc.c static void mps_death(struct k_message *msg, struct mpoa_client *mpc); msg 74 net/atm/mpc.c static void clean_up(struct k_message *msg, struct mpoa_client *mpc, msg 76 net/atm/mpc.c static void MPOA_cache_impos_rcvd(struct k_message *msg, msg 1080 net/atm/mpc.c static void MPOA_trigger_rcvd(struct k_message *msg, struct mpoa_client *mpc) msg 1082 net/atm/mpc.c __be32 dst_ip = msg->content.in_info.in_dst_ip; msg 1089 net/atm/mpc.c msg->type = SND_MPOA_RES_RQST; msg 1090 net/atm/mpc.c msg->content.in_info = entry->ctrl_info; msg 1091 net/atm/mpc.c msg_to_mpoad(msg, mpc); msg 1099 net/atm/mpc.c msg->type = SND_MPOA_RES_RQST; msg 1100 net/atm/mpc.c msg->content.in_info = entry->ctrl_info; msg 1101 net/atm/mpc.c msg_to_mpoad(msg, mpc); msg 1116 net/atm/mpc.c static void check_qos_and_open_shortcut(struct k_message *msg, msg 1120 net/atm/mpc.c __be32 dst_ip = msg->content.in_info.in_dst_ip; msg 1126 net/atm/mpc.c msg->qos.txtp.traffic_class & msg 1144 net/atm/mpc.c msg->type = OPEN_INGRESS_SVC; msg 1146 net/atm/mpc.c (qos->qos.txtp.traffic_class == msg->qos.txtp.traffic_class)) { msg 1147 net/atm/mpc.c msg->qos = qos->qos; msg 1151 net/atm/mpc.c memset(&msg->qos, 0, sizeof(struct atm_qos)); msg 1152 net/atm/mpc.c msg_to_mpoad(msg, client); msg 1155 net/atm/mpc.c static void MPOA_res_reply_rcvd(struct k_message *msg, struct mpoa_client *mpc) msg 1157 net/atm/mpc.c __be32 dst_ip = msg->content.in_info.in_dst_ip; msg 1177 net/atm/mpc.c entry->ctrl_info = msg->content.in_info; msg 1198 net/atm/mpc.c check_qos_and_open_shortcut(msg, mpc, entry); msg 1206 net/atm/mpc.c static void ingress_purge_rcvd(struct k_message *msg, struct mpoa_client *mpc) msg 1208 net/atm/mpc.c __be32 dst_ip = msg->content.in_info.in_dst_ip; msg 1209 net/atm/mpc.c __be32 mask = msg->ip_mask; msg 1229 net/atm/mpc.c static void egress_purge_rcvd(struct k_message *msg, struct mpoa_client *mpc) msg 1231 net/atm/mpc.c __be32 cache_id = msg->content.eg_info.cache_id; msg 1284 net/atm/mpc.c static void mps_death(struct k_message *msg, struct mpoa_client *mpc) msg 1290 net/atm/mpc.c if (memcmp(msg->MPS_ctrl, mpc->mps_ctrl_addr, ATM_ESA_LEN)) { msg 1308 net/atm/mpc.c static void MPOA_cache_impos_rcvd(struct k_message *msg, msg 1312 net/atm/mpc.c eg_cache_entry *entry = mpc->eg_ops->get_by_cache_id(msg->content.eg_info.cache_id, mpc); msg 1314 net/atm/mpc.c holding_time = msg->content.eg_info.holding_time; msg 1318 net/atm/mpc.c entry = mpc->eg_ops->add_entry(msg, mpc); msg 1371 net/atm/mpc.c static void set_mps_mac_addr_rcvd(struct k_message *msg, msg 1378 net/atm/mpc.c client->mps_macs = kmemdup(msg->MPS_ctrl, ETH_ALEN, GFP_KERNEL); msg 1389 net/atm/mpc.c static void clean_up(struct k_message *msg, struct mpoa_client *mpc, int action) msg 1393 net/atm/mpc.c msg->type = SND_EGRESS_PURGE; msg 1400 net/atm/mpc.c msg->content.eg_info = entry->ctrl_info; msg 1402 net/atm/mpc.c msg_to_mpoad(msg, mpc); msg 1407 net/atm/mpc.c msg->type = action; msg 1408 net/atm/mpc.c msg_to_mpoad(msg, mpc); msg 13 net/atm/mpc.h int msg_to_mpoad(struct k_message *msg, struct mpoa_client *mpc); msg 136 net/atm/mpoa_caches.c struct k_message msg; msg 144 net/atm/mpoa_caches.c msg.type = SND_MPOA_RES_RQST; msg 145 net/atm/mpoa_caches.c msg.content.in_info = entry->ctrl_info; msg 146 net/atm/mpoa_caches.c memcpy(msg.MPS_ctrl, mpc->mps_ctrl_addr, ATM_ESA_LEN); msg 149 net/atm/mpoa_caches.c msg.qos = qos->qos; msg 150 net/atm/mpoa_caches.c msg_to_mpoad(&msg, mpc); msg 167 net/atm/mpoa_caches.c msg.type = SND_MPOA_RES_RQST; msg 168 net/atm/mpoa_caches.c memcpy(msg.MPS_ctrl, mpc->mps_ctrl_addr, ATM_ESA_LEN); msg 169 net/atm/mpoa_caches.c msg.content.in_info = entry->ctrl_info; msg 172 net/atm/mpoa_caches.c msg.qos = qos->qos; msg 173 net/atm/mpoa_caches.c msg_to_mpoad(&msg, mpc); msg 194 net/atm/mpoa_caches.c struct k_message msg; msg 208 net/atm/mpoa_caches.c msg.type = STOP_KEEP_ALIVE_SM; msg 209 net/atm/mpoa_caches.c msg_to_mpoad(&msg, client); msg 255 net/atm/mpoa_caches.c struct k_message msg; msg 283 net/atm/mpoa_caches.c msg.type = SND_MPOA_RES_RTRY; msg 284 net/atm/mpoa_caches.c memcpy(msg.MPS_ctrl, client->mps_ctrl_addr, ATM_ESA_LEN); msg 285 net/atm/mpoa_caches.c msg.content.in_info = entry->ctrl_info; msg 288 net/atm/mpoa_caches.c msg.qos = qos->qos; msg 289 net/atm/mpoa_caches.c msg_to_mpoad(&msg, client); msg 429 net/atm/mpoa_caches.c struct k_message msg; msg 441 net/atm/mpoa_caches.c msg.type = STOP_KEEP_ALIVE_SM; msg 442 net/atm/mpoa_caches.c msg_to_mpoad(&msg, client); msg 456 net/atm/mpoa_caches.c static eg_cache_entry *eg_cache_add_entry(struct k_message *msg, msg 467 net/atm/mpoa_caches.c &msg->content.eg_info.eg_dst_ip); msg 479 net/atm/mpoa_caches.c entry->ctrl_info = msg->content.eg_info; msg 504 net/atm/mpoa_caches.c struct k_message msg; msg 513 net/atm/mpoa_caches.c msg.type = SND_EGRESS_PURGE; msg 514 net/atm/mpoa_caches.c msg.content.eg_info = entry->ctrl_info; msg 517 net/atm/mpoa_caches.c msg_to_mpoad(&msg, client); msg 68 net/atm/mpoa_caches.h eg_cache_entry *(*add_entry)(struct k_message *msg, struct mpoa_client *client); msg 37 net/atm/signaling.c static void modify_qos(struct atm_vcc *vcc, struct atmsvc_msg *msg) msg 44 net/atm/signaling.c msg->type = as_error; msg 46 net/atm/signaling.c msg->reply = -EOPNOTSUPP; msg 49 net/atm/signaling.c msg->reply = vcc->dev->ops->change_qos(vcc, &msg->qos, msg 50 net/atm/signaling.c msg->reply); msg 51 net/atm/signaling.c if (!msg->reply) msg 52 net/atm/signaling.c msg->type = as_okay; msg 60 net/atm/signaling.c *(struct atmsvc_msg *)skb_put(skb, sizeof(struct atmsvc_msg)) = *msg; msg 66 net/atm/signaling.c struct atmsvc_msg *msg; msg 70 net/atm/signaling.c msg = (struct atmsvc_msg *) skb->data; msg 72 net/atm/signaling.c vcc = *(struct atm_vcc **) &msg->vcc; msg 73 net/atm/signaling.c pr_debug("%d (0x%lx)\n", (int)msg->type, (unsigned long)vcc); msg 76 net/atm/signaling.c switch (msg->type) { msg 78 net/atm/signaling.c sk->sk_err = -msg->reply; msg 83 net/atm/signaling.c msg->local.sas_addr.prv, ATM_ESA_LEN); msg 85 net/atm/signaling.c msg->local.sas_addr.pub, ATM_E164_LEN + 1); msg 90 net/atm/signaling.c session_vcc->itf = msg->pvc.sap_addr.itf; msg 91 net/atm/signaling.c session_vcc->vpi = msg->pvc.sap_addr.vpi; msg 92 net/atm/signaling.c session_vcc->vci = msg->pvc.sap_addr.vci; msg 94 net/atm/signaling.c session_vcc->qos = msg->qos; msg 99 net/atm/signaling.c sk->sk_err = -msg->reply; msg 103 net/atm/signaling.c vcc = *(struct atm_vcc **)&msg->listen_vcc; msg 121 net/atm/signaling.c vcc_release_async(vcc, msg->reply); msg 124 net/atm/signaling.c modify_qos(vcc, msg); msg 128 net/atm/signaling.c sk->sk_err_soft = -msg->reply; msg 133 net/atm/signaling.c pr_alert("bad message type %d\n", (int)msg->type); msg 148 net/atm/signaling.c struct atmsvc_msg *msg; msg 154 net/atm/signaling.c msg = skb_put_zero(skb, sizeof(struct atmsvc_msg)); msg 155 net/atm/signaling.c msg->type = type; msg 156 net/atm/signaling.c *(struct atm_vcc **) &msg->vcc = vcc; msg 157 net/atm/signaling.c *(struct atm_vcc **) &msg->listen_vcc = listen_vcc; msg 158 net/atm/signaling.c msg->reply = reply; msg 160 net/atm/signaling.c msg->qos = *qos; msg 162 net/atm/signaling.c msg->sap = vcc->sap; msg 164 net/atm/signaling.c msg->svc = *svc; msg 166 net/atm/signaling.c msg->local = vcc->local; msg 168 net/atm/signaling.c msg->pvc = *pvc; msg 171 net/atm/signaling.c msg->session = ++session; msg 327 net/atm/svc.c struct atmsvc_msg *msg; msg 374 net/atm/svc.c msg = (struct atmsvc_msg *)skb->data; msg 375 net/atm/svc.c new_vcc->qos = msg->qos; msg 377 net/atm/svc.c new_vcc->remote = msg->svc; msg 378 net/atm/svc.c new_vcc->local = msg->local; msg 379 net/atm/svc.c new_vcc->sap = msg->sap; msg 380 net/atm/svc.c error = vcc_connect(newsock, msg->pvc.sap_addr.itf, msg 381 net/atm/svc.c msg->pvc.sap_addr.vpi, msg 382 net/atm/svc.c msg->pvc.sap_addr.vci); msg 1446 net/ax25/af_ax25.c static int ax25_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) msg 1448 net/ax25/af_ax25.c DECLARE_SOCKADDR(struct sockaddr_ax25 *, usax, msg->msg_name); msg 1455 net/ax25/af_ax25.c int lv, err, addr_len = msg->msg_namelen; msg 1457 net/ax25/af_ax25.c if (msg->msg_flags & ~(MSG_DONTWAIT|MSG_EOR|MSG_CMSG_COMPAT)) msg 1555 net/ax25/af_ax25.c skb = sock_alloc_send_skb(sk, size, msg->msg_flags&MSG_DONTWAIT, &err); msg 1562 net/ax25/af_ax25.c if (memcpy_from_msg(skb_put(skb, len), msg, len)) { msg 1612 net/ax25/af_ax25.c static int ax25_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, msg 1644 net/ax25/af_ax25.c msg->msg_flags |= MSG_TRUNC; msg 1647 net/ax25/af_ax25.c skb_copy_datagram_msg(skb, 0, msg, copied); msg 1649 net/ax25/af_ax25.c if (msg->msg_name) { msg 1653 net/ax25/af_ax25.c DECLARE_SOCKADDR(struct sockaddr_ax25 *, sax, msg->msg_name); msg 1672 net/ax25/af_ax25.c msg->msg_namelen = sizeof(struct full_sockaddr_ax25); msg 177 net/batman-adv/bat_algo.c static int batadv_algo_dump_entry(struct sk_buff *msg, u32 portid, u32 seq, msg 182 net/batman-adv/bat_algo.c hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, msg 187 net/batman-adv/bat_algo.c if (nla_put_string(msg, BATADV_ATTR_ALGO_NAME, bat_algo_ops->name)) msg 190 net/batman-adv/bat_algo.c genlmsg_end(msg, hdr); msg 194 net/batman-adv/bat_algo.c genlmsg_cancel(msg, hdr); msg 206 net/batman-adv/bat_algo.c int batadv_algo_dump(struct sk_buff *msg, struct netlink_callback *cb) msg 217 net/batman-adv/bat_algo.c if (batadv_algo_dump_entry(msg, portid, cb->nlh->nlmsg_seq, msg 226 net/batman-adv/bat_algo.c return msg->len; msg 24 net/batman-adv/bat_algo.h int batadv_algo_dump(struct sk_buff *msg, struct netlink_callback *cb); msg 1922 net/batman-adv/bat_iv_ogm.c batadv_iv_ogm_orig_dump_subentry(struct sk_buff *msg, u32 portid, u32 seq, msg 1942 net/batman-adv/bat_iv_ogm.c hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, msg 1947 net/batman-adv/bat_iv_ogm.c if (nla_put(msg, BATADV_ATTR_ORIG_ADDRESS, ETH_ALEN, msg 1949 net/batman-adv/bat_iv_ogm.c nla_put(msg, BATADV_ATTR_NEIGH_ADDRESS, ETH_ALEN, msg 1951 net/batman-adv/bat_iv_ogm.c nla_put_u32(msg, BATADV_ATTR_HARD_IFINDEX, msg 1953 net/batman-adv/bat_iv_ogm.c nla_put_u8(msg, BATADV_ATTR_TQ, tq_avg) || msg 1954 net/batman-adv/bat_iv_ogm.c nla_put_u32(msg, BATADV_ATTR_LAST_SEEN_MSECS, msg 1958 net/batman-adv/bat_iv_ogm.c if (best && nla_put_flag(msg, BATADV_ATTR_FLAG_BEST)) msg 1961 net/batman-adv/bat_iv_ogm.c genlmsg_end(msg, hdr); msg 1965 net/batman-adv/bat_iv_ogm.c genlmsg_cancel(msg, hdr); msg 1984 net/batman-adv/bat_iv_ogm.c batadv_iv_ogm_orig_dump_entry(struct sk_buff *msg, u32 portid, u32 seq, msg 2012 net/batman-adv/bat_iv_ogm.c if (batadv_iv_ogm_orig_dump_subentry(msg, portid, seq, msg 2046 net/batman-adv/bat_iv_ogm.c batadv_iv_ogm_orig_dump_bucket(struct sk_buff *msg, u32 portid, u32 seq, msg 2059 net/batman-adv/bat_iv_ogm.c if (batadv_iv_ogm_orig_dump_entry(msg, portid, seq, bat_priv, msg 2082 net/batman-adv/bat_iv_ogm.c batadv_iv_ogm_orig_dump(struct sk_buff *msg, struct netlink_callback *cb, msg 2096 net/batman-adv/bat_iv_ogm.c if (batadv_iv_ogm_orig_dump_bucket(msg, portid, msg 2218 net/batman-adv/bat_iv_ogm.c batadv_iv_ogm_neigh_dump_neigh(struct sk_buff *msg, u32 portid, u32 seq, msg 2226 net/batman-adv/bat_iv_ogm.c hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, msg 2231 net/batman-adv/bat_iv_ogm.c if (nla_put(msg, BATADV_ATTR_NEIGH_ADDRESS, ETH_ALEN, msg 2233 net/batman-adv/bat_iv_ogm.c nla_put_u32(msg, BATADV_ATTR_HARD_IFINDEX, msg 2235 net/batman-adv/bat_iv_ogm.c nla_put_u32(msg, BATADV_ATTR_LAST_SEEN_MSECS, msg 2239 net/batman-adv/bat_iv_ogm.c genlmsg_end(msg, hdr); msg 2243 net/batman-adv/bat_iv_ogm.c genlmsg_cancel(msg, hdr); msg 2262 net/batman-adv/bat_iv_ogm.c batadv_iv_ogm_neigh_dump_hardif(struct sk_buff *msg, u32 portid, u32 seq, msg 2275 net/batman-adv/bat_iv_ogm.c if (batadv_iv_ogm_neigh_dump_neigh(msg, portid, seq, msg 2294 net/batman-adv/bat_iv_ogm.c batadv_iv_ogm_neigh_dump(struct sk_buff *msg, struct netlink_callback *cb, msg 2307 net/batman-adv/bat_iv_ogm.c if (batadv_iv_ogm_neigh_dump_hardif(msg, portid, msg 2323 net/batman-adv/bat_iv_ogm.c if (batadv_iv_ogm_neigh_dump_hardif(msg, portid, msg 2634 net/batman-adv/bat_iv_ogm.c static int batadv_iv_gw_dump_entry(struct sk_buff *msg, u32 portid, msg 2655 net/batman-adv/bat_iv_ogm.c hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq, msg 2668 net/batman-adv/bat_iv_ogm.c if (nla_put_flag(msg, BATADV_ATTR_FLAG_BEST)) { msg 2669 net/batman-adv/bat_iv_ogm.c genlmsg_cancel(msg, hdr); msg 2673 net/batman-adv/bat_iv_ogm.c if (nla_put(msg, BATADV_ATTR_ORIG_ADDRESS, ETH_ALEN, msg 2675 net/batman-adv/bat_iv_ogm.c nla_put_u8(msg, BATADV_ATTR_TQ, router_ifinfo->bat_iv.tq_avg) || msg 2676 net/batman-adv/bat_iv_ogm.c nla_put(msg, BATADV_ATTR_ROUTER, ETH_ALEN, msg 2678 net/batman-adv/bat_iv_ogm.c nla_put_string(msg, BATADV_ATTR_HARD_IFNAME, msg 2680 net/batman-adv/bat_iv_ogm.c nla_put_u32(msg, BATADV_ATTR_BANDWIDTH_DOWN, msg 2682 net/batman-adv/bat_iv_ogm.c nla_put_u32(msg, BATADV_ATTR_BANDWIDTH_UP, msg 2684 net/batman-adv/bat_iv_ogm.c genlmsg_cancel(msg, hdr); msg 2688 net/batman-adv/bat_iv_ogm.c genlmsg_end(msg, hdr); msg 2707 net/batman-adv/bat_iv_ogm.c static void batadv_iv_gw_dump(struct sk_buff *msg, struct netlink_callback *cb, msg 2722 net/batman-adv/bat_iv_ogm.c if (batadv_iv_gw_dump_entry(msg, portid, cb, bat_priv, msg 218 net/batman-adv/bat_v.c batadv_v_neigh_dump_neigh(struct sk_buff *msg, u32 portid, u32 seq, msg 229 net/batman-adv/bat_v.c hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, NLM_F_MULTI, msg 234 net/batman-adv/bat_v.c if (nla_put(msg, BATADV_ATTR_NEIGH_ADDRESS, ETH_ALEN, msg 236 net/batman-adv/bat_v.c nla_put_u32(msg, BATADV_ATTR_HARD_IFINDEX, msg 238 net/batman-adv/bat_v.c nla_put_u32(msg, BATADV_ATTR_LAST_SEEN_MSECS, msg 240 net/batman-adv/bat_v.c nla_put_u32(msg, BATADV_ATTR_THROUGHPUT, throughput)) msg 243 net/batman-adv/bat_v.c genlmsg_end(msg, hdr); msg 247 net/batman-adv/bat_v.c genlmsg_cancel(msg, hdr); msg 266 net/batman-adv/bat_v.c batadv_v_neigh_dump_hardif(struct sk_buff *msg, u32 portid, u32 seq, msg 279 net/batman-adv/bat_v.c if (batadv_v_neigh_dump_neigh(msg, portid, seq, hardif_neigh)) { msg 298 net/batman-adv/bat_v.c batadv_v_neigh_dump(struct sk_buff *msg, struct netlink_callback *cb, msg 311 net/batman-adv/bat_v.c if (batadv_v_neigh_dump_hardif(msg, portid, msg 325 net/batman-adv/bat_v.c if (batadv_v_neigh_dump_hardif(msg, portid, msg 423 net/batman-adv/bat_v.c batadv_v_orig_dump_subentry(struct sk_buff *msg, u32 portid, u32 seq, msg 449 net/batman-adv/bat_v.c hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, NLM_F_MULTI, msg 454 net/batman-adv/bat_v.c if (nla_put(msg, BATADV_ATTR_ORIG_ADDRESS, ETH_ALEN, orig_node->orig) || msg 455 net/batman-adv/bat_v.c nla_put(msg, BATADV_ATTR_NEIGH_ADDRESS, ETH_ALEN, msg 457 net/batman-adv/bat_v.c nla_put_u32(msg, BATADV_ATTR_HARD_IFINDEX, msg 459 net/batman-adv/bat_v.c nla_put_u32(msg, BATADV_ATTR_THROUGHPUT, throughput) || msg 460 net/batman-adv/bat_v.c nla_put_u32(msg, BATADV_ATTR_LAST_SEEN_MSECS, msg 464 net/batman-adv/bat_v.c if (best && nla_put_flag(msg, BATADV_ATTR_FLAG_BEST)) msg 467 net/batman-adv/bat_v.c genlmsg_end(msg, hdr); msg 471 net/batman-adv/bat_v.c genlmsg_cancel(msg, hdr); msg 490 net/batman-adv/bat_v.c batadv_v_orig_dump_entry(struct sk_buff *msg, u32 portid, u32 seq, msg 510 net/batman-adv/bat_v.c if (batadv_v_orig_dump_subentry(msg, portid, seq, bat_priv, msg 542 net/batman-adv/bat_v.c batadv_v_orig_dump_bucket(struct sk_buff *msg, u32 portid, u32 seq, msg 555 net/batman-adv/bat_v.c if (batadv_v_orig_dump_entry(msg, portid, seq, bat_priv, msg 577 net/batman-adv/bat_v.c batadv_v_orig_dump(struct sk_buff *msg, struct netlink_callback *cb, msg 591 net/batman-adv/bat_v.c if (batadv_v_orig_dump_bucket(msg, portid, msg 914 net/batman-adv/bat_v.c static int batadv_v_gw_dump_entry(struct sk_buff *msg, u32 portid, msg 935 net/batman-adv/bat_v.c hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq, msg 948 net/batman-adv/bat_v.c if (nla_put_flag(msg, BATADV_ATTR_FLAG_BEST)) { msg 949 net/batman-adv/bat_v.c genlmsg_cancel(msg, hdr); msg 954 net/batman-adv/bat_v.c if (nla_put(msg, BATADV_ATTR_ORIG_ADDRESS, ETH_ALEN, msg 956 net/batman-adv/bat_v.c genlmsg_cancel(msg, hdr); msg 960 net/batman-adv/bat_v.c if (nla_put_u32(msg, BATADV_ATTR_THROUGHPUT, msg 962 net/batman-adv/bat_v.c genlmsg_cancel(msg, hdr); msg 966 net/batman-adv/bat_v.c if (nla_put(msg, BATADV_ATTR_ROUTER, ETH_ALEN, router->addr)) { msg 967 net/batman-adv/bat_v.c genlmsg_cancel(msg, hdr); msg 971 net/batman-adv/bat_v.c if (nla_put_string(msg, BATADV_ATTR_HARD_IFNAME, msg 973 net/batman-adv/bat_v.c genlmsg_cancel(msg, hdr); msg 977 net/batman-adv/bat_v.c if (nla_put_u32(msg, BATADV_ATTR_BANDWIDTH_DOWN, msg 979 net/batman-adv/bat_v.c genlmsg_cancel(msg, hdr); msg 983 net/batman-adv/bat_v.c if (nla_put_u32(msg, BATADV_ATTR_BANDWIDTH_UP, gw_node->bandwidth_up)) { msg 984 net/batman-adv/bat_v.c genlmsg_cancel(msg, hdr); msg 988 net/batman-adv/bat_v.c genlmsg_end(msg, hdr); msg 1007 net/batman-adv/bat_v.c static void batadv_v_gw_dump(struct sk_buff *msg, struct netlink_callback *cb, msg 1022 net/batman-adv/bat_v.c if (batadv_v_gw_dump_entry(msg, portid, cb, bat_priv, msg 2101 net/batman-adv/bridge_loop_avoidance.c batadv_bla_claim_dump_entry(struct sk_buff *msg, u32 portid, msg 2112 net/batman-adv/bridge_loop_avoidance.c hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq, msg 2130 net/batman-adv/bridge_loop_avoidance.c if (nla_put_flag(msg, BATADV_ATTR_BLA_OWN)) { msg 2131 net/batman-adv/bridge_loop_avoidance.c genlmsg_cancel(msg, hdr); msg 2135 net/batman-adv/bridge_loop_avoidance.c if (nla_put(msg, BATADV_ATTR_BLA_ADDRESS, ETH_ALEN, claim->addr) || msg 2136 net/batman-adv/bridge_loop_avoidance.c nla_put_u16(msg, BATADV_ATTR_BLA_VID, claim->vid) || msg 2137 net/batman-adv/bridge_loop_avoidance.c nla_put(msg, BATADV_ATTR_BLA_BACKBONE, ETH_ALEN, msg 2139 net/batman-adv/bridge_loop_avoidance.c nla_put_u16(msg, BATADV_ATTR_BLA_CRC, msg 2141 net/batman-adv/bridge_loop_avoidance.c genlmsg_cancel(msg, hdr); msg 2145 net/batman-adv/bridge_loop_avoidance.c genlmsg_end(msg, hdr); msg 2166 net/batman-adv/bridge_loop_avoidance.c batadv_bla_claim_dump_bucket(struct sk_buff *msg, u32 portid, msg 2183 net/batman-adv/bridge_loop_avoidance.c ret = batadv_bla_claim_dump_entry(msg, portid, cb, msg 2204 net/batman-adv/bridge_loop_avoidance.c int batadv_bla_claim_dump(struct sk_buff *msg, struct netlink_callback *cb) msg 2238 net/batman-adv/bridge_loop_avoidance.c if (batadv_bla_claim_dump_bucket(msg, portid, cb, primary_if, msg 2247 net/batman-adv/bridge_loop_avoidance.c ret = msg->len; msg 2337 net/batman-adv/bridge_loop_avoidance.c batadv_bla_backbone_dump_entry(struct sk_buff *msg, u32 portid, msg 2349 net/batman-adv/bridge_loop_avoidance.c hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq, msg 2368 net/batman-adv/bridge_loop_avoidance.c if (nla_put_flag(msg, BATADV_ATTR_BLA_OWN)) { msg 2369 net/batman-adv/bridge_loop_avoidance.c genlmsg_cancel(msg, hdr); msg 2373 net/batman-adv/bridge_loop_avoidance.c if (nla_put(msg, BATADV_ATTR_BLA_BACKBONE, ETH_ALEN, msg 2375 net/batman-adv/bridge_loop_avoidance.c nla_put_u16(msg, BATADV_ATTR_BLA_VID, backbone_gw->vid) || msg 2376 net/batman-adv/bridge_loop_avoidance.c nla_put_u16(msg, BATADV_ATTR_BLA_CRC, msg 2378 net/batman-adv/bridge_loop_avoidance.c nla_put_u32(msg, BATADV_ATTR_LAST_SEEN_MSECS, msecs)) { msg 2379 net/batman-adv/bridge_loop_avoidance.c genlmsg_cancel(msg, hdr); msg 2383 net/batman-adv/bridge_loop_avoidance.c genlmsg_end(msg, hdr); msg 2404 net/batman-adv/bridge_loop_avoidance.c batadv_bla_backbone_dump_bucket(struct sk_buff *msg, u32 portid, msg 2421 net/batman-adv/bridge_loop_avoidance.c ret = batadv_bla_backbone_dump_entry(msg, portid, cb, msg 2442 net/batman-adv/bridge_loop_avoidance.c int batadv_bla_backbone_dump(struct sk_buff *msg, struct netlink_callback *cb) msg 2476 net/batman-adv/bridge_loop_avoidance.c if (batadv_bla_backbone_dump_bucket(msg, portid, cb, primary_if, msg 2485 net/batman-adv/bridge_loop_avoidance.c ret = msg->len; msg 45 net/batman-adv/bridge_loop_avoidance.h int batadv_bla_claim_dump(struct sk_buff *msg, struct netlink_callback *cb); msg 48 net/batman-adv/bridge_loop_avoidance.h int batadv_bla_backbone_dump(struct sk_buff *msg, struct netlink_callback *cb); msg 59 net/batman-adv/bridge_loop_avoidance.h int batadv_bla_claim_dump(struct sk_buff *msg, struct netlink_callback *cb); msg 128 net/batman-adv/bridge_loop_avoidance.h static inline int batadv_bla_claim_dump(struct sk_buff *msg, msg 134 net/batman-adv/bridge_loop_avoidance.h static inline int batadv_bla_backbone_dump(struct sk_buff *msg, msg 422 net/batman-adv/distributed-arp-table.c int hdr_size, char *msg) msg 429 net/batman-adv/distributed-arp-table.c if (msg) msg 430 net/batman-adv/distributed-arp-table.c batadv_dbg(BATADV_DBG_DAT, bat_priv, "%s\n", msg); msg 489 net/batman-adv/distributed-arp-table.c int hdr_size, char *msg) msg 908 net/batman-adv/distributed-arp-table.c batadv_dat_cache_dump_entry(struct sk_buff *msg, u32 portid, msg 915 net/batman-adv/distributed-arp-table.c hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq, msg 925 net/batman-adv/distributed-arp-table.c if (nla_put_in_addr(msg, BATADV_ATTR_DAT_CACHE_IP4ADDRESS, msg 927 net/batman-adv/distributed-arp-table.c nla_put(msg, BATADV_ATTR_DAT_CACHE_HWADDRESS, ETH_ALEN, msg 929 net/batman-adv/distributed-arp-table.c nla_put_u16(msg, BATADV_ATTR_DAT_CACHE_VID, dat_entry->vid) || msg 930 net/batman-adv/distributed-arp-table.c nla_put_u32(msg, BATADV_ATTR_LAST_SEEN_MSECS, msecs)) { msg 931 net/batman-adv/distributed-arp-table.c genlmsg_cancel(msg, hdr); msg 935 net/batman-adv/distributed-arp-table.c genlmsg_end(msg, hdr); msg 952 net/batman-adv/distributed-arp-table.c batadv_dat_cache_dump_bucket(struct sk_buff *msg, u32 portid, msg 967 net/batman-adv/distributed-arp-table.c if (batadv_dat_cache_dump_entry(msg, portid, cb, dat_entry)) { msg 989 net/batman-adv/distributed-arp-table.c int batadv_dat_cache_dump(struct sk_buff *msg, struct netlink_callback *cb) msg 1023 net/batman-adv/distributed-arp-table.c if (batadv_dat_cache_dump_bucket(msg, portid, cb, hash, bucket, msg 1034 net/batman-adv/distributed-arp-table.c ret = msg->len; msg 78 net/batman-adv/distributed-arp-table.h int batadv_dat_cache_dump(struct sk_buff *msg, struct netlink_callback *cb); msg 181 net/batman-adv/distributed-arp-table.h batadv_dat_cache_dump(struct sk_buff *msg, struct netlink_callback *cb) msg 559 net/batman-adv/gateway_client.c int batadv_gw_dump(struct sk_buff *msg, struct netlink_callback *cb) msg 592 net/batman-adv/gateway_client.c bat_priv->algo_ops->gw.dump(msg, cb, bat_priv); msg 594 net/batman-adv/gateway_client.c ret = msg->len; msg 35 net/batman-adv/gateway_client.h int batadv_gw_dump(struct sk_buff *msg, struct netlink_callback *cb); msg 2167 net/batman-adv/multicast.c int batadv_mcast_mesh_info_put(struct sk_buff *msg, msg 2186 net/batman-adv/multicast.c if (nla_put_u32(msg, BATADV_ATTR_MCAST_FLAGS, flags) || msg 2187 net/batman-adv/multicast.c nla_put_u32(msg, BATADV_ATTR_MCAST_FLAGS_PRIV, flags_priv)) msg 2204 net/batman-adv/multicast.c batadv_mcast_flags_dump_entry(struct sk_buff *msg, u32 portid, msg 2210 net/batman-adv/multicast.c hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq, msg 2218 net/batman-adv/multicast.c if (nla_put(msg, BATADV_ATTR_ORIG_ADDRESS, ETH_ALEN, msg 2220 net/batman-adv/multicast.c genlmsg_cancel(msg, hdr); msg 2226 net/batman-adv/multicast.c if (nla_put_u32(msg, BATADV_ATTR_MCAST_FLAGS, msg 2228 net/batman-adv/multicast.c genlmsg_cancel(msg, hdr); msg 2233 net/batman-adv/multicast.c genlmsg_end(msg, hdr); msg 2250 net/batman-adv/multicast.c batadv_mcast_flags_dump_bucket(struct sk_buff *msg, u32 portid, msg 2269 net/batman-adv/multicast.c if (batadv_mcast_flags_dump_entry(msg, portid, cb, orig_node)) { msg 2296 net/batman-adv/multicast.c __batadv_mcast_flags_dump(struct sk_buff *msg, u32 portid, msg 2305 net/batman-adv/multicast.c if (batadv_mcast_flags_dump_bucket(msg, portid, cb, hash, msg 2316 net/batman-adv/multicast.c return msg->len; msg 2375 net/batman-adv/multicast.c int batadv_mcast_flags_dump(struct sk_buff *msg, struct netlink_callback *cb) msg 2389 net/batman-adv/multicast.c ret = __batadv_mcast_flags_dump(msg, portid, cb, bat_priv, bucket, idx); msg 56 net/batman-adv/multicast.h int batadv_mcast_mesh_info_put(struct sk_buff *msg, msg 59 net/batman-adv/multicast.h int batadv_mcast_flags_dump(struct sk_buff *msg, struct netlink_callback *cb); msg 88 net/batman-adv/multicast.h batadv_mcast_mesh_info_put(struct sk_buff *msg, struct batadv_priv *bat_priv) msg 93 net/batman-adv/multicast.h static inline int batadv_mcast_flags_dump(struct sk_buff *msg, msg 177 net/batman-adv/netlink.c static int batadv_netlink_mesh_fill_ap_isolation(struct sk_buff *msg, msg 190 net/batman-adv/netlink.c return nla_put_u8(msg, BATADV_ATTR_AP_ISOLATION_ENABLED, msg 227 net/batman-adv/netlink.c static int batadv_netlink_mesh_fill(struct sk_buff *msg, msg 237 net/batman-adv/netlink.c hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, flags, cmd); msg 241 net/batman-adv/netlink.c if (nla_put_string(msg, BATADV_ATTR_VERSION, BATADV_SOURCE_VERSION) || msg 242 net/batman-adv/netlink.c nla_put_string(msg, BATADV_ATTR_ALGO_NAME, msg 244 net/batman-adv/netlink.c nla_put_u32(msg, BATADV_ATTR_MESH_IFINDEX, soft_iface->ifindex) || msg 245 net/batman-adv/netlink.c nla_put_string(msg, BATADV_ATTR_MESH_IFNAME, soft_iface->name) || msg 246 net/batman-adv/netlink.c nla_put(msg, BATADV_ATTR_MESH_ADDRESS, ETH_ALEN, msg 248 net/batman-adv/netlink.c nla_put_u8(msg, BATADV_ATTR_TT_TTVN, msg 253 net/batman-adv/netlink.c if (nla_put_u16(msg, BATADV_ATTR_BLA_CRC, msg 258 net/batman-adv/netlink.c if (batadv_mcast_mesh_info_put(msg, bat_priv)) msg 265 net/batman-adv/netlink.c if (nla_put_u32(msg, BATADV_ATTR_HARD_IFINDEX, msg 267 net/batman-adv/netlink.c nla_put_string(msg, BATADV_ATTR_HARD_IFNAME, msg 269 net/batman-adv/netlink.c nla_put(msg, BATADV_ATTR_HARD_ADDRESS, ETH_ALEN, msg 274 net/batman-adv/netlink.c if (nla_put_u8(msg, BATADV_ATTR_AGGREGATED_OGMS_ENABLED, msg 278 net/batman-adv/netlink.c if (batadv_netlink_mesh_fill_ap_isolation(msg, bat_priv)) msg 281 net/batman-adv/netlink.c if (nla_put_u32(msg, BATADV_ATTR_ISOLATION_MARK, msg 285 net/batman-adv/netlink.c if (nla_put_u32(msg, BATADV_ATTR_ISOLATION_MASK, msg 289 net/batman-adv/netlink.c if (nla_put_u8(msg, BATADV_ATTR_BONDING_ENABLED, msg 294 net/batman-adv/netlink.c if (nla_put_u8(msg, BATADV_ATTR_BRIDGE_LOOP_AVOIDANCE_ENABLED, msg 300 net/batman-adv/netlink.c if (nla_put_u8(msg, BATADV_ATTR_DISTRIBUTED_ARP_TABLE_ENABLED, msg 305 net/batman-adv/netlink.c if (nla_put_u8(msg, BATADV_ATTR_FRAGMENTATION_ENABLED, msg 309 net/batman-adv/netlink.c if (nla_put_u32(msg, BATADV_ATTR_GW_BANDWIDTH_DOWN, msg 313 net/batman-adv/netlink.c if (nla_put_u32(msg, BATADV_ATTR_GW_BANDWIDTH_UP, msg 317 net/batman-adv/netlink.c if (nla_put_u8(msg, BATADV_ATTR_GW_MODE, msg 326 net/batman-adv/netlink.c if (nla_put_u32(msg, BATADV_ATTR_GW_SEL_CLASS, msg 331 net/batman-adv/netlink.c if (nla_put_u8(msg, BATADV_ATTR_HOP_PENALTY, msg 336 net/batman-adv/netlink.c if (nla_put_u32(msg, BATADV_ATTR_LOG_LEVEL, msg 342 net/batman-adv/netlink.c if (nla_put_u8(msg, BATADV_ATTR_MULTICAST_FORCEFLOOD_ENABLED, msg 346 net/batman-adv/netlink.c if (nla_put_u32(msg, BATADV_ATTR_MULTICAST_FANOUT, msg 352 net/batman-adv/netlink.c if (nla_put_u8(msg, BATADV_ATTR_NETWORK_CODING_ENABLED, msg 357 net/batman-adv/netlink.c if (nla_put_u32(msg, BATADV_ATTR_ORIG_INTERVAL, msg 364 net/batman-adv/netlink.c genlmsg_end(msg, hdr); msg 371 net/batman-adv/netlink.c genlmsg_cancel(msg, hdr); msg 383 net/batman-adv/netlink.c struct sk_buff *msg; msg 386 net/batman-adv/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 387 net/batman-adv/netlink.c if (!msg) msg 390 net/batman-adv/netlink.c ret = batadv_netlink_mesh_fill(msg, bat_priv, BATADV_CMD_SET_MESH, msg 393 net/batman-adv/netlink.c nlmsg_free(msg); msg 398 net/batman-adv/netlink.c dev_net(bat_priv->soft_iface), msg, 0, msg 414 net/batman-adv/netlink.c struct sk_buff *msg; msg 417 net/batman-adv/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 418 net/batman-adv/netlink.c if (!msg) msg 421 net/batman-adv/netlink.c ret = batadv_netlink_mesh_fill(msg, bat_priv, BATADV_CMD_GET_MESH, msg 424 net/batman-adv/netlink.c nlmsg_free(msg); msg 428 net/batman-adv/netlink.c ret = genlmsg_reply(msg, info); msg 630 net/batman-adv/netlink.c batadv_netlink_tp_meter_put(struct sk_buff *msg, u32 cookie) msg 632 net/batman-adv/netlink.c if (nla_put_u32(msg, BATADV_ATTR_TPMETER_COOKIE, cookie)) msg 653 net/batman-adv/netlink.c struct sk_buff *msg; msg 657 net/batman-adv/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 658 net/batman-adv/netlink.c if (!msg) msg 661 net/batman-adv/netlink.c hdr = genlmsg_put(msg, 0, 0, &batadv_netlink_family, 0, msg 668 net/batman-adv/netlink.c if (nla_put_u32(msg, BATADV_ATTR_TPMETER_COOKIE, cookie)) msg 671 net/batman-adv/netlink.c if (nla_put_u32(msg, BATADV_ATTR_TPMETER_TEST_TIME, test_time)) msg 674 net/batman-adv/netlink.c if (nla_put_u64_64bit(msg, BATADV_ATTR_TPMETER_BYTES, total_bytes, msg 678 net/batman-adv/netlink.c if (nla_put_u8(msg, BATADV_ATTR_TPMETER_RESULT, result)) msg 681 net/batman-adv/netlink.c if (nla_put(msg, BATADV_ATTR_ORIG_ADDRESS, ETH_ALEN, dst)) msg 684 net/batman-adv/netlink.c genlmsg_end(msg, hdr); msg 687 net/batman-adv/netlink.c dev_net(bat_priv->soft_iface), msg, 0, msg 693 net/batman-adv/netlink.c genlmsg_cancel(msg, hdr); msg 697 net/batman-adv/netlink.c nlmsg_free(msg); msg 712 net/batman-adv/netlink.c struct sk_buff *msg = NULL; msg 729 net/batman-adv/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 730 net/batman-adv/netlink.c if (!msg) { msg 735 net/batman-adv/netlink.c msg_head = genlmsg_put(msg, info->snd_portid, info->snd_seq, msg 745 net/batman-adv/netlink.c ret = batadv_netlink_tp_meter_put(msg, cookie); msg 749 net/batman-adv/netlink.c if (msg) msg 750 net/batman-adv/netlink.c nlmsg_free(msg); msg 754 net/batman-adv/netlink.c genlmsg_end(msg, msg_head); msg 755 net/batman-adv/netlink.c return genlmsg_reply(msg, info); msg 795 net/batman-adv/netlink.c static int batadv_netlink_hardif_fill(struct sk_buff *msg, msg 805 net/batman-adv/netlink.c hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, flags, cmd); msg 812 net/batman-adv/netlink.c if (nla_put_u32(msg, BATADV_ATTR_MESH_IFINDEX, msg 816 net/batman-adv/netlink.c if (nla_put_u32(msg, BATADV_ATTR_HARD_IFINDEX, msg 818 net/batman-adv/netlink.c nla_put_string(msg, BATADV_ATTR_HARD_IFNAME, msg 820 net/batman-adv/netlink.c nla_put(msg, BATADV_ATTR_HARD_ADDRESS, ETH_ALEN, msg 825 net/batman-adv/netlink.c if (nla_put_flag(msg, BATADV_ATTR_ACTIVE)) msg 830 net/batman-adv/netlink.c if (nla_put_u32(msg, BATADV_ATTR_ELP_INTERVAL, msg 834 net/batman-adv/netlink.c if (nla_put_u32(msg, BATADV_ATTR_THROUGHPUT_OVERRIDE, msg 839 net/batman-adv/netlink.c genlmsg_end(msg, hdr); msg 843 net/batman-adv/netlink.c genlmsg_cancel(msg, hdr); msg 857 net/batman-adv/netlink.c struct sk_buff *msg; msg 860 net/batman-adv/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 861 net/batman-adv/netlink.c if (!msg) msg 864 net/batman-adv/netlink.c ret = batadv_netlink_hardif_fill(msg, bat_priv, hard_iface, msg 867 net/batman-adv/netlink.c nlmsg_free(msg); msg 872 net/batman-adv/netlink.c dev_net(bat_priv->soft_iface), msg, 0, msg 890 net/batman-adv/netlink.c struct sk_buff *msg; msg 893 net/batman-adv/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 894 net/batman-adv/netlink.c if (!msg) msg 897 net/batman-adv/netlink.c ret = batadv_netlink_hardif_fill(msg, bat_priv, hard_iface, msg 902 net/batman-adv/netlink.c nlmsg_free(msg); msg 906 net/batman-adv/netlink.c ret = genlmsg_reply(msg, info); msg 954 net/batman-adv/netlink.c batadv_netlink_dump_hardif(struct sk_buff *msg, struct netlink_callback *cb) msg 991 net/batman-adv/netlink.c if (batadv_netlink_hardif_fill(msg, bat_priv, hard_iface, msg 1006 net/batman-adv/netlink.c return msg->len; msg 1021 net/batman-adv/netlink.c static int batadv_netlink_vlan_fill(struct sk_buff *msg, msg 1029 net/batman-adv/netlink.c hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, flags, cmd); msg 1033 net/batman-adv/netlink.c if (nla_put_u32(msg, BATADV_ATTR_MESH_IFINDEX, msg 1037 net/batman-adv/netlink.c if (nla_put_u32(msg, BATADV_ATTR_VLANID, vlan->vid & VLAN_VID_MASK)) msg 1040 net/batman-adv/netlink.c if (nla_put_u8(msg, BATADV_ATTR_AP_ISOLATION_ENABLED, msg 1044 net/batman-adv/netlink.c genlmsg_end(msg, hdr); msg 1048 net/batman-adv/netlink.c genlmsg_cancel(msg, hdr); msg 1062 net/batman-adv/netlink.c struct sk_buff *msg; msg 1065 net/batman-adv/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 1066 net/batman-adv/netlink.c if (!msg) msg 1069 net/batman-adv/netlink.c ret = batadv_netlink_vlan_fill(msg, bat_priv, vlan, msg 1072 net/batman-adv/netlink.c nlmsg_free(msg); msg 1077 net/batman-adv/netlink.c dev_net(bat_priv->soft_iface), msg, 0, msg 1094 net/batman-adv/netlink.c struct sk_buff *msg; msg 1097 net/batman-adv/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 1098 net/batman-adv/netlink.c if (!msg) msg 1101 net/batman-adv/netlink.c ret = batadv_netlink_vlan_fill(msg, bat_priv, vlan, BATADV_CMD_GET_VLAN, msg 1104 net/batman-adv/netlink.c nlmsg_free(msg); msg 1108 net/batman-adv/netlink.c ret = genlmsg_reply(msg, info); msg 780 net/batman-adv/originator.c int batadv_hardif_neigh_dump(struct sk_buff *msg, struct netlink_callback *cb) msg 832 net/batman-adv/originator.c bat_priv->algo_ops->neigh.dump(msg, cb, bat_priv, hardif); msg 834 net/batman-adv/originator.c ret = msg->len; msg 1477 net/batman-adv/originator.c int batadv_orig_dump(struct sk_buff *msg, struct netlink_callback *cb) msg 1529 net/batman-adv/originator.c bat_priv->algo_ops->orig.dump(msg, cb, bat_priv, hardif); msg 1531 net/batman-adv/originator.c ret = msg->len; msg 48 net/batman-adv/originator.h int batadv_hardif_neigh_dump(struct sk_buff *msg, struct netlink_callback *cb); msg 60 net/batman-adv/originator.h int batadv_orig_dump(struct sk_buff *msg, struct netlink_callback *cb); msg 44 net/batman-adv/trace.h __dynamic_array(char, msg, BATADV_MAX_MSG_LEN) msg 50 net/batman-adv/trace.h WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg), msg 60 net/batman-adv/trace.h __get_str(msg) msg 1154 net/batman-adv/translation-table.c batadv_tt_local_dump_entry(struct sk_buff *msg, u32 portid, msg 1176 net/batman-adv/translation-table.c hdr = genlmsg_put(msg, portid, cb->nlh->nlmsg_seq, msg 1184 net/batman-adv/translation-table.c if (nla_put(msg, BATADV_ATTR_TT_ADDRESS, ETH_ALEN, common->addr) || msg 1185 net/batman-adv/translation-table.c nla_put_u32(msg, BATADV_ATTR_TT_CRC32, crc) || msg 1186 net/batman-adv/translation-table.c nla_put_u16(msg, BATADV_ATTR_TT_VID, common->vid) || msg 1187 net/batman-adv/translation-table.c nla_put_u32(msg, BATADV_ATTR_TT_FLAGS, common->flags)) msg 1191 net/batman-adv/translation-table.c nla_put_u32(msg, BATADV_ATTR_LAST_SEEN_MSECS, last_seen_msecs)) msg 1194 net/batman-adv/translation-table.c genlmsg_end(msg, hdr); msg 1198 net/batman-adv/translation-table.c genlmsg_cancel(msg, hdr); msg 1215 net/batman-adv/translation-table.c batadv_tt_local_dump_bucket(struct sk_buff *msg, u32 portid, msg 1231 net/batman-adv/translation-table.c if (batadv_tt_local_dump_entry(msg, portid, cb, bat_priv, msg 1251 net/batman-adv/translation-table.c int batadv_tt_local_dump(struct sk_buff *msg, struct netlink_callback *cb) msg 1285 net/batman-adv/translation-table.c if (batadv_tt_local_dump_bucket(msg, portid, cb, bat_priv, msg 1292 net/batman-adv/translation-table.c ret = msg->len; msg 2027 net/batman-adv/translation-table.c batadv_tt_global_dump_subentry(struct sk_buff *msg, u32 portid, u32 seq, msg 2047 net/batman-adv/translation-table.c hdr = genlmsg_put(msg, portid, seq, &batadv_netlink_family, msg 2055 net/batman-adv/translation-table.c if (nla_put(msg, BATADV_ATTR_TT_ADDRESS, ETH_ALEN, common->addr) || msg 2056 net/batman-adv/translation-table.c nla_put(msg, BATADV_ATTR_ORIG_ADDRESS, ETH_ALEN, msg 2058 net/batman-adv/translation-table.c nla_put_u8(msg, BATADV_ATTR_TT_TTVN, orig->ttvn) || msg 2059 net/batman-adv/translation-table.c nla_put_u8(msg, BATADV_ATTR_TT_LAST_TTVN, last_ttvn) || msg 2060 net/batman-adv/translation-table.c nla_put_u32(msg, BATADV_ATTR_TT_CRC32, crc) || msg 2061 net/batman-adv/translation-table.c nla_put_u16(msg, BATADV_ATTR_TT_VID, common->vid) || msg 2062 net/batman-adv/translation-table.c nla_put_u32(msg, BATADV_ATTR_TT_FLAGS, flags)) msg 2065 net/batman-adv/translation-table.c if (best && nla_put_flag(msg, BATADV_ATTR_FLAG_BEST)) msg 2068 net/batman-adv/translation-table.c genlmsg_end(msg, hdr); msg 2072 net/batman-adv/translation-table.c genlmsg_cancel(msg, hdr); msg 2090 net/batman-adv/translation-table.c batadv_tt_global_dump_entry(struct sk_buff *msg, u32 portid, u32 seq, msg 2110 net/batman-adv/translation-table.c if (batadv_tt_global_dump_subentry(msg, portid, seq, common, msg 2134 net/batman-adv/translation-table.c batadv_tt_global_dump_bucket(struct sk_buff *msg, u32 portid, u32 seq, msg 2146 net/batman-adv/translation-table.c if (batadv_tt_global_dump_entry(msg, portid, seq, bat_priv, msg 2167 net/batman-adv/translation-table.c int batadv_tt_global_dump(struct sk_buff *msg, struct netlink_callback *cb) msg 2205 net/batman-adv/translation-table.c if (batadv_tt_global_dump_bucket(msg, portid, msg 2213 net/batman-adv/translation-table.c ret = msg->len; msg 2475 net/batman-adv/translation-table.c char **msg) msg 2484 net/batman-adv/translation-table.c *msg = "Roaming timeout\n"; msg 2490 net/batman-adv/translation-table.c *msg = "Temporary client timeout\n"; msg 2503 net/batman-adv/translation-table.c char *msg = NULL; msg 2518 net/batman-adv/translation-table.c if (!batadv_tt_global_to_purge(tt_global, &msg)) msg 2525 net/batman-adv/translation-table.c msg); msg 26 net/batman-adv/translation-table.h int batadv_tt_local_dump(struct sk_buff *msg, struct netlink_callback *cb); msg 27 net/batman-adv/translation-table.h int batadv_tt_global_dump(struct sk_buff *msg, struct netlink_callback *cb); msg 2240 net/batman-adv/types.h void (*dump)(struct sk_buff *msg, struct netlink_callback *cb, msg 2256 net/batman-adv/types.h void (*dump)(struct sk_buff *msg, struct netlink_callback *cb, msg 2299 net/batman-adv/types.h void (*dump)(struct sk_buff *msg, struct netlink_callback *cb, msg 459 net/bluetooth/6lowpan.c struct msghdr msg; msg 471 net/bluetooth/6lowpan.c memset(&msg, 0, sizeof(msg)); msg 472 net/bluetooth/6lowpan.c iov_iter_kvec(&msg.msg_iter, WRITE, &iv, 1, skb->len); msg 474 net/bluetooth/6lowpan.c err = l2cap_chan_send(chan, &msg, skb->len); msg 48 net/bluetooth/a2mp.c struct msghdr msg; msg 57 net/bluetooth/a2mp.c memset(&msg, 0, sizeof(msg)); msg 59 net/bluetooth/a2mp.c iov_iter_kvec(&msg.msg_iter, WRITE, &iv, 1, total_len); msg 61 net/bluetooth/a2mp.c l2cap_chan_send(chan, &msg, total_len); msg 251 net/bluetooth/af_bluetooth.c int bt_sock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, msg 277 net/bluetooth/af_bluetooth.c msg->msg_flags |= MSG_TRUNC; msg 282 net/bluetooth/af_bluetooth.c err = skb_copy_datagram_msg(skb, 0, msg, copied); msg 284 net/bluetooth/af_bluetooth.c sock_recv_ts_and_drops(msg, sk, skb); msg 286 net/bluetooth/af_bluetooth.c if (msg->msg_name && bt_sk(sk)->skb_msg_name) msg 287 net/bluetooth/af_bluetooth.c bt_sk(sk)->skb_msg_name(skb, msg->msg_name, msg 288 net/bluetooth/af_bluetooth.c &msg->msg_namelen); msg 329 net/bluetooth/af_bluetooth.c int bt_sock_stream_recvmsg(struct socket *sock, struct msghdr *msg, msg 376 net/bluetooth/af_bluetooth.c if (skb_copy_datagram_msg(skb, 0, msg, chunk)) { msg 385 net/bluetooth/af_bluetooth.c sock_recv_ts_and_drops(msg, sk, skb); msg 155 net/bluetooth/bnep/bnep.h struct msghdr msg; msg 76 net/bluetooth/bnep/core.c return kernel_sendmsg(sock, &s->msg, &iv, 1, len); msg 465 net/bluetooth/bnep/core.c len = kernel_sendmsg(sock, &s->msg, iv, il, len); msg 605 net/bluetooth/bnep/core.c s->msg.msg_flags = MSG_NOSIGNAL; msg 197 net/bluetooth/cmtp/core.c struct msghdr msg; msg 204 net/bluetooth/cmtp/core.c memset(&msg, 0, sizeof(msg)); msg 206 net/bluetooth/cmtp/core.c return kernel_sendmsg(sock, &msg, &iv, 1, len); msg 1375 net/bluetooth/hci_sock.c static void hci_sock_cmsg(struct sock *sk, struct msghdr *msg, msg 1382 net/bluetooth/hci_sock.c put_cmsg(msg, SOL_HCI, HCI_CMSG_DIR, sizeof(incoming), msg 1400 net/bluetooth/hci_sock.c (msg->msg_flags & MSG_CMSG_COMPAT)) { msg 1408 net/bluetooth/hci_sock.c put_cmsg(msg, SOL_HCI, HCI_CMSG_TSTAMP, len, data); msg 1412 net/bluetooth/hci_sock.c static int hci_sock_recvmsg(struct socket *sock, struct msghdr *msg, msg 1439 net/bluetooth/hci_sock.c msg->msg_flags |= MSG_TRUNC; msg 1444 net/bluetooth/hci_sock.c err = skb_copy_datagram_msg(skb, 0, msg, copied); msg 1448 net/bluetooth/hci_sock.c hci_sock_cmsg(sk, msg, skb); msg 1452 net/bluetooth/hci_sock.c sock_recv_timestamp(msg, sk, skb); msg 1456 net/bluetooth/hci_sock.c sock_recv_timestamp(msg, sk, skb); msg 1469 net/bluetooth/hci_sock.c struct msghdr *msg, size_t msglen) msg 1489 net/bluetooth/hci_sock.c if (memcpy_from_msg(buf, msg, msglen)) { msg 1592 net/bluetooth/hci_sock.c static int hci_logging_frame(struct sock *sk, struct msghdr *msg, int len) msg 1607 net/bluetooth/hci_sock.c skb = bt_skb_send_alloc(sk, len, msg->msg_flags & MSG_DONTWAIT, &err); msg 1611 net/bluetooth/hci_sock.c if (memcpy_from_msg(skb_put(skb, len), msg, len)) { msg 1676 net/bluetooth/hci_sock.c static int hci_sock_sendmsg(struct socket *sock, struct msghdr *msg, msg 1687 net/bluetooth/hci_sock.c if (msg->msg_flags & MSG_OOB) msg 1690 net/bluetooth/hci_sock.c if (msg->msg_flags & ~(MSG_DONTWAIT|MSG_NOSIGNAL|MSG_ERRQUEUE| msg 1707 net/bluetooth/hci_sock.c err = hci_logging_frame(sk, msg, len); msg 1713 net/bluetooth/hci_sock.c err = hci_mgmt_cmd(chan, sk, msg, len); msg 1732 net/bluetooth/hci_sock.c skb = bt_skb_send_alloc(sk, len, msg->msg_flags & MSG_DONTWAIT, &err); msg 1736 net/bluetooth/hci_sock.c if (memcpy_from_msg(skb_put(skb, len), msg, len)) { msg 618 net/bluetooth/hidp/core.c struct msghdr msg; msg 625 net/bluetooth/hidp/core.c memset(&msg, 0, sizeof(msg)); msg 627 net/bluetooth/hidp/core.c return kernel_sendmsg(sock, &msg, &iv, 1, len); msg 2155 net/bluetooth/l2cap_core.c struct msghdr *msg, int len, msg 2162 net/bluetooth/l2cap_core.c if (!copy_from_iter_full(skb_put(skb, count), count, &msg->msg_iter)) msg 2176 net/bluetooth/l2cap_core.c msg->msg_flags & MSG_DONTWAIT); msg 2183 net/bluetooth/l2cap_core.c &msg->msg_iter)) msg 2199 net/bluetooth/l2cap_core.c struct msghdr *msg, size_t len) msg 2212 net/bluetooth/l2cap_core.c msg->msg_flags & MSG_DONTWAIT); msg 2222 net/bluetooth/l2cap_core.c err = l2cap_skbuff_fromiovec(chan, msg, len, count, skb); msg 2231 net/bluetooth/l2cap_core.c struct msghdr *msg, size_t len) msg 2243 net/bluetooth/l2cap_core.c msg->msg_flags & MSG_DONTWAIT); msg 2252 net/bluetooth/l2cap_core.c err = l2cap_skbuff_fromiovec(chan, msg, len, count, skb); msg 2261 net/bluetooth/l2cap_core.c struct msghdr *msg, size_t len, msg 2285 net/bluetooth/l2cap_core.c msg->msg_flags & MSG_DONTWAIT); msg 2303 net/bluetooth/l2cap_core.c err = l2cap_skbuff_fromiovec(chan, msg, len, count, skb); msg 2316 net/bluetooth/l2cap_core.c struct msghdr *msg, size_t len) msg 2323 net/bluetooth/l2cap_core.c BT_DBG("chan %p, msg %p, len %zu", chan, msg, len); msg 2356 net/bluetooth/l2cap_core.c skb = l2cap_create_iframe_pdu(chan, msg, pdu_len, sdu_len); msg 2382 net/bluetooth/l2cap_core.c struct msghdr *msg, msg 2403 net/bluetooth/l2cap_core.c msg->msg_flags & MSG_DONTWAIT); msg 2415 net/bluetooth/l2cap_core.c err = l2cap_skbuff_fromiovec(chan, msg, len, count, skb); msg 2426 net/bluetooth/l2cap_core.c struct msghdr *msg, size_t len) msg 2432 net/bluetooth/l2cap_core.c BT_DBG("chan %p, msg %p, len %zu", chan, msg, len); msg 2441 net/bluetooth/l2cap_core.c skb = l2cap_create_le_flowctl_pdu(chan, msg, pdu_len, sdu_len); msg 2476 net/bluetooth/l2cap_core.c int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len) msg 2487 net/bluetooth/l2cap_core.c skb = l2cap_create_connless_pdu(chan, msg, len); msg 2511 net/bluetooth/l2cap_core.c err = l2cap_segment_le_sdu(chan, &seg_queue, msg, len); msg 2538 net/bluetooth/l2cap_core.c skb = l2cap_create_basic_pdu(chan, msg, len); msg 2568 net/bluetooth/l2cap_core.c err = l2cap_segment_sdu(chan, &seg_queue, msg, len); msg 951 net/bluetooth/l2cap_sock.c static int l2cap_sock_sendmsg(struct socket *sock, struct msghdr *msg, msg 964 net/bluetooth/l2cap_sock.c if (msg->msg_flags & MSG_OOB) msg 971 net/bluetooth/l2cap_sock.c err = bt_sock_wait_ready(sk, msg->msg_flags); msg 977 net/bluetooth/l2cap_sock.c err = l2cap_chan_send(chan, msg, len); msg 983 net/bluetooth/l2cap_sock.c static int l2cap_sock_recvmsg(struct socket *sock, struct msghdr *msg, msg 1011 net/bluetooth/l2cap_sock.c err = bt_sock_stream_recvmsg(sock, msg, len, flags); msg 1013 net/bluetooth/l2cap_sock.c err = bt_sock_recvmsg(sock, msg, len, flags); msg 798 net/bluetooth/rfcomm/core.c struct msghdr msg; msg 802 net/bluetooth/rfcomm/core.c memset(&msg, 0, sizeof(msg)); msg 804 net/bluetooth/rfcomm/core.c return kernel_sendmsg(s->sock, &msg, &iv, 1, len); msg 1099 net/bluetooth/rfcomm/core.c struct msghdr msg; msg 1122 net/bluetooth/rfcomm/core.c memset(&msg, 0, sizeof(msg)); msg 1124 net/bluetooth/rfcomm/core.c return kernel_sendmsg(sock, &msg, iv, 3, 6 + len); msg 559 net/bluetooth/rfcomm/sock.c static int rfcomm_sock_sendmsg(struct socket *sock, struct msghdr *msg, msg 570 net/bluetooth/rfcomm/sock.c if (msg->msg_flags & MSG_OOB) msg 580 net/bluetooth/rfcomm/sock.c sent = bt_sock_wait_ready(sk, msg->msg_flags); msg 589 net/bluetooth/rfcomm/sock.c msg->msg_flags & MSG_DONTWAIT, &err); msg 597 net/bluetooth/rfcomm/sock.c err = memcpy_from_msg(skb_put(skb, size), msg, size); msg 625 net/bluetooth/rfcomm/sock.c static int rfcomm_sock_recvmsg(struct socket *sock, struct msghdr *msg, msg 637 net/bluetooth/rfcomm/sock.c len = bt_sock_stream_recvmsg(sock, msg, size, flags); msg 275 net/bluetooth/sco.c static int sco_send_frame(struct sock *sk, struct msghdr *msg, int len) msg 287 net/bluetooth/sco.c skb = bt_skb_send_alloc(sk, len, msg->msg_flags & MSG_DONTWAIT, &err); msg 291 net/bluetooth/sco.c if (memcpy_from_msg(skb_put(skb, len), msg, len)) { msg 701 net/bluetooth/sco.c static int sco_sock_sendmsg(struct socket *sock, struct msghdr *msg, msg 713 net/bluetooth/sco.c if (msg->msg_flags & MSG_OOB) msg 719 net/bluetooth/sco.c err = sco_send_frame(sk, msg, len); msg 771 net/bluetooth/sco.c static int sco_sock_recvmsg(struct socket *sock, struct msghdr *msg, msg 790 net/bluetooth/sco.c return bt_sock_recvmsg(sock, msg, len, flags); msg 604 net/bluetooth/smp.c struct msghdr msg; msg 617 net/bluetooth/smp.c memset(&msg, 0, sizeof(msg)); msg 619 net/bluetooth/smp.c iov_iter_kvec(&msg.msg_iter, WRITE, iv, 2, 1 + len); msg 621 net/bluetooth/smp.c l2cap_chan_send(chan, &msg, 1 + len); msg 225 net/bridge/br_arp_nd_proxy.c struct nd_msg *br_is_nd_neigh_msg(struct sk_buff *skb, struct nd_msg *msg) msg 230 net/bridge/br_arp_nd_proxy.c sizeof(struct ipv6hdr), sizeof(*msg), msg); msg 388 net/bridge/br_arp_nd_proxy.c u16 vid, struct net_bridge_port *p, struct nd_msg *msg) msg 401 net/bridge/br_arp_nd_proxy.c if (msg->icmph.icmp6_type == NDISC_NEIGHBOUR_ADVERTISEMENT && msg 402 net/bridge/br_arp_nd_proxy.c !msg->icmph.icmp6_solicited) { msg 408 net/bridge/br_arp_nd_proxy.c if (msg->icmph.icmp6_type != NDISC_NEIGHBOUR_SOLICITATION) msg 431 net/bridge/br_arp_nd_proxy.c if (br_is_local_ip6(vlandev, &msg->target)) { msg 439 net/bridge/br_arp_nd_proxy.c n = neigh_lookup(ipv6_stub->nd_tbl, &msg->target, vlandev); msg 456 net/bridge/br_arp_nd_proxy.c skb_vlan_tag_get(skb), msg); msg 458 net/bridge/br_arp_nd_proxy.c br_nd_send(br, p, skb, n, 0, 0, msg); msg 73 net/bridge/br_device.c struct nd_msg *msg, _msg; msg 75 net/bridge/br_device.c msg = br_is_nd_neigh_msg(skb, &_msg); msg 76 net/bridge/br_device.c if (msg) msg 77 net/bridge/br_device.c br_do_suppress_nd(skb, br, vid, NULL, msg); msg 122 net/bridge/br_input.c struct nd_msg *msg, _msg; msg 124 net/bridge/br_input.c msg = br_is_nd_neigh_msg(skb, &_msg); msg 125 net/bridge/br_input.c if (msg) msg 126 net/bridge/br_input.c br_do_suppress_nd(skb, br, vid, p, msg); msg 1257 net/bridge/br_private.h u16 vid, struct net_bridge_port *p, struct nd_msg *msg); msg 347 net/caif/caif_socket.c static int caif_stream_recvmsg(struct socket *sock, struct msghdr *msg, msg 425 net/caif/caif_socket.c if (memcpy_to_msg(msg, skb->data, chunk)) { msg 518 net/caif/caif_socket.c static int caif_seqpkt_sendmsg(struct socket *sock, struct msghdr *msg, msg 534 net/caif/caif_socket.c if (msg->msg_flags&MSG_OOB) msg 538 net/caif/caif_socket.c if (msg->msg_namelen) msg 542 net/caif/caif_socket.c if (unlikely(msg->msg_iter.iov->iov_base == NULL)) msg 544 net/caif/caif_socket.c noblock = msg->msg_flags & MSG_DONTWAIT; msg 573 net/caif/caif_socket.c ret = memcpy_from_msg(skb_put(skb, len), msg, len); msg 593 net/caif/caif_socket.c static int caif_stream_sendmsg(struct socket *sock, struct msghdr *msg, msg 604 net/caif/caif_socket.c if (unlikely(msg->msg_flags&MSG_OOB)) msg 607 net/caif/caif_socket.c if (unlikely(msg->msg_namelen)) msg 610 net/caif/caif_socket.c timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); msg 633 net/caif/caif_socket.c msg->msg_flags&MSG_DONTWAIT, msg 648 net/caif/caif_socket.c err = memcpy_from_msg(skb_put(skb, size), msg, size); msg 654 net/caif/caif_socket.c msg->msg_flags&MSG_DONTWAIT, timeo); msg 665 net/caif/caif_socket.c if (sent == 0 && !(msg->msg_flags&MSG_NOSIGNAL)) msg 771 net/can/af_can.c static int can_notifier(struct notifier_block *nb, unsigned long msg, msg 779 net/can/af_can.c switch (msg) { msg 835 net/can/bcm.c static int bcm_tx_setup(struct bcm_msg_head *msg_head, struct msghdr *msg, msg 873 net/can/bcm.c err = memcpy_from_msg((u8 *)cf, msg, op->cfsiz); msg 919 net/can/bcm.c err = memcpy_from_msg((u8 *)cf, msg, op->cfsiz); msg 1010 net/can/bcm.c static int bcm_rx_setup(struct bcm_msg_head *msg_head, struct msghdr *msg, msg 1053 net/can/bcm.c err = memcpy_from_msg(op->frames, msg, msg 1105 net/can/bcm.c err = memcpy_from_msg(op->frames, msg, msg 1221 net/can/bcm.c static int bcm_tx_send(struct msghdr *msg, int ifindex, struct sock *sk, msg 1238 net/can/bcm.c err = memcpy_from_msg(skb_put(skb, cfsiz), msg, cfsiz); msg 1266 net/can/bcm.c static int bcm_sendmsg(struct socket *sock, struct msghdr *msg, size_t size) msg 1283 net/can/bcm.c ret = memcpy_from_msg((u8 *)&msg_head, msg, MHSIZ); msg 1293 net/can/bcm.c if (!ifindex && msg->msg_name) { msg 1295 net/can/bcm.c DECLARE_SOCKADDR(struct sockaddr_can *, addr, msg->msg_name); msg 1297 net/can/bcm.c if (msg->msg_namelen < CAN_REQUIRED_SIZE(*addr, can_ifindex)) msg 1327 net/can/bcm.c ret = bcm_tx_setup(&msg_head, msg, ifindex, sk); msg 1331 net/can/bcm.c ret = bcm_rx_setup(&msg_head, msg, ifindex, sk); msg 1365 net/can/bcm.c ret = bcm_tx_send(msg, ifindex, sk, cfsiz); msg 1381 net/can/bcm.c static int bcm_notifier(struct notifier_block *nb, unsigned long msg, msg 1396 net/can/bcm.c switch (msg) { msg 1594 net/can/bcm.c static int bcm_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, msg 1612 net/can/bcm.c err = memcpy_to_msg(msg, skb->data, size); msg 1618 net/can/bcm.c sock_recv_ts_and_drops(msg, sk, skb); msg 1620 net/can/bcm.c if (msg->msg_name) { msg 1622 net/can/bcm.c msg->msg_namelen = sizeof(struct sockaddr_can); msg 1623 net/can/bcm.c memcpy(msg->msg_name, skb->cb, msg->msg_namelen); msg 520 net/can/gw.c unsigned long msg, void *ptr) msg 528 net/can/gw.c if (msg == NETDEV_UNREGISTER) { msg 348 net/can/j1939/main.c unsigned long msg, void *data) msg 360 net/can/j1939/main.c switch (msg) { msg 772 net/can/j1939/socket.c static int j1939_sk_recvmsg(struct socket *sock, struct msghdr *msg, msg 784 net/can/j1939/socket.c return sock_recv_errqueue(sock->sk, msg, size, SOL_CAN_J1939, msg 792 net/can/j1939/socket.c msg->msg_flags |= MSG_TRUNC; msg 796 net/can/j1939/socket.c ret = memcpy_to_msg(msg, skb->data, size); msg 804 net/can/j1939/socket.c put_cmsg(msg, SOL_CAN_J1939, SCM_J1939_DEST_ADDR, msg 808 net/can/j1939/socket.c put_cmsg(msg, SOL_CAN_J1939, SCM_J1939_DEST_NAME, msg 811 net/can/j1939/socket.c put_cmsg(msg, SOL_CAN_J1939, SCM_J1939_PRIO, msg 814 net/can/j1939/socket.c if (msg->msg_name) { msg 815 net/can/j1939/socket.c struct sockaddr_can *paddr = msg->msg_name; msg 817 net/can/j1939/socket.c msg->msg_namelen = J1939_MIN_NAMELEN; msg 818 net/can/j1939/socket.c memset(msg->msg_name, 0, msg->msg_namelen); msg 826 net/can/j1939/socket.c sock_recv_ts_and_drops(msg, sk, skb); msg 827 net/can/j1939/socket.c msg->msg_flags |= skcb->msg_flags; msg 835 net/can/j1939/socket.c struct msghdr *msg, size_t size, msg 848 net/can/j1939/socket.c msg->msg_flags & MSG_DONTWAIT, &ret); msg 857 net/can/j1939/socket.c ret = memcpy_from_msg(skb_put(skb, size), msg, size); msg 868 net/can/j1939/socket.c if (msg->msg_name) { msg 869 net/can/j1939/socket.c struct sockaddr_can *addr = msg->msg_name; msg 1001 net/can/j1939/socket.c struct msghdr *msg, size_t size) msg 1025 net/can/j1939/socket.c skb = j1939_sk_alloc_skb(priv->ndev, sk, msg, segment_size, msg 1094 net/can/j1939/socket.c static int j1939_sk_sendmsg(struct socket *sock, struct msghdr *msg, msg 1120 net/can/j1939/socket.c if (msg->msg_name) { msg 1121 net/can/j1939/socket.c struct sockaddr_can *addr = msg->msg_name; msg 1123 net/can/j1939/socket.c if (msg->msg_namelen < J1939_MIN_NAMELEN) { msg 1160 net/can/j1939/socket.c ret = j1939_sk_send_loop(priv, sk, msg, size); msg 267 net/can/raw.c unsigned long msg, void *ptr) msg 282 net/can/raw.c switch (msg) { msg 724 net/can/raw.c static int raw_sendmsg(struct socket *sock, struct msghdr *msg, size_t size) msg 733 net/can/raw.c if (msg->msg_name) { msg 734 net/can/raw.c DECLARE_SOCKADDR(struct sockaddr_can *, addr, msg->msg_name); msg 736 net/can/raw.c if (msg->msg_namelen < CAN_REQUIRED_SIZE(*addr, can_ifindex)) msg 761 net/can/raw.c msg->msg_flags & MSG_DONTWAIT, &err); msg 769 net/can/raw.c err = memcpy_from_msg(skb_put(skb, size), msg, size); msg 796 net/can/raw.c static int raw_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, msg 812 net/can/raw.c msg->msg_flags |= MSG_TRUNC; msg 816 net/can/raw.c err = memcpy_to_msg(msg, skb->data, size); msg 822 net/can/raw.c sock_recv_ts_and_drops(msg, sk, skb); msg 824 net/can/raw.c if (msg->msg_name) { msg 826 net/can/raw.c msg->msg_namelen = sizeof(struct sockaddr_can); msg 827 net/can/raw.c memcpy(msg->msg_name, skb->cb, msg->msg_namelen); msg 831 net/can/raw.c msg->msg_flags |= *(raw_flags(skb)); msg 805 net/ceph/auth_x.c static int calc_signature(struct ceph_x_authorizer *au, struct ceph_msg *msg, msg 811 net/ceph/auth_x.c if (!CEPH_HAVE_FEATURE(msg->con->peer_features, CEPHX_V2)) { msg 821 net/ceph/auth_x.c sigblock->header_crc = msg->hdr.crc; msg 822 net/ceph/auth_x.c sigblock->front_crc = msg->footer.front_crc; msg 823 net/ceph/auth_x.c sigblock->middle_crc = msg->footer.middle_crc; msg 824 net/ceph/auth_x.c sigblock->data_crc = msg->footer.data_crc; msg 848 net/ceph/auth_x.c sigblock->header_crc = msg->hdr.crc; msg 849 net/ceph/auth_x.c sigblock->front_crc = msg->footer.front_crc; msg 850 net/ceph/auth_x.c sigblock->front_len = msg->hdr.front_len; msg 851 net/ceph/auth_x.c sigblock->middle_crc = msg->footer.middle_crc; msg 852 net/ceph/auth_x.c sigblock->middle_len = msg->hdr.middle_len; msg 853 net/ceph/auth_x.c sigblock->data_crc = msg->footer.data_crc; msg 854 net/ceph/auth_x.c sigblock->data_len = msg->hdr.data_len; msg 855 net/ceph/auth_x.c sigblock->seq_lower_word = *(__le32 *)&msg->hdr.seq; msg 871 net/ceph/auth_x.c struct ceph_msg *msg) msg 876 net/ceph/auth_x.c if (ceph_test_opt(from_msgr(msg->con->msgr), NOMSGSIGN)) msg 880 net/ceph/auth_x.c msg, &sig); msg 884 net/ceph/auth_x.c msg->footer.sig = sig; msg 885 net/ceph/auth_x.c msg->footer.flags |= CEPH_MSG_FOOTER_SIGNED; msg 890 net/ceph/auth_x.c struct ceph_msg *msg) msg 895 net/ceph/auth_x.c if (ceph_test_opt(from_msgr(msg->con->msgr), NOMSGSIGN)) msg 899 net/ceph/auth_x.c msg, &sig_check); msg 902 net/ceph/auth_x.c if (sig_check == msg->footer.sig) msg 904 net/ceph/auth_x.c if (msg->footer.flags & CEPH_MSG_FOOTER_SIGNED) msg 906 net/ceph/auth_x.c "expect %llx\n", msg, msg->footer.sig, sig_check); msg 909 net/ceph/auth_x.c "CEPH_MSG_FOOTER_SIGNED\n", msg); msg 513 net/ceph/messenger.c struct msghdr msg = { .msg_flags = MSG_DONTWAIT | MSG_NOSIGNAL }; msg 517 net/ceph/messenger.c msg.msg_flags |= MSG_TRUNC; msg 519 net/ceph/messenger.c iov_iter_kvec(&msg.msg_iter, READ, &iov, 1, len); msg 520 net/ceph/messenger.c r = sock_recvmsg(sock, &msg, msg.msg_flags); msg 534 net/ceph/messenger.c struct msghdr msg = { .msg_flags = MSG_DONTWAIT | MSG_NOSIGNAL }; msg 538 net/ceph/messenger.c iov_iter_bvec(&msg.msg_iter, READ, &bvec, 1, length); msg 539 net/ceph/messenger.c r = sock_recvmsg(sock, &msg, msg.msg_flags); msg 552 net/ceph/messenger.c struct msghdr msg = { .msg_flags = MSG_DONTWAIT | MSG_NOSIGNAL }; msg 556 net/ceph/messenger.c msg.msg_flags |= MSG_MORE; msg 558 net/ceph/messenger.c msg.msg_flags |= MSG_EOR; /* superfluous, but what the hell */ msg 560 net/ceph/messenger.c r = kernel_sendmsg(sock, &msg, iov, kvlen, len); msg 627 net/ceph/messenger.c static void ceph_msg_remove(struct ceph_msg *msg) msg 629 net/ceph/messenger.c list_del_init(&msg->list_head); msg 631 net/ceph/messenger.c ceph_msg_put(msg); msg 636 net/ceph/messenger.c struct ceph_msg *msg = list_first_entry(head, struct ceph_msg, msg 638 net/ceph/messenger.c ceph_msg_remove(msg); msg 1123 net/ceph/messenger.c static void ceph_msg_data_cursor_init(struct ceph_msg *msg, size_t length) msg 1125 net/ceph/messenger.c struct ceph_msg_data_cursor *cursor = &msg->cursor; msg 1128 net/ceph/messenger.c BUG_ON(length > msg->data_length); msg 1129 net/ceph/messenger.c BUG_ON(!msg->num_data_items); msg 1132 net/ceph/messenger.c cursor->data = msg->data; msg 1227 net/ceph/messenger.c static void prepare_message_data(struct ceph_msg *msg, u32 data_len) msg 1231 net/ceph/messenger.c ceph_msg_data_cursor_init(msg, (size_t)data_len); msg 1561 net/ceph/messenger.c struct ceph_msg *msg = con->out_msg; msg 1562 net/ceph/messenger.c struct ceph_msg_data_cursor *cursor = &msg->cursor; msg 1567 net/ceph/messenger.c dout("%s %p msg %p\n", __func__, con, msg); msg 1569 net/ceph/messenger.c if (!msg->num_data_items) msg 1580 net/ceph/messenger.c crc = do_datacrc ? le32_to_cpu(msg->footer.data_crc) : 0; msg 1599 net/ceph/messenger.c msg->footer.data_crc = cpu_to_le32(crc); msg 1608 net/ceph/messenger.c dout("%s %p msg %p done\n", __func__, con, msg); msg 1612 net/ceph/messenger.c msg->footer.data_crc = cpu_to_le32(crc); msg 1614 net/ceph/messenger.c msg->footer.flags |= CEPH_MSG_FOOTER_NOCRC; msg 2321 net/ceph/messenger.c struct ceph_msg *msg = con->in_msg; msg 2322 net/ceph/messenger.c struct ceph_msg_data_cursor *cursor = &msg->cursor; msg 2330 net/ceph/messenger.c if (!msg->num_data_items) msg 2528 net/ceph/messenger.c struct ceph_msg *msg = con->in_msg; msg 2535 net/ceph/messenger.c con->peer_name = msg->hdr.src; msg 2541 net/ceph/messenger.c msg, le64_to_cpu(msg->hdr.seq), msg 2542 net/ceph/messenger.c ENTITY_NAME(msg->hdr.src), msg 2543 net/ceph/messenger.c le16_to_cpu(msg->hdr.type), msg 2544 net/ceph/messenger.c ceph_msg_type_name(le16_to_cpu(msg->hdr.type)), msg 2545 net/ceph/messenger.c le32_to_cpu(msg->hdr.front_len), msg 2546 net/ceph/messenger.c le32_to_cpu(msg->hdr.data_len), msg 2548 net/ceph/messenger.c con->ops->dispatch(con, msg); msg 3070 net/ceph/messenger.c static void msg_con_set(struct ceph_msg *msg, struct ceph_connection *con) msg 3072 net/ceph/messenger.c if (msg->con) msg 3073 net/ceph/messenger.c msg->con->ops->put(msg->con); msg 3075 net/ceph/messenger.c msg->con = con ? con->ops->get(con) : NULL; msg 3076 net/ceph/messenger.c BUG_ON(msg->con != con); msg 3094 net/ceph/messenger.c void ceph_con_send(struct ceph_connection *con, struct ceph_msg *msg) msg 3097 net/ceph/messenger.c msg->hdr.src = con->msgr->inst.name; msg 3098 net/ceph/messenger.c BUG_ON(msg->front.iov_len != le32_to_cpu(msg->hdr.front_len)); msg 3099 net/ceph/messenger.c msg->needs_out_seq = true; msg 3104 net/ceph/messenger.c dout("con_send %p closed, dropping %p\n", con, msg); msg 3105 net/ceph/messenger.c ceph_msg_put(msg); msg 3110 net/ceph/messenger.c msg_con_set(msg, con); msg 3112 net/ceph/messenger.c BUG_ON(!list_empty(&msg->list_head)); msg 3113 net/ceph/messenger.c list_add_tail(&msg->list_head, &con->out_queue); msg 3114 net/ceph/messenger.c dout("----- %p to %s%lld %d=%s len %d+%d+%d -----\n", msg, msg 3115 net/ceph/messenger.c ENTITY_NAME(con->peer_name), le16_to_cpu(msg->hdr.type), msg 3116 net/ceph/messenger.c ceph_msg_type_name(le16_to_cpu(msg->hdr.type)), msg 3117 net/ceph/messenger.c le32_to_cpu(msg->hdr.front_len), msg 3118 net/ceph/messenger.c le32_to_cpu(msg->hdr.middle_len), msg 3119 net/ceph/messenger.c le32_to_cpu(msg->hdr.data_len)); msg 3134 net/ceph/messenger.c void ceph_msg_revoke(struct ceph_msg *msg) msg 3136 net/ceph/messenger.c struct ceph_connection *con = msg->con; msg 3139 net/ceph/messenger.c dout("%s msg %p null con\n", __func__, msg); msg 3144 net/ceph/messenger.c if (!list_empty(&msg->list_head)) { msg 3145 net/ceph/messenger.c dout("%s %p msg %p - was on queue\n", __func__, con, msg); msg 3146 net/ceph/messenger.c list_del_init(&msg->list_head); msg 3147 net/ceph/messenger.c msg->hdr.seq = 0; msg 3149 net/ceph/messenger.c ceph_msg_put(msg); msg 3151 net/ceph/messenger.c if (con->out_msg == msg) { msg 3157 net/ceph/messenger.c BUG_ON(!msg->data_length); msg 3161 net/ceph/messenger.c if (msg->data_length) msg 3162 net/ceph/messenger.c con->out_skip += msg->cursor.total_resid; msg 3163 net/ceph/messenger.c if (msg->middle) msg 3168 net/ceph/messenger.c __func__, con, msg, con->out_kvec_bytes, con->out_skip); msg 3169 net/ceph/messenger.c msg->hdr.seq = 0; msg 3171 net/ceph/messenger.c ceph_msg_put(msg); msg 3180 net/ceph/messenger.c void ceph_msg_revoke_incoming(struct ceph_msg *msg) msg 3182 net/ceph/messenger.c struct ceph_connection *con = msg->con; msg 3185 net/ceph/messenger.c dout("%s msg %p null con\n", __func__, msg); msg 3190 net/ceph/messenger.c if (con->in_msg == msg) { msg 3196 net/ceph/messenger.c dout("%s %p msg %p revoked\n", __func__, con, msg); msg 3209 net/ceph/messenger.c __func__, con, con->in_msg, msg); msg 3245 net/ceph/messenger.c static struct ceph_msg_data *ceph_msg_data_add(struct ceph_msg *msg) msg 3247 net/ceph/messenger.c BUG_ON(msg->num_data_items >= msg->max_data_items); msg 3248 net/ceph/messenger.c return &msg->data[msg->num_data_items++]; msg 3261 net/ceph/messenger.c void ceph_msg_data_add_pages(struct ceph_msg *msg, struct page **pages, msg 3269 net/ceph/messenger.c data = ceph_msg_data_add(msg); msg 3276 net/ceph/messenger.c msg->data_length += length; msg 3280 net/ceph/messenger.c void ceph_msg_data_add_pagelist(struct ceph_msg *msg, msg 3288 net/ceph/messenger.c data = ceph_msg_data_add(msg); msg 3293 net/ceph/messenger.c msg->data_length += pagelist->length; msg 3298 net/ceph/messenger.c void ceph_msg_data_add_bio(struct ceph_msg *msg, struct ceph_bio_iter *bio_pos, msg 3303 net/ceph/messenger.c data = ceph_msg_data_add(msg); msg 3308 net/ceph/messenger.c msg->data_length += length; msg 3313 net/ceph/messenger.c void ceph_msg_data_add_bvecs(struct ceph_msg *msg, msg 3318 net/ceph/messenger.c data = ceph_msg_data_add(msg); msg 3322 net/ceph/messenger.c msg->data_length += bvec_pos->iter.bi_size; msg 3400 net/ceph/messenger.c static int ceph_alloc_middle(struct ceph_connection *con, struct ceph_msg *msg) msg 3402 net/ceph/messenger.c int type = le16_to_cpu(msg->hdr.type); msg 3403 net/ceph/messenger.c int middle_len = le32_to_cpu(msg->hdr.middle_len); msg 3405 net/ceph/messenger.c dout("alloc_middle %p type %d %s middle_len %d\n", msg, type, msg 3408 net/ceph/messenger.c BUG_ON(msg->middle); msg 3410 net/ceph/messenger.c msg->middle = ceph_buffer_new(middle_len, GFP_NOFS); msg 3411 net/ceph/messenger.c if (!msg->middle) msg 3435 net/ceph/messenger.c struct ceph_msg *msg; msg 3442 net/ceph/messenger.c msg = con->ops->alloc_msg(con, hdr, skip); msg 3445 net/ceph/messenger.c if (msg) msg 3446 net/ceph/messenger.c ceph_msg_put(msg); msg 3449 net/ceph/messenger.c if (msg) { msg 3451 net/ceph/messenger.c msg_con_set(msg, con); msg 3452 net/ceph/messenger.c con->in_msg = msg; msg 3515 net/ceph/messenger.c struct ceph_msg *ceph_msg_get(struct ceph_msg *msg) msg 3517 net/ceph/messenger.c dout("%s %p (was %d)\n", __func__, msg, msg 3518 net/ceph/messenger.c kref_read(&msg->kref)); msg 3519 net/ceph/messenger.c kref_get(&msg->kref); msg 3520 net/ceph/messenger.c return msg; msg 3524 net/ceph/messenger.c void ceph_msg_put(struct ceph_msg *msg) msg 3526 net/ceph/messenger.c dout("%s %p (was %d)\n", __func__, msg, msg 3527 net/ceph/messenger.c kref_read(&msg->kref)); msg 3528 net/ceph/messenger.c kref_put(&msg->kref, ceph_msg_release); msg 3532 net/ceph/messenger.c void ceph_msg_dump(struct ceph_msg *msg) msg 3534 net/ceph/messenger.c pr_debug("msg_dump %p (front_alloc_len %d length %zd)\n", msg, msg 3535 net/ceph/messenger.c msg->front_alloc_len, msg->data_length); msg 3538 net/ceph/messenger.c &msg->hdr, sizeof(msg->hdr), true); msg 3541 net/ceph/messenger.c msg->front.iov_base, msg->front.iov_len, true); msg 3542 net/ceph/messenger.c if (msg->middle) msg 3545 net/ceph/messenger.c msg->middle->vec.iov_base, msg 3546 net/ceph/messenger.c msg->middle->vec.iov_len, true); msg 3549 net/ceph/messenger.c &msg->footer, sizeof(msg->footer), true); msg 261 net/ceph/mon_client.c struct ceph_msg *msg = monc->m_subscribe; msg 262 net/ceph/mon_client.c void *p = msg->front.iov_base; msg 263 net/ceph/mon_client.c void *const end = p + msg->front_alloc_len; msg 274 net/ceph/mon_client.c msg->hdr.version = cpu_to_le16(2); msg 303 net/ceph/mon_client.c msg->front.iov_len = p - msg->front.iov_base; msg 304 net/ceph/mon_client.c msg->hdr.front_len = cpu_to_le32(msg->front.iov_len); msg 305 net/ceph/mon_client.c ceph_msg_revoke(msg); msg 306 net/ceph/mon_client.c ceph_con_send(&monc->con, ceph_msg_get(msg)); msg 310 net/ceph/mon_client.c struct ceph_msg *msg) msg 313 net/ceph/mon_client.c struct ceph_mon_subscribe_ack *h = msg->front.iov_base; msg 315 net/ceph/mon_client.c if (msg->front.iov_len < sizeof(*h)) msg 338 net/ceph/mon_client.c ceph_msg_dump(msg); msg 467 net/ceph/mon_client.c struct ceph_msg *msg) msg 476 net/ceph/mon_client.c p = msg->front.iov_base; msg 477 net/ceph/mon_client.c end = p + msg->front.iov_len; msg 483 net/ceph/mon_client.c ceph_msg_dump(msg); msg 666 net/ceph/mon_client.c struct ceph_msg *msg) msg 669 net/ceph/mon_client.c struct ceph_mon_statfs_reply *reply = msg->front.iov_base; msg 670 net/ceph/mon_client.c u64 tid = le64_to_cpu(msg->hdr.tid); msg 672 net/ceph/mon_client.c dout("%s msg %p tid %llu\n", __func__, msg, tid); msg 674 net/ceph/mon_client.c if (msg->front.iov_len != sizeof(*reply)) msg 694 net/ceph/mon_client.c ceph_msg_dump(msg); msg 744 net/ceph/mon_client.c struct ceph_msg *msg) msg 747 net/ceph/mon_client.c u64 tid = le64_to_cpu(msg->hdr.tid); msg 748 net/ceph/mon_client.c void *p = msg->front.iov_base; msg 749 net/ceph/mon_client.c void *end = p + msg->front_alloc_len; msg 752 net/ceph/mon_client.c dout("%s msg %p tid %llu\n", __func__, msg, tid); msg 776 net/ceph/mon_client.c ceph_msg_dump(msg); msg 867 net/ceph/mon_client.c struct ceph_msg *msg) msg 870 net/ceph/mon_client.c void *p = msg->front.iov_base; msg 871 net/ceph/mon_client.c void *const end = p + msg->front_alloc_len; msg 872 net/ceph/mon_client.c u64 tid = le64_to_cpu(msg->hdr.tid); msg 874 net/ceph/mon_client.c dout("%s msg %p tid %llu\n", __func__, msg, tid); msg 896 net/ceph/mon_client.c ceph_msg_dump(msg); msg 1161 net/ceph/mon_client.c struct ceph_msg *msg) msg 1169 net/ceph/mon_client.c ret = ceph_handle_auth_reply(monc->auth, msg->front.iov_base, msg 1170 net/ceph/mon_client.c msg->front.iov_len, msg 1231 net/ceph/mon_client.c static void dispatch(struct ceph_connection *con, struct ceph_msg *msg) msg 1234 net/ceph/mon_client.c int type = le16_to_cpu(msg->hdr.type); msg 1241 net/ceph/mon_client.c handle_auth_reply(monc, msg); msg 1245 net/ceph/mon_client.c handle_subscribe_ack(monc, msg); msg 1249 net/ceph/mon_client.c handle_statfs_reply(monc, msg); msg 1253 net/ceph/mon_client.c handle_get_version_reply(monc, msg); msg 1257 net/ceph/mon_client.c handle_command_ack(monc, msg); msg 1261 net/ceph/mon_client.c ceph_monc_handle_map(monc, msg); msg 1265 net/ceph/mon_client.c ceph_osdc_handle_map(&monc->client->osdc, msg); msg 1271 net/ceph/mon_client.c monc->client->extra_mon_dispatch(monc->client, msg) == 0) msg 1277 net/ceph/mon_client.c ceph_msg_put(msg); msg 15 net/ceph/msgpool.c struct ceph_msg *msg; msg 17 net/ceph/msgpool.c msg = ceph_msg_new2(pool->type, pool->front_len, pool->max_data_items, msg 19 net/ceph/msgpool.c if (!msg) { msg 22 net/ceph/msgpool.c dout("msgpool_alloc %s %p\n", pool->name, msg); msg 23 net/ceph/msgpool.c msg->pool = pool; msg 25 net/ceph/msgpool.c return msg; msg 31 net/ceph/msgpool.c struct ceph_msg *msg = element; msg 33 net/ceph/msgpool.c dout("msgpool_release %s %p\n", pool->name, msg); msg 34 net/ceph/msgpool.c msg->pool = NULL; msg 35 net/ceph/msgpool.c ceph_msg_put(msg); msg 62 net/ceph/msgpool.c struct ceph_msg *msg; msg 76 net/ceph/msgpool.c msg = mempool_alloc(pool->pool, GFP_NOFS); msg 77 net/ceph/msgpool.c dout("msgpool_get %s %p\n", pool->name, msg); msg 78 net/ceph/msgpool.c return msg; msg 81 net/ceph/msgpool.c void ceph_msgpool_put(struct ceph_msgpool *pool, struct ceph_msg *msg) msg 83 net/ceph/msgpool.c dout("msgpool_put %s %p\n", pool->name, msg); msg 86 net/ceph/msgpool.c msg->front.iov_len = pool->front_len; msg 87 net/ceph/msgpool.c msg->hdr.front_len = cpu_to_le32(pool->front_len); msg 89 net/ceph/msgpool.c msg->data_length = 0; msg 90 net/ceph/msgpool.c msg->num_data_items = 0; msg 92 net/ceph/msgpool.c kref_init(&msg->kref); /* retake single ref */ msg 93 net/ceph/msgpool.c mempool_free(msg, pool->pool); msg 617 net/ceph/osd_client.c struct ceph_msg *msg; msg 642 net/ceph/osd_client.c msg = ceph_msgpool_get(&osdc->msgpool_op, msg_size, msg 645 net/ceph/osd_client.c msg = ceph_msg_new2(CEPH_MSG_OSD_OP, msg_size, msg 647 net/ceph/osd_client.c if (!msg) msg 650 net/ceph/osd_client.c memset(msg->front.iov_base, 0, msg->front.iov_len); msg 651 net/ceph/osd_client.c req->r_request = msg; msg 659 net/ceph/osd_client.c msg = ceph_msgpool_get(&osdc->msgpool_op_reply, msg_size, msg 662 net/ceph/osd_client.c msg = ceph_msg_new2(CEPH_MSG_OSD_OPREPLY, msg_size, msg 664 net/ceph/osd_client.c if (!msg) msg 667 net/ceph/osd_client.c req->r_reply = msg; msg 956 net/ceph/osd_client.c static void ceph_osdc_msg_data_add(struct ceph_msg *msg, msg 964 net/ceph/osd_client.c ceph_msg_data_add_pages(msg, osd_data->pages, msg 968 net/ceph/osd_client.c ceph_msg_data_add_pagelist(msg, osd_data->pagelist); msg 971 net/ceph/osd_client.c ceph_msg_data_add_bio(msg, &osd_data->bio_pos, length); msg 974 net/ceph/osd_client.c ceph_msg_data_add_bvecs(msg, &osd_data->bvec_pos); msg 2042 net/ceph/osd_client.c struct ceph_msg *msg) msg 2044 net/ceph/osd_client.c void *p = msg->front.iov_base; msg 2045 net/ceph/osd_client.c void *const end = p + msg->front_alloc_len; msg 2102 net/ceph/osd_client.c msg->hdr.version = cpu_to_le16(8); /* MOSDOp v8 */ msg 2104 net/ceph/osd_client.c msg->front.iov_len = p - msg->front.iov_base; msg 2105 net/ceph/osd_client.c msg->hdr.front_len = cpu_to_le32(msg->front.iov_len); msg 2106 net/ceph/osd_client.c msg->hdr.data_len = cpu_to_le32(data_len); msg 2112 net/ceph/osd_client.c msg->hdr.data_off = cpu_to_le16(req->r_data_offset); msg 2114 net/ceph/osd_client.c dout("%s req %p msg %p oid %s oid_len %d\n", __func__, req, msg, msg 2118 net/ceph/osd_client.c static void encode_request_finish(struct ceph_msg *msg) msg 2120 net/ceph/osd_client.c void *p = msg->front.iov_base; msg 2121 net/ceph/osd_client.c void *const partial_end = p + msg->front.iov_len; msg 2122 net/ceph/osd_client.c void *const end = p + msg->front_alloc_len; msg 2124 net/ceph/osd_client.c if (CEPH_HAVE_FEATURE(msg->con->peer_features, RESEND_ON_SPLIT)) { msg 2127 net/ceph/osd_client.c ceph_encode_64(&p, msg->con->peer_features); msg 2171 net/ceph/osd_client.c p = msg->front.iov_base; msg 2197 net/ceph/osd_client.c msg->hdr.version = cpu_to_le16(4); /* MOSDOp v4 */ msg 2201 net/ceph/osd_client.c msg->front.iov_len = p - msg->front.iov_base; msg 2202 net/ceph/osd_client.c msg->hdr.front_len = cpu_to_le32(msg->front.iov_len); msg 2204 net/ceph/osd_client.c dout("%s msg %p tid %llu %u+%u+%u v%d\n", __func__, msg, msg 2205 net/ceph/osd_client.c le64_to_cpu(msg->hdr.tid), le32_to_cpu(msg->hdr.front_len), msg 2206 net/ceph/osd_client.c le32_to_cpu(msg->hdr.middle_len), le32_to_cpu(msg->hdr.data_len), msg 2207 net/ceph/osd_client.c le16_to_cpu(msg->hdr.version)); msg 2822 net/ceph/osd_client.c struct ceph_msg *msg; /* for ceph_msg_put() */ msg 2890 net/ceph/osd_client.c ceph_msg_put(lwork->notify.msg); msg 3513 net/ceph/osd_client.c static int decode_MOSDOpReply(const struct ceph_msg *msg, struct MOSDOpReply *m) msg 3515 net/ceph/osd_client.c void *p = msg->front.iov_base; msg 3516 net/ceph/osd_client.c void *const end = p + msg->front.iov_len; msg 3517 net/ceph/osd_client.c u16 version = le16_to_cpu(msg->hdr.version); msg 3593 net/ceph/osd_client.c static void handle_reply(struct ceph_osd *osd, struct ceph_msg *msg) msg 3598 net/ceph/osd_client.c u64 tid = le64_to_cpu(msg->hdr.tid); msg 3603 net/ceph/osd_client.c dout("%s msg %p tid %llu\n", __func__, msg, tid); msg 3610 net/ceph/osd_client.c WARN_ON(osd->o_osd != le64_to_cpu(msg->hdr.src.num)); msg 3620 net/ceph/osd_client.c ret = decode_MOSDOpReply(msg, &m); msg 3625 net/ceph/osd_client.c ceph_msg_dump(msg); msg 3675 net/ceph/osd_client.c if (data_len != le32_to_cpu(msg->hdr.data_len)) { msg 3677 net/ceph/osd_client.c le32_to_cpu(msg->hdr.data_len), req->r_tid); msg 3955 net/ceph/osd_client.c void ceph_osdc_handle_map(struct ceph_osd_client *osdc, struct ceph_msg *msg) msg 3957 net/ceph/osd_client.c void *p = msg->front.iov_base; msg 3958 net/ceph/osd_client.c void *const end = p + msg->front.iov_len; msg 4061 net/ceph/osd_client.c ceph_msg_dump(msg); msg 4128 net/ceph/osd_client.c static int decode_MOSDBackoff(const struct ceph_msg *msg, struct MOSDBackoff *m) msg 4130 net/ceph/osd_client.c void *p = msg->front.iov_base; msg 4131 net/ceph/osd_client.c void *const end = p + msg->front.iov_len; msg 4182 net/ceph/osd_client.c struct ceph_msg *msg; msg 4194 net/ceph/osd_client.c msg = ceph_msg_new(CEPH_MSG_OSD_BACKOFF, msg_size, GFP_NOIO, true); msg 4195 net/ceph/osd_client.c if (!msg) msg 4198 net/ceph/osd_client.c p = msg->front.iov_base; msg 4199 net/ceph/osd_client.c end = p + msg->front_alloc_len; msg 4209 net/ceph/osd_client.c msg->front.iov_len = p - msg->front.iov_base; msg 4210 net/ceph/osd_client.c msg->hdr.version = cpu_to_le16(1); /* MOSDBackoff v1 */ msg 4211 net/ceph/osd_client.c msg->hdr.front_len = cpu_to_le32(msg->front.iov_len); msg 4213 net/ceph/osd_client.c return msg; msg 4220 net/ceph/osd_client.c struct ceph_msg *msg; msg 4255 net/ceph/osd_client.c msg = create_backoff_message(backoff, m->map_epoch); msg 4256 net/ceph/osd_client.c if (!msg) { msg 4260 net/ceph/osd_client.c ceph_con_send(&osd->o_con, msg); msg 4333 net/ceph/osd_client.c static void handle_backoff(struct ceph_osd *osd, struct ceph_msg *msg) msg 4345 net/ceph/osd_client.c WARN_ON(osd->o_osd != le64_to_cpu(msg->hdr.src.num)); msg 4348 net/ceph/osd_client.c ret = decode_MOSDBackoff(msg, &m); msg 4351 net/ceph/osd_client.c ceph_msg_dump(msg); msg 4378 net/ceph/osd_client.c struct ceph_msg *msg) msg 4380 net/ceph/osd_client.c void *p = msg->front.iov_base; msg 4381 net/ceph/osd_client.c void *const end = p + msg->front.iov_len; msg 4404 net/ceph/osd_client.c if (le16_to_cpu(msg->hdr.version) >= 2) msg 4407 net/ceph/osd_client.c if (le16_to_cpu(msg->hdr.version) >= 3) msg 4433 net/ceph/osd_client.c msg->num_data_items ? &msg->data[0] : NULL; msg 4459 net/ceph/osd_client.c lwork->notify.msg = ceph_msg_get(msg); msg 5408 net/ceph/osd_client.c static void dispatch(struct ceph_connection *con, struct ceph_msg *msg) msg 5412 net/ceph/osd_client.c int type = le16_to_cpu(msg->hdr.type); msg 5416 net/ceph/osd_client.c ceph_osdc_handle_map(osdc, msg); msg 5419 net/ceph/osd_client.c handle_reply(osd, msg); msg 5422 net/ceph/osd_client.c handle_backoff(osd, msg); msg 5425 net/ceph/osd_client.c handle_watch_notify(osdc, msg); msg 5433 net/ceph/osd_client.c ceph_msg_put(msg); msg 5635 net/ceph/osd_client.c static void osd_reencode_message(struct ceph_msg *msg) msg 5637 net/ceph/osd_client.c int type = le16_to_cpu(msg->hdr.type); msg 5640 net/ceph/osd_client.c encode_request_finish(msg); msg 5643 net/ceph/osd_client.c static int osd_sign_message(struct ceph_msg *msg) msg 5645 net/ceph/osd_client.c struct ceph_osd *o = msg->con->private; msg 5648 net/ceph/osd_client.c return ceph_auth_sign_message(auth, msg); msg 5651 net/ceph/osd_client.c static int osd_check_message_signature(struct ceph_msg *msg) msg 5653 net/ceph/osd_client.c struct ceph_osd *o = msg->con->private; msg 5656 net/ceph/osd_client.c return ceph_auth_check_message_signature(auth, msg); msg 41 net/compat.c struct compat_msghdr msg; msg 44 net/compat.c if (copy_from_user(&msg, umsg, sizeof(*umsg))) msg 47 net/compat.c kmsg->msg_flags = msg.msg_flags; msg 48 net/compat.c kmsg->msg_namelen = msg.msg_namelen; msg 50 net/compat.c if (!msg.msg_name) msg 59 net/compat.c kmsg->msg_control = compat_ptr(msg.msg_control); msg 60 net/compat.c kmsg->msg_controllen = msg.msg_controllen; msg 63 net/compat.c *save_addr = compat_ptr(msg.msg_name); msg 65 net/compat.c if (msg.msg_name && kmsg->msg_namelen) { msg 67 net/compat.c err = move_addr_to_kernel(compat_ptr(msg.msg_name), msg 78 net/compat.c if (msg.msg_iovlen > UIO_MAXIOV) msg 84 net/compat.c compat_ptr(msg.msg_iov), msg.msg_iovlen, msg 99 net/compat.c #define CMSG_COMPAT_FIRSTHDR(msg) \ msg 100 net/compat.c (((msg)->msg_controllen) >= sizeof(struct compat_cmsghdr) ? \ msg 101 net/compat.c (struct compat_cmsghdr __user *)((msg)->msg_control) : \ msg 110 net/compat.c static inline struct compat_cmsghdr __user *cmsg_compat_nxthdr(struct msghdr *msg, msg 114 net/compat.c if ((unsigned long)(ptr + 1 - (char __user *)msg->msg_control) > msg 115 net/compat.c msg->msg_controllen) msg 639 net/compat.c struct compat_msghdr __user *msg, msg 642 net/compat.c return __sys_sendmsg(fd, (struct user_msghdr __user *)msg, msg 646 net/compat.c COMPAT_SYSCALL_DEFINE3(sendmsg, int, fd, struct compat_msghdr __user *, msg, msg 649 net/compat.c return __compat_sys_sendmsg(fd, msg, flags); msg 667 net/compat.c struct compat_msghdr __user *msg, msg 670 net/compat.c return __sys_recvmsg(fd, (struct user_msghdr __user *)msg, msg 674 net/compat.c COMPAT_SYSCALL_DEFINE3(recvmsg, int, fd, struct compat_msghdr __user *, msg, msg 677 net/compat.c return __compat_sys_recvmsg(fd, msg, flags); msg 720 net/core/datagram.c int hlen, struct msghdr *msg) msg 728 net/core/datagram.c if (msg_data_left(msg) < chunk) { msg 731 net/core/datagram.c if (skb_copy_datagram_msg(skb, hlen, msg, chunk)) msg 735 net/core/datagram.c if (skb_copy_and_csum_datagram(skb, hlen, &msg->msg_iter, msg 740 net/core/datagram.c iov_iter_revert(&msg->msg_iter, chunk); msg 453 net/core/devlink.c static int devlink_nl_put_handle(struct sk_buff *msg, struct devlink *devlink) msg 455 net/core/devlink.c if (nla_put_string(msg, DEVLINK_ATTR_BUS_NAME, devlink->dev->bus->name)) msg 457 net/core/devlink.c if (nla_put_string(msg, DEVLINK_ATTR_DEV_NAME, dev_name(devlink->dev))) msg 462 net/core/devlink.c static int devlink_nl_fill(struct sk_buff *msg, struct devlink *devlink, msg 468 net/core/devlink.c hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd); msg 472 net/core/devlink.c if (devlink_nl_put_handle(msg, devlink)) msg 474 net/core/devlink.c if (nla_put_u8(msg, DEVLINK_ATTR_RELOAD_FAILED, devlink->reload_failed)) msg 477 net/core/devlink.c genlmsg_end(msg, hdr); msg 481 net/core/devlink.c genlmsg_cancel(msg, hdr); msg 487 net/core/devlink.c struct sk_buff *msg; msg 492 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 493 net/core/devlink.c if (!msg) msg 496 net/core/devlink.c err = devlink_nl_fill(msg, devlink, cmd, 0, 0, 0); msg 498 net/core/devlink.c nlmsg_free(msg); msg 503 net/core/devlink.c msg, 0, DEVLINK_MCGRP_CONFIG, GFP_KERNEL); msg 506 net/core/devlink.c static int devlink_nl_port_attrs_put(struct sk_buff *msg, msg 513 net/core/devlink.c if (nla_put_u16(msg, DEVLINK_ATTR_PORT_FLAVOUR, attrs->flavour)) msg 517 net/core/devlink.c if (nla_put_u16(msg, DEVLINK_ATTR_PORT_PCI_PF_NUMBER, msg 522 net/core/devlink.c if (nla_put_u16(msg, DEVLINK_ATTR_PORT_PCI_PF_NUMBER, msg 524 net/core/devlink.c nla_put_u16(msg, DEVLINK_ATTR_PORT_PCI_VF_NUMBER, msg 531 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_PORT_NUMBER, msg 536 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_PORT_SPLIT_GROUP, msg 539 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_PORT_SPLIT_SUBPORT_NUMBER, msg 549 net/core/devlink.c static int devlink_nl_port_fill(struct sk_buff *msg, struct devlink *devlink, msg 556 net/core/devlink.c hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd); msg 560 net/core/devlink.c if (devlink_nl_put_handle(msg, devlink)) msg 562 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_PORT_INDEX, devlink_port->index)) msg 566 net/core/devlink.c if (nla_put_u16(msg, DEVLINK_ATTR_PORT_TYPE, devlink_port->type)) msg 569 net/core/devlink.c nla_put_u16(msg, DEVLINK_ATTR_PORT_DESIRED_TYPE, msg 576 net/core/devlink.c (nla_put_u32(msg, DEVLINK_ATTR_PORT_NETDEV_IFINDEX, msg 578 net/core/devlink.c nla_put_string(msg, DEVLINK_ATTR_PORT_NETDEV_NAME, msg 586 net/core/devlink.c nla_put_string(msg, DEVLINK_ATTR_PORT_IBDEV_NAME, msg 591 net/core/devlink.c if (devlink_nl_port_attrs_put(msg, devlink_port)) msg 594 net/core/devlink.c genlmsg_end(msg, hdr); msg 600 net/core/devlink.c genlmsg_cancel(msg, hdr); msg 608 net/core/devlink.c struct sk_buff *msg; msg 616 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 617 net/core/devlink.c if (!msg) msg 620 net/core/devlink.c err = devlink_nl_port_fill(msg, devlink, devlink_port, cmd, 0, 0, 0); msg 622 net/core/devlink.c nlmsg_free(msg); msg 627 net/core/devlink.c msg, 0, DEVLINK_MCGRP_CONFIG, GFP_KERNEL); msg 633 net/core/devlink.c struct sk_buff *msg; msg 636 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 637 net/core/devlink.c if (!msg) msg 640 net/core/devlink.c err = devlink_nl_fill(msg, devlink, DEVLINK_CMD_NEW, msg 643 net/core/devlink.c nlmsg_free(msg); msg 647 net/core/devlink.c return genlmsg_reply(msg, info); msg 650 net/core/devlink.c static int devlink_nl_cmd_get_dumpit(struct sk_buff *msg, msg 660 net/core/devlink.c if (!net_eq(devlink_net(devlink), sock_net(msg->sk))) msg 666 net/core/devlink.c err = devlink_nl_fill(msg, devlink, DEVLINK_CMD_NEW, msg 677 net/core/devlink.c return msg->len; msg 685 net/core/devlink.c struct sk_buff *msg; msg 688 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 689 net/core/devlink.c if (!msg) msg 692 net/core/devlink.c err = devlink_nl_port_fill(msg, devlink, devlink_port, msg 696 net/core/devlink.c nlmsg_free(msg); msg 700 net/core/devlink.c return genlmsg_reply(msg, info); msg 703 net/core/devlink.c static int devlink_nl_cmd_port_get_dumpit(struct sk_buff *msg, msg 714 net/core/devlink.c if (!net_eq(devlink_net(devlink), sock_net(msg->sk))) msg 722 net/core/devlink.c err = devlink_nl_port_fill(msg, devlink, devlink_port, msg 739 net/core/devlink.c return msg->len; msg 830 net/core/devlink.c static int devlink_nl_sb_fill(struct sk_buff *msg, struct devlink *devlink, msg 837 net/core/devlink.c hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd); msg 841 net/core/devlink.c if (devlink_nl_put_handle(msg, devlink)) msg 843 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_SB_INDEX, devlink_sb->index)) msg 845 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_SB_SIZE, devlink_sb->size)) msg 847 net/core/devlink.c if (nla_put_u16(msg, DEVLINK_ATTR_SB_INGRESS_POOL_COUNT, msg 850 net/core/devlink.c if (nla_put_u16(msg, DEVLINK_ATTR_SB_EGRESS_POOL_COUNT, msg 853 net/core/devlink.c if (nla_put_u16(msg, DEVLINK_ATTR_SB_INGRESS_TC_COUNT, msg 856 net/core/devlink.c if (nla_put_u16(msg, DEVLINK_ATTR_SB_EGRESS_TC_COUNT, msg 860 net/core/devlink.c genlmsg_end(msg, hdr); msg 864 net/core/devlink.c genlmsg_cancel(msg, hdr); msg 873 net/core/devlink.c struct sk_buff *msg; msg 876 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 877 net/core/devlink.c if (!msg) msg 880 net/core/devlink.c err = devlink_nl_sb_fill(msg, devlink, devlink_sb, msg 884 net/core/devlink.c nlmsg_free(msg); msg 888 net/core/devlink.c return genlmsg_reply(msg, info); msg 891 net/core/devlink.c static int devlink_nl_cmd_sb_get_dumpit(struct sk_buff *msg, msg 902 net/core/devlink.c if (!net_eq(devlink_net(devlink), sock_net(msg->sk))) msg 910 net/core/devlink.c err = devlink_nl_sb_fill(msg, devlink, devlink_sb, msg 927 net/core/devlink.c return msg->len; msg 930 net/core/devlink.c static int devlink_nl_sb_pool_fill(struct sk_buff *msg, struct devlink *devlink, msg 944 net/core/devlink.c hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd); msg 948 net/core/devlink.c if (devlink_nl_put_handle(msg, devlink)) msg 950 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_SB_INDEX, devlink_sb->index)) msg 952 net/core/devlink.c if (nla_put_u16(msg, DEVLINK_ATTR_SB_POOL_INDEX, pool_index)) msg 954 net/core/devlink.c if (nla_put_u8(msg, DEVLINK_ATTR_SB_POOL_TYPE, pool_info.pool_type)) msg 956 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_SB_POOL_SIZE, pool_info.size)) msg 958 net/core/devlink.c if (nla_put_u8(msg, DEVLINK_ATTR_SB_POOL_THRESHOLD_TYPE, msg 961 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_SB_POOL_CELL_SIZE, msg 965 net/core/devlink.c genlmsg_end(msg, hdr); msg 969 net/core/devlink.c genlmsg_cancel(msg, hdr); msg 978 net/core/devlink.c struct sk_buff *msg; msg 990 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 991 net/core/devlink.c if (!msg) msg 994 net/core/devlink.c err = devlink_nl_sb_pool_fill(msg, devlink, devlink_sb, pool_index, msg 998 net/core/devlink.c nlmsg_free(msg); msg 1002 net/core/devlink.c return genlmsg_reply(msg, info); msg 1005 net/core/devlink.c static int __sb_pool_get_dumpit(struct sk_buff *msg, int start, int *p_idx, msg 1019 net/core/devlink.c err = devlink_nl_sb_pool_fill(msg, devlink, msg 1031 net/core/devlink.c static int devlink_nl_cmd_sb_pool_get_dumpit(struct sk_buff *msg, msg 1042 net/core/devlink.c if (!net_eq(devlink_net(devlink), sock_net(msg->sk)) || msg 1047 net/core/devlink.c err = __sb_pool_get_dumpit(msg, start, &idx, devlink, msg 1062 net/core/devlink.c return msg->len; msg 1107 net/core/devlink.c static int devlink_nl_sb_port_pool_fill(struct sk_buff *msg, msg 1125 net/core/devlink.c hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd); msg 1129 net/core/devlink.c if (devlink_nl_put_handle(msg, devlink)) msg 1131 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_PORT_INDEX, devlink_port->index)) msg 1133 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_SB_INDEX, devlink_sb->index)) msg 1135 net/core/devlink.c if (nla_put_u16(msg, DEVLINK_ATTR_SB_POOL_INDEX, pool_index)) msg 1137 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_SB_THRESHOLD, threshold)) msg 1149 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_SB_OCC_CUR, cur)) msg 1151 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_SB_OCC_MAX, max)) msg 1156 net/core/devlink.c genlmsg_end(msg, hdr); msg 1160 net/core/devlink.c genlmsg_cancel(msg, hdr); msg 1170 net/core/devlink.c struct sk_buff *msg; msg 1182 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 1183 net/core/devlink.c if (!msg) msg 1186 net/core/devlink.c err = devlink_nl_sb_port_pool_fill(msg, devlink, devlink_port, msg 1191 net/core/devlink.c nlmsg_free(msg); msg 1195 net/core/devlink.c return genlmsg_reply(msg, info); msg 1198 net/core/devlink.c static int __sb_port_pool_get_dumpit(struct sk_buff *msg, int start, int *p_idx, msg 1214 net/core/devlink.c err = devlink_nl_sb_port_pool_fill(msg, devlink, msg 1229 net/core/devlink.c static int devlink_nl_cmd_sb_port_pool_get_dumpit(struct sk_buff *msg, msg 1240 net/core/devlink.c if (!net_eq(devlink_net(devlink), sock_net(msg->sk)) || msg 1245 net/core/devlink.c err = __sb_port_pool_get_dumpit(msg, start, &idx, msg 1260 net/core/devlink.c return msg->len; msg 1300 net/core/devlink.c devlink_nl_sb_tc_pool_bind_fill(struct sk_buff *msg, struct devlink *devlink, msg 1319 net/core/devlink.c hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd); msg 1323 net/core/devlink.c if (devlink_nl_put_handle(msg, devlink)) msg 1325 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_PORT_INDEX, devlink_port->index)) msg 1327 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_SB_INDEX, devlink_sb->index)) msg 1329 net/core/devlink.c if (nla_put_u16(msg, DEVLINK_ATTR_SB_TC_INDEX, tc_index)) msg 1331 net/core/devlink.c if (nla_put_u8(msg, DEVLINK_ATTR_SB_POOL_TYPE, pool_type)) msg 1333 net/core/devlink.c if (nla_put_u16(msg, DEVLINK_ATTR_SB_POOL_INDEX, pool_index)) msg 1335 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_SB_THRESHOLD, threshold)) msg 1349 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_SB_OCC_CUR, cur)) msg 1351 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_SB_OCC_MAX, max)) msg 1356 net/core/devlink.c genlmsg_end(msg, hdr); msg 1360 net/core/devlink.c genlmsg_cancel(msg, hdr); msg 1370 net/core/devlink.c struct sk_buff *msg; msg 1387 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 1388 net/core/devlink.c if (!msg) msg 1391 net/core/devlink.c err = devlink_nl_sb_tc_pool_bind_fill(msg, devlink, devlink_port, msg 1397 net/core/devlink.c nlmsg_free(msg); msg 1401 net/core/devlink.c return genlmsg_reply(msg, info); msg 1404 net/core/devlink.c static int __sb_tc_pool_bind_get_dumpit(struct sk_buff *msg, msg 1421 net/core/devlink.c err = devlink_nl_sb_tc_pool_bind_fill(msg, devlink, msg 1439 net/core/devlink.c err = devlink_nl_sb_tc_pool_bind_fill(msg, devlink, msg 1456 net/core/devlink.c devlink_nl_cmd_sb_tc_pool_bind_get_dumpit(struct sk_buff *msg, msg 1467 net/core/devlink.c if (!net_eq(devlink_net(devlink), sock_net(msg->sk)) || msg 1473 net/core/devlink.c err = __sb_tc_pool_bind_get_dumpit(msg, start, &idx, msg 1489 net/core/devlink.c return msg->len; msg 1566 net/core/devlink.c static int devlink_nl_eswitch_fill(struct sk_buff *msg, struct devlink *devlink, msg 1577 net/core/devlink.c hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd); msg 1581 net/core/devlink.c err = devlink_nl_put_handle(msg, devlink); msg 1589 net/core/devlink.c err = nla_put_u16(msg, DEVLINK_ATTR_ESWITCH_MODE, mode); msg 1598 net/core/devlink.c err = nla_put_u8(msg, DEVLINK_ATTR_ESWITCH_INLINE_MODE, msg 1608 net/core/devlink.c err = nla_put_u8(msg, DEVLINK_ATTR_ESWITCH_ENCAP_MODE, encap_mode); msg 1613 net/core/devlink.c genlmsg_end(msg, hdr); msg 1617 net/core/devlink.c genlmsg_cancel(msg, hdr); msg 1625 net/core/devlink.c struct sk_buff *msg; msg 1628 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 1629 net/core/devlink.c if (!msg) msg 1632 net/core/devlink.c err = devlink_nl_eswitch_fill(msg, devlink, DEVLINK_CMD_ESWITCH_GET, msg 1636 net/core/devlink.c nlmsg_free(msg); msg 1640 net/core/devlink.c return genlmsg_reply(msg, info); msg 2718 net/core/devlink.c static int devlink_nl_flash_update_fill(struct sk_buff *msg, msg 2727 net/core/devlink.c hdr = genlmsg_put(msg, 0, 0, &devlink_nl_family, 0, cmd); msg 2731 net/core/devlink.c if (devlink_nl_put_handle(msg, devlink)) msg 2738 net/core/devlink.c nla_put_string(msg, DEVLINK_ATTR_FLASH_UPDATE_STATUS_MSG, msg 2742 net/core/devlink.c nla_put_string(msg, DEVLINK_ATTR_FLASH_UPDATE_COMPONENT, msg 2745 net/core/devlink.c if (nla_put_u64_64bit(msg, DEVLINK_ATTR_FLASH_UPDATE_STATUS_DONE, msg 2748 net/core/devlink.c if (nla_put_u64_64bit(msg, DEVLINK_ATTR_FLASH_UPDATE_STATUS_TOTAL, msg 2753 net/core/devlink.c genlmsg_end(msg, hdr); msg 2757 net/core/devlink.c genlmsg_cancel(msg, hdr); msg 2768 net/core/devlink.c struct sk_buff *msg; msg 2775 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 2776 net/core/devlink.c if (!msg) msg 2779 net/core/devlink.c err = devlink_nl_flash_update_fill(msg, devlink, cmd, status_msg, msg 2785 net/core/devlink.c msg, 0, DEVLINK_MCGRP_CONFIG, GFP_KERNEL); msg 2789 net/core/devlink.c nlmsg_free(msg); msg 2984 net/core/devlink.c devlink_nl_param_value_fill_one(struct sk_buff *msg, msg 2991 net/core/devlink.c param_value_attr = nla_nest_start_noflag(msg, msg 2996 net/core/devlink.c if (nla_put_u8(msg, DEVLINK_ATTR_PARAM_VALUE_CMODE, cmode)) msg 3001 net/core/devlink.c if (nla_put_u8(msg, DEVLINK_ATTR_PARAM_VALUE_DATA, val.vu8)) msg 3005 net/core/devlink.c if (nla_put_u16(msg, DEVLINK_ATTR_PARAM_VALUE_DATA, val.vu16)) msg 3009 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_PARAM_VALUE_DATA, val.vu32)) msg 3013 net/core/devlink.c if (nla_put_string(msg, DEVLINK_ATTR_PARAM_VALUE_DATA, msg 3019 net/core/devlink.c nla_put_flag(msg, DEVLINK_ATTR_PARAM_VALUE_DATA)) msg 3024 net/core/devlink.c nla_nest_end(msg, param_value_attr); msg 3028 net/core/devlink.c nla_nest_cancel(msg, param_value_attr); msg 3033 net/core/devlink.c static int devlink_nl_param_fill(struct sk_buff *msg, struct devlink *devlink, msg 3070 net/core/devlink.c hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd); msg 3074 net/core/devlink.c if (devlink_nl_put_handle(msg, devlink)) msg 3080 net/core/devlink.c if (nla_put_u32(msg, DEVLINK_ATTR_PORT_INDEX, port_index)) msg 3083 net/core/devlink.c param_attr = nla_nest_start_noflag(msg, DEVLINK_ATTR_PARAM); msg 3086 net/core/devlink.c if (nla_put_string(msg, DEVLINK_ATTR_PARAM_NAME, param->name)) msg 3088 net/core/devlink.c if (param->generic && nla_put_flag(msg, DEVLINK_ATTR_PARAM_GENERIC)) msg 3094 net/core/devlink.c if (nla_put_u8(msg, DEVLINK_ATTR_PARAM_TYPE, nla_type)) msg 3097 net/core/devlink.c param_values_list = nla_nest_start_noflag(msg, msg 3105 net/core/devlink.c err = devlink_nl_param_value_fill_one(msg, param->type, msg 3111 net/core/devlink.c nla_nest_end(msg, param_values_list); msg 3112 net/core/devlink.c nla_nest_end(msg, param_attr); msg 3113 net/core/devlink.c genlmsg_end(msg, hdr); msg 3117 net/core/devlink.c nla_nest_end(msg, param_values_list); msg 3119 net/core/devlink.c nla_nest_cancel(msg, param_attr); msg 3121 net/core/devlink.c genlmsg_cancel(msg, hdr); msg 3130 net/core/devlink.c struct sk_buff *msg; msg 3137 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 3138 net/core/devlink.c if (!msg) msg 3140 net/core/devlink.c err = devlink_nl_param_fill(msg, devlink, port_index, param_item, cmd, msg 3143 net/core/devlink.c nlmsg_free(msg); msg 3148 net/core/devlink.c msg, 0, DEVLINK_MCGRP_CONFIG, GFP_KERNEL); msg 3151 net/core/devlink.c static int devlink_nl_cmd_param_get_dumpit(struct sk_buff *msg, msg 3162 net/core/devlink.c if (!net_eq(devlink_net(devlink), sock_net(msg->sk))) msg 3170 net/core/devlink.c err = devlink_nl_param_fill(msg, devlink, 0, param_item, msg 3187 net/core/devlink.c return msg->len; msg 3283 net/core/devlink.c struct sk_buff *msg; msg 3290 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 3291 net/core/devlink.c if (!msg) msg 3294 net/core/devlink.c err = devlink_nl_param_fill(msg, devlink, 0, param_item, msg 3298 net/core/devlink.c nlmsg_free(msg); msg 3302 net/core/devlink.c return genlmsg_reply(msg, info); msg 3413 net/core/devlink.c static int devlink_nl_cmd_port_param_get_dumpit(struct sk_buff *msg, msg 3425 net/core/devlink.c if (!net_eq(devlink_net(devlink), sock_net(msg->sk))) msg 3435 net/core/devlink.c err = devlink_nl_param_fill(msg, msg 3455 net/core/devlink.c return msg->len; msg 3463 net/core/devlink.c struct sk_buff *msg; msg 3471 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 3472 net/core/devlink.c if (!msg) msg 3475 net/core/devlink.c err = devlink_nl_param_fill(msg, devlink_port->devlink, msg 3480 net/core/devlink.c nlmsg_free(msg); msg 3484 net/core/devlink.c return genlmsg_reply(msg, info); msg 3498 net/core/devlink.c static int devlink_nl_region_snapshot_id_put(struct sk_buff *msg, msg 3505 net/core/devlink.c snap_attr = nla_nest_start_noflag(msg, DEVLINK_ATTR_REGION_SNAPSHOT); msg 3509 net/core/devlink.c err = nla_put_u32(msg, DEVLINK_ATTR_REGION_SNAPSHOT_ID, snapshot->id); msg 3513 net/core/devlink.c nla_nest_end(msg, snap_attr); msg 3517 net/core/devlink.c nla_nest_cancel(msg, snap_attr); msg 3521 net/core/devlink.c static int devlink_nl_region_snapshots_id_put(struct sk_buff *msg, msg 3529 net/core/devlink.c snapshots_attr = nla_nest_start_noflag(msg, msg 3535 net/core/devlink.c err = devlink_nl_region_snapshot_id_put(msg, devlink, snapshot); msg 3540 net/core/devlink.c nla_nest_end(msg, snapshots_attr); msg 3544 net/core/devlink.c nla_nest_cancel(msg, snapshots_attr); msg 3548 net/core/devlink.c static int devlink_nl_region_fill(struct sk_buff *msg, struct devlink *devlink, msg 3556 net/core/devlink.c hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd); msg 3560 net/core/devlink.c err = devlink_nl_put_handle(msg, devlink); msg 3564 net/core/devlink.c err = nla_put_string(msg, DEVLINK_ATTR_REGION_NAME, region->name); msg 3568 net/core/devlink.c err = nla_put_u64_64bit(msg, DEVLINK_ATTR_REGION_SIZE, msg 3574 net/core/devlink.c err = devlink_nl_region_snapshots_id_put(msg, devlink, region); msg 3578 net/core/devlink.c genlmsg_end(msg, hdr); msg 3582 net/core/devlink.c genlmsg_cancel(msg, hdr); msg 3591 net/core/devlink.c struct sk_buff *msg; msg 3597 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 3598 net/core/devlink.c if (!msg) msg 3601 net/core/devlink.c hdr = genlmsg_put(msg, 0, 0, &devlink_nl_family, 0, cmd); msg 3605 net/core/devlink.c err = devlink_nl_put_handle(msg, devlink); msg 3609 net/core/devlink.c err = nla_put_string(msg, DEVLINK_ATTR_REGION_NAME, msg 3615 net/core/devlink.c err = nla_put_u32(msg, DEVLINK_ATTR_REGION_SNAPSHOT_ID, msg 3620 net/core/devlink.c err = nla_put_u64_64bit(msg, DEVLINK_ATTR_REGION_SIZE, msg 3625 net/core/devlink.c genlmsg_end(msg, hdr); msg 3628 net/core/devlink.c msg, 0, DEVLINK_MCGRP_CONFIG, GFP_KERNEL); msg 3633 net/core/devlink.c genlmsg_cancel(msg, hdr); msg 3635 net/core/devlink.c nlmsg_free(msg); msg 3654 net/core/devlink.c struct sk_buff *msg; msg 3665 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 3666 net/core/devlink.c if (!msg) msg 3669 net/core/devlink.c err = devlink_nl_region_fill(msg, devlink, DEVLINK_CMD_REGION_GET, msg 3673 net/core/devlink.c nlmsg_free(msg); msg 3677 net/core/devlink.c return genlmsg_reply(msg, info); msg 3680 net/core/devlink.c static int devlink_nl_cmd_region_get_dumpit(struct sk_buff *msg, msg 3691 net/core/devlink.c if (!net_eq(devlink_net(devlink), sock_net(msg->sk))) msg 3700 net/core/devlink.c err = devlink_nl_region_fill(msg, devlink, msg 3716 net/core/devlink.c return msg->len; msg 3747 net/core/devlink.c static int devlink_nl_cmd_region_read_chunk_fill(struct sk_buff *msg, msg 3755 net/core/devlink.c chunk_attr = nla_nest_start_noflag(msg, DEVLINK_ATTR_REGION_CHUNK); msg 3759 net/core/devlink.c err = nla_put(msg, DEVLINK_ATTR_REGION_CHUNK_DATA, chunk_size, chunk); msg 3763 net/core/devlink.c err = nla_put_u64_64bit(msg, DEVLINK_ATTR_REGION_CHUNK_ADDR, addr, msg 3768 net/core/devlink.c nla_nest_end(msg, chunk_attr); msg 3772 net/core/devlink.c nla_nest_cancel(msg, chunk_attr); msg 3954 net/core/devlink.c struct sk_buff *msg; msg 3959 net/core/devlink.c return nla_put_string(req->msg, DEVLINK_ATTR_INFO_DRIVER_NAME, name); msg 3965 net/core/devlink.c return nla_put_string(req->msg, DEVLINK_ATTR_INFO_SERIAL_NUMBER, sn); msg 3976 net/core/devlink.c nest = nla_nest_start_noflag(req->msg, attr); msg 3980 net/core/devlink.c err = nla_put_string(req->msg, DEVLINK_ATTR_INFO_VERSION_NAME, msg 3985 net/core/devlink.c err = nla_put_string(req->msg, DEVLINK_ATTR_INFO_VERSION_VALUE, msg 3990 net/core/devlink.c nla_nest_end(req->msg, nest); msg 3995 net/core/devlink.c nla_nest_cancel(req->msg, nest); msg 4027 net/core/devlink.c devlink_nl_info_fill(struct sk_buff *msg, struct devlink *devlink, msg 4035 net/core/devlink.c hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd); msg 4040 net/core/devlink.c if (devlink_nl_put_handle(msg, devlink)) msg 4043 net/core/devlink.c req.msg = msg; msg 4048 net/core/devlink.c genlmsg_end(msg, hdr); msg 4052 net/core/devlink.c genlmsg_cancel(msg, hdr); msg 4060 net/core/devlink.c struct sk_buff *msg; msg 4066 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 4067 net/core/devlink.c if (!msg) msg 4070 net/core/devlink.c err = devlink_nl_info_fill(msg, devlink, DEVLINK_CMD_INFO_GET, msg 4074 net/core/devlink.c nlmsg_free(msg); msg 4078 net/core/devlink.c return genlmsg_reply(msg, info); msg 4081 net/core/devlink.c static int devlink_nl_cmd_info_get_dumpit(struct sk_buff *msg, msg 4091 net/core/devlink.c if (!net_eq(devlink_net(devlink), sock_net(msg->sk))) msg 4104 net/core/devlink.c err = devlink_nl_info_fill(msg, devlink, DEVLINK_CMD_INFO_GET, msg 4116 net/core/devlink.c return msg->len; msg 4451 net/core/devlink.c devlink_fmsg_item_fill_type(struct devlink_fmsg_item *msg, struct sk_buff *skb) msg 4453 net/core/devlink.c switch (msg->nla_type) { msg 4461 net/core/devlink.c msg->nla_type); msg 4468 net/core/devlink.c devlink_fmsg_item_fill_data(struct devlink_fmsg_item *msg, struct sk_buff *skb) msg 4473 net/core/devlink.c switch (msg->nla_type) { msg 4476 net/core/devlink.c tmp = *(bool *) msg->value; msg 4480 net/core/devlink.c return nla_put_u8(skb, attrtype, *(u8 *) msg->value); msg 4482 net/core/devlink.c return nla_put_u32(skb, attrtype, *(u32 *) msg->value); msg 4484 net/core/devlink.c return nla_put_u64_64bit(skb, attrtype, *(u64 *) msg->value, msg 4487 net/core/devlink.c return nla_put_string(skb, attrtype, (char *) &msg->value); msg 4489 net/core/devlink.c return nla_put(skb, attrtype, msg->len, (void *) &msg->value); msg 4822 net/core/devlink.c const char *msg, void *priv_ctx) msg 4828 net/core/devlink.c WARN_ON(!msg); msg 4829 net/core/devlink.c trace_devlink_health_report(devlink, reporter->ops->name, msg); msg 4929 net/core/devlink.c devlink_nl_health_reporter_fill(struct sk_buff *msg, msg 4938 net/core/devlink.c hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd); msg 4942 net/core/devlink.c if (devlink_nl_put_handle(msg, devlink)) msg 4945 net/core/devlink.c reporter_attr = nla_nest_start_noflag(msg, msg 4949 net/core/devlink.c if (nla_put_string(msg, DEVLINK_ATTR_HEALTH_REPORTER_NAME, msg 4952 net/core/devlink.c if (nla_put_u8(msg, DEVLINK_ATTR_HEALTH_REPORTER_STATE, msg 4955 net/core/devlink.c if (nla_put_u64_64bit(msg, DEVLINK_ATTR_HEALTH_REPORTER_ERR_COUNT, msg 4958 net/core/devlink.c if (nla_put_u64_64bit(msg, DEVLINK_ATTR_HEALTH_REPORTER_RECOVER_COUNT, msg 4962 net/core/devlink.c nla_put_u64_64bit(msg, DEVLINK_ATTR_HEALTH_REPORTER_GRACEFUL_PERIOD, msg 4967 net/core/devlink.c nla_put_u8(msg, DEVLINK_ATTR_HEALTH_REPORTER_AUTO_RECOVER, msg 4971 net/core/devlink.c nla_put_u64_64bit(msg, DEVLINK_ATTR_HEALTH_REPORTER_DUMP_TS, msg 4976 net/core/devlink.c nla_put_u64_64bit(msg, DEVLINK_ATTR_HEALTH_REPORTER_DUMP_TS_NS, msg 4980 net/core/devlink.c nla_nest_end(msg, reporter_attr); msg 4981 net/core/devlink.c genlmsg_end(msg, hdr); msg 4985 net/core/devlink.c nla_nest_end(msg, reporter_attr); msg 4987 net/core/devlink.c genlmsg_cancel(msg, hdr); msg 4996 net/core/devlink.c struct sk_buff *msg; msg 5003 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 5004 net/core/devlink.c if (!msg) { msg 5009 net/core/devlink.c err = devlink_nl_health_reporter_fill(msg, devlink, reporter, msg 5014 net/core/devlink.c nlmsg_free(msg); msg 5018 net/core/devlink.c err = genlmsg_reply(msg, info); msg 5025 net/core/devlink.c devlink_nl_cmd_health_reporter_get_dumpit(struct sk_buff *msg, msg 5036 net/core/devlink.c if (!net_eq(devlink_net(devlink), sock_net(msg->sk))) msg 5045 net/core/devlink.c err = devlink_nl_health_reporter_fill(msg, devlink, msg 5063 net/core/devlink.c return msg->len; msg 5311 net/core/devlink.c static int devlink_trap_metadata_put(struct sk_buff *msg, msg 5316 net/core/devlink.c attr = nla_nest_start(msg, DEVLINK_ATTR_TRAP_METADATA); msg 5321 net/core/devlink.c nla_put_flag(msg, DEVLINK_ATTR_TRAP_METADATA_TYPE_IN_PORT)) msg 5324 net/core/devlink.c nla_nest_end(msg, attr); msg 5329 net/core/devlink.c nla_nest_cancel(msg, attr); msg 5356 net/core/devlink.c static int devlink_trap_stats_put(struct sk_buff *msg, msg 5364 net/core/devlink.c attr = nla_nest_start(msg, DEVLINK_ATTR_STATS); msg 5368 net/core/devlink.c if (nla_put_u64_64bit(msg, DEVLINK_ATTR_STATS_RX_PACKETS, msg 5372 net/core/devlink.c if (nla_put_u64_64bit(msg, DEVLINK_ATTR_STATS_RX_BYTES, msg 5376 net/core/devlink.c nla_nest_end(msg, attr); msg 5381 net/core/devlink.c nla_nest_cancel(msg, attr); msg 5385 net/core/devlink.c static int devlink_nl_trap_fill(struct sk_buff *msg, struct devlink *devlink, msg 5394 net/core/devlink.c hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd); msg 5398 net/core/devlink.c if (devlink_nl_put_handle(msg, devlink)) msg 5401 net/core/devlink.c if (nla_put_string(msg, DEVLINK_ATTR_TRAP_GROUP_NAME, msg 5405 net/core/devlink.c if (nla_put_string(msg, DEVLINK_ATTR_TRAP_NAME, trap_item->trap->name)) msg 5408 net/core/devlink.c if (nla_put_u8(msg, DEVLINK_ATTR_TRAP_TYPE, trap_item->trap->type)) msg 5412 net/core/devlink.c nla_put_flag(msg, DEVLINK_ATTR_TRAP_GENERIC)) msg 5415 net/core/devlink.c if (nla_put_u8(msg, DEVLINK_ATTR_TRAP_ACTION, trap_item->action)) msg 5418 net/core/devlink.c err = devlink_trap_metadata_put(msg, trap_item->trap); msg 5422 net/core/devlink.c err = devlink_trap_stats_put(msg, trap_item->stats); msg 5426 net/core/devlink.c genlmsg_end(msg, hdr); msg 5431 net/core/devlink.c genlmsg_cancel(msg, hdr); msg 5441 net/core/devlink.c struct sk_buff *msg; msg 5453 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 5454 net/core/devlink.c if (!msg) msg 5457 net/core/devlink.c err = devlink_nl_trap_fill(msg, devlink, trap_item, msg 5463 net/core/devlink.c return genlmsg_reply(msg, info); msg 5466 net/core/devlink.c nlmsg_free(msg); msg 5470 net/core/devlink.c static int devlink_nl_cmd_trap_get_dumpit(struct sk_buff *msg, msg 5481 net/core/devlink.c if (!net_eq(devlink_net(devlink), sock_net(msg->sk))) msg 5489 net/core/devlink.c err = devlink_nl_trap_fill(msg, devlink, trap_item, msg 5506 net/core/devlink.c return msg->len; msg 5603 net/core/devlink.c devlink_nl_trap_group_fill(struct sk_buff *msg, struct devlink *devlink, msg 5611 net/core/devlink.c hdr = genlmsg_put(msg, portid, seq, &devlink_nl_family, flags, cmd); msg 5615 net/core/devlink.c if (devlink_nl_put_handle(msg, devlink)) msg 5618 net/core/devlink.c if (nla_put_string(msg, DEVLINK_ATTR_TRAP_GROUP_NAME, msg 5623 net/core/devlink.c nla_put_flag(msg, DEVLINK_ATTR_TRAP_GENERIC)) msg 5626 net/core/devlink.c err = devlink_trap_stats_put(msg, group_item->stats); msg 5630 net/core/devlink.c genlmsg_end(msg, hdr); msg 5635 net/core/devlink.c genlmsg_cancel(msg, hdr); msg 5645 net/core/devlink.c struct sk_buff *msg; msg 5657 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 5658 net/core/devlink.c if (!msg) msg 5661 net/core/devlink.c err = devlink_nl_trap_group_fill(msg, devlink, group_item, msg 5667 net/core/devlink.c return genlmsg_reply(msg, info); msg 5670 net/core/devlink.c nlmsg_free(msg); msg 5674 net/core/devlink.c static int devlink_nl_cmd_trap_group_get_dumpit(struct sk_buff *msg, msg 5687 net/core/devlink.c if (!net_eq(devlink_net(devlink), sock_net(msg->sk))) msg 5696 net/core/devlink.c err = devlink_nl_trap_group_fill(msg, devlink, msg 5713 net/core/devlink.c return msg->len; msg 7651 net/core/devlink.c struct sk_buff *msg; msg 7657 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 7658 net/core/devlink.c if (!msg) msg 7661 net/core/devlink.c err = devlink_nl_trap_group_fill(msg, devlink, group_item, cmd, 0, 0, msg 7664 net/core/devlink.c nlmsg_free(msg); msg 7669 net/core/devlink.c msg, 0, DEVLINK_MCGRP_CONFIG, GFP_KERNEL); msg 7778 net/core/devlink.c struct sk_buff *msg; msg 7784 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 7785 net/core/devlink.c if (!msg) msg 7788 net/core/devlink.c err = devlink_nl_trap_fill(msg, devlink, trap_item, cmd, 0, 0, 0); msg 7790 net/core/devlink.c nlmsg_free(msg); msg 7795 net/core/devlink.c msg, 0, DEVLINK_MCGRP_CONFIG, GFP_KERNEL); msg 8013 net/core/devlink.c struct sk_buff *msg; msg 8016 net/core/devlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 8017 net/core/devlink.c if (!msg) msg 8020 net/core/devlink.c req.msg = msg; msg 8025 net/core/devlink.c nla_for_each_attr(nlattr, (void *)msg->data, msg->len, rem) { msg 8041 net/core/devlink.c nlmsg_free(msg); msg 132 net/core/drop_monitor.c struct net_dm_alert_msg *msg; msg 161 net/core/drop_monitor.c msg = nla_data(nla); msg 162 net/core/drop_monitor.c memset(msg, 0, al); msg 214 net/core/drop_monitor.c struct net_dm_alert_msg *msg; msg 233 net/core/drop_monitor.c msg = nla_data(nla); msg 234 net/core/drop_monitor.c point = msg->points; msg 235 net/core/drop_monitor.c for (i = 0; i < msg->entries; i++) { msg 242 net/core/drop_monitor.c if (msg->entries == dm_hit_limit) msg 251 net/core/drop_monitor.c msg->entries++; msg 321 net/core/drop_monitor.c static int net_dm_hw_entry_put(struct sk_buff *msg, msg 326 net/core/drop_monitor.c attr = nla_nest_start(msg, NET_DM_ATTR_HW_ENTRY); msg 330 net/core/drop_monitor.c if (nla_put_string(msg, NET_DM_ATTR_HW_TRAP_NAME, hw_entry->trap_name)) msg 333 net/core/drop_monitor.c if (nla_put_u32(msg, NET_DM_ATTR_HW_TRAP_COUNT, hw_entry->count)) msg 336 net/core/drop_monitor.c nla_nest_end(msg, attr); msg 341 net/core/drop_monitor.c nla_nest_cancel(msg, attr); msg 345 net/core/drop_monitor.c static int net_dm_hw_entries_put(struct sk_buff *msg, msg 351 net/core/drop_monitor.c attr = nla_nest_start(msg, NET_DM_ATTR_HW_ENTRIES); msg 358 net/core/drop_monitor.c rc = net_dm_hw_entry_put(msg, &hw_entries->entries[i]); msg 363 net/core/drop_monitor.c nla_nest_end(msg, attr); msg 368 net/core/drop_monitor.c nla_nest_cancel(msg, attr); msg 373 net/core/drop_monitor.c net_dm_hw_summary_report_fill(struct sk_buff *msg, msg 380 net/core/drop_monitor.c hdr = genlmsg_put(msg, 0, 0, &net_drop_monitor_family, 0, msg 388 net/core/drop_monitor.c if (nla_put(msg, NLA_UNSPEC, sizeof(anc_hdr), &anc_hdr)) msg 391 net/core/drop_monitor.c rc = net_dm_hw_entries_put(msg, hw_entries); msg 395 net/core/drop_monitor.c genlmsg_end(msg, hdr); msg 400 net/core/drop_monitor.c genlmsg_cancel(msg, hdr); msg 408 net/core/drop_monitor.c struct sk_buff *msg; msg 417 net/core/drop_monitor.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 418 net/core/drop_monitor.c if (!msg) msg 421 net/core/drop_monitor.c rc = net_dm_hw_summary_report_fill(msg, hw_entries); msg 423 net/core/drop_monitor.c nlmsg_free(msg); msg 427 net/core/drop_monitor.c genlmsg_multicast(&net_drop_monitor_family, msg, 0, 0, GFP_KERNEL); msg 570 net/core/drop_monitor.c static int net_dm_packet_report_in_port_put(struct sk_buff *msg, int ifindex, msg 575 net/core/drop_monitor.c attr = nla_nest_start(msg, NET_DM_ATTR_IN_PORT); msg 580 net/core/drop_monitor.c nla_put_u32(msg, NET_DM_ATTR_PORT_NETDEV_IFINDEX, ifindex)) msg 583 net/core/drop_monitor.c if (name && nla_put_string(msg, NET_DM_ATTR_PORT_NETDEV_NAME, name)) msg 586 net/core/drop_monitor.c nla_nest_end(msg, attr); msg 591 net/core/drop_monitor.c nla_nest_cancel(msg, attr); msg 595 net/core/drop_monitor.c static int net_dm_packet_report_fill(struct sk_buff *msg, struct sk_buff *skb, msg 604 net/core/drop_monitor.c hdr = genlmsg_put(msg, 0, 0, &net_drop_monitor_family, 0, msg 609 net/core/drop_monitor.c if (nla_put_u16(msg, NET_DM_ATTR_ORIGIN, NET_DM_ORIGIN_SW)) msg 612 net/core/drop_monitor.c if (nla_put_u64_64bit(msg, NET_DM_ATTR_PC, pc, NET_DM_ATTR_PAD)) msg 616 net/core/drop_monitor.c if (nla_put_string(msg, NET_DM_ATTR_SYMBOL, buf)) msg 619 net/core/drop_monitor.c rc = net_dm_packet_report_in_port_put(msg, skb->skb_iif, NULL); msg 623 net/core/drop_monitor.c if (nla_put_u64_64bit(msg, NET_DM_ATTR_TIMESTAMP, msg 627 net/core/drop_monitor.c if (nla_put_u32(msg, NET_DM_ATTR_ORIG_LEN, skb->len)) msg 633 net/core/drop_monitor.c if (nla_put_u16(msg, NET_DM_ATTR_PROTO, be16_to_cpu(skb->protocol))) msg 636 net/core/drop_monitor.c attr = skb_put(msg, nla_total_size(payload_len)); msg 643 net/core/drop_monitor.c genlmsg_end(msg, hdr); msg 648 net/core/drop_monitor.c genlmsg_cancel(msg, hdr); msg 656 net/core/drop_monitor.c struct sk_buff *msg; msg 671 net/core/drop_monitor.c msg = nlmsg_new(net_dm_packet_report_size(payload_len), GFP_KERNEL); msg 672 net/core/drop_monitor.c if (!msg) msg 675 net/core/drop_monitor.c rc = net_dm_packet_report_fill(msg, skb, payload_len); msg 677 net/core/drop_monitor.c nlmsg_free(msg); msg 681 net/core/drop_monitor.c genlmsg_multicast(&net_drop_monitor_family, msg, 0, 0, GFP_KERNEL); msg 733 net/core/drop_monitor.c static int net_dm_hw_packet_report_fill(struct sk_buff *msg, msg 742 net/core/drop_monitor.c hdr = genlmsg_put(msg, 0, 0, &net_drop_monitor_family, 0, msg 747 net/core/drop_monitor.c if (nla_put_u16(msg, NET_DM_ATTR_ORIGIN, NET_DM_ORIGIN_HW)) msg 750 net/core/drop_monitor.c if (nla_put_string(msg, NET_DM_ATTR_HW_TRAP_GROUP_NAME, msg 754 net/core/drop_monitor.c if (nla_put_string(msg, NET_DM_ATTR_HW_TRAP_NAME, msg 762 net/core/drop_monitor.c rc = net_dm_packet_report_in_port_put(msg, dev->ifindex, msg 768 net/core/drop_monitor.c if (nla_put_u64_64bit(msg, NET_DM_ATTR_TIMESTAMP, msg 772 net/core/drop_monitor.c if (nla_put_u32(msg, NET_DM_ATTR_ORIG_LEN, skb->len)) msg 778 net/core/drop_monitor.c if (nla_put_u16(msg, NET_DM_ATTR_PROTO, be16_to_cpu(skb->protocol))) msg 781 net/core/drop_monitor.c attr = skb_put(msg, nla_total_size(payload_len)); msg 788 net/core/drop_monitor.c genlmsg_end(msg, hdr); msg 793 net/core/drop_monitor.c genlmsg_cancel(msg, hdr); msg 848 net/core/drop_monitor.c struct sk_buff *msg; msg 862 net/core/drop_monitor.c msg = nlmsg_new(net_dm_hw_packet_report_size(payload_len, hw_metadata), msg 864 net/core/drop_monitor.c if (!msg) msg 867 net/core/drop_monitor.c rc = net_dm_hw_packet_report_fill(msg, skb, payload_len); msg 869 net/core/drop_monitor.c nlmsg_free(msg); msg 873 net/core/drop_monitor.c genlmsg_multicast(&net_drop_monitor_family, msg, 0, 0, GFP_KERNEL); msg 1294 net/core/drop_monitor.c static int net_dm_config_fill(struct sk_buff *msg, struct genl_info *info) msg 1298 net/core/drop_monitor.c hdr = genlmsg_put(msg, info->snd_portid, info->snd_seq, msg 1303 net/core/drop_monitor.c if (nla_put_u8(msg, NET_DM_ATTR_ALERT_MODE, net_dm_alert_mode)) msg 1306 net/core/drop_monitor.c if (nla_put_u32(msg, NET_DM_ATTR_TRUNC_LEN, net_dm_trunc_len)) msg 1309 net/core/drop_monitor.c if (nla_put_u32(msg, NET_DM_ATTR_QUEUE_LEN, net_dm_queue_len)) msg 1312 net/core/drop_monitor.c genlmsg_end(msg, hdr); msg 1317 net/core/drop_monitor.c genlmsg_cancel(msg, hdr); msg 1323 net/core/drop_monitor.c struct sk_buff *msg; msg 1326 net/core/drop_monitor.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 1327 net/core/drop_monitor.c if (!msg) msg 1330 net/core/drop_monitor.c rc = net_dm_config_fill(msg, info); msg 1334 net/core/drop_monitor.c return genlmsg_reply(msg, info); msg 1337 net/core/drop_monitor.c nlmsg_free(msg); msg 1361 net/core/drop_monitor.c static int net_dm_stats_put(struct sk_buff *msg) msg 1368 net/core/drop_monitor.c attr = nla_nest_start(msg, NET_DM_ATTR_STATS); msg 1372 net/core/drop_monitor.c if (nla_put_u64_64bit(msg, NET_DM_ATTR_STATS_DROPPED, msg 1376 net/core/drop_monitor.c nla_nest_end(msg, attr); msg 1381 net/core/drop_monitor.c nla_nest_cancel(msg, attr); msg 1405 net/core/drop_monitor.c static int net_dm_hw_stats_put(struct sk_buff *msg) msg 1412 net/core/drop_monitor.c attr = nla_nest_start(msg, NET_DM_ATTR_HW_STATS); msg 1416 net/core/drop_monitor.c if (nla_put_u64_64bit(msg, NET_DM_ATTR_STATS_DROPPED, msg 1420 net/core/drop_monitor.c nla_nest_end(msg, attr); msg 1425 net/core/drop_monitor.c nla_nest_cancel(msg, attr); msg 1429 net/core/drop_monitor.c static int net_dm_stats_fill(struct sk_buff *msg, struct genl_info *info) msg 1434 net/core/drop_monitor.c hdr = genlmsg_put(msg, info->snd_portid, info->snd_seq, msg 1439 net/core/drop_monitor.c rc = net_dm_stats_put(msg); msg 1443 net/core/drop_monitor.c rc = net_dm_hw_stats_put(msg); msg 1447 net/core/drop_monitor.c genlmsg_end(msg, hdr); msg 1452 net/core/drop_monitor.c genlmsg_cancel(msg, hdr); msg 1458 net/core/drop_monitor.c struct sk_buff *msg; msg 1461 net/core/drop_monitor.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 1462 net/core/drop_monitor.c if (!msg) msg 1465 net/core/drop_monitor.c rc = net_dm_stats_fill(msg, info); msg 1469 net/core/drop_monitor.c return genlmsg_reply(msg, info); msg 1472 net/core/drop_monitor.c nlmsg_free(msg); msg 2191 net/core/filter.c BPF_CALL_2(bpf_msg_apply_bytes, struct sk_msg *, msg, u32, bytes) msg 2193 net/core/filter.c msg->apply_bytes = bytes; msg 2205 net/core/filter.c BPF_CALL_2(bpf_msg_cork_bytes, struct sk_msg *, msg, u32, bytes) msg 2207 net/core/filter.c msg->cork_bytes = bytes; msg 2219 net/core/filter.c BPF_CALL_4(bpf_msg_pull_data, struct sk_msg *, msg, u32, start, msg 2232 net/core/filter.c i = msg->sg.start; msg 2235 net/core/filter.c len = sk_msg_elem(msg, i)->length; msg 2239 net/core/filter.c } while (i != msg->sg.end); msg 2249 net/core/filter.c if (!msg->sg.copy[i] && bytes_sg_total <= len) msg 2263 net/core/filter.c copy += sk_msg_elem(msg, i)->length; msg 2267 net/core/filter.c } while (i != msg->sg.end); msg 2281 net/core/filter.c sge = sk_msg_elem(msg, i); msg 2294 net/core/filter.c sg_set_page(&msg->sg.data[first_sge], page, copy, 0); msg 2316 net/core/filter.c if (move_from == msg->sg.end) msg 2319 net/core/filter.c msg->sg.data[i] = msg->sg.data[move_from]; msg 2320 net/core/filter.c msg->sg.data[move_from].length = 0; msg 2321 net/core/filter.c msg->sg.data[move_from].page_link = 0; msg 2322 net/core/filter.c msg->sg.data[move_from].offset = 0; msg 2326 net/core/filter.c msg->sg.end = msg->sg.end - shift > msg->sg.end ? msg 2327 net/core/filter.c msg->sg.end - shift + NR_MSG_FRAG_IDS : msg 2328 net/core/filter.c msg->sg.end - shift; msg 2330 net/core/filter.c msg->data = sg_virt(&msg->sg.data[first_sge]) + start - offset; msg 2331 net/core/filter.c msg->data_end = msg->data + bytes; msg 2345 net/core/filter.c BPF_CALL_4(bpf_msg_push_data, struct sk_msg *, msg, u32, start, msg 2357 net/core/filter.c i = msg->sg.start; msg 2360 net/core/filter.c l = sk_msg_elem(msg, i)->length; msg 2365 net/core/filter.c } while (i != msg->sg.end); msg 2370 net/core/filter.c space = MAX_MSG_FRAGS - sk_msg_elem_used(msg); msg 2380 net/core/filter.c copy = msg->sg.data[i].length; msg 2392 net/core/filter.c psge = sk_msg_elem(msg, i); msg 2409 net/core/filter.c psge = sk_msg_elem(msg, i); msg 2410 net/core/filter.c rsge = sk_msg_elem_cpy(msg, i); msg 2419 net/core/filter.c sk_msg_iter_next(msg, end); msg 2427 net/core/filter.c sge = sk_msg_elem_cpy(msg, i); msg 2431 net/core/filter.c sk_msg_iter_next(msg, end); msg 2433 net/core/filter.c nsge = sk_msg_elem_cpy(msg, i); msg 2436 net/core/filter.c nnsge = sk_msg_elem_cpy(msg, i); msg 2439 net/core/filter.c while (i != msg->sg.end) { msg 2440 net/core/filter.c msg->sg.data[i] = sge; msg 2445 net/core/filter.c nnsge = sk_msg_elem_cpy(msg, i); msg 2447 net/core/filter.c nsge = sk_msg_elem_cpy(msg, i); msg 2453 net/core/filter.c sk_mem_charge(msg->sk, len); msg 2454 net/core/filter.c msg->sg.size += len; msg 2455 net/core/filter.c msg->sg.copy[new] = false; msg 2456 net/core/filter.c sg_set_page(&msg->sg.data[new], page, len + copy, 0); msg 2460 net/core/filter.c msg->sg.data[new] = rsge; msg 2463 net/core/filter.c sk_msg_compute_data_pointers(msg); msg 2477 net/core/filter.c static void sk_msg_shift_left(struct sk_msg *msg, int i) msg 2484 net/core/filter.c msg->sg.data[prev] = msg->sg.data[i]; msg 2485 net/core/filter.c } while (i != msg->sg.end); msg 2487 net/core/filter.c sk_msg_iter_prev(msg, end); msg 2490 net/core/filter.c static void sk_msg_shift_right(struct sk_msg *msg, int i) msg 2494 net/core/filter.c sk_msg_iter_next(msg, end); msg 2495 net/core/filter.c sge = sk_msg_elem_cpy(msg, i); msg 2497 net/core/filter.c tmp = sk_msg_elem_cpy(msg, i); msg 2499 net/core/filter.c while (i != msg->sg.end) { msg 2500 net/core/filter.c msg->sg.data[i] = sge; msg 2503 net/core/filter.c tmp = sk_msg_elem_cpy(msg, i); msg 2507 net/core/filter.c BPF_CALL_4(bpf_msg_pop_data, struct sk_msg *, msg, u32, start, msg 2518 net/core/filter.c i = msg->sg.start; msg 2521 net/core/filter.c l = sk_msg_elem(msg, i)->length; msg 2526 net/core/filter.c } while (i != msg->sg.end); msg 2529 net/core/filter.c if (start >= offset + l || last >= msg->sg.size) msg 2532 net/core/filter.c space = MAX_MSG_FRAGS - sk_msg_elem_used(msg); msg 2557 net/core/filter.c struct scatterlist *nsge, *sge = sk_msg_elem(msg, i); msg 2566 net/core/filter.c sk_msg_shift_right(msg, i); msg 2567 net/core/filter.c nsge = sk_msg_elem(msg, i); msg 2616 net/core/filter.c struct scatterlist *sge = sk_msg_elem(msg, i); msg 2624 net/core/filter.c sk_msg_shift_left(msg, i); msg 2629 net/core/filter.c sk_mem_uncharge(msg->sk, len - pop); msg 2630 net/core/filter.c msg->sg.size -= (len - pop); msg 2631 net/core/filter.c sk_msg_compute_data_pointers(msg); msg 878 net/core/net_namespace.c struct sk_buff *msg; msg 921 net/core/net_namespace.c msg = nlmsg_new(rtnl_net_get_size(), GFP_KERNEL); msg 922 net/core/net_namespace.c if (!msg) { msg 928 net/core/net_namespace.c err = rtnl_net_fill(msg, &fillargs); msg 932 net/core/net_namespace.c err = rtnl_unicast(msg, net, NETLINK_CB(skb).portid); msg 936 net/core/net_namespace.c nlmsg_free(msg); msg 1067 net/core/net_namespace.c struct sk_buff *msg; msg 1070 net/core/net_namespace.c msg = nlmsg_new(rtnl_net_get_size(), gfp); msg 1071 net/core/net_namespace.c if (!msg) msg 1074 net/core/net_namespace.c err = rtnl_net_fill(msg, &fillargs); msg 1078 net/core/net_namespace.c rtnl_notify(msg, net, portid, RTNLGRP_NSID, nlh, gfp); msg 1082 net/core/net_namespace.c nlmsg_free(msg); msg 362 net/core/netpoll.c void netpoll_send_udp(struct netpoll *np, const char *msg, int len) msg 387 net/core/netpoll.c skb_copy_to_linear_data(skb, msg, len); msg 131 net/core/scm.c int __scm_send(struct socket *sock, struct msghdr *msg, struct scm_cookie *p) msg 136 net/core/scm.c for_each_cmsghdr(cmsg, msg) { msg 147 net/core/scm.c if (!CMSG_OK(msg, cmsg)) msg 213 net/core/scm.c int put_cmsg(struct msghdr * msg, int level, int type, int len, void *data) msg 216 net/core/scm.c = (__force struct cmsghdr __user *)msg->msg_control; msg 221 net/core/scm.c if (MSG_CMSG_COMPAT & msg->msg_flags) msg 222 net/core/scm.c return put_cmsg_compat(msg, level, type, len, data); msg 224 net/core/scm.c if (cm==NULL || msg->msg_controllen < sizeof(*cm)) { msg 225 net/core/scm.c msg->msg_flags |= MSG_CTRUNC; msg 228 net/core/scm.c if (msg->msg_controllen < cmlen) { msg 229 net/core/scm.c msg->msg_flags |= MSG_CTRUNC; msg 230 net/core/scm.c cmlen = msg->msg_controllen; msg 242 net/core/scm.c if (msg->msg_controllen < cmlen) msg 243 net/core/scm.c cmlen = msg->msg_controllen; msg 244 net/core/scm.c msg->msg_control += cmlen; msg 245 net/core/scm.c msg->msg_controllen -= cmlen; msg 252 net/core/scm.c void put_cmsg_scm_timestamping64(struct msghdr *msg, struct scm_timestamping_internal *tss_internal) msg 262 net/core/scm.c put_cmsg(msg, SOL_SOCKET, SO_TIMESTAMPING_NEW, sizeof(tss), &tss); msg 266 net/core/scm.c void put_cmsg_scm_timestamping(struct msghdr *msg, struct scm_timestamping_internal *tss_internal) msg 274 net/core/scm.c put_cmsg(msg, SOL_SOCKET, SO_TIMESTAMPING_OLD, sizeof(tss), &tss); msg 278 net/core/scm.c void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm) msg 281 net/core/scm.c = (__force struct cmsghdr __user*)msg->msg_control; msg 289 net/core/scm.c if (MSG_CMSG_COMPAT & msg->msg_flags) { msg 290 net/core/scm.c scm_detach_fds_compat(msg, scm); msg 294 net/core/scm.c if (msg->msg_controllen > sizeof(struct cmsghdr)) msg 295 net/core/scm.c fdmax = ((msg->msg_controllen - sizeof(struct cmsghdr)) msg 309 net/core/scm.c err = get_unused_fd_flags(MSG_CMSG_CLOEXEC & msg->msg_flags msg 338 net/core/scm.c if (msg->msg_controllen < cmlen) msg 339 net/core/scm.c cmlen = msg->msg_controllen; msg 340 net/core/scm.c msg->msg_control += cmlen; msg 341 net/core/scm.c msg->msg_controllen -= cmlen; msg 345 net/core/scm.c msg->msg_flags |= MSG_CTRUNC; msg 102 net/core/skbuff.c const char msg[]) msg 105 net/core/skbuff.c msg, addr, skb->len, sz, skb->head, skb->data, msg 1270 net/core/skbuff.c int skb_zerocopy_iter_dgram(struct sk_buff *skb, struct msghdr *msg, int len) msg 1272 net/core/skbuff.c return __zerocopy_sg_from_iter(skb->sk, skb, &msg->msg_iter, len); msg 1277 net/core/skbuff.c struct msghdr *msg, int len, msg 1281 net/core/skbuff.c struct iov_iter orig_iter = msg->msg_iter; msg 1290 net/core/skbuff.c err = __zerocopy_sg_from_iter(sk, skb, &msg->msg_iter, len); msg 1295 net/core/skbuff.c msg->msg_iter = orig_iter; msg 2463 net/core/skbuff.c struct msghdr msg; msg 2468 net/core/skbuff.c memset(&msg, 0, sizeof(msg)); msg 2469 net/core/skbuff.c msg.msg_flags = MSG_DONTWAIT; msg 2471 net/core/skbuff.c ret = kernel_sendmsg_locked(sk, &msg, &kv, 1, slen); msg 11 net/core/skmsg.c static bool sk_msg_try_coalesce_ok(struct sk_msg *msg, int elem_first_coalesce) msg 13 net/core/skmsg.c if (msg->sg.end > msg->sg.start && msg 14 net/core/skmsg.c elem_first_coalesce < msg->sg.end) msg 17 net/core/skmsg.c if (msg->sg.end < msg->sg.start && msg 18 net/core/skmsg.c (elem_first_coalesce > msg->sg.start || msg 19 net/core/skmsg.c elem_first_coalesce < msg->sg.end)) msg 25 net/core/skmsg.c int sk_msg_alloc(struct sock *sk, struct sk_msg *msg, int len, msg 31 net/core/skmsg.c len -= msg->sg.size; msg 45 net/core/skmsg.c i = msg->sg.end; msg 47 net/core/skmsg.c sge = &msg->sg.data[i]; msg 49 net/core/skmsg.c if (sk_msg_try_coalesce_ok(msg, elem_first_coalesce) && msg 54 net/core/skmsg.c if (sk_msg_full(msg)) { msg 59 net/core/skmsg.c sge = &msg->sg.data[msg->sg.end]; msg 63 net/core/skmsg.c sk_msg_iter_next(msg, end); msg 67 net/core/skmsg.c msg->sg.size += use; msg 127 net/core/skmsg.c void sk_msg_return_zero(struct sock *sk, struct sk_msg *msg, int bytes) msg 129 net/core/skmsg.c int i = msg->sg.start; msg 132 net/core/skmsg.c struct scatterlist *sge = sk_msg_elem(msg, i); msg 146 net/core/skmsg.c } while (bytes && i != msg->sg.end); msg 147 net/core/skmsg.c msg->sg.start = i; msg 151 net/core/skmsg.c void sk_msg_return(struct sock *sk, struct sk_msg *msg, int bytes) msg 153 net/core/skmsg.c int i = msg->sg.start; msg 156 net/core/skmsg.c struct scatterlist *sge = &msg->sg.data[i]; msg 162 net/core/skmsg.c } while (i != msg->sg.end); msg 166 net/core/skmsg.c static int sk_msg_free_elem(struct sock *sk, struct sk_msg *msg, u32 i, msg 169 net/core/skmsg.c struct scatterlist *sge = sk_msg_elem(msg, i); msg 174 net/core/skmsg.c if (!msg->skb) msg 180 net/core/skmsg.c static int __sk_msg_free(struct sock *sk, struct sk_msg *msg, u32 i, msg 183 net/core/skmsg.c struct scatterlist *sge = sk_msg_elem(msg, i); msg 186 net/core/skmsg.c while (msg->sg.size) { msg 187 net/core/skmsg.c msg->sg.size -= sge->length; msg 188 net/core/skmsg.c freed += sk_msg_free_elem(sk, msg, i, charge); msg 190 net/core/skmsg.c sk_msg_check_to_free(msg, i, msg->sg.size); msg 191 net/core/skmsg.c sge = sk_msg_elem(msg, i); msg 193 net/core/skmsg.c consume_skb(msg->skb); msg 194 net/core/skmsg.c sk_msg_init(msg); msg 198 net/core/skmsg.c int sk_msg_free_nocharge(struct sock *sk, struct sk_msg *msg) msg 200 net/core/skmsg.c return __sk_msg_free(sk, msg, msg->sg.start, false); msg 204 net/core/skmsg.c int sk_msg_free(struct sock *sk, struct sk_msg *msg) msg 206 net/core/skmsg.c return __sk_msg_free(sk, msg, msg->sg.start, true); msg 210 net/core/skmsg.c static void __sk_msg_free_partial(struct sock *sk, struct sk_msg *msg, msg 214 net/core/skmsg.c u32 i = msg->sg.start; msg 217 net/core/skmsg.c sge = sk_msg_elem(msg, i); msg 225 net/core/skmsg.c msg->sg.size -= bytes; msg 229 net/core/skmsg.c msg->sg.size -= sge->length; msg 231 net/core/skmsg.c sk_msg_free_elem(sk, msg, i, charge); msg 233 net/core/skmsg.c sk_msg_check_to_free(msg, i, bytes); msg 235 net/core/skmsg.c msg->sg.start = i; msg 238 net/core/skmsg.c void sk_msg_free_partial(struct sock *sk, struct sk_msg *msg, u32 bytes) msg 240 net/core/skmsg.c __sk_msg_free_partial(sk, msg, bytes, true); msg 244 net/core/skmsg.c void sk_msg_free_partial_nocharge(struct sock *sk, struct sk_msg *msg, msg 247 net/core/skmsg.c __sk_msg_free_partial(sk, msg, bytes, false); msg 250 net/core/skmsg.c void sk_msg_trim(struct sock *sk, struct sk_msg *msg, int len) msg 252 net/core/skmsg.c int trim = msg->sg.size - len; msg 253 net/core/skmsg.c u32 i = msg->sg.end; msg 261 net/core/skmsg.c msg->sg.size = len; msg 262 net/core/skmsg.c while (msg->sg.data[i].length && msg 263 net/core/skmsg.c trim >= msg->sg.data[i].length) { msg 264 net/core/skmsg.c trim -= msg->sg.data[i].length; msg 265 net/core/skmsg.c sk_msg_free_elem(sk, msg, i, true); msg 271 net/core/skmsg.c msg->sg.data[i].length -= trim; msg 274 net/core/skmsg.c if (msg->sg.curr == i && msg->sg.copybreak > msg->sg.data[i].length) msg 275 net/core/skmsg.c msg->sg.copybreak = msg->sg.data[i].length; msg 278 net/core/skmsg.c msg->sg.end = i; msg 286 net/core/skmsg.c if (!msg->sg.size) { msg 287 net/core/skmsg.c msg->sg.curr = msg->sg.start; msg 288 net/core/skmsg.c msg->sg.copybreak = 0; msg 289 net/core/skmsg.c } else if (sk_msg_iter_dist(msg->sg.start, msg->sg.curr) >= msg 290 net/core/skmsg.c sk_msg_iter_dist(msg->sg.start, msg->sg.end)) { msg 292 net/core/skmsg.c msg->sg.curr = i; msg 293 net/core/skmsg.c msg->sg.copybreak = msg->sg.data[i].length; msg 299 net/core/skmsg.c struct sk_msg *msg, u32 bytes) msg 301 net/core/skmsg.c int i, maxpages, ret = 0, num_elems = sk_msg_elem_used(msg); msg 306 net/core/skmsg.c orig = msg->sg.size; msg 324 net/core/skmsg.c msg->sg.size += copied; msg 328 net/core/skmsg.c sg_set_page(&msg->sg.data[msg->sg.end], msg 330 net/core/skmsg.c sg_unmark_end(&msg->sg.data[msg->sg.end]); msg 335 net/core/skmsg.c sk_msg_iter_next(msg, end); msg 343 net/core/skmsg.c msg->sg.copybreak = 0; msg 344 net/core/skmsg.c msg->sg.curr = msg->sg.end; msg 351 net/core/skmsg.c iov_iter_revert(from, msg->sg.size - orig); msg 357 net/core/skmsg.c struct sk_msg *msg, u32 bytes) msg 359 net/core/skmsg.c int ret = -ENOSPC, i = msg->sg.curr; msg 365 net/core/skmsg.c sge = sk_msg_elem(msg, i); msg 367 net/core/skmsg.c if (msg->sg.copybreak >= sge->length) { msg 368 net/core/skmsg.c msg->sg.copybreak = 0; msg 370 net/core/skmsg.c if (i == msg->sg.end) msg 372 net/core/skmsg.c sge = sk_msg_elem(msg, i); msg 375 net/core/skmsg.c buf_size = sge->length - msg->sg.copybreak; msg 377 net/core/skmsg.c to = sg_virt(sge) + msg->sg.copybreak; msg 378 net/core/skmsg.c msg->sg.copybreak += copy; msg 390 net/core/skmsg.c msg->sg.copybreak = 0; msg 392 net/core/skmsg.c } while (i != msg->sg.end); msg 394 net/core/skmsg.c msg->sg.curr = i; msg 403 net/core/skmsg.c struct sk_msg *msg; msg 405 net/core/skmsg.c msg = kzalloc(sizeof(*msg), __GFP_NOWARN | GFP_ATOMIC); msg 406 net/core/skmsg.c if (unlikely(!msg)) msg 409 net/core/skmsg.c kfree(msg); msg 413 net/core/skmsg.c sk_msg_init(msg); msg 414 net/core/skmsg.c num_sge = skb_to_sgvec(skb, msg->sg.data, 0, skb->len); msg 416 net/core/skmsg.c kfree(msg); msg 422 net/core/skmsg.c msg->sg.start = 0; msg 423 net/core/skmsg.c msg->sg.size = copied; msg 424 net/core/skmsg.c msg->sg.end = num_sge; msg 425 net/core/skmsg.c msg->skb = skb; msg 427 net/core/skmsg.c sk_psock_queue_msg(psock, msg); msg 537 net/core/skmsg.c struct sk_msg *msg, *tmp; msg 539 net/core/skmsg.c list_for_each_entry_safe(msg, tmp, &psock->ingress_msg, list) { msg 540 net/core/skmsg.c list_del(&msg->list); msg 541 net/core/skmsg.c sk_msg_free(psock->sk, msg); msg 542 net/core/skmsg.c kfree(msg); msg 626 net/core/skmsg.c struct sk_msg *msg) msg 639 net/core/skmsg.c sk_msg_compute_data_pointers(msg); msg 640 net/core/skmsg.c msg->sk = sk; msg 641 net/core/skmsg.c ret = BPF_PROG_RUN(prog, msg); msg 642 net/core/skmsg.c ret = sk_psock_map_verd(ret, msg->sk_redir); msg 643 net/core/skmsg.c psock->apply_bytes = msg->apply_bytes; msg 647 net/core/skmsg.c psock->sk_redir = msg->sk_redir; msg 2268 net/core/sock.c int __sock_cmsg_send(struct sock *sk, struct msghdr *msg, struct cmsghdr *cmsg, msg 2310 net/core/sock.c int sock_cmsg_send(struct sock *sk, struct msghdr *msg, msg 2316 net/core/sock.c for_each_cmsghdr(cmsg, msg) { msg 2317 net/core/sock.c if (!CMSG_OK(msg, cmsg)) msg 2321 net/core/sock.c ret = __sock_cmsg_send(sk, msg, cmsg, sockc); msg 2740 net/core/sock.c struct msghdr msg = {.msg_flags = flags}; msg 2745 net/core/sock.c res = kernel_sendmsg(sock, &msg, &iov, 1, size); msg 2755 net/core/sock.c struct msghdr msg = {.msg_flags = flags}; msg 2761 net/core/sock.c res = kernel_sendmsg_locked(sk, &msg, &iov, 1, size); msg 3065 net/core/sock.c int sock_recv_errqueue(struct sock *sk, struct msghdr *msg, int len, msg 3079 net/core/sock.c msg->msg_flags |= MSG_TRUNC; msg 3082 net/core/sock.c err = skb_copy_datagram_msg(skb, 0, msg, copied); msg 3086 net/core/sock.c sock_recv_timestamp(msg, sk, skb); msg 3089 net/core/sock.c put_cmsg(msg, level, type, sizeof(serr->ee), &serr->ee); msg 3091 net/core/sock.c msg->msg_flags |= MSG_ERRQUEUE; msg 3131 net/core/sock.c int sock_common_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, msg 3138 net/core/sock.c err = sk->sk_prot->recvmsg(sk, msg, size, flags & MSG_DONTWAIT, msg 3141 net/core/sock.c msg->msg_namelen = addr_len; msg 485 net/core/sock_map.c BPF_CALL_4(bpf_msg_redirect_map, struct sk_msg *, msg, msg 490 net/core/sock_map.c msg->flags = flags; msg 491 net/core/sock_map.c msg->sk_redir = __sock_map_lookup_elem(map, key); msg 492 net/core/sock_map.c if (!msg->sk_redir) msg 946 net/core/sock_map.c BPF_CALL_4(bpf_msg_redirect_hash, struct sk_msg *, msg, msg 951 net/core/sock_map.c msg->flags = flags; msg 952 net/core/sock_map.c msg->sk_redir = __sock_hash_lookup_elem(map, key); msg 953 net/core/sock_map.c if (!msg->sk_redir) msg 311 net/dccp/dccp.h int dccp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size); msg 312 net/dccp/dccp.h int dccp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock, msg 712 net/dccp/proto.c static int dccp_msghdr_parse(struct msghdr *msg, struct sk_buff *skb) msg 728 net/dccp/proto.c for_each_cmsghdr(cmsg, msg) { msg 729 net/dccp/proto.c if (!CMSG_OK(msg, cmsg)) msg 752 net/dccp/proto.c int dccp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) msg 755 net/dccp/proto.c const int flags = msg->msg_flags; msg 797 net/dccp/proto.c rc = memcpy_from_msg(skb_put(skb, len), msg, len); msg 801 net/dccp/proto.c rc = dccp_msghdr_parse(msg, skb); msg 823 net/dccp/proto.c int dccp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock, msg 910 net/dccp/proto.c msg->msg_flags |= MSG_TRUNC; msg 912 net/dccp/proto.c if (skb_copy_datagram_msg(skb, 0, msg, len)) { msg 1670 net/decnet/af_decnet.c static int dn_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, msg 1723 net/decnet/af_decnet.c msg->msg_flags |= MSG_OOB; msg 1761 net/decnet/af_decnet.c if (memcpy_to_msg(msg, skb->data, chunk)) { msg 1803 net/decnet/af_decnet.c msg->msg_flags |= MSG_EOR; msg 1809 net/decnet/af_decnet.c if ((rv >= 0) && msg->msg_name) { msg 1811 net/decnet/af_decnet.c memcpy(msg->msg_name, &scp->peer, sizeof(struct sockaddr_dn)); msg 1812 net/decnet/af_decnet.c msg->msg_namelen = sizeof(struct sockaddr_dn); msg 1906 net/decnet/af_decnet.c static int dn_sendmsg(struct socket *sock, struct msghdr *msg, size_t size) msg 1912 net/decnet/af_decnet.c int flags = msg->msg_flags; msg 1915 net/decnet/af_decnet.c int addr_len = msg->msg_namelen; msg 1916 net/decnet/af_decnet.c DECLARE_SOCKADDR(struct sockaddr_dn *, addr, msg->msg_name); msg 2032 net/decnet/af_decnet.c if (memcpy_from_msg(skb_put(skb, len), msg, len)) { msg 840 net/decnet/dn_dev.c struct endnode_hello_message *msg; msg 845 net/decnet/dn_dev.c if ((skb = dn_alloc_skb(NULL, sizeof(*msg), GFP_ATOMIC)) == NULL) msg 850 net/decnet/dn_dev.c msg = skb_put(skb, sizeof(*msg)); msg 852 net/decnet/dn_dev.c msg->msgflg = 0x0D; msg 853 net/decnet/dn_dev.c memcpy(msg->tiver, dn_eco_version, 3); msg 854 net/decnet/dn_dev.c dn_dn2eth(msg->id, ifa->ifa_local); msg 855 net/decnet/dn_dev.c msg->iinfo = DN_RT_INFO_ENDN; msg 856 net/decnet/dn_dev.c msg->blksize = cpu_to_le16(mtu2blksize(dev)); msg 857 net/decnet/dn_dev.c msg->area = 0x00; msg 858 net/decnet/dn_dev.c memset(msg->seed, 0, 8); msg 859 net/decnet/dn_dev.c memcpy(msg->neighbor, dn_hiord, ETH_ALEN); msg 863 net/decnet/dn_dev.c dn_dn2eth(msg->neighbor, dn->addr); msg 866 net/decnet/dn_dev.c msg->timer = cpu_to_le16((unsigned short)dn_db->parms.t3); msg 867 net/decnet/dn_dev.c msg->mpd = 0x00; msg 868 net/decnet/dn_dev.c msg->datalen = 0x02; msg 869 net/decnet/dn_dev.c memset(msg->data, 0xAA, 2); msg 876 net/decnet/dn_dev.c dn_rt_finish_output(skb, dn_rt_all_rt_mcast, msg->id); msg 384 net/decnet/dn_neigh.c struct rtnode_hello_message *msg = (struct rtnode_hello_message *)skb->data; msg 391 net/decnet/dn_neigh.c src = dn_eth2dn(msg->id); msg 409 net/decnet/dn_neigh.c dn->blksize = le16_to_cpu(msg->blksize); msg 410 net/decnet/dn_neigh.c dn->priority = msg->priority; msg 414 net/decnet/dn_neigh.c switch (msg->iinfo & DN_RT_INFO_TYPE) { msg 429 net/decnet/dn_neigh.c if (msg->priority > ((struct dn_neigh *)dn_db->router)->priority) msg 446 net/decnet/dn_neigh.c struct endnode_hello_message *msg = (struct endnode_hello_message *)skb->data; msg 451 net/decnet/dn_neigh.c src = dn_eth2dn(msg->id); msg 468 net/decnet/dn_neigh.c dn->blksize = le16_to_cpu(msg->blksize); msg 73 net/decnet/dn_nsp_in.c static void dn_log_martian(struct sk_buff *skb, const char *msg) msg 79 net/decnet/dn_nsp_in.c msg, devname, msg 220 net/decnet/dn_nsp_in.c struct nsp_conn_init_msg *msg = (struct nsp_conn_init_msg *)skb->data; msg 237 net/decnet/dn_nsp_in.c cb->src_port = msg->srcaddr; msg 238 net/decnet/dn_nsp_in.c cb->dst_port = msg->dstaddr; msg 239 net/decnet/dn_nsp_in.c cb->services = msg->services; msg 240 net/decnet/dn_nsp_in.c cb->info = msg->info; msg 241 net/decnet/dn_nsp_in.c cb->segsize = le16_to_cpu(msg->segsize); msg 243 net/decnet/dn_nsp_in.c if (!pskb_may_pull(skb, sizeof(*msg))) msg 246 net/decnet/dn_nsp_in.c skb_pull(skb, sizeof(*msg)); msg 471 net/decnet/dn_nsp_out.c struct nsp_conn_ack_msg *msg; msg 476 net/decnet/dn_nsp_out.c msg = skb_put(skb, 3); msg 477 net/decnet/dn_nsp_out.c msg->msgflg = 0x24; msg 478 net/decnet/dn_nsp_out.c msg->dstaddr = scp->addrrem; msg 497 net/decnet/dn_nsp_out.c struct nsp_conn_init_msg *msg; msg 503 net/decnet/dn_nsp_out.c msg = skb_put(skb, sizeof(*msg)); msg 504 net/decnet/dn_nsp_out.c msg->msgflg = 0x28; msg 505 net/decnet/dn_nsp_out.c msg->dstaddr = scp->addrrem; msg 506 net/decnet/dn_nsp_out.c msg->srcaddr = scp->addrloc; msg 507 net/decnet/dn_nsp_out.c msg->services = scp->services_loc; msg 508 net/decnet/dn_nsp_out.c msg->info = scp->info_loc; msg 509 net/decnet/dn_nsp_out.c msg->segsize = cpu_to_le16(scp->segsize_loc); msg 531 net/decnet/dn_nsp_out.c unsigned char *msg; msg 542 net/decnet/dn_nsp_out.c msg = skb_put(skb, size); msg 543 net/decnet/dn_nsp_out.c *msg++ = msgflg; msg 544 net/decnet/dn_nsp_out.c *(__le16 *)msg = rem; msg 545 net/decnet/dn_nsp_out.c msg += 2; msg 546 net/decnet/dn_nsp_out.c *(__le16 *)msg = loc; msg 547 net/decnet/dn_nsp_out.c msg += 2; msg 548 net/decnet/dn_nsp_out.c *(__le16 *)msg = cpu_to_le16(reason); msg 549 net/decnet/dn_nsp_out.c msg += 2; msg 551 net/decnet/dn_nsp_out.c *msg++ = ddl; msg 554 net/decnet/dn_nsp_out.c memcpy(msg, dd, ddl); msg 631 net/decnet/dn_nsp_out.c struct nsp_conn_init_msg *msg; msg 643 net/decnet/dn_nsp_out.c msg = skb_put(skb, sizeof(*msg)); msg 645 net/decnet/dn_nsp_out.c msg->msgflg = msgflg; msg 646 net/decnet/dn_nsp_out.c msg->dstaddr = 0x0000; /* Remote Node will assign it*/ msg 648 net/decnet/dn_nsp_out.c msg->srcaddr = scp->addrloc; msg 649 net/decnet/dn_nsp_out.c msg->services = scp->services_loc; /* Requested flow control */ msg 650 net/decnet/dn_nsp_out.c msg->info = scp->info_loc; /* Version Number */ msg 651 net/decnet/dn_nsp_out.c msg->segsize = cpu_to_le16(scp->segsize_loc); /* Max segment size */ msg 29 net/ieee802154/ieee802154.h int ieee802154_nl_mcast(struct sk_buff *msg, unsigned int group); msg 32 net/ieee802154/ieee802154.h int ieee802154_nl_reply(struct sk_buff *msg, struct genl_info *info); msg 27 net/ieee802154/netlink.c struct sk_buff *msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_ATOMIC); msg 30 net/ieee802154/netlink.c if (!msg) msg 34 net/ieee802154/netlink.c hdr = genlmsg_put(msg, 0, ieee802154_seq_num++, msg 38 net/ieee802154/netlink.c nlmsg_free(msg); msg 42 net/ieee802154/netlink.c return msg; msg 45 net/ieee802154/netlink.c int ieee802154_nl_mcast(struct sk_buff *msg, unsigned int group) msg 47 net/ieee802154/netlink.c struct nlmsghdr *nlh = nlmsg_hdr(msg); msg 50 net/ieee802154/netlink.c genlmsg_end(msg, hdr); msg 52 net/ieee802154/netlink.c return genlmsg_multicast(&nl802154_family, msg, 0, group, GFP_ATOMIC); msg 59 net/ieee802154/netlink.c struct sk_buff *msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_ATOMIC); msg 61 net/ieee802154/netlink.c if (!msg) msg 64 net/ieee802154/netlink.c hdr = genlmsg_put_reply(msg, info, msg 67 net/ieee802154/netlink.c nlmsg_free(msg); msg 71 net/ieee802154/netlink.c return msg; msg 74 net/ieee802154/netlink.c int ieee802154_nl_reply(struct sk_buff *msg, struct genl_info *info) msg 76 net/ieee802154/netlink.c struct nlmsghdr *nlh = nlmsg_hdr(msg); msg 79 net/ieee802154/netlink.c genlmsg_end(msg, hdr); msg 81 net/ieee802154/netlink.c return genlmsg_reply(msg, info); msg 29 net/ieee802154/nl-mac.c static int nla_put_hwaddr(struct sk_buff *msg, int type, __le64 hwaddr, msg 32 net/ieee802154/nl-mac.c return nla_put_u64_64bit(msg, type, swab64((__force u64)hwaddr), msg 41 net/ieee802154/nl-mac.c static int nla_put_shortaddr(struct sk_buff *msg, int type, __le16 addr) msg 43 net/ieee802154/nl-mac.c return nla_put_u16(msg, type, le16_to_cpu(addr)); msg 53 net/ieee802154/nl-mac.c struct sk_buff *msg; msg 57 net/ieee802154/nl-mac.c msg = ieee802154_nl_create(0, IEEE802154_START_CONF); msg 58 net/ieee802154/nl-mac.c if (!msg) msg 61 net/ieee802154/nl-mac.c if (nla_put_string(msg, IEEE802154_ATTR_DEV_NAME, dev->name) || msg 62 net/ieee802154/nl-mac.c nla_put_u32(msg, IEEE802154_ATTR_DEV_INDEX, dev->ifindex) || msg 63 net/ieee802154/nl-mac.c nla_put(msg, IEEE802154_ATTR_HW_ADDR, IEEE802154_ADDR_LEN, msg 65 net/ieee802154/nl-mac.c nla_put_u8(msg, IEEE802154_ATTR_STATUS, status)) msg 67 net/ieee802154/nl-mac.c return ieee802154_nl_mcast(msg, IEEE802154_COORD_MCGRP); msg 70 net/ieee802154/nl-mac.c nlmsg_free(msg); msg 74 net/ieee802154/nl-mac.c static int ieee802154_nl_fill_iface(struct sk_buff *msg, u32 portid, msg 84 net/ieee802154/nl-mac.c hdr = genlmsg_put(msg, 0, seq, &nl802154_family, flags, msg 99 net/ieee802154/nl-mac.c if (nla_put_string(msg, IEEE802154_ATTR_DEV_NAME, dev->name) || msg 100 net/ieee802154/nl-mac.c nla_put_string(msg, IEEE802154_ATTR_PHY_NAME, wpan_phy_name(phy)) || msg 101 net/ieee802154/nl-mac.c nla_put_u32(msg, IEEE802154_ATTR_DEV_INDEX, dev->ifindex) || msg 102 net/ieee802154/nl-mac.c nla_put(msg, IEEE802154_ATTR_HW_ADDR, IEEE802154_ADDR_LEN, msg 104 net/ieee802154/nl-mac.c nla_put_shortaddr(msg, IEEE802154_ATTR_SHORT_ADDR, short_addr) || msg 105 net/ieee802154/nl-mac.c nla_put_shortaddr(msg, IEEE802154_ATTR_PAN_ID, pan_id)) msg 115 net/ieee802154/nl-mac.c if (nla_put_s8(msg, IEEE802154_ATTR_TXPOWER, msg 117 net/ieee802154/nl-mac.c nla_put_u8(msg, IEEE802154_ATTR_LBT_ENABLED, params.lbt) || msg 118 net/ieee802154/nl-mac.c nla_put_u8(msg, IEEE802154_ATTR_CCA_MODE, msg 120 net/ieee802154/nl-mac.c nla_put_s32(msg, IEEE802154_ATTR_CCA_ED_LEVEL, msg 122 net/ieee802154/nl-mac.c nla_put_u8(msg, IEEE802154_ATTR_CSMA_RETRIES, msg 124 net/ieee802154/nl-mac.c nla_put_u8(msg, IEEE802154_ATTR_CSMA_MIN_BE, msg 126 net/ieee802154/nl-mac.c nla_put_u8(msg, IEEE802154_ATTR_CSMA_MAX_BE, msg 128 net/ieee802154/nl-mac.c nla_put_s8(msg, IEEE802154_ATTR_FRAME_RETRIES, msg 134 net/ieee802154/nl-mac.c genlmsg_end(msg, hdr); msg 139 net/ieee802154/nl-mac.c genlmsg_cancel(msg, hdr); msg 409 net/ieee802154/nl-mac.c struct sk_buff *msg; msg 419 net/ieee802154/nl-mac.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 420 net/ieee802154/nl-mac.c if (!msg) msg 423 net/ieee802154/nl-mac.c rc = ieee802154_nl_fill_iface(msg, info->snd_portid, info->snd_seq, msg 430 net/ieee802154/nl-mac.c return genlmsg_reply(msg, info); msg 432 net/ieee802154/nl-mac.c nlmsg_free(msg); msg 602 net/ieee802154/nl-mac.c ieee802154_llsec_fill_key_id(struct sk_buff *msg, msg 605 net/ieee802154/nl-mac.c if (nla_put_u8(msg, IEEE802154_ATTR_LLSEC_KEY_MODE, desc->mode)) msg 609 net/ieee802154/nl-mac.c if (nla_put_shortaddr(msg, IEEE802154_ATTR_PAN_ID, msg 614 net/ieee802154/nl-mac.c nla_put_shortaddr(msg, IEEE802154_ATTR_SHORT_ADDR, msg 619 net/ieee802154/nl-mac.c nla_put_hwaddr(msg, IEEE802154_ATTR_HW_ADDR, msg 626 net/ieee802154/nl-mac.c nla_put_u8(msg, IEEE802154_ATTR_LLSEC_KEY_ID, desc->id)) msg 630 net/ieee802154/nl-mac.c nla_put_u32(msg, IEEE802154_ATTR_LLSEC_KEY_SOURCE_SHORT, msg 635 net/ieee802154/nl-mac.c nla_put_hwaddr(msg, IEEE802154_ATTR_LLSEC_KEY_SOURCE_EXTENDED, msg 644 net/ieee802154/nl-mac.c struct sk_buff *msg; msg 663 net/ieee802154/nl-mac.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 664 net/ieee802154/nl-mac.c if (!msg) msg 667 net/ieee802154/nl-mac.c hdr = genlmsg_put(msg, 0, info->snd_seq, &nl802154_family, 0, msg 676 net/ieee802154/nl-mac.c if (nla_put_string(msg, IEEE802154_ATTR_DEV_NAME, dev->name) || msg 677 net/ieee802154/nl-mac.c nla_put_u32(msg, IEEE802154_ATTR_DEV_INDEX, dev->ifindex) || msg 678 net/ieee802154/nl-mac.c nla_put_u8(msg, IEEE802154_ATTR_LLSEC_ENABLED, params.enabled) || msg 679 net/ieee802154/nl-mac.c nla_put_u8(msg, IEEE802154_ATTR_LLSEC_SECLEVEL, params.out_level) || msg 680 net/ieee802154/nl-mac.c nla_put_u32(msg, IEEE802154_ATTR_LLSEC_FRAME_COUNTER, msg 682 net/ieee802154/nl-mac.c ieee802154_llsec_fill_key_id(msg, ¶ms.out_key)) msg 687 net/ieee802154/nl-mac.c return ieee802154_nl_reply(msg, info); msg 689 net/ieee802154/nl-mac.c nlmsg_free(msg); msg 908 net/ieee802154/nl-mac.c ieee802154_nl_fill_key(struct sk_buff *msg, u32 portid, u32 seq, msg 915 net/ieee802154/nl-mac.c hdr = genlmsg_put(msg, 0, seq, &nl802154_family, NLM_F_MULTI, msg 920 net/ieee802154/nl-mac.c if (nla_put_string(msg, IEEE802154_ATTR_DEV_NAME, dev->name) || msg 921 net/ieee802154/nl-mac.c nla_put_u32(msg, IEEE802154_ATTR_DEV_INDEX, dev->ifindex) || msg 922 net/ieee802154/nl-mac.c ieee802154_llsec_fill_key_id(msg, &key->id) || msg 923 net/ieee802154/nl-mac.c nla_put_u8(msg, IEEE802154_ATTR_LLSEC_KEY_USAGE_FRAME_TYPES, msg 930 net/ieee802154/nl-mac.c if (nla_put(msg, IEEE802154_ATTR_LLSEC_KEY_USAGE_COMMANDS, msg 935 net/ieee802154/nl-mac.c if (nla_put(msg, IEEE802154_ATTR_LLSEC_KEY_BYTES, msg 939 net/ieee802154/nl-mac.c genlmsg_end(msg, hdr); msg 943 net/ieee802154/nl-mac.c genlmsg_cancel(msg, hdr); msg 1045 net/ieee802154/nl-mac.c ieee802154_nl_fill_dev(struct sk_buff *msg, u32 portid, u32 seq, msg 1051 net/ieee802154/nl-mac.c hdr = genlmsg_put(msg, 0, seq, &nl802154_family, NLM_F_MULTI, msg 1056 net/ieee802154/nl-mac.c if (nla_put_string(msg, IEEE802154_ATTR_DEV_NAME, dev->name) || msg 1057 net/ieee802154/nl-mac.c nla_put_u32(msg, IEEE802154_ATTR_DEV_INDEX, dev->ifindex) || msg 1058 net/ieee802154/nl-mac.c nla_put_shortaddr(msg, IEEE802154_ATTR_PAN_ID, desc->pan_id) || msg 1059 net/ieee802154/nl-mac.c nla_put_shortaddr(msg, IEEE802154_ATTR_SHORT_ADDR, msg 1061 net/ieee802154/nl-mac.c nla_put_hwaddr(msg, IEEE802154_ATTR_HW_ADDR, desc->hwaddr, msg 1063 net/ieee802154/nl-mac.c nla_put_u32(msg, IEEE802154_ATTR_LLSEC_FRAME_COUNTER, msg 1065 net/ieee802154/nl-mac.c nla_put_u8(msg, IEEE802154_ATTR_LLSEC_DEV_OVERRIDE, msg 1067 net/ieee802154/nl-mac.c nla_put_u8(msg, IEEE802154_ATTR_LLSEC_DEV_KEY_MODE, desc->key_mode)) msg 1070 net/ieee802154/nl-mac.c genlmsg_end(msg, hdr); msg 1074 net/ieee802154/nl-mac.c genlmsg_cancel(msg, hdr); msg 1152 net/ieee802154/nl-mac.c ieee802154_nl_fill_devkey(struct sk_buff *msg, u32 portid, u32 seq, msg 1159 net/ieee802154/nl-mac.c hdr = genlmsg_put(msg, 0, seq, &nl802154_family, NLM_F_MULTI, msg 1164 net/ieee802154/nl-mac.c if (nla_put_string(msg, IEEE802154_ATTR_DEV_NAME, dev->name) || msg 1165 net/ieee802154/nl-mac.c nla_put_u32(msg, IEEE802154_ATTR_DEV_INDEX, dev->ifindex) || msg 1166 net/ieee802154/nl-mac.c nla_put_hwaddr(msg, IEEE802154_ATTR_HW_ADDR, devaddr, msg 1168 net/ieee802154/nl-mac.c nla_put_u32(msg, IEEE802154_ATTR_LLSEC_FRAME_COUNTER, msg 1170 net/ieee802154/nl-mac.c ieee802154_llsec_fill_key_id(msg, &devkey->key_id)) msg 1173 net/ieee802154/nl-mac.c genlmsg_end(msg, hdr); msg 1177 net/ieee802154/nl-mac.c genlmsg_cancel(msg, hdr); msg 1282 net/ieee802154/nl-mac.c ieee802154_nl_fill_seclevel(struct sk_buff *msg, u32 portid, u32 seq, msg 1288 net/ieee802154/nl-mac.c hdr = genlmsg_put(msg, 0, seq, &nl802154_family, NLM_F_MULTI, msg 1293 net/ieee802154/nl-mac.c if (nla_put_string(msg, IEEE802154_ATTR_DEV_NAME, dev->name) || msg 1294 net/ieee802154/nl-mac.c nla_put_u32(msg, IEEE802154_ATTR_DEV_INDEX, dev->ifindex) || msg 1295 net/ieee802154/nl-mac.c nla_put_u8(msg, IEEE802154_ATTR_LLSEC_FRAME_TYPE, sl->frame_type) || msg 1296 net/ieee802154/nl-mac.c nla_put_u8(msg, IEEE802154_ATTR_LLSEC_SECLEVELS, sl->sec_levels) || msg 1297 net/ieee802154/nl-mac.c nla_put_u8(msg, IEEE802154_ATTR_LLSEC_DEV_OVERRIDE, msg 1302 net/ieee802154/nl-mac.c nla_put_u8(msg, IEEE802154_ATTR_LLSEC_CMD_FRAME_ID, msg 1306 net/ieee802154/nl-mac.c genlmsg_end(msg, hdr); msg 1310 net/ieee802154/nl-mac.c genlmsg_cancel(msg, hdr); msg 28 net/ieee802154/nl-phy.c static int ieee802154_nl_fill_phy(struct sk_buff *msg, u32 portid, msg 40 net/ieee802154/nl-phy.c hdr = genlmsg_put(msg, 0, seq, &nl802154_family, flags, msg 46 net/ieee802154/nl-phy.c if (nla_put_string(msg, IEEE802154_ATTR_PHY_NAME, wpan_phy_name(phy)) || msg 47 net/ieee802154/nl-phy.c nla_put_u8(msg, IEEE802154_ATTR_PAGE, phy->current_page) || msg 48 net/ieee802154/nl-phy.c nla_put_u8(msg, IEEE802154_ATTR_CHANNEL, phy->current_channel)) msg 55 net/ieee802154/nl-phy.c nla_put(msg, IEEE802154_ATTR_CHANNEL_PAGE_LIST, msg 60 net/ieee802154/nl-phy.c genlmsg_end(msg, hdr); msg 65 net/ieee802154/nl-phy.c genlmsg_cancel(msg, hdr); msg 76 net/ieee802154/nl-phy.c struct sk_buff *msg; msg 94 net/ieee802154/nl-phy.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 95 net/ieee802154/nl-phy.c if (!msg) msg 98 net/ieee802154/nl-phy.c rc = ieee802154_nl_fill_phy(msg, info->snd_portid, info->snd_seq, msg 105 net/ieee802154/nl-phy.c return genlmsg_reply(msg, info); msg 107 net/ieee802154/nl-phy.c nlmsg_free(msg); msg 163 net/ieee802154/nl-phy.c struct sk_buff *msg; msg 199 net/ieee802154/nl-phy.c msg = ieee802154_nl_new_reply(info, 0, IEEE802154_ADD_IFACE); msg 200 net/ieee802154/nl-phy.c if (!msg) msg 243 net/ieee802154/nl-phy.c if (nla_put_string(msg, IEEE802154_ATTR_PHY_NAME, wpan_phy_name(phy)) || msg 244 net/ieee802154/nl-phy.c nla_put_string(msg, IEEE802154_ATTR_DEV_NAME, dev->name)) msg 250 net/ieee802154/nl-phy.c return ieee802154_nl_reply(msg, info); msg 258 net/ieee802154/nl-phy.c nlmsg_free(msg); msg 266 net/ieee802154/nl-phy.c struct sk_buff *msg; msg 316 net/ieee802154/nl-phy.c msg = ieee802154_nl_new_reply(info, 0, IEEE802154_DEL_IFACE); msg 317 net/ieee802154/nl-phy.c if (!msg) msg 329 net/ieee802154/nl-phy.c if (nla_put_string(msg, IEEE802154_ATTR_PHY_NAME, wpan_phy_name(phy)) || msg 330 net/ieee802154/nl-phy.c nla_put_string(msg, IEEE802154_ATTR_DEV_NAME, name)) msg 334 net/ieee802154/nl-phy.c return ieee802154_nl_reply(msg, info); msg 337 net/ieee802154/nl-phy.c nlmsg_free(msg); msg 309 net/ieee802154/nl802154.c nl802154_put_flags(struct sk_buff *msg, int attr, u32 mask) msg 311 net/ieee802154/nl802154.c struct nlattr *nl_flags = nla_nest_start_noflag(msg, attr); msg 319 net/ieee802154/nl802154.c if ((mask & 1) && nla_put_flag(msg, i)) msg 326 net/ieee802154/nl802154.c nla_nest_end(msg, nl_flags); msg 332 net/ieee802154/nl802154.c struct sk_buff *msg) msg 337 net/ieee802154/nl802154.c nl_page = nla_nest_start_noflag(msg, NL802154_ATTR_CHANNELS_SUPPORTED); msg 342 net/ieee802154/nl802154.c if (nla_put_u32(msg, NL802154_ATTR_SUPPORTED_CHANNEL, msg 346 net/ieee802154/nl802154.c nla_nest_end(msg, nl_page); msg 352 net/ieee802154/nl802154.c nl802154_put_capabilities(struct sk_buff *msg, msg 359 net/ieee802154/nl802154.c nl_caps = nla_nest_start_noflag(msg, NL802154_ATTR_WPAN_PHY_CAPS); msg 363 net/ieee802154/nl802154.c nl_channels = nla_nest_start_noflag(msg, NL802154_CAP_ATTR_CHANNELS); msg 369 net/ieee802154/nl802154.c if (nl802154_put_flags(msg, i, caps->channels[i])) msg 374 net/ieee802154/nl802154.c nla_nest_end(msg, nl_channels); msg 379 net/ieee802154/nl802154.c nl_ed_lvls = nla_nest_start_noflag(msg, msg 385 net/ieee802154/nl802154.c if (nla_put_s32(msg, i, caps->cca_ed_levels[i])) msg 389 net/ieee802154/nl802154.c nla_nest_end(msg, nl_ed_lvls); msg 395 net/ieee802154/nl802154.c nl_tx_pwrs = nla_nest_start_noflag(msg, msg 401 net/ieee802154/nl802154.c if (nla_put_s32(msg, i, caps->tx_powers[i])) msg 405 net/ieee802154/nl802154.c nla_nest_end(msg, nl_tx_pwrs); msg 409 net/ieee802154/nl802154.c if (nl802154_put_flags(msg, NL802154_CAP_ATTR_CCA_MODES, msg 411 net/ieee802154/nl802154.c nl802154_put_flags(msg, NL802154_CAP_ATTR_CCA_OPTS, msg 416 net/ieee802154/nl802154.c if (nla_put_u8(msg, NL802154_CAP_ATTR_MIN_MINBE, caps->min_minbe) || msg 417 net/ieee802154/nl802154.c nla_put_u8(msg, NL802154_CAP_ATTR_MAX_MINBE, caps->max_minbe) || msg 418 net/ieee802154/nl802154.c nla_put_u8(msg, NL802154_CAP_ATTR_MIN_MAXBE, caps->min_maxbe) || msg 419 net/ieee802154/nl802154.c nla_put_u8(msg, NL802154_CAP_ATTR_MAX_MAXBE, caps->max_maxbe) || msg 420 net/ieee802154/nl802154.c nla_put_u8(msg, NL802154_CAP_ATTR_MIN_CSMA_BACKOFFS, msg 422 net/ieee802154/nl802154.c nla_put_u8(msg, NL802154_CAP_ATTR_MAX_CSMA_BACKOFFS, msg 424 net/ieee802154/nl802154.c nla_put_s8(msg, NL802154_CAP_ATTR_MIN_FRAME_RETRIES, msg 426 net/ieee802154/nl802154.c nla_put_s8(msg, NL802154_CAP_ATTR_MAX_FRAME_RETRIES, msg 428 net/ieee802154/nl802154.c nl802154_put_flags(msg, NL802154_CAP_ATTR_IFTYPES, msg 430 net/ieee802154/nl802154.c nla_put_u32(msg, NL802154_CAP_ATTR_LBT, caps->lbt)) msg 433 net/ieee802154/nl802154.c nla_nest_end(msg, nl_caps); msg 440 net/ieee802154/nl802154.c struct sk_buff *msg, u32 portid, u32 seq, msg 447 net/ieee802154/nl802154.c hdr = nl802154hdr_put(msg, portid, seq, flags, cmd); msg 451 net/ieee802154/nl802154.c if (nla_put_u32(msg, NL802154_ATTR_WPAN_PHY, rdev->wpan_phy_idx) || msg 452 net/ieee802154/nl802154.c nla_put_string(msg, NL802154_ATTR_WPAN_PHY_NAME, msg 454 net/ieee802154/nl802154.c nla_put_u32(msg, NL802154_ATTR_GENERATION, msg 464 net/ieee802154/nl802154.c if (nla_put_u8(msg, NL802154_ATTR_PAGE, msg 466 net/ieee802154/nl802154.c nla_put_u8(msg, NL802154_ATTR_CHANNEL, msg 473 net/ieee802154/nl802154.c if (nl802154_send_wpan_phy_channels(rdev, msg)) msg 478 net/ieee802154/nl802154.c if (nla_put_u32(msg, NL802154_ATTR_CCA_MODE, msg 483 net/ieee802154/nl802154.c if (nla_put_u32(msg, NL802154_ATTR_CCA_OPT, msg 490 net/ieee802154/nl802154.c if (nla_put_s32(msg, NL802154_ATTR_TX_POWER, msg 496 net/ieee802154/nl802154.c if (nla_put_s32(msg, NL802154_ATTR_CCA_ED_LEVEL, msg 501 net/ieee802154/nl802154.c if (nl802154_put_capabilities(msg, rdev)) msg 504 net/ieee802154/nl802154.c nl_cmds = nla_nest_start_noflag(msg, NL802154_ATTR_SUPPORTED_COMMANDS); msg 513 net/ieee802154/nl802154.c if (nla_put_u32(msg, i, NL802154_CMD_ ## n)) \ msg 539 net/ieee802154/nl802154.c nla_nest_end(msg, nl_cmds); msg 542 net/ieee802154/nl802154.c genlmsg_end(msg, hdr); msg 546 net/ieee802154/nl802154.c genlmsg_cancel(msg, hdr); msg 659 net/ieee802154/nl802154.c struct sk_buff *msg; msg 662 net/ieee802154/nl802154.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 663 net/ieee802154/nl802154.c if (!msg) msg 666 net/ieee802154/nl802154.c if (nl802154_send_wpan_phy(rdev, NL802154_CMD_NEW_WPAN_PHY, msg, msg 668 net/ieee802154/nl802154.c nlmsg_free(msg); msg 672 net/ieee802154/nl802154.c return genlmsg_reply(msg, info); msg 685 net/ieee802154/nl802154.c ieee802154_llsec_send_key_id(struct sk_buff *msg, msg 690 net/ieee802154/nl802154.c if (nla_put_u32(msg, NL802154_KEY_ID_ATTR_MODE, desc->mode)) msg 695 net/ieee802154/nl802154.c nl_dev_addr = nla_nest_start_noflag(msg, msg 700 net/ieee802154/nl802154.c if (nla_put_le16(msg, NL802154_DEV_ADDR_ATTR_PAN_ID, msg 702 net/ieee802154/nl802154.c nla_put_u32(msg, NL802154_DEV_ADDR_ATTR_MODE, msg 708 net/ieee802154/nl802154.c if (nla_put_le16(msg, NL802154_DEV_ADDR_ATTR_SHORT, msg 713 net/ieee802154/nl802154.c if (nla_put_le64(msg, NL802154_DEV_ADDR_ATTR_EXTENDED, msg 723 net/ieee802154/nl802154.c nla_nest_end(msg, nl_dev_addr); msg 729 net/ieee802154/nl802154.c if (nla_put_le32(msg, NL802154_KEY_ID_ATTR_SOURCE_SHORT, msg 734 net/ieee802154/nl802154.c if (nla_put_le64(msg, NL802154_KEY_ID_ATTR_SOURCE_EXTENDED, msg 746 net/ieee802154/nl802154.c if (nla_put_u8(msg, NL802154_KEY_ID_ATTR_INDEX, desc->id)) msg 753 net/ieee802154/nl802154.c static int nl802154_get_llsec_params(struct sk_buff *msg, msg 765 net/ieee802154/nl802154.c if (nla_put_u8(msg, NL802154_ATTR_SEC_ENABLED, params.enabled) || msg 766 net/ieee802154/nl802154.c nla_put_u32(msg, NL802154_ATTR_SEC_OUT_LEVEL, params.out_level) || msg 767 net/ieee802154/nl802154.c nla_put_be32(msg, NL802154_ATTR_SEC_FRAME_COUNTER, msg 771 net/ieee802154/nl802154.c nl_key_id = nla_nest_start_noflag(msg, NL802154_ATTR_SEC_OUT_KEY_ID); msg 775 net/ieee802154/nl802154.c ret = ieee802154_llsec_send_key_id(msg, ¶ms.out_key); msg 779 net/ieee802154/nl802154.c nla_nest_end(msg, nl_key_id); msg 786 net/ieee802154/nl802154.c nl802154_send_iface(struct sk_buff *msg, u32 portid, u32 seq, int flags, msg 793 net/ieee802154/nl802154.c hdr = nl802154hdr_put(msg, portid, seq, flags, msg 799 net/ieee802154/nl802154.c (nla_put_u32(msg, NL802154_ATTR_IFINDEX, dev->ifindex) || msg 800 net/ieee802154/nl802154.c nla_put_string(msg, NL802154_ATTR_IFNAME, dev->name))) msg 803 net/ieee802154/nl802154.c if (nla_put_u32(msg, NL802154_ATTR_WPAN_PHY, rdev->wpan_phy_idx) || msg 804 net/ieee802154/nl802154.c nla_put_u32(msg, NL802154_ATTR_IFTYPE, wpan_dev->iftype) || msg 805 net/ieee802154/nl802154.c nla_put_u64_64bit(msg, NL802154_ATTR_WPAN_DEV, msg 807 net/ieee802154/nl802154.c nla_put_u32(msg, NL802154_ATTR_GENERATION, msg 813 net/ieee802154/nl802154.c if (nla_put_le64(msg, NL802154_ATTR_EXTENDED_ADDR, msg 816 net/ieee802154/nl802154.c nla_put_le16(msg, NL802154_ATTR_SHORT_ADDR, msg 818 net/ieee802154/nl802154.c nla_put_le16(msg, NL802154_ATTR_PAN_ID, wpan_dev->pan_id)) msg 822 net/ieee802154/nl802154.c if (nla_put_s8(msg, NL802154_ATTR_MAX_FRAME_RETRIES, msg 824 net/ieee802154/nl802154.c nla_put_u8(msg, NL802154_ATTR_MAX_BE, wpan_dev->max_be) || msg 825 net/ieee802154/nl802154.c nla_put_u8(msg, NL802154_ATTR_MAX_CSMA_BACKOFFS, msg 827 net/ieee802154/nl802154.c nla_put_u8(msg, NL802154_ATTR_MIN_BE, wpan_dev->min_be)) msg 831 net/ieee802154/nl802154.c if (nla_put_u8(msg, NL802154_ATTR_LBT_MODE, wpan_dev->lbt)) msg 835 net/ieee802154/nl802154.c if (nla_put_u8(msg, NL802154_ATTR_ACKREQ_DEFAULT, wpan_dev->ackreq)) msg 839 net/ieee802154/nl802154.c if (nl802154_get_llsec_params(msg, rdev, wpan_dev) < 0) msg 843 net/ieee802154/nl802154.c genlmsg_end(msg, hdr); msg 847 net/ieee802154/nl802154.c genlmsg_cancel(msg, hdr); msg 897 net/ieee802154/nl802154.c struct sk_buff *msg; msg 901 net/ieee802154/nl802154.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 902 net/ieee802154/nl802154.c if (!msg) msg 905 net/ieee802154/nl802154.c if (nl802154_send_iface(msg, info->snd_portid, info->snd_seq, 0, msg 907 net/ieee802154/nl802154.c nlmsg_free(msg); msg 911 net/ieee802154/nl802154.c return genlmsg_reply(msg, info); msg 1439 net/ieee802154/nl802154.c static int nl802154_send_key(struct sk_buff *msg, u32 cmd, u32 portid, msg 1449 net/ieee802154/nl802154.c hdr = nl802154hdr_put(msg, portid, seq, flags, cmd); msg 1453 net/ieee802154/nl802154.c if (nla_put_u32(msg, NL802154_ATTR_IFINDEX, dev->ifindex)) msg 1456 net/ieee802154/nl802154.c nl_key = nla_nest_start_noflag(msg, NL802154_ATTR_SEC_KEY); msg 1460 net/ieee802154/nl802154.c nl_key_id = nla_nest_start_noflag(msg, NL802154_KEY_ATTR_ID); msg 1464 net/ieee802154/nl802154.c if (ieee802154_llsec_send_key_id(msg, &key->id) < 0) msg 1467 net/ieee802154/nl802154.c nla_nest_end(msg, nl_key_id); msg 1469 net/ieee802154/nl802154.c if (nla_put_u8(msg, NL802154_KEY_ATTR_USAGE_FRAMES, msg 1477 net/ieee802154/nl802154.c if (nla_put(msg, NL802154_KEY_ATTR_USAGE_CMDS, msg 1482 net/ieee802154/nl802154.c if (nla_put(msg, NL802154_KEY_ATTR_BYTES, NL802154_KEY_SIZE, msg 1486 net/ieee802154/nl802154.c nla_nest_end(msg, nl_key); msg 1487 net/ieee802154/nl802154.c genlmsg_end(msg, hdr); msg 1492 net/ieee802154/nl802154.c genlmsg_cancel(msg, hdr); msg 1620 net/ieee802154/nl802154.c static int nl802154_send_device(struct sk_buff *msg, u32 cmd, u32 portid, msg 1629 net/ieee802154/nl802154.c hdr = nl802154hdr_put(msg, portid, seq, flags, cmd); msg 1633 net/ieee802154/nl802154.c if (nla_put_u32(msg, NL802154_ATTR_IFINDEX, dev->ifindex)) msg 1636 net/ieee802154/nl802154.c nl_device = nla_nest_start_noflag(msg, NL802154_ATTR_SEC_DEVICE); msg 1640 net/ieee802154/nl802154.c if (nla_put_u32(msg, NL802154_DEV_ATTR_FRAME_COUNTER, msg 1642 net/ieee802154/nl802154.c nla_put_le16(msg, NL802154_DEV_ATTR_PAN_ID, dev_desc->pan_id) || msg 1643 net/ieee802154/nl802154.c nla_put_le16(msg, NL802154_DEV_ATTR_SHORT_ADDR, msg 1645 net/ieee802154/nl802154.c nla_put_le64(msg, NL802154_DEV_ATTR_EXTENDED_ADDR, msg 1647 net/ieee802154/nl802154.c nla_put_u8(msg, NL802154_DEV_ATTR_SECLEVEL_EXEMPT, msg 1649 net/ieee802154/nl802154.c nla_put_u32(msg, NL802154_DEV_ATTR_KEY_MODE, dev_desc->key_mode)) msg 1652 net/ieee802154/nl802154.c nla_nest_end(msg, nl_device); msg 1653 net/ieee802154/nl802154.c genlmsg_end(msg, hdr); msg 1658 net/ieee802154/nl802154.c genlmsg_cancel(msg, hdr); msg 1786 net/ieee802154/nl802154.c static int nl802154_send_devkey(struct sk_buff *msg, u32 cmd, u32 portid, msg 1795 net/ieee802154/nl802154.c hdr = nl802154hdr_put(msg, portid, seq, flags, cmd); msg 1799 net/ieee802154/nl802154.c if (nla_put_u32(msg, NL802154_ATTR_IFINDEX, dev->ifindex)) msg 1802 net/ieee802154/nl802154.c nl_devkey = nla_nest_start_noflag(msg, NL802154_ATTR_SEC_DEVKEY); msg 1806 net/ieee802154/nl802154.c if (nla_put_le64(msg, NL802154_DEVKEY_ATTR_EXTENDED_ADDR, msg 1808 net/ieee802154/nl802154.c nla_put_u32(msg, NL802154_DEVKEY_ATTR_FRAME_COUNTER, msg 1812 net/ieee802154/nl802154.c nl_key_id = nla_nest_start_noflag(msg, NL802154_DEVKEY_ATTR_ID); msg 1816 net/ieee802154/nl802154.c if (ieee802154_llsec_send_key_id(msg, &devkey->key_id) < 0) msg 1819 net/ieee802154/nl802154.c nla_nest_end(msg, nl_key_id); msg 1820 net/ieee802154/nl802154.c nla_nest_end(msg, nl_devkey); msg 1821 net/ieee802154/nl802154.c genlmsg_end(msg, hdr); msg 1826 net/ieee802154/nl802154.c genlmsg_cancel(msg, hdr); msg 1950 net/ieee802154/nl802154.c static int nl802154_send_seclevel(struct sk_buff *msg, u32 cmd, u32 portid, msg 1959 net/ieee802154/nl802154.c hdr = nl802154hdr_put(msg, portid, seq, flags, cmd); msg 1963 net/ieee802154/nl802154.c if (nla_put_u32(msg, NL802154_ATTR_IFINDEX, dev->ifindex)) msg 1966 net/ieee802154/nl802154.c nl_seclevel = nla_nest_start_noflag(msg, NL802154_ATTR_SEC_LEVEL); msg 1970 net/ieee802154/nl802154.c if (nla_put_u32(msg, NL802154_SECLEVEL_ATTR_FRAME, sl->frame_type) || msg 1971 net/ieee802154/nl802154.c nla_put_u32(msg, NL802154_SECLEVEL_ATTR_LEVELS, sl->sec_levels) || msg 1972 net/ieee802154/nl802154.c nla_put_u8(msg, NL802154_SECLEVEL_ATTR_DEV_OVERRIDE, msg 1977 net/ieee802154/nl802154.c if (nla_put_u32(msg, NL802154_SECLEVEL_ATTR_CMD_FRAME, msg 1982 net/ieee802154/nl802154.c nla_nest_end(msg, nl_seclevel); msg 1983 net/ieee802154/nl802154.c genlmsg_end(msg, hdr); msg 1988 net/ieee802154/nl802154.c genlmsg_cancel(msg, hdr); msg 92 net/ieee802154/socket.c static int ieee802154_sock_sendmsg(struct socket *sock, struct msghdr *msg, msg 97 net/ieee802154/socket.c return sk->sk_prot->sendmsg(sk, msg, len); msg 241 net/ieee802154/socket.c static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size) msg 249 net/ieee802154/socket.c if (msg->msg_flags & MSG_OOB) { msg 250 net/ieee802154/socket.c pr_debug("msg->msg_flags = 0x%x\n", msg->msg_flags); msg 279 net/ieee802154/socket.c msg->msg_flags & MSG_DONTWAIT, &err); msg 288 net/ieee802154/socket.c err = memcpy_from_msg(skb_put(skb, size), msg, size); msg 311 net/ieee802154/socket.c static int raw_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, msg 324 net/ieee802154/socket.c msg->msg_flags |= MSG_TRUNC; msg 328 net/ieee802154/socket.c err = skb_copy_datagram_msg(skb, 0, msg, copied); msg 332 net/ieee802154/socket.c sock_recv_ts_and_drops(msg, sk, skb); msg 604 net/ieee802154/socket.c static int dgram_sendmsg(struct sock *sk, struct msghdr *msg, size_t size) msg 615 net/ieee802154/socket.c if (msg->msg_flags & MSG_OOB) { msg 616 net/ieee802154/socket.c pr_debug("msg->msg_flags = 0x%x\n", msg->msg_flags); msg 620 net/ieee802154/socket.c if (!ro->connected && !msg->msg_name) msg 622 net/ieee802154/socket.c else if (ro->connected && msg->msg_name) msg 647 net/ieee802154/socket.c msg->msg_flags & MSG_DONTWAIT, msg 660 net/ieee802154/socket.c if (msg->msg_name) { msg 662 net/ieee802154/socket.c daddr, msg->msg_name); msg 679 net/ieee802154/socket.c err = memcpy_from_msg(skb_put(skb, size), msg, size); msg 702 net/ieee802154/socket.c static int dgram_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, msg 709 net/ieee802154/socket.c DECLARE_SOCKADDR(struct sockaddr_ieee802154 *, saddr, msg->msg_name); msg 717 net/ieee802154/socket.c msg->msg_flags |= MSG_TRUNC; msg 722 net/ieee802154/socket.c err = skb_copy_datagram_msg(skb, 0, msg, copied); msg 726 net/ieee802154/socket.c sock_recv_ts_and_drops(msg, sk, skb); msg 741 net/ieee802154/socket.c err = put_cmsg(msg, SOL_IEEE802154, WPAN_WANTLQI, msg 800 net/ipv4/af_inet.c int inet_sendmsg(struct socket *sock, struct msghdr *msg, size_t size) msg 808 net/ipv4/af_inet.c sk, msg, size); msg 828 net/ipv4/af_inet.c int inet_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, msg 839 net/ipv4/af_inet.c sk, msg, size, flags & MSG_DONTWAIT, msg 842 net/ipv4/af_inet.c msg->msg_namelen = addr_len; msg 1568 net/ipv4/af_inet.c int inet_recv_error(struct sock *sk, struct msghdr *msg, int len, int *addr_len) msg 1571 net/ipv4/af_inet.c return ip_recv_error(sk, msg, len, addr_len); msg 1574 net/ipv4/af_inet.c return pingv6_ops.ipv6_recv_error(sk, msg, len, addr_len); msg 788 net/ipv4/fou.c static int fou_fill_info(struct fou *fou, struct sk_buff *msg) msg 792 net/ipv4/fou.c if (nla_put_u8(msg, FOU_ATTR_AF, fou->sock->sk->sk_family) || msg 793 net/ipv4/fou.c nla_put_be16(msg, FOU_ATTR_PORT, fou->port) || msg 794 net/ipv4/fou.c nla_put_be16(msg, FOU_ATTR_PEER_PORT, sk->sk_dport) || msg 795 net/ipv4/fou.c nla_put_u8(msg, FOU_ATTR_IPPROTO, fou->protocol) || msg 796 net/ipv4/fou.c nla_put_u8(msg, FOU_ATTR_TYPE, fou->type) || msg 797 net/ipv4/fou.c nla_put_s32(msg, FOU_ATTR_IFINDEX, sk->sk_bound_dev_if)) msg 801 net/ipv4/fou.c if (nla_put_flag(msg, FOU_ATTR_REMCSUM_NOPARTIAL)) msg 805 net/ipv4/fou.c if (nla_put_in_addr(msg, FOU_ATTR_LOCAL_V4, sk->sk_rcv_saddr)) msg 808 net/ipv4/fou.c if (nla_put_in_addr(msg, FOU_ATTR_PEER_V4, sk->sk_daddr)) msg 812 net/ipv4/fou.c if (nla_put_in6_addr(msg, FOU_ATTR_LOCAL_V6, msg 816 net/ipv4/fou.c if (nla_put_in6_addr(msg, FOU_ATTR_PEER_V6, &sk->sk_v6_daddr)) msg 848 net/ipv4/fou.c struct sk_buff *msg; msg 866 net/ipv4/fou.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 867 net/ipv4/fou.c if (!msg) msg 875 net/ipv4/fou.c info->snd_seq, 0, msg, msg 884 net/ipv4/fou.c return genlmsg_reply(msg, info); msg 887 net/ipv4/fou.c nlmsg_free(msg); msg 927 net/ipv4/ip_output.c struct msghdr *msg = from; msg 930 net/ipv4/ip_output.c if (!copy_from_iter_full(to, len, &msg->msg_iter)) msg 934 net/ipv4/ip_output.c if (!csum_and_copy_from_iter_full(to, len, &csum, &msg->msg_iter)) msg 56 net/ipv4/ip_sockglue.c static void ip_cmsg_recv_pktinfo(struct msghdr *msg, struct sk_buff *skb) msg 62 net/ipv4/ip_sockglue.c put_cmsg(msg, SOL_IP, IP_PKTINFO, sizeof(info), &info); msg 65 net/ipv4/ip_sockglue.c static void ip_cmsg_recv_ttl(struct msghdr *msg, struct sk_buff *skb) msg 68 net/ipv4/ip_sockglue.c put_cmsg(msg, SOL_IP, IP_TTL, sizeof(int), &ttl); msg 71 net/ipv4/ip_sockglue.c static void ip_cmsg_recv_tos(struct msghdr *msg, struct sk_buff *skb) msg 73 net/ipv4/ip_sockglue.c put_cmsg(msg, SOL_IP, IP_TOS, 1, &ip_hdr(skb)->tos); msg 76 net/ipv4/ip_sockglue.c static void ip_cmsg_recv_opts(struct msghdr *msg, struct sk_buff *skb) msg 81 net/ipv4/ip_sockglue.c put_cmsg(msg, SOL_IP, IP_RECVOPTS, IPCB(skb)->opt.optlen, msg 86 net/ipv4/ip_sockglue.c static void ip_cmsg_recv_retopts(struct net *net, struct msghdr *msg, msg 96 net/ipv4/ip_sockglue.c msg->msg_flags |= MSG_CTRUNC; msg 101 net/ipv4/ip_sockglue.c put_cmsg(msg, SOL_IP, IP_RETOPTS, opt->optlen, opt->__data); msg 104 net/ipv4/ip_sockglue.c static void ip_cmsg_recv_fragsize(struct msghdr *msg, struct sk_buff *skb) msg 112 net/ipv4/ip_sockglue.c put_cmsg(msg, SOL_IP, IP_RECVFRAGSIZE, sizeof(val), &val); msg 115 net/ipv4/ip_sockglue.c static void ip_cmsg_recv_checksum(struct msghdr *msg, struct sk_buff *skb, msg 128 net/ipv4/ip_sockglue.c put_cmsg(msg, SOL_IP, IP_CHECKSUM, sizeof(__wsum), &csum); msg 131 net/ipv4/ip_sockglue.c static void ip_cmsg_recv_security(struct msghdr *msg, struct sk_buff *skb) msg 145 net/ipv4/ip_sockglue.c put_cmsg(msg, SOL_IP, SCM_SECURITY, seclen, secdata); msg 149 net/ipv4/ip_sockglue.c static void ip_cmsg_recv_dstaddr(struct msghdr *msg, struct sk_buff *skb) msg 168 net/ipv4/ip_sockglue.c put_cmsg(msg, SOL_IP, IP_ORIGDSTADDR, sizeof(sin), &sin); msg 171 net/ipv4/ip_sockglue.c void ip_cmsg_recv_offset(struct msghdr *msg, struct sock *sk, msg 179 net/ipv4/ip_sockglue.c ip_cmsg_recv_pktinfo(msg, skb); msg 187 net/ipv4/ip_sockglue.c ip_cmsg_recv_ttl(msg, skb); msg 195 net/ipv4/ip_sockglue.c ip_cmsg_recv_tos(msg, skb); msg 203 net/ipv4/ip_sockglue.c ip_cmsg_recv_opts(msg, skb); msg 211 net/ipv4/ip_sockglue.c ip_cmsg_recv_retopts(sock_net(sk), msg, skb); msg 219 net/ipv4/ip_sockglue.c ip_cmsg_recv_security(msg, skb); msg 227 net/ipv4/ip_sockglue.c ip_cmsg_recv_dstaddr(msg, skb); msg 235 net/ipv4/ip_sockglue.c ip_cmsg_recv_checksum(msg, skb, tlen, offset); msg 238 net/ipv4/ip_sockglue.c ip_cmsg_recv_fragsize(msg, skb); msg 242 net/ipv4/ip_sockglue.c int ip_cmsg_send(struct sock *sk, struct msghdr *msg, struct ipcm_cookie *ipc, msg 249 net/ipv4/ip_sockglue.c for_each_cmsghdr(cmsg, msg) { msg 250 net/ipv4/ip_sockglue.c if (!CMSG_OK(msg, cmsg)) msg 270 net/ipv4/ip_sockglue.c err = __sock_cmsg_send(sk, msg, cmsg, &ipc->sockc); msg 500 net/ipv4/ip_sockglue.c int ip_recv_error(struct sock *sk, struct msghdr *msg, int len, int *addr_len) msg 504 net/ipv4/ip_sockglue.c DECLARE_SOCKADDR(struct sockaddr_in *, sin, msg->msg_name); msg 519 net/ipv4/ip_sockglue.c msg->msg_flags |= MSG_TRUNC; msg 522 net/ipv4/ip_sockglue.c err = skb_copy_datagram_msg(skb, 0, msg, copied); msg 527 net/ipv4/ip_sockglue.c sock_recv_timestamp(msg, sk, skb); msg 548 net/ipv4/ip_sockglue.c ip_cmsg_recv(msg, skb); msg 551 net/ipv4/ip_sockglue.c put_cmsg(msg, SOL_IP, IP_RECVERR, sizeof(errhdr), &errhdr); msg 555 net/ipv4/ip_sockglue.c msg->msg_flags |= MSG_ERRQUEUE; msg 1488 net/ipv4/ip_sockglue.c struct msghdr msg; msg 1495 net/ipv4/ip_sockglue.c msg.msg_control = (__force void *) optval; msg 1496 net/ipv4/ip_sockglue.c msg.msg_controllen = len; msg 1497 net/ipv4/ip_sockglue.c msg.msg_flags = flags; msg 1505 net/ipv4/ip_sockglue.c put_cmsg(&msg, SOL_IP, IP_PKTINFO, sizeof(info), &info); msg 1509 net/ipv4/ip_sockglue.c put_cmsg(&msg, SOL_IP, IP_TTL, sizeof(hlim), &hlim); msg 1513 net/ipv4/ip_sockglue.c put_cmsg(&msg, SOL_IP, IP_TOS, sizeof(tos), &tos); msg 1515 net/ipv4/ip_sockglue.c len -= msg.msg_controllen; msg 657 net/ipv4/ip_vti.c const char *msg; msg 662 net/ipv4/ip_vti.c msg = "tunnel device"; msg 667 net/ipv4/ip_vti.c msg = "tunnel protocols"; msg 678 net/ipv4/ip_vti.c msg = "ipip tunnel"; msg 683 net/ipv4/ip_vti.c msg = "netlink interface"; msg 701 net/ipv4/ip_vti.c pr_err("vti init: failed to register %s\n", msg); msg 758 net/ipv4/ipmr.c memset(&e->msg, 0, sizeof(e->msg)); msg 1025 net/ipv4/ipmr.c memset(&e->msg, 0, sizeof(e->msg)); msg 1045 net/ipv4/ipmr.c struct igmpmsg *msg; msg 1066 net/ipv4/ipmr.c msg = (struct igmpmsg *)skb_network_header(skb); msg 1067 net/ipv4/ipmr.c memcpy(msg, skb_network_header(pkt), sizeof(struct iphdr)); msg 1068 net/ipv4/ipmr.c msg->im_msgtype = assert; msg 1069 net/ipv4/ipmr.c msg->im_mbz = 0; msg 1071 net/ipv4/ipmr.c msg->im_vif = vifi; msg 1073 net/ipv4/ipmr.c msg->im_vif = mrt->mroute_reg_vif_num; msg 1084 net/ipv4/ipmr.c msg = (struct igmpmsg *)skb_network_header(skb); msg 1085 net/ipv4/ipmr.c msg->im_vif = vifi; msg 1090 net/ipv4/ipmr.c msg->im_msgtype = assert; msg 2440 net/ipv4/ipmr.c struct igmpmsg *msg; msg 2446 net/ipv4/ipmr.c msg = (struct igmpmsg *)skb_network_header(pkt); msg 2458 net/ipv4/ipmr.c if (nla_put_u8(skb, IPMRA_CREPORT_MSGTYPE, msg->im_msgtype) || msg 2459 net/ipv4/ipmr.c nla_put_u32(skb, IPMRA_CREPORT_VIF_ID, msg->im_vif) || msg 2461 net/ipv4/ipmr.c msg->im_src.s_addr) || msg 2463 net/ipv4/ipmr.c msg->im_dst.s_addr)) msg 131 net/ipv4/netfilter/nf_nat_pptp.c u_int16_t msg; msg 143 net/ipv4/netfilter/nf_nat_pptp.c switch (msg = ntohs(ctlh->messageType)) { msg 168 net/ipv4/netfilter/nf_nat_pptp.c pr_debug("unknown outbound packet 0x%04x:%s\n", msg, msg 169 net/ipv4/netfilter/nf_nat_pptp.c pptp_msg_name(msg)); msg 240 net/ipv4/netfilter/nf_nat_pptp.c u_int16_t msg; msg 250 net/ipv4/netfilter/nf_nat_pptp.c switch (msg = ntohs(ctlh->messageType)) { msg 270 net/ipv4/netfilter/nf_nat_pptp.c pr_debug("unknown inbound packet %s\n", pptp_msg_name(msg)); msg 608 net/ipv4/ping.c &pfh->msg->msg_iter)) msg 614 net/ipv4/ping.c &pfh->msg->msg_iter)) msg 649 net/ipv4/ping.c int ping_common_sendmsg(int family, struct msghdr *msg, size_t len, msg 665 net/ipv4/ping.c if (msg->msg_flags & MSG_OOB) msg 672 net/ipv4/ping.c if (memcpy_from_msg(user_icmph, msg, icmph_len)) msg 694 net/ipv4/ping.c static int ping_v4_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) msg 711 net/ipv4/ping.c err = ping_common_sendmsg(AF_INET, msg, len, &user_icmph, msg 720 net/ipv4/ping.c if (msg->msg_name) { msg 721 net/ipv4/ping.c DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); msg 722 net/ipv4/ping.c if (msg->msg_namelen < sizeof(*usin)) msg 737 net/ipv4/ping.c if (msg->msg_controllen) { msg 738 net/ipv4/ping.c err = ip_cmsg_send(sk, msg, &ipc, false); msg 771 net/ipv4/ping.c (msg->msg_flags & MSG_DONTROUTE) || msg 804 net/ipv4/ping.c if (msg->msg_flags & MSG_CONFIRM) msg 818 net/ipv4/ping.c pfh.msg = msg; msg 823 net/ipv4/ping.c 0, &ipc, &rt, msg->msg_flags); msg 842 net/ipv4/ping.c if (msg->msg_flags & MSG_PROBE) msg 844 net/ipv4/ping.c if (!(msg->msg_flags & MSG_PROBE) || len) msg 850 net/ipv4/ping.c int ping_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int noblock, msg 865 net/ipv4/ping.c return inet_recv_error(sk, msg, len, addr_len); msg 873 net/ipv4/ping.c msg->msg_flags |= MSG_TRUNC; msg 878 net/ipv4/ping.c err = skb_copy_datagram_msg(skb, 0, msg, copied); msg 882 net/ipv4/ping.c sock_recv_timestamp(msg, sk, skb); msg 886 net/ipv4/ping.c DECLARE_SOCKADDR(struct sockaddr_in *, sin, msg->msg_name); msg 897 net/ipv4/ping.c ip_cmsg_recv(msg, skb); msg 903 net/ipv4/ping.c DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, msg->msg_name); msg 919 net/ipv4/ping.c pingv6_ops.ip6_datagram_recv_common_ctl(sk, msg, skb); msg 922 net/ipv4/ping.c pingv6_ops.ip6_datagram_recv_specific_ctl(sk, msg, skb); msg 924 net/ipv4/ping.c ip_cmsg_recv(msg, skb); msg 80 net/ipv4/raw.c struct msghdr *msg; msg 344 net/ipv4/raw.c struct msghdr *msg, size_t length, msg 396 net/ipv4/raw.c if (memcpy_from_msg(iph, msg, length)) msg 457 net/ipv4/raw.c err = memcpy_from_msg(rfv->hdr.c, rfv->msg, rfv->hlen); msg 495 net/ipv4/raw.c return ip_generic_getfrag(rfv->msg, to, offset, len, odd, skb); msg 498 net/ipv4/raw.c static int raw_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) msg 529 net/ipv4/raw.c if (msg->msg_flags & MSG_OOB) /* Mirror BSD error message */ msg 536 net/ipv4/raw.c if (msg->msg_namelen) { msg 537 net/ipv4/raw.c DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); msg 539 net/ipv4/raw.c if (msg->msg_namelen < sizeof(*usin)) msg 562 net/ipv4/raw.c if (msg->msg_controllen) { msg 563 net/ipv4/raw.c err = ip_cmsg_send(sk, msg, &ipc, false); msg 602 net/ipv4/raw.c if (msg->msg_flags & MSG_DONTROUTE) msg 634 net/ipv4/raw.c rfv.msg = msg; msg 654 net/ipv4/raw.c if (msg->msg_flags & MSG_CONFIRM) msg 659 net/ipv4/raw.c err = raw_send_hdrinc(sk, &fl4, msg, len, msg 660 net/ipv4/raw.c &rt, msg->msg_flags, &ipc.sockc); msg 668 net/ipv4/raw.c &ipc, &rt, msg->msg_flags); msg 671 net/ipv4/raw.c else if (!(msg->msg_flags & MSG_MORE)) { msg 689 net/ipv4/raw.c if (msg->msg_flags & MSG_PROBE) msg 691 net/ipv4/raw.c if (!(msg->msg_flags & MSG_PROBE) || len) msg 750 net/ipv4/raw.c static int raw_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, msg 756 net/ipv4/raw.c DECLARE_SOCKADDR(struct sockaddr_in *, sin, msg->msg_name); msg 763 net/ipv4/raw.c err = ip_recv_error(sk, msg, len, addr_len); msg 773 net/ipv4/raw.c msg->msg_flags |= MSG_TRUNC; msg 777 net/ipv4/raw.c err = skb_copy_datagram_msg(skb, 0, msg, copied); msg 781 net/ipv4/raw.c sock_recv_ts_and_drops(msg, sk, skb); msg 792 net/ipv4/raw.c ip_cmsg_recv(msg, skb); msg 1139 net/ipv4/tcp.c static int tcp_sendmsg_fastopen(struct sock *sk, struct msghdr *msg, msg 1145 net/ipv4/tcp.c struct sockaddr *uaddr = msg->msg_name; msg 1149 net/ipv4/tcp.c (uaddr && msg->msg_namelen >= sizeof(uaddr->sa_family) && msg 1159 net/ipv4/tcp.c tp->fastopen_req->data = msg; msg 1172 net/ipv4/tcp.c flags = (msg->msg_flags & MSG_DONTWAIT) ? O_NONBLOCK : 0; msg 1174 net/ipv4/tcp.c msg->msg_namelen, flags, 1); msg 1186 net/ipv4/tcp.c int tcp_sendmsg_locked(struct sock *sk, struct msghdr *msg, size_t size) msg 1198 net/ipv4/tcp.c flags = msg->msg_flags; msg 1215 net/ipv4/tcp.c err = tcp_sendmsg_fastopen(sk, msg, &copied_syn, size, uarg); msg 1239 net/ipv4/tcp.c copied = tcp_send_rcvq(sk, msg, size); msg 1251 net/ipv4/tcp.c if (msg->msg_controllen) { msg 1252 net/ipv4/tcp.c err = sock_cmsg_send(sk, msg, &sockc); msg 1272 net/ipv4/tcp.c while (msg_data_left(msg)) { msg 1312 net/ipv4/tcp.c if (copy > msg_data_left(msg)) msg 1313 net/ipv4/tcp.c copy = msg_data_left(msg); msg 1319 net/ipv4/tcp.c err = skb_add_data_nocache(sk, skb, &msg->msg_iter, copy); msg 1344 net/ipv4/tcp.c err = skb_copy_to_page_nocache(sk, &msg->msg_iter, skb, msg 1361 net/ipv4/tcp.c err = skb_zerocopy_iter_stream(sk, skb, msg, copy, uarg); msg 1379 net/ipv4/tcp.c if (!msg_data_left(msg)) { msg 1437 net/ipv4/tcp.c int tcp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size) msg 1442 net/ipv4/tcp.c ret = tcp_sendmsg_locked(sk, msg, size); msg 1454 net/ipv4/tcp.c static int tcp_recv_urg(struct sock *sk, struct msghdr *msg, int len, int flags) msg 1474 net/ipv4/tcp.c msg->msg_flags |= MSG_OOB; msg 1478 net/ipv4/tcp.c err = memcpy_to_msg(msg, &c, 1); msg 1481 net/ipv4/tcp.c msg->msg_flags |= MSG_TRUNC; msg 1498 net/ipv4/tcp.c static int tcp_peek_sndq(struct sock *sk, struct msghdr *msg, int len) msg 1506 net/ipv4/tcp.c err = skb_copy_datagram_msg(skb, 0, msg, skb->len); msg 1513 net/ipv4/tcp.c err = skb_copy_datagram_msg(skb, 0, msg, skb->len); msg 1864 net/ipv4/tcp.c static void tcp_recv_timestamp(struct msghdr *msg, const struct sock *sk, msg 1876 net/ipv4/tcp.c put_cmsg(msg, SOL_SOCKET, SO_TIMESTAMPNS_NEW, msg 1881 net/ipv4/tcp.c put_cmsg(msg, SOL_SOCKET, SO_TIMESTAMPNS_OLD, msg 1890 net/ipv4/tcp.c put_cmsg(msg, SOL_SOCKET, SO_TIMESTAMP_NEW, msg 1897 net/ipv4/tcp.c put_cmsg(msg, SOL_SOCKET, SO_TIMESTAMP_OLD, msg 1919 net/ipv4/tcp.c put_cmsg_scm_timestamping64(msg, tss); msg 1921 net/ipv4/tcp.c put_cmsg_scm_timestamping(msg, tss); msg 1954 net/ipv4/tcp.c int tcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock, msg 1971 net/ipv4/tcp.c return inet_recv_error(sk, msg, len, addr_len); msg 2141 net/ipv4/tcp.c err = skb_copy_datagram_msg(skb, offset, msg, used); msg 2195 net/ipv4/tcp.c tcp_recv_timestamp(msg, sk, &tss); msg 2198 net/ipv4/tcp.c put_cmsg(msg, SOL_TCP, TCP_CM_INQ, sizeof(inq), &inq); msg 2209 net/ipv4/tcp.c err = tcp_recv_urg(sk, msg, len, flags); msg 2213 net/ipv4/tcp.c err = tcp_peek_sndq(sk, msg, len); msg 46 net/ipv4/tcp_bpf.c struct msghdr *msg, int len, int flags) msg 48 net/ipv4/tcp_bpf.c struct iov_iter *iter = &msg->msg_iter; msg 118 net/ipv4/tcp_bpf.c int tcp_bpf_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, msg 125 net/ipv4/tcp_bpf.c return inet_recv_error(sk, msg, len, addr_len); msg 129 net/ipv4/tcp_bpf.c return tcp_recvmsg(sk, msg, len, nonblock, flags, addr_len); msg 133 net/ipv4/tcp_bpf.c return tcp_recvmsg(sk, msg, len, nonblock, flags, addr_len); msg 137 net/ipv4/tcp_bpf.c copied = __tcp_bpf_recvmsg(sk, psock, msg, len, flags); msg 149 net/ipv4/tcp_bpf.c return tcp_recvmsg(sk, msg, len, nonblock, flags, addr_len); msg 165 net/ipv4/tcp_bpf.c struct sk_msg *msg, u32 apply_bytes, int flags) msg 178 net/ipv4/tcp_bpf.c tmp->sg.start = msg->sg.start; msg 179 net/ipv4/tcp_bpf.c i = msg->sg.start; msg 181 net/ipv4/tcp_bpf.c sge = sk_msg_elem(msg, i); msg 191 net/ipv4/tcp_bpf.c sk_msg_xfer(tmp, msg, i, size); msg 202 net/ipv4/tcp_bpf.c } while (i != msg->sg.end); msg 205 net/ipv4/tcp_bpf.c msg->sg.start = i; msg 217 net/ipv4/tcp_bpf.c static int tcp_bpf_push(struct sock *sk, struct sk_msg *msg, u32 apply_bytes, msg 229 net/ipv4/tcp_bpf.c sge = sk_msg_elem(msg, msg->sg.start); msg 250 net/ipv4/tcp_bpf.c msg->sg.size -= ret; msg 262 net/ipv4/tcp_bpf.c sk_msg_iter_next(msg, start); msg 264 net/ipv4/tcp_bpf.c if (msg->sg.start == msg->sg.end) msg 274 net/ipv4/tcp_bpf.c static int tcp_bpf_push_locked(struct sock *sk, struct sk_msg *msg, msg 280 net/ipv4/tcp_bpf.c ret = tcp_bpf_push(sk, msg, apply_bytes, flags, uncharge); msg 285 net/ipv4/tcp_bpf.c int tcp_bpf_sendmsg_redir(struct sock *sk, struct sk_msg *msg, msg 288 net/ipv4/tcp_bpf.c bool ingress = sk_msg_to_ingress(msg); msg 293 net/ipv4/tcp_bpf.c sk_msg_free(sk, msg); msg 296 net/ipv4/tcp_bpf.c ret = ingress ? bpf_tcp_ingress(sk, psock, msg, bytes, flags) : msg 297 net/ipv4/tcp_bpf.c tcp_bpf_push_locked(sk, msg, bytes, flags, false); msg 304 net/ipv4/tcp_bpf.c struct sk_msg *msg, int *copied, int flags) msg 306 net/ipv4/tcp_bpf.c bool cork = false, enospc = sk_msg_full(msg); msg 318 net/ipv4/tcp_bpf.c delta = msg->sg.size; msg 319 net/ipv4/tcp_bpf.c psock->eval = sk_psock_msg_verdict(sk, psock, msg); msg 320 net/ipv4/tcp_bpf.c delta -= msg->sg.size; msg 323 net/ipv4/tcp_bpf.c if (msg->cork_bytes && msg 324 net/ipv4/tcp_bpf.c msg->cork_bytes > msg->sg.size && !enospc) { msg 325 net/ipv4/tcp_bpf.c psock->cork_bytes = msg->cork_bytes - msg->sg.size; msg 332 net/ipv4/tcp_bpf.c memcpy(psock->cork, msg, sizeof(*msg)); msg 336 net/ipv4/tcp_bpf.c tosend = msg->sg.size; msg 342 net/ipv4/tcp_bpf.c ret = tcp_bpf_push(sk, msg, tosend, flags, true); msg 344 net/ipv4/tcp_bpf.c *copied -= sk_msg_free(sk, msg); msg 356 net/ipv4/tcp_bpf.c sk_msg_return(sk, msg, tosend); msg 358 net/ipv4/tcp_bpf.c ret = tcp_bpf_sendmsg_redir(sk_redir, msg, tosend, flags); msg 361 net/ipv4/tcp_bpf.c int free = sk_msg_free_nocharge(sk, msg); msg 367 net/ipv4/tcp_bpf.c sk_msg_free(sk, msg); msg 368 net/ipv4/tcp_bpf.c kfree(msg); msg 369 net/ipv4/tcp_bpf.c msg = NULL; msg 375 net/ipv4/tcp_bpf.c sk_msg_free_partial(sk, msg, tosend); msg 389 net/ipv4/tcp_bpf.c if (msg && msg 390 net/ipv4/tcp_bpf.c msg->sg.data[msg->sg.start].page_link && msg 391 net/ipv4/tcp_bpf.c msg->sg.data[msg->sg.start].length) msg 397 net/ipv4/tcp_bpf.c static int tcp_bpf_sendmsg(struct sock *sk, struct msghdr *msg, size_t size) msg 406 net/ipv4/tcp_bpf.c flags = (msg->msg_flags & ~MSG_SENDPAGE_DECRYPTED); msg 411 net/ipv4/tcp_bpf.c return tcp_sendmsg(sk, msg, size); msg 414 net/ipv4/tcp_bpf.c timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); msg 415 net/ipv4/tcp_bpf.c while (msg_data_left(msg)) { msg 424 net/ipv4/tcp_bpf.c copy = msg_data_left(msg); msg 443 net/ipv4/tcp_bpf.c err = sk_msg_memcopy_from_iter(sk, &msg->msg_iter, msg_tx, msg 479 net/ipv4/tcp_bpf.c err = sk_stream_error(sk, msg->msg_flags, err); msg 488 net/ipv4/tcp_bpf.c struct sk_msg tmp, *msg = NULL; msg 499 net/ipv4/tcp_bpf.c msg = psock->cork; msg 501 net/ipv4/tcp_bpf.c msg = &tmp; msg 502 net/ipv4/tcp_bpf.c sk_msg_init(msg); msg 506 net/ipv4/tcp_bpf.c if (unlikely(sk_msg_full(msg))) msg 509 net/ipv4/tcp_bpf.c sk_msg_page_add(msg, page, size, offset); msg 512 net/ipv4/tcp_bpf.c if (sk_msg_full(msg)) msg 526 net/ipv4/tcp_bpf.c err = tcp_bpf_send_verdict(sk, psock, msg, &copied, flags); msg 2320 net/ipv4/tcp_input.c static void DBGUNDO(struct sock *sk, const char *msg) msg 2328 net/ipv4/tcp_input.c msg, msg 2337 net/ipv4/tcp_input.c msg, msg 4697 net/ipv4/tcp_input.c int tcp_send_rcvq(struct sock *sk, struct msghdr *msg, size_t size) msg 4728 net/ipv4/tcp_input.c err = skb_copy_datagram_from_iter(skb, 0, &msg->msg_iter, size); msg 6489 net/ipv4/tcp_input.c const char *msg = "Dropping request"; msg 6495 net/ipv4/tcp_input.c msg = "Sending cookies"; msg 6506 net/ipv4/tcp_input.c proto, sk->sk_num, msg); msg 616 net/ipv4/tcp_metrics.c static int tcp_metrics_fill_info(struct sk_buff *msg, msg 624 net/ipv4/tcp_metrics.c if (nla_put_in_addr(msg, TCP_METRICS_ATTR_ADDR_IPV4, msg 627 net/ipv4/tcp_metrics.c if (nla_put_in_addr(msg, TCP_METRICS_ATTR_SADDR_IPV4, msg 632 net/ipv4/tcp_metrics.c if (nla_put_in6_addr(msg, TCP_METRICS_ATTR_ADDR_IPV6, msg 635 net/ipv4/tcp_metrics.c if (nla_put_in6_addr(msg, TCP_METRICS_ATTR_SADDR_IPV6, msg 643 net/ipv4/tcp_metrics.c if (nla_put_msecs(msg, TCP_METRICS_ATTR_AGE, msg 651 net/ipv4/tcp_metrics.c nest = nla_nest_start_noflag(msg, TCP_METRICS_ATTR_VALS); msg 660 net/ipv4/tcp_metrics.c if (nla_put_u32(msg, TCP_METRIC_RTT_US + 1, msg 667 net/ipv4/tcp_metrics.c if (nla_put_u32(msg, TCP_METRIC_RTTVAR_US + 1, msg 673 net/ipv4/tcp_metrics.c if (nla_put_u32(msg, i + 1, val) < 0) msg 678 net/ipv4/tcp_metrics.c nla_nest_end(msg, nest); msg 680 net/ipv4/tcp_metrics.c nla_nest_cancel(msg, nest); msg 694 net/ipv4/tcp_metrics.c nla_put_u16(msg, TCP_METRICS_ATTR_FOPEN_MSS, msg 698 net/ipv4/tcp_metrics.c (nla_put_u16(msg, TCP_METRICS_ATTR_FOPEN_SYN_DROPS, msg 700 net/ipv4/tcp_metrics.c nla_put_msecs(msg, TCP_METRICS_ATTR_FOPEN_SYN_DROP_TS, msg 705 net/ipv4/tcp_metrics.c nla_put(msg, TCP_METRICS_ATTR_FOPEN_COOKIE, msg 819 net/ipv4/tcp_metrics.c struct sk_buff *msg; msg 833 net/ipv4/tcp_metrics.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 834 net/ipv4/tcp_metrics.c if (!msg) msg 837 net/ipv4/tcp_metrics.c reply = genlmsg_put_reply(msg, info, &tcp_metrics_nl_family, 0, msg 851 net/ipv4/tcp_metrics.c ret = tcp_metrics_fill_info(msg, tm); msg 859 net/ipv4/tcp_metrics.c genlmsg_end(msg, reply); msg 860 net/ipv4/tcp_metrics.c return genlmsg_reply(msg, info); msg 866 net/ipv4/tcp_metrics.c nlmsg_free(msg); msg 941 net/ipv4/udp.c int udp_cmsg_send(struct sock *sk, struct msghdr *msg, u16 *gso_size) msg 947 net/ipv4/udp.c for_each_cmsghdr(cmsg, msg) { msg 948 net/ipv4/udp.c if (!CMSG_OK(msg, cmsg)) msg 965 net/ipv4/udp.c int udp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) msg 969 net/ipv4/udp.c DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); msg 981 net/ipv4/udp.c int corkreq = up->corkflag || msg->msg_flags&MSG_MORE; msg 993 net/ipv4/udp.c if (msg->msg_flags & MSG_OOB) /* Mirror BSD error message compatibility */ msg 1020 net/ipv4/udp.c if (msg->msg_namelen < sizeof(*usin)) msg 1045 net/ipv4/udp.c if (msg->msg_controllen) { msg 1046 net/ipv4/udp.c err = udp_cmsg_send(sk, msg, &ipc.gso_size); msg 1048 net/ipv4/udp.c err = ip_cmsg_send(sk, msg, &ipc, msg 1100 net/ipv4/udp.c (msg->msg_flags & MSG_DONTROUTE) || msg 1161 net/ipv4/udp.c if (msg->msg_flags&MSG_CONFIRM) msg 1173 net/ipv4/udp.c skb = ip_make_skb(sk, fl4, getfrag, msg, ulen, msg 1175 net/ipv4/udp.c &cork, msg->msg_flags); msg 1204 net/ipv4/udp.c err = ip_append_data(sk, fl4, getfrag, msg, ulen, msg 1206 net/ipv4/udp.c corkreq ? msg->msg_flags|MSG_MORE : msg->msg_flags); msg 1236 net/ipv4/udp.c if (msg->msg_flags & MSG_PROBE) msg 1238 net/ipv4/udp.c if (!(msg->msg_flags&MSG_PROBE) || len) msg 1256 net/ipv4/udp.c struct msghdr msg = { .msg_flags = flags|MSG_MORE }; msg 1262 net/ipv4/udp.c ret = udp_sendmsg(sk, &msg, 0); msg 1725 net/ipv4/udp.c int udp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int noblock, msg 1729 net/ipv4/udp.c DECLARE_SOCKADDR(struct sockaddr_in *, sin, msg->msg_name); msg 1737 net/ipv4/udp.c return ip_recv_error(sk, msg, len, addr_len); msg 1750 net/ipv4/udp.c msg->msg_flags |= MSG_TRUNC; msg 1768 net/ipv4/udp.c err = copy_linear_skb(skb, copied, off, &msg->msg_iter); msg 1770 net/ipv4/udp.c err = skb_copy_datagram_msg(skb, off, msg, copied); msg 1772 net/ipv4/udp.c err = skb_copy_and_csum_datagram_msg(skb, off, msg); msg 1792 net/ipv4/udp.c sock_recv_ts_and_drops(msg, sk, skb); msg 1808 net/ipv4/udp.c udp_cmsg_recv(msg, sk, skb); msg 1811 net/ipv4/udp.c ip_cmsg_recv_offset(msg, sk, skb, sizeof(struct udphdr), off); msg 1830 net/ipv4/udp.c msg->msg_flags &= ~MSG_TRUNC; msg 26 net/ipv4/udp_impl.h int udp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int noblock, msg 569 net/ipv6/af_inet6.c int inet6_sendmsg(struct socket *sock, struct msghdr *msg, size_t size) msg 577 net/ipv6/af_inet6.c sk, msg, size); msg 582 net/ipv6/af_inet6.c int inet6_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, msg 593 net/ipv6/af_inet6.c sk, msg, size, flags & MSG_DONTWAIT, msg 596 net/ipv6/af_inet6.c msg->msg_namelen = addr_len; msg 432 net/ipv6/datagram.c int ipv6_recv_error(struct sock *sk, struct msghdr *msg, int len, int *addr_len) msg 437 net/ipv6/datagram.c DECLARE_SOCKADDR(struct sockaddr_in6 *, sin, msg->msg_name); msg 452 net/ipv6/datagram.c msg->msg_flags |= MSG_TRUNC; msg 455 net/ipv6/datagram.c err = skb_copy_datagram_msg(skb, 0, msg, copied); msg 460 net/ipv6/datagram.c sock_recv_timestamp(msg, sk, skb); msg 493 net/ipv6/datagram.c ip6_datagram_recv_common_ctl(sk, msg, skb); msg 497 net/ipv6/datagram.c ip6_datagram_recv_specific_ctl(sk, msg, skb); msg 505 net/ipv6/datagram.c ip_cmsg_recv(msg, skb); msg 509 net/ipv6/datagram.c put_cmsg(msg, SOL_IPV6, IPV6_RECVERR, sizeof(errhdr), &errhdr); msg 513 net/ipv6/datagram.c msg->msg_flags |= MSG_ERRQUEUE; msg 525 net/ipv6/datagram.c int ipv6_recv_rxpmtu(struct sock *sk, struct msghdr *msg, int len, msg 531 net/ipv6/datagram.c DECLARE_SOCKADDR(struct sockaddr_in6 *, sin, msg->msg_name); msg 542 net/ipv6/datagram.c msg->msg_flags |= MSG_TRUNC; msg 545 net/ipv6/datagram.c err = skb_copy_datagram_msg(skb, 0, msg, copied); msg 549 net/ipv6/datagram.c sock_recv_timestamp(msg, sk, skb); msg 562 net/ipv6/datagram.c put_cmsg(msg, SOL_IPV6, IPV6_PATHMTU, sizeof(mtu_info), &mtu_info); msg 573 net/ipv6/datagram.c void ip6_datagram_recv_common_ctl(struct sock *sk, struct msghdr *msg, msg 593 net/ipv6/datagram.c put_cmsg(msg, SOL_IPV6, IPV6_PKTINFO, msg 598 net/ipv6/datagram.c void ip6_datagram_recv_specific_ctl(struct sock *sk, struct msghdr *msg, msg 607 net/ipv6/datagram.c put_cmsg(msg, SOL_IPV6, IPV6_HOPLIMIT, sizeof(hlim), &hlim); msg 612 net/ipv6/datagram.c put_cmsg(msg, SOL_IPV6, IPV6_TCLASS, sizeof(tclass), &tclass); msg 618 net/ipv6/datagram.c put_cmsg(msg, SOL_IPV6, IPV6_FLOWINFO, sizeof(flowinfo), &flowinfo); msg 624 net/ipv6/datagram.c put_cmsg(msg, SOL_IPV6, IPV6_HOPOPTS, (ptr[1]+1)<<3, ptr); msg 650 net/ipv6/datagram.c put_cmsg(msg, SOL_IPV6, IPV6_DSTOPTS, len, ptr); msg 656 net/ipv6/datagram.c put_cmsg(msg, SOL_IPV6, IPV6_RTHDR, len, ptr); msg 678 net/ipv6/datagram.c put_cmsg(msg, SOL_IPV6, IPV6_2292PKTINFO, sizeof(src_info), &src_info); msg 682 net/ipv6/datagram.c put_cmsg(msg, SOL_IPV6, IPV6_2292HOPLIMIT, sizeof(hlim), &hlim); msg 686 net/ipv6/datagram.c put_cmsg(msg, SOL_IPV6, IPV6_2292HOPOPTS, (ptr[1]+1)<<3, ptr); msg 690 net/ipv6/datagram.c put_cmsg(msg, SOL_IPV6, IPV6_2292DSTOPTS, (ptr[1]+1)<<3, ptr); msg 694 net/ipv6/datagram.c put_cmsg(msg, SOL_IPV6, IPV6_2292RTHDR, (rthdr->hdrlen+1) << 3, rthdr); msg 698 net/ipv6/datagram.c put_cmsg(msg, SOL_IPV6, IPV6_2292DSTOPTS, (ptr[1]+1)<<3, ptr); msg 719 net/ipv6/datagram.c put_cmsg(msg, SOL_IPV6, IPV6_ORIGDSTADDR, sizeof(sin6), &sin6); msg 725 net/ipv6/datagram.c put_cmsg(msg, SOL_IPV6, IPV6_RECVFRAGSIZE, sizeof(val), &val); msg 729 net/ipv6/datagram.c void ip6_datagram_recv_ctl(struct sock *sk, struct msghdr *msg, msg 732 net/ipv6/datagram.c ip6_datagram_recv_common_ctl(sk, msg, skb); msg 733 net/ipv6/datagram.c ip6_datagram_recv_specific_ctl(sk, msg, skb); msg 738 net/ipv6/datagram.c struct msghdr *msg, struct flowi6 *fl6, msg 749 net/ipv6/datagram.c for_each_cmsghdr(cmsg, msg) { msg 752 net/ipv6/datagram.c if (!CMSG_OK(msg, cmsg)) { msg 758 net/ipv6/datagram.c err = __sock_cmsg_send(sk, msg, cmsg, &ipc6->sockc); msg 296 net/ipv6/icmp.c struct icmpv6_msg *msg = (struct icmpv6_msg *) from; msg 297 net/ipv6/icmp.c struct sk_buff *org_skb = msg->skb; msg 300 net/ipv6/icmp.c csum = skb_copy_and_csum_bits(org_skb, msg->offset + offset, msg 303 net/ipv6/icmp.c if (!(msg->type & ICMPV6_INFOMSG_MASK)) msg 435 net/ipv6/icmp.c struct icmpv6_msg msg; msg 563 net/ipv6/icmp.c msg.skb = skb; msg 564 net/ipv6/icmp.c msg.offset = skb_network_offset(skb); msg 565 net/ipv6/icmp.c msg.type = type; msg 567 net/ipv6/icmp.c len = skb->len - msg.offset; msg 578 net/ipv6/icmp.c if (ip6_append_data(sk, icmpv6_getfrag, &msg, msg 682 net/ipv6/icmp.c struct icmpv6_msg msg; msg 744 net/ipv6/icmp.c msg.skb = skb; msg 745 net/ipv6/icmp.c msg.offset = 0; msg 746 net/ipv6/icmp.c msg.type = ICMPV6_ECHO_REPLY; msg 752 net/ipv6/icmp.c if (ip6_append_data(sk, icmpv6_getfrag, &msg, msg 424 net/ipv6/ila/ila_xlat.c static int ila_fill_info(struct ila_map *ila, struct sk_buff *msg) msg 426 net/ipv6/ila/ila_xlat.c if (nla_put_u64_64bit(msg, ILA_ATTR_LOCATOR, msg 429 net/ipv6/ila/ila_xlat.c nla_put_u64_64bit(msg, ILA_ATTR_LOCATOR_MATCH, msg 432 net/ipv6/ila/ila_xlat.c nla_put_s32(msg, ILA_ATTR_IFINDEX, ila->xp.ifindex) || msg 433 net/ipv6/ila/ila_xlat.c nla_put_u8(msg, ILA_ATTR_CSUM_MODE, ila->xp.ip.csum_mode) || msg 434 net/ipv6/ila/ila_xlat.c nla_put_u8(msg, ILA_ATTR_IDENT_TYPE, ila->xp.ip.ident_type)) msg 465 net/ipv6/ila/ila_xlat.c struct sk_buff *msg; msg 474 net/ipv6/ila/ila_xlat.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 475 net/ipv6/ila/ila_xlat.c if (!msg) msg 484 net/ipv6/ila/ila_xlat.c info->snd_seq, 0, msg, msg 493 net/ipv6/ila/ila_xlat.c return genlmsg_reply(msg, info); msg 496 net/ipv6/ila/ila_xlat.c nlmsg_free(msg); msg 392 net/ipv6/ip6_flowlabel.c struct msghdr msg; msg 407 net/ipv6/ip6_flowlabel.c msg.msg_controllen = olen; msg 408 net/ipv6/ip6_flowlabel.c msg.msg_control = (void *)(fl->opt+1); msg 412 net/ipv6/ip6_flowlabel.c err = ip6_datagram_send_ctl(net, sk, &msg, &flowi6, &ipc6); msg 470 net/ipv6/ip6_tunnel.c u8 *type, u8 *code, int *msg, __u32 *info, int offset) msg 553 net/ipv6/ip6_tunnel.c *msg = rel_msg; msg 1214 net/ipv6/ip6_vti.c const char *msg; msg 1217 net/ipv6/ip6_vti.c msg = "tunnel device"; msg 1222 net/ipv6/ip6_vti.c msg = "tunnel protocols"; msg 1233 net/ipv6/ip6_vti.c msg = "netlink interface"; msg 1249 net/ipv6/ip6_vti.c pr_err("vti6 init: failed to register %s\n", msg); msg 1040 net/ipv6/ip6mr.c struct mrt6msg *msg; msg 1046 net/ipv6/ip6mr.c +sizeof(*msg)); msg 1049 net/ipv6/ip6mr.c skb = alloc_skb(sizeof(struct ipv6hdr) + sizeof(*msg), GFP_ATOMIC); msg 1068 net/ipv6/ip6mr.c skb_push(skb, sizeof(*msg)); msg 1070 net/ipv6/ip6mr.c msg = (struct mrt6msg *)skb_transport_header(skb); msg 1071 net/ipv6/ip6mr.c msg->im6_mbz = 0; msg 1072 net/ipv6/ip6mr.c msg->im6_msgtype = MRT6MSG_WHOLEPKT; msg 1073 net/ipv6/ip6mr.c msg->im6_mif = mrt->mroute_reg_vif_num; msg 1074 net/ipv6/ip6mr.c msg->im6_pad = 0; msg 1075 net/ipv6/ip6mr.c msg->im6_src = ipv6_hdr(pkt)->saddr; msg 1076 net/ipv6/ip6mr.c msg->im6_dst = ipv6_hdr(pkt)->daddr; msg 1093 net/ipv6/ip6mr.c skb_put(skb, sizeof(*msg)); msg 1095 net/ipv6/ip6mr.c msg = (struct mrt6msg *)skb_transport_header(skb); msg 1097 net/ipv6/ip6mr.c msg->im6_mbz = 0; msg 1098 net/ipv6/ip6mr.c msg->im6_msgtype = assert; msg 1099 net/ipv6/ip6mr.c msg->im6_mif = mifi; msg 1100 net/ipv6/ip6mr.c msg->im6_pad = 0; msg 1101 net/ipv6/ip6mr.c msg->im6_src = ipv6_hdr(pkt)->saddr; msg 1102 net/ipv6/ip6mr.c msg->im6_dst = ipv6_hdr(pkt)->daddr; msg 2440 net/ipv6/ip6mr.c struct mrt6msg *msg; msg 2446 net/ipv6/ip6mr.c msg = (struct mrt6msg *)skb_transport_header(pkt); msg 2458 net/ipv6/ip6mr.c if (nla_put_u8(skb, IP6MRA_CREPORT_MSGTYPE, msg->im6_msgtype) || msg 2459 net/ipv6/ip6mr.c nla_put_u32(skb, IP6MRA_CREPORT_MIF_ID, msg->im6_mif) || msg 2461 net/ipv6/ip6mr.c &msg->im6_src) || msg 2463 net/ipv6/ip6mr.c &msg->im6_dst)) msg 505 net/ipv6/ipv6_sockglue.c struct msghdr msg; msg 535 net/ipv6/ipv6_sockglue.c msg.msg_controllen = optlen; msg 536 net/ipv6/ipv6_sockglue.c msg.msg_control = (void *)(opt+1); msg 539 net/ipv6/ipv6_sockglue.c retv = ip6_datagram_send_ctl(net, sk, &msg, &fl6, &ipc6); msg 1070 net/ipv6/ipv6_sockglue.c struct msghdr msg; msg 1076 net/ipv6/ipv6_sockglue.c msg.msg_control = optval; msg 1077 net/ipv6/ipv6_sockglue.c msg.msg_controllen = len; msg 1078 net/ipv6/ipv6_sockglue.c msg.msg_flags = flags; msg 1083 net/ipv6/ipv6_sockglue.c ip6_datagram_recv_ctl(sk, &msg, skb); msg 1091 net/ipv6/ipv6_sockglue.c put_cmsg(&msg, SOL_IPV6, IPV6_PKTINFO, sizeof(src_info), &src_info); msg 1095 net/ipv6/ipv6_sockglue.c put_cmsg(&msg, SOL_IPV6, IPV6_HOPLIMIT, sizeof(hlim), &hlim); msg 1100 net/ipv6/ipv6_sockglue.c put_cmsg(&msg, SOL_IPV6, IPV6_TCLASS, sizeof(tclass), &tclass); msg 1108 net/ipv6/ipv6_sockglue.c put_cmsg(&msg, SOL_IPV6, IPV6_2292PKTINFO, sizeof(src_info), &src_info); msg 1112 net/ipv6/ipv6_sockglue.c put_cmsg(&msg, SOL_IPV6, IPV6_2292HOPLIMIT, sizeof(hlim), &hlim); msg 1117 net/ipv6/ipv6_sockglue.c put_cmsg(&msg, SOL_IPV6, IPV6_FLOWINFO, sizeof(flowinfo), &flowinfo); msg 1120 net/ipv6/ipv6_sockglue.c len -= msg.msg_controllen; msg 524 net/ipv6/ndisc.c struct nd_msg *msg; msg 549 net/ipv6/ndisc.c skb = ndisc_alloc_skb(dev, sizeof(*msg) + optlen); msg 553 net/ipv6/ndisc.c msg = skb_put(skb, sizeof(*msg)); msg 554 net/ipv6/ndisc.c *msg = (struct nd_msg) { msg 606 net/ipv6/ndisc.c struct nd_msg *msg; msg 623 net/ipv6/ndisc.c skb = ndisc_alloc_skb(dev, sizeof(*msg) + optlen); msg 627 net/ipv6/ndisc.c msg = skb_put(skb, sizeof(*msg)); msg 628 net/ipv6/ndisc.c *msg = (struct nd_msg) { msg 654 net/ipv6/ndisc.c struct rs_msg *msg; msg 683 net/ipv6/ndisc.c skb = ndisc_alloc_skb(dev, sizeof(*msg) + optlen); msg 687 net/ipv6/ndisc.c msg = skb_put(skb, sizeof(*msg)); msg 688 net/ipv6/ndisc.c *msg = (struct rs_msg) { msg 769 net/ipv6/ndisc.c struct nd_msg *msg = (struct nd_msg *)skb_transport_header(skb); msg 790 net/ipv6/ndisc.c if (ipv6_addr_is_multicast(&msg->target)) { msg 804 net/ipv6/ndisc.c if (!ndisc_parse_options(dev, msg->opt, ndoptlen, &ndopts)) { msg 833 net/ipv6/ndisc.c ifp = ipv6_get_ifaddr(dev_net(dev), &msg->target, dev, 1); msg 876 net/ipv6/ndisc.c ifp = ipv6_get_ifaddr(net, &msg->target, mdev, 1); msg 888 net/ipv6/ndisc.c if (ipv6_chk_acast_addr(net, dev, &msg->target) || msg 891 net/ipv6/ndisc.c (is_router = pndisc_is_router(&msg->target, dev)) >= 0)) { msg 916 net/ipv6/ndisc.c ndisc_send_na(dev, &in6addr_linklocal_allnodes, &msg->target, msg 938 net/ipv6/ndisc.c ndisc_send_na(dev, saddr, &msg->target, !!is_router, msg 953 net/ipv6/ndisc.c struct nd_msg *msg = (struct nd_msg *)skb_transport_header(skb); msg 970 net/ipv6/ndisc.c if (ipv6_addr_is_multicast(&msg->target)) { msg 976 net/ipv6/ndisc.c msg->icmph.icmp6_solicited) { msg 985 net/ipv6/ndisc.c if (!msg->icmph.icmp6_solicited && idev && msg 989 net/ipv6/ndisc.c if (!ndisc_parse_options(dev, msg->opt, ndoptlen, &ndopts)) { msg 1001 net/ipv6/ndisc.c ifp = ipv6_get_ifaddr(dev_net(dev), &msg->target, dev, 1); msg 1024 net/ipv6/ndisc.c neigh = neigh_lookup(&nd_tbl, &msg->target, dev); msg 1040 net/ipv6/ndisc.c pneigh_lookup(&nd_tbl, net, &msg->target, dev, 0)) { msg 1046 net/ipv6/ndisc.c msg->icmph.icmp6_solicited ? NUD_REACHABLE : NUD_STALE, msg 1048 net/ipv6/ndisc.c (msg->icmph.icmp6_override ? NEIGH_UPDATE_F_OVERRIDE : 0)| msg 1050 net/ipv6/ndisc.c (msg->icmph.icmp6_router ? NEIGH_UPDATE_F_ISROUTER : 0), msg 1524 net/ipv6/ndisc.c struct rd_msg *msg = (struct rd_msg *)skb_transport_header(skb); msg 1544 net/ipv6/ndisc.c if (!ndisc_parse_options(skb->dev, msg->opt, ndoptlen, &ndopts)) msg 1584 net/ipv6/ndisc.c struct rd_msg *msg; msg 1662 net/ipv6/ndisc.c IPV6_MIN_MTU - sizeof(struct ipv6hdr) - sizeof(*msg) - optlen, msg 1667 net/ipv6/ndisc.c buff = ndisc_alloc_skb(dev, sizeof(*msg) + optlen); msg 1671 net/ipv6/ndisc.c msg = skb_put(buff, sizeof(*msg)); msg 1672 net/ipv6/ndisc.c *msg = (struct rd_msg) { msg 1724 net/ipv6/ndisc.c struct nd_msg *msg; msg 1732 net/ipv6/ndisc.c msg = (struct nd_msg *)skb_transport_header(skb); msg 1742 net/ipv6/ndisc.c if (msg->icmph.icmp6_code != 0) { msg 1744 net/ipv6/ndisc.c msg->icmph.icmp6_code); msg 1748 net/ipv6/ndisc.c switch (msg->icmph.icmp6_type) { msg 26 net/ipv6/ping.c static int dummy_ipv6_recv_error(struct sock *sk, struct msghdr *msg, int len, msg 31 net/ipv6/ping.c static void dummy_ip6_datagram_recv_ctl(struct sock *sk, struct msghdr *msg, msg 47 net/ipv6/ping.c static int ping_v6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) msg 64 net/ipv6/ping.c err = ping_common_sendmsg(AF_INET6, msg, len, &user_icmph, msg 69 net/ipv6/ping.c if (msg->msg_name) { msg 70 net/ipv6/ping.c DECLARE_SOCKADDR(struct sockaddr_in6 *, u, msg->msg_name); msg 71 net/ipv6/ping.c if (msg->msg_namelen < sizeof(*u)) msg 134 net/ipv6/ping.c pfh.msg = msg; msg 462 net/ipv6/raw.c static int rawv6_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, msg 466 net/ipv6/raw.c DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, msg->msg_name); msg 475 net/ipv6/raw.c return ipv6_recv_error(sk, msg, len, addr_len); msg 478 net/ipv6/raw.c return ipv6_recv_rxpmtu(sk, msg, len, addr_len); msg 487 net/ipv6/raw.c msg->msg_flags |= MSG_TRUNC; msg 491 net/ipv6/raw.c err = skb_copy_datagram_msg(skb, 0, msg, copied); msg 492 net/ipv6/raw.c } else if (msg->msg_flags&MSG_TRUNC) { msg 495 net/ipv6/raw.c err = skb_copy_datagram_msg(skb, 0, msg, copied); msg 497 net/ipv6/raw.c err = skb_copy_and_csum_datagram_msg(skb, 0, msg); msg 515 net/ipv6/raw.c sock_recv_ts_and_drops(msg, sk, skb); msg 518 net/ipv6/raw.c ip6_datagram_recv_ctl(sk, msg, skb); msg 618 net/ipv6/raw.c static int rawv6_send_hdrinc(struct sock *sk, struct msghdr *msg, int length, msg 664 net/ipv6/raw.c err = memcpy_from_msg(iph, msg, length); msg 709 net/ipv6/raw.c struct msghdr *msg; msg 720 net/ipv6/raw.c err = memcpy_from_msg(rfv->c, rfv->msg, rfv->hlen); msg 728 net/ipv6/raw.c err = memcpy_from_msg(rfv->c, rfv->msg, rfv->hlen); msg 763 net/ipv6/raw.c return ip_generic_getfrag(rfv->msg, to, offset, len, odd, skb); msg 766 net/ipv6/raw.c static int rawv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) msg 770 net/ipv6/raw.c DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, msg->msg_name); msg 781 net/ipv6/raw.c int addr_len = msg->msg_namelen; msg 793 net/ipv6/raw.c if (msg->msg_flags & MSG_OOB) msg 867 net/ipv6/raw.c if (msg->msg_controllen) { msg 873 net/ipv6/raw.c err = ip6_datagram_send_ctl(sock_net(sk), sk, msg, &fl6, &ipc6); msg 898 net/ipv6/raw.c rfv.msg = msg; msg 939 net/ipv6/raw.c if (msg->msg_flags&MSG_CONFIRM) msg 944 net/ipv6/raw.c err = rawv6_send_hdrinc(sk, msg, len, &fl6, &dst, msg 945 net/ipv6/raw.c msg->msg_flags, &ipc6.sockc); msg 951 net/ipv6/raw.c msg->msg_flags); msg 955 net/ipv6/raw.c else if (!(msg->msg_flags & MSG_MORE)) msg 966 net/ipv6/raw.c if (msg->msg_flags & MSG_PROBE) msg 968 net/ipv6/raw.c if (!(msg->msg_flags & MSG_PROBE) || len) msg 3049 net/ipv6/route.c const struct rd_msg *msg = (struct rd_msg *)icmp6_hdr(skb); msg 3054 net/ipv6/route.c .daddr = msg->dest, msg 3984 net/ipv6/route.c struct rd_msg *msg; msg 3989 net/ipv6/route.c optlen -= sizeof(*msg); msg 3996 net/ipv6/route.c msg = (struct rd_msg *)icmp6_hdr(skb); msg 3998 net/ipv6/route.c if (ipv6_addr_is_multicast(&msg->dest)) { msg 4004 net/ipv6/route.c if (ipv6_addr_equal(&msg->dest, &msg->target)) { msg 4006 net/ipv6/route.c } else if (ipv6_addr_type(&msg->target) != msg 4023 net/ipv6/route.c if (!ndisc_parse_options(skb->dev, msg->opt, optlen, &ndopts)) { msg 4050 net/ipv6/route.c neigh = __neigh_lookup(&nd_tbl, &msg->target, skb->dev, 1); msg 4091 net/ipv6/route.c nrt = ip6_rt_cache_alloc(&res, &msg->dest, NULL); msg 4109 net/ipv6/route.c netevent.daddr = &msg->dest; msg 198 net/ipv6/seg6.c struct sk_buff *msg; msg 201 net/ipv6/seg6.c msg = genlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 202 net/ipv6/seg6.c if (!msg) msg 205 net/ipv6/seg6.c hdr = genlmsg_put(msg, info->snd_portid, info->snd_seq, msg 213 net/ipv6/seg6.c if (nla_put(msg, SEG6_ATTR_DST, sizeof(struct in6_addr), tun_src)) msg 218 net/ipv6/seg6.c genlmsg_end(msg, hdr); msg 219 net/ipv6/seg6.c return genlmsg_reply(msg, info); msg 224 net/ipv6/seg6.c nlmsg_free(msg); msg 231 net/ipv6/seg6.c struct sk_buff *msg) msg 233 net/ipv6/seg6.c if (nla_put_u32(msg, SEG6_ATTR_HMACKEYID, hinfo->hmackeyid) || msg 234 net/ipv6/seg6.c nla_put_u8(msg, SEG6_ATTR_SECRETLEN, hinfo->slen) || msg 235 net/ipv6/seg6.c nla_put(msg, SEG6_ATTR_SECRET, hinfo->slen, hinfo->secret) || msg 236 net/ipv6/seg6.c nla_put_u8(msg, SEG6_ATTR_ALGID, hinfo->alg_id)) msg 267 net/ipv6/udp.c int udpv6_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, msg 281 net/ipv6/udp.c return ipv6_recv_error(sk, msg, len, addr_len); msg 284 net/ipv6/udp.c return ipv6_recv_rxpmtu(sk, msg, len, addr_len); msg 297 net/ipv6/udp.c msg->msg_flags |= MSG_TRUNC; msg 318 net/ipv6/udp.c err = copy_linear_skb(skb, copied, off, &msg->msg_iter); msg 320 net/ipv6/udp.c err = skb_copy_datagram_msg(skb, off, msg, copied); msg 322 net/ipv6/udp.c err = skb_copy_and_csum_datagram_msg(skb, off, msg); msg 337 net/ipv6/udp.c sock_recv_ts_and_drops(msg, sk, skb); msg 340 net/ipv6/udp.c if (msg->msg_name) { msg 341 net/ipv6/udp.c DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, msg->msg_name); msg 364 net/ipv6/udp.c udp_cmsg_recv(msg, sk, skb); msg 367 net/ipv6/udp.c ip6_datagram_recv_common_ctl(sk, msg, skb); msg 371 net/ipv6/udp.c ip_cmsg_recv_offset(msg, sk, skb, msg 375 net/ipv6/udp.c ip6_datagram_recv_specific_ctl(sk, msg, skb); msg 395 net/ipv6/udp.c msg->msg_flags &= ~MSG_TRUNC; msg 1214 net/ipv6/udp.c int udpv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) msg 1220 net/ipv6/udp.c DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, msg->msg_name); msg 1228 net/ipv6/udp.c int addr_len = msg->msg_namelen; msg 1231 net/ipv6/udp.c int corkreq = up->corkflag || msg->msg_flags&MSG_MORE; msg 1259 net/ipv6/udp.c msg->msg_name = sin6 = NULL; msg 1260 net/ipv6/udp.c msg->msg_namelen = addr_len = 0; msg 1279 net/ipv6/udp.c msg->msg_name = &sin; msg 1280 net/ipv6/udp.c msg->msg_namelen = sizeof(sin); msg 1284 net/ipv6/udp.c return udp_sendmsg(sk, msg, len); msg 1289 net/ipv6/udp.c return udp_sendmsg(sk, msg, len); msg 1365 net/ipv6/udp.c if (msg->msg_controllen) { msg 1371 net/ipv6/udp.c err = udp_cmsg_send(sk, msg, &ipc6.gso_size); msg 1373 net/ipv6/udp.c err = ip6_datagram_send_ctl(sock_net(sk), sk, msg, &fl6, msg 1456 net/ipv6/udp.c if (msg->msg_flags&MSG_CONFIRM) msg 1465 net/ipv6/udp.c skb = ip6_make_skb(sk, getfrag, msg, ulen, msg 1468 net/ipv6/udp.c msg->msg_flags, &cork); msg 1492 net/ipv6/udp.c err = ip6_append_data(sk, getfrag, msg, ulen, sizeof(struct udphdr), msg 1494 net/ipv6/udp.c corkreq ? msg->msg_flags|MSG_MORE : msg->msg_flags); msg 1527 net/ipv6/udp.c if (msg->msg_flags & MSG_PROBE) msg 1529 net/ipv6/udp.c if (!(msg->msg_flags&MSG_PROBE) || len) msg 28 net/ipv6/udp_impl.h int udpv6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len); msg 29 net/ipv6/udp_impl.h int udpv6_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int noblock, msg 254 net/iucv/af_iucv.c static inline size_t iucv_msg_length(struct iucv_message *msg) msg 258 net/iucv/af_iucv.c if (msg->flags & IUCV_IPRMDATA) { msg 259 net/iucv/af_iucv.c datalen = 0xff - msg->rmmsg[7]; msg 262 net/iucv/af_iucv.c return msg->length; msg 1049 net/iucv/af_iucv.c static int iucv_send_iprm(struct iucv_path *path, struct iucv_message *msg, msg 1056 net/iucv/af_iucv.c return pr_iucv->message_send(path, msg, IUCV_IPRMDATA, 0, msg 1060 net/iucv/af_iucv.c static int iucv_sock_sendmsg(struct socket *sock, struct msghdr *msg, msg 1075 net/iucv/af_iucv.c int noblock = msg->msg_flags & MSG_DONTWAIT; msg 1081 net/iucv/af_iucv.c if (msg->msg_flags & MSG_OOB) msg 1085 net/iucv/af_iucv.c if (sk->sk_type == SOCK_SEQPACKET && !(msg->msg_flags & MSG_EOR)) msg 1106 net/iucv/af_iucv.c for_each_cmsghdr(cmsg, msg) { msg 1107 net/iucv/af_iucv.c if (!CMSG_OK(msg, cmsg)) { msg 1169 net/iucv/af_iucv.c err = skb_copy_datagram_from_iter(skb, 0, &msg->msg_iter, len); msg 1301 net/iucv/af_iucv.c struct iucv_message *msg) msg 1306 net/iucv/af_iucv.c len = iucv_msg_length(msg); msg 1310 net/iucv/af_iucv.c IUCV_SKB_CB(skb)->class = msg->class; msg 1313 net/iucv/af_iucv.c if ((msg->flags & IUCV_IPRMDATA) && len > 7) { msg 1314 net/iucv/af_iucv.c if (memcmp(msg->rmmsg, iprm_shutdown, 8) == 0) { msg 1332 net/iucv/af_iucv.c rc = pr_iucv->message_receive(path, msg, msg 1336 net/iucv/af_iucv.c rc = pr_iucv->message_receive(path, msg, msg 1337 net/iucv/af_iucv.c msg->flags & IUCV_IPRMDATA, msg 1368 net/iucv/af_iucv.c skb = alloc_iucv_recv_skb(iucv_msg_length(&p->msg)); msg 1371 net/iucv/af_iucv.c iucv_process_message(sk, skb, p->path, &p->msg); msg 1379 net/iucv/af_iucv.c static int iucv_sock_recvmsg(struct socket *sock, struct msghdr *msg, msg 1415 net/iucv/af_iucv.c if (skb_copy_datagram_msg(cskb, offset, msg, copied)) { msg 1424 net/iucv/af_iucv.c msg->msg_flags |= MSG_TRUNC; msg 1426 net/iucv/af_iucv.c msg->msg_flags |= MSG_EOR; msg 1432 net/iucv/af_iucv.c err = put_cmsg(msg, SOL_IUCV, SCM_IUCV_TRGCLS, msg 1841 net/iucv/af_iucv.c static void iucv_callback_rx(struct iucv_path *path, struct iucv_message *msg) msg 1850 net/iucv/af_iucv.c pr_iucv->message_reject(path, msg); msg 1861 net/iucv/af_iucv.c len += SKB_TRUESIZE(iucv_msg_length(msg)); msg 1865 net/iucv/af_iucv.c skb = alloc_iucv_recv_skb(iucv_msg_length(msg)); msg 1869 net/iucv/af_iucv.c iucv_process_message(sk, skb, path, msg); msg 1877 net/iucv/af_iucv.c save_msg->msg = *msg; msg 1886 net/iucv/af_iucv.c struct iucv_message *msg) msg 1898 net/iucv/af_iucv.c if (msg->tag == IUCV_SKB_CB(list_skb)->tag) { msg 1068 net/iucv/iucv.c int iucv_message_purge(struct iucv_path *path, struct iucv_message *msg, msg 1082 net/iucv/iucv.c parm->purge.ipmsgid = msg->id; msg 1087 net/iucv/iucv.c msg->audit = (*(u32 *) &parm->purge.ipaudit) >> 8; msg 1088 net/iucv/iucv.c msg->tag = parm->purge.ipmsgtag; msg 1109 net/iucv/iucv.c struct iucv_message *msg, msg 1123 net/iucv/iucv.c rmmsg = msg->rmmsg; msg 1158 net/iucv/iucv.c int __iucv_message_receive(struct iucv_path *path, struct iucv_message *msg, msg 1164 net/iucv/iucv.c if (msg->flags & IUCV_IPRMDATA) msg 1165 net/iucv/iucv.c return iucv_message_receive_iprmdata(path, msg, flags, msg 1175 net/iucv/iucv.c parm->db.ipmsgid = msg->id; msg 1177 net/iucv/iucv.c parm->db.iptrgcls = msg->class; msg 1182 net/iucv/iucv.c msg->flags = parm->db.ipflags1; msg 1208 net/iucv/iucv.c int iucv_message_receive(struct iucv_path *path, struct iucv_message *msg, msg 1213 net/iucv/iucv.c if (msg->flags & IUCV_IPRMDATA) msg 1214 net/iucv/iucv.c return iucv_message_receive_iprmdata(path, msg, flags, msg 1217 net/iucv/iucv.c rc = __iucv_message_receive(path, msg, flags, buffer, size, residual); msg 1234 net/iucv/iucv.c int iucv_message_reject(struct iucv_path *path, struct iucv_message *msg) msg 1247 net/iucv/iucv.c parm->db.ipmsgid = msg->id; msg 1248 net/iucv/iucv.c parm->db.iptrgcls = msg->class; msg 1272 net/iucv/iucv.c int iucv_message_reply(struct iucv_path *path, struct iucv_message *msg, msg 1288 net/iucv/iucv.c parm->dpl.ipmsgid = msg->id; msg 1289 net/iucv/iucv.c parm->dpl.iptrgcls = msg->class; msg 1296 net/iucv/iucv.c parm->db.ipmsgid = msg->id; msg 1297 net/iucv/iucv.c parm->db.iptrgcls = msg->class; msg 1323 net/iucv/iucv.c int __iucv_message_send(struct iucv_path *path, struct iucv_message *msg, msg 1339 net/iucv/iucv.c parm->dpl.iptrgcls = msg->class; msg 1341 net/iucv/iucv.c parm->dpl.ipmsgtag = msg->tag; msg 1348 net/iucv/iucv.c parm->db.iptrgcls = msg->class; msg 1350 net/iucv/iucv.c parm->db.ipmsgtag = msg->tag; msg 1354 net/iucv/iucv.c msg->id = parm->db.ipmsgid; msg 1377 net/iucv/iucv.c int iucv_message_send(struct iucv_path *path, struct iucv_message *msg, msg 1383 net/iucv/iucv.c rc = __iucv_message_send(path, msg, flags, srccls, buffer, size); msg 1408 net/iucv/iucv.c int iucv_message_send2way(struct iucv_path *path, struct iucv_message *msg, msg 1425 net/iucv/iucv.c parm->dpl.iptrgcls = msg->class; msg 1427 net/iucv/iucv.c parm->dpl.ipmsgtag = msg->tag; msg 1434 net/iucv/iucv.c parm->db.iptrgcls = msg->class; msg 1436 net/iucv/iucv.c parm->db.ipmsgtag = msg->tag; msg 1444 net/iucv/iucv.c msg->id = parm->db.ipmsgid; msg 1661 net/iucv/iucv.c struct iucv_message msg; msg 1664 net/iucv/iucv.c msg.flags = imc->ipflags1; msg 1665 net/iucv/iucv.c msg.id = imc->ipmsgid; msg 1666 net/iucv/iucv.c msg.audit = imc->ipaudit; msg 1667 net/iucv/iucv.c memcpy(msg.rmmsg, imc->iprmmsg, 8); msg 1668 net/iucv/iucv.c msg.class = imc->ipsrccls; msg 1669 net/iucv/iucv.c msg.tag = imc->ipmsgtag; msg 1670 net/iucv/iucv.c msg.length = imc->ipbfln2f; msg 1671 net/iucv/iucv.c path->handler->message_complete(path, &msg); msg 1706 net/iucv/iucv.c struct iucv_message msg; msg 1709 net/iucv/iucv.c msg.flags = imp->ipflags1; msg 1710 net/iucv/iucv.c msg.id = imp->ipmsgid; msg 1711 net/iucv/iucv.c msg.class = imp->iptrgcls; msg 1713 net/iucv/iucv.c memcpy(msg.rmmsg, imp->ln1msg1.iprmmsg1, 8); msg 1714 net/iucv/iucv.c msg.length = 8; msg 1716 net/iucv/iucv.c msg.length = imp->ln1msg2.ipbfln1f; msg 1717 net/iucv/iucv.c msg.reply_size = imp->ipbfln2f; msg 1718 net/iucv/iucv.c path->handler->message_pending(path, &msg); msg 900 net/kcm/kcmsock.c static int kcm_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) msg 906 net/kcm/kcmsock.c long timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); msg 908 net/kcm/kcmsock.c !(msg->msg_flags & MSG_MORE) : !!(msg->msg_flags & MSG_EOR); msg 935 net/kcm/kcmsock.c if (msg_data_left(msg)) { msg 956 net/kcm/kcmsock.c while (msg_data_left(msg)) { msg 985 net/kcm/kcmsock.c copy = min_t(int, msg_data_left(msg), msg 991 net/kcm/kcmsock.c err = skb_copy_to_page_nocache(sk, &msg->msg_iter, skb, msg 1033 net/kcm/kcmsock.c if (msg->msg_flags & MSG_BATCH) { msg 1074 net/kcm/kcmsock.c err = sk_stream_error(sk, msg->msg_flags, err); msg 1115 net/kcm/kcmsock.c static int kcm_recvmsg(struct socket *sock, struct msghdr *msg, msg 1141 net/kcm/kcmsock.c err = skb_copy_datagram_msg(skb, stm->offset, msg, len); msg 1151 net/kcm/kcmsock.c msg->msg_flags |= MSG_TRUNC; msg 1159 net/kcm/kcmsock.c msg->msg_flags |= MSG_EOR; msg 3643 net/key/af_key.c static int pfkey_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) msg 3652 net/key/af_key.c if (msg->msg_flags & MSG_OOB) msg 3665 net/key/af_key.c if (memcpy_from_msg(skb_put(skb,len), msg, len)) msg 3684 net/key/af_key.c static int pfkey_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, msg 3702 net/key/af_key.c msg->msg_flags |= MSG_TRUNC; msg 3707 net/key/af_key.c err = skb_copy_datagram_msg(skb, 0, msg, copied); msg 3711 net/key/af_key.c sock_recv_ts_and_drops(msg, sk, skb); msg 406 net/l2tp/l2tp_ip.c static int l2tp_ip_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) msg 423 net/l2tp/l2tp_ip.c if (msg->msg_name) { msg 424 net/l2tp/l2tp_ip.c DECLARE_SOCKADDR(struct sockaddr_l2tpip *, lip, msg->msg_name); msg 426 net/l2tp/l2tp_ip.c if (msg->msg_namelen < sizeof(*lip)) msg 462 net/l2tp/l2tp_ip.c rc = memcpy_from_msg(skb_put(skb, len), msg, len); msg 527 net/l2tp/l2tp_ip.c static int l2tp_ip_recvmsg(struct sock *sk, struct msghdr *msg, msg 533 net/l2tp/l2tp_ip.c DECLARE_SOCKADDR(struct sockaddr_in *, sin, msg->msg_name); msg 545 net/l2tp/l2tp_ip.c msg->msg_flags |= MSG_TRUNC; msg 549 net/l2tp/l2tp_ip.c err = skb_copy_datagram_msg(skb, 0, msg, copied); msg 553 net/l2tp/l2tp_ip.c sock_recv_timestamp(msg, sk, skb); msg 564 net/l2tp/l2tp_ip.c ip_cmsg_recv(msg, skb); msg 504 net/l2tp/l2tp_ip6.c static int l2tp_ip6_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) msg 507 net/l2tp/l2tp_ip6.c DECLARE_SOCKADDR(struct sockaddr_l2tpip6 *, lsa, msg->msg_name); msg 516 net/l2tp/l2tp_ip6.c int addr_len = msg->msg_namelen; msg 528 net/l2tp/l2tp_ip6.c if (msg->msg_flags & MSG_OOB) msg 581 net/l2tp/l2tp_ip6.c if (msg->msg_controllen) { msg 587 net/l2tp/l2tp_ip6.c err = ip6_datagram_send_ctl(sock_net(sk), sk, msg, &fl6, &ipc6); msg 644 net/l2tp/l2tp_ip6.c if (msg->msg_flags & MSG_CONFIRM) msg 649 net/l2tp/l2tp_ip6.c err = ip6_append_data(sk, ip_generic_getfrag, msg, msg 652 net/l2tp/l2tp_ip6.c msg->msg_flags); msg 655 net/l2tp/l2tp_ip6.c else if (!(msg->msg_flags & MSG_MORE)) msg 667 net/l2tp/l2tp_ip6.c if (msg->msg_flags & MSG_PROBE) msg 669 net/l2tp/l2tp_ip6.c if (!(msg->msg_flags & MSG_PROBE) || len) msg 675 net/l2tp/l2tp_ip6.c static int l2tp_ip6_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, msg 679 net/l2tp/l2tp_ip6.c DECLARE_SOCKADDR(struct sockaddr_l2tpip6 *, lsa, msg->msg_name); msg 688 net/l2tp/l2tp_ip6.c return ipv6_recv_error(sk, msg, len, addr_len); msg 696 net/l2tp/l2tp_ip6.c msg->msg_flags |= MSG_TRUNC; msg 700 net/l2tp/l2tp_ip6.c err = skb_copy_datagram_msg(skb, 0, msg, copied); msg 704 net/l2tp/l2tp_ip6.c sock_recv_timestamp(msg, sk, skb); msg 720 net/l2tp/l2tp_ip6.c ip6_datagram_recv_ctl(sk, msg, skb); msg 76 net/l2tp/l2tp_netlink.c struct sk_buff *msg; msg 80 net/l2tp/l2tp_netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 81 net/l2tp/l2tp_netlink.c if (!msg) { msg 86 net/l2tp/l2tp_netlink.c hdr = genlmsg_put(msg, info->snd_portid, info->snd_seq, msg 93 net/l2tp/l2tp_netlink.c genlmsg_end(msg, hdr); msg 95 net/l2tp/l2tp_netlink.c return genlmsg_unicast(genl_info_net(info), msg, info->snd_portid); msg 98 net/l2tp/l2tp_netlink.c nlmsg_free(msg); msg 109 net/l2tp/l2tp_netlink.c struct sk_buff *msg; msg 112 net/l2tp/l2tp_netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 113 net/l2tp/l2tp_netlink.c if (!msg) msg 116 net/l2tp/l2tp_netlink.c ret = l2tp_nl_tunnel_send(msg, info->snd_portid, info->snd_seq, msg 120 net/l2tp/l2tp_netlink.c ret = genlmsg_multicast_allns(family, msg, 0, 0, GFP_ATOMIC); msg 127 net/l2tp/l2tp_netlink.c nlmsg_free(msg); msg 137 net/l2tp/l2tp_netlink.c struct sk_buff *msg; msg 140 net/l2tp/l2tp_netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 141 net/l2tp/l2tp_netlink.c if (!msg) msg 144 net/l2tp/l2tp_netlink.c ret = l2tp_nl_session_send(msg, info->snd_portid, info->snd_seq, msg 148 net/l2tp/l2tp_netlink.c ret = genlmsg_multicast_allns(family, msg, 0, 0, GFP_ATOMIC); msg 155 net/l2tp/l2tp_netlink.c nlmsg_free(msg); msg 439 net/l2tp/l2tp_netlink.c struct sk_buff *msg; msg 451 net/l2tp/l2tp_netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 452 net/l2tp/l2tp_netlink.c if (!msg) { msg 463 net/l2tp/l2tp_netlink.c ret = l2tp_nl_tunnel_send(msg, info->snd_portid, info->snd_seq, msg 470 net/l2tp/l2tp_netlink.c return genlmsg_unicast(net, msg, info->snd_portid); msg 475 net/l2tp/l2tp_netlink.c nlmsg_free(msg); msg 784 net/l2tp/l2tp_netlink.c struct sk_buff *msg; msg 793 net/l2tp/l2tp_netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 794 net/l2tp/l2tp_netlink.c if (!msg) { msg 799 net/l2tp/l2tp_netlink.c ret = l2tp_nl_session_send(msg, info->snd_portid, info->snd_seq, msg 804 net/l2tp/l2tp_netlink.c ret = genlmsg_unicast(genl_info_net(info), msg, info->snd_portid); msg 811 net/l2tp/l2tp_netlink.c nlmsg_free(msg); msg 180 net/l2tp/l2tp_ppp.c static int pppol2tp_recvmsg(struct socket *sock, struct msghdr *msg, msg 200 net/l2tp/l2tp_ppp.c msg->msg_flags |= MSG_TRUNC; msg 202 net/l2tp/l2tp_ppp.c err = skb_copy_datagram_msg(skb, 0, msg, len); msg 640 net/llc/af_llc.c static void llc_cmsg_rcv(struct msghdr *msg, struct sk_buff *skb) msg 651 net/llc/af_llc.c put_cmsg(msg, SOL_LLC, LLC_OPT_PKTINFO, sizeof(info), &info); msg 728 net/llc/af_llc.c static int llc_ui_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, msg 731 net/llc/af_llc.c DECLARE_SOCKADDR(struct sockaddr_llc *, uaddr, msg->msg_name); msg 842 net/llc/af_llc.c int rc = skb_copy_datagram_msg(skb, offset, msg, used); msg 876 net/llc/af_llc.c msg->msg_namelen = sizeof(*uaddr); msg 879 net/llc/af_llc.c llc_cmsg_rcv(msg, skb); msg 899 net/llc/af_llc.c static int llc_ui_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) msg 903 net/llc/af_llc.c DECLARE_SOCKADDR(struct sockaddr_llc *, addr, msg->msg_name); msg 904 net/llc/af_llc.c int flags = msg->msg_flags; msg 914 net/llc/af_llc.c if (msg->msg_namelen < sizeof(*addr)) msg 944 net/llc/af_llc.c rc = memcpy_from_msg(skb_put(skb, copied), msg, copied); msg 27 net/mac80211/trace_msg.h __dynamic_array(char, msg, MAX_MSG_LEN) msg 31 net/mac80211/trace_msg.h WARN_ON_ONCE(vsnprintf(__get_dynamic_array(msg), msg 36 net/mac80211/trace_msg.h TP_printk("%s", __get_str(msg)) msg 150 net/ncsi/ncsi-netlink.c static int ncsi_pkg_info_nl(struct sk_buff *msg, struct genl_info *info) msg 271 net/ncsi/ncsi-netlink.c static int ncsi_set_interface_nl(struct sk_buff *msg, struct genl_info *info) msg 288 net/ncsi/ncsi-netlink.c ndp = ndp_from_ifindex(get_net(sock_net(msg->sk)), msg 352 net/ncsi/ncsi-netlink.c static int ncsi_clear_interface_nl(struct sk_buff *msg, struct genl_info *info) msg 364 net/ncsi/ncsi-netlink.c ndp = ndp_from_ifindex(get_net(sock_net(msg->sk)), msg 391 net/ncsi/ncsi-netlink.c static int ncsi_send_cmd_nl(struct sk_buff *msg, struct genl_info *info) msg 426 net/ncsi/ncsi-netlink.c ndp = ndp_from_ifindex(get_net(sock_net(msg->sk)), msg 580 net/ncsi/ncsi-netlink.c memcpy(&nle->msg, nlhdr, sizeof(*nlh)); msg 587 net/ncsi/ncsi-netlink.c static int ncsi_set_package_mask_nl(struct sk_buff *msg, msg 603 net/ncsi/ncsi-netlink.c ndp = ndp_from_ifindex(get_net(sock_net(msg->sk)), msg 637 net/ncsi/ncsi-netlink.c static int ncsi_set_channel_mask_nl(struct sk_buff *msg, msg 658 net/ncsi/ncsi-netlink.c ndp = ndp_from_ifindex(get_net(sock_net(msg->sk)), msg 1569 net/netfilter/ipset/ip_set_core.c memcpy(&errmsg->msg, nlh, nlh->nlmsg_len); msg 1570 net/netfilter/ipset/ip_set_core.c cmdattr = (void *)&errmsg->msg + min_len; msg 3755 net/netfilter/ipvs/ip_vs_ctl.c struct sk_buff *msg; msg 3774 net/netfilter/ipvs/ip_vs_ctl.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 3775 net/netfilter/ipvs/ip_vs_ctl.c if (!msg) msg 3780 net/netfilter/ipvs/ip_vs_ctl.c reply = genlmsg_put_reply(msg, info, &ip_vs_genl_family, 0, reply_cmd); msg 3795 net/netfilter/ipvs/ip_vs_ctl.c ret = ip_vs_genl_fill_service(msg, svc); msg 3812 net/netfilter/ipvs/ip_vs_ctl.c if (nla_put_u32(msg, IPVS_CMD_ATTR_TIMEOUT_TCP, msg 3814 net/netfilter/ipvs/ip_vs_ctl.c nla_put_u32(msg, IPVS_CMD_ATTR_TIMEOUT_TCP_FIN, msg 3819 net/netfilter/ipvs/ip_vs_ctl.c if (nla_put_u32(msg, IPVS_CMD_ATTR_TIMEOUT_UDP, t.udp_timeout)) msg 3827 net/netfilter/ipvs/ip_vs_ctl.c if (nla_put_u32(msg, IPVS_INFO_ATTR_VERSION, msg 3829 net/netfilter/ipvs/ip_vs_ctl.c nla_put_u32(msg, IPVS_INFO_ATTR_CONN_TAB_SIZE, msg 3835 net/netfilter/ipvs/ip_vs_ctl.c genlmsg_end(msg, reply); msg 3836 net/netfilter/ipvs/ip_vs_ctl.c ret = genlmsg_reply(msg, info); msg 3844 net/netfilter/ipvs/ip_vs_ctl.c nlmsg_free(msg); msg 218 net/netfilter/ipvs/ip_vs_proto.c const char *msg) msg 242 net/netfilter/ipvs/ip_vs_proto.c pr_debug("%s: %s %s\n", msg, pp->name, buf); msg 250 net/netfilter/ipvs/ip_vs_proto.c const char *msg) msg 274 net/netfilter/ipvs/ip_vs_proto.c pr_debug("%s: %s %s\n", msg, pp->name, buf); msg 283 net/netfilter/ipvs/ip_vs_proto.c const char *msg) msg 287 net/netfilter/ipvs/ip_vs_proto.c ip_vs_tcpudp_debug_packet_v6(pp, skb, offset, msg); msg 290 net/netfilter/ipvs/ip_vs_proto.c ip_vs_tcpudp_debug_packet_v4(pp, skb, offset, msg); msg 143 net/netfilter/ipvs/ip_vs_sched.c void ip_vs_scheduler_err(struct ip_vs_service *svc, const char *msg) msg 150 net/netfilter/ipvs/ip_vs_sched.c sched_name, svc->fwmark, svc->fwmark, msg); msg 155 net/netfilter/ipvs/ip_vs_sched.c &svc->addr.in6, ntohs(svc->port), msg); msg 160 net/netfilter/ipvs/ip_vs_sched.c &svc->addr.ip, ntohs(svc->port), msg); msg 1584 net/netfilter/ipvs/ip_vs_sync.c struct msghdr msg = {.msg_flags = MSG_DONTWAIT|MSG_NOSIGNAL}; msg 1592 net/netfilter/ipvs/ip_vs_sync.c len = kernel_sendmsg(sock, &msg, &iov, 1, (size_t)(length)); msg 1599 net/netfilter/ipvs/ip_vs_sync.c ip_vs_send_sync_msg(struct socket *sock, struct ip_vs_sync_mesg *msg) msg 1604 net/netfilter/ipvs/ip_vs_sync.c msize = ntohs(msg->size); msg 1606 net/netfilter/ipvs/ip_vs_sync.c ret = ip_vs_send_async(sock, (char *)msg, msize); msg 1616 net/netfilter/ipvs/ip_vs_sync.c struct msghdr msg = {NULL,}; msg 1623 net/netfilter/ipvs/ip_vs_sync.c iov_iter_kvec(&msg.msg_iter, READ, &iov, 1, buflen); msg 1624 net/netfilter/ipvs/ip_vs_sync.c len = sock_recvmsg(sock, &msg, MSG_DONTWAIT); msg 94 net/netfilter/nf_conntrack_pptp.c const char *pptp_msg_name(u_int16_t msg) msg 96 net/netfilter/nf_conntrack_pptp.c if (msg > PPTP_MSG_MAX) msg 99 net/netfilter/nf_conntrack_pptp.c return pptp_msg_name_array[msg]; msg 282 net/netfilter/nf_conntrack_pptp.c u_int16_t msg; msg 286 net/netfilter/nf_conntrack_pptp.c msg = ntohs(ctlh->messageType); msg 287 net/netfilter/nf_conntrack_pptp.c pr_debug("inbound control message %s\n", pptp_msg_name(msg)); msg 289 net/netfilter/nf_conntrack_pptp.c switch (msg) { msg 322 net/netfilter/nf_conntrack_pptp.c pr_debug("%s, CID=%X, PCID=%X\n", pptp_msg_name(msg), msg 339 net/netfilter/nf_conntrack_pptp.c pr_debug("%s, CID=%X\n", pptp_msg_name(msg), ntohs(cid)); msg 358 net/netfilter/nf_conntrack_pptp.c pr_debug("%s, PCID=%X\n", pptp_msg_name(msg), ntohs(pcid)); msg 368 net/netfilter/nf_conntrack_pptp.c pr_debug("%s, CID=%X\n", pptp_msg_name(msg), ntohs(cid)); msg 395 net/netfilter/nf_conntrack_pptp.c pptp_msg_name(msg), msg 396 net/netfilter/nf_conntrack_pptp.c msg, ntohs(cid), ntohs(pcid), info->cstate, info->sstate, msg 410 net/netfilter/nf_conntrack_pptp.c u_int16_t msg; msg 414 net/netfilter/nf_conntrack_pptp.c msg = ntohs(ctlh->messageType); msg 415 net/netfilter/nf_conntrack_pptp.c pr_debug("outbound control message %s\n", pptp_msg_name(msg)); msg 417 net/netfilter/nf_conntrack_pptp.c switch (msg) { msg 437 net/netfilter/nf_conntrack_pptp.c pr_debug("%s, CID=%X\n", pptp_msg_name(msg), ntohs(cid)); msg 451 net/netfilter/nf_conntrack_pptp.c pr_debug("%s, CID=%X PCID=%X\n", pptp_msg_name(msg), msg 491 net/netfilter/nf_conntrack_pptp.c pptp_msg_name(msg), msg 492 net/netfilter/nf_conntrack_pptp.c msg, ntohs(cid), ntohs(pcid), info->cstate, info->sstate, msg 531 net/netfilter/nf_conntrack_pptp.c u_int16_t msg; msg 573 net/netfilter/nf_conntrack_pptp.c msg = ntohs(ctlh->messageType); msg 574 net/netfilter/nf_conntrack_pptp.c if (msg > 0 && msg <= PPTP_MSG_MAX && reqlen < pptp_msg_size[msg]) msg 389 net/netfilter/nf_conntrack_proto_dccp.c const char *msg; msg 397 net/netfilter/nf_conntrack_proto_dccp.c msg = "not picking up existing connection "; msg 403 net/netfilter/nf_conntrack_proto_dccp.c msg = "invalid state transition "; msg 416 net/netfilter/nf_conntrack_proto_dccp.c nf_ct_l4proto_log_invalid(skb, ct, "%s", msg); msg 435 net/netfilter/nf_conntrack_proto_dccp.c const char *msg; msg 439 net/netfilter/nf_conntrack_proto_dccp.c msg = "nf_ct_dccp: truncated/malformed packet "; msg 447 net/netfilter/nf_conntrack_proto_dccp.c msg = "nf_ct_dccp: bad checksum coverage "; msg 456 net/netfilter/nf_conntrack_proto_dccp.c msg = "nf_ct_dccp: bad checksum "; msg 461 net/netfilter/nf_conntrack_proto_dccp.c msg = "nf_ct_dccp: reserved packet type "; msg 467 net/netfilter/nf_conntrack_proto_dccp.c IPPROTO_DCCP, "%s", msg); msg 196 net/netfilter/nf_conntrack_proto_icmp.c const char *msg) msg 199 net/netfilter/nf_conntrack_proto_icmp.c IPPROTO_ICMP, "%s", msg); msg 125 net/netfilter/nf_conntrack_proto_icmpv6.c const char *msg) msg 128 net/netfilter/nf_conntrack_proto_icmpv6.c IPPROTO_ICMPV6, "%s", msg); msg 716 net/netfilter/nf_conntrack_proto_tcp.c const char *msg) msg 718 net/netfilter/nf_conntrack_proto_tcp.c nf_l4proto_log_invalid(skb, state->net, state->pf, IPPROTO_TCP, "%s", msg); msg 39 net/netfilter/nf_conntrack_proto_udp.c const char *msg) msg 42 net/netfilter/nf_conntrack_proto_udp.c IPPROTO_UDP, "%s", msg); msg 128 net/netfilter/nf_conntrack_proto_udp.c const char *msg) msg 131 net/netfilter/nf_conntrack_proto_udp.c IPPROTO_UDPLITE, "%s", msg); msg 1517 net/netfilter/nf_conntrack_sip.c if (hooks && !hooks->msg(skb, protoff, dataoff, msg 669 net/netfilter/nf_nat_sip.c .msg = nf_nat_sip, msg 637 net/netfilter/x_tables.c const char *msg, unsigned int msglen) msg 639 net/netfilter/x_tables.c return usersize == kernsize && strnlen(msg, msglen) < msglen; msg 1825 net/netlink/af_netlink.c static void netlink_cmsg_recv_pktinfo(struct msghdr *msg, struct sk_buff *skb) msg 1830 net/netlink/af_netlink.c put_cmsg(msg, SOL_NETLINK, NETLINK_PKTINFO, sizeof(info), &info); msg 1833 net/netlink/af_netlink.c static void netlink_cmsg_listen_all_nsid(struct sock *sk, struct msghdr *msg, msg 1839 net/netlink/af_netlink.c put_cmsg(msg, SOL_NETLINK, NETLINK_LISTEN_ALL_NSID, sizeof(int), msg 1843 net/netlink/af_netlink.c static int netlink_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) msg 1847 net/netlink/af_netlink.c DECLARE_SOCKADDR(struct sockaddr_nl *, addr, msg->msg_name); msg 1855 net/netlink/af_netlink.c if (msg->msg_flags&MSG_OOB) msg 1858 net/netlink/af_netlink.c err = scm_send(sock, msg, &scm, true); msg 1862 net/netlink/af_netlink.c if (msg->msg_namelen) { msg 1864 net/netlink/af_netlink.c if (msg->msg_namelen < sizeof(struct sockaddr_nl)) msg 1903 net/netlink/af_netlink.c if (memcpy_from_msg(skb_put(skb, len), msg, len)) { msg 1918 net/netlink/af_netlink.c err = netlink_unicast(sk, skb, dst_portid, msg->msg_flags&MSG_DONTWAIT); msg 1925 net/netlink/af_netlink.c static int netlink_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, msg 1971 net/netlink/af_netlink.c msg->msg_flags |= MSG_TRUNC; msg 1976 net/netlink/af_netlink.c err = skb_copy_datagram_msg(data_skb, 0, msg, copied); msg 1978 net/netlink/af_netlink.c if (msg->msg_name) { msg 1979 net/netlink/af_netlink.c DECLARE_SOCKADDR(struct sockaddr_nl *, addr, msg->msg_name); msg 1984 net/netlink/af_netlink.c msg->msg_namelen = sizeof(*addr); msg 1988 net/netlink/af_netlink.c netlink_cmsg_recv_pktinfo(msg, skb); msg 1990 net/netlink/af_netlink.c netlink_cmsg_listen_all_nsid(sk, msg, skb); msg 2008 net/netlink/af_netlink.c scm_recv(sock, msg, &scm, flags); msg 2423 net/netlink/af_netlink.c memcpy(&errmsg->msg, nlh, payload > sizeof(*errmsg) ? nlh->nlmsg_len : sizeof(*nlh)); msg 879 net/netlink/genetlink.c struct sk_buff *msg; msg 916 net/netlink/genetlink.c msg = ctrl_build_family_msg(res, info->snd_portid, info->snd_seq, msg 918 net/netlink/genetlink.c if (IS_ERR(msg)) msg 919 net/netlink/genetlink.c return PTR_ERR(msg); msg 921 net/netlink/genetlink.c return genlmsg_reply(msg, info); msg 928 net/netlink/genetlink.c struct sk_buff *msg; msg 938 net/netlink/genetlink.c msg = ctrl_build_family_msg(family, 0, 0, event); msg 943 net/netlink/genetlink.c msg = ctrl_build_mcgrp_msg(family, grp, grp_id, 0, 0, event); msg 949 net/netlink/genetlink.c if (IS_ERR(msg)) msg 950 net/netlink/genetlink.c return PTR_ERR(msg); msg 953 net/netlink/genetlink.c genlmsg_multicast_netns(&genl_ctrl, &init_net, msg, 0, msg 957 net/netlink/genetlink.c genlmsg_multicast_allns(&genl_ctrl, msg, 0, msg 1010 net/netrom/af_netrom.c static int nr_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) msg 1014 net/netrom/af_netrom.c DECLARE_SOCKADDR(struct sockaddr_ax25 *, usax, msg->msg_name); msg 1021 net/netrom/af_netrom.c if (msg->msg_flags & ~(MSG_DONTWAIT|MSG_EOR|MSG_CMSG_COMPAT)) msg 1042 net/netrom/af_netrom.c if (msg->msg_namelen < sizeof(sax)) { msg 1073 net/netrom/af_netrom.c if ((skb = sock_alloc_send_skb(sk, size, msg->msg_flags & MSG_DONTWAIT, &err)) == NULL) msg 1099 net/netrom/af_netrom.c if (memcpy_from_msg(skb_transport_header(skb), msg, len)) { msg 1119 net/netrom/af_netrom.c static int nr_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, msg 1123 net/netrom/af_netrom.c DECLARE_SOCKADDR(struct sockaddr_ax25 *, sax, msg->msg_name); msg 1150 net/netrom/af_netrom.c msg->msg_flags |= MSG_TRUNC; msg 1153 net/netrom/af_netrom.c er = skb_copy_datagram_msg(skb, 0, msg, copied); msg 1165 net/netrom/af_netrom.c msg->msg_namelen = sizeof(*sax); msg 67 net/nfc/hci/core.c struct hci_msg *msg; msg 94 net/nfc/hci/core.c msg = list_first_entry(&hdev->msg_tx_queue, struct hci_msg, msg_l); msg 95 net/nfc/hci/core.c list_del(&msg->msg_l); msg 98 net/nfc/hci/core.c while ((skb = skb_dequeue(&msg->msg_frags)) != NULL) { msg 102 net/nfc/hci/core.c skb_queue_purge(&msg->msg_frags); msg 103 net/nfc/hci/core.c if (msg->cb) msg 104 net/nfc/hci/core.c msg->cb(msg->cb_context, NULL, r); msg 105 net/nfc/hci/core.c kfree(msg); msg 113 net/nfc/hci/core.c if (msg->wait_response == false) { msg 114 net/nfc/hci/core.c kfree(msg); msg 118 net/nfc/hci/core.c hdev->cmd_pending_msg = msg; msg 1032 net/nfc/hci/core.c struct hci_msg *msg, *n; msg 1059 net/nfc/hci/core.c list_for_each_entry_safe(msg, n, &hdev->msg_tx_queue, msg_l) { msg 1060 net/nfc/hci/core.c list_del(&msg->msg_l); msg 1061 net/nfc/hci/core.c skb_queue_purge(&msg->msg_frags); msg 1062 net/nfc/hci/core.c kfree(msg); msg 247 net/nfc/llcp.h struct msghdr *msg, size_t len); msg 249 net/nfc/llcp.h struct msghdr *msg, size_t len); msg 644 net/nfc/llcp_commands.c struct msghdr *msg, size_t len) msg 680 net/nfc/llcp_commands.c if (memcpy_from_msg(msg_data, msg, len)) { msg 727 net/nfc/llcp_commands.c struct msghdr *msg, size_t len) msg 746 net/nfc/llcp_commands.c if (memcpy_from_msg(msg_data, msg, len)) { msg 758 net/nfc/llcp_sock.c static int llcp_sock_sendmsg(struct socket *sock, struct msghdr *msg, msg 771 net/nfc/llcp_sock.c if (msg->msg_flags & MSG_OOB) msg 778 net/nfc/llcp_sock.c msg->msg_name); msg 780 net/nfc/llcp_sock.c if (msg->msg_namelen < sizeof(*addr)) { msg 788 net/nfc/llcp_sock.c msg, len); msg 798 net/nfc/llcp_sock.c return nfc_llcp_send_i_frame(llcp_sock, msg, len); msg 801 net/nfc/llcp_sock.c static int llcp_sock_recvmsg(struct socket *sock, struct msghdr *msg, msg 840 net/nfc/llcp_sock.c if (skb_copy_datagram_msg(cskb, 0, msg, copied)) { msg 846 net/nfc/llcp_sock.c sock_recv_timestamp(msg, sk, skb); msg 848 net/nfc/llcp_sock.c if (sk->sk_type == SOCK_DGRAM && msg->msg_name) { msg 851 net/nfc/llcp_sock.c msg->msg_name); msg 853 net/nfc/llcp_sock.c msg->msg_namelen = sizeof(struct sockaddr_nfc_llcp); msg 61 net/nfc/netlink.c static int nfc_genl_send_target(struct sk_buff *msg, struct nfc_target *target, msg 66 net/nfc/netlink.c hdr = genlmsg_put(msg, NETLINK_CB(cb->skb).portid, cb->nlh->nlmsg_seq, msg 73 net/nfc/netlink.c if (nla_put_u32(msg, NFC_ATTR_TARGET_INDEX, target->idx) || msg 74 net/nfc/netlink.c nla_put_u32(msg, NFC_ATTR_PROTOCOLS, target->supported_protocols) || msg 75 net/nfc/netlink.c nla_put_u16(msg, NFC_ATTR_TARGET_SENS_RES, target->sens_res) || msg 76 net/nfc/netlink.c nla_put_u8(msg, NFC_ATTR_TARGET_SEL_RES, target->sel_res)) msg 79 net/nfc/netlink.c nla_put(msg, NFC_ATTR_TARGET_NFCID1, target->nfcid1_len, msg 83 net/nfc/netlink.c nla_put(msg, NFC_ATTR_TARGET_SENSB_RES, target->sensb_res_len, msg 87 net/nfc/netlink.c nla_put(msg, NFC_ATTR_TARGET_SENSF_RES, target->sensf_res_len, msg 92 net/nfc/netlink.c if (nla_put_u8(msg, NFC_ATTR_TARGET_ISO15693_DSFID, msg 94 net/nfc/netlink.c nla_put(msg, NFC_ATTR_TARGET_ISO15693_UID, msg 99 net/nfc/netlink.c genlmsg_end(msg, hdr); msg 103 net/nfc/netlink.c genlmsg_cancel(msg, hdr); msg 180 net/nfc/netlink.c struct sk_buff *msg; msg 185 net/nfc/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_ATOMIC); msg 186 net/nfc/netlink.c if (!msg) msg 189 net/nfc/netlink.c hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, msg 194 net/nfc/netlink.c if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx)) msg 197 net/nfc/netlink.c genlmsg_end(msg, hdr); msg 199 net/nfc/netlink.c return genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_ATOMIC); msg 203 net/nfc/netlink.c nlmsg_free(msg); msg 209 net/nfc/netlink.c struct sk_buff *msg; msg 212 net/nfc/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 213 net/nfc/netlink.c if (!msg) msg 216 net/nfc/netlink.c hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, msg 221 net/nfc/netlink.c if (nla_put_string(msg, NFC_ATTR_DEVICE_NAME, nfc_device_name(dev)) || msg 222 net/nfc/netlink.c nla_put_u32(msg, NFC_ATTR_TARGET_INDEX, target_idx)) msg 225 net/nfc/netlink.c genlmsg_end(msg, hdr); msg 227 net/nfc/netlink.c genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_KERNEL); msg 233 net/nfc/netlink.c nlmsg_free(msg); msg 239 net/nfc/netlink.c struct sk_buff *msg; msg 242 net/nfc/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 243 net/nfc/netlink.c if (!msg) msg 246 net/nfc/netlink.c hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, msg 251 net/nfc/netlink.c if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx)) msg 253 net/nfc/netlink.c if (nla_put_u32(msg, NFC_ATTR_TM_PROTOCOLS, protocol)) msg 256 net/nfc/netlink.c genlmsg_end(msg, hdr); msg 258 net/nfc/netlink.c genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_KERNEL); msg 264 net/nfc/netlink.c nlmsg_free(msg); msg 270 net/nfc/netlink.c struct sk_buff *msg; msg 273 net/nfc/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 274 net/nfc/netlink.c if (!msg) msg 277 net/nfc/netlink.c hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, msg 282 net/nfc/netlink.c if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx)) msg 285 net/nfc/netlink.c genlmsg_end(msg, hdr); msg 287 net/nfc/netlink.c genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_KERNEL); msg 293 net/nfc/netlink.c nlmsg_free(msg); msg 297 net/nfc/netlink.c static int nfc_genl_setup_device_added(struct nfc_dev *dev, struct sk_buff *msg) msg 299 net/nfc/netlink.c if (nla_put_string(msg, NFC_ATTR_DEVICE_NAME, nfc_device_name(dev)) || msg 300 net/nfc/netlink.c nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx) || msg 301 net/nfc/netlink.c nla_put_u32(msg, NFC_ATTR_PROTOCOLS, dev->supported_protocols) || msg 302 net/nfc/netlink.c nla_put_u8(msg, NFC_ATTR_DEVICE_POWERED, dev->dev_up) || msg 303 net/nfc/netlink.c nla_put_u8(msg, NFC_ATTR_RF_MODE, dev->rf_mode)) msg 310 net/nfc/netlink.c struct sk_buff *msg; msg 313 net/nfc/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 314 net/nfc/netlink.c if (!msg) msg 317 net/nfc/netlink.c hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, msg 322 net/nfc/netlink.c if (nfc_genl_setup_device_added(dev, msg)) msg 325 net/nfc/netlink.c genlmsg_end(msg, hdr); msg 327 net/nfc/netlink.c genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_KERNEL); msg 333 net/nfc/netlink.c nlmsg_free(msg); msg 339 net/nfc/netlink.c struct sk_buff *msg; msg 342 net/nfc/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 343 net/nfc/netlink.c if (!msg) msg 346 net/nfc/netlink.c hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, msg 351 net/nfc/netlink.c if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx)) msg 354 net/nfc/netlink.c genlmsg_end(msg, hdr); msg 356 net/nfc/netlink.c genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_KERNEL); msg 362 net/nfc/netlink.c nlmsg_free(msg); msg 368 net/nfc/netlink.c struct sk_buff *msg; msg 376 net/nfc/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 377 net/nfc/netlink.c if (!msg) msg 380 net/nfc/netlink.c hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, msg 385 net/nfc/netlink.c if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx)) msg 388 net/nfc/netlink.c sdp_attr = nla_nest_start_noflag(msg, NFC_ATTR_LLC_SDP); msg 398 net/nfc/netlink.c uri_attr = nla_nest_start_noflag(msg, i++); msg 404 net/nfc/netlink.c if (nla_put_u8(msg, NFC_SDP_ATTR_SAP, sdres->sap)) msg 407 net/nfc/netlink.c if (nla_put_string(msg, NFC_SDP_ATTR_URI, sdres->uri)) msg 410 net/nfc/netlink.c nla_nest_end(msg, uri_attr); msg 417 net/nfc/netlink.c nla_nest_end(msg, sdp_attr); msg 419 net/nfc/netlink.c genlmsg_end(msg, hdr); msg 421 net/nfc/netlink.c return genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_ATOMIC); msg 425 net/nfc/netlink.c nlmsg_free(msg); msg 434 net/nfc/netlink.c struct sk_buff *msg; msg 437 net/nfc/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 438 net/nfc/netlink.c if (!msg) msg 441 net/nfc/netlink.c hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, msg 446 net/nfc/netlink.c if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx) || msg 447 net/nfc/netlink.c nla_put_u32(msg, NFC_ATTR_SE_INDEX, se_idx) || msg 448 net/nfc/netlink.c nla_put_u8(msg, NFC_ATTR_SE_TYPE, type)) msg 451 net/nfc/netlink.c genlmsg_end(msg, hdr); msg 453 net/nfc/netlink.c genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_KERNEL); msg 459 net/nfc/netlink.c nlmsg_free(msg); msg 465 net/nfc/netlink.c struct sk_buff *msg; msg 468 net/nfc/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 469 net/nfc/netlink.c if (!msg) msg 472 net/nfc/netlink.c hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, msg 477 net/nfc/netlink.c if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx) || msg 478 net/nfc/netlink.c nla_put_u32(msg, NFC_ATTR_SE_INDEX, se_idx)) msg 481 net/nfc/netlink.c genlmsg_end(msg, hdr); msg 483 net/nfc/netlink.c genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_KERNEL); msg 489 net/nfc/netlink.c nlmsg_free(msg); msg 497 net/nfc/netlink.c struct sk_buff *msg; msg 500 net/nfc/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 501 net/nfc/netlink.c if (!msg) msg 504 net/nfc/netlink.c hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, msg 513 net/nfc/netlink.c if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx) || msg 514 net/nfc/netlink.c nla_put_u32(msg, NFC_ATTR_SE_INDEX, se_idx) || msg 515 net/nfc/netlink.c nla_put_u8(msg, NFC_ATTR_SE_TYPE, se->type) || msg 516 net/nfc/netlink.c nla_put(msg, NFC_ATTR_SE_AID, evt_transaction->aid_len, msg 518 net/nfc/netlink.c nla_put(msg, NFC_ATTR_SE_PARAMS, evt_transaction->params_len, msg 525 net/nfc/netlink.c genlmsg_end(msg, hdr); msg 527 net/nfc/netlink.c genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_KERNEL); msg 535 net/nfc/netlink.c nlmsg_free(msg); msg 542 net/nfc/netlink.c struct sk_buff *msg; msg 545 net/nfc/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 546 net/nfc/netlink.c if (!msg) msg 549 net/nfc/netlink.c hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, msg 558 net/nfc/netlink.c if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx) || msg 559 net/nfc/netlink.c nla_put_u32(msg, NFC_ATTR_SE_INDEX, se_idx) || msg 560 net/nfc/netlink.c nla_put_u8(msg, NFC_ATTR_SE_TYPE, se->type)) msg 563 net/nfc/netlink.c genlmsg_end(msg, hdr); msg 565 net/nfc/netlink.c genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_KERNEL); msg 571 net/nfc/netlink.c nlmsg_free(msg); msg 575 net/nfc/netlink.c static int nfc_genl_send_device(struct sk_buff *msg, struct nfc_dev *dev, msg 582 net/nfc/netlink.c hdr = genlmsg_put(msg, portid, seq, &nfc_genl_family, flags, msg 590 net/nfc/netlink.c if (nfc_genl_setup_device_added(dev, msg)) msg 593 net/nfc/netlink.c genlmsg_end(msg, hdr); msg 597 net/nfc/netlink.c genlmsg_cancel(msg, hdr); msg 656 net/nfc/netlink.c struct sk_buff *msg; msg 661 net/nfc/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_ATOMIC); msg 662 net/nfc/netlink.c if (!msg) msg 665 net/nfc/netlink.c hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, NFC_CMD_DEP_LINK_UP); msg 669 net/nfc/netlink.c if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx)) msg 672 net/nfc/netlink.c nla_put_u32(msg, NFC_ATTR_TARGET_INDEX, target_idx)) msg 674 net/nfc/netlink.c if (nla_put_u8(msg, NFC_ATTR_COMM_MODE, comm_mode) || msg 675 net/nfc/netlink.c nla_put_u8(msg, NFC_ATTR_RF_MODE, rf_mode)) msg 678 net/nfc/netlink.c genlmsg_end(msg, hdr); msg 682 net/nfc/netlink.c genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_ATOMIC); msg 688 net/nfc/netlink.c nlmsg_free(msg); msg 694 net/nfc/netlink.c struct sk_buff *msg; msg 699 net/nfc/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_ATOMIC); msg 700 net/nfc/netlink.c if (!msg) msg 703 net/nfc/netlink.c hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, msg 708 net/nfc/netlink.c if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx)) msg 711 net/nfc/netlink.c genlmsg_end(msg, hdr); msg 713 net/nfc/netlink.c genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_ATOMIC); msg 719 net/nfc/netlink.c nlmsg_free(msg); msg 725 net/nfc/netlink.c struct sk_buff *msg; msg 739 net/nfc/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 740 net/nfc/netlink.c if (!msg) { msg 745 net/nfc/netlink.c rc = nfc_genl_send_device(msg, dev, info->snd_portid, info->snd_seq, msg 752 net/nfc/netlink.c return genlmsg_reply(msg, info); msg 755 net/nfc/netlink.c nlmsg_free(msg); msg 993 net/nfc/netlink.c static int nfc_genl_send_params(struct sk_buff *msg, msg 999 net/nfc/netlink.c hdr = genlmsg_put(msg, portid, seq, &nfc_genl_family, 0, msg 1004 net/nfc/netlink.c if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, local->dev->idx) || msg 1005 net/nfc/netlink.c nla_put_u8(msg, NFC_ATTR_LLC_PARAM_LTO, local->lto) || msg 1006 net/nfc/netlink.c nla_put_u8(msg, NFC_ATTR_LLC_PARAM_RW, local->rw) || msg 1007 net/nfc/netlink.c nla_put_u16(msg, NFC_ATTR_LLC_PARAM_MIUX, be16_to_cpu(local->miux))) msg 1010 net/nfc/netlink.c genlmsg_end(msg, hdr); msg 1014 net/nfc/netlink.c genlmsg_cancel(msg, hdr); msg 1023 net/nfc/netlink.c struct sk_buff *msg = NULL; msg 1044 net/nfc/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 1045 net/nfc/netlink.c if (!msg) { msg 1050 net/nfc/netlink.c rc = nfc_genl_send_params(msg, local, info->snd_portid, info->snd_seq); msg 1058 net/nfc/netlink.c if (msg) msg 1059 net/nfc/netlink.c nlmsg_free(msg); msg 1064 net/nfc/netlink.c return genlmsg_reply(msg, info); msg 1249 net/nfc/netlink.c struct sk_buff *msg; msg 1252 net/nfc/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 1253 net/nfc/netlink.c if (!msg) msg 1256 net/nfc/netlink.c hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, msg 1261 net/nfc/netlink.c if (nla_put_string(msg, NFC_ATTR_FIRMWARE_NAME, firmware_name) || msg 1262 net/nfc/netlink.c nla_put_u32(msg, NFC_ATTR_FIRMWARE_DOWNLOAD_STATUS, result) || msg 1263 net/nfc/netlink.c nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx)) msg 1266 net/nfc/netlink.c genlmsg_end(msg, hdr); msg 1268 net/nfc/netlink.c genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_KERNEL); msg 1274 net/nfc/netlink.c nlmsg_free(msg); msg 1324 net/nfc/netlink.c static int nfc_genl_send_se(struct sk_buff *msg, struct nfc_dev *dev, msg 1333 net/nfc/netlink.c hdr = genlmsg_put(msg, portid, seq, &nfc_genl_family, flags, msg 1341 net/nfc/netlink.c if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, dev->idx) || msg 1342 net/nfc/netlink.c nla_put_u32(msg, NFC_ATTR_SE_INDEX, se->idx) || msg 1343 net/nfc/netlink.c nla_put_u8(msg, NFC_ATTR_SE_TYPE, se->type)) msg 1346 net/nfc/netlink.c genlmsg_end(msg, hdr); msg 1352 net/nfc/netlink.c genlmsg_cancel(msg, hdr); msg 1461 net/nfc/netlink.c struct sk_buff *msg; msg 1464 net/nfc/netlink.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 1465 net/nfc/netlink.c if (!msg) { msg 1470 net/nfc/netlink.c hdr = genlmsg_put(msg, 0, 0, &nfc_genl_family, 0, msg 1475 net/nfc/netlink.c if (nla_put_u32(msg, NFC_ATTR_DEVICE_INDEX, ctx->dev_idx) || msg 1476 net/nfc/netlink.c nla_put_u32(msg, NFC_ATTR_SE_INDEX, ctx->se_idx) || msg 1477 net/nfc/netlink.c nla_put(msg, NFC_ATTR_SE_APDU, apdu_len, apdu)) msg 1480 net/nfc/netlink.c genlmsg_end(msg, hdr); msg 1482 net/nfc/netlink.c genlmsg_multicast(&nfc_genl_family, msg, 0, 0, GFP_KERNEL); msg 1490 net/nfc/netlink.c nlmsg_free(msg); msg 202 net/nfc/rawsock.c static int rawsock_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) msg 211 net/nfc/rawsock.c if (msg->msg_namelen) msg 217 net/nfc/rawsock.c skb = nfc_alloc_send_skb(dev, sk, msg->msg_flags, len, &rc); msg 221 net/nfc/rawsock.c rc = memcpy_from_msg(skb_put(skb, len), msg, len); msg 238 net/nfc/rawsock.c static int rawsock_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, msg 255 net/nfc/rawsock.c msg->msg_flags |= MSG_TRUNC; msg 259 net/nfc/rawsock.c rc = skb_copy_datagram_msg(skb, 0, msg, copied); msg 1875 net/packet/af_packet.c static int packet_sendmsg_spkt(struct socket *sock, struct msghdr *msg, msg 1879 net/packet/af_packet.c DECLARE_SOCKADDR(struct sockaddr_pkt *, saddr, msg->msg_name); msg 1892 net/packet/af_packet.c if (msg->msg_namelen < sizeof(struct sockaddr)) msg 1894 net/packet/af_packet.c if (msg->msg_namelen == sizeof(struct sockaddr_pkt)) msg 1955 net/packet/af_packet.c err = memcpy_from_msg(skb_put(skb, len), msg, len); msg 1972 net/packet/af_packet.c if (msg->msg_controllen) { msg 1973 net/packet/af_packet.c err = sock_cmsg_send(sk, msg, &sockc); msg 2017 net/packet/af_packet.c static int packet_rcv_vnet(struct msghdr *msg, const struct sk_buff *skb, msg 2029 net/packet/af_packet.c return memcpy_to_msg(msg, (void *)&vnet_hdr, sizeof(vnet_hdr)); msg 2458 net/packet/af_packet.c static int packet_snd_vnet_parse(struct msghdr *msg, size_t *len, msg 2465 net/packet/af_packet.c if (!copy_from_iter_full(vnet_hdr, sizeof(*vnet_hdr), &msg->msg_iter)) msg 2619 net/packet/af_packet.c static int tpacket_snd(struct packet_sock *po, struct msghdr *msg) msg 2628 net/packet/af_packet.c DECLARE_SOCKADDR(struct sockaddr_ll *, saddr, msg->msg_name); msg 2629 net/packet/af_packet.c bool need_wait = !(msg->msg_flags & MSG_DONTWAIT); msg 2652 net/packet/af_packet.c if (msg->msg_namelen < sizeof(struct sockaddr_ll)) msg 2654 net/packet/af_packet.c if (msg->msg_namelen < (saddr->sll_halen msg 2661 net/packet/af_packet.c if (dev && msg->msg_namelen < dev->addr_len + msg 2676 net/packet/af_packet.c if (msg->msg_controllen) { msg 2677 net/packet/af_packet.c err = sock_cmsg_send(&po->sk, msg, &sockc); msg 2697 net/packet/af_packet.c timeo = sock_sndtimeo(&po->sk, msg->msg_flags & MSG_DONTWAIT); msg 2839 net/packet/af_packet.c static int packet_snd(struct socket *sock, struct msghdr *msg, size_t len) msg 2842 net/packet/af_packet.c DECLARE_SOCKADDR(struct sockaddr_ll *, saddr, msg->msg_name); msg 2865 net/packet/af_packet.c if (msg->msg_namelen < sizeof(struct sockaddr_ll)) msg 2867 net/packet/af_packet.c if (msg->msg_namelen < (saddr->sll_halen + offsetof(struct sockaddr_ll, sll_addr))) msg 2872 net/packet/af_packet.c if (dev && msg->msg_namelen < dev->addr_len + msg 2888 net/packet/af_packet.c if (msg->msg_controllen) { msg 2889 net/packet/af_packet.c err = sock_cmsg_send(sk, msg, &sockc); msg 2897 net/packet/af_packet.c err = packet_snd_vnet_parse(msg, &len, &vnet_hdr); msg 2922 net/packet/af_packet.c msg->msg_flags & MSG_DONTWAIT, &err); msg 2941 net/packet/af_packet.c err = skb_copy_datagram_from_iter(skb, offset, &msg->msg_iter, len); msg 2995 net/packet/af_packet.c static int packet_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) msg 3001 net/packet/af_packet.c return tpacket_snd(po, msg); msg 3003 net/packet/af_packet.c return packet_snd(sock, msg, len); msg 3313 net/packet/af_packet.c static int packet_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, msg 3333 net/packet/af_packet.c err = sock_recv_errqueue(sk, msg, len, msg 3361 net/packet/af_packet.c err = packet_rcv_vnet(msg, skb, &len); msg 3374 net/packet/af_packet.c msg->msg_flags |= MSG_TRUNC; msg 3377 net/packet/af_packet.c err = skb_copy_datagram_msg(skb, 0, msg, copied); msg 3390 net/packet/af_packet.c sock_recv_ts_and_drops(msg, sk, skb); msg 3392 net/packet/af_packet.c if (msg->msg_name) { msg 3400 net/packet/af_packet.c msg->msg_namelen = sizeof(struct sockaddr_pkt); msg 3401 net/packet/af_packet.c copy_len = msg->msg_namelen; msg 3405 net/packet/af_packet.c msg->msg_namelen = sll->sll_halen + msg 3407 net/packet/af_packet.c copy_len = msg->msg_namelen; msg 3408 net/packet/af_packet.c if (msg->msg_namelen < sizeof(struct sockaddr_ll)) { msg 3409 net/packet/af_packet.c memset(msg->msg_name + msg 3412 net/packet/af_packet.c msg->msg_namelen = sizeof(struct sockaddr_ll); msg 3415 net/packet/af_packet.c memcpy(msg->msg_name, &PACKET_SKB_CB(skb)->sa, copy_len); msg 3441 net/packet/af_packet.c put_cmsg(msg, SOL_PACKET, PACKET_AUXDATA, sizeof(aux), &aux); msg 4065 net/packet/af_packet.c unsigned long msg, void *ptr) msg 4075 net/packet/af_packet.c switch (msg) { msg 4090 net/packet/af_packet.c if (msg == NETDEV_UNREGISTER) { msg 73 net/phonet/datagram.c static int pn_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) msg 75 net/phonet/datagram.c DECLARE_SOCKADDR(struct sockaddr_pn *, target, msg->msg_name); msg 79 net/phonet/datagram.c if (msg->msg_flags & ~(MSG_DONTWAIT|MSG_EOR|MSG_NOSIGNAL| msg 86 net/phonet/datagram.c if (msg->msg_namelen < sizeof(struct sockaddr_pn)) msg 93 net/phonet/datagram.c msg->msg_flags & MSG_DONTWAIT, &err); msg 98 net/phonet/datagram.c err = memcpy_from_msg((void *)skb_put(skb, len), msg, len); msg 114 net/phonet/datagram.c static int pn_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, msg 134 net/phonet/datagram.c msg->msg_flags |= MSG_TRUNC; msg 138 net/phonet/datagram.c rval = skb_copy_datagram_msg(skb, 0, msg, copylen); msg 146 net/phonet/datagram.c if (msg->msg_name != NULL) { msg 148 net/phonet/datagram.c memcpy(msg->msg_name, &sa, sizeof(sa)); msg 1111 net/phonet/pep.c static int pep_sendmsg(struct sock *sk, struct msghdr *msg, size_t len) msg 1116 net/phonet/pep.c int flags = msg->msg_flags; msg 1122 net/phonet/pep.c if ((msg->msg_flags & ~(MSG_DONTWAIT|MSG_EOR|MSG_NOSIGNAL| msg 1124 net/phonet/pep.c !(msg->msg_flags & MSG_EOR)) msg 1133 net/phonet/pep.c err = memcpy_from_msg(skb_put(skb, len), msg, len); msg 1237 net/phonet/pep.c static int pep_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, msg 1260 net/phonet/pep.c msg->msg_flags |= MSG_OOB; msg 1280 net/phonet/pep.c msg->msg_flags |= MSG_EOR; msg 1282 net/phonet/pep.c msg->msg_flags |= MSG_TRUNC; msg 1286 net/phonet/pep.c err = skb_copy_datagram_msg(skb, 0, msg, len); msg 36 net/psample/psample.c static int psample_group_nl_fill(struct sk_buff *msg, msg 44 net/psample/psample.c hdr = genlmsg_put(msg, portid, seq, &psample_nl_family, flags, cmd); msg 48 net/psample/psample.c ret = nla_put_u32(msg, PSAMPLE_ATTR_SAMPLE_GROUP, group->group_num); msg 52 net/psample/psample.c ret = nla_put_u32(msg, PSAMPLE_ATTR_GROUP_REFCOUNT, group->refcount); msg 56 net/psample/psample.c ret = nla_put_u32(msg, PSAMPLE_ATTR_GROUP_SEQ, group->seq); msg 60 net/psample/psample.c genlmsg_end(msg, hdr); msg 64 net/psample/psample.c genlmsg_cancel(msg, hdr); msg 68 net/psample/psample.c static int psample_nl_cmd_get_group_dumpit(struct sk_buff *msg, msg 78 net/psample/psample.c if (!net_eq(group->net, sock_net(msg->sk))) msg 84 net/psample/psample.c err = psample_group_nl_fill(msg, group, PSAMPLE_CMD_NEW_GROUP, msg 94 net/psample/psample.c return msg->len; msg 121 net/psample/psample.c struct sk_buff *msg; msg 124 net/psample/psample.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_ATOMIC); msg 125 net/psample/psample.c if (!msg) msg 128 net/psample/psample.c err = psample_group_nl_fill(msg, group, cmd, 0, 0, NLM_F_MULTI); msg 130 net/psample/psample.c genlmsg_multicast_netns(&psample_nl_family, group->net, msg, 0, msg 133 net/psample/psample.c nlmsg_free(msg); msg 719 net/qrtr/qrtr.c static int qrtr_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) msg 721 net/qrtr/qrtr.c DECLARE_SOCKADDR(struct sockaddr_qrtr *, addr, msg->msg_name); msg 733 net/qrtr/qrtr.c if (msg->msg_flags & ~(MSG_DONTWAIT)) msg 742 net/qrtr/qrtr.c if (msg->msg_namelen < sizeof(*addr)) { msg 785 net/qrtr/qrtr.c msg->msg_flags & MSG_DONTWAIT, &rc); msg 791 net/qrtr/qrtr.c rc = memcpy_from_msg(skb_put(skb, len), msg, len); msg 820 net/qrtr/qrtr.c static int qrtr_recvmsg(struct socket *sock, struct msghdr *msg, msg 823 net/qrtr/qrtr.c DECLARE_SOCKADDR(struct sockaddr_qrtr *, addr, msg->msg_name); msg 846 net/qrtr/qrtr.c msg->msg_flags |= MSG_TRUNC; msg 849 net/qrtr/qrtr.c rc = skb_copy_datagram_msg(skb, 0, msg, copied); msg 859 net/qrtr/qrtr.c msg->msg_namelen = sizeof(*addr); msg 897 net/rds/rds.h int rds_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, msg 900 net/rds/rds.h int rds_notify_queue_get(struct rds_sock *rs, struct msghdr *msg); msg 910 net/rds/rds.h int rds_sendmsg(struct socket *sock, struct msghdr *msg, size_t payload_len); msg 538 net/rds/recv.c static int rds_cmsg_recv(struct rds_incoming *inc, struct msghdr *msg, msg 544 net/rds/recv.c ret = put_cmsg(msg, SOL_RDS, RDS_CMSG_RDMA_DEST, msg 557 net/rds/recv.c ret = put_cmsg(msg, SOL_SOCKET, SO_TIMESTAMP_OLD, msg 565 net/rds/recv.c ret = put_cmsg(msg, SOL_SOCKET, SO_TIMESTAMP_NEW, msg 587 net/rds/recv.c ret = put_cmsg(msg, SOL_RDS, RDS_CMSG_RXPATH_LATENCY, msg 597 net/rds/recv.c static bool rds_recvmsg_zcookie(struct rds_sock *rs, struct msghdr *msg) msg 604 net/rds/recv.c if (!msg->msg_control) msg 608 net/rds/recv.c msg->msg_controllen < CMSG_SPACE(sizeof(*done))) msg 621 net/rds/recv.c if (put_cmsg(msg, SOL_RDS, RDS_CMSG_ZCOPY_COMPLETION, sizeof(*done), msg 632 net/rds/recv.c int rds_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, msg 639 net/rds/recv.c DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, msg->msg_name); msg 640 net/rds/recv.c DECLARE_SOCKADDR(struct sockaddr_in *, sin, msg->msg_name); msg 651 net/rds/recv.c return sock_recv_errqueue(sk, msg, size, SOL_IP, IP_RECVERR); msg 656 net/rds/recv.c ret = rds_notify_queue_get(rs, msg); msg 661 net/rds/recv.c ret = rds_notify_cong(rs, msg); msg 667 net/rds/recv.c bool reaped = rds_recvmsg_zcookie(rs, msg); msg 691 net/rds/recv.c ret = inc->i_conn->c_trans->inc_copy_to_user(inc, &msg->msg_iter); msg 704 net/rds/recv.c iov_iter_revert(&msg->msg_iter, ret); msg 711 net/rds/recv.c msg->msg_flags |= MSG_TRUNC; msg 714 net/rds/recv.c if (rds_cmsg_recv(inc, msg, rs)) { msg 718 net/rds/recv.c rds_recvmsg_zcookie(rs, msg); msg 722 net/rds/recv.c if (msg->msg_name) { msg 724 net/rds/recv.c sin = (struct sockaddr_in *)msg->msg_name; msg 731 net/rds/recv.c msg->msg_namelen = sizeof(*sin); msg 733 net/rds/recv.c sin6 = (struct sockaddr_in6 *)msg->msg_name; msg 740 net/rds/recv.c msg->msg_namelen = sizeof(*sin6); msg 889 net/rds/send.c static int rds_rm_size(struct msghdr *msg, int num_sgs, msg 902 net/rds/send.c for_each_cmsghdr(cmsg, msg) { msg 903 net/rds/send.c if (!CMSG_OK(msg, cmsg)) msg 959 net/rds/send.c if ((msg->msg_flags & MSG_ZEROCOPY) && !zcopy_cookie) msg 985 net/rds/send.c struct msghdr *msg, int *allocated_mr, msg 991 net/rds/send.c for_each_cmsghdr(cmsg, msg) { msg 992 net/rds/send.c if (!CMSG_OK(msg, cmsg)) msg 1078 net/rds/send.c static int rds_rdma_bytes(struct msghdr *msg, size_t *rdma_bytes) msg 1083 net/rds/send.c for_each_cmsghdr(cmsg, msg) { msg 1084 net/rds/send.c if (!CMSG_OK(msg, cmsg)) msg 1101 net/rds/send.c int rds_sendmsg(struct socket *sock, struct msghdr *msg, size_t payload_len) msg 1105 net/rds/send.c DECLARE_SOCKADDR(struct sockaddr_in6 *, sin6, msg->msg_name); msg 1106 net/rds/send.c DECLARE_SOCKADDR(struct sockaddr_in *, usin, msg->msg_name); msg 1112 net/rds/send.c int nonblock = msg->msg_flags & MSG_DONTWAIT; msg 1118 net/rds/send.c bool zcopy = ((msg->msg_flags & MSG_ZEROCOPY) && msg 1132 net/rds/send.c if (msg->msg_flags & ~(MSG_DONTWAIT | MSG_CMSG_COMPAT | MSG_ZEROCOPY)) { msg 1137 net/rds/send.c namelen = msg->msg_namelen; msg 1242 net/rds/send.c ret = rds_rdma_bytes(msg, &rdma_payload_len); msg 1262 net/rds/send.c num_sgs = iov_iter_npages(&msg->msg_iter, INT_MAX); msg 1265 net/rds/send.c ret = rds_rm_size(msg, num_sgs, &vct); msg 1282 net/rds/send.c ret = rds_message_copy_from_user(rm, &msg->msg_iter, zcopy); msg 1316 net/rds/send.c ret = rds_cmsg_send(rs, rm, msg, &allocated_mr, &vct); msg 67 net/rds/tcp_send.c struct msghdr msg = { msg 71 net/rds/tcp_send.c return kernel_sendmsg(sock, &msg, &vec, 1, vec.iov_len); msg 1028 net/rose/af_rose.c static int rose_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) msg 1032 net/rose/af_rose.c DECLARE_SOCKADDR(struct sockaddr_rose *, usrose, msg->msg_name); msg 1039 net/rose/af_rose.c if (msg->msg_flags & ~(MSG_DONTWAIT|MSG_EOR|MSG_CMSG_COMPAT)) msg 1054 net/rose/af_rose.c if (msg->msg_namelen != sizeof(struct sockaddr_rose) && msg->msg_namelen != sizeof(struct full_sockaddr_rose)) msg 1057 net/rose/af_rose.c memcpy(&srose, usrose, msg->msg_namelen); msg 1090 net/rose/af_rose.c if ((skb = sock_alloc_send_skb(sk, size, msg->msg_flags & MSG_DONTWAIT, &err)) == NULL) msg 1102 net/rose/af_rose.c err = memcpy_from_msg(skb_transport_header(skb), msg, len); msg 1192 net/rose/af_rose.c static int rose_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, msg 1227 net/rose/af_rose.c msg->msg_flags |= MSG_TRUNC; msg 1230 net/rose/af_rose.c skb_copy_datagram_msg(skb, 0, msg, copied); msg 1232 net/rose/af_rose.c if (msg->msg_name) { msg 1235 net/rose/af_rose.c msg->msg_name); msg 1237 net/rose/af_rose.c memset(msg->msg_name, 0, sizeof(struct full_sockaddr_rose)); msg 1238 net/rose/af_rose.c srose = msg->msg_name; msg 1245 net/rose/af_rose.c msg->msg_namelen = sizeof(struct full_sockaddr_rose); msg 28 net/rxrpc/conn_event.c struct msghdr msg; msg 55 net/rxrpc/conn_event.c msg.msg_name = &conn->params.peer->srx.transport; msg 56 net/rxrpc/conn_event.c msg.msg_namelen = conn->params.peer->srx.transport_len; msg 57 net/rxrpc/conn_event.c msg.msg_control = NULL; msg 58 net/rxrpc/conn_event.c msg.msg_controllen = 0; msg 59 net/rxrpc/conn_event.c msg.msg_flags = 0; msg 136 net/rxrpc/conn_event.c ret = kernel_sendmsg(conn->params.local->socket, &msg, iov, ioc, len); msg 194 net/rxrpc/conn_event.c struct msghdr msg; msg 216 net/rxrpc/conn_event.c msg.msg_name = &conn->params.peer->srx.transport; msg 217 net/rxrpc/conn_event.c msg.msg_namelen = conn->params.peer->srx.transport_len; msg 218 net/rxrpc/conn_event.c msg.msg_control = NULL; msg 219 net/rxrpc/conn_event.c msg.msg_controllen = 0; msg 220 net/rxrpc/conn_event.c msg.msg_flags = 0; msg 247 net/rxrpc/conn_event.c ret = kernel_sendmsg(conn->params.local->socket, &msg, iov, 2, len); msg 31 net/rxrpc/local_event.c struct msghdr msg; msg 41 net/rxrpc/local_event.c msg.msg_name = &srx.transport; msg 42 net/rxrpc/local_event.c msg.msg_namelen = srx.transport_len; msg 43 net/rxrpc/local_event.c msg.msg_control = NULL; msg 44 net/rxrpc/local_event.c msg.msg_controllen = 0; msg 45 net/rxrpc/local_event.c msg.msg_flags = 0; msg 68 net/rxrpc/local_event.c ret = kernel_sendmsg(local->socket, &msg, iov, 2, len); msg 134 net/rxrpc/output.c struct msghdr msg; msg 151 net/rxrpc/output.c msg.msg_name = &call->peer->srx.transport; msg 152 net/rxrpc/output.c msg.msg_namelen = call->peer->srx.transport_len; msg 153 net/rxrpc/output.c msg.msg_control = NULL; msg 154 net/rxrpc/output.c msg.msg_controllen = 0; msg 155 net/rxrpc/output.c msg.msg_flags = 0; msg 212 net/rxrpc/output.c ret = kernel_sendmsg(conn->params.local->socket, &msg, iov, 2, len); msg 254 net/rxrpc/output.c struct msghdr msg; msg 274 net/rxrpc/output.c msg.msg_name = &call->peer->srx.transport; msg 275 net/rxrpc/output.c msg.msg_namelen = call->peer->srx.transport_len; msg 276 net/rxrpc/output.c msg.msg_control = NULL; msg 277 net/rxrpc/output.c msg.msg_controllen = 0; msg 278 net/rxrpc/output.c msg.msg_flags = 0; msg 299 net/rxrpc/output.c &msg, iov, 1, sizeof(pkt)); msg 320 net/rxrpc/output.c struct msghdr msg; msg 353 net/rxrpc/output.c msg.msg_name = &call->peer->srx.transport; msg 354 net/rxrpc/output.c msg.msg_namelen = call->peer->srx.transport_len; msg 355 net/rxrpc/output.c msg.msg_control = NULL; msg 356 net/rxrpc/output.c msg.msg_controllen = 0; msg 357 net/rxrpc/output.c msg.msg_flags = 0; msg 407 net/rxrpc/output.c ret = kernel_sendmsg(conn->params.local->socket, &msg, iov, 2, len); msg 480 net/rxrpc/output.c ret = kernel_sendmsg(conn->params.local->socket, &msg, msg 515 net/rxrpc/output.c struct msghdr msg; msg 528 net/rxrpc/output.c msg.msg_name = &srx.transport; msg 529 net/rxrpc/output.c msg.msg_control = NULL; msg 530 net/rxrpc/output.c msg.msg_controllen = 0; msg 531 net/rxrpc/output.c msg.msg_flags = 0; msg 557 net/rxrpc/output.c msg.msg_namelen = srx.transport_len; msg 567 net/rxrpc/output.c ret = kernel_sendmsg(local->socket, &msg, msg 589 net/rxrpc/output.c struct msghdr msg; msg 596 net/rxrpc/output.c msg.msg_name = &peer->srx.transport; msg 597 net/rxrpc/output.c msg.msg_namelen = peer->srx.transport_len; msg 598 net/rxrpc/output.c msg.msg_control = NULL; msg 599 net/rxrpc/output.c msg.msg_controllen = 0; msg 600 net/rxrpc/output.c msg.msg_flags = 0; msg 623 net/rxrpc/output.c ret = kernel_sendmsg(peer->local->socket, &msg, iov, 2, len); msg 64 net/rxrpc/recvmsg.c static int rxrpc_recvmsg_term(struct rxrpc_call *call, struct msghdr *msg) msg 73 net/rxrpc/recvmsg.c ret = put_cmsg(msg, SOL_RXRPC, RXRPC_ACK, 0, &tmp); msg 77 net/rxrpc/recvmsg.c ret = put_cmsg(msg, SOL_RXRPC, RXRPC_ABORT, 4, &tmp); msg 81 net/rxrpc/recvmsg.c ret = put_cmsg(msg, SOL_RXRPC, RXRPC_ABORT, 4, &tmp); msg 85 net/rxrpc/recvmsg.c ret = put_cmsg(msg, SOL_RXRPC, RXRPC_NET_ERROR, 4, &tmp); msg 89 net/rxrpc/recvmsg.c ret = put_cmsg(msg, SOL_RXRPC, RXRPC_LOCAL_ERROR, 4, &tmp); msg 111 net/rxrpc/recvmsg.c struct msghdr *msg, int flags) msg 115 net/rxrpc/recvmsg.c ret = put_cmsg(msg, SOL_RXRPC, RXRPC_NEW_CALL, 0, &tmp); msg 309 net/rxrpc/recvmsg.c struct msghdr *msg, struct iov_iter *iter, msg 360 net/rxrpc/recvmsg.c if (msg) msg 361 net/rxrpc/recvmsg.c sock_recv_timestamp(msg, sock->sk, skb); msg 440 net/rxrpc/recvmsg.c int rxrpc_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, msg 532 net/rxrpc/recvmsg.c ret = put_cmsg(msg, SOL_RXRPC, RXRPC_USER_CALL_ID, msg 537 net/rxrpc/recvmsg.c ret = put_cmsg(msg, SOL_RXRPC, RXRPC_USER_CALL_ID, msg 544 net/rxrpc/recvmsg.c if (msg->msg_name) { msg 545 net/rxrpc/recvmsg.c struct sockaddr_rxrpc *srx = msg->msg_name; msg 548 net/rxrpc/recvmsg.c memcpy(msg->msg_name, &call->peer->srx, len); msg 550 net/rxrpc/recvmsg.c msg->msg_namelen = len; msg 555 net/rxrpc/recvmsg.c ret = rxrpc_recvmsg_new_call(rx, call, msg, flags); msg 560 net/rxrpc/recvmsg.c ret = rxrpc_recvmsg_data(sock, call, msg, &msg->msg_iter, len, msg 578 net/rxrpc/recvmsg.c ret = rxrpc_recvmsg_term(call, msg); msg 583 net/rxrpc/recvmsg.c msg->msg_flags |= MSG_EOR; msg 588 net/rxrpc/recvmsg.c msg->msg_flags |= MSG_MORE; msg 590 net/rxrpc/recvmsg.c msg->msg_flags &= ~MSG_MORE; msg 645 net/rxrpc/rxkad.c struct msghdr msg; msg 664 net/rxrpc/rxkad.c msg.msg_name = &conn->params.peer->srx.transport; msg 665 net/rxrpc/rxkad.c msg.msg_namelen = conn->params.peer->srx.transport_len; msg 666 net/rxrpc/rxkad.c msg.msg_control = NULL; msg 667 net/rxrpc/rxkad.c msg.msg_controllen = 0; msg 668 net/rxrpc/rxkad.c msg.msg_flags = 0; msg 692 net/rxrpc/rxkad.c ret = kernel_sendmsg(conn->params.local->socket, &msg, iov, 2, len); msg 715 net/rxrpc/rxkad.c struct msghdr msg; msg 723 net/rxrpc/rxkad.c msg.msg_name = &conn->params.peer->srx.transport; msg 724 net/rxrpc/rxkad.c msg.msg_namelen = conn->params.peer->srx.transport_len; msg 725 net/rxrpc/rxkad.c msg.msg_control = NULL; msg 726 net/rxrpc/rxkad.c msg.msg_controllen = 0; msg 727 net/rxrpc/rxkad.c msg.msg_flags = 0; msg 750 net/rxrpc/rxkad.c ret = kernel_sendmsg(conn->params.local->socket, &msg, iov, 3, len); msg 294 net/rxrpc/sendmsg.c struct msghdr *msg, size_t len, msg 304 net/rxrpc/sendmsg.c timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); msg 312 net/rxrpc/sendmsg.c more = msg->msg_flags & MSG_MORE; msg 338 net/rxrpc/sendmsg.c if (msg->msg_flags & MSG_DONTWAIT) msg 342 net/rxrpc/sendmsg.c msg->msg_flags & MSG_WAITALL); msg 352 net/rxrpc/sendmsg.c if (chunk > msg_data_left(msg) && !more) msg 353 net/rxrpc/sendmsg.c chunk = msg_data_left(msg); msg 364 net/rxrpc/sendmsg.c sk, size, msg->msg_flags & MSG_DONTWAIT, &ret); msg 397 net/rxrpc/sendmsg.c if (msg_data_left(msg) > 0) { msg 400 net/rxrpc/sendmsg.c if (copy > msg_data_left(msg)) msg 401 net/rxrpc/sendmsg.c copy = msg_data_left(msg); msg 406 net/rxrpc/sendmsg.c ret = skb_add_data(skb, &msg->msg_iter, copy); msg 424 net/rxrpc/sendmsg.c (msg_data_left(msg) == 0 && !more)) { msg 445 net/rxrpc/sendmsg.c if (msg_data_left(msg) == 0 && !more) msg 457 net/rxrpc/sendmsg.c !msg_data_left(msg) && !more, msg 462 net/rxrpc/sendmsg.c } while (msg_data_left(msg) > 0); msg 489 net/rxrpc/sendmsg.c static int rxrpc_sendmsg_cmsg(struct msghdr *msg, struct rxrpc_send_params *p) msg 495 net/rxrpc/sendmsg.c if (msg->msg_controllen == 0) msg 498 net/rxrpc/sendmsg.c for_each_cmsghdr(cmsg, msg) { msg 499 net/rxrpc/sendmsg.c if (!CMSG_OK(msg, cmsg)) msg 511 net/rxrpc/sendmsg.c if (msg->msg_flags & MSG_CMSG_COMPAT) { msg 595 net/rxrpc/sendmsg.c rxrpc_new_client_call_for_sendmsg(struct rxrpc_sock *rx, struct msghdr *msg, msg 604 net/rxrpc/sendmsg.c DECLARE_SOCKADDR(struct sockaddr_rxrpc *, srx, msg->msg_name); msg 608 net/rxrpc/sendmsg.c if (!msg->msg_name) { msg 638 net/rxrpc/sendmsg.c int rxrpc_do_sendmsg(struct rxrpc_sock *rx, struct msghdr *msg, size_t len) msg 660 net/rxrpc/sendmsg.c ret = rxrpc_sendmsg_cmsg(msg, &p); msg 681 net/rxrpc/sendmsg.c call = rxrpc_new_client_call_for_sendmsg(rx, msg, &p); msg 765 net/rxrpc/sendmsg.c ret = rxrpc_send_data(rx, call, msg, len, NULL); msg 794 net/rxrpc/sendmsg.c struct msghdr *msg, size_t len, msg 801 net/rxrpc/sendmsg.c ASSERTCMP(msg->msg_name, ==, NULL); msg 802 net/rxrpc/sendmsg.c ASSERTCMP(msg->msg_control, ==, NULL); msg 813 net/rxrpc/sendmsg.c ret = rxrpc_send_data(rxrpc_sk(sock->sk), call, msg, len, msg 162 net/sched/sch_plug.c struct tc_plug_qopt *msg; msg 167 net/sched/sch_plug.c msg = nla_data(opt); msg 168 net/sched/sch_plug.c if (nla_len(opt) < sizeof(*msg)) msg 171 net/sched/sch_plug.c switch (msg->action) { msg 199 net/sched/sch_plug.c q->limit = msg->limit; msg 1711 net/sched/sch_taprio.c static int dump_entry(struct sk_buff *msg, msg 1716 net/sched/sch_taprio.c item = nla_nest_start_noflag(msg, TCA_TAPRIO_SCHED_ENTRY); msg 1720 net/sched/sch_taprio.c if (nla_put_u32(msg, TCA_TAPRIO_SCHED_ENTRY_INDEX, entry->index)) msg 1723 net/sched/sch_taprio.c if (nla_put_u8(msg, TCA_TAPRIO_SCHED_ENTRY_CMD, entry->command)) msg 1726 net/sched/sch_taprio.c if (nla_put_u32(msg, TCA_TAPRIO_SCHED_ENTRY_GATE_MASK, msg 1730 net/sched/sch_taprio.c if (nla_put_u32(msg, TCA_TAPRIO_SCHED_ENTRY_INTERVAL, msg 1734 net/sched/sch_taprio.c return nla_nest_end(msg, item); msg 1737 net/sched/sch_taprio.c nla_nest_cancel(msg, item); msg 1741 net/sched/sch_taprio.c static int dump_schedule(struct sk_buff *msg, msg 1747 net/sched/sch_taprio.c if (nla_put_s64(msg, TCA_TAPRIO_ATTR_SCHED_BASE_TIME, msg 1751 net/sched/sch_taprio.c if (nla_put_s64(msg, TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME, msg 1755 net/sched/sch_taprio.c if (nla_put_s64(msg, TCA_TAPRIO_ATTR_SCHED_CYCLE_TIME_EXTENSION, msg 1759 net/sched/sch_taprio.c entry_list = nla_nest_start_noflag(msg, msg 1765 net/sched/sch_taprio.c if (dump_entry(msg, entry) < 0) msg 1769 net/sched/sch_taprio.c nla_nest_end(msg, entry_list); msg 1773 net/sched/sch_taprio.c nla_nest_cancel(msg, entry_list); msg 35 net/sctp/chunk.c static void sctp_datamsg_init(struct sctp_datamsg *msg) msg 37 net/sctp/chunk.c refcount_set(&msg->refcnt, 1); msg 38 net/sctp/chunk.c msg->send_failed = 0; msg 39 net/sctp/chunk.c msg->send_error = 0; msg 40 net/sctp/chunk.c msg->can_delay = 1; msg 41 net/sctp/chunk.c msg->abandoned = 0; msg 42 net/sctp/chunk.c msg->expires_at = 0; msg 43 net/sctp/chunk.c INIT_LIST_HEAD(&msg->chunks); msg 49 net/sctp/chunk.c struct sctp_datamsg *msg; msg 50 net/sctp/chunk.c msg = kmalloc(sizeof(struct sctp_datamsg), gfp); msg 51 net/sctp/chunk.c if (msg) { msg 52 net/sctp/chunk.c sctp_datamsg_init(msg); msg 55 net/sctp/chunk.c return msg; msg 58 net/sctp/chunk.c void sctp_datamsg_free(struct sctp_datamsg *msg) msg 65 net/sctp/chunk.c list_for_each_entry(chunk, &msg->chunks, frag_list) msg 68 net/sctp/chunk.c sctp_datamsg_put(msg); msg 72 net/sctp/chunk.c static void sctp_datamsg_destroy(struct sctp_datamsg *msg) msg 81 net/sctp/chunk.c notify = msg->send_failed ? -1 : 0; msg 84 net/sctp/chunk.c list_for_each_safe(pos, temp, &msg->chunks) { msg 90 net/sctp/chunk.c if (msg->send_error) msg 91 net/sctp/chunk.c error = msg->send_error; msg 117 net/sctp/chunk.c kfree(msg); msg 121 net/sctp/chunk.c static void sctp_datamsg_hold(struct sctp_datamsg *msg) msg 123 net/sctp/chunk.c refcount_inc(&msg->refcnt); msg 127 net/sctp/chunk.c void sctp_datamsg_put(struct sctp_datamsg *msg) msg 129 net/sctp/chunk.c if (refcount_dec_and_test(&msg->refcnt)) msg 130 net/sctp/chunk.c sctp_datamsg_destroy(msg); msg 134 net/sctp/chunk.c static void sctp_datamsg_assign(struct sctp_datamsg *msg, struct sctp_chunk *chunk) msg 136 net/sctp/chunk.c sctp_datamsg_hold(msg); msg 137 net/sctp/chunk.c chunk->msg = msg; msg 157 net/sctp/chunk.c struct sctp_datamsg *msg; msg 160 net/sctp/chunk.c msg = sctp_datamsg_new(GFP_KERNEL); msg 161 net/sctp/chunk.c if (!msg) msg 170 net/sctp/chunk.c msg->expires_at = jiffies + msg 228 net/sctp/chunk.c msg->can_delay = 0; msg 281 net/sctp/chunk.c sctp_datamsg_assign(msg, chunk); msg 282 net/sctp/chunk.c list_add_tail(&chunk->frag_list, &msg->chunks); msg 285 net/sctp/chunk.c return msg; msg 291 net/sctp/chunk.c list_for_each_safe(pos, temp, &msg->chunks) { msg 296 net/sctp/chunk.c sctp_datamsg_put(msg); msg 307 net/sctp/chunk.c if (chunk->msg->abandoned) msg 315 net/sctp/chunk.c time_after(jiffies, chunk->msg->expires_at)) { msg 327 net/sctp/chunk.c chunk->msg->abandoned = 1; msg 337 net/sctp/chunk.c chunk->msg->abandoned = 1; msg 340 net/sctp/chunk.c chunk->msg->expires_at && msg 341 net/sctp/chunk.c time_after(jiffies, chunk->msg->expires_at)) { msg 342 net/sctp/chunk.c chunk->msg->abandoned = 1; msg 353 net/sctp/chunk.c chunk->msg->send_failed = 1; msg 354 net/sctp/chunk.c chunk->msg->send_error = error; msg 724 net/sctp/output.c if (!chunk->msg->can_delay) msg 350 net/sctp/outqueue.c if (!chk->msg->abandoned && msg 355 net/sctp/outqueue.c chk->msg->abandoned = 1; msg 390 net/sctp/outqueue.c if (!chk->msg->abandoned && msg 396 net/sctp/outqueue.c chk->msg->abandoned = 1; msg 1013 net/sctp/sm_make_chunk.c struct msghdr *msg, msg 1031 net/sctp/sm_make_chunk.c err = memcpy_from_msg(payload, msg, paylen); msg 1469 net/sctp/sm_make_chunk.c if (chunk->msg) msg 1470 net/sctp/sm_make_chunk.c sctp_datamsg_put(chunk->msg); msg 1538 net/sctp/sm_make_chunk.c struct sctp_datamsg *msg; msg 1551 net/sctp/sm_make_chunk.c msg = chunk->msg; msg 1552 net/sctp/sm_make_chunk.c list_for_each_entry(lchunk, &msg->chunks, frag_list) { msg 1094 net/sctp/sm_sideeffect.c struct sctp_datamsg *msg, gfp_t gfp) msg 1098 net/sctp/sm_sideeffect.c list_for_each_entry(chunk, &msg->chunks, frag_list) msg 1101 net/sctp/sm_sideeffect.c asoc->outqueue.sched->enqueue(&asoc->outqueue, msg); msg 1761 net/sctp/sm_sideeffect.c sctp_cmd_send_msg(asoc, cmd->obj.msg, gfp); msg 4935 net/sctp/sm_statefuns.c struct sctp_datamsg *msg = arg; msg 4937 net/sctp/sm_statefuns.c sctp_add_cmd_sf(commands, SCTP_CMD_SEND_MSG, SCTP_DATAMSG(msg)); msg 152 net/sctp/socket.c msg = chunk->msg; \ msg 153 net/sctp/socket.c if (msg == prev_msg) \ msg 155 net/sctp/socket.c list_for_each_entry(c, &msg->chunks, frag_list) { \ msg 160 net/sctp/socket.c prev_msg = msg; \ msg 168 net/sctp/socket.c struct sctp_datamsg *msg, *prev_msg = NULL; msg 1595 net/sctp/socket.c static int sctp_msghdr_parse(const struct msghdr *msg, msg 1600 net/sctp/socket.c const struct msghdr *msg, size_t msg_len) msg 1612 net/sctp/socket.c err = sctp_msghdr_parse(msg, cmsgs); msg 1653 net/sctp/socket.c if ((sflags & SCTP_ADDR_OVER) && !msg->msg_name) msg 1755 net/sctp/socket.c __u16 sflags, struct msghdr *msg, msg 1778 net/sctp/socket.c chunk = sctp_make_abort_user(asoc, msg, msg_len); msg 1784 net/sctp/socket.c iov_iter_revert(&msg->msg_iter, msg_len); msg 1793 net/sctp/socket.c struct msghdr *msg, size_t msg_len, msg 1835 net/sctp/socket.c timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); msg 1860 net/sctp/socket.c datamsg = sctp_datamsg_from_user(asoc, sinfo, &msg->msg_iter); msg 1866 net/sctp/socket.c asoc->force_delay = !!(msg->msg_flags & MSG_MORE); msg 1885 net/sctp/socket.c timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); msg 1896 net/sctp/socket.c const struct msghdr *msg, msg 1902 net/sctp/socket.c if (!sctp_style(sk, UDP_HIGH_BANDWIDTH) && msg->msg_name) { msg 1903 net/sctp/socket.c int len = msg->msg_namelen; msg 1908 net/sctp/socket.c daddr = (union sctp_addr *)msg->msg_name; msg 1944 net/sctp/socket.c static int sctp_sendmsg(struct sock *sk, struct msghdr *msg, size_t msg_len) msg 1957 net/sctp/socket.c err = sctp_sendmsg_parse(sk, &cmsgs, &_sinfo, msg, msg_len); msg 1965 net/sctp/socket.c daddr = sctp_sendmsg_get_daddr(sk, msg, &cmsgs); msg 1976 net/sctp/socket.c err = sctp_sendmsg_check_sflags(asoc, sflags, msg, msg 1985 net/sctp/socket.c err = sctp_sendmsg_to_asoc(asoc, msg, msg_len, msg 1990 net/sctp/socket.c iov_iter_revert(&msg->msg_iter, err); msg 2000 net/sctp/socket.c err = sctp_sendmsg_check_sflags(asoc, sflags, msg, msg 2023 net/sctp/socket.c err = sctp_sendmsg_check_sflags(asoc, sflags, msg, msg_len); msg 2032 net/sctp/socket.c err = sctp_sendmsg_to_asoc(asoc, msg, msg_len, transport, sinfo); msg 2039 net/sctp/socket.c return sctp_error(sk, msg->msg_flags, err); msg 2091 net/sctp/socket.c static int sctp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, msg 2102 net/sctp/socket.c "addr_len:%p)\n", __func__, sk, msg, len, noblock, flags, msg 2126 net/sctp/socket.c err = skb_copy_datagram_msg(skb, 0, msg, copied); msg 2137 net/sctp/socket.c sock_recv_ts_and_drops(msg, sk, head_skb); msg 2139 net/sctp/socket.c msg->msg_flags |= MSG_NOTIFICATION; msg 2140 net/sctp/socket.c sp->pf->event_msgname(event, msg->msg_name, addr_len); msg 2142 net/sctp/socket.c sp->pf->skb_msgname(head_skb, msg->msg_name, addr_len); msg 2147 net/sctp/socket.c sctp_ulpevent_read_nxtinfo(event, msg, sk); msg 2150 net/sctp/socket.c sctp_ulpevent_read_rcvinfo(event, msg); msg 2153 net/sctp/socket.c sctp_ulpevent_read_sndrcvinfo(event, msg); msg 2162 net/sctp/socket.c msg->msg_flags &= ~MSG_EOR; msg 2177 net/sctp/socket.c msg->msg_flags |= MSG_EOR; msg 2179 net/sctp/socket.c msg->msg_flags &= ~MSG_EOR; msg 8644 net/sctp/socket.c static int sctp_msghdr_parse(const struct msghdr *msg, struct sctp_cmsgs *cmsgs) msg 8646 net/sctp/socket.c struct msghdr *my_msg = (struct msghdr *)msg; msg 61 net/sctp/stream_interleave.c list_for_each_entry(lchunk, &chunk->msg->chunks, frag_list) { msg 54 net/sctp/stream_sched.c struct sctp_datamsg *msg) msg 134 net/sctp/stream_sched.c struct sctp_datamsg *msg = NULL; msg 173 net/sctp/stream_sched.c if (ch->msg == msg) msg 175 net/sctp/stream_sched.c msg = ch->msg; msg 176 net/sctp/stream_sched.c n->enqueue(&asoc->outqueue, msg); msg 230 net/sctp/stream_sched.c if (!list_is_last(&ch->frag_list, &ch->msg->chunks) && msg 234 net/sctp/stream_sched_prio.c struct sctp_datamsg *msg) msg 240 net/sctp/stream_sched_prio.c ch = list_first_entry(&msg->chunks, struct sctp_chunk, frag_list); msg 99 net/sctp/stream_sched_rr.c struct sctp_datamsg *msg) msg 105 net/sctp/stream_sched_rr.c ch = list_first_entry(&msg->chunks, struct sctp_chunk, frag_list); msg 1520 net/smc/af_smc.c static int smc_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) msg 1533 net/smc/af_smc.c if (msg->msg_flags & MSG_FASTOPEN) { msg 1544 net/smc/af_smc.c rc = smc->clcsock->ops->sendmsg(smc->clcsock, msg, len); msg 1546 net/smc/af_smc.c rc = smc_tx_sendmsg(smc, msg, len); msg 1552 net/smc/af_smc.c static int smc_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, msg 1577 net/smc/af_smc.c rc = smc->clcsock->ops->recvmsg(smc->clcsock, msg, len, flags); msg 1579 net/smc/af_smc.c msg->msg_namelen = 0; msg 1580 net/smc/af_smc.c rc = smc_rx_recvmsg(smc, msg, NULL, len, flags); msg 276 net/smc/smc_clc.c struct msghdr msg = {NULL, 0}; msg 292 net/smc/smc_clc.c iov_iter_kvec(&msg.msg_iter, READ, &vec, 1, msg 294 net/smc/smc_clc.c len = sock_recvmsg(smc->clcsock, &msg, krflags); msg 335 net/smc/smc_clc.c memset(&msg, 0, sizeof(struct msghdr)); msg 336 net/smc/smc_clc.c iov_iter_kvec(&msg.msg_iter, READ, &vec, 1, datlen); msg 338 net/smc/smc_clc.c len = sock_recvmsg(smc->clcsock, &msg, krflags); msg 365 net/smc/smc_clc.c struct msghdr msg; msg 381 net/smc/smc_clc.c memset(&msg, 0, sizeof(msg)); msg 384 net/smc/smc_clc.c len = kernel_sendmsg(smc->clcsock, &msg, &vec, 1, msg 403 net/smc/smc_clc.c struct msghdr msg; msg 438 net/smc/smc_clc.c memset(&msg, 0, sizeof(msg)); msg 456 net/smc/smc_clc.c len = kernel_sendmsg(smc->clcsock, &msg, vec, i, plen); msg 475 net/smc/smc_clc.c struct msghdr msg; msg 522 net/smc/smc_clc.c memset(&msg, 0, sizeof(msg)); msg 525 net/smc/smc_clc.c len = kernel_sendmsg(smc->clcsock, &msg, &vec, 1, msg 545 net/smc/smc_clc.c struct msghdr msg; msg 594 net/smc/smc_clc.c memset(&msg, 0, sizeof(msg)); msg 597 net/smc/smc_clc.c len = kernel_sendmsg(new_smc->clcsock, &msg, &vec, 1, msg 383 net/smc/smc_pnet.c static int smc_pnet_set_nla(struct sk_buff *msg, msg 386 net/smc/smc_pnet.c if (nla_put_string(msg, SMC_PNETID_NAME, pnetelem->pnet_name)) msg 389 net/smc/smc_pnet.c if (nla_put_string(msg, SMC_PNETID_ETHNAME, msg 393 net/smc/smc_pnet.c if (nla_put_string(msg, SMC_PNETID_ETHNAME, "n/a")) msg 397 net/smc/smc_pnet.c if (nla_put_string(msg, SMC_PNETID_IBNAME, msg 399 net/smc/smc_pnet.c nla_put_u8(msg, SMC_PNETID_IBPORT, pnetelem->ib_port)) msg 402 net/smc/smc_pnet.c if (nla_put_string(msg, SMC_PNETID_IBNAME, msg 404 net/smc/smc_pnet.c nla_put_u8(msg, SMC_PNETID_IBPORT, 1)) msg 407 net/smc/smc_pnet.c if (nla_put_string(msg, SMC_PNETID_IBNAME, "n/a") || msg 408 net/smc/smc_pnet.c nla_put_u8(msg, SMC_PNETID_IBPORT, 0xff)) msg 576 net/smc/smc_pnet.c struct sk_buff *msg; msg 582 net/smc/smc_pnet.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 583 net/smc/smc_pnet.c if (!msg) msg 586 net/smc/smc_pnet.c _smc_pnet_dump(net, msg, info->snd_portid, info->snd_seq, msg 590 net/smc/smc_pnet.c hdr = nlmsg_put(msg, info->snd_portid, info->snd_seq, NLMSG_DONE, 0, msg 593 net/smc/smc_pnet.c nlmsg_free(msg); msg 596 net/smc/smc_pnet.c return genlmsg_reply(msg, info); msg 221 net/smc/smc_rx.c static int smc_rx_recv_urg(struct smc_sock *smc, struct msghdr *msg, int len, msg 237 net/smc/smc_rx.c msg->msg_flags |= MSG_OOB; msg 240 net/smc/smc_rx.c rc = memcpy_to_msg(msg, &conn->urg_rx_byte, 1); msg 252 net/smc/smc_rx.c msg->msg_flags |= MSG_TRUNC; msg 283 net/smc/smc_rx.c int smc_rx_recvmsg(struct smc_sock *smc, struct msghdr *msg, msg 306 net/smc/smc_rx.c return smc_rx_recv_urg(smc, msg, len, flags); msg 369 net/smc/smc_rx.c if (!readable || (msg && splbytes)) { msg 397 net/smc/smc_rx.c if (msg) { msg 398 net/smc/smc_rx.c rc = memcpy_to_msg(msg, rcvbuf_base + msg 432 net/smc/smc_rx.c if (msg && smc_rx_update_consumer(smc, cons, copylen)) msg 22 net/smc/smc_rx.h int smc_rx_recvmsg(struct smc_sock *smc, struct msghdr *msg, msg 133 net/smc/smc_tx.c int smc_tx_sendmsg(struct smc_sock *smc, struct msghdr *msg, size_t len) msg 153 net/smc/smc_tx.c while (msg_data_left(msg)) { msg 163 net/smc/smc_tx.c if (msg->msg_flags & MSG_OOB) msg 169 net/smc/smc_tx.c rc = smc_tx_wait(smc, msg->msg_flags); msg 193 net/smc/smc_tx.c msg, chunk_len); msg 222 net/smc/smc_tx.c if ((msg->msg_flags & MSG_OOB) && !send_remaining) msg 224 net/smc/smc_tx.c if ((msg->msg_flags & MSG_MORE || smc_tx_is_corked(smc)) && msg 239 net/smc/smc_tx.c rc = sk_stream_error(sk, msg->msg_flags, rc); msg 32 net/smc/smc_tx.h int smc_tx_sendmsg(struct smc_sock *smc, struct msghdr *msg, size_t len); msg 635 net/socket.c static inline int sock_sendmsg_nosec(struct socket *sock, struct msghdr *msg) msg 638 net/socket.c inet_sendmsg, sock, msg, msg 639 net/socket.c msg_data_left(msg)); msg 652 net/socket.c int sock_sendmsg(struct socket *sock, struct msghdr *msg) msg 654 net/socket.c int err = security_socket_sendmsg(sock, msg, msg 655 net/socket.c msg_data_left(msg)); msg 657 net/socket.c return err ?: sock_sendmsg_nosec(sock, msg); msg 673 net/socket.c int kernel_sendmsg(struct socket *sock, struct msghdr *msg, msg 676 net/socket.c iov_iter_kvec(&msg->msg_iter, WRITE, vec, num, size); msg 677 net/socket.c return sock_sendmsg(sock, msg); msg 694 net/socket.c int kernel_sendmsg_locked(struct sock *sk, struct msghdr *msg, msg 700 net/socket.c return sock_no_sendmsg_locked(sk, msg, size); msg 702 net/socket.c iov_iter_kvec(&msg->msg_iter, WRITE, vec, num, size); msg 704 net/socket.c return sock->ops->sendmsg_locked(sk, msg, msg_data_left(msg)); msg 731 net/socket.c static void put_ts_pktinfo(struct msghdr *msg, struct sk_buff *skb) msg 748 net/socket.c put_cmsg(msg, SOL_SOCKET, SCM_TIMESTAMPING_PKTINFO, msg 755 net/socket.c void __sock_recv_timestamp(struct msghdr *msg, struct sock *sk, msg 779 net/socket.c put_cmsg(msg, SOL_SOCKET, SO_TIMESTAMP_NEW, msg 785 net/socket.c put_cmsg(msg, SOL_SOCKET, SO_TIMESTAMP_OLD, msg 793 net/socket.c put_cmsg(msg, SOL_SOCKET, SO_TIMESTAMPNS_NEW, msg 799 net/socket.c put_cmsg(msg, SOL_SOCKET, SO_TIMESTAMPNS_OLD, msg 816 net/socket.c put_ts_pktinfo(msg, skb); msg 820 net/socket.c put_cmsg_scm_timestamping64(msg, &tss); msg 822 net/socket.c put_cmsg_scm_timestamping(msg, &tss); msg 826 net/socket.c put_cmsg(msg, SOL_SOCKET, SCM_TIMESTAMPING_OPT_STATS, msg 832 net/socket.c void __sock_recv_wifi_status(struct msghdr *msg, struct sock *sk, msg 844 net/socket.c put_cmsg(msg, SOL_SOCKET, SCM_WIFI_STATUS, sizeof(ack), &ack); msg 848 net/socket.c static inline void sock_recv_drops(struct msghdr *msg, struct sock *sk, msg 852 net/socket.c put_cmsg(msg, SOL_SOCKET, SO_RXQ_OVFL, msg 856 net/socket.c void __sock_recv_ts_and_drops(struct msghdr *msg, struct sock *sk, msg 859 net/socket.c sock_recv_timestamp(msg, sk, skb); msg 860 net/socket.c sock_recv_drops(msg, sk, skb); msg 868 net/socket.c static inline int sock_recvmsg_nosec(struct socket *sock, struct msghdr *msg, msg 872 net/socket.c inet_recvmsg, sock, msg, msg_data_left(msg), msg 885 net/socket.c int sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags) msg 887 net/socket.c int err = security_socket_recvmsg(sock, msg, msg_data_left(msg), flags); msg 889 net/socket.c return err ?: sock_recvmsg_nosec(sock, msg, flags); msg 909 net/socket.c int kernel_recvmsg(struct socket *sock, struct msghdr *msg, msg 915 net/socket.c iov_iter_kvec(&msg->msg_iter, READ, vec, num, size); msg 917 net/socket.c result = sock_recvmsg(sock, msg, flags); msg 954 net/socket.c struct msghdr msg = {.msg_iter = *to, msg 959 net/socket.c msg.msg_flags = MSG_DONTWAIT; msg 967 net/socket.c res = sock_recvmsg(sock, &msg, msg.msg_flags); msg 968 net/socket.c *to = msg.msg_iter; msg 976 net/socket.c struct msghdr msg = {.msg_iter = *from, msg 984 net/socket.c msg.msg_flags = MSG_DONTWAIT; msg 987 net/socket.c msg.msg_flags |= MSG_EOR; msg 989 net/socket.c res = sock_sendmsg(sock, &msg); msg 990 net/socket.c *from = msg.msg_iter; msg 1927 net/socket.c struct msghdr msg; msg 1931 net/socket.c err = import_single_range(WRITE, buff, len, &iov, &msg.msg_iter); msg 1938 net/socket.c msg.msg_name = NULL; msg 1939 net/socket.c msg.msg_control = NULL; msg 1940 net/socket.c msg.msg_controllen = 0; msg 1941 net/socket.c msg.msg_namelen = 0; msg 1946 net/socket.c msg.msg_name = (struct sockaddr *)&address; msg 1947 net/socket.c msg.msg_namelen = addr_len; msg 1951 net/socket.c msg.msg_flags = flags; msg 1952 net/socket.c err = sock_sendmsg(sock, &msg); msg 1987 net/socket.c struct msghdr msg; msg 1992 net/socket.c err = import_single_range(READ, ubuf, size, &iov, &msg.msg_iter); msg 1999 net/socket.c msg.msg_control = NULL; msg 2000 net/socket.c msg.msg_controllen = 0; msg 2002 net/socket.c msg.msg_name = addr ? (struct sockaddr *)&address : NULL; msg 2004 net/socket.c msg.msg_namelen = 0; msg 2005 net/socket.c msg.msg_iocb = NULL; msg 2006 net/socket.c msg.msg_flags = 0; msg 2009 net/socket.c err = sock_recvmsg(sock, &msg, flags); msg 2013 net/socket.c msg.msg_namelen, addr, addr_len); msg 2174 net/socket.c #define COMPAT_MSG(msg, member) ((MSG_CMSG_COMPAT & flags) ? &msg##_compat->member : &msg->member) msg 2175 net/socket.c #define COMPAT_NAMELEN(msg) COMPAT_MSG(msg, msg_namelen) msg 2176 net/socket.c #define COMPAT_FLAGS(msg) COMPAT_MSG(msg, msg_flags) msg 2188 net/socket.c struct user_msghdr msg; msg 2191 net/socket.c if (copy_from_user(&msg, umsg, sizeof(*umsg))) msg 2194 net/socket.c kmsg->msg_control = (void __force *)msg.msg_control; msg 2195 net/socket.c kmsg->msg_controllen = msg.msg_controllen; msg 2196 net/socket.c kmsg->msg_flags = msg.msg_flags; msg 2198 net/socket.c kmsg->msg_namelen = msg.msg_namelen; msg 2199 net/socket.c if (!msg.msg_name) msg 2209 net/socket.c *save_addr = msg.msg_name; msg 2211 net/socket.c if (msg.msg_name && kmsg->msg_namelen) { msg 2213 net/socket.c err = move_addr_to_kernel(msg.msg_name, msg 2224 net/socket.c if (msg.msg_iovlen > UIO_MAXIOV) msg 2230 net/socket.c msg.msg_iov, msg.msg_iovlen, msg 2316 net/socket.c static int sendmsg_copy_msghdr(struct msghdr *msg, msg 2326 net/socket.c err = get_compat_msghdr(msg, msg_compat, NULL, iov); msg 2328 net/socket.c err = copy_msghdr_from_user(msg, umsg, NULL, iov); msg 2336 net/socket.c static int ___sys_sendmsg(struct socket *sock, struct user_msghdr __user *msg, msg 2347 net/socket.c err = sendmsg_copy_msghdr(msg_sys, msg, flags, &iov); msg 2365 net/socket.c struct msghdr msg = { .msg_name = &address }; msg 2368 net/socket.c err = sendmsg_copy_msghdr(&msg, umsg, flags, &iov); msg 2372 net/socket.c if (msg.msg_control || msg.msg_controllen) { msg 2377 net/socket.c err = ____sys_sendmsg(sock, &msg, flags, NULL, 0); msg 2383 net/socket.c long __sys_sendmsg(int fd, struct user_msghdr __user *msg, unsigned int flags, msg 2397 net/socket.c err = ___sys_sendmsg(sock, msg, &msg_sys, flags, NULL, 0); msg 2404 net/socket.c SYSCALL_DEFINE3(sendmsg, int, fd, struct user_msghdr __user *, msg, unsigned int, flags) msg 2406 net/socket.c return __sys_sendmsg(fd, msg, flags, true); msg 2486 net/socket.c static int recvmsg_copy_msghdr(struct msghdr *msg, msg 2497 net/socket.c err = get_compat_msghdr(msg, msg_compat, uaddr, iov); msg 2499 net/socket.c err = copy_msghdr_from_user(msg, umsg, uaddr, iov); msg 2508 net/socket.c struct user_msghdr __user *msg, msg 2513 net/socket.c (struct compat_msghdr __user *) msg; msg 2514 net/socket.c int __user *uaddr_len = COMPAT_NAMELEN(msg); msg 2542 net/socket.c COMPAT_FLAGS(msg)); msg 2550 net/socket.c &msg->msg_controllen); msg 2558 net/socket.c static int ___sys_recvmsg(struct socket *sock, struct user_msghdr __user *msg, msg 2566 net/socket.c err = recvmsg_copy_msghdr(msg_sys, msg, flags, &uaddr, &iov); msg 2570 net/socket.c err = ____sys_recvmsg(sock, msg_sys, msg, uaddr, flags, nosec); msg 2584 net/socket.c struct msghdr msg = { .msg_name = &address }; msg 2588 net/socket.c err = recvmsg_copy_msghdr(&msg, umsg, flags, &uaddr, &iov); msg 2592 net/socket.c if (msg.msg_control || msg.msg_controllen) { msg 2597 net/socket.c err = ____sys_recvmsg(sock, &msg, umsg, uaddr, flags, 0); msg 2603 net/socket.c long __sys_recvmsg(int fd, struct user_msghdr __user *msg, unsigned int flags, msg 2617 net/socket.c err = ___sys_recvmsg(sock, msg, &msg_sys, flags, 0); msg 2624 net/socket.c SYSCALL_DEFINE3(recvmsg, int, fd, struct user_msghdr __user *, msg, msg 2627 net/socket.c return __sys_recvmsg(fd, msg, flags, true); msg 274 net/sunrpc/auth_gss/auth_gss.c struct rpc_pipe_msg msg; msg 365 net/sunrpc/auth_gss/auth_gss.c rpc_wake_up_status(&gss_msg->rpc_waitqueue, gss_msg->msg.errno); msg 386 net/sunrpc/auth_gss/auth_gss.c switch (gss_msg->msg.errno) { msg 398 net/sunrpc/auth_gss/auth_gss.c rpc_wake_up_status(&gss_msg->rpc_waitqueue, gss_msg->msg.errno); msg 412 net/sunrpc/auth_gss/auth_gss.c task->tk_status = gss_msg->msg.errno; msg 423 net/sunrpc/auth_gss/auth_gss.c gss_msg->msg.data = gss_msg->databuf; msg 424 net/sunrpc/auth_gss/auth_gss.c gss_msg->msg.len = sizeof(uid); msg 430 net/sunrpc/auth_gss/auth_gss.c gss_v0_upcall(struct file *file, struct rpc_pipe_msg *msg, msg 433 net/sunrpc/auth_gss/auth_gss.c struct gss_upcall_msg *gss_msg = container_of(msg, msg 435 net/sunrpc/auth_gss/auth_gss.c msg); msg 436 net/sunrpc/auth_gss/auth_gss.c if (msg->copied == 0) msg 438 net/sunrpc/auth_gss/auth_gss.c return rpc_pipe_generic_upcall(file, msg, buf, buflen); msg 456 net/sunrpc/auth_gss/auth_gss.c gss_msg->msg.len = len; msg 466 net/sunrpc/auth_gss/auth_gss.c gss_msg->msg.len += len; msg 492 net/sunrpc/auth_gss/auth_gss.c gss_msg->msg.len += len; msg 500 net/sunrpc/auth_gss/auth_gss.c gss_msg->msg.len += len; msg 506 net/sunrpc/auth_gss/auth_gss.c gss_msg->msg.len += len; msg 507 net/sunrpc/auth_gss/auth_gss.c gss_msg->msg.data = gss_msg->databuf; msg 515 net/sunrpc/auth_gss/auth_gss.c gss_v1_upcall(struct file *file, struct rpc_pipe_msg *msg, msg 518 net/sunrpc/auth_gss/auth_gss.c struct gss_upcall_msg *gss_msg = container_of(msg, msg 520 net/sunrpc/auth_gss/auth_gss.c msg); msg 522 net/sunrpc/auth_gss/auth_gss.c if (msg->copied == 0) { msg 530 net/sunrpc/auth_gss/auth_gss.c return rpc_pipe_generic_upcall(file, msg, buf, buflen); msg 587 net/sunrpc/auth_gss/auth_gss.c res = rpc_queue_upcall(gss_new->pipe, &gss_new->msg); msg 634 net/sunrpc/auth_gss/auth_gss.c else if (gss_msg->ctx == NULL && gss_msg->msg.errno >= 0) { msg 641 net/sunrpc/auth_gss/auth_gss.c err = gss_msg->msg.errno; msg 690 net/sunrpc/auth_gss/auth_gss.c if (gss_msg->ctx != NULL || gss_msg->msg.errno < 0) { msg 703 net/sunrpc/auth_gss/auth_gss.c err = gss_msg->msg.errno; msg 774 net/sunrpc/auth_gss/auth_gss.c gss_msg->msg.errno = err; msg 781 net/sunrpc/auth_gss/auth_gss.c gss_msg->msg.errno = -EAGAIN; msg 786 net/sunrpc/auth_gss/auth_gss.c gss_msg->msg.errno = -EIO; msg 851 net/sunrpc/auth_gss/auth_gss.c if (!list_empty(&gss_msg->msg.list)) msg 853 net/sunrpc/auth_gss/auth_gss.c gss_msg->msg.errno = -EPIPE; msg 866 net/sunrpc/auth_gss/auth_gss.c gss_pipe_destroy_msg(struct rpc_pipe_msg *msg) msg 868 net/sunrpc/auth_gss/auth_gss.c struct gss_upcall_msg *gss_msg = container_of(msg, struct gss_upcall_msg, msg); msg 870 net/sunrpc/auth_gss/auth_gss.c if (msg->errno < 0) { msg 873 net/sunrpc/auth_gss/auth_gss.c if (msg->errno == -ETIMEDOUT) msg 168 net/sunrpc/auth_gss/gss_rpc_upcall.c static int gssp_call(struct net *net, struct rpc_message *msg) msg 177 net/sunrpc/auth_gss/gss_rpc_upcall.c status = rpc_call_sync(clnt, msg, 0); msg 288 net/sunrpc/auth_gss/gss_rpc_upcall.c struct rpc_message msg = { msg 306 net/sunrpc/auth_gss/gss_rpc_upcall.c ret = gssp_call(net, &msg); msg 1093 net/sunrpc/clnt.c rpc_task_set_rpc_message(struct rpc_task *task, const struct rpc_message *msg) msg 1095 net/sunrpc/clnt.c if (msg != NULL) { msg 1096 net/sunrpc/clnt.c task->tk_msg.rpc_proc = msg->rpc_proc; msg 1097 net/sunrpc/clnt.c task->tk_msg.rpc_argp = msg->rpc_argp; msg 1098 net/sunrpc/clnt.c task->tk_msg.rpc_resp = msg->rpc_resp; msg 1099 net/sunrpc/clnt.c if (msg->rpc_cred != NULL) msg 1100 net/sunrpc/clnt.c task->tk_msg.rpc_cred = get_cred(msg->rpc_cred); msg 1144 net/sunrpc/clnt.c int rpc_call_sync(struct rpc_clnt *clnt, const struct rpc_message *msg, int flags) msg 1149 net/sunrpc/clnt.c .rpc_message = msg, msg 1180 net/sunrpc/clnt.c rpc_call_async(struct rpc_clnt *clnt, const struct rpc_message *msg, int flags, msg 1186 net/sunrpc/clnt.c .rpc_message = msg, msg 2727 net/sunrpc/clnt.c struct rpc_message msg = { msg 2731 net/sunrpc/clnt.c err = rpc_call_sync(clnt, &msg, RPC_TASK_SOFT | RPC_TASK_SOFTCONN | msg 2741 net/sunrpc/clnt.c struct rpc_message msg = { msg 2747 net/sunrpc/clnt.c .rpc_message = &msg, msg 67 net/sunrpc/rpc_pipe.c struct rpc_pipe_msg *msg; msg 72 net/sunrpc/rpc_pipe.c msg = list_entry(head->next, struct rpc_pipe_msg, list); msg 73 net/sunrpc/rpc_pipe.c list_del_init(&msg->list); msg 74 net/sunrpc/rpc_pipe.c msg->errno = err; msg 75 net/sunrpc/rpc_pipe.c destroy_msg(msg); msg 104 net/sunrpc/rpc_pipe.c ssize_t rpc_pipe_generic_upcall(struct file *filp, struct rpc_pipe_msg *msg, msg 107 net/sunrpc/rpc_pipe.c char *data = (char *)msg->data + msg->copied; msg 108 net/sunrpc/rpc_pipe.c size_t mlen = min(msg->len - msg->copied, buflen); msg 113 net/sunrpc/rpc_pipe.c msg->errno = -EFAULT; msg 118 net/sunrpc/rpc_pipe.c msg->copied += mlen; msg 119 net/sunrpc/rpc_pipe.c msg->errno = 0; msg 135 net/sunrpc/rpc_pipe.c rpc_queue_upcall(struct rpc_pipe *pipe, struct rpc_pipe_msg *msg) msg 142 net/sunrpc/rpc_pipe.c list_add_tail(&msg->list, &pipe->pipe); msg 143 net/sunrpc/rpc_pipe.c pipe->pipelen += msg->len; msg 150 net/sunrpc/rpc_pipe.c list_add_tail(&msg->list, &pipe->pipe); msg 151 net/sunrpc/rpc_pipe.c pipe->pipelen += msg->len; msg 243 net/sunrpc/rpc_pipe.c struct rpc_pipe_msg *msg; msg 250 net/sunrpc/rpc_pipe.c msg = filp->private_data; msg 251 net/sunrpc/rpc_pipe.c if (msg != NULL) { msg 253 net/sunrpc/rpc_pipe.c msg->errno = -EAGAIN; msg 254 net/sunrpc/rpc_pipe.c list_del_init(&msg->list); msg 256 net/sunrpc/rpc_pipe.c pipe->ops->destroy_msg(msg); msg 285 net/sunrpc/rpc_pipe.c struct rpc_pipe_msg *msg; msg 294 net/sunrpc/rpc_pipe.c msg = filp->private_data; msg 295 net/sunrpc/rpc_pipe.c if (msg == NULL) { msg 298 net/sunrpc/rpc_pipe.c msg = list_entry(pipe->pipe.next, msg 301 net/sunrpc/rpc_pipe.c list_move(&msg->list, &pipe->in_upcall); msg 302 net/sunrpc/rpc_pipe.c pipe->pipelen -= msg->len; msg 303 net/sunrpc/rpc_pipe.c filp->private_data = msg; msg 304 net/sunrpc/rpc_pipe.c msg->copied = 0; msg 307 net/sunrpc/rpc_pipe.c if (msg == NULL) msg 311 net/sunrpc/rpc_pipe.c res = pipe->ops->upcall(filp, msg, buf, len); msg 312 net/sunrpc/rpc_pipe.c if (res < 0 || msg->len == msg->copied) { msg 315 net/sunrpc/rpc_pipe.c list_del_init(&msg->list); msg 317 net/sunrpc/rpc_pipe.c pipe->ops->destroy_msg(msg); msg 374 net/sunrpc/rpc_pipe.c struct rpc_pipe_msg *msg; msg 375 net/sunrpc/rpc_pipe.c msg = filp->private_data; msg 376 net/sunrpc/rpc_pipe.c len += msg->len - msg->copied; msg 396 net/sunrpc/rpcb_clnt.c static int rpcb_register_call(struct sunrpc_net *sn, struct rpc_clnt *clnt, struct rpc_message *msg, bool is_set) msg 403 net/sunrpc/rpcb_clnt.c msg->rpc_resp = &result; msg 405 net/sunrpc/rpcb_clnt.c error = rpc_call_sync(clnt, msg, flags); msg 458 net/sunrpc/rpcb_clnt.c struct rpc_message msg = { msg 468 net/sunrpc/rpcb_clnt.c msg.rpc_proc = &rpcb_procedures2[RPCBPROC_UNSET]; msg 470 net/sunrpc/rpcb_clnt.c msg.rpc_proc = &rpcb_procedures2[RPCBPROC_SET]; msg 474 net/sunrpc/rpcb_clnt.c return rpcb_register_call(sn, sn->rpcb_local_clnt, &msg, is_set); msg 482 net/sunrpc/rpcb_clnt.c struct rpc_message *msg) msg 485 net/sunrpc/rpcb_clnt.c struct rpcbind_args *map = msg->rpc_argp; msg 497 net/sunrpc/rpcb_clnt.c msg->rpc_proc = &rpcb_procedures4[RPCBPROC_UNSET]; msg 499 net/sunrpc/rpcb_clnt.c msg->rpc_proc = &rpcb_procedures4[RPCBPROC_SET]; msg 503 net/sunrpc/rpcb_clnt.c result = rpcb_register_call(sn, sn->rpcb_local_clnt4, msg, is_set); msg 513 net/sunrpc/rpcb_clnt.c struct rpc_message *msg) msg 516 net/sunrpc/rpcb_clnt.c struct rpcbind_args *map = msg->rpc_argp; msg 528 net/sunrpc/rpcb_clnt.c msg->rpc_proc = &rpcb_procedures4[RPCBPROC_UNSET]; msg 530 net/sunrpc/rpcb_clnt.c msg->rpc_proc = &rpcb_procedures4[RPCBPROC_SET]; msg 534 net/sunrpc/rpcb_clnt.c result = rpcb_register_call(sn, sn->rpcb_local_clnt4, msg, is_set); msg 540 net/sunrpc/rpcb_clnt.c struct rpc_message *msg) msg 542 net/sunrpc/rpcb_clnt.c struct rpcbind_args *map = msg->rpc_argp; msg 549 net/sunrpc/rpcb_clnt.c msg->rpc_proc = &rpcb_procedures4[RPCBPROC_UNSET]; msg 551 net/sunrpc/rpcb_clnt.c return rpcb_register_call(sn, sn->rpcb_local_clnt4, msg, false); msg 607 net/sunrpc/rpcb_clnt.c struct rpc_message msg = { msg 616 net/sunrpc/rpcb_clnt.c return rpcb_unregister_all_protofamilies(sn, &msg); msg 620 net/sunrpc/rpcb_clnt.c return rpcb_register_inet4(sn, address, &msg); msg 622 net/sunrpc/rpcb_clnt.c return rpcb_register_inet6(sn, address, &msg); msg 631 net/sunrpc/rpcb_clnt.c struct rpc_message msg = { msg 638 net/sunrpc/rpcb_clnt.c .rpc_message = &msg, msg 255 net/sunrpc/svcsock.c struct msghdr msg = { msg 265 net/sunrpc/svcsock.c if (sock_sendmsg(sock, &msg) < 0) msg 327 net/sunrpc/svcsock.c struct msghdr msg = { NULL }; msg 333 net/sunrpc/svcsock.c iov_iter_kvec(&msg.msg_iter, READ, iov, nr, buflen); msg 335 net/sunrpc/svcsock.c iov_iter_advance(&msg.msg_iter, base); msg 338 net/sunrpc/svcsock.c len = sock_recvmsg(svsk->sk_sock, &msg, MSG_DONTWAIT); msg 506 net/sunrpc/svcsock.c struct msghdr msg = { msg 528 net/sunrpc/svcsock.c err = kernel_recvmsg(svsk->sk_sock, &msg, NULL, msg 197 net/sunrpc/xprtsock.c static void xs_pktdump(char *msg, u32 *packet, unsigned int count) msg 202 net/sunrpc/xprtsock.c dprintk("RPC: %s\n", msg); msg 215 net/sunrpc/xprtsock.c static inline void xs_pktdump(char *msg, u32 *packet, unsigned int count) msg 347 net/sunrpc/xprtsock.c xs_sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags, size_t seek) msg 351 net/sunrpc/xprtsock.c iov_iter_advance(&msg->msg_iter, seek); msg 352 net/sunrpc/xprtsock.c ret = sock_recvmsg(sock, msg, flags); msg 357 net/sunrpc/xprtsock.c xs_read_kvec(struct socket *sock, struct msghdr *msg, int flags, msg 360 net/sunrpc/xprtsock.c iov_iter_kvec(&msg->msg_iter, READ, kvec, 1, count); msg 361 net/sunrpc/xprtsock.c return xs_sock_recvmsg(sock, msg, flags, seek); msg 365 net/sunrpc/xprtsock.c xs_read_bvec(struct socket *sock, struct msghdr *msg, int flags, msg 369 net/sunrpc/xprtsock.c iov_iter_bvec(&msg->msg_iter, READ, bvec, nr, count); msg 370 net/sunrpc/xprtsock.c return xs_sock_recvmsg(sock, msg, flags, seek); msg 374 net/sunrpc/xprtsock.c xs_read_discard(struct socket *sock, struct msghdr *msg, int flags, msg 377 net/sunrpc/xprtsock.c iov_iter_discard(&msg->msg_iter, READ, count); msg 378 net/sunrpc/xprtsock.c return sock_recvmsg(sock, msg, flags); msg 402 net/sunrpc/xprtsock.c xs_read_xdr_buf(struct socket *sock, struct msghdr *msg, int flags, msg 410 net/sunrpc/xprtsock.c ret = xs_read_kvec(sock, msg, flags, &buf->head[0], want, seek); msg 414 net/sunrpc/xprtsock.c if (offset == count || msg->msg_flags & (MSG_EOR|MSG_TRUNC)) msg 428 net/sunrpc/xprtsock.c ret = xs_read_bvec(sock, msg, flags, buf->bvec, msg 436 net/sunrpc/xprtsock.c if (offset == count || msg->msg_flags & (MSG_EOR|MSG_TRUNC)) msg 448 net/sunrpc/xprtsock.c ret = xs_read_kvec(sock, msg, flags, &buf->tail[0], want, seek); msg 452 net/sunrpc/xprtsock.c if (offset == count || msg->msg_flags & (MSG_EOR|MSG_TRUNC)) msg 487 net/sunrpc/xprtsock.c struct msghdr *msg) msg 490 net/sunrpc/xprtsock.c msg->msg_flags |= MSG_EOR; msg 494 net/sunrpc/xprtsock.c xs_read_stream_request(struct sock_xprt *transport, struct msghdr *msg, msg 505 net/sunrpc/xprtsock.c ret = xs_read_xdr_buf(transport->sock, msg, flags, buf, msg 514 net/sunrpc/xprtsock.c xs_read_stream_check_eor(transport, msg); msg 524 net/sunrpc/xprtsock.c msg->msg_flags |= MSG_TRUNC; msg 541 net/sunrpc/xprtsock.c xs_read_stream_header(struct sock_xprt *transport, struct msghdr *msg, msg 548 net/sunrpc/xprtsock.c return xs_read_kvec(transport->sock, msg, flags, &kvec, want, seek); msg 553 net/sunrpc/xprtsock.c xs_read_stream_call(struct sock_xprt *transport, struct msghdr *msg, int flags) msg 568 net/sunrpc/xprtsock.c ret = xs_read_stream_request(transport, msg, flags, req); msg 569 net/sunrpc/xprtsock.c if (msg->msg_flags & (MSG_EOR|MSG_TRUNC)) msg 578 net/sunrpc/xprtsock.c xs_read_stream_call(struct sock_xprt *transport, struct msghdr *msg, int flags) msg 585 net/sunrpc/xprtsock.c xs_read_stream_reply(struct sock_xprt *transport, struct msghdr *msg, int flags) msg 595 net/sunrpc/xprtsock.c msg->msg_flags |= MSG_TRUNC; msg 601 net/sunrpc/xprtsock.c ret = xs_read_stream_request(transport, msg, flags, req); msg 604 net/sunrpc/xprtsock.c if (msg->msg_flags & (MSG_EOR|MSG_TRUNC)) msg 617 net/sunrpc/xprtsock.c struct msghdr msg = { 0 }; msg 623 net/sunrpc/xprtsock.c ret = xs_read_stream_header(transport, &msg, flags, want, msg 638 net/sunrpc/xprtsock.c msg.msg_flags |= MSG_TRUNC; msg 641 net/sunrpc/xprtsock.c ret = xs_read_stream_call(transport, &msg, flags); msg 644 net/sunrpc/xprtsock.c ret = xs_read_stream_reply(transport, &msg, flags); msg 646 net/sunrpc/xprtsock.c if (msg.msg_flags & MSG_TRUNC) { msg 654 net/sunrpc/xprtsock.c if (!(msg.msg_flags & MSG_TRUNC)) msg 656 net/sunrpc/xprtsock.c msg.msg_flags = 0; msg 657 net/sunrpc/xprtsock.c ret = xs_read_discard(transport->sock, &msg, flags, msg 752 net/sunrpc/xprtsock.c static int xs_sendmsg(struct socket *sock, struct msghdr *msg, size_t seek) msg 755 net/sunrpc/xprtsock.c iov_iter_advance(&msg->msg_iter, seek); msg 756 net/sunrpc/xprtsock.c return sock_sendmsg(sock, msg); msg 759 net/sunrpc/xprtsock.c static int xs_send_kvec(struct socket *sock, struct msghdr *msg, struct kvec *vec, size_t seek) msg 761 net/sunrpc/xprtsock.c iov_iter_kvec(&msg->msg_iter, WRITE, vec, 1, vec->iov_len); msg 762 net/sunrpc/xprtsock.c return xs_sendmsg(sock, msg, seek); msg 765 net/sunrpc/xprtsock.c static int xs_send_pagedata(struct socket *sock, struct msghdr *msg, struct xdr_buf *xdr, size_t base) msg 773 net/sunrpc/xprtsock.c iov_iter_bvec(&msg->msg_iter, WRITE, xdr->bvec, msg 776 net/sunrpc/xprtsock.c return xs_sendmsg(sock, msg, base + xdr->page_base); msg 786 net/sunrpc/xprtsock.c static int xs_send_rm_and_kvec(struct socket *sock, struct msghdr *msg, msg 798 net/sunrpc/xprtsock.c iov_iter_kvec(&msg->msg_iter, WRITE, iov, 2, len); msg 799 net/sunrpc/xprtsock.c return xs_sendmsg(sock, msg, base); msg 815 net/sunrpc/xprtsock.c struct msghdr msg = { msg 833 net/sunrpc/xprtsock.c msg.msg_flags &= ~MSG_MORE; msg 835 net/sunrpc/xprtsock.c err = xs_send_rm_and_kvec(sock, &msg, rm, msg 838 net/sunrpc/xprtsock.c err = xs_send_kvec(sock, &msg, &xdr->head[0], base); msg 850 net/sunrpc/xprtsock.c msg.msg_flags &= ~MSG_MORE; msg 851 net/sunrpc/xprtsock.c err = xs_send_pagedata(sock, &msg, xdr, base); msg 861 net/sunrpc/xprtsock.c msg.msg_flags &= ~MSG_MORE; msg 862 net/sunrpc/xprtsock.c err = xs_send_kvec(sock, &msg, &xdr->tail[0], base); msg 2652 net/sunrpc/xprtsock.c struct msghdr msg = { msg 2664 net/sunrpc/xprtsock.c len = kernel_sendmsg(transport->sock, &msg, &iov, 1, iov.iov_len); msg 97 net/tipc/bcast.h int tipc_nl_add_bc_link(struct net *net, struct tipc_nl_msg *msg); msg 742 net/tipc/bearer.c static int __tipc_nl_add_bearer(struct tipc_nl_msg *msg, msg 749 net/tipc/bearer.c hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family, msg 754 net/tipc/bearer.c attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_BEARER); msg 758 net/tipc/bearer.c if (nla_put_string(msg->skb, TIPC_NLA_BEARER_NAME, bearer->name)) msg 761 net/tipc/bearer.c prop = nla_nest_start_noflag(msg->skb, TIPC_NLA_BEARER_PROP); msg 764 net/tipc/bearer.c if (nla_put_u32(msg->skb, TIPC_NLA_PROP_PRIO, bearer->priority)) msg 766 net/tipc/bearer.c if (nla_put_u32(msg->skb, TIPC_NLA_PROP_TOL, bearer->tolerance)) msg 768 net/tipc/bearer.c if (nla_put_u32(msg->skb, TIPC_NLA_PROP_WIN, bearer->window)) msg 771 net/tipc/bearer.c if (nla_put_u32(msg->skb, TIPC_NLA_PROP_MTU, bearer->mtu)) msg 774 net/tipc/bearer.c nla_nest_end(msg->skb, prop); msg 778 net/tipc/bearer.c if (tipc_udp_nl_add_bearer_data(msg, bearer)) msg 783 net/tipc/bearer.c nla_nest_end(msg->skb, attrs); msg 784 net/tipc/bearer.c genlmsg_end(msg->skb, hdr); msg 789 net/tipc/bearer.c nla_nest_cancel(msg->skb, prop); msg 791 net/tipc/bearer.c nla_nest_cancel(msg->skb, attrs); msg 793 net/tipc/bearer.c genlmsg_cancel(msg->skb, hdr); msg 803 net/tipc/bearer.c struct tipc_nl_msg msg; msg 810 net/tipc/bearer.c msg.skb = skb; msg 811 net/tipc/bearer.c msg.portid = NETLINK_CB(cb->skb).portid; msg 812 net/tipc/bearer.c msg.seq = cb->nlh->nlmsg_seq; msg 820 net/tipc/bearer.c err = __tipc_nl_add_bearer(&msg, bearer, NLM_F_MULTI); msg 836 net/tipc/bearer.c struct tipc_nl_msg msg; msg 857 net/tipc/bearer.c msg.skb = rep; msg 858 net/tipc/bearer.c msg.portid = info->snd_portid; msg 859 net/tipc/bearer.c msg.seq = info->snd_seq; msg 868 net/tipc/bearer.c err = __tipc_nl_add_bearer(&msg, bearer, 0); msg 1088 net/tipc/bearer.c static int __tipc_nl_add_media(struct tipc_nl_msg *msg, msg 1095 net/tipc/bearer.c hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family, msg 1100 net/tipc/bearer.c attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_MEDIA); msg 1104 net/tipc/bearer.c if (nla_put_string(msg->skb, TIPC_NLA_MEDIA_NAME, media->name)) msg 1107 net/tipc/bearer.c prop = nla_nest_start_noflag(msg->skb, TIPC_NLA_MEDIA_PROP); msg 1110 net/tipc/bearer.c if (nla_put_u32(msg->skb, TIPC_NLA_PROP_PRIO, media->priority)) msg 1112 net/tipc/bearer.c if (nla_put_u32(msg->skb, TIPC_NLA_PROP_TOL, media->tolerance)) msg 1114 net/tipc/bearer.c if (nla_put_u32(msg->skb, TIPC_NLA_PROP_WIN, media->window)) msg 1117 net/tipc/bearer.c if (nla_put_u32(msg->skb, TIPC_NLA_PROP_MTU, media->mtu)) msg 1120 net/tipc/bearer.c nla_nest_end(msg->skb, prop); msg 1121 net/tipc/bearer.c nla_nest_end(msg->skb, attrs); msg 1122 net/tipc/bearer.c genlmsg_end(msg->skb, hdr); msg 1127 net/tipc/bearer.c nla_nest_cancel(msg->skb, prop); msg 1129 net/tipc/bearer.c nla_nest_cancel(msg->skb, attrs); msg 1131 net/tipc/bearer.c genlmsg_cancel(msg->skb, hdr); msg 1140 net/tipc/bearer.c struct tipc_nl_msg msg; msg 1145 net/tipc/bearer.c msg.skb = skb; msg 1146 net/tipc/bearer.c msg.portid = NETLINK_CB(cb->skb).portid; msg 1147 net/tipc/bearer.c msg.seq = cb->nlh->nlmsg_seq; msg 1151 net/tipc/bearer.c err = __tipc_nl_add_media(&msg, media_info_array[i], msg 1166 net/tipc/bearer.c struct tipc_nl_msg msg; msg 1188 net/tipc/bearer.c msg.skb = rep; msg 1189 net/tipc/bearer.c msg.portid = info->snd_portid; msg 1190 net/tipc/bearer.c msg.seq = info->snd_seq; msg 1199 net/tipc/bearer.c err = __tipc_nl_add_media(&msg, media, 0); msg 113 net/tipc/bearer.h int (*addr2msg)(char *msg, struct tipc_media_addr *addr); msg 116 net/tipc/bearer.h char *msg); msg 52 net/tipc/eth_media.c static int tipc_eth_addr2msg(char *msg, struct tipc_media_addr *addr) msg 54 net/tipc/eth_media.c memset(msg, 0, TIPC_MEDIA_INFO_SIZE); msg 55 net/tipc/eth_media.c msg[TIPC_MEDIA_TYPE_OFFSET] = TIPC_MEDIA_TYPE_ETH; msg 56 net/tipc/eth_media.c memcpy(msg + TIPC_MEDIA_ADDR_OFFSET, addr->value, ETH_ALEN); msg 63 net/tipc/eth_media.c char *msg) msg 68 net/tipc/eth_media.c ether_addr_copy(addr->value, msg); msg 77 net/tipc/eth_media.c char *msg) msg 80 net/tipc/eth_media.c msg += TIPC_MEDIA_ADDR_OFFSET; msg 81 net/tipc/eth_media.c return tipc_eth_raw2addr(b, addr, msg); msg 58 net/tipc/ib_media.c static int tipc_ib_addr2msg(char *msg, struct tipc_media_addr *addr) msg 60 net/tipc/ib_media.c memset(msg, 0, TIPC_MEDIA_INFO_SIZE); msg 61 net/tipc/ib_media.c memcpy(msg, addr->value, INFINIBAND_ALEN); msg 68 net/tipc/ib_media.c char *msg) msg 71 net/tipc/ib_media.c memcpy(addr->value, msg, INFINIBAND_ALEN); msg 73 net/tipc/ib_media.c addr->broadcast = !memcmp(msg, b->bcast_addr.value, msg 81 net/tipc/ib_media.c char *msg) msg 83 net/tipc/ib_media.c return tipc_ib_raw2addr(b, addr, msg); msg 717 net/tipc/link.c struct tipc_msg *msg; msg 727 net/tipc/link.c msg = buf_msg(skb); msg 728 net/tipc/link.c length = msg_size(msg); msg 730 net/tipc/link.c if (msg_user(msg) == MSG_FRAGMENTER) { msg 731 net/tipc/link.c if (msg_type(msg) != FIRST_FRAGMENT) msg 733 net/tipc/link.c length = msg_size(msg_inner_hdr(msg)); msg 2434 net/tipc/link.c int __tipc_nl_add_link(struct net *net, struct tipc_nl_msg *msg, msg 2443 net/tipc/link.c hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family, msg 2448 net/tipc/link.c attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_LINK); msg 2452 net/tipc/link.c if (nla_put_string(msg->skb, TIPC_NLA_LINK_NAME, link->name)) msg 2454 net/tipc/link.c if (nla_put_u32(msg->skb, TIPC_NLA_LINK_DEST, tipc_cluster_mask(self))) msg 2456 net/tipc/link.c if (nla_put_u32(msg->skb, TIPC_NLA_LINK_MTU, link->mtu)) msg 2458 net/tipc/link.c if (nla_put_u32(msg->skb, TIPC_NLA_LINK_RX, link->stats.recv_pkts)) msg 2460 net/tipc/link.c if (nla_put_u32(msg->skb, TIPC_NLA_LINK_TX, link->stats.sent_pkts)) msg 2464 net/tipc/link.c if (nla_put_flag(msg->skb, TIPC_NLA_LINK_UP)) msg 2467 net/tipc/link.c if (nla_put_flag(msg->skb, TIPC_NLA_LINK_ACTIVE)) msg 2470 net/tipc/link.c prop = nla_nest_start_noflag(msg->skb, TIPC_NLA_LINK_PROP); msg 2473 net/tipc/link.c if (nla_put_u32(msg->skb, TIPC_NLA_PROP_PRIO, link->priority)) msg 2475 net/tipc/link.c if (nla_put_u32(msg->skb, TIPC_NLA_PROP_TOL, link->tolerance)) msg 2477 net/tipc/link.c if (nla_put_u32(msg->skb, TIPC_NLA_PROP_WIN, msg 2480 net/tipc/link.c if (nla_put_u32(msg->skb, TIPC_NLA_PROP_PRIO, link->priority)) msg 2482 net/tipc/link.c nla_nest_end(msg->skb, prop); msg 2484 net/tipc/link.c err = __tipc_nl_add_stats(msg->skb, &link->stats); msg 2488 net/tipc/link.c nla_nest_end(msg->skb, attrs); msg 2489 net/tipc/link.c genlmsg_end(msg->skb, hdr); msg 2494 net/tipc/link.c nla_nest_cancel(msg->skb, prop); msg 2496 net/tipc/link.c nla_nest_cancel(msg->skb, attrs); msg 2498 net/tipc/link.c genlmsg_cancel(msg->skb, hdr); msg 2554 net/tipc/link.c int tipc_nl_add_bc_link(struct net *net, struct tipc_nl_msg *msg) msg 2570 net/tipc/link.c hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family, msg 2577 net/tipc/link.c attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_LINK); msg 2582 net/tipc/link.c if (nla_put_flag(msg->skb, TIPC_NLA_LINK_UP)) msg 2585 net/tipc/link.c if (nla_put_flag(msg->skb, TIPC_NLA_LINK_BROADCAST)) msg 2587 net/tipc/link.c if (nla_put_string(msg->skb, TIPC_NLA_LINK_NAME, bcl->name)) msg 2589 net/tipc/link.c if (nla_put_u32(msg->skb, TIPC_NLA_LINK_RX, 0)) msg 2591 net/tipc/link.c if (nla_put_u32(msg->skb, TIPC_NLA_LINK_TX, 0)) msg 2594 net/tipc/link.c prop = nla_nest_start_noflag(msg->skb, TIPC_NLA_LINK_PROP); msg 2597 net/tipc/link.c if (nla_put_u32(msg->skb, TIPC_NLA_PROP_WIN, bcl->window)) msg 2599 net/tipc/link.c if (nla_put_u32(msg->skb, TIPC_NLA_PROP_BROADCAST, bc_mode)) msg 2602 net/tipc/link.c if (nla_put_u32(msg->skb, TIPC_NLA_PROP_BROADCAST_RATIO, msg 2605 net/tipc/link.c nla_nest_end(msg->skb, prop); msg 2607 net/tipc/link.c err = __tipc_nl_add_bc_link_stat(msg->skb, &bcl->stats); msg 2612 net/tipc/link.c nla_nest_end(msg->skb, attrs); msg 2613 net/tipc/link.c genlmsg_end(msg->skb, hdr); msg 2618 net/tipc/link.c nla_nest_cancel(msg->skb, prop); msg 2620 net/tipc/link.c nla_nest_cancel(msg->skb, attrs); msg 2623 net/tipc/link.c genlmsg_cancel(msg->skb, hdr); msg 128 net/tipc/link.h int __tipc_nl_add_link(struct net *net, struct tipc_nl_msg *msg, msg 703 net/tipc/monitor.c struct tipc_nl_msg *msg) msg 709 net/tipc/monitor.c hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family, msg 714 net/tipc/monitor.c attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_MON_PEER); msg 718 net/tipc/monitor.c if (nla_put_u32(msg->skb, TIPC_NLA_MON_PEER_ADDR, peer->addr)) msg 720 net/tipc/monitor.c if (nla_put_u32(msg->skb, TIPC_NLA_MON_PEER_APPLIED, peer->applied)) msg 724 net/tipc/monitor.c if (nla_put_flag(msg->skb, TIPC_NLA_MON_PEER_UP)) msg 727 net/tipc/monitor.c if (nla_put_flag(msg->skb, TIPC_NLA_MON_PEER_LOCAL)) msg 730 net/tipc/monitor.c if (nla_put_flag(msg->skb, TIPC_NLA_MON_PEER_HEAD)) msg 734 net/tipc/monitor.c if (nla_put_u32(msg->skb, TIPC_NLA_MON_PEER_DOMGEN, dom->gen)) msg 736 net/tipc/monitor.c if (nla_put_u64_64bit(msg->skb, TIPC_NLA_MON_PEER_UPMAP, msg 739 net/tipc/monitor.c if (nla_put(msg->skb, TIPC_NLA_MON_PEER_MEMBERS, msg 744 net/tipc/monitor.c nla_nest_end(msg->skb, attrs); msg 745 net/tipc/monitor.c genlmsg_end(msg->skb, hdr); msg 749 net/tipc/monitor.c nla_nest_cancel(msg->skb, attrs); msg 751 net/tipc/monitor.c genlmsg_cancel(msg->skb, hdr); msg 756 net/tipc/monitor.c int tipc_nl_add_monitor_peer(struct net *net, struct tipc_nl_msg *msg, msg 774 net/tipc/monitor.c if (__tipc_nl_add_monitor_peer(peer, msg)) { msg 785 net/tipc/monitor.c int __tipc_nl_add_monitor(struct net *net, struct tipc_nl_msg *msg, msg 798 net/tipc/monitor.c hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family, msg 803 net/tipc/monitor.c attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_MON); msg 808 net/tipc/monitor.c if (nla_put_u32(msg->skb, TIPC_NLA_MON_REF, bearer_id)) msg 811 net/tipc/monitor.c if (nla_put_flag(msg->skb, TIPC_NLA_MON_ACTIVE)) msg 813 net/tipc/monitor.c if (nla_put_string(msg->skb, TIPC_NLA_MON_BEARER_NAME, bearer_name)) msg 815 net/tipc/monitor.c if (nla_put_u32(msg->skb, TIPC_NLA_MON_PEERCNT, mon->peer_cnt)) msg 817 net/tipc/monitor.c if (nla_put_u32(msg->skb, TIPC_NLA_MON_LISTGEN, mon->list_gen)) msg 821 net/tipc/monitor.c nla_nest_end(msg->skb, attrs); msg 822 net/tipc/monitor.c genlmsg_end(msg->skb, hdr); msg 828 net/tipc/monitor.c nla_nest_cancel(msg->skb, attrs); msg 830 net/tipc/monitor.c genlmsg_cancel(msg->skb, hdr); msg 76 net/tipc/monitor.h int __tipc_nl_add_monitor(struct net *net, struct tipc_nl_msg *msg, msg 78 net/tipc/monitor.h int tipc_nl_add_monitor_peer(struct net *net, struct tipc_nl_msg *msg, msg 95 net/tipc/msg.c struct tipc_msg *msg; msg 102 net/tipc/msg.c msg = buf_msg(buf); msg 103 net/tipc/msg.c tipc_msg_init(onode, msg, user, type, hdr_sz, dnode); msg 104 net/tipc/msg.c msg_set_size(msg, hdr_sz + data_sz); msg 105 net/tipc/msg.c msg_set_origport(msg, oport); msg 106 net/tipc/msg.c msg_set_destport(msg, dport); msg 107 net/tipc/msg.c msg_set_errcode(msg, errcode); msg 109 net/tipc/msg.c msg_set_orignode(msg, onode); msg 110 net/tipc/msg.c msg_set_destnode(msg, dnode); msg 127 net/tipc/msg.c struct tipc_msg *msg; msg 135 net/tipc/msg.c msg = buf_msg(frag); msg 136 net/tipc/msg.c fragid = msg_type(msg); msg 138 net/tipc/msg.c skb_pull(frag, msg_hdr_sz(msg)); msg 429 net/tipc/msg.c bool tipc_msg_bundle(struct sk_buff *skb, struct tipc_msg *msg, u32 mtu) msg 433 net/tipc/msg.c unsigned int msz = msg_size(msg); msg 437 net/tipc/msg.c if (likely(msg_user(msg) == MSG_FRAGMENTER)) msg 446 net/tipc/msg.c if (unlikely(msg_user(msg) == TUNNEL_PROTOCOL)) msg 448 net/tipc/msg.c if (unlikely(msg_user(msg) == BCAST_PROTOCOL)) msg 456 net/tipc/msg.c if ((msg_importance(msg) < TIPC_SYSTEM_IMPORTANCE) && msg 461 net/tipc/msg.c skb_copy_to_linear_data_offset(skb, start, msg, msz); msg 521 net/tipc/msg.c bool tipc_msg_make_bundle(struct sk_buff **skb, struct tipc_msg *msg, msg 526 net/tipc/msg.c u32 msz = msg_size(msg); msg 529 net/tipc/msg.c if (msg_user(msg) == MSG_FRAGMENTER) msg 531 net/tipc/msg.c if (msg_user(msg) == TUNNEL_PROTOCOL) msg 533 net/tipc/msg.c if (msg_user(msg) == BCAST_PROTOCOL) msg 544 net/tipc/msg.c tipc_msg_init(msg_prevnode(msg), bmsg, MSG_BUNDLER, 0, msg 546 net/tipc/msg.c msg_set_importance(bmsg, msg_importance(msg)); msg 547 net/tipc/msg.c msg_set_seqno(bmsg, msg_seqno(msg)); msg 548 net/tipc/msg.c msg_set_ack(bmsg, msg_ack(msg)); msg 549 net/tipc/msg.c msg_set_bcast_ack(bmsg, msg_bcast_ack(msg)); msg 550 net/tipc/msg.c tipc_msg_bundle(_skb, msg, mtu); msg 615 net/tipc/msg.c bool tipc_msg_skb_clone(struct sk_buff_head *msg, struct sk_buff_head *cpy) msg 619 net/tipc/msg.c skb_queue_walk(msg, skb) { msg 640 net/tipc/msg.c struct tipc_msg *msg = buf_msg(skb); msg 644 net/tipc/msg.c if (!msg_isdata(msg)) msg 646 net/tipc/msg.c if (!msg_named(msg)) msg 648 net/tipc/msg.c if (msg_errcode(msg)) msg 653 net/tipc/msg.c msg = buf_msg(skb); msg 654 net/tipc/msg.c if (msg_reroute_cnt(msg)) msg 656 net/tipc/msg.c dnode = tipc_scope2node(net, msg_lookup_scope(msg)); msg 657 net/tipc/msg.c dport = tipc_nametbl_translate(net, msg_nametype(msg), msg 658 net/tipc/msg.c msg_nameinst(msg), &dnode); msg 661 net/tipc/msg.c msg_incr_reroute_cnt(msg); msg 663 net/tipc/msg.c msg_set_prevnode(msg, onode); msg 664 net/tipc/msg.c msg_set_destnode(msg, dnode); msg 665 net/tipc/msg.c msg_set_destport(msg, dport); msg 738 net/tipc/msg.c bool tipc_msg_pskb_copy(u32 dst, struct sk_buff_head *msg, msg 743 net/tipc/msg.c skb_queue_walk(msg, skb) { msg 182 net/tipc/msg.h static inline void msg_swap_words(struct tipc_msg *msg, u32 a, u32 b) msg 184 net/tipc/msg.h u32 temp = msg->hdr[a]; msg 186 net/tipc/msg.h msg->hdr[a] = msg->hdr[b]; msg 187 net/tipc/msg.h msg->hdr[b] = temp; msg 1060 net/tipc/msg.h bool tipc_msg_bundle(struct sk_buff *skb, struct tipc_msg *msg, u32 mtu); msg 1061 net/tipc/msg.h bool tipc_msg_make_bundle(struct sk_buff **skb, struct tipc_msg *msg, msg 1071 net/tipc/msg.h bool tipc_msg_pskb_copy(u32 dst, struct sk_buff_head *msg, msg 1075 net/tipc/msg.h bool tipc_msg_skb_clone(struct sk_buff_head *msg, struct sk_buff_head *cpy); msg 73 net/tipc/name_distr.c struct tipc_msg *msg; msg 76 net/tipc/name_distr.c msg = buf_msg(buf); msg 77 net/tipc/name_distr.c tipc_msg_init(self, msg, NAME_DISTRIBUTOR, msg 79 net/tipc/name_distr.c msg_set_size(msg, INT_H_SIZE + size); msg 304 net/tipc/name_distr.c struct tipc_msg *msg; msg 314 net/tipc/name_distr.c msg = buf_msg(skb); msg 315 net/tipc/name_distr.c mtype = msg_type(msg); msg 316 net/tipc/name_distr.c item = (struct distr_item *)msg_data(msg); msg 317 net/tipc/name_distr.c count = msg_data_sz(msg) / ITEM_SIZE; msg 318 net/tipc/name_distr.c node = msg_orignode(msg); msg 801 net/tipc/name_table.c static int __tipc_nl_add_nametable_publ(struct tipc_nl_msg *msg, msg 826 net/tipc/name_table.c hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, msg 832 net/tipc/name_table.c attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_NAME_TABLE); msg 836 net/tipc/name_table.c b = nla_nest_start_noflag(msg->skb, TIPC_NLA_NAME_TABLE_PUBL); msg 840 net/tipc/name_table.c if (nla_put_u32(msg->skb, TIPC_NLA_PUBL_TYPE, service->type)) msg 842 net/tipc/name_table.c if (nla_put_u32(msg->skb, TIPC_NLA_PUBL_LOWER, sr->lower)) msg 844 net/tipc/name_table.c if (nla_put_u32(msg->skb, TIPC_NLA_PUBL_UPPER, sr->upper)) msg 846 net/tipc/name_table.c if (nla_put_u32(msg->skb, TIPC_NLA_PUBL_SCOPE, p->scope)) msg 848 net/tipc/name_table.c if (nla_put_u32(msg->skb, TIPC_NLA_PUBL_NODE, p->node)) msg 850 net/tipc/name_table.c if (nla_put_u32(msg->skb, TIPC_NLA_PUBL_REF, p->port)) msg 852 net/tipc/name_table.c if (nla_put_u32(msg->skb, TIPC_NLA_PUBL_KEY, p->key)) msg 855 net/tipc/name_table.c nla_nest_end(msg->skb, b); msg 856 net/tipc/name_table.c nla_nest_end(msg->skb, attrs); msg 857 net/tipc/name_table.c genlmsg_end(msg->skb, hdr); msg 864 net/tipc/name_table.c nla_nest_cancel(msg->skb, b); msg 866 net/tipc/name_table.c nla_nest_cancel(msg->skb, attrs); msg 868 net/tipc/name_table.c genlmsg_cancel(msg->skb, hdr); msg 873 net/tipc/name_table.c static int __tipc_nl_service_range_list(struct tipc_nl_msg *msg, msg 885 net/tipc/name_table.c err = __tipc_nl_add_nametable_publ(msg, sc, sr, last_key); msg 895 net/tipc/name_table.c static int tipc_nl_service_list(struct net *net, struct tipc_nl_msg *msg, msg 926 net/tipc/name_table.c err = __tipc_nl_service_range_list(msg, service, msg 949 net/tipc/name_table.c struct tipc_nl_msg msg; msg 955 net/tipc/name_table.c msg.skb = skb; msg 956 net/tipc/name_table.c msg.portid = NETLINK_CB(cb->skb).portid; msg 957 net/tipc/name_table.c msg.seq = cb->nlh->nlmsg_seq; msg 960 net/tipc/name_table.c err = tipc_nl_service_list(net, &msg, &last_type, msg 179 net/tipc/net.c static int __tipc_nl_add_net(struct net *net, struct tipc_nl_msg *msg) msg 187 net/tipc/net.c hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family, msg 192 net/tipc/net.c attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_NET); msg 196 net/tipc/net.c if (nla_put_u32(msg->skb, TIPC_NLA_NET_ID, tn->net_id)) msg 198 net/tipc/net.c if (nla_put_u64_64bit(msg->skb, TIPC_NLA_NET_NODEID, *w0, 0)) msg 200 net/tipc/net.c if (nla_put_u64_64bit(msg->skb, TIPC_NLA_NET_NODEID_W1, *w1, 0)) msg 202 net/tipc/net.c nla_nest_end(msg->skb, attrs); msg 203 net/tipc/net.c genlmsg_end(msg->skb, hdr); msg 208 net/tipc/net.c nla_nest_cancel(msg->skb, attrs); msg 210 net/tipc/net.c genlmsg_cancel(msg->skb, hdr); msg 220 net/tipc/net.c struct tipc_nl_msg msg; msg 225 net/tipc/net.c msg.skb = skb; msg 226 net/tipc/net.c msg.portid = NETLINK_CB(cb->skb).portid; msg 227 net/tipc/net.c msg.seq = cb->nlh->nlmsg_seq; msg 229 net/tipc/net.c err = __tipc_nl_add_net(net, &msg); msg 68 net/tipc/netlink_compat.c int (*format)(struct tipc_nl_compat_msg *msg, struct nlattr **attrs); msg 74 net/tipc/netlink_compat.c struct sk_buff *skb, struct tipc_nl_compat_msg *msg); msg 181 net/tipc/netlink_compat.c struct tipc_nl_compat_msg *msg, msg 198 net/tipc/netlink_compat.c buf->sk = msg->dst_sk; msg 199 net/tipc/netlink_compat.c if (__tipc_dump_start(&cb, msg->net)) { msg 216 net/tipc/netlink_compat.c err = (*cmd->format)(msg, attrs); msg 220 net/tipc/netlink_compat.c if (tipc_skb_tailroom(msg->rep) <= 1) { msg 241 net/tipc/netlink_compat.c if ((TIPC_SKB_MAX - msg->rep->len) <= 1) { msg 242 net/tipc/netlink_compat.c char *tail = skb_tail_pointer(msg->rep); msg 256 net/tipc/netlink_compat.c struct tipc_nl_compat_msg *msg) msg 261 net/tipc/netlink_compat.c if (msg->req_type && (!msg->req_size || msg 262 net/tipc/netlink_compat.c !TLV_CHECK_TYPE(msg->req, msg->req_type))) msg 265 net/tipc/netlink_compat.c msg->rep = tipc_tlv_alloc(msg->rep_size); msg 266 net/tipc/netlink_compat.c if (!msg->rep) msg 269 net/tipc/netlink_compat.c if (msg->rep_type) msg 270 net/tipc/netlink_compat.c tipc_tlv_init(msg->rep, msg->rep_type); msg 273 net/tipc/netlink_compat.c err = (*cmd->header)(msg); msg 275 net/tipc/netlink_compat.c kfree_skb(msg->rep); msg 276 net/tipc/netlink_compat.c msg->rep = NULL; msg 283 net/tipc/netlink_compat.c kfree_skb(msg->rep); msg 284 net/tipc/netlink_compat.c msg->rep = NULL; msg 288 net/tipc/netlink_compat.c err = __tipc_nl_compat_dumpit(cmd, msg, arg); msg 290 net/tipc/netlink_compat.c kfree_skb(msg->rep); msg 291 net/tipc/netlink_compat.c msg->rep = NULL; msg 299 net/tipc/netlink_compat.c struct tipc_nl_compat_msg *msg) msg 329 net/tipc/netlink_compat.c err = (*cmd->transcode)(cmd, trans_buf, msg); msg 339 net/tipc/netlink_compat.c doit_buf->sk = msg->dst_sk; msg 355 net/tipc/netlink_compat.c struct tipc_nl_compat_msg *msg) msg 359 net/tipc/netlink_compat.c if (msg->req_type && (!msg->req_size || msg 360 net/tipc/netlink_compat.c !TLV_CHECK_TYPE(msg->req, msg->req_type))) msg 363 net/tipc/netlink_compat.c err = __tipc_nl_compat_doit(cmd, msg); msg 368 net/tipc/netlink_compat.c msg->rep = tipc_tlv_alloc(0); msg 369 net/tipc/netlink_compat.c if (!msg->rep) msg 375 net/tipc/netlink_compat.c static int tipc_nl_compat_bearer_dump(struct tipc_nl_compat_msg *msg, msg 389 net/tipc/netlink_compat.c return tipc_add_tlv(msg->rep, TIPC_TLV_BEARER_NAME, msg 396 net/tipc/netlink_compat.c struct tipc_nl_compat_msg *msg) msg 403 net/tipc/netlink_compat.c b = (struct tipc_bearer_config *)TLV_DATA(msg->req); msg 409 net/tipc/netlink_compat.c len = TLV_GET_DATA_LEN(msg->req); msg 439 net/tipc/netlink_compat.c struct tipc_nl_compat_msg *msg) msg 445 net/tipc/netlink_compat.c name = (char *)TLV_DATA(msg->req); msg 451 net/tipc/netlink_compat.c len = TLV_GET_DATA_LEN(msg->req); msg 472 net/tipc/netlink_compat.c static void __fill_bc_link_stat(struct tipc_nl_compat_msg *msg, msg 475 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, " Window:%u packets\n", msg 478 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, msg 486 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, msg 494 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, " RX naks:%u defs:%u dups:%u\n", msg 499 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, " TX naks:%u acks:%u dups:%u\n", msg 504 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, msg 511 net/tipc/netlink_compat.c static int tipc_nl_compat_link_stat_dump(struct tipc_nl_compat_msg *msg, msg 547 net/tipc/netlink_compat.c name = (char *)TLV_DATA(msg->req); msg 549 net/tipc/netlink_compat.c len = TLV_GET_DATA_LEN(msg->req); msg 560 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, "\nLink <%s>\n", msg 564 net/tipc/netlink_compat.c __fill_bc_link_stat(msg, prop, stats); msg 569 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, " ACTIVE"); msg 571 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, " STANDBY"); msg 573 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, " DEFUNCT"); msg 575 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, " MTU:%u Priority:%u", msg 579 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, " Tolerance:%u ms Window:%u packets\n", msg 583 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, msg 592 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, msg 601 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, msg 607 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, msg 618 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, "-16384:%u%% -32768:%u%% -66000:%u%%\n", msg 626 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, msg 634 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, msg 642 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, msg 651 net/tipc/netlink_compat.c static int tipc_nl_compat_link_dump(struct tipc_nl_compat_msg *msg, msg 671 net/tipc/netlink_compat.c return tipc_add_tlv(msg->rep, TIPC_TLV_LINK_INFO, msg 676 net/tipc/netlink_compat.c struct tipc_nl_compat_msg *msg, msg 679 net/tipc/netlink_compat.c switch (msg->cmd) { msg 692 net/tipc/netlink_compat.c struct tipc_nl_compat_msg *msg) msg 698 net/tipc/netlink_compat.c lc = (struct tipc_link_config *)TLV_DATA(msg->req); msg 711 net/tipc/netlink_compat.c __tipc_add_link_prop(skb, msg, lc); msg 719 net/tipc/netlink_compat.c struct tipc_nl_compat_msg *msg) msg 725 net/tipc/netlink_compat.c lc = (struct tipc_link_config *)TLV_DATA(msg->req); msg 738 net/tipc/netlink_compat.c __tipc_add_link_prop(skb, msg, lc); msg 746 net/tipc/netlink_compat.c struct tipc_nl_compat_msg *msg) msg 752 net/tipc/netlink_compat.c lc = (struct tipc_link_config *)TLV_DATA(msg->req); msg 765 net/tipc/netlink_compat.c __tipc_add_link_prop(skb, msg, lc); msg 774 net/tipc/netlink_compat.c struct tipc_nl_compat_msg *msg) msg 781 net/tipc/netlink_compat.c lc = (struct tipc_link_config *)TLV_DATA(msg->req); msg 783 net/tipc/netlink_compat.c len = TLV_GET_DATA_LEN(msg->req); msg 795 net/tipc/netlink_compat.c return tipc_nl_compat_media_set(skb, msg); msg 798 net/tipc/netlink_compat.c bearer = tipc_bearer_find(msg->net, lc->name); msg 801 net/tipc/netlink_compat.c return tipc_nl_compat_bearer_set(skb, msg); msg 804 net/tipc/netlink_compat.c return __tipc_nl_compat_link_set(skb, msg); msg 809 net/tipc/netlink_compat.c struct tipc_nl_compat_msg *msg) msg 815 net/tipc/netlink_compat.c name = (char *)TLV_DATA(msg->req); msg 821 net/tipc/netlink_compat.c len = TLV_GET_DATA_LEN(msg->req); msg 837 net/tipc/netlink_compat.c static int tipc_nl_compat_name_table_dump_header(struct tipc_nl_compat_msg *msg) msg 849 net/tipc/netlink_compat.c ntq = (struct tipc_name_table_query *)TLV_DATA(msg->req); msg 850 net/tipc/netlink_compat.c if (TLV_GET_DATA_LEN(msg->req) < sizeof(struct tipc_name_table_query)) msg 858 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, header[i]); msg 859 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, "\n"); msg 864 net/tipc/netlink_compat.c static int tipc_nl_compat_name_table_dump(struct tipc_nl_compat_msg *msg, msg 894 net/tipc/netlink_compat.c ntq = (struct tipc_name_table_query *)TLV_DATA(msg->req); msg 909 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, "%-10u ", msg 915 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, "%-10u %-10u ", msg 925 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, "%-26s ", port_str); msg 930 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, "%-10u %s", msg 934 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, "\n"); msg 939 net/tipc/netlink_compat.c static int __tipc_nl_compat_publ_dump(struct tipc_nl_compat_msg *msg, msg 959 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, " {%u,%u}", type, lower); msg 961 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, " {%u,%u,%u}", type, lower, upper); msg 966 net/tipc/netlink_compat.c static int tipc_nl_compat_publ_dump(struct tipc_nl_compat_msg *msg, u32 sock) msg 1002 net/tipc/netlink_compat.c err = __tipc_nl_compat_dumpit(&dump, msg, args); msg 1009 net/tipc/netlink_compat.c static int tipc_nl_compat_sk_dump(struct tipc_nl_compat_msg *msg, msg 1025 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, "%u:", sock_ref); msg 1039 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, " connected to <%u.%u.%u:%u>", msg 1046 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, " via {%u,%u}\n", msg 1050 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, "\n"); msg 1052 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, " bound to"); msg 1054 net/tipc/netlink_compat.c err = tipc_nl_compat_publ_dump(msg, sock_ref); msg 1058 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, "\n"); msg 1063 net/tipc/netlink_compat.c static int tipc_nl_compat_media_dump(struct tipc_nl_compat_msg *msg, msg 1077 net/tipc/netlink_compat.c return tipc_add_tlv(msg->rep, TIPC_TLV_MEDIA_NAME, msg 1082 net/tipc/netlink_compat.c static int tipc_nl_compat_node_dump(struct tipc_nl_compat_msg *msg, msg 1100 net/tipc/netlink_compat.c return tipc_add_tlv(msg->rep, TIPC_TLV_NODE_INFO, &node_info, msg 1106 net/tipc/netlink_compat.c struct tipc_nl_compat_msg *msg) msg 1111 net/tipc/netlink_compat.c val = ntohl(*(__be32 *)TLV_DATA(msg->req)); msg 1117 net/tipc/netlink_compat.c if (msg->cmd == TIPC_CMD_SET_NODE_ADDR) { msg 1120 net/tipc/netlink_compat.c } else if (msg->cmd == TIPC_CMD_SET_NETID) { msg 1129 net/tipc/netlink_compat.c static int tipc_nl_compat_net_dump(struct tipc_nl_compat_msg *msg, msg 1146 net/tipc/netlink_compat.c return tipc_add_tlv(msg->rep, TIPC_TLV_UNSIGNED, &id, sizeof(id)); msg 1149 net/tipc/netlink_compat.c static int tipc_cmd_show_stats_compat(struct tipc_nl_compat_msg *msg) msg 1151 net/tipc/netlink_compat.c msg->rep = tipc_tlv_alloc(ULTRA_STRING_MAX_LEN); msg 1152 net/tipc/netlink_compat.c if (!msg->rep) msg 1155 net/tipc/netlink_compat.c tipc_tlv_init(msg->rep, TIPC_TLV_ULTRA_STRING); msg 1156 net/tipc/netlink_compat.c tipc_tlv_sprintf(msg->rep, "TIPC version " TIPC_MOD_VER "\n"); msg 1161 net/tipc/netlink_compat.c static int tipc_nl_compat_handle(struct tipc_nl_compat_msg *msg) msg 1169 net/tipc/netlink_compat.c switch (msg->cmd) { msg 1171 net/tipc/netlink_compat.c msg->rep = tipc_tlv_alloc(0); msg 1172 net/tipc/netlink_compat.c if (!msg->rep) msg 1176 net/tipc/netlink_compat.c msg->rep_size = MAX_BEARERS * TLV_SPACE(TIPC_MAX_BEARER_NAME); msg 1179 net/tipc/netlink_compat.c return tipc_nl_compat_dumpit(&dump, msg); msg 1181 net/tipc/netlink_compat.c msg->req_type = TIPC_TLV_BEARER_CONFIG; msg 1184 net/tipc/netlink_compat.c return tipc_nl_compat_doit(&doit, msg); msg 1186 net/tipc/netlink_compat.c msg->req_type = TIPC_TLV_BEARER_NAME; msg 1189 net/tipc/netlink_compat.c return tipc_nl_compat_doit(&doit, msg); msg 1191 net/tipc/netlink_compat.c msg->req_type = TIPC_TLV_LINK_NAME; msg 1192 net/tipc/netlink_compat.c msg->rep_size = ULTRA_STRING_MAX_LEN; msg 1193 net/tipc/netlink_compat.c msg->rep_type = TIPC_TLV_ULTRA_STRING; msg 1196 net/tipc/netlink_compat.c return tipc_nl_compat_dumpit(&dump, msg); msg 1198 net/tipc/netlink_compat.c msg->req_type = TIPC_TLV_NET_ADDR; msg 1199 net/tipc/netlink_compat.c msg->rep_size = ULTRA_STRING_MAX_LEN; msg 1202 net/tipc/netlink_compat.c return tipc_nl_compat_dumpit(&dump, msg); msg 1206 net/tipc/netlink_compat.c msg->req_type = TIPC_TLV_LINK_CONFIG; msg 1209 net/tipc/netlink_compat.c return tipc_nl_compat_doit(&doit, msg); msg 1211 net/tipc/netlink_compat.c msg->req_type = TIPC_TLV_LINK_NAME; msg 1214 net/tipc/netlink_compat.c return tipc_nl_compat_doit(&doit, msg); msg 1216 net/tipc/netlink_compat.c msg->req_type = TIPC_TLV_NAME_TBL_QUERY; msg 1217 net/tipc/netlink_compat.c msg->rep_size = ULTRA_STRING_MAX_LEN; msg 1218 net/tipc/netlink_compat.c msg->rep_type = TIPC_TLV_ULTRA_STRING; msg 1222 net/tipc/netlink_compat.c return tipc_nl_compat_dumpit(&dump, msg); msg 1224 net/tipc/netlink_compat.c msg->rep_size = ULTRA_STRING_MAX_LEN; msg 1225 net/tipc/netlink_compat.c msg->rep_type = TIPC_TLV_ULTRA_STRING; msg 1228 net/tipc/netlink_compat.c return tipc_nl_compat_dumpit(&dump, msg); msg 1230 net/tipc/netlink_compat.c msg->rep_size = MAX_MEDIA * TLV_SPACE(TIPC_MAX_MEDIA_NAME); msg 1233 net/tipc/netlink_compat.c return tipc_nl_compat_dumpit(&dump, msg); msg 1235 net/tipc/netlink_compat.c msg->rep_size = ULTRA_STRING_MAX_LEN; msg 1238 net/tipc/netlink_compat.c return tipc_nl_compat_dumpit(&dump, msg); msg 1240 net/tipc/netlink_compat.c msg->req_type = TIPC_TLV_NET_ADDR; msg 1243 net/tipc/netlink_compat.c return tipc_nl_compat_doit(&doit, msg); msg 1245 net/tipc/netlink_compat.c msg->req_type = TIPC_TLV_UNSIGNED; msg 1248 net/tipc/netlink_compat.c return tipc_nl_compat_doit(&doit, msg); msg 1250 net/tipc/netlink_compat.c msg->rep_size = sizeof(u32); msg 1253 net/tipc/netlink_compat.c return tipc_nl_compat_dumpit(&dump, msg); msg 1255 net/tipc/netlink_compat.c return tipc_cmd_show_stats_compat(msg); msg 1265 net/tipc/netlink_compat.c struct tipc_nl_compat_msg msg; msg 1270 net/tipc/netlink_compat.c memset(&msg, 0, sizeof(msg)); msg 1273 net/tipc/netlink_compat.c msg.req = nlmsg_data(req_nlh) + GENL_HDRLEN + TIPC_GENL_HDRLEN; msg 1274 net/tipc/netlink_compat.c msg.cmd = req_userhdr->cmd; msg 1275 net/tipc/netlink_compat.c msg.net = genl_info_net(info); msg 1276 net/tipc/netlink_compat.c msg.dst_sk = skb->sk; msg 1278 net/tipc/netlink_compat.c if ((msg.cmd & 0xC000) && (!netlink_net_capable(skb, CAP_NET_ADMIN))) { msg 1279 net/tipc/netlink_compat.c msg.rep = tipc_get_err_tlv(TIPC_CFG_NOT_NET_ADMIN); msg 1284 net/tipc/netlink_compat.c msg.req_size = nlmsg_attrlen(req_nlh, GENL_HDRLEN + TIPC_GENL_HDRLEN); msg 1285 net/tipc/netlink_compat.c if (msg.req_size && !TLV_OK(msg.req, msg.req_size)) { msg 1286 net/tipc/netlink_compat.c msg.rep = tipc_get_err_tlv(TIPC_CFG_NOT_SUPPORTED); msg 1291 net/tipc/netlink_compat.c err = tipc_nl_compat_handle(&msg); msg 1293 net/tipc/netlink_compat.c msg.rep = tipc_get_err_tlv(TIPC_CFG_NOT_SUPPORTED); msg 1295 net/tipc/netlink_compat.c msg.rep = tipc_get_err_tlv(TIPC_CFG_TLV_ERROR); msg 1297 net/tipc/netlink_compat.c if (!msg.rep) msg 1301 net/tipc/netlink_compat.c skb_push(msg.rep, len); msg 1302 net/tipc/netlink_compat.c rep_nlh = nlmsg_hdr(msg.rep); msg 1304 net/tipc/netlink_compat.c rep_nlh->nlmsg_len = msg.rep->len; msg 1305 net/tipc/netlink_compat.c genlmsg_unicast(msg.net, msg.rep, NETLINK_CB(skb).portid); msg 1394 net/tipc/node.c static int __tipc_nl_add_node(struct tipc_nl_msg *msg, struct tipc_node *node) msg 1399 net/tipc/node.c hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family, msg 1404 net/tipc/node.c attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_NODE); msg 1408 net/tipc/node.c if (nla_put_u32(msg->skb, TIPC_NLA_NODE_ADDR, node->addr)) msg 1411 net/tipc/node.c if (nla_put_flag(msg->skb, TIPC_NLA_NODE_UP)) msg 1414 net/tipc/node.c nla_nest_end(msg->skb, attrs); msg 1415 net/tipc/node.c genlmsg_end(msg->skb, hdr); msg 1420 net/tipc/node.c nla_nest_cancel(msg->skb, attrs); msg 1422 net/tipc/node.c genlmsg_cancel(msg->skb, hdr); msg 1986 net/tipc/node.c struct tipc_nl_msg msg; msg 1991 net/tipc/node.c msg.skb = skb; msg 1992 net/tipc/node.c msg.portid = NETLINK_CB(cb->skb).portid; msg 1993 net/tipc/node.c msg.seq = cb->nlh->nlmsg_seq; msg 2022 net/tipc/node.c err = __tipc_nl_add_node(&msg, node); msg 2161 net/tipc/node.c struct tipc_nl_msg msg; msg 2165 net/tipc/node.c msg.portid = info->snd_portid; msg 2166 net/tipc/node.c msg.seq = info->snd_seq; msg 2182 net/tipc/node.c msg.skb = nlmsg_new(NLMSG_GOODSIZE, GFP_KERNEL); msg 2183 net/tipc/node.c if (!msg.skb) msg 2187 net/tipc/node.c err = tipc_nl_add_bc_link(net, &msg); msg 2209 net/tipc/node.c err = __tipc_nl_add_link(net, &msg, link, 0); msg 2215 net/tipc/node.c return genlmsg_reply(msg.skb, info); msg 2218 net/tipc/node.c nlmsg_free(msg.skb); msg 2274 net/tipc/node.c static int __tipc_nl_add_node_links(struct net *net, struct tipc_nl_msg *msg, msg 2286 net/tipc/node.c err = __tipc_nl_add_link(net, msg, msg 2301 net/tipc/node.c struct tipc_nl_msg msg; msg 2310 net/tipc/node.c msg.skb = skb; msg 2311 net/tipc/node.c msg.portid = NETLINK_CB(cb->skb).portid; msg 2312 net/tipc/node.c msg.seq = cb->nlh->nlmsg_seq; msg 2332 net/tipc/node.c err = __tipc_nl_add_node_links(net, &msg, node, msg 2341 net/tipc/node.c err = tipc_nl_add_bc_link(net, &msg); msg 2347 net/tipc/node.c err = __tipc_nl_add_node_links(net, &msg, node, msg 2395 net/tipc/node.c static int __tipc_nl_add_monitor_prop(struct net *net, struct tipc_nl_msg *msg) msg 2401 net/tipc/node.c hdr = genlmsg_put(msg->skb, msg->portid, msg->seq, &tipc_genl_family, msg 2406 net/tipc/node.c attrs = nla_nest_start_noflag(msg->skb, TIPC_NLA_MON); msg 2412 net/tipc/node.c if (nla_put_u32(msg->skb, TIPC_NLA_MON_ACTIVATION_THRESHOLD, val)) msg 2415 net/tipc/node.c nla_nest_end(msg->skb, attrs); msg 2416 net/tipc/node.c genlmsg_end(msg->skb, hdr); msg 2421 net/tipc/node.c nla_nest_cancel(msg->skb, attrs); msg 2423 net/tipc/node.c genlmsg_cancel(msg->skb, hdr); msg 2431 net/tipc/node.c struct tipc_nl_msg msg; msg 2434 net/tipc/node.c msg.skb = nlmsg_new(NLMSG_GOODSIZE, GFP_KERNEL); msg 2435 net/tipc/node.c if (!msg.skb) msg 2437 net/tipc/node.c msg.portid = info->snd_portid; msg 2438 net/tipc/node.c msg.seq = info->snd_seq; msg 2440 net/tipc/node.c err = __tipc_nl_add_monitor_prop(net, &msg); msg 2442 net/tipc/node.c nlmsg_free(msg.skb); msg 2446 net/tipc/node.c return genlmsg_reply(msg.skb, info); msg 2453 net/tipc/node.c struct tipc_nl_msg msg; msg 2460 net/tipc/node.c msg.skb = skb; msg 2461 net/tipc/node.c msg.portid = NETLINK_CB(cb->skb).portid; msg 2462 net/tipc/node.c msg.seq = cb->nlh->nlmsg_seq; msg 2466 net/tipc/node.c err = __tipc_nl_add_monitor(net, &msg, bearer_id); msg 2483 net/tipc/node.c struct tipc_nl_msg msg; msg 2516 net/tipc/node.c msg.skb = skb; msg 2517 net/tipc/node.c msg.portid = NETLINK_CB(cb->skb).portid; msg 2518 net/tipc/node.c msg.seq = cb->nlh->nlmsg_seq; msg 2521 net/tipc/node.c err = tipc_nl_add_monitor_peer(net, &msg, bearer_id, &prev_node); msg 291 net/tipc/socket.c static bool tsk_peer_msg(struct tipc_sock *tsk, struct tipc_msg *msg) msg 301 net/tipc/socket.c if (unlikely(msg_origport(msg) != peer_port)) msg 304 net/tipc/socket.c orig_node = msg_orignode(msg); msg 421 net/tipc/socket.c struct tipc_msg *msg; msg 451 net/tipc/socket.c msg = &tsk->phdr; msg 465 net/tipc/socket.c tipc_msg_init(tipc_own_addr(net), msg, TIPC_LOW_IMPORTANCE, msg 468 net/tipc/socket.c msg_set_origport(msg, tsk->portid); msg 774 net/tipc/socket.c struct msghdr *msg, size_t dlen, long timeout) msg 813 net/tipc/socket.c rc = tipc_msg_build(hdr, msg, 0, dlen, mtu, &pkts); msg 1523 net/tipc/socket.c struct tipc_msg *msg = &tsk->phdr; msg 1525 net/tipc/socket.c msg_set_syn(msg, 0); msg 1526 net/tipc/socket.c msg_set_destnode(msg, peer_node); msg 1527 net/tipc/socket.c msg_set_destport(msg, peer_port); msg 1528 net/tipc/socket.c msg_set_type(msg, TIPC_CONN_MSG); msg 1529 net/tipc/socket.c msg_set_lookup_scope(msg, 0); msg 1530 net/tipc/socket.c msg_set_hdr_sz(msg, SHORT_H_SIZE); msg 1595 net/tipc/socket.c struct tipc_msg *msg; msg 1604 net/tipc/socket.c msg = buf_msg(skb); msg 1607 net/tipc/socket.c err = msg ? msg_errcode(msg) : 0; msg 1610 net/tipc/socket.c anc_data[1] = msg_data_sz(msg); msg 1617 net/tipc/socket.c msg = buf_msg(skb); msg 1619 net/tipc/socket.c msg_data(msg)); msg 1626 net/tipc/socket.c dest_type = msg ? msg_type(msg) : TIPC_DIRECT_MSG; msg 1630 net/tipc/socket.c anc_data[0] = msg_nametype(msg); msg 1631 net/tipc/socket.c anc_data[1] = msg_namelower(msg); msg 1632 net/tipc/socket.c anc_data[2] = msg_namelower(msg); msg 1636 net/tipc/socket.c anc_data[0] = msg_nametype(msg); msg 1637 net/tipc/socket.c anc_data[1] = msg_namelower(msg); msg 1638 net/tipc/socket.c anc_data[2] = msg_nameupper(msg); msg 1663 net/tipc/socket.c struct tipc_msg *msg; msg 1674 net/tipc/socket.c msg = buf_msg(skb); msg 1675 net/tipc/socket.c msg_set_conn_ack(msg, tsk->rcv_unacked); msg 1681 net/tipc/socket.c msg_set_adv_win(msg, tsk->rcv_win); msg 1683 net/tipc/socket.c tipc_node_xmit_skb(net, skb, dnode, msg_link_selector(msg)); msg 2534 net/tipc/socket.c struct tipc_msg *msg; msg 2558 net/tipc/socket.c msg = buf_msg(buf); msg 2570 net/tipc/socket.c tipc_sk_finish_conn(new_tsock, msg_origport(msg), msg_orignode(msg)); msg 2572 net/tipc/socket.c tsk_set_importance(new_tsock, msg_importance(msg)); msg 2573 net/tipc/socket.c if (msg_named(msg)) { msg 2574 net/tipc/socket.c new_tsock->conn_type = msg_nametype(msg); msg 2575 net/tipc/socket.c new_tsock->conn_instance = msg_nameinst(msg); msg 2582 net/tipc/socket.c if (!msg_data_sz(msg)) { msg 2783 net/tipc/socket.c struct tipc_msg *msg; msg 2794 net/tipc/socket.c msg = &tsk->phdr; msg 2795 net/tipc/socket.c msg_set_prevnode(msg, tipc_own_addr(net)); msg 2796 net/tipc/socket.c msg_set_orignode(msg, tipc_own_addr(net)); msg 253 net/tipc/topsrv.c struct msghdr msg; msg 268 net/tipc/topsrv.c memset(&msg, 0, sizeof(msg)); msg 269 net/tipc/topsrv.c msg.msg_flags = MSG_DONTWAIT; msg 272 net/tipc/topsrv.c msg.msg_name = NULL; msg 275 net/tipc/topsrv.c ret = kernel_sendmsg(con->sock, &msg, &iov, msg 389 net/tipc/topsrv.c struct msghdr msg = {}; msg 396 net/tipc/topsrv.c msg.msg_name = NULL; msg 397 net/tipc/topsrv.c iov_iter_kvec(&msg.msg_iter, READ, &iov, 1, iov.iov_len); msg 398 net/tipc/topsrv.c ret = sock_recvmsg(con->sock, &msg, MSG_DONTWAIT); msg 138 net/tipc/udp_media.c char *msg) msg 142 net/tipc/udp_media.c ua = (struct udp_media_addr *) (msg + TIPC_MEDIA_ADDR_OFFSET); msg 143 net/tipc/udp_media.c if (msg[TIPC_MEDIA_TYPE_OFFSET] != TIPC_MEDIA_TYPE_UDP) msg 150 net/tipc/udp_media.c static int tipc_udp_addr2msg(char *msg, struct tipc_media_addr *a) msg 152 net/tipc/udp_media.c memset(msg, 0, TIPC_MEDIA_INFO_SIZE); msg 153 net/tipc/udp_media.c msg[TIPC_MEDIA_TYPE_OFFSET] = TIPC_MEDIA_TYPE_UDP; msg 154 net/tipc/udp_media.c memcpy(msg + TIPC_MEDIA_ADDR_OFFSET, a->value, msg 535 net/tipc/udp_media.c int tipc_udp_nl_add_bearer_data(struct tipc_nl_msg *msg, struct tipc_bearer *b) msg 546 net/tipc/udp_media.c nest = nla_nest_start_noflag(msg->skb, TIPC_NLA_BEARER_UDP_OPTS); msg 550 net/tipc/udp_media.c if (__tipc_nl_add_udp_addr(msg->skb, src, TIPC_NLA_UDP_LOCAL)) msg 554 net/tipc/udp_media.c if (__tipc_nl_add_udp_addr(msg->skb, dst, TIPC_NLA_UDP_REMOTE)) msg 558 net/tipc/udp_media.c if (nla_put_flag(msg->skb, TIPC_NLA_UDP_MULTI_REMOTEIP)) msg 562 net/tipc/udp_media.c nla_nest_end(msg->skb, nest); msg 565 net/tipc/udp_media.c nla_nest_cancel(msg->skb, nest); msg 45 net/tipc/udp_media.h int tipc_udp_nl_add_bearer_data(struct tipc_nl_msg *msg, struct tipc_bearer *b); msg 523 net/tls/tls_device.c int tls_device_sendmsg(struct sock *sk, struct msghdr *msg, size_t size) msg 532 net/tls/tls_device.c if (unlikely(msg->msg_controllen)) { msg 533 net/tls/tls_device.c rc = tls_proccess_cmsg(sk, msg, &record_type); msg 538 net/tls/tls_device.c rc = tls_push_data(sk, &msg->msg_iter, size, msg 539 net/tls/tls_device.c msg->msg_flags, record_type); msg 164 net/tls/tls_main.c int tls_proccess_cmsg(struct sock *sk, struct msghdr *msg, msg 170 net/tls/tls_main.c for_each_cmsghdr(cmsg, msg) { msg 171 net/tls/tls_main.c if (!CMSG_OK(msg, cmsg)) msg 181 net/tls/tls_main.c if (msg->msg_flags & MSG_MORE) msg 184 net/tls/tls_main.c rc = tls_handle_open_record(sk, msg->msg_flags); msg 782 net/tls/tls_sw.c static int bpf_exec_tx_verdict(struct sk_msg *msg, struct sock *sk, msg 801 net/tls/tls_sw.c *copied -= sk_msg_free(sk, msg); msg 810 net/tls/tls_sw.c enospc = sk_msg_full(msg); msg 812 net/tls/tls_sw.c delta = msg->sg.size; msg 813 net/tls/tls_sw.c psock->eval = sk_psock_msg_verdict(sk, psock, msg); msg 814 net/tls/tls_sw.c delta -= msg->sg.size; msg 816 net/tls/tls_sw.c if (msg->cork_bytes && msg->cork_bytes > msg->sg.size && msg 821 net/tls/tls_sw.c msg->cork_bytes = 0; msg 822 net/tls/tls_sw.c send = msg->sg.size; msg 823 net/tls/tls_sw.c if (msg->apply_bytes && msg->apply_bytes < send) msg 824 net/tls/tls_sw.c send = msg->apply_bytes; msg 830 net/tls/tls_sw.c *copied -= sk_msg_free(sk, msg); msg 838 net/tls/tls_sw.c memcpy(&msg_redir, msg, sizeof(*msg)); msg 839 net/tls/tls_sw.c if (msg->apply_bytes < send) msg 840 net/tls/tls_sw.c msg->apply_bytes = 0; msg 842 net/tls/tls_sw.c msg->apply_bytes -= send; msg 843 net/tls/tls_sw.c sk_msg_return_zero(sk, msg, send); msg 844 net/tls/tls_sw.c msg->sg.size -= send; msg 850 net/tls/tls_sw.c msg->sg.size = 0; msg 852 net/tls/tls_sw.c if (msg->sg.size == 0) msg 857 net/tls/tls_sw.c sk_msg_free_partial(sk, msg, send); msg 858 net/tls/tls_sw.c if (msg->apply_bytes < send) msg 859 net/tls/tls_sw.c msg->apply_bytes = 0; msg 861 net/tls/tls_sw.c msg->apply_bytes -= send; msg 862 net/tls/tls_sw.c if (msg->sg.size == 0) msg 873 net/tls/tls_sw.c msg = &rec->msg_plaintext; msg 874 net/tls/tls_sw.c if (!msg->apply_bytes) msg 912 net/tls/tls_sw.c int tls_sw_sendmsg(struct sock *sk, struct msghdr *msg, size_t size) msg 914 net/tls/tls_sw.c long timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); msg 920 net/tls/tls_sw.c bool is_kvec = iov_iter_is_kvec(&msg->msg_iter); msg 921 net/tls/tls_sw.c bool eor = !(msg->msg_flags & MSG_MORE); msg 935 net/tls/tls_sw.c if (msg->msg_flags & ~(MSG_MORE | MSG_DONTWAIT | MSG_NOSIGNAL)) msg 941 net/tls/tls_sw.c if (unlikely(msg->msg_controllen)) { msg 942 net/tls/tls_sw.c ret = tls_proccess_cmsg(sk, msg, &record_type); msg 951 net/tls/tls_sw.c while (msg_data_left(msg)) { msg 971 net/tls/tls_sw.c try_to_copy = msg_data_left(msg); msg 1001 net/tls/tls_sw.c ret = sk_msg_zerocopy_from_iter(sk, &msg->msg_iter, msg 1012 net/tls/tls_sw.c msg->msg_flags); msg 1027 net/tls/tls_sw.c iov_iter_revert(&msg->msg_iter, msg 1051 net/tls/tls_sw.c ret = sk_msg_memcopy_from_iter(sk, &msg->msg_iter, msg 1065 net/tls/tls_sw.c msg->msg_flags); msg 1124 net/tls/tls_sw.c tls_tx_records(sk, msg->msg_flags); msg 1128 net/tls/tls_sw.c ret = sk_stream_error(sk, msg->msg_flags, ret); msg 1615 net/tls/tls_sw.c struct msghdr *msg, msg 1665 net/tls/tls_sw.c int cerr = put_cmsg(msg, SOL_TLS, TLS_GET_RECORD_TYPE, msg 1669 net/tls/tls_sw.c if (cerr || msg->msg_flags & MSG_CTRUNC) msg 1678 net/tls/tls_sw.c msg, chunk); msg 1701 net/tls/tls_sw.c if (msg) msg 1702 net/tls/tls_sw.c msg->msg_flags |= MSG_EOR; msg 1719 net/tls/tls_sw.c struct msghdr *msg, msg 1738 net/tls/tls_sw.c bool is_kvec = iov_iter_is_kvec(&msg->msg_iter); msg 1746 net/tls/tls_sw.c return sock_recv_errqueue(sk, msg, len, SOL_IP, IP_RECVERR); msg 1752 net/tls/tls_sw.c err = process_rx_list(ctx, msg, &control, &cmsg, 0, len, false, msg 1780 net/tls/tls_sw.c msg, len, flags); msg 1812 net/tls/tls_sw.c err = decrypt_skb_update(sk, skb, &msg->msg_iter, msg 1842 net/tls/tls_sw.c cerr = put_cmsg(msg, SOL_TLS, TLS_GET_RECORD_TYPE, msg 1846 net/tls/tls_sw.c if (cerr || msg->msg_flags & MSG_CTRUNC) { msg 1865 net/tls/tls_sw.c msg, chunk); msg 1893 net/tls/tls_sw.c msg->msg_flags |= MSG_EOR; msg 1928 net/tls/tls_sw.c err = process_rx_list(ctx, msg, &control, &cmsg, copied, msg 1931 net/tls/tls_sw.c err = process_rx_list(ctx, msg, &control, &cmsg, 0, msg 1553 net/unix/af_unix.c struct msghdr msg = { .msg_controllen = 0 }; msg 1555 net/unix/af_unix.c err = scm_send(socket, &msg, scm, false); msg 1581 net/unix/af_unix.c static int unix_dgram_sendmsg(struct socket *sock, struct msghdr *msg, msg 1587 net/unix/af_unix.c DECLARE_SOCKADDR(struct sockaddr_un *, sunaddr, msg->msg_name); msg 1599 net/unix/af_unix.c err = scm_send(sock, msg, &scm, false); msg 1604 net/unix/af_unix.c if (msg->msg_flags&MSG_OOB) msg 1607 net/unix/af_unix.c if (msg->msg_namelen) { msg 1608 net/unix/af_unix.c err = unix_mkname(sunaddr, msg->msg_namelen, &hash); msg 1638 net/unix/af_unix.c msg->msg_flags & MSG_DONTWAIT, &err, msg 1650 net/unix/af_unix.c err = skb_copy_datagram_from_iter(skb, 0, &msg->msg_iter, len); msg 1654 net/unix/af_unix.c timeo = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); msg 1787 net/unix/af_unix.c static int unix_stream_sendmsg(struct socket *sock, struct msghdr *msg, msg 1800 net/unix/af_unix.c err = scm_send(sock, msg, &scm, false); msg 1805 net/unix/af_unix.c if (msg->msg_flags&MSG_OOB) msg 1808 net/unix/af_unix.c if (msg->msg_namelen) { msg 1835 net/unix/af_unix.c msg->msg_flags & MSG_DONTWAIT, &err, msg 1851 net/unix/af_unix.c err = skb_copy_datagram_from_iter(skb, 0, &msg->msg_iter, size); msg 1878 net/unix/af_unix.c if (sent == 0 && !(msg->msg_flags&MSG_NOSIGNAL)) msg 2002 net/unix/af_unix.c static int unix_seqpacket_sendmsg(struct socket *sock, struct msghdr *msg, msg 2015 net/unix/af_unix.c if (msg->msg_namelen) msg 2016 net/unix/af_unix.c msg->msg_namelen = 0; msg 2018 net/unix/af_unix.c return unix_dgram_sendmsg(sock, msg, len); msg 2021 net/unix/af_unix.c static int unix_seqpacket_recvmsg(struct socket *sock, struct msghdr *msg, msg 2029 net/unix/af_unix.c return unix_dgram_recvmsg(sock, msg, size, flags); msg 2032 net/unix/af_unix.c static void unix_copy_addr(struct msghdr *msg, struct sock *sk) msg 2037 net/unix/af_unix.c msg->msg_namelen = addr->len; msg 2038 net/unix/af_unix.c memcpy(msg->msg_name, addr->name, addr->len); msg 2042 net/unix/af_unix.c static int unix_dgram_recvmsg(struct socket *sock, struct msghdr *msg, msg 2090 net/unix/af_unix.c if (msg->msg_name) msg 2091 net/unix/af_unix.c unix_copy_addr(msg, skb->sk); msg 2096 net/unix/af_unix.c msg->msg_flags |= MSG_TRUNC; msg 2098 net/unix/af_unix.c err = skb_copy_datagram_msg(skb, skip, msg, size); msg 2103 net/unix/af_unix.c __sock_recv_timestamp(msg, sk, skb); msg 2136 net/unix/af_unix.c scm_recv(sock, msg, &scm, flags); msg 2197 net/unix/af_unix.c struct msghdr *msg; msg 2319 net/unix/af_unix.c if (state->msg && state->msg->msg_name) { msg 2321 net/unix/af_unix.c state->msg->msg_name); msg 2322 net/unix/af_unix.c unix_copy_addr(state->msg, skb->sk); msg 2393 net/unix/af_unix.c if (state->msg) msg 2394 net/unix/af_unix.c scm_recv(sock, state->msg, &scm, flags); msg 2408 net/unix/af_unix.c state->msg, chunk); msg 2412 net/unix/af_unix.c static int unix_stream_recvmsg(struct socket *sock, struct msghdr *msg, msg 2418 net/unix/af_unix.c .msg = msg, msg 950 net/vmw_vsock/af_vsock.c static int vsock_dgram_sendmsg(struct socket *sock, struct msghdr *msg, msg 958 net/vmw_vsock/af_vsock.c if (msg->msg_flags & MSG_OOB) msg 976 net/vmw_vsock/af_vsock.c if (msg->msg_name && msg 977 net/vmw_vsock/af_vsock.c vsock_addr_cast(msg->msg_name, msg->msg_namelen, msg 1014 net/vmw_vsock/af_vsock.c err = transport->dgram_enqueue(vsk, remote_addr, msg, len); msg 1063 net/vmw_vsock/af_vsock.c static int vsock_dgram_recvmsg(struct socket *sock, struct msghdr *msg, msg 1066 net/vmw_vsock/af_vsock.c return transport->dgram_dequeue(vsock_sk(sock->sk), msg, len, flags); msg 1517 net/vmw_vsock/af_vsock.c static int vsock_stream_sendmsg(struct socket *sock, struct msghdr *msg, msg 1533 net/vmw_vsock/af_vsock.c if (msg->msg_flags & MSG_OOB) msg 1539 net/vmw_vsock/af_vsock.c if (msg->msg_namelen) { msg 1563 net/vmw_vsock/af_vsock.c timeout = sock_sndtimeo(sk, msg->msg_flags & MSG_DONTWAIT); msg 1630 net/vmw_vsock/af_vsock.c vsk, msg, msg 1656 net/vmw_vsock/af_vsock.c vsock_stream_recvmsg(struct socket *sock, struct msghdr *msg, size_t len, msg 1790 net/vmw_vsock/af_vsock.c vsk, msg, msg 545 net/vmw_vsock/hyperv_transport.c static int hvs_dgram_dequeue(struct vsock_sock *vsk, struct msghdr *msg, msg 552 net/vmw_vsock/hyperv_transport.c struct sockaddr_vm *remote, struct msghdr *msg, msg 583 net/vmw_vsock/hyperv_transport.c static ssize_t hvs_stream_dequeue(struct vsock_sock *vsk, struct msghdr *msg, msg 604 net/vmw_vsock/hyperv_transport.c ret = memcpy_to_msg(msg, recv_buf->data + hvs->recv_data_off, to_read); msg 623 net/vmw_vsock/hyperv_transport.c static ssize_t hvs_stream_enqueue(struct vsock_sock *vsk, struct msghdr *msg, msg 652 net/vmw_vsock/hyperv_transport.c ret = memcpy_from_msg(send_buf->data, msg, to_write); msg 66 net/vmw_vsock/virtio_transport_common.c if (info->msg && len > 0) { msg 73 net/vmw_vsock/virtio_transport_common.c err = memcpy_from_msg(pkt->buf, info->msg, len); msg 272 net/vmw_vsock/virtio_transport_common.c struct msghdr *msg, msg 295 net/vmw_vsock/virtio_transport_common.c err = memcpy_to_msg(msg, pkt->buf + pkt->off, bytes); msg 338 net/vmw_vsock/virtio_transport_common.c struct msghdr *msg, msg 344 net/vmw_vsock/virtio_transport_common.c return virtio_transport_stream_do_dequeue(vsk, msg, len); msg 350 net/vmw_vsock/virtio_transport_common.c struct msghdr *msg, msg 647 net/vmw_vsock/virtio_transport_common.c struct msghdr *msg, msg 656 net/vmw_vsock/virtio_transport_common.c struct msghdr *msg, msg 662 net/vmw_vsock/virtio_transport_common.c .msg = msg, msg 1712 net/vmw_vsock/vmci_transport.c struct msghdr *msg, msg 1729 net/vmw_vsock/vmci_transport.c memcpy_from_msg(VMCI_DG_PAYLOAD(dg), msg, len); msg 1746 net/vmw_vsock/vmci_transport.c struct msghdr *msg, size_t len, msg 1780 net/vmw_vsock/vmci_transport.c msg->msg_flags |= MSG_TRUNC; msg 1784 net/vmw_vsock/vmci_transport.c err = skb_copy_datagram_msg(skb, sizeof(*dg), msg, payload_len); msg 1788 net/vmw_vsock/vmci_transport.c if (msg->msg_name) { msg 1790 net/vmw_vsock/vmci_transport.c DECLARE_SOCKADDR(struct sockaddr_vm *, vm_addr, msg->msg_name); msg 1792 net/vmw_vsock/vmci_transport.c msg->msg_namelen = sizeof(*vm_addr); msg 1846 net/vmw_vsock/vmci_transport.c struct msghdr *msg, msg 1851 net/vmw_vsock/vmci_transport.c return vmci_qpair_peekv(vmci_trans(vsk)->qpair, msg, len, 0); msg 1853 net/vmw_vsock/vmci_transport.c return vmci_qpair_dequev(vmci_trans(vsk)->qpair, msg, len, 0); msg 1858 net/vmw_vsock/vmci_transport.c struct msghdr *msg, msg 1861 net/vmw_vsock/vmci_transport.c return vmci_qpair_enquev(vmci_trans(vsk)->qpair, msg, len, 0); msg 107 net/wimax/op-msg.c const void *msg, size_t size, msg 143 net/wimax/op-msg.c result = nla_put(skb, WIMAX_GNL_MSG_DATA, size, msg); msg 146 net/wimax/op-msg.c "attribute: %d\n", msg, size, result); msg 169 net/wimax/op-msg.c const void *wimax_msg_data_len(struct sk_buff *msg, size_t *size) msg 171 net/wimax/op-msg.c struct nlmsghdr *nlh = (void *) msg->head; msg 191 net/wimax/op-msg.c const void *wimax_msg_data(struct sk_buff *msg) msg 193 net/wimax/op-msg.c struct nlmsghdr *nlh = (void *) msg->head; msg 212 net/wimax/op-msg.c ssize_t wimax_msg_len(struct sk_buff *msg) msg 214 net/wimax/op-msg.c struct nlmsghdr *nlh = (void *) msg->head; msg 261 net/wimax/op-msg.c void *msg = skb->data; msg 266 net/wimax/op-msg.c d_dump(2, dev, msg, size); msg 864 net/wireless/nl80211.c static int nl80211_msg_put_wmm_rules(struct sk_buff *msg, msg 869 net/wireless/nl80211.c nla_nest_start_noflag(msg, NL80211_FREQUENCY_ATTR_WMM); msg 875 net/wireless/nl80211.c struct nlattr *nl_wmm_rule = nla_nest_start_noflag(msg, j); msg 880 net/wireless/nl80211.c if (nla_put_u16(msg, NL80211_WMMR_CW_MIN, msg 882 net/wireless/nl80211.c nla_put_u16(msg, NL80211_WMMR_CW_MAX, msg 884 net/wireless/nl80211.c nla_put_u8(msg, NL80211_WMMR_AIFSN, msg 886 net/wireless/nl80211.c nla_put_u16(msg, NL80211_WMMR_TXOP, msg 890 net/wireless/nl80211.c nla_nest_end(msg, nl_wmm_rule); msg 892 net/wireless/nl80211.c nla_nest_end(msg, nl_wmm_rules); msg 900 net/wireless/nl80211.c static int nl80211_msg_put_channel(struct sk_buff *msg, struct wiphy *wiphy, msg 911 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_FREQUENCY_ATTR_FREQ, msg 916 net/wireless/nl80211.c nla_put_flag(msg, NL80211_FREQUENCY_ATTR_DISABLED)) msg 919 net/wireless/nl80211.c if (nla_put_flag(msg, NL80211_FREQUENCY_ATTR_NO_IR)) msg 921 net/wireless/nl80211.c if (nla_put_flag(msg, __NL80211_FREQUENCY_ATTR_NO_IBSS)) msg 925 net/wireless/nl80211.c if (nla_put_flag(msg, NL80211_FREQUENCY_ATTR_RADAR)) msg 932 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_FREQUENCY_ATTR_DFS_STATE, msg 935 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_FREQUENCY_ATTR_DFS_TIME, msg 938 net/wireless/nl80211.c if (nla_put_u32(msg, msg 947 net/wireless/nl80211.c nla_put_flag(msg, NL80211_FREQUENCY_ATTR_NO_HT40_MINUS)) msg 950 net/wireless/nl80211.c nla_put_flag(msg, NL80211_FREQUENCY_ATTR_NO_HT40_PLUS)) msg 953 net/wireless/nl80211.c nla_put_flag(msg, NL80211_FREQUENCY_ATTR_NO_80MHZ)) msg 956 net/wireless/nl80211.c nla_put_flag(msg, NL80211_FREQUENCY_ATTR_NO_160MHZ)) msg 959 net/wireless/nl80211.c nla_put_flag(msg, NL80211_FREQUENCY_ATTR_INDOOR_ONLY)) msg 962 net/wireless/nl80211.c nla_put_flag(msg, NL80211_FREQUENCY_ATTR_IR_CONCURRENT)) msg 965 net/wireless/nl80211.c nla_put_flag(msg, NL80211_FREQUENCY_ATTR_NO_20MHZ)) msg 968 net/wireless/nl80211.c nla_put_flag(msg, NL80211_FREQUENCY_ATTR_NO_10MHZ)) msg 972 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_FREQUENCY_ATTR_MAX_TX_POWER, msg 981 net/wireless/nl80211.c if (nl80211_msg_put_wmm_rules(msg, rule)) msg 992 net/wireless/nl80211.c static bool nl80211_put_txq_stats(struct sk_buff *msg, msg 1000 net/wireless/nl80211.c nla_put_u32(msg, NL80211_TXQ_STATS_ ## attr, txqstats->memb)) \ msg 1004 net/wireless/nl80211.c txqattr = nla_nest_start_noflag(msg, attrtype); msg 1019 net/wireless/nl80211.c nla_nest_end(msg, txqattr); msg 1319 net/wireless/nl80211.c static int nl80211_put_iftypes(struct sk_buff *msg, u32 attr, u16 ifmodes) msg 1321 net/wireless/nl80211.c struct nlattr *nl_modes = nla_nest_start_noflag(msg, attr); msg 1329 net/wireless/nl80211.c if ((ifmodes & 1) && nla_put_flag(msg, i)) msg 1335 net/wireless/nl80211.c nla_nest_end(msg, nl_modes); msg 1343 net/wireless/nl80211.c struct sk_buff *msg, msg 1349 net/wireless/nl80211.c nl_combis = nla_nest_start_noflag(msg, msg 1360 net/wireless/nl80211.c nl_combi = nla_nest_start_noflag(msg, i + 1); msg 1364 net/wireless/nl80211.c nl_limits = nla_nest_start_noflag(msg, msg 1372 net/wireless/nl80211.c nl_limit = nla_nest_start_noflag(msg, j + 1); msg 1375 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_IFACE_LIMIT_MAX, msg 1378 net/wireless/nl80211.c if (nl80211_put_iftypes(msg, NL80211_IFACE_LIMIT_TYPES, msg 1381 net/wireless/nl80211.c nla_nest_end(msg, nl_limit); msg 1384 net/wireless/nl80211.c nla_nest_end(msg, nl_limits); msg 1387 net/wireless/nl80211.c nla_put_flag(msg, NL80211_IFACE_COMB_STA_AP_BI_MATCH)) msg 1389 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_IFACE_COMB_NUM_CHANNELS, msg 1391 net/wireless/nl80211.c nla_put_u32(msg, NL80211_IFACE_COMB_MAXNUM, msg 1395 net/wireless/nl80211.c (nla_put_u32(msg, NL80211_IFACE_COMB_RADAR_DETECT_WIDTHS, msg 1397 net/wireless/nl80211.c nla_put_u32(msg, NL80211_IFACE_COMB_RADAR_DETECT_REGIONS, msg 1401 net/wireless/nl80211.c nla_put_u32(msg, NL80211_IFACE_COMB_BI_MIN_GCD, msg 1405 net/wireless/nl80211.c nla_nest_end(msg, nl_combi); msg 1408 net/wireless/nl80211.c nla_nest_end(msg, nl_combis); msg 1417 net/wireless/nl80211.c struct sk_buff *msg) msg 1425 net/wireless/nl80211.c nl_tcp = nla_nest_start_noflag(msg, msg 1430 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_WOWLAN_TCP_DATA_PAYLOAD, msg 1434 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_WOWLAN_TCP_DATA_PAYLOAD, msg 1438 net/wireless/nl80211.c if (tcp->seq && nla_put_flag(msg, NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ)) msg 1441 net/wireless/nl80211.c if (tcp->tok && nla_put(msg, NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN, msg 1445 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_WOWLAN_TCP_DATA_INTERVAL, msg 1449 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_WOWLAN_TCP_WAKE_PAYLOAD, msg 1453 net/wireless/nl80211.c nla_nest_end(msg, nl_tcp); msg 1457 net/wireless/nl80211.c static int nl80211_send_wowlan(struct sk_buff *msg, msg 1466 net/wireless/nl80211.c nl_wowlan = nla_nest_start_noflag(msg, msg 1472 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_ANY)) || msg 1474 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_DISCONNECT)) || msg 1476 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_MAGIC_PKT)) || msg 1478 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_GTK_REKEY_SUPPORTED)) || msg 1480 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE)) || msg 1482 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST)) || msg 1484 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE)) || msg 1486 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_RFKILL_RELEASE))) msg 1497 net/wireless/nl80211.c if (nla_put(msg, NL80211_WOWLAN_TRIG_PKT_PATTERN, msg 1503 net/wireless/nl80211.c nla_put_u32(msg, NL80211_WOWLAN_TRIG_NET_DETECT, msg 1507 net/wireless/nl80211.c if (large && nl80211_send_wowlan_tcp_caps(rdev, msg)) msg 1510 net/wireless/nl80211.c nla_nest_end(msg, nl_wowlan); msg 1516 net/wireless/nl80211.c static int nl80211_send_coalesce(struct sk_buff *msg, msg 1531 net/wireless/nl80211.c if (nla_put(msg, NL80211_ATTR_COALESCE_RULE, sizeof(rule), &rule)) msg 1538 net/wireless/nl80211.c nl80211_send_iftype_data(struct sk_buff *msg, msg 1543 net/wireless/nl80211.c if (nl80211_put_iftypes(msg, NL80211_BAND_IFTYPE_ATTR_IFTYPES, msg 1548 net/wireless/nl80211.c if (nla_put(msg, NL80211_BAND_IFTYPE_ATTR_HE_CAP_MAC, msg 1551 net/wireless/nl80211.c nla_put(msg, NL80211_BAND_IFTYPE_ATTR_HE_CAP_PHY, msg 1554 net/wireless/nl80211.c nla_put(msg, NL80211_BAND_IFTYPE_ATTR_HE_CAP_MCS_SET, msg 1557 net/wireless/nl80211.c nla_put(msg, NL80211_BAND_IFTYPE_ATTR_HE_CAP_PPE, msg 1565 net/wireless/nl80211.c static int nl80211_send_band_rateinfo(struct sk_buff *msg, msg 1574 net/wireless/nl80211.c (nla_put(msg, NL80211_BAND_ATTR_HT_MCS_SET, msg 1577 net/wireless/nl80211.c nla_put_u16(msg, NL80211_BAND_ATTR_HT_CAPA, msg 1579 net/wireless/nl80211.c nla_put_u8(msg, NL80211_BAND_ATTR_HT_AMPDU_FACTOR, msg 1581 net/wireless/nl80211.c nla_put_u8(msg, NL80211_BAND_ATTR_HT_AMPDU_DENSITY, msg 1587 net/wireless/nl80211.c (nla_put(msg, NL80211_BAND_ATTR_VHT_MCS_SET, msg 1590 net/wireless/nl80211.c nla_put_u32(msg, NL80211_BAND_ATTR_VHT_CAPA, msg 1596 net/wireless/nl80211.c nla_nest_start_noflag(msg, msg 1606 net/wireless/nl80211.c iftdata = nla_nest_start_noflag(msg, i + 1); msg 1610 net/wireless/nl80211.c err = nl80211_send_iftype_data(msg, msg 1615 net/wireless/nl80211.c nla_nest_end(msg, iftdata); msg 1618 net/wireless/nl80211.c nla_nest_end(msg, nl_iftype_data); msg 1623 net/wireless/nl80211.c (nla_put_u8(msg, NL80211_BAND_ATTR_EDMG_CHANNELS, msg 1625 net/wireless/nl80211.c nla_put_u8(msg, NL80211_BAND_ATTR_EDMG_BW_CONFIG, msg 1631 net/wireless/nl80211.c nl_rates = nla_nest_start_noflag(msg, NL80211_BAND_ATTR_RATES); msg 1636 net/wireless/nl80211.c nl_rate = nla_nest_start_noflag(msg, i); msg 1641 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_BITRATE_ATTR_RATE, msg 1645 net/wireless/nl80211.c nla_put_flag(msg, msg 1649 net/wireless/nl80211.c nla_nest_end(msg, nl_rate); msg 1652 net/wireless/nl80211.c nla_nest_end(msg, nl_rates); msg 1658 net/wireless/nl80211.c nl80211_send_mgmt_stypes(struct sk_buff *msg, msg 1669 net/wireless/nl80211.c nl_ifs = nla_nest_start_noflag(msg, NL80211_ATTR_TX_FRAME_TYPES); msg 1674 net/wireless/nl80211.c nl_ftypes = nla_nest_start_noflag(msg, ift); msg 1681 net/wireless/nl80211.c nla_put_u16(msg, NL80211_ATTR_FRAME_TYPE, msg 1687 net/wireless/nl80211.c nla_nest_end(msg, nl_ftypes); msg 1690 net/wireless/nl80211.c nla_nest_end(msg, nl_ifs); msg 1692 net/wireless/nl80211.c nl_ifs = nla_nest_start_noflag(msg, NL80211_ATTR_RX_FRAME_TYPES); msg 1697 net/wireless/nl80211.c nl_ftypes = nla_nest_start_noflag(msg, ift); msg 1704 net/wireless/nl80211.c nla_put_u16(msg, NL80211_ATTR_FRAME_TYPE, msg 1710 net/wireless/nl80211.c nla_nest_end(msg, nl_ftypes); msg 1712 net/wireless/nl80211.c nla_nest_end(msg, nl_ifs); msg 1721 net/wireless/nl80211.c if (nla_put_u32(msg, i, NL80211_CMD_ ## n)) \ msg 1727 net/wireless/nl80211.c struct sk_buff *msg) msg 1760 net/wireless/nl80211.c if (nla_put_u32(msg, i, NL80211_CMD_SET_WIPHY_NETNS)) msg 1766 net/wireless/nl80211.c if (nla_put_u32(msg, i, NL80211_CMD_SET_CHANNEL)) msg 1780 net/wireless/nl80211.c if (nla_put_u32(msg, i, NL80211_CMD_REGISTER_BEACONS)) msg 1791 net/wireless/nl80211.c if (nla_put_u32(msg, i, NL80211_CMD_CONNECT)) msg 1797 net/wireless/nl80211.c if (nla_put_u32(msg, i, NL80211_CMD_DISCONNECT)) msg 1808 net/wireless/nl80211.c struct sk_buff *msg) msg 1815 net/wireless/nl80211.c ftm = nla_nest_start_noflag(msg, NL80211_PMSR_TYPE_FTM); msg 1819 net/wireless/nl80211.c if (cap->ftm.asap && nla_put_flag(msg, NL80211_PMSR_FTM_CAPA_ATTR_ASAP)) msg 1822 net/wireless/nl80211.c nla_put_flag(msg, NL80211_PMSR_FTM_CAPA_ATTR_NON_ASAP)) msg 1825 net/wireless/nl80211.c nla_put_flag(msg, NL80211_PMSR_FTM_CAPA_ATTR_REQ_LCI)) msg 1828 net/wireless/nl80211.c nla_put_flag(msg, NL80211_PMSR_FTM_CAPA_ATTR_REQ_CIVICLOC)) msg 1830 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_PMSR_FTM_CAPA_ATTR_PREAMBLES, msg 1833 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_PMSR_FTM_CAPA_ATTR_BANDWIDTHS, msg 1837 net/wireless/nl80211.c nla_put_u32(msg, NL80211_PMSR_FTM_CAPA_ATTR_MAX_BURSTS_EXPONENT, msg 1841 net/wireless/nl80211.c nla_put_u32(msg, NL80211_PMSR_FTM_CAPA_ATTR_MAX_FTMS_PER_BURST, msg 1845 net/wireless/nl80211.c nla_nest_end(msg, ftm); msg 1850 net/wireless/nl80211.c struct sk_buff *msg) msg 1863 net/wireless/nl80211.c pmsr = nla_nest_start_noflag(msg, NL80211_ATTR_PEER_MEASUREMENTS); msg 1867 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_PMSR_ATTR_MAX_PEERS, cap->max_peers)) msg 1871 net/wireless/nl80211.c nla_put_flag(msg, NL80211_PMSR_ATTR_REPORT_AP_TSF)) msg 1875 net/wireless/nl80211.c nla_put_flag(msg, NL80211_PMSR_ATTR_RANDOMIZE_MAC_ADDR)) msg 1878 net/wireless/nl80211.c caps = nla_nest_start_noflag(msg, NL80211_PMSR_ATTR_TYPE_CAPA); msg 1882 net/wireless/nl80211.c if (nl80211_send_pmsr_ftm_capa(cap, msg)) msg 1885 net/wireless/nl80211.c nla_nest_end(msg, caps); msg 1886 net/wireless/nl80211.c nla_nest_end(msg, pmsr); msg 1900 net/wireless/nl80211.c struct sk_buff *msg, u32 portid, u32 seq, msg 1914 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, portid, seq, flags, cmd); msg 1921 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 1922 net/wireless/nl80211.c nla_put_string(msg, NL80211_ATTR_WIPHY_NAME, msg 1924 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_GENERATION, msg 1933 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_ATTR_WIPHY_RETRY_SHORT, msg 1935 net/wireless/nl80211.c nla_put_u8(msg, NL80211_ATTR_WIPHY_RETRY_LONG, msg 1937 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_WIPHY_FRAG_THRESHOLD, msg 1939 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_WIPHY_RTS_THRESHOLD, msg 1941 net/wireless/nl80211.c nla_put_u8(msg, NL80211_ATTR_WIPHY_COVERAGE_CLASS, msg 1943 net/wireless/nl80211.c nla_put_u8(msg, NL80211_ATTR_MAX_NUM_SCAN_SSIDS, msg 1945 net/wireless/nl80211.c nla_put_u8(msg, NL80211_ATTR_MAX_NUM_SCHED_SCAN_SSIDS, msg 1947 net/wireless/nl80211.c nla_put_u16(msg, NL80211_ATTR_MAX_SCAN_IE_LEN, msg 1949 net/wireless/nl80211.c nla_put_u16(msg, NL80211_ATTR_MAX_SCHED_SCAN_IE_LEN, msg 1951 net/wireless/nl80211.c nla_put_u8(msg, NL80211_ATTR_MAX_MATCH_SETS, msg 1953 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_MAX_NUM_SCHED_SCAN_PLANS, msg 1955 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_MAX_SCAN_PLAN_INTERVAL, msg 1957 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_MAX_SCAN_PLAN_ITERATIONS, msg 1962 net/wireless/nl80211.c nla_put_flag(msg, NL80211_ATTR_SUPPORT_IBSS_RSN)) msg 1965 net/wireless/nl80211.c nla_put_flag(msg, NL80211_ATTR_SUPPORT_MESH_AUTH)) msg 1968 net/wireless/nl80211.c nla_put_flag(msg, NL80211_ATTR_SUPPORT_AP_UAPSD)) msg 1971 net/wireless/nl80211.c nla_put_flag(msg, NL80211_ATTR_ROAM_SUPPORT)) msg 1974 net/wireless/nl80211.c nla_put_flag(msg, NL80211_ATTR_TDLS_SUPPORT)) msg 1977 net/wireless/nl80211.c nla_put_flag(msg, NL80211_ATTR_TDLS_EXTERNAL_SETUP)) msg 1984 net/wireless/nl80211.c if (nla_put(msg, NL80211_ATTR_CIPHER_SUITES, msg 1989 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_ATTR_MAX_NUM_PMKIDS, msg 1994 net/wireless/nl80211.c nla_put_flag(msg, NL80211_ATTR_CONTROL_PORT_ETHERTYPE)) msg 1997 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY_ANTENNA_AVAIL_TX, msg 1999 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_WIPHY_ANTENNA_AVAIL_RX, msg 2004 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_PROBE_RESP_OFFLOAD, msg 2016 net/wireless/nl80211.c if (nla_put_u32(msg, msg 2019 net/wireless/nl80211.c nla_put_u32(msg, msg 2031 net/wireless/nl80211.c if (nl80211_put_iftypes(msg, NL80211_ATTR_SUPPORTED_IFTYPES, msg 2039 net/wireless/nl80211.c nl_bands = nla_nest_start_noflag(msg, msg 2053 net/wireless/nl80211.c nl_band = nla_nest_start_noflag(msg, band); msg 2059 net/wireless/nl80211.c if (nl80211_send_band_rateinfo(msg, sband)) msg 2067 net/wireless/nl80211.c nl_freqs = nla_nest_start_noflag(msg, msg 2075 net/wireless/nl80211.c nl_freq = nla_nest_start_noflag(msg, msg 2083 net/wireless/nl80211.c msg, &rdev->wiphy, chan, msg 2087 net/wireless/nl80211.c nla_nest_end(msg, nl_freq); msg 2095 net/wireless/nl80211.c nla_nest_end(msg, nl_freqs); msg 2098 net/wireless/nl80211.c nla_nest_end(msg, nl_band); msg 2107 net/wireless/nl80211.c nla_nest_end(msg, nl_bands); msg 2121 net/wireless/nl80211.c nl_cmds = nla_nest_start_noflag(msg, msg 2126 net/wireless/nl80211.c i = nl80211_add_commands_unsplit(rdev, msg); msg 2144 net/wireless/nl80211.c nla_nest_end(msg, nl_cmds); msg 2152 net/wireless/nl80211.c nla_put_u32(msg, msg 2158 net/wireless/nl80211.c nla_put_flag(msg, NL80211_ATTR_OFFCHANNEL_TX_OK)) msg 2161 net/wireless/nl80211.c if (nl80211_send_mgmt_stypes(msg, mgmt_stypes)) msg 2169 net/wireless/nl80211.c if (nl80211_send_wowlan(msg, rdev, state->split)) msg 2179 net/wireless/nl80211.c if (nl80211_put_iftypes(msg, NL80211_ATTR_SOFTWARE_IFTYPES, msg 2183 net/wireless/nl80211.c if (nl80211_put_iface_combinations(&rdev->wiphy, msg, msg 2193 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_DEVICE_AP_SME, msg 2205 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_FEATURE_FLAGS, features)) msg 2209 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_HT_CAPABILITY_MASK, msg 2216 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_MAC_ACL_MAX, msg 2234 net/wireless/nl80211.c (nla_put(msg, NL80211_ATTR_EXT_CAPA, msg 2237 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_EXT_CAPA_MASK, msg 2243 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_VHT_CAPABILITY_MASK, msg 2248 net/wireless/nl80211.c if (nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, msg 2253 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC_MASK, ETH_ALEN, msg 2260 net/wireless/nl80211.c attr = nla_nest_start(msg, NL80211_ATTR_MAC_ADDRS); msg 2265 net/wireless/nl80211.c if (nla_put(msg, i + 1, ETH_ALEN, msg 2269 net/wireless/nl80211.c nla_nest_end(msg, attr); msg 2275 net/wireless/nl80211.c if (nl80211_send_coalesce(msg, rdev)) msg 2279 net/wireless/nl80211.c (nla_put_flag(msg, NL80211_ATTR_SUPPORT_5_MHZ) || msg 2280 net/wireless/nl80211.c nla_put_flag(msg, NL80211_ATTR_SUPPORT_10_MHZ))) msg 2284 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_MAX_AP_ASSOC_STA, msg 2295 net/wireless/nl80211.c nested = nla_nest_start_noflag(msg, msg 2302 net/wireless/nl80211.c if (nla_put(msg, i + 1, sizeof(*info), info)) msg 2305 net/wireless/nl80211.c nla_nest_end(msg, nested); msg 2312 net/wireless/nl80211.c nested = nla_nest_start_noflag(msg, msg 2319 net/wireless/nl80211.c if (nla_put(msg, i + 1, sizeof(*info), info)) msg 2322 net/wireless/nl80211.c nla_nest_end(msg, nested); msg 2328 net/wireless/nl80211.c nla_put_u8(msg, NL80211_ATTR_MAX_CSA_COUNTERS, msg 2333 net/wireless/nl80211.c nla_put_flag(msg, NL80211_ATTR_WIPHY_SELF_MANAGED_REG)) msg 2337 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_SCHED_SCAN_MAX_REQS, msg 2341 net/wireless/nl80211.c if (nla_put(msg, NL80211_ATTR_EXT_FEATURES, msg 2350 net/wireless/nl80211.c nested = nla_nest_start_noflag(msg, msg 2358 net/wireless/nl80211.c nla_put_flag(msg, i)) msg 2363 net/wireless/nl80211.c nla_nest_end(msg, nested); msg 2373 net/wireless/nl80211.c nested = nla_nest_start_noflag(msg, msg 2384 net/wireless/nl80211.c nested_ext_capab = nla_nest_start_noflag(msg, msg 2387 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFTYPE, msg 2389 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_EXT_CAPA, msg 2392 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_EXT_CAPA_MASK, msg 2397 net/wireless/nl80211.c nla_nest_end(msg, nested_ext_capab); msg 2401 net/wireless/nl80211.c nla_nest_end(msg, nested); msg 2408 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_BANDS, msg 2419 net/wireless/nl80211.c !nl80211_put_txq_stats(msg, &txqstats, msg 2423 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_TXQ_LIMIT, msg 2426 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_TXQ_MEMORY_LIMIT, msg 2429 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_TXQ_QUANTUM, msg 2437 net/wireless/nl80211.c if (nl80211_send_pmsr_capa(rdev, msg)) msg 2444 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_AKM_SUITES, msg 2454 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 2458 net/wireless/nl80211.c genlmsg_cancel(msg, hdr); msg 2591 net/wireless/nl80211.c struct sk_buff *msg; msg 2595 net/wireless/nl80211.c msg = nlmsg_new(4096, GFP_KERNEL); msg 2596 net/wireless/nl80211.c if (!msg) msg 2599 net/wireless/nl80211.c if (nl80211_send_wiphy(rdev, NL80211_CMD_NEW_WIPHY, msg, msg 2602 net/wireless/nl80211.c nlmsg_free(msg); msg 2606 net/wireless/nl80211.c return genlmsg_reply(msg, info); msg 3154 net/wireless/nl80211.c static int nl80211_send_chandef(struct sk_buff *msg, msg 3160 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY_FREQ, msg 3167 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY_CHANNEL_TYPE, msg 3174 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_CHANNEL_WIDTH, chandef->width)) msg 3176 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_CENTER_FREQ1, chandef->center_freq1)) msg 3179 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_CENTER_FREQ2, chandef->center_freq2)) msg 3184 net/wireless/nl80211.c static int nl80211_send_iface(struct sk_buff *msg, u32 portid, u32 seq, int flags, msg 3196 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, portid, seq, flags, cmd); msg 3201 net/wireless/nl80211.c (nla_put_u32(msg, NL80211_ATTR_IFINDEX, dev->ifindex) || msg 3202 net/wireless/nl80211.c nla_put_string(msg, NL80211_ATTR_IFNAME, dev->name))) msg 3205 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 3206 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFTYPE, wdev->iftype) || msg 3207 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), msg 3209 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, wdev_address(wdev)) || msg 3210 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_GENERATION, msg 3213 net/wireless/nl80211.c nla_put_u8(msg, NL80211_ATTR_4ADDR, wdev->use_4addr)) msg 3222 net/wireless/nl80211.c if (nl80211_send_chandef(msg, &chandef)) msg 3232 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_WIPHY_TX_POWER_LEVEL, msg 3241 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_SSID, wdev->ssid_len, wdev->ssid)) msg 3254 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_SSID, ssid_ie[1], ssid_ie + 2)) msg 3270 net/wireless/nl80211.c !nl80211_put_txq_stats(msg, &txqstats, msg 3275 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 3283 net/wireless/nl80211.c genlmsg_cancel(msg, hdr); msg 3364 net/wireless/nl80211.c struct sk_buff *msg; msg 3368 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 3369 net/wireless/nl80211.c if (!msg) msg 3372 net/wireless/nl80211.c if (nl80211_send_iface(msg, info->snd_portid, info->snd_seq, 0, msg 3374 net/wireless/nl80211.c nlmsg_free(msg); msg 3378 net/wireless/nl80211.c return genlmsg_reply(msg, info); msg 3576 net/wireless/nl80211.c struct sk_buff *msg; msg 3617 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 3618 net/wireless/nl80211.c if (!msg) msg 3625 net/wireless/nl80211.c nlmsg_free(msg); msg 3628 net/wireless/nl80211.c nlmsg_free(msg); msg 3660 net/wireless/nl80211.c if (nl80211_send_iface(msg, info->snd_portid, info->snd_seq, 0, msg 3662 net/wireless/nl80211.c nlmsg_free(msg); msg 3666 net/wireless/nl80211.c return genlmsg_reply(msg, info); msg 3708 net/wireless/nl80211.c struct sk_buff *msg; msg 3719 net/wireless/nl80211.c nla_put(cookie->msg, NL80211_ATTR_KEY_DATA, msg 3722 net/wireless/nl80211.c nla_put(cookie->msg, NL80211_ATTR_KEY_SEQ, msg 3725 net/wireless/nl80211.c nla_put_u32(cookie->msg, NL80211_ATTR_KEY_CIPHER, msg 3729 net/wireless/nl80211.c key = nla_nest_start_noflag(cookie->msg, NL80211_ATTR_KEY); msg 3734 net/wireless/nl80211.c nla_put(cookie->msg, NL80211_KEY_DATA, msg 3737 net/wireless/nl80211.c nla_put(cookie->msg, NL80211_KEY_SEQ, msg 3740 net/wireless/nl80211.c nla_put_u32(cookie->msg, NL80211_KEY_CIPHER, msg 3744 net/wireless/nl80211.c if (nla_put_u8(cookie->msg, NL80211_KEY_IDX, cookie->idx)) msg 3747 net/wireless/nl80211.c nla_nest_end(cookie->msg, key); msg 3766 net/wireless/nl80211.c struct sk_buff *msg; msg 3790 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 3791 net/wireless/nl80211.c if (!msg) msg 3794 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0, msg 3799 net/wireless/nl80211.c cookie.msg = msg; msg 3802 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_IFINDEX, dev->ifindex) || msg 3803 net/wireless/nl80211.c nla_put_u8(msg, NL80211_ATTR_KEY_IDX, key_idx)) msg 3806 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, mac_addr)) msg 3818 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 3819 net/wireless/nl80211.c return genlmsg_reply(msg, info); msg 3824 net/wireless/nl80211.c nlmsg_free(msg); msg 4952 net/wireless/nl80211.c bool nl80211_put_sta_rate(struct sk_buff *msg, struct rate_info *info, int attr) msg 4959 net/wireless/nl80211.c rate = nla_nest_start_noflag(msg, attr); msg 4968 net/wireless/nl80211.c nla_put_u32(msg, NL80211_RATE_INFO_BITRATE32, bitrate)) msg 4971 net/wireless/nl80211.c nla_put_u16(msg, NL80211_RATE_INFO_BITRATE, bitrate_compat)) msg 5001 net/wireless/nl80211.c if (rate_flg && nla_put_flag(msg, rate_flg)) msg 5005 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_RATE_INFO_MCS, info->mcs)) msg 5008 net/wireless/nl80211.c nla_put_flag(msg, NL80211_RATE_INFO_SHORT_GI)) msg 5011 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_RATE_INFO_VHT_MCS, info->mcs)) msg 5013 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_RATE_INFO_VHT_NSS, info->nss)) msg 5016 net/wireless/nl80211.c nla_put_flag(msg, NL80211_RATE_INFO_SHORT_GI)) msg 5019 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_RATE_INFO_HE_MCS, info->mcs)) msg 5021 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_RATE_INFO_HE_NSS, info->nss)) msg 5023 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_RATE_INFO_HE_GI, info->he_gi)) msg 5025 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_RATE_INFO_HE_DCM, info->he_dcm)) msg 5028 net/wireless/nl80211.c nla_put_u8(msg, NL80211_RATE_INFO_HE_RU_ALLOC, msg 5033 net/wireless/nl80211.c nla_nest_end(msg, rate); msg 5037 net/wireless/nl80211.c static bool nl80211_put_signal(struct sk_buff *msg, u8 mask, s8 *signal, msg 5046 net/wireless/nl80211.c attr = nla_nest_start_noflag(msg, id); msg 5054 net/wireless/nl80211.c if (nla_put_u8(msg, i, signal[i])) msg 5058 net/wireless/nl80211.c nla_nest_end(msg, attr); msg 5063 net/wireless/nl80211.c static int nl80211_send_station(struct sk_buff *msg, u32 cmd, u32 portid, msg 5072 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, portid, seq, flags, cmd); msg 5078 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_IFINDEX, dev->ifindex) || msg 5079 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, mac_addr) || msg 5080 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_GENERATION, sinfo->generation)) msg 5083 net/wireless/nl80211.c sinfoattr = nla_nest_start_noflag(msg, NL80211_ATTR_STA_INFO); msg 5090 net/wireless/nl80211.c nla_put_ ## type(msg, NL80211_STA_INFO_ ## attr, \ msg 5096 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_STA_INFO_ ## attr, \ msg 5107 net/wireless/nl80211.c nla_put_u32(msg, NL80211_STA_INFO_RX_BYTES, msg 5113 net/wireless/nl80211.c nla_put_u32(msg, NL80211_STA_INFO_TX_BYTES, msg 5138 net/wireless/nl80211.c if (!nl80211_put_signal(msg, sinfo->chains, msg 5144 net/wireless/nl80211.c if (!nl80211_put_signal(msg, sinfo->chains, msg 5150 net/wireless/nl80211.c if (!nl80211_put_sta_rate(msg, &sinfo->txrate, msg 5155 net/wireless/nl80211.c if (!nl80211_put_sta_rate(msg, &sinfo->rxrate, msg 5173 net/wireless/nl80211.c bss_param = nla_nest_start_noflag(msg, msg 5179 net/wireless/nl80211.c nla_put_flag(msg, NL80211_STA_BSS_PARAM_CTS_PROT)) || msg 5181 net/wireless/nl80211.c nla_put_flag(msg, NL80211_STA_BSS_PARAM_SHORT_PREAMBLE)) || msg 5183 net/wireless/nl80211.c nla_put_flag(msg, NL80211_STA_BSS_PARAM_SHORT_SLOT_TIME)) || msg 5184 net/wireless/nl80211.c nla_put_u8(msg, NL80211_STA_BSS_PARAM_DTIM_PERIOD, msg 5186 net/wireless/nl80211.c nla_put_u16(msg, NL80211_STA_BSS_PARAM_BEACON_INTERVAL, msg 5190 net/wireless/nl80211.c nla_nest_end(msg, bss_param); msg 5193 net/wireless/nl80211.c nla_put(msg, NL80211_STA_INFO_STA_FLAGS, msg 5217 net/wireless/nl80211.c tidsattr = nla_nest_start_noflag(msg, msg 5231 net/wireless/nl80211.c tidattr = nla_nest_start_noflag(msg, tid + 1); msg 5237 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_TID_STATS_ ## attr, \ msg 5250 net/wireless/nl80211.c !nl80211_put_txq_stats(msg, &tidstats->txq_stats, msg 5254 net/wireless/nl80211.c nla_nest_end(msg, tidattr); msg 5257 net/wireless/nl80211.c nla_nest_end(msg, tidsattr); msg 5260 net/wireless/nl80211.c nla_nest_end(msg, sinfoattr); msg 5263 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_IE, sinfo->assoc_req_ies_len, msg 5268 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 5273 net/wireless/nl80211.c genlmsg_cancel(msg, hdr); msg 5335 net/wireless/nl80211.c struct sk_buff *msg; msg 5353 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 5354 net/wireless/nl80211.c if (!msg) { msg 5359 net/wireless/nl80211.c if (nl80211_send_station(msg, NL80211_CMD_NEW_STATION, msg 5362 net/wireless/nl80211.c nlmsg_free(msg); msg 5366 net/wireless/nl80211.c return genlmsg_reply(msg, info); msg 6099 net/wireless/nl80211.c static int nl80211_send_mpath(struct sk_buff *msg, u32 portid, u32 seq, msg 6107 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, portid, seq, flags, NL80211_CMD_NEW_MPATH); msg 6111 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_IFINDEX, dev->ifindex) || msg 6112 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, dst) || msg 6113 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MPATH_NEXT_HOP, ETH_ALEN, next_hop) || msg 6114 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_GENERATION, pinfo->generation)) msg 6117 net/wireless/nl80211.c pinfoattr = nla_nest_start_noflag(msg, NL80211_ATTR_MPATH_INFO); msg 6121 net/wireless/nl80211.c nla_put_u32(msg, NL80211_MPATH_INFO_FRAME_QLEN, msg 6125 net/wireless/nl80211.c nla_put_u32(msg, NL80211_MPATH_INFO_SN, pinfo->sn)) || msg 6127 net/wireless/nl80211.c nla_put_u32(msg, NL80211_MPATH_INFO_METRIC, msg 6130 net/wireless/nl80211.c nla_put_u32(msg, NL80211_MPATH_INFO_EXPTIME, msg 6133 net/wireless/nl80211.c nla_put_u8(msg, NL80211_MPATH_INFO_FLAGS, msg 6136 net/wireless/nl80211.c nla_put_u32(msg, NL80211_MPATH_INFO_DISCOVERY_TIMEOUT, msg 6139 net/wireless/nl80211.c nla_put_u8(msg, NL80211_MPATH_INFO_DISCOVERY_RETRIES, msg 6142 net/wireless/nl80211.c nla_put_u8(msg, NL80211_MPATH_INFO_HOP_COUNT, msg 6145 net/wireless/nl80211.c nla_put_u32(msg, NL80211_MPATH_INFO_PATH_CHANGE, msg 6149 net/wireless/nl80211.c nla_nest_end(msg, pinfoattr); msg 6151 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 6155 net/wireless/nl80211.c genlmsg_cancel(msg, hdr); msg 6216 net/wireless/nl80211.c struct sk_buff *msg; msg 6237 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 6238 net/wireless/nl80211.c if (!msg) msg 6241 net/wireless/nl80211.c if (nl80211_send_mpath(msg, info->snd_portid, info->snd_seq, 0, msg 6243 net/wireless/nl80211.c nlmsg_free(msg); msg 6247 net/wireless/nl80211.c return genlmsg_reply(msg, info); msg 6324 net/wireless/nl80211.c struct sk_buff *msg; msg 6345 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 6346 net/wireless/nl80211.c if (!msg) msg 6349 net/wireless/nl80211.c if (nl80211_send_mpath(msg, info->snd_portid, info->snd_seq, 0, msg 6351 net/wireless/nl80211.c nlmsg_free(msg); msg 6355 net/wireless/nl80211.c return genlmsg_reply(msg, info); msg 6544 net/wireless/nl80211.c struct sk_buff *msg; msg 6564 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 6565 net/wireless/nl80211.c if (!msg) msg 6567 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0, msg 6571 net/wireless/nl80211.c pinfoattr = nla_nest_start_noflag(msg, NL80211_ATTR_MESH_CONFIG); msg 6574 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_IFINDEX, dev->ifindex) || msg 6575 net/wireless/nl80211.c nla_put_u16(msg, NL80211_MESHCONF_RETRY_TIMEOUT, msg 6577 net/wireless/nl80211.c nla_put_u16(msg, NL80211_MESHCONF_CONFIRM_TIMEOUT, msg 6579 net/wireless/nl80211.c nla_put_u16(msg, NL80211_MESHCONF_HOLDING_TIMEOUT, msg 6581 net/wireless/nl80211.c nla_put_u16(msg, NL80211_MESHCONF_MAX_PEER_LINKS, msg 6583 net/wireless/nl80211.c nla_put_u8(msg, NL80211_MESHCONF_MAX_RETRIES, msg 6585 net/wireless/nl80211.c nla_put_u8(msg, NL80211_MESHCONF_TTL, msg 6587 net/wireless/nl80211.c nla_put_u8(msg, NL80211_MESHCONF_ELEMENT_TTL, msg 6589 net/wireless/nl80211.c nla_put_u8(msg, NL80211_MESHCONF_AUTO_OPEN_PLINKS, msg 6591 net/wireless/nl80211.c nla_put_u32(msg, NL80211_MESHCONF_SYNC_OFFSET_MAX_NEIGHBOR, msg 6593 net/wireless/nl80211.c nla_put_u8(msg, NL80211_MESHCONF_HWMP_MAX_PREQ_RETRIES, msg 6595 net/wireless/nl80211.c nla_put_u32(msg, NL80211_MESHCONF_PATH_REFRESH_TIME, msg 6597 net/wireless/nl80211.c nla_put_u16(msg, NL80211_MESHCONF_MIN_DISCOVERY_TIMEOUT, msg 6599 net/wireless/nl80211.c nla_put_u32(msg, NL80211_MESHCONF_HWMP_ACTIVE_PATH_TIMEOUT, msg 6601 net/wireless/nl80211.c nla_put_u16(msg, NL80211_MESHCONF_HWMP_PREQ_MIN_INTERVAL, msg 6603 net/wireless/nl80211.c nla_put_u16(msg, NL80211_MESHCONF_HWMP_PERR_MIN_INTERVAL, msg 6605 net/wireless/nl80211.c nla_put_u16(msg, NL80211_MESHCONF_HWMP_NET_DIAM_TRVS_TIME, msg 6607 net/wireless/nl80211.c nla_put_u8(msg, NL80211_MESHCONF_HWMP_ROOTMODE, msg 6609 net/wireless/nl80211.c nla_put_u16(msg, NL80211_MESHCONF_HWMP_RANN_INTERVAL, msg 6611 net/wireless/nl80211.c nla_put_u8(msg, NL80211_MESHCONF_GATE_ANNOUNCEMENTS, msg 6613 net/wireless/nl80211.c nla_put_u8(msg, NL80211_MESHCONF_FORWARDING, msg 6615 net/wireless/nl80211.c nla_put_s32(msg, NL80211_MESHCONF_RSSI_THRESHOLD, msg 6617 net/wireless/nl80211.c nla_put_u32(msg, NL80211_MESHCONF_HT_OPMODE, msg 6619 net/wireless/nl80211.c nla_put_u32(msg, NL80211_MESHCONF_HWMP_PATH_TO_ROOT_TIMEOUT, msg 6621 net/wireless/nl80211.c nla_put_u16(msg, NL80211_MESHCONF_HWMP_ROOT_INTERVAL, msg 6623 net/wireless/nl80211.c nla_put_u16(msg, NL80211_MESHCONF_HWMP_CONFIRMATION_INTERVAL, msg 6625 net/wireless/nl80211.c nla_put_u32(msg, NL80211_MESHCONF_POWER_MODE, msg 6627 net/wireless/nl80211.c nla_put_u16(msg, NL80211_MESHCONF_AWAKE_WINDOW, msg 6629 net/wireless/nl80211.c nla_put_u32(msg, NL80211_MESHCONF_PLINK_TIMEOUT, msg 6631 net/wireless/nl80211.c nla_put_u8(msg, NL80211_MESHCONF_CONNECTED_TO_GATE, msg 6634 net/wireless/nl80211.c nla_nest_end(msg, pinfoattr); msg 6635 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 6636 net/wireless/nl80211.c return genlmsg_reply(msg, info); msg 6640 net/wireless/nl80211.c nlmsg_free(msg); msg 6936 net/wireless/nl80211.c struct sk_buff *msg) msg 6941 net/wireless/nl80211.c if (nla_put_string(msg, NL80211_ATTR_REG_ALPHA2, regdom->alpha2) || msg 6943 net/wireless/nl80211.c nla_put_u8(msg, NL80211_ATTR_DFS_REGION, regdom->dfs_region))) msg 6946 net/wireless/nl80211.c nl_reg_rules = nla_nest_start_noflag(msg, NL80211_ATTR_REG_RULES); msg 6961 net/wireless/nl80211.c nl_reg_rule = nla_nest_start_noflag(msg, i); msg 6970 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_REG_RULE_FLAGS, msg 6972 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_FREQ_RANGE_START, msg 6974 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_FREQ_RANGE_END, msg 6976 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_FREQ_RANGE_MAX_BW, msg 6978 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_POWER_RULE_MAX_ANT_GAIN, msg 6980 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_POWER_RULE_MAX_EIRP, msg 6982 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_DFS_CAC_TIME, msg 6986 net/wireless/nl80211.c nla_nest_end(msg, nl_reg_rule); msg 6989 net/wireless/nl80211.c nla_nest_end(msg, nl_reg_rules); msg 7001 net/wireless/nl80211.c struct sk_buff *msg; msg 7004 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 7005 net/wireless/nl80211.c if (!msg) msg 7008 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0, msg 7018 net/wireless/nl80211.c nlmsg_free(msg); msg 7029 net/wireless/nl80211.c nlmsg_free(msg); msg 7034 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_WIPHY, get_wiphy_idx(wiphy))) msg 7039 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_USER_REG_HINT_TYPE, msg 7048 net/wireless/nl80211.c if (nl80211_put_regdom(regdom, msg)) msg 7053 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 7054 net/wireless/nl80211.c return genlmsg_reply(msg, info); msg 7060 net/wireless/nl80211.c nlmsg_free(msg); msg 7064 net/wireless/nl80211.c static int nl80211_send_regdom(struct sk_buff *msg, struct netlink_callback *cb, msg 7068 net/wireless/nl80211.c void *hdr = nl80211hdr_put(msg, NETLINK_CB(cb->skb).portid, seq, flags, msg 7076 net/wireless/nl80211.c if (nl80211_put_regdom(regdom, msg)) msg 7080 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_USER_REG_HINT_TYPE, msg 7085 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_WIPHY, get_wiphy_idx(wiphy))) msg 7089 net/wireless/nl80211.c nla_put_flag(msg, NL80211_ATTR_WIPHY_SELF_MANAGED_REG)) msg 7092 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 7096 net/wireless/nl80211.c genlmsg_cancel(msg, hdr); msg 8606 net/wireless/nl80211.c static int nl80211_send_bss(struct sk_buff *msg, struct netlink_callback *cb, msg 8619 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, NETLINK_CB(cb->skb).portid, seq, flags, msg 8626 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_GENERATION, rdev->bss_generation)) msg 8629 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, wdev->netdev->ifindex)) msg 8631 net/wireless/nl80211.c if (nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), msg 8635 net/wireless/nl80211.c bss = nla_nest_start_noflag(msg, NL80211_ATTR_BSS); msg 8639 net/wireless/nl80211.c nla_put(msg, NL80211_BSS_BSSID, ETH_ALEN, res->bssid))) msg 8645 net/wireless/nl80211.c nla_put_flag(msg, NL80211_BSS_PRESP_DATA)) msg 8653 net/wireless/nl80211.c if (nla_put_u64_64bit(msg, NL80211_BSS_TSF, ies->tsf, msg 8656 net/wireless/nl80211.c if (ies->len && nla_put(msg, NL80211_BSS_INFORMATION_ELEMENTS, msg 8664 net/wireless/nl80211.c if (nla_put_u64_64bit(msg, NL80211_BSS_BEACON_TSF, ies->tsf, msg 8667 net/wireless/nl80211.c if (ies->len && nla_put(msg, NL80211_BSS_BEACON_IES, msg 8674 net/wireless/nl80211.c nla_put_u16(msg, NL80211_BSS_BEACON_INTERVAL, res->beacon_interval)) msg 8676 net/wireless/nl80211.c if (nla_put_u16(msg, NL80211_BSS_CAPABILITY, res->capability) || msg 8677 net/wireless/nl80211.c nla_put_u32(msg, NL80211_BSS_FREQUENCY, res->channel->center_freq) || msg 8678 net/wireless/nl80211.c nla_put_u32(msg, NL80211_BSS_CHAN_WIDTH, res->scan_width) || msg 8679 net/wireless/nl80211.c nla_put_u32(msg, NL80211_BSS_SEEN_MS_AGO, msg 8684 net/wireless/nl80211.c (nla_put_u64_64bit(msg, NL80211_BSS_PARENT_TSF, msg 8686 net/wireless/nl80211.c nla_put(msg, NL80211_BSS_PARENT_BSSID, ETH_ALEN, msg 8691 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_BSS_LAST_SEEN_BOOTTIME, msg 8695 net/wireless/nl80211.c if (!nl80211_put_signal(msg, intbss->pub.chains, msg 8702 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_BSS_SIGNAL_MBM, res->signal)) msg 8706 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_BSS_SIGNAL_UNSPEC, res->signal)) msg 8717 net/wireless/nl80211.c nla_put_u32(msg, NL80211_BSS_STATUS, msg 8723 net/wireless/nl80211.c nla_put_u32(msg, NL80211_BSS_STATUS, msg 8731 net/wireless/nl80211.c nla_nest_end(msg, bss); msg 8733 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 8739 net/wireless/nl80211.c genlmsg_cancel(msg, hdr); msg 8792 net/wireless/nl80211.c static int nl80211_send_survey(struct sk_buff *msg, u32 portid, u32 seq, msg 8804 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, portid, seq, flags, msg 8809 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_IFINDEX, dev->ifindex)) msg 8812 net/wireless/nl80211.c infoattr = nla_nest_start_noflag(msg, NL80211_ATTR_SURVEY_INFO); msg 8817 net/wireless/nl80211.c nla_put_u32(msg, NL80211_SURVEY_INFO_FREQUENCY, msg 8822 net/wireless/nl80211.c nla_put_u8(msg, NL80211_SURVEY_INFO_NOISE, survey->noise)) msg 8825 net/wireless/nl80211.c nla_put_flag(msg, NL80211_SURVEY_INFO_IN_USE)) msg 8828 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_SURVEY_INFO_TIME, msg 8832 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_SURVEY_INFO_TIME_BUSY, msg 8836 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_SURVEY_INFO_TIME_EXT_BUSY, msg 8840 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_SURVEY_INFO_TIME_RX, msg 8844 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_SURVEY_INFO_TIME_TX, msg 8848 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_SURVEY_INFO_TIME_SCAN, msg 8852 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_SURVEY_INFO_TIME_BSS_RX, msg 8856 net/wireless/nl80211.c nla_nest_end(msg, infoattr); msg 8858 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 8862 net/wireless/nl80211.c genlmsg_cancel(msg, hdr); msg 10396 net/wireless/nl80211.c struct sk_buff *msg; msg 10436 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 10437 net/wireless/nl80211.c if (!msg) msg 10440 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0, msg 10453 net/wireless/nl80211.c if (nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, cookie, msg 10457 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 10459 net/wireless/nl80211.c return genlmsg_reply(msg, info); msg 10464 net/wireless/nl80211.c nlmsg_free(msg); msg 10548 net/wireless/nl80211.c struct sk_buff *msg = NULL; msg 10640 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 10641 net/wireless/nl80211.c if (!msg) msg 10644 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0, msg 10657 net/wireless/nl80211.c if (msg) { msg 10658 net/wireless/nl80211.c if (nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, cookie, msg 10662 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 10663 net/wireless/nl80211.c return genlmsg_reply(msg, info); msg 10671 net/wireless/nl80211.c nlmsg_free(msg); msg 10742 net/wireless/nl80211.c struct sk_buff *msg; msg 10751 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 10752 net/wireless/nl80211.c if (!msg) msg 10755 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0, msg 10767 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_PS_STATE, ps_state)) msg 10770 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 10771 net/wireless/nl80211.c return genlmsg_reply(msg, info); msg 10776 net/wireless/nl80211.c nlmsg_free(msg); msg 11136 net/wireless/nl80211.c static int nl80211_send_wowlan_patterns(struct sk_buff *msg, msg 11146 net/wireless/nl80211.c nl_pats = nla_nest_start_noflag(msg, NL80211_WOWLAN_TRIG_PKT_PATTERN); msg 11151 net/wireless/nl80211.c nl_pat = nla_nest_start_noflag(msg, i + 1); msg 11155 net/wireless/nl80211.c if (nla_put(msg, NL80211_PKTPAT_MASK, DIV_ROUND_UP(pat_len, 8), msg 11157 net/wireless/nl80211.c nla_put(msg, NL80211_PKTPAT_PATTERN, pat_len, msg 11159 net/wireless/nl80211.c nla_put_u32(msg, NL80211_PKTPAT_OFFSET, msg 11162 net/wireless/nl80211.c nla_nest_end(msg, nl_pat); msg 11164 net/wireless/nl80211.c nla_nest_end(msg, nl_pats); msg 11169 net/wireless/nl80211.c static int nl80211_send_wowlan_tcp(struct sk_buff *msg, msg 11177 net/wireless/nl80211.c nl_tcp = nla_nest_start_noflag(msg, msg 11182 net/wireless/nl80211.c if (nla_put_in_addr(msg, NL80211_WOWLAN_TCP_SRC_IPV4, tcp->src) || msg 11183 net/wireless/nl80211.c nla_put_in_addr(msg, NL80211_WOWLAN_TCP_DST_IPV4, tcp->dst) || msg 11184 net/wireless/nl80211.c nla_put(msg, NL80211_WOWLAN_TCP_DST_MAC, ETH_ALEN, tcp->dst_mac) || msg 11185 net/wireless/nl80211.c nla_put_u16(msg, NL80211_WOWLAN_TCP_SRC_PORT, tcp->src_port) || msg 11186 net/wireless/nl80211.c nla_put_u16(msg, NL80211_WOWLAN_TCP_DST_PORT, tcp->dst_port) || msg 11187 net/wireless/nl80211.c nla_put(msg, NL80211_WOWLAN_TCP_DATA_PAYLOAD, msg 11189 net/wireless/nl80211.c nla_put_u32(msg, NL80211_WOWLAN_TCP_DATA_INTERVAL, msg 11191 net/wireless/nl80211.c nla_put(msg, NL80211_WOWLAN_TCP_WAKE_PAYLOAD, msg 11193 net/wireless/nl80211.c nla_put(msg, NL80211_WOWLAN_TCP_WAKE_MASK, msg 11198 net/wireless/nl80211.c nla_put(msg, NL80211_WOWLAN_TCP_DATA_PAYLOAD_SEQ, msg 11203 net/wireless/nl80211.c nla_put(msg, NL80211_WOWLAN_TCP_DATA_PAYLOAD_TOKEN, msg 11208 net/wireless/nl80211.c nla_nest_end(msg, nl_tcp); msg 11213 net/wireless/nl80211.c static int nl80211_send_wowlan_nd(struct sk_buff *msg, msg 11222 net/wireless/nl80211.c nd = nla_nest_start_noflag(msg, NL80211_WOWLAN_TRIG_NET_DETECT); msg 11227 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_SCHED_SCAN_INTERVAL, msg 11231 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_SCHED_SCAN_DELAY, req->delay)) msg 11237 net/wireless/nl80211.c if (nla_put_s8(msg, NL80211_ATTR_SCHED_SCAN_RELATIVE_RSSI, msg 11243 net/wireless/nl80211.c if (nla_put(msg, NL80211_ATTR_SCHED_SCAN_RSSI_ADJUST, msg 11248 net/wireless/nl80211.c freqs = nla_nest_start_noflag(msg, NL80211_ATTR_SCAN_FREQUENCIES); msg 11253 net/wireless/nl80211.c if (nla_put_u32(msg, i, req->channels[i]->center_freq)) msg 11257 net/wireless/nl80211.c nla_nest_end(msg, freqs); msg 11260 net/wireless/nl80211.c matches = nla_nest_start_noflag(msg, msg 11266 net/wireless/nl80211.c match = nla_nest_start_noflag(msg, i); msg 11270 net/wireless/nl80211.c if (nla_put(msg, NL80211_SCHED_SCAN_MATCH_ATTR_SSID, msg 11274 net/wireless/nl80211.c nla_nest_end(msg, match); msg 11276 net/wireless/nl80211.c nla_nest_end(msg, matches); msg 11279 net/wireless/nl80211.c scan_plans = nla_nest_start_noflag(msg, NL80211_ATTR_SCHED_SCAN_PLANS); msg 11284 net/wireless/nl80211.c scan_plan = nla_nest_start_noflag(msg, i + 1); msg 11288 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_SCHED_SCAN_PLAN_INTERVAL, msg 11291 net/wireless/nl80211.c nla_put_u32(msg, NL80211_SCHED_SCAN_PLAN_ITERATIONS, msg 11294 net/wireless/nl80211.c nla_nest_end(msg, scan_plan); msg 11296 net/wireless/nl80211.c nla_nest_end(msg, scan_plans); msg 11298 net/wireless/nl80211.c nla_nest_end(msg, nd); msg 11306 net/wireless/nl80211.c struct sk_buff *msg; msg 11321 net/wireless/nl80211.c msg = nlmsg_new(size, GFP_KERNEL); msg 11322 net/wireless/nl80211.c if (!msg) msg 11325 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0, msg 11333 net/wireless/nl80211.c nl_wowlan = nla_nest_start_noflag(msg, msg 11339 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_ANY)) || msg 11341 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_DISCONNECT)) || msg 11343 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_MAGIC_PKT)) || msg 11345 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE)) || msg 11347 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST)) || msg 11349 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE)) || msg 11351 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_RFKILL_RELEASE))) msg 11354 net/wireless/nl80211.c if (nl80211_send_wowlan_patterns(msg, rdev)) msg 11357 net/wireless/nl80211.c if (nl80211_send_wowlan_tcp(msg, msg 11362 net/wireless/nl80211.c msg, msg 11366 net/wireless/nl80211.c nla_nest_end(msg, nl_wowlan); msg 11369 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 11370 net/wireless/nl80211.c return genlmsg_reply(msg, info); msg 11373 net/wireless/nl80211.c nlmsg_free(msg); msg 11760 net/wireless/nl80211.c static int nl80211_send_coalesce_rules(struct sk_buff *msg, msg 11770 net/wireless/nl80211.c nl_rules = nla_nest_start_noflag(msg, NL80211_ATTR_COALESCE_RULE); msg 11775 net/wireless/nl80211.c nl_rule = nla_nest_start_noflag(msg, i + 1); msg 11780 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_COALESCE_RULE_DELAY, msg 11784 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_COALESCE_RULE_CONDITION, msg 11788 net/wireless/nl80211.c nl_pats = nla_nest_start_noflag(msg, msg 11794 net/wireless/nl80211.c nl_pat = nla_nest_start_noflag(msg, j + 1); msg 11798 net/wireless/nl80211.c if (nla_put(msg, NL80211_PKTPAT_MASK, msg 11801 net/wireless/nl80211.c nla_put(msg, NL80211_PKTPAT_PATTERN, pat_len, msg 11803 net/wireless/nl80211.c nla_put_u32(msg, NL80211_PKTPAT_OFFSET, msg 11806 net/wireless/nl80211.c nla_nest_end(msg, nl_pat); msg 11808 net/wireless/nl80211.c nla_nest_end(msg, nl_pats); msg 11809 net/wireless/nl80211.c nla_nest_end(msg, nl_rule); msg 11811 net/wireless/nl80211.c nla_nest_end(msg, nl_rules); msg 11819 net/wireless/nl80211.c struct sk_buff *msg; msg 11825 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 11826 net/wireless/nl80211.c if (!msg) msg 11829 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0, msg 11834 net/wireless/nl80211.c if (rdev->coalesce && nl80211_send_coalesce_rules(msg, rdev)) msg 11837 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 11838 net/wireless/nl80211.c return genlmsg_reply(msg, info); msg 11841 net/wireless/nl80211.c nlmsg_free(msg); msg 12096 net/wireless/nl80211.c struct sk_buff *msg; msg 12112 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 12113 net/wireless/nl80211.c if (!msg) msg 12116 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0, msg 12129 net/wireless/nl80211.c if (nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, cookie, msg 12133 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 12135 net/wireless/nl80211.c return genlmsg_reply(msg, info); msg 12140 net/wireless/nl80211.c nlmsg_free(msg); msg 12337 net/wireless/nl80211.c struct sk_buff *msg = NULL; msg 12524 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 12525 net/wireless/nl80211.c if (!msg) { msg 12530 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0, msg 12542 net/wireless/nl80211.c nlmsg_free(msg); msg 12547 net/wireless/nl80211.c if (nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, func->cookie, msg 12551 net/wireless/nl80211.c func_attr = nla_nest_start_noflag(msg, NL80211_ATTR_NAN_FUNC); msg 12555 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_NAN_FUNC_INSTANCE_ID, msg 12559 net/wireless/nl80211.c nla_nest_end(msg, func_attr); msg 12561 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 12562 net/wireless/nl80211.c return genlmsg_reply(msg, info); msg 12565 net/wireless/nl80211.c nlmsg_free(msg); msg 12640 net/wireless/nl80211.c struct sk_buff *msg; msg 12646 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 12647 net/wireless/nl80211.c if (!msg) msg 12650 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_NAN_MATCH); msg 12652 net/wireless/nl80211.c nlmsg_free(msg); msg 12656 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 12657 net/wireless/nl80211.c (wdev->netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX, msg 12659 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), msg 12663 net/wireless/nl80211.c if (nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, match->cookie, msg 12665 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, match->addr)) msg 12668 net/wireless/nl80211.c match_attr = nla_nest_start_noflag(msg, NL80211_ATTR_NAN_MATCH); msg 12672 net/wireless/nl80211.c local_func_attr = nla_nest_start_noflag(msg, msg 12677 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_NAN_FUNC_INSTANCE_ID, match->inst_id)) msg 12680 net/wireless/nl80211.c nla_nest_end(msg, local_func_attr); msg 12682 net/wireless/nl80211.c peer_func_attr = nla_nest_start_noflag(msg, msg 12687 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_NAN_FUNC_TYPE, match->type) || msg 12688 net/wireless/nl80211.c nla_put_u8(msg, NL80211_NAN_FUNC_INSTANCE_ID, match->peer_inst_id)) msg 12692 net/wireless/nl80211.c nla_put(msg, NL80211_NAN_FUNC_SERVICE_INFO, match->info_len, msg 12696 net/wireless/nl80211.c nla_nest_end(msg, peer_func_attr); msg 12697 net/wireless/nl80211.c nla_nest_end(msg, match_attr); msg 12698 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 12702 net/wireless/nl80211.c msg, 0, NL80211_MCGRP_NAN, gfp); msg 12704 net/wireless/nl80211.c genlmsg_unicast(wiphy_net(&rdev->wiphy), msg, msg 12710 net/wireless/nl80211.c nlmsg_free(msg); msg 12721 net/wireless/nl80211.c struct sk_buff *msg; msg 12728 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 12729 net/wireless/nl80211.c if (!msg) msg 12732 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_DEL_NAN_FUNCTION); msg 12734 net/wireless/nl80211.c nlmsg_free(msg); msg 12738 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 12739 net/wireless/nl80211.c (wdev->netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX, msg 12741 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), msg 12745 net/wireless/nl80211.c if (nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, cookie, msg 12749 net/wireless/nl80211.c func_attr = nla_nest_start_noflag(msg, NL80211_ATTR_NAN_FUNC); msg 12753 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_NAN_FUNC_INSTANCE_ID, inst_id) || msg 12754 net/wireless/nl80211.c nla_put_u8(msg, NL80211_NAN_FUNC_TERM_REASON, reason)) msg 12757 net/wireless/nl80211.c nla_nest_end(msg, func_attr); msg 12758 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 12762 net/wireless/nl80211.c msg, 0, NL80211_MCGRP_NAN, gfp); msg 12764 net/wireless/nl80211.c genlmsg_unicast(wiphy_net(&rdev->wiphy), msg, msg 12770 net/wireless/nl80211.c nlmsg_free(msg); msg 12778 net/wireless/nl80211.c struct sk_buff *msg; msg 12780 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 12781 net/wireless/nl80211.c if (!msg) msg 12784 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0, msg 12789 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_PROTOCOL_FEATURES, msg 12793 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 12794 net/wireless/nl80211.c return genlmsg_reply(msg, info); msg 12797 net/wireless/nl80211.c kfree_skb(msg); msg 13668 net/wireless/nl80211.c struct sk_buff *msg; msg 13683 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 13684 net/wireless/nl80211.c if (!msg) msg 13687 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, info->snd_portid, info->snd_seq, 0, msg 13692 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_IFINDEX, dev->ifindex)) msg 13695 net/wireless/nl80211.c ftm_stats_attr = nla_nest_start_noflag(msg, msg 13702 net/wireless/nl80211.c nla_put_ ## type(msg, NL80211_FTM_STATS_ ## name, \ msg 13707 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_FTM_STATS_ ## name, \ msg 13722 net/wireless/nl80211.c nla_nest_end(msg, ftm_stats_attr); msg 13724 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 13725 net/wireless/nl80211.c return genlmsg_reply(msg, info); msg 13728 net/wireless/nl80211.c nlmsg_free(msg); msg 14778 net/wireless/nl80211.c struct sk_buff *msg; msg 14784 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 14785 net/wireless/nl80211.c if (!msg) msg 14788 net/wireless/nl80211.c if (nl80211_send_wiphy(rdev, cmd, msg, 0, 0, 0, &state) < 0) { msg 14789 net/wireless/nl80211.c nlmsg_free(msg); msg 14793 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 14801 net/wireless/nl80211.c struct sk_buff *msg; msg 14803 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 14804 net/wireless/nl80211.c if (!msg) msg 14807 net/wireless/nl80211.c if (nl80211_send_iface(msg, 0, 0, 0, rdev, wdev, cmd) < 0) { msg 14808 net/wireless/nl80211.c nlmsg_free(msg); msg 14812 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 14816 net/wireless/nl80211.c static int nl80211_add_scan_req(struct sk_buff *msg, msg 14826 net/wireless/nl80211.c nest = nla_nest_start_noflag(msg, NL80211_ATTR_SCAN_SSIDS); msg 14830 net/wireless/nl80211.c if (nla_put(msg, i, req->ssids[i].ssid_len, req->ssids[i].ssid)) msg 14833 net/wireless/nl80211.c nla_nest_end(msg, nest); msg 14835 net/wireless/nl80211.c nest = nla_nest_start_noflag(msg, NL80211_ATTR_SCAN_FREQUENCIES); msg 14839 net/wireless/nl80211.c if (nla_put_u32(msg, i, req->channels[i]->center_freq)) msg 14842 net/wireless/nl80211.c nla_nest_end(msg, nest); msg 14845 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_IE, req->ie_len, req->ie)) msg 14849 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_SCAN_FLAGS, req->flags)) msg 14853 net/wireless/nl80211.c (nla_put_u64_64bit(msg, NL80211_ATTR_SCAN_START_TIME_TSF, msg 14855 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_SCAN_START_TIME_TSF_BSSID, ETH_ALEN, msg 14864 net/wireless/nl80211.c static int nl80211_prep_scan_msg(struct sk_buff *msg, msg 14872 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, portid, seq, flags, cmd); msg 14876 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 14877 net/wireless/nl80211.c (wdev->netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX, msg 14879 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), msg 14884 net/wireless/nl80211.c nl80211_add_scan_req(msg, rdev); msg 14886 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 14890 net/wireless/nl80211.c genlmsg_cancel(msg, hdr); msg 14895 net/wireless/nl80211.c nl80211_prep_sched_scan_msg(struct sk_buff *msg, msg 14900 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, cmd); msg 14904 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, msg 14906 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, req->dev->ifindex) || msg 14907 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, req->reqid, msg 14911 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 14915 net/wireless/nl80211.c genlmsg_cancel(msg, hdr); msg 14922 net/wireless/nl80211.c struct sk_buff *msg; msg 14924 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 14925 net/wireless/nl80211.c if (!msg) msg 14928 net/wireless/nl80211.c if (nl80211_prep_scan_msg(msg, rdev, wdev, 0, 0, 0, msg 14930 net/wireless/nl80211.c nlmsg_free(msg); msg 14934 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 14941 net/wireless/nl80211.c struct sk_buff *msg; msg 14943 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 14944 net/wireless/nl80211.c if (!msg) msg 14947 net/wireless/nl80211.c if (nl80211_prep_scan_msg(msg, rdev, wdev, 0, 0, 0, msg 14950 net/wireless/nl80211.c nlmsg_free(msg); msg 14954 net/wireless/nl80211.c return msg; msg 14959 net/wireless/nl80211.c struct sk_buff *msg) msg 14961 net/wireless/nl80211.c if (!msg) msg 14964 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 14970 net/wireless/nl80211.c struct sk_buff *msg; msg 14972 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 14973 net/wireless/nl80211.c if (!msg) msg 14976 net/wireless/nl80211.c if (nl80211_prep_sched_scan_msg(msg, req, cmd) < 0) { msg 14977 net/wireless/nl80211.c nlmsg_free(msg); msg 14981 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(req->wiphy), msg, 0, msg 14985 net/wireless/nl80211.c static bool nl80211_reg_change_event_fill(struct sk_buff *msg, msg 14989 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_ATTR_REG_INITIATOR, request->initiator)) msg 14993 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_ATTR_REG_TYPE, msg 14997 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_ATTR_REG_TYPE, msg 15002 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_ATTR_REG_TYPE, msg 15006 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_ATTR_REG_TYPE, msg 15008 net/wireless/nl80211.c nla_put_string(msg, NL80211_ATTR_REG_ALPHA2, msg 15017 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_WIPHY, request->wiphy_idx)) msg 15022 net/wireless/nl80211.c nla_put_flag(msg, NL80211_ATTR_WIPHY_SELF_MANAGED_REG)) msg 15039 net/wireless/nl80211.c struct sk_buff *msg; msg 15042 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 15043 net/wireless/nl80211.c if (!msg) msg 15046 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, cmd_id); msg 15050 net/wireless/nl80211.c if (!nl80211_reg_change_event_fill(msg, request)) msg 15053 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 15056 net/wireless/nl80211.c genlmsg_multicast_allns(&nl80211_fam, msg, 0, msg 15063 net/wireless/nl80211.c nlmsg_free(msg); msg 15073 net/wireless/nl80211.c struct sk_buff *msg; msg 15076 net/wireless/nl80211.c msg = nlmsg_new(100 + len + req_ies_len, gfp); msg 15077 net/wireless/nl80211.c if (!msg) msg 15080 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, cmd); msg 15082 net/wireless/nl80211.c nlmsg_free(msg); msg 15086 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 15087 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) || msg 15088 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_FRAME, len, buf) || msg 15090 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_REQ_IE, req_ies_len, req_ies))) msg 15095 net/wireless/nl80211.c nla_nest_start_noflag(msg, NL80211_ATTR_STA_WME); msg 15099 net/wireless/nl80211.c if (nla_put_u8(msg, NL80211_STA_WME_UAPSD_QUEUES, msg 15103 net/wireless/nl80211.c nla_nest_end(msg, nla_wmm); msg 15106 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 15108 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 15113 net/wireless/nl80211.c nlmsg_free(msg); msg 15177 net/wireless/nl80211.c struct sk_buff *msg; msg 15180 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 15181 net/wireless/nl80211.c if (!msg) msg 15184 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, cmd); msg 15186 net/wireless/nl80211.c nlmsg_free(msg); msg 15190 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 15191 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) || msg 15192 net/wireless/nl80211.c nla_put_flag(msg, NL80211_ATTR_TIMED_OUT) || msg 15193 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, addr)) msg 15196 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 15198 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 15203 net/wireless/nl80211.c nlmsg_free(msg); msg 15227 net/wireless/nl80211.c struct sk_buff *msg; msg 15230 net/wireless/nl80211.c msg = nlmsg_new(100 + cr->req_ie_len + cr->resp_ie_len + msg 15233 net/wireless/nl80211.c if (!msg) msg 15236 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_CONNECT); msg 15238 net/wireless/nl80211.c nlmsg_free(msg); msg 15242 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 15243 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) || msg 15245 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, cr->bssid)) || msg 15246 net/wireless/nl80211.c nla_put_u16(msg, NL80211_ATTR_STATUS_CODE, msg 15250 net/wireless/nl80211.c (nla_put_flag(msg, NL80211_ATTR_TIMED_OUT) || msg 15251 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_TIMEOUT_REASON, msg 15254 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_REQ_IE, cr->req_ie_len, cr->req_ie)) || msg 15256 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_RESP_IE, cr->resp_ie_len, msg 15259 net/wireless/nl80211.c nla_put_u16(msg, NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM, msg 15263 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_FILS_KEK, cr->fils.kek_len, msg 15266 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_PMK, cr->fils.pmk_len, cr->fils.pmk)) || msg 15268 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_PMKID, WLAN_PMKID_LEN, cr->fils.pmkid))))) msg 15271 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 15273 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 15278 net/wireless/nl80211.c nlmsg_free(msg); msg 15285 net/wireless/nl80211.c struct sk_buff *msg; msg 15289 net/wireless/nl80211.c msg = nlmsg_new(100 + info->req_ie_len + info->resp_ie_len + msg 15292 net/wireless/nl80211.c if (!msg) msg 15295 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_ROAM); msg 15297 net/wireless/nl80211.c nlmsg_free(msg); msg 15301 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 15302 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) || msg 15303 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, bssid) || msg 15305 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_REQ_IE, info->req_ie_len, msg 15308 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_RESP_IE, info->resp_ie_len, msg 15311 net/wireless/nl80211.c nla_put_u16(msg, NL80211_ATTR_FILS_ERP_NEXT_SEQ_NUM, msg 15314 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_FILS_KEK, info->fils.kek_len, msg 15317 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_PMK, info->fils.pmk_len, info->fils.pmk)) || msg 15319 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_PMKID, WLAN_PMKID_LEN, info->fils.pmkid))) msg 15322 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 15324 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 15329 net/wireless/nl80211.c nlmsg_free(msg); msg 15335 net/wireless/nl80211.c struct sk_buff *msg; msg 15338 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 15339 net/wireless/nl80211.c if (!msg) msg 15342 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_PORT_AUTHORIZED); msg 15344 net/wireless/nl80211.c nlmsg_free(msg); msg 15348 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 15349 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) || msg 15350 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, bssid)) msg 15353 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 15355 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 15360 net/wireless/nl80211.c nlmsg_free(msg); msg 15367 net/wireless/nl80211.c struct sk_buff *msg; msg 15370 net/wireless/nl80211.c msg = nlmsg_new(100 + ie_len, GFP_KERNEL); msg 15371 net/wireless/nl80211.c if (!msg) msg 15374 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_DISCONNECT); msg 15376 net/wireless/nl80211.c nlmsg_free(msg); msg 15380 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 15381 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) || msg 15383 net/wireless/nl80211.c nla_put_u16(msg, NL80211_ATTR_REASON_CODE, reason)) || msg 15385 net/wireless/nl80211.c nla_put_flag(msg, NL80211_ATTR_DISCONNECTED_BY_AP)) || msg 15386 net/wireless/nl80211.c (ie && nla_put(msg, NL80211_ATTR_IE, ie_len, ie))) msg 15389 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 15391 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 15396 net/wireless/nl80211.c nlmsg_free(msg); msg 15403 net/wireless/nl80211.c struct sk_buff *msg; msg 15406 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 15407 net/wireless/nl80211.c if (!msg) msg 15410 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_JOIN_IBSS); msg 15412 net/wireless/nl80211.c nlmsg_free(msg); msg 15416 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 15417 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) || msg 15418 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, bssid)) msg 15421 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 15423 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 15428 net/wireless/nl80211.c nlmsg_free(msg); msg 15437 net/wireless/nl80211.c struct sk_buff *msg; msg 15445 net/wireless/nl80211.c msg = nlmsg_new(100 + ie_len, gfp); msg 15446 net/wireless/nl80211.c if (!msg) msg 15449 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_NEW_PEER_CANDIDATE); msg 15451 net/wireless/nl80211.c nlmsg_free(msg); msg 15455 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 15456 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, dev->ifindex) || msg 15457 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, addr) || msg 15459 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_IE, ie_len, ie)) || msg 15461 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_RX_SIGNAL_DBM, sig_dbm))) msg 15464 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 15466 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 15471 net/wireless/nl80211.c nlmsg_free(msg); msg 15480 net/wireless/nl80211.c struct sk_buff *msg; msg 15483 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 15484 net/wireless/nl80211.c if (!msg) msg 15487 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_MICHAEL_MIC_FAILURE); msg 15489 net/wireless/nl80211.c nlmsg_free(msg); msg 15493 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 15494 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) || msg 15495 net/wireless/nl80211.c (addr && nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, addr)) || msg 15496 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_KEY_TYPE, key_type) || msg 15498 net/wireless/nl80211.c nla_put_u8(msg, NL80211_ATTR_KEY_IDX, key_id)) || msg 15499 net/wireless/nl80211.c (tsc && nla_put(msg, NL80211_ATTR_KEY_SEQ, 6, tsc))) msg 15502 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 15504 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 15509 net/wireless/nl80211.c nlmsg_free(msg); msg 15516 net/wireless/nl80211.c struct sk_buff *msg; msg 15520 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_ATOMIC); msg 15521 net/wireless/nl80211.c if (!msg) msg 15524 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_REG_BEACON_HINT); msg 15526 net/wireless/nl80211.c nlmsg_free(msg); msg 15534 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, get_wiphy_idx(wiphy))) msg 15538 net/wireless/nl80211.c nl_freq = nla_nest_start_noflag(msg, NL80211_ATTR_FREQ_BEFORE); msg 15542 net/wireless/nl80211.c if (nl80211_msg_put_channel(msg, wiphy, channel_before, false)) msg 15544 net/wireless/nl80211.c nla_nest_end(msg, nl_freq); msg 15547 net/wireless/nl80211.c nl_freq = nla_nest_start_noflag(msg, NL80211_ATTR_FREQ_AFTER); msg 15551 net/wireless/nl80211.c if (nl80211_msg_put_channel(msg, wiphy, channel_after, false)) msg 15553 net/wireless/nl80211.c nla_nest_end(msg, nl_freq); msg 15555 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 15558 net/wireless/nl80211.c genlmsg_multicast_allns(&nl80211_fam, msg, 0, msg 15565 net/wireless/nl80211.c nlmsg_free(msg); msg 15574 net/wireless/nl80211.c struct sk_buff *msg; msg 15577 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 15578 net/wireless/nl80211.c if (!msg) msg 15581 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, cmd); msg 15583 net/wireless/nl80211.c nlmsg_free(msg); msg 15587 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 15588 net/wireless/nl80211.c (wdev->netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX, msg 15590 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), msg 15592 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_WIPHY_FREQ, chan->center_freq) || msg 15593 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_WIPHY_CHANNEL_TYPE, msg 15595 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, cookie, msg 15600 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_DURATION, duration)) msg 15603 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 15605 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 15610 net/wireless/nl80211.c nlmsg_free(msg); msg 15658 net/wireless/nl80211.c struct sk_buff *msg; msg 15662 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 15663 net/wireless/nl80211.c if (!msg) msg 15666 net/wireless/nl80211.c if (nl80211_send_station(msg, NL80211_CMD_NEW_STATION, 0, 0, 0, msg 15668 net/wireless/nl80211.c nlmsg_free(msg); msg 15672 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 15682 net/wireless/nl80211.c struct sk_buff *msg; msg 15690 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 15691 net/wireless/nl80211.c if (!msg) { msg 15696 net/wireless/nl80211.c if (nl80211_send_station(msg, NL80211_CMD_DEL_STATION, 0, 0, 0, msg 15698 net/wireless/nl80211.c nlmsg_free(msg); msg 15702 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 15713 net/wireless/nl80211.c struct sk_buff *msg; msg 15716 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_GOODSIZE, gfp); msg 15717 net/wireless/nl80211.c if (!msg) msg 15720 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_CONN_FAILED); msg 15722 net/wireless/nl80211.c nlmsg_free(msg); msg 15726 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_IFINDEX, dev->ifindex) || msg 15727 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, mac_addr) || msg 15728 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_CONN_FAILED_REASON, reason)) msg 15731 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 15733 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 15738 net/wireless/nl80211.c nlmsg_free(msg); msg 15747 net/wireless/nl80211.c struct sk_buff *msg; msg 15754 net/wireless/nl80211.c msg = nlmsg_new(100, gfp); msg 15755 net/wireless/nl80211.c if (!msg) msg 15758 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, cmd); msg 15760 net/wireless/nl80211.c nlmsg_free(msg); msg 15764 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 15765 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, dev->ifindex) || msg 15766 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, addr)) msg 15769 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 15770 net/wireless/nl80211.c genlmsg_unicast(wiphy_net(&rdev->wiphy), msg, nlportid); msg 15774 net/wireless/nl80211.c nlmsg_free(msg); msg 15826 net/wireless/nl80211.c struct sk_buff *msg; msg 15829 net/wireless/nl80211.c msg = nlmsg_new(100 + len, gfp); msg 15830 net/wireless/nl80211.c if (!msg) msg 15833 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_FRAME); msg 15835 net/wireless/nl80211.c nlmsg_free(msg); msg 15839 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 15840 net/wireless/nl80211.c (netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX, msg 15842 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), msg 15844 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_WIPHY_FREQ, freq) || msg 15846 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_RX_SIGNAL_DBM, sig_dbm)) || msg 15847 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_FRAME, len, buf) || msg 15849 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_RXMGMT_FLAGS, flags))) msg 15852 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 15854 net/wireless/nl80211.c return genlmsg_unicast(wiphy_net(&rdev->wiphy), msg, nlportid); msg 15857 net/wireless/nl80211.c nlmsg_free(msg); msg 15867 net/wireless/nl80211.c struct sk_buff *msg; msg 15872 net/wireless/nl80211.c msg = nlmsg_new(100 + len, gfp); msg 15873 net/wireless/nl80211.c if (!msg) msg 15876 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_FRAME_TX_STATUS); msg 15878 net/wireless/nl80211.c nlmsg_free(msg); msg 15882 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 15883 net/wireless/nl80211.c (netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX, msg 15885 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), msg 15887 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_FRAME, len, buf) || msg 15888 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, cookie, msg 15890 net/wireless/nl80211.c (ack && nla_put_flag(msg, NL80211_ATTR_ACK))) msg 15893 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 15895 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 15900 net/wireless/nl80211.c nlmsg_free(msg); msg 15913 net/wireless/nl80211.c struct sk_buff *msg; msg 15922 net/wireless/nl80211.c msg = nlmsg_new(100 + skb->len, gfp); msg 15923 net/wireless/nl80211.c if (!msg) msg 15926 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_CONTROL_PORT_FRAME); msg 15928 net/wireless/nl80211.c nlmsg_free(msg); msg 15932 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 15933 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, dev->ifindex) || msg 15934 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), msg 15936 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, addr) || msg 15937 net/wireless/nl80211.c nla_put_u16(msg, NL80211_ATTR_CONTROL_PORT_ETHERTYPE, proto) || msg 15938 net/wireless/nl80211.c (unencrypted && nla_put_flag(msg, msg 15942 net/wireless/nl80211.c frame = nla_reserve(msg, NL80211_ATTR_FRAME, skb->len); msg 15947 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 15949 net/wireless/nl80211.c return genlmsg_unicast(wiphy_net(&rdev->wiphy), msg, nlportid); msg 15952 net/wireless/nl80211.c nlmsg_free(msg); msg 15973 net/wireless/nl80211.c struct sk_buff *msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 15976 net/wireless/nl80211.c if (!msg) msg 15979 net/wireless/nl80211.c cb = (void **)msg->cb; msg 15981 net/wireless/nl80211.c cb[0] = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_NOTIFY_CQM); msg 15983 net/wireless/nl80211.c nlmsg_free(msg); msg 15987 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 15988 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, dev->ifindex)) msg 15991 net/wireless/nl80211.c if (mac && nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, mac)) msg 15994 net/wireless/nl80211.c cb[1] = nla_nest_start_noflag(msg, NL80211_ATTR_CQM); msg 16000 net/wireless/nl80211.c return msg; msg 16002 net/wireless/nl80211.c nlmsg_free(msg); msg 16006 net/wireless/nl80211.c static void cfg80211_send_cqm(struct sk_buff *msg, gfp_t gfp) msg 16008 net/wireless/nl80211.c void **cb = (void **)msg->cb; msg 16011 net/wireless/nl80211.c nla_nest_end(msg, cb[1]); msg 16012 net/wireless/nl80211.c genlmsg_end(msg, cb[0]); msg 16014 net/wireless/nl80211.c memset(msg->cb, 0, sizeof(msg->cb)); msg 16016 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 16024 net/wireless/nl80211.c struct sk_buff *msg; msg 16043 net/wireless/nl80211.c msg = cfg80211_prepare_cqm(dev, NULL, gfp); msg 16044 net/wireless/nl80211.c if (!msg) msg 16047 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_CQM_RSSI_THRESHOLD_EVENT, msg 16051 net/wireless/nl80211.c if (rssi_level && nla_put_s32(msg, NL80211_ATTR_CQM_RSSI_LEVEL, msg 16055 net/wireless/nl80211.c cfg80211_send_cqm(msg, gfp); msg 16060 net/wireless/nl80211.c nlmsg_free(msg); msg 16068 net/wireless/nl80211.c struct sk_buff *msg; msg 16070 net/wireless/nl80211.c msg = cfg80211_prepare_cqm(dev, peer, gfp); msg 16071 net/wireless/nl80211.c if (!msg) msg 16074 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_CQM_TXE_PKTS, num_packets)) msg 16077 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_CQM_TXE_RATE, rate)) msg 16080 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_CQM_TXE_INTVL, intvl)) msg 16083 net/wireless/nl80211.c cfg80211_send_cqm(msg, gfp); msg 16087 net/wireless/nl80211.c nlmsg_free(msg); msg 16094 net/wireless/nl80211.c struct sk_buff *msg; msg 16098 net/wireless/nl80211.c msg = cfg80211_prepare_cqm(dev, peer, gfp); msg 16099 net/wireless/nl80211.c if (!msg) msg 16102 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_CQM_PKT_LOSS_EVENT, num_packets)) msg 16105 net/wireless/nl80211.c cfg80211_send_cqm(msg, gfp); msg 16109 net/wireless/nl80211.c nlmsg_free(msg); msg 16115 net/wireless/nl80211.c struct sk_buff *msg; msg 16117 net/wireless/nl80211.c msg = cfg80211_prepare_cqm(dev, NULL, gfp); msg 16118 net/wireless/nl80211.c if (!msg) msg 16121 net/wireless/nl80211.c if (nla_put_flag(msg, NL80211_ATTR_CQM_BEACON_LOSS_EVENT)) msg 16124 net/wireless/nl80211.c cfg80211_send_cqm(msg, gfp); msg 16128 net/wireless/nl80211.c nlmsg_free(msg); msg 16136 net/wireless/nl80211.c struct sk_buff *msg; msg 16140 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 16141 net/wireless/nl80211.c if (!msg) msg 16144 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_SET_REKEY_OFFLOAD); msg 16146 net/wireless/nl80211.c nlmsg_free(msg); msg 16150 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 16151 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) || msg 16152 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, bssid)) msg 16155 net/wireless/nl80211.c rekey_attr = nla_nest_start_noflag(msg, NL80211_ATTR_REKEY_DATA); msg 16159 net/wireless/nl80211.c if (nla_put(msg, NL80211_REKEY_DATA_REPLAY_CTR, msg 16163 net/wireless/nl80211.c nla_nest_end(msg, rekey_attr); msg 16165 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 16167 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 16172 net/wireless/nl80211.c nlmsg_free(msg); msg 16192 net/wireless/nl80211.c struct sk_buff *msg; msg 16196 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 16197 net/wireless/nl80211.c if (!msg) msg 16200 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_PMKSA_CANDIDATE); msg 16202 net/wireless/nl80211.c nlmsg_free(msg); msg 16206 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 16207 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex)) msg 16210 net/wireless/nl80211.c attr = nla_nest_start_noflag(msg, NL80211_ATTR_PMKSA_CANDIDATE); msg 16214 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_PMKSA_CANDIDATE_INDEX, index) || msg 16215 net/wireless/nl80211.c nla_put(msg, NL80211_PMKSA_CANDIDATE_BSSID, ETH_ALEN, bssid) || msg 16217 net/wireless/nl80211.c nla_put_flag(msg, NL80211_PMKSA_CANDIDATE_PREAUTH))) msg 16220 net/wireless/nl80211.c nla_nest_end(msg, attr); msg 16222 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 16224 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 16229 net/wireless/nl80211.c nlmsg_free(msg); msg 16251 net/wireless/nl80211.c struct sk_buff *msg; msg 16254 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 16255 net/wireless/nl80211.c if (!msg) msg 16258 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, notif); msg 16260 net/wireless/nl80211.c nlmsg_free(msg); msg 16264 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex)) msg 16267 net/wireless/nl80211.c if (nl80211_send_chandef(msg, chandef)) msg 16271 net/wireless/nl80211.c (nla_put_u32(msg, NL80211_ATTR_CH_SWITCH_COUNT, count))) msg 16274 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 16276 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 16281 net/wireless/nl80211.c nlmsg_free(msg); msg 16330 net/wireless/nl80211.c struct sk_buff *msg; msg 16333 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 16334 net/wireless/nl80211.c if (!msg) msg 16337 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_RADAR_DETECT); msg 16339 net/wireless/nl80211.c nlmsg_free(msg); msg 16343 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx)) msg 16350 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) || msg 16351 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), msg 16356 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_RADAR_EVENT, event)) msg 16359 net/wireless/nl80211.c if (nl80211_send_chandef(msg, chandef)) msg 16362 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 16364 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 16369 net/wireless/nl80211.c nlmsg_free(msg); msg 16376 net/wireless/nl80211.c struct sk_buff *msg; msg 16384 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 16385 net/wireless/nl80211.c if (!msg) msg 16388 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_STA_OPMODE_CHANGED); msg 16390 net/wireless/nl80211.c nlmsg_free(msg); msg 16394 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx)) msg 16397 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_IFINDEX, dev->ifindex)) msg 16400 net/wireless/nl80211.c if (nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, mac)) msg 16404 net/wireless/nl80211.c nla_put_u8(msg, NL80211_ATTR_SMPS_MODE, sta_opmode->smps_mode)) msg 16408 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_CHANNEL_WIDTH, sta_opmode->bw)) msg 16412 net/wireless/nl80211.c nla_put_u8(msg, NL80211_ATTR_NSS, sta_opmode->rx_nss)) msg 16415 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 16417 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 16423 net/wireless/nl80211.c nlmsg_free(msg); msg 16433 net/wireless/nl80211.c struct sk_buff *msg; msg 16438 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 16440 net/wireless/nl80211.c if (!msg) msg 16443 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_PROBE_CLIENT); msg 16445 net/wireless/nl80211.c nlmsg_free(msg); msg 16449 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 16450 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, dev->ifindex) || msg 16451 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, addr) || msg 16452 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, cookie, msg 16454 net/wireless/nl80211.c (acked && nla_put_flag(msg, NL80211_ATTR_ACK)) || msg 16455 net/wireless/nl80211.c (is_valid_ack_signal && nla_put_s32(msg, NL80211_ATTR_ACK_SIGNAL, msg 16459 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 16461 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 16466 net/wireless/nl80211.c nlmsg_free(msg); msg 16475 net/wireless/nl80211.c struct sk_buff *msg; msg 16483 net/wireless/nl80211.c msg = nlmsg_new(len + 100, GFP_ATOMIC); msg 16484 net/wireless/nl80211.c if (!msg) { msg 16489 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_FRAME); msg 16493 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 16495 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_WIPHY_FREQ, freq)) || msg 16497 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_RX_SIGNAL_DBM, sig_dbm)) || msg 16498 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_FRAME, len, frame)) msg 16501 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 16503 net/wireless/nl80211.c genlmsg_unicast(wiphy_net(&rdev->wiphy), msg, reg->nlportid); msg 16510 net/wireless/nl80211.c nlmsg_free(msg); msg 16515 net/wireless/nl80211.c static int cfg80211_net_detect_results(struct sk_buff *msg, msg 16522 net/wireless/nl80211.c nl_results = nla_nest_start_noflag(msg, msg 16530 net/wireless/nl80211.c nl_match = nla_nest_start_noflag(msg, i); msg 16541 net/wireless/nl80211.c if (nla_put(msg, NL80211_ATTR_SSID, match->ssid.ssid_len, msg 16543 net/wireless/nl80211.c nla_nest_cancel(msg, nl_match); msg 16548 net/wireless/nl80211.c nl_freqs = nla_nest_start_noflag(msg, msg 16551 net/wireless/nl80211.c nla_nest_cancel(msg, nl_match); msg 16556 net/wireless/nl80211.c if (nla_put_u32(msg, j, match->channels[j])) { msg 16557 net/wireless/nl80211.c nla_nest_cancel(msg, nl_freqs); msg 16558 net/wireless/nl80211.c nla_nest_cancel(msg, nl_match); msg 16563 net/wireless/nl80211.c nla_nest_end(msg, nl_freqs); msg 16566 net/wireless/nl80211.c nla_nest_end(msg, nl_match); msg 16570 net/wireless/nl80211.c nla_nest_end(msg, nl_results); msg 16579 net/wireless/nl80211.c struct sk_buff *msg; msg 16588 net/wireless/nl80211.c msg = nlmsg_new(size, gfp); msg 16589 net/wireless/nl80211.c if (!msg) msg 16592 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_SET_WOWLAN); msg 16596 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 16597 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), msg 16601 net/wireless/nl80211.c if (wdev->netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX, msg 16608 net/wireless/nl80211.c reasons = nla_nest_start_noflag(msg, msg 16614 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_DISCONNECT)) msg 16617 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_MAGIC_PKT)) msg 16620 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_GTK_REKEY_FAILURE)) msg 16623 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_EAP_IDENT_REQUEST)) msg 16626 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_4WAY_HANDSHAKE)) msg 16629 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_RFKILL_RELEASE)) msg 16633 net/wireless/nl80211.c nla_put_u32(msg, NL80211_WOWLAN_TRIG_PKT_PATTERN, msg 16638 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_WAKEUP_TCP_MATCH)) msg 16642 net/wireless/nl80211.c nla_put_flag(msg, NL80211_WOWLAN_TRIG_WAKEUP_TCP_CONNLOST)) msg 16646 net/wireless/nl80211.c nla_put_flag(msg, msg 16662 net/wireless/nl80211.c nla_put_u32(msg, len_attr, wakeup->packet_len)) msg 16665 net/wireless/nl80211.c if (nla_put(msg, pkt_attr, wakeup->packet_present_len, msg 16671 net/wireless/nl80211.c cfg80211_net_detect_results(msg, wakeup)) msg 16674 net/wireless/nl80211.c nla_nest_end(msg, reasons); msg 16677 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 16679 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 16684 net/wireless/nl80211.c nlmsg_free(msg); msg 16695 net/wireless/nl80211.c struct sk_buff *msg; msg 16701 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 16702 net/wireless/nl80211.c if (!msg) msg 16705 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_TDLS_OPER); msg 16707 net/wireless/nl80211.c nlmsg_free(msg); msg 16711 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 16712 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, dev->ifindex) || msg 16713 net/wireless/nl80211.c nla_put_u8(msg, NL80211_ATTR_TDLS_OPERATION, oper) || msg 16714 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, peer) || msg 16716 net/wireless/nl80211.c nla_put_u16(msg, NL80211_ATTR_REASON_CODE, reason_code))) msg 16719 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 16721 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 16726 net/wireless/nl80211.c nlmsg_free(msg); msg 16800 net/wireless/nl80211.c struct sk_buff *msg; msg 16808 net/wireless/nl80211.c msg = nlmsg_new(100 + ft_event->ies_len + ft_event->ric_ies_len, msg 16810 net/wireless/nl80211.c if (!msg) msg 16813 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_FT_EVENT); msg 16817 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 16818 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) || msg 16819 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, ft_event->target_ap)) msg 16823 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_IE, ft_event->ies_len, ft_event->ies)) msg 16826 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_IE_RIC, ft_event->ric_ies_len, msg 16830 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 16832 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 16836 net/wireless/nl80211.c nlmsg_free(msg); msg 16843 net/wireless/nl80211.c struct sk_buff *msg; msg 16854 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 16855 net/wireless/nl80211.c if (!msg) msg 16858 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_CRIT_PROTOCOL_STOP); msg 16862 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 16863 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), msg 16867 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 16869 net/wireless/nl80211.c genlmsg_unicast(wiphy_net(&rdev->wiphy), msg, nlportid); msg 16873 net/wireless/nl80211.c nlmsg_free(msg); msg 16881 net/wireless/nl80211.c struct sk_buff *msg; msg 16884 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); msg 16885 net/wireless/nl80211.c if (!msg) msg 16888 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_STOP_AP); msg 16892 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 16893 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, wdev->netdev->ifindex) || msg 16894 net/wireless/nl80211.c nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), msg 16898 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 16900 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(wiphy), msg, 0, msg 16904 net/wireless/nl80211.c nlmsg_free(msg); msg 16913 net/wireless/nl80211.c struct sk_buff *msg; msg 16919 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 16920 net/wireless/nl80211.c if (!msg) msg 16923 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_EXTERNAL_AUTH); msg 16927 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 16928 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, dev->ifindex) || msg 16929 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_AKM_SUITES, params->key_mgmt_suite) || msg 16930 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_EXTERNAL_AUTH_ACTION, msg 16932 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_BSSID, ETH_ALEN, params->bssid) || msg 16933 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_SSID, params->ssid.ssid_len, msg 16937 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 16938 net/wireless/nl80211.c genlmsg_unicast(wiphy_net(&rdev->wiphy), msg, msg 16943 net/wireless/nl80211.c nlmsg_free(msg); msg 16954 net/wireless/nl80211.c struct sk_buff *msg; msg 16959 net/wireless/nl80211.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 16960 net/wireless/nl80211.c if (!msg) msg 16963 net/wireless/nl80211.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_UPDATE_OWE_INFO); msg 16967 net/wireless/nl80211.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 16968 net/wireless/nl80211.c nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) || msg 16969 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, owe_info->peer)) msg 16973 net/wireless/nl80211.c nla_put(msg, NL80211_ATTR_IE, owe_info->ie_len, owe_info->ie)) msg 16976 net/wireless/nl80211.c genlmsg_end(msg, hdr); msg 16978 net/wireless/nl80211.c genlmsg_multicast_netns(&nl80211_fam, wiphy_net(&rdev->wiphy), msg, 0, msg 16983 net/wireless/nl80211.c genlmsg_cancel(msg, hdr); msg 16984 net/wireless/nl80211.c nlmsg_free(msg); msg 18 net/wireless/nl80211.h bool nl80211_put_sta_rate(struct sk_buff *msg, struct rate_info *info, msg 47 net/wireless/nl80211.h struct sk_buff *msg); msg 296 net/wireless/pmsr.c struct sk_buff *msg; msg 301 net/wireless/pmsr.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 302 net/wireless/pmsr.c if (!msg) msg 305 net/wireless/pmsr.c hdr = nl80211hdr_put(msg, 0, 0, 0, msg 310 net/wireless/pmsr.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 311 net/wireless/pmsr.c nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), msg 315 net/wireless/pmsr.c if (nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, req->cookie, msg 319 net/wireless/pmsr.c genlmsg_end(msg, hdr); msg 320 net/wireless/pmsr.c genlmsg_unicast(wiphy_net(wdev->wiphy), msg, req->nl_portid); msg 323 net/wireless/pmsr.c nlmsg_free(msg); msg 332 net/wireless/pmsr.c static int nl80211_pmsr_send_ftm_res(struct sk_buff *msg, msg 336 net/wireless/pmsr.c if (nla_put_u32(msg, NL80211_PMSR_FTM_RESP_ATTR_FAIL_REASON, msg 343 net/wireless/pmsr.c nla_put_u32(msg, NL80211_PMSR_FTM_RESP_ATTR_BUSY_RETRY_TIME, msg 352 net/wireless/pmsr.c if (nla_put_##tp(msg, \ msg 366 net/wireless/pmsr.c if (nla_put_u64_64bit(msg, \ msg 389 net/wireless/pmsr.c !nl80211_put_sta_rate(msg, &res->ftm.tx_rate, msg 393 net/wireless/pmsr.c !nl80211_put_sta_rate(msg, &res->ftm.rx_rate, msg 403 net/wireless/pmsr.c nla_put(msg, NL80211_PMSR_FTM_RESP_ATTR_LCI, msg 407 net/wireless/pmsr.c nla_put(msg, NL80211_PMSR_FTM_RESP_ATTR_CIVICLOC, msg 420 net/wireless/pmsr.c static int nl80211_pmsr_send_result(struct sk_buff *msg, msg 425 net/wireless/pmsr.c pmsr = nla_nest_start_noflag(msg, NL80211_ATTR_PEER_MEASUREMENTS); msg 429 net/wireless/pmsr.c peers = nla_nest_start_noflag(msg, NL80211_PMSR_ATTR_PEERS); msg 433 net/wireless/pmsr.c peer = nla_nest_start_noflag(msg, 1); msg 437 net/wireless/pmsr.c if (nla_put(msg, NL80211_PMSR_PEER_ATTR_ADDR, ETH_ALEN, res->addr)) msg 440 net/wireless/pmsr.c resp = nla_nest_start_noflag(msg, NL80211_PMSR_PEER_ATTR_RESP); msg 444 net/wireless/pmsr.c if (nla_put_u32(msg, NL80211_PMSR_RESP_ATTR_STATUS, res->status) || msg 445 net/wireless/pmsr.c nla_put_u64_64bit(msg, NL80211_PMSR_RESP_ATTR_HOST_TIME, msg 450 net/wireless/pmsr.c nla_put_u64_64bit(msg, NL80211_PMSR_RESP_ATTR_AP_TSF, msg 454 net/wireless/pmsr.c if (res->final && nla_put_flag(msg, NL80211_PMSR_RESP_ATTR_FINAL)) msg 457 net/wireless/pmsr.c data = nla_nest_start_noflag(msg, NL80211_PMSR_RESP_ATTR_DATA); msg 461 net/wireless/pmsr.c typedata = nla_nest_start_noflag(msg, res->type); msg 467 net/wireless/pmsr.c if (nl80211_pmsr_send_ftm_res(msg, res)) msg 474 net/wireless/pmsr.c nla_nest_end(msg, typedata); msg 475 net/wireless/pmsr.c nla_nest_end(msg, data); msg 476 net/wireless/pmsr.c nla_nest_end(msg, resp); msg 477 net/wireless/pmsr.c nla_nest_end(msg, peer); msg 478 net/wireless/pmsr.c nla_nest_end(msg, peers); msg 479 net/wireless/pmsr.c nla_nest_end(msg, pmsr); msg 492 net/wireless/pmsr.c struct sk_buff *msg; msg 504 net/wireless/pmsr.c msg = nlmsg_new(NLMSG_DEFAULT_SIZE, gfp); msg 505 net/wireless/pmsr.c if (!msg) msg 508 net/wireless/pmsr.c hdr = nl80211hdr_put(msg, 0, 0, 0, NL80211_CMD_PEER_MEASUREMENT_RESULT); msg 512 net/wireless/pmsr.c if (nla_put_u32(msg, NL80211_ATTR_WIPHY, rdev->wiphy_idx) || msg 513 net/wireless/pmsr.c nla_put_u64_64bit(msg, NL80211_ATTR_WDEV, wdev_id(wdev), msg 517 net/wireless/pmsr.c if (nla_put_u64_64bit(msg, NL80211_ATTR_COOKIE, req->cookie, msg 521 net/wireless/pmsr.c err = nl80211_pmsr_send_result(msg, result); msg 527 net/wireless/pmsr.c genlmsg_end(msg, hdr); msg 528 net/wireless/pmsr.c genlmsg_unicast(wiphy_net(wdev->wiphy), msg, req->nl_portid); msg 531 net/wireless/pmsr.c nlmsg_free(msg); msg 456 net/wireless/scan.c struct sk_buff *msg; msg 491 net/wireless/scan.c msg = nl80211_build_scan_msg(rdev, wdev, request->info.aborted); msg 508 net/wireless/scan.c rdev->scan_msg = msg; msg 510 net/wireless/scan.c nl80211_send_scan_msg(rdev, msg); msg 1994 net/wireless/util.c struct iapp_layer2_update *msg; msg 2000 net/wireless/util.c skb = dev_alloc_skb(sizeof(*msg)); msg 2003 net/wireless/util.c msg = skb_put(skb, sizeof(*msg)); msg 2008 net/wireless/util.c eth_broadcast_addr(msg->da); msg 2009 net/wireless/util.c ether_addr_copy(msg->sa, addr); msg 2010 net/wireless/util.c msg->len = htons(6); msg 2011 net/wireless/util.c msg->dsap = 0; msg 2012 net/wireless/util.c msg->ssap = 0x01; /* NULL LSAP, CR Bit: Response */ msg 2013 net/wireless/util.c msg->control = 0xaf; /* XID response lsb.1111F101. msg 2015 net/wireless/util.c msg->xid_info[0] = 0x81; /* XID format identifier */ msg 2016 net/wireless/util.c msg->xid_info[1] = 1; /* LLC types/classes: Type 1 LLC */ msg 2017 net/wireless/util.c msg->xid_info[2] = 0; /* XID sender's receive window size (RW) */ msg 1091 net/x25/af_x25.c static int x25_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) msg 1095 net/x25/af_x25.c DECLARE_SOCKADDR(struct sockaddr_x25 *, usx25, msg->msg_name); msg 1099 net/x25/af_x25.c int noblock = msg->msg_flags & MSG_DONTWAIT; msg 1104 net/x25/af_x25.c if (msg->msg_flags & ~(MSG_DONTWAIT|MSG_OOB|MSG_EOR|MSG_CMSG_COMPAT)) msg 1108 net/x25/af_x25.c if (!(msg->msg_flags & (MSG_EOR|MSG_OOB))) msg 1127 net/x25/af_x25.c if (msg->msg_namelen < sizeof(sx25)) msg 1161 net/x25/af_x25.c if ((msg->msg_flags & MSG_OOB) && len > 32) msg 1171 net/x25/af_x25.c X25_SKB_CB(skb)->flags = msg->msg_flags; msg 1183 net/x25/af_x25.c rc = memcpy_from_msg(skb_transport_header(skb), msg, len); msg 1204 net/x25/af_x25.c if (msg->msg_flags & MSG_OOB) { msg 1243 net/x25/af_x25.c if (msg->msg_flags & MSG_OOB) msg 1265 net/x25/af_x25.c static int x25_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, msg 1270 net/x25/af_x25.c DECLARE_SOCKADDR(struct sockaddr_x25 *, sx25, msg->msg_name); msg 1313 net/x25/af_x25.c msg->msg_flags |= MSG_OOB; msg 1341 net/x25/af_x25.c msg->msg_flags |= MSG_TRUNC; msg 1345 net/x25/af_x25.c msg->msg_flags |= MSG_EOR; msg 1347 net/x25/af_x25.c rc = skb_copy_datagram_msg(skb, 0, msg, copied); msg 1354 net/x25/af_x25.c msg->msg_namelen = sizeof(*sx25); msg 1008 net/xdp/xsk.c unsigned long msg, void *ptr) msg 1014 net/xdp/xsk.c switch (msg) { msg 85 net/xdp/xsk_diag.c struct xdp_diag_msg *msg; msg 88 net/xdp/xsk_diag.c nlh = nlmsg_put(nlskb, portid, seq, SOCK_DIAG_BY_FAMILY, sizeof(*msg), msg 93 net/xdp/xsk_diag.c msg = nlmsg_data(nlh); msg 94 net/xdp/xsk_diag.c memset(msg, 0, sizeof(*msg)); msg 95 net/xdp/xsk_diag.c msg->xdiag_family = AF_XDP; msg 96 net/xdp/xsk_diag.c msg->xdiag_type = sk->sk_type; msg 97 net/xdp/xsk_diag.c msg->xdiag_ino = sk_ino; msg 98 net/xdp/xsk_diag.c sock_diag_save_cookie(sk, msg->xdiag_cookie); msg 915 net/xfrm/xfrm_interface.c const char *msg; msg 920 net/xfrm/xfrm_interface.c msg = "tunnel device"; msg 925 net/xfrm/xfrm_interface.c msg = "xfrm4 protocols"; msg 930 net/xfrm/xfrm_interface.c msg = "xfrm6 protocols"; msg 936 net/xfrm/xfrm_interface.c msg = "netlink interface"; msg 952 net/xfrm/xfrm_interface.c pr_err("xfrmi init: failed to register %s\n", msg); msg 69 samples/bpf/hbm.c static void do_error(char *msg, bool errno_flag); msg 113 samples/bpf/hbm.c static void do_error(char *msg, bool errno_flag) msg 116 samples/bpf/hbm.c printf("ERROR: %s, errno: %d\n", msg, errno); msg 118 samples/bpf/hbm.c printf("ERROR: %s\n", msg); msg 317 samples/bpf/xdp_router_ipv4_user.c struct msghdr msg; msg 349 samples/bpf/xdp_router_ipv4_user.c memset(&msg, 0, sizeof(msg)); msg 352 samples/bpf/xdp_router_ipv4_user.c msg.msg_iov = &iov; msg 353 samples/bpf/xdp_router_ipv4_user.c msg.msg_iovlen = 1; msg 354 samples/bpf/xdp_router_ipv4_user.c ret = sendmsg(sock, &msg, 0); msg 457 samples/bpf/xdp_router_ipv4_user.c struct msghdr msg; msg 487 samples/bpf/xdp_router_ipv4_user.c memset(&msg, 0, sizeof(msg)); msg 490 samples/bpf/xdp_router_ipv4_user.c msg.msg_iov = &iov; msg 491 samples/bpf/xdp_router_ipv4_user.c msg.msg_iovlen = 1; msg 492 samples/bpf/xdp_router_ipv4_user.c ret = sendmsg(sock, &msg, 0); msg 25 samples/connector/cn_test.c static void cn_test_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp) msg 28 samples/connector/cn_test.c __func__, jiffies, msg->id.idx, msg->id.val, msg 29 samples/connector/cn_test.c msg->seq, msg->ack, msg->len, msg 30 samples/connector/cn_test.c msg->len ? (char *)msg->data : ""); msg 43 samples/connector/cn_test.c struct cn_msg *msg = NULL; msg 49 samples/connector/cn_test.c size0 = sizeof(*msg) + sizeof(*ctl) + 3 * sizeof(*req); msg 65 samples/connector/cn_test.c msg = nlmsg_data(nlh); msg 67 samples/connector/cn_test.c memset(msg, 0, size0); msg 69 samples/connector/cn_test.c msg->id.idx = -1; msg 70 samples/connector/cn_test.c msg->id.val = -1; msg 71 samples/connector/cn_test.c msg->seq = 0x123; msg 72 samples/connector/cn_test.c msg->ack = 0x345; msg 73 samples/connector/cn_test.c msg->len = size0 - sizeof(*msg); msg 75 samples/connector/cn_test.c ctl = (struct cn_ctl_msg *)(msg + 1); msg 80 samples/connector/cn_test.c ctl->len = msg->len - sizeof(*ctl); msg 46 samples/connector/ucon.c static int netlink_send(int s, struct cn_msg *msg) msg 54 samples/connector/ucon.c size = NLMSG_SPACE(sizeof(struct cn_msg) + msg->len); msg 66 samples/connector/ucon.c __func__, msg->id.idx, msg->id.val, msg->len, msg->seq, msg->ack); msg 68 samples/connector/ucon.c memcpy(m, msg, sizeof(*m) + msg->len); msg 34 samples/seccomp/user-trap.c struct msghdr msg = {}; msg 42 samples/seccomp/user-trap.c msg.msg_iov = &io; msg 43 samples/seccomp/user-trap.c msg.msg_iovlen = 1; msg 44 samples/seccomp/user-trap.c msg.msg_control = buf; msg 45 samples/seccomp/user-trap.c msg.msg_controllen = sizeof(buf); msg 46 samples/seccomp/user-trap.c cmsg = CMSG_FIRSTHDR(&msg); msg 51 samples/seccomp/user-trap.c msg.msg_controllen = cmsg->cmsg_len; msg 53 samples/seccomp/user-trap.c if (sendmsg(sock, &msg, 0) < 0) { msg 63 samples/seccomp/user-trap.c struct msghdr msg = {}; msg 71 samples/seccomp/user-trap.c msg.msg_iov = &io; msg 72 samples/seccomp/user-trap.c msg.msg_iovlen = 1; msg 73 samples/seccomp/user-trap.c msg.msg_control = buf; msg 74 samples/seccomp/user-trap.c msg.msg_controllen = sizeof(buf); msg 76 samples/seccomp/user-trap.c if (recvmsg(sock, &msg, 0) < 0) { msg 81 samples/seccomp/user-trap.c cmsg = CMSG_FIRSTHDR(&msg); msg 282 scripts/dtc/fdtget.c static void usage(const char *msg) msg 284 scripts/dtc/fdtget.c if (msg) msg 285 scripts/dtc/fdtget.c fprintf(stderr, "Error: %s\n\n", msg); msg 277 scripts/dtc/fdtput.c static void usage(const char *msg) msg 279 scripts/dtc/fdtput.c if (msg) msg 280 scripts/dtc/fdtput.c fprintf(stderr, "Error: %s\n\n", msg); msg 29 scripts/gcc-plugins/randomize_layout_plugin.c #define INFORM(loc, msg, ...) inform(loc, "randstruct: " msg, ##__VA_ARGS__) msg 394 scripts/kconfig/gconf.c const char *msg = message; msg 406 scripts/kconfig/gconf.c gtk_text_buffer_insert_with_tags(buffer, &end, msg, -1, tag2, msg 241 scripts/kconfig/nconf.gui.c int btn_dialog(WINDOW *main_window, const char *msg, int btn_num, ...) msg 269 scripts/kconfig/nconf.gui.c msg_lines = get_line_no(msg); msg 271 scripts/kconfig/nconf.gui.c const char *line = get_line(msg, i); msg 305 scripts/kconfig/nconf.gui.c fill_window(msg_win, msg); msg 85 scripts/kconfig/nconf.h int btn_dialog(WINDOW *main_window, const char *msg, int btn_num, ...); msg 1204 scripts/unifdef.c debug(const char *msg, ...) msg 1209 scripts/unifdef.c va_start(ap, msg); msg 1210 scripts/unifdef.c vwarnx(msg, ap); msg 1216 scripts/unifdef.c error(const char *msg) msg 1219 scripts/unifdef.c warnx("%s: %d: %s", filename, linenum, msg); msg 1222 scripts/unifdef.c filename, linenum, msg, stifline[depth], depth); msg 918 security/apparmor/lsm.c struct msghdr *msg, int size) msg 922 security/apparmor/lsm.c AA_BUG(!msg); msg 926 security/apparmor/lsm.c msg_perm(op, request, sock, msg, size), msg 934 security/apparmor/lsm.c struct msghdr *msg, int size) msg 936 security/apparmor/lsm.c return aa_sock_msg_perm(OP_SENDMSG, AA_MAY_SEND, sock, msg, size); msg 943 security/apparmor/lsm.c struct msghdr *msg, int size, int flags) msg 945 security/apparmor/lsm.c return aa_sock_msg_perm(OP_RECVMSG, AA_MAY_RECEIVE, sock, msg, size); msg 1741 security/security.c int security_msg_msg_alloc(struct msg_msg *msg) msg 1743 security/security.c int rc = lsm_msg_msg_alloc(msg); msg 1747 security/security.c rc = call_int_hook(msg_msg_alloc_security, 0, msg); msg 1749 security/security.c security_msg_msg_free(msg); msg 1753 security/security.c void security_msg_msg_free(struct msg_msg *msg) msg 1755 security/security.c call_void_hook(msg_msg_free_security, msg); msg 1756 security/security.c kfree(msg->security); msg 1757 security/security.c msg->security = NULL; msg 1790 security/security.c struct msg_msg *msg, int msqflg) msg 1792 security/security.c return call_int_hook(msg_queue_msgsnd, 0, msq, msg, msqflg); msg 1795 security/security.c int security_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg, msg 1798 security/security.c return call_int_hook(msg_queue_msgrcv, 0, msq, msg, target, type, mode); msg 2011 security/security.c int security_socket_sendmsg(struct socket *sock, struct msghdr *msg, int size) msg 2013 security/security.c return call_int_hook(socket_sendmsg, 0, sock, msg, size); msg 2016 security/security.c int security_socket_recvmsg(struct socket *sock, struct msghdr *msg, msg 2019 security/security.c return call_int_hook(socket_recvmsg, 0, sock, msg, size, flags); msg 4837 security/selinux/hooks.c static int selinux_socket_sendmsg(struct socket *sock, struct msghdr *msg, msg 4843 security/selinux/hooks.c static int selinux_socket_recvmsg(struct socket *sock, struct msghdr *msg, msg 5917 security/selinux/hooks.c static int msg_msg_alloc_security(struct msg_msg *msg) msg 5921 security/selinux/hooks.c msec = selinux_msg_msg(msg); msg 5943 security/selinux/hooks.c static int selinux_msg_msg_alloc_security(struct msg_msg *msg) msg 5945 security/selinux/hooks.c return msg_msg_alloc_security(msg); msg 6015 security/selinux/hooks.c static int selinux_msg_queue_msgsnd(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg) msg 6024 security/selinux/hooks.c msec = selinux_msg_msg(msg); msg 6061 security/selinux/hooks.c static int selinux_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg, msg 6072 security/selinux/hooks.c msec = selinux_msg_msg(msg); msg 47 security/selinux/netlink.c struct selnl_msg_setenforce *msg = nlmsg_data(nlh); msg 49 security/selinux/netlink.c memset(msg, 0, len); msg 50 security/selinux/netlink.c msg->val = *((int *)data); msg 55 security/selinux/netlink.c struct selnl_msg_policyload *msg = nlmsg_data(nlh); msg 57 security/selinux/netlink.c memset(msg, 0, len); msg 58 security/selinux/netlink.c msg->seqno = *((u32 *)data); msg 359 security/smack/smack.h static inline struct smack_known **smack_msg_msg(const struct msg_msg *msg) msg 361 security/smack/smack.h return msg->security + smack_blob_sizes.lbs_msg_msg; msg 2888 security/smack/smack_lsm.c static int smack_msg_msg_alloc_security(struct msg_msg *msg) msg 2890 security/smack/smack_lsm.c struct smack_known **blob = smack_msg_msg(msg); msg 3186 security/smack/smack_lsm.c static int smack_msg_queue_msgsnd(struct kern_ipc_perm *isp, struct msg_msg *msg, msg 3205 security/smack/smack_lsm.c static int smack_msg_queue_msgrcv(struct kern_ipc_perm *isp, struct msg_msg *msg, msg 3655 security/smack/smack_lsm.c static int smack_socket_sendmsg(struct socket *sock, struct msghdr *msg, msg 3658 security/smack/smack_lsm.c struct sockaddr_in *sip = (struct sockaddr_in *) msg->msg_name; msg 3660 security/smack/smack_lsm.c struct sockaddr_in6 *sap = (struct sockaddr_in6 *) msg->msg_name; msg 3676 security/smack/smack_lsm.c if (msg->msg_namelen < sizeof(struct sockaddr_in) || msg 3683 security/smack/smack_lsm.c if (msg->msg_namelen < SIN6_LEN_RFC2133 || msg 1001 security/tomoyo/common.h int tomoyo_socket_sendmsg_permission(struct socket *sock, struct msghdr *msg, msg 758 security/tomoyo/network.c int tomoyo_socket_sendmsg_permission(struct socket *sock, struct msghdr *msg, msg 765 security/tomoyo/network.c if (!msg->msg_name || !family || msg 772 security/tomoyo/network.c msg->msg_name, msg 773 security/tomoyo/network.c msg->msg_namelen, &address); msg 774 security/tomoyo/network.c return tomoyo_check_inet_address((struct sockaddr *) msg->msg_name, msg 775 security/tomoyo/network.c msg->msg_namelen, msg 483 security/tomoyo/tomoyo.c static int tomoyo_socket_sendmsg(struct socket *sock, struct msghdr *msg, msg 486 security/tomoyo/tomoyo.c return tomoyo_socket_sendmsg_permission(sock, msg, size); msg 597 sound/core/seq/oss/seq_oss_midi.c char msg[32]; msg 607 sound/core/seq/oss/seq_oss_midi.c len = snd_midi_event_decode(mdev->coder, msg, sizeof(msg), ev); msg 609 sound/core/seq/oss/seq_oss_midi.c snd_seq_oss_readq_puts(dp->readq, mdev->seq_device, msg, len); msg 2387 sound/core/seq/seq_clientmgr.c int is_src, char *msg) msg 2398 sound/core/seq/seq_clientmgr.c snd_iprintf(buffer, msg); msg 118 sound/core/seq/seq_midi.c unsigned char msg[10]; /* buffer for constructing midi messages */ msg 138 sound/core/seq/seq_midi.c len = snd_midi_event_decode(msynth->parser, msg, sizeof(msg), ev); msg 141 sound/core/seq/seq_midi.c if (dump_midi(substream, msg, len) < 0) msg 70 sound/core/seq/seq_virmidi.c unsigned char msg[4]; msg 86 sound/core/seq/seq_virmidi.c len = snd_midi_event_decode(vmidi->parser, msg, sizeof(msg), ev); msg 88 sound/core/seq/seq_virmidi.c snd_rawmidi_receive(vmidi->substream, msg, len); msg 28 sound/firewire/digi00x/digi00x-hwdep.c while (!dg00x->dev_lock_changed && dg00x->msg == 0) { msg 48 sound/firewire/digi00x/digi00x-hwdep.c event.digi00x_message.message = dg00x->msg; msg 49 sound/firewire/digi00x/digi00x-hwdep.c dg00x->msg = 0; msg 71 sound/firewire/digi00x/digi00x-hwdep.c if (dg00x->dev_lock_changed || dg00x->msg) msg 17 sound/firewire/digi00x/digi00x-transaction.c dg00x->msg = be32_to_cpu(*buf); msg 58 sound/firewire/digi00x/digi00x.h u32 msg; msg 28 sound/firewire/motu/motu-hwdep.c while (!motu->dev_lock_changed && motu->msg == 0) { msg 47 sound/firewire/motu/motu-hwdep.c event.motu_notification.message = motu->msg; msg 48 sound/firewire/motu/motu-hwdep.c motu->msg = 0; msg 70 sound/firewire/motu/motu-hwdep.c if (motu->dev_lock_changed || motu->msg) msg 67 sound/firewire/motu/motu-transaction.c motu->msg = be32_to_cpu(*buf); msg 66 sound/firewire/motu/motu.h u32 msg; msg 64 sound/firewire/tascam/tascam-transaction.c u8 *label, *msg; msg 69 sound/firewire/tascam/tascam-transaction.c msg = port->buf + 1; msg 71 sound/firewire/tascam/tascam-transaction.c consume = snd_rawmidi_transmit_peek(substream, msg, 3); msg 79 sound/firewire/tascam/tascam-transaction.c if (msg[i] == 0xf7) { msg 100 sound/firewire/tascam/tascam-transaction.c if (msg[0] == 0xf0) { msg 106 sound/firewire/tascam/tascam-transaction.c if ((msg[0] & 0x80) != 0x80) msg 109 sound/firewire/tascam/tascam-transaction.c status = msg[0]; msg 117 sound/firewire/tascam/tascam-transaction.c if ((msg[0] & 0x80) != 0x80) { msg 123 sound/firewire/tascam/tascam-transaction.c msg[2] = msg[1]; msg 124 sound/firewire/tascam/tascam-transaction.c msg[1] = msg[0]; msg 125 sound/firewire/tascam/tascam-transaction.c msg[0] = port->running_status; msg 132 sound/firewire/tascam/tascam-transaction.c port->running_status = msg[0]; msg 136 sound/firewire/tascam/tascam-transaction.c *label = (substream->number << 4) | (msg[0] >> 4); msg 140 sound/firewire/tascam/tascam-transaction.c memset(msg + len, 0, 3 - len); msg 22 sound/hda/trace.h TP_STRUCT__entry(__dynamic_array(char, msg, HDAC_MSG_MAX)), msg 24 sound/hda/trace.h snprintf(__get_str(msg), HDAC_MSG_MAX, msg 28 sound/hda/trace.h TP_printk("%s", __get_str(msg)) msg 34 sound/hda/trace.h TP_STRUCT__entry(__dynamic_array(char, msg, HDAC_MSG_MAX)), msg 36 sound/hda/trace.h snprintf(__get_str(msg), HDAC_MSG_MAX, msg 40 sound/hda/trace.h TP_printk("%s", __get_str(msg)) msg 46 sound/hda/trace.h TP_STRUCT__entry(__dynamic_array(char, msg, HDAC_MSG_MAX)), msg 48 sound/hda/trace.h snprintf(__get_str(msg), HDAC_MSG_MAX, msg 52 sound/hda/trace.h TP_printk("%s", __get_str(msg)) msg 80 sound/pci/asihpi/hpi_internal.h #define compile_time_assert(cond, msg) \ msg 81 sound/pci/asihpi/hpi_internal.h typedef char ASSERT_##msg[(cond) ? 1 : -1] msg 87 sound/pci/asihpi/hpidebug.h #define compile_time_assert(cond, msg) \ msg 2876 sound/pci/intel8x0.c char *msg = NULL; msg 2880 sound/pci/intel8x0.c msg = result ? "enable (forced) VM" : "disable (forced) VM"; msg 2889 sound/pci/intel8x0.c msg = "enable KVM"; msg 2893 sound/pci/intel8x0.c msg = "enable Parallels VM"; msg 2898 sound/pci/intel8x0.c if (msg != NULL) msg 2899 sound/pci/intel8x0.c dev_info(&pci->dev, "%s optimization\n", msg); msg 133 sound/pci/mixart/mixart_core.c struct mixart_msg *msg, msg 142 sound/pci/mixart/mixart_core.c if (snd_BUG_ON(msg->size % 4)) msg 171 sound/pci/mixart/mixart_core.c writel_be( msg->size + MSG_DESCRIPTOR_SIZE, MIXART_MEM(mgr, msg_frame_address) ); /* size of descriptor + request */ msg 172 sound/pci/mixart/mixart_core.c writel_be( msg->message_id , MIXART_MEM(mgr, msg_frame_address + 4) ); /* dwMessageID */ msg 173 sound/pci/mixart/mixart_core.c writel_be( msg->uid.object_id, MIXART_MEM(mgr, msg_frame_address + 8) ); /* uidDest */ msg 174 sound/pci/mixart/mixart_core.c writel_be( msg->uid.desc, MIXART_MEM(mgr, msg_frame_address + 12) ); /* */ msg 177 sound/pci/mixart/mixart_core.c writel_be( msg->size, MIXART_MEM(mgr, msg_frame_address + 24) ); /* SizeDLL_T16 */ msg 183 sound/pci/mixart/mixart_core.c for( i=0; i < msg->size; i+=4 ) { msg 184 sound/pci/mixart/mixart_core.c writel_be( *(u32*)(msg->data + i), MIXART_MEM(mgr, MSG_HEADER_SIZE + msg_frame_address + i) ); msg 335 sound/pci/mixart/mixart_core.c u32 msg, addr, type; msg 339 sound/pci/mixart/mixart_core.c msg = mgr->msg_fifo[mgr->msg_fifo_readptr]; msg 344 sound/pci/mixart/mixart_core.c addr = msg & ~MSG_TYPE_MASK; msg 345 sound/pci/mixart/mixart_core.c type = msg & MSG_TYPE_MASK; msg 357 sound/pci/mixart/mixart_core.c err, msg); msg 374 sound/pci/mixart/mixart_core.c msg, resp.message_id, resp.uid.object_id, resp.uid.desc, resp.size); msg 385 sound/pci/mixart/mixart_core.c msg); msg 424 sound/pci/mixart/mixart_core.c u32 msg; msg 428 sound/pci/mixart/mixart_core.c while (retrieve_msg_frame(mgr, &msg)) { msg 430 sound/pci/mixart/mixart_core.c switch (msg & MSG_TYPE_MASK) { msg 435 sound/pci/mixart/mixart_core.c err = get_msg(mgr, &resp, msg & ~MSG_TYPE_MASK); msg 439 sound/pci/mixart/mixart_core.c err, msg); msg 525 sound/pci/mixart/mixart_core.c if(msg & MSG_CANCEL_NOTIFY_MASK) { msg 526 sound/pci/mixart/mixart_core.c msg &= ~MSG_CANCEL_NOTIFY_MASK; msg 528 sound/pci/mixart/mixart_core.c "canceled notification %x !\n", msg); msg 534 sound/pci/mixart/mixart_core.c if( (msg & ~MSG_TYPE_MASK) == mgr->pending_event ) { msg 540 sound/pci/mixart/mixart_core.c mgr->msg_fifo[mgr->msg_fifo_writeptr] = msg; msg 550 sound/pci/mixart/mixart_core.c "interrupt received request %x\n", msg); msg 49 sound/soc/codecs/cros_ec_codec.c struct cros_ec_command *msg = (struct cros_ec_command *)&buffer; msg 52 sound/soc/codecs/cros_ec_codec.c msg->version = 0; msg 53 sound/soc/codecs/cros_ec_codec.c msg->command = EC_CMD_CODEC_I2S; msg 54 sound/soc/codecs/cros_ec_codec.c msg->outsize = sizeof(struct ec_param_codec_i2s); msg 55 sound/soc/codecs/cros_ec_codec.c msg->insize = sizeof(struct ec_codec_i2s_gain); msg 57 sound/soc/codecs/cros_ec_codec.c memcpy(msg->data, param, msg->outsize); msg 59 sound/soc/codecs/cros_ec_codec.c ret = cros_ec_cmd_xfer_status(ec_device, msg); msg 61 sound/soc/codecs/cros_ec_codec.c memcpy(resp, msg->data, msg->insize); msg 77 sound/soc/codecs/cros_ec_codec.c struct cros_ec_command *msg = (struct cros_ec_command *)&buffer; msg 79 sound/soc/codecs/cros_ec_codec.c msg->version = 0; msg 80 sound/soc/codecs/cros_ec_codec.c msg->command = EC_CMD_CODEC_I2S; msg 81 sound/soc/codecs/cros_ec_codec.c msg->outsize = sizeof(struct ec_param_codec_i2s); msg 82 sound/soc/codecs/cros_ec_codec.c msg->insize = 0; msg 84 sound/soc/codecs/cros_ec_codec.c memcpy(msg->data, param, msg->outsize); msg 86 sound/soc/codecs/cros_ec_codec.c return cros_ec_cmd_xfer_status(ec_device, msg); msg 48 sound/soc/fsl/fsl_audmix.c char msg[64]; msg 53 sound/soc/fsl/fsl_audmix.c { .tdms = 0, .clk = 0, .msg = "" }, msg 55 sound/soc/fsl/fsl_audmix.c { .tdms = 1, .clk = 1, .msg = "DIS->TDM1: TDM1 not started!\n" }, msg 57 sound/soc/fsl/fsl_audmix.c { .tdms = 2, .clk = 2, .msg = "DIS->TDM2: TDM2 not started!\n" }, msg 59 sound/soc/fsl/fsl_audmix.c { .tdms = 3, .clk = 0, .msg = "DIS->MIX: Please start both TDMs!\n" } msg 61 sound/soc/fsl/fsl_audmix.c { .tdms = 1, .clk = 0, .msg = "TDM1->DIS: TDM1 not started!\n" }, msg 63 sound/soc/fsl/fsl_audmix.c { .tdms = 0, .clk = 0, .msg = "" }, msg 65 sound/soc/fsl/fsl_audmix.c { .tdms = 3, .clk = 2, .msg = "TDM1->TDM2: Please start both TDMs!\n" }, msg 67 sound/soc/fsl/fsl_audmix.c { .tdms = 3, .clk = 0, .msg = "TDM1->MIX: Please start both TDMs!\n" } msg 69 sound/soc/fsl/fsl_audmix.c { .tdms = 2, .clk = 0, .msg = "TDM2->DIS: TDM2 not started!\n" }, msg 71 sound/soc/fsl/fsl_audmix.c { .tdms = 3, .clk = 1, .msg = "TDM2->TDM1: Please start both TDMs!\n" }, msg 73 sound/soc/fsl/fsl_audmix.c { .tdms = 0, .clk = 0, .msg = "" }, msg 75 sound/soc/fsl/fsl_audmix.c { .tdms = 3, .clk = 0, .msg = "TDM2->MIX: Please start both TDMs!\n" } msg 77 sound/soc/fsl/fsl_audmix.c { .tdms = 3, .clk = 0, .msg = "MIX->DIS: Please start both TDMs!\n" }, msg 79 sound/soc/fsl/fsl_audmix.c { .tdms = 3, .clk = 1, .msg = "MIX->TDM1: Please start both TDMs!\n" }, msg 81 sound/soc/fsl/fsl_audmix.c { .tdms = 3, .clk = 2, .msg = "MIX->TDM2: Please start both TDMs!\n" }, msg 83 sound/soc/fsl/fsl_audmix.c { .tdms = 0, .clk = 0, .msg = "" } msg 93 sound/soc/fsl/fsl_audmix.c dev_dbg(comp->dev, "%s", prm.msg); msg 50 sound/soc/intel/atom/sst/sst.c struct ipc_post *msg = NULL; msg 85 sound/soc/intel/atom/sst/sst.c if (sst_create_ipc_msg(&msg, header.p.header_high.part.large)) { msg 93 sound/soc/intel/atom/sst/sst.c memcpy_fromio(msg->mailbox_data, msg 102 sound/soc/intel/atom/sst/sst.c msg->mrfld_header = header; msg 103 sound/soc/intel/atom/sst/sst.c msg->is_process_reply = msg 106 sound/soc/intel/atom/sst/sst.c list_add_tail(&msg->node, &drv->rx_list); msg 117 sound/soc/intel/atom/sst/sst.c struct ipc_post *__msg, *msg = NULL; msg 126 sound/soc/intel/atom/sst/sst.c list_for_each_entry_safe(msg, __msg, &drv->rx_list, node) { msg 127 sound/soc/intel/atom/sst/sst.c list_del(&msg->node); msg 129 sound/soc/intel/atom/sst/sst.c if (msg->is_process_reply) msg 130 sound/soc/intel/atom/sst/sst.c drv->ops->process_message(msg); msg 132 sound/soc/intel/atom/sst/sst.c drv->ops->process_reply(drv, msg); msg 134 sound/soc/intel/atom/sst/sst.c if (msg->is_large) msg 135 sound/soc/intel/atom/sst/sst.c kfree(msg->mailbox_data); msg 136 sound/soc/intel/atom/sst/sst.c kfree(msg); msg 419 sound/soc/intel/atom/sst/sst.h void (*process_reply)(struct intel_sst_drv *ctx, struct ipc_post *msg); msg 421 sound/soc/intel/atom/sst/sst.h struct ipc_post *msg, bool sync); msg 422 sound/soc/intel/atom/sst/sst.h void (*process_message)(struct ipc_post *msg); msg 448 sound/soc/intel/atom/sst/sst.h struct ipc_post *msg, bool sync); msg 449 sound/soc/intel/atom/sst/sst.h void sst_process_reply_mrfld(struct intel_sst_drv *ctx, struct ipc_post *msg); msg 501 sound/soc/intel/atom/sst/sst.h struct ipc_post *msg); msg 511 sound/soc/intel/atom/sst/sst.h int msg, int task_id, int large, int drv_id); msg 512 sound/soc/intel/atom/sst/sst.h void sst_fill_header_dsp(struct ipc_dsp_hdr *dsp, int msg, msg 32 sound/soc/intel/atom/sst/sst_ipc.c struct sst_block *msg = NULL; msg 35 sound/soc/intel/atom/sst/sst_ipc.c msg = kzalloc(sizeof(*msg), GFP_KERNEL); msg 36 sound/soc/intel/atom/sst/sst_ipc.c if (!msg) msg 38 sound/soc/intel/atom/sst/sst_ipc.c msg->condition = false; msg 39 sound/soc/intel/atom/sst/sst_ipc.c msg->on = true; msg 40 sound/soc/intel/atom/sst/sst_ipc.c msg->msg_id = msg_id; msg 41 sound/soc/intel/atom/sst/sst_ipc.c msg->drv_id = drv_id; msg 43 sound/soc/intel/atom/sst/sst_ipc.c list_add_tail(&msg->node, &ctx->block_list); msg 46 sound/soc/intel/atom/sst/sst_ipc.c return msg; msg 119 sound/soc/intel/atom/sst/sst_ipc.c struct ipc_post *msg = ipc_msg; msg 156 sound/soc/intel/atom/sst/sst_ipc.c msg = list_entry(sst_drv_ctx->ipc_dispatch_list.next, msg 158 sound/soc/intel/atom/sst/sst_ipc.c list_del(&msg->node); msg 161 sound/soc/intel/atom/sst/sst_ipc.c msg->mrfld_header.p.header_high.full); msg 163 sound/soc/intel/atom/sst/sst_ipc.c msg->mrfld_header.p.header_low_payload); msg 165 sound/soc/intel/atom/sst/sst_ipc.c if (msg->mrfld_header.p.header_high.part.large) msg 167 sound/soc/intel/atom/sst/sst_ipc.c msg->mailbox_data, msg 168 sound/soc/intel/atom/sst/sst_ipc.c msg->mrfld_header.p.header_low_payload); msg 170 sound/soc/intel/atom/sst/sst_ipc.c sst_shim_write64(sst_drv_ctx->shim, SST_IPCX, msg->mrfld_header.full); msg 174 sound/soc/intel/atom/sst/sst_ipc.c kfree(msg->mailbox_data); msg 175 sound/soc/intel/atom/sst/sst_ipc.c kfree(msg); msg 217 sound/soc/intel/atom/sst/sst_ipc.c void *msg) msg 220 sound/soc/intel/atom/sst/sst_ipc.c (struct ipc_header_fw_init *)msg; msg 250 sound/soc/intel/atom/sst/sst_ipc.c struct ipc_post *msg) msg 259 sound/soc/intel/atom/sst/sst_ipc.c msg_low = msg->mrfld_header.p.header_low_payload; msg 260 sound/soc/intel/atom/sst/sst_ipc.c msg_id = ((struct ipc_dsp_hdr *)msg->mailbox_data)->cmd_id; msg 261 sound/soc/intel/atom/sst/sst_ipc.c data_offset = (msg->mailbox_data + sizeof(struct ipc_dsp_hdr)); msg 266 sound/soc/intel/atom/sst/sst_ipc.c pipe_id = ((struct ipc_dsp_hdr *)msg->mailbox_data)->pipe_id; msg 284 sound/soc/intel/atom/sst/sst_ipc.c pipe_id = ((struct ipc_dsp_hdr *)msg->mailbox_data)->pipe_id; msg 305 sound/soc/intel/atom/sst/sst_ipc.c pipe_id = ((struct ipc_dsp_hdr *)msg->mailbox_data)->pipe_id; msg 320 sound/soc/intel/atom/sst/sst_ipc.c struct ipc_post *msg) msg 328 sound/soc/intel/atom/sst/sst_ipc.c msg_high = msg->mrfld_header.p.header_high; msg 329 sound/soc/intel/atom/sst/sst_ipc.c msg_low = msg->mrfld_header.p.header_low_payload; msg 332 sound/soc/intel/atom/sst/sst_ipc.c msg->mrfld_header.p.header_high.full, msg 333 sound/soc/intel/atom/sst/sst_ipc.c msg->mrfld_header.p.header_low_payload); msg 340 sound/soc/intel/atom/sst/sst_ipc.c process_fw_async_msg(sst_drv_ctx, msg); msg 360 sound/soc/intel/atom/sst/sst_ipc.c data = kmemdup((void *)msg->mailbox_data, msg_low, GFP_KERNEL); msg 159 sound/soc/intel/atom/sst/sst_pvt.c struct ipc_post *msg; msg 161 sound/soc/intel/atom/sst/sst_pvt.c msg = kzalloc(sizeof(*msg), GFP_ATOMIC); msg 162 sound/soc/intel/atom/sst/sst_pvt.c if (!msg) msg 165 sound/soc/intel/atom/sst/sst_pvt.c msg->mailbox_data = kzalloc(SST_MAILBOX_SIZE, GFP_ATOMIC); msg 166 sound/soc/intel/atom/sst/sst_pvt.c if (!msg->mailbox_data) { msg 167 sound/soc/intel/atom/sst/sst_pvt.c kfree(msg); msg 171 sound/soc/intel/atom/sst/sst_pvt.c msg->mailbox_data = NULL; msg 173 sound/soc/intel/atom/sst/sst_pvt.c msg->is_large = large; msg 174 sound/soc/intel/atom/sst/sst_pvt.c *arg = msg; msg 226 sound/soc/intel/atom/sst/sst_pvt.c struct ipc_post *msg = NULL; msg 237 sound/soc/intel/atom/sst/sst_pvt.c &msg, large, sst, &block, ipc_msg, pvt_id); msg 239 sound/soc/intel/atom/sst/sst_pvt.c ret = sst_create_ipc_msg(&msg, large); msg 248 sound/soc/intel/atom/sst/sst_pvt.c sst_fill_header_mrfld(&msg->mrfld_header, ipc_msg, msg 250 sound/soc/intel/atom/sst/sst_pvt.c msg->mrfld_header.p.header_low_payload = sizeof(dsp_hdr) + mbox_data_len; msg 251 sound/soc/intel/atom/sst/sst_pvt.c msg->mrfld_header.p.header_high.part.res_rqd = !sync; msg 253 sound/soc/intel/atom/sst/sst_pvt.c msg->mrfld_header.p.header_high.full); msg 255 sound/soc/intel/atom/sst/sst_pvt.c msg->mrfld_header.p.header_high.part.res_rqd); msg 257 sound/soc/intel/atom/sst/sst_pvt.c msg->mrfld_header.p.header_low_payload); msg 260 sound/soc/intel/atom/sst/sst_pvt.c memcpy(msg->mailbox_data, &dsp_hdr, sizeof(dsp_hdr)); msg 262 sound/soc/intel/atom/sst/sst_pvt.c memcpy(msg->mailbox_data + sizeof(dsp_hdr), msg 268 sound/soc/intel/atom/sst/sst_pvt.c sst->ops->post_message(sst, msg, true); msg 270 sound/soc/intel/atom/sst/sst_pvt.c sst_add_to_dispatch_list_and_post(sst, msg); msg 304 sound/soc/intel/atom/sst/sst_pvt.c int msg, int task_id, int large, int drv_id) msg 307 sound/soc/intel/atom/sst/sst_pvt.c header->p.header_high.part.msg_id = msg; msg 316 sound/soc/intel/atom/sst/sst_pvt.c void sst_fill_header_dsp(struct ipc_dsp_hdr *dsp, int msg, msg 319 sound/soc/intel/atom/sst/sst_pvt.c dsp->cmd_id = msg; msg 399 sound/soc/intel/atom/sst/sst_pvt.c struct ipc_post *msg) msg 404 sound/soc/intel/atom/sst/sst_pvt.c list_add_tail(&msg->node, &sst->ipc_dispatch_list); msg 173 sound/soc/intel/atom/sst/sst_stream.c { struct ipc_post *msg = NULL; msg 183 sound/soc/intel/atom/sst/sst_stream.c if (sst_create_ipc_msg(&msg, true)) msg 187 sound/soc/intel/atom/sst/sst_stream.c sst_fill_header_mrfld(&msg->mrfld_header, bytes->ipc_msg, msg 189 sound/soc/intel/atom/sst/sst_stream.c msg->mrfld_header.p.header_high.part.res_rqd = bytes->block; msg 191 sound/soc/intel/atom/sst/sst_stream.c msg->mrfld_header.p.header_low_payload = length; msg 193 sound/soc/intel/atom/sst/sst_stream.c memcpy(msg->mailbox_data, &bytes->bytes, bytes->len); msg 197 sound/soc/intel/atom/sst/sst_stream.c kfree(msg); msg 203 sound/soc/intel/atom/sst/sst_stream.c sst_add_to_dispatch_list_and_post(sst_drv_ctx, msg); msg 205 sound/soc/intel/atom/sst/sst_stream.c msg->mrfld_header.p.header_low_payload); msg 211 sound/soc/intel/baytrail/sst-baytrail-ipc.c static void sst_byt_stream_update(struct sst_byt *byt, struct ipc_message *msg) msg 214 sound/soc/intel/baytrail/sst-baytrail-ipc.c u64 header = msg->tx.header; msg 237 sound/soc/intel/baytrail/sst-baytrail-ipc.c struct ipc_message *msg; msg 239 sound/soc/intel/baytrail/sst-baytrail-ipc.c msg = sst_ipc_reply_find_msg(&byt->ipc, header); msg 240 sound/soc/intel/baytrail/sst-baytrail-ipc.c if (msg == NULL) msg 243 sound/soc/intel/baytrail/sst-baytrail-ipc.c msg->rx.header = header; msg 245 sound/soc/intel/baytrail/sst-baytrail-ipc.c msg->rx.size = sst_byt_header_data(header); msg 246 sound/soc/intel/baytrail/sst-baytrail-ipc.c sst_dsp_inbox_read(byt->dsp, msg->rx.data, msg->rx.size); msg 250 sound/soc/intel/baytrail/sst-baytrail-ipc.c sst_byt_stream_update(byt, msg); msg 252 sound/soc/intel/baytrail/sst-baytrail-ipc.c list_del(&msg->list); msg 254 sound/soc/intel/baytrail/sst-baytrail-ipc.c sst_ipc_tx_msg_reply_complete(&byt->ipc, msg); msg 623 sound/soc/intel/baytrail/sst-baytrail-ipc.c static void byt_tx_msg(struct sst_generic_ipc *ipc, struct ipc_message *msg) msg 625 sound/soc/intel/baytrail/sst-baytrail-ipc.c if (msg->tx.header & IPC_HEADER_LARGE(true)) msg 626 sound/soc/intel/baytrail/sst-baytrail-ipc.c sst_dsp_outbox_write(ipc->dsp, msg->tx.data, msg->tx.size); msg 628 sound/soc/intel/baytrail/sst-baytrail-ipc.c sst_dsp_shim_write64_unlocked(ipc->dsp, SST_IPCX, msg->tx.header); msg 646 sound/soc/intel/baytrail/sst-baytrail-ipc.c static void byt_tx_data_copy(struct ipc_message *msg, char *tx_data, msg 650 sound/soc/intel/baytrail/sst-baytrail-ipc.c *(u32 *)msg->tx.data = (u32)(msg->tx.header & (u32)-1); msg 651 sound/soc/intel/baytrail/sst-baytrail-ipc.c memcpy(msg->tx.data + sizeof(u32), tx_data, tx_size); msg 652 sound/soc/intel/baytrail/sst-baytrail-ipc.c msg->tx.size += sizeof(u32); msg 331 sound/soc/intel/common/sst-dsp.c void sst_dsp_ipc_msg_tx(struct sst_dsp *dsp, u32 msg) msg 333 sound/soc/intel/common/sst-dsp.c sst_dsp_shim_write_unlocked(dsp, SST_IPCX, msg | SST_IPCX_BUSY); msg 334 sound/soc/intel/common/sst-dsp.c trace_sst_ipc_msg_tx(msg); msg 340 sound/soc/intel/common/sst-dsp.c u32 msg; msg 342 sound/soc/intel/common/sst-dsp.c msg = sst_dsp_shim_read_unlocked(dsp, SST_IPCX); msg 343 sound/soc/intel/common/sst-dsp.c trace_sst_ipc_msg_rx(msg); msg 345 sound/soc/intel/common/sst-dsp.c return msg; msg 267 sound/soc/intel/common/sst-dsp.h void sst_dsp_ipc_msg_tx(struct sst_dsp *dsp, u32 msg); msg 34 sound/soc/intel/common/sst-ipc.c struct ipc_message *msg = NULL; msg 37 sound/soc/intel/common/sst-ipc.c msg = list_first_entry(&ipc->empty_list, struct ipc_message, msg 39 sound/soc/intel/common/sst-ipc.c list_del(&msg->list); msg 42 sound/soc/intel/common/sst-ipc.c return msg; msg 46 sound/soc/intel/common/sst-ipc.c struct ipc_message *msg, struct sst_ipc_message *reply) msg 52 sound/soc/intel/common/sst-ipc.c ret = wait_event_timeout(msg->waitq, msg->complete, msg 60 sound/soc/intel/common/sst-ipc.c list_del(&msg->list); msg 66 sound/soc/intel/common/sst-ipc.c reply->header = msg->rx.header; msg 68 sound/soc/intel/common/sst-ipc.c memcpy(reply->data, msg->rx.data, msg->rx.size); msg 70 sound/soc/intel/common/sst-ipc.c ret = msg->errno; msg 73 sound/soc/intel/common/sst-ipc.c list_add_tail(&msg->list, &ipc->empty_list); msg 82 sound/soc/intel/common/sst-ipc.c struct ipc_message *msg; msg 87 sound/soc/intel/common/sst-ipc.c msg = msg_get_empty(ipc); msg 88 sound/soc/intel/common/sst-ipc.c if (msg == NULL) { msg 93 sound/soc/intel/common/sst-ipc.c msg->tx.header = request.header; msg 94 sound/soc/intel/common/sst-ipc.c msg->tx.size = request.size; msg 95 sound/soc/intel/common/sst-ipc.c msg->rx.header = 0; msg 96 sound/soc/intel/common/sst-ipc.c msg->rx.size = reply ? reply->size : 0; msg 97 sound/soc/intel/common/sst-ipc.c msg->wait = wait; msg 98 sound/soc/intel/common/sst-ipc.c msg->errno = 0; msg 99 sound/soc/intel/common/sst-ipc.c msg->pending = false; msg 100 sound/soc/intel/common/sst-ipc.c msg->complete = false; msg 103 sound/soc/intel/common/sst-ipc.c ipc->ops.tx_data_copy(msg, request.data, request.size); msg 105 sound/soc/intel/common/sst-ipc.c list_add_tail(&msg->list, &ipc->tx_list); msg 110 sound/soc/intel/common/sst-ipc.c return tx_wait_done(ipc, msg, reply); msg 119 sound/soc/intel/common/sst-ipc.c ipc->msg = kcalloc(IPC_EMPTY_LIST_SIZE, sizeof(struct ipc_message), msg 121 sound/soc/intel/common/sst-ipc.c if (ipc->msg == NULL) msg 125 sound/soc/intel/common/sst-ipc.c ipc->msg[i].tx.data = kzalloc(ipc->tx_data_max_size, GFP_KERNEL); msg 126 sound/soc/intel/common/sst-ipc.c if (ipc->msg[i].tx.data == NULL) msg 129 sound/soc/intel/common/sst-ipc.c ipc->msg[i].rx.data = kzalloc(ipc->rx_data_max_size, GFP_KERNEL); msg 130 sound/soc/intel/common/sst-ipc.c if (ipc->msg[i].rx.data == NULL) { msg 131 sound/soc/intel/common/sst-ipc.c kfree(ipc->msg[i].tx.data); msg 135 sound/soc/intel/common/sst-ipc.c init_waitqueue_head(&ipc->msg[i].waitq); msg 136 sound/soc/intel/common/sst-ipc.c list_add(&ipc->msg[i].list, &ipc->empty_list); msg 143 sound/soc/intel/common/sst-ipc.c kfree(ipc->msg[i-1].tx.data); msg 144 sound/soc/intel/common/sst-ipc.c kfree(ipc->msg[i-1].rx.data); msg 147 sound/soc/intel/common/sst-ipc.c kfree(ipc->msg); msg 156 sound/soc/intel/common/sst-ipc.c struct ipc_message *msg; msg 170 sound/soc/intel/common/sst-ipc.c msg = list_first_entry(&ipc->tx_list, struct ipc_message, list); msg 171 sound/soc/intel/common/sst-ipc.c list_move(&msg->list, &ipc->rx_list); msg 174 sound/soc/intel/common/sst-ipc.c ipc->ops.tx_msg(ipc, msg); msg 221 sound/soc/intel/common/sst-ipc.c struct ipc_message *msg; msg 235 sound/soc/intel/common/sst-ipc.c list_for_each_entry(msg, &ipc->rx_list, list) { msg 236 sound/soc/intel/common/sst-ipc.c if ((msg->tx.header & mask) == header) msg 237 sound/soc/intel/common/sst-ipc.c return msg; msg 246 sound/soc/intel/common/sst-ipc.c struct ipc_message *msg) msg 248 sound/soc/intel/common/sst-ipc.c msg->complete = true; msg 250 sound/soc/intel/common/sst-ipc.c if (!msg->wait) msg 251 sound/soc/intel/common/sst-ipc.c list_add_tail(&msg->list, &ipc->empty_list); msg 253 sound/soc/intel/common/sst-ipc.c wake_up(&msg->waitq); msg 259 sound/soc/intel/common/sst-ipc.c struct ipc_message *msg, *tmp; msg 266 sound/soc/intel/common/sst-ipc.c list_for_each_entry_safe(msg, tmp, &ipc->tx_list, list) { msg 267 sound/soc/intel/common/sst-ipc.c list_move(&msg->list, &ipc->empty_list); msg 271 sound/soc/intel/common/sst-ipc.c list_for_each_entry_safe(msg, tmp, &ipc->rx_list, list) { msg 272 sound/soc/intel/common/sst-ipc.c list_move(&msg->list, &ipc->empty_list); msg 308 sound/soc/intel/common/sst-ipc.c if (ipc->msg) { msg 310 sound/soc/intel/common/sst-ipc.c kfree(ipc->msg[i].tx.data); msg 311 sound/soc/intel/common/sst-ipc.c kfree(ipc->msg[i].rx.data); msg 313 sound/soc/intel/common/sst-ipc.c kfree(ipc->msg); msg 63 sound/soc/intel/common/sst-ipc.h struct ipc_message *msg; msg 83 sound/soc/intel/common/sst-ipc.h struct ipc_message *msg); msg 324 sound/soc/intel/haswell/sst-haswell-ipc.c static inline u32 msg_get_global_type(u32 msg) msg 326 sound/soc/intel/haswell/sst-haswell-ipc.c return (msg & IPC_GLB_TYPE_MASK) >> IPC_GLB_TYPE_SHIFT; msg 329 sound/soc/intel/haswell/sst-haswell-ipc.c static inline u32 msg_get_global_reply(u32 msg) msg 331 sound/soc/intel/haswell/sst-haswell-ipc.c return (msg & IPC_GLB_REPLY_MASK) >> IPC_GLB_REPLY_SHIFT; msg 334 sound/soc/intel/haswell/sst-haswell-ipc.c static inline u32 msg_get_stream_type(u32 msg) msg 336 sound/soc/intel/haswell/sst-haswell-ipc.c return (msg & IPC_STR_TYPE_MASK) >> IPC_STR_TYPE_SHIFT; msg 339 sound/soc/intel/haswell/sst-haswell-ipc.c static inline u32 msg_get_stream_id(u32 msg) msg 341 sound/soc/intel/haswell/sst-haswell-ipc.c return (msg & IPC_STR_ID_MASK) >> IPC_STR_ID_SHIFT; msg 344 sound/soc/intel/haswell/sst-haswell-ipc.c static inline u32 msg_get_notify_reason(u32 msg) msg 346 sound/soc/intel/haswell/sst-haswell-ipc.c return (msg & IPC_STG_TYPE_MASK) >> IPC_STG_TYPE_SHIFT; msg 349 sound/soc/intel/haswell/sst-haswell-ipc.c static inline u32 msg_get_module_operation(u32 msg) msg 351 sound/soc/intel/haswell/sst-haswell-ipc.c return (msg & IPC_MODULE_OPERATION_MASK) >> IPC_MODULE_OPERATION_SHIFT; msg 354 sound/soc/intel/haswell/sst-haswell-ipc.c static inline u32 msg_get_module_id(u32 msg) msg 356 sound/soc/intel/haswell/sst-haswell-ipc.c return (msg & IPC_MODULE_ID_MASK) >> IPC_MODULE_ID_SHIFT; msg 511 sound/soc/intel/haswell/sst-haswell-ipc.c static void hsw_stream_update(struct sst_hsw *hsw, struct ipc_message *msg) msg 514 sound/soc/intel/haswell/sst-haswell-ipc.c u32 header = msg->tx.header & ~(IPC_STATUS_MASK | IPC_GLB_REPLY_MASK); msg 544 sound/soc/intel/haswell/sst-haswell-ipc.c struct ipc_message *msg; msg 549 sound/soc/intel/haswell/sst-haswell-ipc.c msg = sst_ipc_reply_find_msg(&hsw->ipc, header); msg 550 sound/soc/intel/haswell/sst-haswell-ipc.c if (msg == NULL) { msg 555 sound/soc/intel/haswell/sst-haswell-ipc.c msg->rx.header = header; msg 560 sound/soc/intel/haswell/sst-haswell-ipc.c msg->pending = true; msg 564 sound/soc/intel/haswell/sst-haswell-ipc.c if (msg->pending) { msg 566 sound/soc/intel/haswell/sst-haswell-ipc.c sst_dsp_inbox_read(hsw->dsp, msg->rx.data, msg 567 sound/soc/intel/haswell/sst-haswell-ipc.c msg->rx.size); msg 571 sound/soc/intel/haswell/sst-haswell-ipc.c sst_dsp_outbox_read(hsw->dsp, msg->rx.data, msg 572 sound/soc/intel/haswell/sst-haswell-ipc.c msg->rx.size); msg 578 sound/soc/intel/haswell/sst-haswell-ipc.c msg->errno = -EBADMSG; msg 582 sound/soc/intel/haswell/sst-haswell-ipc.c msg->errno = -ENOMEM; msg 586 sound/soc/intel/haswell/sst-haswell-ipc.c msg->errno = -EBUSY; msg 590 sound/soc/intel/haswell/sst-haswell-ipc.c msg->errno = -EINVAL; msg 594 sound/soc/intel/haswell/sst-haswell-ipc.c msg->errno = -EINVAL; msg 598 sound/soc/intel/haswell/sst-haswell-ipc.c msg->errno = -EINVAL; msg 602 sound/soc/intel/haswell/sst-haswell-ipc.c msg->errno = -EINVAL; msg 606 sound/soc/intel/haswell/sst-haswell-ipc.c msg->errno = -EINVAL; msg 610 sound/soc/intel/haswell/sst-haswell-ipc.c msg->errno = -EINVAL; msg 614 sound/soc/intel/haswell/sst-haswell-ipc.c msg->errno = -EINVAL; msg 620 sound/soc/intel/haswell/sst-haswell-ipc.c hsw_stream_update(hsw, msg); msg 623 sound/soc/intel/haswell/sst-haswell-ipc.c list_del(&msg->list); msg 624 sound/soc/intel/haswell/sst-haswell-ipc.c sst_ipc_tx_msg_reply_complete(&hsw->ipc, msg); msg 2053 sound/soc/intel/haswell/sst-haswell-ipc.c static void hsw_tx_msg(struct sst_generic_ipc *ipc, struct ipc_message *msg) msg 2056 sound/soc/intel/haswell/sst-haswell-ipc.c sst_dsp_outbox_write(ipc->dsp, msg->tx.data, msg->tx.size); msg 2057 sound/soc/intel/haswell/sst-haswell-ipc.c sst_dsp_ipc_msg_tx(ipc->dsp, msg->tx.header); msg 2075 sound/soc/intel/haswell/sst-haswell-ipc.c static void hsw_tx_data_copy(struct ipc_message *msg, char *tx_data, msg 2078 sound/soc/intel/haswell/sst-haswell-ipc.c memcpy(msg->tx.data, tx_data, tx_size); msg 290 sound/soc/intel/skylake/bxt-sst.c struct skl_ipc_d0ix_msg msg; msg 310 sound/soc/intel/skylake/bxt-sst.c msg.instance_id = 0; msg 311 sound/soc/intel/skylake/bxt-sst.c msg.module_id = 0; msg 312 sound/soc/intel/skylake/bxt-sst.c msg.wake = 1; msg 313 sound/soc/intel/skylake/bxt-sst.c msg.streaming = 0; msg 315 sound/soc/intel/skylake/bxt-sst.c msg.streaming = 1; msg 317 sound/soc/intel/skylake/bxt-sst.c ret = skl_ipc_set_d0ix(&skl->ipc, &msg); msg 352 sound/soc/intel/skylake/bxt-sst.c struct skl_ipc_d0ix_msg msg; msg 366 sound/soc/intel/skylake/bxt-sst.c msg.instance_id = 0; msg 367 sound/soc/intel/skylake/bxt-sst.c msg.module_id = 0; msg 368 sound/soc/intel/skylake/bxt-sst.c msg.streaming = 0; msg 369 sound/soc/intel/skylake/bxt-sst.c msg.wake = 0; msg 372 sound/soc/intel/skylake/bxt-sst.c msg.streaming = 1; msg 378 sound/soc/intel/skylake/bxt-sst.c ret = skl_ipc_set_d0ix(&skl->ipc, &msg); msg 367 sound/soc/intel/skylake/cnl-sst.c static void cnl_ipc_tx_msg(struct sst_generic_ipc *ipc, struct ipc_message *msg) msg 369 sound/soc/intel/skylake/cnl-sst.c struct skl_ipc_header *header = (struct skl_ipc_header *)(&msg->tx.header); msg 371 sound/soc/intel/skylake/cnl-sst.c if (msg->tx.size) msg 372 sound/soc/intel/skylake/cnl-sst.c sst_dsp_outbox_write(ipc->dsp, msg->tx.data, msg->tx.size); msg 41 sound/soc/intel/skylake/skl-messages.c struct skl_ipc_large_config_msg msg = {0}; msg 43 sound/soc/intel/skylake/skl-messages.c msg.large_param_id = SKL_ASTATE_PARAM_ID; msg 44 sound/soc/intel/skylake/skl-messages.c msg.param_data_size = (cnt * sizeof(struct skl_astate_param) + msg 47 sound/soc/intel/skylake/skl-messages.c skl_ipc_set_large_config(&skl->ipc, &msg, data); msg 624 sound/soc/intel/skylake/skl-messages.c struct skl_ipc_large_config_msg msg = {0}; msg 634 sound/soc/intel/skylake/skl-messages.c msg.large_param_id = DMA_CONTROL_ID; msg 635 sound/soc/intel/skylake/skl-messages.c msg.param_data_size = sizeof(struct skl_dma_control) + caps_size; msg 637 sound/soc/intel/skylake/skl-messages.c dma_ctrl = kzalloc(msg.param_data_size, GFP_KERNEL); msg 653 sound/soc/intel/skylake/skl-messages.c err = skl_ipc_set_large_config(&skl->ipc, &msg, (u32 *)dma_ctrl); msg 978 sound/soc/intel/skylake/skl-messages.c struct skl_ipc_init_instance_msg msg; msg 996 sound/soc/intel/skylake/skl-messages.c msg.module_id = mconfig->id.module_id; msg 997 sound/soc/intel/skylake/skl-messages.c msg.instance_id = mconfig->id.pvt_id; msg 998 sound/soc/intel/skylake/skl-messages.c msg.ppl_instance_id = mconfig->pipe->ppl_id; msg 999 sound/soc/intel/skylake/skl-messages.c msg.param_data_size = module_config_size; msg 1000 sound/soc/intel/skylake/skl-messages.c msg.core_id = mconfig->core_id; msg 1001 sound/soc/intel/skylake/skl-messages.c msg.domain = mconfig->domain; msg 1003 sound/soc/intel/skylake/skl-messages.c ret = skl_ipc_init_instance(&skl->ipc, &msg, param_data); msg 1036 sound/soc/intel/skylake/skl-messages.c struct skl_ipc_bind_unbind_msg msg; msg 1050 sound/soc/intel/skylake/skl-messages.c msg.src_queue = src_index; msg 1057 sound/soc/intel/skylake/skl-messages.c msg.dst_queue = dst_index; msg 1066 sound/soc/intel/skylake/skl-messages.c msg.module_id = src_mcfg->id.module_id; msg 1067 sound/soc/intel/skylake/skl-messages.c msg.instance_id = src_mcfg->id.pvt_id; msg 1068 sound/soc/intel/skylake/skl-messages.c msg.dst_module_id = dst_mcfg->id.module_id; msg 1069 sound/soc/intel/skylake/skl-messages.c msg.dst_instance_id = dst_mcfg->id.pvt_id; msg 1070 sound/soc/intel/skylake/skl-messages.c msg.bind = false; msg 1072 sound/soc/intel/skylake/skl-messages.c ret = skl_ipc_bind_unbind(&skl->ipc, &msg); msg 1115 sound/soc/intel/skylake/skl-messages.c struct skl_ipc_bind_unbind_msg msg; msg 1134 sound/soc/intel/skylake/skl-messages.c msg.src_queue = src_index; msg 1164 sound/soc/intel/skylake/skl-messages.c msg.dst_queue = dst_index; msg 1167 sound/soc/intel/skylake/skl-messages.c msg.src_queue, msg.dst_queue); msg 1169 sound/soc/intel/skylake/skl-messages.c msg.module_id = src_mcfg->id.module_id; msg 1170 sound/soc/intel/skylake/skl-messages.c msg.instance_id = src_mcfg->id.pvt_id; msg 1171 sound/soc/intel/skylake/skl-messages.c msg.dst_module_id = dst_mcfg->id.module_id; msg 1172 sound/soc/intel/skylake/skl-messages.c msg.dst_instance_id = dst_mcfg->id.pvt_id; msg 1173 sound/soc/intel/skylake/skl-messages.c msg.bind = true; msg 1175 sound/soc/intel/skylake/skl-messages.c ret = skl_ipc_bind_unbind(&skl->ipc, &msg); msg 1358 sound/soc/intel/skylake/skl-messages.c struct skl_ipc_large_config_msg msg; msg 1360 sound/soc/intel/skylake/skl-messages.c msg.module_id = mcfg->id.module_id; msg 1361 sound/soc/intel/skylake/skl-messages.c msg.instance_id = mcfg->id.pvt_id; msg 1362 sound/soc/intel/skylake/skl-messages.c msg.param_data_size = size; msg 1363 sound/soc/intel/skylake/skl-messages.c msg.large_param_id = param_id; msg 1365 sound/soc/intel/skylake/skl-messages.c return skl_ipc_set_large_config(&skl->ipc, &msg, params); msg 1371 sound/soc/intel/skylake/skl-messages.c struct skl_ipc_large_config_msg msg; msg 1374 sound/soc/intel/skylake/skl-messages.c msg.module_id = mcfg->id.module_id; msg 1375 sound/soc/intel/skylake/skl-messages.c msg.instance_id = mcfg->id.pvt_id; msg 1376 sound/soc/intel/skylake/skl-messages.c msg.param_data_size = size; msg 1377 sound/soc/intel/skylake/skl-messages.c msg.large_param_id = param_id; msg 1379 sound/soc/intel/skylake/skl-messages.c return skl_ipc_get_large_config(&skl->ipc, &msg, ¶ms, &bytes); msg 280 sound/soc/intel/skylake/skl-sst-ipc.c void skl_ipc_tx_data_copy(struct ipc_message *msg, char *tx_data, msg 284 sound/soc/intel/skylake/skl-sst-ipc.c memcpy(msg->tx.data, tx_data, tx_size); msg 296 sound/soc/intel/skylake/skl-sst-ipc.c static void skl_ipc_tx_msg(struct sst_generic_ipc *ipc, struct ipc_message *msg) msg 298 sound/soc/intel/skylake/skl-sst-ipc.c struct skl_ipc_header *header = (struct skl_ipc_header *)(&msg->tx.header); msg 300 sound/soc/intel/skylake/skl-sst-ipc.c if (msg->tx.size) msg 301 sound/soc/intel/skylake/skl-sst-ipc.c sst_dsp_outbox_write(ipc->dsp, msg->tx.data, msg->tx.size); msg 328 sound/soc/intel/skylake/skl-sst-ipc.c struct ipc_message *msg = NULL; msg 337 sound/soc/intel/skylake/skl-sst-ipc.c msg = list_first_entry(&ipc->rx_list, struct ipc_message, list); msg 339 sound/soc/intel/skylake/skl-sst-ipc.c list_del(&msg->list); msg 341 sound/soc/intel/skylake/skl-sst-ipc.c return msg; msg 391 sound/soc/intel/skylake/skl-sst-ipc.c const char *msg; msg 423 sound/soc/intel/skylake/skl-sst-ipc.c skl_err_map[i].msg, msg 427 sound/soc/intel/skylake/skl-sst-ipc.c skl_err_map[i].msg, msg 436 sound/soc/intel/skylake/skl-sst-ipc.c struct ipc_message *msg; msg 443 sound/soc/intel/skylake/skl-sst-ipc.c msg = skl_ipc_reply_get_msg(ipc, *ipc_header); msg 445 sound/soc/intel/skylake/skl-sst-ipc.c if (msg == NULL) { msg 450 sound/soc/intel/skylake/skl-sst-ipc.c msg->rx.header = *ipc_header; msg 455 sound/soc/intel/skylake/skl-sst-ipc.c sst_dsp_inbox_read(ipc->dsp, msg->rx.data, msg->rx.size); msg 469 sound/soc/intel/skylake/skl-sst-ipc.c msg->errno = skl_ipc_set_reply_error_code(ipc, reply); msg 485 sound/soc/intel/skylake/skl-sst-ipc.c sst_ipc_tx_msg_reply_complete(ipc, msg); msg 789 sound/soc/intel/skylake/skl-sst-ipc.c struct skl_ipc_init_instance_msg *msg, void *param_data) msg 796 sound/soc/intel/skylake/skl-sst-ipc.c u16 param_block_size = msg->param_data_size / sizeof(u32); msg 804 sound/soc/intel/skylake/skl-sst-ipc.c header.primary |= IPC_MOD_INSTANCE_ID(msg->instance_id); msg 805 sound/soc/intel/skylake/skl-sst-ipc.c header.primary |= IPC_MOD_ID(msg->module_id); msg 807 sound/soc/intel/skylake/skl-sst-ipc.c header.extension = IPC_CORE_ID(msg->core_id); msg 808 sound/soc/intel/skylake/skl-sst-ipc.c header.extension |= IPC_PPL_INSTANCE_ID(msg->ppl_instance_id); msg 810 sound/soc/intel/skylake/skl-sst-ipc.c header.extension |= IPC_DOMAIN(msg->domain); msg 814 sound/soc/intel/skylake/skl-sst-ipc.c request.size = msg->param_data_size; msg 830 sound/soc/intel/skylake/skl-sst-ipc.c struct skl_ipc_bind_unbind_msg *msg) msg 834 sound/soc/intel/skylake/skl-sst-ipc.c u8 bind_unbind = msg->bind ? IPC_MOD_BIND : IPC_MOD_UNBIND; msg 840 sound/soc/intel/skylake/skl-sst-ipc.c header.primary |= IPC_MOD_INSTANCE_ID(msg->instance_id); msg 841 sound/soc/intel/skylake/skl-sst-ipc.c header.primary |= IPC_MOD_ID(msg->module_id); msg 843 sound/soc/intel/skylake/skl-sst-ipc.c header.extension = IPC_DST_MOD_ID(msg->dst_module_id); msg 844 sound/soc/intel/skylake/skl-sst-ipc.c header.extension |= IPC_DST_MOD_INSTANCE_ID(msg->dst_instance_id); msg 845 sound/soc/intel/skylake/skl-sst-ipc.c header.extension |= IPC_DST_QUEUE(msg->dst_queue); msg 846 sound/soc/intel/skylake/skl-sst-ipc.c header.extension |= IPC_SRC_QUEUE(msg->src_queue); msg 916 sound/soc/intel/skylake/skl-sst-ipc.c struct skl_ipc_large_config_msg *msg, u32 *param) msg 926 sound/soc/intel/skylake/skl-sst-ipc.c header.primary |= IPC_MOD_INSTANCE_ID(msg->instance_id); msg 927 sound/soc/intel/skylake/skl-sst-ipc.c header.primary |= IPC_MOD_ID(msg->module_id); msg 929 sound/soc/intel/skylake/skl-sst-ipc.c header.extension = IPC_DATA_OFFSET_SZ(msg->param_data_size); msg 930 sound/soc/intel/skylake/skl-sst-ipc.c header.extension |= IPC_LARGE_PARAM_ID(msg->large_param_id); msg 934 sound/soc/intel/skylake/skl-sst-ipc.c sz_remaining = msg->param_data_size; msg 957 sound/soc/intel/skylake/skl-sst-ipc.c data_offset = msg->param_data_size - sz_remaining; msg 972 sound/soc/intel/skylake/skl-sst-ipc.c struct skl_ipc_large_config_msg *msg, msg 987 sound/soc/intel/skylake/skl-sst-ipc.c header.primary |= IPC_MOD_INSTANCE_ID(msg->instance_id); msg 988 sound/soc/intel/skylake/skl-sst-ipc.c header.primary |= IPC_MOD_ID(msg->module_id); msg 990 sound/soc/intel/skylake/skl-sst-ipc.c header.extension = IPC_DATA_OFFSET_SZ(msg->param_data_size); msg 991 sound/soc/intel/skylake/skl-sst-ipc.c header.extension |= IPC_LARGE_PARAM_ID(msg->large_param_id); msg 1041 sound/soc/intel/skylake/skl-sst-ipc.c int skl_ipc_set_d0ix(struct sst_generic_ipc *ipc, struct skl_ipc_d0ix_msg *msg) msg 1050 sound/soc/intel/skylake/skl-sst-ipc.c header.primary |= IPC_MOD_INSTANCE_ID(msg->instance_id); msg 1051 sound/soc/intel/skylake/skl-sst-ipc.c header.primary |= IPC_MOD_ID(msg->module_id); msg 1053 sound/soc/intel/skylake/skl-sst-ipc.c header.extension = IPC_D0IX_WAKE(msg->wake); msg 1054 sound/soc/intel/skylake/skl-sst-ipc.c header.extension |= IPC_D0IX_STREAMING(msg->streaming); msg 124 sound/soc/intel/skylake/skl-sst-ipc.h struct skl_ipc_init_instance_msg *msg, void *param_data); msg 127 sound/soc/intel/skylake/skl-sst-ipc.h struct skl_ipc_bind_unbind_msg *msg); msg 139 sound/soc/intel/skylake/skl-sst-ipc.h struct skl_ipc_large_config_msg *msg, u32 *param); msg 142 sound/soc/intel/skylake/skl-sst-ipc.h struct skl_ipc_large_config_msg *msg, msg 149 sound/soc/intel/skylake/skl-sst-ipc.h struct skl_ipc_d0ix_msg *msg); msg 167 sound/soc/intel/skylake/skl-sst-ipc.h void skl_ipc_tx_data_copy(struct ipc_message *msg, char *tx_data, msg 136 sound/soc/sof/core.c const char *msg; msg 179 sound/soc/sof/core.c dev_err(sdev->dev, "error: %s\n", panic_msg[i].msg); msg 62 sound/soc/sof/imx/imx8.c struct snd_sof_ipc_msg *msg = sdev->msg; msg 66 sound/soc/sof/imx/imx8.c if (!msg) { msg 75 sound/soc/sof/imx/imx8.c memcpy(msg->reply_data, &reply, sizeof(reply)); msg 79 sound/soc/sof/imx/imx8.c if (reply.hdr.size != msg->reply_size) { msg 81 sound/soc/sof/imx/imx8.c msg->reply_size, reply.hdr.size); msg 86 sound/soc/sof/imx/imx8.c if (msg->reply_size > 0) msg 88 sound/soc/sof/imx/imx8.c msg->reply_data, msg->reply_size); msg 91 sound/soc/sof/imx/imx8.c msg->reply_error = ret; msg 127 sound/soc/sof/imx/imx8.c static int imx8_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) msg 131 sound/soc/sof/imx/imx8.c sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, msg 132 sound/soc/sof/imx/imx8.c msg->msg_size); msg 340 sound/soc/sof/intel/bdw.c static int bdw_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) msg 343 sound/soc/sof/intel/bdw.c sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, msg 344 sound/soc/sof/intel/bdw.c msg->msg_size); msg 352 sound/soc/sof/intel/bdw.c struct snd_sof_ipc_msg *msg = sdev->msg; msg 361 sound/soc/sof/intel/bdw.c if (!msg) { msg 370 sound/soc/sof/intel/bdw.c memcpy(msg->reply_data, &reply, sizeof(reply)); msg 374 sound/soc/sof/intel/bdw.c if (reply.hdr.size != msg->reply_size) { msg 376 sound/soc/sof/intel/bdw.c msg->reply_size, reply.hdr.size); msg 381 sound/soc/sof/intel/bdw.c if (msg->reply_size > 0) msg 383 sound/soc/sof/intel/bdw.c msg->reply_data, msg->reply_size); msg 386 sound/soc/sof/intel/bdw.c msg->reply_error = ret; msg 237 sound/soc/sof/intel/byt.c static int byt_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) msg 240 sound/soc/sof/intel/byt.c sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, msg 241 sound/soc/sof/intel/byt.c msg->msg_size); msg 249 sound/soc/sof/intel/byt.c struct snd_sof_ipc_msg *msg = sdev->msg; msg 258 sound/soc/sof/intel/byt.c if (!msg) { msg 267 sound/soc/sof/intel/byt.c memcpy(msg->reply_data, &reply, sizeof(reply)); msg 271 sound/soc/sof/intel/byt.c if (reply.hdr.size != msg->reply_size) { msg 273 sound/soc/sof/intel/byt.c msg->reply_size, reply.hdr.size); msg 278 sound/soc/sof/intel/byt.c if (msg->reply_size > 0) msg 280 sound/soc/sof/intel/byt.c msg->reply_data, msg->reply_size); msg 283 sound/soc/sof/intel/byt.c msg->reply_error = ret; msg 37 sound/soc/sof/intel/cnl.c u32 msg; msg 49 sound/soc/sof/intel/cnl.c msg = hipcida & CNL_DSP_REG_HIPCIDA_MSG_MASK; msg 53 sound/soc/sof/intel/cnl.c msg, msg_ext); msg 64 sound/soc/sof/intel/cnl.c snd_sof_ipc_reply(sdev, msg); msg 80 sound/soc/sof/intel/cnl.c msg = hipctdr & CNL_DSP_REG_HIPCTDR_MSG_MASK; msg 85 sound/soc/sof/intel/cnl.c msg, msg_ext); msg 154 sound/soc/sof/intel/cnl.c struct snd_sof_ipc_msg *msg) msg 157 sound/soc/sof/intel/cnl.c sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, msg 158 sound/soc/sof/intel/cnl.c msg->msg_size); msg 57 sound/soc/sof/intel/hda-ipc.c int hda_dsp_ipc_send_msg(struct snd_sof_dev *sdev, struct snd_sof_ipc_msg *msg) msg 60 sound/soc/sof/intel/hda-ipc.c sof_mailbox_write(sdev, sdev->host_box.offset, msg->msg_data, msg 61 sound/soc/sof/intel/hda-ipc.c msg->msg_size); msg 70 sound/soc/sof/intel/hda-ipc.c struct snd_sof_ipc_msg *msg = sdev->msg; msg 80 sound/soc/sof/intel/hda-ipc.c if (!msg) { msg 85 sound/soc/sof/intel/hda-ipc.c hdr = msg->msg_data; msg 94 sound/soc/sof/intel/hda-ipc.c memcpy(msg->reply_data, &reply, sizeof(reply)); msg 103 sound/soc/sof/intel/hda-ipc.c memcpy(msg->reply_data, &reply, sizeof(reply)); msg 107 sound/soc/sof/intel/hda-ipc.c if (reply.hdr.size != msg->reply_size) { msg 109 sound/soc/sof/intel/hda-ipc.c msg->reply_size, reply.hdr.size); msg 114 sound/soc/sof/intel/hda-ipc.c if (msg->reply_size > 0) msg 116 sound/soc/sof/intel/hda-ipc.c msg->reply_data, msg->reply_size); msg 120 sound/soc/sof/intel/hda-ipc.c msg->reply_error = ret; msg 124 sound/soc/sof/intel/hda-ipc.c static bool hda_dsp_ipc_is_sof(uint32_t msg) msg 126 sound/soc/sof/intel/hda-ipc.c return (msg & (HDA_DSP_IPC_PURGE_FW | 0xf << 9)) != msg || msg 127 sound/soc/sof/intel/hda-ipc.c (msg & HDA_DSP_IPC_PURGE_FW) != HDA_DSP_IPC_PURGE_FW; msg 138 sound/soc/sof/intel/hda-ipc.c u32 msg; msg 151 sound/soc/sof/intel/hda-ipc.c msg = hipci & HDA_DSP_REG_HIPCI_MSG_MASK; msg 156 sound/soc/sof/intel/hda-ipc.c msg, msg_ext); msg 176 sound/soc/sof/intel/hda-ipc.c if (hda_dsp_ipc_is_sof(msg)) { msg 178 sound/soc/sof/intel/hda-ipc.c snd_sof_ipc_reply(sdev, msg); msg 197 sound/soc/sof/intel/hda-ipc.c msg = hipct & HDA_DSP_REG_HIPCT_MSG_MASK; msg 202 sound/soc/sof/intel/hda-ipc.c msg, msg_ext); msg 46 sound/soc/sof/intel/hda.c const char *msg; msg 94 sound/soc/sof/intel/hda.c hda_dsp_rom_msg[i].msg, status); msg 114 sound/soc/sof/intel/hda.c hda_dsp_rom_msg[i].msg, status); msg 523 sound/soc/sof/intel/hda.h struct snd_sof_ipc_msg *msg); msg 36 sound/soc/sof/ipc.c struct snd_sof_ipc_msg msg; msg 199 sound/soc/sof/ipc.c static int tx_wait_done(struct snd_sof_ipc *ipc, struct snd_sof_ipc_msg *msg, msg 203 sound/soc/sof/ipc.c struct sof_ipc_cmd_hdr *hdr = msg->msg_data; msg 207 sound/soc/sof/ipc.c ret = wait_event_timeout(msg->waitq, msg->ipc_complete, msg 219 sound/soc/sof/ipc.c ret = msg->reply_error; msg 220 sound/soc/sof/ipc.c if (msg->reply_size) msg 221 sound/soc/sof/ipc.c memcpy(reply_data, msg->reply_data, msg->reply_size); msg 224 sound/soc/sof/ipc.c hdr->cmd, msg->reply_size); msg 238 sound/soc/sof/ipc.c struct snd_sof_ipc_msg *msg; msg 251 sound/soc/sof/ipc.c msg = &ipc->msg; msg 253 sound/soc/sof/ipc.c msg->header = header; msg 254 sound/soc/sof/ipc.c msg->msg_size = msg_bytes; msg 255 sound/soc/sof/ipc.c msg->reply_size = reply_bytes; msg 256 sound/soc/sof/ipc.c msg->reply_error = 0; msg 260 sound/soc/sof/ipc.c memcpy(msg->msg_data, msg_data, msg_bytes); msg 262 sound/soc/sof/ipc.c sdev->msg = msg; msg 264 sound/soc/sof/ipc.c ret = snd_sof_dsp_send_msg(sdev, msg); msg 267 sound/soc/sof/ipc.c msg->ipc_complete = false; msg 279 sound/soc/sof/ipc.c ipc_log_header(sdev->dev, "ipc tx", msg->header); msg 283 sound/soc/sof/ipc.c ret = tx_wait_done(ipc, msg, reply_data); msg 314 sound/soc/sof/ipc.c struct snd_sof_ipc_msg *msg = &sdev->ipc->msg; msg 316 sound/soc/sof/ipc.c if (msg->ipc_complete) { msg 323 sound/soc/sof/ipc.c msg->ipc_complete = true; msg 324 sound/soc/sof/ipc.c wake_up(&msg->waitq); msg 790 sound/soc/sof/ipc.c struct snd_sof_ipc_msg *msg; msg 804 sound/soc/sof/ipc.c msg = &ipc->msg; msg 807 sound/soc/sof/ipc.c msg->ipc_complete = true; msg 810 sound/soc/sof/ipc.c msg->msg_data = devm_kzalloc(sdev->dev, SOF_IPC_MSG_MAX_SIZE, msg 812 sound/soc/sof/ipc.c if (!msg->msg_data) msg 815 sound/soc/sof/ipc.c msg->reply_data = devm_kzalloc(sdev->dev, SOF_IPC_MSG_MAX_SIZE, msg 817 sound/soc/sof/ipc.c if (!msg->reply_data) msg 820 sound/soc/sof/ipc.c init_waitqueue_head(&msg->waitq); msg 267 sound/soc/sof/ops.h struct snd_sof_ipc_msg *msg) msg 269 sound/soc/sof/ops.h return sof_ops(sdev)->send_msg(sdev, msg); msg 121 sound/soc/sof/sof-priv.h struct snd_sof_ipc_msg *msg); /* mandatory */ msg 398 sound/soc/sof/sof-priv.h struct snd_sof_ipc_msg *msg; msg 18 sound/soc/sof/xtensa/core.c const char *msg; msg 93 sound/soc/sof/xtensa/core.c xtensa_exception_causes[i].msg, msg 86 sound/spi/at73c213.c struct spi_message msg; msg 93 sound/spi/at73c213.c spi_message_init(&msg); msg 100 sound/spi/at73c213.c spi_message_add_tail(&msg_xfer, &msg); msg 102 sound/spi/at73c213.c retval = spi_sync(chip->spi, &msg); msg 56 sound/usb/line6/driver.c static int line6_send_raw_message_async_part(struct message *msg, msg 141 sound/usb/line6/driver.c struct message *msg = (struct message *)urb->context; msg 143 sound/usb/line6/driver.c if (msg->done >= msg->size) { msg 145 sound/usb/line6/driver.c kfree(msg); msg 147 sound/usb/line6/driver.c line6_send_raw_message_async_part(msg, urb); msg 153 sound/usb/line6/driver.c static int line6_send_raw_message_async_part(struct message *msg, msg 157 sound/usb/line6/driver.c struct usb_line6 *line6 = msg->line6; msg 158 sound/usb/line6/driver.c int done = msg->done; msg 159 sound/usb/line6/driver.c int bytes = min(msg->size - done, line6->max_packet_size); msg 164 sound/usb/line6/driver.c (char *)msg->buffer + done, bytes, msg 165 sound/usb/line6/driver.c line6_async_request_sent, msg, line6->interval); msg 169 sound/usb/line6/driver.c (char *)msg->buffer + done, bytes, msg 170 sound/usb/line6/driver.c line6_async_request_sent, msg); msg 173 sound/usb/line6/driver.c msg->done += bytes; msg 190 sound/usb/line6/driver.c kfree(msg); msg 200 sound/usb/line6/driver.c struct message *msg; msg 204 sound/usb/line6/driver.c msg = kmalloc(sizeof(struct message), GFP_ATOMIC); msg 205 sound/usb/line6/driver.c if (msg == NULL) msg 212 sound/usb/line6/driver.c kfree(msg); msg 217 sound/usb/line6/driver.c msg->line6 = line6; msg 218 sound/usb/line6/driver.c msg->buffer = buffer; msg 219 sound/usb/line6/driver.c msg->size = size; msg 220 sound/usb/line6/driver.c msg->done = 0; msg 223 sound/usb/line6/driver.c return line6_send_raw_message_async_part(msg, urb); msg 741 sound/usb/midi.c uint8_t *msg; msg 749 sound/usb/midi.c msg = urb->transfer_buffer + urb->transfer_buffer_length; msg 783 sound/usb/midi.c msg[0] = 0x10 | count; msg 784 sound/usb/midi.c memcpy(&msg[1], tmp, count); msg 787 sound/usb/midi.c msg += count + 1; msg 3361 sound/usb/mixer.c struct uac2_interrupt_data_msg *msg; msg 3363 sound/usb/mixer.c for (msg = urb->transfer_buffer; msg 3364 sound/usb/mixer.c len >= sizeof(*msg); msg 3365 sound/usb/mixer.c len -= sizeof(*msg), msg++) { msg 3367 sound/usb/mixer.c if ((msg->bInfo & UAC2_INTERRUPT_DATA_MSG_VENDOR) || msg 3368 sound/usb/mixer.c (msg->bInfo & UAC2_INTERRUPT_DATA_MSG_EP)) msg 3371 sound/usb/mixer.c snd_usb_mixer_interrupt_v2(mixer, msg->bAttribute, msg 3372 sound/usb/mixer.c le16_to_cpu(msg->wValue), msg 3373 sound/usb/mixer.c le16_to_cpu(msg->wIndex)); msg 128 tools/accounting/getdelays.c struct msgtemplate msg; msg 130 tools/accounting/getdelays.c msg.n.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN); msg 131 tools/accounting/getdelays.c msg.n.nlmsg_type = nlmsg_type; msg 132 tools/accounting/getdelays.c msg.n.nlmsg_flags = NLM_F_REQUEST; msg 133 tools/accounting/getdelays.c msg.n.nlmsg_seq = 0; msg 134 tools/accounting/getdelays.c msg.n.nlmsg_pid = nlmsg_pid; msg 135 tools/accounting/getdelays.c msg.g.cmd = genl_cmd; msg 136 tools/accounting/getdelays.c msg.g.version = 0x1; msg 137 tools/accounting/getdelays.c na = (struct nlattr *) GENLMSG_DATA(&msg); msg 141 tools/accounting/getdelays.c msg.n.nlmsg_len += NLMSG_ALIGN(na->nla_len); msg 143 tools/accounting/getdelays.c buf = (char *) &msg; msg 144 tools/accounting/getdelays.c buflen = msg.n.nlmsg_len ; msg 287 tools/accounting/getdelays.c struct msgtemplate msg; msg 452 tools/accounting/getdelays.c rep_len = recv(nl_sd, &msg, sizeof(msg), 0); msg 460 tools/accounting/getdelays.c if (msg.n.nlmsg_type == NLMSG_ERROR || msg 461 tools/accounting/getdelays.c !NLMSG_OK((&msg.n), rep_len)) { msg 462 tools/accounting/getdelays.c struct nlmsgerr *err = NLMSG_DATA(&msg); msg 469 tools/accounting/getdelays.c sizeof(struct nlmsghdr), msg.n.nlmsg_len, rep_len); msg 472 tools/accounting/getdelays.c rep_len = GENLMSG_PAYLOAD(&msg.n); msg 474 tools/accounting/getdelays.c na = (struct nlattr *) GENLMSG_DATA(&msg); msg 538 tools/accounting/getdelays.c na = (struct nlattr *) (GENLMSG_DATA(&msg) + len); msg 125 tools/bpf/bpftool/main.c char msg[256]; msg 128 tools/bpf/bpftool/main.c snprintf(msg, sizeof(msg), "ambiguous prefix: '%s' could be '", arg); msg 135 tools/bpf/bpftool/main.c strncat(msg, "' or '", sizeof(msg) - strlen(msg) - 1); msg 136 tools/bpf/bpftool/main.c strncat(msg, ref, sizeof(msg) - strlen(msg) - 1); msg 139 tools/bpf/bpftool/main.c strncat(msg, "'", sizeof(msg) - strlen(msg) - 1); msg 142 tools/bpf/bpftool/main.c p_err("%s", msg); msg 753 tools/bpf/bpftool/map.c const char *msg = NULL; msg 756 tools/bpf/bpftool/map.c msg = "<no entry>"; msg 759 tools/bpf/bpftool/map.c msg = "<cannot read>"; msg 762 tools/bpf/bpftool/map.c msg ? : strerror(lookup_errno)); msg 87 tools/bpf/bpftool/net.c static int dump_link_nlmsg(void *cookie, void *msg, struct nlattr **tb) msg 90 tools/bpf/bpftool/net.c struct ifinfomsg *ifinfo = msg; msg 116 tools/bpf/bpftool/net.c static int dump_class_qdisc_nlmsg(void *cookie, void *msg, struct nlattr **tb) msg 119 tools/bpf/bpftool/net.c struct tcmsg *info = msg; msg 150 tools/bpf/bpftool/net.c static int dump_filter_nlmsg(void *cookie, void *msg, struct nlattr **tb) msg 154 tools/bpf/bpftool/net.c return do_filter_dump((struct tcmsg *)msg, tb, filter_info->kind, msg 111 tools/include/uapi/linux/netlink.h struct nlmsghdr msg; msg 5380 tools/lib/bpf/libbpf.c char msg[STRERR_BUFSIZE]; msg 5396 tools/lib/bpf/libbpf.c cpu, libbpf_strerror_r(err, msg, sizeof(msg))); msg 5407 tools/lib/bpf/libbpf.c cpu, libbpf_strerror_r(err, msg, sizeof(msg))); msg 5414 tools/lib/bpf/libbpf.c cpu, libbpf_strerror_r(err, msg, sizeof(msg))); msg 5468 tools/lib/bpf/libbpf.c char msg[STRERR_BUFSIZE]; msg 5484 tools/lib/bpf/libbpf.c map_fd, libbpf_strerror_r(err, msg, sizeof(msg))); msg 5511 tools/lib/bpf/libbpf.c libbpf_strerror_r(err, msg, sizeof(msg))); msg 5561 tools/lib/bpf/libbpf.c libbpf_strerror_r(err, msg, sizeof(msg))); msg 5572 tools/lib/bpf/libbpf.c libbpf_strerror_r(err, msg, sizeof(msg))); msg 52 tools/lib/bpf/libbpf_errno.c const char *msg; msg 54 tools/lib/bpf/libbpf_errno.c msg = libbpf_strerror_table[ERRNO_OFFSET(err)]; msg 55 tools/lib/bpf/libbpf_errno.c snprintf(buf, size, "%s", msg); msg 219 tools/lib/bpf/netlink.c static int get_xdp_id(void *cookie, void *msg, struct nlattr **tb) msg 223 tools/lib/bpf/netlink.c struct ifinfomsg *ifinfo = msg; msg 177 tools/lib/bpf/nlattr.c hlen += nlmsg_len(&err->msg); msg 85 tools/lib/subcmd/parse-options.c char msg[128]; msg 89 tools/lib/subcmd/parse-options.c snprintf(msg, sizeof(msg), "cannot be used with switch `%c'", msg 92 tools/lib/subcmd/parse-options.c snprintf(msg, sizeof(msg), "cannot be used with %s", msg 95 tools/lib/subcmd/parse-options.c opterror(opt, msg, flags); msg 13 tools/lib/subcmd/subcmd-util.h char msg[1024]; msg 14 tools/lib/subcmd/subcmd-util.h vsnprintf(msg, sizeof(msg), err, params); msg 15 tools/lib/subcmd/subcmd-util.h fprintf(stderr, " %s%s\n", prefix, msg); msg 32 tools/lib/traceevent/tep_strerror.c const char *msg; msg 49 tools/lib/traceevent/tep_strerror.c msg = tep_error_str[idx]; msg 50 tools/lib/traceevent/tep_strerror.c snprintf(buf, buflen, "%s", msg); msg 217 tools/perf/arch/arm/util/cs-etm.c char msg[BUFSIZ], path[PATH_MAX], *sink; msg 236 tools/perf/arch/arm/util/cs-etm.c str_error_r(errno, msg, sizeof(msg))); msg 325 tools/perf/builtin-probe.c static void pr_err_with_code(const char *msg, int err) msg 329 tools/perf/builtin-probe.c pr_err("%s", msg); msg 706 tools/perf/builtin-record.c char msg[512]; msg 726 tools/perf/builtin-record.c str_error_r(errno, msg, sizeof(msg))); msg 743 tools/perf/builtin-record.c char msg[BUFSIZ]; msg 771 tools/perf/builtin-record.c if (perf_evsel__fallback(pos, errno, msg, sizeof(msg))) { msg 773 tools/perf/builtin-record.c ui__warning("%s\n", msg); msg 784 tools/perf/builtin-record.c errno, msg, sizeof(msg)); msg 785 tools/perf/builtin-record.c ui__error("%s\n", msg); msg 806 tools/perf/builtin-record.c str_error_r(errno, msg, sizeof(msg))); msg 1650 tools/perf/builtin-record.c char msg[STRERR_BUFSIZE]; msg 1651 tools/perf/builtin-record.c const char *emsg = str_error_r(workload_exec_errno, msg, sizeof(msg)); msg 428 tools/perf/builtin-stat.c char msg[BUFSIZ]; msg 487 tools/perf/builtin-stat.c } else if (perf_evsel__fallback(counter, errno, msg, sizeof(msg))) { msg 489 tools/perf/builtin-stat.c ui__warning("%s\n", msg); msg 506 tools/perf/builtin-stat.c errno, msg, sizeof(msg)); msg 507 tools/perf/builtin-stat.c ui__error("%s\n", msg); msg 528 tools/perf/builtin-stat.c str_error_r(errno, msg, sizeof(msg))); msg 575 tools/perf/builtin-stat.c const char *emsg = str_error_r(workload_exec_errno, msg, sizeof(msg)); msg 149 tools/perf/builtin-top.c char msg[BUFSIZ]; msg 150 tools/perf/builtin-top.c symbol__strerror_disassemble(sym, map, err, msg, sizeof(msg)); msg 151 tools/perf/builtin-top.c pr_err("Couldn't annotate %s: %s\n", sym->name, msg); msg 352 tools/perf/builtin-top.c static void prompt_integer(int *target, const char *msg) msg 358 tools/perf/builtin-top.c fprintf(stdout, "\n%s: ", msg); msg 378 tools/perf/builtin-top.c static void prompt_percent(int *target, const char *msg) msg 382 tools/perf/builtin-top.c prompt_integer(&tmp, msg); msg 387 tools/perf/builtin-top.c static void perf_top__prompt_symbol(struct perf_top *top, const char *msg) msg 401 tools/perf/builtin-top.c fprintf(stdout, "\n%s: ", msg); msg 784 tools/perf/builtin-top.c const char *msg = "Kernel samples will not be resolved.\n"; msg 802 tools/perf/builtin-top.c symbol_conf.vmlinux_name, serr, msg); msg 805 tools/perf/builtin-top.c msg); msg 1002 tools/perf/builtin-top.c char msg[BUFSIZ]; msg 1034 tools/perf/builtin-top.c if (perf_evsel__fallback(counter, errno, msg, sizeof(msg))) { msg 1036 tools/perf/builtin-top.c ui__warning("%s\n", msg); msg 1041 tools/perf/builtin-top.c errno, msg, sizeof(msg)); msg 1042 tools/perf/builtin-top.c ui__error("%s\n", msg); msg 1049 tools/perf/builtin-top.c errno, str_error_r(errno, msg, sizeof(msg))); msg 1948 tools/perf/builtin-trace.c char *msg; msg 1991 tools/perf/builtin-trace.c msg = ttrace->entry_str; msg 1992 tools/perf/builtin-trace.c printed += scnprintf(msg + printed, trace__entry_str_size - printed, "%s(", sc->name); msg 1994 tools/perf/builtin-trace.c printed += syscall__scnprintf_args(sc, msg + printed, trace__entry_str_size - printed, msg 2030 tools/perf/builtin-trace.c char msg[1024]; msg 2048 tools/perf/builtin-trace.c syscall__scnprintf_args(sc, msg, sizeof(msg), args, augmented_args, augmented_args_size, trace, thread); msg 2049 tools/perf/builtin-trace.c fprintf(trace->output, "%s", msg); msg 20 tools/perf/jvmti/libjvmti.c static void print_error(jvmtiEnv *jvmti, const char *msg, jvmtiError ret) msg 26 tools/perf/jvmti/libjvmti.c warnx("%s failed with %s", msg, err_msg); msg 29 tools/perf/jvmti/libjvmti.c warnx("%s failed with an unknown error %d", msg, ret); msg 240 tools/perf/lib/include/perf/event.h char msg[MAX_AUXTRACE_ERROR_MSG]; msg 57 tools/perf/ui/browser.c void ui_browser__write_nstring(struct ui_browser *browser __maybe_unused, const char *msg, msg 60 tools/perf/ui/browser.c slsmg_write_nstring(msg, width); msg 46 tools/perf/ui/browser.h void ui_browser__write_nstring(struct ui_browser *browser, const char *msg, msg 923 tools/perf/ui/browsers/annotate.c char msg[BUFSIZ]; msg 924 tools/perf/ui/browsers/annotate.c symbol__strerror_disassemble(sym, map, err, msg, sizeof(msg)); msg 925 tools/perf/ui/browsers/annotate.c ui__error("Couldn't annotate %s:\n%s", sym->name, msg); msg 178 tools/perf/ui/gtk/annotate.c char msg[BUFSIZ]; msg 179 tools/perf/ui/gtk/annotate.c symbol__strerror_disassemble(sym, map, err, msg, sizeof(msg)); msg 180 tools/perf/ui/gtk/annotate.c ui__error("Couldn't annotate %s: %s\n", sym->name, msg); msg 19 tools/perf/ui/gtk/helpline.c static void gtk_helpline_push(const char *msg) msg 25 tools/perf/ui/gtk/helpline.c pgctx->statbar_ctx_id, msg); msg 33 tools/perf/ui/gtk/util.c char *msg; msg 37 tools/perf/ui/gtk/util.c vasprintf(&msg, format, args) < 0) { msg 48 tools/perf/ui/gtk/util.c "<b>Error</b>\n\n%s", msg); msg 52 tools/perf/ui/gtk/util.c free(msg); msg 59 tools/perf/ui/gtk/util.c char *msg; msg 62 tools/perf/ui/gtk/util.c vasprintf(&msg, format, args) < 0) { msg 69 tools/perf/ui/gtk/util.c gtk_label_set_text(GTK_LABEL(pgctx->message_label), msg); msg 74 tools/perf/ui/gtk/util.c free(msg); msg 80 tools/perf/ui/gtk/util.c char *msg, *p; msg 83 tools/perf/ui/gtk/util.c vasprintf(&msg, format, args) < 0) { msg 94 tools/perf/ui/gtk/util.c p = strchr(msg, '\n'); msg 99 tools/perf/ui/gtk/util.c pgctx->statbar_ctx_id, msg); msg 101 tools/perf/ui/gtk/util.c free(msg); msg 15 tools/perf/ui/helpline.c static void nop_helpline__push(const char *msg __maybe_unused) msg 38 tools/perf/ui/helpline.c void ui_helpline__push(const char *msg) msg 40 tools/perf/ui/helpline.c helpline_fns->push(msg); msg 64 tools/perf/ui/helpline.c void ui_helpline__puts(const char *msg) msg 67 tools/perf/ui/helpline.c ui_helpline__push(msg); msg 10 tools/perf/ui/helpline.h void (*push)(const char *msg); msg 19 tools/perf/ui/helpline.h void ui_helpline__push(const char *msg); msg 22 tools/perf/ui/helpline.h void ui_helpline__puts(const char *msg); msg 21 tools/perf/ui/libslang.h #define slsmg_printf(msg, args...) \ msg 22 tools/perf/ui/libslang.h SLsmg_printf((char *)(msg), ##args) msg 23 tools/perf/ui/libslang.h #define slsmg_vprintf(msg, vargs) \ msg 24 tools/perf/ui/libslang.h SLsmg_vprintf((char *)(msg), vargs) msg 25 tools/perf/ui/libslang.h #define slsmg_write_nstring(msg, len) \ msg 26 tools/perf/ui/libslang.h SLsmg_write_nstring((char *)(msg), len) msg 20 tools/perf/ui/tui/helpline.c static void tui_helpline__push(const char *msg) msg 26 tools/perf/ui/tui/helpline.c SLsmg_write_nstring((char *)msg, SLtt_Screen_Cols); msg 28 tools/perf/ui/tui/helpline.c strlcpy(ui_helpline__current, msg, sz); msg 235 tools/perf/ui/tui/util.c int ui__dialog_yesno(const char *msg) msg 237 tools/perf/ui/tui/util.c return ui__question_window(NULL, msg, "Enter: Yes, ESC: No", 0); msg 10 tools/perf/ui/util.h int ui__dialog_yesno(const char *msg); msg 866 tools/perf/util/auxtrace.c const char *msg, u64 timestamp) msg 881 tools/perf/util/auxtrace.c strlcpy(auxtrace_error->msg, msg, MAX_AUXTRACE_ERROR_MSG); msg 883 tools/perf/util/auxtrace.c size = (void *)auxtrace_error->msg - (void *)auxtrace_error + msg 884 tools/perf/util/auxtrace.c strlen(auxtrace_error->msg) + 1; msg 1176 tools/perf/util/auxtrace.c const char *msg = e->msg; msg 1192 tools/perf/util/auxtrace.c msg = (const char *)&e->time; msg 1195 tools/perf/util/auxtrace.c e->cpu, e->pid, e->tid, e->ip, e->code, msg); msg 526 tools/perf/util/auxtrace.h const char *msg, u64 timestamp); msg 1646 tools/perf/util/bpf-loader.c const char *msg; msg 1657 tools/perf/util/bpf-loader.c msg = bpf_loader_strerror_table[ERRNO_OFFSET(err)]; msg 1658 tools/perf/util/bpf-loader.c snprintf(buf, size, "%s", msg); msg 34 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c void (*packet_printer)(const char *msg); msg 143 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c const char *msg, msg 147 tools/perf/util/cs-etm-decoder/cs-etm-decoder.c ((struct cs_etm_decoder *)p_context)->packet_printer(msg); msg 50 tools/perf/util/cs-etm-decoder/cs-etm-decoder.h void (*packet_printer)(const char *msg); msg 2331 tools/perf/util/evsel.c char *msg, size_t msgsize) msg 2346 tools/perf/util/evsel.c scnprintf(msg, msgsize, "%s", msg 2371 tools/perf/util/evsel.c scnprintf(msg, msgsize, "kernel.perf_event_paranoid=%d, trying " msg 2420 tools/perf/util/evsel.c int err, char *msg, size_t size) msg 2429 tools/perf/util/evsel.c printed = scnprintf(msg, size, msg 2433 tools/perf/util/evsel.c return scnprintf(msg + printed, size - printed, msg 2450 tools/perf/util/evsel.c return scnprintf(msg, size, "The %s event is not supported.", msg 2453 tools/perf/util/evsel.c return scnprintf(msg, size, "%s", msg 2461 tools/perf/util/evsel.c return scnprintf(msg, size, msg 2468 tools/perf/util/evsel.c return scnprintf(msg, size, "%s", msg 2473 tools/perf/util/evsel.c return scnprintf(msg, size, msg 2477 tools/perf/util/evsel.c return scnprintf(msg, size, "%s", msg 2481 tools/perf/util/evsel.c return scnprintf(msg, size, "%s", msg 2487 tools/perf/util/evsel.c return scnprintf(msg, size, msg 2493 tools/perf/util/evsel.c return scnprintf(msg, size, "Reading from overwrite event is not supported by this kernel."); msg 2495 tools/perf/util/evsel.c return scnprintf(msg, size, "clockid feature not supported."); msg 2497 tools/perf/util/evsel.c return scnprintf(msg, size, "wrong clockid (%d).", clockid); msg 2499 tools/perf/util/evsel.c return scnprintf(msg, size, "The 'aux_output' feature is not supported, update the kernel."); msg 2505 tools/perf/util/evsel.c return scnprintf(msg, size, msg 359 tools/perf/util/evsel.h char *msg, size_t msgsize); msg 361 tools/perf/util/evsel.h int err, char *msg, size_t size); msg 46 tools/perf/util/genelf_debug.c buffer_ext_dump(struct buffer_ext *be, const char *msg) msg 49 tools/perf/util/genelf_debug.c warnx("DUMP for %s", msg); msg 60 tools/perf/util/intel-pt-decoder/intel-pt-log.h static inline void intel_pt_log_at(const char *msg, uint64_t u) msg 62 tools/perf/util/intel-pt-decoder/intel-pt-log.h intel_pt_log("%s at " x64_fmt "\n", msg, u); msg 65 tools/perf/util/intel-pt-decoder/intel-pt-log.h static inline void intel_pt_log_to(const char *msg, uint64_t u) msg 67 tools/perf/util/intel-pt-decoder/intel-pt-log.h intel_pt_log("%s to " x64_fmt "\n", msg, u); msg 1828 tools/perf/util/intel-pt.c char msg[MAX_AUXTRACE_ERROR_MSG]; msg 1831 tools/perf/util/intel-pt.c intel_pt__strerror(code, msg, MAX_AUXTRACE_ERROR_MSG); msg 1834 tools/perf/util/intel-pt.c code, cpu, pid, tid, ip, msg, timestamp); msg 20 tools/perf/util/parse-events.y void parse_events_error(YYLTYPE *loc, void *parse_state, void *scanner, char const *msg); msg 719 tools/perf/util/parse-events.y char const *msg __maybe_unused) msg 78 tools/perf/util/pmu.h void perf_pmu_error(struct list_head *list, char *name, char const *msg); msg 90 tools/perf/util/pmu.y char const *msg __maybe_unused) msg 51 tools/perf/util/probe-event.c #define semantic_error(msg ...) pr_err("Semantic error :" msg) msg 888 tools/perf/util/s390-cpumsf.c char msg[MAX_AUXTRACE_ERROR_MSG]; msg 892 tools/perf/util/s390-cpumsf.c strncpy(msg, "Lost Auxiliary Trace Buffer", sizeof(msg) - 1); msg 894 tools/perf/util/s390-cpumsf.c code, cpu, pid, tid, ip, msg, timestamp); msg 2223 tools/perf/util/session.c bool perf_session__has_traces(struct perf_session *session, const char *msg) msg 2232 tools/perf/util/session.c pr_err("No trace sample to read. Did you call 'perf %s'?\n", msg); msg 2279 tools/perf/util/session.c const char *msg = ""; msg 2282 tools/perf/util/session.c msg = " (excludes AUX area (e.g. instruction trace) decoded / synthesized events)"; msg 2284 tools/perf/util/session.c ret = fprintf(fp, "\nAggregated stats:%s\n", msg); msg 81 tools/perf/util/session.h bool perf_session__has_traces(struct perf_session *session, const char *msg); msg 120 tools/perf/util/target.c const char *msg; msg 133 tools/perf/util/target.c msg = target__error_str[idx]; msg 138 tools/perf/util/target.c snprintf(buf, buflen, "%s", msg); msg 143 tools/perf/util/target.c snprintf(buf, buflen, msg, target->uid_str); msg 25 tools/power/acpi/common/getopt.c #define ACPI_OPTION_ERROR(msg, badchar) \ msg 26 tools/power/acpi/common/getopt.c if (acpi_gbl_opterr) {fprintf (stderr, "%s%c\n", msg, badchar);} msg 39 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c static int verify_sockopt(int fd, int optname, const char *msg, char expected) msg 47 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c log_err("%s: failed to call getsockopt", msg); msg 51 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c printf("%s %d: got=0x%x ? expected=0x%x\n", msg, optname, buf, expected); msg 54 tools/testing/selftests/bpf/prog_tests/sockopt_inherit.c log_err("%s: unexpected getsockopt value %d != %d", msg, msg 45 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c static int verify_sk(int map_fd, int client_fd, const char *msg, __u32 invoked, msg 59 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c msg, val.invoked, invoked); msg 65 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c msg, val.dsack_dups, dsack_dups); msg 71 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c msg, val.delivered, delivered); msg 77 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c msg, val.delivered_ce, delivered_ce); msg 83 tools/testing/selftests/bpf/prog_tests/tcp_rtt.c msg, val.icsk_retransmits, icsk_retransmits); msg 9 tools/testing/selftests/bpf/progs/sockmap_tcp_msg_prog.c int bpf_prog1(struct sk_msg_md *msg) msg 11 tools/testing/selftests/bpf/progs/sockmap_tcp_msg_prog.c void *data_end = (void *)(long) msg->data_end; msg 12 tools/testing/selftests/bpf/progs/sockmap_tcp_msg_prog.c void *data = (void *)(long) msg->data; msg 19 tools/testing/selftests/bpf/progs/sockmap_tcp_msg_prog.c bpf_printk("data length %i\n", (__u64)msg->data_end - (__u64)msg->data); msg 66 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c struct tcp_notifier msg = { msg 86 tools/testing/selftests/bpf/progs/test_tcpnotify_kern.c &msg, sizeof(msg)); msg 119 tools/testing/selftests/bpf/test_flow_dissector.c static void util_printaddr(const char *msg, struct sockaddr *addr) msg 140 tools/testing/selftests/bpf/test_flow_dissector.c fprintf(stderr, "%s: %s\n", msg, nbuf); msg 52 tools/testing/selftests/bpf/test_skb_cgroup_id_user.c char msg[] = "msg"; msg 65 tools/testing/selftests/bpf/test_skb_cgroup_id_user.c if (sendto(fd, &msg, sizeof(msg), 0, (const struct sockaddr *)&dst, msg 368 tools/testing/selftests/bpf/test_sockmap.c static void msg_free_iov(struct msghdr *msg) msg 372 tools/testing/selftests/bpf/test_sockmap.c for (i = 0; i < msg->msg_iovlen; i++) msg 373 tools/testing/selftests/bpf/test_sockmap.c free(msg->msg_iov[i].iov_base); msg 374 tools/testing/selftests/bpf/test_sockmap.c free(msg->msg_iov); msg 375 tools/testing/selftests/bpf/test_sockmap.c msg->msg_iov = NULL; msg 376 tools/testing/selftests/bpf/test_sockmap.c msg->msg_iovlen = 0; msg 379 tools/testing/selftests/bpf/test_sockmap.c static int msg_alloc_iov(struct msghdr *msg, msg 409 tools/testing/selftests/bpf/test_sockmap.c msg->msg_iov = iov; msg 410 tools/testing/selftests/bpf/test_sockmap.c msg->msg_iovlen = iov_count; msg 415 tools/testing/selftests/bpf/test_sockmap.c free(msg->msg_iov[i].iov_base); msg 419 tools/testing/selftests/bpf/test_sockmap.c static int msg_verify_data(struct msghdr *msg, int size, int chunk_sz) msg 424 tools/testing/selftests/bpf/test_sockmap.c for (i = 0; i < msg->msg_iovlen; i++) { msg 425 tools/testing/selftests/bpf/test_sockmap.c unsigned char *d = msg->msg_iov[i].iov_base; msg 428 tools/testing/selftests/bpf/test_sockmap.c j < msg->msg_iov[i].iov_len && size; j++) { msg 450 tools/testing/selftests/bpf/test_sockmap.c struct msghdr msg = {0}, msg_peek = {0}; msg 455 tools/testing/selftests/bpf/test_sockmap.c err = msg_alloc_iov(&msg, iov_count, iov_length, data, tx); msg 467 tools/testing/selftests/bpf/test_sockmap.c int sent = sendmsg(fd, &msg, flags); msg 546 tools/testing/selftests/bpf/test_sockmap.c recv = recvmsg(fd, &msg, flags); msg 562 tools/testing/selftests/bpf/test_sockmap.c errno = msg_verify_data(&msg, recv, chunk_sz); msg 581 tools/testing/selftests/bpf/test_sockmap.c msg_free_iov(&msg); msg 585 tools/testing/selftests/bpf/test_sockmap.c msg_free_iov(&msg); msg 175 tools/testing/selftests/bpf/test_sockmap_kern.h int bpf_prog4(struct sk_msg_md *msg) msg 182 tools/testing/selftests/bpf/test_sockmap_kern.h bpf_msg_apply_bytes(msg, *bytes); msg 185 tools/testing/selftests/bpf/test_sockmap_kern.h bpf_msg_cork_bytes(msg, *bytes); msg 189 tools/testing/selftests/bpf/test_sockmap_kern.h bpf_msg_pull_data(msg, *start, *end, 0); msg 193 tools/testing/selftests/bpf/test_sockmap_kern.h bpf_msg_push_data(msg, *start_push, *end_push, 0); msg 197 tools/testing/selftests/bpf/test_sockmap_kern.h bpf_msg_pop_data(msg, *start_pop, *pop, 0); msg 202 tools/testing/selftests/bpf/test_sockmap_kern.h int bpf_prog5(struct sk_msg_md *msg) msg 211 tools/testing/selftests/bpf/test_sockmap_kern.h err1 = bpf_msg_apply_bytes(msg, *bytes); msg 214 tools/testing/selftests/bpf/test_sockmap_kern.h err2 = bpf_msg_cork_bytes(msg, *bytes); msg 215 tools/testing/selftests/bpf/test_sockmap_kern.h len1 = (__u64)msg->data_end - (__u64)msg->data; msg 223 tools/testing/selftests/bpf/test_sockmap_kern.h err = bpf_msg_pull_data(msg, *start, *end, 0); msg 227 tools/testing/selftests/bpf/test_sockmap_kern.h len2 = (__u64)msg->data_end - (__u64)msg->data; msg 240 tools/testing/selftests/bpf/test_sockmap_kern.h err = bpf_msg_push_data(msg, *start_push, *end_push, 0); msg 243 tools/testing/selftests/bpf/test_sockmap_kern.h len3 = (__u64)msg->data_end - (__u64)msg->data; msg 254 tools/testing/selftests/bpf/test_sockmap_kern.h err = bpf_msg_pop_data(msg, *start_pop, *pop, 0); msg 257 tools/testing/selftests/bpf/test_sockmap_kern.h len4 = (__u64)msg->data_end - (__u64)msg->data; msg 268 tools/testing/selftests/bpf/test_sockmap_kern.h int bpf_prog6(struct sk_msg_md *msg) msg 276 tools/testing/selftests/bpf/test_sockmap_kern.h bpf_msg_apply_bytes(msg, *bytes); msg 279 tools/testing/selftests/bpf/test_sockmap_kern.h bpf_msg_cork_bytes(msg, *bytes); msg 284 tools/testing/selftests/bpf/test_sockmap_kern.h bpf_msg_pull_data(msg, *start, *end, 0); msg 289 tools/testing/selftests/bpf/test_sockmap_kern.h bpf_msg_push_data(msg, *start_push, *end_push, 0); msg 294 tools/testing/selftests/bpf/test_sockmap_kern.h bpf_msg_pop_data(msg, *start_pop, *pop, 0); msg 302 tools/testing/selftests/bpf/test_sockmap_kern.h return bpf_msg_redirect_map(msg, &sock_map_redir, key, flags); msg 304 tools/testing/selftests/bpf/test_sockmap_kern.h return bpf_msg_redirect_hash(msg, &sock_map_redir, &key, flags); msg 309 tools/testing/selftests/bpf/test_sockmap_kern.h int bpf_prog7(struct sk_msg_md *msg) msg 320 tools/testing/selftests/bpf/test_sockmap_kern.h err1 = bpf_msg_apply_bytes(msg, *bytes); msg 323 tools/testing/selftests/bpf/test_sockmap_kern.h err2 = bpf_msg_cork_bytes(msg, *bytes); msg 324 tools/testing/selftests/bpf/test_sockmap_kern.h len1 = (__u64)msg->data_end - (__u64)msg->data; msg 331 tools/testing/selftests/bpf/test_sockmap_kern.h err = bpf_msg_pull_data(msg, *start, *end, 0); msg 335 tools/testing/selftests/bpf/test_sockmap_kern.h len2 = (__u64)msg->data_end - (__u64)msg->data; msg 346 tools/testing/selftests/bpf/test_sockmap_kern.h err = bpf_msg_push_data(msg, *start_push, *end_push, 0); msg 350 tools/testing/selftests/bpf/test_sockmap_kern.h len3 = (__u64)msg->data_end - (__u64)msg->data; msg 362 tools/testing/selftests/bpf/test_sockmap_kern.h err = bpf_msg_pop_data(msg, *start_pop, *pop, 0); msg 365 tools/testing/selftests/bpf/test_sockmap_kern.h len4 = (__u64)msg->data_end - (__u64)msg->data; msg 379 tools/testing/selftests/bpf/test_sockmap_kern.h err = bpf_msg_redirect_map(msg, &sock_map_redir, key, flags); msg 381 tools/testing/selftests/bpf/test_sockmap_kern.h err = bpf_msg_redirect_hash(msg, &sock_map_redir, &key, flags); msg 388 tools/testing/selftests/bpf/test_sockmap_kern.h int bpf_prog8(struct sk_msg_md *msg) msg 390 tools/testing/selftests/bpf/test_sockmap_kern.h void *data_end = (void *)(long) msg->data_end; msg 391 tools/testing/selftests/bpf/test_sockmap_kern.h void *data = (void *)(long) msg->data; msg 396 tools/testing/selftests/bpf/test_sockmap_kern.h ret = bpf_msg_apply_bytes(msg, *bytes); msg 405 tools/testing/selftests/bpf/test_sockmap_kern.h int bpf_prog9(struct sk_msg_md *msg) msg 407 tools/testing/selftests/bpf/test_sockmap_kern.h void *data_end = (void *)(long) msg->data_end; msg 408 tools/testing/selftests/bpf/test_sockmap_kern.h void *data = (void *)(long) msg->data; msg 415 tools/testing/selftests/bpf/test_sockmap_kern.h ret = bpf_msg_cork_bytes(msg, *bytes); msg 423 tools/testing/selftests/bpf/test_sockmap_kern.h int bpf_prog10(struct sk_msg_md *msg) msg 430 tools/testing/selftests/bpf/test_sockmap_kern.h bpf_msg_apply_bytes(msg, *bytes); msg 433 tools/testing/selftests/bpf/test_sockmap_kern.h bpf_msg_cork_bytes(msg, *bytes); msg 437 tools/testing/selftests/bpf/test_sockmap_kern.h bpf_msg_pull_data(msg, *start, *end, 0); msg 441 tools/testing/selftests/bpf/test_sockmap_kern.h bpf_msg_push_data(msg, *start_push, *end_push, 0); msg 445 tools/testing/selftests/bpf/test_sockmap_kern.h bpf_msg_pop_data(msg, *start_pop, *pop, 0); msg 79 tools/testing/selftests/bpf/test_verifier_log.c static void check_ones(const char *buf, size_t len, const char *msg) msg 83 tools/testing/selftests/bpf/test_verifier_log.c err("%s", msg); msg 264 tools/testing/selftests/breakpoints/breakpoint_test.c static void check_success(const char *msg) msg 287 tools/testing/selftests/breakpoints/breakpoint_test.c ksft_test_result_pass(msg); msg 289 tools/testing/selftests/breakpoints/breakpoint_test.c ksft_test_result_fail(msg); msg 197 tools/testing/selftests/ipc/msgque.c int msg, pid, err; msg 83 tools/testing/selftests/kselftest.h static inline void ksft_print_msg(const char *msg, ...) msg 88 tools/testing/selftests/kselftest.h va_start(args, msg); msg 91 tools/testing/selftests/kselftest.h vprintf(msg, args); msg 95 tools/testing/selftests/kselftest.h static inline void ksft_test_result_pass(const char *msg, ...) msg 102 tools/testing/selftests/kselftest.h va_start(args, msg); msg 105 tools/testing/selftests/kselftest.h vprintf(msg, args); msg 109 tools/testing/selftests/kselftest.h static inline void ksft_test_result_fail(const char *msg, ...) msg 116 tools/testing/selftests/kselftest.h va_start(args, msg); msg 119 tools/testing/selftests/kselftest.h vprintf(msg, args); msg 123 tools/testing/selftests/kselftest.h static inline void ksft_test_result_skip(const char *msg, ...) msg 130 tools/testing/selftests/kselftest.h va_start(args, msg); msg 133 tools/testing/selftests/kselftest.h vprintf(msg, args); msg 137 tools/testing/selftests/kselftest.h static inline void ksft_test_result_error(const char *msg, ...) msg 144 tools/testing/selftests/kselftest.h va_start(args, msg); msg 147 tools/testing/selftests/kselftest.h vprintf(msg, args); msg 164 tools/testing/selftests/kselftest.h static inline int ksft_exit_fail_msg(const char *msg, ...) msg 169 tools/testing/selftests/kselftest.h va_start(args, msg); msg 172 tools/testing/selftests/kselftest.h vprintf(msg, args); msg 191 tools/testing/selftests/kselftest.h static inline int ksft_exit_skip(const char *msg, ...) msg 193 tools/testing/selftests/kselftest.h if (msg) { msg 197 tools/testing/selftests/kselftest.h va_start(args, msg); msg 200 tools/testing/selftests/kselftest.h vprintf(msg, args); msg 41 tools/testing/selftests/net/ipv6_flowlabel.c struct msghdr msg = {0}; msg 48 tools/testing/selftests/net/ipv6_flowlabel.c msg.msg_iov = &iov; msg 49 tools/testing/selftests/net/ipv6_flowlabel.c msg.msg_iovlen = 1; msg 60 tools/testing/selftests/net/ipv6_flowlabel.c msg.msg_control = control; msg 61 tools/testing/selftests/net/ipv6_flowlabel.c msg.msg_controllen = sizeof(control); msg 64 tools/testing/selftests/net/ipv6_flowlabel.c ret = sendmsg(fd, &msg, 0); msg 78 tools/testing/selftests/net/ipv6_flowlabel.c struct msghdr msg = {0}; msg 87 tools/testing/selftests/net/ipv6_flowlabel.c msg.msg_iov = &iov; msg 88 tools/testing/selftests/net/ipv6_flowlabel.c msg.msg_iovlen = 1; msg 91 tools/testing/selftests/net/ipv6_flowlabel.c msg.msg_control = control; msg 92 tools/testing/selftests/net/ipv6_flowlabel.c msg.msg_controllen = sizeof(control); msg 94 tools/testing/selftests/net/ipv6_flowlabel.c ret = recvmsg(fd, &msg, 0); msg 97 tools/testing/selftests/net/ipv6_flowlabel.c if (msg.msg_flags & (MSG_TRUNC | MSG_CTRUNC)) msg 104 tools/testing/selftests/net/ipv6_flowlabel.c cm = CMSG_FIRSTHDR(&msg); msg 108 tools/testing/selftests/net/ipv6_flowlabel.c if (CMSG_NXTHDR(&msg, cm)) msg 171 tools/testing/selftests/net/msg_zerocopy.c static void add_zcopy_cookie(struct msghdr *msg, uint32_t cookie) msg 175 tools/testing/selftests/net/msg_zerocopy.c if (!msg->msg_control) msg 177 tools/testing/selftests/net/msg_zerocopy.c cm = (void *)msg->msg_control; msg 184 tools/testing/selftests/net/msg_zerocopy.c static bool do_sendmsg(int fd, struct msghdr *msg, bool do_zerocopy, int domain) msg 191 tools/testing/selftests/net/msg_zerocopy.c for (i = 0; i < msg->msg_iovlen; i++) msg 192 tools/testing/selftests/net/msg_zerocopy.c len += msg->msg_iov[i].iov_len; msg 198 tools/testing/selftests/net/msg_zerocopy.c memset(&msg->msg_control, 0, sizeof(msg->msg_control)); msg 199 tools/testing/selftests/net/msg_zerocopy.c msg->msg_controllen = CMSG_SPACE(sizeof(cookie)); msg 200 tools/testing/selftests/net/msg_zerocopy.c msg->msg_control = (struct cmsghdr *)ckbuf; msg 201 tools/testing/selftests/net/msg_zerocopy.c add_zcopy_cookie(msg, ++cookie); msg 205 tools/testing/selftests/net/msg_zerocopy.c ret = sendmsg(fd, msg, flags); msg 220 tools/testing/selftests/net/msg_zerocopy.c msg->msg_control = NULL; msg 221 tools/testing/selftests/net/msg_zerocopy.c msg->msg_controllen = 0; msg 227 tools/testing/selftests/net/msg_zerocopy.c static void do_sendmsg_corked(int fd, struct msghdr *msg) msg 246 tools/testing/selftests/net/msg_zerocopy.c msg->msg_iov[0].iov_len = payload_len + extra_len; msg 249 tools/testing/selftests/net/msg_zerocopy.c do_sendmsg(fd, msg, do_zerocopy, msg 365 tools/testing/selftests/net/msg_zerocopy.c struct msghdr msg; msg 368 tools/testing/selftests/net/msg_zerocopy.c memset(&msg, 0, sizeof(msg)); msg 369 tools/testing/selftests/net/msg_zerocopy.c msg.msg_control = cmsgbuf; msg 370 tools/testing/selftests/net/msg_zerocopy.c msg.msg_controllen = sizeof(cmsgbuf); msg 372 tools/testing/selftests/net/msg_zerocopy.c if (recvmsg(fd, &msg, MSG_DONTWAIT)) msg 375 tools/testing/selftests/net/msg_zerocopy.c if (msg.msg_flags & MSG_CTRUNC) msg 378 tools/testing/selftests/net/msg_zerocopy.c for (cmsg = CMSG_FIRSTHDR(&msg); cmsg; cmsg = CMSG_NXTHDR(&msg, cmsg)) { msg 396 tools/testing/selftests/net/msg_zerocopy.c struct msghdr msg = {}; msg 405 tools/testing/selftests/net/msg_zerocopy.c msg.msg_control = control; msg 406 tools/testing/selftests/net/msg_zerocopy.c msg.msg_controllen = sizeof(control); msg 408 tools/testing/selftests/net/msg_zerocopy.c ret = recvmsg(fd, &msg, MSG_ERRQUEUE); msg 413 tools/testing/selftests/net/msg_zerocopy.c if (msg.msg_flags & MSG_CTRUNC) msg 416 tools/testing/selftests/net/msg_zerocopy.c cm = CMSG_FIRSTHDR(&msg); msg 486 tools/testing/selftests/net/msg_zerocopy.c struct msghdr msg = {0}; msg 507 tools/testing/selftests/net/msg_zerocopy.c msg.msg_iovlen++; msg 519 tools/testing/selftests/net/msg_zerocopy.c msg.msg_name = &laddr; msg 520 tools/testing/selftests/net/msg_zerocopy.c msg.msg_namelen = sizeof(laddr); msg 531 tools/testing/selftests/net/msg_zerocopy.c msg.msg_iovlen++; msg 535 tools/testing/selftests/net/msg_zerocopy.c msg.msg_name = &cfg_dst_addr; msg 536 tools/testing/selftests/net/msg_zerocopy.c msg.msg_namelen = (cfg_dst_addr.ss_family == AF_INET ? msg 543 tools/testing/selftests/net/msg_zerocopy.c msg.msg_iovlen++; msg 544 tools/testing/selftests/net/msg_zerocopy.c msg.msg_iov = &iov[3 - msg.msg_iovlen]; msg 549 tools/testing/selftests/net/msg_zerocopy.c do_sendmsg_corked(fd, &msg); msg 551 tools/testing/selftests/net/msg_zerocopy.c do_sendmsg(fd, &msg, cfg_zerocopy, domain); msg 99 tools/testing/selftests/net/nettest.c static char *msg = "Hello world!"; msg 621 tools/testing/selftests/net/nettest.c err = sendto(sd, msg, msglen, 0, addr, alen); msg 646 tools/testing/selftests/net/nettest.c iov[0].iov_base = msg; msg 702 tools/testing/selftests/net/nettest.c if (write(sd, msg, msglen) < 0) { msg 715 tools/testing/selftests/net/nettest.c log_msg(" %.24s%s\n", msg, msglen > 24 ? " ..." : ""); msg 931 tools/testing/selftests/net/nettest.c if (msg) { msg 932 tools/testing/selftests/net/nettest.c msglen = strlen(msg); msg 1640 tools/testing/selftests/net/nettest.c msg = random_msg(atoi(optarg)); msg 1746 tools/testing/selftests/net/nettest.c msg = NULL; msg 216 tools/testing/selftests/net/reuseport_bpf.c struct msghdr msg; msg 232 tools/testing/selftests/net/reuseport_bpf.c memset(&msg, 0, sizeof(msg)); msg 233 tools/testing/selftests/net/reuseport_bpf.c msg.msg_iov = &recv_io; msg 234 tools/testing/selftests/net/reuseport_bpf.c msg.msg_iovlen = 1; msg 250 tools/testing/selftests/net/reuseport_bpf.c i = recvmsg(conn, &msg, 0); msg 253 tools/testing/selftests/net/reuseport_bpf.c i = recvmsg(ev.data.fd, &msg, 0); msg 66 tools/testing/selftests/net/so_txtime.c struct msghdr msg = {0}; msg 75 tools/testing/selftests/net/so_txtime.c msg.msg_iov = &iov; msg 76 tools/testing/selftests/net/so_txtime.c msg.msg_iovlen = 1; msg 80 tools/testing/selftests/net/so_txtime.c msg.msg_control = &control; msg 81 tools/testing/selftests/net/so_txtime.c msg.msg_controllen = sizeof(control); msg 85 tools/testing/selftests/net/so_txtime.c cm = CMSG_FIRSTHDR(&msg); msg 92 tools/testing/selftests/net/so_txtime.c ret = sendmsg(fdt, &msg, 0); msg 146 tools/testing/selftests/net/so_txtime.c struct msghdr msg = {0}; msg 155 tools/testing/selftests/net/so_txtime.c msg.msg_iov = &iov; msg 156 tools/testing/selftests/net/so_txtime.c msg.msg_iovlen = 1; msg 158 tools/testing/selftests/net/so_txtime.c msg.msg_control = control; msg 159 tools/testing/selftests/net/so_txtime.c msg.msg_controllen = sizeof(control); msg 162 tools/testing/selftests/net/so_txtime.c ret = recvmsg(fdt, &msg, MSG_ERRQUEUE); msg 167 tools/testing/selftests/net/so_txtime.c if (msg.msg_flags != MSG_ERRQUEUE) msg 168 tools/testing/selftests/net/so_txtime.c error(1, 0, "errqueue: flags 0x%x\n", msg.msg_flags); msg 170 tools/testing/selftests/net/so_txtime.c cm = CMSG_FIRSTHDR(&msg); msg 188 tools/testing/selftests/net/so_txtime.c msg.msg_flags = 0; msg 189 tools/testing/selftests/net/so_txtime.c msg.msg_controllen = sizeof(control); msg 104 tools/testing/selftests/net/tcp_inq.c struct msghdr msg; msg 149 tools/testing/selftests/net/tcp_inq.c msg.msg_name = NULL; msg 150 tools/testing/selftests/net/tcp_inq.c msg.msg_namelen = 0; msg 151 tools/testing/selftests/net/tcp_inq.c msg.msg_iov = iov; msg 152 tools/testing/selftests/net/tcp_inq.c msg.msg_iovlen = 1; msg 153 tools/testing/selftests/net/tcp_inq.c msg.msg_control = cmsgbuf; msg 154 tools/testing/selftests/net/tcp_inq.c msg.msg_controllen = sizeof(cmsgbuf); msg 155 tools/testing/selftests/net/tcp_inq.c msg.msg_flags = 0; msg 161 tools/testing/selftests/net/tcp_inq.c if (recvmsg(fd, &msg, 0) != iov[0].iov_len) msg 163 tools/testing/selftests/net/tcp_inq.c if (msg.msg_flags & MSG_CTRUNC) msg 166 tools/testing/selftests/net/tcp_inq.c for (cm = CMSG_FIRSTHDR(&msg); cm; cm = CMSG_NXTHDR(&msg, cm)) msg 250 tools/testing/selftests/net/tls.c struct msghdr msg; msg 259 tools/testing/selftests/net/tls.c memset(&msg, 0, sizeof(struct msghdr)); msg 260 tools/testing/selftests/net/tls.c msg.msg_iov = &vec; msg 261 tools/testing/selftests/net/tls.c msg.msg_iovlen = 1; msg 262 tools/testing/selftests/net/tls.c EXPECT_EQ(sendmsg(self->fd, &msg, 0), send_len); msg 274 tools/testing/selftests/net/tls.c struct msghdr msg; msg 283 tools/testing/selftests/net/tls.c memset(&msg, 0, sizeof(struct msghdr)); msg 284 tools/testing/selftests/net/tls.c msg.msg_iov = vec; msg 285 tools/testing/selftests/net/tls.c msg.msg_iovlen = frags; msg 287 tools/testing/selftests/net/tls.c EXPECT_EQ(sendmsg(self->fd, &msg, 0), SEND_LEN * frags); msg 304 tools/testing/selftests/net/tls.c struct msghdr msg; msg 308 tools/testing/selftests/net/tls.c memset(&msg, 0, sizeof(struct msghdr)); msg 312 tools/testing/selftests/net/tls.c msg.msg_iov = &vec; msg 313 tools/testing/selftests/net/tls.c msg.msg_iovlen = 1; msg 314 tools/testing/selftests/net/tls.c EXPECT_EQ(sendmsg(self->cfd, &msg, 0), send_len); msg 328 tools/testing/selftests/net/tls.c struct msghdr msg; msg 335 tools/testing/selftests/net/tls.c memset(&msg, 0, sizeof(struct msghdr)); msg 343 tools/testing/selftests/net/tls.c msg.msg_iov = vec; msg 344 tools/testing/selftests/net/tls.c msg.msg_iovlen = iov_len; msg 346 tools/testing/selftests/net/tls.c EXPECT_EQ(sendmsg(self->cfd, &msg, 0), total_len); msg 368 tools/testing/selftests/net/tls.c struct msghdr msg; msg 372 tools/testing/selftests/net/tls.c memset(&msg, 0, sizeof(struct msghdr)); msg 380 tools/testing/selftests/net/tls.c msg.msg_iov = vec; msg 381 tools/testing/selftests/net/tls.c msg.msg_iovlen = iov_len; msg 383 tools/testing/selftests/net/tls.c EXPECT_EQ(sendmsg(self->fd, &msg, 0), total_len); msg 1047 tools/testing/selftests/net/tls.c struct msghdr msg; msg 1054 tools/testing/selftests/net/tls.c memset(&msg, 0, sizeof(struct msghdr)); msg 1055 tools/testing/selftests/net/tls.c msg.msg_iov = &vec; msg 1056 tools/testing/selftests/net/tls.c msg.msg_iovlen = 1; msg 1057 tools/testing/selftests/net/tls.c msg.msg_control = cbuf; msg 1058 tools/testing/selftests/net/tls.c msg.msg_controllen = sizeof(cbuf); msg 1059 tools/testing/selftests/net/tls.c cmsg = CMSG_FIRSTHDR(&msg); msg 1065 tools/testing/selftests/net/tls.c msg.msg_controllen = cmsg->cmsg_len; msg 1067 tools/testing/selftests/net/tls.c EXPECT_EQ(sendmsg(self->fd, &msg, 0), send_len); msg 1072 tools/testing/selftests/net/tls.c EXPECT_EQ(recvmsg(self->cfd, &msg, MSG_WAITALL | MSG_PEEK), send_len); msg 1074 tools/testing/selftests/net/tls.c cmsg = CMSG_FIRSTHDR(&msg); msg 1086 tools/testing/selftests/net/tls.c EXPECT_EQ(recvmsg(self->cfd, &msg, MSG_WAITALL), send_len); msg 1087 tools/testing/selftests/net/tls.c cmsg = CMSG_FIRSTHDR(&msg); msg 432 tools/testing/selftests/net/udpgso.c static bool __send_one(int fd, struct msghdr *msg, int flags) msg 436 tools/testing/selftests/net/udpgso.c ret = sendmsg(fd, msg, flags); msg 442 tools/testing/selftests/net/udpgso.c if (ret != msg->msg_iov->iov_len) msg 444 tools/testing/selftests/net/udpgso.c (unsigned long long)msg->msg_iov->iov_len); msg 445 tools/testing/selftests/net/udpgso.c if (msg->msg_flags) msg 446 tools/testing/selftests/net/udpgso.c error(1, 0, "sendmsg: return flags 0x%x\n", msg->msg_flags); msg 455 tools/testing/selftests/net/udpgso.c struct msghdr msg = {0}; msg 462 tools/testing/selftests/net/udpgso.c msg.msg_iov = &iov; msg 463 tools/testing/selftests/net/udpgso.c msg.msg_iovlen = 1; msg 465 tools/testing/selftests/net/udpgso.c msg.msg_name = addr; msg 466 tools/testing/selftests/net/udpgso.c msg.msg_namelen = alen; msg 469 tools/testing/selftests/net/udpgso.c msg.msg_control = control; msg 470 tools/testing/selftests/net/udpgso.c msg.msg_controllen = sizeof(control); msg 472 tools/testing/selftests/net/udpgso.c cm = CMSG_FIRSTHDR(&msg); msg 482 tools/testing/selftests/net/udpgso.c if (!__send_one(fd, &msg, MSG_MORE)) msg 489 tools/testing/selftests/net/udpgso.c return __send_one(fd, &msg, 0); msg 215 tools/testing/selftests/net/udpgso_bench_rx.c struct msghdr msg = {0}; msg 224 tools/testing/selftests/net/udpgso_bench_rx.c msg.msg_iov = &iov; msg 225 tools/testing/selftests/net/udpgso_bench_rx.c msg.msg_iovlen = 1; msg 227 tools/testing/selftests/net/udpgso_bench_rx.c msg.msg_control = control; msg 228 tools/testing/selftests/net/udpgso_bench_rx.c msg.msg_controllen = sizeof(control); msg 231 tools/testing/selftests/net/udpgso_bench_rx.c ret = recvmsg(fd, &msg, MSG_TRUNC | MSG_DONTWAIT); msg 233 tools/testing/selftests/net/udpgso_bench_rx.c for (cmsg = CMSG_FIRSTHDR(&msg); cmsg != NULL; msg 234 tools/testing/selftests/net/udpgso_bench_rx.c cmsg = CMSG_NXTHDR(&msg, cmsg)) { msg 214 tools/testing/selftests/net/udpgso_bench_tx.c struct msghdr msg = {0}; msg 219 tools/testing/selftests/net/udpgso_bench_tx.c msg.msg_control = control; msg 220 tools/testing/selftests/net/udpgso_bench_tx.c msg.msg_controllen = sizeof(control); msg 221 tools/testing/selftests/net/udpgso_bench_tx.c ret = recvmsg(fd, &msg, MSG_ERRQUEUE); msg 226 tools/testing/selftests/net/udpgso_bench_tx.c if (msg.msg_flags != MSG_ERRQUEUE) msg 227 tools/testing/selftests/net/udpgso_bench_tx.c error(1, 0, "errqueue: flags 0x%x\n", msg.msg_flags); msg 229 tools/testing/selftests/net/udpgso_bench_tx.c for (cmsg = CMSG_FIRSTHDR(&msg); msg 231 tools/testing/selftests/net/udpgso_bench_tx.c cmsg = CMSG_NXTHDR(&msg, cmsg)) msg 234 tools/testing/selftests/net/udpgso_bench_tx.c msg.msg_flags = 0; msg 322 tools/testing/selftests/net/udpgso_bench_tx.c struct msghdr msg = {0}; msg 325 tools/testing/selftests/net/udpgso_bench_tx.c msg.msg_control = control; msg 326 tools/testing/selftests/net/udpgso_bench_tx.c msg.msg_controllen = sizeof(control); msg 327 tools/testing/selftests/net/udpgso_bench_tx.c cmsg = CMSG_FIRSTHDR(&msg); msg 377 tools/testing/selftests/net/udpgso_bench_tx.c struct msghdr msg = {0}; msg 386 tools/testing/selftests/net/udpgso_bench_tx.c msg.msg_iov = &iov; msg 387 tools/testing/selftests/net/udpgso_bench_tx.c msg.msg_iovlen = 1; msg 389 tools/testing/selftests/net/udpgso_bench_tx.c msg.msg_control = control; msg 390 tools/testing/selftests/net/udpgso_bench_tx.c msg.msg_controllen = sizeof(control); msg 391 tools/testing/selftests/net/udpgso_bench_tx.c cmsg = CMSG_FIRSTHDR(&msg); msg 395 tools/testing/selftests/net/udpgso_bench_tx.c cmsg = CMSG_NXTHDR(&msg, cmsg); msg 400 tools/testing/selftests/net/udpgso_bench_tx.c msg.msg_controllen = msg_controllen; msg 401 tools/testing/selftests/net/udpgso_bench_tx.c msg.msg_name = (void *)&cfg_dst_addr; msg 402 tools/testing/selftests/net/udpgso_bench_tx.c msg.msg_namelen = cfg_alen; msg 404 tools/testing/selftests/net/udpgso_bench_tx.c ret = sendmsg(fd, &msg, cfg_zerocopy ? MSG_ZEROCOPY : 0); msg 134 tools/testing/selftests/networking/timestamping/timestamping.c static void printpacket(struct msghdr *msg, int res, msg 139 tools/testing/selftests/networking/timestamping/timestamping.c struct sockaddr_in *from_addr = (struct sockaddr_in *)msg->msg_name; msg 152 tools/testing/selftests/networking/timestamping/timestamping.c msg->msg_controllen); msg 153 tools/testing/selftests/networking/timestamping/timestamping.c for (cmsg = CMSG_FIRSTHDR(msg); msg 155 tools/testing/selftests/networking/timestamping/timestamping.c cmsg = CMSG_NXTHDR(msg, cmsg)) { msg 263 tools/testing/selftests/networking/timestamping/timestamping.c struct msghdr msg; msg 272 tools/testing/selftests/networking/timestamping/timestamping.c memset(&msg, 0, sizeof(msg)); msg 273 tools/testing/selftests/networking/timestamping/timestamping.c msg.msg_iov = &entry; msg 274 tools/testing/selftests/networking/timestamping/timestamping.c msg.msg_iovlen = 1; msg 277 tools/testing/selftests/networking/timestamping/timestamping.c msg.msg_name = (caddr_t)&from_addr; msg 278 tools/testing/selftests/networking/timestamping/timestamping.c msg.msg_namelen = sizeof(from_addr); msg 279 tools/testing/selftests/networking/timestamping/timestamping.c msg.msg_control = &control; msg 280 tools/testing/selftests/networking/timestamping/timestamping.c msg.msg_controllen = sizeof(control); msg 282 tools/testing/selftests/networking/timestamping/timestamping.c res = recvmsg(sock, &msg, recvmsg_flags|MSG_DONTWAIT); msg 289 tools/testing/selftests/networking/timestamping/timestamping.c printpacket(&msg, res, data, msg 213 tools/testing/selftests/networking/timestamping/txtimestamp.c static void __recv_errmsg_cmsg(struct msghdr *msg, int payload_len) msg 220 tools/testing/selftests/networking/timestamping/txtimestamp.c for (cm = CMSG_FIRSTHDR(msg); msg 222 tools/testing/selftests/networking/timestamping/txtimestamp.c cm = CMSG_NXTHDR(msg, cm)) { msg 270 tools/testing/selftests/networking/timestamping/txtimestamp.c static struct msghdr msg; msg 279 tools/testing/selftests/networking/timestamping/txtimestamp.c memset(&msg, 0, sizeof(msg)); msg 285 tools/testing/selftests/networking/timestamping/txtimestamp.c msg.msg_iov = &entry; msg 286 tools/testing/selftests/networking/timestamping/txtimestamp.c msg.msg_iovlen = 1; msg 287 tools/testing/selftests/networking/timestamping/txtimestamp.c msg.msg_name = NULL; msg 288 tools/testing/selftests/networking/timestamping/txtimestamp.c msg.msg_namelen = 0; msg 289 tools/testing/selftests/networking/timestamping/txtimestamp.c msg.msg_control = ctrl; msg 290 tools/testing/selftests/networking/timestamping/txtimestamp.c msg.msg_controllen = sizeof(ctrl); msg 292 tools/testing/selftests/networking/timestamping/txtimestamp.c ret = recvmsg(fd, &msg, MSG_ERRQUEUE); msg 297 tools/testing/selftests/networking/timestamping/txtimestamp.c __recv_errmsg_cmsg(&msg, ret); msg 391 tools/testing/selftests/networking/timestamping/txtimestamp.c struct msghdr msg; msg 465 tools/testing/selftests/networking/timestamping/txtimestamp.c memset(&msg, 0, sizeof(msg)); msg 495 tools/testing/selftests/networking/timestamping/txtimestamp.c msg.msg_name = (void *)&laddr; msg 496 tools/testing/selftests/networking/timestamping/txtimestamp.c msg.msg_namelen = sizeof(laddr); msg 498 tools/testing/selftests/networking/timestamping/txtimestamp.c msg.msg_name = (void *)&daddr; msg 499 tools/testing/selftests/networking/timestamping/txtimestamp.c msg.msg_namelen = sizeof(daddr); msg 501 tools/testing/selftests/networking/timestamping/txtimestamp.c msg.msg_name = (void *)&daddr6; msg 502 tools/testing/selftests/networking/timestamping/txtimestamp.c msg.msg_namelen = sizeof(daddr6); msg 506 tools/testing/selftests/networking/timestamping/txtimestamp.c msg.msg_iov = &iov; msg 507 tools/testing/selftests/networking/timestamping/txtimestamp.c msg.msg_iovlen = 1; msg 512 tools/testing/selftests/networking/timestamping/txtimestamp.c msg.msg_control = control; msg 513 tools/testing/selftests/networking/timestamping/txtimestamp.c msg.msg_controllen = sizeof(control); msg 515 tools/testing/selftests/networking/timestamping/txtimestamp.c cmsg = CMSG_FIRSTHDR(&msg); msg 523 tools/testing/selftests/networking/timestamping/txtimestamp.c val = sendmsg(fd, &msg, 0); msg 85 tools/testing/selftests/powerpc/include/utils.h #define SKIP_IF_MSG(x, msg) \ msg 90 tools/testing/selftests/powerpc/include/utils.h __LINE__, msg); \ msg 46 tools/testing/selftests/powerpc/mm/tlbie_test.c static void err_msg(char *msg) msg 52 tools/testing/selftests/powerpc/mm/tlbie_test.c printf(" Error: %s\n", msg); msg 197 tools/testing/selftests/powerpc/ptrace/ptrace-hwbreak.c static void check_success(const char *msg) msg 211 tools/testing/selftests/powerpc/ptrace/ptrace-hwbreak.c printf("%s Result: [%s]\n", msg, msg2); msg 1487 tools/testing/selftests/seccomp/seccomp_bpf.c unsigned long msg; msg 1490 tools/testing/selftests/seccomp/seccomp_bpf.c ret = ptrace(PTRACE_GETEVENTMSG, tracee, NULL, &msg); msg 1493 tools/testing/selftests/seccomp/seccomp_bpf.c ASSERT_EQ(0x1001, msg) { msg 1741 tools/testing/selftests/seccomp/seccomp_bpf.c unsigned long msg; msg 1744 tools/testing/selftests/seccomp/seccomp_bpf.c ret = ptrace(PTRACE_GETEVENTMSG, tracee, NULL, &msg); msg 1748 tools/testing/selftests/seccomp/seccomp_bpf.c switch (msg) { msg 1769 tools/testing/selftests/seccomp/seccomp_bpf.c EXPECT_EQ(0, msg) { msg 1770 tools/testing/selftests/seccomp/seccomp_bpf.c TH_LOG("Unknown PTRACE_GETEVENTMSG: 0x%lx", msg); msg 1781 tools/testing/selftests/seccomp/seccomp_bpf.c unsigned long msg; msg 1791 tools/testing/selftests/seccomp/seccomp_bpf.c ret = ptrace(PTRACE_GETEVENTMSG, tracee, NULL, &msg); msg 1794 tools/testing/selftests/seccomp/seccomp_bpf.c : PTRACE_EVENTMSG_SYSCALL_EXIT, msg); msg 2731 tools/testing/selftests/seccomp/seccomp_bpf.c unsigned long msg; msg 2831 tools/testing/selftests/seccomp/seccomp_bpf.c ASSERT_EQ(0, ptrace(PTRACE_GETEVENTMSG, child_pid, NULL, &msg)); msg 2832 tools/testing/selftests/seccomp/seccomp_bpf.c ASSERT_EQ(0x100, msg); msg 2872 tools/testing/selftests/seccomp/seccomp_bpf.c ASSERT_EQ(0, ptrace(PTRACE_GETEVENTMSG, child_pid, NULL, &msg)); msg 2874 tools/testing/selftests/seccomp/seccomp_bpf.c ASSERT_EQ(0x200, msg); msg 29 tools/testing/selftests/sigaltstack/sas.c static const char *msg = "[OK]\tStack preserved"; msg 32 tools/testing/selftests/sigaltstack/sas.c char msg[128]; msg 57 tools/testing/selftests/sigaltstack/sas.c strcpy(p->msg, msg); msg 72 tools/testing/selftests/sigaltstack/sas.c ksft_print_msg("%s\n", p->msg); msg 88 tools/testing/selftests/sigaltstack/sas.c p = memmem(aa, 1024, msg, strlen(msg)); msg 92 tools/testing/selftests/sigaltstack/sas.c strcpy(p->msg, msg2); msg 34 tools/testing/selftests/sync/synctest.h #define ASSERT(cond, msg) do { \ msg 36 tools/testing/selftests/sync/synctest.h ksft_print_msg("[ERROR]\t%s", (msg)); \ msg 452 tools/testing/selftests/vm/userfaultfd.c static int uffd_read_msg(int ufd, struct uffd_msg *msg) msg 454 tools/testing/selftests/vm/userfaultfd.c int ret = read(uffd, msg, sizeof(*msg)); msg 456 tools/testing/selftests/vm/userfaultfd.c if (ret != sizeof(*msg)) { msg 471 tools/testing/selftests/vm/userfaultfd.c static int uffd_handle_page_fault(struct uffd_msg *msg) msg 475 tools/testing/selftests/vm/userfaultfd.c if (msg->event != UFFD_EVENT_PAGEFAULT) msg 477 tools/testing/selftests/vm/userfaultfd.c msg->event), exit(1); msg 480 tools/testing/selftests/vm/userfaultfd.c msg->arg.pagefault.flags & UFFD_PAGEFAULT_FLAG_WRITE) msg 483 tools/testing/selftests/vm/userfaultfd.c offset = (char *)(unsigned long)msg->arg.pagefault.address - area_dst; msg 493 tools/testing/selftests/vm/userfaultfd.c struct uffd_msg msg; msg 519 tools/testing/selftests/vm/userfaultfd.c if (uffd_read_msg(uffd, &msg)) msg 521 tools/testing/selftests/vm/userfaultfd.c switch (msg.event) { msg 524 tools/testing/selftests/vm/userfaultfd.c msg.event), exit(1); msg 527 tools/testing/selftests/vm/userfaultfd.c userfaults += uffd_handle_page_fault(&msg); msg 531 tools/testing/selftests/vm/userfaultfd.c uffd = msg.arg.fork.ufd; msg 535 tools/testing/selftests/vm/userfaultfd.c uffd_reg.range.start = msg.arg.remove.start; msg 536 tools/testing/selftests/vm/userfaultfd.c uffd_reg.range.len = msg.arg.remove.end - msg 537 tools/testing/selftests/vm/userfaultfd.c msg.arg.remove.start; msg 542 tools/testing/selftests/vm/userfaultfd.c area_dst = (char *)(unsigned long)msg.arg.remap.to; msg 554 tools/testing/selftests/vm/userfaultfd.c struct uffd_msg msg; msg 563 tools/testing/selftests/vm/userfaultfd.c if (uffd_read_msg(uffd, &msg)) msg 565 tools/testing/selftests/vm/userfaultfd.c (*this_cpu_userfaults) += uffd_handle_page_fault(&msg); msg 37 tools/testing/selftests/vm/va_128TBswitch.c const char *msg; msg 51 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(ADDR_SWITCH_HINT - PAGE_SIZE, PAGE_SIZE)", msg 63 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(ADDR_SWITCH_HINT - PAGE_SIZE, (2 * PAGE_SIZE))", msg 74 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(ADDR_SWITCH_HINT, PAGE_SIZE)", msg 81 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(ADDR_SWITCH_HINT, 2 * PAGE_SIZE, MAP_FIXED)", msg 87 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(NULL)", msg 94 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(LOW_ADDR)", msg 101 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(HIGH_ADDR)", msg 108 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(HIGH_ADDR) again", msg 115 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(HIGH_ADDR, MAP_FIXED)", msg 121 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(-1)", msg 128 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(-1) again", msg 134 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(ADDR_SWITCH_HINT - PAGE_SIZE, PAGE_SIZE)", msg 141 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(ADDR_SWITCH_HINT - PAGE_SIZE, 2 * PAGE_SIZE)", msg 149 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(ADDR_SWITCH_HINT - PAGE_SIZE/2 , 2 * PAGE_SIZE)", msg 157 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(ADDR_SWITCH_HINT, PAGE_SIZE)", msg 163 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(ADDR_SWITCH_HINT, 2 * PAGE_SIZE, MAP_FIXED)", msg 172 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(NULL, MAP_HUGETLB)", msg 179 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(LOW_ADDR, MAP_HUGETLB)", msg 186 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(HIGH_ADDR, MAP_HUGETLB)", msg 193 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(HIGH_ADDR, MAP_HUGETLB) again", msg 200 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(HIGH_ADDR, MAP_FIXED | MAP_HUGETLB)", msg 206 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(-1, MAP_HUGETLB)", msg 213 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(-1, MAP_HUGETLB) again", msg 219 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(ADDR_SWITCH_HINT - PAGE_SIZE, 2*HUGETLB_SIZE, MAP_HUGETLB)", msg 227 tools/testing/selftests/vm/va_128TBswitch.c .msg = "mmap(ADDR_SWITCH_HINT , 2*HUGETLB_SIZE, MAP_FIXED | MAP_HUGETLB)", msg 241 tools/testing/selftests/vm/va_128TBswitch.c printf("%s: %p - ", t->msg, p); msg 957 tools/testing/selftests/x86/protection_keys.c #define do_not_expect_pk_fault(msg) do { \ msg 959 tools/testing/selftests/x86/protection_keys.c dprintf0("unexpected PK fault: %s\n", msg); \ msg 42 tools/testing/vsock/vsock_diag_test.c struct vsock_diag_msg msg; msg 104 tools/testing/vsock/vsock_diag_test.c print_vsock_addr(fp, st->msg.vdiag_src_cid, st->msg.vdiag_src_port); msg 106 tools/testing/vsock/vsock_diag_test.c print_vsock_addr(fp, st->msg.vdiag_dst_cid, st->msg.vdiag_dst_port); msg 108 tools/testing/vsock/vsock_diag_test.c sock_type_str(st->msg.vdiag_type), msg 109 tools/testing/vsock/vsock_diag_test.c sock_state_str(st->msg.vdiag_state), msg 110 tools/testing/vsock/vsock_diag_test.c sock_shutdown_str(st->msg.vdiag_shutdown), msg 111 tools/testing/vsock/vsock_diag_test.c st->msg.vdiag_ino); msg 133 tools/testing/vsock/vsock_diag_test.c if (st->msg.vdiag_ino == stat.st_ino) msg 167 tools/testing/vsock/vsock_diag_test.c if (st->msg.vdiag_state != state) { msg 169 tools/testing/vsock/vsock_diag_test.c state, st->msg.vdiag_state); msg 197 tools/testing/vsock/vsock_diag_test.c struct msghdr msg = { msg 205 tools/testing/vsock/vsock_diag_test.c if (sendmsg(fd, &msg, 0) < 0) { msg 226 tools/testing/vsock/vsock_diag_test.c struct msghdr msg = { msg 235 tools/testing/vsock/vsock_diag_test.c ret = recvmsg(fd, &msg, 0); msg 257 tools/testing/vsock/vsock_diag_test.c st->msg = *resp;