Lines Matching full:intr
17 void vnic_intr_free(struct vnic_intr *intr) in vnic_intr_free() argument
19 intr->ctrl = NULL; in vnic_intr_free()
22 int vnic_intr_alloc(struct vnic_dev *vdev, struct vnic_intr *intr, in vnic_intr_alloc() argument
25 intr->index = index; in vnic_intr_alloc()
26 intr->vdev = vdev; in vnic_intr_alloc()
28 intr->ctrl = vnic_dev_get_res(vdev, RES_TYPE_INTR_CTRL, index); in vnic_intr_alloc()
29 if (!intr->ctrl) { in vnic_intr_alloc()
30 vdev_err(vdev, "Failed to hook INTR[%d].ctrl resource\n", in vnic_intr_alloc()
38 void vnic_intr_init(struct vnic_intr *intr, u32 coalescing_timer, in vnic_intr_init() argument
41 vnic_intr_coalescing_timer_set(intr, coalescing_timer); in vnic_intr_init()
42 iowrite32(coalescing_type, &intr->ctrl->coalescing_type); in vnic_intr_init()
43 iowrite32(mask_on_assertion, &intr->ctrl->mask_on_assertion); in vnic_intr_init()
44 iowrite32(0, &intr->ctrl->int_credits); in vnic_intr_init()
47 void vnic_intr_coalescing_timer_set(struct vnic_intr *intr, in vnic_intr_coalescing_timer_set() argument
50 iowrite32(vnic_dev_intr_coal_timer_usec_to_hw(intr->vdev, in vnic_intr_coalescing_timer_set()
51 coalescing_timer), &intr->ctrl->coalescing_timer); in vnic_intr_coalescing_timer_set()
54 void vnic_intr_clean(struct vnic_intr *intr) in vnic_intr_clean() argument
56 iowrite32(0, &intr->ctrl->int_credits); in vnic_intr_clean()