Home
last modified time | relevance | path

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

12345678910>>...61

/linux/drivers/gpib/common/
H A Diblib.c24 int ibcac(struct gpib_board *board, int sync, int fallback_to_async) in ibcac() argument
26 int status = ibstatus(board); in ibcac()
43 retval = board->interface->take_control(board, sync); in ibcac()
47 retval = board->interface->take_control(board, 0); in ibcac()
49 board->interface->update_status(board, 0); in ibcac()
66 static int check_for_command_acceptors(struct gpib_board *board) in check_for_command_acceptors() argument
70 if (board->interface->skip_check_for_command_acceptors) in check_for_command_acceptors()
72 if (!board->interface->line_status) in check_for_command_acceptors()
77 lines = board->interface->line_status(board); in check_for_command_acceptors()
101 int ibcmd(struct gpib_board *board, u8 *buf, size_t length, size_t *bytes_written) in ibcmd() argument
[all …]
H A Dgpib_os.c30 struct gpib_board *board, unsigned long arg);
31 static int read_ioctl(struct gpib_file_private *file_priv, struct gpib_board *board,
33 static int write_ioctl(struct gpib_file_private *file_priv, struct gpib_board *board,
35 static int command_ioctl(struct gpib_file_private *file_priv, struct gpib_board *board,
37 static int open_dev_ioctl(struct file *filep, struct gpib_board *board, unsigned long arg);
38 static int close_dev_ioctl(struct file *filep, struct gpib_board *board, unsigned long arg);
39 static int serial_poll_ioctl(struct gpib_board *board, unsigned long arg);
41 struct gpib_board *board, unsigned long arg);
42 static int parallel_poll_ioctl(struct gpib_board *board, unsigned long arg);
43 static int online_ioctl(struct gpib_board *board, unsigned long arg);
[all …]
/linux/drivers/gpib/cec/
H A Dcec_gpib.c28 struct gpib_board *board = arg; in cec_interrupt() local
29 struct cec_priv *priv = board->private_data; in cec_interrupt()
33 spin_lock_irqsave(&board->spinlock, flags); in cec_interrupt()
34 retval = nec7210_interrupt(board, &priv->nec7210_priv); in cec_interrupt()
35 spin_unlock_irqrestore(&board->spinlock, flags); in cec_interrupt()
43 static int cec_pci_attach(struct gpib_board *board, const struct gpib_board_config *config);
45 static void cec_pci_detach(struct gpib_board *board);
48 static int cec_read(struct gpib_board *board, u8 *buffer, size_t length, int *end, in cec_read() argument
51 struct cec_priv *priv = board->private_data; in cec_read()
53 return nec7210_read(board, &priv->nec7210_priv, buffer, length, end, bytes_read); in cec_read()
[all …]
/linux/drivers/gpib/hp_82335/
H A Dhp82335.c28 static int hp82335_attach(struct gpib_board *board, const struct gpib_board_config *config);
29 static void hp82335_detach(struct gpib_board *board);
33 static int hp82335_read(struct gpib_board *board, u8 *buffer, size_t length, in hp82335_read() argument
36 struct hp82335_priv *priv = board->private_data; in hp82335_read()
38 return tms9914_read(board, &priv->tms9914_priv, buffer, length, end, bytes_read); in hp82335_read()
41 static int hp82335_write(struct gpib_board *board, u8 *buffer, size_t length, int send_eoi, in hp82335_write() argument
44 struct hp82335_priv *priv = board->private_data; in hp82335_write()
46 return tms9914_write(board, &priv->tms9914_priv, buffer, length, send_eoi, bytes_written); in hp82335_write()
49 static int hp82335_command(struct gpib_board *board, u8 *buffer, size_t length, in hp82335_command() argument
52 struct hp82335_priv *priv = board->private_data; in hp82335_command()
[all …]
/linux/drivers/gpib/pc2/
H A Dpc2_gpib.c61 struct gpib_board *board = arg; in pc2_interrupt() local
62 struct pc2_priv *priv = board->private_data; in pc2_interrupt()
66 spin_lock_irqsave(&board->spinlock, flags); in pc2_interrupt()
67 retval = nec7210_interrupt(board, &priv->nec7210_priv); in pc2_interrupt()
68 spin_unlock_irqrestore(&board->spinlock, flags); in pc2_interrupt()
74 struct gpib_board *board = arg; in pc2a_interrupt() local
75 struct pc2_priv *priv = board->private_data; in pc2a_interrupt()
80 spin_lock_irqsave(&board->spinlock, flags); in pc2a_interrupt()
87 retval = nec7210_interrupt_have_status(board, &priv->nec7210_priv, status1, status2); in pc2a_interrupt()
88 spin_unlock_irqrestore(&board->spinlock, flags); in pc2a_interrupt()
[all …]
/linux/drivers/gpib/fmh_gpib/
H A Dfmh_gpib.c35 static int fmh_gpib_attach_holdoff_all(struct gpib_board *board,
37 static int fmh_gpib_attach_holdoff_end(struct gpib_board *board,
39 static void fmh_gpib_detach(struct gpib_board *board);
40 static int fmh_gpib_pci_attach_holdoff_all(struct gpib_board *board,
42 static int fmh_gpib_pci_attach_holdoff_end(struct gpib_board *board,
44 static void fmh_gpib_pci_detach(struct gpib_board *board);
45 static int fmh_gpib_config_dma(struct gpib_board *board, int output);
46 static irqreturn_t fmh_gpib_internal_interrupt(struct gpib_board *board);
51 static int fmh_gpib_read(struct gpib_board *board, u8 *buffer, size_t length, in fmh_gpib_read() argument
54 struct fmh_priv *priv = board->private_data; in fmh_gpib_read()
[all …]
/linux/drivers/gpib/eastwood/
H A Dfluke_gpib.c27 static int fluke_attach_holdoff_all(struct gpib_board *board,
29 static int fluke_attach_holdoff_end(struct gpib_board *board,
31 static void fluke_detach(struct gpib_board *board);
32 static int fluke_config_dma(struct gpib_board *board, int output);
33 static irqreturn_t fluke_gpib_internal_interrupt(struct gpib_board *board);
59 static int fluke_read(struct gpib_board *board, u8 *buffer, size_t length, int *end, in fluke_read() argument
62 struct fluke_priv *priv = board->private_data; in fluke_read()
64 return nec7210_read(board, &priv->nec7210_priv, buffer, length, end, bytes_read); in fluke_read()
67 static int fluke_write(struct gpib_board *board, u8 *buffer, size_t length, in fluke_write() argument
70 struct fluke_priv *priv = board->private_data; in fluke_write()
[all …]
/linux/drivers/gpib/agilent_82350b/
H A Dagilent_82350b.c28 static unsigned short read_and_clear_event_status(struct gpib_board *board);
30 static int agilent_82350b_write(struct gpib_board *board, u8 *buffer,
33 static int agilent_82350b_accel_read(struct gpib_board *board, u8 *buffer, in agilent_82350b_accel_read() argument
37 struct agilent_82350b_priv *a_priv = board->private_data; in agilent_82350b_accel_read()
44 return tms9914_read(board, tms_priv, buffer, length, end, bytes_read); in agilent_82350b_accel_read()
48 read_and_clear_event_status(board); in agilent_82350b_accel_read()
59 retval = tms9914_read(board, tms_priv, buffer, 1, end, &num_bytes); in agilent_82350b_accel_read()
86 retval = wait_event_interruptible(board->wait, in agilent_82350b_accel_read()
88 read_and_clear_event_status(board)) & in agilent_82350b_accel_read()
92 test_bit(TIMO_NUM, &board->status)); in agilent_82350b_accel_read()
[all …]
/linux/drivers/gpib/hp_82341/
H A Dhp_82341.c25 static unsigned short read_and_clear_event_status(struct gpib_board *board);
28 static int hp_82341_write(struct gpib_board *board, u8 *buffer, size_t length, int send_eoi,
32 static int hp_82341_accel_read(struct gpib_board *board, u8 *buffer, size_t length, int *end, in hp_82341_accel_read() argument
35 struct hp_82341_priv *hp_priv = board->private_data; in hp_82341_accel_read()
43 return tms9914_read(board, tms_priv, buffer, length, end, bytes_read); in hp_82341_accel_read()
47 read_and_clear_event_status(board); in hp_82341_accel_read()
63 retval = tms9914_read(board, tms_priv, buffer, 1, end, &num_bytes); in hp_82341_accel_read()
66 dev_err(board->gpib_dev, "tms9914_read failed retval=%i\n", retval); in hp_82341_accel_read()
91 retval = wait_event_interruptible(board->wait, in hp_82341_accel_read()
93 read_and_clear_event_status(board)) & in hp_82341_accel_read()
[all …]
/linux/drivers/gpib/cb7210/
H A Dcb7210.c30 static int cb7210_read(struct gpib_board *board, u8 *buffer, size_t length,
43 static inline void input_fifo_enable(struct gpib_board *board, int enable) in input_fifo_enable() argument
45 struct cb7210_priv *cb_priv = board->private_data; in input_fifo_enable()
49 spin_lock_irqsave(&board->spinlock, flags); in input_fifo_enable()
76 spin_unlock_irqrestore(&board->spinlock, flags); in input_fifo_enable()
79 static int fifo_read(struct gpib_board *board, struct cb7210_priv *cb_priv, u8 *buffer, in fifo_read() argument
90 dev_err(board->gpib_dev, "fifo iobase is zero!\n"); in fifo_read()
95 dev_err(board->gpib_dev, " bug! fifo read length < fifo size\n"); in fifo_read()
99 input_fifo_enable(board, 1); in fifo_read()
104 if (wait_event_interruptible(board->wait, in fifo_read()
[all …]
/linux/drivers/gpib/ines/
H A Dines_gpib.c28 static irqreturn_t ines_interrupt(struct gpib_board *board);
30 static int ines_line_status(const struct gpib_board *board) in ines_line_status() argument
36 ines_priv = board->private_data; in ines_line_status()
70 static int ines_t1_delay(struct gpib_board *board, unsigned int nano_sec) in ines_t1_delay() argument
72 struct ines_priv *ines_priv = board->private_data; in ines_t1_delay()
76 retval = nec7210_t1_delay(board, nec_priv, nano_sec); in ines_t1_delay()
100 static ssize_t pio_read(struct gpib_board *board, struct ines_priv *ines_priv, u8 *buffer, in pio_read() argument
109 if (wait_event_interruptible(board->wait, in pio_read()
113 test_bit(TIMO_NUM, &board->status))) in pio_read()
116 if (test_bit(TIMO_NUM, &board->status)) in pio_read()
[all …]
/linux/drivers/gpib/tms9914/
H A Dtms9914.c30 static unsigned int update_status_nolock(struct gpib_board *board, struct tms9914_priv *priv);
32 int tms9914_take_control(struct gpib_board *board, struct tms9914_priv *priv, int synchronous) in tms9914_take_control() argument
70 int tms9914_take_control_workaround(struct gpib_board *board, in tms9914_take_control_workaround() argument
75 return tms9914_take_control(board, priv, synchronous); in tms9914_take_control_workaround()
79 int tms9914_go_to_standby(struct gpib_board *board, struct tms9914_priv *priv) in tms9914_go_to_standby() argument
100 void tms9914_interface_clear(struct gpib_board *board, struct tms9914_priv *priv, int assert) in tms9914_interface_clear() argument
105 set_bit(CIC_NUM, &board->status); in tms9914_interface_clear()
112 void tms9914_remote_enable(struct gpib_board *board, struct tms9914_priv *priv, int enable) in tms9914_remote_enable() argument
121 int tms9914_request_system_control(struct gpib_board *board, struct tms9914_priv *priv, in tms9914_request_system_control() argument
127 clear_bit(CIC_NUM, &board->status); in tms9914_request_system_control()
[all …]
/linux/drivers/gpib/include/
H A Dgpib_proto.h11 void os_start_timer(struct gpib_board *board, unsigned int usec_timeout);
12 void os_remove_timer(struct gpib_board *board);
13 void init_gpib_board(struct gpib_board *board);
21 int serial_poll_all(struct gpib_board *board, unsigned int usec_timeout);
23 int dvrsp(struct gpib_board *board, unsigned int pad, int sad,
25 int ibcac(struct gpib_board *board, int sync, int fallback_to_async);
26 int ibcmd(struct gpib_board *board, u8 *buf, size_t length, size_t *bytes_written);
27 int ibgts(struct gpib_board *board);
28 int ibonline(struct gpib_board *board);
29 int iboffline(struct gpib_board *board);
[all …]
H A Dnec7210.h81 int nec7210_read(struct gpib_board *board, struct nec7210_priv *priv, u8 *buffer,
83 int nec7210_write(struct gpib_board *board, struct nec7210_priv *priv, u8 *buffer,
85 int nec7210_command(struct gpib_board *board, struct nec7210_priv *priv, u8 *buffer,
87 int nec7210_take_control(struct gpib_board *board, struct nec7210_priv *priv, int syncronous);
88 int nec7210_go_to_standby(struct gpib_board *board, struct nec7210_priv *priv);
89 int nec7210_request_system_control(struct gpib_board *board,
91 void nec7210_interface_clear(struct gpib_board *board, struct nec7210_priv *priv, int assert);
92 void nec7210_remote_enable(struct gpib_board *board, struct nec7210_priv *priv, int enable);
93 int nec7210_enable_eos(struct gpib_board *board, struct nec7210_priv *priv, u8 eos_bytes,
95 void nec7210_disable_eos(struct gpib_board *board, struct nec7210_priv *priv);
[all …]
H A Dgpib_types.h60 int (*attach)(struct gpib_board *board, const struct gpib_board_config *config);
62 void (*detach)(struct gpib_board *board);
74 int (*read)(struct gpib_board *board, u8 *buffer, size_t length, int *end,
82 int (*write)(struct gpib_board *board, u8 *buffer, size_t length, int send_eoi,
88 int (*command)(struct gpib_board *board, u8 *buffer, size_t length,
97 int (*take_control)(struct gpib_board *board, int asyncronous);
101 int (*go_to_standby)(struct gpib_board *board);
103 int (*request_system_control)(struct gpib_board *board, int request_control);
108 void (*interface_clear)(struct gpib_board *board, int assert);
113 void (*remote_enable)(struct gpib_board *board, int enable);
[all …]
H A Dtms9914.h82 int tms9914_read(struct gpib_board *board, struct tms9914_priv *priv, u8 *buffer,
84 int tms9914_write(struct gpib_board *board, struct tms9914_priv *priv, u8 *buffer,
86 int tms9914_command(struct gpib_board *board, struct tms9914_priv *priv, u8 *buffer,
88 int tms9914_take_control(struct gpib_board *board, struct tms9914_priv *priv, int syncronous);
93 int tms9914_take_control_workaround(struct gpib_board *board, struct tms9914_priv *priv,
95 int tms9914_go_to_standby(struct gpib_board *board, struct tms9914_priv *priv);
96 int tms9914_request_system_control(struct gpib_board *board, struct tms9914_priv *priv,
98 void tms9914_interface_clear(struct gpib_board *board, struct tms9914_priv *priv, int assert);
99 void tms9914_remote_enable(struct gpib_board *board, struct tms9914_priv *priv, int enable);
100 int tms9914_enable_eos(struct gpib_board *board, struct tms9914_priv *priv, u8 eos_bytes,
[all …]
/linux/drivers/gpib/tnt4882/
H A Dtnt4882_gpib.c54 static irqreturn_t tnt4882_internal_interrupt(struct gpib_board *board);
151 static int tnt4882_line_status(const struct gpib_board *board) in tnt4882_line_status() argument
157 tnt_priv = board->private_data; in tnt4882_line_status()
181 static int tnt4882_t1_delay(struct gpib_board *board, unsigned int nano_sec) in tnt4882_t1_delay() argument
183 struct tnt4882_priv *tnt_priv = board->private_data; in tnt4882_t1_delay()
187 retval = nec7210_t1_delay(board, nec_priv, nano_sec); in tnt4882_t1_delay()
254 static void tnt4882_release_holdoff(struct gpib_board *board, struct tnt4882_priv *tnt_priv) in tnt4882_release_holdoff() argument
266 nec7210_set_handshake_mode(board, nec_priv, HR_HLDE); in tnt4882_release_holdoff()
269 nec7210_set_handshake_mode(board, nec_priv, HR_HLDA); in tnt4882_release_holdoff()
271 nec7210_set_handshake_mode(board, nec_priv, HR_HLDE); in tnt4882_release_holdoff()
[all …]
/linux/drivers/gpib/nec7210/
H A Dnec7210.c26 int nec7210_enable_eos(struct gpib_board *board, struct nec7210_priv *priv, u8 eos_byte, in nec7210_enable_eos() argument
40 void nec7210_disable_eos(struct gpib_board *board, struct nec7210_priv *priv) in nec7210_disable_eos() argument
47 int nec7210_parallel_poll(struct gpib_board *board, struct nec7210_priv *priv, u8 *result) in nec7210_parallel_poll() argument
56 ret = wait_event_interruptible(board->wait, test_bit(COMMAND_READY_BN, &priv->state)); in nec7210_parallel_poll()
58 dev_dbg(board->gpib_dev, "gpib: parallel poll interrupted\n"); in nec7210_parallel_poll()
67 void nec7210_parallel_poll_configure(struct gpib_board *board, in nec7210_parallel_poll_configure() argument
74 void nec7210_parallel_poll_response(struct gpib_board *board, struct nec7210_priv *priv, int ist) in nec7210_parallel_poll_response() argument
89 void nec7210_serial_poll_response(struct gpib_board *board, in nec7210_serial_poll_response() argument
94 spin_lock_irqsave(&board->spinlock, flags); in nec7210_serial_poll_response()
97 clear_bit(SPOLL_NUM, &board->status); in nec7210_serial_poll_response()
[all …]
/linux/drivers/gpib/gpio/
H A Dgpib_bitbang.c47 dev_dbg(board->gpib_dev, frm, ## __VA_ARGS__); } \
315 static void bb_buffer_print(struct gpib_board *board, unsigned char *buffer, size_t length,
322 static void set_atn(struct gpib_board *board, int atn_asserted);
350 static int bb_read(struct gpib_board *board, u8 *buffer, size_t length, in bb_read() argument
353 struct bb_priv *priv = board->private_data; in bb_read()
361 board, mutex_is_locked(&board->user_mutex), length); in bb_read()
387 retval = wait_event_interruptible(board->wait, in bb_read()
388 (priv->end_flag || board->status & TIMO)); in bb_read()
392 if (retval == 0 && board->status & TIMO) { in bb_read()
422 struct gpib_board *board = arg; in bb_DAV_interrupt() local
[all …]
/linux/drivers/gpib/lpvo_usb_gpib/
H A Dlpvo_usb_gpib.c78 dev_dbg(board->gpib_dev, format, ## __VA_ARGS__); } \
151 #define GPIB_DEV (((struct usb_gpib_priv *)board->private_data)->dev)
153 static void show_status(struct gpib_board *board) in show_status() argument
155 DIA_LOG(2, "# - buffer_length %d\n", board->buffer_length); in show_status()
156 DIA_LOG(2, "# - status %lx\n", board->status); in show_status()
157 DIA_LOG(2, "# - use_count %d\n", board->use_count); in show_status()
158 DIA_LOG(2, "# - pad %x\n", board->pad); in show_status()
159 DIA_LOG(2, "# - sad %x\n", board->sad); in show_status()
160 DIA_LOG(2, "# - timeout %d\n", board->usec_timeout); in show_status()
161 DIA_LOG(2, "# - ppc %d\n", board->parallel_poll_configuration); in show_status()
[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/gpib/agilent_82357a/
H A Dagilent_82357a.c28 static unsigned int agilent_82357a_update_status(struct gpib_board *board,
31 static int agilent_82357a_take_control_internal(struct gpib_board *board, int synchronous);
424 int agilent_82357a_command(struct gpib_board *board, u8 *buffer, size_t length,
427 static int agilent_82357a_read(struct gpib_board *board, u8 *buffer, size_t length, int *end, in agilent_82357a_read() argument
431 struct agilent_82357a_priv *a_priv = board->private_data; in agilent_82357a_read()
463 msec_timeout = (board->usec_timeout + 999) / 1000; in agilent_82357a_read()
485 if (board->usec_timeout != 0) in agilent_82357a_read()
533 agilent_82357a_take_control_internal(board, 0); in agilent_82357a_read()
539 static ssize_t agilent_82357a_generic_write(struct gpib_board *board, in agilent_82357a_generic_write() argument
545 struct agilent_82357a_priv *a_priv = board->private_data; in agilent_82357a_generic_write()
[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 …]

12345678910>>...61