/drivers/acpi/ |
D | nvs.c | 97 struct nvs_page *entry, *next; in suspend_nvs_register() local 105 entry = kzalloc(sizeof(struct nvs_page), GFP_KERNEL); in suspend_nvs_register() 106 if (!entry) in suspend_nvs_register() 109 list_add_tail(&entry->node, &nvs_list); in suspend_nvs_register() 110 entry->phys_start = start; in suspend_nvs_register() 112 entry->size = (size < nr_bytes) ? size : nr_bytes; in suspend_nvs_register() 114 start += entry->size; in suspend_nvs_register() 115 size -= entry->size; in suspend_nvs_register() 120 list_for_each_entry_safe(entry, next, &nvs_list, node) { in suspend_nvs_register() 121 list_del(&entry->node); in suspend_nvs_register() [all …]
|
D | pci_irq.c | 108 static void do_prt_fixups(struct acpi_prt_entry *entry, in do_prt_fixups() argument 119 entry->id.segment == quirk->segment && in do_prt_fixups() 120 entry->id.bus == quirk->bus && in do_prt_fixups() 121 entry->id.device == quirk->device && in do_prt_fixups() 122 entry->pin == quirk->pin && in do_prt_fixups() 128 entry->id.segment, entry->id.bus, in do_prt_fixups() 129 entry->id.device, pin_name(entry->pin), in do_prt_fixups() 143 struct acpi_prt_entry *entry; in acpi_pci_irq_check_entry() local 149 entry = kzalloc(sizeof(struct acpi_prt_entry), GFP_KERNEL); in acpi_pci_irq_check_entry() 150 if (!entry) in acpi_pci_irq_check_entry() [all …]
|
/drivers/firmware/ |
D | memmap.c | 43 static ssize_t start_show(struct firmware_map_entry *entry, char *buf); 44 static ssize_t end_show(struct firmware_map_entry *entry, char *buf); 45 static ssize_t type_show(struct firmware_map_entry *entry, char *buf); 56 ssize_t (*show)(struct firmware_map_entry *entry, char *buf); 100 struct firmware_map_entry *entry = to_memmap_entry(kobj); in release_firmware_map_entry() local 102 if (PageReserved(virt_to_page(entry))) { in release_firmware_map_entry() 110 list_add(&entry->list, &map_entries_bootmem); in release_firmware_map_entry() 116 kfree(entry); in release_firmware_map_entry() 144 struct firmware_map_entry *entry) in firmware_map_add_entry() argument 148 entry->start = start; in firmware_map_add_entry() [all …]
|
D | dmi-sysfs.c | 54 ssize_t (*show)(struct dmi_sysfs_entry *entry, char *buf); 69 ssize_t (*show)(struct dmi_sysfs_entry *entry, 101 struct dmi_sysfs_entry *entry = to_entry(kobj); in dmi_sysfs_attr_show() local 108 return attr->show(entry, buf); in dmi_sysfs_attr_show() 119 struct dmi_sysfs_entry *entry; member 130 struct dmi_sysfs_entry *entry = data->entry; in find_dmi_entry_helper() local 133 if (dh->type != entry->dh.type) in find_dmi_entry_helper() 149 data->ret = data->callback(entry, dh, data->private); in find_dmi_entry_helper() 159 static ssize_t find_dmi_entry(struct dmi_sysfs_entry *entry, in find_dmi_entry() argument 163 .entry = entry, in find_dmi_entry() [all …]
|
/drivers/staging/media/atomisp/pci/base/refcount/src/ |
D | refcount.c | 98 struct ia_css_refcount_entry *entry; in ia_css_refcount_uninit() local 108 entry = myrefcount.items + i; in ia_css_refcount_uninit() 109 if (entry->data != mmgr_NULL) { in ia_css_refcount_uninit() 113 hmm_free(entry->data); in ia_css_refcount_uninit() 114 entry->data = mmgr_NULL; in ia_css_refcount_uninit() 115 entry->count = 0; in ia_css_refcount_uninit() 116 entry->id = 0; in ia_css_refcount_uninit() 128 struct ia_css_refcount_entry *entry; in ia_css_refcount_increment() local 133 entry = refcount_find_entry(ptr, false); in ia_css_refcount_increment() 138 if (!entry) { in ia_css_refcount_increment() [all …]
|
/drivers/net/dsa/sja1105/ |
D | sja1105_static_config.c | 98 struct sja1105_avb_params_entry *entry = entry_ptr; in sja1105et_avb_params_entry_packing() local 100 sja1105_packing(buf, &entry->destmeta, 95, 48, size, op); in sja1105et_avb_params_entry_packing() 101 sja1105_packing(buf, &entry->srcmeta, 47, 0, size, op); in sja1105et_avb_params_entry_packing() 109 struct sja1105_avb_params_entry *entry = entry_ptr; in sja1105pqrs_avb_params_entry_packing() local 111 sja1105_packing(buf, &entry->cas_master, 126, 126, size, op); in sja1105pqrs_avb_params_entry_packing() 112 sja1105_packing(buf, &entry->destmeta, 125, 78, size, op); in sja1105pqrs_avb_params_entry_packing() 113 sja1105_packing(buf, &entry->srcmeta, 77, 30, size, op); in sja1105pqrs_avb_params_entry_packing() 121 struct sja1105_general_params_entry *entry = entry_ptr; in sja1105et_general_params_entry_packing() local 123 sja1105_packing(buf, &entry->vllupformat, 319, 319, size, op); in sja1105et_general_params_entry_packing() 124 sja1105_packing(buf, &entry->mirr_ptacu, 318, 318, size, op); in sja1105et_general_params_entry_packing() [all …]
|
/drivers/gpu/drm/ |
D | drm_scatter.c | 46 static void drm_sg_cleanup(struct drm_sg_mem * entry) in drm_sg_cleanup() argument 51 for (i = 0; i < entry->pages; i++) { in drm_sg_cleanup() 52 page = entry->pagelist[i]; in drm_sg_cleanup() 57 vfree(entry->virtual); in drm_sg_cleanup() 59 kfree(entry->busaddr); in drm_sg_cleanup() 60 kfree(entry->pagelist); in drm_sg_cleanup() 61 kfree(entry); in drm_sg_cleanup() 82 struct drm_sg_mem *entry; in drm_legacy_sg_alloc() local 99 entry = kzalloc(sizeof(*entry), GFP_KERNEL); in drm_legacy_sg_alloc() 100 if (!entry) in drm_legacy_sg_alloc() [all …]
|
/drivers/media/platform/nvidia/tegra-vde/ |
D | dmabuf-cache.c | 32 static void tegra_vde_release_entry(struct tegra_vde_cache_entry *entry) in tegra_vde_release_entry() argument 34 struct dma_buf *dmabuf = entry->a->dmabuf; in tegra_vde_release_entry() 36 WARN_ON_ONCE(entry->refcnt); in tegra_vde_release_entry() 38 if (entry->vde->domain) in tegra_vde_release_entry() 39 tegra_vde_iommu_unmap(entry->vde, entry->iova); in tegra_vde_release_entry() 41 dma_buf_unmap_attachment(entry->a, entry->sgt, entry->dma_dir); in tegra_vde_release_entry() 42 dma_buf_detach(dmabuf, entry->a); in tegra_vde_release_entry() 45 list_del(&entry->list); in tegra_vde_release_entry() 46 kfree(entry); in tegra_vde_release_entry() 51 struct tegra_vde_cache_entry *entry; in tegra_vde_delayed_unmap() local [all …]
|
/drivers/scsi/libfc/ |
D | fc_encode.h | 166 static inline void fc_ct_ms_fill_attr(struct fc_fdmi_attr_entry *entry, in fc_ct_ms_fill_attr() argument 171 copied = strscpy(entry->value, in, len); in fc_ct_ms_fill_attr() 173 memset(entry->value + copied + 1, 0, len - copied - 1); in fc_ct_ms_fill_attr() 192 struct fc_fdmi_attr_entry *entry; in fc_ct_ms_fill() local 241 entry = (struct fc_fdmi_attr_entry *)hba_attrs->attr; in fc_ct_ms_fill() 246 &entry->type); in fc_ct_ms_fill() 247 put_unaligned_be16(len, &entry->len); in fc_ct_ms_fill() 249 (__be64 *)&entry->value); in fc_ct_ms_fill() 252 entry = (struct fc_fdmi_attr_entry *)((char *)entry->value + in fc_ct_ms_fill() 257 &entry->type); in fc_ct_ms_fill() [all …]
|
/drivers/platform/x86/intel/pmt/ |
D | class.c | 69 struct intel_pmt_entry *entry = container_of(attr, in intel_pmt_read() local 76 if (off >= entry->size) in intel_pmt_read() 79 if (count > entry->size - off) in intel_pmt_read() 80 count = entry->size - off; in intel_pmt_read() 82 if (entry->guid == GUID_SPR_PUNIT) in intel_pmt_read() 84 count = pmt_memcpy64_fromio(buf, entry->base + off, count); in intel_pmt_read() 86 memcpy_fromio(buf, entry->base + off, count); in intel_pmt_read() 95 struct intel_pmt_entry *entry = container_of(attr, in intel_pmt_mmap() local 100 unsigned long phys = entry->base_addr; in intel_pmt_mmap() 107 psize = (PFN_UP(entry->base_addr + entry->size) - pfn) * PAGE_SIZE; in intel_pmt_mmap() [all …]
|
D | crashlog.c | 53 struct intel_pmt_entry entry; member 59 struct crashlog_entry entry[]; member 65 static bool pmt_crashlog_complete(struct intel_pmt_entry *entry) in pmt_crashlog_complete() argument 67 u32 control = readl(entry->disc_table + CONTROL_OFFSET); in pmt_crashlog_complete() 73 static bool pmt_crashlog_disabled(struct intel_pmt_entry *entry) in pmt_crashlog_disabled() argument 75 u32 control = readl(entry->disc_table + CONTROL_OFFSET); in pmt_crashlog_disabled() 81 static bool pmt_crashlog_supported(struct intel_pmt_entry *entry) in pmt_crashlog_supported() argument 83 u32 discovery_header = readl(entry->disc_table + CONTROL_OFFSET); in pmt_crashlog_supported() 96 static void pmt_crashlog_set_disable(struct intel_pmt_entry *entry, in pmt_crashlog_set_disable() argument 99 u32 control = readl(entry->disc_table + CONTROL_OFFSET); in pmt_crashlog_set_disable() [all …]
|
/drivers/gpu/drm/amd/pm/powerplay/smumgr/ |
D | vega10_smumgr.c | 46 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega10_copy_table_from_smc() 48 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega10_copy_table_from_smc() 52 upper_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega10_copy_table_from_smc() 56 lower_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega10_copy_table_from_smc() 60 priv->smu_tables.entry[table_id].table_id, in vega10_copy_table_from_smc() 65 memcpy(table, priv->smu_tables.entry[table_id].table, in vega10_copy_table_from_smc() 66 priv->smu_tables.entry[table_id].size); in vega10_copy_table_from_smc() 85 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega10_copy_table_to_smc() 87 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega10_copy_table_to_smc() 90 memcpy(priv->smu_tables.entry[table_id].table, table, in vega10_copy_table_to_smc() [all …]
|
D | vega12_smumgr.c | 49 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega12_copy_table_from_smc() 51 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega12_copy_table_from_smc() 55 upper_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega12_copy_table_from_smc() 60 lower_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega12_copy_table_from_smc() 73 memcpy(table, priv->smu_tables.entry[table_id].table, in vega12_copy_table_from_smc() 74 priv->smu_tables.entry[table_id].size); in vega12_copy_table_from_smc() 93 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega12_copy_table_to_smc() 95 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega12_copy_table_to_smc() 98 memcpy(priv->smu_tables.entry[table_id].table, table, in vega12_copy_table_to_smc() 99 priv->smu_tables.entry[table_id].size); in vega12_copy_table_to_smc() [all …]
|
D | vega20_smumgr.c | 173 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega20_copy_table_from_smc() 175 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega20_copy_table_from_smc() 180 upper_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega20_copy_table_from_smc() 186 lower_32_bits(priv->smu_tables.entry[table_id].mc_addr), in vega20_copy_table_from_smc() 197 memcpy(table, priv->smu_tables.entry[table_id].table, in vega20_copy_table_from_smc() 198 priv->smu_tables.entry[table_id].size); in vega20_copy_table_from_smc() 218 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].version != 0, in vega20_copy_table_to_smc() 220 PP_ASSERT_WITH_CODE(priv->smu_tables.entry[table_id].size != 0, in vega20_copy_table_to_smc() 223 memcpy(priv->smu_tables.entry[table_id].table, table, in vega20_copy_table_to_smc() 224 priv->smu_tables.entry[table_id].size); in vega20_copy_table_to_smc() [all …]
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_cmdbuf_res.c | 106 struct vmw_cmdbuf_res *entry) in vmw_cmdbuf_res_free() argument 108 list_del(&entry->head); in vmw_cmdbuf_res_free() 109 hash_del_rcu(&entry->hash.head); in vmw_cmdbuf_res_free() 110 vmw_resource_unreference(&entry->res); in vmw_cmdbuf_res_free() 111 kfree(entry); in vmw_cmdbuf_res_free() 126 struct vmw_cmdbuf_res *entry, *next; in vmw_cmdbuf_res_commit() local 128 list_for_each_entry_safe(entry, next, list, head) { in vmw_cmdbuf_res_commit() 129 list_del(&entry->head); in vmw_cmdbuf_res_commit() 130 if (entry->res->func->commit_notify) in vmw_cmdbuf_res_commit() 131 entry->res->func->commit_notify(entry->res, in vmw_cmdbuf_res_commit() [all …]
|
/drivers/net/ethernet/rocker/ |
D | rocker_ofdpa.c | 93 struct hlist_node entry; member 103 struct hlist_node entry; member 129 struct hlist_node entry; member 141 struct hlist_node entry; member 148 struct hlist_node entry; member 306 const struct ofdpa_flow_tbl_entry *entry) in ofdpa_cmd_flow_tbl_add_ig_port() argument 309 entry->key.ig_port.in_pport)) in ofdpa_cmd_flow_tbl_add_ig_port() 312 entry->key.ig_port.in_pport_mask)) in ofdpa_cmd_flow_tbl_add_ig_port() 315 entry->key.ig_port.goto_tbl)) in ofdpa_cmd_flow_tbl_add_ig_port() 323 const struct ofdpa_flow_tbl_entry *entry) in ofdpa_cmd_flow_tbl_add_vlan() argument [all …]
|
/drivers/infiniband/core/ |
D | ib_core_uverbs.c | 32 struct rdma_user_mmap_entry *entry) in rdma_umap_priv_init() argument 37 if (entry) { in rdma_umap_priv_init() 38 kref_get(&entry->ref); in rdma_umap_priv_init() 39 priv->entry = entry; in rdma_umap_priv_init() 69 struct rdma_user_mmap_entry *entry) in rdma_user_mmap_io() argument 96 rdma_umap_priv_init(priv, vma, entry); in rdma_user_mmap_io() 120 struct rdma_user_mmap_entry *entry; in rdma_user_mmap_entry_get_pgoff() local 127 entry = xa_load(&ucontext->mmap_xa, pgoff); in rdma_user_mmap_entry_get_pgoff() 134 if (!entry || entry->start_pgoff != pgoff || entry->driver_removed || in rdma_user_mmap_entry_get_pgoff() 135 !kref_get_unless_zero(&entry->ref)) in rdma_user_mmap_entry_get_pgoff() [all …]
|
/drivers/misc/vmw_vmci/ |
D | vmci_queue_pair.c | 807 struct qp_entry *entry; in qp_list_find() local 812 list_for_each_entry(entry, &qp_list->head, list_item) { in qp_list_find() 813 if (vmci_handle_is_equal(entry->handle, handle)) in qp_list_find() 814 return entry; in qp_list_find() 826 struct qp_guest_endpoint *entry; in qp_guest_handle_to_entry() local 829 entry = qp ? container_of( in qp_guest_handle_to_entry() 831 return entry; in qp_guest_handle_to_entry() 840 struct qp_broker_entry *entry; in qp_broker_handle_to_entry() local 843 entry = qp ? container_of( in qp_broker_handle_to_entry() 845 return entry; in qp_broker_handle_to_entry() [all …]
|
/drivers/net/dsa/mv88e6xxx/ |
D | global1_vtu.c | 21 struct mv88e6xxx_vtu_entry *entry) in mv88e6xxx_g1_vtu_fid_read() argument 30 entry->fid = val & MV88E6352_G1_VTU_FID_MASK; in mv88e6xxx_g1_vtu_fid_read() 31 entry->policy = !!(val & MV88E6352_G1_VTU_FID_VID_POLICY); in mv88e6xxx_g1_vtu_fid_read() 36 struct mv88e6xxx_vtu_entry *entry) in mv88e6xxx_g1_vtu_fid_write() argument 38 u16 val = entry->fid & MV88E6352_G1_VTU_FID_MASK; in mv88e6xxx_g1_vtu_fid_write() 40 if (entry->policy) in mv88e6xxx_g1_vtu_fid_write() 261 struct mv88e6xxx_vtu_entry *entry) in mv88e6xxx_g1_vtu_getnext() argument 276 if (!entry->valid) { in mv88e6xxx_g1_vtu_getnext() 277 err = mv88e6xxx_g1_vtu_vid_write(chip, false, entry->vid); in mv88e6xxx_g1_vtu_getnext() 286 return mv88e6xxx_g1_vtu_vid_read(chip, &entry->valid, &entry->vid); in mv88e6xxx_g1_vtu_getnext() [all …]
|
/drivers/isdn/mISDN/ |
D | dsp_pipeline.c | 62 struct dsp_element_entry *entry = in mISDN_dsp_dev_release() local 64 list_del(&entry->list); in mISDN_dsp_dev_release() 65 kfree(entry); in mISDN_dsp_dev_release() 70 struct dsp_element_entry *entry; in mISDN_dsp_element_register() local 76 entry = kzalloc(sizeof(struct dsp_element_entry), GFP_ATOMIC); in mISDN_dsp_element_register() 77 if (!entry) in mISDN_dsp_element_register() 80 INIT_LIST_HEAD(&entry->list); in mISDN_dsp_element_register() 81 entry->elem = elem; in mISDN_dsp_element_register() 83 entry->dev.class = elements_class; in mISDN_dsp_element_register() 84 entry->dev.release = mISDN_dsp_dev_release; in mISDN_dsp_element_register() [all …]
|
/drivers/net/ethernet/mediatek/ |
D | mtk_ppe.c | 132 mtk_foe_entry_l2(struct mtk_eth *eth, struct mtk_foe_entry *entry) in mtk_foe_entry_l2() argument 134 int type = mtk_get_ib1_pkt_type(eth, entry->ib1); in mtk_foe_entry_l2() 137 return &entry->bridge.l2; in mtk_foe_entry_l2() 140 return &entry->ipv6.l2; in mtk_foe_entry_l2() 142 return &entry->ipv4.l2; in mtk_foe_entry_l2() 146 mtk_foe_entry_ib2(struct mtk_eth *eth, struct mtk_foe_entry *entry) in mtk_foe_entry_ib2() argument 148 int type = mtk_get_ib1_pkt_type(eth, entry->ib1); in mtk_foe_entry_ib2() 151 return &entry->bridge.ib2; in mtk_foe_entry_ib2() 154 return &entry->ipv6.ib2; in mtk_foe_entry_ib2() 156 return &entry->ipv4.ib2; in mtk_foe_entry_ib2() [all …]
|
/drivers/hid/ |
D | hid-lg4ff.c | 303 struct lg4ff_device_entry *entry = drv_data->device_props; in lg4ff_adjust_input_event() local 306 if (!entry) { in lg4ff_adjust_input_event() 311 switch (entry->wdata.product_id) { in lg4ff_adjust_input_event() 315 new_value = lg4ff_adjust_dfp_x_axis(value, entry->wdata.range); in lg4ff_adjust_input_event() 330 struct lg4ff_device_entry *entry = drv_data->device_props; in lg4ff_raw_event() local 332 if (!entry) in lg4ff_raw_event() 336 if (entry->wdata.combine) { in lg4ff_raw_event() 337 switch (entry->wdata.product_id) { in lg4ff_raw_event() 409 struct lg4ff_device_entry *entry; in lg4ff_play() local 421 entry = drv_data->device_props; in lg4ff_play() [all …]
|
/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_debugfs.c | 60 struct mvpp2_dbgfs_flow_tbl_entry *entry = s->private; in mvpp2_dbgfs_flow_flt_hits_show() local 62 u32 hits = mvpp2_cls_flow_hits(entry->priv, entry->id); in mvpp2_dbgfs_flow_flt_hits_show() 73 struct mvpp2_dbgfs_flow_entry *entry = s->private; in mvpp2_dbgfs_flow_dec_hits_show() local 75 u32 hits = mvpp2_cls_lookup_hits(entry->priv, entry->flow); in mvpp2_dbgfs_flow_dec_hits_show() 86 struct mvpp2_dbgfs_flow_entry *entry = s->private; in mvpp2_dbgfs_flow_type_show() local 90 f = mvpp2_cls_flow_get(entry->flow); in mvpp2_dbgfs_flow_type_show() 126 const struct mvpp2_dbgfs_flow_entry *entry = s->private; in mvpp2_dbgfs_flow_id_show() local 129 f = mvpp2_cls_flow_get(entry->flow); in mvpp2_dbgfs_flow_id_show() 142 struct mvpp2_dbgfs_port_flow_entry *entry = s->private; in mvpp2_dbgfs_port_flow_hash_opt_show() local 143 struct mvpp2_port *port = entry->port; in mvpp2_dbgfs_port_flow_hash_opt_show() [all …]
|
/drivers/net/ethernet/marvell/prestera/ |
D | prestera_span.c | 28 struct prestera_span_entry *entry; in prestera_span_entry_create() local 30 entry = kzalloc(sizeof(*entry), GFP_KERNEL); in prestera_span_entry_create() 31 if (!entry) in prestera_span_entry_create() 34 refcount_set(&entry->ref_count, 1); in prestera_span_entry_create() 35 entry->port = port; in prestera_span_entry_create() 36 entry->id = span_id; in prestera_span_entry_create() 37 list_add_tail(&entry->list, &port->sw->span->entries); in prestera_span_entry_create() 39 return entry; in prestera_span_entry_create() 42 static void prestera_span_entry_del(struct prestera_span_entry *entry) in prestera_span_entry_del() argument 44 list_del(&entry->list); in prestera_span_entry_del() [all …]
|
/drivers/net/ethernet/stmicro/stmmac/ |
D | stmmac_tc.c | 14 static void tc_fill_all_pass_entry(struct stmmac_tc_entry *entry) in tc_fill_all_pass_entry() argument 16 memset(entry, 0, sizeof(*entry)); in tc_fill_all_pass_entry() 17 entry->in_use = true; in tc_fill_all_pass_entry() 18 entry->is_last = true; in tc_fill_all_pass_entry() 19 entry->is_frag = false; in tc_fill_all_pass_entry() 20 entry->prio = ~0x0; in tc_fill_all_pass_entry() 21 entry->handle = 0; in tc_fill_all_pass_entry() 22 entry->val.match_data = 0x0; in tc_fill_all_pass_entry() 23 entry->val.match_en = 0x0; in tc_fill_all_pass_entry() 24 entry->val.af = 1; in tc_fill_all_pass_entry() [all …]
|