Home
last modified time | relevance | path

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

12345678910>>...95

/drivers/net/ethernet/mellanox/mlx5/core/en/
Drx_res.c37 static int mlx5e_rx_res_rss_init_def(struct mlx5e_rx_res *res, in mlx5e_rx_res_rss_init_def() argument
40 bool inner_ft_support = res->features & MLX5E_RX_RES_FEATURE_INNER_FT; in mlx5e_rx_res_rss_init_def()
44 if (WARN_ON(res->rss[0])) in mlx5e_rx_res_rss_init_def()
51 err = mlx5e_rss_init(rss, res->mdev, inner_ft_support, res->drop_rqn, in mlx5e_rx_res_rss_init_def()
52 &res->pkt_merge_param); in mlx5e_rx_res_rss_init_def()
58 res->rss[0] = rss; in mlx5e_rx_res_rss_init_def()
67 int mlx5e_rx_res_rss_init(struct mlx5e_rx_res *res, u32 *rss_idx, unsigned int init_nch) in mlx5e_rx_res_rss_init() argument
69 bool inner_ft_support = res->features & MLX5E_RX_RES_FEATURE_INNER_FT; in mlx5e_rx_res_rss_init()
74 if (!res->rss[i]) in mlx5e_rx_res_rss_init()
84 err = mlx5e_rss_init_no_tirs(rss, res->mdev, inner_ft_support, res->drop_rqn); in mlx5e_rx_res_rss_init()
[all …]
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_resource.c40 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 …]
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
56 static void vmw_user_shader_free(struct vmw_resource *res);
60 static int vmw_gb_shader_create(struct vmw_resource *res);
61 static int vmw_gb_shader_bind(struct vmw_resource *res,
63 static int vmw_gb_shader_unbind(struct vmw_resource *res,
66 static int vmw_gb_shader_destroy(struct vmw_resource *res);
68 static int vmw_dx_shader_create(struct vmw_resource *res);
69 static int vmw_dx_shader_bind(struct vmw_resource *res,
71 static int vmw_dx_shader_unbind(struct vmw_resource *res,
[all …]
Dvmwgfx_cotable.c51 struct vmw_resource res; member
110 static int vmw_cotable_bind(struct vmw_resource *res,
112 static int vmw_cotable_unbind(struct vmw_resource *res,
115 static int vmw_cotable_create(struct vmw_resource *res);
116 static int vmw_cotable_destroy(struct vmw_resource *res);
138 static struct vmw_cotable *vmw_cotable(struct vmw_resource *res) in vmw_cotable() argument
140 return container_of(res, struct vmw_cotable, res); in vmw_cotable()
151 static int vmw_cotable_destroy(struct vmw_resource *res) in vmw_cotable_destroy() argument
153 res->id = -1; in vmw_cotable_destroy()
166 static int vmw_cotable_unscrub(struct vmw_resource *res) in vmw_cotable_unscrub() argument
[all …]
Dvmwgfx_streamoutput.c46 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,
77 vmw_res_to_dx_streamoutput(struct vmw_resource *res) in vmw_res_to_dx_streamoutput() argument
79 return container_of(res, struct vmw_dx_streamoutput, res); in vmw_res_to_dx_streamoutput()
88 static int vmw_dx_streamoutput_unscrub(struct vmw_resource *res) in vmw_dx_streamoutput_unscrub() argument
90 struct vmw_dx_streamoutput *so = vmw_res_to_dx_streamoutput(res); in vmw_dx_streamoutput_unscrub()
91 struct vmw_private *dev_priv = res->dev_priv; in vmw_dx_streamoutput_unscrub()
[all …]
/drivers/infiniband/core/
Drestrack.c28 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()
62 struct rdma_restrack_root *rt = dev->res; in rdma_restrack_clean()
70 struct xarray *xa = &dev->res[i].xa; in rdma_restrack_clean()
114 struct rdma_restrack_root *rt = &dev->res[type]; in rdma_restrack_count()
127 static struct ib_device *res_to_dev(struct rdma_restrack_entry *res) in res_to_dev() argument
129 switch (res->type) { in res_to_dev()
131 return container_of(res, struct ib_pd, res)->device; in res_to_dev()
133 return container_of(res, struct ib_cq, res)->device; in res_to_dev()
[all …]
/drivers/pci/controller/dwc/
Dpcie-qcom.c234 union qcom_pcie_resources res; member
279 struct qcom_pcie_resources_2_1_0 *res = &pcie->res.v2_1_0; in qcom_pcie_get_resources_2_1_0() local
284 res->supplies[0].supply = "vdda"; in qcom_pcie_get_resources_2_1_0()
285 res->supplies[1].supply = "vdda_phy"; in qcom_pcie_get_resources_2_1_0()
286 res->supplies[2].supply = "vdda_refclk"; in qcom_pcie_get_resources_2_1_0()
287 ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(res->supplies), in qcom_pcie_get_resources_2_1_0()
288 res->supplies); in qcom_pcie_get_resources_2_1_0()
292 res->clks[0].id = "iface"; in qcom_pcie_get_resources_2_1_0()
293 res->clks[1].id = "core"; in qcom_pcie_get_resources_2_1_0()
294 res->clks[2].id = "phy"; in qcom_pcie_get_resources_2_1_0()
[all …]
/drivers/media/platform/ti/omap3isp/
Dispresizer.c117 __resizer_get_format(struct isp_res_device *res, in __resizer_get_format() argument
122 return v4l2_subdev_get_try_format(&res->subdev, sd_state, pad); in __resizer_get_format()
124 return &res->formats[pad]; in __resizer_get_format()
134 __resizer_get_crop(struct isp_res_device *res, in __resizer_get_crop() argument
139 return v4l2_subdev_get_try_crop(&res->subdev, sd_state, 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 …]
/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 …]
/drivers/ps3/
Dps3av_cmd.c145 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/
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()
81 if (!(res->flags & IORESOURCE_ROM_ENABLE) && in pci_std_update_resource()
86 if (res->flags & IORESOURCE_ROM_ENABLE) in pci_std_update_resource()
[all …]
Dbus.c19 void pci_add_resource_offset(struct list_head *resources, struct resource *res, in pci_add_resource_offset() argument
24 entry = resource_list_create_entry(res, 0); in pci_add_resource_offset()
26 pr_err("PCI: can't add host bridge window %pR\n", res); in pci_add_resource_offset()
35 void pci_add_resource(struct list_head *resources, struct resource *res) in pci_add_resource() argument
37 pci_add_resource_offset(resources, res, 0); in pci_add_resource()
47 void pci_bus_add_resource(struct pci_bus *bus, struct resource *res, in pci_bus_add_resource() argument
54 dev_err(&bus->dev, "can't add %pR resource\n", res); in pci_bus_add_resource()
58 bus_res->res = res; in pci_bus_add_resource()
73 return bus_res->res; in pci_bus_resource_n()
79 void pci_bus_remove_resource(struct pci_bus *bus, struct resource *res) in pci_bus_remove_resource() argument
[all …]
/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 …]
/drivers/pcmcia/
Drsrc_iodyn.c27 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/thunderbolt/
Deeprom.c45 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/gpu/drm/ttm/
Dttm_resource.c78 ttm_lru_bulk_move_pos(struct ttm_lru_bulk_move *bulk, struct ttm_resource *res) in ttm_lru_bulk_move_pos() argument
80 return &bulk->pos[res->mem_type][res->bo->priority]; in ttm_lru_bulk_move_pos()
85 struct ttm_resource *res) in ttm_lru_bulk_move_pos_tail() argument
87 if (pos->last != res) { in ttm_lru_bulk_move_pos_tail()
88 if (pos->first == res) in ttm_lru_bulk_move_pos_tail()
89 pos->first = list_next_entry(res, lru); in ttm_lru_bulk_move_pos_tail()
90 list_move(&res->lru, &pos->last->lru); in ttm_lru_bulk_move_pos_tail()
91 pos->last = res; in ttm_lru_bulk_move_pos_tail()
97 struct ttm_resource *res) in ttm_lru_bulk_move_add() argument
99 struct ttm_lru_bulk_move_pos *pos = ttm_lru_bulk_move_pos(bulk, res); in ttm_lru_bulk_move_add()
[all …]
/drivers/gpu/drm/amd/display/dc/basics/
Dfixpt31_32.c73 struct fixed31_32 res; in dc_fixpt_from_fraction() local
115 res.value = (long long)res_value; in dc_fixpt_from_fraction()
118 res.value = -res.value; in dc_fixpt_from_fraction()
120 return res; in dc_fixpt_from_fraction()
125 struct fixed31_32 res; in dc_fixpt_mul() local
141 res.value = arg1_int * arg2_int; in dc_fixpt_mul()
143 ASSERT(res.value <= LONG_MAX); in dc_fixpt_mul()
145 res.value <<= FIXED31_32_BITS_PER_FRACTIONAL_PART; in dc_fixpt_mul()
149 ASSERT(tmp <= (unsigned long long)(LLONG_MAX - res.value)); in dc_fixpt_mul()
151 res.value += tmp; in dc_fixpt_mul()
[all …]
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ras_eeprom.c215 int res; in __write_table_header() local
222 res = amdgpu_eeprom_write(adev->pm.ras_eeprom_i2c_bus, in __write_table_header()
228 if (res < 0) { in __write_table_header()
229 DRM_ERROR("Failed to write EEPROM table header:%d", res); in __write_table_header()
230 } else if (res < RAS_TABLE_HEADER_SIZE) { in __write_table_header()
232 res, RAS_TABLE_HEADER_SIZE); in __write_table_header()
233 res = -EIO; in __write_table_header()
235 res = 0; in __write_table_header()
238 return res; in __write_table_header()
263 int res; in amdgpu_ras_eeprom_correct_header_tag() local
[all …]
/drivers/acpi/
Dresource.c23 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/
Dnfp_resource.c69 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/libsas/
Dsas_expander.c37 int res, retry; in smp_execute_task_sg() local
47 res = -ECOMM; in smp_execute_task_sg()
53 res = -ENOMEM; in smp_execute_task_sg()
67 res = i->dft->lldd_execute_task(task, GFP_KERNEL); in smp_execute_task_sg()
69 if (res) { in smp_execute_task_sg()
71 pr_notice("executing SMP task failed:%d\n", res); in smp_execute_task_sg()
76 res = -ECOMM; in smp_execute_task_sg()
87 res = 0; in smp_execute_task_sg()
94 res = task->task_status.residual; in smp_execute_task_sg()
99 res = -EMSGSIZE; in smp_execute_task_sg()
[all …]
/drivers/scsi/aic94xx/
Daic94xx_tmf.c22 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/ssb/
Dembedded.c72 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 …]

12345678910>>...95