Lines Matching refs:p
130 static inline u16 ssam_trace_get_packet_seq(const struct ssh_packet *p) in ssam_trace_get_packet_seq() argument
132 if (!p->data.ptr || p->data.len < SSH_MESSAGE_LENGTH(0)) in ssam_trace_get_packet_seq()
135 return p->data.ptr[SSH_MSGOFFSET_FRAME(seq)]; in ssam_trace_get_packet_seq()
146 static inline u32 ssam_trace_get_request_id(const struct ssh_packet *p) in ssam_trace_get_request_id() argument
148 if (!p->data.ptr || p->data.len < SSH_COMMAND_MESSAGE_LENGTH(0)) in ssam_trace_get_request_id()
151 return get_unaligned_le16(&p->data.ptr[SSH_MSGOFFSET_COMMAND(rqid)]); in ssam_trace_get_request_id()
162 static inline u32 ssam_trace_get_request_tid(const struct ssh_packet *p) in ssam_trace_get_request_tid() argument
164 if (!p->data.ptr || p->data.len < SSH_COMMAND_MESSAGE_LENGTH(0)) in ssam_trace_get_request_tid()
167 return get_unaligned_le16(&p->data.ptr[SSH_MSGOFFSET_COMMAND(tid)]); in ssam_trace_get_request_tid()
178 static inline u32 ssam_trace_get_request_sid(const struct ssh_packet *p) in ssam_trace_get_request_sid() argument
180 if (!p->data.ptr || p->data.len < SSH_COMMAND_MESSAGE_LENGTH(0)) in ssam_trace_get_request_sid()
183 return get_unaligned_le16(&p->data.ptr[SSH_MSGOFFSET_COMMAND(sid)]); in ssam_trace_get_request_sid()
194 static inline u32 ssam_trace_get_request_tc(const struct ssh_packet *p) in ssam_trace_get_request_tc() argument
196 if (!p->data.ptr || p->data.len < SSH_COMMAND_MESSAGE_LENGTH(0)) in ssam_trace_get_request_tc()
199 return get_unaligned_le16(&p->data.ptr[SSH_MSGOFFSET_COMMAND(tc)]); in ssam_trace_get_request_tc()
487 const struct ssh_packet *p = &request->packet;
491 __entry->rqid = ssam_trace_get_request_id(p);
492 ssam_trace_ptr_uid(p, __entry->uid);
493 __entry->tid = ssam_trace_get_request_tid(p);
494 __entry->sid = ssam_trace_get_request_sid(p);
495 __entry->tc = ssam_trace_get_request_tc(p);
496 __entry->cid = ssam_trace_get_command_field_u8(p, cid);
497 __entry->iid = ssam_trace_get_command_field_u8(p, iid);
537 const struct ssh_packet *p = &request->packet;
541 __entry->rqid = ssam_trace_get_request_id(p);
543 ssam_trace_ptr_uid(p, __entry->uid);
544 __entry->tid = ssam_trace_get_request_tid(p);
545 __entry->sid = ssam_trace_get_request_sid(p);
546 __entry->tc = ssam_trace_get_request_tc(p);
547 __entry->cid = ssam_trace_get_command_field_u8(p, cid);
548 __entry->iid = ssam_trace_get_command_field_u8(p, iid);