Searched refs:mhdr (Results 1 - 13 of 13) sorted by relevance

/linux-4.4.14/drivers/misc/sgi-gru/
H A Dgrukservices.c543 struct message_header *mhdr = p + GRU_CACHE_LINE_BYTES; get_present2() local
544 return mhdr->present; get_present2()
549 struct message_header *mhdr = p + GRU_CACHE_LINE_BYTES; restore_present2() local
550 mhdr->present = val; restore_present2()
598 struct message_header save_mhdr, *mhdr = mesg; send_noop_message() local
601 save_mhdr = *mhdr; send_noop_message()
602 *mhdr = noop_header; send_noop_message()
603 gru_mesq(cb, mqd->mq_gpa, gru_get_tri(mhdr), 1, IMA); send_noop_message()
642 *mhdr = save_mhdr; send_noop_message()
805 struct message_header *mhdr; gru_send_message_gpa() local
817 mhdr = dsr; gru_send_message_gpa()
818 mhdr->present = MQS_FULL; gru_send_message_gpa()
819 mhdr->lines = clines; gru_send_message_gpa()
821 mhdr->present2 = get_present2(mhdr); gru_send_message_gpa()
822 restore_present2(mhdr, MQS_FULL); gru_send_message_gpa()
827 gru_mesq(cb, mqd->mq_gpa, gru_get_tri(mhdr), clines, IMA); gru_send_message_gpa()
846 struct message_header *mhdr = mq->next; gru_free_message() local
849 int lines = mhdr->lines; gru_free_message()
852 restore_present2(mhdr, MQS_EMPTY); gru_free_message()
853 mhdr->present = MQS_EMPTY; gru_free_message()
878 struct message_header *mhdr = mq->next; gru_get_next_message() local
879 int present = mhdr->present; gru_get_next_message()
883 gru_free_message(mqd, mhdr); gru_get_next_message()
884 mhdr = mq->next; gru_get_next_message()
885 present = mhdr->present; gru_get_next_message()
889 if (present == MQS_FULL && mhdr->lines == 2 && gru_get_next_message()
890 get_present2(mhdr) == MQS_EMPTY) gru_get_next_message()
898 if (mhdr->lines == 2) gru_get_next_message()
899 restore_present2(mhdr, mhdr->present2); gru_get_next_message()
902 return mhdr; gru_get_next_message()
/linux-4.4.14/include/linux/
H A Dsocket.h91 #define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr((mhdr), (cmsg))
103 #define CMSG_OK(mhdr, cmsg) ((cmsg)->cmsg_len >= sizeof(struct cmsghdr) && \
105 ((mhdr)->msg_controllen - \
106 ((char *)(cmsg) - (char *)(mhdr)->msg_control)))
/linux-4.4.14/net/tipc/
H A Dmsg.c236 * @mhdr: Message header, to be prepended to data
244 int tipc_msg_build(struct tipc_msg *mhdr, struct msghdr *m, tipc_msg_build() argument
247 int mhsz = msg_hdr_sz(mhdr); tipc_msg_build()
258 msg_set_size(mhdr, msz); tipc_msg_build()
267 skb_copy_to_linear_data(skb, mhdr, mhsz); tipc_msg_build()
276 tipc_msg_init(msg_prevnode(mhdr), &pkthdr, MSG_FRAGMENTER, tipc_msg_build()
277 FIRST_FRAGMENT, INT_H_SIZE, msg_destnode(mhdr)); tipc_msg_build()
280 msg_set_importance(&pkthdr, msg_importance(mhdr)); tipc_msg_build()
292 skb_copy_to_linear_data_offset(skb, INT_H_SIZE, mhdr, mhsz); tipc_msg_build()
H A Dsocket.c675 struct tipc_msg *mhdr = &tsk->phdr; tipc_sendmcast() local
681 msg_set_type(mhdr, TIPC_MCAST_MSG); tipc_sendmcast()
682 msg_set_lookup_scope(mhdr, TIPC_CLUSTER_SCOPE); tipc_sendmcast()
683 msg_set_destport(mhdr, 0); tipc_sendmcast()
684 msg_set_destnode(mhdr, 0); tipc_sendmcast()
685 msg_set_nametype(mhdr, seq->type); tipc_sendmcast()
686 msg_set_namelower(mhdr, seq->lower); tipc_sendmcast()
687 msg_set_nameupper(mhdr, seq->upper); tipc_sendmcast()
688 msg_set_hdr_sz(mhdr, MCAST_H_SIZE); tipc_sendmcast()
694 rc = tipc_msg_build(mhdr, msg, 0, dsz, mtu, &pktchain); tipc_sendmcast()
866 struct tipc_msg *mhdr = &tsk->phdr; __tipc_sendmsg() local
910 msg_set_type(mhdr, TIPC_NAMED_MSG); __tipc_sendmsg()
911 msg_set_hdr_sz(mhdr, NAMED_H_SIZE); __tipc_sendmsg()
912 msg_set_nametype(mhdr, type); __tipc_sendmsg()
913 msg_set_nameinst(mhdr, inst); __tipc_sendmsg()
914 msg_set_lookup_scope(mhdr, tipc_addr_scope(domain)); __tipc_sendmsg()
916 msg_set_destnode(mhdr, dnode); __tipc_sendmsg()
917 msg_set_destport(mhdr, dport); __tipc_sendmsg()
922 msg_set_type(mhdr, TIPC_DIRECT_MSG); __tipc_sendmsg()
923 msg_set_lookup_scope(mhdr, 0); __tipc_sendmsg()
924 msg_set_destnode(mhdr, dnode); __tipc_sendmsg()
925 msg_set_destport(mhdr, dest->addr.id.ref); __tipc_sendmsg()
926 msg_set_hdr_sz(mhdr, BASIC_H_SIZE); __tipc_sendmsg()
933 rc = tipc_msg_build(mhdr, m, 0, dsz, mtu, &pktchain); __tipc_sendmsg()
1021 struct tipc_msg *mhdr = &tsk->phdr; __tipc_send_stream() local
1056 rc = tipc_msg_build(mhdr, m, sent, send, mtu, &pktchain); __tipc_send_stream()
H A Dmsg.h795 int tipc_msg_build(struct tipc_msg *mhdr, struct msghdr *m,
/linux-4.4.14/drivers/net/ethernet/brocade/bna/
H A Dbfa_msgq.h90 typedef void (*bfa_msgq_mcfunc_t)(void *cbarg, struct bfi_msgq_mhdr *mhdr);
/linux-4.4.14/net/
H A Dcompat.c104 #define CMSG_COMPAT_OK(ucmlen, ucmsg, mhdr) \
107 ((mhdr)->msg_controllen - \
108 ((char *)(ucmsg) - (char *)(mhdr)->msg_control)))
/linux-4.4.14/drivers/scsi/bfa/
H A Dbfa_fcpim.h227 struct bfi_mhdr_s mhdr; /* pre-built mhdr */ member in struct:bfa_itnim_s
H A Dbfa_core.c730 WARN_ON(m->mhdr.msg_class >= BFI_MC_MAX); bfa_isr_rspq()
732 bfa_isrs[m->mhdr.msg_class] (bfa, m); bfa_isr_rspq()
896 bfa_trc(bfa, m->mhdr.msg_class); bfa_isr_unhandled()
897 bfa_trc(bfa, m->mhdr.msg_id); bfa_isr_unhandled()
898 bfa_trc(bfa, m->mhdr.mtag.i2htok); bfa_isr_unhandled()
H A Dbfa_svc.c1174 switch (msg->mhdr.msg_id) { bfa_fcxp_isr()
1180 bfa_trc(bfa, msg->mhdr.msg_id); bfa_fcxp_isr()
2045 bfa_trc(bfa, m->mhdr.msg_id); bfa_lps_isr()
2048 switch (m->mhdr.msg_id) { bfa_lps_isr()
2062 bfa_trc(bfa, m->mhdr.msg_id); bfa_lps_isr()
3643 bfa_trc(bfa, msg->mhdr.msg_id); bfa_fcport_isr()
3646 switch (msg->mhdr.msg_id) { bfa_fcport_isr()
5094 bfa_trc(bfa, m->mhdr.msg_id); bfa_rport_isr()
5098 switch (m->mhdr.msg_id) { bfa_rport_isr()
5137 bfa_trc(bfa, m->mhdr.msg_id); bfa_rport_isr()
5750 bfa_trc(bfa, msg->mhdr.msg_id); bfa_uf_isr()
5752 switch (msg->mhdr.msg_id) { bfa_uf_isr()
5758 bfa_trc(bfa, msg->mhdr.msg_id); bfa_uf_isr()
6063 switch (msg->mhdr.msg_id) { bfa_fcdiag_intr()
6080 bfa_trc(fcdiag, msg->mhdr.msg_id); bfa_fcdiag_intr()
H A Dbfi_ms.h315 struct bfi_mhdr_s *mhdr; member in union:bfi_fcport_h2i_msg_u
H A Dbfa_fcpim.c1369 bfa_trc(bfa, m->mhdr.msg_id); bfa_itnim_isr()
1373 switch (m->mhdr.msg_id) { bfa_itnim_isr()
1398 bfa_trc(bfa, m->mhdr.msg_id); bfa_itnim_isr()
H A Dbfi.h168 struct bfi_mhdr_s mhdr; member in struct:bfi_msg_s

Completed in 598 milliseconds