tag | line | file | source code |
sem | 524 | drivers/block/ide-cd.c | struct semaphore *sem, |
sem | 561 | drivers/block/ide-cd.c | rq->sem = sem; |
sem | 643 | drivers/block/ide-cd.c | struct semaphore *sem = NULL; |
sem | 682 | drivers/block/ide-cd.c | sem = rq->sem; |
sem | 683 | drivers/block/ide-cd.c | rq->sem = NULL; |
sem | 690 | drivers/block/ide-cd.c | cdrom_queue_request_sense (drive, sem, pc->sense_data, pc); |
sem | 3063 | drivers/block/ide-tape.c | struct semaphore sem = MUTEX_LOCKED; |
sem | 3072 | drivers/block/ide-tape.c | rq->sem=&sem; |
sem | 3073 | drivers/block/ide-tape.c | down (&sem); |
sem | 781 | drivers/block/ide.c | if (rq->sem != NULL) |
sem | 782 | drivers/block/ide.c | up(rq->sem); |
sem | 1632 | drivers/block/ide.c | rq->sem = NULL; |
sem | 1676 | drivers/block/ide.c | struct semaphore sem = MUTEX_LOCKED; |
sem | 1682 | drivers/block/ide.c | rq->sem = &sem; |
sem | 1703 | drivers/block/ide.c | down(&sem); /* wait for it to be serviced */ |
sem | 378 | drivers/block/ll_rw_blk.c | !req->sem && |
sem | 392 | drivers/block/ll_rw_blk.c | !req->sem && |
sem | 432 | drivers/block/ll_rw_blk.c | req->sem = NULL; |
sem | 444 | drivers/block/ll_rw_blk.c | struct semaphore sem = MUTEX_LOCKED; |
sem | 472 | drivers/block/ll_rw_blk.c | req->sem = &sem; |
sem | 476 | drivers/block/ll_rw_blk.c | down(&sem); |
sem | 564 | drivers/block/ll_rw_blk.c | struct semaphore sem = MUTEX_LOCKED; |
sem | 604 | drivers/block/ll_rw_blk.c | req[j]->sem = &sem; |
sem | 611 | drivers/block/ll_rw_blk.c | down(&sem); |
sem | 111 | drivers/scsi/eata_dma.c | if (scmd->request.sem != NULL) |
sem | 112 | drivers/scsi/eata_dma.c | up(scmd->request.sem); |
sem | 188 | drivers/scsi/eata_dma_proc.c | struct semaphore sem = MUTEX_LOCKED; |
sem | 190 | drivers/scsi/eata_dma_proc.c | scmd.request.sem = &sem; |
sem | 193 | drivers/scsi/eata_dma_proc.c | down(&sem); |
sem | 316 | drivers/scsi/eata_dma_proc.c | struct semaphore sem = MUTEX_LOCKED; |
sem | 318 | drivers/scsi/eata_dma_proc.c | scmd.request.sem = &sem; |
sem | 321 | drivers/scsi/eata_dma_proc.c | down(&sem); |
sem | 358 | drivers/scsi/scsi.c | if (SCpnt->request.sem != NULL) |
sem | 359 | drivers/scsi/scsi.c | up(SCpnt->request.sem); |
sem | 542 | drivers/scsi/scsi.c | struct semaphore sem = MUTEX_LOCKED; |
sem | 543 | drivers/scsi/scsi.c | SCpnt->request.sem = &sem; |
sem | 548 | drivers/scsi/scsi.c | down (&sem); |
sem | 584 | drivers/scsi/scsi.c | struct semaphore sem = MUTEX_LOCKED; |
sem | 585 | drivers/scsi/scsi.c | SCpnt->request.sem = &sem; |
sem | 590 | drivers/scsi/scsi.c | down (&sem); |
sem | 723 | drivers/scsi/scsi.c | struct semaphore sem = MUTEX_LOCKED; |
sem | 725 | drivers/scsi/scsi.c | SCpnt->request.sem = &sem; |
sem | 729 | drivers/scsi/scsi.c | down (&sem); |
sem | 920 | drivers/scsi/scsi.c | SCpnt->request.sem = NULL; /* Wait until whole thing done */ |
sem | 927 | drivers/scsi/scsi.c | SCpnt->request.sem = NULL; /* And no one is waiting for the device |
sem | 1069 | drivers/scsi/scsi.c | SCpnt->request.sem = NULL; /* Wait until whole thing done*/ |
sem | 1079 | drivers/scsi/scsi.c | SCpnt->request.sem = NULL; /* And no one is waiting for this |
sem | 493 | drivers/scsi/scsi.h | if (req->sem != NULL) { |
sem | 494 | drivers/scsi/scsi.h | up(req->sem); |
sem | 99 | drivers/scsi/scsi_ioctl.c | if (req->sem != NULL) { |
sem | 100 | drivers/scsi/scsi_ioctl.c | up(req->sem); |
sem | 111 | drivers/scsi/scsi_ioctl.c | struct semaphore sem = MUTEX_LOCKED; |
sem | 112 | drivers/scsi/scsi_ioctl.c | SCpnt->request.sem = &sem; |
sem | 116 | drivers/scsi/scsi_ioctl.c | down(&sem); |
sem | 243 | drivers/scsi/scsi_ioctl.c | struct semaphore sem = MUTEX_LOCKED; |
sem | 244 | drivers/scsi/scsi_ioctl.c | SCpnt->request.sem = &sem; |
sem | 247 | drivers/scsi/scsi_ioctl.c | down(&sem); |
sem | 947 | drivers/scsi/sd.c | if (req->sem != NULL) { |
sem | 948 | drivers/scsi/sd.c | up(req->sem); |
sem | 984 | drivers/scsi/sd.c | struct semaphore sem = MUTEX_LOCKED; |
sem | 987 | drivers/scsi/sd.c | SCpnt->request.sem = &sem; |
sem | 992 | drivers/scsi/sd.c | down(&sem); |
sem | 1019 | drivers/scsi/sd.c | struct semaphore sem = MUTEX_LOCKED; |
sem | 1022 | drivers/scsi/sd.c | SCpnt->request.sem = &sem; |
sem | 1027 | drivers/scsi/sd.c | down(&sem); |
sem | 1058 | drivers/scsi/sd.c | struct semaphore sem = MUTEX_LOCKED; |
sem | 1061 | drivers/scsi/sd.c | SCpnt->request.sem = &sem; |
sem | 1066 | drivers/scsi/sd.c | down(&sem); /* sleep until it is ready */ |
sem | 1205 | drivers/scsi/sd.c | struct semaphore sem = MUTEX_LOCKED; |
sem | 1207 | drivers/scsi/sd.c | SCpnt->request.sem = &sem; |
sem | 1212 | drivers/scsi/sd.c | down(&sem); |
sem | 970 | drivers/scsi/sr.c | if (req->sem != NULL) { |
sem | 971 | drivers/scsi/sr.c | up(req->sem); |
sem | 996 | drivers/scsi/sr.c | struct semaphore sem = MUTEX_LOCKED; |
sem | 997 | drivers/scsi/sr.c | SCpnt->request.sem = &sem; |
sem | 1002 | drivers/scsi/sr.c | down(&sem); |
sem | 28 | drivers/scsi/sr_ioctl.c | if (req->sem != NULL) { |
sem | 29 | drivers/scsi/sr_ioctl.c | up(req->sem); |
sem | 44 | drivers/scsi/sr_ioctl.c | struct semaphore sem = MUTEX_LOCKED; |
sem | 45 | drivers/scsi/sr_ioctl.c | SCpnt->request.sem = &sem; |
sem | 49 | drivers/scsi/sr_ioctl.c | down(&sem); |
sem | 219 | drivers/scsi/st.c | up(SCpnt->request.sem); |
sem | 240 | drivers/scsi/st.c | STp->sem = MUTEX_LOCKED; |
sem | 241 | drivers/scsi/st.c | SCpnt->request.sem = &(STp->sem); |
sem | 248 | drivers/scsi/st.c | down(SCpnt->request.sem); |
sem | 271 | drivers/scsi/st.c | down(&(STp->sem)); |
sem | 970 | drivers/scsi/st.c | STp->sem = MUTEX_LOCKED; |
sem | 971 | drivers/scsi/st.c | SCpnt->request.sem = &(STp->sem); |
sem | 50 | drivers/scsi/st.h | struct semaphore sem; |
sem | 391 | include/linux/blk.h | if (req->sem != NULL) |
sem | 392 | include/linux/blk.h | up(req->sem); |
sem | 29 | include/linux/blkdev.h | struct semaphore * sem; |
sem | 430 | include/linux/sched.h | extern void __down(struct semaphore * sem); |
sem | 435 | include/linux/sched.h | extern inline void down(struct semaphore * sem) |
sem | 437 | include/linux/sched.h | if (sem->count <= 0) |
sem | 438 | include/linux/sched.h | __down(sem); |
sem | 439 | include/linux/sched.h | sem->count--; |
sem | 442 | include/linux/sched.h | extern inline void up(struct semaphore * sem) |
sem | 444 | include/linux/sched.h | sem->count++; |
sem | 445 | include/linux/sched.h | wake_up(&sem->wait); |
sem | 22 | include/linux/sem.h | struct sem *sem_base; /* ptr to first semaphore in array */ |
sem | 100 | ipc/sem.c | size = sizeof (*sma) + nsems * sizeof (struct sem); |
sem | 111 | ipc/sem.c | sma->sem_base = (struct sem *) &sma[1]; |
sem | 184 | ipc/sem.c | struct sem * curr = &sma->sem_base[sop->sem_num]; |
sem | 208 | ipc/sem.c | struct sem * curr = &sma->sem_base[sop->sem_num]; |
sem | 223 | ipc/sem.c | struct sem * curr = &sma->sem_base[sop->sem_num]; |
sem | 367 | ipc/sem.c | struct sem *curr = NULL; |
sem | 699 | ipc/sem.c | struct sem * sem = &sma->sem_base[i]; |
sem | 700 | ipc/sem.c | sem->semval += u->semadj[i]; |
sem | 701 | ipc/sem.c | if (sem->semval < 0) |
sem | 702 | ipc/sem.c | sem->semval = 0; /* shouldn't happen */ |
sem | 703 | ipc/sem.c | sem->sempid = current->pid; |
sem | 411 | kernel/sched.c | void __down(struct semaphore * sem) |
sem | 414 | kernel/sched.c | add_wait_queue(&sem->wait, &wait); |
sem | 416 | kernel/sched.c | while (sem->count <= 0) { |
sem | 421 | kernel/sched.c | remove_wait_queue(&sem->wait, &wait); |