Lines Matching defs:errno

29  * Protects updates to operation->errno.
34 int errno);
112 * Initially an outgoing operation's errno value is -EBADR.
114 * valid value operation->errno can be set to is -EINPROGRESS,
148 prev = operation->errno;
150 operation->errno = result;
152 operation->errno = -EILSEQ;
172 prev = operation->errno;
174 operation->errno = result; /* First and final result */
182 int result = operation->errno;
402 * message as a single byte) to an appropriate Linux negative errno.
434 * Map a Linux errno value (from operation->errno) into the value
439 static u8 gb_operation_errno_map(int errno)
441 switch (errno) {
484 * allocated. The errno will be set before sending. All
549 operation->errno = -EBADR; /* Initial value--means "never set" */
718 * or a negative errno.
816 * errno indicates a failed operation.
820 * it can simply supply the result errno; this function will
824 int errno)
836 if (!gb_operation_result_set(operation, errno)) {
852 operation->response->header->result = gb_operation_errno_map(errno);
965 int errno;
984 errno = gb_operation_status_map(header->result);
987 if (!errno && size > message_size) {
992 errno = -EMSGSIZE;
993 } else if (!errno && size < message_size) {
1001 errno = -EMSGSIZE;
1006 if (errno)
1010 if (gb_operation_result_set(operation, errno)) {
1071 void gb_operation_cancel(struct gb_operation *operation, int errno)
1076 if (gb_operation_result_set(operation, errno)) {
1093 void gb_operation_cancel_incoming(struct gb_operation *operation, int errno)
1104 if (!gb_operation_result_set(operation, errno))