Home
last modified time | relevance | path

Searched refs:port_idx (Results 1 – 12 of 12) sorted by relevance

/Zephyr-latest/drivers/pinctrl/
Dpinctrl_sam.c56 uint8_t port_idx, port_func; in pinctrl_configure_pin() local
58 port_idx = SAM_PINMUX_PORT_GET(pin); in pinctrl_configure_pin()
59 __ASSERT_NO_MSG(port_idx < ARRAY_SIZE(sam_port_addrs)); in pinctrl_configure_pin()
63 soc_pin.regs = (Gpio *) sam_port_addrs[port_idx]; in pinctrl_configure_pin()
65 soc_pin.regs = (Pio *) sam_port_addrs[port_idx]; in pinctrl_configure_pin()
67 soc_pin.periph_id = sam_port_clocks[port_idx].peripheral_id; in pinctrl_configure_pin()
Dpinctrl_sam0.c28 uint8_t port_idx, port_func; in pinctrl_configure_pin() local
30 port_idx = SAM_PINMUX_PORT_GET(pin); in pinctrl_configure_pin()
31 __ASSERT_NO_MSG(port_idx < ARRAY_SIZE(sam_port_addrs)); in pinctrl_configure_pin()
34 soc_pin.regs = (PortGroup *) sam_port_addrs[port_idx]; in pinctrl_configure_pin()
Dpinctrl_gd32_af.c79 uint8_t port_idx; in pinctrl_configure_pin() local
83 port_idx = GD32_PORT_GET(pin); in pinctrl_configure_pin()
84 __ASSERT_NO_MSG(port_idx < ARRAY_SIZE(gd32_port_addrs)); in pinctrl_configure_pin()
86 clkid = gd32_port_clkids[port_idx]; in pinctrl_configure_pin()
87 port = gd32_port_addrs[port_idx]; in pinctrl_configure_pin()
Dpinctrl_gd32_afio.c120 uint8_t port_idx, mode, pin_num; in configure_pin() local
125 port_idx = GD32_PORT_GET(pin); in configure_pin()
126 __ASSERT_NO_MSG(port_idx < ARRAY_SIZE(gd32_port_addrs)); in configure_pin()
128 clkid = gd32_port_clkids[port_idx]; in configure_pin()
129 port = gd32_port_addrs[port_idx]; in configure_pin()
Dpinctrl_numicro.c54 uint8_t port_idx, pin_idx; in gpio_configure() local
58 port_idx = NUMICRO_PORT(pin->pinmux); in gpio_configure()
59 if (port_idx >= ARRAY_SIZE(gpio_port_addrs)) { in gpio_configure()
65 port = (GPIO_T *)gpio_port_addrs[port_idx]; in gpio_configure()
Dpinctrl_numaker.c23 static void gpio_configure(const pinctrl_soc_pin_t *pin, uint8_t port_idx, uint8_t pin_idx) in gpio_configure() argument
27 port = (GPIO_T *)(GPA_BASE + port_idx * GPIO_SIZE); in gpio_configure()
/Zephyr-latest/drivers/ethernet/
Deth_adin2111.c109 struct net_if *eth_adin2111_get_iface(const struct device *dev, const uint16_t port_idx) in eth_adin2111_get_iface() argument
113 return ((struct adin2111_port_data *)ctx->port[port_idx]->data)->iface; in eth_adin2111_get_iface()
250 int eth_adin2111_oa_data_read(const struct device *dev, const uint16_t port_idx) in eth_adin2111_oa_data_read() argument
253 struct net_if *iface = ((struct adin2111_port_data *)ctx->port[port_idx]->data)->iface; in eth_adin2111_oa_data_read()
333 port_idx, ret); in eth_adin2111_oa_data_read()
348 const uint16_t port_idx) in eth_adin2111_send_oa_frame() argument
377 hdr |= (!!port_idx << ADIN2111_OA_DATA_HDR_VS); in eth_adin2111_send_oa_frame()
530 static int adin2111_read_fifo(const struct device *dev, const uint16_t port_idx) in adin2111_read_fifo() argument
536 uint16_t fsize_reg = ((port_idx == 0U) ? ADIN2111_P1_RX_FSIZE : ADIN2111_P2_RX_FSIZE); in adin2111_read_fifo()
537 uint16_t rx_reg = ((port_idx == 0U) ? ADIN2111_P1_RX : ADIN2111_P2_RX); in adin2111_read_fifo()
[all …]
Deth_nxp_s32_netc_psi.c34 static void nxp_s32_eth_configure_port(uint8_t port_idx, enum phy_link_speed speed) in nxp_s32_eth_configure_port() argument
40 (void)Netc_EthSwt_Ip_SetPortMode(NETC_SWITCH_IDX, port_idx, false); in nxp_s32_eth_configure_port()
43 status = Netc_EthSwt_Ip_SetPortSpeed(NETC_SWITCH_IDX, port_idx, baudrate); in nxp_s32_eth_configure_port()
45 LOG_ERR("Failed to set port %d speed: %d", port_idx, status); in nxp_s32_eth_configure_port()
50 status = Netc_EthSwt_Ip_SetPortMacLayerDuplexMode(NETC_SWITCH_IDX, port_idx, duplex); in nxp_s32_eth_configure_port()
52 LOG_ERR("Failed to set port %d duplex mode: %d", port_idx, status); in nxp_s32_eth_configure_port()
56 (void)Netc_EthSwt_Ip_SetPortMode(NETC_SWITCH_IDX, port_idx, true); in nxp_s32_eth_configure_port()
71 nxp_s32_eth_configure_port(cfg->port_idx, state->speed); in phy_link_state_changed()
87 static int nxp_s32_eth_configure_cgm(uint8_t port_idx) in nxp_s32_eth_configure_cgm() argument
91 if (port_idx == 0) { in nxp_s32_eth_configure_cgm()
[all …]
Ddsa_ksz8xxx.c840 uint8_t port_idx, *dbuf; in dsa_ksz8xxx_xmit_pkt() local
883 port_idx = DSA_KSZ8795_TAIL_TAG_LOOKUP; in dsa_ksz8xxx_xmit_pkt()
885 port_idx = (1 << (ctx->dsa_port_idx)); in dsa_ksz8xxx_xmit_pkt()
889 port_idx, iface, len, lladst.addr[0], lladst.addr[1], in dsa_ksz8xxx_xmit_pkt()
893 dbuf[pad] = port_idx; in dsa_ksz8xxx_xmit_pkt()
Deth_adin2111_priv.h262 const uint16_t port_idx; member
Deth_nxp_s32_netc_priv.h112 uint8_t port_idx; member
/Zephyr-latest/include/zephyr/drivers/ethernet/
Deth_adin2111.h141 struct net_if *eth_adin2111_get_iface(const struct device *dev, const uint16_t port_idx);