Lines Matching refs:hp

117 sbdp_get_board_status(sbdp_handle_t *hp, sbd_stat_t *stp)  in sbdp_get_board_status()  argument
119 int board = hp->h_board; in sbdp_get_board_status()
120 int node = hp->h_wnode; in sbdp_get_board_status()
126 sbd_error_t *sep = hp->h_err; in sbdp_get_board_status()
136 if (hp->h_opts != NULL && hp->h_opts->copts != NULL) { in sbdp_get_board_status()
137 sbdp_set_err(sep, ESBD_INVAL_OPT, hp->h_opts->copts); in sbdp_get_board_status()
247 sbdp_assign_board(sbdp_handle_t *hp) in sbdp_assign_board() argument
249 int board = hp->h_board; in sbdp_assign_board()
250 int node = hp->h_wnode; in sbdp_assign_board()
262 sep = hp->h_err; in sbdp_assign_board()
266 if (hp->h_opts != NULL && hp->h_opts->copts != NULL) { in sbdp_assign_board()
267 sbdp_set_err(sep, ESBD_INVAL_OPT, hp->h_opts->copts); in sbdp_assign_board()
298 sbdp_unassign_board(sbdp_handle_t *hp) in sbdp_unassign_board() argument
300 int board = hp->h_board; in sbdp_unassign_board()
301 int node = hp->h_wnode; in sbdp_unassign_board()
313 sep = hp->h_err; in sbdp_unassign_board()
317 if (hp->h_opts != NULL && hp->h_opts->copts != NULL) { in sbdp_unassign_board()
318 sbdp_set_err(sep, ESBD_INVAL_OPT, hp->h_opts->copts); in sbdp_unassign_board()
347 sbdp_handle_t *hp; in sg_attach_board() local
354 hp = (sbdp_handle_t *)arg; in sg_attach_board()
358 rv = prom_serengeti_attach_board(hp->h_wnode, hp->h_board); in sg_attach_board()
367 sbdp_handle_t *hp; in sg_detach_board() local
374 hp = (sbdp_handle_t *)arg; in sg_detach_board()
378 rv = prom_serengeti_detach_board(hp->h_wnode, hp->h_board); in sg_detach_board()
394 sbdp_connect_board(sbdp_handle_t *hp) in sbdp_connect_board() argument
406 board = hp->h_board; in sbdp_connect_board()
407 node = hp->h_wnode; in sbdp_connect_board()
408 sep = hp->h_err; in sbdp_connect_board()
413 if (hp->h_opts != NULL && hp->h_opts->copts != NULL) { in sbdp_connect_board()
414 sbdp_set_err(sep, ESBD_INVAL_OPT, hp->h_opts->copts); in sbdp_connect_board()
437 rv = prom_tree_update(sg_attach_board, hp); in sbdp_connect_board()
468 (void) sbdp_disconnect_board(hp); in sbdp_connect_board()
493 sbdp_disconnect_board(sbdp_handle_t *hp) in sbdp_disconnect_board() argument
504 board = hp->h_board; in sbdp_disconnect_board()
505 node = hp->h_wnode; in sbdp_disconnect_board()
506 sep = hp->h_err; in sbdp_disconnect_board()
514 if (hp->h_opts != NULL && hp->h_opts->copts != NULL) { in sbdp_disconnect_board()
515 sbdp_set_err(sep, ESBD_INVAL_OPT, hp->h_opts->copts); in sbdp_disconnect_board()
525 rv = prom_tree_update(sg_detach_board, hp); in sbdp_disconnect_board()
554 (void) prom_tree_update(sg_attach_board, hp); in sbdp_disconnect_board()
574 sbdp_poweroff_board(sbdp_handle_t *hp) in sbdp_poweroff_board() argument
587 sep = hp->h_err; in sbdp_poweroff_board()
591 if (hp->h_opts != NULL && hp->h_opts->copts != NULL) { in sbdp_poweroff_board()
592 sbdp_set_err(sep, ESBD_INVAL_OPT, hp->h_opts->copts); in sbdp_poweroff_board()
602 informp->board = hp->h_board; in sbdp_poweroff_board()
603 informp->node = hp->h_wnode; in sbdp_poweroff_board()
628 sbdp_poweron_board(sbdp_handle_t *hp) in sbdp_poweron_board() argument
637 int board = hp->h_board; in sbdp_poweron_board()
642 sep = hp->h_err; in sbdp_poweron_board()
646 if (hp->h_opts != NULL && hp->h_opts->copts != NULL) { in sbdp_poweron_board()
647 sbdp_set_err(sep, ESBD_INVAL_OPT, hp->h_opts->copts); in sbdp_poweron_board()
654 if ((rv = sbdp_poweroff_board(hp)) != 0) in sbdp_poweron_board()
659 informp->board = hp->h_board; in sbdp_poweron_board()
660 informp->node = hp->h_wnode; in sbdp_poweron_board()
730 sbdp_test_board(sbdp_handle_t *hp, sbdp_opts_t *opts) in sbdp_test_board() argument
732 int board = hp->h_board; in sbdp_test_board()
733 int node = hp->h_wnode; in sbdp_test_board()
746 sep = hp->h_err; in sbdp_test_board()
772 if (hp->h_flags & SBDP_IOCTL_FLAG_FORCE) in sbdp_test_board()