Lines Matching defs:kcmd
91 struct i2o_cmd_hrtlct kcmd;
97 if (copy_from_user(&kcmd, cmd, sizeof(struct i2o_cmd_hrtlct)))
100 if (get_user(reslen, kcmd.reslen) < 0)
103 if (kcmd.resbuf == NULL)
106 c = i2o_find_iop(kcmd.iop);
114 if (put_user(len, kcmd.reslen))
118 else if (copy_to_user(kcmd.resbuf, (void *)hrt, len))
128 struct i2o_cmd_hrtlct kcmd;
134 if (copy_from_user(&kcmd, cmd, sizeof(struct i2o_cmd_hrtlct)))
137 if (get_user(reslen, kcmd.reslen) < 0)
140 if (kcmd.resbuf == NULL)
143 c = i2o_find_iop(kcmd.iop);
150 if (put_user(len, kcmd.reslen))
154 else if (copy_to_user(kcmd.resbuf, lct, len))
167 struct i2o_cmd_psetget kcmd;
176 if (copy_from_user(&kcmd, cmd, sizeof(struct i2o_cmd_psetget)))
179 if (get_user(reslen, kcmd.reslen))
182 c = i2o_find_iop(kcmd.iop);
186 dev = i2o_iop_find_device(c, kcmd.tid);
190 ops = memdup_user(kcmd.opbuf, kcmd.oplen);
204 len = i2o_parm_issue(dev, i2o_cmd, ops, kcmd.oplen, res, 65536);
212 if (put_user(len, kcmd.reslen))
216 else if (copy_to_user(kcmd.resbuf, res, len))