/drivers/pcmcia/ |
D | at91_cf.c | 52 struct at91_cf_data *board; member 59 return !gpio_get_value(cf->board->det_pin); in at91_cf_present() 73 if (irq == gpio_to_irq(cf->board->det_pin)) { in at91_cf_irq() 99 int rdy = gpio_is_valid(cf->board->irq_pin); /* RDY/nIRQ */ in at91_cf_get_status() 100 int vcc = gpio_is_valid(cf->board->vcc_pin); in at91_cf_get_status() 103 if (!rdy || gpio_get_value(cf->board->irq_pin)) in at91_cf_get_status() 105 if (!vcc || gpio_get_value(cf->board->vcc_pin)) in at91_cf_get_status() 121 if (gpio_is_valid(cf->board->vcc_pin)) { in at91_cf_set_socket() 124 gpio_set_value(cf->board->vcc_pin, 0); in at91_cf_set_socket() 127 gpio_set_value(cf->board->vcc_pin, 1); in at91_cf_set_socket() [all …]
|
/drivers/staging/i4l/pcbit/ |
D | module.c | 36 int board; in pcbit_init() local 46 for (board = 0; board < MAX_PCBIT_CARDS && mem[board] && irq[board]; board++) in pcbit_init() 48 if (!mem[board]) in pcbit_init() 49 mem[board] = 0xD0000; in pcbit_init() 50 if (!irq[board]) in pcbit_init() 51 irq[board] = 5; in pcbit_init() 53 if (pcbit_init_dev(board, mem[board], irq[board]) == 0) in pcbit_init() 60 board + 1); in pcbit_init() 83 int board; in pcbit_exit() local 85 for (board = 0; board < num_boards; board++) in pcbit_exit() [all …]
|
/drivers/net/can/sja1000/ |
D | kvaser_pci.c | 132 struct kvaser_pci *board = priv->priv; in kvaser_pci_disable_irq() local 136 intcsr = ioread32(board->conf_addr + S5920_INTCSR); in kvaser_pci_disable_irq() 138 iowrite32(intcsr, board->conf_addr + S5920_INTCSR); in kvaser_pci_disable_irq() 144 struct kvaser_pci *board = priv->priv; in kvaser_pci_enable_irq() local 148 tmp_en_io = ioread32(board->conf_addr + S5920_INTCSR); in kvaser_pci_enable_irq() 150 iowrite32(tmp_en_io, board->conf_addr + S5920_INTCSR); in kvaser_pci_enable_irq() 175 struct kvaser_pci *board; in kvaser_pci_del_chan() local 181 board = priv->priv; in kvaser_pci_del_chan() 182 if (!board) in kvaser_pci_del_chan() 185 dev_info(&board->pci_dev->dev, "Removing device %s\n", in kvaser_pci_del_chan() [all …]
|
/drivers/nubus/ |
D | nubus.c | 206 int nubus_get_root_dir(const struct nubus_board* board, in nubus_get_root_dir() argument 209 dir->ptr = dir->base = board->directory; in nubus_get_root_dir() 211 dir->mask = board->lanes; in nubus_get_root_dir() 222 dir->mask = dev->board->lanes; in nubus_get_func_dir() 227 int nubus_get_board_dir(const struct nubus_board* board, in nubus_get_board_dir() argument 232 dir->ptr = dir->base = board->directory; in nubus_get_board_dir() 234 dir->mask = board->lanes; in nubus_get_board_dir() 342 if (itor->board->slot == slot) in nubus_find_slot() 461 nubus_get_functional_resource(struct nubus_board* board, in nubus_get_functional_resource() argument 485 dev->board = board; in nubus_get_functional_resource() [all …]
|
D | proc.c | 38 dev->board->slot, in nubus_devices_proc_show() 43 seq_printf(m, "\t%08lx\n", dev->board->slot_addr); in nubus_devices_proc_show() 109 dev->board->slot, ent.type); in nubus_proc_populate() 129 if (dev->board == NULL) { in nubus_proc_attach_device() 132 printk("dev = %p, dev->board = %p\n", dev, dev->board); in nubus_proc_attach_device() 137 sprintf(name, "%x", dev->board->slot); in nubus_proc_attach_device() 143 nubus_get_root_dir(dev->board, &root); in nubus_proc_attach_device() 155 const struct nubus_board *board = v; in nubus_proc_show() local 161 seq_printf(m, "Slot %X: %s\n", board->slot, board->name); in nubus_proc_show() 167 struct nubus_board *board; in nubus_proc_start() local [all …]
|
/drivers/mtd/nand/ |
D | orion_nand.c | 34 struct orion_nand_data *board = nand_get_controller_data(nc); in orion_nand_cmd_ctrl() local 41 offs = (1 << board->cle); in orion_nand_cmd_ctrl() 43 offs = (1 << board->ale); in orion_nand_cmd_ctrl() 86 struct orion_nand_data *board; in orion_nand_probe() local 107 board = devm_kzalloc(&pdev->dev, sizeof(struct orion_nand_data), in orion_nand_probe() 109 if (!board) in orion_nand_probe() 112 board->cle = (u8)val; in orion_nand_probe() 114 board->cle = 0; in orion_nand_probe() 116 board->ale = (u8)val; in orion_nand_probe() 118 board->ale = 1; in orion_nand_probe() [all …]
|
/drivers/video/fbdev/ |
D | auo_k190x.c | 59 par->board->set_ctl(par, AUOK190X_I80_WR, 0); in auok190x_issue_data() 60 par->board->set_hdb(par, data); in auok190x_issue_data() 61 par->board->set_ctl(par, AUOK190X_I80_WR, 1); in auok190x_issue_data() 66 par->board->set_ctl(par, AUOK190X_I80_DC, 0); in auok190x_issue_cmd() 68 par->board->set_ctl(par, AUOK190X_I80_DC, 1); in auok190x_issue_cmd() 97 par->board->set_ctl(par, AUOK190X_I80_WR, 0); in auok190x_issue_pixels_rgb565() 104 par->board->set_hdb(par, tmp); in auok190x_issue_pixels_rgb565() 105 par->board->set_ctl(par, AUOK190X_I80_WR, 1); in auok190x_issue_pixels_rgb565() 125 par->board->set_ctl(par, AUOK190X_I80_WR, 0); in auok190x_issue_pixels_gray8() 135 par->board->set_hdb(par, tmp); in auok190x_issue_pixels_gray8() [all …]
|
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() 217 struct hecuba_board *board; in hecubafb_probe() local 224 board = dev->dev.platform_data; in hecubafb_probe() 225 if (!board) in hecubafb_probe() [all …]
|
/drivers/net/ethernet/sfc/ |
D | falcon_boards.c | 93 struct falcon_board *board = falcon_board(efx); in efx_init_lm87() local 94 struct i2c_client *client = i2c_new_device(&board->i2c_adap, info); in efx_init_lm87() 111 board->hwmon_client = client; in efx_init_lm87() 406 struct falcon_board *board = falcon_board(efx); in sfe4001_fini() local 412 i2c_unregister_device(board->ioexp_client); in sfe4001_fini() 413 i2c_unregister_device(board->hwmon_client); in sfe4001_fini() 455 struct falcon_board *board = falcon_board(efx); in sfe4001_init() local 459 board->hwmon_client = in sfe4001_init() 460 i2c_new_device(&board->i2c_adap, &sfe4001_hwmon_info); in sfe4001_init() 462 board->hwmon_client = in sfe4001_init() [all …]
|
/drivers/net/appletalk/ |
D | cops.c | 172 int board; /* Holds what board type is. */ member 181 static int cops_irq (int ioaddr, int board); 278 int board = board_type; in cops_probe1() local 300 dev->irq = cops_irq(ioaddr, board); in cops_probe1() 340 lp->board = board; in cops_probe1() 347 if(board==DAYNA) in cops_probe1() 350 if(board==TANGENT) { in cops_probe1() 366 static int __init cops_irq (int ioaddr, int board) in cops_irq() argument 377 if(board==DAYNA) in cops_irq() 383 if(board==TANGENT) in cops_irq() [all …]
|
/drivers/staging/comedi/drivers/ |
D | das08.c | 181 const struct das08_board_struct *board = dev->board_ptr; in das08_ai_insn_read() local 213 if (board->ai_nbits == 16) in das08_ai_insn_read() 226 if (board->ai_encoding == das08_encode12) { in das08_ai_insn_read() 228 } else if (board->ai_encoding == das08_pcm_encode12) { in das08_ai_insn_read() 230 } else if (board->ai_encoding == das08_encode16) { in das08_ai_insn_read() 315 const struct das08_board_struct *board = dev->board_ptr; in das08_ao_set_data() local 321 if (board->is_jr) { in das08_ao_set_data() 354 const struct das08_board_struct *board = dev->board_ptr; in das08_common_attach() local 362 dev->board_name = board->name; in das08_common_attach() 370 if (board->ai_nbits) { in das08_common_attach() [all …]
|
D | amplc_dio200_common.c | 114 const struct dio200_board *board = dev->board_ptr; in dio200_read8() local 116 if (board->is_pcie) in dio200_read8() 127 const struct dio200_board *board = dev->board_ptr; in dio200_write8() local 129 if (board->is_pcie) in dio200_write8() 141 const struct dio200_board *board = dev->board_ptr; in dio200_read32() local 143 if (board->is_pcie) in dio200_read32() 154 const struct dio200_board *board = dev->board_ptr; in dio200_write32() local 156 if (board->is_pcie) in dio200_write32() 168 const struct dio200_board *board = dev->board_ptr; in dio200_subdev_8254_offset() local 179 if (board->is_pcie) in dio200_subdev_8254_offset() [all …]
|
D | pcl730.c | 266 const struct pcl730_board *board = dev->board_ptr; in pcl730_attach() local 271 ret = comedi_request_region(dev, it->options[0], board->io_range); in pcl730_attach() 275 ret = comedi_alloc_subdevices(dev, board->n_subdevs); in pcl730_attach() 281 if (board->n_iso_out_chan) { in pcl730_attach() 286 s->n_chan = board->n_iso_out_chan; in pcl730_attach() 293 if (board->has_readback) in pcl730_attach() 297 if (board->n_iso_in_chan) { in pcl730_attach() 302 s->n_chan = board->n_iso_in_chan; in pcl730_attach() 306 s->private = board->is_ir104 ? (void *)4 : in pcl730_attach() 307 board->is_acl7225b ? (void *)2 : in pcl730_attach() [all …]
|
D | addi_apci_1516.c | 103 const struct apci1516_boardinfo *board = dev->board_ptr; in apci1516_reset() local 106 if (!board->has_wdog) in apci1516_reset() 120 const struct apci1516_boardinfo *board = NULL; in apci1516_auto_attach() local 126 board = &apci1516_boardtypes[context]; in apci1516_auto_attach() 127 if (!board) in apci1516_auto_attach() 129 dev->board_ptr = board; in apci1516_auto_attach() 130 dev->board_name = board->name; in apci1516_auto_attach() 149 if (board->di_nchan) { in apci1516_auto_attach() 152 s->n_chan = board->di_nchan; in apci1516_auto_attach() 162 if (board->do_nchan) { in apci1516_auto_attach() [all …]
|
D | adl_pci7x3x.c | 159 const struct adl_pci7x3x_boardinfo *board = NULL; in adl_pci7x3x_auto_attach() local 166 board = &adl_pci7x3x_boards[context]; in adl_pci7x3x_auto_attach() 167 if (!board) in adl_pci7x3x_auto_attach() 169 dev->board_ptr = board; in adl_pci7x3x_auto_attach() 170 dev->board_name = board->name; in adl_pci7x3x_auto_attach() 177 ret = comedi_alloc_subdevices(dev, board->nsubdevs); in adl_pci7x3x_auto_attach() 183 if (board->di_nchan) { in adl_pci7x3x_auto_attach() 184 nchan = min(board->di_nchan, 32); in adl_pci7x3x_auto_attach() 199 nchan = board->di_nchan - nchan; in adl_pci7x3x_auto_attach() 216 if (board->do_nchan) { in adl_pci7x3x_auto_attach() [all …]
|
D | cb_pcidas64.c | 677 static inline unsigned int ai_dma_ring_count(const struct pcidas64_board *board) in ai_dma_ring_count() argument 679 if (board->layout == LAYOUT_4020) in ai_dma_ring_count() 1110 const struct pcidas64_board *board = dev->board_ptr; in se_diff_bit_6xxx() local 1112 if ((board->layout == LAYOUT_64XX && !use_differential) || in se_diff_bit_6xxx() 1113 (board->layout == LAYOUT_60XX && use_differential)) in se_diff_bit_6xxx() 1190 const struct pcidas64_board *board = dev->board_ptr; in ai_range_bits_6xxx() local 1192 return board->ai_range_code[range_index] << 8; in ai_range_bits_6xxx() 1198 const struct pcidas64_board *board = dev->board_ptr; in hw_revision() local 1200 if (board->layout == LAYOUT_4020) in hw_revision() 1210 const struct pcidas64_board *board = dev->board_ptr; in set_dac_range_bits() local [all …]
|
D | 8255_pci.c | 207 const struct pci_8255_boardinfo *board = NULL; in pci_8255_auto_attach() local 213 board = &pci_8255_boards[context]; in pci_8255_auto_attach() 214 if (!board) in pci_8255_auto_attach() 216 dev->board_ptr = board; in pci_8255_auto_attach() 217 dev->board_name = board->name; in pci_8255_auto_attach() 223 if (board->has_mite) { in pci_8255_auto_attach() 229 if ((pci_resource_flags(pcidev, board->dio_badr) & IORESOURCE_MEM)) { in pci_8255_auto_attach() 230 dev->mmio = pci_ioremap_bar(pcidev, board->dio_badr); in pci_8255_auto_attach() 234 dev->iobase = pci_resource_start(pcidev, board->dio_badr); in pci_8255_auto_attach() 242 ret = comedi_alloc_subdevices(dev, board->n_8255); in pci_8255_auto_attach() [all …]
|
D | ni_mio_cs.c | 129 static const struct ni_board_struct *board; in ni_getboardtype() local 133 board = &ni_boards[i]; in ni_getboardtype() 134 if (board->device_id == link->card_id) in ni_getboardtype() 135 return board; in ni_getboardtype() 160 static const struct ni_board_struct *board; in mio_cs_auto_attach() local 163 board = ni_getboardtype(dev, link); in mio_cs_auto_attach() 164 if (!board) in mio_cs_auto_attach() 166 dev->board_ptr = board; in mio_cs_auto_attach() 167 dev->board_name = board->name; in mio_cs_auto_attach()
|
D | addi_apci_16xx.c | 101 const struct apci16xx_boardinfo *board = NULL; in apci16xx_auto_attach() local 109 board = &apci16xx_boardtypes[context]; in apci16xx_auto_attach() 110 if (!board) in apci16xx_auto_attach() 112 dev->board_ptr = board; in apci16xx_auto_attach() 113 dev->board_name = board->name; in apci16xx_auto_attach() 126 n_subdevs = board->n_chan / 32; in apci16xx_auto_attach() 127 if ((n_subdevs * 32) < board->n_chan) { in apci16xx_auto_attach() 128 last = board->n_chan - (n_subdevs * 32); in apci16xx_auto_attach() 143 s->n_chan = ((i * 32) < board->n_chan) ? 32 : last; in apci16xx_auto_attach()
|
D | adv_pci_dio.c | 326 const struct dio_boardtype *board = NULL; in pci_dio_auto_attach() local 332 board = &boardtypes[context]; in pci_dio_auto_attach() 333 if (!board) in pci_dio_auto_attach() 335 dev->board_ptr = board; in pci_dio_auto_attach() 336 dev->board_name = board->name; in pci_dio_auto_attach() 348 ret = comedi_alloc_subdevices(dev, board->nsubdevs); in pci_dio_auto_attach() 354 d = &board->sdi[i]; in pci_dio_auto_attach() 362 s->insn_bits = board->is_16bit in pci_dio_auto_attach() 370 d = &board->sdo[i]; in pci_dio_auto_attach() 378 s->insn_bits = board->is_16bit in pci_dio_auto_attach() [all …]
|
/drivers/tty/serial/8250/ |
D | 8250_mid.c | 49 struct mid8250_board *board; member 131 unsigned int bar = FL_GET_BASE(mid->board->flags); in dnv_setup() 174 if (mid->board->freq < fuart) { in mid8250_set_termios() 176 if (mid->board->freq > baud) in mid8250_set_termios() 177 ps = mid->board->freq / baud; /* baud rate too high */ in mid8250_set_termios() 183 fuart *= rounddown_pow_of_two(mid->board->freq / fuart); in mid8250_set_termios() 186 rational_best_approximation(fuart, mid->board->freq, w, w, &mul, &div); in mid8250_set_termios() 259 mid->board = (struct mid8250_board *)id->driver_data; in mid8250_probe() 260 bar = FL_GET_BASE(mid->board->flags); in mid8250_probe() 269 uart.port.uartclk = mid->board->base_baud * 16; in mid8250_probe() [all …]
|
/drivers/media/common/siano/ |
D | sms-cards.c | 272 struct sms_board *board = sms_get_board(board_id); in sms_board_setup() local 277 sms_set_gpio(coredev, board->led_power, 0); in sms_board_setup() 278 sms_set_gpio(coredev, board->led_hi, 0); in sms_board_setup() 279 sms_set_gpio(coredev, board->led_lo, 0); in sms_board_setup() 284 sms_set_gpio(coredev, board->lna_ctrl, 0); in sms_board_setup() 294 struct sms_board *board = sms_get_board(board_id); in sms_board_power() local 300 board->led_power, onoff ? 1 : 0); in sms_board_power() 306 sms_set_gpio(coredev, board->lna_ctrl, 0); in sms_board_power() 316 struct sms_board *board = sms_get_board(board_id); in sms_board_led_feedback() local 325 board->led_lo, (led & SMS_LED_LO) ? 1 : 0); in sms_board_led_feedback() [all …]
|
/drivers/ide/ |
D | buddha.c | 167 unsigned long board; in buddha_init() local 184 board = z->resource.start; in buddha_init() 187 if (!request_mem_region(board+BUDDHA_BASE1, 0x800, "IDE")) in buddha_init() 190 if (!request_mem_region(board+XSURF_BASE1, 0x1000, "IDE")) in buddha_init() 192 if (!request_mem_region(board+XSURF_BASE2, 0x1000, "IDE")) in buddha_init() 194 if (!request_mem_region(board+XSURF_IRQ1, 0x8, "IDE")) { in buddha_init() 195 release_mem_region(board+XSURF_BASE2, 0x1000); in buddha_init() 197 release_mem_region(board+XSURF_BASE1, 0x1000); in buddha_init() 201 buddha_board = (unsigned long)ZTWO_VADDR(board); in buddha_init()
|
/drivers/media/pci/cx23885/ |
D | cx23885-core.c | 859 dev->board = UNSET; in cx23885_dev_setup() 861 dev->board = card[dev->nr]; in cx23885_dev_setup() 862 for (i = 0; UNSET == dev->board && i < cx23885_idcount; i++) in cx23885_dev_setup() 865 dev->board = cx23885_subids[i].card; in cx23885_dev_setup() 866 if (UNSET == dev->board) { in cx23885_dev_setup() 867 dev->board = CX23885_BOARD_UNKNOWN; in cx23885_dev_setup() 872 if (cx23885_boards[dev->board].clk_freq > 0) in cx23885_dev_setup() 873 dev->clk_freq = cx23885_boards[dev->board].clk_freq; in cx23885_dev_setup() 909 if ((cx23885_boards[dev->board].portb == CX23885_MPEG_DVB) || in cx23885_dev_setup() 910 (cx23885_boards[dev->board].portb == CX23885_MPEG_ENCODER)) in cx23885_dev_setup() [all …]
|