Lines Matching refs:match
356 struct scpi_xfer *t, *match = NULL;
369 match = list_first_entry(&ch->rx_pending, struct scpi_xfer,
371 list_del(&match->node);
376 match = t;
381 if (match && !completion_done(&match->done)) {
389 len = match->rx_len;
391 match->status = ioread32(&mem->status);
392 memcpy_fromio(match->rx_buf, mem->payload, len);
396 len = min_t(unsigned int, match->rx_len, CMD_SIZE(cmd));
398 match->status = ioread32(&mem->status);
399 memcpy_fromio(match->rx_buf, mem->payload, len);
402 if (match->rx_len > len)
403 memset(match->rx_buf + len, 0, match->rx_len - len);
404 complete(&match->done);