| /src/lib/libnvmf/ |
| H A D | libnvmf.h | 19 struct nvmf_capsule; 101 struct nvmf_capsule *nvmf_allocate_command(struct nvmf_qpair *qp, 103 struct nvmf_capsule *nvmf_allocate_response(struct nvmf_qpair *qp, 105 void nvmf_free_capsule(struct nvmf_capsule *nc); 106 int nvmf_capsule_append_data(struct nvmf_capsule *nc, 108 int nvmf_transmit_capsule(struct nvmf_capsule *nc); 109 int nvmf_receive_capsule(struct nvmf_qpair *qp, struct nvmf_capsule **ncp); 110 const void *nvmf_capsule_sqe(const struct nvmf_capsule *nc); 111 const void *nvmf_capsule_cqe(const struct nvmf_capsule *nc); 132 uint8_t nvmf_validate_command_capsule(const struct nvmf_capsule *nc); [all …]
|
| H A D | internal.h | 33 struct nvmf_capsule *(*allocate_capsule)(struct nvmf_qpair *qp); 34 void (*free_capsule)(struct nvmf_capsule *nc); 35 int (*transmit_capsule)(struct nvmf_capsule *nc); 37 struct nvmf_capsule **ncp); 38 uint8_t (*validate_command_capsule)(const struct nvmf_capsule *nc); 41 size_t (*capsule_data_len)(const struct nvmf_capsule *nc); 42 int (*receive_controller_data)(const struct nvmf_capsule *nc, 44 int (*send_controller_data)(const struct nvmf_capsule *nc, 83 TAILQ_HEAD(, nvmf_capsule) nq_rx_capsules; 86 struct nvmf_capsule { struct [all …]
|
| H A D | nvmf_transport.c | 113 struct nvmf_capsule *nc, *tc; in nvmf_free_qpair() 124 struct nvmf_capsule * 127 struct nvmf_capsule *nc; in nvmf_allocate_command() 143 struct nvmf_capsule * 146 struct nvmf_capsule *nc; in nvmf_allocate_response() 159 nvmf_capsule_append_data(struct nvmf_capsule *nc, void *buf, size_t len, in nvmf_capsule_append_data() 174 nvmf_free_capsule(struct nvmf_capsule *nc) in nvmf_free_capsule() 180 nvmf_transmit_capsule(struct nvmf_capsule *nc) in nvmf_transmit_capsule() 186 nvmf_receive_capsule(struct nvmf_qpair *qp, struct nvmf_capsule **ncp) in nvmf_receive_capsule() 192 nvmf_capsule_sqe(const struct nvmf_capsule *nc) in nvmf_capsule_sqe() [all …]
|
| H A D | nvmf_controller.c | 69 nvmf_init_cqe(void *cqe, const struct nvmf_capsule *nc, uint16_t status) in nvmf_init_cqe() 79 static struct nvmf_capsule * 80 nvmf_simple_response(const struct nvmf_capsule *nc, uint8_t sc_type, in nvmf_simple_response() 94 struct nvmf_capsule **ncp) in nvmf_controller_receive_capsule() 96 struct nvmf_capsule *nc; in nvmf_controller_receive_capsule() 117 nvmf_controller_transmit_response(struct nvmf_capsule *nc) in nvmf_controller_transmit_response() 132 nvmf_send_response(const struct nvmf_capsule *cc, const void *cqe) in nvmf_send_response() 134 struct nvmf_capsule *rc; in nvmf_send_response() 146 nvmf_send_error(const struct nvmf_capsule *cc, uint8_t sc_type, in nvmf_send_error() 149 struct nvmf_capsule *rc; in nvmf_send_error() [all …]
|
| H A D | nvmf_host.c | 49 struct nvmf_capsule *cc, *rc; in nvmf_connect() 199 nvmf_host_transmit_command(struct nvmf_capsule *nc) in nvmf_host_transmit_command() 227 nvmf_host_receive_capsule(struct nvmf_qpair *qp, struct nvmf_capsule **ncp) in nvmf_host_receive_capsule() 229 struct nvmf_capsule *nc; in nvmf_host_receive_capsule() 256 nvmf_host_receive_response(struct nvmf_qpair *qp, struct nvmf_capsule **ncp) in nvmf_host_receive_response() 258 struct nvmf_capsule *nc; in nvmf_host_receive_response() 272 nvmf_host_wait_for_response(struct nvmf_capsule *cc, in nvmf_host_wait_for_response() 273 struct nvmf_capsule **rcp) in nvmf_host_wait_for_response() 276 struct nvmf_capsule *rc; in nvmf_host_wait_for_response() 304 struct nvmf_capsule * [all …]
|
| H A D | nvmf_tcp.c | 55 struct nvmf_capsule nc; 373 struct nvmf_capsule *nc; in nvmf_tcp_save_command_capsule() 394 struct nvmf_capsule *nc; in nvmf_tcp_save_response_capsule() 637 struct nvmf_capsule *nc; in nvmf_tcp_handle_c2h_data() 1168 static struct nvmf_capsule * 1178 tcp_free_capsule(struct nvmf_capsule *nc) in tcp_free_capsule() 1189 tcp_transmit_command(struct nvmf_capsule *nc) in tcp_transmit_command() 1238 tcp_transmit_response(struct nvmf_capsule *nc) in tcp_transmit_response() 1251 tcp_transmit_capsule(struct nvmf_capsule *nc) in tcp_transmit_capsule() 1260 tcp_receive_capsule(struct nvmf_qpair *nq, struct nvmf_capsule **ncp) in tcp_receive_capsule() [all …]
|
| /src/sys/dev/nvmf/ |
| H A D | nvmf_transport.h | 22 struct nvmf_capsule; 38 typedef void nvmf_capsule_receive_t(void *, struct nvmf_capsule *); 70 struct nvmf_capsule *nvmf_allocate_command(struct nvmf_qpair *qp, 72 struct nvmf_capsule *nvmf_allocate_response(struct nvmf_qpair *qp, 74 void nvmf_free_capsule(struct nvmf_capsule *nc); 75 int nvmf_capsule_append_data(struct nvmf_capsule *nc, 78 int nvmf_transmit_capsule(struct nvmf_capsule *nc); 79 void nvmf_abort_capsule_data(struct nvmf_capsule *nc, int error); 80 void *nvmf_capsule_sqe(struct nvmf_capsule *nc); 81 void *nvmf_capsule_cqe(struct nvmf_capsule *nc); [all …]
|
| H A D | nvmf_transport_internal.h | 35 struct nvmf_capsule *(*allocate_capsule)(struct nvmf_qpair *qp, 37 void (*free_capsule)(struct nvmf_capsule *nc); 38 int (*transmit_capsule)(struct nvmf_capsule *nc); 39 uint8_t (*validate_command_capsule)(struct nvmf_capsule *nc); 42 size_t (*capsule_data_len)(const struct nvmf_capsule *nc); 43 int (*receive_controller_data)(struct nvmf_capsule *nc, 45 u_int (*send_controller_data)(struct nvmf_capsule *nc, 85 struct nvmf_capsule { struct 112 nvmf_capsule_received(struct nvmf_qpair *nq, struct nvmf_capsule *nc) in nvmf_capsule_received() argument
|
| H A D | nvmf_transport.c | 94 struct nvmf_capsule * 97 struct nvmf_capsule *nc; in nvmf_allocate_command() 115 struct nvmf_capsule * 118 struct nvmf_capsule *nc; in nvmf_allocate_response() 133 nvmf_capsule_append_data(struct nvmf_capsule *nc, struct memdesc *mem, in nvmf_capsule_append_data() 149 nvmf_free_capsule(struct nvmf_capsule *nc) in nvmf_free_capsule() 155 nvmf_transmit_capsule(struct nvmf_capsule *nc) in nvmf_transmit_capsule() 161 nvmf_abort_capsule_data(struct nvmf_capsule *nc, int error) in nvmf_abort_capsule_data() 168 nvmf_capsule_sqe(struct nvmf_capsule *nc) in nvmf_capsule_sqe() 176 nvmf_capsule_cqe(struct nvmf_capsule *nc) in nvmf_capsule_cqe() [all …]
|
| H A D | nvmf_tcp.c | 118 struct nvmf_capsule nc; 387 struct nvmf_capsule *nc; in nvmf_tcp_save_command_capsule() 406 struct nvmf_capsule *nc; in nvmf_tcp_save_response_capsule() 836 struct nvmf_capsule *nc; in nvmf_tcp_handle_c2h_data() 1221 struct nvmf_capsule *nc = &tc->nc; in tcp_command_pdu() 1278 struct nvmf_capsule *nc = &tc->nc; in tcp_response_pdu() 1617 static struct nvmf_capsule * 1648 tcp_free_capsule(struct nvmf_capsule *nc) in tcp_free_capsule() 1656 tcp_transmit_capsule(struct nvmf_capsule *nc) in tcp_transmit_capsule() 1672 tcp_validate_command_capsule(struct nvmf_capsule *nc) in tcp_validate_command_capsule() [all …]
|
| /src/sys/dev/nvmf/controller/ |
| H A D | nvmft_var.h | 22 struct nvmf_capsule; 113 struct nvmf_capsule *nc, bool admin); 126 struct nvmf_capsule *nc); 128 struct nvmf_capsule *nc); 150 struct nvmf_capsule *nc); 152 void nvmft_init_cqe(void *cqe, struct nvmf_capsule *nc, uint16_t status); 153 int nvmft_send_error(struct nvmft_qpair *qp, struct nvmf_capsule *nc, 156 struct nvmf_capsule *nc, uint8_t sc_status); 158 struct nvmf_capsule *nc);
|
| H A D | nvmft_qpair.c | 45 struct nvmf_capsule *nc, uint8_t sc_status); 68 nvmft_receive_capsule(void *arg, struct nvmf_capsule *nc) in nvmft_receive_capsule() 196 struct nvmf_capsule *rc; in _nvmft_send_response() 226 nvmft_command_completed(struct nvmft_qpair *qp, struct nvmf_capsule *nc) in nvmft_command_completed() 251 nvmft_init_cqe(void *cqe, struct nvmf_capsule *nc, uint16_t status) in nvmft_init_cqe() 262 nvmft_send_error(struct nvmft_qpair *qp, struct nvmf_capsule *nc, in nvmft_send_error() 275 nvmft_send_generic_error(struct nvmft_qpair *qp, struct nvmf_capsule *nc, in nvmft_send_generic_error() 286 _nvmft_send_generic_error(struct nvmft_qpair *qp, struct nvmf_capsule *nc, in _nvmft_send_generic_error() 299 nvmft_send_success(struct nvmft_qpair *qp, struct nvmf_capsule *nc) in nvmft_send_success() 317 struct nvmf_capsule *rc; in nvmft_send_connect_response()
|
| H A D | nvmft_controller.c | 551 struct nvmf_capsule *nc, const struct nvme_command *cmd) in handle_get_log_page() 673 struct nvmf_capsule *nc, const struct nvme_command *cmd) in handle_identify_command() 742 struct nvmf_capsule *nc, const struct nvme_command *cmd) in handle_set_features() 868 handle_property_get(struct nvmft_controller *ctrlr, struct nvmf_capsule *nc, in handle_property_get() 907 handle_property_set(struct nvmft_controller *ctrlr, struct nvmf_capsule *nc, in handle_property_set() 937 struct nvmf_capsule *nc, const struct nvmf_fabric_cmd *fc) in handle_admin_fabrics_command() 971 struct nvmf_capsule *nc) in nvmft_handle_admin_command() 1033 struct nvmf_capsule *nc) in nvmft_handle_io_command()
|
| H A D | ctl_frontend_nvmf.c | 245 nvmft_dispatch_command(struct nvmft_qpair *qp, struct nvmf_capsule *nc, in nvmft_dispatch_command() 340 struct nvmf_capsule *nc) in nvmft_datamove_out() 472 struct nvmf_capsule *nc) in nvmft_datamove_in() 501 struct nvmf_capsule *nc; in nvmft_handle_datamove() 565 struct nvmf_capsule *nc; in nvmft_done()
|
| /src/tools/tools/nvmf/nvmfd/ |
| H A D | internal.h | 17 struct nvmf_capsule; 20 typedef bool handle_command(const struct nvmf_capsule *, 53 const struct nvmf_capsule *nc); 55 const struct nvmf_capsule *nc); 56 void device_flush(uint32_t nsid, const struct nvmf_capsule *nc);
|
| H A D | io.c | 90 handle_get_log_page(struct io_controller *ioc, const struct nvmf_capsule *nc, in handle_get_log_page() 142 handle_io_identify_command(const struct nvmf_capsule *nc, in handle_io_identify_command() 187 handle_set_features(struct io_controller *ioc, const struct nvmf_capsule *nc, in handle_set_features() 254 admin_command(const struct nvmf_capsule *nc, const struct nvme_command *cmd, in admin_command() 307 handle_io_fabrics_command(const struct nvmf_capsule *nc, in handle_io_fabrics_command() 361 handle_read(struct io_controller *ioc, const struct nvmf_capsule *nc, in handle_read() 378 handle_write(struct io_controller *ioc, const struct nvmf_capsule *nc, in handle_write() 395 handle_flush(const struct nvmf_capsule *nc, const struct nvme_command *cmd) in handle_flush() 404 struct nvmf_capsule *nc; in handle_io_commands() 475 connect_admin_qpair(int s, struct nvmf_qpair *qp, struct nvmf_capsule *nc, in connect_admin_qpair() [all …]
|
| H A D | controller.c | 61 handle_property_get(const struct controller *c, const struct nvmf_capsule *nc, in handle_property_get() 100 handle_property_set(struct controller *c, const struct nvmf_capsule *nc, in handle_property_set() 122 const struct nvmf_capsule *nc, const struct nvmf_fabric_cmd *fc) in handle_fabrics_command() 151 const struct nvmf_capsule *nc, const struct nvme_command *cmd) in handle_identify_command() 176 struct nvmf_capsule *nc; in controller_handle_admin_commands()
|
| H A D | discovery.c | 210 handle_get_log_page_command(const struct nvmf_capsule *nc, in handle_get_log_page_command() 243 discovery_command(const struct nvmf_capsule *nc, const struct nvme_command *cmd, in discovery_command() 287 struct nvmf_capsule *nc; in handle_discovery_socket()
|
| H A D | devices.c | 235 const struct nvmf_capsule *nc) in device_read() 301 const struct nvmf_capsule *nc) in device_write() 356 device_flush(uint32_t nsid, const struct nvmf_capsule *nc) in device_flush()
|
| /src/usr.sbin/ctld/ |
| H A D | nvmf_discovery.cc | 43 void handle_property_get(const struct nvmf_capsule *nc, 45 void handle_property_set(const struct nvmf_capsule *nc, 47 void handle_fabrics_command(const struct nvmf_capsule *nc, 49 void handle_identify_command(const struct nvmf_capsule *nc, 51 void handle_get_log_page_command(const struct nvmf_capsule *nc, 281 discovery_controller::handle_property_get(const struct nvmf_capsule *nc, in handle_property_get() 320 discovery_controller::handle_property_set(const struct nvmf_capsule *nc, in handle_property_set() 341 discovery_controller::handle_fabrics_command(const struct nvmf_capsule *nc, in handle_fabrics_command() 370 discovery_controller::handle_identify_command(const struct nvmf_capsule *nc, in handle_identify_command() 391 discovery_controller::handle_get_log_page_command(const struct nvmf_capsule *nc, in handle_get_log_page_command() [all …]
|
| H A D | nvmf.hh | 22 void operator()(struct nvmf_capsule *nc) const in operator ()() 28 using nvmf_capsule_up = std::unique_ptr<nvmf_capsule, nvmf_capsule_deleter>;
|
| H A D | nvmf.cc | 435 struct nvmf_capsule *nc = NULL; in handle_connection()
|
| /src/sys/dev/nvmf/host/ |
| H A D | nvmf_var.h | 24 struct nvmf_capsule; 103 struct nvmf_capsule *nc;
|
| H A D | nvmf_qpair.c | 118 struct nvmf_capsule *nc; in nvmf_dispatch_command() 171 nvmf_receive_capsule(void *arg, struct nvmf_capsule *nc) in nvmf_receive_capsule()
|
| /src/sys/dev/cxgbe/nvmf/ |
| H A D | nvmf_che.c | 263 struct nvmf_capsule nc; 1070 struct nvmf_capsule *nc; in nvmf_che_save_command_capsule() 1090 struct nvmf_capsule *nc; in nvmf_che_save_response_capsule() 1660 struct nvmf_capsule *nc; in nvmf_che_handle_c2h_data() 2171 struct nvmf_capsule *nc = &cc->nc; in che_command_pdu() 2244 struct nvmf_capsule *nc = &cc->nc; in che_response_pdu() 2829 static struct nvmf_capsule * 2860 che_free_capsule(struct nvmf_capsule *nc) in che_free_capsule() 2866 che_transmit_capsule(struct nvmf_capsule *nc) in che_transmit_capsule() 2881 che_validate_command_capsule(struct nvmf_capsule *nc) in che_validate_command_capsule() [all …]
|