/linux/drivers/i2c/busses/ |
A D | i2c-wmt.c | 137 if (pmsg->len == 0) { in wmt_i2c_write() 169 if (pmsg->flags & I2C_M_NOSTART) { in wmt_i2c_write() 175 while (xfer_len < pmsg->len) { in wmt_i2c_write() 194 if (pmsg->len == 0) { in wmt_i2c_write() 200 if (xfer_len == pmsg->len) { in wmt_i2c_write() 242 if (pmsg->len == 1) { in wmt_i2c_read() 265 while (xfer_len < pmsg->len) { in wmt_i2c_read() 279 if (xfer_len == pmsg->len - 1) { in wmt_i2c_read() 297 struct i2c_msg *pmsg; in wmt_i2c_xfer() local 304 pmsg = &msgs[i]; in wmt_i2c_xfer() [all …]
|
A D | i2c-tiny-usb.c | 54 struct i2c_msg *pmsg; in usb_xfer() local 72 pmsg = &msgs[i]; in usb_xfer() 76 i, pmsg->flags & I2C_M_RD ? "read" : "write", in usb_xfer() 77 pmsg->flags, pmsg->len, pmsg->addr); in usb_xfer() 80 if (pmsg->flags & I2C_M_RD) { in usb_xfer() 83 pmsg->flags, pmsg->addr, in usb_xfer() 84 pmsg->buf, pmsg->len) != pmsg->len) { in usb_xfer() 93 pmsg->flags, pmsg->addr, in usb_xfer() 94 pmsg->buf, pmsg->len) != pmsg->len) { in usb_xfer()
|
A D | i2c-robotfuzz-osif.c | 61 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()
|
A D | i2c-mt7621.c | 142 struct i2c_msg *pmsg; in mtk_i2c_master_xfer() local 151 pmsg = &msgs[i]; in mtk_i2c_master_xfer() 164 if (pmsg->flags & I2C_M_TEN) { in mtk_i2c_master_xfer() 167 addr |= (pmsg->addr & 0xff) << 8; in mtk_i2c_master_xfer() 168 if (pmsg->flags & I2C_M_RD) in mtk_i2c_master_xfer() 176 addr = i2c_8bit_addr_from_msg(pmsg); in mtk_i2c_master_xfer() 184 if (!(pmsg->flags & I2C_M_IGNORE_NAK)) { in mtk_i2c_master_xfer() 194 if (pmsg->flags & I2C_M_RD) { in mtk_i2c_master_xfer() 198 memcpy(data, &pmsg->buf[j], page_len); in mtk_i2c_master_xfer() 208 if (pmsg->flags & I2C_M_RD) { in mtk_i2c_master_xfer() [all …]
|
A D | i2c-dln2.c | 144 struct i2c_msg *pmsg; in dln2_i2c_xfer() local 150 pmsg = &msgs[i]; in dln2_i2c_xfer() 152 if (pmsg->flags & I2C_M_RD) { in dln2_i2c_xfer() 153 ret = dln2_i2c_read(dln2, pmsg->addr, pmsg->buf, in dln2_i2c_xfer() 154 pmsg->len); in dln2_i2c_xfer() 158 pmsg->len = ret; in dln2_i2c_xfer() 160 ret = dln2_i2c_write(dln2, pmsg->addr, pmsg->buf, in dln2_i2c_xfer() 161 pmsg->len); in dln2_i2c_xfer() 162 if (ret != pmsg->len) in dln2_i2c_xfer()
|
A D | i2c-cpm.c | 207 if (!(pmsg->flags & I2C_M_NOSTART)) in cpm_i2c_parse_message() 213 if (pmsg->flags & I2C_M_RD) { in cpm_i2c_parse_message() 233 memcpy(tb+1, pmsg->buf, pmsg->len); in cpm_i2c_parse_message() 259 if (pmsg->flags & I2C_M_RD) { in cpm_i2c_check_message() 276 memcpy(pmsg->buf, rb, pmsg->len); in cpm_i2c_check_message() 302 struct i2c_msg *pmsg; in cpm_i2c_xfer() local 328 pmsg = &msgs[tptr]; in cpm_i2c_xfer() 332 if (pmsg->flags & I2C_M_RD) in cpm_i2c_xfer() 351 pmsg = &msgs[tptr]; in cpm_i2c_xfer() 352 if (pmsg->flags & I2C_M_RD) in cpm_i2c_xfer() [all …]
|
A D | i2c-viperboard.c | 268 struct i2c_msg *pmsg; in vprbrd_i2c_xfer() local 279 pmsg = &msgs[i]; in vprbrd_i2c_xfer() 283 i, pmsg->flags & I2C_M_RD ? "read" : "write", in vprbrd_i2c_xfer() 284 pmsg->flags, pmsg->len, pmsg->addr); in vprbrd_i2c_xfer() 288 if (pmsg->flags & I2C_M_RD) { in vprbrd_i2c_xfer() 293 amsg->addr = pmsg->addr; in vprbrd_i2c_xfer() 295 amsg->len = cpu_to_le16(pmsg->len); in vprbrd_i2c_xfer() 301 ret = vprbrd_i2c_read(vb, pmsg); in vprbrd_i2c_xfer() 313 ret = vprbrd_i2c_write(vb, pmsg); in vprbrd_i2c_xfer() 318 amsg->addr = pmsg->addr; in vprbrd_i2c_xfer() [all …]
|
A D | i2c-brcmstb.c | 335 struct i2c_msg *pmsg) in brcmstb_i2c_xfer_bsc_data() argument 458 struct i2c_msg *pmsg; in brcmstb_i2c_xfer() local 469 pmsg = &msgs[i]; in brcmstb_i2c_xfer() 470 len = pmsg->len; in brcmstb_i2c_xfer() 471 tmp_buf = pmsg->buf; in brcmstb_i2c_xfer() 475 num - 1, pmsg->flags, in brcmstb_i2c_xfer() 476 pmsg->buf ? pmsg->buf[0] : '0', pmsg->len); in brcmstb_i2c_xfer() 486 if (!(pmsg->flags & I2C_M_NOSTART)) { in brcmstb_i2c_xfer() 487 rc = brcmstb_i2c_do_addr(dev, pmsg); in brcmstb_i2c_xfer() 491 pmsg->addr, i, rc); in brcmstb_i2c_xfer() [all …]
|
A D | i2c-diolan-u2c.c | 343 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() 386 pmsg->len += byte; in diolan_usb_xfer() 388 pmsg->buf[j] = byte; in diolan_usb_xfer() 391 for (j = 0; j < pmsg->len; j++) { in diolan_usb_xfer() [all …]
|
A D | i2c-amd-mp2-plat.c | 133 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()
|
A D | i2c-octeon-core.c | 633 struct i2c_msg *pmsg = &msgs[i]; in octeon_i2c_xfer() local 636 if (!pmsg->len) { in octeon_i2c_xfer() 645 if (pmsg->flags & I2C_M_RD) in octeon_i2c_xfer() 646 ret = octeon_i2c_read(i2c, pmsg->addr, pmsg->buf, in octeon_i2c_xfer() 647 &pmsg->len, pmsg->flags & I2C_M_RECV_LEN); in octeon_i2c_xfer() 649 ret = octeon_i2c_write(i2c, pmsg->addr, pmsg->buf, in octeon_i2c_xfer() 650 pmsg->len); in octeon_i2c_xfer()
|
A D | i2c-iop3xx.c | 335 iop3xx_i2c_handle_msg(struct i2c_adapter *i2c_adap, struct i2c_msg *pmsg) in iop3xx_i2c_handle_msg() argument 340 rc = iop3xx_i2c_send_target_addr(iop3xx_adap, pmsg); in iop3xx_i2c_handle_msg() 345 if ((pmsg->flags&I2C_M_RD)) { in iop3xx_i2c_handle_msg() 346 return iop3xx_i2c_readbytes(i2c_adap, pmsg->buf, pmsg->len); in iop3xx_i2c_handle_msg() 348 return iop3xx_i2c_writebytes(i2c_adap, pmsg->buf, pmsg->len); in iop3xx_i2c_handle_msg()
|
A D | i2c-bcm-kona.c | 605 struct i2c_msg *pmsg; in bcm_kona_i2c_xfer() local 638 pmsg = &msgs[i]; in bcm_kona_i2c_xfer() 641 if ((i != 0) && ((pmsg->flags & I2C_M_NOSTART) == 0)) { in bcm_kona_i2c_xfer() 651 if (!(pmsg->flags & I2C_M_NOSTART)) { in bcm_kona_i2c_xfer() 652 rc = bcm_kona_i2c_do_addr(dev, pmsg); in bcm_kona_i2c_xfer() 656 pmsg->addr, i, rc); in bcm_kona_i2c_xfer() 662 if (pmsg->flags & I2C_M_RD) { in bcm_kona_i2c_xfer() 663 rc = bcm_kona_i2c_read_fifo(dev, pmsg); in bcm_kona_i2c_xfer() 669 rc = bcm_kona_i2c_write_fifo(dev, pmsg); in bcm_kona_i2c_xfer()
|
A D | i2c-pnx.c | 514 struct i2c_msg *pmsg; in i2c_pnx_xfer() local 529 pmsg = &msgs[i]; in i2c_pnx_xfer() 530 addr = pmsg->addr; in i2c_pnx_xfer() 532 if (pmsg->flags & I2C_M_TEN) { in i2c_pnx_xfer() 540 alg_data->mif.buf = pmsg->buf; in i2c_pnx_xfer() 541 alg_data->mif.len = pmsg->len; in i2c_pnx_xfer() 542 alg_data->mif.order = pmsg->len; in i2c_pnx_xfer() 543 alg_data->mif.mode = (pmsg->flags & I2C_M_RD) ? in i2c_pnx_xfer()
|
/linux/drivers/gpu/drm/gma500/ |
A D | oaktrail_hdmi_i2c.c | 93 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/ |
A D | i2c-algo-pcf.c | 299 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()
|
A D | i2c-algo-bit.c | 534 struct i2c_msg *pmsg; in bit_xfer() local 548 pmsg = &msgs[i]; in bit_xfer() 549 nak_ok = pmsg->flags & I2C_M_IGNORE_NAK; in bit_xfer() 550 if (!(pmsg->flags & I2C_M_NOSTART)) { in bit_xfer() 563 ret = bit_doAddress(i2c_adap, pmsg); in bit_xfer() 571 if (pmsg->flags & I2C_M_RD) { in bit_xfer() 573 ret = readbytes(i2c_adap, pmsg); in bit_xfer() 577 if (ret < pmsg->len) { in bit_xfer() 584 ret = sendbytes(i2c_adap, pmsg); in bit_xfer() 588 if (ret < pmsg->len) { in bit_xfer()
|
/linux/arch/sh/kernel/cpu/sh2/ |
A D | smp-j2.c | 24 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/ |
A D | cobalt-i2c.c | 235 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/ |
A D | svc_rdma_transport.c | 166 if (pmsg && in svc_rdma_parse_connect_private() 167 pmsg->cp_magic == rpcrdma_cmp_magic && in svc_rdma_parse_connect_private() 168 pmsg->cp_version == RPCRDMA_CMP_VERSION) { in svc_rdma_parse_connect_private() 169 newxprt->sc_snd_w_inv = pmsg->cp_flags & in svc_rdma_parse_connect_private() 371 struct rpcrdma_connect_private pmsg; in svc_rdma_accept() local 482 pmsg.cp_magic = rpcrdma_cmp_magic; in svc_rdma_accept() 483 pmsg.cp_version = RPCRDMA_CMP_VERSION; in svc_rdma_accept() 484 pmsg.cp_flags = 0; in svc_rdma_accept() 485 pmsg.cp_send_size = pmsg.cp_recv_size = in svc_rdma_accept() 499 conn_param.private_data = &pmsg; in svc_rdma_accept() [all …]
|
A D | verbs.c | 211 if (pmsg && in rpcrdma_update_cm_private() 212 pmsg->cp_magic == rpcrdma_cmp_magic && in rpcrdma_update_cm_private() 213 pmsg->cp_version == RPCRDMA_CMP_VERSION) { in rpcrdma_update_cm_private() 214 rsize = rpcrdma_decode_buffer_size(pmsg->cp_send_size); in rpcrdma_update_cm_private() 385 struct rpcrdma_connect_private *pmsg; in rpcrdma_ep_create() local 455 pmsg = &ep->re_cm_private; in rpcrdma_ep_create() 456 pmsg->cp_magic = rpcrdma_cmp_magic; in rpcrdma_ep_create() 457 pmsg->cp_version = RPCRDMA_CMP_VERSION; in rpcrdma_ep_create() 458 pmsg->cp_flags |= RPCRDMA_CMP_F_SND_W_INV_OK; in rpcrdma_ep_create() 461 ep->re_remote_cma.private_data = pmsg; in rpcrdma_ep_create() [all …]
|
/linux/drivers/staging/rtl8192u/ |
A D | r819xU_cmdpkt.c | 145 static void cmpk_handle_tx_feedback(struct net_device *dev, u8 *pmsg) in cmpk_handle_tx_feedback() argument 158 memcpy((u8 *)&rx_tx_fb, pmsg, sizeof(struct cmd_pkt_tx_feedback)); in cmpk_handle_tx_feedback() 209 static void cmpk_handle_interrupt_status(struct net_device *dev, u8 *pmsg) in cmpk_handle_interrupt_status() argument 221 rx_intr_status.length = pmsg[1]; in cmpk_handle_interrupt_status() 230 rx_intr_status.interrupt_status = *((u32 *)(pmsg + 4)); in cmpk_handle_interrupt_status() 332 static void cmpk_handle_tx_status(struct net_device *dev, u8 *pmsg) in cmpk_handle_tx_status() argument 336 memcpy((void *)&rx_tx_sts, (void *)pmsg, sizeof(cmpk_tx_status_t)); in cmpk_handle_tx_status() 358 static void cmpk_handle_tx_rate_history(struct net_device *dev, u8 *pmsg) in cmpk_handle_tx_rate_history() argument 378 ptemp = (u32 *)pmsg; in cmpk_handle_tx_rate_history() 391 ptxrate = (cmpk_tx_rahis_t *)pmsg; in cmpk_handle_tx_rate_history()
|
/linux/drivers/spi/ |
A D | spi-topcliff-pch.c | 501 pmsg->actual_length = 0; in pch_spi_transfer() 504 pmsg->status = -EINPROGRESS; in pch_spi_transfer() 592 pmsg->status = -ENOMEM; in pch_spi_set_tx() 594 if (pmsg->complete) in pch_spi_set_tx() 595 pmsg->complete(pmsg->context); in pch_spi_set_tx() 677 pmsg->status = -EIO; in pch_spi_nomore_transfer() 679 if (pmsg->complete) in pch_spi_nomore_transfer() 680 pmsg->complete(pmsg->context); in pch_spi_nomore_transfer() 1140 pmsg->status = -EIO; in pch_spi_process_messages() 1142 if (pmsg->complete) { in pch_spi_process_messages() [all …]
|
/linux/tools/testing/selftests/pstore/ |
A D | pstore_post_reboot_tests | 47 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/ |
A D | gelic_udbg.c | 65 static __iomem char *pmsg; variable 181 pmsgc = pmsg = (char *)(h_udp + 1); in gelic_debug_init() 227 if (ch == '\n' || (pmsgc-pmsg) >= GELIC_MAX_MESSAGE_SIZE) { in ps3gelic_udbg_putc() 228 gelic_sendbuf(pmsgc-pmsg); in ps3gelic_udbg_putc() 229 pmsgc = pmsg; in ps3gelic_udbg_putc()
|