Home
last modified time | relevance | path

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

12

/linux-2.6.39/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.c188 struct jsm_board *brd; in jsm_tty_open() local
193 brd = channel->ch_bd; in jsm_tty_open()
242 brd->bd_ops->flush_uart_write(channel); in jsm_tty_open()
243 brd->bd_ops->flush_uart_read(channel); in jsm_tty_open()
258 brd->bd_ops->uart_init(channel); in jsm_tty_open()
263 brd->bd_ops->param(channel); in jsm_tty_open()
370 int __devinit jsm_tty_init(struct jsm_board *brd) in jsm_tty_init() argument
376 if (!brd) in jsm_tty_init()
379 jsm_printk(INIT, INFO, &brd->pci_dev, "start\n"); in jsm_tty_init()
385 brd->nasync = brd->maxports; in jsm_tty_init()
[all …]
Djsm_neo.c718 static inline void neo_parse_isr(struct jsm_board *brd, u32 port) in neo_parse_isr() argument
725 if (!brd) in neo_parse_isr()
728 if (port > brd->maxports) in neo_parse_isr()
731 ch = brd->channels[port]; in neo_parse_isr()
784 if (brd->channels[port]->ch_flags & CH_STOP) { in neo_parse_isr()
791 if (!(brd->channels[port]->ch_flags & CH_STOP)) { in neo_parse_isr()
832 static inline void neo_parse_lsr(struct jsm_board *brd, u32 port) in neo_parse_lsr() argument
838 if (!brd) in neo_parse_lsr()
841 if (port > brd->maxports) in neo_parse_lsr()
844 ch = brd->channels[port]; in neo_parse_lsr()
[all …]
/linux-2.6.39/drivers/block/
Dbrd.c59 static struct page *brd_lookup_page(struct brd_device *brd, sector_t sector) in brd_lookup_page() argument
77 page = radix_tree_lookup(&brd->brd_pages, idx); in brd_lookup_page()
90 static struct page *brd_insert_page(struct brd_device *brd, sector_t sector) in brd_insert_page() argument
96 page = brd_lookup_page(brd, sector); in brd_insert_page()
122 spin_lock(&brd->brd_lock); in brd_insert_page()
124 if (radix_tree_insert(&brd->brd_pages, idx, page)) { in brd_insert_page()
126 page = radix_tree_lookup(&brd->brd_pages, idx); in brd_insert_page()
131 spin_unlock(&brd->brd_lock); in brd_insert_page()
138 static void brd_free_page(struct brd_device *brd, sector_t sector) in brd_free_page() argument
143 spin_lock(&brd->brd_lock); in brd_free_page()
[all …]
DMakefile16 obj-$(CONFIG_BLK_DEV_RAM) += brd.o
/linux-2.6.39/arch/mips/sgi-ip27/
Dip27-smp.c40 static nasid_t get_actual_nasid(lboard_t *brd) in get_actual_nasid() argument
44 if (!brd) in get_actual_nasid()
48 hub = (klhub_t *)find_first_component(brd, KLSTRUCT_HUB); in get_actual_nasid()
54 return brd->brd_nasid; in get_actual_nasid()
60 lboard_t *brd; in do_cpumask() local
65 brd = find_lboard((lboard_t *)KL_CONFIG_INFO(nasid), KLTYPE_IP27); in do_cpumask()
68 acpu = (klcpu_t *)find_first_component(brd, KLSTRUCT_CPU); in do_cpumask()
72 if (get_actual_nasid(brd) == brd->brd_nasid) in do_cpumask()
84 acpu = (klcpu_t *)find_component(brd, (klinfo_t *)acpu, in do_cpumask()
87 brd = KLCF_NEXT(brd); in do_cpumask()
[all …]
Dip27-klconfig.c18 klinfo_t *find_component(lboard_t *brd, klinfo_t *kli, unsigned char struct_type) in find_component() argument
25 for (j = 0; j < KLCF_NUM_COMPS(brd); j++) in find_component()
26 if (kli == KLCF_COMP(brd, j)) in find_component()
29 if (index == KLCF_NUM_COMPS(brd)) { in find_component()
36 for (; index < KLCF_NUM_COMPS(brd); index++) { in find_component()
37 kli = KLCF_COMP(brd, index); in find_component()
46 klinfo_t *find_first_component(lboard_t *brd, unsigned char struct_type) in find_first_component() argument
48 return find_component(brd, (klinfo_t *)NULL, struct_type); in find_first_component()
83 lboard_t *brd; in nasid_slice_to_cpuinfo() local
86 if (!(brd = find_lboard((lboard_t *)KL_CONFIG_INFO(nasid), KLTYPE_IP27))) in nasid_slice_to_cpuinfo()
[all …]
Dip27-memory.c75 lboard_t *brd; in router_recurse() local
90 brd = (lboard_t *)NODE_OFFSET_TO_K0( in router_recurse()
94 if (brd->brd_type == KLTYPE_ROUTER) { in router_recurse()
95 router = (klrou_t *)NODE_OFFSET_TO_K0(NASID_GET(brd), brd->brd_compts[0]); in router_recurse()
113 lboard_t *brd, *dest_brd; in compute_node_distance() local
124 brd = find_lboard_class((lboard_t *)KL_CONFIG_INFO(nasid), in compute_node_distance()
127 if (!brd) in compute_node_distance()
131 if (brd->brd_flags & DUPLICATE_BOARD) in compute_node_distance()
134 router = (klrou_t *)NODE_OFFSET_TO_K0(NASID_GET(brd), brd->brd_compts[0]); in compute_node_distance()
153 } while ((brd = find_lboard_class(KLCF_NEXT(brd), KLTYPE_ROUTER))); in compute_node_distance()
[all …]
Dip27-xtalk.c52 lboard_t *brd; in xbow_probe() local
62 brd = find_lboard((lboard_t *)KL_CONFIG_INFO(nasid), KLTYPE_MIDPLANE8); in xbow_probe()
63 if (!brd) in xbow_probe()
66 xbow_p = (klxbow_t *)find_component(brd, NULL, KLSTRUCT_XBOW); in xbow_probe()
/linux-2.6.39/drivers/tty/
Dmoxa.c64 #define MOXA_IS_320(brd) ((brd)->boardType == MOXA_BOARD_C320_ISA || \ argument
65 (brd)->boardType == MOXA_BOARD_C320_PCI)
437 static int moxa_check_fw_model(struct moxa_board_conf *brd, u8 model) in moxa_check_fw_model() argument
439 switch (brd->boardType) { in moxa_check_fw_model()
469 static int moxa_load_bios(struct moxa_board_conf *brd, const u8 *buf, in moxa_load_bios() argument
472 void __iomem *baseAddr = brd->basemem; in moxa_load_bios()
483 switch (brd->boardType) { in moxa_load_bios()
514 static int moxa_load_320b(struct moxa_board_conf *brd, const u8 *ptr, in moxa_load_320b() argument
517 void __iomem *baseAddr = brd->basemem; in moxa_load_320b()
533 static int moxa_real_load_code(struct moxa_board_conf *brd, const void *ptr, in moxa_real_load_code() argument
[all …]
Dmxser.c2222 struct mxser_board *brd = NULL; in mxser_interrupt() local
2231 brd = dev_id; in mxser_interrupt()
2237 if (brd == NULL) in mxser_interrupt()
2239 max = brd->info->nports; in mxser_interrupt()
2241 irqbits = inb(brd->vector) & brd->vector_mask; in mxser_interrupt()
2242 if (irqbits == brd->vector_mask) in mxser_interrupt()
2247 if (irqbits == brd->vector_mask) in mxser_interrupt()
2251 port = &brd->ports[i]; in mxser_interrupt()
2354 static void mxser_release_ISA_res(struct mxser_board *brd) in mxser_release_ISA_res() argument
2356 free_irq(brd->irq, brd); in mxser_release_ISA_res()
[all …]
/linux-2.6.39/arch/arm/plat-s3c24xx/
Dcpu-freq-debugfs.c41 struct s3c_cpufreq_board *brd; in board_show() local
49 brd = cfg->board; in board_show()
50 if (!brd) { in board_show()
55 seq_printf(seq, "SDRAM refresh %u ns\n", brd->refresh); in board_show()
56 seq_printf(seq, "auto_io=%u\n", brd->auto_io); in board_show()
57 seq_printf(seq, "need_io=%u\n", brd->need_io); in board_show()
59 show_max(seq, &brd->max); in board_show()
/linux-2.6.39/arch/ia64/include/asm/sn/
Dklconfig.h239 static inline lboard_t *find_lboard_next(lboard_t * brd) in find_lboard_next() argument
241 if (brd && brd->brd_next_any) in find_lboard_next()
242 return NODE_OFFSET_TO_LBOARD(NASID_GET(brd), brd->brd_next_any); in find_lboard_next()
/linux-2.6.39/arch/ia64/sn/kernel/
Dsetup.c702 lboard_t *brd; in build_cnode_tables() local
736 brd = NODE_OFFSET_TO_LBOARD(nasid, klgraph_header->ch_board_info); in build_cnode_tables()
737 while (brd) { in build_cnode_tables()
738 if (board_needs_cnode(brd->brd_type) && physical_node_map[brd->brd_nasid] < 0) { in build_cnode_tables()
739 sn_cnodeid_to_nasid[num_cnodes] = brd->brd_nasid; in build_cnode_tables()
740 physical_node_map[brd->brd_nasid] = num_cnodes++; in build_cnode_tables()
742 brd = find_lboard_next(brd); in build_cnode_tables()
/linux-2.6.39/drivers/scsi/
Dgdth.c767 ha->brd = ioremap(bios_adr, sizeof(gdt2_dpram_str)); in gdth_init_isa()
768 if (ha->brd == NULL) { in gdth_init_isa()
772 dp2_ptr = ha->brd; in gdth_init_isa()
778 iounmap(ha->brd); in gdth_init_isa()
813 iounmap(ha->brd); in gdth_init_isa()
823 iounmap(ha->brd); in gdth_init_isa()
845 iounmap(ha->brd); in gdth_init_isa()
883 ha->brd = ioremap(pcistr->dpmem, sizeof(gdt6_dpram_str)); in gdth_init_pci()
884 if (ha->brd == NULL) { in gdth_init_pci()
889 dp6_ptr = ha->brd; in gdth_init_pci()
[all …]
Dgdth.h858 void __iomem *brd; /* DPRAM address */ member
/linux-2.6.39/include/linux/
Dcomstats.h36 unsigned long brd; member
85 unsigned long brd; member
/linux-2.6.39/drivers/staging/tty/
Depca.c1929 int brd; in info_ioctl() local
1931 if (get_user(brd, (unsigned int __user *)arg)) in info_ioctl()
1933 if (brd < 0 || brd >= num_cards || num_cards == 0) in info_ioctl()
1938 di.board = brd; in info_ioctl()
1939 di.status = boards[brd].status; in info_ioctl()
1940 di.type = boards[brd].type ; in info_ioctl()
1941 di.numports = boards[brd].numports ; in info_ioctl()
1943 di.port = (unsigned char *)boards[brd].port ; in info_ioctl()
1944 di.membase = (unsigned char *)boards[brd].membase ; in info_ioctl()
1954 int brd = arg & 0xff000000 >> 16; in info_ioctl() local
[all …]
Distallion.c4011 if (stli_brdstats.brd >= STL_MAXBRDS) in stli_getbrdstats()
4013 brdp = stli_brds[stli_brdstats.brd]; in stli_getbrdstats()
4019 stli_brdstats.brd = brdp->brdnr; in stli_getbrdstats()
4095 stli_comstats.brd = portp->brdnr; in stli_portcmdstats()
4157 portp = stli_getport(stli_comstats.brd, stli_comstats.panel, in stli_getportstats()
4188 portp = stli_getport(stli_comstats.brd, stli_comstats.panel, in stli_clrportstats()
4208 stli_comstats.brd = portp->brdnr; in stli_clrportstats()
Dstallion.c1631 portp->stats.brd = portp->brdnr; in stl_initports()
2256 if (stl_brdstats.brd >= STL_MAXBRDS) in stl_getbrdstats()
2258 brdp = stl_brds[stl_brdstats.brd]; in stl_getbrdstats()
2263 stl_brdstats.brd = brdp->brdnr; in stl_getbrdstats()
2325 portp = stl_getport(stl_comstats.brd, stl_comstats.panel, in stl_getportstats()
2382 portp = stl_getport(stl_comstats.brd, stl_comstats.panel, in stl_clrportstats()
2390 portp->stats.brd = portp->brdnr; in stl_clrportstats()
/linux-2.6.39/drivers/net/irda/
Dsa1100_ir.c133 int brd, ret = -EINVAL; in sa1100_irda_set_speed() local
138 brd = 3686400 / (16 * speed) - 1; in sa1100_irda_set_speed()
151 Ser2UTCR1 = brd >> 8; in sa1100_irda_set_speed()
152 Ser2UTCR2 = brd; in sa1100_irda_set_speed()
/linux-2.6.39/net/ipv4/
Dfib_frontend.c736 __be32 brd = ifa->ifa_address | ~ifa->ifa_mask; in fib_del_ifaddr() local
819 if (brd == ifa1->ifa_broadcast) in fib_del_ifaddr()
832 if (brd == brd1 || brd == any1) in fib_del_ifaddr()
844 fib_magic(RTM_DELROUTE, RTN_BROADCAST, brd, 32, prim); in fib_del_ifaddr()
/linux-2.6.39/drivers/mmc/host/
Ddw_mmc.c711 struct dw_mci_board *brd = slot->host->pdata; in dw_mci_get_ro() local
714 if (brd->get_ro) in dw_mci_get_ro()
715 read_only = brd->get_ro(slot->id); in dw_mci_get_ro()
730 struct dw_mci_board *brd = slot->host->pdata; in dw_mci_get_cd() local
733 if (brd->quirks & DW_MCI_QUIRK_BROKEN_CARD_DETECTION) in dw_mci_get_cd()
735 else if (brd->get_cd) in dw_mci_get_cd()
736 present = !brd->get_cd(slot->id); in dw_mci_get_cd()
/linux-2.6.39/arch/mips/include/asm/sn/
Dklconfig.h890 extern klinfo_t *find_component(lboard_t *brd, klinfo_t *kli, unsigned char type);
891 extern klinfo_t *find_first_component(lboard_t *brd, unsigned char type);
/linux-2.6.39/Documentation/serial/
Dstallion.txt271 the "-b <brd-number>" option to the line. You will need to download code for

12