Lines Matching refs:hcb_p

1040 typedef struct sym_hcb *hcb_p;  typedef
1597 void (*fw_setup)(hcb_p np, const struct sym_fw *fw);
1598 void (*fw_patch)(hcb_p np);
1712 static __inline const char *sym_name(hcb_p np) in sym_name()
1778 sym_fw1_patch(hcb_p np) in sym_fw1_patch()
1819 sym_fw2_patch(hcb_p np) in sym_fw2_patch()
1912 sym_fw_setup_bus_addresses(hcb_p np, const struct sym_fw *fw) in sym_fw_setup_bus_addresses()
1941 sym_fw1_setup(hcb_p np, const struct sym_fw *fw) in sym_fw1_setup()
1963 sym_fw2_setup(hcb_p np, const struct sym_fw *fw) in sym_fw2_setup()
2007 static void sym_fw_bind_script (hcb_p np, u32 *start, int len) in sym_fw_bind_script()
2187 static void sym_save_initial_setting (hcb_p np);
2188 static int sym_prepare_setting (hcb_p np, struct sym_nvram *nvram);
2189 static int sym_prepare_nego (hcb_p np, ccb_p cp, int nego, u_char *msgptr);
2190 static void sym_put_start_queue (hcb_p np, ccb_p cp);
2191 static void sym_chip_reset (hcb_p np);
2192 static void sym_soft_reset (hcb_p np);
2193 static void sym_start_reset (hcb_p np);
2194 static int sym_reset_scsi_bus (hcb_p np, int enab_int);
2195 static int sym_wakeup_done (hcb_p np);
2196 static void sym_flush_busy_queue (hcb_p np, int cam_status);
2197 static void sym_flush_comp_queue (hcb_p np, int cam_status);
2198 static void sym_init (hcb_p np, int reason);
2199 static int sym_getsync(hcb_p np, u_char dt, u_char sfac, u_char *divp,
2201 static void sym_setsync (hcb_p np, ccb_p cp, u_char ofs, u_char per,
2203 static void sym_setwide (hcb_p np, ccb_p cp, u_char wide);
2204 static void sym_setpprot(hcb_p np, ccb_p cp, u_char dt, u_char ofs,
2206 static void sym_settrans(hcb_p np, ccb_p cp, u_char dt, u_char ofs,
2208 static void sym_log_hard_error (hcb_p np, u_short sist, u_char dstat);
2211 static void sym_recover_scsi_int (hcb_p np, u_char hsts);
2212 static void sym_int_sto (hcb_p np);
2213 static void sym_int_udc (hcb_p np);
2214 static void sym_int_sbmc (hcb_p np);
2215 static void sym_int_par (hcb_p np, u_short sist);
2216 static void sym_int_ma (hcb_p np);
2217 static int sym_dequeue_from_squeue(hcb_p np, int i, int target, int lun,
2219 static void sym_sir_bad_scsi_status (hcb_p np, ccb_p cp);
2220 static int sym_clear_tasks (hcb_p np, int status, int targ, int lun, int task);
2221 static void sym_sir_task_recovery (hcb_p np, int num);
2222 static int sym_evaluate_dp (hcb_p np, ccb_p cp, u32 scr, int *ofs);
2223 static void sym_modify_dp(hcb_p np, ccb_p cp, int ofs);
2224 static int sym_compute_residual (hcb_p np, ccb_p cp);
2227 static void sym_sync_nego (hcb_p np, tcb_p tp, ccb_p cp);
2228 static void sym_ppr_nego (hcb_p np, tcb_p tp, ccb_p cp);
2229 static void sym_wide_nego (hcb_p np, tcb_p tp, ccb_p cp);
2230 static void sym_nego_default (hcb_p np, tcb_p tp, ccb_p cp);
2231 static void sym_nego_rejected (hcb_p np, tcb_p tp, ccb_p cp);
2232 static void sym_int_sir (hcb_p np);
2233 static void sym_free_ccb (hcb_p np, ccb_p cp);
2234 static ccb_p sym_get_ccb (hcb_p np, u_char tn, u_char ln, u_char tag_order);
2235 static ccb_p sym_alloc_ccb (hcb_p np);
2236 static ccb_p sym_ccb_from_dsa (hcb_p np, u32 dsa);
2237 static lcb_p sym_alloc_lcb (hcb_p np, u_char tn, u_char ln);
2238 static void sym_alloc_lcb_tags (hcb_p np, u_char tn, u_char ln);
2239 static int sym_snooptest (hcb_p np);
2240 static void sym_selectclock(hcb_p np, u_char scntl3);
2241 static void sym_getclock (hcb_p np, int mult);
2242 static int sym_getpciclock (hcb_p np);
2243 static void sym_complete_ok (hcb_p np, ccb_p cp);
2244 static void sym_complete_error (hcb_p np, ccb_p cp);
2246 static int sym_abort_scsiio (hcb_p np, union ccb *ccb, int timed_out);
2247 static void sym_reset_dev (hcb_p np, union ccb *ccb);
2249 static int sym_setup_cdb (hcb_p np, struct ccb_scsiio *csio, ccb_p cp);
2250 static void sym_setup_data_and_start (hcb_p np, struct ccb_scsiio *csio,
2252 static int sym_fast_scatter_sg_physical(hcb_p np, ccb_p cp,
2254 static int sym_scatter_sg_physical (hcb_p np, ccb_p cp,
2257 static void sym_update_trans(hcb_p np, struct sym_trans *tip,
2259 static void sym_update_dflags(hcb_p np, u_char *flags,
2266 static void sym_pci_free (hcb_p np);
2267 static int sym_cam_attach (hcb_p np);
2268 static void sym_cam_free (hcb_p np);
2270 static void sym_nvram_setup_host (hcb_p np, struct sym_nvram *nvram);
2271 static void sym_nvram_setup_target (hcb_p np, int targ, struct sym_nvram *nvp);
2272 static int sym_read_nvram (hcb_p np, struct sym_nvram *nvp);
2278 static void PRINT_TARGET (hcb_p np, int target) in PRINT_TARGET()
2283 static void PRINT_LUN(hcb_p np, int target, int lun) in PRINT_LUN()
2329 hcb_p np; in sym_enqueue_cam_ccb()
2333 np = (hcb_p) cp->arg; in sym_enqueue_cam_ccb()
2350 static void sym_xpt_done(hcb_p np, union ccb *ccb, ccb_p cp) in sym_xpt_done()
2364 static void sym_xpt_done2(hcb_p np, union ccb *ccb, int cam_status) in sym_xpt_done2()
2412 static __inline void sym_init_burst(hcb_p np, u_char bc) in sym_init_burst()
2431 static void sym_print_targets_flag(hcb_p np, int mask, char *msg) in sym_print_targets_flag()
2459 static void sym_save_initial_setting (hcb_p np) in sym_save_initial_setting()
2483 static int sym_prepare_setting(hcb_p np, struct sym_nvram *nvram) in sym_prepare_setting()
2822 static int sym_prepare_nego(hcb_p np, ccb_p cp, int nego, u_char *msgptr) in sym_prepare_nego()
2893 static void sym_put_start_queue(hcb_p np, ccb_p cp) in sym_put_start_queue()
2947 static void sym_chip_reset (hcb_p np) in sym_chip_reset()
2964 static void sym_soft_reset (hcb_p np) in sym_soft_reset()
2993 static void sym_start_reset(hcb_p np) in sym_start_reset()
2998 static int sym_reset_scsi_bus(hcb_p np, int enab_int) in sym_reset_scsi_bus()
3057 static int sym_wakeup_done (hcb_p np) in sym_wakeup_done()
3094 static void sym_flush_busy_queue (hcb_p np, int cam_status) in sym_flush_busy_queue()
3113 static void sym_init (hcb_p np, int reason) in sym_init()
3337 sym_getsync(hcb_p np, u_char dt, u_char sfac, u_char *divp, u_char *fakp) in sym_getsync()
3430 sym_xpt_async_transfer_neg(hcb_p np, int target, u_int spi_valid) in sym_xpt_async_transfer_neg()
3486 static void sym_setwide(hcb_p np, ccb_p cp, u_char wide) in sym_setwide()
3508 sym_setsync(hcb_p np, ccb_p cp, u_char ofs, u_char per, u_char div, u_char fak) in sym_setsync()
3529 static void sym_setpprot(hcb_p np, ccb_p cp, u_char dt, u_char ofs, in sym_setpprot()
3550 static void sym_settrans(hcb_p np, ccb_p cp, u_char dt, u_char ofs, in sym_settrans()
3688 static void sym_log_hard_error(hcb_p np, u_short sist, u_char dstat) in sym_log_hard_error()
3813 static void sym_intr1 (hcb_p np) in sym_intr1()
3958 hcb_p np = arg; in sym_intr()
3963 sym_intr1((hcb_p) arg); in sym_intr()
4000 static void sym_recover_scsi_int (hcb_p np, u_char hsts) in sym_recover_scsi_int()
4051 static void sym_int_sto (hcb_p np) in sym_int_sto()
4066 static void sym_int_udc (hcb_p np) in sym_int_udc()
4082 static void sym_int_sbmc (hcb_p np) in sym_int_sbmc()
4124 static void sym_int_par (hcb_p np, u_short sist) in sym_int_par()
4205 static void sym_int_ma (hcb_p np) in sym_int_ma()
4561 sym_dequeue_from_squeue(hcb_p np, int i, int target, int lun, int task) in sym_dequeue_from_squeue()
4619 sym_flush_comp_queue(hcb_p np, int cam_status) in sym_flush_comp_queue()
4658 static void sym_sir_bad_scsi_status(hcb_p np, ccb_p cp) in sym_sir_bad_scsi_status()
4830 sym_clear_tasks(hcb_p np, int cam_status, int target, int lun, int task) in sym_clear_tasks()
4913 static void sym_sir_task_recovery(hcb_p np, int num) in sym_sir_task_recovery()
5261 static int sym_evaluate_dp(hcb_p np, ccb_p cp, u32 scr, int *ofs) in sym_evaluate_dp()
5378 static void sym_modify_dp(hcb_p np, ccb_p cp, int ofs) in sym_modify_dp()
5475 static int sym_compute_residual(hcb_p np, ccb_p cp) in sym_compute_residual()
5604 static void sym_sync_nego(hcb_p np, tcb_p tp, ccb_p cp) in sym_sync_nego()
5705 static void sym_ppr_nego(hcb_p np, tcb_p tp, ccb_p cp) in sym_ppr_nego()
5844 static void sym_wide_nego(hcb_p np, tcb_p tp, ccb_p cp) in sym_wide_nego()
5955 static void sym_nego_default(hcb_p np, tcb_p tp, ccb_p cp) in sym_nego_default()
5989 static void sym_nego_rejected(hcb_p np, tcb_p tp, ccb_p cp) in sym_nego_rejected()
5998 static void sym_int_sir (hcb_p np) in sym_int_sir()
6262 static ccb_p sym_get_ccb (hcb_p np, u_char tn, u_char ln, u_char tag_order) in sym_get_ccb()
6388 static void sym_free_ccb(hcb_p np, ccb_p cp) in sym_free_ccb()
6477 static ccb_p sym_alloc_ccb(hcb_p np) in sym_alloc_ccb()
6559 static ccb_p sym_ccb_from_dsa(hcb_p np, u32 dsa) in sym_ccb_from_dsa()
6578 static lcb_p sym_alloc_lcb (hcb_p np, u_char tn, u_char ln) in sym_alloc_lcb()
6656 static void sym_alloc_lcb_tags (hcb_p np, u_char tn, u_char ln) in sym_alloc_lcb_tags()
6707 static int sym_regtest (hcb_p np)
6731 static int sym_snooptest (hcb_p np)
6852 static void sym_selectclock(hcb_p np, u_char scntl3)
6888 static unsigned getfreq (hcb_p np, int gen)
6937 static unsigned sym_getfreq (hcb_p np)
6952 static void sym_getclock (hcb_p np, int mult)
7018 static int sym_getpciclock (hcb_p np)
7095 static void sym_complete_error (hcb_p np, ccb_p cp)
7249 static void sym_complete_ok (hcb_p np, ccb_p cp)
7316 hcb_p np = ccb->ccb_h.sym_hcb_ptr;
7340 static int sym_abort_scsiio(hcb_p np, union ccb *ccb, int timed_out)
7387 static void sym_reset_dev(hcb_p np, union ccb *ccb)
7415 hcb_p np;
7430 np = (hcb_p) cam_sim_softc(sim);
7628 static int sym_setup_cdb(hcb_p np, struct ccb_scsiio *csio, ccb_p cp)
7678 sym_setup_data_pointers(hcb_p np, ccb_p cp, int dir)
7724 hcb_p np;
7729 np = (hcb_p) cp->arg;
7821 sym_setup_data_and_start(hcb_p np, struct ccb_scsiio *csio, ccb_p cp)
7859 sym_fast_scatter_sg_physical(hcb_p np, ccb_p cp,
7896 sym_scatter_sg_physical(hcb_p np, ccb_p cp, bus_dma_segment_t *psegs, int nsegs)
7946 hcb_p np;
7954 np = (hcb_p) cam_sim_softc(sim);
8108 hcb_p np;
8114 np = (hcb_p) cam_sim_softc(sim);
8145 static void sym_update_trans(hcb_p np, struct sym_trans *tip,
8223 sym_update_dflags(hcb_p np, u_char *flags, struct ccb_trans_settings *cts)
8765 static void sym_pci_free(hcb_p np)
8852 static int sym_cam_attach(hcb_p np)
8935 static void sym_cam_free(hcb_p np)
8965 static void sym_nvram_setup_host (hcb_p np, struct sym_nvram *nvram)
8997 static void sym_Symbios_setup_target(hcb_p np,int target, Symbios_nvram *nvram);
8998 static void sym_Tekram_setup_target(hcb_p np,int target, Tekram_nvram *nvram);
9002 sym_nvram_setup_target (hcb_p np, int target, struct sym_nvram *nvp)
9023 sym_Symbios_setup_target(hcb_p np, int target, Symbios_nvram *nvram)
9045 sym_Tekram_setup_target(hcb_p np, int target, Tekram_nvram *nvram)
9075 static void sym_display_Symbios_nvram(hcb_p np, Symbios_nvram *nvram)
9108 static void sym_display_Tekram_nvram(hcb_p np, Tekram_nvram *nvram)
9161 static int sym_read_Symbios_nvram (hcb_p np, Symbios_nvram *nvram);
9162 static int sym_read_Tekram_nvram (hcb_p np, Tekram_nvram *nvram);
9165 static int sym_read_nvram(hcb_p np, struct sym_nvram *nvp)
9211 static void S24C16_set_bit(hcb_p np, u_char write_bit, u_char *gpreg,
9237 static void S24C16_start(hcb_p np, u_char *gpreg)
9248 static void S24C16_stop(hcb_p np, u_char *gpreg)
9258 static void S24C16_do_bit(hcb_p np, u_char *read_bit, u_char write_bit,
9273 static void S24C16_write_ack(hcb_p np, u_char write_bit, u_char *gpreg,
9285 static void S24C16_read_ack(hcb_p np, u_char *read_bit, u_char *gpreg,
9297 static void S24C16_write_byte(hcb_p np, u_char *ack_data, u_char write_data,
9312 static void S24C16_read_byte(hcb_p np, u_char *read_data, u_char ack_data,
9330 static int sym_read_S24C16_nvram (hcb_p np, int offset, u_char *data, int len)
9409 static int sym_read_Symbios_nvram (hcb_p np, Symbios_nvram *nvram)
9450 static void T93C46_Clk(hcb_p np, u_char *gpreg)
9460 static void T93C46_Read_Bit(hcb_p np, u_char *read_bit, u_char *gpreg)
9470 static void T93C46_Write_Bit(hcb_p np, u_char write_bit, u_char *gpreg)
9488 static void T93C46_Stop(hcb_p np, u_char *gpreg)
9500 static void T93C46_Send_Command(hcb_p np, u_short write_data,
9515 static void T93C46_Read_Word(hcb_p np, u_short *nvram_data, u_char *gpreg)
9534 static int T93C46_Read_Data(hcb_p np, u_short *data,int len,u_char *gpreg)
9555 static int sym_read_T93C46_nvram (hcb_p np, Tekram_nvram *nvram)
9587 static int sym_read_Tekram_nvram (hcb_p np, Tekram_nvram *nvram)