rinfo 70 arch/parisc/include/asm/pdc.h int pdc_mem_pdt_info(struct pdc_mem_retinfo *rinfo); rinfo 379 arch/parisc/include/asm/pdcpat.h extern int pdc_pat_mem_pdt_info(struct pdc_pat_mem_retinfo *rinfo); rinfo 380 arch/parisc/include/asm/pdcpat.h extern int pdc_pat_mem_pdt_cell_info(struct pdc_pat_mem_cell_pdt_retinfo *rinfo, rinfo 1022 arch/parisc/kernel/firmware.c int pdc_mem_pdt_info(struct pdc_mem_retinfo *rinfo) rinfo 1030 arch/parisc/kernel/firmware.c memcpy(rinfo, pdc_result, sizeof(*rinfo)); rinfo 1555 arch/parisc/kernel/firmware.c int pdc_pat_mem_pdt_info(struct pdc_pat_mem_retinfo *rinfo) rinfo 1564 arch/parisc/kernel/firmware.c memcpy(rinfo, &pdc_result, sizeof(*rinfo)); rinfo 1577 arch/parisc/kernel/firmware.c int pdc_pat_mem_pdt_cell_info(struct pdc_pat_mem_cell_pdt_retinfo *rinfo, rinfo 1587 arch/parisc/kernel/firmware.c memcpy(rinfo, &pdc_result, sizeof(*rinfo)); rinfo 218 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo; rinfo 262 drivers/block/xen-blkfront.c static int blkfront_setup_indirect(struct blkfront_ring_info *rinfo); rinfo 266 drivers/block/xen-blkfront.c static int get_id_from_freelist(struct blkfront_ring_info *rinfo) rinfo 268 drivers/block/xen-blkfront.c unsigned long free = rinfo->shadow_free; rinfo 270 drivers/block/xen-blkfront.c BUG_ON(free >= BLK_RING_SIZE(rinfo->dev_info)); rinfo 271 drivers/block/xen-blkfront.c rinfo->shadow_free = rinfo->shadow[free].req.u.rw.id; rinfo 272 drivers/block/xen-blkfront.c rinfo->shadow[free].req.u.rw.id = 0x0fffffee; /* debug */ rinfo 276 drivers/block/xen-blkfront.c static int add_id_to_freelist(struct blkfront_ring_info *rinfo, rinfo 279 drivers/block/xen-blkfront.c if (rinfo->shadow[id].req.u.rw.id != id) rinfo 281 drivers/block/xen-blkfront.c if (rinfo->shadow[id].request == NULL) rinfo 283 drivers/block/xen-blkfront.c rinfo->shadow[id].req.u.rw.id = rinfo->shadow_free; rinfo 284 drivers/block/xen-blkfront.c rinfo->shadow[id].request = NULL; rinfo 285 drivers/block/xen-blkfront.c rinfo->shadow_free = id; rinfo 289 drivers/block/xen-blkfront.c static int fill_grant_buffer(struct blkfront_ring_info *rinfo, int num) rinfo 291 drivers/block/xen-blkfront.c struct blkfront_info *info = rinfo->dev_info; rinfo 311 drivers/block/xen-blkfront.c list_add(&gnt_list_entry->node, &rinfo->grants); rinfo 319 drivers/block/xen-blkfront.c &rinfo->grants, node) { rinfo 330 drivers/block/xen-blkfront.c static struct grant *get_free_grant(struct blkfront_ring_info *rinfo) rinfo 334 drivers/block/xen-blkfront.c BUG_ON(list_empty(&rinfo->grants)); rinfo 335 drivers/block/xen-blkfront.c gnt_list_entry = list_first_entry(&rinfo->grants, struct grant, rinfo 340 drivers/block/xen-blkfront.c rinfo->persistent_gnts_c--; rinfo 356 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo) rinfo 358 drivers/block/xen-blkfront.c struct grant *gnt_list_entry = get_free_grant(rinfo); rinfo 359 drivers/block/xen-blkfront.c struct blkfront_info *info = rinfo->dev_info; rinfo 380 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo) rinfo 382 drivers/block/xen-blkfront.c struct grant *gnt_list_entry = get_free_grant(rinfo); rinfo 383 drivers/block/xen-blkfront.c struct blkfront_info *info = rinfo->dev_info; rinfo 395 drivers/block/xen-blkfront.c BUG_ON(list_empty(&rinfo->indirect_pages)); rinfo 396 drivers/block/xen-blkfront.c indirect_page = list_first_entry(&rinfo->indirect_pages, rinfo 472 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo = (struct blkfront_ring_info *)arg; rinfo 473 drivers/block/xen-blkfront.c schedule_work(&rinfo->work); rinfo 525 drivers/block/xen-blkfront.c static unsigned long blkif_ring_get_request(struct blkfront_ring_info *rinfo, rinfo 531 drivers/block/xen-blkfront.c *ring_req = RING_GET_REQUEST(&rinfo->ring, rinfo->ring.req_prod_pvt); rinfo 532 drivers/block/xen-blkfront.c rinfo->ring.req_prod_pvt++; rinfo 534 drivers/block/xen-blkfront.c id = get_id_from_freelist(rinfo); rinfo 535 drivers/block/xen-blkfront.c rinfo->shadow[id].request = req; rinfo 536 drivers/block/xen-blkfront.c rinfo->shadow[id].status = REQ_WAITING; rinfo 537 drivers/block/xen-blkfront.c rinfo->shadow[id].associated_id = NO_ASSOCIATED_ID; rinfo 544 drivers/block/xen-blkfront.c static int blkif_queue_discard_req(struct request *req, struct blkfront_ring_info *rinfo) rinfo 546 drivers/block/xen-blkfront.c struct blkfront_info *info = rinfo->dev_info; rinfo 551 drivers/block/xen-blkfront.c id = blkif_ring_get_request(rinfo, req, &ring_req); rinfo 563 drivers/block/xen-blkfront.c rinfo->shadow[id].req = *ring_req; rinfo 571 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo; rinfo 594 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo = setup->rinfo; rinfo 601 drivers/block/xen-blkfront.c struct blk_shadow *shadow = &rinfo->shadow[setup->id]; rinfo 619 drivers/block/xen-blkfront.c gnt_list_entry = get_indirect_grant(&setup->gref_head, rinfo); rinfo 625 drivers/block/xen-blkfront.c gnt_list_entry = get_grant(&setup->gref_head, gfn, rinfo); rinfo 692 drivers/block/xen-blkfront.c static int blkif_queue_rw_req(struct request *req, struct blkfront_ring_info *rinfo) rinfo 694 drivers/block/xen-blkfront.c struct blkfront_info *info = rinfo->dev_info; rinfo 702 drivers/block/xen-blkfront.c .rinfo = rinfo, rinfo 724 drivers/block/xen-blkfront.c if (rinfo->persistent_gnts_c < max_grefs) { rinfo 728 drivers/block/xen-blkfront.c max_grefs - rinfo->persistent_gnts_c, rinfo 731 drivers/block/xen-blkfront.c &rinfo->callback, rinfo 733 drivers/block/xen-blkfront.c rinfo, rinfo 734 drivers/block/xen-blkfront.c max_grefs - rinfo->persistent_gnts_c); rinfo 740 drivers/block/xen-blkfront.c id = blkif_ring_get_request(rinfo, req, &ring_req); rinfo 742 drivers/block/xen-blkfront.c num_sg = blk_rq_map_sg(req->q, req, rinfo->shadow[id].sg); rinfo 745 drivers/block/xen-blkfront.c for_each_sg(rinfo->shadow[id].sg, sg, num_sg, i) rinfo 752 drivers/block/xen-blkfront.c rinfo->shadow[id].num_sg = num_sg; rinfo 790 drivers/block/xen-blkfront.c extra_id = blkif_ring_get_request(rinfo, req, rinfo 796 drivers/block/xen-blkfront.c rinfo->shadow[extra_id].num_sg = 0; rinfo 801 drivers/block/xen-blkfront.c rinfo->shadow[extra_id].associated_id = id; rinfo 802 drivers/block/xen-blkfront.c rinfo->shadow[id].associated_id = extra_id; rinfo 813 drivers/block/xen-blkfront.c for_each_sg(rinfo->shadow[id].sg, sg, num_sg, i) { rinfo 834 drivers/block/xen-blkfront.c rinfo->shadow[id].req = *ring_req; rinfo 836 drivers/block/xen-blkfront.c rinfo->shadow[extra_id].req = *extra_ring_req; rinfo 850 drivers/block/xen-blkfront.c static int blkif_queue_request(struct request *req, struct blkfront_ring_info *rinfo) rinfo 852 drivers/block/xen-blkfront.c if (unlikely(rinfo->dev_info->connected != BLKIF_STATE_CONNECTED)) rinfo 857 drivers/block/xen-blkfront.c return blkif_queue_discard_req(req, rinfo); rinfo 859 drivers/block/xen-blkfront.c return blkif_queue_rw_req(req, rinfo); rinfo 862 drivers/block/xen-blkfront.c static inline void flush_requests(struct blkfront_ring_info *rinfo) rinfo 866 drivers/block/xen-blkfront.c RING_PUSH_REQUESTS_AND_CHECK_NOTIFY(&rinfo->ring, notify); rinfo 869 drivers/block/xen-blkfront.c notify_remote_via_irq(rinfo->irq); rinfo 888 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo = NULL; rinfo 891 drivers/block/xen-blkfront.c rinfo = &info->rinfo[qid]; rinfo 893 drivers/block/xen-blkfront.c spin_lock_irqsave(&rinfo->ring_lock, flags); rinfo 894 drivers/block/xen-blkfront.c if (RING_FULL(&rinfo->ring)) rinfo 897 drivers/block/xen-blkfront.c if (blkif_request_flush_invalid(qd->rq, rinfo->dev_info)) rinfo 900 drivers/block/xen-blkfront.c if (blkif_queue_request(qd->rq, rinfo)) rinfo 903 drivers/block/xen-blkfront.c flush_requests(rinfo); rinfo 904 drivers/block/xen-blkfront.c spin_unlock_irqrestore(&rinfo->ring_lock, flags); rinfo 908 drivers/block/xen-blkfront.c spin_unlock_irqrestore(&rinfo->ring_lock, flags); rinfo 913 drivers/block/xen-blkfront.c spin_unlock_irqrestore(&rinfo->ring_lock, flags); rinfo 1196 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo = &info->rinfo[i]; rinfo 1199 drivers/block/xen-blkfront.c gnttab_cancel_free_callback(&rinfo->callback); rinfo 1202 drivers/block/xen-blkfront.c flush_work(&rinfo->work); rinfo 1220 drivers/block/xen-blkfront.c static inline void kick_pending_request_queues_locked(struct blkfront_ring_info *rinfo) rinfo 1222 drivers/block/xen-blkfront.c if (!RING_FULL(&rinfo->ring)) rinfo 1223 drivers/block/xen-blkfront.c blk_mq_start_stopped_hw_queues(rinfo->dev_info->rq, true); rinfo 1226 drivers/block/xen-blkfront.c static void kick_pending_request_queues(struct blkfront_ring_info *rinfo) rinfo 1230 drivers/block/xen-blkfront.c spin_lock_irqsave(&rinfo->ring_lock, flags); rinfo 1231 drivers/block/xen-blkfront.c kick_pending_request_queues_locked(rinfo); rinfo 1232 drivers/block/xen-blkfront.c spin_unlock_irqrestore(&rinfo->ring_lock, flags); rinfo 1237 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo = container_of(work, struct blkfront_ring_info, work); rinfo 1239 drivers/block/xen-blkfront.c if (rinfo->dev_info->connected == BLKIF_STATE_CONNECTED) rinfo 1240 drivers/block/xen-blkfront.c kick_pending_request_queues(rinfo); rinfo 1243 drivers/block/xen-blkfront.c static void blkif_free_ring(struct blkfront_ring_info *rinfo) rinfo 1246 drivers/block/xen-blkfront.c struct blkfront_info *info = rinfo->dev_info; rinfo 1253 drivers/block/xen-blkfront.c if (!list_empty(&rinfo->indirect_pages)) { rinfo 1257 drivers/block/xen-blkfront.c list_for_each_entry_safe(indirect_page, n, &rinfo->indirect_pages, lru) { rinfo 1264 drivers/block/xen-blkfront.c if (!list_empty(&rinfo->grants)) { rinfo 1266 drivers/block/xen-blkfront.c &rinfo->grants, node) { rinfo 1271 drivers/block/xen-blkfront.c rinfo->persistent_gnts_c--; rinfo 1278 drivers/block/xen-blkfront.c BUG_ON(rinfo->persistent_gnts_c != 0); rinfo 1285 drivers/block/xen-blkfront.c if (!rinfo->shadow[i].request) rinfo 1288 drivers/block/xen-blkfront.c segs = rinfo->shadow[i].req.operation == BLKIF_OP_INDIRECT ? rinfo 1289 drivers/block/xen-blkfront.c rinfo->shadow[i].req.u.indirect.nr_segments : rinfo 1290 drivers/block/xen-blkfront.c rinfo->shadow[i].req.u.rw.nr_segments; rinfo 1292 drivers/block/xen-blkfront.c persistent_gnt = rinfo->shadow[i].grants_used[j]; rinfo 1299 drivers/block/xen-blkfront.c if (rinfo->shadow[i].req.operation != BLKIF_OP_INDIRECT) rinfo 1307 drivers/block/xen-blkfront.c persistent_gnt = rinfo->shadow[i].indirect_grants[j]; rinfo 1314 drivers/block/xen-blkfront.c kvfree(rinfo->shadow[i].grants_used); rinfo 1315 drivers/block/xen-blkfront.c rinfo->shadow[i].grants_used = NULL; rinfo 1316 drivers/block/xen-blkfront.c kvfree(rinfo->shadow[i].indirect_grants); rinfo 1317 drivers/block/xen-blkfront.c rinfo->shadow[i].indirect_grants = NULL; rinfo 1318 drivers/block/xen-blkfront.c kvfree(rinfo->shadow[i].sg); rinfo 1319 drivers/block/xen-blkfront.c rinfo->shadow[i].sg = NULL; rinfo 1323 drivers/block/xen-blkfront.c gnttab_cancel_free_callback(&rinfo->callback); rinfo 1326 drivers/block/xen-blkfront.c flush_work(&rinfo->work); rinfo 1330 drivers/block/xen-blkfront.c if (rinfo->ring_ref[i] != GRANT_INVALID_REF) { rinfo 1331 drivers/block/xen-blkfront.c gnttab_end_foreign_access(rinfo->ring_ref[i], 0, 0); rinfo 1332 drivers/block/xen-blkfront.c rinfo->ring_ref[i] = GRANT_INVALID_REF; rinfo 1335 drivers/block/xen-blkfront.c free_pages((unsigned long)rinfo->ring.sring, get_order(info->nr_ring_pages * XEN_PAGE_SIZE)); rinfo 1336 drivers/block/xen-blkfront.c rinfo->ring.sring = NULL; rinfo 1338 drivers/block/xen-blkfront.c if (rinfo->irq) rinfo 1339 drivers/block/xen-blkfront.c unbind_from_irqhandler(rinfo->irq, rinfo); rinfo 1340 drivers/block/xen-blkfront.c rinfo->evtchn = rinfo->irq = 0; rinfo 1355 drivers/block/xen-blkfront.c blkif_free_ring(&info->rinfo[i]); rinfo 1357 drivers/block/xen-blkfront.c kvfree(info->rinfo); rinfo 1358 drivers/block/xen-blkfront.c info->rinfo = NULL; rinfo 1420 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo, rinfo 1426 drivers/block/xen-blkfront.c struct blkfront_info *info = rinfo->dev_info; rinfo 1427 drivers/block/xen-blkfront.c struct blk_shadow *s = &rinfo->shadow[*id]; rinfo 1437 drivers/block/xen-blkfront.c struct blk_shadow *s2 = &rinfo->shadow[s->associated_id]; rinfo 1469 drivers/block/xen-blkfront.c if (add_id_to_freelist(rinfo, s->associated_id)) rinfo 1505 drivers/block/xen-blkfront.c list_add(&s->grants_used[i]->node, &rinfo->grants); rinfo 1506 drivers/block/xen-blkfront.c rinfo->persistent_gnts_c++; rinfo 1516 drivers/block/xen-blkfront.c list_add_tail(&s->grants_used[i]->node, &rinfo->grants); rinfo 1525 drivers/block/xen-blkfront.c list_add(&s->indirect_grants[i]->node, &rinfo->grants); rinfo 1526 drivers/block/xen-blkfront.c rinfo->persistent_gnts_c++; rinfo 1537 drivers/block/xen-blkfront.c list_add(&indirect_page->lru, &rinfo->indirect_pages); rinfo 1540 drivers/block/xen-blkfront.c list_add_tail(&s->indirect_grants[i]->node, &rinfo->grants); rinfo 1554 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo = (struct blkfront_ring_info *)dev_id; rinfo 1555 drivers/block/xen-blkfront.c struct blkfront_info *info = rinfo->dev_info; rinfo 1560 drivers/block/xen-blkfront.c spin_lock_irqsave(&rinfo->ring_lock, flags); rinfo 1562 drivers/block/xen-blkfront.c rp = rinfo->ring.sring->rsp_prod; rinfo 1565 drivers/block/xen-blkfront.c for (i = rinfo->ring.rsp_cons; i != rp; i++) { rinfo 1568 drivers/block/xen-blkfront.c bret = RING_GET_RESPONSE(&rinfo->ring, i); rinfo 1582 drivers/block/xen-blkfront.c req = rinfo->shadow[id].request; rinfo 1589 drivers/block/xen-blkfront.c if (!blkif_completion(&id, rinfo, bret)) rinfo 1593 drivers/block/xen-blkfront.c if (add_id_to_freelist(rinfo, id)) { rinfo 1625 drivers/block/xen-blkfront.c rinfo->shadow[id].req.u.rw.nr_segments == 0)) { rinfo 1652 drivers/block/xen-blkfront.c rinfo->ring.rsp_cons = i; rinfo 1654 drivers/block/xen-blkfront.c if (i != rinfo->ring.req_prod_pvt) { rinfo 1656 drivers/block/xen-blkfront.c RING_FINAL_CHECK_FOR_RESPONSES(&rinfo->ring, more_to_do); rinfo 1660 drivers/block/xen-blkfront.c rinfo->ring.sring->rsp_event = i + 1; rinfo 1662 drivers/block/xen-blkfront.c kick_pending_request_queues_locked(rinfo); rinfo 1664 drivers/block/xen-blkfront.c spin_unlock_irqrestore(&rinfo->ring_lock, flags); rinfo 1671 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo) rinfo 1675 drivers/block/xen-blkfront.c struct blkfront_info *info = rinfo->dev_info; rinfo 1680 drivers/block/xen-blkfront.c rinfo->ring_ref[i] = GRANT_INVALID_REF; rinfo 1689 drivers/block/xen-blkfront.c FRONT_RING_INIT(&rinfo->ring, sring, ring_size); rinfo 1691 drivers/block/xen-blkfront.c err = xenbus_grant_ring(dev, rinfo->ring.sring, info->nr_ring_pages, gref); rinfo 1694 drivers/block/xen-blkfront.c rinfo->ring.sring = NULL; rinfo 1698 drivers/block/xen-blkfront.c rinfo->ring_ref[i] = gref[i]; rinfo 1700 drivers/block/xen-blkfront.c err = xenbus_alloc_evtchn(dev, &rinfo->evtchn); rinfo 1704 drivers/block/xen-blkfront.c err = bind_evtchn_to_irqhandler(rinfo->evtchn, blkif_interrupt, 0, rinfo 1705 drivers/block/xen-blkfront.c "blkif", rinfo); rinfo 1711 drivers/block/xen-blkfront.c rinfo->irq = err; rinfo 1724 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo, const char *dir) rinfo 1729 drivers/block/xen-blkfront.c struct blkfront_info *info = rinfo->dev_info; rinfo 1732 drivers/block/xen-blkfront.c err = xenbus_printf(xbt, dir, "ring-ref", "%u", rinfo->ring_ref[0]); rinfo 1743 drivers/block/xen-blkfront.c "%u", rinfo->ring_ref[i]); rinfo 1751 drivers/block/xen-blkfront.c err = xenbus_printf(xbt, dir, "event-channel", "%u", rinfo->evtchn); rinfo 1796 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo = &info->rinfo[i]; rinfo 1799 drivers/block/xen-blkfront.c err = setup_blkring(dev, rinfo); rinfo 1822 drivers/block/xen-blkfront.c err = write_per_ring_nodes(xbt, &info->rinfo[0], dev->nodename); rinfo 1847 drivers/block/xen-blkfront.c err = write_per_ring_nodes(xbt, &info->rinfo[i], path); rinfo 1877 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo = &info->rinfo[i]; rinfo 1880 drivers/block/xen-blkfront.c rinfo->shadow[j].req.u.rw.id = j + 1; rinfo 1881 drivers/block/xen-blkfront.c rinfo->shadow[BLK_RING_SIZE(info)-1].req.u.rw.id = 0x0fffffff; rinfo 1918 drivers/block/xen-blkfront.c info->rinfo = kvcalloc(info->nr_rings, rinfo 1921 drivers/block/xen-blkfront.c if (!info->rinfo) { rinfo 1928 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo; rinfo 1930 drivers/block/xen-blkfront.c rinfo = &info->rinfo[i]; rinfo 1931 drivers/block/xen-blkfront.c INIT_LIST_HEAD(&rinfo->indirect_pages); rinfo 1932 drivers/block/xen-blkfront.c INIT_LIST_HEAD(&rinfo->grants); rinfo 1933 drivers/block/xen-blkfront.c rinfo->dev_info = info; rinfo 1934 drivers/block/xen-blkfront.c INIT_WORK(&rinfo->work, blkif_restart_queue); rinfo 1935 drivers/block/xen-blkfront.c spin_lock_init(&rinfo->ring_lock); rinfo 2031 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo = &info->rinfo[r_index]; rinfo 2033 drivers/block/xen-blkfront.c rc = blkfront_setup_indirect(rinfo); rinfo 2043 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo; rinfo 2045 drivers/block/xen-blkfront.c rinfo = &info->rinfo[r_index]; rinfo 2047 drivers/block/xen-blkfront.c kick_pending_request_queues(rinfo); rinfo 2084 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo = &info->rinfo[i]; rinfo 2086 drivers/block/xen-blkfront.c struct blk_shadow *shadow = rinfo->shadow; rinfo 2190 drivers/block/xen-blkfront.c static int blkfront_setup_indirect(struct blkfront_ring_info *rinfo) rinfo 2194 drivers/block/xen-blkfront.c struct blkfront_info *info = rinfo->dev_info; rinfo 2214 drivers/block/xen-blkfront.c err = fill_grant_buffer(rinfo, rinfo 2227 drivers/block/xen-blkfront.c BUG_ON(!list_empty(&rinfo->indirect_pages)); rinfo 2232 drivers/block/xen-blkfront.c list_add(&indirect_page->lru, &rinfo->indirect_pages); rinfo 2237 drivers/block/xen-blkfront.c rinfo->shadow[i].grants_used = rinfo 2239 drivers/block/xen-blkfront.c sizeof(rinfo->shadow[i].grants_used[0]), rinfo 2241 drivers/block/xen-blkfront.c rinfo->shadow[i].sg = kvcalloc(psegs, rinfo 2242 drivers/block/xen-blkfront.c sizeof(rinfo->shadow[i].sg[0]), rinfo 2245 drivers/block/xen-blkfront.c rinfo->shadow[i].indirect_grants = rinfo 2247 drivers/block/xen-blkfront.c sizeof(rinfo->shadow[i].indirect_grants[0]), rinfo 2249 drivers/block/xen-blkfront.c if ((rinfo->shadow[i].grants_used == NULL) || rinfo 2250 drivers/block/xen-blkfront.c (rinfo->shadow[i].sg == NULL) || rinfo 2252 drivers/block/xen-blkfront.c (rinfo->shadow[i].indirect_grants == NULL))) rinfo 2254 drivers/block/xen-blkfront.c sg_init_table(rinfo->shadow[i].sg, psegs); rinfo 2263 drivers/block/xen-blkfront.c kvfree(rinfo->shadow[i].grants_used); rinfo 2264 drivers/block/xen-blkfront.c rinfo->shadow[i].grants_used = NULL; rinfo 2265 drivers/block/xen-blkfront.c kvfree(rinfo->shadow[i].sg); rinfo 2266 drivers/block/xen-blkfront.c rinfo->shadow[i].sg = NULL; rinfo 2267 drivers/block/xen-blkfront.c kvfree(rinfo->shadow[i].indirect_grants); rinfo 2268 drivers/block/xen-blkfront.c rinfo->shadow[i].indirect_grants = NULL; rinfo 2270 drivers/block/xen-blkfront.c if (!list_empty(&rinfo->indirect_pages)) { rinfo 2272 drivers/block/xen-blkfront.c list_for_each_entry_safe(indirect_page, n, &rinfo->indirect_pages, lru) { rinfo 2407 drivers/block/xen-blkfront.c err = blkfront_setup_indirect(&info->rinfo[i]); rinfo 2429 drivers/block/xen-blkfront.c kick_pending_request_queues(&info->rinfo[i]); rinfo 2665 drivers/block/xen-blkfront.c struct blkfront_ring_info *rinfo = &info->rinfo[i]; rinfo 2668 drivers/block/xen-blkfront.c spin_lock_irqsave(&rinfo->ring_lock, flags); rinfo 2670 drivers/block/xen-blkfront.c if (rinfo->persistent_gnts_c == 0) { rinfo 2671 drivers/block/xen-blkfront.c spin_unlock_irqrestore(&rinfo->ring_lock, flags); rinfo 2675 drivers/block/xen-blkfront.c list_for_each_entry_safe(gnt_list_entry, tmp, &rinfo->grants, rinfo 2683 drivers/block/xen-blkfront.c rinfo->persistent_gnts_c--; rinfo 2685 drivers/block/xen-blkfront.c list_add_tail(&gnt_list_entry->node, &rinfo->grants); rinfo 2688 drivers/block/xen-blkfront.c spin_unlock_irqrestore(&rinfo->ring_lock, flags); rinfo 631 drivers/fpga/dfl-afu-main.c struct dfl_fpga_port_region_info rinfo; rinfo 638 drivers/fpga/dfl-afu-main.c if (copy_from_user(&rinfo, arg, minsz)) rinfo 641 drivers/fpga/dfl-afu-main.c if (rinfo.argsz < minsz || rinfo.padding) rinfo 644 drivers/fpga/dfl-afu-main.c ret = afu_mmio_region_get_by_index(pdata, rinfo.index, ®ion); rinfo 648 drivers/fpga/dfl-afu-main.c rinfo.flags = region.flags; rinfo 649 drivers/fpga/dfl-afu-main.c rinfo.size = region.size; rinfo 650 drivers/fpga/dfl-afu-main.c rinfo.offset = region.offset; rinfo 652 drivers/fpga/dfl-afu-main.c if (copy_to_user(arg, &rinfo, sizeof(rinfo))) rinfo 813 drivers/gpu/drm/i915/intel_device_info.c const struct intel_runtime_info *rinfo = RUNTIME_INFO(i915); rinfo 814 drivers/gpu/drm/i915/intel_device_info.c const unsigned int pi = __platform_mask_index(rinfo, info->platform); rinfo 815 drivers/gpu/drm/i915/intel_device_info.c const unsigned int pb = __platform_mask_bit(rinfo, info->platform); rinfo 56 drivers/hid/usbhid/hiddev.c hiddev_lookup_report(struct hid_device *hid, struct hiddev_report_info *rinfo) rinfo 58 drivers/hid/usbhid/hiddev.c unsigned int flags = rinfo->report_id & ~HID_REPORT_ID_MASK; rinfo 59 drivers/hid/usbhid/hiddev.c unsigned int rid = rinfo->report_id & HID_REPORT_ID_MASK; rinfo 64 drivers/hid/usbhid/hiddev.c if (rinfo->report_type < HID_REPORT_TYPE_MIN || rinfo 65 drivers/hid/usbhid/hiddev.c rinfo->report_type > HID_REPORT_TYPE_MAX) rinfo 69 drivers/hid/usbhid/hiddev.c (rinfo->report_type - HID_REPORT_TYPE_MIN); rinfo 81 drivers/hid/usbhid/hiddev.c rinfo->report_id = report->id; rinfo 94 drivers/hid/usbhid/hiddev.c rinfo->report_id = report->id; rinfo 101 drivers/hid/usbhid/hiddev.c return report_enum->report_id_hash[rinfo->report_id]; rinfo 430 drivers/hid/usbhid/hiddev.c struct hiddev_report_info rinfo; rinfo 452 drivers/hid/usbhid/hiddev.c rinfo.report_type = uref->report_type; rinfo 453 drivers/hid/usbhid/hiddev.c rinfo.report_id = uref->report_id; rinfo 454 drivers/hid/usbhid/hiddev.c if ((report = hiddev_lookup_report(hid, &rinfo)) == NULL) rinfo 486 drivers/hid/usbhid/hiddev.c rinfo.report_type = uref->report_type; rinfo 487 drivers/hid/usbhid/hiddev.c rinfo.report_id = uref->report_id; rinfo 488 drivers/hid/usbhid/hiddev.c if ((report = hiddev_lookup_report(hid, &rinfo)) == NULL) rinfo 596 drivers/hid/usbhid/hiddev.c struct hiddev_report_info rinfo; rinfo 691 drivers/hid/usbhid/hiddev.c if (copy_from_user(&rinfo, user_arg, sizeof(rinfo))) { rinfo 696 drivers/hid/usbhid/hiddev.c if (rinfo.report_type == HID_REPORT_TYPE_OUTPUT) rinfo 699 drivers/hid/usbhid/hiddev.c report = hiddev_lookup_report(hid, &rinfo); rinfo 710 drivers/hid/usbhid/hiddev.c if (copy_from_user(&rinfo, user_arg, sizeof(rinfo))) { rinfo 715 drivers/hid/usbhid/hiddev.c if (rinfo.report_type == HID_REPORT_TYPE_INPUT) rinfo 718 drivers/hid/usbhid/hiddev.c report = hiddev_lookup_report(hid, &rinfo); rinfo 729 drivers/hid/usbhid/hiddev.c if (copy_from_user(&rinfo, user_arg, sizeof(rinfo))) { rinfo 734 drivers/hid/usbhid/hiddev.c report = hiddev_lookup_report(hid, &rinfo); rinfo 738 drivers/hid/usbhid/hiddev.c rinfo.num_fields = report->maxfield; rinfo 740 drivers/hid/usbhid/hiddev.c r = copy_to_user(user_arg, &rinfo, sizeof(rinfo)) ? rinfo 750 drivers/hid/usbhid/hiddev.c rinfo.report_type = finfo.report_type; rinfo 751 drivers/hid/usbhid/hiddev.c rinfo.report_id = finfo.report_id; rinfo 753 drivers/hid/usbhid/hiddev.c report = hiddev_lookup_report(hid, &rinfo); rinfo 764 drivers/hid/usbhid/hiddev.c finfo.report_type = rinfo.report_type; rinfo 765 drivers/hid/usbhid/hiddev.c finfo.report_id = rinfo.report_id; rinfo 765 drivers/i2c/busses/i2c-davinci.c struct i2c_bus_recovery_info *rinfo; rinfo 864 drivers/i2c/busses/i2c-davinci.c rinfo = &davinci_i2c_gpio_recovery_info; rinfo 865 drivers/i2c/busses/i2c-davinci.c adap->bus_recovery_info = rinfo; rinfo 866 drivers/i2c/busses/i2c-davinci.c rinfo->scl_gpiod = devm_gpiod_get(&pdev->dev, "scl", rinfo 868 drivers/i2c/busses/i2c-davinci.c if (IS_ERR(rinfo->scl_gpiod)) { rinfo 869 drivers/i2c/busses/i2c-davinci.c r = PTR_ERR(rinfo->scl_gpiod); rinfo 872 drivers/i2c/busses/i2c-davinci.c rinfo->sda_gpiod = devm_gpiod_get(&pdev->dev, "sda", GPIOD_IN); rinfo 873 drivers/i2c/busses/i2c-davinci.c if (IS_ERR(rinfo->sda_gpiod)) { rinfo 874 drivers/i2c/busses/i2c-davinci.c r = PTR_ERR(rinfo->sda_gpiod); rinfo 275 drivers/i2c/busses/i2c-designware-core.h struct i2c_bus_recovery_info rinfo; rinfo 655 drivers/i2c/busses/i2c-designware-master.c struct i2c_bus_recovery_info *rinfo = &dev->rinfo; rinfo 663 drivers/i2c/busses/i2c-designware-master.c rinfo->scl_gpiod = gpio; rinfo 668 drivers/i2c/busses/i2c-designware-master.c rinfo->sda_gpiod = gpio; rinfo 670 drivers/i2c/busses/i2c-designware-master.c rinfo->recover_bus = i2c_generic_scl_recovery; rinfo 671 drivers/i2c/busses/i2c-designware-master.c rinfo->prepare_recovery = i2c_dw_prepare_recovery; rinfo 672 drivers/i2c/busses/i2c-designware-master.c rinfo->unprepare_recovery = i2c_dw_unprepare_recovery; rinfo 673 drivers/i2c/busses/i2c-designware-master.c adap->bus_recovery_info = rinfo; rinfo 676 drivers/i2c/busses/i2c-designware-master.c rinfo->sda_gpiod ? ",sda" : ""); rinfo 199 drivers/i2c/busses/i2c-imx.c struct i2c_bus_recovery_info rinfo; rinfo 1008 drivers/i2c/busses/i2c-imx.c struct i2c_bus_recovery_info *rinfo = &i2c_imx->rinfo; rinfo 1020 drivers/i2c/busses/i2c-imx.c rinfo->sda_gpiod = devm_gpiod_get(&pdev->dev, "sda", GPIOD_IN); rinfo 1021 drivers/i2c/busses/i2c-imx.c rinfo->scl_gpiod = devm_gpiod_get(&pdev->dev, "scl", GPIOD_OUT_HIGH_OPEN_DRAIN); rinfo 1023 drivers/i2c/busses/i2c-imx.c if (PTR_ERR(rinfo->sda_gpiod) == -EPROBE_DEFER || rinfo 1024 drivers/i2c/busses/i2c-imx.c PTR_ERR(rinfo->scl_gpiod) == -EPROBE_DEFER) { rinfo 1026 drivers/i2c/busses/i2c-imx.c } else if (IS_ERR(rinfo->sda_gpiod) || rinfo 1027 drivers/i2c/busses/i2c-imx.c IS_ERR(rinfo->scl_gpiod) || rinfo 1035 drivers/i2c/busses/i2c-imx.c rinfo->sda_gpiod ? ",sda" : ""); rinfo 1037 drivers/i2c/busses/i2c-imx.c rinfo->prepare_recovery = i2c_imx_prepare_recovery; rinfo 1038 drivers/i2c/busses/i2c-imx.c rinfo->unprepare_recovery = i2c_imx_unprepare_recovery; rinfo 1039 drivers/i2c/busses/i2c-imx.c rinfo->recover_bus = i2c_generic_scl_recovery; rinfo 1040 drivers/i2c/busses/i2c-imx.c i2c_imx->adapter.bus_recovery_info = rinfo; rinfo 806 drivers/infiniband/hw/hns/hns_roce_hw_v2.c instance_stage = handle->rinfo.instance_state; rinfo 807 drivers/infiniband/hw/hns/hns_roce_hw_v2.c reset_stage = handle->rinfo.reset_state; rinfo 1162 drivers/infiniband/hw/hns/hns_roce_hw_v2.c instance_stage = handle->rinfo.instance_state; rinfo 6393 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hr_dev->reg_base = handle->rinfo.roce_io_base; rinfo 6395 drivers/infiniband/hw/hns/hns_roce_hw_v2.c hr_dev->iboe.netdevs[0] = handle->rinfo.netdev; rinfo 6403 drivers/infiniband/hw/hns/hns_roce_hw_v2.c i + handle->rinfo.base_vector); rinfo 6479 drivers/infiniband/hw/hns/hns_roce_hw_v2.c handle->rinfo.instance_state = HNS_ROCE_STATE_INIT; rinfo 6482 drivers/infiniband/hw/hns/hns_roce_hw_v2.c handle->rinfo.instance_state = HNS_ROCE_STATE_NON_INIT; rinfo 6492 drivers/infiniband/hw/hns/hns_roce_hw_v2.c handle->rinfo.instance_state = HNS_ROCE_STATE_NON_INIT; rinfo 6501 drivers/infiniband/hw/hns/hns_roce_hw_v2.c handle->rinfo.instance_state = HNS_ROCE_STATE_INITED; rinfo 6516 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (handle->rinfo.instance_state != HNS_ROCE_STATE_INITED) rinfo 6519 drivers/infiniband/hw/hns/hns_roce_hw_v2.c handle->rinfo.instance_state = HNS_ROCE_STATE_UNINIT; rinfo 6523 drivers/infiniband/hw/hns/hns_roce_hw_v2.c handle->rinfo.instance_state = HNS_ROCE_STATE_NON_INIT; rinfo 6530 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (handle->rinfo.instance_state != HNS_ROCE_STATE_INITED) { rinfo 6531 drivers/infiniband/hw/hns/hns_roce_hw_v2.c set_bit(HNS_ROCE_RST_DIRECT_RETURN, &handle->rinfo.state); rinfo 6535 drivers/infiniband/hw/hns/hns_roce_hw_v2.c handle->rinfo.reset_state = HNS_ROCE_STATE_RST_DOWN; rinfo 6536 drivers/infiniband/hw/hns/hns_roce_hw_v2.c clear_bit(HNS_ROCE_RST_DIRECT_RETURN, &handle->rinfo.state); rinfo 6560 drivers/infiniband/hw/hns/hns_roce_hw_v2.c &handle->rinfo.state)) { rinfo 6561 drivers/infiniband/hw/hns/hns_roce_hw_v2.c handle->rinfo.reset_state = HNS_ROCE_STATE_RST_INITED; rinfo 6565 drivers/infiniband/hw/hns/hns_roce_hw_v2.c handle->rinfo.reset_state = HNS_ROCE_STATE_RST_INIT; rinfo 6577 drivers/infiniband/hw/hns/hns_roce_hw_v2.c handle->rinfo.reset_state = HNS_ROCE_STATE_RST_INITED; rinfo 6586 drivers/infiniband/hw/hns/hns_roce_hw_v2.c if (test_bit(HNS_ROCE_RST_DIRECT_RETURN, &handle->rinfo.state)) rinfo 6589 drivers/infiniband/hw/hns/hns_roce_hw_v2.c handle->rinfo.reset_state = HNS_ROCE_STATE_RST_UNINIT; rinfo 449 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_intelext_regioninfo *rinfo; rinfo 450 drivers/mtd/chips/cfi_cmdset_0001.c rinfo = (struct cfi_intelext_regioninfo *)&extp->extra[extra_size]; rinfo 451 drivers/mtd/chips/cfi_cmdset_0001.c extra_size += sizeof(*rinfo); rinfo 454 drivers/mtd/chips/cfi_cmdset_0001.c rinfo->NumIdentPartitions=le16_to_cpu(rinfo->NumIdentPartitions); rinfo 455 drivers/mtd/chips/cfi_cmdset_0001.c extra_size += (rinfo->NumBlockTypes - 1) rinfo 721 drivers/mtd/chips/cfi_cmdset_0001.c struct cfi_intelext_regioninfo *rinfo; rinfo 722 drivers/mtd/chips/cfi_cmdset_0001.c rinfo = (struct cfi_intelext_regioninfo *)&extp->extra[offs]; rinfo 723 drivers/mtd/chips/cfi_cmdset_0001.c numparts += rinfo->NumIdentPartitions; rinfo 724 drivers/mtd/chips/cfi_cmdset_0001.c offs += sizeof(*rinfo) rinfo 725 drivers/mtd/chips/cfi_cmdset_0001.c + (rinfo->NumBlockTypes - 1) * rinfo 40 drivers/net/ethernet/cavium/liquidio/octeon_droq.c struct octeon_recv_info *rinfo; rinfo 538 drivers/net/ethernet/cavium/liquidio/octeon_droq.c struct octeon_recv_info *rinfo; rinfo 545 drivers/net/ethernet/cavium/liquidio/octeon_droq.c rinfo = octeon_create_recv_info(oct, droq, cnt, droq->read_idx); rinfo 546 drivers/net/ethernet/cavium/liquidio/octeon_droq.c if (rinfo) { rinfo 547 drivers/net/ethernet/cavium/liquidio/octeon_droq.c struct __dispatch *rdisp = rinfo->rsvd; rinfo 549 drivers/net/ethernet/cavium/liquidio/octeon_droq.c rdisp->rinfo = rinfo; rinfo 551 drivers/net/ethernet/cavium/liquidio/octeon_droq.c rinfo->recv_pkt->rh = *rh; rinfo 766 drivers/net/ethernet/cavium/liquidio/octeon_droq.c rdisp->disp_fn(rdisp->rinfo, rinfo 769 drivers/net/ethernet/cavium/liquidio/octeon_droq.c (u16)rdisp->rinfo->recv_pkt->rh.r.opcode, rinfo 770 drivers/net/ethernet/cavium/liquidio/octeon_droq.c (u16)rdisp->rinfo->recv_pkt->rh.r.subcode)); rinfo 816 drivers/net/ethernet/cavium/liquidio/octeon_droq.c rdisp->disp_fn(rdisp->rinfo, rinfo 819 drivers/net/ethernet/cavium/liquidio/octeon_droq.c (u16)rdisp->rinfo->recv_pkt->rh.r.opcode, rinfo 820 drivers/net/ethernet/cavium/liquidio/octeon_droq.c (u16)rdisp->rinfo->recv_pkt->rh.r.subcode)); rinfo 639 drivers/net/ethernet/hisilicon/hns3/hnae3.h struct hnae3_roce_private_info rinfo; rinfo 2280 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c roce->rinfo.num_vectors = vport->back->num_roce_msi; rinfo 2282 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c if (vport->back->num_msi_left < vport->roce.rinfo.num_vectors || rinfo 2286 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c roce->rinfo.base_vector = vport->back->roce_base_vector; rinfo 2288 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c roce->rinfo.netdev = nic->kinfo.netdev; rinfo 2289 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c roce->rinfo.roce_io_base = vport->back->hw.io_base; rinfo 2027 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c roce->rinfo.num_vectors = hdev->num_roce_msix; rinfo 2029 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c if (hdev->num_msi_left < roce->rinfo.num_vectors || rinfo 2033 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c roce->rinfo.base_vector = hdev->roce_base_vector; rinfo 2035 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c roce->rinfo.netdev = nic->kinfo.netdev; rinfo 2036 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c roce->rinfo.roce_io_base = hdev->hw.io_base; rinfo 782 drivers/net/xen-netfront.c struct netfront_rx_info *rinfo, RING_IDX rp, rinfo 785 drivers/net/xen-netfront.c struct xen_netif_rx_response *rx = &rinfo->rx; rinfo 786 drivers/net/xen-netfront.c struct xen_netif_extra_info *extras = rinfo->extras; rinfo 992 drivers/net/xen-netfront.c struct netfront_rx_info rinfo; rinfo 993 drivers/net/xen-netfront.c struct xen_netif_rx_response *rx = &rinfo.rx; rinfo 994 drivers/net/xen-netfront.c struct xen_netif_extra_info *extras = rinfo.extras; rinfo 1015 drivers/net/xen-netfront.c memset(extras, 0, sizeof(rinfo.extras)); rinfo 1017 drivers/net/xen-netfront.c err = xennet_get_responses(queue, &rinfo, rp, &tmpq); rinfo 248 drivers/regulator/da9062-regulator.c const struct da9062_regulator_info *rinfo = regl->info; rinfo 257 drivers/regulator/da9062-regulator.c ret = regmap_update_bits(regl->hw->regmap, rinfo->suspend_vsel_reg, rinfo 918 drivers/regulator/da9062-regulator.c const struct da9062_regulator_info *rinfo; rinfo 925 drivers/regulator/da9062-regulator.c rinfo = local_da9061_regulator_info; rinfo 929 drivers/regulator/da9062-regulator.c rinfo = local_da9062_regulator_info; rinfo 950 drivers/regulator/da9062-regulator.c regl->info = &rinfo[n]; rinfo 360 drivers/regulator/da9063-regulator.c const struct da9063_regulator_info *rinfo = regl->info; rinfo 369 drivers/regulator/da9063-regulator.c ret = regmap_update_bits(regl->hw->regmap, rinfo->suspend_vsel_reg, rinfo 87 drivers/regulator/max77620-regulator.c struct max77620_regulator_info *rinfo[MAX77620_NUM_REGS]; rinfo 102 drivers/regulator/max77620-regulator.c struct max77620_regulator_info *rinfo = pmic->rinfo[id]; rinfo 106 drivers/regulator/max77620-regulator.c ret = regmap_read(pmic->rmap, rinfo->fps_addr, &val); rinfo 109 drivers/regulator/max77620-regulator.c rinfo->fps_addr, ret); rinfo 119 drivers/regulator/max77620-regulator.c struct max77620_regulator_info *rinfo = pmic->rinfo[id]; rinfo 123 drivers/regulator/max77620-regulator.c if (!rinfo) rinfo 134 drivers/regulator/max77620-regulator.c ret = regmap_read(pmic->rmap, rinfo->fps_addr, &val); rinfo 137 drivers/regulator/max77620-regulator.c rinfo->fps_addr, ret); rinfo 150 drivers/regulator/max77620-regulator.c ret = regmap_update_bits(pmic->rmap, rinfo->fps_addr, rinfo 155 drivers/regulator/max77620-regulator.c rinfo->fps_addr, ret); rinfo 167 drivers/regulator/max77620-regulator.c struct max77620_regulator_info *rinfo = pmic->rinfo[id]; rinfo 174 drivers/regulator/max77620-regulator.c if (!rinfo) rinfo 195 drivers/regulator/max77620-regulator.c ret = regmap_update_bits(pmic->rmap, rinfo->fps_addr, rinfo 199 drivers/regulator/max77620-regulator.c rinfo->fps_addr, ret); rinfo 210 drivers/regulator/max77620-regulator.c struct max77620_regulator_info *rinfo = pmic->rinfo[id]; rinfo 211 drivers/regulator/max77620-regulator.c u8 mask = rinfo->power_mode_mask; rinfo 212 drivers/regulator/max77620-regulator.c u8 shift = rinfo->power_mode_shift; rinfo 216 drivers/regulator/max77620-regulator.c switch (rinfo->type) { rinfo 218 drivers/regulator/max77620-regulator.c addr = rinfo->cfg_addr; rinfo 221 drivers/regulator/max77620-regulator.c addr = rinfo->volt_addr; rinfo 239 drivers/regulator/max77620-regulator.c struct max77620_regulator_info *rinfo = pmic->rinfo[id]; rinfo 241 drivers/regulator/max77620-regulator.c u8 mask = rinfo->power_mode_mask; rinfo 242 drivers/regulator/max77620-regulator.c u8 shift = rinfo->power_mode_shift; rinfo 245 drivers/regulator/max77620-regulator.c switch (rinfo->type) { rinfo 247 drivers/regulator/max77620-regulator.c addr = rinfo->cfg_addr; rinfo 250 drivers/regulator/max77620-regulator.c addr = rinfo->volt_addr; rinfo 266 drivers/regulator/max77620-regulator.c struct max77620_regulator_info *rinfo = pmic->rinfo[id]; rinfo 271 drivers/regulator/max77620-regulator.c ret = regmap_read(pmic->rmap, rinfo->cfg_addr, &rval); rinfo 274 drivers/regulator/max77620-regulator.c rinfo->cfg_addr, ret); rinfo 278 drivers/regulator/max77620-regulator.c switch (rinfo->type) { rinfo 295 drivers/regulator/max77620-regulator.c rinfo->desc.ramp_delay = slew_rate; rinfo 307 drivers/regulator/max77620-regulator.c rinfo->desc.ramp_delay = slew_rate; rinfo 317 drivers/regulator/max77620-regulator.c struct max77620_regulator_info *rinfo = pmic->rinfo[id]; rinfo 322 drivers/regulator/max77620-regulator.c if (rinfo->type == MAX77620_REGULATOR_TYPE_SD) { rinfo 341 drivers/regulator/max77620-regulator.c ret = regmap_update_bits(pmic->rmap, rinfo->cfg_addr, mask, val); rinfo 354 drivers/regulator/max77620-regulator.c struct max77620_regulator_info *rinfo = pmic->rinfo[id]; rinfo 362 drivers/regulator/max77620-regulator.c if (rinfo->type == MAX77620_REGULATOR_TYPE_SD) rinfo 369 drivers/regulator/max77620-regulator.c ret = regmap_update_bits(pmic->rmap, rinfo->cfg_addr, rinfo 373 drivers/regulator/max77620-regulator.c rinfo->cfg_addr, ret); rinfo 490 drivers/regulator/max77620-regulator.c struct max77620_regulator_info *rinfo = pmic->rinfo[id]; rinfo 517 drivers/regulator/max77620-regulator.c if (rinfo->type != MAX77620_REGULATOR_TYPE_SD) rinfo 521 drivers/regulator/max77620-regulator.c ret = regmap_update_bits(pmic->rmap, rinfo->cfg_addr, rinfo 525 drivers/regulator/max77620-regulator.c rinfo->cfg_addr, ret); rinfo 544 drivers/regulator/max77620-regulator.c struct max77620_regulator_info *rinfo = pmic->rinfo[id]; rinfo 556 drivers/regulator/max77620-regulator.c if (rinfo->type == MAX77620_REGULATOR_TYPE_SD) { rinfo 557 drivers/regulator/max77620-regulator.c ret = regmap_read(pmic->rmap, rinfo->cfg_addr, &val); rinfo 560 drivers/regulator/max77620-regulator.c rinfo->cfg_addr, ret); rinfo 782 drivers/regulator/max77620-regulator.c struct max77620_regulator_info *rinfo; rinfo 801 drivers/regulator/max77620-regulator.c rinfo = max77620_regs_info; rinfo 804 drivers/regulator/max77620-regulator.c rinfo = max20024_regs_info; rinfo 807 drivers/regulator/max77620-regulator.c rinfo = max77663_regs_info; rinfo 825 drivers/regulator/max77620-regulator.c rdesc = &rinfo[id].desc; rinfo 826 drivers/regulator/max77620-regulator.c pmic->rinfo[id] = &rinfo[id]; rinfo 444 drivers/regulator/palmas-regulator.c struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; rinfo 448 drivers/regulator/palmas-regulator.c ret = palmas_smps_read(pmic->palmas, rinfo->ctrl_addr, ®); rinfo 473 drivers/regulator/palmas-regulator.c palmas_smps_write(pmic->palmas, rinfo->ctrl_addr, reg); rinfo 507 drivers/regulator/palmas-regulator.c struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; rinfo 527 drivers/regulator/palmas-regulator.c ret = palmas_smps_write(pmic->palmas, rinfo->tstep_addr, reg); rinfo 601 drivers/regulator/palmas-regulator.c struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; rinfo 604 drivers/regulator/palmas-regulator.c palmas_ldo_read(pmic->palmas, rinfo->ctrl_addr, ®); rinfo 677 drivers/regulator/palmas-regulator.c struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; rinfo 680 drivers/regulator/palmas-regulator.c ret = palmas_ext_control_req_config(palmas, rinfo->sleep_id, rinfo 701 drivers/regulator/palmas-regulator.c struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; rinfo 702 drivers/regulator/palmas-regulator.c unsigned int addr = rinfo->ctrl_addr; rinfo 737 drivers/regulator/palmas-regulator.c if (rinfo->vsel_addr && reg_init->vsel) { rinfo 741 drivers/regulator/palmas-regulator.c ret = palmas_smps_write(palmas, rinfo->vsel_addr, reg); rinfo 771 drivers/regulator/palmas-regulator.c struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; rinfo 773 drivers/regulator/palmas-regulator.c addr = rinfo->ctrl_addr; rinfo 816 drivers/regulator/palmas-regulator.c struct palmas_regs_info *rinfo = &ddata->palmas_regs_info[id]; rinfo 818 drivers/regulator/palmas-regulator.c addr = rinfo->ctrl_addr; rinfo 853 drivers/regulator/palmas-regulator.c struct palmas_regs_info *rinfo; rinfo 855 drivers/regulator/palmas-regulator.c rinfo = &ddata->palmas_regs_info[PALMAS_REG_LDO8]; rinfo 856 drivers/regulator/palmas-regulator.c addr = rinfo->ctrl_addr; rinfo 875 drivers/regulator/palmas-regulator.c addr = rinfo->vsel_addr; rinfo 899 drivers/regulator/palmas-regulator.c struct palmas_regs_info *rinfo; rinfo 908 drivers/regulator/palmas-regulator.c rinfo = &ddata->palmas_regs_info[id]; rinfo 915 drivers/regulator/palmas-regulator.c desc->name = rinfo->name; rinfo 931 drivers/regulator/palmas-regulator.c rinfo->vsel_addr); rinfo 934 drivers/regulator/palmas-regulator.c rinfo->ctrl_addr); rinfo 969 drivers/regulator/palmas-regulator.c rinfo->ctrl_addr); rinfo 978 drivers/regulator/palmas-regulator.c desc->supply_name = rinfo->sname; rinfo 1017 drivers/regulator/palmas-regulator.c struct palmas_regs_info *rinfo; rinfo 1029 drivers/regulator/palmas-regulator.c rinfo = &ddata->palmas_regs_info[id]; rinfo 1033 drivers/regulator/palmas-regulator.c desc->name = rinfo->name; rinfo 1049 drivers/regulator/palmas-regulator.c rinfo->vsel_addr); rinfo 1052 drivers/regulator/palmas-regulator.c rinfo->ctrl_addr); rinfo 1076 drivers/regulator/palmas-regulator.c rinfo->ctrl_addr); rinfo 1085 drivers/regulator/palmas-regulator.c desc->supply_name = rinfo->sname; rinfo 1125 drivers/regulator/palmas-regulator.c struct palmas_regs_info *rinfo; rinfo 1165 drivers/regulator/palmas-regulator.c rinfo = &ddata->palmas_regs_info[id]; rinfo 1172 drivers/regulator/palmas-regulator.c addr = rinfo->tstep_addr; rinfo 1194 drivers/regulator/palmas-regulator.c desc->name = rinfo->name; rinfo 1225 drivers/regulator/palmas-regulator.c addr = rinfo->vsel_addr; rinfo 1244 drivers/regulator/palmas-regulator.c rinfo->vsel_addr); rinfo 1248 drivers/regulator/palmas-regulator.c addr = rinfo->ctrl_addr; rinfo 1256 drivers/regulator/palmas-regulator.c rinfo->ctrl_addr); rinfo 1270 drivers/regulator/palmas-regulator.c desc->supply_name = rinfo->sname; rinfo 1295 drivers/regulator/palmas-regulator.c struct palmas_regs_info *rinfo; rinfo 1318 drivers/regulator/palmas-regulator.c rinfo = &ddata->palmas_regs_info[id]; rinfo 1321 drivers/regulator/palmas-regulator.c desc->name = rinfo->name; rinfo 1330 drivers/regulator/palmas-regulator.c addr = rinfo->vsel_addr; rinfo 1349 drivers/regulator/palmas-regulator.c rinfo->vsel_addr); rinfo 1354 drivers/regulator/palmas-regulator.c addr = rinfo->ctrl_addr; rinfo 1361 drivers/regulator/palmas-regulator.c rinfo->ctrl_addr); rinfo 1374 drivers/regulator/palmas-regulator.c desc->supply_name = rinfo->sname; rinfo 74 drivers/regulator/tps80031-regulator.c struct tps80031_regulator_info *rinfo; rinfo 96 drivers/regulator/tps80031-regulator.c ret = tps80031_read(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, rinfo 100 drivers/regulator/tps80031-regulator.c ri->rinfo->state_reg, ret); rinfo 115 drivers/regulator/tps80031-regulator.c ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, rinfo 119 drivers/regulator/tps80031-regulator.c ri->rinfo->state_reg, ret); rinfo 134 drivers/regulator/tps80031-regulator.c ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->state_reg, rinfo 138 drivers/regulator/tps80031-regulator.c ri->rinfo->state_reg, ret); rinfo 171 drivers/regulator/tps80031-regulator.c if (ri->rinfo->force_reg) { rinfo 172 drivers/regulator/tps80031-regulator.c ret = tps80031_read(parent, ri->rinfo->volt_id, rinfo 173 drivers/regulator/tps80031-regulator.c ri->rinfo->force_reg, ®_val); rinfo 176 drivers/regulator/tps80031-regulator.c ri->rinfo->force_reg, ret); rinfo 180 drivers/regulator/tps80031-regulator.c ret = tps80031_update(parent, ri->rinfo->volt_id, rinfo 181 drivers/regulator/tps80031-regulator.c ri->rinfo->force_reg, vsel, SMPS_VSEL_MASK); rinfo 185 drivers/regulator/tps80031-regulator.c ri->rinfo->force_reg, ret); rinfo 189 drivers/regulator/tps80031-regulator.c ret = tps80031_update(parent, ri->rinfo->volt_id, rinfo 190 drivers/regulator/tps80031-regulator.c ri->rinfo->volt_reg, vsel, SMPS_VSEL_MASK); rinfo 193 drivers/regulator/tps80031-regulator.c ri->rinfo->volt_reg, ret); rinfo 204 drivers/regulator/tps80031-regulator.c if (ri->rinfo->force_reg) { rinfo 205 drivers/regulator/tps80031-regulator.c ret = tps80031_read(parent, ri->rinfo->volt_id, rinfo 206 drivers/regulator/tps80031-regulator.c ri->rinfo->force_reg, &vsel); rinfo 209 drivers/regulator/tps80031-regulator.c ri->rinfo->force_reg, ret); rinfo 216 drivers/regulator/tps80031-regulator.c ret = tps80031_read(parent, ri->rinfo->volt_id, rinfo 217 drivers/regulator/tps80031-regulator.c ri->rinfo->volt_reg, &vsel); rinfo 220 drivers/regulator/tps80031-regulator.c ri->rinfo->volt_reg, ret); rinfo 233 drivers/regulator/tps80031-regulator.c if ((ri->rinfo->desc.id == TPS80031_REGULATOR_LDO2) && rinfo 257 drivers/regulator/tps80031-regulator.c if ((ri->rinfo->desc.id == TPS80031_REGULATOR_LDO2) && rinfo 353 drivers/regulator/tps80031-regulator.c mdelay(DIV_ROUND_UP(ri->rinfo->desc.enable_time, 1000)); rinfo 498 drivers/regulator/tps80031-regulator.c if (ri->rinfo->preq_bit < 0) rinfo 502 drivers/regulator/tps80031-regulator.c ri->rinfo->preq_bit, ri->rinfo->state_reg, rinfo 503 drivers/regulator/tps80031-regulator.c ri->rinfo->trans_reg); rinfo 512 drivers/regulator/tps80031-regulator.c ri->rinfo->trans_reg, TPS80031_TRANS_SLEEP_ON, rinfo 516 drivers/regulator/tps80031-regulator.c ri->rinfo->trans_reg, ret); rinfo 529 drivers/regulator/tps80031-regulator.c switch (ri->rinfo->desc.id) { rinfo 566 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.ops = &tps80031_vbus_sw_ops; rinfo 573 drivers/regulator/tps80031-regulator.c ret = tps80031_update(parent, TPS80031_SLAVE_ID1, ri->rinfo->trans_reg, rinfo 607 drivers/regulator/tps80031-regulator.c switch (ri->rinfo->desc.id) { rinfo 627 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.min_uV = 600000; rinfo 628 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.uV_step = 12500; rinfo 629 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.n_voltages = 57; rinfo 630 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.vsel_mask = LDO_TRACK_VSEL_MASK; rinfo 641 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.min_uV = 607700; rinfo 642 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.uV_step = 12660; rinfo 645 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.min_uV = 700000; rinfo 646 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.uV_step = 12500; rinfo 649 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.min_uV = 1852000; rinfo 650 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.uV_step = 38600; rinfo 653 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.min_uV = 2161000; rinfo 654 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.uV_step = 38600; rinfo 687 drivers/regulator/tps80031-regulator.c ri->rinfo = &tps80031_rinfo[num]; rinfo 694 drivers/regulator/tps80031-regulator.c config.regmap = tps80031_mfd->regmap[ri->rinfo->volt_id]; rinfo 716 drivers/regulator/tps80031-regulator.c rdev = devm_regulator_register(&pdev->dev, &ri->rinfo->desc, rinfo 721 drivers/regulator/tps80031-regulator.c ri->rinfo->desc.name); rinfo 328 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y if (cur_symbol->info.rinfo->valid_bitmask == 0) rinfo 329 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y cur_symbol->info.rinfo->valid_bitmask = 0xFF; rinfo 331 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y if (cur_symbol->info.rinfo->size == 0) rinfo 332 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y cur_symbol->info.rinfo->size = 1; rinfo 338 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y if (cur_symbol->info.rinfo->address == 0) rinfo 339 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y cur_symbol->info.rinfo->address = rinfo 342 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y cur_symbol->info.rinfo->size; rinfo 375 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y cur_symbol->info.rinfo->address = $2; rinfo 382 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y cur_symbol->info.rinfo->size = $2; rinfo 387 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y max_addr = scb_or_sram_symbol->info.rinfo->address rinfo 388 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y + scb_or_sram_symbol->info.rinfo->size; rinfo 389 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y sym_max_addr = cur_symbol->info.rinfo->address rinfo 390 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y + cur_symbol->info.rinfo->size; rinfo 408 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y cur_symbol->info.rinfo->mode = $2; rinfo 422 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y cur_symbol->info.rinfo->modes = $2; rinfo 705 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y $$.value = symbol->info.rinfo->address; rinfo 824 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y sram_or_scb_offset = cur_symbol->info.rinfo->address; rinfo 851 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y cur_symbol->info.rinfo->size = 64; rinfo 856 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y sram_or_scb_offset = cur_symbol->info.rinfo->address; rinfo 896 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y if (($3->info.cinfo->value + 1) > $1->info.rinfo->size) { rinfo 907 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y if (($3 + 1) > $1->info.rinfo->size) { rinfo 1463 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y cur_symbol->info.rinfo->valid_bitmask |= sym->info.finfo->mask; rinfo 1464 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y cur_symbol->info.rinfo->typecheck_masks = TRUE; rinfo 1465 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y symlist_add(&(cur_symbol->info.rinfo->fields), sym, SYMLIST_SORT); rinfo 1480 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y symbol->info.rinfo = rinfo 1482 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y if (symbol->info.rinfo == NULL) { rinfo 1486 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y memset(symbol->info.rinfo, 0, rinfo 1488 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y SLIST_INIT(&(symbol->info.rinfo->fields)); rinfo 1495 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y symbol->info.rinfo->modes = rinfo 1496 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y scb_or_sram_symbol->info.rinfo->modes; rinfo 1498 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y symbol->info.rinfo->modes = ~0; rinfo 1669 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y f1_instr->destination = dest->symbol->info.rinfo->address rinfo 1671 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y f1_instr->source = src->symbol->info.rinfo->address rinfo 1742 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y f2_instr->destination = dest->symbol->info.rinfo->address rinfo 1744 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y f2_instr->source = src->symbol->info.rinfo->address rinfo 1808 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y f3_instr->source = src->symbol->info.rinfo->address rinfo 1822 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y if ((symbol->info.rinfo->modes & (0x1 << src_mode)) == 0) { rinfo 1829 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y if (symbol->info.rinfo->mode == WO) { rinfo 1839 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y if ((symbol->info.rinfo->modes & (0x1 << dst_mode)) == 0) { rinfo 1846 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y if (symbol->info.rinfo->mode == RO) { rinfo 1875 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y mask = (int8_t)~symbol->info.rinfo->valid_bitmask; rinfo 1891 drivers/scsi/aic7xxx/aicasm/aicasm_gram.y if (symbol->info.rinfo->typecheck_masks != FALSE) { rinfo 94 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c if (symbol->info.rinfo != NULL) rinfo 95 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c free(symbol->info.rinfo); rinfo 261 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c || (!field && (curnode->symbol->info.rinfo->address > rinfo 262 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c newnode->symbol->info.rinfo->address))) { rinfo 282 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c && (cursymbol->info.rinfo->address > rinfo 283 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c symbol->info.rinfo->address))) { rinfo 417 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c regnode->symbol->info.rinfo->address); rinfo 435 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c regnode->symbol->info.rinfo->address); rinfo 554 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c fields = &curnode->symbol->info.rinfo->fields; rinfo 614 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c value = curnode->symbol->info.rinfo->address; rinfo 623 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.c value = parent->info.rinfo->address; rinfo 129 drivers/scsi/aic7xxx/aicasm/aicasm_symbol.h struct reg_info *rinfo; rinfo 868 drivers/scsi/sg.c sg_fill_request_table(Sg_fd *sfp, sg_req_info_t *rinfo) rinfo 878 drivers/scsi/sg.c rinfo[val].req_state = srp->done + 1; rinfo 879 drivers/scsi/sg.c rinfo[val].problem = rinfo 884 drivers/scsi/sg.c rinfo[val].duration = rinfo 888 drivers/scsi/sg.c rinfo[val].duration = rinfo 892 drivers/scsi/sg.c rinfo[val].orphan = srp->orphan; rinfo 893 drivers/scsi/sg.c rinfo[val].sg_io_owned = srp->sg_io_owned; rinfo 894 drivers/scsi/sg.c rinfo[val].pack_id = srp->header.pack_id; rinfo 895 drivers/scsi/sg.c rinfo[val].usr_ptr = srp->header.usr_ptr; rinfo 1083 drivers/scsi/sg.c sg_req_info_t *rinfo; rinfo 1085 drivers/scsi/sg.c rinfo = kcalloc(SG_MAX_QUEUE, SZ_SG_REQ_INFO, rinfo 1087 drivers/scsi/sg.c if (!rinfo) rinfo 1090 drivers/scsi/sg.c sg_fill_request_table(sfp, rinfo); rinfo 1092 drivers/scsi/sg.c result = __copy_to_user(p, rinfo, rinfo 1095 drivers/scsi/sg.c kfree(rinfo); rinfo 9 drivers/video/fbdev/aty/radeon_accel.c static void radeon_fixup_offset(struct radeonfb_info *rinfo) rinfo 31 drivers/video/fbdev/aty/radeon_accel.c if (local_base == rinfo->fb_local_base) rinfo 34 drivers/video/fbdev/aty/radeon_accel.c rinfo->fb_local_base = local_base; rinfo 37 drivers/video/fbdev/aty/radeon_accel.c OUTREG(DEFAULT_PITCH_OFFSET, (rinfo->pitch << 0x16) | rinfo 38 drivers/video/fbdev/aty/radeon_accel.c (rinfo->fb_local_base >> 10)); rinfo 39 drivers/video/fbdev/aty/radeon_accel.c OUTREG(DST_PITCH_OFFSET, (rinfo->pitch << 0x16) | (rinfo->fb_local_base >> 10)); rinfo 40 drivers/video/fbdev/aty/radeon_accel.c OUTREG(SRC_PITCH_OFFSET, (rinfo->pitch << 0x16) | (rinfo->fb_local_base >> 10)); rinfo 43 drivers/video/fbdev/aty/radeon_accel.c static void radeonfb_prim_fillrect(struct radeonfb_info *rinfo, rinfo 49 drivers/video/fbdev/aty/radeon_accel.c rinfo->dp_gui_master_cntl /* contains, like GMC_DST_32BPP */ rinfo 52 drivers/video/fbdev/aty/radeon_accel.c if (radeon_get_dstbpp(rinfo->depth) != DST_8BPP) rinfo 53 drivers/video/fbdev/aty/radeon_accel.c OUTREG(DP_BRUSH_FRGD_CLR, rinfo->pseudo_palette[region->color]); rinfo 70 drivers/video/fbdev/aty/radeon_accel.c struct radeonfb_info *rinfo = info->par; rinfo 81 drivers/video/fbdev/aty/radeon_accel.c radeon_fixup_offset(rinfo); rinfo 95 drivers/video/fbdev/aty/radeon_accel.c radeonfb_prim_fillrect(rinfo, &modded); rinfo 98 drivers/video/fbdev/aty/radeon_accel.c static void radeonfb_prim_copyarea(struct radeonfb_info *rinfo, rinfo 115 drivers/video/fbdev/aty/radeon_accel.c rinfo->dp_gui_master_cntl /* i.e. GMC_DST_32BPP */ rinfo 137 drivers/video/fbdev/aty/radeon_accel.c struct radeonfb_info *rinfo = info->par; rinfo 154 drivers/video/fbdev/aty/radeon_accel.c radeon_fixup_offset(rinfo); rinfo 169 drivers/video/fbdev/aty/radeon_accel.c radeonfb_prim_copyarea(rinfo, &modded); rinfo 174 drivers/video/fbdev/aty/radeon_accel.c struct radeonfb_info *rinfo = info->par; rinfo 185 drivers/video/fbdev/aty/radeon_accel.c struct radeonfb_info *rinfo = info->par; rinfo 194 drivers/video/fbdev/aty/radeon_accel.c void radeonfb_engine_reset(struct radeonfb_info *rinfo) rinfo 199 drivers/video/fbdev/aty/radeon_accel.c radeon_engine_flush (rinfo); rinfo 215 drivers/video/fbdev/aty/radeon_accel.c if (IS_R300_VARIANT(rinfo)) { rinfo 251 drivers/video/fbdev/aty/radeon_accel.c if (!IS_R300_VARIANT(rinfo)) rinfo 258 drivers/video/fbdev/aty/radeon_accel.c void radeonfb_engine_init (struct radeonfb_info *rinfo) rinfo 265 drivers/video/fbdev/aty/radeon_accel.c radeonfb_engine_reset(rinfo); rinfo 268 drivers/video/fbdev/aty/radeon_accel.c if (IS_R300_VARIANT(rinfo)) { rinfo 285 drivers/video/fbdev/aty/radeon_accel.c rinfo->fb_local_base = INREG(MC_FB_LOCATION) << 16; rinfo 287 drivers/video/fbdev/aty/radeon_accel.c OUTREG(DEFAULT_PITCH_OFFSET, (rinfo->pitch << 0x16) | rinfo 288 drivers/video/fbdev/aty/radeon_accel.c (rinfo->fb_local_base >> 10)); rinfo 289 drivers/video/fbdev/aty/radeon_accel.c OUTREG(DST_PITCH_OFFSET, (rinfo->pitch << 0x16) | (rinfo->fb_local_base >> 10)); rinfo 290 drivers/video/fbdev/aty/radeon_accel.c OUTREG(SRC_PITCH_OFFSET, (rinfo->pitch << 0x16) | (rinfo->fb_local_base >> 10)); rinfo 303 drivers/video/fbdev/aty/radeon_accel.c temp = radeon_get_dstbpp(rinfo->depth); rinfo 304 drivers/video/fbdev/aty/radeon_accel.c rinfo->dp_gui_master_cntl = ((temp << 8) | GMC_CLR_CMP_CNTL_DIS); rinfo 307 drivers/video/fbdev/aty/radeon_accel.c OUTREG(DP_GUI_MASTER_CNTL, (rinfo->dp_gui_master_cntl | rinfo 21 drivers/video/fbdev/aty/radeon_backlight.c struct radeonfb_info *rinfo; rinfo 32 drivers/video/fbdev/aty/radeon_backlight.c rlevel = pdata->rinfo->info->bl_curve[level] * rinfo 49 drivers/video/fbdev/aty/radeon_backlight.c struct radeonfb_info *rinfo = pdata->rinfo; rinfo 53 drivers/video/fbdev/aty/radeon_backlight.c if (rinfo->mon1_type != MT_LCD) rinfo 66 drivers/video/fbdev/aty/radeon_backlight.c del_timer_sync(&rinfo->lvds_timer); rinfo 73 drivers/video/fbdev/aty/radeon_backlight.c lvds_gen_cntl |= (rinfo->init_state.lvds_gen_cntl & LVDS_DIGON); rinfo 81 drivers/video/fbdev/aty/radeon_backlight.c lvds_gen_cntl |= (rinfo->init_state.lvds_gen_cntl & LVDS_BL_MOD_EN); rinfo 82 drivers/video/fbdev/aty/radeon_backlight.c rinfo->pending_lvds_gen_cntl = lvds_gen_cntl; rinfo 83 drivers/video/fbdev/aty/radeon_backlight.c mod_timer(&rinfo->lvds_timer, rinfo 84 drivers/video/fbdev/aty/radeon_backlight.c jiffies + msecs_to_jiffies(rinfo->panel_info.pwr_delay)); rinfo 92 drivers/video/fbdev/aty/radeon_backlight.c rinfo->init_state.lvds_gen_cntl &= ~LVDS_STATE_MASK; rinfo 93 drivers/video/fbdev/aty/radeon_backlight.c rinfo->init_state.lvds_gen_cntl |= rinfo->pending_lvds_gen_cntl rinfo 100 drivers/video/fbdev/aty/radeon_backlight.c if (rinfo->is_mobility || rinfo->is_IGP) rinfo 111 drivers/video/fbdev/aty/radeon_backlight.c rinfo->pending_lvds_gen_cntl = lvds_gen_cntl; rinfo 112 drivers/video/fbdev/aty/radeon_backlight.c mod_timer(&rinfo->lvds_timer, rinfo 113 drivers/video/fbdev/aty/radeon_backlight.c jiffies + msecs_to_jiffies(rinfo->panel_info.pwr_delay)); rinfo 114 drivers/video/fbdev/aty/radeon_backlight.c if (rinfo->is_mobility || rinfo->is_IGP) rinfo 117 drivers/video/fbdev/aty/radeon_backlight.c rinfo->init_state.lvds_gen_cntl &= ~LVDS_STATE_MASK; rinfo 118 drivers/video/fbdev/aty/radeon_backlight.c rinfo->init_state.lvds_gen_cntl |= (lvds_gen_cntl & LVDS_STATE_MASK); rinfo 127 drivers/video/fbdev/aty/radeon_backlight.c void radeonfb_bl_init(struct radeonfb_info *rinfo) rinfo 134 drivers/video/fbdev/aty/radeon_backlight.c if (rinfo->mon1_type != MT_LCD) rinfo 149 drivers/video/fbdev/aty/radeon_backlight.c snprintf(name, sizeof(name), "radeonbl%d", rinfo->info->node); rinfo 154 drivers/video/fbdev/aty/radeon_backlight.c bd = backlight_device_register(name, rinfo->info->dev, pdata, rinfo 157 drivers/video/fbdev/aty/radeon_backlight.c rinfo->info->bl_dev = NULL; rinfo 162 drivers/video/fbdev/aty/radeon_backlight.c pdata->rinfo = rinfo; rinfo 168 drivers/video/fbdev/aty/radeon_backlight.c (rinfo->family != CHIP_FAMILY_RV200 && rinfo 169 drivers/video/fbdev/aty/radeon_backlight.c rinfo->family != CHIP_FAMILY_RV250 && rinfo 170 drivers/video/fbdev/aty/radeon_backlight.c rinfo->family != CHIP_FAMILY_RV280 && rinfo 171 drivers/video/fbdev/aty/radeon_backlight.c rinfo->family != CHIP_FAMILY_RV350); rinfo 180 drivers/video/fbdev/aty/radeon_backlight.c rinfo->info->bl_dev = bd; rinfo 181 drivers/video/fbdev/aty/radeon_backlight.c fb_bl_default_curve(rinfo->info, 0, rinfo 198 drivers/video/fbdev/aty/radeon_backlight.c void radeonfb_bl_exit(struct radeonfb_info *rinfo) rinfo 200 drivers/video/fbdev/aty/radeon_backlight.c struct backlight_device *bd = rinfo->info->bl_dev; rinfo 208 drivers/video/fbdev/aty/radeon_backlight.c rinfo->info->bl_dev = NULL; rinfo 284 drivers/video/fbdev/aty/radeon_base.c void _radeon_msleep(struct radeonfb_info *rinfo, unsigned long ms) rinfo 286 drivers/video/fbdev/aty/radeon_base.c if (rinfo->no_schedule || oops_in_progress) rinfo 292 drivers/video/fbdev/aty/radeon_base.c void radeon_pll_errata_after_index_slow(struct radeonfb_info *rinfo) rinfo 299 drivers/video/fbdev/aty/radeon_base.c void radeon_pll_errata_after_data_slow(struct radeonfb_info *rinfo) rinfo 301 drivers/video/fbdev/aty/radeon_base.c if (rinfo->errata & CHIP_ERRATA_PLL_DELAY) { rinfo 303 drivers/video/fbdev/aty/radeon_base.c _radeon_msleep(rinfo, 5); rinfo 305 drivers/video/fbdev/aty/radeon_base.c if (rinfo->errata & CHIP_ERRATA_R300_CG) { rinfo 315 drivers/video/fbdev/aty/radeon_base.c void _OUTREGP(struct radeonfb_info *rinfo, u32 addr, u32 val, u32 mask) rinfo 320 drivers/video/fbdev/aty/radeon_base.c spin_lock_irqsave(&rinfo->reg_lock, flags); rinfo 325 drivers/video/fbdev/aty/radeon_base.c spin_unlock_irqrestore(&rinfo->reg_lock, flags); rinfo 328 drivers/video/fbdev/aty/radeon_base.c u32 __INPLL(struct radeonfb_info *rinfo, u32 addr) rinfo 333 drivers/video/fbdev/aty/radeon_base.c radeon_pll_errata_after_index(rinfo); rinfo 335 drivers/video/fbdev/aty/radeon_base.c radeon_pll_errata_after_data(rinfo); rinfo 339 drivers/video/fbdev/aty/radeon_base.c void __OUTPLL(struct radeonfb_info *rinfo, unsigned int index, u32 val) rinfo 342 drivers/video/fbdev/aty/radeon_base.c radeon_pll_errata_after_index(rinfo); rinfo 344 drivers/video/fbdev/aty/radeon_base.c radeon_pll_errata_after_data(rinfo); rinfo 347 drivers/video/fbdev/aty/radeon_base.c void __OUTPLLP(struct radeonfb_info *rinfo, unsigned int index, rinfo 352 drivers/video/fbdev/aty/radeon_base.c tmp = __INPLL(rinfo, index); rinfo 355 drivers/video/fbdev/aty/radeon_base.c __OUTPLL(rinfo, index, tmp); rinfo 358 drivers/video/fbdev/aty/radeon_base.c void _radeon_fifo_wait(struct radeonfb_info *rinfo, int entries) rinfo 370 drivers/video/fbdev/aty/radeon_base.c void radeon_engine_flush(struct radeonfb_info *rinfo) rinfo 381 drivers/video/fbdev/aty/radeon_base.c _radeon_fifo_wait(rinfo, 64); rinfo 392 drivers/video/fbdev/aty/radeon_base.c void _radeon_engine_idle(struct radeonfb_info *rinfo) rinfo 397 drivers/video/fbdev/aty/radeon_base.c _radeon_fifo_wait(rinfo, 64); rinfo 401 drivers/video/fbdev/aty/radeon_base.c radeon_engine_flush(rinfo); rinfo 411 drivers/video/fbdev/aty/radeon_base.c static void radeon_unmap_ROM(struct radeonfb_info *rinfo, struct pci_dev *dev) rinfo 413 drivers/video/fbdev/aty/radeon_base.c if (!rinfo->bios_seg) rinfo 415 drivers/video/fbdev/aty/radeon_base.c pci_unmap_rom(dev, rinfo->bios_seg); rinfo 418 drivers/video/fbdev/aty/radeon_base.c static int radeon_map_ROM(struct radeonfb_info *rinfo, struct pci_dev *dev) rinfo 441 drivers/video/fbdev/aty/radeon_base.c pci_name(rinfo->pdev)); rinfo 445 drivers/video/fbdev/aty/radeon_base.c rinfo->bios_seg = rom; rinfo 451 drivers/video/fbdev/aty/radeon_base.c pci_name(rinfo->pdev), BIOS_IN16(0)); rinfo 483 drivers/video/fbdev/aty/radeon_base.c "incorrect: %08x\n", pci_name(rinfo->pdev), BIOS_IN32(dptr)); rinfo 503 drivers/video/fbdev/aty/radeon_base.c rinfo->fp_bios_start = BIOS_IN16(0x48); rinfo 507 drivers/video/fbdev/aty/radeon_base.c rinfo->bios_seg = NULL; rinfo 508 drivers/video/fbdev/aty/radeon_base.c radeon_unmap_ROM(rinfo, dev); rinfo 513 drivers/video/fbdev/aty/radeon_base.c static int radeon_find_mem_vbios(struct radeonfb_info *rinfo) rinfo 536 drivers/video/fbdev/aty/radeon_base.c rinfo->bios_seg = rom_base; rinfo 537 drivers/video/fbdev/aty/radeon_base.c rinfo->fp_bios_start = BIOS_IN16(0x48); rinfo 548 drivers/video/fbdev/aty/radeon_base.c static int radeon_read_xtal_OF(struct radeonfb_info *rinfo) rinfo 550 drivers/video/fbdev/aty/radeon_base.c struct device_node *dp = rinfo->of_node; rinfo 561 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ref_clk = (*val) / 10; rinfo 565 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.sclk = (*val) / 10; rinfo 569 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk = (*val) / 10; rinfo 578 drivers/video/fbdev/aty/radeon_base.c static int radeon_probe_pll_params(struct radeonfb_info *rinfo) rinfo 647 drivers/video/fbdev/aty/radeon_base.c radeon_pll_errata_after_index(rinfo); rinfo 701 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ref_clk = xtal; rinfo 702 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ref_div = ref_div; rinfo 703 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.sclk = sclk; rinfo 704 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk = mclk; rinfo 712 drivers/video/fbdev/aty/radeon_base.c static void radeon_get_pllinfo(struct radeonfb_info *rinfo) rinfo 719 drivers/video/fbdev/aty/radeon_base.c switch (rinfo->chipset) { rinfo 722 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ppll_max = 35000; rinfo 723 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ppll_min = 12000; rinfo 724 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk = 23000; rinfo 725 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.sclk = 23000; rinfo 726 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ref_clk = 2700; rinfo 733 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ppll_max = 35000; rinfo 734 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ppll_min = 12000; rinfo 735 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk = 27500; rinfo 736 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.sclk = 27500; rinfo 737 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ref_clk = 2700; rinfo 743 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ppll_max = 35000; rinfo 744 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ppll_min = 12000; rinfo 745 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk = 25000; rinfo 746 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.sclk = 25000; rinfo 747 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ref_clk = 2700; rinfo 753 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ppll_max = 40000; rinfo 754 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ppll_min = 20000; rinfo 755 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk = 27000; rinfo 756 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.sclk = 27000; rinfo 757 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ref_clk = 2700; rinfo 764 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ppll_max = 35000; rinfo 765 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ppll_min = 12000; rinfo 766 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk = 16600; rinfo 767 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.sclk = 16600; rinfo 768 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ref_clk = 2700; rinfo 771 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ref_div = INPLL(PPLL_REF_DIV) & PPLL_REF_DIV_MASK; rinfo 778 drivers/video/fbdev/aty/radeon_base.c if (!force_measure_pll && radeon_read_xtal_OF(rinfo) == 0) { rinfo 788 drivers/video/fbdev/aty/radeon_base.c if (!force_measure_pll && rinfo->bios_seg) { rinfo 789 drivers/video/fbdev/aty/radeon_base.c u16 pll_info_block = BIOS_IN16(rinfo->fp_bios_start + 0x30); rinfo 791 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.sclk = BIOS_IN16(pll_info_block + 0x08); rinfo 792 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk = BIOS_IN16(pll_info_block + 0x0a); rinfo 793 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ref_clk = BIOS_IN16(pll_info_block + 0x0e); rinfo 794 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ref_div = BIOS_IN16(pll_info_block + 0x10); rinfo 795 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ppll_min = BIOS_IN32(pll_info_block + 0x12); rinfo 796 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ppll_max = BIOS_IN32(pll_info_block + 0x16); rinfo 806 drivers/video/fbdev/aty/radeon_base.c if (radeon_probe_pll_params(rinfo) == 0) { rinfo 822 drivers/video/fbdev/aty/radeon_base.c if (rinfo->pll.mclk == 0) rinfo 823 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk = 20000; rinfo 824 drivers/video/fbdev/aty/radeon_base.c if (rinfo->pll.sclk == 0) rinfo 825 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.sclk = 20000; rinfo 828 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ref_clk / 100, rinfo->pll.ref_clk % 100, rinfo 829 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ref_div, rinfo 830 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.mclk / 100, rinfo->pll.mclk % 100, rinfo 831 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.sclk / 100, rinfo->pll.sclk % 100); rinfo 832 drivers/video/fbdev/aty/radeon_base.c printk("radeonfb: PLL min %d max %d\n", rinfo->pll.ppll_min, rinfo->pll.ppll_max); rinfo 837 drivers/video/fbdev/aty/radeon_base.c struct radeonfb_info *rinfo = info->par; rinfo 842 drivers/video/fbdev/aty/radeon_base.c if (radeon_match_mode(rinfo, &v, var)) rinfo 926 drivers/video/fbdev/aty/radeon_base.c if (rinfo->info->flags & FBINFO_HWACCEL_DISABLED) { rinfo 934 drivers/video/fbdev/aty/radeon_base.c if (((v.xres_virtual * v.yres_virtual * nom) / den) > rinfo->mapped_vram) rinfo 959 drivers/video/fbdev/aty/radeon_base.c struct radeonfb_info *rinfo = info->par; rinfo 965 drivers/video/fbdev/aty/radeon_base.c if (rinfo->asleep) rinfo 978 drivers/video/fbdev/aty/radeon_base.c struct radeonfb_info *rinfo = info->par; rinfo 990 drivers/video/fbdev/aty/radeon_base.c if (!rinfo->is_mobility) rinfo 1027 drivers/video/fbdev/aty/radeon_base.c if (!rinfo->is_mobility) rinfo 1047 drivers/video/fbdev/aty/radeon_base.c int radeon_screen_blank(struct radeonfb_info *rinfo, int blank, int mode_switch) rinfo 1053 drivers/video/fbdev/aty/radeon_base.c if (rinfo->lock_blank) rinfo 1082 drivers/video/fbdev/aty/radeon_base.c switch (rinfo->mon1_type) { rinfo 1094 drivers/video/fbdev/aty/radeon_base.c del_timer_sync(&rinfo->lvds_timer); rinfo 1098 drivers/video/fbdev/aty/radeon_base.c | LVDS_EN | (rinfo->init_state.lvds_gen_cntl rinfo 1105 drivers/video/fbdev/aty/radeon_base.c rinfo->init_state.lvds_gen_cntl &= ~LVDS_STATE_MASK; rinfo 1106 drivers/video/fbdev/aty/radeon_base.c rinfo->init_state.lvds_gen_cntl |= rinfo 1109 drivers/video/fbdev/aty/radeon_base.c radeon_msleep(rinfo->panel_info.pwr_delay); rinfo 1113 drivers/video/fbdev/aty/radeon_base.c rinfo->pending_lvds_gen_cntl = target_val; rinfo 1114 drivers/video/fbdev/aty/radeon_base.c mod_timer(&rinfo->lvds_timer, rinfo 1116 drivers/video/fbdev/aty/radeon_base.c msecs_to_jiffies(rinfo->panel_info.pwr_delay)); rinfo 1131 drivers/video/fbdev/aty/radeon_base.c if (rinfo->is_mobility || rinfo->is_IGP) rinfo 1139 drivers/video/fbdev/aty/radeon_base.c rinfo->pending_lvds_gen_cntl = val; rinfo 1140 drivers/video/fbdev/aty/radeon_base.c mod_timer(&rinfo->lvds_timer, rinfo 1142 drivers/video/fbdev/aty/radeon_base.c msecs_to_jiffies(rinfo->panel_info.pwr_delay)); rinfo 1143 drivers/video/fbdev/aty/radeon_base.c rinfo->init_state.lvds_gen_cntl &= ~LVDS_STATE_MASK; rinfo 1144 drivers/video/fbdev/aty/radeon_base.c rinfo->init_state.lvds_gen_cntl |= val & LVDS_STATE_MASK; rinfo 1145 drivers/video/fbdev/aty/radeon_base.c if (rinfo->is_mobility || rinfo->is_IGP) rinfo 1160 drivers/video/fbdev/aty/radeon_base.c struct radeonfb_info *rinfo = info->par; rinfo 1162 drivers/video/fbdev/aty/radeon_base.c if (rinfo->asleep) rinfo 1165 drivers/video/fbdev/aty/radeon_base.c return radeon_screen_blank(rinfo, blank, 0); rinfo 1170 drivers/video/fbdev/aty/radeon_base.c struct radeonfb_info *rinfo) rinfo 1182 drivers/video/fbdev/aty/radeon_base.c rinfo->palette[regno].red = red; rinfo 1183 drivers/video/fbdev/aty/radeon_base.c rinfo->palette[regno].green = green; rinfo 1184 drivers/video/fbdev/aty/radeon_base.c rinfo->palette[regno].blue = blue; rinfo 1189 drivers/video/fbdev/aty/radeon_base.c if (!rinfo->asleep) { rinfo 1192 drivers/video/fbdev/aty/radeon_base.c if (rinfo->bpp == 16) { rinfo 1195 drivers/video/fbdev/aty/radeon_base.c if (rinfo->depth == 16 && regno > 63) rinfo 1197 drivers/video/fbdev/aty/radeon_base.c if (rinfo->depth == 15 && regno > 31) rinfo 1203 drivers/video/fbdev/aty/radeon_base.c if (rinfo->depth == 16) { rinfo 1206 drivers/video/fbdev/aty/radeon_base.c (rinfo->palette[regno>>1].red << 16) | rinfo 1208 drivers/video/fbdev/aty/radeon_base.c (rinfo->palette[regno>>1].blue)); rinfo 1209 drivers/video/fbdev/aty/radeon_base.c green = rinfo->palette[regno<<1].green; rinfo 1213 drivers/video/fbdev/aty/radeon_base.c if (rinfo->depth != 16 || regno < 32) { rinfo 1220 drivers/video/fbdev/aty/radeon_base.c u32 *pal = rinfo->info->pseudo_palette; rinfo 1221 drivers/video/fbdev/aty/radeon_base.c switch (rinfo->depth) { rinfo 1244 drivers/video/fbdev/aty/radeon_base.c struct radeonfb_info *rinfo = info->par; rinfo 1248 drivers/video/fbdev/aty/radeon_base.c if (!rinfo->asleep) { rinfo 1249 drivers/video/fbdev/aty/radeon_base.c if (rinfo->is_mobility) { rinfo 1256 drivers/video/fbdev/aty/radeon_base.c if (rinfo->has_CRTC2) { rinfo 1263 drivers/video/fbdev/aty/radeon_base.c rc = radeon_setcolreg (regno, red, green, blue, transp, rinfo); rinfo 1265 drivers/video/fbdev/aty/radeon_base.c if (!rinfo->asleep && rinfo->is_mobility) rinfo 1273 drivers/video/fbdev/aty/radeon_base.c struct radeonfb_info *rinfo = info->par; rinfo 1278 drivers/video/fbdev/aty/radeon_base.c if (!rinfo->asleep) { rinfo 1279 drivers/video/fbdev/aty/radeon_base.c if (rinfo->is_mobility) { rinfo 1286 drivers/video/fbdev/aty/radeon_base.c if (rinfo->has_CRTC2) { rinfo 1308 drivers/video/fbdev/aty/radeon_base.c rinfo); rinfo 1313 drivers/video/fbdev/aty/radeon_base.c if (!rinfo->asleep && rinfo->is_mobility) rinfo 1319 drivers/video/fbdev/aty/radeon_base.c static void radeon_save_state (struct radeonfb_info *rinfo, rinfo 1350 drivers/video/fbdev/aty/radeon_base.c radeon_pll_errata_after_index(rinfo); rinfo 1356 drivers/video/fbdev/aty/radeon_base.c static void radeon_write_pll_regs(struct radeonfb_info *rinfo, struct radeon_regs *mode) rinfo 1363 drivers/video/fbdev/aty/radeon_base.c if (rinfo->is_mobility) { rinfo 1380 drivers/video/fbdev/aty/radeon_base.c radeon_pll_errata_after_index(rinfo); rinfo 1381 drivers/video/fbdev/aty/radeon_base.c radeon_pll_errata_after_data(rinfo); rinfo 1398 drivers/video/fbdev/aty/radeon_base.c radeon_pll_errata_after_index(rinfo); rinfo 1399 drivers/video/fbdev/aty/radeon_base.c radeon_pll_errata_after_data(rinfo); rinfo 1402 drivers/video/fbdev/aty/radeon_base.c if (IS_R300_VARIANT(rinfo) || rinfo 1403 drivers/video/fbdev/aty/radeon_base.c rinfo->family == CHIP_FAMILY_RS300 || rinfo 1404 drivers/video/fbdev/aty/radeon_base.c rinfo->family == CHIP_FAMILY_RS400 || rinfo 1405 drivers/video/fbdev/aty/radeon_base.c rinfo->family == CHIP_FAMILY_RS480) { rinfo 1455 drivers/video/fbdev/aty/radeon_base.c struct radeonfb_info *rinfo = from_timer(rinfo, t, lvds_timer); rinfo 1459 drivers/video/fbdev/aty/radeon_base.c OUTREG(LVDS_GEN_CNTL, rinfo->pending_lvds_gen_cntl); rinfo 1466 drivers/video/fbdev/aty/radeon_base.c void radeon_write_mode (struct radeonfb_info *rinfo, struct radeon_regs *mode, rinfo 1470 drivers/video/fbdev/aty/radeon_base.c int primary_mon = PRIMARY_MONITOR(rinfo); rinfo 1476 drivers/video/fbdev/aty/radeon_base.c radeon_screen_blank(rinfo, FB_BLANK_NORMAL, 0); rinfo 1503 drivers/video/fbdev/aty/radeon_base.c radeon_write_pll_regs(rinfo, mode); rinfo 1519 drivers/video/fbdev/aty/radeon_base.c radeon_screen_blank(rinfo, FB_BLANK_UNBLANK, 0); rinfo 1530 drivers/video/fbdev/aty/radeon_base.c static void radeon_calc_pll_regs(struct radeonfb_info *rinfo, struct radeon_regs *regs, rinfo 1565 drivers/video/fbdev/aty/radeon_base.c while (rinfo->has_CRTC2) { rinfo 1576 drivers/video/fbdev/aty/radeon_base.c if (rinfo->family == CHIP_FAMILY_R200 || IS_R300_VARIANT(rinfo)) { rinfo 1598 drivers/video/fbdev/aty/radeon_base.c if (freq > rinfo->pll.ppll_max) rinfo 1599 drivers/video/fbdev/aty/radeon_base.c freq = rinfo->pll.ppll_max; rinfo 1600 drivers/video/fbdev/aty/radeon_base.c if (freq*12 < rinfo->pll.ppll_min) rinfo 1601 drivers/video/fbdev/aty/radeon_base.c freq = rinfo->pll.ppll_min / 12; rinfo 1603 drivers/video/fbdev/aty/radeon_base.c freq, rinfo->pll.ppll_min, rinfo->pll.ppll_max); rinfo 1612 drivers/video/fbdev/aty/radeon_base.c if (pll_output_freq >= rinfo->pll.ppll_min && rinfo 1613 drivers/video/fbdev/aty/radeon_base.c pll_output_freq <= rinfo->pll.ppll_max) rinfo 1624 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ref_div, rinfo->pll.ref_clk, rinfo 1634 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ref_div, rinfo->pll.ref_clk, rinfo 1637 drivers/video/fbdev/aty/radeon_base.c fb_div = round_div(rinfo->pll.ref_div*pll_output_freq, rinfo 1638 drivers/video/fbdev/aty/radeon_base.c rinfo->pll.ref_clk); rinfo 1639 drivers/video/fbdev/aty/radeon_base.c regs->ppll_ref_div = rinfo->pll.ref_div; rinfo 1649 drivers/video/fbdev/aty/radeon_base.c struct radeonfb_info *rinfo = info->par; rinfo 1661 drivers/video/fbdev/aty/radeon_base.c int primary_mon = PRIMARY_MONITOR(rinfo); rinfo 1688 drivers/video/fbdev/aty/radeon_base.c if (rinfo->panel_info.xres < mode->xres) rinfo 1689 drivers/video/fbdev/aty/radeon_base.c mode->xres = rinfo->panel_info.xres; rinfo 1690 drivers/video/fbdev/aty/radeon_base.c if (rinfo->panel_info.yres < mode->yres) rinfo 1691 drivers/video/fbdev/aty/radeon_base.c mode->yres = rinfo->panel_info.yres; rinfo 1693 drivers/video/fbdev/aty/radeon_base.c hTotal = mode->xres + rinfo->panel_info.hblank; rinfo 1694 drivers/video/fbdev/aty/radeon_base.c hSyncStart = mode->xres + rinfo->panel_info.hOver_plus; rinfo 1695 drivers/video/fbdev/aty/radeon_base.c hSyncEnd = hSyncStart + rinfo->panel_info.hSync_width; rinfo 1697 drivers/video/fbdev/aty/radeon_base.c vTotal = mode->yres + rinfo->panel_info.vblank; rinfo 1698 drivers/video/fbdev/aty/radeon_base.c vSyncStart = mode->yres + rinfo->panel_info.vOver_plus; rinfo 1699 drivers/video/fbdev/aty/radeon_base.c vSyncEnd = vSyncStart + rinfo->panel_info.vSync_width; rinfo 1701 drivers/video/fbdev/aty/radeon_base.c h_sync_pol = !rinfo->panel_info.hAct_high; rinfo 1702 drivers/video/fbdev/aty/radeon_base.c v_sync_pol = !rinfo->panel_info.vAct_high; rinfo 1704 drivers/video/fbdev/aty/radeon_base.c pixClock = 100000000 / rinfo->panel_info.clock; rinfo 1706 drivers/video/fbdev/aty/radeon_base.c if (rinfo->panel_info.use_bios_dividers) { rinfo 1708 drivers/video/fbdev/aty/radeon_base.c newmode->ppll_div_3 = rinfo->panel_info.fbk_divider | rinfo 1709 drivers/video/fbdev/aty/radeon_base.c (rinfo->panel_info.post_divider << 16); rinfo 1710 drivers/video/fbdev/aty/radeon_base.c newmode->ppll_ref_div = rinfo->panel_info.ref_divider; rinfo 1752 drivers/video/fbdev/aty/radeon_base.c newmode->crtc_more_cntl = rinfo->init_state.crtc_more_cntl; rinfo 1784 drivers/video/fbdev/aty/radeon_base.c rinfo->pitch = ((mode->xres_virtual * ((mode->bits_per_pixel + 1) / 8) + 0x3f) rinfo 1788 drivers/video/fbdev/aty/radeon_base.c newmode->crtc_pitch = (rinfo->pitch << 3) / ((mode->bits_per_pixel + 1) / 8); rinfo 1832 drivers/video/fbdev/aty/radeon_base.c rinfo->bpp = mode->bits_per_pixel; rinfo 1833 drivers/video/fbdev/aty/radeon_base.c rinfo->depth = depth; rinfo 1843 drivers/video/fbdev/aty/radeon_base.c radeon_calc_pll_regs(rinfo, newmode, freq); rinfo 1845 drivers/video/fbdev/aty/radeon_base.c newmode->vclk_ecp_cntl = rinfo->init_state.vclk_ecp_cntl; rinfo 1850 drivers/video/fbdev/aty/radeon_base.c if (mode->xres > rinfo->panel_info.xres) rinfo 1851 drivers/video/fbdev/aty/radeon_base.c mode->xres = rinfo->panel_info.xres; rinfo 1852 drivers/video/fbdev/aty/radeon_base.c if (mode->yres > rinfo->panel_info.yres) rinfo 1853 drivers/video/fbdev/aty/radeon_base.c mode->yres = rinfo->panel_info.yres; rinfo 1855 drivers/video/fbdev/aty/radeon_base.c newmode->fp_horz_stretch = (((rinfo->panel_info.xres / 8) - 1) rinfo 1857 drivers/video/fbdev/aty/radeon_base.c newmode->fp_vert_stretch = ((rinfo->panel_info.yres - 1) rinfo 1860 drivers/video/fbdev/aty/radeon_base.c if (mode->xres != rinfo->panel_info.xres) { rinfo 1862 drivers/video/fbdev/aty/radeon_base.c rinfo->panel_info.xres); rinfo 1873 drivers/video/fbdev/aty/radeon_base.c if (mode->yres != rinfo->panel_info.yres) { rinfo 1875 drivers/video/fbdev/aty/radeon_base.c rinfo->panel_info.yres); rinfo 1885 drivers/video/fbdev/aty/radeon_base.c newmode->fp_gen_cntl = (rinfo->init_state.fp_gen_cntl & (u32) rinfo 1899 drivers/video/fbdev/aty/radeon_base.c if (IS_R300_VARIANT(rinfo) || rinfo 1900 drivers/video/fbdev/aty/radeon_base.c (rinfo->family == CHIP_FAMILY_R200)) { rinfo 1909 drivers/video/fbdev/aty/radeon_base.c newmode->lvds_gen_cntl = rinfo->init_state.lvds_gen_cntl; rinfo 1910 drivers/video/fbdev/aty/radeon_base.c newmode->lvds_pll_cntl = rinfo->init_state.lvds_pll_cntl; rinfo 1911 drivers/video/fbdev/aty/radeon_base.c newmode->tmds_crc = rinfo->init_state.tmds_crc; rinfo 1912 drivers/video/fbdev/aty/radeon_base.c newmode->tmds_transmitter_cntl = rinfo->init_state.tmds_transmitter_cntl; rinfo 1922 drivers/video/fbdev/aty/radeon_base.c if (IS_R300_VARIANT(rinfo) || rinfo 1923 drivers/video/fbdev/aty/radeon_base.c (rinfo->family == CHIP_FAMILY_R200) || !rinfo->has_CRTC2) rinfo 1930 drivers/video/fbdev/aty/radeon_base.c newmode->fp_crtc_h_total_disp = (((rinfo->panel_info.hblank / 8) & 0x3ff) | rinfo 1932 drivers/video/fbdev/aty/radeon_base.c newmode->fp_crtc_v_total_disp = (rinfo->panel_info.vblank & 0xffff) | rinfo 1934 drivers/video/fbdev/aty/radeon_base.c newmode->fp_h_sync_strt_wid = ((rinfo->panel_info.hOver_plus & 0x1fff) | rinfo 1936 drivers/video/fbdev/aty/radeon_base.c newmode->fp_v_sync_strt_wid = ((rinfo->panel_info.vOver_plus & 0xfff) | rinfo 1941 drivers/video/fbdev/aty/radeon_base.c if (!rinfo->asleep) { rinfo 1942 drivers/video/fbdev/aty/radeon_base.c memcpy(&rinfo->state, newmode, sizeof(*newmode)); rinfo 1943 drivers/video/fbdev/aty/radeon_base.c radeon_write_mode (rinfo, newmode, 0); rinfo 1946 drivers/video/fbdev/aty/radeon_base.c radeonfb_engine_init (rinfo); rinfo 1950 drivers/video/fbdev/aty/radeon_base.c info->fix.line_length = rinfo->pitch*64; rinfo 1954 drivers/video/fbdev/aty/radeon_base.c info->fix.visual = rinfo->depth == 8 ? FB_VISUAL_PSEUDOCOLOR rinfo 1959 drivers/video/fbdev/aty/radeon_base.c btext_update_display(rinfo->fb_base_phys, mode->xres, mode->yres, rinfo 1960 drivers/video/fbdev/aty/radeon_base.c rinfo->depth, info->fix.line_length); rinfo 1984 drivers/video/fbdev/aty/radeon_base.c static int radeon_set_fbinfo(struct radeonfb_info *rinfo) rinfo 1986 drivers/video/fbdev/aty/radeon_base.c struct fb_info *info = rinfo->info; rinfo 1988 drivers/video/fbdev/aty/radeon_base.c info->par = rinfo; rinfo 1989 drivers/video/fbdev/aty/radeon_base.c info->pseudo_palette = rinfo->pseudo_palette; rinfo 1996 drivers/video/fbdev/aty/radeon_base.c info->screen_base = rinfo->fb_base; rinfo 1997 drivers/video/fbdev/aty/radeon_base.c info->screen_size = rinfo->mapped_vram; rinfo 1999 drivers/video/fbdev/aty/radeon_base.c strlcpy(info->fix.id, rinfo->name, sizeof(info->fix.id)); rinfo 2000 drivers/video/fbdev/aty/radeon_base.c info->fix.smem_start = rinfo->fb_base_phys; rinfo 2001 drivers/video/fbdev/aty/radeon_base.c info->fix.smem_len = rinfo->video_ram; rinfo 2008 drivers/video/fbdev/aty/radeon_base.c info->fix.mmio_start = rinfo->mmio_base_phys; rinfo 2033 drivers/video/fbdev/aty/radeon_base.c static void fixup_memory_mappings(struct radeonfb_info *rinfo) rinfo 2041 drivers/video/fbdev/aty/radeon_base.c if (rinfo->has_CRTC2) { rinfo 2059 drivers/video/fbdev/aty/radeon_base.c rinfo->fb_local_base = aper_base; rinfo 2062 drivers/video/fbdev/aty/radeon_base.c rinfo->fb_local_base = 0; rinfo 2083 drivers/video/fbdev/aty/radeon_base.c if (rinfo->has_CRTC2) rinfo 2088 drivers/video/fbdev/aty/radeon_base.c if (rinfo->has_CRTC2) rinfo 2097 drivers/video/fbdev/aty/radeon_base.c if (rinfo->has_CRTC2) rinfo 2108 drivers/video/fbdev/aty/radeon_base.c static void radeon_identify_vram(struct radeonfb_info *rinfo) rinfo 2113 drivers/video/fbdev/aty/radeon_base.c if ((rinfo->family == CHIP_FAMILY_RS100) || rinfo 2114 drivers/video/fbdev/aty/radeon_base.c (rinfo->family == CHIP_FAMILY_RS200) || rinfo 2115 drivers/video/fbdev/aty/radeon_base.c (rinfo->family == CHIP_FAMILY_RS300) || rinfo 2116 drivers/video/fbdev/aty/radeon_base.c (rinfo->family == CHIP_FAMILY_RC410) || rinfo 2117 drivers/video/fbdev/aty/radeon_base.c (rinfo->family == CHIP_FAMILY_RS400) || rinfo 2118 drivers/video/fbdev/aty/radeon_base.c (rinfo->family == CHIP_FAMILY_RS480) ) { rinfo 2131 drivers/video/fbdev/aty/radeon_base.c if ((rinfo->family == CHIP_FAMILY_RS100) || rinfo 2132 drivers/video/fbdev/aty/radeon_base.c (rinfo->family == CHIP_FAMILY_RS200)) { rinfo 2144 drivers/video/fbdev/aty/radeon_base.c rinfo->video_ram = tmp & CNFG_MEMSIZE_MASK; rinfo 2150 drivers/video/fbdev/aty/radeon_base.c if (rinfo->video_ram == 0) { rinfo 2151 drivers/video/fbdev/aty/radeon_base.c switch (rinfo->pdev->device) { rinfo 2154 drivers/video/fbdev/aty/radeon_base.c rinfo->video_ram = 8192 * 1024; rinfo 2165 drivers/video/fbdev/aty/radeon_base.c if (rinfo->is_IGP || (rinfo->family >= CHIP_FAMILY_R300) || rinfo 2167 drivers/video/fbdev/aty/radeon_base.c rinfo->vram_ddr = 1; rinfo 2169 drivers/video/fbdev/aty/radeon_base.c rinfo->vram_ddr = 0; rinfo 2172 drivers/video/fbdev/aty/radeon_base.c if (IS_R300_VARIANT(rinfo)) { rinfo 2175 drivers/video/fbdev/aty/radeon_base.c case 0: rinfo->vram_width = 64; break; rinfo 2176 drivers/video/fbdev/aty/radeon_base.c case 1: rinfo->vram_width = 128; break; rinfo 2177 drivers/video/fbdev/aty/radeon_base.c case 2: rinfo->vram_width = 256; break; rinfo 2178 drivers/video/fbdev/aty/radeon_base.c default: rinfo->vram_width = 128; break; rinfo 2180 drivers/video/fbdev/aty/radeon_base.c } else if ((rinfo->family == CHIP_FAMILY_RV100) || rinfo 2181 drivers/video/fbdev/aty/radeon_base.c (rinfo->family == CHIP_FAMILY_RS100) || rinfo 2182 drivers/video/fbdev/aty/radeon_base.c (rinfo->family == CHIP_FAMILY_RS200)){ rinfo 2184 drivers/video/fbdev/aty/radeon_base.c rinfo->vram_width = 32; rinfo 2186 drivers/video/fbdev/aty/radeon_base.c rinfo->vram_width = 64; rinfo 2189 drivers/video/fbdev/aty/radeon_base.c rinfo->vram_width = 128; rinfo 2191 drivers/video/fbdev/aty/radeon_base.c rinfo->vram_width = 64; rinfo 2199 drivers/video/fbdev/aty/radeon_base.c pci_name(rinfo->pdev), rinfo 2200 drivers/video/fbdev/aty/radeon_base.c rinfo->video_ram / 1024, rinfo 2201 drivers/video/fbdev/aty/radeon_base.c rinfo->vram_ddr ? "DDR" : "SDRAM", rinfo 2202 drivers/video/fbdev/aty/radeon_base.c rinfo->vram_width); rinfo 2221 drivers/video/fbdev/aty/radeon_base.c struct radeonfb_info *rinfo = info->par; rinfo 2223 drivers/video/fbdev/aty/radeon_base.c return radeon_show_one_edid(buf, off, count, rinfo->mon1_EDID); rinfo 2233 drivers/video/fbdev/aty/radeon_base.c struct radeonfb_info *rinfo = info->par; rinfo 2235 drivers/video/fbdev/aty/radeon_base.c return radeon_show_one_edid(buf, off, count, rinfo->mon2_EDID); rinfo 2278 drivers/video/fbdev/aty/radeon_base.c struct radeonfb_info *rinfo; rinfo 2298 drivers/video/fbdev/aty/radeon_base.c rinfo = info->par; rinfo 2299 drivers/video/fbdev/aty/radeon_base.c rinfo->info = info; rinfo 2300 drivers/video/fbdev/aty/radeon_base.c rinfo->pdev = pdev; rinfo 2302 drivers/video/fbdev/aty/radeon_base.c spin_lock_init(&rinfo->reg_lock); rinfo 2303 drivers/video/fbdev/aty/radeon_base.c timer_setup(&rinfo->lvds_timer, radeon_lvds_timer_func, 0); rinfo 2308 drivers/video/fbdev/aty/radeon_base.c snprintf(rinfo->name, sizeof(rinfo->name), rinfo 2311 drivers/video/fbdev/aty/radeon_base.c snprintf(rinfo->name, sizeof(rinfo->name), rinfo 2314 drivers/video/fbdev/aty/radeon_base.c rinfo->family = ent->driver_data & CHIP_FAMILY_MASK; rinfo 2315 drivers/video/fbdev/aty/radeon_base.c rinfo->chipset = pdev->device; rinfo 2316 drivers/video/fbdev/aty/radeon_base.c rinfo->has_CRTC2 = (ent->driver_data & CHIP_HAS_CRTC2) != 0; rinfo 2317 drivers/video/fbdev/aty/radeon_base.c rinfo->is_mobility = (ent->driver_data & CHIP_IS_MOBILITY) != 0; rinfo 2318 drivers/video/fbdev/aty/radeon_base.c rinfo->is_IGP = (ent->driver_data & CHIP_IS_IGP) != 0; rinfo 2321 drivers/video/fbdev/aty/radeon_base.c rinfo->fb_base_phys = pci_resource_start (pdev, 0); rinfo 2322 drivers/video/fbdev/aty/radeon_base.c rinfo->mmio_base_phys = pci_resource_start (pdev, 2); rinfo 2332 drivers/video/fbdev/aty/radeon_base.c pci_name(rinfo->pdev)); rinfo 2339 drivers/video/fbdev/aty/radeon_base.c pci_name(rinfo->pdev)); rinfo 2344 drivers/video/fbdev/aty/radeon_base.c rinfo->mmio_base = ioremap(rinfo->mmio_base_phys, RADEON_REGSIZE); rinfo 2345 drivers/video/fbdev/aty/radeon_base.c if (!rinfo->mmio_base) { rinfo 2347 drivers/video/fbdev/aty/radeon_base.c pci_name(rinfo->pdev)); rinfo 2352 drivers/video/fbdev/aty/radeon_base.c rinfo->fb_local_base = INREG(MC_FB_LOCATION) << 16; rinfo 2357 drivers/video/fbdev/aty/radeon_base.c rinfo->errata = 0; rinfo 2358 drivers/video/fbdev/aty/radeon_base.c if (rinfo->family == CHIP_FAMILY_R300 && rinfo 2361 drivers/video/fbdev/aty/radeon_base.c rinfo->errata |= CHIP_ERRATA_R300_CG; rinfo 2363 drivers/video/fbdev/aty/radeon_base.c if (rinfo->family == CHIP_FAMILY_RV200 || rinfo 2364 drivers/video/fbdev/aty/radeon_base.c rinfo->family == CHIP_FAMILY_RS200) rinfo 2365 drivers/video/fbdev/aty/radeon_base.c rinfo->errata |= CHIP_ERRATA_PLL_DUMMYREADS; rinfo 2367 drivers/video/fbdev/aty/radeon_base.c if (rinfo->family == CHIP_FAMILY_RV100 || rinfo 2368 drivers/video/fbdev/aty/radeon_base.c rinfo->family == CHIP_FAMILY_RS100 || rinfo 2369 drivers/video/fbdev/aty/radeon_base.c rinfo->family == CHIP_FAMILY_RS200) rinfo 2370 drivers/video/fbdev/aty/radeon_base.c rinfo->errata |= CHIP_ERRATA_PLL_DELAY; rinfo 2376 drivers/video/fbdev/aty/radeon_base.c rinfo->of_node = pci_device_to_OF_node(pdev); rinfo 2377 drivers/video/fbdev/aty/radeon_base.c if (rinfo->of_node == NULL) rinfo 2379 drivers/video/fbdev/aty/radeon_base.c pci_name(rinfo->pdev)); rinfo 2387 drivers/video/fbdev/aty/radeon_base.c fixup_memory_mappings(rinfo); rinfo 2391 drivers/video/fbdev/aty/radeon_base.c radeon_identify_vram(rinfo); rinfo 2393 drivers/video/fbdev/aty/radeon_base.c rinfo->mapped_vram = min_t(unsigned long, MAX_MAPPED_VRAM, rinfo->video_ram); rinfo 2396 drivers/video/fbdev/aty/radeon_base.c rinfo->fb_base = ioremap_wc(rinfo->fb_base_phys, rinfo 2397 drivers/video/fbdev/aty/radeon_base.c rinfo->mapped_vram); rinfo 2398 drivers/video/fbdev/aty/radeon_base.c } while (rinfo->fb_base == NULL && rinfo 2399 drivers/video/fbdev/aty/radeon_base.c ((rinfo->mapped_vram /= 2) >= MIN_MAPPED_VRAM)); rinfo 2401 drivers/video/fbdev/aty/radeon_base.c if (rinfo->fb_base == NULL) { rinfo 2403 drivers/video/fbdev/aty/radeon_base.c pci_name(rinfo->pdev)); rinfo 2408 drivers/video/fbdev/aty/radeon_base.c pr_debug("radeonfb (%s): mapped %ldk videoram\n", pci_name(rinfo->pdev), rinfo 2409 drivers/video/fbdev/aty/radeon_base.c rinfo->mapped_vram/1024); rinfo 2422 drivers/video/fbdev/aty/radeon_base.c if (!rinfo->is_mobility) rinfo 2423 drivers/video/fbdev/aty/radeon_base.c radeon_map_ROM(rinfo, pdev); rinfo 2432 drivers/video/fbdev/aty/radeon_base.c if (rinfo->bios_seg == NULL) rinfo 2433 drivers/video/fbdev/aty/radeon_base.c radeon_find_mem_vbios(rinfo); rinfo 2439 drivers/video/fbdev/aty/radeon_base.c if (rinfo->bios_seg == NULL && rinfo->is_mobility) rinfo 2440 drivers/video/fbdev/aty/radeon_base.c radeon_map_ROM(rinfo, pdev); rinfo 2443 drivers/video/fbdev/aty/radeon_base.c radeon_get_pllinfo(rinfo); rinfo 2447 drivers/video/fbdev/aty/radeon_base.c radeon_create_i2c_busses(rinfo); rinfo 2451 drivers/video/fbdev/aty/radeon_base.c radeon_set_fbinfo (rinfo); rinfo 2454 drivers/video/fbdev/aty/radeon_base.c radeon_probe_screens(rinfo, monitor_layout, ignore_edid); rinfo 2457 drivers/video/fbdev/aty/radeon_base.c radeon_check_modes(rinfo, mode_option); rinfo 2460 drivers/video/fbdev/aty/radeon_base.c if (rinfo->mon1_EDID) rinfo 2461 drivers/video/fbdev/aty/radeon_base.c err |= sysfs_create_bin_file(&rinfo->pdev->dev.kobj, rinfo 2463 drivers/video/fbdev/aty/radeon_base.c if (rinfo->mon2_EDID) rinfo 2464 drivers/video/fbdev/aty/radeon_base.c err |= sysfs_create_bin_file(&rinfo->pdev->dev.kobj, rinfo 2473 drivers/video/fbdev/aty/radeon_base.c radeon_save_state (rinfo, &rinfo->init_state); rinfo 2474 drivers/video/fbdev/aty/radeon_base.c memcpy(&rinfo->state, &rinfo->init_state, sizeof(struct radeon_regs)); rinfo 2481 drivers/video/fbdev/aty/radeon_base.c radeonfb_pm_init(rinfo, rinfo->is_mobility ? 1 : -1, ignore_devlist, force_sleep); rinfo 2483 drivers/video/fbdev/aty/radeon_base.c radeonfb_pm_init(rinfo, default_dynclk, ignore_devlist, force_sleep); rinfo 2491 drivers/video/fbdev/aty/radeon_base.c pci_name(rinfo->pdev)); rinfo 2496 drivers/video/fbdev/aty/radeon_base.c rinfo->wc_cookie = arch_phys_wc_add(rinfo->fb_base_phys, rinfo 2497 drivers/video/fbdev/aty/radeon_base.c rinfo->video_ram); rinfo 2500 drivers/video/fbdev/aty/radeon_base.c radeonfb_bl_init(rinfo); rinfo 2502 drivers/video/fbdev/aty/radeon_base.c printk ("radeonfb (%s): %s\n", pci_name(rinfo->pdev), rinfo->name); rinfo 2504 drivers/video/fbdev/aty/radeon_base.c if (rinfo->bios_seg) rinfo 2505 drivers/video/fbdev/aty/radeon_base.c radeon_unmap_ROM(rinfo, pdev); rinfo 2510 drivers/video/fbdev/aty/radeon_base.c iounmap(rinfo->fb_base); rinfo 2512 drivers/video/fbdev/aty/radeon_base.c kfree(rinfo->mon1_EDID); rinfo 2513 drivers/video/fbdev/aty/radeon_base.c kfree(rinfo->mon2_EDID); rinfo 2514 drivers/video/fbdev/aty/radeon_base.c if (rinfo->mon1_modedb) rinfo 2515 drivers/video/fbdev/aty/radeon_base.c fb_destroy_modedb(rinfo->mon1_modedb); rinfo 2518 drivers/video/fbdev/aty/radeon_base.c radeon_delete_i2c_busses(rinfo); rinfo 2520 drivers/video/fbdev/aty/radeon_base.c if (rinfo->bios_seg) rinfo 2521 drivers/video/fbdev/aty/radeon_base.c radeon_unmap_ROM(rinfo, pdev); rinfo 2522 drivers/video/fbdev/aty/radeon_base.c iounmap(rinfo->mmio_base); rinfo 2539 drivers/video/fbdev/aty/radeon_base.c struct radeonfb_info *rinfo = info->par; rinfo 2541 drivers/video/fbdev/aty/radeon_base.c if (!rinfo) rinfo 2544 drivers/video/fbdev/aty/radeon_base.c radeonfb_pm_exit(rinfo); rinfo 2546 drivers/video/fbdev/aty/radeon_base.c if (rinfo->mon1_EDID) rinfo 2547 drivers/video/fbdev/aty/radeon_base.c sysfs_remove_bin_file(&rinfo->pdev->dev.kobj, &edid1_attr); rinfo 2548 drivers/video/fbdev/aty/radeon_base.c if (rinfo->mon2_EDID) rinfo 2549 drivers/video/fbdev/aty/radeon_base.c sysfs_remove_bin_file(&rinfo->pdev->dev.kobj, &edid2_attr); rinfo 2558 drivers/video/fbdev/aty/radeon_base.c radeon_write_mode (rinfo, &rinfo->init_state, 1); rinfo 2561 drivers/video/fbdev/aty/radeon_base.c del_timer_sync(&rinfo->lvds_timer); rinfo 2562 drivers/video/fbdev/aty/radeon_base.c arch_phys_wc_del(rinfo->wc_cookie); rinfo 2565 drivers/video/fbdev/aty/radeon_base.c radeonfb_bl_exit(rinfo); rinfo 2567 drivers/video/fbdev/aty/radeon_base.c iounmap(rinfo->mmio_base); rinfo 2568 drivers/video/fbdev/aty/radeon_base.c iounmap(rinfo->fb_base); rinfo 2573 drivers/video/fbdev/aty/radeon_base.c kfree(rinfo->mon1_EDID); rinfo 2574 drivers/video/fbdev/aty/radeon_base.c kfree(rinfo->mon2_EDID); rinfo 2575 drivers/video/fbdev/aty/radeon_base.c if (rinfo->mon1_modedb) rinfo 2576 drivers/video/fbdev/aty/radeon_base.c fb_destroy_modedb(rinfo->mon1_modedb); rinfo 2578 drivers/video/fbdev/aty/radeon_base.c radeon_delete_i2c_busses(rinfo); rinfo 21 drivers/video/fbdev/aty/radeon_i2c.c struct radeonfb_info *rinfo = chan->rinfo; rinfo 35 drivers/video/fbdev/aty/radeon_i2c.c struct radeonfb_info *rinfo = chan->rinfo; rinfo 49 drivers/video/fbdev/aty/radeon_i2c.c struct radeonfb_info *rinfo = chan->rinfo; rinfo 60 drivers/video/fbdev/aty/radeon_i2c.c struct radeonfb_info *rinfo = chan->rinfo; rinfo 76 drivers/video/fbdev/aty/radeon_i2c.c chan->adapter.dev.parent = &chan->rinfo->pdev->dev; rinfo 94 drivers/video/fbdev/aty/radeon_i2c.c dev_dbg(&chan->rinfo->pdev->dev, "I2C bus %s registered.\n", name); rinfo 96 drivers/video/fbdev/aty/radeon_i2c.c dev_warn(&chan->rinfo->pdev->dev, "Failed to register I2C bus %s.\n", name); rinfo 100 drivers/video/fbdev/aty/radeon_i2c.c void radeon_create_i2c_busses(struct radeonfb_info *rinfo) rinfo 102 drivers/video/fbdev/aty/radeon_i2c.c rinfo->i2c[0].rinfo = rinfo; rinfo 103 drivers/video/fbdev/aty/radeon_i2c.c rinfo->i2c[0].ddc_reg = GPIO_MONID; rinfo 105 drivers/video/fbdev/aty/radeon_i2c.c rinfo->i2c[0].adapter.class = I2C_CLASS_HWMON; rinfo 107 drivers/video/fbdev/aty/radeon_i2c.c radeon_setup_i2c_bus(&rinfo->i2c[0], "monid"); rinfo 109 drivers/video/fbdev/aty/radeon_i2c.c rinfo->i2c[1].rinfo = rinfo; rinfo 110 drivers/video/fbdev/aty/radeon_i2c.c rinfo->i2c[1].ddc_reg = GPIO_DVI_DDC; rinfo 111 drivers/video/fbdev/aty/radeon_i2c.c radeon_setup_i2c_bus(&rinfo->i2c[1], "dvi"); rinfo 113 drivers/video/fbdev/aty/radeon_i2c.c rinfo->i2c[2].rinfo = rinfo; rinfo 114 drivers/video/fbdev/aty/radeon_i2c.c rinfo->i2c[2].ddc_reg = GPIO_VGA_DDC; rinfo 115 drivers/video/fbdev/aty/radeon_i2c.c radeon_setup_i2c_bus(&rinfo->i2c[2], "vga"); rinfo 117 drivers/video/fbdev/aty/radeon_i2c.c rinfo->i2c[3].rinfo = rinfo; rinfo 118 drivers/video/fbdev/aty/radeon_i2c.c rinfo->i2c[3].ddc_reg = GPIO_CRT2_DDC; rinfo 119 drivers/video/fbdev/aty/radeon_i2c.c radeon_setup_i2c_bus(&rinfo->i2c[3], "crt2"); rinfo 122 drivers/video/fbdev/aty/radeon_i2c.c void radeon_delete_i2c_busses(struct radeonfb_info *rinfo) rinfo 124 drivers/video/fbdev/aty/radeon_i2c.c if (rinfo->i2c[0].rinfo) rinfo 125 drivers/video/fbdev/aty/radeon_i2c.c i2c_del_adapter(&rinfo->i2c[0].adapter); rinfo 126 drivers/video/fbdev/aty/radeon_i2c.c rinfo->i2c[0].rinfo = NULL; rinfo 128 drivers/video/fbdev/aty/radeon_i2c.c if (rinfo->i2c[1].rinfo) rinfo 129 drivers/video/fbdev/aty/radeon_i2c.c i2c_del_adapter(&rinfo->i2c[1].adapter); rinfo 130 drivers/video/fbdev/aty/radeon_i2c.c rinfo->i2c[1].rinfo = NULL; rinfo 132 drivers/video/fbdev/aty/radeon_i2c.c if (rinfo->i2c[2].rinfo) rinfo 133 drivers/video/fbdev/aty/radeon_i2c.c i2c_del_adapter(&rinfo->i2c[2].adapter); rinfo 134 drivers/video/fbdev/aty/radeon_i2c.c rinfo->i2c[2].rinfo = NULL; rinfo 136 drivers/video/fbdev/aty/radeon_i2c.c if (rinfo->i2c[3].rinfo) rinfo 137 drivers/video/fbdev/aty/radeon_i2c.c i2c_del_adapter(&rinfo->i2c[3].adapter); rinfo 138 drivers/video/fbdev/aty/radeon_i2c.c rinfo->i2c[3].rinfo = NULL; rinfo 141 drivers/video/fbdev/aty/radeon_i2c.c int radeon_probe_i2c_connector(struct radeonfb_info *rinfo, int conn, rinfo 146 drivers/video/fbdev/aty/radeon_i2c.c edid = fb_ddc_read(&rinfo->i2c[conn-1].adapter); rinfo 156 drivers/video/fbdev/aty/radeon_i2c.c if (rinfo->is_mobility /*&& conn == ddc_dvi*/ && rinfo 119 drivers/video/fbdev/aty/radeon_monitor.c static int radeon_probe_OF_head(struct radeonfb_info *rinfo, int head_no, rinfo 126 drivers/video/fbdev/aty/radeon_monitor.c dp = rinfo->of_node; rinfo 130 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->has_CRTC2) { rinfo 149 drivers/video/fbdev/aty/radeon_monitor.c if (mt == MT_DFP && rinfo->is_mobility) rinfo 167 drivers/video/fbdev/aty/radeon_monitor.c static int radeon_get_panel_info_BIOS(struct radeonfb_info *rinfo) rinfo 173 drivers/video/fbdev/aty/radeon_monitor.c if (!rinfo->bios_seg) rinfo 176 drivers/video/fbdev/aty/radeon_monitor.c if (!(tmp = BIOS_IN16(rinfo->fp_bios_start + 0x40))) { rinfo 178 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.pwr_delay = 200; rinfo 186 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.xres = BIOS_IN16(tmp + 25); rinfo 187 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.yres = BIOS_IN16(tmp + 27); rinfo 189 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.xres, rinfo->panel_info.yres); rinfo 191 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.pwr_delay = BIOS_IN16(tmp + 44); rinfo 192 drivers/video/fbdev/aty/radeon_monitor.c pr_debug("BIOS provided panel power delay: %d\n", rinfo->panel_info.pwr_delay); rinfo 193 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->panel_info.pwr_delay > 2000 || rinfo->panel_info.pwr_delay <= 0) rinfo 194 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.pwr_delay = 2000; rinfo 199 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.ref_divider = BIOS_IN16(tmp + 46); rinfo 200 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.post_divider = BIOS_IN8(tmp + 48); rinfo 201 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.fbk_divider = BIOS_IN16(tmp + 49); rinfo 202 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->panel_info.ref_divider != 0 && rinfo 203 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.fbk_divider > 3) { rinfo 204 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.use_bios_dividers = 1; rinfo 206 drivers/video/fbdev/aty/radeon_monitor.c pr_debug("ref_divider = %x\n", rinfo->panel_info.ref_divider); rinfo 207 drivers/video/fbdev/aty/radeon_monitor.c pr_debug("post_divider = %x\n", rinfo->panel_info.post_divider); rinfo 208 drivers/video/fbdev/aty/radeon_monitor.c pr_debug("fbk_divider = %x\n", rinfo->panel_info.fbk_divider); rinfo 216 drivers/video/fbdev/aty/radeon_monitor.c if ((BIOS_IN16(tmp0) == rinfo->panel_info.xres) && rinfo 217 drivers/video/fbdev/aty/radeon_monitor.c (BIOS_IN16(tmp0+2) == rinfo->panel_info.yres)) { rinfo 218 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.hblank = (BIOS_IN16(tmp0+17) - BIOS_IN16(tmp0+19)) * 8; rinfo 219 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.hOver_plus = ((BIOS_IN16(tmp0+21) - rinfo 221 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.hSync_width = BIOS_IN8(tmp0+23) * 8; rinfo 222 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.vblank = BIOS_IN16(tmp0+24) - BIOS_IN16(tmp0+26); rinfo 223 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.vOver_plus = (BIOS_IN16(tmp0+28) & 0x7ff) - BIOS_IN16(tmp0+26); rinfo 224 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.vSync_width = (BIOS_IN16(tmp0+28) & 0xf800) >> 11; rinfo 225 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.clock = BIOS_IN16(tmp0+9); rinfo 229 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.hAct_high = 1; rinfo 230 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.vAct_high = 1; rinfo 232 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.valid = 1; rinfo 235 drivers/video/fbdev/aty/radeon_monitor.c pr_debug(" hblank: %d\n", rinfo->panel_info.hblank); rinfo 236 drivers/video/fbdev/aty/radeon_monitor.c pr_debug(" hOver_plus: %d\n", rinfo->panel_info.hOver_plus); rinfo 237 drivers/video/fbdev/aty/radeon_monitor.c pr_debug(" hSync_width: %d\n", rinfo->panel_info.hSync_width); rinfo 238 drivers/video/fbdev/aty/radeon_monitor.c pr_debug(" vblank: %d\n", rinfo->panel_info.vblank); rinfo 239 drivers/video/fbdev/aty/radeon_monitor.c pr_debug(" vOver_plus: %d\n", rinfo->panel_info.vOver_plus); rinfo 240 drivers/video/fbdev/aty/radeon_monitor.c pr_debug(" vSync_width: %d\n", rinfo->panel_info.vSync_width); rinfo 241 drivers/video/fbdev/aty/radeon_monitor.c pr_debug(" clock: %d\n", rinfo->panel_info.clock); rinfo 255 drivers/video/fbdev/aty/radeon_monitor.c static void radeon_parse_connector_info(struct radeonfb_info *rinfo) rinfo 265 drivers/video/fbdev/aty/radeon_monitor.c if (!rinfo->bios_seg) rinfo 268 drivers/video/fbdev/aty/radeon_monitor.c offset = BIOS_IN16(rinfo->fp_bios_start + 0x50); rinfo 301 drivers/video/fbdev/aty/radeon_monitor.c static int radeon_crt_is_connected(struct radeonfb_info *rinfo, int is_crt_dac) rinfo 336 drivers/video/fbdev/aty/radeon_monitor.c if ((rinfo->family == CHIP_FAMILY_RV250) || rinfo 337 drivers/video/fbdev/aty/radeon_monitor.c (rinfo->family == CHIP_FAMILY_RV280)) rinfo 373 drivers/video/fbdev/aty/radeon_monitor.c static int radeon_parse_monitor_layout(struct radeonfb_info *rinfo, rinfo 415 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = MT_CRT; rinfo 417 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = MT_DFP; rinfo 419 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = MT_LCD; rinfo 422 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon2_type = MT_CRT; rinfo 424 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon2_type = MT_DFP; rinfo 426 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon2_type = MT_LCD; rinfo 437 drivers/video/fbdev/aty/radeon_monitor.c void radeon_probe_screens(struct radeonfb_info *rinfo, rinfo 445 drivers/video/fbdev/aty/radeon_monitor.c radeon_parse_connector_info(rinfo); rinfo 447 drivers/video/fbdev/aty/radeon_monitor.c if (radeon_parse_monitor_layout(rinfo, monitor_layout)) { rinfo 459 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_type != MT_NONE) rinfo 460 drivers/video/fbdev/aty/radeon_monitor.c if (!radeon_probe_i2c_connector(rinfo, ddc_dvi, &rinfo->mon1_EDID)) { rinfo 461 drivers/video/fbdev/aty/radeon_monitor.c radeon_probe_i2c_connector(rinfo, ddc_crt2, &rinfo->mon1_EDID); rinfo 464 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon2_type != MT_NONE) rinfo 465 drivers/video/fbdev/aty/radeon_monitor.c if (!radeon_probe_i2c_connector(rinfo, ddc_vga, &rinfo->mon2_EDID) && rinfo 467 drivers/video/fbdev/aty/radeon_monitor.c radeon_probe_i2c_connector(rinfo, ddc_crt2, &rinfo->mon2_EDID); rinfo 470 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_type == MT_NONE) { rinfo 471 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon2_type != MT_NONE) { rinfo 472 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = rinfo->mon2_type; rinfo 473 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_EDID = rinfo->mon2_EDID; rinfo 475 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = MT_CRT; rinfo 478 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon2_type = MT_NONE; rinfo 479 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon2_EDID = NULL; rinfo 495 drivers/video/fbdev/aty/radeon_monitor.c mon_types[i] = radeon_probe_i2c_connector(rinfo, rinfo 502 drivers/video/fbdev/aty/radeon_monitor.c if (!rinfo->has_CRTC2) { rinfo 504 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_type == MT_NONE) rinfo 505 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = radeon_probe_OF_head(rinfo, 0, rinfo 506 drivers/video/fbdev/aty/radeon_monitor.c &rinfo->mon1_EDID); rinfo 509 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_type == MT_NONE) rinfo 510 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = rinfo 511 drivers/video/fbdev/aty/radeon_monitor.c radeon_probe_i2c_connector(rinfo, ddc_dvi, rinfo 512 drivers/video/fbdev/aty/radeon_monitor.c &rinfo->mon1_EDID); rinfo 513 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_type == MT_NONE) rinfo 514 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = rinfo 515 drivers/video/fbdev/aty/radeon_monitor.c radeon_probe_i2c_connector(rinfo, ddc_vga, rinfo 516 drivers/video/fbdev/aty/radeon_monitor.c &rinfo->mon1_EDID); rinfo 517 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_type == MT_NONE) rinfo 518 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = rinfo 519 drivers/video/fbdev/aty/radeon_monitor.c radeon_probe_i2c_connector(rinfo, ddc_crt2, rinfo 520 drivers/video/fbdev/aty/radeon_monitor.c &rinfo->mon1_EDID); rinfo 522 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_type == MT_NONE) rinfo 523 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = MT_CRT; rinfo 530 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->bios_seg && rinfo 531 drivers/video/fbdev/aty/radeon_monitor.c (tmp = BIOS_IN16(rinfo->fp_bios_start + 0x50))) { rinfo 539 drivers/video/fbdev/aty/radeon_monitor.c rinfo->reversed_DAC = 1; rinfo 543 drivers/video/fbdev/aty/radeon_monitor.c rinfo->reversed_TMDS = 1; rinfo 553 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_type == MT_NONE) rinfo 554 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = radeon_probe_OF_head(rinfo, 0, rinfo 555 drivers/video/fbdev/aty/radeon_monitor.c &rinfo->mon1_EDID); rinfo 558 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_type == MT_NONE) rinfo 559 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = radeon_probe_i2c_connector(rinfo, ddc_dvi, rinfo 560 drivers/video/fbdev/aty/radeon_monitor.c &rinfo->mon1_EDID); rinfo 561 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_type == MT_NONE) { rinfo 562 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = radeon_probe_i2c_connector(rinfo, ddc_crt2, rinfo 563 drivers/video/fbdev/aty/radeon_monitor.c &rinfo->mon1_EDID); rinfo 564 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_type != MT_NONE) rinfo 568 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_type == MT_NONE && rinfo->is_mobility && rinfo 569 drivers/video/fbdev/aty/radeon_monitor.c ((rinfo->bios_seg && (INREG(BIOS_4_SCRATCH) & 4)) rinfo 571 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = MT_LCD; rinfo 574 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_type == MT_NONE) rinfo 575 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = radeon_crt_is_connected(rinfo, rinfo->reversed_DAC); rinfo 581 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon2_type == MT_NONE) rinfo 582 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon2_type = radeon_probe_OF_head(rinfo, 1, rinfo 583 drivers/video/fbdev/aty/radeon_monitor.c &rinfo->mon2_EDID); rinfo 586 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon2_type == MT_NONE) rinfo 587 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon2_type = radeon_probe_i2c_connector(rinfo, ddc_vga, rinfo 588 drivers/video/fbdev/aty/radeon_monitor.c &rinfo->mon2_EDID); rinfo 589 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon2_type == MT_NONE && !ddc_crt2_used) rinfo 590 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon2_type = radeon_probe_i2c_connector(rinfo, ddc_crt2, rinfo 591 drivers/video/fbdev/aty/radeon_monitor.c &rinfo->mon2_EDID); rinfo 593 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon2_type == MT_NONE) rinfo 594 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon2_type = radeon_crt_is_connected(rinfo, !rinfo->reversed_DAC); rinfo 601 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_type == MT_NONE) { rinfo 602 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon2_type != MT_NONE) { rinfo 603 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = rinfo->mon2_type; rinfo 604 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_EDID = rinfo->mon2_EDID; rinfo 606 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = MT_CRT; rinfo 607 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon2_type = MT_NONE; rinfo 608 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon2_EDID = NULL; rinfo 614 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->reversed_TMDS) { rinfo 616 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_type == MT_DFP || rinfo->mon2_type == MT_DFP) { rinfo 617 drivers/video/fbdev/aty/radeon_monitor.c int tmp_type = rinfo->mon1_type; rinfo 618 drivers/video/fbdev/aty/radeon_monitor.c u8 *tmp_EDID = rinfo->mon1_EDID; rinfo 619 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = rinfo->mon2_type; rinfo 620 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_EDID = rinfo->mon2_EDID; rinfo 621 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon2_type = tmp_type; rinfo 622 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon2_EDID = tmp_EDID; rinfo 623 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_type == MT_CRT || rinfo->mon2_type == MT_CRT) rinfo 624 drivers/video/fbdev/aty/radeon_monitor.c rinfo->reversed_DAC ^= 1; rinfo 629 drivers/video/fbdev/aty/radeon_monitor.c kfree(rinfo->mon1_EDID); rinfo 630 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_EDID = NULL; rinfo 631 drivers/video/fbdev/aty/radeon_monitor.c kfree(rinfo->mon2_EDID); rinfo 632 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon2_EDID = NULL; rinfo 637 drivers/video/fbdev/aty/radeon_monitor.c radeon_get_mon_name(rinfo->mon1_type)); rinfo 638 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_EDID) rinfo 640 drivers/video/fbdev/aty/radeon_monitor.c if (!rinfo->has_CRTC2) rinfo 643 drivers/video/fbdev/aty/radeon_monitor.c radeon_get_mon_name(rinfo->mon2_type)); rinfo 644 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon2_EDID) rinfo 655 drivers/video/fbdev/aty/radeon_monitor.c static void radeon_fixup_panel_info(struct radeonfb_info *rinfo) rinfo 662 drivers/video/fbdev/aty/radeon_monitor.c if (!rinfo->panel_info.use_bios_dividers && rinfo->mon1_type == MT_LCD rinfo 663 drivers/video/fbdev/aty/radeon_monitor.c && rinfo->is_mobility) { rinfo 667 drivers/video/fbdev/aty/radeon_monitor.c radeon_pll_errata_after_index(rinfo); rinfo 669 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.ref_divider = rinfo->pll.ref_div; rinfo 670 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.fbk_divider = ppll_divn & 0x7ff; rinfo 671 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.post_divider = (ppll_divn >> 16) & 0x7; rinfo 672 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.use_bios_dividers = 1; rinfo 676 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.fbk_divider | rinfo 677 drivers/video/fbdev/aty/radeon_monitor.c (rinfo->panel_info.post_divider << 16), rinfo 688 drivers/video/fbdev/aty/radeon_monitor.c static void radeon_var_to_panel_info(struct radeonfb_info *rinfo, struct fb_var_screeninfo *var) rinfo 690 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.xres = var->xres; rinfo 691 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.yres = var->yres; rinfo 692 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.clock = 100000000 / var->pixclock; rinfo 693 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.hOver_plus = var->right_margin; rinfo 694 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.hSync_width = var->hsync_len; rinfo 695 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.hblank = var->left_margin + rinfo 697 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.vOver_plus = var->lower_margin; rinfo 698 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.vSync_width = var->vsync_len; rinfo 699 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.vblank = var->upper_margin + rinfo 701 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.hAct_high = rinfo 703 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.vAct_high = rinfo 705 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.valid = 1; rinfo 711 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.pwr_delay = 200; rinfo 757 drivers/video/fbdev/aty/radeon_monitor.c void radeon_check_modes(struct radeonfb_info *rinfo, const char *mode_option) rinfo 759 drivers/video/fbdev/aty/radeon_monitor.c struct fb_info * info = rinfo->info; rinfo 771 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_type == MT_LCD) rinfo 772 drivers/video/fbdev/aty/radeon_monitor.c radeon_get_panel_info_BIOS(rinfo); rinfo 779 drivers/video/fbdev/aty/radeon_monitor.c if (!rinfo->panel_info.use_bios_dividers && rinfo->mon1_type != MT_CRT rinfo 780 drivers/video/fbdev/aty/radeon_monitor.c && rinfo->mon1_EDID) { rinfo 783 drivers/video/fbdev/aty/radeon_monitor.c if (fb_parse_edid(rinfo->mon1_EDID, &var) == 0) { rinfo 784 drivers/video/fbdev/aty/radeon_monitor.c if (var.xres >= rinfo->panel_info.xres && rinfo 785 drivers/video/fbdev/aty/radeon_monitor.c var.yres >= rinfo->panel_info.yres) rinfo 786 drivers/video/fbdev/aty/radeon_monitor.c radeon_var_to_panel_info(rinfo, &var); rinfo 793 drivers/video/fbdev/aty/radeon_monitor.c radeon_fixup_panel_info(rinfo); rinfo 799 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_type != MT_CRT && rinfo->panel_info.valid) { rinfo 803 drivers/video/fbdev/aty/radeon_monitor.c var->xres = rinfo->panel_info.xres; rinfo 804 drivers/video/fbdev/aty/radeon_monitor.c var->yres = rinfo->panel_info.yres; rinfo 805 drivers/video/fbdev/aty/radeon_monitor.c var->xres_virtual = rinfo->panel_info.xres; rinfo 806 drivers/video/fbdev/aty/radeon_monitor.c var->yres_virtual = rinfo->panel_info.yres; rinfo 809 drivers/video/fbdev/aty/radeon_monitor.c var->pixclock = 100000000 / rinfo->panel_info.clock; rinfo 810 drivers/video/fbdev/aty/radeon_monitor.c var->left_margin = (rinfo->panel_info.hblank - rinfo->panel_info.hOver_plus rinfo 811 drivers/video/fbdev/aty/radeon_monitor.c - rinfo->panel_info.hSync_width); rinfo 812 drivers/video/fbdev/aty/radeon_monitor.c var->right_margin = rinfo->panel_info.hOver_plus; rinfo 813 drivers/video/fbdev/aty/radeon_monitor.c var->upper_margin = (rinfo->panel_info.vblank - rinfo->panel_info.vOver_plus rinfo 814 drivers/video/fbdev/aty/radeon_monitor.c - rinfo->panel_info.vSync_width); rinfo 815 drivers/video/fbdev/aty/radeon_monitor.c var->lower_margin = rinfo->panel_info.vOver_plus; rinfo 816 drivers/video/fbdev/aty/radeon_monitor.c var->hsync_len = rinfo->panel_info.hSync_width; rinfo 817 drivers/video/fbdev/aty/radeon_monitor.c var->vsync_len = rinfo->panel_info.vSync_width; rinfo 819 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->panel_info.hAct_high) rinfo 821 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->panel_info.vAct_high) rinfo 830 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_EDID) { rinfo 831 drivers/video/fbdev/aty/radeon_monitor.c fb_edid_to_monspecs(rinfo->mon1_EDID, &info->monspecs); rinfo 835 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_modedb = info->monspecs.modedb; rinfo 836 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_dbsize = info->monspecs.modedb_len; rinfo 845 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_type != MT_CRT && !rinfo->panel_info.valid) { rinfo 851 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->panel_info.xres == 0 || rinfo->panel_info.yres == 0) { rinfo 853 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.xres = ((tmp >> HORZ_PANEL_SHIFT) + 1) * 8; rinfo 855 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.yres = (tmp >> VERT_PANEL_SHIFT) + 1; rinfo 857 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->panel_info.xres == 0 || rinfo->panel_info.yres == 0) { rinfo 859 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = MT_CRT; rinfo 863 drivers/video/fbdev/aty/radeon_monitor.c rinfo->panel_info.xres, rinfo->panel_info.yres); rinfo 864 drivers/video/fbdev/aty/radeon_monitor.c modedb = rinfo->mon1_modedb; rinfo 865 drivers/video/fbdev/aty/radeon_monitor.c dbsize = rinfo->mon1_dbsize; rinfo 866 drivers/video/fbdev/aty/radeon_monitor.c snprintf(modename, 31, "%dx%d", rinfo->panel_info.xres, rinfo->panel_info.yres); rinfo 870 drivers/video/fbdev/aty/radeon_monitor.c rinfo->mon1_type = MT_CRT; rinfo 874 drivers/video/fbdev/aty/radeon_monitor.c radeon_var_to_panel_info(rinfo, &info->var); rinfo 975 drivers/video/fbdev/aty/radeon_monitor.c int radeon_match_mode(struct radeonfb_info *rinfo, rinfo 989 drivers/video/fbdev/aty/radeon_monitor.c if (rinfo->mon1_modedb) { rinfo 990 drivers/video/fbdev/aty/radeon_monitor.c db = rinfo->mon1_modedb; rinfo 991 drivers/video/fbdev/aty/radeon_monitor.c dbsize = rinfo->mon1_dbsize; rinfo 996 drivers/video/fbdev/aty/radeon_monitor.c has_rmx = rinfo->mon1_type == MT_LCD || rinfo->mon1_type == MT_DFP; rinfo 1009 drivers/video/fbdev/aty/radeon_monitor.c if (has_rmx == 0 && rinfo->mon1_modedb) rinfo 1010 drivers/video/fbdev/aty/radeon_monitor.c if (fb_validate_mode((struct fb_var_screeninfo *)src, rinfo->info)) rinfo 41 drivers/video/fbdev/aty/radeon_pm.c static void radeon_reinitialize_M10(struct radeonfb_info *rinfo); rinfo 99 drivers/video/fbdev/aty/radeon_pm.c static int radeon_apply_workarounds(struct radeonfb_info *rinfo) rinfo 104 drivers/video/fbdev/aty/radeon_pm.c if ((id->subsystem_vendor == rinfo->pdev->subsystem_vendor ) && rinfo 105 drivers/video/fbdev/aty/radeon_pm.c (id->subsystem_device == rinfo->pdev->subsystem_device )) { rinfo 111 drivers/video/fbdev/aty/radeon_pm.c rinfo->pm_mode |= id->pm_mode_modifier; rinfo 114 drivers/video/fbdev/aty/radeon_pm.c rinfo->reinit_func = id->new_reinit_func; rinfo 122 drivers/video/fbdev/aty/radeon_pm.c static inline int radeon_apply_workarounds(struct radeonfb_info *rinfo) rinfo 130 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_disable_dynamic_mode(struct radeonfb_info *rinfo) rinfo 135 drivers/video/fbdev/aty/radeon_pm.c if ((rinfo->family == CHIP_FAMILY_RV100) && (!rinfo->is_mobility)) { rinfo 136 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->has_CRTC2) { rinfo 153 drivers/video/fbdev/aty/radeon_pm.c if (!rinfo->has_CRTC2) { rinfo 166 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->family == CHIP_FAMILY_RV350) { rinfo 232 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->is_mobility) { rinfo 249 drivers/video/fbdev/aty/radeon_pm.c else if (rinfo->family == CHIP_FAMILY_R300 || rinfo 250 drivers/video/fbdev/aty/radeon_pm.c rinfo->family == CHIP_FAMILY_R350) { rinfo 261 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->family == CHIP_FAMILY_R300 || rinfo->family == CHIP_FAMILY_R350) { rinfo 275 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->is_IGP) { rinfo 286 drivers/video/fbdev/aty/radeon_pm.c else if (rinfo->is_mobility) { rinfo 304 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->is_mobility) { rinfo 331 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_enable_dynamic_mode(struct radeonfb_info *rinfo) rinfo 336 drivers/video/fbdev/aty/radeon_pm.c if (!rinfo->has_CRTC2) { rinfo 351 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->family == CHIP_FAMILY_RV350) { rinfo 421 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->vram_width == 64) { rinfo 436 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->family == CHIP_FAMILY_R300 || rinfo->family == CHIP_FAMILY_R350) { rinfo 473 drivers/video/fbdev/aty/radeon_pm.c if ((rinfo->family == CHIP_FAMILY_RV250 && rinfo 475 drivers/video/fbdev/aty/radeon_pm.c ((rinfo->family == CHIP_FAMILY_RV100) && rinfo 483 drivers/video/fbdev/aty/radeon_pm.c if ((rinfo->family == CHIP_FAMILY_RV200) || rinfo 484 drivers/video/fbdev/aty/radeon_pm.c (rinfo->family == CHIP_FAMILY_RV250) || rinfo 485 drivers/video/fbdev/aty/radeon_pm.c (rinfo->family == CHIP_FAMILY_RV280)) { rinfo 490 drivers/video/fbdev/aty/radeon_pm.c if (((rinfo->family == CHIP_FAMILY_RV200) || rinfo 491 drivers/video/fbdev/aty/radeon_pm.c (rinfo->family == CHIP_FAMILY_RV250)) && rinfo 501 drivers/video/fbdev/aty/radeon_pm.c if (((rinfo->family == CHIP_FAMILY_RV200) || rinfo 502 drivers/video/fbdev/aty/radeon_pm.c (rinfo->family == CHIP_FAMILY_RV250)) && rinfo 528 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->is_mobility) { rinfo 550 drivers/video/fbdev/aty/radeon_pm.c static void OUTMC( struct radeonfb_info *rinfo, u8 indx, u32 value) rinfo 556 drivers/video/fbdev/aty/radeon_pm.c static u32 INMC(struct radeonfb_info *rinfo, u8 indx) rinfo 562 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_save_regs(struct radeonfb_info *rinfo, int saving_for_d3) rinfo 564 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[0] = INPLL(PLL_PWRMGT_CNTL); rinfo 565 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[1] = INPLL(CLK_PWRMGT_CNTL); rinfo 566 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[2] = INPLL(MCLK_CNTL); rinfo 567 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[3] = INPLL(SCLK_CNTL); rinfo 568 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[4] = INPLL(CLK_PIN_CNTL); rinfo 569 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[5] = INPLL(VCLK_ECP_CNTL); rinfo 570 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[6] = INPLL(PIXCLKS_CNTL); rinfo 571 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[7] = INPLL(MCLK_MISC); rinfo 572 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[8] = INPLL(P2PLL_CNTL); rinfo 574 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[9] = INREG(DISP_MISC_CNTL); rinfo 575 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[10] = INREG(DISP_PWR_MAN); rinfo 576 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[11] = INREG(LVDS_GEN_CNTL); rinfo 577 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[13] = INREG(TV_DAC_CNTL); rinfo 578 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[14] = INREG(BUS_CNTL1); rinfo 579 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[15] = INREG(CRTC_OFFSET_CNTL); rinfo 580 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[16] = INREG(AGP_CNTL); rinfo 581 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[17] = (INREG(CRTC_GEN_CNTL) & 0xfdffffff) | 0x04000000; rinfo 582 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[18] = (INREG(CRTC2_GEN_CNTL) & 0xfdffffff) | 0x04000000; rinfo 583 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[19] = INREG(GPIOPAD_A); rinfo 584 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[20] = INREG(GPIOPAD_EN); rinfo 585 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[21] = INREG(GPIOPAD_MASK); rinfo 586 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[22] = INREG(ZV_LCDPAD_A); rinfo 587 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[23] = INREG(ZV_LCDPAD_EN); rinfo 588 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[24] = INREG(ZV_LCDPAD_MASK); rinfo 589 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[25] = INREG(GPIO_VGA_DDC); rinfo 590 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[26] = INREG(GPIO_DVI_DDC); rinfo 591 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[27] = INREG(GPIO_MONID); rinfo 592 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[28] = INREG(GPIO_CRT2_DDC); rinfo 594 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[29] = INREG(SURFACE_CNTL); rinfo 595 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[30] = INREG(MC_FB_LOCATION); rinfo 596 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[31] = INREG(DISPLAY_BASE_ADDR); rinfo 597 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[32] = INREG(MC_AGP_LOCATION); rinfo 598 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[33] = INREG(CRTC2_DISPLAY_BASE_ADDR); rinfo 600 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[34] = INPLL(SCLK_MORE_CNTL); rinfo 601 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[35] = INREG(MEM_SDRAM_MODE_REG); rinfo 602 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[36] = INREG(BUS_CNTL); rinfo 603 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[39] = INREG(RBBM_CNTL); rinfo 604 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[40] = INREG(DAC_CNTL); rinfo 605 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[41] = INREG(HOST_PATH_CNTL); rinfo 606 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[37] = INREG(MPP_TB_CONFIG); rinfo 607 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[38] = INREG(FCP_CNTL); rinfo 609 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->is_mobility) { rinfo 610 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[12] = INREG(LVDS_PLL_CNTL); rinfo 611 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[43] = INPLL(pllSSPLL_CNTL); rinfo 612 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[44] = INPLL(pllSSPLL_REF_DIV); rinfo 613 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[45] = INPLL(pllSSPLL_DIV_0); rinfo 614 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[90] = INPLL(pllSS_INT_CNTL); rinfo 615 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[91] = INPLL(pllSS_TST_CNTL); rinfo 616 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[81] = INREG(LVDS_GEN_CNTL); rinfo 619 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->family >= CHIP_FAMILY_RV200) { rinfo 620 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[42] = INREG(MEM_REFRESH_CNTL); rinfo 621 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[46] = INREG(MC_CNTL); rinfo 622 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[47] = INREG(MC_INIT_GFX_LAT_TIMER); rinfo 623 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[48] = INREG(MC_INIT_MISC_LAT_TIMER); rinfo 624 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[49] = INREG(MC_TIMING_CNTL); rinfo 625 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[50] = INREG(MC_READ_CNTL_AB); rinfo 626 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[51] = INREG(MC_IOPAD_CNTL); rinfo 627 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[52] = INREG(MC_CHIP_IO_OE_CNTL_AB); rinfo 628 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[53] = INREG(MC_DEBUG); rinfo 630 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[54] = INREG(PAMAC0_DLY_CNTL); rinfo 631 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[55] = INREG(PAMAC1_DLY_CNTL); rinfo 632 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[56] = INREG(PAD_CTLR_MISC); rinfo 633 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[57] = INREG(FW_CNTL); rinfo 635 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->family >= CHIP_FAMILY_R300) { rinfo 636 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[58] = INMC(rinfo, ixR300_MC_MC_INIT_WR_LAT_TIMER); rinfo 637 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[59] = INMC(rinfo, ixR300_MC_IMP_CNTL); rinfo 638 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[60] = INMC(rinfo, ixR300_MC_CHP_IO_CNTL_C0); rinfo 639 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[61] = INMC(rinfo, ixR300_MC_CHP_IO_CNTL_C1); rinfo 640 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[62] = INMC(rinfo, ixR300_MC_CHP_IO_CNTL_D0); rinfo 641 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[63] = INMC(rinfo, ixR300_MC_CHP_IO_CNTL_D1); rinfo 642 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[64] = INMC(rinfo, ixR300_MC_BIST_CNTL_3); rinfo 643 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[65] = INMC(rinfo, ixR300_MC_CHP_IO_CNTL_A0); rinfo 644 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[66] = INMC(rinfo, ixR300_MC_CHP_IO_CNTL_A1); rinfo 645 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[67] = INMC(rinfo, ixR300_MC_CHP_IO_CNTL_B0); rinfo 646 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[68] = INMC(rinfo, ixR300_MC_CHP_IO_CNTL_B1); rinfo 647 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[69] = INMC(rinfo, ixR300_MC_DEBUG_CNTL); rinfo 648 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[70] = INMC(rinfo, ixR300_MC_DLL_CNTL); rinfo 649 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[71] = INMC(rinfo, ixR300_MC_IMP_CNTL_0); rinfo 650 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[72] = INMC(rinfo, ixR300_MC_ELPIDA_CNTL); rinfo 651 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[96] = INMC(rinfo, ixR300_MC_READ_CNTL_CD); rinfo 653 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[59] = INMC(rinfo, ixMC_IMP_CNTL); rinfo 654 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[65] = INMC(rinfo, ixMC_CHP_IO_CNTL_A0); rinfo 655 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[66] = INMC(rinfo, ixMC_CHP_IO_CNTL_A1); rinfo 656 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[67] = INMC(rinfo, ixMC_CHP_IO_CNTL_B0); rinfo 657 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[68] = INMC(rinfo, ixMC_CHP_IO_CNTL_B1); rinfo 658 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[71] = INMC(rinfo, ixMC_IMP_CNTL_0); rinfo 661 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[73] = INPLL(pllMPLL_CNTL); rinfo 662 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[74] = INPLL(pllSPLL_CNTL); rinfo 663 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[75] = INPLL(pllMPLL_AUX_CNTL); rinfo 664 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[76] = INPLL(pllSPLL_AUX_CNTL); rinfo 665 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[77] = INPLL(pllM_SPLL_REF_FB_DIV); rinfo 666 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[78] = INPLL(pllAGP_PLL_CNTL); rinfo 667 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[79] = INREG(PAMAC2_DLY_CNTL); rinfo 669 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[80] = INREG(OV0_BASE_ADDR); rinfo 670 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[82] = INREG(FP_GEN_CNTL); rinfo 671 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[83] = INREG(FP2_GEN_CNTL); rinfo 672 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[84] = INREG(TMDS_CNTL); rinfo 673 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[85] = INREG(TMDS_TRANSMITTER_CNTL); rinfo 674 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[86] = INREG(DISP_OUTPUT_CNTL); rinfo 675 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[87] = INREG(DISP_HW_DEBUG); rinfo 676 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[88] = INREG(TV_MASTER_CNTL); rinfo 677 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[89] = INPLL(pllP2PLL_REF_DIV); rinfo 678 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[92] = INPLL(pllPPLL_DIV_0); rinfo 679 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[93] = INPLL(pllPPLL_CNTL); rinfo 680 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[94] = INREG(GRPH_BUFFER_CNTL); rinfo 681 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[95] = INREG(GRPH2_BUFFER_CNTL); rinfo 682 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[96] = INREG(HDP_DEBUG); rinfo 683 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[97] = INPLL(pllMDLL_CKO); rinfo 684 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[98] = INPLL(pllMDLL_RDCKA); rinfo 685 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[99] = INPLL(pllMDLL_RDCKB); rinfo 688 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_restore_regs(struct radeonfb_info *rinfo) rinfo 690 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(P2PLL_CNTL, rinfo->save_regs[8] & 0xFFFFFFFE); /* First */ rinfo 692 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(PLL_PWRMGT_CNTL, rinfo->save_regs[0]); rinfo 693 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(CLK_PWRMGT_CNTL, rinfo->save_regs[1]); rinfo 694 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(MCLK_CNTL, rinfo->save_regs[2]); rinfo 695 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(SCLK_CNTL, rinfo->save_regs[3]); rinfo 696 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(CLK_PIN_CNTL, rinfo->save_regs[4]); rinfo 697 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(VCLK_ECP_CNTL, rinfo->save_regs[5]); rinfo 698 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(PIXCLKS_CNTL, rinfo->save_regs[6]); rinfo 699 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(MCLK_MISC, rinfo->save_regs[7]); rinfo 700 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->family == CHIP_FAMILY_RV350) rinfo 701 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(SCLK_MORE_CNTL, rinfo->save_regs[34]); rinfo 703 drivers/video/fbdev/aty/radeon_pm.c OUTREG(SURFACE_CNTL, rinfo->save_regs[29]); rinfo 704 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_FB_LOCATION, rinfo->save_regs[30]); rinfo 705 drivers/video/fbdev/aty/radeon_pm.c OUTREG(DISPLAY_BASE_ADDR, rinfo->save_regs[31]); rinfo 706 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_AGP_LOCATION, rinfo->save_regs[32]); rinfo 707 drivers/video/fbdev/aty/radeon_pm.c OUTREG(CRTC2_DISPLAY_BASE_ADDR, rinfo->save_regs[33]); rinfo 708 drivers/video/fbdev/aty/radeon_pm.c OUTREG(CNFG_MEMSIZE, rinfo->video_ram); rinfo 710 drivers/video/fbdev/aty/radeon_pm.c OUTREG(DISP_MISC_CNTL, rinfo->save_regs[9]); rinfo 711 drivers/video/fbdev/aty/radeon_pm.c OUTREG(DISP_PWR_MAN, rinfo->save_regs[10]); rinfo 712 drivers/video/fbdev/aty/radeon_pm.c OUTREG(LVDS_GEN_CNTL, rinfo->save_regs[11]); rinfo 713 drivers/video/fbdev/aty/radeon_pm.c OUTREG(LVDS_PLL_CNTL,rinfo->save_regs[12]); rinfo 714 drivers/video/fbdev/aty/radeon_pm.c OUTREG(TV_DAC_CNTL, rinfo->save_regs[13]); rinfo 715 drivers/video/fbdev/aty/radeon_pm.c OUTREG(BUS_CNTL1, rinfo->save_regs[14]); rinfo 716 drivers/video/fbdev/aty/radeon_pm.c OUTREG(CRTC_OFFSET_CNTL, rinfo->save_regs[15]); rinfo 717 drivers/video/fbdev/aty/radeon_pm.c OUTREG(AGP_CNTL, rinfo->save_regs[16]); rinfo 718 drivers/video/fbdev/aty/radeon_pm.c OUTREG(CRTC_GEN_CNTL, rinfo->save_regs[17]); rinfo 719 drivers/video/fbdev/aty/radeon_pm.c OUTREG(CRTC2_GEN_CNTL, rinfo->save_regs[18]); rinfo 720 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(P2PLL_CNTL, rinfo->save_regs[8]); rinfo 722 drivers/video/fbdev/aty/radeon_pm.c OUTREG(GPIOPAD_A, rinfo->save_regs[19]); rinfo 723 drivers/video/fbdev/aty/radeon_pm.c OUTREG(GPIOPAD_EN, rinfo->save_regs[20]); rinfo 724 drivers/video/fbdev/aty/radeon_pm.c OUTREG(GPIOPAD_MASK, rinfo->save_regs[21]); rinfo 725 drivers/video/fbdev/aty/radeon_pm.c OUTREG(ZV_LCDPAD_A, rinfo->save_regs[22]); rinfo 726 drivers/video/fbdev/aty/radeon_pm.c OUTREG(ZV_LCDPAD_EN, rinfo->save_regs[23]); rinfo 727 drivers/video/fbdev/aty/radeon_pm.c OUTREG(ZV_LCDPAD_MASK, rinfo->save_regs[24]); rinfo 728 drivers/video/fbdev/aty/radeon_pm.c OUTREG(GPIO_VGA_DDC, rinfo->save_regs[25]); rinfo 729 drivers/video/fbdev/aty/radeon_pm.c OUTREG(GPIO_DVI_DDC, rinfo->save_regs[26]); rinfo 730 drivers/video/fbdev/aty/radeon_pm.c OUTREG(GPIO_MONID, rinfo->save_regs[27]); rinfo 731 drivers/video/fbdev/aty/radeon_pm.c OUTREG(GPIO_CRT2_DDC, rinfo->save_regs[28]); rinfo 734 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_disable_iopad(struct radeonfb_info *rinfo) rinfo 748 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_program_v2clk(struct radeonfb_info *rinfo) rinfo 751 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->family <= CHIP_FAMILY_RV280) { rinfo 753 drivers/video/fbdev/aty/radeon_pm.c __INPLL(rinfo, pllPIXCLKS_CNTL) rinfo 778 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_low_current(struct radeonfb_info *rinfo) rinfo 783 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->family <= CHIP_FAMILY_RV280) { rinfo 822 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_setup_for_suspend(struct radeonfb_info *rinfo) rinfo 863 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->family <= CHIP_FAMILY_RV280) rinfo 963 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->family <= CHIP_FAMILY_RV280) { rinfo 1060 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_yclk_mclk_sync(struct radeonfb_info *rinfo) rinfo 1064 drivers/video/fbdev/aty/radeon_pm.c mc_chp_io_cntl_a1 = INMC( rinfo, ixMC_CHP_IO_CNTL_A1) rinfo 1066 drivers/video/fbdev/aty/radeon_pm.c mc_chp_io_cntl_b1 = INMC( rinfo, ixMC_CHP_IO_CNTL_B1) rinfo 1069 drivers/video/fbdev/aty/radeon_pm.c OUTMC( rinfo, ixMC_CHP_IO_CNTL_A1, mc_chp_io_cntl_a1 rinfo 1071 drivers/video/fbdev/aty/radeon_pm.c OUTMC( rinfo, ixMC_CHP_IO_CNTL_B1, mc_chp_io_cntl_b1 rinfo 1074 drivers/video/fbdev/aty/radeon_pm.c OUTMC( rinfo, ixMC_CHP_IO_CNTL_A1, mc_chp_io_cntl_a1); rinfo 1075 drivers/video/fbdev/aty/radeon_pm.c OUTMC( rinfo, ixMC_CHP_IO_CNTL_B1, mc_chp_io_cntl_b1); rinfo 1080 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_yclk_mclk_sync_m10(struct radeonfb_info *rinfo) rinfo 1084 drivers/video/fbdev/aty/radeon_pm.c mc_chp_io_cntl_a1 = INMC(rinfo, ixR300_MC_CHP_IO_CNTL_A1) rinfo 1086 drivers/video/fbdev/aty/radeon_pm.c mc_chp_io_cntl_b1 = INMC(rinfo, ixR300_MC_CHP_IO_CNTL_B1) rinfo 1089 drivers/video/fbdev/aty/radeon_pm.c OUTMC( rinfo, ixR300_MC_CHP_IO_CNTL_A1, rinfo 1091 drivers/video/fbdev/aty/radeon_pm.c OUTMC( rinfo, ixR300_MC_CHP_IO_CNTL_B1, rinfo 1094 drivers/video/fbdev/aty/radeon_pm.c OUTMC( rinfo, ixR300_MC_CHP_IO_CNTL_A1, mc_chp_io_cntl_a1); rinfo 1095 drivers/video/fbdev/aty/radeon_pm.c OUTMC( rinfo, ixR300_MC_CHP_IO_CNTL_B1, mc_chp_io_cntl_b1); rinfo 1100 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_program_mode_reg(struct radeonfb_info *rinfo, u16 value, rinfo 1134 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_m10_program_mode_wait(struct radeonfb_info *rinfo) rinfo 1147 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_enable_dll(struct radeonfb_info *rinfo) rinfo 1194 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_enable_dll_m10(struct radeonfb_info *rinfo) rinfo 1204 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixR300_MC_DLL_CNTL, rinfo->save_regs[70]); rinfo 1248 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_full_reset_sdram(struct radeonfb_info *rinfo) rinfo 1269 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->family == CHIP_FAMILY_RV350) { rinfo 1270 drivers/video/fbdev/aty/radeon_pm.c u32 sdram_mode_reg = rinfo->save_regs[35]; rinfo 1292 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_enable_dll_m10(rinfo); rinfo 1293 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_yclk_mclk_sync_m10(rinfo); rinfo 1296 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->of_node != NULL) { rinfo 1299 drivers/video/fbdev/aty/radeon_pm.c mrtable = of_get_property(rinfo->of_node, "ATY,MRT", &size); rinfo 1312 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_m10_program_mode_wait(rinfo); rinfo 1330 drivers/video/fbdev/aty/radeon_pm.c else if (!rinfo->is_mobility && rinfo->family == CHIP_FAMILY_RV200) { rinfo 1342 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_program_mode_reg(rinfo, 0x2002, 2); rinfo 1343 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_program_mode_reg(rinfo, 0x0132, 2); rinfo 1344 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_program_mode_reg(rinfo, 0x0032, 2); rinfo 1353 drivers/video/fbdev/aty/radeon_pm.c else if (rinfo->is_mobility && rinfo->family == CHIP_FAMILY_RV100) { rinfo 1364 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_enable_dll(rinfo); rinfo 1367 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_yclk_mclk_sync(rinfo); rinfo 1370 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_program_mode_reg(rinfo, 0x2000, 1); rinfo 1371 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_program_mode_reg(rinfo, 0x2001, 1); rinfo 1372 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_program_mode_reg(rinfo, 0x2002, 1); rinfo 1373 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_program_mode_reg(rinfo, 0x0132, 1); rinfo 1374 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_program_mode_reg(rinfo, 0x0032, 1); rinfo 1383 drivers/video/fbdev/aty/radeon_pm.c else if (rinfo->is_mobility) { rinfo 1397 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_enable_dll(rinfo); rinfo 1400 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_yclk_mclk_sync(rinfo); rinfo 1403 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->family <= CHIP_FAMILY_RV250) { rinfo 1404 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_program_mode_reg(rinfo, 0x2000, 1); rinfo 1405 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_program_mode_reg(rinfo, 0x2001, 1); rinfo 1406 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_program_mode_reg(rinfo, 0x2002, 1); rinfo 1407 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_program_mode_reg(rinfo, 0x0132, 1); rinfo 1408 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_program_mode_reg(rinfo, 0x0032, 1); rinfo 1411 drivers/video/fbdev/aty/radeon_pm.c else if (rinfo->family == CHIP_FAMILY_RV280) { rinfo 1412 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_program_mode_reg(rinfo, 0x2000, 1); rinfo 1413 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_program_mode_reg(rinfo, 0x0132, 1); rinfo 1414 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_program_mode_reg(rinfo, 0x0032, 1); rinfo 1436 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_reset_pad_ctlr_strength(struct radeonfb_info *rinfo) rinfo 1461 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_all_ppls_off(struct radeonfb_info *rinfo) rinfo 1475 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_start_mclk_sclk(struct radeonfb_info *rinfo) rinfo 1486 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_index(rinfo); rinfo 1488 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_data(rinfo); rinfo 1492 drivers/video/fbdev/aty/radeon_pm.c tmp = (tmp & 0xff00fffful) | (rinfo->save_regs[77] & 0x00ff0000ul); rinfo 1512 drivers/video/fbdev/aty/radeon_pm.c tmp |= rinfo->save_regs[3] & SCLK_CNTL__SCLK_SRC_SEL_MASK; rinfo 1521 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_index(rinfo); rinfo 1523 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_data(rinfo); rinfo 1527 drivers/video/fbdev/aty/radeon_pm.c tmp = (tmp & 0xffff00fful) | (rinfo->save_regs[77] & 0x0000ff00ul); rinfo 1546 drivers/video/fbdev/aty/radeon_pm.c tmp |= rinfo->save_regs[2] & 0xffff; rinfo 1553 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_m10_disable_spread_spectrum(struct radeonfb_info *rinfo) rinfo 1571 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllSS_INT_CNTL, rinfo->save_regs[90] & ~3); rinfo 1582 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_m10_enable_lvds_spread_spectrum(struct radeonfb_info *rinfo) rinfo 1595 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllSSPLL_CNTL, rinfo->save_regs[43] | 3); rinfo 1598 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllSSPLL_REF_DIV, rinfo->save_regs[44]); rinfo 1599 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllSSPLL_DIV_0, rinfo->save_regs[45]); rinfo 1607 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllSS_INT_CNTL, rinfo->save_regs[90]); rinfo 1623 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllSCLK_MORE_CNTL, rinfo->save_regs[34]); rinfo 1624 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllSS_TST_CNTL, rinfo->save_regs[91]); rinfo 1637 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_restore_pixel_pll(struct radeonfb_info *rinfo) rinfo 1642 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_index(rinfo); rinfo 1644 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_data(rinfo); rinfo 1651 drivers/video/fbdev/aty/radeon_pm.c tmp = (tmp & ~PPLL_REF_DIV_MASK) | rinfo->pll.ref_div; rinfo 1660 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_index(rinfo); rinfo 1662 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_data(rinfo); rinfo 1667 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllPPLL_DIV_0, rinfo->save_regs[92]); rinfo 1687 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_index(rinfo); rinfo 1688 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_data(rinfo); rinfo 1691 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_m10_reconfigure_mc(struct radeonfb_info *rinfo) rinfo 1693 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_CNTL, rinfo->save_regs[46]); rinfo 1694 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_INIT_GFX_LAT_TIMER, rinfo->save_regs[47]); rinfo 1695 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_INIT_MISC_LAT_TIMER, rinfo->save_regs[48]); rinfo 1697 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[35] & ~MEM_SDRAM_MODE_REG__MC_INIT_COMPLETE); rinfo 1698 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_TIMING_CNTL, rinfo->save_regs[49]); rinfo 1699 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MEM_REFRESH_CNTL, rinfo->save_regs[42]); rinfo 1700 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_READ_CNTL_AB, rinfo->save_regs[50]); rinfo 1701 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_CHIP_IO_OE_CNTL_AB, rinfo->save_regs[52]); rinfo 1702 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_IOPAD_CNTL, rinfo->save_regs[51]); rinfo 1703 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_DEBUG, rinfo->save_regs[53]); rinfo 1705 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixR300_MC_MC_INIT_WR_LAT_TIMER, rinfo->save_regs[58]); rinfo 1706 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixR300_MC_IMP_CNTL, rinfo->save_regs[59]); rinfo 1707 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixR300_MC_CHP_IO_CNTL_C0, rinfo->save_regs[60]); rinfo 1708 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixR300_MC_CHP_IO_CNTL_C1, rinfo->save_regs[61]); rinfo 1709 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixR300_MC_CHP_IO_CNTL_D0, rinfo->save_regs[62]); rinfo 1710 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixR300_MC_CHP_IO_CNTL_D1, rinfo->save_regs[63]); rinfo 1711 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixR300_MC_BIST_CNTL_3, rinfo->save_regs[64]); rinfo 1712 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixR300_MC_CHP_IO_CNTL_A0, rinfo->save_regs[65]); rinfo 1713 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixR300_MC_CHP_IO_CNTL_A1, rinfo->save_regs[66]); rinfo 1714 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixR300_MC_CHP_IO_CNTL_B0, rinfo->save_regs[67]); rinfo 1715 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixR300_MC_CHP_IO_CNTL_B1, rinfo->save_regs[68]); rinfo 1716 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixR300_MC_DEBUG_CNTL, rinfo->save_regs[69]); rinfo 1717 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixR300_MC_DLL_CNTL, rinfo->save_regs[70]); rinfo 1718 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixR300_MC_IMP_CNTL_0, rinfo->save_regs[71]); rinfo 1719 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixR300_MC_ELPIDA_CNTL, rinfo->save_regs[72]); rinfo 1720 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixR300_MC_READ_CNTL_CD, rinfo->save_regs[96]); rinfo 1724 drivers/video/fbdev/aty/radeon_pm.c static void radeon_reinitialize_M10(struct radeonfb_info *rinfo) rinfo 1729 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_AGP_LOCATION, rinfo->save_regs[32]); rinfo 1730 drivers/video/fbdev/aty/radeon_pm.c OUTREG(DISPLAY_BASE_ADDR, rinfo->save_regs[31]); rinfo 1731 drivers/video/fbdev/aty/radeon_pm.c OUTREG(CRTC2_DISPLAY_BASE_ADDR, rinfo->save_regs[33]); rinfo 1732 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_FB_LOCATION, rinfo->save_regs[30]); rinfo 1733 drivers/video/fbdev/aty/radeon_pm.c OUTREG(OV0_BASE_ADDR, rinfo->save_regs[80]); rinfo 1734 drivers/video/fbdev/aty/radeon_pm.c OUTREG(CNFG_MEMSIZE, rinfo->video_ram); rinfo 1735 drivers/video/fbdev/aty/radeon_pm.c OUTREG(BUS_CNTL, rinfo->save_regs[36]); rinfo 1736 drivers/video/fbdev/aty/radeon_pm.c OUTREG(BUS_CNTL1, rinfo->save_regs[14]); rinfo 1737 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MPP_TB_CONFIG, rinfo->save_regs[37]); rinfo 1738 drivers/video/fbdev/aty/radeon_pm.c OUTREG(FCP_CNTL, rinfo->save_regs[38]); rinfo 1739 drivers/video/fbdev/aty/radeon_pm.c OUTREG(RBBM_CNTL, rinfo->save_regs[39]); rinfo 1740 drivers/video/fbdev/aty/radeon_pm.c OUTREG(DAC_CNTL, rinfo->save_regs[40]); rinfo 1748 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_reset_pad_ctlr_strength(rinfo); rinfo 1754 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_all_ppls_off(rinfo); rinfo 1772 drivers/video/fbdev/aty/radeon_pm.c OUTREG(AGP_CNTL, rinfo->save_regs[16]); rinfo 1773 drivers/video/fbdev/aty/radeon_pm.c OUTREG(HOST_PATH_CNTL, rinfo->save_regs[41]); rinfo 1774 drivers/video/fbdev/aty/radeon_pm.c OUTREG(DISP_MISC_CNTL, rinfo->save_regs[9]); rinfo 1777 drivers/video/fbdev/aty/radeon_pm.c tmp = rinfo->save_regs[1] rinfo 1782 drivers/video/fbdev/aty/radeon_pm.c OUTREG(PAD_CTLR_MISC, rinfo->save_regs[56]); rinfo 1783 drivers/video/fbdev/aty/radeon_pm.c OUTREG(FW_CNTL, rinfo->save_regs[57]); rinfo 1784 drivers/video/fbdev/aty/radeon_pm.c OUTREG(HDP_DEBUG, rinfo->save_regs[96]); rinfo 1785 drivers/video/fbdev/aty/radeon_pm.c OUTREG(PAMAC0_DLY_CNTL, rinfo->save_regs[54]); rinfo 1786 drivers/video/fbdev/aty/radeon_pm.c OUTREG(PAMAC1_DLY_CNTL, rinfo->save_regs[55]); rinfo 1787 drivers/video/fbdev/aty/radeon_pm.c OUTREG(PAMAC2_DLY_CNTL, rinfo->save_regs[79]); rinfo 1790 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_m10_reconfigure_mc(rinfo); rinfo 1804 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllCLK_PIN_CNTL, rinfo->save_regs[4]); rinfo 1807 drivers/video/fbdev/aty/radeon_pm.c tmp = rinfo->save_regs[2] & 0xff000000; rinfo 1856 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllM_SPLL_REF_FB_DIV, rinfo->save_regs[77]); rinfo 1857 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllMPLL_AUX_CNTL, rinfo->save_regs[75]); rinfo 1858 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllSPLL_AUX_CNTL, rinfo->save_regs[76]); rinfo 1861 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllPPLL_CNTL, rinfo->save_regs[93] | 0x3); rinfo 1862 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllP2PLL_CNTL, rinfo->save_regs[8] | 0x3); rinfo 1863 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllMPLL_CNTL, rinfo->save_regs[73] | 0x03); rinfo 1864 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllSPLL_CNTL, rinfo->save_regs[74] | 0x03); rinfo 1867 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixR300_MC_DLL_CNTL, rinfo->save_regs[70]); rinfo 1870 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllMDLL_RDCKA, rinfo->save_regs[98] | 0xff); rinfo 1876 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllPLL_PWRMGT_CNTL, rinfo->save_regs[0]); rinfo 1893 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_start_mclk_sclk(rinfo); rinfo 1896 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_full_reset_sdram(rinfo); rinfo 1911 drivers/video/fbdev/aty/radeon_pm.c OUTREG(FP_GEN_CNTL, rinfo->save_regs[82]); rinfo 1912 drivers/video/fbdev/aty/radeon_pm.c OUTREG(FP2_GEN_CNTL, rinfo->save_regs[83]); rinfo 1915 drivers/video/fbdev/aty/radeon_pm.c OUTREG(LVDS_GEN_CNTL, rinfo->save_regs[11] & rinfo 1917 drivers/video/fbdev/aty/radeon_pm.c OUTREG(LVDS_PLL_CNTL, (rinfo->save_regs[12] & ~0xf0000) | 0x20000); rinfo 1919 drivers/video/fbdev/aty/radeon_pm.c OUTREG(DISP_OUTPUT_CNTL, rinfo->save_regs[86]); rinfo 1922 drivers/video/fbdev/aty/radeon_pm.c OUTREG(GPIOPAD_A, rinfo->save_regs[19]); rinfo 1923 drivers/video/fbdev/aty/radeon_pm.c OUTREG(GPIOPAD_EN, rinfo->save_regs[20]); rinfo 1924 drivers/video/fbdev/aty/radeon_pm.c OUTREG(GPIOPAD_MASK, rinfo->save_regs[21]); rinfo 1928 drivers/video/fbdev/aty/radeon_pm.c writeb(0, rinfo->fb_base + i); rinfo 1935 drivers/video/fbdev/aty/radeon_pm.c OUTREG(GRPH_BUFFER_CNTL, rinfo->save_regs[94]); rinfo 1936 drivers/video/fbdev/aty/radeon_pm.c OUTREG(GRPH2_BUFFER_CNTL, rinfo->save_regs[95]); rinfo 1939 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_m10_disable_spread_spectrum(rinfo); rinfo 1940 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_restore_pixel_pll(rinfo); rinfo 1946 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_m10_enable_lvds_spread_spectrum(rinfo); rinfo 1952 drivers/video/fbdev/aty/radeon_pm.c static void radeon_pm_m9p_reconfigure_mc(struct radeonfb_info *rinfo) rinfo 1954 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_CNTL, rinfo->save_regs[46]); rinfo 1955 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_INIT_GFX_LAT_TIMER, rinfo->save_regs[47]); rinfo 1956 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_INIT_MISC_LAT_TIMER, rinfo->save_regs[48]); rinfo 1958 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[35] & ~MEM_SDRAM_MODE_REG__MC_INIT_COMPLETE); rinfo 1959 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_TIMING_CNTL, rinfo->save_regs[49]); rinfo 1960 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_READ_CNTL_AB, rinfo->save_regs[50]); rinfo 1961 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MEM_REFRESH_CNTL, rinfo->save_regs[42]); rinfo 1962 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_IOPAD_CNTL, rinfo->save_regs[51]); rinfo 1963 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_DEBUG, rinfo->save_regs[53]); rinfo 1964 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_CHIP_IO_OE_CNTL_AB, rinfo->save_regs[52]); rinfo 1966 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixMC_IMP_CNTL, rinfo->save_regs[59] /*0x00f460d6*/); rinfo 1967 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixMC_CHP_IO_CNTL_A0, rinfo->save_regs[65] /*0xfecfa666*/); rinfo 1968 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixMC_CHP_IO_CNTL_A1, rinfo->save_regs[66] /*0x141555ff*/); rinfo 1969 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixMC_CHP_IO_CNTL_B0, rinfo->save_regs[67] /*0xfecfa666*/); rinfo 1970 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixMC_CHP_IO_CNTL_B1, rinfo->save_regs[68] /*0x141555ff*/); rinfo 1971 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixMC_IMP_CNTL_0, rinfo->save_regs[71] /*0x00009249*/); rinfo 1973 drivers/video/fbdev/aty/radeon_pm.c OUTREG(CNFG_MEMSIZE, rinfo->video_ram); rinfo 1978 drivers/video/fbdev/aty/radeon_pm.c static void radeon_reinitialize_M9P(struct radeonfb_info *rinfo) rinfo 1983 drivers/video/fbdev/aty/radeon_pm.c OUTREG(SURFACE_CNTL, rinfo->save_regs[29]); rinfo 1984 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_AGP_LOCATION, rinfo->save_regs[32]); rinfo 1985 drivers/video/fbdev/aty/radeon_pm.c OUTREG(DISPLAY_BASE_ADDR, rinfo->save_regs[31]); rinfo 1986 drivers/video/fbdev/aty/radeon_pm.c OUTREG(CRTC2_DISPLAY_BASE_ADDR, rinfo->save_regs[33]); rinfo 1987 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_FB_LOCATION, rinfo->save_regs[30]); rinfo 1988 drivers/video/fbdev/aty/radeon_pm.c OUTREG(OV0_BASE_ADDR, rinfo->save_regs[80]); rinfo 1989 drivers/video/fbdev/aty/radeon_pm.c OUTREG(BUS_CNTL, rinfo->save_regs[36]); rinfo 1990 drivers/video/fbdev/aty/radeon_pm.c OUTREG(BUS_CNTL1, rinfo->save_regs[14]); rinfo 1991 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MPP_TB_CONFIG, rinfo->save_regs[37]); rinfo 1992 drivers/video/fbdev/aty/radeon_pm.c OUTREG(FCP_CNTL, rinfo->save_regs[38]); rinfo 1993 drivers/video/fbdev/aty/radeon_pm.c OUTREG(RBBM_CNTL, rinfo->save_regs[39]); rinfo 1995 drivers/video/fbdev/aty/radeon_pm.c OUTREG(DAC_CNTL, rinfo->save_regs[40]); rinfo 1999 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_reset_pad_ctlr_strength(rinfo); rinfo 2005 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_all_ppls_off(rinfo); rinfo 2022 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllAGP_PLL_CNTL, rinfo->save_regs[78]); rinfo 2024 drivers/video/fbdev/aty/radeon_pm.c OUTREG(PAMAC0_DLY_CNTL, rinfo->save_regs[54]); rinfo 2025 drivers/video/fbdev/aty/radeon_pm.c OUTREG(PAMAC1_DLY_CNTL, rinfo->save_regs[55]); rinfo 2026 drivers/video/fbdev/aty/radeon_pm.c OUTREG(PAMAC2_DLY_CNTL, rinfo->save_regs[79]); rinfo 2028 drivers/video/fbdev/aty/radeon_pm.c OUTREG(AGP_CNTL, rinfo->save_regs[16]); rinfo 2029 drivers/video/fbdev/aty/radeon_pm.c OUTREG(HOST_PATH_CNTL, rinfo->save_regs[41]); /* MacOS sets that to 0 !!! */ rinfo 2030 drivers/video/fbdev/aty/radeon_pm.c OUTREG(DISP_MISC_CNTL, rinfo->save_regs[9]); rinfo 2032 drivers/video/fbdev/aty/radeon_pm.c tmp = rinfo->save_regs[1] rinfo 2037 drivers/video/fbdev/aty/radeon_pm.c OUTREG(FW_CNTL, rinfo->save_regs[57]); rinfo 2044 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllCLK_PIN_CNTL, rinfo->save_regs[4]); rinfo 2047 drivers/video/fbdev/aty/radeon_pm.c tmp = rinfo->save_regs[2] & 0xff000000; rinfo 2086 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllM_SPLL_REF_FB_DIV, rinfo->save_regs[77]); rinfo 2087 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllMPLL_AUX_CNTL, rinfo->save_regs[75]); rinfo 2088 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllSPLL_AUX_CNTL, rinfo->save_regs[76]); rinfo 2091 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllPPLL_CNTL, rinfo->save_regs[93] | 0x3); rinfo 2092 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllP2PLL_CNTL, rinfo->save_regs[8] | 0x3); rinfo 2095 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllMPLL_CNTL, rinfo->save_regs[73] | 0x03); rinfo 2096 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllSPLL_CNTL, rinfo->save_regs[74] | 0x03); rinfo 2105 drivers/video/fbdev/aty/radeon_pm.c tmp = rinfo->save_regs[0]; rinfo 2122 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_m9p_reconfigure_mc(rinfo); rinfo 2125 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_start_mclk_sclk(rinfo); rinfo 2128 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_full_reset_sdram(rinfo); rinfo 2143 drivers/video/fbdev/aty/radeon_pm.c OUTREG(TV_MASTER_CNTL, rinfo->save_regs[88]); rinfo 2144 drivers/video/fbdev/aty/radeon_pm.c OUTREG(TV_DAC_CNTL, rinfo->save_regs[13] | 0x07000000); rinfo 2151 drivers/video/fbdev/aty/radeon_pm.c OUTREG(GPIOPAD_A, rinfo->save_regs[19]); rinfo 2152 drivers/video/fbdev/aty/radeon_pm.c OUTREG(GPIOPAD_EN, rinfo->save_regs[20]); rinfo 2153 drivers/video/fbdev/aty/radeon_pm.c OUTREG(GPIOPAD_MASK, rinfo->save_regs[21]); rinfo 2159 drivers/video/fbdev/aty/radeon_pm.c tmp |= rinfo->save_regs[34] & 0xffff0000; rinfo 2164 drivers/video/fbdev/aty/radeon_pm.c tmp |= rinfo->save_regs[34] & 0xffff0000; rinfo 2168 drivers/video/fbdev/aty/radeon_pm.c OUTREG(LVDS_GEN_CNTL, rinfo->save_regs[11] & rinfo 2171 drivers/video/fbdev/aty/radeon_pm.c OUTREG(LVDS_PLL_CNTL, (rinfo->save_regs[12] & ~0xf0000) | 0x20000); rinfo 2176 drivers/video/fbdev/aty/radeon_pm.c writeb(0, rinfo->fb_base + i); rinfo 2179 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllSSPLL_REF_DIV, rinfo->save_regs[44] /*0x3f */); rinfo 2180 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllSSPLL_DIV_0, rinfo->save_regs[45] /*0x000081bb */); rinfo 2192 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllSS_INT_CNTL, rinfo->save_regs[90] & ~3);/*0x0020300c*/ rinfo 2196 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllPPLL_REF_DIV, rinfo->pll.ref_div); rinfo 2197 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(pllPPLL_DIV_0, rinfo->save_regs[92]); rinfo 2204 drivers/video/fbdev/aty/radeon_pm.c OUTREG(GRPH_BUFFER_CNTL, rinfo->save_regs[94]); rinfo 2205 drivers/video/fbdev/aty/radeon_pm.c OUTREG(GRPH2_BUFFER_CNTL, rinfo->save_regs[95]); rinfo 2208 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_m10_disable_spread_spectrum(rinfo); rinfo 2209 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_restore_pixel_pll(rinfo); rinfo 2210 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_m10_enable_lvds_spread_spectrum(rinfo); rinfo 2216 drivers/video/fbdev/aty/radeon_pm.c static void radeon_reinitialize_QW(struct radeonfb_info *rinfo) rinfo 2223 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_AGP_LOCATION, rinfo->save_regs[32]); rinfo 2224 drivers/video/fbdev/aty/radeon_pm.c OUTREG(DISPLAY_BASE_ADDR, rinfo->save_regs[31]); rinfo 2225 drivers/video/fbdev/aty/radeon_pm.c OUTREG(CRTC2_DISPLAY_BASE_ADDR, rinfo->save_regs[33]); rinfo 2226 drivers/video/fbdev/aty/radeon_pm.c OUTREG(MC_FB_LOCATION, rinfo->save_regs[30]); rinfo 2227 drivers/video/fbdev/aty/radeon_pm.c OUTREG(BUS_CNTL, rinfo->save_regs[36]); rinfo 2228 drivers/video/fbdev/aty/radeon_pm.c OUTREG(RBBM_CNTL, rinfo->save_regs[39]); rinfo 2244 drivers/video/fbdev/aty/radeon_pm.c OUTREG(SURFACE_CNTL, rinfo->save_regs[29]); rinfo 2245 drivers/video/fbdev/aty/radeon_pm.c OUTREG(AGP_CNTL, rinfo->save_regs[16]); rinfo 2246 drivers/video/fbdev/aty/radeon_pm.c OUTREG(HOST_PATH_CNTL, rinfo->save_regs[41]); rinfo 2247 drivers/video/fbdev/aty/radeon_pm.c OUTREG(DISP_MISC_CNTL, rinfo->save_regs[9]); rinfo 2249 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixMC_CHP_IO_CNTL_A0, 0xf7bb4433); rinfo 2251 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixMC_CHP_IO_CNTL_B0, 0xf7bb4433); rinfo 2281 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_index(rinfo); rinfo 2283 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_data(rinfo); rinfo 2304 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_index(rinfo); rinfo 2306 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_data(rinfo); rinfo 2347 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixMC_CHP_IO_CNTL_A1, 0x151550ff); rinfo 2349 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixMC_CHP_IO_CNTL_B1, 0x151550ff); rinfo 2352 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixMC_CHP_IO_CNTL_A1, 0x141550ff); rinfo 2354 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixMC_CHP_IO_CNTL_B1, 0x141550ff); rinfo 2370 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixMC_IMP_CNTL, 0x00f460d6); rinfo 2372 drivers/video/fbdev/aty/radeon_pm.c OUTMC(rinfo, ixMC_IMP_CNTL_0, 0x00009249); rinfo 2375 drivers/video/fbdev/aty/radeon_pm.c OUTREG(CNFG_MEMSIZE, rinfo->video_ram); rinfo 2377 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_full_reset_sdram(rinfo); rinfo 2389 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(CLK_PIN_CNTL, rinfo->save_regs[4]); rinfo 2390 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(CLK_PWRMGT_CNTL, rinfo->save_regs[1]); rinfo 2391 drivers/video/fbdev/aty/radeon_pm.c OUTPLL(PLL_PWRMGT_CNTL, rinfo->save_regs[0]); rinfo 2434 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_index(rinfo); rinfo 2436 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_data(rinfo); rinfo 2453 drivers/video/fbdev/aty/radeon_pm.c tmp = (tmp & ~PPLL_REF_DIV_MASK) | rinfo->pll.ref_div; rinfo 2458 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_index(rinfo); rinfo 2460 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_data(rinfo); rinfo 2463 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_index(rinfo); rinfo 2465 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_index(rinfo); rinfo 2466 drivers/video/fbdev/aty/radeon_pm.c radeon_pll_errata_after_data(rinfo); rinfo 2521 drivers/video/fbdev/aty/radeon_pm.c static void radeonfb_whack_power_state(struct radeonfb_info *rinfo, pci_power_t state) rinfo 2526 drivers/video/fbdev/aty/radeon_pm.c pci_read_config_word(rinfo->pdev, rinfo 2527 drivers/video/fbdev/aty/radeon_pm.c rinfo->pdev->pm_cap + PCI_PM_CTRL, rinfo 2532 drivers/video/fbdev/aty/radeon_pm.c pci_write_config_word(rinfo->pdev, rinfo 2533 drivers/video/fbdev/aty/radeon_pm.c rinfo->pdev->pm_cap + PCI_PM_CTRL, rinfo 2537 drivers/video/fbdev/aty/radeon_pm.c rinfo->pdev->current_state = state; rinfo 2540 drivers/video/fbdev/aty/radeon_pm.c static void radeon_set_suspend(struct radeonfb_info *rinfo, int suspend) rinfo 2544 drivers/video/fbdev/aty/radeon_pm.c if (!rinfo->pdev->pm_cap) rinfo 2553 drivers/video/fbdev/aty/radeon_pm.c pci_name(rinfo->pdev)); rinfo 2558 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_disable_dynamic_mode(rinfo); rinfo 2561 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_save_regs(rinfo, 0); rinfo 2565 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->is_mobility) { rinfo 2567 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_program_v2clk(rinfo); rinfo 2570 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_disable_iopad(rinfo); rinfo 2573 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_low_current(rinfo); rinfo 2576 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_setup_for_suspend(rinfo); rinfo 2578 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->family <= CHIP_FAMILY_RV280) { rinfo 2589 drivers/video/fbdev/aty/radeon_pm.c pci_disable_device(rinfo->pdev); rinfo 2590 drivers/video/fbdev/aty/radeon_pm.c pci_save_state(rinfo->pdev); rinfo 2595 drivers/video/fbdev/aty/radeon_pm.c radeonfb_whack_power_state(rinfo, PCI_D2); rinfo 2596 drivers/video/fbdev/aty/radeon_pm.c __pci_complete_power_transition(rinfo->pdev, PCI_D2); rinfo 2599 drivers/video/fbdev/aty/radeon_pm.c pci_name(rinfo->pdev)); rinfo 2601 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->family <= CHIP_FAMILY_RV250) { rinfo 2603 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_full_reset_sdram(rinfo); rinfo 2606 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_restore_regs(rinfo); rinfo 2609 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_restore_regs(rinfo); rinfo 2611 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_full_reset_sdram(rinfo); rinfo 2619 drivers/video/fbdev/aty/radeon_pm.c struct radeonfb_info *rinfo = info->par; rinfo 2645 drivers/video/fbdev/aty/radeon_pm.c radeonfb_engine_reset(rinfo); rinfo 2650 drivers/video/fbdev/aty/radeon_pm.c radeon_screen_blank(rinfo, FB_BLANK_POWERDOWN, 1); rinfo 2653 drivers/video/fbdev/aty/radeon_pm.c rinfo->asleep = 1; rinfo 2654 drivers/video/fbdev/aty/radeon_pm.c rinfo->lock_blank = 1; rinfo 2655 drivers/video/fbdev/aty/radeon_pm.c del_timer_sync(&rinfo->lvds_timer); rinfo 2673 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->pm_mode & radeon_pm_off) { rinfo 2680 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_disable_dynamic_mode(rinfo); rinfo 2682 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_save_regs(rinfo, 1); rinfo 2684 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->is_mobility && !(rinfo->pm_mode & radeon_pm_d2)) { rinfo 2699 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->pm_mode & radeon_pm_d2) rinfo 2700 drivers/video/fbdev/aty/radeon_pm.c radeon_set_suspend(rinfo, 1); rinfo 2710 drivers/video/fbdev/aty/radeon_pm.c static int radeon_check_power_loss(struct radeonfb_info *rinfo) rinfo 2712 drivers/video/fbdev/aty/radeon_pm.c return rinfo->save_regs[4] != INPLL(CLK_PIN_CNTL) || rinfo 2713 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[2] != INPLL(MCLK_CNTL) || rinfo 2714 drivers/video/fbdev/aty/radeon_pm.c rinfo->save_regs[3] != INPLL(SCLK_CNTL); rinfo 2720 drivers/video/fbdev/aty/radeon_pm.c struct radeonfb_info *rinfo = info->par; rinfo 2726 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->no_schedule) { rinfo 2741 drivers/video/fbdev/aty/radeon_pm.c if ((rinfo->pm_mode & radeon_pm_off) && radeon_check_power_loss(rinfo)) { rinfo 2742 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->reinit_func != NULL) rinfo 2743 drivers/video/fbdev/aty/radeon_pm.c rinfo->reinit_func(rinfo); rinfo 2755 drivers/video/fbdev/aty/radeon_pm.c else if (rinfo->pm_mode & radeon_pm_d2) rinfo 2756 drivers/video/fbdev/aty/radeon_pm.c radeon_set_suspend(rinfo, 0); rinfo 2758 drivers/video/fbdev/aty/radeon_pm.c rinfo->asleep = 0; rinfo 2763 drivers/video/fbdev/aty/radeon_pm.c radeon_write_mode (rinfo, &rinfo->state, 1); rinfo 2765 drivers/video/fbdev/aty/radeon_pm.c radeonfb_engine_init (rinfo); rinfo 2774 drivers/video/fbdev/aty/radeon_pm.c rinfo->lock_blank = 0; rinfo 2775 drivers/video/fbdev/aty/radeon_pm.c radeon_screen_blank(rinfo, FB_BLANK_UNBLANK, 1); rinfo 2787 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->dynclk == 1) rinfo 2788 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_enable_dynamic_mode(rinfo); rinfo 2789 drivers/video/fbdev/aty/radeon_pm.c else if (rinfo->dynclk == 0) rinfo 2790 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_disable_dynamic_mode(rinfo); rinfo 2803 drivers/video/fbdev/aty/radeon_pm.c struct radeonfb_info *rinfo = data; rinfo 2805 drivers/video/fbdev/aty/radeon_pm.c rinfo->no_schedule = 1; rinfo 2806 drivers/video/fbdev/aty/radeon_pm.c pci_restore_state(rinfo->pdev); rinfo 2807 drivers/video/fbdev/aty/radeon_pm.c radeonfb_pci_resume(rinfo->pdev); rinfo 2808 drivers/video/fbdev/aty/radeon_pm.c rinfo->no_schedule = 0; rinfo 2814 drivers/video/fbdev/aty/radeon_pm.c void radeonfb_pm_init(struct radeonfb_info *rinfo, int dynclk, int ignore_devlist, int force_sleep) rinfo 2817 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->family == CHIP_FAMILY_RS480) rinfo 2818 drivers/video/fbdev/aty/radeon_pm.c rinfo->dynclk = -1; rinfo 2820 drivers/video/fbdev/aty/radeon_pm.c rinfo->dynclk = dynclk; rinfo 2822 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->dynclk == 1) { rinfo 2823 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_enable_dynamic_mode(rinfo); rinfo 2825 drivers/video/fbdev/aty/radeon_pm.c } else if (rinfo->dynclk == 0) { rinfo 2826 drivers/video/fbdev/aty/radeon_pm.c radeon_pm_disable_dynamic_mode(rinfo); rinfo 2838 drivers/video/fbdev/aty/radeon_pm.c if (machine_is(powermac) && rinfo->of_node) { rinfo 2839 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->is_mobility && rinfo->pdev->pm_cap && rinfo 2840 drivers/video/fbdev/aty/radeon_pm.c rinfo->family <= CHIP_FAMILY_RV250) rinfo 2841 drivers/video/fbdev/aty/radeon_pm.c rinfo->pm_mode |= radeon_pm_d2; rinfo 2847 drivers/video/fbdev/aty/radeon_pm.c if (of_node_name_eq(rinfo->of_node, "ATY,JasperParent") || rinfo 2848 drivers/video/fbdev/aty/radeon_pm.c of_node_name_eq(rinfo->of_node, "ATY,SnowyParent")) { rinfo 2849 drivers/video/fbdev/aty/radeon_pm.c rinfo->reinit_func = radeon_reinitialize_M10; rinfo 2850 drivers/video/fbdev/aty/radeon_pm.c rinfo->pm_mode |= radeon_pm_off; rinfo 2853 drivers/video/fbdev/aty/radeon_pm.c if (!strcmp(rinfo->of_node->name, "ATY,BlueStoneParent")) { rinfo 2854 drivers/video/fbdev/aty/radeon_pm.c rinfo->reinit_func = radeon_reinitialize_QW; rinfo 2855 drivers/video/fbdev/aty/radeon_pm.c rinfo->pm_mode |= radeon_pm_off; rinfo 2858 drivers/video/fbdev/aty/radeon_pm.c if (of_node_name_eq(rinfo->of_node, "ATY,ViaParent")) { rinfo 2859 drivers/video/fbdev/aty/radeon_pm.c rinfo->reinit_func = radeon_reinitialize_M9P; rinfo 2860 drivers/video/fbdev/aty/radeon_pm.c rinfo->pm_mode |= radeon_pm_off; rinfo 2868 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->pm_mode != radeon_pm_none) { rinfo 2869 drivers/video/fbdev/aty/radeon_pm.c pmac_call_feature(PMAC_FTR_DEVICE_CAN_WAKE, rinfo->of_node, 0, 1); rinfo 2876 drivers/video/fbdev/aty/radeon_pm.c pmac_set_early_video_resume(radeonfb_early_resume, rinfo); rinfo 2895 drivers/video/fbdev/aty/radeon_pm.c radeon_apply_workarounds(rinfo); rinfo 2900 drivers/video/fbdev/aty/radeon_pm.c rinfo->pm_mode |= radeon_pm_d2; rinfo 2904 drivers/video/fbdev/aty/radeon_pm.c void radeonfb_pm_exit(struct radeonfb_info *rinfo) rinfo 2907 drivers/video/fbdev/aty/radeon_pm.c if (rinfo->pm_mode != radeon_pm_none) rinfo 62 drivers/video/fbdev/aty/radeonfb.h #define IS_RV100_VARIANT(rinfo) (((rinfo)->family == CHIP_FAMILY_RV100) || \ rinfo 63 drivers/video/fbdev/aty/radeonfb.h ((rinfo)->family == CHIP_FAMILY_RV200) || \ rinfo 64 drivers/video/fbdev/aty/radeonfb.h ((rinfo)->family == CHIP_FAMILY_RS100) || \ rinfo 65 drivers/video/fbdev/aty/radeonfb.h ((rinfo)->family == CHIP_FAMILY_RS200) || \ rinfo 66 drivers/video/fbdev/aty/radeonfb.h ((rinfo)->family == CHIP_FAMILY_RV250) || \ rinfo 67 drivers/video/fbdev/aty/radeonfb.h ((rinfo)->family == CHIP_FAMILY_RV280) || \ rinfo 68 drivers/video/fbdev/aty/radeonfb.h ((rinfo)->family == CHIP_FAMILY_RS300)) rinfo 71 drivers/video/fbdev/aty/radeonfb.h #define IS_R300_VARIANT(rinfo) (((rinfo)->family == CHIP_FAMILY_R300) || \ rinfo 72 drivers/video/fbdev/aty/radeonfb.h ((rinfo)->family == CHIP_FAMILY_RV350) || \ rinfo 73 drivers/video/fbdev/aty/radeonfb.h ((rinfo)->family == CHIP_FAMILY_R350) || \ rinfo 74 drivers/video/fbdev/aty/radeonfb.h ((rinfo)->family == CHIP_FAMILY_RV380) || \ rinfo 75 drivers/video/fbdev/aty/radeonfb.h ((rinfo)->family == CHIP_FAMILY_R420) || \ rinfo 76 drivers/video/fbdev/aty/radeonfb.h ((rinfo)->family == CHIP_FAMILY_RC410) || \ rinfo 77 drivers/video/fbdev/aty/radeonfb.h ((rinfo)->family == CHIP_FAMILY_RS480)) rinfo 273 drivers/video/fbdev/aty/radeonfb.h struct radeonfb_info *rinfo; rinfo 286 drivers/video/fbdev/aty/radeonfb.h typedef void (*reinit_function_ptr)(struct radeonfb_info *rinfo); rinfo 367 drivers/video/fbdev/aty/radeonfb.h #define PRIMARY_MONITOR(rinfo) (rinfo->mon1_type) rinfo 374 drivers/video/fbdev/aty/radeonfb.h void _radeon_msleep(struct radeonfb_info *rinfo, unsigned long ms); rinfo 376 drivers/video/fbdev/aty/radeonfb.h #define INREG8(addr) readb((rinfo->mmio_base)+addr) rinfo 377 drivers/video/fbdev/aty/radeonfb.h #define OUTREG8(addr,val) writeb(val, (rinfo->mmio_base)+addr) rinfo 378 drivers/video/fbdev/aty/radeonfb.h #define INREG16(addr) readw((rinfo->mmio_base)+addr) rinfo 379 drivers/video/fbdev/aty/radeonfb.h #define OUTREG16(addr,val) writew(val, (rinfo->mmio_base)+addr) rinfo 380 drivers/video/fbdev/aty/radeonfb.h #define INREG(addr) readl((rinfo->mmio_base)+addr) rinfo 381 drivers/video/fbdev/aty/radeonfb.h #define OUTREG(addr,val) writel(val, (rinfo->mmio_base)+addr) rinfo 383 drivers/video/fbdev/aty/radeonfb.h void _OUTREGP(struct radeonfb_info *rinfo, u32 addr, u32 val, u32 mask); rinfo 385 drivers/video/fbdev/aty/radeonfb.h #define OUTREGP(addr,val,mask) _OUTREGP(rinfo, addr, val,mask) rinfo 404 drivers/video/fbdev/aty/radeonfb.h void radeon_pll_errata_after_index_slow(struct radeonfb_info *rinfo); rinfo 405 drivers/video/fbdev/aty/radeonfb.h static inline void radeon_pll_errata_after_index(struct radeonfb_info *rinfo) rinfo 407 drivers/video/fbdev/aty/radeonfb.h if (rinfo->errata & CHIP_ERRATA_PLL_DUMMYREADS) rinfo 408 drivers/video/fbdev/aty/radeonfb.h radeon_pll_errata_after_index_slow(rinfo); rinfo 411 drivers/video/fbdev/aty/radeonfb.h void radeon_pll_errata_after_data_slow(struct radeonfb_info *rinfo); rinfo 412 drivers/video/fbdev/aty/radeonfb.h static inline void radeon_pll_errata_after_data(struct radeonfb_info *rinfo) rinfo 414 drivers/video/fbdev/aty/radeonfb.h if (rinfo->errata & (CHIP_ERRATA_PLL_DELAY|CHIP_ERRATA_R300_CG)) rinfo 415 drivers/video/fbdev/aty/radeonfb.h radeon_pll_errata_after_data_slow(rinfo); rinfo 418 drivers/video/fbdev/aty/radeonfb.h u32 __INPLL(struct radeonfb_info *rinfo, u32 addr); rinfo 419 drivers/video/fbdev/aty/radeonfb.h void __OUTPLL(struct radeonfb_info *rinfo, unsigned int index, u32 val); rinfo 420 drivers/video/fbdev/aty/radeonfb.h void __OUTPLLP(struct radeonfb_info *rinfo, unsigned int index, rinfo 423 drivers/video/fbdev/aty/radeonfb.h #define INPLL(addr) __INPLL(rinfo, addr) rinfo 424 drivers/video/fbdev/aty/radeonfb.h #define OUTPLL(index, val) __OUTPLL(rinfo, index, val) rinfo 425 drivers/video/fbdev/aty/radeonfb.h #define OUTPLLP(index, val, mask) __OUTPLLP(rinfo, index, val, mask) rinfo 428 drivers/video/fbdev/aty/radeonfb.h #define BIOS_IN8(v) (readb(rinfo->bios_seg + (v))) rinfo 429 drivers/video/fbdev/aty/radeonfb.h #define BIOS_IN16(v) (readb(rinfo->bios_seg + (v)) | \ rinfo 430 drivers/video/fbdev/aty/radeonfb.h (readb(rinfo->bios_seg + (v) + 1) << 8)) rinfo 431 drivers/video/fbdev/aty/radeonfb.h #define BIOS_IN32(v) (readb(rinfo->bios_seg + (v)) | \ rinfo 432 drivers/video/fbdev/aty/radeonfb.h (readb(rinfo->bios_seg + (v) + 1) << 8) | \ rinfo 433 drivers/video/fbdev/aty/radeonfb.h (readb(rinfo->bios_seg + (v) + 2) << 16) | \ rinfo 434 drivers/video/fbdev/aty/radeonfb.h (readb(rinfo->bios_seg + (v) + 3) << 24)) rinfo 471 drivers/video/fbdev/aty/radeonfb.h void _radeon_fifo_wait(struct radeonfb_info *rinfo, int entries); rinfo 472 drivers/video/fbdev/aty/radeonfb.h void radeon_engine_flush(struct radeonfb_info *rinfo); rinfo 473 drivers/video/fbdev/aty/radeonfb.h void _radeon_engine_idle(struct radeonfb_info *rinfo); rinfo 475 drivers/video/fbdev/aty/radeonfb.h #define radeon_engine_idle() _radeon_engine_idle(rinfo) rinfo 476 drivers/video/fbdev/aty/radeonfb.h #define radeon_fifo_wait(entries) _radeon_fifo_wait(rinfo,entries) rinfo 477 drivers/video/fbdev/aty/radeonfb.h #define radeon_msleep(ms) _radeon_msleep(rinfo,ms) rinfo 481 drivers/video/fbdev/aty/radeonfb.h extern void radeon_create_i2c_busses(struct radeonfb_info *rinfo); rinfo 482 drivers/video/fbdev/aty/radeonfb.h extern void radeon_delete_i2c_busses(struct radeonfb_info *rinfo); rinfo 483 drivers/video/fbdev/aty/radeonfb.h extern int radeon_probe_i2c_connector(struct radeonfb_info *rinfo, int conn, u8 **out_edid); rinfo 488 drivers/video/fbdev/aty/radeonfb.h extern void radeonfb_pm_init(struct radeonfb_info *rinfo, int dynclk, int ignore_devlist, int force_sleep); rinfo 489 drivers/video/fbdev/aty/radeonfb.h extern void radeonfb_pm_exit(struct radeonfb_info *rinfo); rinfo 492 drivers/video/fbdev/aty/radeonfb.h extern void radeon_probe_screens(struct radeonfb_info *rinfo, rinfo 494 drivers/video/fbdev/aty/radeonfb.h extern void radeon_check_modes(struct radeonfb_info *rinfo, const char *mode_option); rinfo 495 drivers/video/fbdev/aty/radeonfb.h extern int radeon_match_mode(struct radeonfb_info *rinfo, rinfo 504 drivers/video/fbdev/aty/radeonfb.h extern void radeonfb_engine_init (struct radeonfb_info *rinfo); rinfo 505 drivers/video/fbdev/aty/radeonfb.h extern void radeonfb_engine_reset(struct radeonfb_info *rinfo); rinfo 508 drivers/video/fbdev/aty/radeonfb.h extern int radeon_screen_blank(struct radeonfb_info *rinfo, int blank, int mode_switch); rinfo 509 drivers/video/fbdev/aty/radeonfb.h extern void radeon_write_mode (struct radeonfb_info *rinfo, struct radeon_regs *mode, rinfo 514 drivers/video/fbdev/aty/radeonfb.h extern void radeonfb_bl_init(struct radeonfb_info *rinfo); rinfo 515 drivers/video/fbdev/aty/radeonfb.h extern void radeonfb_bl_exit(struct radeonfb_info *rinfo); rinfo 517 drivers/video/fbdev/aty/radeonfb.h static inline void radeonfb_bl_init(struct radeonfb_info *rinfo) {} rinfo 518 drivers/video/fbdev/aty/radeonfb.h static inline void radeonfb_bl_exit(struct radeonfb_info *rinfo) {} rinfo 543 drivers/video/fbdev/carminefb.c struct fb_info **rinfo) rinfo 591 drivers/video/fbdev/carminefb.c *rinfo = info; rinfo 313 fs/ceph/dir.c struct ceph_mds_reply_info_parsed *rinfo; rinfo 429 fs/ceph/dir.c rinfo = &req->r_reply_info; rinfo 430 fs/ceph/dir.c if (le32_to_cpu(rinfo->dir_dir->frag) != frag) { rinfo 431 fs/ceph/dir.c frag = le32_to_cpu(rinfo->dir_dir->frag); rinfo 432 fs/ceph/dir.c if (!rinfo->hash_order) { rinfo 465 fs/ceph/dir.c if (rinfo->dir_nr > 0) { rinfo 467 fs/ceph/dir.c rinfo->dir_entries + (rinfo->dir_nr-1); rinfo 480 fs/ceph/dir.c rinfo = &dfi->last_readdir->r_reply_info; rinfo 482 fs/ceph/dir.c dfi->frag, rinfo->dir_nr, ctx->pos, rinfo 483 fs/ceph/dir.c rinfo->dir_nr ? rinfo->dir_entries[0].offset : 0LL); rinfo 487 fs/ceph/dir.c if (rinfo->dir_nr > 0) { rinfo 488 fs/ceph/dir.c int step, nr = rinfo->dir_nr; rinfo 491 fs/ceph/dir.c if (rinfo->dir_entries[i + step].offset < ctx->pos) { rinfo 499 fs/ceph/dir.c for (; i < rinfo->dir_nr; i++) { rinfo 500 fs/ceph/dir.c struct ceph_mds_reply_dir_entry *rde = rinfo->dir_entries + i; rinfo 509 fs/ceph/dir.c i, rinfo->dir_nr, ctx->pos, rinfo 602 fs/ceph/dir.c struct ceph_mds_reply_info_parsed *rinfo; rinfo 612 fs/ceph/dir.c rinfo = dfi->last_readdir ? &dfi->last_readdir->r_reply_info : NULL; rinfo 613 fs/ceph/dir.c if (!rinfo || !rinfo->dir_nr) rinfo 615 fs/ceph/dir.c chunk_offset = rinfo->dir_entries[0].offset; rinfo 431 fs/ceph/export.c struct ceph_mds_reply_info_parsed *rinfo; rinfo 466 fs/ceph/export.c rinfo = &req->r_reply_info; rinfo 467 fs/ceph/export.c for (i = 0; i < rinfo->dir_nr; i++) { rinfo 468 fs/ceph/export.c rde = rinfo->dir_entries + i; rinfo 479 fs/ceph/export.c if (rinfo->dir_end) rinfo 482 fs/ceph/export.c BUG_ON(rinfo->dir_nr <= 0); rinfo 483 fs/ceph/export.c rde = rinfo->dir_entries + (rinfo->dir_nr - 1); rinfo 484 fs/ceph/export.c next_offset += rinfo->dir_nr; rinfo 534 fs/ceph/export.c struct ceph_mds_reply_info_parsed *rinfo = &req->r_reply_info; rinfo 535 fs/ceph/export.c memcpy(name, rinfo->dname, rinfo->dname_len); rinfo 536 fs/ceph/export.c name[rinfo->dname_len] = 0; rinfo 1218 fs/ceph/inode.c struct ceph_mds_reply_info_parsed *rinfo = &req->r_reply_info; rinfo 1225 fs/ceph/inode.c rinfo->head->is_dentry, rinfo->head->is_target); rinfo 1227 fs/ceph/inode.c if (!rinfo->head->is_target && !rinfo->head->is_dentry) { rinfo 1229 fs/ceph/inode.c if (rinfo->head->result == 0 && req->r_parent) rinfo 1234 fs/ceph/inode.c if (rinfo->head->is_dentry) { rinfo 1239 fs/ceph/inode.c &rinfo->diri, rinfo->dirfrag, rinfo 1254 fs/ceph/inode.c BUG_ON(!rinfo->head->is_target); rinfo 1260 fs/ceph/inode.c dname.name = rinfo->dname; rinfo 1261 fs/ceph/inode.c dname.len = rinfo->dname_len; rinfo 1263 fs/ceph/inode.c tvino.ino = le64_to_cpu(rinfo->targeti.in->ino); rinfo 1264 fs/ceph/inode.c tvino.snap = le64_to_cpu(rinfo->targeti.in->snapid); rinfo 1296 fs/ceph/inode.c if (rinfo->head->is_target) { rinfo 1297 fs/ceph/inode.c tvino.ino = le64_to_cpu(rinfo->targeti.in->ino); rinfo 1298 fs/ceph/inode.c tvino.snap = le64_to_cpu(rinfo->targeti.in->snapid); rinfo 1307 fs/ceph/inode.c err = fill_inode(in, req->r_locked_page, &rinfo->targeti, NULL, rinfo 1310 fs/ceph/inode.c rinfo->head->result == 0) ? req->r_fmode : -1, rinfo 1323 fs/ceph/inode.c if (rinfo->head->is_dentry && rinfo 1326 fs/ceph/inode.c (rinfo->head->is_target || strncmp(req->r_dentry->d_name.name, rinfo 1342 fs/ceph/inode.c dvino.ino = le64_to_cpu(rinfo->diri.in->ino); rinfo 1343 fs/ceph/inode.c dvino.snap = le64_to_cpu(rinfo->diri.in->snapid); rinfo 1350 fs/ceph/inode.c (le32_to_cpu(rinfo->diri.in->cap.caps) & rinfo 1355 fs/ceph/inode.c le32_to_cpu(rinfo->dlease->duration_ms); rinfo 1397 fs/ceph/inode.c if (!rinfo->head->is_target) { rinfo 1407 fs/ceph/inode.c rinfo->dlease, session, rinfo 1431 fs/ceph/inode.c rinfo->dlease, session, rinfo 1451 fs/ceph/inode.c } else if (rinfo->head->is_dentry && req->r_dentry) { rinfo 1454 fs/ceph/inode.c dvino.ino = le64_to_cpu(rinfo->diri.in->ino); rinfo 1455 fs/ceph/inode.c dvino.snap = le64_to_cpu(rinfo->diri.in->snapid); rinfo 1456 fs/ceph/inode.c if (rinfo->head->is_target) { rinfo 1457 fs/ceph/inode.c tvino.ino = le64_to_cpu(rinfo->targeti.in->ino); rinfo 1458 fs/ceph/inode.c tvino.snap = le64_to_cpu(rinfo->targeti.in->snapid); rinfo 1461 fs/ceph/inode.c update_dentry_lease_careful(req->r_dentry, rinfo->dlease, rinfo 1463 fs/ceph/inode.c rinfo->dname, rinfo->dname_len, rinfo 1477 fs/ceph/inode.c struct ceph_mds_reply_info_parsed *rinfo = &req->r_reply_info; rinfo 1480 fs/ceph/inode.c for (i = 0; i < rinfo->dir_nr; i++) { rinfo 1481 fs/ceph/inode.c struct ceph_mds_reply_dir_entry *rde = rinfo->dir_entries + i; rinfo 1562 fs/ceph/inode.c struct ceph_mds_reply_info_parsed *rinfo = &req->r_reply_info; rinfo 1576 fs/ceph/inode.c if (rinfo->hash_order) { rinfo 1582 fs/ceph/inode.c } else if (rinfo->offset_hash) { rinfo 1589 fs/ceph/inode.c if (rinfo->dir_dir && rinfo 1590 fs/ceph/inode.c le32_to_cpu(rinfo->dir_dir->frag) != frag) { rinfo 1592 fs/ceph/inode.c frag, le32_to_cpu(rinfo->dir_dir->frag)); rinfo 1593 fs/ceph/inode.c frag = le32_to_cpu(rinfo->dir_dir->frag); rinfo 1594 fs/ceph/inode.c if (!rinfo->hash_order) rinfo 1598 fs/ceph/inode.c if (le32_to_cpu(rinfo->head->op) == CEPH_MDS_OP_LSSNAP) { rinfo 1600 fs/ceph/inode.c rinfo->dir_nr, parent); rinfo 1603 fs/ceph/inode.c rinfo->dir_nr, parent); rinfo 1604 fs/ceph/inode.c if (rinfo->dir_dir) rinfo 1605 fs/ceph/inode.c ceph_fill_dirfrag(d_inode(parent), rinfo->dir_dir); rinfo 1609 fs/ceph/inode.c !(rinfo->hash_order && last_hash)) { rinfo 1624 fs/ceph/inode.c for (i = 0; i < rinfo->dir_nr; i++) { rinfo 1625 fs/ceph/inode.c struct ceph_mds_reply_dir_entry *rde = rinfo->dir_entries + i; rinfo 1635 fs/ceph/inode.c if (rinfo->hash_order) { rinfo 2034 fs/ceph/mds_client.c struct ceph_mds_reply_info_parsed *rinfo = &req->r_reply_info; rinfo 2047 fs/ceph/mds_client.c rinfo->dir_entries = (void*)__get_free_pages(GFP_KERNEL | rinfo 2050 fs/ceph/mds_client.c if (rinfo->dir_entries) rinfo 2054 fs/ceph/mds_client.c if (!rinfo->dir_entries) rinfo 2060 fs/ceph/mds_client.c rinfo->dir_buf_size = PAGE_SIZE << order; rinfo 2793 fs/ceph/mds_client.c struct ceph_mds_reply_info_parsed *rinfo; /* parsed reply info */ rinfo 2905 fs/ceph/mds_client.c rinfo = &req->r_reply_info; rinfo 2907 fs/ceph/mds_client.c err = parse_reply_info(msg, rinfo, (u64)-1); rinfo 2909 fs/ceph/mds_client.c err = parse_reply_info(msg, rinfo, session->s_con.peer_features); rinfo 2921 fs/ceph/mds_client.c if (rinfo->snapblob_len) { rinfo 2923 fs/ceph/mds_client.c ceph_update_snap_trace(mdsc, rinfo->snapblob, rinfo 2924 fs/ceph/mds_client.c rinfo->snapblob + rinfo->snapblob_len, rinfo 1379 net/dsa/slave.c struct dsa_notifier_register_info rinfo = { rinfo 1386 net/dsa/slave.c call_dsa_notifiers(val, dev, &rinfo.info); rinfo 939 net/ipv6/route.c struct route_info *rinfo = (struct route_info *) opt; rinfo 950 net/ipv6/route.c if (rinfo->length > 3) { rinfo 952 net/ipv6/route.c } else if (rinfo->prefix_len > 128) { rinfo 954 net/ipv6/route.c } else if (rinfo->prefix_len > 64) { rinfo 955 net/ipv6/route.c if (rinfo->length < 2) { rinfo 958 net/ipv6/route.c } else if (rinfo->prefix_len > 0) { rinfo 959 net/ipv6/route.c if (rinfo->length < 1) { rinfo 964 net/ipv6/route.c pref = rinfo->route_pref; rinfo 968 net/ipv6/route.c lifetime = addrconf_timeout_fixup(ntohl(rinfo->lifetime), HZ); rinfo 970 net/ipv6/route.c if (rinfo->length == 3) rinfo 971 net/ipv6/route.c prefix = (struct in6_addr *)rinfo->prefix; rinfo 975 net/ipv6/route.c (struct in6_addr *)rinfo->prefix, rinfo 976 net/ipv6/route.c rinfo->prefix_len); rinfo 980 net/ipv6/route.c if (rinfo->prefix_len == 0) rinfo 983 net/ipv6/route.c rt = rt6_get_route_info(net, prefix, rinfo->prefix_len, rinfo 992 net/ipv6/route.c rt = rt6_add_route_info(net, prefix, rinfo->prefix_len, gwaddr, rinfo 685 net/mac80211/cfg.c struct rate_info *rinfo) rinfo 687 net/mac80211/cfg.c rinfo->flags = 0; rinfo 689 net/mac80211/cfg.c rinfo->flags |= RATE_INFO_FLAGS_MCS; rinfo 690 net/mac80211/cfg.c rinfo->mcs = rate->idx; rinfo 692 net/mac80211/cfg.c rinfo->flags |= RATE_INFO_FLAGS_VHT_MCS; rinfo 693 net/mac80211/cfg.c rinfo->mcs = ieee80211_rate_get_vht_mcs(rate); rinfo 694 net/mac80211/cfg.c rinfo->nss = ieee80211_rate_get_vht_nss(rate); rinfo 703 net/mac80211/cfg.c rinfo->legacy = DIV_ROUND_UP(brate, 1 << shift); rinfo 707 net/mac80211/cfg.c rinfo->bw = RATE_INFO_BW_40; rinfo 709 net/mac80211/cfg.c rinfo->bw = RATE_INFO_BW_80; rinfo 711 net/mac80211/cfg.c rinfo->bw = RATE_INFO_BW_160; rinfo 713 net/mac80211/cfg.c rinfo->bw = RATE_INFO_BW_20; rinfo 715 net/mac80211/cfg.c rinfo->flags |= RATE_INFO_FLAGS_SHORT_GI; rinfo 301 net/mac80211/mesh_hwmp.c struct rate_info rinfo; rinfo 313 net/mac80211/mesh_hwmp.c sta_set_rate_info_tx(sta, &sta->tx_stats.last_rate, &rinfo); rinfo 315 net/mac80211/mesh_hwmp.c cfg80211_calculate_bitrate(&rinfo)); rinfo 2060 net/mac80211/sta_info.c struct rate_info *rinfo) rinfo 2062 net/mac80211/sta_info.c rinfo->bw = STA_STATS_GET(BW, rate); rinfo 2066 net/mac80211/sta_info.c rinfo->flags = RATE_INFO_FLAGS_VHT_MCS; rinfo 2067 net/mac80211/sta_info.c rinfo->mcs = STA_STATS_GET(VHT_MCS, rate); rinfo 2068 net/mac80211/sta_info.c rinfo->nss = STA_STATS_GET(VHT_NSS, rate); rinfo 2070 net/mac80211/sta_info.c rinfo->flags |= RATE_INFO_FLAGS_SHORT_GI; rinfo 2073 net/mac80211/sta_info.c rinfo->flags = RATE_INFO_FLAGS_MCS; rinfo 2074 net/mac80211/sta_info.c rinfo->mcs = STA_STATS_GET(HT_MCS, rate); rinfo 2076 net/mac80211/sta_info.c rinfo->flags |= RATE_INFO_FLAGS_SHORT_GI; rinfo 2087 net/mac80211/sta_info.c if (rinfo->bw == RATE_INFO_BW_5) rinfo 2089 net/mac80211/sta_info.c else if (rinfo->bw == RATE_INFO_BW_10) rinfo 2093 net/mac80211/sta_info.c rinfo->legacy = DIV_ROUND_UP(brate, 1 << shift); rinfo 2097 net/mac80211/sta_info.c rinfo->flags = RATE_INFO_FLAGS_HE_MCS; rinfo 2098 net/mac80211/sta_info.c rinfo->mcs = STA_STATS_GET(HE_MCS, rate); rinfo 2099 net/mac80211/sta_info.c rinfo->nss = STA_STATS_GET(HE_NSS, rate); rinfo 2100 net/mac80211/sta_info.c rinfo->he_gi = STA_STATS_GET(HE_GI, rate); rinfo 2101 net/mac80211/sta_info.c rinfo->he_ru_alloc = STA_STATS_GET(HE_RU, rate); rinfo 2102 net/mac80211/sta_info.c rinfo->he_dcm = STA_STATS_GET(HE_DCM, rate); rinfo 2107 net/mac80211/sta_info.c static int sta_set_rate_info_rx(struct sta_info *sta, struct rate_info *rinfo) rinfo 2114 net/mac80211/sta_info.c sta_stats_decode_rate(sta->local, rate, rinfo); rinfo 786 net/mac80211/sta_info.h struct rate_info *rinfo); rinfo 960 net/sctp/ulpevent.c struct sctp_rcvinfo rinfo; rinfo 965 net/sctp/ulpevent.c memset(&rinfo, 0, sizeof(struct sctp_rcvinfo)); rinfo 966 net/sctp/ulpevent.c rinfo.rcv_sid = event->stream; rinfo 967 net/sctp/ulpevent.c rinfo.rcv_ssn = event->ssn; rinfo 968 net/sctp/ulpevent.c rinfo.rcv_ppid = event->ppid; rinfo 969 net/sctp/ulpevent.c rinfo.rcv_flags = event->flags; rinfo 970 net/sctp/ulpevent.c rinfo.rcv_tsn = event->tsn; rinfo 971 net/sctp/ulpevent.c rinfo.rcv_cumtsn = event->cumtsn; rinfo 972 net/sctp/ulpevent.c rinfo.rcv_assoc_id = sctp_assoc2id(event->asoc); rinfo 973 net/sctp/ulpevent.c rinfo.rcv_context = event->asoc->default_rcv_context; rinfo 976 net/sctp/ulpevent.c sizeof(rinfo), &rinfo);