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