Lines Matching +full:secondary +full:- +full:device
1 /*-
41 * ntb_link_event() - notify driver context of a change in link status
42 * @ntb: NTB device context
50 * ntb_db_event() - notify driver context of a doorbell event
51 * @ntb: NTB device context
65 * ntb_port_number() - get the local port number
66 * @ntb: NTB device context.
75 * ntb_port_count() - get the number of peer device ports
76 * @ntb: NTB device context.
78 * By default hardware driver supports just one peer device.
85 * ntb_peer_port_number() - get the peer port by given index
86 * @ntb: NTB device context.
89 * By default hardware driver supports just one peer device, so this method
92 * Return: the peer device port or an error number
97 * ntb_peer_port_idx() - get the peer device port index by given port
99 * @ntb: NTB device context.
102 * By default hardware driver supports just one peer device, so given a
110 * ntb_link_is_up() - get the current ntb link state
111 * @ntb: NTB device context
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
121 * @ntb: NTB device context
125 * Enable the link on the secondary side of the ntb. This can only be done
126 * from the primary side of the ntb in primary or b2b topology. The ntb device
138 * ntb_link_disable() - disable the link on the secondary side of the ntb
139 * @ntb: NTB device context
141 * Disable the link on the secondary side of the ntb. This can only be done
142 * from the primary side of the ntb in primary or b2b topology. The ntb device
152 * get enable status of the link on the secondary side of the ntb
157 * ntb_set_ctx() - associate a driver context with an ntb device
158 * @ntb: NTB device context
162 * Associate a driver context and operations with a ntb device. The context is
164 * context with each ntb device.
171 * ntb_set_ctx() - get a driver context associated with an ntb device
172 * @ntb: NTB device context
175 * Get a driver context and operations associated with a ntb device.
180 * ntb_clear_ctx() - disassociate any driver context from an ntb device
181 * @ntb: NTB device context
184 * 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
198 * @ntb: NTB device context
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
218 * ntb_mw_set_trans() - set the translation of a memory window
219 * @ntb: NTB device context
229 * 32-bit BARs).
237 * ntb_mw_clear_trans() - clear the translation of a memory window
238 * @ntb: NTB device context
249 * ntb_mw_get_wc - Get the write-combine status of a memory window
259 * ntb_mw_set_wc - Set the write-combine status of a memory window
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
296 * register. The register resides on the secondary (external) side.
303 * ntb_spad_read() - read from the primary scratchpad register
316 * ntb_peer_spad_write() - write to the secondary scratchpad register
322 * register. The register resides on the secondary (external) side.
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
343 * @ntb: NTB device context
352 * ntb_db_vector_count() - get the number of doorbell interrupt vectors
353 * @ntb: NTB device context.
362 * ntb_db_vector_mask() - get a mask of doorbell bits serviced by a vector
363 * @ntb: NTB device context
373 * ntb_peer_db_addr() - address and size of the peer doorbell register
374 * @ntb: NTB device context.
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.
394 * ntb_db_clear() - clear bits in the local doorbell register
395 * @ntb: NTB device context.
406 * ntb_db_clear_mask() - clear bits in the local doorbell mask
407 * @ntb: NTB device context.
422 * ntb_db_read() - read the local doorbell register
423 * @ntb: NTB device context.
432 * ntb_db_set_mask() - set bits in the local doorbell mask
433 * @ntb: NTB device context.
445 * ntb_peer_db_set() - Set the doorbell on the secondary/external side
449 * This function allows triggering of a doorbell on the secondary/external