Lines Matching defs:slot

15 		struct mvs_slot_info *slot;
16 slot = task->lldd_task;
17 *tag = slot->slot_tag;
314 struct mvs_slot_info *slot = &mvi->slot_info[tag];
345 buf_tmp = slot->buf;
346 buf_tmp_dma = slot->buf_dma;
369 slot->response = buf_tmp;
375 * Fill in TX ring and command slot header
377 slot->tx = mvi->tx_prod;
434 struct mvs_slot_info *slot;
449 slot = &mvi->slot_info[tag];
450 slot->tx = mvi->tx_prod;
485 buf_cmd = buf_tmp = slot->buf;
486 buf_tmp_dma = slot->buf_dma;
514 slot->response = buf_tmp;
562 struct mvs_slot_info *slot;
573 slot = &mvi->slot_info[tag];
578 slot->tx = mvi->tx_prod;
602 buf_cmd = buf_tmp = slot->buf;
603 buf_tmp_dma = slot->buf_dma;
629 slot->response = buf_tmp;
699 struct mvs_slot_info *slot;
769 slot = &mvi->slot_info[tag];
772 slot->n_elem = n_elem;
773 slot->slot_tag = tag;
775 slot->buf = dma_pool_zalloc(mvi->dma_pool, GFP_ATOMIC, &slot->buf_dma);
776 if (!slot->buf) {
782 tei.hdr = &mvi->slot[tag];
809 slot->task = task;
810 slot->port = tei.port;
811 task->lldd_task = slot;
812 list_add_tail(&slot->entry, &tei.port->list);
824 dma_pool_free(mvi->dma_pool, slot->buf, slot->buf_dma);
874 struct mvs_slot_info *slot, u32 slot_idx)
876 if (!slot)
878 if (!slot->task)
881 if (slot->n_elem)
883 slot->n_elem, task->data_dir);
901 if (slot->buf) {
902 dma_pool_free(mvi->dma_pool, slot->buf, slot->buf_dma);
903 slot->buf = NULL;
905 list_del_init(&slot->entry);
907 slot->task = NULL;
908 slot->port = NULL;
909 slot->slot_tag = 0xFFFFFFFF;
1462 /* mandatory SAM-3, still need free task/slot info */
1508 struct mvs_slot_info *slot;
1511 slot = task->lldd_task;
1512 slot_no = (u32) (slot - mvi->slot_info);
1522 struct mvs_slot_info *slot = task->lldd_task;
1523 u32 slot_idx = (u32)(slot - mvi->slot_info);
1525 "slot=%p slot_idx=x%x\n",
1526 mvi, task, slot, slot_idx);
1528 mvs_slot_task_free(mvi, task, slot, slot_idx);
1650 struct mvs_slot_info *slot = &mvi->slot_info[slot_idx];
1652 u32 err_dw0 = le32_to_cpu(*(u32 *)slot->response);
1653 u32 err_dw1 = le32_to_cpu(*((u32 *)slot->response + 1));
1668 struct ssp_response_iu *iu = slot->response +
1675 mv_printk("reuse same slot, retry command.\n");
1701 struct mvs_slot_info *slot = &mvi->slot_info[slot_idx];
1702 struct sas_task *task = slot->task;
1736 mvs_slot_task_free(mvi, task, slot, slot_idx);
1749 * error info record present; slot->response is 32 bit aligned but may
1753 && (*((u32 *)slot->response)
1754 || *(((u32 *)slot->response) + 1)))) {
1755 mv_dprintk("port %d slot %d rx_desc %X has error info"
1756 "%016llX.\n", slot->port->sas_port.id, slot_idx,
1757 rx_desc, get_unaligned_le64(slot->response));
1772 struct ssp_response_iu *iu = slot->response +
1784 slot->response + sizeof(struct mvs_err_info),
1801 if (!slot->port->port_attached) {
1802 mv_dprintk("port %d has removed.\n", slot->port->sas_port.id);
1813 mvs_slot_task_free(mvi, task, slot, slot_idx);
1831 struct mvs_slot_info *slot, *slot2;
1842 list_for_each_entry_safe(slot, slot2, &port->list, entry) {
1844 slot_idx = (u32) (slot - mvi->slot_info);
1845 task = slot->task;
1850 mv_printk("Release slot [%x] tag[%x], task [%p]:\n",
1851 slot_idx, slot->slot_tag, task);