/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/ |
H A D | common.h | 253 static inline u64 rhf_err_flags(u64 rhf) in rhf_err_flags() argument 255 return rhf & RHF_ERROR_SMASK; in rhf_err_flags() 258 static inline u32 rhf_rcv_type(u64 rhf) in rhf_rcv_type() argument 260 return (rhf >> RHF_RCV_TYPE_SHIFT) & RHF_RCV_TYPE_MASK; in rhf_rcv_type() 263 static inline u32 rhf_rcv_type_err(u64 rhf) in rhf_rcv_type_err() argument 265 return (rhf >> RHF_RCV_TYPE_ERR_SHIFT) & RHF_RCV_TYPE_ERR_MASK; in rhf_rcv_type_err() 269 static inline u32 rhf_pkt_len(u64 rhf) in rhf_pkt_len() argument 271 return ((rhf & RHF_PKT_LEN_SMASK) >> RHF_PKT_LEN_SHIFT) << 2; in rhf_pkt_len() 274 static inline u32 rhf_egr_index(u64 rhf) in rhf_egr_index() argument 276 return (rhf >> RHF_EGR_INDEX_SHIF in rhf_egr_index() 279 rhf_rcv_seq(u64 rhf) rhf_rcv_seq() argument 285 rhf_hdrq_offset(u64 rhf) rhf_hdrq_offset() argument 290 rhf_use_egr_bfr(u64 rhf) rhf_use_egr_bfr() argument 295 rhf_dc_info(u64 rhf) rhf_dc_info() argument 300 rhf_egr_buf_offset(u64 rhf) rhf_egr_buf_offset() argument [all...] |
H A D | driver.c | 156 static inline void *get_egrbuf(const struct hfi1_ctxtdata *rcd, u64 rhf, in get_egrbuf() argument 159 u32 idx = rhf_egr_index(rhf), offset = rhf_egr_buf_offset(rhf); in get_egrbuf() 211 u32 rte = rhf_rcv_type_err(packet->rhf); in rcv_hdrerr() 218 if ((packet->rhf & RHF_DC_ERR) && in rcv_hdrerr() 222 if (packet->rhf & RHF_ICRC_ERR) in rcv_hdrerr() 241 if (packet->rhf & RHF_TID_ERR) { in rcv_hdrerr() 243 u32 tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in rcv_hdrerr() 309 if (rhf_use_egr_bfr(packet->rhf)) in rcv_hdrerr() 326 sc5 = hfi1_9B_get_sc5(rhdr, packet->rhf); in rcv_hdrerr() 523 ps_done(struct ps_mdata *mdata, u64 rhf, struct hfi1_ctxtdata *rcd) ps_done() argument 531 ps_skip(struct ps_mdata *mdata, u64 rhf, struct hfi1_ctxtdata *rcd) ps_skip() argument 584 u64 rhf = rhf_to_cpu(rhf_addr); __prescan_rxq() local 1847 u64 rhf = rhf_to_cpu(rhf_addr); seqfile_dump_rcd() local [all...] |
H A D | trace_rx.h | 37 __entry->eflags = rhf_err_flags(packet->rhf); 43 __entry->etail = rhf_egr_index(packet->rhf);
|
H A D | trace_misc.h | 82 __entry->eflags = rhf_err_flags(packet->rhf); 87 __entry->etail = rhf_egr_index(packet->rhf);
|
H A D | verbs.c | 350 trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf))); in hfi1_kdeth_eager_rcv() 404 trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf))); in hfi1_kdeth_expected_rcv() 539 trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf))); in hfi1_ib_rcv() 1943 sc5 = hfi1_9B_get_sc5(hdr, packet->rhf); in hfi1_cnp_rcv()
|
H A D | hfi.h | 343 u64 rhf; member 1605 /* extract service channel from header and rhf */ 1606 static inline int hfi1_9B_get_sc5(struct ib_header *hdr, u64 rhf) in hfi1_9B_get_sc5() argument 1608 return ib_get_sc(hdr) | ((!!(rhf_dc_info(rhf))) << 4); in hfi1_9B_get_sc5()
|
H A D | tid_rdma.c | 2852 u8 rcv_type = rhf_rcv_type(packet->rhf); in hfi1_handle_kdeth_eflags() 2853 u8 rte = rhf_rcv_type_err(packet->rhf); in hfi1_handle_kdeth_eflags() 2869 trace_hfi1_msg_handle_kdeth_eflags(NULL, "Kdeth error: rhf ", in hfi1_handle_kdeth_eflags() 2870 packet->rhf); in hfi1_handle_kdeth_eflags() 2871 if (packet->rhf & RHF_ICRC_ERR) in hfi1_handle_kdeth_eflags() 2876 trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf))); in hfi1_handle_kdeth_eflags() 2901 if (packet->rhf & RHF_TID_ERR) { in hfi1_handle_kdeth_eflags() 2903 u32 tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in hfi1_handle_kdeth_eflags()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
H A D | common.h | 350 static inline u64 rhf_err_flags(u64 rhf) in rhf_err_flags() argument 352 return rhf & RHF_ERROR_SMASK; in rhf_err_flags() 355 static inline u32 rhf_rcv_type(u64 rhf) in rhf_rcv_type() argument 357 return (rhf >> RHF_RCV_TYPE_SHIFT) & RHF_RCV_TYPE_MASK; in rhf_rcv_type() 360 static inline u32 rhf_rcv_type_err(u64 rhf) in rhf_rcv_type_err() argument 362 return (rhf >> RHF_RCV_TYPE_ERR_SHIFT) & RHF_RCV_TYPE_ERR_MASK; in rhf_rcv_type_err() 366 static inline u32 rhf_pkt_len(u64 rhf) in rhf_pkt_len() argument 368 return ((rhf & RHF_PKT_LEN_SMASK) >> RHF_PKT_LEN_SHIFT) << 2; in rhf_pkt_len() 371 static inline u32 rhf_egr_index(u64 rhf) in rhf_egr_index() argument 373 return (rhf >> RHF_EGR_INDEX_SHIF in rhf_egr_index() 376 rhf_rcv_seq(u64 rhf) rhf_rcv_seq() argument 382 rhf_hdrq_offset(u64 rhf) rhf_hdrq_offset() argument 387 rhf_use_egr_bfr(u64 rhf) rhf_use_egr_bfr() argument 392 rhf_dc_info(u64 rhf) rhf_dc_info() argument 397 rhf_egr_buf_offset(u64 rhf) rhf_egr_buf_offset() argument [all...] |
H A D | driver.c | 203 static inline void *get_egrbuf(const struct hfi1_ctxtdata *rcd, u64 rhf, in get_egrbuf() argument 206 u32 idx = rhf_egr_index(rhf), offset = rhf_egr_buf_offset(rhf); in get_egrbuf() 258 u32 rte = rhf_rcv_type_err(packet->rhf); in rcv_hdrerr() 265 if ((packet->rhf & RHF_DC_ERR) && in rcv_hdrerr() 269 if (packet->rhf & RHF_ICRC_ERR) in rcv_hdrerr() 288 if (packet->rhf & RHF_TID_ERR) { in rcv_hdrerr() 290 u32 tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in rcv_hdrerr() 356 if (rhf_use_egr_bfr(packet->rhf)) in rcv_hdrerr() 373 sc5 = hfi1_9B_get_sc5(rhdr, packet->rhf); in rcv_hdrerr() 570 ps_done(struct ps_mdata *mdata, u64 rhf, struct hfi1_ctxtdata *rcd) ps_done() argument 578 ps_skip(struct ps_mdata *mdata, u64 rhf, struct hfi1_ctxtdata *rcd) ps_skip() argument 631 u64 rhf = rhf_to_cpu(rhf_addr); __prescan_rxq() local 1896 u64 rhf = rhf_to_cpu(rhf_addr); seqfile_dump_rcd() local [all...] |
H A D | trace_rx.h | 78 __entry->eflags = rhf_err_flags(packet->rhf); 84 __entry->etail = rhf_egr_index(packet->rhf);
|
H A D | trace_misc.h | 123 __entry->eflags = rhf_err_flags(packet->rhf); 128 __entry->etail = rhf_egr_index(packet->rhf);
|
H A D | verbs.c | 392 trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf))); in hfi1_kdeth_eager_rcv() 446 trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf))); in hfi1_kdeth_expected_rcv() 581 trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf))); in hfi1_ib_rcv() 2006 sc5 = hfi1_9B_get_sc5(hdr, packet->rhf); in hfi1_cnp_rcv()
|
H A D | hfi.h | 384 u64 rhf; member 1657 /* extract service channel from header and rhf */ 1658 static inline int hfi1_9B_get_sc5(struct ib_header *hdr, u64 rhf) in hfi1_9B_get_sc5() argument 1660 return ib_get_sc(hdr) | ((!!(rhf_dc_info(rhf))) << 4); in hfi1_9B_get_sc5()
|
H A D | tid_rdma.c | 2844 u8 rcv_type = rhf_rcv_type(packet->rhf); in hfi1_handle_kdeth_eflags() 2845 u8 rte = rhf_rcv_type_err(packet->rhf); in hfi1_handle_kdeth_eflags() 2861 trace_hfi1_msg_handle_kdeth_eflags(NULL, "Kdeth error: rhf ", in hfi1_handle_kdeth_eflags() 2862 packet->rhf); in hfi1_handle_kdeth_eflags() 2863 if (packet->rhf & RHF_ICRC_ERR) in hfi1_handle_kdeth_eflags() 2868 trace_input_ibhdr(rcd->dd, packet, !!(rhf_dc_info(packet->rhf))); in hfi1_handle_kdeth_eflags() 2893 if (packet->rhf & RHF_TID_ERR) { in hfi1_handle_kdeth_eflags() 2895 u32 tlen = rhf_pkt_len(packet->rhf); /* in bytes */ in hfi1_handle_kdeth_eflags()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | rcupdate.h | 974 * @rhf: the name of the struct rcu_head within the type of @ptr. 999 #define kfree_rcu(ptr, rhf) kvfree_rcu_arg_2(ptr, rhf) 1000 #define kvfree_rcu(ptr, rhf) kvfree_rcu_arg_2(ptr, rhf) 1022 #define kvfree_rcu_arg_2(ptr, rhf) \ 1027 BUILD_BUG_ON(!__is_kvfree_rcu_offset(offsetof(typeof(*(ptr)), rhf))); \ 1028 kvfree_call_rcu(&((___p)->rhf), (void *) (___p)); \
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | rcupdate.h | 887 * @rhf: the name of the struct rcu_head within the type of @ptr. 910 #define kfree_rcu(ptr, rhf) \ 915 __kvfree_rcu(&((___p)->rhf), offsetof(typeof(*(ptr)), rhf)); \ 926 * kvfree_rcu(ptr, rhf); 928 * where @ptr is a pointer to kvfree(), @rhf is the name 948 #define kvfree_rcu_arg_2(ptr, rhf) kfree_rcu(ptr, rhf)
|