/freebsd/usr.sbin/mptutil/ |
H A D | mpt_cam.c | 76 ccb.cdm.num_matches = 0; in fetch_path_id() 77 ccb.cdm.match_buf_len = bufsize; in fetch_path_id() 78 ccb.cdm.matches = calloc(1, bufsize); in fetch_path_id() 81 ccb.cdm.num_patterns = 1; in fetch_path_id() 82 ccb.cdm.pattern_buf_len = bufsize; in fetch_path_id() 83 ccb.cdm.patterns = calloc(1, bufsize); in fetch_path_id() 86 ccb.cdm.patterns[0].type = DEV_MATCH_BUS; in fetch_path_id() 87 b = &ccb.cdm.patterns[0].pattern.bus_pattern; in fetch_path_id() 95 free(ccb.cdm.matches); in fetch_path_id() 96 free(ccb.cdm.patterns); in fetch_path_id() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | GenericTaintChecker.cpp | 508 Rules.emplace_back(CallDescription(CDM::Unspecified, NameParts), in consumeRulesFromConfig() 577 {{CDM::CLibrary, {"fdopen"}}, TR::Source({{ReturnValueIndex}})}, in initTaintRules() 578 {{CDM::CLibrary, {"fopen"}}, TR::Source({{ReturnValueIndex}})}, in initTaintRules() 579 {{CDM::CLibrary, {"freopen"}}, TR::Source({{ReturnValueIndex}})}, in initTaintRules() 580 {{CDM::CLibrary, {"getch"}}, TR::Source({{ReturnValueIndex}})}, in initTaintRules() 581 {{CDM::CLibrary, {"getchar"}}, TR::Source({{ReturnValueIndex}})}, in initTaintRules() 582 {{CDM::CLibrary, {"getchar_unlocked"}}, TR::Source({{ReturnValueIndex}})}, in initTaintRules() 583 {{CDM::CLibrary, {"gets"}}, TR::Source({{0, ReturnValueIndex}})}, in initTaintRules() 584 {{CDM::CLibrary, {"gets_s"}}, TR::Source({{0, ReturnValueIndex}})}, in initTaintRules() 585 {{CDM::CLibrary, {"scanf"}}, TR::Source({{}, 1})}, in initTaintRules() [all …]
|
H A D | STLAlgorithmModeling.cpp | 36 {{CDM::SimpleFunc, {"std", "find"}, 3}, &STLAlgorithmModeling::evalFind}, 37 {{CDM::SimpleFunc, {"std", "find"}, 4}, &STLAlgorithmModeling::evalFind}, 38 {{CDM::SimpleFunc, {"std", "find_if"}, 3}, 40 {{CDM::SimpleFunc, {"std", "find_if"}, 4}, 42 {{CDM::SimpleFunc, {"std", "find_if_not"}, 3}, 44 {{CDM::SimpleFunc, {"std", "find_if_not"}, 4}, 46 {{CDM::SimpleFunc, {"std", "find_first_of"}, 4}, 48 {{CDM::SimpleFunc, {"std", "find_first_of"}, 5}, 50 {{CDM::SimpleFunc, {"std", "find_first_of"}, 6}, 52 {{CDM::SimpleFunc, {"std", "find_end"}, 4}, [all …]
|
H A D | ReturnValueChecker.cpp | 41 {CDM::CXXMethod, {"ARMAsmParser", "Error"}}, 42 {CDM::CXXMethod, {"HexagonAsmParser", "Error"}}, 43 {CDM::CXXMethod, {"LLLexer", "Error"}}, 44 {CDM::CXXMethod, {"LLParser", "Error"}}, 45 {CDM::CXXMethod, {"MCAsmParser", "Error"}}, 46 {CDM::CXXMethod, {"MCAsmParserExtension", "Error"}}, 47 {CDM::CXXMethod, {"TGParser", "Error"}}, 48 {CDM::CXXMethod, {"X86AsmParser", "Error"}}, 50 {CDM::CXXMethod, {"LLParser", "TokError"}}, 51 {CDM::CXXMethod, {"MCAsmParser", "TokError"}}, [all …]
|
H A D | PthreadLockChecker.cpp | 90 {{CDM::CLibrary, {"pthread_mutex_init"}, 2}, 99 {{CDM::CLibrary, {"pthread_mutex_lock"}, 1}, 101 {{CDM::CLibrary, {"pthread_rwlock_rdlock"}, 1}, 103 {{CDM::CLibrary, {"pthread_rwlock_wrlock"}, 1}, 105 {{CDM::CLibrary, {"lck_mtx_lock"}, 1}, 107 {{CDM::CLibrary, {"lck_rw_lock_exclusive"}, 1}, 109 {{CDM::CLibrary, {"lck_rw_lock_shared"}, 1}, 113 {{CDM::CLibrary, {"pthread_mutex_trylock"}, 1}, 115 {{CDM::CLibrary, {"pthread_rwlock_tryrdlock"}, 1}, 117 {{CDM::CLibrary, {"pthread_rwlock_trywrlock"}, 1}, [all …]
|
H A D | InnerPointerChecker.cpp | 39 CallDescription(CDM::CXXMethod, {"std", "basic_string", "append"}), 40 CallDescription(CDM::CXXMethod, {"std", "basic_string", "assign"}), 41 CallDescription(CDM::CXXMethod, {"std", "basic_string", "clear"}), 42 CallDescription(CDM::CXXMethod, {"std", "basic_string", "erase"}), 43 CallDescription(CDM::CXXMethod, {"std", "basic_string", "insert"}), 44 CallDescription(CDM::CXXMethod, {"std", "basic_string", "pop_back"}), 45 CallDescription(CDM::CXXMethod, {"std", "basic_string", "push_back"}), 46 CallDescription(CDM::CXXMethod, {"std", "basic_string", "replace"}), 47 CallDescription(CDM::CXXMethod, {"std", "basic_string", "reserve"}), 48 CallDescription(CDM::CXXMethod, {"std", "basic_string", "resize"}), [all …]
|
H A D | BlockInCriticalSectionChecker.cpp | 158 {/*MatchAs=*/CDM::CXXMethod, 161 {CDM::CXXMethod, {"std", /*"mutex",*/ "unlock"}, 0}), 162 FirstArgMutexDescriptor({CDM::CLibrary, {"pthread_mutex_lock"}, 1}, 163 {CDM::CLibrary, {"pthread_mutex_unlock"}, 1}), 164 FirstArgMutexDescriptor({CDM::CLibrary, {"mtx_lock"}, 1}, 165 {CDM::CLibrary, {"mtx_unlock"}, 1}), 166 FirstArgMutexDescriptor({CDM::CLibrary, {"pthread_mutex_trylock"}, 1}, 167 {CDM::CLibrary, {"pthread_mutex_unlock"}, 1}), 168 FirstArgMutexDescriptor({CDM::CLibrary, {"mtx_trylock"}, 1}, 169 {CDM::CLibrary, {"mtx_unlock"}, 1}), [all …]
|
H A D | ValistChecker.cpp | 103 ValistChecker::VAListAccepters = {{{CDM::CLibrary, {"vfprintf"}, 3}, 2}, 104 {{CDM::CLibrary, {"vfscanf"}, 3}, 2}, 105 {{CDM::CLibrary, {"vprintf"}, 2}, 1}, 106 {{CDM::CLibrary, {"vscanf"}, 2}, 1}, 107 {{CDM::CLibrary, {"vsnprintf"}, 4}, 3}, 108 {{CDM::CLibrary, {"vsprintf"}, 3}, 2}, 109 {{CDM::CLibrary, {"vsscanf"}, 3}, 2}, 110 {{CDM::CLibrary, {"vfwprintf"}, 3}, 2}, 111 {{CDM::CLibrary, {"vfwscanf"}, 3}, 2}, 112 {{CDM::CLibrary, {"vwprintf"}, 2}, 1}, [all …]
|
H A D | SetgidSetuidOrderChecker.cpp | 34 const CallDescription SetuidDesc{CDM::CLibrary, {"setuid"}, 1}; 35 const CallDescription SetgidDesc{CDM::CLibrary, {"setgid"}, 1}; 37 const CallDescription GetuidDesc{CDM::CLibrary, {"getuid"}, 0}; 38 const CallDescription GetgidDesc{CDM::CLibrary, {"getgid"}, 0}; 41 {CDM::CLibrary, {"seteuid"}, 1}, {CDM::CLibrary, {"setegid"}, 1}, 42 {CDM::CLibrary, {"setreuid"}, 2}, {CDM::CLibrary, {"setregid"}, 2}, 43 {CDM::CLibrary, {"setresuid"}, 3}, {CDM::CLibrary, {"setresgid"}, 3}};
|
H A D | BuiltinFunctionChecker.cpp | 39 {CDM::SimpleFunc, {"std", "addressof"}}, // 40 {CDM::SimpleFunc, {"std", "__addressof"}}, // 41 {CDM::SimpleFunc, {"std", "as_const"}}, // 42 {CDM::SimpleFunc, {"std", "forward"}}, // 43 {CDM::SimpleFunc, {"std", "forward_like"}}, // 44 {CDM::SimpleFunc, {"std", "move"}}, // 45 {CDM::SimpleFunc, {"std", "move_if_noexcept"}}, //
|
H A D | StreamChecker.cpp | 335 const CallDescription FCloseDesc = {CDM::CLibrary, {"fclose"}, 1}; 339 {{CDM::CLibrary, {"fopen"}, 2}, 341 {{CDM::CLibrary, {"fdopen"}, 2}, 343 {{CDM::CLibrary, {"freopen"}, 3}, 345 {{CDM::CLibrary, {"tmpfile"}, 0}, 348 {{CDM::CLibrary, {"fread"}, 4}, 351 {{CDM::CLibrary, {"fwrite"}, 4}, 354 {{CDM::CLibrary, {"fgetc"}, 1}, 357 {{CDM::CLibrary, {"fgets"}, 3}, 360 {{CDM::CLibrary, {"getc"}, 1}, [all …]
|
H A D | CastValueChecker.cpp | 60 const CallDescriptionMap<std::pair<CastCheck, CallKind>> CDM = { member in __anon3f9e300b0111::CastValueChecker 61 {{CDM::SimpleFunc, {"llvm", "cast"}, 1}, 63 {{CDM::SimpleFunc, {"llvm", "dyn_cast"}, 1}, 65 {{CDM::SimpleFunc, {"llvm", "cast_or_null"}, 1}, 67 {{CDM::SimpleFunc, {"llvm", "dyn_cast_or_null"}, 1}, 69 {{CDM::CXXMethod, {"clang", "castAs"}, 0}, 71 {{CDM::CXXMethod, {"clang", "getAs"}, 0}, 73 {{CDM::SimpleFunc, {"llvm", "isa"}, 1}, 75 {{CDM::SimpleFunc, {"llvm", "isa_and_nonnull"}, 1}, 468 const auto *Lookup = CDM.lookup(Call); in evalCall()
|
H A D | ErrnoTesterChecker.cpp | 73 {{CDM::SimpleFunc, {"ErrnoTesterChecker_setErrno"}, 1}, 75 {{CDM::SimpleFunc, {"ErrnoTesterChecker_getErrno"}, 0}, 77 {{CDM::SimpleFunc, {"ErrnoTesterChecker_setErrnoIfError"}, 0}, 79 {{CDM::SimpleFunc, {"ErrnoTesterChecker_setErrnoIfErrorRange"}, 0}, 81 {{CDM::SimpleFunc, {"ErrnoTesterChecker_setErrnoCheckState"}, 0},
|
H A D | ContainerModeling.cpp | 75 {{CDM::CXXMethod, {"clear"}, 0}, &ContainerModeling::handleClear}, 76 {{CDM::CXXMethod, {"assign"}, 2}, &ContainerModeling::handleAssign}, 77 {{CDM::CXXMethod, {"push_back"}, 1}, &ContainerModeling::handlePushBack}, 78 {{CDM::CXXMethod, {"emplace_back"}, 1}, 80 {{CDM::CXXMethod, {"pop_back"}, 0}, &ContainerModeling::handlePopBack}, 81 {{CDM::CXXMethod, {"push_front"}, 1}, 83 {{CDM::CXXMethod, {"emplace_front"}, 1}, 85 {{CDM::CXXMethod, {"pop_front"}, 0}, &ContainerModeling::handlePopFront}, 89 {{CDM::CXXMethod, {"insert"}, 2}, &ContainerModeling::handleInsert}, 90 {{CDM::CXXMethod, {"emplace"}, 2}, &ContainerModeling::handleInsert}, [all …]
|
H A D | ErrnoModeling.cpp | 46 {CDM::CLibrary, {"__errno_location"}, 0, 0}, 47 {CDM::CLibrary, {"___errno"}, 0, 0}, 48 {CDM::CLibrary, {"__errno"}, 0, 0}, 49 {CDM::CLibrary, {"_errno"}, 0, 0}, 50 {CDM::CLibrary, {"__error"}, 0, 0}};
|
H A D | CStringChecker.cpp | 131 {{CDM::CLibraryMaybeHardened, {"memcpy"}, 3}, 133 {{CDM::CLibraryMaybeHardened, {"wmemcpy"}, 3}, 135 {{CDM::CLibraryMaybeHardened, {"mempcpy"}, 3}, 137 {{CDM::CLibraryMaybeHardened, {"wmempcpy"}, 3}, 139 {{CDM::CLibrary, {"memcmp"}, 3}, 141 {{CDM::CLibrary, {"wmemcmp"}, 3}, 143 {{CDM::CLibraryMaybeHardened, {"memmove"}, 3}, 145 {{CDM::CLibraryMaybeHardened, {"wmemmove"}, 3}, 147 {{CDM::CLibraryMaybeHardened, {"memset"}, 3}, 149 {{CDM::CLibrary, {"explicit_memset"}, 3}, &CStringChecker::evalMemset}, [all …]
|
/freebsd/usr.bin/iscsictl/ |
H A D | periphs.c | 90 ccb.cdm.match_buf_len = bufsize; in print_periphs() 91 ccb.cdm.matches = (struct dev_match_result *)malloc(bufsize); in print_periphs() 92 if (ccb.cdm.matches == NULL) { in print_periphs() 97 ccb.cdm.num_matches = 0; in print_periphs() 103 ccb.cdm.num_patterns = 0; in print_periphs() 104 ccb.cdm.pattern_buf_len = 0; in print_periphs() 124 || ((ccb.cdm.status != CAM_DEV_MATCH_LAST) in print_periphs() 125 && (ccb.cdm.status != CAM_DEV_MATCH_MORE))) { in print_periphs() 126 xo_warnx("got CAM error %#x, CDM error %d\n", in print_periphs() 127 ccb.ccb_h.status, ccb.cdm.status); in print_periphs() [all …]
|
/freebsd/sys/cam/ |
H A D | cam_xpt.c | 282 static int xptedtmatch(struct ccb_dev_match *cdm); 283 static int xptperiphlistmatch(struct ccb_dev_match *cdm); 1587 struct ccb_dev_match *cdm; in xptedtbusfunc() local 1591 cdm = (struct ccb_dev_match *)arg; in xptedtbusfunc() 1597 if ((cdm->pos.position_type & CAM_DEV_POS_BUS) in xptedtbusfunc() 1598 && (cdm->pos.cookie.bus == bus) in xptedtbusfunc() 1599 && (cdm->pos.position_type & CAM_DEV_POS_TARGET) in xptedtbusfunc() 1600 && (cdm->pos.cookie.target != NULL)) in xptedtbusfunc() 1603 retval = xptbusmatch(cdm->patterns, cdm->num_patterns, bus); in xptedtbusfunc() 1609 cdm->status = CAM_DEV_MATCH_ERROR; in xptedtbusfunc() [all …]
|
/freebsd/lib/libcam/ |
H A D | camlib.c | 295 ccb.cdm.match_buf_len = bufsize; in cam_open_btl() 296 ccb.cdm.matches = (struct dev_match_result *)malloc(bufsize); in cam_open_btl() 297 if (ccb.cdm.matches == NULL) { in cam_open_btl() 303 ccb.cdm.num_matches = 0; in cam_open_btl() 306 ccb.cdm.num_patterns = 1; in cam_open_btl() 307 ccb.cdm.pattern_buf_len = sizeof(struct dev_match_pattern); in cam_open_btl() 308 ccb.cdm.patterns = (struct dev_match_pattern *)malloc( in cam_open_btl() 310 if (ccb.cdm.patterns == NULL) { in cam_open_btl() 313 free(ccb.cdm.matches); in cam_open_btl() 314 ccb.cdm.matches = NULL; in cam_open_btl() [all …]
|
/freebsd/sys/dev/cesa/ |
H A D | cesa.c | 143 struct cesa_dma_mem *cdm; in cesa_alloc_dma_mem_cb() local 149 cdm = arg; in cesa_alloc_dma_mem_cb() 150 cdm->cdm_paddr = segs->ds_addr; in cesa_alloc_dma_mem_cb() 154 cesa_alloc_dma_mem(struct cesa_softc *sc, struct cesa_dma_mem *cdm, in cesa_alloc_dma_mem() argument 159 KASSERT(cdm->cdm_vaddr == NULL, in cesa_alloc_dma_mem() 170 &cdm->cdm_tag); /* dmat */ in cesa_alloc_dma_mem() 178 error = bus_dmamem_alloc(cdm->cdm_tag, &cdm->cdm_vaddr, in cesa_alloc_dma_mem() 179 BUS_DMA_NOWAIT | BUS_DMA_ZERO, &cdm->cdm_map); in cesa_alloc_dma_mem() 187 error = bus_dmamap_load(cdm->cdm_tag, cdm->cdm_map, cdm->cdm_vaddr, in cesa_alloc_dma_mem() 188 size, cesa_alloc_dma_mem_cb, cdm, BUS_DMA_NOWAIT); in cesa_alloc_dma_mem() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/cert/ |
H A D | InvalidPtrChecker.cpp | 51 const CallDescription GetEnvCall{CDM::CLibrary, {"getenv"}, 1}; 54 {{CDM::CLibrary, {"setenv"}, 3}, 56 {{CDM::CLibrary, {"unsetenv"}, 1}, 58 {{CDM::CLibrary, {"putenv"}, 1}, 60 {{CDM::CLibrary, {"_putenv_s"}, 2}, 62 {{CDM::CLibrary, {"_wputenv_s"}, 2}, 71 {{CDM::CLibrary, {"setlocale"}, 2}, 73 {{CDM::CLibrary, {"strerror"}, 1}, 75 {{CDM::CLibrary, {"localeconv"}, 0}, 77 {{CDM::CLibrary, {"asctime"}, 1},
|
/freebsd/sys/contrib/device-tree/Bindings/pci/ |
H A D | snps,dw-pcie-common.yaml | 24 configuration space belongs to the Configuration-Dependent Module (CDM) 28 CDM/ELBI (dbi_cs) and CS2 (dbi_cs2) signals (selector bits). Such 254 snps,enable-cdm-check: 257 Enable automatic checking of CDM (Configuration Dependent Module) 258 registers for data corruption. CDM registers include standard PCIe
|
H A D | designware-pcie.txt | 36 - snps,enable-cdm-check: This is a boolean property and if present enables 37 automatic checking of CDM (Configuration Dependent Module) registers 38 for data corruption. CDM registers include standard PCIe configuration
|
H A D | snps,dw-pcie-ep.yaml | 46 CDM/ELBI = 0 and CS2 = 0 or is a contiguous memory region 53 by setting CDM/ELBI = 0 and CS2 = 1. This is an intermix of 63 can be selected by setting CDM/ELBI = 1 and CS2 = 0 wires or can 70 Unit and Enhanced DMA, which is selected by setting CDM/ELBI = 1
|
H A D | snps,dw-pcie.yaml | 55 CDM/ELBI = 0 and CS2 = 0 or is a contiguous memory region 62 by setting CDM/ELBI = 0 and CS2 = 1. This is an intermix of 72 can be selected by setting CDM/ELBI = 1 and CS2 = 0 wires or can 79 Unit and Enhanced DMA, which is selected by setting CDM/ELBI = 1
|