Lines Matching refs:can_addr
23 #define J1939_MIN_NAMELEN CAN_REQUIRED_SIZE(struct sockaddr_can, can_addr.j1939)
420 if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn) && in j1939_sk_sanity_check()
421 !j1939_pgn_is_clean_pdu(addr->can_addr.j1939.pgn)) in j1939_sk_sanity_check()
499 if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn)) in j1939_sk_bind()
500 jsk->pgn_rx_filter = addr->can_addr.j1939.pgn; in j1939_sk_bind()
501 jsk->addr.src_name = addr->can_addr.j1939.name; in j1939_sk_bind()
502 jsk->addr.sa = addr->can_addr.j1939.addr; in j1939_sk_bind()
544 if (!addr->can_addr.j1939.name && in j1939_sk_connect()
545 addr->can_addr.j1939.addr == J1939_NO_ADDR && in j1939_sk_connect()
552 jsk->addr.dst_name = addr->can_addr.j1939.name; in j1939_sk_connect()
553 jsk->addr.da = addr->can_addr.j1939.addr; in j1939_sk_connect()
555 if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn)) in j1939_sk_connect()
556 jsk->addr.pgn = addr->can_addr.j1939.pgn; in j1939_sk_connect()
576 addr->can_addr.j1939.pgn = jsk->addr.pgn; in j1939_sk_sock2sockaddr_can()
578 addr->can_addr.j1939.name = jsk->addr.dst_name; in j1939_sk_sock2sockaddr_can()
579 addr->can_addr.j1939.addr = jsk->addr.da; in j1939_sk_sock2sockaddr_can()
581 addr->can_addr.j1939.name = jsk->addr.src_name; in j1939_sk_sock2sockaddr_can()
582 addr->can_addr.j1939.addr = jsk->addr.sa; in j1939_sk_sock2sockaddr_can()
839 paddr->can_addr.j1939.name = skcb->addr.src_name; in j1939_sk_recvmsg()
840 paddr->can_addr.j1939.addr = skcb->addr.sa; in j1939_sk_recvmsg()
841 paddr->can_addr.j1939.pgn = skcb->addr.pgn; in j1939_sk_recvmsg()
889 if (addr->can_addr.j1939.name || in j1939_sk_alloc_skb()
890 addr->can_addr.j1939.addr != J1939_NO_ADDR) { in j1939_sk_alloc_skb()
891 skcb->addr.dst_name = addr->can_addr.j1939.name; in j1939_sk_alloc_skb()
892 skcb->addr.da = addr->can_addr.j1939.addr; in j1939_sk_alloc_skb()
894 if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn)) in j1939_sk_alloc_skb()
895 skcb->addr.pgn = addr->can_addr.j1939.pgn; in j1939_sk_alloc_skb()
1231 if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn) && in j1939_sk_sendmsg()
1232 !j1939_pgn_is_clean_pdu(addr->can_addr.j1939.pgn)) { in j1939_sk_sendmsg()
1237 if (!addr->can_addr.j1939.name && in j1939_sk_sendmsg()
1238 addr->can_addr.j1939.addr == J1939_NO_ADDR && in j1939_sk_sendmsg()