Home
last modified time | relevance | path

Searched refs:ordinal (Results 1 – 25 of 34) sorted by relevance

12

/linux/security/keys/trusted-keys/
H A Dtrusted_tpm1.c183 uint32_t ordinal; in TSS_checkhmac1() local
201 ordinal = command; in TSS_checkhmac1()
213 sha1_update(&sha_ctx, (const u8 *)&ordinal, sizeof(ordinal)); in TSS_checkhmac1()
249 uint32_t ordinal; in TSS_checkhmac2() local
268 ordinal = command; in TSS_checkhmac2()
285 sha1_update(&sha_ctx, (const u8 *)&ordinal, sizeof(ordinal)); in TSS_checkhmac2()
434 uint32_t ordinal; in tpm_seal() local
468 ordinal = htonl(TPM_ORD_SEAL); in tpm_seal()
482 sizeof(uint32_t), &ordinal, SHA1_DIGEST_SIZE, in tpm_seal()
490 sizeof(uint32_t), &ordinal, SHA1_DIGEST_SIZE, in tpm_seal()
[all …]
/linux/drivers/char/tpm/
H A Dtpm-buf.c29 u32 ordinal) in __tpm_buf_reset() argument
47 head->ordinal = cpu_to_be32(ordinal); in __tpm_buf_reset()
95 void tpm_buf_reset(struct tpm_buf *buf, u16 tag, u32 ordinal) in tpm_buf_reset() argument
99 __tpm_buf_reset(buf, buf_size, tag, ordinal); in tpm_buf_reset()
H A Dtpm-interface.c45 * @ordinal: TPM command ordinal.
48 * to return the result for a particular ordinal in jiffies.
50 * Return: A maximal duration time for an ordinal in jiffies.
52 unsigned long tpm_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal) in tpm_calc_ordinal_duration() argument
55 return tpm2_calc_ordinal_duration(ordinal); in tpm_calc_ordinal_duration()
57 return tpm1_calc_ordinal_duration(chip, ordinal); in tpm_calc_ordinal_duration()
97 u32 count, ordinal; in tpm_try_transmit() local
107 ordinal = be32_to_cpu(header->ordinal); in tpm_try_transmit()
[all...]
H A Dtpm.h69 unsigned long tpm1_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal);
77 unsigned long tpm_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal);
122 unsigned long tpm2_calc_ordinal_duration(u32 ordinal);
H A Dxen-tpmfront.c141 u32 ordinal; in vtpm_send() local
164 ordinal = be32_to_cpu(((struct tpm_header *)buf)->ordinal); in vtpm_send()
165 duration = tpm_calc_ordinal_duration(chip, ordinal); in vtpm_send()
H A Dtpm2-sessions.c132 __be32 ordinal; member
616 auth->ordinal = head->ordinal; in tpm_buf_fill_hmac_session()
618 cc = be32_to_cpu(head->ordinal); in tpm_buf_fill_hmac_session()
703 /* ordinal is already BE */ in tpm_buf_fill_hmac_session()
704 sha256_update(&sctx, (u8 *)&head->ordinal, sizeof(head->ordinal)); in tpm_buf_fill_hmac_session()
788 cc = be32_to_cpu(auth->ordinal); in tpm_buf_check_hmac_response()
845 /* ordinal is already BE */ in tpm_buf_check_hmac_response()
846 sha256_update(&sctx, (u8 *)&auth->ordinal, sizeo in tpm_buf_check_hmac_response()
[all...]
H A Dtpm2-cmd.c58 unsigned long ordinal; member
81 * @ordinal: TPM command ordinal.
86 unsigned long tpm2_calc_ordinal_duration(u32 ordinal) in tpm2_calc_ordinal_duration() argument
91 if (ordinal == tpm2_ordinal_duration_map[i].ordinal) in tpm2_calc_ordinal_duration()
H A Dtpm_i2c_nuvoton.c361 u32 ordinal; in i2c_nuvoton_send() local
448 ordinal = be32_to_cpu(*((__be32 *) (buf + 6))); in i2c_nuvoton_send()
449 duration = tpm_calc_ordinal_duration(chip, ordinal); in i2c_nuvoton_send()
H A Dtpm1-cmd.c289 unsigned long tpm1_calc_ordinal_duration(struct tpm_chip *chip, u32 ordinal) in tpm1_calc_ordinal_duration() argument
298 if (ordinal < TPM_MAX_ORDINAL) in tpm1_calc_ordinal_duration()
299 duration_idx = tpm1_ordinal_duration[ordinal]; in tpm1_calc_ordinal_duration()
H A Dtpm_vtpm_proxy.c306 switch (be32_to_cpu(hdr->ordinal)) { in vtpm_proxy_is_driver_command()
311 switch (be32_to_cpu(hdr->ordinal)) { in vtpm_proxy_is_driver_command()
H A Dtpm2-space.c263 cc = be32_to_cpu(header->ordinal); in tpm_find_and_validate_cc()
/linux/Documentation/ABI/testing/
H A Dsysfs-firmware-sgi_uv57 unique ordinal value (ex. /sys/firmware/sgi_uv/hubs/hub_5)
96 A port object's name is appended by a unique ordinal value
105 ordinal value of the hub on the other end of the fabric
110 ordinal value of the port on the other end of the fabric cable
H A Dsysfs-firmware-dmi-entries30 derived from an entry type's ordinal position. That is
73 instance The instance ordinal of the entry for the
76 position The ordinal position (zero-based) of the entry
/linux/tools/testing/selftests/tc-testing/creating-plugins/
H A DAddingPlugins.txt31 def post_suite(self, ordinal) # see "SKIPPING" below
57 The post_suite method will receive the ordinal number of the last
64 The pre_case method will receive the ordinal number of the test
/linux/include/linux/
H A Dtpm_buf.h48 void tpm_buf_reset(struct tpm_buf *buf, u16 tag, u32 ordinal);
H A Dtpm_command.h516 __be32 ordinal; member
/linux/drivers/char/tpm/st33zp24/
H A Dst33zp24.c308 u32 status, i, size, ordinal; in st33zp24_send() local
369 ordinal = be32_to_cpu(*((__be32 *) (buf + 6))); in st33zp24_send()
372 tpm_calc_ordinal_duration(chip, ordinal), in st33zp24_send()
/linux/kernel/bpf/
H A Ddiagnostics.c1004 const char *ordinal = diag_arg_ordinal(argno); in bpf_diag_call_type() local
1018 if (ordinal && arg_name) in bpf_diag_call_type()
1019 arg_desc = bpf_diag_fmt(env, "%s argument (%s)", ordinal, arg_name); in bpf_diag_call_type()
1020 else if (ordinal) in bpf_diag_call_type()
1021 arg_desc = bpf_diag_fmt(env, "%s argument", ordinal); in bpf_diag_call_type()
1364 const char *ordinal = diag_arg_ordinal(argno); in diag_format_stack_arg() local
1366 if (ordinal && arg_name) in diag_format_stack_arg()
1368 ordinal, arg_name); in diag_format_stack_arg()
1369 else if (ordinal) in diag_format_stack_arg()
1370 scnprintf(buf, size, "outgoing stack argument %u (%s argument)", slot + 1, ordinal); in diag_format_stack_arg()
/linux/drivers/platform/x86/
H A Duv_sysfs.c54 static int ordinal_to_nasid(int ordinal) in ordinal_to_nasid() argument
56 if (ordinal < num_cnodes && ordinal >= 0) in ordinal_to_nasid()
57 return UV_PNODE_TO_NASID(uv_blade_to_pnode(ordinal)); in ordinal_to_nasid()
/linux/tools/perf/util/
H A Dauxtrace.c497 u64 ordinal) in auxtrace_heapify()
503 if (heap_array[parent].ordinal <= ordinal) in auxtrace_heapify()
509 heap_array[pos].ordinal = ordinal; in auxtrace_heap__add()
513 u64 ordinal) in auxtrace_heap__add()
530 auxtrace_heapify(heap->heap_array, heap->heap_cnt++, queue_nr, ordinal); in auxtrace_heap__free()
566 if (heap_array[left].ordinal < heap_array[right].ordinal) { in auxtrace_heap__pop()
577 heap_array[last].ordinal); in auxtrace_record__info_priv_size()
491 auxtrace_heapify(struct auxtrace_heap_item * heap_array,unsigned int pos,unsigned int queue_nr,u64 ordinal) auxtrace_heapify() argument
507 auxtrace_heap__add(struct auxtrace_heap * heap,unsigned int queue_nr,u64 ordinal) auxtrace_heap__add() argument
[all...]
H A Dauxtrace.h306 u64 ordinal; member
549 u64 ordinal);
H A Dpowerpc-vpadtl.c386 if (vpa->heap.heap_array[0].ordinal >= timestamp) in powerpc_vpadtl_process_queues()
396 ts = vpa->heap.heap_array[0].ordinal + 1; in powerpc_vpadtl_process_queues()
H A Ds390-cpumsf.c858 if (sf->heap.heap_array[0].ordinal >= timestamp) in s390_cpumsf_process_queues()
867 ts = sf->heap.heap_array[0].ordinal + 1; in s390_cpumsf_process_queues()
/linux/Documentation/arch/powerpc/
H A Dassociativity.rst35 (domainID index) that represents the 1 based ordinal in the associativity lists.
/linux/Documentation/ABI/stable/
H A Dsysfs-class-tpm83 ordinal has been executed successfully in the chip. A '0'

12