Lines Matching refs:sw
988 struct ksz_sw_desc sw; member
1606 desc->sw.ctrl.tx.hw_owned = 1; in release_desc()
1607 if (desc->sw.buf_size != desc->sw.buf.data) { in release_desc()
1608 desc->sw.buf_size = desc->sw.buf.data; in release_desc()
1609 desc->phw->buf.data = cpu_to_le32(desc->sw.buf.data); in release_desc()
1611 desc->phw->ctrl.data = cpu_to_le32(desc->sw.ctrl.data); in release_desc()
1620 (*desc)->sw.buf.data &= ~KS_DESC_RX_MASK; in get_rx_pkt()
1630 desc->sw.buf.rx.buf_size = len; in set_rx_len()
1640 (*desc)->sw.buf.data &= ~KS_DESC_TX_MASK; in get_tx_pkt()
1650 desc->sw.buf.tx.buf_size = len; in set_tx_len()
2267 struct ksz_switch *sw = hw->ksz_switch; in sw_init_prio_rate() local
2271 sw->port_cfg[port].rx_rate[prio] = in sw_init_prio_rate()
2272 sw->port_cfg[port].tx_rate[prio] = 0; in sw_init_prio_rate()
2588 struct ksz_switch *sw = hw->ksz_switch; in sw_init_prio() local
2594 sw->p_802_1p[0] = 0; in sw_init_prio()
2595 sw->p_802_1p[1] = 0; in sw_init_prio()
2596 sw->p_802_1p[2] = 1; in sw_init_prio()
2597 sw->p_802_1p[3] = 1; in sw_init_prio()
2598 sw->p_802_1p[4] = 2; in sw_init_prio()
2599 sw->p_802_1p[5] = 2; in sw_init_prio()
2600 sw->p_802_1p[6] = 3; in sw_init_prio()
2601 sw->p_802_1p[7] = 3; in sw_init_prio()
2608 sw->diffserv[tos] = 0; in sw_init_prio()
2617 sw->port_cfg[port].port_prio = 0; in sw_init_prio()
2618 sw_cfg_port_based(hw, port, sw->port_cfg[port].port_prio); in sw_init_prio()
2650 struct ksz_switch *sw = hw->ksz_switch; in sw_init_vlan() local
2655 &sw->vlan_table[entry].vid, in sw_init_vlan()
2656 &sw->vlan_table[entry].fid, in sw_init_vlan()
2657 &sw->vlan_table[entry].member); in sw_init_vlan()
2661 port_get_def_vid(hw, port, &sw->port_cfg[port].vid); in sw_init_vlan()
2662 sw->port_cfg[port].member = PORT_MASK; in sw_init_vlan()
3852 previous->sw.buf.rx.end_of_ring = 1; in hw_init_desc()
3853 previous->phw->buf.data = cpu_to_le32(previous->sw.buf.data); in hw_init_desc()
3989 hw->tx_desc_info.cur->sw.buf.tx.first_seg = 1; in hw_alloc_pkt()
4015 cur->sw.buf.tx.last_seg = 1; in hw_send_pkt()
4019 cur->sw.buf.tx.intr = 1; in hw_send_pkt()
4025 cur->sw.buf.tx.dest_port = hw->dst_ports; in hw_send_pkt()
4722 (desc)->sw.buf.tx.csum_gen_tcp = 1; in send_packet()
4723 (desc)->sw.buf.tx.csum_gen_udp = 1; in send_packet()
5334 struct ksz_switch *sw = hw->ksz_switch; in bridge_change() local
5337 if (!sw->member) { in bridge_change()
5342 if (STP_STATE_FORWARDING == sw->port_cfg[port].stp_state) in bridge_change()
5343 member = HOST_MASK | sw->member; in bridge_change()
5346 if (member != sw->port_cfg[port].member) in bridge_change()
5710 struct ksz_switch *sw = hw->ksz_switch; in dev_set_promiscuous() local
5715 if (sw->member & port) { in dev_set_promiscuous()
5716 sw->member &= ~port; in dev_set_promiscuous()
6898 struct ksz_switch *sw = hw->ksz_switch; in read_other_addr() local
6903 sw->other_addr[5] = (u8) data[0]; in read_other_addr()
6904 sw->other_addr[4] = (u8)(data[0] >> 8); in read_other_addr()
6905 sw->other_addr[3] = (u8) data[1]; in read_other_addr()
6906 sw->other_addr[2] = (u8)(data[1] >> 8); in read_other_addr()
6907 sw->other_addr[1] = (u8) data[2]; in read_other_addr()
6908 sw->other_addr[0] = (u8)(data[2] >> 8); in read_other_addr()
6933 struct ksz_switch *sw = NULL; in pcidev_init() local
7013 sw = hw->ksz_switch; in pcidev_init()
7042 memcpy(sw->other_addr, hw->override_addr, ETH_ALEN); in pcidev_init()
7095 memcpy(dev->dev_addr, sw->other_addr, ETH_ALEN); in pcidev_init()
7096 if (ether_addr_equal(sw->other_addr, hw->override_addr)) in pcidev_init()