• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/scsi/

Lines Matching refs:NCR53c7x0_cmd

323 static void abnormal_finished (struct NCR53c7x0_cmd *cmd, int result);
329 static void intr_phase_mismatch (struct Scsi_Host *host, struct NCR53c7x0_cmd
331 static void intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd);
337 static void NCR53c7xx_dsa_fixup (struct NCR53c7x0_cmd *cmd);
340 NCR53c7x0_cmd *cmd);
357 int CmdPageStart = (0 - Ent_dsa_zero - sizeof(struct NCR53c7x0_cmd)) & 0xff;
478 * If one were, it would point to a per-NCR53c7x0_cmd select routine
594 * Purpose: convert jump instruction in issue array to NCR53c7x0_cmd
603 static inline struct NCR53c7x0_cmd *
611 * dsa field of the NCR53c7x0_cmd structure starts with the
620 (struct NCR53c7x0_cmd *) ((char *) bus_to_virt (issue[1]) -
622 offsetof(struct NCR53c7x0_cmd, dsa))
1035 max_cmd_size = sizeof(struct NCR53c7x0_cmd) + dsa_len +
1045 SCSI SCRIPT(tm) plus a single, maximum-sized NCR53c7x0_cmd structure.
1047 We need a NCR53c7x0_cmd structure for scan_scsis() when we are
1059 so we only need one here, and don't need to allocate NCR53c7x0_cmd
1613 * Function : static void NCR53c7xx_dsa_fixup (struct NCR53c7x0_cmd *cmd)
1618 * Inputs : cmd, a NCR53c7x0_cmd structure with a dsa area large
1623 NCR53c7xx_dsa_fixup (struct NCR53c7x0_cmd *cmd) {
1703 * Function : static void abnormal_finished (struct NCR53c7x0_cmd *cmd, int
1718 abnormal_finished (struct NCR53c7x0_cmd *cmd, int result) {
1725 volatile struct NCR53c7x0_cmd * linux_search;
1726 volatile struct NCR53c7x0_cmd * volatile *linux_prev;
1819 * struct NCR53c7x0_cmd *cmd)
1831 NCR53c7x0_cmd *cmd) {
2086 * struct NCR53c7x0_cmd *cmd)
2099 NCR53c7x0_cmd *cmd) {
2256 * Since this NCR53c7x0_cmd will be freed after use, we don't
2811 * Function static struct NCR53c7x0_cmd *allocate_cmd (Scsi_Cmnd *cmd)
2813 * Purpose : Return the first free NCR53c7x0_cmd structure (which are
2816 * Side effects : If we haven't yet scheduled allocation of NCR53c7x0_cmd
2818 * allocations using get_zeroed_page(), putting NCR53c7x0_cmd structures on
2823 * Returns : NCR53c7x0_cmd structure allocated on behalf of cmd;
2834 static struct NCR53c7x0_cmd *
2841 struct NCR53c7x0_cmd *tmp;
2891 tmp = (struct NCR53c7x0_cmd *)((u32)tmp + 255);
2892 tmp = (struct NCR53c7x0_cmd *)(((u32)tmp & ~0xff) + CmdPageStart);
2904 tmp = (struct NCR53c7x0_cmd *) hostdata->free;
2916 * Function static struct NCR53c7x0_cmd *create_cmd (Scsi_Cmnd *cmd)
2919 * Purpose : allocate a NCR53c7x0_cmd structure, initialize it based on the
2925 * Returns : NCR53c7x0_cmd structure corresponding to cmd,
2928 static struct NCR53c7x0_cmd *
2934 struct NCR53c7x0_cmd *tmp; /* NCR53c7x0_cmd structure for this command */
2953 * Copy CDB and initialised result fields from Scsi_Cmnd to NCR53c7x0_cmd.
2954 * We do this because NCR53c7x0_cmd may have a special cache mode
3073 * Fill in the NCR53c7x0_cmd structure as follows
3407 struct NCR53c7x0_cmd *cmd) {
3423 cmd->next = (struct NCR53c7x0_cmd *) hostdata->free;
3453 cmd->next = (struct NCR53c7x0_cmd *) hostdata->free;
3544 ((struct NCR53c7x0_cmd *)tmp->host_scribble)->next =
3547 (struct NCR53c7x0_cmd *)tmp->host_scribble;
3571 (struct NCR53c7x0_cmd *)
3595 * struct NCR53c7x0_cmd *cmd)
3605 intr_scsi (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) {
3819 struct NCR53c7x0_cmd *cmd, /* command which halted */
3839 for (cmd_prev_ptr = (struct NCR53c7x0_cmd **)&(hostdata->running_list),
3840 cmd = (struct NCR53c7x0_cmd *) hostdata->running_list; cmd ;
3841 cmd_prev_ptr = (struct NCR53c7x0_cmd **) &(cmd->next),
3842 cmd = (struct NCR53c7x0_cmd *) cmd->next)
3852 printk("scsi%d : weird. NCR53c7x0_cmd has no Scsi_Cmnd\n",
3874 *cmd_prev_ptr = (struct NCR53c7x0_cmd *) cmd->next;
3923 struct NCR53c7x0_cmd *cmd; /* command which halted */
3961 cmd = (struct NCR53c7x0_cmd *) hostdata->ncrcurrent;
3964 for (cmd = (struct NCR53c7x0_cmd *) hostdata->running_list;
3966 cmd = (struct NCR53c7x0_cmd *)(cmd->next))
4032 * up of the NCR53c7x0_cmd and Scsi_Cmnd structures should
4198 * struct NCR53c7x0_cmd *cmd)
4212 intr_phase_mismatch (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) {
4408 * struct NCR53c7x0_cmd *cmd)
4417 intr_bf (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) {
4483 * struct NCR53c7x0_cmd *cmd)
4493 intr_dma (struct Scsi_Host *host, struct NCR53c7x0_cmd *cmd) {
4769 struct NCR53c7x0_cmd *curr, **prev;
4824 ((struct NCR53c7x0_cmd *)me->host_scribble)->next = hostdata->free;
4825 hostdata->free = (struct NCR53c7x0_cmd *) me->host_scribble;
4842 for (curr = (struct NCR53c7x0_cmd *) hostdata->running_list,
4843 prev = (struct NCR53c7x0_cmd **) &(hostdata->running_list);
4844 curr && curr->cmd != cmd; prev = (struct NCR53c7x0_cmd **)
4845 &(curr->next), curr = (struct NCR53c7x0_cmd *) curr->next);
4851 *prev = (struct NCR53c7x0_cmd *) curr->next;
4852 curr->next = (struct NCR53c7x0_cmd *) hostdata->free;
4873 curr = (struct NCR53c7x0_cmd *) cmd->host_scribble;
4916 struct NCR53c7x0_cmd * c;
4955 c = (struct NCR53c7x0_cmd *) cmd->host_scribble;
5004 struct NCR53c7x0_cmd *ncmd =
5005 (struct NCR53c7x0_cmd *) cmd->host_scribble;
5017 if (!check_address ((unsigned long) ncmd, sizeof (struct NCR53c7x0_cmd)) &&
5061 struct NCR53c7x0_cmd *ncmd =
5062 (struct NCR53c7x0_cmd *) cmd->host_scribble;
5068 if (check_address ((unsigned long) ncmd,sizeof (struct NCR53c7x0_cmd)) == 0)
5079 sizeof (struct NCR53c7x0_cmd)) == -1)
5205 printk ("scsi%d: scsi pid %ld bad pointer to NCR53c7x0_cmd\n",
5209 print_dsa (host, ((struct NCR53c7x0_cmd *) cmd->host_scribble)
5212 printk ("scsi%d : scsi pid %ld for target %d lun %d has no NCR53c7x0_cmd\n",
5398 * NCR53c7x0_cmd structure since we may not have allocated one
5401 * free the NCR53c7x0_cmd structures which are associated with
5416 struct NCR53c7x0_cmd *c;
5420 for (c = (struct NCR53c7x0_cmd *) hostdata->running_list; c;
5421 c = (struct NCR53c7x0_cmd *) c->next) {
5653 struct NCR53c7x0_cmd *cmd, *tmp;
5670 for (cmd = (struct NCR53c7x0_cmd *) hostdata->free; cmd; cmd = tmp,
5672 tmp = (struct NCR53c7x0_cmd *) cmd->next;
5682 printk ("scsi%d : leaked %d NCR53c7x0_cmd structures\n",