Lines Matching +full:com +full:- +full:seq
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * Copyright (C) 1999-2001 Cisco, Motorola
12 * lksctp developers <linux-sctp@vger.kernel.org>
17 * Ardelle Fan <ardelle.fan@intel.com>
18 * Sridhar Samudrala <sri@us.ibm.com>
55 SCTP_CMD_COOKIEECHO_RESTART, /* High level, do cookie-echo timer work. */
73 SCTP_CMD_SETUP_T2, /* Hi-level, setup T2-shutdown parms. */
82 SCTP_CMD_DEL_NON_PRIMARY, /* Removes non-primary peer transports. */
83 SCTP_CMD_T3_RTX_TIMERS_STOP, /* Stops T3-rtx pending timers */
199 static inline int sctp_init_cmd_seq(struct sctp_cmd_seq *seq) in sctp_init_cmd_seq() argument
202 seq->last_used_slot = seq->cmds + SCTP_MAX_NUM_COMMANDS; in sctp_init_cmd_seq()
203 seq->next_cmd = seq->last_used_slot; in sctp_init_cmd_seq()
213 static inline void sctp_add_cmd_sf(struct sctp_cmd_seq *seq, in sctp_add_cmd_sf() argument
216 struct sctp_cmd *cmd = seq->last_used_slot - 1; in sctp_add_cmd_sf()
218 BUG_ON(cmd < seq->cmds); in sctp_add_cmd_sf()
220 cmd->verb = verb; in sctp_add_cmd_sf()
221 cmd->obj = obj; in sctp_add_cmd_sf()
222 seq->last_used_slot = cmd; in sctp_add_cmd_sf()
228 static inline struct sctp_cmd *sctp_next_cmd(struct sctp_cmd_seq *seq) in sctp_next_cmd() argument
230 if (seq->next_cmd <= seq->last_used_slot) in sctp_next_cmd()
233 return --seq->next_cmd; in sctp_next_cmd()