/drivers/pcmcia/ |
D | at91_cf.c | 58 struct at91_cf_data *board; member 65 return !gpio_get_value(cf->board->det_pin); in at91_cf_present() 79 if (irq == gpio_to_irq(cf->board->det_pin)) { in at91_cf_irq() 105 int rdy = gpio_is_valid(cf->board->irq_pin); /* RDY/nIRQ */ in at91_cf_get_status() 106 int vcc = gpio_is_valid(cf->board->vcc_pin); in at91_cf_get_status() 109 if (!rdy || gpio_get_value(cf->board->irq_pin)) in at91_cf_get_status() 111 if (!vcc || gpio_get_value(cf->board->vcc_pin)) in at91_cf_get_status() 127 if (gpio_is_valid(cf->board->vcc_pin)) { in at91_cf_set_socket() 130 gpio_set_value(cf->board->vcc_pin, 0); in at91_cf_set_socket() 133 gpio_set_value(cf->board->vcc_pin, 1); in at91_cf_set_socket() [all …]
|
/drivers/net/can/sja1000/ |
D | kvaser_pci.c | 120 struct kvaser_pci *board = priv->priv; in kvaser_pci_disable_irq() local 124 intcsr = ioread32(board->conf_addr + S5920_INTCSR); in kvaser_pci_disable_irq() 126 iowrite32(intcsr, board->conf_addr + S5920_INTCSR); in kvaser_pci_disable_irq() 132 struct kvaser_pci *board = priv->priv; in kvaser_pci_enable_irq() local 136 tmp_en_io = ioread32(board->conf_addr + S5920_INTCSR); in kvaser_pci_enable_irq() 138 iowrite32(tmp_en_io, board->conf_addr + S5920_INTCSR); in kvaser_pci_enable_irq() 163 struct kvaser_pci *board; in kvaser_pci_del_chan() local 169 board = priv->priv; in kvaser_pci_del_chan() 170 if (!board) in kvaser_pci_del_chan() 173 dev_info(&board->pci_dev->dev, "Removing device %s\n", in kvaser_pci_del_chan() [all …]
|
/drivers/nubus/ |
D | nubus.c | 219 int nubus_get_root_dir(const struct nubus_board *board, in nubus_get_root_dir() argument 222 dir->ptr = dir->base = board->directory; in nubus_get_root_dir() 224 dir->mask = board->lanes; in nubus_get_root_dir() 234 dir->mask = fres->board->lanes; in nubus_get_func_dir() 239 int nubus_get_board_dir(const struct nubus_board *board, in nubus_get_board_dir() argument 244 dir->ptr = dir->base = board->directory; in nubus_get_board_dir() 246 dir->mask = board->lanes; in nubus_get_board_dir() 338 static int __init nubus_get_block_rsrc_dir(struct nubus_board *board, in nubus_get_block_rsrc_dir() argument 346 dir.procdir = nubus_proc_add_rsrc_dir(procdir, parent, board); in nubus_get_block_rsrc_dir() 358 static int __init nubus_get_display_vidmode(struct nubus_board *board, in nubus_get_display_vidmode() argument [all …]
|
D | bus.c | 78 struct nubus_board *board = to_nubus_board(dev); in nubus_device_release() local 82 if (fres->board == board) { in nubus_device_release() 86 kfree(board); in nubus_device_release() 89 int nubus_device_register(struct nubus_board *board) in nubus_device_register() argument 91 board->dev.parent = &nubus_parent; in nubus_device_register() 92 board->dev.release = nubus_device_release; in nubus_device_register() 93 board->dev.bus = &nubus_bus_type; in nubus_device_register() 94 dev_set_name(&board->dev, "slot.%X", board->slot); in nubus_device_register() 95 board->dev.dma_mask = &board->dev.coherent_dma_mask; in nubus_device_register() 96 dma_set_mask(&board->dev, DMA_BIT_MASK(32)); in nubus_device_register() [all …]
|
/drivers/mtd/nand/raw/ |
D | orion_nand.c | 33 struct orion_nand_data *board = nand_get_controller_data(nc); in orion_nand_cmd_ctrl() local 40 offs = (1 << board->cle); in orion_nand_cmd_ctrl() 42 offs = (1 << board->ale); in orion_nand_cmd_ctrl() 104 struct orion_nand_data *board; in orion_nand_probe() local 129 board = devm_kzalloc(&pdev->dev, sizeof(struct orion_nand_data), in orion_nand_probe() 131 if (!board) in orion_nand_probe() 134 board->cle = (u8)val; in orion_nand_probe() 136 board->cle = 0; in orion_nand_probe() 138 board->ale = (u8)val; in orion_nand_probe() 140 board->ale = 1; in orion_nand_probe() [all …]
|
/drivers/net/ethernet/sfc/falcon/ |
D | falcon_boards.c | 90 struct falcon_board *board = falcon_board(efx); in ef4_init_lm87() local 91 struct i2c_client *client = i2c_new_client_device(&board->i2c_adap, info); in ef4_init_lm87() 108 board->hwmon_client = client; in ef4_init_lm87() 403 struct falcon_board *board = falcon_board(efx); in sfe4001_fini() local 409 i2c_unregister_device(board->ioexp_client); in sfe4001_fini() 410 i2c_unregister_device(board->hwmon_client); in sfe4001_fini() 452 struct falcon_board *board = falcon_board(efx); in sfe4001_init() local 456 board->hwmon_client = in sfe4001_init() 457 i2c_new_client_device(&board->i2c_adap, &sfe4001_hwmon_info); in sfe4001_init() 459 board->hwmon_client = in sfe4001_init() [all …]
|
/drivers/video/fbdev/ |
D | broadsheetfb.c | 121 par->board->set_ctl(par, BS_WR, 0); in broadsheet_gpio_issue_data() 122 par->board->set_hdb(par, data); in broadsheet_gpio_issue_data() 123 par->board->set_ctl(par, BS_WR, 1); in broadsheet_gpio_issue_data() 128 par->board->set_ctl(par, BS_DC, 0); in broadsheet_gpio_issue_cmd() 134 par->board->wait_for_rdy(par); in broadsheet_gpio_send_command() 136 par->board->set_ctl(par, BS_CS, 0); in broadsheet_gpio_send_command() 138 par->board->set_ctl(par, BS_DC, 1); in broadsheet_gpio_send_command() 139 par->board->set_ctl(par, BS_CS, 1); in broadsheet_gpio_send_command() 147 par->board->wait_for_rdy(par); in broadsheet_gpio_send_cmdargs() 149 par->board->set_ctl(par, BS_CS, 0); in broadsheet_gpio_send_cmdargs() [all …]
|
D | hecubafb.c | 75 par->board->set_data(par, data); in apollo_send_data() 78 par->board->set_ctl(par, HCB_DS_BIT, 0); in apollo_send_data() 81 par->board->wait_for_ack(par, 0); in apollo_send_data() 84 par->board->set_ctl(par, HCB_DS_BIT, 1); in apollo_send_data() 87 par->board->wait_for_ack(par, 1); in apollo_send_data() 93 par->board->set_ctl(par, HCB_CD_BIT, 1); in apollo_send_command() 99 par->board->set_ctl(par, HCB_CD_BIT, 0); in apollo_send_command() 216 struct hecuba_board *board; in hecubafb_probe() local 223 board = dev->dev.platform_data; in hecubafb_probe() 224 if (!board) in hecubafb_probe() [all …]
|
D | amba-clcd.c | 54 if (fb->board->disable) in clcdfb_disable() 55 fb->board->disable(fb); in clcdfb_disable() 118 if (fb->board->enable) in clcdfb_enable() 119 fb->board->enable(fb); in clcdfb_enable() 128 if (fb->panel->caps && fb->board->caps) in clcdfb_set_bitfields() 129 caps = fb->panel->caps & fb->board->caps; in clcdfb_set_bitfields() 265 if (fb->board->check) in clcdfb_check_var() 266 ret = fb->board->check(fb, var); in clcdfb_check_var() 292 fb->board->decode(fb, ®s); in clcdfb_set_par() 407 fb->board->mmap) in clcdfb_mmap() [all …]
|
/drivers/comedi/drivers/ |
D | das08.c | 172 const struct das08_board_struct *board = dev->board_ptr; in das08_ai_insn_read() local 204 if (board->ai_nbits == 16) in das08_ai_insn_read() 217 if (board->ai_encoding == das08_encode12) { in das08_ai_insn_read() 219 } else if (board->ai_encoding == das08_pcm_encode12) { in das08_ai_insn_read() 221 } else if (board->ai_encoding == das08_encode16) { in das08_ai_insn_read() 306 const struct das08_board_struct *board = dev->board_ptr; in das08_ao_set_data() local 312 if (board->is_jr) { in das08_ao_set_data() 345 const struct das08_board_struct *board = dev->board_ptr; in das08_common_attach() local 353 dev->board_name = board->name; in das08_common_attach() 361 if (board->ai_nbits) { in das08_common_attach() [all …]
|
D | amplc_dio200_common.c | 93 const struct dio200_board *board = dev->board_ptr; in dio200_read8() local 95 if (board->is_pcie) in dio200_read8() 106 const struct dio200_board *board = dev->board_ptr; in dio200_write8() local 108 if (board->is_pcie) in dio200_write8() 120 const struct dio200_board *board = dev->board_ptr; in dio200_read32() local 122 if (board->is_pcie) in dio200_read32() 133 const struct dio200_board *board = dev->board_ptr; in dio200_write32() local 135 if (board->is_pcie) in dio200_write32() 147 const struct dio200_board *board = dev->board_ptr; in dio200_subdev_8254_offset() local 158 if (board->is_pcie) in dio200_subdev_8254_offset() [all …]
|
D | pcl730.c | 267 const struct pcl730_board *board = dev->board_ptr; in pcl730_attach() local 272 ret = comedi_request_region(dev, it->options[0], board->io_range); in pcl730_attach() 276 ret = comedi_alloc_subdevices(dev, board->n_subdevs); in pcl730_attach() 282 if (board->n_iso_out_chan) { in pcl730_attach() 287 s->n_chan = board->n_iso_out_chan; in pcl730_attach() 294 if (board->has_readback) in pcl730_attach() 298 if (board->n_iso_in_chan) { in pcl730_attach() 303 s->n_chan = board->n_iso_in_chan; in pcl730_attach() 307 s->private = board->is_ir104 ? (void *)4 : in pcl730_attach() 308 board->is_acl7225b ? (void *)2 : in pcl730_attach() [all …]
|
D | addi_apci_1516.c | 94 const struct apci1516_boardinfo *board = dev->board_ptr; in apci1516_reset() local 97 if (!board->has_wdog) in apci1516_reset() 111 const struct apci1516_boardinfo *board = NULL; in apci1516_auto_attach() local 117 board = &apci1516_boardtypes[context]; in apci1516_auto_attach() 118 if (!board) in apci1516_auto_attach() 120 dev->board_ptr = board; in apci1516_auto_attach() 121 dev->board_name = board->name; in apci1516_auto_attach() 140 if (board->di_nchan) { in apci1516_auto_attach() 143 s->n_chan = board->di_nchan; in apci1516_auto_attach() 153 if (board->do_nchan) { in apci1516_auto_attach() [all …]
|
D | cb_pcidas64.c | 663 static inline unsigned int ai_dma_ring_count(const struct pcidas64_board *board) in ai_dma_ring_count() argument 665 if (board->layout == LAYOUT_4020) in ai_dma_ring_count() 1096 const struct pcidas64_board *board = dev->board_ptr; in se_diff_bit_6xxx() local 1098 if ((board->layout == LAYOUT_64XX && !use_differential) || in se_diff_bit_6xxx() 1099 (board->layout == LAYOUT_60XX && use_differential)) in se_diff_bit_6xxx() 1176 const struct pcidas64_board *board = dev->board_ptr; in ai_range_bits_6xxx() local 1178 return board->ai_range_code[range_index] << 8; in ai_range_bits_6xxx() 1184 const struct pcidas64_board *board = dev->board_ptr; in hw_revision() local 1186 if (board->layout == LAYOUT_4020) in hw_revision() 1196 const struct pcidas64_board *board = dev->board_ptr; in set_dac_range_bits() local [all …]
|
D | 8255_pci.c | 198 const struct pci_8255_boardinfo *board = NULL; in pci_8255_auto_attach() local 204 board = &pci_8255_boards[context]; in pci_8255_auto_attach() 205 if (!board) in pci_8255_auto_attach() 207 dev->board_ptr = board; in pci_8255_auto_attach() 208 dev->board_name = board->name; in pci_8255_auto_attach() 214 if (board->has_mite) { in pci_8255_auto_attach() 220 if ((pci_resource_flags(pcidev, board->dio_badr) & IORESOURCE_MEM)) { in pci_8255_auto_attach() 221 dev->mmio = pci_ioremap_bar(pcidev, board->dio_badr); in pci_8255_auto_attach() 225 dev->iobase = pci_resource_start(pcidev, board->dio_badr); in pci_8255_auto_attach() 233 ret = comedi_alloc_subdevices(dev, board->n_8255); in pci_8255_auto_attach() [all …]
|
D | addi_apci_16xx.c | 92 const struct apci16xx_boardinfo *board = NULL; in apci16xx_auto_attach() local 100 board = &apci16xx_boardtypes[context]; in apci16xx_auto_attach() 101 if (!board) in apci16xx_auto_attach() 103 dev->board_ptr = board; in apci16xx_auto_attach() 104 dev->board_name = board->name; in apci16xx_auto_attach() 117 n_subdevs = board->n_chan / 32; in apci16xx_auto_attach() 118 if ((n_subdevs * 32) < board->n_chan) { in apci16xx_auto_attach() 119 last = board->n_chan - (n_subdevs * 32); in apci16xx_auto_attach() 134 s->n_chan = ((i * 32) < board->n_chan) ? 32 : last; in apci16xx_auto_attach()
|
D | ni_mio_cs.c | 120 static const struct ni_board_struct *board; in ni_getboardtype() local 124 board = &ni_boards[i]; in ni_getboardtype() 125 if (board->device_id == link->card_id) in ni_getboardtype() 126 return board; in ni_getboardtype() 151 static const struct ni_board_struct *board; in mio_cs_auto_attach() local 154 board = ni_getboardtype(dev, link); in mio_cs_auto_attach() 155 if (!board) in mio_cs_auto_attach() 157 dev->board_ptr = board; in mio_cs_auto_attach() 158 dev->board_name = board->name; in mio_cs_auto_attach()
|
D | adv_pci_dio.c | 262 const struct dio_boardtype *board = dev->board_ptr; in pci_dio_interrupt() local 287 if (irqflags & board->sdirq[i].int_en) in pci_dio_interrupt() 346 const struct dio_boardtype *board = dev->board_ptr; in pci_dio_asy_cmd() local 351 int_en = board->sdirq[s->index - dev_private->irq_subd].int_en; in pci_dio_asy_cmd() 375 const struct dio_boardtype *board = dev->board_ptr; in pci_dio_asy_cancel() local 383 int_en = board->sdirq[s->index - dev_private->irq_subd].int_en; in pci_dio_asy_cancel() 553 const struct dio_boardtype *board = NULL; in pci_dio_auto_attach() local 559 board = &boardtypes[context]; in pci_dio_auto_attach() 560 if (!board) in pci_dio_auto_attach() 562 dev->board_ptr = board; in pci_dio_auto_attach() [all …]
|
/drivers/net/appletalk/ |
D | cops.c | 175 int board; /* Holds what board type is. */ member 184 static int cops_irq (int ioaddr, int board); 281 int board = board_type; in cops_probe1() local 303 dev->irq = cops_irq(ioaddr, board); in cops_probe1() 343 lp->board = board; in cops_probe1() 350 if(board==DAYNA) in cops_probe1() 353 if(board==TANGENT) { in cops_probe1() 369 static int __init cops_irq (int ioaddr, int board) in cops_irq() argument 380 if(board==DAYNA) in cops_irq() 386 if(board==TANGENT) in cops_irq() [all …]
|
/drivers/net/ethernet/natsemi/ |
D | macsonic.c | 377 if (strstr(fres->board->name, "DuoDock")) in macsonic_ident() 394 static int mac_sonic_nubus_probe_board(struct nubus_board *board, int id, in mac_sonic_nubus_probe_board() argument 404 base_addr = board->slot_addr + DUODOCK_SONIC_REGISTERS; in mac_sonic_nubus_probe_board() 405 prom_addr = board->slot_addr + DUODOCK_SONIC_PROM_BASE; in mac_sonic_nubus_probe_board() 412 base_addr = board->slot_addr + APPLE_SONIC_REGISTERS; in mac_sonic_nubus_probe_board() 413 prom_addr = board->slot_addr + APPLE_SONIC_PROM_BASE; in mac_sonic_nubus_probe_board() 419 base_addr = board->slot_addr + APPLE_SONIC_REGISTERS; in mac_sonic_nubus_probe_board() 420 prom_addr = board->slot_addr + APPLE_SONIC_PROM_BASE; in mac_sonic_nubus_probe_board() 427 base_addr = board->slot_addr + APPLE_SONIC_REGISTERS; in mac_sonic_nubus_probe_board() 428 prom_addr = board->slot_addr + DAYNALINK_PROM_BASE; in mac_sonic_nubus_probe_board() [all …]
|
/drivers/net/ethernet/8390/ |
D | mac8390.c | 126 static int mac8390_initdev(struct net_device *dev, struct nubus_board *board, 290 struct nubus_board *board = fres->board; in mac8390_rsrc_init() local 296 dev->irq = SLOT2IRQ(board->slot); in mac8390_rsrc_init() 298 dev->base_addr = board->slot_addr | ((board->slot & 0xf) << 20); in mac8390_rsrc_init() 306 dev_err(&board->dev, in mac8390_rsrc_init() 313 dev_info(&board->dev, "MAC address resource not found\n"); in mac8390_rsrc_init() 323 dev_err(&board->dev, in mac8390_rsrc_init() 334 dev_info(&board->dev, in mac8390_rsrc_init() 345 dev->base_addr = (int)(board->slot_addr + in mac8390_rsrc_init() 347 dev->mem_start = (int)(board->slot_addr + in mac8390_rsrc_init() [all …]
|
/drivers/media/common/siano/ |
D | sms-cards.c | 260 struct sms_board *board = sms_get_board(board_id); in sms_board_setup() local 265 sms_set_gpio(coredev, board->led_power, 0); in sms_board_setup() 266 sms_set_gpio(coredev, board->led_hi, 0); in sms_board_setup() 267 sms_set_gpio(coredev, board->led_lo, 0); in sms_board_setup() 272 sms_set_gpio(coredev, board->lna_ctrl, 0); in sms_board_setup() 282 struct sms_board *board = sms_get_board(board_id); in sms_board_power() local 288 board->led_power, onoff ? 1 : 0); in sms_board_power() 294 sms_set_gpio(coredev, board->lna_ctrl, 0); in sms_board_power() 304 struct sms_board *board = sms_get_board(board_id); in sms_board_led_feedback() local 313 board->led_lo, (led & SMS_LED_LO) ? 1 : 0); in sms_board_led_feedback() [all …]
|
/drivers/tty/serial/8250/ |
D | 8250_pci.c | 56 const struct pciserial_board *board; member 120 const struct pciserial_board *board, in addidata_apci7800_setup() argument 123 unsigned int bar = 0, offset = board->first_offset; in addidata_apci7800_setup() 124 bar = FL_GET_BASE(board->flags); in addidata_apci7800_setup() 127 offset += idx * board->uart_offset; in addidata_apci7800_setup() 130 offset += ((idx - 2) * board->uart_offset); in addidata_apci7800_setup() 133 offset += ((idx - 4) * board->uart_offset); in addidata_apci7800_setup() 136 offset += ((idx - 6) * board->uart_offset); in addidata_apci7800_setup() 139 return setup_port(priv, port, bar, offset, board->reg_shift); in addidata_apci7800_setup() 147 afavlab_setup(struct serial_private *priv, const struct pciserial_board *board, in afavlab_setup() argument [all …]
|
D | 8250_mid.c | 47 struct mid8250_board *board; member 172 unsigned int bar = FL_GET_BASE(mid->board->flags); in dnv_setup() 223 if (mid->board->freq < fuart) { in mid8250_set_termios() 225 if (mid->board->freq > baud) in mid8250_set_termios() 226 ps = mid->board->freq / baud; /* baud rate too high */ in mid8250_set_termios() 232 fuart *= rounddown_pow_of_two(mid->board->freq / fuart); in mid8250_set_termios() 235 rational_best_approximation(fuart, mid->board->freq, w, w, &mul, &div); in mid8250_set_termios() 306 mid->board = (struct mid8250_board *)id->driver_data; in mid8250_probe() 307 bar = FL_GET_BASE(mid->board->flags); in mid8250_probe() 316 uart.port.uartclk = mid->board->base_baud * 16; in mid8250_probe() [all …]
|
/drivers/media/pci/cx23885/ |
D | cx23885-core.c | 907 dev->board = UNSET; in cx23885_dev_setup() 909 dev->board = card[dev->nr]; in cx23885_dev_setup() 910 for (i = 0; UNSET == dev->board && i < cx23885_idcount; i++) in cx23885_dev_setup() 913 dev->board = cx23885_subids[i].card; in cx23885_dev_setup() 914 if (UNSET == dev->board) { in cx23885_dev_setup() 915 dev->board = CX23885_BOARD_UNKNOWN; in cx23885_dev_setup() 921 if (dev->board == CX23885_BOARD_HAUPPAUGE_QUADHD_ATSC) in cx23885_dev_setup() 922 dev->board = CX23885_BOARD_HAUPPAUGE_QUADHD_ATSC_885; in cx23885_dev_setup() 923 else if (dev->board == CX23885_BOARD_HAUPPAUGE_QUADHD_DVB) in cx23885_dev_setup() 924 dev->board = CX23885_BOARD_HAUPPAUGE_QUADHD_DVB_885; in cx23885_dev_setup() [all …]
|