Home
last modified time | relevance | path

Searched refs:slots (Results 1 – 25 of 973) sorted by relevance

12345678910>>...39

/OK3568_Linux_fs/external/mpp/mpp/base/inc/
H A Dmpp_buf_slot.h127 MPP_RET mpp_buf_slot_init(MppBufSlots *slots);
128 MPP_RET mpp_buf_slot_deinit(MppBufSlots slots);
129 MPP_RET mpp_buf_slot_setup(MppBufSlots slots, RK_S32 count);
130 RK_U32 mpp_buf_slot_is_changed(MppBufSlots slots);
131 MPP_RET mpp_buf_slot_ready(MppBufSlots slots);
132 size_t mpp_buf_slot_get_size(MppBufSlots slots);
133 RK_S32 mpp_buf_slot_get_count(MppBufSlots slots);
134 MPP_RET mpp_buf_slot_set_callback(MppBufSlots slots, MppCbCtx *cb_ctx);
177 MPP_RET mpp_buf_slot_get_unused(MppBufSlots slots, RK_S32 *index);
207 MPP_RET mpp_buf_slot_set_flag(MppBufSlots slots, RK_S32 index, SlotUsageType type);
[all …]
/OK3568_Linux_fs/external/mpp/mpp/base/
H A Dmpp_buf_slot.cpp190 MppBufSlotsImpl *slots; member
244 MppBufSlotEntry *slots; member
457 MppBufSlotEntry *slot = impl->slots; in _dump_slots()
594 MppBufSlotEntry *slot = impl->slots; in init_slot_entry()
596 slot->slots = impl; in init_slot_entry()
640 MppBufSlotEntry *slot = (MppBufSlotEntry *)impl->slots; in clear_slots_impl()
674 mpp_free(impl->slots); in clear_slots_impl()
678 MPP_RET mpp_buf_slot_init(MppBufSlots *slots) in mpp_buf_slot_init() argument
680 if (NULL == slots) { in mpp_buf_slot_init()
686 *slots = NULL; in mpp_buf_slot_init()
[all …]
/OK3568_Linux_fs/kernel/mm/
H A Dswap_slots.c127 swp_entry_t *slots, *slots_ret; in alloc_swap_slot_cache() local
142 slots = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache()
144 if (!slots) in alloc_swap_slot_cache()
150 kvfree(slots); in alloc_swap_slot_cache()
156 if (cache->slots || cache->slots_ret) { in alloc_swap_slot_cache()
160 kvfree(slots); in alloc_swap_slot_cache()
181 cache->slots = slots; in alloc_swap_slot_cache()
191 swp_entry_t *slots = NULL; in drain_slots_cache_cpu() local
201 if ((type & SLOTS_CACHE) && cache->slots) { in drain_slots_cache_cpu()
203 swapcache_free_entries(cache->slots + cache->cur, cache->nr); in drain_slots_cache_cpu()
[all …]
H A Dz3fold.c120 struct z3fold_buddy_slots *slots; member
213 struct z3fold_buddy_slots *slots; in alloc_slots() local
215 slots = kmem_cache_zalloc(pool->c_handle, in alloc_slots()
218 if (slots) { in alloc_slots()
220 kmemleak_not_leak(slots); in alloc_slots()
221 slots->pool = (unsigned long)pool; in alloc_slots()
222 rwlock_init(&slots->lock); in alloc_slots()
225 return slots; in alloc_slots()
260 struct z3fold_buddy_slots *slots; in __get_z3fold_header() local
265 slots = handle_to_slots(handle); in __get_z3fold_header()
[all …]
/OK3568_Linux_fs/u-boot/lib/avb/libavb_ab/
H A Davb_ab_flow.c68 data->slots[0].priority = AVB_AB_MAX_PRIORITY; in avb_ab_data_init()
69 data->slots[0].tries_remaining = AVB_AB_MAX_TRIES_REMAINING; in avb_ab_data_init()
70 data->slots[0].successful_boot = 0; in avb_ab_data_init()
71 data->slots[1].priority = AVB_AB_MAX_PRIORITY - 1; in avb_ab_data_init()
72 data->slots[1].tries_remaining = AVB_AB_MAX_TRIES_REMAINING; in avb_ab_data_init()
73 data->slots[1].successful_boot = 0; in avb_ab_data_init()
188 slot_normalize(&ab_data->slots[0]); in load_metadata()
189 slot_normalize(&ab_data->slots[1]); in load_metadata()
231 if (slot_is_bootable(&ab_data.slots[n])) { in avb_ab_flow()
295 slot_set_unbootable(&ab_data.slots[n]); in avb_ab_flow()
[all …]
/OK3568_Linux_fs/kernel/sound/pci/ac97/
H A Dac97_pcm.c312 unsigned short slots = 0; in get_pslots() local
326 slots |= (1<<AC97_SLOT_PCM_LEFT)|(1<<AC97_SLOT_PCM_RIGHT); in get_pslots()
328 slots |= (1<<AC97_SLOT_PCM_SLEFT)|(1<<AC97_SLOT_PCM_SRIGHT); in get_pslots()
330 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots()
343 slots |= (1<<AC97_SLOT_PCM_SLEFT)|(1<<AC97_SLOT_PCM_SRIGHT); in get_pslots()
345 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots()
355 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots()
361 return slots; in get_pslots()
363 unsigned short slots; in get_pslots() local
364 slots = (1<<AC97_SLOT_PCM_LEFT)|(1<<AC97_SLOT_PCM_RIGHT); in get_pslots()
[all …]
/OK3568_Linux_fs/u-boot/lib/avb/rk_avb_user/
H A Drk_ab_ops_user.c148 data->slots[0].priority = AVB_AB_MAX_PRIORITY; in avb_ab_data_init()
149 data->slots[0].tries_remaining = AVB_AB_MAX_TRIES_REMAINING; in avb_ab_data_init()
150 data->slots[0].successful_boot = 0; in avb_ab_data_init()
151 data->slots[1].priority = AVB_AB_MAX_PRIORITY - 1; in avb_ab_data_init()
152 data->slots[1].tries_remaining = AVB_AB_MAX_TRIES_REMAINING; in avb_ab_data_init()
153 data->slots[1].successful_boot = 0; in avb_ab_data_init()
235 slot_normalize(&ab_data->slots[0]); in load_metadata()
236 slot_normalize(&ab_data->slots[1]); in load_metadata()
270 ab_data.slots[slot_number].priority = AVB_AB_MAX_PRIORITY; in avb_ab_mark_slot_active()
271 ab_data.slots[slot_number].tries_remaining = AVB_AB_MAX_TRIES_REMAINING; in avb_ab_mark_slot_active()
[all …]
/OK3568_Linux_fs/u-boot/common/spl/
H A Dspl_ab.c103 data->slots[0].priority = AVB_AB_MAX_PRIORITY; in spl_ab_data_init()
104 data->slots[0].tries_remaining = AVB_AB_MAX_TRIES_REMAINING; in spl_ab_data_init()
105 data->slots[0].successful_boot = 0; in spl_ab_data_init()
106 data->slots[1].priority = AVB_AB_MAX_PRIORITY - 1; in spl_ab_data_init()
107 data->slots[1].tries_remaining = AVB_AB_MAX_TRIES_REMAINING; in spl_ab_data_init()
108 data->slots[1].successful_boot = 0; in spl_ab_data_init()
214 if (spl_slot_is_bootable(&ab_data.slots[0]) && in spl_get_current_slot()
215 spl_slot_is_bootable(&ab_data.slots[1])) { in spl_get_current_slot()
216 if (ab_data.slots[1].priority > ab_data.slots[0].priority) in spl_get_current_slot()
220 } else if (spl_slot_is_bootable(&ab_data.slots[0])) { in spl_get_current_slot()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/
H A Dinput-mt.c49 mt = kzalloc(struct_size(mt, slots, num_slots), GFP_KERNEL); in input_mt_init_slots()
90 input_mt_set_value(&mt->slots[i], ABS_MT_TRACKING_ID, -1); in input_mt_init_slots()
144 slot = &mt->slots[mt->slot]; in input_mt_report_slot_state()
209 struct input_mt_slot *ps = &mt->slots[i]; in input_mt_report_pointer_emulation()
263 if (!input_mt_is_used(mt, &mt->slots[i])) { in __input_mt_drop_unused()
372 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_matrix()
387 int *slots, int num_pos) in input_mt_set_slots() argument
393 slots[j] = -1; in input_mt_set_slots()
395 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots()
401 slots[j] = s - mt->slots; in input_mt_set_slots()
[all …]
/OK3568_Linux_fs/kernel/lib/
H A Dassoc_array.c52 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_subtree_iterate()
81 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_subtree_iterate()
209 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_walk()
324 ptr = READ_ONCE(node->slots[slot]); /* Address dependency. */ in assoc_array_find()
382 struct assoc_array_ptr *ptr = node->slots[slot]; in assoc_array_destroy_subtree()
462 edit->leaf_p = &new_n0->slots[0]; in assoc_array_insert_in_empty_tree()
505 ptr = node->slots[i]; in assoc_array_insert_into_terminal_node()
514 edit->leaf_p = &node->slots[i]; in assoc_array_insert_into_terminal_node()
515 edit->dead_leaf = node->slots[i]; in assoc_array_insert_into_terminal_node()
526 edit->leaf_p = &node->slots[free_slot]; in assoc_array_insert_into_terminal_node()
[all …]
/OK3568_Linux_fs/kernel/fs/btrfs/
H A Dfile-item.c152 item = btrfs_item_ptr(leaf, path->slots[0], in btrfs_insert_file_extent()
196 if (path->slots[0] == 0) in btrfs_lookup_csum()
198 path->slots[0]--; in btrfs_lookup_csum()
199 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0]); in btrfs_lookup_csum()
205 csums_in_item = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_lookup_csum()
215 item = btrfs_item_ptr(leaf, path->slots[0], struct btrfs_csum_item); in btrfs_lookup_csum()
353 path->slots[0]); in btrfs_lookup_bio_sums()
357 path->slots[0]); in btrfs_lookup_bio_sums()
361 item = btrfs_item_ptr(path->nodes[0], path->slots[0], in btrfs_lookup_bio_sums()
431 if (ret > 0 && path->slots[0] > 0) { in btrfs_lookup_csums_range()
[all …]
H A Dinode-item.c93 return btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_lookup_inode_extref()
135 extref = btrfs_find_name_in_ext_backref(path->nodes[0], path->slots[0], in btrfs_del_inode_extref()
144 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_extref()
158 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_extref()
207 ref = btrfs_find_name_in_backref(path->nodes[0], path->slots[0], name, in btrfs_del_inode_ref()
215 item_size = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_del_inode_ref()
226 item_start = btrfs_item_ptr_offset(leaf, path->slots[0]); in btrfs_del_inode_ref()
278 path->slots[0], in btrfs_insert_inode_extref()
290 item = btrfs_item_nr(path->slots[0]); in btrfs_insert_inode_extref()
291 ptr = (unsigned long)btrfs_item_ptr(leaf, path->slots[0], char); in btrfs_insert_inode_extref()
[all …]
H A Dctree.c101 p->slots[i] = 0; in btrfs_release_path()
1856 int orig_slot = path->slots[level]; in balance_level()
1871 pslot = path->slots[level + 1]; in balance_level()
2043 path->slots[level + 1] -= 1; in balance_level()
2044 path->slots[level] = orig_slot; in balance_level()
2051 path->slots[level] = orig_slot; in balance_level()
2056 btrfs_node_blockptr(path->nodes[level], path->slots[level])) in balance_level()
2087 int orig_slot = path->slots[level]; in push_nodes_for_insert()
2097 pslot = path->slots[level + 1]; in push_nodes_for_insert()
2140 path->slots[level + 1] -= 1; in push_nodes_for_insert()
[all …]
H A Dfree-space-tree.c69 info = btrfs_item_ptr(leaf, path->slots[0], in add_new_free_space_info()
106 return btrfs_item_ptr(path->nodes[0], path->slots[0], in search_free_space_info()
130 if (p->slots[0] == 0) { in btrfs_search_prev_slot()
134 p->slots[0]--; in btrfs_search_prev_slot()
225 path->slots[0]++; in convert_free_space_to_bitmaps()
226 while (path->slots[0] > 0) { in convert_free_space_to_bitmaps()
227 btrfs_item_key_to_cpu(leaf, &found_key, path->slots[0] - 1); in convert_free_space_to_bitmaps()
249 path->slots[0]--; in convert_free_space_to_bitmaps()
255 ret = btrfs_del_items(trans, root, path, path->slots[0], nr); in convert_free_space_to_bitmaps()
306 ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); in convert_free_space_to_bitmaps()
[all …]
/OK3568_Linux_fs/kernel/drivers/misc/mei/
H A Ddma-ring.c171 u32 rd_idx, rem, slots; in mei_dma_ring_read() local
183 slots = mei_data2slots(len); in mei_dma_ring_read()
189 if (rd_idx + slots > dbuf_depth) { in mei_dma_ring_read()
191 rem = slots - (dbuf_depth - rd_idx); in mei_dma_ring_read()
194 rem = slots; in mei_dma_ring_read()
199 WRITE_ONCE(ctrl->dbuf_rd_idx, ctrl->dbuf_rd_idx + slots); in mei_dma_ring_read()
248 u32 wr_idx, rem, slots; in mei_dma_ring_write() local
256 slots = mei_data2slots(len); in mei_dma_ring_write()
258 if (wr_idx + slots > hbuf_depth) { in mei_dma_ring_write()
260 rem = slots - (hbuf_depth - wr_idx); in mei_dma_ring_write()
[all …]
H A Dinterrupt.c226 int slots; in mei_cl_irq_disconnect_rsp() local
230 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_disconnect_rsp()
231 if (slots < 0) in mei_cl_irq_disconnect_rsp()
234 if ((u32)slots < msg_slots) in mei_cl_irq_disconnect_rsp()
258 int slots; in mei_cl_irq_read() local
265 slots = mei_hbuf_empty_slots(dev); in mei_cl_irq_read()
266 if (slots < 0) in mei_cl_irq_read()
269 if ((u32)slots < msg_slots) in mei_cl_irq_read()
328 struct list_head *cmpl_list, s32 *slots) in mei_irq_read_handler() argument
343 (*slots)--; in mei_irq_read_handler()
[all …]
/OK3568_Linux_fs/external/mpp/mpp/codec/dec/dummy/
H A Ddummy_dec_api.c191 MppBufSlots slots; in dummy_dec_parse() local
201 slots = p->frame_slots; in dummy_dec_parse()
210 mpp_buf_slot_setup(slots, DUMMY_DEC_FRAME_COUNT); in dummy_dec_parse()
231 mpp_buf_slot_get_unused(slots, &output); in dummy_dec_parse()
232 mpp_buf_slot_set_flag(slots, output, SLOT_HAL_OUTPUT); in dummy_dec_parse()
236 mpp_buf_slot_set_prop(slots, output, SLOT_FRAME, frame); in dummy_dec_parse()
251 mpp_buf_slot_set_flag(slots, index, SLOT_HAL_INPUT); in dummy_dec_parse()
252 mpp_buf_slot_set_flag(slots, index, SLOT_CODEC_USE); in dummy_dec_parse()
259 mpp_buf_slot_set_flag(slots, output, SLOT_QUEUE_USE); in dummy_dec_parse()
260 mpp_buf_slot_enqueue(slots, output, QUEUE_DISPLAY); in dummy_dec_parse()
[all …]
/OK3568_Linux_fs/kernel/arch/ia64/scripts/
H A Dunwcheck.py27 def check_func (func, slots, rlen_sum): argument
28 if slots != rlen_sum:
32 print("ERROR: %s: %lu slots, total region length = %lu" % (func, slots, rlen_sum))
38 slots = 0 variable
43 check_func(func, slots, rlen_sum)
48 slots = 3 * (end - start) / 16 variable
55 check_func(func, slots, rlen_sum)
/OK3568_Linux_fs/kernel/arch/arm64/kernel/
H A Dhw_breakpoint.c188 static int hw_breakpoint_slot_setup(struct perf_event **slots, int max_slots, in hw_breakpoint_slot_setup() argument
196 slot = &slots[i]; in hw_breakpoint_slot_setup()
226 struct perf_event **slots; in hw_breakpoint_control() local
236 slots = this_cpu_ptr(bp_on_reg); in hw_breakpoint_control()
243 slots = this_cpu_ptr(wp_on_reg); in hw_breakpoint_control()
248 i = hw_breakpoint_slot_setup(slots, max_slots, bp, ops); in hw_breakpoint_control()
584 struct perf_event **slots; in toggle_bp_registers() local
588 slots = this_cpu_ptr(bp_on_reg); in toggle_bp_registers()
592 slots = this_cpu_ptr(wp_on_reg); in toggle_bp_registers()
600 if (!slots[i]) in toggle_bp_registers()
[all …]
/OK3568_Linux_fs/external/recovery/update_engine/
H A Drkbootloader.c367 if (info.slots[now_slot].priority != AVB_AB_MAX_PRIORITY) { in setSlotSucceed()
370 info.slots[now_slot].priority, AVB_AB_MAX_PRIORITY); in setSlotSucceed()
371 info.slots[now_slot].priority = AVB_AB_MAX_PRIORITY; in setSlotSucceed()
374 info.slots[now_slot].tries_remaining = 0; in setSlotSucceed()
375 info.slots[now_slot].successful_boot = 1; in setSlotSucceed()
378 info.slots[now_slot].tries_remaining = AVB_AB_MAX_TRIES_REMAINING; in setSlotSucceed()
384 info.slots[now_slot].successful_boot = 0; in setSlotSucceed()
411 info.slots[now_slot].priority = AVB_AB_MAX_PRIORITY - 1; in setSlotActivity()
412 info.slots[1 - now_slot].priority = AVB_AB_MAX_PRIORITY; in setSlotActivity()
413 info.slots[1 - now_slot].tries_remaining = AVB_AB_MAX_TRIES_REMAINING; in setSlotActivity()
[all …]
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/
H A Dpenmount.c58 struct mt_slot slots[PM_MAX_MTSLOT]; member
73 pm->slots[i].active); in pm_mtevent()
74 if (pm->slots[i].active) { in pm_mtevent()
75 input_event(input, EV_ABS, ABS_MT_POSITION_X, pm->slots[i].x); in pm_mtevent()
76 input_event(input, EV_ABS, ABS_MT_POSITION_Y, pm->slots[i].y); in pm_mtevent()
136 pm->slots[slotnum].active = pm->data[0] & 0x30; in pm_parse_3000()
137 pm->slots[slotnum].x = pm->data[2] * 256 + pm->data[1]; in pm_parse_3000()
138 pm->slots[slotnum].y = pm->data[4] * 256 + pm->data[3]; in pm_parse_3000()
152 pm->slots[slotnum].active = pm->data[0] & 0x40; in pm_parse_6250()
153 pm->slots[slotnum].x = pm->data[2] * 256 + pm->data[1]; in pm_parse_6250()
[all …]
/OK3568_Linux_fs/external/mpp/mpp/codec/dec/h263/
H A Dh263d_parser.c266 MppBufSlots slots = p->frame_slots; in mpp_h263_parser_flush() local
273 mpp_buf_slot_set_flag(slots, index, SLOT_QUEUE_USE); in mpp_h263_parser_flush()
274 mpp_buf_slot_enqueue(slots, index, QUEUE_DISPLAY); in mpp_h263_parser_flush()
286 MppBufSlots slots = p->frame_slots; in mpp_h263_parser_reset() local
294 mpp_buf_slot_clr_flag(slots, index, SLOT_CODEC_USE); in mpp_h263_parser_reset()
300 mpp_buf_slot_clr_flag(slots, index, SLOT_CODEC_USE); in mpp_h263_parser_reset()
482 MppBufSlots slots = p->frame_slots; in mpp_h263_parser_setup_hal_output() local
499 mpp_buf_slot_get_unused(slots, &index); in mpp_h263_parser_setup_hal_output()
500 mpp_buf_slot_set_flag(slots, index, SLOT_HAL_OUTPUT); in mpp_h263_parser_setup_hal_output()
504 mpp_buf_slot_set_prop(slots, index, SLOT_FRAME, frame); in mpp_h263_parser_setup_hal_output()
[all …]
/OK3568_Linux_fs/kernel/sound/soc/bcm/
H A Dbcm2835-i2s.c251 int slots, int width) in bcm2835_i2s_set_dai_tdm_slot() argument
255 if (slots) { in bcm2835_i2s_set_dai_tdm_slot()
256 if (slots < 0 || width < 0) in bcm2835_i2s_set_dai_tdm_slot()
260 rx_mask &= GENMASK(slots - 1, 0); in bcm2835_i2s_set_dai_tdm_slot()
261 tx_mask &= GENMASK(slots - 1, 0); in bcm2835_i2s_set_dai_tdm_slot()
271 if (slots * width > BCM2835_I2S_MAX_FRAME_LENGTH) in bcm2835_i2s_set_dai_tdm_slot()
275 dev->tdm_slots = slots; in bcm2835_i2s_set_dai_tdm_slot()
280 dev->frame_length = slots * width; in bcm2835_i2s_set_dai_tdm_slot()
335 unsigned int slots, slot_width, odd_slot_offset; in bcm2835_i2s_hw_params() local
361 slots = dev->tdm_slots; in bcm2835_i2s_hw_params()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/arm/bifrost/backend/gpu/
H A Dmali_kbase_model_dummy.c165 struct job_slot slots[NUM_SLOTS]; member
485 #define signal_int(m, s) m->slots[(s)].job_complete_irq_asserted = 1
745 (dummy->slots[i].job_complete_irq_asserted) << i; in init_register_statuses()
747 (dummy->slots[i].job_complete_irq_asserted) << i; in init_register_statuses()
886 (dummy->slots[job_slot].job_complete_irq_asserted) << in update_register_statuses()
889 (((dummy->slots[job_slot].job_complete_irq_asserted) << in update_register_statuses()
891 (dummy->slots[job_slot].job_irq_mask << in update_register_statuses()
895 (dummy->slots[job_slot].job_complete_irq_asserted) << in update_register_statuses()
898 ((dummy->slots[job_slot].job_complete_irq_asserted) << in update_register_statuses()
900 (dummy->slots[job_slot].job_irq_mask << in update_register_statuses()
[all …]
/OK3568_Linux_fs/kernel/drivers/dma/ioat/
H A Ddca.c214 int slots = 0; in ioat_dca_count_dca_slots() local
223 req = readl(iobase + global_req_table + (slots * sizeof(u32))); in ioat_dca_count_dca_slots()
224 slots++; in ioat_dca_count_dca_slots()
227 return slots; in ioat_dca_count_dca_slots()
251 int slots; in ioat_dca_init() local
274 slots = ioat_dca_count_dca_slots(iobase, dca_offset); in ioat_dca_init()
275 if (slots == 0) in ioat_dca_init()
279 struct_size(ioatdca, req_slots, slots)); in ioat_dca_init()
286 ioatdca->max_requesters = slots; in ioat_dca_init()

12345678910>>...39