• Home
  • Raw
  • Download

Lines Matching refs:dp

40 #define write_ind(num, val, ap, dp)	do { \  argument
41 outb((num), (ap)); outb((val), (dp)); \
43 #define read_ind(num, var, ap, dp) do { \ argument
44 outb((num), (ap)); var = inb((dp)); \
75 static int chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *);
350 static int chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *ent) in chipsfb_pci_init() argument
357 if (pci_enable_device(dp) < 0) { in chipsfb_pci_init()
358 dev_err(&dp->dev, "Cannot enable PCI device\n"); in chipsfb_pci_init()
362 if ((dp->resource[0].flags & IORESOURCE_MEM) == 0) in chipsfb_pci_init()
364 addr = pci_resource_start(dp, 0); in chipsfb_pci_init()
365 size = pci_resource_len(dp, 0); in chipsfb_pci_init()
369 p = framebuffer_alloc(0, &dp->dev); in chipsfb_pci_init()
371 dev_err(&dp->dev, "Cannot allocate framebuffer structure\n"); in chipsfb_pci_init()
376 if (pci_request_region(dp, 0, "chipsfb") != 0) { in chipsfb_pci_init()
377 dev_err(&dp->dev, "Cannot request framebuffer\n"); in chipsfb_pci_init()
389 pci_read_config_word(dp, PCI_COMMAND, &cmd); in chipsfb_pci_init()
391 pci_write_config_word(dp, PCI_COMMAND, cmd); in chipsfb_pci_init()
409 dev_err(&dp->dev, "Cannot map framebuffer\n"); in chipsfb_pci_init()
414 pci_set_drvdata(dp, p); in chipsfb_pci_init()
419 dev_err(&dp->dev,"C&T 65550 framebuffer failed to register\n"); in chipsfb_pci_init()
423 dev_info(&dp->dev,"fb%d: Chips 65550 frame buffer" in chipsfb_pci_init()
432 pci_release_region(dp, 0); in chipsfb_pci_init()
440 static void chipsfb_remove(struct pci_dev *dp) in chipsfb_remove() argument
442 struct fb_info *p = pci_get_drvdata(dp); in chipsfb_remove()
449 pci_release_region(dp, 0); in chipsfb_remove()