Home
last modified time | relevance | path

Searched refs:geo (Results 1 – 25 of 102) sorted by relevance

12345

/openbmc/openbmc/meta-openembedded/meta-filesystems/recipes-filesystems/logfsprogs/logfsprogs/
H A D0001-btree-Avoid-conflicts-with-libc-namespace-about-setk.patch21 @@ -123,7 +123,7 @@ static unsigned long bval(struct btree_geo *geo, unsigned long *node, int n)
22 return node[geo->no_pairs * geo->keylen + n];
25 -static void setkey(struct btree_geo *geo, unsigned long *node,
26 +static void _setkey(struct btree_geo *geo, unsigned long *node,
29 longcpy(bkey(geo, node, n), key, geo->keylen);
30 @@ -292,7 +292,7 @@ static unsigned long *find_level(struct btree_head *head, struct btree_geo *geo,
34 - setkey(geo, node, key, i);
35 + _setkey(geo, node, key, i);
38 node = (unsigned long *)bval(geo, node, i);
39 @@ -311,7 +311,7 @@ static int btree_grow(struct btree_head *head, struct btree_geo *geo)
[all …]
/openbmc/linux/lib/
H A Dbtree.c135 static void dec_key(struct btree_geo *geo, unsigned long *key) in dec_key() argument
140 for (i = geo->keylen - 1; i >= 0; i--) { in dec_key()
148 static unsigned long *bkey(struct btree_geo *geo, unsigned long *node, int n) in bkey() argument
150 return &node[n * geo->keylen]; in bkey()
153 static void *bval(struct btree_geo *geo, unsigned long *node, int n) in bval() argument
155 return (void *)node[geo->no_longs + n]; in bval()
158 static void setkey(struct btree_geo *geo, unsigned long *node, int n, in setkey() argument
161 longcpy(bkey(geo, node, n), key, geo->keylen); in setkey()
164 static void setval(struct btree_geo *geo, unsigned long *node, int n, in setval() argument
167 node[geo->no_longs + n] = (unsigned long) val; in setval()
[all …]
/openbmc/linux/drivers/net/wireless/intel/ipw2x00/
H A Dlibipw_geo.c37 if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) in libipw_is_valid_channel()
41 for (i = 0; i < ieee->geo.bg_channels; i++) in libipw_is_valid_channel()
45 if ((ieee->geo.bg[i].channel == channel) && in libipw_is_valid_channel()
46 !(ieee->geo.bg[i].flags & LIBIPW_CH_INVALID) && in libipw_is_valid_channel()
48 !(ieee->geo.bg[i].flags & LIBIPW_CH_B_ONLY))) in libipw_is_valid_channel()
52 for (i = 0; i < ieee->geo.a_channels; i++) in libipw_is_valid_channel()
53 if ((ieee->geo.a[i].channel == channel) && in libipw_is_valid_channel()
54 !(ieee->geo.a[i].flags & LIBIPW_CH_INVALID)) in libipw_is_valid_channel()
66 if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) in libipw_channel_to_index()
70 for (i = 0; i < ieee->geo.bg_channels; i++) in libipw_channel_to_index()
[all …]
/openbmc/linux/fs/xfs/libxfs/
H A Dxfs_dir2.h125 xfs_dir2_byte_to_db(struct xfs_da_geometry *geo, xfs_dir2_off_t by) in xfs_dir2_byte_to_db() argument
127 return (xfs_dir2_db_t)(by >> geo->blklog); in xfs_dir2_byte_to_db()
134 xfs_dir2_dataptr_to_db(struct xfs_da_geometry *geo, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_db() argument
136 return xfs_dir2_byte_to_db(geo, xfs_dir2_dataptr_to_byte(dp)); in xfs_dir2_dataptr_to_db()
143 xfs_dir2_byte_to_off(struct xfs_da_geometry *geo, xfs_dir2_off_t by) in xfs_dir2_byte_to_off() argument
145 return (xfs_dir2_data_aoff_t)(by & (geo->blksize - 1)); in xfs_dir2_byte_to_off()
152 xfs_dir2_dataptr_to_off(struct xfs_da_geometry *geo, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_off() argument
154 return xfs_dir2_byte_to_off(geo, xfs_dir2_dataptr_to_byte(dp)); in xfs_dir2_dataptr_to_off()
161 xfs_dir2_db_off_to_byte(struct xfs_da_geometry *geo, xfs_dir2_db_t db, in xfs_dir2_db_off_to_byte() argument
164 return ((xfs_dir2_off_t)db << geo->blklog) + o; in xfs_dir2_db_off_to_byte()
[all …]
H A Dxfs_sb.c1179 struct xfs_fsop_geom *geo, in xfs_fs_geometry() argument
1184 memset(geo, 0, sizeof(struct xfs_fsop_geom)); in xfs_fs_geometry()
1186 geo->blocksize = sbp->sb_blocksize; in xfs_fs_geometry()
1187 geo->rtextsize = sbp->sb_rextsize; in xfs_fs_geometry()
1188 geo->agblocks = sbp->sb_agblocks; in xfs_fs_geometry()
1189 geo->agcount = sbp->sb_agcount; in xfs_fs_geometry()
1190 geo->logblocks = sbp->sb_logblocks; in xfs_fs_geometry()
1191 geo->sectsize = sbp->sb_sectsize; in xfs_fs_geometry()
1192 geo->inodesize = sbp->sb_inodesize; in xfs_fs_geometry()
1193 geo->imaxpct = sbp->sb_imax_pct; in xfs_fs_geometry()
[all …]
H A Dxfs_dir2_leaf.c145 struct xfs_da_geometry *geo = mp->m_dir_geo; in xfs_dir3_leaf_check_int() local
152 ltp = xfs_dir2_leaf_tail_p(geo, leaf); in xfs_dir3_leaf_check_int()
159 if (hdr->count > geo->leaf_max_ents) in xfs_dir3_leaf_check_int()
179 if (isleaf1 && xfs_dir2_dataptr_to_db(geo, in xfs_dir3_leaf_check_int()
363 ASSERT(bno >= xfs_dir2_byte_to_db(args->geo, XFS_DIR2_LEAF_OFFSET) && in xfs_dir3_leaf_get_buf()
364 bno < xfs_dir2_byte_to_db(args->geo, XFS_DIR2_FREE_OFFSET)); in xfs_dir3_leaf_get_buf()
366 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, bno), in xfs_dir3_leaf_get_buf()
416 ldb = xfs_dir2_da_to_db(args->geo, blkno); in xfs_dir2_block_to_leaf()
417 ASSERT(ldb == xfs_dir2_byte_to_db(args->geo, XFS_DIR2_LEAF_OFFSET)); in xfs_dir2_block_to_leaf()
428 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_to_leaf()
[all …]
H A Dxfs_attr_leaf.c95 struct xfs_da_geometry *geo, in xfs_attr3_leaf_firstused_from_disk() argument
115 ASSERT(geo->blksize > USHRT_MAX); in xfs_attr3_leaf_firstused_from_disk()
116 to->firstused = geo->blksize; in xfs_attr3_leaf_firstused_from_disk()
122 struct xfs_da_geometry *geo, in xfs_attr3_leaf_firstused_to_disk() argument
139 ASSERT(from->firstused == geo->blksize); in xfs_attr3_leaf_firstused_to_disk()
153 struct xfs_da_geometry *geo, in xfs_attr3_leaf_hdr_from_disk() argument
170 xfs_attr3_leaf_firstused_from_disk(geo, to, from); in xfs_attr3_leaf_hdr_from_disk()
184 xfs_attr3_leaf_firstused_from_disk(geo, to, from); in xfs_attr3_leaf_hdr_from_disk()
195 struct xfs_da_geometry *geo, in xfs_attr3_leaf_hdr_to_disk() argument
212 xfs_attr3_leaf_firstused_to_disk(geo, to, from); in xfs_attr3_leaf_hdr_to_disk()
[all …]
H A Dxfs_dir2_node.c40 xfs_dir2_db_to_fdb(struct xfs_da_geometry *geo, xfs_dir2_db_t db) in xfs_dir2_db_to_fdb() argument
42 return xfs_dir2_byte_to_db(geo, XFS_DIR2_FREE_OFFSET) + in xfs_dir2_db_to_fdb()
43 (db / geo->free_max_bests); in xfs_dir2_db_to_fdb()
50 xfs_dir2_db_to_fdindex(struct xfs_da_geometry *geo, xfs_dir2_db_t db) in xfs_dir2_db_to_fdindex() argument
52 return db % geo->free_max_bests; in xfs_dir2_db_to_fdindex()
329 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, fbno), in xfs_dir3_free_get_buf()
396 args->geo->free_hdr_size - 1); in xfs_dir2_free_log_header()
432 ASSERT(fdb == xfs_dir2_byte_to_db(args->geo, XFS_DIR2_FREE_OFFSET)); in xfs_dir2_leaf_to_node()
442 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_to_node()
444 (uint)dp->i_disk_size / args->geo->blksize) { in xfs_dir2_leaf_to_node()
[all …]
H A Dxfs_dir2_data.c85 struct xfs_da_geometry *geo) in xfs_dir2_data_max_leaf_entries() argument
87 return (geo->blksize - sizeof(struct xfs_dir2_block_tail) - in xfs_dir2_data_max_leaf_entries()
88 geo->data_entry_offset) / in xfs_dir2_data_max_leaf_entries()
118 struct xfs_da_geometry *geo = mp->m_dir_geo; in __xfs_dir3_data_check() local
127 offset = geo->data_entry_offset; in __xfs_dir3_data_check()
132 btp = xfs_dir2_block_tail_p(geo, hdr); in __xfs_dir3_data_check()
136 xfs_dir2_data_max_leaf_entries(geo)) in __xfs_dir3_data_check()
145 end = xfs_dir3_data_end_offset(geo, hdr); in __xfs_dir3_data_check()
254 addr = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in __xfs_dir3_data_check()
664 struct xfs_da_geometry *geo = mp->m_dir_geo; in xfs_dir2_data_freescan() local
[all …]
H A Dxfs_dir2.c243 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_init()
280 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_createname()
376 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_lookup()
448 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_removename()
509 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_replace()
585 count = args->geo->fsbcount; in xfs_dir2_grow_inode()
591 *dbp = xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)bno); in xfs_dir2_grow_inode()
625 if (XFS_FSB_TO_B(mp, eof) != args->geo->blksize) in xfs_dir2_isblock()
629 if (XFS_IS_CORRUPT(mp, args->dp->i_disk_size != args->geo->blksize)) in xfs_dir2_isblock()
650 if (eof != args->geo->leafblk + args->geo->fsbcount) in xfs_dir2_isleaf()
[all …]
H A Dxfs_dir2_block.c393 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_addname()
653 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_lookup()
659 xfs_dir2_dataptr_to_off(args->geo, in xfs_dir2_block_lookup()
704 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_lookup_int()
742 ((char *)hdr + xfs_dir2_dataptr_to_off(args->geo, addr)); in xfs_dir2_block_lookup_int()
807 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_removename()
813 xfs_dir2_dataptr_to_off(args->geo, in xfs_dir2_block_removename()
882 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_replace()
888 xfs_dir2_dataptr_to_off(args->geo, in xfs_dir2_block_replace()
954 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_to_block()
[all …]
/openbmc/linux/fs/xfs/
H A Dxfs_dir2_readdir.c58 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_sf_getdents() local
69 if (xfs_dir2_dataptr_to_db(geo, ctx->pos) > geo->datablk) in xfs_dir2_sf_getdents()
77 dot_offset = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents()
78 geo->data_entry_offset); in xfs_dir2_sf_getdents()
79 dotdot_offset = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents()
80 geo->data_entry_offset + in xfs_dir2_sf_getdents()
109 off = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents()
130 ctx->pos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk + 1, 0) & in xfs_dir2_sf_getdents()
149 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_block_getdents() local
156 if (xfs_dir2_dataptr_to_db(geo, ctx->pos) > geo->datablk) in xfs_dir2_block_getdents()
[all …]
H A Dxfs_health.c294 struct xfs_fsop_geom *geo, in xfgeo_health_tick() argument
300 geo->checked |= m->ioctl_mask; in xfgeo_health_tick()
302 geo->sick |= m->ioctl_mask; in xfgeo_health_tick()
309 struct xfs_fsop_geom *geo) in xfs_fsop_geom_health() argument
315 geo->sick = 0; in xfs_fsop_geom_health()
316 geo->checked = 0; in xfs_fsop_geom_health()
320 xfgeo_health_tick(geo, sick, checked, m); in xfs_fsop_geom_health()
324 xfgeo_health_tick(geo, sick, checked, m); in xfs_fsop_geom_health()
/openbmc/linux/drivers/mtd/nand/raw/gpmi-nand/
H A Dgpmi-nand.c198 struct bch_geometry *geo = &this->bch_geometry; in gpmi_dump_info() local
227 geo->gf_len, in gpmi_dump_info()
228 geo->ecc_strength, in gpmi_dump_info()
229 geo->page_size, in gpmi_dump_info()
230 geo->metadata_size, in gpmi_dump_info()
231 geo->ecc0_chunk_size, in gpmi_dump_info()
232 geo->eccn_chunk_size, in gpmi_dump_info()
233 geo->ecc_chunk_count, in gpmi_dump_info()
234 geo->payload_size, in gpmi_dump_info()
235 geo->auxiliary_size, in gpmi_dump_info()
[all …]
/openbmc/openbmc/poky/meta/recipes-devtools/syslinux/syslinux/
H A D0008-libinstaller-syslinuxext-implement-syslinux_patch_bo.patch137 -int get_geometry(int devfd, uint64_t totalbytes, struct hd_geometry *geo)
145 - memset(geo, 0, sizeof *geo);
147 - if (!ioctl(devfd, HDIO_GETGEO, geo)) {
150 - geo->heads = fd_str.head;
151 - geo->sectors = fd_str.sect;
152 - geo->cylinders = fd_str.track;
153 - geo->start = 0;
160 - memcpy(geo, &gp->g, sizeof *geo);
169 - geo->heads = opt.heads ? : 64;
170 - geo->sectors = opt.sectors ? : 32;
[all …]
/openbmc/linux/drivers/media/pci/bt8xx/
H A Dbttv-risc.c237 bttv_calc_geo_old(struct bttv *btv, struct bttv_geometry *geo, in bttv_calc_geo_old() argument
257 geo->hscale = ((totalwidth*4096UL)/xsf-4096); in bttv_calc_geo_old()
258 geo->hdelay = tvnorm->hdelayx1; in bttv_calc_geo_old()
259 geo->hdelay = (geo->hdelay*width)/swidth; in bttv_calc_geo_old()
260 geo->hdelay &= 0x3fe; in bttv_calc_geo_old()
262 geo->vscale = (0x10000UL-sr) & 0x1fff; in bttv_calc_geo_old()
263 geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) | in bttv_calc_geo_old()
265 geo->vscale |= interleaved ? (BT848_VSCALE_INT<<8) : 0; in bttv_calc_geo_old()
266 geo->vdelay = vdelay; in bttv_calc_geo_old()
267 geo->width = width; in bttv_calc_geo_old()
[all …]
/openbmc/linux/block/partitions/
H A Dibm.c31 static sector_t cchh2blk(struct vtoc_cchh *ptr, struct hd_geometry *geo) in cchh2blk() argument
41 return cyl * geo->heads * geo->sectors + in cchh2blk()
42 head * geo->sectors; in cchh2blk()
49 static sector_t cchhb2blk(struct vtoc_cchhb *ptr, struct hd_geometry *geo) in cchhb2blk() argument
59 return cyl * geo->heads * geo->sectors + in cchhb2blk()
60 head * geo->sectors + in cchhb2blk()
66 struct hd_geometry *geo, in find_label() argument
134 struct hd_geometry *geo, in find_vol1_partitions() argument
155 blk = cchhb2blk(&label->vol.vtoc, geo) + 1; in find_vol1_partitions()
175 offset = cchh2blk(&f1.DS1EXT1.llimit, geo); in find_vol1_partitions()
[all …]
/openbmc/linux/fs/xfs/scrub/
H A Dreaddir.c37 struct xfs_da_geometry *geo = mp->m_dir_geo; in xchk_dir_walk_sf() local
51 dapos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xchk_dir_walk_sf()
52 geo->data_entry_offset); in xchk_dir_walk_sf()
59 dapos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xchk_dir_walk_sf()
60 geo->data_entry_offset + in xchk_dir_walk_sf()
73 dapos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xchk_dir_walk_sf()
99 struct xfs_da_geometry *geo = mp->m_dir_geo; in xchk_dir_walk_block() local
109 end = xfs_dir3_data_end_offset(geo, bp->b_addr); in xchk_dir_walk_block()
110 for (off = geo->data_entry_offset; off < end; off = next_off) { in xchk_dir_walk_block()
128 dapos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, off); in xchk_dir_walk_block()
[all …]
H A Ddir.c155 struct xfs_da_geometry *geo = mp->m_dir_geo; in xchk_dir_rec() local
189 db = xfs_dir2_dataptr_to_db(geo, ptr); in xchk_dir_rec()
190 off = xfs_dir2_dataptr_to_off(geo, ptr); in xchk_dir_rec()
191 rec_bno = xfs_dir2_db_to_da(geo, db); in xchk_dir_rec()
193 if (rec_bno >= geo->leafblk) { in xchk_dir_rec()
214 iter_off = geo->data_entry_offset; in xchk_dir_rec()
215 end = xfs_dir3_data_end_offset(geo, bp->b_addr); in xchk_dir_rec()
460 struct xfs_da_geometry *geo = sc->mp->m_dir_geo; in xchk_directory_leaf1_bestfree() local
478 ltp = xfs_dir2_leaf_tail_p(geo, leaf); in xchk_directory_leaf1_bestfree()
503 if (leafhdr.count > geo->leaf_max_ents) { in xchk_directory_leaf1_bestfree()
[all …]
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dmxs_nand.c114 static inline int mxs_nand_calc_mark_offset(struct bch_geometry *geo, in mxs_nand_calc_mark_offset() argument
117 uint32_t chunk_data_size_in_bits = geo->ecc_chunk_size * 8; in mxs_nand_calc_mark_offset()
118 uint32_t chunk_ecc_size_in_bits = geo->ecc_strength * geo->gf_len; in mxs_nand_calc_mark_offset()
157 geo->block_mark_byte_offset = block_mark_bit_offset >> 3; in mxs_nand_calc_mark_offset()
158 geo->block_mark_bit_offset = block_mark_bit_offset & 0x7; in mxs_nand_calc_mark_offset()
163 static inline int mxs_nand_calc_ecc_layout_by_info(struct bch_geometry *geo, in mxs_nand_calc_ecc_layout_by_info() argument
173 geo->gf_len = 13; in mxs_nand_calc_ecc_layout_by_info()
176 geo->gf_len = 14; in mxs_nand_calc_ecc_layout_by_info()
182 geo->ecc_chunk_size = ecc_step; in mxs_nand_calc_ecc_layout_by_info()
183 geo->ecc_strength = round_up(ecc_strength, 2); in mxs_nand_calc_ecc_layout_by_info()
[all …]
/openbmc/linux/drivers/md/
H A Draid10.c109 int size = offsetof(struct r10bio, devs[conf->geo.raid_disks]); in r10bio_pool_alloc()
263 for (i = 0; i < conf->geo.raid_disks; i++) { in put_all_bios()
358 for (slot = 0; slot < conf->geo.raid_disks; slot++) { in find_bio_disk()
581 static void __raid10_find_phys(struct geom *geo, struct r10bio *r10bio) in __raid10_find_phys() argument
591 last_far_set_start = (geo->raid_disks / geo->far_set_size) - 1; in __raid10_find_phys()
592 last_far_set_start *= geo->far_set_size; in __raid10_find_phys()
594 last_far_set_size = geo->far_set_size; in __raid10_find_phys()
595 last_far_set_size += (geo->raid_disks % geo->far_set_size); in __raid10_find_phys()
598 chunk = r10bio->sector >> geo->chunk_shift; in __raid10_find_phys()
599 sector = r10bio->sector & geo->chunk_mask; in __raid10_find_phys()
[all …]
/openbmc/linux/drivers/media/platform/renesas/
H A Dsh_vou.c506 static void vou_adjust_input(struct sh_vou_geometry *geo, v4l2_std_id std) in vou_adjust_input() argument
518 v4l_bound_align_image(&geo->in_width, in vou_adjust_input()
520 &geo->in_height, in vou_adjust_input()
526 unsigned int found = geo->output.width * vou_scale_h_den[i] / in vou_adjust_input()
533 err = abs(found - geo->in_width); in vou_adjust_input()
543 geo->in_width = best; in vou_adjust_input()
544 geo->scale_idx_h = idx; in vou_adjust_input()
551 unsigned int found = geo->output.height * vou_scale_v_den[i] / in vou_adjust_input()
558 err = abs(found - geo->in_height); in vou_adjust_input()
568 geo->in_height = best; in vou_adjust_input()
[all …]
/openbmc/linux/include/linux/
H A Dbtree.h100 void *btree_lookup(struct btree_head *head, struct btree_geo *geo,
115 int __must_check btree_insert(struct btree_head *head, struct btree_geo *geo,
128 int btree_update(struct btree_head *head, struct btree_geo *geo,
140 void *btree_remove(struct btree_head *head, struct btree_geo *geo,
159 struct btree_geo *geo, gfp_t gfp);
172 void *btree_last(struct btree_head *head, struct btree_geo *geo,
186 void *btree_get_prev(struct btree_head *head, struct btree_geo *geo,
191 size_t btree_visitor(struct btree_head *head, struct btree_geo *geo,
199 size_t btree_grim_visitor(struct btree_head *head, struct btree_geo *geo,
/openbmc/qemu/hw/block/
H A Dhd-geometry.c122 HDGeometry geo; in hd_geometry_guess() local
126 if (blk_probe_geometry(blk, &geo) == 0) { in hd_geometry_guess()
127 *pcyls = geo.cylinders; in hd_geometry_guess()
128 *psecs = geo.sectors; in hd_geometry_guess()
129 *pheads = geo.heads; in hd_geometry_guess()
/openbmc/linux/block/
H A Dioctl.c407 struct hd_geometry geo; in blkdev_getgeo() local
419 memset(&geo, 0, sizeof(geo)); in blkdev_getgeo()
420 geo.start = get_start_sect(bdev); in blkdev_getgeo()
421 ret = disk->fops->getgeo(bdev, &geo); in blkdev_getgeo()
424 if (copy_to_user(argp, &geo, sizeof(geo))) in blkdev_getgeo()
441 struct hd_geometry geo; in compat_hdio_getgeo() local
449 memset(&geo, 0, sizeof(geo)); in compat_hdio_getgeo()
454 geo.start = get_start_sect(bdev); in compat_hdio_getgeo()
455 ret = disk->fops->getgeo(bdev, &geo); in compat_hdio_getgeo()
459 ret = copy_to_user(ugeo, &geo, 4); in compat_hdio_getgeo()
[all …]

12345