Lines Matching refs:dev_ctx
49 irdma_rd32(struct irdma_dev_ctx *dev_ctx, u32 reg){ in irdma_rd32() argument
51 KASSERT(reg < dev_ctx->mem_bus_space_size, in irdma_rd32()
53 (uintmax_t)reg, (uintmax_t)dev_ctx->mem_bus_space_size)); in irdma_rd32()
55 return (bus_space_read_4(dev_ctx->mem_bus_space_tag, in irdma_rd32()
56 dev_ctx->mem_bus_space_handle, reg)); in irdma_rd32()
60 irdma_wr32(struct irdma_dev_ctx *dev_ctx, u32 reg, u32 value) in irdma_wr32() argument
63 KASSERT(reg < dev_ctx->mem_bus_space_size, in irdma_wr32()
65 (uintmax_t)reg, (uintmax_t)dev_ctx->mem_bus_space_size)); in irdma_wr32()
67 bus_space_write_4(dev_ctx->mem_bus_space_tag, in irdma_wr32()
68 dev_ctx->mem_bus_space_handle, reg, value); in irdma_wr32()
72 irdma_rd64(struct irdma_dev_ctx *dev_ctx, u32 reg){ in irdma_rd64() argument
74 KASSERT(reg < dev_ctx->mem_bus_space_size, in irdma_rd64()
76 (uintmax_t)reg, (uintmax_t)dev_ctx->mem_bus_space_size)); in irdma_rd64()
78 return (bus_space_read_8(dev_ctx->mem_bus_space_tag, in irdma_rd64()
79 dev_ctx->mem_bus_space_handle, reg)); in irdma_rd64()
83 irdma_wr64(struct irdma_dev_ctx *dev_ctx, u32 reg, u64 value) in irdma_wr64() argument
86 KASSERT(reg < dev_ctx->mem_bus_space_size, in irdma_wr64()
88 (uintmax_t)reg, (uintmax_t)dev_ctx->mem_bus_space_size)); in irdma_wr64()
90 bus_space_write_8(dev_ctx->mem_bus_space_tag, in irdma_wr64()
91 dev_ctx->mem_bus_space_handle, reg, value); in irdma_wr64()
956 struct irdma_dev_ctx *dev_ctx = (struct irdma_dev_ctx *)hw->dev_context; in irdma_allocate_dma_mem() local
957 device_t dev = dev_ctx->dev; in irdma_allocate_dma_mem()