| /drivers/net/ovpn/ |
| A D | crypto.c | 44 ks = rcu_access_pointer(cs->slots[0]); in ovpn_crypto_state_release() 46 RCU_INIT_POINTER(cs->slots[0], NULL); in ovpn_crypto_state_release() 50 ks = rcu_access_pointer(cs->slots[1]); in ovpn_crypto_state_release() 52 RCU_INIT_POINTER(cs->slots[1], NULL); in ovpn_crypto_state_release() 64 ks = rcu_replace_pointer(cs->slots[0], NULL, in ovpn_crypto_kill_key() 67 ks = rcu_replace_pointer(cs->slots[1], NULL, in ovpn_crypto_kill_key() 100 old = rcu_replace_pointer(cs->slots[idx], new, in ovpn_crypto_state_reset() 104 old = rcu_replace_pointer(cs->slots[!idx], new, in ovpn_crypto_state_reset() 132 ks = rcu_replace_pointer(cs->slots[idx], NULL, in ovpn_crypto_key_slot_delete() 136 ks = rcu_replace_pointer(cs->slots[!idx], NULL, in ovpn_crypto_key_slot_delete() [all …]
|
| A D | crypto.h | 53 struct ovpn_crypto_key_slot __rcu *slots[2]; member 67 RCU_INIT_POINTER(cs->slots[0], NULL); in ovpn_crypto_state_init() 68 RCU_INIT_POINTER(cs->slots[1], NULL); in ovpn_crypto_state_init() 84 ks = rcu_dereference(cs->slots[idx]); in ovpn_crypto_key_id_to_slot() 91 ks = rcu_dereference(cs->slots[!idx]); in ovpn_crypto_key_id_to_slot() 114 ks = rcu_dereference(cs->slots[cs->primary_idx]); in ovpn_crypto_key_slot_primary()
|
| /drivers/input/ |
| A D | input-mt.c | 405 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_matrix() 426 slots[j] = -1; in input_mt_set_slots() 428 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots() 434 slots[j] = s - mt->slots; in input_mt_set_slots() 442 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) { in input_mt_set_slots() 447 if (slots[j] < 0) { in input_mt_set_slots() 448 slots[j] = s - mt->slots; in input_mt_set_slots() 516 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key() 518 return s - mt->slots; in input_mt_get_slot_by_key() 520 for (s = mt->slots; s != mt->slots + mt->num_slots; s++) in input_mt_get_slot_by_key() [all …]
|
| /drivers/misc/mei/ |
| A D | dma-ring.c | 175 u32 rd_idx, rem, slots; in mei_dma_ring_read() local 187 slots = mei_data2slots(len); in mei_dma_ring_read() 193 if (rd_idx + slots > dbuf_depth) { in mei_dma_ring_read() 195 rem = slots - (dbuf_depth - rd_idx); in mei_dma_ring_read() 198 rem = slots; in mei_dma_ring_read() 203 WRITE_ONCE(ctrl->dbuf_rd_idx, ctrl->dbuf_rd_idx + slots); in mei_dma_ring_read() 252 u32 wr_idx, rem, slots; in mei_dma_ring_write() local 260 slots = mei_data2slots(len); in mei_dma_ring_write() 262 if (wr_idx + slots > hbuf_depth) { in mei_dma_ring_write() 264 rem = slots - (hbuf_depth - wr_idx); in mei_dma_ring_write() [all …]
|
| A D | interrupt.c | 259 int slots; in mei_cl_irq_disconnect_rsp() local 264 if (slots < 0) in mei_cl_irq_disconnect_rsp() 291 int slots; in mei_cl_irq_read() local 299 if (slots < 0) in mei_cl_irq_read() 375 (*slots)--; in mei_irq_read_handler() 391 *slots); in mei_irq_read_handler() 404 (*slots)--; in mei_irq_read_handler() 428 (*slots)--; in mei_irq_read_handler() 441 (*slots)--; in mei_irq_read_handler() 513 s32 slots; in mei_irq_write_handler() local [all …]
|
| A D | client.c | 874 int slots; in mei_cl_irq_disconnect() local 879 if (slots < 0) in mei_cl_irq_disconnect() 882 if ((u32)slots < msg_slots) in mei_cl_irq_disconnect() 1067 int slots; in mei_cl_irq_connect() local 1075 if (slots < 0) in mei_cl_irq_connect() 1464 int slots; in mei_cl_irq_notify() local 1470 if (slots < 0) in mei_cl_irq_notify() 2194 int slots; in mei_cl_irq_dma_map() local 2199 if (slots < 0) in mei_cl_irq_dma_map() 2230 int slots; in mei_cl_irq_dma_unmap() local [all …]
|
| /drivers/input/touchscreen/ |
| A D | penmount.c | 58 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 …]
|
| /drivers/gpu/drm/amd/display/dc/hpo/dcn31/ |
| A D | dcn31_hpo_dp_link_encoder.c | 268 uint32_t *slots) in dcn31_fill_stream_allocation_row_info() argument 277 *slots = 0; in dcn31_fill_stream_allocation_row_info() 287 uint32_t slots = 0; in dcn31_hpo_dp_link_enc_update_stream_allocation_table() local 302 &slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table() 305 slots = 0; in dcn31_hpo_dp_link_enc_update_stream_allocation_table() 316 &slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table() 319 slots = 0; in dcn31_hpo_dp_link_enc_update_stream_allocation_table() 330 &slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table() 333 slots = 0; in dcn31_hpo_dp_link_enc_update_stream_allocation_table() 344 &slots); in dcn31_hpo_dp_link_enc_update_stream_allocation_table() [all …]
|
| /drivers/media/platform/amphion/ |
| A D | vdec.c | 312 if (vdec->slots[i].curr && vdec->slots[i].curr != vpu_buf) { in vdec_attach_frame_store() 324 if (!vdec->slots[i].addr) { in vdec_attach_frame_store() 332 sizeof(*vdec->slots), in vdec_attach_frame_store() 339 vdec->slots = new_slots; in vdec_attach_frame_store() 342 vdec->slots[i].addr = addr; in vdec_attach_frame_store() 354 memset(vdec->slots, 0, sizeof(*vdec->slots) * vdec->slot_count); in vdec_reset_frame_store() 868 if (!vdec->slots[i].curr) in vdec_find_buffer() 1643 kfree(vdec->slots); in vdec_cleanup() 1644 vdec->slots = NULL; in vdec_cleanup() 1789 if (vdec->slots[i].pend) in vdec_get_slot_debug_info() [all …]
|
| /drivers/dma/ioat/ |
| A D | dca.c | 216 int slots = 0; in ioat_dca_count_dca_slots() local 225 req = readl(iobase + global_req_table + (slots * sizeof(u32))); in ioat_dca_count_dca_slots() 226 slots++; in ioat_dca_count_dca_slots() 229 return slots; in ioat_dca_count_dca_slots() 253 int slots; in ioat_dca_init() local 276 slots = ioat_dca_count_dca_slots(iobase, dca_offset); in ioat_dca_init() 277 if (slots == 0) in ioat_dca_init() 281 struct_size(ioatdca, req_slots, slots)); in ioat_dca_init() 288 ioatdca->max_requesters = slots; in ioat_dca_init()
|
| /drivers/md/dm-vdo/indexer/ |
| A D | open-chapter.c | 96 memset(open_chapter->slots, 0, slots_size(open_chapter->slot_count)); in uds_reset_open_chapter() 109 record_number = open_chapter->slots[slot].record_number; in probe_chapter_slots() 124 !open_chapter->slots[record_number].deleted) in probe_chapter_slots() 143 record_number = open_chapter->slots[slot].record_number; in uds_search_open_chapter() 165 record_number = open_chapter->slots[slot].record_number; in uds_put_open_chapter() 169 open_chapter->slots[slot].record_number = record_number; in uds_put_open_chapter() 186 record_number = open_chapter->slots[slot].record_number; in uds_remove_from_open_chapter() 189 open_chapter->slots[record_number].deleted = true; in uds_remove_from_open_chapter() 247 open_chapter->slots[record_index].deleted) { in fill_delta_chapter_index() 330 if (open_chapter->slots[record_index].deleted) in uds_save_open_chapter()
|
| /drivers/pci/hotplug/ |
| A D | ibmphp_ebda.c | 66 struct ebda_hpc_slot *slots; in alloc_ebda_hpc() local 74 if (!slots) in alloc_ebda_hpc() 76 controller->slots = slots; in alloc_ebda_hpc() 85 kfree(controller->slots); in alloc_ebda_hpc() 94 kfree(controller->slots); in free_ebda_hpc() 730 slot_ptr = hpc_ptr->slots; in ebda_rsrc_controller() 838 hpc_ptr->starting_slot_num = hpc_ptr->slots[0].slot_num; in ebda_rsrc_controller() 851 tmp_slot->capabilities = hpc_ptr->slots[index].slot_cap; in ebda_rsrc_controller() 865 tmp_slot->bus = hpc_ptr->slots[index].slot_bus_num; in ebda_rsrc_controller() 876 tmp_slot->ctlr_index = hpc_ptr->slots[index].ctl_index; in ebda_rsrc_controller() [all …]
|
| A D | cpci_hotplug_core.c | 45 static int slots; variable 217 slots++; in cpci_hp_register_bus() 236 if (!slots) { in cpci_hp_unregister_bus() 243 slots--; in cpci_hp_unregister_bus() 289 if (!slots) { in init_slots() 319 if (!slots) { in check_slots() 544 if (!slots) in cleanup_slots()
|
| /drivers/firmware/efi/libstub/ |
| A D | randomalloc.c | 87 unsigned long slots; in efi_random_alloc() local 89 slots = get_entry_num_slots(md, size, ilog2(align), alloc_min, in efi_random_alloc() 91 MD_NUM_SLOTS(md) = slots; in efi_random_alloc() 92 total_slots += slots; in efi_random_alloc() 94 total_mirrored_slots += slots; in efi_random_alloc()
|
| /drivers/pci/pwrctrl/ |
| A D | Kconfig | 15 tristate "PCI Power Control driver for PCI slots" 19 state of PCI slots. 22 PCI slots. The voltage regulators powering the rails of the PCI slots
|
| /drivers/net/ethernet/apm/xgene/ |
| A D | xgene_enet_main.c | 76 u32 slots, tail; in xgene_enet_refill_pagepool() local 86 slots = buf_pool->slots - 1; in xgene_enet_refill_pagepool() 109 tail = (tail + 1) & slots; in xgene_enet_refill_pagepool() 128 u32 slots = buf_pool->slots - 1; in xgene_enet_refill_bufpool() local 616 u16 slots, head; in xgene_enet_free_pagepool() local 625 slots = buf_pool->slots - 1; in xgene_enet_free_pagepool() 680 u16 slots, head; in xgene_enet_rx_frame() local 729 slots = page_pool->slots - 1; in xgene_enet_rx_frame() 790 u16 slots = ring->slots - 1; in xgene_enet_process_ring() local 1317 u16 ring_id, slots; in xgene_enet_create_desc_rings() local [all …]
|
| /drivers/ipack/carriers/ |
| A D | tpci200.c | 148 slot_irq = rcu_dereference(tpci200->slots[i].irq); in tpci200_interrupt() 174 if (tpci200->slots[dev->slot].irq == NULL) { in tpci200_free_irq() 180 slot_irq = tpci200->slots[dev->slot].irq; in tpci200_free_irq() 182 RCU_INIT_POINTER(tpci200->slots[dev->slot].irq, NULL); in tpci200_free_irq() 203 if (tpci200->slots[dev->slot].irq != NULL) { in tpci200_request_irq() 231 rcu_assign_pointer(tpci200->slots[dev->slot].irq, slot_irq); in tpci200_request_irq() 447 kfree(tpci200->slots); in tpci200_uninstall() 464 tpci200->slots = kcalloc(TPCI200_NB_SLOT, sizeof(struct tpci200_slot), in tpci200_install() 466 if (tpci200->slots == NULL) in tpci200_install() 471 kfree(tpci200->slots); in tpci200_install() [all …]
|
| /drivers/gpu/drm/amd/display/dc/dio/dcn10/ |
| A D | dcn10_link_encoder.c | 1209 uint32_t *slots) in fill_stream_allocation_row_info() argument 1218 *slots = 0; in fill_stream_allocation_row_info() 1230 uint32_t slots = 0; in dcn10_link_encoder_update_mst_stream_allocation_table() local 1248 &slots); in dcn10_link_encoder_update_mst_stream_allocation_table() 1251 slots = 0; in dcn10_link_encoder_update_mst_stream_allocation_table() 1262 &slots); in dcn10_link_encoder_update_mst_stream_allocation_table() 1265 slots = 0; in dcn10_link_encoder_update_mst_stream_allocation_table() 1276 &slots); in dcn10_link_encoder_update_mst_stream_allocation_table() 1279 slots = 0; in dcn10_link_encoder_update_mst_stream_allocation_table() 1290 &slots); in dcn10_link_encoder_update_mst_stream_allocation_table() [all …]
|
| /drivers/misc/cb710/ |
| A D | core.c | 73 for (nr = chip->slots; nr; ++slot, --nr) { in cb710_irq_handler() 98 int nr = chip->slots; in cb710_register_slot() 108 ++chip->slots; in cb710_register_slot() 129 --chip->slots; in cb710_register_slot() 141 int nr = chip->slots - 1; in cb710_unregister_slot() 153 --chip->slots; in cb710_unregister_slot()
|
| /drivers/net/ethernet/google/gve/ |
| A D | gve_rx.c | 30 u32 slots = rx->mask + 1; in gve_rx_unfill_pages() local 37 for (i = 0; i < slots; i++) in gve_rx_unfill_pages() 41 for (i = 0; i < slots; i++) in gve_rx_unfill_pages() 106 u32 slots = rx->mask + 1; in gve_rx_free_ring_gqi() local 185 u32 slots; in gve_rx_prefill_pages() local 193 slots = rx->mask + 1; in gve_rx_prefill_pages() 200 for (i = 0; i < slots; i++) { in gve_rx_prefill_pages() 238 return slots; in gve_rx_prefill_pages() 279 u32 slots = cfg->ring_size; in gve_rx_alloc_ring_gqi() local 294 rx->mask = slots - 1; in gve_rx_alloc_ring_gqi() [all …]
|
| /drivers/gpu/drm/amd/amdgpu/ |
| A D | amdgpu_mes_ctx.h | 68 struct amdgpu_wb_slot slots[AMDGPU_MES_CTX_MAX_OFFS]; member 82 struct amdgpu_wb_slot slots[AMDGPU_MES_CTX_MAX_OFFS]; member 97 struct amdgpu_wb_slot slots[AMDGPU_MES_CTX_MAX_OFFS]; member
|
| /drivers/mmc/host/ |
| A D | sdhci-pci-core.c | 103 sdhci_resume_host(chip->slots[i]->host); in sdhci_pci_suspend_host() 113 slot = chip->slots[i]; in sdhci_pci_resume_host() 157 slot = chip->slots[i]; in sdhci_pci_runtime_suspend_host() 178 slot = chip->slots[i]; in sdhci_pci_runtime_resume_host() 849 slot->chip->slots[mmc->slotno] = slot; in byt_probe_slot() 2289 u8 slots, first_bar; in sdhci_pci_probe() local 2302 slots = PCI_SLOT_INFO_SLOTS(slots) + 1; in sdhci_pci_probe() 2305 BUG_ON(slots > MAX_SLOTS); in sdhci_pci_probe() 2333 chip->num_slots = slots; in sdhci_pci_probe() 2347 for (i = 0; i < slots; i++) { in sdhci_pci_probe() [all …]
|
| /drivers/gpu/drm/amd/display/dc/dce/ |
| A D | dce_link_encoder.c | 1486 uint32_t *slots) in fill_stream_allocation_row_info() argument 1495 *slots = 0; in fill_stream_allocation_row_info() 1507 uint32_t slots = 0; in dce110_link_encoder_update_mst_stream_allocation_table() local 1524 &slots); in dce110_link_encoder_update_mst_stream_allocation_table() 1527 slots = 0; in dce110_link_encoder_update_mst_stream_allocation_table() 1538 &slots); in dce110_link_encoder_update_mst_stream_allocation_table() 1541 slots = 0; in dce110_link_encoder_update_mst_stream_allocation_table() 1552 &slots); in dce110_link_encoder_update_mst_stream_allocation_table() 1555 slots = 0; in dce110_link_encoder_update_mst_stream_allocation_table() 1566 &slots); in dce110_link_encoder_update_mst_stream_allocation_table() [all …]
|
| /drivers/gpu/drm/omapdrm/ |
| A D | tcm.h | 70 s32 (*reserve_1d)(struct tcm *tcm, u32 slots, struct tcm_area *area); 165 static inline s32 tcm_reserve_1d(struct tcm *tcm, u32 slots, in tcm_reserve_1d() argument 170 (area == NULL || slots == 0) ? -EINVAL : in tcm_reserve_1d() 171 slots > (tcm->width * (u32) tcm->height) ? -ENOMEM : 0; in tcm_reserve_1d() 175 res = tcm->reserve_1d(tcm, slots, area); in tcm_reserve_1d()
|
| /drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
| A D | vdec_av1_req_lat_if.c | 663 struct vdec_av1_slice_slot slots; member 719 struct vdec_av1_slice_slot slots; member 832 struct vdec_av1_slice_slot *slots = &vsi->slots; in vdec_av1_slice_get_new_slot() local 837 if (slots->frame_info[i].ref_count == 0) { in vdec_av1_slice_get_new_slot() 844 slots->frame_info[new_slot_idx].ref_count++; in vdec_av1_slice_get_new_slot() 880 u64 timestamp = slots->timestamp[slot_id]; in vdec_av1_slice_cleanup_slots() 907 memcpy(&vsi->slots, &instance->slots, sizeof(instance->slots)); in vdec_av1_slice_setup_slot() 1496 struct vdec_av1_slice_slot *slots = &vsi->slots; in vdec_av1_slice_setup_ref() local 1500 &slots->frame_info[vsi->slot_id]; in vdec_av1_slice_setup_ref() 1512 frame_info = &slots->frame_info[slot_id]; in vdec_av1_slice_setup_ref() [all …]
|