Lines Matching refs:config

513 	if (netif_running(slave) && (flp->config.station == FRAD_STATION_NODE))  in sdla_activate()
535 if (netif_running(slave) && (flp->config.station == FRAD_STATION_NODE)) in sdla_deactivate()
569 if (flp->config.station == FRAD_STATION_CPE) in sdla_assoc()
598 if (flp->config.station == FRAD_STATION_CPE) in sdla_deassoc()
630 NULL, 0, &dlp->config, &len); in sdla_dlci_conf()
633 &dlp->config, sizeof(struct dlci_conf) - 4 * sizeof(short), NULL, NULL); in sdla_dlci_conf()
949 if (flp->config.station == FRAD_STATION_NODE) in sdla_close()
991 struct frad_conf config; member
1019 memcpy(&data.config, &flp->config, sizeof(struct frad_conf)); in sdla_open()
1064 if (flp->config.station == FRAD_STATION_CPE) in sdla_open()
1083 …sdla_cmd(dev, SDLA_SET_DLCI_CONFIGURATION, abs(flp->dlci[i]), 0, &dlp->config, sizeof(struct dlci_… in sdla_open()
1110 if(copy_from_user(&data.config, conf, sizeof(struct frad_conf))) in sdla_config()
1113 if (data.config.station & ~FRAD_STATION_NODE) in sdla_config()
1116 if (data.config.flags & ~FRAD_VALID_FLAGS) in sdla_config()
1119 if ((data.config.kbaud < 0) || in sdla_config()
1120 ((data.config.kbaud > 128) && (flp->type != SDLA_S508))) in sdla_config()
1123 if (data.config.clocking & ~(FRAD_CLOCK_INT | SDLA_S508_PORT_RS232)) in sdla_config()
1126 if ((data.config.mtu < 0) || (data.config.mtu > SDLA_MAX_MTU)) in sdla_config()
1129 if ((data.config.T391 < 5) || (data.config.T391 > 30)) in sdla_config()
1132 if ((data.config.T392 < 5) || (data.config.T392 > 30)) in sdla_config()
1135 if ((data.config.N391 < 1) || (data.config.N391 > 255)) in sdla_config()
1138 if ((data.config.N392 < 1) || (data.config.N392 > 10)) in sdla_config()
1141 if ((data.config.N393 < 1) || (data.config.N393 > 10)) in sdla_config()
1144 memcpy(&flp->config, &data.config, sizeof(struct frad_conf)); in sdla_config()
1145 flp->config.flags |= SDLA_DIRECT_RECV; in sdla_config()
1148 flp->config.flags |= SDLA_TX70_RX30; in sdla_config()
1150 if (dev->mtu != flp->config.mtu) in sdla_config()
1153 dev->mtu = flp->config.mtu; in sdla_config()
1156 flp->master[i]->mtu = flp->config.mtu; in sdla_config()
1159 flp->config.mtu += sizeof(struct frhdr); in sdla_config()
1178 memcpy(&data.config, &flp->config, sizeof(struct frad_conf)); in sdla_config()
1180 memset(&data.config, 0, sizeof(struct frad_conf)); in sdla_config()
1182 memcpy(&flp->config, &data.config, sizeof(struct frad_conf)); in sdla_config()
1183 data.config.flags &= FRAD_VALID_FLAGS; in sdla_config()
1184 …data.config.mtu -= data.config.mtu > sizeof(struct frhdr) ? sizeof(struct frhdr) : data.config.mtu; in sdla_config()
1185 return copy_to_user(conf, &data.config, sizeof(struct frad_conf))?-EFAULT:0; in sdla_config()
1243 memcpy(&data, &flp->config, sizeof(struct frad_conf)); in sdla_reconfig()