Home
last modified time | relevance | path

Searched full:id (Results 1 – 25 of 383) sorted by relevance

12345678910>>...16

/optee_os/core/drivers/clk/sam/
H A Dsama5d2_clk.c24 uint8_t id; member
64 { .n = "ddrck", .id = 2 },
65 { .n = "lcdck", .id = 3 },
66 { .n = "uhpck", .id = 6 },
67 { .n = "udpck", .id = 7 },
68 { .n = "pck0", .id = 8 },
69 { .n = "pck1", .id = 9 },
70 { .n = "pck2", .id = 10 },
71 { .n = "iscck", .id = 18 },
79 .clk = { .n = "macb0_clk", .id = 5 },
[all …]
H A Dsama7g5_clk.c288 * @id: clock id
297 uint8_t id; member
304 .id = 1,
313 .id = 2,
321 .id = 3,
331 .id = 4,
343 uint8_t id; member
345 { .name = "pck0", .parent = "prog0", .id = 8, },
346 { .name = "pck1", .parent = "prog1", .id = 9, },
347 { .name = "pck2", .parent = "prog2", .id = 10, },
[all …]
H A Dat91_system.c21 uint8_t id; member
24 static bool is_pck(int id) in is_pck() argument
26 return (id >= 8) && (id <= 15); in is_pck()
29 static bool clk_system_ready(vaddr_t base, int id) in clk_system_ready() argument
33 return status & BIT(id); in clk_system_ready()
40 io_write32(sys->base + AT91_PMC_SCER, 1 << sys->id); in clk_system_enable()
42 if (!is_pck(sys->id)) in clk_system_enable()
45 while (!clk_system_ready(sys->base, sys->id)) in clk_system_enable()
55 io_write32(sys->base + AT91_PMC_SCDR, 1 << sys->id); in clk_system_disable()
65 struct clk *parent, uint8_t id) in at91_clk_register_system() argument
[all …]
H A Dphy-sama7-utmi-clk.c23 uint8_t id; member
29 uint8_t id = utmi->id; in sama7_utmi_clk_enable() local
31 sam_rstc_usb_por(id, true); in sama7_utmi_clk_enable()
32 io_clrbits32(utmi->base + SAMA7_SFR_UTMI0R(id), in sama7_utmi_clk_enable()
34 sam_rstc_usb_por(id, false); in sama7_utmi_clk_enable()
45 uint8_t id = utmi->id; in sama7_utmi_clk_disable() local
47 sam_rstc_usb_por(id, true); in sama7_utmi_clk_disable()
48 io_setbits32(utmi->base + SAMA7_SFR_UTMI0R(id), in sama7_utmi_clk_disable()
59 uint8_t id) in sama7_utmi_clk_register() argument
75 utmi_clk->id = id; in sama7_utmi_clk_register()
H A Dclk-sam9x60-pll.c20 #define PLL_STATUS_MASK(id) BIT(1 + (id)) argument
21 #define PLL_REG(id) (AT91_CKGR_PLLAR + ((id) * 4)) argument
34 #define PLL_ICPR_SHIFT(id) ((id) * 16) argument
35 #define PLL_ICPR_MASK(id) SHIFT_U64(0xffff, PLL_ICPR_SHIFT(id)) argument
45 uint8_t id; member
75 static bool sam9x60_pll_ready(vaddr_t base, int id) in sam9x60_pll_ready() argument
77 return io_read32(base + AT91_PMC_PLL_ISR0) & BIT(id); in sam9x60_pll_ready()
80 static bool sam9x60_frac_pll_ready(vaddr_t regmap, uint8_t id) in sam9x60_frac_pll_ready() argument
82 return sam9x60_pll_ready(regmap, id); in sam9x60_frac_pll_ready()
104 AT91_PMC_PLL_UPDT_ID_MASK, core->id); in sam9x60_frac_pll_set()
[all …]
H A Dat91_pll.c16 #define PLL_STATUS_MASK(id) BIT(1 + (id)) argument
17 #define PLL_REG(id) (AT91_CKGR_PLLAR + ((id) * 4)) argument
30 #define PLL_ICPR_SHIFT(id) ((id) * 16) argument
31 #define PLL_ICPR_MASK(id) (0xffff << PLL_ICPR_SHIFT(id)) argument
39 uint8_t id; member
47 static bool clk_pll_ready(vaddr_t base, int id) in clk_pll_ready() argument
51 return status & PLL_STATUS_MASK(id); in clk_pll_ready()
59 uint8_t id = pll->id; in clk_pll_enable() local
60 uint32_t mask = PLL_STATUS_MASK(id); in clk_pll_enable()
61 int offset = PLL_REG(id); in clk_pll_enable()
[all …]
H A Dat91_peripheral.c17 #define PERIPHERAL_MASK(id) BIT((id) & PERIPHERAL_ID_MASK) argument
24 uint32_t id; member
60 if (periph->id < PERIPHERAL_ID_MIN) in clk_sam9x5_peripheral_enable()
64 (periph->id & periph->layout->pid_mask)); in clk_sam9x5_peripheral_enable()
79 if (periph->id < PERIPHERAL_ID_MIN) in clk_sam9x5_peripheral_disable()
83 (periph->id & periph->layout->pid_mask)); in clk_sam9x5_peripheral_disable()
96 if (periph->id < PERIPHERAL_ID_MIN) in clk_sam9x5_peripheral_get_rate()
100 periph->id & periph->layout->pid_mask); in clk_sam9x5_peripheral_get_rate()
120 if (periph->id < PERIPHERAL_ID_MIN || !periph->range.max) { in clk_sam9x5_peripheral_set_rate()
152 uint32_t id, const struct clk_range *range) in at91_clk_register_sam9x5_periph() argument
[all …]
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/general/
H A Dder_decode_asn1_identifier.c54 @param id Where to store the decoded Identifier
59 int der_decode_asn1_identifier(const unsigned char *in, unsigned long *inlen, ltc_asn1_list *id) in der_decode_asn1_identifier() argument
65 LTC_ARGCHK(id != NULL); in der_decode_asn1_identifier()
74 id->klass = (in[0] >> 6) & 0x3; in der_decode_asn1_identifier()
75 id->pc = (in[0] >> 5) & 0x1; in der_decode_asn1_identifier()
76 id->tag = in[0] & 0x1f; in der_decode_asn1_identifier()
79 if (id->tag == 0x1f) { in der_decode_asn1_identifier()
80 id->tag = 0; in der_decode_asn1_identifier()
87 id->tag <<= 7; in der_decode_asn1_identifier()
88 id->tag |= in[tag_len] & 0x7f; in der_decode_asn1_identifier()
[all …]
H A Dder_encode_asn1_identifier.c13 @param id The ASN.1 Identifer to encode
18 int der_encode_asn1_identifier(const ltc_asn1_list *id, unsigned char *out, unsigned long *outlen) in der_encode_asn1_identifier() argument
23 LTC_ARGCHK(id != NULL); in der_encode_asn1_identifier()
26 if (id->type != LTC_ASN1_CUSTOM_TYPE) { in der_encode_asn1_identifier()
27 if ((unsigned)id->type >= der_asn1_type_to_identifier_map_sz) { in der_encode_asn1_identifier()
30 if (der_asn1_type_to_identifier_map[id->type] == -1) { in der_encode_asn1_identifier()
34 *out = der_asn1_type_to_identifier_map[id->type]; in der_encode_asn1_identifier()
39 if (id->klass < LTC_ASN1_CL_UNIVERSAL || id->klass > LTC_ASN1_CL_PRIVATE) { in der_encode_asn1_identifier()
42 if (id->pc < LTC_ASN1_PC_PRIMITIVE || id->pc > LTC_ASN1_PC_CONSTRUCTED) { in der_encode_asn1_identifier()
45 if (id->tag > (ULONG_MAX >> (8 + 7))) { in der_encode_asn1_identifier()
[all …]
/optee_os/core/include/drivers/
H A Dscmi-msg.h80 * @channel_id: SCMI channel ID the SMT belongs to
96 * @channel_id: SCMI channel ID the SMT belongs to
112 * @channel_id: SCMI channel ID the SMT belongs to
128 * @channel_id: SCMI channel ID
156 * @scmi_id: SCMI ID of the clock within the channel
173 * @channel_id: SCMI channel ID
178 /* Scmi-msg uses the channel ID as handle. Must channel_id is valid */
189 * a specific channel ID and shall return all platform known capabilities.
196 * @channel_id: SCMI channel ID
211 * @channel_id: SCMI channel ID
[all …]
/optee_os/ta/pkcs11/src/
H A Dpkcs11_helpers.h29 * Return true if and only if attribute ID with companion attribute value
32 * @attribute_id - Target PKCS11 attribute ID
38 * Return type attribute byte size if @attribute_id is the ID of a type
61 /* Convert PKCS11 TA function ID into a TEE crypto operation mode */
78 static inline bool pkcs11_attr_is_boolean(enum pkcs11_attr_id id) in pkcs11_attr_is_boolean() argument
80 return pkcs11_attr2boolprop_shift(id) >= 0; in pkcs11_attr_is_boolean()
84 /* Id-to-string conversions only for trace support */
85 const char *id2str_ta_cmd(uint32_t id);
86 const char *id2str_rc(uint32_t id);
87 const char *id2str_slot_flag(uint32_t id);
[all …]
H A Dpkcs11_helpers.c20 uint32_t id; member
29 { .id = (uint32_t)(_id), .size = (_sz), .string = #_id }
32 { .id = (uint32_t)(_id), .size = (_sz) }
99 /* Specific PKCS11 TA internal attribute ID */
105 uint32_t id; member
112 * Macro PKCS11_ID() can be used to define cells in ID list arrays
113 * or ID/string conversion arrays.
116 #define PKCS11_ID(_id) { .id = _id, .string = #_id }
118 #define PKCS11_ID(_id) { .id = _id }
121 #define ID2STR(id, table, prefix) \ argument
[all …]
H A Dtoken_capabilities.c26 * @id: Mechanism ID
29 * @string: Helper string of the mechanism ID for debug purpose
32 uint32_t id; member
43 .id = _label, \
51 .id = _label, \
158 const char *mechanism_string_id(enum pkcs11_mechanism_id id) in mechanism_string_id() argument
164 if (pkcs11_modes[n].id == id) in mechanism_string_id()
167 return "Unknown ID"; in mechanism_string_id()
172 * Return true if @id is a valid mechanism ID
174 bool mechanism_is_valid(enum pkcs11_mechanism_id id) in mechanism_is_valid() argument
[all …]
/optee_os/core/drivers/
H A Dstm32_tamp.c101 #define _TAMP_CR1_ITAMP(id) BIT((id) - INT_TAMP1 + U(16)) argument
102 #define _TAMP_CR1_ETAMP(id) BIT((id) - EXT_TAMP1) argument
105 #define _TAMP_CR2_ETAMPTRG(id) BIT((id) - EXT_TAMP1 + U(24)) argument
109 #define _TAMP_CR2_ETAMPMSK(id) BIT((id) - EXT_TAMP1 + U(16)) argument
110 #define _TAMP_CR2_ETAMPNOER(id) BIT((id) - EXT_TAMP1) argument
114 #define _TAMP_CR3_ITAMPNOER(id) BIT((id) - INT_TAMP1) argument
133 #define _TAMP_ATCR1_ETAMPAM(id) BIT((id) - EXT_TAMP1) argument
134 #define _TAMP_ATCR1_ATOSEL_MASK(id) \ argument
136 typeof(id) _id = (id); \
141 #define _TAMP_ATCR1_ATOSEL(id, od) \ argument
[all …]
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Doid.h110 #define MBEDTLS_OID_ID_CE MBEDTLS_OID_ISO_CCITT_DS "\x1D" /**< id-ce OBJECT I…
126 #define MBEDTLS_OID_AT MBEDTLS_OID_ISO_CCITT_DS "\x04" /**< id-at OBJECT I…
127 …ID_AT_CN MBEDTLS_OID_AT "\x03" /**< id-at-commonName AttributeType:= {id-at …
128 …_OID_AT_SUR_NAME MBEDTLS_OID_AT "\x04" /**< id-at-surName AttributeType:= {id-at 4…
129 …D_AT_SERIAL_NUMBER MBEDTLS_OID_AT "\x05" /**< id-at-serialNumber AttributeType:= {id-at…
130 …ID_AT_COUNTRY MBEDTLS_OID_AT "\x06" /**< id-at-countryName AttributeType:= {id-at…
131 …OID_AT_LOCALITY MBEDTLS_OID_AT "\x07" /**< id-at-locality AttributeType:= {id-at 7…
132 …S_OID_AT_STATE MBEDTLS_OID_AT "\x08" /**< id-at-state AttributeType:= {id-at 8}…
133 …AT_ORGANIZATION MBEDTLS_OID_AT "\x0A" /**< id-at-organizationName AttributeType:= {id-…
134 …ORG_UNIT MBEDTLS_OID_AT "\x0B" /**< id-at-organizationalUnitName AttributeType:= {
[all …]
/optee_os/core/tee/
H A Dtee_fs_rpc.c45 return thread_rpc_cmd(op->id, op->num_params, op->params); in operation_commit()
48 static TEE_Result operation_open_dfh(uint32_t id, unsigned int cmd, in operation_open_dfh() argument
68 .id = id, .num_params = 3, .params = { in operation_open_dfh()
83 TEE_Result tee_fs_rpc_open_dfh(uint32_t id, in tee_fs_rpc_open_dfh() argument
86 return operation_open_dfh(id, OPTEE_RPC_FS_OPEN, dfh, fd); in tee_fs_rpc_open_dfh()
89 TEE_Result tee_fs_rpc_create_dfh(uint32_t id, in tee_fs_rpc_create_dfh() argument
93 return operation_open_dfh(id, OPTEE_RPC_FS_CREATE, dfh, fd); in tee_fs_rpc_create_dfh()
96 TEE_Result tee_fs_rpc_close(uint32_t id, int fd) in tee_fs_rpc_close() argument
99 .id = id, .num_params = 1, .params = { in tee_fs_rpc_close()
108 uint32_t id, int fd, tee_fs_off_t offset, in tee_fs_rpc_read_init() argument
[all …]
/optee_os/core/include/kernel/
H A Dlockdep.h58 uintptr_t id);
61 uintptr_t id);
63 uintptr_t id);
72 * Acquire lock @id, while already holding the locks in @owned.
76 * same type as lock @id.
83 uintptr_t id) in lockdep_lock_acquire() argument
85 TEE_Result res = __lockdep_lock_acquire(graph, owned, id); in lockdep_lock_acquire()
94 * Non-blocking acquire lock @id, while already holding the locks in @owned.
98 * same type as lock @id.
102 uintptr_t id) in lockdep_lock_tryacquire() argument
[all …]
/optee_os/core/arch/arm/plat-stm32mp2/drivers/
H A Dstm32mp25_syscfg.c16 #define SYSCON_OFFSET(id) ((id) & GENMASK_32(15, 0)) argument
17 #define SYSCON_BANK(id) (((id) & GENMASK_32(31, 16)) >> 16) argument
42 static vaddr_t stm32mp_syscfg_base(uint32_t id) in stm32mp_syscfg_base() argument
44 uint32_t bank = SYSCON_BANK(id); in stm32mp_syscfg_base()
51 void stm32mp_syscfg_write(uint32_t id, uint32_t value, uint32_t bitmsk) in stm32mp_syscfg_write() argument
53 vaddr_t syconf_base = stm32mp_syscfg_base(id); in stm32mp_syscfg_write()
55 io_mask32_stm32shregs(syconf_base + SYSCON_OFFSET(id), value, bitmsk); in stm32mp_syscfg_write()
58 uint32_t stm32mp_syscfg_read(uint32_t id) in stm32mp_syscfg_read() argument
60 return io_read32(stm32mp_syscfg_base(id) + SYSCON_OFFSET(id)); in stm32mp_syscfg_read()
/optee_os/core/drivers/firewall/
H A Dstm32_etzpc.c36 /* ID Registers */
43 /* ID Registers fields */
139 static bool valid_decprot_id(unsigned int id) in valid_decprot_id() argument
141 return id < etzpc_device->ddata.num_per_sec; in valid_decprot_id()
144 static bool __maybe_unused valid_tzma_id(unsigned int id) in valid_tzma_id() argument
146 return id < etzpc_device->ddata.num_tzma; in valid_tzma_id()
216 FMSG("ID : %"PRIu32", config %i", decprot_id, attr); in etzpc_configure_decprot()
373 uint32_t id = 0; in stm32_etzpc_check_access() local
378 id = firewall->args[0] & ETZPC_ID_MASK; in stm32_etzpc_check_access()
382 if (id < etzpc_device->ddata.num_per_sec) { in stm32_etzpc_check_access()
[all …]
/optee_os/core/drivers/rstctrl/
H A Dstm32mp1_rstctrl.c24 static size_t reset_id2reg_offset(unsigned int id) in reset_id2reg_offset() argument
26 size_t offset = (id & RESET_ID_MASK) >> RESET_ID_SHIFT; in reset_id2reg_offset()
42 unsigned int id = to_stm32_rstline(rstctrl)->id; in reset_assert() local
48 switch (id) { in reset_assert()
66 offset = reset_id2reg_offset(id); in reset_assert()
67 bit_mask = BIT(reset_id2reg_bit_pos(id)); in reset_assert()
87 unsigned int id = to_stm32_rstline(rstctrl)->id; in reset_deassert() local
93 switch (id) { in reset_deassert()
110 offset = reset_id2reg_offset(id) + RCC_MP_RSTCLRR_OFFSET; in reset_deassert()
111 bit_mask = BIT(reset_id2reg_bit_pos(id)); in reset_deassert()
[all …]
/optee_os/lib/libmbedtls/mbedtls/include/psa/
H A Dcrypto_struct.h25 * operation structure contains an `unsigned int id` field indicating which
27 * 'id' is 0. The structure contains also a driver context which is the union
31 * Note that when `alg` or `id` is 0, the content of other fields is undefined.
74 /** Unique ID indicating which driver got assigned to do the
77 * ID values are auto-generated in psa_driver_wrappers.h.
78 * ID value zero means the context is not valid or not assigned to
80 unsigned int MBEDTLS_PRIVATE(id);
99 /** Unique ID indicating which driver got assigned to do the
102 * ID values are auto-generated in psa_crypto_driver_wrappers.h
103 * ID value zero means the context is not valid or not assigned to
[all …]
/optee_os/core/include/tee/
H A Dtee_fs_rpc.h20 uint32_t id; member
27 TEE_Result tee_fs_rpc_open_dfh(uint32_t id,
29 TEE_Result tee_fs_rpc_create_dfh(uint32_t id,
32 TEE_Result tee_fs_rpc_close(uint32_t id, int fd);
35 uint32_t id, int fd, tee_fs_off_t offset,
41 uint32_t id, int fd, tee_fs_off_t offset,
46 TEE_Result tee_fs_rpc_truncate(uint32_t id, int fd, size_t len);
47 TEE_Result tee_fs_rpc_remove_dfh(uint32_t id,
/optee_os/core/include/dt-bindings/firewall/
H A Dtzc400.h18 #define DT_TZC_REGION_ACCESS_RD(id) \ argument
19 ((1 << ((id) & DT_REGION_ID_ACCESS_NSAID_ID_MASK)) << \
22 #define DT_TZC_REGION_ACCESS_WR(id) \ argument
23 ((1 << ((id) & DT_REGION_ID_ACCESS_NSAID_ID_MASK)) << \
26 #define DT_TZC_REGION_ACCESS_RDWR(id) \ argument
27 (DT_TZC_REGION_ACCESS_RD(id) | DT_TZC_REGION_ACCESS_WR(id))
/optee_os/core/lib/libtomcrypt/src/misc/crypt/
H A Dcrypt_find_hash_id.c7 Find hash by ID, Tom St Denis
11 Find a hash by ID number
12 @param ID The ID (not same as index) of the hash to find
15 int find_hash_id(unsigned char ID) in find_hash_id() argument
20 if (hash_descriptor[x] && hash_descriptor[x]->ID == ID) { in find_hash_id()
H A Dcrypt_find_cipher_id.c7 Find cipher by ID, Tom St Denis
11 Find a cipher by ID number
12 @param ID The ID (not same as index) of the cipher to find
15 int find_cipher_id(unsigned char ID) in find_cipher_id() argument
20 if (cipher_descriptor[x]->ID == ID) { in find_cipher_id()

12345678910>>...16