Lines Matching refs:optlen
153 …(struct socket *sock, int level, int optname, char __user *optval, unsigned int optlen, int flags);
154 …t(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen, int flags);
1323 …n_setsockopt(struct socket *sock, int level, int optname, char __user *optval, unsigned int optlen) in dn_setsockopt() argument
1329 err = __dn_setsockopt(sock, level, optname, optval, optlen, 0); in dn_setsockopt()
1335 err = nf_setsockopt(sk, PF_DECnet, optname, optval, optlen); in dn_setsockopt()
1341 …pt(struct socket *sock, int level,int optname, char __user *optval, unsigned int optlen, int flags) in __dn_setsockopt() argument
1357 if (optlen && !optval) in __dn_setsockopt()
1360 if (optlen > sizeof(u)) in __dn_setsockopt()
1363 if (copy_from_user(&u, optval, optlen)) in __dn_setsockopt()
1373 if (optlen != sizeof(struct optdata_dn)) in __dn_setsockopt()
1379 memcpy(&scp->conndata_out, &u.opt, optlen); in __dn_setsockopt()
1387 if (optlen != sizeof(struct optdata_dn)) in __dn_setsockopt()
1393 memcpy(&scp->discdata_out, &u.opt, optlen); in __dn_setsockopt()
1402 if (optlen != sizeof(struct accessdata_dn)) in __dn_setsockopt()
1410 memcpy(&scp->accessdata, &u.acc, optlen); in __dn_setsockopt()
1419 if (optlen != sizeof(int)) in __dn_setsockopt()
1445 if (optlen != sizeof(unsigned long)) in __dn_setsockopt()
1457 if (optlen != sizeof(int)) in __dn_setsockopt()
1466 if (optlen != sizeof(int)) in __dn_setsockopt()
1475 if (optlen != sizeof(unsigned char)) in __dn_setsockopt()
1485 if (optlen != sizeof(unsigned char)) in __dn_setsockopt()
1502 …dn_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) in dn_getsockopt() argument
1508 err = __dn_getsockopt(sock, level, optname, optval, optlen, 0); in dn_getsockopt()
1516 if (get_user(len, optlen)) in dn_getsockopt()
1521 err = put_user(len, optlen); in dn_getsockopt()
1528 …kopt(struct socket *sock, int level,int optname, char __user *optval,int __user *optlen, int flags) in __dn_getsockopt() argument
1537 if(get_user(r_len , optlen)) in __dn_getsockopt()
1632 if (put_user(r_len, optlen)) in __dn_getsockopt()