Lines Matching full:intr
12 void svnic_intr_free(struct vnic_intr *intr) in svnic_intr_free() argument
14 intr->ctrl = NULL; in svnic_intr_free()
17 int svnic_intr_alloc(struct vnic_dev *vdev, struct vnic_intr *intr, in svnic_intr_alloc() argument
20 intr->index = index; in svnic_intr_alloc()
21 intr->vdev = vdev; in svnic_intr_alloc()
23 intr->ctrl = svnic_dev_get_res(vdev, RES_TYPE_INTR_CTRL, index); in svnic_intr_alloc()
24 if (!intr->ctrl) { in svnic_intr_alloc()
25 pr_err("Failed to hook INTR[%d].ctrl resource\n", in svnic_intr_alloc()
33 void svnic_intr_init(struct vnic_intr *intr, unsigned int coalescing_timer, in svnic_intr_init() argument
36 iowrite32(coalescing_timer, &intr->ctrl->coalescing_timer); in svnic_intr_init()
37 iowrite32(coalescing_type, &intr->ctrl->coalescing_type); in svnic_intr_init()
38 iowrite32(mask_on_assertion, &intr->ctrl->mask_on_assertion); in svnic_intr_init()
39 iowrite32(0, &intr->ctrl->int_credits); in svnic_intr_init()
42 void svnic_intr_clean(struct vnic_intr *intr) in svnic_intr_clean() argument
44 iowrite32(0, &intr->ctrl->int_credits); in svnic_intr_clean()