Lines Matching refs:pkt

34 static inline struct sk_buff *PKT_TO_SKB(struct rxe_pkt_info *pkt)  in PKT_TO_SKB()  argument
36 return container_of((void *)pkt, struct sk_buff, cb); in PKT_TO_SKB()
280 static inline u8 bth_opcode(struct rxe_pkt_info *pkt) in bth_opcode() argument
282 return __bth_opcode(pkt->hdr); in bth_opcode()
285 static inline void bth_set_opcode(struct rxe_pkt_info *pkt, u8 opcode) in bth_set_opcode() argument
287 __bth_set_opcode(pkt->hdr, opcode); in bth_set_opcode()
290 static inline u8 bth_se(struct rxe_pkt_info *pkt) in bth_se() argument
292 return __bth_se(pkt->hdr); in bth_se()
295 static inline void bth_set_se(struct rxe_pkt_info *pkt, int se) in bth_set_se() argument
297 __bth_set_se(pkt->hdr, se); in bth_set_se()
300 static inline u8 bth_mig(struct rxe_pkt_info *pkt) in bth_mig() argument
302 return __bth_mig(pkt->hdr); in bth_mig()
305 static inline void bth_set_mig(struct rxe_pkt_info *pkt, u8 mig) in bth_set_mig() argument
307 __bth_set_mig(pkt->hdr, mig); in bth_set_mig()
310 static inline u8 bth_pad(struct rxe_pkt_info *pkt) in bth_pad() argument
312 return __bth_pad(pkt->hdr); in bth_pad()
315 static inline void bth_set_pad(struct rxe_pkt_info *pkt, u8 pad) in bth_set_pad() argument
317 __bth_set_pad(pkt->hdr, pad); in bth_set_pad()
320 static inline u8 bth_tver(struct rxe_pkt_info *pkt) in bth_tver() argument
322 return __bth_tver(pkt->hdr); in bth_tver()
325 static inline void bth_set_tver(struct rxe_pkt_info *pkt, u8 tver) in bth_set_tver() argument
327 __bth_set_tver(pkt->hdr, tver); in bth_set_tver()
330 static inline u16 bth_pkey(struct rxe_pkt_info *pkt) in bth_pkey() argument
332 return __bth_pkey(pkt->hdr); in bth_pkey()
335 static inline void bth_set_pkey(struct rxe_pkt_info *pkt, u16 pkey) in bth_set_pkey() argument
337 __bth_set_pkey(pkt->hdr, pkey); in bth_set_pkey()
340 static inline u32 bth_qpn(struct rxe_pkt_info *pkt) in bth_qpn() argument
342 return __bth_qpn(pkt->hdr); in bth_qpn()
345 static inline void bth_set_qpn(struct rxe_pkt_info *pkt, u32 qpn) in bth_set_qpn() argument
347 __bth_set_qpn(pkt->hdr, qpn); in bth_set_qpn()
350 static inline int bth_fecn(struct rxe_pkt_info *pkt) in bth_fecn() argument
352 return __bth_fecn(pkt->hdr); in bth_fecn()
355 static inline void bth_set_fecn(struct rxe_pkt_info *pkt, int fecn) in bth_set_fecn() argument
357 __bth_set_fecn(pkt->hdr, fecn); in bth_set_fecn()
360 static inline int bth_becn(struct rxe_pkt_info *pkt) in bth_becn() argument
362 return __bth_becn(pkt->hdr); in bth_becn()
365 static inline void bth_set_becn(struct rxe_pkt_info *pkt, int becn) in bth_set_becn() argument
367 __bth_set_becn(pkt->hdr, becn); in bth_set_becn()
370 static inline u8 bth_resv6a(struct rxe_pkt_info *pkt) in bth_resv6a() argument
372 return __bth_resv6a(pkt->hdr); in bth_resv6a()
375 static inline void bth_set_resv6a(struct rxe_pkt_info *pkt) in bth_set_resv6a() argument
377 __bth_set_resv6a(pkt->hdr); in bth_set_resv6a()
380 static inline int bth_ack(struct rxe_pkt_info *pkt) in bth_ack() argument
382 return __bth_ack(pkt->hdr); in bth_ack()
385 static inline void bth_set_ack(struct rxe_pkt_info *pkt, int ack) in bth_set_ack() argument
387 __bth_set_ack(pkt->hdr, ack); in bth_set_ack()
390 static inline void bth_set_resv7(struct rxe_pkt_info *pkt) in bth_set_resv7() argument
392 __bth_set_resv7(pkt->hdr); in bth_set_resv7()
395 static inline u32 bth_psn(struct rxe_pkt_info *pkt) in bth_psn() argument
397 return __bth_psn(pkt->hdr); in bth_psn()
400 static inline void bth_set_psn(struct rxe_pkt_info *pkt, u32 psn) in bth_set_psn() argument
402 __bth_set_psn(pkt->hdr, psn); in bth_set_psn()
405 static inline void bth_init(struct rxe_pkt_info *pkt, u8 opcode, int se, in bth_init() argument
409 struct rxe_bth *bth = (struct rxe_bth *)(pkt->hdr); in bth_init()
448 static inline u8 rdeth_een(struct rxe_pkt_info *pkt) in rdeth_een() argument
450 return __rdeth_een(pkt->hdr + in rdeth_een()
451 rxe_opcode[pkt->opcode].offset[RXE_RDETH]); in rdeth_een()
454 static inline void rdeth_set_een(struct rxe_pkt_info *pkt, u32 een) in rdeth_set_een() argument
456 __rdeth_set_een(pkt->hdr + in rdeth_set_een()
457 rxe_opcode[pkt->opcode].offset[RXE_RDETH], een); in rdeth_set_een()
499 static inline u32 deth_qkey(struct rxe_pkt_info *pkt) in deth_qkey() argument
501 return __deth_qkey(pkt->hdr + in deth_qkey()
502 rxe_opcode[pkt->opcode].offset[RXE_DETH]); in deth_qkey()
505 static inline void deth_set_qkey(struct rxe_pkt_info *pkt, u32 qkey) in deth_set_qkey() argument
507 __deth_set_qkey(pkt->hdr + in deth_set_qkey()
508 rxe_opcode[pkt->opcode].offset[RXE_DETH], qkey); in deth_set_qkey()
511 static inline u32 deth_sqp(struct rxe_pkt_info *pkt) in deth_sqp() argument
513 return __deth_sqp(pkt->hdr + in deth_sqp()
514 rxe_opcode[pkt->opcode].offset[RXE_DETH]); in deth_sqp()
517 static inline void deth_set_sqp(struct rxe_pkt_info *pkt, u32 sqp) in deth_set_sqp() argument
519 __deth_set_sqp(pkt->hdr + in deth_set_sqp()
520 rxe_opcode[pkt->opcode].offset[RXE_DETH], sqp); in deth_set_sqp()
574 static inline u64 reth_va(struct rxe_pkt_info *pkt) in reth_va() argument
576 return __reth_va(pkt->hdr + in reth_va()
577 rxe_opcode[pkt->opcode].offset[RXE_RETH]); in reth_va()
580 static inline void reth_set_va(struct rxe_pkt_info *pkt, u64 va) in reth_set_va() argument
582 __reth_set_va(pkt->hdr + in reth_set_va()
583 rxe_opcode[pkt->opcode].offset[RXE_RETH], va); in reth_set_va()
586 static inline u32 reth_rkey(struct rxe_pkt_info *pkt) in reth_rkey() argument
588 return __reth_rkey(pkt->hdr + in reth_rkey()
589 rxe_opcode[pkt->opcode].offset[RXE_RETH]); in reth_rkey()
592 static inline void reth_set_rkey(struct rxe_pkt_info *pkt, u32 rkey) in reth_set_rkey() argument
594 __reth_set_rkey(pkt->hdr + in reth_set_rkey()
595 rxe_opcode[pkt->opcode].offset[RXE_RETH], rkey); in reth_set_rkey()
598 static inline u32 reth_len(struct rxe_pkt_info *pkt) in reth_len() argument
600 return __reth_len(pkt->hdr + in reth_len()
601 rxe_opcode[pkt->opcode].offset[RXE_RETH]); in reth_len()
604 static inline void reth_set_len(struct rxe_pkt_info *pkt, u32 len) in reth_set_len() argument
606 __reth_set_len(pkt->hdr + in reth_set_len()
607 rxe_opcode[pkt->opcode].offset[RXE_RETH], len); in reth_set_len()
636 static inline u32 feth_plt(struct rxe_pkt_info *pkt) in feth_plt() argument
638 return __feth_plt(pkt->hdr + rxe_opcode[pkt->opcode].offset[RXE_FETH]); in feth_plt()
641 static inline u32 feth_sel(struct rxe_pkt_info *pkt) in feth_sel() argument
643 return __feth_sel(pkt->hdr + rxe_opcode[pkt->opcode].offset[RXE_FETH]); in feth_sel()
646 static inline void feth_init(struct rxe_pkt_info *pkt, u8 type, u8 level) in feth_init() argument
649 (pkt->hdr + rxe_opcode[pkt->opcode].offset[RXE_FETH]); in feth_init()
722 static inline u64 atmeth_va(struct rxe_pkt_info *pkt) in atmeth_va() argument
724 return __atmeth_va(pkt->hdr + in atmeth_va()
725 rxe_opcode[pkt->opcode].offset[RXE_ATMETH]); in atmeth_va()
728 static inline void atmeth_set_va(struct rxe_pkt_info *pkt, u64 va) in atmeth_set_va() argument
730 __atmeth_set_va(pkt->hdr + in atmeth_set_va()
731 rxe_opcode[pkt->opcode].offset[RXE_ATMETH], va); in atmeth_set_va()
734 static inline u32 atmeth_rkey(struct rxe_pkt_info *pkt) in atmeth_rkey() argument
736 return __atmeth_rkey(pkt->hdr + in atmeth_rkey()
737 rxe_opcode[pkt->opcode].offset[RXE_ATMETH]); in atmeth_rkey()
740 static inline void atmeth_set_rkey(struct rxe_pkt_info *pkt, u32 rkey) in atmeth_set_rkey() argument
742 __atmeth_set_rkey(pkt->hdr + in atmeth_set_rkey()
743 rxe_opcode[pkt->opcode].offset[RXE_ATMETH], rkey); in atmeth_set_rkey()
746 static inline u64 atmeth_swap_add(struct rxe_pkt_info *pkt) in atmeth_swap_add() argument
748 return __atmeth_swap_add(pkt->hdr + in atmeth_swap_add()
749 rxe_opcode[pkt->opcode].offset[RXE_ATMETH]); in atmeth_swap_add()
752 static inline void atmeth_set_swap_add(struct rxe_pkt_info *pkt, u64 swap_add) in atmeth_set_swap_add() argument
754 __atmeth_set_swap_add(pkt->hdr + in atmeth_set_swap_add()
755 rxe_opcode[pkt->opcode].offset[RXE_ATMETH], swap_add); in atmeth_set_swap_add()
758 static inline u64 atmeth_comp(struct rxe_pkt_info *pkt) in atmeth_comp() argument
760 return __atmeth_comp(pkt->hdr + in atmeth_comp()
761 rxe_opcode[pkt->opcode].offset[RXE_ATMETH]); in atmeth_comp()
764 static inline void atmeth_set_comp(struct rxe_pkt_info *pkt, u64 comp) in atmeth_set_comp() argument
766 __atmeth_set_comp(pkt->hdr + in atmeth_set_comp()
767 rxe_opcode[pkt->opcode].offset[RXE_ATMETH], comp); in atmeth_set_comp()
825 static inline u8 aeth_syn(struct rxe_pkt_info *pkt) in aeth_syn() argument
827 return __aeth_syn(pkt->hdr + in aeth_syn()
828 rxe_opcode[pkt->opcode].offset[RXE_AETH]); in aeth_syn()
831 static inline void aeth_set_syn(struct rxe_pkt_info *pkt, u8 syn) in aeth_set_syn() argument
833 __aeth_set_syn(pkt->hdr + in aeth_set_syn()
834 rxe_opcode[pkt->opcode].offset[RXE_AETH], syn); in aeth_set_syn()
837 static inline u32 aeth_msn(struct rxe_pkt_info *pkt) in aeth_msn() argument
839 return __aeth_msn(pkt->hdr + in aeth_msn()
840 rxe_opcode[pkt->opcode].offset[RXE_AETH]); in aeth_msn()
843 static inline void aeth_set_msn(struct rxe_pkt_info *pkt, u32 msn) in aeth_set_msn() argument
845 __aeth_set_msn(pkt->hdr + in aeth_set_msn()
846 rxe_opcode[pkt->opcode].offset[RXE_AETH], msn); in aeth_set_msn()
870 static inline u64 atmack_orig(struct rxe_pkt_info *pkt) in atmack_orig() argument
872 return __atmack_orig(pkt->hdr + in atmack_orig()
873 rxe_opcode[pkt->opcode].offset[RXE_ATMACK]); in atmack_orig()
876 static inline void atmack_set_orig(struct rxe_pkt_info *pkt, u64 orig) in atmack_set_orig() argument
878 __atmack_set_orig(pkt->hdr + in atmack_set_orig()
879 rxe_opcode[pkt->opcode].offset[RXE_ATMACK], orig); in atmack_set_orig()
903 static inline __be32 immdt_imm(struct rxe_pkt_info *pkt) in immdt_imm() argument
905 return __immdt_imm(pkt->hdr + in immdt_imm()
906 rxe_opcode[pkt->opcode].offset[RXE_IMMDT]); in immdt_imm()
909 static inline void immdt_set_imm(struct rxe_pkt_info *pkt, __be32 imm) in immdt_set_imm() argument
911 __immdt_set_imm(pkt->hdr + in immdt_set_imm()
912 rxe_opcode[pkt->opcode].offset[RXE_IMMDT], imm); in immdt_set_imm()
936 static inline u32 ieth_rkey(struct rxe_pkt_info *pkt) in ieth_rkey() argument
938 return __ieth_rkey(pkt->hdr + in ieth_rkey()
939 rxe_opcode[pkt->opcode].offset[RXE_IETH]); in ieth_rkey()
942 static inline void ieth_set_rkey(struct rxe_pkt_info *pkt, u32 rkey) in ieth_set_rkey() argument
944 __ieth_set_rkey(pkt->hdr + in ieth_set_rkey()
945 rxe_opcode[pkt->opcode].offset[RXE_IETH], rkey); in ieth_set_rkey()
961 static inline size_t header_size(struct rxe_pkt_info *pkt) in header_size() argument
963 return rxe_opcode[pkt->opcode].length; in header_size()
966 static inline void *payload_addr(struct rxe_pkt_info *pkt) in payload_addr() argument
968 return pkt->hdr + rxe_opcode[pkt->opcode].offset[RXE_PAYLOAD]; in payload_addr()
971 static inline size_t payload_size(struct rxe_pkt_info *pkt) in payload_size() argument
973 return pkt->paylen - rxe_opcode[pkt->opcode].offset[RXE_PAYLOAD] in payload_size()
974 - bth_pad(pkt) - RXE_ICRC_SIZE; in payload_size()