id
stringlengths
4
63
text
stringlengths
153
8.81M
toprgu_reset_sw_en_unlocked(9)
NAME toprgu_reset_sw_en_unlocked - enable/disable software control for reset bit SYNOPSIS void toprgu_reset_sw_en_unlocked (struct mtk_wdt_dev *data , unsigned long id , bool enable ); ARGUMENTS data Pointer to instance of driver data. id Bit number identifying the reset to be enabled or disab...
torture_peb(9)
NAME torture_peb - test a supposedly bad physical eraseblock. SYNOPSIS int torture_peb (struct ubi_device *ubi , int pnum ); ARGUMENTS ubi UBI device description object pnum the physical eraseblock number to test DESCRIPTION This function returns -EIO if the physical eraseblock did not pass th...
tot_avail_orphs(9)
NAME tot_avail_orphs - calculate total space. SYNOPSIS int tot_avail_orphs (struct ubifs_info *c ); ARGUMENTS c UBIFS file-system description object DESCRIPTION This function returns the number of orphans that can be written in half the total space. That leaves half the space for adding new orphans. SEE A...
touch(1)
NAME touch - change file timestamps SYNOPSIS touch [OPTION]... FILE... DESCRIPTION Update the access and modification times of each FILE to the current time. A FILE argument that does not exist is created empty, unless -c or -h is supplied. A FILE argument string of - is handled specially and causes t...
touch(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 touch — change file access and modification times SYNOPSI...
touch_core_sched(9)
NAME touch_core_sched - Update timestamp used for core-sched task ordering SYNOPSIS void touch_core_sched (struct rq *rq , struct task_struct *p ); ARGUMENTS rq rq to read clock from, must be locked p task to update the timestamp for DESCRIPTION Update p->scx.core_sched_at timestamp. Th...
touch_core_sched_dispatch(9)
NAME touch_core_sched_dispatch - Update core-sched timestamp on dispatch SYNOPSIS void touch_core_sched_dispatch (struct rq *rq , struct task_struct *p ); ARGUMENTS rq rq to read clock from, must be locked p task being dispatched DESCRIPTION If the BPF scheduler implements custom core-sch...
touch_nmi_watchdog(9)
NAME touch_nmi_watchdog - manually reset the hardlockup watchdog timeout. SYNOPSIS void touch_nmi_watchdog (void ); ARGUMENTS void no arguments DESCRIPTION If we support detecting hardlockups, touch_nmi_watchdog may be used to pet the watchdog (reset the timeout) - for code which intentionally disables interr...
touch_overlay_get_touchscreen_abs(9)
NAME touch_overlay_get_touchscreen_abs - get abs size from the touchscreen area. SYNOPSIS void touch_overlay_get_touchscreen_abs (struct list_head *list , u16 *x , u16 *y ); ARGUMENTS list pointer to the list that holds the segments x horizontal abs y vertical abs SEE ALSO ...
touch_overlay_map(9)
NAME touch_overlay_map - map overlay objects from the device tree and set key capabilities if buttons are defined. SYNOPSIS int touch_overlay_map (struct list_head *list , struct input_dev *input ); ARGUMENTS list pointer to the list that will hold the segments input pointer to the already alloca...
touch_overlay_mapped_touchscreen(9)
NAME touch_overlay_mapped_touchscreen - check if a touchscreen area is mapped SYNOPSIS bool touch_overlay_mapped_touchscreen (struct list_head *list ); ARGUMENTS list pointer to the list that holds the segments DESCRIPTION Returns true if a touchscreen area is mapped or false otherwise. SEE ALSO Kernel file ...
touch_overlay_process_contact(9)
NAME touch_overlay_process_contact - process contacts according to the overlay mapping. This function acts as a filter to release the calling driver from the contacts that are either related to overlay buttons or out of the overlay touchscreen area, if defined. SYNOPSIS bool touch_overlay_process_contact (struct li...
touch_overlay_sync_frame(9)
NAME touch_overlay_sync_frame - update the status of the segments and report buttons whose tracked slot is unused. SYNOPSIS void touch_overlay_sync_frame (struct list_head *list , struct input_dev *input ); ARGUMENTS list pointer to the list that holds the segments input pointer to the input devi...
touch_pmd(9)
NAME touch_pmd - Mark page table pmd entry as accessed and dirty (for write) SYNOPSIS bool touch_pmd (struct vm_area_struct *vma , unsigned long addr , pmd_t *pmd , bool write ); ARGUMENTS vma The VMA covering addr addr The virtual address pmd pmd pointer into the page table map...
touch_softlockup_watchdog_sched(9)
NAME touch_softlockup_watchdog_sched - touch watchdog on scheduler stalls SYNOPSIS notrace void touch_softlockup_watchdog_sched (void ); ARGUMENTS void no arguments DESCRIPTION Call when the scheduler may have stalled for legitimate reasons preventing the watchdog task from executing - e.g. the schedul...
touchline.3x(3)
NAME touchwin, touchline, untouchwin, wtouchln, is_linetouched, is_wintouched - control terminal output refresh in a curses window SYNOPSIS #include <ncursesw/curses.h> int touchline(WINDOW *win, int start, int count); int touchwin(WINDOW *win); int wtouchln(WINDOW *win, int y, int n, int change...
touchscreen_parse_properties(9)
NAME touchscreen_parse_properties - parse common touchscreen properties SYNOPSIS void touchscreen_parse_properties (struct input_dev *input , bool multitouch , struct touchscreen_properties *prop ); ARGUMENTS input input device that should be parsed multitouch specifies whether parsed properties should...
touchscreen_report_pos(9)
NAME touchscreen_report_pos - Report touchscreen coordinates SYNOPSIS void touchscreen_report_pos (struct input_dev *input , const struct touchscreen_properties *prop , unsigned int x , unsigned int y , bool multitouch ); ARGUMENTS input input_device to report coordinates for prop pointer to a st...
touchscreen_set_mt_pos(9)
NAME touchscreen_set_mt_pos - Set input_mt_pos coordinates SYNOPSIS void touchscreen_set_mt_pos (struct input_mt_pos *pos , const struct touchscreen_properties *prop , unsigned int x , unsigned int y ); ARGUMENTS pos input_mt_pos to set coordinates of prop pointer to a struct touchscreen_proper...
touchwin.3x(3)
NAME touchwin, touchline, untouchwin, wtouchln, is_linetouched, is_wintouched - control terminal output refresh in a curses window SYNOPSIS #include <ncursesw/curses.h> int touchline(WINDOW *win, int start, int count); int touchwin(WINDOW *win); int wtouchln(WINDOW *win, int y, int n, int change...
toupper(3)
NAME toupper, tolower, toupper_l, tolower_l - convert uppercase or lowercase LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <ctype.h> int toupper(int c); int tolower(int c); int toupper_l(int c, locale_t locale); int tolower_l(int c, locale_t locale); Feature Test Macro Req...
toupper(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 toupper, toupper_l — transliterate lowercase characters to uppe...
toupper_l(3)
NAME toupper, tolower, toupper_l, tolower_l - convert uppercase or lowercase LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <ctype.h> int toupper(int c); int tolower(int c); int toupper_l(int c, locale_t locale); int tolower_l(int c, locale_t locale); Feature Test Macro Req...
towctrans(3)
NAME towctrans - wide-character transliteration LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <wctype.h> wint_t towctrans(wint_t wc, wctrans_t desc); DESCRIPTION If wc is a wide character, then the towctrans() function translates it according to the transliteration descriptor desc. If wc is WEOF,...
towctrans(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 towctrans, towctrans_l — wide-character transliteration SYNOPS...
towlower(3)
NAME towlower, towlower_l - convert a wide character to lowercase LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <wctype.h> wint_t towlower(wint_t wc); wint_t towlower_l(wint_t wc, locale_t locale); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): towlower_l...
towlower(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 towlower, towlower_l — transliterate uppercase wide-character c...
towlower_l(3)
NAME towlower, towlower_l - convert a wide character to lowercase LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <wctype.h> wint_t towlower(wint_t wc); wint_t towlower_l(wint_t wc, locale_t locale); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): towlower_l...
towupper(3)
NAME towupper, towupper_l - convert a wide character to uppercase LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <wctype.h> wint_t towupper(wint_t wc); wint_t towupper_l(wint_t wc, locale_t locale); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): towupper_l...
towupper(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 towupper, towupper_l — transliterate lowercase wide-character c...
towupper_l(3)
NAME towupper, towupper_l - convert a wide character to uppercase LIBRARY Standard C library (libc, -lc) SYNOPSIS #include <wctype.h> wint_t towupper(wint_t wc); wint_t towupper_l(wint_t wc, locale_t locale); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): towupper_l...
tp_set_timers(9)
NAME tp_set_timers - set TP timing parameters SYNOPSIS void tp_set_timers (struct adapter *adap , unsigned int core_clk ); ARGUMENTS adap the adapter to set core_clk the core clock frequency in Hz DESCRIPTION Set TP's timing parameters, such as the various timer resolutions and the TCP timer values...
tpacpi_check_quirks(9)
NAME tpacpi_check_quirks - search BIOS/EC version on a list SYNOPSIS unsigned long tpacpi_check_quirks (const struct tpacpi_quirk *qlist , unsigned int qlist_size ); ARGUMENTS qlist array of struct tpacpi_quirk qlist_size number of elements in qlist DESCRIPTION Iterates over a quirks list until one is...
tparm.3x(3)
NAME del_curterm, mvcur, putp, restartterm, set_curterm, setupterm, tigetflag, tigetnum, tigetstr, tiparm, tiparm_s, tiscan_s, tparm, tputs, vid_attr, vid_puts, vidattr, vidputs - curses interfaces to terminfo database SYNOPSIS #include <ncursesw/curses.h> #include <term.h> TERMINAL *cur_term; const ch...
tparm_sp.3x(3)
NAME curs_sp_funcs - curses screen-pointer extension SYNOPSIS #include <ncursesw/curses.h> int alloc_pair_sp(SCREEN* sp, int fg, int bg); int assume_default_colors_sp(SCREEN* sp, int fg, int bg); int baudrate_sp(SCREEN* sp); int beep_sp(SCREEN* sp); bool can_change_color_sp(SCREEN* ...
tpg110_get_modes(9)
NAME tpg110_get_modes - return the appropriate mode SYNOPSIS int tpg110_get_modes (struct drm_panel *panel , struct drm_connector *connector ); ARGUMENTS panel the panel to get the mode for connector reference to the central DRM connector control structure DESCRIPTION This currently does not present ...
tpic2pdftex(1)
NAME tpic2pdftex - convert tpic \specials for use by pdftex SYNOPSIS pic -t somefile.pic | tpic2pdftex > somefile.tex Process somefile.tex by pdftex/pdflatex. DESCRIPTION Experimental awk script for conversion of tpic \specials as produced by (groff-)pic into pdfTeX \pdfliteral sections for further processing...
tpid_to_vsi_outer_vlan_type(9)
NAME tpid_to_vsi_outer_vlan_type - convert from TPID to VSI context based tag_type SYNOPSIS int tpid_to_vsi_outer_vlan_type (u16 tpid , u8 *tag_type ); ARGUMENTS tpid tpid used to translate into VSI context based tag_type tag_type output variable to hold the VSI context based tag type SEE ALSO Kern...
tpm1_auto_startup(9)
NAME tpm1_auto_startup - Perform the standard automatic TPM initialization sequence SYNOPSIS int tpm1_auto_startup (struct tpm_chip *chip ); ARGUMENTS chip TPM chip to use DESCRIPTION Returns 0 on success, < 0 in case of fatal error. SEE ALSO Kernel file ./drivers/char/tpm/tpm1-cmd.c tpm1_calc_ordinal_durati...
tpm1_calc_ordinal_duration(9)
NAME tpm1_calc_ordinal_duration - calculate the maximum command duration SYNOPSIS unsigned long tpm1_calc_ordinal_duration (struct tpm_chip *chip , u32 ordinal ); ARGUMENTS chip TPM chip to use. ordinal TPM command ordinal. DESCRIPTION The function returns the maximum amount of time the chip could...
tpm1_continue_selftest(9)
NAME tpm1_continue_selftest - run TPM's selftest SYNOPSIS int tpm1_continue_selftest (struct tpm_chip *chip ); ARGUMENTS chip TPM chip to use DESCRIPTION Returns 0 on success, < 0 in case of fatal error or a value > 0 representing a TPM error code. SEE ALSO Kernel file ./drivers/char/tpm/tpm1-cmd.c tpm1_calc...
tpm1_do_selftest(9)
NAME tpm1_do_selftest - have the TPM continue its selftest and wait until it can receive further commands SYNOPSIS int tpm1_do_selftest (struct tpm_chip *chip ); ARGUMENTS chip TPM chip to use DESCRIPTION Returns 0 on success, < 0 in case of fatal error or a value > 0 representing a TPM error code. SEE ALSO ...
tpm1_get_pcr_allocation(9)
NAME tpm1_get_pcr_allocation - initialize the allocated bank SYNOPSIS int tpm1_get_pcr_allocation (struct tpm_chip *chip ); ARGUMENTS chip TPM chip to use. DESCRIPTION The function initializes the SHA1 allocated bank to extend PCR RETURN * 0 on success, * < 0 on error. SEE ALSO Kernel file ./drivers/char/tp...
tpm1_get_random(9)
NAME tpm1_get_random - get random bytes from the TPM's RNG SYNOPSIS int tpm1_get_random (struct tpm_chip *chip , u8 *dest , size_t max ); ARGUMENTS chip a struct tpm_chip instance dest destination buffer for the random bytes max the maximum number of bytes to write to dest RETUR...
tpm1_pm_suspend(9)
NAME tpm1_pm_suspend - pm suspend handler SYNOPSIS int tpm1_pm_suspend (struct tpm_chip *chip , u32 tpm_suspend_pcr ); ARGUMENTS chip TPM chip to use. tpm_suspend_pcr flush pcr for buggy TPM chips. DESCRIPTION The functions saves the TPM state to be restored on resume. RETURN * 0 o...
tpm1_startup(9)
NAME tpm1_startup - turn on the TPM SYNOPSIS int tpm1_startup (struct tpm_chip *chip ); ARGUMENTS chip TPM chip to use DESCRIPTION Normally the firmware should start the TPM. This function is provided as a workaround if this does not happen. A legal case for this could be for example when a TPM emulator is us...
tpm2_auto_startup(9)
NAME tpm2_auto_startup - Perform the standard automatic TPM initialization sequence SYNOPSIS int tpm2_auto_startup (struct tpm_chip *chip ); ARGUMENTS chip TPM chip to use DESCRIPTION Returns 0 on success, < 0 in case of fatal error. SEE ALSO Kernel file ./drivers/char/tpm/tpm2-cmd.c tpm2_calc_ordinal_dur...
tpm2_buf_append_auth(9)
NAME tpm2_buf_append_auth - append TPMS_AUTH_COMMAND to the buffer. SYNOPSIS void tpm2_buf_append_auth (struct tpm_buf *buf , u32 session_handle , const u8 *nonce , u16 nonce_len , u8 attributes , const u8 *hmac , u16 hmac_len ); ARGUMENTS buf an allocated tpm_buf instance session_handle ...
tpm2_calc_ordinal_duration(9)
NAME tpm2_calc_ordinal_duration - Calculate the maximum command duration SYNOPSIS unsigned long tpm2_calc_ordinal_duration (u32 ordinal ); ARGUMENTS ordinal TPM command ordinal. DESCRIPTION Returns the maximum amount of time the chip is expected by kernel to take in jiffies. SEE ALSO Kernel file ./drivers/cha...
tpm2_create_primary(9)
NAME tpm2_create_primary - create a primary key using a fixed P-256 template SYNOPSIS int tpm2_create_primary (struct tpm_chip *chip , u32 hierarchy , u32 *handle , u8 *name ); ARGUMENTS chip the TPM chip to create under hierarchy The hierarchy handle to create under handle The returned ...
tpm2_do_selftest(9)
NAME tpm2_do_selftest - ensure that all self tests have passed SYNOPSIS int tpm2_do_selftest (struct tpm_chip *chip ); ARGUMENTS chip TPM chip to use RETURN Same as with tpm_transmit_cmd. DESCRIPTION The TPM can either run all self tests synchronously and then return RC_SUCCESS once all tests were successfu...
tpm2_end_auth_session(9)
NAME tpm2_end_auth_session - kill the allocated auth session SYNOPSIS void tpm2_end_auth_session (struct tpm_chip *chip ); ARGUMENTS chip the TPM chip structure DESCRIPTION ends the session started by tpm2_start_auth_session and frees all the resources. Under normal conditions, tpm_buf_check_hmac_response w...
tpm2_flush_context(9)
NAME tpm2_flush_context - execute a TPM2_FlushContext command SYNOPSIS void tpm2_flush_context (struct tpm_chip *chip , u32 handle ); ARGUMENTS chip TPM chip to use handle context handle SEE ALSO Kernel file ./drivers/char/tpm/tpm2-cmd.c tpm2_calc_ordinal_duration(9), tpm2_pcr_read(9), tpm2_pcr_e...
tpm2_get_random(9)
NAME tpm2_get_random - get random bytes from the TPM RNG SYNOPSIS int tpm2_get_random (struct tpm_chip *chip , u8 *dest , size_t max ); ARGUMENTS chip a tpm_chip instance dest destination buffer max the max number of random bytes to pull RETURN size of the buffer on success, -er...
tpm2_get_tpm_pt(9)
NAME tpm2_get_tpm_pt - get value of a TPM_CAP_TPM_PROPERTIES type property SYNOPSIS ssize_t tpm2_get_tpm_pt (struct tpm_chip *chip , u32 property_id , u32 *value , const char *desc ); ARGUMENTS chip a tpm_chip instance property_id property ID. value output variable. desc pa...
tpm2_load_cmd(9)
NAME tpm2_load_cmd - execute a TPM2_Load command SYNOPSIS int tpm2_load_cmd (struct tpm_chip *chip , struct trusted_key_payload *payload , struct trusted_key_options *options , u32 *blob_handle ); ARGUMENTS chip TPM chip to use payload the key data in clear and encrypted form options au...
tpm2_parse_create_primary(9)
NAME tpm2_parse_create_primary - parse the data returned from TPM_CC_CREATE_PRIMARY SYNOPSIS int tpm2_parse_create_primary (struct tpm_chip *chip , struct tpm_buf *buf , u32 *handle , u32 hierarchy , u8 *name ); ARGUMENTS chip The TPM the primary was created under buf The response buffer from t...
tpm2_pcr_extend(9)
NAME tpm2_pcr_extend - extend a PCR value SYNOPSIS int tpm2_pcr_extend (struct tpm_chip *chip , u32 pcr_idx , struct tpm_digest *digests ); ARGUMENTS chip TPM chip to use. pcr_idx index of the PCR. digests list of pcr banks and corresponding digest values to extend. RETURN Same as with...
tpm2_pcr_read(9)
NAME tpm2_pcr_read - read a PCR value SYNOPSIS int tpm2_pcr_read (struct tpm_chip *chip , u32 pcr_idx , struct tpm_digest *digest , u16 *digest_size_ptr ); ARGUMENTS chip TPM chip to use. pcr_idx index of the PCR to read. digest PCR bank and buffer current PCR value is written to. ...
tpm2_probe(9)
NAME tpm2_probe - probe for the TPM 2.0 protocol SYNOPSIS int tpm2_probe (struct tpm_chip *chip ); ARGUMENTS chip a tpm_chip instance DESCRIPTION Send an idempotent TPM 2.0 command and see whether there is TPM2 chip in the other end based on the response tag. The flag TPM_CHIP_FLAG_TPM2 is set by this functio...
tpm2_seal_trusted(9)
NAME tpm2_seal_trusted - seal the payload of a trusted key SYNOPSIS int tpm2_seal_trusted (struct tpm_chip *chip , struct trusted_key_payload *payload , struct trusted_key_options *options ); ARGUMENTS chip TPM chip to use payload the key data in clear and encrypted form options authent...
tpm2_sessions_init(9)
NAME tpm2_sessions_init - start of day initialization for the sessions code SYNOPSIS int tpm2_sessions_init (struct tpm_chip *chip ); ARGUMENTS chip TPM chip DESCRIPTION Derive and context save the null primary and allocate memory in the struct tpm_chip for the authorizations. RETURN * 0 - OK * -err...
tpm2_shutdown(9)
NAME tpm2_shutdown - send a TPM shutdown command SYNOPSIS void tpm2_shutdown (struct tpm_chip *chip , u16 shutdown_type ); ARGUMENTS chip a tpm_chip instance shutdown_type TPM_SU_CLEAR or TPM_SU_STATE. DESCRIPTION Sends a TPM shutdown command. The shutdown command is used in call si...
tpm2_start_auth_session(9)
NAME tpm2_start_auth_session - Create an a HMAC authentication session SYNOPSIS int tpm2_start_auth_session (struct tpm_chip *chip ); ARGUMENTS chip A TPM chip DESCRIPTION Loads the ephemeral key (null seed), and starts an HMAC authenticated session. The null seed is flushed before the return. Returns zero o...
tpm2_startup(9)
NAME tpm2_startup - turn on the TPM SYNOPSIS int tpm2_startup (struct tpm_chip *chip ); ARGUMENTS chip TPM chip to use DESCRIPTION Normally the firmware should start the TPM. This function is provided as a workaround if this does not happen. A legal case for this could be for example when a TPM emulator is us...
tpm2_unseal_cmd(9)
NAME tpm2_unseal_cmd - execute a TPM2_Unseal command SYNOPSIS int tpm2_unseal_cmd (struct tpm_chip *chip , struct trusted_key_payload *payload , struct trusted_key_options *options , u32 blob_handle ); ARGUMENTS chip TPM chip to use payload the key data in clear and encrypted form options ...
tpm2_unseal_trusted(9)
NAME tpm2_unseal_trusted - unseal the payload of a trusted key SYNOPSIS int tpm2_unseal_trusted (struct tpm_chip *chip , struct trusted_key_payload *payload , struct trusted_key_options *options ); ARGUMENTS chip TPM chip to use payload the key data in clear and encrypted form options a...
tpm_buf_append(9)
NAME tpm_buf_append - Append data to an initialized buffer SYNOPSIS void tpm_buf_append (struct tpm_buf *buf , const u8 *new_data , u16 new_length ); ARGUMENTS buf A tpm_buf new_data A data blob new_length Size of the appended data SEE ALSO Kernel file ./drivers/char/tpm/tpm-buf.c t...
tpm_buf_append_handle(9)
NAME tpm_buf_append_handle - Add a handle SYNOPSIS void tpm_buf_append_handle (struct tpm_chip *chip , struct tpm_buf *buf , u32 handle ); ARGUMENTS chip tpm_chip instance buf tpm_buf instance handle a TPM object handle DESCRIPTION Add a handle to the buffer, and increase the coun...
tpm_buf_append_hmac_session(9)
NAME tpm_buf_append_hmac_session - Append a TPM session element SYNOPSIS void tpm_buf_append_hmac_session (struct tpm_chip *chip , struct tpm_buf *buf , u8 attributes , u8 *passphrase , int passphrase_len ); ARGUMENTS chip the TPM chip structure buf The buffer to be appended attributes ...
tpm_buf_append_name(9)
NAME tpm_buf_append_name - add a handle area to the buffer SYNOPSIS int tpm_buf_append_name (struct tpm_chip *chip , struct tpm_buf *buf , u32 handle , u8 *name ); ARGUMENTS chip the TPM chip structure buf The buffer to be appended handle The handle to be appended name ...
tpm_buf_check_hmac_response(9)
NAME tpm_buf_check_hmac_response - check the TPM return HMAC for correctness SYNOPSIS int tpm_buf_check_hmac_response (struct tpm_chip *chip , struct tpm_buf *buf , int rc ); ARGUMENTS chip the TPM chip structure buf the original command buffer (which now contains the response) rc ...
tpm_buf_fill_hmac_session(9)
NAME tpm_buf_fill_hmac_session - finalize the session HMAC SYNOPSIS int tpm_buf_fill_hmac_session (struct tpm_chip *chip , struct tpm_buf *buf ); ARGUMENTS chip the TPM chip structure buf The buffer to be appended DESCRIPTION This command must not be called until all of the parameters hav...
tpm_buf_init(9)
NAME tpm_buf_init - Allocate and initialize a TPM command SYNOPSIS int tpm_buf_init (struct tpm_buf *buf , u16 tag , u32 ordinal ); ARGUMENTS buf A tpm_buf tag TPM_TAG_RQU_COMMAND, TPM2_ST_NO_SESSIONS or TPM2_ST_SESSIONS ordinal A command ordinal RETURN 0 or -ENOMEM SEE ALSO Kern...
tpm_buf_init_sized(9)
NAME tpm_buf_init_sized - Allocate and initialize a sized (TPM2B) buffer SYNOPSIS int tpm_buf_init_sized (struct tpm_buf *buf ); ARGUMENTS buf A tpm_buf RETURN 0 or -ENOMEM SEE ALSO Kernel file ./drivers/char/tpm/tpm-buf.c tpm_buf_init(9), tpm_buf_reset(9), tpm_buf_reset_sized(9), tpm_buf_length(9), tpm_buf...
tpm_buf_length(9)
NAME tpm_buf_length - Return the number of bytes consumed by the data SYNOPSIS u32 tpm_buf_length (struct tpm_buf *buf ); ARGUMENTS buf A tpm_buf RETURN The number of bytes consumed by the buffer SEE ALSO Kernel file ./drivers/char/tpm/tpm-buf.c tpm_buf_init(9), tpm_buf_reset(9), tpm_buf_init_sized(9),...
tpm_buf_read(9)
NAME tpm_buf_read - Read from a TPM buffer SYNOPSIS void tpm_buf_read (struct tpm_buf *buf , off_t *offset , size_t count , void *output ); ARGUMENTS buf tpm_buf instance offset offset within the buffer count the number of bytes to read output the output buffer SEE ALS...
tpm_buf_read_u16(9)
NAME tpm_buf_read_u16 - Read 16-bit word from a TPM buffer SYNOPSIS u16 tpm_buf_read_u16 (struct tpm_buf *buf , off_t *offset ); ARGUMENTS buf tpm_buf instance offset offset within the buffer RETURN next 16-bit word SEE ALSO Kernel file ./drivers/char/tpm/tpm-buf.c tpm_buf_init(9), tpm_...
tpm_buf_read_u32(9)
NAME tpm_buf_read_u32 - Read 32-bit word from a TPM buffer SYNOPSIS u32 tpm_buf_read_u32 (struct tpm_buf *buf , off_t *offset ); ARGUMENTS buf tpm_buf instance offset offset within the buffer RETURN next 32-bit word SEE ALSO Kernel file ./drivers/char/tpm/tpm-buf.c tpm_buf_init(9), tpm_...
tpm_buf_read_u8(9)
NAME tpm_buf_read_u8 - Read 8-bit word from a TPM buffer SYNOPSIS u8 tpm_buf_read_u8 (struct tpm_buf *buf , off_t *offset ); ARGUMENTS buf tpm_buf instance offset offset within the buffer RETURN next 8-bit word SEE ALSO Kernel file ./drivers/char/tpm/tpm-buf.c tpm_buf_init(9), tpm_buf_r...
tpm_buf_reset(9)
NAME tpm_buf_reset - Initialize a TPM command SYNOPSIS void tpm_buf_reset (struct tpm_buf *buf , u16 tag , u32 ordinal ); ARGUMENTS buf A tpm_buf tag TPM_TAG_RQU_COMMAND, TPM2_ST_NO_SESSIONS or TPM2_ST_SESSIONS ordinal A command ordinal SEE ALSO Kernel file ./drivers/char/tpm/...
tpm_buf_reset_sized(9)
NAME tpm_buf_reset_sized - Initialize a sized buffer SYNOPSIS void tpm_buf_reset_sized (struct tpm_buf *buf ); ARGUMENTS buf A tpm_buf SEE ALSO Kernel file ./drivers/char/tpm/tpm-buf.c tpm_buf_init(9), tpm_buf_reset(9), tpm_buf_init_sized(9), tpm_buf_length(9), tpm_buf_append(9), tpm_buf_append_handle(9), t...
tpm_calc_ordinal_duration(9)
NAME tpm_calc_ordinal_duration - calculate the maximum command duration SYNOPSIS unsigned long tpm_calc_ordinal_duration (struct tpm_chip *chip , u32 ordinal ); ARGUMENTS chip TPM chip to use. ordinal TPM command ordinal. DESCRIPTION The function returns the maximum amount of time the chip could t...
tpm_chip_alloc(9)
NAME tpm_chip_alloc - allocate a new struct tpm_chip instance SYNOPSIS struct tpm_chip * tpm_chip_alloc (struct device *pdev , const struct tpm_class_ops *ops ); ARGUMENTS pdev device to which the chip is associated At this point pdev mst be initialized, but does not have to be registered ops s...
tpm_chip_start(9)
NAME tpm_chip_start - power on the TPM SYNOPSIS int tpm_chip_start (struct tpm_chip *chip ); ARGUMENTS chip a TPM chip to use RETURN * The response length - OK * -errno - A system error SEE ALSO Kernel file ./drivers/char/tpm/tpm-chip.c tpm_chip_stop(9), tpm_try_get_ops(9), tpm_put...
tpm_chip_stop(9)
NAME tpm_chip_stop - power off the TPM SYNOPSIS void tpm_chip_stop (struct tpm_chip *chip ); ARGUMENTS chip a TPM chip to use RETURN * The response length - OK * -errno - A system error SEE ALSO Kernel file ./drivers/char/tpm/tpm-chip.c tpm_chip_start(9), tpm_try_get_ops(9), tpm_pu...
tpm_class_shutdown(9)
NAME tpm_class_shutdown - prepare the TPM device for loss of power. SYNOPSIS int tpm_class_shutdown (struct device *dev ); ARGUMENTS dev device to which the chip is associated. DESCRIPTION Issues a TPM2_Shutdown command prior to loss of power, as required by the TPM 2.0 spec. Then, calls bus- and device- spe...
tpm_cr50_check_locality(9)
NAME tpm_cr50_check_locality - Verify if required TPM locality is active. SYNOPSIS int tpm_cr50_check_locality (struct tpm_chip *chip , int loc ); ARGUMENTS chip A TPM chip. loc Locality to be verified RETURN - loc: Success. - -errno: A POSIX error code. SEE ALSO Kernel file ./d...
tpm_cr50_i2c_disable_tpm_irq(9)
NAME tpm_cr50_i2c_disable_tpm_irq - Disable TPM irq. SYNOPSIS void tpm_cr50_i2c_disable_tpm_irq (struct tpm_chip *chip ); ARGUMENTS chip A TPM chip. SEE ALSO Kernel file ./drivers/char/tpm/tpm_tis_i2c_cr50.c struct tpm_i2c_cr50_priv_data(9), tpm_cr50_i2c_int_handler(9), tpm_cr50_i2c_wait_tpm_ready(9)...
tpm_cr50_i2c_enable_tpm_irq(9)
NAME tpm_cr50_i2c_enable_tpm_irq - Enable TPM irq. SYNOPSIS void tpm_cr50_i2c_enable_tpm_irq (struct tpm_chip *chip ); ARGUMENTS chip A TPM chip. SEE ALSO Kernel file ./drivers/char/tpm/tpm_tis_i2c_cr50.c struct tpm_i2c_cr50_priv_data(9), tpm_cr50_i2c_int_handler(9), tpm_cr50_i2c_wait_tpm_ready(9), t...
tpm_cr50_i2c_get_burst_and_status(9)
NAME tpm_cr50_i2c_get_burst_and_status - Get burst count and status. SYNOPSIS int tpm_cr50_i2c_get_burst_and_status (struct tpm_chip *chip , u8 mask , size_t *burst , u32 *status ); ARGUMENTS chip A TPM chip. mask Status mask. burst Return value for burst. status Retur...
tpm_cr50_i2c_int_handler(9)
NAME tpm_cr50_i2c_int_handler - cr50 interrupt handler. SYNOPSIS irqreturn_t tpm_cr50_i2c_int_handler (int dummy , void *tpm_info ); ARGUMENTS dummy Unused parameter. tpm_info TPM chip information. DESCRIPTION The cr50 interrupt handler signals waiting threads that the interrupt has been asserted. I...
tpm_cr50_i2c_probe(9)
NAME tpm_cr50_i2c_probe - Driver probe function. SYNOPSIS int tpm_cr50_i2c_probe (struct i2c_client *client ); ARGUMENTS client I2C client information. RETURN - 0: Success. - -errno: A POSIX error code. SEE ALSO Kernel file ./drivers/char/tpm/tpm_tis_i2c_cr50.c struct tpm_i2c_cr50_priv_data...
tpm_cr50_i2c_read(9)
NAME tpm_cr50_i2c_read - Read from TPM register. SYNOPSIS int tpm_cr50_i2c_read (struct tpm_chip *chip , u8 addr , u8 *buffer , size_t len ); ARGUMENTS chip A TPM chip. addr Register address to read from. buffer Read destination, provided by caller. len Number of byt...
tpm_cr50_i2c_remove(9)
NAME tpm_cr50_i2c_remove - Driver remove function. SYNOPSIS void tpm_cr50_i2c_remove (struct i2c_client *client ); ARGUMENTS client I2C client information. RETURN - 0: Success. - -errno: A POSIX error code. SEE ALSO Kernel file ./drivers/char/tpm/tpm_tis_i2c_cr50.c struct tpm_i2c_cr50_priv_...
tpm_cr50_i2c_req_canceled(9)
NAME tpm_cr50_i2c_req_canceled - Callback to notify a request cancel. SYNOPSIS bool tpm_cr50_i2c_req_canceled (struct tpm_chip *chip , u8 status ); ARGUMENTS chip A TPM chip. status Status given by the cancel callback. RETURN True if command is ready, False otherwise. SEE ALSO Kernel file ./...
tpm_cr50_i2c_tis_recv(9)
NAME tpm_cr50_i2c_tis_recv - TPM reception callback. SYNOPSIS int tpm_cr50_i2c_tis_recv (struct tpm_chip *chip , u8 *buf , size_t buf_len ); ARGUMENTS chip A TPM chip. buf Reception buffer. buf_len Buffer length to read. RETURN - >= 0: Number of read bytes. - -errno: A POS...
tpm_cr50_i2c_tis_send(9)
NAME tpm_cr50_i2c_tis_send - TPM transmission callback. SYNOPSIS int tpm_cr50_i2c_tis_send (struct tpm_chip *chip , u8 *buf , size_t bufsiz , size_t len ); ARGUMENTS chip A TPM chip. buf Buffer to send. bufsiz Buffer size. len Command length. RETURN - 0: Su...
tpm_cr50_i2c_tis_set_ready(9)
NAME tpm_cr50_i2c_tis_set_ready - Set status register to ready. SYNOPSIS void tpm_cr50_i2c_tis_set_ready (struct tpm_chip *chip ); ARGUMENTS chip A TPM chip. DESCRIPTION cr50 requires all 4 bytes of status register to be written. SEE ALSO Kernel file ./drivers/char/tpm/tpm_tis_i2c_cr50.c struct tpm_i...
tpm_cr50_i2c_tis_status(9)
NAME tpm_cr50_i2c_tis_status - Read cr50 tis status. SYNOPSIS u8 tpm_cr50_i2c_tis_status (struct tpm_chip *chip ); ARGUMENTS chip A TPM chip. DESCRIPTION cr50 requires all 4 bytes of status register to be read. RETURN TPM status byte. SEE ALSO Kernel file ./drivers/char/tpm/tpm_tis_i2c_cr50.c struct tpm_i2c...