• Home
  • Raw
  • Download

Lines Matching refs:result

59 	int result;  member
127 …nline void ncp_finish_request(struct ncp_server *server, struct ncp_request_reply *req, int result) in ncp_finish_request() argument
129 req->result = result; in ncp_finish_request()
209 int result; in __ncptcp_try_send() local
216 result = sock_sendmsg(server->ncp_sock, &msg); in __ncptcp_try_send()
218 if (result == -EAGAIN) in __ncptcp_try_send()
221 if (result < 0) { in __ncptcp_try_send()
222 pr_err("tcp: Send failed: %d\n", result); in __ncptcp_try_send()
223 __ncp_abort_request(server, rq, result); in __ncptcp_try_send()
367 int result; in ncpdgram_rcv_proc() local
369 result = _recv(sock, &reply, sizeof(reply), MSG_PEEK | MSG_DONTWAIT); in ncpdgram_rcv_proc()
370 if (result < 0) { in ncpdgram_rcv_proc()
373 if (result >= sizeof(reply)) { in ncpdgram_rcv_proc()
382 result = _recv(sock, buf, sizeof(buf), MSG_DONTWAIT); in ncpdgram_rcv_proc()
383 if (result < 0) { in ncpdgram_rcv_proc()
384 ncp_dbg(1, "recv failed with %d\n", result); in ncpdgram_rcv_proc()
387 if (result < 10) { in ncpdgram_rcv_proc()
388 ncp_dbg(1, "too short (%u) watchdog packet\n", result); in ncpdgram_rcv_proc()
400result = _recv(sock, server->unexpected_packet.data, sizeof(server->unexpected_packet.data), MSG_D… in ncpdgram_rcv_proc()
401 if (result < 0) { in ncpdgram_rcv_proc()
404 info_server(server, 0, server->unexpected_packet.data, result); in ncpdgram_rcv_proc()
416 result = _recv(sock, server->rxbuf, req->datalen, MSG_DONTWAIT); in ncpdgram_rcv_proc()
418 if (result >= 0 && server->sign_active && req->tx_type != NCP_DEALLOC_SLOT_REQUEST) { in ncpdgram_rcv_proc()
419 if (result < 8 + 8) { in ncpdgram_rcv_proc()
420 result = -EIO; in ncpdgram_rcv_proc()
424 result -= 8; in ncpdgram_rcv_proc()
426 …ign_verify_reply(server, server->rxbuf + hdrl, result - hdrl, cpu_to_le32(result), server->rxbuf +… in ncpdgram_rcv_proc()
428 result = -EIO; in ncpdgram_rcv_proc()
435 ncp_finish_request(server, req, result); in ncpdgram_rcv_proc()
487 int result; in do_tcp_rcv() local
490 result = _recv(server->ncp_sock, buffer, len, MSG_DONTWAIT); in do_tcp_rcv()
497 result = _recv(server->ncp_sock, dummy, len, MSG_DONTWAIT); in do_tcp_rcv()
499 if (result < 0) { in do_tcp_rcv()
500 return result; in do_tcp_rcv()
502 if (result > len) { in do_tcp_rcv()
503 pr_err("tcp: bug in recvmsg (%u > %zu)\n", result, len); in do_tcp_rcv()
506 return result; in do_tcp_rcv()
513 int result; in __ncptcp_rcv_proc() local
519 result = do_tcp_rcv(server, server->rcv.ptr, server->rcv.len); in __ncptcp_rcv_proc()
520 if (result == -EAGAIN) { in __ncptcp_rcv_proc()
523 if (result <= 0) { in __ncptcp_rcv_proc()
530 if (result < 0) { in __ncptcp_rcv_proc()
531 pr_err("tcp: error in recvmsg: %d\n", result); in __ncptcp_rcv_proc()
538 server->rcv.ptr += result; in __ncptcp_rcv_proc()
540 server->rcv.len -= result; in __ncptcp_rcv_proc()
678 int result; in do_ncp_rpc_call() local
691 result = ncp_add_request(server, req); in do_ncp_rpc_call()
692 if (result < 0) in do_ncp_rpc_call()
697 result = -EINTR; in do_ncp_rpc_call()
701 result = req->result; in do_ncp_rpc_call()
706 return result; in do_ncp_rpc_call()
716 int result; in ncp_do_request() local
750 result = do_ncp_rpc_call(server, size, reply, max_reply_size); in ncp_do_request()
758 ncp_dbg(2, "do_ncp_rpc_call returned %d\n", result); in ncp_do_request()
760 return result; in ncp_do_request()
772 int result; in ncp_request2() local
786 result = ncp_do_request(server, server->current_size, reply, size); in ncp_request2()
787 if (result < 0) { in ncp_request2()
788 ncp_dbg(1, "ncp_request_error: %d\n", result); in ncp_request2()
793 server->reply_size = result; in ncp_request2()
794 server->ncp_reply_size = result - sizeof(struct ncp_reply_header); in ncp_request2()
796 result = reply->completion_code; in ncp_request2()
798 if (result != 0) in ncp_request2()
799 ncp_vdbg("completion code=%x\n", result); in ncp_request2()
801 return result; in ncp_request2()
807 int result; in ncp_connect() local
817 result = ncp_do_request(server, sizeof(*h), server->packet, server->packet_size); in ncp_connect()
818 if (result < 0) in ncp_connect()
821 result = 0; in ncp_connect()
823 return result; in ncp_connect()