Home
last modified time | relevance | path

Searched refs:bsg_job (Results 1 – 25 of 37) sorted by relevance

12

/OK3568_Linux_fs/kernel/drivers/scsi/qla2xxx/
H A Dqla_bsg.c24 struct bsg_job *bsg_job = sp->u.bsg_job; in qla2x00_bsg_job_done() local
25 struct fc_bsg_reply *bsg_reply = bsg_job->reply; in qla2x00_bsg_job_done()
30 bsg_job_done(bsg_job, bsg_reply->result, in qla2x00_bsg_job_done()
37 struct bsg_job *bsg_job = sp->u.bsg_job; in qla2x00_bsg_sp_free() local
38 struct fc_bsg_request *bsg_request = bsg_job->request; in qla2x00_bsg_sp_free()
47 bsg_job->request_payload.sg_list, in qla2x00_bsg_sp_free()
48 bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE); in qla2x00_bsg_sp_free()
52 bsg_job->reply_payload.sg_list, in qla2x00_bsg_sp_free()
53 bsg_job->reply_payload.sg_cnt, DMA_FROM_DEVICE); in qla2x00_bsg_sp_free()
55 dma_unmap_sg(&ha->pdev->dev, bsg_job->request_payload.sg_list, in qla2x00_bsg_sp_free()
[all …]
H A Dqla_iocb.c3054 struct bsg_job *bsg_job = sp->u.bsg_job; in qla24xx_els_iocb() local
3055 struct fc_bsg_request *bsg_request = bsg_job->request; in qla24xx_els_iocb()
3063 els_iocb->tx_dsd_count = cpu_to_le16(bsg_job->request_payload.sg_cnt); in qla24xx_els_iocb()
3066 els_iocb->rx_dsd_count = cpu_to_le16(bsg_job->reply_payload.sg_cnt); in qla24xx_els_iocb()
3077 cpu_to_le32(bsg_job->reply_payload.payload_len); in qla24xx_els_iocb()
3079 cpu_to_le32(bsg_job->request_payload.payload_len); in qla24xx_els_iocb()
3081 put_unaligned_le64(sg_dma_address(bsg_job->request_payload.sg_list), in qla24xx_els_iocb()
3084 (bsg_job->request_payload.sg_list)); in qla24xx_els_iocb()
3086 put_unaligned_le64(sg_dma_address(bsg_job->reply_payload.sg_list), in qla24xx_els_iocb()
3089 (bsg_job->reply_payload.sg_list)); in qla24xx_els_iocb()
[all …]
H A Dqla_isr.c1897 struct bsg_job *bsg_job; in qla2x00_ct_entry() local
1908 bsg_job = sp->u.bsg_job; in qla2x00_ct_entry()
1909 bsg_reply = bsg_job->reply; in qla2x00_ct_entry()
1920 bsg_job->reply_len = sizeof(struct fc_bsg_reply); in qla2x00_ct_entry()
1944 bsg_job->reply_payload.payload_len; in qla2x00_ct_entry()
1945 bsg_job->reply_len = 0; in qla2x00_ct_entry()
1970 struct bsg_job *bsg_job; in qla24xx_els_ct_entry() local
2047 bsg_job = sp->u.bsg_job; in qla24xx_els_ct_entry()
2048 bsg_reply = bsg_job->reply; in qla24xx_els_ct_entry()
2050 bsg_job->reply_len = sizeof(struct fc_bsg_reply) + sizeof(fw_status); in qla24xx_els_ct_entry()
[all …]
H A Dqla_mr.c2185 struct bsg_job *bsg_job; in qlafx00_ioctl_iosb_entry() local
2205 bsg_job = sp->u.bsg_job; in qlafx00_ioctl_iosb_entry()
2206 bsg_reply = bsg_job->reply; in qlafx00_ioctl_iosb_entry()
2222 fw_sts_ptr = bsg_job->reply + sizeof(struct fc_bsg_reply); in qlafx00_ioctl_iosb_entry()
2225 bsg_job->reply_len = sizeof(struct fc_bsg_reply) + in qlafx00_ioctl_iosb_entry()
2237 bsg_job->reply_payload.payload_len; in qlafx00_ioctl_iosb_entry()
3222 struct bsg_job *bsg_job; in qlafx00_fxdisc_iocb() local
3268 bsg_job = sp->u.bsg_job; in qlafx00_fxdisc_iocb()
3269 bsg_request = bsg_job->request; in qlafx00_fxdisc_iocb()
3291 cpu_to_le16(bsg_job->request_payload.sg_cnt); in qlafx00_fxdisc_iocb()
[all …]
H A Dqla_gbl.h873 extern int qla24xx_bsg_request(struct bsg_job *);
874 extern int qla24xx_bsg_timeout(struct bsg_job *);
/OK3568_Linux_fs/kernel/drivers/scsi/qla4xxx/
H A Dql4_bsg.c12 qla4xxx_read_flash(struct bsg_job *bsg_job) in qla4xxx_read_flash() argument
14 struct Scsi_Host *host = iscsi_job_to_shost(bsg_job); in qla4xxx_read_flash()
16 struct iscsi_bsg_reply *bsg_reply = bsg_job->reply; in qla4xxx_read_flash()
17 struct iscsi_bsg_request *bsg_req = bsg_job->request; in qla4xxx_read_flash()
44 length = bsg_job->reply_payload.payload_len; in qla4xxx_read_flash()
62 sg_copy_from_buffer(bsg_job->reply_payload.sg_list, in qla4xxx_read_flash()
63 bsg_job->reply_payload.sg_cnt, in qla4xxx_read_flash()
68 bsg_job_done(bsg_job, bsg_reply->result, in qla4xxx_read_flash()
77 qla4xxx_update_flash(struct bsg_job *bsg_job) in qla4xxx_update_flash() argument
79 struct Scsi_Host *host = iscsi_job_to_shost(bsg_job); in qla4xxx_update_flash()
[all …]
H A Dql4_glbl.h199 int qla4xxx_bsg_request(struct bsg_job *bsg_job);
200 int qla4xxx_process_vendor_specific(struct bsg_job *bsg_job);
/OK3568_Linux_fs/kernel/block/
H A Dbsg-lib.c39 struct bsg_job *job = blk_mq_rq_to_pdu(rq); in bsg_transport_fill_hdr()
78 struct bsg_job *job = blk_mq_rq_to_pdu(rq); in bsg_transport_complete_rq()
127 struct bsg_job *job = blk_mq_rq_to_pdu(rq); in bsg_transport_free_rq()
150 struct bsg_job *job = container_of(kref, struct bsg_job, kref); in bsg_teardown_job()
161 void bsg_job_put(struct bsg_job *job) in bsg_job_put()
167 int bsg_job_get(struct bsg_job *job) in bsg_job_get()
181 void bsg_job_done(struct bsg_job *job, int result, in bsg_job_done()
199 struct bsg_job *job = blk_mq_rq_to_pdu(rq); in bsg_complete()
226 struct bsg_job *job = blk_mq_rq_to_pdu(req); in bsg_prepare_job()
296 struct bsg_job *job = blk_mq_rq_to_pdu(req); in bsg_init_rq()
[all …]
/OK3568_Linux_fs/kernel/include/linux/
H A Dbsg-lib.h20 typedef int (bsg_job_fn) (struct bsg_job *);
29 struct bsg_job { struct
65 void bsg_job_done(struct bsg_job *job, int result, argument
70 void bsg_job_put(struct bsg_job *job);
71 int __must_check bsg_job_get(struct bsg_job *job);
/OK3568_Linux_fs/kernel/drivers/scsi/libsas/
H A Dsas_internal.h75 void sas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost,
100 extern void sas_smp_host_handler(struct bsg_job *job, struct Scsi_Host *shost);
102 static inline void sas_smp_host_handler(struct bsg_job *job, in sas_smp_host_handler()
H A Dsas_host_smp.c225 void sas_smp_host_handler(struct bsg_job *job, struct Scsi_Host *shost) in sas_smp_host_handler()
/OK3568_Linux_fs/kernel/drivers/scsi/lpfc/
H A Dlpfc_bsg.c104 struct bsg_job *set_job; /* job waiting for this iocb to finish */
304 struct bsg_job *job; in lpfc_bsg_send_mgmt_cmd_cmp()
388 lpfc_bsg_send_mgmt_cmd(struct bsg_job *job) in lpfc_bsg_send_mgmt_cmd()
581 struct bsg_job *job; in lpfc_bsg_rport_els_cmp()
662 lpfc_bsg_rport_els(struct bsg_job *job) in lpfc_bsg_rport_els()
933 struct bsg_job *job = NULL; in lpfc_bsg_ct_unsol_event()
1206 lpfc_bsg_hba_set_event(struct bsg_job *job) in lpfc_bsg_hba_set_event()
1289 lpfc_bsg_hba_get_event(struct bsg_job *job) in lpfc_bsg_hba_get_event()
1401 struct bsg_job *job; in lpfc_issue_ct_rsp_cmp()
1481 lpfc_issue_ct_rsp(struct lpfc_hba *phba, struct bsg_job *job, uint32_t tag, in lpfc_issue_ct_rsp()
[all …]
H A Dlpfc_crtn.h466 int lpfc_bsg_request(struct bsg_job *);
467 int lpfc_bsg_timeout(struct bsg_job *);
/OK3568_Linux_fs/kernel/include/scsi/
H A Dscsi_transport_fc.h652 int (*bsg_request)(struct bsg_job *);
653 int (*bsg_timeout)(struct bsg_job *);
807 static inline struct Scsi_Host *fc_bsg_to_shost(struct bsg_job *job) in fc_bsg_to_shost()
814 static inline struct fc_rport *fc_bsg_to_rport(struct bsg_job *job) in fc_bsg_to_rport()
H A Dscsi_transport_iscsi.h28 struct bsg_job;
136 int (*bsg_request)(struct bsg_job *job);
H A Dscsi_transport_sas.h182 void (*smp_handler)(struct bsg_job *, struct Scsi_Host *,
H A Dlibfc.h904 int fc_lport_bsg_request(struct bsg_job *);
/OK3568_Linux_fs/kernel/drivers/scsi/bfa/
H A Dbfad_im.h182 int bfad_im_bsg_request(struct bsg_job *job);
183 int bfad_im_bsg_timeout(struct bsg_job *job);
/OK3568_Linux_fs/kernel/drivers/scsi/ufs/
H A Dufs_bsg.c42 static int ufs_bsg_alloc_desc_buffer(struct ufs_hba *hba, struct bsg_job *job, in ufs_bsg_alloc_desc_buffer()
80 static int ufs_bsg_request(struct bsg_job *job) in ufs_bsg_request()
/OK3568_Linux_fs/kernel/drivers/s390/scsi/
H A Dzfcp_fc.c970 struct bsg_job *job = data; in zfcp_fc_ct_els_job_handler()
980 static struct zfcp_fc_wka_port *zfcp_fc_job_wka_port(struct bsg_job *job) in zfcp_fc_job_wka_port()
1013 struct bsg_job *job = data; in zfcp_fc_ct_job_handler()
1022 static int zfcp_fc_exec_els_job(struct bsg_job *job, in zfcp_fc_exec_els_job()
1045 static int zfcp_fc_exec_ct_job(struct bsg_job *job, in zfcp_fc_exec_ct_job()
1068 int zfcp_fc_exec_bsg_job(struct bsg_job *job) in zfcp_fc_exec_bsg_job()
1098 int zfcp_fc_timeout_bsg_job(struct bsg_job *job) in zfcp_fc_timeout_bsg_job()
H A Dzfcp_ext.h106 extern int zfcp_fc_exec_bsg_job(struct bsg_job *);
107 extern int zfcp_fc_timeout_bsg_job(struct bsg_job *);
/OK3568_Linux_fs/kernel/drivers/scsi/smartpqi/
H A Dsmartpqi_sas_transport.c448 struct bsg_job *job) in pqi_build_csmi_smp_passthru_buffer()
492 struct bmic_csmi_smp_passthru_buffer *smp_buf, struct bsg_job *job, in pqi_build_sas_smp_handler_reply()
507 void pqi_sas_smp_handler(struct bsg_job *job, struct Scsi_Host *shost, in pqi_sas_smp_handler()
/OK3568_Linux_fs/kernel/drivers/scsi/libfc/
H A Dfc_lport.c140 struct bsg_job *job;
1878 struct bsg_job *job = info->job; in fc_lport_bsg_resp()
1939 static int fc_lport_els_request(struct bsg_job *job, in fc_lport_els_request()
1999 static int fc_lport_ct_request(struct bsg_job *job, in fc_lport_ct_request()
2057 int fc_lport_bsg_request(struct bsg_job *job) in fc_lport_bsg_request()
/OK3568_Linux_fs/kernel/drivers/scsi/be2iscsi/
H A Dbe_mgmt.h36 struct bsg_job *job,
/OK3568_Linux_fs/kernel/drivers/scsi/
H A Dscsi_transport_fc.c3558 struct bsg_job *job = blk_mq_rq_to_pdu(req); in fc_bsg_job_timeout()
3591 static int fc_bsg_host_dispatch(struct Scsi_Host *shost, struct bsg_job *job) in fc_bsg_host_dispatch()
3684 static int fc_bsg_rport_dispatch(struct Scsi_Host *shost, struct bsg_job *job) in fc_bsg_rport_dispatch()
3734 static int fc_bsg_dispatch(struct bsg_job *job) in fc_bsg_dispatch()
3757 static int fc_bsg_dispatch_prep(struct bsg_job *job) in fc_bsg_dispatch_prep()

12