ret_val 1227 arch/alpha/kernel/smc37c669.c unsigned int ret_val = FALSE; ret_val 1259 arch/alpha/kernel/smc37c669.c ret_val = TRUE; ret_val 1288 arch/alpha/kernel/smc37c669.c ret_val = TRUE; ret_val 1336 arch/alpha/kernel/smc37c669.c ret_val = TRUE; ret_val 1384 arch/alpha/kernel/smc37c669.c ret_val = TRUE; ret_val 1410 arch/alpha/kernel/smc37c669.c ret_val = TRUE; ret_val 1419 arch/alpha/kernel/smc37c669.c return ret_val; ret_val 1455 arch/alpha/kernel/smc37c669.c unsigned int ret_val = FALSE; ret_val 1483 arch/alpha/kernel/smc37c669.c ret_val = TRUE; ret_val 1508 arch/alpha/kernel/smc37c669.c ret_val = TRUE; ret_val 1549 arch/alpha/kernel/smc37c669.c ret_val = TRUE; ret_val 1590 arch/alpha/kernel/smc37c669.c ret_val = TRUE; ret_val 1614 arch/alpha/kernel/smc37c669.c ret_val = TRUE; ret_val 1623 arch/alpha/kernel/smc37c669.c return ret_val; ret_val 1738 arch/alpha/kernel/smc37c669.c unsigned int ret_val = FALSE; ret_val 1780 arch/alpha/kernel/smc37c669.c ret_val = TRUE; ret_val 1787 arch/alpha/kernel/smc37c669.c return ret_val; ret_val 1840 arch/alpha/kernel/smc37c669.c unsigned int ret_val = FALSE; ret_val 1847 arch/alpha/kernel/smc37c669.c ret_val = TRUE; ret_val 1851 arch/alpha/kernel/smc37c669.c ret_val = TRUE; ret_val 1855 arch/alpha/kernel/smc37c669.c ret_val = TRUE; ret_val 1858 arch/alpha/kernel/smc37c669.c return ret_val; ret_val 3432 arch/x86/kvm/mmu.c kvm_pfn_t pfn, unsigned access, int *ret_val) ret_val 3436 arch/x86/kvm/mmu.c *ret_val = kvm_handle_bad_page(vcpu, gfn, pfn); ret_val 458 arch/x86/xen/setup.c unsigned long ret_val = 0; ret_val 483 arch/x86/xen/setup.c ret_val = func(start_pfn, end_pfn, nr_pages, ret_val 484 arch/x86/xen/setup.c ret_val); ret_val 489 arch/x86/xen/setup.c return ret_val; ret_val 969 drivers/acpi/cppc_acpi.c int ret_val = 0; ret_val 976 drivers/acpi/cppc_acpi.c return ret_val; ret_val 1006 drivers/acpi/cppc_acpi.c ret_val = -EFAULT; ret_val 1009 drivers/acpi/cppc_acpi.c return ret_val; ret_val 1014 drivers/acpi/cppc_acpi.c int ret_val = 0; ret_val 1045 drivers/acpi/cppc_acpi.c ret_val = -EFAULT; ret_val 1049 drivers/acpi/cppc_acpi.c return ret_val; ret_val 213 drivers/char/agp/compat_ioctl.c int ret_val = -ENOTTY; ret_val 219 drivers/char/agp/compat_ioctl.c ret_val = -EINVAL; ret_val 224 drivers/char/agp/compat_ioctl.c ret_val = -EBUSY; ret_val 229 drivers/char/agp/compat_ioctl.c ret_val = -EPERM; ret_val 236 drivers/char/agp/compat_ioctl.c ret_val = -EBUSY; ret_val 243 drivers/char/agp/compat_ioctl.c ret_val = compat_agpioc_info_wrap(curr_priv, (void __user *) arg); ret_val 247 drivers/char/agp/compat_ioctl.c ret_val = agpioc_acquire_wrap(curr_priv); ret_val 251 drivers/char/agp/compat_ioctl.c ret_val = agpioc_release_wrap(curr_priv); ret_val 255 drivers/char/agp/compat_ioctl.c ret_val = agpioc_setup_wrap(curr_priv, (void __user *) arg); ret_val 259 drivers/char/agp/compat_ioctl.c ret_val = compat_agpioc_reserve_wrap(curr_priv, (void __user *) arg); ret_val 263 drivers/char/agp/compat_ioctl.c ret_val = agpioc_protect_wrap(curr_priv); ret_val 267 drivers/char/agp/compat_ioctl.c ret_val = compat_agpioc_allocate_wrap(curr_priv, (void __user *) arg); ret_val 271 drivers/char/agp/compat_ioctl.c ret_val = agpioc_deallocate_wrap(curr_priv, (int) arg); ret_val 275 drivers/char/agp/compat_ioctl.c ret_val = compat_agpioc_bind_wrap(curr_priv, (void __user *) arg); ret_val 279 drivers/char/agp/compat_ioctl.c ret_val = compat_agpioc_unbind_wrap(curr_priv, (void __user *) arg); ret_val 287 drivers/char/agp/compat_ioctl.c DBG("ioctl returns %d\n", ret_val); ret_val 289 drivers/char/agp/compat_ioctl.c return ret_val; ret_val 953 drivers/char/agp/frontend.c int ret_val = -ENOTTY; ret_val 960 drivers/char/agp/frontend.c ret_val = -EINVAL; ret_val 965 drivers/char/agp/frontend.c ret_val = -EBUSY; ret_val 970 drivers/char/agp/frontend.c ret_val = -EPERM; ret_val 977 drivers/char/agp/frontend.c ret_val = -EBUSY; ret_val 984 drivers/char/agp/frontend.c ret_val = agpioc_info_wrap(curr_priv, (void __user *) arg); ret_val 988 drivers/char/agp/frontend.c ret_val = agpioc_acquire_wrap(curr_priv); ret_val 992 drivers/char/agp/frontend.c ret_val = agpioc_release_wrap(curr_priv); ret_val 996 drivers/char/agp/frontend.c ret_val = agpioc_setup_wrap(curr_priv, (void __user *) arg); ret_val 1000 drivers/char/agp/frontend.c ret_val = agpioc_reserve_wrap(curr_priv, (void __user *) arg); ret_val 1004 drivers/char/agp/frontend.c ret_val = agpioc_protect_wrap(curr_priv); ret_val 1008 drivers/char/agp/frontend.c ret_val = agpioc_allocate_wrap(curr_priv, (void __user *) arg); ret_val 1012 drivers/char/agp/frontend.c ret_val = agpioc_deallocate_wrap(curr_priv, (int) arg); ret_val 1016 drivers/char/agp/frontend.c ret_val = agpioc_bind_wrap(curr_priv, (void __user *) arg); ret_val 1020 drivers/char/agp/frontend.c ret_val = agpioc_unbind_wrap(curr_priv, (void __user *) arg); ret_val 1028 drivers/char/agp/frontend.c DBG("ioctl returns %d\n", ret_val); ret_val 1030 drivers/char/agp/frontend.c return ret_val; ret_val 409 drivers/char/agp/generic.c int ret_val; ret_val 423 drivers/char/agp/generic.c ret_val = curr->bridge->driver->insert_memory(curr, pg_start, curr->type); ret_val 425 drivers/char/agp/generic.c if (ret_val != 0) ret_val 426 drivers/char/agp/generic.c return ret_val; ret_val 449 drivers/char/agp/generic.c int ret_val; ret_val 459 drivers/char/agp/generic.c ret_val = curr->bridge->driver->remove_memory(curr, curr->pg_start, curr->type); ret_val 461 drivers/char/agp/generic.c if (ret_val != 0) ret_val 462 drivers/char/agp/generic.c return ret_val; ret_val 282 drivers/char/tlclk.c unsigned long ret_val; ret_val 286 drivers/char/tlclk.c ret_val = ((inb(TLCLK_REG1) & 0x08) >> 3); ret_val 289 drivers/char/tlclk.c return sprintf(buf, "0x%lX\n", ret_val); ret_val 298 drivers/char/tlclk.c unsigned long ret_val; ret_val 302 drivers/char/tlclk.c ret_val = inb(TLCLK_REG5); ret_val 305 drivers/char/tlclk.c return sprintf(buf, "0x%lX\n", ret_val); ret_val 314 drivers/char/tlclk.c unsigned long ret_val; ret_val 318 drivers/char/tlclk.c ret_val = (inb(TLCLK_REG2) & 0xf0); ret_val 321 drivers/char/tlclk.c return sprintf(buf, "0x%lX\n", ret_val); ret_val 729 drivers/cpufreq/powernow-k8.c int ret_val = -ENODEV; ret_val 763 drivers/cpufreq/powernow-k8.c ret_val = fill_powernow_table_fidvid(data, powernow_table); ret_val 764 drivers/cpufreq/powernow-k8.c if (ret_val) ret_val 779 drivers/cpufreq/powernow-k8.c ret_val = -ENOMEM; ret_val 795 drivers/cpufreq/powernow-k8.c return ret_val; ret_val 424 drivers/firmware/qcom_scm-32.c __le32 ret_val = 0; ret_val 427 drivers/firmware/qcom_scm-32.c &svc_cmd, sizeof(svc_cmd), &ret_val, ret_val 428 drivers/firmware/qcom_scm-32.c sizeof(ret_val)); ret_val 432 drivers/firmware/qcom_scm-32.c return le32_to_cpu(ret_val); ret_val 715 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c switch (atcs_output.ret_val) { ret_val 283 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.c uint32_t ret_val = 0; ret_val 284 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.c ret_val = wm_ns * refclk_mhz; ret_val 285 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.c ret_val /= 1000; ret_val 287 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.c if (ret_val > clamp_value) ret_val 288 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.c ret_val = clamp_value; ret_val 290 drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.c return ret_val; ret_val 62 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubbub.c uint32_t ret_val = 0; ret_val 63 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubbub.c ret_val = wm_ns * refclk_mhz; ret_val 64 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubbub.c ret_val /= 1000; ret_val 66 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubbub.c if (ret_val > clamp_value) ret_val 67 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubbub.c ret_val = clamp_value; ret_val 69 drivers/gpu/drm/amd/display/dc/dcn21/dcn21_hubbub.c return ret_val; ret_val 81 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c unsigned int ret_val = 0; ret_val 85 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c ret_val = 2; ret_val 88 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c ret_val = 4; ret_val 91 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c ret_val = 8; ret_val 94 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c ret_val = 2; ret_val 96 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c ret_val = 1; ret_val 99 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c ret_val = 4; ret_val 101 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c ret_val = 2; ret_val 103 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c ret_val = 1; ret_val 105 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c return ret_val; ret_val 110 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c bool ret_val = 0; ret_val 113 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c ret_val = 1; ret_val 115 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c return ret_val; ret_val 81 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c unsigned int ret_val = 0; ret_val 85 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c ret_val = 2; ret_val 88 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c ret_val = 4; ret_val 91 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c ret_val = 8; ret_val 94 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c ret_val = 2; ret_val 96 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c ret_val = 1; ret_val 99 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c ret_val = 4; ret_val 101 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c ret_val = 2; ret_val 103 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c ret_val = 1; ret_val 105 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c return ret_val; ret_val 110 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c bool ret_val = 0; ret_val 113 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c ret_val = 1; ret_val 115 drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20v2.c return ret_val; ret_val 57 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c unsigned int ret_val = 0; ret_val 61 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c ret_val = 2; ret_val 64 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c ret_val = 4; ret_val 67 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c ret_val = 8; ret_val 70 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c ret_val = 2; ret_val 72 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c ret_val = 1; ret_val 75 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c ret_val = 4; ret_val 77 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c ret_val = 2; ret_val 79 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c ret_val = 1; ret_val 81 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c return ret_val; ret_val 86 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c bool ret_val = 0; ret_val 89 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c ret_val = 1; ret_val 91 drivers/gpu/drm/amd/display/dc/dml/dcn21/display_rq_dlg_calc_21.c return ret_val; ret_val 42 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c unsigned int ret_val = 0; ret_val 46 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c ret_val = 2; ret_val 49 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c ret_val = 4; ret_val 52 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c ret_val = 8; ret_val 55 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c ret_val = 2; ret_val 57 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c ret_val = 1; ret_val 60 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c ret_val = 4; ret_val 62 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c ret_val = 2; ret_val 64 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c return ret_val; ret_val 69 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c bool ret_val = 0; ret_val 72 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c ret_val = 1; ret_val 74 drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c return ret_val; ret_val 103 drivers/gpu/drm/amd/include/amd_acpi.h u8 ret_val; /* return value */ ret_val 180 drivers/gpu/drm/gma500/cdv_device.c uint32_t ret_val = 0; ret_val 183 drivers/gpu/drm/gma500/cdv_device.c pci_read_config_dword(pci_root, 0xD4, &ret_val); ret_val 185 drivers/gpu/drm/gma500/cdv_device.c return ret_val; ret_val 775 drivers/gpu/drm/gma500/psb_drv.h uint32_t ret_val = 0; ret_val 778 drivers/gpu/drm/gma500/psb_drv.h pci_read_config_dword(pci_root, 0xD4, &ret_val); ret_val 780 drivers/gpu/drm/gma500/psb_drv.h return ret_val; ret_val 794 drivers/gpu/drm/gma500/psb_drv.h uint32_t ret_val = 0; ret_val 797 drivers/gpu/drm/gma500/psb_drv.h pci_read_config_dword(pci_root, 0xD4, &ret_val); ret_val 799 drivers/gpu/drm/gma500/psb_drv.h return ret_val; ret_val 235 drivers/gpu/drm/i915/gvt/gvt.h #define vgpu_is_vm_unhealthy(ret_val) \ ret_val 236 drivers/gpu/drm/i915/gvt/gvt.h (((ret_val) == -EBADRQC) || ((ret_val) == -EFAULT)) ret_val 100 drivers/gpu/drm/radeon/radeon_acpi.c u8 ret_val; /* return value */ ret_val 654 drivers/gpu/drm/radeon/radeon_acpi.c switch (atcs_output.ret_val) { ret_val 1082 drivers/gpu/vga/vgaarb.c int ret_val; ret_val 1099 drivers/gpu/vga/vgaarb.c ret_val = -EPROTO; ret_val 1103 drivers/gpu/vga/vgaarb.c ret_val = -EPROTO; ret_val 1109 drivers/gpu/vga/vgaarb.c ret_val = -ENODEV; ret_val 1126 drivers/gpu/vga/vgaarb.c ret_val = count; ret_val 1139 drivers/gpu/vga/vgaarb.c ret_val = -EPROTO; ret_val 1152 drivers/gpu/vga/vgaarb.c ret_val = -ENODEV; ret_val 1161 drivers/gpu/vga/vgaarb.c ret_val = -EINVAL; ret_val 1166 drivers/gpu/vga/vgaarb.c ret_val = -EINVAL; ret_val 1171 drivers/gpu/vga/vgaarb.c ret_val = -EINVAL; ret_val 1182 drivers/gpu/vga/vgaarb.c ret_val = count; ret_val 1191 drivers/gpu/vga/vgaarb.c ret_val = -EPROTO; ret_val 1203 drivers/gpu/vga/vgaarb.c ret_val = -ENODEV; ret_val 1218 drivers/gpu/vga/vgaarb.c ret_val = count; ret_val 1221 drivers/gpu/vga/vgaarb.c ret_val = -EBUSY; ret_val 1238 drivers/gpu/vga/vgaarb.c ret_val = -EPROTO; ret_val 1246 drivers/gpu/vga/vgaarb.c ret_val = -ENODEV; ret_val 1263 drivers/gpu/vga/vgaarb.c ret_val = -ENODEV; ret_val 1283 drivers/gpu/vga/vgaarb.c ret_val = -ENOMEM; ret_val 1287 drivers/gpu/vga/vgaarb.c ret_val = count; ret_val 1298 drivers/gpu/vga/vgaarb.c ret_val = -EPROTO; ret_val 1303 drivers/gpu/vga/vgaarb.c ret_val = -ENODEV; ret_val 1308 drivers/gpu/vga/vgaarb.c ret_val = count; ret_val 1315 drivers/gpu/vga/vgaarb.c return ret_val; ret_val 295 drivers/hid/hid-sensor-hub.c int ret_val = 0; ret_val 323 drivers/hid/hid-sensor-hub.c ret_val = *(s8 *)hsdev->pending.raw_data; ret_val 325 drivers/hid/hid-sensor-hub.c ret_val = *(u8 *)hsdev->pending.raw_data; ret_val 329 drivers/hid/hid-sensor-hub.c ret_val = *(s16 *)hsdev->pending.raw_data; ret_val 331 drivers/hid/hid-sensor-hub.c ret_val = *(u16 *)hsdev->pending.raw_data; ret_val 334 drivers/hid/hid-sensor-hub.c ret_val = *(u32 *)hsdev->pending.raw_data; ret_val 337 drivers/hid/hid-sensor-hub.c ret_val = 0; ret_val 344 drivers/hid/hid-sensor-hub.c return ret_val; ret_val 2142 drivers/hv/vmbus_drv.c int ret_val = -ENODEV; ret_val 2167 drivers/hv/vmbus_drv.c ret_val = 0; ret_val 2171 drivers/hv/vmbus_drv.c if (ret_val) ret_val 2173 drivers/hv/vmbus_drv.c return ret_val; ret_val 775 drivers/infiniband/core/umem_odp.c int ret_val = 0; ret_val 780 drivers/infiniband/core/umem_odp.c return ret_val; ret_val 789 drivers/infiniband/core/umem_odp.c ret_val = cb(umem, start, last, cookie) || ret_val; ret_val 792 drivers/infiniband/core/umem_odp.c return ret_val; ret_val 101 drivers/mailbox/pcc.c int ret_val = 0; ret_val 119 drivers/mailbox/pcc.c ret_val = -EFAULT; ret_val 122 drivers/mailbox/pcc.c return ret_val; ret_val 127 drivers/mailbox/pcc.c int ret_val = 0; ret_val 145 drivers/mailbox/pcc.c ret_val = -EFAULT; ret_val 148 drivers/mailbox/pcc.c return ret_val; ret_val 78 drivers/media/pci/cx25821/cx25821-medusa-video.c int ret_val = 0; ret_val 90 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 98 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 105 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 109 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 117 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 125 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 137 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 144 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 157 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 165 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 172 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 180 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 187 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 190 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 194 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 200 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], HSCALE_CTRL, 0x0); ret_val 202 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], VSCALE_CTRL, 0x0); ret_val 207 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], BYP_AB_CTRL, value); ret_val 209 drivers/media/pci/cx25821/cx25821-medusa-video.c return ret_val; ret_val 214 drivers/media/pci/cx25821/cx25821-medusa-video.c int ret_val = -1; ret_val 218 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 220 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 222 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 229 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 233 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 237 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 240 drivers/media/pci/cx25821/cx25821-medusa-video.c return ret_val; ret_val 245 drivers/media/pci/cx25821/cx25821-medusa-video.c int ret_val = 0; ret_val 257 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 265 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 273 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 277 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 285 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 293 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 305 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 312 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 327 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 335 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 343 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 351 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 358 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 361 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 365 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], ret_val 371 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], HSCALE_CTRL, 0x0); ret_val 373 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], VSCALE_CTRL, 0x0); ret_val 378 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], BYP_AB_CTRL, value); ret_val 380 drivers/media/pci/cx25821/cx25821-medusa-video.c return ret_val; ret_val 553 drivers/media/pci/cx25821/cx25821-medusa-video.c int ret_val = 0; ret_val 561 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = mapM(VIDEO_PROCAMP_MIN, VIDEO_PROCAMP_MAX, brightness, ret_val 567 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val |= cx25821_i2c_write(&dev->i2c_bus[0], ret_val 569 drivers/media/pci/cx25821/cx25821-medusa-video.c return ret_val; ret_val 574 drivers/media/pci/cx25821/cx25821-medusa-video.c int ret_val = 0; ret_val 582 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = mapM(VIDEO_PROCAMP_MIN, VIDEO_PROCAMP_MAX, contrast, ret_val 587 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val |= cx25821_i2c_write(&dev->i2c_bus[0], ret_val 590 drivers/media/pci/cx25821/cx25821-medusa-video.c return ret_val; ret_val 595 drivers/media/pci/cx25821/cx25821-medusa-video.c int ret_val = 0; ret_val 603 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = mapM(VIDEO_PROCAMP_MIN, VIDEO_PROCAMP_MAX, hue, ret_val 611 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val |= cx25821_i2c_write(&dev->i2c_bus[0], ret_val 614 drivers/media/pci/cx25821/cx25821-medusa-video.c return ret_val; ret_val 619 drivers/media/pci/cx25821/cx25821-medusa-video.c int ret_val = 0; ret_val 628 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = mapM(VIDEO_PROCAMP_MIN, VIDEO_PROCAMP_MAX, saturation, ret_val 634 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val |= cx25821_i2c_write(&dev->i2c_bus[0], ret_val 640 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val |= cx25821_i2c_write(&dev->i2c_bus[0], ret_val 643 drivers/media/pci/cx25821/cx25821-medusa-video.c return ret_val; ret_val 651 drivers/media/pci/cx25821/cx25821-medusa-video.c int ret_val = 0; ret_val 657 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], MON_A_CTRL, value); ret_val 659 drivers/media/pci/cx25821/cx25821-medusa-video.c if (ret_val < 0) ret_val 665 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], MON_A_CTRL, value); ret_val 667 drivers/media/pci/cx25821/cx25821-medusa-video.c if (ret_val < 0) ret_val 683 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], DENC_AB_CTRL, value); ret_val 685 drivers/media/pci/cx25821/cx25821-medusa-video.c if (ret_val < 0) ret_val 691 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], BYP_AB_CTRL, value); ret_val 693 drivers/media/pci/cx25821/cx25821-medusa-video.c if (ret_val < 0) ret_val 699 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], AFE_AB_DIAG_CTRL, ret_val 702 drivers/media/pci/cx25821/cx25821-medusa-video.c if (ret_val < 0) ret_val 722 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = cx25821_i2c_write(&dev->i2c_bus[0], PIN_OE_CTRL, value); ret_val 724 drivers/media/pci/cx25821/cx25821-medusa-video.c if (ret_val < 0) ret_val 727 drivers/media/pci/cx25821/cx25821-medusa-video.c ret_val = medusa_set_videostandard(dev); ret_val 730 drivers/media/pci/cx25821/cx25821-medusa-video.c return ret_val; ret_val 466 drivers/message/fusion/mptctl.c int ret_val = -1; ret_val 490 drivers/message/fusion/mptctl.c ret_val = mptctl_do_taskmgmt(ioc, ret_val 494 drivers/message/fusion/mptctl.c ret_val = mptctl_do_taskmgmt(ioc, ret_val 497 drivers/message/fusion/mptctl.c if (!ret_val) ret_val 502 drivers/message/fusion/mptctl.c ret_val = mptctl_do_taskmgmt(ioc, ret_val 505 drivers/message/fusion/mptctl.c if (!ret_val) ret_val 71 drivers/misc/apds9802als.c int ret_val; ret_val 84 drivers/misc/apds9802als.c ret_val = als_wait_for_data_ready(dev); ret_val 85 drivers/misc/apds9802als.c if (ret_val < 0) ret_val 90 drivers/misc/apds9802als.c ret_val = temp; ret_val 93 drivers/misc/apds9802als.c ret_val = i2c_smbus_read_byte_data(client, 0x8D); /* MSB data */ ret_val 94 drivers/misc/apds9802als.c if (ret_val < 0) ret_val 100 drivers/misc/apds9802als.c temp = (ret_val << 8) | temp; ret_val 105 drivers/misc/apds9802als.c return ret_val; ret_val 113 drivers/misc/apds9802als.c int ret_val; ret_val 116 drivers/misc/apds9802als.c ret_val = kstrtoul(buf, 10, &val); ret_val 117 drivers/misc/apds9802als.c if (ret_val) ret_val 118 drivers/misc/apds9802als.c return ret_val; ret_val 133 drivers/misc/apds9802als.c ret_val = i2c_smbus_read_byte_data(client, 0x81); ret_val 134 drivers/misc/apds9802als.c if (ret_val < 0) ret_val 138 drivers/misc/apds9802als.c ret_val = ret_val & 0xFA; ret_val 141 drivers/misc/apds9802als.c ret_val = (ret_val | 0x01); ret_val 143 drivers/misc/apds9802als.c ret_val = (ret_val | 0x00); ret_val 145 drivers/misc/apds9802als.c ret_val = i2c_smbus_write_byte_data(client, 0x81, ret_val); ret_val 147 drivers/misc/apds9802als.c if (ret_val >= 0) { ret_val 156 drivers/misc/apds9802als.c return ret_val; ret_val 161 drivers/misc/apds9802als.c int ret_val; ret_val 165 drivers/misc/apds9802als.c ret_val = i2c_smbus_read_byte_data(client, 0x80); ret_val 166 drivers/misc/apds9802als.c if (ret_val < 0) ret_val 169 drivers/misc/apds9802als.c ret_val = ret_val | 0x01; ret_val 171 drivers/misc/apds9802als.c ret_val = ret_val & 0xFE; ret_val 172 drivers/misc/apds9802als.c ret_val = i2c_smbus_write_byte_data(client, 0x80, ret_val); ret_val 175 drivers/misc/apds9802als.c return ret_val; ret_val 195 drivers/misc/apds9802als.c int ret_val; ret_val 197 drivers/misc/apds9802als.c ret_val = i2c_smbus_write_byte_data(client, 0x80, 0x01); ret_val 198 drivers/misc/apds9802als.c if (ret_val < 0) { ret_val 200 drivers/misc/apds9802als.c return ret_val; ret_val 203 drivers/misc/apds9802als.c ret_val = i2c_smbus_write_byte_data(client, 0x81, 0x08); ret_val 204 drivers/misc/apds9802als.c if (ret_val < 0) ret_val 212 drivers/misc/apds9802als.c return ret_val; ret_val 3052 drivers/misc/habanalabs/goya/goya.c int i, rc, ret_val = 0; ret_val 3057 drivers/misc/habanalabs/goya/goya.c ret_val = -EINVAL; ret_val 3060 drivers/misc/habanalabs/goya/goya.c return ret_val; ret_val 42 drivers/misc/isl29020.c int ret_val, val; ret_val 57 drivers/misc/isl29020.c ret_val = i2c_smbus_read_byte_data(client, 0x01); /* LSB data */ ret_val 60 drivers/misc/isl29020.c if (ret_val < 0) { ret_val 62 drivers/misc/isl29020.c return ret_val; ret_val 65 drivers/misc/isl29020.c ret_val |= temp << 8; ret_val 70 drivers/misc/isl29020.c lux = ((((1 << (2 * (val & 3))))*1000) * ret_val) / 65536; ret_val 78 drivers/misc/isl29020.c int ret_val; ret_val 81 drivers/misc/isl29020.c ret_val = kstrtoul(buf, 10, &val); ret_val 82 drivers/misc/isl29020.c if (ret_val) ret_val 83 drivers/misc/isl29020.c return ret_val; ret_val 98 drivers/misc/isl29020.c ret_val = i2c_smbus_read_byte_data(client, 0x00); ret_val 99 drivers/misc/isl29020.c if (ret_val < 0) ret_val 100 drivers/misc/isl29020.c return ret_val; ret_val 102 drivers/misc/isl29020.c ret_val &= 0xFC; /*reset the bit before setting them */ ret_val 103 drivers/misc/isl29020.c ret_val |= val - 1; ret_val 104 drivers/misc/isl29020.c ret_val = i2c_smbus_write_byte_data(client, 0x00, ret_val); ret_val 106 drivers/misc/isl29020.c if (ret_val < 0) ret_val 107 drivers/misc/isl29020.c return ret_val; ret_val 113 drivers/misc/isl29020.c int ret_val; ret_val 115 drivers/misc/isl29020.c ret_val = i2c_smbus_read_byte_data(client, 0x00); ret_val 116 drivers/misc/isl29020.c if (ret_val < 0) ret_val 120 drivers/misc/isl29020.c ret_val |= 0x80; ret_val 122 drivers/misc/isl29020.c ret_val &= 0x7F; ret_val 124 drivers/misc/isl29020.c i2c_smbus_write_byte_data(client, 0x00, ret_val); ret_val 183 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c int ret_val = 0; ret_val 214 drivers/net/ethernet/atheros/atl1c/atl1c_ethtool.c return ret_val; ret_val 594 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c int ret_val; ret_val 604 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c ret_val = atl1c_phy_setup_adv(hw); ret_val 605 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c if (ret_val) { ret_val 609 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c return ret_val; ret_val 631 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c ret_val = atl1c_write_phy_reg(hw, MII_BMCR, mii_bmcr_data); ret_val 632 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c if (ret_val) ret_val 633 drivers/net/ethernet/atheros/atl1c/atl1c_hw.c return ret_val; ret_val 211 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c int ret_val = 0; ret_val 241 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c return ret_val; ret_val 252 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c int ret_val = 0; ret_val 273 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c ret_val = -EIO; ret_val 284 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c ret_val = -EIO; ret_val 295 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c ret_val = -EIO; ret_val 301 drivers/net/ethernet/atheros/atl1e/atl1e_ethtool.c return ret_val; ret_val 285 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c s32 ret_val; ret_val 352 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c ret_val = atl1e_write_phy_reg(hw, MII_ADVERTISE, mii_autoneg_adv_reg); ret_val 353 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c if (ret_val) ret_val 354 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c return ret_val; ret_val 357 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c ret_val = atl1e_write_phy_reg(hw, MII_CTRL1000, ret_val 359 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c if (ret_val) ret_val 360 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c return ret_val; ret_val 377 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c int ret_val; ret_val 382 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c ret_val = atl1e_write_phy_reg(hw, MII_BMCR, phy_data); ret_val 383 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c if (ret_val) { ret_val 399 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c return ret_val; ret_val 410 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c s32 ret_val; ret_val 430 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c ret_val = atl1e_write_phy_reg(hw, MII_DBG_ADDR, 0xB); ret_val 431 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c if (ret_val) ret_val 432 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c return ret_val; ret_val 433 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c ret_val = atl1e_write_phy_reg(hw, MII_DBG_DATA, 0xBC00); ret_val 434 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c if (ret_val) ret_val 435 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c return ret_val; ret_val 437 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c ret_val = atl1e_write_phy_reg(hw, MII_DBG_ADDR, 0); ret_val 438 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c if (ret_val) ret_val 439 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c return ret_val; ret_val 443 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c ret_val = atl1e_write_phy_reg(hw, MII_DBG_DATA, phy_val); ret_val 444 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c if (ret_val) ret_val 445 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c return ret_val; ret_val 447 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c ret_val = atl1e_write_phy_reg(hw, MII_DBG_ADDR, 0x12); ret_val 448 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c if (ret_val) ret_val 449 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c return ret_val; ret_val 450 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c ret_val = atl1e_write_phy_reg(hw, MII_DBG_DATA, 0x4C04); ret_val 451 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c if (ret_val) ret_val 452 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c return ret_val; ret_val 454 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c ret_val = atl1e_write_phy_reg(hw, MII_DBG_ADDR, 0x4); ret_val 455 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c if (ret_val) ret_val 456 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c return ret_val; ret_val 457 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c ret_val = atl1e_write_phy_reg(hw, MII_DBG_DATA, 0x8BBB); ret_val 458 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c if (ret_val) ret_val 459 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c return ret_val; ret_val 461 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c ret_val = atl1e_write_phy_reg(hw, MII_DBG_ADDR, 0x5); ret_val 462 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c if (ret_val) ret_val 463 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c return ret_val; ret_val 464 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c ret_val = atl1e_write_phy_reg(hw, MII_DBG_DATA, 0x2C46); ret_val 465 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c if (ret_val) ret_val 466 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c return ret_val; ret_val 471 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c ret_val = atl1e_write_phy_reg(hw, MII_INT_CTRL, 0xC00); ret_val 472 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c if (ret_val) { ret_val 475 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c return ret_val; ret_val 478 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c ret_val = atl1e_phy_setup_autoneg_adv(hw); ret_val 479 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c if (ret_val) { ret_val 482 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c return ret_val; ret_val 486 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c ret_val = atl1e_phy_commit(hw); ret_val 487 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c if (ret_val) { ret_val 489 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c return ret_val; ret_val 562 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c s32 ret_val = 0; ret_val 571 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c ret_val = atl1e_phy_init(hw); ret_val 573 drivers/net/ethernet/atheros/atl1e/atl1e_hw.c return ret_val; ret_val 639 drivers/net/ethernet/atheros/atlx/atl1.c s32 ret_val; ret_val 666 drivers/net/ethernet/atheros/atlx/atl1.c ret_val = atl1_write_phy_reg(hw, MII_BMCR, phy_data); ret_val 667 drivers/net/ethernet/atheros/atlx/atl1.c if (ret_val) { ret_val 685 drivers/net/ethernet/atheros/atlx/atl1.c return ret_val; ret_val 697 drivers/net/ethernet/atheros/atlx/atl1.c s32 ret_val; ret_val 755 drivers/net/ethernet/atheros/atlx/atl1.c ret_val = atl1_write_phy_reg(hw, MII_ADVERTISE, mii_autoneg_adv_reg); ret_val 756 drivers/net/ethernet/atheros/atlx/atl1.c if (ret_val) ret_val 757 drivers/net/ethernet/atheros/atlx/atl1.c return ret_val; ret_val 759 drivers/net/ethernet/atheros/atlx/atl1.c ret_val = atl1_write_phy_reg(hw, MII_ATLX_CR, mii_1000t_ctrl_reg); ret_val 760 drivers/net/ethernet/atheros/atlx/atl1.c if (ret_val) ret_val 761 drivers/net/ethernet/atheros/atlx/atl1.c return ret_val; ret_val 776 drivers/net/ethernet/atheros/atlx/atl1.c s32 ret_val; ret_val 784 drivers/net/ethernet/atheros/atlx/atl1.c ret_val = atl1_phy_setup_autoneg_adv(hw); ret_val 785 drivers/net/ethernet/atheros/atlx/atl1.c if (ret_val) { ret_val 789 drivers/net/ethernet/atheros/atlx/atl1.c return ret_val; ret_val 792 drivers/net/ethernet/atheros/atlx/atl1.c ret_val = atl1_phy_reset(hw); ret_val 793 drivers/net/ethernet/atheros/atlx/atl1.c if (ret_val) { ret_val 796 drivers/net/ethernet/atheros/atlx/atl1.c return ret_val; ret_val 799 drivers/net/ethernet/atheros/atlx/atl1.c return ret_val; ret_val 837 drivers/net/ethernet/atheros/atlx/atl1.c u32 ret_val = 0; ret_val 848 drivers/net/ethernet/atheros/atlx/atl1.c ret_val = atl1_write_phy_reg(hw, 18, 0xC00); ret_val 849 drivers/net/ethernet/atheros/atlx/atl1.c if (ret_val) ret_val 850 drivers/net/ethernet/atheros/atlx/atl1.c return ret_val; ret_val 852 drivers/net/ethernet/atheros/atlx/atl1.c ret_val = atl1_phy_leave_power_saving(hw); ret_val 853 drivers/net/ethernet/atheros/atlx/atl1.c if (ret_val) ret_val 854 drivers/net/ethernet/atheros/atlx/atl1.c return ret_val; ret_val 856 drivers/net/ethernet/atheros/atlx/atl1.c ret_val = atl1_setup_link(hw); ret_val 858 drivers/net/ethernet/atheros/atlx/atl1.c return ret_val; ret_val 871 drivers/net/ethernet/atheros/atlx/atl1.c s32 ret_val; ret_val 875 drivers/net/ethernet/atheros/atlx/atl1.c ret_val = atl1_read_phy_reg(hw, MII_ATLX_PSSR, &phy_data); ret_val 876 drivers/net/ethernet/atheros/atlx/atl1.c if (ret_val) ret_val 877 drivers/net/ethernet/atheros/atlx/atl1.c return ret_val; ret_val 1284 drivers/net/ethernet/atheros/atlx/atl1.c u32 ret_val; ret_val 1304 drivers/net/ethernet/atheros/atlx/atl1.c ret_val = atl1_get_speed_and_duplex(hw, &speed, &duplex); ret_val 1305 drivers/net/ethernet/atheros/atlx/atl1.c if (ret_val) ret_val 1306 drivers/net/ethernet/atheros/atlx/atl1.c return ret_val; ret_val 2345 drivers/net/ethernet/atheros/atlx/atl1.c int ret_val; ret_val 2413 drivers/net/ethernet/atheros/atlx/atl1.c ret_val = atl1_tx_csum(adapter, skb, ptpd); ret_val 2414 drivers/net/ethernet/atheros/atlx/atl1.c if (ret_val < 0) { ret_val 3256 drivers/net/ethernet/atheros/atlx/atl1.c int ret_val = 0; ret_val 3275 drivers/net/ethernet/atheros/atlx/atl1.c ret_val = -EINVAL; ret_val 3293 drivers/net/ethernet/atheros/atlx/atl1.c ret_val = -EINVAL; ret_val 3324 drivers/net/ethernet/atheros/atlx/atl1.c if (ret_val) ret_val 3332 drivers/net/ethernet/atheros/atlx/atl1.c } else if (!ret_val) { ret_val 3338 drivers/net/ethernet/atheros/atlx/atl1.c return ret_val; ret_val 1154 drivers/net/ethernet/atheros/atlx/atl2.c int ret_val; ret_val 1176 drivers/net/ethernet/atheros/atlx/atl2.c ret_val = atl2_get_speed_and_duplex(hw, &speed, &duplex); ret_val 1177 drivers/net/ethernet/atheros/atlx/atl2.c if (ret_val) ret_val 1178 drivers/net/ethernet/atheros/atlx/atl2.c return ret_val; ret_val 1525 drivers/net/ethernet/atheros/atlx/atl2.c u32 ret_val; ret_val 1527 drivers/net/ethernet/atheros/atlx/atl2.c ret_val = atl2_get_speed_and_duplex(hw, &speed, &duplex); ret_val 1528 drivers/net/ethernet/atheros/atlx/atl2.c if (ret_val) { ret_val 1913 drivers/net/ethernet/atheros/atlx/atl2.c int ret_val = 0; ret_val 1934 drivers/net/ethernet/atheros/atlx/atl2.c ret_val = -EIO; ret_val 1944 drivers/net/ethernet/atheros/atlx/atl2.c return ret_val; ret_val 1954 drivers/net/ethernet/atheros/atlx/atl2.c int max_len, first_dword, last_dword, ret_val = 0; ret_val 1977 drivers/net/ethernet/atheros/atlx/atl2.c ret_val = -EIO; ret_val 1989 drivers/net/ethernet/atheros/atlx/atl2.c ret_val = -EIO; ret_val 1999 drivers/net/ethernet/atheros/atlx/atl2.c ret_val = -EIO; ret_val 2005 drivers/net/ethernet/atheros/atlx/atl2.c return ret_val; ret_val 2430 drivers/net/ethernet/atheros/atlx/atl2.c u32 ret_val = 0; ret_val 2441 drivers/net/ethernet/atheros/atlx/atl2.c ret_val = atl2_phy_init(hw); ret_val 2443 drivers/net/ethernet/atheros/atlx/atl2.c return ret_val; ret_val 2456 drivers/net/ethernet/atheros/atlx/atl2.c s32 ret_val; ret_val 2460 drivers/net/ethernet/atheros/atlx/atl2.c ret_val = atl2_read_phy_reg(hw, MII_ATLX_PSSR, &phy_data); ret_val 2461 drivers/net/ethernet/atheros/atlx/atl2.c if (ret_val) ret_val 2462 drivers/net/ethernet/atheros/atlx/atl2.c return ret_val; ret_val 2562 drivers/net/ethernet/atheros/atlx/atl2.c s32 ret_val; ret_val 2618 drivers/net/ethernet/atheros/atlx/atl2.c ret_val = atl2_write_phy_reg(hw, MII_ADVERTISE, mii_autoneg_adv_reg); ret_val 2620 drivers/net/ethernet/atheros/atlx/atl2.c if (ret_val) ret_val 2621 drivers/net/ethernet/atheros/atlx/atl2.c return ret_val; ret_val 2635 drivers/net/ethernet/atheros/atlx/atl2.c s32 ret_val; ret_val 2639 drivers/net/ethernet/atheros/atlx/atl2.c ret_val = atl2_write_phy_reg(hw, MII_BMCR, phy_data); ret_val 2640 drivers/net/ethernet/atheros/atlx/atl2.c if (ret_val) { ret_val 2653 drivers/net/ethernet/atheros/atlx/atl2.c return ret_val; ret_val 2661 drivers/net/ethernet/atheros/atlx/atl2.c s32 ret_val; ret_val 2685 drivers/net/ethernet/atheros/atlx/atl2.c ret_val = atl2_write_phy_reg(hw, 18, 0xC00); ret_val 2686 drivers/net/ethernet/atheros/atlx/atl2.c if (ret_val) ret_val 2687 drivers/net/ethernet/atheros/atlx/atl2.c return ret_val; ret_val 2690 drivers/net/ethernet/atheros/atlx/atl2.c ret_val = atl2_phy_setup_autoneg_adv(hw); ret_val 2691 drivers/net/ethernet/atheros/atlx/atl2.c if (ret_val) ret_val 2692 drivers/net/ethernet/atheros/atlx/atl2.c return ret_val; ret_val 2695 drivers/net/ethernet/atheros/atlx/atl2.c ret_val = atl2_phy_commit(hw); ret_val 2696 drivers/net/ethernet/atheros/atlx/atl2.c if (ret_val) ret_val 2697 drivers/net/ethernet/atheros/atlx/atl2.c return ret_val; ret_val 2701 drivers/net/ethernet/atheros/atlx/atl2.c return ret_val; ret_val 4250 drivers/net/ethernet/broadcom/bnx2.c bnx2_nvram_read_dword(struct bnx2 *bp, u32 offset, u8 *ret_val, u32 cmd_flags) ret_val 4283 drivers/net/ethernet/broadcom/bnx2.c memcpy(ret_val, &v, 4); ret_val 1351 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c static int bnx2x_nvram_read_dword(struct bnx2x *bp, u32 offset, __be32 *ret_val, ret_val 1376 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c *ret_val = 0; ret_val 1388 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c *ret_val = cpu_to_be32(val); ret_val 2625 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u16 reg, u16 *ret_val) ret_val 2647 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c *ret_val = (u16)(val & EMAC_MDIO_COMM_DATA); ret_val 2655 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c *ret_val = 0; ret_val 2666 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u8 devad, u16 reg, u16 *ret_val) ret_val 2699 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c *ret_val = 0; ret_val 2714 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c *ret_val = (u16)(val & EMAC_MDIO_COMM_DATA); ret_val 2721 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c *ret_val = 0; ret_val 3185 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c u8 devad, u16 reg, u16 *ret_val) ret_val 3195 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c reg, ret_val); ret_val 394 drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h u8 devad, u16 reg, u16 *ret_val); ret_val 347 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c int ret_val = 0; ret_val 393 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c ret_val = -1; ret_val 397 drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c return ret_val; ret_val 53 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c int ret_val = 0; ret_val 94 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c ret_val = -1; ret_val 98 drivers/net/ethernet/cavium/liquidio/cn23xx_vf_device.c return ret_val; ret_val 534 drivers/net/ethernet/cavium/liquidio/lio_core.c int ret_val; ret_val 538 drivers/net/ethernet/cavium/liquidio/lio_core.c ret_val = octeon_create_droq(oct, q_no, num_descs, desc_size, app_ctx); ret_val 539 drivers/net/ethernet/cavium/liquidio/lio_core.c if (ret_val < 0) ret_val 540 drivers/net/ethernet/cavium/liquidio/lio_core.c return ret_val; ret_val 542 drivers/net/ethernet/cavium/liquidio/lio_core.c if (ret_val == 1) { ret_val 555 drivers/net/ethernet/cavium/liquidio/lio_core.c return ret_val; ret_val 495 drivers/net/ethernet/cavium/liquidio/lio_main.c int ret_val = 0; ret_val 508 drivers/net/ethernet/cavium/liquidio/lio_main.c ret_val++; ret_val 512 drivers/net/ethernet/cavium/liquidio/lio_main.c return ret_val; ret_val 1429 drivers/net/ethernet/cavium/thunder/thunder_bgx.c void *context, void **ret_val) ret_val 1316 drivers/net/ethernet/freescale/ucc_geth.c int ret_val; ret_val 1391 drivers/net/ethernet/freescale/ucc_geth.c ret_val = init_preamble_length(ug_info->prel, &ug_regs->maccfg2); ret_val 1392 drivers/net/ethernet/freescale/ucc_geth.c if (ret_val != 0) { ret_val 1395 drivers/net/ethernet/freescale/ucc_geth.c return ret_val; ret_val 2358 drivers/net/ethernet/freescale/ucc_geth.c int ret_val = -EINVAL; ret_val 2455 drivers/net/ethernet/freescale/ucc_geth.c ret_val = init_inter_frame_gap_params(ug_info->nonBackToBackIfgPart1, ret_val 2461 drivers/net/ethernet/freescale/ucc_geth.c if (ret_val != 0) { ret_val 2464 drivers/net/ethernet/freescale/ucc_geth.c return ret_val; ret_val 2469 drivers/net/ethernet/freescale/ucc_geth.c ret_val = init_half_duplex_params(ug_info->altBeb, ret_val 2477 drivers/net/ethernet/freescale/ucc_geth.c if (ret_val != 0) { ret_val 2480 drivers/net/ethernet/freescale/ucc_geth.c return ret_val; ret_val 2498 drivers/net/ethernet/freescale/ucc_geth.c ret_val = ucc_geth_alloc_tx(ugeth); ret_val 2499 drivers/net/ethernet/freescale/ucc_geth.c if (ret_val != 0) ret_val 2500 drivers/net/ethernet/freescale/ucc_geth.c return ret_val; ret_val 2502 drivers/net/ethernet/freescale/ucc_geth.c ret_val = ucc_geth_alloc_rx(ugeth); ret_val 2503 drivers/net/ethernet/freescale/ucc_geth.c if (ret_val != 0) ret_val 2504 drivers/net/ethernet/freescale/ucc_geth.c return ret_val; ret_val 2994 drivers/net/ethernet/freescale/ucc_geth.c if ((ret_val = fill_init_enet_entries(ugeth, &(ugeth-> ret_val 3002 drivers/net/ethernet/freescale/ucc_geth.c return ret_val; ret_val 3007 drivers/net/ethernet/freescale/ucc_geth.c if ((ret_val = ret_val 3016 drivers/net/ethernet/freescale/ucc_geth.c return ret_val; ret_val 3021 drivers/net/ethernet/freescale/ucc_geth.c if ((ret_val = rx_bd_buffer_set(ugeth, (u8) i)) != 0) { ret_val 3024 drivers/net/ethernet/freescale/ucc_geth.c return ret_val; ret_val 482 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c int i, j, lc, good_cnt, ret_val = 0; ret_val 516 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ret_val = NIC_LB_TEST_TX_CNT_ERR; ret_val 530 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c ret_val = NIC_LB_TEST_RX_CNT_ERR; ret_val 544 drivers/net/ethernet/hisilicon/hns/hns_ethtool.c return ret_val; ret_val 240 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c int ret_val = 0; ret_val 266 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c ret_val = HNS3_NIC_LB_TEST_TX_CNT_ERR; ret_val 277 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c ret_val = HNS3_NIC_LB_TEST_RX_CNT_ERR; ret_val 288 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c return ret_val; ret_val 427 drivers/net/ethernet/intel/e1000/e1000_ethtool.c int ret_val = 0; ret_val 444 drivers/net/ethernet/intel/e1000/e1000_ethtool.c ret_val = e1000_read_eeprom(hw, first_word, ret_val 449 drivers/net/ethernet/intel/e1000/e1000_ethtool.c ret_val = e1000_read_eeprom(hw, first_word + i, 1, ret_val 451 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if (ret_val) ret_val 464 drivers/net/ethernet/intel/e1000/e1000_ethtool.c return ret_val; ret_val 474 drivers/net/ethernet/intel/e1000/e1000_ethtool.c int max_len, first_word, last_word, ret_val = 0; ret_val 497 drivers/net/ethernet/intel/e1000/e1000_ethtool.c ret_val = e1000_read_eeprom(hw, first_word, 1, ret_val 501 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if (((eeprom->offset + eeprom->len) & 1) && (ret_val == 0)) { ret_val 505 drivers/net/ethernet/intel/e1000/e1000_ethtool.c ret_val = e1000_read_eeprom(hw, last_word, 1, ret_val 518 drivers/net/ethernet/intel/e1000/e1000_ethtool.c ret_val = e1000_write_eeprom(hw, first_word, ret_val 522 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if ((ret_val == 0) && (first_word <= EEPROM_CHECKSUM_REG)) ret_val 526 drivers/net/ethernet/intel/e1000/e1000_ethtool.c return ret_val; ret_val 978 drivers/net/ethernet/intel/e1000/e1000_ethtool.c int i, ret_val; ret_val 988 drivers/net/ethernet/intel/e1000/e1000_ethtool.c ret_val = 1; ret_val 997 drivers/net/ethernet/intel/e1000/e1000_ethtool.c ret_val = 2; ret_val 1018 drivers/net/ethernet/intel/e1000/e1000_ethtool.c ret_val = 3; ret_val 1028 drivers/net/ethernet/intel/e1000/e1000_ethtool.c ret_val = 4; ret_val 1047 drivers/net/ethernet/intel/e1000/e1000_ethtool.c ret_val = 5; ret_val 1055 drivers/net/ethernet/intel/e1000/e1000_ethtool.c ret_val = 6; ret_val 1079 drivers/net/ethernet/intel/e1000/e1000_ethtool.c ret_val = 7; ret_val 1089 drivers/net/ethernet/intel/e1000/e1000_ethtool.c ret_val = 8; ret_val 1099 drivers/net/ethernet/intel/e1000/e1000_ethtool.c return ret_val; ret_val 1384 drivers/net/ethernet/intel/e1000/e1000_ethtool.c int i, j, k, l, lc, good_cnt, ret_val = 0; ret_val 1422 drivers/net/ethernet/intel/e1000/e1000_ethtool.c ret_val = e1000_check_lbtest_frame( ret_val 1426 drivers/net/ethernet/intel/e1000/e1000_ethtool.c if (!ret_val) ret_val 1437 drivers/net/ethernet/intel/e1000/e1000_ethtool.c ret_val = 13; /* ret_val is the same as mis-compare */ ret_val 1441 drivers/net/ethernet/intel/e1000/e1000_ethtool.c ret_val = 14; /* error code for time out error */ ret_val 1445 drivers/net/ethernet/intel/e1000/e1000_ethtool.c return ret_val; ret_val 132 drivers/net/ethernet/intel/e1000/e1000_hw.c u32 ret_val; ret_val 141 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, 0x2F5B, &phy_saved_data); ret_val 383 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 477 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_get_auto_rd_done(hw); ret_val 478 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 479 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 530 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 535 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_id_led_init(hw); ret_val 536 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 538 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 609 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_setup_link(hw); ret_val 637 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 647 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 660 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_eeprom(hw, EEPROM_SERDES_AMPLITUDE, 1, ret_val 662 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 663 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 668 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 670 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 671 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 690 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 702 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_eeprom(hw, EEPROM_INIT_CONTROL2_REG, ret_val 704 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 739 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_eeprom(hw, EEPROM_INIT_CONTROL2_REG, ret_val 741 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 751 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = (hw->media_type == e1000_media_type_copper) ? ret_val 789 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 807 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 819 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_adjust_serdes_amplitude(hw); ret_val 820 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 821 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 827 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_set_vco_speed(hw); ret_val 828 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 829 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 920 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_check_for_link(hw); ret_val 921 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 923 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 944 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 947 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_phy_reset(hw); ret_val 948 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 950 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 958 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 963 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_copper_link_rtl_setup(hw); ret_val 964 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 966 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 982 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_copper_link_rtl_setup(hw); ret_val 984 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 986 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1006 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 1022 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_phy_hw_reset(hw); ret_val 1023 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1024 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1028 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_detect_gig_phy(hw); ret_val 1029 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 1031 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1036 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_set_phy_mode(hw); ret_val 1037 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1038 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1042 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 1045 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 1065 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 1071 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_phy_reset(hw); ret_val 1072 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 1074 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1088 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_set_d3_lplu_state(hw, false); ret_val 1089 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 1091 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1096 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, IGP01E1000_PHY_PORT_CTRL, &phy_data); ret_val 1097 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1098 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1125 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, IGP01E1000_PHY_PORT_CTRL, phy_data); ret_val 1126 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1127 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1145 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 1148 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1149 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1151 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 1154 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1155 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1157 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 1159 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1160 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1162 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 1164 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1165 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1168 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_1000T_CTRL, &phy_data); ret_val 1169 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1170 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1191 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, PHY_1000T_CTRL, phy_data); ret_val 1192 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1193 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1205 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 1212 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); ret_val 1213 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1214 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1252 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, phy_data); ret_val 1253 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1254 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1260 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 1263 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1264 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1273 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, ret_val 1276 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1277 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1284 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, ret_val 1287 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1288 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1293 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_phy_reset(hw); ret_val 1294 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 1296 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1311 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 1330 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_phy_setup_autoneg(hw); ret_val 1331 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 1333 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1340 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_CTRL, &phy_data); ret_val 1341 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1342 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1345 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, PHY_CTRL, phy_data); ret_val 1346 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1347 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1353 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_wait_autoneg(hw); ret_val 1354 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 1357 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1381 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 1386 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_config_mac_to_phy(hw); ret_val 1387 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 1389 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1392 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_config_fc_after_link_up(hw); ret_val 1393 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 1395 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1400 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_config_dsp_after_link_change(hw, true); ret_val 1401 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 1403 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1418 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 1423 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_copper_link_preconfig(hw); ret_val 1424 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1425 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1428 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_copper_link_igp_setup(hw); ret_val 1429 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1430 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1432 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_copper_link_mgp_setup(hw); ret_val 1433 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1434 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1436 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = gbe_dhg_phy_setup(hw); ret_val 1437 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 1439 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1447 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_copper_link_autoneg(hw); ret_val 1448 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1449 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1455 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_phy_force_speed_duplex(hw); ret_val 1456 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 1458 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1466 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); ret_val 1467 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1468 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1469 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); ret_val 1470 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1471 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1475 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_copper_link_postconfig(hw); ret_val 1476 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1477 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1497 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 1502 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_AUTONEG_ADV, &mii_autoneg_adv_reg); ret_val 1503 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1504 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1507 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_1000T_CTRL, &mii_1000t_ctrl_reg); ret_val 1508 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1509 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1619 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, PHY_AUTONEG_ADV, mii_autoneg_adv_reg); ret_val 1620 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1621 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1628 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, PHY_1000T_CTRL, ret_val 1630 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1631 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1646 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 1668 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_CTRL, &mii_ctrl_reg); ret_val 1669 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1670 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1716 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 1718 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1719 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1725 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 1727 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1728 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1740 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 1742 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1743 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1748 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 1750 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1751 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1755 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, PHY_CTRL, mii_ctrl_reg); ret_val 1756 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1757 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1778 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 1780 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1781 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1783 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 1785 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1786 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1796 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_phy_reset_dsp(hw); ret_val 1797 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 1799 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1812 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 1814 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1815 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1817 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 1819 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1820 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1830 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 1833 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1834 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1837 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 1840 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1841 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1847 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 1849 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1850 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1853 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 1855 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1856 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1863 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_polarity_reversal_workaround(hw); ret_val 1864 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1865 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1909 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 1927 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_CTRL, &phy_data); ret_val 1928 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1929 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 1947 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_STATUS, ret_val 1949 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 1950 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2051 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 2068 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_force_mac_fc(hw); ret_val 2069 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 2071 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2085 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &mii_status_reg); ret_val 2086 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 2087 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2088 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &mii_status_reg); ret_val 2089 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 2090 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2099 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_AUTONEG_ADV, ret_val 2101 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 2102 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2103 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_LP_ABILITY, ret_val 2105 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 2106 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2230 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 2232 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 2235 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2244 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_force_mac_fc(hw); ret_val 2245 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 2248 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2270 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val = E1000_SUCCESS; ret_val 2299 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_config_fc_after_link_up(hw); ret_val 2300 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 2361 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2379 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 2414 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); ret_val 2415 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 2416 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2417 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); ret_val 2418 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 2419 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2443 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 2477 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_config_mac_to_phy(hw); ret_val 2478 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 2481 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2490 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_config_fc_after_link_up(hw); ret_val 2491 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 2493 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2507 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 2510 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 2513 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2563 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 2597 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_AUTONEG_EXP, &phy_data); ret_val 2598 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 2599 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2604 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 2606 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 2607 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2627 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 2638 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); ret_val 2639 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 2640 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2641 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); ret_val 2642 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 2643 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2794 drivers/net/ethernet/intel/e1000/e1000_hw.c u32 ret_val; ret_val 2801 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg_ex(hw, IGP01E1000_PHY_PAGE_SELECT, ret_val 2803 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 2807 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg_ex(hw, MAX_PHY_REG_ADDRESS & reg_addr, ret_val 2812 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2931 drivers/net/ethernet/intel/e1000/e1000_hw.c u32 ret_val; ret_val 2938 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg_ex(hw, IGP01E1000_PHY_PAGE_SELECT, ret_val 2940 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 2942 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 2946 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg_ex(hw, MAX_PHY_REG_ADDRESS & reg_addr, ret_val 2950 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 3106 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 3111 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_phy_hw_reset(hw); ret_val 3112 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 3113 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 3116 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_CTRL, &phy_data); ret_val 3117 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 3118 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 3121 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, PHY_CTRL, phy_data); ret_val 3122 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 3123 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 3143 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 phy_init_status, ret_val; ret_val 3151 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_ID1, &phy_id_high); ret_val 3152 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 3153 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 3157 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_ID2, &phy_id_low); ret_val 3158 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 3159 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 3216 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 3219 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, 29, 0x001d); ret_val 3220 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 3222 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, 30, 0x00c1); ret_val 3223 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 3225 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, 30, 0x0000); ret_val 3226 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 3228 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = E1000_SUCCESS; ret_val 3231 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 3244 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 3260 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_check_polarity(hw, &polarity); ret_val 3261 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 3262 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 3266 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, IGP01E1000_PHY_PORT_STATUS, &phy_data); ret_val 3267 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 3268 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 3279 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_1000T_STATUS, &phy_data); ret_val 3280 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 3281 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 3291 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_get_cable_length(hw, &min_length, &max_length); ret_val 3292 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 3293 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 3323 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 3332 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); ret_val 3333 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 3334 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 3348 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_check_polarity(hw, &polarity); ret_val 3349 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 3350 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 3353 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_STATUS, &phy_data); ret_val 3354 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 3355 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 3370 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_1000T_STATUS, &phy_data); ret_val 3371 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 3372 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 3394 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 3411 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); ret_val 3412 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 3413 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 3415 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &phy_data); ret_val 3416 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 3417 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 3454 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val = E1000_SUCCESS; ret_val 3522 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_eeprom(hw, EEPROM_CFG, 1, &eeprom_size); ret_val 3523 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 3524 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 3536 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 4506 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val = E1000_SUCCESS; ret_val 4520 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, IGP01E1000_GMII_FIFO, ret_val 4522 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 4523 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 4524 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, IGP01E1000_GMII_FIFO, ret_val 4527 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 4528 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 4556 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val = E1000_SUCCESS; ret_val 4570 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, IGP01E1000_GMII_FIFO, ret_val 4572 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 4573 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 4901 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 4910 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_STATUS, ret_val 4912 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 4913 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 4953 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 4955 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 4956 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5015 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 5020 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_STATUS, ret_val 5022 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5023 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5030 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, IGP01E1000_PHY_PORT_STATUS, ret_val 5032 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5033 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5041 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5044 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5045 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5080 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 5084 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, IGP01E1000_PHY_LINK_HEALTH, ret_val 5086 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5087 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5092 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, M88E1000_PHY_SPEC_STATUS, ret_val 5094 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5095 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5115 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 5117 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_get_cable_length(hw, &min_length, &max_length); ret_val 5118 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5119 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5126 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, dsp_reg_array[i], ret_val 5128 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5129 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5133 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, dsp_reg_array[i], ret_val 5135 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5136 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5144 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_1000T_STATUS, &phy_data); ret_val 5145 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5146 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5150 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_1000T_STATUS, ret_val 5152 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5153 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5159 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, ret_val 5162 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5163 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5190 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 5197 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_get_speed_and_duplex(hw, &speed, &duplex); ret_val 5198 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) { ret_val 5200 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5204 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_1000Mb_check_cable_length(hw); ret_val 5205 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5206 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5213 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5216 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5217 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5220 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, 0x2F5B, 0x0003); ret_val 5222 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5223 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5227 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, 0x0000, ret_val 5229 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5230 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5232 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5235 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5236 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5241 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5244 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5245 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5248 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, 0x0000, ret_val 5250 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5251 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5256 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5259 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5260 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5269 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5272 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5273 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5276 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, 0x2F5B, 0x0003); ret_val 5278 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5279 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5283 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, 0x0000, ret_val 5285 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5286 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5287 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5290 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5291 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5293 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, 0x0000, ret_val 5295 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5296 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5301 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5304 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5305 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5323 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 5328 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5331 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5332 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5336 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5339 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5340 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5341 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5344 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5345 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5369 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 5381 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5383 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5384 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5391 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5394 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5395 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5404 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5407 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5408 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5411 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5414 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5415 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5417 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5420 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5421 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5424 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5427 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5428 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5436 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5439 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5440 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5444 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5447 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5448 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5451 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5454 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5455 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5468 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 5482 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5484 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5485 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5487 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_PAGE_SELECT, 0x0005); ret_val 5488 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5489 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5491 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, M88E1000_PHY_GEN_CONTROL, &phy_data); ret_val 5492 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5493 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5496 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_GEN_CONTROL, phy_data); ret_val 5497 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5498 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5502 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_PAGE_SELECT, 0x0004); ret_val 5503 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5504 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5506 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, M88E1000_PHY_GEN_CONTROL, &phy_data); ret_val 5507 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5508 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5511 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_GEN_CONTROL, phy_data); ret_val 5512 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5513 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5515 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = ret_val 5517 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5518 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5548 drivers/net/ethernet/intel/e1000/e1000_hw.c s32 ret_val; ret_val 5556 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_PAGE_SELECT, 0x0019); ret_val 5557 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5558 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5559 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xFFFF); ret_val 5560 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5561 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5563 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_PAGE_SELECT, 0x0000); ret_val 5564 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5565 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5573 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &mii_status_reg); ret_val 5574 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5575 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5577 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &mii_status_reg); ret_val 5578 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5579 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5591 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_PAGE_SELECT, 0x0019); ret_val 5592 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5593 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5595 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xFFF0); ret_val 5596 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5597 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5599 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xFF00); ret_val 5600 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5601 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5603 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_GEN_CONTROL, 0x0000); ret_val 5604 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5605 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5607 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_write_phy_reg(hw, M88E1000_PHY_PAGE_SELECT, 0x0000); ret_val 5608 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5609 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5617 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &mii_status_reg); ret_val 5618 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5619 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 5621 drivers/net/ethernet/intel/e1000/e1000_hw.c ret_val = e1000_read_phy_reg(hw, PHY_STATUS, &mii_status_reg); ret_val 5622 drivers/net/ethernet/intel/e1000/e1000_hw.c if (ret_val) ret_val 5623 drivers/net/ethernet/intel/e1000/e1000_hw.c return ret_val; ret_val 4836 drivers/net/ethernet/intel/e1000/e1000_main.c int ret_val = pci_set_mwi(adapter->pdev); ret_val 4838 drivers/net/ethernet/intel/e1000/e1000_main.c if (ret_val) ret_val 41 drivers/net/ethernet/intel/e1000e/80003es2lan.c s32 ret_val; ret_val 57 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000e_get_phy_id(hw); ret_val 63 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 239 drivers/net/ethernet/intel/e1000e/80003es2lan.c s32 ret_val; ret_val 241 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000_acquire_swfw_sync_80003es2lan(hw, E1000_SWFW_EEP_SM); ret_val 242 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 243 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 245 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000e_acquire_nvm(hw); ret_val 247 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 250 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 343 drivers/net/ethernet/intel/e1000e/80003es2lan.c s32 ret_val; ret_val 347 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000_acquire_phy_80003es2lan(hw); ret_val 348 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 349 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 362 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000e_write_phy_reg_mdic(hw, page_select, temp); ret_val 363 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) { ret_val 365 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 376 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000e_read_phy_reg_mdic(hw, page_select, &temp); ret_val 385 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000e_read_phy_reg_mdic(hw, ret_val 391 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000e_read_phy_reg_mdic(hw, ret_val 398 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 412 drivers/net/ethernet/intel/e1000e/80003es2lan.c s32 ret_val; ret_val 416 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000_acquire_phy_80003es2lan(hw); ret_val 417 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 418 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 431 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000e_write_phy_reg_mdic(hw, page_select, temp); ret_val 432 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) { ret_val 434 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 445 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000e_read_phy_reg_mdic(hw, page_select, &temp); ret_val 454 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000e_write_phy_reg_mdic(hw, ret_val 460 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000e_write_phy_reg_mdic(hw, ret_val 467 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 523 drivers/net/ethernet/intel/e1000e/80003es2lan.c s32 ret_val; ret_val 530 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_rphy(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); ret_val 531 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 532 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 535 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_wphy(hw, GG82563_PHY_SPEC_CTRL, phy_data); ret_val 536 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 537 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 541 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_rphy(hw, MII_BMCR, &phy_data); ret_val 542 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 543 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 550 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_wphy(hw, MII_BMCR, phy_data); ret_val 551 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 552 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 559 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000e_phy_has_link_generic(hw, PHY_FORCE_LIMIT, ret_val 561 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 562 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 568 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000e_phy_reset_dsp(hw); ret_val 569 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 570 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 574 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000e_phy_has_link_generic(hw, PHY_FORCE_LIMIT, ret_val 576 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 577 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 580 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_rphy(hw, GG82563_PHY_MAC_SPEC_CTRL, &phy_data); ret_val 581 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 582 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 597 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_wphy(hw, GG82563_PHY_MAC_SPEC_CTRL, phy_data); ret_val 599 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 612 drivers/net/ethernet/intel/e1000e/80003es2lan.c s32 ret_val; ret_val 615 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_rphy(hw, GG82563_PHY_DSP_DISTANCE, &phy_data); ret_val 616 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 617 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 643 drivers/net/ethernet/intel/e1000e/80003es2lan.c s32 ret_val; ret_val 646 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000e_get_speed_and_duplex_copper(hw, speed, duplex); ret_val 649 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000e_get_speed_and_duplex_fiber_serdes(hw, ret_val 654 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 666 drivers/net/ethernet/intel/e1000e/80003es2lan.c s32 ret_val; ret_val 672 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000e_disable_pcie_master(hw); ret_val 673 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 687 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000_acquire_phy_80003es2lan(hw); ret_val 688 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 689 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 696 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = ret_val 699 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (!ret_val) { ret_val 701 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000_write_kmrn_reg_80003es2lan(hw, ret_val 704 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 710 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000e_get_auto_rd_done(hw); ret_val 711 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 713 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 732 drivers/net/ethernet/intel/e1000e/80003es2lan.c s32 ret_val; ret_val 739 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = mac->ops.id_led_init(hw); ret_val 741 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 757 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = mac->ops.setup_link(hw); ret_val 758 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 759 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 762 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = ret_val 765 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (!ret_val) { ret_val 767 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000_write_kmrn_reg_80003es2lan(hw, ret_val 770 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 812 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = ret_val 815 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (!ret_val) { ret_val 828 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 883 drivers/net/ethernet/intel/e1000e/80003es2lan.c s32 ret_val; ret_val 887 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_rphy(hw, GG82563_PHY_MAC_SPEC_CTRL, &data); ret_val 888 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 889 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 895 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_wphy(hw, GG82563_PHY_MAC_SPEC_CTRL, data); ret_val 896 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 897 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 906 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_rphy(hw, GG82563_PHY_SPEC_CTRL, &data); ret_val 907 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 908 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 935 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_wphy(hw, GG82563_PHY_SPEC_CTRL, data); ret_val 936 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 937 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 940 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = hw->phy.ops.commit(hw); ret_val 941 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) { ret_val 943 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 950 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000_write_kmrn_reg_80003es2lan(hw, reg, data); ret_val 951 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 952 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 955 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000_read_kmrn_reg_80003es2lan(hw, reg, &data); ret_val 956 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 957 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 959 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000_write_kmrn_reg_80003es2lan(hw, reg, data); ret_val 960 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 961 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 963 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_rphy(hw, GG82563_PHY_SPEC_CTRL_2, &data); ret_val 964 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 965 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 968 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_wphy(hw, GG82563_PHY_SPEC_CTRL_2, data); ret_val 969 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 970 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 976 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_rphy(hw, GG82563_PHY_PWR_MGMT_CTRL, &data); ret_val 977 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 978 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 987 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_wphy(hw, GG82563_PHY_PWR_MGMT_CTRL, data); ret_val 988 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 989 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 991 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_rphy(hw, GG82563_PHY_KMRN_MODE_CTRL, &data); ret_val 992 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 993 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 996 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_wphy(hw, GG82563_PHY_KMRN_MODE_CTRL, data); ret_val 997 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 998 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1004 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_rphy(hw, GG82563_PHY_INBAND_CTRL, &data); ret_val 1005 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 1006 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1009 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_wphy(hw, GG82563_PHY_INBAND_CTRL, data); ret_val 1010 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 1011 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1026 drivers/net/ethernet/intel/e1000e/80003es2lan.c s32 ret_val; ret_val 1038 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000_write_kmrn_reg_80003es2lan(hw, GG82563_REG(0x34, 4), ret_val 1040 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 1041 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1042 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000_read_kmrn_reg_80003es2lan(hw, GG82563_REG(0x34, 9), ret_val 1044 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 1045 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1047 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000_write_kmrn_reg_80003es2lan(hw, GG82563_REG(0x34, 9), ret_val 1049 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 1050 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1051 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = ret_val 1055 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 1056 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1058 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = ret_val 1062 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 1063 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1065 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000_copper_link_setup_gg82563_80003es2lan(hw); ret_val 1066 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 1067 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1082 drivers/net/ethernet/intel/e1000e/80003es2lan.c s32 ret_val = 0; ret_val 1087 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000e_get_speed_and_duplex_copper(hw, &speed, ret_val 1089 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 1090 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1093 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000_cfg_kmrn_1000_80003es2lan(hw); ret_val 1095 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000_cfg_kmrn_10_100_80003es2lan(hw, duplex); ret_val 1098 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1111 drivers/net/ethernet/intel/e1000e/80003es2lan.c s32 ret_val; ret_val 1117 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = ret_val 1121 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 1122 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1131 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_rphy(hw, GG82563_PHY_KMRN_MODE_CTRL, ®_data); ret_val 1132 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 1133 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1135 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_rphy(hw, GG82563_PHY_KMRN_MODE_CTRL, ®_data2); ret_val 1136 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 1137 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1158 drivers/net/ethernet/intel/e1000e/80003es2lan.c s32 ret_val; ret_val 1164 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = ret_val 1168 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 1169 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1178 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_rphy(hw, GG82563_PHY_KMRN_MODE_CTRL, ®_data); ret_val 1179 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 1180 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1182 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1e_rphy(hw, GG82563_PHY_KMRN_MODE_CTRL, ®_data2); ret_val 1183 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 1184 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1207 drivers/net/ethernet/intel/e1000e/80003es2lan.c s32 ret_val; ret_val 1209 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000_acquire_mac_csr_80003es2lan(hw); ret_val 1210 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 1211 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1225 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1242 drivers/net/ethernet/intel/e1000e/80003es2lan.c s32 ret_val; ret_val 1244 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000_acquire_mac_csr_80003es2lan(hw); ret_val 1245 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 1246 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1257 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 1266 drivers/net/ethernet/intel/e1000e/80003es2lan.c s32 ret_val; ret_val 1272 drivers/net/ethernet/intel/e1000e/80003es2lan.c ret_val = e1000_check_alt_mac_addr_generic(hw); ret_val 1273 drivers/net/ethernet/intel/e1000e/80003es2lan.c if (ret_val) ret_val 1274 drivers/net/ethernet/intel/e1000e/80003es2lan.c return ret_val; ret_val 48 drivers/net/ethernet/intel/e1000e/82571.c s32 ret_val; ret_val 83 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000_get_phy_id_82571(hw); ret_val 84 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) { ret_val 86 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 94 drivers/net/ethernet/intel/e1000e/82571.c ret_val = -E1000_ERR_PHY; ret_val 98 drivers/net/ethernet/intel/e1000e/82571.c ret_val = -E1000_ERR_PHY; ret_val 103 drivers/net/ethernet/intel/e1000e/82571.c ret_val = -E1000_ERR_PHY; ret_val 106 drivers/net/ethernet/intel/e1000e/82571.c ret_val = -E1000_ERR_PHY; ret_val 110 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 113 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 391 drivers/net/ethernet/intel/e1000e/82571.c s32 ret_val; ret_val 408 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1e_rphy(hw, MII_PHYSID1, &phy_id); ret_val 409 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 410 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 414 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1e_rphy(hw, MII_PHYSID2, &phy_id); ret_val 415 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 416 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 564 drivers/net/ethernet/intel/e1000e/82571.c s32 ret_val; ret_val 567 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000_get_hw_semaphore_82573(hw); ret_val 568 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 570 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 649 drivers/net/ethernet/intel/e1000e/82571.c s32 ret_val; ret_val 651 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000_get_hw_semaphore_82571(hw); ret_val 652 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 653 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 659 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000e_acquire_nvm(hw); ret_val 663 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 666 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 696 drivers/net/ethernet/intel/e1000e/82571.c s32 ret_val; ret_val 702 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000_write_nvm_eewr_82571(hw, offset, words, data); ret_val 706 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000e_write_nvm_spi(hw, offset, words, data); ret_val 709 drivers/net/ethernet/intel/e1000e/82571.c ret_val = -E1000_ERR_NVM; ret_val 713 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 727 drivers/net/ethernet/intel/e1000e/82571.c s32 ret_val; ret_val 730 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000e_update_nvm_checksum_generic(hw); ret_val 731 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 732 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 810 drivers/net/ethernet/intel/e1000e/82571.c s32 ret_val = 0; ret_val 826 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000e_poll_eerd_eewr_done(hw, E1000_NVM_POLL_WRITE); ret_val 827 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 832 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000e_poll_eerd_eewr_done(hw, E1000_NVM_POLL_WRITE); ret_val 833 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 837 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 878 drivers/net/ethernet/intel/e1000e/82571.c s32 ret_val; ret_val 881 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1e_rphy(hw, IGP02E1000_PHY_POWER_MGMT, &data); ret_val 882 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 883 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 887 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1e_wphy(hw, IGP02E1000_PHY_POWER_MGMT, data); ret_val 888 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 889 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 892 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_CONFIG, &data); ret_val 893 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 894 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 896 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1e_wphy(hw, IGP01E1000_PHY_PORT_CONFIG, data); ret_val 897 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 898 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 901 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1e_wphy(hw, IGP02E1000_PHY_POWER_MGMT, data); ret_val 908 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 910 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 911 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 914 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1e_wphy(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 916 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 917 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 919 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 921 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 922 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 925 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1e_wphy(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 927 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 928 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 944 drivers/net/ethernet/intel/e1000e/82571.c s32 ret_val; ret_val 949 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000e_disable_pcie_master(hw); ret_val 950 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 969 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000_get_hw_semaphore_82573(hw); ret_val 973 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000_get_hw_semaphore_82574(hw); ret_val 988 drivers/net/ethernet/intel/e1000e/82571.c if (!ret_val) ret_val 994 drivers/net/ethernet/intel/e1000e/82571.c if (!ret_val) ret_val 1009 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000e_get_auto_rd_done(hw); ret_val 1010 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 1012 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 1044 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000_check_alt_mac_addr_generic(hw); ret_val 1045 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 1046 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 1068 drivers/net/ethernet/intel/e1000e/82571.c s32 ret_val; ret_val 1074 drivers/net/ethernet/intel/e1000e/82571.c ret_val = mac->ops.id_led_init(hw); ret_val 1076 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 1098 drivers/net/ethernet/intel/e1000e/82571.c ret_val = mac->ops.setup_link(hw); ret_val 1133 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 1362 drivers/net/ethernet/intel/e1000e/82571.c s32 ret_val; ret_val 1367 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1e_rphy(hw, E1000_RECEIVE_ERROR_COUNTER, &receive_errors); ret_val 1368 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 1371 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1e_rphy(hw, E1000_BASE1000T_STATUS, &status_1kbt); ret_val 1372 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 1423 drivers/net/ethernet/intel/e1000e/82571.c s32 ret_val; ret_val 1433 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000e_copper_link_setup_m88(hw); ret_val 1436 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000e_copper_link_setup_igp(hw); ret_val 1442 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 1443 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 1502 drivers/net/ethernet/intel/e1000e/82571.c s32 ret_val = 0; ret_val 1574 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000e_config_fc_after_link_up(hw); ret_val 1575 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) { ret_val 1638 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 1651 drivers/net/ethernet/intel/e1000e/82571.c s32 ret_val; ret_val 1653 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000_read_nvm(hw, NVM_ID_LED_SETTINGS, 1, data); ret_val 1654 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) { ret_val 1656 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 1729 drivers/net/ethernet/intel/e1000e/82571.c s32 ret_val; ret_val 1738 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000_read_nvm(hw, 0x10, 1, &data); ret_val 1739 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 1740 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 1750 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000_read_nvm(hw, 0x23, 1, &data); ret_val 1751 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 1752 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 1756 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000_write_nvm(hw, 0x23, 1, &data); ret_val 1757 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 1758 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 1759 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000e_update_nvm_checksum(hw); ret_val 1760 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 1761 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 1775 drivers/net/ethernet/intel/e1000e/82571.c s32 ret_val; ret_val 1781 drivers/net/ethernet/intel/e1000e/82571.c ret_val = e1000_check_alt_mac_addr_generic(hw); ret_val 1782 drivers/net/ethernet/intel/e1000e/82571.c if (ret_val) ret_val 1783 drivers/net/ethernet/intel/e1000e/82571.c return ret_val; ret_val 256 drivers/net/ethernet/intel/e1000e/ethtool.c int ret_val = 0; ret_val 270 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = -EINVAL; ret_val 280 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = -EOPNOTSUPP; ret_val 287 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = -EINVAL; ret_val 310 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = -EINVAL; ret_val 337 drivers/net/ethernet/intel/e1000e/ethtool.c return ret_val; ret_val 501 drivers/net/ethernet/intel/e1000e/ethtool.c int ret_val = 0; ret_val 520 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = e1000_read_nvm(hw, first_word, ret_val 525 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = e1000_read_nvm(hw, first_word + i, 1, ret_val 527 drivers/net/ethernet/intel/e1000e/ethtool.c if (ret_val) ret_val 534 drivers/net/ethernet/intel/e1000e/ethtool.c if (ret_val) { ret_val 547 drivers/net/ethernet/intel/e1000e/ethtool.c return ret_val; ret_val 560 drivers/net/ethernet/intel/e1000e/ethtool.c int ret_val = 0; ret_val 588 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = e1000_read_nvm(hw, first_word, 1, &eeprom_buff[0]); ret_val 591 drivers/net/ethernet/intel/e1000e/ethtool.c if (((eeprom->offset + eeprom->len) & 1) && (!ret_val)) ret_val 594 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = e1000_read_nvm(hw, last_word, 1, ret_val 597 drivers/net/ethernet/intel/e1000e/ethtool.c if (ret_val) ret_val 609 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = e1000_write_nvm(hw, first_word, ret_val 612 drivers/net/ethernet/intel/e1000e/ethtool.c if (ret_val) ret_val 622 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = e1000e_update_nvm_checksum(hw); ret_val 627 drivers/net/ethernet/intel/e1000e/ethtool.c return ret_val; ret_val 990 drivers/net/ethernet/intel/e1000e/ethtool.c int ret_val = 0; ret_val 1009 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = -1; ret_val 1109 drivers/net/ethernet/intel/e1000e/ethtool.c return ret_val; ret_val 1170 drivers/net/ethernet/intel/e1000e/ethtool.c int ret_val; ret_val 1180 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = 1; ret_val 1189 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = 2; ret_val 1211 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = 3; ret_val 1222 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = 4; ret_val 1241 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = 5; ret_val 1249 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = 6; ret_val 1276 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = 7; ret_val 1286 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = 8; ret_val 1299 drivers/net/ethernet/intel/e1000e/ethtool.c return ret_val; ret_val 1316 drivers/net/ethernet/intel/e1000e/ethtool.c s32 ret_val = 0; ret_val 1377 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = hw->phy.ops.acquire(hw); ret_val 1378 drivers/net/ethernet/intel/e1000e/ethtool.c if (ret_val) { ret_val 1380 drivers/net/ethernet/intel/e1000e/ethtool.c return ret_val; ret_val 1635 drivers/net/ethernet/intel/e1000e/ethtool.c int ret_val = 0; ret_val 1680 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = e1000_check_lbtest_frame(buffer_info->skb, ret_val 1682 drivers/net/ethernet/intel/e1000e/ethtool.c if (!ret_val) ret_val 1693 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = 13; /* ret_val is the same as mis-compare */ ret_val 1697 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = 14; /* error code for time out error */ ret_val 1701 drivers/net/ethernet/intel/e1000e/ethtool.c return ret_val; ret_val 2157 drivers/net/ethernet/intel/e1000e/ethtool.c u32 ret_val; ret_val 2179 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = hw->phy.ops.acquire(hw); ret_val 2180 drivers/net/ethernet/intel/e1000e/ethtool.c if (ret_val) { ret_val 2186 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = e1000_read_emi_reg_locked(hw, cap_addr, &phy_data); ret_val 2187 drivers/net/ethernet/intel/e1000e/ethtool.c if (ret_val) ret_val 2195 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = e1000_read_emi_reg_locked(hw, lpa_addr, &phy_data); ret_val 2196 drivers/net/ethernet/intel/e1000e/ethtool.c if (ret_val) ret_val 2201 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = e1000_read_emi_reg_locked(hw, pcs_stat_addr, &phy_data); ret_val 2202 drivers/net/ethernet/intel/e1000e/ethtool.c if (ret_val) ret_val 2220 drivers/net/ethernet/intel/e1000e/ethtool.c if (ret_val) ret_val 2221 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = -ENODATA; ret_val 2225 drivers/net/ethernet/intel/e1000e/ethtool.c return ret_val; ret_val 2233 drivers/net/ethernet/intel/e1000e/ethtool.c s32 ret_val; ret_val 2235 drivers/net/ethernet/intel/e1000e/ethtool.c ret_val = e1000e_get_eee(netdev, &eee_curr); ret_val 2236 drivers/net/ethernet/intel/e1000e/ethtool.c if (ret_val) ret_val 2237 drivers/net/ethernet/intel/e1000e/ethtool.c return ret_val; ret_val 180 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = 0; ret_val 185 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy_locked(hw, MII_PHYSID1, &phy_reg); ret_val 186 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val || (phy_reg == 0xFFFF)) ret_val 190 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy_locked(hw, MII_PHYSID2, &phy_reg); ret_val 191 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val || (phy_reg == 0xFFFF)) { ret_val 213 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_set_mdio_slow_mode_hv(hw); ret_val 214 drivers/net/ethernet/intel/e1000e/ich8lan.c if (!ret_val) ret_val 215 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_get_phy_id(hw); ret_val 219 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 292 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 305 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 306 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) { ret_val 348 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = -E1000_ERR_PHY; ret_val 368 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = -E1000_ERR_PHY; ret_val 376 drivers/net/ethernet/intel/e1000e/ich8lan.c if (!ret_val) { ret_val 389 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_phy_hw_reset_generic(hw); ret_val 390 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 399 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.check_reset_block(hw); ret_val 400 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 412 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 424 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 444 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_init_phy_workarounds_pchlan(hw); ret_val 445 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 446 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 451 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_get_phy_id(hw); ret_val 452 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 453 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 464 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_set_mdio_slow_mode_hv(hw); ret_val 465 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 466 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 467 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_get_phy_id(hw); ret_val 468 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 469 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 492 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = -E1000_ERR_PHY; ret_val 496 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 508 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 520 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_determine_phy_address(hw); ret_val 521 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) { ret_val 524 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_determine_phy_address(hw); ret_val 525 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) { ret_val 527 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 535 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_get_phy_id(hw); ret_val 536 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 537 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 747 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 749 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy_locked(hw, I82579_EMI_ADDR, address); ret_val 750 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 751 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 754 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy_locked(hw, I82579_EMI_DATA, data); ret_val 756 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy_locked(hw, I82579_EMI_DATA, *data); ret_val 758 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 804 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 822 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 823 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 824 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 826 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy_locked(hw, I82579_LPI_CTRL, &lpi_ctrl); ret_val 827 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 836 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_emi_reg_locked(hw, lpa, ret_val 838 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 842 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_emi_reg_locked(hw, adv_addr, &adv); ret_val 843 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 867 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_emi_reg_locked(hw, I82579_LPI_PLL_SHUT, ret_val 869 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 873 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_write_emi_reg_locked(hw, I82579_LPI_PLL_SHUT, ret_val 878 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_emi_reg_locked(hw, pcs_status, &data); ret_val 879 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 882 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy_locked(hw, I82579_LPI_CTRL, lpi_ctrl); ret_val 886 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 904 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = 0; ret_val 908 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 909 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 910 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 912 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = ret_val 915 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 918 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = ret_val 923 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 930 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = ret_val 945 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy(hw, I217_INBAND_CTRL, ®); ret_val 946 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 947 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 967 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, I217_INBAND_CTRL, reg); ret_val 968 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 969 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 975 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 1075 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = 0; ret_val 1115 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 1116 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1120 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_phy_reg_hv_locked(hw, CV_SMB_CTRL, &phy_reg); ret_val 1121 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1135 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_phy_reg_hv_locked(hw, HV_OEM_BITS, ret_val 1137 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1143 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_write_phy_reg_hv_locked(hw, HV_OEM_BITS, ret_val 1146 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1153 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_phy_reg_hv_locked(hw, I218_ULP_CONFIG1, &phy_reg); ret_val 1154 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1184 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_write_phy_reg_hv_locked(hw, HV_OEM_BITS, ret_val 1186 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1193 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1194 drivers/net/ethernet/intel/e1000e/ich8lan.c e_dbg("Error in ULP enable flow: %d\n", ret_val); ret_val 1198 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 1218 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = 0; ret_val 1243 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = -E1000_ERR_PHY; ret_val 1265 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 1266 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1274 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_phy_reg_hv_locked(hw, CV_SMB_CTRL, &phy_reg); ret_val 1275 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) { ret_val 1285 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_phy_reg_hv_locked(hw, CV_SMB_CTRL, ret_val 1287 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1301 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_phy_reg_hv_locked(hw, HV_PM_CTRL, &phy_reg); ret_val 1302 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1308 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_phy_reg_hv_locked(hw, I218_ULP_CONFIG1, &phy_reg); ret_val 1309 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1337 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1338 drivers/net/ethernet/intel/e1000e/ich8lan.c e_dbg("Error in ULP disable flow: %d\n", ret_val); ret_val 1342 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 1356 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val, tipg_reg = 0; ret_val 1374 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link); ret_val 1375 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1379 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_k1_gig_workaround_hv(hw, link); ret_val 1380 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1412 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 1413 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1420 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_write_emi_reg_locked(hw, emi_addr, emi_val); ret_val 1445 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1453 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 1454 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1457 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy_locked(hw, ret_val 1460 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) { ret_val 1469 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = ret_val 1475 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1478 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 1479 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1482 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy_locked(hw, ret_val 1486 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1512 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_k1_workaround_lpt_lp(hw, link); ret_val 1513 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1520 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_platform_pm_pch_lpt(hw, link); ret_val 1521 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1549 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_k1_workaround_lv(hw); ret_val 1550 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1551 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 1555 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_link_stall_workaround_hv(hw); ret_val 1556 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1557 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 1584 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_set_eee_pchlan(hw); ret_val 1585 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1586 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 1606 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_config_fc_after_link_up(hw); ret_val 1607 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1610 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 1614 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 1709 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = 0; ret_val 1728 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = -E1000_ERR_CONFIG; ret_val 1751 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = -E1000_ERR_CONFIG; ret_val 1756 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1759 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 1860 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 1862 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_acquire_swflag_ich8lan(hw); ret_val 1863 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 1971 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 1973 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_acquire_swflag_ich8lan(hw); ret_val 1975 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2029 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 2033 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_phy_reg_hv_locked(hw, HV_SMB_ADDR, &phy_data); ret_val 2034 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2035 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2068 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = 0; ret_val 2080 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2096 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2099 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 2100 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2101 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2132 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_write_smbus_addr(hw); ret_val 2133 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2137 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_write_phy_reg_hv_locked(hw, HV_LED_CONFIG, ret_val 2139 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2149 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_nvm(hw, (word_addr + i * 2), 1, ®_data); ret_val 2150 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2153 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_nvm(hw, (word_addr + i * 2 + 1), ret_val 2155 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2167 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy_locked(hw, (u32)reg_addr, reg_data); ret_val 2168 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2174 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2189 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = 0; ret_val 2197 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 2198 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2199 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2204 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy_locked(hw, BM_CS_STATUS, ret_val 2206 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2220 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy_locked(hw, HV_M_STATUS, &status_reg); ret_val 2221 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2235 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy_locked(hw, PHY_REG(770, 19), 0x0100); ret_val 2236 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2241 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy_locked(hw, PHY_REG(770, 19), 0x4100); ret_val 2242 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2246 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_configure_k1_ich8lan(hw, k1_enable); ret_val 2251 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2266 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 2272 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_read_kmrn_reg_locked(hw, E1000_KMRNCTRLSTA_K1_CONFIG, ret_val 2274 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2275 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2282 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_write_kmrn_reg_locked(hw, E1000_KMRNCTRLSTA_K1_CONFIG, ret_val 2284 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2285 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2317 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = 0; ret_val 2322 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2324 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 2325 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2326 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2340 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy_locked(hw, HV_OEM_BITS, &oem_reg); ret_val 2341 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2367 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy_locked(hw, HV_OEM_BITS, oem_reg); ret_val 2372 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2381 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 2384 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy(hw, HV_KMRN_MODE_CTRL, &data); ret_val 2385 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2386 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2390 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, HV_KMRN_MODE_CTRL, data); ret_val 2392 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2401 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = 0; ret_val 2409 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_set_mdio_slow_mode_hv(hw); ret_val 2410 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2411 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2418 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, PHY_REG(769, 25), 0x4431); ret_val 2419 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2420 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2423 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, HV_KMRN_FIFO_CTRLSTA, 0xA204); ret_val 2424 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2425 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2434 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, MII_BMCR, 0x3140); ret_val 2435 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2436 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2441 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 2442 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2443 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2446 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_write_phy_reg_mdic(hw, IGP01E1000_PHY_PAGE_SELECT, 0); ret_val 2448 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2449 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2454 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_k1_gig_workaround_hv(hw, true); ret_val 2455 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2456 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2459 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 2460 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2461 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2462 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy_locked(hw, BM_PORT_GEN_CFG, &phy_data); ret_val 2463 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2465 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy_locked(hw, BM_PORT_GEN_CFG, phy_data & 0x00FF); ret_val 2466 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2470 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_write_emi_reg_locked(hw, I82577_MSE_THRESHOLD, 0x0034); ret_val 2474 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2485 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 2487 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 2488 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2490 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_enable_phy_wakeup_reg_access_bm(hw, &phy_reg); ret_val 2491 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2524 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = 0; ret_val 2534 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, PHY_REG(769, 20), phy_reg | BIT(14)); ret_val 2535 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2536 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2573 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_read_kmrn_reg(hw, ret_val 2576 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2577 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2578 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_write_kmrn_reg(hw, ret_val 2581 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2582 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2583 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_read_kmrn_reg(hw, ret_val 2586 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2587 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2590 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_write_kmrn_reg(hw, ret_val 2593 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2594 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2600 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, PHY_REG(769, 23), data); ret_val 2601 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2602 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2605 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, PHY_REG(769, 16), data); ret_val 2606 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2607 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2611 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, PHY_REG(776, 20), data); ret_val 2612 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2613 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2614 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, PHY_REG(776, 23), 0xF100); ret_val 2615 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2616 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2618 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, HV_PM_CTRL, data | BIT(10)); ret_val 2619 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2620 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2631 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_read_kmrn_reg(hw, ret_val 2634 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2635 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2636 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_write_kmrn_reg(hw, ret_val 2639 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2640 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2641 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_read_kmrn_reg(hw, ret_val 2644 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2645 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2648 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_write_kmrn_reg(hw, ret_val 2651 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2652 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2657 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, PHY_REG(769, 23), data); ret_val 2658 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2659 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2662 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, PHY_REG(769, 16), data); ret_val 2663 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2664 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2668 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, PHY_REG(776, 20), data); ret_val 2669 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2670 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2671 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, PHY_REG(776, 23), 0x7E00); ret_val 2672 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2673 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2675 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, HV_PM_CTRL, data & ~BIT(10)); ret_val 2676 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2677 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2690 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = 0; ret_val 2696 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_set_mdio_slow_mode_hv(hw); ret_val 2697 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2698 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2700 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 2701 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2702 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2704 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_write_emi_reg_locked(hw, I82579_MSE_THRESHOLD, 0x0034); ret_val 2705 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2708 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_write_emi_reg_locked(hw, I82579_MSE_LINK_DOWN, 0x0005); ret_val 2712 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2724 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = 0; ret_val 2731 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy(hw, HV_M_STATUS, &status_reg); ret_val 2732 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2733 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2742 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy(hw, HV_PM_CTRL, &pm_phy_reg); ret_val 2743 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2744 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2746 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, HV_PM_CTRL, pm_phy_reg); ret_val 2747 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2748 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2759 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2824 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = 0; ret_val 2836 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_hv_phy_workarounds_ich8lan(hw); ret_val 2837 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2838 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2841 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_lv_phy_workarounds_ich8lan(hw); ret_val 2842 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2843 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2857 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_sw_lcd_config_ich8lan(hw); ret_val 2858 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2859 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2862 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_oem_bits_config_ich8lan(hw, true); ret_val 2872 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 2873 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2874 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2875 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_write_emi_reg_locked(hw, ret_val 2881 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2894 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = 0; ret_val 2901 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_phy_hw_reset_generic(hw); ret_val 2902 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2903 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2921 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 2924 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy(hw, HV_OEM_BITS, &oem_reg); ret_val 2925 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2926 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2956 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = 0; ret_val 2978 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_CONFIG, &data); ret_val 2979 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2980 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2982 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, IGP01E1000_PHY_PORT_CONFIG, data); ret_val 2983 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 2984 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 2998 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 3000 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3001 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3004 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 3006 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3007 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3009 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 3011 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3012 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3015 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 3017 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3018 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3042 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = 0; ret_val 3060 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 3062 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3063 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3066 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 3068 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3069 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3071 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 3073 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3074 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3077 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 3079 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3080 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3098 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_CONFIG, &data); ret_val 3099 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3100 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3103 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, IGP01E1000_PHY_PORT_CONFIG, data); ret_val 3106 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3125 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 3137 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_flash_dword_ich8lan(hw, act_offset, ret_val 3139 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3140 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3149 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_flash_dword_ich8lan(hw, act_offset + ret_val 3152 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3153 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3182 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_flash_byte_ich8lan(hw, act_offset, ret_val 3184 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3185 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3193 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_flash_byte_ich8lan(hw, act_offset + ret_val 3196 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3197 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3224 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = 0; ret_val 3233 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = -E1000_ERR_NVM; ret_val 3239 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_valid_nvm_bank_detect_ich8lan(hw, &bank); ret_val 3240 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) { ret_val 3248 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = 0; ret_val 3258 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = ret_val 3262 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3273 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = ret_val 3277 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3296 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3297 drivers/net/ethernet/intel/e1000e/ich8lan.c e_dbg("NVM read error: %d\n", ret_val); ret_val 3299 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3317 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = 0; ret_val 3324 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = -E1000_ERR_NVM; ret_val 3330 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_valid_nvm_bank_detect_ich8lan(hw, &bank); ret_val 3331 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) { ret_val 3339 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = 0; ret_val 3344 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_flash_word_ich8lan(hw, ret_val 3347 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3356 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3357 drivers/net/ethernet/intel/e1000e/ich8lan.c e_dbg("NVM read error: %d\n", ret_val); ret_val 3359 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3372 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = -E1000_ERR_NVM; ret_val 3408 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = 0; ret_val 3418 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = 0; ret_val 3423 drivers/net/ethernet/intel/e1000e/ich8lan.c if (!ret_val) { ret_val 3438 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3526 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 3535 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_flash_data_ich8lan(hw, offset, 1, &word); ret_val 3537 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3538 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3561 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = -E1000_ERR_NVM; ret_val 3573 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_flash_cycle_init_ich8lan(hw); ret_val 3574 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3585 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = ret_val 3594 drivers/net/ethernet/intel/e1000e/ich8lan.c if (!ret_val) { ret_val 3618 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3636 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = -E1000_ERR_NVM; ret_val 3647 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_flash_cycle_init_ich8lan(hw); ret_val 3648 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3664 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = ret_val 3673 drivers/net/ethernet/intel/e1000e/ich8lan.c if (!ret_val) { ret_val 3693 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3746 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 3749 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_update_nvm_checksum_generic(hw); ret_val 3750 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3762 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_valid_nvm_bank_detect_ich8lan(hw, &bank); ret_val 3763 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) { ret_val 3771 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_erase_flash_bank_ich8lan(hw, 1); ret_val 3772 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3777 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_erase_flash_bank_ich8lan(hw, 0); ret_val 3778 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3786 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_flash_dword_ich8lan(hw, ret_val 3799 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3819 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_retry_write_flash_dword_ich8lan(hw, act_offset, ret_val 3821 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3828 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) { ret_val 3843 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_flash_dword_ich8lan(hw, act_offset, &dword); ret_val 3845 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3849 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_retry_write_flash_dword_ich8lan(hw, act_offset, dword); ret_val 3851 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3863 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_flash_dword_ich8lan(hw, act_offset, &dword); ret_val 3865 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3869 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_retry_write_flash_dword_ich8lan(hw, act_offset, dword); ret_val 3871 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3886 drivers/net/ethernet/intel/e1000e/ich8lan.c if (!ret_val) { ret_val 3892 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3893 drivers/net/ethernet/intel/e1000e/ich8lan.c e_dbg("NVM update error: %d\n", ret_val); ret_val 3895 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 3914 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 3917 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_update_nvm_checksum_generic(hw); ret_val 3918 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3930 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_valid_nvm_bank_detect_ich8lan(hw, &bank); ret_val 3931 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) { ret_val 3939 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_erase_flash_bank_ich8lan(hw, 1); ret_val 3940 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3945 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_erase_flash_bank_ich8lan(hw, 0); ret_val 3946 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3953 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_flash_word_ich8lan(hw, i + ret_val 3956 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3975 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_retry_write_flash_byte_ich8lan(hw, ret_val 3978 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3982 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_retry_write_flash_byte_ich8lan(hw, ret_val 3985 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 3992 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) { ret_val 4004 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_flash_word_ich8lan(hw, act_offset, &data); ret_val 4005 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4009 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_retry_write_flash_byte_ich8lan(hw, ret_val 4012 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4021 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_retry_write_flash_byte_ich8lan(hw, act_offset, 0); ret_val 4022 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4037 drivers/net/ethernet/intel/e1000e/ich8lan.c if (!ret_val) { ret_val 4043 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4044 drivers/net/ethernet/intel/e1000e/ich8lan.c e_dbg("NVM update error: %d\n", ret_val); ret_val 4046 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4059 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 4082 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_nvm(hw, word, 1, &data); ret_val 4083 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4084 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4088 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_write_nvm(hw, word, 1, &data); ret_val 4089 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4090 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4091 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_update_nvm_checksum(hw); ret_val 4092 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4093 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4155 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 4172 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_flash_cycle_init_ich8lan(hw); ret_val 4173 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4207 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = ret_val 4210 drivers/net/ethernet/intel/e1000e/ich8lan.c if (!ret_val) ret_val 4228 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4245 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 4257 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_flash_cycle_init_ich8lan(hw); ret_val 4258 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4289 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = ret_val 4293 drivers/net/ethernet/intel/e1000e/ich8lan.c if (!ret_val) ret_val 4312 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4343 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 4348 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_write_flash_data32_ich8lan(hw, offset, dword); ret_val 4350 drivers/net/ethernet/intel/e1000e/ich8lan.c if (!ret_val) ret_val 4351 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4355 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_write_flash_data32_ich8lan(hw, offset, dword); ret_val 4356 drivers/net/ethernet/intel/e1000e/ich8lan.c if (!ret_val) ret_val 4377 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 4380 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_write_flash_byte_ich8lan(hw, offset, byte); ret_val 4381 drivers/net/ethernet/intel/e1000e/ich8lan.c if (!ret_val) ret_val 4382 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4387 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_write_flash_byte_ich8lan(hw, offset, byte); ret_val 4388 drivers/net/ethernet/intel/e1000e/ich8lan.c if (!ret_val) ret_val 4413 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 4462 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_flash_cycle_init_ich8lan(hw); ret_val 4463 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4464 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4489 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_flash_cycle_ich8lan(hw, timeout); ret_val 4490 drivers/net/ethernet/intel/e1000e/ich8lan.c if (!ret_val) ret_val 4502 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4520 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 4522 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_nvm(hw, NVM_ID_LED_SETTINGS, 1, data); ret_val 4523 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) { ret_val 4525 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4550 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 4556 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->nvm.ops.valid_led_default(hw, &data); ret_val 4557 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4558 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4616 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 4618 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_get_bus_info_pcie(hw); ret_val 4628 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4643 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 4648 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_disable_pcie_master(hw); ret_val 4649 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4675 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_read_nvm(hw, E1000_NVM_K1_CONFIG, 1, &kum_cfg); ret_val 4676 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4677 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4701 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_acquire_swflag_ich8lan(hw); ret_val 4715 drivers/net/ethernet/intel/e1000e/ich8lan.c if (!ret_val) ret_val 4719 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.get_cfg_done(hw); ret_val 4720 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4721 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4723 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_post_phy_reset_ich8lan(hw); ret_val 4724 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4725 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4761 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 4767 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = mac->ops.id_led_init(hw); ret_val 4769 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4788 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_phy_hw_reset_ich8lan(hw); ret_val 4789 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4790 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4794 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = mac->ops.setup_link(hw); ret_val 4830 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4922 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 4947 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->mac.ops.setup_physical_interface(hw); ret_val 4948 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4949 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4958 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, PHY_REG(BM_PORT_CTRL_PAGE, 27), ret_val 4960 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4961 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4978 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 4990 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_write_kmrn_reg(hw, E1000_KMRNCTRLSTA_TIMEOUTS, 0xFFFF); ret_val 4991 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4992 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4993 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_read_kmrn_reg(hw, E1000_KMRNCTRLSTA_INBAND_PARAM, ret_val 4995 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 4996 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 4998 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_write_kmrn_reg(hw, E1000_KMRNCTRLSTA_INBAND_PARAM, ret_val 5000 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 5001 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 5005 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_copper_link_setup_igp(hw); ret_val 5006 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 5007 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 5011 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_copper_link_setup_m88(hw); ret_val 5012 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 5013 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 5017 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_copper_link_setup_82577(hw); ret_val 5018 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 5019 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 5022 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy(hw, IFE_PHY_MDIX_CONTROL, ®_data); ret_val 5023 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 5024 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 5040 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_wphy(hw, IFE_PHY_MDIX_CONTROL, reg_data); ret_val 5041 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 5042 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 5062 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 5069 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_copper_link_setup_82577(hw); ret_val 5070 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 5071 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 5089 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 5091 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_get_speed_and_duplex_copper(hw, speed, duplex); ret_val 5092 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 5093 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 5097 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_kmrn_lock_loss_workaround_ich8lan(hw); ret_val 5100 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 5122 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 5133 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link); ret_val 5139 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy(hw, IGP3_KMRN_DIAG, &data); ret_val 5140 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 5141 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 5143 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy(hw, IGP3_KMRN_DIAG, &data); ret_val 5144 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 5145 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 5254 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 5260 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_read_kmrn_reg(hw, E1000_KMRNCTRLSTA_DIAG_OFFSET, ret_val 5262 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 5265 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_write_kmrn_reg(hw, E1000_KMRNCTRLSTA_DIAG_OFFSET, ret_val 5267 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 5291 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 5309 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 5310 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 5316 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = ret_val 5320 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 5393 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 5394 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 5413 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 5418 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000_init_phy_workarounds_pchlan(hw); ret_val 5419 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) { ret_val 5420 drivers/net/ethernet/intel/e1000e/ich8lan.c e_dbg("Failed to init PHY flow ret_val=%d\n", ret_val); ret_val 5432 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 5433 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) { ret_val 5447 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy_locked(hw, I217_MEMPWR, &phy_reg); ret_val 5448 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 5457 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1e_rphy_locked(hw, I217_CGFREG, &phy_reg); ret_val 5458 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 5463 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 5464 drivers/net/ethernet/intel/e1000e/ich8lan.c e_dbg("Error %d in resume workarounds\n", ret_val); ret_val 5613 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val = 0; ret_val 5623 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = e1000e_get_auto_rd_done(hw); ret_val 5624 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) { ret_val 5630 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = 0; ret_val 5651 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = -E1000_ERR_CONFIG; ret_val 5655 drivers/net/ethernet/intel/e1000e/ich8lan.c return ret_val; ret_val 5683 drivers/net/ethernet/intel/e1000e/ich8lan.c s32 ret_val; ret_val 5706 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.acquire(hw); ret_val 5707 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 5709 drivers/net/ethernet/intel/e1000e/ich8lan.c ret_val = hw->phy.ops.set_page(hw, ret_val 5711 drivers/net/ethernet/intel/e1000e/ich8lan.c if (ret_val) ret_val 143 drivers/net/ethernet/intel/e1000e/mac.c s32 ret_val; ret_val 147 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1000_read_nvm(hw, NVM_COMPAT, 1, &nvm_data); ret_val 148 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) ret_val 149 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 155 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1000_read_nvm(hw, NVM_ALT_MAC_ADDR_PTR, 1, ret_val 157 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) { ret_val 159 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 171 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1000_read_nvm(hw, offset, 1, &nvm_data); ret_val 172 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) { ret_val 174 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 399 drivers/net/ethernet/intel/e1000e/mac.c s32 ret_val; ret_val 415 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link); ret_val 416 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val || !link) ret_val 441 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1000e_config_fc_after_link_up(hw); ret_val 442 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) ret_val 445 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 449 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 465 drivers/net/ethernet/intel/e1000e/mac.c s32 ret_val; ret_val 496 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1000e_config_fc_after_link_up(hw); ret_val 497 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) { ret_val 499 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 530 drivers/net/ethernet/intel/e1000e/mac.c s32 ret_val; ret_val 559 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1000e_config_fc_after_link_up(hw); ret_val 560 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) { ret_val 562 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 630 drivers/net/ethernet/intel/e1000e/mac.c s32 ret_val; ret_val 641 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1000_read_nvm(hw, NVM_INIT_CONTROL2_REG, 1, &nvm_data); ret_val 643 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) { ret_val 645 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 670 drivers/net/ethernet/intel/e1000e/mac.c s32 ret_val; ret_val 682 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1000_set_default_fc_generic(hw); ret_val 683 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) ret_val 684 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 695 drivers/net/ethernet/intel/e1000e/mac.c ret_val = hw->mac.ops.setup_physical_interface(hw); ret_val 696 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) ret_val 697 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 791 drivers/net/ethernet/intel/e1000e/mac.c s32 ret_val; ret_val 813 drivers/net/ethernet/intel/e1000e/mac.c ret_val = mac->ops.check_for_link(hw); ret_val 814 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) { ret_val 816 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 837 drivers/net/ethernet/intel/e1000e/mac.c s32 ret_val; ret_val 846 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1000_commit_fc_settings_generic(hw); ret_val 847 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) ret_val 848 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 868 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1000_poll_fiber_serdes_link_generic(hw); ret_val 873 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 1004 drivers/net/ethernet/intel/e1000e/mac.c s32 ret_val = 0; ret_val 1016 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1000e_force_mac_fc(hw); ret_val 1019 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1000e_force_mac_fc(hw); ret_val 1022 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) { ret_val 1024 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 1037 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1e_rphy(hw, MII_BMSR, &mii_status_reg); ret_val 1038 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) ret_val 1039 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 1040 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1e_rphy(hw, MII_BMSR, &mii_status_reg); ret_val 1041 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) ret_val 1042 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 1046 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 1055 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1e_rphy(hw, MII_ADVERTISE, &mii_nway_adv_reg); ret_val 1056 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) ret_val 1057 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 1058 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1e_rphy(hw, MII_LPA, &mii_nway_lp_ability_reg); ret_val 1059 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) ret_val 1060 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 1150 drivers/net/ethernet/intel/e1000e/mac.c ret_val = mac->ops.get_link_up_info(hw, &speed, &duplex); ret_val 1151 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) { ret_val 1153 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 1162 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1000e_force_mac_fc(hw); ret_val 1163 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) { ret_val 1165 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 1183 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 1286 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1000e_force_mac_fc(hw); ret_val 1287 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) { ret_val 1289 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 1447 drivers/net/ethernet/intel/e1000e/mac.c s32 ret_val; ret_val 1449 drivers/net/ethernet/intel/e1000e/mac.c ret_val = e1000_read_nvm(hw, NVM_ID_LED_SETTINGS, 1, data); ret_val 1450 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) { ret_val 1452 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 1469 drivers/net/ethernet/intel/e1000e/mac.c s32 ret_val; ret_val 1476 drivers/net/ethernet/intel/e1000e/mac.c ret_val = hw->nvm.ops.valid_led_default(hw, &data); ret_val 1477 drivers/net/ethernet/intel/e1000e/mac.c if (ret_val) ret_val 1478 drivers/net/ethernet/intel/e1000e/mac.c return ret_val; ret_val 97 drivers/net/ethernet/intel/e1000e/manage.c s32 ret_val, hdr_csum, csum; ret_val 111 drivers/net/ethernet/intel/e1000e/manage.c ret_val = e1000_mng_enable_host_if(hw); ret_val 112 drivers/net/ethernet/intel/e1000e/manage.c if (ret_val) { ret_val 252 drivers/net/ethernet/intel/e1000e/manage.c s32 ret_val; ret_val 262 drivers/net/ethernet/intel/e1000e/manage.c ret_val = e1000_mng_enable_host_if(hw); ret_val 263 drivers/net/ethernet/intel/e1000e/manage.c if (ret_val) ret_val 264 drivers/net/ethernet/intel/e1000e/manage.c return ret_val; ret_val 267 drivers/net/ethernet/intel/e1000e/manage.c ret_val = e1000_mng_host_if_write(hw, buffer, length, ret_val 269 drivers/net/ethernet/intel/e1000e/manage.c if (ret_val) ret_val 270 drivers/net/ethernet/intel/e1000e/manage.c return ret_val; ret_val 273 drivers/net/ethernet/intel/e1000e/manage.c ret_val = e1000_mng_write_cmd_header(hw, &hdr); ret_val 274 drivers/net/ethernet/intel/e1000e/manage.c if (ret_val) ret_val 275 drivers/net/ethernet/intel/e1000e/manage.c return ret_val; ret_val 312 drivers/net/ethernet/intel/e1000e/manage.c s32 ret_val; ret_val 315 drivers/net/ethernet/intel/e1000e/manage.c ret_val = e1000_read_nvm(hw, NVM_INIT_CONTROL2_REG, 1, &data); ret_val 316 drivers/net/ethernet/intel/e1000e/manage.c if (ret_val) ret_val 610 drivers/net/ethernet/intel/e1000e/netdev.c s32 ret_val = __ew32_prepare(hw); ret_val 614 drivers/net/ethernet/intel/e1000e/netdev.c if (unlikely(!ret_val && (i != readl(rx_ring->tail)))) { ret_val 627 drivers/net/ethernet/intel/e1000e/netdev.c s32 ret_val = __ew32_prepare(hw); ret_val 631 drivers/net/ethernet/intel/e1000e/netdev.c if (unlikely(!ret_val && (i != readl(tx_ring->tail)))) { ret_val 3036 drivers/net/ethernet/intel/e1000e/netdev.c s32 ret_val; ret_val 3039 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = e1000_lv_jumbo_workaround_ich8lan(hw, true); ret_val 3041 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = e1000_lv_jumbo_workaround_ich8lan(hw, false); ret_val 3043 drivers/net/ethernet/intel/e1000e/netdev.c if (ret_val) ret_val 3367 drivers/net/ethernet/intel/e1000e/netdev.c int ret_val; ret_val 3371 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->mac.ops.rar_set(hw, ha->addr, rar_entries--); ret_val 3372 drivers/net/ethernet/intel/e1000e/netdev.c if (ret_val < 0) ret_val 3904 drivers/net/ethernet/intel/e1000e/netdev.c s32 ret_val; ret_val 3911 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = info->adjfreq(info, adapter->ptp_delta); ret_val 3914 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = e1000e_get_base_timinca(adapter, &timinca); ret_val 3915 drivers/net/ethernet/intel/e1000e/netdev.c if (!ret_val) ret_val 3919 drivers/net/ethernet/intel/e1000e/netdev.c if (ret_val) { ret_val 3922 drivers/net/ethernet/intel/e1000e/netdev.c ret_val); ret_val 4121 drivers/net/ethernet/intel/e1000e/netdev.c s32 ret_val; ret_val 4137 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->phy.ops.acquire(hw); ret_val 4138 drivers/net/ethernet/intel/e1000e/netdev.c if (ret_val) { ret_val 4840 drivers/net/ethernet/intel/e1000e/netdev.c s32 ret_val; ret_val 4843 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->phy.ops.acquire(hw); ret_val 4844 drivers/net/ethernet/intel/e1000e/netdev.c if (ret_val) ret_val 4851 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = e1000e_read_phy_reg_mdic(hw, IGP01E1000_PHY_PAGE_SELECT, ret_val 4853 drivers/net/ethernet/intel/e1000e/netdev.c if (ret_val) ret_val 4856 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->phy.ops.set_page(hw, ret_val 4858 drivers/net/ethernet/intel/e1000e/netdev.c if (ret_val) ret_val 4864 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->phy.ops.read_reg_page(hw, HV_SCC_LOWER, &phy_data); ret_val 4865 drivers/net/ethernet/intel/e1000e/netdev.c if (!ret_val) ret_val 4870 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->phy.ops.read_reg_page(hw, HV_ECOL_LOWER, &phy_data); ret_val 4871 drivers/net/ethernet/intel/e1000e/netdev.c if (!ret_val) ret_val 4876 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->phy.ops.read_reg_page(hw, HV_MCC_LOWER, &phy_data); ret_val 4877 drivers/net/ethernet/intel/e1000e/netdev.c if (!ret_val) ret_val 4882 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->phy.ops.read_reg_page(hw, HV_LATECOL_LOWER, &phy_data); ret_val 4883 drivers/net/ethernet/intel/e1000e/netdev.c if (!ret_val) ret_val 4888 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->phy.ops.read_reg_page(hw, HV_COLC_LOWER, &phy_data); ret_val 4889 drivers/net/ethernet/intel/e1000e/netdev.c if (!ret_val) ret_val 4894 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->phy.ops.read_reg_page(hw, HV_DC_LOWER, &phy_data); ret_val 4895 drivers/net/ethernet/intel/e1000e/netdev.c if (!ret_val) ret_val 4900 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->phy.ops.read_reg_page(hw, HV_TNCRS_LOWER, &phy_data); ret_val 4901 drivers/net/ethernet/intel/e1000e/netdev.c if (!ret_val) ret_val 5035 drivers/net/ethernet/intel/e1000e/netdev.c int ret_val; ret_val 5037 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = e1e_rphy(hw, MII_BMCR, &phy->bmcr); ret_val 5038 drivers/net/ethernet/intel/e1000e/netdev.c ret_val |= e1e_rphy(hw, MII_BMSR, &phy->bmsr); ret_val 5039 drivers/net/ethernet/intel/e1000e/netdev.c ret_val |= e1e_rphy(hw, MII_ADVERTISE, &phy->advertise); ret_val 5040 drivers/net/ethernet/intel/e1000e/netdev.c ret_val |= e1e_rphy(hw, MII_LPA, &phy->lpa); ret_val 5041 drivers/net/ethernet/intel/e1000e/netdev.c ret_val |= e1e_rphy(hw, MII_EXPANSION, &phy->expansion); ret_val 5042 drivers/net/ethernet/intel/e1000e/netdev.c ret_val |= e1e_rphy(hw, MII_CTRL1000, &phy->ctrl1000); ret_val 5043 drivers/net/ethernet/intel/e1000e/netdev.c ret_val |= e1e_rphy(hw, MII_STAT1000, &phy->stat1000); ret_val 5044 drivers/net/ethernet/intel/e1000e/netdev.c ret_val |= e1e_rphy(hw, MII_ESTATUS, &phy->estatus); ret_val 5045 drivers/net/ethernet/intel/e1000e/netdev.c if (ret_val) ret_val 5083 drivers/net/ethernet/intel/e1000e/netdev.c s32 ret_val = 0; ret_val 5093 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->mac.ops.check_for_link(hw); ret_val 5100 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->mac.ops.check_for_link(hw); ret_val 5104 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->mac.ops.check_for_link(hw); ret_val 5112 drivers/net/ethernet/intel/e1000e/netdev.c if ((ret_val == -E1000_ERR_PHY) && (hw->phy.type == e1000_phy_igp_3) && ret_val 6157 drivers/net/ethernet/intel/e1000e/netdev.c int ret_val; ret_val 6162 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = e1000e_config_hwtstamp(adapter, &config); ret_val 6163 drivers/net/ethernet/intel/e1000e/netdev.c if (ret_val) ret_val 6164 drivers/net/ethernet/intel/e1000e/netdev.c return ret_val; ret_val 6291 drivers/net/ethernet/intel/e1000e/netdev.c u32 ret_val; ret_val 6295 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = hw->phy.ops.acquire(hw); ret_val 6296 drivers/net/ethernet/intel/e1000e/netdev.c if (ret_val) ret_val 6926 drivers/net/ethernet/intel/e1000e/netdev.c u32 ret_val; ret_val 6938 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = e1000_read_pba_string_generic(hw, pba_str, ret_val 6940 drivers/net/ethernet/intel/e1000e/netdev.c if (ret_val) ret_val 6949 drivers/net/ethernet/intel/e1000e/netdev.c int ret_val; ret_val 6955 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = e1000_read_nvm(hw, NVM_INIT_CONTROL2_REG, 1, &buf); ret_val 6957 drivers/net/ethernet/intel/e1000e/netdev.c if (!ret_val && (!(buf & BIT(0)))) { ret_val 7069 drivers/net/ethernet/intel/e1000e/netdev.c s32 ret_val = 0; ret_val 7304 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = e1000_read_nvm(&adapter->hw, ret_val 7308 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = e1000_read_nvm(&adapter->hw, ret_val 7314 drivers/net/ethernet/intel/e1000e/netdev.c if (ret_val) ret_val 7315 drivers/net/ethernet/intel/e1000e/netdev.c e_dbg("NVM read error getting WoL initial values: %d\n", ret_val); ret_val 7335 drivers/net/ethernet/intel/e1000e/netdev.c ret_val = e1000_read_nvm(&adapter->hw, 5, 1, &adapter->eeprom_vers); ret_val 7337 drivers/net/ethernet/intel/e1000e/netdev.c if (ret_val) { ret_val 7338 drivers/net/ethernet/intel/e1000e/netdev.c e_dbg("NVM read error getting EEPROM version: %d\n", ret_val); ret_val 295 drivers/net/ethernet/intel/e1000e/nvm.c s32 ret_val = 0; ret_val 311 drivers/net/ethernet/intel/e1000e/nvm.c ret_val = e1000e_poll_eerd_eewr_done(hw, E1000_NVM_POLL_READ); ret_val 312 drivers/net/ethernet/intel/e1000e/nvm.c if (ret_val) { ret_val 313 drivers/net/ethernet/intel/e1000e/nvm.c e_dbg("NVM read error: %d\n", ret_val); ret_val 320 drivers/net/ethernet/intel/e1000e/nvm.c return ret_val; ret_val 338 drivers/net/ethernet/intel/e1000e/nvm.c s32 ret_val = -E1000_ERR_NVM; ret_val 353 drivers/net/ethernet/intel/e1000e/nvm.c ret_val = nvm->ops.acquire(hw); ret_val 354 drivers/net/ethernet/intel/e1000e/nvm.c if (ret_val) ret_val 355 drivers/net/ethernet/intel/e1000e/nvm.c return ret_val; ret_val 357 drivers/net/ethernet/intel/e1000e/nvm.c ret_val = e1000_ready_nvm_eeprom(hw); ret_val 358 drivers/net/ethernet/intel/e1000e/nvm.c if (ret_val) { ret_val 360 drivers/net/ethernet/intel/e1000e/nvm.c return ret_val; ret_val 399 drivers/net/ethernet/intel/e1000e/nvm.c return ret_val; ret_val 414 drivers/net/ethernet/intel/e1000e/nvm.c s32 ret_val; ret_val 425 drivers/net/ethernet/intel/e1000e/nvm.c ret_val = e1000_read_nvm(hw, NVM_PBA_OFFSET_0, 1, &nvm_data); ret_val 426 drivers/net/ethernet/intel/e1000e/nvm.c if (ret_val) { ret_val 428 drivers/net/ethernet/intel/e1000e/nvm.c return ret_val; ret_val 431 drivers/net/ethernet/intel/e1000e/nvm.c ret_val = e1000_read_nvm(hw, NVM_PBA_OFFSET_1, 1, &pba_ptr); ret_val 432 drivers/net/ethernet/intel/e1000e/nvm.c if (ret_val) { ret_val 434 drivers/net/ethernet/intel/e1000e/nvm.c return ret_val; ret_val 476 drivers/net/ethernet/intel/e1000e/nvm.c ret_val = e1000_read_nvm(hw, pba_ptr, 1, &length); ret_val 477 drivers/net/ethernet/intel/e1000e/nvm.c if (ret_val) { ret_val 479 drivers/net/ethernet/intel/e1000e/nvm.c return ret_val; ret_val 497 drivers/net/ethernet/intel/e1000e/nvm.c ret_val = e1000_read_nvm(hw, pba_ptr + offset, 1, &nvm_data); ret_val 498 drivers/net/ethernet/intel/e1000e/nvm.c if (ret_val) { ret_val 500 drivers/net/ethernet/intel/e1000e/nvm.c return ret_val; ret_val 548 drivers/net/ethernet/intel/e1000e/nvm.c s32 ret_val; ret_val 553 drivers/net/ethernet/intel/e1000e/nvm.c ret_val = e1000_read_nvm(hw, i, 1, &nvm_data); ret_val 554 drivers/net/ethernet/intel/e1000e/nvm.c if (ret_val) { ret_val 556 drivers/net/ethernet/intel/e1000e/nvm.c return ret_val; ret_val 579 drivers/net/ethernet/intel/e1000e/nvm.c s32 ret_val; ret_val 584 drivers/net/ethernet/intel/e1000e/nvm.c ret_val = e1000_read_nvm(hw, i, 1, &nvm_data); ret_val 585 drivers/net/ethernet/intel/e1000e/nvm.c if (ret_val) { ret_val 587 drivers/net/ethernet/intel/e1000e/nvm.c return ret_val; ret_val 592 drivers/net/ethernet/intel/e1000e/nvm.c ret_val = e1000_write_nvm(hw, NVM_CHECKSUM_REG, 1, &checksum); ret_val 593 drivers/net/ethernet/intel/e1000e/nvm.c if (ret_val) ret_val 596 drivers/net/ethernet/intel/e1000e/nvm.c return ret_val; ret_val 62 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val = 0; ret_val 70 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_PHYSID1, &phy_id); ret_val 71 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 72 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 76 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_PHYSID2, &phy_id); ret_val 77 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 78 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 100 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 102 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); ret_val 103 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 104 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 248 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 250 drivers/net/ethernet/intel/e1000e/phy.c ret_val = hw->phy.ops.acquire(hw); ret_val 251 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 252 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 254 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_read_phy_reg_mdic(hw, MAX_PHY_REG_ADDRESS & offset, ret_val 259 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 273 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 275 drivers/net/ethernet/intel/e1000e/phy.c ret_val = hw->phy.ops.acquire(hw); ret_val 276 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 277 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 279 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_write_phy_reg_mdic(hw, MAX_PHY_REG_ADDRESS & offset, ret_val 284 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 319 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val = 0; ret_val 325 drivers/net/ethernet/intel/e1000e/phy.c ret_val = hw->phy.ops.acquire(hw); ret_val 326 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 327 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 331 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_write_phy_reg_mdic(hw, ret_val 334 drivers/net/ethernet/intel/e1000e/phy.c if (!ret_val) ret_val 335 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_read_phy_reg_mdic(hw, ret_val 341 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 386 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val = 0; ret_val 392 drivers/net/ethernet/intel/e1000e/phy.c ret_val = hw->phy.ops.acquire(hw); ret_val 393 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 394 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 398 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_write_phy_reg_mdic(hw, ret_val 401 drivers/net/ethernet/intel/e1000e/phy.c if (!ret_val) ret_val 402 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_write_phy_reg_mdic(hw, MAX_PHY_REG_ADDRESS & ret_val 407 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 455 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val = 0; ret_val 460 drivers/net/ethernet/intel/e1000e/phy.c ret_val = hw->phy.ops.acquire(hw); ret_val 461 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 462 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 528 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val = 0; ret_val 533 drivers/net/ethernet/intel/e1000e/phy.c ret_val = hw->phy.ops.acquire(hw); ret_val 534 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 535 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 587 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 591 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_CTRL1000, &phy_data); ret_val 592 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 593 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 626 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 630 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, I82577_CFG_REG, &phy_data); ret_val 631 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 632 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 639 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, I82577_CFG_REG, phy_data); ret_val 640 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 641 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 644 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, I82577_PHY_CTRL_2, &phy_data); ret_val 645 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 646 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 664 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, I82577_PHY_CTRL_2, phy_data); ret_val 665 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 666 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 681 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 685 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); ret_val 686 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 687 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 733 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, M88E1000_PHY_SPEC_CTRL, ret_val 735 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 736 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 738 drivers/net/ethernet/intel/e1000e/phy.c ret_val = phy->ops.commit(hw); ret_val 739 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) { ret_val 741 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 748 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, M88E1000_PHY_SPEC_CTRL, phy_data); ret_val 749 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 750 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 758 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, M88E1000_EXT_PHY_SPEC_CTRL, &phy_data); ret_val 759 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 760 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 775 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, M88E1000_EXT_PHY_SPEC_CTRL, phy_data); ret_val 776 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 777 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 782 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, 29, 0x0003); ret_val 783 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 784 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 787 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, 30, 0x0000); ret_val 788 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 789 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 794 drivers/net/ethernet/intel/e1000e/phy.c ret_val = phy->ops.commit(hw); ret_val 795 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) { ret_val 797 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 802 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, M88E1000_EXT_PHY_SPEC_CTRL, &phy_data); ret_val 803 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 804 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 809 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, M88E1000_EXT_PHY_SPEC_CTRL, phy_data); ret_val 810 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 811 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 827 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 830 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_phy_hw_reset(hw); ret_val 831 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) { ret_val 833 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 843 drivers/net/ethernet/intel/e1000e/phy.c ret_val = hw->phy.ops.set_d0_lplu_state(hw, false); ret_val 844 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) { ret_val 846 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 850 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_CTRL, &data); ret_val 851 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 852 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 868 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, IGP01E1000_PHY_PORT_CTRL, data); ret_val 869 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 870 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 880 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 882 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 883 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 886 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 888 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 889 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 892 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_CTRL1000, &data); ret_val 893 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 894 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 897 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, MII_CTRL1000, data); ret_val 898 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 899 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 902 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_set_master_slave_mode(hw); ret_val 905 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 920 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 927 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_ADVERTISE, &mii_autoneg_adv_reg); ret_val 928 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 929 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 933 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_CTRL1000, &mii_1000t_ctrl_reg); ret_val 934 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 935 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1047 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, MII_ADVERTISE, mii_autoneg_adv_reg); ret_val 1048 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1049 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1054 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, MII_CTRL1000, mii_1000t_ctrl_reg); ret_val 1056 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1071 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 1086 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_phy_setup_autoneg(hw); ret_val 1087 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) { ret_val 1089 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1096 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_BMCR, &phy_ctrl); ret_val 1097 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1098 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1101 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, MII_BMCR, phy_ctrl); ret_val 1102 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1103 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1109 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_wait_autoneg(hw); ret_val 1110 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) { ret_val 1112 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1118 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1132 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 1139 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_copper_link_autoneg(hw); ret_val 1140 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1141 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1147 drivers/net/ethernet/intel/e1000e/phy.c ret_val = hw->phy.ops.force_speed_duplex(hw); ret_val 1148 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) { ret_val 1150 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1157 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_phy_has_link_generic(hw, COPPER_LINK_UP_LIMIT, 10, ret_val 1159 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1160 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1165 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_config_fc_after_link_up(hw); ret_val 1170 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1184 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 1188 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_BMCR, &phy_data); ret_val 1189 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1190 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1194 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, MII_BMCR, phy_data); ret_val 1195 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1196 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1201 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_CTRL, &phy_data); ret_val 1202 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1203 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1208 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, IGP01E1000_PHY_PORT_CTRL, phy_data); ret_val 1209 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1210 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1219 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_phy_has_link_generic(hw, PHY_FORCE_LIMIT, ret_val 1221 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1222 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1228 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_phy_has_link_generic(hw, PHY_FORCE_LIMIT, ret_val 1232 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1248 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 1255 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); ret_val 1256 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1257 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1260 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, M88E1000_PHY_SPEC_CTRL, phy_data); ret_val 1261 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1262 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1266 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_BMCR, &phy_data); ret_val 1267 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1268 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1272 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, MII_BMCR, phy_data); ret_val 1273 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1274 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1278 drivers/net/ethernet/intel/e1000e/phy.c ret_val = hw->phy.ops.commit(hw); ret_val 1279 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1280 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1286 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_phy_has_link_generic(hw, PHY_FORCE_LIMIT, ret_val 1288 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1289 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1298 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, M88E1000_PHY_PAGE_SELECT, ret_val 1300 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1301 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1302 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_phy_reset_dsp(hw); ret_val 1303 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1304 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1309 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_phy_has_link_generic(hw, PHY_FORCE_LIMIT, ret_val 1311 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1312 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1318 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, M88E1000_EXT_PHY_SPEC_CTRL, &phy_data); ret_val 1319 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1320 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1327 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, M88E1000_EXT_PHY_SPEC_CTRL, phy_data); ret_val 1328 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1329 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1334 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); ret_val 1335 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1336 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1339 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, M88E1000_PHY_SPEC_CTRL, phy_data); ret_val 1341 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1355 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 1359 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_BMCR, &data); ret_val 1360 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1361 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1365 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, MII_BMCR, data); ret_val 1366 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1367 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1370 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, IFE_PHY_MDIX_CONTROL, &data); ret_val 1371 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1372 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1377 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, IFE_PHY_MDIX_CONTROL, data); ret_val 1378 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1379 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1388 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_phy_has_link_generic(hw, PHY_FORCE_LIMIT, ret_val 1390 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1391 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1397 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_phy_has_link_generic(hw, PHY_FORCE_LIMIT, ret_val 1399 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1400 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1482 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 1485 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, IGP02E1000_PHY_POWER_MGMT, &data); ret_val 1486 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1487 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1491 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, IGP02E1000_PHY_POWER_MGMT, data); ret_val 1492 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1493 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1500 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 1502 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1503 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1506 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 1508 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1509 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1511 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 1513 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1514 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1517 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 1519 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1520 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1526 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, IGP02E1000_PHY_POWER_MGMT, data); ret_val 1527 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1528 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1531 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_CONFIG, &data); ret_val 1532 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1533 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1536 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, IGP01E1000_PHY_PORT_CONFIG, data); ret_val 1539 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1553 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 1575 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, offset, &phy_data); ret_val 1577 drivers/net/ethernet/intel/e1000e/phy.c if (!ret_val) ret_val 1580 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1594 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 1597 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, M88E1000_PHY_SPEC_STATUS, &data); ret_val 1599 drivers/net/ethernet/intel/e1000e/phy.c if (!ret_val) ret_val 1604 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1619 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 1625 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_STATUS, &data); ret_val 1626 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1627 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1641 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, offset, &data); ret_val 1643 drivers/net/ethernet/intel/e1000e/phy.c if (!ret_val) ret_val 1648 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1660 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 1673 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, offset, &phy_data); ret_val 1675 drivers/net/ethernet/intel/e1000e/phy.c if (!ret_val) ret_val 1680 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1692 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val = 0; ret_val 1697 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); ret_val 1698 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1700 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); ret_val 1701 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1711 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1726 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val = 0; ret_val 1735 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); ret_val 1736 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) { ret_val 1746 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_BMSR, &phy_status); ret_val 1747 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1759 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1780 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 1783 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, M88E1000_PHY_SPEC_STATUS, &phy_data); ret_val 1784 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1785 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1815 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 1828 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, agc_reg_array[i], &phy_data); ret_val 1829 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1830 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1883 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 1892 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link); ret_val 1893 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1894 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1901 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); ret_val 1902 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1903 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1908 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_check_polarity_m88(hw); ret_val 1909 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1910 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1912 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, M88E1000_PHY_SPEC_STATUS, &phy_data); ret_val 1913 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1914 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1919 drivers/net/ethernet/intel/e1000e/phy.c ret_val = hw->phy.ops.get_cable_length(hw); ret_val 1920 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1921 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1923 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_STAT1000, &phy_data); ret_val 1924 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1925 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1939 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1954 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 1958 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link); ret_val 1959 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1960 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1969 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_check_polarity_igp(hw); ret_val 1970 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1971 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1973 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, IGP01E1000_PHY_PORT_STATUS, &data); ret_val 1974 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1975 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1981 drivers/net/ethernet/intel/e1000e/phy.c ret_val = phy->ops.get_cable_length(hw); ret_val 1982 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1983 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 1985 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_STAT1000, &data); ret_val 1986 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 1987 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2000 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2012 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 2016 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link); ret_val 2017 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2018 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2025 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, IFE_PHY_SPECIAL_CONTROL, &data); ret_val 2026 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2027 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2031 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_check_polarity_ife(hw); ret_val 2032 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2033 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2041 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, IFE_PHY_MDIX_CONTROL, &data); ret_val 2042 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2043 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2064 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 2067 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_BMCR, &phy_ctrl); ret_val 2068 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2069 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2072 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, MII_BMCR, phy_ctrl); ret_val 2073 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2074 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2078 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2093 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 2097 drivers/net/ethernet/intel/e1000e/phy.c ret_val = phy->ops.check_reset_block(hw); ret_val 2098 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2102 drivers/net/ethernet/intel/e1000e/phy.c ret_val = phy->ops.acquire(hw); ret_val 2103 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2104 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2338 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 2341 drivers/net/ethernet/intel/e1000e/phy.c ret_val = hw->phy.ops.acquire(hw); ret_val 2342 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2343 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2347 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_access_phy_wakeup_reg_bm(hw, offset, &data, ret_val 2370 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_write_phy_reg_mdic(hw, page_select, ret_val 2372 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2376 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_write_phy_reg_mdic(hw, MAX_PHY_REG_ADDRESS & offset, ret_val 2381 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2396 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 2399 drivers/net/ethernet/intel/e1000e/phy.c ret_val = hw->phy.ops.acquire(hw); ret_val 2400 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2401 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2405 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_access_phy_wakeup_reg_bm(hw, offset, data, ret_val 2428 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_write_phy_reg_mdic(hw, page_select, ret_val 2430 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2434 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_read_phy_reg_mdic(hw, MAX_PHY_REG_ADDRESS & offset, ret_val 2438 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2453 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 2456 drivers/net/ethernet/intel/e1000e/phy.c ret_val = hw->phy.ops.acquire(hw); ret_val 2457 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2458 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2462 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_access_phy_wakeup_reg_bm(hw, offset, data, ret_val 2471 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_write_phy_reg_mdic(hw, BM_PHY_PAGE_SELECT, ret_val 2474 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2478 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_read_phy_reg_mdic(hw, MAX_PHY_REG_ADDRESS & offset, ret_val 2482 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2496 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 2499 drivers/net/ethernet/intel/e1000e/phy.c ret_val = hw->phy.ops.acquire(hw); ret_val 2500 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2501 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2505 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_access_phy_wakeup_reg_bm(hw, offset, &data, ret_val 2514 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_write_phy_reg_mdic(hw, BM_PHY_PAGE_SELECT, ret_val 2517 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2521 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_write_phy_reg_mdic(hw, MAX_PHY_REG_ADDRESS & offset, ret_val 2526 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2539 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 2546 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_set_page_igp(hw, (BM_PORT_CTRL_PAGE << IGP_PAGE_SHIFT)); ret_val 2547 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) { ret_val 2549 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2552 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_read_phy_reg_mdic(hw, BM_WUC_ENABLE_REG, phy_reg); ret_val 2553 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) { ret_val 2556 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2566 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_write_phy_reg_mdic(hw, BM_WUC_ENABLE_REG, temp); ret_val 2567 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) { ret_val 2570 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2592 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 2595 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_set_page_igp(hw, (BM_PORT_CTRL_PAGE << IGP_PAGE_SHIFT)); ret_val 2596 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) { ret_val 2598 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2602 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_write_phy_reg_mdic(hw, BM_WUC_ENABLE_REG, *phy_reg); ret_val 2603 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2607 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2638 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 2651 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_enable_phy_wakeup_reg_access_bm(hw, &phy_reg); ret_val 2652 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) { ret_val 2654 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2661 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_write_phy_reg_mdic(hw, BM_WUC_ADDRESS_OPCODE, reg); ret_val 2662 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) { ret_val 2664 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2669 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_read_phy_reg_mdic(hw, BM_WUC_DATA_OPCODE, ret_val 2673 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_write_phy_reg_mdic(hw, BM_WUC_DATA_OPCODE, ret_val 2677 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) { ret_val 2679 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2683 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_disable_phy_wakeup_reg_access_bm(hw, &phy_reg); ret_val 2685 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2739 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 2745 drivers/net/ethernet/intel/e1000e/phy.c ret_val = hw->phy.ops.acquire(hw); ret_val 2746 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2747 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2752 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_access_phy_wakeup_reg_bm(hw, offset, data, ret_val 2758 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_access_phy_debug_regs_hv(hw, offset, ret_val 2769 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_set_page_igp(hw, ret_val 2774 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2782 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_read_phy_reg_mdic(hw, MAX_PHY_REG_ADDRESS & reg, data); ret_val 2787 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2846 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 2852 drivers/net/ethernet/intel/e1000e/phy.c ret_val = hw->phy.ops.acquire(hw); ret_val 2853 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2854 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2859 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_access_phy_wakeup_reg_bm(hw, offset, &data, ret_val 2865 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_access_phy_debug_regs_hv(hw, offset, ret_val 2883 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_access_phy_debug_regs_hv(hw, ret_val 2886 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2892 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_set_page_igp(hw, ret_val 2897 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 2905 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_write_phy_reg_mdic(hw, MAX_PHY_REG_ADDRESS & reg, ret_val 2912 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 2986 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 2999 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_write_phy_reg_mdic(hw, addr_reg, (u16)offset & 0x3F); ret_val 3000 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) { ret_val 3002 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 3007 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_read_phy_reg_mdic(hw, data_reg, data); ret_val 3009 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_write_phy_reg_mdic(hw, data_reg, *data); ret_val 3011 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 3014 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 3030 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val = 0; ret_val 3042 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, BM_CS_STATUS, &data); ret_val 3043 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 3044 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 3056 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, HV_MUX_DATA_CTRL, ret_val 3059 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 3060 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 3076 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 3079 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, I82577_PHY_STATUS_2, &data); ret_val 3081 drivers/net/ethernet/intel/e1000e/phy.c if (!ret_val) ret_val 3086 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 3098 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 3102 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_BMCR, &phy_data); ret_val 3103 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 3104 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 3108 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_wphy(hw, MII_BMCR, phy_data); ret_val 3109 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 3110 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 3117 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_phy_has_link_generic(hw, PHY_FORCE_LIMIT, ret_val 3119 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 3120 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 3126 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_phy_has_link_generic(hw, PHY_FORCE_LIMIT, ret_val 3130 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 3145 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 3149 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000e_phy_has_link_generic(hw, 1, 0, &link); ret_val 3150 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 3151 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 3160 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1000_check_polarity_82577(hw); ret_val 3161 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 3162 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 3164 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, I82577_PHY_STATUS_2, &data); ret_val 3165 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 3166 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 3172 drivers/net/ethernet/intel/e1000e/phy.c ret_val = hw->phy.ops.get_cable_length(hw); ret_val 3173 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 3174 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 3176 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, MII_STAT1000, &data); ret_val 3177 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 3178 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 3204 drivers/net/ethernet/intel/e1000e/phy.c s32 ret_val; ret_val 3207 drivers/net/ethernet/intel/e1000e/phy.c ret_val = e1e_rphy(hw, I82577_PHY_DIAG_STATUS, &phy_data); ret_val 3208 drivers/net/ethernet/intel/e1000e/phy.c if (ret_val) ret_val 3209 drivers/net/ethernet/intel/e1000e/phy.c return ret_val; ret_val 34 drivers/net/ethernet/intel/e1000e/ptp.c s32 ret_val; ret_val 45 drivers/net/ethernet/intel/e1000e/ptp.c ret_val = e1000e_get_base_timinca(adapter, &timinca); ret_val 46 drivers/net/ethernet/intel/e1000e/ptp.c if (ret_val) ret_val 47 drivers/net/ethernet/intel/e1000e/ptp.c return ret_val; ret_val 478 drivers/net/ethernet/intel/fm10k/fm10k_common.c s32 ret_val = 0; ret_val 494 drivers/net/ethernet/intel/fm10k/fm10k_common.c ret_val = FM10K_ERR_RESET_REQUESTED; ret_val 500 drivers/net/ethernet/intel/fm10k/fm10k_common.c ret_val = FM10K_ERR_RESET_REQUESTED; ret_val 511 drivers/net/ethernet/intel/fm10k/fm10k_common.c ret_val = mac->ops.request_lport_map(hw); ret_val 523 drivers/net/ethernet/intel/fm10k/fm10k_common.c return ret_val; ret_val 1746 drivers/net/ethernet/intel/i40e/i40e_ethtool.c int ret_val = 0, len, offset; ret_val 1769 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ret_val = i40e_nvmupd_command(hw, cmd, bytes, &errno); ret_val 1771 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if ((errno || ret_val) && (hw->debug_mask & I40E_DEBUG_NVM)) ret_val 1774 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ret_val, hw->aq.asq_last_status, errno, ret_val 1788 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ret_val = i40e_acquire_nvm(hw, I40E_RESOURCE_READ); ret_val 1789 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (ret_val) { ret_val 1792 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ret_val, hw->aq.asq_last_status); ret_val 1806 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ret_val = i40e_aq_read_nvm(hw, 0x0, offset, len, ret_val 1809 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if (ret_val && hw->aq.asq_last_status == I40E_AQ_RC_EPERM) { ret_val 1814 drivers/net/ethernet/intel/i40e/i40e_ethtool.c } else if (ret_val && ret_val 1820 drivers/net/ethernet/intel/i40e/i40e_ethtool.c } else if (ret_val) { ret_val 1823 drivers/net/ethernet/intel/i40e/i40e_ethtool.c offset, ret_val, hw->aq.asq_last_status); ret_val 1832 drivers/net/ethernet/intel/i40e/i40e_ethtool.c return ret_val; ret_val 1861 drivers/net/ethernet/intel/i40e/i40e_ethtool.c int ret_val = 0; ret_val 1876 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ret_val = i40e_nvmupd_command(hw, cmd, bytes, &errno); ret_val 1878 drivers/net/ethernet/intel/i40e/i40e_ethtool.c if ((errno || ret_val) && (hw->debug_mask & I40E_DEBUG_NVM)) ret_val 1881 drivers/net/ethernet/intel/i40e/i40e_ethtool.c ret_val, hw->aq.asq_last_status, errno, ret_val 122 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val; ret_val 127 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.write_reg(hw, E1000_M88E1112_PAGE_ADDR, 0); ret_val 128 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 129 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 131 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.read_reg(hw, E1000_M88E1112_STATUS, &data); ret_val 132 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 133 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 139 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.write_reg(hw, E1000_M88E1112_PAGE_ADDR, 1); ret_val 140 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 141 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 143 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.read_reg(hw, E1000_M88E1112_STATUS, &data); ret_val 144 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 145 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 159 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.write_reg(hw, E1000_M88E1112_PAGE_ADDR, 0); ret_val 160 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 161 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 166 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.write_reg(hw, E1000_M88E1112_PAGE_ADDR, 0); ret_val 167 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 168 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 181 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val = 0; ret_val 229 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_get_phy_id_82575(hw); ret_val 230 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 231 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 253 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.write_reg(hw, ret_val 256 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 259 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.read_reg(hw, ret_val 262 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 273 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_initialize_M88E1512_phy(hw); ret_val 274 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 278 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_initialize_M88E1543_phy(hw); ret_val 279 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 315 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = -E1000_ERR_PHY; ret_val 320 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 494 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val = E1000_ERR_CONFIG; ret_val 510 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_read_sfp_data_byte(hw, ret_val 513 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val == 0) ret_val 518 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val != 0) ret_val 521 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_read_sfp_data_byte(hw, ret_val 524 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val != 0) ret_val 547 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = 0; ret_val 551 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 558 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val; ret_val 644 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_set_sfp_media_type_82575(hw); ret_val 645 drivers/net/ethernet/intel/igb/e1000_82575.c if ((ret_val != 0) || ret_val 676 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_init_mac_params_82575(hw); ret_val 677 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 681 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_init_nvm_params_82575(hw); ret_val 685 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_init_nvm_params_i210(hw); ret_val 691 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 705 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_init_phy_params_82575(hw); ret_val 708 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 765 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val = -E1000_ERR_PARAM; ret_val 772 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = hw->phy.ops.acquire(hw); ret_val 773 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 776 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_read_phy_reg_i2c(hw, offset, data); ret_val 781 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 796 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val = -E1000_ERR_PARAM; ret_val 804 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = hw->phy.ops.acquire(hw); ret_val 805 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 808 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_write_phy_reg_i2c(hw, offset, data); ret_val 813 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 826 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val = 0; ret_val 843 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_get_phy_id(hw); ret_val 865 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = -E1000_ERR_PHY; ret_val 868 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_get_phy_id(hw); ret_val 882 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_read_phy_reg_sgmii_82575(hw, PHY_ID1, &phy_id); ret_val 883 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val == 0) { ret_val 899 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = -E1000_ERR_PHY; ret_val 902 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_get_phy_id(hw); ret_val 909 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 921 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val; ret_val 932 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = hw->phy.ops.write_reg(hw, 0x1B, 0x8084); ret_val 933 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 936 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_phy_sw_reset(hw); ret_val 937 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 941 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_initialize_M88E1512_phy(hw); ret_val 943 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_initialize_M88E1543_phy(hw); ret_val 945 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 964 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val; ret_val 967 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.read_reg(hw, IGP02E1000_PHY_POWER_MGMT, &data); ret_val 968 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 973 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.write_reg(hw, IGP02E1000_PHY_POWER_MGMT, ret_val 975 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 979 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.read_reg(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 982 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.write_reg(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 984 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 988 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.write_reg(hw, IGP02E1000_PHY_POWER_MGMT, ret_val 996 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.read_reg(hw, ret_val 998 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 1002 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.write_reg(hw, ret_val 1004 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 1007 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.read_reg(hw, ret_val 1009 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 1013 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.write_reg(hw, ret_val 1015 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 1021 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 1121 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val; ret_val 1123 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = hw->mac.ops.acquire_swfw_sync(hw, E1000_SWFW_EEP_SM); ret_val 1124 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 1127 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_acquire_nvm(hw); ret_val 1129 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 1133 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 1162 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val = 0; ret_val 1167 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = -E1000_ERR_SWFW_SYNC; ret_val 1185 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = -E1000_ERR_SWFW_SYNC; ret_val 1195 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 1272 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val; ret_val 1275 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_get_pcs_speed_and_duplex_82575(hw, speed, ret_val 1278 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_get_speed_and_duplex_copper(hw, speed, ret_val 1281 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 1293 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val; ret_val 1297 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_get_pcs_speed_and_duplex_82575(hw, &speed, ret_val 1310 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_config_fc_after_link_up(hw); ret_val 1311 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 1314 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_check_for_copper_link(hw); ret_val 1317 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 1454 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val; ret_val 1459 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_disable_pcie_master(hw); ret_val 1460 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 1464 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_set_pcie_completion_timeout(hw); ret_val 1465 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 1482 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_get_auto_rd_done(hw); ret_val 1483 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) { ret_val 1500 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_check_alt_mac_addr(hw); ret_val 1502 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 1514 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val; ret_val 1519 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_pll_workaround_i210(hw); ret_val 1520 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 1521 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 1525 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_id_led_init(hw); ret_val 1526 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) { ret_val 1549 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_setup_link(hw); ret_val 1557 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 1571 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val; ret_val 1593 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_setup_serdes_link_82575(hw); ret_val 1594 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 1601 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = hw->phy.ops.reset(hw); ret_val 1602 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) { ret_val 1616 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_copper_link_setup_m88_gen2(hw); ret_val 1619 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_copper_link_setup_m88(hw); ret_val 1624 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_copper_link_setup_igp(hw); ret_val 1627 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_copper_link_setup_82580(hw); ret_val 1630 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = 0; ret_val 1633 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = -E1000_ERR_PHY; ret_val 1637 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 1640 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_setup_copper_link(hw); ret_val 1642 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 1658 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val = 0; ret_val 1663 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 1711 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = hw->nvm.ops.read(hw, NVM_COMPAT, 1, &data); ret_val 1712 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) { ret_val 1714 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 1784 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 1843 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val = 0; ret_val 1849 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_check_alt_mac_addr(hw); ret_val 1850 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 1853 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_read_mac_addr(hw); ret_val 1856 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 2026 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val = 0; ret_val 2045 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_read_pcie_cap_reg(hw, PCIE_DEVICE_CONTROL2, ret_val 2047 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 2052 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_write_pcie_cap_reg(hw, PCIE_DEVICE_CONTROL2, ret_val 2059 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 2167 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val; ret_val 2169 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = hw->phy.ops.acquire(hw); ret_val 2170 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 2173 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_read_phy_reg_mdic(hw, offset, data); ret_val 2178 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 2191 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val; ret_val 2194 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = hw->phy.ops.acquire(hw); ret_val 2195 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 2198 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_write_phy_reg_mdic(hw, offset, data); ret_val 2203 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 2216 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val = 0; ret_val 2225 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = hw->nvm.ops.read(hw, NVM_INIT_CONTROL3_PORT_A + ret_val 2228 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) { ret_val 2240 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 2252 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val = 0; ret_val 2272 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_disable_pcie_master(hw); ret_val 2273 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 2302 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_get_auto_rd_done(hw); ret_val 2303 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) { ret_val 2318 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_reset_mdicnfg_82580(hw); ret_val 2319 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 2323 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_check_alt_mac_addr(hw); ret_val 2329 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 2344 drivers/net/ethernet/intel/igb/e1000_82575.c u16 ret_val = 0; ret_val 2347 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = e1000_82580_rxpbs_table[data]; ret_val 2349 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 2364 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val = 0; ret_val 2369 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); ret_val 2370 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) { ret_val 2379 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = -E1000_ERR_NVM; ret_val 2384 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 2399 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val; ret_val 2404 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); ret_val 2405 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) { ret_val 2412 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = hw->nvm.ops.write(hw, (NVM_CHECKSUM_REG + offset), 1, ret_val 2414 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 2418 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 2431 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val = 0; ret_val 2436 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = hw->nvm.ops.read(hw, NVM_COMPATIBILITY_REG_3, 1, &nvm_data); ret_val 2437 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) { ret_val 2451 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_validate_nvm_checksum_with_offset(hw, ret_val 2453 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val != 0) ret_val 2458 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 2471 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val; ret_val 2475 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = hw->nvm.ops.read(hw, NVM_COMPATIBILITY_REG_3, 1, &nvm_data); ret_val 2476 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) { ret_val 2484 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = hw->nvm.ops.write(hw, NVM_COMPATIBILITY_REG_3, 1, ret_val 2486 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) { ret_val 2494 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_update_nvm_checksum_with_offset(hw, nvm_offset); ret_val 2495 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 2500 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 2513 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val = 0; ret_val 2519 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_validate_nvm_checksum_with_offset(hw, ret_val 2521 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val != 0) ret_val 2526 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 2539 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val = 0; ret_val 2545 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_update_nvm_checksum_with_offset(hw, nvm_offset); ret_val 2546 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val != 0) ret_val 2551 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 2564 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val = 0; ret_val 2566 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = hw->phy.ops.write_reg(hw, E1000_EMIADD, address); ret_val 2567 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 2568 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 2571 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = hw->phy.ops.read_reg(hw, E1000_EMIDATA, data); ret_val 2573 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = hw->phy.ops.write_reg(hw, E1000_EMIDATA, *data); ret_val 2575 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 2657 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val = 0; ret_val 2667 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.write_reg(hw, E1000_M88E1543_PAGE_ADDR, 18); ret_val 2668 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 2671 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.read_reg(hw, E1000_M88E1543_EEE_CTRL_1, ret_val 2673 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 2677 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.write_reg(hw, E1000_M88E1543_EEE_CTRL_1, ret_val 2679 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 2683 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = phy->ops.write_reg(hw, E1000_M88E1543_PAGE_ADDR, 0); ret_val 2684 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 2688 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_read_xmdio_reg(hw, E1000_EEE_ADV_ADDR_I354, ret_val 2691 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 2704 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_write_xmdio_reg(hw, E1000_EEE_ADV_ADDR_I354, ret_val 2709 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_read_xmdio_reg(hw, E1000_EEE_ADV_ADDR_I354, ret_val 2712 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 2717 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_write_xmdio_reg(hw, E1000_EEE_ADV_ADDR_I354, ret_val 2723 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 2737 drivers/net/ethernet/intel/igb/e1000_82575.c s32 ret_val = 0; ret_val 2746 drivers/net/ethernet/intel/igb/e1000_82575.c ret_val = igb_read_xmdio_reg(hw, E1000_PCS_STATUS_ADDR_I354, ret_val 2749 drivers/net/ethernet/intel/igb/e1000_82575.c if (ret_val) ret_val 2756 drivers/net/ethernet/intel/igb/e1000_82575.c return ret_val; ret_val 122 drivers/net/ethernet/intel/igb/e1000_i210.c s32 ret_val = 0; ret_val 127 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = -E1000_ERR_SWFW_SYNC; ret_val 143 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = -E1000_ERR_SWFW_SYNC; ret_val 152 drivers/net/ethernet/intel/igb/e1000_i210.c return ret_val; ret_val 233 drivers/net/ethernet/intel/igb/e1000_i210.c s32 ret_val = 0; ret_val 241 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = -E1000_ERR_NVM; ret_val 255 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = 0; ret_val 261 drivers/net/ethernet/intel/igb/e1000_i210.c if (ret_val) { ret_val 268 drivers/net/ethernet/intel/igb/e1000_i210.c return ret_val; ret_val 368 drivers/net/ethernet/intel/igb/e1000_i210.c s32 ret_val = 0; ret_val 373 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = igb_read_invm_word_i210(hw, (u8)offset, &data[0]); ret_val 374 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val |= igb_read_invm_word_i210(hw, (u8)offset+1, ret_val 376 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val |= igb_read_invm_word_i210(hw, (u8)offset+2, ret_val 378 drivers/net/ethernet/intel/igb/e1000_i210.c if (ret_val) ret_val 382 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = igb_read_invm_word_i210(hw, (u8)offset, data); ret_val 383 drivers/net/ethernet/intel/igb/e1000_i210.c if (ret_val) { ret_val 385 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = 0; ret_val 389 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = igb_read_invm_word_i210(hw, (u8)offset, data); ret_val 390 drivers/net/ethernet/intel/igb/e1000_i210.c if (ret_val) { ret_val 392 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = 0; ret_val 396 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = igb_read_invm_word_i210(hw, (u8)offset, data); ret_val 397 drivers/net/ethernet/intel/igb/e1000_i210.c if (ret_val) { ret_val 399 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = 0; ret_val 403 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = igb_read_invm_word_i210(hw, (u8)offset, data); ret_val 404 drivers/net/ethernet/intel/igb/e1000_i210.c if (ret_val) { ret_val 406 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = 0; ret_val 410 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = igb_read_invm_word_i210(hw, (u8)offset, data); ret_val 411 drivers/net/ethernet/intel/igb/e1000_i210.c if (ret_val) { ret_val 413 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = 0; ret_val 433 drivers/net/ethernet/intel/igb/e1000_i210.c return ret_val; ret_val 574 drivers/net/ethernet/intel/igb/e1000_i210.c s32 ret_val = 0; ret_val 582 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = igb_read_nvm_eerd(hw, 0, 1, &nvm_data); ret_val 583 drivers/net/ethernet/intel/igb/e1000_i210.c if (ret_val) { ret_val 595 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = igb_read_nvm_eerd(hw, i, 1, &nvm_data); ret_val 596 drivers/net/ethernet/intel/igb/e1000_i210.c if (ret_val) { ret_val 604 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = igb_write_nvm_srwr(hw, NVM_CHECKSUM_REG, 1, ret_val 606 drivers/net/ethernet/intel/igb/e1000_i210.c if (ret_val) { ret_val 614 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = igb_update_flash_i210(hw); ret_val 616 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = -E1000_ERR_SWFW_SYNC; ret_val 619 drivers/net/ethernet/intel/igb/e1000_i210.c return ret_val; ret_val 629 drivers/net/ethernet/intel/igb/e1000_i210.c s32 ret_val = -E1000_ERR_NVM; ret_val 635 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = 0; ret_val 641 drivers/net/ethernet/intel/igb/e1000_i210.c return ret_val; ret_val 652 drivers/net/ethernet/intel/igb/e1000_i210.c bool ret_val = false; ret_val 656 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = true; ret_val 658 drivers/net/ethernet/intel/igb/e1000_i210.c return ret_val; ret_val 668 drivers/net/ethernet/intel/igb/e1000_i210.c s32 ret_val = 0; ret_val 671 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = igb_pool_flash_update_done_i210(hw); ret_val 672 drivers/net/ethernet/intel/igb/e1000_i210.c if (ret_val == -E1000_ERR_NVM) { ret_val 680 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = igb_pool_flash_update_done_i210(hw); ret_val 681 drivers/net/ethernet/intel/igb/e1000_i210.c if (ret_val) ret_val 687 drivers/net/ethernet/intel/igb/e1000_i210.c return ret_val; ret_val 700 drivers/net/ethernet/intel/igb/e1000_i210.c s32 ret_val; ret_val 702 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = hw->nvm.ops.read(hw, NVM_ID_LED_SETTINGS, 1, data); ret_val 703 drivers/net/ethernet/intel/igb/e1000_i210.c if (ret_val) { ret_val 720 drivers/net/ethernet/intel/igb/e1000_i210.c return ret_val; ret_val 734 drivers/net/ethernet/intel/igb/e1000_i210.c s32 ret_val = 0; ret_val 736 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = hw->phy.ops.write_reg(hw, E1000_MMDAC, dev_addr); ret_val 737 drivers/net/ethernet/intel/igb/e1000_i210.c if (ret_val) ret_val 738 drivers/net/ethernet/intel/igb/e1000_i210.c return ret_val; ret_val 740 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = hw->phy.ops.write_reg(hw, E1000_MMDAAD, address); ret_val 741 drivers/net/ethernet/intel/igb/e1000_i210.c if (ret_val) ret_val 742 drivers/net/ethernet/intel/igb/e1000_i210.c return ret_val; ret_val 744 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = hw->phy.ops.write_reg(hw, E1000_MMDAC, E1000_MMDAC_FUNC_DATA | ret_val 746 drivers/net/ethernet/intel/igb/e1000_i210.c if (ret_val) ret_val 747 drivers/net/ethernet/intel/igb/e1000_i210.c return ret_val; ret_val 750 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = hw->phy.ops.read_reg(hw, E1000_MMDAAD, data); ret_val 752 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = hw->phy.ops.write_reg(hw, E1000_MMDAAD, *data); ret_val 753 drivers/net/ethernet/intel/igb/e1000_i210.c if (ret_val) ret_val 754 drivers/net/ethernet/intel/igb/e1000_i210.c return ret_val; ret_val 757 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = hw->phy.ops.write_reg(hw, E1000_MMDAC, 0); ret_val 758 drivers/net/ethernet/intel/igb/e1000_i210.c if (ret_val) ret_val 759 drivers/net/ethernet/intel/igb/e1000_i210.c return ret_val; ret_val 761 drivers/net/ethernet/intel/igb/e1000_i210.c return ret_val; ret_val 794 drivers/net/ethernet/intel/igb/e1000_i210.c s32 ret_val = 0; ret_val 815 drivers/net/ethernet/intel/igb/e1000_i210.c return ret_val; ret_val 827 drivers/net/ethernet/intel/igb/e1000_i210.c s32 ret_val; ret_val 839 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = igb_read_invm_word_i210(hw, E1000_INVM_AUTOLOAD, ret_val 841 drivers/net/ethernet/intel/igb/e1000_i210.c if (ret_val) ret_val 851 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = 0; ret_val 854 drivers/net/ethernet/intel/igb/e1000_i210.c ret_val = -E1000_ERR_PHY; ret_val 883 drivers/net/ethernet/intel/igb/e1000_i210.c return ret_val; ret_val 28 drivers/net/ethernet/intel/igb/e1000_mac.c s32 ret_val; ret_val 34 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = igb_read_pcie_cap_reg(hw, ret_val 37 drivers/net/ethernet/intel/igb/e1000_mac.c if (ret_val) { ret_val 289 drivers/net/ethernet/intel/igb/e1000_mac.c s32 ret_val = 0; ret_val 299 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = hw->nvm.ops.read(hw, NVM_ALT_MAC_ADDR_PTR, 1, ret_val 301 drivers/net/ethernet/intel/igb/e1000_mac.c if (ret_val) { ret_val 320 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = hw->nvm.ops.read(hw, offset, 1, &nvm_data); ret_val 321 drivers/net/ethernet/intel/igb/e1000_mac.c if (ret_val) { ret_val 343 drivers/net/ethernet/intel/igb/e1000_mac.c return ret_val; ret_val 578 drivers/net/ethernet/intel/igb/e1000_mac.c s32 ret_val; ret_val 587 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = 0; ret_val 595 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = igb_phy_has_link(hw, 1, 0, &link); ret_val 596 drivers/net/ethernet/intel/igb/e1000_mac.c if (ret_val) ret_val 613 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = -E1000_ERR_CONFIG; ret_val 628 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = igb_config_fc_after_link_up(hw); ret_val 629 drivers/net/ethernet/intel/igb/e1000_mac.c if (ret_val) ret_val 633 drivers/net/ethernet/intel/igb/e1000_mac.c return ret_val; ret_val 648 drivers/net/ethernet/intel/igb/e1000_mac.c s32 ret_val = 0; ret_val 660 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = igb_set_default_fc(hw); ret_val 661 drivers/net/ethernet/intel/igb/e1000_mac.c if (ret_val) ret_val 674 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = hw->mac.ops.setup_physical_interface(hw); ret_val 675 drivers/net/ethernet/intel/igb/e1000_mac.c if (ret_val) ret_val 690 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = igb_set_fc_watermarks(hw); ret_val 694 drivers/net/ethernet/intel/igb/e1000_mac.c return ret_val; ret_val 728 drivers/net/ethernet/intel/igb/e1000_mac.c s32 ret_val = 0; ret_val 751 drivers/net/ethernet/intel/igb/e1000_mac.c return ret_val; ret_val 763 drivers/net/ethernet/intel/igb/e1000_mac.c s32 ret_val = 0; ret_val 780 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = hw->nvm.ops.read(hw, NVM_INIT_CONTROL2_REG + lan_offset, ret_val 782 drivers/net/ethernet/intel/igb/e1000_mac.c if (ret_val) { ret_val 795 drivers/net/ethernet/intel/igb/e1000_mac.c return ret_val; ret_val 811 drivers/net/ethernet/intel/igb/e1000_mac.c s32 ret_val = 0; ret_val 851 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = -E1000_ERR_CONFIG; ret_val 858 drivers/net/ethernet/intel/igb/e1000_mac.c return ret_val; ret_val 874 drivers/net/ethernet/intel/igb/e1000_mac.c s32 ret_val = 0; ret_val 885 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = igb_force_mac_fc(hw); ret_val 888 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = igb_force_mac_fc(hw); ret_val 891 drivers/net/ethernet/intel/igb/e1000_mac.c if (ret_val) { ret_val 906 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, ret_val 908 drivers/net/ethernet/intel/igb/e1000_mac.c if (ret_val) ret_val 910 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, ret_val 912 drivers/net/ethernet/intel/igb/e1000_mac.c if (ret_val) ret_val 926 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = hw->phy.ops.read_reg(hw, PHY_AUTONEG_ADV, ret_val 928 drivers/net/ethernet/intel/igb/e1000_mac.c if (ret_val) ret_val 930 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = hw->phy.ops.read_reg(hw, PHY_LP_ABILITY, ret_val 932 drivers/net/ethernet/intel/igb/e1000_mac.c if (ret_val) ret_val 1046 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = hw->mac.ops.get_speed_and_duplex(hw, &speed, &duplex); ret_val 1047 drivers/net/ethernet/intel/igb/e1000_mac.c if (ret_val) { ret_val 1058 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = igb_force_mac_fc(hw); ret_val 1059 drivers/net/ethernet/intel/igb/e1000_mac.c if (ret_val) { ret_val 1078 drivers/net/ethernet/intel/igb/e1000_mac.c return ret_val; ret_val 1181 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = igb_force_mac_fc(hw); ret_val 1182 drivers/net/ethernet/intel/igb/e1000_mac.c if (ret_val) { ret_val 1184 drivers/net/ethernet/intel/igb/e1000_mac.c return ret_val; ret_val 1189 drivers/net/ethernet/intel/igb/e1000_mac.c return ret_val; ret_val 1238 drivers/net/ethernet/intel/igb/e1000_mac.c s32 ret_val = 0; ret_val 1254 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = -E1000_ERR_NVM; ret_val 1274 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = -E1000_ERR_NVM; ret_val 1279 drivers/net/ethernet/intel/igb/e1000_mac.c return ret_val; ret_val 1308 drivers/net/ethernet/intel/igb/e1000_mac.c s32 ret_val = 0; ret_val 1320 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = -E1000_ERR_RESET; ret_val 1325 drivers/net/ethernet/intel/igb/e1000_mac.c return ret_val; ret_val 1338 drivers/net/ethernet/intel/igb/e1000_mac.c s32 ret_val; ret_val 1340 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = hw->nvm.ops.read(hw, NVM_ID_LED_SETTINGS, 1, data); ret_val 1341 drivers/net/ethernet/intel/igb/e1000_mac.c if (ret_val) { ret_val 1358 drivers/net/ethernet/intel/igb/e1000_mac.c return ret_val; ret_val 1369 drivers/net/ethernet/intel/igb/e1000_mac.c s32 ret_val; ret_val 1379 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = igb_valid_led_default_i210(hw, &data); ret_val 1381 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = igb_valid_led_default(hw, &data); ret_val 1383 drivers/net/ethernet/intel/igb/e1000_mac.c if (ret_val) ret_val 1429 drivers/net/ethernet/intel/igb/e1000_mac.c return ret_val; ret_val 1524 drivers/net/ethernet/intel/igb/e1000_mac.c s32 ret_val = 0; ret_val 1543 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = -E1000_ERR_MASTER_REQUESTS_PENDING; ret_val 1548 drivers/net/ethernet/intel/igb/e1000_mac.c return ret_val; ret_val 1560 drivers/net/ethernet/intel/igb/e1000_mac.c s32 ret_val = 0; ret_val 1569 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = -E1000_ERR_CONFIG; ret_val 1574 drivers/net/ethernet/intel/igb/e1000_mac.c return ret_val; ret_val 1592 drivers/net/ethernet/intel/igb/e1000_mac.c s32 ret_val = 0; ret_val 1607 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = -E1000_ERR_PHY; ret_val 1612 drivers/net/ethernet/intel/igb/e1000_mac.c return ret_val; ret_val 1626 drivers/net/ethernet/intel/igb/e1000_mac.c bool ret_val = false; ret_val 1643 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = true; ret_val 1649 drivers/net/ethernet/intel/igb/e1000_mac.c ret_val = true; ret_val 1655 drivers/net/ethernet/intel/igb/e1000_mac.c return ret_val; ret_val 19 drivers/net/ethernet/intel/igb/e1000_mbx.c s32 ret_val = -E1000_ERR_MBX; ret_val 26 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = mbx->ops.read(hw, msg, size, mbx_id, unlock); ret_val 28 drivers/net/ethernet/intel/igb/e1000_mbx.c return ret_val; ret_val 43 drivers/net/ethernet/intel/igb/e1000_mbx.c s32 ret_val = 0; ret_val 46 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = -E1000_ERR_MBX; ret_val 49 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = mbx->ops.write(hw, msg, size, mbx_id); ret_val 51 drivers/net/ethernet/intel/igb/e1000_mbx.c return ret_val; ret_val 64 drivers/net/ethernet/intel/igb/e1000_mbx.c s32 ret_val = -E1000_ERR_MBX; ret_val 67 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = mbx->ops.check_for_msg(hw, mbx_id); ret_val 69 drivers/net/ethernet/intel/igb/e1000_mbx.c return ret_val; ret_val 82 drivers/net/ethernet/intel/igb/e1000_mbx.c s32 ret_val = -E1000_ERR_MBX; ret_val 85 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = mbx->ops.check_for_ack(hw, mbx_id); ret_val 87 drivers/net/ethernet/intel/igb/e1000_mbx.c return ret_val; ret_val 100 drivers/net/ethernet/intel/igb/e1000_mbx.c s32 ret_val = -E1000_ERR_MBX; ret_val 103 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = mbx->ops.check_for_rst(hw, mbx_id); ret_val 105 drivers/net/ethernet/intel/igb/e1000_mbx.c return ret_val; ret_val 118 drivers/net/ethernet/intel/igb/e1000_mbx.c s32 ret_val = -E1000_ERR_MBX; ret_val 121 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = mbx->ops.unlock(hw, mbx_id); ret_val 123 drivers/net/ethernet/intel/igb/e1000_mbx.c return ret_val; ret_val 198 drivers/net/ethernet/intel/igb/e1000_mbx.c s32 ret_val = -E1000_ERR_MBX; ret_val 203 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = igb_poll_for_msg(hw, mbx_id); ret_val 205 drivers/net/ethernet/intel/igb/e1000_mbx.c if (!ret_val) ret_val 206 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = mbx->ops.read(hw, msg, size, mbx_id, true); ret_val 208 drivers/net/ethernet/intel/igb/e1000_mbx.c return ret_val; ret_val 225 drivers/net/ethernet/intel/igb/e1000_mbx.c s32 ret_val = -E1000_ERR_MBX; ret_val 232 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = mbx->ops.write(hw, msg, size, mbx_id); ret_val 235 drivers/net/ethernet/intel/igb/e1000_mbx.c if (!ret_val) ret_val 236 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = igb_poll_for_ack(hw, mbx_id); ret_val 238 drivers/net/ethernet/intel/igb/e1000_mbx.c return ret_val; ret_val 244 drivers/net/ethernet/intel/igb/e1000_mbx.c s32 ret_val = -E1000_ERR_MBX; ret_val 247 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = 0; ret_val 251 drivers/net/ethernet/intel/igb/e1000_mbx.c return ret_val; ret_val 263 drivers/net/ethernet/intel/igb/e1000_mbx.c s32 ret_val = -E1000_ERR_MBX; ret_val 266 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = 0; ret_val 270 drivers/net/ethernet/intel/igb/e1000_mbx.c return ret_val; ret_val 282 drivers/net/ethernet/intel/igb/e1000_mbx.c s32 ret_val = -E1000_ERR_MBX; ret_val 285 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = 0; ret_val 289 drivers/net/ethernet/intel/igb/e1000_mbx.c return ret_val; ret_val 302 drivers/net/ethernet/intel/igb/e1000_mbx.c s32 ret_val = -E1000_ERR_MBX; ret_val 305 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = 0; ret_val 310 drivers/net/ethernet/intel/igb/e1000_mbx.c return ret_val; ret_val 322 drivers/net/ethernet/intel/igb/e1000_mbx.c s32 ret_val = -E1000_ERR_MBX; ret_val 333 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = 0; ret_val 339 drivers/net/ethernet/intel/igb/e1000_mbx.c return ret_val; ret_val 374 drivers/net/ethernet/intel/igb/e1000_mbx.c s32 ret_val; ret_val 378 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = igb_obtain_mbx_lock_pf(hw, vf_number); ret_val 379 drivers/net/ethernet/intel/igb/e1000_mbx.c if (ret_val) ret_val 397 drivers/net/ethernet/intel/igb/e1000_mbx.c return ret_val; ret_val 416 drivers/net/ethernet/intel/igb/e1000_mbx.c s32 ret_val; ret_val 420 drivers/net/ethernet/intel/igb/e1000_mbx.c ret_val = igb_obtain_mbx_lock_pf(hw, vf_number); ret_val 421 drivers/net/ethernet/intel/igb/e1000_mbx.c if (ret_val) ret_val 439 drivers/net/ethernet/intel/igb/e1000_mbx.c return ret_val; ret_val 131 drivers/net/ethernet/intel/igb/e1000_nvm.c s32 ret_val = -E1000_ERR_NVM; ret_val 140 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = 0; ret_val 147 drivers/net/ethernet/intel/igb/e1000_nvm.c return ret_val; ret_val 162 drivers/net/ethernet/intel/igb/e1000_nvm.c s32 ret_val = 0; ret_val 180 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = -E1000_ERR_NVM; ret_val 183 drivers/net/ethernet/intel/igb/e1000_nvm.c return ret_val; ret_val 255 drivers/net/ethernet/intel/igb/e1000_nvm.c s32 ret_val = 0; ret_val 287 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = -E1000_ERR_NVM; ret_val 293 drivers/net/ethernet/intel/igb/e1000_nvm.c return ret_val; ret_val 309 drivers/net/ethernet/intel/igb/e1000_nvm.c s32 ret_val; ret_val 319 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = -E1000_ERR_NVM; ret_val 323 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = nvm->ops.acquire(hw); ret_val 324 drivers/net/ethernet/intel/igb/e1000_nvm.c if (ret_val) ret_val 327 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = igb_ready_nvm_eeprom(hw); ret_val 328 drivers/net/ethernet/intel/igb/e1000_nvm.c if (ret_val) ret_val 353 drivers/net/ethernet/intel/igb/e1000_nvm.c return ret_val; ret_val 369 drivers/net/ethernet/intel/igb/e1000_nvm.c s32 ret_val = 0; ret_val 377 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = -E1000_ERR_NVM; ret_val 386 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = igb_poll_eerd_eewr_done(hw, E1000_NVM_POLL_READ); ret_val 387 drivers/net/ethernet/intel/igb/e1000_nvm.c if (ret_val) ret_val 395 drivers/net/ethernet/intel/igb/e1000_nvm.c return ret_val; ret_val 413 drivers/net/ethernet/intel/igb/e1000_nvm.c s32 ret_val = -E1000_ERR_NVM; ret_val 422 drivers/net/ethernet/intel/igb/e1000_nvm.c return ret_val; ret_val 428 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = nvm->ops.acquire(hw); ret_val 429 drivers/net/ethernet/intel/igb/e1000_nvm.c if (ret_val) ret_val 430 drivers/net/ethernet/intel/igb/e1000_nvm.c return ret_val; ret_val 432 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = igb_ready_nvm_eeprom(hw); ret_val 433 drivers/net/ethernet/intel/igb/e1000_nvm.c if (ret_val) { ret_val 435 drivers/net/ethernet/intel/igb/e1000_nvm.c return ret_val; ret_val 474 drivers/net/ethernet/intel/igb/e1000_nvm.c return ret_val; ret_val 488 drivers/net/ethernet/intel/igb/e1000_nvm.c s32 ret_val; ret_val 496 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = E1000_ERR_INVALID_ARGUMENT; ret_val 500 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = hw->nvm.ops.read(hw, NVM_PBA_OFFSET_0, 1, &nvm_data); ret_val 501 drivers/net/ethernet/intel/igb/e1000_nvm.c if (ret_val) { ret_val 506 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = hw->nvm.ops.read(hw, NVM_PBA_OFFSET_1, 1, &pointer); ret_val 507 drivers/net/ethernet/intel/igb/e1000_nvm.c if (ret_val) { ret_val 551 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = hw->nvm.ops.read(hw, pointer, 1, &length); ret_val 552 drivers/net/ethernet/intel/igb/e1000_nvm.c if (ret_val) { ret_val 559 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = E1000_ERR_NVM_PBA_SECTION; ret_val 565 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = E1000_ERR_NO_SPACE; ret_val 574 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = hw->nvm.ops.read(hw, pointer + offset, 1, &nvm_data); ret_val 575 drivers/net/ethernet/intel/igb/e1000_nvm.c if (ret_val) { ret_val 585 drivers/net/ethernet/intel/igb/e1000_nvm.c return ret_val; ret_val 626 drivers/net/ethernet/intel/igb/e1000_nvm.c s32 ret_val = 0; ret_val 631 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); ret_val 632 drivers/net/ethernet/intel/igb/e1000_nvm.c if (ret_val) { ret_val 641 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = -E1000_ERR_NVM; ret_val 646 drivers/net/ethernet/intel/igb/e1000_nvm.c return ret_val; ret_val 659 drivers/net/ethernet/intel/igb/e1000_nvm.c s32 ret_val; ret_val 664 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); ret_val 665 drivers/net/ethernet/intel/igb/e1000_nvm.c if (ret_val) { ret_val 672 drivers/net/ethernet/intel/igb/e1000_nvm.c ret_val = hw->nvm.ops.write(hw, NVM_CHECKSUM_REG, 1, &checksum); ret_val 673 drivers/net/ethernet/intel/igb/e1000_nvm.c if (ret_val) ret_val 677 drivers/net/ethernet/intel/igb/e1000_nvm.c return ret_val; ret_val 57 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val = 0; ret_val 64 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); ret_val 65 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 70 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); ret_val 71 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 78 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 89 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val = 0; ret_val 94 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0xC1); ret_val 95 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 98 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = hw->phy.ops.write_reg(hw, M88E1000_PHY_GEN_CONTROL, 0); ret_val 101 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 117 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val = 0; ret_val 121 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = -E1000_ERR_PARAM; ret_val 147 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = -E1000_ERR_PHY; ret_val 152 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = -E1000_ERR_PHY; ret_val 158 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 173 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val = 0; ret_val 177 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = -E1000_ERR_PARAM; ret_val 204 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = -E1000_ERR_PHY; ret_val 209 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = -E1000_ERR_PHY; ret_val 214 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 382 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val = 0; ret_val 387 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = hw->phy.ops.acquire(hw); ret_val 388 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 392 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_write_phy_reg_mdic(hw, ret_val 395 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) { ret_val 401 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_read_phy_reg_mdic(hw, MAX_PHY_REG_ADDRESS & offset, ret_val 407 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 421 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val = 0; ret_val 426 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = hw->phy.ops.acquire(hw); ret_val 427 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 431 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_write_phy_reg_mdic(hw, ret_val 434 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) { ret_val 440 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_write_phy_reg_mdic(hw, MAX_PHY_REG_ADDRESS & offset, ret_val 446 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 458 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 462 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = 0; ret_val 467 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = hw->phy.ops.reset(hw); ret_val 468 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) { ret_val 475 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I82580_CFG_REG, &phy_data); ret_val 476 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 484 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, I82580_CFG_REG, phy_data); ret_val 485 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 489 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I82580_PHY_CTRL_2, &phy_data); ret_val 490 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 509 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = hw->phy.ops.write_reg(hw, I82580_PHY_CTRL_2, phy_data); ret_val 512 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 525 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 529 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = 0; ret_val 534 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); ret_val 535 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 575 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, M88E1000_PHY_SPEC_CTRL, phy_data); ret_val 576 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 583 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, M88E1000_EXT_PHY_SPEC_CTRL, ret_val 585 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 602 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, M88E1000_EXT_PHY_SPEC_CTRL, ret_val 604 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 609 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_phy_sw_reset(hw); ret_val 610 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) { ret_val 616 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 629 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 636 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); ret_val 637 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 638 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 682 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = ret_val 684 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 685 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 687 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_phy_sw_reset(hw); ret_val 688 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) { ret_val 690 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 698 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, M88E1000_PHY_SPEC_CTRL, phy_data); ret_val 699 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 700 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 703 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_phy_sw_reset(hw); ret_val 704 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) { ret_val 706 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 708 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_set_master_slave_mode(hw); ret_val 709 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 710 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 725 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 729 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = 0; ret_val 733 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.reset(hw); ret_val 734 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) { ret_val 750 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.set_d3_lplu_state(hw, false); ret_val 751 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) { ret_val 758 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.set_d0_lplu_state(hw, false); ret_val 759 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) { ret_val 764 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, IGP01E1000_PHY_PORT_CTRL, &data); ret_val 765 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 782 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, IGP01E1000_PHY_PORT_CTRL, data); ret_val 783 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 794 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, ret_val 797 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 801 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, ret_val 804 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 808 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, PHY_1000T_CTRL, &data); ret_val 809 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 813 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, PHY_1000T_CTRL, data); ret_val 814 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 818 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, PHY_1000T_CTRL, &data); ret_val 819 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 842 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, PHY_1000T_CTRL, data); ret_val 843 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 848 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 863 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 878 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_phy_setup_autoneg(hw); ret_val 879 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) { ret_val 888 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, PHY_CONTROL, &phy_ctrl); ret_val 889 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 893 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, PHY_CONTROL, phy_ctrl); ret_val 894 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 901 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_wait_autoneg(hw); ret_val 902 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) { ret_val 911 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 926 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 933 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, PHY_AUTONEG_ADV, &mii_autoneg_adv_reg); ret_val 934 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 939 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, PHY_1000T_CTRL, ret_val 941 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1049 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = -E1000_ERR_CONFIG; ret_val 1053 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, PHY_AUTONEG_ADV, mii_autoneg_adv_reg); ret_val 1054 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1060 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, ret_val 1063 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1068 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 1082 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 1089 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_copper_link_autoneg(hw); ret_val 1090 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1097 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = hw->phy.ops.force_speed_duplex(hw); ret_val 1098 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) { ret_val 1107 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_phy_has_link(hw, COPPER_LINK_UP_LIMIT, 10, &link); ret_val 1108 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1114 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_config_fc_after_link_up(hw); ret_val 1120 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 1134 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 1138 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, PHY_CONTROL, &phy_data); ret_val 1139 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1144 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, PHY_CONTROL, phy_data); ret_val 1145 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1151 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, IGP01E1000_PHY_PORT_CTRL, &phy_data); ret_val 1152 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1158 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, IGP01E1000_PHY_PORT_CTRL, phy_data); ret_val 1159 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1169 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_phy_has_link(hw, PHY_FORCE_LIMIT, 10000, &link); ret_val 1170 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1177 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_phy_has_link(hw, PHY_FORCE_LIMIT, 10000, &link); ret_val 1178 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1183 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 1199 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 1208 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, M88E1000_PHY_SPEC_CTRL, ret_val 1210 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1214 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, M88E1000_PHY_SPEC_CTRL, ret_val 1216 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1222 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, PHY_CONTROL, &phy_data); ret_val 1223 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1228 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, PHY_CONTROL, phy_data); ret_val 1229 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1233 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_phy_sw_reset(hw); ret_val 1234 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1240 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_phy_has_link(hw, PHY_FORCE_LIMIT, 100000, &link); ret_val 1241 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1266 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, ret_val 1269 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1271 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_phy_reset_dsp(hw); ret_val 1272 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1278 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_phy_has_link(hw, PHY_FORCE_LIMIT, ret_val 1280 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1292 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, M88E1000_EXT_PHY_SPEC_CTRL, &phy_data); ret_val 1293 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1301 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, M88E1000_EXT_PHY_SPEC_CTRL, phy_data); ret_val 1302 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1308 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); ret_val 1309 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1313 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, M88E1000_PHY_SPEC_CTRL, phy_data); ret_val 1316 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 1397 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val = 0; ret_val 1403 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, IGP02E1000_PHY_POWER_MGMT, &data); ret_val 1404 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1409 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, IGP02E1000_PHY_POWER_MGMT, ret_val 1411 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1419 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, ret_val 1422 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1426 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, ret_val 1429 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1432 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, ret_val 1435 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1439 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, ret_val 1442 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1449 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, IGP02E1000_PHY_POWER_MGMT, ret_val 1451 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1455 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 1457 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1461 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, IGP01E1000_PHY_PORT_CONFIG, ret_val 1466 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 1480 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 1499 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = 0; ret_val 1503 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, offset, &phy_data); ret_val 1505 drivers/net/ethernet/intel/igb/e1000_phy.c if (!ret_val) ret_val 1509 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 1523 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 1526 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, M88E1000_PHY_SPEC_STATUS, &data); ret_val 1528 drivers/net/ethernet/intel/igb/e1000_phy.c if (!ret_val) ret_val 1533 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 1548 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 1554 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, IGP01E1000_PHY_PORT_STATUS, &data); ret_val 1555 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1570 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, offset, &data); ret_val 1572 drivers/net/ethernet/intel/igb/e1000_phy.c if (!ret_val) ret_val 1578 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 1590 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val = 0; ret_val 1595 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); ret_val 1596 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1598 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); ret_val 1599 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1609 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 1624 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val = 0; ret_val 1632 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); ret_val 1633 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val && usec_interval > 0) { ret_val 1643 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); ret_val 1644 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1656 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 1677 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 1680 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, M88E1000_PHY_SPEC_STATUS, &phy_data); ret_val 1681 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1687 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = -E1000_ERR_PHY; ret_val 1697 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 1703 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 1715 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I347AT4_PAGE_SELECT, ret_val 1717 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1720 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, I347AT4_PAGE_SELECT, 0x07); ret_val 1721 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1725 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I347AT4_PCDC, &phy_data2); ret_val 1726 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1732 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I347AT4_PCDL0, &phy_data); ret_val 1733 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1742 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I347AT4_PCDL1, &phy_data); ret_val 1743 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1752 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I347AT4_PCDL2, &phy_data); ret_val 1753 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1762 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I347AT4_PCDL3, &phy_data); ret_val 1763 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1777 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, I347AT4_PAGE_SELECT, ret_val 1779 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1784 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I347AT4_PAGE_SELECT, ret_val 1786 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1789 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, I347AT4_PAGE_SELECT, 0x05); ret_val 1790 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1793 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, M88E1112_VCT_DSP_DISTANCE, ret_val 1795 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1801 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = -E1000_ERR_PHY; ret_val 1812 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, I347AT4_PAGE_SELECT, ret_val 1814 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1819 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = -E1000_ERR_PHY; ret_val 1824 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 1841 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val = 0; ret_val 1854 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, agc_reg_array[i], &phy_data); ret_val 1855 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1869 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = -E1000_ERR_PHY; ret_val 1896 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 1912 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 1918 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = -E1000_ERR_CONFIG; ret_val 1922 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_phy_has_link(hw, 1, 0, &link); ret_val 1923 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1928 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = -E1000_ERR_CONFIG; ret_val 1932 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, M88E1000_PHY_SPEC_CTRL, &phy_data); ret_val 1933 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1939 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_check_polarity_m88(hw); ret_val 1940 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1943 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, M88E1000_PHY_SPEC_STATUS, &phy_data); ret_val 1944 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1950 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.get_cable_length(hw); ret_val 1951 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1954 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, PHY_1000T_STATUS, &phy_data); ret_val 1955 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1973 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 1988 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 1992 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_phy_has_link(hw, 1, 0, &link); ret_val 1993 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 1998 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = -E1000_ERR_CONFIG; ret_val 2004 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_check_polarity_igp(hw); ret_val 2005 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2008 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, IGP01E1000_PHY_PORT_STATUS, &data); ret_val 2009 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2016 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.get_cable_length(hw); ret_val 2017 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2020 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, PHY_1000T_STATUS, &data); ret_val 2021 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2038 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 2050 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val = 0; ret_val 2056 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = hw->phy.ops.read_reg(hw, PHY_CONTROL, &phy_ctrl); ret_val 2057 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2061 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = hw->phy.ops.write_reg(hw, PHY_CONTROL, phy_ctrl); ret_val 2062 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2068 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 2083 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 2086 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_check_reset_block(hw); ret_val 2087 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) { ret_val 2088 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = 0; ret_val 2092 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.acquire(hw); ret_val 2093 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2109 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.get_cfg_done(hw); ret_val 2112 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 2207 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val = 0; ret_val 2210 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1543_PAGE_ADDR, 0x00FF); ret_val 2211 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2214 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_CFG_REG_2, 0x214B); ret_val 2215 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2218 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_CFG_REG_1, 0x2144); ret_val 2219 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2222 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_CFG_REG_2, 0x0C28); ret_val 2223 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2226 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_CFG_REG_1, 0x2146); ret_val 2227 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2230 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_CFG_REG_2, 0xB233); ret_val 2231 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2234 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_CFG_REG_1, 0x214D); ret_val 2235 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2238 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_CFG_REG_2, 0xCC0C); ret_val 2239 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2242 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_CFG_REG_1, 0x2159); ret_val 2243 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2247 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1543_PAGE_ADDR, 0x00FB); ret_val 2248 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2251 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_CFG_REG_3, 0x000D); ret_val 2252 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2256 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1543_PAGE_ADDR, 0x12); ret_val 2257 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2261 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_MODE, 0x8001); ret_val 2262 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2266 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1543_PAGE_ADDR, 0); ret_val 2267 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2270 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_phy_sw_reset(hw); ret_val 2271 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) { ret_val 2273 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 2279 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 2291 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val = 0; ret_val 2294 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1543_PAGE_ADDR, 0x00FF); ret_val 2295 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2298 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_CFG_REG_2, 0x214B); ret_val 2299 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2302 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_CFG_REG_1, 0x2144); ret_val 2303 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2306 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_CFG_REG_2, 0x0C28); ret_val 2307 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2310 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_CFG_REG_1, 0x2146); ret_val 2311 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2314 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_CFG_REG_2, 0xB233); ret_val 2315 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2318 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_CFG_REG_1, 0x214D); ret_val 2319 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2322 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_CFG_REG_2, 0xDC0C); ret_val 2323 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2326 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_CFG_REG_1, 0x2159); ret_val 2327 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2331 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1543_PAGE_ADDR, 0x00FB); ret_val 2332 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2335 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_CFG_REG_3, 0x0C0D); ret_val 2336 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2340 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1543_PAGE_ADDR, 0x12); ret_val 2341 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2345 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1512_MODE, 0x8001); ret_val 2346 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2350 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1543_PAGE_ADDR, 0x1); ret_val 2351 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2355 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1543_FIBER_CTRL, 0x9140); ret_val 2356 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2360 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, E1000_M88E1543_PAGE_ADDR, 0); ret_val 2361 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2364 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_phy_sw_reset(hw); ret_val 2365 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) { ret_val 2367 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 2373 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 2422 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 2426 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I82580_PHY_STATUS_2, &data); ret_val 2428 drivers/net/ethernet/intel/igb/e1000_phy.c if (!ret_val) ret_val 2433 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 2447 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 2451 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, PHY_CONTROL, &phy_data); ret_val 2452 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2457 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, PHY_CONTROL, phy_data); ret_val 2458 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2464 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I82580_PHY_CTRL_2, &phy_data); ret_val 2465 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2470 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.write_reg(hw, I82580_PHY_CTRL_2, phy_data); ret_val 2471 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2481 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_phy_has_link(hw, PHY_FORCE_LIMIT, 100000, &link); ret_val 2482 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2489 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_phy_has_link(hw, PHY_FORCE_LIMIT, 100000, &link); ret_val 2490 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2495 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 2510 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 2514 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_phy_has_link(hw, 1, 0, &link); ret_val 2515 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2520 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = -E1000_ERR_CONFIG; ret_val 2526 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = igb_check_polarity_82580(hw); ret_val 2527 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2530 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I82580_PHY_STATUS_2, &data); ret_val 2531 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2538 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = hw->phy.ops.get_cable_length(hw); ret_val 2539 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2542 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, PHY_1000T_STATUS, &data); ret_val 2543 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2560 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 2573 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 2576 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = phy->ops.read_reg(hw, I82580_PHY_DIAG_STATUS, &phy_data); ret_val 2577 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2584 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = -E1000_ERR_PHY; ret_val 2589 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 2600 drivers/net/ethernet/intel/igb/e1000_phy.c s32 ret_val; ret_val 2604 drivers/net/ethernet/intel/igb/e1000_phy.c ret_val = hw->phy.ops.read_reg(hw, PHY_1000T_CTRL, &phy_data); ret_val 2605 drivers/net/ethernet/intel/igb/e1000_phy.c if (ret_val) ret_val 2606 drivers/net/ethernet/intel/igb/e1000_phy.c return ret_val; ret_val 731 drivers/net/ethernet/intel/igb/igb_ethtool.c int ret_val = 0; ret_val 748 drivers/net/ethernet/intel/igb/igb_ethtool.c ret_val = hw->nvm.ops.read(hw, first_word, ret_val 753 drivers/net/ethernet/intel/igb/igb_ethtool.c ret_val = hw->nvm.ops.read(hw, first_word + i, 1, ret_val 755 drivers/net/ethernet/intel/igb/igb_ethtool.c if (ret_val) ret_val 768 drivers/net/ethernet/intel/igb/igb_ethtool.c return ret_val; ret_val 778 drivers/net/ethernet/intel/igb/igb_ethtool.c int max_len, first_word, last_word, ret_val = 0; ret_val 806 drivers/net/ethernet/intel/igb/igb_ethtool.c ret_val = hw->nvm.ops.read(hw, first_word, 1, ret_val 810 drivers/net/ethernet/intel/igb/igb_ethtool.c if (((eeprom->offset + eeprom->len) & 1) && (ret_val == 0)) { ret_val 814 drivers/net/ethernet/intel/igb/igb_ethtool.c ret_val = hw->nvm.ops.read(hw, last_word, 1, ret_val 827 drivers/net/ethernet/intel/igb/igb_ethtool.c ret_val = hw->nvm.ops.write(hw, first_word, ret_val 831 drivers/net/ethernet/intel/igb/igb_ethtool.c if (ret_val == 0) ret_val 836 drivers/net/ethernet/intel/igb/igb_ethtool.c return ret_val; ret_val 1550 drivers/net/ethernet/intel/igb/igb_ethtool.c int ret_val; ret_val 1559 drivers/net/ethernet/intel/igb/igb_ethtool.c ret_val = 1; ret_val 1573 drivers/net/ethernet/intel/igb/igb_ethtool.c ret_val = 3; ret_val 1590 drivers/net/ethernet/intel/igb/igb_ethtool.c return ret_val; ret_val 1875 drivers/net/ethernet/intel/igb/igb_ethtool.c int ret_val = 0; ret_val 1912 drivers/net/ethernet/intel/igb/igb_ethtool.c ret_val = 12; ret_val 1921 drivers/net/ethernet/intel/igb/igb_ethtool.c ret_val = 13; ret_val 1929 drivers/net/ethernet/intel/igb/igb_ethtool.c return ret_val; ret_val 3045 drivers/net/ethernet/intel/igb/igb_ethtool.c u32 ret_val; ret_val 3077 drivers/net/ethernet/intel/igb/igb_ethtool.c ret_val = igb_read_emi_reg(hw, E1000_EEE_LP_ADV_ADDR_I350, ret_val 3079 drivers/net/ethernet/intel/igb/igb_ethtool.c if (ret_val) ret_val 3087 drivers/net/ethernet/intel/igb/igb_ethtool.c ret_val = igb_read_xmdio_reg(hw, E1000_EEE_LP_ADV_ADDR_I210, ret_val 3090 drivers/net/ethernet/intel/igb/igb_ethtool.c if (ret_val) ret_val 3126 drivers/net/ethernet/intel/igb/igb_ethtool.c s32 ret_val; ret_val 3134 drivers/net/ethernet/intel/igb/igb_ethtool.c ret_val = igb_get_eee(netdev, &eee_curr); ret_val 3135 drivers/net/ethernet/intel/igb/igb_ethtool.c if (ret_val) ret_val 3136 drivers/net/ethernet/intel/igb/igb_ethtool.c return ret_val; ret_val 3180 drivers/net/ethernet/intel/igb/igb_ethtool.c ret_val = igb_set_eee_i354(hw, adv1g_eee, adv100m_eee); ret_val 3182 drivers/net/ethernet/intel/igb/igb_ethtool.c ret_val = igb_set_eee_i350(hw, adv1g_eee, adv100m_eee); ret_val 3184 drivers/net/ethernet/intel/igb/igb_ethtool.c if (ret_val) { ret_val 3004 drivers/net/ethernet/intel/igb/igb_main.c s32 ret_val; ret_val 3401 drivers/net/ethernet/intel/igb/igb_main.c ret_val = igb_read_part_string(hw, part_str, ret_val 3404 drivers/net/ethernet/intel/igb/igb_main.c ret_val = -E1000_ERR_INVM_VALUE_NOT_FOUND; ret_val 3407 drivers/net/ethernet/intel/igb/igb_main.c if (ret_val) ret_val 6709 drivers/net/ethernet/intel/igb/igb_main.c int ret_val; ret_val 6711 drivers/net/ethernet/intel/igb/igb_main.c ret_val = driver_for_each_device(&igb_driver.driver, NULL, &event, ret_val 6714 drivers/net/ethernet/intel/igb/igb_main.c return ret_val ? NOTIFY_BAD : NOTIFY_DONE; ret_val 70 drivers/net/ethernet/intel/igbvf/mbx.c s32 ret_val = -E1000_ERR_MBX; ret_val 75 drivers/net/ethernet/intel/igbvf/mbx.c ret_val = e1000_poll_for_msg(hw); ret_val 78 drivers/net/ethernet/intel/igbvf/mbx.c if (!ret_val) ret_val 79 drivers/net/ethernet/intel/igbvf/mbx.c ret_val = mbx->ops.read(hw, msg, size); ret_val 81 drivers/net/ethernet/intel/igbvf/mbx.c return ret_val; ret_val 96 drivers/net/ethernet/intel/igbvf/mbx.c s32 ret_val = -E1000_ERR_MBX; ret_val 103 drivers/net/ethernet/intel/igbvf/mbx.c ret_val = mbx->ops.write(hw, msg, size); ret_val 106 drivers/net/ethernet/intel/igbvf/mbx.c if (!ret_val) ret_val 107 drivers/net/ethernet/intel/igbvf/mbx.c ret_val = e1000_poll_for_ack(hw); ret_val 109 drivers/net/ethernet/intel/igbvf/mbx.c return ret_val; ret_val 140 drivers/net/ethernet/intel/igbvf/mbx.c s32 ret_val = -E1000_ERR_MBX; ret_val 143 drivers/net/ethernet/intel/igbvf/mbx.c ret_val = E1000_SUCCESS; ret_val 147 drivers/net/ethernet/intel/igbvf/mbx.c return ret_val; ret_val 158 drivers/net/ethernet/intel/igbvf/mbx.c s32 ret_val = -E1000_ERR_MBX; ret_val 161 drivers/net/ethernet/intel/igbvf/mbx.c ret_val = E1000_SUCCESS; ret_val 165 drivers/net/ethernet/intel/igbvf/mbx.c return ret_val; ret_val 176 drivers/net/ethernet/intel/igbvf/mbx.c s32 ret_val = -E1000_ERR_MBX; ret_val 179 drivers/net/ethernet/intel/igbvf/mbx.c ret_val = E1000_SUCCESS; ret_val 183 drivers/net/ethernet/intel/igbvf/mbx.c return ret_val; ret_val 194 drivers/net/ethernet/intel/igbvf/mbx.c s32 ret_val = -E1000_ERR_MBX; ret_val 198 drivers/net/ethernet/intel/igbvf/mbx.c ret_val = E1000_SUCCESS; ret_val 202 drivers/net/ethernet/intel/igbvf/mbx.c return ret_val; ret_val 213 drivers/net/ethernet/intel/igbvf/mbx.c s32 ret_val = -E1000_ERR_MBX; ret_val 222 drivers/net/ethernet/intel/igbvf/mbx.c ret_val = 0; ret_val 228 drivers/net/ethernet/intel/igbvf/mbx.c return ret_val; ret_val 1872 drivers/net/ethernet/intel/igbvf/netdev.c s32 ret_val = E1000_SUCCESS; ret_val 1881 drivers/net/ethernet/intel/igbvf/netdev.c ret_val = hw->mac.ops.check_for_link(hw); ret_val 1888 drivers/net/ethernet/intel/igbvf/netdev.c if (ret_val && time_after(jiffies, adapter->last_reset + (10 * HZ))) ret_val 106 drivers/net/ethernet/intel/igbvf/vf.c u32 ret_val = -E1000_ERR_MAC_INIT; ret_val 132 drivers/net/ethernet/intel/igbvf/vf.c ret_val = mbx->ops.read_posted(hw, msgbuf, 3); ret_val 133 drivers/net/ethernet/intel/igbvf/vf.c if (!ret_val) { ret_val 138 drivers/net/ethernet/intel/igbvf/vf.c ret_val = -E1000_ERR_MAC_INIT; ret_val 142 drivers/net/ethernet/intel/igbvf/vf.c return ret_val; ret_val 210 drivers/net/ethernet/intel/igbvf/vf.c s32 ret_val; ret_val 231 drivers/net/ethernet/intel/igbvf/vf.c ret_val = mbx->ops.write_posted(hw, msgbuf, E1000_VFMAILBOX_SIZE); ret_val 232 drivers/net/ethernet/intel/igbvf/vf.c if (!ret_val) ret_val 276 drivers/net/ethernet/intel/igbvf/vf.c s32 ret_val; ret_val 281 drivers/net/ethernet/intel/igbvf/vf.c ret_val = mbx->ops.write_posted(hw, msgbuf, 2); ret_val 282 drivers/net/ethernet/intel/igbvf/vf.c if (!ret_val) ret_val 297 drivers/net/ethernet/intel/igbvf/vf.c s32 ret_val; ret_val 302 drivers/net/ethernet/intel/igbvf/vf.c ret_val = mbx->ops.write_posted(hw, msgbuf, 3); ret_val 304 drivers/net/ethernet/intel/igbvf/vf.c if (!ret_val) ret_val 305 drivers/net/ethernet/intel/igbvf/vf.c ret_val = mbx->ops.read_posted(hw, msgbuf, 3); ret_val 310 drivers/net/ethernet/intel/igbvf/vf.c if (!ret_val && ret_val 337 drivers/net/ethernet/intel/igbvf/vf.c s32 ret_val; ret_val 347 drivers/net/ethernet/intel/igbvf/vf.c ret_val = mbx->ops.write_posted(hw, msgbuf, 3); ret_val 349 drivers/net/ethernet/intel/igbvf/vf.c if (!ret_val) ret_val 350 drivers/net/ethernet/intel/igbvf/vf.c ret_val = mbx->ops.read_posted(hw, msgbuf, 3); ret_val 354 drivers/net/ethernet/intel/igbvf/vf.c if (!ret_val) { ret_val 361 drivers/net/ethernet/intel/igbvf/vf.c return ret_val; ret_val 376 drivers/net/ethernet/intel/igbvf/vf.c s32 ret_val = E1000_SUCCESS; ret_val 405 drivers/net/ethernet/intel/igbvf/vf.c ret_val = -E1000_ERR_MAC_INIT; ret_val 411 drivers/net/ethernet/intel/igbvf/vf.c ret_val = -E1000_ERR_MAC_INIT; ret_val 421 drivers/net/ethernet/intel/igbvf/vf.c return ret_val; ret_val 21 drivers/net/ethernet/intel/igc/igc_base.c s32 ret_val; ret_val 27 drivers/net/ethernet/intel/igc/igc_base.c ret_val = igc_disable_pcie_master(hw); ret_val 28 drivers/net/ethernet/intel/igc/igc_base.c if (ret_val) ret_val 45 drivers/net/ethernet/intel/igc/igc_base.c ret_val = igc_get_auto_rd_done(hw); ret_val 46 drivers/net/ethernet/intel/igc/igc_base.c if (ret_val) { ret_val 58 drivers/net/ethernet/intel/igc/igc_base.c return ret_val; ret_val 110 drivers/net/ethernet/intel/igc/igc_base.c s32 ret_val = 0; ret_val 118 drivers/net/ethernet/intel/igc/igc_base.c ret_val = igc_setup_copper_link(hw); ret_val 120 drivers/net/ethernet/intel/igc/igc_base.c return ret_val; ret_val 159 drivers/net/ethernet/intel/igc/igc_base.c s32 ret_val = 0; ret_val 178 drivers/net/ethernet/intel/igc/igc_base.c ret_val = hw->phy.ops.reset(hw); ret_val 179 drivers/net/ethernet/intel/igc/igc_base.c if (ret_val) { ret_val 184 drivers/net/ethernet/intel/igc/igc_base.c ret_val = igc_get_phy_id(hw); ret_val 185 drivers/net/ethernet/intel/igc/igc_base.c if (ret_val) ret_val 186 drivers/net/ethernet/intel/igc/igc_base.c return ret_val; ret_val 196 drivers/net/ethernet/intel/igc/igc_base.c ret_val = -IGC_ERR_PHY; ret_val 201 drivers/net/ethernet/intel/igc/igc_base.c return ret_val; ret_val 207 drivers/net/ethernet/intel/igc/igc_base.c s32 ret_val = 0; ret_val 224 drivers/net/ethernet/intel/igc/igc_base.c ret_val = igc_init_mac_params_base(hw); ret_val 225 drivers/net/ethernet/intel/igc/igc_base.c if (ret_val) ret_val 229 drivers/net/ethernet/intel/igc/igc_base.c ret_val = igc_init_nvm_params_base(hw); ret_val 232 drivers/net/ethernet/intel/igc/igc_base.c ret_val = igc_init_nvm_params_i225(hw); ret_val 239 drivers/net/ethernet/intel/igc/igc_base.c ret_val = igc_init_phy_params_base(hw); ret_val 240 drivers/net/ethernet/intel/igc/igc_base.c if (ret_val) ret_val 244 drivers/net/ethernet/intel/igc/igc_base.c return ret_val; ret_val 285 drivers/net/ethernet/intel/igc/igc_base.c s32 ret_val = 0; ret_val 301 drivers/net/ethernet/intel/igc/igc_base.c ret_val = igc_setup_link(hw); ret_val 310 drivers/net/ethernet/intel/igc/igc_base.c return ret_val; ret_val 365 drivers/net/ethernet/intel/igc/igc_ethtool.c int ret_val = 0; ret_val 382 drivers/net/ethernet/intel/igc/igc_ethtool.c ret_val = hw->nvm.ops.read(hw, first_word, ret_val 387 drivers/net/ethernet/intel/igc/igc_ethtool.c ret_val = hw->nvm.ops.read(hw, first_word + i, 1, ret_val 389 drivers/net/ethernet/intel/igc/igc_ethtool.c if (ret_val) ret_val 402 drivers/net/ethernet/intel/igc/igc_ethtool.c return ret_val; ret_val 410 drivers/net/ethernet/intel/igc/igc_ethtool.c int max_len, first_word, last_word, ret_val = 0; ret_val 440 drivers/net/ethernet/intel/igc/igc_ethtool.c ret_val = hw->nvm.ops.read(hw, first_word, 1, ret_val 444 drivers/net/ethernet/intel/igc/igc_ethtool.c if (((eeprom->offset + eeprom->len) & 1) && ret_val == 0) { ret_val 448 drivers/net/ethernet/intel/igc/igc_ethtool.c ret_val = hw->nvm.ops.read(hw, last_word, 1, ret_val 461 drivers/net/ethernet/intel/igc/igc_ethtool.c ret_val = hw->nvm.ops.write(hw, first_word, ret_val 465 drivers/net/ethernet/intel/igc/igc_ethtool.c if (ret_val == 0) ret_val 470 drivers/net/ethernet/intel/igc/igc_ethtool.c return ret_val; ret_val 114 drivers/net/ethernet/intel/igc/igc_i225.c s32 ret_val = 0; ret_val 119 drivers/net/ethernet/intel/igc/igc_i225.c ret_val = -IGC_ERR_SWFW_SYNC; ret_val 135 drivers/net/ethernet/intel/igc/igc_i225.c ret_val = -IGC_ERR_SWFW_SYNC; ret_val 144 drivers/net/ethernet/intel/igc/igc_i225.c return ret_val; ret_val 224 drivers/net/ethernet/intel/igc/igc_i225.c s32 ret_val = 0; ret_val 232 drivers/net/ethernet/intel/igc/igc_i225.c ret_val = -IGC_ERR_NVM; ret_val 246 drivers/net/ethernet/intel/igc/igc_i225.c ret_val = 0; ret_val 252 drivers/net/ethernet/intel/igc/igc_i225.c if (ret_val) { ret_val 259 drivers/net/ethernet/intel/igc/igc_i225.c return ret_val; ret_val 346 drivers/net/ethernet/intel/igc/igc_i225.c s32 ret_val = -IGC_ERR_NVM; ret_val 352 drivers/net/ethernet/intel/igc/igc_i225.c ret_val = 0; ret_val 358 drivers/net/ethernet/intel/igc/igc_i225.c return ret_val; ret_val 367 drivers/net/ethernet/intel/igc/igc_i225.c s32 ret_val = 0; ret_val 370 drivers/net/ethernet/intel/igc/igc_i225.c ret_val = igc_pool_flash_update_done_i225(hw); ret_val 371 drivers/net/ethernet/intel/igc/igc_i225.c if (ret_val == -IGC_ERR_NVM) { ret_val 379 drivers/net/ethernet/intel/igc/igc_i225.c ret_val = igc_pool_flash_update_done_i225(hw); ret_val 380 drivers/net/ethernet/intel/igc/igc_i225.c if (ret_val) ret_val 386 drivers/net/ethernet/intel/igc/igc_i225.c return ret_val; ret_val 400 drivers/net/ethernet/intel/igc/igc_i225.c s32 ret_val = 0; ret_val 407 drivers/net/ethernet/intel/igc/igc_i225.c ret_val = igc_read_nvm_eerd(hw, 0, 1, &nvm_data); ret_val 408 drivers/net/ethernet/intel/igc/igc_i225.c if (ret_val) { ret_val 413 drivers/net/ethernet/intel/igc/igc_i225.c ret_val = hw->nvm.ops.acquire(hw); ret_val 414 drivers/net/ethernet/intel/igc/igc_i225.c if (ret_val) ret_val 423 drivers/net/ethernet/intel/igc/igc_i225.c ret_val = igc_read_nvm_eerd(hw, i, 1, &nvm_data); ret_val 424 drivers/net/ethernet/intel/igc/igc_i225.c if (ret_val) { ret_val 432 drivers/net/ethernet/intel/igc/igc_i225.c ret_val = igc_write_nvm_srwr(hw, NVM_CHECKSUM_REG, 1, ret_val 434 drivers/net/ethernet/intel/igc/igc_i225.c if (ret_val) { ret_val 442 drivers/net/ethernet/intel/igc/igc_i225.c ret_val = igc_update_flash_i225(hw); ret_val 445 drivers/net/ethernet/intel/igc/igc_i225.c return ret_val; ret_val 454 drivers/net/ethernet/intel/igc/igc_i225.c bool ret_val = false; ret_val 459 drivers/net/ethernet/intel/igc/igc_i225.c ret_val = true; ret_val 461 drivers/net/ethernet/intel/igc/igc_i225.c return ret_val; ret_val 24 drivers/net/ethernet/intel/igc/igc_mac.c s32 ret_val = 0; ret_val 41 drivers/net/ethernet/intel/igc/igc_mac.c ret_val = -IGC_ERR_MASTER_REQUESTS_PENDING; ret_val 46 drivers/net/ethernet/intel/igc/igc_mac.c return ret_val; ret_val 121 drivers/net/ethernet/intel/igc/igc_mac.c s32 ret_val = 0; ret_val 144 drivers/net/ethernet/intel/igc/igc_mac.c ret_val = hw->mac.ops.setup_physical_interface(hw); ret_val 145 drivers/net/ethernet/intel/igc/igc_mac.c if (ret_val) ret_val 160 drivers/net/ethernet/intel/igc/igc_mac.c ret_val = igc_set_fc_watermarks(hw); ret_val 163 drivers/net/ethernet/intel/igc/igc_mac.c return ret_val; ret_val 178 drivers/net/ethernet/intel/igc/igc_mac.c s32 ret_val = 0; ret_val 219 drivers/net/ethernet/intel/igc/igc_mac.c ret_val = -IGC_ERR_CONFIG; ret_val 226 drivers/net/ethernet/intel/igc/igc_mac.c return ret_val; ret_val 370 drivers/net/ethernet/intel/igc/igc_mac.c s32 ret_val; ret_val 379 drivers/net/ethernet/intel/igc/igc_mac.c ret_val = 0; ret_val 387 drivers/net/ethernet/intel/igc/igc_mac.c ret_val = igc_phy_has_link(hw, 1, 0, &link); ret_val 388 drivers/net/ethernet/intel/igc/igc_mac.c if (ret_val) ret_val 405 drivers/net/ethernet/intel/igc/igc_mac.c ret_val = -IGC_ERR_CONFIG; ret_val 420 drivers/net/ethernet/intel/igc/igc_mac.c ret_val = igc_config_fc_after_link_up(hw); ret_val 421 drivers/net/ethernet/intel/igc/igc_mac.c if (ret_val) ret_val 425 drivers/net/ethernet/intel/igc/igc_mac.c return ret_val; ret_val 464 drivers/net/ethernet/intel/igc/igc_mac.c s32 ret_val = 0; ret_val 472 drivers/net/ethernet/intel/igc/igc_mac.c ret_val = igc_force_mac_fc(hw); ret_val 475 drivers/net/ethernet/intel/igc/igc_mac.c if (ret_val) { ret_val 490 drivers/net/ethernet/intel/igc/igc_mac.c ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, ret_val 492 drivers/net/ethernet/intel/igc/igc_mac.c if (ret_val) ret_val 494 drivers/net/ethernet/intel/igc/igc_mac.c ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, ret_val 496 drivers/net/ethernet/intel/igc/igc_mac.c if (ret_val) ret_val 510 drivers/net/ethernet/intel/igc/igc_mac.c ret_val = hw->phy.ops.read_reg(hw, PHY_AUTONEG_ADV, ret_val 512 drivers/net/ethernet/intel/igc/igc_mac.c if (ret_val) ret_val 514 drivers/net/ethernet/intel/igc/igc_mac.c ret_val = hw->phy.ops.read_reg(hw, PHY_LP_ABILITY, ret_val 516 drivers/net/ethernet/intel/igc/igc_mac.c if (ret_val) ret_val 630 drivers/net/ethernet/intel/igc/igc_mac.c ret_val = hw->mac.ops.get_speed_and_duplex(hw, &speed, &duplex); ret_val 631 drivers/net/ethernet/intel/igc/igc_mac.c if (ret_val) { ret_val 642 drivers/net/ethernet/intel/igc/igc_mac.c ret_val = igc_force_mac_fc(hw); ret_val 643 drivers/net/ethernet/intel/igc/igc_mac.c if (ret_val) { ret_val 661 drivers/net/ethernet/intel/igc/igc_mac.c s32 ret_val = 0; ret_val 673 drivers/net/ethernet/intel/igc/igc_mac.c ret_val = -IGC_ERR_RESET; ret_val 678 drivers/net/ethernet/intel/igc/igc_mac.c return ret_val; ret_val 754 drivers/net/ethernet/intel/igc/igc_mac.c bool ret_val = false; ret_val 773 drivers/net/ethernet/intel/igc/igc_mac.c ret_val = true; ret_val 779 drivers/net/ethernet/intel/igc/igc_mac.c ret_val = true; ret_val 785 drivers/net/ethernet/intel/igc/igc_mac.c return ret_val; ret_val 17 drivers/net/ethernet/intel/igc/igc_nvm.c s32 ret_val = -IGC_ERR_NVM; ret_val 28 drivers/net/ethernet/intel/igc/igc_nvm.c ret_val = 0; ret_val 35 drivers/net/ethernet/intel/igc/igc_nvm.c return ret_val; ret_val 50 drivers/net/ethernet/intel/igc/igc_nvm.c s32 ret_val = 0; ret_val 67 drivers/net/ethernet/intel/igc/igc_nvm.c ret_val = -IGC_ERR_NVM; ret_val 70 drivers/net/ethernet/intel/igc/igc_nvm.c return ret_val; ret_val 101 drivers/net/ethernet/intel/igc/igc_nvm.c s32 ret_val = 0; ret_val 109 drivers/net/ethernet/intel/igc/igc_nvm.c ret_val = -IGC_ERR_NVM; ret_val 118 drivers/net/ethernet/intel/igc/igc_nvm.c ret_val = igc_poll_eerd_eewr_done(hw, IGC_NVM_POLL_READ); ret_val 119 drivers/net/ethernet/intel/igc/igc_nvm.c if (ret_val) ret_val 126 drivers/net/ethernet/intel/igc/igc_nvm.c return ret_val; ret_val 165 drivers/net/ethernet/intel/igc/igc_nvm.c s32 ret_val = 0; ret_val 168 drivers/net/ethernet/intel/igc/igc_nvm.c ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); ret_val 169 drivers/net/ethernet/intel/igc/igc_nvm.c if (ret_val) { ret_val 178 drivers/net/ethernet/intel/igc/igc_nvm.c ret_val = -IGC_ERR_NVM; ret_val 183 drivers/net/ethernet/intel/igc/igc_nvm.c return ret_val; ret_val 198 drivers/net/ethernet/intel/igc/igc_nvm.c s32 ret_val; ret_val 201 drivers/net/ethernet/intel/igc/igc_nvm.c ret_val = hw->nvm.ops.read(hw, i, 1, &nvm_data); ret_val 202 drivers/net/ethernet/intel/igc/igc_nvm.c if (ret_val) { ret_val 209 drivers/net/ethernet/intel/igc/igc_nvm.c ret_val = hw->nvm.ops.write(hw, NVM_CHECKSUM_REG, 1, &checksum); ret_val 210 drivers/net/ethernet/intel/igc/igc_nvm.c if (ret_val) ret_val 214 drivers/net/ethernet/intel/igc/igc_nvm.c return ret_val; ret_val 34 drivers/net/ethernet/intel/igc/igc_phy.c s32 ret_val = 0; ret_val 37 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = phy->ops.read_reg(hw, PHY_ID1, &phy_id); ret_val 38 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 43 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = phy->ops.read_reg(hw, PHY_ID2, &phy_id); ret_val 44 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 51 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 67 drivers/net/ethernet/intel/igc/igc_phy.c s32 ret_val = 0; ret_val 74 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); ret_val 75 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val && usec_interval > 0) { ret_val 85 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); ret_val 86 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 98 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 151 drivers/net/ethernet/intel/igc/igc_phy.c s32 ret_val; ret_val 158 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = 0; ret_val 161 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 176 drivers/net/ethernet/intel/igc/igc_phy.c s32 ret_val; ret_val 179 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = igc_check_reset_block(hw); ret_val 180 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) { ret_val 181 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = 0; ret_val 185 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = phy->ops.acquire(hw); ret_val 186 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 203 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 221 drivers/net/ethernet/intel/igc/igc_phy.c s32 ret_val; ret_val 226 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = phy->ops.read_reg(hw, PHY_AUTONEG_ADV, &mii_autoneg_adv_reg); ret_val 227 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 228 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 232 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = phy->ops.read_reg(hw, PHY_1000T_CTRL, ret_val 234 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 235 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 241 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = phy->ops.read_reg(hw, (STANDARD_AN_REG_MASK << ret_val 246 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 247 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 369 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = phy->ops.write_reg(hw, PHY_AUTONEG_ADV, mii_autoneg_adv_reg); ret_val 370 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 371 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 376 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = phy->ops.write_reg(hw, PHY_1000T_CTRL, ret_val 381 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = phy->ops.write_reg(hw, ret_val 387 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 400 drivers/net/ethernet/intel/igc/igc_phy.c s32 ret_val = 0; ret_val 404 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); ret_val 405 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 407 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = hw->phy.ops.read_reg(hw, PHY_STATUS, &phy_status); ret_val 408 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 418 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 434 drivers/net/ethernet/intel/igc/igc_phy.c s32 ret_val; ret_val 448 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = igc_phy_setup_autoneg(hw); ret_val 449 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) { ret_val 458 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = phy->ops.read_reg(hw, PHY_CONTROL, &phy_ctrl); ret_val 459 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 463 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = phy->ops.write_reg(hw, PHY_CONTROL, phy_ctrl); ret_val 464 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 471 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = igc_wait_autoneg(hw); ret_val 472 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) { ret_val 481 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 495 drivers/net/ethernet/intel/igc/igc_phy.c s32 ret_val = 0; ret_val 502 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = igc_copper_link_autoneg(hw); ret_val 503 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 510 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = hw->phy.ops.force_speed_duplex(hw); ret_val 511 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) { ret_val 520 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = igc_phy_has_link(hw, COPPER_LINK_UP_LIMIT, 10, &link); ret_val 521 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 527 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = igc_config_fc_after_link_up(hw); ret_val 533 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 549 drivers/net/ethernet/intel/igc/igc_phy.c s32 ret_val = 0; ret_val 553 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = -IGC_ERR_PARAM; ret_val 579 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = -IGC_ERR_PHY; ret_val 584 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = -IGC_ERR_PHY; ret_val 590 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 605 drivers/net/ethernet/intel/igc/igc_phy.c s32 ret_val = 0; ret_val 609 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = -IGC_ERR_PARAM; ret_val 636 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = -IGC_ERR_PHY; ret_val 641 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = -IGC_ERR_PHY; ret_val 646 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 660 drivers/net/ethernet/intel/igc/igc_phy.c s32 ret_val; ret_val 662 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = hw->phy.ops.write_reg(hw, IGC_MMDAC, dev_addr); ret_val 663 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 664 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 666 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = hw->phy.ops.write_reg(hw, IGC_MMDAAD, address); ret_val 667 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 668 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 670 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = hw->phy.ops.write_reg(hw, IGC_MMDAC, IGC_MMDAC_FUNC_DATA | ret_val 672 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 673 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 676 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = hw->phy.ops.read_reg(hw, IGC_MMDAAD, data); ret_val 678 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = hw->phy.ops.write_reg(hw, IGC_MMDAAD, *data); ret_val 679 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 680 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 683 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = hw->phy.ops.write_reg(hw, IGC_MMDAC, 0); ret_val 684 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 685 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 687 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 728 drivers/net/ethernet/intel/igc/igc_phy.c s32 ret_val; ret_val 733 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = hw->phy.ops.acquire(hw); ret_val 734 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 735 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 736 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = igc_write_phy_reg_mdic(hw, offset, data); ret_val 737 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 738 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 741 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = igc_write_xmdio_reg(hw, (u16)offset, dev_addr, ret_val 745 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 761 drivers/net/ethernet/intel/igc/igc_phy.c s32 ret_val; ret_val 766 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = hw->phy.ops.acquire(hw); ret_val 767 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 768 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 769 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = igc_read_phy_reg_mdic(hw, offset, data); ret_val 770 drivers/net/ethernet/intel/igc/igc_phy.c if (ret_val) ret_val 771 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 774 drivers/net/ethernet/intel/igc/igc_phy.c ret_val = igc_read_xmdio_reg(hw, (u16)offset, dev_addr, ret_val 778 drivers/net/ethernet/intel/igc/igc_phy.c return ret_val; ret_val 356 drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c int ret_val = 0; ret_val 359 drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c ret_val = -EINVAL; ret_val 368 drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c ret_val = -EINVAL; ret_val 392 drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c return ret_val; ret_val 100 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c s32 ret_val; ret_val 122 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c ret_val = phy->ops.identify_sfp(hw); ret_val 123 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c if (ret_val) ret_val 124 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c return ret_val; ret_val 129 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c ret_val = ixgbe_get_sfp_init_sequence_offsets(hw, ret_val 132 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c if (ret_val) ret_val 153 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c s32 ret_val; ret_val 155 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c ret_val = ixgbe_start_hw_generic(hw); ret_val 156 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c if (ret_val) ret_val 157 drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c return ret_val; ret_val 103 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c s32 ret_val; ret_val 111 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c ret_val = ixgbe_get_sfp_init_sequence_offsets(hw, &list_offset, ret_val 113 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c if (ret_val) ret_val 114 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c return ret_val; ret_val 117 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c ret_val = hw->mac.ops.acquire_swfw_sync(hw, ret_val 119 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c if (ret_val) ret_val 141 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c ret_val = hw->mac.ops.prot_autoc_write(hw, ret_val 145 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c if (ret_val) { ret_val 179 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c s32 ret_val; ret_val 184 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c ret_val = hw->mac.ops.acquire_swfw_sync(hw, ret_val 186 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c if (ret_val) ret_val 208 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c s32 ret_val = 0; ret_val 219 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c ret_val = hw->mac.ops.acquire_swfw_sync(hw, ret_val 221 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c if (ret_val) ret_val 228 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c ret_val = ixgbe_reset_pipeline_82599(hw); ret_val 237 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c return ret_val; ret_val 270 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c s32 ret_val; ret_val 292 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c ret_val = phy->ops.identify(hw); ret_val 314 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c return ret_val; ret_val 1781 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c s32 ret_val = 0; ret_val 1783 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c ret_val = ixgbe_start_hw_generic(hw); ret_val 1784 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c if (ret_val) ret_val 1785 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c return ret_val; ret_val 1787 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c ret_val = ixgbe_start_hw_gen2(hw); ret_val 1788 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c if (ret_val) ret_val 1789 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c return ret_val; ret_val 2011 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c s32 ret_val; ret_val 2040 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c ret_val = IXGBE_ERR_RESET_FAILED; ret_val 2044 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c ret_val = 0; ret_val 2051 drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c return ret_val; ret_val 116 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c s32 ret_val = 0; ret_val 145 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = hw->mac.ops.prot_autoc_read(hw, &locked, ®_bp); ret_val 146 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (ret_val) ret_val 147 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c return ret_val; ret_val 247 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = hw->mac.ops.prot_autoc_write(hw, reg_bp, locked); ret_val 248 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (ret_val) ret_val 249 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c return ret_val; ret_val 258 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c return ret_val; ret_val 272 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c s32 ret_val; ret_val 296 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = hw->mac.ops.setup_fc(hw); ret_val 297 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (ret_val) ret_val 298 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c return ret_val; ret_val 495 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c s32 ret_val; ret_val 506 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = hw->eeprom.ops.read(hw, IXGBE_PBANUM0_PTR, &data); ret_val 507 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (ret_val) { ret_val 509 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c return ret_val; ret_val 512 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = hw->eeprom.ops.read(hw, IXGBE_PBANUM1_PTR, &pba_ptr); ret_val 513 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (ret_val) { ret_val 515 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c return ret_val; ret_val 558 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = hw->eeprom.ops.read(hw, pba_ptr, &length); ret_val 559 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (ret_val) { ret_val 561 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c return ret_val; ret_val 580 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = hw->eeprom.ops.read(hw, pba_ptr + offset, &data); ret_val 581 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (ret_val) { ret_val 583 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c return ret_val; ret_val 2313 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c s32 ret_val; ret_val 2329 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = ixgbe_negotiate_fc(hw, pcs_anadv_reg, ret_val 2335 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c return ret_val; ret_val 2347 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c s32 ret_val; ret_val 2370 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = ixgbe_negotiate_fc(hw, autoc_reg, ret_val 2374 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c return ret_val; ret_val 2410 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c s32 ret_val = IXGBE_ERR_FC_NOT_NEGOTIATED; ret_val 2434 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = ixgbe_fc_autoneg_fiber(hw); ret_val 2439 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = ixgbe_fc_autoneg_backplane(hw); ret_val 2445 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = ixgbe_fc_autoneg_copper(hw); ret_val 2453 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (ret_val == 0) { ret_val 2757 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c s32 ret_val; ret_val 2769 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = hw->mac.ops.prot_autoc_read(hw, &locked, &autoc_reg); ret_val 2770 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (ret_val) ret_val 2771 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c return ret_val; ret_val 2776 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = hw->mac.ops.prot_autoc_write(hw, autoc_reg, locked); ret_val 2777 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (ret_val) ret_val 2778 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c return ret_val; ret_val 2803 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c s32 ret_val; ret_val 2808 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = hw->mac.ops.prot_autoc_read(hw, &locked, &autoc_reg); ret_val 2809 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (ret_val) ret_val 2810 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c return ret_val; ret_val 2815 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = hw->mac.ops.prot_autoc_write(hw, autoc_reg, locked); ret_val 2816 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (ret_val) ret_val 2817 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c return ret_val; ret_val 2840 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c s32 ret_val; ret_val 2846 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = hw->eeprom.ops.read(hw, IXGBE_SAN_MAC_ADDR_PTR, ret_val 2848 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (ret_val) ret_val 2852 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c return ret_val; ret_val 2869 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c s32 ret_val; ret_val 2875 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = ixgbe_get_san_mac_addr_offset(hw, &san_mac_offset); ret_val 2876 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (ret_val || san_mac_offset == 0 || san_mac_offset == 0xFFFF) ret_val 2886 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = hw->eeprom.ops.read(hw, san_mac_offset, ret_val 2888 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (ret_val) { ret_val 2905 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c return ret_val; ret_val 3761 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c s32 ret_val; ret_val 3778 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = ixgbe_host_interface_command(hw, &fw_cmd, ret_val 3782 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c if (ret_val != 0) ret_val 3787 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = 0; ret_val 3789 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c ret_val = IXGBE_ERR_HOST_INTERFACE_COMMAND; ret_val 3794 drivers/net/ethernet/intel/ixgbe/ixgbe_common.c return ret_val; ret_val 902 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c int ret_val = 0; ret_val 918 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c ret_val = hw->eeprom.ops.read_buffer(hw, first_word, eeprom_len, ret_val 928 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c return ret_val; ret_val 938 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c int max_len, first_word, last_word, ret_val = 0; ret_val 962 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c ret_val = hw->eeprom.ops.read(hw, first_word, &eeprom_buff[0]); ret_val 963 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (ret_val) ret_val 973 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c ret_val = hw->eeprom.ops.read(hw, last_word, ret_val 975 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (ret_val) ret_val 988 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c ret_val = hw->eeprom.ops.write_buffer(hw, first_word, ret_val 993 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (ret_val == 0) ret_val 998 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c return ret_val; ret_val 1727 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c int ret_val; ret_val 1766 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c ret_val = 4; ret_val 1784 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c return ret_val; ret_val 1974 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c int i, j, lc, good_cnt, ret_val = 0; ret_val 2018 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c ret_val = 12; ret_val 2027 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c ret_val = 13; ret_val 2036 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c return ret_val; ret_val 3358 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c s32 ret_val; ret_val 3365 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c ret_val = ixgbe_get_eee(netdev, &eee_data); ret_val 3366 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c if (ret_val) ret_val 3367 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c return ret_val; ret_val 11558 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int ret_val; ret_val 11560 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c ret_val = driver_for_each_device(&ixgbe_driver.driver, NULL, &event, ret_val 11563 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c return ret_val ? NOTIFY_BAD : NOTIFY_DONE; ret_val 169 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c s32 ret_val; ret_val 174 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c ret_val = ixgbe_poll_for_msg(hw, mbx_id); ret_val 175 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c if (ret_val) ret_val 176 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c return ret_val; ret_val 196 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c s32 ret_val; ret_val 203 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c ret_val = mbx->ops->write(hw, msg, size, mbx_id); ret_val 204 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c if (ret_val) ret_val 205 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c return ret_val; ret_val 335 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c s32 ret_val; ret_val 339 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c ret_val = ixgbe_obtain_mbx_lock_pf(hw, vf_number); ret_val 340 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c if (ret_val) ret_val 341 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c return ret_val; ret_val 374 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c s32 ret_val; ret_val 378 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c ret_val = ixgbe_obtain_mbx_lock_pf(hw, vf_number); ret_val 379 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c if (ret_val) ret_val 380 drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c return ret_val; ret_val 1278 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c s32 ret_val; ret_val 1305 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c ret_val = ixgbe_get_sfp_init_sequence_offsets(hw, &list_offset, ret_val 1307 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (ret_val) ret_val 1308 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c return ret_val; ret_val 1310 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c ret_val = hw->eeprom.ops.read(hw, data_offset, &block_crc); ret_val 1316 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c ret_val = hw->eeprom.ops.read(hw, data_offset, &eword); ret_val 1317 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (ret_val) ret_val 1331 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c ret_val = hw->eeprom.ops.read(hw, data_offset++, ret_val 1333 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (ret_val) ret_val 1336 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c ret_val = hw->eeprom.ops.read(hw, data_offset, ret_val 1338 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c if (ret_val) ret_val 1367 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c return ret_val; ret_val 171 drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c s32 ret_val; ret_val 173 drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c ret_val = ixgbe_start_hw_generic(hw); ret_val 174 drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c if (ret_val) ret_val 175 drivers/net/ethernet/intel/ixgbe/ixgbe_x540.c return ret_val; ret_val 1748 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c s32 ret_val; ret_val 1751 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c ret_val = ixgbe_supported_sfp_modules_X550em(hw, &setup_linear); ret_val 1756 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (ret_val == IXGBE_ERR_SFP_NOT_PRESENT) ret_val 1759 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (ret_val) ret_val 1760 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c return ret_val; ret_val 1763 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c ret_val = hw->mac.ops.read_iosf_sb_reg(hw, ret_val 1766 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (ret_val) ret_val 1767 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c return ret_val; ret_val 1773 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c ret_val = hw->mac.ops.write_iosf_sb_reg(hw, ret_val 1776 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (ret_val) ret_val 1777 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c return ret_val; ret_val 1798 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c s32 ret_val; ret_val 1801 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c ret_val = ixgbe_supported_sfp_modules_X550em(hw, &setup_linear); ret_val 1806 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (ret_val == IXGBE_ERR_SFP_NOT_PRESENT) ret_val 1809 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (ret_val) ret_val 1810 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c return ret_val; ret_val 1819 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c ret_val = hw->phy.ops.read_reg(hw, IXGBE_CS4227_EFUSE_PDF_SKU, ret_val 1821 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (ret_val) ret_val 1822 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c return ret_val; ret_val 1836 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c ret_val = hw->phy.ops.read_reg(hw, reg_slice, ret_val 1838 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (ret_val) ret_val 1839 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c return ret_val; ret_val 1849 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c ret_val = hw->phy.ops.write_reg(hw, reg_slice, ret_val 1851 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (ret_val) ret_val 1852 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c return ret_val; ret_val 2774 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c s32 ret_val; ret_val 2794 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c ret_val = ixgbe_host_interface_command(hw, (u32 *)&fw_cmd, ret_val 2798 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (ret_val) ret_val 2807 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c return ret_val; ret_val 3191 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c s32 ret_val; ret_val 3203 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c ret_val = phy->ops.identify(hw); ret_val 3204 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c if (ret_val == IXGBE_ERR_SFP_NOT_SUPPORTED || ret_val 3205 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c ret_val == IXGBE_ERR_PHY_ADDR_INVALID) ret_val 3206 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c return ret_val; ret_val 3269 drivers/net/ethernet/intel/ixgbe/ixgbe_x550.c return ret_val; ret_val 65 drivers/net/ethernet/intel/ixgbevf/mbx.c s32 ret_val = IXGBE_ERR_MBX; ret_val 70 drivers/net/ethernet/intel/ixgbevf/mbx.c ret_val = ixgbevf_poll_for_msg(hw); ret_val 73 drivers/net/ethernet/intel/ixgbevf/mbx.c if (!ret_val) ret_val 74 drivers/net/ethernet/intel/ixgbevf/mbx.c ret_val = mbx->ops.read(hw, msg, size); ret_val 76 drivers/net/ethernet/intel/ixgbevf/mbx.c return ret_val; ret_val 91 drivers/net/ethernet/intel/ixgbevf/mbx.c s32 ret_val = IXGBE_ERR_MBX; ret_val 98 drivers/net/ethernet/intel/ixgbevf/mbx.c ret_val = mbx->ops.write(hw, msg, size); ret_val 101 drivers/net/ethernet/intel/ixgbevf/mbx.c if (!ret_val) ret_val 102 drivers/net/ethernet/intel/ixgbevf/mbx.c ret_val = ixgbevf_poll_for_ack(hw); ret_val 104 drivers/net/ethernet/intel/ixgbevf/mbx.c return ret_val; ret_val 135 drivers/net/ethernet/intel/ixgbevf/mbx.c s32 ret_val = IXGBE_ERR_MBX; ret_val 138 drivers/net/ethernet/intel/ixgbevf/mbx.c ret_val = 0; ret_val 142 drivers/net/ethernet/intel/ixgbevf/mbx.c return ret_val; ret_val 153 drivers/net/ethernet/intel/ixgbevf/mbx.c s32 ret_val = IXGBE_ERR_MBX; ret_val 156 drivers/net/ethernet/intel/ixgbevf/mbx.c ret_val = 0; ret_val 160 drivers/net/ethernet/intel/ixgbevf/mbx.c return ret_val; ret_val 171 drivers/net/ethernet/intel/ixgbevf/mbx.c s32 ret_val = IXGBE_ERR_MBX; ret_val 174 drivers/net/ethernet/intel/ixgbevf/mbx.c ret_val = 0; ret_val 178 drivers/net/ethernet/intel/ixgbevf/mbx.c return ret_val; ret_val 189 drivers/net/ethernet/intel/ixgbevf/mbx.c s32 ret_val = IXGBE_ERR_MBX; ret_val 193 drivers/net/ethernet/intel/ixgbevf/mbx.c ret_val = 0; ret_val 197 drivers/net/ethernet/intel/ixgbevf/mbx.c return ret_val; ret_val 208 drivers/net/ethernet/intel/ixgbevf/mbx.c s32 ret_val = IXGBE_ERR_MBX; ret_val 215 drivers/net/ethernet/intel/ixgbevf/mbx.c ret_val = 0; ret_val 217 drivers/net/ethernet/intel/ixgbevf/mbx.c return ret_val; ret_val 230 drivers/net/ethernet/intel/ixgbevf/mbx.c s32 ret_val; ret_val 234 drivers/net/ethernet/intel/ixgbevf/mbx.c ret_val = ixgbevf_obtain_mbx_lock_vf(hw); ret_val 235 drivers/net/ethernet/intel/ixgbevf/mbx.c if (ret_val) ret_val 253 drivers/net/ethernet/intel/ixgbevf/mbx.c return ret_val; ret_val 266 drivers/net/ethernet/intel/ixgbevf/mbx.c s32 ret_val = 0; ret_val 270 drivers/net/ethernet/intel/ixgbevf/mbx.c ret_val = ixgbevf_obtain_mbx_lock_vf(hw); ret_val 271 drivers/net/ethernet/intel/ixgbevf/mbx.c if (ret_val) ret_val 285 drivers/net/ethernet/intel/ixgbevf/mbx.c return ret_val; ret_val 69 drivers/net/ethernet/intel/ixgbevf/vf.c s32 ret_val = IXGBE_ERR_INVALID_MAC_ADDR; ret_val 103 drivers/net/ethernet/intel/ixgbevf/vf.c ret_val = mbx->ops.read_posted(hw, msgbuf, IXGBE_VF_PERMADDR_MSG_LEN); ret_val 104 drivers/net/ethernet/intel/ixgbevf/vf.c if (ret_val) ret_val 105 drivers/net/ethernet/intel/ixgbevf/vf.c return ret_val; ret_val 250 drivers/net/ethernet/intel/ixgbevf/vf.c s32 ret_val; ret_val 265 drivers/net/ethernet/intel/ixgbevf/vf.c ret_val = ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf, ret_val 267 drivers/net/ethernet/intel/ixgbevf/vf.c if (!ret_val) { ret_val 274 drivers/net/ethernet/intel/ixgbevf/vf.c return ret_val; ret_val 431 drivers/net/ethernet/intel/ixgbevf/vf.c s32 ret_val; ret_val 437 drivers/net/ethernet/intel/ixgbevf/vf.c ret_val = ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf, ret_val 442 drivers/net/ethernet/intel/ixgbevf/vf.c if (!ret_val && ret_val 448 drivers/net/ethernet/intel/ixgbevf/vf.c return ret_val; ret_val 656 drivers/net/ethernet/intel/ixgbevf/vf.c s32 ret_val = 0; ret_val 708 drivers/net/ethernet/intel/ixgbevf/vf.c ret_val = -1; ret_val 714 drivers/net/ethernet/intel/ixgbevf/vf.c ret_val = -1; ret_val 725 drivers/net/ethernet/intel/ixgbevf/vf.c return ret_val; ret_val 801 drivers/net/ethernet/intel/ixgbevf/vf.c s32 ret_val; ret_val 806 drivers/net/ethernet/intel/ixgbevf/vf.c ret_val = ixgbevf_write_msg_read_ack(hw, msgbuf, msgbuf, ret_val 808 drivers/net/ethernet/intel/ixgbevf/vf.c if (ret_val) ret_val 809 drivers/net/ethernet/intel/ixgbevf/vf.c return ret_val; ret_val 157 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c void (*error_cb)(struct nfp_nsp *state, u32 ret_val); ret_val 215 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c static void nfp_nsp_print_extended_error(struct nfp_nsp *state, u32 ret_val) ret_val 219 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c if (!ret_val) ret_val 223 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c if (ret_val == nsp_errors[i].code) ret_val 361 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c u64 reg, ret_val, nsp_base, nsp_buffer, nsp_status, nsp_command; ret_val 406 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c err = nfp_cpp_readq(cpp, nsp_cpp, nsp_command, &ret_val); ret_val 409 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c ret_val = FIELD_GET(NSP_COMMAND_OPTION, ret_val); ret_val 415 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c -err, (int)ret_val, arg->code); ret_val 418 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c arg->error_cb(state, ret_val); ret_val 420 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c nfp_nsp_print_extended_error(state, ret_val); ret_val 424 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c return ret_val; ret_val 737 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c static void nfp_nsp_load_fw_extended_msg(struct nfp_nsp *state, u32 ret_val) ret_val 764 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c major = FIELD_GET(NFP_FW_LOAD_RET_MAJOR, ret_val); ret_val 765 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c minor = FIELD_GET(NFP_FW_LOAD_RET_MINOR, ret_val); ret_val 780 drivers/net/ethernet/netronome/nfp/nfpcore/nfp_nsp.c ret_val); ret_val 710 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c s32 ret_val; ret_val 718 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c ret_val = pch_gbe_phy_get_id(hw); ret_val 719 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c if (ret_val) { ret_val 2158 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c int ret_val; ret_val 2161 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c ret_val = -EADDRNOTAVAIL; ret_val 2166 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c ret_val = 0; ret_val 2168 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c netdev_dbg(netdev, "ret_val : 0x%08x\n", ret_val); ret_val 2174 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c return ret_val; ret_val 191 drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.c u32 ret_val = 0; ret_val 197 drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.c ret_val |= handle_tx; ret_val 204 drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.c ret_val |= tx_bump_tc; ret_val 210 drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.c ret_val |= tx_hard_error; ret_val 216 drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.c ret_val |= tx_hard_error; ret_val 255 drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.c return ret_val; ret_val 263 drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.c u32 ret_val = 0; ret_val 269 drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.c ret_val |= handle_rx; ret_val 276 drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.c ret_val |= rx_bump_tc; ret_val 282 drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.c ret_val |= rx_hard_error; ret_val 288 drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.c ret_val |= rx_hard_error; ret_val 321 drivers/net/ethernet/samsung/sxgbe/sxgbe_dma.c return ret_val; ret_val 94 drivers/net/phy/mdio-mux.c int r, ret_val; ret_val 111 drivers/net/phy/mdio-mux.c ret_val = -EPROBE_DEFER; ret_val 122 drivers/net/phy/mdio-mux.c ret_val = -ENOMEM; ret_val 132 drivers/net/phy/mdio-mux.c ret_val = -ENODEV; ret_val 146 drivers/net/phy/mdio-mux.c ret_val = -ENOMEM; ret_val 154 drivers/net/phy/mdio-mux.c ret_val = -ENOMEM; ret_val 189 drivers/net/phy/mdio-mux.c return ret_val; ret_val 1436 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c uint callbacks, ret_val = 0; ret_val 1439 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c ret_val = brcms_c_down(wl->wlc); ret_val 1440 drivers/net/wireless/broadcom/brcm80211/brcmsmac/mac80211_if.c callbacks = atomic_read(&wl->callbacks) - ret_val; ret_val 1065 drivers/net/wireless/marvell/mwifiex/wmm.c u8 ret_val; ret_val 1073 drivers/net/wireless/marvell/mwifiex/wmm.c ret_val = (u8) (min(queue_delay, priv->wmm.drv_pkt_delay_max) >> 1); ret_val 1076 drivers/net/wireless/marvell/mwifiex/wmm.c "%d ms sent to FW\n", queue_delay, ret_val); ret_val 1078 drivers/net/wireless/marvell/mwifiex/wmm.c return ret_val; ret_val 490 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c u32 ret_val = 0; ret_val 505 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c ret_val = (num_of_connected_port << 16) | port_connected_status; ret_val 507 drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c return ret_val; ret_val 30 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c int ret_val; ret_val 33 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c ret_val = 0 - value; ret_val 34 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c ret_val = (ret_val << 1) + (ret_val >> 1); ret_val 36 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c ret_val = ret_val | BIT(12); ret_val 38 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c ret_val = value; ret_val 39 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c ret_val = (ret_val << 1) + (ret_val >> 1); ret_val 41 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c return ret_val; ret_val 46 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c s8 ret_val = value; ret_val 49 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c if (ret_val == -128) ret_val 50 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c ret_val = 127; ret_val 51 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c else if (ret_val < 0) ret_val 52 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c ret_val = 0 - ret_val; ret_val 54 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c ret_val = ret_val >> 1; ret_val 55 drivers/net/wireless/realtek/rtlwifi/rtl8821ae/trx.c return ret_val; ret_val 21 drivers/net/wireless/realtek/rtlwifi/stats.c s8 ret_val = clamp(-value, 0, 33) * 3; ret_val 23 drivers/net/wireless/realtek/rtlwifi/stats.c if (ret_val == 99) ret_val 24 drivers/net/wireless/realtek/rtlwifi/stats.c ret_val = 100; ret_val 26 drivers/net/wireless/realtek/rtlwifi/stats.c return ret_val; ret_val 158 drivers/pci/hotplug/cpqphp_nvram.c int ret_val; ret_val 171 drivers/pci/hotplug/cpqphp_nvram.c : "=c" (*buf_size), "=a" (ret_val) ret_val 177 drivers/pci/hotplug/cpqphp_nvram.c return((ret_val & 0xFF00) >> 8); ret_val 116 drivers/reset/sti/reset-syscfg.c u32 ret_val = 0; ret_val 124 drivers/reset/sti/reset-syscfg.c err = regmap_field_read(ch->ack, &ret_val); ret_val 126 drivers/reset/sti/reset-syscfg.c err = regmap_field_read(ch->reset, &ret_val); ret_val 130 drivers/reset/sti/reset-syscfg.c return rst->active_low ? !ret_val : !!ret_val; ret_val 591 drivers/scsi/csiostor/csio_mb.c enum fw_retval *ret_val, ret_val 596 drivers/scsi/csiostor/csio_mb.c *ret_val = FW_CMD_RETVAL_G(ntohl(rsp->alloc_to_len16)); ret_val 597 drivers/scsi/csiostor/csio_mb.c if (*ret_val == FW_SUCCESS) { ret_val 777 drivers/scsi/csiostor/csio_mb.c struct csio_mb *mbp, enum fw_retval *ret_val, ret_val 782 drivers/scsi/csiostor/csio_mb.c *ret_val = FW_CMD_RETVAL_G(ntohl(rsp->alloc_to_len16)); ret_val 784 drivers/scsi/csiostor/csio_mb.c if (*ret_val == FW_SUCCESS) { ret_val 12 drivers/scsi/gdth_proc.c int ret_val = -EINVAL; ret_val 20 drivers/scsi/gdth_proc.c ret_val = gdth_set_asc_info(host, buffer, length, ha); ret_val 24 drivers/scsi/gdth_proc.c return ret_val; ret_val 1790 drivers/scsi/ips.c int ret_val = 0; ret_val 1796 drivers/scsi/ips.c ret_val = -1; ret_val 1815 drivers/scsi/ips.c return ret_val; ret_val 789 drivers/scsi/isci/request.c u32 ret_val = 0; ret_val 800 drivers/scsi/isci/request.c ret_val = readl(scu_reg_base + ret_val 805 drivers/scsi/isci/request.c return ret_val; ret_val 2657 drivers/scsi/lpfc/lpfc_bsg.c int ret_val = 0; ret_val 2700 drivers/scsi/lpfc/lpfc_bsg.c ret_val = -ENOMEM; ret_val 2742 drivers/scsi/lpfc/lpfc_bsg.c ret_val = -EIO; ret_val 2754 drivers/scsi/lpfc/lpfc_bsg.c ret_val = (time_left) ? -EINTR : -ETIMEDOUT; ret_val 2781 drivers/scsi/lpfc/lpfc_bsg.c return ret_val; ret_val 2967 drivers/scsi/lpfc/lpfc_bsg.c int ret_val = 0; ret_val 2985 drivers/scsi/lpfc/lpfc_bsg.c ret_val = -ENOMEM; ret_val 3043 drivers/scsi/lpfc/lpfc_bsg.c ret_val = -EIO; ret_val 3057 drivers/scsi/lpfc/lpfc_bsg.c ret_val = -EIO; ret_val 3076 drivers/scsi/lpfc/lpfc_bsg.c return ret_val; ret_val 1798 drivers/scsi/lpfc/lpfc_nvme.c int ret_val; ret_val 1954 drivers/scsi/lpfc/lpfc_nvme.c ret_val = lpfc_sli4_issue_wqe(phba, lpfc_nbuf->hdwq, abts_buf); ret_val 1957 drivers/scsi/lpfc/lpfc_nvme.c if (ret_val) { ret_val 1961 drivers/scsi/lpfc/lpfc_nvme.c ret_val, pnvme_fcreq); ret_val 4725 drivers/scsi/lpfc/lpfc_scsi.c int ret_val; ret_val 4844 drivers/scsi/lpfc/lpfc_scsi.c ret_val = __lpfc_sli_issue_iocb(phba, pring_s4->ringno, ret_val 4848 drivers/scsi/lpfc/lpfc_scsi.c ret_val = __lpfc_sli_issue_iocb(phba, LPFC_FCP_RING, ret_val 4852 drivers/scsi/lpfc/lpfc_scsi.c if (ret_val == IOCB_ERROR) { ret_val 11472 drivers/scsi/lpfc/lpfc_sli.c int errcnt = 0, ret_val = 0; ret_val 11532 drivers/scsi/lpfc/lpfc_sli.c ret_val = lpfc_sli_issue_iocb(phba, pring_s4->ringno, ret_val 11535 drivers/scsi/lpfc/lpfc_sli.c ret_val = lpfc_sli_issue_iocb(phba, pring->ringno, ret_val 11537 drivers/scsi/lpfc/lpfc_sli.c if (ret_val == IOCB_ERROR) { ret_val 11579 drivers/scsi/lpfc/lpfc_sli.c int sum, i, ret_val; ret_val 11677 drivers/scsi/lpfc/lpfc_sli.c ret_val = __lpfc_sli_issue_iocb(phba, pring_s4->ringno, ret_val 11681 drivers/scsi/lpfc/lpfc_sli.c ret_val = __lpfc_sli_issue_iocb(phba, pring->ringno, ret_val 11687 drivers/scsi/lpfc/lpfc_sli.c if (ret_val == IOCB_ERROR) ret_val 247 drivers/scsi/megaraid/megaraid_sas_base.c u32 i = 0, ret_val; ret_val 257 drivers/scsi/megaraid/megaraid_sas_base.c ret_val = readl(addr); ret_val 259 drivers/scsi/megaraid/megaraid_sas_base.c } while (ret_val == 0 && i < 3); ret_val 260 drivers/scsi/megaraid/megaraid_sas_base.c return ret_val; ret_val 2830 drivers/scsi/megaraid/megaraid_sas_base.c int ret_val; ret_val 2843 drivers/scsi/megaraid/megaraid_sas_base.c ret_val = megasas_wait_for_outstanding(instance); ret_val 2844 drivers/scsi/megaraid/megaraid_sas_base.c if (ret_val == SUCCESS) ret_val 2849 drivers/scsi/megaraid/megaraid_sas_base.c return ret_val; ret_val 6490 drivers/scsi/megaraid/megaraid_sas_base.c int ret_val; ret_val 6549 drivers/scsi/megaraid/megaraid_sas_base.c ret_val = megasas_issue_blocked_abort_cmd(instance, ret_val 6553 drivers/scsi/megaraid/megaraid_sas_base.c if (ret_val) { ret_val 6556 drivers/scsi/megaraid/megaraid_sas_base.c return ret_val; ret_val 194 drivers/scsi/mpt3sas/mpt3sas_base.c u32 i = 0, ret_val; ret_val 197 drivers/scsi/mpt3sas/mpt3sas_base.c ret_val = readl(addr); ret_val 199 drivers/scsi/mpt3sas/mpt3sas_base.c } while (ret_val == 0 && i < 3); ret_val 201 drivers/scsi/mpt3sas/mpt3sas_base.c return ret_val; ret_val 73 drivers/scsi/qla2xxx/qla_nx2.c int ret_val = QLA_SUCCESS; ret_val 84 drivers/scsi/qla2xxx/qla_nx2.c ret_val = QLA_FUNCTION_FAILED; ret_val 86 drivers/scsi/qla2xxx/qla_nx2.c return ret_val; ret_val 92 drivers/scsi/qla2xxx/qla_nx2.c int ret_val = QLA_SUCCESS; ret_val 95 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_set_win_base(vha, addr); ret_val 96 drivers/scsi/qla2xxx/qla_nx2.c if (!ret_val) ret_val 101 drivers/scsi/qla2xxx/qla_nx2.c return ret_val; ret_val 107 drivers/scsi/qla2xxx/qla_nx2.c int ret_val = QLA_SUCCESS; ret_val 110 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_set_win_base(vha, addr); ret_val 111 drivers/scsi/qla2xxx/qla_nx2.c if (!ret_val) ret_val 117 drivers/scsi/qla2xxx/qla_nx2.c return ret_val; ret_val 360 drivers/scsi/qla2xxx/qla_nx2.c uint32_t ret_val = QLA_SUCCESS, timeout = 0, status = 0; ret_val 404 drivers/scsi/qla2xxx/qla_nx2.c ret_val = QLA_SUCCESS; ret_val 423 drivers/scsi/qla2xxx/qla_nx2.c return ret_val; ret_val 453 drivers/scsi/qla2xxx/qla_nx2.c int ret_val = QLA_SUCCESS; ret_val 467 drivers/scsi/qla2xxx/qla_nx2.c ret_val = QLA_FUNCTION_FAILED; ret_val 473 drivers/scsi/qla2xxx/qla_nx2.c return ret_val; ret_val 511 drivers/scsi/qla2xxx/qla_nx2.c int i, ret_val = QLA_SUCCESS; ret_val 515 drivers/scsi/qla2xxx/qla_nx2.c ret_val = QLA_FUNCTION_FAILED; ret_val 522 drivers/scsi/qla2xxx/qla_nx2.c ret_val = QLA_FUNCTION_FAILED; ret_val 533 drivers/scsi/qla2xxx/qla_nx2.c ret_val = QLA_FUNCTION_FAILED; ret_val 537 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_rd_reg_indirect(vha, ret_val 540 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val != QLA_SUCCESS) { ret_val 556 drivers/scsi/qla2xxx/qla_nx2.c return ret_val; ret_val 666 drivers/scsi/qla2xxx/qla_nx2.c int ret_val = QLA_SUCCESS; ret_val 668 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_rd_reg_indirect(vha, addr, &value); ret_val 669 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val == QLA_FUNCTION_FAILED) { ret_val 681 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_rd_reg_indirect(vha, addr, &value); ret_val 682 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val == QLA_FUNCTION_FAILED) { ret_val 1038 drivers/scsi/qla2xxx/qla_nx2.c int ret_val = QLA_SUCCESS; ret_val 1045 drivers/scsi/qla2xxx/qla_nx2.c ret_val = QLA_FUNCTION_FAILED; ret_val 1049 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, ret_val 1052 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val != QLA_SUCCESS) { ret_val 1064 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_rd_reg_indirect(vha, ret_val 1066 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val != QLA_SUCCESS) { ret_val 1078 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, ret_val 1080 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val != QLA_SUCCESS) { ret_val 1093 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_rd_reg_indirect(vha, ret_val 1095 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val != QLA_SUCCESS) { ret_val 1108 drivers/scsi/qla2xxx/qla_nx2.c return ret_val; ret_val 1125 drivers/scsi/qla2xxx/qla_nx2.c int i, j, ret_val = QLA_SUCCESS; ret_val 1132 drivers/scsi/qla2xxx/qla_nx2.c ret_val = QLA_FUNCTION_FAILED; ret_val 1138 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, MD_MIU_TEST_AGT_ADDR_HI, 0); ret_val 1139 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val == QLA_FUNCTION_FAILED) { ret_val 1150 drivers/scsi/qla2xxx/qla_nx2.c ret_val = QLA_FUNCTION_FAILED; ret_val 1154 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, ret_val 1158 drivers/scsi/qla2xxx/qla_nx2.c ret_val += qla8044_wr_reg_indirect(vha, ret_val 1160 drivers/scsi/qla2xxx/qla_nx2.c ret_val += qla8044_wr_reg_indirect(vha, ret_val 1162 drivers/scsi/qla2xxx/qla_nx2.c ret_val += qla8044_wr_reg_indirect(vha, ret_val 1164 drivers/scsi/qla2xxx/qla_nx2.c ret_val += qla8044_wr_reg_indirect(vha, ret_val 1166 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val == QLA_FUNCTION_FAILED) { ret_val 1174 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, MD_MIU_TEST_AGT_CTRL, ret_val 1176 drivers/scsi/qla2xxx/qla_nx2.c ret_val += qla8044_wr_reg_indirect(vha, MD_MIU_TEST_AGT_CTRL, ret_val 1178 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val == QLA_FUNCTION_FAILED) { ret_val 1185 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_rd_reg_indirect(vha, ret_val 1187 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val == QLA_FUNCTION_FAILED) { ret_val 1202 drivers/scsi/qla2xxx/qla_nx2.c ret_val = QLA_FUNCTION_FAILED; ret_val 1211 drivers/scsi/qla2xxx/qla_nx2.c return ret_val; ret_val 1220 drivers/scsi/qla2xxx/qla_nx2.c int ret_val = QLA_SUCCESS; ret_val 1239 drivers/scsi/qla2xxx/qla_nx2.c ret_val = QLA_FUNCTION_FAILED; ret_val 1243 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_lockless_flash_read_u32(vha, src, ret_val 1245 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val == QLA_FUNCTION_FAILED) { ret_val 1254 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_ms_mem_write_128b(vha, dest, ret_val 1256 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val == QLA_FUNCTION_FAILED) { ret_val 1269 drivers/scsi/qla2xxx/qla_nx2.c return ret_val; ret_val 1275 drivers/scsi/qla2xxx/qla_nx2.c int ret_val = QLA_SUCCESS; ret_val 1293 drivers/scsi/qla2xxx/qla_nx2.c ret_val = QLA_FUNCTION_FAILED; ret_val 1305 drivers/scsi/qla2xxx/qla_nx2.c return ret_val; ret_val 1319 drivers/scsi/qla2xxx/qla_nx2.c uint32_t val, ret_val = QLA_FUNCTION_FAILED; ret_val 1329 drivers/scsi/qla2xxx/qla_nx2.c ret_val = QLA_SUCCESS; ret_val 1335 drivers/scsi/qla2xxx/qla_nx2.c return ret_val; ret_val 1341 drivers/scsi/qla2xxx/qla_nx2.c int ret_val = QLA_SUCCESS; ret_val 1347 drivers/scsi/qla2xxx/qla_nx2.c ret_val = QLA_FUNCTION_FAILED; ret_val 1353 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_check_cmd_peg_status(vha); ret_val 1354 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val) { ret_val 1357 drivers/scsi/qla2xxx/qla_nx2.c ret_val = QLA_FUNCTION_FAILED; ret_val 1361 drivers/scsi/qla2xxx/qla_nx2.c return ret_val; ret_val 3505 drivers/scsi/qla2xxx/qla_nx2.c int ret_val = QLA_SUCCESS; ret_val 3508 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_rd_reg_indirect(vha, QLA8044_FLASH_STATUS, ret_val 3510 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val) { ret_val 3523 drivers/scsi/qla2xxx/qla_nx2.c ret_val = QLA_FUNCTION_FAILED; ret_val 3525 drivers/scsi/qla2xxx/qla_nx2.c return ret_val; ret_val 3532 drivers/scsi/qla2xxx/qla_nx2.c int ret_val = QLA_SUCCESS; ret_val 3537 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, QLA8044_FLASH_ADDR, ret_val 3539 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val) { ret_val 3545 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, QLA8044_FLASH_WRDATA, data); ret_val 3546 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val) { ret_val 3552 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, QLA8044_FLASH_CONTROL, ret_val 3554 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val) { ret_val 3560 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_poll_flash_status_reg(vha); ret_val 3561 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val) ret_val 3566 drivers/scsi/qla2xxx/qla_nx2.c return ret_val; ret_val 3575 drivers/scsi/qla2xxx/qla_nx2.c int ret_val; ret_val 3578 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_write_flash_status_reg(vha, ha->fdt_wrt_enable); ret_val 3579 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val) ret_val 3583 drivers/scsi/qla2xxx/qla_nx2.c return ret_val; ret_val 3592 drivers/scsi/qla2xxx/qla_nx2.c int ret_val; ret_val 3595 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_write_flash_status_reg(vha, ha->fdt_wrt_disable); ret_val 3596 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val) ret_val 3600 drivers/scsi/qla2xxx/qla_nx2.c return ret_val; ret_val 3609 drivers/scsi/qla2xxx/qla_nx2.c int ret_val = QLA_SUCCESS; ret_val 3611 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_poll_flash_status_reg(vha); ret_val 3612 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val) { ret_val 3621 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, ret_val 3623 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val) { ret_val 3627 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, QLA8044_FLASH_ADDR, ret_val 3629 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val) { ret_val 3633 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, QLA8044_FLASH_CONTROL, ret_val 3635 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val) { ret_val 3639 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_poll_flash_status_reg(vha); ret_val 3640 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val) { ret_val 3646 drivers/scsi/qla2xxx/qla_nx2.c return ret_val; ret_val 3664 drivers/scsi/qla2xxx/qla_nx2.c int ret_val = QLA_SUCCESS; ret_val 3666 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, QLA8044_FLASH_ADDR, ret_val 3668 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val) { ret_val 3673 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, QLA8044_FLASH_WRDATA, *p_data); ret_val 3674 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val) { ret_val 3679 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_wr_reg_indirect(vha, QLA8044_FLASH_CONTROL, 0x3D); ret_val 3680 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val) { ret_val 3685 drivers/scsi/qla2xxx/qla_nx2.c ret_val = qla8044_poll_flash_status_reg(vha); ret_val 3686 drivers/scsi/qla2xxx/qla_nx2.c if (ret_val) { ret_val 3692 drivers/scsi/qla2xxx/qla_nx2.c return ret_val; ret_val 29 drivers/scsi/qla4xxx/ql4_83xx.c int ret_val = QLA_SUCCESS; ret_val 36 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = QLA_ERROR; ret_val 39 drivers/scsi/qla4xxx/ql4_83xx.c return ret_val; ret_val 45 drivers/scsi/qla4xxx/ql4_83xx.c int ret_val; ret_val 47 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = qla4_83xx_set_win_base(ha, addr); ret_val 49 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val == QLA_SUCCESS) { ret_val 57 drivers/scsi/qla4xxx/ql4_83xx.c return ret_val; ret_val 63 drivers/scsi/qla4xxx/ql4_83xx.c int ret_val; ret_val 65 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = qla4_83xx_set_win_base(ha, addr); ret_val 67 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val == QLA_SUCCESS) ret_val 73 drivers/scsi/qla4xxx/ql4_83xx.c return ret_val; ret_val 81 drivers/scsi/qla4xxx/ql4_83xx.c int ret_val = QLA_SUCCESS; ret_val 93 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = QLA_ERROR; ret_val 100 drivers/scsi/qla4xxx/ql4_83xx.c return ret_val; ret_val 116 drivers/scsi/qla4xxx/ql4_83xx.c int ret_val = QLA_SUCCESS; ret_val 118 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = qla4_83xx_flash_lock(ha); ret_val 119 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val == QLA_ERROR) ret_val 125 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = QLA_ERROR; ret_val 130 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = qla4_83xx_wr_reg_indirect(ha, ret_val 133 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val == QLA_ERROR) { ret_val 139 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = qla4_83xx_rd_reg_indirect(ha, ret_val 142 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val == QLA_ERROR) { ret_val 157 drivers/scsi/qla4xxx/ql4_83xx.c return ret_val; ret_val 168 drivers/scsi/qla4xxx/ql4_83xx.c int ret_val = QLA_SUCCESS; ret_val 175 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = QLA_ERROR; ret_val 179 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = qla4_83xx_wr_reg_indirect(ha, QLA83XX_FLASH_DIRECT_WINDOW, ret_val 181 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val == QLA_ERROR) { ret_val 193 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = qla4_83xx_rd_reg_indirect(ha, ret_val 196 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val == QLA_ERROR) { ret_val 209 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = qla4_83xx_wr_reg_indirect(ha, ret_val 212 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val == QLA_ERROR) { ret_val 223 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = qla4_83xx_rd_reg_indirect(ha, ret_val 226 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val == QLA_ERROR) { ret_val 239 drivers/scsi/qla4xxx/ql4_83xx.c return ret_val; ret_val 261 drivers/scsi/qla4xxx/ql4_83xx.c int ret_val = QLA_ERROR; ret_val 300 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = QLA_SUCCESS; ret_val 304 drivers/scsi/qla4xxx/ql4_83xx.c return ret_val; ret_val 313 drivers/scsi/qla4xxx/ql4_83xx.c int ret_val = QLA_SUCCESS; ret_val 357 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = qla4_83xx_lock_recovery(ha); ret_val 358 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val == QLA_SUCCESS) { ret_val 374 drivers/scsi/qla4xxx/ql4_83xx.c return ret_val; ret_val 584 drivers/scsi/qla4xxx/ql4_83xx.c uint32_t idc_params, ret_val; ret_val 586 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = qla4_83xx_flash_read_u32(ha, QLA83XX_IDC_PARAM_ADDR, ret_val 588 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val == QLA_SUCCESS) { ret_val 629 drivers/scsi/qla4xxx/ql4_83xx.c int ret_val = QLA_SUCCESS; ret_val 646 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = QLA_ERROR; ret_val 650 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = qla4_83xx_lockless_flash_read_u32(ha, src, p_cache, ret_val 652 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val == QLA_ERROR) { ret_val 661 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = qla4_8xxx_ms_mem_write_128b(ha, dest, (uint32_t *)p_cache, ret_val 663 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val == QLA_ERROR) { ret_val 676 drivers/scsi/qla4xxx/ql4_83xx.c return ret_val; ret_val 681 drivers/scsi/qla4xxx/ql4_83xx.c uint32_t val, ret_val = QLA_ERROR; ret_val 690 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = QLA_SUCCESS; ret_val 696 drivers/scsi/qla4xxx/ql4_83xx.c return ret_val; ret_val 715 drivers/scsi/qla4xxx/ql4_83xx.c int ret_val = QLA_SUCCESS; ret_val 717 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = qla4_83xx_rd_reg_indirect(ha, addr, &value); ret_val 718 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val == QLA_ERROR) ret_val 725 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = qla4_83xx_rd_reg_indirect(ha, addr, &value); ret_val 726 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val == QLA_ERROR) ret_val 729 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = QLA_ERROR; ret_val 731 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = QLA_SUCCESS; ret_val 737 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val == QLA_ERROR) { ret_val 743 drivers/scsi/qla4xxx/ql4_83xx.c return ret_val; ret_val 751 drivers/scsi/qla4xxx/ql4_83xx.c int ret_val; ret_val 761 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = QLA_SUCCESS; ret_val 765 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = QLA_ERROR; ret_val 768 drivers/scsi/qla4xxx/ql4_83xx.c return ret_val; ret_val 779 drivers/scsi/qla4xxx/ql4_83xx.c uint32_t ret_val; ret_val 800 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = qla4_83xx_flash_read_u32(ha, addr, p_buff, ret_val 802 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val != QLA_SUCCESS) { ret_val 830 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = qla4_83xx_flash_read_u32(ha, addr, p_buff, ret_val 832 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val != QLA_SUCCESS) { ret_val 1204 drivers/scsi/qla4xxx/ql4_83xx.c int ret_val = QLA_SUCCESS; ret_val 1229 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = QLA_ERROR; ret_val 1237 drivers/scsi/qla4xxx/ql4_83xx.c return ret_val; ret_val 1242 drivers/scsi/qla4xxx/ql4_83xx.c int ret_val = QLA_SUCCESS; ret_val 1244 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = qla4_83xx_restart(ha); ret_val 1245 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val == QLA_ERROR) { ret_val 1253 drivers/scsi/qla4xxx/ql4_83xx.c ret_val = qla4_83xx_check_cmd_peg_status(ha); ret_val 1254 drivers/scsi/qla4xxx/ql4_83xx.c if (ret_val == QLA_ERROR) ret_val 1259 drivers/scsi/qla4xxx/ql4_83xx.c return ret_val; ret_val 1198 drivers/scsi/qla4xxx/ql4_nx.c int ret_val = QLA_SUCCESS; ret_val 1202 drivers/scsi/qla4xxx/ql4_nx.c ret_val = QLA_ERROR; ret_val 1209 drivers/scsi/qla4xxx/ql4_nx.c ret_val = ha->isp_ops->wr_reg_indirect(ha, MD_MIU_TEST_AGT_ADDR_HI, 0); ret_val 1210 drivers/scsi/qla4xxx/ql4_nx.c if (ret_val == QLA_ERROR) { ret_val 1221 drivers/scsi/qla4xxx/ql4_nx.c ret_val = QLA_ERROR; ret_val 1225 drivers/scsi/qla4xxx/ql4_nx.c ret_val = ha->isp_ops->wr_reg_indirect(ha, ret_val 1229 drivers/scsi/qla4xxx/ql4_nx.c ret_val |= ha->isp_ops->wr_reg_indirect(ha, ret_val 1232 drivers/scsi/qla4xxx/ql4_nx.c ret_val |= ha->isp_ops->wr_reg_indirect(ha, ret_val 1235 drivers/scsi/qla4xxx/ql4_nx.c ret_val |= ha->isp_ops->wr_reg_indirect(ha, ret_val 1238 drivers/scsi/qla4xxx/ql4_nx.c ret_val |= ha->isp_ops->wr_reg_indirect(ha, ret_val 1241 drivers/scsi/qla4xxx/ql4_nx.c if (ret_val == QLA_ERROR) { ret_val 1248 drivers/scsi/qla4xxx/ql4_nx.c ret_val = ha->isp_ops->wr_reg_indirect(ha, MD_MIU_TEST_AGT_CTRL, ret_val 1250 drivers/scsi/qla4xxx/ql4_nx.c ret_val |= ha->isp_ops->wr_reg_indirect(ha, ret_val 1253 drivers/scsi/qla4xxx/ql4_nx.c if (ret_val == QLA_ERROR) { ret_val 1260 drivers/scsi/qla4xxx/ql4_nx.c ret_val = ha->isp_ops->rd_reg_indirect(ha, ret_val 1263 drivers/scsi/qla4xxx/ql4_nx.c if (ret_val == QLA_ERROR) { ret_val 1276 drivers/scsi/qla4xxx/ql4_nx.c ret_val = QLA_ERROR; ret_val 1285 drivers/scsi/qla4xxx/ql4_nx.c return ret_val; ret_val 56 drivers/staging/rtl8188eu/hal/odm_hwconfig.c s8 ret_val = clamp(-value, 0, 33) * 3; ret_val 58 drivers/staging/rtl8188eu/hal/odm_hwconfig.c if (ret_val == 99) ret_val 59 drivers/staging/rtl8188eu/hal/odm_hwconfig.c ret_val = 100; ret_val 61 drivers/staging/rtl8188eu/hal/odm_hwconfig.c return ret_val; ret_val 1976 drivers/staging/rtl8192e/rtl8192e/rtl_core.c s8 ret_val; ret_val 1978 drivers/staging/rtl8192e/rtl8192e/rtl_core.c ret_val = value; ret_val 1980 drivers/staging/rtl8192e/rtl8192e/rtl_core.c if (ret_val >= 0) ret_val 1981 drivers/staging/rtl8192e/rtl8192e/rtl_core.c ret_val = 0; ret_val 1982 drivers/staging/rtl8192e/rtl8192e/rtl_core.c if (ret_val <= -33) ret_val 1983 drivers/staging/rtl8192e/rtl8192e/rtl_core.c ret_val = -33; ret_val 1984 drivers/staging/rtl8192e/rtl8192e/rtl_core.c ret_val = 0 - ret_val; ret_val 1985 drivers/staging/rtl8192e/rtl8192e/rtl_core.c ret_val *= 3; ret_val 1986 drivers/staging/rtl8192e/rtl8192e/rtl_core.c if (ret_val == 99) ret_val 1987 drivers/staging/rtl8192e/rtl8192e/rtl_core.c ret_val = 100; ret_val 1988 drivers/staging/rtl8192e/rtl8192e/rtl_core.c return ret_val; ret_val 4010 drivers/staging/rtl8192u/r8192U_core.c s8 ret_val; ret_val 4012 drivers/staging/rtl8192u/r8192U_core.c ret_val = value; ret_val 4014 drivers/staging/rtl8192u/r8192U_core.c if (ret_val >= 0) ret_val 4015 drivers/staging/rtl8192u/r8192U_core.c ret_val = 0; ret_val 4016 drivers/staging/rtl8192u/r8192U_core.c if (ret_val <= -33) ret_val 4017 drivers/staging/rtl8192u/r8192U_core.c ret_val = -33; ret_val 4018 drivers/staging/rtl8192u/r8192U_core.c ret_val = 0 - ret_val; ret_val 4019 drivers/staging/rtl8192u/r8192U_core.c ret_val *= 3; ret_val 4020 drivers/staging/rtl8192u/r8192U_core.c if (ret_val == 99) ret_val 4021 drivers/staging/rtl8192u/r8192U_core.c ret_val = 100; ret_val 4022 drivers/staging/rtl8192u/r8192U_core.c return ret_val; ret_val 669 drivers/staging/rtl8712/rtl8712_recv.c s8 ret_val; ret_val 671 drivers/staging/rtl8712/rtl8712_recv.c ret_val = value; ret_val 672 drivers/staging/rtl8712/rtl8712_recv.c if (ret_val >= 0) ret_val 673 drivers/staging/rtl8712/rtl8712_recv.c ret_val = 0; ret_val 674 drivers/staging/rtl8712/rtl8712_recv.c if (ret_val <= -33) ret_val 675 drivers/staging/rtl8712/rtl8712_recv.c ret_val = -33; ret_val 676 drivers/staging/rtl8712/rtl8712_recv.c ret_val = -ret_val; ret_val 677 drivers/staging/rtl8712/rtl8712_recv.c ret_val *= 3; ret_val 678 drivers/staging/rtl8712/rtl8712_recv.c if (ret_val == 99) ret_val 679 drivers/staging/rtl8712/rtl8712_recv.c ret_val = 100; ret_val 680 drivers/staging/rtl8712/rtl8712_recv.c return ret_val; ret_val 57 drivers/staging/rtl8723bs/hal/odm_HWConfig.c s8 ret_val; ret_val 59 drivers/staging/rtl8723bs/hal/odm_HWConfig.c ret_val = Value; ret_val 60 drivers/staging/rtl8723bs/hal/odm_HWConfig.c ret_val /= 2; ret_val 65 drivers/staging/rtl8723bs/hal/odm_HWConfig.c if (ret_val >= 0) ret_val 66 drivers/staging/rtl8723bs/hal/odm_HWConfig.c ret_val = 0; ret_val 67 drivers/staging/rtl8723bs/hal/odm_HWConfig.c if (ret_val <= -33) ret_val 68 drivers/staging/rtl8723bs/hal/odm_HWConfig.c ret_val = -33; ret_val 70 drivers/staging/rtl8723bs/hal/odm_HWConfig.c ret_val = 0 - ret_val; ret_val 71 drivers/staging/rtl8723bs/hal/odm_HWConfig.c ret_val *= 3; ret_val 73 drivers/staging/rtl8723bs/hal/odm_HWConfig.c if (ret_val == 99) ret_val 74 drivers/staging/rtl8723bs/hal/odm_HWConfig.c ret_val = 100; ret_val 76 drivers/staging/rtl8723bs/hal/odm_HWConfig.c return ret_val; ret_val 141 drivers/staging/wilc1000/wilc_netdev.c u8 ret_val = 0; ret_val 145 drivers/staging/wilc1000/wilc_netdev.c ret_val++; ret_val 147 drivers/staging/wilc1000/wilc_netdev.c return ret_val; ret_val 2625 drivers/tty/cyclades.c int ret_val = 0; ret_val 2640 drivers/tty/cyclades.c ret_val = -EFAULT; ret_val 2646 drivers/tty/cyclades.c ret_val = get_threshold(info, argp); ret_val 2649 drivers/tty/cyclades.c ret_val = set_threshold(info, arg); ret_val 2652 drivers/tty/cyclades.c ret_val = put_user(info->default_threshold, ret_val 2659 drivers/tty/cyclades.c ret_val = get_timeout(info, argp); ret_val 2662 drivers/tty/cyclades.c ret_val = set_timeout(info, arg); ret_val 2665 drivers/tty/cyclades.c ret_val = put_user(info->default_timeout, ret_val 2675 drivers/tty/cyclades.c ret_val = info->rflow; ret_val 2681 drivers/tty/cyclades.c ret_val = info->rtsdtr_inv; ret_val 2684 drivers/tty/cyclades.c ret_val = info->chip_rev; ret_val 2693 drivers/tty/cyclades.c ret_val = (cyz_polling_cycle * 1000) / HZ; ret_val 2700 drivers/tty/cyclades.c ret_val = info->port.closing_wait / (HZ / 100); ret_val 2703 drivers/tty/cyclades.c ret_val = get_lsr_info(info, argp); ret_val 2716 drivers/tty/cyclades.c ret_val = wait_event_interruptible(info->port.delta_msr_wait, ret_val 2727 drivers/tty/cyclades.c ret_val = -ENOIOCTLCMD; ret_val 2733 drivers/tty/cyclades.c return ret_val; ret_val 2718 drivers/usb/dwc2/hcd.c enum dwc2_transaction_type ret_val = DWC2_TRANSACTION_NONE; ret_val 2748 drivers/usb/dwc2/hcd.c ret_val = DWC2_TRANSACTION_PERIODIC; ret_val 2783 drivers/usb/dwc2/hcd.c if (ret_val == DWC2_TRANSACTION_NONE) ret_val 2784 drivers/usb/dwc2/hcd.c ret_val = DWC2_TRANSACTION_NON_PERIODIC; ret_val 2786 drivers/usb/dwc2/hcd.c ret_val = DWC2_TRANSACTION_ALL; ret_val 2792 drivers/usb/dwc2/hcd.c return ret_val; ret_val 1599 drivers/usb/gadget/udc/dummy_hcd.c int ret_val = 1; ret_val 1613 drivers/usb/gadget/udc/dummy_hcd.c ret_val = 0; ret_val 1617 drivers/usb/gadget/udc/dummy_hcd.c ret_val = 0; ret_val 1635 drivers/usb/gadget/udc/dummy_hcd.c ret_val = -EOPNOTSUPP; ret_val 1642 drivers/usb/gadget/udc/dummy_hcd.c ret_val = -EOPNOTSUPP; ret_val 1649 drivers/usb/gadget/udc/dummy_hcd.c ret_val = -EOPNOTSUPP; ret_val 1652 drivers/usb/gadget/udc/dummy_hcd.c ret_val = -EOPNOTSUPP; ret_val 1654 drivers/usb/gadget/udc/dummy_hcd.c if (ret_val == 0) { ret_val 1662 drivers/usb/gadget/udc/dummy_hcd.c ret_val = -EOPNOTSUPP; ret_val 1666 drivers/usb/gadget/udc/dummy_hcd.c ret_val = 0; ret_val 1672 drivers/usb/gadget/udc/dummy_hcd.c ret_val = 0; ret_val 1682 drivers/usb/gadget/udc/dummy_hcd.c ret_val = -EOPNOTSUPP; ret_val 1689 drivers/usb/gadget/udc/dummy_hcd.c ret_val = -EOPNOTSUPP; ret_val 1696 drivers/usb/gadget/udc/dummy_hcd.c ret_val = -EOPNOTSUPP; ret_val 1699 drivers/usb/gadget/udc/dummy_hcd.c ret_val = -EOPNOTSUPP; ret_val 1702 drivers/usb/gadget/udc/dummy_hcd.c if (ret_val == 0) { ret_val 1710 drivers/usb/gadget/udc/dummy_hcd.c ret_val = -EOPNOTSUPP; ret_val 1715 drivers/usb/gadget/udc/dummy_hcd.c ret_val = 0; ret_val 1734 drivers/usb/gadget/udc/dummy_hcd.c ret_val = -EOPNOTSUPP; ret_val 1748 drivers/usb/gadget/udc/dummy_hcd.c ret_val = 0; ret_val 1753 drivers/usb/gadget/udc/dummy_hcd.c return ret_val; ret_val 2085 drivers/usb/gadget/udc/snps_udc_core.c irqreturn_t ret_val = IRQ_NONE; ret_val 2108 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2118 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2137 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2151 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2279 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2293 drivers/usb/gadget/udc/snps_udc_core.c return ret_val; ret_val 2299 drivers/usb/gadget/udc/snps_udc_core.c irqreturn_t ret_val = IRQ_NONE; ret_val 2320 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2332 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2339 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2378 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2445 drivers/usb/gadget/udc/snps_udc_core.c return ret_val; ret_val 2454 drivers/usb/gadget/udc/snps_udc_core.c irqreturn_t ret_val = IRQ_NONE; ret_val 2474 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2484 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2624 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2628 drivers/usb/gadget/udc/snps_udc_core.c ret_val |= udc_data_out_isr(dev, UDC_EP0OUT_IX); ret_val 2645 drivers/usb/gadget/udc/snps_udc_core.c ret_val |= udc_data_out_isr(dev, UDC_EP0OUT_IX); ret_val 2649 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2662 drivers/usb/gadget/udc/snps_udc_core.c return ret_val; ret_val 2668 drivers/usb/gadget/udc/snps_udc_core.c irqreturn_t ret_val = IRQ_NONE; ret_val 2683 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2691 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2761 drivers/usb/gadget/udc/snps_udc_core.c return ret_val; ret_val 2770 drivers/usb/gadget/udc/snps_udc_core.c irqreturn_t ret_val = IRQ_NONE; ret_val 2779 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2828 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2889 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2945 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2955 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2976 drivers/usb/gadget/udc/snps_udc_core.c ret_val = IRQ_HANDLED; ret_val 2992 drivers/usb/gadget/udc/snps_udc_core.c return ret_val; ret_val 3002 drivers/usb/gadget/udc/snps_udc_core.c irqreturn_t ret_val = IRQ_NONE; ret_val 3010 drivers/usb/gadget/udc/snps_udc_core.c ret_val |= udc_control_out_isr(dev); ret_val 3012 drivers/usb/gadget/udc/snps_udc_core.c ret_val |= udc_control_in_isr(dev); ret_val 3028 drivers/usb/gadget/udc/snps_udc_core.c ret_val |= udc_data_out_isr(dev, i); ret_val 3030 drivers/usb/gadget/udc/snps_udc_core.c ret_val |= udc_data_in_isr(dev, i); ret_val 3041 drivers/usb/gadget/udc/snps_udc_core.c ret_val |= udc_dev_isr(dev, reg); ret_val 3046 drivers/usb/gadget/udc/snps_udc_core.c return ret_val; ret_val 287 drivers/usb/serial/mos7720.c int ret_val; ret_val 326 drivers/usb/serial/mos7720.c ret_val = usb_submit_urb(urbtrack->urb, GFP_ATOMIC); ret_val 328 drivers/usb/serial/mos7720.c if (ret_val) { ret_val 329 drivers/usb/serial/mos7720.c dev_err(dev, "usb_submit_urb() failed: %d\n", ret_val); ret_val 359 drivers/usb/serial/mos7720.c int ret_val; ret_val 419 drivers/usb/serial/mos7720.c ret_val = usb_submit_urb(urbtrack->urb, GFP_ATOMIC); ret_val 421 drivers/usb/serial/mos7720.c if (ret_val) { ret_val 423 drivers/usb/serial/mos7720.c "%s: submit_urb() failed: %d\n", __func__, ret_val); ret_val 428 drivers/usb/serial/mos7720.c return ret_val; ret_val 1831 drivers/usb/serial/mos7720.c int ret_val; ret_val 1842 drivers/usb/serial/mos7720.c ret_val = mos7715_parport_init(serial); ret_val 1843 drivers/usb/serial/mos7720.c if (ret_val < 0) ret_val 1844 drivers/usb/serial/mos7720.c return ret_val; ret_val 1848 drivers/usb/serial/mos7720.c ret_val = usb_submit_urb(serial->port[0]->interrupt_in_urb, GFP_KERNEL); ret_val 1849 drivers/usb/serial/mos7720.c if (ret_val) { ret_val 1851 drivers/usb/serial/mos7720.c ret_val); ret_val 63 drivers/usb/usbip/vudc_transfer.c int ret_val = 1; ret_val 74 drivers/usb/usbip/vudc_transfer.c ret_val = 0; ret_val 79 drivers/usb/usbip/vudc_transfer.c ret_val = 0; ret_val 93 drivers/usb/usbip/vudc_transfer.c ret_val = -EOPNOTSUPP; ret_val 95 drivers/usb/usbip/vudc_transfer.c if (ret_val == 0) { ret_val 103 drivers/usb/usbip/vudc_transfer.c ret_val = -EOPNOTSUPP; ret_val 107 drivers/usb/usbip/vudc_transfer.c ret_val = 0; ret_val 113 drivers/usb/usbip/vudc_transfer.c ret_val = 0; ret_val 122 drivers/usb/usbip/vudc_transfer.c ret_val = -EOPNOTSUPP; ret_val 125 drivers/usb/usbip/vudc_transfer.c ret_val = -EOPNOTSUPP; ret_val 128 drivers/usb/usbip/vudc_transfer.c if (ret_val == 0) { ret_val 136 drivers/usb/usbip/vudc_transfer.c ret_val = -EOPNOTSUPP; ret_val 141 drivers/usb/usbip/vudc_transfer.c ret_val = 0; ret_val 160 drivers/usb/usbip/vudc_transfer.c ret_val = -EOPNOTSUPP; ret_val 174 drivers/usb/usbip/vudc_transfer.c ret_val = 0; ret_val 179 drivers/usb/usbip/vudc_transfer.c return ret_val; ret_val 564 drivers/video/backlight/adp8860_bl.c uint16_t ret_val; ret_val 569 drivers/video/backlight/adp8860_bl.c ret_val = reg_val; ret_val 578 drivers/video/backlight/adp8860_bl.c ret_val += (reg_val & 0x1F) << 8; ret_val 580 drivers/video/backlight/adp8860_bl.c return sprintf(buf, "%u\n", ret_val); ret_val 746 drivers/video/backlight/adp8870_bl.c uint16_t ret_val; ret_val 754 drivers/video/backlight/adp8870_bl.c ret_val = reg_val; ret_val 762 drivers/video/backlight/adp8870_bl.c ret_val += (reg_val & 0x1F) << 8; ret_val 764 drivers/video/backlight/adp8870_bl.c return sprintf(buf, "%u\n", ret_val); ret_val 146 drivers/xen/xen-pciback/conf_space.c u32 *ret_val) ret_val 202 drivers/xen/xen-pciback/conf_space.c *ret_val = value; ret_val 80 drivers/xen/xen-pciback/pciback.h u32 *ret_val); ret_val 4622 mm/memory.c unsigned long ret_val = pages_per_huge_page * PAGE_SIZE; ret_val 4637 mm/memory.c ret_val -= (PAGE_SIZE - rc); ret_val 4643 mm/memory.c return ret_val; ret_val 300 net/ipv4/cipso_ipv4.c int ret_val = -EPERM; ret_val 316 net/ipv4/cipso_ipv4.c ret_val = -ENOMEM; ret_val 343 net/ipv4/cipso_ipv4.c return ret_val; ret_val 385 net/ipv4/cipso_ipv4.c int ret_val = -EINVAL; ret_val 423 net/ipv4/cipso_ipv4.c ret_val = -EEXIST; ret_val 428 net/ipv4/cipso_ipv4.c ret_val = 0; ret_val 449 net/ipv4/cipso_ipv4.c doi, type_str, ret_val == 0 ? 1 : 0); ret_val 453 net/ipv4/cipso_ipv4.c return ret_val; ret_val 511 net/ipv4/cipso_ipv4.c int ret_val; ret_val 519 net/ipv4/cipso_ipv4.c ret_val = -ENOENT; ret_val 524 net/ipv4/cipso_ipv4.c ret_val = -EBUSY; ret_val 532 net/ipv4/cipso_ipv4.c ret_val = 0; ret_val 539 net/ipv4/cipso_ipv4.c doi, ret_val == 0 ? 1 : 0); ret_val 543 net/ipv4/cipso_ipv4.c return ret_val; ret_val 613 net/ipv4/cipso_ipv4.c int ret_val = -ENOENT; ret_val 622 net/ipv4/cipso_ipv4.c ret_val = callback(iter_doi, cb_arg); ret_val 623 net/ipv4/cipso_ipv4.c if (ret_val < 0) { ret_val 632 net/ipv4/cipso_ipv4.c return ret_val; ret_val 858 net/ipv4/cipso_ipv4.c int ret_val; ret_val 893 net/ipv4/cipso_ipv4.c ret_val = netlbl_catmap_setbit(&secattr->attr.mls.cat, ret_val 896 net/ipv4/cipso_ipv4.c if (ret_val != 0) ret_val 897 net/ipv4/cipso_ipv4.c return ret_val; ret_val 990 net/ipv4/cipso_ipv4.c int ret_val; ret_val 994 net/ipv4/cipso_ipv4.c ret_val = netlbl_catmap_setbit(&secattr->attr.mls.cat, ret_val 997 net/ipv4/cipso_ipv4.c if (ret_val != 0) ret_val 998 net/ipv4/cipso_ipv4.c return ret_val; ret_val 1122 net/ipv4/cipso_ipv4.c int ret_val; ret_val 1134 net/ipv4/cipso_ipv4.c ret_val = netlbl_catmap_setrng(&secattr->attr.mls.cat, ret_val 1138 net/ipv4/cipso_ipv4.c if (ret_val != 0) ret_val 1139 net/ipv4/cipso_ipv4.c return ret_val; ret_val 1187 net/ipv4/cipso_ipv4.c int ret_val; ret_val 1194 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_map_lvl_hton(doi_def, ret_val 1197 net/ipv4/cipso_ipv4.c if (ret_val != 0) ret_val 1198 net/ipv4/cipso_ipv4.c return ret_val; ret_val 1201 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_map_cat_rbm_hton(doi_def, ret_val 1205 net/ipv4/cipso_ipv4.c if (ret_val < 0) ret_val 1206 net/ipv4/cipso_ipv4.c return ret_val; ret_val 1211 net/ipv4/cipso_ipv4.c if (cipso_v4_rbm_optfmt && ret_val > 0 && ret_val <= 10) ret_val 1214 net/ipv4/cipso_ipv4.c tag_len = 4 + ret_val; ret_val 1241 net/ipv4/cipso_ipv4.c int ret_val; ret_val 1245 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level); ret_val 1246 net/ipv4/cipso_ipv4.c if (ret_val != 0) ret_val 1247 net/ipv4/cipso_ipv4.c return ret_val; ret_val 1252 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_map_cat_rbm_ntoh(doi_def, ret_val 1256 net/ipv4/cipso_ipv4.c if (ret_val != 0) { ret_val 1258 net/ipv4/cipso_ipv4.c return ret_val; ret_val 1285 net/ipv4/cipso_ipv4.c int ret_val; ret_val 1292 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_map_lvl_hton(doi_def, ret_val 1295 net/ipv4/cipso_ipv4.c if (ret_val != 0) ret_val 1296 net/ipv4/cipso_ipv4.c return ret_val; ret_val 1299 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_map_cat_enum_hton(doi_def, ret_val 1303 net/ipv4/cipso_ipv4.c if (ret_val < 0) ret_val 1304 net/ipv4/cipso_ipv4.c return ret_val; ret_val 1306 net/ipv4/cipso_ipv4.c tag_len = 4 + ret_val; ret_val 1333 net/ipv4/cipso_ipv4.c int ret_val; ret_val 1337 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level); ret_val 1338 net/ipv4/cipso_ipv4.c if (ret_val != 0) ret_val 1339 net/ipv4/cipso_ipv4.c return ret_val; ret_val 1344 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_map_cat_enum_ntoh(doi_def, ret_val 1348 net/ipv4/cipso_ipv4.c if (ret_val != 0) { ret_val 1350 net/ipv4/cipso_ipv4.c return ret_val; ret_val 1376 net/ipv4/cipso_ipv4.c int ret_val; ret_val 1383 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_map_lvl_hton(doi_def, ret_val 1386 net/ipv4/cipso_ipv4.c if (ret_val != 0) ret_val 1387 net/ipv4/cipso_ipv4.c return ret_val; ret_val 1390 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_map_cat_rng_hton(doi_def, ret_val 1394 net/ipv4/cipso_ipv4.c if (ret_val < 0) ret_val 1395 net/ipv4/cipso_ipv4.c return ret_val; ret_val 1397 net/ipv4/cipso_ipv4.c tag_len = 4 + ret_val; ret_val 1423 net/ipv4/cipso_ipv4.c int ret_val; ret_val 1427 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_map_lvl_ntoh(doi_def, tag[3], &level); ret_val 1428 net/ipv4/cipso_ipv4.c if (ret_val != 0) ret_val 1429 net/ipv4/cipso_ipv4.c return ret_val; ret_val 1434 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_map_cat_rng_ntoh(doi_def, ret_val 1438 net/ipv4/cipso_ipv4.c if (ret_val != 0) { ret_val 1440 net/ipv4/cipso_ipv4.c return ret_val; ret_val 1771 net/ipv4/cipso_ipv4.c int ret_val; ret_val 1785 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_gentag_rbm(doi_def, ret_val 1791 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_gentag_enum(doi_def, ret_val 1797 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_gentag_rng(doi_def, ret_val 1803 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_gentag_loc(doi_def, ret_val 1813 net/ipv4/cipso_ipv4.c } while (ret_val < 0 && ret_val 1816 net/ipv4/cipso_ipv4.c if (ret_val < 0) ret_val 1817 net/ipv4/cipso_ipv4.c return ret_val; ret_val 1818 net/ipv4/cipso_ipv4.c cipso_v4_gentag_hdr(doi_def, buf, ret_val); ret_val 1819 net/ipv4/cipso_ipv4.c return CIPSO_V4_HDR_LEN + ret_val; ret_val 1840 net/ipv4/cipso_ipv4.c int ret_val = -EPERM; ret_val 1861 net/ipv4/cipso_ipv4.c ret_val = -ENOMEM; ret_val 1865 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_genopt(buf, buf_len, doi_def, secattr); ret_val 1866 net/ipv4/cipso_ipv4.c if (ret_val < 0) ret_val 1868 net/ipv4/cipso_ipv4.c buf_len = ret_val; ret_val 1877 net/ipv4/cipso_ipv4.c ret_val = -ENOMEM; ret_val 1906 net/ipv4/cipso_ipv4.c return ret_val; ret_val 1925 net/ipv4/cipso_ipv4.c int ret_val = -EPERM; ret_val 1938 net/ipv4/cipso_ipv4.c ret_val = -ENOMEM; ret_val 1942 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_genopt(buf, buf_len, doi_def, secattr); ret_val 1943 net/ipv4/cipso_ipv4.c if (ret_val < 0) ret_val 1945 net/ipv4/cipso_ipv4.c buf_len = ret_val; ret_val 1954 net/ipv4/cipso_ipv4.c ret_val = -ENOMEM; ret_val 1973 net/ipv4/cipso_ipv4.c return ret_val; ret_val 2093 net/ipv4/cipso_ipv4.c int ret_val = -ENOMSG; ret_val 2110 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_parsetag_rbm(doi_def, &cipso[6], secattr); ret_val 2113 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_parsetag_enum(doi_def, &cipso[6], secattr); ret_val 2116 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_parsetag_rng(doi_def, &cipso[6], secattr); ret_val 2119 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_parsetag_loc(doi_def, &cipso[6], secattr); ret_val 2122 net/ipv4/cipso_ipv4.c if (ret_val == 0) ret_val 2127 net/ipv4/cipso_ipv4.c return ret_val; ret_val 2172 net/ipv4/cipso_ipv4.c int ret_val; ret_val 2180 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_genopt(buf, buf_len, doi_def, secattr); ret_val 2181 net/ipv4/cipso_ipv4.c if (ret_val < 0) ret_val 2182 net/ipv4/cipso_ipv4.c return ret_val; ret_val 2183 net/ipv4/cipso_ipv4.c buf_len = ret_val; ret_val 2196 net/ipv4/cipso_ipv4.c ret_val = skb_cow(skb, skb_headroom(skb) + len_delta); ret_val 2197 net/ipv4/cipso_ipv4.c if (ret_val < 0) ret_val 2198 net/ipv4/cipso_ipv4.c return ret_val; ret_val 2248 net/ipv4/cipso_ipv4.c int ret_val; ret_val 2257 net/ipv4/cipso_ipv4.c ret_val = skb_cow(skb, skb_headroom(skb)); ret_val 2258 net/ipv4/cipso_ipv4.c if (ret_val < 0) ret_val 2259 net/ipv4/cipso_ipv4.c return ret_val; ret_val 2290 net/ipv4/cipso_ipv4.c int ret_val; ret_val 2292 net/ipv4/cipso_ipv4.c ret_val = cipso_v4_cache_init(); ret_val 2293 net/ipv4/cipso_ipv4.c if (ret_val != 0) ret_val 2295 net/ipv4/cipso_ipv4.c ret_val); ret_val 264 net/ipv6/calipso.c int ret_val = -EPERM; ret_val 280 net/ipv6/calipso.c ret_val = -ENOMEM; ret_val 307 net/ipv6/calipso.c return ret_val; ret_val 348 net/ipv6/calipso.c int ret_val = -EINVAL; ret_val 364 net/ipv6/calipso.c ret_val = -EEXIST; ret_val 369 net/ipv6/calipso.c ret_val = 0; ret_val 385 net/ipv6/calipso.c doi, type_str, ret_val == 0 ? 1 : 0); ret_val 389 net/ipv6/calipso.c return ret_val; ret_val 436 net/ipv6/calipso.c int ret_val; ret_val 444 net/ipv6/calipso.c ret_val = -ENOENT; ret_val 449 net/ipv6/calipso.c ret_val = -EBUSY; ret_val 456 net/ipv6/calipso.c ret_val = 0; ret_val 463 net/ipv6/calipso.c doi, ret_val == 0 ? 1 : 0); ret_val 467 net/ipv6/calipso.c return ret_val; ret_val 536 net/ipv6/calipso.c int ret_val = -ENOENT; ret_val 545 net/ipv6/calipso.c ret_val = callback(iter_doi, cb_arg); ret_val 546 net/ipv6/calipso.c if (ret_val < 0) { ret_val 555 net/ipv6/calipso.c return ret_val; ret_val 577 net/ipv6/calipso.c bool ret_val; ret_val 593 net/ipv6/calipso.c ret_val = !!doi_def; ret_val 596 net/ipv6/calipso.c return ret_val; ret_val 655 net/ipv6/calipso.c int ret_val; ret_val 670 net/ipv6/calipso.c ret_val = netlbl_catmap_setbit(&secattr->attr.mls.cat, ret_val 673 net/ipv6/calipso.c if (ret_val != 0) ret_val 674 net/ipv6/calipso.c return ret_val; ret_val 731 net/ipv6/calipso.c int ret_val; ret_val 748 net/ipv6/calipso.c ret_val = calipso_map_cat_hton(doi_def, ret_val 752 net/ipv6/calipso.c if (ret_val < 0) ret_val 753 net/ipv6/calipso.c return ret_val; ret_val 754 net/ipv6/calipso.c len += ret_val; ret_val 853 net/ipv6/calipso.c int ret_val = -ENOENT, tlv_len; ret_val 872 net/ipv6/calipso.c ret_val = 0; ret_val 894 net/ipv6/calipso.c return ret_val; ret_val 918 net/ipv6/calipso.c int ret_val; ret_val 922 net/ipv6/calipso.c ret_val = calipso_opt_find(hop, &start, &end); ret_val 923 net/ipv6/calipso.c if (ret_val && ret_val != -ENOENT) ret_val 924 net/ipv6/calipso.c return ERR_PTR(ret_val); ret_val 938 net/ipv6/calipso.c ret_val = calipso_genopt((unsigned char *)new, start, buf_len, doi_def, ret_val 940 net/ipv6/calipso.c if (ret_val < 0) { ret_val 942 net/ipv6/calipso.c return ERR_PTR(ret_val); ret_val 945 net/ipv6/calipso.c buf_len = start + ret_val; ret_val 978 net/ipv6/calipso.c int ret_val; ret_val 981 net/ipv6/calipso.c ret_val = calipso_opt_find(hop, &start, &end); ret_val 982 net/ipv6/calipso.c if (ret_val) ret_val 983 net/ipv6/calipso.c return ret_val; ret_val 1021 net/ipv6/calipso.c int ret_val = -ENOMSG; ret_val 1041 net/ipv6/calipso.c ret_val = calipso_map_cat_ntoh(doi_def, ret_val 1045 net/ipv6/calipso.c if (ret_val != 0) { ret_val 1058 net/ipv6/calipso.c return ret_val; ret_val 1080 net/ipv6/calipso.c int opt_len, len, ret_val = -ENOMSG, offset; ret_val 1094 net/ipv6/calipso.c ret_val = len; ret_val 1100 net/ipv6/calipso.c ret_val = -EINVAL; ret_val 1102 net/ipv6/calipso.c ret_val = calipso_opt_getattr(&opt[offset], ret_val 1112 net/ipv6/calipso.c return ret_val; ret_val 1133 net/ipv6/calipso.c int ret_val; ret_val 1146 net/ipv6/calipso.c ret_val = calipso_opt_update(sk, new); ret_val 1149 net/ipv6/calipso.c return ret_val; ret_val 1302 net/ipv6/calipso.c int ret_val; ret_val 1312 net/ipv6/calipso.c ret_val = calipso_opt_find(hop, &start, &end); ret_val 1313 net/ipv6/calipso.c if (ret_val && ret_val != -ENOENT) ret_val 1314 net/ipv6/calipso.c return ret_val; ret_val 1321 net/ipv6/calipso.c ret_val = calipso_genopt(buf, start & 3, sizeof(buf), doi_def, secattr); ret_val 1322 net/ipv6/calipso.c if (ret_val < 0) ret_val 1323 net/ipv6/calipso.c return ret_val; ret_val 1325 net/ipv6/calipso.c new_end = start + ret_val; ret_val 1329 net/ipv6/calipso.c ret_val = skb_cow(skb, skb_headroom(skb) + len_delta); ret_val 1330 net/ipv6/calipso.c if (ret_val < 0) ret_val 1331 net/ipv6/calipso.c return ret_val; ret_val 1375 net/ipv6/calipso.c int ret_val; ret_val 1384 net/ipv6/calipso.c ret_val = skb_cow(skb, skb_headroom(skb)); ret_val 1385 net/ipv6/calipso.c if (ret_val < 0) ret_val 1386 net/ipv6/calipso.c return ret_val; ret_val 1392 net/ipv6/calipso.c ret_val = calipso_opt_find(old_hop, &start, &end); ret_val 1393 net/ipv6/calipso.c if (ret_val) ret_val 1394 net/ipv6/calipso.c return ret_val; ret_val 1450 net/ipv6/calipso.c int ret_val; ret_val 1452 net/ipv6/calipso.c ret_val = calipso_cache_init(); ret_val 1453 net/ipv6/calipso.c if (!ret_val) ret_val 1455 net/ipv6/calipso.c return ret_val; ret_val 73 net/netlabel/netlabel_calipso.c int ret_val; ret_val 81 net/netlabel/netlabel_calipso.c ret_val = calipso_doi_add(doi_def, audit_info); ret_val 82 net/netlabel/netlabel_calipso.c if (ret_val != 0) ret_val 85 net/netlabel/netlabel_calipso.c return ret_val; ret_val 101 net/netlabel/netlabel_calipso.c int ret_val = -EINVAL; ret_val 111 net/netlabel/netlabel_calipso.c ret_val = netlbl_calipso_add_pass(info, &audit_info); ret_val 114 net/netlabel/netlabel_calipso.c if (ret_val == 0) ret_val 117 net/netlabel/netlabel_calipso.c return ret_val; ret_val 132 net/netlabel/netlabel_calipso.c int ret_val; ret_val 139 net/netlabel/netlabel_calipso.c ret_val = -EINVAL; ret_val 147 net/netlabel/netlabel_calipso.c ret_val = -EINVAL; ret_val 153 net/netlabel/netlabel_calipso.c ret_val = -ENOMEM; ret_val 159 net/netlabel/netlabel_calipso.c ret_val = -ENOMEM; ret_val 163 net/netlabel/netlabel_calipso.c ret_val = nla_put_u32(ans_skb, NLBL_CALIPSO_A_MTYPE, doi_def->type); ret_val 164 net/netlabel/netlabel_calipso.c if (ret_val != 0) ret_val 176 net/netlabel/netlabel_calipso.c return ret_val; ret_val 193 net/netlabel/netlabel_calipso.c int ret_val = -ENOMEM; ret_val 203 net/netlabel/netlabel_calipso.c ret_val = nla_put_u32(cb_arg->skb, NLBL_CALIPSO_A_DOI, doi_def->doi); ret_val 204 net/netlabel/netlabel_calipso.c if (ret_val != 0) ret_val 206 net/netlabel/netlabel_calipso.c ret_val = nla_put_u32(cb_arg->skb, ret_val 209 net/netlabel/netlabel_calipso.c if (ret_val != 0) ret_val 217 net/netlabel/netlabel_calipso.c return ret_val; ret_val 281 net/netlabel/netlabel_calipso.c int ret_val = -EINVAL; ret_val 293 net/netlabel/netlabel_calipso.c ret_val = netlbl_domhsh_walk(&skip_bkt, &skip_chain, ret_val 295 net/netlabel/netlabel_calipso.c if (ret_val == 0 || ret_val == -ENOENT) { ret_val 296 net/netlabel/netlabel_calipso.c ret_val = calipso_doi_remove(cb_arg.doi, &audit_info); ret_val 297 net/netlabel/netlabel_calipso.c if (ret_val == 0) ret_val 301 net/netlabel/netlabel_calipso.c return ret_val; ret_val 402 net/netlabel/netlabel_calipso.c int ret_val = -ENOMSG; ret_val 406 net/netlabel/netlabel_calipso.c ret_val = ops->doi_add(doi_def, audit_info); ret_val 407 net/netlabel/netlabel_calipso.c return ret_val; ret_val 439 net/netlabel/netlabel_calipso.c int ret_val = -ENOMSG; ret_val 443 net/netlabel/netlabel_calipso.c ret_val = ops->doi_remove(doi, audit_info); ret_val 444 net/netlabel/netlabel_calipso.c return ret_val; ret_val 459 net/netlabel/netlabel_calipso.c struct calipso_doi *ret_val = NULL; ret_val 463 net/netlabel/netlabel_calipso.c ret_val = ops->doi_getdef(doi); ret_val 464 net/netlabel/netlabel_calipso.c return ret_val; ret_val 500 net/netlabel/netlabel_calipso.c int ret_val = -ENOMSG; ret_val 504 net/netlabel/netlabel_calipso.c ret_val = ops->doi_walk(skip_cnt, callback, cb_arg); ret_val 505 net/netlabel/netlabel_calipso.c return ret_val; ret_val 522 net/netlabel/netlabel_calipso.c int ret_val = -ENOMSG; ret_val 526 net/netlabel/netlabel_calipso.c ret_val = ops->sock_getattr(sk, secattr); ret_val 527 net/netlabel/netlabel_calipso.c return ret_val; ret_val 548 net/netlabel/netlabel_calipso.c int ret_val = -ENOMSG; ret_val 552 net/netlabel/netlabel_calipso.c ret_val = ops->sock_setattr(sk, doi_def, secattr); ret_val 553 net/netlabel/netlabel_calipso.c return ret_val; ret_val 588 net/netlabel/netlabel_calipso.c int ret_val = -ENOMSG; ret_val 592 net/netlabel/netlabel_calipso.c ret_val = ops->req_setattr(req, doi_def, secattr); ret_val 593 net/netlabel/netlabel_calipso.c return ret_val; ret_val 623 net/netlabel/netlabel_calipso.c unsigned char *ret_val = NULL; ret_val 627 net/netlabel/netlabel_calipso.c ret_val = ops->skbuff_optptr(skb); ret_val 628 net/netlabel/netlabel_calipso.c return ret_val; ret_val 644 net/netlabel/netlabel_calipso.c int ret_val = -ENOMSG; ret_val 648 net/netlabel/netlabel_calipso.c ret_val = ops->opt_getattr(calipso, secattr); ret_val 649 net/netlabel/netlabel_calipso.c return ret_val; ret_val 667 net/netlabel/netlabel_calipso.c int ret_val = -ENOMSG; ret_val 671 net/netlabel/netlabel_calipso.c ret_val = ops->skbuff_setattr(skb, doi_def, secattr); ret_val 672 net/netlabel/netlabel_calipso.c return ret_val; ret_val 686 net/netlabel/netlabel_calipso.c int ret_val = -ENOMSG; ret_val 690 net/netlabel/netlabel_calipso.c ret_val = ops->skbuff_delattr(skb); ret_val 691 net/netlabel/netlabel_calipso.c return ret_val; ret_val 724 net/netlabel/netlabel_calipso.c int ret_val = -ENOMSG; ret_val 728 net/netlabel/netlabel_calipso.c ret_val = ops->cache_add(calipso_ptr, secattr); ret_val 729 net/netlabel/netlabel_calipso.c return ret_val; ret_val 124 net/netlabel/netlabel_cipso_v4.c int ret_val = -EINVAL; ret_val 147 net/netlabel/netlabel_cipso_v4.c ret_val = -ENOMEM; ret_val 152 net/netlabel/netlabel_cipso_v4.c ret_val = netlbl_cipsov4_add_common(info, doi_def); ret_val 153 net/netlabel/netlabel_cipso_v4.c if (ret_val != 0) ret_val 155 net/netlabel/netlabel_cipso_v4.c ret_val = -EINVAL; ret_val 192 net/netlabel/netlabel_cipso_v4.c ret_val = -ENOMEM; ret_val 199 net/netlabel/netlabel_cipso_v4.c ret_val = -ENOMEM; ret_val 268 net/netlabel/netlabel_cipso_v4.c ret_val = -ENOMEM; ret_val 276 net/netlabel/netlabel_cipso_v4.c ret_val = -ENOMEM; ret_val 305 net/netlabel/netlabel_cipso_v4.c ret_val = cipso_v4_doi_add(doi_def, audit_info); ret_val 306 net/netlabel/netlabel_cipso_v4.c if (ret_val != 0) ret_val 312 net/netlabel/netlabel_cipso_v4.c return ret_val; ret_val 329 net/netlabel/netlabel_cipso_v4.c int ret_val; ret_val 340 net/netlabel/netlabel_cipso_v4.c ret_val = netlbl_cipsov4_add_common(info, doi_def); ret_val 341 net/netlabel/netlabel_cipso_v4.c if (ret_val != 0) ret_val 344 net/netlabel/netlabel_cipso_v4.c ret_val = cipso_v4_doi_add(doi_def, audit_info); ret_val 345 net/netlabel/netlabel_cipso_v4.c if (ret_val != 0) ret_val 351 net/netlabel/netlabel_cipso_v4.c return ret_val; ret_val 368 net/netlabel/netlabel_cipso_v4.c int ret_val; ret_val 379 net/netlabel/netlabel_cipso_v4.c ret_val = netlbl_cipsov4_add_common(info, doi_def); ret_val 380 net/netlabel/netlabel_cipso_v4.c if (ret_val != 0) ret_val 383 net/netlabel/netlabel_cipso_v4.c ret_val = cipso_v4_doi_add(doi_def, audit_info); ret_val 384 net/netlabel/netlabel_cipso_v4.c if (ret_val != 0) ret_val 390 net/netlabel/netlabel_cipso_v4.c return ret_val; ret_val 406 net/netlabel/netlabel_cipso_v4.c int ret_val = -EINVAL; ret_val 416 net/netlabel/netlabel_cipso_v4.c ret_val = netlbl_cipsov4_add_std(info, &audit_info); ret_val 419 net/netlabel/netlabel_cipso_v4.c ret_val = netlbl_cipsov4_add_pass(info, &audit_info); ret_val 422 net/netlabel/netlabel_cipso_v4.c ret_val = netlbl_cipsov4_add_local(info, &audit_info); ret_val 425 net/netlabel/netlabel_cipso_v4.c if (ret_val == 0) ret_val 428 net/netlabel/netlabel_cipso_v4.c return ret_val; ret_val 450 net/netlabel/netlabel_cipso_v4.c int ret_val; ret_val 461 net/netlabel/netlabel_cipso_v4.c ret_val = -EINVAL; ret_val 468 net/netlabel/netlabel_cipso_v4.c ret_val = -ENOMEM; ret_val 474 net/netlabel/netlabel_cipso_v4.c ret_val = -ENOMEM; ret_val 483 net/netlabel/netlabel_cipso_v4.c ret_val = -EINVAL; ret_val 487 net/netlabel/netlabel_cipso_v4.c ret_val = nla_put_u32(ans_skb, NLBL_CIPSOV4_A_MTYPE, doi_def->type); ret_val 488 net/netlabel/netlabel_cipso_v4.c if (ret_val != 0) ret_val 493 net/netlabel/netlabel_cipso_v4.c ret_val = -ENOMEM; ret_val 500 net/netlabel/netlabel_cipso_v4.c ret_val = nla_put_u8(ans_skb, ret_val 503 net/netlabel/netlabel_cipso_v4.c if (ret_val != 0) ret_val 513 net/netlabel/netlabel_cipso_v4.c ret_val = -ENOMEM; ret_val 526 net/netlabel/netlabel_cipso_v4.c ret_val = -ENOMEM; ret_val 529 net/netlabel/netlabel_cipso_v4.c ret_val = nla_put_u32(ans_skb, ret_val 532 net/netlabel/netlabel_cipso_v4.c if (ret_val != 0) ret_val 534 net/netlabel/netlabel_cipso_v4.c ret_val = nla_put_u32(ans_skb, ret_val 537 net/netlabel/netlabel_cipso_v4.c if (ret_val != 0) ret_val 546 net/netlabel/netlabel_cipso_v4.c ret_val = -ENOMEM; ret_val 559 net/netlabel/netlabel_cipso_v4.c ret_val = -ENOMEM; ret_val 562 net/netlabel/netlabel_cipso_v4.c ret_val = nla_put_u32(ans_skb, ret_val 565 net/netlabel/netlabel_cipso_v4.c if (ret_val != 0) ret_val 567 net/netlabel/netlabel_cipso_v4.c ret_val = nla_put_u32(ans_skb, ret_val 570 net/netlabel/netlabel_cipso_v4.c if (ret_val != 0) ret_val 595 net/netlabel/netlabel_cipso_v4.c return ret_val; ret_val 612 net/netlabel/netlabel_cipso_v4.c int ret_val = -ENOMEM; ret_val 622 net/netlabel/netlabel_cipso_v4.c ret_val = nla_put_u32(cb_arg->skb, NLBL_CIPSOV4_A_DOI, doi_def->doi); ret_val 623 net/netlabel/netlabel_cipso_v4.c if (ret_val != 0) ret_val 625 net/netlabel/netlabel_cipso_v4.c ret_val = nla_put_u32(cb_arg->skb, ret_val 628 net/netlabel/netlabel_cipso_v4.c if (ret_val != 0) ret_val 636 net/netlabel/netlabel_cipso_v4.c return ret_val; ret_val 700 net/netlabel/netlabel_cipso_v4.c int ret_val = -EINVAL; ret_val 712 net/netlabel/netlabel_cipso_v4.c ret_val = netlbl_domhsh_walk(&skip_bkt, &skip_chain, ret_val 714 net/netlabel/netlabel_cipso_v4.c if (ret_val == 0 || ret_val == -ENOENT) { ret_val 715 net/netlabel/netlabel_cipso_v4.c ret_val = cipso_v4_doi_remove(cb_arg.doi, &audit_info); ret_val 716 net/netlabel/netlabel_cipso_v4.c if (ret_val == 0) ret_val 720 net/netlabel/netlabel_cipso_v4.c return ret_val; ret_val 406 net/netlabel/netlabel_domainhash.c int ret_val = 0; ret_val 415 net/netlabel/netlabel_domainhash.c ret_val = netlbl_domhsh_validate(entry); ret_val 416 net/netlabel/netlabel_domainhash.c if (ret_val != 0) ret_val 417 net/netlabel/netlabel_domainhash.c return ret_val; ret_val 451 net/netlabel/netlabel_domainhash.c ret_val = -EINVAL; ret_val 456 net/netlabel/netlabel_domainhash.c ret_val = -ENOMEM; ret_val 471 net/netlabel/netlabel_domainhash.c ret_val = -EINVAL; ret_val 480 net/netlabel/netlabel_domainhash.c ret_val, audit_info); ret_val 485 net/netlabel/netlabel_domainhash.c ret_val, audit_info); ret_val 489 net/netlabel/netlabel_domainhash.c ret_val, audit_info); ret_val 504 net/netlabel/netlabel_domainhash.c ret_val = -EEXIST; ret_val 512 net/netlabel/netlabel_domainhash.c ret_val = -EEXIST; ret_val 521 net/netlabel/netlabel_domainhash.c ret_val = netlbl_af4list_add(iter4, old_list4); ret_val 523 net/netlabel/netlabel_domainhash.c ret_val, audit_info); ret_val 524 net/netlabel/netlabel_domainhash.c if (ret_val != 0) ret_val 532 net/netlabel/netlabel_domainhash.c ret_val = netlbl_af6list_add(iter6, old_list6); ret_val 534 net/netlabel/netlabel_domainhash.c ret_val, audit_info); ret_val 535 net/netlabel/netlabel_domainhash.c if (ret_val != 0) ret_val 540 net/netlabel/netlabel_domainhash.c ret_val = -EINVAL; ret_val 545 net/netlabel/netlabel_domainhash.c return ret_val; ret_val 580 net/netlabel/netlabel_domainhash.c int ret_val = 0; ret_val 596 net/netlabel/netlabel_domainhash.c ret_val = -ENOENT; ret_val 604 net/netlabel/netlabel_domainhash.c ret_val == 0 ? 1 : 0); ret_val 608 net/netlabel/netlabel_domainhash.c if (ret_val == 0) { ret_val 643 net/netlabel/netlabel_domainhash.c return ret_val; ret_val 796 net/netlabel/netlabel_domainhash.c int ret_val = -EINVAL; ret_val 806 net/netlabel/netlabel_domainhash.c ret_val = netlbl_domhsh_remove_entry(entry, audit_info); ret_val 807 net/netlabel/netlabel_domainhash.c if (ret_val && ret_val != -ENOENT) ret_val 819 net/netlabel/netlabel_domainhash.c ret_val = ret_val2; ret_val 824 net/netlabel/netlabel_domainhash.c return ret_val; ret_val 943 net/netlabel/netlabel_domainhash.c int ret_val = -ENOENT; ret_val 958 net/netlabel/netlabel_domainhash.c ret_val = callback(iter_entry, cb_arg); ret_val 959 net/netlabel/netlabel_domainhash.c if (ret_val < 0) { ret_val 970 net/netlabel/netlabel_domainhash.c return ret_val; ret_val 101 net/netlabel/netlabel_kapi.c int ret_val = -ENOMEM; ret_val 137 net/netlabel/netlabel_kapi.c ret_val = netlbl_af4list_add(&map4->list, ret_val 139 net/netlabel/netlabel_kapi.c if (ret_val != 0) ret_val 158 net/netlabel/netlabel_kapi.c ret_val = netlbl_af6list_add(&map6->list, ret_val 160 net/netlabel/netlabel_kapi.c if (ret_val != 0) ret_val 172 net/netlabel/netlabel_kapi.c ret_val = -EINVAL; ret_val 176 net/netlabel/netlabel_kapi.c ret_val = netlbl_domhsh_add(entry, audit_info); ret_val 177 net/netlabel/netlabel_kapi.c if (ret_val != 0) ret_val 188 net/netlabel/netlabel_kapi.c return ret_val; ret_val 329 net/netlabel/netlabel_kapi.c int ret_val = -ENOMEM; ret_val 367 net/netlabel/netlabel_kapi.c ret_val = netlbl_af4list_add(&addrinfo->list, &addrmap->list4); ret_val 368 net/netlabel/netlabel_kapi.c if (ret_val != 0) ret_val 374 net/netlabel/netlabel_kapi.c ret_val = -EINVAL; ret_val 378 net/netlabel/netlabel_kapi.c ret_val = netlbl_domhsh_add(entry, audit_info); ret_val 379 net/netlabel/netlabel_kapi.c if (ret_val != 0) ret_val 394 net/netlabel/netlabel_kapi.c return ret_val; ret_val 455 net/netlabel/netlabel_kapi.c int ret_val = -ENOMEM; ret_val 497 net/netlabel/netlabel_kapi.c ret_val = netlbl_af6list_add(&addrinfo->list, &addrmap->list6); ret_val 498 net/netlabel/netlabel_kapi.c if (ret_val != 0) ret_val 504 net/netlabel/netlabel_kapi.c ret_val = -EINVAL; ret_val 508 net/netlabel/netlabel_kapi.c ret_val = netlbl_domhsh_add(entry, audit_info); ret_val 509 net/netlabel/netlabel_kapi.c if (ret_val != 0) ret_val 524 net/netlabel/netlabel_kapi.c return ret_val; ret_val 979 net/netlabel/netlabel_kapi.c int ret_val; ret_val 985 net/netlabel/netlabel_kapi.c ret_val = -ENOENT; ret_val 992 net/netlabel/netlabel_kapi.c ret_val = -EDESTADDRREQ; ret_val 995 net/netlabel/netlabel_kapi.c ret_val = cipso_v4_sock_setattr(sk, ret_val 1000 net/netlabel/netlabel_kapi.c ret_val = 0; ret_val 1003 net/netlabel/netlabel_kapi.c ret_val = -ENOENT; ret_val 1010 net/netlabel/netlabel_kapi.c ret_val = -EDESTADDRREQ; ret_val 1013 net/netlabel/netlabel_kapi.c ret_val = calipso_sock_setattr(sk, ret_val 1018 net/netlabel/netlabel_kapi.c ret_val = 0; ret_val 1021 net/netlabel/netlabel_kapi.c ret_val = -ENOENT; ret_val 1026 net/netlabel/netlabel_kapi.c ret_val = -EPROTONOSUPPORT; ret_val 1031 net/netlabel/netlabel_kapi.c return ret_val; ret_val 1072 net/netlabel/netlabel_kapi.c int ret_val; ret_val 1076 net/netlabel/netlabel_kapi.c ret_val = cipso_v4_sock_getattr(sk, secattr); ret_val 1080 net/netlabel/netlabel_kapi.c ret_val = calipso_sock_getattr(sk, secattr); ret_val 1084 net/netlabel/netlabel_kapi.c ret_val = -EPROTONOSUPPORT; ret_val 1087 net/netlabel/netlabel_kapi.c return ret_val; ret_val 1106 net/netlabel/netlabel_kapi.c int ret_val; ret_val 1120 net/netlabel/netlabel_kapi.c ret_val = -ENOENT; ret_val 1125 net/netlabel/netlabel_kapi.c ret_val = cipso_v4_sock_setattr(sk, ret_val 1132 net/netlabel/netlabel_kapi.c ret_val = 0; ret_val 1135 net/netlabel/netlabel_kapi.c ret_val = -ENOENT; ret_val 1144 net/netlabel/netlabel_kapi.c ret_val = -ENOENT; ret_val 1149 net/netlabel/netlabel_kapi.c ret_val = calipso_sock_setattr(sk, ret_val 1156 net/netlabel/netlabel_kapi.c ret_val = 0; ret_val 1159 net/netlabel/netlabel_kapi.c ret_val = -ENOENT; ret_val 1164 net/netlabel/netlabel_kapi.c ret_val = -EPROTONOSUPPORT; ret_val 1169 net/netlabel/netlabel_kapi.c return ret_val; ret_val 1185 net/netlabel/netlabel_kapi.c int ret_val; ret_val 1195 net/netlabel/netlabel_kapi.c ret_val = -ENOENT; ret_val 1200 net/netlabel/netlabel_kapi.c ret_val = cipso_v4_req_setattr(req, ret_val 1205 net/netlabel/netlabel_kapi.c ret_val = 0; ret_val 1208 net/netlabel/netlabel_kapi.c ret_val = -ENOENT; ret_val 1216 net/netlabel/netlabel_kapi.c ret_val = -ENOENT; ret_val 1221 net/netlabel/netlabel_kapi.c ret_val = calipso_req_setattr(req, ret_val 1226 net/netlabel/netlabel_kapi.c ret_val = 0; ret_val 1229 net/netlabel/netlabel_kapi.c ret_val = -ENOENT; ret_val 1234 net/netlabel/netlabel_kapi.c ret_val = -EPROTONOSUPPORT; ret_val 1239 net/netlabel/netlabel_kapi.c return ret_val; ret_val 1279 net/netlabel/netlabel_kapi.c int ret_val; ret_val 1293 net/netlabel/netlabel_kapi.c ret_val = -ENOENT; ret_val 1298 net/netlabel/netlabel_kapi.c ret_val = cipso_v4_skbuff_setattr(skb, entry->cipso, ret_val 1304 net/netlabel/netlabel_kapi.c ret_val = cipso_v4_skbuff_delattr(skb); ret_val 1307 net/netlabel/netlabel_kapi.c ret_val = -ENOENT; ret_val 1316 net/netlabel/netlabel_kapi.c ret_val = -ENOENT; ret_val 1321 net/netlabel/netlabel_kapi.c ret_val = calipso_skbuff_setattr(skb, entry->calipso, ret_val 1327 net/netlabel/netlabel_kapi.c ret_val = calipso_skbuff_delattr(skb); ret_val 1330 net/netlabel/netlabel_kapi.c ret_val = -ENOENT; ret_val 1335 net/netlabel/netlabel_kapi.c ret_val = -EPROTONOSUPPORT; ret_val 1340 net/netlabel/netlabel_kapi.c return ret_val; ret_val 1493 net/netlabel/netlabel_kapi.c int ret_val; ret_val 1500 net/netlabel/netlabel_kapi.c ret_val = netlbl_domhsh_init(NETLBL_DOMHSH_BITSIZE); ret_val 1501 net/netlabel/netlabel_kapi.c if (ret_val != 0) ret_val 1504 net/netlabel/netlabel_kapi.c ret_val = netlbl_unlabel_init(NETLBL_UNLHSH_BITSIZE); ret_val 1505 net/netlabel/netlabel_kapi.c if (ret_val != 0) ret_val 1508 net/netlabel/netlabel_kapi.c ret_val = netlbl_netlink_init(); ret_val 1509 net/netlabel/netlabel_kapi.c if (ret_val != 0) ret_val 1512 net/netlabel/netlabel_kapi.c ret_val = netlbl_unlabel_defconf(); ret_val 1513 net/netlabel/netlabel_kapi.c if (ret_val != 0) ret_val 1520 net/netlabel/netlabel_kapi.c panic("NetLabel: failed to initialize properly (%d)\n", ret_val); ret_val 79 net/netlabel/netlabel_mgmt.c int ret_val = -EINVAL; ret_val 95 net/netlabel/netlabel_mgmt.c ret_val = -ENOMEM; ret_val 154 net/netlabel/netlabel_mgmt.c ret_val = -ENOMEM; ret_val 162 net/netlabel/netlabel_mgmt.c ret_val = -EINVAL; ret_val 167 net/netlabel/netlabel_mgmt.c ret_val = -EINVAL; ret_val 175 net/netlabel/netlabel_mgmt.c ret_val = -ENOMEM; ret_val 185 net/netlabel/netlabel_mgmt.c ret_val = netlbl_af4list_add(&map->list, &addrmap->list4); ret_val 186 net/netlabel/netlabel_mgmt.c if (ret_val != 0) { ret_val 202 net/netlabel/netlabel_mgmt.c ret_val = -ENOMEM; ret_val 210 net/netlabel/netlabel_mgmt.c ret_val = -EINVAL; ret_val 215 net/netlabel/netlabel_mgmt.c ret_val = -EINVAL; ret_val 223 net/netlabel/netlabel_mgmt.c ret_val = -ENOMEM; ret_val 237 net/netlabel/netlabel_mgmt.c ret_val = netlbl_af6list_add(&map->list, &addrmap->list6); ret_val 238 net/netlabel/netlabel_mgmt.c if (ret_val != 0) { ret_val 249 net/netlabel/netlabel_mgmt.c ret_val = netlbl_domhsh_add(entry, audit_info); ret_val 250 net/netlabel/netlabel_mgmt.c if (ret_val != 0) ret_val 266 net/netlabel/netlabel_mgmt.c return ret_val; ret_val 283 net/netlabel/netlabel_mgmt.c int ret_val = 0; ret_val 292 net/netlabel/netlabel_mgmt.c ret_val = nla_put_string(skb, ret_val 294 net/netlabel/netlabel_mgmt.c if (ret_val != 0) ret_val 295 net/netlabel/netlabel_mgmt.c return ret_val; ret_val 298 net/netlabel/netlabel_mgmt.c ret_val = nla_put_u16(skb, NLBL_MGMT_A_FAMILY, entry->family); ret_val 299 net/netlabel/netlabel_mgmt.c if (ret_val != 0) ret_val 300 net/netlabel/netlabel_mgmt.c return ret_val; ret_val 318 net/netlabel/netlabel_mgmt.c ret_val = nla_put_in_addr(skb, NLBL_MGMT_A_IPV4ADDR, ret_val 320 net/netlabel/netlabel_mgmt.c if (ret_val != 0) ret_val 321 net/netlabel/netlabel_mgmt.c return ret_val; ret_val 323 net/netlabel/netlabel_mgmt.c ret_val = nla_put_in_addr(skb, NLBL_MGMT_A_IPV4MASK, ret_val 325 net/netlabel/netlabel_mgmt.c if (ret_val != 0) ret_val 326 net/netlabel/netlabel_mgmt.c return ret_val; ret_val 328 net/netlabel/netlabel_mgmt.c ret_val = nla_put_u32(skb, NLBL_MGMT_A_PROTOCOL, ret_val 330 net/netlabel/netlabel_mgmt.c if (ret_val != 0) ret_val 331 net/netlabel/netlabel_mgmt.c return ret_val; ret_val 334 net/netlabel/netlabel_mgmt.c ret_val = nla_put_u32(skb, NLBL_MGMT_A_CV4DOI, ret_val 336 net/netlabel/netlabel_mgmt.c if (ret_val != 0) ret_val 337 net/netlabel/netlabel_mgmt.c return ret_val; ret_val 352 net/netlabel/netlabel_mgmt.c ret_val = nla_put_in6_addr(skb, NLBL_MGMT_A_IPV6ADDR, ret_val 354 net/netlabel/netlabel_mgmt.c if (ret_val != 0) ret_val 355 net/netlabel/netlabel_mgmt.c return ret_val; ret_val 356 net/netlabel/netlabel_mgmt.c ret_val = nla_put_in6_addr(skb, NLBL_MGMT_A_IPV6MASK, ret_val 358 net/netlabel/netlabel_mgmt.c if (ret_val != 0) ret_val 359 net/netlabel/netlabel_mgmt.c return ret_val; ret_val 361 net/netlabel/netlabel_mgmt.c ret_val = nla_put_u32(skb, NLBL_MGMT_A_PROTOCOL, ret_val 363 net/netlabel/netlabel_mgmt.c if (ret_val != 0) ret_val 364 net/netlabel/netlabel_mgmt.c return ret_val; ret_val 368 net/netlabel/netlabel_mgmt.c ret_val = nla_put_u32(skb, NLBL_MGMT_A_CLPDOI, ret_val 370 net/netlabel/netlabel_mgmt.c if (ret_val != 0) ret_val 371 net/netlabel/netlabel_mgmt.c return ret_val; ret_val 382 net/netlabel/netlabel_mgmt.c ret_val = nla_put_u32(skb, NLBL_MGMT_A_PROTOCOL, ret_val 386 net/netlabel/netlabel_mgmt.c ret_val = nla_put_u32(skb, NLBL_MGMT_A_PROTOCOL, ret_val 388 net/netlabel/netlabel_mgmt.c if (ret_val != 0) ret_val 389 net/netlabel/netlabel_mgmt.c return ret_val; ret_val 390 net/netlabel/netlabel_mgmt.c ret_val = nla_put_u32(skb, NLBL_MGMT_A_CV4DOI, ret_val 394 net/netlabel/netlabel_mgmt.c ret_val = nla_put_u32(skb, NLBL_MGMT_A_PROTOCOL, ret_val 396 net/netlabel/netlabel_mgmt.c if (ret_val != 0) ret_val 397 net/netlabel/netlabel_mgmt.c return ret_val; ret_val 398 net/netlabel/netlabel_mgmt.c ret_val = nla_put_u32(skb, NLBL_MGMT_A_CLPDOI, ret_val 403 net/netlabel/netlabel_mgmt.c return ret_val; ret_val 480 net/netlabel/netlabel_mgmt.c int ret_val = -ENOMEM; ret_val 490 net/netlabel/netlabel_mgmt.c ret_val = netlbl_mgmt_listentry(cb_arg->skb, entry); ret_val 491 net/netlabel/netlabel_mgmt.c if (ret_val != 0) ret_val 500 net/netlabel/netlabel_mgmt.c return ret_val; ret_val 597 net/netlabel/netlabel_mgmt.c int ret_val = -ENOMEM; ret_val 619 net/netlabel/netlabel_mgmt.c ret_val = -ENOENT; ret_val 622 net/netlabel/netlabel_mgmt.c ret_val = netlbl_mgmt_listentry(ans_skb, entry); ret_val 624 net/netlabel/netlabel_mgmt.c if (ret_val != 0) ret_val 634 net/netlabel/netlabel_mgmt.c return ret_val; ret_val 653 net/netlabel/netlabel_mgmt.c int ret_val = -ENOMEM; ret_val 662 net/netlabel/netlabel_mgmt.c ret_val = nla_put_u32(skb, NLBL_MGMT_A_PROTOCOL, protocol); ret_val 663 net/netlabel/netlabel_mgmt.c if (ret_val != 0) ret_val 671 net/netlabel/netlabel_mgmt.c return ret_val; ret_val 729 net/netlabel/netlabel_mgmt.c int ret_val = -ENOMEM; ret_val 741 net/netlabel/netlabel_mgmt.c ret_val = nla_put_u32(ans_skb, ret_val 744 net/netlabel/netlabel_mgmt.c if (ret_val != 0) ret_val 752 net/netlabel/netlabel_mgmt.c return ret_val; ret_val 235 net/netlabel/netlabel_unlabeled.c int ret_val; ret_val 248 net/netlabel/netlabel_unlabeled.c ret_val = netlbl_af4list_add(&entry->list, &iface->addr4_list); ret_val 251 net/netlabel/netlabel_unlabeled.c if (ret_val != 0) ret_val 253 net/netlabel/netlabel_unlabeled.c return ret_val; ret_val 275 net/netlabel/netlabel_unlabeled.c int ret_val; ret_val 292 net/netlabel/netlabel_unlabeled.c ret_val = netlbl_af6list_add(&entry->list, &iface->addr6_list); ret_val 295 net/netlabel/netlabel_unlabeled.c if (ret_val != 0) ret_val 371 net/netlabel/netlabel_unlabeled.c int ret_val; ret_val 387 net/netlabel/netlabel_unlabeled.c ret_val = -ENODEV; ret_val 399 net/netlabel/netlabel_unlabeled.c ret_val = -ENOMEM; ret_val 410 net/netlabel/netlabel_unlabeled.c ret_val = netlbl_unlhsh_add_addr4(iface, addr4, mask4, secid); ret_val 423 net/netlabel/netlabel_unlabeled.c ret_val = netlbl_unlhsh_add_addr6(iface, addr6, mask6, secid); ret_val 432 net/netlabel/netlabel_unlabeled.c ret_val = -EINVAL; ret_val 434 net/netlabel/netlabel_unlabeled.c if (ret_val == 0) ret_val 446 net/netlabel/netlabel_unlabeled.c audit_log_format(audit_buf, " res=%u", ret_val == 0 ? 1 : 0); ret_val 449 net/netlabel/netlabel_unlabeled.c return ret_val; ret_val 634 net/netlabel/netlabel_unlabeled.c int ret_val; ret_val 646 net/netlabel/netlabel_unlabeled.c ret_val = -ENODEV; ret_val 653 net/netlabel/netlabel_unlabeled.c ret_val = -ENOENT; ret_val 658 net/netlabel/netlabel_unlabeled.c ret_val = netlbl_unlhsh_remove_addr4(net, ret_val 664 net/netlabel/netlabel_unlabeled.c ret_val = netlbl_unlhsh_remove_addr6(net, ret_val 670 net/netlabel/netlabel_unlabeled.c ret_val = -EINVAL; ret_val 672 net/netlabel/netlabel_unlabeled.c if (ret_val == 0) { ret_val 679 net/netlabel/netlabel_unlabeled.c return ret_val; ret_val 837 net/netlabel/netlabel_unlabeled.c int ret_val = -EINVAL; ret_val 847 net/netlabel/netlabel_unlabeled.c ret_val = -ENOMEM; ret_val 851 net/netlabel/netlabel_unlabeled.c ret_val = nla_put_u8(ans_skb, ret_val 854 net/netlabel/netlabel_unlabeled.c if (ret_val != 0) ret_val 862 net/netlabel/netlabel_unlabeled.c return ret_val; ret_val 879 net/netlabel/netlabel_unlabeled.c int ret_val; ret_val 901 net/netlabel/netlabel_unlabeled.c ret_val = netlbl_unlabel_addrinfo_get(info, &addr, &mask, &addr_len); ret_val 902 net/netlabel/netlabel_unlabeled.c if (ret_val != 0) ret_val 903 net/netlabel/netlabel_unlabeled.c return ret_val; ret_val 905 net/netlabel/netlabel_unlabeled.c ret_val = security_secctx_to_secid( ret_val 909 net/netlabel/netlabel_unlabeled.c if (ret_val != 0) ret_val 910 net/netlabel/netlabel_unlabeled.c return ret_val; ret_val 931 net/netlabel/netlabel_unlabeled.c int ret_val; ret_val 951 net/netlabel/netlabel_unlabeled.c ret_val = netlbl_unlabel_addrinfo_get(info, &addr, &mask, &addr_len); ret_val 952 net/netlabel/netlabel_unlabeled.c if (ret_val != 0) ret_val 953 net/netlabel/netlabel_unlabeled.c return ret_val; ret_val 954 net/netlabel/netlabel_unlabeled.c ret_val = security_secctx_to_secid( ret_val 958 net/netlabel/netlabel_unlabeled.c if (ret_val != 0) ret_val 959 net/netlabel/netlabel_unlabeled.c return ret_val; ret_val 980 net/netlabel/netlabel_unlabeled.c int ret_val; ret_val 998 net/netlabel/netlabel_unlabeled.c ret_val = netlbl_unlabel_addrinfo_get(info, &addr, &mask, &addr_len); ret_val 999 net/netlabel/netlabel_unlabeled.c if (ret_val != 0) ret_val 1000 net/netlabel/netlabel_unlabeled.c return ret_val; ret_val 1022 net/netlabel/netlabel_unlabeled.c int ret_val; ret_val 1038 net/netlabel/netlabel_unlabeled.c ret_val = netlbl_unlabel_addrinfo_get(info, &addr, &mask, &addr_len); ret_val 1039 net/netlabel/netlabel_unlabeled.c if (ret_val != 0) ret_val 1040 net/netlabel/netlabel_unlabeled.c return ret_val; ret_val 1070 net/netlabel/netlabel_unlabeled.c int ret_val = -ENOMEM; ret_val 1087 net/netlabel/netlabel_unlabeled.c ret_val = -ENODEV; ret_val 1090 net/netlabel/netlabel_unlabeled.c ret_val = nla_put_string(cb_arg->skb, ret_val 1093 net/netlabel/netlabel_unlabeled.c if (ret_val != 0) ret_val 1101 net/netlabel/netlabel_unlabeled.c ret_val = nla_put_in_addr(cb_arg->skb, ret_val 1104 net/netlabel/netlabel_unlabeled.c if (ret_val != 0) ret_val 1108 net/netlabel/netlabel_unlabeled.c ret_val = nla_put_in_addr(cb_arg->skb, ret_val 1111 net/netlabel/netlabel_unlabeled.c if (ret_val != 0) ret_val 1116 net/netlabel/netlabel_unlabeled.c ret_val = nla_put_in6_addr(cb_arg->skb, ret_val 1119 net/netlabel/netlabel_unlabeled.c if (ret_val != 0) ret_val 1122 net/netlabel/netlabel_unlabeled.c ret_val = nla_put_in6_addr(cb_arg->skb, ret_val 1125 net/netlabel/netlabel_unlabeled.c if (ret_val != 0) ret_val 1131 net/netlabel/netlabel_unlabeled.c ret_val = security_secid_to_secctx(secid, &secctx, &secctx_len); ret_val 1132 net/netlabel/netlabel_unlabeled.c if (ret_val != 0) ret_val 1134 net/netlabel/netlabel_unlabeled.c ret_val = nla_put(cb_arg->skb, ret_val 1139 net/netlabel/netlabel_unlabeled.c if (ret_val != 0) ret_val 1148 net/netlabel/netlabel_unlabeled.c return ret_val; ret_val 1527 net/netlabel/netlabel_unlabeled.c int ret_val; ret_val 1543 net/netlabel/netlabel_unlabeled.c ret_val = netlbl_domhsh_add_default(entry, &audit_info); ret_val 1544 net/netlabel/netlabel_unlabeled.c if (ret_val != 0) ret_val 1545 net/netlabel/netlabel_unlabeled.c return ret_val; ret_val 51 net/netlabel/netlabel_user.c int ret_val; ret_val 53 net/netlabel/netlabel_user.c ret_val = netlbl_mgmt_genl_init(); ret_val 54 net/netlabel/netlabel_user.c if (ret_val != 0) ret_val 55 net/netlabel/netlabel_user.c return ret_val; ret_val 57 net/netlabel/netlabel_user.c ret_val = netlbl_cipsov4_genl_init(); ret_val 58 net/netlabel/netlabel_user.c if (ret_val != 0) ret_val 59 net/netlabel/netlabel_user.c return ret_val; ret_val 61 net/netlabel/netlabel_user.c ret_val = netlbl_calipso_genl_init(); ret_val 62 net/netlabel/netlabel_user.c if (ret_val != 0) ret_val 63 net/netlabel/netlabel_user.c return ret_val; ret_val 45 sound/soc/intel/atom/sst-mfld-platform-compress.c int ret_val = 0; ret_val 58 sound/soc/intel/atom/sst-mfld-platform-compress.c ret_val = -ENODEV; ret_val 72 sound/soc/intel/atom/sst-mfld-platform-compress.c return ret_val; ret_val 78 sound/soc/intel/atom/sst-mfld-platform-compress.c int ret_val = 0, str_id; ret_val 87 sound/soc/intel/atom/sst-mfld-platform-compress.c ret_val = stream->compr_ops->close(sst->dev, str_id); ret_val 90 sound/soc/intel/atom/sst-mfld-platform-compress.c pr_debug("%s: %d\n", __func__, ret_val); ret_val 230 sound/soc/intel/atom/sst-mfld-platform-pcm.c int ret_val = 0; ret_val 242 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = sst_fill_stream_params(substream, ctx, &str_params, false); ret_val 243 sound/soc/intel/atom/sst-mfld-platform-pcm.c if (ret_val < 0) ret_val 244 sound/soc/intel/atom/sst-mfld-platform-pcm.c return ret_val; ret_val 248 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = stream->ops->open(sst->dev, &str_params); ret_val 249 sound/soc/intel/atom/sst-mfld-platform-pcm.c if (ret_val <= 0) ret_val 250 sound/soc/intel/atom/sst-mfld-platform-pcm.c return ret_val; ret_val 253 sound/soc/intel/atom/sst-mfld-platform-pcm.c return ret_val; ret_val 278 sound/soc/intel/atom/sst-mfld-platform-pcm.c int ret_val; ret_val 286 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = stream->ops->stream_init(sst->dev, &stream->stream_info); ret_val 287 sound/soc/intel/atom/sst-mfld-platform-pcm.c if (ret_val) ret_val 288 sound/soc/intel/atom/sst-mfld-platform-pcm.c dev_err(rtd->dev, "control_set ret error %d\n", ret_val); ret_val 289 sound/soc/intel/atom/sst-mfld-platform-pcm.c return ret_val; ret_val 306 sound/soc/intel/atom/sst-mfld-platform-pcm.c int ret_val = 0; ret_val 320 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = -ENODEV; ret_val 332 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = power_up_sst(stream); ret_val 333 sound/soc/intel/atom/sst-mfld-platform-pcm.c if (ret_val < 0) ret_val 334 sound/soc/intel/atom/sst-mfld-platform-pcm.c return ret_val; ret_val 345 sound/soc/intel/atom/sst-mfld-platform-pcm.c return ret_val; ret_val 368 sound/soc/intel/atom/sst-mfld-platform-pcm.c int ret_val = 0, str_id; ret_val 373 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = stream->ops->stream_drop(sst->dev, str_id); ret_val 374 sound/soc/intel/atom/sst-mfld-platform-pcm.c return ret_val; ret_val 377 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = sst_platform_alloc_stream(substream, dai); ret_val 378 sound/soc/intel/atom/sst-mfld-platform-pcm.c if (ret_val <= 0) ret_val 379 sound/soc/intel/atom/sst-mfld-platform-pcm.c return ret_val; ret_val 383 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = sst_platform_init_stream(substream); ret_val 384 sound/soc/intel/atom/sst-mfld-platform-pcm.c if (ret_val) ret_val 385 sound/soc/intel/atom/sst-mfld-platform-pcm.c return ret_val; ret_val 387 sound/soc/intel/atom/sst-mfld-platform-pcm.c return ret_val; ret_val 604 sound/soc/intel/atom/sst-mfld-platform-pcm.c int ret_val = 0, str_id; ret_val 619 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = stream->ops->stream_start(sst->dev, str_id); ret_val 624 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = stream->ops->stream_drop(sst->dev, str_id); ret_val 630 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = stream->ops->stream_pause(sst->dev, str_id); ret_val 636 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = stream->ops->stream_pause_release(sst->dev, str_id); ret_val 642 sound/soc/intel/atom/sst-mfld-platform-pcm.c if (!ret_val) ret_val 645 sound/soc/intel/atom/sst-mfld-platform-pcm.c return ret_val; ret_val 653 sound/soc/intel/atom/sst-mfld-platform-pcm.c int ret_val, status; ret_val 662 sound/soc/intel/atom/sst-mfld-platform-pcm.c ret_val = stream->ops->stream_read_tstamp(sst->dev, str_info); ret_val 663 sound/soc/intel/atom/sst-mfld-platform-pcm.c if (ret_val) { ret_val 664 sound/soc/intel/atom/sst-mfld-platform-pcm.c dev_err(rtd->dev, "sst: error code = %d\n", ret_val); ret_val 665 sound/soc/intel/atom/sst-mfld-platform-pcm.c return ret_val; ret_val 646 sound/soc/intel/atom/sst/sst_drv_interface.c int ret_val = 0; ret_val 651 sound/soc/intel/atom/sst/sst_drv_interface.c ret_val = pm_runtime_get_sync(ctx->dev); ret_val 652 sound/soc/intel/atom/sst/sst_drv_interface.c if (ret_val < 0) { ret_val 654 sound/soc/intel/atom/sst/sst_drv_interface.c return ret_val; ret_val 657 sound/soc/intel/atom/sst/sst_drv_interface.c ret_val = sst_send_byte_stream_mrfld(ctx, bytes); ret_val 660 sound/soc/intel/atom/sst/sst_drv_interface.c return ret_val; ret_val 707 sound/soc/intel/atom/sst/sst_drv_interface.c int ret_val; ret_val 710 sound/soc/intel/atom/sst/sst_drv_interface.c ret_val = sst_register_dsp(&sst_dsp_device); ret_val 711 sound/soc/intel/atom/sst/sst_drv_interface.c if (ret_val) ret_val 714 sound/soc/intel/atom/sst/sst_drv_interface.c return ret_val; ret_val 177 sound/soc/intel/atom/sst/sst_loader.c int ret_val = 0; ret_val 211 sound/soc/intel/atom/sst/sst_loader.c ret_val = sst_fill_memcpy_list(memcpy_list, ret_val 214 sound/soc/intel/atom/sst/sst_loader.c if (ret_val) ret_val 215 sound/soc/intel/atom/sst/sst_loader.c return ret_val; ret_val 236 sound/soc/intel/atom/sst/sst_loader.c int ret_val; ret_val 238 sound/soc/intel/atom/sst/sst_loader.c ret_val = sst_validate_fw_image(ctx, size, &module, &num_modules); ret_val 239 sound/soc/intel/atom/sst/sst_loader.c if (ret_val) ret_val 240 sound/soc/intel/atom/sst/sst_loader.c return ret_val; ret_val 243 sound/soc/intel/atom/sst/sst_loader.c ret_val = sst_parse_module_memcpy(ctx, module, fw_list); ret_val 244 sound/soc/intel/atom/sst/sst_loader.c if (ret_val) ret_val 245 sound/soc/intel/atom/sst/sst_loader.c return ret_val; ret_val 394 sound/soc/intel/atom/sst/sst_loader.c int ret_val = 0; ret_val 405 sound/soc/intel/atom/sst/sst_loader.c ret_val = sst_request_fw(sst_drv_ctx); ret_val 406 sound/soc/intel/atom/sst/sst_loader.c if (ret_val) ret_val 407 sound/soc/intel/atom/sst/sst_loader.c return ret_val; ret_val 419 sound/soc/intel/atom/sst/sst_loader.c ret_val = sst_drv_ctx->ops->reset(sst_drv_ctx); ret_val 420 sound/soc/intel/atom/sst/sst_loader.c if (ret_val) ret_val 430 sound/soc/intel/atom/sst/sst_loader.c ret_val = sst_drv_ctx->ops->start(sst_drv_ctx); ret_val 431 sound/soc/intel/atom/sst/sst_loader.c if (ret_val) ret_val 434 sound/soc/intel/atom/sst/sst_loader.c ret_val = sst_wait_timeout(sst_drv_ctx, block); ret_val 435 sound/soc/intel/atom/sst/sst_loader.c if (ret_val) { ret_val 436 sound/soc/intel/atom/sst/sst_loader.c dev_err(sst_drv_ctx->dev, "fw download failed %d\n" , ret_val); ret_val 438 sound/soc/intel/atom/sst/sst_loader.c ret_val = -EBUSY; ret_val 452 sound/soc/intel/atom/sst/sst_loader.c return ret_val; ret_val 146 sound/soc/intel/boards/byt-max98090.c int ret_val; ret_val 154 sound/soc/intel/boards/byt-max98090.c ret_val = devm_acpi_dev_add_driver_gpios(dev->parent, acpi_byt_max98090_gpios); ret_val 155 sound/soc/intel/boards/byt-max98090.c if (ret_val) ret_val 160 sound/soc/intel/boards/byt-max98090.c ret_val = devm_snd_soc_register_card(&pdev->dev, &byt_max98090_card); ret_val 161 sound/soc/intel/boards/byt-max98090.c if (ret_val) { ret_val 163 sound/soc/intel/boards/byt-max98090.c "snd_soc_register_card failed %d\n", ret_val); ret_val 164 sound/soc/intel/boards/byt-max98090.c return ret_val; ret_val 231 sound/soc/intel/boards/bytcht_da7213.c int ret_val = 0; ret_val 258 sound/soc/intel/boards/bytcht_da7213.c ret_val = snd_soc_fixup_dai_links_platform_name(card, platform_name); ret_val 259 sound/soc/intel/boards/bytcht_da7213.c if (ret_val) ret_val 260 sound/soc/intel/boards/bytcht_da7213.c return ret_val; ret_val 262 sound/soc/intel/boards/bytcht_da7213.c ret_val = devm_snd_soc_register_card(&pdev->dev, card); ret_val 263 sound/soc/intel/boards/bytcht_da7213.c if (ret_val) { ret_val 265 sound/soc/intel/boards/bytcht_da7213.c "snd_soc_register_card failed %d\n", ret_val); ret_val 266 sound/soc/intel/boards/bytcht_da7213.c return ret_val; ret_val 269 sound/soc/intel/boards/bytcht_da7213.c return ret_val; ret_val 171 sound/soc/intel/boards/bytcht_nocodec.c int ret_val = 0; ret_val 176 sound/soc/intel/boards/bytcht_nocodec.c ret_val = devm_snd_soc_register_card(&pdev->dev, &bytcht_nocodec_card); ret_val 178 sound/soc/intel/boards/bytcht_nocodec.c if (ret_val) { ret_val 180 sound/soc/intel/boards/bytcht_nocodec.c ret_val); ret_val 181 sound/soc/intel/boards/bytcht_nocodec.c return ret_val; ret_val 184 sound/soc/intel/boards/bytcht_nocodec.c return ret_val; ret_val 1166 sound/soc/intel/boards/bytcr_rt5640.c int ret_val = 0; ret_val 1273 sound/soc/intel/boards/bytcr_rt5640.c ret_val = byt_rt5640_add_codec_device_props(byt_rt5640_codec_name); ret_val 1274 sound/soc/intel/boards/bytcr_rt5640.c if (ret_val) ret_val 1275 sound/soc/intel/boards/bytcr_rt5640.c return ret_val; ret_val 1306 sound/soc/intel/boards/bytcr_rt5640.c ret_val = PTR_ERR(priv->mclk); ret_val 1310 sound/soc/intel/boards/bytcr_rt5640.c ret_val); ret_val 1317 sound/soc/intel/boards/bytcr_rt5640.c if (ret_val != -ENOENT) ret_val 1318 sound/soc/intel/boards/bytcr_rt5640.c return ret_val; ret_val 1333 sound/soc/intel/boards/bytcr_rt5640.c ret_val = snd_soc_fixup_dai_links_platform_name(&byt_rt5640_card, ret_val 1335 sound/soc/intel/boards/bytcr_rt5640.c if (ret_val) ret_val 1336 sound/soc/intel/boards/bytcr_rt5640.c return ret_val; ret_val 1338 sound/soc/intel/boards/bytcr_rt5640.c ret_val = devm_snd_soc_register_card(&pdev->dev, &byt_rt5640_card); ret_val 1340 sound/soc/intel/boards/bytcr_rt5640.c if (ret_val) { ret_val 1342 sound/soc/intel/boards/bytcr_rt5640.c ret_val); ret_val 1343 sound/soc/intel/boards/bytcr_rt5640.c return ret_val; ret_val 1346 sound/soc/intel/boards/bytcr_rt5640.c return ret_val; ret_val 881 sound/soc/intel/boards/bytcr_rt5651.c int ret_val = 0; ret_val 987 sound/soc/intel/boards/bytcr_rt5651.c ret_val = byt_rt5651_add_codec_device_props(codec_dev); ret_val 988 sound/soc/intel/boards/bytcr_rt5651.c if (ret_val) { ret_val 990 sound/soc/intel/boards/bytcr_rt5651.c return ret_val; ret_val 1004 sound/soc/intel/boards/bytcr_rt5651.c ret_val = PTR_ERR(priv->ext_amp_gpio); ret_val 1005 sound/soc/intel/boards/bytcr_rt5651.c switch (ret_val) { ret_val 1011 sound/soc/intel/boards/bytcr_rt5651.c ret_val); ret_val 1015 sound/soc/intel/boards/bytcr_rt5651.c return ret_val; ret_val 1023 sound/soc/intel/boards/bytcr_rt5651.c ret_val = PTR_ERR(priv->hp_detect); ret_val 1024 sound/soc/intel/boards/bytcr_rt5651.c switch (ret_val) { ret_val 1030 sound/soc/intel/boards/bytcr_rt5651.c ret_val); ret_val 1034 sound/soc/intel/boards/bytcr_rt5651.c return ret_val; ret_val 1068 sound/soc/intel/boards/bytcr_rt5651.c ret_val = PTR_ERR(priv->mclk); ret_val 1071 sound/soc/intel/boards/bytcr_rt5651.c ret_val); ret_val 1077 sound/soc/intel/boards/bytcr_rt5651.c if (ret_val != -ENOENT) ret_val 1078 sound/soc/intel/boards/bytcr_rt5651.c return ret_val; ret_val 1098 sound/soc/intel/boards/bytcr_rt5651.c ret_val = snd_soc_fixup_dai_links_platform_name(&byt_rt5651_card, ret_val 1100 sound/soc/intel/boards/bytcr_rt5651.c if (ret_val) ret_val 1101 sound/soc/intel/boards/bytcr_rt5651.c return ret_val; ret_val 1103 sound/soc/intel/boards/bytcr_rt5651.c ret_val = devm_snd_soc_register_card(&pdev->dev, &byt_rt5651_card); ret_val 1105 sound/soc/intel/boards/bytcr_rt5651.c if (ret_val) { ret_val 1107 sound/soc/intel/boards/bytcr_rt5651.c ret_val); ret_val 1108 sound/soc/intel/boards/bytcr_rt5651.c return ret_val; ret_val 1111 sound/soc/intel/boards/bytcr_rt5651.c return ret_val; ret_val 528 sound/soc/intel/boards/cht_bsw_max98090_ti.c int ret_val = 0; ret_val 548 sound/soc/intel/boards/cht_bsw_max98090_ti.c ret_val = devm_acpi_dev_add_driver_gpios(dev->parent, ret_val 550 sound/soc/intel/boards/cht_bsw_max98090_ti.c if (ret_val) ret_val 559 sound/soc/intel/boards/cht_bsw_max98090_ti.c ret_val = snd_soc_fixup_dai_links_platform_name(&snd_soc_card_cht, ret_val 561 sound/soc/intel/boards/cht_bsw_max98090_ti.c if (ret_val) ret_val 562 sound/soc/intel/boards/cht_bsw_max98090_ti.c return ret_val; ret_val 588 sound/soc/intel/boards/cht_bsw_max98090_ti.c ret_val = clk_prepare_enable(drv->mclk); ret_val 589 sound/soc/intel/boards/cht_bsw_max98090_ti.c if (ret_val < 0) { ret_val 590 sound/soc/intel/boards/cht_bsw_max98090_ti.c dev_err(&pdev->dev, "MCLK enable error: %d\n", ret_val); ret_val 591 sound/soc/intel/boards/cht_bsw_max98090_ti.c return ret_val; ret_val 595 sound/soc/intel/boards/cht_bsw_max98090_ti.c ret_val = devm_snd_soc_register_card(&pdev->dev, &snd_soc_card_cht); ret_val 596 sound/soc/intel/boards/cht_bsw_max98090_ti.c if (ret_val) { ret_val 598 sound/soc/intel/boards/cht_bsw_max98090_ti.c "snd_soc_register_card failed %d\n", ret_val); ret_val 599 sound/soc/intel/boards/cht_bsw_max98090_ti.c return ret_val; ret_val 602 sound/soc/intel/boards/cht_bsw_max98090_ti.c return ret_val; ret_val 253 sound/soc/intel/boards/cht_bsw_nau8824.c int ret_val; ret_val 265 sound/soc/intel/boards/cht_bsw_nau8824.c ret_val = snd_soc_fixup_dai_links_platform_name(&snd_soc_card_cht, ret_val 267 sound/soc/intel/boards/cht_bsw_nau8824.c if (ret_val) ret_val 268 sound/soc/intel/boards/cht_bsw_nau8824.c return ret_val; ret_val 271 sound/soc/intel/boards/cht_bsw_nau8824.c ret_val = devm_snd_soc_register_card(&pdev->dev, &snd_soc_card_cht); ret_val 272 sound/soc/intel/boards/cht_bsw_nau8824.c if (ret_val) { ret_val 274 sound/soc/intel/boards/cht_bsw_nau8824.c "snd_soc_register_card failed %d\n", ret_val); ret_val 275 sound/soc/intel/boards/cht_bsw_nau8824.c return ret_val; ret_val 279 sound/soc/intel/boards/cht_bsw_nau8824.c return ret_val; ret_val 536 sound/soc/intel/boards/cht_bsw_rt5645.c int ret_val = 0; ret_val 670 sound/soc/intel/boards/cht_bsw_rt5645.c ret_val = snd_soc_fixup_dai_links_platform_name(card, ret_val 672 sound/soc/intel/boards/cht_bsw_rt5645.c if (ret_val) ret_val 673 sound/soc/intel/boards/cht_bsw_rt5645.c return ret_val; ret_val 688 sound/soc/intel/boards/cht_bsw_rt5645.c ret_val = devm_snd_soc_register_card(&pdev->dev, card); ret_val 689 sound/soc/intel/boards/cht_bsw_rt5645.c if (ret_val) { ret_val 691 sound/soc/intel/boards/cht_bsw_rt5645.c "snd_soc_register_card failed %d\n", ret_val); ret_val 692 sound/soc/intel/boards/cht_bsw_rt5645.c return ret_val; ret_val 695 sound/soc/intel/boards/cht_bsw_rt5645.c return ret_val; ret_val 402 sound/soc/intel/boards/cht_bsw_rt5672.c int ret_val = 0; ret_val 434 sound/soc/intel/boards/cht_bsw_rt5672.c ret_val = snd_soc_fixup_dai_links_platform_name(&snd_soc_card_cht, ret_val 436 sound/soc/intel/boards/cht_bsw_rt5672.c if (ret_val) ret_val 437 sound/soc/intel/boards/cht_bsw_rt5672.c return ret_val; ret_val 449 sound/soc/intel/boards/cht_bsw_rt5672.c ret_val = devm_snd_soc_register_card(&pdev->dev, &snd_soc_card_cht); ret_val 450 sound/soc/intel/boards/cht_bsw_rt5672.c if (ret_val) { ret_val 452 sound/soc/intel/boards/cht_bsw_rt5672.c "snd_soc_register_card failed %d\n", ret_val); ret_val 453 sound/soc/intel/boards/cht_bsw_rt5672.c return ret_val; ret_val 456 sound/soc/intel/boards/cht_bsw_rt5672.c return ret_val; ret_val 719 tools/power/acpi/os_specific/service_layers/osunixxf.c int ret_val; ret_val 747 tools/power/acpi/os_specific/service_layers/osunixxf.c while (((ret_val = sem_wait(sem)) == -1) && (errno == EINTR)) { ret_val 750 tools/power/acpi/os_specific/service_layers/osunixxf.c if (ret_val != 0) { ret_val 801 tools/power/acpi/os_specific/service_layers/osunixxf.c while (((ret_val = sem_timedwait(sem, &time)) == -1) ret_val 807 tools/power/acpi/os_specific/service_layers/osunixxf.c if (ret_val != 0) {