/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | cplmatch.c | 83 static void cpl_sort_matches(WordCompletion *cpl); 84 static void cpl_zap_duplicates(WordCompletion *cpl); 85 static void cpl_clear_completions(WordCompletion *cpl); 167 WordCompletion *cpl; /* The object to be returned */ in new_WordCompletion() local 171 cpl = (WordCompletion *) malloc(sizeof(WordCompletion)); in new_WordCompletion() 172 if(!cpl) { in new_WordCompletion() 181 cpl->err = NULL; in new_WordCompletion() 182 cpl->sg = NULL; in new_WordCompletion() 183 cpl->matches_dim = 0; in new_WordCompletion() 184 cpl->result.suffix = NULL; in new_WordCompletion() [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() 304 return cf_complete_username(cf, cpl, cf->usrnam, line, word_start+1, 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() 450 return cf_complete_entry(cf, cpl, line, word_start, word_end, escaped, in _cf_complete_file() 521 static int cf_complete_username(CompleteFile *cf, WordCompletion *cpl, in cf_complete_username() argument [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/cmd/bhyve/amd64/ |
H A D | task_switch.c | 284 sup_paging.cpl = 0; /* implicit supervisor mode */ in read_tss_descriptor() 327 int cpl, dpl, rpl; in validate_seg_desc() local 382 sup_paging.cpl = 0; /* implicit supervisor mode */ in validate_seg_desc() 409 cpl = cs & SEL_RPL_MASK; in validate_seg_desc() 413 if (stackseg && (rpl != cpl || dpl != cpl)) { in validate_seg_desc() 420 if ((conforming && (cpl < dpl)) || in validate_seg_desc() 421 (!conforming && (cpl != dpl))) { in validate_seg_desc() 437 if (!conforming && (rpl > dpl || cpl > dpl)) { in validate_seg_desc() 601 ts->paging.cpl = tss->tss_cs & SEL_RPL_MASK; in tss32_restore() 635 alignment_check(int cpl, int size, uint64_t cr0, uint64_t rf, uint64_t gla) in alignment_check() argument [all …]
|
/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/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() 355 cpl->iff = 0; /* XXX port 0 needs fixing with NEMO */ 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() [all …]
|
/illumos-gate/usr/src/uts/common/io/cxgbe/t4nex/ |
H A D | t4_sge.c | 637 struct cpl_rx_pkt *cpl; in t4_ring_rx() local 659 cpl = (void *)(rss + 1); in t4_ring_rx() 660 pkt_len = be16_to_cpu(cpl->len); in t4_ring_rx() 675 ntohs(cpl->err_vec)); in t4_ring_rx() 677 err_vec = ntohs(cpl->err_vec); in t4_ring_rx() 680 csum_ok = cpl->csum_calc && !err_vec; in t4_ring_rx() 683 if (csum_ok && !cpl->ip_frag) { in t4_ring_rx() 2615 struct cpl_tx_pkt_core *cpl; in write_txpkt_wr() local 2693 cpl = (void *)(lso + 1); in write_txpkt_wr() 2697 cpl = (void *)(wr + 1); in write_txpkt_wr() [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 | 537 add_stuff(WordCompletion *cpl, const char *line1, const char **list, in add_stuff() argument 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() 582 return (add_stuff(cpl, line, global_scope_cmds, word_end)); in CPL_MATCH_FN() 587 return (add_stuff(cpl, line, non_ncp_scope_cmds, word_end)); in CPL_MATCH_FN() 590 return (add_stuff(cpl, line, ncp_create_cmds, 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 | 622 add_stuff(WordCompletion *cpl, const char *line1, const char **list, in add_stuff() argument 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() [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/uts/intel/io/vmm/amd/ |
H A D | vmcb.h | 346 uint8_t cpl; /* 0xCB: CPL (real mode: 0, virt: 3) */ member
|
H A D | svm.c | 550 paging->cpl = state->cpl; in svm_paging_info() 2331 vmcb->state.cpl = SEG_DESC_DPL(desc->access); in svm_setdesc() 2395 (vmcb->state.cpl & SEG_DESC_DPL_MASK) << in svm_getdesc()
|
/illumos-gate/usr/src/contrib/bhyve/dev/nvme/ |
H A D | nvme.h | 1882 struct nvme_completion cpl; member 1920 #define nvme_completion_is_error(cpl) \ argument 1921 (NVME_STATUS_GET_SC((cpl)->status) != 0 || NVME_STATUS_GET_SCT((cpl)->status) != 0)
|