/linux-4.1.27/lib/ |
D | btree.c | 135 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 …]
|
/linux-4.1.27/drivers/net/wireless/ipw2x00/ |
D | libipw_geo.c | 51 if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) in libipw_is_valid_channel() 55 for (i = 0; i < ieee->geo.bg_channels; i++) in libipw_is_valid_channel() 59 if ((ieee->geo.bg[i].channel == channel) && in libipw_is_valid_channel() 60 !(ieee->geo.bg[i].flags & LIBIPW_CH_INVALID) && in libipw_is_valid_channel() 62 !(ieee->geo.bg[i].flags & LIBIPW_CH_B_ONLY))) in libipw_is_valid_channel() 66 for (i = 0; i < ieee->geo.a_channels; i++) in libipw_is_valid_channel() 67 if ((ieee->geo.a[i].channel == channel) && in libipw_is_valid_channel() 68 !(ieee->geo.a[i].flags & LIBIPW_CH_INVALID)) in libipw_is_valid_channel() 80 if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) in libipw_channel_to_index() 84 for (i = 0; i < ieee->geo.bg_channels; i++) in libipw_channel_to_index() [all …]
|
D | ipw2200.c | 1919 const struct libipw_geo *geo = libipw_get_geo(priv->ieee); in show_channels() local 1924 "(802.11bg):\n", geo->bg_channels); in show_channels() 1926 for (i = 0; i < geo->bg_channels; i++) { in show_channels() 1928 geo->bg[i].channel, in show_channels() 1929 geo->bg[i].flags & LIBIPW_CH_RADAR_DETECT ? in show_channels() 1931 ((geo->bg[i].flags & LIBIPW_CH_NO_IBSS) || in show_channels() 1932 (geo->bg[i].flags & LIBIPW_CH_RADAR_DETECT)) in show_channels() 1934 geo->bg[i].flags & LIBIPW_CH_PASSIVE_ONLY ? in show_channels() 1936 geo->bg[i].flags & LIBIPW_CH_B_ONLY ? in show_channels() 1942 "(802.11a):\n", geo->a_channels); in show_channels() [all …]
|
D | libipw.h | 726 struct libipw_geo geo; member 972 void libipw_set_geo(struct libipw_device *ieee, const struct libipw_geo *geo);
|
D | ipw2100.c | 1906 const struct libipw_geo *geo = libipw_get_geo(priv->ieee); in ipw2100_wdev_init() local 1913 if (geo->bg_channels) { in ipw2100_wdev_init() 1917 bg_band->n_channels = geo->bg_channels; in ipw2100_wdev_init() 1918 bg_band->channels = kcalloc(geo->bg_channels, in ipw2100_wdev_init() 1926 for (i = 0; i < geo->bg_channels; i++) { in ipw2100_wdev_init() 1928 bg_band->channels[i].center_freq = geo->bg[i].freq; in ipw2100_wdev_init() 1929 bg_band->channels[i].hw_value = geo->bg[i].channel; in ipw2100_wdev_init() 1930 bg_band->channels[i].max_power = geo->bg[i].max_power; in ipw2100_wdev_init() 1931 if (geo->bg[i].flags & LIBIPW_CH_PASSIVE_ONLY) in ipw2100_wdev_init() 1934 if (geo->bg[i].flags & LIBIPW_CH_NO_IBSS) in ipw2100_wdev_init() [all …]
|
/linux-4.1.27/fs/xfs/libxfs/ |
D | xfs_dir2.h | 89 int (*leaf_max_ents)(struct xfs_da_geometry *geo); 106 int (*free_max_bests)(struct xfs_da_geometry *geo); 108 xfs_dir2_db_t (*db_to_fdb)(struct xfs_da_geometry *geo, 110 int (*db_to_fdindex)(struct xfs_da_geometry *geo, 214 xfs_dir2_byte_to_db(struct xfs_da_geometry *geo, xfs_dir2_off_t by) in xfs_dir2_byte_to_db() argument 216 return (xfs_dir2_db_t)(by >> geo->blklog); in xfs_dir2_byte_to_db() 223 xfs_dir2_dataptr_to_db(struct xfs_da_geometry *geo, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_db() argument 225 return xfs_dir2_byte_to_db(geo, xfs_dir2_dataptr_to_byte(dp)); in xfs_dir2_dataptr_to_db() 232 xfs_dir2_byte_to_off(struct xfs_da_geometry *geo, xfs_dir2_off_t by) in xfs_dir2_byte_to_off() argument 234 return (xfs_dir2_data_aoff_t)(by & (geo->blksize - 1)); in xfs_dir2_byte_to_off() [all …]
|
D | xfs_attr_leaf.c | 107 struct xfs_da_geometry *geo, in xfs_attr3_leaf_firstused_from_disk() argument 127 ASSERT(geo->blksize > USHRT_MAX); in xfs_attr3_leaf_firstused_from_disk() 128 to->firstused = geo->blksize; in xfs_attr3_leaf_firstused_from_disk() 134 struct xfs_da_geometry *geo, in xfs_attr3_leaf_firstused_to_disk() argument 151 ASSERT(from->firstused == geo->blksize); in xfs_attr3_leaf_firstused_to_disk() 165 struct xfs_da_geometry *geo, in xfs_attr3_leaf_hdr_from_disk() argument 182 xfs_attr3_leaf_firstused_from_disk(geo, to, from); in xfs_attr3_leaf_hdr_from_disk() 196 xfs_attr3_leaf_firstused_from_disk(geo, to, from); in xfs_attr3_leaf_hdr_from_disk() 207 struct xfs_da_geometry *geo, in xfs_attr3_leaf_hdr_to_disk() argument 224 xfs_attr3_leaf_firstused_to_disk(geo, to, from); in xfs_attr3_leaf_hdr_to_disk() [all …]
|
D | xfs_dir2_leaf.c | 94 struct xfs_da_geometry *geo = mp->m_dir_geo; in xfs_dir3_leaf_check_int() local 108 ltp = xfs_dir2_leaf_tail_p(geo, leaf); in xfs_dir3_leaf_check_int() 115 if (hdr->count > ops->leaf_max_ents(geo)) in xfs_dir3_leaf_check_int() 350 ASSERT(bno >= xfs_dir2_byte_to_db(args->geo, XFS_DIR2_LEAF_OFFSET) && in xfs_dir3_leaf_get_buf() 351 bno < xfs_dir2_byte_to_db(args->geo, XFS_DIR2_FREE_OFFSET)); in xfs_dir3_leaf_get_buf() 353 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, bno), in xfs_dir3_leaf_get_buf() 404 ldb = xfs_dir2_da_to_db(args->geo, blkno); in xfs_dir2_block_to_leaf() 405 ASSERT(ldb == xfs_dir2_byte_to_db(args->geo, XFS_DIR2_LEAF_OFFSET)); in xfs_dir2_block_to_leaf() 416 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_to_leaf() 444 (xfs_dir2_data_aoff_t)((char *)hdr + args->geo->blksize - in xfs_dir2_block_to_leaf() [all …]
|
D | xfs_da_format.c | 427 xfs_dir2_max_leaf_ents(struct xfs_da_geometry *geo) in xfs_dir2_max_leaf_ents() argument 429 return (geo->blksize - sizeof(struct xfs_dir2_leaf_hdr)) / in xfs_dir2_max_leaf_ents() 440 xfs_dir3_max_leaf_ents(struct xfs_da_geometry *geo) in xfs_dir3_max_leaf_ents() argument 442 return (geo->blksize - sizeof(struct xfs_dir3_leaf_hdr)) / in xfs_dir3_max_leaf_ents() 593 xfs_dir2_free_max_bests(struct xfs_da_geometry *geo) in xfs_dir2_free_max_bests() argument 595 return (geo->blksize - sizeof(struct xfs_dir2_free_hdr)) / in xfs_dir2_free_max_bests() 609 xfs_dir2_db_to_fdb(struct xfs_da_geometry *geo, xfs_dir2_db_t db) in xfs_dir2_db_to_fdb() argument 611 return xfs_dir2_byte_to_db(geo, XFS_DIR2_FREE_OFFSET) + in xfs_dir2_db_to_fdb() 612 (db / xfs_dir2_free_max_bests(geo)); in xfs_dir2_db_to_fdb() 619 xfs_dir2_db_to_fdindex(struct xfs_da_geometry *geo, xfs_dir2_db_t db) in xfs_dir2_db_to_fdindex() argument [all …]
|
D | xfs_dir2.c | 243 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_init() 281 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_createname() 378 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_lookup() 450 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_removename() 515 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_replace() 593 count = args->geo->fsbcount; in xfs_dir2_grow_inode() 599 *dbp = xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)bno); in xfs_dir2_grow_inode() 629 rval = XFS_FSB_TO_B(args->dp->i_mount, last) == args->geo->blksize; in xfs_dir2_isblock() 630 ASSERT(rval == 0 || args->dp->i_d.di_size == args->geo->blksize); in xfs_dir2_isblock() 648 *vp = last == args->geo->leafblk + args->geo->fsbcount; in xfs_dir2_isleaf() [all …]
|
D | xfs_dir2_node.c | 207 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, fbno), in xfs_dir3_free_get_buf() 314 ASSERT(fdb == xfs_dir2_byte_to_db(args->geo, XFS_DIR2_FREE_OFFSET)); in xfs_dir2_leaf_to_node() 325 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_to_node() 327 (uint)dp->i_d.di_size / args->geo->blksize); in xfs_dir2_leaf_to_node() 410 if (leafhdr.count == dp->d_ops->leaf_max_ents(args->geo)) { in xfs_dir2_leafn_add() 445 lep->address = cpu_to_be32(xfs_dir2_db_off_to_dataptr(args->geo, in xfs_dir2_leafn_add() 572 newdb = xfs_dir2_dataptr_to_db(args->geo, in xfs_dir2_leafn_lookup_for_addname() 590 newfdb = dp->d_ops->db_to_fdb(args->geo, newdb); in xfs_dir2_leafn_lookup_for_addname() 602 xfs_dir2_db_to_da(args->geo, in xfs_dir2_leafn_lookup_for_addname() 614 fi = dp->d_ops->db_to_fdindex(args->geo, curdb); in xfs_dir2_leafn_lookup_for_addname() [all …]
|
D | xfs_dir2_block.c | 374 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_addname() 628 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_lookup() 634 xfs_dir2_dataptr_to_off(args->geo, in xfs_dir2_block_lookup() 681 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_lookup_int() 719 ((char *)hdr + xfs_dir2_dataptr_to_off(args->geo, addr)); in xfs_dir2_block_lookup_int() 784 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_removename() 790 xfs_dir2_dataptr_to_off(args->geo, in xfs_dir2_block_removename() 858 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_replace() 864 xfs_dir2_dataptr_to_off(args->geo, in xfs_dir2_block_replace() 932 ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); in xfs_dir2_leaf_to_block() [all …]
|
D | xfs_dir2_data.c | 64 struct xfs_da_geometry *geo; in __xfs_dir3_data_check() local 67 geo = mp->m_dir_geo; in __xfs_dir3_data_check() 81 btp = xfs_dir2_block_tail_p(geo, hdr); in __xfs_dir3_data_check() 97 endp = (char *)hdr + geo->blksize; in __xfs_dir3_data_check() 175 addr = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in __xfs_dir3_data_check() 514 struct xfs_da_geometry *geo = dp->i_mount->m_dir_geo; in xfs_dir2_data_freescan() local 533 btp = xfs_dir2_block_tail_p(geo, hdr); in xfs_dir2_data_freescan() 536 endp = (char *)hdr + geo->blksize; in xfs_dir2_data_freescan() 590 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, blkno), in xfs_dir3_data_init() 626 t = args->geo->blksize - (uint)dp->d_ops->data_entry_offset; in xfs_dir3_data_init() [all …]
|
D | xfs_attr_leaf.h | 103 void xfs_attr3_leaf_hdr_from_disk(struct xfs_da_geometry *geo, 106 void xfs_attr3_leaf_hdr_to_disk(struct xfs_da_geometry *geo,
|
D | xfs_da_btree.c | 597 (args->whichfork == XFS_DATA_FORK) ? args->geo->leafblk : 0, in xfs_da3_root_split() 615 ASSERT(blk1->blkno >= args->geo->leafblk && in xfs_da3_root_split() 616 blk1->blkno < args->geo->freeblk); in xfs_da3_root_split() 617 ASSERT(blk2->blkno >= args->geo->leafblk && in xfs_da3_root_split() 618 blk2->blkno < args->geo->freeblk); in xfs_da3_root_split() 662 if (nodehdr.count + newcount > state->args->geo->node_ents) { in xfs_da3_node_split() 893 ASSERT(newblk->blkno >= state->args->geo->leafblk && in xfs_da3_node_add() 894 newblk->blkno < state->args->geo->freeblk); in xfs_da3_node_add() 1088 memcpy(root_blk->bp->b_addr, bp->b_addr, args->geo->blksize); in xfs_da3_root_join() 1096 args->geo->blksize - 1); in xfs_da3_root_join() [all …]
|
D | xfs_dir2_sf.c | 81 struct xfs_da_geometry *geo; in xfs_dir2_block_sfsize() local 84 geo = mp->m_dir_geo; in xfs_dir2_block_sfsize() 93 btp = xfs_dir2_block_tail_p(geo, hdr); in xfs_dir2_block_sfsize() 106 xfs_dir2_dataptr_to_off(geo, addr)); in xfs_dir2_block_sfsize() 196 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_to_sf() 248 error = xfs_dir2_shrink_inode(args, args->geo->datablk, bp); in xfs_dir2_block_to_sf() 577 if (used + (holefit ? 0 : size) > args->geo->blksize) in xfs_dir2_sf_addname_pick() 587 if (used + size > args->geo->blksize) in xfs_dir2_sf_addname_pick() 635 (uint)sizeof(xfs_dir2_block_tail_t) <= args->geo->blksize); in xfs_dir2_sf_check()
|
D | xfs_da_btree.h | 62 struct xfs_da_geometry *geo; /* da block geometry */ member
|
D | xfs_attr.c | 88 args->geo = dp->i_mount->m_attr_geo; in xfs_attr_args_init() 177 if (size > (args->geo->blksize / 2)) { in xfs_attr_calc_size()
|
D | xfs_bmap.c | 1076 dargs.geo = ip->i_mount->m_dir_geo; in xfs_bmap_add_attrfork_local() 1080 dargs.total = dargs.geo->fsbcount; in xfs_bmap_add_attrfork_local()
|
/linux-4.1.27/fs/xfs/ |
D | xfs_dir2_readdir.c | 71 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_sf_getdents() local 92 if (xfs_dir2_dataptr_to_db(geo, ctx->pos) > geo->datablk) in xfs_dir2_sf_getdents() 101 dot_offset = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents() 103 dotdot_offset = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents() 132 off = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents() 149 ctx->pos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk + 1, 0) & in xfs_dir2_sf_getdents() 173 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_block_getdents() local 178 if (xfs_dir2_dataptr_to_db(geo, ctx->pos) > geo->datablk) in xfs_dir2_block_getdents() 189 wantoff = xfs_dir2_dataptr_to_off(geo, ctx->pos); in xfs_dir2_block_getdents() 195 btp = xfs_dir2_block_tail_p(geo, hdr); in xfs_dir2_block_getdents() [all …]
|
D | xfs_fsops.c | 51 xfs_fsop_geom_t *geo, in xfs_fs_geometry() argument 55 memset(geo, 0, sizeof(*geo)); in xfs_fs_geometry() 57 geo->blocksize = mp->m_sb.sb_blocksize; in xfs_fs_geometry() 58 geo->rtextsize = mp->m_sb.sb_rextsize; in xfs_fs_geometry() 59 geo->agblocks = mp->m_sb.sb_agblocks; in xfs_fs_geometry() 60 geo->agcount = mp->m_sb.sb_agcount; in xfs_fs_geometry() 61 geo->logblocks = mp->m_sb.sb_logblocks; in xfs_fs_geometry() 62 geo->sectsize = mp->m_sb.sb_sectsize; in xfs_fs_geometry() 63 geo->inodesize = mp->m_sb.sb_inodesize; in xfs_fs_geometry() 64 geo->imaxpct = mp->m_sb.sb_imax_pct; in xfs_fs_geometry() [all …]
|
D | xfs_fsops.h | 21 extern int xfs_fs_geometry(xfs_mount_t *mp, xfs_fsop_geom_t *geo, int nversion);
|
D | xfs_attr_list.c | 449 args.geo = context->dp->i_mount->m_attr_geo; in xfs_attr3_leaf_list_int()
|
/linux-4.1.27/block/partitions/ |
D | ibm.c | 30 static sector_t cchh2blk(struct vtoc_cchh *ptr, struct hd_geometry *geo) in cchh2blk() argument 40 return cyl * geo->heads * geo->sectors + in cchh2blk() 41 head * geo->sectors; in cchh2blk() 48 static sector_t cchhb2blk(struct vtoc_cchhb *ptr, struct hd_geometry *geo) in cchhb2blk() argument 58 return cyl * geo->heads * geo->sectors + in cchhb2blk() 59 head * geo->sectors + in cchhb2blk() 65 struct hd_geometry *geo, in find_label() argument 133 struct hd_geometry *geo, in find_vol1_partitions() argument 154 blk = cchhb2blk(&label->vol.vtoc, geo) + 1; in find_vol1_partitions() 174 offset = cchh2blk(&f1.DS1EXT1.llimit, geo); in find_vol1_partitions() [all …]
|
/linux-4.1.27/drivers/media/platform/s5p-tv/ |
D | mixer_video.c | 174 static void mxr_geometry_dump(struct mxr_device *mdev, struct mxr_geometry *geo) in mxr_geometry_dump() argument 177 geo->src.full_width, geo->src.full_height); in mxr_geometry_dump() 179 geo->src.width, geo->src.height); in mxr_geometry_dump() 181 geo->src.x_offset, geo->src.y_offset); in mxr_geometry_dump() 183 geo->dst.full_width, geo->dst.full_height); in mxr_geometry_dump() 185 geo->dst.width, geo->dst.height); in mxr_geometry_dump() 187 geo->dst.x_offset, geo->dst.y_offset); in mxr_geometry_dump() 189 geo->x_ratio, geo->y_ratio); in mxr_geometry_dump() 197 memset(&layer->geo, 0, sizeof(layer->geo)); in mxr_layer_default_geo() 201 layer->geo.dst.full_width = mbus_fmt.width; in mxr_layer_default_geo() [all …]
|
D | mixer_reg.c | 137 const struct mxr_format *fmt, const struct mxr_geometry *geo) in mxr_reg_graph_format() argument 150 mxr_write(mdev, MXR_GRAPHIC_SPAN(idx), geo->src.full_width); in mxr_reg_graph_format() 151 val = MXR_GRP_WH_WIDTH(geo->src.width); in mxr_reg_graph_format() 152 val |= MXR_GRP_WH_HEIGHT(geo->src.height); in mxr_reg_graph_format() 153 val |= MXR_GRP_WH_H_SCALE(geo->x_ratio); in mxr_reg_graph_format() 154 val |= MXR_GRP_WH_V_SCALE(geo->y_ratio); in mxr_reg_graph_format() 158 val = MXR_GRP_SXY_SX(geo->src.x_offset); in mxr_reg_graph_format() 159 val |= MXR_GRP_SXY_SY(geo->src.y_offset); in mxr_reg_graph_format() 163 val = MXR_GRP_DXY_DX(geo->dst.x_offset); in mxr_reg_graph_format() 164 val |= MXR_GRP_DXY_DY(geo->dst.y_offset); in mxr_reg_graph_format() [all …]
|
D | mixer_vp_layer.c | 107 &layer->fmt->plane[0], layer->geo.src.full_width, in mxr_vp_buffer_set() 108 layer->geo.src.full_height); in mxr_vp_buffer_set() 114 luma_addr[1] = luma_addr[0] + layer->geo.src.full_width; in mxr_vp_buffer_set() 127 mxr_reg_vp_format(layer->mdev, layer->fmt, &layer->geo); in mxr_vp_format_set() 145 struct mxr_geometry *geo = &layer->geo; in mxr_vp_fix_geometry() local 146 struct mxr_crop *src = &geo->src; in mxr_vp_fix_geometry() 147 struct mxr_crop *dst = &geo->dst; in mxr_vp_fix_geometry() 191 geo->x_ratio = (src->width << 16) / dst->width; in mxr_vp_fix_geometry() 192 geo->y_ratio = (src->height << 16) / dst->height; in mxr_vp_fix_geometry()
|
D | mixer_grp_layer.c | 101 layer->fmt, &layer->geo); in mxr_graph_format_set() 151 struct mxr_geometry *geo = &layer->geo; in mxr_graph_fix_geometry() local 152 struct mxr_crop *src = &geo->src; in mxr_graph_fix_geometry() 153 struct mxr_crop *dst = &geo->dst; in mxr_graph_fix_geometry() 202 geo->x_ratio = 0; in mxr_graph_fix_geometry() 204 geo->x_ratio = 1; in mxr_graph_fix_geometry() 213 geo->y_ratio = 0; in mxr_graph_fix_geometry() 215 geo->y_ratio = 1; in mxr_graph_fix_geometry()
|
D | mixer.h | 185 struct mxr_geometry geo; member 356 const struct mxr_format *fmt, const struct mxr_geometry *geo); 362 const struct mxr_format *fmt, const struct mxr_geometry *geo);
|
/linux-4.1.27/drivers/media/pci/bt8xx/ |
D | bttv-risc.c | 336 bttv_calc_geo_old(struct bttv *btv, struct bttv_geometry *geo, in bttv_calc_geo_old() argument 356 geo->hscale = ((totalwidth*4096UL)/xsf-4096); in bttv_calc_geo_old() 357 geo->hdelay = tvnorm->hdelayx1; in bttv_calc_geo_old() 358 geo->hdelay = (geo->hdelay*width)/swidth; in bttv_calc_geo_old() 359 geo->hdelay &= 0x3fe; in bttv_calc_geo_old() 361 geo->vscale = (0x10000UL-sr) & 0x1fff; in bttv_calc_geo_old() 362 geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) | in bttv_calc_geo_old() 364 geo->vscale |= interleaved ? (BT848_VSCALE_INT<<8) : 0; in bttv_calc_geo_old() 365 geo->vdelay = vdelay; in bttv_calc_geo_old() 366 geo->width = width; in bttv_calc_geo_old() [all …]
|
D | bttvp.h | 165 struct bttv_geometry geo; member
|
D | bttv-vbi.c | 196 buf->geo.vdelay = min_vdelay; in vbi_buffer_prepare()
|
/linux-4.1.27/drivers/mtd/nand/gpmi-nand/ |
D | gpmi-nand.c | 109 struct bch_geometry *geo = &this->bch_geometry; in get_ecc_strength() local 113 ecc_strength = ((mtd->oobsize - geo->metadata_size) * 8) in get_ecc_strength() 114 / (geo->gf_len * geo->ecc_chunk_count); in get_ecc_strength() 122 struct bch_geometry *geo = &this->bch_geometry; in gpmi_check_ecc() local 127 if (geo->gf_len == 14) in gpmi_check_ecc() 130 return geo->ecc_strength <= this->devdata->bch_max_ecc_strength; in gpmi_check_ecc() 141 struct bch_geometry *geo = &this->bch_geometry; in set_geometry_by_ecc_info() local 152 geo->gf_len = 13; in set_geometry_by_ecc_info() 155 geo->gf_len = 14; in set_geometry_by_ecc_info() 163 geo->ecc_chunk_size = chip->ecc_step_ds; in set_geometry_by_ecc_info() [all …]
|
D | gpmi-lib.c | 207 struct bch_geometry *geo = &this->bch_geometry; in gpmi_dump_info() local 235 geo->gf_len, in gpmi_dump_info() 236 geo->ecc_strength, in gpmi_dump_info() 237 geo->page_size, in gpmi_dump_info() 238 geo->metadata_size, in gpmi_dump_info() 239 geo->ecc_chunk_size, in gpmi_dump_info() 240 geo->ecc_chunk_count, in gpmi_dump_info() 241 geo->payload_size, in gpmi_dump_info() 242 geo->auxiliary_size, in gpmi_dump_info() 243 geo->auxiliary_status_offset, in gpmi_dump_info() [all …]
|
/linux-4.1.27/include/linux/ |
D | btree.h | 99 void *btree_lookup(struct btree_head *head, struct btree_geo *geo, 114 int __must_check btree_insert(struct btree_head *head, struct btree_geo *geo, 127 int btree_update(struct btree_head *head, struct btree_geo *geo, 139 void *btree_remove(struct btree_head *head, struct btree_geo *geo, 158 struct btree_geo *geo, gfp_t gfp); 171 void *btree_last(struct btree_head *head, struct btree_geo *geo, 185 void *btree_get_prev(struct btree_head *head, struct btree_geo *geo, 190 size_t btree_visitor(struct btree_head *head, struct btree_geo *geo, 198 size_t btree_grim_visitor(struct btree_head *head, struct btree_geo *geo,
|
D | device-mapper.h | 417 int dm_get_geometry(struct mapped_device *md, struct hd_geometry *geo); 418 int dm_set_geometry(struct mapped_device *md, struct hd_geometry *geo);
|
/linux-4.1.27/drivers/media/platform/ |
D | sh_vou.c | 531 static void vou_adjust_input(struct sh_vou_geometry *geo, v4l2_std_id std) in vou_adjust_input() argument 543 v4l_bound_align_image(&geo->in_width, 0, VOU_MAX_IMAGE_WIDTH, 2, in vou_adjust_input() 544 &geo->in_height, 0, img_height_max, 1, 0); in vou_adjust_input() 549 unsigned int found = geo->output.width * vou_scale_h_den[i] / in vou_adjust_input() 556 err = abs(found - geo->in_width); in vou_adjust_input() 566 geo->in_width = best; in vou_adjust_input() 567 geo->scale_idx_h = idx; in vou_adjust_input() 574 unsigned int found = geo->output.height * vou_scale_v_den[i] / in vou_adjust_input() 581 err = abs(found - geo->in_height); in vou_adjust_input() 591 geo->in_height = best; in vou_adjust_input() [all …]
|
/linux-4.1.27/drivers/md/ |
D | raid10.c | 552 static void __raid10_find_phys(struct geom *geo, struct r10bio *r10bio) in __raid10_find_phys() argument 562 last_far_set_start = (geo->raid_disks / geo->far_set_size) - 1; in __raid10_find_phys() 563 last_far_set_start *= geo->far_set_size; in __raid10_find_phys() 565 last_far_set_size = geo->far_set_size; in __raid10_find_phys() 566 last_far_set_size += (geo->raid_disks % geo->far_set_size); in __raid10_find_phys() 569 chunk = r10bio->sector >> geo->chunk_shift; in __raid10_find_phys() 570 sector = r10bio->sector & geo->chunk_mask; in __raid10_find_phys() 572 chunk *= geo->near_copies; in __raid10_find_phys() 574 dev = sector_div(stripe, geo->raid_disks); in __raid10_find_phys() 575 if (geo->far_offset) in __raid10_find_phys() [all …]
|
D | raid10.h | 43 } prev, geo; member
|
D | dm.c | 549 static int dm_blk_getgeo(struct block_device *bdev, struct hd_geometry *geo) in dm_blk_getgeo() argument 553 return dm_get_geometry(md, geo); in dm_blk_getgeo() 855 int dm_get_geometry(struct mapped_device *md, struct hd_geometry *geo) in dm_get_geometry() argument 857 *geo = md->geometry; in dm_get_geometry() 865 int dm_set_geometry(struct mapped_device *md, struct hd_geometry *geo) in dm_set_geometry() argument 867 sector_t sz = (sector_t)geo->cylinders * geo->heads * geo->sectors; in dm_set_geometry() 869 if (geo->start > sz) { in dm_set_geometry() 874 md->geometry = *geo; in dm_set_geometry()
|
D | md.c | 6517 static int md_getgeo(struct block_device *bdev, struct hd_geometry *geo) in md_getgeo() argument 6521 geo->heads = 2; in md_getgeo() 6522 geo->sectors = 4; in md_getgeo() 6523 geo->cylinders = mddev->array_sectors / 8; in md_getgeo()
|
/linux-4.1.27/drivers/block/rsxx/ |
D | dev.c | 85 static int rsxx_getgeo(struct block_device *bdev, struct hd_geometry *geo) in rsxx_getgeo() argument 95 geo->heads = 64; in rsxx_getgeo() 96 geo->sectors = 16; in rsxx_getgeo() 97 do_div(blocks, (geo->heads * geo->sectors)); in rsxx_getgeo() 98 geo->cylinders = blocks; in rsxx_getgeo() 100 geo->heads = 0; in rsxx_getgeo() 101 geo->sectors = 0; in rsxx_getgeo() 102 geo->cylinders = 0; in rsxx_getgeo()
|
/linux-4.1.27/block/ |
D | ioctl.c | 333 struct hd_geometry geo; in blkdev_ioctl() local 344 memset(&geo, 0, sizeof(geo)); in blkdev_ioctl() 345 geo.start = get_start_sect(bdev); in blkdev_ioctl() 346 ret = disk->fops->getgeo(bdev, &geo); in blkdev_ioctl() 349 if (copy_to_user((struct hd_geometry __user *)arg, &geo, in blkdev_ioctl() 350 sizeof(geo))) in blkdev_ioctl()
|
D | compat_ioctl.c | 54 struct hd_geometry geo; in compat_hdio_getgeo() local 62 memset(&geo, 0, sizeof(geo)); in compat_hdio_getgeo() 67 geo.start = get_start_sect(bdev); in compat_hdio_getgeo() 68 ret = disk->fops->getgeo(bdev, &geo); in compat_hdio_getgeo() 72 ret = copy_to_user(ugeo, &geo, 4); in compat_hdio_getgeo() 73 ret |= put_user(geo.start, &ugeo->start); in compat_hdio_getgeo()
|
/linux-4.1.27/arch/m68k/emu/ |
D | nfblock.c | 82 static int nfhd_getgeo(struct block_device *bdev, struct hd_geometry *geo) in nfhd_getgeo() argument 86 geo->cylinders = dev->blocks >> (6 - dev->bshift); in nfhd_getgeo() 87 geo->heads = 4; in nfhd_getgeo() 88 geo->sectors = 16; in nfhd_getgeo()
|
/linux-4.1.27/drivers/s390/block/ |
D | xpram.c | 230 static int xpram_getgeo(struct block_device *bdev, struct hd_geometry *geo) in xpram_getgeo() argument 240 geo->cylinders = size >> 6; in xpram_getgeo() 241 geo->heads = 4; in xpram_getgeo() 242 geo->sectors = 16; in xpram_getgeo() 243 geo->start = 4; in xpram_getgeo()
|
D | dasd_diag.c | 475 dasd_diag_fill_geometry(struct dasd_block *block, struct hd_geometry *geo) in dasd_diag_fill_geometry() argument 479 geo->cylinders = (block->blocks << block->s2b_shift) >> 10; in dasd_diag_fill_geometry() 480 geo->heads = 16; in dasd_diag_fill_geometry() 481 geo->sectors = 128 >> block->s2b_shift; in dasd_diag_fill_geometry()
|
D | dasd_fba.c | 214 struct hd_geometry *geo) in dasd_fba_fill_geometry() argument 218 geo->cylinders = (block->blocks << block->s2b_shift) >> 10; in dasd_fba_fill_geometry() 219 geo->heads = 16; in dasd_fba_fill_geometry() 220 geo->sectors = 128 >> block->s2b_shift; in dasd_fba_fill_geometry()
|
D | dasd_eckd.c | 202 static void set_ch_t(struct ch_t *geo, __u32 cyl, __u8 head) in set_ch_t() argument 204 geo->cyl = (__u16) cyl; in set_ch_t() 205 geo->head = cyl >> 16; in set_ch_t() 206 geo->head <<= 4; in set_ch_t() 207 geo->head |= head; in set_ch_t() 2075 dasd_eckd_fill_geometry(struct dasd_block *block, struct hd_geometry *geo) in dasd_eckd_fill_geometry() argument 2081 geo->sectors = recs_per_track(&private->rdc_data, in dasd_eckd_fill_geometry() 2084 geo->cylinders = private->rdc_data.no_cyl; in dasd_eckd_fill_geometry() 2085 geo->heads = private->rdc_data.trk_per_cyl; in dasd_eckd_fill_geometry()
|
D | dasd.c | 3113 static int dasd_getgeo(struct block_device *bdev, struct hd_geometry *geo) in dasd_getgeo() argument 3126 base->discipline->fill_geometry(base->block, geo); in dasd_getgeo() 3127 geo->start = get_start_sect(bdev) >> base->block->s2b_shift; in dasd_getgeo()
|
/linux-4.1.27/drivers/block/aoe/ |
D | aoeblk.c | 297 aoeblk_getgeo(struct block_device *bdev, struct hd_geometry *geo) in aoeblk_getgeo() argument 306 geo->cylinders = d->geo.cylinders; in aoeblk_getgeo() 307 geo->heads = d->geo.heads; in aoeblk_getgeo() 308 geo->sectors = d->geo.sectors; in aoeblk_getgeo()
|
D | aoecmd.c | 1009 d->geo.cylinders = ssize; in ataid_complete() 1010 d->geo.cylinders /= (255 * 63); in ataid_complete() 1011 d->geo.heads = 255; in ataid_complete() 1012 d->geo.sectors = 63; in ataid_complete() 1020 d->geo.cylinders = get_unaligned_le16(&id[54 << 1]); in ataid_complete() 1021 d->geo.heads = get_unaligned_le16(&id[55 << 1]); in ataid_complete() 1022 d->geo.sectors = get_unaligned_le16(&id[56 << 1]); in ataid_complete() 1037 d->geo.start = 0; in ataid_complete()
|
D | aoe.h | 168 struct hd_geometry geo; member
|
/linux-4.1.27/drivers/block/paride/ |
D | pd.c | 754 static int pd_getgeo(struct block_device *bdev, struct hd_geometry *geo) in pd_getgeo() argument 759 geo->heads = PD_LOG_HEADS; in pd_getgeo() 760 geo->sectors = PD_LOG_SECTS; in pd_getgeo() 761 geo->cylinders = disk->capacity / (geo->heads * geo->sectors); in pd_getgeo() 763 geo->heads = disk->heads; in pd_getgeo() 764 geo->sectors = disk->sectors; in pd_getgeo() 765 geo->cylinders = disk->cylinders; in pd_getgeo()
|
D | pf.c | 212 static int pf_getgeo(struct block_device *bdev, struct hd_geometry *geo); 329 static int pf_getgeo(struct block_device *bdev, struct hd_geometry *geo) in pf_getgeo() argument 335 geo->cylinders = sector_div(capacity, PF_FD_HDS * PF_FD_SPT); in pf_getgeo() 336 geo->heads = PF_FD_HDS; in pf_getgeo() 337 geo->sectors = PF_FD_SPT; in pf_getgeo() 339 geo->cylinders = sector_div(capacity, PF_HD_HDS * PF_HD_SPT); in pf_getgeo() 340 geo->heads = PF_HD_HDS; in pf_getgeo() 341 geo->sectors = PF_HD_SPT; in pf_getgeo()
|
/linux-4.1.27/drivers/mtd/ |
D | ssfdc.c | 409 static int ssfdcr_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in ssfdcr_getgeo() argument 416 geo->heads = ssfdc->heads; in ssfdcr_getgeo() 417 geo->sectors = ssfdc->sectors; in ssfdcr_getgeo() 418 geo->cylinders = ssfdc->cylinders; in ssfdcr_getgeo()
|
D | nftlcore.c | 780 static int nftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in nftl_getgeo() argument 784 geo->heads = nftl->heads; in nftl_getgeo() 785 geo->sectors = nftl->sectors; in nftl_getgeo() 786 geo->cylinders = nftl->cylinders; in nftl_getgeo()
|
D | inftlcore.c | 929 static int inftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in inftl_getgeo() argument 933 geo->heads = inftl->heads; in inftl_getgeo() 934 geo->sectors = inftl->sectors; in inftl_getgeo() 935 geo->cylinders = inftl->cylinders; in inftl_getgeo()
|
D | rfd_ftl.c | 746 static int rfd_ftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in rfd_ftl_getgeo() argument 750 geo->heads = 1; in rfd_ftl_getgeo() 751 geo->sectors = SECTORS_PER_TRACK; in rfd_ftl_getgeo() 752 geo->cylinders = part->cylinders; in rfd_ftl_getgeo()
|
D | sm_ftl.c | 1119 static int sm_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in sm_getgeo() argument 1122 geo->heads = ftl->heads; in sm_getgeo() 1123 geo->sectors = ftl->sectors; in sm_getgeo() 1124 geo->cylinders = ftl->cylinders; in sm_getgeo()
|
D | ftl.c | 981 static int ftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in ftl_getgeo() argument 989 geo->heads = 1; in ftl_getgeo() 990 geo->sectors = 8; in ftl_getgeo() 991 geo->cylinders = sect >> 3; in ftl_getgeo()
|
D | mtd_blkdevs.c | 268 static int blktrans_getgeo(struct block_device *bdev, struct hd_geometry *geo) in blktrans_getgeo() argument 281 ret = dev->tr->getgeo ? dev->tr->getgeo(dev, geo) : 0; in blktrans_getgeo()
|
/linux-4.1.27/drivers/mtd/maps/ |
D | pcmciamtd.c | 401 dev->pcmcia_map.bankwidth = t->geo[0].buswidth; in pcmciamtd_cistpl_geo() 404 pr_debug("region: %d bankwidth = %u\n", i, t->geo[i].buswidth); in pcmciamtd_cistpl_geo() 405 pr_debug("region: %d erase_block = %u\n", i, t->geo[i].erase_block); in pcmciamtd_cistpl_geo() 406 pr_debug("region: %d read_block = %u\n", i, t->geo[i].read_block); in pcmciamtd_cistpl_geo() 407 pr_debug("region: %d write_block = %u\n", i, t->geo[i].write_block); in pcmciamtd_cistpl_geo() 408 pr_debug("region: %d partition = %u\n", i, t->geo[i].partition); in pcmciamtd_cistpl_geo() 409 pr_debug("region: %d interleave = %u\n", i, t->geo[i].interleave); in pcmciamtd_cistpl_geo()
|
/linux-4.1.27/drivers/pcmcia/ |
D | cistpl.c | 1205 static int parse_device_geo(tuple_t *tuple, cistpl_device_geo_t *geo) in parse_device_geo() argument 1216 geo->geo[n].buswidth = p[0]; in parse_device_geo() 1217 geo->geo[n].erase_block = 1 << (p[1]-1); in parse_device_geo() 1218 geo->geo[n].read_block = 1 << (p[2]-1); in parse_device_geo() 1219 geo->geo[n].write_block = 1 << (p[3]-1); in parse_device_geo() 1220 geo->geo[n].partition = 1 << (p[4]-1); in parse_device_geo() 1221 geo->geo[n].interleave = 1 << (p[5]-1); in parse_device_geo() 1224 geo->ngeo = n; in parse_device_geo()
|
/linux-4.1.27/drivers/block/ |
D | sunvdc.c | 110 static int vdc_getgeo(struct block_device *bdev, struct hd_geometry *geo) in vdc_getgeo() argument 116 geo->heads = 0xff; in vdc_getgeo() 117 geo->sectors = 0x3f; in vdc_getgeo() 118 sector_div(cylinders, geo->heads * geo->sectors); in vdc_getgeo() 119 geo->cylinders = cylinders; in vdc_getgeo() 120 if ((sector_t)(geo->cylinders + 1) * geo->heads * geo->sectors < nsect) in vdc_getgeo() 121 geo->cylinders = 0xffff; in vdc_getgeo()
|
D | virtio_blk.c | 278 static int virtblk_getgeo(struct block_device *bd, struct hd_geometry *geo) in virtblk_getgeo() argument 285 geometry.cylinders, &geo->cylinders); in virtblk_getgeo() 287 geometry.heads, &geo->heads); in virtblk_getgeo() 289 geometry.sectors, &geo->sectors); in virtblk_getgeo() 292 geo->heads = 1 << 6; in virtblk_getgeo() 293 geo->sectors = 1 << 5; in virtblk_getgeo() 294 geo->cylinders = get_capacity(bd->bd_disk) >> 11; in virtblk_getgeo()
|
D | hd.c | 661 static int hd_getgeo(struct block_device *bdev, struct hd_geometry *geo) in hd_getgeo() argument 665 geo->heads = disk->head; in hd_getgeo() 666 geo->sectors = disk->sect; in hd_getgeo() 667 geo->cylinders = disk->cyl; in hd_getgeo()
|
D | umem.c | 767 static int mm_getgeo(struct block_device *bdev, struct hd_geometry *geo) in mm_getgeo() argument 777 geo->heads = 64; in mm_getgeo() 778 geo->sectors = 32; in mm_getgeo() 779 geo->cylinders = size / (geo->heads * geo->sectors); in mm_getgeo()
|
D | cpqarray.c | 165 static int ida_getgeo(struct block_device *bdev, struct hd_geometry *geo); 1123 static int ida_getgeo(struct block_device *bdev, struct hd_geometry *geo) in ida_getgeo() argument 1128 geo->heads = drv->heads; in ida_getgeo() 1129 geo->sectors = drv->sectors; in ida_getgeo() 1130 geo->cylinders = drv->cylinders; in ida_getgeo() 1132 geo->heads = 0xff; in ida_getgeo() 1133 geo->sectors = 0x3f; in ida_getgeo() 1134 geo->cylinders = drv->nr_blks / (0xff*0x3f); in ida_getgeo()
|
D | swim.c | 724 static int floppy_getgeo(struct block_device *bdev, struct hd_geometry *geo) in floppy_getgeo() argument 734 geo->heads = g->head; in floppy_getgeo() 735 geo->sectors = g->sect; in floppy_getgeo() 736 geo->cylinders = g->track; in floppy_getgeo()
|
D | mg_disk.c | 769 static int mg_getgeo(struct block_device *bdev, struct hd_geometry *geo) in mg_getgeo() argument 773 geo->cylinders = (unsigned short)host->cyls; in mg_getgeo() 774 geo->heads = (unsigned char)host->heads; in mg_getgeo() 775 geo->sectors = (unsigned char)host->sectors; in mg_getgeo()
|
D | xsysace.c | 937 static int ace_getgeo(struct block_device *bdev, struct hd_geometry *geo) in ace_getgeo() argument 944 geo->heads = cf_id[ATA_ID_HEADS]; in ace_getgeo() 945 geo->sectors = cf_id[ATA_ID_SECTORS]; in ace_getgeo() 946 geo->cylinders = cf_id[ATA_ID_CYLS]; in ace_getgeo()
|
D | sx8.c | 410 static int carm_bdev_getgeo(struct block_device *bdev, struct hd_geometry *geo); 436 static int carm_bdev_getgeo(struct block_device *bdev, struct hd_geometry *geo) in carm_bdev_getgeo() argument 440 geo->heads = (u8) port->dev_geom_head; in carm_bdev_getgeo() 441 geo->sectors = (u8) port->dev_geom_sect; in carm_bdev_getgeo() 442 geo->cylinders = port->dev_geom_cyl; in carm_bdev_getgeo()
|
D | amiflop.c | 1453 static int fd_getgeo(struct block_device *bdev, struct hd_geometry *geo) in fd_getgeo() argument 1457 geo->heads = unit[drive].type->heads; in fd_getgeo() 1458 geo->sectors = unit[drive].dtype->sects * unit[drive].type->sect_mult; in fd_getgeo() 1459 geo->cylinders = unit[drive].type->tracks; in fd_getgeo()
|
D | DAC960.c | 107 static int DAC960_getgeo(struct block_device *bdev, struct hd_geometry *geo) in DAC960_getgeo() argument 114 geo->heads = p->V1.GeometryTranslationHeads; in DAC960_getgeo() 115 geo->sectors = p->V1.GeometryTranslationSectors; in DAC960_getgeo() 116 geo->cylinders = p->V1.LogicalDriveInformation[drive_nr]. in DAC960_getgeo() 117 LogicalDriveSize / (geo->heads * geo->sectors); in DAC960_getgeo() 123 geo->heads = 128; in DAC960_getgeo() 124 geo->sectors = 32; in DAC960_getgeo() 127 geo->heads = 255; in DAC960_getgeo() 128 geo->sectors = 63; in DAC960_getgeo() 136 geo->cylinders = i->ConfigurableDeviceSize / in DAC960_getgeo() [all …]
|
D | floppy.c | 3364 static int fd_getgeo(struct block_device *bdev, struct hd_geometry *geo) in fd_getgeo() argument 3375 geo->heads = g->head; in fd_getgeo() 3376 geo->sectors = g->sect; in fd_getgeo() 3377 geo->cylinders = g->track; in fd_getgeo()
|
D | nvme-core.c | 1970 static int nvme_getgeo(struct block_device *bd, struct hd_geometry *geo) in nvme_getgeo() argument 1973 geo->heads = 1 << 6; in nvme_getgeo() 1974 geo->sectors = 1 << 5; in nvme_getgeo() 1975 geo->cylinders = get_capacity(bd->bd_disk) >> 11; in nvme_getgeo()
|
D | cciss.c | 173 static int cciss_getgeo(struct block_device *bdev, struct hd_geometry *geo); 1262 static int cciss_getgeo(struct block_device *bdev, struct hd_geometry *geo) in cciss_getgeo() argument 1269 geo->heads = drv->heads; in cciss_getgeo() 1270 geo->sectors = drv->sectors; in cciss_getgeo() 1271 geo->cylinders = drv->cylinders; in cciss_getgeo()
|
D | skd_main.c | 4728 static int skd_bdev_getgeo(struct block_device *bdev, struct hd_geometry *geo) in skd_bdev_getgeo() argument 4741 geo->heads = 64; in skd_bdev_getgeo() 4742 geo->sectors = 255; in skd_bdev_getgeo() 4743 geo->cylinders = (capacity) / (255 * 64); in skd_bdev_getgeo()
|
/linux-4.1.27/drivers/mtd/ubi/ |
D | block.c | 280 static int ubiblock_getgeo(struct block_device *bdev, struct hd_geometry *geo) in ubiblock_getgeo() argument 283 geo->heads = 1; in ubiblock_getgeo() 284 geo->cylinders = 1; in ubiblock_getgeo() 285 geo->sectors = get_capacity(bdev->bd_disk); in ubiblock_getgeo() 286 geo->start = 0; in ubiblock_getgeo()
|
/linux-4.1.27/drivers/ide/ |
D | ide-gd.c | 275 static int ide_gd_getgeo(struct block_device *bdev, struct hd_geometry *geo) argument 280 geo->heads = drive->bios_head; 281 geo->sectors = drive->bios_sect; 282 geo->cylinders = (u16)drive->bios_cyl; /* truncate */
|
/linux-4.1.27/include/linux/mtd/ |
D | blktrans.h | 72 int (*getgeo)(struct mtd_blktrans_dev *dev, struct hd_geometry *geo);
|
/linux-4.1.27/drivers/video/fbdev/mb862xx/ |
D | mb862xxfb.h | 71 void __iomem *geo; member
|
D | mb862xxfbdrv.c | 569 reg, inreg(geo, reg)); in mb862xxfb_show_dispregs() 640 par->geo = par->mmio_base + MB862XX_GEO_BASE; in mb862xx_gdc_init() 855 par->geo = par->mmio_base + MB862XX_GEO_BASE; in coralp_init()
|
D | mb862xxfb_accel.c | 37 outreg(geo, GDC_GEO_REG_INPUT_FIFO, data[total]); in mb862xxfb_write_fifo()
|
/linux-4.1.27/drivers/staging/i2o/ |
D | i2o_block.c | 634 static int i2o_block_getgeo(struct block_device *bdev, struct hd_geometry *geo) in i2o_block_getgeo() argument 637 &geo->cylinders, &geo->heads, &geo->sectors); in i2o_block_getgeo()
|
/linux-4.1.27/arch/um/drivers/ |
D | ubd_kern.c | 93 static int ubd_getgeo(struct block_device *bdev, struct hd_geometry *geo); 1331 static int ubd_getgeo(struct block_device *bdev, struct hd_geometry *geo) in ubd_getgeo() argument 1335 geo->heads = 128; in ubd_getgeo() 1336 geo->sectors = 32; in ubd_getgeo() 1337 geo->cylinders = ubd_dev->size / (128 * 32 * 512); in ubd_getgeo()
|
/linux-4.1.27/drivers/memstick/core/ |
D | mspro_block.c | 235 struct hd_geometry *geo) in mspro_block_bd_getgeo() argument 239 geo->heads = msb->heads; in mspro_block_bd_getgeo() 240 geo->sectors = msb->sectors_per_track; in mspro_block_bd_getgeo() 241 geo->cylinders = msb->cylinders; in mspro_block_bd_getgeo()
|
D | ms_block.c | 1996 struct hd_geometry *geo) in msb_bd_getgeo() argument 1999 *geo = msb->geometry; in msb_bd_getgeo()
|
/linux-4.1.27/include/pcmcia/ |
D | cistpl.h | 499 } geo[CISTPL_MAX_DEVICES]; member
|
/linux-4.1.27/drivers/mmc/card/ |
D | block.c | 325 mmc_blk_getgeo(struct block_device *bdev, struct hd_geometry *geo) in mmc_blk_getgeo() argument 327 geo->cylinders = get_capacity(bdev->bd_disk) / (4 * 16); in mmc_blk_getgeo() 328 geo->heads = 4; in mmc_blk_getgeo() 329 geo->sectors = 16; in mmc_blk_getgeo()
|
/linux-4.1.27/drivers/block/mtip32xx/ |
D | mtip32xx.c | 3623 struct hd_geometry *geo) in mtip_block_getgeo() argument 3637 geo->heads = 224; in mtip_block_getgeo() 3638 geo->sectors = 56; in mtip_block_getgeo() 3639 sector_div(capacity, (geo->heads * geo->sectors)); in mtip_block_getgeo() 3640 geo->cylinders = capacity; in mtip_block_getgeo()
|
/linux-4.1.27/drivers/scsi/ |
D | sd.c | 1258 static int sd_getgeo(struct block_device *bdev, struct hd_geometry *geo) in sd_getgeo() argument 1277 geo->heads = diskinfo[0]; in sd_getgeo() 1278 geo->sectors = diskinfo[1]; in sd_getgeo() 1279 geo->cylinders = diskinfo[2]; in sd_getgeo()
|