| /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 …]
|
| /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_attr_leaf.c | 96 struct xfs_da_geometry *geo, in xfs_attr3_leaf_firstused_from_disk() argument 116 ASSERT(geo->blksize > USHRT_MAX); in xfs_attr3_leaf_firstused_from_disk() 117 to->firstused = geo->blksize; in xfs_attr3_leaf_firstused_from_disk() 123 struct xfs_da_geometry *geo, in xfs_attr3_leaf_firstused_to_disk() argument 140 ASSERT(from->firstused == geo->blksize); in xfs_attr3_leaf_firstused_to_disk() 154 struct xfs_da_geometry *geo, in xfs_attr3_leaf_hdr_from_disk() argument 171 xfs_attr3_leaf_firstused_from_disk(geo, to, from); in xfs_attr3_leaf_hdr_from_disk() 185 xfs_attr3_leaf_firstused_from_disk(geo, to, from); in xfs_attr3_leaf_hdr_from_disk() 196 struct xfs_da_geometry *geo, in xfs_attr3_leaf_hdr_to_disk() argument 213 xfs_attr3_leaf_firstused_to_disk(geo, to, from); in xfs_attr3_leaf_hdr_to_disk() [all …]
|
| H A D | xfs_dir2_data.c | 86 struct xfs_da_geometry *geo) in xfs_dir2_data_max_leaf_entries() argument 88 return (geo->blksize - sizeof(struct xfs_dir2_block_tail) - in xfs_dir2_data_max_leaf_entries() 89 geo->data_entry_offset) / in xfs_dir2_data_max_leaf_entries() 119 struct xfs_da_geometry *geo = mp->m_dir_geo; in __xfs_dir3_data_check() local 128 offset = geo->data_entry_offset; in __xfs_dir3_data_check() 133 btp = xfs_dir2_block_tail_p(geo, hdr); in __xfs_dir3_data_check() 137 xfs_dir2_data_max_leaf_entries(geo)) in __xfs_dir3_data_check() 146 end = xfs_dir3_data_end_offset(geo, hdr); in __xfs_dir3_data_check() 255 addr = xfs_dir2_db_off_to_dataptr(geo, geo->datablk, in __xfs_dir3_data_check() 670 struct xfs_da_geometry *geo = mp->m_dir_geo; in xfs_dir2_data_freescan() local [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() 442 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_lookup() 510 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_removename() 570 args->geo = dp->i_mount->m_dir_geo; in xfs_dir_replace() 626 count = args->geo->fsbcount; in xfs_dir2_grow_inode() [all …]
|
| H A D | xfs_da_btree.c | 543 XFS_DA_LOGRANGE(node, &node->hdr, args->geo->node_hdr_size)); in xfs_da3_node_create() 796 (args->whichfork == XFS_DATA_FORK) ? args->geo->leafblk : 0, in xfs_da3_root_split() 814 ASSERT(blk1->blkno >= args->geo->leafblk && in xfs_da3_root_split() 815 blk1->blkno < args->geo->freeblk); in xfs_da3_root_split() 816 ASSERT(blk2->blkno >= args->geo->leafblk && in xfs_da3_root_split() 817 blk2->blkno < args->geo->freeblk); in xfs_da3_root_split() 861 if (nodehdr.count + newcount > state->args->geo->node_ents) { in xfs_da3_node_split() 1034 state->args->geo->node_hdr_size)); in xfs_da3_node_rebalance() 1039 state->args->geo->node_hdr_size + in xfs_da3_node_rebalance() 1090 ASSERT(newblk->blkno >= state->args->geo->leafblk && in xfs_da3_node_add() [all …]
|
| H A D | xfs_dir2_sf.c | 186 struct xfs_da_geometry *geo; in xfs_dir2_block_sfsize() local 189 geo = mp->m_dir_geo; in xfs_dir2_block_sfsize() 198 btp = xfs_dir2_block_tail_p(geo, hdr); in xfs_dir2_block_sfsize() 211 xfs_dir2_dataptr_to_off(geo, addr)); in xfs_dir2_block_sfsize() 269 unsigned int offset = args->geo->data_entry_offset; in xfs_dir2_block_to_sf() 286 end = xfs_dir3_data_end_offset(args->geo, bp->b_addr); in xfs_dir2_block_to_sf() 332 error = xfs_dir2_shrink_inode(args, args->geo->datablk, bp); in xfs_dir2_block_to_sf() 535 for (offset = args->geo->data_first_offset, in xfs_dir2_sf_addname_hard() 609 offset = args->geo->data_first_offset; in xfs_dir2_sf_addname_pick() 636 if (used + (holefit ? 0 : size) > args->geo->blksize) in xfs_dir2_sf_addname_pick() [all …]
|
| H A D | xfs_attr_leaf.h | 102 void xfs_attr3_leaf_hdr_from_disk(struct xfs_da_geometry *geo, 105 void xfs_attr3_leaf_hdr_to_disk(struct xfs_da_geometry *geo,
|
| 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/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/ |
| H A D | xfs_health.c | 374 struct xfs_fsop_geom *geo, in xfgeo_health_tick() argument 380 geo->checked |= m->ioctl_mask; in xfgeo_health_tick() 382 geo->sick |= m->ioctl_mask; in xfgeo_health_tick() 389 struct xfs_fsop_geom *geo) in xfs_fsop_geom_health() argument 396 geo->sick = 0; in xfs_fsop_geom_health() 397 geo->checked = 0; in xfs_fsop_geom_health() 401 xfgeo_health_tick(geo, sick, checked, m); in xfs_fsop_geom_health() 406 xfgeo_health_tick(geo, sick, checked, m); in xfs_fsop_geom_health()
|
| /linux/fs/xfs/scrub/ |
| H A D | dir_repair.c | 467 struct xfs_da_geometry *geo = rd->sc->mp->m_dir_geo; in xrep_dir_recover_data() local 476 offset = geo->data_entry_offset; in xrep_dir_recover_data() 478 xfs_dir3_data_end_offset(geo, bp->b_addr)); in xrep_dir_recover_data() 563 struct xfs_da_geometry *geo = mp->m_dir_geo; in xrep_dir_guess_format() local 576 if (!error && XFS_FSB_TO_B(mp, last) == geo->blksize && in xrep_dir_guess_format() 577 dp->i_disk_size == geo->blksize) { in xrep_dir_guess_format() 587 last = geo->leafblk; in xrep_dir_guess_format() 590 XFS_FSB_TO_B(mp, last) > geo->blksize && in xrep_dir_guess_format() 673 rd->args.geo = rd->sc->mp->m_dir_geo; in xrep_dir_init_args() 957 struct xfs_da_geometry *geo = sc->mp->m_dir_geo; in xrep_dir_recover() local [all …]
|
| H A D | parent_repair.c | 902 .geo = sc->mp->m_attr_geo, in xrep_parent_fetch_xattr_remote() 988 .geo = rp->sc->mp->m_attr_geo, in xrep_parent_insert_xattr() 1501 struct xfs_da_geometry *geo = sc->mp->m_attr_geo; in xrep_parent_setup_scan() local 1522 max_len = xfs_attr_leaf_entsize_local_max(geo->blksize); in xrep_parent_setup_scan()
|
| /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 | inftlcore.c | 917 static int inftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in inftl_getgeo() argument 921 geo->heads = inftl->heads; in inftl_getgeo() 922 geo->sectors = inftl->sectors; in inftl_getgeo() 923 geo->cylinders = inftl->cylinders; in inftl_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/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/include/linux/mtd/ |
| H A D | blktrans.h | 57 int (*getgeo)(struct mtd_blktrans_dev *dev, struct hd_geometry *geo);
|
| /linux/drivers/video/fbdev/mb862xx/ |
| H A D | mb862xxfb.h | 72 void __iomem *geo; member
|
| /linux/drivers/block/aoe/ |
| H A D | aoecmd.c | 948 d->geo.cylinders = ssize; in ataid_complete() 949 d->geo.cylinders /= (255 * 63); in ataid_complete() 950 d->geo.heads = 255; in ataid_complete() 951 d->geo.sectors = 63; in ataid_complete() 959 d->geo.cylinders = get_unaligned_le16(&id[54 << 1]); in ataid_complete() 960 d->geo.heads = get_unaligned_le16(&id[55 << 1]); in ataid_complete() 961 d->geo.sectors = get_unaligned_le16(&id[56 << 1]); in ataid_complete() 976 d->geo.start = 0; in ataid_complete()
|
| /linux/drivers/vfio/ |
| H A D | vfio_iommu_type1.c | 2245 struct iommu_domain_geometry *geo; in vfio_iommu_type1_attach_group() local 2302 geo = &domain->domain->geometry; in vfio_iommu_type1_attach_group() 2303 if (vfio_iommu_aper_conflict(iommu, geo->aperture_start, in vfio_iommu_type1_attach_group() 2304 geo->aperture_end)) { in vfio_iommu_type1_attach_group() 2327 ret = vfio_iommu_aper_resize(&iova_copy, geo->aperture_start, in vfio_iommu_type1_attach_group() 2328 geo->aperture_end); in vfio_iommu_type1_attach_group() 2477 struct iommu_domain_geometry *geo = &domain->domain->geometry; in vfio_iommu_aper_expand() local 2479 if (geo->aperture_start > start) in vfio_iommu_aper_expand() 2480 start = geo->aperture_start; in vfio_iommu_aper_expand() 2481 if (geo->aperture_end < end) in vfio_iommu_aper_expand() [all …]
|
| /linux/arch/um/drivers/ |
| H A D | ubd_kern.c | 111 static int ubd_getgeo(struct gendisk *disk, struct hd_geometry *geo); 1327 static int ubd_getgeo(struct gendisk *disk, struct hd_geometry *geo) in ubd_getgeo() argument 1331 geo->heads = 128; in ubd_getgeo() 1332 geo->sectors = 32; in ubd_getgeo() 1333 geo->cylinders = ubd_dev->size / (128 * 32 * 512); in ubd_getgeo()
|
| /linux/drivers/md/ |
| H A D | dm.c | 406 static int dm_blk_getgeo(struct gendisk *disk, struct hd_geometry *geo) in dm_blk_getgeo() argument 410 return dm_get_geometry(md, geo); in dm_blk_getgeo() 839 int dm_get_geometry(struct mapped_device *md, struct hd_geometry *geo) in dm_get_geometry() argument 841 *geo = md->geometry; in dm_get_geometry() 849 int dm_set_geometry(struct mapped_device *md, struct hd_geometry *geo) in dm_set_geometry() argument 851 sector_t sz = (sector_t)geo->cylinders * geo->heads * geo->sectors; in dm_set_geometry() 853 if (geo->start > sz) { in dm_set_geometry() 858 md->geometry = *geo; in dm_set_geometry()
|