Lines Matching refs:host
205 struct pxa3xx_nand_host *host[NUM_CHIP_SELECT]; member
363 static void pxa3xx_nand_set_timing(struct pxa3xx_nand_host *host, in pxa3xx_nand_set_timing() argument
366 struct pxa3xx_nand_info *info = host->info_data; in pxa3xx_nand_set_timing()
742 struct pxa3xx_nand_host *host = info->host[info->cs]; in prepare_start_command() local
743 struct mtd_info *mtd = host->mtd; in prepare_start_command()
792 struct pxa3xx_nand_host *host; in prepare_set_command() local
795 host = info->host[info->cs]; in prepare_set_command()
796 mtd = host->mtd; in prepare_set_command()
808 addr_cycle = NDCB0_ADDR_CYC(host->row_addr_cycles in prepare_set_command()
809 + host->col_addr_cycles); in prepare_set_command()
915 info->buf_count = host->read_id_bytes; in prepare_set_command()
966 struct pxa3xx_nand_host *host = mtd->priv; in nand_cmdfunc() local
967 struct pxa3xx_nand_info *info = host->info_data; in nand_cmdfunc()
983 if (info->cs != host->cs) { in nand_cmdfunc()
984 info->cs = host->cs; in nand_cmdfunc()
1014 struct pxa3xx_nand_host *host = mtd->priv; in nand_cmdfunc_extended() local
1015 struct pxa3xx_nand_info *info = host->info_data; in nand_cmdfunc_extended()
1031 if (info->cs != host->cs) { in nand_cmdfunc_extended()
1032 info->cs = host->cs; in nand_cmdfunc_extended()
1133 struct pxa3xx_nand_host *host = mtd->priv; in pxa3xx_nand_read_page_hwecc() local
1134 struct pxa3xx_nand_info *info = host->info_data; in pxa3xx_nand_read_page_hwecc()
1159 struct pxa3xx_nand_host *host = mtd->priv; in pxa3xx_nand_read_byte() local
1160 struct pxa3xx_nand_info *info = host->info_data; in pxa3xx_nand_read_byte()
1172 struct pxa3xx_nand_host *host = mtd->priv; in pxa3xx_nand_read_word() local
1173 struct pxa3xx_nand_info *info = host->info_data; in pxa3xx_nand_read_word()
1185 struct pxa3xx_nand_host *host = mtd->priv; in pxa3xx_nand_read_buf() local
1186 struct pxa3xx_nand_info *info = host->info_data; in pxa3xx_nand_read_buf()
1196 struct pxa3xx_nand_host *host = mtd->priv; in pxa3xx_nand_write_buf() local
1197 struct pxa3xx_nand_info *info = host->info_data; in pxa3xx_nand_write_buf()
1211 struct pxa3xx_nand_host *host = mtd->priv; in pxa3xx_nand_waitfunc() local
1212 struct pxa3xx_nand_info *info = host->info_data; in pxa3xx_nand_waitfunc()
1239 struct pxa3xx_nand_host *host = info->host[info->cs]; in pxa3xx_nand_config_flash() local
1253 host->read_id_bytes = (f->page_size == 2048) ? 4 : 2; in pxa3xx_nand_config_flash()
1256 host->col_addr_cycles = (f->page_size == 2048) ? 2 : 1; in pxa3xx_nand_config_flash()
1259 host->row_addr_cycles = 3; in pxa3xx_nand_config_flash()
1261 host->row_addr_cycles = 2; in pxa3xx_nand_config_flash()
1264 ndcr |= (host->col_addr_cycles == 2) ? NDCR_RA_START : 0; in pxa3xx_nand_config_flash()
1270 ndcr |= NDCR_RD_ID_CNT(host->read_id_bytes); in pxa3xx_nand_config_flash()
1275 pxa3xx_nand_set_timing(host, f->timing); in pxa3xx_nand_config_flash()
1285 struct pxa3xx_nand_host *host = info->host[0]; in pxa3xx_nand_detect_config() local
1291 host->read_id_bytes = 4; in pxa3xx_nand_detect_config()
1294 host->read_id_bytes = 2; in pxa3xx_nand_detect_config()
1376 mtd = info->host[info->cs]->mtd; in pxa3xx_nand_sensing()
1463 struct pxa3xx_nand_host *host = mtd->priv; in pxa3xx_nand_scan() local
1464 struct pxa3xx_nand_info *info = host->info_data; in pxa3xx_nand_scan()
1594 host->col_addr_cycles = 2; in pxa3xx_nand_scan()
1596 host->col_addr_cycles = 1; in pxa3xx_nand_scan()
1609 host->row_addr_cycles = 3; in pxa3xx_nand_scan()
1611 host->row_addr_cycles = 2; in pxa3xx_nand_scan()
1619 struct pxa3xx_nand_host *host; in alloc_nand_resource() local
1629 sizeof(*host)) * pdata->num_cs, GFP_KERNEL); in alloc_nand_resource()
1637 (sizeof(*mtd) + sizeof(*host)) * cs); in alloc_nand_resource()
1639 host = (struct pxa3xx_nand_host *)chip; in alloc_nand_resource()
1640 info->host[cs] = host; in alloc_nand_resource()
1641 host->mtd = mtd; in alloc_nand_resource()
1642 host->cs = cs; in alloc_nand_resource()
1643 host->info_data = info; in alloc_nand_resource()
1644 mtd->priv = host; in alloc_nand_resource()
1767 nand_release(info->host[cs]->mtd); in pxa3xx_nand_remove()
1838 struct mtd_info *mtd = info->host[cs]->mtd; in pxa3xx_nand_probe()
1885 mtd = info->host[cs]->mtd; in pxa3xx_nand_suspend()
1918 mtd = info->host[cs]->mtd; in pxa3xx_nand_resume()