/device/soc/winnermicro/wm800/board/src/bt/blehost/porting/w800/include/os/ |
D | queue.h | 134 #define SLIST_FOREACH(var, head, field) \ argument 137 (var) = SLIST_NEXT((var), field)) 143 #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ argument 144 SLIST_NEXT((elm), field) = SLIST_NEXT((slistelm), field); \ 145 SLIST_NEXT((slistelm), field) = (elm); \ 148 #define SLIST_INSERT_HEAD(head, elm, field) do { \ argument 149 SLIST_NEXT((elm), field) = SLIST_FIRST((head)); \ 153 #define SLIST_NEXT(elm, field) ((elm)->field.sle_next) argument 155 #define SLIST_REMOVE(head, elm, type, field) do { \ argument 157 SLIST_REMOVE_HEAD((head), field); \ [all …]
|
D | util.h | 30 #define CONTAINER_OF(ptr, type, field) \ argument 31 ((type *)(((char *)(ptr)) - offsetof(type, field)))
|
/device/soc/rockchip/rk2206/hardware/include/sys/ |
D | queue.h | 170 #define SLIST_FOREACH(var, head, field) \ argument 173 (var) = SLIST_NEXT((var), field)) 175 #define SLIST_FOREACH_FROM(var, head, field) \ argument 178 (var) = SLIST_NEXT((var), field)) 180 #define SLIST_FOREACH_SAFE(var, head, field, tvar) \ argument 182 (var) && ((tvar) = SLIST_NEXT((var), field), 1); \ 185 #define SLIST_FOREACH_FROM_SAFE(var, head, field, tvar) \ argument 187 (var) && ((tvar) = SLIST_NEXT((var), field), 1); \ 190 #define SLIST_FOREACH_PREVPTR(var, varp, head, field) \ argument 193 (varp) = &SLIST_NEXT((var), field)) [all …]
|
D | defs.h | 46 #define offsetof(type, field) \ argument 47 ((size_t)(uintptr_t)((const volatile void *)&((type *)0)->field)) 51 #define __offsetof(type, field) offsetof(type, field) argument 55 #define __containerof(ptr, type, field) \ argument 56 __DEQUALIFY(type *, (const volatile char *)(ptr) - offsetof(type, field)) 60 #define container_of(ptr, type, field) __containerof(ptr, type, field) argument
|
/device/soc/hisilicon/hi3516dv300/sdk_linux/sample/taurus/ai_sample/ext_util/ |
D | base_interface.c | 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() 151 double SectGetCfgDouble(const char* section, const char* field, double defVal) in SectGetCfgDouble() argument 153 HI_ASSERT(field && *field); in SectGetCfgDouble() 156 … if (snprintf_s(key, sizeof(key), sizeof(key) - 1, "%s:%s", (section ? section : ""), field) < 0) { in SectGetCfgDouble() 166 bool SectGetCfgBool(const char* section, const char* field, bool defVal) in SectGetCfgBool() argument 168 HI_ASSERT(field && *field); in SectGetCfgBool() 171 … if (snprintf_s(key, sizeof(key), sizeof(key) - 1, "%s:%s", (section ? section : ""), field) < 0) { in SectGetCfgBool() 181 const char* SectGetCfgStr(const char* section, const char* field, const char* defVal) in SectGetCfgStr() argument [all …]
|
D | base_interface.h | 35 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/ |
D | hid-input.c | 95 for (j = 0; j < report->field[i]->maxusage; j++) { in hidinput_find_key() 96 usage = report->field[i]->usage + j; in hidinput_find_key() 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->physical_minimum; in hidinput_calc_abs_res() 218 if (field->unit == HID_FIELD_UNIT_CENTIMETERS) { /* If centimeters */ in hidinput_calc_abs_res() 221 } else if (field->unit == HID_FIELD_UNIT_INCHES) { /* If inches */ in hidinput_calc_abs_res() 240 if (field->unit == HID_FIELD_UNIT_DEGREES) { /* If degrees */ in hidinput_calc_abs_res() 248 } else if (field->unit != HID_FIELD_UNIT_RADIANS) { /* If not radians */ in hidinput_calc_abs_res() [all …]
|
D | hid-core.c | 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 + 1); in hid_register_field() 150 field->value = (s32 *)(field->usage + usages); in hid_register_field() 151 field->report = report; in hid_register_field() 153 return field; in hid_register_field() 289 struct hid_field *field; in hid_add_field() local [all …]
|
/device/soc/esp/esp32/components/efuse/src/ |
D | esp_efuse_api.c | 39 esp_err_t esp_efuse_read_field_blob(const esp_efuse_desc_t* field[], void* dst, size_t dst_size_bit… in esp_efuse_read_field_blob() argument 43 if (field == NULL || dst == NULL || dst_size_bits == 0) { in esp_efuse_read_field_blob() 47 err = esp_efuse_utility_process(field, dst, dst_size_bits, esp_efuse_utility_fill_buff); in esp_efuse_read_field_blob() 53 bool esp_efuse_read_field_bit(const esp_efuse_desc_t *field[]) in esp_efuse_read_field_bit() argument 56 esp_err_t err = esp_efuse_read_field_blob(field, &value, 1); in esp_efuse_read_field_bit() 62 esp_err_t esp_efuse_read_field_cnt(const esp_efuse_desc_t* field[], size_t* out_cnt) in esp_efuse_read_field_cnt() argument 66 if (field == NULL || out_cnt == NULL) { in esp_efuse_read_field_cnt() 70 err = esp_efuse_utility_process(field, out_cnt, 0, esp_efuse_utility_count_once); in esp_efuse_read_field_cnt() 77 esp_err_t esp_efuse_write_field_blob(const esp_efuse_desc_t* field[], const void* src, size_t src_s… in esp_efuse_write_field_blob() argument 81 if (field == NULL || src == NULL || src_size_bits == 0) { in esp_efuse_write_field_blob() [all …]
|
D | esp_efuse_utility.c | 46 esp_err_t esp_efuse_utility_process(const esp_efuse_desc_t* field[], void* ptr, size_t ptr_size_bit… in esp_efuse_utility_process() argument 52 int field_len = esp_efuse_get_field_size(field); in esp_efuse_utility_process() 56 while (err == ESP_OK && req_size > bits_counter && field[i] != NULL) { in esp_efuse_utility_process() 57 …if (check_range_of_bits(field[i]->efuse_block, field[i]->bit_start, field[i]->bit_count) == false)… in esp_efuse_utility_process() 64 (num_reg = get_reg_num(field[i]->bit_start, field[i]->bit_count, i_reg)) != -1) { in esp_efuse_utility_process() 66 int start_bit = get_starting_bit_num_in_reg(field[i]->bit_start, i_reg); in esp_efuse_utility_process() 67 int num_bits = get_count_bits_in_reg(field[i]->bit_start, field[i]->bit_count, i_reg); in esp_efuse_utility_process() 72 (int)field[i]->efuse_block, num_reg, num_bits, start_bit); in esp_efuse_utility_process() 73 … err = func_proc(num_reg, field[i]->efuse_block, start_bit, num_bits, ptr, &bits_counter); in esp_efuse_utility_process()
|
/device/soc/esp/esp32/components/soc/esp32/include/soc/ |
D | soc_ulp.h | 43 #define READ_RTC_FIELD(rtc_reg, field) \ argument 44 READ_RTC_REG(rtc_reg, field ## _S, MASK_TO_WIDTH_HELPER16(field ## _V, 0)) 47 #define WRITE_RTC_FIELD(rtc_reg, field, value) \ argument 48 …WRITE_RTC_REG(rtc_reg, field ## _S, MASK_TO_WIDTH_HELPER8(field ## _V, 0), ((value) & field ## _V))
|
/device/soc/chipsea/cst85/liteos_m/sdk/modules/wifi/macif/ |
D | wifi_mac.h | 610 #define HE_MAC_CAPA_VAL_GET(he_cap, field) co_val_get((he_cap)->mac_cap_info, \ argument 611 HE_MAC_CAPA_##field##_OFT, \ 612 HE_MAC_CAPA_##field##_WIDTH) 622 #define HE_MAC_CAPA_VAL_SET(he_cap, field, val) co_val_set((he_cap)->mac_cap_info, \ argument 623 HE_MAC_CAPA_##field##_OFT, \ 624 HE_MAC_CAPA_##field##_WIDTH, \ 625 HE_MAC_CAPA_##field##_##val) 666 #define HE_PHY_CAPA_VAL_GET(he_cap, field) co_val_get((he_cap)->phy_cap_info, \ argument 667 HE_PHY_CAPA_##field##_OFT, \ 668 HE_PHY_CAPA_##field##_WIDTH) [all …]
|
/device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/hal/ |
D | plat_types.h | 102 #define BITFIELD_VAL(field, val) (((val) & (field ## _MASK >> field ## _SHIFT)) << field ## … argument 103 #define SET_BITFIELD(reg, field, val) (((reg) & ~field ## _MASK) | BITFIELD_VAL(field, val)) argument 104 #define GET_BITFIELD(reg, field) (((reg) & field ## _MASK) >> field ## _SHIFT) argument
|
/device/soc/esp/esp32/components/efuse/include/ |
D | esp_efuse.h | 71 esp_err_t esp_efuse_read_field_blob(const esp_efuse_desc_t* field[], void* dst, size_t dst_size_bit… 89 bool esp_efuse_read_field_bit(const esp_efuse_desc_t *field[]); 104 esp_err_t esp_efuse_read_field_cnt(const esp_efuse_desc_t* field[], size_t* out_cnt); 123 esp_err_t esp_efuse_write_field_blob(const esp_efuse_desc_t* field[], const void* src, size_t src_s… 139 esp_err_t esp_efuse_write_field_cnt(const esp_efuse_desc_t* field[], size_t cnt); 156 esp_err_t esp_efuse_write_field_bit(const esp_efuse_desc_t* field[]); 195 int esp_efuse_get_field_size(const esp_efuse_desc_t* field[]);
|
/device/soc/rockchip/common/sdk_linux/include/uapi/linux/usb/ |
D | videodev2.h | 108 #define V4L2_FIELD_HAS_TOP(field) … argument 109 …((field) == V4L2_FIELD_TOP || (field) == V4L2_FIELD_INTERLACED || (field) == V4L2_FIELD_INTERLACED… 110 …(field) == V4L2_FIELD_INTERLACED_BT || (field) == V4L2_FIELD_SEQ_TB || (field) == V4L2_FIELD_SEQ_B… 111 #define V4L2_FIELD_HAS_BOTTOM(field) … argument 112 …((field) == V4L2_FIELD_BOTTOM || (field) == V4L2_FIELD_INTERLACED || (field) == V4L2_FIELD_INTERLA… 113 …(field) == V4L2_FIELD_INTERLACED_BT || (field) == V4L2_FIELD_SEQ_TB || (field) == V4L2_FIELD_SEQ_B… 114 #define V4L2_FIELD_HAS_BOTH(field) … argument 115 …((field) == V4L2_FIELD_INTERLACED || (field) == V4L2_FIELD_INTERLACED_TB || (field) == V4L2_FIELD_… 116 (field) == V4L2_FIELD_SEQ_TB || (field) == V4L2_FIELD_SEQ_BT) 117 #define V4L2_FIELD_HAS_T_OR_B(field) … argument [all …]
|
/device/soc/rockchip/common/sdk_linux/include/uapi/linux/ |
D | videodev2.h | 108 #define V4L2_FIELD_HAS_TOP(field) … argument 109 …((field) == V4L2_FIELD_TOP || (field) == V4L2_FIELD_INTERLACED || (field) == V4L2_FIELD_INTERLACED… 110 …(field) == V4L2_FIELD_INTERLACED_BT || (field) == V4L2_FIELD_SEQ_TB || (field) == V4L2_FIELD_SEQ_B… 111 #define V4L2_FIELD_HAS_BOTTOM(field) … argument 112 …((field) == V4L2_FIELD_BOTTOM || (field) == V4L2_FIELD_INTERLACED || (field) == V4L2_FIELD_INTERLA… 113 …(field) == V4L2_FIELD_INTERLACED_BT || (field) == V4L2_FIELD_SEQ_TB || (field) == V4L2_FIELD_SEQ_B… 114 #define V4L2_FIELD_HAS_BOTH(field) … argument 115 …((field) == V4L2_FIELD_INTERLACED || (field) == V4L2_FIELD_INTERLACED_TB || (field) == V4L2_FIELD_… 116 (field) == V4L2_FIELD_SEQ_TB || (field) == V4L2_FIELD_SEQ_BT) 117 #define V4L2_FIELD_HAS_T_OR_B(field) … argument [all …]
|
/device/soc/amlogic/a311d/hardware/media/libamcodec/include/yuvplayer/ |
D | videodev2.h | 129 #define V4L2_FIELD_HAS_TOP(field) \ argument 130 ((field) == V4L2_FIELD_TOP ||\ 131 (field) == V4L2_FIELD_INTERLACED ||\ 132 (field) == V4L2_FIELD_INTERLACED_TB ||\ 133 (field) == V4L2_FIELD_INTERLACED_BT ||\ 134 (field) == V4L2_FIELD_SEQ_TB ||\ 135 (field) == V4L2_FIELD_SEQ_BT) 136 #define V4L2_FIELD_HAS_BOTTOM(field) \ argument 137 ((field) == V4L2_FIELD_BOTTOM ||\ 138 (field) == V4L2_FIELD_INTERLACED ||\ [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/umac/ |
D | debugfs_netdev.c | 67 #define IEEE80211_IF_FMT(name, field, format_string) \ argument 72 return scnprintf(buf, buflen, format_string, sdata->field); \ 74 #define IEEE80211_IF_FMT_DEC(name, field) \ argument 75 IEEE80211_IF_FMT(name, field, "%d\n") 76 #define IEEE80211_IF_FMT_HEX(name, field) \ argument 77 IEEE80211_IF_FMT(name, field, "%#x\n") 78 #define IEEE80211_IF_FMT_LHEX(name, field) \ argument 79 IEEE80211_IF_FMT(name, field, "%#lx\n") 80 #define IEEE80211_IF_FMT_SIZE(name, field) \ argument 81 IEEE80211_IF_FMT(name, field, "%zd\n") [all …]
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/bcmdhd/include/ |
D | bcmdefs.h | 365 #define GFIELD(val, field) \ argument 366 (((val) >> field ## _S) & field ## _M) 367 #define SFIELD(val, field, bits) \ argument 368 (((val) & (~(field ## _M << field ## _S))) | \ 369 ((unsigned)(bits) << field ## _S))
|
/device/soc/winnermicro/wm800/board/src/bt/blehost/nimble/host/src/ |
D | ble_hs_adv.c | 29 const struct ble_hs_adv_field *field; member 732 const struct ble_hs_adv_field *field = (const void *) data; in ble_hs_adv_parse() local 734 if (field->length >= length) { in ble_hs_adv_parse() 738 if (func(field, user_data) == 0) { in ble_hs_adv_parse() 742 length -= 1 + field->length; in ble_hs_adv_parse() 743 data += 1 + field->length; in ble_hs_adv_parse() 749 static int find_field_func(const struct ble_hs_adv_field *field, void *user_data) in find_field_func() argument 753 if (field->type != ffd->type) { in find_field_func() 757 ffd->field = field; in find_field_func() 767 .field = NULL, in ble_hs_adv_find_field() [all …]
|
/device/board/kaihong/khdvk_3566b/wifi/bcmdhd_hdf/bcmdhd/include/ |
D | bcmdefs.h | 486 #define GFIELD(val, field) (((val) >> field##_S) & field##_M) argument 487 #define SFIELD(val, field, bits) \ argument 488 (((val) & (~(field##_M << field##_S))) | ((unsigned)(bits) << field##_S))
|
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/ |
D | bcmdefs.h | 475 #define GFIELD(val, field) \ argument 476 (((val) >> field ## _S) & field ## _M) 477 #define SFIELD(val, field, bits) \ argument 478 (((val) & (~(field ## _M << field ## _S))) | \ 479 ((unsigned)(bits) << field ## _S))
|
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/net/wireless/xr829/wlan/ |
D | fwio.h | 26 #define FIELD_OFFSET(type, field) ((u8 *)&((type *)0)->field - (u8 *)0) argument
|
/device/soc/bestechnic/bes2600/liteos_m/sdk/bsp/platform/cmsis/inc/ |
D | core_cm0.h | 513 #define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) argument 521 #define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) argument
|
D | core_cm1.h | 539 #define _VAL2FLD(field, value) (((uint32_t)(value) << field ## _Pos) & field ## _Msk) argument 547 #define _FLD2VAL(field, value) (((uint32_t)(value) & field ## _Msk) >> field ## _Pos) argument
|