Lines Matching +full:zero +full:- +full:based

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
57 * vector used for doorbells, starting at zero, and must be less than
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
87 * @idx: Peer port index (should be zero for now).
97 * ntb_peer_port_idx() - get the peer device port index by given port
103 * valid peer port number, the return value shall be zero.
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
115 * RETURNS: true or false based on the hardware link state
120 * ntb_link_enable() - enable the link on the secondary side of the ntb
130 * Return: Zero on success, otherwise an error number.
138 * ntb_link_disable() - disable the link on the secondary side of the ntb
147 * Return: Zero on success, otherwise an error number.
157 * ntb_set_ctx() - associate a driver context with an ntb device
166 * Return: Zero if the context is associated, otherwise an error number.
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
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
211 * Return: Zero on success, otherwise an error number.
218 * ntb_mw_set_trans() - set the translation of a memory window
229 * 32-bit BARs).
231 * Return: Zero on success, otherwise an error number.
237 * ntb_mw_clear_trans() - clear the translation of a memory window
244 * Return: Zero on success, otherwise an error number.
249 * ntb_mw_get_wc - Get the write-combine status of a memory window
251 * Returns: Zero on success, setting *wc; otherwise an error number (e.g. if
259 * ntb_mw_set_wc - Set the write-combine status of a memory window
264 * Returns: Zero on success, setting the caching attribute on the virtual
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
292 * @idx: index to the scratchpad register, 0 based
298 * RETURNS: An appropriate ERRNO error value on error, or zero for success.
303 * ntb_spad_read() - read from the primary scratchpad register
305 * @idx: index to scratchpad register, 0 based
311 * RETURNS: An appropriate ERRNO error value on error, or zero for success.
316 * ntb_peer_spad_write() - write to the secondary scratchpad register
318 * @idx: index to the scratchpad register, 0 based
324 * RETURNS: An appropriate ERRNO error value on error, or zero for success.
329 * ntb_peer_spad_read() - read from the primary scratchpad register
331 * @idx: index to scratchpad register, 0 based
337 * RETURNS: An appropriate ERRNO error value on error, or zero for success.
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.
386 * Return: Zero on success, otherwise an error number.
394 * ntb_db_clear() - clear bits in the local doorbell register
401 * Return: Zero on success, otherwise an error number.
406 * ntb_db_clear_mask() - clear bits in the local doorbell mask
417 * Return: Zero on success, otherwise an error number.
422 * ntb_db_read() - read the local doorbell register
432 * ntb_db_set_mask() - set bits in the local doorbell mask
440 * Return: Zero on success, otherwise an error number.
445 * ntb_peer_db_set() - Set the doorbell on the secondary/external side