Home
last modified time | relevance | path

Searched refs:plp (Results 1 – 25 of 30) sorted by relevance

12

/illumos-gate/usr/src/uts/common/io/usb/clients/usbser/usbsprl/
H A Dpl2303_dsd.c219 pl2303_state_t *plp; in pl2303_attach() local
221 plp = (pl2303_state_t *)kmem_zalloc(sizeof (pl2303_state_t), KM_SLEEP); in pl2303_attach()
222 plp->pl_dip = aip->ai_dip; in pl2303_attach()
223 plp->pl_usb_events = aip->ai_usb_events; in pl2303_attach()
224 *aip->ai_hdl = (ds_hdl_t)plp; in pl2303_attach()
229 if (usb_client_attach(plp->pl_dip, USBDRV_VERSION, 0) != USB_SUCCESS) { in pl2303_attach()
230 pl2303_cleanup(plp, 1); in pl2303_attach()
235 if (usb_get_dev_data(plp->pl_dip, &plp->pl_dev_data, USB_PARSE_LVL_IF, in pl2303_attach()
237 pl2303_cleanup(plp, 2); in pl2303_attach()
242 mutex_init(&plp->pl_mutex, NULL, MUTEX_DRIVER, in pl2303_attach()
[all …]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dpmem.c289 pmem_lpg_t *plp = NULL; in devmap_pmem_alloc() local
344 if (lpp_create(&lpp, i, &lpages, &plp, pcp->dp_vnp, &pmem_off, in devmap_pmem_alloc()
355 lpp_break(&lpp, lpages, lpages - rpages, plp); in devmap_pmem_alloc()
370 pmem_lpg_concat(&pmem_occ_lpgs, &plp); in devmap_pmem_alloc()
392 lpp_free(lpp, lpages / pmem_pgcnt, &plp); in devmap_pmem_alloc()
423 pmem_lpg_t *pl1, *plp; in devmap_pmem_free() local
446 plp = pmem_lpg_get(pmem_occ_lpgs, pp, &last_pl); in devmap_pmem_free()
447 if (plp && !(plp->pl_pfree)) { in devmap_pmem_free()
452 pmem_lpg_sub(&pmem_occ_lpgs, plp); in devmap_pmem_free()
453 pmem_lpg_concat(&pf_lpgs, &plp); in devmap_pmem_free()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Drequest.c101 server_unicast_option(dhcp_smach_t *dsmp, PKT_LIST *plp) in server_unicast_option() argument
106 d6o = dhcpv6_pkt_option(plp, NULL, DHCPV6_OPT_UNICAST, &olen); in server_unicast_option()
114 pkt_type_to_string(pkt_recv_type(plp), B_TRUE)); in server_unicast_option()
610 accept_v4_acknak(dhcp_smach_t *dsmp, PKT_LIST *plp) in accept_v4_acknak() argument
615 if (*plp->opts[CD_DHCP_TYPE]->value == ACK) { in accept_v4_acknak()
618 (plp->opts[CD_LEASE_TIME] == NULL || in accept_v4_acknak()
619 plp->opts[CD_LEASE_TIME]->len != sizeof (lease_t))) { in accept_v4_acknak()
624 free_pkt_entry(plp); in accept_v4_acknak()
630 plp->pkt->yiaddr.s_addr) { in accept_v4_acknak()
633 inet_ntoa(plp->pkt->yiaddr)); in accept_v4_acknak()
[all …]
H A Dpacket.c119 pkt_recv_type(const PKT_LIST *plp) in pkt_recv_type() argument
121 if (plp->isv6) in pkt_recv_type()
122 return (((const dhcpv6_message_t *)plp->pkt)->d6m_msg_type); in pkt_recv_type()
123 else if (plp->opts[CD_DHCP_TYPE] != NULL) in pkt_recv_type()
124 return (plp->opts[CD_DHCP_TYPE]->value[0]); in pkt_recv_type()
796 free_pkt_entry(PKT_LIST *plp) in free_pkt_entry() argument
798 if (plp != NULL) { in free_pkt_entry()
799 free(plp->pkt); in free_pkt_entry()
800 free(plp); in free_pkt_entry()
814 PKT_LIST *plp; in free_pkt_list() local
[all …]
H A Dadopt.c74 PKT_LIST *plp = NULL; in dhcp_adopt() local
91 plp = alloc_pkt_entry(strlen(kcache->dk_ack) / 2, B_FALSE); in dhcp_adopt()
92 if (plp == NULL) in dhcp_adopt()
95 dhcpmsg(MSG_DEBUG, "dhcp_adopt: allocated ACK of %d bytes", plp->len); in dhcp_adopt()
97 if (hexascii_to_octet(kcache->dk_ack, plp->len * 2, plp->pkt, in dhcp_adopt()
98 &plp->len) != 0) { in dhcp_adopt()
103 if (dhcp_options_scan(plp, B_TRUE) != 0) { in dhcp_adopt()
180 if (!dhcp_bound(dsmp, plp)) { in dhcp_adopt()
193 free_pkt_entry(plp); in dhcp_adopt()
H A Dagent.c79 const PKT_LIST *plp, uint_t codenum, boolean_t *did_alloc);
975 PKT_LIST *plp[2]; in ipc_event() local
986 error = read_hostconf(dsmp->dsm_name, plp, 2, dsmp->dsm_isv6); in ipc_event()
987 ack = error > 0 ? plp[0] : NULL; in ipc_event()
988 oack = error > 1 ? plp[1] : NULL; in ipc_event()
1163 dhcp_get_ack_or_state(const dhcp_smach_t *dsmp, const PKT_LIST *plp, in dhcp_get_ack_or_state() argument
1174 opt = plp->opts[codenum]; in dhcp_get_ack_or_state()
H A Dutil.c678 PKT_LIST *plp[2]; in write_lease_to_hostconf() local
682 plp[0] = dsmp->dsm_ack; in write_lease_to_hostconf()
683 plp[1] = dsmp->dsm_orig_ack; in write_lease_to_hostconf()
684 if (write_hostconf(dsmp->dsm_name, plp, 2, in write_lease_to_hostconf()
/illumos-gate/usr/src/lib/libdhcpagent/common/
H A Ddhcp_hostconf.c98 PKT_LIST *plp = NULL; in read_hostconf() local
128 plp = NULL; in read_hostconf()
131 if ((plp = calloc(1, sizeof (PKT_LIST))) == NULL) in read_hostconf()
134 retval = read(fd, &plp->len, sizeof (plp->len)); in read_hostconf()
142 free(plp); in read_hostconf()
144 } else if (retval != sizeof (plp->len)) in read_hostconf()
147 if ((pkt = malloc(plp->len)) == NULL) in read_hostconf()
150 if (read(fd, pkt, plp->len) != plp->len) in read_hostconf()
153 plp->pkt = pkt; in read_hostconf()
155 plpp[pcnt] = plp; in read_hostconf()
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dload_pool.c24 int load_pool(plp, iocfunc) in load_pool() argument
25 ip_pool_t *plp; in load_pool()
41 op.iplo_unit = plp->ipo_unit;
44 strncpy(op.iplo_name, plp->ipo_name, sizeof(op.iplo_name));
48 strncpy(pool.ipo_name, plp->ipo_name, sizeof(pool.ipo_name));
49 if (*plp->ipo_name == '\0')
61 pool.ipo_list = plp->ipo_list;
66 for (a = plp->ipo_list; a != NULL; a = a->ipn_next)
67 load_poolnode(plp->ipo_unit, plp->ipo_name, a, iocfunc);
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dhc.c1475 struct prop_lookup *plp = (struct prop_lookup *)pdata; in hc_prop_get() local
1477 (void) topo_prop_getprop(node, plp->pl_pgroup, plp->pl_pname, in hc_prop_get()
1478 plp->pl_args, &plp->pl_prop, &err); in hc_prop_get()
1489 struct prop_lookup *plp; in hc_fmri_prop_get() local
1494 if ((plp = topo_mod_alloc(mod, sizeof (struct prop_lookup))) == NULL) in hc_fmri_prop_get()
1498 (char **)&plp->pl_pgroup); in hc_fmri_prop_get()
1500 (char **)&plp->pl_pname); in hc_fmri_prop_get()
1501 err |= nvlist_lookup_nvlist(in, TOPO_PROP_RESOURCE, &plp->pl_rsrc); in hc_fmri_prop_get()
1503 topo_mod_free(mod, plp, sizeof (struct prop_lookup)); in hc_fmri_prop_get()
1510 if ((err = nvlist_lookup_nvlist(in, TOPO_PROP_PARGS, &plp->pl_args)) in hc_fmri_prop_get()
[all …]
H A Dtopo_2xml.c362 topo_proplist_t *plp; in txml_print_pgroup() local
371 for (plp = topo_list_next(&pg->tpg_pvals); plp != NULL; in txml_print_pgroup()
372 plp = topo_list_next(plp)) { in txml_print_pgroup()
373 txml_print_prop(thp, fp, node, pip->tpi_name, plp->tp_pval); in txml_print_pgroup()
/illumos-gate/usr/src/common/net/dhcp/
H A Dscan.c227 dhcpv6_pkt_option(const PKT_LIST *plp, const dhcpv6_option_t *oldopt, in dhcpv6_pkt_option() argument
232 if (plp == NULL || plp->pkt == NULL || plp->len < sizeof (*d6m)) in dhcpv6_pkt_option()
234 d6m = (const dhcpv6_message_t *)plp->pkt; in dhcpv6_pkt_option()
235 return (dhcpv6_find_option(d6m + 1, plp->len - sizeof (*d6m), oldopt, in dhcpv6_pkt_option()
/illumos-gate/usr/src/lib/libelfsign/common/
H A Delfcertlib.c199 char *pathlist[3], **plp; in elfcertlib_getcert() local
210 plp = pathlist; in elfcertlib_getcert()
213 *plp++ = cert_pathname; in elfcertlib_getcert()
216 *plp++ = (char *)_PATH_ELFSIGN_CRYPTO_CERTS; in elfcertlib_getcert()
222 *plp++ = (char *)_PATH_ELFSIGN_ETC_CERTS; in elfcertlib_getcert()
224 *plp = NULL; in elfcertlib_getcert()
230 for (plp = pathlist; *plp; plp++) { in elfcertlib_getcert()
257 KMF_CERT_FILENAME_ATTR, *plp, strlen (*plp)); in elfcertlib_getcert()
288 if (*plp == NULL) { in elfcertlib_getcert()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/
H A Dpppoe.c310 struct ppp_ls *plp; in handle_pppoe_input() local
336 plp = (struct ppp_ls *)ctrl->buf; in handle_pppoe_input()
337 plp->magic = PPPLSMAGIC; in handle_pppoe_input()
338 plp->ppp_message = PPP_LINKSTAT_HANGUP; in handle_pppoe_input()
339 ctrl->len = sizeof (*plp); in handle_pppoe_input()
/illumos-gate/usr/src/cmd/init/
H A Dinit.c3583 struct pidlist *plp; in sigpoll() local
3609 plp = (struct pidlist *)calloc(DELTA, in sigpoll()
3611 if (plp == NULL) { in sigpoll()
3618 tp = plp + 1; in sigpoll()
3628 plp = Plfree; in sigpoll()
3629 Plfree = plp->pl_next; in sigpoll()
3631 plp->pl_pid = p->pd_pid; in sigpoll()
3632 plp->pl_dflag = 0; in sigpoll()
3633 plp->pl_next = NULL; in sigpoll()
3638 Plhead = plp; in sigpoll()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_mkupdate.c1028 struct valuelist *plp, *plp_next; in res_destroyprotolist() local
1030 for (plp = protolist; plp != NULL; plp = plp_next) { in res_destroyprotolist()
1031 plp_next = plp->next; in res_destroyprotolist()
1032 free(plp->name); in res_destroyprotolist()
1033 free(plp); in res_destroyprotolist()
/illumos-gate/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c5208 priv_lists_t *plp = (priv_lists_t *)data; in priv_lists_cb() local
5213 (strcmp(priv_iter->pi_iptype, plp->pl_iptype) != 0)) in priv_lists_cb()
5226 pnp->pn_next = plp->pl_default; in priv_lists_cb()
5227 plp->pl_default = pnp; in priv_lists_cb()
5229 pnp->pn_next = plp->pl_prohibited; in priv_lists_cb()
5230 plp->pl_prohibited = pnp; in priv_lists_cb()
5232 pnp->pn_next = plp->pl_required; in priv_lists_cb()
5233 plp->pl_required = pnp; in priv_lists_cb()
5243 priv_lists_destroy(priv_lists_t *plp) in priv_lists_destroy() argument
5247 assert(plp != NULL); in priv_lists_destroy()
[all …]
/illumos-gate/usr/src/lib/libsqlite/tool/
H A Dlemon.c819 struct plink *plp; local
836 for(plp=cfp->bplp; plp; plp=plp->next){
837 other = plp->cfp;
854 struct plink *plp; local
869 for(plp=cfp->fplp; plp; plp=plp->next){
870 change = SetUnion(plp->cfp->fws,cfp->fws);
872 plp->cfp->status = INCOMPLETE;
2472 void Plink_delete(plp) in Plink_delete() argument
2473 struct plink *plp; in Plink_delete()
2477 while( plp ){
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dsys-solaris.c1697 struct ppp_ls *plp; local
1755 plp = (struct ppp_ls *)ctrlbuf;
1756 if (plp->magic != PPPLSMAGIC) {
1759 plp->magic);
1763 lastlink_status = plp->ppp_message;
1765 switch (plp->ppp_message) {
1778 (void) handle_unbind(plp->ppp_message);
1781 (void) handle_bind(plp->ppp_message);
1785 (void) handle_unbind(plp->ppp_message);
1788 (void) handle_bind(plp->ppp_message);
/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_util.c1588 zprop_expand_list(libzfs_handle_t *hdl, zprop_list_t **plp, zfs_type_t type) in zprop_expand_list() argument
1594 if (*plp == NULL) { in zprop_expand_list()
1600 last = plp; in zprop_expand_list()
1622 entry->pl_next = *plp; in zprop_expand_list()
1623 *plp = entry; in zprop_expand_list()
H A Dlibzfs_impl.h215 int zprop_expand_list(libzfs_handle_t *hdl, zprop_list_t **plp,
H A Dlibzfs_pool.c781 zpool_expand_proplist(zpool_handle_t *zhp, zprop_list_t **plp) in zpool_expand_proplist() argument
788 boolean_t firstexpand = (NULL == *plp); in zpool_expand_proplist()
790 if (zprop_expand_list(hdl, plp, ZFS_TYPE_POOL) != 0) in zpool_expand_proplist()
793 last = plp; in zpool_expand_proplist()
797 if ((*plp)->pl_all) in zpool_expand_proplist()
800 if ((*plp)->pl_all && firstexpand) { in zpool_expand_proplist()
833 entry = *plp; in zpool_expand_proplist()
857 for (entry = *plp; entry != NULL; entry = entry->pl_next) { in zpool_expand_proplist()
/illumos-gate/usr/src/cmd/mdb/common/modules/libtopo/
H A Dlibtopo.c790 topo_proplist_t *plp; in tpl_walk_step() local
802 plp = (topo_proplist_t *)wsp->walk_data; in tpl_walk_step()
807 wsp->walk_addr = (uintptr_t)plp->tp_list.l_next; in tpl_walk_step()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_proc.c2636 pt_lookup_t *plp = data; in pt_lookup_cb() local
2637 struct ps_prochandle *P = plp->pl_tgt->t_pshandle; in pt_lookup_cb()
2641 if (Pxlookup_by_name(P, plp->pl_lmid, object, plp->pl_name, &sym, in pt_lookup_cb()
2651 if (!plp->pl_found) { in pt_lookup_cb()
2652 plp->pl_found = TRUE; in pt_lookup_cb()
2653 *plp->pl_symp = sym; in pt_lookup_cb()
2654 plp->pl_sip->sym_table = si.prs_table; in pt_lookup_cb()
2655 plp->pl_sip->sym_id = si.prs_id; in pt_lookup_cb()
2666 plp->pl_tid != (mdb_tgt_tid_t)-1) { in pt_lookup_cb()
2669 if (tlsbase(plp->pl_tgt, plp->pl_tid, plp->pl_lmid, object, in pt_lookup_cb()
[all …]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_asru.c1149 fmd_asru_link_t *alp, **plp, *alpnext; in fmd_asru_hash_delete_case() local
1177 plp = &ahp->ah_case_hash[h]; in fmd_asru_hash_delete_case()
1178 for (alp = *plp; alp != NULL; alp = alpnext) { in fmd_asru_hash_delete_case()
1181 *plp = alp->al_case_next; in fmd_asru_hash_delete_case()
1237 plp = &alp->al_case_next; in fmd_asru_hash_delete_case()

12