taglinefilesource code
shp2611drivers/scsi/advansys.cstruct Scsi_Host  *shp;
shp2645drivers/scsi/advansys.cshp = asc_host[i];
shp2656drivers/scsi/advansys.ccp = (char *) advansys_info(shp);
shp2675drivers/scsi/advansys.csprintf(cp, "\nDevices attached to SCSI Host %d:\n", shp->host_no);
shp2689drivers/scsi/advansys.cif (scd->host == shp) {
shp2749drivers/scsi/advansys.cstruct Scsi_Host  *shp;
shp2917drivers/scsi/advansys.cshp = scsi_register(tpnt, sizeof(struct asc_board));
shp2920drivers/scsi/advansys.casc_host[asc_board_count++] = shp;
shp2923drivers/scsi/advansys.cmemset(ASC_BOARD(shp), 0, sizeof(struct asc_board));
shp2924drivers/scsi/advansys.cboardp = &ASC_BOARD(shp)->board;
shp2925drivers/scsi/advansys.cboardp->cfg = &ASC_BOARD(shp)->cfg;
shp2926drivers/scsi/advansys.cboardp->cfg->overrun_buf = &ASC_BOARD(shp)->overrun_buf[0];
shp2935drivers/scsi/advansys.cshp->unchecked_isa_dma = TRUE;
shp2938drivers/scsi/advansys.cshp->unchecked_isa_dma = FALSE;
shp2941drivers/scsi/advansys.cshp->unchecked_isa_dma = FALSE;
shp2944drivers/scsi/advansys.cshp->irq = boardp->irq_no = pciConfig.irqLine;
shp2946drivers/scsi/advansys.cshp->unchecked_isa_dma = FALSE;
shp2950drivers/scsi/advansys.cshp->unchecked_isa_dma = TRUE;
shp2984drivers/scsi/advansys.cscsi_unregister(shp);
shp3019drivers/scsi/advansys.cscsi_unregister(shp);
shp3030drivers/scsi/advansys.cshp->irq = boardp->irq_no;
shp3033drivers/scsi/advansys.cshp->io_port = boardp->iop_base;
shp3034drivers/scsi/advansys.cshp->n_io_port = ASC_IOADR_GAP;
shp3035drivers/scsi/advansys.cshp->this_id = boardp->cfg->chip_scsi_id;
shp3038drivers/scsi/advansys.cshp->can_queue = boardp->max_total_qng;
shp3058drivers/scsi/advansys.cshp->cmd_per_lun = 1;
shp3060drivers/scsi/advansys.cshp->cmd_per_lun = 4;
shp3062drivers/scsi/advansys.cASC_DBG1(1, "advansys_detect: cmd_per_lun: %d\n", shp->cmd_per_lun);
shp3071drivers/scsi/advansys.cshp->sg_tablesize = 8;
shp3073drivers/scsi/advansys.cshp->sg_tablesize = ASC_MAX_SG_LIST;
shp3076drivers/scsi/advansys.cshp->sg_tablesize);
shp3079drivers/scsi/advansys.cshp->base = (char *) ((ulong) AscGetChipBiosAddress(
shp3089drivers/scsi/advansys.crequest_region(shp->io_port, shp->n_io_port, "advansys");
shp3093drivers/scsi/advansys.cshp->dma_channel = NO_ISA_DMA;
shp3095drivers/scsi/advansys.cshp->dma_channel = boardp->cfg->isa_dma_channel;
shp3096drivers/scsi/advansys.cif ((ret = request_dma(shp->dma_channel, "advansys")) != 0) {
shp3098drivers/scsi/advansys.cshp->dma_channel, ret);
shp3099drivers/scsi/advansys.crelease_region(shp->io_port, shp->n_io_port);
shp3100drivers/scsi/advansys.cscsi_unregister(shp);
shp3104drivers/scsi/advansys.cAscEnableIsaDma(shp->dma_channel);
shp3108drivers/scsi/advansys.cASC_DBG1(2, "advansys_detect: request_irq() %d\n", shp->irq);
shp3109drivers/scsi/advansys.cif ((ret = request_irq(shp->irq, advansys_interrupt,
shp3112drivers/scsi/advansys.crelease_region(shp->io_port, shp->n_io_port);
shp3113drivers/scsi/advansys.cif (shp->dma_channel != NO_ISA_DMA) {
shp3114drivers/scsi/advansys.cfree_dma(shp->dma_channel);
shp3116drivers/scsi/advansys.cscsi_unregister(shp);
shp3129drivers/scsi/advansys.crelease_region(shp->io_port, shp->n_io_port);
shp3130drivers/scsi/advansys.cif (shp->dma_channel != NO_ISA_DMA) {
shp3131drivers/scsi/advansys.cfree_dma(shp->dma_channel);
shp3133drivers/scsi/advansys.cfree_irq(shp->irq, NULL);
shp3134drivers/scsi/advansys.cscsi_unregister(shp);
shp3138drivers/scsi/advansys.cASC_DBG_PRT_SCSI_HOST(2, shp);
shp3152drivers/scsi/advansys.cadvansys_release(struct Scsi_Host *shp)
shp3155drivers/scsi/advansys.cfree_irq(shp->irq, NULL);
shp3156drivers/scsi/advansys.cif (shp->dma_channel != NO_ISA_DMA) {
shp3158drivers/scsi/advansys.cfree_dma(shp->dma_channel);
shp3160drivers/scsi/advansys.crelease_region(shp->io_port, shp->n_io_port);
shp3161drivers/scsi/advansys.cscsi_unregister(shp);
shp3173drivers/scsi/advansys.cadvansys_info(struct Scsi_Host *shp)
shp3179drivers/scsi/advansys.cboardp = &ASC_BOARD(shp)->board;
shp3184drivers/scsi/advansys.cASC_VERSION, ASC_BOARD(shp)->board.max_total_qng,
shp3185drivers/scsi/advansys.c(unsigned) shp->base, shp->io_port,
shp3186drivers/scsi/advansys.cshp->io_port + (shp->n_io_port - 1), shp->irq, shp->dma_channel);
shp3207drivers/scsi/advansys.cASC_VERSION, busname, ASC_BOARD(shp)->board.max_total_qng,
shp3208drivers/scsi/advansys.c(unsigned) shp->base, shp->io_port,
shp3209drivers/scsi/advansys.cshp->io_port + (shp->n_io_port - 1), shp->irq);
shp3246drivers/scsi/advansys.cstruct Scsi_Host    *shp;
shp3251drivers/scsi/advansys.cshp = scp->host;
shp3275drivers/scsi/advansys.cif (ASC_BOARD(shp)->pending_tidmask == 0) {
shp3284drivers/scsi/advansys.cASC_BOARD(shp)->pending_tidmask);
shp3285drivers/scsi/advansys.casc_execute_pending(shp);
shp3299drivers/scsi/advansys.casc_enqueue(shp, scp, scp->target, ASC_BACK);
shp3809drivers/scsi/advansys.cstruct Scsi_Host  *shp;
shp3827drivers/scsi/advansys.cshp = scp->host;
shp3828drivers/scsi/advansys.cASC_ASSERT(shp);
shp3829drivers/scsi/advansys.cASC_DBG1(1, "asc_isr_callback: shp %x\n", (unsigned) shp);
shp3899drivers/scsi/advansys.cif (ASC_BOARD(shp)->pending_tidmask != 0) {
shp3908drivers/scsi/advansys.cASC_BOARD(shp)->pending_tidmask);
shp3909drivers/scsi/advansys.casc_execute_pending(shp);
shp3932drivers/scsi/advansys.casc_execute_pending(struct Scsi_Host *shp)
shp3943drivers/scsi/advansys.cscan_tidmask = ASC_BOARD(shp)->pending_tidmask;
shp3947drivers/scsi/advansys.cif ((scp = asc_dequeue(shp, i)) == NULL) {
shp3952drivers/scsi/advansys.casc_enqueue(shp, scp, i, ASC_FRONT);
shp4389drivers/scsi/advansys.casc_enqueue(struct Scsi_Host *shp, Scsi_Cmnd *scp, int tid, int flag)
shp4397drivers/scsi/advansys.cscp->host_scribble = (unsigned char *) ASC_BOARD(shp)->pending[tid];
shp4398drivers/scsi/advansys.cASC_BOARD(shp)->pending[tid] = (Scsi_Cmnd *) scp;
shp4400drivers/scsi/advansys.cfor (scpp = &ASC_BOARD(shp)->pending[tid]; *scpp;
shp4407drivers/scsi/advansys.cASC_BOARD(shp)->pending_tidmask |= ASC_TIX_TO_TARGET_ID(tid);
shp4418drivers/scsi/advansys.casc_dequeue(struct Scsi_Host *shp, int tid)
shp4424drivers/scsi/advansys.cif ((scp = ASC_BOARD(shp)->pending[tid]) != NULL) {
shp4425drivers/scsi/advansys.cASC_BOARD(shp)->pending[tid] = (Scsi_Cmnd *) scp->host_scribble;
shp4427drivers/scsi/advansys.cif (ASC_BOARD(shp)->pending[tid] == NULL) {
shp4428drivers/scsi/advansys.cASC_BOARD(shp)->pending_tidmask &= ~ASC_TIX_TO_TARGET_ID(tid);
shp4444drivers/scsi/advansys.casc_rmqueue(struct Scsi_Host *shp, Scsi_Cmnd *scp, int tid)
shp4451drivers/scsi/advansys.cfor (scpp = &ASC_BOARD(shp)->pending[tid];
shp4460drivers/scsi/advansys.cif (ASC_BOARD(shp)->pending[tid] == NULL) {
shp4461drivers/scsi/advansys.cASC_BOARD(shp)->pending_tidmask &= ~ASC_TIX_TO_TARGET_ID(tid);
shp58ipc/shm.cstruct shmid_ds *shp;
shp61ipc/shm.cwhile ((shp = shm_segs[id]) == IPC_NOID)
shp63ipc/shm.cif (shp == IPC_UNUSED)
shp65ipc/shm.cif (key == shp->shm_perm.key)
shp76ipc/shm.cstruct shmid_ds *shp;
shp92ipc/shm.cshp = (struct shmid_ds *) kmalloc (sizeof (*shp), GFP_KERNEL);
shp93ipc/shm.cif (!shp) {
shp100ipc/shm.cshp->shm_pages = (ulong *) kmalloc (numpages*sizeof(ulong),GFP_KERNEL);
shp101ipc/shm.cif (!shp->shm_pages) {
shp105ipc/shm.ckfree(shp);
shp109ipc/shm.cfor (i = 0; i < numpages; shp->shm_pages[i++] = 0);
shp111ipc/shm.cshp->shm_perm.key = key;
shp112ipc/shm.cshp->shm_perm.mode = (shmflg & S_IRWXUGO);
shp113ipc/shm.cshp->shm_perm.cuid = shp->shm_perm.uid = current->euid;
shp114ipc/shm.cshp->shm_perm.cgid = shp->shm_perm.gid = current->egid;
shp115ipc/shm.cshp->shm_perm.seq = shm_seq;
shp116ipc/shm.cshp->shm_segsz = size;
shp117ipc/shm.cshp->shm_cpid = current->pid;
shp118ipc/shm.cshp->attaches = NULL;
shp119ipc/shm.cshp->shm_lpid = shp->shm_nattch = 0;
shp120ipc/shm.cshp->shm_atime = shp->shm_dtime = 0;
shp121ipc/shm.cshp->shm_ctime = CURRENT_TIME;
shp122ipc/shm.cshp->shm_npages = numpages;
shp126ipc/shm.cshm_segs[id] = shp;
shp130ipc/shm.creturn (unsigned int) shp->shm_perm.seq * SHMMNI + id;
shp135ipc/shm.cstruct shmid_ds *shp;
shp149ipc/shm.cshp = shm_segs[id];
shp150ipc/shm.cif (shp->shm_perm.mode & SHM_DEST)
shp152ipc/shm.cif (size > shp->shm_segsz)
shp154ipc/shm.cif (ipcperms (&shp->shm_perm, shmflg))
shp156ipc/shm.creturn (unsigned int) shp->shm_perm.seq * SHMMNI + id;
shp165ipc/shm.cstruct shmid_ds *shp;
shp168ipc/shm.cshp = shm_segs[id];
shp169ipc/shm.cif (shp == IPC_NOID || shp == IPC_UNUSED) {
shp173ipc/shm.cshp->shm_perm.seq++;     /* for shmat */
shp179ipc/shm.cif (!shp->shm_pages) {
shp183ipc/shm.cnumpages = shp->shm_npages;
shp186ipc/shm.cpte_val(pte) = shp->shm_pages[i];
shp197ipc/shm.ckfree(shp->shm_pages);
shp199ipc/shm.ckfree(shp);
shp206ipc/shm.cstruct shmid_ds *shp;
shp263ipc/shm.cshp = shm_segs[shmid];
shp264ipc/shm.cif (shp == IPC_UNUSED || shp == IPC_NOID)
shp266ipc/shm.cif (ipcperms (&shp->shm_perm, S_IRUGO))
shp268ipc/shm.cid = (unsigned int) shp->shm_perm.seq * SHMMNI + shmid;
shp269ipc/shm.ctbuf.shm_perm   = shp->shm_perm;
shp270ipc/shm.ctbuf.shm_segsz  = shp->shm_segsz;
shp271ipc/shm.ctbuf.shm_atime  = shp->shm_atime;
shp272ipc/shm.ctbuf.shm_dtime  = shp->shm_dtime;
shp273ipc/shm.ctbuf.shm_ctime  = shp->shm_ctime;
shp274ipc/shm.ctbuf.shm_cpid   = shp->shm_cpid;
shp275ipc/shm.ctbuf.shm_lpid   = shp->shm_lpid;
shp276ipc/shm.ctbuf.shm_nattch = shp->shm_nattch;
shp281ipc/shm.cshp = shm_segs[id = (unsigned int) shmid % SHMMNI];
shp282ipc/shm.cif (shp == IPC_UNUSED || shp == IPC_NOID)
shp284ipc/shm.cif (shp->shm_perm.seq != (unsigned int) shmid / SHMMNI)
shp286ipc/shm.cipcp = &shp->shm_perm;
shp314ipc/shm.ctbuf.shm_perm   = shp->shm_perm;
shp315ipc/shm.ctbuf.shm_segsz  = shp->shm_segsz;
shp316ipc/shm.ctbuf.shm_atime  = shp->shm_atime;
shp317ipc/shm.ctbuf.shm_dtime  = shp->shm_dtime;
shp318ipc/shm.ctbuf.shm_ctime  = shp->shm_ctime;
shp319ipc/shm.ctbuf.shm_cpid   = shp->shm_cpid;
shp320ipc/shm.ctbuf.shm_lpid   = shp->shm_lpid;
shp321ipc/shm.ctbuf.shm_nattch = shp->shm_nattch;
shp325ipc/shm.cif (suser() || current->euid == shp->shm_perm.uid ||
shp326ipc/shm.ccurrent->euid == shp->shm_perm.cuid) {
shp331ipc/shm.cshp->shm_ctime = CURRENT_TIME;
shp336ipc/shm.cif (suser() || current->euid == shp->shm_perm.uid ||
shp337ipc/shm.ccurrent->euid == shp->shm_perm.cuid) {
shp338ipc/shm.cshp->shm_perm.mode |= SHM_DEST;
shp339ipc/shm.cif (shp->shm_nattch <= 0)
shp377ipc/shm.cstatic inline void insert_attach (struct shmid_ds * shp, struct vm_area_struct * shmd)
shp381ipc/shm.cif ((attaches = shp->attaches)) {
shp387ipc/shm.cshp->attaches = shmd->vm_next_share = shmd->vm_prev_share = shmd;
shp391ipc/shm.cstatic inline void remove_attach (struct shmid_ds * shp, struct vm_area_struct * shmd)
shp394ipc/shm.cif (shp->attaches != shmd) {
shp405ipc/shm.cshp->attaches = NULL;
shp407ipc/shm.cif (shp->attaches == shmd)
shp408ipc/shm.cshp->attaches = shmd->vm_next_share;
shp458ipc/shm.cstruct shmid_ds *shp;
shp469ipc/shm.cshp = shm_segs[id = (unsigned int) shmid % SHMMNI];
shp470ipc/shm.cif (shp == IPC_UNUSED || shp == IPC_NOID) {
shp478ipc/shm.cif (!(addr = get_unmapped_area(0, shp->shm_segsz)))
shp491ipc/shm.caddr > current->mm->start_stack - PAGE_SIZE*(shp->shm_npages + 4))
shp497ipc/shm.cif ((shmd = find_vma_intersection(current, addr, addr + shp->shm_segsz))) {
shp503ipc/shm.cif (ipcperms(&shp->shm_perm, shmflg & SHM_RDONLY ? S_IRUGO : S_IRUGO|S_IWUGO))
shp505ipc/shm.cif (shp->shm_perm.seq != (unsigned int) shmid / SHMMNI)
shp511ipc/shm.cif ((shp != shm_segs[id]) || (shp->shm_perm.seq != (unsigned int) shmid / SHMMNI)) {
shp518ipc/shm.cshmd->vm_end = addr + shp->shm_npages * PAGE_SIZE;
shp529ipc/shm.cshp->shm_nattch++;            /* prevent destruction */
shp531ipc/shm.cif (--shp->shm_nattch <= 0 && shp->shm_perm.mode & SHM_DEST)
shp537ipc/shm.cinsert_attach(shp,shmd);  /* insert shmd into shp->attaches */
shp539ipc/shm.cshp->shm_lpid = current->pid;
shp540ipc/shm.cshp->shm_atime = CURRENT_TIME;
shp550ipc/shm.cstruct shmid_ds *shp;
shp553ipc/shm.cshp = shm_segs[id];
shp554ipc/shm.cif (shp == IPC_UNUSED) {
shp558ipc/shm.cinsert_attach(shp,shmd);  /* insert shmd into shp->attaches */
shp559ipc/shm.cshp->shm_nattch++;
shp560ipc/shm.cshp->shm_atime = CURRENT_TIME;
shp561ipc/shm.cshp->shm_lpid = current->pid;
shp572ipc/shm.cstruct shmid_ds *shp;
shp577ipc/shm.cshp = shm_segs[id];
shp578ipc/shm.cremove_attach(shp,shmd);  /* remove from shp->attaches */
shp579ipc/shm.cshp->shm_lpid = current->pid;
shp580ipc/shm.cshp->shm_dtime = CURRENT_TIME;
shp581ipc/shm.cif (--shp->shm_nattch <= 0 && shp->shm_perm.mode & SHM_DEST)
shp608ipc/shm.cstruct shmid_ds *shp;
shp621ipc/shm.cshp = shm_segs[id];
shp622ipc/shm.cif (shp == IPC_UNUSED || shp == IPC_NOID) {
shp632ipc/shm.cif (idx >= shp->shm_npages) {
shp637ipc/shm.cpte_val(pte) = shp->shm_pages[idx];
shp644ipc/shm.cpte_val(pte) = shp->shm_pages[idx];
shp651ipc/shm.cpte_val(pte) = shp->shm_pages[idx];
shp661ipc/shm.cshp->shm_pages[idx] = pte_val(pte);
shp680ipc/shm.cstruct shmid_ds *shp;
shp692ipc/shm.cshp = shm_segs[swap_id];
shp693ipc/shm.cif (shp == IPC_UNUSED || shp == IPC_NOID || shp->shm_perm.mode & SHM_LOCKED ) {
shp708ipc/shm.cif (idx >= shp->shm_npages)
shp711ipc/shm.cpte_val(page) = shp->shm_pages[idx];
shp723ipc/shm.cif (shp->attaches)
shp724ipc/shm.cfor (shmd = shp->attaches; ; ) {
shp771ipc/shm.cif ((shmd = shmd->vm_next_share) == shp->attaches)
shp777ipc/shm.cshp->shm_pages[idx] = swap_nr;