Lines Matching full:intr
15 void vnic_intr_free(struct vnic_intr *intr) in vnic_intr_free() argument
17 intr->ctrl = NULL; in vnic_intr_free()
20 int vnic_intr_alloc(struct vnic_dev *vdev, struct vnic_intr *intr, in vnic_intr_alloc() argument
23 intr->index = index; in vnic_intr_alloc()
24 intr->vdev = vdev; in vnic_intr_alloc()
26 intr->ctrl = vnic_dev_get_res(vdev, RES_TYPE_INTR_CTRL, index); in vnic_intr_alloc()
27 if (!intr->ctrl) { in vnic_intr_alloc()
28 printk(KERN_ERR "Failed to hook INTR[%d].ctrl resource\n", in vnic_intr_alloc()
36 void vnic_intr_init(struct vnic_intr *intr, unsigned int coalescing_timer, in vnic_intr_init() argument
39 iowrite32(coalescing_timer, &intr->ctrl->coalescing_timer); in vnic_intr_init()
40 iowrite32(coalescing_type, &intr->ctrl->coalescing_type); in vnic_intr_init()
41 iowrite32(mask_on_assertion, &intr->ctrl->mask_on_assertion); in vnic_intr_init()
42 iowrite32(0, &intr->ctrl->int_credits); in vnic_intr_init()
45 void vnic_intr_clean(struct vnic_intr *intr) in vnic_intr_clean() argument
47 iowrite32(0, &intr->ctrl->int_credits); in vnic_intr_clean()