/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 | 1896 const struct libipw_geo *geo = libipw_get_geo(priv->ieee); in show_channels() local 1901 "(802.11bg):\n", geo->bg_channels); in show_channels() 1903 for (i = 0; i < geo->bg_channels; i++) { in show_channels() 1905 geo->bg[i].channel, in show_channels() 1906 geo->bg[i].flags & LIBIPW_CH_RADAR_DETECT ? in show_channels() 1908 ((geo->bg[i].flags & LIBIPW_CH_NO_IBSS) || in show_channels() 1909 (geo->bg[i].flags & LIBIPW_CH_RADAR_DETECT)) in show_channels() 1911 geo->bg[i].flags & LIBIPW_CH_PASSIVE_ONLY ? in show_channels() 1913 geo->bg[i].flags & LIBIPW_CH_B_ONLY ? in show_channels() 1919 "(802.11a):\n", geo->a_channels); in show_channels() [all …]
|
/drivers/media/pci/bt8xx/ |
D | bttv-risc.c | 326 bttv_calc_geo_old(struct bttv *btv, struct bttv_geometry *geo, in bttv_calc_geo_old() argument 346 geo->hscale = ((totalwidth*4096UL)/xsf-4096); in bttv_calc_geo_old() 347 geo->hdelay = tvnorm->hdelayx1; in bttv_calc_geo_old() 348 geo->hdelay = (geo->hdelay*width)/swidth; in bttv_calc_geo_old() 349 geo->hdelay &= 0x3fe; in bttv_calc_geo_old() 351 geo->vscale = (0x10000UL-sr) & 0x1fff; in bttv_calc_geo_old() 352 geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) | in bttv_calc_geo_old() 354 geo->vscale |= interleaved ? (BT848_VSCALE_INT<<8) : 0; in bttv_calc_geo_old() 355 geo->vdelay = vdelay; in bttv_calc_geo_old() 356 geo->width = width; in bttv_calc_geo_old() [all …]
|
/drivers/mtd/nand/raw/gpmi-nand/ |
D | gpmi-nand.c | 200 struct bch_geometry *geo = &this->bch_geometry; in gpmi_dump_info() local 228 geo->gf_len, in gpmi_dump_info() 229 geo->ecc_strength, in gpmi_dump_info() 230 geo->page_size, in gpmi_dump_info() 231 geo->metadata_size, in gpmi_dump_info() 232 geo->ecc_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() 236 geo->auxiliary_status_offset, in gpmi_dump_info() [all …]
|
/drivers/media/platform/ |
D | sh_vou.c | 506 static void vou_adjust_input(struct sh_vou_geometry *geo, v4l2_std_id std) in vou_adjust_input() argument 518 v4l_bound_align_image(&geo->in_width, in vou_adjust_input() 520 &geo->in_height, in vou_adjust_input() 526 unsigned int found = geo->output.width * vou_scale_h_den[i] / in vou_adjust_input() 533 err = abs(found - geo->in_width); in vou_adjust_input() 543 geo->in_width = best; in vou_adjust_input() 544 geo->scale_idx_h = idx; in vou_adjust_input() 551 unsigned int found = geo->output.height * vou_scale_v_den[i] / in vou_adjust_input() 558 err = abs(found - geo->in_height); in vou_adjust_input() 568 geo->in_height = best; in vou_adjust_input() [all …]
|
/drivers/md/ |
D | raid10.c | 94 int size = offsetof(struct r10bio, devs[conf->geo.raid_disks]); in r10bio_pool_alloc() 241 for (i = 0; i < conf->geo.raid_disks; i++) { in put_all_bios() 332 for (slot = 0; slot < conf->geo.raid_disks; slot++) { in find_bio_disk() 562 static void __raid10_find_phys(struct geom *geo, struct r10bio *r10bio) in __raid10_find_phys() argument 572 last_far_set_start = (geo->raid_disks / geo->far_set_size) - 1; in __raid10_find_phys() 573 last_far_set_start *= geo->far_set_size; in __raid10_find_phys() 575 last_far_set_size = geo->far_set_size; in __raid10_find_phys() 576 last_far_set_size += (geo->raid_disks % geo->far_set_size); in __raid10_find_phys() 579 chunk = r10bio->sector >> geo->chunk_shift; in __raid10_find_phys() 580 sector = r10bio->sector & geo->chunk_mask; in __raid10_find_phys() [all …]
|
D | raid10.h | 57 } prev, geo; member
|
D | dm.c | 398 static int dm_blk_getgeo(struct block_device *bdev, struct hd_geometry *geo) in dm_blk_getgeo() argument 402 return dm_get_geometry(md, geo); in dm_blk_getgeo() 770 int dm_get_geometry(struct mapped_device *md, struct hd_geometry *geo) in dm_get_geometry() argument 772 *geo = md->geometry; in dm_get_geometry() 780 int dm_set_geometry(struct mapped_device *md, struct hd_geometry *geo) in dm_set_geometry() argument 782 sector_t sz = (sector_t)geo->cylinders * geo->heads * geo->sectors; in dm_set_geometry() 784 if (geo->start > sz) { in dm_set_geometry() 789 md->geometry = *geo; in dm_set_geometry()
|
/drivers/block/rsxx/ |
D | dev.c | 73 static int rsxx_getgeo(struct block_device *bdev, struct hd_geometry *geo) in rsxx_getgeo() argument 83 geo->heads = 64; in rsxx_getgeo() 84 geo->sectors = 16; in rsxx_getgeo() 85 do_div(blocks, (geo->heads * geo->sectors)); in rsxx_getgeo() 86 geo->cylinders = blocks; in rsxx_getgeo() 88 geo->heads = 0; in rsxx_getgeo() 89 geo->sectors = 0; in rsxx_getgeo() 90 geo->cylinders = 0; in rsxx_getgeo()
|
/drivers/block/aoe/ |
D | aoeblk.c | 285 aoeblk_getgeo(struct block_device *bdev, struct hd_geometry *geo) in aoeblk_getgeo() argument 294 geo->cylinders = d->geo.cylinders; in aoeblk_getgeo() 295 geo->heads = d->geo.heads; in aoeblk_getgeo() 296 geo->sectors = d->geo.sectors; in aoeblk_getgeo()
|
D | aoecmd.c | 937 d->geo.cylinders = ssize; in ataid_complete() 938 d->geo.cylinders /= (255 * 63); in ataid_complete() 939 d->geo.heads = 255; in ataid_complete() 940 d->geo.sectors = 63; in ataid_complete() 948 d->geo.cylinders = get_unaligned_le16(&id[54 << 1]); in ataid_complete() 949 d->geo.heads = get_unaligned_le16(&id[55 << 1]); in ataid_complete() 950 d->geo.sectors = get_unaligned_le16(&id[56 << 1]); in ataid_complete() 965 d->geo.start = 0; in ataid_complete()
|
/drivers/block/paride/ |
D | pd.c | 806 static int pd_getgeo(struct block_device *bdev, struct hd_geometry *geo) in pd_getgeo() argument 811 geo->heads = PD_LOG_HEADS; in pd_getgeo() 812 geo->sectors = PD_LOG_SECTS; in pd_getgeo() 813 geo->cylinders = disk->capacity / (geo->heads * geo->sectors); in pd_getgeo() 815 geo->heads = disk->heads; in pd_getgeo() 816 geo->sectors = disk->sectors; in pd_getgeo() 817 geo->cylinders = disk->cylinders; in pd_getgeo()
|
D | pf.c | 213 static int pf_getgeo(struct block_device *bdev, struct hd_geometry *geo); 352 static int pf_getgeo(struct block_device *bdev, struct hd_geometry *geo) in pf_getgeo() argument 358 geo->cylinders = sector_div(capacity, PF_FD_HDS * PF_FD_SPT); in pf_getgeo() 359 geo->heads = PF_FD_HDS; in pf_getgeo() 360 geo->sectors = PF_FD_SPT; in pf_getgeo() 362 geo->cylinders = sector_div(capacity, PF_HD_HDS * PF_HD_SPT); in pf_getgeo() 363 geo->heads = PF_HD_HDS; in pf_getgeo() 364 geo->sectors = PF_HD_SPT; in pf_getgeo()
|
/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 | 123 static int vdc_getgeo(struct block_device *bdev, struct hd_geometry *geo) in vdc_getgeo() argument 129 geo->heads = 0xff; in vdc_getgeo() 130 geo->sectors = 0x3f; in vdc_getgeo() 131 sector_div(cylinders, geo->heads * geo->sectors); in vdc_getgeo() 132 geo->cylinders = cylinders; in vdc_getgeo() 133 if ((sector_t)(geo->cylinders + 1) * geo->heads * geo->sectors < nsect) in vdc_getgeo() 134 geo->cylinders = 0xffff; in vdc_getgeo()
|
D | virtio_blk.c | 421 static int virtblk_getgeo(struct block_device *bd, struct hd_geometry *geo) in virtblk_getgeo() argument 436 geometry.cylinders, &geo->cylinders); in virtblk_getgeo() 438 geometry.heads, &geo->heads); in virtblk_getgeo() 440 geometry.sectors, &geo->sectors); in virtblk_getgeo() 443 geo->heads = 1 << 6; in virtblk_getgeo() 444 geo->sectors = 1 << 5; in virtblk_getgeo() 445 geo->cylinders = get_capacity(bd->bd_disk) >> 11; in virtblk_getgeo()
|
D | swim.c | 715 static int floppy_getgeo(struct block_device *bdev, struct hd_geometry *geo) in floppy_getgeo() argument 725 geo->heads = g->head; in floppy_getgeo() 726 geo->sectors = g->sect; in floppy_getgeo() 727 geo->cylinders = g->track; in floppy_getgeo()
|
/drivers/mtd/ubi/ |
D | block.c | 275 static int ubiblock_getgeo(struct block_device *bdev, struct hd_geometry *geo) in ubiblock_getgeo() argument 278 geo->heads = 1; in ubiblock_getgeo() 279 geo->cylinders = 1; in ubiblock_getgeo() 280 geo->sectors = get_capacity(bdev->bd_disk); in ubiblock_getgeo() 281 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()
|