Lines Matching refs:ahci_gendisk0

16 struct blk_gendisk ahci_gendisk0 = {0}; // 暂时硬性指定一个ahci_device  variable
90 memset(&ahci_gendisk0, 0, sizeof(ahci_gendisk0)); in ahci_init_gendisk()
91 strcpy(ahci_gendisk0.disk_name, "ahci0"); in ahci_init_gendisk()
92 ahci_gendisk0.flags = BLK_GF_AHCI; in ahci_init_gendisk()
93 ahci_gendisk0.fops = &ahci_operation; in ahci_init_gendisk()
94 mutex_init(&ahci_gendisk0.open_mutex); in ahci_init_gendisk()
95 ahci_gendisk0.request_queue = &ahci_req_queue; in ahci_init_gendisk()
97 ahci_gendisk0.private_data = __alloc_private_data(); in ahci_init_gendisk()
102 ((struct ahci_blk_private_data *)ahci_gendisk0.private_data)->ahci_ctrl_num = 0; in ahci_init_gendisk()
103 ((struct ahci_blk_private_data *)ahci_gendisk0.private_data)->ahci_port_num = __first_port; in ahci_init_gendisk()
105 …MBR_read_partition_table(&ahci_gendisk0, ((struct ahci_blk_private_data *)ahci_gendisk0.private_da… in ahci_init_gendisk()
107 …struct MBR_disk_partition_table_t *ptable = ((struct ahci_blk_private_data *)ahci_gendisk0.private… in ahci_init_gendisk()
114 ++ahci_gendisk0.part_cnt; in ahci_init_gendisk()
116 if (ahci_gendisk0.part_cnt) in ahci_init_gendisk()
119ahci_gendisk0.partition = (struct block_device *)kzalloc(ahci_gendisk0.part_cnt * sizeof(struct bl… in ahci_init_gendisk()
128 ahci_gendisk0.partition[cnt].bd_disk = &ahci_gendisk0; in ahci_init_gendisk()
129 ahci_gendisk0.partition[cnt].bd_partno = cnt; in ahci_init_gendisk()
130 ahci_gendisk0.partition[cnt].bd_queue = &ahci_req_queue; in ahci_init_gendisk()
131 ahci_gendisk0.partition[cnt].bd_sectors_num = ptable->DPTE[i].total_sectors; in ahci_init_gendisk()
132 ahci_gendisk0.partition[cnt].bd_start_sector = ptable->DPTE[i].starting_sector; in ahci_init_gendisk()
133 ahci_gendisk0.partition[cnt].bd_superblock = NULL; // 挂载文件系统时才会初始化superblock in ahci_init_gendisk()
134 ahci_gendisk0.partition[cnt].bd_start_LBA = ptable->DPTE[i].starting_LBA; in ahci_init_gendisk()