Home
last modified time | relevance | path

Searched refs:brd (Results 1 – 12 of 12) sorted by relevance

/drivers/block/
Dbrd.c55 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 …]
DMakefile16 obj-$(CONFIG_BLK_DEV_RAM) += brd.o
/drivers/tty/serial/jsm/
Djsm_driver.c70 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()
97 brd->maxports = 4; in jsm_probe_one()
99 brd->maxports = 8; in jsm_probe_one()
101 brd->maxports = 2; in jsm_probe_one()
103 spin_lock_init(&brd->bd_intr_lock); in jsm_probe_one()
106 brd->rev = pdev->revision; in jsm_probe_one()
[all …]
Djsm_tty.c201 struct jsm_board *brd; in jsm_tty_open() local
206 brd = channel->ch_bd; in jsm_tty_open()
246 brd->bd_ops->flush_uart_write(channel); in jsm_tty_open()
247 brd->bd_ops->flush_uart_read(channel); in jsm_tty_open()
262 brd->bd_ops->uart_init(channel); in jsm_tty_open()
267 brd->bd_ops->param(channel); in jsm_tty_open()
374 int jsm_tty_init(struct jsm_board *brd) in jsm_tty_init() argument
380 if (!brd) in jsm_tty_init()
383 jsm_dbg(INIT, &brd->pci_dev, "start\n"); in jsm_tty_init()
389 brd->nasync = brd->maxports; in jsm_tty_init()
[all …]
Djsm_neo.c722 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/tty/
Dmxser.c2219 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 …]
Dmoxa.c64 #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/scsi/
Dgdth.c766 ha->brd = ioremap(bios_adr, sizeof(gdt2_dpram_str)); in gdth_init_isa()
767 if (ha->brd == NULL) { in gdth_init_isa()
771 dp2_ptr = ha->brd; in gdth_init_isa()
777 iounmap(ha->brd); in gdth_init_isa()
812 iounmap(ha->brd); in gdth_init_isa()
822 iounmap(ha->brd); in gdth_init_isa()
844 iounmap(ha->brd); in gdth_init_isa()
882 ha->brd = ioremap(pcistr->dpmem, sizeof(gdt6_dpram_str)); in gdth_init_pci()
883 if (ha->brd == NULL) { in gdth_init_pci()
888 dp6_ptr = ha->brd; in gdth_init_pci()
[all …]
Dgdth.h849 void __iomem *brd; /* DPRAM address */ member
/drivers/net/irda/
Dsa1100_ir.c548 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/
Ddw_mmc.c845 struct dw_mci_board *brd = slot->host->pdata; in dw_mci_get_ro() local
850 else if (brd->get_ro) in dw_mci_get_ro()
851 read_only = brd->get_ro(slot->id); in dw_mci_get_ro()
868 struct dw_mci_board *brd = slot->host->pdata; in dw_mci_get_cd() local
871 if (brd->quirks & DW_MCI_QUIRK_BROKEN_CARD_DETECTION) in dw_mci_get_cd()
873 else if (brd->get_cd) in dw_mci_get_cd()
874 present = !brd->get_cd(slot->id); in dw_mci_get_cd()
/drivers/staging/sb105x/
Dsb_pci_mp.c108 static int init_mp_dev(struct pci_dev *pcidev, mppcibrd_t brd);
2919 static int init_mp_dev(struct pci_dev *pcidev, mppcibrd_t brd) in init_mp_dev() argument
2926 sbdev->device_id = brd.device_id; in init_mp_dev()
2928 sbdev->name = brd.name; in init_mp_dev()
2952 if ((brd.device_id & 0x0800) || !(brd.device_id &0xff00)) in init_mp_dev()
2962 switch(brd.device_id){ in init_mp_dev()