Home
last modified time | relevance | path

Searched refs:scb (Results 1 – 25 of 82) sorted by relevance

1234

/kernel/linux/linux-5.10/drivers/media/pci/cx18/
Dcx18-scb.c16 cx18_memset_io(cx, cx->scb, 0, 0x10000); in cx18_init_scb()
18 cx18_writel(cx, IRQ_APU_TO_CPU, &cx->scb->apu2cpu_irq); in cx18_init_scb()
19 cx18_writel(cx, IRQ_CPU_TO_APU_ACK, &cx->scb->cpu2apu_irq_ack); in cx18_init_scb()
20 cx18_writel(cx, IRQ_HPU_TO_CPU, &cx->scb->hpu2cpu_irq); in cx18_init_scb()
21 cx18_writel(cx, IRQ_CPU_TO_HPU_ACK, &cx->scb->cpu2hpu_irq_ack); in cx18_init_scb()
22 cx18_writel(cx, IRQ_PPU_TO_CPU, &cx->scb->ppu2cpu_irq); in cx18_init_scb()
23 cx18_writel(cx, IRQ_CPU_TO_PPU_ACK, &cx->scb->cpu2ppu_irq_ack); in cx18_init_scb()
24 cx18_writel(cx, IRQ_EPU_TO_CPU, &cx->scb->epu2cpu_irq); in cx18_init_scb()
25 cx18_writel(cx, IRQ_CPU_TO_EPU_ACK, &cx->scb->cpu2epu_irq_ack); in cx18_init_scb()
27 cx18_writel(cx, IRQ_CPU_TO_APU, &cx->scb->cpu2apu_irq); in cx18_init_scb()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/
Dips.c209 #define IPS_DMA_DIR(scb) ((!scb->scsi_cmd || ips_is_passthru(scb->scsi_cmd) || \ argument
210 DMA_NONE == scb->scsi_cmd->sc_data_direction) ? \
212 scb->scsi_cmd->sc_data_direction)
644 ips_scb_t *scb; in ips_release() local
667 scb = &ha->scbs[ha->max_cmds - 1]; in ips_release()
669 ips_init_scb(ha, scb); in ips_release()
671 scb->timeout = ips_cmd_timeout; in ips_release()
672 scb->cdb[0] = IPS_CMD_FLUSH; in ips_release()
674 scb->cmd.flush_cache.op_code = IPS_CMD_FLUSH; in ips_release()
675 scb->cmd.flush_cache.command_id = IPS_COMMAND_ID(ha, scb); in ips_release()
[all …]
Da100u2w.c86 static void inia100_scb_handler(struct orc_host *host, struct orc_scb *scb);
277 static void orc_exec_scb(struct orc_host * host, struct orc_scb * scb) in orc_exec_scb() argument
279 scb->status = ORCSCB_POST; in orc_exec_scb()
280 outb(scb->scbidx, host->base + ORC_PQUEUE); in orc_exec_scb()
444 struct orc_scb *scb; in setup_SCBs() local
457 scb = host->scb_virt; in setup_SCBs()
462 scb->sg_addr = cpu_to_le32((u32) escb_phys); in setup_SCBs()
463 scb->sense_addr = cpu_to_le32((u32) escb_phys); in setup_SCBs()
464 scb->escb = escb; in setup_SCBs()
465 scb->scbidx = i; in setup_SCBs()
[all …]
Dinitio.c147 static void initio_select_atn(struct initio_host * host, struct scsi_ctrl_blk * scb);
148 static void initio_select_atn3(struct initio_host * host, struct scsi_ctrl_blk * scb);
149 static void initio_select_atn_stop(struct initio_host * host, struct scsi_ctrl_blk * scb);
658 struct scsi_ctrl_blk *scb; in initio_alloc_scb() local
662 if ((scb = host->first_avail) != NULL) { in initio_alloc_scb()
664 printk("find scb at %p\n", scb); in initio_alloc_scb()
666 if ((host->first_avail = scb->next) == NULL) in initio_alloc_scb()
668 scb->next = NULL; in initio_alloc_scb()
669 scb->status = SCB_RENT; in initio_alloc_scb()
672 return scb; in initio_alloc_scb()
[all …]
Dmegaraid.c377 scb_t *scb; in megaraid_queue_lck() local
396 scb = mega_build_cmd(adapter, scmd, &busy); in megaraid_queue_lck()
397 if (!scb) in megaraid_queue_lck()
400 scb->state |= SCB_PENDQ; in megaraid_queue_lck()
401 list_add_tail(&scb->list, &adapter->pending_list); in megaraid_queue_lck()
431 scb_t *scb; in DEF_SCSI_QCMD() local
436 scb = list_entry(head->next, scb_t, list); in DEF_SCSI_QCMD()
440 scb->state = SCB_ACTIVE; in DEF_SCSI_QCMD()
441 scb->cmd = cmd; in DEF_SCSI_QCMD()
442 scb->dma_type = MEGA_DMA_TYPE_NONE; in DEF_SCSI_QCMD()
[all …]
Dwd719x.c189 static void wd719x_finish_cmd(struct wd719x_scb *scb, int result) in wd719x_finish_cmd() argument
191 struct scsi_cmnd *cmd = scb->cmd; in wd719x_finish_cmd()
194 list_del(&scb->list); in wd719x_finish_cmd()
196 dma_unmap_single(&wd->pdev->dev, scb->phys, in wd719x_finish_cmd()
211 struct wd719x_scb *scb = scsi_cmd_priv(cmd); in wd719x_queuecommand() local
214 scb->cmd = cmd; in wd719x_queuecommand()
216 scb->CDB_tag = 0; /* Tagged queueing not supported yet */ in wd719x_queuecommand()
217 scb->devid = cmd->device->id; in wd719x_queuecommand()
218 scb->lun = cmd->device->lun; in wd719x_queuecommand()
221 memcpy(scb->CDB, cmd->cmnd, cmd->cmd_len); in wd719x_queuecommand()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/aic7xxx/
Daic7xxx_osm.h229 ahc_scb_timer_reset(struct scb *scb, u_int usec) in ahc_scb_timer_reset() argument
519 static inline void ahc_set_transaction_status(struct scb *, uint32_t);
521 static inline void ahc_set_scsi_status(struct scb *, uint32_t);
523 static inline uint32_t ahc_get_transaction_status(struct scb *);
525 static inline uint32_t ahc_get_scsi_status(struct scb *);
526 static inline void ahc_set_transaction_tag(struct scb *, int, u_int);
527 static inline u_long ahc_get_transfer_length(struct scb *);
528 static inline int ahc_get_transfer_dir(struct scb *);
529 static inline void ahc_set_residual(struct scb *, u_long);
530 static inline void ahc_set_sense_residual(struct scb *scb, u_long resid);
[all …]
Daic79xx_osm.h501 static inline void ahd_set_transaction_status(struct scb *, uint32_t);
503 static inline void ahd_set_scsi_status(struct scb *, uint32_t);
505 static inline uint32_t ahd_get_transaction_status(struct scb *);
507 static inline uint32_t ahd_get_scsi_status(struct scb *);
508 static inline void ahd_set_transaction_tag(struct scb *, int, u_int);
509 static inline u_long ahd_get_transfer_length(struct scb *);
510 static inline int ahd_get_transfer_dir(struct scb *);
511 static inline void ahd_set_residual(struct scb *, u_long);
512 static inline void ahd_set_sense_residual(struct scb *scb, u_long resid);
513 static inline u_long ahd_get_residual(struct scb *);
[all …]
Daic79xx_core.c128 struct scb *scb);
131 struct scb *scb);
167 struct scb *scb);
180 struct scb *scb, u_int col_idx);
182 struct scb *scb);
185 struct scb *prev_scb,
186 struct scb *scb);
216 struct scb *scb);
218 struct scb *scb);
239 struct scb *scb);
[all …]
Daic79xx_inline.h99 void *ahd_sg_setup(struct ahd_softc *ahd, struct scb *scb,
107 struct scb *scb, int op);
138 struct scb *
140 void ahd_queue_scb(struct ahd_softc *ahd, struct scb *scb);
143 struct scb *scb);
145 struct scb *scb);
158 ahd_get_sense_buf(struct ahd_softc *ahd, struct scb *scb) in ahd_get_sense_buf() argument
160 return (scb->sense_data); in ahd_get_sense_buf()
164 ahd_get_sense_bufaddr(struct ahd_softc *ahd, struct scb *scb) in ahd_get_sense_bufaddr() argument
166 return (scb->sense_busaddr); in ahd_get_sense_bufaddr()
Daic7xxx_core.c154 struct scb *scb);
158 struct scb *scb);
195 struct scb *scb);
203 struct scb *prev_scb,
204 struct scb *scb);
260 static void ahc_freeze_devq(struct ahc_softc *ahc, struct scb *scb);
265 struct scb *scb);
365 ahc_sg_bus_to_virt(struct scb *scb, uint32_t sg_busaddr) in ahc_sg_bus_to_virt() argument
369 sg_index = (sg_busaddr - scb->sg_list_phys)/sizeof(struct ahc_dma_seg); in ahc_sg_bus_to_virt()
373 return (&scb->sg_list[sg_index]); in ahc_sg_bus_to_virt()
[all …]
Daic7xxx_inline.h55 struct scb *scb, int op);
84 struct scb*
86 void ahc_free_scb(struct ahc_softc *ahc, struct scb *scb);
87 struct scb *
89 void ahc_queue_scb(struct ahc_softc *ahc, struct scb *scb);
92 struct scb *scb);
Daic7xxx_osm.c253 ahc_print_path(struct ahc_softc *ahc, struct scb *scb) in ahc_print_path() argument
257 scb != NULL ? SCB_GET_CHANNEL(ahc, scb) : 'X', in ahc_print_path()
258 scb != NULL ? SCB_GET_TARGET(ahc, scb) : -1, in ahc_print_path()
259 scb != NULL ? SCB_GET_LUN(scb) : -1); in ahc_print_path()
363 struct scb *);
452 static void ahc_linux_unmap_scb(struct ahc_softc*, struct scb*);
454 static int ahc_linux_map_seg(struct ahc_softc *ahc, struct scb *scb,
459 ahc_linux_unmap_scb(struct ahc_softc *ahc, struct scb *scb) in ahc_linux_unmap_scb() argument
463 cmd = scb->io_ctx; in ahc_linux_unmap_scb()
464 ahc_sync_sglist(ahc, scb, BUS_DMASYNC_POSTWRITE); in ahc_linux_unmap_scb()
[all …]
Daic79xx.h76 #define SCB_IS_SCSIBUS_B(ahd, scb) (0) argument
77 #define SCB_GET_OUR_ID(scb) \ argument
78 SCSIID_OUR_ID((scb)->hscb->scsiid)
79 #define SCB_GET_TARGET(ahd, scb) \ argument
80 SCSIID_TARGET((ahd), (scb)->hscb->scsiid)
81 #define SCB_GET_CHANNEL(ahd, scb) \ argument
82 SCSIID_CHANNEL(ahd, (scb)->hscb->scsiid)
83 #define SCB_GET_LUN(scb) \ argument
84 ((scb)->hscb->lun)
85 #define SCB_GET_TARGET_OFFSET(ahd, scb) \ argument
[all …]
Daic7xxx.h77 #define SCB_IS_SCSIBUS_B(ahc, scb) \ argument
78 (SCSIID_CHANNEL(ahc, (scb)->hscb->scsiid) == 'B')
79 #define SCB_GET_OUR_ID(scb) \ argument
80 SCSIID_OUR_ID((scb)->hscb->scsiid)
81 #define SCB_GET_TARGET(ahc, scb) \ argument
82 SCSIID_TARGET((ahc), (scb)->hscb->scsiid)
83 #define SCB_GET_CHANNEL(ahc, scb) \ argument
84 SCSIID_CHANNEL(ahc, (scb)->hscb->scsiid)
85 #define SCB_GET_LUN(scb) \ argument
86 ((scb)->hscb->lun & LID)
[all …]
Daic79xx_osm.c224 ahd_print_path(struct ahd_softc *ahd, struct scb *scb) in ahd_print_path() argument
228 scb != NULL ? SCB_GET_CHANNEL(ahd, scb) : 'X', in ahd_print_path()
229 scb != NULL ? SCB_GET_TARGET(ahd, scb) : -1, in ahd_print_path()
230 scb != NULL ? SCB_GET_LUN(scb) : -1); in ahd_print_path()
354 struct scb *);
531 static void ahd_linux_unmap_scb(struct ahd_softc*, struct scb*);
534 ahd_linux_unmap_scb(struct ahd_softc *ahd, struct scb *scb) in ahd_linux_unmap_scb() argument
538 cmd = scb->io_ctx; in ahd_linux_unmap_scb()
539 ahd_sync_sglist(ahd, scb, BUS_DMASYNC_POSTWRITE); in ahd_linux_unmap_scb()
775 struct scb *reset_scb; in ahd_linux_dev_reset()
[all …]
/kernel/linux/linux-5.10/sound/pci/cs46xx/
Ddsp_spos_scb_lib.c61 struct dsp_scb_descriptor * scb = scb_info->scb_desc; in cs46xx_dsp_proc_scb_info_read() local
67 snd_iprintf(buffer,"%04x %s:\n",scb->address,scb->scb_name); in cs46xx_dsp_proc_scb_info_read()
74 snd_iprintf(buffer,"%08x ",readl(dst + (scb->address + j) * sizeof(u32))); in cs46xx_dsp_proc_scb_info_read()
79 if (scb->parent_scb_ptr != NULL) { in cs46xx_dsp_proc_scb_info_read()
81 scb->parent_scb_ptr->scb_name, in cs46xx_dsp_proc_scb_info_read()
82 scb->parent_scb_ptr->address); in cs46xx_dsp_proc_scb_info_read()
86 scb->sub_list_ptr->scb_name, in cs46xx_dsp_proc_scb_info_read()
87 scb->sub_list_ptr->address, in cs46xx_dsp_proc_scb_info_read()
88 scb->next_scb_ptr->scb_name, in cs46xx_dsp_proc_scb_info_read()
89 scb->next_scb_ptr->address, in cs46xx_dsp_proc_scb_info_read()
[all …]
Ddsp_spos.h193 struct dsp_scb_descriptor * scb) in cs46xx_dsp_spos_update_scb() argument
197 (scb->address + SCBsubListPtr) << 2, in cs46xx_dsp_spos_update_scb()
198 (scb->sub_list_ptr->address << 0x10) | in cs46xx_dsp_spos_update_scb()
199 (scb->next_scb_ptr->address)); in cs46xx_dsp_spos_update_scb()
200 scb->updated = 1; in cs46xx_dsp_spos_update_scb()
204 struct dsp_scb_descriptor * scb, in cs46xx_dsp_scb_set_volume() argument
209 snd_cs46xx_poke(chip, (scb->address + SCBVolumeCtrl) << 2, val); in cs46xx_dsp_scb_set_volume()
210 snd_cs46xx_poke(chip, (scb->address + SCBVolumeCtrl + 1) << 2, val); in cs46xx_dsp_scb_set_volume()
211 scb->volume_set = 1; in cs46xx_dsp_scb_set_volume()
212 scb->volume[0] = left; in cs46xx_dsp_scb_set_volume()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/aic94xx/
Daic94xx_tmf.c83 struct scb *scb; \
96 scb = ascb->scb; \
97 scb->header.opcode = CLEAR_NEXUS
120 scb->clear_nexus.nexus = NEXUS_ADAPTER; in asd_clear_nexus_ha()
129 scb->clear_nexus.nexus = NEXUS_PORT; in asd_clear_nexus_port()
130 scb->clear_nexus.conn_mask = port->phy_mask; in asd_clear_nexus_port()
146 scb->clear_nexus.nexus = NEXUS_I_T; in asd_clear_nexus_I_T()
149 scb->clear_nexus.flags = EXEC_Q | SUSPEND_TX; in asd_clear_nexus_I_T()
152 scb->clear_nexus.flags = SEND_Q | NOTINQ; in asd_clear_nexus_I_T()
155 scb->clear_nexus.flags = RESUME_TX; in asd_clear_nexus_I_T()
[all …]
Daic94xx_task.c126 le64_to_cpu(ascb->scb->ssp_task.sg_element[0].bus_addr); in asd_unmap_scatterlist()
350 struct scb *scb; in asd_build_ata_ascb() local
354 scb = ascb->scb; in asd_build_ata_ascb()
357 scb->header.opcode = CONTROL_ATA_DEV; in asd_build_ata_ascb()
359 scb->header.opcode = INITIATE_ATAPI_TASK; in asd_build_ata_ascb()
361 scb->header.opcode = INITIATE_ATA_TASK; in asd_build_ata_ascb()
363 scb->ata_task.proto_conn_rate = (1 << 5); /* STP */ in asd_build_ata_ascb()
365 scb->ata_task.proto_conn_rate |= dev->linkrate; in asd_build_ata_ascb()
367 scb->ata_task.total_xfer_len = cpu_to_le32(task->total_xfer_len); in asd_build_ata_ascb()
368 scb->ata_task.fis = task->ata_task.fis; in asd_build_ata_ascb()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/megaraid/
Dmegaraid_mbox.c951 scb_t *scb; in megaraid_alloc_cmd_packets() local
1039 scb = adapter->kscb_list + i; in megaraid_alloc_cmd_packets()
1066 scb->ccb = (caddr_t)ccb; in megaraid_alloc_cmd_packets()
1067 scb->gp = 0; in megaraid_alloc_cmd_packets()
1069 scb->sno = i; // command index in megaraid_alloc_cmd_packets()
1071 scb->scp = NULL; in megaraid_alloc_cmd_packets()
1072 scb->state = SCB_FREE; in megaraid_alloc_cmd_packets()
1073 scb->dma_direction = DMA_NONE; in megaraid_alloc_cmd_packets()
1074 scb->dma_type = MRAID_DMA_NONE; in megaraid_alloc_cmd_packets()
1075 scb->dev_channel = -1; in megaraid_alloc_cmd_packets()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/i825xx/
Dsun3_82586.c101 if(!p->scb->cmd_cuc) break; \
104 …%s: scb_cmd timed out: %04x,%04x .. disabling i82586!!\n",dev->name,p->scb->cmd_cuc,p->scb->cus); \
109 if(!p->scb->cmd_ruc) break; \
112 …b_cmd (ruc) timed out: %04x,%04x .. disabling i82586!!\n",dev->name,p->scb->cmd_ruc,p->scb->rus); \
152 volatile struct scb_struct *scb; /* volatile is important */ member
255 p->scb = (struct scb_struct *) ((char *)p->iscp + sizeof(struct iscp_struct)); in alloc586()
262 p->iscp->scb_offset = make16(p->scb); in alloc586()
276 memset((char *)p->scb,0,sizeof(struct scb_struct)); in alloc586()
416 ptr = (void *) ((char *)p->scb + sizeof(struct scb_struct)); in init586()
443 p->scb->cbl_offset = make16(cfg_cmd); in init586()
[all …]
Dlib82596.c291 u32 scb; member
303 volatile struct i596_scb scb __attribute__((aligned(32))); member
418 dma_sync_cpu(dev, &(dma->scb), sizeof(struct i596_scb)); in wait_cmd()
419 while (--delcnt && dma->scb.command) { in wait_cmd()
421 dma_sync_cpu(dev, &(dma->scb), sizeof(struct i596_scb)); in wait_cmd()
426 SWAP16(dma->scb.status), in wait_cmd()
427 SWAP16(dma->scb.command)); in wait_cmd()
445 &dma->iscp, SWAP32(dma->iscp.stat), SWAP32(dma->iscp.scb)); in i596_display_data()
448 &dma->scb, SWAP16(dma->scb.status), SWAP16(dma->scb.command), in i596_display_data()
449 SWAP16(dma->scb.cmd), SWAP32(dma->scb.rfd)); in i596_display_data()
[all …]
/kernel/linux/linux-5.10/net/ipv4/
Dtcp_rate.c82 struct tcp_skb_cb *scb = TCP_SKB_CB(skb); in tcp_rate_skb_delivered() local
84 if (!scb->tx.delivered_mstamp) in tcp_rate_skb_delivered()
88 after(scb->tx.delivered, rs->prior_delivered)) { in tcp_rate_skb_delivered()
89 rs->prior_delivered = scb->tx.delivered; in tcp_rate_skb_delivered()
90 rs->prior_mstamp = scb->tx.delivered_mstamp; in tcp_rate_skb_delivered()
91 rs->is_app_limited = scb->tx.is_app_limited; in tcp_rate_skb_delivered()
92 rs->is_retrans = scb->sacked & TCPCB_RETRANS; in tcp_rate_skb_delivered()
98 scb->tx.first_tx_mstamp); in tcp_rate_skb_delivered()
105 if (scb->sacked & TCPCB_SACKED_ACKED) in tcp_rate_skb_delivered()
106 scb->tx.delivered_mstamp = 0; in tcp_rate_skb_delivered()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmsmac/
Dscb.h42 struct scb *scb; /* backptr for easy lookup */ member
47 struct scb *scb; /* back pointer for easy reference */ member
64 struct scb { struct

1234