Lines Matching defs:config
21 * 0.20 Mike McLagan New transmit/receive flags for config
523 if (netif_running(slave) && (flp->config.station == FRAD_STATION_NODE))
545 if (netif_running(slave) && (flp->config.station == FRAD_STATION_NODE))
578 if (flp->config.station == FRAD_STATION_CPE)
606 if (flp->config.station == FRAD_STATION_CPE)
638 NULL, 0, &dlp->config, &len);
641 &dlp->config, sizeof(struct dlci_conf) - 4 * sizeof(short), NULL, NULL);
953 if (flp->config.station == FRAD_STATION_NODE)
993 struct frad_conf config;
1021 memcpy(&data.config, &flp->config, sizeof(struct frad_conf));
1066 if (flp->config.station == FRAD_STATION_CPE)
1085 sdla_cmd(dev, SDLA_SET_DLCI_CONFIGURATION, abs(flp->dlci[i]), 0, &dlp->config, sizeof(struct dlci_conf), NULL, NULL);
1110 if(copy_from_user(&data.config, conf, sizeof(struct frad_conf)))
1113 if (data.config.station & ~FRAD_STATION_NODE)
1116 if (data.config.flags & ~FRAD_VALID_FLAGS)
1119 if ((data.config.kbaud < 0) ||
1120 ((data.config.kbaud > 128) && (flp->type != SDLA_S508)))
1123 if (data.config.clocking & ~(FRAD_CLOCK_INT | SDLA_S508_PORT_RS232))
1126 if ((data.config.mtu < 0) || (data.config.mtu > SDLA_MAX_MTU))
1129 if ((data.config.T391 < 5) || (data.config.T391 > 30))
1132 if ((data.config.T392 < 5) || (data.config.T392 > 30))
1135 if ((data.config.N391 < 1) || (data.config.N391 > 255))
1138 if ((data.config.N392 < 1) || (data.config.N392 > 10))
1141 if ((data.config.N393 < 1) || (data.config.N393 > 10))
1144 memcpy(&flp->config, &data.config, sizeof(struct frad_conf));
1145 flp->config.flags |= SDLA_DIRECT_RECV;
1148 flp->config.flags |= SDLA_TX70_RX30;
1150 if (dev->mtu != flp->config.mtu)
1153 dev->mtu = flp->config.mtu;
1156 flp->master[i]->mtu = flp->config.mtu;
1159 flp->config.mtu += sizeof(struct frhdr);
1178 memcpy(&data.config, &flp->config, sizeof(struct frad_conf));
1180 memset(&data.config, 0, sizeof(struct frad_conf));
1182 memcpy(&flp->config, &data.config, sizeof(struct frad_conf));
1183 data.config.flags &= FRAD_VALID_FLAGS;
1184 data.config.mtu -= data.config.mtu > sizeof(struct frhdr) ? sizeof(struct frhdr) : data.config.mtu;
1185 return copy_to_user(conf, &data.config, sizeof(struct frad_conf))?-EFAULT:0;
1237 memcpy(&data, &flp->config, sizeof(struct frad_conf));