/drivers/staging/dgnc/ |
D | dgnc_driver.c | 68 static int dgnc_finalize_board_init(struct dgnc_board *brd); 71 static void dgnc_cleanup_board(struct dgnc_board *brd); 74 static void dgnc_do_remap(struct dgnc_board *brd); 325 static void dgnc_cleanup_board(struct dgnc_board *brd) in dgnc_cleanup_board() argument 329 if (!brd || brd->magic != DGNC_BOARD_MAGIC) in dgnc_cleanup_board() 332 switch (brd->device) { in dgnc_cleanup_board() 339 outb(0, brd->iobase + 0x4c); in dgnc_cleanup_board() 346 if (brd->irq) in dgnc_cleanup_board() 347 free_irq(brd->irq, brd); in dgnc_cleanup_board() 349 tasklet_kill(&brd->helper_tasklet); in dgnc_cleanup_board() [all …]
|
D | dgnc_tty.c | 194 int dgnc_tty_register(struct dgnc_board *brd) in dgnc_tty_register() argument 198 brd->SerialDriver.magic = TTY_DRIVER_MAGIC; in dgnc_tty_register() 200 snprintf(brd->SerialName, MAXTTYNAMELEN, "tty_dgnc_%d_", brd->boardnum); in dgnc_tty_register() 202 brd->SerialDriver.name = brd->SerialName; in dgnc_tty_register() 203 brd->SerialDriver.name_base = 0; in dgnc_tty_register() 204 brd->SerialDriver.major = 0; in dgnc_tty_register() 205 brd->SerialDriver.minor_start = 0; in dgnc_tty_register() 206 brd->SerialDriver.num = brd->maxports; in dgnc_tty_register() 207 brd->SerialDriver.type = TTY_DRIVER_TYPE_SERIAL; in dgnc_tty_register() 208 brd->SerialDriver.subtype = SERIAL_TYPE_NORMAL; in dgnc_tty_register() [all …]
|
D | dgnc_mgmt.c | 149 int brd; in dgnc_mgmt_ioctl() local 153 if (copy_from_user(&brd, uarg, sizeof(int))) in dgnc_mgmt_ioctl() 156 if ((brd < 0) || (brd > dgnc_NumBoards) || in dgnc_mgmt_ioctl() 162 di.info_bdnum = brd; in dgnc_mgmt_ioctl() 164 spin_lock_irqsave(&dgnc_Board[brd]->bd_lock, flags); in dgnc_mgmt_ioctl() 166 di.info_bdtype = dgnc_Board[brd]->dpatype; in dgnc_mgmt_ioctl() 167 di.info_bdstate = dgnc_Board[brd]->dpastatus; in dgnc_mgmt_ioctl() 169 di.info_physaddr = (ulong) dgnc_Board[brd]->membase; in dgnc_mgmt_ioctl() 170 di.info_physsize = (ulong) dgnc_Board[brd]->membase - dgnc_Board[brd]->membase_end; in dgnc_mgmt_ioctl() 171 if (dgnc_Board[brd]->state != BOARD_FAILED) in dgnc_mgmt_ioctl() [all …]
|
D | dgnc_neo.c | 45 static inline void neo_parse_lsr(struct dgnc_board *brd, uint port); 46 static inline void neo_parse_isr(struct dgnc_board *brd, uint port); 58 static void neo_vpd(struct dgnc_board *brd); 400 static inline void neo_parse_isr(struct dgnc_board *brd, uint port) in neo_parse_isr() argument 407 if (!brd || brd->magic != DGNC_BOARD_MAGIC) in neo_parse_isr() 410 if (port > brd->maxports) in neo_parse_isr() 413 ch = brd->channels[port]; in neo_parse_isr() 433 brd->intr_rx++; in neo_parse_isr() 444 brd->intr_tx++; in neo_parse_isr() 463 if (brd->channels[port]->ch_flags & CH_STOP) { in neo_parse_isr() [all …]
|
D | dgnc_cls.c | 45 static inline void cls_parse_isr(struct dgnc_board *brd, uint port); 55 static void cls_vpd(struct dgnc_board *brd); 398 static inline void cls_parse_isr(struct dgnc_board *brd, uint port) in cls_parse_isr() argument 409 if (port > brd->nasync) in cls_parse_isr() 412 ch = brd->channels[port]; in cls_parse_isr() 428 brd->intr_rx++; in cls_parse_isr() 439 brd->intr_tx++; in cls_parse_isr() 447 brd->intr_modem++; in cls_parse_isr() 797 struct dgnc_board *brd = (struct dgnc_board *) voidbrd; in cls_intr() local 802 if (!brd) { in cls_intr() [all …]
|
D | dgnc_tty.h | 27 int dgnc_tty_register(struct dgnc_board *brd);
|
D | dgnc_driver.h | 177 void (*vpd)(struct dgnc_board *brd);
|
/drivers/block/ |
D | brd.c | 55 static struct page *brd_lookup_page(struct brd_device *brd, sector_t sector) in brd_lookup_page() argument 73 page = radix_tree_lookup(&brd->brd_pages, idx); in brd_lookup_page() 86 static struct page *brd_insert_page(struct brd_device *brd, sector_t sector) in brd_insert_page() argument 92 page = brd_lookup_page(brd, sector); in brd_insert_page() 118 spin_lock(&brd->brd_lock); in brd_insert_page() 121 if (radix_tree_insert(&brd->brd_pages, idx, page)) { in brd_insert_page() 123 page = radix_tree_lookup(&brd->brd_pages, idx); in brd_insert_page() 127 spin_unlock(&brd->brd_lock); in brd_insert_page() 134 static void brd_free_page(struct brd_device *brd, sector_t sector) in brd_free_page() argument 139 spin_lock(&brd->brd_lock); in brd_free_page() [all …]
|
D | Makefile | 16 obj-$(CONFIG_BLK_DEV_RAM) += brd.o
|
D | Kconfig | 373 module will be called brd. An alias "rd" has been defined
|
/drivers/tty/serial/jsm/ |
D | jsm_driver.c | 70 struct jsm_board *brd; in jsm_probe_one() local 85 brd = kzalloc(sizeof(struct jsm_board), GFP_KERNEL); in jsm_probe_one() 86 if (!brd) { in jsm_probe_one() 94 brd->boardnum = adapter_count++; in jsm_probe_one() 95 brd->pci_dev = pdev; in jsm_probe_one() 104 brd->maxports = 2; in jsm_probe_one() 111 brd->maxports = 4; in jsm_probe_one() 117 brd->maxports = 8; in jsm_probe_one() 121 brd->maxports = 1; in jsm_probe_one() 125 spin_lock_init(&brd->bd_intr_lock); in jsm_probe_one() [all …]
|
D | jsm_tty.c | 196 struct jsm_board *brd; in jsm_tty_open() local 201 brd = channel->ch_bd; in jsm_tty_open() 241 brd->bd_ops->flush_uart_write(channel); in jsm_tty_open() 242 brd->bd_ops->flush_uart_read(channel); in jsm_tty_open() 257 brd->bd_ops->uart_init(channel); in jsm_tty_open() 262 brd->bd_ops->param(channel); in jsm_tty_open() 368 int jsm_tty_init(struct jsm_board *brd) in jsm_tty_init() argument 374 if (!brd) in jsm_tty_init() 377 jsm_dbg(INIT, &brd->pci_dev, "start\n"); in jsm_tty_init() 383 brd->nasync = brd->maxports; in jsm_tty_init() [all …]
|
D | jsm_neo.c | 722 static inline void neo_parse_isr(struct jsm_board *brd, u32 port) in neo_parse_isr() argument 729 if (!brd) in neo_parse_isr() 732 if (port > brd->maxports) in neo_parse_isr() 735 ch = brd->channels[port]; in neo_parse_isr() 789 if (brd->channels[port]->ch_flags & CH_STOP) { in neo_parse_isr() 797 if (!(brd->channels[port]->ch_flags & CH_STOP)) { in neo_parse_isr() 839 static inline void neo_parse_lsr(struct jsm_board *brd, u32 port) in neo_parse_lsr() argument 845 if (!brd) in neo_parse_lsr() 848 if (port > brd->maxports) in neo_parse_lsr() 851 ch = brd->channels[port]; in neo_parse_lsr() [all …]
|
/drivers/staging/dgap/ |
D | dgap.c | 77 static void dgap_cleanup_board(struct board_t *brd); 81 static int dgap_do_remap(struct board_t *brd); 82 static void dgap_release_remap(struct board_t *brd); 129 static int dgap_tty_register(struct board_t *brd); 130 static void dgap_tty_unregister(struct board_t *brd); 183 static void dgap_do_bios_load(struct board_t *brd, const u8 *ubios, int len); 184 static void dgap_do_fep_load(struct board_t *brd, const u8 *ufep, int len); 186 static void dgap_do_conc_load(struct board_t *brd, u8 *uaddr, int len); 188 static int dgap_alloc_flipbuf(struct board_t *brd); 189 static void dgap_free_flipbuf(struct board_t *brd); [all …]
|
/drivers/tty/ |
D | mxser.c | 2219 struct mxser_board *brd = NULL; in mxser_interrupt() local 2228 brd = dev_id; in mxser_interrupt() 2234 if (brd == NULL) in mxser_interrupt() 2236 max = brd->info->nports; in mxser_interrupt() 2238 irqbits = inb(brd->vector) & brd->vector_mask; in mxser_interrupt() 2239 if (irqbits == brd->vector_mask) in mxser_interrupt() 2244 if (irqbits == brd->vector_mask) in mxser_interrupt() 2248 port = &brd->ports[i]; in mxser_interrupt() 2355 static bool mxser_overlapping_vector(struct mxser_board *brd) in mxser_overlapping_vector() argument 2358 brd->vector >= brd->ports[0].ioaddr && in mxser_overlapping_vector() [all …]
|
D | moxa.c | 64 #define MOXA_IS_320(brd) ((brd)->boardType == MOXA_BOARD_C320_ISA || \ argument 65 (brd)->boardType == MOXA_BOARD_C320_PCI) 438 static int moxa_check_fw_model(struct moxa_board_conf *brd, u8 model) in moxa_check_fw_model() argument 440 switch (brd->boardType) { in moxa_check_fw_model() 470 static int moxa_load_bios(struct moxa_board_conf *brd, const u8 *buf, in moxa_load_bios() argument 473 void __iomem *baseAddr = brd->basemem; in moxa_load_bios() 484 switch (brd->boardType) { in moxa_load_bios() 515 static int moxa_load_320b(struct moxa_board_conf *brd, const u8 *ptr, in moxa_load_320b() argument 518 void __iomem *baseAddr = brd->basemem; in moxa_load_320b() 534 static int moxa_real_load_code(struct moxa_board_conf *brd, const void *ptr, in moxa_real_load_code() argument [all …]
|
/drivers/cpufreq/ |
D | s3c24xx-cpufreq-debugfs.c | 40 struct s3c_cpufreq_board *brd; in board_show() local 48 brd = cfg->board; in board_show() 49 if (!brd) { in board_show() 54 seq_printf(seq, "SDRAM refresh %u ns\n", brd->refresh); in board_show() 55 seq_printf(seq, "auto_io=%u\n", brd->auto_io); in board_show() 56 seq_printf(seq, "need_io=%u\n", brd->need_io); in board_show() 58 show_max(seq, &brd->max); in board_show()
|
/drivers/scsi/ |
D | gdth.c | 764 ha->brd = ioremap(bios_adr, sizeof(gdt2_dpram_str)); in gdth_init_isa() 765 if (ha->brd == NULL) { in gdth_init_isa() 769 dp2_ptr = ha->brd; in gdth_init_isa() 775 iounmap(ha->brd); in gdth_init_isa() 810 iounmap(ha->brd); in gdth_init_isa() 820 iounmap(ha->brd); in gdth_init_isa() 842 iounmap(ha->brd); in gdth_init_isa() 880 ha->brd = ioremap(pcistr->dpmem, sizeof(gdt6_dpram_str)); in gdth_init_pci() 881 if (ha->brd == NULL) { in gdth_init_pci() 886 dp6_ptr = ha->brd; in gdth_init_pci() [all …]
|
D | gdth.h | 849 void __iomem *brd; /* DPRAM address */ member
|
/drivers/net/irda/ |
D | sa1100_ir.c | 548 int brd, ret = -EINVAL; in sa1100_irda_set_speed() local 553 brd = 3686400 / (16 * speed) - 1; in sa1100_irda_set_speed() 567 Ser2UTCR1 = brd >> 8; in sa1100_irda_set_speed() 568 Ser2UTCR2 = brd; in sa1100_irda_set_speed()
|
/drivers/mmc/host/ |
D | dw_mmc.c | 1122 struct dw_mci_board *brd = slot->host->pdata; in dw_mci_get_cd() local 1127 if (brd->quirks & DW_MCI_QUIRK_BROKEN_CARD_DETECTION) in dw_mci_get_cd()
|