Lines Matching refs:res
1150 "not enough res"
2116 rsmresource_t *res;
2135 (res = rsmresource_free(rnum)) == NULL) {
2140 switch (res->rsmrc_type) {
2143 rsmseg_close((rsmseg_t *)res, 0);
6770 rsmresource_t *res;
6778 res = rsmresource_lookup(rnum, RSM_NOLOCK);
6781 if ((res == NULL) || (res == RSMRC_RESERVED) ||
6782 (res->rsmrc_type == RSM_RESOURCE_BAR)) {
6792 seg = (rsmseg_t *)res;
6810 rsmresource_seg(rsmresource_t *res, minor_t rnum, cred_t *credp,
6820 if (res != RSMRC_RESERVED) {
6821 seg = (rsmseg_t *)res;
7469 rsmresource_t *res;
7526 res = rsmresource_lookup(rnum, RSM_LOCK);
7537 im_seg = (rsmseg_t *)res;
7963 rsmresource_t *res;
8084 res = rsmresource_lookup(rnum, RSM_NOLOCK);
8085 ASSERT(res != NULL);
8096 seg = rsmresource_seg(res, rnum, credp,
8107 seg = rsmresource_seg(res, rnum, credp,
8117 if (res != RSMRC_RESERVED &&
8118 res->rsmrc_type == RSM_RESOURCE_IMPORT_SEGMENT) {
8119 error = rsmbar_ioctl((rsmseg_t *)res, &msg, cmd, arg,
8121 } else { /* invalid res value */
8126 if (res != RSMRC_RESERVED) {
8127 if (res->rsmrc_type == RSM_RESOURCE_IMPORT_SEGMENT)
8128 error = exportbell_ioctl((rsmseg_t *)res, cmd);
8129 else if (res->rsmrc_type == RSM_RESOURCE_EXPORT_SEGMENT)
8130 error = importbell_ioctl((rsmseg_t *)res, cmd);
8133 } else { /* invalid res value */
8198 rsmresource_t *res;
8211 res = (rsmresource_t *)rsmresource_lookup(rnum, RSM_NOLOCK);
8212 ASSERT(res != NULL);
8214 seg = (rsmseg_t *)res;