pgn 189 include/uapi/linux/can.h __u32 pgn; pgn 91 include/uapi/linux/can/j1939.h pgn_t pgn; pgn 42 net/can/j1939/address-claim.c if (skb->len < 3 || skcb->addr.pgn != J1939_PGN_REQUEST) pgn 86 net/can/j1939/address-claim.c if (skcb->addr.pgn == J1939_PGN_ADDRESS_CLAIMED) { pgn 213 net/can/j1939/address-claim.c if (skcb->addr.pgn == J1939_PGN_ADDRESS_CLAIMED) { pgn 113 net/can/j1939/j1939-priv.h static inline bool j1939_pgn_is_pdu1(pgn_t pgn) pgn 116 net/can/j1939/j1939-priv.h return (pgn & 0xff00) < 0xf000; pgn 142 net/can/j1939/j1939-priv.h pgn_t pgn; pgn 75 net/can/j1939/main.c skcb->addr.pgn = (cf->can_id >> 8) & J1939_PGN_MAX; pgn 78 net/can/j1939/main.c if (j1939_pgn_is_pdu1(skcb->addr.pgn)) { pgn 80 net/can/j1939/main.c skcb->addr.da = skcb->addr.pgn; pgn 82 net/can/j1939/main.c skcb->addr.pgn &= 0x3ff00; pgn 311 net/can/j1939/main.c if (j1939_pgn_is_pdu1(skcb->addr.pgn)) pgn 312 net/can/j1939/main.c skcb->addr.pgn &= J1939_PGN_PDU1_MAX; pgn 314 net/can/j1939/main.c skcb->addr.pgn &= J1939_PGN_MAX; pgn 332 net/can/j1939/main.c (skcb->addr.pgn << 8) | pgn 334 net/can/j1939/main.c if (j1939_pgn_is_pdu1(skcb->addr.pgn)) pgn 40 net/can/j1939/socket.c static inline bool j1939_pgn_is_valid(pgn_t pgn) pgn 42 net/can/j1939/socket.c return pgn <= J1939_PGN_MAX; pgn 46 net/can/j1939/socket.c static inline bool j1939_pgn_is_clean_pdu(pgn_t pgn) pgn 48 net/can/j1939/socket.c if (j1939_pgn_is_pdu1(pgn)) pgn 49 net/can/j1939/socket.c return !(pgn & 0xff); pgn 251 net/can/j1939/socket.c jsk->pgn_rx_filter != skcb->addr.pgn) pgn 269 net/can/j1939/socket.c if ((skcb->addr.pgn & f->pgn_mask) != f->pgn) pgn 395 net/can/j1939/socket.c jsk->addr.pgn = J1939_NO_PGN; pgn 415 net/can/j1939/socket.c if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn) && pgn 416 net/can/j1939/socket.c !j1939_pgn_is_clean_pdu(addr->can_addr.j1939.pgn)) pgn 486 net/can/j1939/socket.c if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn)) pgn 487 net/can/j1939/socket.c jsk->pgn_rx_filter = addr->can_addr.j1939.pgn; pgn 542 net/can/j1939/socket.c if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn)) pgn 543 net/can/j1939/socket.c jsk->addr.pgn = addr->can_addr.j1939.pgn; pgn 558 net/can/j1939/socket.c addr->can_addr.j1939.pgn = jsk->addr.pgn; pgn 679 net/can/j1939/socket.c f->pgn &= f->pgn_mask; pgn 823 net/can/j1939/socket.c paddr->can_addr.j1939.pgn = skcb->addr.pgn; pgn 876 net/can/j1939/socket.c if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn)) pgn 877 net/can/j1939/socket.c skcb->addr.pgn = addr->can_addr.j1939.pgn; pgn 1138 net/can/j1939/socket.c if (j1939_pgn_is_valid(addr->can_addr.j1939.pgn) && pgn 1139 net/can/j1939/socket.c !j1939_pgn_is_clean_pdu(addr->can_addr.j1939.pgn)) { pgn 416 net/can/j1939/transport.c pgn_t pgn; pgn 418 net/can/j1939/transport.c pgn = (dat[7] << 16) | (dat[6] << 8) | (dat[5] << 0); pgn 419 net/can/j1939/transport.c if (j1939_pgn_is_pdu1(pgn)) pgn 420 net/can/j1939/transport.c pgn &= 0xffff00; pgn 421 net/can/j1939/transport.c return pgn; pgn 586 net/can/j1939/transport.c skcb->addr.pgn = J1939_ETP_PGN_CTL; pgn 588 net/can/j1939/transport.c skcb->addr.pgn = J1939_TP_PGN_CTL; pgn 591 net/can/j1939/transport.c skcb->addr.pgn = J1939_ETP_PGN_DAT; pgn 593 net/can/j1939/transport.c skcb->addr.pgn = J1939_TP_PGN_DAT; pgn 620 net/can/j1939/transport.c bool swap_src_dst, pgn_t pgn, const u8 *dat) pgn 634 net/can/j1939/transport.c skdat[5] = (pgn >> 0); pgn 635 net/can/j1939/transport.c skdat[6] = (pgn >> 8); pgn 636 net/can/j1939/transport.c skdat[7] = (pgn >> 16); pgn 648 net/can/j1939/transport.c session->skcb.addr.pgn, dat); pgn 655 net/can/j1939/transport.c pgn_t pgn) pgn 665 net/can/j1939/transport.c return j1939_xtp_do_tx_ctl(priv, re_skcb, swap_src_dst, pgn, dat); pgn 1063 net/can/j1939/transport.c err, session->skcb.addr.pgn); pgn 1203 net/can/j1939/transport.c pgn_t pgn = j1939_xtp_ctl_to_pgn(skb->data); pgn 1208 net/can/j1939/transport.c if (session->skcb.addr.pgn == pgn) pgn 1245 net/can/j1939/transport.c __func__, session, cmd, pgn, session->skcb.addr.pgn); pgn 1247 net/can/j1939/transport.c j1939_xtp_tx_abort(priv, skcb, true, abort, pgn); pgn 1519 net/can/j1939/transport.c pgn_t pgn; pgn 1525 net/can/j1939/transport.c pgn = j1939_xtp_ctl_to_pgn(dat); pgn 1526 net/can/j1939/transport.c skcb.addr.pgn = pgn; pgn 1548 net/can/j1939/transport.c j1939_xtp_tx_abort(priv, &skcb, true, abort, pgn); pgn 1555 net/can/j1939/transport.c J1939_XTP_ABORT_RESOURCE, pgn); pgn 1842 net/can/j1939/transport.c if (skcb->addr.pgn == J1939_TP_PGN_DAT || pgn 1843 net/can/j1939/transport.c skcb->addr.pgn == J1939_TP_PGN_CTL || pgn 1844 net/can/j1939/transport.c skcb->addr.pgn == J1939_ETP_PGN_DAT || pgn 1845 net/can/j1939/transport.c skcb->addr.pgn == J1939_ETP_PGN_CTL) pgn 1990 net/can/j1939/transport.c switch (skcb->addr.pgn) {