/Linux-v5.10/tools/lib/ |
D | hweight.c | 20 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32() 21 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); in __sw_hweight32() 22 res = (res + (res >> 4)) & 0x0F0F0F0F; in __sw_hweight32() 23 res = res + (res >> 8); in __sw_hweight32() 24 return (res + (res >> 16)) & 0x000000FF; in __sw_hweight32() 30 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16() local 31 res = (res & 0x3333) + ((res >> 2) & 0x3333); in __sw_hweight16() 32 res = (res + (res >> 4)) & 0x0F0F; in __sw_hweight16() 33 return (res + (res >> 8)) & 0x00FF; in __sw_hweight16() 38 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8() local [all …]
|
/Linux-v5.10/lib/ |
D | hweight.c | 21 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32() 22 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); in __sw_hweight32() 23 res = (res + (res >> 4)) & 0x0F0F0F0F; in __sw_hweight32() 24 res = res + (res >> 8); in __sw_hweight32() 25 return (res + (res >> 16)) & 0x000000FF; in __sw_hweight32() 32 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16() local 33 res = (res & 0x3333) + ((res >> 2) & 0x3333); in __sw_hweight16() 34 res = (res + (res >> 4)) & 0x0F0F; in __sw_hweight16() 35 return (res + (res >> 8)) & 0x00FF; in __sw_hweight16() 41 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8() local [all …]
|
/Linux-v5.10/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_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_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_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 …]
|
/Linux-v5.10/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 …]
|
/Linux-v5.10/fs/ocfs2/dlm/ |
D | dlmthread.c | 44 void __dlm_wait_on_lockres_flags(struct dlm_lock_resource *res, int flags) in __dlm_wait_on_lockres_flags() argument 48 assert_spin_locked(&res->spinlock); in __dlm_wait_on_lockres_flags() 50 add_wait_queue(&res->wq, &wait); in __dlm_wait_on_lockres_flags() 53 if (res->state & flags) { in __dlm_wait_on_lockres_flags() 54 spin_unlock(&res->spinlock); in __dlm_wait_on_lockres_flags() 56 spin_lock(&res->spinlock); in __dlm_wait_on_lockres_flags() 59 remove_wait_queue(&res->wq, &wait); in __dlm_wait_on_lockres_flags() 63 int __dlm_lockres_has_locks(struct dlm_lock_resource *res) in __dlm_lockres_has_locks() argument 65 if (list_empty(&res->granted) && in __dlm_lockres_has_locks() 66 list_empty(&res->converting) && in __dlm_lockres_has_locks() [all …]
|
D | dlmmaster.c | 51 struct dlm_lock_resource *res, 78 struct dlm_lock_resource *res, 87 static int dlm_do_master_request(struct dlm_lock_resource *res, 92 struct dlm_lock_resource *res, 96 struct dlm_lock_resource *res, 100 struct dlm_lock_resource *res, 107 struct dlm_lock_resource *res); 109 struct dlm_lock_resource *res); 111 struct dlm_lock_resource *res, 114 struct dlm_lock_resource *res); [all …]
|
D | dlmconvert.c | 44 struct dlm_lock_resource *res, 49 struct dlm_lock_resource *res, 62 struct dlm_lock_resource *res, in dlmconvert_master() argument 68 spin_lock(&res->spinlock); in dlmconvert_master() 70 __dlm_wait_on_lockres(res); in dlmconvert_master() 71 __dlm_lockres_reserve_ast(res); in dlmconvert_master() 72 res->state |= DLM_LOCK_RES_IN_PROGRESS; in dlmconvert_master() 74 status = __dlmconvert_master(dlm, res, lock, flags, type, in dlmconvert_master() 77 res->state &= ~DLM_LOCK_RES_IN_PROGRESS; in dlmconvert_master() 78 spin_unlock(&res->spinlock); in dlmconvert_master() [all …]
|
D | dlmlock.c | 46 struct dlm_lock_resource *res, 75 static int dlm_can_grant_new_lock(struct dlm_lock_resource *res, in dlm_can_grant_new_lock() argument 80 list_for_each_entry(tmplock, &res->granted, list) { in dlm_can_grant_new_lock() 85 list_for_each_entry(tmplock, &res->converting, list) { in dlm_can_grant_new_lock() 104 struct dlm_lock_resource *res, in dlmlock_master() argument 112 spin_lock(&res->spinlock); in dlmlock_master() 115 status = __dlm_lockres_state_to_status(res); in dlmlock_master() 119 spin_unlock(&res->spinlock); in dlmlock_master() 123 __dlm_wait_on_lockres(res); in dlmlock_master() 124 __dlm_lockres_reserve_ast(res); in dlmlock_master() [all …]
|
D | dlmunlock.c | 44 struct dlm_lock_resource *res, 49 struct dlm_lock_resource *res, 55 struct dlm_lock_resource *res, 84 struct dlm_lock_resource *res, in dlmunlock_common() argument 100 BUG_ON(res->owner != dlm->node_num); in dlmunlock_common() 102 BUG_ON(res->owner == dlm->node_num); in dlmunlock_common() 111 "while waiting for an ast!", res->lockname.len, in dlmunlock_common() 112 res->lockname.name); in dlmunlock_common() 116 spin_lock(&res->spinlock); in dlmunlock_common() 117 if (res->state & DLM_LOCK_RES_IN_PROGRESS) { in dlmunlock_common() [all …]
|
/Linux-v5.10/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 …]
|
/Linux-v5.10/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 …]
|
/Linux-v5.10/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 …]
|
/Linux-v5.10/arch/mips/include/asm/ |
D | unaligned-emul.h | 8 #define _LoadHW(addr, value, res, type) \ argument 26 : "=&r" (value), "=r" (res) \ 31 #define _LoadW(addr, value, res, type) \ argument 47 : "=&r" (value), "=r" (res) \ 53 #define _LoadW(addr, value, res, type) \ argument 82 : "=&r" (value), "=r" (res) \ 88 #define _LoadHWU(addr, value, res, type) \ argument 108 : "=&r" (value), "=r" (res) \ 113 #define _LoadWU(addr, value, res, type) \ argument 131 : "=&r" (value), "=r" (res) \ [all …]
|
/Linux-v5.10/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 …]
|
/Linux-v5.10/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 …]
|
/Linux-v5.10/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 …]
|
/Linux-v5.10/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 …]
|
/Linux-v5.10/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 …]
|
/Linux-v5.10/drivers/acpi/ |
D | resource.c | 22 static inline bool acpi_iospace_resource_valid(struct resource *res) in acpi_iospace_resource_valid() argument 25 return res->end < 0x10003; in acpi_iospace_resource_valid() 35 acpi_iospace_resource_valid(struct resource *res) { return true; } in acpi_iospace_resource_valid() argument 71 static void acpi_dev_memresource_flags(struct resource *res, u64 len, in acpi_dev_memresource_flags() argument 74 res->flags = IORESOURCE_MEM; in acpi_dev_memresource_flags() 76 if (!acpi_dev_resource_len_valid(res->start, res->end, len, false)) in acpi_dev_memresource_flags() 77 res->flags |= IORESOURCE_DISABLED | IORESOURCE_UNSET; in acpi_dev_memresource_flags() 80 res->flags |= IORESOURCE_MEM_WRITEABLE; in acpi_dev_memresource_flags() 83 static void acpi_dev_get_memresource(struct resource *res, u64 start, u64 len, in acpi_dev_get_memresource() argument 86 res->start = start; in acpi_dev_get_memresource() [all …]
|
/Linux-v5.10/kernel/ |
D | resource.c | 150 static void free_resource(struct resource *res) in free_resource() argument 152 if (!res) in free_resource() 155 if (!PageSlab(virt_to_head_page(res))) { in free_resource() 157 res->sibling = bootmem_resource_free; in free_resource() 158 bootmem_resource_free = res; in free_resource() 161 kfree(res); in free_resource() 167 struct resource *res = NULL; in alloc_resource() local 171 res = bootmem_resource_free; in alloc_resource() 172 bootmem_resource_free = res->sibling; in alloc_resource() 176 if (res) in alloc_resource() [all …]
|