Home
last modified time | relevance | path

Searched refs:cam_strmatch (Results 1 – 6 of 6) sorted by relevance

/freebsd-14-stable/lib/libcam/tests/
HDcam_test.c39 ATF_TC_WITHOUT_HEAD(cam_strmatch);
40 ATF_TC_BODY(cam_strmatch, tc) in ATF_TC_BODY() argument
43 ATF_CHECK_EQ(0, cam_strmatch("foo", "foo", 3)); in ATF_TC_BODY()
44 ATF_CHECK_NE(0, cam_strmatch("foo", "bar", 3)); in ATF_TC_BODY()
45 ATF_CHECK_NE(0, cam_strmatch("foo", "foobar", 3)); in ATF_TC_BODY()
48 ATF_CHECK_EQ(0, cam_strmatch("fooxuehfxeuf", "foo", 3)); in ATF_TC_BODY()
49 ATF_CHECK_NE(0, cam_strmatch("foo\0bar", "foo", 7)); in ATF_TC_BODY()
52 ATF_CHECK_EQ(0, cam_strmatch("foo ", "foo", 16)); in ATF_TC_BODY()
55 ATF_CHECK_EQ(0, cam_strmatch("foobar", "foo*", 6)); in ATF_TC_BODY()
56 ATF_CHECK_EQ(0, cam_strmatch("foobar", "*bar", 6)); in ATF_TC_BODY()
[all …]
/freebsd-14-stable/sys/cam/ata/
HData_all.c1009 if ((cam_strmatch(ident->model, entry->product, in ata_identify_match()
1011 && (cam_strmatch(ident->revision, entry->revision, in ata_identify_match()
1027 if ((cam_strmatch(ident->model, entry->product, in ata_static_identify_match()
1029 && (cam_strmatch(ident->revision, entry->revision, in ata_static_identify_match()
/freebsd-14-stable/sys/cam/
HDcam.c204 cam_strmatch(const uint8_t *str, const uint8_t *pattern, int str_len) in cam_strmatch() function
213 if (cam_strmatch(str, pattern, str_len) == 0) in cam_strmatch()
HDcam.h392 int cam_strmatch(const uint8_t *str, const uint8_t *pattern, int str_len);
/freebsd-14-stable/sbin/camcontrol/
HDfwdownload.c318 if (!cam_strmatch((const u_char *)vendor, in fw_get_vendor()
/freebsd-14-stable/sys/cam/scsi/
HDscsi_all.c9259 && (cam_strmatch(inq->vendor, entry->vendor, sizeof(inq->vendor)) == 0) in scsi_inquiry_match()
9260 && (cam_strmatch(inq->product, entry->product, in scsi_inquiry_match()
9262 && (cam_strmatch(inq->revision, entry->revision, in scsi_inquiry_match()
9286 && (cam_strmatch(inq->vendor, entry->vendor, sizeof(inq->vendor)) == 0) in scsi_static_inquiry_match()
9287 && (cam_strmatch(inq->product, entry->product, in scsi_static_inquiry_match()
9289 && (cam_strmatch(inq->revision, entry->revision, in scsi_static_inquiry_match()