id
stringlengths
4
63
text
stringlengths
153
8.81M
hwpath_to_device(9)
NAME hwpath_to_device - Finds the generic device corresponding to a given hardware path. SYNOPSIS struct device * hwpath_to_device (struct hardware_path *modpath ); ARGUMENTS modpath the hardware path. RETURN The target device, NULL if not found. SEE ALSO Kernel file ./arch/parisc/kernel/drivers.c for_ea...
hwrm_req_alloc_flags(9)
NAME hwrm_req_alloc_flags - Sets GFP allocation flags for slices. SYNOPSIS void hwrm_req_alloc_flags (struct bnxt *bp , void *req , gfp_t gfp ); ARGUMENTS bp The driver context. req The request for which calls to hwrm_req_dma_slice will have altered allocation flags. gfp A bi...
hwrm_req_dma_slice(9)
NAME hwrm_req_dma_slice - Allocate a slice of DMA mapped memory. SYNOPSIS void * hwrm_req_dma_slice (struct bnxt *bp , void *req , u32 size , dma_addr_t *dma_handle ); ARGUMENTS bp The driver context. req The request for which indirect data will be associated. size The size of ...
hwrm_req_drop(9)
NAME hwrm_req_drop - Release all resources associated with the request. SYNOPSIS void hwrm_req_drop (struct bnxt *bp , void *req ); ARGUMENTS bp The driver context. req The request to consume, releasing the associated resources. The request object, any slices, and its associated response are ...
hwrm_req_flags(9)
NAME hwrm_req_flags - Set non internal flags of the ctx SYNOPSIS void hwrm_req_flags (struct bnxt *bp , void *req , enum bnxt_hwrm_ctx_flags flags ); ARGUMENTS bp The driver context. req The request containing the HWRM command flags ctx flags that don't have BNXT_HWRM_INTERNAL_F...
hwrm_req_hold(9)
NAME hwrm_req_hold - Claim ownership of the request's resources. SYNOPSIS void * hwrm_req_hold (struct bnxt *bp , void *req ); ARGUMENTS bp The driver context. req A pointer to the request to own. The request will no longer be consumed by calls to hwrm_req_send. DESCRIPTION Take ownership ...
hwrm_req_replace(9)
NAME hwrm_req_replace - Replace request data. SYNOPSIS int hwrm_req_replace (struct bnxt *bp , void *req , void *new_req , u32 len ); ARGUMENTS bp The driver context. req The request to modify. A call to hwrm_req_replace is conceptually an assignment of new_req to req. Subsequent calls to H...
hwrm_req_send(9)
NAME hwrm_req_send - Execute an HWRM command. SYNOPSIS int hwrm_req_send (struct bnxt *bp , void *req ); ARGUMENTS bp The driver context. req A pointer to the request to send. The DMA resources associated with the request will be released (ie. the request will be consumed) unless ownership o...
hwrm_req_send_silent(9)
NAME hwrm_req_send_silent - A silent version of hwrm_req_send(). SYNOPSIS int hwrm_req_send_silent (struct bnxt *bp , void *req ); ARGUMENTS bp The driver context. req The request to send without logging. DESCRIPTION The same as hwrm_req_send, except that the request is silenced using hwrm_r...
hwrm_req_timeout(9)
NAME hwrm_req_timeout - Set the completion timeout for the request. SYNOPSIS void hwrm_req_timeout (struct bnxt *bp , void *req , unsigned int timeout ); ARGUMENTS bp The driver context. req The request to set the timeout. timeout The timeout in milliseconds. DESCRIPTION Set the ...
hwsp_seqno(9)
NAME hwsp_seqno - the current breadcrumb value in the HW status page SYNOPSIS u32 hwsp_seqno (const struct i915_request *rq ); ARGUMENTS rq the request, to chase the relevant HW status page DESCRIPTION The emphasis in naming here is that hwsp_seqno is not a property of the request, but an indication of the...
hwspin_lock_bust(9)
NAME hwspin_lock_bust - bust a specific hwspinlock SYNOPSIS int hwspin_lock_bust (struct hwspinlock *hwlock , unsigned int id ); ARGUMENTS hwlock a previously-acquired hwspinlock which we want to bust id identifier of the remote lock holder, if applicable DESCRIPTION This function will bust a h...
hwspin_lock_free(9)
NAME hwspin_lock_free - free a specific hwspinlock SYNOPSIS int hwspin_lock_free (struct hwspinlock *hwlock ); ARGUMENTS hwlock the specific hwspinlock to free DESCRIPTION This function mark hwlock as free again. Should only be called with an hwlock that was retrieved from an earlier call to hwspin_lock_reques...
hwspin_lock_register(9)
NAME hwspin_lock_register - register a new hw spinlock device SYNOPSIS int hwspin_lock_register (struct hwspinlock_device *bank , struct device *dev , const struct hwspinlock_ops *ops , int base_id , int num_locks ); ARGUMENTS bank the hwspinlock device, which usually provides numerous hw locks dev ...
hwspin_lock_request_specific(9)
NAME hwspin_lock_request_specific - request for a specific hwspinlock SYNOPSIS struct hwspinlock * hwspin_lock_request_specific (unsigned int id ); ARGUMENTS id index of the specific hwspinlock that is requested DESCRIPTION This function should be called by users of the hwspinlock module, in order to assign...
hwspin_lock_timeout(9)
NAME hwspin_lock_timeout - lock an hwspinlock with timeout limit SYNOPSIS int hwspin_lock_timeout (struct hwspinlock *hwlock , unsigned int to ); ARGUMENTS hwlock the hwspinlock to be locked to timeout value in msecs DESCRIPTION This function locks the underlying hwlock. If the hwlock is alrea...
hwspin_lock_timeout_in_atomic(9)
NAME hwspin_lock_timeout_in_atomic - lock an hwspinlock with timeout limit SYNOPSIS int hwspin_lock_timeout_in_atomic (struct hwspinlock *hwlock , unsigned int to ); ARGUMENTS hwlock the hwspinlock to be locked to timeout value in msecs DESCRIPTION This function locks the underlying hwlock. I...
hwspin_lock_timeout_irq(9)
NAME hwspin_lock_timeout_irq - lock hwspinlock, with timeout, disable irqs SYNOPSIS int hwspin_lock_timeout_irq (struct hwspinlock *hwlock , unsigned int to ); ARGUMENTS hwlock the hwspinlock to be locked to timeout value in msecs DESCRIPTION This function locks the underlying hwlock. If the h...
hwspin_lock_timeout_irqsave(9)
NAME hwspin_lock_timeout_irqsave - lock hwspinlock, with timeout, disable irqs SYNOPSIS int hwspin_lock_timeout_irqsave (struct hwspinlock *hwlock , unsigned int to , unsigned long *flags ); ARGUMENTS hwlock the hwspinlock to be locked to timeout value in msecs flags a pointer to w...
hwspin_lock_timeout_raw(9)
NAME hwspin_lock_timeout_raw - lock an hwspinlock with timeout limit SYNOPSIS int hwspin_lock_timeout_raw (struct hwspinlock *hwlock , unsigned int to ); ARGUMENTS hwlock the hwspinlock to be locked to timeout value in msecs DESCRIPTION This function locks the underlying hwlock. If the hwlock i...
hwspin_lock_unregister(9)
NAME hwspin_lock_unregister - unregister an hw spinlock device SYNOPSIS int hwspin_lock_unregister (struct hwspinlock_device *bank ); ARGUMENTS bank the hwspinlock device, which usually provides numerous hw locks DESCRIPTION This function should be called from the underlying platform-specific implementation, ...
hwspin_trylock(9)
NAME hwspin_trylock - attempt to lock a specific hwspinlock SYNOPSIS int hwspin_trylock (struct hwspinlock *hwlock ); ARGUMENTS hwlock an hwspinlock which we want to trylock DESCRIPTION This function attempts to lock an hwspinlock, and will immediately fail if the hwspinlock is already taken. Upon a success...
hwspin_trylock_in_atomic(9)
NAME hwspin_trylock_in_atomic - attempt to lock a specific hwspinlock SYNOPSIS int hwspin_trylock_in_atomic (struct hwspinlock *hwlock ); ARGUMENTS hwlock an hwspinlock which we want to trylock DESCRIPTION This function attempts to lock an hwspinlock, and will immediately fail if the hwspinlock is already take...
hwspin_trylock_irq(9)
NAME hwspin_trylock_irq - try to lock an hwspinlock, disable interrupts SYNOPSIS int hwspin_trylock_irq (struct hwspinlock *hwlock ); ARGUMENTS hwlock an hwspinlock which we want to trylock DESCRIPTION This function attempts to lock the underlying hwspinlock, and will immediately fail if the hwspinlock is alr...
hwspin_trylock_irqsave(9)
NAME hwspin_trylock_irqsave - try to lock an hwspinlock, disable interrupts SYNOPSIS int hwspin_trylock_irqsave (struct hwspinlock *hwlock , unsigned long *flags ); ARGUMENTS hwlock an hwspinlock which we want to trylock flags a pointer to where the caller's interrupt state will be saved at DESCRI...
hwspin_trylock_raw(9)
NAME hwspin_trylock_raw - attempt to lock a specific hwspinlock SYNOPSIS int hwspin_trylock_raw (struct hwspinlock *hwlock ); ARGUMENTS hwlock an hwspinlock which we want to trylock DESCRIPTION This function attempts to lock an hwspinlock, and will immediately fail if the hwspinlock is already taken. Caution:...
hwspin_unlock(9)
NAME hwspin_unlock - unlock hwspinlock SYNOPSIS void hwspin_unlock (struct hwspinlock *hwlock ); ARGUMENTS hwlock a previously-acquired hwspinlock which we want to unlock DESCRIPTION This function will unlock a specific hwspinlock and enable preemption back. hwlock must be already locked (e.g. by hwspin_trylo...
hwspin_unlock_in_atomic(9)
NAME hwspin_unlock_in_atomic - unlock hwspinlock SYNOPSIS void hwspin_unlock_in_atomic (struct hwspinlock *hwlock ); ARGUMENTS hwlock a previously-acquired hwspinlock which we want to unlock DESCRIPTION This function will unlock a specific hwspinlock. hwlock must be already locked (e.g. by hwspin_trylock) befo...
hwspin_unlock_irq(9)
NAME hwspin_unlock_irq - unlock hwspinlock, enable interrupts SYNOPSIS void hwspin_unlock_irq (struct hwspinlock *hwlock ); ARGUMENTS hwlock a previously-acquired hwspinlock which we want to unlock DESCRIPTION This function will unlock a specific hwspinlock, enable preemption and enable local interrupts. Should...
hwspin_unlock_irqrestore(9)
NAME hwspin_unlock_irqrestore - unlock hwspinlock, restore irq state SYNOPSIS void hwspin_unlock_irqrestore (struct hwspinlock *hwlock , unsigned long *flags ); ARGUMENTS hwlock a previously-acquired hwspinlock which we want to unlock flags previous caller's interrupt state to restore DESCRIPTION ...
hwspin_unlock_raw(9)
NAME hwspin_unlock_raw - unlock hwspinlock SYNOPSIS void hwspin_unlock_raw (struct hwspinlock *hwlock ); ARGUMENTS hwlock a previously-acquired hwspinlock which we want to unlock DESCRIPTION This function will unlock a specific hwspinlock. hwlock must be already locked (e.g. by hwspin_trylock) before calling t...
hwss_wait_for_all_blank_complete(9)
NAME hwss_wait_for_all_blank_complete - wait for all active OPPs to finish pending blank pattern updates SYNOPSIS void hwss_wait_for_all_blank_complete (struct dc *dc , struct dc_state *context ); ARGUMENTS dc [in] dc reference context [in] hardware context in use SEE ALSO Kernel file ./drivers/...
hxg_sizeof(9)
NAME hxg_sizeof - Queries size of the object or type (in HXG units). SYNOPSIS hxg_sizeof (T ); ARGUMENTS T the object or type DESCRIPTION Force a compilation error if actual size is not aligned to HXG unit (u32). RETURN size in dwords (u32). SEE ALSO Kernel file ./drivers/gpu/drm/xe/xe_guc_hxg_helpers.h ...
hynix_get_majority(9)
NAME hynix_get_majority - get the value that is occurring the most in a given set of values SYNOPSIS int hynix_get_majority (const u8 *in , int repeat , u8 *out ); ARGUMENTS in the array of values to test repeat the size of the in array out pointer used to store the output value ...
hyp_alloc_private_va_range(9)
NAME hyp_alloc_private_va_range - Allocates a private VA range. SYNOPSIS int hyp_alloc_private_va_range (size_t size , unsigned long *haddr ); ARGUMENTS size The size of the VA range to reserve. haddr The hypervisor virtual start address of the allocation. DESCRIPTION The private virtual address...
hyperbus_register_device(9)
NAME hyperbus_register_device - probe and register a HyperBus slave memory device SYNOPSIS int hyperbus_register_device (struct hyperbus_device *hbdev ); ARGUMENTS hbdev hyperbus_device struct with dev, np and ctlr field populated RETURN 0 for success, others for failure. SEE ALSO Kernel file ./include/linux/...
hyperbus_unregister_device(9)
NAME hyperbus_unregister_device - deregister HyperBus slave memory device SYNOPSIS void hyperbus_unregister_device (struct hyperbus_device *hbdev ); ARGUMENTS hbdev hyperbus_device to be unregistered SEE ALSO Kernel file ./include/linux/mtd/hyperbus.h struct hyperbus_device(9), struct hyperbus_ops(9), struct h...
hypervisor_mode(7)
NAME hypervisor_mode - allows you to run simultaneously many virtual router instances, and to simulate ATM, Ethernet or Frame‐Relay networks. SYNOPSIS dynamips -H [ip_address:]tcp_port DESCRIPTION You can connect directly to the TCP control port with telnet, or use dynagen/dynagui that will pass commands transparentl...
hypervisor_ppn_add(9)
NAME hypervisor_ppn_add - Adds a single mksGuestStat instance descriptor to the hypervisor. Any related userspace pages should be pinned in advance. SYNOPSIS void hypervisor_ppn_add (PPN64 pfn ); ARGUMENTS pfn Physical page number of the instance descriptor SEE ALSO Kernel file ./drivers/gpu/drm/vmwgfx/vmw...
hypervisor_ppn_remove(9)
NAME hypervisor_ppn_remove - Removes a single mksGuestStat instance descriptor from the hypervisor. All related pages should be subsequently unpinned or freed. SYNOPSIS void hypervisor_ppn_remove (PPN64 pfn ); ARGUMENTS pfn Physical page number of the instance descriptor SEE ALSO Kernel file ./drivers/gpu/...
hypervisor_ppn_reset_all(9)
NAME hypervisor_ppn_reset_all - Removes all mksGuestStat instance descriptors from the hypervisor. All related pages should be subsequently unpinned or freed. SYNOPSIS void hypervisor_ppn_reset_all (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/gpu/drm/vmwgfx/vmwgfx_msg.c vmw_open_chan...
hypot(3)
NAME hypot, hypotf, hypotl - Euclidean distance function LIBRARY Math library (libm, -lm) SYNOPSIS #include <math.h> double hypot(double x, double y); float hypotf(float x, float y); long double hypotl(long double x, long double y); Feature Test Macro Requirements for glibc (see feature_test...
hypot(3p)
PROLOG This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux. NAME hypot, hypotf, hypotl — Euclidean distance function SYNOPSIS #...
hypotf(3)
NAME hypot, hypotf, hypotl - Euclidean distance function LIBRARY Math library (libm, -lm) SYNOPSIS #include <math.h> double hypot(double x, double y); float hypotf(float x, float y); long double hypotl(long double x, long double y); Feature Test Macro Requirements for glibc (see feature_test...
hypotl(3)
NAME hypot, hypotf, hypotl - Euclidean distance function LIBRARY Math library (libm, -lm) SYNOPSIS #include <math.h> double hypot(double x, double y); float hypotf(float x, float y); long double hypotl(long double x, long double y); Feature Test Macro Requirements for glibc (see feature_test...
hzip(1)
NAME hunzip - compress and encrypt dictionary files SYNOPSIS hzip [-h] [-P password] [file(s)] DESCRIPTION hunzip is a small utility for text file compression and encryption, especially for sorted dictionaries. "hunspell filename" creates the compressed file "filename.hz" without removing the original file. T...
i10nm_get_imc_num(9)
NAME i10nm_get_imc_num - Get the number of present DDR memory controllers. SYNOPSIS int i10nm_get_imc_num (struct res_config *cfg ); ARGUMENTS cfg The pointer to the structure of EDAC resource configurations. DESCRIPTION For Granite Rapids CPUs, the number of present DDR memory controllers read at runtime ov...
i10nm_imc_absent(9)
NAME i10nm_imc_absent - Check whether the memory controller @imc is absent SYNOPSIS bool i10nm_imc_absent (struct skx_imc *imc ); ARGUMENTS imc The pointer to the structure of memory controller EDAC device. RETURN true if the memory controller EDAC device is absent, false otherwise. SEE ALSO Kernel file ./d...
i2a_ASN1_STRING(3)
NAME i2a_ASN1_STRING, i2a_ASN1_INTEGER, i2a_ASN1_ENUMERATED, a2i_ASN1_STRING, a2i_ASN1_INTEGER, a2i_ASN1_ENUMERATED — hexadecimal dump of an ASN.1 string SYNOPSIS library “libcrypto” #include <openssl/asn1.h> int i2a_ASN1_STRING(BIO *out_bio, const ASN1_STRING *a, int type); int i2a_ASN1_...
i2b_PVK_bio.3ssl(3)
NAME b2i_PVK_bio, b2i_PVK_bio_ex, i2b_PVK_bio, i2b_PVK_bio_ex - Decode and encode functions for reading and writing MSBLOB format private keys SYNOPSIS #include <openssl/pem.h> EVP_PKEY *b2i_PVK_bio(BIO *in, pem_password_cb *cb, void *u); EVP_PKEY *b2i_PVK_bio_ex(BIO *in, pem_password_cb *cb, void *u,...
i2b_PVK_bio_ex.3ssl(3)
NAME b2i_PVK_bio, b2i_PVK_bio_ex, i2b_PVK_bio, i2b_PVK_bio_ex - Decode and encode functions for reading and writing MSBLOB format private keys SYNOPSIS #include <openssl/pem.h> EVP_PKEY *b2i_PVK_bio(BIO *in, pem_password_cb *cb, void *u); EVP_PKEY *b2i_PVK_bio_ex(BIO *in, pem_password_cb *cb, void *u,...
i2c_acpi_client_count(9)
NAME i2c_acpi_client_count - Count the number of I2cSerialBus resources SYNOPSIS int i2c_acpi_client_count (struct acpi_device *adev ); ARGUMENTS adev ACPI device DESCRIPTION Returns the number of I2cSerialBus resources in the ACPI-device's resource-list; or a negative error code. SEE ALSO Kernel file ./driv...
i2c_acpi_find_bus_speed(9)
NAME i2c_acpi_find_bus_speed - find I2C bus speed from ACPI SYNOPSIS u32 i2c_acpi_find_bus_speed (struct device *dev ); ARGUMENTS dev The device owning the bus DESCRIPTION Find the I2C bus speed by walking the ACPI namespace for all I2C slaves devices connected to this bus and use the speed of slowest device...
i2c_acpi_get_i2c_resource(9)
NAME i2c_acpi_get_i2c_resource - Gets I2cSerialBus resource if type matches SYNOPSIS bool i2c_acpi_get_i2c_resource (struct acpi_resource *ares , struct acpi_resource_i2c_serialbus **i2c ); ARGUMENTS ares ACPI resource i2c Pointer to I2cSerialBus resource will be returned here DESCRIPTION Chec...
i2c_acpi_get_irq(9)
NAME i2c_acpi_get_irq - get device IRQ number from ACPI SYNOPSIS int i2c_acpi_get_irq (struct i2c_client *client , bool *wake_capable ); ARGUMENTS client Pointer to the I2C client device wake_capable Set to true if the IRQ is wake capable DESCRIPTION Find the IRQ number used by a spec...
i2c_acpi_new_device_by_fwnode(9)
NAME i2c_acpi_new_device_by_fwnode - Create i2c-client for the Nth I2cSerialBus resource SYNOPSIS struct i2c_client * i2c_acpi_new_device_by_fwnode (struct fwnode_handle *fwnode , int index , struct i2c_board_info *info ); ARGUMENTS fwnode fwnode with the ACPI resources to get the client from index ...
i2c_acpi_register_devices(9)
NAME i2c_acpi_register_devices - enumerate I2C slave devices behind adapter SYNOPSIS void i2c_acpi_register_devices (struct i2c_adapter *adap ); ARGUMENTS adap pointer to adapter DESCRIPTION Enumerate all I2C slave devices behind this adapter by walking the ACPI namespace. When a device is found it will be ad...
i2c_adapter_lock_bus(9)
NAME i2c_adapter_lock_bus - Get exclusive access to an I2C bus segment SYNOPSIS void i2c_adapter_lock_bus (struct i2c_adapter *adapter , unsigned int flags ); ARGUMENTS adapter Target I2C bus segment flags I2C_LOCK_ROOT_ADAPTER locks the root i2c adapter, I2C_LOCK_SEGMENT locks only this branch in t...
i2c_adapter_trylock_bus(9)
NAME i2c_adapter_trylock_bus - Try to get exclusive access to an I2C bus segment SYNOPSIS int i2c_adapter_trylock_bus (struct i2c_adapter *adapter , unsigned int flags ); ARGUMENTS adapter Target I2C bus segment flags I2C_LOCK_ROOT_ADAPTER trylocks the root i2c adapter, I2C_LOCK_SEGMENT trylocks onl...
i2c_adapter_unlock_bus(9)
NAME i2c_adapter_unlock_bus - Release exclusive access to an I2C bus segment SYNOPSIS void i2c_adapter_unlock_bus (struct i2c_adapter *adapter , unsigned int flags ); ARGUMENTS adapter Target I2C bus segment flags I2C_LOCK_ROOT_ADAPTER unlocks the root i2c adapter, I2C_LOCK_SEGMENT unlocks only this...
i2c_add_adapter(9)
NAME i2c_add_adapter - declare i2c adapter, use dynamic bus number SYNOPSIS int i2c_add_adapter (struct i2c_adapter *adapter ); ARGUMENTS adapter the adapter to add CONTEXT can sleep DESCRIPTION This routine is used to declare an I2C adapter when its bus number doesn't matter or when its bus number is specifi...
i2c_add_numbered_adapter(9)
NAME i2c_add_numbered_adapter - declare i2c adapter, use static bus number SYNOPSIS int i2c_add_numbered_adapter (struct i2c_adapter *adap ); ARGUMENTS adap the adapter to register (with adap->nr initialized) CONTEXT can sleep DESCRIPTION This routine is used to declare an I2C adapter when its bus number mat...
i2c_atr_add_adapter(9)
NAME i2c_atr_add_adapter - Create a child ("downstream") I2C bus. SYNOPSIS int i2c_atr_add_adapter (struct i2c_atr *atr , struct i2c_atr_adap_desc *desc ); ARGUMENTS atr The I2C ATR desc An ATR adapter descriptor DESCRIPTION After calling this function a new i2c bus will appear. Adding and ...
i2c_atr_del_adapter(9)
NAME i2c_atr_del_adapter - Remove a child ("downstream") I2C bus added by i2c_atr_add_adapter(). If no I2C bus has been added this function is a no-op. SYNOPSIS void i2c_atr_del_adapter (struct i2c_atr *atr , u32 chan_id ); ARGUMENTS atr The I2C ATR chan_id Index of the adapter to be removed (0 .....
i2c_atr_delete(9)
NAME i2c_atr_delete - Delete an I2C ATR helper. SYNOPSIS void i2c_atr_delete (struct i2c_atr *atr ); ARGUMENTS atr I2C ATR helper to be deleted. DESCRIPTION Precondition: all the adapters added with i2c_atr_add_adapter must be removed by calling i2c_atr_del_adapter. SEE ALSO Kernel file ./include/linux/i2c-...
i2c_atr_get_driver_data(9)
NAME i2c_atr_get_driver_data - Get the stored drive data. SYNOPSIS void * i2c_atr_get_driver_data (struct i2c_atr *atr ); ARGUMENTS atr The I2C ATR RETURN Pointer to the stored data SEE ALSO Kernel file ./include/linux/i2c-atr.h enum i2c_atr_flags(9), struct i2c_atr_ops(9), struct i2c_atr_adap_desc(...
i2c_atr_new(9)
NAME i2c_atr_new - Allocate and initialize an I2C ATR helper. SYNOPSIS struct i2c_atr * i2c_atr_new (struct i2c_adapter *parent , struct device *dev , const struct i2c_atr_ops *ops , int max_adapters , u32 flags ); ARGUMENTS parent The parent (upstream) adapter dev The device acting as an ATR ...
i2c_atr_set_driver_data(9)
NAME i2c_atr_set_driver_data - Set private driver data to the i2c-atr instance. SYNOPSIS void i2c_atr_set_driver_data (struct i2c_atr *atr , void *data ); ARGUMENTS atr The I2C ATR data Pointer to the data to store SEE ALSO Kernel file ./include/linux/i2c-atr.h enum i2c_atr_flags(9), stru...
i2c_check_quirks(9)
NAME i2c_check_quirks - Function for checking the quirk flags in an i2c adapter SYNOPSIS bool i2c_check_quirks (struct i2c_adapter *adap , u64 quirks ); ARGUMENTS adap i2c adapter quirks quirk flags RETURN true if the adapter has all the specified quirk flags, false if not SEE ALSO Kernel file ...
i2c_client_get_device_id(9)
NAME i2c_client_get_device_id - get the driver match table entry of a device SYNOPSIS const struct i2c_device_id * i2c_client_get_device_id (const struct i2c_client *client ); ARGUMENTS client the device to query. The device must be bound to a driver DESCRIPTION Returns a pointer to the matching entry if found,...
i2c_del_adapter(9)
NAME i2c_del_adapter - unregister I2C adapter SYNOPSIS void i2c_del_adapter (struct i2c_adapter *adap ); ARGUMENTS adap the adapter being unregistered CONTEXT can sleep DESCRIPTION This unregisters an I2C adapter which was previously registered by i2c_add_adapter or i2c_add_numbered_adapter. SEE ALSO Kernel...
i2c_del_driver(9)
NAME i2c_del_driver - unregister I2C driver SYNOPSIS void i2c_del_driver (struct i2c_driver *driver ); ARGUMENTS driver the driver being unregistered CONTEXT can sleep SEE ALSO Kernel file ./drivers/i2c/i2c-core-base.c i2c_verify_client(9), i2c_adapter_lock_bus(9), i2c_adapter_trylock_bus(9), i2c_adapter_unl...
i2c_detect_slave_mode(9)
NAME i2c_detect_slave_mode - detect operation mode SYNOPSIS bool i2c_detect_slave_mode (struct device *dev ); ARGUMENTS dev The device owning the bus DESCRIPTION This checks the device nodes for an I2C slave by checking the address used in the reg property. If the address match the I2C_OWN_SLAVE_ADDRESS fla...
i2c_dev_get_master(9)
NAME i2c_dev_get_master - get master used to communicate with a device SYNOPSIS struct i3c_master_controller * i2c_dev_get_master (struct i2c_dev_desc *dev ); ARGUMENTS dev I2C dev RETURN the master controller driving dev SEE ALSO Kernel file ./include/linux/i3c/master.h struct i3c_i2c_dev_desc(9), str...
i2c_dev_get_master_data(9)
NAME i2c_dev_get_master_data - get master private data attached to an I2C device descriptor SYNOPSIS void * i2c_dev_get_master_data (const struct i2c_dev_desc *dev ); ARGUMENTS dev the I2C device descriptor to get private data from RETURN the private data previously attached with i2c_dev_set_master_data or N...
i2c_dev_set_master_data(9)
NAME i2c_dev_set_master_data - attach master private data to an I2C device descriptor SYNOPSIS void i2c_dev_set_master_data (struct i2c_dev_desc *dev , void *data ); ARGUMENTS dev the I2C device descriptor to attach private data to data private data DESCRIPTION This functions allows a master c...
i2c_dw_init(9)
NAME i2c_dw_init - Initialize the DesignWare I2C hardware SYNOPSIS int i2c_dw_init (struct dw_i2c_dev *dev ); ARGUMENTS dev device private data DESCRIPTION This functions configures and enables the DesigWare I2C hardware. RETURN 0 on success, or negative errno otherwise. SEE ALSO Kernel file ./drivers/i2c/...
i2c_dw_init_regmap(9)
NAME i2c_dw_init_regmap - Initialize registers map SYNOPSIS int i2c_dw_init_regmap (struct dw_i2c_dev *dev ); ARGUMENTS dev device private data DESCRIPTION Autodetects needed register access mode and creates the regmap with corresponding read/write callbacks. This must be called before doing any other regist...
i2c_dw_set_mode(9)
NAME i2c_dw_set_mode - Select the controller mode of operation - master or slave SYNOPSIS void i2c_dw_set_mode (struct dw_i2c_dev *dev , int mode ); ARGUMENTS dev device private data mode I2C mode of operation DESCRIPTION Configures the controller to operate in mode. This function needs to ...
i2c_find_adapter_by_fwnode(9)
NAME i2c_find_adapter_by_fwnode - find an i2c_adapter for the fwnode SYNOPSIS struct i2c_adapter * i2c_find_adapter_by_fwnode (struct fwnode_handle *fwnode ); ARGUMENTS fwnode struct fwnode_handle corresponding to the struct i2c_adapter DESCRIPTION Look up and return the struct i2c_adapter corresponding to the ...
i2c_find_device_by_fwnode(9)
NAME i2c_find_device_by_fwnode - find an i2c_client for the fwnode SYNOPSIS struct i2c_client * i2c_find_device_by_fwnode (struct fwnode_handle *fwnode ); ARGUMENTS fwnode struct fwnode_handle corresponding to the struct i2c_client DESCRIPTION Look up and return the struct i2c_client corresponding to the fwnode...
i2c_free_slave_host_notify_device(9)
NAME i2c_free_slave_host_notify_device - free the client for SMBus host-notify support SYNOPSIS void i2c_free_slave_host_notify_device (struct i2c_client *client ); ARGUMENTS client the client to free CONTEXT can sleep DESCRIPTION Free the i2c_client allocated via i2c_new_slave_host_notify_device SEE ALSO Ker...
i2c_get_adapter_by_fwnode(9)
NAME i2c_get_adapter_by_fwnode - find an i2c_adapter for the fwnode SYNOPSIS struct i2c_adapter * i2c_get_adapter_by_fwnode (struct fwnode_handle *fwnode ); ARGUMENTS fwnode struct fwnode_handle corresponding to the struct i2c_adapter DESCRIPTION Look up and return the struct i2c_adapter corresponding t...
i2c_get_device_id(9)
NAME i2c_get_device_id - get manufacturer, part id and die revision of a device SYNOPSIS int i2c_get_device_id (const struct i2c_client *client , struct i2c_device_identity *id ); ARGUMENTS client The device to query id The queried information DESCRIPTION Returns negative errno on error, zero o...
i2c_get_dma_safe_msg_buf(9)
NAME i2c_get_dma_safe_msg_buf - get a DMA safe buffer for the given i2c_msg SYNOPSIS u8 * i2c_get_dma_safe_msg_buf (struct i2c_msg *msg , unsigned int threshold ); ARGUMENTS msg the message to be checked threshold the minimum number of bytes for which using DMA makes sense. Should at least be 1. R...
i2c_handle_smbus_alert(9)
NAME i2c_handle_smbus_alert - Handle an SMBus alert SYNOPSIS int i2c_handle_smbus_alert (struct i2c_client *ara ); ARGUMENTS ara the ARA client on the relevant adapter CONTEXT can't sleep DESCRIPTION Helper function to be called from an I2C bus driver's interrupt handler. It will schedule the alert work, in...
i2c_handle_smbus_host_notify(9)
NAME i2c_handle_smbus_host_notify - Forward a Host Notify event to the correct I2C client. SYNOPSIS int i2c_handle_smbus_host_notify (struct i2c_adapter *adap , unsigned short addr ); ARGUMENTS adap the adapter addr the I2C address of the notifying device CONTEXT can't sleep DESCRIPTION Helper...
i2c_hid_set_or_send_report(9)
NAME i2c_hid_set_or_send_report - forward an incoming report to the device SYNOPSIS int i2c_hid_set_or_send_report (struct i2c_hid *ihid , u8 report_type , u8 report_id , const u8 *buf , size_t data_len , bool do_set ); ARGUMENTS ihid the i2c hid device report_type 0x03 for HID_FEATURE_REPORT ; 0x02 fo...
i2c_irq_handler(9)
NAME i2c_irq_handler - interrupt routine SYNOPSIS irqreturn_t i2c_irq_handler (int irq , void *arg ); ARGUMENTS irq interrupt number arg data passed to the handler DESCRIPTION This is the interrupt handler for the i2c driver. Currently it handles the major interrupts like Rx & Tx FIFO managem...
i2c_lock_bus(9)
NAME i2c_lock_bus - Get exclusive access to an I2C bus segment SYNOPSIS void i2c_lock_bus (struct i2c_adapter *adapter , unsigned int flags ); ARGUMENTS adapter Target I2C bus segment flags I2C_LOCK_ROOT_ADAPTER locks the root i2c adapter, I2C_LOCK_SEGMENT locks only this branch in the adapter tree ...
i2c_mark_adapter_resumed(9)
NAME i2c_mark_adapter_resumed - Report resumed state of the adapter to the core SYNOPSIS void i2c_mark_adapter_resumed (struct i2c_adapter *adap ); ARGUMENTS adap Adapter to mark as resumed DESCRIPTION When using this helper to mark an adapter as resumed, the core will allow further transfers to this adapter....
i2c_mark_adapter_suspended(9)
NAME i2c_mark_adapter_suspended - Report suspended state of the adapter to the core SYNOPSIS void i2c_mark_adapter_suspended (struct i2c_adapter *adap ); ARGUMENTS adap Adapter to mark as suspended DESCRIPTION When using this helper to mark an adapter as suspended, the core will reject further transfers to t...
i2c_master_recv(9)
NAME i2c_master_recv - issue a single I2C message in master receive mode SYNOPSIS int i2c_master_recv (const struct i2c_client *client , char *buf , int count ); ARGUMENTS client Handle to slave device buf Where to store data read from slave count How many bytes to read, must be les...
i2c_master_recv_dmasafe(9)
NAME i2c_master_recv_dmasafe - issue a single I2C message in master receive mode using a DMA safe buffer SYNOPSIS int i2c_master_recv_dmasafe (const struct i2c_client *client , char *buf , int count ); ARGUMENTS client Handle to slave device buf Where to store data read from slave, must be safe t...
i2c_master_send(9)
NAME i2c_master_send - issue a single I2C message in master transmit mode SYNOPSIS int i2c_master_send (const struct i2c_client *client , const char *buf , int count ); ARGUMENTS client Handle to slave device buf Data that will be written to the slave count How many bytes to write, ...
i2c_master_send_dmasafe(9)
NAME i2c_master_send_dmasafe - issue a single I2C message in master transmit mode using a DMA safe buffer SYNOPSIS int i2c_master_send_dmasafe (const struct i2c_client *client , const char *buf , int count ); ARGUMENTS client Handle to slave device buf Data that will be written to the slave, must...
i2c_new_ancillary_device(9)
NAME i2c_new_ancillary_device - Helper to get the instantiated secondary address and create the associated device SYNOPSIS struct i2c_client * i2c_new_ancillary_device (struct i2c_client *client , const char *name , u16 default_addr ); ARGUMENTS client Handle to the primary client name Handle to s...
i2c_new_client_device(9)
NAME i2c_new_client_device - instantiate an i2c device SYNOPSIS struct i2c_client * i2c_new_client_device (struct i2c_adapter *adap , struct i2c_board_info const *info ); ARGUMENTS adap the adapter managing the device info describes one I2C device; bus_num is ignored CONTEXT can sleep DESCRIPT...
i2c_new_dummy_device(9)
NAME i2c_new_dummy_device - return a new i2c device bound to a dummy driver SYNOPSIS struct i2c_client * i2c_new_dummy_device (struct i2c_adapter *adapter , u16 address ); ARGUMENTS adapter the adapter managing the device address seven bit address to be used CONTEXT can sleep DESCRIPTION This retur...
i2c_new_slave_host_notify_device(9)
NAME i2c_new_slave_host_notify_device - get a client for SMBus host-notify support SYNOPSIS struct i2c_client * i2c_new_slave_host_notify_device (struct i2c_adapter *adapter ); ARGUMENTS adapter the target adapter CONTEXT can sleep DESCRIPTION Setup handling of the SMBus host-notify protocol on a given I2C...