Lines Matching defs:command

164  *	flow (and with a higher link priority). One command can be outstanding
172 u8 *data; /* Data for the command in case we retransmit */
249 struct gsm_control *pending_cmd;/* Our current pending command */
250 spinlock_t control_lock; /* Protects the pending command */
634 * @cr: command/response bit
697 * gsm_command - send a control command
702 * Format up and transmit a link level command frame.
745 * Returns true if the given message is a flow control command of the
1114 * @cmd: the command to use
1151 /* The modem status command can either contain one octet (v.24 signals)
1197 * @data: data following command
1198 * @clen: command length
1312 * @command: the command EA
1313 * @data: data beyond the command/length EAs
1321 static void gsm_control_message(struct gsm_mux *gsm, unsigned int command,
1327 switch (command) {
1371 case CMD_SNC: /* Service negotiation command */
1374 buf[0] = command;
1383 * @command: the command (response) EA
1384 * @data: data beyond the command/length EA
1387 * Process a response to an outstanding command. We only allow a single
1393 static void gsm_control_response(struct gsm_mux *gsm, unsigned int command,
1402 /* Does the reply match our command */
1403 command |= 1;
1404 if (ctrl != NULL && (command == ctrl->cmd || command == CMD_NSC)) {
1405 /* Our command was replied to, kill the retry timer */
1409 if (command == CMD_NSC)
1422 * Send out a pending control command (called under control lock)
1430 msg->data[0] = (ctrl->cmd << 1) | CR | EA; /* command */
1473 * @command: command to send including CR bit
1477 * Queue and dispatch a control command. Only one command can be
1483 unsigned int command, u8 *data, int clen)
1497 ctrl->cmd = command;
1600 * SABM and DISC). We resend the command until the retry count runs out
1761 * control channel. This should contain a command EA followed by
1762 * control data bytes. The command EA contains a command/response bit
1768 /* See what command is involved */
1769 unsigned int command = 0;
1771 if (gsm_read_ea(&command, *data++) == 1) {
1776 /* Malformed command ? */
1779 if (command & 1)
1780 gsm_control_message(dlci->gsm, command,
1783 gsm_control_response(dlci->gsm, command,
1943 cr ^= 1 - gsm->initiator; /* Flip so 1 always means command */