Lines Matching full:intr
26 void svnic_intr_free(struct vnic_intr *intr) in svnic_intr_free() argument
28 intr->ctrl = NULL; in svnic_intr_free()
31 int svnic_intr_alloc(struct vnic_dev *vdev, struct vnic_intr *intr, in svnic_intr_alloc() argument
34 intr->index = index; in svnic_intr_alloc()
35 intr->vdev = vdev; in svnic_intr_alloc()
37 intr->ctrl = svnic_dev_get_res(vdev, RES_TYPE_INTR_CTRL, index); in svnic_intr_alloc()
38 if (!intr->ctrl) { in svnic_intr_alloc()
39 pr_err("Failed to hook INTR[%d].ctrl resource\n", in svnic_intr_alloc()
47 void svnic_intr_init(struct vnic_intr *intr, unsigned int coalescing_timer, in svnic_intr_init() argument
50 iowrite32(coalescing_timer, &intr->ctrl->coalescing_timer); in svnic_intr_init()
51 iowrite32(coalescing_type, &intr->ctrl->coalescing_type); in svnic_intr_init()
52 iowrite32(mask_on_assertion, &intr->ctrl->mask_on_assertion); in svnic_intr_init()
53 iowrite32(0, &intr->ctrl->int_credits); in svnic_intr_init()
56 void svnic_intr_clean(struct vnic_intr *intr) in svnic_intr_clean() argument
58 iowrite32(0, &intr->ctrl->int_credits); in svnic_intr_clean()