| /components/drivers/usb/cherryusb/port/chipidea/ |
| A D | usb_chipidea_reg.h | 243 #define USB_USBCMD_ITC_SET(x) (((uint32_t)(x) << USB_USBCMD_ITC_SHIFT) & USB_USBCMD_ITC_MASK) argument 244 #define USB_USBCMD_ITC_GET(x) (((uint32_t)(x) & USB_USBCMD_ITC_MASK) >> USB_USBCMD_ITC_SHIFT) argument 430 #define USB_USBCMD_RS_SET(x) (((uint32_t)(x) << USB_USBCMD_RS_SHIFT) & USB_USBCMD_RS_MASK) argument 431 #define USB_USBCMD_RS_GET(x) (((uint32_t)(x) & USB_USBCMD_RS_MASK) >> USB_USBCMD_RS_SHIFT) argument 515 #define USB_USBSTS_AS_GET(x) (((uint32_t)(x) & USB_USBSTS_AS_MASK) >> USB_USBSTS_AS_SHIFT) argument 529 #define USB_USBSTS_PS_GET(x) (((uint32_t)(x) & USB_USBSTS_PS_MASK) >> USB_USBSTS_PS_SHIFT) argument 1589 #define USB_OTGSC_ID_GET(x) (((uint32_t)(x) & USB_OTGSC_ID_MASK) >> USB_OTGSC_ID_SHIFT) argument 1613 #define USB_OTGSC_VC_SET(x) (((uint32_t)(x) << USB_OTGSC_VC_SHIFT) & USB_OTGSC_VC_MASK) argument 1614 #define USB_OTGSC_VC_GET(x) (((uint32_t)(x) & USB_OTGSC_VC_MASK) >> USB_OTGSC_VC_SHIFT) argument 1625 #define USB_OTGSC_VD_SET(x) (((uint32_t)(x) << USB_OTGSC_VD_SHIFT) & USB_OTGSC_VD_MASK) argument [all …]
|
| /components/legacy/usb/usbdevice/class/ |
| A D | hid.h | 128 #define HID_LogicalMinS(x) 0x16,(x&0xFF),((x>>8)&0xFF) argument 129 #define HID_LogicalMinL(x) 0x17,(x&0xFF),((x>>8)&0xFF),((x>>16)&0xFF),((x>>24)&0xFF) argument 131 #define HID_LogicalMaxS(x) 0x26,(x&0xFF),((x>>8)&0xFF) argument 132 #define HID_LogicalMaxL(x) 0x27,(x&0xFF),((x>>8)&0xFF),((x>>16)&0xFF),((x>>24)&0xFF) argument 134 #define HID_PhysicalMinS(x) 0x36,(x&0xFF),((x>>8)&0xFF) argument 135 #define HID_PhysicalMinL(x) 0x37,(x&0xFF),((x>>8)&0xFF),((x>>16)&0xFF),((x>>24)&0xFF) argument 137 #define HID_PhysicalMaxS(x) 0x46,(x&0xFF),((x>>8)&0xFF) argument 138 #define HID_PhysicalMaxL(x) 0x47,(x&0xFF),((x>>8)&0xFF),((x>>16)&0xFF),((x>>24)&0xFF) argument 142 #define HID_UnitL(x) 0x67,(x&0xFF),((x>>8)&0xFF),((x>>16)&0xFF),((x>>24)&0xFF) argument 145 #define HID_ReportSizeL(x) 0x77,(x&0xFF),((x>>8)&0xFF),((x>>16)&0xFF),((x>>24)&0xFF) argument [all …]
|
| /components/net/lwip/lwip-1.4.1/src/include/lwip/ |
| A D | def.h | 43 #define LWIP_MAX(x , y) (((x) > (y)) ? (x) : (y)) argument 44 #define LWIP_MIN(x , y) (((x) < (y)) ? (x) : (y)) argument 77 #define htons(x) lwip_htons(x) argument 84 #define lwip_htons(x) (x) argument 85 #define lwip_ntohs(x) (x) argument 86 #define lwip_htonl(x) (x) argument 87 #define lwip_ntohl(x) (x) argument 88 #define PP_HTONS(x) (x) argument 89 #define PP_NTOHS(x) (x) argument 90 #define PP_HTONL(x) (x) argument [all …]
|
| A D | stats.h | 153 #define STATS_INC(x) ++lwip_stats.x argument 154 #define STATS_DEC(x) --lwip_stats.x argument 168 #define TCP_STATS_INC(x) STATS_INC(x) argument 176 #define UDP_STATS_INC(x) STATS_INC(x) argument 184 #define ICMP_STATS_INC(x) STATS_INC(x) argument 192 #define IGMP_STATS_INC(x) STATS_INC(x) argument 200 #define IP_STATS_INC(x) STATS_INC(x) argument 208 #define IPFRAG_STATS_INC(x) STATS_INC(x) argument 216 #define ETHARP_STATS_INC(x) STATS_INC(x) argument 224 #define LINK_STATS_INC(x) STATS_INC(x) argument [all …]
|
| /components/drivers/include/drivers/ |
| A D | byteorder.h | 29 #define rt_cpu_to_be16(x) (x) argument 30 #define rt_cpu_to_be32(x) (x) argument 31 #define rt_cpu_to_be64(x) (x) argument 32 #define rt_be16_to_cpu(x) (x) argument 33 #define rt_be32_to_cpu(x) (x) argument 34 #define rt_be64_to_cpu(x) (x) argument 48 #define rt_le16_to_cpu(x) (x) argument 49 #define rt_le32_to_cpu(x) (x) argument 50 #define rt_le64_to_cpu(x) (x) argument 51 #define rt_cpu_to_le16(x) (x) argument [all …]
|
| A D | misc.h | 28 typeof(x) __x = x; \ 74 #define rt_min(x, y) \ argument 76 typeof(x) _x = (x); \ 82 #define rt_max(x, y) \ argument 84 typeof(x) _x = (x); \ 90 #define rt_min_t(type, x, y) \ argument 92 type _x = (x); \ 97 #define rt_max_t(type, x, y) \ argument 99 type _x = (x); \ 116 #define rt_abs(x) \ argument [all …]
|
| /components/drivers/usb/cherryusb/port/kinetis/ |
| A D | usb_kinetis_reg.h | 88 #define USB_PERID_ID(x) (((uint8_t)(((uint8_t)(x)) << USB_PERID_ID_SHIFT)) & USB_PERID_ID_MASK) argument 97 #define USB_IDCOMP_NID(x) (((uint8_t)(((uint8_t)(x)) << USB_IDCOMP_NID_SHIFT)) & USB_IDCOMP_NID_MAS… argument 106 #define USB_REV_REV(x) (((uint8_t)(((uint8_t)(x)) << USB_REV_REV_SHIFT)) & USB_REV_REV_MASK) argument 532 #define USB_STAT_ODD(x) (((uint8_t)(((uint8_t)(x)) << USB_STAT_ODD_SHIFT)) & USB_STAT_ODD_MASK) argument 540 #define USB_STAT_TX(x) (((uint8_t)(((uint8_t)(x)) << USB_STAT_TX_SHIFT)) & USB_STAT_TX_MASK) argument 545 #define USB_STAT_ENDP(x) (((uint8_t)(((uint8_t)(x)) << USB_STAT_ENDP_SHIFT)) & USB_STAT_ENDP_MASK) argument 562 #define USB_CTL_ODDRST(x) (((uint8_t)(((uint8_t)(x)) << USB_CTL_ODDRST_SHIFT)) & USB_CTL_ODDRST_MAS… argument 583 #define USB_CTL_RESET(x) (((uint8_t)(((uint8_t)(x)) << USB_CTL_RESET_SHIFT)) & USB_CTL_RESET_MASK) argument 593 #define USB_CTL_SE0(x) (((uint8_t)(((uint8_t)(x)) << USB_CTL_SE0_SHIFT)) & USB_CTL_SE0_MASK) argument 607 #define USB_ADDR_ADDR(x) (((uint8_t)(((uint8_t)(x)) << USB_ADDR_ADDR_SHIFT)) & USB_ADDR_ADDR_MASK) argument [all …]
|
| /components/net/lwip/lwip-2.0.3/src/include/lwip/ |
| A D | def.h | 54 #define LWIP_MAX(x , y) (((x) > (y)) ? (x) : (y)) argument 55 #define LWIP_MIN(x , y) (((x) < (y)) ? (x) : (y)) argument 58 #define LWIP_ARRAYSIZE(x) (sizeof(x)/sizeof((x)[0])) argument 75 #define lwip_htons(x) (x) argument 76 #define lwip_ntohs(x) (x) argument 77 #define lwip_htonl(x) (x) argument 78 #define lwip_ntohl(x) (x) argument 79 #define PP_HTONS(x) (x) argument 80 #define PP_NTOHS(x) (x) argument 81 #define PP_HTONL(x) (x) argument [all …]
|
| A D | stats.h | 309 #define STATS_INC(x) ++lwip_stats.x argument 310 #define STATS_DEC(x) --lwip_stats.x argument 316 #define STATS_GET(x) lwip_stats.x argument 325 #define TCP_STATS_INC(x) STATS_INC(x) argument 333 #define UDP_STATS_INC(x) STATS_INC(x) argument 341 #define ICMP_STATS_INC(x) STATS_INC(x) argument 349 #define IGMP_STATS_INC(x) STATS_INC(x) argument 357 #define IP_STATS_INC(x) STATS_INC(x) argument 381 #define LINK_STATS_INC(x) STATS_INC(x) argument 425 #define IP6_STATS_INC(x) STATS_INC(x) argument [all …]
|
| A D | arch.h | 79 #define LWIP_PLATFORM_DIAG(x) do {printf x;} while(0) argument 90 #define LWIP_PLATFORM_ASSERT(x) do {printf("Assertion \"%s\" failed at line %d in %s\n", \ argument 91 x, __LINE__, __FILE__); fflush(NULL); abort();} while(0) 273 #define PACK_STRUCT_FIELD(x) x argument 282 #define PACK_STRUCT_FLD_8(x) PACK_STRUCT_FIELD(x) argument 291 #define PACK_STRUCT_FLD_S(x) PACK_STRUCT_FIELD(x) argument 308 #define LWIP_UNUSED_ARG(x) (void)x argument
|
| /components/net/lwip/lwip-2.1.2/src/include/lwip/ |
| A D | def.h | 65 #define LWIP_MAX(x , y) (((x) > (y)) ? (x) : (y)) argument 66 #define LWIP_MIN(x , y) (((x) < (y)) ? (x) : (y)) argument 69 #define LWIP_ARRAYSIZE(x) (sizeof(x)/sizeof((x)[0])) argument 86 #define lwip_htons(x) ((u16_t)(x)) argument 87 #define lwip_ntohs(x) ((u16_t)(x)) argument 109 #define PP_NTOHS(x) PP_HTONS(x) 114 #define PP_NTOHL(x) PP_HTONL(x) 119 #define htons(x) lwip_htons(x) argument 120 #define ntohs(x) lwip_ntohs(x) argument 121 #define htonl(x) lwip_htonl(x) argument [all …]
|
| A D | stats.h | 309 #define STATS_INC(x) ++lwip_stats.x argument 310 #define STATS_DEC(x) --lwip_stats.x argument 316 #define STATS_GET(x) lwip_stats.x argument 325 #define TCP_STATS_INC(x) STATS_INC(x) argument 333 #define UDP_STATS_INC(x) STATS_INC(x) argument 341 #define ICMP_STATS_INC(x) STATS_INC(x) argument 349 #define IGMP_STATS_INC(x) STATS_INC(x) argument 357 #define IP_STATS_INC(x) STATS_INC(x) argument 381 #define LINK_STATS_INC(x) STATS_INC(x) argument 425 #define IP6_STATS_INC(x) STATS_INC(x) argument [all …]
|
| /components/legacy/fdt/libfdt/ |
| A D | libfdt_env.h | 73 #define EXTRACT_BYTE(x, n) ((unsigned long long)((uint8_t *)&x)[n]) argument 74 #define CPU_TO_FDT16(x) ((EXTRACT_BYTE(x, 0) << 8) | EXTRACT_BYTE(x, 1)) argument 75 #define CPU_TO_FDT32(x) ((EXTRACT_BYTE(x, 0) << 24) | (EXTRACT_BYTE(x, 1) << 16) | \ argument 76 (EXTRACT_BYTE(x, 2) << 8) | EXTRACT_BYTE(x, 3)) 77 #define CPU_TO_FDT64(x) ((EXTRACT_BYTE(x, 0) << 56) | (EXTRACT_BYTE(x, 1) << 48) | \ argument 78 (EXTRACT_BYTE(x, 2) << 40) | (EXTRACT_BYTE(x, 3) << 32) | \ 79 (EXTRACT_BYTE(x, 4) << 24) | (EXTRACT_BYTE(x, 5) << 16) | \ 80 (EXTRACT_BYTE(x, 6) << 8) | EXTRACT_BYTE(x, 7)) 82 static inline uint16_t fdt16_to_cpu(fdt16_t x) in fdt16_to_cpu() argument 86 static inline fdt16_t cpu_to_fdt16(uint16_t x) in cpu_to_fdt16() argument [all …]
|
| /components/drivers/ofw/libfdt/ |
| A D | libfdt_env.h | 33 #define EXTRACT_BYTE(x, n) ((unsigned long long)((uint8_t *)&x)[n]) argument 34 #define CPU_TO_FDT16(x) ((EXTRACT_BYTE(x, 0) << 8) | EXTRACT_BYTE(x, 1)) argument 35 #define CPU_TO_FDT32(x) ((EXTRACT_BYTE(x, 0) << 24) | (EXTRACT_BYTE(x, 1) << 16) | \ argument 36 (EXTRACT_BYTE(x, 2) << 8) | EXTRACT_BYTE(x, 3)) 37 #define CPU_TO_FDT64(x) ((EXTRACT_BYTE(x, 0) << 56) | (EXTRACT_BYTE(x, 1) << 48) | \ argument 38 (EXTRACT_BYTE(x, 2) << 40) | (EXTRACT_BYTE(x, 3) << 32) | \ 39 (EXTRACT_BYTE(x, 4) << 24) | (EXTRACT_BYTE(x, 5) << 16) | \ 40 (EXTRACT_BYTE(x, 6) << 8) | EXTRACT_BYTE(x, 7)) 42 static inline uint16_t fdt16_to_cpu(fdt16_t x) in fdt16_to_cpu() argument 46 static inline fdt16_t cpu_to_fdt16(uint16_t x) in cpu_to_fdt16() argument [all …]
|
| /components/net/lwip/lwip-2.1.2/test/unit/ |
| A D | lwip_check.h | 11 #define EXPECT(x) fail_unless(x) argument 12 #define EXPECT_RET(x) do { fail_unless(x); if(!(x)) { return; }} while(0) argument 13 #define EXPECT_RETX(x, y) do { fail_unless(x); if(!(x)) { return y; }} while(0) argument 14 #define EXPECT_RETNULL(x) EXPECT_RETX(x, NULL) argument 21 #define TESTFUNC(x) {(x), "" # x "" } argument 38 #define SKIP_POOL(x) (1 << x) argument
|
| /components/drivers/sdio/sdhci/include/ |
| A D | sdhci_misc.h | 15 #define __bf_shf(x) (__builtin_ffsll(x) - 1) argument 30 #define min_t(type, x, y) (((type)x < (type)y) ? x : y) argument 31 #define max_t(type, x, y) (((type)x > (type)y) ? x : y) argument 32 #define min(x, y) ((x) < (y) ? (x) : (y)) argument 38 #define le32_to_cpu(x) (x) argument 39 #define le16_to_cpu(x) (x) argument 40 #define cpu_to_le16(x) (x) argument 41 #define cpu_to_le32(x) (x) argument
|
| /components/net/lwip/lwip-2.0.3/test/unit/ |
| A D | lwip_check.h | 11 #define EXPECT(x) fail_unless(x) argument 12 #define EXPECT_RET(x) do { fail_unless(x); if(!(x)) { return; }} while(0) argument 13 #define EXPECT_RETX(x, y) do { fail_unless(x); if(!(x)) { return y; }} while(0) argument 14 #define EXPECT_RETNULL(x) EXPECT_RETX(x, NULL) argument 21 #define TESTFUNC(x) {(x), "" # x "" } argument
|
| /components/net/lwip/port/arch/ |
| A D | cc.h | 78 #define PACK_STRUCT_FIELD(x) x argument 83 #define PACK_STRUCT_FIELD(x) x argument 91 #define PACK_STRUCT_FIELD(x) x argument 94 #define PACK_STRUCT_FIELD(x) x argument 99 #define PACK_STRUCT_FIELD(x) x argument 107 #define LWIP_PLATFORM_DIAG(x) do {rt_kprintf x;} while(0) argument 108 #define LWIP_PLATFORM_ASSERT(x) do {rt_kprintf(x); sys_arch_assert(__FILE__, __LINE__);}while(0) argument
|
| /components/drivers/usb/cherryusb/common/ |
| A D | usb_util.h | 26 #define __ALIGNED(x) __attribute__((aligned(x))) argument 45 #define __ALIGNED(x) __attribute__((aligned(x))) argument 99 #define __ALIGNED(x) __attribute__((aligned(x))) argument 102 #define __ALIGNED(x) __attribute__((aligned(x))) argument 105 #define __ALIGNED(x) argument 119 #define ARG_UNUSED(x) (void)(x) argument 123 #define LO_BYTE(x) ((uint8_t)(x & 0x00FF)) argument 127 #define HI_BYTE(x) ((uint8_t)((x & 0xFF00) >> 8)) argument 139 #define BCD(x) ((((x) / 10) << 4) | ((x) % 10)) argument 188 #define WBVAL(x) (x & 0xFF), ((x >> 8) & 0xFF) argument [all …]
|
| /components/net/lwip/lwip-1.4.1/test/unit/ |
| A D | lwip_check.h | 11 #define EXPECT(x) fail_unless(x) argument 12 #define EXPECT_RET(x) do { fail_unless(x); if(!(x)) { return; }} while(0) argument 13 #define EXPECT_RETX(x, y) do { fail_unless(x); if(!(x)) { return y; }} while(0) argument 14 #define EXPECT_RETNULL(x) EXPECT_RETX(x, NULL) argument
|
| /components/lwp/vdso/user/arch/risc-v/ |
| A D | vdso_sys.h | 24 #define likely(x) __builtin_expect(!!(x), 1) argument 25 #define unlikely(x) __builtin_expect(!!(x), 0) argument 58 #define __RT_STRINGIFY(x...) #x argument 59 #define RT_STRINGIFY(x...) __RT_STRINGIFY(x) argument 107 #define __READ_ONCE(x, check) \ argument 110 typeof(x) __val; \ 114 __read_once_size(&(x), __u.__c, sizeof(x)); \ 118 #define READ_ONCE(x) __READ_ONCE(x, 1) argument
|
| /components/lwp/vdso/user/arch/aarch64/ |
| A D | vdso_sys.h | 23 #define likely(x) __builtin_expect(!!(x), 1) argument 24 #define unlikely(x) __builtin_expect(!!(x), 0) argument 75 #define __RT_STRINGIFY(x...) #x argument 76 #define RT_STRINGIFY(x...) __RT_STRINGIFY(x) argument 116 #define __READ_ONCE(x, check) \ argument 118 union { typeof(x) __val; char __c[1]; } __u; \ 120 __read_once_size(&(x), __u.__c, sizeof(x)); \ 124 #define READ_ONCE(x) __READ_ONCE(x, 1) argument
|
| /components/net/lwip/lwip-2.1.2/src/netif/ppp/polarssl/ |
| A D | arc4.c | 53 ctx->x = 0; in arc4_setup() 78 int i, x, y, a, b; in arc4_crypt() local 81 x = ctx->x; in arc4_crypt() 87 x = ( x + 1 ) & 0xFF; a = m[x]; in arc4_crypt() 90 m[x] = (unsigned char) b; in arc4_crypt() 97 ctx->x = x; in arc4_crypt()
|
| /components/net/lwip/lwip-2.0.3/src/netif/ppp/polarssl/ |
| A D | arc4.c | 53 ctx->x = 0; in arc4_setup() 78 int i, x, y, a, b; in arc4_crypt() local 81 x = ctx->x; in arc4_crypt() 87 x = ( x + 1 ) & 0xFF; a = m[x]; in arc4_crypt() 90 m[x] = (unsigned char) b; in arc4_crypt() 97 ctx->x = x; in arc4_crypt()
|
| /components/drivers/usb/cherryusb/port/aic/ |
| A D | usb_dc_aic_reg.h | 183 #define EP_MISS_CNT(x) (x << 18) argument 185 #define DEVICE_ADDRESS(x) (x << 4) argument 288 #define DIEPT_SIZ_PKT_CNT(x) (x << 19) argument 289 #define DIEPT_SIZ_XFER_SIZE(x) (x << 0) argument 292 #define DOEPT_SIZ_PKT_CNT(x) (x << 19) argument 293 #define DOEPT_SIZ_XFER_SIZE(x) (x << 0) argument 298 #define DIEPCTL_TX_FIFO_NUM(x) (x << 22) argument 302 #define DAINT_IN_EP_INT(x) (x << 0) argument 303 #define DAINT_OUT_EP_INT(x) (x << 16) argument
|