Lines Matching refs:pgn
41 static inline bool j1939_pgn_is_valid(pgn_t pgn) in j1939_pgn_is_valid() argument
43 return pgn <= J1939_PGN_MAX; in j1939_pgn_is_valid()
47 static inline bool j1939_pgn_is_clean_pdu(pgn_t pgn) in j1939_pgn_is_clean_pdu() argument
49 if (j1939_pgn_is_pdu1(pgn)) in j1939_pgn_is_clean_pdu()
50 return !(pgn & 0xff); in j1939_pgn_is_clean_pdu()
255 jsk->pgn_rx_filter != skcb->addr.pgn) in j1939_sk_match_dst()
278 if ((skcb->addr.pgn & f->pgn_mask) != f->pgn) in j1939_sk_match_filter()
410 jsk->addr.pgn = J1939_NO_PGN; in j1939_sk_init()
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()
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()
712 f->pgn &= f->pgn_mask; in j1939_sk_setsockopt()
858 paddr->can_addr.j1939.pgn = skcb->addr.pgn; in j1939_sk_recvmsg()
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()
1178 if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn) && in j1939_sk_sendmsg()
1179 !j1939_pgn_is_clean_pdu(addr->can_addr.j1939.pgn)) { in j1939_sk_sendmsg()