linux/drivers/net/ethernet/huawei/hinic
Sean Anderson 4973056cce net: convert users of bitmap_foo() to linkmode_foo()
This converts instances of
	bitmap_foo(args..., __ETHTOOL_LINK_MODE_MASK_NBITS)
to
	linkmode_foo(args...)

I manually fixed up some lines to prevent them from being excessively
long. Otherwise, this change was generated with the following semantic
patch:

// Generated with
// echo linux/linkmode.h > includes
// git grep -Flf includes include/ | cut -f 2- -d / | cat includes - \
// | sort | uniq | tee new_includes | wc -l && mv new_includes includes
// and repeating until the number stopped going up
@i@
@@

(
 #include <linux/acpi_mdio.h>
|
 #include <linux/brcmphy.h>
|
 #include <linux/dsa/loop.h>
|
 #include <linux/dsa/sja1105.h>
|
 #include <linux/ethtool.h>
|
 #include <linux/ethtool_netlink.h>
|
 #include <linux/fec.h>
|
 #include <linux/fs_enet_pd.h>
|
 #include <linux/fsl/enetc_mdio.h>
|
 #include <linux/fwnode_mdio.h>
|
 #include <linux/linkmode.h>
|
 #include <linux/lsm_audit.h>
|
 #include <linux/mdio-bitbang.h>
|
 #include <linux/mdio.h>
|
 #include <linux/mdio-mux.h>
|
 #include <linux/mii.h>
|
 #include <linux/mii_timestamper.h>
|
 #include <linux/mlx5/accel.h>
|
 #include <linux/mlx5/cq.h>
|
 #include <linux/mlx5/device.h>
|
 #include <linux/mlx5/driver.h>
|
 #include <linux/mlx5/eswitch.h>
|
 #include <linux/mlx5/fs.h>
|
 #include <linux/mlx5/port.h>
|
 #include <linux/mlx5/qp.h>
|
 #include <linux/mlx5/rsc_dump.h>
|
 #include <linux/mlx5/transobj.h>
|
 #include <linux/mlx5/vport.h>
|
 #include <linux/of_mdio.h>
|
 #include <linux/of_net.h>
|
 #include <linux/pcs-lynx.h>
|
 #include <linux/pcs/pcs-xpcs.h>
|
 #include <linux/phy.h>
|
 #include <linux/phy_led_triggers.h>
|
 #include <linux/phylink.h>
|
 #include <linux/platform_data/bcmgenet.h>
|
 #include <linux/platform_data/xilinx-ll-temac.h>
|
 #include <linux/pxa168_eth.h>
|
 #include <linux/qed/qed_eth_if.h>
|
 #include <linux/qed/qed_fcoe_if.h>
|
 #include <linux/qed/qed_if.h>
|
 #include <linux/qed/qed_iov_if.h>
|
 #include <linux/qed/qed_iscsi_if.h>
|
 #include <linux/qed/qed_ll2_if.h>
|
 #include <linux/qed/qed_nvmetcp_if.h>
|
 #include <linux/qed/qed_rdma_if.h>
|
 #include <linux/sfp.h>
|
 #include <linux/sh_eth.h>
|
 #include <linux/smsc911x.h>
|
 #include <linux/soc/nxp/lpc32xx-misc.h>
|
 #include <linux/stmmac.h>
|
 #include <linux/sunrpc/svc_rdma.h>
|
 #include <linux/sxgbe_platform.h>
|
 #include <net/cfg80211.h>
|
 #include <net/dsa.h>
|
 #include <net/mac80211.h>
|
 #include <net/selftests.h>
|
 #include <rdma/ib_addr.h>
|
 #include <rdma/ib_cache.h>
|
 #include <rdma/ib_cm.h>
|
 #include <rdma/ib_hdrs.h>
|
 #include <rdma/ib_mad.h>
|
 #include <rdma/ib_marshall.h>
|
 #include <rdma/ib_pack.h>
|
 #include <rdma/ib_pma.h>
|
 #include <rdma/ib_sa.h>
|
 #include <rdma/ib_smi.h>
|
 #include <rdma/ib_umem.h>
|
 #include <rdma/ib_umem_odp.h>
|
 #include <rdma/ib_verbs.h>
|
 #include <rdma/iw_cm.h>
|
 #include <rdma/mr_pool.h>
|
 #include <rdma/opa_addr.h>
|
 #include <rdma/opa_port_info.h>
|
 #include <rdma/opa_smi.h>
|
 #include <rdma/opa_vnic.h>
|
 #include <rdma/rdma_cm.h>
|
 #include <rdma/rdma_cm_ib.h>
|
 #include <rdma/rdmavt_cq.h>
|
 #include <rdma/rdma_vt.h>
|
 #include <rdma/rdmavt_qp.h>
|
 #include <rdma/rw.h>
|
 #include <rdma/tid_rdma_defs.h>
|
 #include <rdma/uverbs_ioctl.h>
|
 #include <rdma/uverbs_named_ioctl.h>
|
 #include <rdma/uverbs_std_types.h>
|
 #include <rdma/uverbs_types.h>
|
 #include <soc/mscc/ocelot.h>
|
 #include <soc/mscc/ocelot_ptp.h>
|
 #include <soc/mscc/ocelot_vcap.h>
|
 #include <trace/events/ib_mad.h>
|
 #include <trace/events/rdma_core.h>
|
 #include <trace/events/rdma.h>
|
 #include <trace/events/rpcrdma.h>
|
 #include <uapi/linux/ethtool.h>
|
 #include <uapi/linux/ethtool_netlink.h>
|
 #include <uapi/linux/mdio.h>
|
 #include <uapi/linux/mii.h>
)

