/third_party/mesa3d/src/intel/isl/ |
H A D | isl_aux_info.c | 106 enum isl_aux_usage usage) in aux_state_possible() 111 return info[usage].fast_clear; in aux_state_possible() 113 return info[usage].fast_clear && info[usage].compressed; in aux_state_possible() 115 return info[usage].compressed; in aux_state_possible() 131 enum isl_aux_usage usage, in isl_aux_prepare_access() 134 if (usage != ISL_AUX_USAGE_NONE) { in isl_aux_prepare_access() 136 usage == ISL_AUX_USAGE_CCS_D ? ISL_AUX_USAGE_CCS_E : usage; in isl_aux_prepare_access() 139 assert(!fast_clear_supported || info[usage] in isl_aux_prepare_access() 105 aux_state_possible(enum isl_aux_state state, enum isl_aux_usage usage) aux_state_possible() argument 130 isl_aux_prepare_access(enum isl_aux_state initial_state, enum isl_aux_usage usage, bool fast_clear_supported) isl_aux_prepare_access() argument 171 isl_aux_state_transition_aux_op(enum isl_aux_state initial_state, enum isl_aux_usage usage, enum isl_aux_op op) isl_aux_state_transition_aux_op() argument 208 isl_aux_state_transition_write(enum isl_aux_state initial_state, enum isl_aux_usage usage, bool full_surface) isl_aux_state_transition_write() argument 257 isl_aux_usage_has_fast_clears(enum isl_aux_usage usage) isl_aux_usage_has_fast_clears() argument 263 isl_aux_usage_has_compression(enum isl_aux_usage usage) isl_aux_usage_has_compression() argument [all...] |
/kernel/linux/linux-6.6/drivers/hid/ |
H A D | hid-input.c | 52 __u32 usage; /* the HID usage associated */ member 56 unsigned int slot_overwrite; /* for globals: allows to set the usage 80 .usage = HID_DG_ERASER, 83 .usage = HID_DG_INVERT, 86 .usage = HID_DG_TIPSWITCH, 89 .usage = HID_DG_TIPPRESSURE, 92 .usage = HID_DG_INRANGE, 96 #define map_abs(c) hid_map_usage(hidinput, usage, &bit, &max, EV_ABS, (c)) 97 #define map_rel(c) hid_map_usage(hidinput, usage, 107 match_scancode(struct hid_usage *usage, unsigned int cur_idx, unsigned int scancode) match_scancode() argument 113 match_keycode(struct hid_usage *usage, unsigned int cur_idx, unsigned int keycode) match_keycode() argument 122 match_index(struct hid_usage *usage, unsigned int cur_idx, unsigned int idx) match_index() argument 138 struct hid_usage *usage; hidinput_find_key() local 164 struct hid_usage *usage; hidinput_locate_usage() local 181 struct hid_usage *usage; hidinput_getkeycode() local 203 struct hid_usage *usage; hidinput_setkeycode() local 642 hidinput_set_battery_charge_status(struct hid_device *dev, unsigned int usage, int value) hidinput_set_battery_charge_status() argument 670 hidinput_set_battery_charge_status(struct hid_device *dev, unsigned int usage, int value) hidinput_set_battery_charge_status() argument 677 hidinput_field_in_collection(struct hid_device *device, struct hid_field *field, unsigned int type, unsigned int usage) hidinput_field_in_collection() argument 687 hidinput_configure_usage(struct hid_input *hidinput, struct hid_field *field, struct hid_usage *usage, unsigned int usage_index) hidinput_configure_usage() argument 1463 hidinput_handle_scroll(struct hid_usage *usage, struct input_dev *input, __s32 value) hidinput_handle_scroll() argument 1523 hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) hidinput_hid_event() argument 1900 struct hid_usage *usage; __hidinput_change_resolution_multipliers() local 1983 struct hid_usage *usage; report_features() local [all...] |
H A D | hid-a4tech.c | 35 struct hid_field *field, struct hid_usage *usage, in a4_input_mapping() 41 usage->hid == A4_WHEEL_ORIENTATION) { in a4_input_mapping() 43 * We do not want to have this usage mapped to anything as it's in a4_input_mapping() 57 struct hid_field *field, struct hid_usage *usage, in a4_input_mapped() 62 if (usage->type == EV_REL && usage->code == REL_WHEEL_HI_RES) { in a4_input_mapped() 67 if ((a4->quirks & A4_2WHEEL_MOUSE_HACK_7) && usage->hid == 0x00090007) in a4_input_mapped() 74 struct hid_usage *usage, __s32 value) in a4_event() 85 if (usage->type == EV_REL && usage in a4_event() 34 a4_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) a4_input_mapping() argument 56 a4_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) a4_input_mapped() argument 73 a4_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) a4_event() argument [all...] |
H A D | hid-ezkey.c | 22 #define ez_map_rel(c) hid_map_usage(hi, usage, bit, max, EV_REL, (c)) 23 #define ez_map_key(c) hid_map_usage(hi, usage, bit, max, EV_KEY, (c)) 26 struct hid_field *field, struct hid_usage *usage, in ez_input_mapping() 29 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) in ez_input_mapping() 32 switch (usage->hid & HID_USAGE) { in ez_input_mapping() 37 * totally broken way. We map this usage temporarily in ez_input_mapping() 48 struct hid_usage *usage, __s32 value) in ez_event() 51 !usage->type) in ez_event() 55 if (usage->type == EV_REL && usage in ez_event() 25 ez_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ez_input_mapping() argument 47 ez_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) ez_event() argument [all...] |
/kernel/linux/linux-5.10/drivers/hid/ |
H A D | hid-input.c | 51 #define map_abs(c) hid_map_usage(hidinput, usage, &bit, &max, EV_ABS, (c)) 52 #define map_rel(c) hid_map_usage(hidinput, usage, &bit, &max, EV_REL, (c)) 53 #define map_key(c) hid_map_usage(hidinput, usage, &bit, &max, EV_KEY, (c)) 54 #define map_led(c) hid_map_usage(hidinput, usage, &bit, &max, EV_LED, (c)) 56 #define map_abs_clear(c) hid_map_usage_clear(hidinput, usage, &bit, \ 58 #define map_key_clear(c) hid_map_usage_clear(hidinput, usage, &bit, \ 61 static bool match_scancode(struct hid_usage *usage, in match_scancode() argument 64 return (usage->hid & (HID_USAGE_PAGE | HID_USAGE)) == scancode; in match_scancode() 67 static bool match_keycode(struct hid_usage *usage, in match_keycode() argument 73 return (usage in match_keycode() 76 match_index(struct hid_usage *usage, unsigned int cur_idx, unsigned int idx) match_index() argument 92 struct hid_usage *usage; hidinput_find_key() local 118 struct hid_usage *usage; hidinput_locate_usage() local 135 struct hid_usage *usage; hidinput_getkeycode() local 157 struct hid_usage *usage; hidinput_setkeycode() local 566 hidinput_configure_usage(struct hid_input *hidinput, struct hid_field *field, struct hid_usage *usage) hidinput_configure_usage() argument 1256 hidinput_handle_scroll(struct hid_usage *usage, struct input_dev *input, __s32 value) hidinput_handle_scroll() argument 1288 hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) hidinput_hid_event() argument 1592 struct hid_usage *usage; __hidinput_change_resolution_multipliers() local 1675 struct hid_usage *usage; report_features() local [all...] |
H A D | hid-a4tech.c | 35 struct hid_field *field, struct hid_usage *usage, in a4_input_mapping() 41 usage->hid == A4_WHEEL_ORIENTATION) { in a4_input_mapping() 43 * We do not want to have this usage mapped to anything as it's in a4_input_mapping() 57 struct hid_field *field, struct hid_usage *usage, in a4_input_mapped() 62 if (usage->type == EV_REL && usage->code == REL_WHEEL_HI_RES) { in a4_input_mapped() 67 if ((a4->quirks & A4_2WHEEL_MOUSE_HACK_7) && usage->hid == 0x00090007) in a4_input_mapped() 74 struct hid_usage *usage, __s32 value) in a4_event() 85 if (usage->type == EV_REL && usage in a4_event() 34 a4_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) a4_input_mapping() argument 56 a4_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) a4_input_mapped() argument 73 a4_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) a4_event() argument [all...] |
H A D | hid-ezkey.c | 22 #define ez_map_rel(c) hid_map_usage(hi, usage, bit, max, EV_REL, (c)) 23 #define ez_map_key(c) hid_map_usage(hi, usage, bit, max, EV_KEY, (c)) 26 struct hid_field *field, struct hid_usage *usage, in ez_input_mapping() 29 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_CONSUMER) in ez_input_mapping() 32 switch (usage->hid & HID_USAGE) { in ez_input_mapping() 37 * totally broken way. We map this usage temporarily in ez_input_mapping() 48 struct hid_usage *usage, __s32 value) in ez_event() 51 !usage->type) in ez_event() 55 if (usage->type == EV_REL && usage in ez_event() 25 ez_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) ez_input_mapping() argument 47 ez_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) ez_event() argument [all...] |
H A D | hid-gyration.c | 22 #define gy_map_key_clear(c) hid_map_usage_clear(hi, usage, bit, max, \ 25 struct hid_field *field, struct hid_usage *usage, in gyration_input_mapping() 28 if ((usage->hid & HID_USAGE_PAGE) != HID_UP_LOGIVENDOR) in gyration_input_mapping() 32 switch (usage->hid & HID_USAGE) { in gyration_input_mapping() 55 struct hid_usage *usage, __s32 value) in gyration_event() 61 if ((usage->hid & HID_USAGE_PAGE) == HID_UP_GENDESK && in gyration_event() 62 (usage->hid & 0xff) == 0x82) { in gyration_event() 64 input_event(input, usage->type, usage->code, 1); in gyration_event() 66 input_event(input, usage in gyration_event() 24 gyration_input_mapping(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) gyration_input_mapping() argument 54 gyration_event(struct hid_device *hdev, struct hid_field *field, struct hid_usage *usage, __s32 value) gyration_event() argument [all...] |
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/ |
H A D | BufferVk.cpp | 31 VkBufferUsageFlags VulkanBufferUsage(wgpu::BufferUsage usage) { in VulkanBufferUsage() argument 34 if (usage & wgpu::BufferUsage::CopySrc) { in VulkanBufferUsage() 37 if (usage & wgpu::BufferUsage::CopyDst) { in VulkanBufferUsage() 40 if (usage & wgpu::BufferUsage::Index) { in VulkanBufferUsage() 43 if (usage & wgpu::BufferUsage::Vertex) { in VulkanBufferUsage() 46 if (usage & wgpu::BufferUsage::Uniform) { in VulkanBufferUsage() 49 if (usage & in VulkanBufferUsage() 53 if (usage & wgpu::BufferUsage::Indirect) { in VulkanBufferUsage() 56 if (usage & wgpu::BufferUsage::QueryResolve) { in VulkanBufferUsage() 63 VkPipelineStageFlags VulkanPipelineStage(wgpu::BufferUsage usage) { in VulkanPipelineStage() argument 91 VulkanAccessFlags(wgpu::BufferUsage usage) VulkanAccessFlags() argument 245 TransitionUsageNow(CommandRecordingContext* recordingContext, wgpu::BufferUsage usage) TransitionUsageNow() argument 259 TransitionUsageAndGetResourceBarrier(wgpu::BufferUsage usage, VkBufferMemoryBarrier* barrier, VkPipelineStageFlags* srcStages, VkPipelineStageFlags* dstStages) TransitionUsageAndGetResourceBarrier() argument [all...] |
/base/global/i18n/frameworks/intl/src/ |
H A D | measure_data.cpp | 340 void GetFallbackPreferredUnit(const string ®ion, const string &usage, vector<string> &units) in GetFallbackPreferredUnit() argument 344 if (USAGE_MX.count(usage) > 0) { in GetFallbackPreferredUnit() 345 units.assign(USAGE_MX.at(usage).begin(), USAGE_MX.at(usage).end()); in GetFallbackPreferredUnit() 351 if (USAGE_NL.count(usage) > 0) { in GetFallbackPreferredUnit() 352 units.assign(USAGE_NL.at(usage).begin(), USAGE_NL.at(usage).end()); in GetFallbackPreferredUnit() 360 if (USAGE_NO.count(usage) > 0) { in GetFallbackPreferredUnit() 361 units.assign(USAGE_NO.at(usage).begin(), USAGE_NO.at(usage) in GetFallbackPreferredUnit() 390 GetRestPreferredUnit(const string ®ion, const string &usage, vector<string> &units) GetRestPreferredUnit() argument 441 GetPreferredUnit(const string ®ion, const string &usage, vector<string> &units) GetPreferredUnit() argument [all...] |
/kernel/linux/linux-6.6/tools/verification/rv/src/ |
H A D | rv.c | 42 static const char *const usage[] = { in rv_list() local 44 " usage: rv list [-h]", in rv_list() 56 /* more than 1 is always usage */ in rv_list() 57 for (i = 0; usage[i]; i++) in rv_list() 58 fprintf(stderr, "%s\n", usage[i]); in rv_list() 79 static const char *const usage[] = { in rv_mon() local 81 " usage: rv mon [-h] monitor [monitor options]", in rv_mon() 97 for (i = 0; usage[i]; i++) in rv_mon() 98 fprintf(stderr, "%s\n", usage[i]); in rv_mon() 104 for (i = 0; usage[ in rv_mon() 121 static void usage(int exit_val, const char *fmt, ...) usage() function 127 static const char *const usage[] = { usage() local [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/ |
H A D | fd5_screen.c | 58 unsigned storage_sample_count, unsigned usage) in fd5_screen_is_format_supported() 64 DBG("not supported: format=%s, target=%d, sample_count=%d, usage=%x", in fd5_screen_is_format_supported() 65 util_format_name(format), target, sample_count, usage); in fd5_screen_is_format_supported() 72 if ((usage & PIPE_BIND_VERTEX_BUFFER) && in fd5_screen_is_format_supported() 77 if ((usage & (PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_SHADER_IMAGE)) && in fd5_screen_is_format_supported() 80 retval |= usage & (PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_SHADER_IMAGE); in fd5_screen_is_format_supported() 83 if ((usage & in fd5_screen_is_format_supported() 88 retval |= usage & (PIPE_BIND_RENDER_TARGET | PIPE_BIND_DISPLAY_TARGET | in fd5_screen_is_format_supported() 93 if (usage & PIPE_BIND_SHADER_IMAGE) { in fd5_screen_is_format_supported() 99 if ((usage in fd5_screen_is_format_supported() 54 fd5_screen_is_format_supported(struct pipe_screen *pscreen, enum pipe_format format, enum pipe_texture_target target, unsigned sample_count, unsigned storage_sample_count, unsigned usage) fd5_screen_is_format_supported() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/r600/ |
H A D | r600_buffer_common.c | 37 unsigned usage) in r600_rings_is_buffer_referenced() 39 if (ctx->ws->cs_is_buffer_referenced(&ctx->gfx.cs, buf, usage)) { in r600_rings_is_buffer_referenced() 43 ctx->ws->cs_is_buffer_referenced(&ctx->dma.cs, buf, usage)) { in r600_rings_is_buffer_referenced() 51 unsigned usage) in r600_buffer_map_sync_with_rings() 58 if (usage & PIPE_MAP_UNSYNCHRONIZED) { in r600_buffer_map_sync_with_rings() 59 return ctx->ws->buffer_map(ctx->ws, resource->buf, NULL, usage); in r600_buffer_map_sync_with_rings() 62 if (!(usage & PIPE_MAP_WRITE)) { in r600_buffer_map_sync_with_rings() 70 if (usage & PIPE_MAP_DONTBLOCK) { in r600_buffer_map_sync_with_rings() 81 if (usage & PIPE_MAP_DONTBLOCK) { in r600_buffer_map_sync_with_rings() 91 if (usage in r600_buffer_map_sync_with_rings() 35 r600_rings_is_buffer_referenced(struct r600_common_context *ctx, struct pb_buffer *buf, unsigned usage) r600_rings_is_buffer_referenced() argument 49 r600_buffer_map_sync_with_rings(struct r600_common_context *ctx, struct r600_resource *resource, unsigned usage) r600_buffer_map_sync_with_rings() argument 278 r600_buffer_get_transfer(struct pipe_context *ctx, struct pipe_resource *resource, unsigned usage, const struct pipe_box *box, struct pipe_transfer **ptransfer, void *data, struct r600_resource *staging, unsigned offset) r600_buffer_get_transfer() argument 314 r600_buffer_transfer_map(struct pipe_context *ctx, struct pipe_resource *resource, unsigned level, unsigned usage, const struct pipe_box *box, struct pipe_transfer **ptransfer) r600_buffer_transfer_map() argument 525 r600_buffer_subdata(struct pipe_context *ctx, struct pipe_resource *buffer, unsigned usage, unsigned offset, unsigned size, const void *data) r600_buffer_subdata() argument 590 r600_aligned_buffer_create(struct pipe_screen *screen, unsigned flags, unsigned usage, unsigned size, unsigned alignment) r600_aligned_buffer_create() argument [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | getrusage.c | 28 struct rusage usage; in getrusage_0100() local 29 int result = getrusage(RUSAGE_SELF, &usage); in getrusage_0100() 40 struct rusage usage; in getrusage_0200() local 41 int result = getrusage(RUSAGE_CHILDREN, &usage); in getrusage_0200() 52 struct rusage usage; in getrusage_0300() local 53 int result = getrusage(RUSAGE_THREAD, &usage); in getrusage_0300() 64 struct rusage usage; in getrusage_0400() local 65 int result = getrusage(100, &usage); in getrusage_0400() 76 struct rusage usage; in getrusage_0500() local 88 struct rusage usage; in getrusage_time64_0100() local [all...] |
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_transfer.c | 9 unsigned usage, unsigned offset, in u_default_buffer_subdata() 16 assert(!(usage & PIPE_MAP_READ)); in u_default_buffer_subdata() 19 usage |= PIPE_MAP_WRITE; in u_default_buffer_subdata() 24 if (!(usage & PIPE_MAP_DIRECTLY)) { in u_default_buffer_subdata() 26 usage |= PIPE_MAP_DISCARD_WHOLE_RESOURCE; in u_default_buffer_subdata() 28 usage |= PIPE_MAP_DISCARD_RANGE; in u_default_buffer_subdata() 34 map = pipe->buffer_map(pipe, resource, 0, usage, &box, &transfer); in u_default_buffer_subdata() 53 unsigned usage = PIPE_MAP_WRITE; in u_default_clear_buffer() local 57 usage |= PIPE_MAP_DISCARD_WHOLE_RESOURCE; in u_default_clear_buffer() 59 usage | in u_default_clear_buffer() 7 u_default_buffer_subdata(struct pipe_context *pipe, struct pipe_resource *resource, unsigned usage, unsigned offset, unsigned size, const void *data) u_default_buffer_subdata() argument 74 u_default_texture_subdata(struct pipe_context *pipe, struct pipe_resource *resource, unsigned level, unsigned usage, const struct pipe_box *box, const void *data, unsigned stride, unsigned layer_stride) u_default_texture_subdata() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/ |
H A D | fd4_screen.c | 43 unsigned storage_sample_count, unsigned usage) in fd4_screen_is_format_supported() 49 DBG("not supported: format=%s, target=%d, sample_count=%d, usage=%x", in fd4_screen_is_format_supported() 50 util_format_name(format), target, sample_count, usage); in fd4_screen_is_format_supported() 57 if ((usage & PIPE_BIND_VERTEX_BUFFER) && in fd4_screen_is_format_supported() 62 if ((usage & PIPE_BIND_SAMPLER_VIEW) && in fd4_screen_is_format_supported() 68 if ((usage & (PIPE_BIND_RENDER_TARGET | PIPE_BIND_DISPLAY_TARGET | in fd4_screen_is_format_supported() 72 retval |= usage & (PIPE_BIND_RENDER_TARGET | PIPE_BIND_DISPLAY_TARGET | in fd4_screen_is_format_supported() 77 if ((usage & PIPE_BIND_RENDER_TARGET) && (format == PIPE_FORMAT_NONE)) { in fd4_screen_is_format_supported() 78 retval |= usage & PIPE_BIND_RENDER_TARGET; in fd4_screen_is_format_supported() 81 if ((usage in fd4_screen_is_format_supported() 39 fd4_screen_is_format_supported(struct pipe_screen *pscreen, enum pipe_format format, enum pipe_texture_target target, unsigned sample_count, unsigned storage_sample_count, unsigned usage) fd4_screen_is_format_supported() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
H A D | fd2_screen.c | 41 unsigned storage_sample_count, unsigned usage) in fd2_screen_is_format_supported() 47 DBG("not supported: format=%s, target=%d, sample_count=%d, usage=%x", in fd2_screen_is_format_supported() 48 util_format_name(format), target, sample_count, usage); in fd2_screen_is_format_supported() 55 if ((usage & PIPE_BIND_RENDER_TARGET) && in fd2_screen_is_format_supported() 60 if ((usage & (PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_VERTEX_BUFFER)) && in fd2_screen_is_format_supported() 63 retval |= usage & PIPE_BIND_VERTEX_BUFFER; in fd2_screen_is_format_supported() 67 retval |= usage & PIPE_BIND_SAMPLER_VIEW; in fd2_screen_is_format_supported() 70 if ((usage & (PIPE_BIND_RENDER_TARGET | PIPE_BIND_DISPLAY_TARGET | in fd2_screen_is_format_supported() 73 retval |= usage & (PIPE_BIND_RENDER_TARGET | PIPE_BIND_DISPLAY_TARGET | in fd2_screen_is_format_supported() 77 if ((usage in fd2_screen_is_format_supported() 37 fd2_screen_is_format_supported(struct pipe_screen *pscreen, enum pipe_format format, enum pipe_texture_target target, unsigned sample_count, unsigned storage_sample_count, unsigned usage) fd2_screen_is_format_supported() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/ |
H A D | fd6_screen.c | 63 unsigned storage_sample_count, unsigned usage) in fd6_screen_is_format_supported() 69 DBG("not supported: format=%s, target=%d, sample_count=%d, usage=%x", in fd6_screen_is_format_supported() 70 util_format_name(format), target, sample_count, usage); in fd6_screen_is_format_supported() 77 if ((usage & PIPE_BIND_VERTEX_BUFFER) && in fd6_screen_is_format_supported() 85 if ((usage & (PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_SHADER_IMAGE)) && in fd6_screen_is_format_supported() 89 retval |= usage & (PIPE_BIND_SAMPLER_VIEW | PIPE_BIND_SHADER_IMAGE); in fd6_screen_is_format_supported() 92 if (usage & PIPE_BIND_SHADER_IMAGE) { in fd6_screen_is_format_supported() 97 if ((usage & in fd6_screen_is_format_supported() 101 retval |= usage & (PIPE_BIND_RENDER_TARGET | PIPE_BIND_DISPLAY_TARGET | in fd6_screen_is_format_supported() 107 if ((usage in fd6_screen_is_format_supported() 59 fd6_screen_is_format_supported(struct pipe_screen *pscreen, enum pipe_format format, enum pipe_texture_target target, unsigned sample_count, unsigned storage_sample_count, unsigned usage) fd6_screen_is_format_supported() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/radeonsi/ |
H A D | si_buffer.c | 34 unsigned usage) in si_cs_is_buffer_referenced() 36 return sctx->ws->cs_is_buffer_referenced(&sctx->gfx_cs, buf, usage); in si_cs_is_buffer_referenced() 40 unsigned usage) in si_buffer_map() 42 return sctx->ws->buffer_map(sctx->ws, resource->buf, &sctx->gfx_cs, usage); in si_buffer_map() 56 switch (res->b.b.usage) { in si_init_resource_fields() 152 /* Set expected VRAM and GART usage for the buffer. */ in si_init_resource_fields() 314 unsigned usage, const struct pipe_box *box, in si_buffer_get_transfer() 321 if (usage & PIPE_MAP_THREAD_SAFE) in si_buffer_get_transfer() 323 else if (usage & TC_TRANSFER_MAP_THREADED_UNSYNC) in si_buffer_get_transfer() 329 transfer->b.b.usage in si_buffer_get_transfer() 33 si_cs_is_buffer_referenced(struct si_context *sctx, struct pb_buffer *buf, unsigned usage) si_cs_is_buffer_referenced() argument 39 si_buffer_map(struct si_context *sctx, struct si_resource *resource, unsigned usage) si_buffer_map() argument 313 si_buffer_get_transfer(struct pipe_context *ctx, struct pipe_resource *resource, unsigned usage, const struct pipe_box *box, struct pipe_transfer **ptransfer, void *data, struct si_resource *staging, unsigned offset) si_buffer_get_transfer() argument 337 si_buffer_transfer_map(struct pipe_context *ctx, struct pipe_resource *resource, unsigned level, unsigned usage, const struct pipe_box *box, struct pipe_transfer **ptransfer) si_buffer_transfer_map() argument 539 si_buffer_subdata(struct pipe_context *ctx, struct pipe_resource *buffer, unsigned usage, unsigned offset, unsigned size, const void *data) si_buffer_subdata() argument 603 pipe_aligned_buffer_create(struct pipe_screen *screen, unsigned flags, unsigned usage, unsigned size, unsigned alignment) pipe_aligned_buffer_create() argument 621 si_aligned_buffer_create(struct pipe_screen *screen, unsigned flags, unsigned usage, unsigned size, unsigned alignment) si_aligned_buffer_create() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/freedreno/a3xx/ |
H A D | fd3_screen.c | 43 unsigned storage_sample_count, unsigned usage) in fd3_screen_is_format_supported() 49 DBG("not supported: format=%s, target=%d, sample_count=%d, usage=%x", in fd3_screen_is_format_supported() 50 util_format_name(format), target, sample_count, usage); in fd3_screen_is_format_supported() 57 if ((usage & PIPE_BIND_VERTEX_BUFFER) && in fd3_screen_is_format_supported() 62 if ((usage & PIPE_BIND_SAMPLER_VIEW) && in fd3_screen_is_format_supported() 67 if ((usage & (PIPE_BIND_RENDER_TARGET | PIPE_BIND_DISPLAY_TARGET | in fd3_screen_is_format_supported() 71 retval |= usage & (PIPE_BIND_RENDER_TARGET | PIPE_BIND_DISPLAY_TARGET | in fd3_screen_is_format_supported() 74 retval |= usage & PIPE_BIND_BLENDABLE; in fd3_screen_is_format_supported() 77 if ((usage & PIPE_BIND_DEPTH_STENCIL) && in fd3_screen_is_format_supported() 83 if ((usage in fd3_screen_is_format_supported() 39 fd3_screen_is_format_supported(struct pipe_screen *pscreen, enum pipe_format format, enum pipe_texture_target target, unsigned sample_count, unsigned storage_sample_count, unsigned usage) fd3_screen_is_format_supported() argument [all...] |
/kernel/linux/linux-6.6/drivers/dma-buf/ |
H A D | st-dma-resv.c | 65 enum dma_resv_usage usage = (unsigned long)arg; in test_signaling() local 89 dma_resv_add_fence(&resv, f, usage); in test_signaling() 90 if (dma_resv_test_signaled(&resv, usage)) { in test_signaling() 96 if (!dma_resv_test_signaled(&resv, usage)) { in test_signaling() 111 enum dma_resv_usage usage = (unsigned long)arg; in test_for_each() local 136 dma_resv_add_fence(&resv, f, usage); in test_for_each() 139 dma_resv_for_each_fence(&cursor, &resv, usage, fence) { in test_for_each() 150 if (dma_resv_iter_usage(&cursor) != usage) { in test_for_each() 151 pr_err("Unexpected fence usage\n"); in test_for_each() 172 enum dma_resv_usage usage in test_for_each_unlocked() local 246 enum dma_resv_usage usage = (unsigned long)arg; test_get_fences() local 305 enum dma_resv_usage usage; dma_resv() local [all...] |
/third_party/node/test/common/ |
H A D | report.js | 235 const usage = { ...report.resourceUsage }; 237 delete usage.constrained_memory; 243 checkForUnknownFields(usage, resourceUsageFields); 244 assert.strictEqual(typeof usage.userCpuSeconds, 'number'); 245 assert.strictEqual(typeof usage.kernelCpuSeconds, 'number'); 246 assert.strictEqual(typeof usage.cpuConsumptionPercent, 'number'); 247 assert.strictEqual(typeof usage.userCpuConsumptionPercent, 'number'); 248 assert.strictEqual(typeof usage.kernelCpuConsumptionPercent, 'number'); 249 assert(typeof usage.rss, 'string'); 250 assert(typeof usage [all...] |
/third_party/mesa3d/include/android_stub/hardware/ |
H A D | gralloc.h | 122 /* mask for the software usage bit-mask */ 142 /* implementation-specific private usage flags */ 195 * specified usage. This call may block, for instance if the h/w needs 204 * If usage specifies GRALLOC_USAGE_SW_*, vaddr is filled with the address 223 * If the buffer was created with a usage mask incompatible with the 224 * requested usage flags here, -EINVAL is returned. 229 buffer_handle_t handle, int usage, 268 buffer_handle_t handle, int usage, 283 buffer_handle_t handle, int usage, 313 buffer_handle_t handle, int usage, 426 map_usage_to_memtrack(uint32_t usage) map_usage_to_memtrack() argument [all...] |
/kernel/liteos_a/kernel/extended/plimit/ |
H A D | los_memlimit.c | 85 if ((currMemLimit->usage + parentMemLimit->usage) >= parentMemLimit->limit) { in MemLimiteMigrateCheck() 98 parentMemLimit->usage += currMemLimit->usage; in OsMemLimiterMigrate() 100 if (parentMemLimit->peak < parentMemLimit->usage) { in OsMemLimiterMigrate() 101 parentMemLimit->peak = parentMemLimit->usage; in OsMemLimiterMigrate() 106 parentMemLimit->usage -= pcb->limitStat.memUsed; in OsMemLimiterMigrate() 107 currMemLimit->usage += pcb->limitStat.memUsed; in OsMemLimiterMigrate() 114 if ((memLimit->usage + pcb->limitStat.memUsed) > memLimit->limit) { in OsMemLimitAddProcessCheck() 124 plimits->usage in OsMemLimitAddProcess() [all...] |
/third_party/ltp/testcases/kernel/syscalls/getrusage/ |
H A D | getrusage02.c | 13 * - EFAULT with invalid usage pointer 22 static struct rusage usage; variable 24 static int libc_getrusage(int who, void *usage) in libc_getrusage() argument 26 return getrusage(who, usage); in libc_getrusage() 29 static int sys_getrusage(int who, void *usage) in sys_getrusage() argument 31 return tst_syscall(__NR_getrusage, who, usage); in sys_getrusage() 36 struct rusage *usage; member 39 {-2, &usage, EINVAL}, 45 int (*getrusage)(int who, void *usage); 64 TST_EXP_FAIL(tv->getrusage(tc[i].who, tc[i].usage), t in verify_getrusage() [all...] |