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