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()
676 static inline u64 atmeth_va(struct rxe_pkt_info *pkt) in atmeth_va() argument
678 return __atmeth_va(pkt->hdr + in atmeth_va()
679 rxe_opcode[pkt->opcode].offset[RXE_ATMETH]); in atmeth_va()
682 static inline void atmeth_set_va(struct rxe_pkt_info *pkt, u64 va) in atmeth_set_va() argument
684 __atmeth_set_va(pkt->hdr + in atmeth_set_va()
685 rxe_opcode[pkt->opcode].offset[RXE_ATMETH], va); in atmeth_set_va()
688 static inline u32 atmeth_rkey(struct rxe_pkt_info *pkt) in atmeth_rkey() argument
690 return __atmeth_rkey(pkt->hdr + in atmeth_rkey()
691 rxe_opcode[pkt->opcode].offset[RXE_ATMETH]); in atmeth_rkey()
694 static inline void atmeth_set_rkey(struct rxe_pkt_info *pkt, u32 rkey) in atmeth_set_rkey() argument
696 __atmeth_set_rkey(pkt->hdr + in atmeth_set_rkey()
697 rxe_opcode[pkt->opcode].offset[RXE_ATMETH], rkey); in atmeth_set_rkey()
700 static inline u64 atmeth_swap_add(struct rxe_pkt_info *pkt) in atmeth_swap_add() argument
702 return __atmeth_swap_add(pkt->hdr + in atmeth_swap_add()
703 rxe_opcode[pkt->opcode].offset[RXE_ATMETH]); in atmeth_swap_add()
706 static inline void atmeth_set_swap_add(struct rxe_pkt_info *pkt, u64 swap_add) in atmeth_set_swap_add() argument
708 __atmeth_set_swap_add(pkt->hdr + in atmeth_set_swap_add()
709 rxe_opcode[pkt->opcode].offset[RXE_ATMETH], swap_add); in atmeth_set_swap_add()
712 static inline u64 atmeth_comp(struct rxe_pkt_info *pkt) in atmeth_comp() argument
714 return __atmeth_comp(pkt->hdr + in atmeth_comp()
715 rxe_opcode[pkt->opcode].offset[RXE_ATMETH]); in atmeth_comp()
718 static inline void atmeth_set_comp(struct rxe_pkt_info *pkt, u64 comp) in atmeth_set_comp() argument
720 __atmeth_set_comp(pkt->hdr + in atmeth_set_comp()
721 rxe_opcode[pkt->opcode].offset[RXE_ATMETH], comp); in atmeth_set_comp()
780 static inline u8 aeth_syn(struct rxe_pkt_info *pkt) in aeth_syn() argument
782 return __aeth_syn(pkt->hdr + in aeth_syn()
783 rxe_opcode[pkt->opcode].offset[RXE_AETH]); in aeth_syn()
786 static inline void aeth_set_syn(struct rxe_pkt_info *pkt, u8 syn) in aeth_set_syn() argument
788 __aeth_set_syn(pkt->hdr + in aeth_set_syn()
789 rxe_opcode[pkt->opcode].offset[RXE_AETH], syn); in aeth_set_syn()
792 static inline u32 aeth_msn(struct rxe_pkt_info *pkt) in aeth_msn() argument
794 return __aeth_msn(pkt->hdr + in aeth_msn()
795 rxe_opcode[pkt->opcode].offset[RXE_AETH]); in aeth_msn()
798 static inline void aeth_set_msn(struct rxe_pkt_info *pkt, u32 msn) in aeth_set_msn() argument
800 __aeth_set_msn(pkt->hdr + in aeth_set_msn()
801 rxe_opcode[pkt->opcode].offset[RXE_AETH], msn); in aeth_set_msn()
825 static inline u64 atmack_orig(struct rxe_pkt_info *pkt) in atmack_orig() argument
827 return __atmack_orig(pkt->hdr + in atmack_orig()
828 rxe_opcode[pkt->opcode].offset[RXE_ATMACK]); in atmack_orig()
831 static inline void atmack_set_orig(struct rxe_pkt_info *pkt, u64 orig) in atmack_set_orig() argument
833 __atmack_set_orig(pkt->hdr + in atmack_set_orig()
834 rxe_opcode[pkt->opcode].offset[RXE_ATMACK], orig); in atmack_set_orig()
858 static inline __be32 immdt_imm(struct rxe_pkt_info *pkt) in immdt_imm() argument
860 return __immdt_imm(pkt->hdr + in immdt_imm()
861 rxe_opcode[pkt->opcode].offset[RXE_IMMDT]); in immdt_imm()
864 static inline void immdt_set_imm(struct rxe_pkt_info *pkt, __be32 imm) in immdt_set_imm() argument
866 __immdt_set_imm(pkt->hdr + in immdt_set_imm()
867 rxe_opcode[pkt->opcode].offset[RXE_IMMDT], imm); in immdt_set_imm()
891 static inline u32 ieth_rkey(struct rxe_pkt_info *pkt) in ieth_rkey() argument
893 return __ieth_rkey(pkt->hdr + in ieth_rkey()
894 rxe_opcode[pkt->opcode].offset[RXE_IETH]); in ieth_rkey()
897 static inline void ieth_set_rkey(struct rxe_pkt_info *pkt, u32 rkey) in ieth_set_rkey() argument
899 __ieth_set_rkey(pkt->hdr + in ieth_set_rkey()
900 rxe_opcode[pkt->opcode].offset[RXE_IETH], rkey); in ieth_set_rkey()
915 static inline size_t header_size(struct rxe_pkt_info *pkt) in header_size() argument
917 return rxe_opcode[pkt->opcode].length; in header_size()
920 static inline void *payload_addr(struct rxe_pkt_info *pkt) in payload_addr() argument
922 return pkt->hdr + rxe_opcode[pkt->opcode].offset[RXE_PAYLOAD]; in payload_addr()
925 static inline size_t payload_size(struct rxe_pkt_info *pkt) in payload_size() argument
927 return pkt->paylen - rxe_opcode[pkt->opcode].offset[RXE_PAYLOAD] in payload_size()
928 - bth_pad(pkt) - RXE_ICRC_SIZE; in payload_size()