Home
last modified time | relevance | path

Searched refs:board (Results 1 – 25 of 1730) sorted by relevance

12345678910>>...70

/linux/drivers/staging/gpib/common/
H A Dgpib_os.c26 static int board_type_ioctl(gpib_file_private_t *file_priv, gpib_board_t *board, unsigned long arg);
27 static int read_ioctl(gpib_file_private_t *file_priv, gpib_board_t *board,
29 static int write_ioctl(gpib_file_private_t *file_priv, gpib_board_t *board,
31 static int command_ioctl(gpib_file_private_t *file_priv, gpib_board_t *board,
33 static int open_dev_ioctl(struct file *filep, gpib_board_t *board, unsigned long arg);
34 static int close_dev_ioctl(struct file *filep, gpib_board_t *board, unsigned long arg);
35 static int serial_poll_ioctl(gpib_board_t *board, unsigned long arg);
36 static int wait_ioctl(gpib_file_private_t *file_priv, gpib_board_t *board, unsigned long arg);
37 static int parallel_poll_ioctl(gpib_board_t *board, unsigned long arg);
38 static int online_ioctl(gpib_board_t *board, unsigned long arg);
[all …]
/linux/drivers/staging/gpib/cec/
H A Dcec_gpib.c24 gpib_board_t *board = arg; in cec_interrupt() local
25 struct cec_priv *priv = board->private_data; in cec_interrupt()
29 spin_lock_irqsave(&board->spinlock, flags); in cec_interrupt()
30 retval = nec7210_interrupt(board, &priv->nec7210_priv); in cec_interrupt()
31 spin_unlock_irqrestore(&board->spinlock, flags); in cec_interrupt()
39 static int cec_pci_attach(gpib_board_t *board, const gpib_board_config_t *config);
41 static void cec_pci_detach(gpib_board_t *board);
44 int cec_read(gpib_board_t *board, uint8_t *buffer, size_t length, int *end, size_t *bytes_read) in cec_read() argument
46 struct cec_priv *priv = board->private_data; in cec_read()
48 return nec7210_read(board, &priv->nec7210_priv, buffer, length, end, bytes_read); in cec_read()
[all …]
/linux/drivers/staging/gpib/hp_82335/
H A Dhp82335.c23 static int hp82335_attach(gpib_board_t *board, const gpib_board_config_t *config);
25 static void hp82335_detach(gpib_board_t *board);
28 int hp82335_read(gpib_board_t *board, uint8_t *buffer, size_t length, int *end, size_t *bytes_read) in hp82335_read() argument
30 struct hp82335_priv *priv = board->private_data; in hp82335_read()
32 return tms9914_read(board, &priv->tms9914_priv, buffer, length, end, bytes_read); in hp82335_read()
35 int hp82335_write(gpib_board_t *board, uint8_t *buffer, size_t length, int send_eoi, in hp82335_write() argument
38 struct hp82335_priv *priv = board->private_data; in hp82335_write()
40 return tms9914_write(board, &priv->tms9914_priv, buffer, length, send_eoi, bytes_written); in hp82335_write()
43 int hp82335_command(gpib_board_t *board, uint8_t *buffer, size_t length, size_t *bytes_written) in hp82335_command() argument
45 struct hp82335_priv *priv = board->private_data; in hp82335_command()
[all …]
/linux/drivers/staging/gpib/pc2/
H A Dpc2_gpib.c52 static int pc2_attach(gpib_board_t *board, const gpib_board_config_t *config);
53 static int pc2a_attach(gpib_board_t *board, const gpib_board_config_t *config);
54 static int pc2a_cb7210_attach(gpib_board_t *board, const gpib_board_config_t *config);
55 static int pc2_2a_attach(gpib_board_t *board, const gpib_board_config_t *config);
57 static void pc2_detach(gpib_board_t *board);
58 static void pc2a_detach(gpib_board_t *board);
59 static void pc2_2a_detach(gpib_board_t *board);
67 gpib_board_t *board = arg; in pc2_interrupt() local
68 struct pc2_priv *priv = board->private_data; in pc2_interrupt()
72 spin_lock_irqsave(&board->spinlock, flags); in pc2_interrupt()
[all …]
/linux/drivers/staging/gpib/fmh_gpib/
H A Dfmh_gpib.c31 static int fmh_gpib_attach_holdoff_all(gpib_board_t *board, const gpib_board_config_t *config);
32 static int fmh_gpib_attach_holdoff_end(gpib_board_t *board, const gpib_board_config_t *config);
33 static void fmh_gpib_detach(gpib_board_t *board);
34 static int fmh_gpib_pci_attach_holdoff_all(gpib_board_t *board, const gpib_board_config_t *config);
35 static int fmh_gpib_pci_attach_holdoff_end(gpib_board_t *board, const gpib_board_config_t *config);
36 static void fmh_gpib_pci_detach(gpib_board_t *board);
37 static int fmh_gpib_config_dma(gpib_board_t *board, int output);
38 static irqreturn_t fmh_gpib_internal_interrupt(gpib_board_t *board);
43 static int fmh_gpib_read(gpib_board_t *board, uint8_t *buffer, size_t length, in fmh_gpib_read() argument
46 struct fmh_priv *priv = board->private_data; in fmh_gpib_read()
[all …]
/linux/drivers/staging/gpib/eastwood/
H A Dfluke_gpib.c23 static int fluke_attach_holdoff_all(gpib_board_t *board, const gpib_board_config_t *config);
24 static int fluke_attach_holdoff_end(gpib_board_t *board, const gpib_board_config_t *config);
25 static void fluke_detach(gpib_board_t *board);
26 static int fluke_config_dma(gpib_board_t *board, int output);
27 static irqreturn_t fluke_gpib_internal_interrupt(gpib_board_t *board);
53 static int fluke_read(gpib_board_t *board, uint8_t *buffer, size_t length, int *end, in fluke_read() argument
56 struct fluke_priv *priv = board->private_data; in fluke_read()
58 return nec7210_read(board, &priv->nec7210_priv, buffer, length, end, bytes_read); in fluke_read()
61 static int fluke_write(gpib_board_t *board, uint8_t *buffer, size_t length, in fluke_write() argument
64 struct fluke_priv *priv = board->private_data; in fluke_write()
[all …]
/linux/drivers/staging/gpib/agilent_82350b/
H A Dagilent_82350b.c23 int agilent_82350b_accel_read(gpib_board_t *board, uint8_t *buffer, size_t length, int *end, in agilent_82350b_accel_read() argument
27 struct agilent_82350b_priv *a_priv = board->private_data; in agilent_82350b_accel_read()
34 return tms9914_read(board, tms_priv, buffer, length, end, bytes_read); in agilent_82350b_accel_read()
38 read_and_clear_event_status(board); in agilent_82350b_accel_read()
49 retval = tms9914_read(board, tms_priv, buffer, 1, end, &num_bytes); in agilent_82350b_accel_read()
52 dev_err(board->gpib_dev, "%s: tms9914_read failed retval=%i\n", in agilent_82350b_accel_read()
81 retval = wait_event_interruptible(board->wait, in agilent_82350b_accel_read()
83 read_and_clear_event_status(board)) & in agilent_82350b_accel_read()
87 test_bit(TIMO_NUM, &board->status)); in agilent_82350b_accel_read()
89 dev_dbg(board->gpib_dev, "%s: read wait interrupted\n", driver_name); in agilent_82350b_accel_read()
[all …]
/linux/drivers/staging/gpib/hp_82341/
H A Dhp_82341.c20 int hp_82341_accel_read(gpib_board_t *board, uint8_t *buffer, size_t length, int *end, in hp_82341_accel_read() argument
23 struct hp_82341_priv *hp_priv = board->private_data; in hp_82341_accel_read()
31 return tms9914_read(board, tms_priv, buffer, length, end, bytes_read); in hp_82341_accel_read()
35 read_and_clear_event_status(board); in hp_82341_accel_read()
50 retval = tms9914_read(board, tms_priv, buffer, 1, end, &num_bytes); in hp_82341_accel_read()
81 retval = wait_event_interruptible(board->wait, in hp_82341_accel_read()
83 read_and_clear_event_status(board)) & in hp_82341_accel_read()
87 test_bit(TIMO_NUM, &board->status)); in hp_82341_accel_read()
113 if (test_bit(TIMO_NUM, &board->status)) { in hp_82341_accel_read()
114 pr_debug("%s: minor %i: read timed out\n", __FILE__, board->minor); in hp_82341_accel_read()
[all …]
/linux/drivers/staging/gpib/tnt4882/
H A Dtnt4882_gpib.c51 static int tnt4882_read(gpib_board_t *board, uint8_t *buffer, size_t length,
53 static int tnt4882_accel_read(gpib_board_t *board, uint8_t *buffer, size_t length,
55 static int tnt4882_write(gpib_board_t *board, uint8_t *buffer, size_t length,
57 static int tnt4882_accel_write(gpib_board_t *board, uint8_t *buffer, size_t length,
59 static int tnt4882_command(gpib_board_t *board, uint8_t *buffer, size_t length,
61 static int tnt4882_command_unaccel(gpib_board_t *board, uint8_t *buffer,
63 static int tnt4882_take_control(gpib_board_t *board, int synchronous);
64 static int tnt4882_go_to_standby(gpib_board_t *board);
65 static void tnt4882_request_system_control(gpib_board_t *board, int request_control);
66 static void tnt4882_interface_clear(gpib_board_t *board, int assert);
[all …]
/linux/drivers/staging/gpib/tms9914/
H A Dtms9914.c27 static unsigned int update_status_nolock(gpib_board_t *board, struct tms9914_priv *priv);
29 int tms9914_take_control(gpib_board_t *board, struct tms9914_priv *priv, int synchronous) in tms9914_take_control() argument
66 int tms9914_take_control_workaround(gpib_board_t *board, struct tms9914_priv *priv, int synchronous) in tms9914_take_control_workaround() argument
70 return tms9914_take_control(board, priv, synchronous); in tms9914_take_control_workaround()
74 int tms9914_go_to_standby(gpib_board_t *board, struct tms9914_priv *priv) in tms9914_go_to_standby() argument
97 void tms9914_interface_clear(gpib_board_t *board, struct tms9914_priv *priv, int assert) in tms9914_interface_clear() argument
102 set_bit(CIC_NUM, &board->status); in tms9914_interface_clear()
109 void tms9914_remote_enable(gpib_board_t *board, struct tms9914_priv *priv, int enable) in tms9914_remote_enable() argument
118 void tms9914_request_system_control(gpib_board_t *board, struct tms9914_priv *priv, in tms9914_request_system_control() argument
124 clear_bit(CIC_NUM, &board->status); in tms9914_request_system_control()
[all …]
/linux/drivers/staging/gpib/ines/
H A Dines_gpib.c24 int ines_line_status(const gpib_board_t *board) in ines_line_status() argument
31 ines_priv = board->private_data; in ines_line_status()
66 unsigned int ines_t1_delay(gpib_board_t *board, unsigned int nano_sec) in ines_t1_delay() argument
68 struct ines_priv *ines_priv = board->private_data; in ines_t1_delay()
72 retval = nec7210_t1_delay(board, nec_priv, nano_sec); in ines_t1_delay()
96 static ssize_t pio_read(gpib_board_t *board, struct ines_priv *ines_priv, uint8_t *buffer, in pio_read() argument
105 if (wait_event_interruptible(board->wait, in pio_read()
109 test_bit(TIMO_NUM, &board->status))) { in pio_read()
113 if (test_bit(TIMO_NUM, &board->status)) in pio_read()
133 ines_interrupt(board); in pio_read()
[all …]
H A Dines.h39 int ines_read(gpib_board_t *board, uint8_t *buffer, size_t length, int *end, size_t *bytes_read);
40 int ines_write(gpib_board_t *board, uint8_t *buffer, size_t length,
42 int ines_accel_read(gpib_board_t *board, uint8_t *buffer, size_t length,
44 int ines_accel_write(gpib_board_t *board, uint8_t *buffer, size_t length,
46 int ines_command(gpib_board_t *board, uint8_t *buffer, size_t length, size_t *bytes_written);
47 int ines_take_control(gpib_board_t *board, int synchronous);
48 int ines_go_to_standby(gpib_board_t *board);
49 void ines_request_system_control(gpib_board_t *board, int request_control);
50 void ines_interface_clear(gpib_board_t *board, int assert);
51 void ines_remote_enable(gpib_board_t *board, int enable);
[all …]
/linux/drivers/staging/gpib/nec7210/
H A Dnec7210.c24 int nec7210_enable_eos(gpib_board_t *board, struct nec7210_priv *priv, uint8_t eos_byte, in nec7210_enable_eos() argument
38 void nec7210_disable_eos(gpib_board_t *board, struct nec7210_priv *priv) in nec7210_disable_eos() argument
45 int nec7210_parallel_poll(gpib_board_t *board, struct nec7210_priv *priv, uint8_t *result) in nec7210_parallel_poll() argument
54 ret = wait_event_interruptible(board->wait, test_bit(COMMAND_READY_BN, &priv->state)); in nec7210_parallel_poll()
56 dev_dbg(board->gpib_dev, "gpib: parallel poll interrupted\n"); in nec7210_parallel_poll()
65 void nec7210_parallel_poll_configure(gpib_board_t *board, in nec7210_parallel_poll_configure() argument
72 void nec7210_parallel_poll_response(gpib_board_t *board, struct nec7210_priv *priv, int ist) in nec7210_parallel_poll_response() argument
86 void nec7210_serial_poll_response(gpib_board_t *board, struct nec7210_priv *priv, uint8_t status) in nec7210_serial_poll_response() argument
90 spin_lock_irqsave(&board->spinlock, flags); in nec7210_serial_poll_response()
93 clear_bit(SPOLL_NUM, &board->status); in nec7210_serial_poll_response()
[all …]
/linux/drivers/staging/gpib/cb7210/
H A Dcb7210.c36 static inline void input_fifo_enable(gpib_board_t *board, int enable) in input_fifo_enable() argument
38 struct cb7210_priv *cb_priv = board->private_data; in input_fifo_enable()
42 spin_lock_irqsave(&board->spinlock, flags); in input_fifo_enable()
69 spin_unlock_irqrestore(&board->spinlock, flags); in input_fifo_enable()
72 static int fifo_read(gpib_board_t *board, struct cb7210_priv *cb_priv, uint8_t *buffer, in fifo_read() argument
92 input_fifo_enable(board, 1); in fifo_read()
97 if (wait_event_interruptible(board->wait, in fifo_read()
102 test_bit(TIMO_NUM, &board->status))) { in fifo_read()
109 spin_lock_irqsave(&board->spinlock, flags); in fifo_read()
123 spin_unlock_irqrestore(&board->spinlock, flags); in fifo_read()
[all …]
H A Dcb7210.h42 irqreturn_t cb7210_internal_interrupt(gpib_board_t *board);
45 int cb7210_read(gpib_board_t *board, uint8_t *buffer, size_t length,
47 int cb7210_accel_read(gpib_board_t *board, uint8_t *buffer, size_t length,
49 int cb7210_write(gpib_board_t *board, uint8_t *buffer, size_t length,
51 int cb7210_accel_write(gpib_board_t *board, uint8_t *buffer, size_t length,
53 int cb7210_command(gpib_board_t *board, uint8_t *buffer, size_t length, size_t *bytes_written);
54 int cb7210_take_control(gpib_board_t *board, int synchronous);
55 int cb7210_go_to_standby(gpib_board_t *board);
56 void cb7210_request_system_control(gpib_board_t *board, int request_control);
57 void cb7210_interface_clear(gpib_board_t *board, int assert);
[all …]
/linux/drivers/staging/gpib/lpvo_usb_gpib/
H A Dlpvo_usb_gpib.c144 #define GPIB_DEV (((struct usb_gpib_priv *)board->private_data)->dev)
146 #define SHOW_STATUS(board) { \ argument
147 DIA_LOG(2, "# - board %p\n", board); \
148 DIA_LOG(2, "# - buffer_length %d\n", board->buffer_length); \
149 DIA_LOG(2, "# - status %lx\n", board->status); \
150 DIA_LOG(2, "# - use_count %d\n", board->use_count); \
151 DIA_LOG(2, "# - pad %x\n", board->pad); \
152 DIA_LOG(2, "# - sad %x\n", board->sad); \
153 DIA_LOG(2, "# - timeout %d\n", board->usec_timeout); \
154 DIA_LOG(2, "# - ppc %d\n", board->parallel_poll_configuration); \
[all …]
/linux/drivers/staging/gpib/gpio/
H A Dgpib_bitbang.c357 static int bb_read(gpib_board_t *board, uint8_t *buffer, size_t length, in bb_read() argument
360 struct bb_priv *priv = board->private_data; in bb_read()
368 board, mutex_is_locked(&board->user_mutex), length); in bb_read()
394 retval = wait_event_interruptible(board->wait, in bb_read()
395 (priv->end_flag || board->status & TIMO)); in bb_read()
399 if (retval == 0 && board->status & TIMO) { in bb_read()
429 gpib_board_t *board = arg; in bb_DAV_interrupt() local
430 struct bb_priv *priv = board->private_data; in bb_DAV_interrupt()
461 irq, val, board->status, priv->direction, priv->r_busy, priv->w_busy); in bb_DAV_interrupt()
475 wake_up_interruptible(&board->wait); in bb_DAV_interrupt()
[all …]
/linux/drivers/staging/gpib/include/
H A Dnec7210.h81 int nec7210_read(gpib_board_t *board, struct nec7210_priv *priv, uint8_t *buffer,
83 int nec7210_write(gpib_board_t *board, struct nec7210_priv *priv, uint8_t *buffer,
85 int nec7210_command(gpib_board_t *board, struct nec7210_priv *priv, uint8_t *buffer,
87 int nec7210_take_control(gpib_board_t *board, struct nec7210_priv *priv, int syncronous);
88 int nec7210_go_to_standby(gpib_board_t *board, struct nec7210_priv *priv);
89 void nec7210_request_system_control(gpib_board_t *board,
91 void nec7210_interface_clear(gpib_board_t *board, struct nec7210_priv *priv, int assert);
92 void nec7210_remote_enable(gpib_board_t *board, struct nec7210_priv *priv, int enable);
93 int nec7210_enable_eos(gpib_board_t *board, struct nec7210_priv *priv, uint8_t eos_bytes,
95 void nec7210_disable_eos(gpib_board_t *board, struct nec7210_priv *priv);
[all …]
H A Dgpib_types.h58 int (*attach)(gpib_board_t *board, const gpib_board_config_t *config);
60 void (*detach)(gpib_board_t *board);
71 int (*read)(gpib_board_t *board, uint8_t *buffer, size_t length, int *end,
78 int (*write)(gpib_board_t *board, uint8_t *buffer, size_t length, int send_eoi,
83 int (*command)(gpib_board_t *board, uint8_t *buffer, size_t length,
91 int (*take_control)(gpib_board_t *board, int asyncronous);
94 int (*go_to_standby)(gpib_board_t *board);
96 void (*request_system_control)(gpib_board_t *board, int request_control);
100 void (*interface_clear)(gpib_board_t *board, int assert);
104 void (*remote_enable)(gpib_board_t *board, int enable);
[all …]
H A Dtms9914.h82 int tms9914_read(gpib_board_t *board, struct tms9914_priv *priv, uint8_t *buffer,
84 int tms9914_write(gpib_board_t *board, struct tms9914_priv *priv, uint8_t *buffer,
86 int tms9914_command(gpib_board_t *board, struct tms9914_priv *priv, uint8_t *buffer,
88 int tms9914_take_control(gpib_board_t *board, struct tms9914_priv *priv, int syncronous);
92 int tms9914_take_control_workaround(gpib_board_t *board, struct tms9914_priv *priv,
94 int tms9914_go_to_standby(gpib_board_t *board, struct tms9914_priv *priv);
95 void tms9914_request_system_control(gpib_board_t *board, struct tms9914_priv *priv,
97 void tms9914_interface_clear(gpib_board_t *board, struct tms9914_priv *priv, int assert);
98 void tms9914_remote_enable(gpib_board_t *board, struct tms9914_priv *priv, int enable);
99 int tms9914_enable_eos(gpib_board_t *board, struct tms9914_priv *priv, uint8_t eos_bytes,
[all …]
/linux/drivers/net/can/sja1000/
H A Dkvaser_pci.c120 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 …]
/linux/drivers/nubus/
H A Dnubus.c226 int nubus_get_root_dir(const struct nubus_board *board, in nubus_get_root_dir() argument
229 dir->ptr = dir->base = board->directory; in nubus_get_root_dir()
231 dir->mask = board->lanes; in nubus_get_root_dir()
241 dir->mask = fres->board->lanes; in nubus_get_func_dir()
246 int nubus_get_board_dir(const struct nubus_board *board, in nubus_get_board_dir() argument
251 dir->ptr = dir->base = board->directory; in nubus_get_board_dir()
253 dir->mask = board->lanes; in nubus_get_board_dir()
345 static int __init nubus_get_block_rsrc_dir(struct nubus_board *board, in nubus_get_block_rsrc_dir() argument
353 dir.procdir = nubus_proc_add_rsrc_dir(procdir, parent, board); in nubus_get_block_rsrc_dir()
365 static int __init nubus_get_display_vidmode(struct nubus_board *board, in nubus_get_display_vidmode() argument
[all …]
H A Dbus.c71 struct nubus_board *board = to_nubus_board(dev); in nubus_device_release() local
75 if (fres->board == board) { in nubus_device_release()
79 kfree(board); in nubus_device_release()
82 int nubus_device_register(struct nubus_board *board) in nubus_device_register() argument
84 board->dev.parent = &nubus_parent; in nubus_device_register()
85 board->dev.release = nubus_device_release; in nubus_device_register()
86 board->dev.bus = &nubus_bus_type; in nubus_device_register()
87 dev_set_name(&board->dev, "slot.%X", board->slot); in nubus_device_register()
88 board->dev.dma_mask = &board->dev.coherent_dma_mask; in nubus_device_register()
89 dma_set_mask(&board->dev, DMA_BIT_MASK(32)); in nubus_device_register()
[all …]
/linux/drivers/mtd/nand/raw/
H A Dorion_nand.c33 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
127 board = devm_kzalloc(&pdev->dev, sizeof(struct orion_nand_data), in orion_nand_probe()
129 if (!board) in orion_nand_probe()
132 board->cle = (u8)val; in orion_nand_probe()
134 board->cle = 0; in orion_nand_probe()
136 board->ale = (u8)val; in orion_nand_probe()
138 board->ale = 1; in orion_nand_probe()
[all …]
/linux/arch/mips/bcm63xx/boards/
H A Dboard_bcm963xx.c34 static struct board_info board; variable
722 return board.name; in board_get_name()
784 memcpy(&board, bcm963xx_boards[i], sizeof(board)); in board_prom_init()
789 if (!board.name[0]) { in board_prom_init()
803 if (board.has_pci) { in board_prom_init()
810 if (board.has_pccard) { in board_prom_init()
815 if (board.has_enet0 && !board.enet0.use_internal_phy) { in board_prom_init()
821 if (board.has_enet1 && !board.enet1.use_internal_phy) { in board_prom_init()
836 if (!board.name[0]) in board_setup()
838 pr_info("board name: %s\n", board.name); in board_setup()
[all …]

12345678910>>...70