Symbol: minfo
drivers/firmware/arm_scmi/driver.c
1006
struct scmi_xfers_info *minfo = &info->tx_minfo;
drivers/firmware/arm_scmi/driver.c
1011
spin_lock_irqsave(&minfo->xfer_lock, flags);
drivers/firmware/arm_scmi/driver.c
1012
xfer = scmi_xfer_lookup_unlocked(minfo, xfer_id);
drivers/firmware/arm_scmi/driver.c
1017
spin_unlock_irqrestore(&minfo->xfer_lock, flags);
drivers/firmware/arm_scmi/driver.c
1025
spin_unlock_irqrestore(&minfo->xfer_lock, flags);
drivers/firmware/arm_scmi/driver.c
1051
__scmi_xfer_put(minfo, xfer);
drivers/firmware/arm_scmi/driver.c
1083
struct scmi_xfers_info *minfo = &info->rx_minfo;
drivers/firmware/arm_scmi/driver.c
1087
xfer = scmi_xfer_get(cinfo->handle, minfo);
drivers/firmware/arm_scmi/driver.c
1124
__scmi_xfer_put(minfo, xfer);
drivers/firmware/arm_scmi/driver.c
1560
struct scmi_xfers_info *minfo = &info->tx_minfo;
drivers/firmware/arm_scmi/driver.c
1568
xfer = scmi_xfer_get(pi->handle, minfo);
drivers/firmware/arm_scmi/driver.c
1576
ret = scmi_xfer_pending_set(xfer, minfo);
drivers/firmware/arm_scmi/driver.c
1580
__scmi_xfer_put(minfo, xfer);
drivers/firmware/arm_scmi/driver.c
519
static int scmi_xfer_token_set(struct scmi_xfers_info *minfo,
drivers/firmware/arm_scmi/driver.c
535
xfer_id = find_next_zero_bit(minfo->xfer_alloc_table,
drivers/firmware/arm_scmi/driver.c
543
xfer_id = find_next_zero_bit(minfo->xfer_alloc_table,
drivers/firmware/arm_scmi/driver.c
569
static inline void scmi_xfer_token_clear(struct scmi_xfers_info *minfo,
drivers/firmware/arm_scmi/driver.c
572
clear_bit(xfer->hdr.seq, minfo->xfer_alloc_table);
drivers/firmware/arm_scmi/driver.c
589
struct scmi_xfers_info *minfo)
drivers/firmware/arm_scmi/driver.c
592
struct scmi_info *info = tx_minfo_to_scmi_info(minfo);
drivers/firmware/arm_scmi/driver.c
595
set_bit(xfer->hdr.seq, minfo->xfer_alloc_table);
drivers/firmware/arm_scmi/driver.c
596
hash_add(minfo->pending_xfers, &xfer->node, xfer->hdr.seq);
drivers/firmware/arm_scmi/driver.c
617
struct scmi_xfers_info *minfo)
drivers/firmware/arm_scmi/driver.c
622
spin_lock_irqsave(&minfo->xfer_lock, flags);
drivers/firmware/arm_scmi/driver.c
623
if (!test_bit(xfer->hdr.seq, minfo->xfer_alloc_table))
drivers/firmware/arm_scmi/driver.c
624
scmi_xfer_inflight_register_unlocked(xfer, minfo);
drivers/firmware/arm_scmi/driver.c
627
spin_unlock_irqrestore(&minfo->xfer_lock, flags);
drivers/firmware/arm_scmi/driver.c
659
struct scmi_xfers_info *minfo)
drivers/firmware/arm_scmi/driver.c
664
spin_lock_irqsave(&minfo->xfer_lock, flags);
drivers/firmware/arm_scmi/driver.c
666
ret = scmi_xfer_token_set(minfo, xfer);
drivers/firmware/arm_scmi/driver.c
668
scmi_xfer_inflight_register_unlocked(xfer, minfo);
drivers/firmware/arm_scmi/driver.c
669
spin_unlock_irqrestore(&minfo->xfer_lock, flags);
drivers/firmware/arm_scmi/driver.c
696
struct scmi_xfers_info *minfo)
drivers/firmware/arm_scmi/driver.c
701
spin_lock_irqsave(&minfo->xfer_lock, flags);
drivers/firmware/arm_scmi/driver.c
702
if (hlist_empty(&minfo->free_xfers)) {
drivers/firmware/arm_scmi/driver.c
703
spin_unlock_irqrestore(&minfo->xfer_lock, flags);
drivers/firmware/arm_scmi/driver.c
708
xfer = hlist_entry(minfo->free_xfers.first, struct scmi_xfer, node);
drivers/firmware/arm_scmi/driver.c
719
spin_unlock_irqrestore(&minfo->xfer_lock, flags);
drivers/firmware/arm_scmi/driver.c
793
__scmi_xfer_put(struct scmi_xfers_info *minfo, struct scmi_xfer *xfer)
drivers/firmware/arm_scmi/driver.c
797
spin_lock_irqsave(&minfo->xfer_lock, flags);
drivers/firmware/arm_scmi/driver.c
800
struct scmi_info *info = tx_minfo_to_scmi_info(minfo);
drivers/firmware/arm_scmi/driver.c
802
scmi_xfer_token_clear(minfo, xfer);
drivers/firmware/arm_scmi/driver.c
809
hlist_add_head(&xfer->node, &minfo->free_xfers);
drivers/firmware/arm_scmi/driver.c
811
spin_unlock_irqrestore(&minfo->xfer_lock, flags);
drivers/firmware/arm_scmi/driver.c
843
scmi_xfer_lookup_unlocked(struct scmi_xfers_info *minfo, u16 xfer_id)
drivers/firmware/arm_scmi/driver.c
847
if (test_bit(xfer_id, minfo->xfer_alloc_table))
drivers/firmware/arm_scmi/driver.c
848
xfer = XFER_FIND(minfo->pending_xfers, xfer_id);
drivers/firmware/arm_scmi/vendors/imx/imx-sm-misc.c
464
struct scmi_imx_misc_info *minfo;
drivers/firmware/arm_scmi/vendors/imx/imx-sm-misc.c
470
minfo = devm_kzalloc(ph->dev, sizeof(*minfo), GFP_KERNEL);
drivers/firmware/arm_scmi/vendors/imx/imx-sm-misc.c
471
if (!minfo)
drivers/firmware/arm_scmi/vendors/imx/imx-sm-misc.c
474
ret = scmi_imx_misc_attributes_get(ph, minfo);
drivers/firmware/arm_scmi/vendors/imx/imx-sm-misc.c
490
return ph->set_priv(ph, minfo);
drivers/firmware/ti_sci.c
1074
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
119
struct ti_sci_xfers_info minfo;
drivers/firmware/ti_sci.c
1303
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
1372
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
1442
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
1520
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
1593
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
1658
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
1724
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
1785
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
1840
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
1906
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
1963
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
2020
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
2061
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
2107
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
2180
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
2297
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
239
struct ti_sci_xfers_info *minfo = &info->minfo;
drivers/firmware/ti_sci.c
251
if (!test_bit(xfer_id, minfo->xfer_alloc_table)) {
drivers/firmware/ti_sci.c
2519
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
256
xfer = &minfo->xfer_block[xfer_id];
drivers/firmware/ti_sci.c
2575
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
2631
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
2703
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
2772
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
2846
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
2898
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
2950
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
300
struct ti_sci_xfers_info *minfo = &info->minfo;
drivers/firmware/ti_sci.c
3006
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
3069
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
3127
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
3193
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
321
ret = down_timeout(&minfo->sem_xfer_count, timeout);
drivers/firmware/ti_sci.c
326
spin_lock_irqsave(&minfo->xfer_lock, flags);
drivers/firmware/ti_sci.c
327
bit_pos = find_first_zero_bit(minfo->xfer_alloc_table,
drivers/firmware/ti_sci.c
329
set_bit(bit_pos, minfo->xfer_alloc_table);
drivers/firmware/ti_sci.c
330
spin_unlock_irqrestore(&minfo->xfer_lock, flags);
drivers/firmware/ti_sci.c
341
xfer = &minfo->xfer_block[xfer_id];
drivers/firmware/ti_sci.c
366
static void ti_sci_put_one_xfer(struct ti_sci_xfers_info *minfo,
drivers/firmware/ti_sci.c
381
spin_lock_irqsave(&minfo->xfer_lock, flags);
drivers/firmware/ti_sci.c
382
clear_bit(xfer_id, minfo->xfer_alloc_table);
drivers/firmware/ti_sci.c
383
spin_unlock_irqrestore(&minfo->xfer_lock, flags);
drivers/firmware/ti_sci.c
386
up(&minfo->sem_xfer_count);
drivers/firmware/ti_sci.c
3916
struct ti_sci_xfers_info *minfo;
drivers/firmware/ti_sci.c
3944
minfo = &info->minfo;
drivers/firmware/ti_sci.c
3955
minfo->xfer_block = devm_kcalloc(dev,
drivers/firmware/ti_sci.c
3957
sizeof(*minfo->xfer_block),
drivers/firmware/ti_sci.c
3959
if (!minfo->xfer_block)
drivers/firmware/ti_sci.c
3962
minfo->xfer_alloc_table = devm_bitmap_zalloc(dev,
drivers/firmware/ti_sci.c
3965
if (!minfo->xfer_alloc_table)
drivers/firmware/ti_sci.c
3969
for (i = 0, xfer = minfo->xfer_block; i < desc->max_msgs; i++, xfer++) {
drivers/firmware/ti_sci.c
3991
spin_lock_init(&minfo->xfer_lock);
drivers/firmware/ti_sci.c
3992
sema_init(&minfo->sem_xfer_count, desc->max_msgs);
drivers/firmware/ti_sci.c
488
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
555
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
625
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
918
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/firmware/ti_sci.c
999
ti_sci_put_one_xfer(&info->minfo, xfer);
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
656
struct amdgpu_mode_info *minfo = &adev->mode_info;
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
679
crtc = (struct drm_crtc *)minfo->crtcs[i];
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
511
struct mqd_update_info minfo = {0};
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
521
minfo.cu_mask.count = args->num_cu_mask;
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
522
if (minfo.cu_mask.count == 0) {
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
531
if (minfo.cu_mask.count > max_num_cus) {
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
533
minfo.cu_mask.count = max_num_cus;
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
537
minfo.cu_mask.ptr = memdup_user(cu_mask_ptr, cu_mask_size);
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
538
if (IS_ERR(minfo.cu_mask.ptr)) {
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
540
return PTR_ERR(minfo.cu_mask.ptr);
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
545
retval = pqm_update_mqd(&p->pqm, args->queue_id, &minfo);
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
549
kfree(minfo.cu_mask.ptr);
drivers/gpu/drm/amd/amdkfd/kfd_debug.c
301
struct mqd_update_info minfo = {0};
drivers/gpu/drm/amd/amdkfd/kfd_debug.c
313
minfo.update_flag = enable ? UPDATE_FLAG_DBG_WA_ENABLE : UPDATE_FLAG_DBG_WA_DISABLE;
drivers/gpu/drm/amd/amdkfd/kfd_debug.c
316
err = q->device->dqm->ops.update_queue(q->device->dqm, q, &minfo);
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
1005
mqd_mgr->update_mqd(mqd_mgr, q->mqd, &q->properties, minfo);
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
946
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.h
149
struct queue *q, struct mqd_update_info *minfo);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.h
85
struct mqd_update_info *minfo);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c
174
struct queue_properties *q, struct mqd_update_info *minfo,
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c
204
update_cu_mask(mm, mqd, minfo);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c
219
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c
221
__update_mqd(mm, mqd, q, minfo, 0);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c
226
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c
338
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c
46
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c
51
if (!minfo || !minfo->cu_mask.ptr)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c
55
minfo->cu_mask.ptr, minfo->cu_mask.count, se_mask, 0);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c
167
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c
224
update_cu_mask(mm, mqd, minfo);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c
366
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c
46
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c
51
if (!minfo || !minfo->cu_mask.ptr)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v10.c
55
minfo->cu_mask.ptr, minfo->cu_mask.count, se_mask, 0);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c
207
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c
263
update_cu_mask(mm, mqd, minfo);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c
410
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c
45
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c
49
bool has_wa_flag = minfo && (minfo->update_flag & (UPDATE_FLAG_DBG_WA_ENABLE |
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c
52
if (!minfo || !(has_wa_flag || minfo->cu_mask.ptr))
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c
59
(minfo->update_flag & UPDATE_FLAG_DBG_WA_ENABLE) ? 0xffff : 0xffffffff;
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v11.c
74
minfo->cu_mask.ptr, minfo->cu_mask.count, se_mask, 0);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c
182
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c
238
update_cu_mask(mm, mqd, minfo);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c
323
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c
45
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c
50
if (!minfo || !minfo->cu_mask.ptr)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12.c
54
minfo->cu_mask.ptr, minfo->cu_mask.count, se_mask, 0);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c
111
struct mqd_update_info *minfo, uint32_t inst)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c
116
if (!minfo || !minfo->cu_mask.ptr)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c
120
minfo->cu_mask.ptr, minfo->cu_mask.count, se_mask, inst);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c
238
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c
398
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c
505
struct queue_properties *q, struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c
513
update_mqd(mm, m, q, minfo);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v12_1.c
515
update_cu_mask(mm, m, minfo, xcc);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
269
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
334
update_cu_mask(mm, mqd, minfo, 0);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
337
if (minfo && KFD_GC_VERSION(mm->dev) >= IP_VERSION(9, 4, 2)) {
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
338
if (minfo->update_flag & UPDATE_FLAG_IS_GWS)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
39
struct mqd_update_info *minfo);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
519
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
70
struct mqd_update_info *minfo, uint32_t inst)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
75
if (!minfo || !minfo->cu_mask.ptr)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
771
struct queue_properties *q, struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
779
update_mqd(mm, m, q, minfo);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
784
update_cu_mask(mm, m, minfo, xcc);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_v9.c
79
minfo->cu_mask.ptr, minfo->cu_mask.count, se_mask, inst);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
172
struct queue_properties *q, struct mqd_update_info *minfo,
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
235
update_cu_mask(mm, mqd, minfo);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
250
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
252
__update_mqd(mm, mqd, q, minfo, MTYPE_UC, 0);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
336
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
338
__update_mqd(mm, mqd, q, minfo, MTYPE_UC, 0);
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
360
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
49
struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
54
if (!minfo || !minfo->cu_mask.ptr)
drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
58
minfo->cu_mask.ptr, minfo->cu_mask.count, se_mask, 0);
drivers/gpu/drm/amd/amdkfd/kfd_priv.h
1394
struct mqd_update_info *minfo);
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
107
struct mqd_update_info minfo = {0};
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
162
minfo.update_flag = gws ? UPDATE_FLAG_IS_GWS : 0;
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
165
pqn->q, &minfo);
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
622
unsigned int qid, struct mqd_update_info *minfo)
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
634
if (pqn->q->properties.is_dbg_wa && minfo && minfo->cu_mask.ptr)
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
638
if (minfo && minfo->cu_mask.ptr &&
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
642
for (i = 0; i < minfo->cu_mask.count; i += 2) {
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
643
uint32_t cu_pair = (minfo->cu_mask.ptr[i / 32] >> (i % 32)) & 0x3;
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
653
pqn->q, minfo);
drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
657
if (minfo && minfo->cu_mask.ptr)
drivers/gpu/drm/mgag200/mgag200_vga_bmc.c
55
const struct mgag200_device_info *minfo = mdev->info;
drivers/gpu/drm/mgag200/mgag200_vga_bmc.c
66
count = drm_add_modes_noedid(connector, minfo->max_hdisplay, minfo->max_vdisplay);
drivers/gpu/drm/radeon/radeon_kms.c
233
struct radeon_mode_info *minfo = &rdev->mode_info;
drivers/gpu/drm/radeon/radeon_kms.c
267
crtc = (struct drm_crtc *)minfo->crtcs[i];
drivers/gpu/drm/radeon/rs780_dpm.c
52
struct radeon_mode_info *minfo = &rdev->mode_info;
drivers/gpu/drm/radeon/rs780_dpm.c
62
crtc = (struct drm_crtc *)minfo->crtcs[i];
drivers/mailbox/riscv-sbi-mpxy-mbox.c
721
struct sbi_mpxy_msi_info *minfo;
drivers/mailbox/riscv-sbi-mpxy-mbox.c
731
minfo = &mchan->attrs.msi_info;
drivers/mailbox/riscv-sbi-mpxy-mbox.c
732
minfo->msi_addr_lo = msg->address_lo;
drivers/mailbox/riscv-sbi-mpxy-mbox.c
733
minfo->msi_addr_hi = msg->address_hi;
drivers/mailbox/riscv-sbi-mpxy-mbox.c
734
minfo->msi_data = msg->data;
drivers/mailbox/riscv-sbi-mpxy-mbox.c
737
sizeof(*minfo) / sizeof(u32), (u32 *)minfo);
drivers/media/i2c/ccs/ccs-core.c
2763
struct ccs_module_info *minfo = &sensor->minfo;
drivers/media/i2c/ccs/ccs-core.c
2765
if (minfo->mipi_manufacturer_id)
drivers/media/i2c/ccs/ccs-core.c
2767
minfo->mipi_manufacturer_id, minfo->model_id,
drivers/media/i2c/ccs/ccs-core.c
2768
minfo->revision_number) + 1;
drivers/media/i2c/ccs/ccs-core.c
2771
minfo->smia_manufacturer_id, minfo->model_id,
drivers/media/i2c/ccs/ccs-core.c
2772
minfo->revision_number) + 1;
drivers/media/i2c/ccs/ccs-core.c
2783
struct ccs_module_info *minfo = &sensor->minfo;
drivers/media/i2c/ccs/ccs-core.c
2790
&minfo->mipi_manufacturer_id);
drivers/media/i2c/ccs/ccs-core.c
2791
if (!rval && !minfo->mipi_manufacturer_id)
drivers/media/i2c/ccs/ccs-core.c
2793
&minfo->smia_manufacturer_id);
drivers/media/i2c/ccs/ccs-core.c
2795
rval = ccs_read(sensor, MODULE_MODEL_ID, &minfo->model_id);
drivers/media/i2c/ccs/ccs-core.c
2800
&minfo->revision_number);
drivers/media/i2c/ccs/ccs-core.c
2801
minfo->revision_number |= rev << 8;
drivers/media/i2c/ccs/ccs-core.c
2804
rval = ccs_read(sensor, MODULE_DATE_YEAR, &minfo->module_year);
drivers/media/i2c/ccs/ccs-core.c
2807
&minfo->module_month);
drivers/media/i2c/ccs/ccs-core.c
2809
rval = ccs_read(sensor, MODULE_DATE_DAY, &minfo->module_day);
drivers/media/i2c/ccs/ccs-core.c
2814
&minfo->sensor_mipi_manufacturer_id);
drivers/media/i2c/ccs/ccs-core.c
2815
if (!rval && !minfo->sensor_mipi_manufacturer_id)
drivers/media/i2c/ccs/ccs-core.c
2817
&minfo->sensor_smia_manufacturer_id);
drivers/media/i2c/ccs/ccs-core.c
2820
&minfo->sensor_model_id);
drivers/media/i2c/ccs/ccs-core.c
2823
&minfo->sensor_revision_number);
drivers/media/i2c/ccs/ccs-core.c
2824
if (!rval && !minfo->sensor_revision_number)
drivers/media/i2c/ccs/ccs-core.c
2826
&minfo->sensor_revision_number);
drivers/media/i2c/ccs/ccs-core.c
2829
&minfo->sensor_firmware_version);
drivers/media/i2c/ccs/ccs-core.c
2833
rval = ccs_read(sensor, MIPI_CCS_VERSION, &minfo->ccs_version);
drivers/media/i2c/ccs/ccs-core.c
2834
if (!rval && !minfo->ccs_version)
drivers/media/i2c/ccs/ccs-core.c
2836
&minfo->smia_version);
drivers/media/i2c/ccs/ccs-core.c
2837
if (!rval && !minfo->ccs_version)
drivers/media/i2c/ccs/ccs-core.c
2839
&minfo->smiapp_version);
drivers/media/i2c/ccs/ccs-core.c
2846
if (minfo->mipi_manufacturer_id)
drivers/media/i2c/ccs/ccs-core.c
2848
minfo->mipi_manufacturer_id, minfo->model_id);
drivers/media/i2c/ccs/ccs-core.c
2851
minfo->smia_manufacturer_id, minfo->model_id);
drivers/media/i2c/ccs/ccs-core.c
2855
minfo->revision_number, minfo->module_year, minfo->module_month,
drivers/media/i2c/ccs/ccs-core.c
2856
minfo->module_day);
drivers/media/i2c/ccs/ccs-core.c
2858
if (minfo->sensor_mipi_manufacturer_id)
drivers/media/i2c/ccs/ccs-core.c
2860
minfo->sensor_mipi_manufacturer_id,
drivers/media/i2c/ccs/ccs-core.c
2861
minfo->sensor_model_id);
drivers/media/i2c/ccs/ccs-core.c
2864
minfo->sensor_smia_manufacturer_id,
drivers/media/i2c/ccs/ccs-core.c
2865
minfo->sensor_model_id);
drivers/media/i2c/ccs/ccs-core.c
2869
minfo->sensor_revision_number, minfo->sensor_firmware_version);
drivers/media/i2c/ccs/ccs-core.c
2871
if (minfo->ccs_version) {
drivers/media/i2c/ccs/ccs-core.c
2873
(minfo->ccs_version & CCS_MIPI_CCS_VERSION_MAJOR_MASK)
drivers/media/i2c/ccs/ccs-core.c
2875
(minfo->ccs_version & CCS_MIPI_CCS_VERSION_MINOR_MASK));
drivers/media/i2c/ccs/ccs-core.c
2876
minfo->name = CCS_NAME;
drivers/media/i2c/ccs/ccs-core.c
2880
minfo->smia_version, minfo->smiapp_version);
drivers/media/i2c/ccs/ccs-core.c
2881
minfo->name = SMIAPP_NAME;
drivers/media/i2c/ccs/ccs-core.c
2887
if (minfo->sensor_smia_manufacturer_id &&
drivers/media/i2c/ccs/ccs-core.c
2888
!minfo->smia_manufacturer_id && !minfo->model_id) {
drivers/media/i2c/ccs/ccs-core.c
2889
minfo->smia_manufacturer_id =
drivers/media/i2c/ccs/ccs-core.c
2890
minfo->sensor_smia_manufacturer_id;
drivers/media/i2c/ccs/ccs-core.c
2891
minfo->model_id = minfo->sensor_model_id;
drivers/media/i2c/ccs/ccs-core.c
2892
minfo->revision_number = minfo->sensor_revision_number;
drivers/media/i2c/ccs/ccs-core.c
2899
!= minfo->mipi_manufacturer_id)
drivers/media/i2c/ccs/ccs-core.c
2903
!= minfo->smia_manufacturer_id)
drivers/media/i2c/ccs/ccs-core.c
2905
if (ccs_module_idents[i].model_id != minfo->model_id)
drivers/media/i2c/ccs/ccs-core.c
2910
< (minfo->revision_number >> 8))
drivers/media/i2c/ccs/ccs-core.c
2914
!= (minfo->revision_number >> 8))
drivers/media/i2c/ccs/ccs-core.c
2918
minfo->name = ccs_module_idents[i].name;
drivers/media/i2c/ccs/ccs-core.c
2919
minfo->quirk = ccs_module_idents[i].quirk;
drivers/media/i2c/ccs/ccs-core.c
2923
dev_dbg(&client->dev, "the sensor is called %s\n", minfo->name);
drivers/media/i2c/ccs/ccs-core.c
3042
v4l2_i2c_subdev_set_name(&ssd->sd, client, sensor->minfo.name, name);
drivers/media/i2c/ccs/ccs-core.c
3229
bool is_smiapp = sensor->minfo.smiapp_version;
drivers/media/i2c/ccs/ccs-core.c
3240
sensor->minfo.mipi_manufacturer_id :
drivers/media/i2c/ccs/ccs-core.c
3241
sensor->minfo.smia_manufacturer_id;
drivers/media/i2c/ccs/ccs-core.c
3242
model_id = sensor->minfo.model_id;
drivers/media/i2c/ccs/ccs-core.c
3243
revision_number = sensor->minfo.revision_number;
drivers/media/i2c/ccs/ccs-core.c
3246
sensor->minfo.sensor_mipi_manufacturer_id :
drivers/media/i2c/ccs/ccs-core.c
3247
sensor->minfo.sensor_smia_manufacturer_id;
drivers/media/i2c/ccs/ccs-core.c
3248
model_id = sensor->minfo.sensor_model_id;
drivers/media/i2c/ccs/ccs-core.c
3249
revision_number = sensor->minfo.sensor_revision_number;
drivers/media/i2c/ccs/ccs-core.c
3381
sensor->minfo.smiapp_version) {
drivers/media/i2c/ccs/ccs-core.c
3444
if (sensor->minfo.smiapp_version &&
drivers/media/i2c/ccs/ccs-quirk.c
38
if (sensor->minfo.revision_number < 0x0300)
drivers/media/i2c/ccs/ccs-quirk.h
66
((sensor)->minfo.quirk && \
drivers/media/i2c/ccs/ccs-quirk.h
67
(sensor)->minfo.quirk->_quirk ? \
drivers/media/i2c/ccs/ccs-quirk.h
68
(sensor)->minfo.quirk->_quirk(sensor, ##__VA_ARGS__) : 0)
drivers/media/i2c/ccs/ccs-quirk.h
71
((sensor)->minfo.quirk ? \
drivers/media/i2c/ccs/ccs-quirk.h
72
(sensor)->minfo.quirk->flags & _quirk : 0)
drivers/media/i2c/ccs/ccs.h
243
struct ccs_module_info minfo;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
720
struct msix_info *minfo;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
734
minfo = s->ethrxq[ethqidx].msix;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
735
err = request_irq(minfo->vec,
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
737
minfo->desc,
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
742
cxgb4_set_msix_aff(adap, minfo->vec,
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
743
&minfo->aff_mask, ethqidx);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
749
minfo = s->ethrxq[ethqidx].msix;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
750
cxgb4_clear_msix_aff(minfo->vec, minfo->aff_mask);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
751
free_irq(minfo->vec, &s->ethrxq[ethqidx].rspq);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
760
struct msix_info *minfo;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
765
minfo = s->ethrxq[i].msix;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
766
cxgb4_clear_msix_aff(minfo->vec, minfo->aff_mask);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
767
free_irq(minfo->vec, &s->ethrxq[i].rspq);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c
326
struct msix_info *minfo;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c
331
minfo = rxq_info->uldrxq[idx].msix;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c
332
err = request_irq(minfo->vec,
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c
334
minfo->desc,
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c
339
cxgb4_set_msix_aff(adap, minfo->vec,
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c
340
&minfo->aff_mask, idx);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c
346
minfo = rxq_info->uldrxq[idx].msix;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c
347
cxgb4_clear_msix_aff(minfo->vec, minfo->aff_mask);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c
348
cxgb4_free_msix_idx_in_bmap(adap, minfo->idx);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c
349
free_irq(minfo->vec, &rxq_info->uldrxq[idx].rspq);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c
358
struct msix_info *minfo;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c
362
minfo = rxq_info->uldrxq[idx].msix;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c
363
cxgb4_clear_msix_aff(minfo->vec, minfo->aff_mask);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c
364
cxgb4_free_msix_idx_in_bmap(adap, minfo->idx);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.c
365
free_irq(minfo->vec, &rxq_info->uldrxq[idx].rspq);
drivers/net/ethernet/mediatek/mtk_ppe.h
121
u16 minfo;
drivers/net/wireless/intersil/p54/p54spi.c
426
struct p54_tx_info *minfo;
drivers/net/wireless/intersil/p54/p54spi.c
443
minfo = container_of((void *) dinfo, struct p54_tx_info,
drivers/net/wireless/intersil/p54/p54spi.c
445
info = container_of((void *) minfo, struct ieee80211_tx_info,
drivers/platform/chrome/cros_usbpd_logger.c
143
minfo = (struct mcdp_info *)r->payload;
drivers/platform/chrome/cros_usbpd_logger.c
145
MCDP_FAMILY(minfo->family),
drivers/platform/chrome/cros_usbpd_logger.c
146
MCDP_CHIPID(minfo->chipid));
drivers/platform/chrome/cros_usbpd_logger.c
148
minfo->irom.major, minfo->irom.minor,
drivers/platform/chrome/cros_usbpd_logger.c
149
minfo->irom.build, minfo->fw.major,
drivers/platform/chrome/cros_usbpd_logger.c
150
minfo->fw.minor, minfo->fw.build);
drivers/platform/chrome/cros_usbpd_logger.c
87
struct mcdp_info *minfo;
drivers/scsi/bfa/bfa_fcpim.c
3564
bfa_fcp_meminfo(struct bfa_iocfc_cfg_s *cfg, struct bfa_meminfo_s *minfo,
drivers/scsi/bfa/bfa_fcpim.c
3610
bfa_mem_dma_setup(minfo, seg_ptr,
drivers/scsi/bfa/bfa_fcpim.c
3613
bfa_mem_dma_setup(minfo, seg_ptr,
drivers/scsi/bfa/bfa_fcpim.c
3618
bfa_mem_kva_setup(minfo, fcp_kva, km_len);
drivers/scsi/bfa/bfa_svc.c
1420
bfa_lps_meminfo(struct bfa_iocfc_cfg_s *cfg, struct bfa_meminfo_s *minfo,
drivers/scsi/bfa/bfa_svc.c
1426
bfa_mem_kva_setup(minfo, lps_kva,
drivers/scsi/bfa/bfa_svc.c
1429
bfa_mem_kva_setup(minfo, lps_kva,
drivers/scsi/bfa/bfa_svc.c
2950
bfa_fcport_meminfo(struct bfa_iocfc_cfg_s *cfg, struct bfa_meminfo_s *minfo,
drivers/scsi/bfa/bfa_svc.c
2955
bfa_mem_dma_setup(minfo, fcport_dma, FCPORT_STATS_DMA_SZ);
drivers/scsi/bfa/bfa_svc.c
432
bfa_fcxp_meminfo(struct bfa_iocfc_cfg_s *cfg, struct bfa_meminfo_s *minfo,
drivers/scsi/bfa/bfa_svc.c
457
bfa_mem_dma_setup(minfo, seg_ptr,
drivers/scsi/bfa/bfa_svc.c
460
bfa_mem_dma_setup(minfo, seg_ptr,
drivers/scsi/bfa/bfa_svc.c
465
bfa_mem_kva_setup(minfo, fcxp_kva,
drivers/scsi/bfa/bfa_svc.c
4724
bfa_rport_meminfo(struct bfa_iocfc_cfg_s *cfg, struct bfa_meminfo_s *minfo,
drivers/scsi/bfa/bfa_svc.c
4733
bfa_mem_kva_setup(minfo, rport_kva,
drivers/scsi/bfa/bfa_svc.c
5069
bfa_sgpg_meminfo(struct bfa_iocfc_cfg_s *cfg, struct bfa_meminfo_s *minfo,
drivers/scsi/bfa/bfa_svc.c
5091
bfa_mem_dma_setup(minfo, seg_ptr,
drivers/scsi/bfa/bfa_svc.c
5094
bfa_mem_dma_setup(minfo, seg_ptr,
drivers/scsi/bfa/bfa_svc.c
5099
bfa_mem_kva_setup(minfo, sgpg_kva,
drivers/scsi/bfa/bfa_svc.c
5350
bfa_uf_meminfo(struct bfa_iocfc_cfg_s *cfg, struct bfa_meminfo_s *minfo,
drivers/scsi/bfa/bfa_svc.c
5365
bfa_mem_dma_setup(minfo, seg_ptr,
drivers/scsi/bfa/bfa_svc.c
5368
bfa_mem_dma_setup(minfo, seg_ptr,
drivers/scsi/bfa/bfa_svc.c
5373
bfa_mem_kva_setup(minfo, uf_kva, cfg->fwcfg.num_uf_bufs *
drivers/video/fbdev/matrox/g450_pll.c
101
n = ((tvco * (m+1) + minfo->features.pll.ref_freq) / (minfo->features.pll.ref_freq * 2)) - 2;
drivers/video/fbdev/matrox/g450_pll.c
106
static unsigned int g450_firstpll(const struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/g450_pll.c
135
return g450_nextpll(minfo, pi, vco, 0xFF0000 | p);
drivers/video/fbdev/matrox/g450_pll.c
138
static inline unsigned int g450_setpll(const struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/g450_pll.c
143
matroxfb_DAC_out(minfo, M1064_XPIXPLLAM, mnp >> 16);
drivers/video/fbdev/matrox/g450_pll.c
144
matroxfb_DAC_out(minfo, M1064_XPIXPLLAN, mnp >> 8);
drivers/video/fbdev/matrox/g450_pll.c
145
matroxfb_DAC_out(minfo, M1064_XPIXPLLAP, mnp);
drivers/video/fbdev/matrox/g450_pll.c
149
matroxfb_DAC_out(minfo, M1064_XPIXPLLBM, mnp >> 16);
drivers/video/fbdev/matrox/g450_pll.c
150
matroxfb_DAC_out(minfo, M1064_XPIXPLLBN, mnp >> 8);
drivers/video/fbdev/matrox/g450_pll.c
151
matroxfb_DAC_out(minfo, M1064_XPIXPLLBP, mnp);
drivers/video/fbdev/matrox/g450_pll.c
155
matroxfb_DAC_out(minfo, M1064_XPIXPLLCM, mnp >> 16);
drivers/video/fbdev/matrox/g450_pll.c
156
matroxfb_DAC_out(minfo, M1064_XPIXPLLCN, mnp >> 8);
drivers/video/fbdev/matrox/g450_pll.c
157
matroxfb_DAC_out(minfo, M1064_XPIXPLLCP, mnp);
drivers/video/fbdev/matrox/g450_pll.c
161
matroxfb_DAC_out(minfo, DAC1064_XSYSPLLM, mnp >> 16);
drivers/video/fbdev/matrox/g450_pll.c
162
matroxfb_DAC_out(minfo, DAC1064_XSYSPLLN, mnp >> 8);
drivers/video/fbdev/matrox/g450_pll.c
163
matroxfb_DAC_out(minfo, DAC1064_XSYSPLLP, mnp);
drivers/video/fbdev/matrox/g450_pll.c
167
matroxfb_DAC_out(minfo, M1064_XVIDPLLM, mnp >> 16);
drivers/video/fbdev/matrox/g450_pll.c
168
matroxfb_DAC_out(minfo, M1064_XVIDPLLN, mnp >> 8);
drivers/video/fbdev/matrox/g450_pll.c
169
matroxfb_DAC_out(minfo, M1064_XVIDPLLP, mnp);
drivers/video/fbdev/matrox/g450_pll.c
175
static inline unsigned int g450_cmppll(const struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/g450_pll.c
184
return (matroxfb_DAC_in(minfo, M1064_XPIXPLLAM) != m ||
drivers/video/fbdev/matrox/g450_pll.c
185
matroxfb_DAC_in(minfo, M1064_XPIXPLLAN) != n ||
drivers/video/fbdev/matrox/g450_pll.c
186
matroxfb_DAC_in(minfo, M1064_XPIXPLLAP) != p);
drivers/video/fbdev/matrox/g450_pll.c
189
return (matroxfb_DAC_in(minfo, M1064_XPIXPLLBM) != m ||
drivers/video/fbdev/matrox/g450_pll.c
190
matroxfb_DAC_in(minfo, M1064_XPIXPLLBN) != n ||
drivers/video/fbdev/matrox/g450_pll.c
191
matroxfb_DAC_in(minfo, M1064_XPIXPLLBP) != p);
drivers/video/fbdev/matrox/g450_pll.c
194
return (matroxfb_DAC_in(minfo, M1064_XPIXPLLCM) != m ||
drivers/video/fbdev/matrox/g450_pll.c
195
matroxfb_DAC_in(minfo, M1064_XPIXPLLCN) != n ||
drivers/video/fbdev/matrox/g450_pll.c
196
matroxfb_DAC_in(minfo, M1064_XPIXPLLCP) != p);
drivers/video/fbdev/matrox/g450_pll.c
199
return (matroxfb_DAC_in(minfo, DAC1064_XSYSPLLM) != m ||
drivers/video/fbdev/matrox/g450_pll.c
200
matroxfb_DAC_in(minfo, DAC1064_XSYSPLLN) != n ||
drivers/video/fbdev/matrox/g450_pll.c
201
matroxfb_DAC_in(minfo, DAC1064_XSYSPLLP) != p);
drivers/video/fbdev/matrox/g450_pll.c
204
return (matroxfb_DAC_in(minfo, M1064_XVIDPLLM) != m ||
drivers/video/fbdev/matrox/g450_pll.c
205
matroxfb_DAC_in(minfo, M1064_XVIDPLLN) != n ||
drivers/video/fbdev/matrox/g450_pll.c
206
matroxfb_DAC_in(minfo, M1064_XVIDPLLP) != p);
drivers/video/fbdev/matrox/g450_pll.c
211
static inline int g450_isplllocked(const struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/g450_pll.c
217
if (matroxfb_DAC_in(minfo, regidx) & 0x40) {
drivers/video/fbdev/matrox/g450_pll.c
222
r += matroxfb_DAC_in(minfo, regidx) & 0x40;
drivers/video/fbdev/matrox/g450_pll.c
231
static int g450_testpll(const struct matrox_fb_info *minfo, unsigned int mnp,
drivers/video/fbdev/matrox/g450_pll.c
234
return g450_isplllocked(minfo, g450_setpll(minfo, mnp, pll));
drivers/video/fbdev/matrox/g450_pll.c
247
void matroxfb_g450_setpll_cond(struct matrox_fb_info *minfo, unsigned int mnp,
drivers/video/fbdev/matrox/g450_pll.c
250
if (g450_cmppll(minfo, mnp, pll)) {
drivers/video/fbdev/matrox/g450_pll.c
251
g450_setpll(minfo, mnp, pll);
drivers/video/fbdev/matrox/g450_pll.c
255
static inline unsigned int g450_findworkingpll(struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/g450_pll.c
283
if (g450_testpll(minfo, mnp - 0x0300, pll) &&
drivers/video/fbdev/matrox/g450_pll.c
284
g450_testpll(minfo, mnp + 0x0300, pll) &&
drivers/video/fbdev/matrox/g450_pll.c
285
g450_testpll(minfo, mnp - 0x0200, pll) &&
drivers/video/fbdev/matrox/g450_pll.c
286
g450_testpll(minfo, mnp + 0x0200, pll) &&
drivers/video/fbdev/matrox/g450_pll.c
287
g450_testpll(minfo, mnp - 0x0100, pll) &&
drivers/video/fbdev/matrox/g450_pll.c
288
g450_testpll(minfo, mnp + 0x0100, pll)) {
drivers/video/fbdev/matrox/g450_pll.c
289
if (g450_testpll(minfo, mnp, pll)) {
drivers/video/fbdev/matrox/g450_pll.c
292
} else if (!found && g450_testpll(minfo, mnp, pll)) {
drivers/video/fbdev/matrox/g450_pll.c
298
g450_setpll(minfo, mnpfound, pll);
drivers/video/fbdev/matrox/g450_pll.c
30
static unsigned int g450_mnp2vco(const struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/g450_pll.c
311
static int g450_checkcache(struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/g450_pll.c
333
static int __g450_setclk(struct matrox_fb_info *minfo, unsigned int fout,
drivers/video/fbdev/matrox/g450_pll.c
351
xpwrctrl = matroxfb_DAC_in(minfo, M1064_XPWRCTRL);
drivers/video/fbdev/matrox/g450_pll.c
352
matroxfb_DAC_out(minfo, M1064_XPWRCTRL, xpwrctrl & ~M1064_XPWRCTRL_PANELPDN);
drivers/video/fbdev/matrox/g450_pll.c
355
tmp = matroxfb_DAC_in(minfo, M1064_XPIXCLKCTRL);
drivers/video/fbdev/matrox/g450_pll.c
360
matroxfb_DAC_out(minfo, M1064_XPIXCLKCTRL, tmp);
drivers/video/fbdev/matrox/g450_pll.c
363
if (fout >= minfo->max_pixel_clock_panellink)
drivers/video/fbdev/matrox/g450_pll.c
37
return (minfo->features.pll.ref_freq * n + (m >> 1)) / m;
drivers/video/fbdev/matrox/g450_pll.c
373
matroxfb_DAC_out(minfo, M1064_XPWRCTRL,
drivers/video/fbdev/matrox/g450_pll.c
394
pi = &minfo->limits.pixel;
drivers/video/fbdev/matrox/g450_pll.c
395
ci = &minfo->cache.pixel;
drivers/video/fbdev/matrox/g450_pll.c
40
unsigned int g450_mnp2f(const struct matrox_fb_info *minfo, unsigned int mnp)
drivers/video/fbdev/matrox/g450_pll.c
401
pci_read_config_dword(minfo->pcidev, PCI_OPTION_REG, &opt);
drivers/video/fbdev/matrox/g450_pll.c
403
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, opt | 0x20);
drivers/video/fbdev/matrox/g450_pll.c
406
pi = &minfo->limits.system;
drivers/video/fbdev/matrox/g450_pll.c
407
ci = &minfo->cache.system;
drivers/video/fbdev/matrox/g450_pll.c
416
tmp = matroxfb_DAC_in(minfo, M1064_XPWRCTRL);
drivers/video/fbdev/matrox/g450_pll.c
418
matroxfb_DAC_out(minfo, M1064_XPWRCTRL, tmp | 2);
drivers/video/fbdev/matrox/g450_pll.c
42
return g450_vco2f(mnp, g450_mnp2vco(minfo, mnp));
drivers/video/fbdev/matrox/g450_pll.c
421
mnp = matroxfb_DAC_in(minfo, M1064_XPIXPLLCM) << 16;
drivers/video/fbdev/matrox/g450_pll.c
422
mnp |= matroxfb_DAC_in(minfo, M1064_XPIXPLLCN) << 8;
drivers/video/fbdev/matrox/g450_pll.c
425
pi = &minfo->limits.video;
drivers/video/fbdev/matrox/g450_pll.c
426
ci = &minfo->cache.video;
drivers/video/fbdev/matrox/g450_pll.c
437
for (mnp = g450_firstpll(minfo, pi, &xvco, fout); mnp != NO_MORE_MNP; mnp = g450_nextpll(minfo, pi, &xvco, mnp)) {
drivers/video/fbdev/matrox/g450_pll.c
442
vco = g450_mnp2vco(minfo, mnp);
drivers/video/fbdev/matrox/g450_pll.c
455
&& vco != g450_mnp2vco(minfo, mnparray[idx-1])
drivers/video/fbdev/matrox/g450_pll.c
479
mnp = g450_checkcache(minfo, ci, mnparray[0]);
drivers/video/fbdev/matrox/g450_pll.c
481
matroxfb_g450_setpll_cond(minfo, mnp, pll);
drivers/video/fbdev/matrox/g450_pll.c
483
mnp = g450_findworkingpll(minfo, pll, mnparray, mnpcount);
drivers/video/fbdev/matrox/g450_pll.c
486
updatehwstate_clk(&minfo->hw, mnp, pll);
drivers/video/fbdev/matrox/g450_pll.c
496
int matroxfb_g450_setclk(struct matrox_fb_info *minfo, unsigned int fout,
drivers/video/fbdev/matrox/g450_pll.c
505
r = __g450_setclk(minfo, fout, pll, arr, arr + MNP_TABLE_SIZE);
drivers/video/fbdev/matrox/g450_pll.c
57
static unsigned int g450_nextpll(const struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/g450_pll.h
10
void matroxfb_g450_setpll_cond(struct matrox_fb_info *minfo, unsigned int mnp,
drivers/video/fbdev/matrox/g450_pll.h
7
int matroxfb_g450_setclk(struct matrox_fb_info *minfo, unsigned int fout,
drivers/video/fbdev/matrox/g450_pll.h
9
unsigned int g450_mnp2f(const struct matrox_fb_info *minfo, unsigned int mnp);
drivers/video/fbdev/matrox/i2c-matroxfb.c
102
static int i2c_bus_reg(struct i2c_bit_adapter* b, struct matrox_fb_info* minfo,
drivers/video/fbdev/matrox/i2c-matroxfb.c
107
b->minfo = minfo;
drivers/video/fbdev/matrox/i2c-matroxfb.c
112
minfo->fbcon.node);
drivers/video/fbdev/matrox/i2c-matroxfb.c
115
b->adapter.dev.parent = &minfo->pcidev->dev;
drivers/video/fbdev/matrox/i2c-matroxfb.c
142
static void* i2c_matroxfb_probe(struct matrox_fb_info* minfo) {
drivers/video/fbdev/matrox/i2c-matroxfb.c
152
matroxfb_DAC_out(minfo, DAC_XGENIODATA, 0xFF);
drivers/video/fbdev/matrox/i2c-matroxfb.c
153
matroxfb_DAC_out(minfo, DAC_XGENIOCTRL, 0x00);
drivers/video/fbdev/matrox/i2c-matroxfb.c
156
switch (minfo->chip) {
drivers/video/fbdev/matrox/i2c-matroxfb.c
159
err = i2c_bus_reg(&m2info->ddc1, minfo,
drivers/video/fbdev/matrox/i2c-matroxfb.c
164
err = i2c_bus_reg(&m2info->ddc1, minfo,
drivers/video/fbdev/matrox/i2c-matroxfb.c
171
if (minfo->devflags.dualhead) {
drivers/video/fbdev/matrox/i2c-matroxfb.c
172
err = i2c_bus_reg(&m2info->ddc2, minfo, DDC2_DATA, DDC2_CLK, "DDC:fb%u #1");
drivers/video/fbdev/matrox/i2c-matroxfb.c
178
err = i2c_bus_reg(&m2info->maven, minfo, MAT_DATA, MAT_CLK, "MAVEN:fb%u");
drivers/video/fbdev/matrox/i2c-matroxfb.c
200
static void i2c_matroxfb_remove(struct matrox_fb_info* minfo, void* data) {
drivers/video/fbdev/matrox/i2c-matroxfb.c
41
static int matroxfb_read_gpio(struct matrox_fb_info* minfo) {
drivers/video/fbdev/matrox/i2c-matroxfb.c
46
v = matroxfb_DAC_in(minfo, DAC_XGENIODATA);
drivers/video/fbdev/matrox/i2c-matroxfb.c
51
static void matroxfb_set_gpio(struct matrox_fb_info* minfo, int mask, int val) {
drivers/video/fbdev/matrox/i2c-matroxfb.c
56
v = (matroxfb_DAC_in(minfo, DAC_XGENIOCTRL) & mask) | val;
drivers/video/fbdev/matrox/i2c-matroxfb.c
57
matroxfb_DAC_out(minfo, DAC_XGENIOCTRL, v);
drivers/video/fbdev/matrox/i2c-matroxfb.c
59
matroxfb_DAC_out(minfo, DAC_XGENIODATA, 0x00);
drivers/video/fbdev/matrox/i2c-matroxfb.c
64
static inline void matroxfb_i2c_set(struct matrox_fb_info* minfo, int mask, int state) {
drivers/video/fbdev/matrox/i2c-matroxfb.c
69
matroxfb_set_gpio(minfo, ~mask, state);
drivers/video/fbdev/matrox/i2c-matroxfb.c
74
matroxfb_i2c_set(b->minfo, b->mask.data, state);
drivers/video/fbdev/matrox/i2c-matroxfb.c
79
matroxfb_i2c_set(b->minfo, b->mask.clock, state);
drivers/video/fbdev/matrox/i2c-matroxfb.c
84
return (matroxfb_read_gpio(b->minfo) & b->mask.data) ? 1 : 0;
drivers/video/fbdev/matrox/i2c-matroxfb.c
89
return (matroxfb_read_gpio(b->minfo) & b->mask.clock) ? 1 : 0;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1001
if (!minfo->devflags.noinit) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1004
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, hw->MXoptionReg);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1009
if (minfo->devflags.g450dac) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
101
static void DAC1064_setmclk(struct matrox_fb_info *minfo, int oscinfo,
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1011
hw->DACclk[3] = inDAC1064(minfo, DAC1064_XSYSPLLM);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1012
hw->DACclk[4] = inDAC1064(minfo, DAC1064_XSYSPLLN);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1013
hw->DACclk[5] = inDAC1064(minfo, DAC1064_XSYSPLLP);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1015
DAC1064_setmclk(minfo, DAC1064_OPT_RESERVED | DAC1064_OPT_MDIV2 | DAC1064_OPT_GDIV1 | DAC1064_OPT_SCLK_PLL, 133333);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1017
if (minfo->devflags.accelerator == FB_ACCEL_MATROX_MGAG400) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1018
if (minfo->devflags.dfp_type == -1) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1019
minfo->devflags.dfp_type = inDAC1064(minfo, 0x1F);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1022
if (minfo->devflags.noinit)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1024
if (minfo->devflags.g450dac) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1026
MGAG100_setPixClock(minfo, 4, 25175);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1027
MGAG100_setPixClock(minfo, 5, 28322);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1029
b = inDAC1064(minfo, M1064_XGENIODATA) & ~1;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1030
outDAC1064(minfo, M1064_XGENIODATA, b);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1031
b = inDAC1064(minfo, M1064_XGENIOCTRL) | 1;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1032
outDAC1064(minfo, M1064_XGENIOCTRL, b);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1039
static void MGA1064_restore(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1042
struct matrox_hw_state *hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
105
struct matrox_hw_state *hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1050
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, hw->MXoptionReg);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1056
DAC1064_restore_1(minfo);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1057
matroxfb_vgaHWrestore(minfo);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1058
minfo->crtc1.panpos = -1;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1061
DAC1064_restore_2(minfo);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1066
static void MGAG100_restore(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1069
struct matrox_hw_state *hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1077
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, hw->MXoptionReg);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1080
DAC1064_restore_1(minfo);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1081
matroxfb_vgaHWrestore(minfo);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1082
if (minfo->devflags.support32MB)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1084
minfo->crtc1.panpos = -1;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
1087
DAC1064_restore_2(minfo);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
109
if (minfo->devflags.noinit) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
111
hw->DACclk[3] = inDAC1064(minfo, DAC1064_XSYSPLLM);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
112
hw->DACclk[4] = inDAC1064(minfo, DAC1064_XSYSPLLN);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
113
hw->DACclk[5] = inDAC1064(minfo, DAC1064_XSYSPLLP);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
117
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
132
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
134
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
143
DAC1064_calcclock(minfo, fmem, minfo->max_pixel_clock, &m, &n, &p);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
144
outDAC1064(minfo, DAC1064_XSYSPLLM, hw->DACclk[3] = m);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
145
outDAC1064(minfo, DAC1064_XSYSPLLN, hw->DACclk[4] = n);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
146
outDAC1064(minfo, DAC1064_XSYSPLLP, hw->DACclk[5] = p);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
148
if (inDAC1064(minfo, DAC1064_XSYSPLLSTAT) & 0x40)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
159
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
161
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mx);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
166
static void g450_set_plls(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
170
struct matrox_hw_state *hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
177
pixelmnp = minfo->crtc1.mnp;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
178
videomnp = minfo->crtc2.mnp;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
182
} else if (minfo->crtc2.pixclock == minfo->features.pll.ref_freq) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
197
outDAC1064(minfo, M1064_XPWRCTRL, hw->DACreg[POS1064_XPWRCTRL]);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
198
matroxfb_g450_setpll_cond(minfo, videomnp, M_VIDEO_PLL);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
205
outDAC1064(minfo, M1064_XPIXCLKCTRL, hw->DACreg[POS1064_XPIXCLKCTRL]);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
206
matroxfb_g450_setpll_cond(minfo, pixelmnp, M_PIXEL_PLL_C);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
213
pxc = minfo->crtc1.pixclock;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
214
if (pxc == 0 || minfo->outputs[2].src == MATROXFB_SRC_CRTC2) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
215
pxc = minfo->crtc2.pixclock;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
217
if (minfo->chip == MGA_G550) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
258
void DAC1064_global_init(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
260
struct matrox_hw_state *hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
266
if (minfo->devflags.g450dac) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
270
switch (minfo->outputs[0].src) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
279
switch (minfo->outputs[1].src) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
284
if (minfo->outputs[1].mode == MATROXFB_OUTPUT_MODE_MONITOR) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
294
switch (minfo->outputs[2].src) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
313
g450_set_plls(minfo);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
317
if (minfo->outputs[1].src == MATROXFB_SRC_CRTC1) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
320
} else if (minfo->outputs[1].src == MATROXFB_SRC_CRTC2) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
322
} else if (minfo->outputs[2].src == MATROXFB_SRC_CRTC1)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
327
if (minfo->outputs[0].src != MATROXFB_SRC_NONE)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
332
void DAC1064_global_restore(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
334
struct matrox_hw_state *hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
336
outDAC1064(minfo, M1064_XPIXCLKCTRL, hw->DACreg[POS1064_XPIXCLKCTRL]);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
337
outDAC1064(minfo, M1064_XMISCCTRL, hw->DACreg[POS1064_XMISCCTRL]);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
338
if (minfo->devflags.accelerator == FB_ACCEL_MATROX_MGAG400) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
339
outDAC1064(minfo, 0x20, 0x04);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
340
outDAC1064(minfo, 0x1F, minfo->devflags.dfp_type);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
341
if (minfo->devflags.g450dac) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
342
outDAC1064(minfo, M1064_XSYNCCTRL, 0xCC);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
343
outDAC1064(minfo, M1064_XPWRCTRL, hw->DACreg[POS1064_XPWRCTRL]);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
344
outDAC1064(minfo, M1064_XPANMODE, hw->DACreg[POS1064_XPANMODE]);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
345
outDAC1064(minfo, M1064_XOUTPUTCONN, hw->DACreg[POS1064_XOUTPUTCONN]);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
350
static int DAC1064_init_1(struct matrox_fb_info *minfo, struct my_timming *m)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
352
struct matrox_hw_state *hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
357
switch (minfo->fbcon.var.bits_per_pixel) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
363
if (minfo->fbcon.var.green.length == 5)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
377
hw->DACreg[POS1064_XVREFCTRL] = minfo->features.DAC1064.xvrefctrl;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
38
static void DAC1064_calcclock(const struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
383
DAC1064_global_init(minfo);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
387
static int DAC1064_init_2(struct matrox_fb_info *minfo, struct my_timming *m)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
389
struct matrox_hw_state *hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
393
if (minfo->fbcon.var.bits_per_pixel > 16) { /* 256 entries */
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
401
} else if (minfo->fbcon.var.bits_per_pixel > 8) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
402
if (minfo->fbcon.var.green.length == 5) { /* 0..31, 128..159 */
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
430
static void DAC1064_restore_1(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
432
struct matrox_hw_state *hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
440
if ((inDAC1064(minfo, DAC1064_XSYSPLLM) != hw->DACclk[3]) ||
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
441
(inDAC1064(minfo, DAC1064_XSYSPLLN) != hw->DACclk[4]) ||
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
442
(inDAC1064(minfo, DAC1064_XSYSPLLP) != hw->DACclk[5])) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
443
outDAC1064(minfo, DAC1064_XSYSPLLM, hw->DACclk[3]);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
444
outDAC1064(minfo, DAC1064_XSYSPLLN, hw->DACclk[4]);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
445
outDAC1064(minfo, DAC1064_XSYSPLLP, hw->DACclk[5]);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
452
outDAC1064(minfo, MGA1064_DAC_regs[i], hw->DACreg[i]);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
456
DAC1064_global_restore(minfo);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
461
static void DAC1064_restore_2(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
472
dprintk("R%02X=%02X ", MGA1064_DAC_regs[i], minfo->hw.DACreg[i]);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
477
dprintk("C%02X=%02X ", i, minfo->hw.DACclk[i]);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
489
DAC1064_setpclk(minfo, m->pixclock);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
494
outDAC1064(minfo, M1064_XPIXPLLCM + i, minfo->hw.DACclk[i]);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
496
if (inDAC1064(minfo, M1064_XPIXPLLSTAT) & 0x40)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
50
fvco = PLL_calcclock(minfo, freq, fmax, in, feed, &p);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
519
m->mnp = matroxfb_g450_setclk(minfo, m->pixclock, (m->crtc == MATROXFB_SRC_CRTC1) ? M_PIXEL_PLL_C : M_VIDEO_PLL);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
521
m->pixclock = g450_mnp2f(minfo, m->mnp);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
537
static int MGA1064_init(struct matrox_fb_info *minfo, struct my_timming *m)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
539
struct matrox_hw_state *hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
543
if (DAC1064_init_1(minfo, m)) return 1;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
544
if (matroxfb_vgaHWinit(minfo, m)) return 1;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
554
if (DAC1064_init_2(minfo, m)) return 1;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
560
static int MGAG100_init(struct matrox_fb_info *minfo, struct my_timming *m)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
562
struct matrox_hw_state *hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
566
if (DAC1064_init_1(minfo, m)) return 1;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
568
if (matroxfb_vgaHWinit(minfo, m)) return 1;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
578
if (DAC1064_init_2(minfo, m)) return 1;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
584
static void MGA1064_ramdac_init(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
590
minfo->features.pll.vco_freq_min = 62000;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
591
minfo->features.pll.ref_freq = 14318;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
592
minfo->features.pll.feed_div_min = 100;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
593
minfo->features.pll.feed_div_max = 127;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
594
minfo->features.pll.in_div_min = 1;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
595
minfo->features.pll.in_div_max = 31;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
596
minfo->features.pll.post_shift_max = 3;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
597
minfo->features.DAC1064.xvrefctrl = DAC1064_XVREFCTRL_EXTERNAL;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
599
DAC1064_setmclk(minfo, DAC1064_OPT_MDIV2 | DAC1064_OPT_GDIV3 | DAC1064_OPT_SCLK_PLL, 133333);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
611
static void MGAG100_progPixClock(const struct matrox_fb_info *minfo, int flags,
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
620
outDAC1064(minfo, M1064_XPIXCLKCTRL, inDAC1064(minfo, M1064_XPIXCLKCTRL) | M1064_XPIXCLKCTRL_DIS |
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
627
outDAC1064(minfo, reg++, m);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
628
outDAC1064(minfo, reg++, n);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
629
outDAC1064(minfo, reg, p);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
641
if (inDAC1064(minfo, M1064_XPIXPLLSTAT) & 0x40)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
647
selClk = inDAC1064(minfo, M1064_XPIXCLKCTRL) & ~M1064_XPIXCLKCTRL_SRC_MASK;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
653
outDAC1064(minfo, M1064_XPIXCLKCTRL, selClk);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
654
outDAC1064(minfo, M1064_XPIXCLKCTRL, inDAC1064(minfo, M1064_XPIXCLKCTRL) & ~M1064_XPIXCLKCTRL_DIS);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
657
static void MGAG100_setPixClock(const struct matrox_fb_info *minfo, int flags,
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
664
DAC1064_calcclock(minfo, freq, minfo->max_pixel_clock, &m, &n, &p);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
665
MGAG100_progPixClock(minfo, flags, m, n, p);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
670
static int MGA1064_preinit(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
675
struct matrox_hw_state *hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
680
minfo->capable.text = 1;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
681
minfo->capable.vxres = vxres_mystique;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
683
minfo->outputs[0].output = &m1064;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
684
minfo->outputs[0].src = minfo->outputs[0].default_src;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
685
minfo->outputs[0].data = minfo;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
686
minfo->outputs[0].mode = MATROXFB_OUTPUT_MODE_MONITOR;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
688
if (minfo->devflags.noinit)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
692
if (minfo->devflags.novga)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
694
if (minfo->devflags.nobios)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
696
if (minfo->devflags.nopciretry)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
698
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, hw->MXoptionReg);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
708
static void MGA1064_reset(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
713
MGA1064_ramdac_init(minfo);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
718
static void g450_mclk_init(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
721
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg | 4);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
722
pci_write_config_dword(minfo->pcidev, PCI_OPTION3_REG, minfo->values.reg.opt3 & ~0x00300C03);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
723
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
725
if (((minfo->values.reg.opt3 & 0x000003) == 0x000003) ||
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
726
((minfo->values.reg.opt3 & 0x000C00) == 0x000C00) ||
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
727
((minfo->values.reg.opt3 & 0x300000) == 0x300000)) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
728
matroxfb_g450_setclk(minfo, minfo->values.pll.video, M_VIDEO_PLL);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
734
pwr = inDAC1064(minfo, M1064_XPWRCTRL) & ~0x02;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
735
outDAC1064(minfo, M1064_XPWRCTRL, pwr);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
738
matroxfb_g450_setclk(minfo, minfo->values.pll.system, M_SYSTEM_PLL);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
741
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg | 4);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
742
pci_write_config_dword(minfo->pcidev, PCI_OPTION3_REG, minfo->values.reg.opt3);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
743
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
747
static void g450_memory_init(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
750
minfo->hw.MXoptionReg &= ~0x001F8000;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
751
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
754
minfo->hw.MXoptionReg &= ~0x00207E00;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
755
minfo->hw.MXoptionReg |= 0x00207E00 & minfo->values.reg.opt;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
756
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
757
pci_write_config_dword(minfo->pcidev, PCI_OPTION2_REG, minfo->values.reg.opt2);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
759
mga_outl(M_CTLWTST, minfo->values.reg.mctlwtst);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
762
pci_write_config_dword(minfo->pcidev, PCI_MEMMISC_REG, minfo->values.reg.memmisc & ~0x80000000U);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
763
mga_outl(M_MEMRDBK, minfo->values.reg.memrdbk);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
764
mga_outl(M_MACCESS, minfo->values.reg.maccess);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
766
pci_write_config_dword(minfo->pcidev, PCI_MEMMISC_REG, minfo->values.reg.memmisc | 0x80000000U);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
770
if (minfo->values.memory.ddr && (!minfo->values.memory.emrswen || !minfo->values.memory.dll)) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
771
mga_outl(M_MEMRDBK, minfo->values.reg.memrdbk & ~0x1000);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
773
mga_outl(M_MACCESS, minfo->values.reg.maccess | 0x8000);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
777
minfo->hw.MXoptionReg |= 0x001F8000 & minfo->values.reg.opt;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
778
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
784
if (minfo->values.reg.mctlwtst != minfo->values.reg.mctlwtst_core) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
785
mga_outl(M_CTLWTST, minfo->values.reg.mctlwtst_core);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
790
static void g450_preinit(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
797
minfo->hw.MXoptionReg &= 0xC0000100;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
798
minfo->hw.MXoptionReg |= 0x00000020;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
799
if (minfo->devflags.novga)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
800
minfo->hw.MXoptionReg &= ~0x00000100;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
801
if (minfo->devflags.nobios)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
802
minfo->hw.MXoptionReg &= ~0x40000000;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
803
if (minfo->devflags.nopciretry)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
804
minfo->hw.MXoptionReg |= 0x20000000;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
805
minfo->hw.MXoptionReg |= minfo->values.reg.opt & 0x03400040;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
806
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
814
curctl = inDAC1064(minfo, M1064_XCURCTRL);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
815
outDAC1064(minfo, M1064_XCURCTRL, 0);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
820
g450_mclk_init(minfo);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
821
g450_memory_init(minfo);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
824
matroxfb_g450_setclk(minfo, 25175, M_PIXEL_PLL_A);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
825
matroxfb_g450_setclk(minfo, 28322, M_PIXEL_PLL_B);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
831
outDAC1064(minfo, M1064_XCURCTRL, curctl);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
839
static int MGAG100_preinit(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
844
struct matrox_hw_state *hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
854
if (minfo->devflags.g450dac) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
855
minfo->features.pll.vco_freq_min = 130000; /* my sample: >118 */
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
857
minfo->features.pll.vco_freq_min = 62000;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
859
if (!minfo->features.pll.ref_freq) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
860
minfo->features.pll.ref_freq = 27000;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
862
minfo->features.pll.feed_div_min = 7;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
863
minfo->features.pll.feed_div_max = 127;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
864
minfo->features.pll.in_div_min = 1;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
865
minfo->features.pll.in_div_max = 31;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
866
minfo->features.pll.post_shift_max = 3;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
867
minfo->features.DAC1064.xvrefctrl = DAC1064_XVREFCTRL_G100_DEFAULT;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
869
minfo->capable.text = 1;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
870
minfo->capable.vxres = vxres_g100;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
871
minfo->capable.plnwt = minfo->devflags.accelerator == FB_ACCEL_MATROX_MGAG100
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
872
? minfo->devflags.sgram : 1;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
874
if (minfo->devflags.g450dac) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
875
minfo->outputs[0].output = &g450out;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
877
minfo->outputs[0].output = &m1064;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
879
minfo->outputs[0].src = minfo->outputs[0].default_src;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
880
minfo->outputs[0].data = minfo;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
881
minfo->outputs[0].mode = MATROXFB_OUTPUT_MODE_MONITOR;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
883
if (minfo->devflags.g450dac) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
888
if (minfo->devflags.noinit)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
89
static void DAC1064_setpclk(struct matrox_fb_info *minfo, unsigned long fout)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
890
if (minfo->devflags.g450dac) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
891
g450_preinit(minfo);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
896
if (minfo->devflags.novga)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
898
if (minfo->devflags.nobios)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
900
if (minfo->devflags.nopciretry)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
902
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, hw->MXoptionReg);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
903
DAC1064_setmclk(minfo, DAC1064_OPT_MDIV2 | DAC1064_OPT_GDIV3 | DAC1064_OPT_SCLK_PCI, 133333);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
905
if (minfo->devflags.accelerator == FB_ACCEL_MATROX_MGAG100) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
906
pci_read_config_dword(minfo->pcidev, PCI_OPTION2_REG, &reg50);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
908
pci_write_config_dword(minfo->pcidev, PCI_OPTION2_REG, reg50);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
911
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, hw->MXoptionReg);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
912
mga_outl(M_CTLWTST, minfo->values.reg.mctlwtst);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
922
pci_write_config_dword(minfo->pcidev, PCI_OPTION2_REG, reg50);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
928
mga_writeb(minfo->video.vbase, 0x0000, 0xAA);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
929
mga_writeb(minfo->video.vbase, 0x0800, 0x55);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
930
mga_writeb(minfo->video.vbase, 0x4000, 0x55);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
932
if (mga_readb(minfo->video.vbase, 0x0000) != 0xAA) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
937
} else if (minfo->devflags.accelerator == FB_ACCEL_MATROX_MGAG200) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
938
pci_read_config_dword(minfo->pcidev, PCI_OPTION2_REG, &reg50);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
940
pci_write_config_dword(minfo->pcidev, PCI_OPTION2_REG, reg50);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
942
if (minfo->devflags.memtype == -1)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
943
hw->MXoptionReg |= minfo->values.reg.opt & 0x1C00;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
945
hw->MXoptionReg |= (minfo->devflags.memtype & 7) << 10;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
946
if (minfo->devflags.sgram)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
948
mga_outl(M_CTLWTST, minfo->values.reg.mctlwtst);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
949
mga_outl(M_MEMRDBK, minfo->values.reg.memrdbk);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
95
DAC1064_calcclock(minfo, fout, minfo->max_pixel_clock, &m, &n, &p);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
954
mga_outw(M_MEMRDBK, minfo->values.reg.memrdbk);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
957
pci_read_config_dword(minfo->pcidev, PCI_OPTION2_REG, &reg50);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
96
minfo->hw.DACclk[0] = m;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
960
pci_write_config_dword(minfo->pcidev, PCI_OPTION2_REG, reg50);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
962
if (minfo->devflags.memtype == -1)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
963
hw->MXoptionReg |= minfo->values.reg.opt & 0x1C00;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
965
hw->MXoptionReg |= (minfo->devflags.memtype & 7) << 10;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
966
if (minfo->devflags.sgram)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
968
mga_outl(M_CTLWTST, minfo->values.reg.mctlwtst);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
969
mga_outl(M_MEMRDBK, minfo->values.reg.memrdbk);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
97
minfo->hw.DACclk[1] = n;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
974
mga_outl(M_MEMRDBK, minfo->values.reg.memrdbk);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
977
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, hw->MXoptionReg);
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
98
minfo->hw.DACclk[2] = p;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
981
static void MGAG100_reset(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
984
struct matrox_hw_state *hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_DAC1064.c
994
if (b == minfo->pcidev->bus->number) {
drivers/video/fbdev/matrox/matroxfb_DAC1064.h
15
void DAC1064_global_init(struct matrox_fb_info *minfo);
drivers/video/fbdev/matrox/matroxfb_DAC1064.h
16
void DAC1064_global_restore(struct matrox_fb_info *minfo);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
284
static int Ti3026_calcclock(const struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
293
fvco = PLL_calcclock(minfo, freq, fmax, &lin, &lfeed, &lpost);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
300
static int Ti3026_setpclk(struct matrox_fb_info *minfo, int clk)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
304
struct matrox_hw_state *hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
308
f_pll = Ti3026_calcclock(minfo, clk, minfo->max_pixel_clock, &pixin, &pixfeed, &pixpost);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
318
Bpp = minfo->curr.final_bppShift;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
320
if (minfo->fbcon.var.bits_per_pixel == 24) {
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
339
if (minfo->fbcon.var.bits_per_pixel == 24) {
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
342
if (minfo->accel.ramdac_rev > 0x20) {
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
343
if (isInterleave(minfo))
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
350
if (isInterleave(minfo))
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
358
if (minfo->devflags.mga_24bpp_fix)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
370
static int Ti3026_init(struct matrox_fb_info *minfo, struct my_timming *m)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
372
u_int8_t muxctrl = isInterleave(minfo) ? TVP3026_XMUXCTRL_MEMORY_64BIT : TVP3026_XMUXCTRL_MEMORY_32BIT;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
373
struct matrox_hw_state *hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
378
switch (minfo->fbcon.var.bits_per_pixel) {
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
393
hw->DACreg[POS3026_XTRUECOLORCTRL] = (minfo->fbcon.var.green.length == 5) ? (TVP3026_XTRUECOLORCTRL_DIRECTCOLOR | TVP3026_XTRUECOLORCTRL_ORGB_1555) : (TVP3026_XTRUECOLORCTRL_DIRECTCOLOR | TVP3026_XTRUECOLORCTRL_RGB_565);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
410
if (matroxfb_vgaHWinit(minfo, m)) return 1;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
422
if (minfo->video.len < 0x400000)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
424
else if (minfo->video.len > 0x400000)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
436
if (isInterleave(minfo)) hw->MXoptionReg |= 0x00001000;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
439
Ti3026_setpclk(minfo, m->pixclock);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
443
static void ti3026_setMCLK(struct matrox_fb_info *minfo, int fout)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
453
f_pll = Ti3026_calcclock(minfo, fout, minfo->max_pixel_clock, &mclk_n, &mclk_m, &mclk_p);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
456
outTi3026(minfo, TVP3026_XPLLADDR, 0xFC);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
457
pclk_n = inTi3026(minfo, TVP3026_XPIXPLLDATA);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
458
outTi3026(minfo, TVP3026_XPLLADDR, 0xFD);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
459
pclk_m = inTi3026(minfo, TVP3026_XPIXPLLDATA);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
460
outTi3026(minfo, TVP3026_XPLLADDR, 0xFE);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
461
pclk_p = inTi3026(minfo, TVP3026_XPIXPLLDATA);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
464
outTi3026(minfo, TVP3026_XPLLADDR, 0xFE);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
465
outTi3026(minfo, TVP3026_XPIXPLLDATA, 0x00);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
468
outTi3026(minfo, TVP3026_XPLLADDR, 0xFC);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
469
outTi3026(minfo, TVP3026_XPIXPLLDATA, mclk_n | 0xC0);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
470
outTi3026(minfo, TVP3026_XPIXPLLDATA, mclk_m);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
471
outTi3026(minfo, TVP3026_XPIXPLLDATA, mclk_p | 0xB0);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
475
if (inTi3026(minfo, TVP3026_XPIXPLLDATA) & 0x40)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
483
mclk_ctl = inTi3026(minfo, TVP3026_XMEMPLLCTRL);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
484
outTi3026(minfo, TVP3026_XMEMPLLCTRL, mclk_ctl & 0xE7);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
485
outTi3026(minfo, TVP3026_XMEMPLLCTRL, (mclk_ctl & 0xE7) | TVP3026_XMEMPLLCTRL_STROBEMKC4);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
488
outTi3026(minfo, TVP3026_XPLLADDR, 0xFB);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
489
outTi3026(minfo, TVP3026_XMEMPLLDATA, 0x00);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
492
outTi3026(minfo, TVP3026_XPLLADDR, 0xF3);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
493
outTi3026(minfo, TVP3026_XMEMPLLDATA, mclk_n | 0xC0);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
494
outTi3026(minfo, TVP3026_XMEMPLLDATA, mclk_m);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
495
outTi3026(minfo, TVP3026_XMEMPLLDATA, mclk_p | 0xB0);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
499
if (inTi3026(minfo, TVP3026_XMEMPLLDATA) & 0x40)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
507
if (isMilleniumII(minfo)) {
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
516
minfo->hw.MXoptionReg = (minfo->hw.MXoptionReg & ~0x000F0000) | (rfhcnt << 16);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
517
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, minfo->hw.MXoptionReg);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
520
outTi3026(minfo, TVP3026_XMEMPLLCTRL, (mclk_ctl & 0xE7) | TVP3026_XMEMPLLCTRL_MCLK_MCLKPLL);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
521
outTi3026(minfo, TVP3026_XMEMPLLCTRL, (mclk_ctl ) | TVP3026_XMEMPLLCTRL_MCLK_MCLKPLL | TVP3026_XMEMPLLCTRL_STROBEMKC4);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
524
outTi3026(minfo, TVP3026_XPLLADDR, 0xFE);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
525
outTi3026(minfo, TVP3026_XPIXPLLDATA, 0x00);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
528
outTi3026(minfo, TVP3026_XPLLADDR, 0xFC);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
529
outTi3026(minfo, TVP3026_XPIXPLLDATA, pclk_n);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
530
outTi3026(minfo, TVP3026_XPIXPLLDATA, pclk_m);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
531
outTi3026(minfo, TVP3026_XPIXPLLDATA, pclk_p);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
535
if (inTi3026(minfo, TVP3026_XPIXPLLDATA) & 0x40)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
543
static void ti3026_ramdac_init(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
547
minfo->features.pll.vco_freq_min = 110000;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
548
minfo->features.pll.ref_freq = 114545;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
549
minfo->features.pll.feed_div_min = 2;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
550
minfo->features.pll.feed_div_max = 24;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
551
minfo->features.pll.in_div_min = 2;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
552
minfo->features.pll.in_div_max = 63;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
553
minfo->features.pll.post_shift_max = 3;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
554
if (minfo->devflags.noinit)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
556
ti3026_setMCLK(minfo, 60000);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
559
static void Ti3026_restore(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
563
struct matrox_hw_state *hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
577
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, hw->MXoptionReg);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
581
matroxfb_vgaHWrestore(minfo);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
585
minfo->crtc1.panpos = -1;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
590
outTi3026(minfo, DACseq[i], hw->DACreg[i]);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
593
outTi3026(minfo, TVP3026_XPLLADDR, 0x00);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
594
progdac[0] = inTi3026(minfo, TVP3026_XPIXPLLDATA);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
595
progdac[3] = inTi3026(minfo, TVP3026_XLOOPPLLDATA);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
596
outTi3026(minfo, TVP3026_XPLLADDR, 0x15);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
597
progdac[1] = inTi3026(minfo, TVP3026_XPIXPLLDATA);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
598
progdac[4] = inTi3026(minfo, TVP3026_XLOOPPLLDATA);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
599
outTi3026(minfo, TVP3026_XPLLADDR, 0x2A);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
600
progdac[2] = inTi3026(minfo, TVP3026_XPIXPLLDATA);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
601
progdac[5] = inTi3026(minfo, TVP3026_XLOOPPLLDATA);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
610
outTi3026(minfo, TVP3026_XCLKCTRL, hw->DACreg[POS3026_XCLKCTRL]);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
611
outTi3026(minfo, TVP3026_XPLLADDR, 0x2A);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
612
outTi3026(minfo, TVP3026_XLOOPPLLDATA, 0);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
613
outTi3026(minfo, TVP3026_XPIXPLLDATA, 0);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
615
outTi3026(minfo, TVP3026_XPLLADDR, 0x00);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
617
outTi3026(minfo, TVP3026_XPIXPLLDATA, hw->DACclk[i]);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
621
outTi3026(minfo, TVP3026_XPLLADDR, 0x3F);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
623
if (inTi3026(minfo, TVP3026_XPIXPLLDATA) & 0x40)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
636
outTi3026(minfo, TVP3026_XMEMPLLCTRL, hw->DACreg[POS3026_XMEMPLLCTRL]);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
637
outTi3026(minfo, TVP3026_XPLLADDR, 0x00);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
639
outTi3026(minfo, TVP3026_XLOOPPLLDATA, hw->DACclk[i]);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
645
outTi3026(minfo, TVP3026_XPLLADDR, 0x3F);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
647
if (inTi3026(minfo, TVP3026_XLOOPPLLDATA) & 0x40)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
672
static void Ti3026_reset(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
676
ti3026_ramdac_init(minfo);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
683
static int Ti3026_preinit(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
691
struct matrox_hw_state *hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
695
minfo->millenium = 1;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
696
minfo->milleniumII = (minfo->pcidev->device != PCI_DEVICE_ID_MATROX_MIL);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
697
minfo->capable.cfb4 = 1;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
698
minfo->capable.text = 1; /* isMilleniumII(minfo); */
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
699
minfo->capable.vxres = isMilleniumII(minfo) ? vxres_mill2 : vxres_mill1;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
701
minfo->outputs[0].data = minfo;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
702
minfo->outputs[0].output = &ti3026_output;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
703
minfo->outputs[0].src = minfo->outputs[0].default_src;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
704
minfo->outputs[0].mode = MATROXFB_OUTPUT_MODE_MONITOR;
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
706
if (minfo->devflags.noinit)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
711
if (minfo->devflags.novga)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
713
if (minfo->devflags.nobios)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
715
if (minfo->devflags.nopciretry)
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
717
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, hw->MXoptionReg);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
719
minfo->accel.ramdac_rev = inTi3026(minfo, TVP3026_XSILICONREV);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
721
outTi3026(minfo, TVP3026_XCLKCTRL, TVP3026_XCLKCTRL_SRC_CLK0VGA | TVP3026_XCLKCTRL_CLKSTOPPED);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
722
outTi3026(minfo, TVP3026_XTRUECOLORCTRL, TVP3026_XTRUECOLORCTRL_PSEUDOCOLOR);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
723
outTi3026(minfo, TVP3026_XMUXCTRL, TVP3026_XMUXCTRL_VGA);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
725
outTi3026(minfo, TVP3026_XPLLADDR, 0x2A);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
726
outTi3026(minfo, TVP3026_XLOOPPLLDATA, 0x00);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
727
outTi3026(minfo, TVP3026_XPIXPLLDATA, 0x00);
drivers/video/fbdev/matrox/matroxfb_Ti3026.c
731
outTi3026(minfo, TVP3026_XMEMPLLCTRL, TVP3026_XMEMPLLCTRL_STROBEMKC4 | TVP3026_XMEMPLLCTRL_MCLK_MCLKPLL);
drivers/video/fbdev/matrox/matroxfb_accel.c
113
void matrox_cfbX_init(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_accel.c
122
mpitch = minfo->fbcon.var.xres_virtual;
drivers/video/fbdev/matrox/matroxfb_accel.c
124
minfo->fbops.fb_copyarea = cfb_copyarea;
drivers/video/fbdev/matrox/matroxfb_accel.c
125
minfo->fbops.fb_fillrect = cfb_fillrect;
drivers/video/fbdev/matrox/matroxfb_accel.c
126
minfo->fbops.fb_imageblit = cfb_imageblit;
drivers/video/fbdev/matrox/matroxfb_accel.c
127
minfo->fbops.fb_cursor = NULL;
drivers/video/fbdev/matrox/matroxfb_accel.c
129
accel = (minfo->fbcon.var.accel_flags & FB_ACCELF_TEXT) == FB_ACCELF_TEXT;
drivers/video/fbdev/matrox/matroxfb_accel.c
131
switch (minfo->fbcon.var.bits_per_pixel) {
drivers/video/fbdev/matrox/matroxfb_accel.c
135
matrox_cfb4_pal(minfo->cmap);
drivers/video/fbdev/matrox/matroxfb_accel.c
137
minfo->fbops.fb_copyarea = matroxfb_cfb4_copyarea;
drivers/video/fbdev/matrox/matroxfb_accel.c
138
minfo->fbops.fb_fillrect = matroxfb_cfb4_fillrect;
drivers/video/fbdev/matrox/matroxfb_accel.c
143
matrox_cfb8_pal(minfo->cmap);
drivers/video/fbdev/matrox/matroxfb_accel.c
145
minfo->fbops.fb_copyarea = matroxfb_copyarea;
drivers/video/fbdev/matrox/matroxfb_accel.c
146
minfo->fbops.fb_fillrect = matroxfb_fillrect;
drivers/video/fbdev/matrox/matroxfb_accel.c
147
minfo->fbops.fb_imageblit = matroxfb_imageblit;
drivers/video/fbdev/matrox/matroxfb_accel.c
150
case 16: if (minfo->fbcon.var.green.length == 5)
drivers/video/fbdev/matrox/matroxfb_accel.c
156
minfo->fbops.fb_copyarea = matroxfb_copyarea;
drivers/video/fbdev/matrox/matroxfb_accel.c
157
minfo->fbops.fb_fillrect = matroxfb_fillrect;
drivers/video/fbdev/matrox/matroxfb_accel.c
158
minfo->fbops.fb_imageblit = matroxfb_imageblit;
drivers/video/fbdev/matrox/matroxfb_accel.c
164
minfo->fbops.fb_copyarea = matroxfb_copyarea;
drivers/video/fbdev/matrox/matroxfb_accel.c
165
minfo->fbops.fb_fillrect = matroxfb_fillrect;
drivers/video/fbdev/matrox/matroxfb_accel.c
166
minfo->fbops.fb_imageblit = matroxfb_imageblit;
drivers/video/fbdev/matrox/matroxfb_accel.c
172
minfo->fbops.fb_copyarea = matroxfb_copyarea;
drivers/video/fbdev/matrox/matroxfb_accel.c
173
minfo->fbops.fb_fillrect = matroxfb_fillrect;
drivers/video/fbdev/matrox/matroxfb_accel.c
174
minfo->fbops.fb_imageblit = matroxfb_imageblit;
drivers/video/fbdev/matrox/matroxfb_accel.c
183
mga_outl(M_YDSTORG, curr_ydstorg(minfo));
drivers/video/fbdev/matrox/matroxfb_accel.c
184
if (minfo->capable.plnwt)
drivers/video/fbdev/matrox/matroxfb_accel.c
186
if (minfo->capable.srcorg) {
drivers/video/fbdev/matrox/matroxfb_accel.c
195
minfo->accel.m_dwg_rect = M_DWG_TRAP | M_DWG_SOLID | M_DWG_ARZERO | M_DWG_SGNZERO | M_DWG_SHIFTZERO;
drivers/video/fbdev/matrox/matroxfb_accel.c
196
if (isMilleniumII(minfo)) minfo->accel.m_dwg_rect |= M_DWG_TRANSC;
drivers/video/fbdev/matrox/matroxfb_accel.c
197
minfo->accel.m_opmode = mopmode;
drivers/video/fbdev/matrox/matroxfb_accel.c
198
minfo->accel.m_access = maccess;
drivers/video/fbdev/matrox/matroxfb_accel.c
199
minfo->accel.m_pitch = mpitch;
drivers/video/fbdev/matrox/matroxfb_accel.c
204
static void matrox_accel_restore_maccess(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_accel.c
206
mga_outl(M_MACCESS, minfo->accel.m_access);
drivers/video/fbdev/matrox/matroxfb_accel.c
207
mga_outl(M_PITCH, minfo->accel.m_pitch);
drivers/video/fbdev/matrox/matroxfb_accel.c
210
static void matrox_accel_bmove(struct matrox_fb_info *minfo, int vxres, int sy,
drivers/video/fbdev/matrox/matroxfb_accel.c
222
matrox_accel_restore_maccess(minfo);
drivers/video/fbdev/matrox/matroxfb_accel.c
227
start = sy*vxres+sx+curr_ydstorg(minfo);
drivers/video/fbdev/matrox/matroxfb_accel.c
231
matrox_accel_restore_maccess(minfo);
drivers/video/fbdev/matrox/matroxfb_accel.c
236
end = (sy+height-1)*vxres+sx+curr_ydstorg(minfo);
drivers/video/fbdev/matrox/matroxfb_accel.c
241
matrox_accel_restore_maccess(minfo);
drivers/video/fbdev/matrox/matroxfb_accel.c
251
static void matrox_accel_bmove_lin(struct matrox_fb_info *minfo, int vxres,
drivers/video/fbdev/matrox/matroxfb_accel.c
264
matrox_accel_restore_maccess(minfo);
drivers/video/fbdev/matrox/matroxfb_accel.c
269
start = sy*vxres+sx+curr_ydstorg(minfo);
drivers/video/fbdev/matrox/matroxfb_accel.c
273
matrox_accel_restore_maccess(minfo);
drivers/video/fbdev/matrox/matroxfb_accel.c
278
end = (sy+height-1)*vxres+sx+curr_ydstorg(minfo);
drivers/video/fbdev/matrox/matroxfb_accel.c
283
matrox_accel_restore_maccess(minfo);
drivers/video/fbdev/matrox/matroxfb_accel.c
295
struct matrox_fb_info *minfo = info2minfo(info);
drivers/video/fbdev/matrox/matroxfb_accel.c
300
matrox_accel_bmove_lin(minfo, minfo->fbcon.var.xres_virtual >> 1, area->sy, area->sx >> 1, area->dy, area->dx >> 1, area->height, area->width >> 1);
drivers/video/fbdev/matrox/matroxfb_accel.c
304
struct matrox_fb_info *minfo = info2minfo(info);
drivers/video/fbdev/matrox/matroxfb_accel.c
306
matrox_accel_bmove(minfo, minfo->fbcon.var.xres_virtual, area->sy, area->sx, area->dy, area->dx, area->height, area->width);
drivers/video/fbdev/matrox/matroxfb_accel.c
309
static void matroxfb_accel_clear(struct matrox_fb_info *minfo, u_int32_t color,
drivers/video/fbdev/matrox/matroxfb_accel.c
319
matrox_accel_restore_maccess(minfo);
drivers/video/fbdev/matrox/matroxfb_accel.c
320
mga_outl(M_DWGCTL, minfo->accel.m_dwg_rect | M_DWG_REPLACE);
drivers/video/fbdev/matrox/matroxfb_accel.c
330
struct matrox_fb_info *minfo = info2minfo(info);
drivers/video/fbdev/matrox/matroxfb_accel.c
334
matroxfb_accel_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, rect->height, rect->width);
drivers/video/fbdev/matrox/matroxfb_accel.c
339
static void matroxfb_cfb4_clear(struct matrox_fb_info *minfo, u_int32_t bgx,
drivers/video/fbdev/matrox/matroxfb_accel.c
363
matrox_accel_restore_maccess(minfo);
drivers/video/fbdev/matrox/matroxfb_accel.c
364
mga_outl(M_DWGCTL, minfo->accel.m_dwg_rect | M_DWG_REPLACE2);
drivers/video/fbdev/matrox/matroxfb_accel.c
367
mga_outl(M_YDST, sy * minfo->fbcon.var.xres_virtual >> 6);
drivers/video/fbdev/matrox/matroxfb_accel.c
372
u_int32_t step = minfo->fbcon.var.xres_virtual >> 1;
drivers/video/fbdev/matrox/matroxfb_accel.c
373
vaddr_t vbase = minfo->video.vbase;
drivers/video/fbdev/matrox/matroxfb_accel.c
398
struct matrox_fb_info *minfo = info2minfo(info);
drivers/video/fbdev/matrox/matroxfb_accel.c
402
matroxfb_cfb4_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, rect->height, rect->width);
drivers/video/fbdev/matrox/matroxfb_accel.c
407
static void matroxfb_1bpp_imageblit(struct matrox_fb_info *minfo, u_int32_t fgx,
drivers/video/fbdev/matrox/matroxfb_accel.c
438
matrox_accel_restore_maccess(minfo);
drivers/video/fbdev/matrox/matroxfb_accel.c
446
mmio = minfo->mmio.vbase;
drivers/video/fbdev/matrox/matroxfb_accel.c
449
matrox_accel_restore_maccess(minfo);
drivers/video/fbdev/matrox/matroxfb_accel.c
502
struct matrox_fb_info *minfo = info2minfo(info);
drivers/video/fbdev/matrox/matroxfb_accel.c
511
matroxfb_1bpp_imageblit(minfo, fgx, bgx, image->data, image->width, image->height, image->dy, image->dx);
drivers/video/fbdev/matrox/matroxfb_accel.h
7
void matrox_cfbX_init(struct matrox_fb_info *minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
1008
if (minfo->devflags.panellink) {
drivers/video/fbdev/matrox/matroxfb_base.c
1013
if (minfo->outputs[i].src == MATROXFB_SRC_CRTC2) {
drivers/video/fbdev/matrox/matroxfb_base.c
1022
if (minfo->outputs[i].src != MATROXFB_SRC_CRTC1) {
drivers/video/fbdev/matrox/matroxfb_base.c
1024
minfo->outputs[i].src = MATROXFB_SRC_CRTC1;
drivers/video/fbdev/matrox/matroxfb_base.c
1026
} else if (minfo->outputs[i].src == MATROXFB_SRC_CRTC1) {
drivers/video/fbdev/matrox/matroxfb_base.c
1028
minfo->outputs[i].src = MATROXFB_SRC_NONE;
drivers/video/fbdev/matrox/matroxfb_base.c
1042
if (minfo->outputs[i].src == MATROXFB_SRC_CRTC1) {
drivers/video/fbdev/matrox/matroxfb_base.c
1056
if (minfo->outputs[i].output) {
drivers/video/fbdev/matrox/matroxfb_base.c
1057
switch (minfo->outputs[i].src) {
drivers/video/fbdev/matrox/matroxfb_base.c
1065
if (minfo->devflags.panellink) {
drivers/video/fbdev/matrox/matroxfb_base.c
1081
if (minfo->outputs[i].output) {
drivers/video/fbdev/matrox/matroxfb_base.c
1096
sprintf(r.bus_info, "PCI:%s", pci_name(minfo->pcidev));
drivers/video/fbdev/matrox/matroxfb_base.c
1112
down_read(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_base.c
1113
if (!minfo->outputs[1].output) {
drivers/video/fbdev/matrox/matroxfb_base.c
1115
} else if (minfo->outputs[1].output->getqueryctrl) {
drivers/video/fbdev/matrox/matroxfb_base.c
1116
err = minfo->outputs[1].output->getqueryctrl(minfo->outputs[1].data, &qctrl);
drivers/video/fbdev/matrox/matroxfb_base.c
1120
up_read(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_base.c
1134
down_read(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_base.c
1135
if (!minfo->outputs[1].output) {
drivers/video/fbdev/matrox/matroxfb_base.c
1137
} else if (minfo->outputs[1].output->getctrl) {
drivers/video/fbdev/matrox/matroxfb_base.c
1138
err = minfo->outputs[1].output->getctrl(minfo->outputs[1].data, &ctrl);
drivers/video/fbdev/matrox/matroxfb_base.c
1142
up_read(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_base.c
1156
down_read(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_base.c
1157
if (!minfo->outputs[1].output) {
drivers/video/fbdev/matrox/matroxfb_base.c
1159
} else if (minfo->outputs[1].output->setctrl) {
drivers/video/fbdev/matrox/matroxfb_base.c
1160
err = minfo->outputs[1].output->setctrl(minfo->outputs[1].data, &ctrl);
drivers/video/fbdev/matrox/matroxfb_base.c
1164
up_read(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_base.c
1178
struct matrox_fb_info *minfo = info2minfo(info);
drivers/video/fbdev/matrox/matroxfb_base.c
1182
if (minfo->dead)
drivers/video/fbdev/matrox/matroxfb_base.c
127
static void matroxfb_unregister_device(struct matrox_fb_info* minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
1284
static int matroxfb_getmemory(struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/matroxfb_base.c
1296
vm = minfo->video.vbase;
drivers/video/fbdev/matrox/matroxfb_base.c
1328
minfo->interleave = !(!isMillenium(minfo) || ((offs - 0x100000) & 0x3FFFFF));
drivers/video/fbdev/matrox/matroxfb_base.c
158
static void update_crtc2(struct matrox_fb_info *minfo, unsigned int pos)
drivers/video/fbdev/matrox/matroxfb_base.c
160
struct matroxfb_dh_fb_info *info = minfo->crtc2.info;
drivers/video/fbdev/matrox/matroxfb_base.c
1603
static void setDefaultOutputs(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_base.c
1608
minfo->outputs[0].default_src = MATROXFB_SRC_CRTC1;
drivers/video/fbdev/matrox/matroxfb_base.c
1609
if (minfo->devflags.g450dac) {
drivers/video/fbdev/matrox/matroxfb_base.c
1610
minfo->outputs[1].default_src = MATROXFB_SRC_CRTC1;
drivers/video/fbdev/matrox/matroxfb_base.c
1611
minfo->outputs[2].default_src = MATROXFB_SRC_CRTC1;
drivers/video/fbdev/matrox/matroxfb_base.c
1613
minfo->outputs[2].default_src = MATROXFB_SRC_CRTC1;
drivers/video/fbdev/matrox/matroxfb_base.c
1623
minfo->outputs[i].default_src = MATROXFB_SRC_NONE;
drivers/video/fbdev/matrox/matroxfb_base.c
1625
minfo->outputs[i].default_src = MATROXFB_SRC_CRTC1;
drivers/video/fbdev/matrox/matroxfb_base.c
1626
} else if (c == '2' && minfo->devflags.crtc2) {
drivers/video/fbdev/matrox/matroxfb_base.c
1627
minfo->outputs[i].default_src = MATROXFB_SRC_CRTC2;
drivers/video/fbdev/matrox/matroxfb_base.c
163
if (info && (info->fbcon.var.bits_per_pixel == minfo->fbcon.var.bits_per_pixel)
drivers/video/fbdev/matrox/matroxfb_base.c
1637
static int initMatrox2(struct matrox_fb_info *minfo, struct board *b)
drivers/video/fbdev/matrox/matroxfb_base.c
164
&& (info->fbcon.var.xres_virtual == minfo->fbcon.var.xres_virtual)
drivers/video/fbdev/matrox/matroxfb_base.c
165
&& (info->fbcon.var.green.length == minfo->fbcon.var.green.length)
drivers/video/fbdev/matrox/matroxfb_base.c
1654
minfo->hw_switch = b->base->lowlevel;
drivers/video/fbdev/matrox/matroxfb_base.c
1655
minfo->devflags.accelerator = b->base->accelID;
drivers/video/fbdev/matrox/matroxfb_base.c
1656
minfo->max_pixel_clock = b->maxclk;
drivers/video/fbdev/matrox/matroxfb_base.c
1659
minfo->capable.plnwt = 1;
drivers/video/fbdev/matrox/matroxfb_base.c
1660
minfo->chip = b->chip;
drivers/video/fbdev/matrox/matroxfb_base.c
1661
minfo->capable.srcorg = b->flags & DEVF_SRCORG;
drivers/video/fbdev/matrox/matroxfb_base.c
1662
minfo->devflags.video64bits = b->flags & DEVF_VIDEO64BIT;
drivers/video/fbdev/matrox/matroxfb_base.c
1664
minfo->devflags.vgastep = 4;
drivers/video/fbdev/matrox/matroxfb_base.c
1665
minfo->devflags.textmode = 4;
drivers/video/fbdev/matrox/matroxfb_base.c
1666
minfo->devflags.text_type_aux = FB_AUX_TEXT_MGA_STEP16;
drivers/video/fbdev/matrox/matroxfb_base.c
1668
minfo->devflags.vgastep = 16;
drivers/video/fbdev/matrox/matroxfb_base.c
1669
minfo->devflags.textmode = 1;
drivers/video/fbdev/matrox/matroxfb_base.c
167
switch (minfo->fbcon.var.bits_per_pixel) {
drivers/video/fbdev/matrox/matroxfb_base.c
1670
minfo->devflags.text_type_aux = FB_AUX_TEXT_MGA_STEP16;
drivers/video/fbdev/matrox/matroxfb_base.c
1672
minfo->devflags.vgastep = 8;
drivers/video/fbdev/matrox/matroxfb_base.c
1673
minfo->devflags.textmode = 1;
drivers/video/fbdev/matrox/matroxfb_base.c
1674
minfo->devflags.text_type_aux = FB_AUX_TEXT_MGA_STEP8;
drivers/video/fbdev/matrox/matroxfb_base.c
1676
minfo->devflags.support32MB = (b->flags & DEVF_SUPPORT32MB) != 0;
drivers/video/fbdev/matrox/matroxfb_base.c
1677
minfo->devflags.precise_width = !(b->flags & DEVF_ANY_VXRES);
drivers/video/fbdev/matrox/matroxfb_base.c
1678
minfo->devflags.crtc2 = (b->flags & DEVF_CRTC2) != 0;
drivers/video/fbdev/matrox/matroxfb_base.c
1679
minfo->devflags.maven_capable = (b->flags & DEVF_MAVEN_CAPABLE) != 0;
drivers/video/fbdev/matrox/matroxfb_base.c
1680
minfo->devflags.dualhead = (b->flags & DEVF_DUALHEAD) != 0;
drivers/video/fbdev/matrox/matroxfb_base.c
1681
minfo->devflags.dfp_type = dfp_type;
drivers/video/fbdev/matrox/matroxfb_base.c
1682
minfo->devflags.g450dac = (b->flags & DEVF_G450DAC) != 0;
drivers/video/fbdev/matrox/matroxfb_base.c
1683
minfo->devflags.textstep = minfo->devflags.vgastep * minfo->devflags.textmode;
drivers/video/fbdev/matrox/matroxfb_base.c
1684
minfo->devflags.textvram = 65536 / minfo->devflags.textmode;
drivers/video/fbdev/matrox/matroxfb_base.c
1685
setDefaultOutputs(minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
1687
minfo->outputs[2].data = minfo;
drivers/video/fbdev/matrox/matroxfb_base.c
1688
minfo->outputs[2].output = &panellink_output;
drivers/video/fbdev/matrox/matroxfb_base.c
1689
minfo->outputs[2].src = minfo->outputs[2].default_src;
drivers/video/fbdev/matrox/matroxfb_base.c
1690
minfo->outputs[2].mode = MATROXFB_OUTPUT_MODE_MONITOR;
drivers/video/fbdev/matrox/matroxfb_base.c
1691
minfo->devflags.panellink = 1;
drivers/video/fbdev/matrox/matroxfb_base.c
1694
if (minfo->capable.cross4MB < 0)
drivers/video/fbdev/matrox/matroxfb_base.c
1695
minfo->capable.cross4MB = b->flags & DEVF_CROSS4MB;
drivers/video/fbdev/matrox/matroxfb_base.c
1697
ctrlptr_phys = pci_resource_start(minfo->pcidev, 1);
drivers/video/fbdev/matrox/matroxfb_base.c
1698
video_base_phys = pci_resource_start(minfo->pcidev, 0);
drivers/video/fbdev/matrox/matroxfb_base.c
1699
minfo->devflags.fbResource = PCI_BASE_ADDRESS_0;
drivers/video/fbdev/matrox/matroxfb_base.c
1701
ctrlptr_phys = pci_resource_start(minfo->pcidev, 0);
drivers/video/fbdev/matrox/matroxfb_base.c
1702
video_base_phys = pci_resource_start(minfo->pcidev, 1);
drivers/video/fbdev/matrox/matroxfb_base.c
1703
minfo->devflags.fbResource = PCI_BASE_ADDRESS_1;
drivers/video/fbdev/matrox/matroxfb_base.c
1721
minfo->video.len_maximum = memsize;
drivers/video/fbdev/matrox/matroxfb_base.c
173
mga_outl(0x3C28, pos + minfo->fbcon.var.xres_virtual * minfo->fbcon.var.bits_per_pixel / 8);
drivers/video/fbdev/matrox/matroxfb_base.c
1730
minfo->mmio.vbase.vaddr = ioremap(ctrlptr_phys, 16384);
drivers/video/fbdev/matrox/matroxfb_base.c
1731
if (!minfo->mmio.vbase.vaddr) {
drivers/video/fbdev/matrox/matroxfb_base.c
1735
minfo->mmio.base = ctrlptr_phys;
drivers/video/fbdev/matrox/matroxfb_base.c
1736
minfo->mmio.len = 16384;
drivers/video/fbdev/matrox/matroxfb_base.c
1737
minfo->video.base = video_base_phys;
drivers/video/fbdev/matrox/matroxfb_base.c
1738
minfo->video.vbase.vaddr = ioremap_wc(video_base_phys, memsize);
drivers/video/fbdev/matrox/matroxfb_base.c
1739
if (!minfo->video.vbase.vaddr) {
drivers/video/fbdev/matrox/matroxfb_base.c
1748
pci_read_config_dword(minfo->pcidev, PCI_OPTION_REG, &mga_option);
drivers/video/fbdev/matrox/matroxfb_base.c
1749
pci_read_config_dword(minfo->pcidev, PCI_COMMAND, &cmd);
drivers/video/fbdev/matrox/matroxfb_base.c
1755
if (!(mga_option & 0x20000000) && !minfo->devflags.nopciretry) {
drivers/video/fbdev/matrox/matroxfb_base.c
1759
minfo->devflags.nopciretry = 1;
drivers/video/fbdev/matrox/matroxfb_base.c
1761
pci_write_config_dword(minfo->pcidev, PCI_COMMAND, cmd);
drivers/video/fbdev/matrox/matroxfb_base.c
1762
pci_write_config_dword(minfo->pcidev, PCI_OPTION_REG, mga_option);
drivers/video/fbdev/matrox/matroxfb_base.c
1763
minfo->hw.MXoptionReg = mga_option;
drivers/video/fbdev/matrox/matroxfb_base.c
1767
pci_write_config_dword(minfo->pcidev, PCI_MGA_INDEX, 0x00003C00);
drivers/video/fbdev/matrox/matroxfb_base.c
1771
matroxfb_read_pins(minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
1772
if (minfo->hw_switch->preinit(minfo)) {
drivers/video/fbdev/matrox/matroxfb_base.c
1777
if (!matroxfb_getmemory(minfo, memsize, &minfo->video.len) || !minfo->video.len) {
drivers/video/fbdev/matrox/matroxfb_base.c
1781
minfo->devflags.ydstorg = 0;
drivers/video/fbdev/matrox/matroxfb_base.c
1783
minfo->video.base = video_base_phys;
drivers/video/fbdev/matrox/matroxfb_base.c
1784
minfo->video.len_usable = minfo->video.len;
drivers/video/fbdev/matrox/matroxfb_base.c
1785
if (minfo->video.len_usable > b->base->maxdisplayable)
drivers/video/fbdev/matrox/matroxfb_base.c
1786
minfo->video.len_usable = b->base->maxdisplayable;
drivers/video/fbdev/matrox/matroxfb_base.c
1788
minfo->wc_cookie = arch_phys_wc_add(video_base_phys,
drivers/video/fbdev/matrox/matroxfb_base.c
1789
minfo->video.len);
drivers/video/fbdev/matrox/matroxfb_base.c
1791
if (!minfo->devflags.novga)
drivers/video/fbdev/matrox/matroxfb_base.c
1793
matroxfb_g450_connect(minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
1794
minfo->hw_switch->reset(minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
1796
minfo->fbcon.monspecs.hfmin = 0;
drivers/video/fbdev/matrox/matroxfb_base.c
1797
minfo->fbcon.monspecs.hfmax = fh;
drivers/video/fbdev/matrox/matroxfb_base.c
1798
minfo->fbcon.monspecs.vfmin = 0;
drivers/video/fbdev/matrox/matroxfb_base.c
1799
minfo->fbcon.monspecs.vfmax = fv;
drivers/video/fbdev/matrox/matroxfb_base.c
1800
minfo->fbcon.monspecs.dpms = 0; /* TBD */
drivers/video/fbdev/matrox/matroxfb_base.c
1812
minfo->fbops = matroxfb_ops;
drivers/video/fbdev/matrox/matroxfb_base.c
1813
minfo->fbcon.fbops = &minfo->fbops;
drivers/video/fbdev/matrox/matroxfb_base.c
1814
minfo->fbcon.pseudo_palette = minfo->cmap;
drivers/video/fbdev/matrox/matroxfb_base.c
1815
minfo->fbcon.flags = FBINFO_PARTIAL_PAN_OK | /* Prefer panning for scroll under MC viewer/edit */
drivers/video/fbdev/matrox/matroxfb_base.c
182
static void matroxfb_crtc1_panpos(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_base.c
1822
minfo->video.len_usable &= PAGE_MASK;
drivers/video/fbdev/matrox/matroxfb_base.c
1823
fb_alloc_cmap(&minfo->fbcon.cmap, 256, 1);
drivers/video/fbdev/matrox/matroxfb_base.c
1828
fb_find_mode(&vesafb_defined, &minfo->fbcon, videomode[0] ? videomode : NULL,
drivers/video/fbdev/matrox/matroxfb_base.c
184
if (minfo->crtc1.panpos >= 0) {
drivers/video/fbdev/matrox/matroxfb_base.c
189
panpos = minfo->crtc1.panpos;
drivers/video/fbdev/matrox/matroxfb_base.c
1918
matroxfb_init_fix(minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
1919
minfo->fbcon.screen_base = vaddr_va(minfo->video.vbase);
drivers/video/fbdev/matrox/matroxfb_base.c
1921
matroxfb_check_var(&vesafb_defined, &minfo->fbcon);
drivers/video/fbdev/matrox/matroxfb_base.c
1926
minfo->fbcon.var = vesafb_defined;
drivers/video/fbdev/matrox/matroxfb_base.c
193
minfo->crtc1.panpos = -1; /* No update pending anymore */
drivers/video/fbdev/matrox/matroxfb_base.c
1933
minfo->video.base, vaddr_va(minfo->video.vbase), minfo->video.len);
drivers/video/fbdev/matrox/matroxfb_base.c
1938
minfo->fbcon.device = &minfo->pcidev->dev;
drivers/video/fbdev/matrox/matroxfb_base.c
1939
if (register_framebuffer(&minfo->fbcon) < 0) {
drivers/video/fbdev/matrox/matroxfb_base.c
1942
fb_info(&minfo->fbcon, "%s frame buffer device\n", minfo->fbcon.fix.id);
drivers/video/fbdev/matrox/matroxfb_base.c
1946
if (!minfo->initialized) {
drivers/video/fbdev/matrox/matroxfb_base.c
1947
fb_info(&minfo->fbcon, "initializing hardware\n");
drivers/video/fbdev/matrox/matroxfb_base.c
1951
fb_set_var(&minfo->fbcon, &vesafb_defined);
drivers/video/fbdev/matrox/matroxfb_base.c
1956
matroxfb_g450_shutdown(minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
1957
iounmap(minfo->video.vbase.vaddr);
drivers/video/fbdev/matrox/matroxfb_base.c
1959
iounmap(minfo->mmio.vbase.vaddr);
drivers/video/fbdev/matrox/matroxfb_base.c
1961
release_mem_region(video_base_phys, minfo->video.len_maximum);
drivers/video/fbdev/matrox/matroxfb_base.c
1974
struct matrox_fb_info* minfo;
drivers/video/fbdev/matrox/matroxfb_base.c
1977
list_for_each_entry(minfo, &matroxfb_list, next_fb) {
drivers/video/fbdev/matrox/matroxfb_base.c
1980
if (minfo->drivers_count == MATROXFB_MAX_FB_DRIVERS)
drivers/video/fbdev/matrox/matroxfb_base.c
1982
p = drv->probe(minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
1984
minfo->drivers_data[minfo->drivers_count] = p;
drivers/video/fbdev/matrox/matroxfb_base.c
1985
minfo->drivers[minfo->drivers_count++] = drv;
drivers/video/fbdev/matrox/matroxfb_base.c
1992
struct matrox_fb_info* minfo;
drivers/video/fbdev/matrox/matroxfb_base.c
1995
list_for_each_entry(minfo, &matroxfb_list, next_fb) {
drivers/video/fbdev/matrox/matroxfb_base.c
1998
for (i = 0; i < minfo->drivers_count; ) {
drivers/video/fbdev/matrox/matroxfb_base.c
1999
if (minfo->drivers[i] == drv) {
drivers/video/fbdev/matrox/matroxfb_base.c
2001
drv->remove(minfo, minfo->drivers_data[i]);
drivers/video/fbdev/matrox/matroxfb_base.c
2002
minfo->drivers[i] = minfo->drivers[--minfo->drivers_count];
drivers/video/fbdev/matrox/matroxfb_base.c
2003
minfo->drivers_data[i] = minfo->drivers_data[minfo->drivers_count];
drivers/video/fbdev/matrox/matroxfb_base.c
2010
static void matroxfb_register_device(struct matrox_fb_info* minfo) {
drivers/video/fbdev/matrox/matroxfb_base.c
2013
list_add(&minfo->next_fb, &matroxfb_list);
drivers/video/fbdev/matrox/matroxfb_base.c
2018
void *p = drv->probe(minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
2020
minfo->drivers_data[i] = p;
drivers/video/fbdev/matrox/matroxfb_base.c
2021
minfo->drivers[i++] = drv;
drivers/video/fbdev/matrox/matroxfb_base.c
2027
minfo->drivers_count = i;
drivers/video/fbdev/matrox/matroxfb_base.c
2030
static void matroxfb_unregister_device(struct matrox_fb_info* minfo) {
drivers/video/fbdev/matrox/matroxfb_base.c
2033
list_del(&minfo->next_fb);
drivers/video/fbdev/matrox/matroxfb_base.c
2034
for (i = 0; i < minfo->drivers_count; i++) {
drivers/video/fbdev/matrox/matroxfb_base.c
2035
struct matroxfb_driver* drv = minfo->drivers[i];
drivers/video/fbdev/matrox/matroxfb_base.c
2038
drv->remove(minfo, minfo->drivers_data[i]);
drivers/video/fbdev/matrox/matroxfb_base.c
2046
struct matrox_fb_info* minfo;
drivers/video/fbdev/matrox/matroxfb_base.c
2076
minfo = kzalloc_obj(*minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
2077
if (!minfo)
drivers/video/fbdev/matrox/matroxfb_base.c
208
struct matrox_fb_info *minfo = dev_id;
drivers/video/fbdev/matrox/matroxfb_base.c
2080
minfo->pcidev = pdev;
drivers/video/fbdev/matrox/matroxfb_base.c
2081
minfo->dead = 0;
drivers/video/fbdev/matrox/matroxfb_base.c
2082
minfo->usecount = 0;
drivers/video/fbdev/matrox/matroxfb_base.c
2083
minfo->userusecount = 0;
drivers/video/fbdev/matrox/matroxfb_base.c
2085
pci_set_drvdata(pdev, minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
2087
minfo->devflags.memtype = memtype;
drivers/video/fbdev/matrox/matroxfb_base.c
2091
minfo->devflags.novga = novga;
drivers/video/fbdev/matrox/matroxfb_base.c
2092
minfo->devflags.nobios = nobios;
drivers/video/fbdev/matrox/matroxfb_base.c
2093
minfo->devflags.noinit = noinit;
drivers/video/fbdev/matrox/matroxfb_base.c
2099
minfo->devflags.novga = 1;
drivers/video/fbdev/matrox/matroxfb_base.c
2100
minfo->devflags.nobios = 1;
drivers/video/fbdev/matrox/matroxfb_base.c
2101
minfo->devflags.noinit = 0;
drivers/video/fbdev/matrox/matroxfb_base.c
2104
minfo->devflags.nopciretry = no_pci_retry;
drivers/video/fbdev/matrox/matroxfb_base.c
2105
minfo->devflags.mga_24bpp_fix = inv24;
drivers/video/fbdev/matrox/matroxfb_base.c
2106
minfo->devflags.precise_width = option_precise_width;
drivers/video/fbdev/matrox/matroxfb_base.c
2107
minfo->devflags.sgram = sgram;
drivers/video/fbdev/matrox/matroxfb_base.c
2108
minfo->capable.cross4MB = cross4MB;
drivers/video/fbdev/matrox/matroxfb_base.c
2110
spin_lock_init(&minfo->lock.DAC);
drivers/video/fbdev/matrox/matroxfb_base.c
2111
spin_lock_init(&minfo->lock.accel);
drivers/video/fbdev/matrox/matroxfb_base.c
2112
init_rwsem(&minfo->crtc2.lock);
drivers/video/fbdev/matrox/matroxfb_base.c
2113
init_rwsem(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_base.c
2114
mutex_init(&minfo->fbcon.mm_lock);
drivers/video/fbdev/matrox/matroxfb_base.c
2115
minfo->irq_flags = 0;
drivers/video/fbdev/matrox/matroxfb_base.c
2116
init_waitqueue_head(&minfo->crtc1.vsync.wait);
drivers/video/fbdev/matrox/matroxfb_base.c
2117
init_waitqueue_head(&minfo->crtc2.vsync.wait);
drivers/video/fbdev/matrox/matroxfb_base.c
2118
minfo->crtc1.panpos = -1;
drivers/video/fbdev/matrox/matroxfb_base.c
2120
err = initMatrox2(minfo, b);
drivers/video/fbdev/matrox/matroxfb_base.c
2122
matroxfb_register_device(minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
2125
kfree(minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
2130
struct matrox_fb_info* minfo;
drivers/video/fbdev/matrox/matroxfb_base.c
2132
minfo = pci_get_drvdata(pdev);
drivers/video/fbdev/matrox/matroxfb_base.c
2133
matroxfb_remove(minfo, 1);
drivers/video/fbdev/matrox/matroxfb_base.c
214
minfo->crtc1.vsync.cnt++;
drivers/video/fbdev/matrox/matroxfb_base.c
215
matroxfb_crtc1_panpos(minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
216
wake_up_interruptible(&minfo->crtc1.vsync.wait);
drivers/video/fbdev/matrox/matroxfb_base.c
221
minfo->crtc2.vsync.cnt++;
drivers/video/fbdev/matrox/matroxfb_base.c
222
wake_up_interruptible(&minfo->crtc2.vsync.wait);
drivers/video/fbdev/matrox/matroxfb_base.c
228
int matroxfb_enable_irq(struct matrox_fb_info *minfo, int reenable)
drivers/video/fbdev/matrox/matroxfb_base.c
232
if (minfo->devflags.accelerator == FB_ACCEL_MATROX_MGAG400)
drivers/video/fbdev/matrox/matroxfb_base.c
237
if (!test_and_set_bit(0, &minfo->irq_flags)) {
drivers/video/fbdev/matrox/matroxfb_base.c
238
if (request_irq(minfo->pcidev->irq, matrox_irq,
drivers/video/fbdev/matrox/matroxfb_base.c
239
IRQF_SHARED, "matroxfb", minfo)) {
drivers/video/fbdev/matrox/matroxfb_base.c
240
clear_bit(0, &minfo->irq_flags);
drivers/video/fbdev/matrox/matroxfb_base.c
258
static void matroxfb_disable_irq(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_base.c
260
if (test_and_clear_bit(0, &minfo->irq_flags)) {
drivers/video/fbdev/matrox/matroxfb_base.c
262
matroxfb_crtc1_panpos(minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
263
if (minfo->devflags.accelerator == FB_ACCEL_MATROX_MGAG400)
drivers/video/fbdev/matrox/matroxfb_base.c
267
free_irq(minfo->pcidev->irq, minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
271
int matroxfb_wait_for_sync(struct matrox_fb_info *minfo, u_int32_t crtc)
drivers/video/fbdev/matrox/matroxfb_base.c
279
vs = &minfo->crtc1.vsync;
drivers/video/fbdev/matrox/matroxfb_base.c
282
if (minfo->devflags.accelerator != FB_ACCEL_MATROX_MGAG400) {
drivers/video/fbdev/matrox/matroxfb_base.c
285
vs = &minfo->crtc2.vsync;
drivers/video/fbdev/matrox/matroxfb_base.c
290
ret = matroxfb_enable_irq(minfo, 0);
drivers/video/fbdev/matrox/matroxfb_base.c
301
matroxfb_enable_irq(minfo, 1);
drivers/video/fbdev/matrox/matroxfb_base.c
309
static void matrox_pan_var(struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/matroxfb_base.c
322
if (minfo->dead)
drivers/video/fbdev/matrox/matroxfb_base.c
325
minfo->fbcon.var.xoffset = var->xoffset;
drivers/video/fbdev/matrox/matroxfb_base.c
326
minfo->fbcon.var.yoffset = var->yoffset;
drivers/video/fbdev/matrox/matroxfb_base.c
327
pos = (minfo->fbcon.var.yoffset * minfo->fbcon.var.xres_virtual + minfo->fbcon.var.xoffset) * minfo->curr.final_bppShift / 32;
drivers/video/fbdev/matrox/matroxfb_base.c
328
pos += minfo->curr.ydstorg.chunks;
drivers/video/fbdev/matrox/matroxfb_base.c
329
p0 = minfo->hw.CRTC[0x0D] = pos & 0xFF;
drivers/video/fbdev/matrox/matroxfb_base.c
330
p1 = minfo->hw.CRTC[0x0C] = (pos & 0xFF00) >> 8;
drivers/video/fbdev/matrox/matroxfb_base.c
331
p2 = minfo->hw.CRTCEXT[0] = (minfo->hw.CRTCEXT[0] & 0xB0) | ((pos >> 16) & 0x0F) | ((pos >> 14) & 0x40);
drivers/video/fbdev/matrox/matroxfb_base.c
332
p3 = minfo->hw.CRTCEXT[8] = pos >> 21;
drivers/video/fbdev/matrox/matroxfb_base.c
335
vbl = (var->activate & FB_ACTIVATE_VBL) && (matroxfb_enable_irq(minfo, 0) == 0);
drivers/video/fbdev/matrox/matroxfb_base.c
342
if (minfo->devflags.support32MB)
drivers/video/fbdev/matrox/matroxfb_base.c
345
minfo->crtc1.panpos = p2;
drivers/video/fbdev/matrox/matroxfb_base.c
348
minfo->crtc1.panpos = -1;
drivers/video/fbdev/matrox/matroxfb_base.c
353
update_crtc2(minfo, pos);
drivers/video/fbdev/matrox/matroxfb_base.c
358
static void matroxfb_remove(struct matrox_fb_info *minfo, int dummy)
drivers/video/fbdev/matrox/matroxfb_base.c
368
minfo->dead = 1;
drivers/video/fbdev/matrox/matroxfb_base.c
369
if (minfo->usecount) {
drivers/video/fbdev/matrox/matroxfb_base.c
373
matroxfb_unregister_device(minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
374
unregister_framebuffer(&minfo->fbcon);
drivers/video/fbdev/matrox/matroxfb_base.c
375
matroxfb_g450_shutdown(minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
376
arch_phys_wc_del(minfo->wc_cookie);
drivers/video/fbdev/matrox/matroxfb_base.c
377
iounmap(minfo->mmio.vbase.vaddr);
drivers/video/fbdev/matrox/matroxfb_base.c
378
iounmap(minfo->video.vbase.vaddr);
drivers/video/fbdev/matrox/matroxfb_base.c
379
release_mem_region(minfo->video.base, minfo->video.len_maximum);
drivers/video/fbdev/matrox/matroxfb_base.c
380
release_mem_region(minfo->mmio.base, 16384);
drivers/video/fbdev/matrox/matroxfb_base.c
381
kfree(minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
390
struct matrox_fb_info *minfo = info2minfo(info);
drivers/video/fbdev/matrox/matroxfb_base.c
394
if (minfo->dead) {
drivers/video/fbdev/matrox/matroxfb_base.c
397
minfo->usecount++;
drivers/video/fbdev/matrox/matroxfb_base.c
399
minfo->userusecount++;
drivers/video/fbdev/matrox/matroxfb_base.c
406
struct matrox_fb_info *minfo = info2minfo(info);
drivers/video/fbdev/matrox/matroxfb_base.c
411
if (0 == --minfo->userusecount) {
drivers/video/fbdev/matrox/matroxfb_base.c
412
matroxfb_disable_irq(minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
415
if (!(--minfo->usecount) && minfo->dead) {
drivers/video/fbdev/matrox/matroxfb_base.c
416
matroxfb_remove(minfo, 0);
drivers/video/fbdev/matrox/matroxfb_base.c
423
struct matrox_fb_info *minfo = info2minfo(info);
drivers/video/fbdev/matrox/matroxfb_base.c
427
matrox_pan_var(minfo, var);
drivers/video/fbdev/matrox/matroxfb_base.c
431
static int matroxfb_get_final_bppShift(const struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/matroxfb_base.c
442
if (isInterleave(minfo))
drivers/video/fbdev/matrox/matroxfb_base.c
444
if (minfo->devflags.video64bits)
drivers/video/fbdev/matrox/matroxfb_base.c
449
static int matroxfb_test_and_set_rounding(const struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/matroxfb_base.c
469
if (minfo->devflags.accelerator == FB_ACCEL_MATROX_MGAG400)
drivers/video/fbdev/matrox/matroxfb_base.c
473
if (isInterleave(minfo)) {
drivers/video/fbdev/matrox/matroxfb_base.c
482
static int matroxfb_pitch_adjust(const struct matrox_fb_info *minfo, int xres,
drivers/video/fbdev/matrox/matroxfb_base.c
492
width = minfo->capable.vxres;
drivers/video/fbdev/matrox/matroxfb_base.c
494
if (minfo->devflags.precise_width) {
drivers/video/fbdev/matrox/matroxfb_base.c
496
if ((*width >= xres) && (matroxfb_test_and_set_rounding(minfo, *width, bpp) == *width)) {
drivers/video/fbdev/matrox/matroxfb_base.c
503
xres_new = matroxfb_test_and_set_rounding(minfo, xres, bpp);
drivers/video/fbdev/matrox/matroxfb_base.c
530
static int matroxfb_decode_var(const struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/matroxfb_base.c
560
case 4: if (!minfo->capable.cfb4) return -EINVAL;
drivers/video/fbdev/matrox/matroxfb_base.c
569
vramlen = minfo->video.len_usable;
drivers/video/fbdev/matrox/matroxfb_base.c
575
var->xres_virtual = matroxfb_pitch_adjust(minfo, var->xres_virtual, bpp);
drivers/video/fbdev/matrox/matroxfb_base.c
584
if (!minfo->capable.cross4MB && (memlen > 0x400000)) {
drivers/video/fbdev/matrox/matroxfb_base.c
649
struct matrox_fb_info* minfo = container_of(fb_info, struct matrox_fb_info, fbcon);
drivers/video/fbdev/matrox/matroxfb_base.c
660
if (regno >= minfo->curr.cmap_len)
drivers/video/fbdev/matrox/matroxfb_base.c
663
if (minfo->fbcon.var.grayscale) {
drivers/video/fbdev/matrox/matroxfb_base.c
668
red = CNVT_TOHW(red, minfo->fbcon.var.red.length);
drivers/video/fbdev/matrox/matroxfb_base.c
669
green = CNVT_TOHW(green, minfo->fbcon.var.green.length);
drivers/video/fbdev/matrox/matroxfb_base.c
670
blue = CNVT_TOHW(blue, minfo->fbcon.var.blue.length);
drivers/video/fbdev/matrox/matroxfb_base.c
671
transp = CNVT_TOHW(transp, minfo->fbcon.var.transp.length);
drivers/video/fbdev/matrox/matroxfb_base.c
673
switch (minfo->fbcon.var.bits_per_pixel) {
drivers/video/fbdev/matrox/matroxfb_base.c
686
(red << minfo->fbcon.var.red.offset) |
drivers/video/fbdev/matrox/matroxfb_base.c
687
(green << minfo->fbcon.var.green.offset) |
drivers/video/fbdev/matrox/matroxfb_base.c
688
(blue << minfo->fbcon.var.blue.offset) |
drivers/video/fbdev/matrox/matroxfb_base.c
689
(transp << minfo->fbcon.var.transp.offset); /* for 1:5:5:5 */
drivers/video/fbdev/matrox/matroxfb_base.c
690
minfo->cmap[regno] = col | (col << 16);
drivers/video/fbdev/matrox/matroxfb_base.c
697
minfo->cmap[regno] =
drivers/video/fbdev/matrox/matroxfb_base.c
698
(red << minfo->fbcon.var.red.offset) |
drivers/video/fbdev/matrox/matroxfb_base.c
699
(green << minfo->fbcon.var.green.offset) |
drivers/video/fbdev/matrox/matroxfb_base.c
700
(blue << minfo->fbcon.var.blue.offset) |
drivers/video/fbdev/matrox/matroxfb_base.c
701
(transp << minfo->fbcon.var.transp.offset); /* 8:8:8:8 */
drivers/video/fbdev/matrox/matroxfb_base.c
707
static void matroxfb_init_fix(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_base.c
709
struct fb_fix_screeninfo *fix = &minfo->fbcon.fix;
drivers/video/fbdev/matrox/matroxfb_base.c
717
fix->mmio_start = minfo->mmio.base;
drivers/video/fbdev/matrox/matroxfb_base.c
718
fix->mmio_len = minfo->mmio.len;
drivers/video/fbdev/matrox/matroxfb_base.c
719
fix->accel = minfo->devflags.accelerator;
drivers/video/fbdev/matrox/matroxfb_base.c
722
static void matroxfb_update_fix(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_base.c
724
struct fb_fix_screeninfo *fix = &minfo->fbcon.fix;
drivers/video/fbdev/matrox/matroxfb_base.c
727
mutex_lock(&minfo->fbcon.mm_lock);
drivers/video/fbdev/matrox/matroxfb_base.c
728
fix->smem_start = minfo->video.base + minfo->curr.ydstorg.bytes;
drivers/video/fbdev/matrox/matroxfb_base.c
729
fix->smem_len = minfo->video.len_usable - minfo->curr.ydstorg.bytes;
drivers/video/fbdev/matrox/matroxfb_base.c
730
mutex_unlock(&minfo->fbcon.mm_lock);
drivers/video/fbdev/matrox/matroxfb_base.c
739
struct matrox_fb_info *minfo = info2minfo(info);
drivers/video/fbdev/matrox/matroxfb_base.c
741
if (minfo->dead) {
drivers/video/fbdev/matrox/matroxfb_base.c
744
if ((err = matroxfb_decode_var(minfo, var, &visual, &cmap_len, &ydstorg)) != 0)
drivers/video/fbdev/matrox/matroxfb_base.c
756
struct matrox_fb_info *minfo = info2minfo(info);
drivers/video/fbdev/matrox/matroxfb_base.c
760
if (minfo->dead) {
drivers/video/fbdev/matrox/matroxfb_base.c
765
if ((err = matroxfb_decode_var(minfo, var, &visual, &cmap_len, &ydstorg)) != 0)
drivers/video/fbdev/matrox/matroxfb_base.c
767
minfo->fbcon.screen_base = vaddr_va(minfo->video.vbase) + ydstorg;
drivers/video/fbdev/matrox/matroxfb_base.c
768
matroxfb_update_fix(minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
769
minfo->fbcon.fix.visual = visual;
drivers/video/fbdev/matrox/matroxfb_base.c
770
minfo->fbcon.fix.type = FB_TYPE_PACKED_PIXELS;
drivers/video/fbdev/matrox/matroxfb_base.c
771
minfo->fbcon.fix.type_aux = 0;
drivers/video/fbdev/matrox/matroxfb_base.c
772
minfo->fbcon.fix.line_length = (var->xres_virtual * var->bits_per_pixel) >> 3;
drivers/video/fbdev/matrox/matroxfb_base.c
776
minfo->curr.cmap_len = cmap_len;
drivers/video/fbdev/matrox/matroxfb_base.c
777
ydstorg += minfo->devflags.ydstorg;
drivers/video/fbdev/matrox/matroxfb_base.c
778
minfo->curr.ydstorg.bytes = ydstorg;
drivers/video/fbdev/matrox/matroxfb_base.c
779
minfo->curr.ydstorg.chunks = ydstorg >> (isInterleave(minfo) ? 3 : 2);
drivers/video/fbdev/matrox/matroxfb_base.c
781
minfo->curr.ydstorg.pixels = ydstorg;
drivers/video/fbdev/matrox/matroxfb_base.c
783
minfo->curr.ydstorg.pixels = (ydstorg * 8) / var->bits_per_pixel;
drivers/video/fbdev/matrox/matroxfb_base.c
784
minfo->curr.final_bppShift = matroxfb_get_final_bppShift(minfo, var->bits_per_pixel);
drivers/video/fbdev/matrox/matroxfb_base.c
800
hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_base.c
802
down_read(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_base.c
804
if (minfo->outputs[out].src == MATROXFB_SRC_CRTC1 &&
drivers/video/fbdev/matrox/matroxfb_base.c
805
minfo->outputs[out].output->compute) {
drivers/video/fbdev/matrox/matroxfb_base.c
806
minfo->outputs[out].output->compute(minfo->outputs[out].data, &mt);
drivers/video/fbdev/matrox/matroxfb_base.c
809
up_read(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_base.c
810
minfo->crtc1.pixclock = mt.pixclock;
drivers/video/fbdev/matrox/matroxfb_base.c
811
minfo->crtc1.mnp = mt.mnp;
drivers/video/fbdev/matrox/matroxfb_base.c
812
minfo->hw_switch->init(minfo, &mt);
drivers/video/fbdev/matrox/matroxfb_base.c
813
pos = (var->yoffset * var->xres_virtual + var->xoffset) * minfo->curr.final_bppShift / 32;
drivers/video/fbdev/matrox/matroxfb_base.c
814
pos += minfo->curr.ydstorg.chunks;
drivers/video/fbdev/matrox/matroxfb_base.c
820
minfo->hw_switch->restore(minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
821
update_crtc2(minfo, pos);
drivers/video/fbdev/matrox/matroxfb_base.c
822
down_read(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_base.c
824
if (minfo->outputs[out].src == MATROXFB_SRC_CRTC1 &&
drivers/video/fbdev/matrox/matroxfb_base.c
825
minfo->outputs[out].output->program) {
drivers/video/fbdev/matrox/matroxfb_base.c
826
minfo->outputs[out].output->program(minfo->outputs[out].data);
drivers/video/fbdev/matrox/matroxfb_base.c
830
if (minfo->outputs[out].src == MATROXFB_SRC_CRTC1 &&
drivers/video/fbdev/matrox/matroxfb_base.c
831
minfo->outputs[out].output->start) {
drivers/video/fbdev/matrox/matroxfb_base.c
832
minfo->outputs[out].output->start(minfo->outputs[out].data);
drivers/video/fbdev/matrox/matroxfb_base.c
835
up_read(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_base.c
836
matrox_cfbX_init(minfo);
drivers/video/fbdev/matrox/matroxfb_base.c
839
minfo->initialized = 1;
drivers/video/fbdev/matrox/matroxfb_base.c
843
static int matroxfb_get_vblank(struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/matroxfb_base.c
848
matroxfb_enable_irq(minfo, 0);
drivers/video/fbdev/matrox/matroxfb_base.c
861
if (vblank->vcount >= minfo->fbcon.var.yres)
drivers/video/fbdev/matrox/matroxfb_base.c
863
if (test_bit(0, &minfo->irq_flags)) {
drivers/video/fbdev/matrox/matroxfb_base.c
867
vblank->count = minfo->crtc1.vsync.cnt;
drivers/video/fbdev/matrox/matroxfb_base.c
880
struct matrox_fb_info *minfo = info2minfo(info);
drivers/video/fbdev/matrox/matroxfb_base.c
884
if (minfo->dead) {
drivers/video/fbdev/matrox/matroxfb_base.c
894
err = matroxfb_get_vblank(minfo, &vblank);
drivers/video/fbdev/matrox/matroxfb_base.c
908
return matroxfb_wait_for_sync(minfo, crt);
drivers/video/fbdev/matrox/matroxfb_base.c
920
down_read(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_base.c
921
oproc = minfo->outputs[mom.output].output;
drivers/video/fbdev/matrox/matroxfb_base.c
931
val = oproc->verifymode(minfo->outputs[mom.output].data, mom.mode);
drivers/video/fbdev/matrox/matroxfb_base.c
934
if (minfo->outputs[mom.output].mode != mom.mode) {
drivers/video/fbdev/matrox/matroxfb_base.c
935
minfo->outputs[mom.output].mode = mom.mode;
drivers/video/fbdev/matrox/matroxfb_base.c
939
up_read(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_base.c
942
switch (minfo->outputs[mom.output].src) {
drivers/video/fbdev/matrox/matroxfb_base.c
950
down_read(&minfo->crtc2.lock);
drivers/video/fbdev/matrox/matroxfb_base.c
951
crtc2 = minfo->crtc2.info;
drivers/video/fbdev/matrox/matroxfb_base.c
954
up_read(&minfo->crtc2.lock);
drivers/video/fbdev/matrox/matroxfb_base.c
970
down_read(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_base.c
971
oproc = minfo->outputs[mom.output].output;
drivers/video/fbdev/matrox/matroxfb_base.c
975
mom.mode = minfo->outputs[mom.output].mode;
drivers/video/fbdev/matrox/matroxfb_base.c
978
up_read(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_base.c
997
if (!minfo->outputs[i].output)
drivers/video/fbdev/matrox/matroxfb_base.c
999
switch (minfo->outputs[i].src) {
drivers/video/fbdev/matrox/matroxfb_base.h
499
int (*preinit)(struct matrox_fb_info *minfo);
drivers/video/fbdev/matrox/matroxfb_base.h
500
void (*reset)(struct matrox_fb_info *minfo);
drivers/video/fbdev/matrox/matroxfb_base.h
501
int (*init)(struct matrox_fb_info *minfo, struct my_timming*);
drivers/video/fbdev/matrox/matroxfb_base.h
502
void (*restore)(struct matrox_fb_info *minfo);
drivers/video/fbdev/matrox/matroxfb_base.h
665
#define mga_inb(addr) mga_readb(minfo->mmio.vbase, (addr))
drivers/video/fbdev/matrox/matroxfb_base.h
666
#define mga_inl(addr) mga_readl(minfo->mmio.vbase, (addr))
drivers/video/fbdev/matrox/matroxfb_base.h
667
#define mga_outb(addr,val) mga_writeb(minfo->mmio.vbase, (addr), (val))
drivers/video/fbdev/matrox/matroxfb_base.h
668
#define mga_outw(addr,val) mga_writew(minfo->mmio.vbase, (addr), (val))
drivers/video/fbdev/matrox/matroxfb_base.h
669
#define mga_outl(addr,val) mga_writel(minfo->mmio.vbase, (addr), (val))
drivers/video/fbdev/matrox/matroxfb_base.h
688
#define matroxfb_DAC_lock() spin_lock(&minfo->lock.DAC)
drivers/video/fbdev/matrox/matroxfb_base.h
689
#define matroxfb_DAC_unlock() spin_unlock(&minfo->lock.DAC)
drivers/video/fbdev/matrox/matroxfb_base.h
690
#define matroxfb_DAC_lock_irqsave(flags) spin_lock_irqsave(&minfo->lock.DAC, flags)
drivers/video/fbdev/matrox/matroxfb_base.h
691
#define matroxfb_DAC_unlock_irqrestore(flags) spin_unlock_irqrestore(&minfo->lock.DAC, flags)
drivers/video/fbdev/matrox/matroxfb_base.h
692
extern void matroxfb_DAC_out(const struct matrox_fb_info *minfo, int reg,
drivers/video/fbdev/matrox/matroxfb_base.h
694
extern int matroxfb_DAC_in(const struct matrox_fb_info *minfo, int reg);
drivers/video/fbdev/matrox/matroxfb_base.h
696
extern int matroxfb_wait_for_sync(struct matrox_fb_info *minfo, u_int32_t crtc);
drivers/video/fbdev/matrox/matroxfb_base.h
697
extern int matroxfb_enable_irq(struct matrox_fb_info *minfo, int reenable);
drivers/video/fbdev/matrox/matroxfb_base.h
700
#define CRITBEGIN spin_lock_irqsave(&minfo->lock.accel, critflags);
drivers/video/fbdev/matrox/matroxfb_base.h
701
#define CRITEND spin_unlock_irqrestore(&minfo->lock.accel, critflags);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
102
if (minfo->outputs[0].src == MATROXFB_SRC_CRTC2) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
151
minfo->hw.crtc2.ctl = tmp;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
162
struct matrox_fb_info *minfo = m2info->primary_dev;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
165
minfo->hw.crtc2.ctl = 0x00000004;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
173
struct matrox_fb_info *minfo = m2info->primary_dev;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
265
struct matrox_fb_info *minfo = m2info->primary_dev;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
267
if (minfo) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
270
if (minfo->dead) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
273
err = minfo->fbops.fb_open(&minfo->fbcon, user);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
285
struct matrox_fb_info *minfo = m2info->primary_dev;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
287
if (minfo) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
288
err = minfo->fbops.fb_release(&minfo->fbcon, user);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
331
struct matrox_fb_info *minfo = m2info->primary_dev;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
357
down_read(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
359
if (minfo->outputs[out].src == MATROXFB_SRC_CRTC2) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
361
if (minfo->outputs[out].output->compute) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
362
minfo->outputs[out].output->compute(minfo->outputs[out].data, &mt);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
366
minfo->crtc2.pixclock = mt.pixclock;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
367
minfo->crtc2.mnp = mt.mnp;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
368
up_read(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
374
DAC1064_global_init(minfo);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
375
DAC1064_global_restore(minfo);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
376
down_read(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
378
if (minfo->outputs[out].src == MATROXFB_SRC_CRTC2 &&
drivers/video/fbdev/matrox/matroxfb_crtc2.c
379
minfo->outputs[out].output->program) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
380
minfo->outputs[out].output->program(minfo->outputs[out].data);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
384
if (minfo->outputs[out].src == MATROXFB_SRC_CRTC2 &&
drivers/video/fbdev/matrox/matroxfb_crtc2.c
385
minfo->outputs[out].output->start) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
386
minfo->outputs[out].output->start(minfo->outputs[out].data);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
389
up_read(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
404
struct matrox_fb_info *minfo = m2info->primary_dev;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
406
matroxfb_enable_irq(minfo, 0);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
414
if (test_bit(0, &minfo->irq_flags)) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
418
vblank->count = minfo->crtc2.vsync.cnt;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
428
struct matrox_fb_info *minfo = m2info->primary_dev;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
454
return matroxfb_wait_for_sync(minfo, 1);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
460
return minfo->fbcon.fbops->fb_ioctl(&minfo->fbcon, cmd, arg);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
474
if (!minfo->outputs[out].output)
drivers/video/fbdev/matrox/matroxfb_crtc2.c
476
switch (minfo->outputs[out].src) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
485
if (minfo->devflags.panellink) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
488
if ((minfo->outputs[2].src == MATROXFB_SRC_CRTC1) && tmp)
drivers/video/fbdev/matrox/matroxfb_crtc2.c
494
if (minfo->outputs[out].src != MATROXFB_SRC_CRTC2) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
496
minfo->outputs[out].src = MATROXFB_SRC_CRTC2;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
498
} else if (minfo->outputs[out].src == MATROXFB_SRC_CRTC2) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
500
minfo->outputs[out].src = MATROXFB_SRC_NONE;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
514
if (minfo->outputs[out].src == MATROXFB_SRC_CRTC2) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
528
if (minfo->outputs[out].output) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
529
switch (minfo->outputs[out].src) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
537
if (minfo->devflags.panellink) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
539
if (minfo->outputs[2].src == MATROXFB_SRC_CRTC1) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
597
static int matroxfb_dh_regit(const struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/matroxfb_crtc2.c
614
if (minfo->video.len_usable + mem <= minfo->video.len)
drivers/video/fbdev/matrox/matroxfb_crtc2.c
615
m2info->video.offbase = minfo->video.len - mem;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
616
else if (minfo->video.len < mem) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
620
minfo->video.len_usable -= mem;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
621
m2info->video.offbase = minfo->video.len_usable;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
623
m2info->video.base = minfo->video.base + m2info->video.offbase;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
625
m2info->video.vbase.vaddr = vaddr_va(minfo->video.vbase) + m2info->video.offbase;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
626
m2info->mmio.base = minfo->mmio.base;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
627
m2info->mmio.vbase = minfo->mmio.vbase;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
628
m2info->mmio.len = minfo->mmio.len;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
636
down_write(&minfo->crtc2.lock);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
637
oldcrtc2 = minfo->crtc2.info;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
638
minfo->crtc2.info = m2info;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
639
up_write(&minfo->crtc2.lock);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
652
if (matroxfb_dh_regit(minfo, m2info)) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
657
minfo->fbcon.node, m2info->fbcon.node);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
669
down_write(&minfo->crtc2.lock);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
670
crtc2 = minfo->crtc2.info;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
672
minfo->crtc2.info = NULL;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
673
up_write(&minfo->crtc2.lock);
drivers/video/fbdev/matrox/matroxfb_crtc2.c
683
minfo->video.len_usable += m2info->video.borrowed;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
690
static void* matroxfb_crtc2_probe(struct matrox_fb_info* minfo) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
694
if (!minfo->devflags.crtc2)
drivers/video/fbdev/matrox/matroxfb_crtc2.c
70
struct matrox_fb_info *minfo = m2info->primary_dev;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
700
m2info->primary_dev = minfo;
drivers/video/fbdev/matrox/matroxfb_crtc2.c
709
static void matroxfb_crtc2_remove(struct matrox_fb_info* minfo, void* crtc2) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
86
if (minfo->outputs[1].src == MATROXFB_SRC_CRTC2) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
87
if (minfo->devflags.g450dac) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
90
if (minfo->outputs[1].mode != MATROXFB_OUTPUT_MODE_MONITOR) {
drivers/video/fbdev/matrox/matroxfb_crtc2.c
98
} else if (minfo->outputs[0].src == MATROXFB_SRC_CRTC2) {
drivers/video/fbdev/matrox/matroxfb_g450.c
100
static int cve2_get_reg(struct matrox_fb_info *minfo, int reg)
drivers/video/fbdev/matrox/matroxfb_g450.c
106
matroxfb_DAC_out(minfo, 0x87, reg);
drivers/video/fbdev/matrox/matroxfb_g450.c
107
val = matroxfb_DAC_in(minfo, 0x88);
drivers/video/fbdev/matrox/matroxfb_g450.c
112
static void cve2_set_reg(struct matrox_fb_info *minfo, int reg, int val)
drivers/video/fbdev/matrox/matroxfb_g450.c
117
matroxfb_DAC_out(minfo, 0x87, reg);
drivers/video/fbdev/matrox/matroxfb_g450.c
118
matroxfb_DAC_out(minfo, 0x88, val);
drivers/video/fbdev/matrox/matroxfb_g450.c
122
static void cve2_set_reg10(struct matrox_fb_info *minfo, int reg, int val)
drivers/video/fbdev/matrox/matroxfb_g450.c
127
matroxfb_DAC_out(minfo, 0x87, reg);
drivers/video/fbdev/matrox/matroxfb_g450.c
128
matroxfb_DAC_out(minfo, 0x88, val >> 2);
drivers/video/fbdev/matrox/matroxfb_g450.c
129
matroxfb_DAC_out(minfo, 0x87, reg + 1);
drivers/video/fbdev/matrox/matroxfb_g450.c
130
matroxfb_DAC_out(minfo, 0x88, val & 3);
drivers/video/fbdev/matrox/matroxfb_g450.c
134
static void g450_compute_bwlevel(const struct matrox_fb_info *minfo, int *bl,
drivers/video/fbdev/matrox/matroxfb_g450.c
137
const int b = minfo->altout.tvo_params.brightness + BLMIN;
drivers/video/fbdev/matrox/matroxfb_g450.c
138
const int c = minfo->altout.tvo_params.contrast;
drivers/video/fbdev/matrox/matroxfb_g450.c
167
struct matrox_fb_info *minfo = md;
drivers/video/fbdev/matrox/matroxfb_g450.c
175
if (p->value == *get_ctrl_ptr(minfo, i)) return 0;
drivers/video/fbdev/matrox/matroxfb_g450.c
186
*get_ctrl_ptr(minfo, i) = p->value;
drivers/video/fbdev/matrox/matroxfb_g450.c
193
g450_compute_bwlevel(minfo, &blacklevel, &whitelevel);
drivers/video/fbdev/matrox/matroxfb_g450.c
194
cve2_set_reg10(minfo, 0x0e, blacklevel);
drivers/video/fbdev/matrox/matroxfb_g450.c
195
cve2_set_reg10(minfo, 0x1e, whitelevel);
drivers/video/fbdev/matrox/matroxfb_g450.c
199
cve2_set_reg(minfo, 0x20, p->value);
drivers/video/fbdev/matrox/matroxfb_g450.c
200
cve2_set_reg(minfo, 0x22, p->value);
drivers/video/fbdev/matrox/matroxfb_g450.c
203
cve2_set_reg(minfo, 0x25, p->value);
drivers/video/fbdev/matrox/matroxfb_g450.c
207
unsigned char val = cve2_get_reg(minfo, 0x05);
drivers/video/fbdev/matrox/matroxfb_g450.c
210
cve2_set_reg(minfo, 0x05, val);
drivers/video/fbdev/matrox/matroxfb_g450.c
221
struct matrox_fb_info *minfo = md;
drivers/video/fbdev/matrox/matroxfb_g450.c
225
p->value = *get_ctrl_ptr(minfo, i);
drivers/video/fbdev/matrox/matroxfb_g450.c
239
static void computeRegs(struct matrox_fb_info *minfo, struct mavenregs *r,
drivers/video/fbdev/matrox/matroxfb_g450.c
266
mnp = matroxfb_g450_setclk(minfo, piic, M_VIDEO_PLL);
drivers/video/fbdev/matrox/matroxfb_g450.c
269
mt->pixclock = g450_mnp2f(minfo, mnp);
drivers/video/fbdev/matrox/matroxfb_g450.c
505
#define LR(x) cve2_set_reg(minfo, (x), m->regs[(x)])
drivers/video/fbdev/matrox/matroxfb_g450.c
506
static void cve2_init_TV(struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/matroxfb_g450.c
515
cve2_set_reg(minfo, 0x3E, 0x01);
drivers/video/fbdev/matrox/matroxfb_g450.c
520
cve2_set_reg(minfo, 0x3E, 0x00);
drivers/video/fbdev/matrox/matroxfb_g450.c
524
struct matrox_fb_info *minfo = md;
drivers/video/fbdev/matrox/matroxfb_g450.c
526
dprintk(KERN_DEBUG "Computing, mode=%u\n", minfo->outputs[1].mode);
drivers/video/fbdev/matrox/matroxfb_g450.c
529
minfo->outputs[1].mode != MATROXFB_OUTPUT_MODE_MONITOR) {
drivers/video/fbdev/matrox/matroxfb_g450.c
532
cve2_init_TVdata(minfo->outputs[1].mode, &minfo->hw.maven, &outd);
drivers/video/fbdev/matrox/matroxfb_g450.c
535
g450_compute_bwlevel(minfo, &blacklevel, &whitelevel);
drivers/video/fbdev/matrox/matroxfb_g450.c
536
minfo->hw.maven.regs[0x0E] = blacklevel >> 2;
drivers/video/fbdev/matrox/matroxfb_g450.c
537
minfo->hw.maven.regs[0x0F] = blacklevel & 3;
drivers/video/fbdev/matrox/matroxfb_g450.c
538
minfo->hw.maven.regs[0x1E] = whitelevel >> 2;
drivers/video/fbdev/matrox/matroxfb_g450.c
539
minfo->hw.maven.regs[0x1F] = whitelevel & 3;
drivers/video/fbdev/matrox/matroxfb_g450.c
541
minfo->hw.maven.regs[0x20] =
drivers/video/fbdev/matrox/matroxfb_g450.c
542
minfo->hw.maven.regs[0x22] = minfo->altout.tvo_params.saturation;
drivers/video/fbdev/matrox/matroxfb_g450.c
544
minfo->hw.maven.regs[0x25] = minfo->altout.tvo_params.hue;
drivers/video/fbdev/matrox/matroxfb_g450.c
546
if (minfo->altout.tvo_params.testout) {
drivers/video/fbdev/matrox/matroxfb_g450.c
547
minfo->hw.maven.regs[0x05] |= 0x02;
drivers/video/fbdev/matrox/matroxfb_g450.c
550
computeRegs(minfo, &minfo->hw.maven, mt, outd);
drivers/video/fbdev/matrox/matroxfb_g450.c
554
mt->mnp = matroxfb_g450_setclk(minfo, mt->pixclock, (mt->crtc == MATROXFB_SRC_CRTC1) ? M_PIXEL_PLL_C : M_VIDEO_PLL);
drivers/video/fbdev/matrox/matroxfb_g450.c
555
mt->pixclock = g450_mnp2f(minfo, mt->mnp);
drivers/video/fbdev/matrox/matroxfb_g450.c
562
struct matrox_fb_info *minfo = md;
drivers/video/fbdev/matrox/matroxfb_g450.c
564
if (minfo->outputs[1].mode != MATROXFB_OUTPUT_MODE_MONITOR) {
drivers/video/fbdev/matrox/matroxfb_g450.c
565
cve2_init_TV(minfo, &minfo->hw.maven);
drivers/video/fbdev/matrox/matroxfb_g450.c
581
struct matrox_fb_info *minfo = md;
drivers/video/fbdev/matrox/matroxfb_g450.c
584
mt->mnp = matroxfb_g450_setclk(minfo, mt->pixclock, (mt->crtc == MATROXFB_SRC_CRTC1) ? M_PIXEL_PLL_C : M_VIDEO_PLL);
drivers/video/fbdev/matrox/matroxfb_g450.c
585
mt->pixclock = g450_mnp2f(minfo, mt->mnp);
drivers/video/fbdev/matrox/matroxfb_g450.c
605
void matroxfb_g450_connect(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_g450.c
607
if (minfo->devflags.g450dac) {
drivers/video/fbdev/matrox/matroxfb_g450.c
608
down_write(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_g450.c
609
tvo_fill_defaults(minfo);
drivers/video/fbdev/matrox/matroxfb_g450.c
610
minfo->outputs[1].src = minfo->outputs[1].default_src;
drivers/video/fbdev/matrox/matroxfb_g450.c
611
minfo->outputs[1].data = minfo;
drivers/video/fbdev/matrox/matroxfb_g450.c
612
minfo->outputs[1].output = &matroxfb_g450_altout;
drivers/video/fbdev/matrox/matroxfb_g450.c
613
minfo->outputs[1].mode = MATROXFB_OUTPUT_MODE_MONITOR;
drivers/video/fbdev/matrox/matroxfb_g450.c
614
minfo->outputs[2].src = minfo->outputs[2].default_src;
drivers/video/fbdev/matrox/matroxfb_g450.c
615
minfo->outputs[2].data = minfo;
drivers/video/fbdev/matrox/matroxfb_g450.c
616
minfo->outputs[2].output = &matroxfb_g450_dvi;
drivers/video/fbdev/matrox/matroxfb_g450.c
617
minfo->outputs[2].mode = MATROXFB_OUTPUT_MODE_MONITOR;
drivers/video/fbdev/matrox/matroxfb_g450.c
618
up_write(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_g450.c
622
void matroxfb_g450_shutdown(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_g450.c
624
if (minfo->devflags.g450dac) {
drivers/video/fbdev/matrox/matroxfb_g450.c
625
down_write(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_g450.c
626
minfo->outputs[1].src = MATROXFB_SRC_NONE;
drivers/video/fbdev/matrox/matroxfb_g450.c
627
minfo->outputs[1].output = NULL;
drivers/video/fbdev/matrox/matroxfb_g450.c
628
minfo->outputs[1].data = NULL;
drivers/video/fbdev/matrox/matroxfb_g450.c
629
minfo->outputs[1].mode = MATROXFB_OUTPUT_MODE_MONITOR;
drivers/video/fbdev/matrox/matroxfb_g450.c
630
minfo->outputs[2].src = MATROXFB_SRC_NONE;
drivers/video/fbdev/matrox/matroxfb_g450.c
631
minfo->outputs[2].output = NULL;
drivers/video/fbdev/matrox/matroxfb_g450.c
632
minfo->outputs[2].data = NULL;
drivers/video/fbdev/matrox/matroxfb_g450.c
633
minfo->outputs[2].mode = MATROXFB_OUTPUT_MODE_MONITOR;
drivers/video/fbdev/matrox/matroxfb_g450.c
634
up_write(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_g450.c
86
static inline int *get_ctrl_ptr(struct matrox_fb_info *minfo, unsigned int idx)
drivers/video/fbdev/matrox/matroxfb_g450.c
88
return (int*)((char*)minfo + g450_controls[idx].control);
drivers/video/fbdev/matrox/matroxfb_g450.c
91
static void tvo_fill_defaults(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_g450.c
96
*get_ctrl_ptr(minfo, i) = g450_controls[i].desc.default_value;
drivers/video/fbdev/matrox/matroxfb_g450.h
11
static inline void matroxfb_g450_connect(struct matrox_fb_info *minfo) { };
drivers/video/fbdev/matrox/matroxfb_g450.h
12
static inline void matroxfb_g450_shutdown(struct matrox_fb_info *minfo) { };
drivers/video/fbdev/matrox/matroxfb_g450.h
8
void matroxfb_g450_connect(struct matrox_fb_info *minfo);
drivers/video/fbdev/matrox/matroxfb_g450.h
9
void matroxfb_g450_shutdown(struct matrox_fb_info *minfo);
drivers/video/fbdev/matrox/matroxfb_maven.c
1151
return maven_compute_timming(md, mt, &minfo->hw.maven);
drivers/video/fbdev/matrox/matroxfb_maven.c
1159
return maven_program_timming(md, &minfo->hw.maven);
drivers/video/fbdev/matrox/matroxfb_maven.c
1203
struct matrox_fb_info *minfo = container_of(clnt->adapter,
drivers/video/fbdev/matrox/matroxfb_maven.c
1205
adapter)->minfo;
drivers/video/fbdev/matrox/matroxfb_maven.c
1207
md->primary_head = minfo;
drivers/video/fbdev/matrox/matroxfb_maven.c
1209
down_write(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_maven.c
1210
minfo->outputs[1].output = &maven_altout;
drivers/video/fbdev/matrox/matroxfb_maven.c
1211
minfo->outputs[1].src = minfo->outputs[1].default_src;
drivers/video/fbdev/matrox/matroxfb_maven.c
1212
minfo->outputs[1].data = md;
drivers/video/fbdev/matrox/matroxfb_maven.c
1213
minfo->outputs[1].mode = MATROXFB_OUTPUT_MODE_MONITOR;
drivers/video/fbdev/matrox/matroxfb_maven.c
1214
up_write(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_maven.c
1239
struct matrox_fb_info *minfo = md->primary_head;
drivers/video/fbdev/matrox/matroxfb_maven.c
1241
down_write(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_maven.c
1242
minfo->outputs[1].src = MATROXFB_SRC_NONE;
drivers/video/fbdev/matrox/matroxfb_maven.c
1243
minfo->outputs[1].output = NULL;
drivers/video/fbdev/matrox/matroxfb_maven.c
1244
minfo->outputs[1].data = NULL;
drivers/video/fbdev/matrox/matroxfb_maven.c
1245
minfo->outputs[1].mode = MATROXFB_OUTPUT_MODE_MONITOR;
drivers/video/fbdev/matrox/matroxfb_maven.c
1246
up_write(&minfo->altout.lock);
drivers/video/fbdev/matrox/matroxfb_maven.c
477
struct matrox_fb_info *minfo = md->primary_head;
drivers/video/fbdev/matrox/matroxfb_maven.c
479
if (minfo->outputs[1].mode == MATROXFB_OUTPUT_MODE_PAL)
drivers/video/fbdev/matrox/matroxfb_maven.c
515
data->regs[0x22] = minfo->altout.tvo_params.saturation;
drivers/video/fbdev/matrox/matroxfb_maven.c
519
data->regs[0x25] = minfo->altout.tvo_params.hue;
drivers/video/fbdev/matrox/matroxfb_maven.c
760
struct matrox_fb_info *minfo = md->primary_head;
drivers/video/fbdev/matrox/matroxfb_maven.c
762
m->mode = minfo->outputs[1].mode;
drivers/video/fbdev/matrox/matroxfb_maven.h
14
struct matrox_fb_info* minfo;
drivers/video/fbdev/matrox/matroxfb_misc.c
101
int matroxfb_DAC_in(const struct matrox_fb_info *minfo, int reg)
drivers/video/fbdev/matrox/matroxfb_misc.c
191
int matroxfb_vgaHWinit(struct matrox_fb_info *minfo, struct my_timming *m)
drivers/video/fbdev/matrox/matroxfb_misc.c
198
struct matrox_hw_state * const hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_misc.c
248
divider = minfo->curr.final_bppShift;
drivers/video/fbdev/matrox/matroxfb_misc.c
278
wd = minfo->fbcon.var.xres_virtual * minfo->curr.final_bppShift / 64;
drivers/video/fbdev/matrox/matroxfb_misc.c
295
if (minfo->outputs[1].src == MATROXFB_SRC_CRTC1)
drivers/video/fbdev/matrox/matroxfb_misc.c
339
void matroxfb_vgaHWrestore(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_misc.c
342
struct matrox_hw_state * const hw = &minfo->hw;
drivers/video/fbdev/matrox/matroxfb_misc.c
531
static int parse_pins1(struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/matroxfb_misc.c
544
minfo->limits.pixel.vcomax = maxdac;
drivers/video/fbdev/matrox/matroxfb_misc.c
545
minfo->values.pll.system = get_unaligned_le16(bd->pins + 28) ?
drivers/video/fbdev/matrox/matroxfb_misc.c
548
minfo->features.pll.ref_freq = 14318;
drivers/video/fbdev/matrox/matroxfb_misc.c
549
minfo->values.reg.mctlwtst = 0x00030101;
drivers/video/fbdev/matrox/matroxfb_misc.c
553
static void default_pins1(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_misc.c
556
minfo->limits.pixel.vcomax = 220000;
drivers/video/fbdev/matrox/matroxfb_misc.c
557
minfo->values.pll.system = 50000;
drivers/video/fbdev/matrox/matroxfb_misc.c
558
minfo->features.pll.ref_freq = 14318;
drivers/video/fbdev/matrox/matroxfb_misc.c
559
minfo->values.reg.mctlwtst = 0x00030101;
drivers/video/fbdev/matrox/matroxfb_misc.c
562
static int parse_pins2(struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/matroxfb_misc.c
565
minfo->limits.pixel.vcomax =
drivers/video/fbdev/matrox/matroxfb_misc.c
566
minfo->limits.system.vcomax = (bd->pins[41] == 0xFF) ? 230000 : ((bd->pins[41] + 100) * 1000);
drivers/video/fbdev/matrox/matroxfb_misc.c
567
minfo->values.reg.mctlwtst = ((bd->pins[51] & 0x01) ? 0x00000001 : 0) |
drivers/video/fbdev/matrox/matroxfb_misc.c
571
minfo->values.pll.system = (bd->pins[43] == 0xFF) ? 50000 : ((bd->pins[43] + 100) * 1000);
drivers/video/fbdev/matrox/matroxfb_misc.c
572
minfo->features.pll.ref_freq = 14318;
drivers/video/fbdev/matrox/matroxfb_misc.c
576
static void default_pins2(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_misc.c
579
minfo->limits.pixel.vcomax =
drivers/video/fbdev/matrox/matroxfb_misc.c
580
minfo->limits.system.vcomax = 230000;
drivers/video/fbdev/matrox/matroxfb_misc.c
581
minfo->values.reg.mctlwtst = 0x00030101;
drivers/video/fbdev/matrox/matroxfb_misc.c
582
minfo->values.pll.system = 50000;
drivers/video/fbdev/matrox/matroxfb_misc.c
583
minfo->features.pll.ref_freq = 14318;
drivers/video/fbdev/matrox/matroxfb_misc.c
586
static int parse_pins3(struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/matroxfb_misc.c
589
minfo->limits.pixel.vcomax =
drivers/video/fbdev/matrox/matroxfb_misc.c
590
minfo->limits.system.vcomax = (bd->pins[36] == 0xFF) ? 230000 : ((bd->pins[36] + 100) * 1000);
drivers/video/fbdev/matrox/matroxfb_misc.c
591
minfo->values.reg.mctlwtst = get_unaligned_le32(bd->pins + 48) == 0xFFFFFFFF ?
drivers/video/fbdev/matrox/matroxfb_misc.c
594
minfo->values.reg.memrdbk = ((bd->pins[57] << 21) & 0x1E000000) |
drivers/video/fbdev/matrox/matroxfb_misc.c
598
minfo->values.reg.opt = (bd->pins[54] & 7) << 10;
drivers/video/fbdev/matrox/matroxfb_misc.c
599
minfo->values.reg.opt2 = bd->pins[58] << 12;
drivers/video/fbdev/matrox/matroxfb_misc.c
600
minfo->features.pll.ref_freq = (bd->pins[52] & 0x20) ? 14318 : 27000;
drivers/video/fbdev/matrox/matroxfb_misc.c
604
static void default_pins3(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_misc.c
607
minfo->limits.pixel.vcomax =
drivers/video/fbdev/matrox/matroxfb_misc.c
608
minfo->limits.system.vcomax = 230000;
drivers/video/fbdev/matrox/matroxfb_misc.c
609
minfo->values.reg.mctlwtst = 0x01250A21;
drivers/video/fbdev/matrox/matroxfb_misc.c
610
minfo->values.reg.memrdbk = 0x00000000;
drivers/video/fbdev/matrox/matroxfb_misc.c
611
minfo->values.reg.opt = 0x00000C00;
drivers/video/fbdev/matrox/matroxfb_misc.c
612
minfo->values.reg.opt2 = 0x00000000;
drivers/video/fbdev/matrox/matroxfb_misc.c
613
minfo->features.pll.ref_freq = 27000;
drivers/video/fbdev/matrox/matroxfb_misc.c
616
static int parse_pins4(struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/matroxfb_misc.c
619
minfo->limits.pixel.vcomax = (bd->pins[ 39] == 0xFF) ? 230000 : bd->pins[ 39] * 4000;
drivers/video/fbdev/matrox/matroxfb_misc.c
620
minfo->limits.system.vcomax = (bd->pins[ 38] == 0xFF) ? minfo->limits.pixel.vcomax : bd->pins[ 38] * 4000;
drivers/video/fbdev/matrox/matroxfb_misc.c
621
minfo->values.reg.mctlwtst = get_unaligned_le32(bd->pins + 71);
drivers/video/fbdev/matrox/matroxfb_misc.c
622
minfo->values.reg.memrdbk = ((bd->pins[87] << 21) & 0x1E000000) |
drivers/video/fbdev/matrox/matroxfb_misc.c
626
minfo->values.reg.opt = ((bd->pins[53] << 15) & 0x00400000) |
drivers/video/fbdev/matrox/matroxfb_misc.c
629
minfo->values.reg.opt3 = get_unaligned_le32(bd->pins + 67);
drivers/video/fbdev/matrox/matroxfb_misc.c
630
minfo->values.pll.system = (bd->pins[ 65] == 0xFF) ? 200000 : bd->pins[ 65] * 4000;
drivers/video/fbdev/matrox/matroxfb_misc.c
631
minfo->features.pll.ref_freq = (bd->pins[ 92] & 0x01) ? 14318 : 27000;
drivers/video/fbdev/matrox/matroxfb_misc.c
635
static void default_pins4(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_misc.c
638
minfo->limits.pixel.vcomax =
drivers/video/fbdev/matrox/matroxfb_misc.c
639
minfo->limits.system.vcomax = 252000;
drivers/video/fbdev/matrox/matroxfb_misc.c
640
minfo->values.reg.mctlwtst = 0x04A450A1;
drivers/video/fbdev/matrox/matroxfb_misc.c
641
minfo->values.reg.memrdbk = 0x000000E7;
drivers/video/fbdev/matrox/matroxfb_misc.c
642
minfo->values.reg.opt = 0x10000400;
drivers/video/fbdev/matrox/matroxfb_misc.c
643
minfo->values.reg.opt3 = 0x0190A419;
drivers/video/fbdev/matrox/matroxfb_misc.c
644
minfo->values.pll.system = 200000;
drivers/video/fbdev/matrox/matroxfb_misc.c
645
minfo->features.pll.ref_freq = 27000;
drivers/video/fbdev/matrox/matroxfb_misc.c
648
static int parse_pins5(struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/matroxfb_misc.c
655
minfo->limits.pixel.vcomax = (bd->pins[ 38] == 0xFF) ? 600000 : bd->pins[ 38] * mult;
drivers/video/fbdev/matrox/matroxfb_misc.c
656
minfo->limits.system.vcomax = (bd->pins[ 36] == 0xFF) ? minfo->limits.pixel.vcomax : bd->pins[ 36] * mult;
drivers/video/fbdev/matrox/matroxfb_misc.c
657
minfo->limits.video.vcomax = (bd->pins[ 37] == 0xFF) ? minfo->limits.system.vcomax : bd->pins[ 37] * mult;
drivers/video/fbdev/matrox/matroxfb_misc.c
658
minfo->limits.pixel.vcomin = (bd->pins[123] == 0xFF) ? 256000 : bd->pins[123] * mult;
drivers/video/fbdev/matrox/matroxfb_misc.c
659
minfo->limits.system.vcomin = (bd->pins[121] == 0xFF) ? minfo->limits.pixel.vcomin : bd->pins[121] * mult;
drivers/video/fbdev/matrox/matroxfb_misc.c
660
minfo->limits.video.vcomin = (bd->pins[122] == 0xFF) ? minfo->limits.system.vcomin : bd->pins[122] * mult;
drivers/video/fbdev/matrox/matroxfb_misc.c
661
minfo->values.pll.system =
drivers/video/fbdev/matrox/matroxfb_misc.c
662
minfo->values.pll.video = (bd->pins[ 92] == 0xFF) ? 284000 : bd->pins[ 92] * 4000;
drivers/video/fbdev/matrox/matroxfb_misc.c
663
minfo->values.reg.opt = get_unaligned_le32(bd->pins + 48);
drivers/video/fbdev/matrox/matroxfb_misc.c
664
minfo->values.reg.opt2 = get_unaligned_le32(bd->pins + 52);
drivers/video/fbdev/matrox/matroxfb_misc.c
665
minfo->values.reg.opt3 = get_unaligned_le32(bd->pins + 94);
drivers/video/fbdev/matrox/matroxfb_misc.c
666
minfo->values.reg.mctlwtst = get_unaligned_le32(bd->pins + 98);
drivers/video/fbdev/matrox/matroxfb_misc.c
667
minfo->values.reg.memmisc = get_unaligned_le32(bd->pins + 102);
drivers/video/fbdev/matrox/matroxfb_misc.c
668
minfo->values.reg.memrdbk = get_unaligned_le32(bd->pins + 106);
drivers/video/fbdev/matrox/matroxfb_misc.c
669
minfo->features.pll.ref_freq = (bd->pins[110] & 0x01) ? 14318 : 27000;
drivers/video/fbdev/matrox/matroxfb_misc.c
670
minfo->values.memory.ddr = (bd->pins[114] & 0x60) == 0x20;
drivers/video/fbdev/matrox/matroxfb_misc.c
671
minfo->values.memory.dll = (bd->pins[115] & 0x02) != 0;
drivers/video/fbdev/matrox/matroxfb_misc.c
672
minfo->values.memory.emrswen = (bd->pins[115] & 0x01) != 0;
drivers/video/fbdev/matrox/matroxfb_misc.c
673
minfo->values.reg.maccess = minfo->values.memory.emrswen ? 0x00004000 : 0x00000000;
drivers/video/fbdev/matrox/matroxfb_misc.c
675
minfo->values.reg.mctlwtst_core = minfo->values.reg.mctlwtst;
drivers/video/fbdev/matrox/matroxfb_misc.c
681
minfo->values.reg.mctlwtst_core = (minfo->values.reg.mctlwtst & ~7) |
drivers/video/fbdev/matrox/matroxfb_misc.c
682
wtst_xlat[minfo->values.reg.mctlwtst & 7];
drivers/video/fbdev/matrox/matroxfb_misc.c
684
minfo->max_pixel_clock_panellink = bd->pins[47] * 4000;
drivers/video/fbdev/matrox/matroxfb_misc.c
688
static void default_pins5(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_misc.c
691
minfo->limits.pixel.vcomax =
drivers/video/fbdev/matrox/matroxfb_misc.c
692
minfo->limits.system.vcomax =
drivers/video/fbdev/matrox/matroxfb_misc.c
693
minfo->limits.video.vcomax = 600000;
drivers/video/fbdev/matrox/matroxfb_misc.c
694
minfo->limits.pixel.vcomin =
drivers/video/fbdev/matrox/matroxfb_misc.c
695
minfo->limits.system.vcomin =
drivers/video/fbdev/matrox/matroxfb_misc.c
696
minfo->limits.video.vcomin = 256000;
drivers/video/fbdev/matrox/matroxfb_misc.c
697
minfo->values.pll.system =
drivers/video/fbdev/matrox/matroxfb_misc.c
698
minfo->values.pll.video = 284000;
drivers/video/fbdev/matrox/matroxfb_misc.c
699
minfo->values.reg.opt = 0x404A1160;
drivers/video/fbdev/matrox/matroxfb_misc.c
700
minfo->values.reg.opt2 = 0x0000AC00;
drivers/video/fbdev/matrox/matroxfb_misc.c
701
minfo->values.reg.opt3 = 0x0090A409;
drivers/video/fbdev/matrox/matroxfb_misc.c
702
minfo->values.reg.mctlwtst_core =
drivers/video/fbdev/matrox/matroxfb_misc.c
703
minfo->values.reg.mctlwtst = 0x0C81462B;
drivers/video/fbdev/matrox/matroxfb_misc.c
704
minfo->values.reg.memmisc = 0x80000004;
drivers/video/fbdev/matrox/matroxfb_misc.c
705
minfo->values.reg.memrdbk = 0x01001103;
drivers/video/fbdev/matrox/matroxfb_misc.c
706
minfo->features.pll.ref_freq = 27000;
drivers/video/fbdev/matrox/matroxfb_misc.c
707
minfo->values.memory.ddr = 1;
drivers/video/fbdev/matrox/matroxfb_misc.c
708
minfo->values.memory.dll = 1;
drivers/video/fbdev/matrox/matroxfb_misc.c
709
minfo->values.memory.emrswen = 1;
drivers/video/fbdev/matrox/matroxfb_misc.c
710
minfo->values.reg.maccess = 0x00004000;
drivers/video/fbdev/matrox/matroxfb_misc.c
713
static int matroxfb_set_limits(struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/matroxfb_misc.c
719
switch (minfo->chip) {
drivers/video/fbdev/matrox/matroxfb_misc.c
720
case MGA_2064: default_pins1(minfo); break;
drivers/video/fbdev/matrox/matroxfb_misc.c
723
case MGA_1164: default_pins2(minfo); break;
drivers/video/fbdev/matrox/matroxfb_misc.c
725
case MGA_G200: default_pins3(minfo); break;
drivers/video/fbdev/matrox/matroxfb_misc.c
726
case MGA_G400: default_pins4(minfo); break;
drivers/video/fbdev/matrox/matroxfb_misc.c
728
case MGA_G550: default_pins5(minfo); break;
drivers/video/fbdev/matrox/matroxfb_misc.c
753
return parse_pins1(minfo, bd);
drivers/video/fbdev/matrox/matroxfb_misc.c
755
return parse_pins2(minfo, bd);
drivers/video/fbdev/matrox/matroxfb_misc.c
757
return parse_pins3(minfo, bd);
drivers/video/fbdev/matrox/matroxfb_misc.c
759
return parse_pins4(minfo, bd);
drivers/video/fbdev/matrox/matroxfb_misc.c
761
return parse_pins5(minfo, bd);
drivers/video/fbdev/matrox/matroxfb_misc.c
768
void matroxfb_read_pins(struct matrox_fb_info *minfo)
drivers/video/fbdev/matrox/matroxfb_misc.c
773
struct pci_dev *pdev = minfo->pcidev;
drivers/video/fbdev/matrox/matroxfb_misc.c
775
memset(&minfo->bios, 0, sizeof(minfo->bios));
drivers/video/fbdev/matrox/matroxfb_misc.c
779
pci_read_config_dword(pdev, minfo->devflags.fbResource, &fbbase);
drivers/video/fbdev/matrox/matroxfb_misc.c
781
parse_bios(vaddr_va(minfo->video.vbase), &minfo->bios);
drivers/video/fbdev/matrox/matroxfb_misc.c
785
if (!minfo->bios.bios_valid) {
drivers/video/fbdev/matrox/matroxfb_misc.c
799
parse_bios(b, &minfo->bios);
drivers/video/fbdev/matrox/matroxfb_misc.c
805
matroxfb_set_limits(minfo, &minfo->bios);
drivers/video/fbdev/matrox/matroxfb_misc.c
807
(minfo->values.reg.opt & 0x1C00) >> 10);
drivers/video/fbdev/matrox/matroxfb_misc.c
94
void matroxfb_DAC_out(const struct matrox_fb_info *minfo, int reg, int val)
drivers/video/fbdev/matrox/matroxfb_misc.h
10
static inline int PLL_calcclock(const struct matrox_fb_info *minfo,
drivers/video/fbdev/matrox/matroxfb_misc.h
15
return matroxfb_PLL_calcclock(&minfo->features.pll, freq, fmax, in, feed, post);
drivers/video/fbdev/matrox/matroxfb_misc.h
18
int matroxfb_vgaHWinit(struct matrox_fb_info *minfo, struct my_timming* m);
drivers/video/fbdev/matrox/matroxfb_misc.h
19
void matroxfb_vgaHWrestore(struct matrox_fb_info *minfo);
drivers/video/fbdev/matrox/matroxfb_misc.h
20
void matroxfb_read_pins(struct matrox_fb_info *minfo);
net/ipv4/inet_diag.c
254
struct inet_diag_meminfo minfo = {
net/ipv4/inet_diag.c
261
if (nla_put(skb, INET_DIAG_MEMINFO, sizeof(minfo), &minfo) < 0)
net/netfilter/xt_multiport.c
28
ports_match_v1(const struct xt_multiport_v1 *minfo,
net/netfilter/xt_multiport.c
34
for (i = 0; i < minfo->count; i++) {
net/netfilter/xt_multiport.c
35
s = minfo->ports[i];
net/netfilter/xt_multiport.c
37
if (minfo->pflags[i]) {
net/netfilter/xt_multiport.c
39
e = minfo->ports[++i];
net/netfilter/xt_multiport.c
42
switch (minfo->flags) {
net/netfilter/xt_multiport.c
45
return true ^ minfo->invert;
net/netfilter/xt_multiport.c
49
return true ^ minfo->invert;
net/netfilter/xt_multiport.c
54
return true ^ minfo->invert;
net/netfilter/xt_multiport.c
63
switch (minfo->flags) {
net/netfilter/xt_multiport.c
66
return true ^ minfo->invert;
net/netfilter/xt_multiport.c
70
return true ^ minfo->invert;
net/netfilter/xt_multiport.c
74
return true ^ minfo->invert;
net/netfilter/xt_multiport.c
82
return minfo->invert;
net/rds/recv.c
823
struct rds_info_message minfo;
net/rds/recv.c
825
minfo.seq = be64_to_cpu(inc->i_hdr.h_sequence);
net/rds/recv.c
826
minfo.len = be32_to_cpu(inc->i_hdr.h_len);
net/rds/recv.c
827
minfo.tos = inc->i_conn->c_tos;
net/rds/recv.c
830
minfo.laddr = daddr;
net/rds/recv.c
831
minfo.faddr = saddr;
net/rds/recv.c
832
minfo.lport = inc->i_hdr.h_dport;
net/rds/recv.c
833
minfo.fport = inc->i_hdr.h_sport;
net/rds/recv.c
835
minfo.laddr = saddr;
net/rds/recv.c
836
minfo.faddr = daddr;
net/rds/recv.c
837
minfo.lport = inc->i_hdr.h_sport;
net/rds/recv.c
838
minfo.fport = inc->i_hdr.h_dport;
net/rds/recv.c
841
minfo.flags = 0;
net/rds/recv.c
843
rds_info_copy(iter, &minfo, sizeof(minfo));