Lines Matching defs:timeout

283 			int timeout);
285 int retry_count, int timeout, int quiet);
287 int task_attr, int retry_count, int timeout);
289 int retry_count, int timeout);
291 int retry_count, int timeout);
301 int timeout);
304 int timeout);
307 int timeout);
309 char *combinedopt, int retry_count, int timeout);
311 char *combinedopt, int retry_count, int timeout);
313 char *combinedopt, int retry_count, int timeout);
315 char *combinedopt, int retry_count, int timeout);
317 char *combinedopt, int retry_count, int timeout);
324 char *combinedopt, int retry_count, int timeout);
335 int retry_count, int timeout, int argc, char **argv,
339 int timeout);
342 int timeout);
345 int timeout);
348 int timeout);
350 char *combinedopt, int retry_count, int timeout);
351 static int atasecurity(struct cam_device *device, int retry_count, int timeout,
353 static int atahpa(struct cam_device *device, int retry_count, int timeout,
355 static int ataama(struct cam_device *device, int retry_count, int timeout,
364 int timeout, int verbose);
844 char *combinedopt, int task_attr, int retry_count, int timeout)
885 /*timeout*/ timeout ? timeout : 60000);
952 int timeout, int quiet)
964 /* timeout */ timeout ? timeout : 5000);
1000 int task_attr, int retry_count, int timeout)
1028 /* timeout */ timeout ? timeout : 120000);
1078 char *combinedopt, int task_attr, int retry_count, int timeout)
1107 error = scsiinquiry(device, task_attr, retry_count, timeout);
1113 scsiserial(device, task_attr, retry_count, timeout);
1123 int timeout)
1188 /* timeout */ timeout ? timeout : 5000);
1229 int timeout)
1261 /* timeout */ timeout ? timeout : 5000);
1845 warnx("sending ATA %s via pass_16 with timeout of %u msecs",
1847 ccb->csio.ccb_h.timeout);
1883 warnx("sending ATA %s with timeout of %u msecs",
1885 ccb->ataio.ccb_h.timeout);
1921 uint16_t dxfer_len, int timeout)
1949 timeout);
1978 uint16_t dxfer_len, int timeout, int force48bit)
1990 timeout));
2001 timeout);
2075 uint32_t timeout, union ccb *ccb,
2105 timeout ? timeout : 10 * 1000,
2116 uint32_t timeout, union ccb *ccb,
2149 timeout ? timeout : 1000,
2160 uint32_t timeout, union ccb *ccb,
2183 timeout ? timeout : 1000,
2189 uint32_t timeout, union ccb *ccb, int is48bit)
2210 timeout ? timeout : 1000,
2216 uint32_t timeout, union ccb *ccb,
2239 timeout ? timeout : 1000,
2245 uint32_t timeout, union ccb *ccb, int is48bit)
2266 timeout ? timeout : 1000,
2272 uint32_t timeout, union ccb *ccb,
2290 timeout ? timeout : 30 * 1000,
2301 uint32_t timeout, union ccb *ccb, u_int64_t maxsize)
2322 timeout ? timeout : 30 * 1000,
2333 uint32_t timeout, union ccb *ccb)
2349 timeout ? timeout : 30 * 1000,
2354 ata_do_identify(struct cam_device *device, int retry_count, int timeout,
2406 /*timeout*/timeout ? timeout : 30 * 1000,
2442 ataidentify(struct cam_device *device, int retry_count, int timeout)
2453 if (ata_do_identify(device, retry_count, timeout, ccb, &ident_buf) != 0) {
2465 ata_read_native_max(device, retry_count, timeout, ccb,
2469 ata_get_native_max(device, retry_count, timeout, ccb,
2487 nvmeidentify(struct cam_device *device, int retry_count __unused, int timeout __unused)
2499 identify(struct cam_device *device, int retry_count, int timeout)
2509 return (nvmeidentify(device, retry_count, timeout));
2511 return (ataidentify(device, retry_count, timeout));
2538 atasecurity_erase_timeout_msecs(uint16_t timeout)
2541 if (timeout == 0)
2543 else if (timeout > 255)
2546 return ((2 * timeout) + 5) * 60 * 1000; /* add a 5min margin */
2581 int retry_count, uint32_t timeout, int quiet)
2600 /*timeout*/timeout,
2606 int retry_count, uint32_t timeout,
2627 /*timeout*/timeout,
2633 int retry_count, uint32_t timeout,
2653 /*timeout*/timeout,
2691 int retry_count, uint32_t timeout,
2713 /*timeout*/timeout,
2736 /*timeout*/erase_timeout,
2747 int retry_count, uint32_t timeout,
2768 /*timeout*/timeout,
2883 atahpa(struct cam_device *device, int retry_count, int timeout,
2973 error = ata_do_identify(device, retry_count, timeout, ccb, &ident_buf);
2988 ata_read_native_max(device, retry_count, timeout, ccb,
3028 error = ata_read_native_max(device, retry_count, timeout,
3031 error = atahpa_set_max(device, retry_count, timeout,
3037 retry_count, timeout, ccb,
3048 error = atahpa_password(device, retry_count, timeout,
3055 error = atahpa_lock(device, retry_count, timeout,
3062 error = atahpa_unlock(device, retry_count, timeout,
3069 error = atahpa_freeze_lock(device, retry_count, timeout,
3092 ataama(struct cam_device *device, int retry_count, int timeout,
3143 error = ata_do_identify(device, retry_count, timeout, ccb, &ident_buf);
3158 ata_get_native_max(device, retry_count, timeout, ccb,
3176 error = ata_get_native_max(device, retry_count, timeout, ccb,
3179 error = ataama_set(device, retry_count, timeout,
3185 retry_count, timeout, ccb,
3196 error = ataama_freeze(device, retry_count, timeout,
3213 atasecurity(struct cam_device *device, int retry_count, int timeout,
3337 error = ata_do_identify(device, retry_count, timeout, ccb, &ident_buf);
3363 /* default timeout 15 seconds the same as linux hdparm */
3364 timeout = timeout ? timeout : 15 * 1000;
3388 timeout, &pwd, quiet);
3400 timeout, quiet);
3407 retry_count, timeout, &pwd, quiet);
3424 timeout,
3433 timeout,
3451 timeout, erase_timeout, &pwd, quiet);
3468 retry_count, timeout,
3872 ccb.ccb_h.timeout = 5000;
3926 char *combinedopt, int task_attr, int retry_count, int timeout)
4074 /*timeout*/ timeout ? timeout : 5000);
4487 int page, int subpage, int task_attr, int retry_count, int timeout,
4519 /* timeout */ timeout ? timeout : 5000);
4562 int task_attr, int retry_count, int timeout, uint8_t *data, int datalen)
4582 /* timeout */ timeout ? timeout : 5000);
4611 int task_attr, int retry_count, int timeout)
4675 retry_count, timeout);
4678 edit, binary, task_attr, retry_count, timeout);
4684 int task_attr, int retry_count, int timeout)
4932 /*timeout*/ timeout ? timeout : 5000);
4950 /*timeout*/ timeout ? timeout : 5000);
5509 int timeout, int verbosemode)
5534 /* timeout */ timeout ? timeout : 5000);
5575 get_device_type(struct cam_device *dev, int retry_count, int timeout,
5635 timeout, verbosemode);
5652 size_t cdb_storage_len, uint8_t sense_len, uint32_t timeout,
5665 /*timeout*/ timeout);
5710 /*timeout*/ timeout);
6094 int timeout, int argc, char **argv, char *combinedopt)
6400 retval = testunitready(device, task_attr, retry_count, timeout,
6425 char *combinedopt, int task_attr, int retry_count, int timeout)
6472 task_attr, retry_count, timeout);
6487 if (timeout != 0)
6488 use_timeout = timeout;
6491 fprintf(stdout, "Current format timeout is %d seconds\n",
6497 * timeout on the command line, ask them if they want the current
6498 * timeout.
6501 && (timeout == 0)) {
6505 fprintf(stdout, "Enter new timeout in seconds or press\n"
6506 "return to keep the current timeout [%d] ",
6516 fprintf(stdout, "Using new timeout value %d\n",
6550 /* timeout */ use_timeout);
6605 /* timeout */ 5000);
6734 /*timeout*/ 10000,
6820 /* timeout */ 5000);
6902 char *combinedopt, int task_attr, int retry_count, int timeout)
7079 task_attr, retry_count, timeout);
7082 error = ata_do_identify(device, retry_count, timeout,
7106 if (timeout != 0)
7107 use_timeout = timeout;
7112 fprintf(stdout, "Current sanitize timeout is %d seconds\n",
7118 * timeout on the command line, ask them if they want the current
7119 * timeout.
7121 if (immediate == 0 && ycount == 0 && timeout == 0) {
7125 fprintf(stdout, "Enter new timeout in seconds or press\n"
7126 "return to keep the current timeout [%d] ",
7136 fprintf(stdout, "Using new timeout value %d\n",
7156 /* timeout */ use_timeout);
7209 /*timeout*/ use_timeout,
7276 char *combinedopt, int task_attr, int retry_count, int timeout)
7356 /*timeout*/ timeout ? timeout : 5000);
7511 char *combinedopt, int task_attr, int retry_count, int timeout)
7605 /*timeout*/ timeout ? timeout : 5000);
7647 /*timeout*/ timeout ? timeout : 5000);
7715 int retry_count, int timeout)
7845 /*timeout*/ timeout ? timeout : 5000);
7908 int retry_count, int timeout)
8211 /*timeout*/ timeout ? timeout : 5000);
8266 char *combinedopt, int retry_count, int timeout)
8320 timeout);
8400 char *combinedopt, int retry_count, int timeout)
8562 warnx("%s: invalid partial pathway timeout "
8624 timeout);
8663 char *combinedopt, int retry_count, int timeout)
8703 timeout);
9034 char *combinedopt, int retry_count, int timeout)
9097 timeout);
9176 timeout);
9350 char *combinedopt, int retry_count, int timeout)
9419 /*timeout*/timeout ? timeout : 30 * 1000,
9431 char *combinedopt, int retry_count, int timeout)
9485 /*timeout*/timeout ? timeout : 30 * 1000,
9495 int timeout_desc, int task_attr, int retry_count, int timeout,
9567 /*timeout*/ timeout ? timeout : 10000);
9727 * If we don't have a timeout descriptor, we're done.
9733 * If we don't have enough valid length to include the timeout
9745 * If we don't have the full timeout descriptor, we're done.
9751 * If we don't have enough valid length to contain the full timeout
9759 printf("Nominal timeout: %u seconds\n",
9761 printf("Recommended timeout: %u seconds\n",
9826 * If we don't have enough space to fit a timeout
9841 * If the given timeout descriptor length is less than what
9859 char *combinedopt, int task_attr, int retry_count, int timeout,
9925 retry_count, timeout, verbosemode, &valid_len,
10039 " [-l <high|maximum>] [-q] [-s pwd] [-T timeout]\n"
10124 "-t timeout command timeout in seconds, overrides default timeout\n"
10175 "-T pp_timeout set the partial pathway timeout value\n"
10242 "-T timeout overrides the timeout (seconds) used for erase operation\n"
10295 "-T request nominal and recommended timeout values\n"
10356 int timeout = 0, retry_count = 1;
10549 timeout = strtol(optarg, NULL, 0);
10550 if (timeout < 0)
10551 errx(1, "invalid timeout %d", timeout);
10552 /* Convert the timeout from seconds to ms */
10553 timeout *= 1000;
10601 error = atahpa(cam_dev, retry_count, timeout,
10605 error = ataama(cam_dev, retry_count, timeout,
10616 task_attr, retry_count, timeout);
10620 timeout, 0);
10624 task_attr, retry_count, timeout);
10627 error = identify(cam_dev, retry_count, timeout);
10632 retry_count, timeout);
10642 task_attr, retry_count, timeout);
10646 task_attr, retry_count, timeout);
10650 task_attr, retry_count, timeout);
10654 retry_count, timeout);
10658 retry_count, timeout);
10663 timeout);
10667 retry_count, timeout);
10671 retry_count, timeout);
10675 retry_count, timeout);
10685 timeout, argc, argv, combinedopt);
10690 timeout);
10695 retry_count, timeout);
10700 retry_count, timeout);
10707 combinedopt, retry_count, timeout);
10712 combinedopt, retry_count, timeout);
10715 error = atasecurity(cam_dev, retry_count, timeout,
10721 timeout);
10725 retry_count, timeout);
10729 task_attr, retry_count, timeout,
10735 task_attr, retry_count, timeout,
10741 task_attr, retry_count, timeout,
10749 task_attr, retry_count, timeout,
10754 retry_count, timeout, arglist & CAM_ARG_VERBOSE);
10758 task_attr, retry_count, timeout,
10763 task_attr, retry_count, timeout,