Searched refs:kxfer (Results 1 - 1 of 1) sorted by relevance
/linux-4.1.27/drivers/staging/i2o/ |
H A D | i2o_config.c | 233 struct i2o_sw_xfer kxfer; i2o_cfg_swdl() local 241 if (copy_from_user(&kxfer, pxfer, sizeof(struct i2o_sw_xfer))) i2o_cfg_swdl() 244 if (get_user(swlen, kxfer.swlen) < 0) i2o_cfg_swdl() 247 if (get_user(maxfrag, kxfer.maxfrag) < 0) i2o_cfg_swdl() 250 if (get_user(curfrag, kxfer.curfrag) < 0) i2o_cfg_swdl() 256 if (!kxfer.buf || !access_ok(VERIFY_READ, kxfer.buf, fragsize)) i2o_cfg_swdl() 259 c = i2o_find_iop(kxfer.iop); i2o_cfg_swdl() 272 if (__copy_from_user(buffer.virt, kxfer.buf, fragsize)) { i2o_cfg_swdl() 285 cpu_to_le32((((u32) kxfer.flags) << 24) | (((u32) kxfer. i2o_cfg_swdl() 289 msg->body[2] = cpu_to_le32(kxfer.sw_id); i2o_cfg_swdl() 311 struct i2o_sw_xfer kxfer; i2o_cfg_swul() local 320 if (copy_from_user(&kxfer, pxfer, sizeof(struct i2o_sw_xfer))) i2o_cfg_swul() 323 if (get_user(swlen, kxfer.swlen) < 0) i2o_cfg_swul() 326 if (get_user(maxfrag, kxfer.maxfrag) < 0) i2o_cfg_swul() 329 if (get_user(curfrag, kxfer.curfrag) < 0) i2o_cfg_swul() 335 if (!kxfer.buf) i2o_cfg_swul() 338 c = i2o_find_iop(kxfer.iop); i2o_cfg_swul() 357 cpu_to_le32((u32) kxfer.flags << 24 | (u32) kxfer. i2o_cfg_swul() 360 msg->body[2] = cpu_to_le32(kxfer.sw_id); i2o_cfg_swul() 375 if (copy_to_user(kxfer.buf, buffer.virt, fragsize)) i2o_cfg_swul() 386 struct i2o_sw_xfer kxfer; i2o_cfg_swdel() local 392 if (copy_from_user(&kxfer, pxfer, sizeof(struct i2o_sw_xfer))) i2o_cfg_swdel() 395 if (get_user(swlen, kxfer.swlen) < 0) i2o_cfg_swdel() 398 c = i2o_find_iop(kxfer.iop); i2o_cfg_swdel() 412 cpu_to_le32((u32) kxfer.flags << 24 | (u32) kxfer.sw_type << 16); i2o_cfg_swdel() 414 msg->body[2] = cpu_to_le32(kxfer.sw_id); i2o_cfg_swdel()
|
Completed in 59 milliseconds