Lines Matching full:payload
97 * @payload: The parsed payload (output).
100 * Parses and validates a SSH frame, including its payload, from the given
102 * writes the limits of the frame payload to the provided @payload span
109 * the %NULL pointer and the payload span will be set to the null span (start
114 * payload) CRC is invalid, or %-EMSGSIZE if the SSH message is bigger than
118 struct ssh_frame **frame, struct ssam_span *payload, in sshp_parse_frame() argument
126 payload->ptr = NULL; in sshp_parse_frame()
127 payload->len = 0; in sshp_parse_frame()
158 /* Pin down payload. */ in sshp_parse_frame()
161 /* Check for frame + payload length. */ in sshp_parse_frame()
163 dev_dbg(dev, "rx: parser: not enough data for payload\n"); in sshp_parse_frame()
167 /* Validate payload CRC. */ in sshp_parse_frame()
169 dev_warn(dev, "rx: parser: invalid payload CRC\n"); in sshp_parse_frame()
174 *payload = sp; in sshp_parse_frame()
183 * sshp_parse_command() - Parse SSH command frame payload.
187 * @command_data: The parsed command data/payload (output).
189 * Parses and validates a SSH command frame payload. Sets the @command pointer
191 * payload of the command). This will result in a zero-length span if the
192 * command does not have any associated data/payload. This function does not
193 * check the frame-payload-type field, which should be checked by the caller
196 * The @source parameter should be the complete frame payload, e.g. returned
200 * payload data and sets pointers (and length values) to indicate the
204 * valid command-type frame payload, i.e. is too short.
216 dev_err(dev, "rx: parser: command payload is too short\n"); in sshp_parse_command()