Symbol: ines_priv
drivers/gpib/ines/ines.h
39
static inline unsigned int ines_inb(struct ines_priv *priv, unsigned int register_number)
drivers/gpib/ines/ines.h
45
static inline void ines_outb(struct ines_priv *priv, unsigned int value,
drivers/gpib/ines/ines_gpib.c
100
static ssize_t pio_read(struct gpib_board *board, struct ines_priv *ines_priv, u8 *buffer,
drivers/gpib/ines/ines_gpib.c
105
struct nec7210_priv *nec_priv = &ines_priv->nec7210_priv;
drivers/gpib/ines/ines_gpib.c
110
num_in_fifo_bytes(ines_priv) ||
drivers/gpib/ines/ines_gpib.c
121
num_fifo_bytes = num_in_fifo_bytes(ines_priv);
drivers/gpib/ines/ines_gpib.c
128
num_in_fifo_bytes(ines_priv) == 0)
drivers/gpib/ines/ines_gpib.c
1313
struct ines_priv *ines_priv;
drivers/gpib/ines/ines_gpib.c
1326
ines_priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
1327
nec_priv = &ines_priv->nec7210_priv;
drivers/gpib/ines/ines_gpib.c
1345
ines_priv->irq = curr_dev->irq;
drivers/gpib/ines/ines_gpib.c
1352
struct ines_priv *ines_priv;
drivers/gpib/ines/ines_gpib.c
1359
ines_priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
1360
ines_online(ines_priv, board, 0);
drivers/gpib/ines/ines_gpib.c
1368
struct ines_priv *ines_priv;
drivers/gpib/ines/ines_gpib.c
1375
ines_priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
1376
ines_online(ines_priv, board, 1);
drivers/gpib/ines/ines_gpib.c
1383
struct ines_priv *ines_priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
1386
if (ines_priv) {
drivers/gpib/ines/ines_gpib.c
1387
nec_priv = &ines_priv->nec7210_priv;
drivers/gpib/ines/ines_gpib.c
1388
if (ines_priv->irq)
drivers/gpib/ines/ines_gpib.c
1389
free_irq(ines_priv->irq, board);
drivers/gpib/ines/ines_gpib.c
142
struct ines_priv *ines_priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
143
struct nec7210_priv *nec_priv = &ines_priv->nec7210_priv;
drivers/gpib/ines/ines_gpib.c
159
ines_priv->extend_mode_bits |= LAST_BYTE_HANDLING_BIT;
drivers/gpib/ines/ines_gpib.c
160
ines_priv->extend_mode_bits &= ~XFER_COUNTER_OUTPUT_BIT & ~XFER_COUNTER_ENABLE_BIT;
drivers/gpib/ines/ines_gpib.c
161
ines_outb(ines_priv, ines_priv->extend_mode_bits, EXTEND_MODE);
drivers/gpib/ines/ines_gpib.c
163
counter_setting = length - num_in_fifo_bytes(ines_priv);
drivers/gpib/ines/ines_gpib.c
165
ines_set_xfer_counter(ines_priv, length);
drivers/gpib/ines/ines_gpib.c
166
ines_priv->extend_mode_bits |= XFER_COUNTER_ENABLE_BIT;
drivers/gpib/ines/ines_gpib.c
167
ines_outb(ines_priv, ines_priv->extend_mode_bits, EXTEND_MODE);
drivers/gpib/ines/ines_gpib.c
175
retval = pio_read(board, ines_priv, buffer, length, bytes_read);
drivers/gpib/ines/ines_gpib.c
176
ines_priv->extend_mode_bits &= ~XFER_COUNTER_ENABLE_BIT;
drivers/gpib/ines/ines_gpib.c
177
ines_outb(ines_priv, ines_priv->extend_mode_bits, EXTEND_MODE);
drivers/gpib/ines/ines_gpib.c
190
static inline unsigned short num_out_fifo_bytes(struct ines_priv *ines_priv)
drivers/gpib/ines/ines_gpib.c
192
return ines_inb(ines_priv, OUT_FIFO_COUNT);
drivers/gpib/ines/ines_gpib.c
195
static int ines_write_wait(struct gpib_board *board, struct ines_priv *ines_priv,
drivers/gpib/ines/ines_gpib.c
198
struct nec7210_priv *nec_priv = &ines_priv->nec7210_priv;
drivers/gpib/ines/ines_gpib.c
202
num_out_fifo_bytes(ines_priv) < fifo_threshold ||
drivers/gpib/ines/ines_gpib.c
223
struct ines_priv *ines_priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
224
struct nec7210_priv *nec_priv = &ines_priv->nec7210_priv;
drivers/gpib/ines/ines_gpib.c
232
ines_priv->extend_mode_bits |= XFER_COUNTER_OUTPUT_BIT;
drivers/gpib/ines/ines_gpib.c
233
ines_priv->extend_mode_bits &= ~XFER_COUNTER_ENABLE_BIT;
drivers/gpib/ines/ines_gpib.c
234
ines_priv->extend_mode_bits &= ~LAST_BYTE_HANDLING_BIT;
drivers/gpib/ines/ines_gpib.c
235
ines_outb(ines_priv, ines_priv->extend_mode_bits, EXTEND_MODE);
drivers/gpib/ines/ines_gpib.c
237
ines_set_xfer_counter(ines_priv, length);
drivers/gpib/ines/ines_gpib.c
239
ines_priv->extend_mode_bits |= LAST_BYTE_HANDLING_BIT;
drivers/gpib/ines/ines_gpib.c
240
ines_priv->extend_mode_bits |= XFER_COUNTER_ENABLE_BIT;
drivers/gpib/ines/ines_gpib.c
241
ines_outb(ines_priv, ines_priv->extend_mode_bits, EXTEND_MODE);
drivers/gpib/ines/ines_gpib.c
244
retval = ines_write_wait(board, ines_priv, out_fifo_size);
drivers/gpib/ines/ines_gpib.c
248
num_bytes = out_fifo_size - num_out_fifo_bytes(ines_priv);
drivers/gpib/ines/ines_gpib.c
255
ines_priv->extend_mode_bits &= ~XFER_COUNTER_ENABLE_BIT;
drivers/gpib/ines/ines_gpib.c
256
ines_outb(ines_priv, ines_priv->extend_mode_bits, EXTEND_MODE);
drivers/gpib/ines/ines_gpib.c
257
*bytes_written = length - num_out_fifo_bytes(ines_priv);
drivers/gpib/ines/ines_gpib.c
261
retval = ines_write_wait(board, ines_priv, 1);
drivers/gpib/ines/ines_gpib.c
262
ines_priv->extend_mode_bits &= ~XFER_COUNTER_ENABLE_BIT;
drivers/gpib/ines/ines_gpib.c
263
ines_outb(ines_priv, ines_priv->extend_mode_bits, EXTEND_MODE);
drivers/gpib/ines/ines_gpib.c
264
*bytes_written = length - num_out_fifo_bytes(ines_priv);
drivers/gpib/ines/ines_gpib.c
272
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
288
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
34
struct ines_priv *ines_priv;
drivers/gpib/ines/ines_gpib.c
36
ines_priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
38
bcm_bits = ines_inb(ines_priv, BUS_CONTROL_MONITOR);
drivers/gpib/ines/ines_gpib.c
401
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
420
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
427
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
434
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
441
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
448
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
455
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
462
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
469
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
476
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
483
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
490
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
497
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
504
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
511
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
518
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
525
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
532
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
539
struct ines_priv *priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
60
static void ines_set_xfer_counter(struct ines_priv *priv, unsigned int count)
drivers/gpib/ines/ines_gpib.c
658
struct ines_priv *priv;
drivers/gpib/ines/ines_gpib.c
660
board->private_data = kzalloc_obj(struct ines_priv);
drivers/gpib/ines/ines_gpib.c
676
struct ines_priv *ines_priv;
drivers/gpib/ines/ines_gpib.c
685
ines_priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
686
nec_priv = &ines_priv->nec7210_priv;
drivers/gpib/ines/ines_gpib.c
691
ines_priv->pci_chip_type = PCI_CHIP_NONE;
drivers/gpib/ines/ines_gpib.c
696
static void ines_online(struct ines_priv *ines_priv, const struct gpib_board *board, int use_accel)
drivers/gpib/ines/ines_gpib.c
698
struct nec7210_priv *nec_priv = &ines_priv->nec7210_priv;
drivers/gpib/ines/ines_gpib.c
709
ines_outb(ines_priv, 0, XDMA_CONTROL);
drivers/gpib/ines/ines_gpib.c
710
ines_priv->extend_mode_bits = 0;
drivers/gpib/ines/ines_gpib.c
711
ines_outb(ines_priv, ines_priv->extend_mode_bits, EXTEND_MODE);
drivers/gpib/ines/ines_gpib.c
713
ines_outb(ines_priv, 0x80, OUT_FIFO_WATERMARK);
drivers/gpib/ines/ines_gpib.c
714
ines_outb(ines_priv, 0x80, IN_FIFO_WATERMARK);
drivers/gpib/ines/ines_gpib.c
715
ines_outb(ines_priv, IFC_ACTIVE_BIT | ATN_ACTIVE_BIT |
drivers/gpib/ines/ines_gpib.c
717
ines_outb(ines_priv, IN_FIFO_WATERMARK_BIT | IN_FIFO_FULL_BIT |
drivers/gpib/ines/ines_gpib.c
72
struct ines_priv *ines_priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
721
ines_outb(ines_priv, IFC_ACTIVE_BIT | FIFO_ERROR_BIT, IMR3);
drivers/gpib/ines/ines_gpib.c
722
ines_outb(ines_priv, 0, IMR4);
drivers/gpib/ines/ines_gpib.c
73
struct nec7210_priv *nec_priv = &ines_priv->nec7210_priv;
drivers/gpib/ines/ines_gpib.c
732
struct ines_priv *ines_priv;
drivers/gpib/ines/ines_gpib.c
746
ines_priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
747
nec_priv = &ines_priv->nec7210_priv;
drivers/gpib/ines/ines_gpib.c
750
ines_priv->pci_device = NULL;
drivers/gpib/ines/ines_gpib.c
751
for (i = 0; i < num_pci_chips && !ines_priv->pci_device; i++) {
drivers/gpib/ines/ines_gpib.c
769
ines_priv->pci_device = pdev;
drivers/gpib/ines/ines_gpib.c
773
if (!ines_priv->pci_device) {
drivers/gpib/ines/ines_gpib.c
778
if (pci_enable_device(ines_priv->pci_device)) {
drivers/gpib/ines/ines_gpib.c
783
if (pci_request_regions(ines_priv->pci_device, DRV_NAME))
drivers/gpib/ines/ines_gpib.c
785
nec_priv->iobase = pci_resource_start(ines_priv->pci_device,
drivers/gpib/ines/ines_gpib.c
788
ines_priv->pci_chip_type = found_id.pci_chip_type;
drivers/gpib/ines/ines_gpib.c
790
switch (ines_priv->pci_chip_type) {
drivers/gpib/ines/ines_gpib.c
792
ines_priv->plx_iobase = pci_resource_start(ines_priv->pci_device, 1);
drivers/gpib/ines/ines_gpib.c
795
ines_priv->amcc_iobase = pci_resource_start(ines_priv->pci_device, 0);
drivers/gpib/ines/ines_gpib.c
804
pci_release_regions(ines_priv->pci_device);
drivers/gpib/ines/ines_gpib.c
810
if (ines_priv->pci_chip_type == PCI_CHIP_QUANCOM) {
drivers/gpib/ines/ines_gpib.c
813
ines_outb(ines_priv, nec_priv->auxb_bits, AUXMR);
drivers/gpib/ines/ines_gpib.c
817
if (request_irq(ines_priv->pci_device->irq, ines_pci_interrupt, isr_flags,
drivers/gpib/ines/ines_gpib.c
819
dev_err(board->gpib_dev, "can't request IRQ %d\n", ines_priv->pci_device->irq);
drivers/gpib/ines/ines_gpib.c
822
ines_priv->irq = ines_priv->pci_device->irq;
drivers/gpib/ines/ines_gpib.c
825
switch (ines_priv->pci_chip_type) {
drivers/gpib/ines/ines_gpib.c
828
ines_priv->plx_iobase + PLX9050_INTCSR_REG);
drivers/gpib/ines/ines_gpib.c
840
outl(bits, ines_priv->amcc_iobase + AMCC_PASS_THRU_REG);
drivers/gpib/ines/ines_gpib.c
841
outl(AMCC_ADDON_INTR_ENABLE_BIT, ines_priv->amcc_iobase + AMCC_INTCS_REG);
drivers/gpib/ines/ines_gpib.c
860
struct ines_priv *ines_priv;
drivers/gpib/ines/ines_gpib.c
867
ines_priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
868
ines_online(ines_priv, board, 0);
drivers/gpib/ines/ines_gpib.c
875
struct ines_priv *ines_priv;
drivers/gpib/ines/ines_gpib.c
882
ines_priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
883
ines_online(ines_priv, board, 1);
drivers/gpib/ines/ines_gpib.c
892
struct ines_priv *ines_priv;
drivers/gpib/ines/ines_gpib.c
901
ines_priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
902
nec_priv = &ines_priv->nec7210_priv;
drivers/gpib/ines/ines_gpib.c
916
ines_priv->irq = config->ibirq;
drivers/gpib/ines/ines_gpib.c
917
ines_online(ines_priv, board, 1);
drivers/gpib/ines/ines_gpib.c
923
struct ines_priv *ines_priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
926
if (ines_priv) {
drivers/gpib/ines/ines_gpib.c
927
nec_priv = &ines_priv->nec7210_priv;
drivers/gpib/ines/ines_gpib.c
928
if (ines_priv->irq) {
drivers/gpib/ines/ines_gpib.c
930
switch (ines_priv->pci_chip_type) {
drivers/gpib/ines/ines_gpib.c
932
if (ines_priv->plx_iobase)
drivers/gpib/ines/ines_gpib.c
933
outl(0, ines_priv->plx_iobase + PLX9050_INTCSR_REG);
drivers/gpib/ines/ines_gpib.c
943
free_irq(ines_priv->irq, board);
drivers/gpib/ines/ines_gpib.c
947
pci_release_regions(ines_priv->pci_device);
drivers/gpib/ines/ines_gpib.c
949
if (ines_priv->pci_device)
drivers/gpib/ines/ines_gpib.c
95
static inline unsigned short num_in_fifo_bytes(struct ines_priv *ines_priv)
drivers/gpib/ines/ines_gpib.c
950
pci_dev_put(ines_priv->pci_device);
drivers/gpib/ines/ines_gpib.c
957
struct ines_priv *ines_priv = board->private_data;
drivers/gpib/ines/ines_gpib.c
960
if (ines_priv) {
drivers/gpib/ines/ines_gpib.c
961
nec_priv = &ines_priv->nec7210_priv;
drivers/gpib/ines/ines_gpib.c
962
if (ines_priv->irq)
drivers/gpib/ines/ines_gpib.c
963
free_irq(ines_priv->irq, board);
drivers/gpib/ines/ines_gpib.c
97
return ines_inb(ines_priv, IN_FIFO_COUNT);