Home
last modified time | relevance | path

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

1234

/linux/lib/
A Dbtree.c161 longcpy(bkey(geo, node, n), key, geo->keylen); in setkey()
172 longset(bkey(geo, node, n), 0, geo->keylen); in clearpair()
219 longcpy(key, bkey(geo, node, 0), geo->keylen); in btree_last()
484 setkey(geo, new, i, bkey(geo, node, i)); in btree_insert_level()
485 setval(geo, new, i, bval(geo, node, i)); in btree_insert_level()
491 setkey(geo, node, i, bkey(geo, node, fill - 1)); in btree_insert_level()
492 setval(geo, node, i, bval(geo, node, fill - 1)); in btree_insert_level()
501 setkey(geo, node, i, bkey(geo, node, i - 1)); in btree_insert_level()
502 setval(geo, node, i, bval(geo, node, i - 1)); in btree_insert_level()
614 setkey(geo, node, i, bkey(geo, node, i + 1)); in btree_remove_level()
[all …]
/linux/drivers/net/wireless/intel/ipw2x00/
A Dlibipw_geo.c37 if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) in libipw_is_valid_channel()
66 if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) in libipw_channel_to_index()
88 if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) in libipw_channel_to_freq()
103 if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) in libipw_freq_to_channel()
124 memcpy(ieee->geo.name, geo->name, 3); in libipw_set_geo()
125 ieee->geo.name[3] = '\0'; in libipw_set_geo()
126 ieee->geo.bg_channels = geo->bg_channels; in libipw_set_geo()
127 ieee->geo.a_channels = geo->a_channels; in libipw_set_geo()
128 memcpy(ieee->geo.bg, geo->bg, geo->bg_channels * in libipw_set_geo()
130 memcpy(ieee->geo.a, geo->a, ieee->geo.a_channels * in libipw_set_geo()
[all …]
/linux/fs/xfs/libxfs/
A Dxfs_dir2.h127 return (xfs_dir2_db_t)(by >> geo->blklog); in xfs_dir2_byte_to_db()
136 return xfs_dir2_byte_to_db(geo, xfs_dir2_dataptr_to_byte(dp)); in xfs_dir2_dataptr_to_db()
145 return (xfs_dir2_data_aoff_t)(by & (geo->blksize - 1)); in xfs_dir2_byte_to_off()
164 return ((xfs_dir2_off_t)db << geo->blklog) + o; in xfs_dir2_db_off_to_byte()
173 return (xfs_dablk_t)(db << (geo->blklog - geo->fsblog)); in xfs_dir2_db_to_da()
182 return xfs_dir2_db_to_da(geo, xfs_dir2_byte_to_db(geo, by)); in xfs_dir2_byte_to_da()
199 xfs_dir2_da_to_db(struct xfs_da_geometry *geo, xfs_dablk_t da) in xfs_dir2_da_to_db() argument
201 return (xfs_dir2_db_t)(da >> (geo->blklog - geo->fsblog)); in xfs_dir2_da_to_db()
210 return xfs_dir2_db_off_to_byte(geo, xfs_dir2_da_to_db(geo, da), 0); in xfs_dir2_da_to_byte()
220 ((char *)hdr + geo->blksize)) - 1; in xfs_dir2_block_tail_p()
[all …]
A Dxfs_sb.c1065 struct xfs_fsop_geom *geo, in xfs_fs_geometry() argument
1074 geo->agblocks = sbp->sb_agblocks; in xfs_fs_geometry()
1075 geo->agcount = sbp->sb_agcount; in xfs_fs_geometry()
1077 geo->sectsize = sbp->sb_sectsize; in xfs_fs_geometry()
1079 geo->imaxpct = sbp->sb_imax_pct; in xfs_fs_geometry()
1081 geo->rtblocks = sbp->sb_rblocks; in xfs_fs_geometry()
1083 geo->logstart = sbp->sb_logstart; in xfs_fs_geometry()
1090 geo->sunit = sbp->sb_unit; in xfs_fs_geometry()
1091 geo->swidth = sbp->sb_width; in xfs_fs_geometry()
1136 geo->logsectsize = BBSIZE; in xfs_fs_geometry()
[all …]
A Dxfs_dir2_leaf.c157 if (hdr->count > geo->leaf_max_ents) in xfs_dir3_leaf_check_int()
1145 (uint)(args->geo->blksize - 1)); in xfs_dir3_leaf_log_tail()
1343 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leaf_removename() local
1431 geo->blksize - geo->data_entry_offset) { in xfs_dir2_leaf_removename()
1432 ASSERT(db != geo->datablk); in xfs_dir2_leaf_removename()
1474 else if (db != geo->datablk) in xfs_dir2_leaf_removename()
1595 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leaf_trim_data() local
1625 geo->blksize - geo->data_entry_offset); in xfs_dir2_leaf_trim_data()
1711 fo -= args->geo->fsbcount; in xfs_dir2_node_to_leaf()
1718 while (fo > args->geo->freeblk) { in xfs_dir2_node_to_leaf()
[all …]
A Dxfs_attr_leaf.c94 struct xfs_da_geometry *geo, in xfs_attr3_leaf_firstused_from_disk() argument
114 ASSERT(geo->blksize > USHRT_MAX); in xfs_attr3_leaf_firstused_from_disk()
115 to->firstused = geo->blksize; in xfs_attr3_leaf_firstused_from_disk()
121 struct xfs_da_geometry *geo, in xfs_attr3_leaf_firstused_to_disk() argument
152 struct xfs_da_geometry *geo, in xfs_attr3_leaf_hdr_from_disk() argument
194 struct xfs_da_geometry *geo, in xfs_attr3_leaf_hdr_to_disk() argument
940 nargs.geo = args->geo; in xfs_attr_shortform_to_leaf()
1142 nargs.geo = args->geo; in xfs_attr3_leaf_to_shortform()
2205 tmp = args->geo->blksize; in xfs_attr3_leaf_remove()
2599 <= args->geo->blksize); in xfs_attr3_leaf_moveents()
[all …]
A Dxfs_dir2_node.c43 (db / geo->free_max_bests); in xfs_dir2_db_to_fdb()
52 return db % geo->free_max_bests; in xfs_dir2_db_to_fdindex()
396 args->geo->free_hdr_size - 1); in xfs_dir2_free_log_header()
717 xfs_dir2_db_to_da(args->geo, in xfs_dir2_leafn_lookup_for_addname()
861 xfs_dir2_db_to_da(args->geo, in xfs_dir2_leafn_lookup_for_entry()
1268 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leafn_remove() local
1352 fdb = xfs_dir2_db_to_fdb(geo, db); in xfs_dir2_leafn_remove()
1376 if (longest == geo->blksize - geo->data_entry_offset) { in xfs_dir2_leafn_remove()
1408 *rval = (geo->leaf_hdr_size + in xfs_dir2_leafn_remove()
1410 geo->magicpct; in xfs_dir2_leafn_remove()
[all …]
A Dxfs_dir2_data.c85 struct xfs_da_geometry *geo) in xfs_dir2_data_max_leaf_entries() argument
88 geo->data_entry_offset) / in xfs_dir2_data_max_leaf_entries()
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()
233 addr = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in __xfs_dir3_data_check()
698 struct xfs_da_geometry *geo = args->geo; in xfs_dir3_data_init() local
734 bf[0].length = cpu_to_be16(geo->blksize - geo->data_entry_offset); in xfs_dir3_data_init()
1207 struct xfs_da_geometry *geo, in xfs_dir3_data_end_offset() argument
[all …]
A Dxfs_dir2.c230 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_init()
267 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_createname()
363 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_lookup()
435 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_removename()
496 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_replace()
572 count = args->geo->fsbcount; in xfs_dir2_grow_inode()
578 *dbp = xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)bno); in xfs_dir2_grow_inode()
611 args->dp->i_disk_size != args->geo->blksize)) in xfs_dir2_isblock()
630 *vp = last == args->geo->leafblk + args->geo->fsbcount; in xfs_dir2_isleaf()
658 da = xfs_dir2_db_to_da(args->geo, db); in xfs_dir2_shrink_inode()
[all …]
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()
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()
967 hdrsz = args->geo->data_entry_offset; in xfs_dir2_leaf_to_block()
970 args->geo->blksize - hdrsz) { in xfs_dir2_leaf_to_block()
[all …]
A Dxfs_da_btree.c965 state->args->geo->node_hdr_size)); in xfs_da3_node_rebalance()
970 state->args->geo->node_hdr_size + in xfs_da3_node_rebalance()
1042 state->args->geo->node_hdr_size)); in xfs_da3_node_add()
1222 args->geo->blksize - 1); in xfs_da3_root_join()
1302 count = state->args->geo->node_ents; in xfs_da3_node_toosmall()
1596 blkno = args->geo->leafblk; in xfs_da3_node_lookup_int()
1650 if (blkno == args->geo->leafblk) in xfs_da3_node_lookup_int()
2233 bno = args->geo->leafblk; in xfs_da_grow_inode()
2289 lastoff = args->geo->freeblk; in xfs_da3_swap_lastblock()
2372 par_blkno = args->geo->leafblk; in xfs_da3_swap_lastblock()
[all …]
A Dxfs_dir2_sf.c186 struct xfs_da_geometry *geo; in xfs_dir2_block_sfsize() local
189 geo = mp->m_dir_geo; in xfs_dir2_block_sfsize()
198 btp = xfs_dir2_block_tail_p(geo, hdr); in xfs_dir2_block_sfsize()
211 xfs_dir2_dataptr_to_off(geo, addr)); in xfs_dir2_block_sfsize()
269 unsigned int offset = args->geo->data_entry_offset; in xfs_dir2_block_to_sf()
286 end = xfs_dir3_data_end_offset(args->geo, bp->b_addr); in xfs_dir2_block_to_sf()
541 for (offset = args->geo->data_first_offset, in xfs_dir2_sf_addname_hard()
619 offset = args->geo->data_first_offset; in xfs_dir2_sf_addname_pick()
646 if (used + (holefit ? 0 : size) > args->geo->blksize) in xfs_dir2_sf_addname_pick()
656 if (used + size > args->geo->blksize) in xfs_dir2_sf_addname_pick()
[all …]
/linux/fs/xfs/
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()
79 dotdot_offset = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents()
109 off = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents()
148 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()
204 cook = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, offset); in xfs_dir2_block_getdents()
249 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leaf_readbuf() local
291 ra_want = howmany(bufsize + geo->blksize, (1 << geo->fsblog)); in xfs_dir2_leaf_readbuf()
[all …]
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()
/linux/block/partitions/
A Dibm.c41 return cyl * geo->heads * geo->sectors + in cchh2blk()
42 head * geo->sectors; in cchh2blk()
59 return cyl * geo->heads * geo->sectors + in cchhb2blk()
60 head * geo->sectors + in cchhb2blk()
134 struct hd_geometry *geo, in find_vol1_partitions() argument
177 offset + geo->sectors; in find_vol1_partitions()
196 struct hd_geometry *geo, in find_lnx1_partitions() argument
221 geo_size = geo->cylinders * geo->heads in find_lnx1_partitions()
299 struct hd_geometry *geo; in ibm_partition() local
319 if (geo == NULL) in ibm_partition()
[all …]
/linux/drivers/media/pci/bt8xx/
A Dbttv-risc.c348 geo->hdelay = (geo->hdelay*width)/swidth; in bttv_calc_geo_old()
349 geo->hdelay &= 0x3fe; in bttv_calc_geo_old()
352 geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) | in bttv_calc_geo_old()
356 geo->width = width; in bttv_calc_geo_old()
364 geo->vtc = 0; in bttv_calc_geo_old()
365 geo->comb = 0; in bttv_calc_geo_old()
398 geo->width = width; in bttv_calc_geo()
411 geo->crop = (((geo->width >> 8) & 0x03) | in bttv_calc_geo()
420 geo->vtc = 0; in bttv_calc_geo()
421 geo->comb = 0; in bttv_calc_geo()
[all …]
/linux/drivers/mtd/nand/raw/gpmi-nand/
A Dgpmi-nand.c228 geo->gf_len, in gpmi_dump_info()
349 geo->page_size = mtd->writesize + geo->metadata_size + in set_geometry_by_ecc_info()
350 (geo->gf_len * geo->ecc_strength * geo->ecc_chunk_count) / 8; in set_geometry_by_ecc_info()
355 geo->auxiliary_size = ALIGN(geo->metadata_size, 4) in set_geometry_by_ecc_info()
363 (geo->ecc_strength * geo->gf_len * (geo->ecc_chunk_count - 1) in set_geometry_by_ecc_info()
396 / (geo->gf_len * geo->ecc_chunk_count); in get_ecc_strength()
440 geo->page_size = mtd->writesize + geo->metadata_size + in legacy_set_geometry()
441 (geo->gf_len * geo->ecc_strength * geo->ecc_chunk_count) / 8; in legacy_set_geometry()
506 (geo->ecc_strength * geo->gf_len * (geo->ecc_chunk_count - 1) in legacy_set_geometry()
1361 ecc_parity_size = geo->gf_len * geo->ecc_strength / 8; in gpmi_ecc_read_subpage()
[all …]
/linux/drivers/md/
A Draid10.c603 if ((geo->raid_disks % geo->far_set_size) && in __raid10_find_phys()
627 struct geom *geo = &conf->geo; in raid10_find_phys() local
646 struct geom *geo = &conf->geo; in raid10_find_virt() local
651 if (geo->raid_disks % geo->far_set_size) { in raid10_find_virt()
718 struct geom *geo = &conf->geo; in read_balance() local
1589 struct geom *geo = &conf->geo; in raid10_handle_discard() local
1621 geo->raid_disks % geo->near_copies; in raid10_handle_discard()
1873 if (conf->geo.near_copies < conf->geo.raid_disks) in raid10_status()
3881 conf->geo.stride = 1 << conf->geo.chunk_shift; in calc_sectors()
3982 conf->geo = geo; in setup_conf()
[all …]
/linux/drivers/media/platform/
A Dsh_vou.c520 &geo->in_height, in vou_adjust_input()
543 geo->in_width = best; in vou_adjust_input()
544 geo->scale_idx_h = idx; in vou_adjust_input()
568 geo->in_height = best; in vou_adjust_input()
569 geo->scale_idx_v = idx; in vou_adjust_input()
612 geo->output.width = best; in vou_adjust_output()
613 geo->scale_idx_h = idx_h; in vou_adjust_output()
725 geo.output.width, geo.output.height, mbfmt->width, mbfmt->height); in sh_vou_set_fmt_vid_out()
759 geo.scale_idx_h, geo.scale_idx_v); in sh_vou_set_fmt_vid_out()
967 geo.output = *rect; in sh_vou_s_selection()
[all …]
/linux/include/linux/
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,
/linux/drivers/block/rsxx/
A Ddev.c73 static int rsxx_getgeo(struct block_device *bdev, struct hd_geometry *geo) in rsxx_getgeo() argument
83 geo->heads = 64; in rsxx_getgeo()
84 geo->sectors = 16; in rsxx_getgeo()
85 do_div(blocks, (geo->heads * geo->sectors)); in rsxx_getgeo()
86 geo->cylinders = blocks; in rsxx_getgeo()
88 geo->heads = 0; in rsxx_getgeo()
89 geo->sectors = 0; in rsxx_getgeo()
90 geo->cylinders = 0; in rsxx_getgeo()
/linux/fs/xfs/scrub/
A Ddir.c241 db = xfs_dir2_dataptr_to_db(geo, ptr); in xchk_dir_rec()
243 rec_bno = xfs_dir2_db_to_da(geo, db); in xchk_dir_rec()
245 if (rec_bno >= geo->leafblk) { in xchk_dir_rec()
266 iter_off = geo->data_entry_offset; in xchk_dir_rec()
525 ltp = xfs_dir2_leaf_tail_p(geo, leaf); in xchk_directory_leaf1_bestfree()
576 xfs_dir2_db_to_da(args->geo, i), in xchk_directory_leaf1_bestfree()
687 args.geo = mp->m_dir_geo; in xchk_directory_blocks()
712 args.geo->fsbcount); in xchk_directory_blocks()
714 lblk += args.geo->fsbcount) { in xchk_directory_blocks()
776 args.geo->fsbcount); in xchk_directory_blocks()
[all …]
/linux/block/
A Dioctl.c378 struct hd_geometry geo; in blkdev_getgeo() local
390 memset(&geo, 0, sizeof(geo)); in blkdev_getgeo()
391 geo.start = get_start_sect(bdev); in blkdev_getgeo()
392 ret = disk->fops->getgeo(bdev, &geo); in blkdev_getgeo()
395 if (copy_to_user(argp, &geo, sizeof(geo))) in blkdev_getgeo()
412 struct hd_geometry geo; in compat_hdio_getgeo() local
420 memset(&geo, 0, sizeof(geo)); in compat_hdio_getgeo()
425 geo.start = get_start_sect(bdev); in compat_hdio_getgeo()
426 ret = disk->fops->getgeo(bdev, &geo); in compat_hdio_getgeo()
430 ret = copy_to_user(ugeo, &geo, 4); in compat_hdio_getgeo()
[all …]
/linux/arch/m68k/emu/
A Dnfblock.c81 static int nfhd_getgeo(struct block_device *bdev, struct hd_geometry *geo) in nfhd_getgeo() argument
85 geo->cylinders = dev->blocks >> (6 - dev->bshift); in nfhd_getgeo()
86 geo->heads = 4; in nfhd_getgeo()
87 geo->sectors = 16; in nfhd_getgeo()
/linux/drivers/block/aoe/
A Daoeblk.c284 aoeblk_getgeo(struct block_device *bdev, struct hd_geometry *geo) in aoeblk_getgeo() argument
293 geo->cylinders = d->geo.cylinders; in aoeblk_getgeo()
294 geo->heads = d->geo.heads; in aoeblk_getgeo()
295 geo->sectors = d->geo.sectors; in aoeblk_getgeo()

Completed in 884 milliseconds

1234