/freebsd/sys/net/ |
H A D | if_loop.c | 415 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 D | if.h | 267 #define IFCAP_TXCSUM IFCAP_BIT(IFCAP_B_TXCSUM) macro 308 #define IFCAP_HWCSUM (IFCAP_RXCSUM | IFCAP_TXCSUM)
|
/freebsd/sys/dev/usb/net/ |
H A D | if_axge.c | 483 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 D | if_axe.c | 882 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 D | if_muge.c | 1613 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 D | lio_ioctl.c | 156 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 D | if_ntb.c | 262 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 D | if_dwc.c | 268 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 D | if_cgem.c | 1110 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 D | iavf_iflib.h | 115 IFCAP_TXCSUM | IFCAP_TXCSUM_IPV6 | \
|
/freebsd/sys/dev/nge/ |
H A D | if_nge.c | 2278 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 D | sfxge.c | 75 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 D | if_genet.c | 554 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 D | if_sge.c | 614 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 D | netback.c | 2251 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 D | gve_main.c | 119 if (if_getcapenable(ifp) & IFCAP_TXCSUM) in gve_up() 398 IFCAP_TXCSUM | in gve_setup_ifnet()
|
/freebsd/sys/dev/ixl/ |
H A D | ixl.h | 256 IFCAP_TXCSUM | IFCAP_TXCSUM_IPV6 | \
|
/freebsd/sys/dev/ti/ |
H A D | if_ti.c | 2146 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 D | mana_en.c | 227 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 D | if_eqos.c | 918 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 D | netfront.c | 1896 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 D | if_et.c | 323 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 D | if_sk.c | 1102 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 D | if_msk.c | 1081 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 D | if_ale.c | 620 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()
|