| /linux-6.15/drivers/net/ethernet/intel/ice/ |
| H A D | ice_adapter.c | 16 static unsigned long ice_adapter_index(u64 dsn) in ice_adapter_index() argument 19 return dsn; in ice_adapter_index() 21 return (u32)dsn ^ (u32)(dsn >> 32); in ice_adapter_index() 25 static struct ice_adapter *ice_adapter_new(u64 dsn) in ice_adapter_new() argument 33 adapter->device_serial_number = dsn; in ice_adapter_new() 66 u64 dsn = pci_get_dsn(pdev); in ice_adapter_get() local 71 index = ice_adapter_index(dsn); in ice_adapter_get() 77 WARN_ON_ONCE(adapter->device_serial_number != dsn); in ice_adapter_get() 83 adapter = ice_adapter_new(dsn); in ice_adapter_get() 102 u64 dsn = pci_get_dsn(pdev); in ice_adapter_put() local [all …]
|
| H A D | ice_main.c | 4445 u64 dsn; in ice_get_opt_fw_name() local 4450 dsn = pci_get_dsn(pdev); in ice_get_opt_fw_name() 4451 if (!dsn) in ice_get_opt_fw_name() 4459 ICE_DDP_PKG_PATH, dsn); in ice_get_opt_fw_name()
|
| /linux-6.15/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_devlink.c | 95 if (fbd->dsn) { in fbnic_devlink_info_get() 97 u8 dsn[8]; in fbnic_devlink_info_get() local 99 put_unaligned_be64(fbd->dsn, dsn); in fbnic_devlink_info_get() 100 err = snprintf(serial, FBNIC_SN_STR_LEN, "%8phD", dsn); in fbnic_devlink_info_get() 142 fbd->dsn = pci_get_dsn(pdev); in fbnic_devlink_alloc()
|
| H A D | fbnic_netdev.c | 708 static int fbnic_dsn_to_mac_addr(u64 dsn, char *addr) in fbnic_dsn_to_mac_addr() argument 710 addr[0] = (dsn >> 56) & 0xFF; in fbnic_dsn_to_mac_addr() 711 addr[1] = (dsn >> 48) & 0xFF; in fbnic_dsn_to_mac_addr() 712 addr[2] = (dsn >> 40) & 0xFF; in fbnic_dsn_to_mac_addr() 713 addr[3] = (dsn >> 16) & 0xFF; in fbnic_dsn_to_mac_addr() 714 addr[4] = (dsn >> 8) & 0xFF; in fbnic_dsn_to_mac_addr() 715 addr[5] = dsn & 0xFF; in fbnic_dsn_to_mac_addr() 732 u64 dsn = fbd->dsn; in fbnic_netdev_register() local 736 err = fbnic_dsn_to_mac_addr(dsn, addr); in fbnic_netdev_register()
|
| H A D | fbnic.h | 53 u64 dsn; member
|
| H A D | fbnic_pci.c | 301 if (!fbd->dsn) { in fbnic_probe()
|
| /linux-6.15/drivers/net/ethernet/intel/i40e/ |
| H A D | i40e_devlink.c | 10 u8 dsn[8]; in i40e_info_get_dsn() local 12 put_unaligned_be64(pci_get_dsn(pf->pdev), dsn); in i40e_info_get_dsn() 14 snprintf(buf, len, "%8phD", dsn); in i40e_info_get_dsn()
|
| /linux-6.15/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_devlink.c | 877 bp->dsn[7], bp->dsn[6], bp->dsn[5], bp->dsn[4], in bnxt_dl_info_get() 878 bp->dsn[3], bp->dsn[2], bp->dsn[1], bp->dsn[0]); in bnxt_dl_info_get() 1308 memcpy(attrs.switch_id.id, bp->dsn, sizeof(bp->dsn)); in bnxt_dl_register() 1309 attrs.switch_id.id_len = sizeof(bp->dsn); in bnxt_dl_register()
|
| H A D | bnxt.h | 2720 u8 dsn[8]; member
|
| H A D | bnxt.c | 15603 ppid->id_len = sizeof(bp->dsn); in bnxt_get_port_parent_id() 15604 memcpy(ppid->id, bp->dsn, ppid->id_len); in bnxt_get_port_parent_id() 16403 static int bnxt_pcie_dsn_get(struct bnxt *bp, u8 dsn[]) in bnxt_pcie_dsn_get() argument 16414 put_unaligned_le64(qword, dsn); in bnxt_pcie_dsn_get() 16594 rc = bnxt_pcie_dsn_get(bp, bp->dsn); in bnxt_init_one()
|
| /linux-6.15/Documentation/ABI/testing/ |
| H A D | sysfs-module | 4 Contact: masa-korg@dsn.okisemi.com 10 Contact: masa-korg@dsn.okisemi.com
|
| /linux-6.15/drivers/net/ethernet/netronome/nfp/nfpcore/ |
| H A D | nfp6000_pcie.c | 1248 u64 dsn; in nfp6000_read_serial() local 1250 dsn = pci_get_dsn(pdev); in nfp6000_read_serial() 1251 if (!dsn) { in nfp6000_read_serial() 1256 put_unaligned_be32((u32)(dsn >> 32), serial); in nfp6000_read_serial() 1257 put_unaligned_be16((u16)(dsn >> 16), serial + 4); in nfp6000_read_serial() 1265 u64 dsn; in nfp6000_get_interface() local 1267 dsn = pci_get_dsn(pdev); in nfp6000_get_interface() 1268 if (!dsn) { in nfp6000_get_interface() 1273 return dsn & 0xffff; in nfp6000_get_interface()
|
| /linux-6.15/drivers/pci/hotplug/ |
| H A D | pciehp_pci.c | 76 ctrl->dsn = pci_get_dsn(dev); in pciehp_configure_device()
|
| H A D | pciehp.h | 93 u64 dsn; member
|
| H A D | pciehp_core.c | 310 if (pci_get_dsn(pdev) != ctrl->dsn) in pciehp_device_replaced()
|
| H A D | pciehp_hpc.c | 1065 ctrl->dsn = pci_get_dsn(pdev); in pcie_init()
|
| /linux-6.15/drivers/net/ethernet/intel/ixgbe/ |
| H A D | ixgbe_fcoe.c | 972 u64 dsn; in ixgbe_fcoe_get_hbainfo() local 988 dsn = pci_get_dsn(adapter->pdev); in ixgbe_fcoe_get_hbainfo() 989 if (dsn) in ixgbe_fcoe_get_hbainfo() 991 "%016llX", dsn); in ixgbe_fcoe_get_hbainfo()
|
| /linux-6.15/net/mac802154/ |
| H A D | iface.c | 373 hdr.seq = atomic_inc_return(&dev->ieee802154_ptr->dsn) & 0xFF; in ieee802154_header_create() 438 hdr.seq = atomic_inc_return(&dev->ieee802154_ptr->dsn) & 0xFF; in mac802154_header_create() 561 atomic_set(&wpan_dev->dsn, tmp); in ieee802154_setup_sdata()
|
| H A D | scan.c | 545 frame.mhr.seq = atomic_inc_return(&wpan_dev->dsn) & 0xFF; in mac802154_perform_association() 672 frame.mhr.seq = atomic_inc_return(&wpan_dev->dsn) & 0xFF; in mac802154_send_disassociation_notif() 728 frame.mhr.seq = atomic_inc_return(&wpan_dev->dsn) & 0xFF; in mac802154_send_association_resp_locked()
|
| /linux-6.15/include/net/ |
| H A D | cfg802154.h | 494 atomic_t dsn; member
|
| /linux-6.15/drivers/net/ethernet/intel/ice/devlink/ |
| H A D | devlink.c | 36 u8 dsn[8]; in ice_info_get_dsn() local 39 put_unaligned_be64(pci_get_dsn(pf->pdev), dsn); in ice_info_get_dsn() 41 snprintf(ctx->buf, sizeof(ctx->buf), "%8phD", dsn); in ice_info_get_dsn()
|
| /linux-6.15/drivers/net/wireless/marvell/libertas/ |
| H A D | host.h | 952 __le32 dsn; member
|
| /linux-6.15/drivers/pci/ |
| H A D | pci.c | 627 u64 dsn; in pci_get_dsn() local 641 dsn = (u64)dword; in pci_get_dsn() 643 dsn |= ((u64)dword) << 32; in pci_get_dsn() 645 return dsn; in pci_get_dsn()
|