Lines Matching refs:cb

91 …_hw_t *hw, ocs_dma_t *dma, uint32_t size, uint32_t offset, int last, ocs_hw_fw_cb_t cb, void *arg);
100 …t *hw, ocs_dma_t *dma_cmd, ocs_dma_t *dma_resp, uint32_t opts, ocs_hw_dmtf_clp_cb_t cb, void *arg);
2297 ocs_hw_command(ocs_hw_t *hw, uint8_t *cmd, uint32_t opts, void *cb, void *arg) in ocs_hw_command() argument
2357 if (cb) { in ocs_hw_command()
2358 ctx->cb = cb; in ocs_hw_command()
2623 ocs_hw_port_control(ocs_hw_t *hw, ocs_hw_port_e ctrl, uintptr_t value, ocs_hw_port_control_cb_t cb,… in ocs_hw_port_control() argument
2715 rc = ocs_hw_set_linkcfg(hw, (ocs_hw_linkcfg_e)value, OCS_CMD_NOWAIT, cb, arg); in ocs_hw_port_control()
3840 ocs_hw_srrs_cb_t cb, void *arg) in ocs_hw_srrs_send() argument
3863 io->done = cb; in ocs_hw_srrs_send()
4051 void *cb, void *arg) in ocs_hw_io_send() argument
4083 io->done = cb; in ocs_hw_io_send()
4878 ocs_hw_io_abort(ocs_hw_t *hw, ocs_hw_io_t *io_to_abort, uint32_t send_abts, void *cb, void *arg) in ocs_hw_io_abort() argument
4948 io_to_abort->abort_done = cb; in ocs_hw_io_abort()
5035 ocs_hw_fw_cb_t cb; member
5040 ocs_hw_sfp_cb_t cb; member
5046 ocs_hw_temp_cb_t cb; member
5051 ocs_hw_link_stat_cb_t cb; member
5056 ocs_hw_host_stat_cb_t cb; member
5061 ocs_hw_dump_get_cb_t cb; member
5067 ocs_hw_dump_clear_cb_t cb; member
5092 …s_hw_t *hw, ocs_dma_t *dma, uint32_t size, uint32_t offset, int last, ocs_hw_fw_cb_t cb, void *arg) in ocs_hw_firmware_write() argument
5095 return ocs_hw_firmware_write_lancer(hw, dma, size, offset, last, cb, arg); in ocs_hw_firmware_write()
5124 …s_hw_t *hw, ocs_dma_t *dma, uint32_t size, uint32_t offset, int last, ocs_hw_fw_cb_t cb, void *arg) in ocs_hw_firmware_write_lancer() argument
5149 cb_arg->cb = cb; in ocs_hw_firmware_write_lancer()
5201 if (cb_arg->cb) { in ocs_hw_cb_fw_write()
5205 cb_arg->cb(status, bytes_written, change_status, cb_arg->arg); in ocs_hw_cb_fw_write()
5242 if (cb_arg->cb) { in ocs_hw_cb_sfp()
5248 cb_arg->cb(hw->os, status, bytes_written, mbox_rsp->page_data, cb_arg->arg); in ocs_hw_cb_sfp()
5271 ocs_hw_get_sfp(ocs_hw_t *hw, uint16_t page, ocs_hw_sfp_cb_t cb, void *arg) in ocs_hw_get_sfp() argument
5292 cb_arg->cb = cb; in ocs_hw_get_sfp()
5331 ocs_hw_get_temperature(ocs_hw_t *hw, ocs_hw_temp_cb_t cb, void *arg) in ocs_hw_get_temperature() argument
5350 cb_arg->cb = cb; in ocs_hw_get_temperature()
5396 if (cb_arg->cb) { in ocs_hw_cb_temp()
5400 cb_arg->cb(status, in ocs_hw_cb_temp()
5434 ocs_hw_link_stat_cb_t cb, in ocs_hw_get_link_stats() argument
5454 cb_arg->cb = cb; in ocs_hw_get_link_stats()
5543 if (cb_arg->cb) { in ocs_hw_cb_link_stat()
5547 cb_arg->cb(status, in ocs_hw_cb_link_stat()
5571 ocs_hw_get_host_stats(ocs_hw_t *hw, uint8_t cc, ocs_hw_host_stat_cb_t cb, void *arg) in ocs_hw_get_host_stats() argument
5590 cb_arg->cb = cb; in ocs_hw_get_host_stats()
5652 if (cb_arg->cb) { in ocs_hw_cb_host_stat()
5656 cb_arg->cb(status, in ocs_hw_cb_host_stat()
5801 ocs_hw_port_control_cb_t cb; member
5823 ocs_hw_set_linkcfg(ocs_hw_t *hw, ocs_hw_linkcfg_e value, uint32_t opts, ocs_hw_port_control_cb_t cb in ocs_hw_set_linkcfg() argument
5831 return ocs_hw_set_linkcfg_lancer(hw, value, opts, cb, arg); in ocs_hw_set_linkcfg()
5834 return ocs_hw_set_linkcfg_skyhawk(hw, value, opts, cb, arg); in ocs_hw_set_linkcfg()
5854 …lancer(ocs_hw_t *hw, ocs_hw_linkcfg_e value, uint32_t opts, ocs_hw_port_control_cb_t cb, void *arg) in ocs_hw_set_linkcfg_lancer() argument
5888 cb_arg->cb = cb; in ocs_hw_set_linkcfg_lancer()
5930 if (cb_arg->cb) { in ocs_hw_set_active_link_config_cb()
5931 cb_arg->cb(status, 0, cb_arg->arg); in ocs_hw_set_active_link_config_cb()
5953 …kyhawk(ocs_hw_t *hw, ocs_hw_linkcfg_e value, uint32_t opts, ocs_hw_port_control_cb_t cb, void *arg) in ocs_hw_set_linkcfg_skyhawk() argument
5982 cb_arg->cb = cb; in ocs_hw_set_linkcfg_skyhawk()
6017 ocs_hw_get_linkcfg(ocs_hw_t *hw, uint32_t opts, ocs_hw_port_control_cb_t cb, void *arg) in ocs_hw_get_linkcfg() argument
6026 return ocs_hw_get_linkcfg_lancer(hw, opts, cb, arg); in ocs_hw_get_linkcfg()
6029 return ocs_hw_get_linkcfg_skyhawk(hw, opts, cb, arg); in ocs_hw_get_linkcfg()
6047 ocs_hw_get_linkcfg_lancer(ocs_hw_t *hw, uint32_t opts, ocs_hw_port_control_cb_t cb, void *arg) in ocs_hw_get_linkcfg_lancer() argument
6080 cb_arg->cb = cb; in ocs_hw_get_linkcfg_lancer()
6127 if (cb_arg->cb) { in ocs_hw_get_active_link_config_cb()
6128 cb_arg->cb(status, value, cb_arg->arg); in ocs_hw_get_active_link_config_cb()
6149 ocs_hw_get_linkcfg_skyhawk(ocs_hw_t *hw, uint32_t opts, ocs_hw_port_control_cb_t cb, void *arg) in ocs_hw_get_linkcfg_skyhawk() argument
6170 cb_arg->cb = cb; in ocs_hw_get_linkcfg_skyhawk()
6493 if (cb_arg->cb) { in ocs_hw_linkcfg_dmtf_clp_cb()
6494 cb_arg->cb(status, linkcfg, cb_arg->arg); in ocs_hw_linkcfg_dmtf_clp_cb()
6652 ocs_hw_dmtf_clp_cb_t cb; member
6673 …_t *hw, ocs_dma_t *dma_cmd, ocs_dma_t *dma_resp, uint32_t opts, ocs_hw_dmtf_clp_cb_t cb, void *arg) in ocs_hw_exec_dmtf_clp_cmd() argument
6694 cb_arg->cb = cb; in ocs_hw_exec_dmtf_clp_cmd()
6809 if (cb_arg->cb) { in ocs_hw_dmtf_clp_cb()
6810 cb_arg->cb(hw, cb_status, result_len, cb_arg->arg); in ocs_hw_dmtf_clp_cb()
6936 if (cb_arg->cb) { in ocs_hw_cb_dump_get()
6940 cb_arg->cb(status, bytes_read, eof, cb_arg->arg); in ocs_hw_cb_dump_get()
6971 …t(ocs_hw_t *hw, ocs_dma_t *dma, uint32_t size, uint32_t offset, ocs_hw_dump_get_cb_t cb, void *arg) in ocs_hw_dump_get() argument
7006 cb_arg->cb = cb; in ocs_hw_dump_get()
7050 if (cb_arg->cb) { in ocs_hw_cb_dump_clear()
7054 cb_arg->cb(status, cb_arg->arg); in ocs_hw_cb_dump_clear()
7082 ocs_hw_dump_clear(ocs_hw_t *hw, ocs_hw_dump_clear_cb_t cb, void *arg) in ocs_hw_dump_clear() argument
7107 cb_arg->cb = cb; in ocs_hw_dump_clear()
7130 ocs_get_port_protocol_cb_t cb; member
7188 if (cb_arg->cb) { in ocs_hw_get_port_protocol_cb()
7189 cb_arg->cb(status, port_protocol, cb_arg->arg); in ocs_hw_get_port_protocol_cb()
7221 ocs_get_port_protocol_cb_t cb, void* ul_arg) in ocs_hw_get_port_protocol() argument
7247 cb_arg->cb = cb; in ocs_hw_get_port_protocol()
7275 ocs_set_port_protocol_cb_t cb; member
7304 if (cb_arg->cb) { in ocs_hw_set_port_protocol_cb2()
7305 cb_arg->cb( status, cb_arg->arg); in ocs_hw_set_port_protocol_cb2()
7387 new_cb_arg->cb = cb_arg->cb; in ocs_hw_set_port_protocol_cb1()
7473 if (new_cb_arg->cb) { in ocs_hw_set_port_protocol_cb1()
7474 new_cb_arg->cb( rc, new_cb_arg->arg); in ocs_hw_set_port_protocol_cb1()
7514 uint32_t pci_func, ocs_set_port_protocol_cb_t cb, void *ul_arg) in ocs_hw_set_port_protocol() argument
7540 cb_arg->cb = cb; in ocs_hw_set_port_protocol()
7568 ocs_get_profile_list_cb_t cb; member
7619 if (cb_arg->cb) { in ocs_hw_get_profile_list_cb()
7620 cb_arg->cb(status, list, cb_arg->arg); in ocs_hw_get_profile_list_cb()
7654 ocs_hw_get_profile_list(ocs_hw_t *hw, ocs_get_profile_list_cb_t cb, void* ul_arg) in ocs_hw_get_profile_list() argument
7680 cb_arg->cb = cb; in ocs_hw_get_profile_list()
7706 ocs_get_active_profile_cb_t cb; member
7731 if (cb_arg->cb) { in ocs_hw_get_active_profile_cb()
7732 cb_arg->cb(status, active_profile, cb_arg->arg); in ocs_hw_get_active_profile_cb()
7763 ocs_hw_get_active_profile(ocs_hw_t *hw, ocs_get_active_profile_cb_t cb, void* ul_arg) in ocs_hw_get_active_profile() argument
7789 cb_arg->cb = cb; in ocs_hw_get_active_profile()
7806 ocs_get_nvparms_cb_t cb; member
7827 if (cb_arg->cb) { in ocs_hw_get_nvparms_cb()
7828 cb_arg->cb(status, mbox_rsp->wwpn, mbox_rsp->wwnn, mbox_rsp->hard_alpa, in ocs_hw_get_nvparms_cb()
7860 ocs_hw_get_nvparms(ocs_hw_t *hw, ocs_get_nvparms_cb_t cb, void* ul_arg) in ocs_hw_get_nvparms() argument
7881 cb_arg->cb = cb; in ocs_hw_get_nvparms()
7898 ocs_set_nvparms_cb_t cb; member
7918 if (cb_arg->cb) { in ocs_hw_set_nvparms_cb()
7919 cb_arg->cb(status, cb_arg->arg); in ocs_hw_set_nvparms_cb()
7957 ocs_hw_set_nvparms(ocs_hw_t *hw, ocs_set_nvparms_cb_t cb, uint8_t *wwpn, in ocs_hw_set_nvparms() argument
7979 cb_arg->cb = cb; in ocs_hw_set_nvparms()
8071 ocs_set_active_profile_cb_t cb; member
8091 if (cb_arg->cb) { in ocs_hw_set_active_profile_cb()
8092 cb_arg->cb(status, cb_arg->arg); in ocs_hw_set_active_profile_cb()
8122 ocs_hw_set_active_profile(ocs_hw_t *hw, ocs_set_active_profile_cb_t cb, uint32_t profile_id, void* … in ocs_hw_set_active_profile() argument
8148 cb_arg->cb = cb; in ocs_hw_set_active_profile()
9075 if (ctx->cb) { in ocs_hw_command_process()
9079 ctx->cb(hw, status, ctx->buf, ctx->arg); in ocs_hw_command_process()