Lines Matching refs:kxfer
226 struct i2o_sw_xfer kxfer;
234 if (copy_from_user(&kxfer, pxfer, sizeof(struct i2o_sw_xfer)))
237 if (get_user(swlen, kxfer.swlen) < 0)
240 if (get_user(maxfrag, kxfer.maxfrag) < 0)
243 if (get_user(curfrag, kxfer.curfrag) < 0)
249 if (!kxfer.buf || !access_ok(VERIFY_READ, kxfer.buf, fragsize))
252 c = i2o_find_iop(kxfer.iop);
265 if (__copy_from_user(buffer.virt, kxfer.buf, fragsize)) {
278 cpu_to_le32((((u32) kxfer.flags) << 24) | (((u32) kxfer.
282 msg->body[2] = cpu_to_le32(kxfer.sw_id);
304 struct i2o_sw_xfer kxfer;
313 if (copy_from_user(&kxfer, pxfer, sizeof(struct i2o_sw_xfer)))
316 if (get_user(swlen, kxfer.swlen) < 0)
319 if (get_user(maxfrag, kxfer.maxfrag) < 0)
322 if (get_user(curfrag, kxfer.curfrag) < 0)
328 if (!kxfer.buf)
331 c = i2o_find_iop(kxfer.iop);
350 cpu_to_le32((u32) kxfer.flags << 24 | (u32) kxfer.
353 msg->body[2] = cpu_to_le32(kxfer.sw_id);
368 if (copy_to_user(kxfer.buf, buffer.virt, fragsize))
379 struct i2o_sw_xfer kxfer;
385 if (copy_from_user(&kxfer, pxfer, sizeof(struct i2o_sw_xfer)))
388 if (get_user(swlen, kxfer.swlen) < 0)
391 c = i2o_find_iop(kxfer.iop);
405 cpu_to_le32((u32) kxfer.flags << 24 | (u32) kxfer.sw_type << 16);
407 msg->body[2] = cpu_to_le32(kxfer.sw_id);