Lines Matching refs:adin
806 const struct device *adin = cfg->adin; in adin2111_port_send() local
807 struct adin2111_data *ctx = cfg->adin->data; in adin2111_port_send()
815 eth_adin2111_lock(adin, K_FOREVER); in adin2111_port_send()
824 ret = eth_adin2111_reg_read(adin, ADIN2111_BUFSTS, &val); in adin2111_port_send()
831 eth_adin2111_unlock(adin); in adin2111_port_send()
834 eth_adin2111_lock(adin, K_FOREVER); in adin2111_port_send()
837 ret = eth_adin2111_send_oa_frame(cfg->adin, pkt, htons(cfg->port_idx)); in adin2111_port_send()
843 ret = adin2111_read_tx_space(adin, &tx_space); in adin2111_port_send()
907 ret = eth_adin2111_reg_write(adin, ADIN2111_TX_FSIZE, padded_size); in adin2111_port_send()
921 ret = spi_write_dt(&((const struct adin2111_config *) adin->config)->spi, in adin2111_port_send()
934 eth_adin2111_unlock(adin); in adin2111_port_send()
1153 const struct device *adin = cfg->adin; in adin2111_port_iface_init() local
1154 struct adin2111_data *ctx = adin->data; in adin2111_port_iface_init()
1157 if (!device_is_ready(adin)) { in adin2111_port_iface_init()
1159 cfg->adin->name, cfg->port_idx); in adin2111_port_iface_init()
1172 ret = adin2111_filter_unicast(adin, data->mac_addr, cfg->port_idx); in adin2111_port_iface_init()
1188 ret = adin2111_filter_multicast(adin); in adin2111_port_iface_init()
1193 ret = adin2111_filter_broadcast(adin); in adin2111_port_iface_init()
1200 ret = adin2111_config_sync(adin); in adin2111_port_iface_init()
1210 (void *)adin, NULL, NULL, in adin2111_port_iface_init()
1234 const struct device *adin = cfg->adin; in adin2111_port_set_config() local
1237 (void)eth_adin2111_lock(adin, K_FOREVER); in adin2111_port_set_config()
1240 ret = adin2111_filter_unicast(adin, (uint8_t *)&config->mac_address.addr[0], in adin2111_port_set_config()
1258 ret = eth_adin2111_set_mac_filter(adin, mac, cfg->port_idx); in adin2111_port_set_config()
1260 ret = eth_adin2111_clear_mac_filter(adin, mac, cfg->port_idx); in adin2111_port_set_config()
1267 ret = eth_adin2111_set_promiscuous(adin, cfg->port_idx, config->promisc_mode); in adin2111_port_set_config()
1272 (void)eth_adin2111_unlock(adin); in adin2111_port_set_config()
1534 .adin = DEVICE_DT_INST_GET(parent_n), \