Lines Matching defs:primary
325 .name = "primary",
336 .desc = "Reselect primary slave once it comes up",
1145 char *p, *primary = newval->string;
1151 p = strchr(primary, '\n');
1154 /* check to see if we are clearing primary */
1155 if (!strlen(primary)) {
1156 netdev_dbg(bond->dev, "Setting primary slave to None\n");
1158 memset(bond->params.primary, 0, sizeof(bond->params.primary));
1164 if (strncmp(slave->dev->name, primary, IFNAMSIZ) == 0) {
1165 slave_dbg(bond->dev, slave->dev, "Setting as primary slave\n");
1167 strcpy(bond->params.primary, slave->dev->name);
1175 netdev_dbg(bond->dev, "Setting primary slave to None\n");
1179 strncpy(bond->params.primary, primary, IFNAMSIZ);
1180 bond->params.primary[IFNAMSIZ - 1] = 0;
1182 netdev_dbg(bond->dev, "Recording %s as primary, but it has not been enslaved yet\n",
1183 primary);