Lines Matching refs:tc6

33 	return oa_tc6_reg_write(ctx->tc6, LAN865x_MAC_NCR, ctl);  in lan865x_mac_rxtx_control()
70 return oa_tc6_reg_write(ctx->tc6, LAN865x_MAC_NCFGR, in lan865x_set_config()
131 ctx->tc6->protected = false; in lan865x_gpio_reset()
149 ret = oa_tc6_reg_read(ctx->tc6, LAN865x_DEVID, &val); in lan865x_check_spi()
174 oa_tc6_reg_write(ctx->tc6, 0x000400D8, addr); in lan865x_read_indirect_reg()
175 oa_tc6_reg_write(ctx->tc6, 0x000400DA, 0x02); in lan865x_read_indirect_reg()
177 oa_tc6_reg_read(ctx->tc6, 0x000400D9, &val); in lan865x_read_indirect_reg()
236 oa_tc6_set_protected_ctrl(ctx->tc6, true); in lan865x_init_chip()
281 oa_tc6_reg_write(ctx->tc6, MMS_REG(lan865x_conf[i].mms, in lan865x_init_chip()
297 oa_tc6_reg_write(ctx->tc6, 0x00040087, 0x0083u); /* COL_DET_CTRL0 */ in lan865x_config_plca()
305 oa_tc6_reg_write(ctx->tc6, 0x0004CA02, val); /* PLCA_CONTROL_1_REGISTER */ in lan865x_config_plca()
309 oa_tc6_reg_write(ctx->tc6, 0x0004CA05, val); /* PLCA_BURST_MODE_REGISTER */ in lan865x_config_plca()
312 oa_tc6_reg_write(ctx->tc6, 0x0004CA01, BIT(15)); /* PLCA_CONTROL_0_REGISTER */ in lan865x_config_plca()
325 oa_tc6_reg_write(ctx->tc6, LAN865x_MAC_SAB2, val); in lan865x_write_macaddress()
329 oa_tc6_reg_write(ctx->tc6, LAN865x_MAC_SAT2, val); in lan865x_write_macaddress()
336 oa_tc6_reg_write(ctx->tc6, LAN865x_MAC_SAB1, val); in lan865x_write_macaddress()
347 ret = oa_tc6_reg_write(ctx->tc6, LAN865x_MAC_HRT, mac_h_hash); in lan865x_set_specific_multicast_addr()
352 ret = oa_tc6_reg_write(ctx->tc6, LAN865x_MAC_HRB, mac_l_hash); in lan865x_set_specific_multicast_addr()
357 return oa_tc6_reg_write(ctx->tc6, LAN865x_MAC_NCFGR, in lan865x_set_specific_multicast_addr()
403 struct oa_tc6 *tc6 = ctx->tc6; in lan865x_read_chunks() local
414 ret = oa_tc6_read_chunks(tc6, pkt); in lan865x_read_chunks()
434 struct oa_tc6 *tc6 = ctx->tc6; in lan865x_int_thread() local
441 oa_tc6_reg_read(tc6, OA_STATUS0, &sts); in lan865x_int_thread()
443 oa_tc6_reg_write(tc6, OA_STATUS0, sts); in lan865x_int_thread()
445 oa_tc6_reg_read(tc6, OA_CONFIG0, &val); in lan865x_int_thread()
447 oa_tc6_reg_write(tc6, OA_CONFIG0, val); in lan865x_int_thread()
455 oa_tc6_read_status(tc6, &ftr); in lan865x_int_thread()
469 } while (tc6->rca > 0); in lan865x_int_thread()
471 ret = oa_tc6_check_status(tc6); in lan865x_int_thread()
554 struct oa_tc6 *tc6 = ctx->tc6; in lan865x_port_send() local
558 ret = oa_tc6_send_chunks(tc6, pkt); in lan865x_port_send()
561 if (tc6->rca > 0) { in lan865x_port_send()
610 .tc6 = &oa_tc6_##inst \