| /linux/lib/ |
| H A D | btree.c | 134 static void dec_key(struct btree_geo *geo, unsigned long *key) in dec_key() argument 139 for (i = geo->keylen - 1; i >= 0; i--) { in dec_key() 147 static unsigned long *bkey(struct btree_geo *geo, unsigned long *node, int n) in bkey() argument 149 return &node[n * geo->keylen]; in bkey() 152 static void *bval(struct btree_geo *geo, unsigned long *node, int n) in bval() argument 154 return (void *)node[geo->no_longs + n]; in bval() 157 static void setkey(struct btree_geo *geo, unsigned long *node, int n, in setkey() argument 160 longcpy(bkey(geo, node, n), key, geo->keylen); in setkey() 163 static void setval(struct btree_geo *geo, unsigned long *node, int n, in setval() argument 166 node[geo->no_longs + n] = (unsigned long) val; in setval() [all …]
|
| /linux/drivers/net/wireless/intel/ipw2x00/ |
| H A D | libipw_geo.c | 37 if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) in libipw_is_valid_channel() 41 for (i = 0; i < ieee->geo.bg_channels; i++) in libipw_is_valid_channel() 45 if ((ieee->geo.bg[i].channel == channel) && in libipw_is_valid_channel() 46 !(ieee->geo.bg[i].flags & LIBIPW_CH_INVALID) && in libipw_is_valid_channel() 48 !(ieee->geo.bg[i].flags & LIBIPW_CH_B_ONLY))) in libipw_is_valid_channel() 52 for (i = 0; i < ieee->geo.a_channels; i++) in libipw_is_valid_channel() 53 if ((ieee->geo.a[i].channel == channel) && in libipw_is_valid_channel() 54 !(ieee->geo.a[i].flags & LIBIPW_CH_INVALID)) in libipw_is_valid_channel() 66 if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) in libipw_channel_to_index() 70 for (i = 0; i < ieee->geo.bg_channels; i++) in libipw_channel_to_index() [all …]
|
| H A D | ipw2200.c | 1864 const struct libipw_geo *geo = libipw_get_geo(priv->ieee); in channels_show() local 1869 "(802.11bg):\n", geo->bg_channels); in channels_show() 1871 for (i = 0; i < geo->bg_channels; i++) { in channels_show() 1873 geo->bg[i].channel, in channels_show() 1874 geo->bg[i].flags & LIBIPW_CH_RADAR_DETECT ? in channels_show() 1876 ((geo->bg[i].flags & LIBIPW_CH_NO_IBSS) || in channels_show() 1877 (geo->bg[i].flags & LIBIPW_CH_RADAR_DETECT)) in channels_show() 1879 geo->bg[i].flags & LIBIPW_CH_PASSIVE_ONLY ? in channels_show() 1881 geo->bg[i].flags & LIBIPW_CH_B_ONLY ? in channels_show() 1887 "(802.11a):\n", geo->a_channels); in channels_show() [all …]
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_dir2.h | 154 xfs_dir2_byte_to_db(struct xfs_da_geometry *geo, xfs_dir2_off_t by) in xfs_dir2_byte_to_db() argument 156 return (xfs_dir2_db_t)(by >> geo->blklog); in xfs_dir2_byte_to_db() 163 xfs_dir2_dataptr_to_db(struct xfs_da_geometry *geo, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_db() argument 165 return xfs_dir2_byte_to_db(geo, xfs_dir2_dataptr_to_byte(dp)); in xfs_dir2_dataptr_to_db() 172 xfs_dir2_byte_to_off(struct xfs_da_geometry *geo, xfs_dir2_off_t by) in xfs_dir2_byte_to_off() argument 174 return (xfs_dir2_data_aoff_t)(by & (geo->blksize - 1)); in xfs_dir2_byte_to_off() 181 xfs_dir2_dataptr_to_off(struct xfs_da_geometry *geo, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_off() argument 183 return xfs_dir2_byte_to_off(geo, xfs_dir2_dataptr_to_byte(dp)); in xfs_dir2_dataptr_to_off() 190 xfs_dir2_db_off_to_byte(struct xfs_da_geometry *geo, xfs_dir2_db_t db, in xfs_dir2_db_off_to_byte() argument 193 return ((xfs_dir2_off_t)db << geo->blklog) + o; in xfs_dir2_db_off_to_byte() [all …]
|
| H A D | xfs_sb.c | 1506 struct xfs_fsop_geom *geo, in xfs_fs_geometry() argument 1511 memset(geo, 0, sizeof(struct xfs_fsop_geom)); in xfs_fs_geometry() 1513 geo->blocksize = sbp->sb_blocksize; in xfs_fs_geometry() 1514 geo->rtextsize = sbp->sb_rextsize; in xfs_fs_geometry() 1515 geo->agblocks = sbp->sb_agblocks; in xfs_fs_geometry() 1516 geo->agcount = sbp->sb_agcount; in xfs_fs_geometry() 1517 geo->logblocks = sbp->sb_logblocks; in xfs_fs_geometry() 1518 geo->sectsize = sbp->sb_sectsize; in xfs_fs_geometry() 1519 geo->inodesize = sbp->sb_inodesize; in xfs_fs_geometry() 1520 geo->imaxpct = sbp->sb_imax_pct; in xfs_fs_geometry() [all …]
|
| H A D | xfs_dir2.c | 255 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_init() 271 struct xfs_da_geometry *geo = mp->m_dir_geo; in xfs_dir2_format() local 284 if (eof == XFS_B_TO_FSB(mp, geo->blksize)) { in xfs_dir2_format() 285 if (XFS_IS_CORRUPT(mp, dp->i_disk_size != geo->blksize)) { in xfs_dir2_format() 292 if (eof == geo->leafblk + geo->fsbcount) in xfs_dir2_format() 348 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_createname() 441 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_lookup() 509 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_removename() 569 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_replace() 625 count = args->geo->fsbcount; in xfs_dir2_grow_inode() [all …]
|
| H A D | xfs_sb.h | 32 extern void xfs_fs_geometry(struct xfs_mount *mp, struct xfs_fsop_geom *geo,
|
| /linux/drivers/media/pci/bt8xx/ |
| H A D | bttv-risc.c | 237 bttv_calc_geo_old(struct bttv *btv, struct bttv_geometry *geo, in bttv_calc_geo_old() argument 257 geo->hscale = ((totalwidth*4096UL)/xsf-4096); in bttv_calc_geo_old() 258 geo->hdelay = tvnorm->hdelayx1; in bttv_calc_geo_old() 259 geo->hdelay = (geo->hdelay*width)/swidth; in bttv_calc_geo_old() 260 geo->hdelay &= 0x3fe; in bttv_calc_geo_old() 262 geo->vscale = (0x10000UL-sr) & 0x1fff; in bttv_calc_geo_old() 263 geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) | in bttv_calc_geo_old() 265 geo->vscale |= interleaved ? (BT848_VSCALE_INT<<8) : 0; in bttv_calc_geo_old() 266 geo->vdelay = vdelay; in bttv_calc_geo_old() 267 geo->width = width; in bttv_calc_geo_old() [all …]
|
| /linux/block/partitions/ |
| H A D | ibm.c | 31 static sector_t cchh2blk(struct vtoc_cchh *ptr, struct hd_geometry *geo) in cchh2blk() argument 41 return cyl * geo->heads * geo->sectors + in cchh2blk() 42 head * geo->sectors; in cchh2blk() 49 static sector_t cchhb2blk(struct vtoc_cchhb *ptr, struct hd_geometry *geo) in cchhb2blk() argument 59 return cyl * geo->heads * geo->sectors + in cchhb2blk() 60 head * geo->sectors + in cchhb2blk() 107 struct hd_geometry *geo, in find_label() argument 169 struct hd_geometry *geo, in find_vol1_partitions() argument 190 blk = cchhb2blk(&label->vol.vtoc, geo) + 1; in find_vol1_partitions() 210 offset = cchh2blk(&f1.DS1EXT1.llimit, geo); in find_vol1_partitions() [all …]
|
| /linux/drivers/md/ |
| H A D | raid10.c | 109 int size = offsetof(struct r10bio, devs[conf->geo.raid_disks]); in r10bio_pool_alloc() 263 for (i = 0; i < conf->geo.raid_disks; i++) { in put_all_bios() 360 for (slot = 0; slot < conf->geo.raid_disks; slot++) { in find_bio_disk() 581 static void __raid10_find_phys(struct geom *geo, struct r10bio *r10bio) in __raid10_find_phys() argument 591 last_far_set_start = (geo->raid_disks / geo->far_set_size) - 1; in __raid10_find_phys() 592 last_far_set_start *= geo->far_set_size; in __raid10_find_phys() 594 last_far_set_size = geo->far_set_size; in __raid10_find_phys() 595 last_far_set_size += (geo->raid_disks % geo->far_set_size); in __raid10_find_phys() 598 chunk = r10bio->sector >> geo->chunk_shift; in __raid10_find_phys() 599 sector = r10bio->sector & geo->chunk_mask; in __raid10_find_phys() [all …]
|
| /linux/include/linux/ |
| H A D | btree.h | 100 void *btree_lookup(struct btree_head *head, struct btree_geo *geo, 115 int __must_check btree_insert(struct btree_head *head, struct btree_geo *geo, 128 int btree_update(struct btree_head *head, struct btree_geo *geo, 140 void *btree_remove(struct btree_head *head, struct btree_geo *geo, 159 struct btree_geo *geo, gfp_t gfp); 172 void *btree_last(struct btree_head *head, struct btree_geo *geo, 186 void *btree_get_prev(struct btree_head *head, struct btree_geo *geo, 191 size_t btree_visitor(struct btree_head *head, struct btree_geo *geo, 199 size_t btree_grim_visitor(struct btree_head *head, struct btree_geo *geo,
|
| /linux/fs/xfs/scrub/ |
| H A D | dir.c | 324 struct xfs_da_geometry *geo = mp->m_dir_geo; in xchk_dir_rec() local 358 db = xfs_dir2_dataptr_to_db(geo, ptr); in xchk_dir_rec() 359 off = xfs_dir2_dataptr_to_off(geo, ptr); in xchk_dir_rec() 360 rec_bno = xfs_dir2_db_to_da(geo, db); in xchk_dir_rec() 362 if (rec_bno >= geo->leafblk) { in xchk_dir_rec() 383 iter_off = geo->data_entry_offset; in xchk_dir_rec() 384 end = xfs_dir3_data_end_offset(geo, bp->b_addr); in xchk_dir_rec() 630 struct xfs_da_geometry *geo = sc->mp->m_dir_geo; in xchk_directory_leaf1_bestfree() local 648 ltp = xfs_dir2_leaf_tail_p(geo, leaf); in xchk_directory_leaf1_bestfree() 673 if (leafhdr.count > geo->leaf_max_ents) { in xchk_directory_leaf1_bestfree() [all …]
|
| H A D | dir_repair.c | 471 struct xfs_da_geometry *geo = rd->sc->mp->m_dir_geo; in xrep_dir_recover_data() local 480 offset = geo->data_entry_offset; in xrep_dir_recover_data() 482 xfs_dir3_data_end_offset(geo, bp->b_addr)); in xrep_dir_recover_data() 567 struct xfs_da_geometry *geo = mp->m_dir_geo; in xrep_dir_guess_format() local 580 if (!error && XFS_FSB_TO_B(mp, last) == geo->blksize && in xrep_dir_guess_format() 581 dp->i_disk_size == geo->blksize) { in xrep_dir_guess_format() 591 last = geo->leafblk; in xrep_dir_guess_format() 594 XFS_FSB_TO_B(mp, last) > geo->blksize && in xrep_dir_guess_format() 677 rd->args.geo = rd->sc->mp->m_dir_geo; in xrep_dir_init_args() 961 struct xfs_da_geometry *geo = sc->mp->m_dir_geo; in xrep_dir_recover() local [all …]
|
| H A D | dabtree.c | 56 xfs_dir2_da_to_db(ds->dargs.geo, in xchk_da_process_error() 78 xfs_dir2_da_to_db(ds->dargs.geo, in xchk_da_set_corrupt() 93 xfs_dir2_da_to_db(ds->dargs.geo, in xchk_da_set_preen() 527 ds->dargs.geo = mp->m_attr_geo; in xchk_da_btree() 531 ds->dargs.geo = mp->m_dir_geo; in xchk_da_btree() 532 ds->lowest = ds->dargs.geo->leafblk; in xchk_da_btree() 533 ds->highest = ds->dargs.geo->freeblk; in xchk_da_btree()
|
| /linux/arch/m68k/emu/ |
| H A D | nfblock.c | 80 static int nfhd_getgeo(struct gendisk *disk, struct hd_geometry *geo) in nfhd_getgeo() argument 84 geo->cylinders = dev->blocks >> (6 - dev->bshift); in nfhd_getgeo() 85 geo->heads = 4; in nfhd_getgeo() 86 geo->sectors = 16; in nfhd_getgeo()
|
| /linux/block/ |
| H A D | ioctl.c | 563 struct hd_geometry geo; in blkdev_getgeo() local 575 memset(&geo, 0, sizeof(geo)); in blkdev_getgeo() 576 geo.start = get_start_sect(bdev); in blkdev_getgeo() 577 ret = disk->fops->getgeo(disk, &geo); in blkdev_getgeo() 580 if (copy_to_user(argp, &geo, sizeof(geo))) in blkdev_getgeo() 597 struct hd_geometry geo; in compat_hdio_getgeo() local 605 memset(&geo, 0, sizeof(geo)); in compat_hdio_getgeo() 610 geo.start = get_start_sect(bdev); in compat_hdio_getgeo() 611 ret = disk->fops->getgeo(disk, &geo); in compat_hdio_getgeo() 615 ret = copy_to_user(ugeo, &geo, 4); in compat_hdio_getgeo() [all …]
|
| /linux/drivers/mtd/ |
| H A D | ssfdc.c | 406 static int ssfdcr_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in ssfdcr_getgeo() argument 413 geo->heads = ssfdc->heads; in ssfdcr_getgeo() 414 geo->sectors = ssfdc->sectors; in ssfdcr_getgeo() 415 geo->cylinders = ssfdc->cylinders; in ssfdcr_getgeo()
|
| H A D | nftlcore.c | 765 static int nftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in nftl_getgeo() argument 769 geo->heads = nftl->heads; in nftl_getgeo() 770 geo->sectors = nftl->sectors; in nftl_getgeo() 771 geo->cylinders = nftl->cylinders; in nftl_getgeo()
|
| /linux/drivers/pcmcia/ |
| H A D | cistpl.c | 1202 static int parse_device_geo(tuple_t *tuple, cistpl_device_geo_t *geo) in parse_device_geo() argument 1213 geo->geo[n].buswidth = p[0]; in parse_device_geo() 1214 geo->geo[n].erase_block = 1 << (p[1]-1); in parse_device_geo() 1215 geo->geo[n].read_block = 1 << (p[2]-1); in parse_device_geo() 1216 geo->geo[n].write_block = 1 << (p[3]-1); in parse_device_geo() 1217 geo->geo[n].partition = 1 << (p[4]-1); in parse_device_geo() 1218 geo->geo[n].interleave = 1 << (p[5]-1); in parse_device_geo() 1221 geo->ngeo = n; in parse_device_geo()
|
| /linux/drivers/mtd/maps/ |
| H A D | pcmciamtd.c | 400 dev->pcmcia_map.bankwidth = t->geo[0].buswidth; in pcmciamtd_cistpl_geo() 403 pr_debug("region: %d bankwidth = %u\n", i, t->geo[i].buswidth); in pcmciamtd_cistpl_geo() 404 pr_debug("region: %d erase_block = %u\n", i, t->geo[i].erase_block); in pcmciamtd_cistpl_geo() 405 pr_debug("region: %d read_block = %u\n", i, t->geo[i].read_block); in pcmciamtd_cistpl_geo() 406 pr_debug("region: %d write_block = %u\n", i, t->geo[i].write_block); in pcmciamtd_cistpl_geo() 407 pr_debug("region: %d partition = %u\n", i, t->geo[i].partition); in pcmciamtd_cistpl_geo() 408 pr_debug("region: %d interleave = %u\n", i, t->geo[i].interleave); in pcmciamtd_cistpl_geo()
|
| /linux/drivers/block/ |
| H A D | sunvdc.c | 122 static int vdc_getgeo(struct gendisk *disk, struct hd_geometry *geo) in vdc_getgeo() argument 127 geo->heads = 0xff; in vdc_getgeo() 128 geo->sectors = 0x3f; in vdc_getgeo() 129 sector_div(cylinders, geo->heads * geo->sectors); in vdc_getgeo() 130 geo->cylinders = cylinders; in vdc_getgeo() 131 if ((sector_t)(geo->cylinders + 1) * geo->heads * geo->sectors < nsect) in vdc_getgeo() 132 geo->cylinders = 0xffff; in vdc_getgeo()
|
| /linux/drivers/mtd/ubi/ |
| H A D | block.c | 285 static int ubiblock_getgeo(struct gendisk *disk, struct hd_geometry *geo) in ubiblock_getgeo() argument 288 geo->heads = 1; in ubiblock_getgeo() 289 geo->cylinders = 1; in ubiblock_getgeo() 290 geo->sectors = get_capacity(disk); in ubiblock_getgeo() 291 geo->start = 0; in ubiblock_getgeo()
|
| /linux/drivers/net/wireless/realtek/rtw89/ |
| H A D | acpi.c | 910 .geo = &rtw89_acpi_geo_sar_handler_hp_legacy, 922 .geo = &rtw89_acpi_geo_sar_handler_hp_has_6ghz, 934 .geo = &rtw89_acpi_geo_sar_handler_rt_legacy, 946 .geo = &rtw89_acpi_geo_sar_handler_rt_has_6ghz, 958 .geo = &rtw89_acpi_geo_sar_handler_rt_legacy, 970 .geo = &rtw89_acpi_geo_sar_handler_rt_has_6ghz, 1254 rtw89_acpi_evaluate_geo_sar(rtwdev, rec->geo, cfg); in rtw89_acpi_evaluate_sar()
|
| /linux/drivers/s390/block/ |
| H A D | dasd_diag.c | 484 dasd_diag_fill_geometry(struct dasd_block *block, struct hd_geometry *geo) in dasd_diag_fill_geometry() argument 488 geo->cylinders = (block->blocks << block->s2b_shift) >> 10; in dasd_diag_fill_geometry() 489 geo->heads = 16; in dasd_diag_fill_geometry() 490 geo->sectors = 128 >> block->s2b_shift; in dasd_diag_fill_geometry()
|
| /linux/include/linux/mtd/ |
| H A D | blktrans.h | 57 int (*getgeo)(struct mtd_blktrans_dev *dev, struct hd_geometry *geo);
|