| /drivers/net/ethernet/mellanox/mlx5/core/en/ |
| A D | rx_res.c | 62 rss = mlx5e_rss_init(res->mdev, inner_ft_support, res->drop_rqn, in mlx5e_rx_res_rss_init_def() 92 mlx5e_rss_enable(rss, res->rss_rqns, vhca_ids, res->rss_nch); in mlx5e_rx_res_rss_init() 218 res->rss_rqns, vhca_ids, res->rss_nch); in mlx5e_rx_res_rss_set_rxfh() 291 kvfree(res); in mlx5e_rx_res_free() 332 res->channels = kvcalloc(res->max_nch, sizeof(*res->channels), GFP_KERNEL); in mlx5e_rx_res_channels_init() 340 res->mdev, false, res->drop_rqn, in mlx5e_rx_res_channels_init() 341 mlx5e_rqt_size(res->mdev, res->max_nch)); in mlx5e_rx_res_channels_init() 395 err = mlx5e_rqt_init_direct(&res->ptp.rqt, res->mdev, false, res->drop_rqn, in mlx5e_rx_res_ptp_init() 396 mlx5e_rqt_size(res->mdev, res->max_nch)); in mlx5e_rx_res_ptp_init() 449 if (!res) in mlx5e_rx_res_create() [all …]
|
| A D | rx_res.h | 32 void mlx5e_rx_res_destroy(struct mlx5e_rx_res *res); 35 u32 mlx5e_rx_res_get_tirn_direct(struct mlx5e_rx_res *res, unsigned int ix); 38 u32 mlx5e_rx_res_get_tirn_ptp(struct mlx5e_rx_res *res); 40 unsigned int mlx5e_rx_res_get_max_nch(struct mlx5e_rx_res *res); 41 bool mlx5_rx_res_rss_inner_ft_support(struct mlx5e_rx_res *res); 45 void mlx5e_rx_res_channels_deactivate(struct mlx5e_rx_res *res); 51 void mlx5e_rx_res_rss_get_rxfh(struct mlx5e_rx_res *res, u32 rss_idx, 54 int mlx5e_rx_res_rss_set_rxfh(struct mlx5e_rx_res *res, u32 rss_idx, 62 int mlx5e_rx_res_packet_merge_set_param(struct mlx5e_rx_res *res, 66 int mlx5e_rx_res_rss_destroy(struct mlx5e_rx_res *res, u32 rss_idx); [all …]
|
| /drivers/gpu/drm/vmwgfx/ |
| A D | vmwgfx_resource.c | 48 res->used_prio = (res->res_dirty) ? res->func->dirty_prio : in vmw_resource_mob_attach() 86 return res; in vmw_resource_reference() 92 return kref_get_unless_zero(&res->kref) ? res : NULL; in vmw_resource_reference_unless_doomed() 137 res->func->unbind(res, false, &val_buf); in vmw_resource_release() 142 res->func->dirty_free(res); in vmw_resource_release() 153 res->hw_destroy(res); in vmw_resource_release() 158 res->res_free(res); in vmw_resource_release() 402 if (res->guest_memory_bo->dirty && !res->dirty) { in vmw_resource_do_validate() 495 if (!res->func->may_evict || res->id == -1 || res->pin_count) in vmw_resource_unreserve() 774 (void) res->func->unbind(res, res->res_dirty, &val_buf); in vmw_resource_unbind_list() [all …]
|
| A D | vmwgfx_context.c | 135 if (res) in vmw_context_cotables_unref() 143 container_of(res, struct vmw_user_context, res); in vmw_hw_context_destroy() 157 (void) res->func->destroy(res); in vmw_hw_context_destroy() 187 container_of(res, struct vmw_user_context, res); in vmw_gb_context_init() 376 container_of(res, struct vmw_user_context, res); in vmw_gb_context_unbind() 566 if (res) in vmw_dx_context_scrub_cotables() 567 res = vmw_resource_reference_unless_doomed(res); in vmw_dx_context_scrub_cotables() 569 if (!res) in vmw_dx_context_scrub_cotables() 585 container_of(res, struct vmw_user_context, res); in vmw_dx_context_unbind() 710 struct vmw_resource *res = &ctx->res; in vmw_user_context_base_release() local [all …]
|
| A D | vmwgfx_shader.c | 133 return container_of(res, struct vmw_shader, res); in vmw_res_to_shader() 145 return container_of(res, struct vmw_dx_shader, res); in vmw_res_to_dx_shader() 151 (void) res->func->destroy(res); in vmw_hw_shader_destroy() 153 res->id = -1; in vmw_hw_shader_destroy() 177 kfree(res); in vmw_gb_shader_init() 371 res->id = -1; in vmw_dx_shader_commit_notify() 493 res->id = -1; in vmw_dx_shader_scrub() 603 res = &shader->res; in vmw_dx_shader_add() 650 container_of(res, struct vmw_user_shader, shader.res); in vmw_user_shader_free() 705 res = &ushader->shader.res; in vmw_user_shader_alloc() [all …]
|
| A D | vmwgfx_cotable.c | 53 struct vmw_resource res; member 155 return container_of(res, struct vmw_cotable, res); in vmw_cotable() 168 res->id = -1; in vmw_cotable_destroy() 306 res->id = -1; in vmw_cotable_scrub() 506 res->id = vcotbl->type; in vmw_cotable_resize() 588 kfree(res); in vmw_cotable_free() 619 vcotbl->res.id = type; in vmw_cotable_alloc() 625 vcotbl->res.guest_memory_size = PFN_ALIGN(vcotbl->res.guest_memory_size); in vmw_cotable_alloc() 635 return &vcotbl->res; in vmw_cotable_alloc() 661 res->id = -1; in vmw_cotable_notify() [all …]
|
| A D | vmwgfx_streamoutput.c | 47 struct vmw_resource res; member 81 return container_of(res, struct vmw_dx_streamoutput, res); in vmw_res_to_dx_streamoutput() 133 res->id = so->id; in vmw_dx_streamoutput_create() 181 cmd->body.soid = res->id; in vmw_dx_streamoutput_scrub() 187 res->id = -1; in vmw_dx_streamoutput_scrub() 229 res->id = so->id; in vmw_dx_streamoutput_commit_notify() 235 res->id = -1; in vmw_dx_streamoutput_commit_notify() 266 res->id = -1; in vmw_dx_streamoutput_hw_destroy() 292 res = &so->res; in vmw_dx_streamoutput_add() 306 res, list); in vmw_dx_streamoutput_add() [all …]
|
| /drivers/infiniband/core/ |
| A D | restrack.c | 29 if (!dev->res) in rdma_restrack_init() 32 rt = dev->res; in rdma_restrack_init() 87 return container_of(res, struct ib_pd, res)->device; in res_to_dev() 89 return container_of(res, struct ib_cq, res)->device; in res_to_dev() 91 return container_of(res, struct ib_qp, res)->device; in res_to_dev() 96 return container_of(res, struct ib_mr, res)->device; in res_to_dev() 102 return container_of(res, struct ib_srq, res)->device; in res_to_dev() 193 rt = &dev->res[res->type]; in rdma_restrack_add() 205 ret = xa_insert(&rt->xa, res->id, res, GFP_KERNEL); in rdma_restrack_add() 253 if (!res || !rdma_restrack_get(res)) in rdma_restrack_get_byid() [all …]
|
| /drivers/media/platform/ti/omap3isp/ |
| A D | ispresizer.c | 914 resizer_set_ratio(res, &res->ratio); in resizer_set_crop_params() 926 res->crop_offset = (res->crop.active.top * input->width + in resizer_set_crop_params() 932 resizer_set_start(res, (res->crop_offset / 2) & 0xf, 0); in resizer_set_crop_params() 939 res->addr_base + (res->crop_offset & ~0x1f)); in resizer_set_crop_params() 946 resizer_set_start(res, res->crop.active.left * 2, in resizer_set_crop_params() 954 resizer_set_input_size(res, res->crop.active.width, in resizer_set_crop_params() 963 resizer_set_source(res, res->input); in resizer_configure() 1538 res->crop.active = res->crop.request; in resizer_set_format() 1539 resizer_calc_ratios(res, &res->crop.active, format, in resizer_set_format() 1749 res->video_in.isp = to_isp_device(res); in resizer_init_entities() [all …]
|
| /drivers/pnp/ |
| A D | manager.c | 62 res->end = res->start + rule->size - 1; in pnp_assign_port() 66 res->end = res->start + rule->size - 1; in pnp_assign_port() 77 pnp_add_io_resource(dev, res->start, res->end, res->flags); in pnp_assign_port() 113 res->end = res->start + rule->size - 1; in pnp_assign_mem() 117 res->end = res->start + rule->size - 1; in pnp_assign_mem() 128 pnp_add_mem_resource(dev, res->start, res->end, res->flags); in pnp_assign_mem() 145 idx, (int) res->start, res->flags); in pnp_assign_irq() 163 res->end = res->start; in pnp_assign_irq() 168 res->start = res->end = xtab[i]; in pnp_assign_irq() 204 idx, (int) res->start, res->flags); in pnp_assign_dma() [all …]
|
| /drivers/ps3/ |
| A D | ps3av_cmd.c | 145 int res; in ps3av_cmd_init() local 188 if (res) in ps3av_cmd_init() 196 int res; in ps3av_cmd_fin() local 207 if (res) in ps3av_cmd_fin() 235 if (res) in ps3av_cmd_av_video_mute() 243 int res; in ps3av_cmd_av_video_disable_sig() local 256 if (res) in ps3av_cmd_av_video_disable_sig() 266 int res; in ps3av_cmd_av_tv_mute() local 279 if (res) in ps3av_cmd_av_tv_mute() 288 int res; in ps3av_cmd_enable_event() local [all …]
|
| /drivers/pci/hotplug/ |
| A D | cpqphp_sysfs.c | 36 res = ctrl->mem_head; in show_ctrl() 39 res = res->next; in show_ctrl() 46 res = res->next; in show_ctrl() 50 res = ctrl->io_head; in show_ctrl() 53 res = res->next; in show_ctrl() 57 res = ctrl->bus_head; in show_ctrl() 60 res = res->next; in show_ctrl() 85 res = res->next; in show_dev() 92 res = res->next; in show_dev() 99 res = res->next; in show_dev() [all …]
|
| A D | ibmphp_res.c | 468 res = res->next; in update_resources() 481 res = res->next; in update_resources() 525 res = res->next; in fix_me() 1056 res->end = res->start + res->len - 1; in ibmphp_check_resource() 1095 res->end = res->start + res->len - 1; in ibmphp_check_resource() 1135 res->end = res->start + res->len - 1; in ibmphp_check_resource() 1172 res->end = res->start + res->len - 1; in ibmphp_check_resource() 1233 res->end = res->start + res->len - 1; in ibmphp_check_resource() 1248 res->end = res->start + res->len - 1; in ibmphp_check_resource() 1314 res->end = res->start + res->len - 1; in ibmphp_check_resource() [all …]
|
| /drivers/pci/ |
| A D | setup-res.c | 43 if (!res->flags) in pci_std_update_resource() 142 res_name, res); in pci_claim_resource() 157 res_name, res); in pci_claim_resource() 210 start = res->start; in pci_revert_fw_address() 211 end = res->end; in pci_revert_fw_address() 240 res->end = end; in pci_revert_fw_address() 338 res_name, res); in pci_assign_resource() 386 res_name, res); in pci_reassign_resource() 414 if (!res->parent) in pci_release_resource() 420 res->end = resource_size(res) - 1; in pci_release_resource() [all …]
|
| A D | devres.c | 69 memset(res, 0, sizeof(*res)); in pcim_addr_devres_clear() 100 if (res) in pcim_addr_devres_alloc() 102 return res; in pcim_addr_devres_alloc() 166 *ptr = res; in devm_pci_remap_iospace() 232 if (!res || resource_type(res) != IORESOURCE_MEM) { in devm_pci_remap_cfg_resource() 336 if (!res) { in pcim_intx() 338 if (!res) in pcim_intx() 547 if (!res) in pcim_iomap() 617 if (!res) in pcim_iomap_region() 733 if (!res) in pcim_request_region() [all …]
|
| /drivers/pcmcia/ |
| A D | rsrc_iodyn.c | 78 kfree(res); in __iodyn_find_io_region() 79 res = NULL; in __iodyn_find_io_region() 81 return res; in __iodyn_find_io_region() 106 struct resource *res = s->io[i].res; in iodyn_find_io() local 109 if (res && (res->flags & IORESOURCE_BITS) != in iodyn_find_io() 113 if (!res) { in iodyn_find_io() 117 res = s->io[i].res = __iodyn_find_io_region(s, *base, in iodyn_find_io() 119 if (!res) in iodyn_find_io() 127 *parent = res; in iodyn_find_io() 134 if (adjust_resource(s->io[i].res, res->start, in iodyn_find_io() [all …]
|
| /drivers/thunderbolt/ |
| A D | eeprom.c | 46 if (res) in tb_eeprom_active() 51 if (res) in tb_eeprom_active() 58 if (res) in tb_eeprom_active() 74 int res; in tb_eeprom_transfer() local 77 if (res) in tb_eeprom_transfer() 82 if (res) in tb_eeprom_transfer() 86 if (res) in tb_eeprom_transfer() 101 if (res) in tb_eeprom_out() 121 if (res) in tb_eeprom_in() 140 int res; in tb_eeprom_get_drom_offset() local [all …]
|
| /drivers/pci/controller/dwc/ |
| A D | pcie-qcom.c | 441 res->num_clks = devm_clk_bulk_get_all(dev, &res->clks); in qcom_pcie_get_resources_2_1_0() 467 clk_bulk_disable_unprepare(res->num_clks, res->clks); in qcom_pcie_deinit_2_1_0() 590 clk_bulk_disable_unprepare(res->num_clks, res->clks); in qcom_pcie_deinit_1_0_0() 622 clk_bulk_disable_unprepare(res->num_clks, res->clks); in qcom_pcie_init_1_0_0() 682 clk_bulk_disable_unprepare(res->num_clks, res->clks); in qcom_pcie_deinit_2_3_2() 779 clk_bulk_disable_unprepare(res->num_clks, res->clks); in qcom_pcie_deinit_2_4_0() 846 clk_bulk_disable_unprepare(res->num_clks, res->clks); in qcom_pcie_deinit_2_3_3() 1022 clk_bulk_disable_unprepare(res->num_clks, res->clks); in qcom_pcie_init_2_7_0() 1066 clk_bulk_disable_unprepare(res->num_clks, res->clks); in qcom_pcie_deinit_2_7_0() 1170 clk_bulk_disable_unprepare(res->num_clks, res->clks); in qcom_pcie_deinit_2_9_0() [all …]
|
| /drivers/net/ethernet/netronome/nfp/nfpcore/ |
| A D | nfp_resource.c | 96 res->mutex = in nfp_cpp_resource_find() 158 res = kzalloc(sizeof(*res), GFP_KERNEL); in nfp_resource_acquire() 159 if (!res) in nfp_resource_acquire() 162 strscpy(res->name, name, sizeof(res->name)); in nfp_resource_acquire() 168 kfree(res); in nfp_resource_acquire() 199 return res; in nfp_resource_acquire() 203 kfree(res); in nfp_resource_acquire() 217 kfree(res); in nfp_resource_release() 284 return res->name; in nfp_resource_name() 295 return res->addr; in nfp_resource_address() [all …]
|
| /drivers/gpu/drm/amd/display/dc/sspl/ |
| A D | spl_fixpt31_32.c | 94 res.value = -res.value; in spl_fixpt_from_fraction() 96 return res; in spl_fixpt_from_fraction() 145 res.value = -res.value; in spl_fixpt_mul() 147 return res; in spl_fixpt_mul() 187 return res; in spl_fixpt_sqr() 232 res), in spl_fixpt_sinc() 269 res), in spl_fixpt_cos() 302 res), in spl_fixed31_32_exp_from_taylor_series() 310 res)); in spl_fixed31_32_exp_from_taylor_series() 370 res, in spl_fixpt_log() [all …]
|
| /drivers/gpu/drm/amd/amdgpu/ |
| A D | amdgpu_ras_eeprom.c | 266 int res; in __write_table_header() local 281 res); in __write_table_header() 323 int res; in __write_table_ras_info() local 344 res); in __write_table_ras_info() 1083 res = min_t(size_t, res, size); in amdgpu_ras_debugfs_eeprom_size_read() 1240 return res < 0 ? res : orig_size - size; in amdgpu_ras_debugfs_table_read() 1262 res = min_t(size_t, res, size); in amdgpu_ras_debugfs_eeprom_table_read() 1331 return res < 0 ? res : csum; in __verify_ras_table_checksum() 1358 res = res >= 0 ? -EIO : res; in __read_table_ras_info() 1400 return res >= 0 ? -EIO : res; in amdgpu_ras_eeprom_init() [all …]
|
| /drivers/gpu/drm/amd/display/dc/basics/ |
| A D | fixpt31_32.c | 116 res.value = -res.value; in dc_fixpt_from_fraction() 118 return res; in dc_fixpt_from_fraction() 165 res.value = -res.value; in dc_fixpt_mul() 167 return res; in dc_fixpt_mul() 205 return res; in dc_fixpt_sqr() 249 res), in dc_fixpt_sinc() 286 res), in dc_fixpt_cos() 319 res), in fixed31_32_exp_from_taylor_series() 327 res)); in fixed31_32_exp_from_taylor_series() 387 res, in dc_fixpt_log() [all …]
|
| /drivers/acpi/ |
| A D | resource.c | 77 if (!acpi_dev_resource_len_valid(res->start, res->end, len, false)) in acpi_dev_memresource_flags() 87 res->start = start; in acpi_dev_get_memresource() 132 res->flags = 0; in acpi_dev_resource_memory() 145 if (!acpi_dev_resource_len_valid(res->start, res->end, len, true)) in acpi_dev_ioresource_flags() 198 res->flags = 0; in acpi_dev_resource_io() 214 struct resource *res = &win->res; in acpi_decode_space() local 242 res->end = end; in acpi_decode_space() 885 *rentry->res = win->res; in acpi_dev_new_resource_entry() 897 struct resource *res = &win.res; in acpi_dev_process_resource() local 996 struct resource *res = &win.res; in is_memory() local [all …]
|
| /drivers/scsi/aic94xx/ |
| A D | aic94xx_tmf.c | 22 int res; in asd_enqueue_internal() local 35 return res; in asd_enqueue_internal() 84 int res; \ 110 return res; \ 113 return res 176 if (res == TMF_RESP_FUNC_COMPLETE || res == -ENODEV) { in asd_I_T_nexus_reset() 198 return res; in asd_I_T_nexus_reset() 298 return res; in asd_get_tmf_resp_tasklet() 350 return res; in asd_clear_nexus() 457 if (res) in asd_abort_task() [all …]
|
| /drivers/rtc/ |
| A D | rtc-ds1343.c | 88 int res; in ds1343_show_glitchfilter() local 91 if (res) in ds1343_show_glitchfilter() 108 int res; in ds1343_store_glitchfilter() local 117 if (res) in ds1343_store_glitchfilter() 150 if (res) in ds1343_show_tricklecharger() 202 int res; in ds1343_read_time() local 205 if (res) in ds1343_read_time() 241 int res; in ds1343_read_alarm() local 247 if (res) in ds1343_read_alarm() 253 if (res) in ds1343_read_alarm() [all …]
|