Lines Matching refs:opthdr
247 while(opt_len >= sizeof(struct opthdr)) { in timod_optmgmt()
248 struct opthdr *opt; in timod_optmgmt()
251 opt = (struct opthdr *)ret_pos; in timod_optmgmt()
252 if (ret_space < sizeof(struct opthdr)) { in timod_optmgmt()
257 if (copy_from_user(opt, opt_buf, sizeof(struct opthdr)) || in timod_optmgmt()
267 buf = ret_pos + sizeof(struct opthdr); in timod_optmgmt()
268 if (ret_space < opt->len + sizeof(struct opthdr) || in timod_optmgmt()
269 copy_from_user(buf, opt_buf+sizeof(struct opthdr), opt->len)) { in timod_optmgmt()
290 opt->len = ret_space - sizeof(struct opthdr); in timod_optmgmt()
298 args[3] = (long)(ret_pos+sizeof(struct opthdr)); in timod_optmgmt()
309 ret_space -= sizeof(struct opthdr) + opt->len; in timod_optmgmt()
310 ret_len += sizeof(struct opthdr) + opt->len; in timod_optmgmt()
311 ret_pos += sizeof(struct opthdr) + opt->len; in timod_optmgmt()
312 opt_len -= sizeof(struct opthdr) + orig_opt_len; in timod_optmgmt()
313 opt_buf += sizeof(struct opthdr) + orig_opt_len; in timod_optmgmt()