Lines Matching refs:pkt

35 static inline struct sk_buff *PKT_TO_SKB(struct rxe_pkt_info *pkt)  in PKT_TO_SKB()  argument
37 return container_of((void *)pkt, struct sk_buff, cb); in PKT_TO_SKB()
281 static inline u8 bth_opcode(struct rxe_pkt_info *pkt) in bth_opcode() argument
283 return __bth_opcode(pkt->hdr + pkt->offset); in bth_opcode()
286 static inline void bth_set_opcode(struct rxe_pkt_info *pkt, u8 opcode) in bth_set_opcode() argument
288 __bth_set_opcode(pkt->hdr + pkt->offset, opcode); in bth_set_opcode()
291 static inline u8 bth_se(struct rxe_pkt_info *pkt) in bth_se() argument
293 return __bth_se(pkt->hdr + pkt->offset); in bth_se()
296 static inline void bth_set_se(struct rxe_pkt_info *pkt, int se) in bth_set_se() argument
298 __bth_set_se(pkt->hdr + pkt->offset, se); in bth_set_se()
301 static inline u8 bth_mig(struct rxe_pkt_info *pkt) in bth_mig() argument
303 return __bth_mig(pkt->hdr + pkt->offset); in bth_mig()
306 static inline void bth_set_mig(struct rxe_pkt_info *pkt, u8 mig) in bth_set_mig() argument
308 __bth_set_mig(pkt->hdr + pkt->offset, mig); in bth_set_mig()
311 static inline u8 bth_pad(struct rxe_pkt_info *pkt) in bth_pad() argument
313 return __bth_pad(pkt->hdr + pkt->offset); in bth_pad()
316 static inline void bth_set_pad(struct rxe_pkt_info *pkt, u8 pad) in bth_set_pad() argument
318 __bth_set_pad(pkt->hdr + pkt->offset, pad); in bth_set_pad()
321 static inline u8 bth_tver(struct rxe_pkt_info *pkt) in bth_tver() argument
323 return __bth_tver(pkt->hdr + pkt->offset); in bth_tver()
326 static inline void bth_set_tver(struct rxe_pkt_info *pkt, u8 tver) in bth_set_tver() argument
328 __bth_set_tver(pkt->hdr + pkt->offset, tver); in bth_set_tver()
331 static inline u16 bth_pkey(struct rxe_pkt_info *pkt) in bth_pkey() argument
333 return __bth_pkey(pkt->hdr + pkt->offset); in bth_pkey()
336 static inline void bth_set_pkey(struct rxe_pkt_info *pkt, u16 pkey) in bth_set_pkey() argument
338 __bth_set_pkey(pkt->hdr + pkt->offset, pkey); in bth_set_pkey()
341 static inline u32 bth_qpn(struct rxe_pkt_info *pkt) in bth_qpn() argument
343 return __bth_qpn(pkt->hdr + pkt->offset); in bth_qpn()
346 static inline void bth_set_qpn(struct rxe_pkt_info *pkt, u32 qpn) in bth_set_qpn() argument
348 __bth_set_qpn(pkt->hdr + pkt->offset, qpn); in bth_set_qpn()
351 static inline int bth_fecn(struct rxe_pkt_info *pkt) in bth_fecn() argument
353 return __bth_fecn(pkt->hdr + pkt->offset); in bth_fecn()
356 static inline void bth_set_fecn(struct rxe_pkt_info *pkt, int fecn) in bth_set_fecn() argument
358 __bth_set_fecn(pkt->hdr + pkt->offset, fecn); in bth_set_fecn()
361 static inline int bth_becn(struct rxe_pkt_info *pkt) in bth_becn() argument
363 return __bth_becn(pkt->hdr + pkt->offset); in bth_becn()
366 static inline void bth_set_becn(struct rxe_pkt_info *pkt, int becn) in bth_set_becn() argument
368 __bth_set_becn(pkt->hdr + pkt->offset, becn); in bth_set_becn()
371 static inline u8 bth_resv6a(struct rxe_pkt_info *pkt) in bth_resv6a() argument
373 return __bth_resv6a(pkt->hdr + pkt->offset); in bth_resv6a()
376 static inline void bth_set_resv6a(struct rxe_pkt_info *pkt) in bth_set_resv6a() argument
378 __bth_set_resv6a(pkt->hdr + pkt->offset); in bth_set_resv6a()
381 static inline int bth_ack(struct rxe_pkt_info *pkt) in bth_ack() argument
383 return __bth_ack(pkt->hdr + pkt->offset); in bth_ack()
386 static inline void bth_set_ack(struct rxe_pkt_info *pkt, int ack) in bth_set_ack() argument
388 __bth_set_ack(pkt->hdr + pkt->offset, ack); in bth_set_ack()
391 static inline void bth_set_resv7(struct rxe_pkt_info *pkt) in bth_set_resv7() argument
393 __bth_set_resv7(pkt->hdr + pkt->offset); in bth_set_resv7()
396 static inline u32 bth_psn(struct rxe_pkt_info *pkt) in bth_psn() argument
398 return __bth_psn(pkt->hdr + pkt->offset); in bth_psn()
401 static inline void bth_set_psn(struct rxe_pkt_info *pkt, u32 psn) in bth_set_psn() argument
403 __bth_set_psn(pkt->hdr + pkt->offset, psn); in bth_set_psn()
406 static inline void bth_init(struct rxe_pkt_info *pkt, u8 opcode, int se, in bth_init() argument
410 struct rxe_bth *bth = (struct rxe_bth *)(pkt->hdr + pkt->offset); in bth_init()
449 static inline u8 rdeth_een(struct rxe_pkt_info *pkt) in rdeth_een() argument
451 return __rdeth_een(pkt->hdr + pkt->offset in rdeth_een()
452 + rxe_opcode[pkt->opcode].offset[RXE_RDETH]); in rdeth_een()
455 static inline void rdeth_set_een(struct rxe_pkt_info *pkt, u32 een) in rdeth_set_een() argument
457 __rdeth_set_een(pkt->hdr + pkt->offset in rdeth_set_een()
458 + rxe_opcode[pkt->opcode].offset[RXE_RDETH], een); in rdeth_set_een()
500 static inline u32 deth_qkey(struct rxe_pkt_info *pkt) in deth_qkey() argument
502 return __deth_qkey(pkt->hdr + pkt->offset in deth_qkey()
503 + rxe_opcode[pkt->opcode].offset[RXE_DETH]); in deth_qkey()
506 static inline void deth_set_qkey(struct rxe_pkt_info *pkt, u32 qkey) in deth_set_qkey() argument
508 __deth_set_qkey(pkt->hdr + pkt->offset in deth_set_qkey()
509 + rxe_opcode[pkt->opcode].offset[RXE_DETH], qkey); in deth_set_qkey()
512 static inline u32 deth_sqp(struct rxe_pkt_info *pkt) in deth_sqp() argument
514 return __deth_sqp(pkt->hdr + pkt->offset in deth_sqp()
515 + rxe_opcode[pkt->opcode].offset[RXE_DETH]); in deth_sqp()
518 static inline void deth_set_sqp(struct rxe_pkt_info *pkt, u32 sqp) in deth_set_sqp() argument
520 __deth_set_sqp(pkt->hdr + pkt->offset in deth_set_sqp()
521 + rxe_opcode[pkt->opcode].offset[RXE_DETH], sqp); in deth_set_sqp()
575 static inline u64 reth_va(struct rxe_pkt_info *pkt) in reth_va() argument
577 return __reth_va(pkt->hdr + pkt->offset in reth_va()
578 + rxe_opcode[pkt->opcode].offset[RXE_RETH]); in reth_va()
581 static inline void reth_set_va(struct rxe_pkt_info *pkt, u64 va) in reth_set_va() argument
583 __reth_set_va(pkt->hdr + pkt->offset in reth_set_va()
584 + rxe_opcode[pkt->opcode].offset[RXE_RETH], va); in reth_set_va()
587 static inline u32 reth_rkey(struct rxe_pkt_info *pkt) in reth_rkey() argument
589 return __reth_rkey(pkt->hdr + pkt->offset in reth_rkey()
590 + rxe_opcode[pkt->opcode].offset[RXE_RETH]); in reth_rkey()
593 static inline void reth_set_rkey(struct rxe_pkt_info *pkt, u32 rkey) in reth_set_rkey() argument
595 __reth_set_rkey(pkt->hdr + pkt->offset in reth_set_rkey()
596 + rxe_opcode[pkt->opcode].offset[RXE_RETH], rkey); in reth_set_rkey()
599 static inline u32 reth_len(struct rxe_pkt_info *pkt) in reth_len() argument
601 return __reth_len(pkt->hdr + pkt->offset in reth_len()
602 + rxe_opcode[pkt->opcode].offset[RXE_RETH]); in reth_len()
605 static inline void reth_set_len(struct rxe_pkt_info *pkt, u32 len) in reth_set_len() argument
607 __reth_set_len(pkt->hdr + pkt->offset in reth_set_len()
608 + rxe_opcode[pkt->opcode].offset[RXE_RETH], len); in reth_set_len()
677 static inline u64 atmeth_va(struct rxe_pkt_info *pkt) in atmeth_va() argument
679 return __atmeth_va(pkt->hdr + pkt->offset in atmeth_va()
680 + rxe_opcode[pkt->opcode].offset[RXE_ATMETH]); in atmeth_va()
683 static inline void atmeth_set_va(struct rxe_pkt_info *pkt, u64 va) in atmeth_set_va() argument
685 __atmeth_set_va(pkt->hdr + pkt->offset in atmeth_set_va()
686 + rxe_opcode[pkt->opcode].offset[RXE_ATMETH], va); in atmeth_set_va()
689 static inline u32 atmeth_rkey(struct rxe_pkt_info *pkt) in atmeth_rkey() argument
691 return __atmeth_rkey(pkt->hdr + pkt->offset in atmeth_rkey()
692 + rxe_opcode[pkt->opcode].offset[RXE_ATMETH]); in atmeth_rkey()
695 static inline void atmeth_set_rkey(struct rxe_pkt_info *pkt, u32 rkey) in atmeth_set_rkey() argument
697 __atmeth_set_rkey(pkt->hdr + pkt->offset in atmeth_set_rkey()
698 + rxe_opcode[pkt->opcode].offset[RXE_ATMETH], rkey); in atmeth_set_rkey()
701 static inline u64 atmeth_swap_add(struct rxe_pkt_info *pkt) in atmeth_swap_add() argument
703 return __atmeth_swap_add(pkt->hdr + pkt->offset in atmeth_swap_add()
704 + rxe_opcode[pkt->opcode].offset[RXE_ATMETH]); in atmeth_swap_add()
707 static inline void atmeth_set_swap_add(struct rxe_pkt_info *pkt, u64 swap_add) in atmeth_set_swap_add() argument
709 __atmeth_set_swap_add(pkt->hdr + pkt->offset in atmeth_set_swap_add()
710 + rxe_opcode[pkt->opcode].offset[RXE_ATMETH], swap_add); in atmeth_set_swap_add()
713 static inline u64 atmeth_comp(struct rxe_pkt_info *pkt) in atmeth_comp() argument
715 return __atmeth_comp(pkt->hdr + pkt->offset in atmeth_comp()
716 + rxe_opcode[pkt->opcode].offset[RXE_ATMETH]); in atmeth_comp()
719 static inline void atmeth_set_comp(struct rxe_pkt_info *pkt, u64 comp) in atmeth_set_comp() argument
721 __atmeth_set_comp(pkt->hdr + pkt->offset in atmeth_set_comp()
722 + rxe_opcode[pkt->opcode].offset[RXE_ATMETH], comp); in atmeth_set_comp()
781 static inline u8 aeth_syn(struct rxe_pkt_info *pkt) in aeth_syn() argument
783 return __aeth_syn(pkt->hdr + pkt->offset in aeth_syn()
784 + rxe_opcode[pkt->opcode].offset[RXE_AETH]); in aeth_syn()
787 static inline void aeth_set_syn(struct rxe_pkt_info *pkt, u8 syn) in aeth_set_syn() argument
789 __aeth_set_syn(pkt->hdr + pkt->offset in aeth_set_syn()
790 + rxe_opcode[pkt->opcode].offset[RXE_AETH], syn); in aeth_set_syn()
793 static inline u32 aeth_msn(struct rxe_pkt_info *pkt) in aeth_msn() argument
795 return __aeth_msn(pkt->hdr + pkt->offset in aeth_msn()
796 + rxe_opcode[pkt->opcode].offset[RXE_AETH]); in aeth_msn()
799 static inline void aeth_set_msn(struct rxe_pkt_info *pkt, u32 msn) in aeth_set_msn() argument
801 __aeth_set_msn(pkt->hdr + pkt->offset in aeth_set_msn()
802 + rxe_opcode[pkt->opcode].offset[RXE_AETH], msn); in aeth_set_msn()
826 static inline u64 atmack_orig(struct rxe_pkt_info *pkt) in atmack_orig() argument
828 return __atmack_orig(pkt->hdr + pkt->offset in atmack_orig()
829 + rxe_opcode[pkt->opcode].offset[RXE_ATMACK]); in atmack_orig()
832 static inline void atmack_set_orig(struct rxe_pkt_info *pkt, u64 orig) in atmack_set_orig() argument
834 __atmack_set_orig(pkt->hdr + pkt->offset in atmack_set_orig()
835 + rxe_opcode[pkt->opcode].offset[RXE_ATMACK], orig); in atmack_set_orig()
859 static inline __be32 immdt_imm(struct rxe_pkt_info *pkt) in immdt_imm() argument
861 return __immdt_imm(pkt->hdr + pkt->offset in immdt_imm()
862 + rxe_opcode[pkt->opcode].offset[RXE_IMMDT]); in immdt_imm()
865 static inline void immdt_set_imm(struct rxe_pkt_info *pkt, __be32 imm) in immdt_set_imm() argument
867 __immdt_set_imm(pkt->hdr + pkt->offset in immdt_set_imm()
868 + rxe_opcode[pkt->opcode].offset[RXE_IMMDT], imm); in immdt_set_imm()
892 static inline u32 ieth_rkey(struct rxe_pkt_info *pkt) in ieth_rkey() argument
894 return __ieth_rkey(pkt->hdr + pkt->offset in ieth_rkey()
895 + rxe_opcode[pkt->opcode].offset[RXE_IETH]); in ieth_rkey()
898 static inline void ieth_set_rkey(struct rxe_pkt_info *pkt, u32 rkey) in ieth_set_rkey() argument
900 __ieth_set_rkey(pkt->hdr + pkt->offset in ieth_set_rkey()
901 + rxe_opcode[pkt->opcode].offset[RXE_IETH], rkey); in ieth_set_rkey()
916 static inline size_t header_size(struct rxe_pkt_info *pkt) in header_size() argument
918 return pkt->offset + rxe_opcode[pkt->opcode].length; in header_size()
921 static inline void *payload_addr(struct rxe_pkt_info *pkt) in payload_addr() argument
923 return pkt->hdr + pkt->offset in payload_addr()
924 + rxe_opcode[pkt->opcode].offset[RXE_PAYLOAD]; in payload_addr()
927 static inline size_t payload_size(struct rxe_pkt_info *pkt) in payload_size() argument
929 return pkt->paylen - rxe_opcode[pkt->opcode].offset[RXE_PAYLOAD] in payload_size()
930 - bth_pad(pkt) - RXE_ICRC_SIZE; in payload_size()