/drivers/net/wireless/intel/ipw2x00/ |
D | libipw_geo.c | 37 if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) in libipw_is_valid_channel() 41 for (i = 0; i < ieee->geo.bg_channels; i++) in libipw_is_valid_channel() 45 if ((ieee->geo.bg[i].channel == channel) && in libipw_is_valid_channel() 46 !(ieee->geo.bg[i].flags & LIBIPW_CH_INVALID) && in libipw_is_valid_channel() 48 !(ieee->geo.bg[i].flags & LIBIPW_CH_B_ONLY))) in libipw_is_valid_channel() 52 for (i = 0; i < ieee->geo.a_channels; i++) in libipw_is_valid_channel() 53 if ((ieee->geo.a[i].channel == channel) && in libipw_is_valid_channel() 54 !(ieee->geo.a[i].flags & LIBIPW_CH_INVALID)) in libipw_is_valid_channel() 66 if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) in libipw_channel_to_index() 70 for (i = 0; i < ieee->geo.bg_channels; i++) in libipw_channel_to_index() [all …]
|
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 …]
|
/drivers/mtd/nand/raw/gpmi-nand/ |
D | gpmi-nand.c | 198 struct bch_geometry *geo = &this->bch_geometry; in gpmi_dump_info() local 227 geo->gf_len, in gpmi_dump_info() 228 geo->ecc_strength, in gpmi_dump_info() 229 geo->page_size, in gpmi_dump_info() 230 geo->metadata_size, in gpmi_dump_info() 231 geo->ecc0_chunk_size, in gpmi_dump_info() 232 geo->eccn_chunk_size, in gpmi_dump_info() 233 geo->ecc_chunk_count, in gpmi_dump_info() 234 geo->payload_size, in gpmi_dump_info() 235 geo->auxiliary_size, in gpmi_dump_info() [all …]
|
/drivers/media/pci/bt8xx/ |
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 …]
|
/drivers/md/ |
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() 358 for (slot = 0; slot < conf->geo.raid_disks; slot++) { in find_bio_disk() 587 static void __raid10_find_phys(struct geom *geo, struct r10bio *r10bio) in __raid10_find_phys() argument 597 last_far_set_start = (geo->raid_disks / geo->far_set_size) - 1; in __raid10_find_phys() 598 last_far_set_start *= geo->far_set_size; in __raid10_find_phys() 600 last_far_set_size = geo->far_set_size; in __raid10_find_phys() 601 last_far_set_size += (geo->raid_disks % geo->far_set_size); in __raid10_find_phys() 604 chunk = r10bio->sector >> geo->chunk_shift; in __raid10_find_phys() 605 sector = r10bio->sector & geo->chunk_mask; in __raid10_find_phys() [all …]
|
D | raid10.h | 57 } prev, geo; member
|
/drivers/media/platform/renesas/ |
D | sh_vou.c | 506 static void vou_adjust_input(struct sh_vou_geometry *geo, v4l2_std_id std) in vou_adjust_input() argument 518 v4l_bound_align_image(&geo->in_width, in vou_adjust_input() 520 &geo->in_height, in vou_adjust_input() 526 unsigned int found = geo->output.width * vou_scale_h_den[i] / in vou_adjust_input() 533 err = abs(found - geo->in_width); in vou_adjust_input() 543 geo->in_width = best; in vou_adjust_input() 544 geo->scale_idx_h = idx; in vou_adjust_input() 551 unsigned int found = geo->output.height * vou_scale_v_den[i] / in vou_adjust_input() 558 err = abs(found - geo->in_height); in vou_adjust_input() 568 geo->in_height = best; in vou_adjust_input() [all …]
|
/drivers/net/wireless/mediatek/mt76/ |
D | mt792x_acpi_sar.c | 184 ret = mt792x_asar_acpi_read_mtgs(dev, (u8 **)&asar->geo, asar->ver); in mt792x_init_acpi_sar() 186 devm_kfree(dev->mt76.dev, asar->geo); in mt792x_init_acpi_sar() 187 asar->geo = NULL; in mt792x_init_acpi_sar() 211 if (!asar->geo) in mt792x_asar_get_geo_pwr() 227 band_pwr = &asar->geo->tbl[idx].band[0]; in mt792x_asar_get_geo_pwr() 228 max = ARRAY_SIZE(asar->geo->tbl[idx].band); in mt792x_asar_get_geo_pwr()
|
D | mt792x_acpi_sar.h | 98 struct mt792x_asar_geo *geo; member
|
/drivers/block/aoe/ |
D | aoeblk.c | 272 aoeblk_getgeo(struct block_device *bdev, struct hd_geometry *geo) in aoeblk_getgeo() argument 281 geo->cylinders = d->geo.cylinders; in aoeblk_getgeo() 282 geo->heads = d->geo.heads; in aoeblk_getgeo() 283 geo->sectors = d->geo.sectors; in aoeblk_getgeo()
|
D | aoecmd.c | 936 d->geo.cylinders = ssize; in ataid_complete() 937 d->geo.cylinders /= (255 * 63); in ataid_complete() 938 d->geo.heads = 255; in ataid_complete() 939 d->geo.sectors = 63; in ataid_complete() 947 d->geo.cylinders = get_unaligned_le16(&id[54 << 1]); in ataid_complete() 948 d->geo.heads = get_unaligned_le16(&id[55 << 1]); in ataid_complete() 949 d->geo.sectors = get_unaligned_le16(&id[56 << 1]); in ataid_complete() 964 d->geo.start = 0; in ataid_complete()
|
/drivers/pcmcia/ |
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()
|
/drivers/mtd/ |
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()
|
D | nftlcore.c | 766 static int nftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in nftl_getgeo() argument 770 geo->heads = nftl->heads; in nftl_getgeo() 771 geo->sectors = nftl->sectors; in nftl_getgeo() 772 geo->cylinders = nftl->cylinders; in nftl_getgeo()
|
D | inftlcore.c | 916 static int inftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in inftl_getgeo() argument 920 geo->heads = inftl->heads; in inftl_getgeo() 921 geo->sectors = inftl->sectors; in inftl_getgeo() 922 geo->cylinders = inftl->cylinders; in inftl_getgeo()
|
D | rfd_ftl.c | 736 static int rfd_ftl_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in rfd_ftl_getgeo() argument 740 geo->heads = 1; in rfd_ftl_getgeo() 741 geo->sectors = SECTORS_PER_TRACK; in rfd_ftl_getgeo() 742 geo->cylinders = part->cylinders; in rfd_ftl_getgeo()
|
/drivers/mtd/maps/ |
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()
|
/drivers/block/ |
D | sunvdc.c | 122 static int vdc_getgeo(struct block_device *bdev, struct hd_geometry *geo) in vdc_getgeo() argument 128 geo->heads = 0xff; in vdc_getgeo() 129 geo->sectors = 0x3f; in vdc_getgeo() 130 sector_div(cylinders, geo->heads * geo->sectors); in vdc_getgeo() 131 geo->cylinders = cylinders; in vdc_getgeo() 132 if ((sector_t)(geo->cylinders + 1) * geo->heads * geo->sectors < nsect) in vdc_getgeo() 133 geo->cylinders = 0xffff; in vdc_getgeo()
|
D | virtio_blk.c | 895 static int virtblk_getgeo(struct block_device *bd, struct hd_geometry *geo) in virtblk_getgeo() argument 910 geometry.cylinders, &geo->cylinders); in virtblk_getgeo() 912 geometry.heads, &geo->heads); in virtblk_getgeo() 914 geometry.sectors, &geo->sectors); in virtblk_getgeo() 917 geo->heads = 1 << 6; in virtblk_getgeo() 918 geo->sectors = 1 << 5; in virtblk_getgeo() 919 geo->cylinders = get_capacity(bd->bd_disk) >> 11; in virtblk_getgeo()
|
D | swim.c | 714 static int floppy_getgeo(struct block_device *bdev, struct hd_geometry *geo) in floppy_getgeo() argument 724 geo->heads = g->head; in floppy_getgeo() 725 geo->sectors = g->sect; in floppy_getgeo() 726 geo->cylinders = g->track; in floppy_getgeo()
|
/drivers/mtd/ubi/ |
D | block.c | 285 static int ubiblock_getgeo(struct block_device *bdev, 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(bdev->bd_disk); in ubiblock_getgeo() 291 geo->start = 0; in ubiblock_getgeo()
|
/drivers/s390/block/ |
D | dasd_diag.c | 483 dasd_diag_fill_geometry(struct dasd_block *block, struct hd_geometry *geo) in dasd_diag_fill_geometry() argument 487 geo->cylinders = (block->blocks << block->s2b_shift) >> 10; in dasd_diag_fill_geometry() 488 geo->heads = 16; in dasd_diag_fill_geometry() 489 geo->sectors = 128 >> block->s2b_shift; in dasd_diag_fill_geometry()
|
D | dasd_fba.c | 207 struct hd_geometry *geo) in dasd_fba_fill_geometry() argument 211 geo->cylinders = (block->blocks << block->s2b_shift) >> 10; in dasd_fba_fill_geometry() 212 geo->heads = 16; in dasd_fba_fill_geometry() 213 geo->sectors = 128 >> block->s2b_shift; in dasd_fba_fill_geometry()
|
/drivers/vfio/ |
D | vfio_iommu_type1.c | 2160 struct iommu_domain_geometry *geo; in vfio_iommu_type1_attach_group() local 2222 geo = &domain->domain->geometry; in vfio_iommu_type1_attach_group() 2223 if (vfio_iommu_aper_conflict(iommu, geo->aperture_start, in vfio_iommu_type1_attach_group() 2224 geo->aperture_end)) { in vfio_iommu_type1_attach_group() 2247 ret = vfio_iommu_aper_resize(&iova_copy, geo->aperture_start, in vfio_iommu_type1_attach_group() 2248 geo->aperture_end); in vfio_iommu_type1_attach_group() 2399 struct iommu_domain_geometry *geo = &domain->domain->geometry; in vfio_iommu_aper_expand() local 2401 if (geo->aperture_start > start) in vfio_iommu_aper_expand() 2402 start = geo->aperture_start; in vfio_iommu_aper_expand() 2403 if (geo->aperture_end < end) in vfio_iommu_aper_expand() [all …]
|
/drivers/video/fbdev/mb862xx/ |
D | mb862xxfb.h | 72 void __iomem *geo; member
|