Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 3211) sorted by relevance

12345678910>>...129

/Linux-v4.19/drivers/infiniband/core/
Drestrack.c21 void rdma_restrack_init(struct rdma_restrack_root *res) in rdma_restrack_init() argument
23 init_rwsem(&res->rwsem); in rdma_restrack_init()
24 res->fill_res_entry = fill_res_noop; in rdma_restrack_init()
40 void rdma_restrack_clean(struct rdma_restrack_root *res) in rdma_restrack_clean() argument
48 if (hash_empty(res->hash)) in rdma_restrack_clean()
51 dev = container_of(res, struct ib_device, res); in rdma_restrack_clean()
55 hash_for_each(res->hash, bkt, e, node) { in rdma_restrack_clean()
75 int rdma_restrack_count(struct rdma_restrack_root *res, in rdma_restrack_count() argument
82 down_read(&res->rwsem); in rdma_restrack_count()
83 hash_for_each_possible(res->hash, e, node, type) { in rdma_restrack_count()
[all …]
/Linux-v4.19/tools/lib/
Dhweight.c20 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-v4.19/lib/
Dhweight.c22 unsigned int res = w - ((w >> 1) & 0x55555555); in __sw_hweight32()
23 res = (res & 0x33333333) + ((res >> 2) & 0x33333333); in __sw_hweight32()
24 res = (res + (res >> 4)) & 0x0F0F0F0F; in __sw_hweight32()
25 res = res + (res >> 8); in __sw_hweight32()
26 return (res + (res >> 16)) & 0x000000FF; in __sw_hweight32()
34 unsigned int res = w - ((w >> 1) & 0x5555); in __sw_hweight16() local
35 res = (res & 0x3333) + ((res >> 2) & 0x3333); in __sw_hweight16()
36 res = (res + (res >> 4)) & 0x0F0F; in __sw_hweight16()
37 return (res + (res >> 8)) & 0x00FF; in __sw_hweight16()
43 unsigned int res = w - ((w >> 1) & 0x55); in __sw_hweight8() local
[all …]
/Linux-v4.19/drivers/gpu/drm/vmwgfx/
Dvmwgfx_resource.c37 struct vmw_resource *vmw_resource_reference(struct vmw_resource *res) in vmw_resource_reference() argument
39 kref_get(&res->kref); in vmw_resource_reference()
40 return res; in vmw_resource_reference()
44 vmw_resource_reference_unless_doomed(struct vmw_resource *res) in vmw_resource_reference_unless_doomed() argument
46 return kref_get_unless_zero(&res->kref) ? res : NULL; in vmw_resource_reference_unless_doomed()
56 void vmw_resource_release_id(struct vmw_resource *res) in vmw_resource_release_id() argument
58 struct vmw_private *dev_priv = res->dev_priv; in vmw_resource_release_id()
59 struct idr *idr = &dev_priv->res_idr[res->func->res_type]; in vmw_resource_release_id()
62 if (res->id != -1) in vmw_resource_release_id()
63 idr_remove(idr, res->id); in vmw_resource_release_id()
[all …]
Dvmwgfx_context.c36 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 …]
Dvmwgfx_shader.c35 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 …]
Dvmwgfx_cotable.c51 struct vmw_resource res; member
107 static int vmw_cotable_bind(struct vmw_resource *res,
109 static int vmw_cotable_unbind(struct vmw_resource *res,
112 static int vmw_cotable_create(struct vmw_resource *res);
113 static int vmw_cotable_destroy(struct vmw_resource *res);
133 static struct vmw_cotable *vmw_cotable(struct vmw_resource *res) in vmw_cotable() argument
135 return container_of(res, struct vmw_cotable, res); in vmw_cotable()
146 static int vmw_cotable_destroy(struct vmw_resource *res) in vmw_cotable_destroy() argument
148 res->id = -1; in vmw_cotable_destroy()
161 static int vmw_cotable_unscrub(struct vmw_resource *res) in vmw_cotable_unscrub() argument
[all …]
/Linux-v4.19/drivers/pci/controller/dwc/
Dpcie-qcom.c165 union qcom_pcie_resources res; member
211 struct qcom_pcie_resources_2_1_0 *res = &pcie->res.v2_1_0; in qcom_pcie_get_resources_2_1_0() local
216 res->supplies[0].supply = "vdda"; in qcom_pcie_get_resources_2_1_0()
217 res->supplies[1].supply = "vdda_phy"; in qcom_pcie_get_resources_2_1_0()
218 res->supplies[2].supply = "vdda_refclk"; in qcom_pcie_get_resources_2_1_0()
219 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(res->supplies), in qcom_pcie_get_resources_2_1_0()
220 res->supplies); in qcom_pcie_get_resources_2_1_0()
224 res->iface_clk = devm_clk_get(dev, "iface"); in qcom_pcie_get_resources_2_1_0()
225 if (IS_ERR(res->iface_clk)) in qcom_pcie_get_resources_2_1_0()
226 return PTR_ERR(res->iface_clk); in qcom_pcie_get_resources_2_1_0()
[all …]
/Linux-v4.19/fs/ocfs2/dlm/
Ddlmthread.c61 void __dlm_wait_on_lockres_flags(struct dlm_lock_resource *res, int flags) in __dlm_wait_on_lockres_flags() argument
65 assert_spin_locked(&res->spinlock); in __dlm_wait_on_lockres_flags()
67 add_wait_queue(&res->wq, &wait); in __dlm_wait_on_lockres_flags()
70 if (res->state & flags) { in __dlm_wait_on_lockres_flags()
71 spin_unlock(&res->spinlock); in __dlm_wait_on_lockres_flags()
73 spin_lock(&res->spinlock); in __dlm_wait_on_lockres_flags()
76 remove_wait_queue(&res->wq, &wait); in __dlm_wait_on_lockres_flags()
80 int __dlm_lockres_has_locks(struct dlm_lock_resource *res) in __dlm_lockres_has_locks() argument
82 if (list_empty(&res->granted) && in __dlm_lockres_has_locks()
83 list_empty(&res->converting) && in __dlm_lockres_has_locks()
[all …]
Ddlmmaster.c66 struct dlm_lock_resource *res,
93 struct dlm_lock_resource *res,
102 static int dlm_do_master_request(struct dlm_lock_resource *res,
107 struct dlm_lock_resource *res,
111 struct dlm_lock_resource *res,
115 struct dlm_lock_resource *res,
122 struct dlm_lock_resource *res);
124 struct dlm_lock_resource *res);
126 struct dlm_lock_resource *res,
129 struct dlm_lock_resource *res);
[all …]
Ddlmconvert.c59 struct dlm_lock_resource *res,
64 struct dlm_lock_resource *res,
77 struct dlm_lock_resource *res, in dlmconvert_master() argument
83 spin_lock(&res->spinlock); in dlmconvert_master()
85 __dlm_wait_on_lockres(res); in dlmconvert_master()
86 __dlm_lockres_reserve_ast(res); in dlmconvert_master()
87 res->state |= DLM_LOCK_RES_IN_PROGRESS; in dlmconvert_master()
89 status = __dlmconvert_master(dlm, res, lock, flags, type, in dlmconvert_master()
92 res->state &= ~DLM_LOCK_RES_IN_PROGRESS; in dlmconvert_master()
93 spin_unlock(&res->spinlock); in dlmconvert_master()
[all …]
Ddlmlock.c61 struct dlm_lock_resource *res,
90 static int dlm_can_grant_new_lock(struct dlm_lock_resource *res, in dlm_can_grant_new_lock() argument
95 list_for_each_entry(tmplock, &res->granted, list) { in dlm_can_grant_new_lock()
100 list_for_each_entry(tmplock, &res->converting, list) { in dlm_can_grant_new_lock()
119 struct dlm_lock_resource *res, in dlmlock_master() argument
127 spin_lock(&res->spinlock); in dlmlock_master()
130 status = __dlm_lockres_state_to_status(res); in dlmlock_master()
134 spin_unlock(&res->spinlock); in dlmlock_master()
138 __dlm_wait_on_lockres(res); in dlmlock_master()
139 __dlm_lockres_reserve_ast(res); in dlmlock_master()
[all …]
Ddlmunlock.c59 struct dlm_lock_resource *res,
64 struct dlm_lock_resource *res,
70 struct dlm_lock_resource *res,
99 struct dlm_lock_resource *res, in dlmunlock_common() argument
114 BUG_ON(res->owner != dlm->node_num); in dlmunlock_common()
116 BUG_ON(res->owner == dlm->node_num); in dlmunlock_common()
125 "while waiting for an ast!", res->lockname.len, in dlmunlock_common()
126 res->lockname.name); in dlmunlock_common()
130 spin_lock(&res->spinlock); in dlmunlock_common()
131 if (res->state & DLM_LOCK_RES_IN_PROGRESS) { in dlmunlock_common()
[all …]
/Linux-v4.19/drivers/pnp/
Dmanager.c27 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-v4.19/drivers/media/platform/omap3isp/
Dispresizer.c120 __resizer_get_format(struct isp_res_device *res, struct v4l2_subdev_pad_config *cfg, in __resizer_get_format() argument
124 return v4l2_subdev_get_try_format(&res->subdev, cfg, pad); in __resizer_get_format()
126 return &res->formats[pad]; in __resizer_get_format()
136 __resizer_get_crop(struct isp_res_device *res, struct v4l2_subdev_pad_config *cfg, in __resizer_get_crop() argument
140 return v4l2_subdev_get_try_crop(&res->subdev, cfg, RESZ_PAD_SINK); in __resizer_get_crop()
142 return &res->crop.request; in __resizer_get_crop()
152 static void resizer_set_filters(struct isp_res_device *res, const u16 *h_coeff, in resizer_set_filters() argument
155 struct isp_device *isp = to_isp_device(res); in resizer_set_filters()
183 static void resizer_set_bilinear(struct isp_res_device *res, in resizer_set_bilinear() argument
186 struct isp_device *isp = to_isp_device(res); in resizer_set_bilinear()
[all …]
/Linux-v4.19/drivers/pci/
Dsetup-res.c32 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, &region, 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()
78 if (!(res->flags & IORESOURCE_ROM_ENABLE)) in pci_std_update_resource()
91 disable = (res->flags & IORESOURCE_MEM_64) && !dev->mmio_always_on; in pci_std_update_resource()
[all …]
/Linux-v4.19/arch/mips/ath79/
Dpci.c138 struct resource res[4]; in ath79_register_pci_ar71xx() local
140 memset(res, 0, sizeof(res)); in ath79_register_pci_ar71xx()
142 res[0].name = "cfg_base"; in ath79_register_pci_ar71xx()
143 res[0].flags = IORESOURCE_MEM; in ath79_register_pci_ar71xx()
144 res[0].start = AR71XX_PCI_CFG_BASE; in ath79_register_pci_ar71xx()
145 res[0].end = AR71XX_PCI_CFG_BASE + AR71XX_PCI_CFG_SIZE - 1; in ath79_register_pci_ar71xx()
147 res[1].flags = IORESOURCE_IRQ; in ath79_register_pci_ar71xx()
148 res[1].start = ATH79_CPU_IRQ(2); in ath79_register_pci_ar71xx()
149 res[1].end = ATH79_CPU_IRQ(2); in ath79_register_pci_ar71xx()
151 res[2].name = "io_base"; in ath79_register_pci_ar71xx()
[all …]
/Linux-v4.19/drivers/pci/hotplug/
Dcpqphp_sysfs.c32 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 …]
Dibmphp_res.c445 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-v4.19/drivers/ps3/
Dps3av_cmd.c157 int res; in ps3av_cmd_init() local
165 res = ps3av_do_pkt(PS3AV_CID_VIDEO_INIT, sizeof(video_init.send_hdr), in ps3av_cmd_init()
167 if (res < 0) in ps3av_cmd_init()
168 return res; in ps3av_cmd_init()
170 res = get_status(&video_init); in ps3av_cmd_init()
171 if (res) { in ps3av_cmd_init()
172 printk(KERN_ERR "PS3AV_CID_VIDEO_INIT: failed %x\n", res); in ps3av_cmd_init()
173 return res; in ps3av_cmd_init()
179 res = ps3av_do_pkt(PS3AV_CID_AUDIO_INIT, sizeof(audio_init.send_hdr), in ps3av_cmd_init()
181 if (res < 0) in ps3av_cmd_init()
[all …]
/Linux-v4.19/kernel/
Dresource.c149 static void free_resource(struct resource *res) in free_resource() argument
151 if (!res) in free_resource()
154 if (!PageSlab(virt_to_head_page(res))) { in free_resource()
156 res->sibling = bootmem_resource_free; in free_resource()
157 bootmem_resource_free = res; in free_resource()
160 kfree(res); in free_resource()
166 struct resource *res = NULL; in alloc_resource() local
170 res = bootmem_resource_free; in alloc_resource()
171 bootmem_resource_free = res->sibling; in alloc_resource()
175 if (res) in alloc_resource()
[all …]
/Linux-v4.19/drivers/pcmcia/
Drsrc_iodyn.c30 const struct resource *res, in pcmcia_align() argument
36 start = (res->start & ~data->mask) + data->offset; in pcmcia_align()
37 if (start < res->start) in pcmcia_align()
41 if (res->flags & IORESOURCE_IO) { in pcmcia_align()
48 if (res->flags & IORESOURCE_IO) { in pcmcia_align()
49 if ((res->start + size - 1) >= 1024) in pcmcia_align()
50 start = res->end; in pcmcia_align()
62 struct resource *res = pcmcia_make_resource(0, num, IORESOURCE_IO, in __iodyn_find_io_region() local
73 ret = pci_bus_alloc_resource(s->cb_dev->bus, res, num, 1, in __iodyn_find_io_region()
77 ret = allocate_resource(&ioport_resource, res, num, min, ~0UL, in __iodyn_find_io_region()
[all …]
/Linux-v4.19/drivers/thunderbolt/
Deeprom.c43 int res = tb_eeprom_ctl_read(sw, &ctl); in tb_eeprom_active() local
44 if (res) in tb_eeprom_active()
45 return res; in tb_eeprom_active()
48 res = tb_eeprom_ctl_write(sw, &ctl); in tb_eeprom_active()
49 if (res) in tb_eeprom_active()
50 return res; in tb_eeprom_active()
55 res = tb_eeprom_ctl_write(sw, &ctl); in tb_eeprom_active()
56 if (res) in tb_eeprom_active()
57 return res; in tb_eeprom_active()
72 int res; in tb_eeprom_transfer() local
[all …]
/Linux-v4.19/arch/mips/kernel/
Dunaligned.c111 #define _LoadHW(addr, value, res, type) \ argument
129 : "=&r" (value), "=r" (res) \
134 #define _LoadW(addr, value, res, type) \ argument
150 : "=&r" (value), "=r" (res) \
156 #define _LoadW(addr, value, res, type) \ argument
185 : "=&r" (value), "=r" (res) \
191 #define _LoadHWU(addr, value, res, type) \ argument
211 : "=&r" (value), "=r" (res) \
216 #define _LoadWU(addr, value, res, type) \ argument
234 : "=&r" (value), "=r" (res) \
[all …]
/Linux-v4.19/drivers/acpi/
Dresource.c30 static inline bool acpi_iospace_resource_valid(struct resource *res) in acpi_iospace_resource_valid() argument
33 return res->end < 0x10003; in acpi_iospace_resource_valid()
43 acpi_iospace_resource_valid(struct resource *res) { return true; } in acpi_iospace_resource_valid() argument
79 static void acpi_dev_memresource_flags(struct resource *res, u64 len, in acpi_dev_memresource_flags() argument
82 res->flags = IORESOURCE_MEM; in acpi_dev_memresource_flags()
84 if (!acpi_dev_resource_len_valid(res->start, res->end, len, false)) in acpi_dev_memresource_flags()
85 res->flags |= IORESOURCE_DISABLED | IORESOURCE_UNSET; in acpi_dev_memresource_flags()
88 res->flags |= IORESOURCE_MEM_WRITEABLE; in acpi_dev_memresource_flags()
91 static void acpi_dev_get_memresource(struct resource *res, u64 start, u64 len, in acpi_dev_get_memresource() argument
94 res->start = start; in acpi_dev_get_memresource()
[all …]

12345678910>>...129