/src/sys/dev/eisa/ |
cac_eisa.c | 243 cac_eisa_l0_submit(struct cac_softc *sc, struct cac_ccb *ccb) 251 size = le16toh(ccb->ccb_hdr.size) << 2; 252 ccb->ccb_hdr.size = 0; 255 (char *)ccb - (char *)sc->sc_ccbs, 259 cac_outl(sc, CAC_EISAREG_LIST_ADDR, ccb->ccb_paddr); 267 struct cac_ccb *ccb; local in function:cac_eisa_l0_completed 284 ccb = (struct cac_ccb *)((char *)sc->sc_ccbs + off); 289 ccb->ccb_req.error = status; 291 if ((off & 3) != 0 && ccb->ccb_req.error == 0) 292 ccb->ccb_req.error = CAC_RET_CMD_REJECTED [all...] |
cac_eisa.c | 243 cac_eisa_l0_submit(struct cac_softc *sc, struct cac_ccb *ccb) 251 size = le16toh(ccb->ccb_hdr.size) << 2; 252 ccb->ccb_hdr.size = 0; 255 (char *)ccb - (char *)sc->sc_ccbs, 259 cac_outl(sc, CAC_EISAREG_LIST_ADDR, ccb->ccb_paddr); 267 struct cac_ccb *ccb; local in function:cac_eisa_l0_completed 284 ccb = (struct cac_ccb *)((char *)sc->sc_ccbs + off); 289 ccb->ccb_req.error = status; 291 if ((off & 3) != 0 && ccb->ccb_req.error == 0) 292 ccb->ccb_req.error = CAC_RET_CMD_REJECTED [all...] |
/src/sys/dev/pci/ |
cac_pci.c | 231 cac_pci_l0_submit(struct cac_softc *sc, struct cac_ccb *ccb) 235 (char *)ccb - (char *)sc->sc_ccbs, 237 cac_outl(sc, CAC_42REG_CMD_FIFO, ccb->ccb_paddr); 243 struct cac_ccb *ccb; local in function:cac_pci_l0_completed 256 ccb = (struct cac_ccb *)((char *)sc->sc_ccbs + off); 261 if ((off & 3) != 0 && ccb->ccb_req.error == 0) 262 ccb->ccb_req.error = CAC_RET_CMD_REJECTED; 264 return (ccb);
|
ld_twe.c | 175 struct twe_ccb *ccb; local in function:ld_twe_dobio 183 if ((ccb = twe_ccb_alloc(twe, flags)) == NULL) 186 ccb->ccb_data = data; 187 ccb->ccb_datasize = datasize; 188 tc = ccb->ccb_cmd; 202 if ((rv = twe_ccb_map(twe, ccb)) != 0) { 203 twe_ccb_free(twe, ccb); 213 rv = twe_ccb_poll(twe, ccb, 2000); 214 twe_ccb_unmap(twe, ccb); 215 twe_ccb_free(twe, ccb); 278 struct twe_ccb *ccb; local in function:ld_twe_flush [all...] |
cac_pci.c | 231 cac_pci_l0_submit(struct cac_softc *sc, struct cac_ccb *ccb) 235 (char *)ccb - (char *)sc->sc_ccbs, 237 cac_outl(sc, CAC_42REG_CMD_FIFO, ccb->ccb_paddr); 243 struct cac_ccb *ccb; local in function:cac_pci_l0_completed 256 ccb = (struct cac_ccb *)((char *)sc->sc_ccbs + off); 261 if ((off & 3) != 0 && ccb->ccb_req.error == 0) 262 ccb->ccb_req.error = CAC_RET_CMD_REJECTED; 264 return (ccb);
|
ld_twe.c | 175 struct twe_ccb *ccb; local in function:ld_twe_dobio 183 if ((ccb = twe_ccb_alloc(twe, flags)) == NULL) 186 ccb->ccb_data = data; 187 ccb->ccb_datasize = datasize; 188 tc = ccb->ccb_cmd; 202 if ((rv = twe_ccb_map(twe, ccb)) != 0) { 203 twe_ccb_free(twe, ccb); 213 rv = twe_ccb_poll(twe, ccb, 2000); 214 twe_ccb_unmap(twe, ccb); 215 twe_ccb_free(twe, ccb); 278 struct twe_ccb *ccb; local in function:ld_twe_flush [all...] |
/src/usr.sbin/mmcformat/ |
uscsi_subr.c | 415 union ccb ccb; local in function:uscsi_command 420 memset(&ccb, 0, sizeof(ccb)); 434 &ccb.csio, 447 ccb.ccb_h.flags |= CAM_DEV_QFRZDIS; 449 memcpy(ccb.csio.cdb_io.cdb_bytes, cmd, cmdlen); 452 if (cam_send_ccb(cam_dev, &ccb) < 0) { 456 if ((ccb.ccb_h.status & CAM_STATUS_MASK) == CAM_REQ_CMP) 461 cam_sense = (ccb.ccb_h.status & (CAM_STATUS_MASK | CAM_AUTOSNS_VALID)) [all...] |
uscsi_subr.c | 415 union ccb ccb; local in function:uscsi_command 420 memset(&ccb, 0, sizeof(ccb)); 434 &ccb.csio, 447 ccb.ccb_h.flags |= CAM_DEV_QFRZDIS; 449 memcpy(ccb.csio.cdb_io.cdb_bytes, cmd, cmdlen); 452 if (cam_send_ccb(cam_dev, &ccb) < 0) { 456 if ((ccb.ccb_h.status & CAM_STATUS_MASK) == CAM_REQ_CMP) 461 cam_sense = (ccb.ccb_h.status & (CAM_STATUS_MASK | CAM_AUTOSNS_VALID)) [all...] |
/src/sys/dev/iscsi/ |
iscsi_utils.c | 185 * CCB management functions 190 * Get a CCB for the SCSI operation, waiting if none is available. 193 * sess The session containing this CCB 194 * waitok Whether waiting for a CCB is OK 196 * Returns: The CCB. 202 ccb_t *ccb; local in function:get_ccb 207 ccb = TAILQ_FIRST(&sess->s_ccb_pool); 209 DEB(100, ("get_ccb: ccb = %p, waitok = %d\n", ccb, waitok)); 211 if (ccb != NULL) 318 ccb_t *ccb; local in function:create_ccbs 346 ccb_t *ccb; local in function:destroy_ccbs [all...] |
iscsi_utils.c | 185 * CCB management functions 190 * Get a CCB for the SCSI operation, waiting if none is available. 193 * sess The session containing this CCB 194 * waitok Whether waiting for a CCB is OK 196 * Returns: The CCB. 202 ccb_t *ccb; local in function:get_ccb 207 ccb = TAILQ_FIRST(&sess->s_ccb_pool); 209 DEB(100, ("get_ccb: ccb = %p, waitok = %d\n", ccb, waitok)); 211 if (ccb != NULL) 318 ccb_t *ccb; local in function:create_ccbs 346 ccb_t *ccb; local in function:destroy_ccbs [all...] |
iscsi_send.c | 149 ccb_t *ccb; local in function:reassign_tasks 188 while ((ccb = TAILQ_FIRST(&oldconn->c_ccbs_waiting)) != NULL) { 189 suspend_ccb(ccb, FALSE); 190 TAILQ_INSERT_TAIL(&old_waiting, ccb, ccb_chain); 201 while ((ccb = TAILQ_FIRST(&old_waiting)) != NULL) { 209 TAILQ_REMOVE(&old_waiting, ccb, ccb_chain); 211 /* adjust CCB and clone PDU for new connection */ 213 opdu = ccb->ccb_pdu_waiting; 237 /* link new PDU into old CCB */ 238 ccb->ccb_pdu_waiting = pdu 330 ccb_t *ccb, *nccb; local in function:iscsi_send_thread 876 ccb_t *ccb; local in function:start_text_negotiation 966 ccb_t *ccb; local in function:send_send_targets 1027 ccb_t *ccb; local in function:send_nop_out 1198 ccb_t *ccb; local in function:send_login 1244 ccb_t *ccb; local in function:send_logout 1305 ccb_t *ccb; local in function:send_task_management 1538 ccb_t *ccb; local in function:send_run_xfer 1636 ccb_t *ccb; local in function:send_io_command [all...] |
iscsi_rcv.c | 131 * Translate ITT into CCB pointer. 138 * Pointer to CCB, or NULL if ITT is not a valid CCB index. 144 ccb_t *ccb; local in function:ccb_from_itt 154 ccb = &conn->c_session->s_ccb[cidx]; 156 if (ccb->ccb_ITT != itt) { 158 ("ccb_from_itt: received invalid CCB itt %08x != %08x\n", 159 itt, ccb->ccb_ITT)); 163 if (ccb->ccb_disp <= CCBDISP_BUSY) { 165 ("ccb_from_itt: received CCB with invalid disp %d\n" 401 ccb_t *ccb, *nxt; local in function:check_CmdSN [all...] |
iscsi_send.c | 149 ccb_t *ccb; local in function:reassign_tasks 188 while ((ccb = TAILQ_FIRST(&oldconn->c_ccbs_waiting)) != NULL) { 189 suspend_ccb(ccb, FALSE); 190 TAILQ_INSERT_TAIL(&old_waiting, ccb, ccb_chain); 201 while ((ccb = TAILQ_FIRST(&old_waiting)) != NULL) { 209 TAILQ_REMOVE(&old_waiting, ccb, ccb_chain); 211 /* adjust CCB and clone PDU for new connection */ 213 opdu = ccb->ccb_pdu_waiting; 237 /* link new PDU into old CCB */ 238 ccb->ccb_pdu_waiting = pdu 330 ccb_t *ccb, *nccb; local in function:iscsi_send_thread 876 ccb_t *ccb; local in function:start_text_negotiation 966 ccb_t *ccb; local in function:send_send_targets 1027 ccb_t *ccb; local in function:send_nop_out 1198 ccb_t *ccb; local in function:send_login 1244 ccb_t *ccb; local in function:send_logout 1305 ccb_t *ccb; local in function:send_task_management 1538 ccb_t *ccb; local in function:send_run_xfer 1636 ccb_t *ccb; local in function:send_io_command [all...] |
iscsi_rcv.c | 131 * Translate ITT into CCB pointer. 138 * Pointer to CCB, or NULL if ITT is not a valid CCB index. 144 ccb_t *ccb; local in function:ccb_from_itt 154 ccb = &conn->c_session->s_ccb[cidx]; 156 if (ccb->ccb_ITT != itt) { 158 ("ccb_from_itt: received invalid CCB itt %08x != %08x\n", 159 itt, ccb->ccb_ITT)); 163 if (ccb->ccb_disp <= CCBDISP_BUSY) { 165 ("ccb_from_itt: received CCB with invalid disp %d\n" 401 ccb_t *ccb, *nxt; local in function:check_CmdSN [all...] |
/src/sys/dev/ic/ |
adw.c | 207 ADW_CCB *ccb; local in function:adw_create_ccbs 211 ccb = &ccbstore[i]; 212 if ((error = adw_init_ccb(sc, ccb)) != 0) { 214 "unable to initialize ccb, error = %d\n", error); 217 TAILQ_INSERT_TAIL(&sc->sc_free_ccb, ccb, chain); 225 * A ccb is put onto the free list. 228 adw_free_ccb(ADW_SOFTC *sc, ADW_CCB *ccb) 234 adw_reset_ccb(ccb); 235 TAILQ_INSERT_HEAD(&sc->sc_free_ccb, ccb, chain); 242 adw_reset_ccb(ADW_CCB *ccb) 289 ADW_CCB *ccb = 0; local in function:adw_get_ccb 311 ADW_CCB *ccb = sc->sc_ccbhash[hashnum]; local in function:adw_ccb_phys_kv 543 ADW_CCB *ccb; local in function:adw_scsipi_request 816 ADW_CCB *ccb = arg; local in function:adw_timeout 915 ADW_CCB *ccb; local in function:adw_reset_bus 1025 ADW_CCB *ccb; local in function:adw_isr_callback [all...] |
adv.c | 168 ADV_CCB *ccb; local in function:adv_create_ccbs 173 ccb = &ccbstore[i]; 174 if ((error = adv_init_ccb(sc, ccb)) != 0) { 176 "unable to initialize ccb, error = %d\n", error); 179 TAILQ_INSERT_TAIL(&sc->sc_free_ccb, ccb, chain); 187 * A ccb is put onto the free list. 190 adv_free_ccb(ASC_SOFTC *sc, ADV_CCB *ccb) 195 adv_reset_ccb(ccb); 196 TAILQ_INSERT_HEAD(&sc->sc_free_ccb, ccb, chain); 202 adv_reset_ccb(ADV_CCB *ccb) 252 ADV_CCB *ccb = 0; local in function:adv_get_ccb 273 ADV_CCB *ccb = sc->sc_ccbhash[hashnum]; local in function:adv_ccb_phys_kv 300 ADV_CCB *ccb; local in function:adv_start_ccbs 528 ADV_CCB *ccb; local in function:adv_scsipi_request 780 ADV_CCB *ccb = arg; local in function:adv_timeout 821 ADV_CCB *ccb = arg; local in function:adv_watchdog 851 ADV_CCB *ccb; local in function:adv_narrow_isr_callback [all...] |
aha.c | 287 struct aha_ccb *ccb; local in function:aha_finish_ccbs 317 ccb = aha_ccb_phys_kv(sc, phystol(wmbi->ccb_addr)); 318 if (!ccb) { 319 printf("%s: bad mbi ccb pointer; skipping\n", 325 AHA_CCB_OFF(ccb), sizeof(struct aha_ccb), 330 u_char *cp = ccb->scsi_cmd; 335 printf("ccb addr = %p\n", ccb); 342 if ((ccb->flags & CCB_ABORT) != 0) { 345 * to complete before clearing the CCB. W 493 struct aha_ccb *ccb; local in function:aha_create_ccbs 520 struct aha_ccb *ccb; local in function:aha_get_ccb 540 struct aha_ccb *ccb = sc->sc_ccbhash[hashnum]; local in function:aha_ccb_phys_kv 569 struct aha_ccb *ccb; local in function:aha_collect_mbo 602 struct aha_ccb *ccb; local in function:aha_start_ccbs 1133 struct aha_ccb *ccb; local in function:aha_scsipi_request 1336 struct aha_ccb *ccb = arg; local in function:aha_timeout [all...] |
cac.c | 107 struct cac_ccb *ccb; local in function:cac_init 137 aprint_error_dev(sc->sc_dev, "unable to create CCB DMA map, error = %d\n", 144 aprint_error_dev(sc->sc_dev, "unable to load CCB DMA map, error = %d\n", 151 ccb = (struct cac_ccb *)sc->sc_ccbs; 153 for (i = 0; i < CAC_MAX_CCBS; i++, ccb++) { 154 /* Create the DMA map for this CCB's data */ 158 &ccb->ccb_dmamap_xfer); 161 aprint_error_dev(sc->sc_dev, "can't create ccb dmamap (%d)\n", 166 ccb->ccb_flags = 0; 167 ccb->ccb_paddr = sc->sc_ccbs_paddr + i * sizeof(struct cac_ccb) 287 struct cac_ccb *ccb; local in function:cac_intr 315 struct cac_ccb *ccb; local in function:cac_cmd 400 struct cac_ccb *ccb; local in function:cac_ccb_poll 501 struct cac_ccb *ccb; local in function:cac_ccb_alloc 564 struct cac_ccb *ccb; local in function:cac_l0_completed [all...] |
dpt.c | 218 struct dpt_ccb *ccb; local in function:dpt_ccb_alloc 222 ccb = SLIST_FIRST(&sc->sc_ccb_free); 226 return (ccb); 230 dpt_ccb_free(struct dpt_softc *sc, struct dpt_ccb *ccb) 234 ccb->ccb_flg = 0; 235 ccb->ccb_savesp = NULL; 237 SLIST_INSERT_HEAD(&sc->sc_ccb_free, ccb, ccb_chain); 248 struct dpt_ccb *ccb; local in function:dpt_intr 284 /* Make sure CCB ID from status packet is realistic. */ 286 printf("%s: bogus status (returned CCB id %d)\n" 336 struct dpt_ccb *ccb; local in function:dpt_init 931 struct dpt_ccb *ccb; local in function:dpt_scsipi_request 1061 struct dpt_ccb *ccb; local in function:dpt_hba_inquire 1278 struct dpt_ccb *ccb; local in function:dpt_passthrough [all...] |
adw.c | 207 ADW_CCB *ccb; local in function:adw_create_ccbs 211 ccb = &ccbstore[i]; 212 if ((error = adw_init_ccb(sc, ccb)) != 0) { 214 "unable to initialize ccb, error = %d\n", error); 217 TAILQ_INSERT_TAIL(&sc->sc_free_ccb, ccb, chain); 225 * A ccb is put onto the free list. 228 adw_free_ccb(ADW_SOFTC *sc, ADW_CCB *ccb) 234 adw_reset_ccb(ccb); 235 TAILQ_INSERT_HEAD(&sc->sc_free_ccb, ccb, chain); 242 adw_reset_ccb(ADW_CCB *ccb) 289 ADW_CCB *ccb = 0; local in function:adw_get_ccb 311 ADW_CCB *ccb = sc->sc_ccbhash[hashnum]; local in function:adw_ccb_phys_kv 543 ADW_CCB *ccb; local in function:adw_scsipi_request 816 ADW_CCB *ccb = arg; local in function:adw_timeout 915 ADW_CCB *ccb; local in function:adw_reset_bus 1025 ADW_CCB *ccb; local in function:adw_isr_callback [all...] |
adv.c | 168 ADV_CCB *ccb; local in function:adv_create_ccbs 173 ccb = &ccbstore[i]; 174 if ((error = adv_init_ccb(sc, ccb)) != 0) { 176 "unable to initialize ccb, error = %d\n", error); 179 TAILQ_INSERT_TAIL(&sc->sc_free_ccb, ccb, chain); 187 * A ccb is put onto the free list. 190 adv_free_ccb(ASC_SOFTC *sc, ADV_CCB *ccb) 195 adv_reset_ccb(ccb); 196 TAILQ_INSERT_HEAD(&sc->sc_free_ccb, ccb, chain); 202 adv_reset_ccb(ADV_CCB *ccb) 252 ADV_CCB *ccb = 0; local in function:adv_get_ccb 273 ADV_CCB *ccb = sc->sc_ccbhash[hashnum]; local in function:adv_ccb_phys_kv 300 ADV_CCB *ccb; local in function:adv_start_ccbs 528 ADV_CCB *ccb; local in function:adv_scsipi_request 780 ADV_CCB *ccb = arg; local in function:adv_timeout 821 ADV_CCB *ccb = arg; local in function:adv_watchdog 851 ADV_CCB *ccb; local in function:adv_narrow_isr_callback [all...] |
aha.c | 287 struct aha_ccb *ccb; local in function:aha_finish_ccbs 317 ccb = aha_ccb_phys_kv(sc, phystol(wmbi->ccb_addr)); 318 if (!ccb) { 319 printf("%s: bad mbi ccb pointer; skipping\n", 325 AHA_CCB_OFF(ccb), sizeof(struct aha_ccb), 330 u_char *cp = ccb->scsi_cmd; 335 printf("ccb addr = %p\n", ccb); 342 if ((ccb->flags & CCB_ABORT) != 0) { 345 * to complete before clearing the CCB. W 493 struct aha_ccb *ccb; local in function:aha_create_ccbs 520 struct aha_ccb *ccb; local in function:aha_get_ccb 540 struct aha_ccb *ccb = sc->sc_ccbhash[hashnum]; local in function:aha_ccb_phys_kv 569 struct aha_ccb *ccb; local in function:aha_collect_mbo 602 struct aha_ccb *ccb; local in function:aha_start_ccbs 1133 struct aha_ccb *ccb; local in function:aha_scsipi_request 1336 struct aha_ccb *ccb = arg; local in function:aha_timeout [all...] |
cac.c | 107 struct cac_ccb *ccb; local in function:cac_init 137 aprint_error_dev(sc->sc_dev, "unable to create CCB DMA map, error = %d\n", 144 aprint_error_dev(sc->sc_dev, "unable to load CCB DMA map, error = %d\n", 151 ccb = (struct cac_ccb *)sc->sc_ccbs; 153 for (i = 0; i < CAC_MAX_CCBS; i++, ccb++) { 154 /* Create the DMA map for this CCB's data */ 158 &ccb->ccb_dmamap_xfer); 161 aprint_error_dev(sc->sc_dev, "can't create ccb dmamap (%d)\n", 166 ccb->ccb_flags = 0; 167 ccb->ccb_paddr = sc->sc_ccbs_paddr + i * sizeof(struct cac_ccb) 287 struct cac_ccb *ccb; local in function:cac_intr 315 struct cac_ccb *ccb; local in function:cac_cmd 400 struct cac_ccb *ccb; local in function:cac_ccb_poll 501 struct cac_ccb *ccb; local in function:cac_ccb_alloc 564 struct cac_ccb *ccb; local in function:cac_l0_completed [all...] |
dpt.c | 218 struct dpt_ccb *ccb; local in function:dpt_ccb_alloc 222 ccb = SLIST_FIRST(&sc->sc_ccb_free); 226 return (ccb); 230 dpt_ccb_free(struct dpt_softc *sc, struct dpt_ccb *ccb) 234 ccb->ccb_flg = 0; 235 ccb->ccb_savesp = NULL; 237 SLIST_INSERT_HEAD(&sc->sc_ccb_free, ccb, ccb_chain); 248 struct dpt_ccb *ccb; local in function:dpt_intr 284 /* Make sure CCB ID from status packet is realistic. */ 286 printf("%s: bogus status (returned CCB id %d)\n" 336 struct dpt_ccb *ccb; local in function:dpt_init 931 struct dpt_ccb *ccb; local in function:dpt_scsipi_request 1061 struct dpt_ccb *ccb; local in function:dpt_hba_inquire 1278 struct dpt_ccb *ccb; local in function:dpt_passthrough [all...] |
/src/sys/netinet/ |
dccp_tcplike.c | 121 tcplike_rto_timeout(void *ccb) 123 struct tcplike_send_ccb *cb = (struct tcplike_send_ccb *) ccb; 270 void tcplike_send_term(void *ccb) 272 struct tcplike_send_ccb *cb = (struct tcplike_send_ccb *) ccb; 273 if (ccb == 0) 284 * args: ccb - ccb of sender 287 tcplike_send_free(void *ccb) 289 struct tcplike_send_ccb *cb = (struct tcplike_send_ccb *) ccb; 293 if (ccb == 0 850 struct tcplike_recv_ccb *ccb; local in function:tcplike_recv_init [all...] |