Lines Matching refs:valsize
2858 size_t valsize;
2866 if ((valsize = sopt->sopt_valsize) < minlen)
2868 if (valsize > len)
2869 sopt->sopt_valsize = valsize = len;
2872 return (copyin(sopt->sopt_val, buf, valsize));
2874 bcopy(CAST_DOWN(caddr_t, sopt->sopt_val), buf, valsize);
3233 size_t valsize;
3246 valsize = min(len, sopt->sopt_valsize);
3247 sopt->sopt_valsize = valsize;
3250 error = copyout(buf, sopt->sopt_val, valsize);
3252 bcopy(buf, CAST_DOWN(caddr_t, sopt->sopt_val), valsize);
3264 size_t valsize;
3276 valsize = min(len, sopt->sopt_valsize);
3277 sopt->sopt_valsize = valsize;
3280 error = copyout(val, sopt->sopt_val, valsize);
3282 bcopy(val, CAST_DOWN(caddr_t, sopt->sopt_val), valsize);
3584 size_t valsize = 0;
3604 valsize += m->m_len;
3612 sopt->sopt_valsize = valsize;