Lines Matching refs:j1939
23 #define J1939_MIN_NAMELEN CAN_REQUIRED_SIZE(struct sockaddr_can, can_addr.j1939)
435 if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn) && in j1939_sk_sanity_check()
436 !j1939_pgn_is_clean_pdu(addr->can_addr.j1939.pgn)) in j1939_sk_sanity_check()
514 if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn)) in j1939_sk_bind()
515 jsk->pgn_rx_filter = addr->can_addr.j1939.pgn; in j1939_sk_bind()
516 jsk->addr.src_name = addr->can_addr.j1939.name; in j1939_sk_bind()
517 jsk->addr.sa = addr->can_addr.j1939.addr; in j1939_sk_bind()
559 if (!addr->can_addr.j1939.name && in j1939_sk_connect()
560 addr->can_addr.j1939.addr == J1939_NO_ADDR && in j1939_sk_connect()
567 jsk->addr.dst_name = addr->can_addr.j1939.name; in j1939_sk_connect()
568 jsk->addr.da = addr->can_addr.j1939.addr; in j1939_sk_connect()
570 if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn)) in j1939_sk_connect()
571 jsk->addr.pgn = addr->can_addr.j1939.pgn; in j1939_sk_connect()
591 addr->can_addr.j1939.pgn = jsk->addr.pgn; in j1939_sk_sock2sockaddr_can()
593 addr->can_addr.j1939.name = jsk->addr.dst_name; in j1939_sk_sock2sockaddr_can()
594 addr->can_addr.j1939.addr = jsk->addr.da; in j1939_sk_sock2sockaddr_can()
596 addr->can_addr.j1939.name = jsk->addr.src_name; in j1939_sk_sock2sockaddr_can()
597 addr->can_addr.j1939.addr = jsk->addr.sa; in j1939_sk_sock2sockaddr_can()
856 paddr->can_addr.j1939.name = skcb->addr.src_name; in j1939_sk_recvmsg()
857 paddr->can_addr.j1939.addr = skcb->addr.sa; in j1939_sk_recvmsg()
858 paddr->can_addr.j1939.pgn = skcb->addr.pgn; in j1939_sk_recvmsg()
906 if (addr->can_addr.j1939.name || in j1939_sk_alloc_skb()
907 addr->can_addr.j1939.addr != J1939_NO_ADDR) { in j1939_sk_alloc_skb()
908 skcb->addr.dst_name = addr->can_addr.j1939.name; in j1939_sk_alloc_skb()
909 skcb->addr.da = addr->can_addr.j1939.addr; in j1939_sk_alloc_skb()
911 if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn)) in j1939_sk_alloc_skb()
912 skcb->addr.pgn = addr->can_addr.j1939.pgn; in j1939_sk_alloc_skb()
1255 if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn) && in j1939_sk_sendmsg()
1256 !j1939_pgn_is_clean_pdu(addr->can_addr.j1939.pgn)) { in j1939_sk_sendmsg()
1261 if (!addr->can_addr.j1939.name && in j1939_sk_sendmsg()
1262 addr->can_addr.j1939.addr == J1939_NO_ADDR && in j1939_sk_sendmsg()