Lines Matching +full:dma +full:- +full:window
1 /*-
41 * ntb_link_event() - notify driver context of a change in link status
50 * ntb_db_event() - notify driver context of a doorbell event
65 * ntb_port_number() - get the local port number
75 * ntb_port_count() - get the number of peer device ports
85 * ntb_peer_port_number() - get the peer port by given index
97 * ntb_peer_port_idx() - get the peer device port index by given port
110 * ntb_link_is_up() - get the current ntb link state
112 * @speed: OUT - The link speed expressed as PCIe generation number
113 * @width: OUT - The link width expressed as the number of PCIe lanes
120 * ntb_link_enable() - enable the link on the secondary side of the ntb
138 * ntb_link_disable() - disable the link on the secondary side of the ntb
157 * ntb_set_ctx() - associate a driver context with an ntb device
171 * ntb_set_ctx() - get a driver context associated with an ntb device
180 * ntb_clear_ctx() - disassociate any driver context from an ntb device
189 * ntb_mw_count() - Get the number of memory windows available for KPI
197 * ntb_mw_get_range() - get the range of a memory window
199 * @idx: Memory window number
200 * @base: OUT - the base address for mapping the memory window
201 * @size: OUT - the size for mapping the memory window
202 * @align: OUT - the base alignment for translating the memory window
203 * @align_size: OUT - the size alignment for translating the memory window
205 * Get the range of a memory window. NULL may be given for any output
207 * mapping the memory window, to access the peer memory. The alignment and
208 * size may be used for translating the memory window, for the peer to access
218 * ntb_mw_set_trans() - set the translation of a memory window
220 * @idx: Memory window number
221 * @addr: The dma address local memory to expose to the peer
224 * Set the translation of a memory window. The peer may access local memory
225 * through the window starting at the address, up to the size. The address
229 * 32-bit BARs).
237 * ntb_mw_clear_trans() - clear the translation of a memory window
239 * @idx: Memory window number
241 * Clear the translation of a memory window. The peer may no longer access
242 * local memory through the window.
249 * ntb_mw_get_wc - Get the write-combine status of a memory window
252 * idx is an invalid memory window).
259 * ntb_mw_set_wc - Set the write-combine status of a memory window
266 * memory window, or if changing the caching attribute fails).
271 * ntb_spad_count() - get the total scratch regs usable
282 * ntb_spad_clear() - zero local scratch registers
290 * ntb_spad_write() - write to the secondary scratchpad register
303 * ntb_spad_read() - read from the primary scratchpad register
316 * ntb_peer_spad_write() - write to the secondary scratchpad register
329 * ntb_peer_spad_read() - read from the primary scratchpad register
342 * ntb_db_valid_mask() - get a mask of doorbell bits supported by the ntb
352 * ntb_db_vector_count() - get the number of doorbell interrupt vectors
362 * ntb_db_vector_mask() - get a mask of doorbell bits serviced by a vector
373 * ntb_peer_db_addr() - address and size of the peer doorbell register
375 * @db_addr: OUT - The address of the peer doorbell register.
376 * @db_size: OUT - The number of bytes to write the peer doorbell register.
379 * example, by drivers that offload memory copy operations to a dma engine.
382 * between the dma memory copies and the ringing doorbell, the driver may
383 * append one additional dma memory copy with the doorbell register as the
388 * Note that writing the peer doorbell via a memory window will *not* generate
394 * ntb_db_clear() - clear bits in the local doorbell register
406 * ntb_db_clear_mask() - clear bits in the local doorbell mask
422 * ntb_db_read() - read the local doorbell register
432 * ntb_db_set_mask() - set bits in the local doorbell mask
445 * ntb_peer_db_set() - Set the doorbell on the secondary/external side