Home
last modified time | relevance | path

Searched refs:IFCAP_TXCSUM (Results 1 – 25 of 68) sorted by relevance

123

/freebsd/sys/net/
H A Dif_loop.c415 if ((mask & IFCAP_TXCSUM) != 0) in loioctl()
416 ifp->if_capenable ^= IFCAP_TXCSUM; in loioctl()
434 if (ifp->if_capenable & IFCAP_TXCSUM) in loioctl()
H A Dif.h267 #define IFCAP_TXCSUM IFCAP_BIT(IFCAP_B_TXCSUM) macro
308 #define IFCAP_HWCSUM (IFCAP_RXCSUM | IFCAP_TXCSUM)
/freebsd/sys/dev/usb/net/
H A Dif_axge.c483 if_setcapabilitiesbit(ifp, IFCAP_VLAN_MTU | IFCAP_TXCSUM | IFCAP_RXCSUM, 0); in axge_attach_post_sub()
712 if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0 && in axge_bulk_write_callback()
935 if ((mask & IFCAP_TXCSUM) != 0 && in axge_ioctl()
936 (if_getcapabilities(ifp) & IFCAP_TXCSUM) != 0) { in axge_ioctl()
937 if_togglecapenable(ifp, IFCAP_TXCSUM); in axge_ioctl()
938 if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0) in axge_ioctl()
1093 if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0) in axge_csum_cfg()
H A Dif_axe.c882 if_setcapabilitiesbit(ifp, IFCAP_TXCSUM | IFCAP_RXCSUM, 0); in axe_attach_post_sub()
1196 if (if_getcapabilities(ifp) & IFCAP_TXCSUM) { in axe_bulk_write_callback()
1308 if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0) in axe_csum_cfg()
1475 if ((mask & IFCAP_TXCSUM) != 0 && in axe_ioctl()
1476 (if_getcapabilities(ifp) & IFCAP_TXCSUM) != 0) { in axe_ioctl()
1477 if_togglecapenable(ifp, IFCAP_TXCSUM); in axe_ioctl()
1478 if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0) in axe_ioctl()
H A Dif_muge.c1613 if_setcapabilitiesbit(ifp, IFCAP_TXCSUM, 0); in muge_attach_post_sub()
1625 if_setcapabilitiesbit(ifp, IFCAP_TXCSUM, 0); in muge_attach_post_sub()
1626 if_setcapenablebit(ifp, IFCAP_TXCSUM, 0); in muge_attach_post_sub()
/freebsd/sys/dev/liquidio/
H A Dlio_ioctl.c156 if (features & IFCAP_TXCSUM) { in lio_ioctl()
157 if_togglecapenable(ifp, IFCAP_TXCSUM); in lio_ioctl()
158 if (if_getcapenable(ifp) & IFCAP_TXCSUM) in lio_ioctl()
/freebsd/sys/dev/ntb/if_ntb/
H A Dif_ntb.c262 if (ifr->ifr_reqcap & IFCAP_TXCSUM) { in ntb_ioctl()
263 if_setcapenablebit(ifp, IFCAP_TXCSUM, 0); in ntb_ioctl()
266 if_setcapenablebit(ifp, 0, IFCAP_TXCSUM); in ntb_ioctl()
/freebsd/sys/dev/dwc/
H A Dif_dwc.c268 if (mask & IFCAP_TXCSUM) in dwc_ioctl()
269 if_togglecapenable(ifp, IFCAP_TXCSUM); in dwc_ioctl()
270 if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0) in dwc_ioctl()
/freebsd/sys/dev/cadence/
H A Dif_cgem.c1110 if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0) in cgem_config()
1282 if ((mask & IFCAP_TXCSUM) != 0) { in cgem_ioctl()
1283 if ((ifr->ifr_reqcap & IFCAP_TXCSUM) != 0) { in cgem_ioctl()
1285 if_setcapenablebit(ifp, IFCAP_TXCSUM | in cgem_ioctl()
1294 if_setcapenablebit(ifp, 0, IFCAP_TXCSUM | in cgem_ioctl()
1320 if ((if_getcapenable(ifp) & (IFCAP_RXCSUM | IFCAP_TXCSUM)) == in cgem_ioctl()
1321 (IFCAP_RXCSUM | IFCAP_TXCSUM)) in cgem_ioctl()
/freebsd/sys/dev/iavf/
H A Diavf_iflib.h115 IFCAP_TXCSUM | IFCAP_TXCSUM_IPV6 | \
/freebsd/sys/dev/nge/
H A Dif_nge.c2278 if_setcapenablebit(ifp, 0, IFCAP_TXCSUM); in nge_ioctl()
2281 if_setcapenablebit(ifp, IFCAP_TXCSUM, 0); in nge_ioctl()
2341 if ((mask & IFCAP_TXCSUM) != 0 && in nge_ioctl()
2342 (IFCAP_TXCSUM & if_getcapabilities(ifp)) != 0) { in nge_ioctl()
2343 if_togglecapenable(ifp, IFCAP_TXCSUM); in nge_ioctl()
2344 if ((IFCAP_TXCSUM & if_getcapenable(ifp)) != 0) in nge_ioctl()
2385 if ((if_getcapenable(ifp) & IFCAP_TXCSUM) == 0) in nge_ioctl()
/freebsd/sys/dev/sfxge/
H A Dsfxge.c75 IFCAP_RXCSUM | IFCAP_TXCSUM | \
469 (reqcap & (IFCAP_TSO4 | IFCAP_TXCSUM)) == IFCAP_TSO4) { in sfxge_if_ioctl()
483 if (reqcap & IFCAP_TXCSUM) { in sfxge_if_ioctl()
/freebsd/sys/arm64/broadcom/genet/
H A Dif_genet.c554 if ((if_getcapenable(sc->ifp) & (IFCAP_TXCSUM | IFCAP_TXCSUM_IPV6)) != in gen_enable_offload()
1094 if ((if_getcapenable(sc->ifp) & (IFCAP_TXCSUM | IFCAP_TXCSUM_IPV6)) != in gen_encap()
1593 if (flags & IFCAP_TXCSUM) in gen_ioctl()
1594 enable ^= IFCAP_TXCSUM; in gen_ioctl()
1597 if (enable & (IFCAP_TXCSUM | IFCAP_TXCSUM_IPV6)) in gen_ioctl()
/freebsd/sys/dev/sge/
H A Dif_sge.c614 if_setcapabilities(ifp, IFCAP_TXCSUM | IFCAP_RXCSUM | IFCAP_TSO4); in sge_attach()
1774 if ((mask & IFCAP_TXCSUM) != 0 && in sge_ioctl()
1775 (if_getcapabilities(ifp) & IFCAP_TXCSUM) != 0) { in sge_ioctl()
1776 if_togglecapenable(ifp, IFCAP_TXCSUM); in sge_ioctl()
1777 if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0) in sge_ioctl()
/freebsd/sys/dev/xen/netback/
H A Dnetback.c2251 if (ifr->ifr_reqcap & IFCAP_TXCSUM) { in xnb_ioctl()
2252 if_setcapenablebit(ifp, IFCAP_TXCSUM, 0); in xnb_ioctl()
2255 if_setcapenablebit(ifp, 0, IFCAP_TXCSUM); in xnb_ioctl()
2269 if (IFCAP_TXCSUM & if_getcapenable(ifp)) { in xnb_ioctl()
/freebsd/sys/dev/gve/
H A Dgve_main.c119 if (if_getcapenable(ifp) & IFCAP_TXCSUM) in gve_up()
398 IFCAP_TXCSUM | in gve_setup_ifnet()
/freebsd/sys/dev/ixl/
H A Dixl.h256 IFCAP_TXCSUM | IFCAP_TXCSUM_IPV6 | \
/freebsd/sys/dev/ti/
H A Dif_ti.c2146 if ((if_getcapenable(sc->ti_ifp) & (IFCAP_TXCSUM | IFCAP_RXCSUM)) == 0) in ti_chipinit()
2300 if (if_getcapenable(ifp) & IFCAP_TXCSUM) in ti_gibinit()
2388 if_setcapabilities(ifp, IFCAP_TXCSUM | IFCAP_RXCSUM); in ti_attach()
3556 if ((mask & IFCAP_TXCSUM) != 0 && in ti_ioctl()
3557 (if_getcapabilities(ifp) & IFCAP_TXCSUM) != 0) { in ti_ioctl()
3558 if_togglecapenable(ifp, IFCAP_TXCSUM); in ti_ioctl()
3559 if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0) in ti_ioctl()
3573 if ((mask & (IFCAP_TXCSUM | IFCAP_RXCSUM | in ti_ioctl()
/freebsd/sys/dev/mana/
H A Dmana_en.c227 if (mask & IFCAP_TXCSUM) { in mana_ioctl()
228 if_togglecapenable(ifp, IFCAP_TXCSUM); in mana_ioctl()
232 !(IFCAP_TXCSUM & if_getcapenable(ifp))) { in mana_ioctl()
266 !(IFCAP_TXCSUM & if_getcapenable(ifp))) { in mana_ioctl()
2815 IFCAP_TXCSUM | IFCAP_TXCSUM_IPV6 | in mana_probe_port()
2832 if (if_getcapenable(ndev) & IFCAP_TXCSUM) in mana_probe_port()
/freebsd/sys/dev/eqos/
H A Dif_eqos.c918 if (mask & IFCAP_TXCSUM) in eqos_ioctl()
919 if_togglecapenable(ifp, IFCAP_TXCSUM); in eqos_ioctl()
920 if ((if_getcapenable(ifp) & IFCAP_TXCSUM)) in eqos_ioctl()
/freebsd/sys/dev/xen/netfront/
H A Dnetfront.c1896 if (mask & IFCAP_TXCSUM) { in xn_ioctl()
1897 if_togglecapenable(ifp, IFCAP_TXCSUM); in xn_ioctl()
2172 if ((if_getcapabilities(ifp) & cap_enabled & IFCAP_TXCSUM) != 0) { in xn_configure_features()
2173 if_setcapenablebit(ifp, IFCAP_TXCSUM, 0); in xn_configure_features()
/freebsd/sys/dev/et/
H A Dif_et.c323 if_setcapabilities(ifp, IFCAP_TXCSUM | IFCAP_VLAN_MTU); in et_attach()
1348 if ((mask & IFCAP_TXCSUM) != 0 && in et_ioctl()
1349 (IFCAP_TXCSUM & if_getcapabilities(ifp)) != 0) { in et_ioctl()
1350 if_togglecapenable(ifp, IFCAP_TXCSUM); in et_ioctl()
1351 if ((IFCAP_TXCSUM & if_getcapenable(ifp)) != 0) in et_ioctl()
/freebsd/sys/dev/sk/
H A Dif_sk.c1102 if ((mask & IFCAP_TXCSUM) != 0 && in sk_ioctl()
1103 (IFCAP_TXCSUM & if_getcapabilities(ifp)) != 0) { in sk_ioctl()
1104 if_togglecapenable(ifp, IFCAP_TXCSUM); in sk_ioctl()
1105 if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0) in sk_ioctl()
1291 if_setcapabilities(ifp, IFCAP_TXCSUM | IFCAP_RXCSUM); in sk_attach()
1307 if_setcapenablebit(ifp, 0, IFCAP_TXCSUM); in sk_attach()
/freebsd/sys/dev/msk/
H A Dif_msk.c1081 IFCAP_TSO4 | IFCAP_TXCSUM); in msk_ioctl()
1123 if ((mask & IFCAP_TXCSUM) != 0 && in msk_ioctl()
1124 (IFCAP_TXCSUM & if_getcapabilities(ifp)) != 0) { in msk_ioctl()
1125 if_togglecapenable(ifp, IFCAP_TXCSUM); in msk_ioctl()
1126 if ((IFCAP_TXCSUM & if_getcapenable(ifp)) != 0) in msk_ioctl()
1162 if_setcapenablebit(ifp, 0, (IFCAP_TSO4 | IFCAP_TXCSUM)); in msk_ioctl()
1631 if_setcapabilities(ifp, IFCAP_TXCSUM | IFCAP_TSO4); in msk_attach()
3815 if_setcapenablebit(ifp, 0, (IFCAP_TSO4 | IFCAP_TXCSUM)); in msk_init_locked()
/freebsd/sys/dev/ale/
H A Dif_ale.c620 if_setcapabilities(ifp, IFCAP_RXCSUM | IFCAP_TXCSUM | IFCAP_TSO4); in ale_attach()
2004 if ((mask & IFCAP_TXCSUM) != 0 && in ale_ioctl()
2005 (if_getcapabilities(ifp) & IFCAP_TXCSUM) != 0) { in ale_ioctl()
2006 if_togglecapenable(ifp, IFCAP_TXCSUM); in ale_ioctl()
2007 if ((if_getcapenable(ifp) & IFCAP_TXCSUM) != 0) in ale_ioctl()

123