Lines Matching defs:slot
15 struct mvs_slot_info *slot;
16 slot = task->lldd_task;
17 *tag = slot->slot_tag;
315 struct mvs_slot_info *slot = &mvi->slot_info[tag];
346 buf_tmp = slot->buf;
347 buf_tmp_dma = slot->buf_dma;
370 slot->response = buf_tmp;
376 * Fill in TX ring and command slot header
378 slot->tx = mvi->tx_prod;
435 struct mvs_slot_info *slot;
450 slot = &mvi->slot_info[tag];
451 slot->tx = mvi->tx_prod;
486 buf_cmd = buf_tmp = slot->buf;
487 buf_tmp_dma = slot->buf_dma;
515 slot->response = buf_tmp;
563 struct mvs_slot_info *slot;
574 slot = &mvi->slot_info[tag];
579 slot->tx = mvi->tx_prod;
599 buf_cmd = buf_tmp = slot->buf;
600 buf_tmp_dma = slot->buf_dma;
626 slot->response = buf_tmp;
695 struct mvs_slot_info *slot;
771 slot = &mvi->slot_info[tag];
774 slot->n_elem = n_elem;
775 slot->slot_tag = tag;
777 slot->buf = dma_pool_zalloc(mvi->dma_pool, GFP_ATOMIC, &slot->buf_dma);
778 if (!slot->buf) {
784 tei.hdr = &mvi->slot[tag];
811 slot->task = task;
812 slot->port = tei.port;
813 task->lldd_task = slot;
814 list_add_tail(&slot->entry, &tei.port->list);
823 dma_pool_free(mvi->dma_pool, slot->buf, slot->buf_dma);
868 struct mvs_slot_info *slot, u32 slot_idx)
870 if (!slot)
872 if (!slot->task)
875 if (slot->n_elem)
877 slot->n_elem, task->data_dir);
895 if (slot->buf) {
896 dma_pool_free(mvi->dma_pool, slot->buf, slot->buf_dma);
897 slot->buf = NULL;
899 list_del_init(&slot->entry);
901 slot->task = NULL;
902 slot->port = NULL;
903 slot->slot_tag = 0xFFFFFFFF;
1334 /* mandatory SAM-3, still need free task/slot info */
1372 struct mvs_slot_info *slot;
1375 slot = task->lldd_task;
1376 slot_no = (u32) (slot - mvi->slot_info);
1386 struct mvs_slot_info *slot = task->lldd_task;
1387 u32 slot_idx = (u32)(slot - mvi->slot_info);
1389 "slot=%p slot_idx=x%x\n",
1390 mvi, task, slot, slot_idx);
1392 mvs_slot_task_free(mvi, task, slot, slot_idx);
1481 struct mvs_slot_info *slot = &mvi->slot_info[slot_idx];
1483 u32 err_dw0 = le32_to_cpu(*(u32 *)slot->response);
1484 u32 err_dw1 = le32_to_cpu(*((u32 *)slot->response + 1));
1499 struct ssp_response_iu *iu = slot->response +
1506 mv_printk("reuse same slot, retry command.\n");
1532 struct mvs_slot_info *slot = &mvi->slot_info[slot_idx];
1533 struct sas_task *task = slot->task;
1566 mvs_slot_task_free(mvi, task, slot, slot_idx);
1579 * error info record present; slot->response is 32 bit aligned but may
1583 && (*((u32 *)slot->response)
1584 || *(((u32 *)slot->response) + 1)))) {
1585 mv_dprintk("port %d slot %d rx_desc %X has error info"
1586 "%016llX.\n", slot->port->sas_port.id, slot_idx,
1587 rx_desc, get_unaligned_le64(slot->response));
1602 struct ssp_response_iu *iu = slot->response +
1614 slot->response + sizeof(struct mvs_err_info),
1631 if (!slot->port->port_attached) {
1632 mv_dprintk("port %d has removed.\n", slot->port->sas_port.id);
1643 mvs_slot_task_free(mvi, task, slot, slot_idx);
1661 struct mvs_slot_info *slot, *slot2;
1672 list_for_each_entry_safe(slot, slot2, &port->list, entry) {
1674 slot_idx = (u32) (slot - mvi->slot_info);
1675 task = slot->task;
1680 mv_printk("Release slot [%x] tag[%x], task [%p]:\n",
1681 slot_idx, slot->slot_tag, task);