Lines Matching refs:apktp
104 attach_pkt_t *apktp = (attach_pkt_t *)arg;
152 sbdp_attach_branch(dip, child, (void *)apktp);
161 attach_pkt_t *apktp;
167 apktp = (attach_pkt_t *)arg;
169 if (apktp == NULL) {
178 if (node == apktp->node) {
180 apktp->top_node = dip;
191 attach_pkt_t *apktp = (attach_pkt_t *)arg;
201 if (apktp == NULL) {
206 board = apktp->board;
221 apktp->nodes[apktp->num_of_nodes] = node;
222 apktp->num_of_nodes++;
269 if (apktp->num_of_nodes >= SBDP_MAX_NODES)
273 apktp->nodes[apktp->num_of_nodes] = node;
274 apktp->num_of_nodes++;
288 attach_pkt_t apkt, *apktp = &apkt;
293 apktp->node = node;
294 apktp->board = board;
295 apktp->num_of_nodes = 0;
296 apktp->flags = 0;
298 apktp->top_node = NULL;
303 ddi_walk_devs(ddi_root_node(), sbdp_find_ssm_dip, (void *) apktp);
305 if (apktp->top_node == NULL) {
310 b.arg = (void *)apktp;
315 (void) e_ddi_branch_create(apktp->top_node, &b, NULL, 0);
320 ndi_rele_devi(apktp->top_node);
329 attach_pkt_t apkt, *apktp = &apkt;
334 apktp->node = node;
335 apktp->board = board;
336 apktp->num_of_nodes = 0;
337 apktp->error = 0;
338 apktp->errstr = NULL;
340 (void *) apktp);
342 if (rv = sbdp_detach_nodes(apktp)) {
357 sbdp_detach_nodes(attach_pkt_t *apktp)
367 for (i = 0, dip = dev_list; i < apktp->num_of_nodes; i++) {
368 *dip = e_ddi_nodeid_to_dip(apktp->nodes[i]);
403 apktp->error = apktp->error ? apktp->error : rv;