Home
last modified time | relevance | path

Searched +full:static +full:- +full:address (Results 1 – 25 of 1070) sorted by relevance

12345678910>>...43

/Zephyr-latest/include/zephyr/bluetooth/
Daddr.h2 * @brief Bluetooth device address definitions and utilities.
8 * SPDX-License-Identifier: Apache-2.0
23 * @brief Bluetooth device address definitions and utilities.
24 * @defgroup bt_addr Device Address
33 #define BT_ADDR_LE_UNRESOLVED 0xFE /* Resolvable Private Address
36 #define BT_ADDR_LE_ANONYMOUS 0xFF /* No address provided
40 /** Length in bytes of a standard Bluetooth address */
43 /** Bluetooth Device Address */
49 /** Length in bytes of an LE Bluetooth address. Not packed, so no sizeof() */
52 /** Bluetooth LE Device Address */
[all …]
/Zephyr-latest/include/zephyr/sys/
Dsys_io.h6 * SPDX-License-Identifier: Apache-2.0
26 * @fn static inline void sys_out8(uint8_t data, io_port_t port);
32 * @param port the port address where to write the byte
36 * @fn static inline uint8_t sys_in8(io_port_t port);
41 * @param port the port address from where to read the byte
47 * @fn static inline void sys_out16(uint16_t data, io_port_t port);
53 * @param port the port address where to write the 16 bits
57 * @fn static inline uint16_t sys_in16(io_port_t port);
62 * @param port the port address from where to read the 16 bits
68 * @fn static inline void sys_out32(uint32_t data, io_port_t port);
[all …]
/Zephyr-latest/samples/net/dns_resolve/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
24 static struct k_work_delayable mdns_ipv4_timer;
25 static void do_mdns_ipv4_lookup(struct k_work *work);
28 static struct k_work_delayable mdns_ipv6_timer;
29 static void do_mdns_ipv6_lookup(struct k_work *work);
51 LOG_INF("Cannot resolve address"); in dns_result_cb()
67 if (info->ai_family == AF_INET) { in dns_result_cb()
69 addr = &net_sin(&info->ai_addr)->sin_addr; in dns_result_cb()
70 } else if (info->ai_family == AF_INET6) { in dns_result_cb()
72 addr = &net_sin6(&info->ai_addr)->sin6_addr; in dns_result_cb()
[all …]
/Zephyr-latest/include/zephyr/net/
Dnet_ip.h4 * Generic IPv6 and IPv4 address definitions.
10 * SPDX-License-Identifier: Apache-2.0
50 #define PF_LOCAL 6 /**< Inter-process communication */
51 #define PF_UNIX PF_LOCAL /**< Inter-process communication */
53 /* Address families. */
54 #define AF_UNSPEC PF_UNSPEC /**< Unspecified address family. */
60 #define AF_LOCAL PF_LOCAL /**< Inter-process communication */
61 #define AF_UNIX PF_UNIX /**< Inter-process communication */
65 IPPROTO_IP = 0, /**< IP protocol (pseudo-val for setsockopt() */
94 /** @brief Convert 16-bit value from network to host byte order.
[all …]
/Zephyr-latest/drivers/flash/
Dflash_smartbond.c4 * SPDX-License-Identifier: Apache-2.0
27 static const struct flash_parameters flash_smartbond_parameters = {
32 static bool range_is_valid(off_t offset, uint32_t size) in range_is_valid()
37 static ALWAYS_INLINE void qspic_data_write8(uint8_t data) in qspic_data_write8()
39 volatile uint8_t *reg8 = (uint8_t *)&QSPIC->QSPIC_WRITEDATA_REG; in qspic_data_write8()
44 static ALWAYS_INLINE void qspic_data_write32(uint32_t data) in qspic_data_write32()
46 volatile uint32_t *reg32 = (uint32_t *)&QSPIC->QSPIC_WRITEDATA_REG; in qspic_data_write32()
51 static ALWAYS_INLINE uint8_t qspic_data_read8(void) in qspic_data_read8()
53 volatile uint8_t *reg8 = (uint8_t *)&QSPIC->QSPIC_READDATA_REG; in qspic_data_read8()
58 static __ramfunc uint8_t qspic_read_status(void) in qspic_read_status()
[all …]
Dflash_gecko.c4 * SPDX-License-Identifier: Apache-2.0
28 static const struct flash_parameters flash_gecko_parameters = {
33 static bool write_range_is_valid(off_t offset, uint32_t size);
34 static bool read_range_is_valid(off_t offset, uint32_t size);
35 static int erase_flash_block(off_t offset, size_t size);
36 static void flash_gecko_write_protection(bool enable);
38 static int flash_gecko_read(const struct device *dev, off_t offset, in flash_gecko_read()
43 return -EINVAL; in flash_gecko_read()
55 static int flash_gecko_write(const struct device *dev, off_t offset, in flash_gecko_write()
58 struct flash_gecko_data *const dev_data = dev->data; in flash_gecko_write()
[all …]
/Zephyr-latest/subsys/net/l2/ppp/
Dipcp.c5 * SPDX-License-Identifier: Apache-2.0
21 static enum net_verdict ipcp_handle(struct ppp_context *ctx, in ipcp_handle()
25 return ppp_fsm_input(&ctx->ipcp.fsm, PPP_IPCP, pkt); in ipcp_handle()
28 /* Length is (6): code + id + IPv4 address length. RFC 1332 and also
33 static int ipcp_add_address(struct ppp_context *ctx, struct net_pkt *pkt, in ipcp_add_address()
36 net_pkt_write_u8(pkt, 1 + 1 + sizeof(addr->s_addr)); in ipcp_add_address()
37 return net_pkt_write(pkt, &addr->s_addr, sizeof(addr->s_addr)); in ipcp_add_address()
40 static int ipcp_add_ip_address(struct ppp_context *ctx, struct net_pkt *pkt) in ipcp_add_ip_address()
42 return ipcp_add_address(ctx, pkt, &ctx->ipcp.my_options.address); in ipcp_add_ip_address()
45 static int ipcp_add_dns1(struct ppp_context *ctx, struct net_pkt *pkt) in ipcp_add_dns1()
[all …]
/Zephyr-latest/samples/net/virtual/
DKconfig4 # SPDX-License-Identifier: Apache-2.0
9 string "My IPv6 address for second interface"
14 string "My IPv4 address for second interface"
22 Static netmask to use if not overridden by DHCP. Use empty value to
23 skip setting static value.
26 string "My IPv6 address for third interface"
31 string "My IPv4 address for third interface"
39 Static netmask to use if not overridden by DHCP. Use empty value to
40 skip setting static value.
/Zephyr-latest/tests/net/iface/src/
Dmain.c1 /* main.c - Application main entry point */
7 * SPDX-License-Identifier: Apache-2.0
42 static struct in6_addr my_addr1 = { { { 0x20, 0x01, 0x0d, 0xb8, 1, 0, 0, 0,
44 static ZTEST_BMEM struct in_addr my_ipv4_addr1 = { { { 192, 0, 2, 1 } } };
47 static struct in6_addr my_addr2 = { { { 0x20, 0x01, 0x0d, 0xb8, 2, 0, 0, 0,
51 static struct in6_addr my_addr3 = { { { 0x20, 0x01, 0x0d, 0xb8, 3, 0, 0, 0,
54 /* Extra address is assigned to ll_addr */
55 static struct in6_addr ll_addr = { { { 0xfe, 0x80, 0x43, 0xb8, 0, 0, 0, 0,
59 static struct in_addr inaddr_mcast = { { { 224, 0, 0, 1 } } };
60 static struct in6_addr in6addr_mcast;
[all …]
/Zephyr-latest/dts/bindings/i3c/
Di3c-device.yaml2 # SPDX-License-Identifier: Apache-2.0
8 on-bus: i3c
16 For I3C devices, the 3 fields are static address, first half
18 1. The static address can be assigned to be the target device's
19 dynamic address before Dynamic Address Assignment (DAA)
20 starts. Can be zero if static address is not used, and
21 target address is determined via DAA.
23 ID left-shifted by 1, where the manufacturer ID is
24 the bits 33-47 (zero-based) of the 48-bit Provisioned ID.
26 the part ID (bits 16-31 of the Provisioned ID) left-shifted
[all …]
/Zephyr-latest/drivers/retained_mem/
Dretained_mem_zephyr_reg.c5 * SPDX-License-Identifier: Apache-2.0
27 uint8_t *address; member
31 static inline void zephyr_retained_mem_reg_lock_take(const struct device *dev) in zephyr_retained_mem_reg_lock_take()
34 struct zephyr_retained_mem_reg_data *data = dev->data; in zephyr_retained_mem_reg_lock_take()
36 k_mutex_lock(&data->lock, K_FOREVER); in zephyr_retained_mem_reg_lock_take()
42 static inline void zephyr_retained_mem_reg_lock_release(const struct device *dev) in zephyr_retained_mem_reg_lock_release()
45 struct zephyr_retained_mem_reg_data *data = dev->data; in zephyr_retained_mem_reg_lock_release()
47 k_mutex_unlock(&data->lock); in zephyr_retained_mem_reg_lock_release()
53 static int zephyr_retained_mem_reg_init(const struct device *dev) in zephyr_retained_mem_reg_init()
56 struct zephyr_retained_mem_reg_data *data = dev->data; in zephyr_retained_mem_reg_init()
[all …]
Dretained_mem_zephyr_ram.c4 * SPDX-License-Identifier: Apache-2.0
26 uint8_t *address; member
30 static inline void zephyr_retained_mem_ram_lock_take(const struct device *dev) in zephyr_retained_mem_ram_lock_take()
33 struct zephyr_retained_mem_ram_data *data = dev->data; in zephyr_retained_mem_ram_lock_take()
35 k_mutex_lock(&data->lock, K_FOREVER); in zephyr_retained_mem_ram_lock_take()
41 static inline void zephyr_retained_mem_ram_lock_release(const struct device *dev) in zephyr_retained_mem_ram_lock_release()
44 struct zephyr_retained_mem_ram_data *data = dev->data; in zephyr_retained_mem_ram_lock_release()
46 k_mutex_unlock(&data->lock); in zephyr_retained_mem_ram_lock_release()
52 static int zephyr_retained_mem_ram_init(const struct device *dev) in zephyr_retained_mem_ram_init()
55 struct zephyr_retained_mem_ram_data *data = dev->data; in zephyr_retained_mem_ram_init()
[all …]
/Zephyr-latest/tests/bluetooth/host/id/bt_id_create/src/
Dtest_suite_privacy_enabled.c4 * SPDX-License-Identifier: Apache-2.0
22 static uint8_t testing_irk_value[16] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
25 static void tc_setup(void *f) in tc_setup()
32 static int bt_rand_custom_fake(void *buf, size_t len) in bt_rand_custom_fake()
44 * A valid random static address is passed to bt_id_create() for the address and 'BT_DEV_ENABLE' is
45 * set, the same address is used and copied to bt_dev.id_addr[].
48 * - Valid private random address is used
49 * - Input IRK is NULL
50 * - 'BT_DEV_ENABLE' flag is set in bt_dev.flags
53 * - The same address is used and loaded to bt_dev.id_addr[]
[all …]
/Zephyr-latest/include/zephyr/drivers/i3c/
Daddresses.h4 * SPDX-License-Identifier: Apache-2.0
11 * @brief I3C Address-related Helper Code
12 * @defgroup i3c_addresses I3C Address-related Helper Code
26 /** Broadcast Address on I3C bus. */
35 * Enum to indicate whether an address is reserved, has I2C/I3C device attached,
39 /** Address has not device attached. */
42 /** Address is reserved. */
45 /** Address is associated with an I3C device. */
48 /** Address is associated with an I2C device. */
64 * @brief Initialize the I3C address slots struct.
[all …]
/Zephyr-latest/arch/xtensa/include/
Dxtensa_mmu_priv.h7 * SPDX-License-Identifier: Apache-2.0
14 #include <xtensa/config/core-isa.h>
103 /** Calculate the L2 page table position from a virtual address */
107 /** Calculate the L1 page table position from a virtual address */
115 * writable, may be cached in non-SMP contexts only
141 /** Number of data TLB ways [0-9] */
144 /** Number of instruction TLB ways [0-6] */
147 /** Number of auto-refill ways */
172 * Virtual address where the page table is mapped
177 * Find the PTE entry address of a given vaddr.
[all …]
/Zephyr-latest/kernel/include/
Dmmu.h4 * SPDX-License-Identifier: Apache-2.0
16 #include <zephyr/linker/linker-defs.h>
18 /** Start address of physical memory. */
24 /** End address (exclusive) of physical memory. */
27 /** Start address of virtual memory. */
33 /** End address (exclusive) of virtual memory. */
36 /** Boot-time virtual start address of the kernel image. */
39 /** Boot-time virtual end address of the kernel image. */
42 /** Boot-time virtual address space size of the kernel image. */
43 #define K_MEM_KERNEL_VIRT_SIZE (K_MEM_KERNEL_VIRT_END - K_MEM_KERNEL_VIRT_START)
[all …]
/Zephyr-latest/doc/connectivity/networking/api/
Dnet_config.rst14 semi-automatic way during the system boot, based on user-supplied
20 .. csv-table:: Kconfig options for network configuration library
28 then the user can optionally configure static IP addresses to be set to the
29 first network interface in the system. Typically setting static IP addresses
32 for specific options to set the static IP addresses."
36 the networking to be ready and available. If for example IPv4 address from
53 ":kconfig:option:`CONFIG_NET_CONFIG_MY_IPV6_ADDR`","Local static IPv6 address assigned to
55 ":kconfig:option:`CONFIG_NET_CONFIG_PEER_IPV6_ADDR`","Peer static IPv6 address. This is mainly
56 useful in testing setups where the application can connect to a pre-defined host."
57 ":kconfig:option:`CONFIG_NET_CONFIG_MY_IPV4_ADDR`","Local static IPv4 address assigned to
[all …]
/Zephyr-latest/tests/bluetooth/host/keys/bt_keys_find_irk/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
19 /* This LUT contains different combinations of ID, Address and key type.
22 static const struct id_addr_type testing_id_addr_type_lut[] = {
39 /* Global iterator to iterate over the ID, Address and type LUT */
40 static uint8_t params_it;
43 static struct id_addr_type const *current_params_vector;
46 static struct bt_keys *returned_keys_refs[CONFIG_BT_MAX_PAIRED];
51 /* Check if a Bluetooth LE random address is resolvable private address. */
52 #define BT_ADDR_IS_RPA(a) (((a)->val[5] & 0xc0) == 0x40)
54 static bool check_if_addr_is_rpa(const bt_addr_le_t *addr) in check_if_addr_is_rpa()
[all …]
/Zephyr-latest/tests/drivers/rtc/rtc_api/src/
Dtest_update_callback.c4 * SPDX-License-Identifier: Apache-2.0
12 static const struct device *rtc = DEVICE_DT_GET(DT_ALIAS(rtc));
13 static uint32_t callback_called_counter;
14 static void *callback_test_user_data_address;
15 static uint32_t test_user_data = 0x1234;
16 static struct k_spinlock lock;
18 static void test_rtc_update_callback_handler(const struct device *dev, void *user_data) in test_rtc_update_callback_handler()
33 void *address; in ZTEST() local
37 if (ret == -ENOSYS) { in ZTEST()
46 address = callback_test_user_data_address; in ZTEST()
[all …]
/Zephyr-latest/subsys/net/lib/config/
Dinit.c6 * SPDX-License-Identifier: Apache-2.0
35 static K_SEM_DEFINE(waiter, 0, 1);
36 static K_SEM_DEFINE(counter, 0, UINT_MAX);
37 static atomic_t services_flags;
40 static struct net_mgmt_event_callback mgmt_iface_cb;
43 static inline void services_notify_ready(int flags) in services_notify_ready()
49 static inline bool services_are_ready(int flags) in services_are_ready()
58 static void setup_dhcpv4(struct net_if *iface) in setup_dhcpv4()
65 static void print_dhcpv4_info(struct net_if *iface) in print_dhcpv4_info()
70 ARRAY_FOR_EACH(iface->config.ip.ipv4->unicast, i) { in print_dhcpv4_info()
[all …]
/Zephyr-latest/drivers/ieee802154/
Dieee802154_uart_pipe.c4 * SPDX-License-Identifier: Apache-2.0
32 #define DEST_ADDR_OFFSET 5 /* Destination offset address*/
33 #define DEST_ADDR_TYPE_OFFSET 1 /* Destination address type */
35 #define DEST_ADDR_TYPE_MASK 0x0c /* Mask for destination address type */
37 #define DEST_ADDR_TYPE_SHORT 0x08 /* Short destination address type */
38 #define DEST_ADDR_TYPE_EXTENDED 0x0c /* Extended destination address type */
41 #define SHORT_ADDRESS_SIZE 2 /* Size of Short Mac Address */
42 #define EXTENDED_ADDRESS_SIZE 8 /* Size of Extended Mac Address */
44 /* Broadcast Short Address */
47 static uint8_t dev_pan_id[PAN_ID_SIZE]; /* Device Pan Id */
[all …]
/Zephyr-latest/drivers/ethernet/
Deth_lan865x.c4 * SPDX-License-Identifier: Apache-2.0
24 static int lan865x_mac_rxtx_control(const struct device *dev, bool en) in lan865x_mac_rxtx_control()
26 struct lan865x_data *ctx = dev->data; in lan865x_mac_rxtx_control()
33 return oa_tc6_reg_write(ctx->tc6, LAN865x_MAC_NCR, ctl); in lan865x_mac_rxtx_control()
36 static void lan865x_iface_init(struct net_if *iface) in lan865x_iface_init()
39 struct lan865x_data *ctx = dev->data; in lan865x_iface_init()
41 net_if_set_link_addr(iface, ctx->mac_address, sizeof(ctx->mac_address), in lan865x_iface_init()
44 if (ctx->iface == NULL) { in lan865x_iface_init()
45 ctx->iface = iface; in lan865x_iface_init()
51 ctx->iface_initialized = true; in lan865x_iface_init()
[all …]
/Zephyr-latest/subsys/net/ip/
Dpmtu.h8 * SPDX-License-Identifier: Apache-2.0
21 /** Destination address */
25 /** MTU for this destination address */
31 /** Get PMTU entry for the given destination address
33 * @param dst Destination address
40 static inline struct net_pmtu_entry *net_pmtu_get_entry(const struct sockaddr *dst) in net_pmtu_get_entry()
48 /** Get MTU value for the given destination address
50 * @param dst Destination address
57 static inline int net_pmtu_get_mtu(const struct sockaddr *dst) in net_pmtu_get_mtu()
61 return -ENOTSUP; in net_pmtu_get_mtu()
[all …]
/Zephyr-latest/tests/bluetooth/host/id/bt_lookup_id_addr/src/
Dmain.c4 * SPDX-License-Identifier: Apache-2.0
21 static struct bt_keys resolving_key;
23 static void fff_reset_rule_before(const struct ztest_unit_test *test, void *fixture) in fff_reset_rule_before()
36 * Test returning the same address pointer passed when 'CONFIG_BT_SMP' isn't enabled
39 * - A valid ID (< CONFIG_BT_ID_MAX) is used
40 * - A valid address reference is used
41 * - 'CONFIG_BT_SMP' isn't enabled
44 * - bt_lookup_id_addr() returns the same address pointer used as an argument
58 zassert_true(returned_addr == addr, "Incorrect address was returned"); in ZTEST()
62 * Test returning the same address pointer passed when 'CONFIG_BT_SMP' is enabled, but the
[all …]
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_mcp.c1 /* btp_mcp.c - Bluetooth MCP Tester */
6 * SPDX-License-Identifier: Apache-2.0
35 static struct media_player *mcs_media_player;
36 static uint64_t current_track_obj_id;
37 static uint64_t next_track_obj_id;
38 static uint8_t media_player_state;
39 static uint64_t current_id;
40 static uint64_t parent_id;
85 static struct net_buf_simple *rx_ev_buf = NET_BUF_SIMPLE(SEARCH_LEN_MAX +
89 static void btp_send_mcp_found_ev(struct bt_conn *conn, uint8_t status, in btp_send_mcp_found_ev()
[all …]

12345678910>>...43