Lines Matching refs:alu

345 				   struct alu_struct *alu)  in ksz8795_r_sta_mac_table()  argument
354 alu->mac[5] = (u8)data_lo; in ksz8795_r_sta_mac_table()
355 alu->mac[4] = (u8)(data_lo >> 8); in ksz8795_r_sta_mac_table()
356 alu->mac[3] = (u8)(data_lo >> 16); in ksz8795_r_sta_mac_table()
357 alu->mac[2] = (u8)(data_lo >> 24); in ksz8795_r_sta_mac_table()
358 alu->mac[1] = (u8)data_hi; in ksz8795_r_sta_mac_table()
359 alu->mac[0] = (u8)(data_hi >> 8); in ksz8795_r_sta_mac_table()
360 alu->port_forward = (data_hi & STATIC_MAC_TABLE_FWD_PORTS) >> in ksz8795_r_sta_mac_table()
362 alu->is_override = in ksz8795_r_sta_mac_table()
365 alu->is_use_fid = (data_hi & STATIC_MAC_TABLE_USE_FID) ? 1 : 0; in ksz8795_r_sta_mac_table()
366 alu->fid = (data_hi & STATIC_MAC_TABLE_FID) >> in ksz8795_r_sta_mac_table()
374 struct alu_struct *alu) in ksz8795_w_sta_mac_table() argument
379 data_lo = ((u32)alu->mac[2] << 24) | in ksz8795_w_sta_mac_table()
380 ((u32)alu->mac[3] << 16) | in ksz8795_w_sta_mac_table()
381 ((u32)alu->mac[4] << 8) | alu->mac[5]; in ksz8795_w_sta_mac_table()
382 data_hi = ((u32)alu->mac[0] << 8) | alu->mac[1]; in ksz8795_w_sta_mac_table()
383 data_hi |= (u32)alu->port_forward << STATIC_MAC_FWD_PORTS_S; in ksz8795_w_sta_mac_table()
385 if (alu->is_override) in ksz8795_w_sta_mac_table()
387 if (alu->is_use_fid) { in ksz8795_w_sta_mac_table()
389 data_hi |= (u32)alu->fid << STATIC_MAC_FID_S; in ksz8795_w_sta_mac_table()
391 if (alu->is_static) in ksz8795_w_sta_mac_table()
1102 struct alu_struct alu; in ksz8795_setup() local
1153 memset(&alu, 0, sizeof(alu)); in ksz8795_setup()
1154 ether_addr_copy(alu.mac, eth_stp_addr); in ksz8795_setup()
1155 alu.is_static = true; in ksz8795_setup()
1156 alu.is_override = true; in ksz8795_setup()
1157 alu.port_forward = dev->host_mask; in ksz8795_setup()
1159 ksz8795_w_sta_mac_table(dev, 0, &alu); in ksz8795_setup()