dir_type
if (nvm->dir_type == BNXT_NVM_PORT_CFG)
else if (nvm->dir_type == BNXT_NVM_FUNC_CFG)
u16 dir_type;
int bnxt_flash_nvram(struct net_device *dev, u16 dir_type,
req->dir_type = cpu_to_le16(dir_type);
enum bnxt_nvm_directory_type dir_type)
switch (dir_type) {
u16 dir_type,
switch (dir_type) {
dir_type);
rc = bnxt_flash_nvram(dev, dir_type, BNX_DIR_ORDINAL_FIRST,
rc = bnxt_firmware_reset(dev, dir_type);
u16 dir_type,
if (le16_to_cpu(trailer->dir_type) != dir_type) {
dir_type, le16_to_cpu(trailer->dir_type));
rc = bnxt_flash_nvram(dev, dir_type, BNX_DIR_ORDINAL_FIRST,
static bool bnxt_dir_type_is_ape_bin_format(u16 dir_type)
switch (dir_type) {
static bool bnxt_dir_type_is_other_exec_format(u16 dir_type)
switch (dir_type) {
static bool bnxt_dir_type_is_executable(u16 dir_type)
return bnxt_dir_type_is_ape_bin_format(dir_type) ||
bnxt_dir_type_is_other_exec_format(dir_type);
u16 dir_type,
if (bnxt_dir_type_is_ape_bin_format(dir_type))
rc = bnxt_flash_firmware(dev, dir_type, fw->data, fw->size);
else if (bnxt_dir_type_is_other_exec_format(dir_type))
rc = bnxt_flash_microcode(dev, dir_type, fw->data, fw->size);
rc = bnxt_flash_nvram(dev, dir_type, BNX_DIR_ORDINAL_FIRST,
req->dir_type = cpu_to_le16(type);
int bnxt_flash_nvram(struct net_device *dev, u16 dir_type,
__le16 dir_type;
u8 dir_type;
dir_type = btrfs_dir_ftype(leaf, di);
if (unlikely(dir_type <= BTRFS_FT_UNKNOWN ||
dir_type >= BTRFS_FT_MAX)) {
dir_type, BTRFS_FT_MAX);
dir_type != BTRFS_FT_XATTR)) {
dir_type, BTRFS_FT_XATTR);
if (unlikely(dir_type == BTRFS_FT_XATTR &&
if (dir_type == BTRFS_FT_XATTR)
if (unlikely(data_len && dir_type != BTRFS_FT_XATTR)) {
__le16 dir_type;
__le16 dir_type;
__le16 dir_type;
__le16 dir_type;
__le16 dir_type;
__le16 dir_type;