/titanic_41/usr/src/uts/common/inet/tcp/ |
H A D | tcp_misc.c | 75 #define TCP_AC_V4LADDR(acp) ((sin_t *)&(acp)->ac_local) argument 76 #define TCP_AC_V4RADDR(acp) ((sin_t *)&(acp)->ac_remote) argument 77 #define TCP_AC_V4LOCAL(acp) (TCP_AC_V4LADDR(acp)->sin_addr.s_addr) argument 78 #define TCP_AC_V4REMOTE(acp) (TCP_AC_V4RADDR(acp)->sin_addr.s_addr) argument 79 #define TCP_AC_V4LPORT(acp) (TCP_AC_V4LADDR(acp)->sin_port) argument 80 #define TCP_AC_V4RPORT(acp) (TCP_AC_V4RADDR(acp)->sin_port) argument 81 #define TCP_AC_V6LADDR(acp) ((sin6_t *)&(acp)->ac_local) argument 82 #define TCP_AC_V6RADDR(acp) ((sin6_t *)&(acp)->ac_remote) argument 83 #define TCP_AC_V6LOCAL(acp) (TCP_AC_V6LADDR(acp)->sin6_addr) argument 84 #define TCP_AC_V6REMOTE(acp) (TCP_AC_V6RADDR(acp)->sin6_addr) argument [all …]
|
/titanic_41/usr/src/cmd/lastcomm/ |
H A D | lc_pacct.c | 27 ok(int argc, char *argv[], int index, struct acct *acp) in ok() argument 32 if (strcmp(getname(acp->ac_uid), argv[j]) && in ok() 33 strcmp(getdev(acp->ac_tty), argv[j]) && in ok() 34 strncmp(acp->ac_comm, argv[j], fldsiz(acct, ac_comm))) in ok() 44 struct acct *acp; in lc_pacct() local 72 acp = buf + (cc / sizeof (buf[0])) - 1; in lc_pacct() 73 for (; acp >= buf; acp--) { in lc_pacct() 77 if (acp->ac_flag > 0100) { in lc_pacct() 82 if (acp->ac_comm[0] == '\0') in lc_pacct() 83 (void) strcpy(acp->ac_comm, "?"); in lc_pacct() [all …]
|
/titanic_41/usr/src/uts/common/io/aac/ |
H A D | aac.c | 149 #define AAC_CMDQ(acp) (!((acp)->flags & AAC_CMD_SYNC)) argument 1205 aac_set_arq_data_hwerr(struct aac_cmd *acp) in aac_set_arq_data_hwerr() argument 1210 cdbp = (void *)acp->pkt->pkt_cdbp; in aac_set_arq_data_hwerr() 1211 err_blkno = AAC_GETGXADDR(acp->cmdlen, cdbp); in aac_set_arq_data_hwerr() 1212 aac_set_arq_data(acp->pkt, KEY_HARDWARE_ERROR, 0x00, 0x00, err_blkno); in aac_set_arq_data_hwerr() 1236 PCI_MEM_PUT32(softs, device, slotp->acp->fib_size); in aac_send_command() 1242 aac_end_io(struct aac_softstate *softs, struct aac_cmd *acp) in aac_end_io() argument 1244 struct aac_device *dvp = acp->dvp; in aac_end_io() 1245 int q = AAC_CMDQ(acp); in aac_end_io() 1247 if (acp->slotp) { /* outstanding cmd */ in aac_end_io() [all …]
|
H A D | aac_ioctl.c | 54 struct aac_cmd acp; member 188 aac_send_fib(struct aac_softstate *softs, struct aac_cmd *acp) in aac_send_fib() argument 192 acp->flags |= AAC_CMD_NO_CB | AAC_CMD_SYNC; in aac_send_fib() 193 acp->ac_comp = aac_ioctl_complete; in aac_send_fib() 201 rval = aac_do_io(softs, acp); in aac_send_fib() 220 struct aac_cmd *acp; in aac_ioctl_send_fib() local 232 if ((acp = kmem_zalloc(hbalen, KM_NOSLEEP)) == NULL) in aac_ioctl_send_fib() 235 fibp = (struct aac_fib *)(acp + 1); in aac_ioctl_send_fib() 236 acp->fibp = fibp; in aac_ioctl_send_fib() 262 acp->fib_size = fib_size; in aac_ioctl_send_fib() [all …]
|
H A D | aac.h | 222 struct aac_cmd *acp; /* command using this slot */ member
|
/titanic_41/usr/src/cmd/acctadm/ |
H A D | aconf.c | 72 aconf_init(acctconf_t *acp, int type) in aconf_init() argument 81 if (acctctl(type | AC_STATE_GET, &acp->state, in aconf_init() 82 sizeof (acp->state)) == -1) in aconf_init() 86 (void) memset(acp->file, 0, sizeof (acp->file)); in aconf_init() 87 if (acctctl(type | AC_FILE_GET, acp->file, sizeof (acp->file)) == -1) { in aconf_init() 89 (void) strlcpy(acp->file, AC_STR_NONE, in aconf_init() 90 sizeof (acp->file)); in aconf_init() 101 (void) strlcpy(acp->tracked, tracked, sizeof (acp->tracked)); in aconf_init() 102 (void) strlcpy(acp->untracked, untracked, sizeof (acp->untracked)); in aconf_init() 248 aconf_print_type(acctconf_t *acp, FILE *fp, int type) in aconf_print_type() argument [all …]
|
/titanic_41/usr/src/lib/cfgadm_plugins/sbd/common/ |
H A D | ap.c | 438 ap_cmd_t *acp; in ap_cmds_dump() local 444 for (acp = ap_cmds; acp->cmd != CMD_NONE; acp++) { in ap_cmds_dump() 445 dbg("%23s%5x%5x", ap_cmd_name(acp->cmd), acp->cmask, in ap_cmds_dump() 446 acp->omask[AP_NONE]); in ap_cmds_dump() 448 dbg("%9x", acp->omask[i]); in ap_cmds_dump() 511 ap_opt_parse(apd_t *a, ap_cmd_t *acp, const char *options) in ap_opt_parse() argument 533 if (acp->cmd == CMD_PASSTHRU) in ap_opt_parse() 555 omask = acp->omask[a->tgt]; in ap_opt_parse() 638 ap_cmd_t *acp; in ap_cmdp() local 640 for (acp = ap_cmds; acp->cmd != CMD_NONE; acp++) in ap_cmdp() [all …]
|
H A D | ap_sbd.c | 441 ap_ioc_t *acp; in ap_ioc() local 445 for (acp = ap_iocs; acp->cmd != CMD_NONE; acp++) in ap_ioc() 446 if (acp->cmd == cmd) in ap_ioc() 449 DBG("ap_ioc(%d)=0x%x\n", cmd, acp->ioc); in ap_ioc() 451 return (acp->ioc); in ap_ioc()
|
/titanic_41/usr/src/cmd/sgs/rtld/common/ |
H A D | audit.c | 133 Audit_client *acp; in _audit_get_head_client() local 137 for (ALIST_TRAVERSE(hlml->lm_aud_cookies, idx, acp)) { in _audit_get_head_client() 138 if (acp->ac_lmp == almp) in _audit_get_head_client() 139 return (acp); in _audit_get_head_client() 147 Audit_client ac, *acp; in _audit_create_head_client() local 154 if ((acp = alist_append(&(hlml->lm_aud_cookies), &ac, in _audit_create_head_client() 158 return (acp); in _audit_create_head_client() 271 Audit_client *acp; in _audit_objsearch() local 278 if ((acp = _audit_client(AUDINFO(clmp), almp)) == NULL) in _audit_objsearch() 285 nname = (*alp->al_objsearch)(nname, &(acp->ac_cookie), flags); in _audit_objsearch() [all …]
|
H A D | remove.c | 260 Audit_client *acp; in remove_so() local 266 for (ALIST_TRAVERSE(nlml->lm_aud_cookies, idx2, acp)) { in remove_so() 267 if (acp->ac_lmp != lmp) { in remove_so()
|
/titanic_41/usr/src/cmd/adbgen/common/ |
H A D | adbsub.c | 86 do_fmt(char *acp) in do_fmt() argument 91 cp = acp; in do_fmt() 160 acp); in do_fmt() 166 fprintf(stderr, "Unknown format size: %s\n", acp); in do_fmt()
|
/titanic_41/usr/src/cmd/lvm/metassist/layout/ |
H A D | layout_device_cache.c | 609 attr_cache_t *acp = NULL; in add_cached_attributes() local 623 if ((acp = (attr_cache_t *)calloc(1, sizeof (attr_cache_t))) == NULL) { in add_cached_attributes() 627 acp->name = name; in add_cached_attributes() 628 acp->attrs = attrs; in add_cached_attributes() 631 if ((item = dlist_new_item((void *)acp)) == NULL) { in add_cached_attributes() 632 free(acp); in add_cached_attributes()
|
/titanic_41/usr/src/uts/common/inet/sctp/ |
H A D | sctp_error.c | 55 sctp_chunk_hdr_t *acp; in sctp_link_abort() local 60 alen = sizeof (*acp) + (serror != 0 ? (sizeof (*eph) + len) : 0); in sctp_link_abort() 70 acp = (sctp_chunk_hdr_t *)amp->b_rptr; in sctp_link_abort() 71 acp->sch_id = iserror ? CHUNK_ERROR : CHUNK_ABORT; in sctp_link_abort() 72 acp->sch_flags = 0; in sctp_link_abort() 73 acp->sch_len = htons(alen); in sctp_link_abort() 75 SCTP_SET_TBIT(acp); in sctp_link_abort() 83 eph = (sctp_parm_hdr_t *)(acp + 1); in sctp_link_abort()
|
/titanic_41/usr/src/lib/fm/libfmd_adm/common/ |
H A D | fmd_adm.c | 731 fmd_adm_case_one(fmd_adm_caseinfo_t *acp, const char *url_token, in fmd_adm_case_one() argument 738 if ((p = strchr(acp->aci_code, '-')) == NULL || in fmd_adm_case_one() 739 p == acp->aci_code) { in fmd_adm_case_one() 740 acp->aci_url = NULL; in fmd_adm_case_one() 742 dict = alloca((size_t)(p - acp->aci_code) + 1); in fmd_adm_case_one() 743 (void) strncpy(dict, acp->aci_code, in fmd_adm_case_one() 744 (size_t)(p - acp->aci_code)); in fmd_adm_case_one() 745 dict[(size_t)(p - acp->aci_code)] = '\0'; in fmd_adm_case_one() 768 len += strlen(acp->aci_code) + 1; in fmd_adm_case_one() 771 acp->aci_code); in fmd_adm_case_one() [all …]
|
/titanic_41/usr/src/uts/sun4u/sunfire/io/ |
H A D | ac.c | 152 void *acp; /* ac soft state hook */ variable 161 ((struct ac_soft_state *)ddi_get_soft_state(acp, (I))) 186 if ((error = ddi_soft_state_init(&acp, sizeof (struct ac_soft_state), in _init() 191 ddi_soft_state_fini(&acp); in _init() 206 ddi_soft_state_fini(&acp); in _fini() 255 if (ddi_soft_state_zalloc(acp, instance) != DDI_SUCCESS) { in ac_attach() 261 softsp = ddi_get_soft_state(acp, instance); in ac_attach() 352 ddi_soft_state_free(acp, instance); in ac_attach() 368 softsp = ddi_get_soft_state(acp, instance); in ac_detach() 435 ddi_soft_state_free(acp, instance); in ac_detach()
|
/titanic_41/usr/src/uts/i86pc/io/acpi_drv/ |
H A D | acpi_drv.c | 673 struct acpi_drv_ac_state *acp; in acpi_drv_ac_ioctl() local 677 acp = acpi_drv_idx2ac(index); in acpi_drv_ac_ioctl() 678 if (!acp || acp->dev.valid != 1) { in acpi_drv_ac_ioctl() 696 if (!acp || acp->dev.valid != 1) { in acpi_drv_ac_ioctl() 701 if ((ac_state = acpi_drv_ac_present(acp)) == -1) { in acpi_drv_ac_ioctl() 967 acpi_drv_get_psr(struct acpi_drv_ac_state *acp) in acpi_drv_get_psr() argument 969 struct acpi_drv_dev *devp = &acp->dev; in acpi_drv_get_psr() 1484 struct acpi_drv_ac_state *acp = ctx; in acpi_drv_ac_notify() local 1485 struct acpi_drv_dev *devp = &acp->dev; in acpi_drv_ac_notify() 1501 eval = acpi_drv_get_psr(acp); in acpi_drv_ac_notify()
|
/titanic_41/usr/src/lib/fm/libfmd_snmp/common/ |
H A D | problem.c | 145 problem_update_one(const fmd_adm_caseinfo_t *acp, void *arg) in problem_update_one() argument 156 ASSERT(acp->aci_uuid != NULL); in problem_update_one() 158 if ((data = problem_lookup_uuid_exact(acp->aci_uuid)) == NULL) { in problem_update_one() 162 acp->aci_uuid)); in problem_update_one() 169 if ((err = nvlist_dup(acp->aci_event, &data->d_aci_event, 0)) in problem_update_one() 182 data->d_aci_url = strdup(acp->aci_url); in problem_update_one() 223 (void) nvlist_lookup_uint8_array(acp->aci_event, in problem_update_one()
|
/titanic_41/usr/src/uts/common/io/usb/clients/audio/usb_ac/ |
H A D | usb_ac.c | 3528 usb_ac_plumbed_t *acp = (usb_ac_plumbed_t *)argp; in usb_ac_reader() local 3529 usb_ac_state_t *uacp = acp->acp_uacp; in usb_ac_reader() 3536 lh = acp->acp_lh; in usb_ac_reader() 3539 while (acp->acp_flags & ACP_ENABLED) { in usb_ac_reader() 3555 if ((acp->acp_flags & ACP_ENABLED) && mp != NULL && rv == 0) in usb_ac_reader() 3556 rv = usb_ac_read_msg(acp, mp); in usb_ac_reader() 3568 usb_ac_plumb(usb_ac_plumbed_t *acp) in usb_ac_plumb() argument 3570 usb_ac_state_t *uacp = acp->acp_uacp; in usb_ac_plumb() 3582 acp_dip = acp->acp_dip; in usb_ac_plumb() 3597 acp->acp_tqp = ddi_taskq_create(dip, tq_nm, 1, TASKQ_DEFAULTPRI, 0); in usb_ac_plumb() [all …]
|
/titanic_41/usr/src/cmd/fm/fmadm/common/ |
H A D | faulty.c | 1600 dfault_rec(const fmd_adm_caseinfo_t *acp, void *arg) in dfault_rec() argument 1608 if (nvlist_lookup_int64_array(acp->aci_event, FM_SUSPECT_DIAG_TIME, in dfault_rec() 1610 (void) nvlist_lookup_string(acp->aci_event, FM_SUSPECT_UUID, in dfault_rec() 1613 add_fault_record_to_catalog(acp->aci_event, *diag_time, in dfault_rec()
|