/kernel/linux/linux-6.6/drivers/pnp/ |
H A 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 in pnp_assign_port() 83 struct resource *res, local_res; pnp_assign_mem() local 134 struct resource *res, local_res; pnp_assign_irq() local 193 struct resource *res, local_res; pnp_assign_dma() local [all...] |
/third_party/mesa3d/src/gallium/drivers/crocus/ |
H A D | crocus_resource.c | 172 struct crocus_resource *res, in crocus_resource_configure_main() 188 res->mod_info = isl_drm_modifier_get_info(modifier); in crocus_resource_configure_main() 190 tiling_flags = 1 << res->mod_info->tiling; in crocus_resource_configure_main() 194 res->mod_info = isl_drm_modifier_get_info(modifier); in crocus_resource_configure_main() 195 tiling_flags = 1 << res->mod_info->tiling; in crocus_resource_configure_main() 254 if (!isl_surf_init_s(&screen->isl_dev, &res->surf, &init_info)) in crocus_resource_configure_main() 263 if (res->surf.size_B > screen->aperture_threshold / 2) in crocus_resource_configure_main() 266 res->internal_format = templ->format; in crocus_resource_configure_main() 324 crocus_resource_disable_aux(struct crocus_resource *res) in crocus_resource_disable_aux() argument 326 crocus_bo_unreference(res in crocus_resource_disable_aux() 171 crocus_resource_configure_main(const struct crocus_screen *screen, struct crocus_resource *res, const struct pipe_resource *templ, uint64_t modifier, uint32_t row_pitch_B) crocus_resource_configure_main() argument 341 struct crocus_resource *res = (struct crocus_resource *)resource; crocus_resource_destroy() local 360 struct crocus_resource *res = calloc(1, sizeof(struct crocus_resource)); crocus_alloc_resource() local 377 crocus_get_num_logical_layers(const struct crocus_resource *res, unsigned level) crocus_get_num_logical_layers() argument 386 create_aux_state_map(struct crocus_resource *res, enum isl_aux_state initial) create_aux_state_map() argument 430 crocus_resource_configure_aux(struct crocus_screen *screen, struct crocus_resource *res, bool imported, uint64_t *aux_size_B, uint32_t *alloc_flags) crocus_resource_configure_aux() argument 566 crocus_resource_init_aux_buf(struct crocus_resource *res, uint32_t alloc_flags) crocus_resource_init_aux_buf() argument 593 crocus_resource_alloc_separate_aux(struct crocus_screen *screen, struct crocus_resource *res) crocus_resource_alloc_separate_aux() argument 623 crocus_resource_finish_aux_import(struct pipe_screen *pscreen, struct crocus_resource *res) crocus_resource_finish_aux_import() argument 652 struct crocus_resource *res = crocus_alloc_resource(pscreen, templ); crocus_resource_create_for_buffer() local 682 struct crocus_resource *res = crocus_alloc_resource(pscreen, templ); crocus_resource_create_with_modifiers() local 802 struct crocus_resource *res = crocus_alloc_resource(pscreen, templ); crocus_resource_from_user_memory() local 831 struct crocus_resource *res = crocus_alloc_resource(pscreen, templ); crocus_resource_from_handle() local 911 struct crocus_resource *res = crocus_alloc_resource(pscreen, templ); crocus_resource_from_memobj() local 939 struct crocus_resource *res = (void *) resource; crocus_flush_resource() local 953 struct crocus_resource *res = (struct crocus_resource *)resource; crocus_resource_disable_aux_on_first_query() local 980 struct crocus_resource *res = (struct crocus_resource *)resource; crocus_resource_get_param() local 1050 struct crocus_resource *res = (struct crocus_resource *)resource; crocus_resource_get_handle() local 1106 resource_is_busy(struct crocus_context *ice, struct crocus_resource *res) resource_is_busy() argument 1152 struct crocus_resource *res = (void *) resource; crocus_invalidate_resource() local 1238 struct crocus_resource *res = (void *) xfer->resource; crocus_map_copy_region() local 1307 crocus_resource_get_image_offset(struct crocus_resource *res, uint32_t level, uint32_t z, uint32_t *x, uint32_t *y) crocus_resource_get_image_offset() argument 1375 struct crocus_resource *res = (struct crocus_resource *) xfer->resource; crocus_unmap_s8() local 1408 struct crocus_resource *res = (struct crocus_resource *) xfer->resource; crocus_map_s8() local 1481 struct crocus_resource *res = (struct crocus_resource *) xfer->resource; crocus_unmap_tiled_memcpy() local 1509 struct crocus_resource *res = (struct crocus_resource *) xfer->resource; crocus_map_tiled_memcpy() local 1557 struct crocus_resource *res = (struct crocus_resource *) xfer->resource; crocus_map_direct() local 1588 can_promote_to_async(const struct crocus_resource *res, const struct pipe_box *box, unsigned usage) can_promote_to_async() argument 1611 struct crocus_resource *res = (struct crocus_resource *)resource; crocus_transfer_map() local 1742 struct crocus_resource *res = (struct crocus_resource *) xfer->resource; crocus_transfer_flush_region() local 1813 crocus_dirty_for_history(struct crocus_context *ice, struct crocus_resource *res) crocus_dirty_for_history() argument 1830 crocus_flush_bits_for_history(struct crocus_resource *res) crocus_flush_bits_for_history() argument 1852 crocus_flush_and_dirty_for_history(struct crocus_context *ice, struct crocus_batch *batch, struct crocus_resource *res, uint32_t extra_flags, const char *reason) crocus_flush_and_dirty_for_history() argument 1869 crocus_resource_set_clear_color(struct crocus_context *ice, struct crocus_resource *res, union isl_color_value color) crocus_resource_set_clear_color() argument 1882 crocus_resource_get_clear_color(const struct crocus_resource *res) crocus_resource_get_clear_color() argument 1892 struct crocus_resource *res = (void *) p_res; crocus_resource_get_internal_format() local [all...] |
/kernel/linux/linux-6.6/include/kunit/ |
H A D | resource.h | 51 * static int kunit_kmalloc_init(struct kunit_resource *res, void *context) 54 * res->data = kmalloc(params->size, params->gfp); 56 * if (!res->data) 62 * static void kunit_kmalloc_free(struct kunit_resource *res) 64 * kfree(res->data); 98 * @res: resource 100 static inline void kunit_get_resource(struct kunit_resource *res) in kunit_get_resource() argument 102 kref_get(&res->refcount); in kunit_get_resource() 111 struct kunit_resource *res = container_of(kref, struct kunit_resource, in kunit_release_resource() local 114 if (res in kunit_release_resource() 136 kunit_put_resource(struct kunit_resource *res) kunit_put_resource() argument 169 kunit_add_resource(struct kunit *test, kunit_resource_init_t init, kunit_resource_free_t free, struct kunit_resource *res, void *data) kunit_add_resource() argument 191 kunit_add_named_resource(struct kunit *test, kunit_resource_init_t init, kunit_resource_free_t free, struct kunit_resource *res, const char *name, void *data) kunit_add_named_resource() argument 243 struct kunit_resource *res; kunit_alloc_and_get_resource() local 286 struct kunit_resource *res; kunit_alloc_resource() local 309 kunit_resource_name_match(struct kunit *test, struct kunit_resource *res, void *match_name) kunit_resource_name_match() argument 327 struct kunit_resource *res, *found = NULL; kunit_find_resource() local [all...] |
/third_party/jerryscript/tests/jerry/ |
H A D | string-prototype-slice.js | 16 var res; variable 18 res = str.slice(); 19 assert (res === "universe"); 21 res = str.slice(1, 6); 22 assert (res === "niver"); 24 res = str.slice("a", "-4"); 25 assert (res === "univ"); 27 res = str.slice(-5); 28 assert (res === "verse"); 30 res [all...] |
/kernel/linux/linux-5.10/drivers/pci/hotplug/ |
H A 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 in show_ctrl() 70 struct pci_resource *res; show_dev() local [all...] |
/kernel/linux/linux-6.6/drivers/pci/hotplug/ |
H A 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 in show_ctrl() 70 struct pci_resource *res; show_dev() local [all...] |
/third_party/libfuse/example/ |
H A D | passthrough.c | 80 int res; in xmp_getattr() local 82 res = lstat(path, stbuf); in xmp_getattr() 83 if (res == -1) in xmp_getattr() 91 int res; in xmp_access() local 93 res = access(path, mask); in xmp_access() 94 if (res == -1) in xmp_access() 102 int res; in xmp_readlink() local 104 res = readlink(path, buf, size - 1); in xmp_readlink() 105 if (res == -1) in xmp_readlink() 108 buf[res] in xmp_readlink() 143 int res; xmp_mknod() local 154 int res; xmp_mkdir() local 165 int res; xmp_unlink() local 176 int res; xmp_rmdir() local 187 int res; xmp_symlink() local 198 int res; xmp_rename() local 212 int res; xmp_link() local 225 int res; xmp_chmod() local 238 int res; xmp_chown() local 250 int res; xmp_truncate() local 267 int res; xmp_utimens() local 281 int res; xmp_create() local 293 int res; xmp_open() local 307 int res; xmp_read() local 330 int res; xmp_write() local 352 int res; xmp_statfs() local 385 int res; xmp_fallocate() local 413 int res = lsetxattr(path, name, value, size, flags); xmp_setxattr() local 422 int res = lgetxattr(path, name, value, size); xmp_getxattr() local 430 int res = llistxattr(path, list, size); xmp_listxattr() local 438 int res = lremovexattr(path, name); xmp_removexattr() local 453 ssize_t res; xmp_copy_file_range() local 490 off_t res; xmp_lseek() local [all...] |
/kernel/linux/linux-6.6/drivers/pci/ |
H A 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() 81 if (!(res->flags & IORESOURCE_ROM_ENABLE) && in pci_std_update_resource() 86 if (res in pci_std_update_resource() 137 struct resource *res = &dev->resource[resource]; pci_claim_resource() local 199 pci_revert_fw_address(struct resource *res, struct pci_dev *dev, int resno, resource_size_t size) pci_revert_fw_address() argument 253 pcibios_align_resource(void *data, const struct resource *res, resource_size_t size, resource_size_t align) pcibios_align_resource() argument 264 struct resource *res = dev->resource + resno; __pci_assign_resource() local 327 struct resource *res = dev->resource + resno; pci_assign_resource() local 373 struct resource *res = dev->resource + resno; pci_reassign_resource() local 411 struct resource *res = dev->resource + resno; pci_release_resource() local 427 struct resource *res = dev->resource + resno; pci_resize_resource() local [all...] |
/third_party/mesa3d/src/gallium/drivers/iris/ |
H A D | iris_resolve.c | 98 if (isv->res->base.b.target != PIPE_BUFFER) { in resolve_sampler_views() 100 disable_rb_aux_buffer(ice, draw_aux_buffer_disabled, isv->res, in resolve_sampler_views() 105 iris_resource_prepare_texture(ice, isv->res, isv->view.format, in resolve_sampler_views() 111 iris_emit_buffer_barrier_for(batch, isv->res->bo, in resolve_sampler_views() 129 struct iris_resource *res = (void *) pview->resource; in resolve_image_views() local 131 if (res->base.b.target != PIPE_BUFFER) { in resolve_image_views() 134 res, pview->u.tex.level, 1, in resolve_image_views() 144 iris_resource_prepare_access(ice, res, in resolve_image_views() 150 iris_emit_buffer_barrier_for(batch, res->bo, IRIS_DOMAIN_DATA_WRITE); in resolve_image_views() 221 struct iris_resource *res in iris_predraw_resolve_framebuffer() local 237 struct iris_resource *res = (void *) surf->base.texture; iris_predraw_resolve_framebuffer() local 317 struct iris_resource *res = (void *) surf->base.texture; iris_postdraw_update_resolve_tracking() local 383 struct iris_resource *res = (void *)cbuf->buffer; flush_ubos() local 399 struct iris_resource *res = (void *)ssbo->buffer; flush_ssbos() local 430 iris_resolve_color(struct iris_context *ice, struct iris_batch *batch, struct iris_resource *res, unsigned level, unsigned layer, enum isl_aux_op resolve_op) iris_resolve_color() argument 488 iris_mcs_partial_resolve(struct iris_context *ice, struct iris_batch *batch, struct iris_resource *res, uint32_t start_layer, uint32_t num_layers) iris_mcs_partial_resolve() argument 516 iris_sample_with_depth_aux(const struct intel_device_info *devinfo, const struct iris_resource *res) iris_sample_with_depth_aux() argument 559 iris_hiz_exec(struct iris_context *ice, struct iris_batch *batch, struct iris_resource *res, unsigned int level, unsigned int start_layer, unsigned int num_layers, enum isl_aux_op op, bool update_clear_depth) iris_hiz_exec() argument 650 iris_resource_level_has_hiz(const struct iris_resource *res, uint32_t level) iris_resource_level_has_hiz() argument 673 iris_resource_check_level_layer(UNUSED const struct iris_resource *res, UNUSED uint32_t level, UNUSED uint32_t layer) iris_resource_check_level_layer() argument 681 miptree_level_range_length(const struct iris_resource *res, uint32_t start_level, uint32_t num_levels) miptree_level_range_length() argument 697 miptree_layer_range_length(const struct iris_resource *res, uint32_t level, uint32_t start_layer, uint32_t num_layers) miptree_layer_range_length() argument 714 iris_has_invalid_primary(const struct iris_resource *res, unsigned start_level, unsigned num_levels, unsigned start_layer, unsigned num_layers) iris_has_invalid_primary() argument 740 iris_resource_prepare_access(struct iris_context *ice, struct iris_resource *res, uint32_t start_level, uint32_t num_levels, uint32_t start_layer, uint32_t num_layers, enum isl_aux_usage aux_usage, bool fast_clear_supported) iris_resource_prepare_access() argument 796 iris_resource_finish_write(struct iris_context *ice, struct iris_resource *res, uint32_t level, uint32_t start_layer, uint32_t num_layers, enum isl_aux_usage aux_usage) iris_resource_finish_write() argument 828 iris_resource_get_aux_state(const struct iris_resource *res, uint32_t level, uint32_t layer) iris_resource_get_aux_state() argument 844 iris_resource_set_aux_state(struct iris_context *ice, struct iris_resource *res, uint32_t level, uint32_t start_layer, uint32_t num_layers, enum isl_aux_state aux_state) iris_resource_set_aux_state() argument 881 iris_resource_texture_aux_usage(struct iris_context *ice, const struct iris_resource *res, enum isl_format view_format) iris_resource_texture_aux_usage() argument 945 struct iris_resource *res = (void *) pview->resource; iris_image_view_aux_usage() local 965 iris_can_sample_mcs_with_clear(const struct intel_device_info *devinfo, const struct iris_resource *res) iris_can_sample_mcs_with_clear() argument 1000 iris_resource_prepare_texture(struct iris_context *ice, struct iris_resource *res, enum isl_format view_format, uint32_t start_level, uint32_t num_levels, uint32_t start_layer, uint32_t num_layers) iris_resource_prepare_texture() argument 1053 iris_resource_render_aux_usage(struct iris_context *ice, struct iris_resource *res, uint32_t level, enum isl_format render_format, bool draw_aux_disabled) iris_resource_render_aux_usage() argument 1115 iris_resource_prepare_render(struct iris_context *ice, struct iris_resource *res, uint32_t level, uint32_t start_layer, uint32_t layer_count, enum isl_aux_usage aux_usage) iris_resource_prepare_render() argument 1126 iris_resource_finish_render(struct iris_context *ice, struct iris_resource *res, uint32_t level, uint32_t start_layer, uint32_t layer_count, enum isl_aux_usage aux_usage) iris_resource_finish_render() argument [all...] |
/kernel/linux/linux-5.10/drivers/pci/ |
H A 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 in pci_std_update_resource() 133 struct resource *res = &dev->resource[resource]; pci_claim_resource() local 195 pci_revert_fw_address(struct resource *res, struct pci_dev *dev, int resno, resource_size_t size) pci_revert_fw_address() argument 249 pcibios_align_resource(void *data, const struct resource *res, resource_size_t size, resource_size_t align) pcibios_align_resource() argument 260 struct resource *res = dev->resource + resno; __pci_assign_resource() local 323 struct resource *res = dev->resource + resno; pci_assign_resource() local 369 struct resource *res = dev->resource + resno; pci_reassign_resource() local 407 struct resource *res = dev->resource + resno; pci_release_resource() local 423 struct resource *res = dev->resource + resno; pci_resize_resource() local [all...] |
/kernel/linux/linux-5.10/drivers/ps3/ |
H A 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 < in ps3av_cmd_init() 196 int res; ps3av_cmd_fin() local 215 int i, send_len, res; ps3av_cmd_av_video_mute() local 243 int res; ps3av_cmd_av_video_disable_sig() local 266 int res; ps3av_cmd_av_tv_mute() local 288 int res; ps3av_cmd_enable_event() local 309 int res; ps3av_cmd_av_hdmi_mode() local 411 int res; ps3av_cmd_video_format_black() local 438 int i, res; ps3av_cmd_av_audio_mute() local 785 int res; ps3av_cmd_audio_mode() local 801 int i, res; ps3av_cmd_audio_mute() local 830 int res; ps3av_cmd_audio_active() local 854 int res; ps3av_cmd_avb_param() local 876 int res; ps3av_cmd_av_get_hw_conf() local 895 int res; ps3av_cmd_video_get_monitor_info() local [all...] |
/kernel/linux/linux-6.6/drivers/ps3/ |
H A 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 < in ps3av_cmd_init() 196 int res; ps3av_cmd_fin() local 215 int i, send_len, res; ps3av_cmd_av_video_mute() local 243 int res; ps3av_cmd_av_video_disable_sig() local 266 int res; ps3av_cmd_av_tv_mute() local 288 int res; ps3av_cmd_enable_event() local 309 int res; ps3av_cmd_av_hdmi_mode() local 411 int res; ps3av_cmd_video_format_black() local 438 int i, res; ps3av_cmd_av_audio_mute() local 785 int res; ps3av_cmd_audio_mode() local 801 int i, res; ps3av_cmd_audio_mute() local 830 int res; ps3av_cmd_audio_active() local 854 int res; ps3av_cmd_avb_param() local 876 int res; ps3av_cmd_av_get_hw_conf() local 895 int res; ps3av_cmd_video_get_monitor_info() local [all...] |
/third_party/mesa3d/src/gallium/winsys/virgl/vtest/ |
H A D | virgl_vtest_winsys.c | 40 struct virgl_hw_res *res); 42 struct virgl_hw_res *res); 53 static uint32_t vtest_get_transfer_size(struct virgl_hw_res *res, in vtest_get_transfer_size() argument 60 valid_stride = util_format_get_stride(res->format, box->width); in vtest_get_transfer_size() 66 valid_layer_stride = util_format_get_2d_size(res->format, valid_stride, in vtest_get_transfer_size() 79 struct virgl_hw_res *res, in virgl_vtest_transfer_put() 89 size = vtest_get_transfer_size(res, box, stride, layer_stride, level, in virgl_vtest_transfer_put() 92 virgl_vtest_send_transfer_put(vtws, res->res_handle, in virgl_vtest_transfer_put() 99 ptr = virgl_vtest_resource_map(vws, res); in virgl_vtest_transfer_put() 101 virgl_vtest_resource_unmap(vws, res); in virgl_vtest_transfer_put() 78 virgl_vtest_transfer_put(struct virgl_winsys *vws, struct virgl_hw_res *res, const struct pipe_box *box, uint32_t stride, uint32_t layer_stride, uint32_t buf_offset, uint32_t level) virgl_vtest_transfer_put() argument 106 virgl_vtest_transfer_get_internal(struct virgl_winsys *vws, struct virgl_hw_res *res, const struct pipe_box *box, uint32_t stride, uint32_t layer_stride, uint32_t buf_offset, uint32_t level, bool flush_front_buffer) virgl_vtest_transfer_get_internal() argument 163 virgl_vtest_transfer_get(struct virgl_winsys *vws, struct virgl_hw_res *res, const struct pipe_box *box, uint32_t stride, uint32_t layer_stride, uint32_t buf_offset, uint32_t level) virgl_vtest_transfer_get() argument 174 virgl_hw_res_destroy(struct virgl_vtest_winsys *vtws, struct virgl_hw_res *res) virgl_hw_res_destroy() argument 190 virgl_vtest_resource_is_busy(struct virgl_winsys *vws, struct virgl_hw_res *res) virgl_vtest_resource_is_busy() argument 239 struct virgl_hw_res *res; virgl_vtest_winsys_resource_create() local 326 virgl_vtest_resource_map(struct virgl_winsys *vws, struct virgl_hw_res *res) virgl_vtest_resource_map() argument 345 virgl_vtest_resource_unmap(struct virgl_winsys *vws, struct virgl_hw_res *res) virgl_vtest_resource_unmap() argument 356 virgl_vtest_resource_wait(struct virgl_winsys *vws, struct virgl_hw_res *res) virgl_vtest_resource_wait() argument 380 struct virgl_hw_res *res; virgl_vtest_winsys_resource_cache_create() local 417 virgl_vtest_lookup_res(struct virgl_vtest_cmd_buf *cbuf, struct virgl_hw_res *res) virgl_vtest_lookup_res() argument 450 virgl_vtest_add_res(struct virgl_vtest_winsys *vtws, struct virgl_vtest_cmd_buf *cbuf, struct virgl_hw_res *res) virgl_vtest_add_res() argument 520 struct virgl_hw_res *res; virgl_vtest_fence_create() local 556 virgl_vtest_emit_res(struct virgl_winsys *vws, struct virgl_cmd_buf *_cbuf, struct virgl_hw_res *res, boolean write_buf) virgl_vtest_emit_res() argument 570 virgl_vtest_res_is_ref(struct virgl_winsys *vws, struct virgl_cmd_buf *_cbuf, struct virgl_hw_res *res) virgl_vtest_res_is_ref() argument 604 struct virgl_hw_res *res = virgl_hw_res(fence); virgl_fence_wait() local 632 virgl_vtest_flush_frontbuffer(struct virgl_winsys *vws, struct virgl_hw_res *res, unsigned level, unsigned layer, void *winsys_drawable_handle, struct pipe_box *sub_box) virgl_vtest_flush_frontbuffer() argument 681 struct virgl_hw_res *res = cache_entry_container_res(entry); virgl_vtest_resource_cache_entry_is_busy() local 691 struct virgl_hw_res *res = cache_entry_container_res(entry); virgl_vtest_resource_cache_entry_release() local [all...] |
/kernel/linux/linux-5.10/fs/ocfs2/dlm/ |
H A D | dlmunlock.c | 44 struct dlm_lock_resource *res, 49 struct dlm_lock_resource *res, 55 struct dlm_lock_resource *res, 78 * taken: res->spinlock and lock->spinlock taken and dropped 84 struct dlm_lock_resource *res, in dlmunlock_common() 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 in dlmunlock_common() 83 dlmunlock_common(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, struct dlm_lockstatus *lksb, int flags, int *call_ast, int master_node) dlmunlock_common() argument 267 dlm_commit_pending_unlock(struct dlm_lock_resource *res, struct dlm_lock *lock) dlm_commit_pending_unlock() argument 275 dlm_commit_pending_cancel(struct dlm_lock_resource *res, struct dlm_lock *lock) dlm_commit_pending_cancel() argument 283 dlmunlock_master(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, struct dlm_lockstatus *lksb, int flags, int *call_ast) dlmunlock_master() argument 293 dlmunlock_remote(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, struct dlm_lockstatus *lksb, int flags, int *call_ast) dlmunlock_remote() argument 309 dlm_send_remote_unlock_request(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, struct dlm_lockstatus *lksb, int flags, u8 owner) dlm_send_remote_unlock_request() argument 396 struct dlm_lock_resource *res = NULL; dlm_unlock_lock_handler() local 528 dlm_get_cancel_actions(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, struct dlm_lockstatus *lksb, int *actions) dlm_get_cancel_actions() argument 560 dlm_get_unlock_actions(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, struct dlm_lockstatus *lksb, int *actions) dlm_get_unlock_actions() argument 591 struct dlm_lock_resource *res; dlmunlock() local [all...] |
H A D | dlmconvert.c | 39 * needs a spinlock held on entry (res->spinlock) and it is the 40 * only one that holds a lock on exit (res->spinlock). 44 struct dlm_lock_resource *res, 49 struct dlm_lock_resource *res, 57 * taken: takes and drops res->spinlock 62 struct dlm_lock_resource *res, in dlmconvert_master() 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 in dlmconvert_master() 61 dlmconvert_master(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, int flags, int type) dlmconvert_master() argument 104 __dlmconvert_master(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, int flags, int type, int *call_ast, int *kick_thread) __dlmconvert_master() argument 235 dlm_revert_pending_convert(struct dlm_lock_resource *res, struct dlm_lock *lock) dlm_revert_pending_convert() argument 251 dlmconvert_remote(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, int flags, int type) dlmconvert_remote() argument 355 dlm_send_remote_convert_request(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, int flags, int type) dlm_send_remote_convert_request() argument 436 struct dlm_lock_resource *res = NULL; dlm_convert_lock_handler() local [all...] |
/kernel/linux/linux-6.6/fs/ocfs2/dlm/ |
H A D | dlmconvert.c | 37 * needs a spinlock held on entry (res->spinlock) and it is the 38 * only one that holds a lock on exit (res->spinlock). 42 struct dlm_lock_resource *res, 47 struct dlm_lock_resource *res, 55 * taken: takes and drops res->spinlock 60 struct dlm_lock_resource *res, in dlmconvert_master() 66 spin_lock(&res->spinlock); in dlmconvert_master() 68 __dlm_wait_on_lockres(res); in dlmconvert_master() 69 __dlm_lockres_reserve_ast(res); in dlmconvert_master() 70 res in dlmconvert_master() 59 dlmconvert_master(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, int flags, int type) dlmconvert_master() argument 102 __dlmconvert_master(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, int flags, int type, int *call_ast, int *kick_thread) __dlmconvert_master() argument 233 dlm_revert_pending_convert(struct dlm_lock_resource *res, struct dlm_lock *lock) dlm_revert_pending_convert() argument 249 dlmconvert_remote(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, int flags, int type) dlmconvert_remote() argument 353 dlm_send_remote_convert_request(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, int flags, int type) dlm_send_remote_convert_request() argument 434 struct dlm_lock_resource *res = NULL; dlm_convert_lock_handler() local [all...] |
H A D | dlmunlock.c | 42 struct dlm_lock_resource *res, 47 struct dlm_lock_resource *res, 53 struct dlm_lock_resource *res, 76 * taken: res->spinlock and lock->spinlock taken and dropped 82 struct dlm_lock_resource *res, in dlmunlock_common() 98 BUG_ON(res->owner != dlm->node_num); in dlmunlock_common() 100 BUG_ON(res->owner == dlm->node_num); in dlmunlock_common() 109 "while waiting for an ast!", res->lockname.len, in dlmunlock_common() 110 res->lockname.name); in dlmunlock_common() 114 spin_lock(&res in dlmunlock_common() 81 dlmunlock_common(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, struct dlm_lockstatus *lksb, int flags, int *call_ast, int master_node) dlmunlock_common() argument 265 dlm_commit_pending_unlock(struct dlm_lock_resource *res, struct dlm_lock *lock) dlm_commit_pending_unlock() argument 273 dlm_commit_pending_cancel(struct dlm_lock_resource *res, struct dlm_lock *lock) dlm_commit_pending_cancel() argument 281 dlmunlock_master(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, struct dlm_lockstatus *lksb, int flags, int *call_ast) dlmunlock_master() argument 291 dlmunlock_remote(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, struct dlm_lockstatus *lksb, int flags, int *call_ast) dlmunlock_remote() argument 307 dlm_send_remote_unlock_request(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, struct dlm_lockstatus *lksb, int flags, u8 owner) dlm_send_remote_unlock_request() argument 394 struct dlm_lock_resource *res = NULL; dlm_unlock_lock_handler() local 525 dlm_get_cancel_actions(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, struct dlm_lockstatus *lksb, int *actions) dlm_get_cancel_actions() argument 557 dlm_get_unlock_actions(struct dlm_ctxt *dlm, struct dlm_lock_resource *res, struct dlm_lock *lock, struct dlm_lockstatus *lksb, int *actions) dlm_get_unlock_actions() argument 588 struct dlm_lock_resource *res; dlmunlock() local [all...] |
/third_party/node/deps/npm/node_modules/npm-package-arg/lib/ |
H A D | npa.js | 59 const res = new Result({ 67 res.setName(name) 71 return fromFile(res, where) 73 return fromAlias(res, where) 81 return fromHostedGit(res, hosted) 83 return fromURL(res) 85 return fromFile(res, where) 87 return fromRegistry(res) 94 const res = npa(arg) 96 if (res [all...] |
/third_party/node/test/parallel/ |
H A D | test-http-content-length-mismatch.js | 8 const server = http.createServer(common.mustCall((req, res) => { 9 res.strictContentLength = true; 10 res.setHeader('Content-Length', 5); 11 res.write('hello'); 13 res.write('a'); 17 res.statusCode = 200; 18 res.end(); 24 }, common.mustCall((res) => { 25 res.resume(); 26 assert.strictEqual(res [all...] |
/kernel/linux/linux-5.10/drivers/thunderbolt/ |
H A 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 100 int res = tb_eeprom_ctl_read(sw, &ctl); tb_eeprom_out() local 120 int res = tb_eeprom_ctl_read(sw, &ctl); tb_eeprom_in() local 140 int res; tb_eeprom_get_drom_offset() local 172 int i, res; tb_eeprom_read_n() local 291 int res; tb_drom_read_uid_only() local 339 int res; tb_drom_parse_entry_port() local 387 int res; tb_drom_parse_entries() local 419 int len, res; tb_drom_copy_efi() local 530 int res, retries = 1; tb_drom_read() local [all...] |
/kernel/linux/linux-6.6/lib/kunit/ |
H A D | resource.c | 17 * the data value passed in. Doesn't initialize res->should_kfree. 22 struct kunit_resource *res, in __kunit_add_resource() 28 res->free = free; in __kunit_add_resource() 29 kref_init(&res->refcount); in __kunit_add_resource() 32 ret = init(res, data); in __kunit_add_resource() 36 res->data = data; in __kunit_add_resource() 40 list_add_tail(&res->node, &test->resources); in __kunit_add_resource() 48 void kunit_remove_resource(struct kunit *test, struct kunit_resource *res) in kunit_remove_resource() argument 54 was_linked = !list_empty(&res->node); in kunit_remove_resource() 55 list_del_init(&res in kunit_remove_resource() 19 __kunit_add_resource(struct kunit *test, kunit_resource_init_t init, kunit_resource_free_t free, struct kunit_resource *res, void *data) __kunit_add_resource() argument 66 struct kunit_resource *res = kunit_find_resource(test, match, kunit_destroy_resource() local 82 struct kunit_resource res; global() member 87 __kunit_action_free(struct kunit_resource *res) __kunit_action_free() argument 119 int res = kunit_add_action(test, action, ctx); kunit_add_action_or_reset() local 127 __kunit_action_match(struct kunit *test, struct kunit_resource *res, void *match_data) __kunit_action_match() argument 146 struct kunit_resource *res; kunit_remove_action() local 166 struct kunit_resource *res; kunit_release_action() local [all...] |
/kernel/linux/linux-5.10/arch/mips/include/asm/ |
H A D | unaligned-emul.h | 8 #define _LoadHW(addr, value, res, type) \ 26 : "=&r" (value), "=r" (res) \ 31 #define _LoadW(addr, value, res, type) \ 47 : "=&r" (value), "=r" (res) \ 53 #define _LoadW(addr, value, res, type) \ 82 : "=&r" (value), "=r" (res) \ 88 #define _LoadHWU(addr, value, res, type) \ 108 : "=&r" (value), "=r" (res) \ 113 #define _LoadWU(addr, value, res, type) \ 131 : "=&r" (value), "=r" (res) \ [all...] |
/kernel/linux/linux-6.6/arch/mips/include/asm/ |
H A D | unaligned-emul.h | 8 #define _LoadHW(addr, value, res, type) \ 26 : "=&r" (value), "=r" (res) \ 31 #define _LoadW(addr, value, res, type) \ 47 : "=&r" (value), "=r" (res) \ 53 #define _LoadW(addr, value, res, type) \ 82 : "=&r" (value), "=r" (res) \ 88 #define _LoadHWU(addr, value, res, type) \ 108 : "=&r" (value), "=r" (res) \ 113 #define _LoadWU(addr, value, res, type) \ 131 : "=&r" (value), "=r" (res) \ [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A 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() 341 find_next_iomem_res(resource_size_t start, resource_size_t end, unsigned long flags, unsigned long desc, bool first_lvl, struct resource *res) find_next_iomem_res() argument 403 struct resource res; __walk_iomem_res_desc() local 483 struct resource res; walk_system_ram_range() local 542 struct resource res; region_intersects() local 582 resource_clip(struct resource *res, resource_size_t min, resource_size_t max) resource_clip() argument 768 struct resource *res; lookup_resource() local 938 __adjust_resource(struct resource *res, resource_size_t start, resource_size_t size) __adjust_resource() argument 985 adjust_resource(struct resource *res, resource_size_t start, resource_size_t size) adjust_resource() argument 1003 struct resource *res = alloc_resource(GFP_ATOMIC); __reserve_region_with_split() local 1093 resource_alignment(struct resource *res) resource_alignment() argument 1131 struct resource *res = alloc_resource(GFP_KERNEL); __request_region() local 1211 struct resource *res = *p; __release_region() local 1266 struct resource *res; release_mem_region_adjustable() local 1379 merge_system_ram_resource(struct resource *res) merge_system_ram_resource() argument 1463 devm_resource_match(struct device *dev, void *res, void *data) devm_resource_match() argument 1490 devm_region_release(struct device *dev, void *res) devm_region_release() argument 1497 devm_region_match(struct device *dev, void *res, void *match_data) devm_region_match() argument 1510 struct resource *res; __devm_request_region() local 1561 struct resource *res = reserve + x; reserve_setup() local 1682 resource_list_create_entry(struct resource *res, size_t extra_size) resource_list_create_entry() argument 1711 struct resource *res; __request_free_mem_region() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | local_kptr_stash.c | 52 struct node_data *res; in create_and_stash() local 58 res = bpf_obj_new(typeof(*res)); in create_and_stash() 59 if (!res) in create_and_stash() 61 res->key = val; in create_and_stash() 63 res = bpf_kptr_xchg(&mapval->node, res); in create_and_stash() 64 if (res) in create_and_stash() 65 bpf_obj_drop(res); in create_and_stash() 79 struct plain_local *res; in stash_plain() local 101 struct node_data *res; unstash_rb_node() local 121 struct prog_test_ref_kfunc *res; stash_test_ref_kfunc() local [all...] |