Home
last modified time | relevance | path

Searched refs:pmsg (Results 1 – 25 of 71) sorted by relevance

123

/linux/drivers/i2c/busses/
H A Di2c-viai2c-common.c22 static int viai2c_write(struct viai2c *i2c, struct i2c_msg *pmsg, int last) in viai2c_write() argument
28 if (pmsg->len == 0) { in viai2c_write()
36 writew(pmsg->buf[0] & 0xFF, i2c->base + VIAI2C_REG_CDR); in viai2c_write()
39 if (i2c->platform == VIAI2C_PLAT_WMT && !(pmsg->flags & I2C_M_NOSTART)) { in viai2c_write()
48 tcr_val |= pmsg->addr & VIAI2C_TCR_ADDR_MASK; in viai2c_write()
52 if (i2c->platform == VIAI2C_PLAT_WMT && pmsg->flags & I2C_M_NOSTART) { in viai2c_write()
64 static int viai2c_read(struct viai2c *i2c, struct i2c_msg *pmsg, bool first) in viai2c_read() argument
71 if (i2c->platform == VIAI2C_PLAT_WMT && !(pmsg->flags & I2C_M_NOSTART)) in viai2c_read()
74 if (pmsg->len == 1) in viai2c_read()
81 tcr_val |= VIAI2C_TCR_READ | (pmsg->addr & VIAI2C_TCR_ADDR_MASK); in viai2c_read()
[all …]
H A Di2c-tiny-usb.c54 struct i2c_msg *pmsg; in usb_xfer() local
70 pmsg = &msgs[i]; in usb_xfer()
74 i, pmsg->flags & I2C_M_RD ? "read" : "write", in usb_xfer()
75 pmsg->flags, pmsg->len, pmsg->addr); in usb_xfer()
78 if (pmsg->flags & I2C_M_RD) { in usb_xfer()
81 pmsg->flags, pmsg->addr, in usb_xfer()
82 pmsg->buf, pmsg->len) != pmsg->len) { in usb_xfer()
91 pmsg->flags, pmsg->addr, in usb_xfer()
92 pmsg->buf, pmsg->len) != pmsg->len) { in usb_xfer()
H A Di2c-robotfuzz-osif.c61 struct i2c_msg *pmsg; in osif_xfer() local
66 pmsg = &msgs[i]; in osif_xfer()
68 if (pmsg->flags & I2C_M_RD) { in osif_xfer()
70 pmsg->flags, pmsg->addr, in osif_xfer()
71 pmsg->buf, pmsg->len); in osif_xfer()
72 if (ret != pmsg->len) { in osif_xfer()
78 pmsg->flags, pmsg->addr, in osif_xfer()
79 pmsg->buf, pmsg->len); in osif_xfer()
80 if (ret != pmsg->len) { in osif_xfer()
H A Di2c-diolan-u2c.c343 struct i2c_msg *pmsg; in diolan_usb_xfer() local
352 pmsg = &msgs[i]; in diolan_usb_xfer()
359 i2c_8bit_addr_from_msg(pmsg)); in diolan_usb_xfer()
362 if (pmsg->flags & I2C_M_RD) { in diolan_usb_xfer()
363 for (j = 0; j < pmsg->len; j++) { in diolan_usb_xfer()
365 bool ack = j < pmsg->len - 1; in diolan_usb_xfer()
371 if (j == 0 && (pmsg->flags & I2C_M_RECV_LEN)) in diolan_usb_xfer()
380 if (j == 0 && (pmsg->flags & I2C_M_RECV_LEN)) { in diolan_usb_xfer()
386 pmsg->len += byte; in diolan_usb_xfer()
388 pmsg->buf[j] = byte; in diolan_usb_xfer()
[all …]
H A Di2c-amd-mp2-plat.c133 static int i2c_amd_xfer_msg(struct amd_i2c_dev *i2c_dev, struct i2c_msg *pmsg) in i2c_amd_xfer_msg() argument
138 i2c_common->msg = pmsg; in i2c_amd_xfer_msg()
140 if (pmsg->len > 32) in i2c_amd_xfer_msg()
144 if (pmsg->flags & I2C_M_RD) in i2c_amd_xfer_msg()
156 struct i2c_msg *pmsg; in i2c_amd_xfer() local
166 pmsg = &msgs[i]; in i2c_amd_xfer()
167 err = i2c_amd_xfer_msg(i2c_dev, pmsg); in i2c_amd_xfer()
H A Di2c-octeon-core.c648 struct i2c_msg *pmsg = &msgs[i]; in octeon_i2c_xfer() local
651 if (!pmsg->len) { in octeon_i2c_xfer()
660 if (pmsg->flags & I2C_M_RD) in octeon_i2c_xfer()
661 ret = octeon_i2c_read(i2c, pmsg->addr, pmsg->buf, in octeon_i2c_xfer()
662 &pmsg->len, pmsg->flags & I2C_M_RECV_LEN); in octeon_i2c_xfer()
664 ret = octeon_i2c_write(i2c, pmsg->addr, pmsg->buf, in octeon_i2c_xfer()
665 pmsg->len); in octeon_i2c_xfer()
H A Di2c-pnx.c482 struct i2c_msg *pmsg; in i2c_pnx_xfer() local
498 pmsg = &msgs[i]; in i2c_pnx_xfer()
499 addr = pmsg->addr; in i2c_pnx_xfer()
501 if (pmsg->flags & I2C_M_TEN) { in i2c_pnx_xfer()
509 alg_data->mif.buf = pmsg->buf; in i2c_pnx_xfer()
510 alg_data->mif.len = pmsg->len; in i2c_pnx_xfer()
511 alg_data->mif.order = pmsg->len; in i2c_pnx_xfer()
512 alg_data->mif.mode = (pmsg->flags & I2C_M_RD) ? in i2c_pnx_xfer()
H A Di2c-eg20t.c657 struct i2c_msg *pmsg; in pch_i2c_xfer() local
679 pmsg = &msgs[i]; in pch_i2c_xfer()
680 pmsg->flags |= adap->pch_buff_mode_en; in pch_i2c_xfer()
681 status = pmsg->flags; in pch_i2c_xfer()
686 ret = pch_i2c_readbytes(i2c_adap, pmsg, (i + 1 == num), in pch_i2c_xfer()
689 ret = pch_i2c_writebytes(i2c_adap, pmsg, (i + 1 == num), in pch_i2c_xfer()
/linux/drivers/gpu/drm/gma500/
H A Doaktrail_hdmi_i2c.c93 static int xfer_read(struct i2c_adapter *adap, struct i2c_msg *pmsg) in xfer_read() argument
100 i2c_dev->msg = pmsg; in xfer_read()
105 temp = ((pmsg->len) << 20) | HI2C_EDID_READ | HI2C_ENABLE_TRANSACTION; in xfer_read()
116 static int xfer_write(struct i2c_adapter *adap, struct i2c_msg *pmsg) in xfer_write() argument
125 struct i2c_msg *pmsg, in oaktrail_hdmi_i2c_access() argument
140 if (pmsg->len && pmsg->buf) { in oaktrail_hdmi_i2c_access()
141 if (pmsg->flags & I2C_M_RD) in oaktrail_hdmi_i2c_access()
142 xfer_read(adap, pmsg); in oaktrail_hdmi_i2c_access()
144 xfer_write(adap, pmsg); in oaktrail_hdmi_i2c_access()
146 pmsg++; /* next message */ in oaktrail_hdmi_i2c_access()
/linux/drivers/i2c/algos/
H A Di2c-algo-pcf.c299 struct i2c_msg *pmsg; in pcf_xfer() local
316 pmsg = &msgs[i]; in pcf_xfer()
319 pmsg->flags & I2C_M_RD ? "read" : "write", in pcf_xfer()
320 pmsg->len, pmsg->addr, i + 1, num);) in pcf_xfer()
322 ret = pcf_doAddress(adap, pmsg); in pcf_xfer()
354 if (pmsg->flags & I2C_M_RD) { in pcf_xfer()
355 ret = pcf_readbytes(i2c_adap, pmsg->buf, pmsg->len, in pcf_xfer()
358 if (ret != pmsg->len) { in pcf_xfer()
365 ret = pcf_sendbytes(i2c_adap, pmsg->buf, pmsg->len, in pcf_xfer()
368 if (ret != pmsg->len) { in pcf_xfer()
H A Di2c-algo-bit.c523 struct i2c_msg *pmsg; in bit_xfer() local
537 pmsg = &msgs[i]; in bit_xfer()
538 nak_ok = pmsg->flags & I2C_M_IGNORE_NAK; in bit_xfer()
539 if (!(pmsg->flags & I2C_M_NOSTART)) { in bit_xfer()
552 ret = bit_doAddress(i2c_adap, pmsg); in bit_xfer()
560 if (pmsg->flags & I2C_M_RD) { in bit_xfer()
562 ret = readbytes(i2c_adap, pmsg); in bit_xfer()
566 if (ret < pmsg->len) { in bit_xfer()
573 ret = sendbytes(i2c_adap, pmsg); in bit_xfer()
577 if (ret < pmsg->len) { in bit_xfer()
/linux/arch/sh/kernel/cpu/sh2/
H A Dsmp-j2.c24 volatile unsigned *pmsg = &per_cpu(j2_ipi_messages, cpu); in j2_ipi_interrupt_handler() local
27 do messages = *pmsg; in j2_ipi_interrupt_handler()
28 while (cmpxchg(pmsg, messages, 0) != messages); in j2_ipi_interrupt_handler()
110 volatile unsigned *pmsg; in j2_send_ipi() local
116 pmsg = &per_cpu(j2_ipi_messages, cpu); in j2_send_ipi()
117 do old = *pmsg; in j2_send_ipi()
118 while (cmpxchg(pmsg, old, old|(1U<<message)) != old); in j2_send_ipi()
/linux/drivers/media/pci/cobalt/
H A Dcobalt-i2c.c235 struct i2c_msg *pmsg; in cobalt_xfer() local
243 pmsg = &msgs[i]; in cobalt_xfer()
244 flags = pmsg->flags; in cobalt_xfer()
246 if (!(pmsg->flags & I2C_M_NOSTART)) { in cobalt_xfer()
247 u8 addr = pmsg->addr << 1; in cobalt_xfer()
264 if (pmsg->flags & I2C_M_RD) { in cobalt_xfer()
267 pmsg->buf, pmsg->len); in cobalt_xfer()
273 pmsg->buf, pmsg->len); in cobalt_xfer()
/linux/net/sunrpc/xprtrdma/
H A Dsvc_rdma_transport.c206 const struct rpcrdma_connect_private *pmsg = param->private_data; in svc_rdma_parse_connect_private() local
208 if (pmsg && in svc_rdma_parse_connect_private()
209 pmsg->cp_magic == rpcrdma_cmp_magic && in svc_rdma_parse_connect_private()
210 pmsg->cp_version == RPCRDMA_CMP_VERSION) { in svc_rdma_parse_connect_private()
211 newxprt->sc_snd_w_inv = pmsg->cp_flags & in svc_rdma_parse_connect_private()
216 rpcrdma_decode_buffer_size(pmsg->cp_send_size), in svc_rdma_parse_connect_private()
217 rpcrdma_decode_buffer_size(pmsg->cp_recv_size), in svc_rdma_parse_connect_private()
412 struct rpcrdma_connect_private pmsg; in svc_rdma_accept() local
529 pmsg.cp_magic = rpcrdma_cmp_magic; in svc_rdma_accept()
530 pmsg.cp_version = RPCRDMA_CMP_VERSION; in svc_rdma_accept()
[all …]
H A Dverbs.c194 const struct rpcrdma_connect_private *pmsg = param->private_data; in rpcrdma_update_cm_private() local
201 if (pmsg && in rpcrdma_update_cm_private()
202 pmsg->cp_magic == rpcrdma_cmp_magic && in rpcrdma_update_cm_private()
203 pmsg->cp_version == RPCRDMA_CMP_VERSION) { in rpcrdma_update_cm_private()
204 rsize = rpcrdma_decode_buffer_size(pmsg->cp_send_size); in rpcrdma_update_cm_private()
205 wsize = rpcrdma_decode_buffer_size(pmsg->cp_recv_size); in rpcrdma_update_cm_private()
380 struct rpcrdma_connect_private *pmsg; in rpcrdma_ep_create() local
444 pmsg = &ep->re_cm_private; in rpcrdma_ep_create()
445 pmsg->cp_magic = rpcrdma_cmp_magic; in rpcrdma_ep_create()
446 pmsg->cp_version = RPCRDMA_CMP_VERSION; in rpcrdma_ep_create()
[all …]
/linux/tools/testing/selftests/pstore/
H A Dpstore_post_reboot_tests47 check_files_exist pmsg
63 nr_matched=`grep -c "$TEST_STRING_PATTERN" pmsg-${backend}-0`
65 grep -q "$TEST_STRING_PATTERN"$prev_uuid pmsg-${backend}-0
/linux/arch/powerpc/platforms/ps3/
H A Dgelic_udbg.c66 static __iomem char *pmsg; variable
182 pmsgc = pmsg = (char *)(h_udp + 1); in gelic_debug_init()
228 if (ch == '\n' || (pmsgc-pmsg) >= GELIC_MAX_MESSAGE_SIZE) { in ps3gelic_udbg_putc()
229 gelic_sendbuf(pmsgc-pmsg); in ps3gelic_udbg_putc()
230 pmsgc = pmsg; in ps3gelic_udbg_putc()
/linux/kernel/printk/
H A Dnbcon.c945 struct printk_message pmsg = { in nbcon_emit_next_record() local
977 ctxt->backlog = printk_get_next_message(&pmsg, ctxt->seq, is_extended, true); in nbcon_emit_next_record()
988 dropped = con_dropped + pmsg.dropped; in nbcon_emit_next_record()
990 console_prepend_dropped(&pmsg, dropped); in nbcon_emit_next_record()
998 if (__ulseq_to_u64seq(prb, ulseq) == pmsg.seq) { in nbcon_emit_next_record()
999 console_prepend_replay(&pmsg); in nbcon_emit_next_record()
1012 __u64seq_to_ulseq(pmsg.seq)); in nbcon_emit_next_record()
1019 if (pmsg.outbuf_len == 0) in nbcon_emit_next_record()
1023 nbcon_write_context_set_buf(wctxt, &pmsg.pbufs->outbuf[0], pmsg.outbuf_len); in nbcon_emit_next_record()
1065 nbcon_seq_try_update(ctxt, pmsg.seq + 1); in nbcon_emit_next_record()
H A Dprintk.c828 struct printk_message pmsg = { in devkmsg_read() local
837 if (!printk_get_next_message(&pmsg, atomic64_read(&user->seq), true, false)) { in devkmsg_read()
854 printk_get_next_message(&pmsg, atomic64_read(&user->seq), true, in devkmsg_read()
860 if (pmsg.dropped) { in devkmsg_read()
862 atomic64_set(&user->seq, pmsg.seq); in devkmsg_read()
867 atomic64_set(&user->seq, pmsg.seq + 1); in devkmsg_read()
869 if (pmsg.outbuf_len > count) { in devkmsg_read()
874 if (copy_to_user(buf, outbuf, pmsg.outbuf_len)) { in devkmsg_read()
878 ret = pmsg.outbuf_len; in devkmsg_read()
2887 static void console_prepend_message(struct printk_message *pmsg, const char *fmt, ...) in console_prepend_message() argument
[all …]
H A Dinternal.h334 bool printk_get_next_message(struct printk_message *pmsg, u64 seq,
338 void console_prepend_dropped(struct printk_message *pmsg, unsigned long dropped);
339 void console_prepend_replay(struct printk_message *pmsg);
/linux/Documentation/admin-guide/
H A Dpstore-blk.rst90 The chunk size in KB for pmsg front-end. It **MUST** be a multiple of 4.
91 It's optional if you do not care about the pmsg log.
93 Unlike oops/panic front-end, there is only one chunk for pmsg front-end.
97 */sys/fs/pstore/pmsg-pstore-blk-0*.
105 Similar to pmsg front-end, there is only one chunk for console front-end.
187 ``pmsg-pstore-blk-0`` for pmsg front-end and so on. The timestamp of the
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Dmbox.c353 struct mbox_msghdr *pmsg = mdev->mbase + imsg; in otx2_mbox_get_rsp() local
356 if (msg == pmsg) { in otx2_mbox_get_rsp()
357 if (pmsg->id != prsp->id) in otx2_mbox_get_rsp()
363 imsg = mbox->tx_start + pmsg->next_msgoff; in otx2_mbox_get_rsp()
/linux/net/netfilter/
H A Dnfnetlink_log.c468 struct nfulnl_msg_packet_hdr pmsg; in __build_packet_message() local
480 memset(&pmsg, 0, sizeof(pmsg)); in __build_packet_message()
481 pmsg.hw_protocol = skb->protocol; in __build_packet_message()
482 pmsg.hook = hooknum; in __build_packet_message()
484 if (nla_put(inst->skb, NFULA_PACKET_HDR, sizeof(pmsg), &pmsg)) in __build_packet_message()
/linux/fs/pstore/
H A DMakefile11 pstore-$(CONFIG_PSTORE_PMSG) += pmsg.o
H A DKconfig51 data can be retrieved from /sys/fs/pstore/pmsg-ramoops-[ID].
158 int "Size in Kbytes of pmsg to store"
163 This just sets size of pmsg (pmsg_size) for pstore/blk. The size is

123