@depends on i@
expression list args;
@@

(
- bitmap_zero(args, __ETHTOOL_LINK_MODE_MASK_NBITS)
+ linkmode_zero(args)
|
- bitmap_copy(args, __ETHTOOL_LINK_MODE_MASK_NBITS)
+ linkmode_copy(args)
|
- bitmap_and(args, __ETHTOOL_LINK_MODE_MASK_NBITS)
+ linkmode_and(args)
|
- bitmap_or(args, __ETHTOOL_LINK_MODE_MASK_NBITS)
+ linkmode_or(args)
|
- bitmap_empty(args, ETHTOOL_LINK_MODE_MASK_NBITS)
+ linkmode_empty(args)
|
- bitmap_andnot(args, __ETHTOOL_LINK_MODE_MASK_NBITS)
+ linkmode_andnot(args)
|
- bitmap_equal(args, __ETHTOOL_LINK_MODE_MASK_NBITS)
+ linkmode_equal(args)
|
- bitmap_intersects(args, __ETHTOOL_LINK_MODE_MASK_NBITS)
+ linkmode_intersects(args)
|
- bitmap_subset(args, __ETHTOOL_LINK_MODE_MASK_NBITS)
+ linkmode_subset(args)
)

Add missing linux/mii.h include to mellanox. -DaveM

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-10-24 13:58:52 +01:00
..
hinic_common.c
hinic_common.h
hinic_debugfs.c hinic: add support to query function table 2020-08-31 12:21:27 -07:00
hinic_debugfs.h hinic: add support to query function table 2020-08-31 12:21:27 -07:00
hinic_dev.h hinic: add support to query function table 2020-08-31 12:21:27 -07:00
hinic_devlink.c devlink: Make devlink_register to be void 2021-09-22 14:15:12 +01:00
hinic_devlink.h devlink: Make devlink_register to be void 2021-09-22 14:15:12 +01:00
hinic_ethtool.c net: convert users of bitmap_foo() to linkmode_foo() 2021-10-24 13:58:52 +01:00
hinic_hw_api_cmd.c net: hinic: Remove unnecessary 'out of memory' message 2021-03-19 11:53:17 -07:00
hinic_hw_api_cmd.h hinic: add log in exception handling processes 2020-07-28 17:22:03 -07:00
hinic_hw_cmdq.c net: huawei: hinic: Fix wrong function name in comments 2021-05-17 14:12:38 -07:00
hinic_hw_cmdq.h hinic: add check for mailbox msg from VF 2020-08-04 12:17:06 -07:00
hinic_hw_csr.h hinic: add mailbox function support 2020-04-25 20:46:27 -07:00
hinic_hw_dev.c net: hinic: Open device for the user access when it is ready 2021-09-27 16:31:59 +01:00
hinic_hw_dev.h hinic: add support to query function table 2020-08-31 12:21:27 -07:00
hinic_hw_eqs.c net: hinic: remove unnecessary parentheses 2021-05-13 15:39:10 -07:00
hinic_hw_eqs.h hinic: modify irq name 2020-09-18 14:34:24 -07:00
hinic_hw_if.c net: huawei: hinic: Fix wrong function name in comments 2021-05-17 14:12:38 -07:00
hinic_hw_if.h hinic: add log in exception handling processes 2020-07-28 17:22:03 -07:00
hinic_hw_io.c net: hinic: remove unnecessary parentheses 2021-05-13 15:39:10 -07:00
hinic_hw_io.h hinic: add support to query sq info 2020-08-31 12:21:26 -07:00
hinic_hw_mbox.c hinic: add check for mailbox msg from VF 2020-08-04 12:17:06 -07:00
hinic_hw_mbox.h hinic: add check for mailbox msg from VF 2020-08-04 12:17:06 -07:00
hinic_hw_mgmt.c net: hinic: remove unnecessary parentheses 2021-05-13 15:39:10 -07:00
hinic_hw_mgmt.h hinic: add generating mailbox random index support 2020-08-04 12:17:06 -07:00
hinic_hw_qp_ctxt.h
hinic_hw_qp.c net: huawei: hinic: Fix wrong function name in comments 2021-05-17 14:12:38 -07:00
hinic_hw_qp.h hinic: add support to query rq info 2020-08-31 12:21:27 -07:00
hinic_hw_wq.c net: hinic: add blank line after function declaration 2021-05-13 15:39:10 -07:00
hinic_hw_wq.h hinic: add sriov feature support 2020-04-25 20:46:28 -07:00
hinic_hw_wqe.h
hinic_main.c ethernet: use eth_hw_addr_set() in unmaintained drivers 2021-10-18 13:20:38 +01:00
hinic_port.c net: hinic: remove unnecessary parentheses 2021-05-13 15:39:10 -07:00
hinic_port.h net: don't include ethtool.h from netdevice.h 2020-11-23 17:27:04 -08:00
hinic_rx.c net: hinic: add blank line after function declaration 2021-05-13 15:39:10 -07:00
hinic_rx.h
hinic_sriov.c hinic: make array speeds static const, makes object smaller 2021-08-19 13:23:20 +01:00
hinic_sriov.h hinic: add three net_device_ops of vf 2020-05-09 15:28:21 -07:00
hinic_tx.c net: huawei: hinic: Fix wrong function name in comments 2021-05-17 14:12:38 -07:00
hinic_tx.h hinic: add self test support 2020-06-28 20:40:58 -07:00
Kconfig net: hinic: fix DEVLINK build errors 2020-10-03 16:52:19 -07:00
Makefile hinic: add support to query sq info 2020-08-31 12:21:26 -07:00