Lines Matching defs:handle

156 static void mpi3mr_dev_rmhs_send_tm(struct mpi3mr_ioc *mrioc, u16 handle,
694 * __mpi3mr_get_tgtdev_by_handle -Get tgtdev from device handle
696 * @handle: Device handle
698 * Accessor to retrieve target device from the device handle.
704 struct mpi3mr_ioc *mrioc, u16 handle)
710 if (tgtdev->dev_handle == handle)
720 * mpi3mr_get_tgtdev_by_handle -Get tgtdev from device handle
722 * @handle: Device handle
724 * Accessor to retrieve target device from the device handle.
730 struct mpi3mr_ioc *mrioc, u16 handle)
736 tgtdev = __mpi3mr_get_tgtdev_by_handle(mrioc, handle);
874 ioc_info(mrioc, "%s :Removing handle(0x%04x), wwid(0x%016llx)\n",
901 ioc_info(mrioc, "%s :Removed handle(0x%04x), wwid(0x%016llx)\n",
1307 "%s :device status change: handle(0x%04x): reason code(0x%x)\n",
1369 "%s :Device info change: handle(0x%04x): persist_id(0x%x)\n",
1407 * mpi3mr_enclosure_find_by_handle - enclosure search by handle
1409 * @handle: Firmware device handle of the enclosure
1411 * This searches for enclosure device based on handle, then returns the
1417 struct mpi3mr_ioc *mrioc, u16 handle)
1422 if (le16_to_cpu(enclosure_dev->pg0.enclosure_handle) != handle)
1453 "%s: handle(0x%04x), enclosure logical id(0x%016llx)\n",
1530 u16 handle;
1561 handle = le16_to_cpu(event_data->phy_entry[i].attached_dev_handle);
1562 if (!handle)
1591 __func__, phy_number, handle, status_str, link_rate,
1613 u16 handle;
1643 handle = le16_to_cpu(event_data->phy_entry[i].attached_dev_handle);
1644 if (!handle)
1646 tgtdev = mpi3mr_get_tgtdev_by_handle(mrioc, handle);
1674 mpi3mr_update_links(mrioc, parent_sas_address, handle,
1707 u16 handle;
1738 handle =
1740 if (!handle)
1770 __func__, port_number, handle, status_str, link_rate,
1792 u16 handle;
1801 handle =
1803 if (!handle)
1805 tgtdev = mpi3mr_get_tgtdev_by_handle(mrioc, handle);
1911 u16 perst_id, handle, dev_info;
1935 handle = le16_to_cpu(dev_pg0->dev_handle);
1948 mpi3mr_expander_add(mrioc, handle);
2146 "%s :dev_rmhs_iouctrl_complete:handle(0x%04x), ioc_status(0x%04x), loginfo(0x%08x)\n",
2153 "%s :dev_rmhs_iouctrl_complete: handle(0x%04x)retrying handshake retry=%d\n",
2161 "%s :dev removal handshake failed after all retries: handle(0x%04x)\n",
2165 "%s :dev removal handshake completed successfully: handle(0x%04x)\n",
2173 drv_cmd->dev_handle = delayed_dev_rmhs->handle;
2177 "%s :dev_rmhs_iouctrl_complete: processing delayed TM: handle(0x%04x)\n",
2221 "dev_rmhs_tr_complete:handle(0x%04x), ioc_status(0x%04x), loginfo(0x%08x), term_count(%d)\n",
2226 pr_info(IOCNAME "Issuing IOU CTL: handle(0x%04x) dev_rmhs idx(%d)\n",
2259 * @handle: Device handle
2269 static void mpi3mr_dev_rmhs_send_tm(struct mpi3mr_ioc *mrioc, u16 handle,
2282 tgtdev = __mpi3mr_get_tgtdev_by_handle(mrioc, handle);
2305 delayed_dev_rmhs->handle = handle;
2309 ioc_info(mrioc, "%s :DevRmHs: tr:handle(0x%04x) is postponed\n",
2310 __func__, handle);
2319 __func__, handle, cmd_idx);
2329 drv_cmd->dev_handle = handle;
2331 tm_req.dev_handle = cpu_to_le16(handle);
2337 set_bit(handle, mrioc->removepend_bitmap);
2511 u16 handle;
2517 handle = le16_to_cpu(topo_evt->port_entry[i].attached_dev_handle);
2518 if (!handle)
2522 tgtdev = mpi3mr_get_tgtdev_by_handle(mrioc, handle);
2533 mpi3mr_dev_rmhs_send_tm(mrioc, handle, NULL,
2577 u16 handle;
2583 handle = le16_to_cpu(topo_evt->phy_entry[i].attached_dev_handle);
2584 if (!handle)
2589 tgtdev = mpi3mr_get_tgtdev_by_handle(mrioc, handle);
2600 mpi3mr_dev_rmhs_send_tm(mrioc, handle, NULL,
3338 "%s :Command issued to handle 0x%02x returned with error 0x%04x loginfo 0x%08x, qid %d\n",
3630 * @handle: Device handle
3646 u16 handle, uint lun, u16 htag, ulong timeout,
3660 __func__, tm_type, handle);
3686 tm_req.dev_handle = cpu_to_le16(handle);
3693 tgtdev = mpi3mr_get_tgtdev_by_handle(mrioc, handle);
3757 "task management request to handle(0x%04x) is failed with ioc_status(0x%04x) log_info(0x%08x)\n",
3758 handle, drv_cmd->ioc_status, drv_cmd->ioc_loginfo);
3777 "task management request type(%d) completed for handle(0x%04x) with ioc_status(0x%04x), log_info(0x%08x), termination_count(%d), response:%s(0x%x)\n",
3778 tm_type, handle, drv_cmd->ioc_status, drv_cmd->ioc_loginfo,
4107 "%s:target(handle = 0x%04x) is removed, target reset is not issued\n",
4116 "Target Reset is issued to handle(0x%04x)\n",
4179 "%s: device(handle = 0x%04x) is removed, device(LUN) reset is not issued\n",
4188 "Device(lun) Reset is issued to handle(0x%04x)\n", dev_handle);
4581 * The controller hardware cannot handle certain unmap commands