Searched refs:gd_ptr (Results 1 – 8 of 8) sorted by relevance
/external/ltp/testcases/kernel/device-drivers/include/ |
D | includeTest.c | 84 static struct gendisk *gd_ptr; variable 154 gd_ptr = kmalloc(sizeof(struct gendisk *), GFP_KERNEL); in test_init_module() 155 if (!gd_ptr) { in test_init_module() 161 gd_ptr = alloc_disk(1); in test_init_module() 162 printk(KERN_ALERT "gd_ptr after alloc = %p \n", gd_ptr); in test_init_module() 163 gd_ptr->major = INCLUDEMAJOR; in test_init_module() 164 gd_ptr->first_minor = 0; in test_init_module() 165 gd_ptr->fops = &bdops; in test_init_module() 167 gd_ptr->driverfs_dev = NULL; in test_init_module() 168 gd_ptr->capacity = MAX_NUM_DISKS; in test_init_module() [all …]
|
/external/ltp/testcases/kernel/fs/scsi/ltpfs/ |
D | LtpfsCmds.c | 52 static struct gendisk *gd_ptr; variable 197 gd_ptr = kmalloc(sizeof(struct gendisk *), GFP_KERNEL); in init_module() 199 if (!gd_ptr) { in init_module() 204 gd_ptr = alloc_disk(1); in init_module() 206 printk(KERN_ALERT "gd_ptr after alloc = %p \n", gd_ptr); in init_module() 208 gd_ptr->major = ltp_fs_major; in init_module() 209 gd_ptr->first_minor = 0; in init_module() 210 gd_ptr->fops = &blkops; in init_module() 211 gd_ptr->driverfs_dev = NULL; in init_module() 212 gd_ptr->capacity = MAX_NUM_DISKS; in init_module() [all …]
|
/external/ltp/testcases/kernel/device-drivers/nls/ |
D | nlsTest.c | 84 static struct gendisk *gd_ptr; variable 169 gd_ptr = alloc_disk(1); in test_init_module() 170 if (!gd_ptr) { in test_init_module() 176 printk(KERN_ALERT "gd_ptr after alloc=%p\n", gd_ptr); in test_init_module() 180 del_gendisk(gd_ptr); in test_init_module() 186 gd_ptr->major = NLSMAJOR; in test_init_module() 187 gd_ptr->first_minor = 0; in test_init_module() 188 gd_ptr->fops = &bdops; in test_init_module() 189 gd_ptr->queue = queue; in test_init_module() 190 gd_ptr->private_data = dev; in test_init_module() [all …]
|
/external/u-boot/common/init/ |
D | board_init.c | 15 __weak void arch_setup_gd(struct global_data *gd_ptr) in arch_setup_gd() argument 17 gd = gd_ptr; in arch_setup_gd() 101 struct global_data *gd_ptr; in board_init_f_init_reserve() local 108 gd_ptr = (struct global_data *)base; in board_init_f_init_reserve() 110 memset(gd_ptr, '\0', sizeof(*gd)); in board_init_f_init_reserve() 113 arch_setup_gd(gd_ptr); in board_init_f_init_reserve()
|
/external/ltp/testcases/kernel/device-drivers/block/block_dev_kernel/ |
D | test_genhd.c | 27 struct gendisk *gd_ptr; in tc20() local 29 gd_ptr = alloc_disk(1); in tc20() 30 if (!gd_ptr) { in tc20() 33 printk(KERN_DEBUG "gd_ptr after alloc=%p\n", gd_ptr); in tc20() 35 del_gendisk(gd_ptr); in tc20()
|
/external/u-boot/arch/arm/include/asm/ |
D | global_data.h | 88 gd_t *gd_ptr; in get_gd() local 95 __asm__ volatile("mov %0, x18\n" : "=r" (gd_ptr)); in get_gd() 97 __asm__ volatile("mov %0, r9\n" : "=r" (gd_ptr)); in get_gd() 100 return gd_ptr; in get_gd()
|
/external/u-boot/arch/x86/include/asm/ |
D | global_data.h | 122 gd_t *gd_ptr; in get_fs_gd_ptr() local 125 asm volatile("fs mov 0, %0\n" : "=r" (gd_ptr)); in get_fs_gd_ptr() 127 asm volatile("fs movl 0, %0\n" : "=r" (gd_ptr)); in get_fs_gd_ptr() 130 return gd_ptr; in get_fs_gd_ptr()
|
/external/u-boot/include/ |
D | init.h | 155 void arch_setup_gd(gd_t *gd_ptr);
|