Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/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()
480 setkey(geo, new, i, bkey(geo, node, i)); in btree_insert_level()
481 setval(geo, new, i, bval(geo, node, i)); in btree_insert_level()
487 setkey(geo, node, i, bkey(geo, node, fill - 1)); in btree_insert_level()
488 setval(geo, node, i, bval(geo, node, fill - 1)); in btree_insert_level()
497 setkey(geo, node, i, bkey(geo, node, i - 1)); in btree_insert_level()
498 setval(geo, node, i, bval(geo, node, i - 1)); in btree_insert_level()
610 setkey(geo, node, i, bkey(geo, node, i + 1)); in btree_remove_level()
[all …]
/linux-6.3-rc2/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-6.3-rc2/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.c1126 struct xfs_fsop_geom *geo, in xfs_fs_geometry() argument
1135 geo->agblocks = sbp->sb_agblocks; in xfs_fs_geometry()
1136 geo->agcount = sbp->sb_agcount; in xfs_fs_geometry()
1138 geo->sectsize = sbp->sb_sectsize; in xfs_fs_geometry()
1140 geo->imaxpct = sbp->sb_imax_pct; in xfs_fs_geometry()
1142 geo->rtblocks = sbp->sb_rblocks; in xfs_fs_geometry()
1144 geo->logstart = sbp->sb_logstart; in xfs_fs_geometry()
1151 geo->sunit = sbp->sb_unit; in xfs_fs_geometry()
1152 geo->swidth = sbp->sb_width; in xfs_fs_geometry()
1197 geo->logsectsize = BBSIZE; in xfs_fs_geometry()
[all …]
A Dxfs_dir2_leaf.c159 if (hdr->count > geo->leaf_max_ents) in xfs_dir3_leaf_check_int()
1150 (uint)(args->geo->blksize - 1)); in xfs_dir3_leaf_log_tail()
1348 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leaf_removename() local
1436 geo->blksize - geo->data_entry_offset) { in xfs_dir2_leaf_removename()
1437 ASSERT(db != geo->datablk); in xfs_dir2_leaf_removename()
1479 else if (db != geo->datablk) in xfs_dir2_leaf_removename()
1600 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leaf_trim_data() local
1630 geo->blksize - geo->data_entry_offset); in xfs_dir2_leaf_trim_data()
1716 fo -= args->geo->fsbcount; in xfs_dir2_node_to_leaf()
1723 while (fo > args->geo->freeblk) { in xfs_dir2_node_to_leaf()
[all …]
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
153 struct xfs_da_geometry *geo, in xfs_attr3_leaf_hdr_from_disk() argument
195 struct xfs_da_geometry *geo, in xfs_attr3_leaf_hdr_to_disk() argument
972 nargs.geo = args->geo; in xfs_attr_shortform_to_leaf()
1181 nargs.geo = args->geo; in xfs_attr3_leaf_to_shortform()
2250 tmp = args->geo->blksize; in xfs_attr3_leaf_remove()
2644 <= 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.c242 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_init()
279 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_createname()
375 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_lookup()
447 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_removename()
508 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_replace()
584 count = args->geo->fsbcount; in xfs_dir2_grow_inode()
590 *dbp = xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)bno); in xfs_dir2_grow_inode()
624 if (XFS_FSB_TO_B(mp, eof) != args->geo->blksize) in xfs_dir2_isblock()
649 if (eof != args->geo->leafblk + args->geo->fsbcount) in xfs_dir2_isleaf()
680 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.c980 state->args->geo->node_hdr_size)); in xfs_da3_node_rebalance()
985 state->args->geo->node_hdr_size + in xfs_da3_node_rebalance()
1057 state->args->geo->node_hdr_size)); in xfs_da3_node_add()
1237 args->geo->blksize - 1); in xfs_da3_root_join()
1317 count = state->args->geo->node_ents; in xfs_da3_node_toosmall()
1611 blkno = args->geo->leafblk; in xfs_da3_node_lookup_int()
1665 if (blkno == args->geo->leafblk) in xfs_da3_node_lookup_int()
2248 bno = args->geo->leafblk; in xfs_da_grow_inode()
2304 lastoff = args->geo->freeblk; in xfs_da3_swap_lastblock()
2387 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-6.3-rc2/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()
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()
205 cook = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, offset); in xfs_dir2_block_getdents()
250 struct xfs_da_geometry *geo = args->geo; in xfs_dir2_leaf_readbuf() local
292 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-6.3-rc2/drivers/mtd/nand/raw/gpmi-nand/
A Dgpmi-nand.c283 (geo->gf_len * geo->ecc_strength + in bbm_in_data_chunk()
287 (geo->gf_len * geo->ecc_strength + in bbm_in_data_chunk()
397 (geo->gf_len * geo->ecc_strength * geo->ecc_chunk_count) / 8; in set_geometry_by_ecc_info()
410 (geo->ecc_strength * geo->gf_len * (geo->ecc_chunk_count - 1) in set_geometry_by_ecc_info()
504 geo->gf_len * geo->ecc_strength * geo->ecc_chunk_count) { in set_geometry_for_large_oob()
511 geo->gf_len * geo->ecc_strength) / in set_geometry_for_large_oob()
512 (geo->gf_len * geo->ecc_strength + in set_geometry_for_large_oob()
518 (geo->gf_len * geo->ecc_strength * geo->ecc_chunk_count) / 8; in set_geometry_for_large_oob()
538 (geo->ecc_strength * geo->gf_len * (geo->ecc_chunk_count - i) in set_geometry_for_large_oob()
618 (geo->gf_len * geo->ecc_strength * geo->ecc_chunk_count) / 8; in legacy_set_geometry()
[all …]
/linux-6.3-rc2/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-6.3-rc2/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-6.3-rc2/drivers/media/platform/renesas/
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-6.3-rc2/drivers/md/
A Draid10.c630 if ((geo->raid_disks % geo->far_set_size) && in __raid10_find_phys()
654 struct geom *geo = &conf->geo; in raid10_find_phys() local
673 struct geom *geo = &conf->geo; in raid10_find_virt() local
678 if (geo->raid_disks % geo->far_set_size) { in raid10_find_virt()
745 struct geom *geo = &conf->geo; in read_balance() local
1648 struct geom *geo = &conf->geo; in raid10_handle_discard() local
1684 geo->raid_disks % geo->near_copies; in raid10_handle_discard()
1938 if (conf->geo.near_copies < conf->geo.raid_disks) in raid10_status()
3943 conf->geo.stride = 1 << conf->geo.chunk_shift; in calc_sectors()
4044 conf->geo = geo; in setup_conf()
[all …]
/linux-6.3-rc2/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-6.3-rc2/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()
526 ltp = xfs_dir2_leaf_tail_p(geo, leaf); in xchk_directory_leaf1_bestfree()
581 xfs_dir2_db_to_da(args->geo, i), in xchk_directory_leaf1_bestfree()
672 .geo = sc->mp->m_dir_geo, in xchk_directory_blocks()
720 args.geo->fsbcount); in xchk_directory_blocks()
722 lblk += args.geo->fsbcount) { in xchk_directory_blocks()
785 args.geo->fsbcount); in xchk_directory_blocks()
[all …]
/linux-6.3-rc2/block/
A Dioctl.c380 struct hd_geometry geo; in blkdev_getgeo() local
392 memset(&geo, 0, sizeof(geo)); in blkdev_getgeo()
393 geo.start = get_start_sect(bdev); in blkdev_getgeo()
394 ret = disk->fops->getgeo(bdev, &geo); in blkdev_getgeo()
397 if (copy_to_user(argp, &geo, sizeof(geo))) in blkdev_getgeo()
414 struct hd_geometry geo; in compat_hdio_getgeo() local
422 memset(&geo, 0, sizeof(geo)); in compat_hdio_getgeo()
427 geo.start = get_start_sect(bdev); in compat_hdio_getgeo()
428 ret = disk->fops->getgeo(bdev, &geo); in compat_hdio_getgeo()
432 ret = copy_to_user(ugeo, &geo, 4); in compat_hdio_getgeo()
[all …]
/linux-6.3-rc2/arch/m68k/emu/
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.3-rc2/drivers/net/wireless/mediatek/mt76/mt7921/
A Dacpi_sar.c178 ret = mt7921_asar_acpi_read_mtgs(dev, (u8 **)&asar->geo, asar->ver); in mt7921_init_acpi_sar()
180 devm_kfree(dev->mt76.dev, asar->geo); in mt7921_init_acpi_sar()
181 asar->geo = NULL; in mt7921_init_acpi_sar()
204 if (!asar->geo) in mt7921_asar_get_geo_pwr()
220 band_pwr = &asar->geo->tbl[idx].band[0]; in mt7921_asar_get_geo_pwr()
221 max = ARRAY_SIZE(asar->geo->tbl[idx].band); in mt7921_asar_get_geo_pwr()
/linux-6.3-rc2/drivers/block/aoe/
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()

Completed in 93 milliseconds

1234