Lines Matching defs:msg
79 struct ipmb_msg msg;
82 memset(&msg, 0, sizeof(msg));
102 memcpy(&msg, &queue_elem->request, sizeof(msg));
109 count = min_t(size_t, count, msg.len + 1);
110 if (copy_to_user(buf, &msg, count))
116 static int ipmb_i2c_write(struct i2c_client *client, u8 *msg, u8 addr)
121 * subtract 1 byte (rq_sa) from the length of the msg passed to
124 i2c_msg.len = msg[IPMB_MSG_LEN_IDX] - 1;
127 i2c_msg.buf = msg + 2;
141 u8 msg[MAX_MSG_LEN];
144 if (count > sizeof(msg))
147 if (copy_from_user(&msg, buf, count))
150 if (count < msg[0])
153 rq_sa = GET_7BIT_ADDR(msg[RQ_SA_8BIT_IDX]);
154 netf_rq_lun = msg[NETFN_LUN_IDX];
158 ret = ipmb_i2c_write(ipmb_dev->client, msg, rq_sa);
163 * subtract rq_sa and netf_rq_lun from the length of the msg. Fill the
166 msg_len = msg[IPMB_MSG_LEN_IDX] - SMBUS_MSG_HEADER_LENGTH;
174 msg + SMBUS_MSG_IDX_OFFSET);
263 * At index 0, ipmb_msg stores the length of msg,