/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/drivers/net/wireless/intel/ipw2x00/ |
D | libipw_geo.c | 37 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 …]
|
/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
D | xfs_dir2.h | 125 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 …]
|
D | xfs_sb.c | 1116 struct xfs_fsop_geom *geo, in xfs_fs_geometry() argument 1119 memset(geo, 0, sizeof(struct xfs_fsop_geom)); in xfs_fs_geometry() 1121 geo->blocksize = sbp->sb_blocksize; in xfs_fs_geometry() 1122 geo->rtextsize = sbp->sb_rextsize; in xfs_fs_geometry() 1123 geo->agblocks = sbp->sb_agblocks; in xfs_fs_geometry() 1124 geo->agcount = sbp->sb_agcount; in xfs_fs_geometry() 1125 geo->logblocks = sbp->sb_logblocks; in xfs_fs_geometry() 1126 geo->sectsize = sbp->sb_sectsize; in xfs_fs_geometry() 1127 geo->inodesize = sbp->sb_inodesize; in xfs_fs_geometry() 1128 geo->imaxpct = sbp->sb_imax_pct; in xfs_fs_geometry() [all …]
|
D | xfs_dir2_leaf.c | 144 struct xfs_da_geometry *geo = mp->m_dir_geo; in xfs_dir3_leaf_check_int() local 149 ltp = xfs_dir2_leaf_tail_p(geo, leaf); in xfs_dir3_leaf_check_int() 156 if (hdr->count > geo->leaf_max_ents) in xfs_dir3_leaf_check_int() 354 ASSERT(bno >= xfs_dir2_byte_to_db(args->geo, XFS_DIR2_LEAF_OFFSET) && in xfs_dir3_leaf_get_buf() 355 bno < xfs_dir2_byte_to_db(args->geo, XFS_DIR2_FREE_OFFSET)); in xfs_dir3_leaf_get_buf() 357 error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, bno), in xfs_dir3_leaf_get_buf() 407 ldb = xfs_dir2_da_to_db(args->geo, blkno); in xfs_dir2_block_to_leaf() 408 ASSERT(ldb == xfs_dir2_byte_to_db(args->geo, XFS_DIR2_LEAF_OFFSET)); in xfs_dir2_block_to_leaf() 419 btp = xfs_dir2_block_tail_p(args->geo, hdr); in xfs_dir2_block_to_leaf() 447 (xfs_dir2_data_aoff_t)((char *)hdr + args->geo->blksize - in xfs_dir2_block_to_leaf() [all …]
|
D | xfs_attr_leaf.c | 93 struct xfs_da_geometry *geo, in xfs_attr3_leaf_firstused_from_disk() argument 113 ASSERT(geo->blksize > USHRT_MAX); in xfs_attr3_leaf_firstused_from_disk() 114 to->firstused = geo->blksize; in xfs_attr3_leaf_firstused_from_disk() 120 struct xfs_da_geometry *geo, in xfs_attr3_leaf_firstused_to_disk() argument 137 ASSERT(from->firstused == geo->blksize); in xfs_attr3_leaf_firstused_to_disk() 151 struct xfs_da_geometry *geo, in xfs_attr3_leaf_hdr_from_disk() argument 168 xfs_attr3_leaf_firstused_from_disk(geo, to, from); in xfs_attr3_leaf_hdr_from_disk() 182 xfs_attr3_leaf_firstused_from_disk(geo, to, from); in xfs_attr3_leaf_hdr_from_disk() 193 struct xfs_da_geometry *geo, in xfs_attr3_leaf_hdr_to_disk() argument 210 xfs_attr3_leaf_firstused_to_disk(geo, to, from); in xfs_attr3_leaf_hdr_to_disk() [all …]
|
D | xfs_dir2_node.c | 40 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_d.di_size / args->geo->blksize) { in xfs_dir2_leaf_to_node() [all …]
|
D | xfs_dir2_data.c | 85 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() 233 addr = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in __xfs_dir3_data_check() 643 struct xfs_da_geometry *geo = mp->m_dir_geo; in xfs_dir2_data_freescan() local [all …]
|
D | xfs_dir2.c | 230 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() 608 rval = XFS_FSB_TO_B(args->dp->i_mount, last) == args->geo->blksize; in xfs_dir2_isblock() 611 args->dp->i_d.di_size != args->geo->blksize)) in xfs_dir2_isblock() 630 *vp = last == args->geo->leafblk + args->geo->fsbcount; in xfs_dir2_isleaf() [all …]
|
/kernel/linux/linux-5.10/drivers/nvme/host/ |
D | lightnvm.c | 286 struct nvm_geo *geo) in nvme_nvm_setup_12() argument 302 geo->major_ver_id = id->ver_id; in nvme_nvm_setup_12() 303 geo->minor_ver_id = 2; in nvme_nvm_setup_12() 306 geo->version = NVM_OCSSD_SPEC_12; in nvme_nvm_setup_12() 308 geo->num_ch = src->num_ch; in nvme_nvm_setup_12() 309 geo->num_lun = src->num_lun; in nvme_nvm_setup_12() 310 geo->all_luns = geo->num_ch * geo->num_lun; in nvme_nvm_setup_12() 312 geo->num_chk = le16_to_cpu(src->num_chk); in nvme_nvm_setup_12() 314 geo->csecs = le16_to_cpu(src->csecs); in nvme_nvm_setup_12() 315 geo->sos = le16_to_cpu(src->sos); in nvme_nvm_setup_12() [all …]
|
/kernel/linux/linux-5.10/fs/xfs/ |
D | xfs_dir2_readdir.c | 58 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() 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() [all …]
|
/kernel/linux/linux-5.10/drivers/lightnvm/ |
D | pblk-init.c | 185 struct nvm_geo *geo = &dev->geo; in pblk_rwb_init() local 189 threshold = geo->mw_cunits * geo->all_luns; in pblk_rwb_init() 190 pgs_in_buffer = (max(geo->mw_cunits, geo->ws_opt) + geo->ws_opt) in pblk_rwb_init() 191 * geo->all_luns; in pblk_rwb_init() 198 return pblk_rb_init(&pblk->rwb, buffer_size, threshold, geo->csecs); in pblk_rwb_init() 201 static int pblk_set_addrf_12(struct pblk *pblk, struct nvm_geo *geo, in pblk_set_addrf_12() argument 204 struct nvm_addrf_12 *src = (struct nvm_addrf_12 *)&geo->addrf; in pblk_set_addrf_12() 208 power_len = get_count_order(geo->num_ch); in pblk_set_addrf_12() 209 if (1 << power_len != geo->num_ch) { in pblk_set_addrf_12() 215 power_len = get_count_order(geo->num_lun); in pblk_set_addrf_12() [all …]
|
D | core.c | 115 int lunid = (ch * dev->geo.num_lun) + lun; in nvm_remove_tgt_dev() 142 int num_ch = num_lun / dev->geo.num_lun; in nvm_create_tgt_dev() 143 int num_ch_mod = num_lun % dev->geo.num_lun; in nvm_create_tgt_dev() 144 int bch = lun_begin / dev->geo.num_lun; in nvm_create_tgt_dev() 145 int blun = lun_begin % dev->geo.num_lun; in nvm_create_tgt_dev() 165 prev_num_lun = (luns_left > dev->geo.num_lun) ? in nvm_create_tgt_dev() 166 dev->geo.num_lun : luns_left; in nvm_create_tgt_dev() 172 int luns_in_chnl = (luns_left > dev->geo.num_lun) ? in nvm_create_tgt_dev() 173 dev->geo.num_lun : luns_left; in nvm_create_tgt_dev() 208 memcpy(&tgt_dev->geo, &dev->geo, sizeof(struct nvm_geo)); in nvm_create_tgt_dev() [all …]
|
D | pblk-recovery.c | 41 struct nvm_geo *geo = &dev->geo; in pblk_recov_l2p_from_emeta() local 63 pos = pblk_ppa_to_pos(geo, ppa); in pblk_recov_l2p_from_emeta() 177 struct nvm_geo *geo = &dev->geo; in pblk_recov_pad_line() local 197 data = vzalloc(array_size(pblk->max_write_pgs, geo->csecs)); in pblk_recov_pad_line() 238 pos = pblk_ppa_to_pos(geo, ppa); in pblk_recov_pad_line() 243 pos = pblk_ppa_to_pos(geo, ppa); in pblk_recov_pad_line() 294 struct nvm_geo *geo = &dev->geo; in pblk_pad_distance() local 295 int distance = geo->mw_cunits * geo->all_luns * geo->ws_opt; in pblk_pad_distance() 306 struct nvm_geo *geo = &dev->geo; in pblk_get_stripe_chunk() local 313 pos = pblk_ppa_to_pos(geo, ppa); in pblk_get_stripe_chunk() [all …]
|
D | pblk-core.c | 40 pos = pblk_ppa_to_pos(&dev->geo, *ppa); in pblk_line_mark_bb() 54 struct nvm_geo *geo = &dev->geo; in pblk_mark_bb() local 56 int pos = pblk_ppa_to_pos(geo, ppa_addr); in pblk_mark_bb() 67 if (geo->version == NVM_OCSSD_SPEC_20) in pblk_mark_bb() 82 struct nvm_geo *geo = &dev->geo; in __pblk_end_io_erase() local 88 pos = pblk_ppa_to_pos(geo, rqd->ppa_addr); in __pblk_end_io_erase() 129 struct nvm_geo *geo = &dev->geo; in pblk_get_chunk_meta() local 137 len = geo->all_chunks * sizeof(*meta); in pblk_get_chunk_meta() 142 ret = nvm_get_chunk_meta(dev, ppa, geo->all_chunks, meta); in pblk_get_chunk_meta() 156 struct nvm_geo *geo = &dev->geo; in pblk_chunk_get_off() local [all …]
|
D | pblk.h | 971 static inline int pblk_ppa_to_pos(struct nvm_geo *geo, struct ppa_addr p) in pblk_ppa_to_pos() argument 973 return p.a.lun * geo->num_ch + p.a.ch; in pblk_ppa_to_pos() 980 struct nvm_geo *geo = &dev->geo; in addr_to_gen_ppa() local 983 if (geo->version == NVM_OCSSD_SPEC_12) { in addr_to_gen_ppa() 1020 struct nvm_geo *geo = &dev->geo; in pblk_dev_ppa_to_chunk() local 1022 int pos = pblk_ppa_to_pos(geo, p); in pblk_dev_ppa_to_chunk() 1039 struct nvm_geo *geo = &dev->geo; in pblk_dev_ppa_to_line_addr() local 1042 if (geo->version == NVM_OCSSD_SPEC_12) { in pblk_dev_ppa_to_line_addr() 1195 struct nvm_geo *geo = &pblk->dev->geo; in print_ppa() local 1200 } else if (geo->version == NVM_OCSSD_SPEC_12) { in print_ppa() [all …]
|
/kernel/linux/linux-5.10/block/partitions/ |
D | ibm.c | 31 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 …]
|
/kernel/linux/linux-5.10/drivers/media/pci/bt8xx/ |
D | bttv-risc.c | 326 bttv_calc_geo_old(struct bttv *btv, struct bttv_geometry *geo, in bttv_calc_geo_old() argument 346 geo->hscale = ((totalwidth*4096UL)/xsf-4096); in bttv_calc_geo_old() 347 geo->hdelay = tvnorm->hdelayx1; in bttv_calc_geo_old() 348 geo->hdelay = (geo->hdelay*width)/swidth; in bttv_calc_geo_old() 349 geo->hdelay &= 0x3fe; in bttv_calc_geo_old() 351 geo->vscale = (0x10000UL-sr) & 0x1fff; in bttv_calc_geo_old() 352 geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) | in bttv_calc_geo_old() 354 geo->vscale |= interleaved ? (BT848_VSCALE_INT<<8) : 0; in bttv_calc_geo_old() 355 geo->vdelay = vdelay; in bttv_calc_geo_old() 356 geo->width = width; in bttv_calc_geo_old() [all …]
|
/kernel/linux/linux-5.10/drivers/mtd/nand/raw/gpmi-nand/ |
D | gpmi-nand.c | 198 struct bch_geometry *geo = &this->bch_geometry; in gpmi_dump_info() local 226 geo->gf_len, in gpmi_dump_info() 227 geo->ecc_strength, in gpmi_dump_info() 228 geo->page_size, in gpmi_dump_info() 229 geo->metadata_size, in gpmi_dump_info() 230 geo->ecc_chunk_size, in gpmi_dump_info() 231 geo->ecc_chunk_count, in gpmi_dump_info() 232 geo->payload_size, in gpmi_dump_info() 233 geo->auxiliary_size, in gpmi_dump_info() 234 geo->auxiliary_status_offset, in gpmi_dump_info() [all …]
|
/kernel/linux/linux-5.10/drivers/media/platform/ |
D | sh_vou.c | 506 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 …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | btree.h | 100 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,
|
D | lightnvm.h | 402 struct nvm_geo geo; member 419 struct nvm_geo geo; member 443 struct nvm_geo *geo = &dev->geo; in generic_to_dev_addr() local 446 if (geo->version == NVM_OCSSD_SPEC_12) { in generic_to_dev_addr() 447 struct nvm_addrf_12 *ppaf = (struct nvm_addrf_12 *)&geo->addrf; in generic_to_dev_addr() 456 struct nvm_addrf *lbaf = &geo->addrf; in generic_to_dev_addr() 470 struct nvm_geo *geo = &dev->geo; in dev_to_generic_addr() local 475 if (geo->version == NVM_OCSSD_SPEC_12) { in dev_to_generic_addr() 476 struct nvm_addrf_12 *ppaf = (struct nvm_addrf_12 *)&geo->addrf; in dev_to_generic_addr() 485 struct nvm_addrf *lbaf = &geo->addrf; in dev_to_generic_addr() [all …]
|
/kernel/linux/linux-5.10/drivers/md/ |
D | raid10.c | 561 static void __raid10_find_phys(struct geom *geo, struct r10bio *r10bio) in __raid10_find_phys() argument 571 last_far_set_start = (geo->raid_disks / geo->far_set_size) - 1; in __raid10_find_phys() 572 last_far_set_start *= geo->far_set_size; in __raid10_find_phys() 574 last_far_set_size = geo->far_set_size; in __raid10_find_phys() 575 last_far_set_size += (geo->raid_disks % geo->far_set_size); in __raid10_find_phys() 578 chunk = r10bio->sector >> geo->chunk_shift; in __raid10_find_phys() 579 sector = r10bio->sector & geo->chunk_mask; in __raid10_find_phys() 581 chunk *= geo->near_copies; in __raid10_find_phys() 583 dev = sector_div(stripe, geo->raid_disks); in __raid10_find_phys() 584 if (geo->far_offset) in __raid10_find_phys() [all …]
|
/kernel/linux/linux-5.10/drivers/block/rsxx/ |
D | dev.c | 73 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()
|
/kernel/linux/linux-5.10/fs/xfs/scrub/ |
D | dir.c | 193 struct xfs_da_geometry *geo = mp->m_dir_geo; in xchk_dir_rec() local 227 db = xfs_dir2_dataptr_to_db(geo, ptr); in xchk_dir_rec() 228 off = xfs_dir2_dataptr_to_off(geo, ptr); in xchk_dir_rec() 229 rec_bno = xfs_dir2_db_to_da(geo, db); in xchk_dir_rec() 231 if (rec_bno >= geo->leafblk) { in xchk_dir_rec() 252 iter_off = geo->data_entry_offset; in xchk_dir_rec() 253 end = xfs_dir3_data_end_offset(geo, bp->b_addr); in xchk_dir_rec() 493 struct xfs_da_geometry *geo = sc->mp->m_dir_geo; in xchk_directory_leaf1_bestfree() local 511 ltp = xfs_dir2_leaf_tail_p(geo, leaf); in xchk_directory_leaf1_bestfree() 526 if (bestcount != xfs_dir2_byte_to_db(geo, sc->ip->i_d.di_size)) { in xchk_directory_leaf1_bestfree() [all …]
|