Lines Matching refs:chan

425 isp_fc_runstate(ispsoftc_t *isp, int chan, int tval)
427 fcparam *fcp = FCPARAM(isp, chan);
433 res = isp_control(isp, ISPCTL_FCLINK_TEST, chan, tval);
438 res = isp_control(isp, ISPCTL_SCAN_LOOP, chan);
443 res = isp_control(isp, ISPCTL_SCAN_FABRIC, chan);
448 res = isp_control(isp, ISPCTL_PDB_SYNC, chan);
458 isp_dump_portdb(ispsoftc_t *isp, int chan)
460 fcparam *fcp = FCPARAM(isp, chan);
483 chan, i, lp->handle, dbs[lp->state], buf1, lp->portid, buf2, lp->new_portid,
2118 isp_find_pdb_empty(ispsoftc_t *isp, int chan, fcportdb_t **lptr)
2120 fcparam *fcp = FCPARAM(isp, chan);
2135 isp_find_pdb_by_wwpn(ispsoftc_t *isp, int chan, uint64_t wwpn, fcportdb_t **lptr)
2137 fcparam *fcp = FCPARAM(isp, chan);
2154 isp_find_pdb_by_handle(ispsoftc_t *isp, int chan, uint16_t handle,
2157 fcparam *fcp = FCPARAM(isp, chan);
2174 isp_find_pdb_by_portid(ispsoftc_t *isp, int chan, uint32_t portid,
2177 fcparam *fcp = FCPARAM(isp, chan);
2197 uint16_t chan;
2200 for (chan = 0; chan < isp->isp_nchan; chan++) {
2201 fcparam *fcp = FCPARAM(isp, chan);
2207 *cp = chan;
2217 isp_add_wwn_entry(ispsoftc_t *isp, int chan, uint64_t wwpn, uint64_t wwnn,
2225 fcp = FCPARAM(isp, chan);
2229 chan, (unsigned long long) wwpn, s_id, nphdl);
2238 if ((VALID_INI(wwpn) && isp_find_pdb_by_wwpn(isp, chan, wwpn, &lp)) ||
2239 (VALID_PORT(s_id) && isp_find_pdb_by_portid(isp, chan, s_id, &lp))) {
2248 chan, (unsigned long long) lp->port_wwn,
2254 chan, (unsigned long long) lp->port_wwn,
2257 isp_dump_portdb(isp, chan);
2267 chan, lp->portid, nphdl,
2273 chan, lp->portid, nphdl,
2277 isp_dump_portdb(isp, chan);
2287 chan, lp->portid, nphdl,
2293 chan, lp->portid, nphdl,
2305 chan, (unsigned long long) lp->port_wwn,
2314 chan, (unsigned long long) lp->port_wwn,
2321 isp_async(isp, ISPASYNC_DEV_CHANGED, chan, lp);
2328 chan, (unsigned long long) lp->port_wwn,
2330 isp_async(isp, ISPASYNC_DEV_STAYED, chan, lp);
2344 chan, (unsigned long long) wwpn, s_id, nphdl);
2346 isp_dump_portdb(isp, chan);
2362 "PortID 0x%06x handle 0x%x vtgt %d %s added", chan,
2366 isp_async(isp, ISPASYNC_DEV_ARRIVED, chan, lp);
2373 isp_del_wwn_entry(ispsoftc_t *isp, int chan, uint64_t wwpn, uint16_t nphdl, uint32_t s_id)
2380 chan, (unsigned long long) wwpn, s_id, nphdl);
2384 fcp = FCPARAM(isp, chan);
2385 if (isp_find_pdb_by_handle(isp, chan, nphdl, &lp) == 0) {
2387 chan, (unsigned long long) wwpn, s_id, nphdl);
2388 isp_dump_portdb(isp, chan);
2392 chan, (unsigned long long) lp->port_wwn, lp->portid, nphdl, FC_PORTDB_TGT(isp, chan, lp));
2396 isp_async(isp, ISPASYNC_DEV_GONE, chan, lp);
2400 isp_del_all_wwn_entries(ispsoftc_t *isp, int chan)
2412 if (chan == ISP_NOCHAN) {
2413 for (chan = 0; chan < isp->isp_nchan; chan++) {
2414 isp_del_all_wwn_entries(isp, chan);
2419 if (chan > isp->isp_nchan) {
2423 fcp = FCPARAM(isp, chan);
2431 isp_del_wwn_entry(isp, chan, lp->port_wwn, lp->handle, lp->portid);