| /linux/drivers/gpib/cec/ |
| H A D | cec_gpib.c | 28 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 D | hp82335.c | 28 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 D | pc2_gpib.c | 61 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 D | fmh_gpib.c | 35 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 D | fluke_gpib.c | 26 static int fluke_attach_holdoff_all(struct gpib_board *board, 28 static int fluke_attach_holdoff_end(struct gpib_board *board, 30 static void fluke_detach(struct gpib_board *board); 31 static int fluke_config_dma(struct gpib_board *board, int output); 32 static irqreturn_t fluke_gpib_internal_interrupt(struct gpib_board *board); 58 static int fluke_read(struct gpib_board *board, u8 *buffer, size_t length, int *end, in fluke_read() argument 61 struct fluke_priv *priv = board->private_data; in fluke_read() 63 return nec7210_read(board, &priv->nec7210_priv, buffer, length, end, bytes_read); in fluke_read() 66 static int fluke_write(struct gpib_board *board, u8 *buffer, size_t length, in fluke_write() argument 69 struct fluke_priv *priv = board->private_data; in fluke_write() [all …]
|
| /linux/drivers/gpib/agilent_82350b/ |
| H A D | agilent_82350b.c | 28 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 D | hp_82341.c | 25 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/include/ |
| H A D | gpib_proto.h | 11 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 D | nec7210.h | 81 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 D | gpib_types.h | 60 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 D | tms9914.h | 82 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/cb7210/ |
| H A D | cb7210.c | 30 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/tms9914/ |
| H A D | tms9914.c | 30 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/nec7210/ |
| H A D | nec7210.c | 26 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/tnt4882/ |
| H A D | tnt4882_gpib.c | 54 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/lpvo_usb_gpib/ |
| H A D | lpvo_usb_gpib.c | 79 dev_dbg(board->gpib_dev, format, ## __VA_ARGS__); } \ 152 #define GPIB_DEV (((struct usb_gpib_priv *)board->private_data)->dev) 154 static void show_status(struct gpib_board *board) in show_status() argument 156 DIA_LOG(2, "# - buffer_length %d\n", board->buffer_length); in show_status() 157 DIA_LOG(2, "# - status %lx\n", board->status); in show_status() 158 DIA_LOG(2, "# - use_count %d\n", board->use_count); in show_status() 159 DIA_LOG(2, "# - pad %x\n", board->pad); in show_status() 160 DIA_LOG(2, "# - sad %x\n", board->sad); in show_status() 161 DIA_LOG(2, "# - timeout %d\n", board->usec_timeout); in show_status() 162 DIA_LOG(2, "# - ppc %d\n", board->parallel_poll_configuration); in show_status() [all …]
|
| /linux/drivers/net/can/sja1000/ |
| H A 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 …]
|
| /linux/drivers/mtd/nand/raw/ |
| H A 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 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/sh/boards/ |
| H A D | Makefile | 5 obj-$(CONFIG_SH_MAGIC_PANEL_R2) += board-magicpanelr2.o 6 obj-$(CONFIG_SH_SECUREEDGE5410) += board-secureedge5410.o 7 obj-$(CONFIG_SH_SH2007) += board-sh2007.o 8 obj-$(CONFIG_SH_SH7785LCR) += board-sh7785lcr.o 9 obj-$(CONFIG_SH_URQUELL) += board-urquell.o 10 obj-$(CONFIG_SH_SHMIN) += board-shmin.o 11 obj-$(CONFIG_SH_EDOSK7705) += board-edosk7705.o 12 obj-$(CONFIG_SH_EDOSK7760) += board-edosk7760.o 13 obj-$(CONFIG_SH_ESPT) += board-espt.o 14 obj-$(CONFIG_SH_POLARIS) += board-polaris.o [all …]
|
| /linux/drivers/net/ethernet/sfc/falcon/ |
| H A 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 …]
|
| /linux/sound/soc/intel/common/ |
| H A D | soc-acpi-intel-cht-match.c | 37 .board = "cht-bsw", 97 .board = "bytcr_wm5102", 137 .board = "cht-bsw", 144 .board = "cht-bsw", 151 .board = "cht-bsw", 158 .board = "cht-bsw", 165 .board = "bytcht_da7213", 172 .board = "bytcht_es8316", 181 .board = "bytcr_rt5640", 195 .board = "bytcr_rt5651", [all …]
|
| H A D | soc-acpi-intel-byt-match.c | 93 .board = "cht-bsw", 101 .board = "bytcr_rt5651", 146 .board = "bytcr_rt5640", 154 .board = "bytcr_rt5651", 161 .board = "bytcr_wm5102", 168 .board = "bytcht_da7213", 175 .board = "bytcht_es8316", 188 .board = "cht-bsw", 196 .board = "cht-bsw", 203 .board = "bytcht_cx2072x", [all …]
|
| /linux/drivers/comedi/drivers/ |
| H A D | das08.c | 171 const struct das08_board_struct *board = dev->board_ptr; in das08_ai_insn_read() local 202 if (board->ai_nbits == 16) in das08_ai_insn_read() 215 if (board->ai_encoding == das08_encode12) { in das08_ai_insn_read() 217 } else if (board->ai_encoding == das08_pcm_encode12) { in das08_ai_insn_read() 219 } else if (board->ai_encoding == das08_encode16) { in das08_ai_insn_read() 304 const struct das08_board_struct *board = dev->board_ptr; in das08_ao_set_data() local 310 if (board->is_jr) { in das08_ao_set_data() 343 const struct das08_board_struct *board = dev->board_ptr; in das08_common_attach() local 351 dev->board_name = board->name; in das08_common_attach() 359 if (board->ai_nbits) { in das08_common_attach() [all …]
|
| /linux/arch/mips/bcm47xx/ |
| H A D | board.c | 9 const enum bcm47xx_board board; member 14 struct bcm47xx_board_type board; member 19 struct bcm47xx_board_type board; member 25 struct bcm47xx_board_type board; member 32 enum bcm47xx_board board; member 248 return &e1->board; in bcm47xx_board_get_nvram() 255 return &e1->board; in bcm47xx_board_get_nvram() 264 return &e2->board; in bcm47xx_board_get_nvram() 271 return &e1->board; in bcm47xx_board_get_nvram() 278 return &e1->board; in bcm47xx_board_get_nvram() [all …]
|
| /linux/arch/sparc/kernel/ |
| H A D | sun4d_irq.c | 38 static unsigned int sun4d_encode_irq(int board, int lvl, int slot) in sun4d_encode_irq() argument 40 return (board + 1) << 5 | (lvl << 2) | slot; in sun4d_encode_irq() 260 int board = of_getintprop_default(dp, "board#", 0); in sun4d_distribute_irqs() local 261 board_to_cpu[board] = cpuid; in sun4d_distribute_irqs() 291 unsigned int board) in _sun4d_build_device_irq() argument 299 real_irq, pil, board); in _sun4d_build_device_irq() 312 handler_data->cpuid = board_to_cpu[board]; in _sun4d_build_device_irq() 333 int board, slot; in sun4d_build_device_irq() local 369 board = of_getintprop_default(board_parent, "board#", -1); in sun4d_build_device_irq() 370 if (board == -1) { in sun4d_build_device_irq() [all …]
|