tag | line | file | source code |
handle | 16 | arch/sparc/prom/devops.c | int handle; |
handle | 19 | arch/sparc/prom/devops.c | handle = (*(romvec->pv_v0devops.v0_devopen))(dstr); |
handle | 20 | arch/sparc/prom/devops.c | if(handle == 0) return -1; |
handle | 21 | arch/sparc/prom/devops.c | return handle; |
handle | 26 | arch/sparc/prom/devops.c | handle = (*(romvec->pv_v2devops.v2_dev_open))(dstr); |
handle | 27 | arch/sparc/prom/devops.c | return handle; |
handle | 168 | drivers/scsi/scsi_proc.c | inline int parseFree (parseHandle *handle) /* free memory */ |
handle | 170 | drivers/scsi/scsi_proc.c | kfree (handle->cmdPos); |
handle | 171 | drivers/scsi/scsi_proc.c | kfree (handle); |
handle | 180 | drivers/scsi/scsi_proc.c | parseHandle *handle; /* new handle */ |
handle | 184 | drivers/scsi/scsi_proc.c | if ((handle = (parseHandle*) kmalloc(sizeof(parseHandle), 1)) == 0) |
handle | 186 | drivers/scsi/scsi_proc.c | if ((handle->cmdPos = (char**) kmalloc(sizeof(int), cmdNum)) == 0) { |
handle | 187 | drivers/scsi/scsi_proc.c | kfree(handle); |
handle | 191 | drivers/scsi/scsi_proc.c | handle->buf = handle->bufPos = buf; /* init handle */ |
handle | 192 | drivers/scsi/scsi_proc.c | handle->cmdList = cmdList; |
handle | 193 | drivers/scsi/scsi_proc.c | handle->cmdNum = cmdNum; |
handle | 195 | drivers/scsi/scsi_proc.c | handle->cmdPos[cmdNum = 0] = cmdList; |
handle | 199 | drivers/scsi/scsi_proc.c | handle->cmdPos[++cmdNum] = ptr++; |
handle | 202 | drivers/scsi/scsi_proc.c | return(handle); |
handle | 206 | drivers/scsi/scsi_proc.c | int parseOpt(parseHandle *handle, char **param) |
handle | 212 | drivers/scsi/scsi_proc.c | if (!handle) /* invalid handle */ |
handle | 213 | drivers/scsi/scsi_proc.c | return(parseFree(handle)); |
handle | 215 | drivers/scsi/scsi_proc.c | for (; *(handle->bufPos) && *(handle->bufPos) == ' '; handle->bufPos++); |
handle | 216 | drivers/scsi/scsi_proc.c | if (!*(handle->bufPos)) |
handle | 217 | drivers/scsi/scsi_proc.c | return(parseFree(handle)); /* end of data */ |
handle | 219 | drivers/scsi/scsi_proc.c | startPos = handle->bufPos; /* store cmd start */ |
handle | 220 | drivers/scsi/scsi_proc.c | for (; handle->cmdPos[cmdIndex][cmdLen] && *(handle->bufPos); handle->bufPos++) |
handle | 224 | drivers/scsi/scsi_proc.c | if (*(handle->bufPos) == handle->cmdPos[cmdIndex][cmdLen]) |
handle | 227 | drivers/scsi/scsi_proc.c | if (memcmp(startPos, (char*)(handle->cmdPos[++cmdIndex]), cmdLen)) |
handle | 228 | drivers/scsi/scsi_proc.c | return(parseFree(handle)); /* unknown command */ |
handle | 230 | drivers/scsi/scsi_proc.c | if (cmdIndex >= handle->cmdNum) |
handle | 231 | drivers/scsi/scsi_proc.c | return(parseFree(handle)); /* unknown command */ |
handle | 239 | drivers/scsi/scsi_proc.c | for (; *(handle->bufPos) && *(handle->bufPos) == ' '; handle->bufPos++); |
handle | 240 | drivers/scsi/scsi_proc.c | *param = handle->bufPos; |
handle | 242 | drivers/scsi/scsi_proc.c | for (; *(handle->bufPos) && *(handle->bufPos) != ' '; handle->bufPos++); |
handle | 243 | drivers/scsi/scsi_proc.c | *(handle->bufPos++) = 0; |