Lines Matching refs:handle
210 static u32 nbd_handle_to_tag(u64 handle) in nbd_handle_to_tag() argument
212 return (u32)handle; in nbd_handle_to_tag()
215 static u32 nbd_handle_to_cookie(u64 handle) in nbd_handle_to_cookie() argument
217 return (u32)(handle >> NBD_COOKIE_BITS); in nbd_handle_to_cookie()
598 u64 handle; in nbd_send_cmd() local
631 handle = nbd_cmd_handle(cmd); in nbd_send_cmd()
647 handle = nbd_cmd_handle(cmd); in nbd_send_cmd()
648 request.cookie = cpu_to_be64(handle); in nbd_send_cmd()
657 trace_nbd_header_sent(req, handle); in nbd_send_cmd()
730 trace_nbd_payload_sent(req, handle); in nbd_send_cmd()
769 u64 handle; in nbd_handle_reply() local
774 handle = be64_to_cpu(reply->cookie); in nbd_handle_reply()
775 tag = nbd_handle_to_tag(handle); in nbd_handle_reply()
785 trace_nbd_header_received(req, handle); in nbd_handle_reply()
801 if (cmd->cmd_cookie != nbd_handle_to_cookie(handle)) { in nbd_handle_reply()
803 req, cmd->cmd_cookie, nbd_handle_to_cookie(handle)); in nbd_handle_reply()
856 trace_nbd_payload_received(req, handle); in nbd_handle_reply()