Home
last modified time | relevance | path

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

1234

/linux-6.15/lib/
H A Dbtree.c160 longcpy(bkey(geo, node, n), key, geo->keylen); in setkey()
171 longset(bkey(geo, node, n), 0, geo->keylen); in clearpair()
218 longcpy(key, bkey(geo, node, 0), geo->keylen); in btree_last()
479 setkey(geo, new, i, bkey(geo, node, i)); in btree_insert_level()
480 setval(geo, new, i, bval(geo, node, i)); in btree_insert_level()
486 setkey(geo, node, i, bkey(geo, node, fill - 1)); in btree_insert_level()
487 setval(geo, node, i, bval(geo, node, fill - 1)); in btree_insert_level()
496 setkey(geo, node, i, bkey(geo, node, i - 1)); in btree_insert_level()
497 setval(geo, node, i, bval(geo, node, i - 1)); in btree_insert_level()
609 setkey(geo, node, i, bkey(geo, node, i + 1)); in btree_remove_level()
[all …]
/linux-6.15/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()
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-6.15/fs/xfs/
H A Dxfs_dir2_readdir.c59 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_sf_getdents() local
68 if (xfs_dir2_dataptr_to_db(geo, ctx->pos) > geo->datablk) in xfs_dir2_sf_getdents()
76 dot_offset = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents()
78 dotdot_offset = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents()
108 off = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xfs_dir2_sf_getdents()
150 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_block_getdents() local
157 if (xfs_dir2_dataptr_to_db(geo, ctx->pos) > geo->datablk) in xfs_dir2_block_getdents()
206 cook = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, offset); in xfs_dir2_block_getdents()
252 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leaf_readbuf() local
295 ra_want = howmany(bufsize + geo->blksize, (1 << geo->fsblog)); in xfs_dir2_leaf_readbuf()
[all …]
H A Dxfs_health.c374 struct xfs_fsop_geom *geo, in xfgeo_health_tick() argument
380 geo->checked |= m->ioctl_mask; in xfgeo_health_tick()
382 geo->sick |= m->ioctl_mask; in xfgeo_health_tick()
389 struct xfs_fsop_geom *geo) in xfs_fsop_geom_health() argument
396 geo->sick = 0; in xfs_fsop_geom_health()
397 geo->checked = 0; in xfs_fsop_geom_health()
401 xfgeo_health_tick(geo, sick, checked, m); in xfs_fsop_geom_health()
406 xfgeo_health_tick(geo, sick, checked, m); in xfs_fsop_geom_health()
/linux-6.15/drivers/mtd/nand/raw/gpmi-nand/
H A Dgpmi-nand.c285 (geo->gf_len * geo->ecc_strength + in bbm_in_data_chunk()
289 (geo->gf_len * geo->ecc_strength + in bbm_in_data_chunk()
399 (geo->gf_len * geo->ecc_strength * geo->ecc_chunk_count) / 8; in set_geometry_by_ecc_info()
412 (geo->ecc_strength * geo->gf_len * (geo->ecc_chunk_count - 1) in set_geometry_by_ecc_info()
506 geo->gf_len * geo->ecc_strength * geo->ecc_chunk_count) { in set_geometry_for_large_oob()
513 geo->gf_len * geo->ecc_strength) / in set_geometry_for_large_oob()
514 (geo->gf_len * geo->ecc_strength + in set_geometry_for_large_oob()
520 (geo->gf_len * geo->ecc_strength * geo->ecc_chunk_count) / 8; in set_geometry_for_large_oob()
540 (geo->ecc_strength * geo->gf_len * (geo->ecc_chunk_count - i) in set_geometry_for_large_oob()
620 (geo->gf_len * geo->ecc_strength * geo->ecc_chunk_count) / 8; in legacy_set_geometry()
[all …]
/linux-6.15/fs/xfs/libxfs/
H A Dxfs_dir2.h156 return (xfs_dir2_db_t)(by >> geo->blklog); in xfs_dir2_byte_to_db()
165 return xfs_dir2_byte_to_db(geo, xfs_dir2_dataptr_to_byte(dp)); in xfs_dir2_dataptr_to_db()
174 return (xfs_dir2_data_aoff_t)(by & (geo->blksize - 1)); in xfs_dir2_byte_to_off()
193 return ((xfs_dir2_off_t)db << geo->blklog) + o; in xfs_dir2_db_off_to_byte()
202 return (xfs_dablk_t)(db << (geo->blklog - geo->fsblog)); in xfs_dir2_db_to_da()
211 return xfs_dir2_db_to_da(geo, xfs_dir2_byte_to_db(geo, by)); in xfs_dir2_byte_to_da()
228 xfs_dir2_da_to_db(struct xfs_da_geometry *geo, xfs_dablk_t da) in xfs_dir2_da_to_db() argument
230 return (xfs_dir2_db_t)(da >> (geo->blklog - geo->fsblog)); in xfs_dir2_da_to_db()
239 return xfs_dir2_db_off_to_byte(geo, xfs_dir2_da_to_db(geo, da), 0); in xfs_dir2_da_to_byte()
249 ((char *)hdr + geo->blksize)) - 1; in xfs_dir2_block_tail_p()
[all …]
H A Dxfs_sb.c1493 struct xfs_fsop_geom *geo, in xfs_fs_geometry() argument
1502 geo->agblocks = sbp->sb_agblocks; in xfs_fs_geometry()
1503 geo->agcount = sbp->sb_agcount; in xfs_fs_geometry()
1505 geo->sectsize = sbp->sb_sectsize; in xfs_fs_geometry()
1507 geo->imaxpct = sbp->sb_imax_pct; in xfs_fs_geometry()
1509 geo->rtblocks = sbp->sb_rblocks; in xfs_fs_geometry()
1518 geo->sunit = sbp->sb_unit; in xfs_fs_geometry()
1519 geo->swidth = sbp->sb_width; in xfs_fs_geometry()
1566 geo->logsectsize = BBSIZE; in xfs_fs_geometry()
1593 geo->rgcount = sbp->sb_rgcount; in xfs_fs_geometry()
[all …]
H A Dxfs_dir2_leaf.c160 if (hdr->count > geo->leaf_max_ents) in xfs_dir3_leaf_check_int()
1202 (uint)(args->geo->blksize - 1)); in xfs_dir3_leaf_log_tail()
1401 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leaf_removename() local
1491 geo->blksize - geo->data_entry_offset) { in xfs_dir2_leaf_removename()
1492 ASSERT(db != geo->datablk); in xfs_dir2_leaf_removename()
1534 else if (db != geo->datablk) in xfs_dir2_leaf_removename()
1655 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leaf_trim_data() local
1686 geo->blksize - geo->data_entry_offset); in xfs_dir2_leaf_trim_data()
1772 fo -= args->geo->fsbcount; in xfs_dir2_node_to_leaf()
1779 while (fo > args->geo->freeblk) { in xfs_dir2_node_to_leaf()
[all …]
H A Dxfs_attr_leaf.c96 struct xfs_da_geometry *geo, in xfs_attr3_leaf_firstused_from_disk() argument
116 ASSERT(geo->blksize > USHRT_MAX); in xfs_attr3_leaf_firstused_from_disk()
117 to->firstused = geo->blksize; in xfs_attr3_leaf_firstused_from_disk()
123 struct xfs_da_geometry *geo, in xfs_attr3_leaf_firstused_to_disk() argument
154 struct xfs_da_geometry *geo, in xfs_attr3_leaf_hdr_from_disk() argument
196 struct xfs_da_geometry *geo, in xfs_attr3_leaf_hdr_to_disk() argument
976 nargs.geo = args->geo; in xfs_attr_shortform_to_leaf()
1177 nargs.geo = args->geo; in xfs_attr3_leaf_to_shortform()
2249 tmp = args->geo->blksize; in xfs_attr3_leaf_remove()
2650 <= args->geo->blksize); in xfs_attr3_leaf_moveents()
[all …]
H A Dxfs_dir2_node.c44 (db / geo->free_max_bests); in xfs_dir2_db_to_fdb()
53 return db % geo->free_max_bests; in xfs_dir2_db_to_fdindex()
402 args->geo->free_hdr_size - 1); in xfs_dir2_free_log_header()
725 xfs_dir2_db_to_da(args->geo, in xfs_dir2_leafn_lookup_for_addname()
871 xfs_dir2_db_to_da(args->geo, in xfs_dir2_leafn_lookup_for_entry()
1278 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leafn_remove() local
1362 fdb = xfs_dir2_db_to_fdb(geo, db); in xfs_dir2_leafn_remove()
1386 if (longest == geo->blksize - geo->data_entry_offset) { in xfs_dir2_leafn_remove()
1418 *rval = (geo->leaf_hdr_size + in xfs_dir2_leafn_remove()
1420 geo->magicpct; in xfs_dir2_leafn_remove()
[all …]
H A Dxfs_dir2_data.c86 struct xfs_da_geometry *geo) in xfs_dir2_data_max_leaf_entries() argument
89 geo->data_entry_offset) / in xfs_dir2_data_max_leaf_entries()
128 offset = geo->data_entry_offset; in __xfs_dir3_data_check()
133 btp = xfs_dir2_block_tail_p(geo, hdr); in __xfs_dir3_data_check()
137 xfs_dir2_data_max_leaf_entries(geo)) in __xfs_dir3_data_check()
146 end = xfs_dir3_data_end_offset(geo, hdr); in __xfs_dir3_data_check()
255 addr = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in __xfs_dir3_data_check()
725 struct xfs_da_geometry *geo = args->geo; in xfs_dir3_data_init() local
761 bf[0].length = cpu_to_be16(geo->blksize - geo->data_entry_offset); in xfs_dir3_data_init()
1235 struct xfs_da_geometry *geo, in xfs_dir3_data_end_offset() argument
[all …]
H A Dxfs_dir2_block.c400 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_addname()
660 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_lookup()
666 xfs_dir2_dataptr_to_off(args->geo, in xfs_dir2_block_lookup()
711 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_lookup_int()
814 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_removename()
820 xfs_dir2_dataptr_to_off(args->geo, in xfs_dir2_block_removename()
895 xfs_dir2_dataptr_to_off(args->geo, in xfs_dir2_block_replace()
974 hdrsz = args->geo->data_entry_offset; in xfs_dir2_leaf_to_block()
977 args->geo->blksize - hdrsz) { in xfs_dir2_leaf_to_block()
990 args->geo->datablk, 0, &dbp); in xfs_dir2_leaf_to_block()
[all …]
H A Dxfs_dir2.c255 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_init()
271 struct xfs_da_geometry *geo = mp->m_dir_geo; in xfs_dir2_format() local
284 if (eof == XFS_B_TO_FSB(mp, geo->blksize)) { in xfs_dir2_format()
292 if (eof == geo->leafblk + geo->fsbcount) in xfs_dir2_format()
348 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_createname()
442 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_lookup()
510 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_removename()
570 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_replace()
626 count = args->geo->fsbcount; in xfs_dir2_grow_inode()
673 da = xfs_dir2_db_to_da(args->geo, db); in xfs_dir2_shrink_inode()
[all …]
H A Dxfs_da_btree.c1034 state->args->geo->node_hdr_size)); in xfs_da3_node_rebalance()
1039 state->args->geo->node_hdr_size + in xfs_da3_node_rebalance()
1111 state->args->geo->node_hdr_size)); in xfs_da3_node_add()
1289 args->geo->blksize - 1); in xfs_da3_root_join()
1373 count = state->args->geo->node_ents; in xfs_da3_node_toosmall()
1675 blkno = args->geo->leafblk; in xfs_da3_node_lookup_int()
1750 if (blkno == args->geo->leafblk) in xfs_da3_node_lookup_int()
2379 bno = args->geo->leafblk; in xfs_da_grow_inode()
2436 lastoff = args->geo->freeblk; in xfs_da3_swap_lastblock()
2546 par_blkno = args->geo->leafblk; in xfs_da3_swap_lastblock()
[all …]
H 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()
535 for (offset = args->geo->data_first_offset, in xfs_dir2_sf_addname_hard()
609 offset = args->geo->data_first_offset; in xfs_dir2_sf_addname_pick()
636 if (used + (holefit ? 0 : size) > args->geo->blksize) in xfs_dir2_sf_addname_pick()
646 if (used + size > args->geo->blksize) in xfs_dir2_sf_addname_pick()
[all …]
/linux-6.15/block/partitions/
H 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()
169 struct hd_geometry *geo, in find_vol1_partitions() argument
212 offset + geo->sectors; in find_vol1_partitions()
231 struct hd_geometry *geo, in find_lnx1_partitions() argument
256 geo_size = geo->cylinders * geo->heads in find_lnx1_partitions()
334 struct hd_geometry *geo; in ibm_partition() local
354 if (geo == NULL) in ibm_partition()
[all …]
/linux-6.15/drivers/media/pci/bt8xx/
H A Dbttv-risc.c259 geo->hdelay = (geo->hdelay*width)/swidth; in bttv_calc_geo_old()
260 geo->hdelay &= 0x3fe; in bttv_calc_geo_old()
263 geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) | in bttv_calc_geo_old()
267 geo->width = width; in bttv_calc_geo_old()
275 geo->vtc = 0; in bttv_calc_geo_old()
276 geo->comb = 0; in bttv_calc_geo_old()
309 geo->width = width; in bttv_calc_geo()
322 geo->crop = (((geo->width >> 8) & 0x03) | in bttv_calc_geo()
331 geo->vtc = 0; in bttv_calc_geo()
332 geo->comb = 0; in bttv_calc_geo()
[all …]
/linux-6.15/fs/xfs/scrub/
H A Dreaddir.c50 dapos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xchk_dir_walk_sf()
51 geo->data_entry_offset); in xchk_dir_walk_sf()
58 dapos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xchk_dir_walk_sf()
59 geo->data_entry_offset + in xchk_dir_walk_sf()
72 dapos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in xchk_dir_walk_sf()
127 dapos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, off); in xchk_dir_walk_block()
147 struct xfs_da_geometry *geo, in xchk_read_leaf_dir_buf() argument
166 map_off = xfs_dir2_db_to_da(geo, xfs_dir2_byte_to_db(geo, *curoff)); in xchk_read_leaf_dir_buf()
224 offset = geo->data_entry_offset; in xchk_dir_walk_leaf()
275 .geo = dp->i_mount->m_dir_geo, in xchk_dir_walk()
[all …]
H A Ddir.c358 db = xfs_dir2_dataptr_to_db(geo, ptr); in xchk_dir_rec()
360 rec_bno = xfs_dir2_db_to_da(geo, db); in xchk_dir_rec()
362 if (rec_bno >= geo->leafblk) { in xchk_dir_rec()
383 iter_off = geo->data_entry_offset; in xchk_dir_rec()
648 ltp = xfs_dir2_leaf_tail_p(geo, leaf); in xchk_directory_leaf1_bestfree()
703 xfs_dir2_db_to_da(args->geo, i), in xchk_directory_leaf1_bestfree()
793 .geo = sc->mp->m_dir_geo, in xchk_directory_blocks()
843 args.geo->fsbcount); in xchk_directory_blocks()
845 lblk += args.geo->fsbcount) { in xchk_directory_blocks()
908 args.geo->fsbcount); in xchk_directory_blocks()
[all …]
/linux-6.15/drivers/md/
H A Draid10.c619 if ((geo->raid_disks % geo->far_set_size) && in __raid10_find_phys()
643 struct geom *geo = &conf->geo; in raid10_find_phys() local
662 struct geom *geo = &conf->geo; in raid10_find_virt() local
667 if (geo->raid_disks % geo->far_set_size) { in raid10_find_virt()
734 struct geom *geo = &conf->geo; in read_balance() local
1606 struct geom *geo = &conf->geo; in raid10_handle_discard() local
1641 geo->raid_disks % geo->near_copies; in raid10_handle_discard()
1905 if (conf->geo.near_copies < conf->geo.raid_disks) in raid10_status()
3830 conf->geo.stride = 1 << conf->geo.chunk_shift; in calc_sectors()
3945 conf->geo = geo; in setup_conf()
[all …]
/linux-6.15/drivers/media/platform/renesas/
H A Dsh_vou.c518 &geo->in_height, in vou_adjust_input()
541 geo->in_width = best; in vou_adjust_input()
542 geo->scale_idx_h = idx; in vou_adjust_input()
566 geo->in_height = best; in vou_adjust_input()
567 geo->scale_idx_v = idx; in vou_adjust_input()
610 geo->output.width = best; in vou_adjust_output()
611 geo->scale_idx_h = idx_h; in vou_adjust_output()
723 geo.output.width, geo.output.height, mbfmt->width, mbfmt->height); in sh_vou_set_fmt_vid_out()
757 geo.scale_idx_h, geo.scale_idx_v); in sh_vou_set_fmt_vid_out()
965 geo.output = *rect; in sh_vou_s_selection()
[all …]
/linux-6.15/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,
/linux-6.15/block/
H A Dioctl.c469 struct hd_geometry geo; in blkdev_getgeo() local
481 memset(&geo, 0, sizeof(geo)); in blkdev_getgeo()
482 geo.start = get_start_sect(bdev); in blkdev_getgeo()
483 ret = disk->fops->getgeo(bdev, &geo); in blkdev_getgeo()
486 if (copy_to_user(argp, &geo, sizeof(geo))) in blkdev_getgeo()
503 struct hd_geometry geo; in compat_hdio_getgeo() local
511 memset(&geo, 0, sizeof(geo)); in compat_hdio_getgeo()
516 geo.start = get_start_sect(bdev); in compat_hdio_getgeo()
517 ret = disk->fops->getgeo(bdev, &geo); in compat_hdio_getgeo()
521 ret = copy_to_user(ugeo, &geo, 4); in compat_hdio_getgeo()
[all …]
/linux-6.15/arch/m68k/emu/
H A Dnfblock.c80 static int nfhd_getgeo(struct block_device *bdev, struct hd_geometry *geo) in nfhd_getgeo() argument
84 geo->cylinders = dev->blocks >> (6 - dev->bshift); in nfhd_getgeo()
85 geo->heads = 4; in nfhd_getgeo()
86 geo->sectors = 16; in nfhd_getgeo()
/linux-6.15/drivers/block/aoe/
H A Daoeblk.c272 aoeblk_getgeo(struct block_device *bdev, struct hd_geometry *geo) in aoeblk_getgeo() argument
281 geo->cylinders = d->geo.cylinders; in aoeblk_getgeo()
282 geo->heads = d->geo.heads; in aoeblk_getgeo()
283 geo->sectors = d->geo.sectors; in aoeblk_getgeo()

1234