bin/sh/histedit.c
594
**add_match(char **matches, size_t i, size_t *size, char *match_copy)
bin/sh/histedit.c
598
matches[i] = match_copy;
bin/sh/histedit.c
601
matches = reallocarray(matches, *size, sizeof(matches[0]));
bin/sh/histedit.c
604
return (matches);
bin/sh/histedit.c
618
char **matches = NULL, **rmatches;
bin/sh/histedit.c
629
if ((matches = malloc(size * sizeof(matches[0]))) == NULL)
bin/sh/histedit.c
655
rmatches = add_match(matches, ++i, &size,
bin/sh/histedit.c
661
matches = rmatches;
bin/sh/histedit.c
668
rmatches = add_match(matches, ++i, &size, strndup(bp + 2, bp[0]));
bin/sh/histedit.c
671
matches = rmatches;
bin/sh/histedit.c
676
rmatches = add_match(matches, ++i, &size, strdup(ap->name));
bin/sh/histedit.c
679
matches = rmatches;
bin/sh/histedit.c
686
rmatches = add_match(matches, ++i, &size, strdup(e.cmdname));
bin/sh/histedit.c
689
matches = rmatches;
bin/sh/histedit.c
694
free(matches);
bin/sh/histedit.c
699
qsort_s(matches + 1, i, sizeof(matches[0]), comparator,
bin/sh/histedit.c
702
const char *l = matches[uniq] + curpos;
bin/sh/histedit.c
703
const char *r = matches[k] + curpos;
bin/sh/histedit.c
711
free(matches[k]);
bin/sh/histedit.c
713
matches[++uniq] = matches[k];
bin/sh/histedit.c
716
matches[uniq + 1] = NULL;
bin/sh/histedit.c
727
matches[0] = strdup(matches[1]);
bin/sh/histedit.c
729
matches[0] = strndup(matches[1], curpos + lcstring);
bin/sh/histedit.c
731
matches[0] = strdup(text);
bin/sh/histedit.c
732
if (matches[0] == NULL) {
bin/sh/histedit.c
734
free(matches[k]);
bin/sh/histedit.c
735
free(matches);
bin/sh/histedit.c
738
return (matches);
crypto/heimdal/kcm/client.c
164
int matches = sscanf(name,"%ld:",&uid);
crypto/heimdal/kcm/client.c
165
if (matches == 0)
crypto/heimdal/kcm/client.c
166
matches = sscanf(name,"%ld",&uid);
crypto/heimdal/kcm/client.c
167
if (matches == 1) {
crypto/openssl/crypto/property/property_parse.c
476
int i = 0, j = 0, matches = 0;
crypto/openssl/crypto/property/property_parse.c
495
matches++;
crypto/openssl/crypto/property/property_parse.c
511
matches++;
crypto/openssl/crypto/property/property_parse.c
522
matches++;
crypto/openssl/crypto/property/property_parse.c
526
return matches;
crypto/openssl/test/igetest.c
298
size_t matches;
crypto/openssl/test/igetest.c
312
matches = 0;
crypto/openssl/test/igetest.c
315
++matches;
crypto/openssl/test/igetest.c
318
if (!TEST_size_t_le(matches, ctsize / 2 + ctsize / 100))
crypto/openssl/test/igetest.c
322
if (!TEST_size_t_gt(matches, ctsize / 2))
crypto/openssl/test/igetest.c
355
size_t matches;
crypto/openssl/test/igetest.c
370
matches = 0;
crypto/openssl/test/igetest.c
373
++matches;
crypto/openssl/test/igetest.c
376
return TEST_size_t_le(matches, sizeof(checktext) / 100);
crypto/openssl/test/igetest.c
386
size_t matches;
crypto/openssl/test/igetest.c
401
matches = 0;
crypto/openssl/test/igetest.c
404
++matches;
crypto/openssl/test/igetest.c
407
return TEST_size_t_le(matches, sizeof(checktext) / 100);
crypto/openssl/test/igetest.c
417
size_t matches;
crypto/openssl/test/igetest.c
432
matches = 0;
crypto/openssl/test/igetest.c
435
++matches;
crypto/openssl/test/igetest.c
438
return TEST_size_t_le(matches, sizeof(checktext) / 100);
lib/libcam/camlib.c
296
ccb.cdm.matches = (struct dev_match_result *)malloc(bufsize);
lib/libcam/camlib.c
297
if (ccb.cdm.matches == NULL) {
lib/libcam/camlib.c
313
free(ccb.cdm.matches);
lib/libcam/camlib.c
314
ccb.cdm.matches = NULL;
lib/libcam/camlib.c
369
switch(ccb.cdm.matches[0].type) {
lib/libcam/camlib.c
375
periph_result = &ccb.cdm.matches[0].result.periph_result;
lib/libcam/camlib.c
377
free(ccb.cdm.matches);
lib/libcam/camlib.c
378
ccb.cdm.matches = NULL;
lib/libcam/camlib.c
396
free(ccb.cdm.matches);
lib/libcam/camlib.c
397
ccb.cdm.matches = NULL;
lib/libdevstat/devstat.c
1033
devstat_buildmatch(char *match_str, struct devstat_match **matches,
lib/libdevstat/devstat.c
1067
*matches = NULL;
lib/libdevstat/devstat.c
1069
*matches = (struct devstat_match *)reallocf(*matches,
lib/libdevstat/devstat.c
1072
if (*matches == NULL) {
lib/libdevstat/devstat.c
1079
bzero(&matches[0][*num_matches], sizeof(struct devstat_match));
lib/libdevstat/devstat.c
1126
if (((*matches)[*num_matches].match_fields &
lib/libdevstat/devstat.c
1140
(*matches)[*num_matches].match_fields |=
lib/libdevstat/devstat.c
1142
(*matches)[*num_matches].device_type |=
lib/libdevstat/devstat.c
1144
(*matches)[*num_matches].num_match_categories++;
lib/libdevstat/devstat.c
1153
if ((*matches)[*num_matches].num_match_categories != (i + 1)) {
lib/libdevstat/devstat.c
553
int numdevs, struct devstat_match *matches, int num_matches,
lib/libdevstat/devstat.c
737
if ((matches[i].match_fields == DEVSTAT_MATCH_NONE)
lib/libdevstat/devstat.c
738
|| (matches[i].num_match_categories <= 0))
lib/libdevstat/devstat.c
744
num_match_categories = matches[i].num_match_categories;
lib/libdevstat/devstat.c
759
if ((((matches[i].match_fields & DEVSTAT_MATCH_TYPE)!=0)
lib/libdevstat/devstat.c
761
(matches[i].device_type & DEVSTAT_TYPE_MASK))
lib/libdevstat/devstat.c
762
&&(((matches[i].match_fields & DEVSTAT_MATCH_PASS)!=0)
lib/libdevstat/devstat.c
763
|| (((matches[i].match_fields &
lib/libdevstat/devstat.c
768
|| (((matches[i].match_fields & DEVSTAT_MATCH_IF) != 0)
lib/libdevstat/devstat.c
770
(matches[i].device_type & DEVSTAT_TYPE_IF_MASK))
lib/libdevstat/devstat.c
771
&&(((matches[i].match_fields & DEVSTAT_MATCH_PASS)!=0)
lib/libdevstat/devstat.c
772
|| (((matches[i].match_fields &
lib/libdevstat/devstat.c
777
|| (((matches[i].match_fields & DEVSTAT_MATCH_PASS)!=0)
lib/libdevstat/devstat.h
162
int numdevs, struct devstat_match *matches,
lib/libdevstat/devstat.h
166
int devstat_buildmatch(char *match_str, struct devstat_match **matches,
sbin/camcontrol/camcontrol.c
3750
matchccb->cdm.matches=(struct dev_match_result *)malloc(bufsize);
sbin/camcontrol/camcontrol.c
3751
if (matchccb->cdm.matches == NULL) {
sbin/camcontrol/camcontrol.c
3793
if (matchccb->cdm.matches[i].type != DEV_MATCH_BUS)
sbin/camcontrol/camcontrol.c
3796
bus_result =&matchccb->cdm.matches[i].result.bus_result;
sbin/camcontrol/camcontrol.c
3848
free(matchccb->cdm.matches);
sbin/camcontrol/camcontrol.c
495
ccb.cdm.matches = (struct dev_match_result *)malloc(bufsize);
sbin/camcontrol/camcontrol.c
496
if (ccb.cdm.matches == NULL) {
sbin/camcontrol/camcontrol.c
531
switch (ccb.cdm.matches[i].type) {
sbin/camcontrol/camcontrol.c
544
&ccb.cdm.matches[i].result.bus_result;
sbin/camcontrol/camcontrol.c
567
&ccb.cdm.matches[i].result.device_result;
sbin/camcontrol/camcontrol.c
631
&ccb.cdm.matches[i].result.periph_result;
sbin/camcontrol/camcontrol.c
658
free(ccb.cdm.matches);
sbin/camcontrol/camcontrol.c
8904
ccb.cdm.matches = (struct dev_match_result *)malloc(bufsize);
sbin/camcontrol/camcontrol.c
8905
if (ccb.cdm.matches == NULL) {
sbin/camcontrol/camcontrol.c
8955
switch (ccb.cdm.matches[i].type) {
sbin/camcontrol/camcontrol.c
8960
&ccb.cdm.matches[i].result.device_result;
sbin/camcontrol/camcontrol.c
8992
&ccb.cdm.matches[i].result.periph_result;
sbin/camcontrol/camcontrol.c
9015
ccb.cdm.matches[i].type);
sbin/camcontrol/camcontrol.c
9030
free(ccb.cdm.matches);
sbin/devd/devd.cc
839
if ((*i)->matches(*this)) {
sbin/devd/devd.hh
136
bool matches(config &) const;
sys/arm64/acpica/acpi_iort.c
444
int i, matches;
sys/arm64/acpica/acpi_iort.c
450
matches = 0;
sys/arm64/acpica/acpi_iort.c
457
matches++;
sys/arm64/acpica/acpi_iort.c
461
if (matches == 0)
sys/arm64/acpica/acpi_iort.c
476
int i, matches, dom;
sys/arm64/acpica/acpi_iort.c
481
matches = 0;
sys/arm64/acpica/acpi_iort.c
513
matches++;
sys/arm64/acpica/acpi_iort.c
517
if (matches == 0)
sys/cam/cam_ccb.h
588
struct dev_match_result *matches;
sys/cam/cam_compat.c
388
dm = ccb->cdm.matches;
sys/cam/cam_periph.c
1025
data_ptrs[1] = (uint8_t **)&ccb->cdm.matches;
sys/cam/cam_periph.c
1030
data_ptrs[0] = (uint8_t **)&ccb->cdm.matches;
sys/cam/cam_periph.c
830
data_ptrs[1] = (uint8_t **)&ccb->cdm.matches;
sys/cam/cam_periph.c
835
data_ptrs[0] = (uint8_t **)&ccb->cdm.matches;
sys/cam/cam_xpt.c
1657
cdm->matches[j].type = DEV_MATCH_BUS;
sys/cam/cam_xpt.c
1658
cdm->matches[j].result.bus_result.path_id = bus->path_id;
sys/cam/cam_xpt.c
1659
cdm->matches[j].result.bus_result.bus_id = bus->sim->bus_id;
sys/cam/cam_xpt.c
1660
cdm->matches[j].result.bus_result.unit_number =
sys/cam/cam_xpt.c
1662
strlcpy(cdm->matches[j].result.bus_result.dev_name,
sys/cam/cam_xpt.c
1664
sizeof(cdm->matches[j].result.bus_result.dev_name));
sys/cam/cam_xpt.c
1797
cdm->matches[j].type = DEV_MATCH_DEVICE;
sys/cam/cam_xpt.c
1798
cdm->matches[j].result.device_result.path_id =
sys/cam/cam_xpt.c
1800
cdm->matches[j].result.device_result.target_id =
sys/cam/cam_xpt.c
1802
cdm->matches[j].result.device_result.target_lun =
sys/cam/cam_xpt.c
1804
cdm->matches[j].result.device_result.protocol =
sys/cam/cam_xpt.c
1807
&cdm->matches[j].result.device_result.inq_data,
sys/cam/cam_xpt.c
1810
&cdm->matches[j].result.device_result.ident_data,
sys/cam/cam_xpt.c
1815
cdm->matches[j].result.device_result.flags =
sys/cam/cam_xpt.c
1818
cdm->matches[j].result.device_result.flags =
sys/cam/cam_xpt.c
1915
cdm->matches[j].type = DEV_MATCH_PERIPH;
sys/cam/cam_xpt.c
1916
cdm->matches[j].result.periph_result.path_id =
sys/cam/cam_xpt.c
1918
cdm->matches[j].result.periph_result.target_id =
sys/cam/cam_xpt.c
1920
cdm->matches[j].result.periph_result.target_lun =
sys/cam/cam_xpt.c
1922
cdm->matches[j].result.periph_result.unit_number =
sys/cam/cam_xpt.c
1924
l = sizeof(cdm->matches[j].result.periph_result.periph_name);
sys/cam/cam_xpt.c
1925
strlcpy(cdm->matches[j].result.periph_result.periph_name,
sys/cam/cam_xpt.c
2074
cdm->matches[j].type = DEV_MATCH_PERIPH;
sys/cam/cam_xpt.c
2075
cdm->matches[j].result.periph_result.path_id =
sys/cam/cam_xpt.c
2083
cdm->matches[j].result.periph_result.target_id =
sys/cam/cam_xpt.c
2086
cdm->matches[j].result.periph_result.target_id =
sys/cam/cam_xpt.c
2090
cdm->matches[j].result.periph_result.target_lun =
sys/cam/cam_xpt.c
2093
cdm->matches[j].result.periph_result.target_lun =
sys/cam/cam_xpt.c
2096
cdm->matches[j].result.periph_result.unit_number =
sys/cam/cam_xpt.c
2098
l = sizeof(cdm->matches[j].result.periph_result.periph_name);
sys/cam/cam_xpt.c
2099
strlcpy(cdm->matches[j].result.periph_result.periph_name,
sys/cam/scsi/scsi_enc_ses.c
911
cdm.matches = &match_result;
sys/cam/scsi/scsi_pass.c
1141
data_ptrs[0] = (uint8_t **)&ccb->cdm.matches;
sys/cam/scsi/scsi_pass.c
1144
data_ptrs[1] = (uint8_t **)&ccb->cdm.matches;
sys/cam/scsi/scsi_pass.c
1324
data_ptrs[1] = (uint8_t **)&ccb->cdm.matches;
sys/cam/scsi/scsi_pass.c
1329
data_ptrs[0] = (uint8_t **)&ccb->cdm.matches;
sys/compat/linuxkpi/common/include/linux/mod_devicetable.h
72
struct dmi_strmatch matches[4];
sys/compat/linuxkpi/common/include/net/cfg80211.h
940
struct cfg80211_wowlan_nd_match *matches[0];
sys/compat/linuxkpi/common/src/linux_dmi.c
119
for (dsi = list; dsi->matches[0].slot != 0; dsi++) {
sys/compat/linuxkpi/common/src/linux_dmi.c
136
int matches = 0;
sys/compat/linuxkpi/common/src/linux_dmi.c
138
for (dsi = sysid; dsi->matches[0].slot != 0; dsi++) {
sys/compat/linuxkpi/common/src/linux_dmi.c
140
matches++;
sys/compat/linuxkpi/common/src/linux_dmi.c
146
return (matches);
sys/compat/linuxkpi/common/src/linux_dmi.c
81
for (i = 0; i < nitems(dsi->matches); i++) {
sys/compat/linuxkpi/common/src/linux_dmi.c
82
slot = dsi->matches[i].slot;
sys/compat/linuxkpi/common/src/linux_dmi.c
88
if (dsi->matches[i].exact_match) {
sys/compat/linuxkpi/common/src/linux_dmi.c
89
if (dmi_match(slot, dsi->matches[i].substr))
sys/compat/linuxkpi/common/src/linux_dmi.c
92
dsi->matches[i].substr) != NULL) {
sys/dev/acpica/acpi.c
1279
bool matches;
sys/dev/acpica/acpi.c
1289
matches = false;
sys/dev/acpica/acpi.c
1304
matches = true;
sys/dev/acpica/acpi.c
1310
matches = true;
sys/dev/acpica/acpi.c
1321
if (matches) {
sys/dev/acpica/acpi.c
1326
matches = true;
sys/dev/acpica/acpi.c
1332
matches = true;
sys/dev/acpica/acpi.c
1336
return matches;
sys/dev/acpica/acpi.c
1350
bool matches;
sys/dev/acpica/acpi.c
1361
matches = false;
sys/dev/acpica/acpi.c
1364
matches = acpi_hint_device_matches_resources(child, name, unit);
sys/dev/acpica/acpi.c
1366
matches = dev_wired_cache_match(cache, child, s);
sys/dev/acpica/acpi.c
1368
if (matches) {
sys/dev/drm2/drmP.h
1732
struct dmi_strmatch matches[4];
sys/dev/drm2/drm_os_freebsd.c
298
for (i = 0; i < nitems(dsi->matches); i++) {
sys/dev/drm2/drm_os_freebsd.c
299
slot = dsi->matches[i].slot;
sys/dev/drm2/drm_os_freebsd.c
306
!strcmp(hw_vendor, dsi->matches[i].substr)) {
sys/dev/drm2/drm_os_freebsd.c
315
!strcmp(hw_prod, dsi->matches[i].substr)) {
sys/dev/drm2/drm_os_freebsd.c
339
for (res = false, dsi = sysid; dsi->matches[0].slot != 0 ; dsi++) {
sys/dev/iwm/if_iwmreg.h
6111
struct iwm_scan_offload_profile_match matches[IWM_SCAN_MAX_PROFILES];
sys/dev/iwx/if_iwxreg.h
7176
struct iwx_scan_offload_profile_match matches[IWX_SCAN_MAX_PROFILES];
sys/dev/pci/pci_user.c
105
u_int32_t matches; /* struct pci_conf ptr */
sys/dev/pci/pci_user.c
1369
(caddr_t)cio->matches +
sys/dev/pci/pci_user.c
159
pci_conf_match_native(struct pci_match_conf *matches, int num_matches,
sys/dev/pci/pci_user.c
164
if ((matches == NULL) || (match_buf == NULL) || (num_matches <= 0))
sys/dev/pci/pci_user.c
171
if (matches[i].flags == PCI_GETCONF_NO_MATCH)
sys/dev/pci/pci_user.c
179
if (((matches[i].flags & PCI_GETCONF_MATCH_DOMAIN) != 0)
sys/dev/pci/pci_user.c
181
matches[i].pc_sel.pc_domain))
sys/dev/pci/pci_user.c
184
if (((matches[i].flags & PCI_GETCONF_MATCH_BUS) != 0)
sys/dev/pci/pci_user.c
185
&& (match_buf->pc_sel.pc_bus != matches[i].pc_sel.pc_bus))
sys/dev/pci/pci_user.c
188
if (((matches[i].flags & PCI_GETCONF_MATCH_DEV) != 0)
sys/dev/pci/pci_user.c
189
&& (match_buf->pc_sel.pc_dev != matches[i].pc_sel.pc_dev))
sys/dev/pci/pci_user.c
192
if (((matches[i].flags & PCI_GETCONF_MATCH_FUNC) != 0)
sys/dev/pci/pci_user.c
193
&& (match_buf->pc_sel.pc_func != matches[i].pc_sel.pc_func))
sys/dev/pci/pci_user.c
196
if (((matches[i].flags & PCI_GETCONF_MATCH_VENDOR) != 0)
sys/dev/pci/pci_user.c
197
&& (match_buf->pc_vendor != matches[i].pc_vendor))
sys/dev/pci/pci_user.c
200
if (((matches[i].flags & PCI_GETCONF_MATCH_DEVICE) != 0)
sys/dev/pci/pci_user.c
201
&& (match_buf->pc_device != matches[i].pc_device))
sys/dev/pci/pci_user.c
204
if (((matches[i].flags & PCI_GETCONF_MATCH_CLASS) != 0)
sys/dev/pci/pci_user.c
205
&& (match_buf->pc_class != matches[i].pc_class))
sys/dev/pci/pci_user.c
208
if (((matches[i].flags & PCI_GETCONF_MATCH_UNIT) != 0)
sys/dev/pci/pci_user.c
209
&& (match_buf->pd_unit != matches[i].pd_unit))
sys/dev/pci/pci_user.c
212
if (((matches[i].flags & PCI_GETCONF_MATCH_NAME) != 0)
sys/dev/pci/pci_user.c
213
&& (strncmp(matches[i].pd_name, match_buf->pd_name,
sys/dev/pci/pci_user.c
225
pci_conf_match32(struct pci_match_conf32 *matches, int num_matches,
sys/dev/pci/pci_user.c
230
if ((matches == NULL) || (match_buf == NULL) || (num_matches <= 0))
sys/dev/pci/pci_user.c
237
if (matches[i].flags == PCI_GETCONF_NO_MATCH)
sys/dev/pci/pci_user.c
245
if (((matches[i].flags & PCI_GETCONF_MATCH_DOMAIN) != 0)
sys/dev/pci/pci_user.c
247
matches[i].pc_sel.pc_domain))
sys/dev/pci/pci_user.c
250
if (((matches[i].flags & PCI_GETCONF_MATCH_BUS) != 0)
sys/dev/pci/pci_user.c
251
&& (match_buf->pc_sel.pc_bus != matches[i].pc_sel.pc_bus))
sys/dev/pci/pci_user.c
254
if (((matches[i].flags & PCI_GETCONF_MATCH_DEV) != 0)
sys/dev/pci/pci_user.c
255
&& (match_buf->pc_sel.pc_dev != matches[i].pc_sel.pc_dev))
sys/dev/pci/pci_user.c
258
if (((matches[i].flags & PCI_GETCONF_MATCH_FUNC) != 0)
sys/dev/pci/pci_user.c
259
&& (match_buf->pc_sel.pc_func != matches[i].pc_sel.pc_func))
sys/dev/pci/pci_user.c
262
if (((matches[i].flags & PCI_GETCONF_MATCH_VENDOR) != 0)
sys/dev/pci/pci_user.c
263
&& (match_buf->pc_vendor != matches[i].pc_vendor))
sys/dev/pci/pci_user.c
266
if (((matches[i].flags & PCI_GETCONF_MATCH_DEVICE) != 0)
sys/dev/pci/pci_user.c
267
&& (match_buf->pc_device != matches[i].pc_device))
sys/dev/pci/pci_user.c
270
if (((matches[i].flags & PCI_GETCONF_MATCH_CLASS) != 0)
sys/dev/pci/pci_user.c
271
&& (match_buf->pc_class != matches[i].pc_class))
sys/dev/pci/pci_user.c
274
if (((matches[i].flags & PCI_GETCONF_MATCH_UNIT) != 0)
sys/dev/pci/pci_user.c
275
&& (match_buf->pd_unit != matches[i].pd_unit))
sys/dev/pci/pci_user.c
278
if (((matches[i].flags & PCI_GETCONF_MATCH_NAME) != 0)
sys/dev/pci/pci_user.c
279
&& (strncmp(matches[i].pd_name, match_buf->pd_name,
sys/dev/pci/pci_user.c
382
pci_conf_match_freebsd6(struct pci_match_conf_freebsd6 *matches, int num_matches,
sys/dev/pci/pci_user.c
387
if ((matches == NULL) || (match_buf == NULL) || (num_matches <= 0))
sys/dev/pci/pci_user.c
397
if (matches[i].flags == PCI_GETCONF_NO_MATCH_FREEBSD6)
sys/dev/pci/pci_user.c
405
if (((matches[i].flags & PCI_GETCONF_MATCH_BUS_FREEBSD6) != 0)
sys/dev/pci/pci_user.c
406
&& (match_buf->pc_sel.pc_bus != matches[i].pc_sel.pc_bus))
sys/dev/pci/pci_user.c
409
if (((matches[i].flags & PCI_GETCONF_MATCH_DEV_FREEBSD6) != 0)
sys/dev/pci/pci_user.c
410
&& (match_buf->pc_sel.pc_dev != matches[i].pc_sel.pc_dev))
sys/dev/pci/pci_user.c
413
if (((matches[i].flags & PCI_GETCONF_MATCH_FUNC_FREEBSD6) != 0)
sys/dev/pci/pci_user.c
414
&& (match_buf->pc_sel.pc_func != matches[i].pc_sel.pc_func))
sys/dev/pci/pci_user.c
417
if (((matches[i].flags & PCI_GETCONF_MATCH_VENDOR_FREEBSD6) != 0)
sys/dev/pci/pci_user.c
418
&& (match_buf->pc_vendor != matches[i].pc_vendor))
sys/dev/pci/pci_user.c
421
if (((matches[i].flags & PCI_GETCONF_MATCH_DEVICE_FREEBSD6) != 0)
sys/dev/pci/pci_user.c
422
&& (match_buf->pc_device != matches[i].pc_device))
sys/dev/pci/pci_user.c
425
if (((matches[i].flags & PCI_GETCONF_MATCH_CLASS_FREEBSD6) != 0)
sys/dev/pci/pci_user.c
426
&& (match_buf->pc_class != matches[i].pc_class))
sys/dev/pci/pci_user.c
429
if (((matches[i].flags & PCI_GETCONF_MATCH_UNIT_FREEBSD6) != 0)
sys/dev/pci/pci_user.c
430
&& (match_buf->pd_unit != matches[i].pd_unit))
sys/dev/pci/pci_user.c
433
if (((matches[i].flags & PCI_GETCONF_MATCH_NAME_FREEBSD6) != 0)
sys/dev/pci/pci_user.c
434
&& (strncmp(matches[i].pd_name, match_buf->pd_name,
sys/dev/pci/pci_user.c
446
pci_conf_match_freebsd6_32(struct pci_match_conf_freebsd6_32 *matches, int num_matches,
sys/dev/pci/pci_user.c
451
if ((matches == NULL) || (match_buf == NULL) || (num_matches <= 0))
sys/dev/pci/pci_user.c
461
if (matches[i].flags == PCI_GETCONF_NO_MATCH_FREEBSD6)
sys/dev/pci/pci_user.c
469
if (((matches[i].flags & PCI_GETCONF_MATCH_BUS_FREEBSD6) != 0) &&
sys/dev/pci/pci_user.c
470
(match_buf->pc_sel.pc_bus != matches[i].pc_sel.pc_bus))
sys/dev/pci/pci_user.c
473
if (((matches[i].flags & PCI_GETCONF_MATCH_DEV_FREEBSD6) != 0) &&
sys/dev/pci/pci_user.c
474
(match_buf->pc_sel.pc_dev != matches[i].pc_sel.pc_dev))
sys/dev/pci/pci_user.c
477
if (((matches[i].flags & PCI_GETCONF_MATCH_FUNC_FREEBSD6) != 0) &&
sys/dev/pci/pci_user.c
478
(match_buf->pc_sel.pc_func != matches[i].pc_sel.pc_func))
sys/dev/pci/pci_user.c
481
if (((matches[i].flags & PCI_GETCONF_MATCH_VENDOR_FREEBSD6) != 0) &&
sys/dev/pci/pci_user.c
482
(match_buf->pc_vendor != matches[i].pc_vendor))
sys/dev/pci/pci_user.c
485
if (((matches[i].flags & PCI_GETCONF_MATCH_DEVICE_FREEBSD6) != 0) &&
sys/dev/pci/pci_user.c
486
(match_buf->pc_device != matches[i].pc_device))
sys/dev/pci/pci_user.c
489
if (((matches[i].flags & PCI_GETCONF_MATCH_CLASS_FREEBSD6) != 0) &&
sys/dev/pci/pci_user.c
490
(match_buf->pc_class != matches[i].pc_class))
sys/dev/pci/pci_user.c
493
if (((matches[i].flags & PCI_GETCONF_MATCH_UNIT_FREEBSD6) != 0) &&
sys/dev/pci/pci_user.c
494
((u_int32_t)match_buf->pd_unit != matches[i].pd_unit))
sys/dev/pci/pci_user.c
497
if (((matches[i].flags & PCI_GETCONF_MATCH_NAME_FREEBSD6) != 0) &&
sys/dev/pci/pci_user.c
498
(strncmp(matches[i].pd_name, match_buf->pd_name,
sys/dev/pci/pci_user.c
571
pci_conf_match(u_long cmd, struct pci_match_conf *matches, int num_matches,
sys/dev/pci/pci_user.c
581
(struct pci_match_conf *)matches, num_matches, match_buf));
sys/dev/pci/pci_user.c
587
return (pci_conf_match32((struct pci_match_conf32 *)matches,
sys/dev/pci/pci_user.c
593
(struct pci_match_conf_freebsd6 *)matches, num_matches,
sys/dev/pci/pci_user.c
598
(struct pci_match_conf_freebsd6_32 *)matches, num_matches,
sys/dev/pci/pci_user.c
796
cio->matches = (void *)(uintptr_t)cio32->matches;
sys/dev/sfxge/common/ef10_nic.c
1699
uint32_t matches;
sys/dev/sfxge/common/ef10_nic.c
1732
matches = (eepmp->modes_mask & port_modes);
sys/dev/sfxge/common/ef10_nic.c
1733
if (matches != 0) {
sys/dev/sfxge/common/ef10_nic.c
1740
port_modes &= ~matches;
sys/isa/isahint.c
107
int line, matches, unit;
sys/isa/isahint.c
129
matches = 0;
sys/isa/isahint.c
147
matches++;
sys/isa/isahint.c
154
matches++;
sys/isa/isahint.c
158
if (matches > 0)
sys/isa/isahint.c
162
matches++;
sys/isa/isahint.c
168
matches++;
sys/isa/isahint.c
174
if (matches > 0) {
sys/kern/subr_sleepqueue.c
1009
bool (*matches)(struct thread *), int pri)
sys/kern/subr_sleepqueue.c
1020
if (matches(td))
sys/kern/subr_sleepqueue.c
1158
sleepq_chains_remove_matching(bool (*matches)(struct thread *))
sys/kern/subr_sleepqueue.c
1171
sleepq_remove_matching(sq, i, matches, 0);
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
1165
int matches = 0;
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
1180
matches++;
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
1187
matches += ipoib_match_gid_pkey_addr(child_priv, gid,
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
1189
if (matches > 1)
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
1194
return matches;
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
1209
int matches = 0;
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
1217
matches += ipoib_match_gid_pkey_addr(priv, gid, pkey_index,
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
1220
if (matches > 1)
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
1224
return matches;
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
1234
int matches;
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
1248
matches = __ipoib_get_net_dev_by_params(dev_list, port, pkey_index,
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
1251
switch (matches) {
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
1262
matches = __ipoib_get_net_dev_by_params(dev_list, port, pkey_index,
sys/ofed/drivers/infiniband/ulp/ipoib/ipoib_main.c
1264
switch (matches) {
sys/sys/pciio.h
103
struct pci_conf *matches; /* match buffer */
sys/sys/sleepqueue.h
91
void sleepq_chains_remove_matching(bool (*matches)(struct thread *));
sys/sys/sleepqueue.h
98
bool (*matches)(struct thread *), int pri);
tests/sys/ses/nondestructive.c
67
regmatch_t matches[1];
tests/sys/ses/nondestructive.c
72
if (regexec(&re, line, 1, matches, 0) == REG_NOMATCH) {
tests/sys/ses/nondestructive.c
76
expected = &line[matches[0].rm_eo];
tests/sys/ses/nondestructive.c
78
elen = strnlen(expected, sizeof(line) - matches[0].rm_eo);
tools/tools/dmardump/dmardump.c
73
pc.matches = &conf;
tools/tools/netmap/nmreplay.c
1388
- the *_parse() function takes argc/argv[], matches the function
tools/tools/pciroms/pciroms.c
187
pc.matches = devs;
usr.bin/grep/grep.h
104
regmatch_t matches[MAX_MATCHES]; /* Matches made */
usr.bin/grep/util.c
635
chkmatch = pc->matches[matchidx - 1];
usr.bin/grep/util.c
640
pc->matches[matchidx - 1] = pmatch;
usr.bin/grep/util.c
645
pc->matches[matchidx++] = pmatch;
usr.bin/grep/util.c
850
match = pc->matches[i];
usr.bin/iscsictl/periphs.c
132
switch (ccb.cdm.matches[i].type) {
usr.bin/iscsictl/periphs.c
136
bus_result = &ccb.cdm.matches[i].result.bus_result;
usr.bin/iscsictl/periphs.c
164
&ccb.cdm.matches[i].result.periph_result;
usr.bin/iscsictl/periphs.c
91
ccb.cdm.matches = (struct dev_match_result *)malloc(bufsize);
usr.bin/iscsictl/periphs.c
92
if (ccb.cdm.matches == NULL) {
usr.bin/systat/devs.c
185
(last_type ==DS_MATCHTYPE_PATTERN) ? matches : NULL,
usr.bin/systat/devs.c
248
free(matches);
usr.bin/systat/devs.c
249
matches = NULL;
usr.bin/systat/devs.c
254
if (devstat_buildmatch(tstr[i], &matches, &num_matches) != 0) {
usr.bin/systat/devs.c
265
s1->dinfo->devices, num_devices, matches, num_matches,
usr.bin/systat/devs.c
89
static struct devstat_match *matches = NULL;
usr.bin/vmstat/vmstat.c
261
if (devstat_buildmatch(optarg, &matches, &num_matches)
usr.bin/vmstat/vmstat.c
449
if (devstat_buildmatch(da, &matches, &num_matches) != 0)
usr.bin/vmstat/vmstat.c
462
num_devices, matches, num_matches, specified_devices,
usr.bin/vmstat/vmstat.c
735
num_devices, matches, num_matches,
usr.bin/vmstat/vmstat.c
88
static struct devstat_match *matches;
usr.bin/whereis/whereis.c
385
regmatch_t matches[2];
usr.bin/whereis/whereis.c
503
matches, 0) == 0 &&
usr.bin/whereis/whereis.c
504
(rlen = matches[1].rm_eo -
usr.bin/whereis/whereis.c
505
matches[1].rm_so) > 0) {
usr.bin/whereis/whereis.c
515
buf + matches[1].rm_so,
usr.sbin/bhyve/amd64/pci_lpc.c
486
pcio.matches = conf;
usr.sbin/bhyve/pci_passthru.c
892
pc.matches = conf;
usr.sbin/ctld/ctld.cc
443
if (ap.matches(sa))
usr.sbin/ctld/ctld.cc
455
if (ap.matches(sa))
usr.sbin/ctld/ctld.hh
83
bool matches(const struct sockaddr *sa) const;
usr.sbin/iostat/iostat.c
184
struct devstat_match *matches;
usr.sbin/iostat/iostat.c
198
matches = NULL;
usr.sbin/iostat/iostat.c
244
if (devstat_buildmatch(optarg, &matches,
usr.sbin/iostat/iostat.c
378
cur.dinfo->devices, num_devices, matches,
usr.sbin/iostat/iostat.c
536
num_devices, matches,
usr.sbin/iostat/iostat.c
573
num_devices, matches,
usr.sbin/iovctl/validate.c
225
regmatch_t matches[2];
usr.sbin/iovctl/validate.c
262
if (regexec(vf_pat, key, nitems(matches), matches, 0) == 0) {
usr.sbin/iovctl/validate.c
263
vf_num = parse_vf_num(key, matches);
usr.sbin/iovctl/validate.c
76
parse_vf_num(const char *key, regmatch_t *matches)
usr.sbin/iovctl/validate.c
80
vf_num = strtoul(key + matches[1].rm_so, NULL, 10);
usr.sbin/kbdmap/kbdmap.c
231
int a, b, matches;
usr.sbin/kbdmap/kbdmap.c
236
matches = sscanf(line,
usr.sbin/kbdmap/kbdmap.c
239
if (matches==3) {
usr.sbin/kbdmap/kbdmap.c
596
int matches;
usr.sbin/kbdmap/kbdmap.c
609
matches = sscanf(p, "%64[^:]:%64[^:]:%256[^:\n]",
usr.sbin/kbdmap/kbdmap.c
611
if (matches == 3) {
usr.sbin/mptutil/mpt_cam.c
105
free(ccb.cdm.matches);
usr.sbin/mptutil/mpt_cam.c
111
ccb.cdm.matches[0].type != DEV_MATCH_BUS) {
usr.sbin/mptutil/mpt_cam.c
112
free(ccb.cdm.matches);
usr.sbin/mptutil/mpt_cam.c
115
*path_id = ccb.cdm.matches[0].result.bus_result.path_id;
usr.sbin/mptutil/mpt_cam.c
116
free(ccb.cdm.matches);
usr.sbin/mptutil/mpt_cam.c
152
ccb.cdm.matches = calloc(1, bufsize);
usr.sbin/mptutil/mpt_cam.c
169
free(ccb.cdm.matches);
usr.sbin/mptutil/mpt_cam.c
179
free(ccb.cdm.matches);
usr.sbin/mptutil/mpt_cam.c
189
free(ccb.cdm.matches);
usr.sbin/mptutil/mpt_cam.c
195
free(ccb.cdm.matches);
usr.sbin/mptutil/mpt_cam.c
198
if (ccb.cdm.matches[0].type != DEV_MATCH_PERIPH) {
usr.sbin/mptutil/mpt_cam.c
200
free(ccb.cdm.matches);
usr.sbin/mptutil/mpt_cam.c
205
r = &ccb.cdm.matches[1].result.periph_result;
usr.sbin/mptutil/mpt_cam.c
208
free(ccb.cdm.matches);
usr.sbin/mptutil/mpt_cam.c
417
ccb.cdm.matches = calloc(1, bufsize);
usr.sbin/mptutil/mpt_cam.c
433
free(ccb.cdm.matches);
usr.sbin/mptutil/mpt_cam.c
441
free(ccb.cdm.matches);
usr.sbin/mptutil/mpt_cam.c
447
free(ccb.cdm.matches);
usr.sbin/mptutil/mpt_cam.c
453
free(ccb.cdm.matches);
usr.sbin/mptutil/mpt_cam.c
461
free(ccb.cdm.matches);
usr.sbin/mptutil/mpt_cam.c
469
if (ccb.cdm.matches[i].type != DEV_MATCH_PERIPH) {
usr.sbin/mptutil/mpt_cam.c
471
free(ccb.cdm.matches);
usr.sbin/mptutil/mpt_cam.c
487
r = &ccb.cdm.matches[i].result.periph_result;
usr.sbin/mptutil/mpt_cam.c
503
free(ccb.cdm.matches);
usr.sbin/mptutil/mpt_cam.c
78
ccb.cdm.matches = calloc(1, bufsize);
usr.sbin/mptutil/mpt_cam.c
95
free(ccb.cdm.matches);
usr.sbin/pciconf/pciconf.c
1231
pc.matches = conf;
usr.sbin/pciconf/pciconf.c
269
pc.matches = conf;
usr.sbin/usbconfig/usbconfig.c
324
uint32_t matches = 0;
usr.sbin/usbconfig/usbconfig.c
390
matches++;
usr.sbin/usbconfig/usbconfig.c
549
if (matches == 0) {