Home
last modified time | relevance | path

Searched refs:port_id (Results 1 – 25 of 29) sorted by relevance

12

/Zephyr-latest/tests/net/ethernet_mgmt/src/
Dmain.c167 int queue_id, port_id; in eth_fake_set_config() local
241 port_id = config->qbv_param.port_id; in eth_fake_set_config()
244 if (port_id < 0 || port_id >= ports_num) { in eth_fake_set_config()
250 ctx->ports[port_id].qbv_enabled = in eth_fake_set_config()
254 memcpy(&ctx->ports[port_id].cycle_time, in eth_fake_set_config()
256 sizeof(ctx->ports[port_id].cycle_time)); in eth_fake_set_config()
257 ctx->ports[port_id].extension_time = in eth_fake_set_config()
259 memcpy(&ctx->ports[port_id].base_time, in eth_fake_set_config()
261 sizeof(ctx->ports[port_id].base_time)); in eth_fake_set_config()
264 ctx->ports[port_id].gate_control.gate_status[0] = in eth_fake_set_config()
[all …]
/Zephyr-latest/drivers/pinctrl/
Dpinctrl_xmc4xxx.c19 int port_id, pin, alt_fun, hwctrl; in pinctrl_configure_pin() local
23 port_id = XMC4XXX_PINMUX_GET_PORT(pinmux); in pinctrl_configure_pin()
24 if (port_id >= DT_INST_REG_SIZE(0) / GPIO_REG_SIZE) { in pinctrl_configure_pin()
66 gpio_port = (XMC_GPIO_PORT_t *)((uint32_t)DT_INST_REG_ADDR(0) + port_id * GPIO_REG_SIZE); in pinctrl_configure_pin()
/Zephyr-latest/drivers/interrupt_controller/
Dintc_xmc4xxx.c38 uint8_t port_id; member
55 int intc_xmc4xxx_gpio_enable_interrupt(int port_id, int pin, enum gpio_int_mode mode, in intc_xmc4xxx_gpio_enable_interrupt() argument
75 if (port_map != port_id || pin_map != pin) { in intc_xmc4xxx_gpio_enable_interrupt()
101 cb->port_id = port_id; in intc_xmc4xxx_gpio_enable_interrupt()
144 int intc_xmc4xxx_gpio_disable_interrupt(int port_id, int pin) in intc_xmc4xxx_gpio_disable_interrupt() argument
156 if (cb->fn && cb->port_id == port_id && cb->pin == pin) { in intc_xmc4xxx_gpio_disable_interrupt()
/Zephyr-latest/include/zephyr/drivers/interrupt_controller/
Dintc_xmc4xxx.h28 int intc_xmc4xxx_gpio_enable_interrupt(int port_id, int pin, enum gpio_int_mode mode,
41 int intc_xmc4xxx_gpio_disable_interrupt(int port_id, int pin);
/Zephyr-latest/subsys/net/l2/ethernet/gptp/
Dgptp_messages.c324 hdr->port_id.port_number = htons(port_ds->port_id.port_number); in gptp_prepare_pdelay_req()
333 memcpy(hdr->port_id.clk_id, in gptp_prepare_pdelay_req()
334 port_ds->port_id.clk_id, GPTP_CLOCK_ID_LEN); in gptp_prepare_pdelay_req()
382 hdr->port_id.port_number = htons(port_ds->port_id.port_number); in gptp_prepare_pdelay_resp()
391 memcpy(hdr->port_id.clk_id, port_ds->port_id.clk_id, in gptp_prepare_pdelay_resp()
400 &query->port_id, sizeof(struct gptp_port_identity)); in gptp_prepare_pdelay_resp()
441 hdr->port_id.port_number = htons(port_ds->port_id.port_number); in gptp_prepare_pdelay_follow_up()
453 memcpy(hdr->port_id.clk_id, port_ds->port_id.clk_id, in gptp_prepare_pdelay_follow_up()
512 memcpy(hdr->port_id.clk_id, GPTP_DEFAULT_DS()->clk_id, in gptp_prepare_announce()
515 hdr->port_id.port_number = htons(port); in gptp_prepare_announce()
[all …]
Dgptp_data_set.h339 struct gptp_port_identity port_id; member
401 struct gptp_port_identity port_id; member
Dgptp_md.c23 memcpy(&hdr->port_id.clk_id, &sync_send->src_port_id.clk_id, in gptp_md_sync_prepare()
26 hdr->port_id.port_number = htons(port_number); in gptp_md_sync_prepare()
44 memcpy(&hdr->port_id.clk_id, &sync_send->src_port_id.clk_id, in gptp_md_follow_up_prepare()
47 hdr->port_id.port_number = htons(port_number); in gptp_md_follow_up_prepare()
142 memcpy(&sync_rcv->src_port_id, &sync_hdr->port_id, in gptp_set_md_sync_receive()
411 hdr->port_id.clk_id, in gptp_md_pdelay_compute()
Dgptp.c405 memcpy(parent_ds->port_id.clk_id, default_ds->clk_id, in gptp_init_clock_ds()
408 parent_ds->port_id.port_number = 0U; in gptp_init_clock_ds()
456 memcpy(port_ds->port_id.clk_id, default_ds->clk_id, GPTP_CLOCK_ID_LEN); in gptp_init_port_ds()
457 port_ds->port_id.port_number = port; in gptp_init_port_ds()
/Zephyr-latest/subsys/net/lib/shell/
Dgptp.c296 NET_ASSERT(port == port_ds->port_id.port_number, in gptp_print_port_info()
298 port_ds->port_id.port_number); in gptp_print_port_info()
300 PR("Port id : %d (%s)\n", port_ds->port_id.port_number, in gptp_print_port_info()
301 selected_role_str(port_ds->port_id.port_number)); in gptp_print_port_info()
304 for (i = 0; i < sizeof(port_ds->port_id.clk_id); i++) { in gptp_print_port_info()
305 PR("%02x", port_ds->port_id.clk_id[i]); in gptp_print_port_info()
307 if (i != (sizeof(port_ds->port_id.clk_id) - 1)) { in gptp_print_port_info()
/Zephyr-latest/subsys/net/lib/ptp/
Dmsg.c66 static void msg_port_id_post_recv(struct ptp_port_id *port_id) in msg_port_id_post_recv() argument
68 port_id->port_number = ntohs(port_id->port_number); in msg_port_id_post_recv()
71 static void msg_port_id_pre_send(struct ptp_port_id *port_id) in msg_port_id_pre_send() argument
73 port_id->port_number = htons(port_id->port_number); in msg_port_id_pre_send()
487 return ptp_port_id_eq(&pds->port_id, &msg->header.src_port_id); in ptp_msg_current_parent()
Dclock.h73 struct ptp_port_id port_id; member
Dds.h87 struct ptp_port_id port_id; member
Dtlv.c218 parent_ds->port_id.port_number = ntohs(parent_ds->port_id.port_number); in tlv_mgmt_post_recv()
298 parent_ds->port_id.port_number = htons(parent_ds->port_id.port_number); in tlv_mgmt_pre_send()
Dtlv.h273 struct ptp_port_id port_id; member
Dclock.c189 memcpy(&ptp_clk.parent_ds.port_id.clk_id, in clock_update_grandmaster()
195 ptp_clk.parent_ds.port_id.port_number = 0; in clock_update_grandmaster()
214 memcpy(&ptp_clk.parent_ds.port_id, in clock_update_time_receiver()
Dport.c46 const char *port_id_str(struct ptp_port_id *port_id) in port_id_str() argument
48 uint8_t *pid = port_id->clk_id.id; in port_id_str()
59 port_id->port_number); in port_id_str()
781 memcpy(&tlv_pds->port_id, &pds->port_id, sizeof(tlv_pds->port_id)); in port_management_resp_tlv_fill()
/Zephyr-latest/drivers/gpio/
Dgpio_xmc4xxx.c125 int port_id = PORT_TO_PORT_ID(config->port); in gpio_xmc4xxx_pin_interrupt_configure() local
128 return intc_xmc4xxx_gpio_enable_interrupt(port_id, pin, mode, trig, in gpio_xmc4xxx_pin_interrupt_configure()
131 return intc_xmc4xxx_gpio_disable_interrupt(port_id, pin); in gpio_xmc4xxx_pin_interrupt_configure()
Dgpio_nrfx.c442 static const struct device *get_dev(uint32_t port_id) in get_dev() argument
447 else if (DT_INST_PROP(i, port) == port_id) { \ in get_dev()
464 uint32_t port_id = nrf_gpio_pin_port_number_extract(&pin); in nrfx_gpio_handler() local
465 const struct device *port = get_dev(port_id); in nrfx_gpio_handler()
/Zephyr-latest/drivers/gnss/gnss_u_blox_protocol/
Dgnss_u_blox_protocol.c101 payload->port_id = UBX_PORT_NUMBER_UART; in ubx_cfg_prt_poll_payload_default()
106 payload->port_id = UBX_PORT_NUMBER_UART; in ubx_cfg_prt_set_payload_default()
Dgnss_u_blox_protocol.h71 uint8_t port_id; member
108 uint8_t port_id; member
/Zephyr-latest/samples/net/gptp/src/
Dgptp.c49 if (port != port_ds->port_id.port_number) { in get_current_status()
/Zephyr-latest/subsys/net/l2/ethernet/
Dethernet_mgmt.c349 config.qbv_param.port_id = params->qbv_param.port_id; in ethernet_get_config()
396 config.qbu_param.port_id = params->qbu_param.port_id; in ethernet_get_config()
/Zephyr-latest/include/zephyr/net/
Dlldp.h171 struct net_lldp_port_tlv port_id; /**< Mandatory Port TLV */ member
Dgptp.h179 struct gptp_port_identity port_id; member
/Zephyr-latest/samples/net/sockets/txtime/src/
Dmain.c441 params.qbv_param.port_id = i; in set_qbv_params()
469 params.qbv_param.port_id = i; in set_qbv_params()
483 params.qbv_param.port_id = i; in set_qbv_params()

12