Lines Matching refs:ctx
533 struct regmap_ibt_context *ctx = context;
560 bt_dev_dbg(ctx->hdev, "Register (0x%x) read", le32_to_cpu(cp.addr));
562 skb = hci_cmd_sync(ctx->hdev, ctx->op_read, sizeof(cp), &cp,
566 bt_dev_err(ctx->hdev, "regmap: Register (0x%x) read error (%d)",
572 bt_dev_err(ctx->hdev, "regmap: Register (0x%x) read error, bad len",
581 bt_dev_err(ctx->hdev, "regmap: Register (0x%x) read error, bad addr",
598 struct regmap_ibt_context *ctx = context;
632 bt_dev_dbg(ctx->hdev, "Register (0x%x) write", le32_to_cpu(cp->addr));
634 skb = hci_cmd_sync(ctx->hdev, ctx->op_write, plen, cp, HCI_CMD_TIMEOUT);
637 bt_dev_err(ctx->hdev, "regmap: Register (0x%x) write error (%d)",
683 struct regmap_ibt_context *ctx;
688 ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
689 if (!ctx)
692 ctx->op_read = opcode_read;
693 ctx->op_write = opcode_write;
694 ctx->hdev = hdev;
696 return regmap_init(&hdev->dev, ®map_ibt, ctx, ®map_ibt_cfg);