Lines Matching refs:rc
46 int rc;
92 rc = spdk_nvme_ctrlr_write_boot_partition(ctrlr, g_ctrlr.write_buf,
94 if (rc) {
95 printf("Error - Boot Partition write failure. rc: %d", rc);
97 return rc;
104 rc = spdk_nvme_ctrlr_read_boot_partition_start(ctrlr, g_ctrlr.read_buf,
107 if (rc) {
108 printf("Error - Boot Partition read start failure. rc: %d", rc);
110 return rc;
114 rc = spdk_nvme_ctrlr_read_boot_partition_poll(ctrlr);
115 } while (rc == -EAGAIN);
117 if (rc != 0) {
118 printf("Error - Boot Partition read poll failure. rc: %d", rc);
120 return rc;
123 rc = memcmp(g_ctrlr.write_buf, g_ctrlr.read_buf, bpsize);
124 if (rc) {
125 printf("Error - Boot Partition written data does not match Boot Partition read data, rc: %d\n", rc);
127 return rc;
135 rc = spdk_nvme_ctrlr_write_boot_partition(ctrlr, g_ctrlr.write_buf,
137 if (rc) {
138 printf("Error - Boot Partition write failure. rc: %d", rc);
140 return rc;
147 rc = spdk_nvme_ctrlr_read_boot_partition_start(ctrlr, g_ctrlr.read_buf,
150 if (rc) {
151 printf("Error - Boot Partition read start failure. rc: %d", rc);
153 return rc;
157 rc = spdk_nvme_ctrlr_read_boot_partition_poll(ctrlr);
158 } while (rc == -EAGAIN);
160 if (rc != 0) {
161 printf("Error - Boot Partition read poll failure. rc: %d", rc);
163 return rc;
166 rc = memcmp(g_ctrlr.write_buf, g_ctrlr.read_buf, bpsize);
167 if (rc) {
168 printf("Error - Boot Partition written data does not match Boot Partition read data, rc: %d\n", rc);
170 return rc;
233 int rc;
243 rc = parse_args(argc, argv);
244 if (rc) {
245 fprintf(stderr, "Error in parse_args(): %d\n", rc);
246 return rc;
267 rc = boot_partition_test();
268 return rc;