Lines Matching defs:rsrc
51 static int drd_rcm_io_config_request(drctl_rsrc_t *rsrc, int nrsrc);
52 static int drd_rcm_io_config_notify(drctl_rsrc_t *rsrc, int nrsrc);
53 static int drd_rcm_io_unconfig_request(drctl_rsrc_t *rsrc, int nrsrc);
54 static int drd_rcm_io_unconfig_notify(drctl_rsrc_t *rsrc, int nrsrc);
468 drctl_rsrc_t *rsrc;
501 rsrc = cpu_rsrcstr_to_rsrc(rsrcstr, rsrcs, nrsrc);
503 if (rsrc == NULL) {
512 rsrc->offset = (uintptr_t)strdup(errstr);
531 rsrc = cpu_rsrcstr_to_rsrc(rlist[idx], rsrcs, nrsrc);
533 if (rsrc == NULL) {
538 rsrc->status = ((state == RCM_STATE_OFFLINE) ?
823 cpu_rsrcstr_to_cpuid(const char *rsrc)
833 cpuid_off = strrchr(rsrc, 'u');
1008 drd_dbg(" rlist[%d]: rsrc=%s, state=%-2d (%s)", idx,
1014 drd_rcm_io_config_request(drctl_rsrc_t *rsrc, int nrsrc)
1021 rsrc->status = DRCTL_STATUS_DENY;
1031 rsrc->status = DRCTL_STATUS_ALLOW;
1054 drd_rcm_io_unconfig_request(drctl_rsrc_t *rsrc, int nrsrc)
1057 char *dev = rsrc->res_dev_path;
1063 rsrc->status = DRCTL_STATUS_DENY;
1069 rsrc->status = DRCTL_STATUS_ALLOW;
1072 rsrc->status = DRCTL_STATUS_DENY;
1073 rsrc->offset = (uintptr_t)rcm_info_table(rinfo);
1084 drd_rcm_io_unconfig_notify(drctl_rsrc_t *rsrc, int nrsrc)
1095 return (rcm_notify_remove(rcm_hdl, rsrc->res_dev_path, 0, NULL));
1114 char *rsrc;
1125 rsrc = dgettext(TEXT_DOMAIN, "Resource");
1144 if ((w = strlen(rsrc)) > w_rsrc)
1171 w = strlen(rsrc);
1174 (void) strcat(table, rsrc);