Lines Matching defs:config

95 	struct smsc911x_platform_config config;
146 #define __smsc_shift(pdata, reg) ((reg) << ((pdata)->config.shift))
150 if (pdata->config.flags & SMSC911X_USE_32BIT)
153 if (pdata->config.flags & SMSC911X_USE_16BIT)
164 if (pdata->config.flags & SMSC911X_USE_32BIT)
167 if (pdata->config.flags & SMSC911X_USE_16BIT)
192 if (pdata->config.flags & SMSC911X_USE_32BIT) {
197 if (pdata->config.flags & SMSC911X_USE_16BIT) {
209 if (pdata->config.flags & SMSC911X_USE_32BIT) {
214 if (pdata->config.flags & SMSC911X_USE_16BIT) {
244 if (pdata->config.flags & SMSC911X_SWAP_FIFO) {
251 if (pdata->config.flags & SMSC911X_USE_32BIT) {
256 if (pdata->config.flags & SMSC911X_USE_16BIT) {
276 if (pdata->config.flags & SMSC911X_SWAP_FIFO) {
283 if (pdata->config.flags & SMSC911X_USE_32BIT) {
289 if (pdata->config.flags & SMSC911X_USE_16BIT) {
310 if (pdata->config.flags & SMSC911X_SWAP_FIFO) {
317 if (pdata->config.flags & SMSC911X_USE_32BIT) {
322 if (pdata->config.flags & SMSC911X_USE_16BIT) {
342 if (pdata->config.flags & SMSC911X_SWAP_FIFO) {
349 if (pdata->config.flags & SMSC911X_USE_32BIT) {
355 if (pdata->config.flags & SMSC911X_USE_16BIT) {
661 if (pdata->config.flags & SMSC911X_FORCE_INTERNAL_PHY) {
664 } else if (pdata->config.flags & SMSC911X_FORCE_EXTERNAL_PHY) {
1029 pdata->config.phy_interface);
1641 if (pdata->config.irq_polarity) {
1648 if (pdata->config.irq_type) {
2286 if (pdata->config.flags & SMSC911X_SAVE_MAC_ADDRESS) {
2359 static int smsc911x_probe_config(struct smsc911x_platform_config *config,
2369 config->phy_interface = phy_interface;
2371 device_get_mac_address(dev, config->mac, ETH_ALEN);
2377 config->flags |= SMSC911X_USE_32BIT;
2379 config->flags |= SMSC911X_USE_16BIT;
2381 device_property_read_u32(dev, "reg-shift", &config->shift);
2384 config->irq_polarity = SMSC911X_IRQ_POLARITY_ACTIVE_HIGH;
2387 config->irq_type = SMSC911X_IRQ_TYPE_PUSH_PULL;
2390 config->flags |= SMSC911X_FORCE_INTERNAL_PHY;
2393 config->flags |= SMSC911X_FORCE_EXTERNAL_PHY;
2396 config->flags |= SMSC911X_SAVE_MAC_ADDRESS;
2405 struct smsc911x_platform_config *config = dev_get_platdata(&pdev->dev);
2471 retval = smsc911x_probe_config(&pdata->config, &pdev->dev);
2472 if (retval && config) {
2473 /* copy config parameters across to pdata */
2474 memcpy(&pdata->config, config, sizeof(pdata->config));
2479 SMSC_WARN(pdata, probe, "Error smsc911x config not found");
2486 if (pdata->config.shift)
2520 } else if (is_valid_ether_addr(pdata->config.mac)) {
2521 memcpy(dev->dev_addr, pdata->config.mac, ETH_ALEN);