Lines Matching refs:hostdata

108 	struct NCR_700_Device_Parameters *hostdata = SDp->hostdata;  in NCR_700_get_sense_cmnd()  local
110 return hostdata->cmnd; in NCR_700_get_sense_cmnd()
116 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; in NCR_700_set_depth() local
118 hostdata->depth = depth; in NCR_700_set_depth()
123 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; in NCR_700_get_depth() local
125 return hostdata->depth; in NCR_700_get_depth()
256 #define bE (hostdata->force_le_on_be ? 0 : 3)
257 #define bSWAP (hostdata->force_le_on_be)
258 #define bEBus (!hostdata->force_le_on_be)
479 const struct NCR_700_Host_Parameters *hostdata in NCR_700_readb() local
480 = (struct NCR_700_Host_Parameters *)host->hostdata[0]; in NCR_700_readb()
482 return ioread8(hostdata->base + (reg^bE)); in NCR_700_readb()
488 const struct NCR_700_Host_Parameters *hostdata in NCR_700_readl() local
489 = (struct NCR_700_Host_Parameters *)host->hostdata[0]; in NCR_700_readl()
490 __u32 value = bEBus ? ioread32be(hostdata->base + reg) : in NCR_700_readl()
491 ioread32(hostdata->base + reg); in NCR_700_readl()
503 const struct NCR_700_Host_Parameters *hostdata in NCR_700_writeb() local
504 = (struct NCR_700_Host_Parameters *)host->hostdata[0]; in NCR_700_writeb()
506 iowrite8(value, hostdata->base + (reg^bE)); in NCR_700_writeb()
512 const struct NCR_700_Host_Parameters *hostdata in NCR_700_writel() local
513 = (struct NCR_700_Host_Parameters *)host->hostdata[0]; in NCR_700_writel()
520 bEBus ? iowrite32be(value, hostdata->base + reg): in NCR_700_writel()
521 iowrite32(value, hostdata->base + reg); in NCR_700_writel()