Searched refs:cam_strmatch (Results 1 – 6 of 6) sorted by relevance
/freebsd/lib/libcam/tests/ |
H A D | cam_test.c | 39 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/sys/cam/ata/ |
H A D | ata_all.c | 1008 if ((cam_strmatch(ident->model, entry->product, in ata_identify_match() 1010 && (cam_strmatch(ident->revision, entry->revision, in ata_identify_match() 1026 if ((cam_strmatch(ident->model, entry->product, in ata_static_identify_match() 1028 && (cam_strmatch(ident->revision, entry->revision, in ata_static_identify_match()
|
/freebsd/sys/cam/ |
H A D | cam.c | 205 cam_strmatch(const uint8_t *str, const uint8_t *pattern, int str_len) in cam_strmatch() function 214 if (cam_strmatch(str, pattern, str_len) == 0) in cam_strmatch()
|
H A D | cam.h | 392 int cam_strmatch(const uint8_t *str, const uint8_t *pattern, int str_len);
|
/freebsd/sbin/camcontrol/ |
H A D | fwdownload.c | 317 if (!cam_strmatch((const u_char *)vendor, in fw_get_vendor()
|
/freebsd/sys/cam/scsi/ |
H A D | scsi_all.c | 9266 && (cam_strmatch(inq->vendor, entry->vendor, sizeof(inq->vendor)) == 0) in scsi_inquiry_match() 9267 && (cam_strmatch(inq->product, entry->product, in scsi_inquiry_match() 9269 && (cam_strmatch(inq->revision, entry->revision, in scsi_inquiry_match() 9293 && (cam_strmatch(inq->vendor, entry->vendor, sizeof(inq->vendor)) == 0) in scsi_static_inquiry_match() 9294 && (cam_strmatch(inq->product, entry->product, in scsi_static_inquiry_match() 9296 && (cam_strmatch(inq->revision, entry->revision, in scsi_static_inquiry_match()
|