static int be_get_reg_len(struct net_device *netdev) { struct be_adapter *adapter = netdev_priv(netdev); u32 log_size = 0; if (be_physfn(adapter)) be_cmd_get_reg_len(adapter, &log_size); return log_size; }
static int be_get_reg_len(struct net_device *netdev) { struct be_adapter *adapter = netdev_priv(netdev); u32 log_size = 0; if (be_physfn(adapter)) { if (lancer_chip(adapter)) log_size = lancer_cmd_get_file_len(adapter, LANCER_FW_DUMP_FILE); else be_cmd_get_reg_len(adapter, &log_size); } return log_size; }