/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | cplmatch.c | 172 if(!cpl) { in new_WordCompletion() 240 if(cpl) { in del_WordCompletion() 241 cpl->err = _del_ErrMsg(cpl->err); in del_WordCompletion() 242 cpl->sg = _del_StringGroup(cpl->sg); in del_WordCompletion() 247 cpl->cf = _del_CompleteFile(cpl->cf); in del_WordCompletion() 303 if(!cpl) in cpl_add_completion() 314 if(cpl->result.nmatch+1 > cpl->matches_dim) { in cpl_add_completion() 365 qsort(cpl->result.matches, cpl->result.nmatch, in cpl_sort_matches() 394 qsort(cpl->result.matches, cpl->result.nmatch, in cpl_sort_suffixes() 609 return (!cpl || *_err_get_msg(cpl->err)!='\0') ? NULL : &cpl->result; in cpl_recall_matches() [all …]
|
H A D | cplfile.c | 91 static int cf_complete_username(CompleteFile *cf, WordCompletion *cpl, 95 static int cf_complete_entry(CompleteFile *cf, WordCompletion *cpl, 111 WordCompletion *cpl; /* The string-completion rsource object */ member 234 int _cf_complete_file(WordCompletion *cpl, CompleteFile *cf, in _cf_complete_file() argument 244 if(!cpl || !cf || !line || word_end < word_start) { in _cf_complete_file() 438 if(cpl_add_completion(cpl, line, lptr-line, word_end, FS_DIR_SEP, in _cf_complete_file() 440 _err_record_msg(cf->err, cpl_last_error(cpl), END_ERR_MSG); in _cf_complete_file() 531 args.cpl = cpl; in cf_complete_username() 558 WordCompletion *cpl = args->cpl; in HOME_DIR_FN() local 574 strncpy(errmsg, cpl_last_error(cpl), maxerr); in HOME_DIR_FN() [all …]
|
H A D | pcache.c | 1229 if(!cpl) in CPL_MATCH_FN() 1232 cpl_record_error(cpl, "pca_path_completions: Invalid arguments."); in CPL_MATCH_FN() 1244 cpl_record_error(cpl, in CPL_MATCH_FN() 1260 cpl_record_error(cpl, "Unable to find the start of the file name."); in CPL_MATCH_FN() 1281 return cpl_file_completions(cpl, pc->cfc, line, word_end); in CPL_MATCH_FN() 1373 if(cpl_add_completion(cpl, line, word_start, word_end, pc->path->name, in CPL_MATCH_FN() 1411 cpl_add_completion(cpl, line, word_start, word_end, pc->path->name, in CPL_MATCH_FN()
|
H A D | cplfile.h | 81 int _cf_complete_file(WordCompletion *cpl, CompleteFile *cf,
|
/illumos-gate/usr/src/cmd/dumpcs/ |
H A D | dumpcs.c | 46 static unsigned int cpl; /* current characters per line */ variable 162 cpl = 0; 200 if (!cpl) { 243 cpl++; 244 cpl = cpl % cplmax;
|
/illumos-gate/usr/src/lib/libtecla/ |
H A D | libtecla.h | 292 WordCompletion *del_WordCompletion(WordCompletion *cpl); 317 #define CPL_MATCH_FN(fn) int (fn)(WordCompletion *cpl, void *data, \ 439 void cpl_record_error(WordCompletion *cpl, const char *errmsg); 1568 int cpl_add_completion(WordCompletion *cpl, const char *line, 1618 CplMatches *cpl_complete_word(WordCompletion *cpl, const char *line, 1640 CplMatches *cpl_recall_matches(WordCompletion *cpl); 1665 const char *cpl_last_error(WordCompletion *cpl);
|
/illumos-gate/usr/src/cmd/bhyve/ |
H A D | task_switch.c | 285 sup_paging.cpl = 0; /* implicit supervisor mode */ in read_tss_descriptor() 328 int cpl, dpl, rpl; in validate_seg_desc() local 383 sup_paging.cpl = 0; /* implicit supervisor mode */ in validate_seg_desc() 410 cpl = cs & SEL_RPL_MASK; in validate_seg_desc() 414 if (stackseg && (rpl != cpl || dpl != cpl)) { in validate_seg_desc() 421 if ((conforming && (cpl < dpl)) || in validate_seg_desc() 422 (!conforming && (cpl != dpl))) { in validate_seg_desc() 438 if (!conforming && (rpl > dpl || cpl > dpl)) { in validate_seg_desc() 602 ts->paging.cpl = tss->tss_cs & SEL_RPL_MASK; in tss32_restore() 639 assert(cpl >= 0 && cpl <= 3); in alignment_check() [all …]
|
/illumos-gate/usr/src/uts/common/io/chxge/ |
H A D | pe.c | 302 struct cpl_tx_pkt *cpl; in pe_start() local 353 cpl = (struct cpl_tx_pkt *)mp->b_rptr; in pe_start() 354 cpl->opcode = CPL_TX_PKT; in pe_start() 356 cpl->ip_csum_dis = 1; /* no IP header cksum */ in pe_start() 357 cpl->l4_csum_dis = in pe_start() 359 cpl->vlan_valid = 0; /* no vlan */ in pe_start() 1648 struct cpl_tx_pkt *cpl; in pe_make_fake_arp() local 1657 cpl = (struct cpl_tx_pkt *)bp->b_rptr; in pe_make_fake_arp() 1658 cpl->opcode = CPL_TX_PKT; in pe_make_fake_arp() 1661 cpl->l4_csum_dis = 1; /* no tcp/udp cksum */ in pe_make_fake_arp() [all …]
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_sge.c | 753 struct cpl_rx_pkt *cpl; in t4_ring_rx() local 775 cpl = (void *)(rss + 1); in t4_ring_rx() 2946 cpl = (void *)(lso + 1); in write_txpkt_wr() 2950 cpl = (void *)(wr + 1); in write_txpkt_wr() 2964 cpl->pack = 0; in write_txpkt_wr() 2986 dst = (void *)(cpl + 1); in write_txpkt_wr() 3066 cpl = (void *)flitp; in write_ulp_cpl_sgl() 3069 cpl->pack = 0; in write_ulp_cpl_sgl() 3073 flitp += sizeof (*cpl); in write_ulp_cpl_sgl() 3437 if (cpl->type == FW_TYPE_RSSCPL || cpl->type == FW6_TYPE_RSSCPL) { in handle_fw_rpl() [all …]
|
H A D | offload.h | 47 #define INIT_TP_WR_MIT_CPL(w, cpl, tid) do { \ argument 49 OPCODE_TID(w) = htonl(MK_OPCODE_TID(cpl, tid)); \
|
/illumos-gate/usr/src/cmd/idmap/idmap/ |
H A D | idmap_engine.c | 272 (void) cpl_add_completion(cpl, line, word_end, in CPL_MATCH_FN() 288 (void) cpl_add_completion(cpl, line, in CPL_MATCH_FN() 320 (void) cpl_add_completion(cpl, line, in CPL_MATCH_FN() 329 (void) cpl_add_completion(cpl, line, in CPL_MATCH_FN()
|
/illumos-gate/usr/src/cmd/svc/svccfg/ |
H A D | svccfg_engine.c | 181 cpl_record_error(cpl, "Out of memory."); in CPL_MATCH_FN() 187 ret = cpl_file_completions(cpl, cfc, line, word_end); in CPL_MATCH_FN() 234 add_cmd_matches(WordCompletion *cpl, const char *line, int word_end, in add_cmd_matches() argument 251 err = cpl_add_completion(cpl, line, word_start, in add_cmd_matches() 279 return (complete_command(cpl, (void *)arg0, line, word_end)); in CPL_MATCH_FN() 294 return (cip->complete_args_f(cpl, (void *)arg1, line, in CPL_MATCH_FN()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/nwamcfg/ |
H A D | nwamcfg.c | 544 err = cpl_add_completion(cpl, line1, 0, word_end, in add_stuff() 568 return (add_stuff(cpl, line, global_create_cmds, in CPL_MATCH_FN() 571 return (add_stuff(cpl, line, global_destroy_cmds, in CPL_MATCH_FN() 574 return (add_stuff(cpl, line, global_export_cmds, in CPL_MATCH_FN() 577 return (add_stuff(cpl, line, global_list_cmds, in CPL_MATCH_FN() 580 return (add_stuff(cpl, line, global_select_cmds, in CPL_MATCH_FN() 590 return (add_stuff(cpl, line, ncp_create_cmds, in CPL_MATCH_FN() 593 return (add_stuff(cpl, line, ncp_destroy_cmds, in CPL_MATCH_FN() 596 return (add_stuff(cpl, line, ncp_export_cmds, in CPL_MATCH_FN() 599 return (add_stuff(cpl, line, ncp_list_cmds, word_end)); in CPL_MATCH_FN() [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4_subr.c | 1093 struct chtab *cpl; in clreclaim4_zone() local 1127 cpl = ch->ch_list; in clreclaim4_zone() 1129 while (cpl != NULL && in clreclaim4_zone() 1130 cpl->ch_freed + cl_holdtime > gethrestime_sec()) { in clreclaim4_zone() 1131 cpp = &cpl->ch_list; in clreclaim4_zone() 1132 cpl = cpl->ch_list; in clreclaim4_zone() 1134 if (cpl != NULL) { in clreclaim4_zone() 1137 cpe = cpl; in clreclaim4_zone() 1142 cp = cpl; in clreclaim4_zone() 1163 cpl = cp->ch_list; in clreclaim4_zone() [all …]
|
H A D | nfs_subr.c | 648 struct chtab *cpl; in clreclaim_zone() local 681 cpl = ch->ch_list; in clreclaim_zone() 683 while (cpl != NULL && in clreclaim_zone() 684 cpl->ch_freed + cl_holdtime > gethrestime_sec()) { in clreclaim_zone() 685 cpp = &cpl->ch_list; in clreclaim_zone() 686 cpl = cpl->ch_list; in clreclaim_zone() 688 if (cpl != NULL) { in clreclaim_zone() 691 cpe = cpl; in clreclaim_zone() 696 cp = cpl; in clreclaim_zone() 717 cpl = cp->ch_list; in clreclaim_zone() [all …]
|
/illumos-gate/usr/src/uts/intel/io/vmm/ |
H A D | vmm_instruction_emul.c | 478 static int vie_alignment_check(int cpl, int size, uint64_t cr0, uint64_t rf, 802 if (vie->paging.cpl != 0) { in vie_emulate_mov_cr() 825 if (vie->paging.cpl != 0) { in vie_emulate_mov_cr() 1133 if (vie_alignment_check(paging->cpl, opsize, cr0, rflags, *gla)) { in vie_get_gla() 2046 if (vie_alignment_check(paging->cpl, size, cr0, rflags, stack_gla)) { in vie_emulate_stack_op() 2213 if (vie->paging.cpl != 0) { in vie_emulate_clts() 2777 vie_alignment_check(int cpl, int size, uint64_t cr0, uint64_t rf, uint64_t gla) in vie_alignment_check() argument 2781 KASSERT(cpl >= 0 && cpl <= 3, ("%s: invalid cpl %d", __func__, cpl)); in vie_alignment_check() 2783 if (cpl != 3 || (cr0 & CR0_AM) == 0 || (rf & PSL_AC) == 0) in vie_alignment_check() 3099 const bool usermode = paging->cpl == 3; in _vm_gla2gpa()
|
/illumos-gate/usr/src/cmd/fm/modules/common/fabric-xlate/ |
H A D | fx_fire.c | 286 pcie_cpl_t *cpl = (pcie_cpl_t *)&data->pcie_ue_hdr[1]; in fab_xlate_fire_oe() local 287 switch (cpl->status) { in fab_xlate_fire_oe()
|
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | getdment.c | 594 char *cp, *cpl, **darp; in dmap_dlexpand() local 621 while ((cp = strtok_r(cp, " ", &cpl)) != NULL) { in dmap_dlexpand()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/tftp/ |
H A D | main.c | 178 cmdmatch(WordCompletion *cpl, void *data, const char *line, int word_end) in cmdmatch() argument 193 rc = cpl_add_completion(cpl, line, 0, in cmdmatch() 206 rc = cpl_add_completion(cpl, line, 0, in cmdmatch()
|
/illumos-gate/usr/src/cmd/zonecfg/ |
H A D | zonecfg.c | 629 err = cpl_add_completion(cpl, line1, 0, word_end, in add_stuff() 649 return (add_stuff(cpl, line, add_cmds, word_end)); in CPL_MATCH_FN() 651 return (add_stuff(cpl, line, clear_cmds, word_end)); in CPL_MATCH_FN() 653 return (add_stuff(cpl, line, select_cmds, word_end)); in CPL_MATCH_FN() 655 return (add_stuff(cpl, line, set_cmds, word_end)); in CPL_MATCH_FN() 657 return (add_stuff(cpl, line, remove_cmds, word_end)); in CPL_MATCH_FN() 659 return (add_stuff(cpl, line, info_cmds, word_end)); in CPL_MATCH_FN() 660 return (add_stuff(cpl, line, global_scope_cmds, word_end)); in CPL_MATCH_FN() 664 return (add_stuff(cpl, line, fs_res_scope_cmds, word_end)); in CPL_MATCH_FN() 666 return (add_stuff(cpl, line, net_res_scope_cmds, word_end)); in CPL_MATCH_FN() [all …]
|
/illumos-gate/usr/src/uts/intel/sys/ |
H A D | vmm.h | 214 int cpl; member
|
/illumos-gate/usr/src/lib/krb5/ss/ |
H A D | listen.c | 118 ret = cpl_add_completion(cpl, line, ws, in CPL_MATCH_FN()
|
/illumos-gate/usr/src/contrib/bhyve/dev/nvme/ |
H A D | nvme.h | 1630 struct nvme_completion cpl; member 1668 #define nvme_completion_is_error(cpl) \ argument 1669 (NVME_STATUS_GET_SC((cpl)->status) != 0 || NVME_STATUS_GET_SCT((cpl)->status) != 0)
|
/illumos-gate/usr/src/uts/intel/io/vmm/amd/ |
H A D | vmcb.h | 345 uint8_t cpl; /* 0xCB: CPL (real mode: 0, virt: 3) */ member
|
H A D | svm.c | 574 paging->cpl = state->cpl; in svm_paging_info() 2326 vmcb->state.cpl = SEG_DESC_DPL(desc->access); in svm_setdesc() 2390 (vmcb->state.cpl & SEG_DESC_DPL_MASK) << in svm_getdesc()
|