/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_resource.c | 40 void vmw_resource_mob_attach(struct vmw_resource *res) in vmw_resource_mob_attach() argument 42 struct vmw_buffer_object *backup = res->backup; in vmw_resource_mob_attach() 45 dma_resv_assert_held(res->backup->base.base.resv); in vmw_resource_mob_attach() 46 res->used_prio = (res->res_dirty) ? res->func->dirty_prio : in vmw_resource_mob_attach() 47 res->func->prio; in vmw_resource_mob_attach() 54 new = (res->backup_offset < this->backup_offset) ? in vmw_resource_mob_attach() 58 rb_link_node(&res->mob_node, parent, new); in vmw_resource_mob_attach() 59 rb_insert_color(&res->mob_node, &backup->res_tree); in vmw_resource_mob_attach() 61 vmw_bo_prio_add(backup, res->used_prio); in vmw_resource_mob_attach() 68 void vmw_resource_mob_detach(struct vmw_resource *res) in vmw_resource_mob_detach() argument [all …]
|
D | vmwgfx_context.c | 36 struct vmw_resource res; member 44 static void vmw_user_context_free(struct vmw_resource *res); 48 static int vmw_gb_context_create(struct vmw_resource *res); 49 static int vmw_gb_context_bind(struct vmw_resource *res, 51 static int vmw_gb_context_unbind(struct vmw_resource *res, 54 static int vmw_gb_context_destroy(struct vmw_resource *res); 55 static int vmw_dx_context_create(struct vmw_resource *res); 56 static int vmw_dx_context_bind(struct vmw_resource *res, 58 static int vmw_dx_context_unbind(struct vmw_resource *res, 61 static int vmw_dx_context_destroy(struct vmw_resource *res); [all …]
|
D | vmwgfx_shader.c | 35 struct vmw_resource res; member 48 struct vmw_resource res; member 60 static void vmw_user_shader_free(struct vmw_resource *res); 64 static int vmw_gb_shader_create(struct vmw_resource *res); 65 static int vmw_gb_shader_bind(struct vmw_resource *res, 67 static int vmw_gb_shader_unbind(struct vmw_resource *res, 70 static int vmw_gb_shader_destroy(struct vmw_resource *res); 72 static int vmw_dx_shader_create(struct vmw_resource *res); 73 static int vmw_dx_shader_bind(struct vmw_resource *res, 75 static int vmw_dx_shader_unbind(struct vmw_resource *res, [all …]
|
D | vmwgfx_cotable.c | 51 struct vmw_resource res; member 109 static int vmw_cotable_bind(struct vmw_resource *res, 111 static int vmw_cotable_unbind(struct vmw_resource *res, 114 static int vmw_cotable_create(struct vmw_resource *res); 115 static int vmw_cotable_destroy(struct vmw_resource *res); 137 static struct vmw_cotable *vmw_cotable(struct vmw_resource *res) in vmw_cotable() argument 139 return container_of(res, struct vmw_cotable, res); in vmw_cotable() 150 static int vmw_cotable_destroy(struct vmw_resource *res) in vmw_cotable_destroy() argument 152 res->id = -1; in vmw_cotable_destroy() 165 static int vmw_cotable_unscrub(struct vmw_resource *res) in vmw_cotable_unscrub() argument [all …]
|
D | vmwgfx_streamoutput.c | 46 struct vmw_resource res; member 55 static int vmw_dx_streamoutput_create(struct vmw_resource *res); 56 static int vmw_dx_streamoutput_bind(struct vmw_resource *res, 58 static int vmw_dx_streamoutput_unbind(struct vmw_resource *res, bool readback, 60 static void vmw_dx_streamoutput_commit_notify(struct vmw_resource *res, 79 vmw_res_to_dx_streamoutput(struct vmw_resource *res) in vmw_res_to_dx_streamoutput() argument 81 return container_of(res, struct vmw_dx_streamoutput, res); in vmw_res_to_dx_streamoutput() 90 static int vmw_dx_streamoutput_unscrub(struct vmw_resource *res) in vmw_dx_streamoutput_unscrub() argument 92 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res); in vmw_dx_streamoutput_unscrub() 93 struct vmw_private *dev_priv = res->dev_priv; in vmw_dx_streamoutput_unscrub() [all …]
|
D | vmwgfx_so.c | 62 struct vmw_resource res; member 75 static int vmw_view_create(struct vmw_resource *res); 76 static int vmw_view_destroy(struct vmw_resource *res); 77 static void vmw_hw_view_destroy(struct vmw_resource *res); 78 static void vmw_view_commit_notify(struct vmw_resource *res, 112 static struct vmw_view *vmw_view(struct vmw_resource *res) in vmw_view() argument 114 return container_of(res, struct vmw_view, res); in vmw_view() 125 static void vmw_view_commit_notify(struct vmw_resource *res, in vmw_view_commit_notify() argument 128 struct vmw_view *view = vmw_view(res); in vmw_view_commit_notify() 129 struct vmw_private *dev_priv = res->dev_priv; in vmw_view_commit_notify() [all …]
|
/drivers/pci/controller/dwc/ |
D | pcie-qcom.c | 188 union qcom_pcie_resources res; member 236 struct qcom_pcie_resources_2_1_0 *res = &pcie->res.v2_1_0; in qcom_pcie_get_resources_2_1_0() local 241 res->supplies[0].supply = "vdda"; in qcom_pcie_get_resources_2_1_0() 242 res->supplies[1].supply = "vdda_phy"; in qcom_pcie_get_resources_2_1_0() 243 res->supplies[2].supply = "vdda_refclk"; in qcom_pcie_get_resources_2_1_0() 244 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(res->supplies), in qcom_pcie_get_resources_2_1_0() 245 res->supplies); in qcom_pcie_get_resources_2_1_0() 249 res->clks[0].id = "iface"; in qcom_pcie_get_resources_2_1_0() 250 res->clks[1].id = "core"; in qcom_pcie_get_resources_2_1_0() 251 res->clks[2].id = "phy"; in qcom_pcie_get_resources_2_1_0() [all …]
|
/drivers/infiniband/core/ |
D | restrack.c | 28 dev->res = kcalloc(RDMA_RESTRACK_MAX, sizeof(*rt), GFP_KERNEL); in rdma_restrack_init() 29 if (!dev->res) in rdma_restrack_init() 32 rt = dev->res; in rdma_restrack_init() 61 struct rdma_restrack_root *rt = dev->res; in rdma_restrack_clean() 69 struct xarray *xa = &dev->res[i].xa; in rdma_restrack_clean() 113 struct rdma_restrack_root *rt = &dev->res[type]; in rdma_restrack_count() 126 static struct ib_device *res_to_dev(struct rdma_restrack_entry *res) in res_to_dev() argument 128 switch (res->type) { in res_to_dev() 130 return container_of(res, struct ib_pd, res)->device; in res_to_dev() 132 return container_of(res, struct ib_cq, res)->device; in res_to_dev() [all …]
|
/drivers/media/platform/omap3isp/ |
D | ispresizer.c | 117 __resizer_get_format(struct isp_res_device *res, struct v4l2_subdev_pad_config *cfg, in __resizer_get_format() argument 121 return v4l2_subdev_get_try_format(&res->subdev, cfg, pad); in __resizer_get_format() 123 return &res->formats[pad]; in __resizer_get_format() 133 __resizer_get_crop(struct isp_res_device *res, struct v4l2_subdev_pad_config *cfg, in __resizer_get_crop() argument 137 return v4l2_subdev_get_try_crop(&res->subdev, cfg, RESZ_PAD_SINK); in __resizer_get_crop() 139 return &res->crop.request; in __resizer_get_crop() 149 static void resizer_set_filters(struct isp_res_device *res, const u16 *h_coeff, in resizer_set_filters() argument 152 struct isp_device *isp = to_isp_device(res); in resizer_set_filters() 180 static void resizer_set_bilinear(struct isp_res_device *res, in resizer_set_bilinear() argument 183 struct isp_device *isp = to_isp_device(res); in resizer_set_bilinear() [all …]
|
/drivers/pnp/ |
D | manager.c | 27 struct resource *res = pnp_get_resource(dev, type, bar); in pnp_find_resource() local 30 if (res) { in pnp_find_resource() 31 res->flags &= ~IORESOURCE_BITS; in pnp_find_resource() 32 res->flags |= rule & IORESOURCE_BITS; in pnp_find_resource() 35 return res; in pnp_find_resource() 40 struct resource *res, local_res; in pnp_assign_port() local 42 res = pnp_find_resource(dev, rule->flags, IORESOURCE_IO, idx); in pnp_assign_port() 43 if (res) { in pnp_assign_port() 45 "flags %#lx\n", idx, (unsigned long long) res->start, in pnp_assign_port() 46 (unsigned long long) res->end, res->flags); in pnp_assign_port() [all …]
|
D | resource.c | 166 int pnp_check_port(struct pnp_dev *dev, struct resource *res) in pnp_check_port() argument 173 port = &res->start; in pnp_check_port() 174 end = &res->end; in pnp_check_port() 177 if (cannot_compare(res->flags)) in pnp_check_port() 198 if (tres != res && tres->flags & IORESOURCE_IO) { in pnp_check_port() 229 int pnp_check_mem(struct pnp_dev *dev, struct resource *res) in pnp_check_mem() argument 236 addr = &res->start; in pnp_check_mem() 237 end = &res->end; in pnp_check_mem() 240 if (cannot_compare(res->flags)) in pnp_check_mem() 261 if (tres != res && tres->flags & IORESOURCE_MEM) { in pnp_check_mem() [all …]
|
/drivers/ps3/ |
D | ps3av_cmd.c | 145 int res; in ps3av_cmd_init() local 153 res = ps3av_do_pkt(PS3AV_CID_VIDEO_INIT, sizeof(video_init.send_hdr), in ps3av_cmd_init() 155 if (res < 0) in ps3av_cmd_init() 156 return res; in ps3av_cmd_init() 158 res = get_status(&video_init); in ps3av_cmd_init() 159 if (res) { in ps3av_cmd_init() 160 printk(KERN_ERR "PS3AV_CID_VIDEO_INIT: failed %x\n", res); in ps3av_cmd_init() 161 return res; in ps3av_cmd_init() 167 res = ps3av_do_pkt(PS3AV_CID_AUDIO_INIT, sizeof(audio_init.send_hdr), in ps3av_cmd_init() 169 if (res < 0) in ps3av_cmd_init() [all …]
|
/drivers/pci/ |
D | setup-res.c | 32 struct resource *res = dev->resource + resno; in pci_std_update_resource() local 42 if (!res->flags) in pci_std_update_resource() 45 if (res->flags & IORESOURCE_UNSET) in pci_std_update_resource() 53 if (res->flags & IORESOURCE_PCI_FIXED) in pci_std_update_resource() 56 pcibios_resource_to_bus(dev->bus, ®ion, res); in pci_std_update_resource() 59 if (res->flags & IORESOURCE_IO) { in pci_std_update_resource() 61 new |= res->flags & ~PCI_BASE_ADDRESS_IO_MASK; in pci_std_update_resource() 66 new |= res->flags & ~PCI_BASE_ADDRESS_MEM_MASK; in pci_std_update_resource() 79 if (!(res->flags & IORESOURCE_ROM_ENABLE)) in pci_std_update_resource() 92 disable = (res->flags & IORESOURCE_MEM_64) && !dev->mmio_always_on; in pci_std_update_resource() [all …]
|
D | setup-bus.c | 33 struct resource *res; member 61 struct resource *res, resource_size_t add_size, in add_to_list() argument 70 tmp->res = res; in add_to_list() 72 tmp->start = res->start; in add_to_list() 73 tmp->end = res->end; in add_to_list() 74 tmp->flags = res->flags; in add_to_list() 83 static void remove_from_list(struct list_head *head, struct resource *res) in remove_from_list() argument 88 if (dev_res->res == res) { in remove_from_list() 97 struct resource *res) in res_to_dev_res() argument 102 if (dev_res->res == res) in res_to_dev_res() [all …]
|
/drivers/pci/hotplug/ |
D | cpqphp_sysfs.c | 32 struct pci_resource *res; in show_ctrl() local 36 res = ctrl->mem_head; in show_ctrl() 37 while (res && index--) { in show_ctrl() 38 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_ctrl() 39 res = res->next; in show_ctrl() 43 res = ctrl->p_mem_head; in show_ctrl() 44 while (res && index--) { in show_ctrl() 45 out += sprintf(out, "start = %8.8x, length = %8.8x\n", res->base, res->length); in show_ctrl() 46 res = res->next; in show_ctrl() 50 res = ctrl->io_head; in show_ctrl() [all …]
|
D | ibmphp_res.c | 445 struct resource_node *res = NULL; in update_resources() local 451 res = bus_cur->firstMem; in update_resources() 455 res = bus_cur->firstPFMem; in update_resources() 459 res = bus_cur->firstIO; in update_resources() 463 if (res) { in update_resources() 464 while (res) { in update_resources() 465 if (res->rangeno == rangeno) in update_resources() 467 if (res->next) in update_resources() 468 res = res->next; in update_resources() 469 else if (res->nextRange) in update_resources() [all …]
|
/drivers/thunderbolt/ |
D | eeprom.c | 45 int res = tb_eeprom_ctl_read(sw, &ctl); in tb_eeprom_active() local 46 if (res) in tb_eeprom_active() 47 return res; in tb_eeprom_active() 50 res = tb_eeprom_ctl_write(sw, &ctl); in tb_eeprom_active() 51 if (res) in tb_eeprom_active() 52 return res; in tb_eeprom_active() 57 res = tb_eeprom_ctl_write(sw, &ctl); in tb_eeprom_active() 58 if (res) in tb_eeprom_active() 59 return res; in tb_eeprom_active() 74 int res; in tb_eeprom_transfer() local [all …]
|
/drivers/pcmcia/ |
D | rsrc_iodyn.c | 27 const struct resource *res, in pcmcia_align() argument 33 start = (res->start & ~data->mask) + data->offset; in pcmcia_align() 34 if (start < res->start) in pcmcia_align() 38 if (res->flags & IORESOURCE_IO) { in pcmcia_align() 45 if (res->flags & IORESOURCE_IO) { in pcmcia_align() 46 if ((res->start + size - 1) >= 1024) in pcmcia_align() 47 start = res->end; in pcmcia_align() 59 struct resource *res = pcmcia_make_resource(0, num, IORESOURCE_IO, in __iodyn_find_io_region() local 70 ret = pci_bus_alloc_resource(s->cb_dev->bus, res, num, 1, in __iodyn_find_io_region() 74 ret = allocate_resource(&ioport_resource, res, num, min, ~0UL, in __iodyn_find_io_region() [all …]
|
/drivers/gpu/drm/amd/display/dc/basics/ |
D | fixpt31_32.c | 69 struct fixed31_32 res; in dc_fixpt_from_fraction() local 111 res.value = (long long)res_value; in dc_fixpt_from_fraction() 114 res.value = -res.value; in dc_fixpt_from_fraction() 116 return res; in dc_fixpt_from_fraction() 121 struct fixed31_32 res; in dc_fixpt_mul() local 137 res.value = arg1_int * arg2_int; in dc_fixpt_mul() 139 ASSERT(res.value <= LONG_MAX); in dc_fixpt_mul() 141 res.value <<= FIXED31_32_BITS_PER_FRACTIONAL_PART; in dc_fixpt_mul() 145 ASSERT(tmp <= (unsigned long long)(LLONG_MAX - res.value)); in dc_fixpt_mul() 147 res.value += tmp; in dc_fixpt_mul() [all …]
|
/drivers/acpi/ |
D | resource.c | 23 static inline bool acpi_iospace_resource_valid(struct resource *res) in acpi_iospace_resource_valid() argument 26 return res->end < 0x10003; in acpi_iospace_resource_valid() 36 acpi_iospace_resource_valid(struct resource *res) { return true; } in acpi_iospace_resource_valid() argument 72 static void acpi_dev_memresource_flags(struct resource *res, u64 len, in acpi_dev_memresource_flags() argument 75 res->flags = IORESOURCE_MEM; in acpi_dev_memresource_flags() 77 if (!acpi_dev_resource_len_valid(res->start, res->end, len, false)) in acpi_dev_memresource_flags() 78 res->flags |= IORESOURCE_DISABLED | IORESOURCE_UNSET; in acpi_dev_memresource_flags() 81 res->flags |= IORESOURCE_MEM_WRITEABLE; in acpi_dev_memresource_flags() 84 static void acpi_dev_get_memresource(struct resource *res, u64 start, u64 len, in acpi_dev_get_memresource() argument 87 res->start = start; in acpi_dev_get_memresource() [all …]
|
/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_resource.c | 69 static int nfp_cpp_resource_find(struct nfp_cpp *cpp, struct nfp_resource *res) in nfp_cpp_resource_find() argument 78 if (!strcmp(res->name, NFP_RESOURCE_TBL_NAME)) { in nfp_cpp_resource_find() 82 key = crc32_posix(res->name, NFP_RESOURCE_ENTRY_NAME_SZ); in nfp_cpp_resource_find() 96 res->mutex = in nfp_cpp_resource_find() 99 res->cpp_id = NFP_CPP_ID(entry.region.cpp_target, in nfp_cpp_resource_find() 102 res->addr = (u64)entry.region.page_offset << 8; in nfp_cpp_resource_find() 103 res->size = (u64)entry.region.page_size << 8; in nfp_cpp_resource_find() 112 nfp_resource_try_acquire(struct nfp_cpp *cpp, struct nfp_resource *res, in nfp_resource_try_acquire() argument 120 err = nfp_cpp_resource_find(cpp, res); in nfp_resource_try_acquire() 124 err = nfp_cpp_mutex_trylock(res->mutex); in nfp_resource_try_acquire() [all …]
|
/drivers/scsi/aic94xx/ |
D | aic94xx_tmf.c | 22 int res; in asd_enqueue_internal() local 32 res = asd_post_ascb_list(ascb->ha, ascb, 1); in asd_enqueue_internal() 33 if (unlikely(res)) in asd_enqueue_internal() 35 return res; in asd_enqueue_internal() 84 int res; \ 89 res = 1; \ 90 ascb = asd_ascb_alloc_list(asd_ha, &res, GFP_KERNEL); \ 101 res = asd_enqueue_internal(ascb, asd_clear_nexus_tasklet_complete, \ 103 if (res) \ 107 res = tcs.dl_opcode; \ [all …]
|
/drivers/scsi/libsas/ |
D | sas_expander.c | 57 int res, retry; in smp_execute_task_sg() local 65 res = -ECOMM; in smp_execute_task_sg() 71 res = -ENOMEM; in smp_execute_task_sg() 85 res = i->dft->lldd_execute_task(task, GFP_KERNEL); in smp_execute_task_sg() 87 if (res) { in smp_execute_task_sg() 89 pr_notice("executing SMP task failed:%d\n", res); in smp_execute_task_sg() 94 res = -ECOMM; in smp_execute_task_sg() 105 res = 0; in smp_execute_task_sg() 112 res = task->task_status.residual; in smp_execute_task_sg() 117 res = -EMSGSIZE; in smp_execute_task_sg() [all …]
|
/drivers/ssb/ |
D | embedded.c | 72 u32 res = 0; in ssb_gpio_in() local 76 res = ssb_chipco_gpio_in(&bus->chipco, mask); in ssb_gpio_in() 78 res = ssb_extif_gpio_in(&bus->extif, mask); in ssb_gpio_in() 83 return res; in ssb_gpio_in() 90 u32 res = 0; in ssb_gpio_out() local 94 res = ssb_chipco_gpio_out(&bus->chipco, mask, value); in ssb_gpio_out() 96 res = ssb_extif_gpio_out(&bus->extif, mask, value); in ssb_gpio_out() 101 return res; in ssb_gpio_out() 108 u32 res = 0; in ssb_gpio_outen() local 112 res = ssb_chipco_gpio_outen(&bus->chipco, mask, value); in ssb_gpio_outen() [all …]
|
/drivers/rtc/ |
D | rtc-ds1343.c | 88 int res; in ds1343_show_glitchfilter() local 90 res = regmap_read(priv->map, DS1343_CONTROL_REG, &data); in ds1343_show_glitchfilter() 91 if (res) in ds1343_show_glitchfilter() 92 return res; in ds1343_show_glitchfilter() 108 int res; in ds1343_store_glitchfilter() local 115 res = regmap_update_bits(priv->map, DS1343_CONTROL_REG, in ds1343_store_glitchfilter() 117 if (res) in ds1343_store_glitchfilter() 118 return res; in ds1343_store_glitchfilter() 146 int res, data; in ds1343_show_tricklecharger() local 149 res = regmap_read(priv->map, DS1343_TRICKLE_REG, &data); in ds1343_show_tricklecharger() [all …]
|