Home
last modified time | relevance | path

Searched refs:nec_priv (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/staging/gpib/fmh_gpib/
H A Dfmh_gpib.c84 struct nec7210_priv *nec_priv = &priv->nec7210_priv; in fmh_gpib_request_system_control() local
86 nec7210_request_system_control(board, nec_priv, request_control); in fmh_gpib_request_system_control()
219 struct nec7210_priv *nec_priv = &priv->nec7210_priv; in fmh_gpib_return_to_local() local
221 write_byte(nec_priv, AUX_RTL2, AUXMR); in fmh_gpib_return_to_local()
223 write_byte(nec_priv, AUX_RTL, AUXMR); in fmh_gpib_return_to_local()
231 struct nec7210_priv *nec_priv; in fmh_gpib_line_status() local
234 nec_priv = &e_priv->nec7210_priv; in fmh_gpib_line_status()
236 bsr_bits = read_byte(nec_priv, BUS_STATUS_REG); in fmh_gpib_line_status()
261 struct nec7210_priv *nec_priv = &e_priv->nec7210_priv; in fmh_gpib_t1_delay() local
264 retval = nec7210_t1_delay(board, nec_priv, nano_sec); in fmh_gpib_t1_delay()
[all …]
H A Dfmh_gpib.h127 static inline uint8_t gpib_cs_read_byte(struct nec7210_priv *nec_priv, in gpib_cs_read_byte() argument
130 return readb(nec_priv->mmiobase + register_num * nec_priv->offset); in gpib_cs_read_byte()
133 static inline void gpib_cs_write_byte(struct nec7210_priv *nec_priv, uint8_t data, in gpib_cs_write_byte() argument
136 writeb(data, nec_priv->mmiobase + register_num * nec_priv->offset); in gpib_cs_write_byte()
/linux/drivers/staging/gpib/eastwood/
H A Dfluke_gpib.c31 static uint8_t fluke_locking_read_byte(struct nec7210_priv *nec_priv, unsigned int register_number) in fluke_locking_read_byte() argument
36 spin_lock_irqsave(&nec_priv->register_page_lock, flags); in fluke_locking_read_byte()
37 retval = fluke_read_byte_nolock(nec_priv, register_number); in fluke_locking_read_byte()
38 spin_unlock_irqrestore(&nec_priv->register_page_lock, flags); in fluke_locking_read_byte()
42 static void fluke_locking_write_byte(struct nec7210_priv *nec_priv, uint8_t byte, in fluke_locking_write_byte() argument
47 spin_lock_irqsave(&nec_priv->register_page_lock, flags); in fluke_locking_write_byte()
48 fluke_write_byte_nolock(nec_priv, byte, register_number); in fluke_locking_write_byte()
49 spin_unlock_irqrestore(&nec_priv->register_page_lock, flags); in fluke_locking_write_byte()
93 struct nec7210_priv *nec_priv = &priv->nec7210_priv; in fluke_request_system_control() local
95 nec7210_request_system_control(board, nec_priv, request_control); in fluke_request_system_control()
[all …]
H A Dfluke_gpib.h70 static inline uint8_t fluke_read_byte_nolock(struct nec7210_priv *nec_priv, in fluke_read_byte_nolock() argument
75 retval = readl(nec_priv->mmiobase + register_num * nec_priv->offset); in fluke_read_byte_nolock()
80 static inline void fluke_write_byte_nolock(struct nec7210_priv *nec_priv, uint8_t data, in fluke_write_byte_nolock() argument
83 writel(data, nec_priv->mmiobase + register_num * nec_priv->offset); in fluke_write_byte_nolock()
89 struct nec7210_priv *nec_priv = &e_priv->nec7210_priv; in fluke_paged_read_byte() local
93 spin_lock_irqsave(&nec_priv->register_page_lock, flags); in fluke_paged_read_byte()
94 fluke_write_byte_nolock(nec_priv, cb7210_page_in_bits(page), AUXMR); in fluke_paged_read_byte()
97 retval = fluke_read_byte_nolock(nec_priv, register_num); in fluke_paged_read_byte()
98 spin_unlock_irqrestore(&nec_priv->register_page_lock, flags); in fluke_paged_read_byte()
105 struct nec7210_priv *nec_priv = &e_priv->nec7210_priv; in fluke_paged_write_byte() local
[all …]
/linux/drivers/staging/gpib/cb7210/
H A Dcb7210.c39 struct nec7210_priv *nec_priv = &cb_priv->nec7210_priv; in input_fifo_enable() local
46 nec7210_set_reg_bits(nec_priv, IMR2, HR_DMAI, 0); in input_fifo_enable()
60 nec7210_set_reg_bits(nec_priv, IMR2, HR_DMAI, 0); in input_fifo_enable()
66 clear_bit(READ_READY_BN, &nec_priv->state); in input_fifo_enable()
76 struct nec7210_priv *nec_priv = &cb_priv->nec7210_priv; in fifo_read() local
95 nec7210_set_reg_bits(nec_priv, IMR2, HR_DMAI, HR_DMAI); in fifo_read()
100 test_bit(RECEIVED_END_BN, &nec_priv->state) || in fifo_read()
101 test_bit(DEV_CLEAR_BN, &nec_priv->state) || in fifo_read()
105 nec7210_set_reg_bits(nec_priv, IMR2, HR_DMAI, 0); in fifo_read()
111 nec7210_set_reg_bits(nec_priv, IMR2, HR_DMAI, 0); in fifo_read()
[all …]
H A Dcb7210.h129 struct nec7210_priv *nec_priv = &cb_priv->nec7210_priv; in cb7210_paged_read_byte() local
133 spin_lock_irqsave(&nec_priv->register_page_lock, flags); in cb7210_paged_read_byte()
134 outb(cb7210_page_in_bits(page), nec7210_iobase(cb_priv) + AUXMR * nec_priv->offset); in cb7210_paged_read_byte()
136 retval = inb(nec7210_iobase(cb_priv) + register_num * nec_priv->offset); in cb7210_paged_read_byte()
137 spin_unlock_irqrestore(&nec_priv->register_page_lock, flags); in cb7210_paged_read_byte()
145 const struct nec7210_priv *nec_priv = &cb_priv->nec7210_priv; in cb7210_read_byte() local
148 retval = inb(nec7210_iobase(cb_priv) + register_num * nec_priv->offset); in cb7210_read_byte()
155 struct nec7210_priv *nec_priv = &cb_priv->nec7210_priv; in cb7210_paged_write_byte() local
158 spin_lock_irqsave(&nec_priv->register_page_lock, flags); in cb7210_paged_write_byte()
159 outb(cb7210_page_in_bits(page), nec7210_iobase(cb_priv) + AUXMR * nec_priv->offset); in cb7210_paged_write_byte()
[all …]
/linux/drivers/staging/gpib/ines/
H A Dines_gpib.c29 struct nec7210_priv *nec_priv; in ines_line_status() local
32 nec_priv = &ines_priv->nec7210_priv; in ines_line_status()
69 struct nec7210_priv *nec_priv = &ines_priv->nec7210_priv; in ines_t1_delay() local
72 retval = nec7210_t1_delay(board, nec_priv, nano_sec); in ines_t1_delay()
75 write_byte(nec_priv, INES_AUXD | INES_FOLLOWING_T1_250ns | in ines_t1_delay()
79 write_byte(nec_priv, INES_AUXD | INES_FOLLOWING_T1_350ns | in ines_t1_delay()
83 write_byte(nec_priv, INES_AUXD | INES_FOLLOWING_T1_500ns | in ines_t1_delay()
101 struct nec7210_priv *nec_priv = &ines_priv->nec7210_priv; in pio_read() local
107 test_bit(RECEIVED_END_BN, &nec_priv->state) || in pio_read()
108 test_bit(DEV_CLEAR_BN, &nec_priv->state) || in pio_read()
[all …]
/linux/drivers/staging/gpib/pc2/
H A Dpc2_gpib.c376 struct nec7210_priv *nec_priv; in pc2_generic_attach() local
382 nec_priv = &pc2_priv->nec7210_priv; in pc2_generic_attach()
383 nec_priv->read_byte = nec7210_ioport_read_byte; in pc2_generic_attach()
384 nec_priv->write_byte = nec7210_ioport_write_byte; in pc2_generic_attach()
385 nec_priv->type = chipset; in pc2_generic_attach()
395 nec_priv->dma_buffer_length = 0x1000; in pc2_generic_attach()
396 nec_priv->dma_buffer = dma_alloc_coherent(board->dev, in pc2_generic_attach()
397 nec_priv->dma_buffer_length, & in pc2_generic_attach()
398 nec_priv->dma_buffer_addr, GFP_ATOMIC); in pc2_generic_attach()
399 if (!nec_priv->dma_buffer) in pc2_generic_attach()
[all …]
/linux/drivers/staging/gpib/tnt4882/
H A Dtnt4882_gpib.c224 struct nec7210_priv *nec_priv = &tnt_priv->nec7210_priv; in tnt4882_t1_delay() local
227 retval = nec7210_t1_delay(board, nec_priv, nano_sec); in tnt4882_t1_delay()
228 if (nec_priv->type == NEC7210) in tnt4882_t1_delay()
238 write_byte(nec_priv, AUXRI | USTD, AUXMR); in tnt4882_t1_delay()
241 write_byte(nec_priv, AUXRI, AUXMR); in tnt4882_t1_delay()
282 struct nec7210_priv *nec_priv = &tnt_priv->nec7210_priv; in drain_fifo_words() local
287 word = ioread16(nec_priv->mmiobase + FIFOB); in drain_fifo_words()
296 struct nec7210_priv *nec_priv = &tnt_priv->nec7210_priv; in tnt4882_release_holdoff() local
305 nec7210_set_handshake_mode(board, nec_priv, HR_HLDE); in tnt4882_release_holdoff()
306 write_byte(nec_priv, AUX_FH, AUXMR); in tnt4882_release_holdoff()
[all …]
/linux/drivers/staging/gpib/cec/
H A Dcec_gpib.c235 struct nec7210_priv *nec_priv; in cec_generic_attach() local
242 nec_priv = &cec_priv->nec7210_priv; in cec_generic_attach()
243 nec_priv->read_byte = nec7210_ioport_read_byte; in cec_generic_attach()
244 nec_priv->write_byte = nec7210_ioport_write_byte; in cec_generic_attach()
245 nec_priv->offset = cec_reg_offset; in cec_generic_attach()
246 nec_priv->type = NEC7210; // guess in cec_generic_attach()
252 struct nec7210_priv *nec_priv = &cec_priv->nec7210_priv; in cec_init() local
254 nec7210_board_reset(nec_priv, board); in cec_init()
257 write_byte(nec_priv, ICR | 8, AUXMR); in cec_init()
259 nec7210_board_online(nec_priv, board); in cec_init()
[all …]