Searched refs:rmsg (Results 1 - 2 of 2) sorted by relevance
/linux-4.1.27/drivers/i2c/busses/ |
H A D | i2c-viperboard.c | 71 struct vprbrd_i2c_read_msg *rmsg, int bytes_xfer) vprbrd_i2c_receive() 78 usb_sndbulkpipe(usb_dev, VPRBRD_EP_OUT), rmsg, vprbrd_i2c_receive() 90 usb_rcvbulkpipe(usb_dev, VPRBRD_EP_IN), rmsg, vprbrd_i2c_receive() 122 struct vprbrd_i2c_read_msg *rmsg = vprbrd_i2c_read() local 126 rmsg->header.cmd = VPRBRD_I2C_CMD_READ; vprbrd_i2c_read() 128 rmsg->header.addr = cpu_to_le16(start + 0x4000); vprbrd_i2c_read() 132 rmsg->header.len0 = remain_len; vprbrd_i2c_read() 133 rmsg->header.len1 = 0x00; vprbrd_i2c_read() 134 rmsg->header.len2 = 0x00; vprbrd_i2c_read() 135 rmsg->header.len3 = 0x00; vprbrd_i2c_read() 136 rmsg->header.len4 = 0x00; vprbrd_i2c_read() 137 rmsg->header.len5 = 0x00; vprbrd_i2c_read() 142 rmsg->header.len0 = remain_len - 255; vprbrd_i2c_read() 143 rmsg->header.len1 = 0xff; vprbrd_i2c_read() 144 rmsg->header.len2 = 0x00; vprbrd_i2c_read() 145 rmsg->header.len3 = 0x00; vprbrd_i2c_read() 146 rmsg->header.len4 = 0x00; vprbrd_i2c_read() 147 rmsg->header.len5 = 0x00; vprbrd_i2c_read() 152 rmsg->header.len0 = remain_len - 510; vprbrd_i2c_read() 153 rmsg->header.len1 = 0xff; vprbrd_i2c_read() 154 rmsg->header.len2 = 0xff; vprbrd_i2c_read() 155 rmsg->header.len3 = 0x00; vprbrd_i2c_read() 156 rmsg->header.len4 = 0x00; vprbrd_i2c_read() 157 rmsg->header.len5 = 0x00; vprbrd_i2c_read() 162 rmsg->header.len0 = 0x02; vprbrd_i2c_read() 163 rmsg->header.len1 = 0xff; vprbrd_i2c_read() 164 rmsg->header.len2 = 0xff; vprbrd_i2c_read() 165 rmsg->header.len3 = remain_len - 512; vprbrd_i2c_read() 166 rmsg->header.len4 = 0x00; vprbrd_i2c_read() 167 rmsg->header.len5 = 0x00; vprbrd_i2c_read() 172 rmsg->header.len0 = 0x02; vprbrd_i2c_read() 173 rmsg->header.len1 = 0xff; vprbrd_i2c_read() 174 rmsg->header.len2 = 0xff; vprbrd_i2c_read() 175 rmsg->header.len3 = remain_len - 767; vprbrd_i2c_read() 176 rmsg->header.len4 = 0xff; vprbrd_i2c_read() 177 rmsg->header.len5 = 0x00; vprbrd_i2c_read() 182 rmsg->header.len0 = 0x02; vprbrd_i2c_read() 183 rmsg->header.len1 = 0xff; vprbrd_i2c_read() 184 rmsg->header.len2 = 0xff; vprbrd_i2c_read() 185 rmsg->header.len3 = remain_len - 1022; vprbrd_i2c_read() 186 rmsg->header.len4 = 0xff; vprbrd_i2c_read() 187 rmsg->header.len5 = 0xff; vprbrd_i2c_read() 192 rmsg->header.len0 = 0x02; vprbrd_i2c_read() 193 rmsg->header.len1 = 0xff; vprbrd_i2c_read() 194 rmsg->header.len2 = 0xff; vprbrd_i2c_read() 195 rmsg->header.len3 = 0x02; vprbrd_i2c_read() 196 rmsg->header.len4 = 0xff; vprbrd_i2c_read() 197 rmsg->header.len5 = 0xff; vprbrd_i2c_read() 201 rmsg->header.tf1 = cpu_to_le16(len1); vprbrd_i2c_read() 202 rmsg->header.tf2 = cpu_to_le16(len2); vprbrd_i2c_read() 205 ret = vprbrd_i2c_receive(vb->usb_dev, rmsg, len1); vprbrd_i2c_read() 209 memcpy(msg->buf + start, rmsg, len1); vprbrd_i2c_read() 213 ret = vprbrd_i2c_receive(vb->usb_dev, rmsg, len2); vprbrd_i2c_read() 217 memcpy(msg->buf + start + 512, rmsg, len2); vprbrd_i2c_read() 70 vprbrd_i2c_receive(struct usb_device *usb_dev, struct vprbrd_i2c_read_msg *rmsg, int bytes_xfer) vprbrd_i2c_receive() argument
|
/linux-4.1.27/drivers/staging/i2o/ |
H A D | i2o_config.c | 673 u32 rmsg[I2O_OUTBOUND_MSG_FRAME_SIZE]; i2o_cfg_passthru32() local 681 memset(&rmsg, 0, I2O_OUTBOUND_MSG_FRAME_SIZE * 4); i2o_cfg_passthru32() 689 if (size > sizeof(rmsg)) { i2o_cfg_passthru32() 695 if (copy_from_user(rmsg, user_msg, size)) { i2o_cfg_passthru32() 703 sg = (struct sg_simple_element *)(rmsg + sg_offset); i2o_cfg_passthru32() 913 u32 rmsg[I2O_OUTBOUND_MSG_FRAME_SIZE]; i2o_cfg_passthru() local 921 memset(&rmsg, 0, I2O_OUTBOUND_MSG_FRAME_SIZE * 4); i2o_cfg_passthru() 929 if (size > sizeof(rmsg)) { i2o_cfg_passthru() 935 if (copy_from_user(rmsg, user_msg, size)) { i2o_cfg_passthru() 943 sg = (struct sg_simple_element *)(rmsg + sg_offset); i2o_cfg_passthru()
|
Completed in 173 milliseconds