• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/pci/hotplug/

Lines Matching defs:hp_slot

62 	int hp_slot;
74 for (hp_slot = 0; hp_slot < 6; hp_slot++) {
75 if (change & (0x1L << hp_slot)) {
80 (hp_slot + ctrl->slot_device_offset), 0);
87 taskInfo->hp_slot = hp_slot;
92 func->presence_save = (temp_word >> hp_slot) & 0x01;
93 func->presence_save |= (temp_word >> (hp_slot + 7)) & 0x02;
95 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) {
136 int hp_slot;
153 for (hp_slot = 0; hp_slot < 6; hp_slot++) {
154 if (change & (0x0101 << hp_slot)) {
159 (hp_slot + ctrl->slot_device_offset), 0);
163 taskInfo->hp_slot = hp_slot;
167 p_slot = cpqhp_find_slot(ctrl, hp_slot + (readb(ctrl->hpc_reg + SLOT_MASK) >> 4));
176 temp_byte = (temp_word >> hp_slot) & 0x01;
177 temp_byte |= (temp_word >> (hp_slot + 7)) & 0x02;
183 dbg("hp_slot %d button pressed\n", hp_slot);
189 dbg("hp_slot %d button released\n", hp_slot);
196 dbg("hp_slot %d button cancel\n", hp_slot);
201 dbg("hp_slot %d button ignore\n", hp_slot);
209 func->presence_save = (temp_word >> hp_slot) & 0x01;
210 func->presence_save |= (temp_word >> (hp_slot + 7)) & 0x02;
212 if ((!(ctrl->ctrl_int_comp & (0x010000 << hp_slot))) ||
213 (!(ctrl->ctrl_int_comp & (0x01000000 << hp_slot)))) {
230 int hp_slot;
244 for (hp_slot = 0; hp_slot < 6; hp_slot++) {
245 if (change & (0x01 << hp_slot)) {
250 (hp_slot + ctrl->slot_device_offset), 0);
254 taskInfo->hp_slot = hp_slot;
258 if (ctrl->ctrl_int_comp & (0x00000100 << hp_slot)) {
272 amber_LED_on (ctrl, hp_slot);
273 green_LED_off (ctrl, hp_slot);
287 info("power fault bit %x set\n", hp_slot);
1112 * @hp_slot: the slot number where the adapter is installed.
1117 static u8 set_controller_speed(struct controller *ctrl, u8 adapter_speed, u8 hp_slot)
1133 if (slot->device == (hp_slot + ctrl->slot_device_offset))
1235 slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset);
1261 u8 hp_slot;
1266 hp_slot = func->device - ctrl->slot_device_offset;
1271 if (readl(ctrl->hpc_reg + INT_INPUT_CLEAR) & (0x01L << hp_slot))
1276 else if (is_slot_enabled (ctrl, hp_slot))
1282 enable_slot_power (ctrl, hp_slot);
1298 adapter_speed = get_adapter_speed(ctrl, hp_slot);
1300 if (set_controller_speed(ctrl, adapter_speed, hp_slot))
1304 disable_slot_power (ctrl, hp_slot);
1318 slot_enable (ctrl, hp_slot);
1319 green_LED_blink (ctrl, hp_slot);
1321 amber_LED_off (ctrl, hp_slot);
1355 amber_LED_on (ctrl, hp_slot);
1356 green_LED_off (ctrl, hp_slot);
1357 slot_disable (ctrl, hp_slot);
1381 amber_LED_on (ctrl, hp_slot);
1382 green_LED_off (ctrl, hp_slot);
1383 slot_disable (ctrl, hp_slot);
1409 u8 hp_slot;
1420 hp_slot = func->device - ctrl->slot_device_offset;
1421 dbg("%s: func->device, slot_offset, hp_slot = %d, %d ,%d\n",
1422 __func__, func->device, ctrl->slot_device_offset, hp_slot);
1427 enable_slot_power(ctrl, hp_slot);
1443 adapter_speed = get_adapter_speed(ctrl, hp_slot);
1445 if (set_controller_speed(ctrl, adapter_speed, hp_slot))
1449 disable_slot_power (ctrl, hp_slot);
1461 p_slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset);
1470 slot_enable (ctrl, hp_slot);
1473 green_LED_blink (ctrl, hp_slot);
1476 amber_LED_off (ctrl, hp_slot);
1543 amber_LED_on (ctrl, hp_slot);
1544 green_LED_off (ctrl, hp_slot);
1545 slot_disable (ctrl, hp_slot);
1575 green_LED_on (ctrl, hp_slot);
1586 amber_LED_on (ctrl, hp_slot);
1587 green_LED_off (ctrl, hp_slot);
1588 slot_disable (ctrl, hp_slot);
1614 u8 hp_slot;
1625 hp_slot = func->device - ctrl->slot_device_offset;
1626 dbg("In %s, hp_slot = %d\n", __func__, hp_slot);
1658 green_LED_off (ctrl, hp_slot);
1659 slot_disable (ctrl, hp_slot);
1665 temp_byte &= ~(0x01 << hp_slot);
1789 u8 hp_slot;
1798 hp_slot = ctrl->event_queue[loop].hp_slot;
1800 func = cpqhp_slot_find(ctrl->bus, (hp_slot + ctrl->slot_device_offset), 0);
1804 p_slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset);
1808 dbg("hp_slot %d, func %p, p_slot %p\n",
1809 hp_slot, func, p_slot);
1823 green_LED_on (ctrl, hp_slot);
1827 green_LED_off (ctrl, hp_slot);
1834 amber_LED_off (ctrl, hp_slot);
1847 if (is_slot_enabled (ctrl, hp_slot)) {
1860 amber_LED_off (ctrl, hp_slot);
1861 green_LED_blink (ctrl, hp_slot);
1870 p_slot->hp_slot = hp_slot;
1909 u8 hp_slot;
1916 hp_slot = p_slot->hp_slot;
1920 if (is_slot_enabled(ctrl, hp_slot)) {
1931 amber_LED_on(ctrl, hp_slot);
1932 green_LED_on(ctrl, hp_slot);
1954 amber_LED_on(ctrl, hp_slot);
1955 green_LED_off(ctrl, hp_slot);
1973 u8 device, hp_slot;
1983 hp_slot = device - ctrl->slot_device_offset;
1991 if (tempdword & (0x01 << hp_slot)) {
2013 func->presence_save = (temp_word >> hp_slot) & 0x01;
2014 func->presence_save |= (temp_word >> (hp_slot + 7)) & 0x02;
2016 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) {
2043 func->presence_save = (temp_word >> hp_slot) & 0x01;
2045 (temp_word >> (hp_slot + 7)) & 0x02;
2047 if (ctrl->ctrl_int_comp & (0x1L << hp_slot)) {