Lines Matching refs:scan
1954 * @mport_id: mport device ID for which fabric scan routine has to be set
1963 * In case of RIO_MPORT_ANY skips mports with valid scan routines (no error).
1968 struct rio_scan_node *scan;
1984 list_for_each_entry(scan, &rio_scans, node) {
1985 if (scan->mport_id == mport_id) {
1992 * Allocate and initialize new scan registration node.
1994 scan = kzalloc(sizeof(*scan), GFP_KERNEL);
1995 if (!scan) {
2000 scan->mport_id = mport_id;
2001 scan->ops = scan_ops;
2004 * Traverse the list of registered mports to attach this new scan.
2006 * The new scan with matching mport ID overrides any previously attached
2007 * scan assuming that old scan (if any) is the default one (based on the
2009 * If the new scan is the global one, it will be attached only to mports
2020 list_add_tail(&scan->node, &rio_scans);
2031 * @mport_id: mport device ID for which fabric scan routine has to be
2043 struct rio_scan_node *scan;
2057 list_for_each_entry(scan, &rio_scans, node) {
2058 if (scan->mport_id == mport_id) {
2059 list_del(&scan->node);
2060 kfree(scan);
2244 struct rio_scan_node *scan = NULL;
2253 list_for_each_entry(scan, &rio_scans, node) {
2254 if (port->id == scan->mport_id ||
2255 scan->mport_id == RIO_MPORT_ANY) {
2256 port->nscan = scan->ops;
2257 if (port->id == scan->mport_id)