Lines Matching +full:function +full:- +full:mask

1 // SPDX-License-Identifier: GPL-2.0+
14 * reuse common code. A bit like a in-kernel library.
32 u8 pp_mmio_bar; /* per-process MMIO area */
45 int dvsec_function_pos; /* offset of the Function DVSEC */
52 OCXL_BIG_ENDIAN = 0, /**< AFU data is big-endian */
53 OCXL_LITTLE_ENDIAN = 1, /**< AFU data is little-endian */
65 * ocxl_function_open() - Open an OpenCAPI function on an OpenCAPI device
66 * @dev: The PCI device that contains the function
68 * Returns an opaque pointer to the function, or an error pointer (check with IS_ERR)
73 * ocxl_function_afu_list() - Get the list of AFUs associated with a PCI function device
76 * @fn: The OpenCAPI function containing the AFUs
81 * ocxl_function_fetch_afu() - Fetch an AFU instance from an OpenCAPI function
82 * @fn: The OpenCAPI function to get the AFU from
92 * ocxl_afu_get() - Take a reference to an AFU
98 * ocxl_afu_put() - Release a reference to an AFU
105 * ocxl_function_config() - Get the configuration information for an OpenCAPI function
106 * @fn: The OpenCAPI function to get the config for
108 * Returns the function config, or NULL on error
113 * ocxl_function_close() - Close an OpenCAPI function
114 * This will free any AFUs previously retrieved from the function, and
117 * @fn: The OpenCAPI function to close
125 * ocxl_context_alloc() - Allocate an OpenCAPI context
134 * ocxl_context_free() - Free an OpenCAPI context
140 * ocxl_context_attach() - Grant access to an MM to an OpenCAPI context
151 * ocxl_context_detach() - Detach an MM from an OpenCAPI context
161 * ocxl_afu_irq_alloc() - Allocate an IRQ associated with an AFU context
170 * ocxl_afu_irq_free() - Frees an IRQ associated with an AFU context
179 * ocxl_afu_irq_get_addr() - Gets the address of the trigger page for an IRQ
190 * ocxl_irq_set_handler() - Provide a callback to be called when an IRQ is triggered
207 * ocxl_afu_config() - Get a pointer to the config for an AFU
215 * ocxl_afu_set_private() - Assign opaque hardware specific information to an OpenCAPI AFU.
222 * ocxl_afu_get_private() - Fetch the hardware specific information associated with
232 * ocxl_global_mmio_read32() - Read a 32 bit value from global MMIO
244 * ocxl_global_mmio_read64() - Read a 64 bit value from global MMIO
256 * ocxl_global_mmio_write32() - Write a 32 bit value to global MMIO
268 * ocxl_global_mmio_write64() - Write a 64 bit value to global MMIO
280 * ocxl_global_mmio_set32() - Set bits in a 32 bit global MMIO register
284 * @mask: a mask of the bits to set
289 enum ocxl_endian endian, u32 mask);
292 * ocxl_global_mmio_set64() - Set bits in a 64 bit global MMIO register
296 * @mask: a mask of the bits to set
301 enum ocxl_endian endian, u64 mask);
304 * ocxl_global_mmio_clear32() - Set bits in a 32 bit global MMIO register
308 * @mask: a mask of the bits to set
313 enum ocxl_endian endian, u32 mask);
316 * ocxl_global_mmio_clear64() - Set bits in a 64 bit global MMIO register
320 * @mask: a mask of the bits to set
325 enum ocxl_endian endian, u64 mask);
330 * Read the configuration space of a function for the AFU specified by
344 * can be found in the function configuration
351 * Get the actag configuration for the function:
355 * of the function.
361 * Tell a function, by writing in the configuration space, the actags
364 * 'func_offset' is the offset of the Function DVSEC that can found in
365 * the function configuration
392 * Only needed for function 0.
415 * Read the configuration space of a function and fill in a
416 * ocxl_fn_config structure with all the function details
422 * Set up the opencapi link for the function.
435 * Remove the association between the function and its link.