Lines Matching +full:sync +full:- +full:token
1 /*-
2 * Copyright (c) 2013-2019, Mellanox Technologies, Ltd. All rights reserved.
41 #include <linux/radix-tree.h>
320 #define MLX5_DMA_OWNED(dev) mtx_owned(&(dev)->cmd.dma_mtx)
321 #define MLX5_DMA_LOCK(dev) mtx_lock(&(dev)->cmd.dma_mtx)
322 #define MLX5_DMA_UNLOCK(dev) mtx_unlock(&(dev)->cmd.dma_mtx)
324 #define MLX5_DMA_DONE(dev) cv_broadcast(&(dev)->cmd.dma_cv)
325 #define MLX5_DMA_WAIT(dev) cv_wait(&(dev)->cmd.dma_cv, &(dev)->cmd.dma_mtx)
339 /* protect token allocations
342 u8 token; member
679 #define DIAG_LOCK(dc) mutex_lock(&(dc)->lock)
680 #define DIAG_UNLOCK(dc) mutex_unlock(&(dc)->lock)
696 /* sync pci state */
713 /* sync interface state */
887 u8 token; member
910 return ((char *)buf->direct.buf + offset); in mlx5_buf_offset()
918 .struct_size_bytes = sizeof((struct ib_unpacked_ ## header *)0)->field
927 return ioread32be(&dev->iseg->fw_rev) & 0xffff; in fw_rev_maj()
932 return ioread32be(&dev->iseg->fw_rev) >> 16; in fw_rev_min()
937 return ioread32be(&dev->iseg->cmdif_rev_fw_sub) & 0xffff; in fw_rev_sub()
942 return ioread32be(&dev->iseg->cmdif_rev_fw_sub) >> 16; in cmdif_rev_get()
1127 return (linux_get_vm_domain_set(mdev->priv.numa_node)); in mlx5_dev_domainset()
1239 return !(dev->priv.pci_dev_data & MLX5_PCI_DEV_IS_VF); in mlx5_core_is_pf()
1254 return (dev->priv.rl_table.rl_entry[index - 1].qos_handle); in mlx5_rl_get_scq_handle()
1259 return !!(dev->priv.rl_table.max_size); in mlx5_rl_is_supported()