tag | line | file | source code |
handle | 17 | arch/sparc/prom/devops.c | int handle; |
handle | 20 | arch/sparc/prom/devops.c | handle = (*(romvec->pv_v0devops.v0_devopen))(dstr); |
handle | 21 | arch/sparc/prom/devops.c | if(handle == 0) return -1; |
handle | 22 | arch/sparc/prom/devops.c | return handle; |
handle | 27 | arch/sparc/prom/devops.c | handle = (*(romvec->pv_v2devops.v2_dev_open))(dstr); |
handle | 28 | arch/sparc/prom/devops.c | return handle; |
handle | 162 | drivers/scsi/scsi_proc.c | inline int parseFree (parseHandle *handle) /* free memory */ |
handle | 164 | drivers/scsi/scsi_proc.c | kfree (handle->cmdPos); |
handle | 165 | drivers/scsi/scsi_proc.c | kfree (handle); |
handle | 174 | drivers/scsi/scsi_proc.c | parseHandle *handle; /* new handle */ |
handle | 178 | drivers/scsi/scsi_proc.c | if ((handle = (parseHandle*) kmalloc(sizeof(parseHandle), 1)) == 0) |
handle | 180 | drivers/scsi/scsi_proc.c | if ((handle->cmdPos = (char**) kmalloc(sizeof(int), cmdNum)) == 0) { |
handle | 181 | drivers/scsi/scsi_proc.c | kfree(handle); |
handle | 185 | drivers/scsi/scsi_proc.c | handle->buf = handle->bufPos = buf; /* init handle */ |
handle | 186 | drivers/scsi/scsi_proc.c | handle->cmdList = cmdList; |
handle | 187 | drivers/scsi/scsi_proc.c | handle->cmdNum = cmdNum; |
handle | 189 | drivers/scsi/scsi_proc.c | handle->cmdPos[cmdNum = 0] = cmdList; |
handle | 193 | drivers/scsi/scsi_proc.c | handle->cmdPos[++cmdNum] = ptr++; |
handle | 196 | drivers/scsi/scsi_proc.c | return(handle); |
handle | 200 | drivers/scsi/scsi_proc.c | int parseOpt(parseHandle *handle, char **param) |
handle | 206 | drivers/scsi/scsi_proc.c | if (!handle) /* invalid handle */ |
handle | 207 | drivers/scsi/scsi_proc.c | return(parseFree(handle)); |
handle | 209 | drivers/scsi/scsi_proc.c | for (; *(handle->bufPos) && *(handle->bufPos) == ' '; handle->bufPos++); |
handle | 210 | drivers/scsi/scsi_proc.c | if (!*(handle->bufPos)) |
handle | 211 | drivers/scsi/scsi_proc.c | return(parseFree(handle)); /* end of data */ |
handle | 213 | drivers/scsi/scsi_proc.c | startPos = handle->bufPos; /* store cmd start */ |
handle | 214 | drivers/scsi/scsi_proc.c | for (; handle->cmdPos[cmdIndex][cmdLen] && *(handle->bufPos); handle->bufPos++) |
handle | 218 | drivers/scsi/scsi_proc.c | if (*(handle->bufPos) == handle->cmdPos[cmdIndex][cmdLen]) |
handle | 221 | drivers/scsi/scsi_proc.c | if (memcmp(startPos, (char*)(handle->cmdPos[++cmdIndex]), cmdLen)) |
handle | 222 | drivers/scsi/scsi_proc.c | return(parseFree(handle)); /* unknown command */ |
handle | 224 | drivers/scsi/scsi_proc.c | if (cmdIndex >= handle->cmdNum) |
handle | 225 | drivers/scsi/scsi_proc.c | return(parseFree(handle)); /* unknown command */ |
handle | 233 | drivers/scsi/scsi_proc.c | for (; *(handle->bufPos) && *(handle->bufPos) == ' '; handle->bufPos++); |
handle | 234 | drivers/scsi/scsi_proc.c | *param = handle->bufPos; |
handle | 236 | drivers/scsi/scsi_proc.c | for (; *(handle->bufPos) && *(handle->bufPos) != ' '; handle->bufPos++); |
handle | 237 | drivers/scsi/scsi_proc.c | *(handle->bufPos++) = 0; |