Lines Matching refs:j1939

23 #define J1939_MIN_NAMELEN CAN_REQUIRED_SIZE(struct sockaddr_can, can_addr.j1939)
423 if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn) && in j1939_sk_sanity_check()
424 !j1939_pgn_is_clean_pdu(addr->can_addr.j1939.pgn)) in j1939_sk_sanity_check()
502 if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn)) in j1939_sk_bind()
503 jsk->pgn_rx_filter = addr->can_addr.j1939.pgn; in j1939_sk_bind()
504 jsk->addr.src_name = addr->can_addr.j1939.name; in j1939_sk_bind()
505 jsk->addr.sa = addr->can_addr.j1939.addr; in j1939_sk_bind()
547 if (!addr->can_addr.j1939.name && in j1939_sk_connect()
548 addr->can_addr.j1939.addr == J1939_NO_ADDR && in j1939_sk_connect()
555 jsk->addr.dst_name = addr->can_addr.j1939.name; in j1939_sk_connect()
556 jsk->addr.da = addr->can_addr.j1939.addr; in j1939_sk_connect()
558 if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn)) in j1939_sk_connect()
559 jsk->addr.pgn = addr->can_addr.j1939.pgn; in j1939_sk_connect()
579 addr->can_addr.j1939.pgn = jsk->addr.pgn; in j1939_sk_sock2sockaddr_can()
581 addr->can_addr.j1939.name = jsk->addr.dst_name; in j1939_sk_sock2sockaddr_can()
582 addr->can_addr.j1939.addr = jsk->addr.da; in j1939_sk_sock2sockaddr_can()
584 addr->can_addr.j1939.name = jsk->addr.src_name; in j1939_sk_sock2sockaddr_can()
585 addr->can_addr.j1939.addr = jsk->addr.sa; in j1939_sk_sock2sockaddr_can()
842 paddr->can_addr.j1939.name = skcb->addr.src_name; in j1939_sk_recvmsg()
843 paddr->can_addr.j1939.addr = skcb->addr.sa; in j1939_sk_recvmsg()
844 paddr->can_addr.j1939.pgn = skcb->addr.pgn; in j1939_sk_recvmsg()
892 if (addr->can_addr.j1939.name || in j1939_sk_alloc_skb()
893 addr->can_addr.j1939.addr != J1939_NO_ADDR) { in j1939_sk_alloc_skb()
894 skcb->addr.dst_name = addr->can_addr.j1939.name; in j1939_sk_alloc_skb()
895 skcb->addr.da = addr->can_addr.j1939.addr; in j1939_sk_alloc_skb()
897 if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn)) in j1939_sk_alloc_skb()
898 skcb->addr.pgn = addr->can_addr.j1939.pgn; in j1939_sk_alloc_skb()
1234 if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn) && in j1939_sk_sendmsg()
1235 !j1939_pgn_is_clean_pdu(addr->can_addr.j1939.pgn)) { in j1939_sk_sendmsg()
1240 if (!addr->can_addr.j1939.name && in j1939_sk_sendmsg()
1241 addr->can_addr.j1939.addr == J1939_NO_ADDR && in j1939_sk_sendmsg()