/freebsd/sys/cam/nvme/ |
H A D | nvme_xpt.c | 371 if (path->device->serial_num != NULL) { in nvme_probe_done() 372 free(path->device->serial_num, M_CAMXPT); in nvme_probe_done() 373 path->device->serial_num = NULL; in nvme_probe_done() 376 path->device->serial_num = (uint8_t *) in nvme_probe_done() 378 if (path->device->serial_num != NULL) { in nvme_probe_done() 379 cam_strvis_flag(path->device->serial_num, in nvme_probe_done() 385 strlen(path->device->serial_num); in nvme_probe_done() 614 device->serial_num = NULL; in nvme_alloc_device() 681 memcpy(cdai->buf, device->serial_num, amt); in nvme_dev_advinfo()
|
/freebsd/sys/netinet/ |
H A D | sctp_asconf.c | 609 uint32_t serial_num; in sctp_handle_asconf() local 629 serial_num = ntohl(cp->serial_number); in sctp_handle_asconf() 631 if (SCTP_TSN_GE(asoc->asconf_seq_in, serial_num)) { in sctp_handle_asconf() 635 serial_num); in sctp_handle_asconf() 637 } else if (serial_num != (asoc->asconf_seq_in + 1)) { in sctp_handle_asconf() 639 serial_num, asoc->asconf_seq_in + 1); in sctp_handle_asconf() 644 asoc->asconf_seq_in = serial_num; /* update sequence */ in sctp_handle_asconf() 649 asconf_limit, serial_num); in sctp_handle_asconf() 656 if (ack->serial_number == serial_num) in sctp_handle_asconf() 659 ack->serial_number, serial_num); in sctp_handle_asconf() [all …]
|
/freebsd/sys/cam/scsi/ |
H A D | scsi_xpt.c | 789 periph->path->device->serial_num, in probestart() 967 if (device->serial_num != NULL) { in probestart() 968 free(device->serial_num, M_CAMXPT); in probestart() 969 device->serial_num = NULL; in probestart() 1592 path->device->serial_num = in probedone() 1595 if (path->device->serial_num != NULL) { in probedone() 1598 start = strspn(serial_buf->serial_num, " "); in probedone() 1614 serial_buf->serial_num[start + slen - 1] == ' ') in probedone() 1616 memcpy(path->device->serial_num, in probedone() 1617 &serial_buf->serial_num[start], slen); in probedone() [all …]
|
/freebsd/sys/cam/ctl/ |
H A D | ctl_backend_ramdisk.c | 1249 strncpy((char *)cbe_lun->serial_num, tmpstr, in ctl_backend_ramdisk_create() 1250 MIN(sizeof(cbe_lun->serial_num), sizeof(tmpstr))); in ctl_backend_ramdisk_create() 1253 strncpy((char *)params->serial_num, tmpstr, in ctl_backend_ramdisk_create() 1254 MIN(sizeof(params->serial_num), sizeof(tmpstr))); in ctl_backend_ramdisk_create() 1256 strncpy((char *)cbe_lun->serial_num, params->serial_num, in ctl_backend_ramdisk_create() 1257 MIN(sizeof(cbe_lun->serial_num), in ctl_backend_ramdisk_create() 1258 sizeof(params->serial_num))); in ctl_backend_ramdisk_create()
|
H A D | ctl_backend.h | 120 * serial_num is the device serial number returned in the SCSI INQUIRY VPD 160 uint8_t serial_num[CTL_SN_LEN]; /* passed to CTL */ member
|
H A D | ctl_backend_block.c | 2729 strncpy((char *)cbe_lun->serial_num, tmpstr, in ctl_be_block_create() 2730 MIN(sizeof(cbe_lun->serial_num), sizeof(tmpstr))); in ctl_be_block_create() 2733 strncpy((char *)params->serial_num, tmpstr, in ctl_be_block_create() 2734 MIN(sizeof(params->serial_num), sizeof(tmpstr))); in ctl_be_block_create() 2736 strncpy((char *)cbe_lun->serial_num, params->serial_num, in ctl_be_block_create() 2737 MIN(sizeof(cbe_lun->serial_num), in ctl_be_block_create() 2738 sizeof(params->serial_num))); in ctl_be_block_create()
|
H A D | ctl_ioctl.h | 311 * The SERIAL_NUM flag tells us that the serial_num field is filled in and 372 * serial_num: This is the value returned in SCSI INQUIRY VPD page 392 uint8_t serial_num[CTL_SN_LEN]; 390 uint8_t serial_num[CTL_SN_LEN]; global() member
|
/freebsd/lib/libcam/ |
H A D | camlib.h | 117 uint8_t serial_num[252]; /* device serial number */ member
|
H A D | camlib.c | 623 bcopy(&ccb.cgd.serial_num, &device->serial_num, device->serial_num_len); in cam_real_open_device()
|
/freebsd/sys/cam/ata/ |
H A D | ata_xpt.c | 941 if (path->device->serial_num != NULL) { in aprobedone() 942 free(path->device->serial_num, M_CAMXPT); in aprobedone() 943 path->device->serial_num = NULL; in aprobedone() 951 path->device->serial_num = in aprobedone() 954 if (path->device->serial_num != NULL) { in aprobedone() 956 path->device->serial_num, in aprobedone() 958 path->device->serial_num[sizeof(ident_buf->serial)] in aprobedone() 961 strlen(path->device->serial_num); in aprobedone() 1649 device->serial_num = NULL; in ata_alloc_device() 1741 memcpy(cdai->buf, device->serial_num, amt); in ata_dev_advinfo()
|
/freebsd/contrib/wpa/src/eap_server/ |
H A D | eap_i.h | 161 char *serial_num; member
|
H A D | eap_server_tls.c | 209 if (sm->serial_num) { in eap_tls_buildReq() 214 sm->serial_num); in eap_tls_buildReq()
|
H A D | eap_server_tls_common.c | 369 if (!sm->serial_num && in eap_server_tls_phase1() 371 sm->serial_num = tls_connection_peer_serial_num( in eap_server_tls_phase1()
|
/freebsd/sys/cam/ |
H A D | cam_xpt_internal.h | 133 uint8_t *serial_num; member
|
H A D | cam_xpt.c | 1081 path->device->serial_num); in xpt_announce_periph_sbuf() 1152 sbuf_printf(sb, " s/n %.60s", path->device->serial_num); in xpt_denounce_periph_sbuf() 2714 && (dev->serial_num != NULL)) in xpt_action_default() 2715 bcopy(dev->serial_num, cgd->serial_num, in xpt_action_default() 4869 free(device->serial_num, M_CAMXPT); in xpt_release_device()
|
H A D | cam_periph.c | 276 path->device->serial_num); in cam_periph_alloc() 2141 sbuf_bcat(&sb, cgd->serial_num, cgd->serial_num_len); in cam_periph_devctl_notify()
|
/freebsd/contrib/wpa/src/ap/ |
H A D | authsrv.c | 177 data->peer_cert.serial_num ? data->peer_cert.serial_num : "N/A", in authsrv_tls_event()
|
/freebsd/contrib/wpa/src/crypto/ |
H A D | tls_openssl.c | 1808 char *serial_num; in tls_connection_peer_serial_num() local 1819 serial_num = os_malloc(len); in tls_connection_peer_serial_num() 1820 if (!serial_num) in tls_connection_peer_serial_num() 1822 wpa_snprintf_hex_uppercase(serial_num, len, in tls_connection_peer_serial_num() 1825 return serial_num; in tls_connection_peer_serial_num() 2374 char serial_num[128]; in openssl_tls_cert_event() local 2405 wpa_snprintf_hex_uppercase(serial_num, sizeof(serial_num), in openssl_tls_cert_event() 2408 ev.peer_cert.serial_num = serial_num; in openssl_tls_cert_event() 5604 char serial_num[128]; in openssl_debug_dump_certificate() local 5613 wpa_snprintf_hex_uppercase(serial_num, sizeof(serial_num), in openssl_debug_dump_certificate() [all …]
|
H A D | tls.h | 60 const char *serial_num; member
|
/freebsd/sys/fs/udf/ |
H A D | ecma167-udf.h | 54 uint16_t serial_num; member
|
/freebsd/contrib/wpa/src/radius/ |
H A D | radius_server.c | 743 const char *serial_num; in db_update_last_msk() local 748 serial_num = eap_get_serial_num(sess->eap); in db_update_last_msk() 749 if (serial_num) { in db_update_last_msk() 750 id_len = 5 + os_strlen(serial_num) + 1; in db_update_last_msk() 754 os_snprintf(id_str, id_len, "cert-%s", serial_num); in db_update_last_msk()
|
/freebsd/usr.sbin/ctladm/ |
H A D | ctladm.c | 2421 char *serial_num = NULL; in cctl_create_lun() 2484 serial_num = strdup(optarg); in cctl_create_lun() 2523 if (serial_num != NULL) { in cctl_create_lun() 2524 strlcpy(req.reqdata.create.serial_num, serial_num, in cctl_create_lun() 2525 sizeof(req.reqdata.create.serial_num)); in cctl_create_lun() 2574 fprintf(stdout, "Serial Number: %s\n", req.reqdata.create.serial_num); in cctl_create_lun() 4188 " [-S serial_num] [-t dev_type]\n" in usage() 4259 "-S serial_num : SCSI VPD page 0x80 serial number\n" in usage() 2422 char *serial_num = NULL; cctl_create_lun() local
|
/freebsd/sys/cam/mmc/ |
H A D | mmc_xpt.c | 201 device->serial_num = NULL; in mmc_alloc_device() 359 memcpy(cdai->buf, device->serial_num, amt); in mmc_dev_advinfo()
|
/freebsd/usr.sbin/ctld/ |
H A D | kernel.c | 725 strncpy(req.reqdata.create.serial_num, lun->l_serial, in kernel_lun_add() 726 sizeof(req.reqdata.create.serial_num)); in kernel_lun_add()
|
/freebsd/sys/dev/usb/storage/ |
H A D | umass.c | 2231 if (vpd_serial->length > sizeof(vpd_serial->serial_num)) in umass_cam_action() 2232 vpd_serial->length = sizeof(vpd_serial->serial_num); in umass_cam_action() 2233 memcpy(vpd_serial->serial_num, pserial, vpd_serial->length); in umass_cam_action()
|