id
stringlengths
4
63
text
stringlengths
153
8.81M
create_debugfs(9)
NAME create_debugfs - create a blob debugfs entry SYNOPSIS struct dentry * create_debugfs (struct nvkm_gsp *gsp , const char *name , struct debugfs_blob_wrapper *blob ); ARGUMENTS gsp gsp pointer name name of this dentry blob blob wrapper DESCRIPTION Creates a debugfs entry for ...
create_default_filesystem(9)
NAME create_default_filesystem - format empty UBI volume. SYNOPSIS int create_default_filesystem (struct ubifs_info *c ); ARGUMENTS c UBIFS file-system description object DESCRIPTION This function creates default empty file-system. Returns zero in case of success and a negative error code in case of failur...
create_dmamap_sg_bo(9)
NAME create_dmamap_sg_bo - Creates a amdgpu_bo object to reflect information about USERPTR or DOOREBELL or MMIO BO. SYNOPSIS int create_dmamap_sg_bo (struct amdgpu_device *adev , struct kgd_mem *mem , struct amdgpu_bo **bo_out ); ARGUMENTS adev Device for which dmamap BO is being created mem BO...
create_durable_rsp_buf(9)
NAME create_durable_rsp_buf - create durable handle context SYNOPSIS void create_durable_rsp_buf (char *cc ); ARGUMENTS cc buffer to create durable context response SEE ALSO Kernel file ./fs/smb/server/oplock.c alloc_opinfo(9), opinfo_write_to_read(9), opinfo_read_handle_to_read(9), opinfo_write...
create_durable_v2_rsp_buf(9)
NAME create_durable_v2_rsp_buf - create durable handle v2 context SYNOPSIS void create_durable_v2_rsp_buf (char *cc , struct ksmbd_file *fp ); ARGUMENTS cc buffer to create durable context response fp ksmbd file pointer SEE ALSO Kernel file ./fs/smb/server/oplock.c alloc_opinfo(9), ...
create_empty_lvol(9)
NAME create_empty_lvol - create empty layout volume. SYNOPSIS struct ubi_vtbl_record * create_empty_lvol (struct ubi_device *ubi , struct ubi_attach_info *ai ); ARGUMENTS ubi UBI device description object ai attaching information DESCRIPTION This function returns volume table contents in cas...
create_field_var_hist(9)
NAME create_field_var_hist - Automatically create a histogram and var for a field SYNOPSIS struct hist_field * create_field_var_hist (struct hist_trigger_data *target_hist_data , char *subsys_name , char *event_name , char *field_name ); ARGUMENTS target_hist_data The target hist trigger subsys_name Optional ...
create_filter(9)
NAME create_filter - create a filter for a trace_event_call SYNOPSIS int create_filter (struct trace_array *tr , struct trace_event_call *call , char *filter_string , bool set_str , struct event_filter **filterp ); ARGUMENTS tr the trace array associated with these events call trace_event_call...
create_hash_wr(9)
NAME create_hash_wr - Create hash work request SYNOPSIS struct sk_buff * create_hash_wr (struct ahash_request *req , struct hash_wr_param *param ); ARGUMENTS req Cipher req base param Container for create_hash_wr's parameters SEE ALSO Kernel file ./drivers/crypto/chelsio/chcr_algo.c create_ciph...
create_hdev(9)
NAME create_hdev - create habanalabs device instance SYNOPSIS int create_hdev (struct hl_device **dev , struct pci_dev *pdev ); ARGUMENTS dev will hold the pointer to the new habanalabs device structure pdev pointer to the pci device DESCRIPTION Allocate memory for habanalabs device and initia...
create_hdr_descs(9)
NAME create_hdr_descs - create header and header extension descriptors SYNOPSIS int create_hdr_descs (u8 hdr_field , u8 *hdr_data , int len , int *hdr_len , union sub_crq *scrq_arr ); ARGUMENTS hdr_field bitfield determining needed headers hdr_data buffer containing header data len length...
create_hyp_exec_mappings(9)
NAME create_hyp_exec_mappings - Map an executable range into HYP SYNOPSIS int create_hyp_exec_mappings (phys_addr_t phys_addr , size_t size , void **haddr ); ARGUMENTS phys_addr The physical start address which gets mapped size Size of the region being mapped haddr HYP VA for this mappi...
create_hyp_io_mappings(9)
NAME create_hyp_io_mappings - Map IO into both kernel and HYP SYNOPSIS int create_hyp_io_mappings (phys_addr_t phys_addr , size_t size , void __iomem **kaddr , void __iomem **haddr ); ARGUMENTS phys_addr The physical start address which gets mapped size Size of the region being mapped kaddr ...
create_hyp_mappings(9)
NAME create_hyp_mappings - duplicate a kernel virtual address range in Hyp mode SYNOPSIS int create_hyp_mappings (void *from , void *to , enum kvm_pgtable_prot prot ); ARGUMENTS from The virtual kernel start address of the range to The virtual kernel end address of the range (exclusive) ...
create_image(9)
NAME create_image - Create a hibernation image. SYNOPSIS int create_image (int platform_mode ); ARGUMENTS platform_mode Whether or not to use the platform driver. DESCRIPTION Execute device drivers' "late" and "noirq" freeze callbacks, create a hibernation image and run the drivers' "noirq" and "early" thaw callback...
create_lease_buf(9)
NAME create_lease_buf - create lease context for open cmd response SYNOPSIS void create_lease_buf (u8 *rbuf , struct lease *lease ); ARGUMENTS rbuf buffer to create lease context response lease buffer to stored parsed lease state information SEE ALSO Kernel file ./fs/smb/server/oplock.c al...
create_mem_extents(9)
NAME create_mem_extents - Create a list of memory extents. SYNOPSIS int create_mem_extents (struct list_head *list , gfp_t gfp_mask ); ARGUMENTS list List to put the extents into. gfp_mask Mask to use for memory allocations. DESCRIPTION The extents represent contiguous ranges of PFNs. SEE ALSO Ker...
create_module(2)
NAME create_module - create a loadable module entry SYNOPSIS #include <linux/module.h> [[deprecated]] caddr_t create_module(const char *name, size_t size); DESCRIPTION Note: This system call is present only before Linux 2.6. create_module() attempts to create a loadable module entry and reserve the ke...
create_multi_block_metadata_vio(9)
NAME create_multi_block_metadata_vio - Create a vio. SYNOPSIS int create_multi_block_metadata_vio (struct vdo *vdo , enum vio_type vio_type , enum vio_priority priority , void *parent , unsigned int block_count , char *data , struct vio **vio_ptr ); ARGUMENTS vdo The vdo on which the vio will operate. ...
create_multi_sg(9)
NAME create_multi_sg - Create multiple sg entries with buflen data length from source sglist SYNOPSIS struct scatterlist * create_multi_sg (struct scatterlist *to_sg , struct scatterlist *from_sg , int buflen ); ARGUMENTS to_sg Destination SG list from_sg Source SG list buflen Data leng...
create_mxac_rsp_buf(9)
NAME create_mxac_rsp_buf - create query maximal access context SYNOPSIS void create_mxac_rsp_buf (char *cc , int maximal_access ); ARGUMENTS cc buffer to create maximal access context response maximal_access maximal access SEE ALSO Kernel file ./fs/smb/server/oplock.c alloc_...
create_namespace_pmem(9)
NAME create_namespace_pmem - validate interleave set labelling, retrieve label0 SYNOPSIS struct device * create_namespace_pmem (struct nd_region *nd_region , struct nd_mapping *nd_mapping , struct nd_namespace_label *nd_label ); ARGUMENTS nd_region region with mappings to validate nd_mapping container of d...
create_of_modalias(9)
NAME create_of_modalias - Creates DT compatible string for modalias and uevent SYNOPSIS int create_of_modalias (const struct acpi_device *acpi_dev , char *modalias , int size ); ARGUMENTS acpi_dev ACPI device object. modalias Buffer to print into. size Size of the buffer. DESCRIPTION Exp...
create_ok(9)
NAME create_ok - OK to create a new on-disk inode here? SYNOPSIS int create_ok (struct gfs2_inode *dip , const struct qstr *name , umode_t mode ); ARGUMENTS dip Directory in which dinode is to be created name Name of new dinode mode RETURN errno SEE ALSO Kernel file ./fs/gfs2/inode.c ...
create_pbc(9)
NAME create_pbc - build a pbc for transmission SYNOPSIS u64 create_pbc (struct hfi1_pportdata *ppd , u64 flags , int srate_mbs , u32 vl , u32 dw_len ); ARGUMENTS ppd info of physical Hfi port flags special case flags or-ed in built pbc srate_mbs static rate vl vl ...
create_pnp_modalias(9)
NAME create_pnp_modalias - Create hid/cid(s) string for modalias and uevent SYNOPSIS int create_pnp_modalias (const struct acpi_device *acpi_dev , char *modalias , int size ); ARGUMENTS acpi_dev ACPI device object. modalias Buffer to print into. size Size of the buffer. DESCRIPTION Creat...
create_posix_rsp_buf(9)
NAME create_posix_rsp_buf - create posix extension context SYNOPSIS void create_posix_rsp_buf (char *cc , struct ksmbd_file *fp ); ARGUMENTS cc buffer to create posix on posix response fp ksmbd file pointer SEE ALSO Kernel file ./fs/smb/server/oplock.c alloc_opinfo(9), opinfo_write_...
create_pte_array(9)
NAME create_pte_array - creates a PTE array of a physically contiguous buffer SYNOPSIS void create_pte_array (u64 *ptes , dma_addr_t addr , size_t size ); ARGUMENTS ptes pointer to the array addr base address of physically contiguous buffer (GSP_PAGE_SIZE aligned) size size of the...
create_root_hv_pci_bus(9)
NAME create_root_hv_pci_bus - Expose a new root PCI bus SYNOPSIS int create_root_hv_pci_bus (struct hv_pcibus_device *hbus ); ARGUMENTS hbus Root PCI bus, as understood by this driver RETURN 0 on success, -errno on failure SEE ALSO Kernel file ./drivers/pci/controller/pci-hyperv.c struct hv_msi_desc(9), ...
create_rxqs(9)
NAME create_rxqs - Create the Logical Rx Queues of specific NIC device SYNOPSIS int create_rxqs (struct hinic_dev *nic_dev ); ARGUMENTS nic_dev the specific NIC device DESCRIPTION Return 0 - Success, negative - Failure SEE ALSO Kernel file ./drivers/net/ethernet/huawei/hinic/hinic_main.c create_txqs(9), free_tx...
create_sg_component(9)
NAME create_sg_component - create SG componets for N5 device. SYNOPSIS int create_sg_component (struct nitrox_softreq *sr , struct nitrox_sgtable *sgtbl , int map_nents ); ARGUMENTS sr Request structure sgtbl SG table map_nents number of dma mapped entries DESCRIPTION Component stru...
create_sg_table(9)
NAME create_sg_table - Create an sg_table for a contiguous DMA addr range SYNOPSIS struct sg_table * create_sg_table (uint64_t addr , uint32_t size ); ARGUMENTS addr The starting address to point to size Size of memory area in bytes being pointed to DESCRIPTION Allocates an instance of sg_tabl...
create_single_sg(9)
NAME create_single_sg - Point SG entry to the data SYNOPSIS struct scatterlist * create_single_sg (struct scatterlist *sg , void *buf , int buflen ); ARGUMENTS sg Destination SG list buf Data buflen Data length DESCRIPTION Returns next free entry in the destination SG list SEE ...
create_smb2_pipe(9)
NAME create_smb2_pipe - create IPC pipe SYNOPSIS int create_smb2_pipe (struct ksmbd_work *work ); ARGUMENTS work smb work containing request buffer RETURN 0 on success, otherwise error SEE ALSO Kernel file ./fs/smb/server/smb2pdu.c check_session_id(9), smb2_get_ksmbd_tcon(9), smb2_set_err_rsp(9), ...
create_socket(9)
NAME create_socket - create socket for ksmbd/0 SYNOPSIS int create_socket (struct interface *iface ); ARGUMENTS iface interface to bind the created socket to RETURN 0 on success, error number otherwise SEE ALSO Kernel file ./fs/smb/server/transport_tcp.c kvec_array_init(9), get_conn_iovec(9), ksmbd_tcp_new_co...
create_system_filter(9)
NAME create_system_filter - create a filter for an event subsystem SYNOPSIS int create_system_filter (struct trace_subsystem_dir *dir , char *filter_str , struct event_filter **filterp ); ARGUMENTS dir the descriptor for the subsystem directory filter_str filter string filterp out param f...
create_target_field_var(9)
NAME create_target_field_var - Automatically create a variable for a field SYNOPSIS struct field_var * create_target_field_var (struct hist_trigger_data *target_hist_data , char *subsys_name , char *event_name , char *var_name ); ARGUMENTS target_hist_data The target hist trigger subsys_name Optional subsyste...
create_test_user_ns_with_mapping(9)
NAME create_test_user_ns_with_mapping - Create a mock user namespace with UID mapping SYNOPSIS struct user_namespace * create_test_user_ns_with_mapping (struct kunit *test , struct user_namespace *parent_ns , kuid_t mapped_kuid ); ARGUMENTS test KUnit test context parent_ns Parent namespace (typicall...
create_timings_aligned(9)
NAME create_timings_aligned - Create register values and align with standard SYNOPSIS int create_timings_aligned (struct exynos5_dmc *dmc , u32 *reg_timing_row , u32 *reg_timing_data , u32 *reg_timing_power , u32 clk_period_ps ); ARGUMENTS dmc device for which the frequency is going to be set reg_timi...
create_trip_attrs(9)
NAME create_trip_attrs - create attributes for trip points SYNOPSIS int create_trip_attrs (struct thermal_zone_device *tz ); ARGUMENTS tz the thermal zone device DESCRIPTION helper function to instantiate sysfs entries for every trip point and its properties of a struct thermal_zone_device. RETURN 0 on suc...
create_txqs(9)
NAME create_txqs - Create the Logical Tx Queues of specific NIC device SYNOPSIS int create_txqs (struct hinic_dev *nic_dev ); ARGUMENTS nic_dev the specific NIC device DESCRIPTION Return 0 - Success, negative - Failure SEE ALSO Kernel file ./drivers/net/ethernet/huawei/hinic/hinic_main.c free_txqs(9), create_rx...
create_var_ref(9)
NAME create_var_ref - Create a variable reference and attach it to trigger SYNOPSIS struct hist_field * create_var_ref (struct hist_trigger_data *hist_data , struct hist_field *var_field , char *system , char *event_name ); ARGUMENTS hist_data The trigger that will be referencing the variable var_field Th...
create_vtbl(9)
NAME create_vtbl - create a copy of volume table. SYNOPSIS int create_vtbl (struct ubi_device *ubi , struct ubi_attach_info *ai , int copy , void *vtbl ); ARGUMENTS ubi UBI device description object ai attaching information copy number of the volume table copy vtbl ...
create_worker(9)
NAME create_worker - create a new workqueue worker SYNOPSIS struct worker * create_worker (struct worker_pool *pool ); ARGUMENTS pool pool the new worker will belong to DESCRIPTION Create and start a new worker which is attached to pool. CONTEXT Might sleep. Does GFP_KERNEL allocations. RETURN Pointer to t...
create_workqueues(9)
NAME create_workqueues - create per port workqueues SYNOPSIS int create_workqueues (struct hfi1_devdata *dd ); ARGUMENTS dd the hfi1_ib device SEE ALSO Kernel file ./drivers/infiniband/hw/hfi1/init.c hfi1_rcd_free(9), hfi1_rcd_put(9), hfi1_rcd_get(9), allocate_rcd_index(9), hfi1_rcd_get_by_index_sa...
create_xattr(9)
NAME create_xattr - create an extended attribute. SYNOPSIS int create_xattr (struct ubifs_info *c , struct inode *host , const struct fscrypt_name *nm , const void *value , int size ); ARGUMENTS c UBIFS file-system description object host host inode nm extended attribute name...
create_zone_bm_rtree(9)
NAME create_zone_bm_rtree - Create a radix tree for one zone. SYNOPSIS struct mem_zone_bm_rtree * create_zone_bm_rtree (gfp_t gfp_mask , int safe_needed , struct chain_allocator *ca , unsigned long start , unsigned long end ); ARGUMENTS gfp_mask -- undescribed -- safe_needed -- undescribed -- ca ...
createdb(1)
NAME createdb - create a new PostgreSQL database SYNOPSIS createdb [connection-option...] [option...] [dbname [description]] DESCRIPTION createdb creates a new PostgreSQL database. Normally, the database user who executes this command becomes the owner of the new database. However, a different owner c...
createuser(1)
NAME createuser - define a new PostgreSQL user account SYNOPSIS createuser [connection-option...] [option...] [username] DESCRIPTION createuser creates a new PostgreSQL user (or more precisely, a role). Only superusers and users with CREATEROLE privilege can create new users, so createuser must be invoked by ...
cred_fscmp(9)
NAME cred_fscmp - Compare two credentials with respect to filesystem access. SYNOPSIS int cred_fscmp (const struct cred *a , const struct cred *b ); ARGUMENTS a The first credential b The second credential DESCRIPTION cred_cmp will return zero if both credentials have the same fsuid, f...
credentials(7)
NAME credentials - process identifiers DESCRIPTION Process ID (PID) Each process has a unique nonnegative integer identifier that is assigned when the process is created using fork(2). A process can obtain its PID using getpid(2). A PID is represented using the type pid_t (defined in <sys/types.h>). PIDs ...
crl.1ssl(1)
NAME asn1parse, ca, ciphers, cmp, cms, crl, crl2pkcs7, dgst, dhparam, dsa, dsaparam, ec, ecparam, enc, engine, errstr, gendsa, genpkey, genrsa, info, kdf, mac, nseq, ocsp, passwd, pkcs12, pkcs7, pkcs8, pkey, pkeyparam, pkeyutl, prime, rand, rehash, req, rsa, rsautl, s_client, s_server, s_time, sess_id, smime, speed, sp...
crl2pkcs7.1ssl(1)
NAME asn1parse, ca, ciphers, cmp, cms, crl, crl2pkcs7, dgst, dhparam, dsa, dsaparam, ec, ecparam, enc, engine, errstr, gendsa, genpkey, genrsa, info, kdf, mac, nseq, ocsp, passwd, pkcs12, pkcs7, pkcs8, pkey, pkeyparam, pkeyutl, prime, rand, rehash, req, rsa, rsautl, s_client, s_server, s_time, sess_id, smime, speed, sp...
crontab(1p)
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 crontab — schedule periodic background work SYNOPSIS cron...
cros_ec_accel_legacy_read_avail(9)
NAME cros_ec_accel_legacy_read_avail - get available values SYNOPSIS int cros_ec_accel_legacy_read_avail (struct iio_dev *indio_dev , struct iio_chan_spec const *chan , const int **vals , int *type , int *length , long mask ); ARGUMENTS indio_dev pointer to state information for device chan channel s...
cros_ec_check_features(9)
NAME cros_ec_check_features - Test for the presence of EC features SYNOPSIS bool cros_ec_check_features (struct cros_ec_dev *ec , int feature ); ARGUMENTS ec EC device, does not have to be connected directly to the AP, can be daisy chained through another device. feature One of ec_feature_code bi...
cros_ec_check_result(9)
NAME cros_ec_check_result - Check ec_msg->result. SYNOPSIS int cros_ec_check_result (struct cros_ec_device *ec_dev , struct cros_ec_command *msg ); ARGUMENTS ec_dev EC device. msg Message to check. DESCRIPTION This is used by ChromeOS EC drivers to check the ec_msg->result for EC_RES_IN_PROGRESS...
cros_ec_cmd(9)
NAME cros_ec_cmd - Send a command to the EC. SYNOPSIS int cros_ec_cmd (struct cros_ec_device *ec_dev , unsigned int version , int command , const void *outdata , size_t outsize , void *indata , size_t insize ); ARGUMENTS ec_dev EC device version EC command version command EC command ...
cros_ec_cmd_readmem(9)
NAME cros_ec_cmd_readmem - Read from EC memory. SYNOPSIS int cros_ec_cmd_readmem (struct cros_ec_device *ec_dev , u8 offset , u8 size , void *dest ); ARGUMENTS ec_dev EC device offset Is within EC_LPC_ADDR_MEMMAP region. size Number of bytes to read. dest EC command out...
cros_ec_cmd_xfer(9)
NAME cros_ec_cmd_xfer - Send a command to the ChromeOS EC. SYNOPSIS int cros_ec_cmd_xfer (struct cros_ec_device *ec_dev , struct cros_ec_command *msg ); ARGUMENTS ec_dev EC device. msg Message to write. DESCRIPTION Call this to send a command to the ChromeOS EC. This should be used instead of...
cros_ec_cmd_xfer_rpmsg(9)
NAME cros_ec_cmd_xfer_rpmsg - Transfer a message over rpmsg and receive the reply SYNOPSIS int cros_ec_cmd_xfer_rpmsg (struct cros_ec_device *ec_dev , struct cros_ec_command *ec_msg ); ARGUMENTS ec_dev ChromeOS EC device ec_msg Message to transfer DESCRIPTION This is only used for old EC proto vers...
cros_ec_cmd_xfer_status(9)
NAME cros_ec_cmd_xfer_status - Send a command to the ChromeOS EC. SYNOPSIS int cros_ec_cmd_xfer_status (struct cros_ec_device *ec_dev , struct cros_ec_command *msg ); ARGUMENTS ec_dev EC device. msg Message to write. DESCRIPTION Call this to send a command to the ChromeOS EC. This should ...
cros_ec_device_registered(9)
NAME cros_ec_device_registered - Return if the ec_dev is registered. SYNOPSIS bool cros_ec_device_registered (struct cros_ec_device *ec_dev ); ARGUMENTS ec_dev EC device RETURN true if registered. Otherwise, false. SEE ALSO Kernel file ./drivers/platform/chrome/cros_ec_proto.c cros_ec_prepare_tx(9), ...
cros_ec_get_cmd_versions(9)
NAME cros_ec_get_cmd_versions - Get supported version mask. SYNOPSIS int cros_ec_get_cmd_versions (struct cros_ec_device *ec_dev , u16 cmd ); ARGUMENTS ec_dev EC device cmd Command to test RETURN version mask on success, negative error number on failure. SEE ALSO Kernel file ./drivers/pla...
cros_ec_get_host_command_version_mask(9)
NAME cros_ec_get_host_command_version_mask - SYNOPSIS int cros_ec_get_host_command_version_mask (struct cros_ec_device *ec_dev , u16 cmd , u32 *mask ); ARGUMENTS ec_dev EC device to call cmd command to get the version of. mask result when function returns 0. DESCRIPTION Get the ve...
cros_ec_get_host_event(9)
NAME cros_ec_get_host_event - Return a mask of event set by the ChromeOS EC. SYNOPSIS u32 cros_ec_get_host_event (struct cros_ec_device *ec_dev ); ARGUMENTS ec_dev Device to fetch event from. DESCRIPTION When MKBP is supported, when the EC raises an interrupt, we collect the events raised and call the functions...
cros_ec_get_host_event_wake_mask(9)
NAME cros_ec_get_host_event_wake_mask - SYNOPSIS int cros_ec_get_host_event_wake_mask (struct cros_ec_device *ec_dev , uint32_t *mask ); ARGUMENTS ec_dev EC device to call mask result when function returns 0. DESCRIPTION Get the mask of host events that cause wake from suspend. LOCKING: the call...
cros_ec_get_next_event(9)
NAME cros_ec_get_next_event - Fetch next event from the ChromeOS EC. SYNOPSIS int cros_ec_get_next_event (struct cros_ec_device *ec_dev , bool *wake_event , bool *has_more_events ); ARGUMENTS ec_dev Device to fetch event from. wake_event Pointer to a bool set to true upon return if the event might be tr...
cros_ec_get_sensor_count(9)
NAME cros_ec_get_sensor_count - Return the number of MEMS sensors supported. SYNOPSIS int cros_ec_get_sensor_count (struct cros_ec_dev *ec ); ARGUMENTS ec EC device, does not have to be connected directly to the AP, can be daisy chained through another device. RETURN < 0 in case of error. SEE ALSO Kernel ...
cros_ec_get_time_ns(9)
NAME cros_ec_get_time_ns - Return time in ns. SYNOPSIS ktime_t cros_ec_get_time_ns (void ); ARGUMENTS void no arguments DESCRIPTION This is the function used to record the time for last_event_time in struct cros_ec_device during the hard irq. RETURN ktime_t format since boot. SEE ALSO Kernel file ./include/...
cros_ec_handle_event(9)
NAME cros_ec_handle_event - process and forward pending events on EC SYNOPSIS bool cros_ec_handle_event (struct cros_ec_device *ec_dev ); ARGUMENTS ec_dev Device with events to process. DESCRIPTION Call this function in a loop when the kernel is notified that the EC has pending events. RETURN true if more even...
cros_ec_irq_handler(9)
NAME cros_ec_irq_handler - top half part of the interrupt handler SYNOPSIS irqreturn_t cros_ec_irq_handler (int irq , void *data ); ARGUMENTS irq IRQ id data (ec_dev) Device with events to process. RETURN Wakeup the bottom half SEE ALSO Kernel file ./drivers/platform/chrome/cros_ec.c cros_...
cros_ec_irq_thread(9)
NAME cros_ec_irq_thread - bottom half part of the interrupt handler SYNOPSIS irqreturn_t cros_ec_irq_thread (int irq , void *data ); ARGUMENTS irq IRQ id data (ec_dev) Device with events to process. RETURN Interrupt handled. SEE ALSO Kernel file ./drivers/platform/chrome/cros_ec.c cros_ec_...
cros_ec_ishtp_probe(9)
NAME cros_ec_ishtp_probe - ISHTP client driver probe callback SYNOPSIS int cros_ec_ishtp_probe (struct ishtp_cl_device *cl_device ); ARGUMENTS cl_device ISHTP client device instance RETURN 0 for success, negative error code for failure. SEE ALSO Kernel file ./drivers/platform/chrome/cros_ec_ishtp.c struct res...
cros_ec_ishtp_remove(9)
NAME cros_ec_ishtp_remove - ISHTP client driver remove callback SYNOPSIS void cros_ec_ishtp_remove (struct ishtp_cl_device *cl_device ); ARGUMENTS cl_device ISHTP client device instance RETURN 0 SEE ALSO Kernel file ./drivers/platform/chrome/cros_ec_ishtp.c struct response_info(9), struct ishtp_cl_data(9), ...
cros_ec_ishtp_reset(9)
NAME cros_ec_ishtp_reset - ISHTP client driver reset callback SYNOPSIS int cros_ec_ishtp_reset (struct ishtp_cl_device *cl_device ); ARGUMENTS cl_device ISHTP client device instance RETURN 0 SEE ALSO Kernel file ./drivers/platform/chrome/cros_ec_ishtp.c struct response_info(9), struct ishtp_cl_data(9), ish...
cros_ec_ishtp_resume(9)
NAME cros_ec_ishtp_resume - ISHTP client driver resume callback SYNOPSIS int __maybe_unused cros_ec_ishtp_resume (struct device *device ); ARGUMENTS device device instance RETURN 0 for success, negative error code for failure. SEE ALSO Kernel file ./drivers/platform/chrome/cros_ec_ishtp.c struct response_i...
cros_ec_ishtp_suspend(9)
NAME cros_ec_ishtp_suspend - ISHTP client driver suspend callback SYNOPSIS int __maybe_unused cros_ec_ishtp_suspend (struct device *device ); ARGUMENTS device device instance RETURN 0 for success, negative error code for failure. SEE ALSO Kernel file ./drivers/platform/chrome/cros_ec_ishtp.c struct respons...
cros_ec_keyb_info(9)
NAME cros_ec_keyb_info - Wrap the EC command EC_CMD_MKBP_INFO SYNOPSIS int cros_ec_keyb_info (struct cros_ec_device *ec_dev , enum ec_mkbp_info_type info_type , enum ec_mkbp_event event_type , union ec_response_get_next_data *result , size_t result_size ); ARGUMENTS ec_dev The EC device info_type Eithe...
cros_ec_keyb_query_switches(9)
NAME cros_ec_keyb_query_switches - Query the state of switches and report SYNOPSIS int cros_ec_keyb_query_switches (struct cros_ec_keyb *ckdev ); ARGUMENTS ckdev The keyboard device DESCRIPTION This will ask the EC about the current state of switches and report to the kernel. Note that we don't query for but...
cros_ec_keyb_register_bs(9)
NAME cros_ec_keyb_register_bs - Register non-matrix buttons/switches SYNOPSIS int cros_ec_keyb_register_bs (struct cros_ec_keyb *ckdev , bool expect_buttons_switches ); ARGUMENTS ckdev The keyboard device expect_buttons_switches Indicates that EC must report button and/or switch event...
cros_ec_keyb_register_matrix(9)
NAME cros_ec_keyb_register_matrix - Register matrix keys SYNOPSIS int cros_ec_keyb_register_matrix (struct cros_ec_keyb *ckdev ); ARGUMENTS ckdev The keyboard device DESCRIPTION Handles all the bits of the keyboard driver related to matrix keys. Returns 0 if no error or -error upon error. SEE ALSO Kernel f...
cros_ec_keyb_report_bs(9)
NAME cros_ec_keyb_report_bs - Report non-matrixed buttons or switches SYNOPSIS void cros_ec_keyb_report_bs (struct cros_ec_keyb *ckdev , unsigned int ev_type , u32 mask ); ARGUMENTS ckdev The keyboard device. ev_type The input event type (e.g., EV_KEY). mask A bitmap of buttons from t...
cros_ec_keyb_resume(9)
NAME cros_ec_keyb_resume - Resume the keyboard SYNOPSIS int cros_ec_keyb_resume (struct device *dev ); ARGUMENTS dev The keyboard device DESCRIPTION We use the resume notification as a chance to query the EC for switches. Returns 0 if no error or -error upon error. SEE ALSO Kernel file ./drivers/input/ke...
cros_ec_lpc_io_bytes_mec(9)
NAME cros_ec_lpc_io_bytes_mec - Read / write bytes to MEC EMI port SYNOPSIS int cros_ec_lpc_io_bytes_mec (enum cros_ec_lpc_mec_io_type io_type , unsigned int offset , unsigned int length , u8 *buf ); ARGUMENTS io_type MEC_IO_READ or MEC_IO_WRITE, depending on request offset Base read / write address ...
cros_ec_lpc_mec_acpi_mutex(9)
NAME cros_ec_lpc_mec_acpi_mutex - Find and set ACPI mutex for MEC SYNOPSIS int cros_ec_lpc_mec_acpi_mutex (struct acpi_device *adev , const char *pathname ); ARGUMENTS adev Parent ACPI device pathname Name of AML mutex RETURN Negative error code, or zero for success SEE ALSO Kernel file ./drivers/...
cros_ec_lpc_mec_emi_write_address(9)
NAME cros_ec_lpc_mec_emi_write_address - Initialize EMI at a given address. SYNOPSIS void cros_ec_lpc_mec_emi_write_address (u16 addr , enum cros_ec_lpc_mec_emi_access_mode access_type ); ARGUMENTS addr Starting read / write address access_type Type of access, typically 32-bit auto-increment SEE ALSO ...
cros_ec_lpc_mec_in_range(9)
NAME cros_ec_lpc_mec_in_range - Determine if addresses are in MEC EMI range. SYNOPSIS int cros_ec_lpc_mec_in_range (unsigned int offset , unsigned int length ); ARGUMENTS offset Address offset length Number of bytes to check RETURN 1 if in range, 0 if not, and -EINVAL on failure such as the mec ran...
cros_ec_lpc_mec_init(9)
NAME cros_ec_lpc_mec_init - Initialize MEC I/O. SYNOPSIS void cros_ec_lpc_mec_init (unsigned int base , unsigned int end ); ARGUMENTS base MEC EMI Base address end MEC EMI End address SEE ALSO Kernel file ./drivers/platform/chrome/cros_ec_lpc_mec.h cros_ec_lpc_mec_acpi_mutex(9), cros_ec_lpc_me...
cros_ec_lpc_mec_lock(9)
NAME cros_ec_lpc_mec_lock - Acquire mutex for EMI SYNOPSIS int cros_ec_lpc_mec_lock (void ); ARGUMENTS void no arguments RETURN Negative error code, or zero for success SEE ALSO Kernel file ./drivers/platform/chrome/cros_ec_lpc_mec.c cros_ec_lpc_mec_unlock(9), cros_ec_lpc_mec_emi_write_address(9), cros_ec_lp...
cros_ec_lpc_mec_unlock(9)
NAME cros_ec_lpc_mec_unlock - Release mutex for EMI SYNOPSIS int cros_ec_lpc_mec_unlock (void ); ARGUMENTS void no arguments RETURN Negative error code, or zero for success SEE ALSO Kernel file ./drivers/platform/chrome/cros_ec_lpc_mec.c cros_ec_lpc_mec_lock(9), cros_ec_lpc_mec_emi_write_address(9), cros_ec_...
cros_ec_motion_send_host_cmd(9)
NAME cros_ec_motion_send_host_cmd - send motion sense host command SYNOPSIS int cros_ec_motion_send_host_cmd (struct cros_ec_sensors_core_state *state , u16 opt_length ); ARGUMENTS state pointer to state information for device opt_length optional length to reduce the response size, useful on the data p...
cros_ec_pd_command(9)
NAME cros_ec_pd_command - Send a command to the EC. SYNOPSIS int cros_ec_pd_command (struct cros_ec_extcon_info *info , unsigned int command , unsigned int version , void *outdata , unsigned int outsize , void *indata , unsigned int insize ); ARGUMENTS info pointer to struct cros_ec_extcon_info command...
cros_ec_pd_get_num_ports(9)
NAME cros_ec_pd_get_num_ports - Get number of EC charge ports. SYNOPSIS int cros_ec_pd_get_num_ports (struct cros_ec_extcon_info *info ); ARGUMENTS info pointer to struct cros_ec_extcon_info RETURN number of ports on success, <0 on failure. SEE ALSO Kernel file ./drivers/extcon/extcon-usbc-cros-ec.c cros_ec_...
cros_ec_pkt_xfer_rpmsg(9)
NAME cros_ec_pkt_xfer_rpmsg - Transfer a packet over rpmsg and receive the reply SYNOPSIS int cros_ec_pkt_xfer_rpmsg (struct cros_ec_device *ec_dev , struct cros_ec_command *ec_msg ); ARGUMENTS ec_dev ChromeOS EC device ec_msg Message to transfer RETURN number of bytes of the reply on success or ne...
cros_ec_prepare_tx(9)
NAME cros_ec_prepare_tx - Prepare an outgoing message in the output buffer. SYNOPSIS int cros_ec_prepare_tx (struct cros_ec_device *ec_dev , struct cros_ec_command *msg ); ARGUMENTS ec_dev Device to register. msg Message to write. DESCRIPTION This is used by all ChromeOS EC drivers to prepare th...
cros_ec_query_all(9)
NAME cros_ec_query_all - Query the protocol version supported by the ChromeOS EC. SYNOPSIS int cros_ec_query_all (struct cros_ec_device *ec_dev ); ARGUMENTS ec_dev Device to register. RETURN 0 on success or negative error code. SEE ALSO Kernel file ./drivers/platform/chrome/cros_ec_proto.c cros_ec_pre...
cros_ec_register(9)
NAME cros_ec_register - Register a new ChromeOS EC, using the provided info. SYNOPSIS int cros_ec_register (struct cros_ec_device *ec_dev ); ARGUMENTS ec_dev Device to register. DESCRIPTION Before calling this, allocate a pointer to a new device and then fill in all the fields up to the --private-- marker. RET...
cros_ec_resume(9)
NAME cros_ec_resume - Handle a resume operation for the ChromeOS EC device. SYNOPSIS int cros_ec_resume (struct cros_ec_device *ec_dev ); ARGUMENTS ec_dev Device to resume. DESCRIPTION This can be called by drivers to handle a resume event. RETURN 0 always. SEE ALSO Kernel file ./drivers/platform/chrome/cro...
cros_ec_resume_complete(9)
NAME cros_ec_resume_complete - Handle a resume complete operation for the ChromeOS EC device. SYNOPSIS void cros_ec_resume_complete (struct cros_ec_device *ec_dev ); ARGUMENTS ec_dev Device to resume. DESCRIPTION This can be called by drivers to handle a resume complete stage of resume. SEE ALSO Kernel file ...