geo 83 arch/m68k/emu/nfblock.c static int nfhd_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 87 arch/m68k/emu/nfblock.c geo->cylinders = dev->blocks >> (6 - dev->bshift); geo 88 arch/m68k/emu/nfblock.c geo->heads = 4; geo 89 arch/m68k/emu/nfblock.c geo->sectors = 16; geo 107 arch/um/drivers/ubd_kern.c static int ubd_getgeo(struct block_device *bdev, struct hd_geometry *geo); geo 1416 arch/um/drivers/ubd_kern.c static int ubd_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 1420 arch/um/drivers/ubd_kern.c geo->heads = 128; geo 1421 arch/um/drivers/ubd_kern.c geo->sectors = 32; geo 1422 arch/um/drivers/ubd_kern.c geo->cylinders = ubd_dev->size / (128 * 32 * 512); geo 55 block/compat_ioctl.c struct hd_geometry geo; geo 63 block/compat_ioctl.c memset(&geo, 0, sizeof(geo)); geo 68 block/compat_ioctl.c geo.start = get_start_sect(bdev); geo 69 block/compat_ioctl.c ret = disk->fops->getgeo(bdev, &geo); geo 73 block/compat_ioctl.c ret = copy_to_user(ugeo, &geo, 4); geo 74 block/compat_ioctl.c ret |= put_user(geo.start, &ugeo->start); geo 463 block/ioctl.c struct hd_geometry geo; geo 475 block/ioctl.c memset(&geo, 0, sizeof(geo)); geo 476 block/ioctl.c geo.start = get_start_sect(bdev); geo 477 block/ioctl.c ret = disk->fops->getgeo(bdev, &geo); geo 480 block/ioctl.c if (copy_to_user(argp, &geo, sizeof(geo))) geo 31 block/partitions/ibm.c static sector_t cchh2blk(struct vtoc_cchh *ptr, struct hd_geometry *geo) geo 41 block/partitions/ibm.c return cyl * geo->heads * geo->sectors + geo 42 block/partitions/ibm.c head * geo->sectors; geo 49 block/partitions/ibm.c static sector_t cchhb2blk(struct vtoc_cchhb *ptr, struct hd_geometry *geo) geo 59 block/partitions/ibm.c return cyl * geo->heads * geo->sectors + geo 60 block/partitions/ibm.c head * geo->sectors + geo 66 block/partitions/ibm.c struct hd_geometry *geo, geo 134 block/partitions/ibm.c struct hd_geometry *geo, geo 155 block/partitions/ibm.c blk = cchhb2blk(&label->vol.vtoc, geo) + 1; geo 175 block/partitions/ibm.c offset = cchh2blk(&f1.DS1EXT1.llimit, geo); geo 176 block/partitions/ibm.c size = cchh2blk(&f1.DS1EXT1.ulimit, geo) - geo 177 block/partitions/ibm.c offset + geo->sectors; geo 196 block/partitions/ibm.c struct hd_geometry *geo, geo 221 block/partitions/ibm.c geo_size = geo->cylinders * geo->heads geo 222 block/partitions/ibm.c * geo->sectors * secperblk; geo 243 block/partitions/ibm.c struct hd_geometry *geo, geo 296 block/partitions/ibm.c struct hd_geometry *geo; geo 312 block/partitions/ibm.c geo = kmalloc(sizeof(struct hd_geometry), GFP_KERNEL); geo 313 block/partitions/ibm.c if (geo == NULL) geo 318 block/partitions/ibm.c if (ioctl_by_bdev(bdev, HDIO_GETGEO, (unsigned long)geo) != 0) geo 325 block/partitions/ibm.c if (find_label(state, info, geo, blocksize, &labelsect, name, type, geo 328 block/partitions/ibm.c res = find_vol1_partitions(state, geo, blocksize, name, geo 331 block/partitions/ibm.c res = find_lnx1_partitions(state, geo, blocksize, name, geo 335 block/partitions/ibm.c res = find_cms1_partitions(state, geo, blocksize, name, geo 360 block/partitions/ibm.c kfree(geo); geo 373 block/sed-opal.c const struct d0_geometry_features *geo = data; geo 375 block/sed-opal.c dev->align = be64_to_cpu(geo->alignment_granularity); geo 376 block/sed-opal.c dev->lowest_lba = be64_to_cpu(geo->lowest_aligned_lba); geo 1525 drivers/block/amiflop.c static int fd_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 1529 drivers/block/amiflop.c geo->heads = unit[drive].type->heads; geo 1530 drivers/block/amiflop.c geo->sectors = unit[drive].dtype->sects * unit[drive].type->sect_mult; geo 1531 drivers/block/amiflop.c geo->cylinders = unit[drive].type->tracks; geo 175 drivers/block/aoe/aoe.h struct hd_geometry geo; geo 285 drivers/block/aoe/aoeblk.c aoeblk_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 294 drivers/block/aoe/aoeblk.c geo->cylinders = d->geo.cylinders; geo 295 drivers/block/aoe/aoeblk.c geo->heads = d->geo.heads; geo 296 drivers/block/aoe/aoeblk.c geo->sectors = d->geo.sectors; geo 945 drivers/block/aoe/aoecmd.c d->geo.cylinders = ssize; geo 946 drivers/block/aoe/aoecmd.c d->geo.cylinders /= (255 * 63); geo 947 drivers/block/aoe/aoecmd.c d->geo.heads = 255; geo 948 drivers/block/aoe/aoecmd.c d->geo.sectors = 63; geo 956 drivers/block/aoe/aoecmd.c d->geo.cylinders = get_unaligned_le16(&id[54 << 1]); geo 957 drivers/block/aoe/aoecmd.c d->geo.heads = get_unaligned_le16(&id[55 << 1]); geo 958 drivers/block/aoe/aoecmd.c d->geo.sectors = get_unaligned_le16(&id[56 << 1]); geo 973 drivers/block/aoe/aoecmd.c d->geo.start = 0; geo 3371 drivers/block/floppy.c static int fd_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 3382 drivers/block/floppy.c geo->heads = g->head; geo 3383 drivers/block/floppy.c geo->sectors = g->sect; geo 3384 drivers/block/floppy.c geo->cylinders = g->track; geo 3322 drivers/block/mtip32xx/mtip32xx.c struct hd_geometry *geo) geo 3336 drivers/block/mtip32xx/mtip32xx.c geo->heads = 224; geo 3337 drivers/block/mtip32xx/mtip32xx.c geo->sectors = 56; geo 3338 drivers/block/mtip32xx/mtip32xx.c sector_div(capacity, (geo->heads * geo->sectors)); geo 3339 drivers/block/mtip32xx/mtip32xx.c geo->cylinders = capacity; geo 806 drivers/block/paride/pd.c static int pd_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 811 drivers/block/paride/pd.c geo->heads = PD_LOG_HEADS; geo 812 drivers/block/paride/pd.c geo->sectors = PD_LOG_SECTS; geo 813 drivers/block/paride/pd.c geo->cylinders = disk->capacity / (geo->heads * geo->sectors); geo 815 drivers/block/paride/pd.c geo->heads = disk->heads; geo 816 drivers/block/paride/pd.c geo->sectors = disk->sectors; geo 817 drivers/block/paride/pd.c geo->cylinders = disk->cylinders; geo 213 drivers/block/paride/pf.c static int pf_getgeo(struct block_device *bdev, struct hd_geometry *geo); geo 353 drivers/block/paride/pf.c static int pf_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 359 drivers/block/paride/pf.c geo->cylinders = sector_div(capacity, PF_FD_HDS * PF_FD_SPT); geo 360 drivers/block/paride/pf.c geo->heads = PF_FD_HDS; geo 361 drivers/block/paride/pf.c geo->sectors = PF_FD_SPT; geo 363 drivers/block/paride/pf.c geo->cylinders = sector_div(capacity, PF_HD_HDS * PF_HD_SPT); geo 364 drivers/block/paride/pf.c geo->heads = PF_HD_HDS; geo 365 drivers/block/paride/pf.c geo->sectors = PF_HD_SPT; geo 71 drivers/block/rsxx/dev.c static int rsxx_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 81 drivers/block/rsxx/dev.c geo->heads = 64; geo 82 drivers/block/rsxx/dev.c geo->sectors = 16; geo 83 drivers/block/rsxx/dev.c do_div(blocks, (geo->heads * geo->sectors)); geo 84 drivers/block/rsxx/dev.c geo->cylinders = blocks; geo 86 drivers/block/rsxx/dev.c geo->heads = 0; geo 87 drivers/block/rsxx/dev.c geo->sectors = 0; geo 88 drivers/block/rsxx/dev.c geo->cylinders = 0; geo 3088 drivers/block/skd_main.c static int skd_bdev_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 3100 drivers/block/skd_main.c geo->heads = 64; geo 3101 drivers/block/skd_main.c geo->sectors = 255; geo 3102 drivers/block/skd_main.c geo->cylinders = (capacity) / (255 * 64); geo 123 drivers/block/sunvdc.c static int vdc_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 129 drivers/block/sunvdc.c geo->heads = 0xff; geo 130 drivers/block/sunvdc.c geo->sectors = 0x3f; geo 131 drivers/block/sunvdc.c sector_div(cylinders, geo->heads * geo->sectors); geo 132 drivers/block/sunvdc.c geo->cylinders = cylinders; geo 133 drivers/block/sunvdc.c if ((sector_t)(geo->cylinders + 1) * geo->heads * geo->sectors < nsect) geo 134 drivers/block/sunvdc.c geo->cylinders = 0xffff; geo 713 drivers/block/swim.c static int floppy_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 723 drivers/block/swim.c geo->heads = g->head; geo 724 drivers/block/swim.c geo->sectors = g->sect; geo 725 drivers/block/swim.c geo->cylinders = g->track; geo 404 drivers/block/sx8.c static int carm_bdev_getgeo(struct block_device *bdev, struct hd_geometry *geo); geo 430 drivers/block/sx8.c static int carm_bdev_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 434 drivers/block/sx8.c geo->heads = (u8) port->dev_geom_head; geo 435 drivers/block/sx8.c geo->sectors = (u8) port->dev_geom_sect; geo 436 drivers/block/sx8.c geo->cylinders = port->dev_geom_cyl; geo 763 drivers/block/umem.c static int mm_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 773 drivers/block/umem.c geo->heads = 64; geo 774 drivers/block/umem.c geo->sectors = 32; geo 775 drivers/block/umem.c geo->cylinders = size / (geo->heads * geo->sectors); geo 445 drivers/block/virtio_blk.c static int virtblk_getgeo(struct block_device *bd, struct hd_geometry *geo) geo 460 drivers/block/virtio_blk.c geometry.cylinders, &geo->cylinders); geo 462 drivers/block/virtio_blk.c geometry.heads, &geo->heads); geo 464 drivers/block/virtio_blk.c geometry.sectors, &geo->sectors); geo 467 drivers/block/virtio_blk.c geo->heads = 1 << 6; geo 468 drivers/block/virtio_blk.c geo->sectors = 1 << 5; geo 469 drivers/block/virtio_blk.c geo->cylinders = get_capacity(bd->bd_disk) >> 11; geo 950 drivers/block/xsysace.c static int ace_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 957 drivers/block/xsysace.c geo->heads = cf_id[ATA_ID_HEADS]; geo 958 drivers/block/xsysace.c geo->sectors = cf_id[ATA_ID_SECTORS]; geo 959 drivers/block/xsysace.c geo->cylinders = cf_id[ATA_ID_CYLS]; geo 276 drivers/ide/ide-gd.c static int ide_gd_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 281 drivers/ide/ide-gd.c geo->heads = drive->bios_head; geo 282 drivers/ide/ide-gd.c geo->sectors = drive->bios_sect; geo 283 drivers/ide/ide-gd.c geo->cylinders = (u16)drive->bios_cyl; /* truncate */ geo 115 drivers/lightnvm/core.c int lunid = (ch * dev->geo.num_lun) + lun; geo 142 drivers/lightnvm/core.c int num_ch = num_lun / dev->geo.num_lun; geo 143 drivers/lightnvm/core.c int num_ch_mod = num_lun % dev->geo.num_lun; geo 144 drivers/lightnvm/core.c int bch = lun_begin / dev->geo.num_lun; geo 145 drivers/lightnvm/core.c int blun = lun_begin % dev->geo.num_lun; geo 165 drivers/lightnvm/core.c prev_num_lun = (luns_left > dev->geo.num_lun) ? geo 166 drivers/lightnvm/core.c dev->geo.num_lun : luns_left; geo 172 drivers/lightnvm/core.c int luns_in_chnl = (luns_left > dev->geo.num_lun) ? geo 173 drivers/lightnvm/core.c dev->geo.num_lun : luns_left; geo 208 drivers/lightnvm/core.c memcpy(&tgt_dev->geo, &dev->geo, sizeof(struct nvm_geo)); geo 211 drivers/lightnvm/core.c tgt_dev->geo.num_ch = num_ch; geo 212 drivers/lightnvm/core.c tgt_dev->geo.num_lun = (lun_balanced) ? prev_num_lun : -1; geo 213 drivers/lightnvm/core.c tgt_dev->geo.all_luns = num_lun; geo 214 drivers/lightnvm/core.c tgt_dev->geo.all_chunks = num_lun * dev->geo.num_chk; geo 216 drivers/lightnvm/core.c tgt_dev->geo.op = op; geo 218 drivers/lightnvm/core.c sec_per_lun = dev->geo.clba * dev->geo.num_chk; geo 219 drivers/lightnvm/core.c tgt_dev->geo.total_secs = num_lun * sec_per_lun; geo 265 drivers/lightnvm/core.c static int nvm_config_check_luns(struct nvm_geo *geo, int lun_begin, geo 268 drivers/lightnvm/core.c if (lun_begin > lun_end || lun_end >= geo->all_luns) { geo 270 drivers/lightnvm/core.c lun_begin, lun_end, geo->all_luns - 1); geo 280 drivers/lightnvm/core.c struct nvm_geo *geo = &dev->geo; geo 284 drivers/lightnvm/core.c s->lun_end = geo->all_luns - 1; geo 287 drivers/lightnvm/core.c return nvm_config_check_luns(geo, s->lun_begin, s->lun_end); geo 295 drivers/lightnvm/core.c e->lun_end = dev->geo.all_luns - 1; geo 306 drivers/lightnvm/core.c return nvm_config_check_luns(&dev->geo, e->lun_begin, e->lun_end); geo 349 drivers/lightnvm/core.c if ((tt->flags & NVM_TGT_F_HOST_L2P) != (dev->geo.dom & NVM_RSP_L2P)) { geo 406 drivers/lightnvm/core.c mdts = (dev->geo.csecs >> 9) * NVM_MAX_VLBA; geo 407 drivers/lightnvm/core.c if (dev->geo.mdts) { geo 408 drivers/lightnvm/core.c mdts = min_t(u32, dev->geo.mdts, geo 409 drivers/lightnvm/core.c (dev->geo.csecs >> 9) * NVM_MAX_VLBA); geo 519 drivers/lightnvm/core.c rmap->chnls = kcalloc(dev->geo.num_ch, sizeof(struct nvm_ch_map), geo 524 drivers/lightnvm/core.c for (i = 0; i < dev->geo.num_ch; i++) { geo 527 drivers/lightnvm/core.c int luns_in_chnl = dev->geo.num_lun; geo 561 drivers/lightnvm/core.c for (i = 0; i < dev->geo.num_ch; i++) geo 680 drivers/lightnvm/core.c struct nvm_geo *geo = &tgt_dev->geo; geo 684 drivers/lightnvm/core.c if (geo->pln_mode == NVM_PLANE_SINGLE && nr_ppas == 1) { geo 698 drivers/lightnvm/core.c plane_cnt = geo->pln_mode; geo 721 drivers/lightnvm/core.c static int nvm_set_flags(struct nvm_geo *geo, struct nvm_rq *rqd) geo 725 drivers/lightnvm/core.c if (geo->version == NVM_OCSSD_SPEC_20) geo 729 drivers/lightnvm/core.c flags |= geo->pln_mode >> 1; geo 750 drivers/lightnvm/core.c rqd->flags = nvm_set_flags(&tgt_dev->geo, rqd); geo 797 drivers/lightnvm/core.c rqd->flags = nvm_set_flags(&tgt_dev->geo, rqd); geo 824 drivers/lightnvm/core.c rqd->flags = nvm_set_flags(&dev->geo, rqd); geo 868 drivers/lightnvm/core.c struct nvm_geo *geo = &dev->geo; geo 897 drivers/lightnvm/core.c ppa.g.pg = geo->num_pg - 1; geo 898 drivers/lightnvm/core.c ppa.g.pl = geo->num_pln - 1; geo 905 drivers/lightnvm/core.c meta->wp = geo->clba; geo 926 drivers/lightnvm/core.c for (pg = 0; pg < geo->num_pg; pg++) { geo 927 drivers/lightnvm/core.c for (pl = 0; pl < geo->num_pln; pl++) { geo 935 drivers/lightnvm/core.c meta->wp += geo->ws_min; geo 943 drivers/lightnvm/core.c meta->wp += geo->ws_min; geo 965 drivers/lightnvm/core.c struct nvm_geo *geo = &dev->geo; geo 968 drivers/lightnvm/core.c for (blk = 0; blk < geo->num_chk; blk++) { geo 969 drivers/lightnvm/core.c offset = blk * geo->pln_mode; geo 972 drivers/lightnvm/core.c for (pl = 0; pl < geo->pln_mode; pl++) { geo 986 drivers/lightnvm/core.c meta->cnlb = dev->geo.clba; geo 1005 drivers/lightnvm/core.c struct nvm_geo *geo = &dev->geo; geo 1017 drivers/lightnvm/core.c if ((nchks % geo->num_chk) != 0) geo 1020 drivers/lightnvm/core.c nr_blks = geo->num_chk * geo->pln_mode; geo 1026 drivers/lightnvm/core.c for (ch = ppa.g.ch; ch < geo->num_ch; ch++) { geo 1027 drivers/lightnvm/core.c for (lun = ppa.g.lun; lun < geo->num_lun; lun++) { geo 1047 drivers/lightnvm/core.c meta += geo->num_chk; geo 1048 drivers/lightnvm/core.c nchks -= geo->num_chk; geo 1063 drivers/lightnvm/core.c if (dev->geo.version == NVM_OCSSD_SPEC_12) geo 1077 drivers/lightnvm/core.c if (dev->geo.version == NVM_OCSSD_SPEC_20) geo 1101 drivers/lightnvm/core.c struct nvm_geo *geo = &dev->geo; geo 1104 drivers/lightnvm/core.c dev->lun_map = kcalloc(BITS_TO_LONGS(geo->all_luns), geo 1140 drivers/lightnvm/core.c struct nvm_geo *geo = &dev->geo; geo 1148 drivers/lightnvm/core.c pr_debug("ver:%u.%u nvm_vendor:%x\n", geo->major_ver_id, geo 1149 drivers/lightnvm/core.c geo->minor_ver_id, geo->vmnt); geo 1158 drivers/lightnvm/core.c dev->name, dev->geo.ws_min, dev->geo.ws_opt, geo 1159 drivers/lightnvm/core.c dev->geo.num_chk, dev->geo.all_luns, geo 1160 drivers/lightnvm/core.c dev->geo.num_ch); geo 1195 drivers/lightnvm/core.c (NVM_MAX_VLBA * (sizeof(u64) + dev->geo.sos))); geo 40 drivers/lightnvm/pblk-core.c pos = pblk_ppa_to_pos(&dev->geo, *ppa); geo 54 drivers/lightnvm/pblk-core.c struct nvm_geo *geo = &dev->geo; geo 56 drivers/lightnvm/pblk-core.c int pos = pblk_ppa_to_pos(geo, ppa_addr); geo 67 drivers/lightnvm/pblk-core.c if (geo->version == NVM_OCSSD_SPEC_20) geo 82 drivers/lightnvm/pblk-core.c struct nvm_geo *geo = &dev->geo; geo 88 drivers/lightnvm/pblk-core.c pos = pblk_ppa_to_pos(geo, rqd->ppa_addr); geo 129 drivers/lightnvm/pblk-core.c struct nvm_geo *geo = &dev->geo; geo 137 drivers/lightnvm/pblk-core.c len = geo->all_chunks * sizeof(*meta); geo 142 drivers/lightnvm/pblk-core.c ret = nvm_get_chunk_meta(dev, ppa, geo->all_chunks, meta); geo 156 drivers/lightnvm/pblk-core.c struct nvm_geo *geo = &dev->geo; geo 157 drivers/lightnvm/pblk-core.c int ch_off = ppa.m.grp * geo->num_chk * geo->num_lun; geo 158 drivers/lightnvm/pblk-core.c int lun_off = ppa.m.pu * geo->num_chk; geo 665 drivers/lightnvm/pblk-core.c struct nvm_geo *geo = &dev->geo; geo 674 drivers/lightnvm/pblk-core.c return bit * geo->ws_opt; geo 768 drivers/lightnvm/pblk-core.c struct nvm_geo *geo = &dev->geo; geo 794 drivers/lightnvm/pblk-core.c rq_len = rq_ppas * geo->csecs; geo 806 drivers/lightnvm/pblk-core.c int pos = pblk_ppa_to_pos(geo, ppa); geo 819 drivers/lightnvm/pblk-core.c pos = pblk_ppa_to_pos(geo, ppa); geo 955 drivers/lightnvm/pblk-core.c struct nvm_geo *geo = &dev->geo; geo 999 drivers/lightnvm/pblk-core.c smeta_buf->window_wr_lun = cpu_to_le32(geo->all_luns); geo 1063 drivers/lightnvm/pblk-core.c struct nvm_geo *geo = &dev->geo; geo 1075 drivers/lightnvm/pblk-core.c off = bit * geo->ws_opt; geo 1080 drivers/lightnvm/pblk-core.c line->sec_in_line -= geo->clba; geo 1085 drivers/lightnvm/pblk-core.c off = bit * geo->ws_opt; geo 1103 drivers/lightnvm/pblk-core.c off -= geo->ws_opt; geo 1105 drivers/lightnvm/pblk-core.c bitmap_set(line->invalid_bitmap, off, geo->ws_opt); geo 1106 drivers/lightnvm/pblk-core.c emeta_secs -= geo->ws_opt; geo 1137 drivers/lightnvm/pblk-core.c struct nvm_geo *geo = &dev->geo; geo 1143 drivers/lightnvm/pblk-core.c int pos = pblk_ppa_to_pos(geo, rlun->bppa); geo 1148 drivers/lightnvm/pblk-core.c set_bit(pblk_ppa_to_pos(geo, rlun->bppa), geo 1710 drivers/lightnvm/pblk-core.c struct nvm_geo *geo = &dev->geo; geo 1714 drivers/lightnvm/pblk-core.c pblk_ppa_to_pos(geo, ppa)); geo 1745 drivers/lightnvm/pblk-core.c struct nvm_geo *geo = &dev->geo; geo 1774 drivers/lightnvm/pblk-core.c int pos = pblk_ppa_to_pos(geo, rlun->bppa); geo 1900 drivers/lightnvm/pblk-core.c struct nvm_geo *geo = &dev->geo; geo 1901 drivers/lightnvm/pblk-core.c int pos = pblk_ppa_to_pos(geo, ppa); geo 1910 drivers/lightnvm/pblk-core.c struct nvm_geo *geo = &dev->geo; geo 1911 drivers/lightnvm/pblk-core.c int pos = pblk_ppa_to_pos(geo, ppa); geo 1925 drivers/lightnvm/pblk-core.c struct nvm_geo *geo = &dev->geo; geo 1927 drivers/lightnvm/pblk-core.c int pos = pblk_ppa_to_pos(geo, ppa); geo 1936 drivers/lightnvm/pblk-core.c struct nvm_geo *geo = &dev->geo; geo 1938 drivers/lightnvm/pblk-core.c int num_lun = geo->all_luns; geo 184 drivers/lightnvm/pblk-gc.c struct nvm_geo *geo = &dev->geo; geo 243 drivers/lightnvm/pblk-gc.c gc_rq->data = vmalloc(array_size(gc_rq->nr_secs, geo->csecs)); geo 180 drivers/lightnvm/pblk-init.c struct nvm_geo *geo = &dev->geo; geo 184 drivers/lightnvm/pblk-init.c threshold = geo->mw_cunits * geo->all_luns; geo 185 drivers/lightnvm/pblk-init.c pgs_in_buffer = (max(geo->mw_cunits, geo->ws_opt) + geo->ws_opt) geo 186 drivers/lightnvm/pblk-init.c * geo->all_luns; geo 193 drivers/lightnvm/pblk-init.c return pblk_rb_init(&pblk->rwb, buffer_size, threshold, geo->csecs); geo 196 drivers/lightnvm/pblk-init.c static int pblk_set_addrf_12(struct pblk *pblk, struct nvm_geo *geo, geo 199 drivers/lightnvm/pblk-init.c struct nvm_addrf_12 *src = (struct nvm_addrf_12 *)&geo->addrf; geo 203 drivers/lightnvm/pblk-init.c power_len = get_count_order(geo->num_ch); geo 204 drivers/lightnvm/pblk-init.c if (1 << power_len != geo->num_ch) { geo 210 drivers/lightnvm/pblk-init.c power_len = get_count_order(geo->num_lun); geo 211 drivers/lightnvm/pblk-init.c if (1 << power_len != geo->num_lun) { geo 239 drivers/lightnvm/pblk-init.c static int pblk_set_addrf_20(struct nvm_geo *geo, struct nvm_addrf *adst, geo 242 drivers/lightnvm/pblk-init.c struct nvm_addrf *src = &geo->addrf; geo 244 drivers/lightnvm/pblk-init.c adst->ch_len = get_count_order(geo->num_ch); geo 245 drivers/lightnvm/pblk-init.c adst->lun_len = get_count_order(geo->num_lun); geo 259 drivers/lightnvm/pblk-init.c udst->sec_stripe = geo->ws_opt; geo 260 drivers/lightnvm/pblk-init.c udst->ch_stripe = geo->num_ch; geo 261 drivers/lightnvm/pblk-init.c udst->lun_stripe = geo->num_lun; geo 272 drivers/lightnvm/pblk-init.c struct nvm_geo *geo = &dev->geo; geo 275 drivers/lightnvm/pblk-init.c switch (geo->version) { geo 277 drivers/lightnvm/pblk-init.c div_u64_rem(geo->clba, pblk->min_write_pgs, &mod); geo 283 drivers/lightnvm/pblk-init.c pblk->addrf_len = pblk_set_addrf_12(pblk, geo, geo 287 drivers/lightnvm/pblk-init.c pblk->addrf_len = pblk_set_addrf_20(geo, (void *)&pblk->addrf, geo 292 drivers/lightnvm/pblk-init.c geo->version); geo 374 drivers/lightnvm/pblk-init.c struct nvm_geo *geo = &dev->geo; geo 387 drivers/lightnvm/pblk-init.c pblk->min_write_pgs = geo->ws_opt; geo 389 drivers/lightnvm/pblk-init.c max_write_ppas = pblk->min_write_pgs * geo->all_luns; geo 392 drivers/lightnvm/pblk-init.c queue_max_hw_sectors(dev->q) / (geo->csecs >> SECTOR_SHIFT)); geo 395 drivers/lightnvm/pblk-init.c pblk->oob_meta_size = geo->sos; geo 445 drivers/lightnvm/pblk-init.c ret = mempool_init_slab_pool(&pblk->rec_pool, geo->all_luns, geo 450 drivers/lightnvm/pblk-init.c ret = mempool_init_slab_pool(&pblk->r_rq_pool, geo->all_luns, geo 455 drivers/lightnvm/pblk-init.c ret = mempool_init_slab_pool(&pblk->e_rq_pool, geo->all_luns, geo 460 drivers/lightnvm/pblk-init.c ret = mempool_init_slab_pool(&pblk->w_rq_pool, geo->all_luns, geo 589 drivers/lightnvm/pblk-init.c struct nvm_geo *geo = &dev->geo; geo 594 drivers/lightnvm/pblk-init.c if (geo->num_lun < 0) { geo 599 drivers/lightnvm/pblk-init.c pblk->luns = kcalloc(geo->all_luns, sizeof(struct pblk_lun), geo 604 drivers/lightnvm/pblk-init.c for (i = 0; i < geo->all_luns; i++) { geo 606 drivers/lightnvm/pblk-init.c int ch = i % geo->num_ch; geo 607 drivers/lightnvm/pblk-init.c int lun_raw = i / geo->num_ch; geo 608 drivers/lightnvm/pblk-init.c int lunid = lun_raw + ch * geo->num_lun; geo 625 drivers/lightnvm/pblk-init.c struct nvm_geo *geo = &dev->geo; geo 630 drivers/lightnvm/pblk-init.c sizeof(struct wa_counters), geo->csecs); geo 631 drivers/lightnvm/pblk-init.c lm->emeta_len[1] = lm->emeta_sec[1] * geo->csecs; geo 636 drivers/lightnvm/pblk-init.c geo->csecs); geo 637 drivers/lightnvm/pblk-init.c lm->emeta_len[2] = lm->emeta_sec[2] * geo->csecs; geo 640 drivers/lightnvm/pblk-init.c geo->csecs); geo 641 drivers/lightnvm/pblk-init.c lm->emeta_len[3] = lm->emeta_sec[3] * geo->csecs; geo 653 drivers/lightnvm/pblk-init.c struct nvm_geo *geo = &dev->geo; geo 658 drivers/lightnvm/pblk-init.c if (geo->op == NVM_TARGET_DEFAULT_OP) geo 661 drivers/lightnvm/pblk-init.c pblk->op = geo->op; geo 669 drivers/lightnvm/pblk-init.c if (geo->op != NVM_TARGET_DEFAULT_OP) { geo 693 drivers/lightnvm/pblk-init.c blk_meta = DIV_ROUND_UP(sec_meta, geo->clba); geo 695 drivers/lightnvm/pblk-init.c clba = (geo->clba / pblk->min_write_pgs) * pblk->min_write_pgs_data; geo 708 drivers/lightnvm/pblk-init.c struct nvm_geo *geo = &dev->geo; geo 720 drivers/lightnvm/pblk-init.c pos = pblk_ppa_to_pos(geo, ppa); geo 819 drivers/lightnvm/pblk-init.c struct nvm_geo *geo = &dev->geo; geo 824 drivers/lightnvm/pblk-init.c l_mg->nr_lines = geo->num_chk; geo 906 drivers/lightnvm/pblk-init.c bb_distance = (geo->all_luns) * geo->ws_opt; geo 908 drivers/lightnvm/pblk-init.c bitmap_set(l_mg->bb_template, i, geo->ws_opt); geo 936 drivers/lightnvm/pblk-init.c struct nvm_geo *geo = &dev->geo; geo 941 drivers/lightnvm/pblk-init.c lm->sec_per_line = geo->clba * geo->all_luns; geo 942 drivers/lightnvm/pblk-init.c lm->blk_per_line = geo->all_luns; geo 943 drivers/lightnvm/pblk-init.c lm->blk_bitmap_len = BITS_TO_LONGS(geo->all_luns) * sizeof(long); geo 945 drivers/lightnvm/pblk-init.c lm->lun_bitmap_len = BITS_TO_LONGS(geo->all_luns) * sizeof(long); geo 948 drivers/lightnvm/pblk-init.c lm->meta_distance = (geo->all_luns / 2) * pblk->min_write_pgs; geo 955 drivers/lightnvm/pblk-init.c lm->smeta_sec = i * geo->ws_opt; geo 956 drivers/lightnvm/pblk-init.c lm->smeta_len = lm->smeta_sec * geo->csecs; geo 969 drivers/lightnvm/pblk-init.c lm->emeta_sec[0] = i * geo->ws_opt; geo 970 drivers/lightnvm/pblk-init.c lm->emeta_len[0] = lm->emeta_sec[0] * geo->csecs; geo 978 drivers/lightnvm/pblk-init.c lm->emeta_bb = geo->all_luns > i ? geo->all_luns - i : 0; geo 981 drivers/lightnvm/pblk-init.c if (geo->all_luns > 1) geo 983 drivers/lightnvm/pblk-init.c lm->emeta_sec[0], geo->clba); geo 1147 drivers/lightnvm/pblk-init.c struct nvm_geo *geo = &dev->geo; geo 1163 drivers/lightnvm/pblk-init.c if (!(geo->version == NVM_OCSSD_SPEC_12 || geo 1164 drivers/lightnvm/pblk-init.c geo->version == NVM_OCSSD_SPEC_20)) { geo 1166 drivers/lightnvm/pblk-init.c geo->version); geo 1171 drivers/lightnvm/pblk-init.c if (geo->ext) { geo 1247 drivers/lightnvm/pblk-init.c tqueue->limits.discard_granularity = geo->clba * geo->csecs; geo 1253 drivers/lightnvm/pblk-init.c geo->all_luns, pblk->l_mg.nr_lines, geo 127 drivers/lightnvm/pblk-map.c struct nvm_geo *geo = &dev->geo; geo 148 drivers/lightnvm/pblk-map.c erase_lun = pblk_ppa_to_pos(geo, ppa_list[i]); geo 41 drivers/lightnvm/pblk-recovery.c struct nvm_geo *geo = &dev->geo; geo 63 drivers/lightnvm/pblk-recovery.c pos = pblk_ppa_to_pos(geo, ppa); geo 177 drivers/lightnvm/pblk-recovery.c struct nvm_geo *geo = &dev->geo; geo 197 drivers/lightnvm/pblk-recovery.c data = vzalloc(array_size(pblk->max_write_pgs, geo->csecs)); geo 238 drivers/lightnvm/pblk-recovery.c pos = pblk_ppa_to_pos(geo, ppa); geo 243 drivers/lightnvm/pblk-recovery.c pos = pblk_ppa_to_pos(geo, ppa); geo 294 drivers/lightnvm/pblk-recovery.c struct nvm_geo *geo = &dev->geo; geo 295 drivers/lightnvm/pblk-recovery.c int distance = geo->mw_cunits * geo->all_luns * geo->ws_opt; geo 306 drivers/lightnvm/pblk-recovery.c struct nvm_geo *geo = &dev->geo; geo 313 drivers/lightnvm/pblk-recovery.c pos = pblk_ppa_to_pos(geo, ppa); geo 359 drivers/lightnvm/pblk-recovery.c struct nvm_geo *geo = &dev->geo; geo 410 drivers/lightnvm/pblk-recovery.c pos = pblk_ppa_to_pos(geo, ppa); geo 415 drivers/lightnvm/pblk-recovery.c pos = pblk_ppa_to_pos(geo, ppa); geo 480 drivers/lightnvm/pblk-recovery.c struct nvm_geo *geo = &dev->geo; geo 496 drivers/lightnvm/pblk-recovery.c data = kcalloc(pblk->max_write_pgs, geo->csecs, GFP_KERNEL); geo 546 drivers/lightnvm/pblk-recovery.c struct nvm_geo *geo = &dev->geo; geo 559 drivers/lightnvm/pblk-recovery.c pos = pblk_ppa_to_pos(geo, ppa); geo 616 drivers/lightnvm/pblk-recovery.c struct nvm_geo *geo = &dev->geo; geo 629 drivers/lightnvm/pblk-recovery.c chunk = &line->chks[pblk_ppa_to_pos(geo, bppa)]; geo 214 drivers/lightnvm/pblk-rl.c struct nvm_geo *geo = &dev->geo; geo 222 drivers/lightnvm/pblk-rl.c blk_meta = DIV_ROUND_UP(sec_meta, geo->clba); geo 27 drivers/lightnvm/pblk-sysfs.c struct nvm_geo *geo = &dev->geo; geo 32 drivers/lightnvm/pblk-sysfs.c for (i = 0; i < geo->all_luns; i++) { geo 116 drivers/lightnvm/pblk-sysfs.c struct nvm_geo *geo = &dev->geo; geo 119 drivers/lightnvm/pblk-sysfs.c if (geo->version == NVM_OCSSD_SPEC_12) { geo 121 drivers/lightnvm/pblk-sysfs.c struct nvm_addrf_12 *gppaf = (struct nvm_addrf_12 *)&geo->addrf; geo 143 drivers/lightnvm/pblk-sysfs.c struct nvm_addrf *gppaf = &geo->addrf; geo 167 drivers/lightnvm/pblk-sysfs.c struct nvm_geo *geo = &dev->geo; geo 283 drivers/lightnvm/pblk-sysfs.c geo->all_luns, lm->blk_per_line, lm->sec_per_line); geo 312 drivers/lightnvm/pblk-sysfs.c struct nvm_geo *geo = &dev->geo; geo 332 drivers/lightnvm/pblk-sysfs.c geo->clba); geo 370 drivers/lightnvm/pblk-write.c struct nvm_geo *geo = &dev->geo; geo 390 drivers/lightnvm/pblk-write.c rq_len = rq_ppas * geo->csecs; geo 438 drivers/lightnvm/pblk-write.c struct nvm_geo *geo = &dev->geo; geo 457 drivers/lightnvm/pblk-write.c pos_opt = pblk_ppa_to_pos(geo, ppa_opt); geo 523 drivers/lightnvm/pblk-write.c struct nvm_geo *geo = &dev->geo; geo 527 drivers/lightnvm/pblk-write.c bit = pblk_ppa_to_pos(geo, erase_ppa); geo 971 drivers/lightnvm/pblk.h static inline int pblk_ppa_to_pos(struct nvm_geo *geo, struct ppa_addr p) geo 973 drivers/lightnvm/pblk.h return p.a.lun * geo->num_ch + p.a.ch; geo 980 drivers/lightnvm/pblk.h struct nvm_geo *geo = &dev->geo; geo 983 drivers/lightnvm/pblk.h if (geo->version == NVM_OCSSD_SPEC_12) { geo 1020 drivers/lightnvm/pblk.h struct nvm_geo *geo = &dev->geo; geo 1022 drivers/lightnvm/pblk.h int pos = pblk_ppa_to_pos(geo, p); geo 1039 drivers/lightnvm/pblk.h struct nvm_geo *geo = &dev->geo; geo 1042 drivers/lightnvm/pblk.h if (geo->version == NVM_OCSSD_SPEC_12) { geo 1195 drivers/lightnvm/pblk.h struct nvm_geo *geo = &pblk->dev->geo; geo 1200 drivers/lightnvm/pblk.h } else if (geo->version == NVM_OCSSD_SPEC_12) { geo 1233 drivers/lightnvm/pblk.h struct nvm_geo *geo = &tgt_dev->geo; geo 1240 drivers/lightnvm/pblk.h if (geo->version == NVM_OCSSD_SPEC_12) { geo 1242 drivers/lightnvm/pblk.h ppa->g.ch < geo->num_ch && geo 1243 drivers/lightnvm/pblk.h ppa->g.lun < geo->num_lun && geo 1244 drivers/lightnvm/pblk.h ppa->g.pl < geo->num_pln && geo 1245 drivers/lightnvm/pblk.h ppa->g.blk < geo->num_chk && geo 1246 drivers/lightnvm/pblk.h ppa->g.pg < geo->num_pg && geo 1247 drivers/lightnvm/pblk.h ppa->g.sec < geo->ws_min) geo 1251 drivers/lightnvm/pblk.h ppa->m.grp < geo->num_ch && geo 1252 drivers/lightnvm/pblk.h ppa->m.pu < geo->num_lun && geo 1253 drivers/lightnvm/pblk.h ppa->m.chk < geo->num_chk && geo 1254 drivers/lightnvm/pblk.h ppa->m.sec < geo->clba) geo 436 drivers/md/dm.c static int dm_blk_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 440 drivers/md/dm.c return dm_get_geometry(md, geo); geo 861 drivers/md/dm.c int dm_get_geometry(struct mapped_device *md, struct hd_geometry *geo) geo 863 drivers/md/dm.c *geo = md->geometry; geo 871 drivers/md/dm.c int dm_set_geometry(struct mapped_device *md, struct hd_geometry *geo) geo 873 drivers/md/dm.c sector_t sz = (sector_t)geo->cylinders * geo->heads * geo->sectors; geo 875 drivers/md/dm.c if (geo->start > sz) { geo 880 drivers/md/dm.c md->geometry = *geo; geo 7240 drivers/md/md.c static int md_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 7244 drivers/md/md.c geo->heads = 2; geo 7245 drivers/md/md.c geo->sectors = 4; geo 7246 drivers/md/md.c geo->cylinders = mddev->array_sectors / 8; geo 561 drivers/md/raid10.c static void __raid10_find_phys(struct geom *geo, struct r10bio *r10bio) geo 571 drivers/md/raid10.c last_far_set_start = (geo->raid_disks / geo->far_set_size) - 1; geo 572 drivers/md/raid10.c last_far_set_start *= geo->far_set_size; geo 574 drivers/md/raid10.c last_far_set_size = geo->far_set_size; geo 575 drivers/md/raid10.c last_far_set_size += (geo->raid_disks % geo->far_set_size); geo 578 drivers/md/raid10.c chunk = r10bio->sector >> geo->chunk_shift; geo 579 drivers/md/raid10.c sector = r10bio->sector & geo->chunk_mask; geo 581 drivers/md/raid10.c chunk *= geo->near_copies; geo 583 drivers/md/raid10.c dev = sector_div(stripe, geo->raid_disks); geo 584 drivers/md/raid10.c if (geo->far_offset) geo 585 drivers/md/raid10.c stripe *= geo->far_copies; geo 587 drivers/md/raid10.c sector += stripe << geo->chunk_shift; geo 590 drivers/md/raid10.c for (n = 0; n < geo->near_copies; n++) { geo 598 drivers/md/raid10.c for (f = 1; f < geo->far_copies; f++) { geo 599 drivers/md/raid10.c set = d / geo->far_set_size; geo 600 drivers/md/raid10.c d += geo->near_copies; geo 602 drivers/md/raid10.c if ((geo->raid_disks % geo->far_set_size) && geo 608 drivers/md/raid10.c d %= geo->far_set_size; geo 609 drivers/md/raid10.c d += geo->far_set_size * set; geo 611 drivers/md/raid10.c s += geo->stride; geo 617 drivers/md/raid10.c if (dev >= geo->raid_disks) { geo 619 drivers/md/raid10.c sector += (geo->chunk_mask + 1); geo 626 drivers/md/raid10.c struct geom *geo = &conf->geo; geo 632 drivers/md/raid10.c geo = &conf->prev; geo 636 drivers/md/raid10.c __raid10_find_phys(geo, r10bio); geo 645 drivers/md/raid10.c struct geom *geo = &conf->geo; geo 646 drivers/md/raid10.c int far_set_start = (dev / geo->far_set_size) * geo->far_set_size; geo 647 drivers/md/raid10.c int far_set_size = geo->far_set_size; geo 650 drivers/md/raid10.c if (geo->raid_disks % geo->far_set_size) { geo 651 drivers/md/raid10.c last_far_set_start = (geo->raid_disks / geo->far_set_size) - 1; geo 652 drivers/md/raid10.c last_far_set_start *= geo->far_set_size; geo 655 drivers/md/raid10.c far_set_size = geo->far_set_size; geo 656 drivers/md/raid10.c far_set_size += (geo->raid_disks % geo->far_set_size); geo 661 drivers/md/raid10.c offset = sector & geo->chunk_mask; geo 662 drivers/md/raid10.c if (geo->far_offset) { geo 664 drivers/md/raid10.c chunk = sector >> geo->chunk_shift; geo 665 drivers/md/raid10.c fc = sector_div(chunk, geo->far_copies); geo 666 drivers/md/raid10.c dev -= fc * geo->near_copies; geo 670 drivers/md/raid10.c while (sector >= geo->stride) { geo 671 drivers/md/raid10.c sector -= geo->stride; geo 672 drivers/md/raid10.c if (dev < (geo->near_copies + far_set_start)) geo 673 drivers/md/raid10.c dev += far_set_size - geo->near_copies; geo 675 drivers/md/raid10.c dev -= geo->near_copies; geo 677 drivers/md/raid10.c chunk = sector >> geo->chunk_shift; geo 679 drivers/md/raid10.c vchunk = chunk * geo->raid_disks + dev; geo 680 drivers/md/raid10.c sector_div(vchunk, geo->near_copies); geo 681 drivers/md/raid10.c return (vchunk << geo->chunk_shift) + offset; geo 717 drivers/md/raid10.c struct geom *geo = &conf->geo; geo 814 drivers/md/raid10.c if (geo->near_copies > 1 && !pending) geo 818 drivers/md/raid10.c else if (geo->far_copies > 1) geo 862 drivers/md/raid10.c (i < conf->geo.raid_disks || i < conf->prev.raid_disks) geo 1524 drivers/md/raid10.c sector_t chunk_mask = (conf->geo.chunk_mask & conf->prev.chunk_mask); geo 1541 drivers/md/raid10.c && (conf->geo.near_copies < conf->geo.raid_disks geo 1559 drivers/md/raid10.c if (conf->geo.near_copies < conf->geo.raid_disks) geo 1561 drivers/md/raid10.c if (conf->geo.near_copies > 1) geo 1562 drivers/md/raid10.c seq_printf(seq, " %d near-copies", conf->geo.near_copies); geo 1563 drivers/md/raid10.c if (conf->geo.far_copies > 1) { geo 1564 drivers/md/raid10.c if (conf->geo.far_offset) geo 1565 drivers/md/raid10.c seq_printf(seq, " %d offset-copies", conf->geo.far_copies); geo 1567 drivers/md/raid10.c seq_printf(seq, " %d far-copies", conf->geo.far_copies); geo 1568 drivers/md/raid10.c if (conf->geo.far_set_size != conf->geo.raid_disks) geo 1569 drivers/md/raid10.c seq_printf(seq, " %d devices per set", conf->geo.far_set_size); geo 1571 drivers/md/raid10.c seq_printf(seq, " [%d/%d] [", conf->geo.raid_disks, geo 1572 drivers/md/raid10.c conf->geo.raid_disks - mddev->degraded); geo 1574 drivers/md/raid10.c for (i = 0; i < conf->geo.raid_disks; i++) { geo 1596 drivers/md/raid10.c disks = conf->geo.raid_disks; geo 1597 drivers/md/raid10.c ncopies = conf->geo.near_copies; geo 1669 drivers/md/raid10.c mdname(mddev), conf->geo.raid_disks - mddev->degraded); geo 1682 drivers/md/raid10.c pr_debug(" --- wd:%d rd:%d\n", conf->geo.raid_disks - conf->mddev->degraded, geo 1683 drivers/md/raid10.c conf->geo.raid_disks); geo 1687 drivers/md/raid10.c for (i = 0; i < conf->geo.raid_disks; i++) { geo 1718 drivers/md/raid10.c for (i = 0; i < conf->geo.raid_disks; i++) { geo 1760 drivers/md/raid10.c int last = conf->geo.raid_disks - 1; geo 1777 drivers/md/raid10.c rdev->saved_raid_disk < conf->geo.raid_disks && geo 1849 drivers/md/raid10.c number < conf->geo.raid_disks && geo 2792 drivers/md/raid10.c for (i = 0; i < conf->geo.raid_disks; i++) geo 2853 drivers/md/raid10.c chunks = conf->geo.raid_disks / conf->geo.near_copies; geo 2854 drivers/md/raid10.c if (conf->geo.raid_disks % conf->geo.near_copies == 0) geo 2913 drivers/md/raid10.c sector_t chunk_mask = conf->geo.chunk_mask; geo 2963 drivers/md/raid10.c else for (i = 0; i < conf->geo.raid_disks; i++) { geo 2978 drivers/md/raid10.c for (i = 0; i < conf->geo.raid_disks; i++) { geo 2997 drivers/md/raid10.c if (chunks_skipped >= conf->geo.raid_disks) { geo 3011 drivers/md/raid10.c if (conf->geo.near_copies < conf->geo.raid_disks && geo 3043 drivers/md/raid10.c for (i = 0 ; i < conf->geo.raid_disks; i++) { geo 3125 drivers/md/raid10.c for (j = 0; j < conf->geo.raid_disks; j++) { geo 3458 drivers/md/raid10.c for (i = 0; i < conf->geo.raid_disks; i++) { geo 3531 drivers/md/raid10.c raid_disks = min(conf->geo.raid_disks, geo 3536 drivers/md/raid10.c size = sectors >> conf->geo.chunk_shift; geo 3537 drivers/md/raid10.c sector_div(size, conf->geo.far_copies); geo 3539 drivers/md/raid10.c sector_div(size, conf->geo.near_copies); geo 3541 drivers/md/raid10.c return size << conf->geo.chunk_shift; geo 3551 drivers/md/raid10.c size = size >> conf->geo.chunk_shift; geo 3552 drivers/md/raid10.c sector_div(size, conf->geo.far_copies); geo 3553 drivers/md/raid10.c size = size * conf->geo.raid_disks; geo 3554 drivers/md/raid10.c sector_div(size, conf->geo.near_copies); geo 3562 drivers/md/raid10.c size = DIV_ROUND_UP_SECTOR_T(size, conf->geo.raid_disks); geo 3564 drivers/md/raid10.c conf->dev_sectors = size << conf->geo.chunk_shift; geo 3566 drivers/md/raid10.c if (conf->geo.far_offset) geo 3567 drivers/md/raid10.c conf->geo.stride = 1 << conf->geo.chunk_shift; geo 3569 drivers/md/raid10.c sector_div(size, conf->geo.far_copies); geo 3570 drivers/md/raid10.c conf->geo.stride = size << conf->geo.chunk_shift; geo 3575 drivers/md/raid10.c static int setup_geo(struct geom *geo, struct mddev *mddev, enum geo_type new) geo 3606 drivers/md/raid10.c geo->raid_disks = disks; geo 3607 drivers/md/raid10.c geo->near_copies = nc; geo 3608 drivers/md/raid10.c geo->far_copies = fc; geo 3609 drivers/md/raid10.c geo->far_offset = fo; geo 3612 drivers/md/raid10.c geo->far_set_size = disks; geo 3616 drivers/md/raid10.c geo->far_set_size = disks/fc; geo 3617 drivers/md/raid10.c WARN(geo->far_set_size < fc, geo 3621 drivers/md/raid10.c geo->far_set_size = fc * nc; geo 3626 drivers/md/raid10.c geo->chunk_mask = chunk - 1; geo 3627 drivers/md/raid10.c geo->chunk_shift = ffz(~chunk); geo 3635 drivers/md/raid10.c struct geom geo; geo 3638 drivers/md/raid10.c copies = setup_geo(&geo, mddev, geo_new); geo 3668 drivers/md/raid10.c conf->geo = geo; geo 3681 drivers/md/raid10.c conf->prev = conf->geo; geo 3769 drivers/md/raid10.c if (conf->geo.raid_disks % conf->geo.near_copies) geo 3770 drivers/md/raid10.c blk_queue_io_opt(mddev->queue, chunk_size * conf->geo.raid_disks); geo 3773 drivers/md/raid10.c (conf->geo.raid_disks / conf->geo.near_copies)); geo 3782 drivers/md/raid10.c if (disk_idx >= conf->geo.raid_disks && geo 3832 drivers/md/raid10.c if (conf->geo.far_copies != 1 && geo 3833 drivers/md/raid10.c conf->geo.far_offset == 0) geo 3842 drivers/md/raid10.c i < conf->geo.raid_disks geo 3877 drivers/md/raid10.c mdname(mddev), conf->geo.raid_disks - mddev->degraded, geo 3878 drivers/md/raid10.c conf->geo.raid_disks); geo 3889 drivers/md/raid10.c int stripe = conf->geo.raid_disks * geo 3896 drivers/md/raid10.c stripe /= conf->geo.near_copies; geo 3909 drivers/md/raid10.c after_length = ((1 << conf->geo.chunk_shift) * geo 3910 drivers/md/raid10.c conf->geo.far_copies); geo 3985 drivers/md/raid10.c if (conf->geo.far_copies > 1 && !conf->geo.far_offset) geo 4085 drivers/md/raid10.c struct geom geo; geo 4087 drivers/md/raid10.c if (conf->geo.far_copies != 1 && !conf->geo.far_offset) geo 4090 drivers/md/raid10.c if (setup_geo(&geo, mddev, geo_start) != conf->copies) geo 4093 drivers/md/raid10.c if (geo.far_copies > 1 && !geo.far_offset) geo 4097 drivers/md/raid10.c if (mddev->array_sectors & geo.chunk_mask) geo 4151 drivers/md/raid10.c if (conf->geo.raid_disks == conf->prev.raid_disks) geo 4155 drivers/md/raid10.c for (i = 0; i < conf->geo.raid_disks; i++) { geo 4165 drivers/md/raid10.c if (conf->geo.raid_disks <= conf->prev.raid_disks) geo 4204 drivers/md/raid10.c after_length = ((1 << conf->geo.chunk_shift) * geo 4205 drivers/md/raid10.c conf->geo.far_copies); geo 4241 drivers/md/raid10.c setup_geo(&conf->geo, mddev, geo_start); geo 4263 drivers/md/raid10.c newsize = raid10_size(mddev, 0, conf->geo.raid_disks); geo 4326 drivers/md/raid10.c mddev->raid_disks = conf->geo.raid_disks; geo 4350 drivers/md/raid10.c conf->geo = conf->prev; geo 4351 drivers/md/raid10.c mddev->raid_disks = conf->geo.raid_disks; geo 4368 drivers/md/raid10.c static sector_t last_dev_address(sector_t s, struct geom *geo) geo 4370 drivers/md/raid10.c s = (s | geo->chunk_mask) + 1; geo 4371 drivers/md/raid10.c s >>= geo->chunk_shift; geo 4372 drivers/md/raid10.c s *= geo->near_copies; geo 4373 drivers/md/raid10.c s = DIV_ROUND_UP_SECTOR_T(s, geo->raid_disks); geo 4374 drivers/md/raid10.c s *= geo->far_copies; geo 4375 drivers/md/raid10.c s <<= geo->chunk_shift; geo 4383 drivers/md/raid10.c static sector_t first_dev_address(sector_t s, struct geom *geo) geo 4385 drivers/md/raid10.c s >>= geo->chunk_shift; geo 4386 drivers/md/raid10.c s *= geo->near_copies; geo 4387 drivers/md/raid10.c sector_div(s, geo->raid_disks); geo 4388 drivers/md/raid10.c s *= geo->far_copies; geo 4389 drivers/md/raid10.c s <<= geo->chunk_shift; geo 4472 drivers/md/raid10.c &conf->geo); geo 4484 drivers/md/raid10.c sector_nr = last & ~(sector_t)(conf->geo.chunk_mask geo 4492 drivers/md/raid10.c next = last_dev_address(conf->reshape_progress, &conf->geo); geo 4506 drivers/md/raid10.c last = sector_nr | (conf->geo.chunk_mask geo 4602 drivers/md/raid10.c __raid10_find_phys(&conf->geo, r10_bio); geo 4731 drivers/md/raid10.c conf->prev = conf->geo; geo 4742 drivers/md/raid10.c int stripe = conf->geo.raid_disks * geo 4744 drivers/md/raid10.c stripe /= conf->geo.near_copies; geo 4891 drivers/md/raid10.c for (d = conf->geo.raid_disks ; geo 4892 drivers/md/raid10.c d < conf->geo.raid_disks - mddev->delta_disks; geo 4904 drivers/md/raid10.c mddev->chunk_sectors = 1 << conf->geo.chunk_shift; geo 57 drivers/md/raid10.h } prev, geo; geo 326 drivers/media/pci/bt8xx/bttv-risc.c bttv_calc_geo_old(struct bttv *btv, struct bttv_geometry *geo, geo 346 drivers/media/pci/bt8xx/bttv-risc.c geo->hscale = ((totalwidth*4096UL)/xsf-4096); geo 347 drivers/media/pci/bt8xx/bttv-risc.c geo->hdelay = tvnorm->hdelayx1; geo 348 drivers/media/pci/bt8xx/bttv-risc.c geo->hdelay = (geo->hdelay*width)/swidth; geo 349 drivers/media/pci/bt8xx/bttv-risc.c geo->hdelay &= 0x3fe; geo 351 drivers/media/pci/bt8xx/bttv-risc.c geo->vscale = (0x10000UL-sr) & 0x1fff; geo 352 drivers/media/pci/bt8xx/bttv-risc.c geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) | geo 354 drivers/media/pci/bt8xx/bttv-risc.c geo->vscale |= interleaved ? (BT848_VSCALE_INT<<8) : 0; geo 355 drivers/media/pci/bt8xx/bttv-risc.c geo->vdelay = vdelay; geo 356 drivers/media/pci/bt8xx/bttv-risc.c geo->width = width; geo 357 drivers/media/pci/bt8xx/bttv-risc.c geo->sheight = tvnorm->sheight; geo 358 drivers/media/pci/bt8xx/bttv-risc.c geo->vtotal = tvnorm->vtotal; geo 361 drivers/media/pci/bt8xx/bttv-risc.c geo->vtc = (width < 193) ? 2 : ((width < 385) ? 1 : 0); geo 362 drivers/media/pci/bt8xx/bttv-risc.c geo->comb = (width < 769) ? 1 : 0; geo 364 drivers/media/pci/bt8xx/bttv-risc.c geo->vtc = 0; geo 365 drivers/media/pci/bt8xx/bttv-risc.c geo->comb = 0; geo 371 drivers/media/pci/bt8xx/bttv-risc.c struct bttv_geometry * geo, geo 388 drivers/media/pci/bt8xx/bttv-risc.c bttv_calc_geo_old(btv, geo, width, height, geo 398 drivers/media/pci/bt8xx/bttv-risc.c geo->width = width; geo 399 drivers/media/pci/bt8xx/bttv-risc.c geo->hscale = (c_width * 4096U + (width >> 1)) / width - 4096; geo 401 drivers/media/pci/bt8xx/bttv-risc.c geo->hdelay = ((crop->left * width + c_width) / c_width) & ~1; geo 403 drivers/media/pci/bt8xx/bttv-risc.c geo->sheight = c_height; geo 404 drivers/media/pci/bt8xx/bttv-risc.c geo->vdelay = crop->top - tvnorm->cropcap.bounds.top + MIN_VDELAY; geo 407 drivers/media/pci/bt8xx/bttv-risc.c geo->vscale = (0x10000UL - sr) & 0x1fff; geo 408 drivers/media/pci/bt8xx/bttv-risc.c geo->vscale |= both_fields ? (BT848_VSCALE_INT << 8) : 0; geo 409 drivers/media/pci/bt8xx/bttv-risc.c geo->vtotal = tvnorm->vtotal; geo 411 drivers/media/pci/bt8xx/bttv-risc.c geo->crop = (((geo->width >> 8) & 0x03) | geo 412 drivers/media/pci/bt8xx/bttv-risc.c ((geo->hdelay >> 6) & 0x0c) | geo 413 drivers/media/pci/bt8xx/bttv-risc.c ((geo->sheight >> 4) & 0x30) | geo 414 drivers/media/pci/bt8xx/bttv-risc.c ((geo->vdelay >> 2) & 0xc0)); geo 417 drivers/media/pci/bt8xx/bttv-risc.c geo->vtc = (width < 193) ? 2 : ((width < 385) ? 1 : 0); geo 418 drivers/media/pci/bt8xx/bttv-risc.c geo->comb = (width < 769) ? 1 : 0; geo 420 drivers/media/pci/bt8xx/bttv-risc.c geo->vtc = 0; geo 421 drivers/media/pci/bt8xx/bttv-risc.c geo->comb = 0; geo 426 drivers/media/pci/bt8xx/bttv-risc.c bttv_apply_geo(struct bttv *btv, struct bttv_geometry *geo, int odd) geo 430 drivers/media/pci/bt8xx/bttv-risc.c if (geo->comb) geo 435 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->vtc, BT848_E_VTC+off); geo 436 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->hscale >> 8, BT848_E_HSCALE_HI+off); geo 437 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->hscale & 0xff, BT848_E_HSCALE_LO+off); geo 438 drivers/media/pci/bt8xx/bttv-risc.c btaor((geo->vscale>>8), 0xe0, BT848_E_VSCALE_HI+off); geo 439 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->vscale & 0xff, BT848_E_VSCALE_LO+off); geo 440 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->width & 0xff, BT848_E_HACTIVE_LO+off); geo 441 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->hdelay & 0xff, BT848_E_HDELAY_LO+off); geo 442 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->sheight & 0xff, BT848_E_VACTIVE_LO+off); geo 443 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->vdelay & 0xff, BT848_E_VDELAY_LO+off); geo 444 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->crop, BT848_E_CROP+off); geo 445 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->vtotal>>8, BT848_VTOTAL_HI); geo 446 drivers/media/pci/bt8xx/bttv-risc.c btwrite(geo->vtotal & 0xff, BT848_VTOTAL_LO); geo 608 drivers/media/pci/bt8xx/bttv-risc.c if (vbi->geo.vdelay > vdelay) { geo 609 drivers/media/pci/bt8xx/bttv-risc.c vdelay = vbi->geo.vdelay & 0xfe; geo 610 drivers/media/pci/bt8xx/bttv-risc.c crop = (crop & 0x3f) | ((vbi->geo.vdelay >> 2) & 0xc0); geo 654 drivers/media/pci/bt8xx/bttv-risc.c bttv_apply_geo(btv, &set->top->geo, 1); geo 655 drivers/media/pci/bt8xx/bttv-risc.c bttv_apply_geo(btv, &set->bottom->geo,0); geo 668 drivers/media/pci/bt8xx/bttv-risc.c bttv_apply_geo(btv, &set->top->geo,1); geo 669 drivers/media/pci/bt8xx/bttv-risc.c bttv_apply_geo(btv, &set->top->geo,0); geo 679 drivers/media/pci/bt8xx/bttv-risc.c bttv_apply_geo(btv, &set->bottom->geo,1); geo 680 drivers/media/pci/bt8xx/bttv-risc.c bttv_apply_geo(btv, &set->bottom->geo,0); geo 711 drivers/media/pci/bt8xx/bttv-risc.c bttv_calc_geo(btv,&buf->geo,buf->vb.width,buf->vb.height, geo 765 drivers/media/pci/bt8xx/bttv-risc.c bttv_calc_geo(btv,&buf->geo,buf->vb.width, geo 774 drivers/media/pci/bt8xx/bttv-risc.c bttv_calc_geo(btv,&buf->geo,buf->vb.width, geo 783 drivers/media/pci/bt8xx/bttv-risc.c bttv_calc_geo(btv,&buf->geo,buf->vb.width, geo 806 drivers/media/pci/bt8xx/bttv-risc.c bttv_calc_geo(btv,&buf->geo,buf->vb.width, geo 838 drivers/media/pci/bt8xx/bttv-risc.c bttv_calc_geo(btv,&buf->geo,tvnorm->swidth,tvnorm->sheight, geo 868 drivers/media/pci/bt8xx/bttv-risc.c bttv_calc_geo(btv,&buf->geo,ov->w.width,ov->w.height, geo 184 drivers/media/pci/bt8xx/bttv-vbi.c buf->geo.vdelay = min_vdelay; geo 153 drivers/media/pci/bt8xx/bttvp.h struct bttv_geometry geo; geo 506 drivers/media/platform/sh_vou.c static void vou_adjust_input(struct sh_vou_geometry *geo, v4l2_std_id std) geo 518 drivers/media/platform/sh_vou.c v4l_bound_align_image(&geo->in_width, geo 520 drivers/media/platform/sh_vou.c &geo->in_height, geo 526 drivers/media/platform/sh_vou.c unsigned int found = geo->output.width * vou_scale_h_den[i] / geo 533 drivers/media/platform/sh_vou.c err = abs(found - geo->in_width); geo 543 drivers/media/platform/sh_vou.c geo->in_width = best; geo 544 drivers/media/platform/sh_vou.c geo->scale_idx_h = idx; geo 551 drivers/media/platform/sh_vou.c unsigned int found = geo->output.height * vou_scale_v_den[i] / geo 558 drivers/media/platform/sh_vou.c err = abs(found - geo->in_height); geo 568 drivers/media/platform/sh_vou.c geo->in_height = best; geo 569 drivers/media/platform/sh_vou.c geo->scale_idx_v = idx; geo 576 drivers/media/platform/sh_vou.c static void vou_adjust_output(struct sh_vou_geometry *geo, v4l2_std_id std) geo 578 drivers/media/platform/sh_vou.c unsigned int best_err = UINT_MAX, best = geo->in_width, geo 595 drivers/media/platform/sh_vou.c unsigned int found = geo->in_width * vou_scale_h_num[i] / geo 602 drivers/media/platform/sh_vou.c err = abs(found - geo->output.width); geo 612 drivers/media/platform/sh_vou.c geo->output.width = best; geo 613 drivers/media/platform/sh_vou.c geo->scale_idx_h = idx_h; geo 614 drivers/media/platform/sh_vou.c if (geo->output.left + best > width_max) geo 615 drivers/media/platform/sh_vou.c geo->output.left = width_max - best; geo 617 drivers/media/platform/sh_vou.c pr_debug("%s(): W %u * %u/%u = %u\n", __func__, geo->in_width, geo 625 drivers/media/platform/sh_vou.c unsigned int found = geo->in_height * vou_scale_v_num[i] / geo 632 drivers/media/platform/sh_vou.c err = abs(found - geo->output.height); geo 642 drivers/media/platform/sh_vou.c geo->output.height = best; geo 643 drivers/media/platform/sh_vou.c geo->scale_idx_v = idx_v; geo 644 drivers/media/platform/sh_vou.c if (geo->output.top + best > height_max) geo 645 drivers/media/platform/sh_vou.c geo->output.top = height_max - best; geo 647 drivers/media/platform/sh_vou.c pr_debug("%s(): H %u * %u/%u = %u\n", __func__, geo->in_height, geo 691 drivers/media/platform/sh_vou.c struct sh_vou_geometry geo; geo 710 drivers/media/platform/sh_vou.c geo.in_width = pix->width; geo 711 drivers/media/platform/sh_vou.c geo.in_height = pix->height; geo 712 drivers/media/platform/sh_vou.c geo.output = vou_dev->rect; geo 714 drivers/media/platform/sh_vou.c vou_adjust_output(&geo, vou_dev->std); geo 716 drivers/media/platform/sh_vou.c mbfmt->width = geo.output.width; geo 717 drivers/media/platform/sh_vou.c mbfmt->height = geo.output.height; geo 725 drivers/media/platform/sh_vou.c geo.output.width, geo.output.height, mbfmt->width, mbfmt->height); geo 738 drivers/media/platform/sh_vou.c if (mbfmt->width != geo.output.width || geo 739 drivers/media/platform/sh_vou.c mbfmt->height != geo.output.height) { geo 740 drivers/media/platform/sh_vou.c geo.output.width = mbfmt->width; geo 741 drivers/media/platform/sh_vou.c geo.output.height = mbfmt->height; geo 743 drivers/media/platform/sh_vou.c vou_adjust_input(&geo, vou_dev->std); geo 747 drivers/media/platform/sh_vou.c vou_dev->rect = geo.output; geo 748 drivers/media/platform/sh_vou.c pix->width = geo.in_width; geo 749 drivers/media/platform/sh_vou.c pix->height = geo.in_height; geo 759 drivers/media/platform/sh_vou.c geo.scale_idx_h, geo.scale_idx_v); geo 933 drivers/media/platform/sh_vou.c struct sh_vou_geometry geo; geo 967 drivers/media/platform/sh_vou.c geo.output = *rect; geo 968 drivers/media/platform/sh_vou.c geo.in_width = pix->width; geo 969 drivers/media/platform/sh_vou.c geo.in_height = pix->height; geo 972 drivers/media/platform/sh_vou.c sd_sel.r.width = geo.output.width; geo 973 drivers/media/platform/sh_vou.c sd_sel.r.height = geo.output.height; geo 980 drivers/media/platform/sh_vou.c format.format.width = geo.output.width; geo 981 drivers/media/platform/sh_vou.c format.format.height = geo.output.height; geo 994 drivers/media/platform/sh_vou.c geo.output.width = format.format.width; geo 995 drivers/media/platform/sh_vou.c geo.output.height = format.format.height; geo 1001 drivers/media/platform/sh_vou.c vou_adjust_input(&geo, vou_dev->std); geo 1004 drivers/media/platform/sh_vou.c vou_dev->rect = geo.output; geo 1005 drivers/media/platform/sh_vou.c pix->width = geo.in_width; geo 1006 drivers/media/platform/sh_vou.c pix->height = geo.in_height; geo 1009 drivers/media/platform/sh_vou.c geo.scale_idx_h, geo.scale_idx_v); geo 1990 drivers/memstick/core/ms_block.c struct hd_geometry *geo) geo 1993 drivers/memstick/core/ms_block.c *geo = msb->geometry; geo 231 drivers/memstick/core/mspro_block.c struct hd_geometry *geo) geo 235 drivers/memstick/core/mspro_block.c geo->heads = msb->heads; geo 236 drivers/memstick/core/mspro_block.c geo->sectors = msb->sectors_per_track; geo 237 drivers/memstick/core/mspro_block.c geo->cylinders = msb->cylinders; geo 335 drivers/mmc/core/block.c mmc_blk_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 337 drivers/mmc/core/block.c geo->cylinders = get_capacity(bdev->bd_disk) / (4 * 16); geo 338 drivers/mmc/core/block.c geo->heads = 4; geo 339 drivers/mmc/core/block.c geo->sectors = 16; geo 942 drivers/mtd/ftl.c static int ftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) geo 950 drivers/mtd/ftl.c geo->heads = 1; geo 951 drivers/mtd/ftl.c geo->sectors = 8; geo 952 drivers/mtd/ftl.c geo->cylinders = sect >> 3; geo 916 drivers/mtd/inftlcore.c static int inftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) geo 920 drivers/mtd/inftlcore.c geo->heads = inftl->heads; geo 921 drivers/mtd/inftlcore.c geo->sectors = inftl->sectors; geo 922 drivers/mtd/inftlcore.c geo->cylinders = inftl->cylinders; geo 401 drivers/mtd/maps/pcmciamtd.c dev->pcmcia_map.bankwidth = t->geo[0].buswidth; geo 404 drivers/mtd/maps/pcmciamtd.c pr_debug("region: %d bankwidth = %u\n", i, t->geo[i].buswidth); geo 405 drivers/mtd/maps/pcmciamtd.c pr_debug("region: %d erase_block = %u\n", i, t->geo[i].erase_block); geo 406 drivers/mtd/maps/pcmciamtd.c pr_debug("region: %d read_block = %u\n", i, t->geo[i].read_block); geo 407 drivers/mtd/maps/pcmciamtd.c pr_debug("region: %d write_block = %u\n", i, t->geo[i].write_block); geo 408 drivers/mtd/maps/pcmciamtd.c pr_debug("region: %d partition = %u\n", i, t->geo[i].partition); geo 409 drivers/mtd/maps/pcmciamtd.c pr_debug("region: %d interleave = %u\n", i, t->geo[i].interleave); geo 281 drivers/mtd/mtd_blkdevs.c static int blktrans_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 294 drivers/mtd/mtd_blkdevs.c ret = dev->tr->getgeo ? dev->tr->getgeo(dev, geo) : -ENOTTY; geo 196 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c struct bch_geometry *geo = &this->bch_geometry; geo 224 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->gf_len, geo 225 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->ecc_strength, geo 226 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->page_size, geo 227 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->metadata_size, geo 228 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->ecc_chunk_size, geo 229 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->ecc_chunk_count, geo 230 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->payload_size, geo 231 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->auxiliary_size, geo 232 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->auxiliary_status_offset, geo 233 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->block_mark_byte_offset, geo 234 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->block_mark_bit_offset); geo 239 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c struct bch_geometry *geo = &this->bch_geometry; geo 244 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c if (geo->gf_len == 14) geo 247 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c return geo->ecc_strength <= this->devdata->bch_max_ecc_strength; geo 260 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c struct bch_geometry *geo = &this->bch_geometry; geo 267 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->gf_len = 13; geo 270 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->gf_len = 14; geo 279 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->ecc_chunk_size = ecc_step; geo 280 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->ecc_strength = round_up(ecc_strength, 2); geo 285 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c if (geo->ecc_chunk_size < mtd->oobsize) { geo 293 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->metadata_size = 10; geo 295 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->ecc_chunk_count = mtd->writesize / geo->ecc_chunk_size; geo 345 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->page_size = mtd->writesize + geo->metadata_size + geo 346 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c (geo->gf_len * geo->ecc_strength * geo->ecc_chunk_count) / 8; geo 348 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->payload_size = mtd->writesize; geo 350 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->auxiliary_status_offset = ALIGN(geo->metadata_size, 4); geo 351 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->auxiliary_size = ALIGN(geo->metadata_size, 4) geo 352 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c + ALIGN(geo->ecc_chunk_count, 4); geo 359 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c (geo->ecc_strength * geo->gf_len * (geo->ecc_chunk_count - 1) geo 360 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c + geo->metadata_size * 8); geo 362 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->block_mark_byte_offset = block_mark_bit_offset / 8; geo 363 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->block_mark_bit_offset = block_mark_bit_offset % 8; geo 387 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c struct bch_geometry *geo = &this->bch_geometry; geo 391 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c ecc_strength = ((mtd->oobsize - geo->metadata_size) * 8) geo 392 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c / (geo->gf_len * geo->ecc_chunk_count); geo 400 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c struct bch_geometry *geo = &this->bch_geometry; geo 411 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->metadata_size = 10; geo 414 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->gf_len = 13; geo 417 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->ecc_chunk_size = 512; geo 418 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c while (geo->ecc_chunk_size < mtd->oobsize) { geo 419 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->ecc_chunk_size *= 2; /* keep C >= O */ geo 420 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->gf_len = 14; geo 423 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->ecc_chunk_count = mtd->writesize / geo->ecc_chunk_size; geo 426 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->ecc_strength = get_ecc_strength(this); geo 431 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->ecc_strength, geo 436 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->page_size = mtd->writesize + geo->metadata_size + geo 437 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c (geo->gf_len * geo->ecc_strength * geo->ecc_chunk_count) / 8; geo 438 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->payload_size = mtd->writesize; geo 446 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c metadata_size = ALIGN(geo->metadata_size, 4); geo 447 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c status_size = ALIGN(geo->ecc_chunk_count, 4); geo 449 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->auxiliary_size = metadata_size + status_size; geo 450 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->auxiliary_status_offset = metadata_size; geo 502 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c (geo->ecc_strength * geo->gf_len * (geo->ecc_chunk_count - 1) geo 503 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c + geo->metadata_size * 8); geo 505 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->block_mark_byte_offset = block_mark_bit_offset / 8; geo 506 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->block_mark_bit_offset = block_mark_bit_offset % 8; geo 1007 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c struct bch_geometry *geo = &this->bch_geometry; geo 1013 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c oobregion->length = geo->page_size - mtd->writesize; geo 1023 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c struct bch_geometry *geo = &this->bch_geometry; geo 1029 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c if (geo->page_size < mtd->writesize + mtd->oobsize) { geo 1030 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c oobregion->offset = geo->page_size - mtd->writesize; geo 1238 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c struct bch_geometry *geo = &this->bch_geometry; geo 1241 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c dma_free_coherent(dev, geo->auxiliary_size, geo 1254 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c struct bch_geometry *geo = &this->bch_geometry; geo 1271 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c this->auxiliary_virt = dma_alloc_coherent(dev, geo->auxiliary_size, geo 1433 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c struct bch_geometry *geo = &this->bch_geometry; geo 1434 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c unsigned int ecc_strength = geo->ecc_strength >> 1; geo 1435 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c unsigned int gf_len = geo->gf_len; geo 1436 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c unsigned int block_size = geo->ecc_chunk_size; geo 1439 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c BF_BCH_FLASH0LAYOUT0_NBLOCKS(geo->ecc_chunk_count - 1) | geo 1440 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c BF_BCH_FLASH0LAYOUT0_META_SIZE(geo->metadata_size) | geo 1446 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c BF_BCH_FLASH0LAYOUT1_PAGE_SIZE(geo->page_size) | geo 1457 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c struct bch_geometry *geo = &this->bch_geometry; geo 1464 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c ret = nand_read_page_op(chip, page, 0, buf, geo->page_size); geo 1469 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->ecc_chunk_count, geo 1470 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c geo->auxiliary_status_offset); geo 1498 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c struct bch_geometry *geo = &this->bch_geometry; geo 1509 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c ecc_parity_size = geo->gf_len * geo->ecc_strength / 8; geo 1523 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c marker_pos = geo->block_mark_byte_offset / size; geo 1532 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c meta = geo->metadata_size; geo 1539 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c ecc_parity_size = geo->gf_len * geo->ecc_strength / 8; geo 1543 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c ecc_strength = geo->ecc_strength >> 1; geo 1548 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c BF_BCH_FLASH0LAYOUT0_GF(geo->gf_len, this) | geo 1549 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c BF_BCH_FLASH0LAYOUT0_DATA0_SIZE(geo->ecc_chunk_size, this); geo 1553 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c BF_BCH_FLASH0LAYOUT1_GF(geo->gf_len, this) | geo 1554 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c BF_BCH_FLASH0LAYOUT1_DATAN_SIZE(geo->ecc_chunk_size, this); geo 767 drivers/mtd/nftlcore.c static int nftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) geo 771 drivers/mtd/nftlcore.c geo->heads = nftl->heads; geo 772 drivers/mtd/nftlcore.c geo->sectors = nftl->sectors; geo 773 drivers/mtd/nftlcore.c geo->cylinders = nftl->cylinders; geo 711 drivers/mtd/rfd_ftl.c static int rfd_ftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) geo 715 drivers/mtd/rfd_ftl.c geo->heads = 1; geo 716 drivers/mtd/rfd_ftl.c geo->sectors = SECTORS_PER_TRACK; geo 717 drivers/mtd/rfd_ftl.c geo->cylinders = part->cylinders; geo 1108 drivers/mtd/sm_ftl.c static int sm_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) geo 1111 drivers/mtd/sm_ftl.c geo->heads = ftl->heads; geo 1112 drivers/mtd/sm_ftl.c geo->sectors = ftl->sectors; geo 1113 drivers/mtd/sm_ftl.c geo->cylinders = ftl->cylinders; geo 406 drivers/mtd/ssfdc.c static int ssfdcr_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) geo 413 drivers/mtd/ssfdc.c geo->heads = ssfdc->heads; geo 414 drivers/mtd/ssfdc.c geo->sectors = ssfdc->sectors; geo 415 drivers/mtd/ssfdc.c geo->cylinders = ssfdc->cylinders; geo 275 drivers/mtd/ubi/block.c static int ubiblock_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 278 drivers/mtd/ubi/block.c geo->heads = 1; geo 279 drivers/mtd/ubi/block.c geo->cylinders = 1; geo 280 drivers/mtd/ubi/block.c geo->sectors = get_capacity(bdev->bd_disk); geo 281 drivers/mtd/ubi/block.c geo->start = 0; geo 1892 drivers/net/wireless/intel/ipw2x00/ipw2100.c const struct libipw_geo *geo = libipw_get_geo(priv->ieee); geo 1899 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (geo->bg_channels) { geo 1903 drivers/net/wireless/intel/ipw2x00/ipw2100.c bg_band->n_channels = geo->bg_channels; geo 1904 drivers/net/wireless/intel/ipw2x00/ipw2100.c bg_band->channels = kcalloc(geo->bg_channels, geo 1912 drivers/net/wireless/intel/ipw2x00/ipw2100.c for (i = 0; i < geo->bg_channels; i++) { geo 1914 drivers/net/wireless/intel/ipw2x00/ipw2100.c bg_band->channels[i].center_freq = geo->bg[i].freq; geo 1915 drivers/net/wireless/intel/ipw2x00/ipw2100.c bg_band->channels[i].hw_value = geo->bg[i].channel; geo 1916 drivers/net/wireless/intel/ipw2x00/ipw2100.c bg_band->channels[i].max_power = geo->bg[i].max_power; geo 1917 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (geo->bg[i].flags & LIBIPW_CH_PASSIVE_ONLY) geo 1920 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (geo->bg[i].flags & LIBIPW_CH_NO_IBSS) geo 1923 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (geo->bg[i].flags & LIBIPW_CH_RADAR_DETECT) geo 1896 drivers/net/wireless/intel/ipw2x00/ipw2200.c const struct libipw_geo *geo = libipw_get_geo(priv->ieee); geo 1901 drivers/net/wireless/intel/ipw2x00/ipw2200.c "(802.11bg):\n", geo->bg_channels); geo 1903 drivers/net/wireless/intel/ipw2x00/ipw2200.c for (i = 0; i < geo->bg_channels; i++) { geo 1905 drivers/net/wireless/intel/ipw2x00/ipw2200.c geo->bg[i].channel, geo 1906 drivers/net/wireless/intel/ipw2x00/ipw2200.c geo->bg[i].flags & LIBIPW_CH_RADAR_DETECT ? geo 1908 drivers/net/wireless/intel/ipw2x00/ipw2200.c ((geo->bg[i].flags & LIBIPW_CH_NO_IBSS) || geo 1909 drivers/net/wireless/intel/ipw2x00/ipw2200.c (geo->bg[i].flags & LIBIPW_CH_RADAR_DETECT)) geo 1911 drivers/net/wireless/intel/ipw2x00/ipw2200.c geo->bg[i].flags & LIBIPW_CH_PASSIVE_ONLY ? geo 1913 drivers/net/wireless/intel/ipw2x00/ipw2200.c geo->bg[i].flags & LIBIPW_CH_B_ONLY ? geo 1919 drivers/net/wireless/intel/ipw2x00/ipw2200.c "(802.11a):\n", geo->a_channels); geo 1920 drivers/net/wireless/intel/ipw2x00/ipw2200.c for (i = 0; i < geo->a_channels; i++) { geo 1922 drivers/net/wireless/intel/ipw2x00/ipw2200.c geo->a[i].channel, geo 1923 drivers/net/wireless/intel/ipw2x00/ipw2200.c geo->a[i].flags & LIBIPW_CH_RADAR_DETECT ? geo 1925 drivers/net/wireless/intel/ipw2x00/ipw2200.c ((geo->a[i].flags & LIBIPW_CH_NO_IBSS) || geo 1926 drivers/net/wireless/intel/ipw2x00/ipw2200.c (geo->a[i].flags & LIBIPW_CH_RADAR_DETECT)) geo 1928 drivers/net/wireless/intel/ipw2x00/ipw2200.c geo->a[i].flags & LIBIPW_CH_PASSIVE_ONLY ? geo 2467 drivers/net/wireless/intel/ipw2x00/ipw2200.c const struct libipw_geo *geo = libipw_get_geo(priv->ieee); geo 2476 drivers/net/wireless/intel/ipw2x00/ipw2200.c tx_power.num_channels = geo->bg_channels; geo 2477 drivers/net/wireless/intel/ipw2x00/ipw2200.c for (i = 0; i < geo->bg_channels; i++) { geo 2478 drivers/net/wireless/intel/ipw2x00/ipw2200.c max_power = geo->bg[i].max_power; geo 2480 drivers/net/wireless/intel/ipw2x00/ipw2200.c geo->bg[i].channel; geo 2495 drivers/net/wireless/intel/ipw2x00/ipw2200.c tx_power.num_channels = geo->a_channels; geo 2497 drivers/net/wireless/intel/ipw2x00/ipw2200.c max_power = geo->a[i].max_power; geo 2499 drivers/net/wireless/intel/ipw2x00/ipw2200.c geo->a[i].channel; geo 5811 drivers/net/wireless/intel/ipw2x00/ipw2200.c const struct libipw_geo *geo = libipw_get_geo(priv->ieee); geo 5831 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (geo->a[i].flags & LIBIPW_CH_PASSIVE_ONLY) { geo 5833 drivers/net/wireless/intel/ipw2x00/ipw2200.c priv->channel = geo->a[0].channel; geo 5844 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (geo->bg[i].flags & LIBIPW_CH_PASSIVE_ONLY) { geo 5846 drivers/net/wireless/intel/ipw2x00/ipw2200.c priv->channel = geo->bg[0].channel; geo 5854 drivers/net/wireless/intel/ipw2x00/ipw2200.c priv->channel = geo->a[0].channel; geo 5857 drivers/net/wireless/intel/ipw2x00/ipw2200.c priv->channel = geo->bg[0].channel; geo 5860 drivers/net/wireless/intel/ipw2x00/ipw2200.c priv->channel = geo->bg[0].channel; geo 6159 drivers/net/wireless/intel/ipw2x00/ipw2200.c const struct libipw_geo *geo; geo 6162 drivers/net/wireless/intel/ipw2x00/ipw2200.c geo = libipw_get_geo(priv->ieee); geo 6166 drivers/net/wireless/intel/ipw2x00/ipw2200.c for (i = 0; i < geo->a_channels; i++) { geo 6168 drivers/net/wireless/intel/ipw2x00/ipw2200.c geo->a[i].channel == priv->channel) geo 6171 drivers/net/wireless/intel/ipw2x00/ipw2200.c scan->channels_list[channel_index] = geo->a[i].channel; geo 6173 drivers/net/wireless/intel/ipw2x00/ipw2200.c geo->a[i]. geo 6224 drivers/net/wireless/intel/ipw2x00/ipw2200.c geo->bg[index]. geo 6231 drivers/net/wireless/intel/ipw2x00/ipw2200.c for (i = 0; i < geo->bg_channels; i++) { geo 6233 drivers/net/wireless/intel/ipw2x00/ipw2200.c geo->bg[i].channel == priv->channel) geo 6237 drivers/net/wireless/intel/ipw2x00/ipw2200.c geo->bg[i].channel; geo 6239 drivers/net/wireless/intel/ipw2x00/ipw2200.c geo->bg[i]. geo 8650 drivers/net/wireless/intel/ipw2x00/ipw2200.c const struct libipw_geo *geo = libipw_get_geo(priv->ieee); geo 8680 drivers/net/wireless/intel/ipw2x00/ipw2200.c geo->bg[i].flags : geo->a[i].flags; geo 8715 drivers/net/wireless/intel/ipw2x00/ipw2200.c wrqu->freq.m = priv->ieee->geo.a[i].freq * 100000; geo 8719 drivers/net/wireless/intel/ipw2x00/ipw2200.c wrqu->freq.m = priv->ieee->geo.bg[i].freq * 100000; geo 8820 drivers/net/wireless/intel/ipw2x00/ipw2200.c const struct libipw_geo *geo = libipw_get_geo(priv->ieee); geo 8862 drivers/net/wireless/intel/ipw2x00/ipw2200.c for (j = 0; j < geo->bg_channels && i < IW_MAX_FREQUENCIES; j++) { geo 8864 drivers/net/wireless/intel/ipw2x00/ipw2200.c (geo->bg[j].flags & LIBIPW_CH_PASSIVE_ONLY)) geo 8867 drivers/net/wireless/intel/ipw2x00/ipw2200.c range->freq[i].i = geo->bg[j].channel; geo 8868 drivers/net/wireless/intel/ipw2x00/ipw2200.c range->freq[i].m = geo->bg[j].freq * 100000; geo 8875 drivers/net/wireless/intel/ipw2x00/ipw2200.c for (j = 0; j < geo->a_channels && i < IW_MAX_FREQUENCIES; j++) { geo 8877 drivers/net/wireless/intel/ipw2x00/ipw2200.c (geo->a[j].flags & LIBIPW_CH_PASSIVE_ONLY)) geo 8880 drivers/net/wireless/intel/ipw2x00/ipw2200.c range->freq[i].i = geo->a[j].channel; geo 8881 drivers/net/wireless/intel/ipw2x00/ipw2200.c range->freq[i].m = geo->a[j].freq * 100000; geo 11326 drivers/net/wireless/intel/ipw2x00/ipw2200.c const struct libipw_geo *geo = libipw_get_geo(priv->ieee); geo 11332 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (geo->bg_channels) { geo 11336 drivers/net/wireless/intel/ipw2x00/ipw2200.c bg_band->n_channels = geo->bg_channels; geo 11337 drivers/net/wireless/intel/ipw2x00/ipw2200.c bg_band->channels = kcalloc(geo->bg_channels, geo 11345 drivers/net/wireless/intel/ipw2x00/ipw2200.c for (i = 0; i < geo->bg_channels; i++) { geo 11347 drivers/net/wireless/intel/ipw2x00/ipw2200.c bg_band->channels[i].center_freq = geo->bg[i].freq; geo 11348 drivers/net/wireless/intel/ipw2x00/ipw2200.c bg_band->channels[i].hw_value = geo->bg[i].channel; geo 11349 drivers/net/wireless/intel/ipw2x00/ipw2200.c bg_band->channels[i].max_power = geo->bg[i].max_power; geo 11350 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (geo->bg[i].flags & LIBIPW_CH_PASSIVE_ONLY) geo 11353 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (geo->bg[i].flags & LIBIPW_CH_NO_IBSS) geo 11356 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (geo->bg[i].flags & LIBIPW_CH_RADAR_DETECT) geo 11371 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (geo->a_channels) { geo 11375 drivers/net/wireless/intel/ipw2x00/ipw2200.c a_band->n_channels = geo->a_channels; geo 11376 drivers/net/wireless/intel/ipw2x00/ipw2200.c a_band->channels = kcalloc(geo->a_channels, geo 11384 drivers/net/wireless/intel/ipw2x00/ipw2200.c for (i = 0; i < geo->a_channels; i++) { geo 11386 drivers/net/wireless/intel/ipw2x00/ipw2200.c a_band->channels[i].center_freq = geo->a[i].freq; geo 11387 drivers/net/wireless/intel/ipw2x00/ipw2200.c a_band->channels[i].hw_value = geo->a[i].channel; geo 11388 drivers/net/wireless/intel/ipw2x00/ipw2200.c a_band->channels[i].max_power = geo->a[i].max_power; geo 11389 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (geo->a[i].flags & LIBIPW_CH_PASSIVE_ONLY) geo 11392 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (geo->a[i].flags & LIBIPW_CH_NO_IBSS) geo 11395 drivers/net/wireless/intel/ipw2x00/ipw2200.c if (geo->a[i].flags & LIBIPW_CH_RADAR_DETECT) geo 11750 drivers/net/wireless/intel/ipw2x00/ipw2200.c priv->ieee->geo.name, priv->ieee->geo.bg_channels, geo 11751 drivers/net/wireless/intel/ipw2x00/ipw2200.c priv->ieee->geo.a_channels); geo 722 drivers/net/wireless/intel/ipw2x00/libipw.h struct libipw_geo geo; geo 967 drivers/net/wireless/intel/ipw2x00/libipw.h void libipw_set_geo(struct libipw_device *ieee, const struct libipw_geo *geo); geo 37 drivers/net/wireless/intel/ipw2x00/libipw_geo.c if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) geo 41 drivers/net/wireless/intel/ipw2x00/libipw_geo.c for (i = 0; i < ieee->geo.bg_channels; i++) geo 45 drivers/net/wireless/intel/ipw2x00/libipw_geo.c if ((ieee->geo.bg[i].channel == channel) && geo 46 drivers/net/wireless/intel/ipw2x00/libipw_geo.c !(ieee->geo.bg[i].flags & LIBIPW_CH_INVALID) && geo 48 drivers/net/wireless/intel/ipw2x00/libipw_geo.c !(ieee->geo.bg[i].flags & LIBIPW_CH_B_ONLY))) geo 52 drivers/net/wireless/intel/ipw2x00/libipw_geo.c for (i = 0; i < ieee->geo.a_channels; i++) geo 53 drivers/net/wireless/intel/ipw2x00/libipw_geo.c if ((ieee->geo.a[i].channel == channel) && geo 54 drivers/net/wireless/intel/ipw2x00/libipw_geo.c !(ieee->geo.a[i].flags & LIBIPW_CH_INVALID)) geo 66 drivers/net/wireless/intel/ipw2x00/libipw_geo.c if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) geo 70 drivers/net/wireless/intel/ipw2x00/libipw_geo.c for (i = 0; i < ieee->geo.bg_channels; i++) geo 71 drivers/net/wireless/intel/ipw2x00/libipw_geo.c if (ieee->geo.bg[i].channel == channel) geo 75 drivers/net/wireless/intel/ipw2x00/libipw_geo.c for (i = 0; i < ieee->geo.a_channels; i++) geo 76 drivers/net/wireless/intel/ipw2x00/libipw_geo.c if (ieee->geo.a[i].channel == channel) geo 88 drivers/net/wireless/intel/ipw2x00/libipw_geo.c if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) geo 103 drivers/net/wireless/intel/ipw2x00/libipw_geo.c if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) geo 109 drivers/net/wireless/intel/ipw2x00/libipw_geo.c for (i = 0; i < ieee->geo.bg_channels; i++) geo 110 drivers/net/wireless/intel/ipw2x00/libipw_geo.c if (ieee->geo.bg[i].freq == freq) geo 111 drivers/net/wireless/intel/ipw2x00/libipw_geo.c return ieee->geo.bg[i].channel; geo 114 drivers/net/wireless/intel/ipw2x00/libipw_geo.c for (i = 0; i < ieee->geo.a_channels; i++) geo 115 drivers/net/wireless/intel/ipw2x00/libipw_geo.c if (ieee->geo.a[i].freq == freq) geo 116 drivers/net/wireless/intel/ipw2x00/libipw_geo.c return ieee->geo.a[i].channel; geo 122 drivers/net/wireless/intel/ipw2x00/libipw_geo.c const struct libipw_geo *geo) geo 124 drivers/net/wireless/intel/ipw2x00/libipw_geo.c memcpy(ieee->geo.name, geo->name, 3); geo 125 drivers/net/wireless/intel/ipw2x00/libipw_geo.c ieee->geo.name[3] = '\0'; geo 126 drivers/net/wireless/intel/ipw2x00/libipw_geo.c ieee->geo.bg_channels = geo->bg_channels; geo 127 drivers/net/wireless/intel/ipw2x00/libipw_geo.c ieee->geo.a_channels = geo->a_channels; geo 128 drivers/net/wireless/intel/ipw2x00/libipw_geo.c memcpy(ieee->geo.bg, geo->bg, geo->bg_channels * geo 130 drivers/net/wireless/intel/ipw2x00/libipw_geo.c memcpy(ieee->geo.a, geo->a, ieee->geo.a_channels * geo 136 drivers/net/wireless/intel/ipw2x00/libipw_geo.c return &ieee->geo; geo 147 drivers/net/wireless/intel/ipw2x00/libipw_geo.c return ieee->geo.bg[index].flags; geo 149 drivers/net/wireless/intel/ipw2x00/libipw_geo.c return ieee->geo.a[index].flags; geo 167 drivers/net/wireless/intel/ipw2x00/libipw_geo.c return &ieee->geo.bg[index]; geo 169 drivers/net/wireless/intel/ipw2x00/libipw_geo.c return &ieee->geo.a[index]; geo 1502 drivers/nvdimm/btt.c static int btt_getgeo(struct block_device *bd, struct hd_geometry *geo) geo 1505 drivers/nvdimm/btt.c geo->heads = 1 << 6; geo 1506 drivers/nvdimm/btt.c geo->sectors = 1 << 5; geo 1507 drivers/nvdimm/btt.c geo->cylinders = get_capacity(bd->bd_disk) >> 11; geo 1635 drivers/nvme/host/core.c static int nvme_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 1638 drivers/nvme/host/core.c geo->heads = 1 << 6; geo 1639 drivers/nvme/host/core.c geo->sectors = 1 << 5; geo 1640 drivers/nvme/host/core.c geo->cylinders = get_capacity(bdev->bd_disk) >> 11; geo 286 drivers/nvme/host/lightnvm.c struct nvm_geo *geo) geo 302 drivers/nvme/host/lightnvm.c geo->major_ver_id = id->ver_id; geo 303 drivers/nvme/host/lightnvm.c geo->minor_ver_id = 2; geo 306 drivers/nvme/host/lightnvm.c geo->version = NVM_OCSSD_SPEC_12; geo 308 drivers/nvme/host/lightnvm.c geo->num_ch = src->num_ch; geo 309 drivers/nvme/host/lightnvm.c geo->num_lun = src->num_lun; geo 310 drivers/nvme/host/lightnvm.c geo->all_luns = geo->num_ch * geo->num_lun; geo 312 drivers/nvme/host/lightnvm.c geo->num_chk = le16_to_cpu(src->num_chk); geo 314 drivers/nvme/host/lightnvm.c geo->csecs = le16_to_cpu(src->csecs); geo 315 drivers/nvme/host/lightnvm.c geo->sos = le16_to_cpu(src->sos); geo 318 drivers/nvme/host/lightnvm.c sec_per_pg = le16_to_cpu(src->fpg_sz) / geo->csecs; geo 320 drivers/nvme/host/lightnvm.c geo->clba = sec_per_pl * pg_per_blk; geo 322 drivers/nvme/host/lightnvm.c geo->all_chunks = geo->all_luns * geo->num_chk; geo 323 drivers/nvme/host/lightnvm.c geo->total_secs = geo->clba * geo->all_chunks; geo 325 drivers/nvme/host/lightnvm.c geo->ws_min = sec_per_pg; geo 326 drivers/nvme/host/lightnvm.c geo->ws_opt = sec_per_pg; geo 327 drivers/nvme/host/lightnvm.c geo->mw_cunits = geo->ws_opt << 3; /* default to MLC safe values */ geo 333 drivers/nvme/host/lightnvm.c geo->maxoc = geo->all_luns * geo->num_chk; geo 334 drivers/nvme/host/lightnvm.c geo->maxocpu = geo->num_chk; geo 336 drivers/nvme/host/lightnvm.c geo->mccap = le32_to_cpu(src->mccap); geo 338 drivers/nvme/host/lightnvm.c geo->trdt = le32_to_cpu(src->trdt); geo 339 drivers/nvme/host/lightnvm.c geo->trdm = le32_to_cpu(src->trdm); geo 340 drivers/nvme/host/lightnvm.c geo->tprt = le32_to_cpu(src->tprt); geo 341 drivers/nvme/host/lightnvm.c geo->tprm = le32_to_cpu(src->tprm); geo 342 drivers/nvme/host/lightnvm.c geo->tbet = le32_to_cpu(src->tbet); geo 343 drivers/nvme/host/lightnvm.c geo->tbem = le32_to_cpu(src->tbem); geo 346 drivers/nvme/host/lightnvm.c geo->vmnt = id->vmnt; geo 347 drivers/nvme/host/lightnvm.c geo->cap = le32_to_cpu(id->cap); geo 348 drivers/nvme/host/lightnvm.c geo->dom = le32_to_cpu(id->dom); geo 350 drivers/nvme/host/lightnvm.c geo->mtype = src->mtype; geo 351 drivers/nvme/host/lightnvm.c geo->fmtype = src->fmtype; geo 353 drivers/nvme/host/lightnvm.c geo->cpar = le16_to_cpu(src->cpar); geo 354 drivers/nvme/host/lightnvm.c geo->mpos = le32_to_cpu(src->mpos); geo 356 drivers/nvme/host/lightnvm.c geo->pln_mode = NVM_PLANE_SINGLE; geo 358 drivers/nvme/host/lightnvm.c if (geo->mpos & 0x020202) { geo 359 drivers/nvme/host/lightnvm.c geo->pln_mode = NVM_PLANE_DOUBLE; geo 360 drivers/nvme/host/lightnvm.c geo->ws_opt <<= 1; geo 361 drivers/nvme/host/lightnvm.c } else if (geo->mpos & 0x040404) { geo 362 drivers/nvme/host/lightnvm.c geo->pln_mode = NVM_PLANE_QUAD; geo 363 drivers/nvme/host/lightnvm.c geo->ws_opt <<= 2; geo 366 drivers/nvme/host/lightnvm.c geo->num_pln = src->num_pln; geo 367 drivers/nvme/host/lightnvm.c geo->num_pg = le16_to_cpu(src->num_pg); geo 368 drivers/nvme/host/lightnvm.c geo->fpg_sz = le16_to_cpu(src->fpg_sz); geo 370 drivers/nvme/host/lightnvm.c nvme_nvm_set_addr_12((struct nvm_addrf_12 *)&geo->addrf, &id->ppaf); geo 395 drivers/nvme/host/lightnvm.c struct nvm_geo *geo) geo 397 drivers/nvme/host/lightnvm.c geo->major_ver_id = id->mjr; geo 398 drivers/nvme/host/lightnvm.c geo->minor_ver_id = id->mnr; geo 401 drivers/nvme/host/lightnvm.c geo->version = NVM_OCSSD_SPEC_20; geo 403 drivers/nvme/host/lightnvm.c geo->num_ch = le16_to_cpu(id->num_grp); geo 404 drivers/nvme/host/lightnvm.c geo->num_lun = le16_to_cpu(id->num_pu); geo 405 drivers/nvme/host/lightnvm.c geo->all_luns = geo->num_ch * geo->num_lun; geo 407 drivers/nvme/host/lightnvm.c geo->num_chk = le32_to_cpu(id->num_chk); geo 408 drivers/nvme/host/lightnvm.c geo->clba = le32_to_cpu(id->clba); geo 410 drivers/nvme/host/lightnvm.c geo->all_chunks = geo->all_luns * geo->num_chk; geo 411 drivers/nvme/host/lightnvm.c geo->total_secs = geo->clba * geo->all_chunks; geo 413 drivers/nvme/host/lightnvm.c geo->ws_min = le32_to_cpu(id->ws_min); geo 414 drivers/nvme/host/lightnvm.c geo->ws_opt = le32_to_cpu(id->ws_opt); geo 415 drivers/nvme/host/lightnvm.c geo->mw_cunits = le32_to_cpu(id->mw_cunits); geo 416 drivers/nvme/host/lightnvm.c geo->maxoc = le32_to_cpu(id->maxoc); geo 417 drivers/nvme/host/lightnvm.c geo->maxocpu = le32_to_cpu(id->maxocpu); geo 419 drivers/nvme/host/lightnvm.c geo->trdt = le32_to_cpu(id->trdt); geo 420 drivers/nvme/host/lightnvm.c geo->trdm = le32_to_cpu(id->trdm); geo 421 drivers/nvme/host/lightnvm.c geo->tprt = le32_to_cpu(id->twrt); geo 422 drivers/nvme/host/lightnvm.c geo->tprm = le32_to_cpu(id->twrm); geo 423 drivers/nvme/host/lightnvm.c geo->tbet = le32_to_cpu(id->tcrst); geo 424 drivers/nvme/host/lightnvm.c geo->tbem = le32_to_cpu(id->tcrsm); geo 426 drivers/nvme/host/lightnvm.c nvme_nvm_set_addr_20(&geo->addrf, &id->lbaf); geo 458 drivers/nvme/host/lightnvm.c ret = nvme_nvm_setup_12(id, &nvmdev->geo); geo 462 drivers/nvme/host/lightnvm.c &nvmdev->geo); geo 479 drivers/nvme/host/lightnvm.c struct nvm_geo *geo = &nvmdev->geo; geo 484 drivers/nvme/host/lightnvm.c int nr_blks = geo->num_chk * geo->num_pln; geo 525 drivers/nvme/host/lightnvm.c memcpy(blks, bb_tbl->blk, geo->num_chk * geo->num_pln); geo 559 drivers/nvme/host/lightnvm.c struct nvm_geo *geo = &ndev->geo; geo 584 drivers/nvme/host/lightnvm.c log_pos += ppa.m.pu * geo->num_chk; geo 585 drivers/nvme/host/lightnvm.c log_pos += ppa.m.grp * geo->num_lun * geo->num_chk; geo 673 drivers/nvme/host/lightnvm.c struct nvm_geo *geo = &dev->geo; geo 690 drivers/nvme/host/lightnvm.c ret = blk_rq_map_kern(q, rq, buf, geo->csecs * rqd->nr_ppas, geo 952 drivers/nvme/host/lightnvm.c struct nvm_geo *geo; geo 961 drivers/nvme/host/lightnvm.c geo = &dev->geo; geo 962 drivers/nvme/host/lightnvm.c geo->csecs = 1 << ns->lba_shift; geo 963 drivers/nvme/host/lightnvm.c geo->sos = ns->ms; geo 964 drivers/nvme/host/lightnvm.c geo->ext = ns->ext; geo 965 drivers/nvme/host/lightnvm.c geo->mdts = ns->ctrl->max_hw_sectors; geo 986 drivers/nvme/host/lightnvm.c struct nvm_geo *geo = &ndev->geo; geo 995 drivers/nvme/host/lightnvm.c if (geo->major_ver_id == 1) geo 997 drivers/nvme/host/lightnvm.c geo->major_ver_id); geo 1000 drivers/nvme/host/lightnvm.c geo->major_ver_id, geo 1001 drivers/nvme/host/lightnvm.c geo->minor_ver_id); geo 1003 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->cap); geo 1005 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->trdt); geo 1007 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->trdm); geo 1033 drivers/nvme/host/lightnvm.c struct nvm_geo *geo = &ndev->geo; geo 1042 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->vmnt); geo 1044 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->dom); geo 1049 drivers/nvme/host/lightnvm.c return nvm_dev_attr_show_ppaf((void *)&geo->addrf, page); geo 1051 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->mtype); geo 1053 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->fmtype); geo 1055 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->num_ch); geo 1057 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->num_lun); geo 1059 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->num_pln); geo 1061 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->num_chk); geo 1063 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->num_pg); geo 1065 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->fpg_sz); geo 1067 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->csecs); geo 1069 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->sos); geo 1071 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->tprt); geo 1073 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->tprm); geo 1075 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->tbet); geo 1077 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->tbem); geo 1079 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "0x%08x\n", geo->mpos); geo 1081 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "0x%08x\n", geo->mccap); geo 1096 drivers/nvme/host/lightnvm.c struct nvm_geo *geo = &ndev->geo; geo 1105 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->num_ch); geo 1107 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->num_lun); geo 1109 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->num_chk); geo 1111 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->clba); geo 1113 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->ws_min); geo 1115 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->ws_opt); geo 1117 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->maxoc); geo 1119 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->maxocpu); geo 1121 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->mw_cunits); geo 1123 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->tprt); geo 1125 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->tprm); geo 1127 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->tbet); geo 1129 drivers/nvme/host/lightnvm.c return scnprintf(page, PAGE_SIZE, "%u\n", geo->tbem); geo 1254 drivers/nvme/host/lightnvm.c switch (ndev->geo.major_ver_id) { geo 1201 drivers/pcmcia/cistpl.c static int parse_device_geo(tuple_t *tuple, cistpl_device_geo_t *geo) geo 1212 drivers/pcmcia/cistpl.c geo->geo[n].buswidth = p[0]; geo 1213 drivers/pcmcia/cistpl.c geo->geo[n].erase_block = 1 << (p[1]-1); geo 1214 drivers/pcmcia/cistpl.c geo->geo[n].read_block = 1 << (p[2]-1); geo 1215 drivers/pcmcia/cistpl.c geo->geo[n].write_block = 1 << (p[3]-1); geo 1216 drivers/pcmcia/cistpl.c geo->geo[n].partition = 1 << (p[4]-1); geo 1217 drivers/pcmcia/cistpl.c geo->geo[n].interleave = 1 << (p[5]-1); geo 1220 drivers/pcmcia/cistpl.c geo->ngeo = n; geo 3370 drivers/s390/block/dasd.c static int dasd_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 3383 drivers/s390/block/dasd.c base->discipline->fill_geometry(base->block, geo); geo 3384 drivers/s390/block/dasd.c geo->start = get_start_sect(bdev) >> base->block->s2b_shift; geo 475 drivers/s390/block/dasd_diag.c dasd_diag_fill_geometry(struct dasd_block *block, struct hd_geometry *geo) geo 479 drivers/s390/block/dasd_diag.c geo->cylinders = (block->blocks << block->s2b_shift) >> 10; geo 480 drivers/s390/block/dasd_diag.c geo->heads = 16; geo 481 drivers/s390/block/dasd_diag.c geo->sectors = 128 >> block->s2b_shift; geo 202 drivers/s390/block/dasd_eckd.c static void set_ch_t(struct ch_t *geo, __u32 cyl, __u8 head) geo 204 drivers/s390/block/dasd_eckd.c geo->cyl = (__u16) cyl; geo 205 drivers/s390/block/dasd_eckd.c geo->head = cyl >> 16; geo 206 drivers/s390/block/dasd_eckd.c geo->head <<= 4; geo 207 drivers/s390/block/dasd_eckd.c geo->head |= head; geo 2387 drivers/s390/block/dasd_eckd.c dasd_eckd_fill_geometry(struct dasd_block *block, struct hd_geometry *geo) geo 2392 drivers/s390/block/dasd_eckd.c geo->sectors = recs_per_track(&private->rdc_data, geo 2395 drivers/s390/block/dasd_eckd.c geo->cylinders = private->rdc_data.no_cyl; geo 2396 drivers/s390/block/dasd_eckd.c geo->heads = private->rdc_data.trk_per_cyl; geo 3273 drivers/s390/block/dasd_eckd.c struct ch_t geo; geo 3299 drivers/s390/block/dasd_eckd.c set_ch_t(&geo, i / trk_per_cyl, i % trk_per_cyl); geo 3322 drivers/s390/block/dasd_eckd.c geo.cyl == 0 && geo.head == 0) { geo 3329 drivers/s390/block/dasd_eckd.c geo.cyl == 0 && geo.head == 1) { geo 3345 drivers/s390/block/dasd_eckd.c if (fmt_buffer[pos].cyl != geo.cyl || geo 3346 drivers/s390/block/dasd_eckd.c fmt_buffer[pos].head != geo.head || geo 215 drivers/s390/block/dasd_fba.c struct hd_geometry *geo) geo 219 drivers/s390/block/dasd_fba.c geo->cylinders = (block->blocks << block->s2b_shift) >> 10; geo 220 drivers/s390/block/dasd_fba.c geo->heads = 16; geo 221 drivers/s390/block/dasd_fba.c geo->sectors = 128 >> block->s2b_shift; geo 233 drivers/s390/block/xpram.c static int xpram_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 243 drivers/s390/block/xpram.c geo->cylinders = size >> 6; geo 244 drivers/s390/block/xpram.c geo->heads = 4; geo 245 drivers/s390/block/xpram.c geo->sectors = 16; geo 246 drivers/s390/block/xpram.c geo->start = 4; geo 1423 drivers/scsi/sd.c static int sd_getgeo(struct block_device *bdev, struct hd_geometry *geo) geo 1442 drivers/scsi/sd.c geo->heads = diskinfo[0]; geo 1443 drivers/scsi/sd.c geo->sectors = diskinfo[1]; geo 1444 drivers/scsi/sd.c geo->cylinders = diskinfo[2]; geo 1662 drivers/vfio/vfio_iommu_type1.c struct iommu_domain_geometry geo; geo 1742 drivers/vfio/vfio_iommu_type1.c iommu_domain_get_attr(domain->domain, DOMAIN_ATTR_GEOMETRY, &geo); geo 1744 drivers/vfio/vfio_iommu_type1.c if (vfio_iommu_aper_conflict(iommu, geo.aperture_start, geo 1745 drivers/vfio/vfio_iommu_type1.c geo.aperture_end)) { geo 1768 drivers/vfio/vfio_iommu_type1.c ret = vfio_iommu_aper_resize(&iova_copy, geo.aperture_start, geo 1769 drivers/vfio/vfio_iommu_type1.c geo.aperture_end); geo 1911 drivers/vfio/vfio_iommu_type1.c struct iommu_domain_geometry geo; geo 1921 drivers/vfio/vfio_iommu_type1.c &geo); geo 1922 drivers/vfio/vfio_iommu_type1.c if (geo.aperture_start > start) geo 1923 drivers/vfio/vfio_iommu_type1.c start = geo.aperture_start; geo 1924 drivers/vfio/vfio_iommu_type1.c if (geo.aperture_end < end) geo 1925 drivers/vfio/vfio_iommu_type1.c end = geo.aperture_end; geo 72 drivers/video/fbdev/mb862xx/mb862xxfb.h void __iomem *geo; geo 33 drivers/video/fbdev/mb862xx/mb862xxfb_accel.c outreg(geo, GDC_GEO_REG_INPUT_FIFO, data[total]); geo 565 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c reg, inreg(geo, reg)); geo 636 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c par->geo = par->mmio_base + MB862XX_GEO_BASE; geo 850 drivers/video/fbdev/mb862xx/mb862xxfbdrv.c par->geo = par->mmio_base + MB862XX_GEO_BASE; geo 72 fs/xfs/libxfs/xfs_attr.c args->geo = dp->i_mount->m_attr_geo; geo 205 fs/xfs/libxfs/xfs_attr.c if (size > (args->geo->blksize / 2)) { geo 93 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_da_geometry *geo, geo 113 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(geo->blksize > USHRT_MAX); geo 114 fs/xfs/libxfs/xfs_attr_leaf.c to->firstused = geo->blksize; geo 120 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_da_geometry *geo, geo 137 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(from->firstused == geo->blksize); geo 151 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_da_geometry *geo, geo 168 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_firstused_from_disk(geo, to, from); geo 182 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_firstused_from_disk(geo, to, from); geo 193 fs/xfs/libxfs/xfs_attr_leaf.c struct xfs_da_geometry *geo, geo 210 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_firstused_to_disk(geo, to, from); geo 225 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_firstused_to_disk(geo, to, from); geo 843 fs/xfs/libxfs/xfs_attr_leaf.c nargs.geo = args->geo; geo 1011 fs/xfs/libxfs/xfs_attr_leaf.c tmpbuffer = kmem_alloc(args->geo->blksize, 0); geo 1015 fs/xfs/libxfs/xfs_attr_leaf.c memcpy(tmpbuffer, bp->b_addr, args->geo->blksize); geo 1018 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); geo 1022 fs/xfs/libxfs/xfs_attr_leaf.c memset(bp->b_addr, 0, args->geo->blksize); geo 1044 fs/xfs/libxfs/xfs_attr_leaf.c nargs.geo = args->geo; geo 1109 fs/xfs/libxfs/xfs_attr_leaf.c memcpy(bp2->b_addr, bp1->b_addr, args->geo->blksize); geo 1114 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp2, 0, args->geo->blksize - 1); geo 1127 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(args->geo, &icleafhdr, leaf); geo 1135 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp1, 0, args->geo->blksize - 1); geo 1171 fs/xfs/libxfs/xfs_attr_leaf.c memset(leaf, 0, args->geo->blksize); geo 1174 fs/xfs/libxfs/xfs_attr_leaf.c ichdr.firstused = args->geo->blksize; geo 1192 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr); geo 1193 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, bp, 0, args->geo->blksize - 1); geo 1277 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); geo 1330 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr); geo 1378 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(ichdr->freemap[mapindex].base < args->geo->blksize); geo 1382 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(ichdr->freemap[mapindex].size < args->geo->blksize); geo 1474 fs/xfs/libxfs/xfs_attr_leaf.c tmpbuffer = kmem_alloc(args->geo->blksize, 0); geo 1475 fs/xfs/libxfs/xfs_attr_leaf.c memcpy(tmpbuffer, bp->b_addr, args->geo->blksize); geo 1476 fs/xfs/libxfs/xfs_attr_leaf.c memset(bp->b_addr, 0, args->geo->blksize); geo 1489 fs/xfs/libxfs/xfs_attr_leaf.c ichdr_dst->firstused = args->geo->blksize; geo 1498 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_to_disk(args->geo, leaf_dst, ichdr_dst); geo 1510 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(trans, bp, 0, args->geo->blksize - 1); geo 1593 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(state->args->geo, &ichdr1, leaf1); geo 1594 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(state->args->geo, &ichdr2, leaf2); geo 1688 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_to_disk(state->args->geo, leaf1, &ichdr1); geo 1689 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_to_disk(state->args->geo, leaf2, &ichdr2); geo 1690 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, blk1->bp, 0, args->geo->blksize - 1); geo 1691 fs/xfs/libxfs/xfs_attr_leaf.c xfs_trans_log_buf(args->trans, blk2->bp, 0, args->geo->blksize - 1); geo 1788 fs/xfs/libxfs/xfs_attr_leaf.c lastdelta = state->args->geo->blksize; geo 1882 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(state->args->geo, &ichdr, leaf); geo 1886 fs/xfs/libxfs/xfs_attr_leaf.c if (bytes > (state->args->geo->blksize >> 1)) { geo 1938 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(state->args->geo, &ichdr2, bp->b_addr); geo 1940 fs/xfs/libxfs/xfs_attr_leaf.c bytes = state->args->geo->blksize - geo 1941 fs/xfs/libxfs/xfs_attr_leaf.c (state->args->geo->blksize >> 2) - geo 2003 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); geo 2005 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(ichdr.count > 0 && ichdr.count < args->geo->blksize / 8); geo 2013 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(entry->nameidx) < args->geo->blksize); geo 2028 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(ichdr.freemap[i].base < args->geo->blksize); geo 2029 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(ichdr.freemap[i].size < args->geo->blksize); geo 2106 fs/xfs/libxfs/xfs_attr_leaf.c tmp = args->geo->blksize; geo 2110 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(be16_to_cpu(entry->nameidx) < args->geo->blksize); geo 2120 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_to_disk(args->geo, leaf, &ichdr); geo 2132 fs/xfs/libxfs/xfs_attr_leaf.c return tmp < args->geo->magicpct; /* leaf is < 37% full */ geo 2154 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(state->args->geo, &drophdr, drop_leaf); geo 2155 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(state->args->geo, &savehdr, save_leaf); geo 2193 fs/xfs/libxfs/xfs_attr_leaf.c tmp_leaf = kmem_zalloc(state->args->geo->blksize, 0); geo 2206 fs/xfs/libxfs/xfs_attr_leaf.c tmphdr.firstused = state->args->geo->blksize; geo 2209 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_to_disk(state->args->geo, tmp_leaf, &tmphdr); geo 2231 fs/xfs/libxfs/xfs_attr_leaf.c memcpy(save_leaf, tmp_leaf, state->args->geo->blksize); geo 2236 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_to_disk(state->args->geo, save_leaf, &savehdr); geo 2238 fs/xfs/libxfs/xfs_attr_leaf.c state->args->geo->blksize - 1); geo 2282 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); geo 2284 fs/xfs/libxfs/xfs_attr_leaf.c if (ichdr.count >= args->geo->blksize / 8) geo 2393 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); geo 2394 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(ichdr.count < args->geo->blksize / 8); geo 2455 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(ichdr_s->count > 0 && ichdr_s->count < args->geo->blksize / 8); geo 2458 fs/xfs/libxfs/xfs_attr_leaf.c ASSERT(ichdr_d->count < args->geo->blksize / 8); geo 2510 fs/xfs/libxfs/xfs_attr_leaf.c <= args->geo->blksize); geo 2514 fs/xfs/libxfs/xfs_attr_leaf.c <= args->geo->blksize); geo 2535 fs/xfs/libxfs/xfs_attr_leaf.c ((char *)leaf_s + args->geo->blksize)); geo 2550 fs/xfs/libxfs/xfs_attr_leaf.c ((char *)leaf_s + args->geo->blksize)); geo 2626 fs/xfs/libxfs/xfs_attr_leaf.c if (size < xfs_attr_leaf_entsize_local_max(args->geo->blksize)) { geo 2673 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); geo 2737 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr, leaf); geo 2816 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr1, leaf1); geo 2820 fs/xfs/libxfs/xfs_attr_leaf.c xfs_attr3_leaf_hdr_from_disk(args->geo, &ichdr2, leaf2); geo 90 fs/xfs/libxfs/xfs_attr_leaf.h void xfs_attr3_leaf_hdr_from_disk(struct xfs_da_geometry *geo, geo 93 fs/xfs/libxfs/xfs_attr_leaf.h void xfs_attr3_leaf_hdr_to_disk(struct xfs_da_geometry *geo, geo 1003 fs/xfs/libxfs/xfs_bmap.c dargs.geo = ip->i_mount->m_dir_geo; geo 1005 fs/xfs/libxfs/xfs_bmap.c dargs.total = dargs.geo->fsbcount; geo 634 fs/xfs/libxfs/xfs_da_btree.c (args->whichfork == XFS_DATA_FORK) ? args->geo->leafblk : 0, geo 652 fs/xfs/libxfs/xfs_da_btree.c ASSERT(blk1->blkno >= args->geo->leafblk && geo 653 fs/xfs/libxfs/xfs_da_btree.c blk1->blkno < args->geo->freeblk); geo 654 fs/xfs/libxfs/xfs_da_btree.c ASSERT(blk2->blkno >= args->geo->leafblk && geo 655 fs/xfs/libxfs/xfs_da_btree.c blk2->blkno < args->geo->freeblk); geo 699 fs/xfs/libxfs/xfs_da_btree.c if (nodehdr.count + newcount > state->args->geo->node_ents) { geo 930 fs/xfs/libxfs/xfs_da_btree.c ASSERT(newblk->blkno >= state->args->geo->leafblk && geo 931 fs/xfs/libxfs/xfs_da_btree.c newblk->blkno < state->args->geo->freeblk); geo 1125 fs/xfs/libxfs/xfs_da_btree.c memcpy(root_blk->bp->b_addr, bp->b_addr, args->geo->blksize); geo 1133 fs/xfs/libxfs/xfs_da_btree.c args->geo->blksize - 1); geo 1176 fs/xfs/libxfs/xfs_da_btree.c if (nodehdr.count > (state->args->geo->node_ents >> 1)) { geo 1213 fs/xfs/libxfs/xfs_da_btree.c count = state->args->geo->node_ents; geo 1214 fs/xfs/libxfs/xfs_da_btree.c count -= state->args->geo->node_ents >> 2; geo 1511 fs/xfs/libxfs/xfs_da_btree.c blkno = args->geo->leafblk; geo 1561 fs/xfs/libxfs/xfs_da_btree.c if (blkno == args->geo->leafblk) geo 1615 fs/xfs/libxfs/xfs_da_btree.c if (blkno == args->geo->leafblk) geo 2156 fs/xfs/libxfs/xfs_da_btree.c bno = args->geo->leafblk; geo 2157 fs/xfs/libxfs/xfs_da_btree.c error = xfs_da_grow_inode_int(args, &bno, args->geo->fsbcount); geo 2212 fs/xfs/libxfs/xfs_da_btree.c lastoff = args->geo->freeblk; geo 2224 fs/xfs/libxfs/xfs_da_btree.c last_blkno = (xfs_dablk_t)lastoff - args->geo->fsbcount; geo 2231 fs/xfs/libxfs/xfs_da_btree.c memcpy(dead_buf->b_addr, last_buf->b_addr, args->geo->blksize); geo 2232 fs/xfs/libxfs/xfs_da_btree.c xfs_trans_log_buf(tp, dead_buf, 0, args->geo->blksize - 1); geo 2301 fs/xfs/libxfs/xfs_da_btree.c par_blkno = args->geo->leafblk; geo 2409 fs/xfs/libxfs/xfs_da_btree.c count = args->geo->fsbcount; geo 49 fs/xfs/libxfs/xfs_da_btree.h struct xfs_da_geometry *geo; /* da block geometry */ geo 407 fs/xfs/libxfs/xfs_da_format.c xfs_dir2_max_leaf_ents(struct xfs_da_geometry *geo) geo 409 fs/xfs/libxfs/xfs_da_format.c return (geo->blksize - sizeof(struct xfs_dir2_leaf_hdr)) / geo 420 fs/xfs/libxfs/xfs_da_format.c xfs_dir3_max_leaf_ents(struct xfs_da_geometry *geo) geo 422 fs/xfs/libxfs/xfs_da_format.c return (geo->blksize - sizeof(struct xfs_dir3_leaf_hdr)) / geo 573 fs/xfs/libxfs/xfs_da_format.c xfs_dir2_free_max_bests(struct xfs_da_geometry *geo) geo 575 fs/xfs/libxfs/xfs_da_format.c return (geo->blksize - sizeof(struct xfs_dir2_free_hdr)) / geo 589 fs/xfs/libxfs/xfs_da_format.c xfs_dir2_db_to_fdb(struct xfs_da_geometry *geo, xfs_dir2_db_t db) geo 591 fs/xfs/libxfs/xfs_da_format.c return xfs_dir2_byte_to_db(geo, XFS_DIR2_FREE_OFFSET) + geo 592 fs/xfs/libxfs/xfs_da_format.c (db / xfs_dir2_free_max_bests(geo)); geo 599 fs/xfs/libxfs/xfs_da_format.c xfs_dir2_db_to_fdindex(struct xfs_da_geometry *geo, xfs_dir2_db_t db) geo 601 fs/xfs/libxfs/xfs_da_format.c return db % xfs_dir2_free_max_bests(geo); geo 605 fs/xfs/libxfs/xfs_da_format.c xfs_dir3_free_max_bests(struct xfs_da_geometry *geo) geo 607 fs/xfs/libxfs/xfs_da_format.c return (geo->blksize - sizeof(struct xfs_dir3_free_hdr)) / geo 621 fs/xfs/libxfs/xfs_da_format.c xfs_dir3_db_to_fdb(struct xfs_da_geometry *geo, xfs_dir2_db_t db) geo 623 fs/xfs/libxfs/xfs_da_format.c return xfs_dir2_byte_to_db(geo, XFS_DIR2_FREE_OFFSET) + geo 624 fs/xfs/libxfs/xfs_da_format.c (db / xfs_dir3_free_max_bests(geo)); geo 631 fs/xfs/libxfs/xfs_da_format.c xfs_dir3_db_to_fdindex(struct xfs_da_geometry *geo, xfs_dir2_db_t db) geo 633 fs/xfs/libxfs/xfs_da_format.c return db % xfs_dir3_free_max_bests(geo); geo 224 fs/xfs/libxfs/xfs_dir2.c args->geo = dp->i_mount->m_dir_geo; geo 261 fs/xfs/libxfs/xfs_dir2.c args->geo = dp->i_mount->m_dir_geo; geo 357 fs/xfs/libxfs/xfs_dir2.c args->geo = dp->i_mount->m_dir_geo; geo 429 fs/xfs/libxfs/xfs_dir2.c args->geo = dp->i_mount->m_dir_geo; geo 490 fs/xfs/libxfs/xfs_dir2.c args->geo = dp->i_mount->m_dir_geo; geo 566 fs/xfs/libxfs/xfs_dir2.c count = args->geo->fsbcount; geo 572 fs/xfs/libxfs/xfs_dir2.c *dbp = xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)bno); geo 602 fs/xfs/libxfs/xfs_dir2.c rval = XFS_FSB_TO_B(args->dp->i_mount, last) == args->geo->blksize; geo 603 fs/xfs/libxfs/xfs_dir2.c if (rval != 0 && args->dp->i_d.di_size != args->geo->blksize) geo 622 fs/xfs/libxfs/xfs_dir2.c *vp = last == args->geo->leafblk + args->geo->fsbcount; geo 650 fs/xfs/libxfs/xfs_dir2.c da = xfs_dir2_db_to_da(args->geo, db); geo 653 fs/xfs/libxfs/xfs_dir2.c error = xfs_bunmapi(tp, dp, da, args->geo->fsbcount, 0, 0, &done); geo 677 fs/xfs/libxfs/xfs_dir2.c if (db >= xfs_dir2_byte_to_db(args->geo, XFS_DIR2_LEAF_OFFSET)) geo 682 fs/xfs/libxfs/xfs_dir2.c if (dp->i_d.di_size > xfs_dir2_db_off_to_byte(args->geo, db + 1, 0)) geo 691 fs/xfs/libxfs/xfs_dir2.c if (db == args->geo->datablk) geo 78 fs/xfs/libxfs/xfs_dir2.h int (*leaf_max_ents)(struct xfs_da_geometry *geo); geo 95 fs/xfs/libxfs/xfs_dir2.h int (*free_max_bests)(struct xfs_da_geometry *geo); geo 97 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_db_t (*db_to_fdb)(struct xfs_da_geometry *geo, geo 99 fs/xfs/libxfs/xfs_dir2.h int (*db_to_fdindex)(struct xfs_da_geometry *geo, geo 146 fs/xfs/libxfs/xfs_dir2.h extern void xfs_dir2_data_freescan_int(struct xfs_da_geometry *geo, geo 205 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_byte_to_db(struct xfs_da_geometry *geo, xfs_dir2_off_t by) geo 207 fs/xfs/libxfs/xfs_dir2.h return (xfs_dir2_db_t)(by >> geo->blklog); geo 214 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_dataptr_to_db(struct xfs_da_geometry *geo, xfs_dir2_dataptr_t dp) geo 216 fs/xfs/libxfs/xfs_dir2.h return xfs_dir2_byte_to_db(geo, xfs_dir2_dataptr_to_byte(dp)); geo 223 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_byte_to_off(struct xfs_da_geometry *geo, xfs_dir2_off_t by) geo 225 fs/xfs/libxfs/xfs_dir2.h return (xfs_dir2_data_aoff_t)(by & (geo->blksize - 1)); geo 232 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_dataptr_to_off(struct xfs_da_geometry *geo, xfs_dir2_dataptr_t dp) geo 234 fs/xfs/libxfs/xfs_dir2.h return xfs_dir2_byte_to_off(geo, xfs_dir2_dataptr_to_byte(dp)); geo 241 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_db_off_to_byte(struct xfs_da_geometry *geo, xfs_dir2_db_t db, geo 244 fs/xfs/libxfs/xfs_dir2.h return ((xfs_dir2_off_t)db << geo->blklog) + o; geo 251 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_db_to_da(struct xfs_da_geometry *geo, xfs_dir2_db_t db) geo 253 fs/xfs/libxfs/xfs_dir2.h return (xfs_dablk_t)(db << (geo->blklog - geo->fsblog)); geo 260 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_byte_to_da(struct xfs_da_geometry *geo, xfs_dir2_off_t by) geo 262 fs/xfs/libxfs/xfs_dir2.h return xfs_dir2_db_to_da(geo, xfs_dir2_byte_to_db(geo, by)); geo 269 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_db_off_to_dataptr(struct xfs_da_geometry *geo, xfs_dir2_db_t db, geo 272 fs/xfs/libxfs/xfs_dir2.h return xfs_dir2_byte_to_dataptr(xfs_dir2_db_off_to_byte(geo, db, o)); geo 279 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_da_to_db(struct xfs_da_geometry *geo, xfs_dablk_t da) geo 281 fs/xfs/libxfs/xfs_dir2.h return (xfs_dir2_db_t)(da >> (geo->blklog - geo->fsblog)); geo 288 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_da_to_byte(struct xfs_da_geometry *geo, xfs_dablk_t da) geo 290 fs/xfs/libxfs/xfs_dir2.h return xfs_dir2_db_off_to_byte(geo, xfs_dir2_da_to_db(geo, da), 0); geo 297 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_block_tail_p(struct xfs_da_geometry *geo, struct xfs_dir2_data_hdr *hdr) geo 300 fs/xfs/libxfs/xfs_dir2.h ((char *)hdr + geo->blksize)) - 1; geo 304 fs/xfs/libxfs/xfs_dir2.h xfs_dir2_leaf_tail_p(struct xfs_da_geometry *geo, struct xfs_dir2_leaf *lp) geo 307 fs/xfs/libxfs/xfs_dir2.h ((char *)lp + geo->blksize - geo 327 fs/xfs/libxfs/xfs_dir2.h void *xfs_dir3_data_endp(struct xfs_da_geometry *geo, geo 364 fs/xfs/libxfs/xfs_dir2_block.c btp = xfs_dir2_block_tail_p(args->geo, hdr); geo 624 fs/xfs/libxfs/xfs_dir2_block.c btp = xfs_dir2_block_tail_p(args->geo, hdr); geo 630 fs/xfs/libxfs/xfs_dir2_block.c xfs_dir2_dataptr_to_off(args->geo, geo 677 fs/xfs/libxfs/xfs_dir2_block.c btp = xfs_dir2_block_tail_p(args->geo, hdr); geo 715 fs/xfs/libxfs/xfs_dir2_block.c ((char *)hdr + xfs_dir2_dataptr_to_off(args->geo, addr)); geo 780 fs/xfs/libxfs/xfs_dir2_block.c btp = xfs_dir2_block_tail_p(args->geo, hdr); geo 786 fs/xfs/libxfs/xfs_dir2_block.c xfs_dir2_dataptr_to_off(args->geo, geo 854 fs/xfs/libxfs/xfs_dir2_block.c btp = xfs_dir2_block_tail_p(args->geo, hdr); geo 860 fs/xfs/libxfs/xfs_dir2_block.c xfs_dir2_dataptr_to_off(args->geo, geo 928 fs/xfs/libxfs/xfs_dir2_block.c ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); geo 938 fs/xfs/libxfs/xfs_dir2_block.c while (dp->i_d.di_size > args->geo->blksize) { geo 944 fs/xfs/libxfs/xfs_dir2_block.c args->geo->blksize - hdrsz) { geo 956 fs/xfs/libxfs/xfs_dir2_block.c error = xfs_dir3_data_read(tp, dp, args->geo->datablk, -1, &dbp); geo 972 fs/xfs/libxfs/xfs_dir2_block.c tagp = (__be16 *)((char *)hdr + args->geo->blksize) - 1; geo 992 fs/xfs/libxfs/xfs_dir2_block.c args->geo->blksize - size, size, &needlog, &needscan); geo 998 fs/xfs/libxfs/xfs_dir2_block.c btp = xfs_dir2_block_tail_p(args->geo, hdr); geo 1023 fs/xfs/libxfs/xfs_dir2_block.c error = xfs_da_shrink_inode(args, args->geo->leafblk, lbp); geo 1128 fs/xfs/libxfs/xfs_dir2_block.c error = xfs_dir2_data_use_free(args, bp, dup, args->geo->blksize - i, geo 1136 fs/xfs/libxfs/xfs_dir2_block.c btp = xfs_dir2_block_tail_p(args->geo, hdr); geo 55 fs/xfs/libxfs/xfs_dir2_data.c struct xfs_da_geometry *geo; geo 57 fs/xfs/libxfs/xfs_dir2_data.c geo = mp->m_dir_geo; geo 79 fs/xfs/libxfs/xfs_dir2_data.c btp = xfs_dir2_block_tail_p(geo, hdr); geo 99 fs/xfs/libxfs/xfs_dir2_data.c endp = xfs_dir3_data_endp(geo, hdr); geo 187 fs/xfs/libxfs/xfs_dir2_data.c addr = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, geo 565 fs/xfs/libxfs/xfs_dir2_data.c struct xfs_da_geometry *geo, geo 591 fs/xfs/libxfs/xfs_dir2_data.c endp = xfs_dir3_data_endp(geo, hdr); geo 655 fs/xfs/libxfs/xfs_dir2_data.c error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, blkno), geo 691 fs/xfs/libxfs/xfs_dir2_data.c t = args->geo->blksize - (uint)dp->d_ops->data_entry_offset; geo 804 fs/xfs/libxfs/xfs_dir2_data.c endptr = xfs_dir3_data_endp(args->geo, hdr); geo 1154 fs/xfs/libxfs/xfs_dir2_data.c struct xfs_da_geometry *geo, geo 1160 fs/xfs/libxfs/xfs_dir2_data.c return xfs_dir2_block_leaf_p(xfs_dir2_block_tail_p(geo, hdr)); geo 1163 fs/xfs/libxfs/xfs_dir2_data.c return (char *)hdr + geo->blksize; geo 90 fs/xfs/libxfs/xfs_dir2_leaf.c struct xfs_da_geometry *geo = mp->m_dir_geo; geo 104 fs/xfs/libxfs/xfs_dir2_leaf.c ltp = xfs_dir2_leaf_tail_p(geo, leaf); geo 111 fs/xfs/libxfs/xfs_dir2_leaf.c if (hdr->count > ops->leaf_max_ents(geo)) geo 310 fs/xfs/libxfs/xfs_dir2_leaf.c ASSERT(bno >= xfs_dir2_byte_to_db(args->geo, XFS_DIR2_LEAF_OFFSET) && geo 311 fs/xfs/libxfs/xfs_dir2_leaf.c bno < xfs_dir2_byte_to_db(args->geo, XFS_DIR2_FREE_OFFSET)); geo 313 fs/xfs/libxfs/xfs_dir2_leaf.c error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, bno), geo 364 fs/xfs/libxfs/xfs_dir2_leaf.c ldb = xfs_dir2_da_to_db(args->geo, blkno); geo 365 fs/xfs/libxfs/xfs_dir2_leaf.c ASSERT(ldb == xfs_dir2_byte_to_db(args->geo, XFS_DIR2_LEAF_OFFSET)); geo 376 fs/xfs/libxfs/xfs_dir2_leaf.c btp = xfs_dir2_block_tail_p(args->geo, hdr); geo 404 fs/xfs/libxfs/xfs_dir2_leaf.c (xfs_dir2_data_aoff_t)((char *)hdr + args->geo->blksize - geo 422 fs/xfs/libxfs/xfs_dir2_leaf.c ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); geo 597 fs/xfs/libxfs/xfs_dir2_leaf.c error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp); geo 609 fs/xfs/libxfs/xfs_dir2_leaf.c ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); geo 626 fs/xfs/libxfs/xfs_dir2_leaf.c i = xfs_dir2_dataptr_to_db(args->geo, be32_to_cpu(lep->address)); geo 785 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_db_to_da(args->geo, use_block), geo 850 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_db_off_to_dataptr(args->geo, use_block, geo 1026 fs/xfs/libxfs/xfs_dir2_leaf.c ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); geo 1098 fs/xfs/libxfs/xfs_dir2_leaf.c ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); geo 1100 fs/xfs/libxfs/xfs_dir2_leaf.c (uint)(args->geo->blksize - 1)); geo 1146 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_dataptr_to_off(args->geo, be32_to_cpu(lep->address))); geo 1192 fs/xfs/libxfs/xfs_dir2_leaf.c error = xfs_dir3_leaf_read(tp, dp, args->geo->leafblk, -1, &lbp); geo 1221 fs/xfs/libxfs/xfs_dir2_leaf.c newdb = xfs_dir2_dataptr_to_db(args->geo, geo 1231 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_db_to_da(args->geo, newdb), geo 1243 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_dataptr_to_off(args->geo, geo 1273 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_db_to_da(args->geo, cidb), geo 1339 fs/xfs/libxfs/xfs_dir2_leaf.c db = xfs_dir2_dataptr_to_db(args->geo, be32_to_cpu(lep->address)); geo 1341 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_dataptr_to_off(args->geo, be32_to_cpu(lep->address))); geo 1344 fs/xfs/libxfs/xfs_dir2_leaf.c ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); geo 1385 fs/xfs/libxfs/xfs_dir2_leaf.c args->geo->blksize - dp->d_ops->data_entry_offset) { geo 1386 fs/xfs/libxfs/xfs_dir2_leaf.c ASSERT(db != args->geo->datablk); geo 1428 fs/xfs/libxfs/xfs_dir2_leaf.c else if (db != args->geo->datablk) geo 1476 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_dataptr_to_off(args->geo, be32_to_cpu(lep->address))); geo 1568 fs/xfs/libxfs/xfs_dir2_leaf.c error = xfs_dir3_data_read(tp, dp, xfs_dir2_db_to_da(args->geo, db), geo 1574 fs/xfs/libxfs/xfs_dir2_leaf.c ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); geo 1584 fs/xfs/libxfs/xfs_dir2_leaf.c args->geo->blksize - dp->d_ops->data_entry_offset); geo 1671 fs/xfs/libxfs/xfs_dir2_leaf.c fo -= args->geo->fsbcount; geo 1678 fs/xfs/libxfs/xfs_dir2_leaf.c while (fo > args->geo->freeblk) { geo 1683 fs/xfs/libxfs/xfs_dir2_leaf.c fo -= args->geo->fsbcount; geo 1696 fs/xfs/libxfs/xfs_dir2_leaf.c if (XFS_FSB_TO_B(mp, fo) > XFS_DIR2_LEAF_OFFSET + args->geo->blksize) geo 1708 fs/xfs/libxfs/xfs_dir2_leaf.c error = xfs_dir2_free_read(tp, dp, args->geo->freeblk, &fbp); geo 1720 fs/xfs/libxfs/xfs_dir2_leaf.c if (xfs_dir3_leaf_size(&leafhdr, freehdr.nvalid) > args->geo->blksize) { geo 1740 fs/xfs/libxfs/xfs_dir2_leaf.c ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); geo 1759 fs/xfs/libxfs/xfs_dir2_leaf.c xfs_dir2_byte_to_db(args->geo, XFS_DIR2_FREE_OFFSET), geo 256 fs/xfs/libxfs/xfs_dir2_node.c error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(args->geo, fbno), geo 363 fs/xfs/libxfs/xfs_dir2_node.c ASSERT(fdb == xfs_dir2_byte_to_db(args->geo, XFS_DIR2_FREE_OFFSET)); geo 374 fs/xfs/libxfs/xfs_dir2_node.c ltp = xfs_dir2_leaf_tail_p(args->geo, leaf); geo 376 fs/xfs/libxfs/xfs_dir2_node.c (uint)dp->i_d.di_size / args->geo->blksize) geo 458 fs/xfs/libxfs/xfs_dir2_node.c if (leafhdr.count == dp->d_ops->leaf_max_ents(args->geo)) { geo 493 fs/xfs/libxfs/xfs_dir2_node.c lep->address = cpu_to_be32(xfs_dir2_db_off_to_dataptr(args->geo, geo 622 fs/xfs/libxfs/xfs_dir2_node.c newdb = xfs_dir2_dataptr_to_db(args->geo, geo 640 fs/xfs/libxfs/xfs_dir2_node.c newfdb = dp->d_ops->db_to_fdb(args->geo, newdb); geo 652 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir2_db_to_da(args->geo, geo 664 fs/xfs/libxfs/xfs_dir2_node.c fi = dp->d_ops->db_to_fdindex(args->geo, curdb); geo 770 fs/xfs/libxfs/xfs_dir2_node.c newdb = xfs_dir2_dataptr_to_db(args->geo, geo 796 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir2_db_to_da(args->geo, geo 809 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir2_dataptr_to_off(args->geo, geo 1236 fs/xfs/libxfs/xfs_dir2_node.c db = xfs_dir2_dataptr_to_db(args->geo, be32_to_cpu(lep->address)); geo 1238 fs/xfs/libxfs/xfs_dir2_node.c off = xfs_dir2_dataptr_to_off(args->geo, be32_to_cpu(lep->address)); geo 1288 fs/xfs/libxfs/xfs_dir2_node.c fdb = dp->d_ops->db_to_fdb(args->geo, db); geo 1290 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir2_db_to_da(args->geo, fdb), geo 1299 fs/xfs/libxfs/xfs_dir2_node.c ASSERT(freehdr.firstdb == dp->d_ops->free_max_bests(args->geo) * geo 1300 fs/xfs/libxfs/xfs_dir2_node.c (fdb - xfs_dir2_byte_to_db(args->geo, geo 1307 fs/xfs/libxfs/xfs_dir2_node.c findex = dp->d_ops->db_to_fdindex(args->geo, db); geo 1313 fs/xfs/libxfs/xfs_dir2_node.c if (longest == args->geo->blksize - geo 1348 fs/xfs/libxfs/xfs_dir2_node.c args->geo->magicpct; geo 1379 fs/xfs/libxfs/xfs_dir2_node.c error = xfs_dir3_leaf_get_buf(args, xfs_dir2_da_to_db(args->geo, blkno), geo 1453 fs/xfs/libxfs/xfs_dir2_node.c if (bytes > (state->args->geo->blksize >> 1)) { geo 1506 fs/xfs/libxfs/xfs_dir2_node.c bytes = state->args->geo->blksize - geo 1507 fs/xfs/libxfs/xfs_dir2_node.c (state->args->geo->blksize >> 2); geo 1653 fs/xfs/libxfs/xfs_dir2_node.c fbno = dp->d_ops->db_to_fdb(args->geo, *dbno); geo 1655 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir2_db_to_da(args->geo, fbno), &fbp); geo 1668 fs/xfs/libxfs/xfs_dir2_node.c if (dp->d_ops->db_to_fdb(args->geo, *dbno) != fbno) { geo 1672 fs/xfs/libxfs/xfs_dir2_node.c (long long)dp->d_ops->db_to_fdb(args->geo, *dbno), geo 1695 fs/xfs/libxfs/xfs_dir2_node.c freehdr.firstdb = (fbno - xfs_dir2_byte_to_db(args->geo, geo 1697 fs/xfs/libxfs/xfs_dir2_node.c dp->d_ops->free_max_bests(args->geo); geo 1705 fs/xfs/libxfs/xfs_dir2_node.c *findex = dp->d_ops->db_to_fdindex(args->geo, *dbno); geo 1709 fs/xfs/libxfs/xfs_dir2_node.c ASSERT(*findex < dp->d_ops->free_max_bests(args->geo)); geo 1796 fs/xfs/libxfs/xfs_dir2_node.c lastfbno = xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)fo); geo 1797 fs/xfs/libxfs/xfs_dir2_node.c firstfbno = xfs_dir2_byte_to_db(args->geo, XFS_DIR2_FREE_OFFSET); geo 1810 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir2_db_to_da(args->geo, fbno), geo 1900 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir2_db_to_da(args->geo, dbno), geo 2209 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir2_dataptr_to_off(args->geo, geo 2286 fs/xfs/libxfs/xfs_dir2_node.c xfs_dir2_da_to_db(args->geo, (xfs_dablk_t)fo), bp); geo 66 fs/xfs/libxfs/xfs_dir2_sf.c struct xfs_da_geometry *geo; geo 69 fs/xfs/libxfs/xfs_dir2_sf.c geo = mp->m_dir_geo; geo 78 fs/xfs/libxfs/xfs_dir2_sf.c btp = xfs_dir2_block_tail_p(geo, hdr); geo 91 fs/xfs/libxfs/xfs_dir2_sf.c xfs_dir2_dataptr_to_off(geo, addr)); geo 180 fs/xfs/libxfs/xfs_dir2_sf.c endptr = xfs_dir3_data_endp(args->geo, hdr); geo 230 fs/xfs/libxfs/xfs_dir2_sf.c error = xfs_dir2_shrink_inode(args, args->geo->datablk, bp); geo 553 fs/xfs/libxfs/xfs_dir2_sf.c if (used + (holefit ? 0 : size) > args->geo->blksize) geo 563 fs/xfs/libxfs/xfs_dir2_sf.c if (used + size > args->geo->blksize) geo 611 fs/xfs/libxfs/xfs_dir2_sf.c (uint)sizeof(xfs_dir2_block_tail_t) <= args->geo->blksize); geo 186 fs/xfs/libxfs/xfs_health.h void xfs_fsop_geom_health(struct xfs_mount *mp, struct xfs_fsop_geom *geo); geo 1072 fs/xfs/libxfs/xfs_sb.c struct xfs_fsop_geom *geo, geo 1075 fs/xfs/libxfs/xfs_sb.c memset(geo, 0, sizeof(struct xfs_fsop_geom)); geo 1077 fs/xfs/libxfs/xfs_sb.c geo->blocksize = sbp->sb_blocksize; geo 1078 fs/xfs/libxfs/xfs_sb.c geo->rtextsize = sbp->sb_rextsize; geo 1079 fs/xfs/libxfs/xfs_sb.c geo->agblocks = sbp->sb_agblocks; geo 1080 fs/xfs/libxfs/xfs_sb.c geo->agcount = sbp->sb_agcount; geo 1081 fs/xfs/libxfs/xfs_sb.c geo->logblocks = sbp->sb_logblocks; geo 1082 fs/xfs/libxfs/xfs_sb.c geo->sectsize = sbp->sb_sectsize; geo 1083 fs/xfs/libxfs/xfs_sb.c geo->inodesize = sbp->sb_inodesize; geo 1084 fs/xfs/libxfs/xfs_sb.c geo->imaxpct = sbp->sb_imax_pct; geo 1085 fs/xfs/libxfs/xfs_sb.c geo->datablocks = sbp->sb_dblocks; geo 1086 fs/xfs/libxfs/xfs_sb.c geo->rtblocks = sbp->sb_rblocks; geo 1087 fs/xfs/libxfs/xfs_sb.c geo->rtextents = sbp->sb_rextents; geo 1088 fs/xfs/libxfs/xfs_sb.c geo->logstart = sbp->sb_logstart; geo 1089 fs/xfs/libxfs/xfs_sb.c BUILD_BUG_ON(sizeof(geo->uuid) != sizeof(sbp->sb_uuid)); geo 1090 fs/xfs/libxfs/xfs_sb.c memcpy(geo->uuid, &sbp->sb_uuid, sizeof(sbp->sb_uuid)); geo 1095 fs/xfs/libxfs/xfs_sb.c geo->sunit = sbp->sb_unit; geo 1096 fs/xfs/libxfs/xfs_sb.c geo->swidth = sbp->sb_width; geo 1101 fs/xfs/libxfs/xfs_sb.c geo->version = XFS_FSOP_GEOM_VERSION; geo 1102 fs/xfs/libxfs/xfs_sb.c geo->flags = XFS_FSOP_GEOM_FLAGS_NLINK | geo 1106 fs/xfs/libxfs/xfs_sb.c geo->flags |= XFS_FSOP_GEOM_FLAGS_ATTR; geo 1108 fs/xfs/libxfs/xfs_sb.c geo->flags |= XFS_FSOP_GEOM_FLAGS_QUOTA; geo 1110 fs/xfs/libxfs/xfs_sb.c geo->flags |= XFS_FSOP_GEOM_FLAGS_IALIGN; geo 1112 fs/xfs/libxfs/xfs_sb.c geo->flags |= XFS_FSOP_GEOM_FLAGS_DALIGN; geo 1114 fs/xfs/libxfs/xfs_sb.c geo->flags |= XFS_FSOP_GEOM_FLAGS_SECTOR; geo 1116 fs/xfs/libxfs/xfs_sb.c geo->flags |= XFS_FSOP_GEOM_FLAGS_DIRV2CI; geo 1118 fs/xfs/libxfs/xfs_sb.c geo->flags |= XFS_FSOP_GEOM_FLAGS_LAZYSB; geo 1120 fs/xfs/libxfs/xfs_sb.c geo->flags |= XFS_FSOP_GEOM_FLAGS_ATTR2; geo 1122 fs/xfs/libxfs/xfs_sb.c geo->flags |= XFS_FSOP_GEOM_FLAGS_PROJID32; geo 1124 fs/xfs/libxfs/xfs_sb.c geo->flags |= XFS_FSOP_GEOM_FLAGS_V5SB; geo 1126 fs/xfs/libxfs/xfs_sb.c geo->flags |= XFS_FSOP_GEOM_FLAGS_FTYPE; geo 1128 fs/xfs/libxfs/xfs_sb.c geo->flags |= XFS_FSOP_GEOM_FLAGS_FINOBT; geo 1130 fs/xfs/libxfs/xfs_sb.c geo->flags |= XFS_FSOP_GEOM_FLAGS_SPINODES; geo 1132 fs/xfs/libxfs/xfs_sb.c geo->flags |= XFS_FSOP_GEOM_FLAGS_RMAPBT; geo 1134 fs/xfs/libxfs/xfs_sb.c geo->flags |= XFS_FSOP_GEOM_FLAGS_REFLINK; geo 1136 fs/xfs/libxfs/xfs_sb.c geo->logsectsize = sbp->sb_logsectsize; geo 1138 fs/xfs/libxfs/xfs_sb.c geo->logsectsize = BBSIZE; geo 1139 fs/xfs/libxfs/xfs_sb.c geo->rtsectsize = sbp->sb_blocksize; geo 1140 fs/xfs/libxfs/xfs_sb.c geo->dirblocksize = xfs_dir2_dirblock_bytes(sbp); geo 1146 fs/xfs/libxfs/xfs_sb.c geo->flags |= XFS_FSOP_GEOM_FLAGS_LOGV2; geo 1148 fs/xfs/libxfs/xfs_sb.c geo->logsunit = sbp->sb_logsunit; geo 1153 fs/xfs/libxfs/xfs_sb.c geo->version = XFS_FSOP_GEOM_VERSION_V5; geo 36 fs/xfs/libxfs/xfs_sb.h extern void xfs_fs_geometry(struct xfs_sb *sbp, struct xfs_fsop_geom *geo, geo 155 fs/xfs/scrub/attr.c args.geo = context->dp->i_mount->m_attr_geo; geo 53 fs/xfs/scrub/dabtree.c xfs_dir2_da_to_db(ds->dargs.geo, geo 75 fs/xfs/scrub/dabtree.c xfs_dir2_da_to_db(ds->dargs.geo, geo 503 fs/xfs/scrub/dabtree.c ds.dargs.geo = mp->m_attr_geo; geo 507 fs/xfs/scrub/dabtree.c ds.dargs.geo = mp->m_dir_geo; geo 508 fs/xfs/scrub/dabtree.c ds.lowest = ds.dargs.geo->leafblk; geo 509 fs/xfs/scrub/dabtree.c ds.highest = ds.dargs.geo->freeblk; geo 484 fs/xfs/scrub/dir.c struct xfs_da_geometry *geo = sc->mp->m_dir_geo; geo 503 fs/xfs/scrub/dir.c ltp = xfs_dir2_leaf_tail_p(geo, leaf); geo 518 fs/xfs/scrub/dir.c if (bestcount != xfs_dir2_byte_to_db(geo, sc->ip->i_d.di_size)) { geo 524 fs/xfs/scrub/dir.c if (leafhdr.count > d_ops->leaf_max_ents(geo)) { geo 555 fs/xfs/scrub/dir.c i * args->geo->fsbcount, -1, &dbp); geo 607 fs/xfs/scrub/dir.c (freehdr.firstdb + i) * args->geo->fsbcount, geo 652 fs/xfs/scrub/dir.c args.geo = mp->m_dir_geo; geo 664 fs/xfs/scrub/dir.c got.br_blockcount != args.geo->fsbcount)) { geo 686 fs/xfs/scrub/dir.c args.geo->fsbcount); geo 688 fs/xfs/scrub/dir.c lblk += args.geo->fsbcount) { geo 695 fs/xfs/scrub/dir.c lblk = roundup(dabno, args.geo->fsbcount); geo 705 fs/xfs/scrub/dir.c got.br_blockcount == args.geo->fsbcount && geo 750 fs/xfs/scrub/dir.c args.geo->fsbcount); geo 752 fs/xfs/scrub/dir.c lblk += args.geo->fsbcount) { geo 759 fs/xfs/scrub/dir.c lblk = roundup(dabno, args.geo->fsbcount); geo 56 fs/xfs/xfs_dir2_readdir.c struct xfs_da_geometry *geo = args->geo; geo 67 fs/xfs/xfs_dir2_readdir.c if (xfs_dir2_dataptr_to_db(geo, ctx->pos) > geo->datablk) geo 76 fs/xfs/xfs_dir2_readdir.c dot_offset = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, geo 78 fs/xfs/xfs_dir2_readdir.c dotdot_offset = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, geo 107 fs/xfs/xfs_dir2_readdir.c off = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, geo 124 fs/xfs/xfs_dir2_readdir.c ctx->pos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk + 1, 0) & geo 147 fs/xfs/xfs_dir2_readdir.c struct xfs_da_geometry *geo = args->geo; geo 153 fs/xfs/xfs_dir2_readdir.c if (xfs_dir2_dataptr_to_db(geo, ctx->pos) > geo->datablk) geo 166 fs/xfs/xfs_dir2_readdir.c wantoff = xfs_dir2_dataptr_to_off(geo, ctx->pos); geo 173 fs/xfs/xfs_dir2_readdir.c endptr = xfs_dir3_data_endp(geo, hdr); geo 203 fs/xfs/xfs_dir2_readdir.c cook = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, geo 223 fs/xfs/xfs_dir2_readdir.c ctx->pos = xfs_dir2_db_off_to_dataptr(geo, geo->datablk + 1, 0) & geo 244 fs/xfs/xfs_dir2_readdir.c struct xfs_da_geometry *geo = args->geo; geo 267 fs/xfs/xfs_dir2_readdir.c last_da = xfs_dir2_byte_to_da(geo, XFS_DIR2_LEAF_OFFSET); geo 268 fs/xfs/xfs_dir2_readdir.c map_off = xfs_dir2_db_to_da(geo, xfs_dir2_byte_to_db(geo, *cur_off)); geo 276 fs/xfs/xfs_dir2_readdir.c new_off = xfs_dir2_da_to_byte(geo, map.br_startoff); geo 288 fs/xfs/xfs_dir2_readdir.c ra_want = howmany(bufsize + geo->blksize, (1 << geo->fsblog)); geo 293 fs/xfs/xfs_dir2_readdir.c next_ra = map.br_startoff + geo->fsbcount; geo 296 fs/xfs/xfs_dir2_readdir.c if (map.br_blockcount < geo->fsbcount && geo 306 fs/xfs/xfs_dir2_readdir.c next_ra = roundup((xfs_dablk_t)map.br_startoff, geo->fsbcount); geo 317 fs/xfs/xfs_dir2_readdir.c ra_want -= geo->fsbcount; geo 318 fs/xfs/xfs_dir2_readdir.c next_ra += geo->fsbcount; geo 351 fs/xfs/xfs_dir2_readdir.c struct xfs_da_geometry *geo = args->geo; geo 383 fs/xfs/xfs_dir2_readdir.c if (!bp || ptr >= (char *)bp->b_addr + geo->blksize) { geo 402 fs/xfs/xfs_dir2_readdir.c byteoff = xfs_dir2_byte_to_off(geo, curoff); geo 431 fs/xfs/xfs_dir2_readdir.c xfs_dir2_db_off_to_byte(geo, geo 432 fs/xfs/xfs_dir2_readdir.c xfs_dir2_byte_to_db(geo, curoff), geo 434 fs/xfs/xfs_dir2_readdir.c if (ptr >= (char *)hdr + geo->blksize) { geo 513 fs/xfs/xfs_dir2_readdir.c args.geo = dp->i_mount->m_dir_geo; geo 287 fs/xfs/xfs_health.c struct xfs_fsop_geom *geo, geo 293 fs/xfs/xfs_health.c geo->checked |= m->ioctl_mask; geo 295 fs/xfs/xfs_health.c geo->sick |= m->ioctl_mask; geo 302 fs/xfs/xfs_health.c struct xfs_fsop_geom *geo) geo 308 fs/xfs/xfs_health.c geo->sick = 0; geo 309 fs/xfs/xfs_health.c geo->checked = 0; geo 313 fs/xfs/xfs_health.c xfgeo_health_tick(geo, sick, checked, m); geo 317 fs/xfs/xfs_health.c xfgeo_health_tick(geo, sick, checked, m); geo 100 include/linux/btree.h void *btree_lookup(struct btree_head *head, struct btree_geo *geo, geo 115 include/linux/btree.h int __must_check btree_insert(struct btree_head *head, struct btree_geo *geo, geo 128 include/linux/btree.h int btree_update(struct btree_head *head, struct btree_geo *geo, geo 140 include/linux/btree.h void *btree_remove(struct btree_head *head, struct btree_geo *geo, geo 159 include/linux/btree.h struct btree_geo *geo, gfp_t gfp); geo 172 include/linux/btree.h void *btree_last(struct btree_head *head, struct btree_geo *geo, geo 186 include/linux/btree.h void *btree_get_prev(struct btree_head *head, struct btree_geo *geo, geo 191 include/linux/btree.h size_t btree_visitor(struct btree_head *head, struct btree_geo *geo, geo 199 include/linux/btree.h size_t btree_grim_visitor(struct btree_head *head, struct btree_geo *geo, geo 442 include/linux/device-mapper.h int dm_get_geometry(struct mapped_device *md, struct hd_geometry *geo); geo 443 include/linux/device-mapper.h int dm_set_geometry(struct mapped_device *md, struct hd_geometry *geo); geo 402 include/linux/lightnvm.h struct nvm_geo geo; geo 419 include/linux/lightnvm.h struct nvm_geo geo; geo 443 include/linux/lightnvm.h struct nvm_geo *geo = &dev->geo; geo 446 include/linux/lightnvm.h if (geo->version == NVM_OCSSD_SPEC_12) { geo 447 include/linux/lightnvm.h struct nvm_addrf_12 *ppaf = (struct nvm_addrf_12 *)&geo->addrf; geo 456 include/linux/lightnvm.h struct nvm_addrf *lbaf = &geo->addrf; geo 470 include/linux/lightnvm.h struct nvm_geo *geo = &dev->geo; geo 475 include/linux/lightnvm.h if (geo->version == NVM_OCSSD_SPEC_12) { geo 476 include/linux/lightnvm.h struct nvm_addrf_12 *ppaf = (struct nvm_addrf_12 *)&geo->addrf; geo 485 include/linux/lightnvm.h struct nvm_addrf *lbaf = &geo->addrf; geo 499 include/linux/lightnvm.h struct nvm_geo *geo = &dev->geo; geo 502 include/linux/lightnvm.h if (geo->version == NVM_OCSSD_SPEC_12) { geo 528 include/linux/lightnvm.h struct nvm_geo *geo = &dev->geo; geo 530 include/linux/lightnvm.h if (geo->version == NVM_OCSSD_SPEC_12) { geo 573 include/linux/lightnvm.h struct nvm_geo *geo = &dev->geo; geo 575 include/linux/lightnvm.h if (geo->version == NVM_OCSSD_SPEC_12) { geo 600 include/linux/lightnvm.h struct nvm_geo *geo = &dev->geo; geo 603 include/linux/lightnvm.h if (geo->version == NVM_OCSSD_SPEC_12) { geo 607 include/linux/lightnvm.h if (sec == geo->ws_min) { geo 612 include/linux/lightnvm.h if (pg == geo->num_pg) { geo 617 include/linux/lightnvm.h if (pl == geo->num_pln) geo 627 include/linux/lightnvm.h if (ppa->m.sec == geo->clba) geo 57 include/linux/mtd/blktrans.h int (*getgeo)(struct mtd_blktrans_dev *dev, struct hd_geometry *geo); geo 496 include/pcmcia/cistpl.h } geo[CISTPL_MAX_DEVICES]; geo 135 lib/btree.c static void dec_key(struct btree_geo *geo, unsigned long *key) geo 140 lib/btree.c for (i = geo->keylen - 1; i >= 0; i--) { geo 148 lib/btree.c static unsigned long *bkey(struct btree_geo *geo, unsigned long *node, int n) geo 150 lib/btree.c return &node[n * geo->keylen]; geo 153 lib/btree.c static void *bval(struct btree_geo *geo, unsigned long *node, int n) geo 155 lib/btree.c return (void *)node[geo->no_longs + n]; geo 158 lib/btree.c static void setkey(struct btree_geo *geo, unsigned long *node, int n, geo 161 lib/btree.c longcpy(bkey(geo, node, n), key, geo->keylen); geo 164 lib/btree.c static void setval(struct btree_geo *geo, unsigned long *node, int n, geo 167 lib/btree.c node[geo->no_longs + n] = (unsigned long) val; geo 170 lib/btree.c static void clearpair(struct btree_geo *geo, unsigned long *node, int n) geo 172 lib/btree.c longset(bkey(geo, node, n), 0, geo->keylen); geo 173 lib/btree.c node[geo->no_longs + n] = 0; geo 207 lib/btree.c void *btree_last(struct btree_head *head, struct btree_geo *geo, geo 217 lib/btree.c node = bval(geo, node, 0); geo 219 lib/btree.c longcpy(key, bkey(geo, node, 0), geo->keylen); geo 220 lib/btree.c return bval(geo, node, 0); geo 224 lib/btree.c static int keycmp(struct btree_geo *geo, unsigned long *node, int pos, geo 227 lib/btree.c return longcmp(bkey(geo, node, pos), key, geo->keylen); geo 230 lib/btree.c static int keyzero(struct btree_geo *geo, unsigned long *key) geo 234 lib/btree.c for (i = 0; i < geo->keylen; i++) geo 241 lib/btree.c void *btree_lookup(struct btree_head *head, struct btree_geo *geo, geo 251 lib/btree.c for (i = 0; i < geo->no_pairs; i++) geo 252 lib/btree.c if (keycmp(geo, node, i, key) <= 0) geo 254 lib/btree.c if (i == geo->no_pairs) geo 256 lib/btree.c node = bval(geo, node, i); geo 264 lib/btree.c for (i = 0; i < geo->no_pairs; i++) geo 265 lib/btree.c if (keycmp(geo, node, i, key) == 0) geo 266 lib/btree.c return bval(geo, node, i); geo 271 lib/btree.c int btree_update(struct btree_head *head, struct btree_geo *geo, geo 281 lib/btree.c for (i = 0; i < geo->no_pairs; i++) geo 282 lib/btree.c if (keycmp(geo, node, i, key) <= 0) geo 284 lib/btree.c if (i == geo->no_pairs) geo 286 lib/btree.c node = bval(geo, node, i); geo 294 lib/btree.c for (i = 0; i < geo->no_pairs; i++) geo 295 lib/btree.c if (keycmp(geo, node, i, key) == 0) { geo 296 lib/btree.c setval(geo, node, i, val); geo 311 lib/btree.c void *btree_get_prev(struct btree_head *head, struct btree_geo *geo, geo 318 lib/btree.c if (keyzero(geo, __key)) geo 323 lib/btree.c longcpy(key, __key, geo->keylen); geo 325 lib/btree.c dec_key(geo, key); geo 329 lib/btree.c for (i = 0; i < geo->no_pairs; i++) geo 330 lib/btree.c if (keycmp(geo, node, i, key) <= 0) geo 332 lib/btree.c if (i == geo->no_pairs) geo 335 lib/btree.c node = bval(geo, node, i); geo 338 lib/btree.c retry_key = bkey(geo, oldnode, i); geo 344 lib/btree.c for (i = 0; i < geo->no_pairs; i++) { geo 345 lib/btree.c if (keycmp(geo, node, i, key) <= 0) { geo 346 lib/btree.c if (bval(geo, node, i)) { geo 347 lib/btree.c longcpy(__key, bkey(geo, node, i), geo->keylen); geo 348 lib/btree.c return bval(geo, node, i); geo 355 lib/btree.c longcpy(key, retry_key, geo->keylen); geo 363 lib/btree.c static int getpos(struct btree_geo *geo, unsigned long *node, geo 368 lib/btree.c for (i = 0; i < geo->no_pairs; i++) { geo 369 lib/btree.c if (keycmp(geo, node, i, key) <= 0) geo 375 lib/btree.c static int getfill(struct btree_geo *geo, unsigned long *node, int start) geo 379 lib/btree.c for (i = start; i < geo->no_pairs; i++) geo 380 lib/btree.c if (!bval(geo, node, i)) geo 388 lib/btree.c static unsigned long *find_level(struct btree_head *head, struct btree_geo *geo, geo 395 lib/btree.c for (i = 0; i < geo->no_pairs; i++) geo 396 lib/btree.c if (keycmp(geo, node, i, key) <= 0) geo 399 lib/btree.c if ((i == geo->no_pairs) || !bval(geo, node, i)) { geo 404 lib/btree.c setkey(geo, node, i, key); geo 407 lib/btree.c node = bval(geo, node, i); geo 413 lib/btree.c static int btree_grow(struct btree_head *head, struct btree_geo *geo, geo 423 lib/btree.c fill = getfill(geo, head->node, 0); geo 424 lib/btree.c setkey(geo, node, 0, bkey(geo, head->node, fill - 1)); geo 425 lib/btree.c setval(geo, node, 0, head->node); geo 432 lib/btree.c static void btree_shrink(struct btree_head *head, struct btree_geo *geo) geo 441 lib/btree.c fill = getfill(geo, node, 0); geo 443 lib/btree.c head->node = bval(geo, node, 0); geo 448 lib/btree.c static int btree_insert_level(struct btree_head *head, struct btree_geo *geo, geo 457 lib/btree.c err = btree_grow(head, geo, gfp); geo 463 lib/btree.c node = find_level(head, geo, key, level); geo 464 lib/btree.c pos = getpos(geo, node, key); geo 465 lib/btree.c fill = getfill(geo, node, pos); geo 467 lib/btree.c BUG_ON(pos < fill && keycmp(geo, node, pos, key) == 0); geo 469 lib/btree.c if (fill == geo->no_pairs) { geo 476 lib/btree.c err = btree_insert_level(head, geo, geo 477 lib/btree.c bkey(geo, node, fill / 2 - 1), geo 484 lib/btree.c setkey(geo, new, i, bkey(geo, node, i)); geo 485 lib/btree.c setval(geo, new, i, bval(geo, node, i)); geo 486 lib/btree.c setkey(geo, node, i, bkey(geo, node, i + fill / 2)); geo 487 lib/btree.c setval(geo, node, i, bval(geo, node, i + fill / 2)); geo 488 lib/btree.c clearpair(geo, node, i + fill / 2); geo 491 lib/btree.c setkey(geo, node, i, bkey(geo, node, fill - 1)); geo 492 lib/btree.c setval(geo, node, i, bval(geo, node, fill - 1)); geo 493 lib/btree.c clearpair(geo, node, fill - 1); geo 497 lib/btree.c BUG_ON(fill >= geo->no_pairs); geo 501 lib/btree.c setkey(geo, node, i, bkey(geo, node, i - 1)); geo 502 lib/btree.c setval(geo, node, i, bval(geo, node, i - 1)); geo 504 lib/btree.c setkey(geo, node, pos, key); geo 505 lib/btree.c setval(geo, node, pos, val); geo 510 lib/btree.c int btree_insert(struct btree_head *head, struct btree_geo *geo, geo 514 lib/btree.c return btree_insert_level(head, geo, key, val, 1, gfp); geo 518 lib/btree.c static void *btree_remove_level(struct btree_head *head, struct btree_geo *geo, geo 520 lib/btree.c static void merge(struct btree_head *head, struct btree_geo *geo, int level, geo 529 lib/btree.c setkey(geo, left, lfill + i, bkey(geo, right, i)); geo 530 lib/btree.c setval(geo, left, lfill + i, bval(geo, right, i)); geo 533 lib/btree.c setval(geo, parent, lpos, right); geo 534 lib/btree.c setval(geo, parent, lpos + 1, left); geo 536 lib/btree.c btree_remove_level(head, geo, bkey(geo, parent, lpos), level + 1); geo 540 lib/btree.c static void rebalance(struct btree_head *head, struct btree_geo *geo, geo 551 lib/btree.c btree_remove_level(head, geo, key, level + 1); geo 556 lib/btree.c parent = find_level(head, geo, key, level + 1); geo 557 lib/btree.c i = getpos(geo, parent, key); geo 558 lib/btree.c BUG_ON(bval(geo, parent, i) != child); geo 561 lib/btree.c left = bval(geo, parent, i - 1); geo 562 lib/btree.c no_left = getfill(geo, left, 0); geo 563 lib/btree.c if (fill + no_left <= geo->no_pairs) { geo 564 lib/btree.c merge(head, geo, level, geo 571 lib/btree.c if (i + 1 < getfill(geo, parent, i)) { geo 572 lib/btree.c right = bval(geo, parent, i + 1); geo 573 lib/btree.c no_right = getfill(geo, right, 0); geo 574 lib/btree.c if (fill + no_right <= geo->no_pairs) { geo 575 lib/btree.c merge(head, geo, level, geo 591 lib/btree.c static void *btree_remove_level(struct btree_head *head, struct btree_geo *geo, geo 605 lib/btree.c node = find_level(head, geo, key, level); geo 606 lib/btree.c pos = getpos(geo, node, key); geo 607 lib/btree.c fill = getfill(geo, node, pos); geo 608 lib/btree.c if ((level == 1) && (keycmp(geo, node, pos, key) != 0)) geo 610 lib/btree.c ret = bval(geo, node, pos); geo 614 lib/btree.c setkey(geo, node, i, bkey(geo, node, i + 1)); geo 615 lib/btree.c setval(geo, node, i, bval(geo, node, i + 1)); geo 617 lib/btree.c clearpair(geo, node, fill - 1); geo 619 lib/btree.c if (fill - 1 < geo->no_pairs / 2) { geo 621 lib/btree.c rebalance(head, geo, key, level, node, fill - 1); geo 623 lib/btree.c btree_shrink(head, geo); geo 629 lib/btree.c void *btree_remove(struct btree_head *head, struct btree_geo *geo, geo 635 lib/btree.c return btree_remove_level(head, geo, key, 1); geo 640 lib/btree.c struct btree_geo *geo, gfp_t gfp) geo 661 lib/btree.c if (!btree_last(victim, geo, key)) geo 663 lib/btree.c val = btree_lookup(victim, geo, key); geo 664 lib/btree.c err = btree_insert(target, geo, key, val, gfp); geo 669 lib/btree.c longcpy(dup, key, geo->keylen); geo 670 lib/btree.c btree_remove(victim, geo, dup); geo 676 lib/btree.c static size_t __btree_for_each(struct btree_head *head, struct btree_geo *geo, geo 686 lib/btree.c for (i = 0; i < geo->no_pairs; i++) { geo 687 lib/btree.c child = bval(geo, node, i); geo 691 lib/btree.c count = __btree_for_each(head, geo, child, opaque, geo 694 lib/btree.c func(child, opaque, bkey(geo, node, i), count++, geo 746 lib/btree.c size_t btree_visitor(struct btree_head *head, struct btree_geo *geo, geo 758 lib/btree.c count = __btree_for_each(head, geo, head->node, opaque, func, geo 764 lib/btree.c size_t btree_grim_visitor(struct btree_head *head, struct btree_geo *geo, geo 776 lib/btree.c count = __btree_for_each(head, geo, head->node, opaque, func,