Home
last modified time | relevance | path

Searched refs:nbd_cmd (Results 1 – 2 of 2) sorted by relevance

/linux-4.1.27/drivers/block/
Dnbd.c236 request.type = htonl(nbd_cmd(req)); in nbd_send_req()
238 if (nbd_cmd(req) != NBD_CMD_FLUSH && nbd_cmd(req) != NBD_CMD_DISC) { in nbd_send_req()
245 req, nbdcmd_to_ascii(nbd_cmd(req)), in nbd_send_req()
248 (nbd_cmd(req) == NBD_CMD_WRITE) ? MSG_MORE : 0); in nbd_send_req()
255 if (nbd_cmd(req) == NBD_CMD_WRITE) { in nbd_send_req()
355 if (nbd_cmd(req) == NBD_CMD_READ) { in nbd_read_stat()
455 nbd_cmd(req) = NBD_CMD_READ; in nbd_handle_req()
459 nbd_cmd(req) = NBD_CMD_TRIM; in nbd_handle_req()
461 nbd_cmd(req) = NBD_CMD_WRITE; in nbd_handle_req()
471 nbd_cmd(req) = NBD_CMD_FLUSH; in nbd_handle_req()
[all …]
/linux-4.1.27/include/uapi/linux/
Dnbd.h47 #define nbd_cmd(req) ((req)->cmd[0]) macro