Lines Matching refs:sw

905  * @sw:		Cached memory to hold hardware descriptor values for
912 struct ksz_sw_desc sw;
1523 desc->sw.ctrl.tx.hw_owned = 1;
1524 if (desc->sw.buf_size != desc->sw.buf.data) {
1525 desc->sw.buf_size = desc->sw.buf.data;
1526 desc->phw->buf.data = cpu_to_le32(desc->sw.buf.data);
1528 desc->phw->ctrl.data = cpu_to_le32(desc->sw.ctrl.data);
1537 (*desc)->sw.buf.data &= ~KS_DESC_RX_MASK;
1547 desc->sw.buf.rx.buf_size = len;
1557 (*desc)->sw.buf.data &= ~KS_DESC_TX_MASK;
1567 desc->sw.buf.tx.buf_size = len;
2108 struct ksz_switch *sw = hw->ksz_switch;
2112 sw->port_cfg[port].rx_rate[prio] =
2113 sw->port_cfg[port].tx_rate[prio] = 0;
2287 struct ksz_switch *sw = hw->ksz_switch;
2293 sw->p_802_1p[0] = 0;
2294 sw->p_802_1p[1] = 0;
2295 sw->p_802_1p[2] = 1;
2296 sw->p_802_1p[3] = 1;
2297 sw->p_802_1p[4] = 2;
2298 sw->p_802_1p[5] = 2;
2299 sw->p_802_1p[6] = 3;
2300 sw->p_802_1p[7] = 3;
2307 sw->diffserv[tos] = 0;
2316 sw->port_cfg[port].port_prio = 0;
2317 sw_cfg_port_based(hw, port, sw->port_cfg[port].port_prio);
2349 struct ksz_switch *sw = hw->ksz_switch;
2354 &sw->vlan_table[entry].vid,
2355 &sw->vlan_table[entry].fid,
2356 &sw->vlan_table[entry].member);
2360 port_get_def_vid(hw, port, &sw->port_cfg[port].vid);
2361 sw->port_cfg[port].member = PORT_MASK;
3470 previous->sw.buf.rx.end_of_ring = 1;
3471 previous->phw->buf.data = cpu_to_le32(previous->sw.buf.data);
3607 hw->tx_desc_info.cur->sw.buf.tx.first_seg = 1;
3633 cur->sw.buf.tx.last_seg = 1;
3637 cur->sw.buf.tx.intr = 1;
3643 cur->sw.buf.tx.dest_port = hw->dst_ports;
4337 (desc)->sw.buf.tx.csum_gen_tcp = 1;
4338 (desc)->sw.buf.tx.csum_gen_udp = 1;
4946 struct ksz_switch *sw = hw->ksz_switch;
4949 if (!sw->member) {
4954 if (STP_STATE_FORWARDING == sw->port_cfg[port].stp_state)
4955 member = HOST_MASK | sw->member;
4958 if (member != sw->port_cfg[port].member)
5319 struct ksz_switch *sw = hw->ksz_switch;
5324 if (sw->member & port) {
5325 sw->member &= ~port;
6519 struct ksz_switch *sw = hw->ksz_switch;
6524 sw->other_addr[5] = (u8) data[0];
6525 sw->other_addr[4] = (u8)(data[0] >> 8);
6526 sw->other_addr[3] = (u8) data[1];
6527 sw->other_addr[2] = (u8)(data[1] >> 8);
6528 sw->other_addr[1] = (u8) data[2];
6529 sw->other_addr[0] = (u8)(data[2] >> 8);
6554 struct ksz_switch *sw = NULL;
6634 sw = hw->ksz_switch;
6663 memcpy(sw->other_addr, hw->override_addr, ETH_ALEN);
6717 ether_addr_copy(addr, sw->other_addr);
6718 if (ether_addr_equal(sw->other_addr, hw->override_addr))