Home
last modified time | relevance | path

Searched refs:slot (Results 1 – 25 of 70) sorted by relevance

123

/hardware/qcom/gps/msm8909/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
Dloc_api_sync_call.c86 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_init() local
88 pthread_mutex_init(&slot->lock, NULL); in loc_api_sync_call_init()
89 pthread_cond_init(&slot->loc_cb_arrived_cond, NULL); in loc_api_sync_call_init()
91 slot->not_available = 0; in loc_api_sync_call_init()
92 slot->in_use = 0; in loc_api_sync_call_init()
93 slot->loc_handle = -1; in loc_api_sync_call_init()
94 slot->loc_cb_wait_event_mask = 0; /* event to wait */ in loc_api_sync_call_init()
95 slot->loc_cb_received_event_mask = 0; /* received event */ in loc_api_sync_call_init()
131 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_destroy() local
133 pthread_mutex_lock(&slot->lock); in loc_api_sync_call_destroy()
[all …]
/hardware/qcom/gps/msm8994/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
Dloc_api_sync_call.c86 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_init() local
88 pthread_mutex_init(&slot->lock, NULL); in loc_api_sync_call_init()
89 pthread_cond_init(&slot->loc_cb_arrived_cond, NULL); in loc_api_sync_call_init()
91 slot->not_available = 0; in loc_api_sync_call_init()
92 slot->in_use = 0; in loc_api_sync_call_init()
93 slot->loc_handle = -1; in loc_api_sync_call_init()
94 slot->loc_cb_wait_event_mask = 0; /* event to wait */ in loc_api_sync_call_init()
95 slot->loc_cb_received_event_mask = 0; /* received event */ in loc_api_sync_call_init()
131 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_destroy() local
133 pthread_mutex_lock(&slot->lock); in loc_api_sync_call_destroy()
[all …]
/hardware/qcom/gps/msm8996/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
Dloc_api_sync_call.c86 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_init() local
88 pthread_mutex_init(&slot->lock, NULL); in loc_api_sync_call_init()
89 pthread_cond_init(&slot->loc_cb_arrived_cond, NULL); in loc_api_sync_call_init()
91 slot->not_available = 0; in loc_api_sync_call_init()
92 slot->in_use = 0; in loc_api_sync_call_init()
93 slot->loc_handle = -1; in loc_api_sync_call_init()
94 slot->loc_cb_wait_event_mask = 0; /* event to wait */ in loc_api_sync_call_init()
95 slot->loc_cb_received_event_mask = 0; /* received event */ in loc_api_sync_call_init()
131 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_destroy() local
133 pthread_mutex_lock(&slot->lock); in loc_api_sync_call_destroy()
[all …]
/hardware/qcom/sdm845/gps/msm8084/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
Dloc_api_sync_call.c86 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_init() local
88 pthread_mutex_init(&slot->lock, NULL); in loc_api_sync_call_init()
89 pthread_cond_init(&slot->loc_cb_arrived_cond, NULL); in loc_api_sync_call_init()
91 slot->not_available = 0; in loc_api_sync_call_init()
92 slot->in_use = 0; in loc_api_sync_call_init()
93 slot->loc_handle = -1; in loc_api_sync_call_init()
94 slot->loc_cb_wait_event_mask = 0; /* event to wait */ in loc_api_sync_call_init()
95 slot->loc_cb_received_event_mask = 0; /* received event */ in loc_api_sync_call_init()
131 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_destroy() local
133 pthread_mutex_lock(&slot->lock); in loc_api_sync_call_destroy()
[all …]
/hardware/qcom/gps/msm8084/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
Dloc_api_sync_call.c86 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_init() local
88 pthread_mutex_init(&slot->lock, NULL); in loc_api_sync_call_init()
89 pthread_cond_init(&slot->loc_cb_arrived_cond, NULL); in loc_api_sync_call_init()
91 slot->not_available = 0; in loc_api_sync_call_init()
92 slot->in_use = 0; in loc_api_sync_call_init()
93 slot->loc_handle = -1; in loc_api_sync_call_init()
94 slot->loc_cb_wait_event_mask = 0; /* event to wait */ in loc_api_sync_call_init()
95 slot->loc_cb_received_event_mask = 0; /* received event */ in loc_api_sync_call_init()
131 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_destroy() local
133 pthread_mutex_lock(&slot->lock); in loc_api_sync_call_destroy()
[all …]
/hardware/qcom/sdm845/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
Dloc_api_sync_call.c86 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_init() local
88 pthread_mutex_init(&slot->lock, NULL); in loc_api_sync_call_init()
89 pthread_cond_init(&slot->loc_cb_arrived_cond, NULL); in loc_api_sync_call_init()
91 slot->not_available = 0; in loc_api_sync_call_init()
92 slot->in_use = 0; in loc_api_sync_call_init()
93 slot->loc_handle = -1; in loc_api_sync_call_init()
94 slot->loc_cb_wait_event_mask = 0; /* event to wait */ in loc_api_sync_call_init()
95 slot->loc_cb_received_event_mask = 0; /* received event */ in loc_api_sync_call_init()
131 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_destroy() local
133 pthread_mutex_lock(&slot->lock); in loc_api_sync_call_destroy()
[all …]
/hardware/qcom/sdm845/gps/msm8909/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
Dloc_api_sync_call.c86 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_init() local
88 pthread_mutex_init(&slot->lock, NULL); in loc_api_sync_call_init()
89 pthread_cond_init(&slot->loc_cb_arrived_cond, NULL); in loc_api_sync_call_init()
91 slot->not_available = 0; in loc_api_sync_call_init()
92 slot->in_use = 0; in loc_api_sync_call_init()
93 slot->loc_handle = -1; in loc_api_sync_call_init()
94 slot->loc_cb_wait_event_mask = 0; /* event to wait */ in loc_api_sync_call_init()
95 slot->loc_cb_received_event_mask = 0; /* received event */ in loc_api_sync_call_init()
131 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_destroy() local
133 pthread_mutex_lock(&slot->lock); in loc_api_sync_call_destroy()
[all …]
/hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
Dloc_api_sync_call.c86 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_init() local
88 pthread_mutex_init(&slot->lock, NULL); in loc_api_sync_call_init()
89 pthread_cond_init(&slot->loc_cb_arrived_cond, NULL); in loc_api_sync_call_init()
91 slot->not_available = 0; in loc_api_sync_call_init()
92 slot->in_use = 0; in loc_api_sync_call_init()
93 slot->loc_handle = -1; in loc_api_sync_call_init()
94 slot->loc_cb_wait_event_mask = 0; /* event to wait */ in loc_api_sync_call_init()
95 slot->loc_cb_received_event_mask = 0; /* received event */ in loc_api_sync_call_init()
131 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_destroy() local
133 pthread_mutex_lock(&slot->lock); in loc_api_sync_call_destroy()
[all …]
/hardware/qcom/sdm845/gps/msm8994/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
Dloc_api_sync_call.c86 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_init() local
88 pthread_mutex_init(&slot->lock, NULL); in loc_api_sync_call_init()
89 pthread_cond_init(&slot->loc_cb_arrived_cond, NULL); in loc_api_sync_call_init()
91 slot->not_available = 0; in loc_api_sync_call_init()
92 slot->in_use = 0; in loc_api_sync_call_init()
93 slot->loc_handle = -1; in loc_api_sync_call_init()
94 slot->loc_cb_wait_event_mask = 0; /* event to wait */ in loc_api_sync_call_init()
95 slot->loc_cb_received_event_mask = 0; /* received event */ in loc_api_sync_call_init()
131 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_destroy() local
133 pthread_mutex_lock(&slot->lock); in loc_api_sync_call_destroy()
[all …]
/hardware/qcom/sdm845/gps/msm8996/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/
Dloc_api_sync_call.c86 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_init() local
88 pthread_mutex_init(&slot->lock, NULL); in loc_api_sync_call_init()
89 pthread_cond_init(&slot->loc_cb_arrived_cond, NULL); in loc_api_sync_call_init()
91 slot->not_available = 0; in loc_api_sync_call_init()
92 slot->in_use = 0; in loc_api_sync_call_init()
93 slot->loc_handle = -1; in loc_api_sync_call_init()
94 slot->loc_cb_wait_event_mask = 0; /* event to wait */ in loc_api_sync_call_init()
95 slot->loc_cb_received_event_mask = 0; /* received event */ in loc_api_sync_call_init()
131 loc_sync_call_slot_s_type *slot = &loc_sync_data.slots[i]; in loc_api_sync_call_destroy() local
133 pthread_mutex_lock(&slot->lock); in loc_api_sync_call_destroy()
[all …]
/hardware/interfaces/boot/1.1/default/boot_control/
Dlibboot_control.cpp136 for (unsigned int slot = 0; slot < kMaxNumSlots; ++slot) { in InitDefaultBootloaderControl() local
137 std::string partition_path = base_path + kSlotSuffixes[slot]; in InitDefaultBootloaderControl()
141 last_existing_slot = slot; in InitDefaultBootloaderControl()
142 LOG(INFO) << "Found slot: " << kSlotSuffixes[slot]; in InitDefaultBootloaderControl()
144 first_missing_slot = slot; in InitDefaultBootloaderControl()
158 for (unsigned int slot = 0; slot < kMaxNumSlots; ++slot) { in InitDefaultBootloaderControl() local
161 if (slot < boot_ctrl->nb_slot) { in InitDefaultBootloaderControl()
173 if (current_slot == slot) { in InitDefaultBootloaderControl()
177 boot_ctrl->slot_info[slot] = entry; in InitDefaultBootloaderControl()
186 for (unsigned int slot = 0; slot < kMaxNumSlots; ++slot) { in SlotSuffixToIndex() local
[all …]
Dlegacy_boot_control.cpp55 int BootControl_setActiveBootSlot(boot_control_module_t* module, unsigned int slot) { in BootControl_setActiveBootSlot() argument
57 return impl.SetActiveBootSlot(slot) ? 0 : -1; in BootControl_setActiveBootSlot()
60 int BootControl_setSlotAsUnbootable(struct boot_control_module* module, unsigned int slot) { in BootControl_setSlotAsUnbootable() argument
62 return impl.SetSlotAsUnbootable(slot) ? 0 : -1; in BootControl_setSlotAsUnbootable()
65 int BootControl_isSlotBootable(struct boot_control_module* module, unsigned int slot) { in BootControl_isSlotBootable() argument
67 return impl.IsSlotBootable(slot) ? 0 : -1; in BootControl_isSlotBootable()
70 int BootControl_isSlotMarkedSuccessful(struct boot_control_module* module, unsigned int slot) { in BootControl_isSlotMarkedSuccessful() argument
72 return impl.IsSlotMarkedSuccessful(slot) ? 0 : -1; in BootControl_isSlotMarkedSuccessful()
75 const char* BootControl_getSuffix(boot_control_module_t* module, unsigned int slot) { in BootControl_getSuffix() argument
77 return impl.GetSuffix(slot); in BootControl_getSuffix()
/hardware/ti/am57x/bootctrl/
Dboot_control.cc84 for (unsigned int slot = 0; slot < kMaxNumSlots; ++slot) { in SlotSuffixToIndex() local
85 if (!strcmp(kSlotSuffixes[slot], suffix)) return slot; in SlotSuffixToIndex()
173 int IsSlotMarkedSuccessful(boot_control_module_t* module, unsigned int slot) { in IsSlotMarkedSuccessful() argument
179 if (slot >= kMaxNumSlots || slot >= bootctrl_module->num_slots) { in IsSlotMarkedSuccessful()
188 return (bootctrl.slot_info[slot].successful_boot && in IsSlotMarkedSuccessful()
189 bootctrl.slot_info[slot].tries_remaining); in IsSlotMarkedSuccessful()
216 int SetActiveBootSlot(boot_control_module_t* module, unsigned int slot) { in SetActiveBootSlot() argument
223 if (slot >= kMaxNumSlots || slot >= bootctrl_module->num_slots) { in SetActiveBootSlot()
236 if (i != slot) { in SetActiveBootSlot()
244 bootctrl.slot_info[slot].priority = kActivePriority; in SetActiveBootSlot()
[all …]
/hardware/interfaces/radio/config/1.0/
DIRadioConfig.hal24 * radio configuration, and it is not associated with any specific modem or slot.
44 * Request provides the slot status of all active and inactive SIM slots and whether card is
56 * Maps the logical slots to the physical slots. Logical slot is the slot that is seen by modem.
57 * Physical slot is the actual physical slot. Request maps the physical slot to logical slot.
58 * Logical slots that are already mapped to the requested physical slot are not impacted.
61 * The only logical slot (index 0) can be mapped to first physical slot (value 0) or second
62 * physical slot(value 1), while the other physical slot remains unmapped and inactive.
66 * First logical slot (index 0) can be mapped to physical slot 1 or 2 and other logical slot
67 * can be mapped to other physical slot. Each logical slot must be mapped to a physical slot.
71 * @param slotMap Logical to physical slot mapping, size == no. of radio instances. Index is
[all …]
DIRadioConfigIndication.hal27 * Indicates SIM slot status change.
29 * This indication must be sent by the modem whenever there is any slot status change, even the
30 * slot is inactive. For example, this indication must be triggered if a SIM card is inserted
31 * into an inactive slot.
34 * @param slotStatus new slot status info with size equals to the number of physical slots on
/hardware/interfaces/boot/1.0/
DIBootControl.hal25 * to find the one associated with that slot.
42 * getCurrentSlot() returns the slot number of that the current boot is booted
43 * from, for example slot number 0 (Slot A). It is assumed that if the current
44 * slot is A, then the block devices underlying B can be accessed directly
49 * from the bootloader, regardless of which slot is active or successful.
51 getCurrentSlot() generates (Slot slot);
54 * markBootSuccessful() marks the current slot as having booted successfully.
61 * setActiveBootSlot() marks the slot passed in parameter as the active boot
62 * slot (see getCurrentSlot for an explanation of the "slot" parameter). This
66 setActiveBootSlot(Slot slot) generates (CommandResult error);
[all …]
/hardware/interfaces/boot/1.1/default/
DBootControl.cpp58 Return<void> BootControl::setActiveBootSlot(uint32_t slot, setActiveBootSlot_cb _hidl_cb) { in setActiveBootSlot() argument
60 if (impl_.SetActiveBootSlot(slot)) { in setActiveBootSlot()
71 Return<void> BootControl::setSlotAsUnbootable(uint32_t slot, setSlotAsUnbootable_cb _hidl_cb) { in setSlotAsUnbootable() argument
73 if (impl_.SetSlotAsUnbootable(slot)) { in setSlotAsUnbootable()
84 Return<BoolResult> BootControl::isSlotBootable(uint32_t slot) { in isSlotBootable() argument
85 if (!impl_.IsValidSlot(slot)) { in isSlotBootable()
88 return impl_.IsSlotBootable(slot) ? BoolResult::TRUE : BoolResult::FALSE; in isSlotBootable()
91 Return<BoolResult> BootControl::isSlotMarkedSuccessful(uint32_t slot) { in isSlotMarkedSuccessful() argument
92 if (!impl_.IsValidSlot(slot)) { in isSlotMarkedSuccessful()
95 return impl_.IsSlotMarkedSuccessful(slot) ? BoolResult::TRUE : BoolResult::FALSE; in isSlotMarkedSuccessful()
[all …]
DBootControl.h44 Return<void> setActiveBootSlot(uint32_t slot, setActiveBootSlot_cb _hidl_cb) override;
45 Return<void> setSlotAsUnbootable(uint32_t slot, setSlotAsUnbootable_cb _hidl_cb) override;
46 Return<BoolResult> isSlotBootable(uint32_t slot) override;
47 Return<BoolResult> isSlotMarkedSuccessful(uint32_t slot) override;
48 Return<void> getSuffix(uint32_t slot, getSuffix_cb _hidl_cb) override;
/hardware/interfaces/boot/1.1/default/boot_control/include/libboot_control/
Dlibboot_control.h35 bool SetActiveBootSlot(unsigned int slot);
36 bool SetSlotAsUnbootable(unsigned int slot);
37 bool SetSlotBootable(unsigned int slot);
38 bool IsSlotBootable(unsigned int slot);
39 const char* GetSuffix(unsigned int slot);
40 bool IsSlotMarkedSuccessful(unsigned int slot);
44 bool IsValidSlot(unsigned int slot);
/hardware/interfaces/boot/1.0/default/
DBootControl.cpp55 Return<void> BootControl::setActiveBootSlot(uint32_t slot, setActiveBootSlot_cb _hidl_cb) { in setActiveBootSlot() argument
56 int ret = mModule->setActiveBootSlot(mModule, slot); in setActiveBootSlot()
64 Return<void> BootControl::setSlotAsUnbootable(uint32_t slot, setSlotAsUnbootable_cb _hidl_cb) { in setSlotAsUnbootable() argument
65 int ret = mModule->setSlotAsUnbootable(mModule, slot); in setSlotAsUnbootable()
73 Return<BoolResult> BootControl::isSlotBootable(uint32_t slot) { in isSlotBootable() argument
74 int32_t ret = mModule->isSlotBootable(mModule, slot); in isSlotBootable()
81 Return<BoolResult> BootControl::isSlotMarkedSuccessful(uint32_t slot) { in isSlotMarkedSuccessful() argument
82 int32_t ret = mModule->isSlotMarkedSuccessful(mModule, slot); in isSlotMarkedSuccessful()
89 Return<void> BootControl::getSuffix(uint32_t slot, getSuffix_cb _hidl_cb) { in getSuffix() argument
91 const char *suffix = mModule->getSuffix(mModule, slot); in getSuffix()
DBootControl.h44 Return<void> setActiveBootSlot(uint32_t slot, setActiveBootSlot_cb _hidl_cb) override;
45 Return<void> setSlotAsUnbootable(uint32_t slot, setSlotAsUnbootable_cb _hidl_cb) override;
46 Return<BoolResult> isSlotBootable(uint32_t slot) override;
47 Return<BoolResult> isSlotMarkedSuccessful(uint32_t slot) override;
48 Return<void> getSuffix(uint32_t slot, getSuffix_cb _hidl_cb) override;
/hardware/libhardware/include/hardware/
Dboot_control.h93 int (*setActiveBootSlot)(struct boot_control_module *module, unsigned slot);
101 int (*setSlotAsUnbootable)(struct boot_control_module *module, unsigned slot);
110 int (*isSlotBootable)(struct boot_control_module *module, unsigned slot);
118 const char* (*getSuffix)(struct boot_control_module *module, unsigned slot);
126 int (*isSlotMarkedSuccessful)(struct boot_control_module *module, unsigned slot);
/hardware/qcom/bootctrl/
Dboot_control.cpp132 static int update_slot_attribute(const char *slot, in update_slot_attribute() argument
147 if (!slot) { in update_slot_attribute()
153 if (!strncmp(slot, slot_suffix_arr[i], in update_slot_attribute()
190 slot); in update_slot_attribute()
319 unsigned slot) in boot_control_check_slot_sanity() argument
324 if ((num_slots < 1) || (slot > num_slots - 1)) { in boot_control_check_slot_sanity()
350 const char *get_suffix(struct boot_control_module *module, unsigned slot) in get_suffix() argument
352 if (boot_control_check_slot_sanity(module, slot) != 0) in get_suffix()
355 return slot_suffix_arr[slot]; in get_suffix()
387 unsigned slot) in boot_ctl_set_active_slot_for_partitions() argument
[all …]
/hardware/interfaces/graphics/composer/2.1/utils/hal/include/composer-hal/2.1/
DComposerResources.h172 Error lookupCache(uint32_t slot, const native_handle_t** outHandle) { in lookupCache() argument
173 if (slot >= 0 && slot < mHandles.size()) { in lookupCache()
174 *outHandle = mHandles[slot]; in lookupCache()
181 Error updateCache(uint32_t slot, const native_handle_t* handle, in updateCache() argument
183 if (slot >= 0 && slot < mHandles.size()) { in updateCache()
184 auto& cachedHandle = mHandles[slot]; in updateCache()
194 Error getHandle(uint32_t slot, bool fromCache, const native_handle_t* inHandle, in getHandle() argument
198 return lookupCache(slot, outHandle); in getHandle()
201 return updateCache(slot, inHandle, outReplacedHandle); in getHandle()
220 Error getBuffer(uint32_t slot, bool fromCache, const native_handle_t* inHandle, in getBuffer() argument
[all …]
/hardware/interfaces/weaver/1.0/
DIWeaver.hal42 * Overwrites the identified slot with the provided key and value.
44 * The new values are written regardless of the current state of the slot in
47 * @param slotId of the slot to write to.
48 * @param key to write to the slot.
49 * @param value to write to slot.
56 * Attempts to retrieve the value stored in the identified slot.
59 * the slot. The value is never returned if the wrong key is provided.
66 * @param slotId of the slot to read from.
67 * @param key that is stored in the slot.
69 * the key does not match the key in the slot, THROTTLE if
[all …]

123