Lines Matching refs:p
1516 struct ipw_priv *p = dev_get_drvdata(d); in status_show() local
1517 return sprintf(buf, "0x%08x\n", (int)p->status); in status_show()
1525 struct ipw_priv *p = dev_get_drvdata(d); in cfg_show() local
1526 return sprintf(buf, "0x%08x\n", (int)p->config); in cfg_show()
1544 struct ipw_priv *p = dev_get_drvdata(d); in ucode_version_show() local
1546 if (ipw_get_ordinal(p, IPW_ORD_STAT_UCODE_VERSION, &tmp, &len)) in ucode_version_show()
1558 struct ipw_priv *p = dev_get_drvdata(d); in rtc_show() local
1560 if (ipw_get_ordinal(p, IPW_ORD_STAT_RTC, &tmp, &len)) in rtc_show()
1575 struct ipw_priv *p = dev_get_drvdata(d); in eeprom_delay_show() local
1576 int n = p->eeprom_delay; in eeprom_delay_show()
1583 struct ipw_priv *p = dev_get_drvdata(d); in eeprom_delay_store() local
1584 sscanf(buf, "%i", &p->eeprom_delay); in eeprom_delay_store()
1594 struct ipw_priv *p = dev_get_drvdata(d); in command_event_reg_show() local
1596 reg = ipw_read_reg32(p, IPW_INTERNAL_CMD_EVENT); in command_event_reg_show()
1604 struct ipw_priv *p = dev_get_drvdata(d); in command_event_reg_store() local
1607 ipw_write_reg32(p, IPW_INTERNAL_CMD_EVENT, reg); in command_event_reg_store()
1617 struct ipw_priv *p = dev_get_drvdata(d); in mem_gpio_reg_show() local
1619 reg = ipw_read_reg32(p, 0x301100); in mem_gpio_reg_show()
1627 struct ipw_priv *p = dev_get_drvdata(d); in mem_gpio_reg_store() local
1630 ipw_write_reg32(p, 0x301100, reg); in mem_gpio_reg_store()
1805 const char *p = buf; in speed_scan_store() local
1808 while ((channel = simple_strtol(p, NULL, 0))) { in speed_scan_store()
1819 p = strchr(p, ' '); in speed_scan_store()
1820 if (!p) in speed_scan_store()
1822 while (*p == ' ' || *p == '\t') in speed_scan_store()
1823 p++; in speed_scan_store()
2567 static inline void eeprom_write_reg(struct ipw_priv *p, u32 data) in eeprom_write_reg() argument
2569 ipw_write_reg32(p, FW_MEM_REG_EEPROM_ACCESS, data); in eeprom_write_reg()
2572 udelay(p->eeprom_delay); in eeprom_write_reg()
2593 static inline void eeprom_write_bit(struct ipw_priv *p, u8 bit) in eeprom_write_bit() argument
2596 eeprom_write_reg(p, EEPROM_BIT_CS | d); in eeprom_write_bit()
2597 eeprom_write_reg(p, EEPROM_BIT_CS | d | EEPROM_BIT_SK); in eeprom_write_bit()
8086 struct list_head *p; in is_duplicate_packet() local
8091 list_for_each(p, &priv->ibss_mac_hash[index]) { in is_duplicate_packet()
8093 list_entry(p, struct ipw_ibss_seq, list); in is_duplicate_packet()
8097 if (p == &priv->ibss_mac_hash[index]) { in is_duplicate_packet()
9560 char *p = extra; in ipw_wx_get_powermode() local
9562 p += scnprintf(p, MAX_WX_STRING, "Power save level: %d ", level); in ipw_wx_get_powermode()
9566 p += scnprintf(p, MAX_WX_STRING - (p - extra), "(AC)"); in ipw_wx_get_powermode()
9569 p += scnprintf(p, MAX_WX_STRING - (p - extra), "(BATTERY)"); in ipw_wx_get_powermode()
9572 p += scnprintf(p, MAX_WX_STRING - (p - extra), in ipw_wx_get_powermode()
9579 p += scnprintf(p, MAX_WX_STRING - (p - extra), " OFF"); in ipw_wx_get_powermode()
9581 wrqu->data.length = p - extra + 1; in ipw_wx_get_powermode()
10359 static int ipw_net_set_mac_address(struct net_device *dev, void *p) in ipw_net_set_mac_address() argument
10362 struct sockaddr *addr = p; in ipw_net_set_mac_address()
10379 struct ipw_priv *p = libipw_priv(dev); in ipw_ethtool_get_drvinfo() local
10388 ipw_get_ordinal(p, IPW_ORD_STAT_FW_VERSION, vers, &len); in ipw_ethtool_get_drvinfo()
10390 ipw_get_ordinal(p, IPW_ORD_STAT_FW_DATE, date, &len); in ipw_ethtool_get_drvinfo()
10394 strscpy(info->bus_info, pci_name(p->pci_dev), in ipw_ethtool_get_drvinfo()
10412 struct ipw_priv *p = libipw_priv(dev); in ipw_ethtool_get_eeprom() local
10416 mutex_lock(&p->mutex); in ipw_ethtool_get_eeprom()
10417 memcpy(bytes, &p->eeprom[eeprom->offset], eeprom->len); in ipw_ethtool_get_eeprom()
10418 mutex_unlock(&p->mutex); in ipw_ethtool_get_eeprom()
10425 struct ipw_priv *p = libipw_priv(dev); in ipw_ethtool_set_eeprom() local
10430 mutex_lock(&p->mutex); in ipw_ethtool_set_eeprom()
10431 memcpy(&p->eeprom[eeprom->offset], bytes, eeprom->len); in ipw_ethtool_set_eeprom()
10433 ipw_write8(p, i + IPW_EEPROM_DATA, p->eeprom[i]); in ipw_ethtool_set_eeprom()
10434 mutex_unlock(&p->mutex); in ipw_ethtool_set_eeprom()
11721 struct list_head *p, *q; in ipw_pci_remove() local
11775 list_for_each_safe(p, q, &priv->ibss_mac_hash[i]) { in ipw_pci_remove()
11776 list_del(p); in ipw_pci_remove()
11777 kfree(list_entry(p, struct ipw_ibss_seq, list)); in ipw_pci_remove()