Home
last modified time | relevance | path

Searched refs:unit (Results 276 - 300 of 1876) sorted by relevance

1...<<11121314151617181920>>...76

/third_party/mesa3d/src/mesa/state_tracker/
H A Dst_atom_shader.c60 get_texture_index(struct gl_context *ctx, const unsigned unit) in get_texture_index() argument
62 struct gl_texture_object *texObj = _mesa_get_tex_unit(ctx, unit)->_Current; in get_texture_index()
83 unsigned unit; in update_gl_clamp() local
85 for (unit = 0; samplers_used; unit++, samplers_used >>= 1) { in update_gl_clamp()
86 unsigned tex_unit = prog->SamplerUnits[unit]; in update_gl_clamp()
99 gl_clamp[0] |= BITFIELD64_BIT(unit); in update_gl_clamp()
101 gl_clamp[1] |= BITFIELD64_BIT(unit); in update_gl_clamp()
103 gl_clamp[2] |= BITFIELD64_BIT(unit); in update_gl_clamp()
/third_party/skia/tools/viewer/
H A DTouchGesture.cpp39 static void unit_axis_align(SkVector* unit) { in unit_axis_align() argument
41 if (SkScalarAbs(unit->fX) < TOLERANCE) { in unit_axis_align()
42 unit->fX = 0; in unit_axis_align()
43 unit->fY = SkScalarSignNonZero(unit->fY); in unit_axis_align()
44 } else if (SkScalarAbs(unit->fY) < TOLERANCE) { in unit_axis_align()
45 unit->fX = SkScalarSignNonZero(unit->fX); in unit_axis_align()
46 unit->fY = 0; in unit_axis_align()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/number/
H A DMacroProps.java21 public MeasureUnit unit; field in MacroProps
50 if (unit == null) in fallback()
51 unit = fallback.unit; in fallback()
91 unit, in hashCode()
121 && Objects.equals(unit, other.unit) in equals()
/third_party/mesa3d/src/panfrost/midgard/
H A Dmidgard_print.c35 * Midgard assembly, with the exception that unit information and such is
95 mir_get_unit(unsigned unit) in mir_get_unit() argument
97 switch (unit) { in mir_get_unit()
172 if (midgard_is_branch_unit(ins->unit)) { in mir_print_instruction()
177 printf("%s.", mir_get_unit(ins->unit)); in mir_print_instruction()
182 else if (ins->unit == ALU_ENAB_BR_COMPACT && in mir_print_instruction()
219 if (ins->unit) in mir_print_instruction()
220 printf("%s.", mir_get_unit(ins->unit)); in mir_print_instruction()
/third_party/python/Lib/
H A Dtimeit.py21 -u/--unit: set the output time unit (nsec, usec, msec, or sec)
254 '_wrap_timer' is an internal interface used for unit testing. If it
256 and returns another timer function (used for unit testing).
265 "verbose", "unit=", "help"])
285 if o in ("-u", "--unit"):
289 print("Unrecognized unit. Please select nsec, usec, msec, or sec.",
341 unit = time_unit
343 if unit is not None:
344 scale = units[unit]
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Dunits_data_test.cpp43 const char *unit; in testGetUnitCategory() member
62 CharString category = getUnitQuantity(MeasureUnitImpl::forIdentifier(t.unit, status), status); in testGetUnitCategory()
63 if (!status.errIfFailureAndReset("getUnitCategory(%s)", t.unit)) { in testGetUnitCategory()
94 * may fail: see the constants for expected Max/Min unit identifiers, for US and
154 assertEquals(UnicodeString(t.name) + " - max unit", t.expectedBiggest, in testGetPreferencesFor()
155 unitPrefs[0]->unit.data()); in testGetPreferencesFor()
156 assertEquals(UnicodeString(t.name) + " - min unit", t.expectedSmallest, in testGetPreferencesFor()
157 unitPrefs[unitPrefs.length() - 1]->unit.data()); in testGetPreferencesFor()
/kernel/linux/linux-5.10/drivers/media/usb/uvc/
H A Duvc_driver.c408 * Terminal and unit management
1065 struct uvc_entity *unit; in uvc_parse_vendor_control() local
1097 * extension unit. in uvc_parse_vendor_control()
1110 unit = uvc_alloc_entity(UVC_VC_EXTENSION_UNIT, buffer[3], in uvc_parse_vendor_control()
1112 if (unit == NULL) in uvc_parse_vendor_control()
1115 memcpy(unit->extension.guidExtensionCode, &buffer[4], 16); in uvc_parse_vendor_control()
1116 unit->extension.bNumControls = buffer[20]; in uvc_parse_vendor_control()
1117 memcpy(unit->baSourceID, &buffer[22], p); in uvc_parse_vendor_control()
1118 unit->extension.bControlSize = buffer[22+p]; in uvc_parse_vendor_control()
1119 unit in uvc_parse_vendor_control()
1140 struct uvc_entity *unit, *term; uvc_parse_standard_control() local
[all...]
/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Danimatable_dimension.h38 double value, DimensionUnit unit = DimensionUnit::PX, const AnimationOption& option = AnimationOption()) in AnimatableDimension()
39 : CalcDimension(value, unit), animationOption_(option) in AnimatableDimension()
43 const std::string& value, DimensionUnit unit = DimensionUnit::CALC, in AnimatableDimension()
45 : CalcDimension(value, unit), animationOption_(option) in AnimatableDimension()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_relative_container_ffi.cpp42 if (guideline.position.start.unit > 0) { in FfiOHOSAceFrameworkReletiveContainerGuideLine()
44 static_cast<DimensionUnit>(guideline.position.start.unit)); in FfiOHOSAceFrameworkReletiveContainerGuideLine()
46 if (guideline.position.end.unit > 0) { in FfiOHOSAceFrameworkReletiveContainerGuideLine()
48 static_cast<DimensionUnit>(guideline.position.end.unit)); in FfiOHOSAceFrameworkReletiveContainerGuideLine()
H A Dcj_shape_ffi.h54 CJ_EXPORT void FfiOHOSAceFrameworkShapeSetWidth(double width, int32_t unit);
55 CJ_EXPORT void FfiOHOSAceFrameworkShapeSetHeight(double height, int32_t unit);
57 CJ_EXPORT void FfiOHOSAceFrameworkShapeSetInsWidth(int64_t shapeId, double value, int32_t unit);
58 CJ_EXPORT void FfiOHOSAceFrameworkShapeSetInsHeight(int64_t shapeId, double value, int32_t unit);
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dcounter_modifier.cpp45 void SetCounterHeight(ArkUINodeHandle node, ArkUI_Float32 value, ArkUI_Int32 unit) in SetCounterHeight() argument
49 Dimension height = Dimension(value, static_cast<OHOS::Ace::DimensionUnit>(unit)); in SetCounterHeight()
53 void SetCounterWidth(ArkUINodeHandle node, ArkUI_Float32 value, ArkUI_Int32 unit) in SetCounterWidth() argument
57 Dimension width = Dimension(value, static_cast<OHOS::Ace::DimensionUnit>(unit)); in SetCounterWidth()
/kernel/linux/linux-5.10/sound/firewire/
H A Dpackets-buffer.c16 * @unit: the device at the other end of the stream
21 int iso_packets_buffer_init(struct iso_packets_buffer *b, struct fw_unit *unit, in iso_packets_buffer_init() argument
44 err = fw_iso_buffer_init(&b->iso_buffer, fw_parent_device(unit)->card, in iso_packets_buffer_init()
69 * @unit: the device at the other end of the stream
72 struct fw_unit *unit) in iso_packets_buffer_destroy()
74 fw_iso_buffer_destroy(&b->iso_buffer, fw_parent_device(unit)->card); in iso_packets_buffer_destroy()
71 iso_packets_buffer_destroy(struct iso_packets_buffer *b, struct fw_unit *unit) iso_packets_buffer_destroy() argument
/kernel/linux/linux-5.10/sound/firewire/tascam/
H A Dtascam-proc.c18 err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, in proc_read_firmware()
25 err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, in proc_read_firmware()
32 err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, in proc_read_firmware()
39 err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, in proc_read_firmware()
/kernel/linux/linux-6.6/sound/firewire/
H A Dpackets-buffer.c16 * @unit: the device at the other end of the stream
21 int iso_packets_buffer_init(struct iso_packets_buffer *b, struct fw_unit *unit, in iso_packets_buffer_init() argument
44 err = fw_iso_buffer_init(&b->iso_buffer, fw_parent_device(unit)->card, in iso_packets_buffer_init()
69 * @unit: the device at the other end of the stream
72 struct fw_unit *unit) in iso_packets_buffer_destroy()
74 fw_iso_buffer_destroy(&b->iso_buffer, fw_parent_device(unit)->card); in iso_packets_buffer_destroy()
71 iso_packets_buffer_destroy(struct iso_packets_buffer *b, struct fw_unit *unit) iso_packets_buffer_destroy() argument
/kernel/linux/linux-6.6/sound/firewire/tascam/
H A Dtascam-proc.c18 err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, in proc_read_firmware()
25 err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, in proc_read_firmware()
32 err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, in proc_read_firmware()
39 err = snd_fw_transaction(tscm->unit, TCODE_READ_QUADLET_REQUEST, in proc_read_firmware()
/third_party/ffmpeg/doc/
H A Dprint_options.c85 if (o->unit) { in print_option()
90 if (u->type == AV_OPT_TYPE_CONST && u->unit && !strcmp(u->unit, o->unit)) in print_option()
/third_party/backends/backend/
H A Depson2-ops.h33 extern void e2_set_fbf_area(Epson_Scanner *s, int x, int y, int unit);
34 extern void e2_set_adf_area(struct Epson_Scanner *s, int x, int y, int unit);
35 extern void e2_set_tpu_area(struct Epson_Scanner *s, int x, int y, int unit);
36 extern void e2_set_tpu2_area(struct Epson_Scanner *s, int x, int y, int unit);
/third_party/icu/icu4c/source/i18n/unicode/
H A Dureldatefmt.h27 * \brief C API: URelativeDateTimeFormatter, relative date formatting of unit + numeric offset.
38 * for determining which unit to use, such as deciding between "in 7 days"
77 * Represents the unit for formatting a relative date. e.g "in 5 days"
83 * Specifies that relative unit is year, e.g. "last year",
89 * Specifies that relative unit is quarter, e.g. "last quarter",
95 * Specifies that relative unit is month, e.g. "last month",
101 * Specifies that relative unit is week, e.g. "last week",
107 * Specifies that relative unit is day, e.g. "yesterday",
113 * Specifies that relative unit is hour, e.g. "1 hour ago",
119 * Specifies that relative unit i
[all...]
/third_party/node/deps/icu-small/source/i18n/unicode/
H A Dureldatefmt.h27 * \brief C API: URelativeDateTimeFormatter, relative date formatting of unit + numeric offset.
38 * for determining which unit to use, such as deciding between "in 7 days"
77 * Represents the unit for formatting a relative date. e.g "in 5 days"
83 * Specifies that relative unit is year, e.g. "last year",
89 * Specifies that relative unit is quarter, e.g. "last quarter",
95 * Specifies that relative unit is month, e.g. "last month",
101 * Specifies that relative unit is week, e.g. "last week",
107 * Specifies that relative unit is day, e.g. "yesterday",
113 * Specifies that relative unit is hour, e.g. "1 hour ago",
119 * Specifies that relative unit i
[all...]
/third_party/libinput/src/
H A Dutil-time.h103 const char *unit; member
114 const char *unit; in to_human_time() member
130 t.unit = c->unit; in to_human_time()
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
H A Dureldatefmt.h27 * \brief C API: URelativeDateTimeFormatter, relative date formatting of unit + numeric offset.
38 * for determining which unit to use, such as deciding between "in 7 days"
77 * Represents the unit for formatting a relative date. e.g "in 5 days"
83 * Specifies that relative unit is year, e.g. "last year",
89 * Specifies that relative unit is quarter, e.g. "last quarter",
95 * Specifies that relative unit is month, e.g. "last month",
101 * Specifies that relative unit is week, e.g. "last week",
107 * Specifies that relative unit is day, e.g. "yesterday",
113 * Specifies that relative unit is hour, e.g. "1 hour ago",
119 * Specifies that relative unit i
[all...]
/kernel/linux/linux-5.10/sound/firewire/bebob/
H A Dbebob_maudio.c93 int snd_bebob_maudio_load_firmware(struct fw_unit *unit) in snd_bebob_maudio_load_firmware() argument
95 struct fw_device *device = fw_parent_device(unit); in snd_bebob_maudio_load_firmware()
101 err = snd_bebob_read_block(unit, INFO_OFFSET_SW_DATE, in snd_bebob_maudio_load_firmware()
110 dev_err(&unit->device, in snd_bebob_maudio_load_firmware()
129 dev_err(&unit->device, in snd_bebob_maudio_load_firmware()
140 return snd_fw_transaction(bebob->unit, TCODE_READ_BLOCK_REQUEST, in get_meter()
200 err = fcp_avc_transaction(bebob->unit, buf, 12, buf, 12, in avc_maudio_set_special_clk()
278 dev_err(&bebob->unit->device, in snd_bebob_maudio_special_discover()
308 err = avc_general_get_sig_fmt(bebob->unit, rate, in special_get_rate()
319 err = avc_general_set_sig_fmt(bebob->unit, rat in special_set_rate()
[all...]
/kernel/linux/linux-6.6/sound/firewire/bebob/
H A Dbebob_maudio.c93 int snd_bebob_maudio_load_firmware(struct fw_unit *unit) in snd_bebob_maudio_load_firmware() argument
95 struct fw_device *device = fw_parent_device(unit); in snd_bebob_maudio_load_firmware()
101 err = snd_bebob_read_block(unit, INFO_OFFSET_SW_DATE, in snd_bebob_maudio_load_firmware()
110 dev_err(&unit->device, in snd_bebob_maudio_load_firmware()
129 dev_err(&unit->device, in snd_bebob_maudio_load_firmware()
140 return snd_fw_transaction(bebob->unit, TCODE_READ_BLOCK_REQUEST, in get_meter()
200 err = fcp_avc_transaction(bebob->unit, buf, 12, buf, 12, in avc_maudio_set_special_clk()
278 dev_err(&bebob->unit->device, in snd_bebob_maudio_special_discover()
308 err = avc_general_get_sig_fmt(bebob->unit, rate, in special_get_rate()
319 err = avc_general_set_sig_fmt(bebob->unit, rat in special_set_rate()
[all...]
/third_party/icu/icu4c/source/test/cintltst/
H A Dcrelativedateformattest.c322 URelativeDateTimeUnit unit; member
383 if (itemPtr->unit >= UDAT_REL_UNIT_SUNDAY && offsets[iOffset] != -1.0 && offsets[iOffset] != 0.0 && offsets[iOffset] != 1.0) { in TestRelDateFmt()
388 ulenget = ureldatefmt_format(reldatefmt, offsets[iOffset], itemPtr->unit, ubufget, kUBufMax, &status); in TestRelDateFmt()
390 log_err("FAIL: ureldatefmt_format() for locale %s, decPlaces %d, width %d, capContext %d, offset %.2f, unit %d: %s\n", in TestRelDateFmt()
392 offsets[iOffset], (int)itemPtr->unit, myErrorName(status) ); in TestRelDateFmt()
399 log_err("ERROR: ureldatefmt_format() for locale %s, decPlaces %d, width %d, capContext %d, offset %.2f, unit %d;\n expected %s\n get %s\n", in TestRelDateFmt()
401 offsets[iOffset], (int)itemPtr->unit, itemPtr->expectedResults[iOffset*2], bbufget ); in TestRelDateFmt()
405 if (itemPtr->unit >= UDAT_REL_UNIT_SUNDAY) { in TestRelDateFmt()
410 ulenget = ureldatefmt_formatNumeric(reldatefmt, offsets[iOffset], itemPtr->unit, ubufget, kUBufMax, &status); in TestRelDateFmt()
412 log_err("FAIL: ureldatefmt_formatNumeric() for locale %s, decPlaces %d, width %d, capContext %d, offset %.2f, unit in TestRelDateFmt()
[all...]
/third_party/ltp/testcases/kernel/mem/lib/
H A Dmem.c342 int unit = size / total_unit; in ksm_child_memset() local
357 for (i = 0; (unsigned int)i < unit * MB; i++) in ksm_child_memset()
368 static void create_ksm_child(int child_num, int size, int unit, in create_ksm_child() argument
375 total_unit = size / unit; in create_ksm_child()
380 memory[j] = SAFE_MMAP(NULL, unit * MB, PROT_READ|PROT_WRITE, in create_ksm_child()
383 if (madvise(memory[j], unit * MB, MADV_MERGEABLE) == -1) in create_ksm_child()
406 total_unit, unit * MB - 1, unit * MB); in create_ksm_child()
408 0, total_unit, 0, unit * MB - 1); in create_ksm_child()
411 0, total_unit, 0, unit * M in create_ksm_child()
441 create_same_memory(int size, int num, int unit) create_same_memory() argument
[all...]

Completed in 12 milliseconds

1...<<11121314151617181920>>...76