Searched refs:frup (Results 1 - 15 of 15) sorted by relevance

/illumos-gate/usr/src/lib/libzfs/common/
H A Dlibzfs_fru.c110 libzfs_fru_t *frup; local
161 if ((frup = calloc(sizeof (libzfs_fru_t), 1)) == NULL) {
167 if ((frup->zf_device = strdup(devpath)) == NULL ||
168 (frup->zf_fru = strdup(frustr)) == NULL) {
169 free(frup->zf_device);
170 free(frup);
179 idx = fru_strhash(frup->zf_device);
180 frup->zf_chain = hdl->libzfs_fru_hash[idx];
181 hdl->libzfs_fru_hash[idx] = frup;
182 frup
310 libzfs_fru_t *frup; local
335 libzfs_fru_t *frup; local
429 libzfs_fru_t *frup; local
[all...]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/frutree/
H A Dpiclfrutree.c154 frutree_frunode_t *frup; member in struct:__anon1204
188 static picl_errno_t handle_chassis_configure(frutree_frunode_t *frup);
658 frutree_frunode_t *frup = NULL; local
767 frup = FRUDATA_PTR(hashptr);
770 if (frup == NULL) {
775 (void) pthread_mutex_lock(&frup->mutex);
776 if (frup->dr_in_progress) {
778 (void) pthread_mutex_unlock(&frup->mutex);
782 (void) pthread_mutex_unlock(&frup->mutex);
784 if (update_fru_state(frup,
861 frutree_frunode_t *frup = NULL; local
962 frutree_frunode_t *frup = NULL; local
1183 frutree_frunode_t *frup = NULL; local
1473 frutree_frunode_t *frup; local
1652 frutree_frunode_t *frup = NULL; local
2006 update_fru_state(frutree_frunode_t *frup, boolean_t *updated) argument
2139 update_fru_condition(frutree_frunode_t *frup, boolean_t *updated) argument
2263 frutree_frunode_t *frup = NULL; local
2338 frutree_frunode_t *frup = NULL; local
2412 probe_platform_tree(frutree_frunode_t *frup, frutree_device_args_t **devp) argument
2481 create_fru_children(frutree_frunode_t *frup, frutree_device_args_t device) argument
2554 probe_fru(frutree_frunode_t *frup, boolean_t load_drivers) argument
2700 handle_fru_remove(frutree_frunode_t *frup) argument
2771 handle_fru_unconfigure(frutree_frunode_t *frup) argument
2840 create_fru_props(frutree_frunode_t *frup) argument
3007 frutree_frunode_t *frup = NULL; local
3121 handle_fru_configure(frutree_frunode_t *frup) argument
3157 configure_fru(frutree_frunode_t *frup, cfga_flags_t flags) argument
3307 unconfigure_fru(frutree_frunode_t *frup, cfga_flags_t flags) argument
3431 frutree_frunode_t *frup = NULL; local
4048 init_scsi_slot(frutree_frunode_t *frup, frutree_locnode_t **ptr2locp, boolean_t *node_name_changed) argument
4172 frutree_frunode_t *frup = NULL; local
4301 frutree_frunode_t *frup = NULL; local
4343 fru_init(frutree_frunode_t *frup) argument
4409 frutree_frunode_t *frup = NULL; local
4541 frutree_frunode_t *frup = NULL; local
4832 frutree_frunode_t *frup = NULL, *child_frup = NULL; local
4963 handle_chassis_configure(frutree_frunode_t *frup) argument
4998 handle_chassis_unconfigure(frutree_frunode_t *frup) argument
5039 frutree_frunode_t *frup = NULL; local
5124 frutree_frunode_t *frup = NULL, *child_frup = NULL; local
5624 frutree_frunode_t *frup = NULL; local
5687 frutree_frunode_t *frup = NULL; local
5793 create_children(frutree_frunode_t *frup, char *scsi_loc, char *bus_addr, int slot_no, char *slot_type, boolean_t is_cfgadm_ap) argument
5954 is_location_present_in_subtree(frutree_frunode_t *frup, const char *name, const char *path) argument
[all...]
H A Dpiclscsi.c107 frutree_frunode_t *frup; member in struct:scsi_info
412 dyn_probe_for_scsi_frus(frutree_frunode_t *frup, cfga_list_data_t *cfgalist, argument
427 frup->fru_path);
452 if (is_location_present_in_subtree(frup,
460 rc = create_children(frup, cfgalist[i].ap_log_id,
466 cfgalist[i].ap_log_id, frup->name, rc);
478 cache_probe_for_scsi_frus(frutree_frunode_t *frup) argument
495 frup->fru_path);
519 if (is_location_present_in_subtree(frup,
527 rc = create_children(frup, cfglis
668 frutree_get_geoaddr(frutree_frunode_t *frup) argument
799 probe_scsi_in_libdevinfo(frutree_frunode_t *frup, cfga_list_data_t *cfgalist, plist_t *list, int num_list, boolean_t compare_cfgadm) argument
839 probe_for_scsi_frus(frutree_frunode_t *frup) argument
[all...]
H A Dpicllibdevinfo.c410 probe_libdevinfo(frutree_frunode_t *frup, frutree_device_args_t ** device, argument
417 if (frup == NULL) {
420 FRUTREE_DEBUG1(EVENTS, "loading drivers for %s", frup->name);
423 if ((rc = load_drivers(frup->fru_path)) != PICL_SUCCESS) {
427 FRUTREE_DEBUG1(EVENTS, "done with loading drivers for %s", frup->name);
429 rnode = di_init(frup->fru_path, DINFOSUBTREE|DINFOMINOR);
475 FRUTREE_DEBUG1(EVENTS, "done with probing %s", frup->name);
503 frutree_frunode_t *frup = NULL; local
506 frup = (frutree_frunode_t *)devinfo->arg;
507 if (frup
586 get_fru_path(char *parent_path, frutree_frunode_t *frup) argument
[all...]
/illumos-gate/usr/src/uts/sun4u/lw8/sys/
H A Dsgfru_priv.h124 static int sgfru_copyin_frup(const sgfru_init_arg_t *argp, frup_info_t *frup);
127 const frup_info_t *frup, segment_t *segp);
138 const frup_info_t *frup, const fru_hdl_t *hdlp);
140 const frup_info_t *frup, const node_t *nodep);
142 const frup_info_t *frup, const section_t *sectp);
144 const frup_info_t *frup, const segment_t *segp);
146 const frup_info_t *frup, const packet_t *packp);
148 const frup_info_t *frup, const char *buffer);
/illumos-gate/usr/src/cmd/fm/modules/common/disk-monitor/
H A Ddm_platform.c184 platform_update_fru(nvlist_t *props, dm_fru_t *frup) argument
201 (void) memcpy(fru.isf_data.disk.isf_manufacturer, frup->manuf,
203 sizeof (frup->manuf)));
204 (void) memcpy(fru.isf_data.disk.isf_model, frup->model,
205 MIN(sizeof (fru.isf_data.disk.isf_model), sizeof (frup->model)));
206 (void) memcpy(fru.isf_data.disk.isf_serial, frup->serial,
207 MIN(sizeof (fru.isf_data.disk.isf_serial), sizeof (frup->serial)));
208 (void) memcpy(fru.isf_data.disk.isf_version, frup->rev,
209 MIN(sizeof (fru.isf_data.disk.isf_version), sizeof (frup->rev)));
217 frup
[all...]
H A Ddiskmon_conf.c313 dm_fru_t *frup = (dm_fru_t *)dzmalloc(sizeof (dm_fru_t)); local
315 bcopy(manu, frup->manuf, MIN(sizeof (frup->manuf), strlen(manu) + 1));
316 bcopy(modl, frup->model, MIN(sizeof (frup->model), strlen(modl) + 1));
317 bcopy(firmrev, frup->rev, MIN(sizeof (frup->rev), strlen(firmrev) + 1));
318 bcopy(serno, frup->serial,
319 MIN(sizeof (frup->serial), strlen(serno) + 1));
320 frup
325 dmfru_free(dm_fru_t *frup) argument
[all...]
H A Ddiskmon_conf.h181 dm_fru_t *frup; member in struct:diskmon
219 extern void dmfru_free(dm_fru_t *frup);
H A Dtopo_gather.c239 dm_fru_t *frup; local
322 frup = new_dmfru(manuf != NULL ? manuf : "", model != NULL ? model : "",
339 dm_assert(diskp->frup == NULL);
340 diskp->frup = frup;
508 if (diskp->frup && (target_diskp == NULL ||
511 dmfru_free(diskp->frup);
512 diskp->frup = NULL;
H A Dschg_mgr.c212 schg_send_fru_update(diskmon_t *diskp, dm_fru_t *frup) argument
222 if (dm_platform_update_fru(action, frup) != 0) {
235 if (diskp->frup != NULL)
236 schg_send_fru_update(diskp, diskp->frup);
238 log_warn("frup unexpectedly went away: not updating "
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/platform-cpu/
H A Dcpu_mdesc.c163 md_fru_t *frup; local
312 frup = topo_mod_zalloc(mod, sizeof (md_fru_t));
313 procp->fru = frup;
315 frup->nac = topo_mod_strdup(mod, str);
317 frup->nac = topo_mod_strdup(mod, MD_FRU_DEF);
319 frup->part = topo_mod_strdup(mod, str);
322 frup->serial = topo_mod_strdup(mod, str);
324 frup->dash = topo_mod_strdup(mod, str);
402 md_fru_t *frup; local
411 if ((frup
[all...]
H A Dcpu.c302 md_fru_t *frup = chip->procs[mcmp->cpumap_chipidx].fru; local
305 len = (frup->part ? strlen(frup->part) : 0) +
306 (frup->dash ? strlen(frup->dash) : 0) + 1;
309 frup->part ? frup->part : MD_STR_BLANK,
310 frup->dash ? frup->dash : MD_STR_BLANK);
316 frup
[all...]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/excalibur/envd/
H A Dpiclenvd.c924 fruenvseg_t *frup, *fruenvsegs; local
935 for (frup = fruenvsegs; frup != NULL; frup = frup->next)
936 if (strcmp(frup->fru, sensorp->fru) == 0)
939 if (frup != NULL)
942 frup = (fruenvseg_t *)malloc(sizeof (fruenvseg_t));
943 if (frup == NULL)
947 frup
1032 fruenvseg_t *frup, *fruenvsegs; local
[all...]
/illumos-gate/usr/src/uts/sun4u/lw8/io/
H A Dsgfru.c1412 sgfru_copyin_frup(const sgfru_init_arg_t *argp, frup_info_t *frup) argument
1416 bzero((caddr_t)frup, sizeof (frup_info_t));
1428 frup->fru_hdl = frup32.fru_hdl;
1429 frup->fru_cnt = frup32.fru_cnt;
1430 frup->frus = (void *)(uintptr_t)frup32.frus;
1432 f, frup->frus, frup32.frus, frup->fru_hdl, frup->fru_cnt);
1436 if (ddi_copyin((void *)argp->argp, (void *)frup,
1467 sgfru_copyin_segment(const sgfru_init_arg_t *argp, const frup_info_t *frup, argument
1544 sgfru_copyout_fru(const sgfru_init_arg_t *argp, const fru_info_t *frup) argument
1577 sgfru_copyout_handles(const sgfru_init_arg_t *argp, const frup_info_t *frup, const fru_hdl_t *hdlp) argument
1596 sgfru_copyout_nodes(const sgfru_init_arg_t *argp, const frup_info_t *frup, const node_t *nodep) argument
1615 sgfru_copyout_sections(const sgfru_init_arg_t *argp, const frup_info_t *frup, const section_t *sectp) argument
1634 sgfru_copyout_segments(const sgfru_init_arg_t *argp, const frup_info_t *frup, const segment_t *segp) argument
1653 sgfru_copyout_packets(const sgfru_init_arg_t *argp, const frup_info_t *frup, const packet_t *packp) argument
1672 sgfru_copyout_buffer(const sgfru_init_arg_t *argp, const frup_info_t *frup, const char *buffer) argument
[all...]
/illumos-gate/usr/src/lib/libipmi/common/
H A Dipmi_entity.c413 ipmi_sdr_fru_locator_t *frup; local
548 frup = (ipmi_sdr_fru_locator_t *)sdrp->is_record;
549 if (ipmi_fru_read(ihp, frup, &frudata) >= 0) {

Completed in 125 milliseconds