Lines Matching defs:scan
1889 * @mport_id: mport device ID for which fabric scan routine has to be set
1898 * In case of RIO_MPORT_ANY skips mports with valid scan routines (no error).
1903 struct rio_scan_node *scan;
1919 list_for_each_entry(scan, &rio_scans, node) {
1920 if (scan->mport_id == mport_id) {
1927 * Allocate and initialize new scan registration node.
1929 scan = kzalloc(sizeof(*scan), GFP_KERNEL);
1930 if (!scan) {
1935 scan->mport_id = mport_id;
1936 scan->ops = scan_ops;
1939 * Traverse the list of registered mports to attach this new scan.
1941 * The new scan with matching mport ID overrides any previously attached
1942 * scan assuming that old scan (if any) is the default one (based on the
1944 * If the new scan is the global one, it will be attached only to mports
1955 list_add_tail(&scan->node, &rio_scans);
1966 * @mport_id: mport device ID for which fabric scan routine has to be
1978 struct rio_scan_node *scan;
1992 list_for_each_entry(scan, &rio_scans, node) {
1993 if (scan->mport_id == mport_id) {
1994 list_del(&scan->node);
1995 kfree(scan);
2163 struct rio_scan_node *scan = NULL;
2172 list_for_each_entry(scan, &rio_scans, node) {
2173 if (port->id == scan->mport_id ||
2174 scan->mport_id == RIO_MPORT_ANY) {
2175 port->nscan = scan->ops;
2176 if (port->id == scan->mport_id)