Lines Matching defs:intr_context
667 struct intr_context *ctx = qdev->intr_context + intr;
692 struct intr_context *ctx;
700 ctx = qdev->intr_context + intr;
722 atomic_set(&qdev->intr_context[i].irq_cnt, 1);
2291 struct intr_context *ctx = &qdev->intr_context[rx_ring->cq_id];
2401 struct intr_context *intr_context = &qdev->intr_context[0];
2406 if (atomic_read(&qdev->intr_context[0].irq_cnt)) {
2414 var = ql_disable_completion_interrupt(qdev, intr_context->intr);
2440 ql_disable_completion_interrupt(qdev, intr_context->intr);
2453 if (var & intr_context->irq_mask) {
2456 ql_disable_completion_interrupt(qdev, intr_context->intr);
2460 ql_enable_completion_interrupt(qdev, intr_context->intr);
3317 static void ql_set_irq_mask(struct ql_adapter *qdev, struct intr_context *ctx)
3344 * Here we build the intr_context structures based on
3346 * The intr_context structure is used to hook each vector
3352 struct intr_context *intr_context = &qdev->intr_context[0];
3356 * own intr_context since we have separate
3359 for (i = 0; i < qdev->intr_count; i++, intr_context++) {
3361 intr_context->intr = i;
3362 intr_context->qdev = qdev;
3366 ql_set_irq_mask(qdev, intr_context);
3371 intr_context->intr_en_mask =
3375 intr_context->intr_dis_mask =
3379 intr_context->intr_read_mask =
3389 intr_context->handler = qlge_isr;
3390 sprintf(intr_context->name, "%s-rx-%d",
3396 intr_context->handler = qlge_msix_rx_isr;
3397 sprintf(intr_context->name, "%s-rx-%d",
3403 * All rx_rings use the same intr_context since
3406 intr_context->intr = 0;
3407 intr_context->qdev = qdev;
3412 intr_context->intr_en_mask =
3414 intr_context->intr_dis_mask =
3417 intr_context->intr_read_mask =
3422 intr_context->handler = qlge_isr;
3423 sprintf(intr_context->name, "%s-single_irq", qdev->ndev->name);
3429 ql_set_irq_mask(qdev, intr_context);
3440 struct intr_context *intr_context = &qdev->intr_context[0];
3442 for (i = 0; i < qdev->intr_count; i++, intr_context++) {
3443 if (intr_context->hooked) {
3464 struct intr_context *intr_context = &qdev->intr_context[0];
3468 for (i = 0; i < qdev->intr_count; i++, intr_context++) {
3469 atomic_set(&intr_context->irq_cnt, 0);
3472 intr_context->handler,
3474 intr_context->name,
3491 intr_context->name);
3500 intr_context->name);
3509 intr_context->name, &qdev->rx_ring[0]);
3520 intr_context->name);
3522 intr_context->hooked = 1;