/drivers/net/wireless/ipw2x00/ |
D | libipw_geo.c | 51 if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) in libipw_is_valid_channel() 55 for (i = 0; i < ieee->geo.bg_channels; i++) in libipw_is_valid_channel() 59 if ((ieee->geo.bg[i].channel == channel) && in libipw_is_valid_channel() 60 !(ieee->geo.bg[i].flags & LIBIPW_CH_INVALID) && in libipw_is_valid_channel() 62 !(ieee->geo.bg[i].flags & LIBIPW_CH_B_ONLY))) in libipw_is_valid_channel() 66 for (i = 0; i < ieee->geo.a_channels; i++) in libipw_is_valid_channel() 67 if ((ieee->geo.a[i].channel == channel) && in libipw_is_valid_channel() 68 !(ieee->geo.a[i].flags & LIBIPW_CH_INVALID)) in libipw_is_valid_channel() 80 if (ieee->geo.bg_channels == 0 && ieee->geo.a_channels == 0) in libipw_channel_to_index() 84 for (i = 0; i < ieee->geo.bg_channels; i++) in libipw_channel_to_index() [all …]
|
D | ipw2200.c | 1919 const struct libipw_geo *geo = libipw_get_geo(priv->ieee); in show_channels() local 1924 "(802.11bg):\n", geo->bg_channels); in show_channels() 1926 for (i = 0; i < geo->bg_channels; i++) { in show_channels() 1928 geo->bg[i].channel, in show_channels() 1929 geo->bg[i].flags & LIBIPW_CH_RADAR_DETECT ? in show_channels() 1931 ((geo->bg[i].flags & LIBIPW_CH_NO_IBSS) || in show_channels() 1932 (geo->bg[i].flags & LIBIPW_CH_RADAR_DETECT)) in show_channels() 1934 geo->bg[i].flags & LIBIPW_CH_PASSIVE_ONLY ? in show_channels() 1936 geo->bg[i].flags & LIBIPW_CH_B_ONLY ? in show_channels() 1942 "(802.11a):\n", geo->a_channels); in show_channels() [all …]
|
/drivers/media/platform/s5p-tv/ |
D | mixer_video.c | 174 static void mxr_geometry_dump(struct mxr_device *mdev, struct mxr_geometry *geo) in mxr_geometry_dump() argument 177 geo->src.full_width, geo->src.full_height); in mxr_geometry_dump() 179 geo->src.width, geo->src.height); in mxr_geometry_dump() 181 geo->src.x_offset, geo->src.y_offset); in mxr_geometry_dump() 183 geo->dst.full_width, geo->dst.full_height); in mxr_geometry_dump() 185 geo->dst.width, geo->dst.height); in mxr_geometry_dump() 187 geo->dst.x_offset, geo->dst.y_offset); in mxr_geometry_dump() 189 geo->x_ratio, geo->y_ratio); in mxr_geometry_dump() 197 memset(&layer->geo, 0, sizeof(layer->geo)); in mxr_layer_default_geo() 201 layer->geo.dst.full_width = mbus_fmt.width; in mxr_layer_default_geo() [all …]
|
D | mixer_reg.c | 137 const struct mxr_format *fmt, const struct mxr_geometry *geo) in mxr_reg_graph_format() argument 150 mxr_write(mdev, MXR_GRAPHIC_SPAN(idx), geo->src.full_width); in mxr_reg_graph_format() 151 val = MXR_GRP_WH_WIDTH(geo->src.width); in mxr_reg_graph_format() 152 val |= MXR_GRP_WH_HEIGHT(geo->src.height); in mxr_reg_graph_format() 153 val |= MXR_GRP_WH_H_SCALE(geo->x_ratio); in mxr_reg_graph_format() 154 val |= MXR_GRP_WH_V_SCALE(geo->y_ratio); in mxr_reg_graph_format() 158 val = MXR_GRP_SXY_SX(geo->src.x_offset); in mxr_reg_graph_format() 159 val |= MXR_GRP_SXY_SY(geo->src.y_offset); in mxr_reg_graph_format() 163 val = MXR_GRP_DXY_DX(geo->dst.x_offset); in mxr_reg_graph_format() 164 val |= MXR_GRP_DXY_DY(geo->dst.y_offset); in mxr_reg_graph_format() [all …]
|
D | mixer_vp_layer.c | 108 &layer->fmt->plane[0], layer->geo.src.full_width, in mxr_vp_buffer_set() 109 layer->geo.src.full_height); in mxr_vp_buffer_set() 115 luma_addr[1] = luma_addr[0] + layer->geo.src.full_width; in mxr_vp_buffer_set() 128 mxr_reg_vp_format(layer->mdev, layer->fmt, &layer->geo); in mxr_vp_format_set() 146 struct mxr_geometry *geo = &layer->geo; in mxr_vp_fix_geometry() local 147 struct mxr_crop *src = &geo->src; in mxr_vp_fix_geometry() 148 struct mxr_crop *dst = &geo->dst; in mxr_vp_fix_geometry() 192 geo->x_ratio = (src->width << 16) / dst->width; in mxr_vp_fix_geometry() 193 geo->y_ratio = (src->height << 16) / dst->height; in mxr_vp_fix_geometry()
|
D | mixer_grp_layer.c | 101 layer->fmt, &layer->geo); in mxr_graph_format_set() 151 struct mxr_geometry *geo = &layer->geo; in mxr_graph_fix_geometry() local 152 struct mxr_crop *src = &geo->src; in mxr_graph_fix_geometry() 153 struct mxr_crop *dst = &geo->dst; in mxr_graph_fix_geometry() 202 geo->x_ratio = 0; in mxr_graph_fix_geometry() 204 geo->x_ratio = 1; in mxr_graph_fix_geometry() 213 geo->y_ratio = 0; in mxr_graph_fix_geometry() 215 geo->y_ratio = 1; in mxr_graph_fix_geometry()
|
D | mixer.h | 185 struct mxr_geometry geo; member 356 const struct mxr_format *fmt, const struct mxr_geometry *geo); 362 const struct mxr_format *fmt, const struct mxr_geometry *geo);
|
/drivers/media/pci/bt8xx/ |
D | bttv-risc.c | 336 bttv_calc_geo_old(struct bttv *btv, struct bttv_geometry *geo, in bttv_calc_geo_old() argument 356 geo->hscale = ((totalwidth*4096UL)/xsf-4096); in bttv_calc_geo_old() 357 geo->hdelay = tvnorm->hdelayx1; in bttv_calc_geo_old() 358 geo->hdelay = (geo->hdelay*width)/swidth; in bttv_calc_geo_old() 359 geo->hdelay &= 0x3fe; in bttv_calc_geo_old() 361 geo->vscale = (0x10000UL-sr) & 0x1fff; in bttv_calc_geo_old() 362 geo->crop = ((width>>8)&0x03) | ((geo->hdelay>>6)&0x0c) | in bttv_calc_geo_old() 364 geo->vscale |= interleaved ? (BT848_VSCALE_INT<<8) : 0; in bttv_calc_geo_old() 365 geo->vdelay = vdelay; in bttv_calc_geo_old() 366 geo->width = width; in bttv_calc_geo_old() [all …]
|
/drivers/media/platform/ |
D | sh_vou.c | 522 static void vou_adjust_input(struct sh_vou_geometry *geo, v4l2_std_id std) in vou_adjust_input() argument 534 v4l_bound_align_image(&geo->in_width, in vou_adjust_input() 536 &geo->in_height, in vou_adjust_input() 542 unsigned int found = geo->output.width * vou_scale_h_den[i] / in vou_adjust_input() 549 err = abs(found - geo->in_width); in vou_adjust_input() 559 geo->in_width = best; in vou_adjust_input() 560 geo->scale_idx_h = idx; in vou_adjust_input() 567 unsigned int found = geo->output.height * vou_scale_v_den[i] / in vou_adjust_input() 574 err = abs(found - geo->in_height); in vou_adjust_input() 584 geo->in_height = best; in vou_adjust_input() [all …]
|
/drivers/mtd/nand/gpmi-nand/ |
D | gpmi-nand.c | 109 struct bch_geometry *geo = &this->bch_geometry; in get_ecc_strength() local 113 ecc_strength = ((mtd->oobsize - geo->metadata_size) * 8) in get_ecc_strength() 114 / (geo->gf_len * geo->ecc_chunk_count); in get_ecc_strength() 122 struct bch_geometry *geo = &this->bch_geometry; in gpmi_check_ecc() local 127 if (geo->gf_len == 14) in gpmi_check_ecc() 130 return geo->ecc_strength <= this->devdata->bch_max_ecc_strength; in gpmi_check_ecc() 141 struct bch_geometry *geo = &this->bch_geometry; in set_geometry_by_ecc_info() local 152 geo->gf_len = 13; in set_geometry_by_ecc_info() 155 geo->gf_len = 14; in set_geometry_by_ecc_info() 163 geo->ecc_chunk_size = chip->ecc_step_ds; in set_geometry_by_ecc_info() [all …]
|
D | gpmi-lib.c | 208 struct bch_geometry *geo = &this->bch_geometry; in gpmi_dump_info() local 236 geo->gf_len, in gpmi_dump_info() 237 geo->ecc_strength, in gpmi_dump_info() 238 geo->page_size, in gpmi_dump_info() 239 geo->metadata_size, in gpmi_dump_info() 240 geo->ecc_chunk_size, in gpmi_dump_info() 241 geo->ecc_chunk_count, in gpmi_dump_info() 242 geo->payload_size, in gpmi_dump_info() 243 geo->auxiliary_size, in gpmi_dump_info() 244 geo->auxiliary_status_offset, in gpmi_dump_info() [all …]
|
/drivers/md/ |
D | raid10.c | 552 static void __raid10_find_phys(struct geom *geo, struct r10bio *r10bio) in __raid10_find_phys() argument 562 last_far_set_start = (geo->raid_disks / geo->far_set_size) - 1; in __raid10_find_phys() 563 last_far_set_start *= geo->far_set_size; in __raid10_find_phys() 565 last_far_set_size = geo->far_set_size; in __raid10_find_phys() 566 last_far_set_size += (geo->raid_disks % geo->far_set_size); in __raid10_find_phys() 569 chunk = r10bio->sector >> geo->chunk_shift; in __raid10_find_phys() 570 sector = r10bio->sector & geo->chunk_mask; in __raid10_find_phys() 572 chunk *= geo->near_copies; in __raid10_find_phys() 574 dev = sector_div(stripe, geo->raid_disks); in __raid10_find_phys() 575 if (geo->far_offset) in __raid10_find_phys() [all …]
|
/drivers/block/rsxx/ |
D | dev.c | 85 static int rsxx_getgeo(struct block_device *bdev, struct hd_geometry *geo) in rsxx_getgeo() argument 95 geo->heads = 64; in rsxx_getgeo() 96 geo->sectors = 16; in rsxx_getgeo() 97 do_div(blocks, (geo->heads * geo->sectors)); in rsxx_getgeo() 98 geo->cylinders = blocks; in rsxx_getgeo() 100 geo->heads = 0; in rsxx_getgeo() 101 geo->sectors = 0; in rsxx_getgeo() 102 geo->cylinders = 0; in rsxx_getgeo()
|
/drivers/s390/block/ |
D | xpram.c | 232 static int xpram_getgeo(struct block_device *bdev, struct hd_geometry *geo) in xpram_getgeo() argument 242 geo->cylinders = size >> 6; in xpram_getgeo() 243 geo->heads = 4; in xpram_getgeo() 244 geo->sectors = 16; in xpram_getgeo() 245 geo->start = 4; in xpram_getgeo()
|
/drivers/block/paride/ |
D | pd.c | 756 static int pd_getgeo(struct block_device *bdev, struct hd_geometry *geo) in pd_getgeo() argument 761 geo->heads = PD_LOG_HEADS; in pd_getgeo() 762 geo->sectors = PD_LOG_SECTS; in pd_getgeo() 763 geo->cylinders = disk->capacity / (geo->heads * geo->sectors); in pd_getgeo() 765 geo->heads = disk->heads; in pd_getgeo() 766 geo->sectors = disk->sectors; in pd_getgeo() 767 geo->cylinders = disk->cylinders; in pd_getgeo()
|
D | pf.c | 212 static int pf_getgeo(struct block_device *bdev, struct hd_geometry *geo); 330 static int pf_getgeo(struct block_device *bdev, struct hd_geometry *geo) in pf_getgeo() argument 336 geo->cylinders = sector_div(capacity, PF_FD_HDS * PF_FD_SPT); in pf_getgeo() 337 geo->heads = PF_FD_HDS; in pf_getgeo() 338 geo->sectors = PF_FD_SPT; in pf_getgeo() 340 geo->cylinders = sector_div(capacity, PF_HD_HDS * PF_HD_SPT); in pf_getgeo() 341 geo->heads = PF_HD_HDS; in pf_getgeo() 342 geo->sectors = PF_HD_SPT; in pf_getgeo()
|
/drivers/block/aoe/ |
D | aoeblk.c | 297 aoeblk_getgeo(struct block_device *bdev, struct hd_geometry *geo) in aoeblk_getgeo() argument 306 geo->cylinders = d->geo.cylinders; in aoeblk_getgeo() 307 geo->heads = d->geo.heads; in aoeblk_getgeo() 308 geo->sectors = d->geo.sectors; in aoeblk_getgeo()
|
/drivers/pcmcia/ |
D | cistpl.c | 1203 static int parse_device_geo(tuple_t *tuple, cistpl_device_geo_t *geo) in parse_device_geo() argument 1214 geo->geo[n].buswidth = p[0]; in parse_device_geo() 1215 geo->geo[n].erase_block = 1 << (p[1]-1); in parse_device_geo() 1216 geo->geo[n].read_block = 1 << (p[2]-1); in parse_device_geo() 1217 geo->geo[n].write_block = 1 << (p[3]-1); in parse_device_geo() 1218 geo->geo[n].partition = 1 << (p[4]-1); in parse_device_geo() 1219 geo->geo[n].interleave = 1 << (p[5]-1); in parse_device_geo() 1222 geo->ngeo = n; in parse_device_geo()
|
/drivers/mtd/ |
D | ssfdc.c | 409 static int ssfdcr_getgeo(struct mtd_blktrans_dev *dev, struct hd_geometry *geo) in ssfdcr_getgeo() argument 416 geo->heads = ssfdc->heads; in ssfdcr_getgeo() 417 geo->sectors = ssfdc->sectors; in ssfdcr_getgeo() 418 geo->cylinders = ssfdc->cylinders; in ssfdcr_getgeo()
|
/drivers/mtd/maps/ |
D | pcmciamtd.c | 401 dev->pcmcia_map.bankwidth = t->geo[0].buswidth; in pcmciamtd_cistpl_geo() 404 pr_debug("region: %d bankwidth = %u\n", i, t->geo[i].buswidth); in pcmciamtd_cistpl_geo() 405 pr_debug("region: %d erase_block = %u\n", i, t->geo[i].erase_block); in pcmciamtd_cistpl_geo() 406 pr_debug("region: %d read_block = %u\n", i, t->geo[i].read_block); in pcmciamtd_cistpl_geo() 407 pr_debug("region: %d write_block = %u\n", i, t->geo[i].write_block); in pcmciamtd_cistpl_geo() 408 pr_debug("region: %d partition = %u\n", i, t->geo[i].partition); in pcmciamtd_cistpl_geo() 409 pr_debug("region: %d interleave = %u\n", i, t->geo[i].interleave); in pcmciamtd_cistpl_geo()
|
/drivers/block/ |
D | sunvdc.c | 112 static int vdc_getgeo(struct block_device *bdev, struct hd_geometry *geo) in vdc_getgeo() argument 118 geo->heads = 0xff; in vdc_getgeo() 119 geo->sectors = 0x3f; in vdc_getgeo() 120 sector_div(cylinders, geo->heads * geo->sectors); in vdc_getgeo() 121 geo->cylinders = cylinders; in vdc_getgeo() 122 if ((sector_t)(geo->cylinders + 1) * geo->heads * geo->sectors < nsect) in vdc_getgeo() 123 geo->cylinders = 0xffff; in vdc_getgeo()
|
D | virtio_blk.c | 278 static int virtblk_getgeo(struct block_device *bd, struct hd_geometry *geo) in virtblk_getgeo() argument 285 geometry.cylinders, &geo->cylinders); in virtblk_getgeo() 287 geometry.heads, &geo->heads); in virtblk_getgeo() 289 geometry.sectors, &geo->sectors); in virtblk_getgeo() 292 geo->heads = 1 << 6; in virtblk_getgeo() 293 geo->sectors = 1 << 5; in virtblk_getgeo() 294 geo->cylinders = get_capacity(bd->bd_disk) >> 11; in virtblk_getgeo()
|
D | hd.c | 661 static int hd_getgeo(struct block_device *bdev, struct hd_geometry *geo) in hd_getgeo() argument 665 geo->heads = disk->head; in hd_getgeo() 666 geo->sectors = disk->sect; in hd_getgeo() 667 geo->cylinders = disk->cyl; in hd_getgeo()
|
/drivers/mtd/ubi/ |
D | block.c | 283 static int ubiblock_getgeo(struct block_device *bdev, struct hd_geometry *geo) in ubiblock_getgeo() argument 286 geo->heads = 1; in ubiblock_getgeo() 287 geo->cylinders = 1; in ubiblock_getgeo() 288 geo->sectors = get_capacity(bdev->bd_disk); in ubiblock_getgeo() 289 geo->start = 0; in ubiblock_getgeo()
|
/drivers/ide/ |
D | ide-gd.c | 275 static int ide_gd_getgeo(struct block_device *bdev, struct hd_geometry *geo) argument 280 geo->heads = drive->bios_head; 281 geo->sectors = drive->bios_sect; 282 geo->cylinders = (u16)drive->bios_cyl; /* truncate */
|