Home
last modified time | relevance | path

Searched refs:field (Results 1 - 25 of 50) sorted by relevance

12

/device/soc/rockchip/rk2206/hardware/include/sys/
H A Dqueue.h170 #define SLIST_FOREACH(var, head, field) \
173 (var) = SLIST_NEXT((var), field))
175 #define SLIST_FOREACH_FROM(var, head, field) \
178 (var) = SLIST_NEXT((var), field))
180 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \
182 (var) && ((tvar) = SLIST_NEXT((var), field), 1); \
185 #define SLIST_FOREACH_FROM_SAFE(var, head, field, tvar) \
187 (var) && ((tvar) = SLIST_NEXT((var), field), 1); \
190 #define SLIST_FOREACH_PREVPTR(var, varp, head, field) \
193 (varp) = &SLIST_NEXT((var), field))
[all...]
H A Ddefs.h46 #define offsetof(type, field) \
47 ((size_t)(uintptr_t)((const volatile void *)&((type *)0)->field))
51 #define __offsetof(type, field) offsetof(type, field)
55 #define __containerof(ptr, type, field) \
56 __DEQUALIFY(type *, (const volatile char *)(ptr) - offsetof(type, field))
60 #define container_of(ptr, type, field) __containerof(ptr, type, field)
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/ext_util/
H A Dbase_interface.c133 * 获取section+field对应的int类型配置项
134 * Get the int type configuration item corresponding to section+field
136 int SectGetCfgInt(const char* section, const char* field, int defVal) in SectGetCfgInt() argument
138 HI_ASSERT(field && *field); in SectGetCfgInt()
141 if (snprintf_s(key, sizeof(key), sizeof(key) - 1, "%s:%s", (section ? section : ""), field) < 0) { in SectGetCfgInt()
148 * 获取section+field对应的double类型配置项
149 * Get the double configuration item corresponding to section+field
151 double SectGetCfgDouble(const char* section, const char* field, double defVal) in SectGetCfgDouble() argument
153 HI_ASSERT(field in SectGetCfgDouble()
166 SectGetCfgBool(const char* section, const char* field, bool defVal) SectGetCfgBool() argument
181 SectGetCfgStr(const char* section, const char* field, const char* defVal) SectGetCfgStr() argument
[all...]
H A Dbase_interface.h35 int SectGetCfgInt(const char* section, const char* field, int defVal);
36 double SectGetCfgDouble(const char* section, const char* field, double defVal);
37 bool SectGetCfgBool(const char* section, const char* field, bool defVal);
38 const char* SectGetCfgStr(const char* section, const char* field, const char* defVal);
/device/soc/rockchip/common/sdk_linux/drivers/hid/
H A Dhid-input.c95 for (j = 0; j < report->field[i]->maxusage; j++) { in hidinput_find_key()
96 usage = report->field[i]->usage + j; in hidinput_find_key()
179 * @field: the HID report field to calculate resolution for
192 __s32 hidinput_calc_abs_res(const struct hid_field *field, __u16 code) in hidinput_calc_abs_res() argument
194 __s32 unit_exponent = field->unit_exponent; in hidinput_calc_abs_res()
195 __s32 logical_extents = field->logical_maximum - field->logical_minimum; in hidinput_calc_abs_res()
196 __s32 physical_extents = field->physical_maximum - field in hidinput_calc_abs_res()
411 hidinput_setup_battery(struct hid_device *dev, unsigned report_type, struct hid_field *field) hidinput_setup_battery() argument
524 hidinput_setup_battery(struct hid_device *dev, unsigned report_type, struct hid_field *field) hidinput_setup_battery() argument
538 hidinput_configure_usage(struct hid_input *hidinput, struct hid_field *field, struct hid_usage *usage) hidinput_configure_usage() argument
1756 hidinput_hid_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, __s32 value) hidinput_hid_event() argument
1910 hidinput_find_field(struct hid_device *hid, unsigned int type, unsigned int code, struct hid_field **field) hidinput_find_field() argument
1933 struct hid_field *field; hidinput_get_led_field() local
1954 struct hid_field *field; hidinput_count_leds() local
1976 struct hid_field *field; hidinput_led_worker() local
2026 struct hid_field *field; hidinput_input_event() local
[all...]
H A Dhid-core.c130 * Register a new field for this report.
135 struct hid_field *field; in hid_register_field() local
141 field = in hid_register_field()
143 if (!field) { in hid_register_field()
147 field->index = report->maxfield++; in hid_register_field()
148 report->field[field->index] = field; in hid_register_field()
149 field->usage = (struct hid_usage *)(field in hid_register_field()
289 struct hid_field *field; hid_add_field() local
1039 hid_apply_multiplier_to_field(struct hid_device *hid, struct hid_field *field, struct hid_collection *multiplier_collection, int effective_multiplier) hid_apply_multiplier_to_field() argument
1070 struct hid_field *field; hid_apply_multiplier() local
1476 hid_process_event(struct hid_device *hid, struct hid_field *field, struct hid_usage *usage, s32 value, int interrupt) hid_process_event() argument
1509 hid_input_field(struct hid_device *hid, struct hid_field *field, u8 *data, int interrupt) hid_input_field() argument
1557 hid_output_field(const struct hid_device *hid, struct hid_field *field, u8 *data) hid_output_field() argument
1627 hid_set_field(struct hid_field *field, unsigned offset, s32 value) hid_set_field() argument
[all...]
/device/soc/rockchip/common/sdk_linux/include/uapi/linux/usb/
H A Dvideodev2.h93 V4L2_FIELD_TOP = 2, /* top field only */
94 V4L2_FIELD_BOTTOM = 3, /* bottom field only */
101 V4L2_FIELD_INTERLACED_TB = 8, /* both fields interlaced, top field
102 first and the top field is
104 V4L2_FIELD_INTERLACED_BT = 9, /* both fields interlaced, top field
105 first and the bottom field is
108 #define V4L2_FIELD_HAS_TOP(field) \
109 ((field) == V4L2_FIELD_TOP || (field) == V4L2_FIELD_INTERLACED || (field)
481 __u32 field; /* enum v4l2_field */ global() member
1016 __u32 field; global() member
1135 __u32 field; /* enum v4l2_field */ global() member
1167 __u32 field; /* enum v4l2_field */ global() member
2087 __u32 field; /* 0: first field, 1: second field */ global() member
2175 __u32 field; global() member
2262 __u8 field; global() member
[all...]
/device/soc/rockchip/common/sdk_linux/include/uapi/linux/
H A Dvideodev2.h93 V4L2_FIELD_TOP = 2, /* top field only */
94 V4L2_FIELD_BOTTOM = 3, /* bottom field only */
101 V4L2_FIELD_INTERLACED_TB = 8, /* both fields interlaced, top field
102 first and the top field is
104 V4L2_FIELD_INTERLACED_BT = 9, /* both fields interlaced, top field
105 first and the bottom field is
108 #define V4L2_FIELD_HAS_TOP(field) \
109 ((field) == V4L2_FIELD_TOP || (field) == V4L2_FIELD_INTERLACED || (field)
481 __u32 field; /* enum v4l2_field */ global() member
1016 __u32 field; global() member
1135 __u32 field; /* enum v4l2_field */ global() member
1167 __u32 field; /* enum v4l2_field */ global() member
2087 __u32 field; /* 0: first field, 1: second field */ global() member
2175 __u32 field; global() member
2262 __u8 field; global() member
[all...]
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/
H A Dbcmdefs.h464 * Usage example, e.g. a three-bit field (bits 4-6):
469 * field = GFIELD(regval, <NAME>);
475 #define GFIELD(val, field) \
476 (((val) >> field ## _S) & field ## _M)
477 #define SFIELD(val, field, bits) \
478 (((val) & (~(field ## _M << field ## _S))) | \
479 ((unsigned)(bits) << field ## _S))
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/kernel/include/
H A Dlos_list.h250 * @brief Obtain the offset of a field to a structure address.
253 * This API is used to obtain the offset of a field to a structure address.
260 * @param field [IN] Name of the field of which the offset is to be measured.
262 * @retval Offset of the field to the structure address.
267 #define OFFSET_OF_FIELD(type, field) ((UINT32)&(((type *)0)->field))
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/rockchip/
H A Danalogix_dp-rockchip.c53 * @lcdc_sel: grf register field of lcdc_sel
54 * @spdif_sel: grf register field of spdif_sel
55 * @i2s_sel: grf register field of i2s_sel
56 * @edp_mode: grf register field of edp_mode
98 static int rockchip_grf_field_write(struct regmap *grf, const struct rockchip_grf_reg_field *field, unsigned int val) in rockchip_grf_field_write() argument
102 if (!field->valid) { in rockchip_grf_field_write()
106 mask = GENMASK(field->msb, field->lsb); in rockchip_grf_field_write()
107 val <<= field->lsb; in rockchip_grf_field_write()
109 return rockchip_grf_write(grf, field in rockchip_grf_field_write()
[all...]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/
H A Dmali_kbase_gpuprops.c475 void *field = ((u8 *)props) + gpu_property_mapping[i].offset; in kbase_gpuprops_populate_user_buffer() local
499 WRITE_U8(*((u8 *)field)); in kbase_gpuprops_populate_user_buffer()
502 WRITE_U16(*((u16 *)field)); in kbase_gpuprops_populate_user_buffer()
505 WRITE_U32(*((u32 *)field)); in kbase_gpuprops_populate_user_buffer()
508 WRITE_U64(*((u64 *)field)); in kbase_gpuprops_populate_user_buffer()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/
H A Dmali_kbase_gpuprops.c466 void *field = ((u8 *)props) + gpu_property_mapping[i].offset; in kbase_gpuprops_populate_user_buffer() local
492 WRITE_U8(*((u8 *)field)); in kbase_gpuprops_populate_user_buffer()
495 WRITE_U16(*((u16 *)field)); in kbase_gpuprops_populate_user_buffer()
498 WRITE_U32(*((u32 *)field)); in kbase_gpuprops_populate_user_buffer()
501 WRITE_U64(*((u64 *)field)); in kbase_gpuprops_populate_user_buffer()
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/
H A Dmali_kbase_gpuprops.c565 void *field = ((u8 *)props) + gpu_property_mapping[i].offset; in kbase_gpuprops_populate_user_buffer() local
589 WRITE_U8(*((u8 *)field)); in kbase_gpuprops_populate_user_buffer()
592 WRITE_U16(*((u16 *)field)); in kbase_gpuprops_populate_user_buffer()
595 WRITE_U32(*((u32 *)field)); in kbase_gpuprops_populate_user_buffer()
598 WRITE_U64(*((u64 *)field)); in kbase_gpuprops_populate_user_buffer()
/device/qemu/SmartL_E802/liteos_m/board/hals/csky_driver/include/
H A Dcore_802.h608 \defgroup CSI_core_bitfield Core register bit field macros
609 \brief Macros for use with bit field definitions (xxx_Pos, xxx_Msk).
614 \brief Mask and shift a bit field value for use in a register bit range.
615 \param[in] field Name of the register bit field.
616 \param[in] value Value of the bit field.
619 #define _VAL2FLD(field, value) ((value << field ## _Pos) & field ## _Msk)
623 \param[in] field Nam
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/isp/
H A Dcapture_v1x.c416 stream->u.sp.field == RKISP_FIELD_EVEN))) { in mi_frame_end()
434 stream->u.sp.field == RKISP_FIELD_ODD)) { in mi_frame_end()
436 * Interlaced: odd field next buffer address in mi_frame_end()
452 stream->u.sp.field == RKISP_FIELD_EVEN) { in mi_frame_end()
453 /* Interlaced: event field next buffer address */ in mi_frame_end()
468 stream->u.sp.field_rec = stream->u.sp.field; in mi_frame_end()
753 dev->active_sensor->fmt[0].format.field == in rkisp_start_streaming()
762 stream->u.sp.field = RKISP_FIELD_INVAL; in rkisp_start_streaming()
H A Dcapture.h118 enum rkisp_field field; member
H A Dcapture_v21.c882 stream->u.sp.field == RKISP_FIELD_EVEN))) { in mi_frame_end()
941 stream->u.sp.field == RKISP_FIELD_ODD)) { in mi_frame_end()
943 * Interlaced: odd field next buffer address in mi_frame_end()
959 stream->u.sp.field == RKISP_FIELD_EVEN) { in mi_frame_end()
960 /* Interlaced: event field next buffer address */ in mi_frame_end()
975 stream->u.sp.field_rec = stream->u.sp.field; in mi_frame_end()
1330 dev->active_sensor->fmt[0].format.field == V4L2_FIELD_INTERLACED) { in rkisp_start_streaming()
1338 stream->u.sp.field = RKISP_FIELD_INVAL; in rkisp_start_streaming()
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/libcoap/include/coap2/
H A Dutlist.h427 #define LL_SEARCH_SCALAR(head,out,field,val) \
428 LL_SEARCH_SCALAR2(head,out,field,val,next)
430 #define LL_SEARCH_SCALAR2(head,out,field,val,next) \
433 if ((out)->field == (val)) break; \
965 #define CDL_SEARCH_SCALAR(head,out,field,val) \
966 CDL_SEARCH_SCALAR2(head,out,field,val,next)
968 #define CDL_SEARCH_SCALAR2(head,out,field,val,next) \
971 if ((out)->field == (val)) break; \
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/cif/
H A Dcapture.c383 .field = V4L2_FIELD_NONE,
391 .field = V4L2_FIELD_INTERLACED,
399 .field = V4L2_FIELD_NONE,
407 .field = V4L2_FIELD_INTERLACED,
415 .field = V4L2_FIELD_NONE,
423 .field = V4L2_FIELD_INTERLACED,
431 .field = V4L2_FIELD_NONE,
439 .field = V4L2_FIELD_INTERLACED,
446 .field = V4L2_FIELD_NONE,
453 .field
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/media/platform/rockchip/cif/
H A Dcapture.c351 .field = V4L2_FIELD_NONE,
358 .field = V4L2_FIELD_INTERLACED,
365 .field = V4L2_FIELD_NONE,
372 .field = V4L2_FIELD_INTERLACED,
379 .field = V4L2_FIELD_NONE,
386 .field = V4L2_FIELD_INTERLACED,
393 .field = V4L2_FIELD_NONE,
400 .field = V4L2_FIELD_INTERLACED,
406 .field = V4L2_FIELD_NONE,
412 .field
[all...]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/
H A Dmali_kbase_gpuprops.c821 void *field = ((u8 *)props) + gpu_property_mapping[i].offset; in kbase_gpuprops_populate_user_buffer() local
847 WRITE_U8(*((u8 *)field)); in kbase_gpuprops_populate_user_buffer()
850 WRITE_U16(*((u16 *)field)); in kbase_gpuprops_populate_user_buffer()
853 WRITE_U32(*((u32 *)field)); in kbase_gpuprops_populate_user_buffer()
856 WRITE_U64(*((u64 *)field)); in kbase_gpuprops_populate_user_buffer()
/device/soc/rockchip/common/vendor/drivers/media/platform/rockchip/isp/
H A Dcapture_v1x.c400 (!interlaced || (stream->u.sp.field_rec == RKISP_FIELD_ODD && stream->u.sp.field == RKISP_FIELD_EVEN))) { in mi_frame_end()
415 if (!interlaced || (stream->curr_buf == stream->next_buf && stream->u.sp.field == RKISP_FIELD_ODD)) { in mi_frame_end()
417 * Interlaced: odd field next buffer address in mi_frame_end()
429 } else if (stream->u.sp.field_rec == RKISP_FIELD_ODD && stream->u.sp.field == RKISP_FIELD_EVEN) { in mi_frame_end()
430 /* Interlaced: event field next buffer address */ in mi_frame_end()
442 stream->u.sp.field_rec = stream->u.sp.field; in mi_frame_end()
710 if (dev->active_sensor && dev->active_sensor->fmt[0].format.field == V4L2_FIELD_INTERLACED) { in rkisp_start_streaming()
717 stream->u.sp.field = RKISP_FIELD_INVAL; in rkisp_start_streaming()
H A Dcapture.h114 enum rkisp_field field; member
H A Dcapture_v21.c860 (!interlaced || (stream->u.sp.field_rec == RKISP_FIELD_ODD && stream->u.sp.field == RKISP_FIELD_EVEN))) { in mi_frame_end()
913 if (!interlaced || (stream->curr_buf == stream->next_buf && stream->u.sp.field == RKISP_FIELD_ODD)) { in mi_frame_end()
915 * Interlaced: odd field next buffer address in mi_frame_end()
927 } else if (stream->u.sp.field_rec == RKISP_FIELD_ODD && stream->u.sp.field == RKISP_FIELD_EVEN) { in mi_frame_end()
928 /* Interlaced: event field next buffer address */ in mi_frame_end()
940 stream->u.sp.field_rec = stream->u.sp.field; in mi_frame_end()
1279 if (dev->active_sensor && dev->active_sensor->fmt[0].format.field == V4L2_FIELD_INTERLACED) { in rkisp_start_streaming()
1286 stream->u.sp.field = RKISP_FIELD_INVAL; in rkisp_start_streaming()

Completed in 45 milliseconds

12