/titanic_44/usr/src/uts/common/io/dls/ |
H A D | dls_link.c | 68 dls_link_t *dlp = buf; in i_dls_link_constructor() local 74 dlp->dl_str_hash = mod_hash_create_idhash(name, IMPL_HASHSZ, in i_dls_link_constructor() 84 dls_link_t *dlp = buf; in i_dls_link_destructor() local 86 ASSERT(dlp->dl_ref == 0); in i_dls_link_destructor() 87 ASSERT(dlp->dl_mh == NULL); in i_dls_link_destructor() 88 ASSERT(dlp->dl_mah == NULL); in i_dls_link_destructor() 89 ASSERT(dlp->dl_unknowns == 0); in i_dls_link_destructor() 91 mod_hash_destroy_idhash(dlp->dl_str_hash); in i_dls_link_destructor() 92 dlp->dl_str_hash = NULL; in i_dls_link_destructor() 142 i_dls_link_subchain(dls_link_t *dlp, mblk_t *mp, const mac_header_info_t *mhip, in i_dls_link_subchain() argument [all …]
|
H A D | dls.c | 41 dls_open(dls_link_t *dlp, dls_dl_handle_t ddh, dld_str_t *dsp) in dls_open() argument 51 if (zid != GLOBAL_ZONEID && dlp->dl_zid != zid) in dls_open() 61 if (!mac_capab_get(dlp->dl_mh, MAC_CAPAB_LEGACY, NULL) && in dls_open() 62 ((err = mac_start(dlp->dl_mh)) != 0)) { in dls_open() 66 local = (zid == dlp->dl_zid); in dls_open() 67 dlp->dl_zone_ref += (local ? 1 : 0); in dls_open() 73 dsp->ds_dlp = dlp; in dls_open() 74 dsp->ds_mh = dlp->dl_mh; in dls_open() 75 dsp->ds_mch = dlp->dl_mch; in dls_open() 76 dsp->ds_mip = dlp->dl_mip; in dls_open() [all …]
|
H A D | dls_stat.c | 62 dls_stat_update(kstat_t *ksp, dls_link_t *dlp, int rw) in dls_stat_update() argument 73 val = mac_stat_get(dlp->dl_mh, i_dls_si[i].msi_stat); in dls_stat_update() 92 if (dlp->dl_mip->mi_nativemedia != DL_ETHER) { in dls_stat_update() 95 val = mac_stat_get(dlp->dl_mh, ETHER_STAT_LINK_DUPLEX); in dls_stat_update() 99 knp->value.ui32 = dlp->dl_unknowns; in dls_stat_update()
|
/titanic_44/usr/src/lib/libdtrace/common/ |
H A D | dt_cg.c | 93 dt_cg_xsetx(dt_irlist_t *dlp, dt_ident_t *idp, uint_t lbl, int reg, uint64_t x) in dt_cg_xsetx() argument 105 dt_irlist_append(dlp, dt_cg_node_alloc(lbl, instr)); in dt_cg_xsetx() 108 dlp->dl_last->di_extern = idp; in dt_cg_xsetx() 112 dt_cg_setx(dt_irlist_t *dlp, int reg, uint64_t x) in dt_cg_setx() argument 114 dt_cg_xsetx(dlp, NULL, DT_LBL_NONE, reg, x); in dt_cg_setx() 188 dt_cg_ptrsize(dt_node_t *dnp, dt_irlist_t *dlp, dt_regset_t *drp, in dt_cg_ptrsize() argument 216 dt_cg_setx(dlp, sreg, size); in dt_cg_ptrsize() 218 dt_irlist_append(dlp, dt_cg_node_alloc(DT_LBL_NONE, instr)); in dt_cg_ptrsize() 240 dt_cg_field_get(dt_node_t *dnp, dt_irlist_t *dlp, dt_regset_t *drp, in dt_cg_field_get() argument 275 dt_cg_setx(dlp, r2, 64 - shift); in dt_cg_field_get() [all …]
|
H A D | dt_list.c | 43 dt_list_append(dt_list_t *dlp, void *new) in dt_list_append() argument 45 dt_list_t *p = dlp->dl_prev; /* p = tail list element */ in dt_list_append() 48 dlp->dl_prev = q; in dt_list_append() 56 assert(dlp->dl_next == NULL); in dt_list_append() 57 dlp->dl_next = q; in dt_list_append() 62 dt_list_prepend(dt_list_t *dlp, void *new) in dt_list_prepend() argument 65 dt_list_t *q = dlp->dl_next; /* q = head list element */ in dt_list_prepend() 67 dlp->dl_next = p; in dt_list_prepend() 75 assert(dlp->dl_prev == NULL); in dt_list_prepend() 76 dlp->dl_prev = p; in dt_list_prepend() [all …]
|
H A D | dt_as.c | 41 dt_irlist_create(dt_irlist_t *dlp) in dt_irlist_create() argument 43 bzero(dlp, sizeof (dt_irlist_t)); in dt_irlist_create() 44 dlp->dl_label = 1; in dt_irlist_create() 48 dt_irlist_destroy(dt_irlist_t *dlp) in dt_irlist_destroy() argument 52 for (dip = dlp->dl_list; dip != NULL; dip = nip) { in dt_irlist_destroy() 59 dt_irlist_append(dt_irlist_t *dlp, dt_irnode_t *dip) in dt_irlist_append() argument 61 if (dlp->dl_last != NULL) in dt_irlist_append() 62 dlp->dl_last->di_next = dip; in dt_irlist_append() 64 dlp->dl_list = dip; in dt_irlist_append() 66 dlp->dl_last = dip; in dt_irlist_append() [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | renew.c | 82 dhcp_lease_t *dlp = arg; in dhcp_renew() local 83 dhcp_smach_t *dsmp = dlp->dl_smach; in dhcp_renew() 89 dlp->dl_t1.dt_id = -1; in dhcp_renew() 93 release_lease(dlp); in dhcp_renew() 102 t2 = dsmp->dsm_curstart_monosec + dlp->dl_t2.dt_start; in dhcp_renew() 106 release_lease(dlp); in dhcp_renew() 122 init_timer(&dlp->dl_t1, RETRY_DELAY); in dhcp_renew() 124 if (!schedule_lease_timer(dlp, &dlp->dl_t1, in dhcp_renew() 136 release_lease(dlp); in dhcp_renew() 155 dhcp_lease_t *dlp = arg; in dhcp_rebind() local [all …]
|
H A D | release.c | 58 dhcp_lease_t *dlp, *dlpn; in send_declines() local 95 for (dlp = dsmp->dsm_leases; dlp != NULL; dlp = dlpn) { in send_declines() 96 dlpn = dlp->dl_next; in send_declines() 97 lif = dlp->dl_lifs; in send_declines() 98 for (nlifs = dlp->dl_nlifs; nlifs > 0; nlifs--, lif = lifn) { in send_declines() 107 if (dlp->dl_nlifs == 0) in send_declines() 108 remove_lease(dlp); in send_declines() 141 dhcp_lease_t *dlp; in dhcp_release() local 163 for (dlp = dsmp->dsm_leases; dlp != NULL; dlp = dlp->dl_next) { in dhcp_release() 164 lif = dlp->dl_lifs; in dhcp_release() [all …]
|
H A D | bound.c | 98 dhcp_lease_t *dlp; in dhcp_bound() local 242 dlp = lif->lif_lease; in dhcp_bound() 244 if (dlp->dl_nlifs == 0) in dhcp_bound() 245 remove_lease(dlp); in dhcp_bound() 261 for (dlp = dsmp->dsm_leases; dlp != NULL; dlp = dlp->dl_next) { in dhcp_bound() 262 if (dlp->dl_stale && dlp->dl_nlifs > 0) in dhcp_bound() 265 if (dlp != NULL) { in dhcp_bound() 514 dhcp_lease_t *dlp; in configure_v4_timers() local 518 dlp = dsmp->dsm_leases; in configure_v4_timers() 519 lif = dlp->dl_lifs; in configure_v4_timers() [all …]
|
H A D | states.c | 679 dhcp_lease_t *dlp; in cancel_smach_timers() local 683 for (dlp = dsmp->dsm_leases; dlp != NULL; dlp = dlp->dl_next) { in cancel_smach_timers() 684 cancel_lease_timers(dlp); in cancel_smach_timers() 685 lif = dlp->dl_lifs; in cancel_smach_timers() 686 nlifs = dlp->dl_nlifs; in cancel_smach_timers() 1353 dhcp_lease_t *dlp; in insert_lease() local 1355 if ((dlp = calloc(1, sizeof (*dlp))) == NULL) in insert_lease() 1357 dlp->dl_smach = dsmp; in insert_lease() 1358 dlp->dl_hold_count = 1; in insert_lease() 1359 init_timer(&dlp->dl_t1, 0); in insert_lease() [all …]
|
H A D | interface.c | 596 dhcp_lease_t *dlp; in remove_lif() local 613 if ((dlp = lif->lif_lease) != NULL) { in remove_lif() 614 if (--dlp->dl_nlifs == 0) in remove_lif() 615 dlp->dl_lifs = NULL; in remove_lif() 616 else if (dlp->dl_lifs == lif) in remove_lif() 617 dlp->dl_lifs = lifnext; in remove_lif() 619 dlp->dl_smach->dsm_lif_down--; in remove_lif() 624 dlp->dl_smach->dsm_lif_wait--; in remove_lif() 1057 dhcp_lease_t *dlp; in unplumb_lif() local 1078 if ((dlp = lif->lif_lease) != NULL && dlp->dl_smach->dsm_lif == lif) { in unplumb_lif() [all …]
|
H A D | agent.c | 1020 dhcp_lease_t *dlp; in ipc_event() local 1029 dlp = dsmp->dsm_leases; in ipc_event() 1031 if (dlp == NULL || in ipc_event() 1032 dlp->dl_lifs->lif_expire.dt_start == DHCP_PERM) { in ipc_event() 1038 dlp->dl_t1.dt_start; in ipc_event() 1040 dlp->dl_t2.dt_start; in ipc_event() 1042 dlp->dl_lifs->lif_expire.dt_start; in ipc_event() 1393 dhcp_lease_t *dlp, *dlnext; in rtsock_event() local 1427 for (dlp = dsmp->dsm_leases; dlp != NULL; dlp = dlnext) { in rtsock_event() 1429 uint_t nlifs = dlp->dl_nlifs; in rtsock_event() [all …]
|
/titanic_44/usr/src/uts/common/io/ |
H A D | sundlpi.c | 51 union DL_primitives *dlp; in dlbindack() local 58 dlp = (union DL_primitives *)mp->b_rptr; in dlbindack() 59 dlp->bind_ack.dl_sap = sap; in dlbindack() 60 dlp->bind_ack.dl_addr_length = addrlen; in dlbindack() 61 dlp->bind_ack.dl_addr_offset = sizeof (dl_bind_ack_t); in dlbindack() 62 dlp->bind_ack.dl_max_conind = maxconind; in dlbindack() 63 dlp->bind_ack.dl_xidtest_flg = xidtest; in dlbindack() 75 union DL_primitives *dlp; in dlokack() local 80 dlp = (union DL_primitives *)mp->b_rptr; in dlokack() 81 dlp->ok_ack.dl_correct_primitive = correct_primitive; in dlokack() [all …]
|
H A D | drcompat.c | 229 union DL_primitives *dlp; in drrput() local 247 dlp = (union DL_primitives *)mp->b_rptr; in drrput() 248 switch (dlp->dl_primitive) { in drrput() 257 switch (dlp->ok_ack.dl_correct_primitive) { in drrput() 286 if (dlp->error_ack.dl_error_primitive != DL_ATTACH_REQ) in drrput() 317 union DL_primitives *dlp; in drwput() local 335 dlp = (union DL_primitives *)mp->b_rptr; in drwput() 336 switch (dlp->dl_primitive) { in drwput() 352 dlp->attach_req.dl_ppa, E_DDI_HOLD_DEVI_NOATTACH); in drwput()
|
H A D | llc1.c | 1001 union DL_primitives *dlp; in llc1_cmds() local 1006 dlp = (union DL_primitives *)mp->b_rptr; in llc1_cmds() 1010 q, mp, dlp, dlp->dl_primitive); in llc1_cmds() 1015 switch (dlp->dl_primitive) { in llc1_cmds() 1078 llc->llc_waiting_for = dlp->dl_primitive; in llc1_cmds() 1095 dlp->dl_primitive); in llc1_cmds() 1113 dl_bind_req_t *dlp; in llc1_bind() local 1123 dlp = (dl_bind_req_t *)mp->b_rptr; in llc1_bind() 1124 sap = dlp->dl_sap; in llc1_bind() 1143 if (dlp->dl_service_mode != DL_CLDLS || dlp->dl_max_conind != 0) { in llc1_bind() [all …]
|
/titanic_44/usr/src/uts/common/io/dld/ |
H A D | dld_proto.c | 147 dl_info_ack_t *dlp; in proto_info_req() local 169 dlp = &(dlwp->dl_info); in proto_info_req() 170 ASSERT(dlp == (dl_info_ack_t *)mp->b_rptr); in proto_info_req() 172 dlp->dl_primitive = DL_INFO_ACK; in proto_info_req() 186 dlp->dl_service_mode = DL_CLDLS; in proto_info_req() 187 dlp->dl_version = DL_VERSION_2; in proto_info_req() 192 dlp->dl_provider_style = dsp->ds_style; in proto_info_req() 193 ASSERT(dlp->dl_provider_style == DL_STYLE1 || in proto_info_req() 194 dlp->dl_provider_style == DL_STYLE2); in proto_info_req() 199 dlp->dl_current_state = dsp->ds_dlstate; in proto_info_req() [all …]
|
H A D | dld_drv.c | 338 dls_link_t *dlp; in drv_ioc_attr() local 356 if ((err = dls_link_hold(dls_devnet_mac(dlh), &dlp)) != 0) { in drv_ioc_attr() 362 mac_sdu_get(dlp->dl_mh, NULL, &diap->dia_max_sdu); in drv_ioc_attr() 364 dls_link_rele(dlp); in drv_ioc_attr() 635 dls_link_t *dlp = NULL; in drv_ioc_prop_common() local 678 if ((err = dls_link_hold(dls_devnet_mac(dlh), &dlp)) != 0) in drv_ioc_prop_common() 736 dlp->dl_tagmode = mode; in drv_ioc_prop_common() 740 *(link_tagmode_t *)kprop->pr_val = dlp->dl_tagmode; in drv_ioc_prop_common() 752 err = mac_set_prop(dlp->dl_mh, kprop->pr_num, in drv_ioc_prop_common() 782 err = mac_prop_info(dlp->dl_mh, kprop->pr_num, kprop->pr_name, in drv_ioc_prop_common() [all …]
|
/titanic_44/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_rtld.c | 49 void *dlp; in rtld_init() local 51 if ((dlp = dlopen(mp->mod_path, RTLD_LOCAL | RTLD_NOW)) == NULL) { in rtld_init() 58 rp->rtld_dlp = dlp; in rtld_init() 59 rp->rtld_init = (void (*)())dlsym(dlp, "_fmd_init"); in rtld_init() 60 rp->rtld_fini = (void (*)())dlsym(dlp, "_fmd_fini"); in rtld_init() 63 (void) dlclose(dlp); in rtld_init() 81 (void) dlclose(dlp); in rtld_init()
|
H A D | fmd_dispq.c | 60 fmd_dispqlist_t *dlp, *nlp; in fmd_dispqelem_destroy() local 64 for (dlp = dep->dq_list; dlp != NULL; dlp = nlp) { in fmd_dispqelem_destroy() 65 nlp = dlp->dq_next; in fmd_dispqelem_destroy() 66 fmd_free(dlp, sizeof (fmd_dispqlist_t)); in fmd_dispqelem_destroy() 146 fmd_dispqlist_t *dlp = fmd_alloc(sizeof (fmd_dispqlist_t), FMD_SLEEP); in fmd_dispq_insert() local 155 dlp->dq_next = dep->dq_list; in fmd_dispq_insert() 156 dlp->dq_eventq = eqp; in fmd_dispq_insert() 158 dep->dq_list = dlp; in fmd_dispq_insert() 238 fmd_dispqlist_t *dlp; in fmd_dispq_dispatch_one() local 241 for (dlp = dep->dq_list; dlp != NULL; dlp = dlp->dq_next, n++) { in fmd_dispq_dispatch_one() [all …]
|
/titanic_44/usr/src/uts/common/io/softmac/ |
H A D | softmac_pkt.c | 103 union DL_primitives *dlp; in softmac_output() local 141 dlp = (union DL_primitives *)mp->b_rptr; in softmac_output() 143 if (dlp->dl_primitive == DL_ERROR_ACK) { in softmac_output() 144 err = dlpi_get_errno(dlp->error_ack.dl_errno, in softmac_output() 145 dlp->error_ack.dl_unix_errno); in softmac_output() 147 ASSERT(dlp->dl_primitive == ack); in softmac_output() 195 union DL_primitives *dlp; in softmac_mexchange_error_ack() local 201 dlp = (union DL_primitives *)(*mpp)->b_rptr; in softmac_mexchange_error_ack() 202 dlp->error_ack.dl_error_primitive = error_primitive; in softmac_mexchange_error_ack() 203 dlp->error_ack.dl_errno = error; in softmac_mexchange_error_ack() [all …]
|
H A D | softmac_ctl.c | 350 union DL_primitives *dlp = (union DL_primitives *)mp->b_rptr; in softmac_rput_process_proto() local 359 primstr = dl_primstr(dlp->dl_primitive); in softmac_rput_process_proto() 361 switch (dlp->dl_primitive) { in softmac_rput_process_proto() 367 dlp->ok_ack.dl_correct_primitive); in softmac_rput_process_proto() 375 dlp->error_ack.dl_error_primitive); in softmac_rput_process_proto() 450 union DL_primitives *dlp; in softmac_rput_process_notdata() local 468 dlp = (union DL_primitives *)mp->b_rptr; in softmac_rput_process_notdata() 469 ASSERT(len >= sizeof (dlp->dl_primitive)); in softmac_rput_process_notdata() 470 switch (dlp->dl_primitive) { in softmac_rput_process_notdata() 480 if (dlp->ok_ack.dl_correct_primitive == DL_UNBIND_REQ) { in softmac_rput_process_notdata() [all …]
|
/titanic_44/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_rtld.c | 71 void *dlp; in rtld_init() local 73 if ((dlp = dlopen(mod->tm_path, RTLD_LOCAL | RTLD_NOW)) == NULL) { in rtld_init() 83 rp->rtld_dlp = dlp; in rtld_init() 84 rp->rtld_init = (int (*)())dlsym(dlp, "_topo_init"); in rtld_init() 85 rp->rtld_fini = (void (*)())dlsym(dlp, "_topo_fini"); in rtld_init() 88 (void) dlclose(dlp); in rtld_init()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/pppoe/ |
H A D | options.c | 346 free_device_list(struct device_list *dlp) in free_device_list() argument 350 while (dlp != NULL) { in free_device_list() 351 dln = dlp->dl_next; in free_device_list() 352 free(dlp); in free_device_list() 353 dlp = dln; in free_device_list() 534 struct device_list *dlp; in set_device() local 553 dlpp = &dlp; in set_device() 590 *dlpp = dlp; in set_device() 1219 count_devs(struct device_list *dlp) in count_devs() argument 1224 for (; dlp != NULL; dlp = dlp->dl_next) in count_devs() [all …]
|
/titanic_44/usr/src/cmd/mdb/common/kmdb/ |
H A D | kmdb_dl.c | 76 dlclose(void *dlp) in dlclose() argument 78 kmdb_modctl_t *kmc = dlp; in dlclose() 114 dlsym(void *dlp, const char *name) in dlsym() argument 116 kmdb_modctl_t *kmc = dlp; in dlsym() 120 switch ((uintptr_t)dlp) { in dlsym()
|
/titanic_44/usr/src/uts/common/io/ppp/sppp/ |
H A D | sppp_dlpi.c | 304 union DL_primitives *dlp; in sppp_mproto() local 316 dlp = (union DL_primitives *)mp->b_rptr; in sppp_mproto() 317 prim = dlp->dl_primitive; in sppp_mproto() 342 dlerrorack(q, mp, dlp->dl_primitive, error, 0); in sppp_mproto() 373 union DL_primitives *dlp; in sppp_dlattachreq() local 377 dlp = (union DL_primitives *)mp->b_rptr; in sppp_dlattachreq() 386 dlerrorack(q, mp, dlp->dl_primitive, DL_OUTSTATE, error); in sppp_dlattachreq() 408 union DL_primitives *dlp; in sppp_dl_attach_upper() local 414 dlp = (union DL_primitives *)mp->b_rptr; in sppp_dl_attach_upper() 426 ppa = sppp_find_ppa(dlp->attach_req.dl_ppa); in sppp_dl_attach_upper() [all …]
|