Home
last modified time | relevance | path

Searched refs:ihp (Results 1 – 25 of 37) sorted by relevance

12

/titanic_44/usr/src/lib/libipmi/common/
H A Dipmi_hash.c94 ipmi_hash_t *ihp; in ipmi_hash_create() local
96 if ((ihp = ipmi_zalloc(hp, sizeof (ipmi_hash_t))) == NULL) in ipmi_hash_create()
99 ihp->ih_handle = hp; in ipmi_hash_create()
100 ihp->ih_nbuckets = IPMI_HASHMINSIZE; in ipmi_hash_create()
101 ihp->ih_linkoffs = linkoffs; in ipmi_hash_create()
102 ihp->ih_convert = convert; in ipmi_hash_create()
103 ihp->ih_compute = compute; in ipmi_hash_create()
104 ihp->ih_compare = compare; in ipmi_hash_create()
106 if ((ihp->ih_buckets = ipmi_zalloc(hp, in ipmi_hash_create()
107 ihp->ih_nbuckets * sizeof (void *))) == NULL) { in ipmi_hash_create()
[all …]
H A Dlibipmi.c34 ipmi_handle_t *ihp; in ipmi_open() local
40 if ((ihp = calloc(sizeof (ipmi_handle_t), 1)) == NULL) { in ipmi_open()
49 ihp->ih_transport = &ipmi_transport_bmc; in ipmi_open()
52 ihp->ih_transport = &ipmi_transport_lan; in ipmi_open()
59 ihp->ih_retries = 3; in ipmi_open()
61 if ((ihp->ih_tdata = ihp->ih_transport->it_open(ihp, params)) == NULL || in ipmi_open()
62 ipmi_sdr_init(ihp) != 0 || ipmi_entity_init(ihp) != 0) { in ipmi_open()
63 *errp = ihp->ih_errno; in ipmi_open()
65 (void) strncpy(errmsg, ipmi_errmsg(ihp), 47); in ipmi_open()
69 ipmi_close(ihp); in ipmi_open()
[all …]
H A Dipmi_sdr.c106 ipmi_sdr_get_info(ipmi_handle_t *ihp) in ipmi_sdr_get_info() argument
119 if ((rsp = ipmi_send(ihp, &cmd)) == NULL) in ipmi_sdr_get_info()
143 ipmi_sdr_reserve_repository(ipmi_handle_t *ihp) in ipmi_sdr_reserve_repository() argument
153 if ((rsp = ipmi_send(ihp, &cmd)) == NULL) in ipmi_sdr_reserve_repository()
156 ihp->ih_reservation = *((uint16_t *)rsp->ic_data); in ipmi_sdr_reserve_repository()
165 ipmi_sdr_changed(ipmi_handle_t *ihp) in ipmi_sdr_changed() argument
169 if ((sip = ipmi_sdr_get_info(ihp)) == NULL) in ipmi_sdr_changed()
172 return (sip->isi_add_ts > ihp->ih_sdr_ts || in ipmi_sdr_changed()
173 sip->isi_erase_ts > ihp->ih_sdr_ts || in ipmi_sdr_changed()
174 ipmi_hash_first(ihp->ih_sdr_cache) == NULL); in ipmi_sdr_changed()
[all …]
H A Dipmi_misc.c32 ipmi_get_deviceid(ipmi_handle_t *ihp) in ipmi_get_deviceid() argument
37 if (ihp->ih_deviceid != NULL) in ipmi_get_deviceid()
38 return (ihp->ih_deviceid); in ipmi_get_deviceid()
46 if ((resp = ipmi_send(ihp, &cmd)) == NULL) in ipmi_get_deviceid()
50 (void) ipmi_set_error(ihp, EIPMI_BAD_RESPONSE_LENGTH, NULL); in ipmi_get_deviceid()
58 if ((ihp->ih_deviceid = ipmi_alloc(ihp, resp->ic_dlen)) == NULL) in ipmi_get_deviceid()
61 (void) memcpy(ihp->ih_deviceid, resp->ic_data, resp->ic_dlen); in ipmi_get_deviceid()
62 id_prod = LE_IN16(&ihp->ih_deviceid->id_product); in ipmi_get_deviceid()
63 (void) memcpy(&ihp->ih_deviceid->id_product, &id_prod, in ipmi_get_deviceid()
65 ihp->ih_deviceid_len = resp->ic_dlen; in ipmi_get_deviceid()
[all …]
H A Dipmi_user.c106 ipmi_get_user_access(ipmi_handle_t *ihp, uint8_t channel, uint8_t uid) in ipmi_get_user_access() argument
120 if ((resp = ipmi_send(ihp, &cmd)) == NULL) { in ipmi_get_user_access()
127 if (ipmi_errno(ihp) == EIPMI_INVALID_REQUEST) in ipmi_get_user_access()
128 (void) ipmi_set_error(ihp, EIPMI_INVALID_COMMAND, in ipmi_get_user_access()
134 (void) ipmi_set_error(ihp, EIPMI_BAD_RESPONSE_LENGTH, NULL); in ipmi_get_user_access()
142 ipmi_get_user_name(ipmi_handle_t *ihp, uint8_t uid) in ipmi_get_user_name() argument
152 if ((resp = ipmi_send(ihp, &cmd)) == NULL) in ipmi_get_user_name()
156 (void) ipmi_set_error(ihp, EIPMI_BAD_RESPONSE_LENGTH, NULL); in ipmi_get_user_name()
164 ipmi_user_clear(ipmi_handle_t *ihp) in ipmi_user_clear() argument
168 while ((uip = ipmi_list_next(&ihp->ih_users)) != NULL) { in ipmi_user_clear()
[all …]
H A Dipmi_entity.c70 ipmi_entity_add_assoc(ipmi_handle_t *ihp, ipmi_entity_impl_t *eip, in ipmi_entity_add_assoc() argument
79 if ((cp = ipmi_hash_lookup(ihp->ih_entities, &search)) == NULL) { in ipmi_entity_add_assoc()
80 if ((cp = ipmi_zalloc(ihp, in ipmi_entity_add_assoc()
87 ipmi_hash_insert(ihp->ih_entities, cp); in ipmi_entity_add_assoc()
194 ipmi_entity_visit(ipmi_handle_t *ihp, const char *name, ipmi_sdr_t *sdrp, in ipmi_entity_visit() argument
209 if ((eip = ipmi_hash_lookup(ihp->ih_entities, &search)) == NULL) { in ipmi_entity_visit()
210 if ((eip = ipmi_zalloc(ihp, in ipmi_entity_visit()
217 ipmi_hash_insert(ihp->ih_entities, eip); in ipmi_entity_visit()
237 if (ipmi_entity_add_assoc(ihp, eip, in ipmi_entity_visit()
249 if (ipmi_entity_add_assoc(ihp, eip, in ipmi_entity_visit()
[all …]
H A Dipmi_lan.c109 ipmi_req_add_entry(ipmi_handle_t *ihp, ipmi_cmd_t *req) in ipmi_req_add_entry() argument
113 if ((e = ipmi_zalloc(ihp, sizeof (ipmi_rq_entry_t))) == NULL) in ipmi_req_add_entry()
124 ipmi_req_lookup_entry(ipmi_handle_t *ihp, uint8_t seq, uint8_t cmd) in ipmi_req_lookup_entry() argument
137 ipmi_req_remove_entry(ipmi_handle_t *ihp, uint8_t seq, uint8_t cmd) in ipmi_req_remove_entry() argument
141 e = ipmi_req_lookup_entry(ihp, seq, cmd); in ipmi_req_remove_entry()
145 ipmi_free(ihp, e->ire_msg_data); in ipmi_req_remove_entry()
146 ipmi_free(ihp, e); in ipmi_req_remove_entry()
151 ipmi_req_clear_entries(ipmi_handle_t *ihp) in ipmi_req_clear_entries() argument
157 ipmi_free(ihp, e); in ipmi_req_clear_entries()
179 ipmi_lan_send_packet(ipmi_handle_t *ihp, uint8_t *data, int dlen) in ipmi_lan_send_packet() argument
[all …]
H A Dipmi_sunoem.c79 check_sunoem(ipmi_handle_t *ihp) in check_sunoem() argument
83 if ((devid = ipmi_get_deviceid(ihp)) == NULL) in check_sunoem()
87 return (ipmi_set_error(ihp, EIPMI_INVALID_COMMAND, NULL)); in check_sunoem()
93 ipmi_send_sunoem_led_set(ipmi_handle_t *ihp, ipmi_cmd_sunoem_led_set_t *req) in ipmi_send_sunoem_led_set() argument
103 if ((resp = ipmi_send(ihp, &cmd)) == NULL) in ipmi_send_sunoem_led_set()
107 return (ipmi_set_error(ihp, EIPMI_BAD_RESPONSE_LENGTH, NULL)); in ipmi_send_sunoem_led_set()
113 ipmi_send_sunoem_led_get(ipmi_handle_t *ihp, ipmi_cmd_sunoem_led_get_t *req, in ipmi_send_sunoem_led_get() argument
124 if ((resp = ipmi_send(ihp, &cmd)) == NULL) in ipmi_send_sunoem_led_get()
128 return (ipmi_set_error(ihp, EIPMI_BAD_RESPONSE_LENGTH, NULL)); in ipmi_send_sunoem_led_get()
135 ipmi_sunoem_led_set(ipmi_handle_t *ihp, ipmi_sdr_generic_locator_t *dev, in ipmi_sunoem_led_set() argument
[all …]
H A Dipmi_lancfg.c98 ipmi_lan_get_param(ipmi_handle_t *ihp, int channel, int param, int set, in ipmi_lan_get_param() argument
115 if ((rsp = ipmi_send(ihp, &cmd)) == NULL) { in ipmi_lan_get_param()
116 switch (ihp->ih_completion) { in ipmi_lan_get_param()
118 (void) ipmi_set_error(ihp, EIPMI_BADPARAM, NULL); in ipmi_lan_get_param()
125 return (ipmi_set_error(ihp, EIPMI_BAD_RESPONSE_LENGTH, NULL)); in ipmi_lan_get_param()
133 ipmi_lan_get_config(ipmi_handle_t *ihp, int channel, ipmi_lan_config_t *cfgp) in ipmi_lan_get_config() argument
139 if (ipmi_lan_get_param(ihp, channel, IPMI_LAN_PARAM_SET_IN_PROGRESS, 0, in ipmi_lan_get_config()
150 if (ipmi_lan_get_param(ihp, channel, lep->ile_param, in ipmi_lan_get_config()
160 ipmi_lan_set_param(ipmi_handle_t *ihp, int channel, int param, void *data, in ipmi_lan_set_param() argument
176 if (ipmi_send(ihp, &cmd) == NULL) { in ipmi_lan_set_param()
[all …]
H A Dipmi_util.c46 ipmi_set_error(ipmi_handle_t *ihp, int error, const char *fmt, ...) in ipmi_set_error() argument
52 ihp->ih_errno = error; in ipmi_set_error()
54 ihp->ih_errmsg[0] = '\0'; in ipmi_set_error()
56 (void) vsnprintf(ihp->ih_errmsg, sizeof (ihp->ih_errmsg), in ipmi_set_error()
64 ipmi_errno(ipmi_handle_t *ihp) in ipmi_errno() argument
66 return (ihp->ih_errno); in ipmi_errno()
71 ipmi_errmsg(ipmi_handle_t *ihp) in ipmi_errmsg() argument
78 if (ipmi_errno_table[i].int_value == ihp->ih_errno) { in ipmi_errmsg()
84 if (str == NULL && (str = strerror(ihp->ih_errno)) == NULL) in ipmi_errmsg()
87 if (ihp->ih_errmsg[0] == '\0') in ipmi_errmsg()
[all …]
H A Dipmi_sel.c40 ipmi_sel_get_info(ipmi_handle_t *ihp) in ipmi_sel_get_info() argument
53 if ((rsp = ipmi_send(ihp, &cmd)) == NULL) in ipmi_sel_get_info()
78 ipmi_sel_get_entry(ipmi_handle_t *ihp, uint16_t id) in ipmi_sel_get_entry() argument
96 if ((rsp = ipmi_send(ihp, &cmd)) == NULL) in ipmi_sel_get_entry()
100 (void) ipmi_set_error(ihp, EIPMI_BAD_RESPONSE_LENGTH, NULL); in ipmi_sel_get_entry()
123 ipmi_sel_get_time(ipmi_handle_t *ihp, uint32_t *tp) in ipmi_sel_get_time() argument
133 if ((rsp = ipmi_send(ihp, &cmd)) == NULL) in ipmi_sel_get_time()
137 return (ipmi_set_error(ihp, EIPMI_BAD_RESPONSE_LENGTH, NULL)); in ipmi_sel_get_time()
145 ipmi_sel_set_time(ipmi_handle_t *ihp, uint32_t t) in ipmi_sel_set_time() argument
157 if (ipmi_send(ihp, &cmd) == NULL) in ipmi_sel_set_time()
[all …]
H A Dipmi_sensor.c34 ipmi_get_sensor_reading(ipmi_handle_t *ihp, uint8_t id) in ipmi_get_sensor_reading() argument
45 if ((resp = ipmi_send(ihp, &cmd)) == NULL) in ipmi_get_sensor_reading()
54 (void) ipmi_set_error(ihp, EIPMI_BAD_RESPONSE_LENGTH, NULL); in ipmi_get_sensor_reading()
68 ipmi_set_sensor_reading(ipmi_handle_t *ihp, ipmi_set_sensor_reading_t *req) in ipmi_set_sensor_reading() argument
90 if ((resp = ipmi_send(ihp, &cmd)) == NULL) in ipmi_set_sensor_reading()
94 return (ipmi_set_error(ihp, EIPMI_BAD_RESPONSE_LENGTH, NULL)); in ipmi_set_sensor_reading()
H A Dipmi_fru.c52 ipmi_fru_read(ipmi_handle_t *ihp, ipmi_sdr_fru_locator_t *fru_loc, char **buf) in ipmi_fru_read() argument
71 if ((resp = ipmi_send(ihp, &cmd)) == NULL) in ipmi_fru_read()
75 (void) ipmi_set_error(ihp, EIPMI_BAD_RESPONSE_LENGTH, NULL); in ipmi_fru_read()
81 (void) ipmi_set_error(ihp, EIPMI_NOMEM, NULL); in ipmi_fru_read()
100 if ((resp = ipmi_send(ihp, &cmd)) == NULL) { in ipmi_fru_read()
107 (void) ipmi_set_error(ihp, EIPMI_BAD_RESPONSE_LENGTH, in ipmi_fru_read()
120 ipmi_fru_parse_product(ipmi_handle_t *ihp, char *fru_area, in ipmi_fru_parse_product() argument
137 (void) ipmi_set_error(ihp, EIPMI_NOT_PRESENT, NULL); in ipmi_fru_parse_product()
184 ipmi_fru_parse_board(ipmi_handle_t *ihp, char *fru_area, in ipmi_fru_parse_board() argument
201 (void) ipmi_set_error(ihp, EIPMI_NOT_PRESENT, NULL); in ipmi_fru_parse_board()
H A Dipmi_bmc.c69 ipmi_bmc_open(ipmi_handle_t *ihp, nvlist_t *params) in ipmi_bmc_open() argument
73 if ((ibp = ipmi_zalloc(ihp, sizeof (ipmi_bmc_t))) == NULL) in ipmi_bmc_open()
75 ibp->ib_ihp = ihp; in ipmi_bmc_open()
79 ipmi_free(ihp, ibp); in ipmi_bmc_open()
80 (void) ipmi_set_error(ihp, EIPMI_BMC_OPEN_FAILED, "%s", in ipmi_bmc_open()
85 if ((ibp->ib_msg = (uint8_t *)ipmi_zalloc(ihp, BUFSIZ)) == NULL) { in ipmi_bmc_open()
/titanic_44/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Discsid.c48 static boolean_t iscsid_init_config(iscsi_hba_t *ihp);
49 static boolean_t iscsid_init_targets(iscsi_hba_t *ihp);
55 static void iscsid_threads_create(iscsi_hba_t *ihp);
59 static void iscsid_add_pg_list_to_cache(iscsi_hba_t *ihp,
62 static boolean_t iscsid_add(iscsi_hba_t *ihp, iSCSIDiscoveryMethod_t method,
65 static void iscsi_discovery_event(iscsi_hba_t *ihp,
67 static boolean_t iscsid_boot_init_config(iscsi_hba_t *ihp);
68 static iscsi_sess_t *iscsi_add_boot_sess(iscsi_hba_t *ihp, int isid);
71 static boolean_t iscsid_check_active_boot_conn(iscsi_hba_t *ihp);
204 iscsi_boot_session_create(iscsi_hba_t *ihp, in iscsi_boot_session_create() argument
[all …]
H A Discsi.c137 static void iscsi_override_target_default(iscsi_hba_t *ihp,
149 static boolean_t iscsi_cmp_boot_sess_oid(iscsi_hba_t *ihp, uint32_t oid);
152 static boolean_t iscsi_enter_service_zone(iscsi_hba_t *ihp, uint32_t status);
153 static void iscsi_exit_service_zone(iscsi_hba_t *ihp, uint32_t status);
154 static void iscsi_check_miniroot(iscsi_hba_t *ihp);
370 iscsi_hba_t *ihp = NULL; in iscsi_attach() local
389 if ((ihp = (iscsi_hba_t *)ddi_get_soft_state( in iscsi_attach()
398 mutex_init(&ihp->hba_discovery_events_mutex, NULL, in iscsi_attach()
402 rval = ldi_ident_from_dip(dip, &ihp->hba_li); in iscsi_attach()
406 mutex_init(&ihp->hba_service_lock, NULL, in iscsi_attach()
[all …]
H A Discsi_stats.c80 iscsi_hba_kstat_init(iscsi_hba_t *ihp) in iscsi_hba_kstat_init() argument
92 ihp->hba_oid) >= sizeof (ks_name)) { in iscsi_hba_kstat_init()
96 ihp->stats.ks = kstat_create(iSCSI_MODULE_NAME, in iscsi_hba_kstat_init()
97 ddi_get_instance(ihp->hba_dip), ks_name, iSCSI_CLASS_HBA, in iscsi_hba_kstat_init()
100 if (ihp->stats.ks == NULL) { in iscsi_hba_kstat_init()
102 ihp->hba_oid); in iscsi_hba_kstat_init()
106 ihs = &ihp->stats.ks_data; in iscsi_hba_kstat_init()
107 ihp->stats.ks->ks_data = &ihp->stats.ks_data; in iscsi_hba_kstat_init()
108 ihp->stats.ks->ks_data_size = sizeof (ihp->stats.ks_data); in iscsi_hba_kstat_init()
109 ihp->stats.ks->ks_ndata = KN_HBA_IDX_MAX; in iscsi_hba_kstat_init()
[all …]
H A Discsi_ioctl.c144 iscsi_ioctl_conn_oid_list_get(iscsi_hba_t *ihp, iscsi_conn_list_t *cl) in iscsi_ioctl_conn_oid_list_get() argument
160 rw_enter(&ihp->hba_sess_list_rwlock, RW_READER); in iscsi_ioctl_conn_oid_list_get()
161 isp = ihp->hba_sess_list; in iscsi_ioctl_conn_oid_list_get()
168 for (isp = ihp->hba_sess_list; isp; isp = isp->sess_next) { in iscsi_ioctl_conn_oid_list_get()
226 rw_exit(&ihp->hba_sess_list_rwlock); in iscsi_ioctl_conn_oid_list_get()
234 iscsi_ioctl_conn_props_get(iscsi_hba_t *ihp, iscsi_conn_props_t *cp) in iscsi_ioctl_conn_props_get() argument
247 rw_enter(&ihp->hba_sess_list_rwlock, RW_READER); in iscsi_ioctl_conn_props_get()
248 if (iscsi_sess_get(cp->cp_sess_oid, ihp, &isp) != 0) { in iscsi_ioctl_conn_props_get()
249 rw_exit(&ihp->hba_sess_list_rwlock); in iscsi_ioctl_conn_props_get()
309 rw_exit(&ihp->hba_sess_list_rwlock); in iscsi_ioctl_conn_props_get()
[all …]
H A Discsi.h1277 boolean_t iscsi_hba_kstat_init(struct iscsi_hba *ihp);
1278 boolean_t iscsi_hba_kstat_term(struct iscsi_hba *ihp);
1290 iscsi_sess_t *iscsi_sess_create(iscsi_hba_t *ihp,
1295 int iscsi_sess_get(uint32_t oid, iscsi_hba_t *ihp, iscsi_sess_t **ispp);
1306 int iscsi_sess_get_by_target(uint32_t target_oid, iscsi_hba_t *ihp,
1330 iscsi_status_t iscsi_lun_destroy(iscsi_hba_t *ihp,
1332 void iscsi_lun_online(iscsi_hba_t *ihp,
1334 iscsi_status_t iscsi_lun_offline(iscsi_hba_t *ihp,
1348 boolean_t iscsi_ioctl_conn_oid_list_get(iscsi_hba_t *ihp,
1350 boolean_t iscsi_ioctl_conn_props_get(iscsi_hba_t *ihp, iscsi_conn_props_t *cp);
[all …]
H A Discsi_net.c177 static iscsi_status_t iscsi_net_sendpdu(void *socket, iscsi_hdr_t *ihp,
179 static iscsi_status_t iscsi_net_recvdata(void *socket, iscsi_hdr_t *ihp,
181 static iscsi_status_t iscsi_net_recvhdr(void *socket, iscsi_hdr_t *ihp,
496 iscsi_net_sendpdu(void *socket, iscsi_hdr_t *ihp, char *data, int flags) in iscsi_net_sendpdu() argument
510 ASSERT(ihp != NULL); in iscsi_net_sendpdu()
517 iovec[iovlen].iov_base = (void *)ihp; in iscsi_net_sendpdu()
518 iovec[iovlen].iov_len = sizeof (*ihp) + ihp->hlength * 4; in iscsi_net_sendpdu()
519 total_len += sizeof (*ihp) + ihp->hlength * 4; in iscsi_net_sendpdu()
530 crc_hdr = iscsi_crc32c((char *)ihp, in iscsi_net_sendpdu()
531 sizeof (iscsi_hdr_t) + ihp->hlength * 4); in iscsi_net_sendpdu()
[all …]
H A Discsi_sess.c76 static iscsi_sess_t *iscsi_sess_alloc(iscsi_hba_t *ihp, iscsi_sess_type_t type);
113 iscsi_sess_create(iscsi_hba_t *ihp, iSCSIDiscoveryMethod_t method, in iscsi_sess_create() argument
130 for (isp = ihp->hba_sess_list; isp; isp = isp->sess_next) { in iscsi_sess_create()
154 ihp->hba_oid, isp->sess_oid) < in iscsi_sess_create()
158 ihp->hba_dip, in iscsi_sess_create()
239 isp->sess_hba = ihp; in iscsi_sess_create()
259 bcopy(&ihp->hba_params, &isp->sess_params, in iscsi_sess_create()
286 ISCSI_SESS_LOGIN_TASKQ_NAME_FORMAT, ihp->hba_oid, isp->sess_oid) < in iscsi_sess_create()
288 isp->sess_login_taskq = ddi_taskq_create(ihp->hba_dip, in iscsi_sess_create()
297 ISCSI_SESS_ENUM_TASKQ_NAME_FORMAT, ihp->hba_oid, isp->sess_oid) < in iscsi_sess_create()
[all …]
H A Discsi_lun.c72 iscsi_hba_t *ihp = NULL; in iscsi_lun_create() local
81 ihp = isp->sess_hba; in iscsi_lun_create()
82 ASSERT(ihp != NULL); in iscsi_lun_create()
155 if ((ihp->hba_mpxio_enabled == B_TRUE) && in iscsi_lun_create()
233 iscsi_lun_destroy(iscsi_hba_t *ihp, iscsi_lun_t *ilp) in iscsi_lun_destroy() argument
244 status = iscsi_lun_offline(ihp, ilp, B_TRUE); in iscsi_lun_destroy()
302 iscsi_hba_t *ihp = NULL; in iscsi_lun_virt_create() local
311 ihp = isp->sess_hba; in iscsi_lun_virt_create()
312 ASSERT(ihp != NULL); in iscsi_lun_virt_create()
332 mdi_rtn = mdi_pi_alloc_compatible(ihp->hba_dip, nodename, in iscsi_lun_virt_create()
[all …]
H A Discsi_io.c70 idm_conn_t *ic, iscsi_scsi_rsp_hdr_t *ihp, iscsi_cmd_t **icmdp);
72 iscsi_hdr_t *ihp, iscsi_cmd_t **icmdp);
263 iscsi_hdr_t *ihp; in iscsi_rx_scsi_rsp() local
270 ihp = (iscsi_hdr_t *)pdu->isp_hdr; in iscsi_rx_scsi_rsp()
271 ASSERT(ihp != NULL); in iscsi_rx_scsi_rsp()
279 switch (ihp->opcode & ISCSI_OPCODE_MASK) { in iscsi_rx_scsi_rsp()
290 icp->conn_oid, ihp->opcode); in iscsi_rx_scsi_rsp()
1678 iscsi_scsi_rsp_hdr_t *ihp, iscsi_cmd_t **icmdp) in iscsi_rx_process_scsi_itt_to_icmdp() argument
1683 ASSERT(ihp != NULL); in iscsi_rx_process_scsi_itt_to_icmdp()
1686 itp = idm_task_find_and_complete(ic, ihp->itt, ISCSI_INI_TASK_TTT); in iscsi_rx_process_scsi_itt_to_icmdp()
[all …]
/titanic_44/usr/src/cmd/fm/ipmitopo/common/
H A Dipmitopo.c43 sdr_print(ipmi_handle_t *ihp, ipmi_entity_t *ep, const char *name, in sdr_print() argument
85 if ((srp = ipmi_get_sensor_reading(ihp, in sdr_print()
87 if (ipmi_errno(ihp) == EIPMI_NOT_PRESENT) { in sdr_print()
104 entity_print(ipmi_handle_t *ihp, ipmi_entity_t *ep, void *data) in entity_print() argument
114 if (ipmi_entity_present(ihp, ep, &present) != 0) { in entity_print()
116 24 - indentation, name, "unknown", ipmi_errmsg(ihp)); in entity_print()
121 (void) ipmi_entity_iter_sdr(ihp, ep, sdr_print, in entity_print()
125 (void) ipmi_entity_iter_children(ihp, ep, entity_print, in entity_print()
133 ipmi_handle_t *ihp; in main() local
187 if ((ihp = ipmi_open(&err, &errmsg, xport_type, params)) == NULL) { in main()
[all …]
/titanic_44/usr/src/lib/fm/topo/modules/common/ipmi/
H A Dipmi_enum.c84 ipmi_handle_t *ihp; in ipmi_present() local
93 if ((ihp = topo_mod_ipmi_hold(mod)) == NULL) in ipmi_present()
107 if ((sdrp = ipmi_sdr_lookup(ihp, name)) == NULL || in ipmi_present()
108 ipmi_entity_present_sdr(ihp, sdrp, &present) != 0) { in ipmi_present()
111 name, ipmi_errmsg(ihp)); in ipmi_present()
137 if ((ep = ipmi_entity_lookup_sdr(ihp, names[i])) in ipmi_present()
157 if (ipmi_entity_present(ihp, ep, &present) != 0) { in ipmi_present()
160 ipmi_errmsg(ihp)); in ipmi_present()
191 ipmi_check_sdr(ipmi_handle_t *ihp, ipmi_entity_t *ep, const char *name, in ipmi_check_sdr() argument
207 ipmi_check_entity(ipmi_handle_t *ihp, ipmi_entity_t *ep, void *data) in ipmi_check_entity() argument
[all …]

12