Checking /home/davej/Mail/KernelStuff-April-2007: signoffs = 1617 Possible boolean logic bug. 338630:+ if (unlikely(!PageCompound(p) | !PageTail(p) | 342401:+ if (unlikely(!PageCompound(p) | !PageTail(p) | 530242:+ if (unlikely(!PageCompound(p) | !PageTail(p) | Should use __set_current_state() instead of setting ->state directly. 322860:+ current->state = save; 935692:+ current->state = save; 970111:+ current->state = save; 979505:+ current->state = save; kmalloc return shouldn't be cast. 845259:+ lp->rx_skbp = (struct sk_buff **)kmalloc( 845316:+ lp->rx_dma_skbp = (dma_addr_t *)kmalloc( Use 'inline' instead of '__inline__'75329:+static __inline__ void mtrr_save_state (void) 75363:+static __inline__ void mtrr_save_state (void) 578666:+static __inline__ unsigned long safe_apic_wait_icr_idle(void) 578815:+static __inline__ unsigned int safe_apic_wait_icr_idle(void) 709809:+static __inline__ void wireless_seq_printf_stats(struct seq_file *seq, Using check_region is racy, use just request_region and check its return value. 54285:+ if (__check_region(&ioport_resource, port, width/8)) 54296:+ if (__check_region(&ioport_resource, port, width/8)) 54307:+ if (__check_region(&iomem_resource, phys_addr, width/8)) 54318:+ if (__check_region(&iomem_resource, phys_addr, width/8)) Return value should be negative. 413710:+ return EINVAL; Use kthread abstraction instead of kernel_thread() 7027:+ thread =3D kernel_thread(dev_resume_proc,NULL,CLONE_KERNEL); Do not add new typedefs. 26176:+typedef asmlinkage long (*syscall_fn_t)(long, long, long, long, long, long); 104823:+ typedef void iucv_irq_fn(struct iucv_irq_data *); 568469:+ typedef void (*rxrpc_interceptor_t)(struct sock *sk, 568610:+typedef void (*rxrpc_interceptor_t)(struct sock *, unsigned long, 574811:+typedef u32 afs_access_t; 594881:+typedef int (*node_filter)(struct lpfc_nodelist *ndlp, void *param); 604172:+typedef u32 afs_access_t; 615546:+ typedef void (*rxrpc_interceptor_t)(struct sock *sk, 615687:+typedef void (*rxrpc_interceptor_t)(struct sock *, unsigned long, 701294:+typedef unsigned char uch; 701295:+typedef unsigned short ush; 701296:+typedef unsigned long ulg; 772524:+ typedef void (*rxrpc_interceptor_t)(struct sock *sk, 772665:+typedef void (*rxrpc_interceptor_t)(struct sock *, unsigned long, 791055:+typedef u32 afs_access_t; 794368:+typedef u32 rxrpc_seq_t; /* Rx message sequence number */ 794369:+typedef u32 rxrpc_serial_t; /* Rx message serial number */ 794370:+typedef __be32 rxrpc_seq_net_t; /* on-the-wire Rx message sequence number */ 794371:+typedef __be32 rxrpc_serial_net_t; /* on-the-wire Rx message serial number */ 802142:+typedef unsigned afs_volid_t; 802143:+typedef unsigned afs_vnodeid_t; 802144:+typedef unsigned long long afs_dataversion_t; 802146:+typedef enum { 802152:+typedef enum { 802171:+typedef enum { 806802:+typedef enum { 898252:+typedef enum { 898817:+typedef enum { Incorrect type usage for kernel code. Use __u32 etc. 94320:+ uint32_t label; 94334:+ uint32_t label; 94386:+ uint32_t label = IPV6_SADDR_DEFAULT_LABEL; 94412:+ int ifindex, uint32_t label) 94496:+ int ifindex, uint32_t label, 94522:+ int ifindex, uint32_t label) 94548:+ int ifindex, uint32_t label) 120475:+ uint32_t crb_producer) 123157:+ uint32_t crb_producer) 137054:+static uint32_t drvr_ver = 0x02200207; 199050:+ uint32_t crb_producer) 222199:+static uint32_t drvr_ver = 0x02200207; 412099:+ char *buf, uint32_t *len) 412109:+ const char *buf, uint32_t *len) 442444:+ uint32_t pageofs = pos & (PAGE_CACHE_SIZE - 1); 506180:+static uint32_t nv4b_ctx_voodoo[] ={ 590252:+lpfc_do_offline(struct lpfc_hba *phba, uint32_t type) 592675:+ while (Cnt >= sizeof (uint32_t)) { 592687:+ uint32_t els_command=0; 592705:+ elscmd = (uint32_t *) (pcmd->virt); 592801:+ uint32_t fcpi_parm = rsp_iocb->iocb.un.fcpi.fcpi_parm; 594474:+lpfc_nlp_init(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, uint32_t did) 594893:+struct lpfc_nodelist *lpfc_findnode_did(struct lpfc_hba *, uint32_t); 595662:+lpfc_matchdid(struct lpfc_hba *phba, struct lpfc_nodelist *ndlp, uint32_t did) 595674:+lpfc_findnode_did(struct lpfc_hba *phba, uint32_t did) 595717:+ data1 = (((uint32_t) ndlp->nlp_state << 24) | 595718:+ ((uint32_t) ndlp->nlp_xri << 16) | 595719:+ ((uint32_t) ndlp->nlp_type << 8) | 595720:+ ((uint32_t) ndlp->nlp_rpi & 0xff)); 595769:+ uint32_t num_sent; 596539:+ ((((uint32_t) phba->fc_sparam.cmn.bbRcvSizeMsb & 0x0F) << 8) | 596540:+ (uint32_t) phba->fc_sparam.cmn.bbRcvSizeLsb); 691621:+ uint32_t fw_ddb_index); 691644:+ uint32_t fw_ddb_index) 691655:+ uint32_t fw_ddb_index) 691726:+ uint8_t outCount, uint32_t *mbx_cmd, 691727:+ uint32_t *mbx_sts) 691796:+static int qla4xxx_req_ddb_entry(struct scsi_qla_host *ha, uint32_t *ddb_index) 779840:+ uint32_t expiry; /* time at which expires */ Use WARN_ON & Recovery code rather than BUG() and BUG_ON() 68060:+ BUG_ON(tbase_get_base_ptr(timer->base) != base); 86662:+ BUG_ON(pad < 0); 86900:+ BUG_ON(ptr == NULL); 86917:+ BUG_ON(ptr == NULL); 87135:+ BUG_ON(pad < 0); 87373:+ BUG_ON(ptr == NULL); 87390:+ BUG_ON(ptr == NULL); 87580:+ BUG_ON(!i--); 90665:+ BUG_ON( test_suspend_state(SUSPEND_RUNNING) && /* Suspend2, that is */ 104658:+ BUG_ON(in_atomic()); 110163:+ BUG_ON(freezer_status.count <= 0); 144194:+ BUG_ON(skb->len < len); 152845:+ BUG_ON(IS_ERR(dir)); 179342:+ BUG_ON(mnt->mnt_flags & MNT_USER); 215518:+ BUG_ON(!bus); 225716:+ BUG_ON(index < dev->caps.num_mgms); 225801:+ BUG_ON(amgm_index_to_free < dev->caps.num_mgms); 225817:+ BUG_ON(index < dev->caps.num_mgms); 228813:+ BUG_ON(mlx4_ib_alloc_db_from_pgdir(pgdir, db, order)); 231909:+ BUG_ON(cmd->free_head < 0); 240221:+ BUG_ON(IS_ERR(dir)); 263486:+ BUG_ON(ibm == NULL); 263622:+ BUG_ON(ibm == NULL); 265101:+ BUG_ON(!ibm->acpi); 265150:+ BUG_ON(!ibm->acpi); 265521:+ BUG_ON(!ibm->acpi); 265542:+ BUG_ON(!ibm->acpi); 269917:+ BUG_ON(dma_channel_active(state->dma)); 269945:+ BUG_ON(dma_channel_active(state->dma)); 292660:+ BUG_ON((*spte & PT64_BASE_ADDR_MASK) >> PAGE_SHIFT 310363:+ BUG_ON(ap->flags & ATA_FLAG_ACPI_SATA); 310389:+ BUG_ON(ap->flags & ATA_FLAG_ACPI_SATA); 322990:+ BUG_ON(in_atomic()); 338578:+ VM_BUG_ON(PageTail(page)); 339221:+ VM_BUG_ON(mapping->order != compound_order(page)); 339229:+ VM_BUG_ON(mapping->order != compound_order(page)); 339237:+ VM_BUG_ON(mapping->order != compound_order(page)); 339247:+ VM_BUG_ON(mapping->order != compound_order(page)); 339257:+ VM_BUG_ON(mapping->order != compound_order(page)); 339265:+ VM_BUG_ON(mapping->order != compound_order(page)); 339275:+ VM_BUG_ON(mapping->order != compound_order(pages[i])); 339285:+ VM_BUG_ON(mapping->order != compound_order(pages[i])); 339295:+ VM_BUG_ON(mapping->order != compound_order(pages[i])); 339305:+ VM_BUG_ON(mapping->order != compound_order(page)); 340106:+ BUG_ON(page_cache_offset(mapping, lend) != 340273:+ BUG_ON(size > page_size); 340296:+ VM_BUG_ON(offset >= page_cache_size(page->mapping)); 340306:+ BUG_ON(from > page_cache_size(inode->i_mapping)); 340307:+ BUG_ON(to > page_cache_size(inode->i_mapping)); 342349:+ VM_BUG_ON(PageTail(page)); 343204:+ VM_BUG_ON(mapping->order != compound_order(page)); 343212:+ VM_BUG_ON(mapping->order != compound_order(page)); 343220:+ VM_BUG_ON(mapping->order != compound_order(page)); 343230:+ VM_BUG_ON(mapping->order != compound_order(page)); 343240:+ VM_BUG_ON(mapping->order != compound_order(page)); 343248:+ VM_BUG_ON(mapping->order != compound_order(page)); 343258:+ VM_BUG_ON(mapping->order != compound_order(pages[i])); 343268:+ VM_BUG_ON(mapping->order != compound_order(pages[i])); 343278:+ VM_BUG_ON(mapping->order != compound_order(pages[i])); 343288:+ VM_BUG_ON(mapping->order != compound_order(page)); 344344:+ BUG_ON(page_cache_offset(mapping, lend) != 344728:+ BUG_ON(size > page_size); 344751:+ VM_BUG_ON(offset >= page_cache_size(page->mapping)); 344761:+ BUG_ON(from > page_cache_size(inode->i_mapping)); 344762:+ BUG_ON(to > page_cache_size(inode->i_mapping)); 351530:+ BUG_ON(offset + size > (PAGE_SIZE << page->mapping->order)); 360211:+ BUG_ON(session->magic != L2TP_SESSION_MAGIC); 360227:+ BUG_ON(tunnel->magic != L2TP_TUNNEL_MAGIC); 361166:+ BUG_ON(tunnel->magic != L2TP_TUNNEL_MAGIC); 361347:+ BUG_ON(tunnel->magic != L2TP_TUNNEL_MAGIC); 362330:+ BUG_ON(m->private == NULL); 373210:+ BUG_ON(session->magic != L2TP_SESSION_MAGIC); 373226:+ BUG_ON(tunnel->magic != L2TP_TUNNEL_MAGIC); 374165:+ BUG_ON(tunnel->magic != L2TP_TUNNEL_MAGIC); 374346:+ BUG_ON(tunnel->magic != L2TP_TUNNEL_MAGIC); 375329:+ BUG_ON(m->private == NULL); 383106:+ BUILD_BUG_ON(BCM43xx_TAB_NOISESCALE_SIZE != ARRAY_SIZE(bcm43xx_tab_noisescaleg1)); 383107:+ BUILD_BUG_ON(BCM43xx_TAB_NOISESCALE_SIZE != ARRAY_SIZE(bcm43xx_tab_noisescaleg2)); 383108:+ BUILD_BUG_ON(BCM43xx_TAB_NOISESCALE_SIZE != ARRAY_SIZE(bcm43xx_tab_noisescaleg3)); 383111:+ BUILD_BUG_ON(BCM43xx_TAB_RSSIAGC1_SIZE != ARRAY_SIZE(bcm43xx_tab_rssiagc1)); 383112:+ BUILD_BUG_ON(BCM43xx_TAB_RSSIAGC2_SIZE != ARRAY_SIZE(bcm43xx_tab_rssiagc2)); 385584:+ BUG_ON(!wiphy); 385617:+ BUG_ON(!wdev); 385936:+ BUG_ON(!wiphy); 394716:+ BUG_ON(!name); 394737:+ BUG_ON(p > name + ID_STR_LENGTH - 1); 400676:+ BUG_ON(lp->tagged_cmds[ent->tag[1]]); 400704:+ BUG_ON(lp->tagged_cmds[ent->tag[1]] != ent); 400708:+ BUG_ON(lp->non_tagged_cmd != ent); 402078:+ BUG_ON(esp->active_cmd); 404017:+ BUG_ON(esp->active_cmd != NULL); 404036:+ BUG_ON(lp->num_tagged); 405738:+ BUILD_BUG_ON(sizeof(struct scsi_pointer) < 407092:+ BUG_ON(!(cmd & ESP_CMD_DMA)); 411679:+ BUG_ON(len + ret > PRINTF_BUFFER_SIZE-1); 413078:+ BUG_ON((xenstored_ready <= 0)); 414096:+ BUG_ON(ret > PRINTF_BUFFER_SIZE-1); 414186:+ BUG_ON(find_watch(token)); 414216:+ BUG_ON(!find_watch(token)); 421580:+ BUG_ON(!name); 421601:+ BUG_ON(p > name + ID_STR_LENGTH - 1); 428414:+ BUILD_BUG_ON(sizeof(struct illinois) > ICSK_CA_PRIV_SIZE); 434333:+#include /* for BUG_ON(!in_atomic()) only */ 434361:+ BUG_ON(!in_atomic()); 434429:+ BUG_ON(i->count < bytes); 437011:+ BUG_ON(ret == AOP_TRUNCATED_PAGE); /* can't deal with */ 437263:+ BUG_ON(!PageLocked(page)); 437393:+ BUG_ON(!PageLocked(page)); 441196:+ BUG_ON(from > PAGE_CACHE_SIZE || 441769:+ BUG_ON(err > 0); 441887:+ BUG_ON(err != len); 441935:+ BUG_ON(err != len); 442545:+ BUG_ON(!PageUptodate(pg)); 443309:+ BUG_ON((pos + len) > (dibh->b_size - sizeof(struct gfs2_dinode))); 443375:+ BUG_ON(gfs2_glock_is_locked_by_me(ip->i_gl) == 0); 449266:+ BUG_ON(PageUptodate(page)); 449278:+ BUG_ON(!PageUptodate(page)); 455844:+ BUG_ON(!cfqq->next_rq); 457945:+ BUG_ON(!list_empty(&cfqq->fifo)); 480499:+ BUG_ON(pdev->pcie_type != PCI_EXP_TYPE_PCI_BRIDGE); 480806:+ BUG_ON(pdev->pcie_type != PCI_EXP_TYPE_PCI_BRIDGE); 481914:+ BUG_ON(!domain->pgd); 482052:+ BUG_ON(iommu->root_entry); 482312:+ BUG_ON(addr & (~PAGE_MASK_4K)); 482313:+ BUG_ON(pages == 0); 482853:+ BUG_ON(!domain->pgd); 482959:+ BUG_ON(dma_pte_addr(*pte)); 483323:+ BUG_ON(dir == DMA_NONE); 483437:+ BUG_ON(!domain); 483537:+ BUG_ON(dir == DMA_NONE); 484646:+ BUG_ON(!s->page); 487095:+ BUG_ON(!s->page); 487689:+ BUG_ON(!domain->pgd); 487827:+ BUG_ON(iommu->root_entry); 488087:+ BUG_ON(addr & (~PAGE_MASK_4K)); 488088:+ BUG_ON(pages == 0); 488628:+ BUG_ON(!domain->pgd); 488734:+ BUG_ON(dma_pte_addr(*pte)); 489098:+ BUG_ON(dir == DMA_NONE); 489212:+ BUG_ON(!domain); 489312:+ BUG_ON(dir == DMA_NONE); 511685:+ /* XXX */ /* BUG_ON(!dentry->d_inode); */ 511697:+ /* XXX */ /* BUG_ON(!simple_empty(dentry)); */ 528608:+ BUG_ON(page_cache_offset(mapping, lend) != 528665:+ BUG_ON(size > page_size); 528679:+ VM_BUG_ON(offset >= page_cache_size(page->mapping)); 528699:+ BUG_ON(from > page_cache_size(inode->i_mapping)); 528700:+ BUG_ON(to > page_cache_size(inode->i_mapping)); 529841:+ BUG_ON(order); 530190:+ VM_BUG_ON(PageTail(page)); 532347:+ VM_BUG_ON(mapping_order(mapping) != compound_order(page)); 532355:+ VM_BUG_ON(mapping_order(mapping) != compound_order(page)); 532363:+ VM_BUG_ON(mapping_order(mapping) != compound_order(page)); 532373:+ VM_BUG_ON(mapping_order(mapping) != compound_order(page)); 532383:+ VM_BUG_ON(mapping_order(mapping) != compound_order(page)); 532391:+ VM_BUG_ON(mapping_order(mapping) != compound_order(page)); 532401:+ VM_BUG_ON(mapping_order(mapping) != compound_order(pages[i])); 532411:+ VM_BUG_ON(mapping_order(mapping) != compound_order(pages[i])); 532421:+ VM_BUG_ON(mapping_order(mapping) != compound_order(pages[i])); 532431:+ VM_BUG_ON(mapping_order(mapping) != compound_order(page)); 543421:+ BUG_ON(ptr == NULL); 543438:+ BUG_ON(ptr == NULL); 544994:+ BUG_ON(ptr == NULL); 545012:+ BUG_ON(ptr == NULL); 545819:+ BUG_ON(pad < 0); 567189:+ BUG_ON(len); 617581:+ BUG_ON(len); 624735:+ BUG_ON(BLK_RB_EMPTY_ROOT(&ad->sort_list[REQ_SYNC])); 624744:+ BUG_ON(BLK_RB_EMPTY_ROOT(&ad->sort_list[REQ_ASYNC])); 624817:+ BUG_ON(BLK_RB_EMPTY_ROOT(&cfqq->sort_list)); 624835:+ BUG_ON(elv_rb_first(&cfqq->sort_list)); 624896:+ BUG_ON(BLK_RB_EMPTY_ROOT(&dd->sort_list[READ])); 624905:+ BUG_ON(BLK_RB_EMPTY_ROOT(&dd->sort_list[WRITE])); 631138:+ BUILD_BUG_ON(index < 0); 664930:+ BUG_ON(!name); 664951:+ BUG_ON(p > name + ID_STR_LENGTH - 1); 671650:+ BUG_ON(tclass >= ARRAY_SIZE(class_to_string) || !class_to_string[tclass]); 713007:+ BUG_ON(!list_empty(&drv->netdev_list)); 722843:+ BUG_ON(!oext || lblock != le32_to_cpu(oext->ee_block)); 723013:+ BUG_ON(!dext || dest_off != le32_to_cpu(dext->ee_block)); 743639:+ BUG_ON(!hibernate_ops->prepare); 743640:+ BUG_ON(!hibernate_ops->enter); 743641:+ BUG_ON(!hibernate_ops->finish); 750966:+ BUG_ON(ext4_ext_get_actual_len(newext) == 0); 751273:+ BUG_ON(!ret); 751864:+ BUG_ON(path[depth].p_hdr == NULL); 751885:+ BUG_ON(eh->eh_entries == 0); 781136:+ BUILD_BUG_ON(sizeof(struct rxrpc_skb_priv) > sizeof(dummy_skb->cb)); 782070:+ BUG_ON(ret < 0); 786044:+ BUG_ON(atomic_read((X)) >> (sizeof(atomic_t) - 2) == \ 804872:+ BUILD_BUG_ON(sizeof(union afs_dir_block) != 2048); 804873:+ BUILD_BUG_ON(sizeof(union afs_dirent) != 32); 851950:+ BUG_ON(!list_empty(&drv->netdev_list)); 860594:+ BUG_ON(!name); 860615:+ BUG_ON(p > name + ID_STR_LENGTH - 1); 876698:+ BUG_ON(cmd->use_sg == 0); 876933:+ BUG_ON(lp->tagged_cmds[ent->tag[1]]); 876945:+ BUG_ON(lp->tagged_cmds[ent->tag[1]] != ent); 876949:+ BUG_ON(lp->non_tagged_cmd != ent); 877478:+ BUG_ON(esp->active_cmd); 878358:+ BUG_ON(lp->num_tagged); 878382:+ BUG_ON(esp->active_cmd != NULL); 879034:+ BUILD_BUG_ON(sizeof(struct scsi_pointer) < 880059:+ BUG_ON(!(cmd & ESP_CMD_DMA)); 895194:+ BUG_ON(!subsys->active); 898384:+ BUG_ON(!(container_is_removed(cont))); 898415:+ BUG_ON(!mutex_is_locked(&dentry->d_inode->i_mutex)); 898424:+ BUG_ON(d->d_inode->i_mode & S_IFDIR); 898485:+ BUG_ON(cont->subsys[i]); 898486:+ BUG_ON(!dummytop->subsys[i]); 898487:+ BUG_ON(dummytop->subsys[i]->container != dummytop); 898497:+ BUG_ON(cont->subsys[i] != dummytop->subsys[i]); 898498:+ BUG_ON(cont->subsys[i]->container != cont); 898507:+ BUG_ON(!cont->subsys[i]); 898510:+ BUG_ON(cont->subsys[i]); 898536:+ BUG_ON(root->number_of_containers != 1); 898537:+ BUG_ON(!list_empty(&cont->children)); 898538:+ BUG_ON(!list_empty(&cont->sibling)); 898539:+ BUG_ON(!root->subsys_bits); 898543:+ BUG_ON(ret); 898721:+ BUG_ON(root->subsys_bits); 898727:+ BUG_ON(!list_empty(&cont->sibling)); 898728:+ BUG_ON(!list_empty(&cont->children)); 898729:+ BUG_ON(root->number_of_containers != 1); 898739:+ BUG_ON(ret); 898804:+ BUG_ON(list_empty(&root->subsys_list)); 898809:+ BUG_ON(!*css); 898988:+ BUG_ON(!mutex_is_locked(&dir->d_inode->i_mutex)); 899088:+ BUG_ON(!mutex_is_locked(&cont->dentry->d_inode->i_mutex)); 899204:+ BUG_ON(retval); 899205:+ BUG_ON(!dummytop->subsys[ss->subsys_id]); 899249:+ BUG_ON(!ss->name); 899250:+ BUG_ON(strlen(ss->name) > MAX_CONTAINER_TYPE_NAMELEN); 899251:+ BUG_ON(!ss->create); 899252:+ BUG_ON(!ss->destroy); 905887:+ BUG_ON(mnt->mnt_flags & MNT_USER); 916793:+ BUG_ON(ret != SHA1_BLOCK_SIZE); 916813:+ BUG_ON(ret != (len & ~(SHA1_BLOCK_SIZE - 1))); 916864:+ BUG_ON(ret != end); 916954:+ BUG_ON(ret != end); 935822:+ BUG_ON(in_atomic()); 938849:+ BUG_ON(count > FC_VPORT_NUM_ATTRS); 958594:+ BUG_ON(IS_ERR(dir)); 959415:+ BUG_ON(!irqs_disabled()); 959425:+ BUG_ON(irqs_disabled()); 970241:+ BUG_ON(in_atomic()); 979635:+ BUG_ON(in_atomic()); Don't init statics to 0/NULL: 70101:+static int ata_ignore_hpa = 0; 94312:+static const struct in6_addr in6addr_v4mapped = { { { [10] = 0xff, [11] = 0xff } } }; 120557:+ static int valid_mac = 0; 123239:+ static int valid_mac = 0; 137054:+static uint32_t drvr_ver = 0x02200207; 199132:+ static int valid_mac = 0; 222199:+static uint32_t drvr_ver = 0x02200207; 230079:+ path->static_rate = 0; 233078:+static int msi_x = 0; 233728:+ static int mlx4_version_printed = 0; 295634:+static unsigned long pushbutton_pending; /* = 0 */ 357685:+static int port_name_cnt = 0; 477484:+static struct platform_device *tpacpi_pdev = NULL; 477485:+static struct class_device *tpacpi_hwmon = NULL; 693283:+static int port_name_cnt = 0; 701304:+static unsigned insize = 0; /* valid bytes in inbuf */ 701305:+static unsigned inptr = 0; /* index of next byte to be processed in inbuf */ 701306:+static unsigned outcnt = 0; /* bytes in output buffer */ 701345:+static long bytes_out = 0; 701347:+static unsigned long output_ptr = 0; 713413:+static int port_name_cnt = 0; 741773:+static int use_io = 0; 745097:+static=20struct=20{=0A+=09unsigned=20long=20freq;=0A+=09unsigned=20long=20= 745266:+static=20int=20ds1wm_remove(struct=20platform_device=20*pdev)=0A+{=0A+=09= 745276:+static=20int=20__init=20ds1wm_init(void)=0A+{=0A+=09printk("DS1WM=20w1=20= 785553:+ static int skip = 0; 822958:+static int zonelist_order = 0; 843469:+static struct mspeth_phy *root_phy_dev = NULL; 866496:+static int zonelist_order = 0; 898249:+static int need_forkexit_callback = 0; 913549:+static u16 ipl_devno __attribute__((__section__(".data"))) = 0; 917351:+static u16 ipl_devno __attribute__((__section__(".data"))) = 0; 951892:+ static unsigned long last_print = 0; 956426:+ static struct kobject *virtual_dir = NULL; 974962:+ static unsigned long last_print = 0; 998203:+static struct attribute_set *hotkey_dev_attributes = NULL; 1000406:+static struct attribute_set *hotkey_dev_attributes = NULL; Patch is MIME damaged. Resend as plaintext inline. 6951:+ if (system_resuming !=3D 0) 6979:+ if (system_resuming !=3D 0) 7015:+ system_resuming =3D1; 7017:+ system_resuming =3D 0; 7026:+ system_resuming =3D 0; 7027:+ thread =3D kernel_thread(dev_resume_proc,NULL,CLONE_KERNEL); 14725:+ if (cpu_family =3D=3D CPU_HW_PSTATE) 14726:+ khz =3D find_khz_freq_from_fiddid(data->currfid, 14729:+ khz =3D find_khz_freq_from_fid(data->currfid); 23183:+cflags-$(CONFIG_MVIAC7) +=3D -march=3Di686 23375:+cflags-$(CONFIG_MVIAC7) +=3D -march=3Di686 67444:+ if ((unsigned long)(chunksize(av->top)) >=3D 73184:+ if ((unsigned long)(chunksize(av->top)) >=3D 73186:+ heap_info *heap =3D heap_for_ptr(top(av)); 73188:+ assert(heap->ar_ptr =3D=3D av); 93471:+ EOF: while (my $line =3D ) 93473:+ if ($line =3D~ /VERSION\s+=3D\s+(\d+)/) { 93474:+ $version .=3D $1; 93477:+ if ($line =3D~ /PATCHLEVEL\s+=3D\s+(\d+)/) { 93478:+ $version .=3D ".$1"; 93481:+ if ($line =3D~ /SUBLEVEL\s+=3D\s+(\d+)/) { 93482:+ $version .=3D ".$1"; 93485:+ if ($line =3D~ /EXTRAVERSION\s+=3D\s+(.*)$/) { 93486:+ $version .=3D $1; 93501:+ print " " . get_kernel_version() = 93511:+ print " " . get_kernel_version() = 93522:+ print " " . get_kernel_version() = 141216:+static int proc_temp_mode =3D CELSIUS; 141228:+ pcwd_private.card_status=3DENABLED; 141236:+ pcwd_private.card_status=3DDISABLED; 141244:+ if (pcwd_private.card_status =3D=3D ENABLED) 141264:+ *temperature =3D inb(pcwd_private.io_addr); 141275:+ if (temp_mode =3D=3D FAHRENHEIT) 141276:+ *temperature =3D (*temperature * 9 / 5) + 32; 141282:+ *temperature, (temp_mode =3D=3D CELSIUS) ? "C" :"F"); 141298:+ rv =3D send_isa_command(CMD_ISA_RESET_PC); 141300:+ if (!(rv =3D=3D 0xAA)) { 141309:+ pcwd_private.card_status =3D DISABLED; 141318:+ char *new_sub_command =3D sub_command; 141321:+ while (*sub_command =3D=3D ' ') 141323:+ if (sub_command =3D=3D new_sub_command) { 141327:+ i =3D simple_strtoul(sub_command, NULL, 0); 141329:+ if (debug >=3D VERBOSE) 141344:+ char *new_sub_command =3D sub_command; 141345:+ int i =3D 0; 141347:+ while (*sub_command =3D=3D ' ') 141349:+ if (sub_command =3D=3D new_sub_command) { 141358:+ if ((strcmp(sub_command, "0") =3D=3D 0) 141359:+ || (strcmp(sub_command, "immediately") =3D=3D 0)) { 141360:+ if ((i =3D send_isa_command(CMD_ISA_ARM_0)) =3D=3D 0x87) { 141361:+ if (debug >=3D VERBOSE) 141365:+ } else if (strcmp(sub_command, "30") =3D=3D 0) { 141366:+ if ((i =3D send_isa_command(CMD_ISA_ARM_30)) =3D=3D 0x88) { 141367:+ if (debug >=3D VERBOSE) 141371:+ } else if (strcmp(sub_command, "60") =3D=3D 0) { 141372:+ if ((i =3D send_isa_command(CMD_ISA_ARM_60)) !=3D 0x89) { 141373:+ if (debug >=3D VERBOSE) 141384:+ if (i =3D=3D 0xF5) 141410:+ if ((strcmp(user_command, "ping") =3D=3D 0) 141411:+ || (strcmp(user_command, "pong") =3D=3D 0) 141412:+ || (strcmp(user_command, "tickle") =3D=3D 0)) { 141414:+ if (debug >=3D VERBOSE) 141416:+ } else if ((strcmp(user_command, "enable") =3D=3D 0) 141417:+ || (strcmp(user_command, "start") =3D=3D 0)) { 141419:+ if (debug >=3D VERBOSE) 141422:+ } else if ((strcmp(user_command, "disable") =3D=3D 0) 141423:+ || (strcmp(user_command, "stop") =3D=3D 0)) { 141425:+ if (debug >=3D VERBOSE) 141428:+ } else if (strcmp(user_command, "clear") =3D=3D 0) { 141430:+ if (debug >=3D VERBOSE) 141432:+ } else if (strcmp(user_command, "hardreset") =3D=3D 0) { 141434:+ if (debug >=3D VERBOSE) 141436:+ } else if (strcmp(user_command, "quiet") =3D=3D 0) { 141437:+ debug =3D QUIET; 141438:+ } else if (strcmp(user_command, "verbose") =3D=3D 0) { 141439:+ debug =3D VERBOSE; 141441:+ } else if (strcmp(user_command, "debug") =3D=3D 0) { 141442:+ debug =3D DEBUG; 141444:+ } else if (strcmp(user_command, "celsius") =3D=3D 0) { 141445:+ proc_temp_mode =3D CELSIUS; 141446:+ if (debug >=3D VERBOSE) 141448:+ } else if (strcmp(user_command, "fahrenheit") =3D=3D 0) { 141449:+ proc_temp_mode =3D FAHRENHEIT; 141450:+ if (debug >=3D VERBOSE) 141452:+ } else if (strcmp(user_command, "help") =3D=3D 0) { 141454:+ } else if (strncmp(user_command, "arm", 3) =3D=3D 0) { 141455:+ if ((pcwd_private.fw_ver_str[0] >=3D '1') 141456:+ && (pcwd_private.fw_ver_str[2] >=3D '2')) { 141466:+ } else if (strncmp(user_command, "timeout", 7) =3D=3D 0) { 141487:+ if (current->euid !=3D 0) 141496:+ command_buffer[count] =3D '\0'; 141497:+ length =3D strlen(command_buffer); 141498:+ if (command_buffer[length - 1] =3D=3D '\n') 141499:+ command_buffer[--length] =3D '\0'; 141502:+ rc =3D pcwd_user_command(command_buffer); 141512:+ *len +=3D sprintf( buffer+*len, fmt, ##args ); \ 141516:+ *begin +=3D *len; \ 141517:+ *len =3D 0; \ 141529:+ if (pcwd_private.revision =3D=3D PCWD_REVISION_C) { 141532:+ sw =3D pcwd_get_option_switches(); 141572:+ PRINT_PROC((proc_temp_mode =3D=3D CELSIUS) ? "=B0C\n" : "=B0F\n"); 141577:+ if (pcwd_private.card_status =3D=3D ENABLED) 141583:+ if (pcwd_private.revision =3D=3D PCWD_REVISION_A) { 141584:+ sw =3D inb_p(pcwd_private.io_addr) & WD_WDRST; 141586:+ sw =3D inb_p(pcwd_private.io_addr + 1) & WD_REVC_WTRP; 141612:+ int len =3D 0; 141613:+ off_t begin =3D 0; 141616:+ *eof =3D pcwd_proc_info(NULL, buffer, &len, &begin, offset, size); 141619:+ if (offset >=3D begin + len) 141621:+ *start =3D buffer + (offset - begin); // CORRECTED !!!! 141664:+ if ((pcwd_private.proc_pcwd =3D 141667:+ pcwd_private.proc_pcwd->read_proc =3D pcwd_read_proc; 141668:+ pcwd_private.proc_pcwd->write_proc =3D pcwd_write_proc; 141697:+ proc_temp_mode =3D FAHRENHEIT; 174887:+obj-$(CONFIG_FB_LE80578) +=3D vermilion/ 174918:+obj-$(CONFIG_BACKLIGHT_CARILLO_RANCH) +=3D cr_bllcd.o 175000:+ int intensity =3D bd->props.brightness; 175001:+ u32 addr =3D gpio_bar + CRVML_PANEL_PORT; 175002:+ u32 cur =3D inl(addr); 175004:+ if (bd->props.power =3D=3D FB_BLANK_UNBLANK) 175005:+ intensity =3D FB_BLANK_UNBLANK; 175006:+ if (bd->props.fb_blank =3D=3D FB_BLANK_UNBLANK) 175007:+ intensity =3D FB_BLANK_UNBLANK; 175008:+ if (bd->props.power =3D=3D FB_BLANK_POWERDOWN) 175009:+ intensity =3D FB_BLANK_POWERDOWN; 175010:+ if (bd->props.fb_blank =3D=3D FB_BLANK_POWERDOWN) 175011:+ intensity =3D FB_BLANK_POWERDOWN; 175013:+ if (intensity =3D=3D FB_BLANK_UNBLANK) { /* FULL ON */ 175014:+ cur &=3D ~CRVML_BACKLIGHT_OFF; 175016:+ } else if (intensity =3D=3D FB_BLANK_POWERDOWN) { /* OFF */ 175017:+ cur |=3D CRVML_BACKLIGHT_OFF; 175026:+ u32 addr =3D gpio_bar + CRVML_PANEL_PORT; 175027:+ u32 cur =3D inl(addr); 175031:+ intensity =3D FB_BLANK_POWERDOWN; 175033:+ intensity =3D FB_BLANK_UNBLANK; 175038:+static struct backlight_ops cr_backlight_ops =3D { 175039:+ .get_brightness =3D cr_backlight_get_intensity, 175040:+ .update_status =3D cr_backlight_set_intensity, 175045:+ u32 addr =3D gpio_bar + CRVML_PANEL_PORT; 175046:+ u32 cur =3D inl(addr); 175051:+ cur &=3D ~CRVML_LVDS_ON; 175056:+ cur |=3D CRVML_PANEL_ON; 175070:+ u32 addr =3D gpio_bar + CRVML_PANEL_PORT; 175071:+ u32 cur =3D inl(addr); 175075:+ cur &=3D ~CRVML_LVDS_ON; 175086:+ if (power =3D=3D FB_BLANK_UNBLANK) 175088:+ if (power =3D=3D FB_BLANK_POWERDOWN) 175094:+static struct lcd_ops cr_lcd_ops =3D { 175095:+ .set_power =3D cr_lcd_set_power, 175103:+ crp =3D kzalloc(sizeof(crp), GFP_KERNEL); 175104:+ if (crp =3D=3D NULL) 175107:+ lpc_dev =3D pci_get_device(PCI_VENDOR_ID_INTEL, 175122:+ crp->cr_backlight_device =3D backlight_device_register("cr-backlight", 175130:+ crp->cr_lcd_device =3D lcd_device_register("cr-lcd", 175141:+ gpio_bar &=3D ~0x3F; 175143:+ crp->cr_backlight_device->props.power =3D FB_BLANK_UNBLANK; 175144:+ crp->cr_backlight_device->props.brightness =3D 0;=20 175145:+ crp->cr_backlight_device->props.max_brightness =3D 0; 175157:+ struct cr_panel *crp =3D platform_get_drvdata(pdev); 175158:+ crp->cr_backlight_device->props.power =3D FB_BLANK_POWERDOWN; 175159:+ crp->cr_backlight_device->props.brightness =3D 0;=20 175160:+ crp->cr_backlight_device->props.max_brightness =3D 0; 175170:+static struct platform_driver cr_backlight_driver =3D { 175171:+ .probe =3D cr_backlight_probe, 175172:+ .remove =3D cr_backlight_remove, 175173:+ .driver =3D { 175174:+ .name =3D "cr_backlight", 175182:+ int ret =3D platform_driver_register(&cr_backlight_driver); 175185:+ crp =3D platform_device_alloc("cr_backlight", -1); 175189:+ ret =3D platform_device_add(crp); 175221:+obj-$(CONFIG_FB_LE80578) +=3D vmlfb.o 175222:+obj-$(CONFIG_FB_CARILLO_RANCH) +=3D crvml.o 175224:+vmlfb-objs :=3D vermilion.o 175225:+crvml-objs :=3D cr_pll.o 175285:+static const unsigned crvml_clocks[] =3D { 175300:+static const u32 crvml_clock_bits[] =3D { 175312:+static const unsigned crvml_num_clocks =3D ARRAY_SIZE(crvml_clocks); 175316:+ void __iomem *clock_reg =3D mch_regs_base + CRVML_REG_CLOCK; 175326:+ void __iomem *clock_reg =3D mch_regs_base + CRVML_REG_CLOCK; 175328:+ saved_clock =3D ioread32(clock_reg); 175336:+ int cur_index =3D 0; 175340:+ cur_diff =3D clock - crvml_clocks[0]; 175341:+ cur_diff =3D (cur_diff < 0) ? -cur_diff : cur_diff; 175342:+ for (i =3D 1; i < crvml_num_clocks; ++i) { 175343:+ diff =3D clock - crvml_clocks[i]; 175344:+ diff =3D (diff < 0) ? -diff : diff; 175346:+ cur_index =3D i; 175347:+ cur_diff =3D diff; 175360:+ void __iomem *clock_reg =3D mch_regs_base + CRVML_REG_CLOCK; 175364:+ index =3D crvml_nearest_index(sys, clock); 175366:+ if (crvml_clocks[index] !=3D clock) 175369:+ clock_val =3D ioread32(clock_reg) & ~CRVML_CLOCK_MASK; 175370:+ clock_val =3D crvml_clock_bits[index] << CRVML_CLOCK_SHIFT; 175377:+static struct vml_sys cr_pll_ops =3D { 175378:+ .name =3D "Carillo Ranch", 175379:+ .save =3D crvml_sys_save, 175380:+ .restore =3D crvml_sys_restore, 175381:+ .set_clock =3D crvml_set_clock, 175382:+ .nearest_clock =3D crvml_nearest_clock, 175390:+ mch_dev =3D pci_get_device(PCI_VENDOR_ID_INTEL, 175408:+ mch_regs_base =3D 175417:+ err =3D vmlfb_register_subsys(&cr_pll_ops); 175506:+static struct vml_sys *subsys =3D NULL; 175507:+static char *vml_default_mode =3D "1024x768@60"; 175508:+static struct fb_videomode defaultmode =3D { 175513:+static u32 vml_mem_requested =3D (10 * 1024 * 1024); 175514:+static u32 vml_mem_contig =3D (4 * 1024 * 1024); 175515:+static u32 vml_mem_min =3D (4 * 1024 * 1024); 175517:+static u32 vml_clocks[] =3D { 175530:+static u32 vml_num_clocks =3D ARRAY_SIZE(vml_clocks); 175545:+ wc_pageprot =3D PAGE_KERNEL_NOCACHE; 175555:+ flags =3D __GFP_DMA | __GFP_HIGH; 175556:+ va->logical =3D=20 175558:+ } while (va->logical =3D=3D 0 && max_order > min_order); 175563:+ va->phys =3D virt_to_phys((void *)va->logical); 175564:+ va->size =3D PAGE_SIZE << max_order; 175565:+ va->order =3D max_order; 175574:+ for (i =3D va->logical; i < va->logical + va->size; i +=3D PAGE_SIZE) { 175621:+ for (j =3D va->logical; j < va->logical + va->size; 175622:+ j +=3D PAGE_SIZE) { 175631:+ va->logical =3D 0; 175643:+ for (i =3D 0; i < vinfo->num_areas; ++i) { 175646:+ vinfo->num_areas =3D 0; 175669:+ vinfo->num_areas =3D 0; 175670:+ for (i =3D 0; i < VML_VRAM_AREAS; ++i) { 175671:+ va =3D &vinfo->vram[i]; 175672:+ order =3D 0; 175677:+ err =3D vmlfb_alloc_vram_area(va, order, 0); 175682:+ if (i =3D=3D 0) { 175683:+ vinfo->vram_start =3D va->phys; 175684:+ vinfo->vram_logical =3D (void __iomem *) va->logical; 175685:+ vinfo->vram_contig_size =3D va->size; 175686:+ vinfo->num_areas =3D 1; 175688:+ contiguous =3D 0; 175690:+ for (j =3D 0; j < i; ++j) { 175691:+ va2 =3D &vinfo->vram[j]; 175692:+ if (va->phys + va->size =3D=3D va2->phys || 175693:+ va2->phys + va2->size =3D=3D va->phys) { 175694:+ contiguous =3D 1; 175702:+ vinfo->vram_start =3D va->phys; 175703:+ vinfo->vram_logical =3D=20 175706:+ vinfo->vram_contig_size +=3D va->size; 175716:+ requested -=3D va->size; 175746:+ par->gpu =3D pci_get_device(PCI_VENDOR_ID_INTEL, VML_DEVICE_GPU, NULL); 175771:+ for (i =3D 0; i < vinfo->num_areas; ++i) { 175772:+ aoffset =3D offset - (vinfo->vram[i].phys - vinfo->vram_start); 175790:+ par->vdc_mem_base =3D pci_resource_start(par->vdc, 0); 175791:+ par->vdc_mem_size =3D pci_resource_len(par->vdc, 0); 175798:+ par->vdc_mem =3D ioremap_nocache(par->vdc_mem_base, par->vdc_mem_size); 175799:+ if (par->vdc_mem =3D=3D NULL) { 175802:+ err =3D -ENOMEM; 175806:+ par->gpu_mem_base =3D pci_resource_start(par->gpu, 0); 175807:+ par->gpu_mem_size =3D pci_resource_len(par->gpu, 0); 175811:+ err =3D -EBUSY; 175814:+ par->gpu_mem =3D ioremap_nocache(par->gpu_mem_base, par->gpu_mem_size); 175815:+ if (par->gpu_mem =3D=3D NULL) { 175817:+ err =3D -ENOMEM; 175867:+ info =3D pci_get_drvdata(dev); 175869:+ vinfo =3D container_of(info, struct vml_info, info); 175870:+ par =3D vinfo->par; 175887:+ var->blue.offset =3D 0; 175888:+ var->blue.length =3D 5; 175889:+ var->green.offset =3D 5; 175890:+ var->green.length =3D 5; 175891:+ var->red.offset =3D 10; 175892:+ var->red.length =3D 5; 175893:+ var->transp.offset =3D 15; 175894:+ var->transp.length =3D 1; 175897:+ var->blue.offset =3D 0; 175898:+ var->blue.length =3D 8; 175899:+ var->green.offset =3D 8; 175900:+ var->green.length =3D 8; 175901:+ var->red.offset =3D 16; 175902:+ var->red.length =3D 8; 175903:+ var->transp.offset =3D 24; 175904:+ var->transp.length =3D 0; 175910:+ var->blue.msb_right =3D var->green.msb_right =3D 175911:+ var->red.msb_right =3D var->transp.msb_right =3D 0; 175926:+ int err =3D 0; 175928:+ par =3D kzalloc(sizeof(*par), GFP_KERNEL); 175929:+ if (par =3D=3D NULL) 175932:+ vinfo =3D kzalloc(sizeof(*vinfo), GFP_KERNEL); 175933:+ if (vinfo =3D=3D NULL) { 175934:+ err =3D -ENOMEM; 175938:+ vinfo->par =3D par; 175939:+ par->vdc =3D dev; 175944:+ if ((err =3D vmlfb_get_gpu(par))) 175949:+ err =3D -ENODEV; 175954:+ info =3D &vinfo->info; 175955:+ info->flags =3D FBINFO_DEFAULT | FBINFO_PARTIAL_PAN_OK; 175957:+ err =3D vmlfb_enable_mmio(par); 175961:+ err =3D vmlfb_alloc_vram(vinfo, vml_mem_requested, 175967:+ info->fix.mmio_start =3D 0; 175968:+ info->fix.mmio_len =3D 0; 175969:+ info->fix.smem_start =3D vinfo->vram_start; 175970:+ info->fix.smem_len =3D vinfo->vram_contig_size; 175971:+ info->fix.type =3D FB_TYPE_PACKED_PIXELS; 175972:+ info->fix.visual =3D FB_VISUAL_TRUECOLOR; 175973:+ info->fix.ypanstep =3D 1; 175974:+ info->fix.xpanstep =3D 1; 175975:+ info->fix.ywrapstep =3D 0; 175976:+ info->fix.accel =3D FB_ACCEL_NONE; 175977:+ info->screen_base =3D vinfo->vram_logical; 175978:+ info->pseudo_palette =3D vinfo->pseudo_palette; 175979:+ info->par =3D par; 175980:+ info->fbops =3D &vmlfb_ops; 175981:+ info->device =3D &dev->dev; 175984:+ vinfo->pipe_disabled =3D 1; 175985:+ vinfo->cur_blank_mode =3D FB_BLANK_UNBLANK; 175987:+ info->var.grayscale =3D 0; 175988:+ info->var.bits_per_pixel =3D 16; 175997:+ err =3D -ENOMEM; 176001:+ err =3D register_framebuffer(info); 176051:+ cur_index =3D 0; 176052:+ cur_diff =3D clock - vml_clocks[0]; 176053:+ cur_diff =3D (cur_diff < 0) ? -cur_diff : cur_diff; 176054:+ for (i =3D 1; i < vml_num_clocks; ++i) { 176055:+ diff =3D clock - vml_clocks[i]; 176056:+ diff =3D (diff < 0) ? -diff : diff; 176058:+ cur_index =3D i; 176059:+ cur_diff =3D diff; 176075:+ v =3D *var; 176076:+ clock =3D PICOS2KHZ(var->pixclock); 176079:+ nearest_clock =3D subsys->nearest_clock(subsys, clock); 176081:+ nearest_clock =3D vml_nearest_clock(clock); 176088:+ clock_diff =3D nearest_clock - clock; 176089:+ clock_diff =3D (clock_diff < 0) ? -clock_diff : clock_diff; 176098:+ v.pixclock =3D KHZ2PICOS(nearest_clock); 176111:+ v.bits_per_pixel =3D 16; 176114:+ v.bits_per_pixel =3D 32; 176122:+ pitch =3D __ALIGN_MASK((var->xres * var->bits_per_pixel) >> 3, 0x3F); 176123:+ mem =3D pitch * var->yres_virtual; 176130:+ if (var->blue.offset !=3D 0 || 176131:+ var->blue.length !=3D 5 || 176132:+ var->green.offset !=3D 5 || 176133:+ var->green.length !=3D 5 || 176134:+ var->red.offset !=3D 10 || 176135:+ var->red.length !=3D 5 || 176136:+ var->transp.offset !=3D 15 || var->transp.length !=3D 1) { 176141:+ if (var->blue.offset !=3D 0 || 176142:+ var->blue.length !=3D 8 || 176143:+ var->green.offset !=3D 8 || 176144:+ var->green.length !=3D 8 || 176145:+ var->red.offset !=3D 16 || 176146:+ var->red.length !=3D 8 || 176147:+ (var->transp.length !=3D 0 && var->transp.length !=3D 8) || 176148:+ (var->transp.length =3D=3D 8 && var->transp.offset !=3D 24)) { 176156:+ *var =3D v; 176164:+ struct vml_info *vinfo =3D container_of(info, struct vml_info, info); 176168:+ ret =3D vmlfb_check_var_locked(var, vinfo); 176182:+ struct vml_par *par =3D vinfo->par; 176199:+ vinfo->pipe_disabled =3D 1; 176205:+ struct vml_par *par =3D vinfo->par; 176248:+ struct vml_par *par =3D vinfo->par; 176249:+ struct fb_info *info =3D &vinfo->info; 176250:+ struct fb_var_screeninfo *var =3D &info->var; 176256:+ vinfo->bytes_per_pixel =3D var->bits_per_pixel >> 3; 176257:+ vinfo->stride =3D 176259:+ info->fix.line_length =3D vinfo->stride; 176264:+ htotal =3D 176266:+ hactive =3D var->xres; 176267:+ hblank_start =3D var->xres; 176268:+ hblank_end =3D htotal; 176269:+ hsync_start =3D hactive + var->right_margin; 176270:+ hsync_end =3D hsync_start + var->hsync_len; 176272:+ vtotal =3D 176274:+ vactive =3D var->yres; 176275:+ vblank_start =3D var->yres; 176276:+ vblank_end =3D vtotal; 176277:+ vsync_start =3D vactive + var->lower_margin; 176278:+ vsync_end =3D vsync_start + var->vsync_len; 176280:+ dspcntr =3D VML_GFX_ENABLE | VML_GFX_GAMMABYPASS; 176281:+ clock =3D PICOS2KHZ(var->pixclock); 176284:+ clock =3D subsys->nearest_clock(subsys, clock); 176286:+ clock =3D vml_nearest_clock(clock); 176294:+ dspcntr |=3D VML_GFX_ARGB1555; 176297:+ if (var->transp.length =3D=3D 8) 176298:+ dspcntr |=3D VML_GFX_ARGB8888 | VML_GFX_ALPHAMULT; 176300:+ dspcntr |=3D VML_GFX_RGB0888; 176348:+ vinfo->pipe_disabled =3D 0; 176358:+ struct vml_info *vinfo =3D container_of(info, struct vml_info, info); 176364:+ ret =3D vmlfb_set_par_locked(vinfo); 176372:+ struct vml_par *par =3D vinfo->par; 176373:+ u32 cur =3D VML_READ32(par, VML_PIPEACONF); 176410:+ struct vml_info *vinfo =3D container_of(info, struct vml_info, info); 176414:+ vinfo->cur_blank_mode =3D blank_mode; 176415:+ ret =3D vmlfb_blank_locked(vinfo); 176423:+ struct vml_info *vinfo =3D container_of(info, struct vml_info, info); 176424:+ struct vml_par *par =3D vinfo->par; 176442:+ if (regno >=3D 16) 176446:+ red =3D green =3D blue =3D (red * 77 + green * 151 + blue * 28) >> 8; 176449:+ if (info->fix.visual !=3D FB_VISUAL_TRUECOLOR) 176452:+ red =3D VML_TOHW(red, info->var.red.length); 176453:+ blue =3D VML_TOHW(blue, info->var.blue.length); 176454:+ green =3D VML_TOHW(green, info->var.green.length); 176455:+ transp =3D VML_TOHW(transp, info->var.transp.length); 176457:+ v =3D (red << info->var.red.offset) | 176464:+ ((u32 *) info->pseudo_palette)[regno] =3D v; 176468:+ ((u32 *) info->pseudo_palette)[regno] =3D v; 176476:+ struct vml_info *vinfo =3D container_of(info, struct vml_info, info); 176477:+ unsigned long size =3D vma->vm_end - vma->vm_start; 176478:+ unsigned long offset =3D vma->vm_pgoff << PAGE_SHIFT; 176485:+ ret =3D vmlfb_vram_offset(vinfo, offset); 176488:+ offset +=3D vinfo->vram_start; 176489:+ pgprot_val(vma->vm_page_prot) |=3D _PAGE_PCD; 176490:+ pgprot_val(vma->vm_page_prot) &=3D ~_PAGE_PWT; 176491:+ vma->vm_flags |=3D VM_RESERVED | VM_IO; 176508:+static struct fb_ops vmlfb_ops =3D { 176509:+ .owner =3D THIS_MODULE, 176510:+ .fb_open =3D vmlfb_open, 176511:+ .fb_release =3D vmlfb_release, 176512:+ .fb_check_var =3D vmlfb_check_var, 176513:+ .fb_set_par =3D vmlfb_set_par, 176514:+ .fb_blank =3D vmlfb_blank, 176515:+ .fb_pan_display =3D vmlfb_pan_display, 176516:+ .fb_fillrect =3D cfb_fillrect, 176517:+ .fb_copyarea =3D cfb_copyarea, 176518:+ .fb_imageblit =3D cfb_imageblit, 176519:+ .fb_cursor =3D vmlfb_cursor, 176520:+ .fb_sync =3D vmlfb_sync, 176521:+ .fb_mmap =3D vmlfb_mmap, 176522:+ .fb_setcolreg =3D vmlfb_setcolreg 176525:+static struct pci_device_id vml_ids[] =3D { 176530:+static struct pci_driver vmlfb_pci_driver =3D { 176531:+ .name =3D "vmlfb", 176532:+ .id_table =3D vml_ids, 176533:+ .probe =3D vml_pci_probe, 176534:+ .remove =3D __devexit_p(vml_pci_remove) 176546:+ char *option =3D NULL; 176567:+ if (subsys !=3D NULL) { 176570:+ subsys =3D sys; 176578:+ list =3D global_no_mode.next; 176579:+ while (list !=3D &global_no_mode) { 176581:+ entry =3D list_entry(list, struct vml_info, head); 176599:+ save_activate =3D entry->info.var.activate; 176600:+ entry->info.var.bits_per_pixel =3D 16; 176605:+ entry->info.var.activate |=3D 176612:+ entry->info.var.activate =3D save_activate; 176616:+ list =3D global_no_mode.next; 176632:+ if (subsys !=3D sys) { 176637:+ subsys =3D NULL; 180868:+ chip->irq =3D pci->irq; 256507:+ swa.override_redirect =3D 1; 256509:+ win =3D XCreateWindow(dpy, root, X, Y, width, height, 0, 276468:+ unsigned long mod =3D tasks_frozen ? CPU_TASKS_FROZEN : 0; 276477:+ err =3D __raw_notifier_call_chain(&cpu_chain, CPU_DOWN_PREPARE | mod, 276503:+ hcpu) =3D=3D NOTIFY_BAD) 276522:+ err =3D _cpu_down(cpu, 0); 276535:+ unsigned long mod =3D tasks_frozen ? CPU_TASKS_FROZEN : 0; 276542:+ ret =3D __raw_notifier_call_chain(&cpu_chain, CPU_UP_PREPARE | mod, h= 276567:+ err =3D _cpu_up(cpu, 0); 276576:+ error =3D _cpu_down(cpu, 1); 276585:+ error =3D _cpu_up(cpu, 1); 276875:+ if (action =3D=3D CPU_ONLINE || action =3D=3D CPU_ONLINE_FROZEN) 276892:+ if (action =3D=3D CPU_DEAD || action =3D=3D CPU_DEAD_FROZEN) { 277051:+ if (action =3D=3D CPU_DEAD || action =3D=3D CPU_DEAD_FROZEN) 277348:+ if (action =3D=3D CPU_DEAD || action =3D=3D CPU_DEAD_FROZEN) { 277380:+ if (action =3D=3D CPU_DEAD || action =3D=3D CPU_DEAD_FROZEN) { 277396:+ if (action =3D=3D CPU_DEAD || action =3D=3D CPU_DEAD_FROZEN) { 277413:+ if (action =3D=3D CPU_ONLINE || action =3D=3D CPU_ONLINE_FROZEN) { 277450:+ if (action !=3D CPU_DEAD && action !=3D CPU_DEAD_FROZEN) 277467:+ if (action =3D=3D CPU_DEAD || action =3D=3D CPU_DEAD_FROZEN) 278304:+ { USB_DEVICE(0x0baf, 0x0121), .driver_info =3D DEVICE_ZD1211B }, 286366:+ cmd_db2man =3D if grep -q refentry $<; then KERNELVERSION=3D$(KE= 286387:+ $version =3D $ENV{'KERNELVERSION'}; 286400:+ print " " . get_kernel_version() . "= 286410:+ print " " . get_kernel_version() . "= 286421:+ print " " . get_kernel_version() . "= 286727:+ cmd_db2man =3D if grep -q refentry $<; then KERNELVERSION=3D$(KE= 286748:+ $version =3D $ENV{'KERNELVERSION'}; 286761:+ print " " . get_kernel_version() = 286771:+ print " " . get_kernel_version() = 286782:+ print " " . get_kernel_version() = 303435:+ $version =3D $ENV{'KERNELVERSION'}; 303448:+ print " " . get_kernel_version() = 303458:+ print " " . get_kernel_version() = 303469:+ print " " . get_kernel_version() = 362749:+ dev->a_ops.adapter_sync_cmd =3D rx_sync_cmd; 362750:+ dev->a_ops.adapter_enable_int =3D aac_rx_disable_interrupt; 376129:+ class_dev->dev =3D device->dma_device; 550257:+ serror &=3D SERR_PHYRDY_CHG | SERR_DEV_XCHG; 550261:+ ap->hp_poll_data =3D 0; 550280:+ unsigned long state =3D (unsigned long)ap->hp_poll_data; 550282:+ int rc =3D 0; 550285:+ serror &=3D SERR_PHYRDY_CHG | SERR_DEV_XCHG; 550296:+ state =3D 1; 550302:+ rc =3D 1; 550308:+ ap->hp_poll_data =3D (void *)state; 550369:+static unsigned long hotplug_polling_interval =3D 2000; 550449:+ interval =3D hotplug_polling_interval * HZ / 1000; 550450:+ now =3D jiffies; 550475:+ ap->hp_poll_data =3D 0; 550478:+ ap->pflags |=3D ATA_PFLAG_HP_POLL; 550499:+ ap->pflags &=3D ~ATA_PFLAG_HP_POLL; 550508:+ struct ata_host *host =3D 550510:+ int i, nr_to_poll =3D 0; 550515:+ for (i =3D 0; i < host->n_ports; i++) { 550516:+ struct ata_port *ap =3D host->ports[i]; 550525:+ rc =3D ap->ops->hp_poll(ap); 550531:+ ap->pflags &=3D ~ATA_PFLAG_HP_POLL; 550564:+ ATA_FLAG_HP_POLLING =3D (1 << 17), /* hotplug by polling */ 550572:+ ATA_PFLAG_HP_POLL =3D (1 << 7), /* hp-poll active */ 552689:+ serror &=3D SERR_PHYRDY_CHG | SERR_DEV_XCHG; 552693:+ ap->hp_poll_data =3D 0; 552712:+ unsigned long state =3D (unsigned long)ap->hp_poll_data; 552714:+ int rc =3D 0; 552717:+ serror &=3D SERR_PHYRDY_CHG | SERR_DEV_XCHG; 552728:+ state =3D 1; 552734:+ rc =3D 1; 552740:+ ap->hp_poll_data =3D (void *)state; 552801:+static unsigned long hotplug_polling_interval =3D 2000; 552876:+ interval =3D hotplug_polling_interval * HZ / 1000; 552877:+ now =3D jiffies; 552902:+ ap->hp_poll_data =3D 0; 552905:+ ap->pflags |=3D ATA_PFLAG_HP_POLL; 552926:+ ap->pflags &=3D ~ATA_PFLAG_HP_POLL; 552935:+ struct ata_host *host =3D 552937:+ int i, nr_to_poll =3D 0; 552942:+ for (i =3D 0; i < host->n_ports; i++) { 552943:+ struct ata_port *ap =3D host->ports[i]; 552952:+ rc =3D ap->ops->hp_poll(ap); 552958:+ ap->pflags &=3D ~ATA_PFLAG_HP_POLL; 552991:+ ATA_FLAG_HP_POLLING =3D (1 << 17), /* hotplug by polling */ 552999:+ ATA_PFLAG_HP_POLL =3D (1 << 7), /* hp-poll active */ 553156:+ .hp_poll_activate =3D sata_std_hp_poll_activate, 553157:+ .hp_poll =3D sata_std_hp_poll, 553171:+ .hp_poll_activate =3D sata_std_hp_poll_activate, 553172:+ .hp_poll =3D sata_std_hp_poll, 553174:+ .irq_handler =3D nv_nf2_interrupt, 553183:+ .hp_poll_activate =3D sata_std_hp_poll_activate, 553184:+ .hp_poll =3D sata_std_hp_poll, 553186:+ .irq_handler =3D nv_ck804_interrupt, 553198:+ .hp_poll_activate =3D sata_std_hp_poll_activate, 553199:+ .hp_poll =3D sata_std_hp_poll, 553200:+ .irq_handler =3D sil_interrupt, 553212:+ .hp_poll_activate =3D sata_std_hp_poll_activate, 553213:+ .hp_poll =3D sata_std_hp_poll, 553338:+ .hp_poll_activate =3D sata_std_hp_poll_activate, 553339:+ .hp_poll =3D sata_std_hp_poll, 553341:+ .irq_handler =3D nv_generic_interrupt, 553405:+ .hp_poll_activate =3D sata_std_hp_poll_activate, 553406:+ .hp_poll =3D sata_std_hp_poll, 553407:+ .irq_handler =3D ata_interrupt, 553416:+ .flags =3D ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY | 553430:+ .hp_poll_activate =3D sata_std_hp_poll_activate, 553431:+ .hp_poll =3D sata_std_hp_poll, 553432:+ .irq_handler =3D ata_interrupt, 553441:+ probe_ent->sht =3D &k2_sata_sht; 553442:+ probe_ent->port_flags =3D ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY | 553444:+ probe_ent->port_ops =3D &k2_sata_ops; 553445:+ probe_ent->n_ports =3D 4; 553446:+ probe_ent->irq =3D pdev->irq; 553447:+ probe_ent->irq_flags =3D IRQF_SHARED; 553448:+ probe_ent->mmio_base =3D mmio_base; 553453:+ probe_ent->pio_mask =3D 0x1f; 553454:+ probe_ent->mwdma_mask =3D 0x7; 553455:+ probe_ent->udma_mask =3D 0x7f; 553461:+ for (i =3D 0; i < ent->driver_data; i++) 553475:+ .hp_poll_activate =3D sata_std_hp_poll_activate, 553476:+ .hp_poll =3D sata_std_hp_poll, 553478:+ .irq_handler =3D ata_interrupt, 553501:+ .hp_poll_activate =3D sata_std_hp_poll_activate, 553502:+ .hp_poll =3D sata_std_hp_poll, 553503:+ .irq_handler =3D vsc_sata_interrupt, 553514:+ probe_ent->sht =3D &vsc_sata_sht; 553515:+ probe_ent->port_flags =3D ATA_FLAG_SATA | ATA_FLAG_NO_LEGACY | 553517:+ probe_ent->port_ops =3D &vsc_sata_ops; 553518:+ probe_ent->n_ports =3D 4; 553519:+ probe_ent->irq =3D pdev->irq; 553520:+ probe_ent->irq_flags =3D IRQF_SHARED; 553521:+ probe_ent->mmio_base =3D mmio_base; 556259:+ .hp_poll_activate =3D sata_std_hp_poll_activate, 556260:+ .hp_poll =3D sata_std_hp_poll, 578671:+ timeout =3D 0; 578674:+ send_status =3D apic_read(APIC_ICR) & APIC_ICR_BUSY; 578820:+ timeout =3D 0; 578823:+ send_status =3D apic_read(APIC_ICR) & APIC_ICR_BUSY; 658898:+ void *value =3D bat->get_property(bat, BATTERY_PROP_##prop); \ 745231:+=09=09return=20-ENODEV;=0A+=0A+=09ds1wm_data=20=3D=20kzalloc(sizeof=20= 745236:+=09ds1wm_data->map=20=3D=20ioremap(res->start,=20res->end=20-=20= 745250:+=09if=20(!ds1wm_data->clk)=20{=0A+=09=09ret=20=3D=20-ENOENT;=0A+=09=09= 745273:+=09=09.name=20=3D=20"ds1wm",=0A+=09},=0A+=09.probe=20=20=20=20=3D=20= 758924:+ spinlock_t *ptl =3D NULL; 990034:+ 990038:+
990049:+ Linutronix 990081:+ 990082:+ 990085:+ 990086:+ 990096:+ 990097:+ 990106:+ 990127:+ 990136:+ 990144:+ 990145:+ 990172:+ 990294:+ 990295:+offset =3D N * getpagesize(); 990301:+ 990302:+ 990311:+ 990342:+ 990353:+ 990363:+ 990493:+ 990542:+ 990546:+ 990696:+obj-$(CONFIG_UIO) +=3D uio.o 990697:+obj-$(CONFIG_UIO_CIF) +=3D uio_cif.o 990739:+ void __iomem *plx_intscr =3D dev_info->mem[0].internal_addr 990743:+ !=3D INT1_ENABLED_AND_ACTIVE) 990756:+ info =3D kzalloc(sizeof(struct uio_info), GFP_KERNEL); 990766:+ info->mem[0].addr =3D pci_resource_start(dev, 0); 990769:+ info->mem[0].internal_addr =3D ioremap_nocache(pci_resource_start(dev= 990775:+ info->mem[0].size =3D pci_resource_len(dev, 0); 990776:+ info->mem[0].memtype =3D UIO_MEM_PHYS; 990777:+ info->mem[1].addr =3D pci_resource_start(dev, 2); 990778:+ info->mem[1].size =3D pci_resource_len(dev, 2); 990779:+ info->mem[1].memtype =3D UIO_MEM_PHYS; 990782:+ info->name =3D "CIF_Profibus"; 990785:+ info->name =3D "CIF_Devicenet"; 990788:+ info->name =3D "CIF_???"; 990790:+ info->version =3D "0.0.1"; 990791:+ info->irq =3D dev->irq; 990792:+ info->irq_flags =3D IRQF_DISABLED | IRQF_SHARED; 990793:+ info->handler =3D hilscher_handler; 990814:+ struct uio_info *info =3D pci_get_drvdata(dev); 990825:+static struct pci_device_id hilscher_pci_ids[] =3D { 990827:+ .vendor =3D PCI_VENDOR_ID_PLX, 990828:+ .device =3D PCI_DEVICE_ID_PLX_9030, 990829:+ .subvendor =3D PCI_SUBVENDOR_ID_PEP, 990830:+ .subdevice =3D CIF_SUBDEVICE_PROFIBUS, 990833:+ .vendor =3D PCI_VENDOR_ID_PLX, 990834:+ .device =3D PCI_DEVICE_ID_PLX_9030, 990835:+ .subvendor =3D PCI_SUBVENDOR_ID_PEP, 990836:+ .subdevice =3D CIF_SUBDEVICE_DEVICENET, 990841:+static struct pci_driver hilscher_pci_driver =3D { 990842:+ .name =3D "hilscher", 990843:+ .id_table =3D hilscher_pci_ids, 990844:+ .probe =3D hilscher_pci_probe, 990845:+ .remove =3D hilscher_pci_remove, 1015 warnings