Lines Matching +full:512 +full:- +full:bytes

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 * Copyright (c) 2014 - 2018 ProfitBricks GmbH. All rights reserved.
6 * Copyright (c) 2018 - 2019 1&1 IONOS Cloud GmbH. All rights reserved.
7 * Copyright (c) 2019 - 2020 1&1 IONOS SE. All rights reserved.
13 #include <linux/blk-mq.h>
27 * enum rnbd_msg_types - RNBD message types
45 * struct rnbd_msg_hdr - header of RNBD messages
74 * struct rnbd_msg_sess_info - initial session info from client to server
85 * struct rnbd_msg_sess_info_rsp - initial session info from server to client
96 * struct rnbd_msg_open - request to open a remote device.
111 * struct rnbd_msg_close - request to close a remote device.
126 * struct rnbd_msg_open_rsp - response message to RNBD_MSG_OPEN
129 * @nsectors: number of sectors in the usual 512b unit
130 * @max_hw_sectors: max hardware sectors in the usual 512b unit
131 * @max_write_zeroes_sectors: max sectors for WRITE ZEROES in the 512b unit
132 * @max_discard_sectors: max. sectors that can be discarded at once in 512b
134 * @discard_granularity: size of the internal discard allocation unit in bytes
135 * @discard_alignment: offset from internal allocation assignment in bytes
136 * @physical_block_size: physical block size device supports in bytes
137 * @logical_block_size: logical block size device supports in bytes
141 * @cache_policy: support write-back caching or FUA?
162 * struct rnbd_msg_io - message for I/O read/write
167 * @bi_size: number of bytes for I/O read/write
180 #define RNBD_OP_MASK ((1 << RNBD_OP_BITS) - 1)
183 * enum rnbd_io_flags - RNBD request types from rq_flag_bits
283 (__force unsigned long long)rq->cmd_flags); in rq_to_rnbd_flags()
287 if (op_is_sync(rq->cmd_flags)) in rq_to_rnbd_flags()
290 if (op_is_flush(rq->cmd_flags)) in rq_to_rnbd_flags()