taglinefilesource code
shp2588drivers/scsi/advansys.cstruct Scsi_Host  *shp;
shp2622drivers/scsi/advansys.cshp = asc_host[i];
shp2633drivers/scsi/advansys.ccp = (char *) advansys_info(shp);
shp2652drivers/scsi/advansys.csprintf(cp, "\nDevices attached to SCSI Host %d:\n", shp->host_no);
shp2666drivers/scsi/advansys.cif (scd->host == shp) {
shp2726drivers/scsi/advansys.cstruct Scsi_Host  *shp;
shp2894drivers/scsi/advansys.cshp = scsi_register(tpnt, sizeof(struct asc_board));
shp2897drivers/scsi/advansys.casc_host[asc_board_count++] = shp;
shp2900drivers/scsi/advansys.cmemset(ASC_BOARD(shp), 0, sizeof(struct asc_board));
shp2901drivers/scsi/advansys.cboardp = &ASC_BOARD(shp)->board;
shp2902drivers/scsi/advansys.cboardp->cfg = &ASC_BOARD(shp)->cfg;
shp2903drivers/scsi/advansys.cboardp->cfg->overrun_buf = &ASC_BOARD(shp)->overrun_buf[0];
shp2912drivers/scsi/advansys.cshp->unchecked_isa_dma = TRUE;
shp2915drivers/scsi/advansys.cshp->unchecked_isa_dma = FALSE;
shp2918drivers/scsi/advansys.cshp->unchecked_isa_dma = FALSE;
shp2921drivers/scsi/advansys.cshp->irq = boardp->irq_no = pciConfig.irqLine;
shp2923drivers/scsi/advansys.cshp->unchecked_isa_dma = FALSE;
shp2927drivers/scsi/advansys.cshp->unchecked_isa_dma = TRUE;
shp2961drivers/scsi/advansys.cscsi_unregister(shp);
shp2996drivers/scsi/advansys.cscsi_unregister(shp);
shp3007drivers/scsi/advansys.cshp->irq = boardp->irq_no;
shp3010drivers/scsi/advansys.cshp->io_port = boardp->iop_base;
shp3011drivers/scsi/advansys.cshp->n_io_port = ASC_IOADR_GAP;
shp3012drivers/scsi/advansys.cshp->this_id = boardp->cfg->chip_scsi_id;
shp3015drivers/scsi/advansys.cshp->can_queue = boardp->max_total_qng;
shp3035drivers/scsi/advansys.cshp->cmd_per_lun = 1;
shp3037drivers/scsi/advansys.cshp->cmd_per_lun = 4;
shp3039drivers/scsi/advansys.cASC_DBG1(1, "advansys_detect: cmd_per_lun: %d\n", shp->cmd_per_lun);
shp3048drivers/scsi/advansys.cshp->sg_tablesize = 8;
shp3050drivers/scsi/advansys.cshp->sg_tablesize = ASC_MAX_SG_LIST;
shp3053drivers/scsi/advansys.cshp->sg_tablesize);
shp3056drivers/scsi/advansys.cshp->base = (char *) ((ulong) AscGetChipBiosAddress(
shp3066drivers/scsi/advansys.crequest_region(shp->io_port, shp->n_io_port, "advansys");
shp3070drivers/scsi/advansys.cshp->dma_channel = NO_ISA_DMA;
shp3072drivers/scsi/advansys.cshp->dma_channel = boardp->cfg->isa_dma_channel;
shp3073drivers/scsi/advansys.cif ((ret = request_dma(shp->dma_channel, "advansys")) != 0) {
shp3075drivers/scsi/advansys.cshp->dma_channel, ret);
shp3076drivers/scsi/advansys.crelease_region(shp->io_port, shp->n_io_port);
shp3077drivers/scsi/advansys.cscsi_unregister(shp);
shp3081drivers/scsi/advansys.cAscEnableIsaDma(shp->dma_channel);
shp3085drivers/scsi/advansys.cASC_DBG1(2, "advansys_detect: request_irq() %d\n", shp->irq);
shp3086drivers/scsi/advansys.cif ((ret = request_irq(shp->irq, advansys_interrupt,
shp3089drivers/scsi/advansys.crelease_region(shp->io_port, shp->n_io_port);
shp3090drivers/scsi/advansys.cif (shp->dma_channel != NO_ISA_DMA) {
shp3091drivers/scsi/advansys.cfree_dma(shp->dma_channel);
shp3093drivers/scsi/advansys.cscsi_unregister(shp);
shp3106drivers/scsi/advansys.crelease_region(shp->io_port, shp->n_io_port);
shp3107drivers/scsi/advansys.cif (shp->dma_channel != NO_ISA_DMA) {
shp3108drivers/scsi/advansys.cfree_dma(shp->dma_channel);
shp3110drivers/scsi/advansys.cfree_irq(shp->irq);
shp3111drivers/scsi/advansys.cscsi_unregister(shp);
shp3115drivers/scsi/advansys.cASC_DBG_PRT_SCSI_HOST(2, shp);
shp3129drivers/scsi/advansys.cadvansys_release(struct Scsi_Host *shp)
shp3132drivers/scsi/advansys.cfree_irq(shp->irq);
shp3133drivers/scsi/advansys.cif (shp->dma_channel != NO_ISA_DMA) {
shp3135drivers/scsi/advansys.cfree_dma(shp->dma_channel);
shp3137drivers/scsi/advansys.crelease_region(shp->io_port, shp->n_io_port);
shp3138drivers/scsi/advansys.cscsi_unregister(shp);
shp3150drivers/scsi/advansys.cadvansys_info(struct Scsi_Host *shp)
shp3156drivers/scsi/advansys.cboardp = &ASC_BOARD(shp)->board;
shp3161drivers/scsi/advansys.cASC_VERSION, ASC_BOARD(shp)->board.max_total_qng,
shp3162drivers/scsi/advansys.c(unsigned) shp->base, shp->io_port,
shp3163drivers/scsi/advansys.cshp->io_port + (shp->n_io_port - 1), shp->irq, shp->dma_channel);
shp3184drivers/scsi/advansys.cASC_VERSION, busname, 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);
shp3223drivers/scsi/advansys.cstruct Scsi_Host    *shp;
shp3228drivers/scsi/advansys.cshp = scp->host;
shp3252drivers/scsi/advansys.cif (ASC_BOARD(shp)->pending_tidmask == 0) {
shp3261drivers/scsi/advansys.cASC_BOARD(shp)->pending_tidmask);
shp3262drivers/scsi/advansys.casc_execute_pending(shp);
shp3276drivers/scsi/advansys.casc_enqueue(shp, scp, scp->target, ASC_BACK);
shp3780drivers/scsi/advansys.cstruct Scsi_Host  *shp;
shp3798drivers/scsi/advansys.cshp = scp->host;
shp3799drivers/scsi/advansys.cASC_ASSERT(shp);
shp3800drivers/scsi/advansys.cASC_DBG1(1, "asc_isr_callback: shp %x\n", (unsigned) shp);
shp3870drivers/scsi/advansys.cif (ASC_BOARD(shp)->pending_tidmask != 0) {
shp3879drivers/scsi/advansys.cASC_BOARD(shp)->pending_tidmask);
shp3880drivers/scsi/advansys.casc_execute_pending(shp);
shp3903drivers/scsi/advansys.casc_execute_pending(struct Scsi_Host *shp)
shp3914drivers/scsi/advansys.cscan_tidmask = ASC_BOARD(shp)->pending_tidmask;
shp3918drivers/scsi/advansys.cif ((scp = asc_dequeue(shp, i)) == NULL) {
shp3923drivers/scsi/advansys.casc_enqueue(shp, scp, i, ASC_FRONT);
shp4360drivers/scsi/advansys.casc_enqueue(struct Scsi_Host *shp, Scsi_Cmnd *scp, int tid, int flag)
shp4368drivers/scsi/advansys.cscp->host_scribble = (unsigned char *) ASC_BOARD(shp)->pending[tid];
shp4369drivers/scsi/advansys.cASC_BOARD(shp)->pending[tid] = (Scsi_Cmnd *) scp;
shp4371drivers/scsi/advansys.cfor (scpp = &ASC_BOARD(shp)->pending[tid]; *scpp;
shp4378drivers/scsi/advansys.cASC_BOARD(shp)->pending_tidmask |= ASC_TIX_TO_TARGET_ID(tid);
shp4389drivers/scsi/advansys.casc_dequeue(struct Scsi_Host *shp, int tid)
shp4395drivers/scsi/advansys.cif ((scp = ASC_BOARD(shp)->pending[tid]) != NULL) {
shp4396drivers/scsi/advansys.cASC_BOARD(shp)->pending[tid] = (Scsi_Cmnd *) scp->host_scribble;
shp4398drivers/scsi/advansys.cif (ASC_BOARD(shp)->pending[tid] == NULL) {
shp4399drivers/scsi/advansys.cASC_BOARD(shp)->pending_tidmask &= ~ASC_TIX_TO_TARGET_ID(tid);
shp4415drivers/scsi/advansys.casc_rmqueue(struct Scsi_Host *shp, Scsi_Cmnd *scp, int tid)
shp4422drivers/scsi/advansys.cfor (scpp = &ASC_BOARD(shp)->pending[tid];
shp4431drivers/scsi/advansys.cif (ASC_BOARD(shp)->pending[tid] == NULL) {
shp4432drivers/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;