Lines Matching refs:le

1113 	struct sky2_tx_le *le = sky2->tx_le + *slot;  in get_tx_le()  local
1116 le->ctrl = 0; in get_tx_le()
1117 return le; in get_tx_le()
1122 struct sky2_tx_le *le; in tx_init() local
1129 le = get_tx_le(sky2, &sky2->tx_prod); in tx_init()
1130 le->addr = 0; in tx_init()
1131 le->opcode = OP_ADDR64 | HW_OWNER; in tx_init()
1149 struct sky2_rx_le *le = sky2->rx_le + sky2->rx_put; in sky2_next_rx() local
1151 le->ctrl = 0; in sky2_next_rx()
1152 return le; in sky2_next_rx()
1193 struct sky2_rx_le *le; in sky2_rx_add() local
1196 le = sky2_next_rx(sky2); in sky2_rx_add()
1197 le->addr = cpu_to_le32(upper_32_bits(map)); in sky2_rx_add()
1198 le->opcode = OP_ADDR64 | HW_OWNER; in sky2_rx_add()
1201 le = sky2_next_rx(sky2); in sky2_rx_add()
1202 le->addr = cpu_to_le32(lower_32_bits(map)); in sky2_rx_add()
1203 le->length = cpu_to_le16(len); in sky2_rx_add()
1204 le->opcode = op | HW_OWNER; in sky2_rx_add()
1281 struct sky2_rx_le *le = sky2_next_rx(sky2); in rx_set_checksum() local
1283 le->addr = cpu_to_le32((ETH_HLEN << 16) | ETH_HLEN); in rx_set_checksum()
1284 le->ctrl = 0; in rx_set_checksum()
1285 le->opcode = OP_TCPSTART | HW_OWNER; in rx_set_checksum()
1845 struct sky2_tx_le *le = NULL; in sky2_xmit_frame() local
1870 le = get_tx_le(sky2, &slot); in sky2_xmit_frame()
1871 le->addr = cpu_to_le32(upper); in sky2_xmit_frame()
1873 le->opcode = OP_ADDR64 | HW_OWNER; in sky2_xmit_frame()
1884 le = get_tx_le(sky2, &slot); in sky2_xmit_frame()
1885 le->addr = cpu_to_le32(mss); in sky2_xmit_frame()
1888 le->opcode = OP_MSS | HW_OWNER; in sky2_xmit_frame()
1890 le->opcode = OP_LRGLEN | HW_OWNER; in sky2_xmit_frame()
1899 if (!le) { in sky2_xmit_frame()
1900 le = get_tx_le(sky2, &slot); in sky2_xmit_frame()
1901 le->addr = 0; in sky2_xmit_frame()
1902 le->opcode = OP_VLAN|HW_OWNER; in sky2_xmit_frame()
1904 le->opcode |= OP_VLAN; in sky2_xmit_frame()
1905 le->length = cpu_to_be16(skb_vlan_tag_get(skb)); in sky2_xmit_frame()
1928 le = get_tx_le(sky2, &slot); in sky2_xmit_frame()
1929 le->addr = cpu_to_le32(tcpsum); in sky2_xmit_frame()
1930 le->length = 0; /* initial checksum value */ in sky2_xmit_frame()
1931 le->ctrl = 1; /* one packet */ in sky2_xmit_frame()
1932 le->opcode = OP_TCPLISW | HW_OWNER; in sky2_xmit_frame()
1942 le = get_tx_le(sky2, &slot); in sky2_xmit_frame()
1943 le->addr = cpu_to_le32(lower_32_bits(mapping)); in sky2_xmit_frame()
1944 le->length = cpu_to_le16(len); in sky2_xmit_frame()
1945 le->ctrl = ctrl; in sky2_xmit_frame()
1946 le->opcode = mss ? (OP_LARGESEND | HW_OWNER) : (OP_PACKET | HW_OWNER); in sky2_xmit_frame()
1960 le = get_tx_le(sky2, &slot); in sky2_xmit_frame()
1961 le->addr = cpu_to_le32(upper); in sky2_xmit_frame()
1963 le->opcode = OP_ADDR64 | HW_OWNER; in sky2_xmit_frame()
1971 le = get_tx_le(sky2, &slot); in sky2_xmit_frame()
1972 le->addr = cpu_to_le32(lower_32_bits(mapping)); in sky2_xmit_frame()
1973 le->length = cpu_to_le16(skb_frag_size(frag)); in sky2_xmit_frame()
1974 le->ctrl = ctrl; in sky2_xmit_frame()
1975 le->opcode = OP_BUFFER | HW_OWNER; in sky2_xmit_frame()
1979 le->ctrl |= EOP; in sky2_xmit_frame()
2741 struct sky2_status_le *le = hw->st_le + hw->st_idx; in sky2_status_intr() local
2747 u8 opcode = le->opcode; in sky2_status_intr()
2754 port = le->css & CSS_LINK_BIT; in sky2_status_intr()
2757 length = le16_to_cpu(le->length); in sky2_status_intr()
2758 status = le32_to_cpu(le->status); in sky2_status_intr()
2760 le->opcode = 0; in sky2_status_intr()
2773 (le->css & (CSS_ISIPV4 | CSS_ISIPV6)) && in sky2_status_intr()
2774 (le->css & CSS_TCPUDPCSOK)) in sky2_status_intr()
4561 const struct sky2_status_le *le = hw->st_le + idx; in sky2_debug_show() local
4563 idx, le->opcode, le->length, le->status); in sky2_debug_show()
4577 const struct sky2_tx_le *le = sky2->tx_le + idx; in sky2_debug_show() local
4578 u32 a = le32_to_cpu(le->addr); in sky2_debug_show()
4584 switch (le->opcode & ~HW_OWNER) { in sky2_debug_show()
4592 seq_printf(seq, " vlan=%d", be16_to_cpu(le->length)); in sky2_debug_show()
4598 seq_printf(seq, " tso=%#x(%d)", a, le16_to_cpu(le->length)); in sky2_debug_show()
4601 seq_printf(seq, " %#x(%d)", a, le16_to_cpu(le->length)); in sky2_debug_show()
4604 seq_printf(seq, " frag=%#x(%d)", a, le16_to_cpu(le->length)); in sky2_debug_show()
4607 seq_printf(seq, " op=%#x,%#x(%d)", le->opcode, in sky2_debug_show()
4608 a, le16_to_cpu(le->length)); in sky2_debug_show()
4611 if (le->ctrl & EOP) { in sky2_debug_show()