Lines Matching defs:command
111 * include issuing a DMA or port control command to the adapter,
289 static int dfx_hw_port_ctrl_req(DFX_board_t *bp, PI_UINT32 command, PI_UINT32 data_a, PI_UINT32 data_b, PI_UINT32 *host_data);
1174 /* Reserve space for command request buffer */
1181 /* Reserve space for command response buffer */
1325 * in this command.
1348 printk("%s: DMA command request failed!\n", bp->dev->name);
1364 printk("%s: DMA command request failed!\n", bp->dev->name);
1402 /* Issue START command and bring adapter to LINK_(UN)AVAILABLE state */
1407 printk("%s: Start command failed\n", bp->dev->name);
2447 * free entries in CAM, this routine ensures that the command
2468 * Fill in command request information
2472 * the firmware address filter set command expects each
2475 * multicast table entry into each command entry. This
2476 * is also why we must first clear the entire command
2484 /* Now add unicast addresses to command request buffer, if any */
2491 p_addr++; /* point to next command entry */
2495 /* Now add multicast addresses to command request buffer, if any */
2502 p_addr++; /* point to next command entry */
2506 /* Issue command to update adapter CAM, then return */
2549 /* Fill in command request information */
2572 /* Issue command to update adapter filters, then return */
2586 * Sends PDQ DMA command to adapter firmware
2595 * The command request and response buffers are posted to the adapter in the manner
2609 * DFX_K_SUCCESS - DMA command succeeded
2611 * DFX_K_HW_TIMEOUT - DMA command timed out
2614 * Command request buffer has already been filled with desired DMA command.
2625 /* Make sure the adapter is in a state that we can issue the DMA command in */
2634 /* Put response buffer on the command response queue */
2646 /* Put request buffer on the command request queue */
2659 * Here we wait for the command request consumer index to be equal
2679 * Here we wait for the command response consumer index to be equal
2707 * Sends PDQ port control command to adapter firmware
2714 * command - port control command
2720 * Send generic port control command to adapter by writing
2724 * DFX_K_SUCCESS - port control command succeeded
2725 * DFX_K_HW_TIMEOUT - port control command timed out
2736 PI_UINT32 command,
2743 PI_UINT32 port_cmd; /* Port Control command register value */
2746 /* Set Command Error bit in command longword */
2748 port_cmd = (PI_UINT32) (command | PI_PCTRL_M_CMD_ERROR);
2750 /* Issue port command to the adapter */
2756 /* Now wait for command to complete */
2758 if (command == PI_PCTRL_M_BLAST_FLASH)
2759 timeout_cnt = 600000; /* set command timeout count to 60 seconds */
2761 timeout_cnt = 20000; /* set command timeout count to 2 seconds */