Home
last modified time | relevance | path

Searched refs:rcode (Results 1 – 27 of 27) sorted by relevance

/linux-4.4.14/sound/firewire/fireworks/
Dfireworks_transaction.c119 copy_resp_to_buf(struct snd_efw *efw, void *data, size_t length, int *rcode) in copy_resp_to_buf() argument
137 *rcode = RCODE_CONFLICT_ERROR; in copy_resp_to_buf()
161 *rcode = RCODE_COMPLETE; in copy_resp_to_buf()
168 void *data, size_t length, int *rcode) in handle_resp_for_user() argument
193 copy_resp_to_buf(efw, data, length, rcode); in handle_resp_for_user()
200 void *data, size_t length, int *rcode, u32 seqnum) in handle_resp_for_kernel() argument
221 *rcode = RCODE_COMPLETE; in handle_resp_for_kernel()
233 int rcode, dummy; in efw_response() local
236 rcode = RCODE_TYPE_ERROR; in efw_response()
238 rcode = RCODE_DATA_ERROR; in efw_response()
[all …]
/linux-4.4.14/sound/firewire/
Dlib.c38 int generation, rcode, tries = 0; in snd_fw_transaction() local
46 rcode = fw_run_transaction(device->card, tcode, in snd_fw_transaction()
51 if (rcode == RCODE_COMPLETE) in snd_fw_transaction()
54 if (rcode == RCODE_GENERATION && (flags & FW_FIXED_GENERATION)) in snd_fw_transaction()
57 if (rcode_is_permanent_error(rcode) || ++tries >= 3) { in snd_fw_transaction()
61 fw_rcode_string(rcode)); in snd_fw_transaction()
70 static void async_midi_port_callback(struct fw_card *card, int rcode, in async_midi_port_callback() argument
81 if (rcode == RCODE_COMPLETE) in async_midi_port_callback()
83 else if (!rcode_is_permanent_error(rcode)) in async_midi_port_callback()
Dlib.h20 static inline bool rcode_is_permanent_error(int rcode) in rcode_is_permanent_error() argument
22 return rcode == RCODE_TYPE_ERROR || rcode == RCODE_ADDRESS_ERROR; in rcode_is_permanent_error()
Dscs1x.c84 static void scs_write_callback(struct fw_card *card, int rcode, in scs_write_callback() argument
89 if (rcode == RCODE_GENERATION) { in scs_write_callback()
/linux-4.4.14/drivers/scsi/aacraid/
Dcommctrl.c477 s32 rcode = 0; in aac_send_raw_srb() local
510 rcode = -EFAULT; in aac_send_raw_srb()
516 rcode = -EINVAL; in aac_send_raw_srb()
523 rcode = -ENOMEM; in aac_send_raw_srb()
528 rcode = -EFAULT; in aac_send_raw_srb()
563 rcode = -EINVAL; in aac_send_raw_srb()
579 rcode = -EINVAL; in aac_send_raw_srb()
584 rcode = -EINVAL; in aac_send_raw_srb()
605 rcode = -EINVAL; in aac_send_raw_srb()
613 rcode = -ENOMEM; in aac_send_raw_srb()
[all …]
Daachba.c1519 int rcode; in aac_get_adapter_info() local
1532 rcode = aac_fib_send(RequestAdapterInfo, in aac_get_adapter_info()
1540 if (rcode < 0) { in aac_get_adapter_info()
1543 if (rcode != -ERESTARTSYS) { in aac_get_adapter_info()
1547 return rcode; in aac_get_adapter_info()
1560 rcode = aac_fib_send(RequestSupplementAdapterInfo, in aac_get_adapter_info()
1568 if (rcode >= 0) in aac_get_adapter_info()
1570 if (rcode == -ERESTARTSYS) { in aac_get_adapter_info()
1596 rcode = aac_fib_send(ContainerCommand, in aac_get_adapter_info()
1605 if (rcode >= 0 && le32_to_cpu(bus_info->Status) == ST_OK) { in aac_get_adapter_info()
[all …]
/linux-4.4.14/drivers/firewire/
Dcore-transaction.c52 #define HEADER_RCODE(rcode) ((rcode) << 12) argument
87 struct fw_card *card, int rcode) in close_transaction() argument
107 t->callback(card, rcode, NULL, 0, t->callback_data); in close_transaction()
397 int rcode; member
400 static void transaction_callback(struct fw_card *card, int rcode, in transaction_callback() argument
405 if (rcode == RCODE_COMPLETE) in transaction_callback()
407 d->rcode = rcode; in transaction_callback()
434 return d.rcode; in fw_run_transaction()
675 int rcode, void *payload, size_t length) in fw_fill_response() argument
691 HEADER_RCODE(rcode); in fw_fill_response()
[all …]
Dcore-card.c306 int gap_count, generation, grace, rcode; in bm_work() local
379 rcode = fw_run_transaction(card, TCODE_LOCK_COMPARE_SWAP, in bm_work()
384 if (rcode == RCODE_GENERATION) in bm_work()
391 if (rcode == RCODE_COMPLETE && generation == card->generation) in bm_work()
396 if (rcode == RCODE_COMPLETE && bm_id != 0x3f) { in bm_work()
404 if (rcode == RCODE_SEND_ERROR) { in bm_work()
416 if (rcode != RCODE_COMPLETE && !keep_this_irm) { in bm_work()
425 fw_rcode_string(rcode), new_root_id); in bm_work()
510 rcode = fw_run_transaction(card, TCODE_WRITE_QUADLET_REQUEST, in bm_work()
514 if (rcode == RCODE_GENERATION) in bm_work()
Dcore-device.c492 int i, rcode; in read_rom() local
498 rcode = fw_run_transaction(device->card, in read_rom()
501 if (rcode != RCODE_BUSY) in read_rom()
507 return rcode; in read_rom()
943 int rcode; in set_broadcast_channel() local
963 rcode = fw_run_transaction(card, TCODE_READ_QUADLET_REQUEST, in set_broadcast_channel()
967 switch (rcode) { in set_broadcast_channel()
1121 int i, rcode; in reread_config_rom() local
1124 rcode = read_rom(device, generation, i, &q); in reread_config_rom()
1125 if (rcode != RCODE_COMPLETE) in reread_config_rom()
[all …]
Dsbp2.c272 int rcode; member
452 orb->rcode = RCODE_COMPLETE; in sbp2_status_write()
469 static void complete_transaction(struct fw_card *card, int rcode, in complete_transaction() argument
486 if (orb->rcode == -1) in complete_transaction()
487 orb->rcode = rcode; in complete_transaction()
488 if (orb->rcode != RCODE_COMPLETE) { in complete_transaction()
541 orb->rcode = RCODE_CANCELLED; in sbp2_cancel_orbs()
625 orb->base.rcode); in sbp2_send_management_orb()
629 if (orb->base.rcode != RCODE_COMPLETE) { in sbp2_send_management_orb()
631 orb->base.rcode); in sbp2_send_management_orb()
[all …]
Dnet.c703 int rcode; in fwnet_receive_packet() local
712 rcode = RCODE_ADDRESS_ERROR; in fwnet_receive_packet()
714 rcode = RCODE_TYPE_ERROR; in fwnet_receive_packet()
718 rcode = RCODE_CONFLICT_ERROR; in fwnet_receive_packet()
720 rcode = RCODE_COMPLETE; in fwnet_receive_packet()
722 fw_send_response(card, r, rcode); in fwnet_receive_packet()
909 static void fwnet_write_complete(struct fw_card *card, int rcode, in fwnet_write_complete() argument
916 if (rcode == RCODE_COMPLETE) { in fwnet_write_complete()
919 if (printk_timed_ratelimit(&j, 1000) || rcode != last_rcode) { in fwnet_write_complete()
922 rcode, errors_skipped); in fwnet_write_complete()
[all …]
Dcore-cdev.c548 static void complete_transaction(struct fw_card *card, int rcode, in complete_transaction() argument
558 if (rcode == RCODE_COMPLETE) in complete_transaction()
568 rsp->rcode = rcode; in complete_transaction()
847 fw_send_response(r->card, r->request, a->rcode); in ioctl_send_response()
1502 case ACK_COMPLETE: e->phy_packet.rcode = RCODE_COMPLETE; break; in outbound_phy_packet_callback()
1504 case ACK_PENDING: e->phy_packet.rcode = RCODE_COMPLETE; break; in outbound_phy_packet_callback()
1507 case ACK_BUSY_B: e->phy_packet.rcode = RCODE_BUSY; break; in outbound_phy_packet_callback()
1508 case ACK_DATA_ERROR: e->phy_packet.rcode = RCODE_DATA_ERROR; break; in outbound_phy_packet_callback()
1509 case ACK_TYPE_ERROR: e->phy_packet.rcode = RCODE_TYPE_ERROR; break; in outbound_phy_packet_callback()
1511 default: e->phy_packet.rcode = status; break; in outbound_phy_packet_callback()
[all …]
Dcore.h246 int rcode, void *payload, size_t length);
/linux-4.4.14/drivers/scsi/
Ddpt_i2o.c327 s32 rcode; in adpt_inquiry() local
389 rcode = adpt_i2o_post_wait(pHba, msg, reqlen<<2, 120); in adpt_inquiry()
390 if (rcode != 0) { in adpt_inquiry()
392 printk(KERN_INFO "%s: Inquiry Error (%d)\n",pHba->name,rcode); in adpt_inquiry()
393 if (rcode != -ETIME && rcode != -EINTR) in adpt_inquiry()
686 int rcode; in adpt_abort() local
706 rcode = adpt_i2o_post_wait(pHba, msg, sizeof(msg), FOREVER); in adpt_abort()
709 if (rcode != 0) { in adpt_abort()
710 if(rcode == -EOPNOTSUPP ){ in adpt_abort()
730 u32 rcode; in adpt_device_reset() local
[all …]
/linux-4.4.14/drivers/staging/fwserial/
Dfwserial.c88 typedef void (*fwtty_transaction_cb)(struct fw_card *card, int rcode,
197 static void fwtty_log_tx_error(struct fwtty_port *port, int rcode) in fwtty_log_tx_error() argument
199 switch (rcode) { in fwtty_log_tx_error()
216 fwtty_err_ratelimited(port, "failed tx: %d\n", rcode); in fwtty_log_tx_error()
227 static void fwtty_common_callback(struct fw_card *card, int rcode, in fwtty_common_callback() argument
233 if (port && rcode != RCODE_COMPLETE) in fwtty_common_callback()
234 fwtty_log_tx_error(port, rcode); in fwtty_common_callback()
236 txn->callback(card, rcode, payload, len, txn); in fwtty_common_callback()
621 int rcode; in fwtty_port_handler() local
628 rcode = RCODE_ADDRESS_ERROR; in fwtty_port_handler()
[all …]
/linux-4.4.14/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ctx.c53 u32 rcode = NX_RCODE_SUCCESS; in netxen_issue_cmd() local
77 rcode = NX_RCODE_TIMEOUT; in netxen_issue_cmd()
79 rcode = NXRD32(adapter, NX_ARG1_CRB_OFFSET); in netxen_issue_cmd()
82 netxen_nic_driver_name, rcode); in netxen_issue_cmd()
96 return rcode; in netxen_issue_cmd()
239 u32 rcode = NX_RCODE_SUCCESS; in nx_fw_cmd_set_mtu() local
252 if (rcode != NX_RCODE_SUCCESS) in nx_fw_cmd_set_mtu()
545 u32 rcode; in nx_fw_cmd_query_phy() local
554 rcode = netxen_issue_cmd(adapter, &cmd); in nx_fw_cmd_query_phy()
555 if (rcode != NX_RCODE_SUCCESS) in nx_fw_cmd_query_phy()
[all …]
/linux-4.4.14/drivers/target/sbp/
Dsbp_target.c834 int sess_gen, sess_node, rcode; in tgt_agent_rw() local
843 rcode = RCODE_TYPE_ERROR; in tgt_agent_rw()
850 rcode = RCODE_TYPE_ERROR; in tgt_agent_rw()
859 rcode = tgt_agent_rw_agent_state(card, tcode, data, agent); in tgt_agent_rw()
862 rcode = tgt_agent_rw_agent_reset(card, tcode, data, agent); in tgt_agent_rw()
865 rcode = tgt_agent_rw_orb_pointer(card, tcode, data, agent); in tgt_agent_rw()
868 rcode = tgt_agent_rw_doorbell(card, tcode, data, agent); in tgt_agent_rw()
871 rcode = tgt_agent_rw_unsolicited_status_enable(card, tcode, in tgt_agent_rw()
874 rcode = RCODE_ADDRESS_ERROR; in tgt_agent_rw()
878 fw_send_response(card, request, rcode); in tgt_agent_rw()
[all …]
/linux-4.4.14/include/uapi/linux/
Dfirewire-cdev.h119 __u32 rcode; member
350 __u32 rcode; member
528 __u32 rcode; member
/linux-4.4.14/include/linux/
Dfirewire.h267 typedef void (*fw_transaction_callback_t)(struct fw_card *card, int rcode,
352 struct fw_request *request, int rcode);
363 const char *fw_rcode_string(int rcode);
/linux-4.4.14/drivers/block/
Dcpqarray.c1005 if (cmd->req.hdr.rcode & RCODE_NONFATAL && in complete_command()
1011 if (cmd->req.hdr.rcode & RCODE_FATAL) { in complete_command()
1016 if (cmd->req.hdr.rcode & RCODE_INVREQ) { in complete_command()
1020 cmd->req.hdr.sg_cnt, cmd->req.hdr.rcode); in complete_command()
1085 if((a1 & 0x03) && (c->req.hdr.rcode == 0)) in do_ida_intr()
1087 c->req.hdr.rcode = RCODE_INVREQ; in do_ida_intr()
1349 io->rcode = c->req.hdr.rcode; in ida_ctlr_ioctl()
1433 c->req.hdr.rcode = 0; in sendcmd()
1491 if (c->req.hdr.rcode & 0x00FE) { in sendcmd()
1492 if (!(c->req.hdr.rcode & BIG_PROBLEM)) { in sendcmd()
[all …]
Dida_ioctl.h53 __u8 rcode; member
Dsmart1,2.h258 if (cmd) ((cmdlist_t*)bus_to_virt(cmd))->req.hdr.rcode = status; in smart1_completed()
Dida_cmd.h63 __u8 rcode; member
/linux-4.4.14/drivers/media/firewire/
Dfiredtv-fw.c40 int rcode, generation = device->generation; in node_req() local
44 rcode = fw_run_transaction(device->card, tcode, device->node_id, in node_req()
47 return rcode != RCODE_COMPLETE ? -EIO : 0; in node_req()
/linux-4.4.14/sound/firewire/bebob/
Dbebob_maudio.c97 int err, rcode; in snd_bebob_maudio_load_firmware() local
121 rcode = fw_run_transaction(device->card, TCODE_WRITE_BLOCK_REQUEST, in snd_bebob_maudio_load_firmware()
125 if (rcode != RCODE_COMPLETE) { in snd_bebob_maudio_load_firmware()
/linux-4.4.14/drivers/mtd/nand/
Dnand_bbt.c627 uint8_t rcode = td->reserved_block_code; in write_bbt() local
637 if (!rcode) in write_bbt()
638 rcode = 0xff; in write_bbt()
698 msk[2] = ~rcode; in write_bbt()
/linux-4.4.14/drivers/isdn/gigaset/
Dev-layer.c1533 int rcode; in process_event() local
1601 rcode = rep->resp_code; in process_event()
1602 if (rcode == RSP_LAST) { in process_event()
1609 if ((rcode == RSP_ANY || rcode == ev->type) in process_event()