Lines Matching refs:errno
34 int errno);
148 prev = operation->errno; in gb_operation_result_set()
150 operation->errno = result; in gb_operation_result_set()
152 operation->errno = -EILSEQ; in gb_operation_result_set()
172 prev = operation->errno; in gb_operation_result_set()
174 operation->errno = result; /* First and final result */ in gb_operation_result_set()
182 int result = operation->errno; in gb_operation_result()
440 static u8 gb_operation_errno_map(int errno) in gb_operation_errno_map() argument
442 switch (errno) { in gb_operation_errno_map()
550 operation->errno = -EBADR; /* Initial value--means "never set" */ in gb_operation_create_common()
825 int errno) in gb_operation_response_send() argument
837 if (!gb_operation_result_set(operation, errno)) { in gb_operation_response_send()
853 operation->response->header->result = gb_operation_errno_map(errno); in gb_operation_response_send()
966 int errno; in gb_connection_recv_response() local
985 errno = gb_operation_status_map(header->result); in gb_connection_recv_response()
988 if (!errno && size > message_size) { in gb_connection_recv_response()
993 errno = -EMSGSIZE; in gb_connection_recv_response()
994 } else if (!errno && size < message_size) { in gb_connection_recv_response()
1002 errno = -EMSGSIZE; in gb_connection_recv_response()
1007 if (errno) in gb_connection_recv_response()
1011 if (gb_operation_result_set(operation, errno)) { in gb_connection_recv_response()
1072 void gb_operation_cancel(struct gb_operation *operation, int errno) in gb_operation_cancel() argument
1077 if (gb_operation_result_set(operation, errno)) { in gb_operation_cancel()
1094 void gb_operation_cancel_incoming(struct gb_operation *operation, int errno) in gb_operation_cancel_incoming() argument
1105 if (!gb_operation_result_set(operation, errno)) in gb_operation_cancel_incoming()