Lines Matching refs:dev_ctx

55 irdma_rd32(struct irdma_dev_ctx *dev_ctx, u32 reg){  in irdma_rd32()  argument
57 KASSERT(reg < dev_ctx->mem_bus_space_size, in irdma_rd32()
59 (uintmax_t)reg, (uintmax_t)dev_ctx->mem_bus_space_size)); in irdma_rd32()
61 return (bus_space_read_4(dev_ctx->mem_bus_space_tag, in irdma_rd32()
62 dev_ctx->mem_bus_space_handle, reg)); in irdma_rd32()
66 irdma_wr32(struct irdma_dev_ctx *dev_ctx, u32 reg, u32 value) in irdma_wr32() argument
69 KASSERT(reg < dev_ctx->mem_bus_space_size, in irdma_wr32()
71 (uintmax_t)reg, (uintmax_t)dev_ctx->mem_bus_space_size)); in irdma_wr32()
73 bus_space_write_4(dev_ctx->mem_bus_space_tag, in irdma_wr32()
74 dev_ctx->mem_bus_space_handle, reg, value); in irdma_wr32()
78 irdma_rd64(struct irdma_dev_ctx *dev_ctx, u32 reg){ in irdma_rd64() argument
80 KASSERT(reg < dev_ctx->mem_bus_space_size, in irdma_rd64()
82 (uintmax_t)reg, (uintmax_t)dev_ctx->mem_bus_space_size)); in irdma_rd64()
84 return (bus_space_read_8(dev_ctx->mem_bus_space_tag, in irdma_rd64()
85 dev_ctx->mem_bus_space_handle, reg)); in irdma_rd64()
89 irdma_wr64(struct irdma_dev_ctx *dev_ctx, u32 reg, u64 value) in irdma_wr64() argument
92 KASSERT(reg < dev_ctx->mem_bus_space_size, in irdma_wr64()
94 (uintmax_t)reg, (uintmax_t)dev_ctx->mem_bus_space_size)); in irdma_wr64()
96 bus_space_write_8(dev_ctx->mem_bus_space_tag, in irdma_wr64()
97 dev_ctx->mem_bus_space_handle, reg, value); in irdma_wr64()
1114 struct irdma_dev_ctx *dev_ctx = (struct irdma_dev_ctx *)hw->dev_context; in irdma_allocate_dma_mem() local
1115 device_t dev = dev_ctx->dev; in irdma_allocate_dma_mem()