Lines Matching refs:opts
201 struct dlm_opts *opts;
619 if (len < le16_to_cpu(p->opts.o_optlen))
621 len -= le16_to_cpu(p->opts.o_optlen);
623 switch (p->opts.o_nextcmd) {
650 p->opts.o_nextcmd, nodeid);
728 log_print("opts msg too small: %u, will skip this message from node %d",
733 p = (union dlm_packet *)((unsigned char *)p->opts.o_opts +
734 le16_to_cpu(p->opts.o_optlen));
954 static void dlm_fill_opts_header(struct dlm_opts *opts, uint16_t inner_len,
957 opts->o_header.h_cmd = DLM_OPTS;
958 opts->o_header.h_version = cpu_to_le32(DLM_HEADER_MAJOR | DLM_HEADER_MINOR);
959 opts->o_header.h_nodeid = cpu_to_le32(dlm_our_nodeid());
960 opts->o_header.h_length = cpu_to_le16(DLM_MIDCOMMS_OPT_LEN + inner_len);
961 opts->o_header.u.h_seq = cpu_to_le32(seq);
980 struct dlm_opts *opts;
988 opts = (struct dlm_opts *)*ppc;
989 mh->opts = opts;
992 dlm_fill_opts_header(opts, len, mh->seq);
994 *ppc += sizeof(*opts);
1090 mh->opts->o_nextcmd = mh->inner_p->header.h_cmd;