Lines Matching refs:hostdata
109 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; in NCR_700_get_sense_cmnd() local
111 return hostdata->cmnd; in NCR_700_get_sense_cmnd()
117 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; in NCR_700_set_depth() local
119 hostdata->depth = depth; in NCR_700_set_depth()
124 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; in NCR_700_get_depth() local
126 return hostdata->depth; in NCR_700_get_depth()
258 #define bE (hostdata->force_le_on_be ? 0 : 3)
259 #define bSWAP (hostdata->force_le_on_be)
260 #define bEBus (!hostdata->force_le_on_be)
483 const struct NCR_700_Host_Parameters *hostdata in NCR_700_readb() local
484 = (struct NCR_700_Host_Parameters *)host->hostdata[0]; in NCR_700_readb()
486 return ioread8(hostdata->base + (reg^bE)); in NCR_700_readb()
492 const struct NCR_700_Host_Parameters *hostdata in NCR_700_readl() local
493 = (struct NCR_700_Host_Parameters *)host->hostdata[0]; in NCR_700_readl()
494 __u32 value = bEBus ? ioread32be(hostdata->base + reg) : in NCR_700_readl()
495 ioread32(hostdata->base + reg); in NCR_700_readl()
507 const struct NCR_700_Host_Parameters *hostdata in NCR_700_writeb() local
508 = (struct NCR_700_Host_Parameters *)host->hostdata[0]; in NCR_700_writeb()
510 iowrite8(value, hostdata->base + (reg^bE)); in NCR_700_writeb()
516 const struct NCR_700_Host_Parameters *hostdata in NCR_700_writel() local
517 = (struct NCR_700_Host_Parameters *)host->hostdata[0]; in NCR_700_writel()
524 bEBus ? iowrite32be(value, hostdata->base + reg): in NCR_700_writel()
525 iowrite32(value, hostdata->base + reg); in NCR_700_writel()