Lines Matching refs:msk
55 struct mctp_sock *msk = container_of(sk, struct mctp_sock, sk); in mctp_bind() local
81 msk->bind_net = smctp->smctp_network; in mctp_bind()
82 msk->bind_addr = smctp->smctp_addr.s_addr; in mctp_bind()
83 msk->bind_type = smctp->smctp_type & 0x7f; /* ignore the IC bit */ in mctp_bind()
98 struct mctp_sock *msk = container_of(sk, struct mctp_sock, sk); in mctp_sendmsg() local
133 if (msk->addr_ext && addrlen >= sizeof(struct sockaddr_mctp_ext)) { in mctp_sendmsg()
210 struct mctp_sock *msk = container_of(sk, struct mctp_sock, sk); in mctp_recvmsg() local
259 if (msk->addr_ext) { in mctp_recvmsg()
311 struct mctp_sock *msk = container_of(sock->sk, struct mctp_sock, sk); in mctp_setsockopt() local
322 msk->addr_ext = val; in mctp_setsockopt()
332 struct mctp_sock *msk = container_of(sock->sk, struct mctp_sock, sk); in mctp_getsockopt() local
344 val = !!msk->addr_ext; in mctp_getsockopt()
353 static int mctp_ioctl_alloctag(struct mctp_sock *msk, unsigned long arg) in mctp_ioctl_alloctag() argument
355 struct net *net = sock_net(&msk->sk); in mctp_ioctl_alloctag()
370 key = mctp_alloc_local_tag(msk, ctl.peer_addr, MCTP_ADDR_ANY, in mctp_ioctl_alloctag()
395 static int mctp_ioctl_droptag(struct mctp_sock *msk, unsigned long arg) in mctp_ioctl_droptag() argument
397 struct net *net = sock_net(&msk->sk); in mctp_ioctl_droptag()
419 hlist_for_each_entry_safe(key, tmp, &msk->keys, sklist) { in mctp_ioctl_droptag()
441 struct mctp_sock *msk = container_of(sock->sk, struct mctp_sock, sk); in mctp_ioctl() local
445 return mctp_ioctl_alloctag(msk, arg); in mctp_ioctl()
447 return mctp_ioctl_droptag(msk, arg); in mctp_ioctl()
495 struct mctp_sock *msk = container_of(timer, struct mctp_sock, in mctp_sk_expire_keys() local
497 struct net *net = sock_net(&msk->sk); in mctp_sk_expire_keys()
505 hlist_for_each_entry_safe(key, tmp, &msk->keys, sklist) { in mctp_sk_expire_keys()
537 struct mctp_sock *msk = container_of(sk, struct mctp_sock, sk); in mctp_sk_init() local
539 INIT_HLIST_HEAD(&msk->keys); in mctp_sk_init()
540 timer_setup(&msk->key_expiry, mctp_sk_expire_keys, 0); in mctp_sk_init()
562 struct mctp_sock *msk = container_of(sk, struct mctp_sock, sk); in mctp_sk_unhash() local
575 hlist_for_each_entry_safe(key, tmp, &msk->keys, sklist) { in mctp_sk_unhash()
586 del_timer_sync(&msk->key_expiry); in mctp_sk_unhash()